From f1d1ce4e4ece2ba5b2c742b677bfd45cbd244136 Mon Sep 17 00:00:00 2001 From: jomongeorge Date: Fri, 12 Jul 2024 16:08:36 +0530 Subject: [PATCH 1/6] skipCondition in batch trx added --- index.d.ts | 1 + src/libs/batchTransact.js | 28 +++++++++++++++++----------- 2 files changed, 18 insertions(+), 11 deletions(-) diff --git a/index.d.ts b/index.d.ts index 37cd984..65023f9 100644 --- a/index.d.ts +++ b/index.d.ts @@ -6,6 +6,7 @@ export interface TransactionItem { onSuccess: any; onFail: any; updateNextStep: any; + skipCondition:string } type BatchTransactType = { [key: string]: TransactionItem[]; diff --git a/src/libs/batchTransact.js b/src/libs/batchTransact.js index 29bb96c..89d1818 100644 --- a/src/libs/batchTransact.js +++ b/src/libs/batchTransact.js @@ -32,36 +32,38 @@ export const BatchTransaction = class BatchTransaction { var trxIndex = 0; self.trxArray.forEach((subArray, i) => { subArray.forEach((el, j) => { - self.trxArray[i][j].stepIndex = trxIndex; self.trxArray[i][j].state = 'idle'; + self.trxArray[i][j].onSuccessMain = async (data, _this) => { const stepIndex = _this.stepIndex; const onSucessCall = el.onSuccess; - const onFailCall = el.onFail + const onFailCall = el.onError; + const ErrorStat = data.err?data.err:data.Err?data.Err:data.ERR; - if (data.err || data.Err || data.ERR) { + if (ErrorStat && (JSON.stringify(ErrorStat) != el?.skipCondition)) { self.failedSteps.push(self.stepsList[stepIndex]); - self.transactionResults[self.stepsList[stepIndex]] = data; + self.transactionResults[self.stepsList[stepIndex]] = ErrorStat; self.state = 'error'; _this.state = 'error'; - if (onFailCall) await onFailCall(data) + + if (onFailCall) await onFailCall(ErrorStat) return false; } else { self.completed.push(self.stepsList[stepIndex]); self.activeStep = self.stepsList[stepIndex + 1]; - self.transactionResults[self.stepsList[stepIndex]] = data; + self.transactionResults[self.stepsList[stepIndex]] = ErrorStat?ErrorStat: data; _this.state = 'done'; } if (_this.updateNextStep && self.trxArray[(i + 1)]) { await _this.updateNextStep(data, self.trxArray[(i + 1)][0]); } - if (onSucessCall) await onSucessCall(data) + if (onSucessCall) await onSucessCall(ErrorStat?ErrorStat: data) }; self.trxArray[i][j].onFailMain = async (err, _this) => { - const onFailCall = el.onFail - const stepIndex = _this.stepIndex;; + const onFailCall = el.onFailCall; + const stepIndex = _this.stepIndex; console.error(`error in ${self.stepsList[stepIndex]} `, self.trxArray[i][j]) console.error(err); self.failedSteps.push(self.stepsList[stepIndex]); @@ -121,9 +123,13 @@ export const BatchTransaction = class BatchTransaction { var actor = await self._adapterObj.getCanisterActor(trxItem.canisterId, trxItem.idl, false, true); var resp = false; if (trxItem.methodName) { - if (trxItem.args) { resp = await actor[trxItem.methodName](...trxItem.args); } + if (trxItem.args) { + resp = await actor[trxItem.methodName](...trxItem.args); + } else { resp = await actor[trxItem.methodName](); } - } else { await trxItem.onFailMain(resp); } + } else { + await trxItem.onFailMain(resp); + } if (resp) { await trxItem.onSuccessMain(resp, trxItem); } else { await trxItem.onFailMain(resp, trxItem); } } From 81f161d91424f020b36a509940c599813078d2be Mon Sep 17 00:00:00 2001 From: jomongeorge Date: Fri, 12 Jul 2024 16:10:38 +0530 Subject: [PATCH 2/6] build 1.1.6 --- dist/bundle.js | 2 +- package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dist/bundle.js b/dist/bundle.js index 7128c26..bde7e1f 100644 --- a/dist/bundle.js +++ b/dist/bundle.js @@ -1,2 +1,2 @@ /*! For license information please see bundle.js.LICENSE.txt */ -(function(){var __webpack_modules__={9251:function(e,t,n){"use strict";n.r(t),n.d(t,{encodePath:function(){return l},request:function(){return u}});var r=n(7897),i=n(4192),o=n(3080),a=n(2995),s=n(1723),c=n(8870);const u=async e=>{const{canisterId:t,agent:n,paths:r}=e,a=[...new Set(r)],s=a.map((e=>l(e,t))),u=new Map,p=a.map(((e,r)=>(async()=>{var p;try{const i=await n.readState(t,{paths:[s[r]]}),p=(await o.us.create({certificate:i.certificate,rootKey:n.rootKey,canisterId:t})).lookup(l(a[r],t));if(p)switch(e){case"time":u.set(e,(0,c.A)(p));break;case"controllers":u.set(e,h(p));break;case"module_hash":u.set(e,f(p));break;case"candid":u.set(e,(new TextDecoder).decode(p));break;default:if("string"!=typeof e&&"key"in e&&"path"in e)switch(e.decodeStrategy){case"raw":u.set(e.key,p);break;case"leb128":u.set(e.key,(0,c.b)(p));break;case"cbor":u.set(e.key,d(p));break;case"hex":u.set(e.key,f(p));break;case"utf-8":u.set(e.key,A(p))}}else console.warn(`Expected to find result for path ${e}, but instead found nothing.`),"string"==typeof e?u.set(e,null):u.set(e.key,null)}catch(t){if(null===(p=null==t?void 0:t.message)||void 0===p?void 0:p.includes("Invalid certificate"))throw new i.Y(t.message);"string"!=typeof e&&"key"in e&&"path"in e?u.set(e.key,null):u.set(e,null),console.group(),console.warn(`Expected to find result for path ${e}, but instead found nothing.`),console.warn(t),console.groupEnd()}})()));return await Promise.all(p),u},l=(e,t)=>{const n=new TextEncoder,r=e=>new DataView(n.encode(e).buffer).buffer,i=new DataView(t.toUint8Array().buffer).buffer;switch(e){case"time":return[r("time")];case"controllers":return[r("canister"),i,r("controllers")];case"module_hash":return[r("canister"),i,r("module_hash")];case"subnet":return[r("subnet")];case"candid":return[r("canister"),i,r("metadata"),r("candid:service")];default:if("key"in e&&"path"in e){if("string"==typeof e.path||e.path instanceof ArrayBuffer){const t=e.path,n="string"==typeof t?r(t):t;return[r("canister"),i,r("metadata"),n]}return e.path}}throw new Error(`An unexpeected error was encountered while encoding your path for canister status. Please ensure that your path, ${e} was formatted correctly.`)},f=e=>(0,a.nj)(e),d=e=>s.D4(e),A=e=>(new TextDecoder).decode(e),h=e=>{const[t,...n]=d(e);return n.map((e=>r.p.fromUint8Array(new Uint8Array(e))))}},1723:function(e,t,n){"use strict";n.d(t,{D4:function(){return f},lF:function(){return c}});var r=n(7516),i=n(9283),o=n(2995);const a=i.SelfDescribeCborSerializer.withDefaultEncoders(!0);var s;function c(e){return a.serialize(e)}function u(e){const t=e.byteLength;let n=BigInt(0);for(let r=0;rBigInt(0)?i.value.tagged(2,i.value.bytes((0,o.aD)(e.toString(16)))):i.value.tagged(3,i.value.bytes((0,o.aD)((BigInt("-1")*e).toString(16))))}}),function(e){e[e.Uint64LittleEndian=71]="Uint64LittleEndian",e[e.Semantic=55799]="Semantic"}(s||(s={}));class l extends r.Decoder{createByteString(e){return(0,o.xW)(...e)}createByteStringFromHeap(e,t){return e===t?new ArrayBuffer(0):new Uint8Array(this._heap.slice(e,t))}}function f(e){const t=new Uint8Array(e);return new l({size:t.byteLength,tags:{2:e=>u(e),3:e=>-u(e),[s.Semantic]:e=>e}}).decodeFirst(t)}},3080:function(e,t,n){"use strict";n.d(t,{us:function(){return d}});var r=n(1723),i=n(4192),o=n(6968),a=n(2995),s=n(7897),c=n(4104),u=n(8870);class l extends i.Y{constructor(e){super(`Invalid certificate: ${e}`)}}function f(e,t){if(e.byteLength!==t.byteLength)return!1;const n=new Uint8Array(e),r=new Uint8Array(t);for(let e=0;em)throw new l("Certificate is signed more than 5 minutes in the future. Certificate time: "+b.toISOString()+" Current time: "+new Date(d).toISOString());try{o=await this._blsVerify(new Uint8Array(r),new Uint8Array(n),new Uint8Array(i))}catch(e){o=!1}if(!o)throw new l("Signature verification failed")}async _checkDelegationAndGetKey(e){if(!e)return this._rootKey;const t=await d.create({certificate:e.certificate,rootKey:this._rootKey,canisterId:this._canisterId,blsVerify:this._blsVerify,maxAgeInMinutes:43200}),n=t.lookup(["subnet",e.subnet_id,"canister_ranges"]);if(!n)throw new l(`Could not find canister ranges for subnet 0x${(0,a.nj)(e.subnet_id)}`);if(!r.D4(n).map((e=>[s.p.fromUint8Array(e[0]),s.p.fromUint8Array(e[1])])).some((e=>e[0].ltEq(this._canisterId)&&e[1].gtEq(this._canisterId))))throw new l(`Canister ${this._canisterId} not in range of delegations for subnet 0x${(0,a.nj)(e.subnet_id)}`);const i=t.lookup(["subnet",e.subnet_id,"public_key"]);if(!i)throw new Error(`Could not find subnet key for subnet 0x${(0,a.nj)(e.subnet_id)}`);return i}}const A=(0,a.aD)("308182301d060d2b0601040182dc7c0503010201060c2b0601040182dc7c05030201036100"),h=96;async function p(e){switch(e[0]){case 0:return(0,o.tW)(g("ic-hashtree-empty"));case 4:return e[1];case 3:return(0,o.tW)((0,a.xW)(g("ic-hashtree-leaf"),e[1]));case 2:return(0,o.tW)((0,a.xW)(g("ic-hashtree-labeled"),e[1],await p(e[2])));case 1:return(0,o.tW)((0,a.xW)(g("ic-hashtree-fork"),await p(e[1]),await p(e[2])));default:throw new Error("unreachable")}}function g(e){const t=new Uint8Array([e.length]),n=(new TextEncoder).encode(e);return(0,a.xW)(t,n)}function y(e,t){if(0===e.length)return 3===t[0]?new Uint8Array(t[1]).buffer:void 0;const n=function(e,t){if(0!==t.length)for(const n of t)if(2===n[0]&&f(e,n[1]))return n[2]}("string"==typeof e[0]?(new TextEncoder).encode(e[0]):e[0],m(t));return n?y(e.slice(1),n):void 0}function m(e){switch(e[0]){case 0:return[];case 1:return m(e[1]).concat(m(e[2]));default:return[e]}}},4192:function(e,t,n){"use strict";n.d(t,{Y:function(){return r}});class r extends Error{constructor(e){super(e),this.message=e,Object.setPrototypeOf(this,r.prototype)}}},6968:function(e,t,n){"use strict";n.d(t,{Gb:function(){return l},tW:function(){return s}});var r=n(467),i=n(7516),o=n(8226),a=n(2995);function s(e){return(0,a.Nn)(o.s.create().update(new Uint8Array(e)).digest())}function c(e){if(e instanceof i.Tagged)return c(e.value);if("string"==typeof e)return u(e);if("number"==typeof e)return s((0,r.kk)(e));if(e instanceof ArrayBuffer||ArrayBuffer.isView(e))return s(e);if(Array.isArray(e)){const t=e.map(c);return s((0,a.xW)(...t))}if(e&&"object"==typeof e&&e._isPrincipal)return s(e.toUint8Array());if("object"==typeof e&&null!==e&&"function"==typeof e.toHash)return c(e.toHash());if("bigint"==typeof e)return s((0,r.kk)(e));throw Object.assign(new Error(`Attempt to hash a value of unsupported type: ${e}`),{value:e})}const u=e=>s((new TextEncoder).encode(e));function l(e){const t=Object.entries(e).filter((([,e])=>void 0!==e)).map((([e,t])=>[u(e),c(t)])).sort((([e],[t])=>(0,a.UD)(e,t)));return s((0,a.xW)(...t.map((e=>(0,a.xW)(...e)))))}},4104:function(e,t,n){"use strict";let r;n.d(t,{r:function(){return u}});const i=n(3371).D("AGFzbQEAAAABXg9gAn9/AGABfwBgAX8Bf2ADf39/AGACf38Bf2ADf39/AX9gBH9/f38AYAF/AX5gBX9/f39/AGAAAX9gBn9/f39/fwBgBn9/f39/fwF/YAJ/fwF+YAV/fn5+fgBgAAAD3wHdAQIAAAABAwoAAAAIBgQAAwEDAAEBAQAAAQAJAQMAAwEACAEDAwQAAwsADAIBAAEADQMEAAAAAgEBAAABAwABAQMEAAEBAQEBAQEAAAMBAgUABAEFBAEBAgIEAwQDAAAAAwAAAAABDgABAgAAAAEAAwMAAQMAAwYCAAAABAABAAABAQYBAwAAAgICAgIBAAMABAACAQAAAwAAAAAAAQEBAQIAAAEEAQMAAAABAAAEAgABAQEBAQEBAQEBBAQAAgMAAAABAAICAAIEBAEBAgICAgAEBQQEAgIJBwcHAQMDBAUBcAESEgUDAQARBgkBfwFBgIDAAAsHNwQGbWVtb3J5AgAIYmxzX2luaXQA1gEKYmxzX3ZlcmlmeQAnEV9fd2JpbmRnZW5fbWFsbG9jAGgJIQEAQQELEcgBQdoBTroBQH/XAdgBgAEcJVy7AccB2gHZAQr44QLdAd0hAg9/AX4jAEEQayIIJAACQAJAIABB9QFPBEBBgIB8QQhBCBCjAUEUQQgQowFqQRBBCBCjAWprQXdxQQNrIgJBAEEQQQgQowFBAnRrIgUgAiAFSRsgAE0NAiAAQQRqQQgQowEhBEHgu8AAKAIARQ0BQQAgBGshAQJAAkACf0EAIARBgAJJDQAaQR8gBEH///8HSw0AGiAEQQYgBEEIdmciAGt2QQFxIABBAXRrQT5qCyIHQQJ0Qey9wABqKAIAIgAEQCAEIAcQnwF0IQZBACECA0ACQCAAEMsBIgUgBEkNACAFIARrIgUgAU8NACAAIQIgBSIB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NAiACIAAQjAEgAkGAAmoiBEE4ENABGiACQQE2ArgCIAJBwAJqQTgQ0AEaIAJB+AJqQQE2AgAgAkGAA2pBOBDQARogAkG4A2pBATYCACACQcADakE4ENABGiACQfgDakEBNgIAIAJBgARqQTgQ0AEaIAJBATYCuAQgAkHABGpBOBDQARogAkH4BGpBATYCACACQYAFakE4ENABGiACQbgFakEBNgIAIAJBwAVqQTgQ0AEaIAJB+AVqQQE2AgAgAkGABmoiB0E4ENABGiACQQE2ArgGIAJBwAZqQTgQ0AEaIAJB+AZqQQE2AgAgAkGAB2pBOBDQARogAkG4B2pBATYCACACQcAHakE4ENABGiACQfgHakEBNgIAIAJBgAhqIgMgABCMASACQYAKakE4ENABGiACQQE2ArgKIAJBwApqQTgQ0AEaIAJB+ApqQQE2AgAgAkGAC2pBOBDQARogAkG4C2pBATYCACACQcALakE4ENABGiACQfgLakEBNgIAIAIgARAYIAMgAEGAAmoiBhCXASADELABIAQgAxCWASAEIAEQGCADIAYQlgEgAyAAQYAEaiIFEJcBIAMQsAEgByADEJYBIAEoAoAGQQJGDQMgAkHADGoiAyABQYAFahBeIAJBgAZqIAMQpgEMBAsgACABEG0MCAsgAiAAEIwBIAJBgAJqQTgQ0AEaIAJBATYCuAIgAkHAAmpBOBDQARogAkH4AmpBATYCACACQYADakE4ENABGiACQbgDakEBNgIAIAJBwANqQTgQ0AEaIAJB+ANqQQE2AgAgAkGABGpBOBDQARogAkEBNgK4BCACQcAEakE4ENABGiACQfgEakEBNgIAIAJBgAVqQTgQ0AEaIAJBuAVqQQE2AgAgAkHABWpBOBDQARogAkH4BWpBATYCACACQYAGakE4ENABGiACQQE2ArgGIAJBwAZqQTgQ0AEaIAJB+AZqQQE2AgAgAkGAB2pBOBDQARogAkG4B2pBATYCACACQcAHakE4ENABGiACQfgHakEBNgIAIAIgARAYAkAgASgCgAZBBEYNACAAKAKABkEERg0AIAJBgARqIgMgAEGAAmoQlgEgAyABQYACahAYDAYLIAJBwAxqIgdBOBDQARogAkEBNgL4DCACQYANakE4ENABGiACQbgNakEBNgIAIAJBgAhqIgRBOBDQARogAkEBNgK4CCACQcAIakE4ENABGiACQfgIakEBNgIAIAJBgApqIgMgAEGAA2oiBRBeIAQgAxCZASADIAFBgANqIgYQXiAEIAMQESAHELYBIAEoAoAGQQRHDQMMBAsgACABEAMMBgsgAkHADGoiAyABQYAFahBeIAJBgAxqIgQgA0HAABDRARogAkGABmogBBCnAQsgAkGABmoQZCACQYAIaiIDIAIQlgEgAxArIAJBgAJqIgQgAxCXASAGIAQQlgEgAkGABGoiByADEJYBIAMgABCWASADIAUQlwEgAxCwASACQYAKaiIEIAEQlgEgBCABQYAEahCXASAEELABIAMgBBAYIAcgAxCXASADIAUQlgECQCABKAKABkECRwRAIAJBwAxqIgMgAUGABWoQXiACQYAIaiADEKYBDAELIAJBwAxqIgMgAUGABWoQXiACQYAMaiIBIANBwAAQ0QEaIAJBgAhqIAEQpwELIAJBgAhqIgEQZCACQYAKaiIDIAEQlgEgAxArIAUgAkGABGoQlgEgBSADEJcBIAJBgAZqIgQgAxCXASABEGQgBiABEJcBIAQQsAEgBBBkIAAgAhCWASAAIAQQlwEMAwsgAkGACmoiAyAFEF4gAkHADGoiBCADEJkBIAMgAUGAAmoQXiAEIAMQEQsgACgCgAZBBEcEQCACQYAKaiIDIABBgAJqEF4gAkHADGoiBCADEJkBIAMgBhBeIAQgAxARCyACQYAEaiIDIAJBwAxqIAJBgAhqEKUBIAMQZAsgAkGACGoiAyAAEIwBIAJBgApqIgQgARCMASADIABBgAJqIgUQlwEgAxCwASAEIAFBgAJqIggQlwEgBBCwASACQYACaiIJIAMQlgEgCSAEEBggAyAFEJYBIAMgAEGABGoiBhCXASADELABIAQgCBCWASAEIAFBgARqIggQlwEgBBCwASACQYAGaiIHIAMQlgEgByAEEBggAyACEJYBIAMQKyAEIAJBgARqIgoQlgEgBBArIAkgAxCXASAFIAkQlgEgBSAEEJcBIAcgBBCXASAKIAMQlwEgAyAAEJYBIAMgB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IAIQEQJAIAEoAoAGIgJBAkYgACgCgAYiBEECRnJFBEAgA0GACGoiAiAAQYAFahBeIANBgAJqIgQgAhBeIAIgAUGABWoQXiAEIAIQEQwBCyACQQJGIARBAkZxRQRAIAJBAkYEQCADQYAIaiICIABBgAVqEF4gA0GAAmoiBCACEF4gAiABQYAFahBeIANBgAdqIgUgAkHAABDRARogBCAFEKoBDAILIANBgAhqIgIgAUGABWoQXiADQYACaiIEIAIQXiACIABBgAVqEF4gA0GAB2oiBSACQcAAENEBGiAEIAUQqgEMAQsgA0GACGoiAiAAQYAFahBeIANBgAdqIgQgAkHAABDRARogA0GABmoiBSAEEJABIAIgAUGABWoQXiAEIAJBwAAQ0QEaIAUgBBBKIANBgAJqQTgQ0AEiAkEBNgI4IAJBQGtBOBDQASACQfgAakEBNgIAIAIgBRCuARDBAQsgA0GACGoiAiAAEF4gA0GAA2oiBCACEF4gAiABEF4gA0GABGoiBSACEF4gAiAKEF4gBCACEJoBIAQQqQEgAiALEF4gBSACEJoBIAUQqQEgA0GABWoiByAEEF4gByAFEBEgA0GABmoiBiADEF4gBiADQYABaiIIEJoBIAYQNiAHIAYQmgEgAiAAEF4gBCACEJkBIAIgAEGABWoiDBBeIAQgAhCaASAEEKkBIAIgARBeIAUgAhCZASACIAFBgAVqIg0QXiAFIAIQmgEgBRCpASADQYAHaiIJIAQQXiAJIAUQESAGIAMQmQEgBiADQYACaiIBEJoBIAYQNiAJIAYQmgEgAiAKEF4gBCACEJkBIAIgDBBeIAQgAhCaASAEEKkBIAIgCxBeIAUgAhCZASACIA0QXiAFIAIQmgEgBRCpASACIAQQXiACIAUQESAGIAgQmQEgBiABEJoBIAYQNiACIAYQmgEgCBB8IAMgCBCaASAAIAMgBxClASABEHwgARCpASAAQYACaiIEQYABaiABEJkBIAQQtgEgAhCpASACEHwgAEGABGoiASACIAkQpQEgABCwASABELABIABBBDYCgAYgA0GACWokAAuHBwEFfyAAENUBIgAgABDLASICENIBIQECQAJAAkAgABDMAQ0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ACABQYgGENEBGgUgA0G4DWoQGiADQcAWaiADQbgKaiADQbgJaiADQfgJahALAkACQAJAIANBwAFqIAIQUyADQYgBaiACEFNrQQFqDgMBAgACCyADQcgcaiIBIANBuApqIANB+ARqIANBuAlqIANB+AlqEAogA0HAFmogARADDAELIANByBxqIgEgA0G4CmogA0HAE2ogA0G4CWogA0H4CWoQCiADQcAWaiABEAMLIAJBAWshAiADQbgNaiADQcAWahABDAELCwsgA0HQImokAAvBAwEVfwNAIANBwAFGBEACQCAAQShqIQsgAEEUaigCACIMIQggAEEQaigCACINIQIgAEEMaigCACIOIQEgACgCCCIPIQMgAEEYaigCACIQIQogAEEcaigCACIRIQQgAEEgaigCACISIQcgAEEkaigCACITIQYDQCAHIQkgBCEHIAohBCAFQYACRg0BIAEgAnEhFCABIAJzIRUgBSALaigCACAFQcCiwABqKAIAIAkgBEF/c3EgBCAHcXIgBmogBEEadyAEQRV3cyAEQQd3c2pqaiIGIAhqIQogBUEEaiEFIAIhCCABIQIgAyIBQR53IAFBE3dzIAFBCndzIBQgASAVcXNqIAZqIQMgCSEGDAALAAsFIAAgA2oiAkHoAGogAkEoaigCACACQcwAaigCACACQeAAaigCACIBQQ93IAFBDXdzIAFBCnZzamogAkEsaigCACIBQRl3IAFBDndzIAFBA3ZzajYCACADQQRqIQMMAQsLIAAgBiATajYCJCAAIAkgEmo2AiAgACAHIBFqNgIcIAAgBCAQajYCGCAAIAggDGo2AhQgACACIA1qNgIQIAAgASAOajYCDCAAIAMgD2o2AggL5AEBAn8jAEGAA2siAyQAIAMQPSAAIAEgAkEfdSIEIAJzIARBf3NqQQJtIgJBAWtBH3YQbyAAIAFBgANqIAJBAXNBAWtBH3YQbyAAIAFBgAZqIAJBAnNBAWtBH3YQbyAAIAFBgAlqIAJBA3NBAWtBH3YQbyAAIAFBgAxqIAJBBHNBAWtBH3YQbyAAIAFBgA9qIAJBBXNBAWtBH3YQbyAAIAFBgBJqIAJBBnNBAWtBH3YQbyAAIAFBgBVqIA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IayIBJAAgASAAEIwBIAFBgAJqIgMgAEGABGoiBRCMASABQYAEaiIEIABBgAJqIgYQjAEgAUGABmoiAkE4ENABGiABQQE2ArgGIAFBwAZqQTgQ0AEaIAFB+AZqQQE2AgAgAUGAB2pBOBDQARogAUG4B2pBATYCACABQcAHakE4ENABGiABQfgHakEBNgIAIAAQISACIAAQlgEgAiAAEJcBIAAgAhCXASAAELABIAEQyQEgARCzASAAIAEQlwEgAxAhIAMQZCACIAMQlgEgAiADEJcBIAMgAhCXASADELABIAQQISACIAQQlgEgAiAEEJcBIAQgAhCXASAEELABIAYQsgEgBhCzASAFEMkBIAUQswEgBiADEJcBIAUgBBCXASAAQQU2AoAGIAAQnAEgAUGACGokAAv/AQEHfyMAQcACayIBJAAgASAAQUBrIgYQkAEgARBMIAFBQGsiAyAGEJABIAMgAEGAAWoiAhBKIAFBgAFqIgQgAhCQASAEEEwgAiABEK4BIAIgARB3IAIQQiACEIIBIAIQggEgAhBCIARBDBA0IAFBwAFqIgcgBBCQASAHIAIQSiABQYACaiIFIAEQkAEgBSAEEHcgBRBCIAIgAxBKIAMgBBCuASADIAQQdyAEIAMQdyABIAQQfiABEEIgBSABEEogBSAHEHcgAyAAEK4BIAMgBhBKIAAgARCuASAAEEIgACADEEogABCCASAAEEIgBiAFEK4BIAYQQiABQcACaiQAC84CAgd/An4CQAJAAkBBDSABQTpuIgJrIgRBDU0EQEEMIAJrIgNBDk8NASAAIAAgA0EDdGopAwBBOiABIAJBOmxrIgNrrSIKhyAAIARBA3RqKQMAIAOtIgmGhDcDaCAEQQ1rIQUgAEHgAGohBCACQQFqIQZBACACQQN0ayEHQQshAwNAAkAgA0ECaiAGTQRAIAFBrAZPDQEgACACQQN0aiAAKQMAIAmGQv//////////A4M3AwADQCACRQ0HIABCADcDACACQQFrIQIgAEEIaiEADAALAAsgAyAFakEOTw0EIAQgBCAHaiIIQQhrKQMAIAqHIAgpAwAgCYZC//////////8Dg4Q3AwAgA0EBayEDIARBCGshBAwBCwsgAkEOQYCywAAQOwALIARBDkHQscAAEDsACyADQQ5B4LHAABA7AAtBf0EOQfCxwAAQOwALC6cCAQR/IABCADcCECAAAn9BACABQYACSQ0AGkEfIAFB////B0sNABogAUEGIAFBCHZnIgNrdkEBcSADQQF0a0E+agsiBDYCHCAEQQJ0Qey9wABqIQMgACECAkACQAJAAkBB4LvAACgCACIAQQEgBHQiBXEEQCADKAIAIQMgBBCfASEAIAMQywEgAUcNASADIQAMAgtB4LvAACAAIAVyNgIAIAMgAjYCAAwDCyABIAB0IQQDQCADIARBHXZBBHFqQRBqIgUoAgAiAEUNAiAEQQF0IQQgACIDEMsBIAFHDQALCyAAKAIIIgEgAjYCDCAAIAI2AgggAiAANgIMIAIgATYCCCACQQA2AhgPCyAFIAI2AgALIAIgAzYCGCACIAI2AgggAiACNgIMC7YCAQV/IAAoAhghBAJAAkAgACAAKAIMRgRAIABBFEEQIABBFGoiASgCACIDG2ooAgAiAg0BQQAhAQwCCyAAKAIIIgIgACgCDCIBNgIMIAEgAjYCCAwBCyABIABBEGogAxshAwNAIAMhBSACIgFBFGoiAygCACICRQRAIAFBEGohAyABKAIQIQILIAINAAsgBUEANgIACwJAIARFDQACQCAAIAAoAhxBAnRB7L3AAGoiAigCAEcEQCAEQRBBFCAEKAIQIABGG2ogATYCACABDQEMAgsgAiABNgIAIAENAEHgu8AAQeC7wAAoAgBBfiAAKAIcd3E2AgAPCyABIAQ2AhggACgCECICBEAgASACNgIQIAIgATYCGAsgAEEUaigCACIARQ0AIAFBFGogADYCACAAIAE2AhgLC+UBAQZ/IwBBgARrIgIkACACIAAQXiACQYABaiIFIABBgAFqIgYQXiACQYACaiIDQTgQ0AEaIAJBATYCuAIgAkHAAmpBOBDQARogAkH4AmpBATYCACACQYADaiIEIAYQXiACIAEQESAFIAFBgAFqIgcQESADIAcQmQEgAyABEJoBIAQgABCaASADEKkBIAQQqQEgBCADEBEgAyACEJkBIAMQNiAEIAMQmgEgBBCpASADIAUQmQEgAxA2IAYgBBCZASAGIAMQmgEgBRB8IAAgBRCZASAAIAIQmgEgABCwASACQYAEaiQAC28BDH9BjL/AACgCACICRQRAQZy/wABB/x82AgBBAA8LQYS/wAAhBgNAIAIiASgCCCECIAEoAgQhAyABKAIAIQQgAUEMaigCABogASEGIAVBAWohBSACDQALQZy/wAAgBUH/HyAFQf8fSxs2AgBBAAuAAgEGfyMAQYAIayIBJAAgACgCgAZBAUcEQCABIAAQjAEgAUGAAmoiAiAAQYACaiIEEIwBIAFBgARqIgUgAEGABGoiAxCMASABQYAGaiIGIAAQjAEgARAhIAIgAxAYIAIQswEgAhCwASAFECEgBiAEEBggBhCzASADIAAQlwEgAyAEEJcBIAMQsAEgAxAhIAAgARCWASABIAIQlwEgARCwASABIAUQlwEgASAGEJcBIAEQsAEgARArIAIQZCAFEGQgACACEJcBIAQgBRCWASAEIAYQlwEgAyABEJcBIABBBEEFIAAoAoAGQX5xQQJGGzYCgAYgABCdAQsgAUGACGokAAuZAgEBfyMAQYANayIDJAAgAyABEGkgAxCdASADQYgGaiIBIAIQXSABEEIgA0HABmoiAiABEF0gAkEDECkaIAIQQiADQfgGaiADEGkCQCACEFdFBEAgA0HABmoQKkECayECA0AgAkEBakEBTQRAIANB+AZqIgEQnAEMAwUgA0H4BmoQEwJAAkACQCADQcAGaiACEFMgA0GIBmogAhBTa0EBag4DAQIAAgsgA0H4BmogAxAHDAELIAMQngEgA0H4BmogAxAHIAMQngELIAJBAWshAgwBCwALAAsgA0H4BmoiARC3ASABQYABahC2ASABQYACahCxASABQYAEahCxASABQQE2AoAGCyAAIAFBiAYQ0QEaIANBgA1qJAALhgICBH8BfiMAQTBrIgIkACABQQRqIQQgASgCBEUEQCABKAIAIQMgAkEQaiIFQQA2AgAgAkIBNwMIIAIgAkEIajYCFCACQShqIANBEGopAgA3AwAgAkEgaiADQQhqKQIANwMAIAIgAykCADcDGCACQRRqIAJBGGoQDBogBEEIaiAFKAIANgIAIAQgAikDCDcCAAsgAkEgaiIDIARBCGoo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ANBMGogAxBwIAFBMGohAUEAIQIDQCACQTBGDQMgAkEwRg0EIAIgA2ogASACai0AADoAACACQQFqIQIMAAsACyACQeAARwRAIAIgA2ogASACai0AADoAACACQQFqIQIMAQsLQeAAQeAAQYCmwAAQOwALIANB8ABqIgEgAxBwIABBOBDQASIAQQE2AjggAEFAa0E4ENABIABB+ABqQQE2AgAgACABEK4BIANBMGoQrgEgA0GwAWokAA8LIAJBMGpB4ABBkKbAABA7AAuPAgEDfyMAQSBrIgUkAEEBIQZB2LvAAEHYu8AAKAIAIgdBAWo2AgACQEGgv8AALQAABEBBpL/AACgCAEEBaiEGDAELQaC/wABBAToAAAtBpL/AACAGNgIAAkACQCAHQQBIIAZBAktyDQAgBSAEOgAYIAUgAzYCFCAFIAI2AhBBzLvAACgCACICQQBIDQBBzLvAACACQQFqIgI2AgBBzLvAAEHUu8AAKAIAIgMEf0HQu8AAKAIAIAUgACABKAIQEQAAIAUgBSkDADcDCCAFQQhqIAMoAhQRAABBzLvAACgCAAUgAgtBAWs2AgAgBkEBSw0AIAQNAQsACyMAQRBrIgIkACACIAE2AgwgAiAANgIIAAucAQEEfyMAQYADayICJAAgAiAAEF4gAkGAAWoiASAAQYABaiIEEF4gAkGAAmoiAyAAEF4gAyAEEBEgAiAEEJoBIAEQfCABIAAQmgEgAhCpASABEKkBIAAgAhCZASAAIAEQESABIAMQmQEgARB8IAEgAxCaASABEKkBIAEQNiAAIAEQmgEgAxC4ASAEIAMQmQEgABCwASACQYADaiQAC7kBAQJ/IwBBIGsiAyQAAkAgASABIAJqIgFLDQAgAEEEaigCACICQQF0IgQgASABIARJGyIBQQggAUEISxshAQJAIAIEQCADQRhqQQE2AgAgAyACNgIUIAMgACgCADYCEAwBCyADQQA2AhALIAMgASADQRBqECYgAygCAARAIANBCGooAgAiAEUNASADKAIEIAAQzwEACyADKAIEIQIgAEEEaiABNgIAIAAgAjYCACADQSBqJAAPCxBlAAusAQECfyMAQYADayIDJAAgA0EIaiABEJABAkAgAgRAIANBCGogAhCuAQwBCyADQQhqEDoLIANByABqIgJB8LTAABBJIANBgAFqIAIQjgEgA0HAAWoiAiADQQhqIgQQkAEgAhBMIAIgARBKIAAgARCQASAAIAQQSiADQYACaiACEJABIAAQViEBIANBwAJqIgIgABCQASACEEMgAhBCIAAgAiABEHIgA0GAA2okAAueAQEFfyMAQYABayICJAAgAkE4ENABIgJBATYCOCACQUBrIgNBOBDQARogAkEBNgJ4IAIgABCuASACIAFBgAFqIgUQSiADIAEQrgEgAyAAQYABaiIGEEoCQCACIAMQWEUNACACIABBQGsQrgEgAiAFEEogAkFAayIAIAFBQGsQrgEgACAGEEogAiAAEFhFDQBBASEECyACQYABaiQAIAQLpwEBA38jAEEwayICJAAgAUEEaiEDIAEoAgRFBEAgASgCACEBIAJBEGoiBEEANgIAIAJCATcDCCACIAJBCGo2AhQgAkEoaiABQRBqKQIANwMAIAJBIGogAUEIaikCADcDACACIAEpAgA3AxggAkEUaiACQRhqEAwaIANBCGogBCgCADYCACADIAIpAwg3AgALIABBhLfAADYCBCAAIAM2AgAgAkEwaiQAC5UBAQJ/AkACQAJAAkACfwJAAkACf0EBIgMgAUEASA0AGiACKAIAIgRFDQEgAigCBCICDQQgAQ0CQQEMAwshA0EAIQEMBgsgAQ0AQQEMAQsgAUEBELkBCyICRQ0BDAILIAQgARCsASICDQELIAAgATYCBEEBIQEMAQsgACACNgIEQQAhAwsgACADNgIAIABBCGogATYCAAvvMwISfwV+IwBBMGsiDiQAIA5BEGogACABEFsgDiAOKAIUIgA2AhwgDiAOKAIQIgg2AhggDkEIaiACIAMQWyAOIA4oAgwiATYCJCAOIA4oAggiAzYCICAOIAQgBRBbIA4gDigCBCIFNgIsIA4gDigCACINNgIoIAAhBCMAQZAVayICJAAjAEGwBmsiCiQAIApBEGpBOBDQARogCkHQAGpBOBDQASEVIApBiAFqQQE2AgAgCkEBNgJIIApBkAFqIgBB2KTAABBJIAAQKiEPIApByAFqIhNBgAIQ0AEaIApByANqQYABENABGiMA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38BfiMAQUBqIgIkACACQQhqIgEgABBdIAEQQiACQThqIQFBBiEDQdwCIQACQAJAA0AgA0EATgRAIAEpAwAiBEIAUg0CIAFBCGshASAAQTprIQAgA0EBayEDDAELC0EAIQAMAQsDQCAEUA0BIABBAWohACAEQgJ/IQQMAAsACyACQUBrJAAgAAuHAQEDfyMAQYACayIBJAAgABCwASABIAAQXiABQYABaiICQTgQ0AEaIAFBATYCuAEgAUHAAWpBOBDQARogAUH4AWpBATYCACABIABBgAFqIgMQmgEgARA2IAIgARCZASACIAMQmgEgAyABEJkBIAMgABCaASAAIAIQmQEgABCwASABQYACaiQAC30CBH4BfyABQT9xrSECQTogAWtBP3GtIQRBACEBIAApAwAiBSEDA38gAUEwRgR/IAAgACkDMCAChzcDMCAFQn8gAoZCf4WDpwUgACABaiIGIAMgAocgBkEIaikDACIDIASGQv//////////A4OENwMAIAFBCGohAQwBCwsaC2kBBH8jAEHAAWsiASQAIAEgABCQASABQUBrIgIgABCQASABQYABaiIDIABBQGsiBBCQASABIAQQdyACIAAQdyACEEIgBCACEEogAxBDIAAgAxB3IAEQQiAAEEIgACABEEogAUHAAWokAAuCAQIBfwF+IABB8AAQ0AEhAANAIAJBOEYEQAJAIAAgASkDMCIDQjqHNwM4IAAgA0L//////////wODNwMwIABBQGshAEEAIQIDQCACQTBGDQEgACACakIANwMAIAJBCGohAgwACwALBSAAIAJqIAEgAmopAwA3AwAgAkEIaiECDAELCwtuAQZ+IAAgA0L/////D4MiBSABQv////8PgyIGfiIHIAUgAUIgiCIIfiIJIAYgA0IgiCIGfnwiBUIghnwiCjcDACAAIAcgClatIAYgCH4gBSAJVK1CIIYgBUIgiIR8fCABIAR+IAIgA358fDcDCAtqAgF/BX4gASkDCCAAKQMAhSIGQgGGQgGHIQdBACACa6whCAN+IANBOEYEfiAFBSAAIANqIgIgAikDACIEIAaFIAEgA2opAwAgBIUgCIOFIgQgB4U3AwAgBCAFhSEFIANBCGohAwwBCwsaC18CAX8EfkIBIQNBMC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QJ/IwBBQGoiAyQAIABBOBDQASIAQQE2AjgCQCABQQBOBEAgACABEJMBDAELIANBCGoiAkHAssAAEEkgAiABEJMBIAIQQiAAIAIQagsgABBUIANBQGskAAu9CAEKfyMAQYABayIHJAAgB0EIaiIDQcCywAAQSSADQQEQlAECQAJAA0AgAUEwRgRAIANBMGogAykDMEIBhzcDACADQThqIQEDQCACRQ0EIAFCADcDACACQQFrIQIgAUEIaiEBDAALAAsgAUE4Rg0BIAFBOEcEQCABIANqIAEgA2oiBEEIaikDAEI5hkL//////////wODIAQpAwBCAYeENwMAIAVBAWohBSABQQhqIQEMAQsLQQdBB0GEm8AAEDsACyAFQQdB9JrAABA7AAsgA0EBEJQBIANBARAsIAdBQGshBUEAIQIjAEGgCmsiASQAIAFBOBDQASIBQUBrQTgQ0AEhBiABQYABakE4ENABGiABQcABakE4ENABGiABQYACakE4ENABGiABQcACakE4ENABGiABQYADakE4ENABGiABQcADakE4ENABGiABQYAEakE4ENABGiABQcAEakE4ENABGiABQYAFakE4ENABGiABQcAFakE4ENABGiABQYAGakE4ENABGiABQcAGakE4ENABGiABQYAHakE4ENABGiABQcAHakE4ENABGiABQfgHakEBNgIAIAFBuAdqQQE2AgAgAUH4BmpBATYCACABQbgGakEBNgIAIAFB+AVqQQE2AgAgAUG4BWpBATYCACABQfgEakEBNgIAIAFBuARqQQE2AgAgAUH4A2pBATYCACABQbgDakEBNgIAIAFB+AJqQQE2AgAgAUG4AmpBATYCACABQfgBakEBNgIAIAFBuAFqQQE2AgAgAUH4AGpBATYCACABQQE2AjggAUGBCGpB5wAQ0AEaIAFB6AhqIgQgABCQASAEEEIgAUGoCWoiBCADEF0gBBBCIAQQKkEDaiIIQQJ2IgNBAWohCQJAA0AgAiAJRgRAIAEQygEgBiABQegIahCuASABQeAJakE4ENABGiABQQE2ApgKQYB5IQIMAgsgAUGoCWoiBCAEQQQQjwEiChCUASAEEEIgAkHnAEcEQCABQYEIaiACaiAKOgAAIAFBqAlqQQQQLCACQQ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AgAkEQaiABQQhqKQIANwMAIAIgASkCADcDCCACQQRqIAJBCGoQDCACQSBqJAALZwAjAEEwayIBJABBpLvAAC0AAARAIAFBHGpBATYCACABQgI3AgwgAUGQtsAANgIIIAFBATYCJCABIAA2AiwgASABQSBqNgIYIAEgAUEsajYCICABQQhqQbi2wAAQZgALIAFBMGokAAtiAgF+An8gACkDACEBA34gACACaiIDIAFC//////////8DgzcDACABQjqHIQEgAkEoRgR+IAAgACkDMCABfCIBNwMwIAFCJIcFIAJBCGohAiADQQhqKQMAIAF8IQEMAQsLGgt8AQV/IwBBQGoiAyQAIANBCGoiAkHAssAAEEkgAiAAKAI4QQFrEDUiBBAoA0AgAUE4RwRAIAAgAWoiBSABIAJqKQMAIAUpAwB9NwMAIAFBCGohAQwBCwsgAEEBIARBAWp0IgI2AjggAkH///8PSgRAIAAQHgsgA0FAayQAC3sBAn8gAEEoaiECA0AgAUGAAkYEQCAAQufMp9DW0Ouzu383AgggAEIANwIAIABBIGpCq7OP/JGjs/DbADcCACAAQRhqQv+kuYjFkdqCm383AgAgAEEQakLy5rvjo6f9p6V/NwIABSABIAJqQQA2AgAgAUEEaiEBDAELCwtUACAAQTgQ0AEiAEEBNgI4IABBQGtBOBDQARogAEH4AGpBATYCACAAQYABakE4ENABGiAAQbgBakEBNgIAIABBwAFqQTgQ0AEaIABB+AFqQQE2AgALWAECfyMAQUBqIgEkAAJAIAAQhgENACABQQEQOSAAQYABaiICIAEQWA0AIAJBABAzIAAgAhBKIAAQHiAAQUBrIgAgAhBKIAAQHiACIAEQrgELIAFBQGskAAtZAQJ/IwBBgAFrIgEkAAJAIAAQigENACABEFEgAEGAAmoiAiABEHoNACACED4gACACEBEgABC1ASAAQYABaiIAIAIQESAAELUBIAIgARCZAQsgAUGAAWokAAtbAgF+An8gACkDACEBA0AgACACaiIDIAFC//////////8DgzcDACABQjqHIQEgAkHgAEYEQCAAIAApA2ggAXw3A2gFIAJBCGohAiADQQhqKQMAIAF8IQEMAQsLC08BA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gAEUEQEEEDwsgACAAQX1JQQJ0ELkBIgBFDQAgAA8LAAs4ACAAEIsBIAAgARCWASAAQYACaiABQYACahCWASAAQYAEaiABQYAEahCWASAAIAEoAoAGNgKABgsoAQF/A0AgAkE4RwRAIAAgAmogASACaikDADcDACACQQhqIQIMAQsLC4QJAg1/Cn4jAEFAaiILJAAgC0EIaiIJQcCywAAQSSMAQZACayICJAAgAEEwENABIQogAkHoAGpB8AAQ0AEaIAJB4AFqQTAQ0AEaIAoQcSACIAEiDCkDACIQQv3/8//P///5AX5C//////////8DgyISNwPYASACQdgAaiASQgAgCSkDACIXIBdCP4ciGBAvIBAgAikDWCIPfCITIA9UrSACQeAAaikDACAQQj+HfHwiEEI6hyABKQMIIg9CP4d8IA8gEEIGhiATQjqIhCITfCIQIBNUrXwhD0EBIQBCACETAkACQANAAkAgAEEHRgRAQQYhB0EAIQhBByEADAELIABBAXYiAUEBaiEGIAggAWshAyABQQN0IgFBCGohBCAHIAFrIQUgAkHIAGogCSAAQQN0Ig1qKQMAIhUgFUI/hyIWIBJCABAvIAJB0ABqKQMAIBAgECATfCIRVq0gDyAUfHx8IBEgAikDSHwiDyARVK18IRAgAEEBaiEBA0AgACAGTQRAIAJB2AFqIA1qIA9C/f/z/8////kBfkL//////////wODIhE3AwAgAkE4aiARQgAgFyAYEC8gAkEoaiARQgAgFSAWEC8gAkHoAGogAEEEdGoiACACQTBqKQMAIhE3AwggACACKQMoIhU3AwAgDyACKQM4IhZ8Ig8gFlStIAJBQGspAwAgEHx8IhBCOocgDCABQQN0aikDACIWQj+HfCAWIBBCBoYgD0I6iIQiD3wiECAPVK18IQ8gEyAVfCITIBVUrSARIBR8fCEUIAdBCGohByAIQQFqIQggASEADAMLIANBB08NAyACQRhqIAQgCWopAwAgBSAJaikDAH0iESARQj+HIAJB2AFqIg4gBWopAwAgBCAOaikDAH0iESARQj+HEC8gAikDGCIRIA98Ig8gEVStIAJBIGopAwAgEHx8IRAgBkEBaiEGIARBCGohBCAFQQhrIQUgA0EBayEDDAALAAsLA0ACQAJAIABBDUcEQCAHIABBAXYiBmshAyAIIAZBA3QiAWshBCABQQhqIQUgDyAUfCAQIBN8Ig8gEFStfCEQIABBAWohAQNAIAZBBUsNAyADQQdPDQIgAkEIaiAFIAlqKQMAIAQgCWpBMGopAwB9IhIgEkI/hyACIARqQYgCaikDACACQdgBaiAFaikDAH0iEiASQj+HEC8gAikDCCISIA98Ig8gElStIAJBEGopAwAgEHx8IRAgBkEBaiEGIARBCGshBCADQQFrIQMgBUEIaiEFDAALAAsgCiAQQv//////////A4M3AzAgAkGQAmokAAwECyADQQdBpJzAABA7AAsgAEEDdCAKakE4ayAPQv//////////A4M3AwAgEEI6hyAMIAFBA3RqKQMAIhJCP4d8IBIgEEIGhiAPQjqIhCIPfCIQIA9UrXwhDyAUIABBBHQgAmpBCGoiAEEIaikDAH0gEyAAKQMAIhJUrX0hFCAIQQhqIQggB0EBaiEHIBMgEn0hEyABIQAMAAsACyADQQdBlJzAABA7AAsgC0FAayQACy4BAX8jAEGAAWsiASQAIAAQRSABEFEgACABEJkBIABBgAFqELYBIAFBgAFqJAALMwAgACABEJYBIABBgAJqIAFBgAJqEJYBIABBgARqIAFBgARqEJYBIAAgASgCgAY2AoAGCygAIAAgASACEHIgAEFAayABQUBrIAIQciAAQYABaiABQYABaiACEHILLQAgACABIAIQjQEgAEGAAWogAUGAAWogAhCNASAAQYACaiABQYACaiACEI0BCycBAn8jAEFAaiICJAAgAkEIaiIDIAEQvgEgACADEI4BIAJBQGskAAsiAQF/A0AgAUE4RwRAIAAgAWpCADcDACABQQhqIQEMAQsLCyUAIAAgASACEDAgAEEAIAJrIAAoAjgiACABKAI4c3EgAHM2AjgLJwAgACAAKAIEQQFxIAFyQQJyNgIEIAAgAWoiACAAKAIEQQFyNgIECyMAA0AgAgRAIAAgAS0AABA8IAJBAWshAiABQQFqIQEMAQsLCywAIAAQiwEgACABEJYBIABBgAJqIAIQlgEgAEGABGogAxCWASAAQQU2AoAG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AaxBWIAFzIAAQdnFzCxgBAX8gABCIAQR/IABBgAJqEIgBBUEACwseACAAEEUgAEGAAmoQRSAAQYAEahBFIABBADYCgAYLHAAgABBFIAAgARCZASAAQYABaiABQYABahCZAQsYACAAIAEgAhByIABBQGsgAUFAayACEHILGgAgAEE4ENABIgBBATYCOCAAIAEQaiAAEFQLFAAgABBCIAAoAgBBfyABdEF/c3ELGQAgAEE4ENABIgAgARBqIAAgASgCODYCOAsZAQF/IAAoAhAiAQR/IAEFIABBFGooAgALCxgAIAAQwQEgAEFAaxDKASAAQYABahDBAQsUACAAEEIgACAAKQMAIAGsfDcDAAsUACAAEEIgACAAKQMAIAGsfTcDAAsYACAAEEUgACABEJkBIABBgAFqIAIQmQELGAAgACABEJkBIABBgAFqIAFBgAFqEJkBCxgAIAAgARCaASAAQYABaiABQYABahCaAQsYACAAEKQBIABBgAFqIgAQpAEgACABEBELFgAgACABEK4BIABBQGsgAUFAaxCuAQsUACAAIAEQdyAAQUBrIAFBQGsQdwsZACAAELYBIABBgAFqELcBIABBgAJqELYBCxkAIAAQrwEgAEGAAmoQrwEgAEGABGoQrwELGQAgABCwASAAQYACahCwASAAQYAEahCwAQsZACAAELIBIABBgAJqEMkBIABBgARqELIBCxIAQQBBGSAAQQF2ayAAQR9GGwsWACAAIAFBAXI2AgQgACABaiABNgIACxYAIAAQRSAAIAEQmQEgAEGAAWoQtgELFgAgAEGAAWoiABCpASAAEDYgABCpAQsQACAAIAFqQQFrQQAgAWtxCw8AIABBQGsiABBDIAAQQgsUACAAIAEQmQEgAEGAAWogAhCZAQsSACAAIAEQESAAQYABaiABEBELFAAgACABEKoBIABBgAFqIAEQqgELCwAgAQRAIAAQBAsLDQAgABBCIABBQGsQQgsRACAAIAEQSiAAQUBrIAEQSgsRACAAIAEQNCAAQUBrIAEQNAu+BQEHfwJ/AkACQEGAgHxBCEEIEKMBQRRBCBCjAWpBEEEIEKMBamtBd3FBA2siAkEAQRBBCBCjAUECdGsiBCACIARJGyABTQ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wAAAAwAAAAEAAAACAAAAAMAAAAIAAAABAAAAAkAAAAKAAAAEAAAAAQAAAALAAAADAAAAAMAAAAIAAAABAAAAA0AAAAOAAAAbGlicmFyeS9hbGxvYy9zcmMvcmF3X3ZlYy5yc2NhcGFjaXR5IG92ZXJmbG93AAAA6BsQABEAAADMGxAAHAAAAAUCAAAFAAAAEAAAAAAAAAABAAAAEQAAAGluZGV4IG91dCBvZiBib3VuZHM6IHRoZSBsZW4gaXMgIGJ1dCB0aGUgaW5kZXggaXMgAAAkHBAAIAAAAEQcEAASAAAAMDAwMTAyMDMwNDA1MDYwNzA4MDkxMDExMTIxMzE0MTUxNjE3MTgxOTIwMjEyMjIzMjQyNTI2MjcyODI5MzAzMTMyMzMzNDM1MzYzNzM4Mzk0MDQxNDI0MzQ0NDU0NjQ3NDg0OTUwNTE1MjUzNTQ1NTU2NTc1ODU5NjA2MTYyNjM2NDY1NjY2NzY4Njk3MDcxNzI3Mzc0NzU3Njc3Nzg3OTgwODE4MjgzODQ4NTg2ODc4ODg5OTA5MTkyOTM5NDk1OTY5Nzk4OTkgb3V0IG9mIHJhbmdlIGZvciBzbGljZSBvZiBsZW5ndGggbGlicmFyeS9jb3JlL3NyYy9zbGljZS9pbmRleC5yc3JhbmdlIGVuZCBpbmRleCAAAABxHRAAEAAAADAdEAAiAAAAUh0QAB8AAABJAAAABQB7CXByb2R1Y2VycwIIbGFuZ3VhZ2UBBFJ1c3QADHByb2Nlc3NlZC1ieQMFcnVzdGMdMS42MS4wIChmZTViMTNkNjggMjAyMi0wNS0xOCkGd2FscnVzBjAuMTkuMAx3YXNtLWJpbmRnZW4SMC4yLjgxICgwNjJhYTVmNzAp");let o=null;function a(e,t){const n=t(1*e.length);return(null!==o&&o.buffer===r.memory.buffer||(o=new Uint8Array(r.memory.buffer)),o).set(e,n/1),[n,e.length]}var s=async function e(){const{instance:t,module:n}=await async function(e,t){if("function"==typeof Response&&e instanceof Response){const n=await e.arrayBuffer();return await WebAssembly.instantiate(n,t)}{const n=await WebAssembly.instantiate(e,t);return n instanceof WebAssembly.Instance?{instance:n,module:e}:n}}(i,{});return r=t.exports,e.__wbindgen_wasm_module=n,r};let c;async function u(e,t,n){if(!c){if(await s(),0!==r.bls_init())throw new Error("Cannot initialize BLS");c=(e,t,n)=>0===function(e,t,n){const[i,o]=a(e,r.__wbindgen_malloc),[s,c]=a(t,r.__wbindgen_malloc),[u,l]=a(n,r.__wbindgen_malloc);return r.bls_verify(i,o,s,c,u,l)}(t,n,e)}return c(e,t,n)}},2995:function(e,t,n){"use strict";function r(...e){const t=new Uint8Array(e.reduce(((e,t)=>e+t.byteLength),0));let n=0;for(const r of e)t.set(new Uint8Array(r),n),n+=r.byteLength;return t.buffer}function i(e){return[...new Uint8Array(e)].map((e=>e.toString(16).padStart(2,"0"))).join("")}n.d(t,{Nn:function(){return c},UD:function(){return s},aD:function(){return a},nj:function(){return i},xW:function(){return r}});const o=new RegExp(/^([0-9A-F]{2})*$/i);function a(e){if(!o.test(e))throw new Error("Invalid hexadecimal string.");const t=[...e].reduce(((e,t,n)=>(e[n/2|0]=(e[n/2|0]||"")+t,e)),[]).map((e=>Number.parseInt(e,16)));return new Uint8Array(t).buffer}function s(e,t){if(e.byteLength!==t.byteLength)return e.byteLength-t.byteLength;const n=new Uint8Array(e),r=new Uint8Array(t);for(let e=0;e(0,r.Ui)(new r.Ki(e)),o=e=>{const t=i(e);return new Date(Number(t)/1e6)}},467:function(e,t,n){"use strict";n.d(t,{Ih:function(){return r},Ki:function(){return a},Ui:function(){return d},kk:function(){return f}});var r={};n.r(r),n.d(r,{Bool:function(){return $},BoolClass:function(){return S},ConstructType:function(){return B},Empty:function(){return J},EmptyClass:function(){return C},FixedIntClass:function(){return T},FixedNatClass:function(){return N},Float32:function(){return re},Float64:function(){return ie},FloatClass:function(){return D},Func:function(){return ve},FuncClass:function(){return H},Int:function(){return te},Int16:function(){return ae},Int32:function(){return se},Int64:function(){return ce},Int8:function(){return oe},IntClass:function(){return x},Nat:function(){return ne},Nat16:function(){return le},Nat32:function(){return fe},Nat64:function(){return de},Nat8:function(){return ue},NatClass:function(){return R},Null:function(){return X},NullClass:function(){return Q},Opt:function(){return ge},OptClass:function(){return L},PrimitiveType:function(){return I},Principal:function(){return Ae},PrincipalClass:function(){return G},Rec:function(){return be},RecClass:function(){return j},Record:function(){return ye},RecordClass:function(){return P},Reserved:function(){return W},ReservedClass:function(){return k},Service:function(){return we},ServiceClass:function(){return Y},Text:function(){return ee},TextClass:function(){return M},Tuple:function(){return he},TupleClass:function(){return U},Type:function(){return E},Unknown:function(){return Z},UnknownClass:function(){return _},Variant:function(){return me},VariantClass:function(){return F},Vec:function(){return pe},VecClass:function(){return O},Visitor:function(){return w},decode:function(){return V},encode:function(){return z}});var i=n(7897);function o(...e){const t=new Uint8Array(e.reduce(((e,t)=>e+t.byteLength),0));let n=0;for(const r of e)t.set(new Uint8Array(r),n),n+=r.byteLength;return t}class a{constructor(e,t=(null==e?void 0:e.byteLength)||0){this._buffer=e||new ArrayBuffer(0),this._view=new Uint8Array(this._buffer,0,t)}get buffer(){return this._view.slice()}get byteLength(){return this._view.byteLength}read(e){const t=this._view.subarray(0,e);return this._view=this._view.subarray(e),t.slice().buffer}readUint8(){const e=this._view[0];return this._view=this._view.subarray(1),e}write(e){const t=new Uint8Array(e),n=this._view.byteLength;this._view.byteOffset+this._view.byteLength+t.byteLength>=this._buffer.byteLength?this.alloc(t.byteLength):this._view=new Uint8Array(this._buffer,this._view.byteOffset,this._view.byteLength+t.byteLength),this._view.set(t,n)}get end(){return 0===this._view.byteLength}alloc(e){const t=new ArrayBuffer(1.2*(this._buffer.byteLength+e)|0),n=new Uint8Array(t,0,this._view.byteLength+e);n.set(this._view),this._buffer=t,this._view=n}}function s(e){if(/^_\d+_$/.test(e)||/^_0x[0-9a-fA-F]+_$/.test(e)){const t=+e.slice(1,-1);if(Number.isSafeInteger(t)&&t>=0&&t<2**32)return t}return function(e){const t=(new TextEncoder).encode(e);let n=0;for(const e of t)n=(223*n+e)%2**32;return n}(e)}function c(){throw new Error("unexpected end of buffer")}function u(e,t){return e.byteLength=128);return r}function A(e){"number"==typeof e&&(e=BigInt(e));const t=e=0;e--)i=i*BigInt(128)+BigInt(128-(127&r[e])-1);return-i-BigInt(1)}function p(e,t){e=BigInt(e);const n=new a(new ArrayBuffer(Math.min(1,t)),0);let r=0,i=BigInt(256),o=BigInt(0),s=Number(e%i);for(n.write(new Uint8Array([s]));++rn(e,t[r])))}class v{constructor(){this._typs=[],this._idx=new Map}has(e){return this._idx.has(e.name)}add(e,t){const n=this._typs.length;this._idx.set(e.name,n),this._typs.push(t)}merge(e,t){const n=this._idx.get(e.name),r=this._idx.get(t);if(void 0===n)throw new Error("Missing type index for "+e);if(void 0===r)throw new Error("Missing type index for "+t);this._typs[n]=this._typs[r],this._typs.splice(r,1),this._idx.delete(t)}encode(){const e=f(this._typs.length),t=o(...this._typs);return o(e,t)}indexOf(e){if(!this._idx.has(e))throw new Error("Missing type index for "+e);return A(this._idx.get(e)||0)}}class w{visitType(e,t){throw new Error("Not implemented")}visitPrimitive(e,t){return this.visitType(e,t)}visitEmpty(e,t){return this.visitPrimitive(e,t)}visitBool(e,t){return this.visitPrimitive(e,t)}visitNull(e,t){return this.visitPrimitive(e,t)}visitReserved(e,t){return this.visitPrimitive(e,t)}visitText(e,t){return this.visitPrimitive(e,t)}visitNumber(e,t){return this.visitPrimitive(e,t)}visitInt(e,t){return this.visitNumber(e,t)}visitNat(e,t){return this.visitNumber(e,t)}visitFloat(e,t){return this.visitPrimitive(e,t)}visitFixedInt(e,t){return this.visitNumber(e,t)}visitFixedNat(e,t){return this.visitNumber(e,t)}visitPrincipal(e,t){return this.visitPrimitive(e,t)}visitConstruct(e,t){return this.visitType(e,t)}visitVec(e,t,n){return this.visitConstruct(e,n)}visitOpt(e,t,n){return this.visitConstruct(e,n)}visitRecord(e,t,n){return this.visitConstruct(e,n)}visitTuple(e,t,n){const r=t.map(((e,t)=>[`_${t}_`,e]));return this.visitRecord(e,r,n)}visitVariant(e,t,n){return this.visitConstruct(e,n)}visitRec(e,t,n){return this.visitConstruct(t,n)}visitFunc(e,t){return this.visitConstruct(e,t)}visitService(e,t){return this.visitConstruct(e,t)}}class E{display(){return this.name}valueToString(e){return K(e)}buildTypeTable(e){e.has(this)||this._buildTypeTableImpl(e)}}class I extends E{checkType(e){if(this.name!==e.name)throw new Error(`type mismatch: type on the wire ${e.name}, expect type ${this.name}`);return e}_buildTypeTableImpl(e){}}class B extends E{checkType(e){if(e instanceof j){const t=e.getType();if(void 0===t)throw new Error("type mismatch with uninitialized type");return t}throw new Error(`type mismatch: type on the wire ${e.name}, expect type ${this.name}`)}encodeType(e){return e.indexOf(this.name)}}class C extends I{accept(e,t){return e.visitEmpty(this,t)}covariant(e){throw new Error(`Invalid ${this.display()} argument: ${K(e)}`)}encodeValue(){throw new Error("Empty cannot appear as a function argument")}valueToString(){throw new Error("Empty cannot appear as a value")}encodeType(){return A(-17)}decodeValue(){throw new Error("Empty cannot appear as an output")}get name(){return"empty"}}class _ extends E{checkType(e){throw new Error("Method not implemented for unknown.")}accept(e,t){throw e.visitType(this,t)}covariant(e){throw new Error(`Invalid ${this.display()} argument: ${K(e)}`)}encodeValue(){throw new Error("Unknown cannot appear as a function argument")}valueToString(){throw new Error("Unknown cannot appear as a value")}encodeType(){throw new Error("Unknown cannot be serialized")}decodeValue(e,t){let n,r=t.decodeValue(e,t);return Object(r)!==r&&(r=Object(r)),n=t instanceof j?()=>t.getType():()=>t,Object.defineProperty(r,"type",{value:n,writable:!0,enumerable:!1,configurable:!0}),r}_buildTypeTableImpl(){throw new Error("Unknown cannot be serialized")}get name(){return"Unknown"}}class S extends I{accept(e,t){return e.visitBool(this,t)}covariant(e){if("boolean"==typeof e)return!0;throw new Error(`Invalid ${this.display()} argument: ${K(e)}`)}encodeValue(e){return new Uint8Array([e?1:0])}encodeType(){return A(-2)}decodeValue(e,t){switch(this.checkType(t),l(e)){case 0:return!1;case 1:return!0;default:throw new Error("Boolean value out of range")}}get name(){return"bool"}}class Q extends I{accept(e,t){return e.visitNull(this,t)}covariant(e){if(null===e)return!0;throw new Error(`Invalid ${this.display()} argument: ${K(e)}`)}encodeValue(){return new ArrayBuffer(0)}encodeType(){return A(-1)}decodeValue(e,t){return this.checkType(t),null}get name(){return"null"}}class k extends I{accept(e,t){return e.visitReserved(this,t)}covariant(e){return!0}encodeValue(){return new ArrayBuffer(0)}encodeType(){return A(-16)}decodeValue(e,t){return t.name!==this.name&&t.decodeValue(e,t),null}get name(){return"reserved"}}class M extends I{accept(e,t){return e.visitText(this,t)}covariant(e){if("string"==typeof e)return!0;throw new Error(`Invalid ${this.display()} argument: ${K(e)}`)}encodeValue(e){const t=(new TextEncoder).encode(e);return o(f(t.byteLength),t)}encodeType(){return A(-15)}decodeValue(e,t){this.checkType(t);const n=d(e),r=u(e,Number(n));return new TextDecoder("utf8",{fatal:!0}).decode(r)}get name(){return"text"}valueToString(e){return'"'+e+'"'}}class x extends I{accept(e,t){return e.visitInt(this,t)}covariant(e){if("bigint"==typeof e||Number.isInteger(e))return!0;throw new Error(`Invalid ${this.display()} argument: ${K(e)}`)}encodeValue(e){return A(e)}encodeType(){return A(-4)}decodeValue(e,t){return this.checkType(t),h(e)}get name(){return"int"}valueToString(e){return e.toString()}}class R extends I{accept(e,t){return e.visitNat(this,t)}covariant(e){if("bigint"==typeof e&&e>=BigInt(0)||Number.isInteger(e)&&e>=0)return!0;throw new Error(`Invalid ${this.display()} argument: ${K(e)}`)}encodeValue(e){return f(e)}encodeType(){return A(-3)}decodeValue(e,t){return this.checkType(t),d(e)}get name(){return"nat"}valueToString(e){return e.toString()}}class D extends I{constructor(e){if(super(),this._bits=e,32!==e&&64!==e)throw new Error("not a valid float type")}accept(e,t){return e.visitFloat(this,t)}covariant(e){if("number"==typeof e||e instanceof Number)return!0;throw new Error(`Invalid ${this.display()} argument: ${K(e)}`)}encodeValue(e){const t=new ArrayBuffer(this._bits/8),n=new DataView(t);return 32===this._bits?n.setFloat32(0,e,!0):n.setFloat64(0,e,!0),t}encodeType(){return A(32===this._bits?-13:-14)}decodeValue(e,t){this.checkType(t);const n=u(e,this._bits/8),r=new DataView(n);return 32===this._bits?r.getFloat32(0,!0):r.getFloat64(0,!0)}get name(){return"float"+this._bits}valueToString(e){return e.toString()}}class T extends I{constructor(e){super(),this._bits=e}accept(e,t){return e.visitFixedInt(this,t)}covariant(e){const t=y(this._bits-1)*BigInt(-1),n=y(this._bits-1)-BigInt(1);let r=!1;if("bigint"==typeof e)r=e>=t&&e<=n;else if(Number.isInteger(e)){const i=BigInt(e);r=i>=t&&i<=n}else r=!1;if(r)return!0;throw new Error(`Invalid ${this.display()} argument: ${K(e)}`)}encodeValue(e){return p(e,this._bits/8)}encodeType(){return A(-9-(Math.log2(this._bits)-3))}decodeValue(e,t){this.checkType(t);const n=function(e,t){let n=g(e,t);const r=BigInt(2)**(BigInt(8)*BigInt(t-1)+BigInt(7));return n>=r&&(n-=r*BigInt(2)),n}(e,this._bits/8);return this._bits<=32?Number(n):n}get name(){return`int${this._bits}`}valueToString(e){return e.toString()}}class N extends I{constructor(e){super(),this._bits=e}accept(e,t){return e.visitFixedNat(this,t)}covariant(e){const t=y(this._bits);let n=!1;if(n="bigint"==typeof e&&e>=BigInt(0)?e=0)&&BigInt(e){try{return this._type.covariant(e)}catch(e){throw new Error(`Invalid ${this.display()} argument: \n\nindex ${t} -> ${e.message}`)}})))return!0;throw new Error(`Invalid ${this.display()} argument: ${K(e)}`)}encodeValue(e){const t=f(e.length);if(this._blobOptimization)return o(t,new Uint8Array(e));if(ArrayBuffer.isView(e))return o(t,new Uint8Array(e.buffer));const n=new a(new ArrayBuffer(t.byteLength+e.length),0);n.write(t);for(const t of e){const e=this._type.encodeValue(t);n.write(new Uint8Array(e))}return n.buffer}_buildTypeTableImpl(e){this._type.buildTypeTable(e);const t=A(-19),n=this._type.encodeType(e);e.add(this,o(t,n))}decodeValue(e,t){const n=this.checkType(t);if(!(n instanceof O))throw new Error("Not a vector type");const r=Number(d(e));if(this._type instanceof N){if(8==this._type._bits)return new Uint8Array(e.read(r));if(16==this._type._bits)return new Uint16Array(e.read(2*r));if(32==this._type._bits)return new Uint32Array(e.read(4*r));if(64==this._type._bits)return new BigUint64Array(e.read(8*r))}if(this._type instanceof T){if(8==this._type._bits)return new Int8Array(e.read(r));if(16==this._type._bits)return new Int16Array(e.read(2*r));if(32==this._type._bits)return new Int32Array(e.read(4*r));if(64==this._type._bits)return new BigInt64Array(e.read(8*r))}const i=[];for(let t=0;tthis._type.valueToString(e))).join("; ")+"}"}}class L extends B{constructor(e){super(),this._type=e}accept(e,t){return e.visitOpt(this,this._type,t)}covariant(e){try{if(Array.isArray(e)&&(0===e.length||1===e.length&&this._type.covariant(e[0])))return!0}catch(t){throw new Error(`Invalid ${this.display()} argument: ${K(e)} \n\n-> ${t.message}`)}throw new Error(`Invalid ${this.display()} argument: ${K(e)}`)}encodeValue(e){return 0===e.length?new Uint8Array([0]):o(new Uint8Array([1]),this._type.encodeValue(e[0]))}_buildTypeTableImpl(e){this._type.buildTypeTable(e);const t=A(-18),n=this._type.encodeType(e);e.add(this,o(t,n))}decodeValue(e,t){const n=this.checkType(t);if(!(n instanceof L))throw new Error("Not an option type");switch(l(e)){case 0:return[];case 1:return[this._type.decodeValue(e,n._type)];default:throw new Error("Not an option value")}}get name(){return`opt ${this._type.name}`}display(){return`opt ${this._type.display()}`}valueToString(e){return 0===e.length?"null":`opt ${this._type.valueToString(e[0])}`}}class P extends B{constructor(e={}){super(),this._fields=Object.entries(e).sort(((e,t)=>s(e[0])-s(t[0])))}accept(e,t){return e.visitRecord(this,this._fields,t)}tryAsTuple(){const e=[];for(let t=0;t{if(!e.hasOwnProperty(t))throw new Error(`Record is missing key "${t}".`);try{return n.covariant(e[t])}catch(e){throw new Error(`Invalid ${this.display()} argument: \n\nfield ${t} -> ${e.message}`)}})))return!0;throw new Error(`Invalid ${this.display()} argument: ${K(e)}`)}encodeValue(e){const t=this._fields.map((([t])=>e[t]));return o(...b(this._fields,t,(([,e],t)=>e.encodeValue(t))))}_buildTypeTableImpl(e){this._fields.forEach((([t,n])=>n.buildTypeTable(e)));const t=A(-20),n=f(this._fields.length),r=this._fields.map((([t,n])=>o(f(s(t)),n.encodeType(e))));e.add(this,o(t,n,o(...r)))}decodeValue(e,t){const n=this.checkType(t);if(!(n instanceof P))throw new Error("Not a record type");const r={};let i=0,o=0;for(;o=this._fields.length){a.decodeValue(e,a),o++;continue}const[c,u]=this._fields[i],l=s(this._fields[i][0]),f=s(t);if(l===f)r[c]=u.decodeValue(e,a),i++,o++;else if(f>l){if(!(u instanceof L||u instanceof k))throw new Error("Cannot find required field "+c);r[c]=[],i++}else a.decodeValue(e,a),o++}for(const[e,t]of this._fields.slice(i)){if(!(t instanceof L||t instanceof k))throw new Error("Cannot find required field "+e);r[e]=[]}return r}get name(){return`record {${this._fields.map((([e,t])=>e+":"+t.name)).join("; ")}}`}display(){return`record {${this._fields.map((([e,t])=>e+":"+t.display())).join("; ")}}`}valueToString(e){const t=this._fields.map((([t])=>e[t]));return`record {${b(this._fields,t,(([e,t],n)=>e+"="+t.valueToString(n))).join("; ")}}`}}class U extends P{constructor(e){const t={};e.forEach(((e,n)=>t["_"+n+"_"]=e)),super(t),this._components=e}accept(e,t){return e.visitTuple(this,this._components,t)}covariant(e){if(Array.isArray(e)&&e.length>=this._fields.length&&this._components.every(((t,n)=>{try{return t.covariant(e[n])}catch(e){throw new Error(`Invalid ${this.display()} argument: \n\nindex ${n} -> ${e.message}`)}})))return!0;throw new Error(`Invalid ${this.display()} argument: ${K(e)}`)}encodeValue(e){return o(...b(this._components,e,((e,t)=>e.encodeValue(t))))}decodeValue(e,t){const n=this.checkType(t);if(!(n instanceof U))throw new Error("not a tuple type");if(n._components.length=this._components.length?i.decodeValue(e,i):r.push(this._components[t].decodeValue(e,i));return r}display(){return`record {${this._components.map((e=>e.display())).join("; ")}}`}valueToString(e){return`record {${b(this._components,e,((e,t)=>e.valueToString(t))).join("; ")}}`}}class F extends B{constructor(e={}){super(),this._fields=Object.entries(e).sort(((e,t)=>s(e[0])-s(t[0])))}accept(e,t){return e.visitVariant(this,this._fields,t)}covariant(e){if("object"==typeof e&&1===Object.entries(e).length&&this._fields.every((([t,n])=>{try{return!e.hasOwnProperty(t)||n.covariant(e[t])}catch(e){throw new Error(`Invalid ${this.display()} argument: \n\nvariant ${t} -> ${e.message}`)}})))return!0;throw new Error(`Invalid ${this.display()} argument: ${K(e)}`)}encodeValue(e){for(let t=0;t{t.buildTypeTable(e)}));const t=A(-21),n=f(this._fields.length),r=this._fields.map((([t,n])=>o(f(s(t)),n.encodeType(e))));e.add(this,o(t,n,...r))}decodeValue(e,t){const n=this.checkType(t);if(!(n instanceof F))throw new Error("Not a variant type");const r=Number(d(e));if(r>=n._fields.length)throw Error("Invalid variant index: "+r);const[i,o]=n._fields[r];for(const[t,n]of this._fields)if(s(i)===s(t)){const r=n.decodeValue(e,o);return{[t]:r}}throw new Error("Cannot find field hash "+i)}get name(){return`variant {${this._fields.map((([e,t])=>e+":"+t.name)).join("; ")}}`}display(){return`variant {${this._fields.map((([e,t])=>e+("null"===t.name?"":`:${t.display()}`))).join("; ")}}`}valueToString(e){for(const[t,n]of this._fields)if(e.hasOwnProperty(t)){const r=n.valueToString(e[t]);return"null"===r?`variant {${t}}`:`variant {${t}=${r}}`}throw new Error("Variant has no data: "+e)}}class j extends B{constructor(){super(...arguments),this._id=j._counter++,this._type=void 0}accept(e,t){if(!this._type)throw Error("Recursive type uninitialized.");return e.visitRec(this,this._type,t)}fill(e){this._type=e}getType(){return this._type}covariant(e){if(this._type&&this._type.covariant(e))return!0;throw new Error(`Invalid ${this.display()} argument: ${K(e)}`)}encodeValue(e){if(!this._type)throw Error("Recursive type uninitialized.");return this._type.encodeValue(e)}_buildTypeTableImpl(e){if(!this._type)throw Error("Recursive type uninitialized.");e.add(this,new Uint8Array([])),this._type.buildTypeTable(e),e.merge(this,this._type.name)}decodeValue(e,t){if(!this._type)throw Error("Recursive type uninitialized.");return this._type.decodeValue(e,t)}get name(){return`rec_${this._id}`}display(){if(!this._type)throw Error("Recursive type uninitialized.");return`μ${this.name}.${this._type.name}`}valueToString(e){if(!this._type)throw Error("Recursive type uninitialized.");return this._type.valueToString(e)}}function q(e){if(1!==l(e))throw new Error("Cannot decode principal");const t=Number(d(e));return i.p.fromUint8Array(new Uint8Array(u(e,t)))}j._counter=0;class G extends I{accept(e,t){return e.visitPrincipal(this,t)}covariant(e){if(e&&e._isPrincipal)return!0;throw new Error(`Invalid ${this.display()} argument: ${K(e)}`)}encodeValue(e){const t=e.toUint8Array(),n=f(t.byteLength);return o(new Uint8Array([1]),n,t)}encodeType(){return A(-24)}decodeValue(e,t){return this.checkType(t),q(e)}get name(){return"principal"}valueToString(e){return`${this.name} "${e.toText()}"`}}class H extends B{constructor(e,t,n=[]){super(),this.argTypes=e,this.retTypes=t,this.annotations=n}static argsToString(e,t){if(e.length!==t.length)throw new Error("arity mismatch");return"("+e.map(((e,n)=>e.valueToString(t[n]))).join(", ")+")"}accept(e,t){return e.visitFunc(this,t)}covariant(e){if(Array.isArray(e)&&2===e.length&&e[0]&&e[0]._isPrincipal&&"string"==typeof e[1])return!0;throw new Error(`Invalid ${this.display()} argument: ${K(e)}`)}encodeValue([e,t]){const n=e.toUint8Array(),r=f(n.byteLength),i=o(new Uint8Array([1]),r,n),a=(new TextEncoder).encode(t),s=f(a.byteLength);return o(new Uint8Array([1]),i,s,a)}_buildTypeTableImpl(e){this.argTypes.forEach((t=>t.buildTypeTable(e))),this.retTypes.forEach((t=>t.buildTypeTable(e)));const t=A(-22),n=f(this.argTypes.length),r=o(...this.argTypes.map((t=>t.encodeType(e)))),i=f(this.retTypes.length),a=o(...this.retTypes.map((t=>t.encodeType(e)))),s=f(this.annotations.length),c=o(...this.annotations.map((e=>this.encodeAnnotation(e))));e.add(this,o(t,n,r,i,a,s,c))}decodeValue(e){if(1!==l(e))throw new Error("Cannot decode function reference");const t=q(e),n=u(e,Number(d(e)));return[t,new TextDecoder("utf8",{fatal:!0}).decode(n)]}get name(){return`(${this.argTypes.map((e=>e.name)).join(", ")}) -> (${this.retTypes.map((e=>e.name)).join(", ")})${" "+this.annotations.join(" ")}`}valueToString([e,t]){return`func "${e.toText()}".${t}`}display(){return`(${this.argTypes.map((e=>e.display())).join(", ")}) → (${this.retTypes.map((e=>e.display())).join(", ")})${" "+this.annotations.join(" ")}`}encodeAnnotation(e){if("query"===e)return new Uint8Array([1]);if("oneway"===e)return new Uint8Array([2]);if("composite_query"===e)return new Uint8Array([3]);throw new Error("Illegal function annotation")}}class Y extends B{constructor(e){super(),this._fields=Object.entries(e).sort(((e,t)=>s(e[0])-s(t[0])))}accept(e,t){return e.visitService(this,t)}covariant(e){if(e&&e._isPrincipal)return!0;throw new Error(`Invalid ${this.display()} argument: ${K(e)}`)}encodeValue(e){const t=e.toUint8Array(),n=f(t.length);return o(new Uint8Array([1]),n,t)}_buildTypeTableImpl(e){this._fields.forEach((([t,n])=>n.buildTypeTable(e)));const t=A(-23),n=f(this._fields.length),r=this._fields.map((([t,n])=>{const r=(new TextEncoder).encode(t);return o(f(r.length),r,n.encodeType(e))}));e.add(this,o(t,n,...r))}decodeValue(e){return q(e)}get name(){return`service {${this._fields.map((([e,t])=>e+":"+t.name)).join("; ")}}`}valueToString(e){return`service "${e.toText()}"`}}function K(e){const t=JSON.stringify(e,((e,t)=>"bigint"==typeof t?`BigInt(${t})`:t));return t&&t.length>400?t.substring(0,397)+"...":t}function z(e,t){if(t.lengthe.buildTypeTable(n)));const r=(new TextEncoder).encode(m),i=n.encode(),a=f(t.length),s=o(...e.map((e=>e.encodeType(n)))),c=o(...b(e,t,((e,t)=>{try{e.covariant(t)}catch(e){throw new Error(e.message+"\n\n")}return e.encodeValue(t)})));return o(r,i,a,s,c)}function V(e,t){const n=new a(t);if(t.byteLength=Math.pow(2,32))throw new Error("field id out of 32-bit range");if("number"==typeof i&&i>=t)throw new Error("field id collision or not sorted");i=t;const n=Number(h(e));r.push([t,n])}t.push([n,r]);break}case-22:{const r=[];let i=Number(d(e));for(;i--;)r.push(Number(h(e)));const o=[];let a=Number(d(e));for(;a--;)o.push(Number(h(e)));const s=[];let c=Number(d(e));for(;c--;)switch(Number(d(e))){case 1:s.push("query");break;case 2:s.push("oneway");break;case 3:s.push("composite_query");break;default:throw new Error("unknown annotation")}t.push([n,[r,o,s]]);break}case-23:{let r=Number(d(e));const i=[];for(;r--;){const t=Number(d(e)),n=(new TextDecoder).decode(u(e,t)),r=h(e);i.push([n,r])}t.push([n,i]);break}default:throw new Error("Illegal op_code: "+n)}}const r=[],i=Number(d(e));for(let t=0;tbe()));function l(e){if(e<-24)throw new Error("future value not supported");if(e<0)switch(e){case-1:return X;case-2:return $;case-3:return ne;case-4:return te;case-5:return ue;case-6:return le;case-7:return fe;case-8:return de;case-9:return oe;case-10:return ae;case-11:return se;case-12:return ce;case-13:return re;case-14:return ie;case-15:return ee;case-16:return W;case-17:return J;case-24:return Ae;default:throw new Error("Illegal op_code: "+e)}if(e>=o.length)throw new Error("type index out of range");return c[e]}function f(e){switch(e[0]){case-19:return pe(l(e[1]));case-18:return ge(l(e[1]));case-20:{const t={};for(const[n,r]of e[1])t[`_${n}_`]=l(r);const n=ye(t),r=n.tryAsTuple();return Array.isArray(r)?he(...r):n}case-21:{const t={};for(const[n,r]of e[1])t[`_${n}_`]=l(r);return me(t)}case-22:{const[t,n,r]=e[1];return ve(t.map((e=>l(e))),n.map((e=>l(e))),r)}case-23:{const t={},n=e[1];for(const[e,r]of n){let n=l(r);if(n instanceof j&&(n=n.getType()),!(n instanceof H))throw new Error("Illegal service definition: services can only contain functions");t[e]=n}return we(t)}default:throw new Error("Illegal op_code: "+e[0])}}o.forEach(((e,t)=>{if(-22===e[0]){const n=f(e);c[t].fill(n)}})),o.forEach(((e,t)=>{if(-22!==e[0]){const n=f(e);c[t].fill(n)}}));const A=s.map((e=>l(e))),p=e.map(((e,t)=>e.decodeValue(n,A[t])));for(let t=e.length;t0)throw new Error("decode: Left-over bytes");return p}const J=new C,W=new k,Z=new _,$=new S,X=new Q,ee=new M,te=new x,ne=new R,re=new D(32),ie=new D(64),oe=new T(8),ae=new T(16),se=new T(32),ce=new T(64),ue=new N(8),le=new N(16),fe=new N(32),de=new N(64),Ae=new G;function he(...e){return new U(e)}function pe(e){return new O(e)}function ge(e){return new L(e)}function ye(e){return new P(e)}function me(e){return new F(e)}function be(){return new j}function ve(e,t,n=[]){return new H(e,t,n)}function we(e){return new Y(e)}},7897:function(e,t,n){"use strict";n.d(t,{p:function(){return c}});const r="abcdefghijklmnopqrstuvwxyz234567",i=Object.create(null);for(let e=0;e<32;e++)i[r[e]]=e;i[0]=i.o,i[1]=i.i;const o=new Uint32Array([0,1996959894,3993919788,2567524794,124634137,1886057615,3915621685,2657392035,249268274,2044508324,3772115230,2547177864,162941995,2125561021,3887607047,2428444049,498536548,1789927666,4089016648,2227061214,450548861,1843258603,4107580753,2211677639,325883990,1684777152,4251122042,2321926636,335633487,1661365465,4195302755,2366115317,997073096,1281953886,3579855332,2724688242,1006888145,1258607687,3524101629,2768942443,901097722,1119000684,3686517206,2898065728,853044451,1172266101,3705015759,2882616665,651767980,1373503546,3369554304,3218104598,565507253,1454621731,3485111705,3099436303,671266974,1594198024,3322730930,2970347812,795835527,1483230225,3244367275,3060149565,1994146192,31158534,2563907772,4023717930,1907459465,112637215,2680153253,3904427059,2013776290,251722036,2517215374,3775830040,2137656763,141376813,2439277719,3865271297,1802195444,476864866,2238001368,4066508878,1812370925,453092731,2181625025,4111451223,1706088902,314042704,2344532202,4240017532,1658658271,366619977,2362670323,4224994405,1303535960,984961486,2747007092,3569037538,1256170817,1037604311,2765210733,3554079995,1131014506,879679996,2909243462,3663771856,1141124467,855842277,2852801631,3708648649,1342533948,654459306,3188396048,3373015174,1466479909,544179635,3110523913,3462522015,1591671054,702138776,2966460450,3352799412,1504918807,783551873,3082640443,3233442989,3988292384,2596254646,62317068,1957810842,3939845945,2647816111,81470997,1943803523,3814918930,2489596804,225274430,2053790376,3826175755,2466906013,167816743,2097651377,4027552580,2265490386,503444072,1762050814,4150417245,2154129355,426522225,1852507879,4275313526,2312317920,282753626,1742555852,4189708143,2394877945,397917763,1622183637,3604390888,2714866558,953729732,1340076626,3518719985,2797360999,1068828381,1219638859,3624741850,2936675148,906185462,1090812512,3747672003,2825379669,829329135,1181335161,3412177804,3160834842,628085408,1382605366,3423369109,3138078467,570562233,1426400815,3317316542,2998733608,733239954,1555261956,3268935591,3050360625,752459403,1541320221,2607071920,3965973030,1969922972,40735498,2617837225,3943577151,1913087877,83908371,2512341634,3803740692,2075208622,213261112,2463272603,3855990285,2094854071,198958881,2262029012,4057260610,1759359992,534414190,2176718541,4139329115,1873836001,414664567,2282248934,4279200368,1711684554,285281116,2405801727,4167216745,1634467795,376229701,2685067896,3608007406,1308918612,956543938,2808555105,3495958263,1231636301,1047427035,2932959818,3654703836,1088359270,936918e3,2847714899,3736837829,1202900863,817233897,3183342108,3401237130,1404277552,615818150,3134207493,3453421203,1423857449,601450431,3009837614,3294710456,1567103746,711928724,3020668471,3272380065,1510334235,755167117]);var a=n(8226);const s="__principal__";class c{constructor(e){this._arr=e,this._isPrincipal=!0}static anonymous(){return new this(new Uint8Array([4]))}static managementCanister(){return this.fromHex("aaaaa-aa")}static selfAuthenticating(e){const t=(n=e,a.Z.create().update(new Uint8Array(n)).digest());var n;return new this(new Uint8Array([...t,2]))}static from(e){if("string"==typeof e)return c.fromText(e);if("object"==typeof e&&null!==e&&!0===e._isPrincipal)return new c(e._arr);throw new Error(`Impossible to convert ${JSON.stringify(e)} to Principal.`)}static fromHex(e){return new this(new Uint8Array((null!==(t=e.match(/.{1,2}/g))&&void 0!==t?t:[]).map((e=>parseInt(e,16)))));var t}static fromText(e){let t=e;if(e.includes(s)){const n=JSON.parse(e);s in n&&(t=n[s])}let n=function(e){let t=0,n=0;const r=new Uint8Array(4*e.length/3|0);let o=0;function a(e){let a=i[e.toLowerCase()];if(void 0===a)throw new Error(`Invalid character: ${JSON.stringify(e)}`);a<<=3,n|=a>>>t,t+=5,t>=8&&(r[o++]=n,t-=8,n=t>0?a<<5-t&255:0)}for(const t of e)a(t);return r.slice(0,o)}(t.toLowerCase().replace(/-/g,""));n=n.slice(4,n.length);const r=new this(n);if(r.toText()!==t)throw new Error(`Principal "${r.toText()}" does not have a valid checksum (original value "${t}" may not be a valid Principal ID).`);return r}static fromUint8Array(e){return new this(e)}isAnonymous(){return 1===this._arr.byteLength&&4===this._arr[0]}toUint8Array(){return this._arr}toHex(){return(e=this._arr,e.reduce(((e,t)=>e+t.toString(16).padStart(2,"0")),"")).toUpperCase();var e}toText(){const e=new ArrayBuffer(4);new DataView(e).setUint32(0,function(e){const t=new Uint8Array(e);let n=-1;for(let e=0;e>>8}return~n>>>0}(this._arr));const t=new Uint8Array(e),n=Uint8Array.from(this._arr),i=function(e){let t=0,n=0,i="";for(let a=0;a>-t:n=o<3?(t-=8,1):(t<4&&(i+=r[n>>3],t+=5),0));var o;return i+(t<0?r[n>>3]:"")}(new Uint8Array([...t,...n])).match(/.{1,5}/g);if(!i)throw new Error;return i.join("-")}toString(){return this.toText()}toJSON(){return{[s]:this.toText()}}compareTo(e){for(let t=0;te._arr[t])return"gt"}return this._arr.lengthe._arr.length?"gt":"eq"}ltEq(e){const t=this.compareTo(e);return"lt"==t||"eq"==t}gtEq(e){const t=this.compareTo(e);return"gt"==t||"eq"==t}}},7880:function(e,t,n){"use strict";n.r(t),n.d(t,{encodePath:function(){return l},request:function(){return u}});var r=n(6489),i=n(9847),o=n(421),a=n(9548),s=n(315),c=n(8563);const u=async e=>{const{canisterId:t,agent:n,paths:r}=e,a=[...new Set(r)],s=a.map((e=>l(e,t))),u=new Map,p=a.map(((e,r)=>(async()=>{var p;try{const i=await n.readState(t,{paths:[s[r]]}),p=(await o.us.create({certificate:i.certificate,rootKey:n.rootKey,canisterId:t})).lookup(l(a[r],t));if(p)switch(e){case"time":u.set(e,(0,c.A)(p));break;case"controllers":u.set(e,h(p));break;case"module_hash":u.set(e,f(p));break;case"candid":u.set(e,(new TextDecoder).decode(p));break;default:if("string"!=typeof e&&"key"in e&&"path"in e)switch(e.decodeStrategy){case"raw":u.set(e.key,p);break;case"leb128":u.set(e.key,(0,c.b)(p));break;case"cbor":u.set(e.key,d(p));break;case"hex":u.set(e.key,f(p));break;case"utf-8":u.set(e.key,A(p))}}else console.warn(`Expected to find result for path ${e}, but instead found nothing.`),"string"==typeof e?u.set(e,null):u.set(e.key,null)}catch(t){if(null===(p=null==t?void 0:t.message)||void 0===p?void 0:p.includes("Invalid certificate"))throw new i.Y(t.message);"string"!=typeof e&&"key"in e&&"path"in e?u.set(e.key,null):u.set(e,null),console.group(),console.warn(`Expected to find result for path ${e}, but instead found nothing.`),console.warn(t),console.groupEnd()}})()));return await Promise.all(p),u},l=(e,t)=>{const n=new TextEncoder,r=e=>new DataView(n.encode(e).buffer).buffer,i=new DataView(t.toUint8Array().buffer).buffer;switch(e){case"time":return[r("time")];case"controllers":return[r("canister"),i,r("controllers")];case"module_hash":return[r("canister"),i,r("module_hash")];case"subnet":return[r("subnet")];case"candid":return[r("canister"),i,r("metadata"),r("candid:service")];default:if("key"in e&&"path"in e){if("string"==typeof e.path||e.path instanceof ArrayBuffer){const t=e.path,n="string"==typeof t?r(t):t;return[r("canister"),i,r("metadata"),n]}return e.path}}throw new Error(`An unexpeected error was encountered while encoding your path for canister status. Please ensure that your path, ${e} was formatted correctly.`)},f=e=>(0,a.nj)(e),d=e=>s.D4(e),A=e=>(new TextDecoder).decode(e),h=e=>{const[t,...n]=d(e);return n.map((e=>r.p.fromUint8Array(new Uint8Array(e))))}},315:function(e,t,n){"use strict";n.d(t,{D4:function(){return f},lF:function(){return c}});var r=n(7516),i=n(9283),o=n(9548);const a=i.SelfDescribeCborSerializer.withDefaultEncoders(!0);var s;function c(e){return a.serialize(e)}function u(e){const t=e.byteLength;let n=BigInt(0);for(let r=0;rBigInt(0)?i.value.tagged(2,i.value.bytes((0,o.aD)(e.toString(16)))):i.value.tagged(3,i.value.bytes((0,o.aD)((BigInt("-1")*e).toString(16))))}}),function(e){e[e.Uint64LittleEndian=71]="Uint64LittleEndian",e[e.Semantic=55799]="Semantic"}(s||(s={}));class l extends r.Decoder{createByteString(e){return(0,o.xW)(...e)}createByteStringFromHeap(e,t){return e===t?new ArrayBuffer(0):new Uint8Array(this._heap.slice(e,t))}}function f(e){const t=new Uint8Array(e);return new l({size:t.byteLength,tags:{2:e=>u(e),3:e=>-u(e),[s.Semantic]:e=>e}}).decodeFirst(t)}},421:function(e,t,n){"use strict";n.d(t,{us:function(){return d}});var r=n(315),i=n(9847),o=n(3635),a=n(9548),s=n(6489),c=n(6912),u=n(8563);class l extends i.Y{constructor(e){super(`Invalid certificate: ${e}`)}}function f(e,t){if(e.byteLength!==t.byteLength)return!1;const n=new Uint8Array(e),r=new Uint8Array(t);for(let e=0;em)throw new l("Certificate is signed more than 5 minutes in the future. Certificate time: "+b.toISOString()+" Current time: "+new Date(d).toISOString());try{o=await this._blsVerify(new Uint8Array(r),new Uint8Array(n),new Uint8Array(i))}catch(e){o=!1}if(!o)throw new l("Signature verification failed")}async _checkDelegationAndGetKey(e){if(!e)return this._rootKey;const t=await d.create({certificate:e.certificate,rootKey:this._rootKey,canisterId:this._canisterId,blsVerify:this._blsVerify,maxAgeInMinutes:43200}),n=t.lookup(["subnet",e.subnet_id,"canister_ranges"]);if(!n)throw new l(`Could not find canister ranges for subnet 0x${(0,a.nj)(e.subnet_id)}`);if(!r.D4(n).map((e=>[s.p.fromUint8Array(e[0]),s.p.fromUint8Array(e[1])])).some((e=>e[0].ltEq(this._canisterId)&&e[1].gtEq(this._canisterId))))throw new l(`Canister ${this._canisterId} not in range of delegations for subnet 0x${(0,a.nj)(e.subnet_id)}`);const i=t.lookup(["subnet",e.subnet_id,"public_key"]);if(!i)throw new Error(`Could not find subnet key for subnet 0x${(0,a.nj)(e.subnet_id)}`);return i}}const A=(0,a.aD)("308182301d060d2b0601040182dc7c0503010201060c2b0601040182dc7c05030201036100"),h=96;async function p(e){switch(e[0]){case 0:return(0,o.tW)(g("ic-hashtree-empty"));case 4:return e[1];case 3:return(0,o.tW)((0,a.xW)(g("ic-hashtree-leaf"),e[1]));case 2:return(0,o.tW)((0,a.xW)(g("ic-hashtree-labeled"),e[1],await p(e[2])));case 1:return(0,o.tW)((0,a.xW)(g("ic-hashtree-fork"),await p(e[1]),await p(e[2])));default:throw new Error("unreachable")}}function g(e){const t=new Uint8Array([e.length]),n=(new TextEncoder).encode(e);return(0,a.xW)(t,n)}function y(e,t){if(0===e.length)return 3===t[0]?new Uint8Array(t[1]).buffer:void 0;const n=function(e,t){if(0!==t.length)for(const n of t)if(2===n[0]&&f(e,n[1]))return n[2]}("string"==typeof e[0]?(new TextEncoder).encode(e[0]):e[0],m(t));return n?y(e.slice(1),n):void 0}function m(e){switch(e[0]){case 0:return[];case 1:return m(e[1]).concat(m(e[2]));default:return[e]}}},9847:function(e,t,n){"use strict";n.d(t,{Y:function(){return r}});class r extends Error{constructor(e){super(e),this.message=e,Object.setPrototypeOf(this,r.prototype)}}},3635:function(e,t,n){"use strict";n.d(t,{Gb:function(){return l},tW:function(){return s}});var r=n(2734),i=n(7516),o=n(8226),a=n(9548);function s(e){return(0,a.Nn)(o.s.create().update(new Uint8Array(e)).digest())}function c(e){if(e instanceof i.Tagged)return c(e.value);if("string"==typeof e)return u(e);if("number"==typeof e)return s((0,r.kk)(e));if(e instanceof ArrayBuffer||ArrayBuffer.isView(e))return s(e);if(Array.isArray(e)){const t=e.map(c);return s((0,a.xW)(...t))}if(e&&"object"==typeof e&&e._isPrincipal)return s(e.toUint8Array());if("object"==typeof e&&null!==e&&"function"==typeof e.toHash)return c(e.toHash());if("bigint"==typeof e)return s((0,r.kk)(e));throw Object.assign(new Error(`Attempt to hash a value of unsupported type: ${e}`),{value:e})}const u=e=>s((new TextEncoder).encode(e));function l(e){const t=Object.entries(e).filter((([,e])=>void 0!==e)).map((([e,t])=>[u(e),c(t)])).sort((([e],[t])=>(0,a.UD)(e,t)));return s((0,a.xW)(...t.map((e=>(0,a.xW)(...e)))))}},6912:function(e,t,n){"use strict";let r;n.d(t,{r:function(){return u}});const i=n(3371).D("AGFzbQEAAAABXg9gAn9/AGABfwBgAX8Bf2ADf39/AGACf38Bf2ADf39/AX9gBH9/f38AYAF/AX5gBX9/f39/AGAAAX9gBn9/f39/fwBgBn9/f39/fwF/YAJ/fwF+YAV/fn5+fgBgAAAD3wHdAQIAAAABAwoAAAAIBgQAAwEDAAEBAQAAAQAJAQMAAwEACAEDAwQAAwsADAIBAAEADQMEAAAAAgEBAAABAwABAQMEAAEBAQEBAQEAAAMBAgUABAEFBAEBAgIEAwQDAAAAAwAAAAABDgABAgAAAAEAAwMAAQMAAwYCAAAABAABAAABAQYBAwAAAgICAgIBAAMABAACAQAAAwAAAAAAAQEBAQIAAAEEAQMAAAABAAAEAgABAQEBAQEBAQEBBAQAAgMAAAABAAICAAIEBAEBAgICAgAEBQQEAgIJBwcHAQMDBAUBcAESEgUDAQARBgkBfwFBgIDAAAsHNwQGbWVtb3J5AgAIYmxzX2luaXQA1gEKYmxzX3ZlcmlmeQAnEV9fd2JpbmRnZW5fbWFsbG9jAGgJIQEAQQELEcgBQdoBTroBQH/XAdgBgAEcJVy7AccB2gHZAQr44QLdAd0hAg9/AX4jAEEQayIIJAACQAJAIABB9QFPBEBBgIB8QQhBCBCjAUEUQQgQowFqQRBBCBCjAWprQXdxQQNrIgJBAEEQQQgQowFBAnRrIgUgAiAFSRsgAE0NAiAAQQRqQQgQowEhBEHgu8AAKAIARQ0BQQAgBGshAQJAAkACf0EAIARBgAJJDQAaQR8gBEH///8HSw0AGiAEQQYgBEEIdmciAGt2QQFxIABBAXRrQT5qCyIHQQJ0Qey9wABqKAIAIgAEQCAEIAcQnwF0IQZBACECA0ACQCAAEMsBIgUgBEkNACAFIARrIgUgAU8NACAAIQIgBSIBDQBBACEBDAMLIABBFGooAg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iBEE4ENABGiACQQE2ArgCIAJBwAJqQTgQ0AEaIAJB+AJqQQE2AgAgAkGAA2pBOBDQARogAkG4A2pBATYCACACQcADakE4ENABGiACQfgDakEBNgIAIAJBgARqQTgQ0AEaIAJBATYCuAQgAkHABGpBOBDQARogAkH4BGpBATYCACACQYAFakE4ENABGiACQbgFakEBNgIAIAJBwAVqQTgQ0AEaIAJB+AVqQQE2AgAgAkGABmoiB0E4ENABGiACQQE2ArgGIAJBwAZqQTgQ0AEaIAJB+AZqQQE2AgAgAkGAB2pBOBDQARogAkG4B2pBATYCACACQcAHakE4ENABGiACQfgHakEBNgIAIAJBgAhqIgMgABCMASACQYAKakE4ENABGiACQQE2ArgKIAJBwApqQTgQ0AEaIAJB+ApqQQE2AgAgAkGAC2pBOBDQARogAkG4C2pBATYCACACQcALakE4ENABGiACQfgLakEBNgIAIAIgARAYIAMgAEGAAmoiBhCXASADELABIAQgAxCWASAEIAEQGCADIAYQlgEgAyAAQYAEaiIFEJcBIAMQsAEgByADEJYBIAEoAoAGQQJGDQMgAkHADGoiAyABQYAFahBeIAJBgAZqIAMQpgEMBAsgACABEG0MCAsgAiAAEIwBIAJBgAJqQTgQ0AEaIAJBATYCuAIgAkHAAmpBOBDQARogAkH4AmpBATYCACACQYADakE4ENABGiACQbgDakEBNgIAIAJBwANqQTgQ0AEaIAJB+ANqQQE2AgAgAkGABGpBOBDQARogAkEBNgK4BCACQcAEakE4ENABGiACQfgEakEBNgIAIAJBgAVqQTgQ0AEaIAJBuAVqQQE2AgAgAkHABWpBOBDQARogAkH4BWpBATYCACACQYAGakE4ENABGiACQQE2ArgGIAJBwAZqQTgQ0AEaIAJB+AZqQQE2AgAgAkGAB2pBOBDQARogAkG4B2pBATYCACACQcAHakE4ENABGiACQfgHakEBNgIAIAIgARAYAkAgASgCgAZBBEYNACAAKAKABkEERg0AIAJBgARqIgMgAEGAAmoQlgEgAyABQYACahAYDAYLIAJBwAxqIgdBOBDQARogAkEBNgL4DCACQYANakE4ENABGiACQbgNakEBNgIAIAJBgAhqIgRBOBDQARogAkEBNgK4CCACQcAIakE4ENABGiACQfgIakEBNgIAIAJBgApqIgMgAEGAA2oiBRBeIAQgAxCZASADIAFBgANqIgYQXiAEIAMQESAHELYBIAEoAoAGQQRHDQMMBAsgACABEAMMBgsgAkHADGoiAyABQYAFahBeIAJBgAxqIgQgA0HAABDRARogAkGABmogBBCnAQsgAkGABmoQZCACQYAIaiIDIAIQlgEgAxArIAJBgAJqIgQgAxCXASAGIAQQlgEgAkGABGoiByADEJYBIAMgABCWASADIAUQlwEgAxCwASACQYAKaiIEIAEQlgEgBCABQYAEahCXASAEELABIAMgBBAYIAcgAxCXASADIAUQlgECQCABKAKABkECRwRAIAJBwAxqIgMgAUGABWoQXiACQYAIaiADEKYBDAELIAJBwAxqIgMgAUGABWoQXiACQYAMaiIBIANBwAAQ0QEaIAJBgAhqIAEQpwELIAJBgAhqIgEQZCACQYAKaiIDIAEQlgEgAxArIAUgAkGABGoQlgEgBSADEJcBIAJBgAZqIgQgAxCXASABEGQgBiABEJcBIAQQsAEgBBBkIAAgAhCWASAAIAQQlwEMAwsgAkGACmoiAyAFEF4gAkHADGoiBCADEJkBIAMgAUGAAmoQXiAEIAMQEQsgACgCgAZBBEcEQCACQYAKaiIDIABBgAJqEF4gAkHADGoiBCADEJkBIAMgBhBeIAQgAxARCyACQYAEaiIDIAJBwAxqIAJBgAhqEKUBIAMQZAsgAkGACGoiAyAAEIwBIAJBgApqIgQgARCMASADIABBgAJqIgUQlwEgAxCwASAEIAFBgAJqIggQlwEgBBCwASACQYACaiIJIAMQlgEgCSAEEBggAyAFEJYBIAMgAEGABGoiBhCXASADELABIAQgCBCWASAEIAFBgARqIggQlwEgBBCwASACQYAGaiIHIAMQlgEgByAEEBggAyACEJYBIAMQKyAEIAJBgARqIgoQlgEgBBArIAkgAxCXASAFIAkQlgEgBSAEEJcBIAcgBBCXASAKIAMQlwEgAyAAEJYBIAMgBhCXASADELABIAQgARCWASAEIA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BAkYgACgCgAYiBEECRnJFBEAgA0GACGoiAiAAQYAFahBeIANBgAJqIgQgAhBeIAIgAUGABWoQXiAEIAIQEQwBCyACQQJGIARBAkZxRQRAIAJBAkYEQCADQYAIaiICIABBgAVqEF4gA0GAAmoiBCACEF4gAiABQYAFahBeIANBgAdqIgUgAkHAABDRARogBCAFEKoBDAILIANBgAhqIgIgAUGABWoQXiADQYACaiIEIAIQXiACIABBgAVqEF4gA0GAB2oiBSACQcAAENEBGiAEIAUQqgEMAQsgA0GACGoiAiAAQYAFahBeIANBgAdqIgQgAkHAABDRARogA0GABmoiBSAEEJABIAIgAUGABWoQXiAEIAJBwAAQ0QEaIAUgBBBKIANBgAJqQTgQ0AEiAkEBNgI4IAJBQGtBOBDQASACQfgAakEBNgIAIAIgBRCuARDBAQsgA0GACGoiAiAAEF4gA0GAA2oiBCACEF4gAiABEF4gA0GABGoiBSACEF4gAiAKEF4gBCACEJoBIAQQqQEgAiALEF4gBSACEJoBIAUQqQEgA0GABWoiByAEEF4gByAFEBEgA0GABmoiBiADEF4gBiADQYABaiIIEJoBIAYQNiAHIAYQmgEgAiAAEF4gBCACEJkBIAIgAEGABWoiDBBeIAQgAhCaASAEEKkBIAIgARBeIAUgAhCZASACIAFBgAVqIg0QXiAFIAIQmgEgBRCpASADQYAHaiIJIAQQXiAJIAUQESAGIAMQmQEgBiADQYACaiIBEJoBIAYQNiAJIAYQmgEgAiAKEF4gBCACEJkBIAIgDBBeIAQgAhCaASAEEKkBIAIgCxBeIAUgAhCZASACIA0QXiAFIAIQmgEgBRCpASACIAQQXiACIAUQESAGIAgQmQEgBiABEJoBIAYQNiACIAYQmgEgCBB8IAMgCBCaASAAIAMgBxClASABEHwgARCpASAAQYACaiIEQYABaiABEJkBIAQQtgEgAhCpASACEHwgAEGABGoiASACIAkQpQEgABCwASABELABIABBBDYCgAYgA0GACWokAAuHBwEFfyAAENUBIgAgABDLASICENIBIQECQAJAAkAgABDMAQ0AIAAoAgAhAwJAIAAQxA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ASAGEDYgBhCpASAGEHwgBhCpASAFQQwQqwEgCEEDEKsBIAUQfCAFEKkBIAUgBxB7IAUQqQEgARASIAdBgAJqJAAgCCACEKoBIAYgAxCqASAEQYAJaiIBIAYgBRCVASAEIAEQlgEgASAIEKEBIAogARCWASAKEGQgACAEIAsgChB1IABBAzYCgAYgBEGAC2okAAuBBQELfyMAQTBrIgIkACACQSRqQai1wAA2AgAgAkEDOgAoIAJCgICAgIAENwMIIAIgADYCICACQQA2AhggAkEANgIQAkACQAJAIAEoAggiCkUEQCABQRRqKAIAIgRFDQEgASgCACEDIAEoAhAhACAEQQFrQf////8BcUEBaiIHIQUDQCADQQRqKAIAIgQEQCACKAIgIAMoAgAgBCACKAIkKAIMEQUADQQLIAAoAgAgAkEIaiAAQQRqKAIAEQQADQMgAEEIaiEAIANBCGohAyAFQQFrIgUNAAsMAQsgAUEMaigCACIARQ0AIABBBXQhCyAAQQFrQf///z9xQQFqIQcgASgCACEDA0AgA0EEaigCACIABEAgAigCICADKAIAIAAgAigCJCgCDBEFAA0DCyACIAUgCmoiBEEcai0AADoAKCACIARBBGopAgBCIIk3AwggBEEYaigCACEGIAEoAhAhCEEAIQlBACEAAkACQAJAIARBFGooAgBBAWsOAgACAQsgBkEDdCAIaiIMKAIEQQ9HDQEgDCgCACgCACEGC0EBIQALIAIgBjYCFCACIAA2AhAgBEEQaigCACEAAkACQAJAIARBDGooAgBBAWsOAgACAQsgAEEDdCAIaiIGKAIEQQ9HDQEgBigCACgCACEAC0EBIQkLIAIgADYCHCACIAk2AhggCCAEKAIAQQN0aiIAKAIAIAJBCGogACgCBBEEAA0CIANBCGohAyALIAVBIGoiBUcNAAsLQQAhACAHIAEoAgRJIgNFDQEgAigCICABKAIAIAdBA3RqQQAgAxsiASgCACABKAIEIAIoAiQoAgwRBQBFDQELQQEhAAsgAkEwaiQAIAAL1wQBBH8gACABENIBIQICQAJAAkAgABDMAQ0AIAAoAgAhAwJAIAAQxAFFBEAgASADaiEBIAAgAxDT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oQGiADQcAWaiADQbgKaiADQbgJaiADQfgJahALAkACQAJAIANBwAFqIAIQUyADQYgBaiACEFNrQQFqDgMBAgACCyADQcgcaiIBIANBuApqIANB+ARqIANBuAlqIANB+AlqEAogA0HAFmogARADDAELIANByBxqIgEgA0G4CmogA0HAE2ogA0G4CWogA0H4CWoQCiADQcAWaiABEAMLIAJBAWshAiADQbgNaiADQcAWahABDAELCwsgA0HQImokAAvBAwEVfwNAIANBwAFGBEACQCAAQShqIQsgAEEUaigCACIMIQggAEEQaigCACINIQIgAEEMaigCACIOIQEgACgCCCIPIQMgAEEYaigCACIQIQogAEEcaigCACIRIQQgAEEgaigCACISIQcgAEEkaigCACITIQYDQCAHIQkgBCEHIAohBCAFQYACRg0BIAEgAnEhFCABIAJzIRUgBSALaigCACAFQcCiwABqKAIAIAkgBEF/c3EgBCAHcXIgBmogBEEadyAEQRV3cyAEQQd3c2pqaiIGIAhqIQogBUEEaiEFIAIhCCABIQIgAyIBQR53IAFBE3dzIAFBCndzIBQgASAVcXNqIAZqIQMgCSEGDAALAAsFIAAgA2oiAkHoAGogAkEoaigCACACQcwAaigCACACQeAAaigCACIBQQ93IAFBDXdzIAFBCnZzamogAkEsaigCACIBQRl3IAFBDndzIAFBA3ZzajYCACADQQRqIQMMAQsLIAAgBiATajYCJCAAIAkgEmo2AiAgACAHIBFqNgIcIAAgBCAQajYCGCAAIAggDGo2AhQgACACIA1qNgIQIAAgASAOajYCDCAAIAMgD2o2AggL5AEBAn8jAEGAA2siAyQAIAMQPSAAIAEgAkEfdSIEIAJzIARBf3NqQQJtIgJBAWtBH3YQbyAAIAFBgANqIAJBAXNBAWtBH3YQbyAAIAFBgAZqIAJBAnNBAWtBH3YQbyAAIAFBgAlqIAJBA3NBAWtBH3YQbyAAIAFBgAxqIAJBBHNBAWtBH3YQbyAAIAFBgA9qIAJBBXNBAWtBH3YQbyAAIAFBgBJqIAJBBnNBAWtBH3YQbyAAIAFBgBVqIAJBB3NBAWtBH3YQbyADIA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gAJqIgMgAEGABGoiBRCMASABQYAEaiIEIABBgAJqIgYQjAEgAUGABmoiAkE4ENABGiABQQE2ArgGIAFBwAZqQTgQ0AEaIAFB+AZqQQE2AgAgAUGAB2pBOBDQARogAUG4B2pBATYCACABQcAHakE4ENABGiABQfgHakEBNgIAIAAQISACIAAQlgEgAiAAEJcBIAAgAhCXASAAELABIAEQyQEgARCzASAAIAEQlwEgAxAhIAMQZCACIAMQlgEgAiADEJcBIAMgAhCXASADELABIAQQISACIAQQlgEgAiAEEJcBIAQgAhCXASAEELABIAYQsgEgBhCzASAFEMkBIAUQswEgBiADEJcBIAUgBBCXASAAQQU2AoAGIAAQnAEgAUGACGokAAv/AQEHfyMAQcACayIBJAAgASAAQUBrIgYQkAEgARBMIAFBQGsiAyAGEJABIAMgAEGAAWoiAhBKIAFBgAFqIgQgAhCQASAEEEwgAiABEK4BIAIgARB3IAIQQiACEIIBIAIQggEgAhBCIARBDBA0IAFBwAFqIgcgBBCQASAHIAIQSiABQYACaiIFIAEQkAEgBSAEEHcgBRBCIAIgAxBKIAMgBBCuASADIAQQdyAEIAMQdyABIAQQfiABEEIgBSABEEogBSAHEHcgAyAAEK4BIAMgBhBKIAAgARCuASAAEEIgACADEEogABCCASAAEEIgBiAFEK4BIAYQQiABQcACaiQAC84CAgd/An4CQAJAAkBBDSABQTpuIgJrIgRBDU0EQEEMIAJrIgNBDk8NASAAIAAgA0EDdGopAwBBOiABIAJBOmxrIgNrrSIKhyAAIARBA3RqKQMAIAOtIgmGhDcDaCAEQQ1rIQUgAEHgAGohBCACQQFqIQZBACACQQN0ayEHQQshAwNAAkAgA0ECaiAGTQRAIAFBrAZPDQEgACACQQN0aiAAKQMAIAmGQv//////////A4M3AwADQCACRQ0HIABCADcDACACQQFrIQIgAEEIaiEADAALAAsgAyAFakEOTw0EIAQgBCAHaiIIQQhrKQMAIAqHIAgpAwAgCYZC//////////8Dg4Q3AwAgA0EBayEDIARBCGshBAwBCwsgAkEOQYCywAAQOwALIARBDkHQscAAEDsACyADQQ5B4LHAABA7AAtBf0EOQfCxwAAQOwALC6cCAQR/IABCADcCECAAAn9BACABQYACSQ0AGkEfIAFB////B0sNABogAUEGIAFBCHZnIgNrdkEBcSADQQF0a0E+agsiBDYCHCAEQQJ0Qey9wABqIQMgACECAkACQAJAAkBB4LvAACgCACIAQQEgBHQiBXEEQCADKAIAIQMgBBCfASEAIAMQywEgAUcNASADIQAMAgtB4LvAACAAIAVyNgIAIAMgAjYCAAwDCyABIAB0IQQDQCADIARBHXZBBHFqQRBqIgUoAgAiAEUNAiAEQQF0IQQgACIDEMsBIAFHDQALCyAAKAIIIgEgAjYCDCAAIAI2AgggAiAANgIMIAIgATYCCCACQQA2AhgPCyAFIAI2AgALIAIgAzYCGCACIAI2AgggAiACNgIMC7YCAQV/IAAoAhghBAJAAkAgACAAKAIMRgRAIABBFEEQIABBFGoiASgCACIDG2ooAgAiAg0BQQAhAQwCCyAAKAIIIgIgACgCDCIBNgIMIAEgAjYCCAwBCyABIABBEGogAxshAwNAIAMhBSACIgFBFGoiAygCACICRQRAIAFBEGohAyABKAIQIQILIAINAAsgBUEANgIACwJAIARFDQACQCAAIAAoAhxBAnRB7L3AAGoiAigCAEcEQCAEQRBBFCAEKAIQIABGG2ogATYCACABDQEMAgsgAiABNgIAIAENAEHgu8AAQeC7wAAoAgBBfiAAKAIcd3E2AgAPCyABIAQ2AhggACgCECICBEAgASACNgIQIAIgATYCGAsgAEEUaigCACIARQ0AIAFBFGogADYCACAAIAE2AhgLC+UBAQZ/IwBBgARrIgIkACACIAAQXiACQYABaiIFIABBgAFqIgYQXiACQYACaiIDQTgQ0AEaIAJBATYCuAIgAkHAAmpBOBDQARogAkH4AmpBATYCACACQYADaiIEIAYQXiACIAEQESAFIAFBgAFqIgcQESADIAcQmQEgAyABEJoBIAQgABCaASADEKkBIAQQqQEgBCADEBEgAyACEJkBIAMQNiAEIAMQmgEgBBCpASADIAUQmQEgAxA2IAYgBBCZASAGIAMQmgEgBRB8IAAgBRCZASAAIAIQmgEgABCwASACQYAEaiQAC28BDH9BjL/AACgCACICRQRAQZy/wABB/x82AgBBAA8LQYS/wAAhBgNAIAIiASgCCCECIAEoAgQhAyABKAIAIQQgAUEMaigCABogASEGIAVBAWohBSACDQALQZy/wAAgBUH/HyAFQf8fSxs2AgBBAAuAAgEGfyMAQYAIayIBJAAgACgCgAZBAUcEQCABIAAQjAEgAUGAAmoiAiAAQYACaiIEEIwBIAFBgARqIgUgAEGABGoiAxCMASABQYAGaiIGIAAQjAEgARAhIAIgAxAYIAIQswEgAhCwASAFECEgBiAEEBggBhCzASADIAAQlwEgAyAEEJcBIAMQsAEgAxAhIAAgARCWASABIAIQlwEgARCwASABIAUQlwEgASAGEJcBIAEQsAEgARArIAIQZCAFEGQgACACEJcBIAQgBRCWASAEIAYQlwEgAyABEJcBIABBBEEFIAAoAoAGQX5xQQJGGzYCgAYgABCdAQsgAUGACGokAAuZAgEBfyMAQYANayIDJAAgAyABEGkgAxCdASADQYgGaiIBIAIQXSABEEIgA0HABmoiAiABEF0gAkEDECkaIAIQQiADQfgGaiADEGkCQCACEFdFBEAgA0HABmoQKkECayECA0AgAkEBakEBTQRAIANB+AZqIgEQnAEMAwUgA0H4BmoQEwJAAkACQCADQcAGaiACEFMgA0GIBmogAhBTa0EBag4DAQIAAgsgA0H4BmogAxAHDAELIAMQngEgA0H4BmogAxAHIAMQngELIAJBAWshAgwBCwALAAsgA0H4BmoiARC3ASABQYABahC2ASABQYACahCxASABQYAEahCxASABQQE2AoAGCyAAIAFBiAYQ0QEaIANBgA1qJAALhgICBH8BfiMAQTBrIgIkACABQQRqIQQgASgCBEUEQCABKAIAIQMgAkEQaiIFQQA2AgAgAkIBNwMIIAIgAkEIajYCFCACQShqIANBEGopAgA3AwAgAkEgaiADQQhqKQIANwMAIAIgAykCADcDGCACQRRqIAJBGGoQDBogBEEIaiAFKAIANgIAIAQgAikDCDcCAAsgAkEgaiIDIARBCGooAgA2AgAgAUEMakEANgIAI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AIQIDQCACQTBGDQMgAkEwRg0EIAIgA2ogASACai0AADoAACACQQFqIQIMAAsACyACQeAARwRAIAIgA2ogASACai0AADoAACACQQFqIQIMAQsLQeAAQeAAQYCmwAAQOwALIANB8ABqIgEgAxBwIABBOBDQASIAQQE2AjggAEFAa0E4ENABIABB+ABqQQE2AgAgACABEK4BIANBMGoQrgEgA0GwAWokAA8LIAJBMGpB4ABBkKbAABA7AAuPAgEDfyMAQSBrIgUkAEEBIQZB2LvAAEHYu8AAKAIAIgdBAWo2AgACQEGgv8AALQAABEBBpL/AACgCAEEBaiEGDAELQaC/wABBAToAAAtBpL/AACAGNgIAAkACQCAHQQBIIAZBAktyDQAgBSAEOgAYIAUgAzYCFCAFIAI2AhBBzLvAACgCACICQQBIDQBBzLvAACACQQFqIgI2AgBBzLvAAEHUu8AAKAIAIgMEf0HQu8AAKAIAIAUgACABKAIQEQAAIAUgBSkDADcDCCAFQQhqIAMoAhQRAABBzLvAACgCAAUgAgtBAWs2AgAgBkEBSw0AIAQNAQsACyMAQRBrIgIkACACIAE2AgwgAiAANgIIAAucAQEEfyMAQYADayICJAAgAiAAEF4gAkGAAWoiASAAQYABaiIEEF4gAkGAAmoiAyAAEF4gAyAEEBEgAiAEEJoBIAEQfCABIAAQmgEgAhCpASABEKkBIAAgAhCZASAAIAEQESABIAMQmQEgARB8IAEgAxCaASABEKkBIAEQNiAAIAEQmgEgAxC4ASAEIAMQmQEgABCwASACQYADaiQAC7kBAQJ/IwBBIGsiAyQAAkAgASABIAJqIgFLDQAgAEEEaigCACICQQF0IgQgASABIARJGyIBQQggAUEISxshAQJAIAIEQCADQRhqQQE2AgAgAyACNgIUIAMgACgCADYCEAwBCyADQQA2AhALIAMgASADQRBqECYgAygCAARAIANBCGooAgAiAEUNASADKAIEIAAQzwEACyADKAIEIQIgAEEEaiABNgIAIAAgAjYCACADQSBqJAAPCxBlAAusAQECfyMAQYADayIDJAAgA0EIaiABEJABAkAgAgRAIANBCGogAhCuAQwBCyADQQhqEDoLIANByABqIgJB8LTAABBJIANBgAFqIAIQjgEgA0HAAWoiAiADQQhqIgQQkAEgAhBMIAIgARBKIAAgARCQASAAIAQQSiADQYACaiACEJABIAAQViEBIANBwAJqIgIgABCQASACEEMgAhBCIAAgAiABEHIgA0GAA2okAAueAQEFfyMAQYABayICJAAgAkE4ENABIgJBATYCOCACQUBrIgNBOBDQARogAkEBNgJ4IAIgABCuASACIAFBgAFqIgUQSiADIAEQrgEgAyAAQYABaiIGEEoCQCACIAMQWEUNACACIABBQGsQrgEgAiAFEEogAkFAayIAIAFBQGsQrgEgACAGEEogAiAAEFhFDQBBASEECyACQYABaiQAIAQLpwEBA38jAEEwayICJAAgAUEEaiEDIAEoAgRFBEAgASgCACEBIAJBEGoiBEEANgIAIAJCATcDCCACIAJBCGo2AhQgAkEoaiABQRBqKQIANwMAIAJBIGogAUEIaikCADcDACACIAEpAgA3AxggAkEUaiACQRhqEAwaIANBCGogBCgCADYCACADIAIpAwg3AgALIABBhLfAADYCBCAAIAM2AgAgAkEwaiQAC5UBAQJ/AkACQAJAAkACfwJAAkACf0EBIgMgAUEASA0AGiACKAIAIgRFDQEgAigCBCICDQQgAQ0CQQEMAwshA0EAIQEMBgsgAQ0AQQEMAQsgAUEBELkBCyICRQ0BDAILIAQgARCsASICDQELIAAgATYCBEEBIQEMAQsgACACNgIEQQAhAwsgACADNgIAIABBCGogATYCAAvvMwISfwV+IwBBMGsiDiQAIA5BEGogACABEFsgDiAOKAIUIgA2AhwgDiAOKAIQIgg2AhggDkEIaiACIAMQWyAOIA4oAgwiATYCJCAOIA4oAggiAzYCICAOIAQgBRBbIA4gDigCBCIFNgIsIA4gDigCACINNgIoIAAhBCMAQZAVayICJAAjAEGwBmsiCiQAIApBEGpBOBDQARogCkHQAGpBOBDQASEVIApBiAFqQQE2AgAgCkEBNgJIIApBkAFqIgBB2KTAABBJIAAQKiEPIApByAFqIhNBgAIQ0AEaIApByANqQYABENABGiMAQdAAayIRJAAgEUEQakHAAB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fCAQEKkBIAYgEBB7IAYQPiAEIAYQESAGEDYgBhCpASASIAYQESAGQYACaiQAIAUgAxCWASAFIAQQGCAPIAkQlgEgDyAEEBggDCAKEJYBIAwgBBAYIAVBBTYCgAYgA0GACGokACAAEJ4BIAAgBRAHIAUgABBtIAAgCBAyIAAgCBAyIAAgBRAHIAhBwAdqIgQgABBpIAQQEyAEIAAQByANIAAgCxAbIAhByA1qIgMgDRBpIAMQngEgASAAEGkgARCeASAAIAMQbSAAIAEQByANIAAgCxAbIAMgDRBtIAMQngEgASAAEG0gARCeASAAIAMQbSAAIAEQByANIAAgCxAbIAMgDRBtIAMQngEgASAAEG0gASAIEDIgACADEG0gACABEAcgDSAAIAsQGyADIA0QbSANIAMgCxAbIAMgDRBtIAEgABBtIAEgCBAyIAEgCBAyIAMgARAHIAEgABBtIAEQngEgACADEG0gACABEAcgACAEEAcgABCcASAIQeAfaiQAIAcgAEGIBhDRARpBACEAIwBBgAJrIgEkACABEGwCQCAHIAEQegR/IAdBgAFqIAFBgAFqEHoFQQALRQ0AIAdBgAJqEIcBRQ0AIAdBgARqEIcBIQALIAFBgAJqJABBACAADQAaQX8LIAJBkBVqJAAgDkEoahC0ASAOQSBqELQBIA5BGGoQtAEgDkEwaiQAC58BAgJ/BX4gAEEwaiICKQMAIAFBP3GtIgSGIQUgACkDKCIGQTogAWtBP3GtIgiHIQdBBiEBA38gAiAFIAeENwMAIAFBAU0EfyAAIAApAwAgBIZC//////////8DgzcDACAAKQMwQiSHpwUgAUEBayEBIAJBEGsiA0EIaiECIAYgBIZC//////////8DgyEHIAMpAwAiBiAIhyEFDAELCxoLiAECA34DfyMAQRBrIgUkAAN+IAZBOEYEfiAFQRBqJAAgAwUgBSAAIAZqIgcpAwAiAiACQj+HIAGsIgIgAkI/hxAvIAcgBSkDACIEIAN8IgJC//////////8DgzcDACACIARUrSAFQQhqKQMAIANCP4d8fEIGhiACQjqIhCEDIAZBCGohBgwBCwsLigECA38BfiMAQUBqIgIkACACQQhqIgEgABBdIAEQQiACQThqIQFBBiEDQdwCIQACQAJAA0AgA0EATgRAIAEpAwAiBEIAUg0CIAFBCGshASAAQTprIQAgA0EBayEDDAELC0EAIQAMAQsDQCAEUA0BIABBAWohACAEQgJ/IQQMAAsACyACQUBrJAAgAAuHAQEDfyMAQYACayIBJAAgABCwASABIAAQXiABQYABaiICQTgQ0AEaIAFBATYCuAEgAUHAAWpBOBDQARogAUH4AWpBATYCACABIABBgAFqIgMQmgEgARA2IAIgARCZASACIAMQmgEgAyABEJkBIAMgABCaASAAIAIQmQEgABCwASABQYACaiQAC30CBH4BfyABQT9xrSECQTogAWtBP3GtIQRBACEBIAApAwAiBSEDA38gAUEwRgR/IAAgACkDMCAChzcDMCAFQn8gAoZCf4WDpwUgACABaiIGIAMgAocgBkEIaikDACIDIASGQv//////////A4OENwMAIAFBCGohAQwBCwsaC2kBBH8jAEHAAWsiASQAIAEgABCQASABQUBrIgIgABCQASABQYABaiIDIABBQGsiBBCQASABIAQQdyACIAAQdyACEEIgBCACEEogAxBDIAAgAxB3IAEQQiAAEEIgACABEEogAUHAAWokAAuCAQIBfwF+IABB8AAQ0AEhAANAIAJBOEYEQAJAIAAgASkDMCIDQjqHNwM4IAAgA0L//////////wODNwMwIABBQGshAEEAIQIDQCACQTBGDQEgACACakIANwMAIAJBCGohAgwACwALBSAAIAJqIAEgAmopAwA3AwAgAkEIaiECDAELCwtuAQZ+IAAgA0L/////D4MiBSABQv////8PgyIGfiIHIAUgAUIgiCIIfiIJIAYgA0IgiCIGfnwiBUIghnwiCjcDACAAIAcgClatIAYgCH4gBSAJVK1CIIYgBUIgiIR8fCABIAR+IAIgA358fDcDCAtqAgF/BX4gASkDCCAAKQMAhSIGQgGGQgGHIQdBACACa6whCAN+IANBOEYEfiAFBSAAIANqIgIgAikDACIEIAaFIAEgA2opAwAgBIUgCIOFIgQgB4U3AwAgBCAFhSEFIANBCGohAwwBCwsaC18CAX8EfkIBIQNBMCECA38gAkF4RgR/IARCAYYg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OBDQASIAQQE2AjgCQCABQQBOBEAgACABEJMBDAELIANBCGoiAkHAssAAEEkgAiABEJMBIAIQQiAAIAIQagsgABBUIANBQGskAAu9CAEKfyMAQYABayIHJAAgB0EIaiIDQcCywAAQSSADQQEQlAECQAJAA0AgAUEwRgRAIANBMGogAykDMEIBhzcDACADQThqIQEDQCACRQ0EIAFCADcDACACQQFrIQIgAUEIaiEBDAALAAsgAUE4Rg0BIAFBOEcEQCABIANqIAEgA2oiBEEIaikDAEI5hkL//////////wODIAQpAwBCAYeENwMAIAVBAWohBSABQQhqIQEMAQsLQQdBB0GEm8AAEDsACyAFQQdB9JrAABA7AAsgA0EBEJQBIANBARAsIAdBQGshBUEAIQIjAEGgCmsiASQAIAFBOBDQASIBQUBrQTgQ0AEhBiABQYABakE4ENABGiABQcABakE4ENABGiABQYACakE4ENABGiABQcACakE4ENABGiABQYADakE4ENABGiABQcADakE4ENABGiABQYAEakE4ENABGiABQcAEakE4ENABGiABQYAFakE4ENABGiABQcAFakE4ENABGiABQYAGakE4ENABGiABQcAGakE4ENABGiABQYAHakE4ENABGiABQcAHakE4ENABGiABQfgHakEBNgIAIAFBuAdqQQE2AgAgAUH4BmpBATYCACABQbgGakEBNgIAIAFB+AVqQQE2AgAgAUG4BWpBATYCACABQfgEakEBNgIAIAFBuARqQQE2AgAgAUH4A2pBATYCACABQbgDakEBNgIAIAFB+AJqQQE2AgAgAUG4AmpBATYCACABQfgBakEBNgIAIAFBuAFqQQE2AgAgAUH4AGpBATYCACABQQE2AjggAUGBCGpB5wAQ0AEaIAFB6AhqIgQgABCQASAEEEIgAUGoCWoiBCADEF0gBBBCIAQQKkEDaiIIQQJ2IgNBAWohCQJAA0AgAiAJRgRAIAEQygEgBiABQegIahCuASABQeAJakE4ENABGiABQQE2ApgKQYB5IQIMAgsgAUGoCWoiBCAEQQQQjwEiChCUASAEEEIgAkHnAEcEQCABQYEIaiACaiAKOgAAIAFBqAlqQQQQLCACQQFqIQIMAQsLQecAQecAQaC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AIAIgASkCADcDCCACQQRqIAJBCGoQDCACQSBqJAALZwAjAEEwayIBJABBpLvAAC0AAARAIAFBHGpBATYCACABQgI3AgwgAUGQtsAANgIIIAFBATYCJCABIAA2AiwgASABQSBqNgIYIAEgAUEsajYCICABQQhqQbi2wAAQZgALIAFBMGokAAtiAgF+An8gACkDACEBA34gACACaiIDIAFC//////////8DgzcDACABQjqHIQEgAkEoRgR+IAAgACkDMCABfCIBNwMwIAFCJIcFIAJBCGohAiADQQhqKQMAIAF8IQEMAQsLGgt8AQV/IwBBQGoiAyQAIANBCGoiAkHAssAAEEkgAiAAKAI4QQFrEDUiBBAoA0AgAUE4RwRAIAAgAWoiBSABIAJqKQMAIAUpAwB9NwMAIAFBCGohAQwBCwsgAEEBIARBAWp0IgI2AjggAkH///8PSgRAIAAQHgsgA0FAayQAC3sBAn8gAEEoaiECA0AgAUGAAkYEQCAAQufMp9DW0Ouzu383AgggAEIANwIAIABBIGpCq7OP/JGjs/DbADcCACAAQRhqQv+kuYjFkdqCm383AgAgAEEQakLy5rvjo6f9p6V/NwIABSABIAJqQQA2AgAgAUEEaiEBDAELCwtUACAAQTgQ0AEiAEEBNgI4IABBQGtBOBDQARogAEH4AGpBATYCACAAQYABakE4ENABGiAAQbgBakEBNgIAIABBwAFqQTgQ0AEaIABB+AFqQQE2AgALWAECfyMAQUBqIgEkAAJAIAAQhgENACABQQEQOSAAQYABaiICIAEQWA0AIAJBABAzIAAgAhBKIAAQHiAAQUBrIgAgAhBKIAAQHiACIAEQrgELIAFBQGskAAtZAQJ/IwBBgAFrIgEkAAJAIAAQigENACABEFEgAEGAAmoiAiABEHoNACACED4gACACEBEgABC1ASAAQYABaiIAIAIQESAAELUBIAIgARCZAQsgAUGAAWokAAtbAgF+An8gACkDACEBA0AgACACaiIDIAFC//////////8DgzcDACABQjqHIQEgAkHgAEYEQCAAIAApA2ggAXw3A2gFIAJBCGohAiADQQhqKQMAIAF8IQEMAQsLC08BAX8gAEE4ENABGgJAA0AgA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JQQJ0ELkBIgBFDQAgAA8LAAs4ACAAEIsBIAAgARCWASAAQYACaiABQYACahCWASAAQYAEaiABQYAEahCWASAAIAEoAoAGNgKABgsoAQF/A0AgAkE4RwRAIAAgAmogASACaikDADcDACACQQhqIQIMAQsLC4QJAg1/Cn4jAEFAaiILJAAgC0EIaiIJQcCywAAQSSMAQZACayICJAAgAEEwENABIQogAkHoAGpB8AAQ0AEaIAJB4AFqQTAQ0AEaIAoQcSACIAEiDCkDACIQQv3/8//P///5AX5C//////////8DgyISNwPYASACQdgAaiASQgAgCSkDACIXIBdCP4ciGBAvIBAgAikDWCIPfCITIA9UrSACQeAAaikDACAQQj+HfHwiEEI6hyABKQMIIg9CP4d8IA8gEEIGhiATQjqIhCITfCIQIBNUrXwhD0EBIQBCACETAkACQANAAkAgAEEHRgRAQQYhB0EAIQhBByEADAELIABBAXYiAUEBaiEGIAggAWshAyABQQN0IgFBCGohBCAHIAFrIQUgAkHIAGogCSAAQQN0Ig1qKQMAIhUgFUI/hyIWIBJCABAvIAJB0ABqKQMAIBAgECATfCIRVq0gDyAUfHx8IBEgAikDSHwiDyARVK18IRAgAEEBaiEBA0AgACAGTQRAIAJB2AFqIA1qIA9C/f/z/8////kBfkL//////////wODIhE3AwAgAkE4aiARQgAgFyAYEC8gAkEoaiARQgAgFSAWEC8gAkHoAGogAEEEdGoiACACQTBqKQMAIhE3AwggACACKQMoIhU3AwAgDyACKQM4IhZ8Ig8gFlStIAJBQGspAwAgEHx8IhBCOocgDCABQQN0aikDACIWQj+HfCAWIBBCBoYgD0I6iIQiD3wiECAPVK18IQ8gEyAVfCITIBVUrSARIBR8fCEUIAdBCGohByAIQQFqIQggASEADAMLIANBB08NAyACQRhqIAQgCWopAwAgBSAJaikDAH0iESARQj+HIAJB2AFqIg4gBWopAwAgBCAOaikDAH0iESARQj+HEC8gAikDGCIRIA98Ig8gEVStIAJBIGopAwAgEHx8IRAgBkEBaiEGIARBCGohBCAFQQhrIQUgA0EBayEDDAALAAsLA0ACQAJAIABBDUcEQCAHIABBAXYiBmshAyAIIAZBA3QiAWshBCABQQhqIQUgDyAUfCAQIBN8Ig8gEFStfCEQIABBAWohAQNAIAZBBUsNAyADQQdPDQIgAkEIaiAFIAlqKQMAIAQgCWpBMGopAwB9IhIgEkI/hyACIARqQYgCaikDACACQdgBaiAFaikDAH0iEiASQj+HEC8gAikDCCISIA98Ig8gElStIAJBEGopAwAgEHx8IRAgBkEBaiEGIARBCGshBCADQQFrIQMgBUEIaiEFDAALAAsgCiAQQv//////////A4M3AzAgAkGQAmokAAwECyADQQdBpJzAABA7AAsgAEEDdCAKakE4ayAPQv//////////A4M3AwAgEEI6hyAMIAFBA3RqKQMAIhJCP4d8IBIgEEIGhiAPQjqIhCIPfCIQIA9UrXwhDyAUIABBBHQgAmpBCGoiAEEIaikDAH0gEyAAKQMAIhJUrX0hFCAIQQhqIQggB0EBaiEHIBMgEn0hEyABIQAMAAsACyADQQdBlJzAABA7AAsgC0FAayQACy4BAX8jAEGAAWsiASQAIAAQRSABEFEgACABEJkBIABBgAFqELYBIAFBgAFqJAALMwAgACABEJYBIABBgAJqIAFBgAJqEJYBIABBgARqIAFBgARqEJYBIAAgASgCgAY2AoAGCygAIAAgASACEHIgAEFAayABQUBrIAIQciAAQYABaiABQYABaiACEHILLQAgACABIAIQjQEgAEGAAWogAUGAAWogAhCNASAAQYACaiABQYACaiACEI0BCycBAn8jAEFAaiICJAAgAkEIaiIDIAEQvgEgACADEI4BIAJBQGskAAsiAQF/A0AgAUE4RwRAIAAgAWpCADcDACABQQhqIQEMAQsLCyUAIAAgASACEDAgAEEAIAJrIAAoAjgiACABKAI4c3EgAHM2AjgLJwAgACAAKAIEQQFxIAFyQQJyNgIEIAAgAWoiACAAKAIEQQFyNgIECyMAA0AgAgRAIAAgAS0AABA8IAJBAWshAiABQQFqIQEMAQsLCywAIAAQiwEgACABEJYBIABBgAJqIAIQlgEgAEGABGogAxCWASAAQQU2AoAGCyMBAX8jAEFAaiIBJAA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gBAX8gABCIAQR/IABBgAJqEIgBBUEACwseACAAEEUgAEGAAmoQRSAAQYAEahBFIABBADYCgAYLHAAgABBFIAAgARCZASAAQYABaiABQYABahCZAQsYACAAIAEgAhByIABBQGsgAUFAayACEHILGgAgAEE4ENABIgBBATYCOCAAIAEQaiAAEFQLFAAgABBCIAAoAgBBfyABdEF/c3ELGQAgAEE4ENABIgAgARBqIAAgASgCODYCOAsZAQF/IAAoAhAiAQR/IAEFIABBFGooAgALCxgAIAAQwQEgAEFAaxDKASAAQYABahDBAQsUACAAEEIgACAAKQMAIAGsfDcDAAsUACAAEEIgACAAKQMAIAGsfTcDAAsYACAAEEUgACABEJkBIABBgAFqIAIQmQELGAAgACABEJkBIABBgAFqIAFBgAFqEJkBCxgAIAAgARCaASAAQYABaiABQYABahCaAQsYACAAEKQBIABBgAFqIgAQpAEgACABEBELFgAgACABEK4BIABBQGsgAUFAaxCuAQsUACAAIAEQdyAAQUBrIAFBQGsQdwsZACAAELYBIABBgAFqELcBIABBgAJqELYBCxkAIAAQrwEgAEGAAmoQrwEgAEGABGoQrwELGQAgABCwASAAQYACahCwASAAQYAEahCwAQsZACAAELIBIABBgAJqEMkBIABBgARqELIBCxIAQQBBGSAAQQF2ayAAQR9GGwsWACAAIAFBAXI2AgQgACABaiABNgIACxYAIAAQRSAAIAEQmQEgAEGAAWoQtgELFgAgAEGAAWoiABCpASAAEDYgABCpAQsQACAAIAFqQQFrQQAgAWtxCw8AIABBQGsiABBDIAAQQgsUACAAIAEQmQEgAEGAAWogAhCZAQsSACAAIAEQESAAQYABaiABEBELFAAgACABEKoBIABBgAFqIAEQqgELCwAgAQRAIAAQBAsLDQAgABBCIABBQGsQQgsRACAAIAEQSiAAQUBrIAEQSgsRACAAIAEQNCAAQUBrIAEQNAu+BQEHfwJ/AkACQEGAgHxBCEEIEKMBQRRBCBCjAWpBEEEIEKMBamtBd3FBA2siAkEAQRBBCBCjAUECdGsiBCACIARJGyABTQ0AQRAgAUEEakEQQQgQow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AIAFBf0cEQCADQfACaiIEIANB8AVqIANB8BpqIAFqLAAAEB0gAUEBayEBIANBCGoiAhAUIAIQFCACEBQgAhAUIAIgBBAJDAELCyMAQcABayIBJAAgARBnIAEgA0GwBGoQeCABEKQBIANBCGoiAiABEAkgAUHAAWokACAAIAJBwAEQ0QEaCyADQbAcaiQAC1ABAX8gAEE4ENABIQACQANAIAJBMEYNASAAQQgQKCACQTBHBEAgACAAKQMAIAEgAmoxAAB8NwMAIAJBAWohAgwBCwsgAkEwQaSbwAAQOwALCw0AIAAQNiAAIAEQmgELDAAgACABEGogABBUCw0AIAAQcSAAQQE2AjgLDAAgABBDIAAgARB3CwoAQQAgAGsgAHELCwAgAC0ABEEDcUULDAAgACABQQNyNgIECw0AIAAoAgAgACgCBGoLDgAgACgCABoDQAwACwALgQgCCX8CfiAANQIAIQsjAEEwayIGJABBJyEAAkAgC0KQzgBUBEAgCyEMDAELA0AgBkEJaiAAaiICQQRrIAsgC0KQzgCAIgxCkM4Afn2nIgNB//8DcUHkAG4iBEEBdEHouMAAai8AADsAACACQQJrIAMgBEHkAGxrQf//A3FBAXRB6LjAAGovAAA7AAAgAEEEayEAIAtC/8HXL1YgDCELDQALCyAMpyICQeMASwRAIABBAmsiACAGQQlqaiAMpyICIAJB//8DcUHkAG4iAkHkAGxrQf//A3FBAXRB6LjAAGovAAA7AAALAkAgAkEKTwRAIABBAmsiACAGQQlqaiACQQF0Qei4wABqLwAAOwAADAELIABBAWsiACAGQQlqaiACQTBqOgAACwJ/IAZBCWogAGohCEErQYCAxAAgASgCACIDQQFxIgIbIQQgAkEnIABrIglqIQJBlLjAAEEAIANBBHEbIQUCQAJAIAEoAghFBEBBASEAIAEgBCAFEFINAQwCCwJAAkACQAJAIAIgAUEMaigCACIDSQRAIAEtAABBCHENBEEAIQAgAyACayICIQNBASABLQAgIgcgB0EDRhtBA3FBAWsOAgECAwtBASEAIAEgBCAFEFINBAwFC0EAIQMgAiEADAELIAJBAXYhACACQQFqQQF2IQ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AMAAAAIAAAABAAAAAkAAAAKAAAAEAAAAAQAAAALAAAADAAAAAMAAAAIAAAABAAAAA0AAAAOAAAAbGlicmFyeS9hbGxvYy9zcmMvcmF3X3ZlYy5yc2NhcGFjaXR5IG92ZXJmbG93AAAA6BsQABEAAADMGxAAHAAAAAUCAAAFAAAAEAAAAAAAAAABAAAAEQAAAGluZGV4IG91dCBvZiBib3VuZHM6IHRoZSBsZW4gaXMgIGJ1dCB0aGUgaW5kZXggaXMgAAAkHBAAIAAAAEQcEAASAAAAMDAwMTAyMDMwNDA1MDYwNzA4MDkxMDExMTIxMzE0MTUxNjE3MTgxOTIwMjEyMjIzMjQyNTI2MjcyODI5MzAzMTMyMzMzNDM1MzYzNzM4Mzk0MDQxNDI0MzQ0NDU0NjQ3NDg0OTUwNTE1MjUzNTQ1NTU2NTc1ODU5NjA2MTYyNjM2NDY1NjY2NzY4Njk3MDcxNzI3Mzc0NzU3Njc3Nzg3OTgwODE4MjgzODQ4NTg2ODc4ODg5OTA5MTkyOTM5NDk1OTY5Nzk4OTkgb3V0IG9mIHJhbmdlIGZvciBzbGljZSBvZiBsZW5ndGggbGlicmFyeS9jb3JlL3NyYy9zbGljZS9pbmRleC5yc3JhbmdlIGVuZCBpbmRleCAAAABxHRAAEAAAADAdEAAiAAAAUh0QAB8AAABJAAAABQB7CXByb2R1Y2VycwIIbGFuZ3VhZ2UBBFJ1c3QADHByb2Nlc3NlZC1ieQMFcnVzdGMdMS42MS4wIChmZTViMTNkNjggMjAyMi0wNS0xOCkGd2FscnVzBjAuMTkuMAx3YXNtLWJpbmRnZW4SMC4yLjgxICgwNjJhYTVmNzAp");let o=null;function a(e,t){const n=t(1*e.length);return(null!==o&&o.buffer===r.memory.buffer||(o=new Uint8Array(r.memory.buffer)),o).set(e,n/1),[n,e.length]}var s=async function e(){const{instance:t,module:n}=await async function(e,t){if("function"==typeof Response&&e instanceof Response){const n=await e.arrayBuffer();return await WebAssembly.instantiate(n,t)}{const n=await WebAssembly.instantiate(e,t);return n instanceof WebAssembly.Instance?{instance:n,module:e}:n}}(i,{});return r=t.exports,e.__wbindgen_wasm_module=n,r};let c;async function u(e,t,n){if(!c){if(await s(),0!==r.bls_init())throw new Error("Cannot initialize BLS");c=(e,t,n)=>0===function(e,t,n){const[i,o]=a(e,r.__wbindgen_malloc),[s,c]=a(t,r.__wbindgen_malloc),[u,l]=a(n,r.__wbindgen_malloc);return r.bls_verify(i,o,s,c,u,l)}(t,n,e)}return c(e,t,n)}},9548:function(e,t,n){"use strict";function r(...e){const t=new Uint8Array(e.reduce(((e,t)=>e+t.byteLength),0));let n=0;for(const r of e)t.set(new Uint8Array(r),n),n+=r.byteLength;return t.buffer}function i(e){return[...new Uint8Array(e)].map((e=>e.toString(16).padStart(2,"0"))).join("")}n.d(t,{Nn:function(){return c},UD:function(){return s},aD:function(){return a},nj:function(){return i},xW:function(){return r}});const o=new RegExp(/^([0-9A-F]{2})*$/i);function a(e){if(!o.test(e))throw new Error("Invalid hexadecimal string.");const t=[...e].reduce(((e,t,n)=>(e[n/2|0]=(e[n/2|0]||"")+t,e)),[]).map((e=>Number.parseInt(e,16)));return new Uint8Array(t).buffer}function s(e,t){if(e.byteLength!==t.byteLength)return e.byteLength-t.byteLength;const n=new Uint8Array(e),r=new Uint8Array(t);for(let e=0;e(0,r.Ui)(new r.Ki(e)),o=e=>{const t=i(e);return new Date(Number(t)/1e6)}},2734:function(e,t,n){"use strict";n.d(t,{Ih:function(){return r},Ki:function(){return a},Ui:function(){return d},kk:function(){return f}});var r={};n.r(r),n.d(r,{Bool:function(){return $},BoolClass:function(){return S},ConstructType:function(){return B},Empty:function(){return J},EmptyClass:function(){return C},FixedIntClass:function(){return T},FixedNatClass:function(){return N},Float32:function(){return re},Float64:function(){return ie},FloatClass:function(){return D},Func:function(){return ve},FuncClass:function(){return H},Int:function(){return te},Int16:function(){return ae},Int32:function(){return se},Int64:function(){return ce},Int8:function(){return oe},IntClass:function(){return x},Nat:function(){return ne},Nat16:function(){return le},Nat32:function(){return fe},Nat64:function(){return de},Nat8:function(){return ue},NatClass:function(){return R},Null:function(){return X},NullClass:function(){return Q},Opt:function(){return ge},OptClass:function(){return L},PrimitiveType:function(){return I},Principal:function(){return Ae},PrincipalClass:function(){return G},Rec:function(){return be},RecClass:function(){return j},Record:function(){return ye},RecordClass:function(){return P},Reserved:function(){return W},ReservedClass:function(){return k},Service:function(){return we},ServiceClass:function(){return Y},Text:function(){return ee},TextClass:function(){return M},Tuple:function(){return he},TupleClass:function(){return U},Type:function(){return E},Unknown:function(){return Z},UnknownClass:function(){return _},Variant:function(){return me},VariantClass:function(){return F},Vec:function(){return pe},VecClass:function(){return O},Visitor:function(){return w},decode:function(){return V},encode:function(){return z}});var i=n(6489);function o(...e){const t=new Uint8Array(e.reduce(((e,t)=>e+t.byteLength),0));let n=0;for(const r of e)t.set(new Uint8Array(r),n),n+=r.byteLength;return t}class a{constructor(e,t=(null==e?void 0:e.byteLength)||0){this._buffer=e||new ArrayBuffer(0),this._view=new Uint8Array(this._buffer,0,t)}get buffer(){return this._view.slice()}get byteLength(){return this._view.byteLength}read(e){const t=this._view.subarray(0,e);return this._view=this._view.subarray(e),t.slice().buffer}readUint8(){const e=this._view[0];return this._view=this._view.subarray(1),e}write(e){const t=new Uint8Array(e),n=this._view.byteLength;this._view.byteOffset+this._view.byteLength+t.byteLength>=this._buffer.byteLength?this.alloc(t.byteLength):this._view=new Uint8Array(this._buffer,this._view.byteOffset,this._view.byteLength+t.byteLength),this._view.set(t,n)}get end(){return 0===this._view.byteLength}alloc(e){const t=new ArrayBuffer(1.2*(this._buffer.byteLength+e)|0),n=new Uint8Array(t,0,this._view.byteLength+e);n.set(this._view),this._buffer=t,this._view=n}}function s(e){if(/^_\d+_$/.test(e)||/^_0x[0-9a-fA-F]+_$/.test(e)){const t=+e.slice(1,-1);if(Number.isSafeInteger(t)&&t>=0&&t<2**32)return t}return function(e){const t=(new TextEncoder).encode(e);let n=0;for(const e of t)n=(223*n+e)%2**32;return n}(e)}function c(){throw new Error("unexpected end of buffer")}function u(e,t){return e.byteLength=128);return r}function A(e){"number"==typeof e&&(e=BigInt(e));const t=e=0;e--)i=i*BigInt(128)+BigInt(128-(127&r[e])-1);return-i-BigInt(1)}function p(e,t){e=BigInt(e);const n=new a(new ArrayBuffer(Math.min(1,t)),0);let r=0,i=BigInt(256),o=BigInt(0),s=Number(e%i);for(n.write(new Uint8Array([s]));++rn(e,t[r])))}class v{constructor(){this._typs=[],this._idx=new Map}has(e){return this._idx.has(e.name)}add(e,t){const n=this._typs.length;this._idx.set(e.name,n),this._typs.push(t)}merge(e,t){const n=this._idx.get(e.name),r=this._idx.get(t);if(void 0===n)throw new Error("Missing type index for "+e);if(void 0===r)throw new Error("Missing type index for "+t);this._typs[n]=this._typs[r],this._typs.splice(r,1),this._idx.delete(t)}encode(){const e=f(this._typs.length),t=o(...this._typs);return o(e,t)}indexOf(e){if(!this._idx.has(e))throw new Error("Missing type index for "+e);return A(this._idx.get(e)||0)}}class w{visitType(e,t){throw new Error("Not implemented")}visitPrimitive(e,t){return this.visitType(e,t)}visitEmpty(e,t){return this.visitPrimitive(e,t)}visitBool(e,t){return this.visitPrimitive(e,t)}visitNull(e,t){return this.visitPrimitive(e,t)}visitReserved(e,t){return this.visitPrimitive(e,t)}visitText(e,t){return this.visitPrimitive(e,t)}visitNumber(e,t){return this.visitPrimitive(e,t)}visitInt(e,t){return this.visitNumber(e,t)}visitNat(e,t){return this.visitNumber(e,t)}visitFloat(e,t){return this.visitPrimitive(e,t)}visitFixedInt(e,t){return this.visitNumber(e,t)}visitFixedNat(e,t){return this.visitNumber(e,t)}visitPrincipal(e,t){return this.visitPrimitive(e,t)}visitConstruct(e,t){return this.visitType(e,t)}visitVec(e,t,n){return this.visitConstruct(e,n)}visitOpt(e,t,n){return this.visitConstruct(e,n)}visitRecord(e,t,n){return this.visitConstruct(e,n)}visitTuple(e,t,n){const r=t.map(((e,t)=>[`_${t}_`,e]));return this.visitRecord(e,r,n)}visitVariant(e,t,n){return this.visitConstruct(e,n)}visitRec(e,t,n){return this.visitConstruct(t,n)}visitFunc(e,t){return this.visitConstruct(e,t)}visitService(e,t){return this.visitConstruct(e,t)}}class E{display(){return this.name}valueToString(e){return K(e)}buildTypeTable(e){e.has(this)||this._buildTypeTableImpl(e)}}class I extends E{checkType(e){if(this.name!==e.name)throw new Error(`type mismatch: type on the wire ${e.name}, expect type ${this.name}`);return e}_buildTypeTableImpl(e){}}class B extends E{checkType(e){if(e instanceof j){const t=e.getType();if(void 0===t)throw new Error("type mismatch with uninitialized type");return t}throw new Error(`type mismatch: type on the wire ${e.name}, expect type ${this.name}`)}encodeType(e){return e.indexOf(this.name)}}class C extends I{accept(e,t){return e.visitEmpty(this,t)}covariant(e){throw new Error(`Invalid ${this.display()} argument: ${K(e)}`)}encodeValue(){throw new Error("Empty cannot appear as a function argument")}valueToString(){throw new Error("Empty cannot appear as a value")}encodeType(){return A(-17)}decodeValue(){throw new Error("Empty cannot appear as an output")}get name(){return"empty"}}class _ extends E{checkType(e){throw new Error("Method not implemented for unknown.")}accept(e,t){throw e.visitType(this,t)}covariant(e){throw new Error(`Invalid ${this.display()} argument: ${K(e)}`)}encodeValue(){throw new Error("Unknown cannot appear as a function argument")}valueToString(){throw new Error("Unknown cannot appear as a value")}encodeType(){throw new Error("Unknown cannot be serialized")}decodeValue(e,t){let n,r=t.decodeValue(e,t);return Object(r)!==r&&(r=Object(r)),n=t instanceof j?()=>t.getType():()=>t,Object.defineProperty(r,"type",{value:n,writable:!0,enumerable:!1,configurable:!0}),r}_buildTypeTableImpl(){throw new Error("Unknown cannot be serialized")}get name(){return"Unknown"}}class S extends I{accept(e,t){return e.visitBool(this,t)}covariant(e){if("boolean"==typeof e)return!0;throw new Error(`Invalid ${this.display()} argument: ${K(e)}`)}encodeValue(e){return new Uint8Array([e?1:0])}encodeType(){return A(-2)}decodeValue(e,t){switch(this.checkType(t),l(e)){case 0:return!1;case 1:return!0;default:throw new Error("Boolean value out of range")}}get name(){return"bool"}}class Q extends I{accept(e,t){return e.visitNull(this,t)}covariant(e){if(null===e)return!0;throw new Error(`Invalid ${this.display()} argument: ${K(e)}`)}encodeValue(){return new ArrayBuffer(0)}encodeType(){return A(-1)}decodeValue(e,t){return this.checkType(t),null}get name(){return"null"}}class k extends I{accept(e,t){return e.visitReserved(this,t)}covariant(e){return!0}encodeValue(){return new ArrayBuffer(0)}encodeType(){return A(-16)}decodeValue(e,t){return t.name!==this.name&&t.decodeValue(e,t),null}get name(){return"reserved"}}class M extends I{accept(e,t){return e.visitText(this,t)}covariant(e){if("string"==typeof e)return!0;throw new Error(`Invalid ${this.display()} argument: ${K(e)}`)}encodeValue(e){const t=(new TextEncoder).encode(e);return o(f(t.byteLength),t)}encodeType(){return A(-15)}decodeValue(e,t){this.checkType(t);const n=d(e),r=u(e,Number(n));return new TextDecoder("utf8",{fatal:!0}).decode(r)}get name(){return"text"}valueToString(e){return'"'+e+'"'}}class x extends I{accept(e,t){return e.visitInt(this,t)}covariant(e){if("bigint"==typeof e||Number.isInteger(e))return!0;throw new Error(`Invalid ${this.display()} argument: ${K(e)}`)}encodeValue(e){return A(e)}encodeType(){return A(-4)}decodeValue(e,t){return this.checkType(t),h(e)}get name(){return"int"}valueToString(e){return e.toString()}}class R extends I{accept(e,t){return e.visitNat(this,t)}covariant(e){if("bigint"==typeof e&&e>=BigInt(0)||Number.isInteger(e)&&e>=0)return!0;throw new Error(`Invalid ${this.display()} argument: ${K(e)}`)}encodeValue(e){return f(e)}encodeType(){return A(-3)}decodeValue(e,t){return this.checkType(t),d(e)}get name(){return"nat"}valueToString(e){return e.toString()}}class D extends I{constructor(e){if(super(),this._bits=e,32!==e&&64!==e)throw new Error("not a valid float type")}accept(e,t){return e.visitFloat(this,t)}covariant(e){if("number"==typeof e||e instanceof Number)return!0;throw new Error(`Invalid ${this.display()} argument: ${K(e)}`)}encodeValue(e){const t=new ArrayBuffer(this._bits/8),n=new DataView(t);return 32===this._bits?n.setFloat32(0,e,!0):n.setFloat64(0,e,!0),t}encodeType(){return A(32===this._bits?-13:-14)}decodeValue(e,t){this.checkType(t);const n=u(e,this._bits/8),r=new DataView(n);return 32===this._bits?r.getFloat32(0,!0):r.getFloat64(0,!0)}get name(){return"float"+this._bits}valueToString(e){return e.toString()}}class T extends I{constructor(e){super(),this._bits=e}accept(e,t){return e.visitFixedInt(this,t)}covariant(e){const t=y(this._bits-1)*BigInt(-1),n=y(this._bits-1)-BigInt(1);let r=!1;if("bigint"==typeof e)r=e>=t&&e<=n;else if(Number.isInteger(e)){const i=BigInt(e);r=i>=t&&i<=n}else r=!1;if(r)return!0;throw new Error(`Invalid ${this.display()} argument: ${K(e)}`)}encodeValue(e){return p(e,this._bits/8)}encodeType(){return A(-9-(Math.log2(this._bits)-3))}decodeValue(e,t){this.checkType(t);const n=function(e,t){let n=g(e,t);const r=BigInt(2)**(BigInt(8)*BigInt(t-1)+BigInt(7));return n>=r&&(n-=r*BigInt(2)),n}(e,this._bits/8);return this._bits<=32?Number(n):n}get name(){return`int${this._bits}`}valueToString(e){return e.toString()}}class N extends I{constructor(e){super(),this._bits=e}accept(e,t){return e.visitFixedNat(this,t)}covariant(e){const t=y(this._bits);let n=!1;if(n="bigint"==typeof e&&e>=BigInt(0)?e=0)&&BigInt(e){try{return this._type.covariant(e)}catch(e){throw new Error(`Invalid ${this.display()} argument: \n\nindex ${t} -> ${e.message}`)}})))return!0;throw new Error(`Invalid ${this.display()} argument: ${K(e)}`)}encodeValue(e){const t=f(e.length);if(this._blobOptimization)return o(t,new Uint8Array(e));if(ArrayBuffer.isView(e))return o(t,new Uint8Array(e.buffer));const n=new a(new ArrayBuffer(t.byteLength+e.length),0);n.write(t);for(const t of e){const e=this._type.encodeValue(t);n.write(new Uint8Array(e))}return n.buffer}_buildTypeTableImpl(e){this._type.buildTypeTable(e);const t=A(-19),n=this._type.encodeType(e);e.add(this,o(t,n))}decodeValue(e,t){const n=this.checkType(t);if(!(n instanceof O))throw new Error("Not a vector type");const r=Number(d(e));if(this._type instanceof N){if(8==this._type._bits)return new Uint8Array(e.read(r));if(16==this._type._bits)return new Uint16Array(e.read(2*r));if(32==this._type._bits)return new Uint32Array(e.read(4*r));if(64==this._type._bits)return new BigUint64Array(e.read(8*r))}if(this._type instanceof T){if(8==this._type._bits)return new Int8Array(e.read(r));if(16==this._type._bits)return new Int16Array(e.read(2*r));if(32==this._type._bits)return new Int32Array(e.read(4*r));if(64==this._type._bits)return new BigInt64Array(e.read(8*r))}const i=[];for(let t=0;tthis._type.valueToString(e))).join("; ")+"}"}}class L extends B{constructor(e){super(),this._type=e}accept(e,t){return e.visitOpt(this,this._type,t)}covariant(e){try{if(Array.isArray(e)&&(0===e.length||1===e.length&&this._type.covariant(e[0])))return!0}catch(t){throw new Error(`Invalid ${this.display()} argument: ${K(e)} \n\n-> ${t.message}`)}throw new Error(`Invalid ${this.display()} argument: ${K(e)}`)}encodeValue(e){return 0===e.length?new Uint8Array([0]):o(new Uint8Array([1]),this._type.encodeValue(e[0]))}_buildTypeTableImpl(e){this._type.buildTypeTable(e);const t=A(-18),n=this._type.encodeType(e);e.add(this,o(t,n))}decodeValue(e,t){const n=this.checkType(t);if(!(n instanceof L))throw new Error("Not an option type");switch(l(e)){case 0:return[];case 1:return[this._type.decodeValue(e,n._type)];default:throw new Error("Not an option value")}}get name(){return`opt ${this._type.name}`}display(){return`opt ${this._type.display()}`}valueToString(e){return 0===e.length?"null":`opt ${this._type.valueToString(e[0])}`}}class P extends B{constructor(e={}){super(),this._fields=Object.entries(e).sort(((e,t)=>s(e[0])-s(t[0])))}accept(e,t){return e.visitRecord(this,this._fields,t)}tryAsTuple(){const e=[];for(let t=0;t{if(!e.hasOwnProperty(t))throw new Error(`Record is missing key "${t}".`);try{return n.covariant(e[t])}catch(e){throw new Error(`Invalid ${this.display()} argument: \n\nfield ${t} -> ${e.message}`)}})))return!0;throw new Error(`Invalid ${this.display()} argument: ${K(e)}`)}encodeValue(e){const t=this._fields.map((([t])=>e[t]));return o(...b(this._fields,t,(([,e],t)=>e.encodeValue(t))))}_buildTypeTableImpl(e){this._fields.forEach((([t,n])=>n.buildTypeTable(e)));const t=A(-20),n=f(this._fields.length),r=this._fields.map((([t,n])=>o(f(s(t)),n.encodeType(e))));e.add(this,o(t,n,o(...r)))}decodeValue(e,t){const n=this.checkType(t);if(!(n instanceof P))throw new Error("Not a record type");const r={};let i=0,o=0;for(;o=this._fields.length){a.decodeValue(e,a),o++;continue}const[c,u]=this._fields[i],l=s(this._fields[i][0]),f=s(t);if(l===f)r[c]=u.decodeValue(e,a),i++,o++;else if(f>l){if(!(u instanceof L||u instanceof k))throw new Error("Cannot find required field "+c);r[c]=[],i++}else a.decodeValue(e,a),o++}for(const[e,t]of this._fields.slice(i)){if(!(t instanceof L||t instanceof k))throw new Error("Cannot find required field "+e);r[e]=[]}return r}get name(){return`record {${this._fields.map((([e,t])=>e+":"+t.name)).join("; ")}}`}display(){return`record {${this._fields.map((([e,t])=>e+":"+t.display())).join("; ")}}`}valueToString(e){const t=this._fields.map((([t])=>e[t]));return`record {${b(this._fields,t,(([e,t],n)=>e+"="+t.valueToString(n))).join("; ")}}`}}class U extends P{constructor(e){const t={};e.forEach(((e,n)=>t["_"+n+"_"]=e)),super(t),this._components=e}accept(e,t){return e.visitTuple(this,this._components,t)}covariant(e){if(Array.isArray(e)&&e.length>=this._fields.length&&this._components.every(((t,n)=>{try{return t.covariant(e[n])}catch(e){throw new Error(`Invalid ${this.display()} argument: \n\nindex ${n} -> ${e.message}`)}})))return!0;throw new Error(`Invalid ${this.display()} argument: ${K(e)}`)}encodeValue(e){return o(...b(this._components,e,((e,t)=>e.encodeValue(t))))}decodeValue(e,t){const n=this.checkType(t);if(!(n instanceof U))throw new Error("not a tuple type");if(n._components.length=this._components.length?i.decodeValue(e,i):r.push(this._components[t].decodeValue(e,i));return r}display(){return`record {${this._components.map((e=>e.display())).join("; ")}}`}valueToString(e){return`record {${b(this._components,e,((e,t)=>e.valueToString(t))).join("; ")}}`}}class F extends B{constructor(e={}){super(),this._fields=Object.entries(e).sort(((e,t)=>s(e[0])-s(t[0])))}accept(e,t){return e.visitVariant(this,this._fields,t)}covariant(e){if("object"==typeof e&&1===Object.entries(e).length&&this._fields.every((([t,n])=>{try{return!e.hasOwnProperty(t)||n.covariant(e[t])}catch(e){throw new Error(`Invalid ${this.display()} argument: \n\nvariant ${t} -> ${e.message}`)}})))return!0;throw new Error(`Invalid ${this.display()} argument: ${K(e)}`)}encodeValue(e){for(let t=0;t{t.buildTypeTable(e)}));const t=A(-21),n=f(this._fields.length),r=this._fields.map((([t,n])=>o(f(s(t)),n.encodeType(e))));e.add(this,o(t,n,...r))}decodeValue(e,t){const n=this.checkType(t);if(!(n instanceof F))throw new Error("Not a variant type");const r=Number(d(e));if(r>=n._fields.length)throw Error("Invalid variant index: "+r);const[i,o]=n._fields[r];for(const[t,n]of this._fields)if(s(i)===s(t)){const r=n.decodeValue(e,o);return{[t]:r}}throw new Error("Cannot find field hash "+i)}get name(){return`variant {${this._fields.map((([e,t])=>e+":"+t.name)).join("; ")}}`}display(){return`variant {${this._fields.map((([e,t])=>e+("null"===t.name?"":`:${t.display()}`))).join("; ")}}`}valueToString(e){for(const[t,n]of this._fields)if(e.hasOwnProperty(t)){const r=n.valueToString(e[t]);return"null"===r?`variant {${t}}`:`variant {${t}=${r}}`}throw new Error("Variant has no data: "+e)}}class j extends B{constructor(){super(...arguments),this._id=j._counter++,this._type=void 0}accept(e,t){if(!this._type)throw Error("Recursive type uninitialized.");return e.visitRec(this,this._type,t)}fill(e){this._type=e}getType(){return this._type}covariant(e){if(this._type&&this._type.covariant(e))return!0;throw new Error(`Invalid ${this.display()} argument: ${K(e)}`)}encodeValue(e){if(!this._type)throw Error("Recursive type uninitialized.");return this._type.encodeValue(e)}_buildTypeTableImpl(e){if(!this._type)throw Error("Recursive type uninitialized.");e.add(this,new Uint8Array([])),this._type.buildTypeTable(e),e.merge(this,this._type.name)}decodeValue(e,t){if(!this._type)throw Error("Recursive type uninitialized.");return this._type.decodeValue(e,t)}get name(){return`rec_${this._id}`}display(){if(!this._type)throw Error("Recursive type uninitialized.");return`μ${this.name}.${this._type.name}`}valueToString(e){if(!this._type)throw Error("Recursive type uninitialized.");return this._type.valueToString(e)}}function q(e){if(1!==l(e))throw new Error("Cannot decode principal");const t=Number(d(e));return i.p.fromUint8Array(new Uint8Array(u(e,t)))}j._counter=0;class G extends I{accept(e,t){return e.visitPrincipal(this,t)}covariant(e){if(e&&e._isPrincipal)return!0;throw new Error(`Invalid ${this.display()} argument: ${K(e)}`)}encodeValue(e){const t=e.toUint8Array(),n=f(t.byteLength);return o(new Uint8Array([1]),n,t)}encodeType(){return A(-24)}decodeValue(e,t){return this.checkType(t),q(e)}get name(){return"principal"}valueToString(e){return`${this.name} "${e.toText()}"`}}class H extends B{constructor(e,t,n=[]){super(),this.argTypes=e,this.retTypes=t,this.annotations=n}static argsToString(e,t){if(e.length!==t.length)throw new Error("arity mismatch");return"("+e.map(((e,n)=>e.valueToString(t[n]))).join(", ")+")"}accept(e,t){return e.visitFunc(this,t)}covariant(e){if(Array.isArray(e)&&2===e.length&&e[0]&&e[0]._isPrincipal&&"string"==typeof e[1])return!0;throw new Error(`Invalid ${this.display()} argument: ${K(e)}`)}encodeValue([e,t]){const n=e.toUint8Array(),r=f(n.byteLength),i=o(new Uint8Array([1]),r,n),a=(new TextEncoder).encode(t),s=f(a.byteLength);return o(new Uint8Array([1]),i,s,a)}_buildTypeTableImpl(e){this.argTypes.forEach((t=>t.buildTypeTable(e))),this.retTypes.forEach((t=>t.buildTypeTable(e)));const t=A(-22),n=f(this.argTypes.length),r=o(...this.argTypes.map((t=>t.encodeType(e)))),i=f(this.retTypes.length),a=o(...this.retTypes.map((t=>t.encodeType(e)))),s=f(this.annotations.length),c=o(...this.annotations.map((e=>this.encodeAnnotation(e))));e.add(this,o(t,n,r,i,a,s,c))}decodeValue(e){if(1!==l(e))throw new Error("Cannot decode function reference");const t=q(e),n=u(e,Number(d(e)));return[t,new TextDecoder("utf8",{fatal:!0}).decode(n)]}get name(){return`(${this.argTypes.map((e=>e.name)).join(", ")}) -> (${this.retTypes.map((e=>e.name)).join(", ")})${" "+this.annotations.join(" ")}`}valueToString([e,t]){return`func "${e.toText()}".${t}`}display(){return`(${this.argTypes.map((e=>e.display())).join(", ")}) → (${this.retTypes.map((e=>e.display())).join(", ")})${" "+this.annotations.join(" ")}`}encodeAnnotation(e){if("query"===e)return new Uint8Array([1]);if("oneway"===e)return new Uint8Array([2]);if("composite_query"===e)return new Uint8Array([3]);throw new Error("Illegal function annotation")}}class Y extends B{constructor(e){super(),this._fields=Object.entries(e).sort(((e,t)=>s(e[0])-s(t[0])))}accept(e,t){return e.visitService(this,t)}covariant(e){if(e&&e._isPrincipal)return!0;throw new Error(`Invalid ${this.display()} argument: ${K(e)}`)}encodeValue(e){const t=e.toUint8Array(),n=f(t.length);return o(new Uint8Array([1]),n,t)}_buildTypeTableImpl(e){this._fields.forEach((([t,n])=>n.buildTypeTable(e)));const t=A(-23),n=f(this._fields.length),r=this._fields.map((([t,n])=>{const r=(new TextEncoder).encode(t);return o(f(r.length),r,n.encodeType(e))}));e.add(this,o(t,n,...r))}decodeValue(e){return q(e)}get name(){return`service {${this._fields.map((([e,t])=>e+":"+t.name)).join("; ")}}`}valueToString(e){return`service "${e.toText()}"`}}function K(e){const t=JSON.stringify(e,((e,t)=>"bigint"==typeof t?`BigInt(${t})`:t));return t&&t.length>400?t.substring(0,397)+"...":t}function z(e,t){if(t.lengthe.buildTypeTable(n)));const r=(new TextEncoder).encode(m),i=n.encode(),a=f(t.length),s=o(...e.map((e=>e.encodeType(n)))),c=o(...b(e,t,((e,t)=>{try{e.covariant(t)}catch(e){throw new Error(e.message+"\n\n")}return e.encodeValue(t)})));return o(r,i,a,s,c)}function V(e,t){const n=new a(t);if(t.byteLength=Math.pow(2,32))throw new Error("field id out of 32-bit range");if("number"==typeof i&&i>=t)throw new Error("field id collision or not sorted");i=t;const n=Number(h(e));r.push([t,n])}t.push([n,r]);break}case-22:{const r=[];let i=Number(d(e));for(;i--;)r.push(Number(h(e)));const o=[];let a=Number(d(e));for(;a--;)o.push(Number(h(e)));const s=[];let c=Number(d(e));for(;c--;)switch(Number(d(e))){case 1:s.push("query");break;case 2:s.push("oneway");break;case 3:s.push("composite_query");break;default:throw new Error("unknown annotation")}t.push([n,[r,o,s]]);break}case-23:{let r=Number(d(e));const i=[];for(;r--;){const t=Number(d(e)),n=(new TextDecoder).decode(u(e,t)),r=h(e);i.push([n,r])}t.push([n,i]);break}default:throw new Error("Illegal op_code: "+n)}}const r=[],i=Number(d(e));for(let t=0;tbe()));function l(e){if(e<-24)throw new Error("future value not supported");if(e<0)switch(e){case-1:return X;case-2:return $;case-3:return ne;case-4:return te;case-5:return ue;case-6:return le;case-7:return fe;case-8:return de;case-9:return oe;case-10:return ae;case-11:return se;case-12:return ce;case-13:return re;case-14:return ie;case-15:return ee;case-16:return W;case-17:return J;case-24:return Ae;default:throw new Error("Illegal op_code: "+e)}if(e>=o.length)throw new Error("type index out of range");return c[e]}function f(e){switch(e[0]){case-19:return pe(l(e[1]));case-18:return ge(l(e[1]));case-20:{const t={};for(const[n,r]of e[1])t[`_${n}_`]=l(r);const n=ye(t),r=n.tryAsTuple();return Array.isArray(r)?he(...r):n}case-21:{const t={};for(const[n,r]of e[1])t[`_${n}_`]=l(r);return me(t)}case-22:{const[t,n,r]=e[1];return ve(t.map((e=>l(e))),n.map((e=>l(e))),r)}case-23:{const t={},n=e[1];for(const[e,r]of n){let n=l(r);if(n instanceof j&&(n=n.getType()),!(n instanceof H))throw new Error("Illegal service definition: services can only contain functions");t[e]=n}return we(t)}default:throw new Error("Illegal op_code: "+e[0])}}o.forEach(((e,t)=>{if(-22===e[0]){const n=f(e);c[t].fill(n)}})),o.forEach(((e,t)=>{if(-22!==e[0]){const n=f(e);c[t].fill(n)}}));const A=s.map((e=>l(e))),p=e.map(((e,t)=>e.decodeValue(n,A[t])));for(let t=e.length;t0)throw new Error("decode: Left-over bytes");return p}const J=new C,W=new k,Z=new _,$=new S,X=new Q,ee=new M,te=new x,ne=new R,re=new D(32),ie=new D(64),oe=new T(8),ae=new T(16),se=new T(32),ce=new T(64),ue=new N(8),le=new N(16),fe=new N(32),de=new N(64),Ae=new G;function he(...e){return new U(e)}function pe(e){return new O(e)}function ge(e){return new L(e)}function ye(e){return new P(e)}function me(e){return new F(e)}function be(){return new j}function ve(e,t,n=[]){return new H(e,t,n)}function we(e){return new Y(e)}},6489:function(e,t,n){"use strict";n.d(t,{p:function(){return c}});const r="abcdefghijklmnopqrstuvwxyz234567",i=Object.create(null);for(let e=0;e<32;e++)i[r[e]]=e;i[0]=i.o,i[1]=i.i;const o=new Uint32Array([0,1996959894,3993919788,2567524794,124634137,1886057615,3915621685,2657392035,249268274,2044508324,3772115230,2547177864,162941995,2125561021,3887607047,2428444049,498536548,1789927666,4089016648,2227061214,450548861,1843258603,4107580753,2211677639,325883990,1684777152,4251122042,2321926636,335633487,1661365465,4195302755,2366115317,997073096,1281953886,3579855332,2724688242,1006888145,1258607687,3524101629,2768942443,901097722,1119000684,3686517206,2898065728,853044451,1172266101,3705015759,2882616665,651767980,1373503546,3369554304,3218104598,565507253,1454621731,3485111705,3099436303,671266974,1594198024,3322730930,2970347812,795835527,1483230225,3244367275,3060149565,1994146192,31158534,2563907772,4023717930,1907459465,112637215,2680153253,3904427059,2013776290,251722036,2517215374,3775830040,2137656763,141376813,2439277719,3865271297,1802195444,476864866,2238001368,4066508878,1812370925,453092731,2181625025,4111451223,1706088902,314042704,2344532202,4240017532,1658658271,366619977,2362670323,4224994405,1303535960,984961486,2747007092,3569037538,1256170817,1037604311,2765210733,3554079995,1131014506,879679996,2909243462,3663771856,1141124467,855842277,2852801631,3708648649,1342533948,654459306,3188396048,3373015174,1466479909,544179635,3110523913,3462522015,1591671054,702138776,2966460450,3352799412,1504918807,783551873,3082640443,3233442989,3988292384,2596254646,62317068,1957810842,3939845945,2647816111,81470997,1943803523,3814918930,2489596804,225274430,2053790376,3826175755,2466906013,167816743,2097651377,4027552580,2265490386,503444072,1762050814,4150417245,2154129355,426522225,1852507879,4275313526,2312317920,282753626,1742555852,4189708143,2394877945,397917763,1622183637,3604390888,2714866558,953729732,1340076626,3518719985,2797360999,1068828381,1219638859,3624741850,2936675148,906185462,1090812512,3747672003,2825379669,829329135,1181335161,3412177804,3160834842,628085408,1382605366,3423369109,3138078467,570562233,1426400815,3317316542,2998733608,733239954,1555261956,3268935591,3050360625,752459403,1541320221,2607071920,3965973030,1969922972,40735498,2617837225,3943577151,1913087877,83908371,2512341634,3803740692,2075208622,213261112,2463272603,3855990285,2094854071,198958881,2262029012,4057260610,1759359992,534414190,2176718541,4139329115,1873836001,414664567,2282248934,4279200368,1711684554,285281116,2405801727,4167216745,1634467795,376229701,2685067896,3608007406,1308918612,956543938,2808555105,3495958263,1231636301,1047427035,2932959818,3654703836,1088359270,936918e3,2847714899,3736837829,1202900863,817233897,3183342108,3401237130,1404277552,615818150,3134207493,3453421203,1423857449,601450431,3009837614,3294710456,1567103746,711928724,3020668471,3272380065,1510334235,755167117]);var a=n(8226);const s="__principal__";class c{constructor(e){this._arr=e,this._isPrincipal=!0}static anonymous(){return new this(new Uint8Array([4]))}static managementCanister(){return this.fromHex("aaaaa-aa")}static selfAuthenticating(e){const t=(n=e,a.Z.create().update(new Uint8Array(n)).digest());var n;return new this(new Uint8Array([...t,2]))}static from(e){if("string"==typeof e)return c.fromText(e);if("object"==typeof e&&null!==e&&!0===e._isPrincipal)return new c(e._arr);throw new Error(`Impossible to convert ${JSON.stringify(e)} to Principal.`)}static fromHex(e){return new this(new Uint8Array((null!==(t=e.match(/.{1,2}/g))&&void 0!==t?t:[]).map((e=>parseInt(e,16)))));var t}static fromText(e){let t=e;if(e.includes(s)){const n=JSON.parse(e);s in n&&(t=n[s])}let n=function(e){let t=0,n=0;const r=new Uint8Array(4*e.length/3|0);let o=0;function a(e){let a=i[e.toLowerCase()];if(void 0===a)throw new Error(`Invalid character: ${JSON.stringify(e)}`);a<<=3,n|=a>>>t,t+=5,t>=8&&(r[o++]=n,t-=8,n=t>0?a<<5-t&255:0)}for(const t of e)a(t);return r.slice(0,o)}(t.toLowerCase().replace(/-/g,""));n=n.slice(4,n.length);const r=new this(n);if(r.toText()!==t)throw new Error(`Principal "${r.toText()}" does not have a valid checksum (original value "${t}" may not be a valid Principal ID).`);return r}static fromUint8Array(e){return new this(e)}isAnonymous(){return 1===this._arr.byteLength&&4===this._arr[0]}toUint8Array(){return this._arr}toHex(){return(e=this._arr,e.reduce(((e,t)=>e+t.toString(16).padStart(2,"0")),"")).toUpperCase();var e}toText(){const e=new ArrayBuffer(4);new DataView(e).setUint32(0,function(e){const t=new Uint8Array(e);let n=-1;for(let e=0;e>>8}return~n>>>0}(this._arr));const t=new Uint8Array(e),n=Uint8Array.from(this._arr),i=function(e){let t=0,n=0,i="";for(let a=0;a>-t:n=o<3?(t-=8,1):(t<4&&(i+=r[n>>3],t+=5),0));var o;return i+(t<0?r[n>>3]:"")}(new Uint8Array([...t,...n])).match(/.{1,5}/g);if(!i)throw new Error;return i.join("-")}toString(){return this.toText()}toJSON(){return{[s]:this.toText()}}compareTo(e){for(let t=0;te._arr[t])return"gt"}return this._arr.lengthe._arr.length?"gt":"eq"}ltEq(e){const t=this.compareTo(e);return"lt"==t||"eq"==t}gtEq(e){const t=this.compareTo(e);return"gt"==t||"eq"==t}}},9438:function(e,t,n){"use strict";n.r(t),n.d(t,{CustomPath:function(){return u},encodePath:function(){return d},fetchNodeKeys:function(){return f},request:function(){return l}});var r=n(2336),i=n(7857),o=n(3638),a=n(2338),s=n(8358),c=n(9345);class u{constructor(e,t,n){this.key=e,this.path=t,this.decodeStrategy=n}}const l=async e=>{const{agent:t,paths:n}=e,a=r.p.from(e.canisterId),s=[...new Set(n)],u=s.map((e=>d(e,a))),l=new Map,y=s.map(((e,n)=>(async()=>{var r;try{const e=await t.readState(a,{paths:[u[n]]}),r=await o.us.create({certificate:e.certificate,rootKey:t.rootKey,canisterId:a}),i=(n,r)=>"subnet"===r?{path:r,data:f(e.certificate,a,t.rootKey)}:{path:r,data:(0,o.Xr)(n.lookup(d(r,a)))},{path:y,data:m}=i(r,s[n]);if(m)switch(y){case"time":l.set(y,(0,c.A)(m));break;case"controllers":l.set(y,g(m));break;case"module_hash":l.set(y,A(m));break;case"subnet":l.set(y,m);break;case"candid":l.set(y,(new TextDecoder).decode(m));break;default:if("string"!=typeof y&&"key"in y&&"path"in y)switch(y.decodeStrategy){case"raw":l.set(y.key,m);break;case"leb128":l.set(y.key,(0,c.b)(m));break;case"cbor":l.set(y.key,h(m));break;case"hex":l.set(y.key,A(m));break;case"utf-8":l.set(y.key,p(m))}}else console.warn(`Expected to find result for path ${y}, but instead found nothing.`),"string"==typeof y?l.set(y,null):l.set(y.key,null)}catch(t){if(null===(r=null==t?void 0:t.message)||void 0===r?void 0:r.includes("Invalid certificate"))throw new i.Y(t.message);"string"!=typeof e&&"key"in e&&"path"in e?l.set(e.key,null):l.set(e,null),console.group(),console.warn(`Expected to find result for path ${e}, but instead found nothing.`),console.warn(t),console.groupEnd()}})()));return await Promise.all(y),l},f=(e,t,n)=>{if(!t._isPrincipal)throw new Error("Invalid canisterId");const i=s.D4(new Uint8Array(e)),a=i.tree;let c,u=i.delegation;if(u&&u.subnet_id?c=r.p.fromUint8Array(new Uint8Array(u.subnet_id)):u||void 0===n?(c=r.p.selfAuthenticating(r.p.fromText("tdb26-jop6k-aogll-7ltgs-eruif-6kk7m-qpktf-gdiqx-mxtrf-vb5e6-eqe").toUint8Array()),u={subnet_id:c.toUint8Array(),certificate:new ArrayBuffer(0)}):(c=r.p.selfAuthenticating(new Uint8Array(n)),u={subnet_id:c.toUint8Array(),certificate:new ArrayBuffer(0)}),!(0,o.Gk)({canisterId:t,subnetId:c,tree:a}))throw new Error("Canister not in range");const l=(0,o.hV)(["subnet",null==u?void 0:u.subnet_id,"node"],a),f=(0,o.Bx)(l);f.length;const d=new Map;return f.forEach((e=>{Object.getPrototypeOf(new Uint8Array(e[1]));const t=r.p.from(new Uint8Array(e[1])).toText(),n=(0,o.hV)(["public_key"],e[2]);if(44!==n.byteLength)throw new Error("Invalid public key length");d.set(t,n)})),{subnetId:r.p.fromUint8Array(new Uint8Array(u.subnet_id)).toText(),nodeKeys:d}},d=(e,t)=>{const n=new TextEncoder,r=e=>new DataView(n.encode(e).buffer).buffer,i=new DataView(t.toUint8Array().buffer).buffer;switch(e){case"time":return[r("time")];case"controllers":return[r("canister"),i,r("controllers")];case"module_hash":return[r("canister"),i,r("module_hash")];case"subnet":return[r("subnet")];case"candid":return[r("canister"),i,r("metadata"),r("candid:service")];default:if("key"in e&&"path"in e){if("string"==typeof e.path||e.path instanceof ArrayBuffer){const t=e.path,n="string"==typeof t?r(t):t;return[r("canister"),i,r("metadata"),n]}return e.path}}throw new Error(`An unexpeected error was encountered while encoding your path for canister status. Please ensure that your path, ${e} was formatted correctly.`)},A=e=>(0,a.nj)(e),h=e=>s.D4(e),p=e=>(new TextDecoder).decode(e),g=e=>h(e).map((e=>r.p.fromUint8Array(new Uint8Array(e))))},8358:function(e,t,n){"use strict";n.d(t,{D4:function(){return f},lF:function(){return c}});var r=n(7516),i=n(9283),o=n(2338);const a=i.SelfDescribeCborSerializer.withDefaultEncoders(!0);var s;function c(e){return a.serialize(e)}function u(e){const t=e.byteLength;let n=BigInt(0);for(let r=0;rBigInt(0)?i.value.tagged(2,i.value.bytes((0,o.aD)(e.toString(16)))):i.value.tagged(3,i.value.bytes((0,o.aD)((BigInt("-1")*e).toString(16))))}}),function(e){e[e.Uint64LittleEndian=71]="Uint64LittleEndian",e[e.Semantic=55799]="Semantic"}(s||(s={}));class l extends r.Decoder{createByteString(e){return(0,o.xW)(...e)}createByteStringFromHeap(e,t){return e===t?new ArrayBuffer(0):new Uint8Array(this._heap.slice(e,t))}}function f(e){const t=new Uint8Array(e),n=new l({size:t.byteLength,tags:{2:e=>u(e),3:e=>-u(e),[s.Semantic]:e=>e}});try{return n.decodeFirst(t)}catch(e){throw new Error(`Failed to decode CBOR: ${e}, input: ${(0,o.nj)(t)}`)}}},3638:function(e,t,n){"use strict";n.d(t,{us:function(){return Oe},bK:function(){return De},Gk:function(){return He},Bx:function(){return Ge},Xr:function(){return Ue},hV:function(){return qe}});var r=n(8358),i=n(7857),o=n(4141),a=n(2338),s=n(2336),c=n(8226),u=n(2531),l=n(8030),f=n(8293);const d=f.bytesToNumberBE;function A(e,t){if(e<0||e>=1<<8*t)throw new Error(`bad I2OSP call: value=${e} length=${t}`);const n=Array.from({length:t}).fill(0);for(let r=t-1;r>=0;r--)n[r]=255&e,e>>>=8;return new Uint8Array(n)}function h(e,t){const n=new Uint8Array(e.length);for(let r=0;r255&&(t=r((0,f.Id)((0,f.AI)("H2C-OVERSIZE-DST-"),t)));const{outputLen:i,blockLen:o}=r,a=Math.ceil(n/i);if(a>255)throw new Error("Invalid xmd length");const s=(0,f.Id)(t,A(t.length,1)),c=A(0,o),u=A(n,2),l=new Array(a),d=r((0,f.Id)(c,e,u,A(0,1),s));l[0]=r((0,f.Id)(d,A(1,1),s));for(let e=1;e<=a;e++){const t=[h(d,l[e-1]),A(e+1,1),s];l[e]=r((0,f.Id)(...t))}return(0,f.Id)(...l).slice(0,n)}(e,u,m,a);else if("xof"===s)b=function(e,t,n,r,i){if((0,f.DO)(e),(0,f.DO)(t),p(n),t.length>255){const e=Math.ceil(2*r/8);t=i.create({dkLen:e}).update((0,f.AI)("H2C-OVERSIZE-DST-")).update(t).digest()}if(n>65535||t.length>255)throw new Error("expand_message_xof: invalid lenInBytes");return i.create({dkLen:n}).update(e).update(A(n,2)).update(t).update(A(t.length,1)).digest()}(e,u,m,i,a);else{if("_internal_pass"!==s)throw new Error('expand must be "xmd" or "xof"');b=e}const v=new Array(t);for(let e=0;eArray.from(e).reverse()));return(t,r)=>{const[i,o,a,s]=n.map((n=>n.reduce(((n,r)=>e.add(e.mul(n,t),r)))));return t=e.div(i,o),r=e.mul(r,e.div(a,s)),{x:t,y:r}}}function m(e,t,n){if("function"!=typeof t)throw new Error("mapToCurve() must be defined");return{hashToCurve(r,i){const o=g(r,2,{...n,DST:n.DST,...i}),a=e.fromAffine(t(o[0])),s=e.fromAffine(t(o[1])),c=a.add(s).clearCofactor();return c.assertValidity(),c},encodeToCurve(r,i){const o=g(r,1,{...n,DST:n.encodeDST,...i}),a=e.fromAffine(t(o[0])).clearCofactor();return a.assertValidity(),a}}}var b=n(615);const{bytesToNumberBE:v,hexToBytes:w}=f,E={Err:class extends Error{constructor(e=""){super(e)}},_parseInt(e){const{Err:t}=E;if(e.length<2||2!==e[0])throw new t("Invalid signature integer tag");const n=e[1],r=e.subarray(2,n+2);if(!n||r.length!==n)throw new t("Invalid signature integer: wrong length");if(128&r[0])throw new t("Invalid signature integer: negative");if(0===r[0]&&!(128&r[1]))throw new t("Invalid signature integer: unnecessary leading zero");return{d:v(r),l:e.subarray(n+2)}},toSig(e){const{Err:t}=E,n="string"==typeof e?w(e):e;f.DO(n);let r=n.length;if(r<2||48!=n[0])throw new t("Invalid signature tag");if(n[1]!==r-2)throw new t("Invalid signature: incorrect length");const{d:i,l:o}=E._parseInt(n.subarray(2)),{d:a,l:s}=E._parseInt(o);if(s.length)throw new t("Invalid signature: left bytes after parsing");return{r:i,s:a}},hexFromSig(e){const t=e=>8&Number.parseInt(e[0],16)?"00"+e:e,n=e=>{const t=e.toString(16);return 1&t.length?`0${t}`:t},r=t(n(e.s)),i=t(n(e.r)),o=r.length/2,a=i.length/2,s=n(o),c=n(a);return`30${n(a+o+4)}02${c}${i}02${s}${r}`}},I=BigInt(0),B=BigInt(1),C=BigInt(2),_=BigInt(3),S=BigInt(4);function Q(e){const t=function(e){const t=(0,b.h)(e);f.Q5(t,{a:"field",b:"field"},{allowedPrivateKeyLengths:"array",wrapPrivateKey:"boolean",isTorsionFree:"function",clearCofactor:"function",allowInfinityPoint:"boolean",fromBytes:"function",toBytes:"function"});const{endo:n,Fp:r,a:i}=t;if(n){if(!r.eql(i,r.ZERO))throw new Error("Endomorphism can only be defined for Koblitz curves that have a=0");if("object"!=typeof n||"bigint"!=typeof n.beta||"function"!=typeof n.splitScalar)throw new Error("Expected endomorphism with beta: bigint and splitScalar: function")}return Object.freeze({...t})}(e),{Fp:n}=t,r=t.toBytes||((e,t,r)=>{const i=t.toAffine();return f.Id(Uint8Array.from([4]),n.toBytes(i.x),n.toBytes(i.y))}),i=t.fromBytes||(e=>{const t=e.subarray(1);return{x:n.fromBytes(t.subarray(0,n.BYTES)),y:n.fromBytes(t.subarray(n.BYTES,2*n.BYTES))}});function o(e){const{a:r,b:i}=t,o=n.sqr(e),a=n.mul(o,e);return n.add(n.add(a,n.mul(e,r)),i)}if(!n.eql(n.sqr(t.Gy),o(t.Gx)))throw new Error("bad generator point: equation left != right");function a(e){return"bigint"==typeof e&&In.eql(e,n.ZERO);return i(t)&&i(r)?A.ZERO:new A(t,r,n.ONE)}get x(){return this.toAffine().x}get y(){return this.toAffine().y}static normalizeZ(e){const t=n.invertBatch(e.map((e=>e.pz)));return e.map(((e,n)=>e.toAffine(t[n]))).map(A.fromAffine)}static fromHex(e){const t=A.fromAffine(i((0,f.qj)("pointHex",e)));return t.assertValidity(),t}static fromPrivateKey(e){return A.BASE.multiply(c(e))}_setWindowSize(e){this._WINDOW_SIZE=e,u.delete(this)}assertValidity(){if(this.is0()){if(t.allowInfinityPoint&&!n.is0(this.py))return;throw new Error("bad point: ZERO")}const{x:e,y:r}=this.toAffine();if(!n.isValid(e)||!n.isValid(r))throw new Error("bad point: x or y not FE");const i=n.sqr(r),a=o(e);if(!n.eql(i,a))throw new Error("bad point: equation left != right");if(!this.isTorsionFree())throw new Error("bad point: not in prime-order subgroup")}hasEvenY(){const{y:e}=this.toAffine();if(n.isOdd)return!n.isOdd(e);throw new Error("Field doesn't support isOdd")}equals(e){d(e);const{px:t,py:r,pz:i}=this,{px:o,py:a,pz:s}=e,c=n.eql(n.mul(t,s),n.mul(o,i)),u=n.eql(n.mul(r,s),n.mul(a,i));return c&&u}negate(){return new A(this.px,n.neg(this.py),this.pz)}double(){const{a:e,b:r}=t,i=n.mul(r,_),{px:o,py:a,pz:s}=this;let c=n.ZERO,u=n.ZERO,l=n.ZERO,f=n.mul(o,o),d=n.mul(a,a),h=n.mul(s,s),p=n.mul(o,a);return p=n.add(p,p),l=n.mul(o,s),l=n.add(l,l),c=n.mul(e,l),u=n.mul(i,h),u=n.add(c,u),c=n.sub(d,u),u=n.add(d,u),u=n.mul(c,u),c=n.mul(p,c),l=n.mul(i,l),h=n.mul(e,h),p=n.sub(f,h),p=n.mul(e,p),p=n.add(p,l),l=n.add(f,f),f=n.add(l,f),f=n.add(f,h),f=n.mul(f,p),u=n.add(u,f),h=n.mul(a,s),h=n.add(h,h),f=n.mul(h,p),c=n.sub(c,f),l=n.mul(h,d),l=n.add(l,l),l=n.add(l,l),new A(c,u,l)}add(e){d(e);const{px:r,py:i,pz:o}=this,{px:a,py:s,pz:c}=e;let u=n.ZERO,l=n.ZERO,f=n.ZERO;const h=t.a,p=n.mul(t.b,_);let g=n.mul(r,a),y=n.mul(i,s),m=n.mul(o,c),b=n.add(r,i),v=n.add(a,s);b=n.mul(b,v),v=n.add(g,y),b=n.sub(b,v),v=n.add(r,o);let w=n.add(a,c);return v=n.mul(v,w),w=n.add(g,m),v=n.sub(v,w),w=n.add(i,o),u=n.add(s,c),w=n.mul(w,u),u=n.add(y,m),w=n.sub(w,u),f=n.mul(h,v),u=n.mul(p,m),f=n.add(u,f),u=n.sub(y,f),f=n.add(y,f),l=n.mul(u,f),y=n.add(g,g),y=n.add(y,g),m=n.mul(h,m),v=n.mul(p,v),y=n.add(y,m),m=n.sub(g,m),m=n.mul(h,m),v=n.add(v,m),g=n.mul(y,v),l=n.add(l,g),g=n.mul(w,v),u=n.mul(b,u),u=n.sub(u,g),g=n.mul(b,y),f=n.mul(w,f),f=n.add(f,g),new A(u,l,f)}subtract(e){return this.add(e.negate())}is0(){return this.equals(A.ZERO)}wNAF(e){return p.wNAFCached(this,u,e,(e=>{const t=n.invertBatch(e.map((e=>e.pz)));return e.map(((e,n)=>e.toAffine(t[n]))).map(A.fromAffine)}))}multiplyUnsafe(e){const r=A.ZERO;if(e===I)return r;if(s(e),e===B)return this;const{endo:i}=t;if(!i)return p.unsafeLadder(this,e);let{k1neg:o,k1:a,k2neg:c,k2:u}=i.splitScalar(e),l=r,f=r,d=this;for(;a>I||u>I;)a&B&&(l=l.add(d)),u&B&&(f=f.add(d)),d=d.double(),a>>=B,u>>=B;return o&&(l=l.negate()),c&&(f=f.negate()),f=new A(n.mul(f.px,i.beta),f.py,f.pz),l.add(f)}multiply(e){s(e);let r,i,o=e;const{endo:a}=t;if(a){const{k1neg:e,k1:t,k2neg:s,k2:c}=a.splitScalar(o);let{p:u,f:l}=this.wNAF(t),{p:f,f:d}=this.wNAF(c);u=p.constTimeNegate(e,u),f=p.constTimeNegate(s,f),f=new A(n.mul(f.px,a.beta),f.py,f.pz),r=u.add(f),i=l.add(d)}else{const{p:e,f:t}=this.wNAF(o);r=e,i=t}return A.normalizeZ([r,i])[0]}multiplyAndAddUnsafe(e,t,n){const r=A.BASE,i=(e,t)=>t!==I&&t!==B&&e.equals(r)?e.multiply(t):e.multiplyUnsafe(t),o=i(this,t).add(i(e,n));return o.is0()?void 0:o}toAffine(e){const{px:t,py:r,pz:i}=this,o=this.is0();null==e&&(e=o?n.ONE:n.inv(i));const a=n.mul(t,e),s=n.mul(r,e),c=n.mul(i,e);if(o)return{x:n.ZERO,y:n.ZERO};if(!n.eql(c,n.ONE))throw new Error("invZ was invalid");return{x:a,y:s}}isTorsionFree(){const{h:e,isTorsionFree:n}=t;if(e===B)return!0;if(n)return n(A,this);throw new Error("isTorsionFree() has not been declared for the elliptic curve")}clearCofactor(){const{h:e,clearCofactor:n}=t;return e===B?this:n?n(A,this):this.multiplyUnsafe(t.h)}toRawBytes(e=!0){return this.assertValidity(),r(A,this,e)}toHex(e=!0){return f.My(this.toRawBytes(e))}}A.BASE=new A(t.Gx,t.Gy,n.ONE),A.ZERO=new A(n.ZERO,n.ONE,n.ZERO);const h=t.nBitLength,p=(0,b.A)(A,t.endo?Math.ceil(h/2):h);return{CURVE:t,ProjectivePoint:A,normPrivateKeyToScalar:c,weierstrassEquation:o,isWithinCurveOrder:a}}function k(e,t){if(l.jr(e),!e.isValid(t.A)||!e.isValid(t.B)||!e.isValid(t.Z))throw new Error("mapToCurveSimpleSWU: invalid opts");const n=function(e,t){const n=e.ORDER;let r=I;for(let e=n-B;e%C===I;e/=C)r+=B;const i=r,o=C<{let r=f,o=e.pow(n,u),a=e.sqr(o);a=e.mul(a,n);let s=e.mul(t,a);s=e.pow(s,c),s=e.mul(s,o),o=e.mul(s,n),a=e.mul(s,t);let A=e.mul(a,o);s=e.pow(A,l);let h=e.eql(s,e.ONE);o=e.mul(a,d),s=e.mul(A,r),a=e.cmov(o,a,h),A=e.cmov(s,A,h);for(let t=i;t>B;t--){let n=t-C;n=C<{let o=e.sqr(i);const a=e.mul(t,i);o=e.mul(o,a);let s=e.pow(o,n);s=e.mul(s,a);const c=e.mul(s,r),u=e.mul(e.sqr(s),i),l=e.eql(u,t);return{isValid:l,value:e.cmov(c,s,l)}}}return A}(e,t.Z);if(!e.isOdd)throw new Error("Fp.isOdd is not implemented!");return r=>{let i,o,a,s,c,u,l,f;i=e.sqr(r),i=e.mul(i,t.Z),o=e.sqr(i),o=e.add(o,i),a=e.add(o,e.ONE),a=e.mul(a,t.B),s=e.cmov(t.Z,e.neg(o),!e.eql(o,e.ZERO)),s=e.mul(s,t.A),o=e.sqr(a),u=e.sqr(s),c=e.mul(u,t.A),o=e.add(o,c),o=e.mul(o,a),u=e.mul(u,s),c=e.mul(u,t.B),o=e.add(o,c),l=e.mul(i,a);const{isValid:d,value:A}=n(o,u);f=e.mul(i,r),f=e.mul(f,A),l=e.cmov(l,a,d),f=e.cmov(f,A,d);const h=e.isOdd(r)===e.isOdd(f);return f=e.cmov(e.neg(f),f,h),l=e.div(l,s),{x:l,y:f}}}const M=BigInt(2),x=BigInt(3),R=BigInt(0),D=BigInt(1),T=BigInt(2),N=BigInt(3),O=BigInt(4),L=BigInt(8),P=BigInt(16),U=BigInt("0x1a0111ea397fe69a4b1ba7b6434bacd764774b84f38512bf6730d2a0f6b0f6241eabfffeb153ffffb9feffffffffaaab"),F=l.D0(U),j=l.D0(BigInt("0x73eda753299d7d483339d80809a1d80553bda402fffe5bfeffffffff00000001")),q=({c0:e,c1:t},{c0:n,c1:r})=>({c0:F.add(e,n),c1:F.add(t,r)}),G=({c0:e,c1:t},{c0:n,c1:r})=>({c0:F.sub(e,n),c1:F.sub(t,r)}),H=({c0:e,c1:t},n)=>{if("bigint"==typeof n)return{c0:F.mul(e,n),c1:F.mul(t,n)};const{c0:r,c1:i}=n;let o=F.mul(e,r),a=F.mul(t,i);return{c0:F.sub(o,a),c1:F.sub(F.mul(F.add(e,t),F.add(r,i)),F.add(o,a))}},Y=({c0:e,c1:t})=>{const n=F.add(e,t),r=F.sub(e,t),i=F.add(e,e);return{c0:F.mul(n,r),c1:F.mul(i,t)}},K=U*U,z={ORDER:K,BITS:(0,f.dJ)(K),BYTES:Math.ceil((0,f.dJ)(K)/8),MASK:(0,f.OG)((0,f.dJ)(K)),ZERO:{c0:F.ZERO,c1:F.ZERO},ONE:{c0:F.ONE,c1:F.ZERO},create:e=>e,isValid:({c0:e,c1:t})=>"bigint"==typeof e&&"bigint"==typeof t,is0:({c0:e,c1:t})=>F.is0(e)&&F.is0(t),eql:({c0:e,c1:t},{c0:n,c1:r})=>F.eql(e,n)&&F.eql(t,r),neg:({c0:e,c1:t})=>({c0:F.neg(e),c1:F.neg(t)}),pow:(e,t)=>l.f4(z,e,t),invertBatch:e=>l.pS(z,e),add:q,sub:G,mul:H,sqr:Y,addN:q,subN:G,mulN:H,sqrN:Y,div:(e,t)=>z.mul(e,"bigint"==typeof t?F.inv(F.create(t)):z.inv(t)),inv:({c0:e,c1:t})=>{const n=F.inv(F.create(e*e+t*t));return{c0:F.mul(n,F.create(e)),c1:F.mul(n,F.create(-t))}},sqrt:e=>{if(z.eql(e,z.ZERO))return z.ZERO;const t=z.pow(e,(z.ORDER+L)/P),n=z.div(z.sqr(t),e),r=W,i=[r[0],r[2],r[4],r[6]].find((e=>z.eql(e,n)));if(!i)throw new Error("No root");const o=r.indexOf(i),a=r[o/2];if(!a)throw new Error("Invalid root");const s=z.div(t,a),c=z.neg(s),{re:u,im:l}=z.reim(s),{re:f,im:d}=z.reim(c);return l>d||l===d&&u>f?s:c},isOdd:e=>{const{re:t,im:n}=z.reim(e);return BigInt(t%T||t===R&&n%T)==D},fromBytes(e){if(e.length!==z.BYTES)throw new Error(`fromBytes wrong length=${e.length}`);return{c0:F.fromBytes(e.subarray(0,F.BYTES)),c1:F.fromBytes(e.subarray(F.BYTES))}},toBytes:({c0:e,c1:t})=>(0,f.Id)(F.toBytes(e),F.toBytes(t)),cmov:({c0:e,c1:t},{c0:n,c1:r},i)=>({c0:F.cmov(e,n,i),c1:F.cmov(t,r,i)}),reim:({c0:e,c1:t})=>({re:e,im:t}),mulByNonresidue:({c0:e,c1:t})=>({c0:F.sub(e,t),c1:F.add(e,t)}),multiplyByB:({c0:e,c1:t})=>{let n=F.mul(e,O),r=F.mul(t,O);return{c0:F.sub(n,r),c1:F.add(n,r)}},fromBigTuple:e=>{if(2!==e.length)throw new Error("Invalid tuple");const t=e.map((e=>F.create(e)));return{c0:t[0],c1:t[1]}},frobeniusMap:({c0:e,c1:t},n)=>({c0:e,c1:F.mul(t,V[n%2])})},V=[BigInt("0x1"),BigInt("0x1a0111ea397fe69a4b1ba7b6434bacd764774b84f38512bf6730d2a0f6b0f6241eabfffeb153ffffb9feffffffffaaaa")].map((e=>F.create(e))),J=BigInt("0x6af0e0437ff400b6831e36d6bd17ffe48395dabc2d3435e77f76e17009241c5ee67992f72ec05f4c81084fbede3cc09"),W=[[D,R],[J,-J],[R,D],[J,J],[-D,R],[-J,J],[R,-D],[-J,-J]].map((e=>z.fromBigTuple(e))),Z=({c0:e,c1:t,c2:n},{c0:r,c1:i,c2:o})=>({c0:z.add(e,r),c1:z.add(t,i),c2:z.add(n,o)}),$=({c0:e,c1:t,c2:n},{c0:r,c1:i,c2:o})=>({c0:z.sub(e,r),c1:z.sub(t,i),c2:z.sub(n,o)}),X=({c0:e,c1:t,c2:n},r)=>{if("bigint"==typeof r)return{c0:z.mul(e,r),c1:z.mul(t,r),c2:z.mul(n,r)};const{c0:i,c1:o,c2:a}=r,s=z.mul(e,i),c=z.mul(t,o),u=z.mul(n,a);return{c0:z.add(s,z.mulByNonresidue(z.sub(z.mul(z.add(t,n),z.add(o,a)),z.add(c,u)))),c1:z.add(z.sub(z.mul(z.add(e,t),z.add(i,o)),z.add(s,c)),z.mulByNonresidue(u)),c2:z.sub(z.add(c,z.mul(z.add(e,n),z.add(i,a))),z.add(s,u))}},ee=({c0:e,c1:t,c2:n})=>{let r=z.sqr(e),i=z.mul(z.mul(e,t),T),o=z.mul(z.mul(t,n),T),a=z.sqr(n);return{c0:z.add(z.mulByNonresidue(o),r),c1:z.add(z.mulByNonresidue(a),i),c2:z.sub(z.sub(z.add(z.add(i,z.sqr(z.add(z.sub(e,t),n))),o),r),a)}},te={ORDER:z.ORDER,BITS:3*z.BITS,BYTES:3*z.BYTES,MASK:(0,f.OG)(3*z.BITS),ZERO:{c0:z.ZERO,c1:z.ZERO,c2:z.ZERO},ONE:{c0:z.ONE,c1:z.ZERO,c2:z.ZERO},create:e=>e,isValid:({c0:e,c1:t,c2:n})=>z.isValid(e)&&z.isValid(t)&&z.isValid(n),is0:({c0:e,c1:t,c2:n})=>z.is0(e)&&z.is0(t)&&z.is0(n),neg:({c0:e,c1:t,c2:n})=>({c0:z.neg(e),c1:z.neg(t),c2:z.neg(n)}),eql:({c0:e,c1:t,c2:n},{c0:r,c1:i,c2:o})=>z.eql(e,r)&&z.eql(t,i)&&z.eql(n,o),sqrt:()=>{throw new Error("Not implemented")},div:(e,t)=>te.mul(e,"bigint"==typeof t?F.inv(F.create(t)):te.inv(t)),pow:(e,t)=>l.f4(te,e,t),invertBatch:e=>l.pS(te,e),add:Z,sub:$,mul:X,sqr:ee,addN:Z,subN:$,mulN:X,sqrN:ee,inv:({c0:e,c1:t,c2:n})=>{let r=z.sub(z.sqr(e),z.mulByNonresidue(z.mul(n,t))),i=z.sub(z.mulByNonresidue(z.sqr(n)),z.mul(e,t)),o=z.sub(z.sqr(t),z.mul(e,n)),a=z.inv(z.add(z.mulByNonresidue(z.add(z.mul(n,i),z.mul(t,o))),z.mul(e,r)));return{c0:z.mul(a,r),c1:z.mul(a,i),c2:z.mul(a,o)}},fromBytes:e=>{if(e.length!==te.BYTES)throw new Error(`fromBytes wrong length=${e.length}`);return{c0:z.fromBytes(e.subarray(0,z.BYTES)),c1:z.fromBytes(e.subarray(z.BYTES,2*z.BYTES)),c2:z.fromBytes(e.subarray(2*z.BYTES))}},toBytes:({c0:e,c1:t,c2:n})=>(0,f.Id)(z.toBytes(e),z.toBytes(t),z.toBytes(n)),cmov:({c0:e,c1:t,c2:n},{c0:r,c1:i,c2:o},a)=>({c0:z.cmov(e,r,a),c1:z.cmov(t,i,a),c2:z.cmov(n,o,a)}),fromBigSix:e=>{if(!Array.isArray(e)||6!==e.length)throw new Error("Invalid Fp6 usage");return{c0:z.fromBigTuple(e.slice(0,2)),c1:z.fromBigTuple(e.slice(2,4)),c2:z.fromBigTuple(e.slice(4,6))}},frobeniusMap:({c0:e,c1:t,c2:n},r)=>({c0:z.frobeniusMap(e,r),c1:z.mul(z.frobeniusMap(t,r),ne[r%6]),c2:z.mul(z.frobeniusMap(n,r),re[r%6])}),mulByNonresidue:({c0:e,c1:t,c2:n})=>({c0:z.mulByNonresidue(n),c1:e,c2:t}),multiplyBy1:({c0:e,c1:t,c2:n},r)=>({c0:z.mulByNonresidue(z.mul(n,r)),c1:z.mul(e,r),c2:z.mul(t,r)}),multiplyBy01({c0:e,c1:t,c2:n},r,i){let o=z.mul(e,r),a=z.mul(t,i);return{c0:z.add(z.mulByNonresidue(z.sub(z.mul(z.add(t,n),i),a)),o),c1:z.sub(z.sub(z.mul(z.add(r,i),z.add(e,t)),o),a),c2:z.add(z.sub(z.mul(z.add(e,n),r),o),a)}},multiplyByFp2:({c0:e,c1:t,c2:n},r)=>({c0:z.mul(e,r),c1:z.mul(t,r),c2:z.mul(n,r)})},ne=[[BigInt("0x1"),BigInt("0x0")],[BigInt("0x0"),BigInt("0x1a0111ea397fe699ec02408663d4de85aa0d857d89759ad4897d29650fb85f9b409427eb4f49fffd8bfd00000000aaac")],[BigInt("0x00000000000000005f19672fdf76ce51ba69c6076a0f77eaddb3a93be6f89688de17d813620a00022e01fffffffefffe"),BigInt("0x0")],[BigInt("0x0"),BigInt("0x1")],[BigInt("0x1a0111ea397fe699ec02408663d4de85aa0d857d89759ad4897d29650fb85f9b409427eb4f49fffd8bfd00000000aaac"),BigInt("0x0")],[BigInt("0x0"),BigInt("0x00000000000000005f19672fdf76ce51ba69c6076a0f77eaddb3a93be6f89688de17d813620a00022e01fffffffefffe")]].map((e=>z.fromBigTuple(e))),re=[[BigInt("0x1"),BigInt("0x0")],[BigInt("0x1a0111ea397fe699ec02408663d4de85aa0d857d89759ad4897d29650fb85f9b409427eb4f49fffd8bfd00000000aaad"),BigInt("0x0")],[BigInt("0x1a0111ea397fe699ec02408663d4de85aa0d857d89759ad4897d29650fb85f9b409427eb4f49fffd8bfd00000000aaac"),BigInt("0x0")],[BigInt("0x1a0111ea397fe69a4b1ba7b6434bacd764774b84f38512bf6730d2a0f6b0f6241eabfffeb153ffffb9feffffffffaaaa"),BigInt("0x0")],[BigInt("0x00000000000000005f19672fdf76ce51ba69c6076a0f77eaddb3a93be6f89688de17d813620a00022e01fffffffefffe"),BigInt("0x0")],[BigInt("0x00000000000000005f19672fdf76ce51ba69c6076a0f77eaddb3a93be6f89688de17d813620a00022e01fffffffeffff"),BigInt("0x0")]].map((e=>z.fromBigTuple(e))),ie=BigInt("0xd201000000010000"),oe=(0,f.dJ)(ie),ae=({c0:e,c1:t},{c0:n,c1:r})=>({c0:te.add(e,n),c1:te.add(t,r)}),se=({c0:e,c1:t},{c0:n,c1:r})=>({c0:te.sub(e,n),c1:te.sub(t,r)}),ce=({c0:e,c1:t},n)=>{if("bigint"==typeof n)return{c0:te.mul(e,n),c1:te.mul(t,n)};let{c0:r,c1:i}=n,o=te.mul(e,r),a=te.mul(t,i);return{c0:te.add(o,te.mulByNonresidue(a)),c1:te.sub(te.mul(te.add(e,t),te.add(r,i)),te.add(o,a))}},ue=({c0:e,c1:t})=>{let n=te.mul(e,t);return{c0:te.sub(te.sub(te.mul(te.add(te.mulByNonresidue(t),e),te.add(e,t)),n),te.mulByNonresidue(n)),c1:te.add(n,n)}};function le(e,t){const n=z.sqr(e),r=z.sqr(t);return{first:z.add(z.mulByNonresidue(r),n),second:z.sub(z.sub(z.sqr(z.add(e,t)),n),r)}}const fe={ORDER:z.ORDER,BITS:2*z.BITS,BYTES:2*z.BYTES,MASK:(0,f.OG)(2*z.BITS),ZERO:{c0:te.ZERO,c1:te.ZERO},ONE:{c0:te.ONE,c1:te.ZERO},create:e=>e,isValid:({c0:e,c1:t})=>te.isValid(e)&&te.isValid(t),is0:({c0:e,c1:t})=>te.is0(e)&&te.is0(t),neg:({c0:e,c1:t})=>({c0:te.neg(e),c1:te.neg(t)}),eql:({c0:e,c1:t},{c0:n,c1:r})=>te.eql(e,n)&&te.eql(t,r),sqrt:()=>{throw new Error("Not implemented")},inv:({c0:e,c1:t})=>{let n=te.inv(te.sub(te.sqr(e),te.mulByNonresidue(te.sqr(t))));return{c0:te.mul(e,n),c1:te.neg(te.mul(t,n))}},div:(e,t)=>fe.mul(e,"bigint"==typeof t?F.inv(F.create(t)):fe.inv(t)),pow:(e,t)=>l.f4(fe,e,t),invertBatch:e=>l.pS(fe,e),add:ae,sub:se,mul:ce,sqr:ue,addN:ae,subN:se,mulN:ce,sqrN:ue,fromBytes:e=>{if(e.length!==fe.BYTES)throw new Error(`fromBytes wrong length=${e.length}`);return{c0:te.fromBytes(e.subarray(0,te.BYTES)),c1:te.fromBytes(e.subarray(te.BYTES))}},toBytes:({c0:e,c1:t})=>(0,f.Id)(te.toBytes(e),te.toBytes(t)),cmov:({c0:e,c1:t},{c0:n,c1:r},i)=>({c0:te.cmov(e,n,i),c1:te.cmov(t,r,i)}),fromBigTwelve:e=>({c0:te.fromBigSix(e.slice(0,6)),c1:te.fromBigSix(e.slice(6,12))}),frobeniusMap(e,t){const n=te.frobeniusMap(e.c0,t),{c0:r,c1:i,c2:o}=te.frobeniusMap(e.c1,t),a=de[t%12];return{c0:n,c1:te.create({c0:z.mul(r,a),c1:z.mul(i,a),c2:z.mul(o,a)})}},multiplyBy014:({c0:e,c1:t},n,r,i)=>{let o=te.multiplyBy01(e,n,r),a=te.multiplyBy1(t,i);return{c0:te.add(te.mulByNonresidue(a),o),c1:te.sub(te.sub(te.multiplyBy01(te.add(t,e),n,z.add(r,i)),o),a)}},multiplyByFp2:({c0:e,c1:t},n)=>({c0:te.multiplyByFp2(e,n),c1:te.multiplyByFp2(t,n)}),conjugate:({c0:e,c1:t})=>({c0:e,c1:te.neg(t)}),_cyclotomicSquare:({c0:e,c1:t})=>{const{c0:n,c1:r,c2:i}=e,{c0:o,c1:a,c2:s}=t,{first:c,second:u}=le(n,a),{first:l,second:f}=le(o,i),{first:d,second:A}=le(r,s);let h=z.mulByNonresidue(A);return{c0:te.create({c0:z.add(z.mul(z.sub(c,n),T),c),c1:z.add(z.mul(z.sub(l,r),T),l),c2:z.add(z.mul(z.sub(d,i),T),d)}),c1:te.create({c0:z.add(z.mul(z.add(h,o),T),h),c1:z.add(z.mul(z.add(u,a),T),u),c2:z.add(z.mul(z.add(f,s),T),f)})}},_cyclotomicExp(e,t){let n=fe.ONE;for(let r=oe-1;r>=0;r--)n=fe._cyclotomicSquare(n),(0,f.GU)(t,r)&&(n=fe.mul(n,e));return n},finalExponentiate:e=>{const t=ie,n=fe.div(fe.frobeniusMap(e,6),e),r=fe.mul(fe.frobeniusMap(n,2),n),i=fe.conjugate(fe._cyclotomicExp(r,t)),o=fe.mul(fe.conjugate(fe._cyclotomicSquare(r)),i),a=fe.conjugate(fe._cyclotomicExp(o,t)),s=fe.conjugate(fe._cyclotomicExp(a,t)),c=fe.mul(fe.conjugate(fe._cyclotomicExp(s,t)),fe._cyclotomicSquare(i)),u=fe.conjugate(fe._cyclotomicExp(c,t)),l=fe.frobeniusMap(fe.mul(i,s),2),f=fe.frobeniusMap(fe.mul(a,r),3),d=fe.frobeniusMap(fe.mul(c,fe.conjugate(r)),1),A=fe.mul(fe.mul(u,fe.conjugate(o)),r);return fe.mul(fe.mul(fe.mul(l,f),d),A)}},de=[[BigInt("0x1"),BigInt("0x0")],[BigInt("0x1904d3bf02bb0667c231beb4202c0d1f0fd603fd3cbd5f4f7b2443d784bab9c4f67ea53d63e7813d8d0775ed92235fb8"),BigInt("0x00fc3e2b36c4e03288e9e902231f9fb854a14787b6c7b36fec0c8ec971f63c5f282d5ac14d6c7ec22cf78a126ddc4af3")],[BigInt("0x00000000000000005f19672fdf76ce51ba69c6076a0f77eaddb3a93be6f89688de17d813620a00022e01fffffffeffff"),BigInt("0x0")],[BigInt("0x135203e60180a68ee2e9c448d77a2cd91c3dedd930b1cf60ef396489f61eb45e304466cf3e67fa0af1ee7b04121bdea2"),BigInt("0x06af0e0437ff400b6831e36d6bd17ffe48395dabc2d3435e77f76e17009241c5ee67992f72ec05f4c81084fbede3cc09")],[BigInt("0x00000000000000005f19672fdf76ce51ba69c6076a0f77eaddb3a93be6f89688de17d813620a00022e01fffffffefffe"),BigInt("0x0")],[BigInt("0x144e4211384586c16bd3ad4afa99cc9170df3560e77982d0db45f3536814f0bd5871c1908bd478cd1ee605167ff82995"),BigInt("0x05b2cfd9013a5fd8df47fa6b48b1e045f39816240c0b8fee8beadf4d8e9c0566c63a3e6e257f87329b18fae980078116")],[BigInt("0x1a0111ea397fe69a4b1ba7b6434bacd764774b84f38512bf6730d2a0f6b0f6241eabfffeb153ffffb9feffffffffaaaa"),BigInt("0x0")],[BigInt("0x00fc3e2b36c4e03288e9e902231f9fb854a14787b6c7b36fec0c8ec971f63c5f282d5ac14d6c7ec22cf78a126ddc4af3"),BigInt("0x1904d3bf02bb0667c231beb4202c0d1f0fd603fd3cbd5f4f7b2443d784bab9c4f67ea53d63e7813d8d0775ed92235fb8")],[BigInt("0x1a0111ea397fe699ec02408663d4de85aa0d857d89759ad4897d29650fb85f9b409427eb4f49fffd8bfd00000000aaac"),BigInt("0x0")],[BigInt("0x06af0e0437ff400b6831e36d6bd17ffe48395dabc2d3435e77f76e17009241c5ee67992f72ec05f4c81084fbede3cc09"),BigInt("0x135203e60180a68ee2e9c448d77a2cd91c3dedd930b1cf60ef396489f61eb45e304466cf3e67fa0af1ee7b04121bdea2")],[BigInt("0x1a0111ea397fe699ec02408663d4de85aa0d857d89759ad4897d29650fb85f9b409427eb4f49fffd8bfd00000000aaad"),BigInt("0x0")],[BigInt("0x05b2cfd9013a5fd8df47fa6b48b1e045f39816240c0b8fee8beadf4d8e9c0566c63a3e6e257f87329b18fae980078116"),BigInt("0x144e4211384586c16bd3ad4afa99cc9170df3560e77982d0db45f3536814f0bd5871c1908bd478cd1ee605167ff82995")]].map((e=>z.fromBigTuple(e))),Ae=y(z,[[["0x5c759507e8e333ebb5b7a9a47d7ed8532c52d39fd3a042a88b58423c50ae15d5c2638e343d9c71c6238aaaaaaaa97d6","0x5c759507e8e333ebb5b7a9a47d7ed8532c52d39fd3a042a88b58423c50ae15d5c2638e343d9c71c6238aaaaaaaa97d6"],["0x0","0x11560bf17baa99bc32126fced787c88f984f87adf7ae0c7f9a208c6b4f20a4181472aaa9cb8d555526a9ffffffffc71a"],["0x11560bf17baa99bc32126fced787c88f984f87adf7ae0c7f9a208c6b4f20a4181472aaa9cb8d555526a9ffffffffc71e","0x8ab05f8bdd54cde190937e76bc3e447cc27c3d6fbd7063fcd104635a790520c0a395554e5c6aaaa9354ffffffffe38d"],["0x171d6541fa38ccfaed6dea691f5fb614cb14b4e7f4e810aa22d6108f142b85757098e38d0f671c7188e2aaaaaaaa5ed1","0x0"]],[["0x0","0x1a0111ea397fe69a4b1ba7b6434bacd764774b84f38512bf6730d2a0f6b0f6241eabfffeb153ffffb9feffffffffaa63"],["0xc","0x1a0111ea397fe69a4b1ba7b6434bacd764774b84f38512bf6730d2a0f6b0f6241eabfffeb153ffffb9feffffffffaa9f"],["0x1","0x0"]],[["0x1530477c7ab4113b59a4c18b076d11930f7da5d4a07f649bf54439d87d27e500fc8c25ebf8c92f6812cfc71c71c6d706","0x1530477c7ab4113b59a4c18b076d11930f7da5d4a07f649bf54439d87d27e500fc8c25ebf8c92f6812cfc71c71c6d706"],["0x0","0x5c759507e8e333ebb5b7a9a47d7ed8532c52d39fd3a042a88b58423c50ae15d5c2638e343d9c71c6238aaaaaaaa97be"],["0x11560bf17baa99bc32126fced787c88f984f87adf7ae0c7f9a208c6b4f20a4181472aaa9cb8d555526a9ffffffffc71c","0x8ab05f8bdd54cde190937e76bc3e447cc27c3d6fbd7063fcd104635a790520c0a395554e5c6aaaa9354ffffffffe38f"],["0x124c9ad43b6cf79bfbf7043de3811ad0761b0f37a1e26286b0e977c69aa274524e79097a56dc4bd9e1b371c71c718b10","0x0"]],[["0x1a0111ea397fe69a4b1ba7b6434bacd764774b84f38512bf6730d2a0f6b0f6241eabfffeb153ffffb9feffffffffa8fb","0x1a0111ea397fe69a4b1ba7b6434bacd764774b84f38512bf6730d2a0f6b0f6241eabfffeb153ffffb9feffffffffa8fb"],["0x0","0x1a0111ea397fe69a4b1ba7b6434bacd764774b84f38512bf6730d2a0f6b0f6241eabfffeb153ffffb9feffffffffa9d3"],["0x12","0x1a0111ea397fe69a4b1ba7b6434bacd764774b84f38512bf6730d2a0f6b0f6241eabfffeb153ffffb9feffffffffaa99"],["0x1","0x0"]]].map((e=>e.map((e=>z.fromBigTuple(e.map(BigInt))))))),he=y(F,[["0x11a05f2b1e833340b809101dd99815856b303e88a2d7005ff2627b56cdb4e2c85610c2d5f2e62d6eaeac1662734649b7","0x17294ed3e943ab2f0588bab22147a81c7c17e75b2f6a8417f565e33c70d1e86b4838f2a6f318c356e834eef1b3cb83bb","0xd54005db97678ec1d1048c5d10a9a1bce032473295983e56878e501ec68e25c958c3e3d2a09729fe0179f9dac9edcb0","0x1778e7166fcc6db74e0609d307e55412d7f5e4656a8dbf25f1b33289f1b330835336e25ce3107193c5b388641d9b6861","0xe99726a3199f4436642b4b3e4118e5499db995a1257fb3f086eeb65982fac18985a286f301e77c451154ce9ac8895d9","0x1630c3250d7313ff01d1201bf7a74ab5db3cb17dd952799b9ed3ab9097e68f90a0870d2dcae73d19cd13c1c66f652983","0xd6ed6553fe44d296a3726c38ae652bfb11586264f0f8ce19008e218f9c86b2a8da25128c1052ecaddd7f225a139ed84","0x17b81e7701abdbe2e8743884d1117e53356de5ab275b4db1a682c62ef0f2753339b7c8f8c8f475af9ccb5618e3f0c88e","0x80d3cf1f9a78fc47b90b33563be990dc43b756ce79f5574a2c596c928c5d1de4fa295f296b74e956d71986a8497e317","0x169b1f8e1bcfa7c42e0c37515d138f22dd2ecb803a0c5c99676314baf4bb1b7fa3190b2edc0327797f241067be390c9e","0x10321da079ce07e272d8ec09d2565b0dfa7dccdde6787f96d50af36003b14866f69b771f8c285decca67df3f1605fb7b","0x6e08c248e260e70bd1e962381edee3d31d79d7e22c837bc23c0bf1bc24c6b68c24b1b80b64d391fa9c8ba2e8ba2d229"],["0x8ca8d548cff19ae18b2e62f4bd3fa6f01d5ef4ba35b48ba9c9588617fc8ac62b558d681be343df8993cf9fa40d21b1c","0x12561a5deb559c4348b4711298e536367041e8ca0cf0800c0126c2588c48bf5713daa8846cb026e9e5c8276ec82b3bff","0xb2962fe57a3225e8137e629bff2991f6f89416f5a718cd1fca64e00b11aceacd6a3d0967c94fedcfcc239ba5cb83e19","0x3425581a58ae2fec83aafef7c40eb545b08243f16b1655154cca8abc28d6fd04976d5243eecf5c4130de8938dc62cd8","0x13a8e162022914a80a6f1d5f43e7a07dffdfc759a12062bb8d6b44e833b306da9bd29ba81f35781d539d395b3532a21e","0xe7355f8e4e667b955390f7f0506c6e9395735e9ce9cad4d0a43bcef24b8982f7400d24bc4228f11c02df9a29f6304a5","0x772caacf16936190f3e0c63e0596721570f5799af53a1894e2e073062aede9cea73b3538f0de06cec2574496ee84a3a","0x14a7ac2a9d64a8b230b3f5b074cf01996e7f63c21bca68a81996e1cdf9822c580fa5b9489d11e2d311f7d99bbdcc5a5e","0xa10ecf6ada54f825e920b3dafc7a3cce07f8d1d7161366b74100da67f39883503826692abba43704776ec3a79a1d641","0x95fc13ab9e92ad4476d6e3eb3a56680f682b4ee96f7d03776df533978f31c1593174e4b4b7865002d6384d168ecdd0a","0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001"],["0x90d97c81ba24ee0259d1f094980dcfa11ad138e48a869522b52af6c956543d3cd0c7aee9b3ba3c2be9845719707bb33","0x134996a104ee5811d51036d776fb46831223e96c254f383d0f906343eb67ad34d6c56711962fa8bfe097e75a2e41c696","0xcc786baa966e66f4a384c86a3b49942552e2d658a31ce2c344be4b91400da7d26d521628b00523b8dfe240c72de1f6","0x1f86376e8981c217898751ad8746757d42aa7b90eeb791c09e4a3ec03251cf9de405aba9ec61deca6355c77b0e5f4cb","0x8cc03fdefe0ff135caf4fe2a21529c4195536fbe3ce50b879833fd221351adc2ee7f8dc099040a841b6daecf2e8fedb","0x16603fca40634b6a2211e11db8f0a6a074a7d0d4afadb7bd76505c3d3ad5544e203f6326c95a807299b23ab13633a5f0","0x4ab0b9bcfac1bbcb2c977d027796b3ce75bb8ca2be184cb5231413c4d634f3747a87ac2460f415ec961f8855fe9d6f2","0x987c8d5333ab86fde9926bd2ca6c674170a05bfe3bdd81ffd038da6c26c842642f64550fedfe935a15e4ca31870fb29","0x9fc4018bd96684be88c9e221e4da1bb8f3abd16679dc26c1e8b6e6a1f20cabe69d65201c78607a360370e577bdba587","0xe1bba7a1186bdb5223abde7ada14a23c42a0ca7915af6fe06985e7ed1e4d43b9b3f7055dd4eba6f2bafaaebca731c30","0x19713e47937cd1be0dfd0b8f1d43fb93cd2fcbcb6caf493fd1183e416389e61031bf3a5cce3fbafce813711ad011c132","0x18b46a908f36f6deb918c143fed2edcc523559b8aaf0c2462e6bfe7f911f643249d9cdf41b44d606ce07c8a4d0074d8e","0xb182cac101b9399d155096004f53f447aa7b12a3426b08ec02710e807b4633f06c851c1919211f20d4c04f00b971ef8","0x245a394ad1eca9b72fc00ae7be315dc757b3b080d4c158013e6632d3c40659cc6cf90ad1c232a6442d9d3f5db980133","0x5c129645e44cf1102a159f748c4a3fc5e673d81d7e86568d9ab0f5d396a7ce46ba1049b6579afb7866b1e715475224b","0x15e6be4e990f03ce4ea50b3b42df2eb5cb181d8f84965a3957add4fa95af01b2b665027efec01c7704b456be69c8b604"],["0x16112c4c3a9c98b252181140fad0eae9601a6de578980be6eec3232b5be72e7a07f3688ef60c206d01479253b03663c1","0x1962d75c2381201e1a0cbd6c43c348b885c84ff731c4d59ca4a10356f453e01f78a4260763529e3532f6102c2e49a03d","0x58df3306640da276faaae7d6e8eb15778c4855551ae7f310c35a5dd279cd2eca6757cd636f96f891e2538b53dbf67f2","0x16b7d288798e5395f20d23bf89edb4d1d115c5dbddbcd30e123da489e726af41727364f2c28297ada8d26d98445f5416","0xbe0e079545f43e4b00cc912f8228ddcc6d19c9f0f69bbb0542eda0fc9dec916a20b15dc0fd2ededda39142311a5001d","0x8d9e5297186db2d9fb266eaac783182b70152c65550d881c5ecd87b6f0f5a6449f38db9dfa9cce202c6477faaf9b7ac","0x166007c08a99db2fc3ba8734ace9824b5eecfdfa8d0cf8ef5dd365bc400a0051d5fa9c01a58b1fb93d1a1399126a775c","0x16a3ef08be3ea7ea03bcddfabba6ff6ee5a4375efa1f4fd7feb34fd206357132b920f5b00801dee460ee415a15812ed9","0x1866c8ed336c61231a1be54fd1d74cc4f9fb0ce4c6af5920abc5750c4bf39b4852cfe2f7bb9248836b233d9d55535d4a","0x167a55cda70a6e1cea820597d94a84903216f763e13d87bb5308592e7ea7d4fbc7385ea3d529b35e346ef48bb8913f55","0x4d2f259eea405bd48f010a01ad2911d9c6dd039bb61a6290e591b36e636a5c871a5c29f4f83060400f8b49cba8f6aa8","0xaccbb67481d033ff5852c1e48c50c477f94ff8aefce42d28c0f9a88cea7913516f968986f7ebbea9684b529e2561092","0xad6b9514c767fe3c3613144b45f1496543346d98adf02267d5ceef9a00d9b8693000763e3b90ac11e99b138573345cc","0x2660400eb2e4f3b628bdd0d53cd76f2bf565b94e72927c1cb748df27942480e420517bd8714cc80d1fadc1326ed06f7","0xe0fa1d816ddc03e6b24255e0d7819c171c40f65e273b853324efcd6356caa205ca2f570f13497804415473a1d634b8f","0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001"]].map((e=>e.map((e=>BigInt(e)))))),pe=k(z,{A:z.create({c0:F.create(R),c1:F.create(BigInt(240))}),B:z.create({c0:F.create(BigInt(1012)),c1:F.create(BigInt(1012))}),Z:z.create({c0:F.create(BigInt(-2)),c1:F.create(BigInt(-1))})}),ge=k(F,{A:F.create(BigInt("0x144698a3b8e9433d693a02c96d4982b0ea985383ee66a8d8e8981aefd881ac98936f8da0e0f97f5cf428082d584c1d")),B:F.create(BigInt("0x12e2908d11688030018b12e8753eee3b2016c1f0f24f4070a0b9c14fcef35ef55a23215a316ceaa5d1cc48e98e172be0")),Z:F.create(BigInt(11))}),ye=te.create({c0:z.ZERO,c1:z.ONE,c2:z.ZERO}),me=fe.create({c0:ye,c1:te.ZERO}),be=fe.create({c0:te.ZERO,c1:ye}),[ve,we]=fe.invertBatch([me,be]);function Ee(e,t){const n=t.toAffine(),r=(i=n.x,o=n.y,[fe.mul(fe.frobeniusMap(fe.multiplyByFp2(ve,i),1),me).c0.c0,fe.mul(fe.frobeniusMap(fe.multiplyByFp2(we,o),1),be).c0.c0]);var i,o;return new e(r[0],r[1],z.ONE)}const Ie=BigInt("0x1a0111ea397fe699ec02408663d4de85aa0d857d89759ad4897d29650fb85f9b409427eb4f49fffd8bfd00000000aaac");const Be=Object.freeze({DST:"BLS_SIG_BLS12381G2_XMD:SHA-256_SSWU_RO_NUL_",encodeDST:"BLS_SIG_BLS12381G2_XMD:SHA-256_SSWU_RO_NUL_",p:F.ORDER,m:2,k:128,expand:"xmd",hash:c.s}),Ce=Se(F.toBytes(R),{infinity:!0,compressed:!0});function _e(e){const t=224&(e=e.slice())[0],n=!!(t>>7&1),r=!!(t>>6&1),i=!!(t>>5&1);return e[0]&=31,{compressed:n,infinity:r,sort:i,value:e}}function Se(e,t){if(224&e[0])throw new Error("setMask: non-empty mask");return t.compressed&&(e[0]|=128),t.infinity&&(e[0]|=64),t.sort&&(e[0]|=32),e}function Qe(e){e.assertValidity();const t=e.equals(Me.G1.ProjectivePoint.ZERO),{x:n,y:r}=e.toAffine();if(t)return Ce.slice();const i=F.ORDER,o=Boolean(r*T/i);return Se((0,f.lq)(n,F.BYTES),{compressed:!0,sort:o})}function ke(e){e.assertValidity();const t=F.BYTES;if(e.equals(Me.G2.ProjectivePoint.ZERO))return(0,f.Id)(Ce,(0,f.lq)(R,t));const{x:n,y:r}=e.toAffine(),{re:i,im:o}=z.reim(n),{re:a,im:s}=z.reim(r),c=Boolean((s>R?s*T:a*T)/F.ORDER&D),u=i;return(0,f.Id)(Se((0,f.lq)(o,t),{sort:c,compressed:!0}),(0,f.lq)(u,t))}const Me=function(e){const{Fp:t,Fr:n,Fp2:r,Fp6:i,Fp12:o}=e.fields,a=(0,f.dJ)(e.params.x);function s(t){const{x:n,y:i}=t,o=n,s=i;let c=o,u=s,l=r.ONE,d=[];for(let t=a-2;t>=0;t--){let n=r.sqr(u),i=r.sqr(l),a=r.multiplyByB(r.mul(i,x)),A=r.mul(a,x),h=r.sub(r.sub(r.sqr(r.add(u,l)),i),n);if(d.push([r.sub(a,n),r.mul(r.sqr(c),x),r.neg(h)]),c=r.div(r.mul(r.mul(r.sub(n,A),c),u),M),u=r.sub(r.sqr(r.div(r.add(n,A),M)),r.mul(r.sqr(a),x)),l=r.mul(n,h),(0,f.GU)(e.params.x,t)){let e=r.sub(u,r.mul(s,l)),t=r.sub(c,r.mul(o,l));d.push([r.sub(r.mul(e,o),r.mul(t,s)),r.neg(e),t]);let n=r.sqr(t),i=r.mul(n,t),a=r.mul(n,c),f=r.add(r.sub(i,r.mul(a,M)),r.mul(r.sqr(e),l));c=r.mul(t,f),u=r.sub(r.mul(r.sub(a,f),e),r.mul(i,u)),l=r.mul(l,i)}}return d}function c(t,n){const{x:i}=e.params,s=n[0],c=n[1];let u=o.ONE;for(let e=0,n=a-2;n>=0;n--,e++){const a=t[e];if(u=o.multiplyBy014(u,a[0],r.mul(a[1],s),r.mul(a[2],c)),(0,f.GU)(i,n)){e+=1;const n=t[e];u=o.multiplyBy014(u,n[0],r.mul(n[1],s),r.mul(n[2],c))}0!==n&&(u=o.sqr(u))}return o.conjugate(u)}const u={randomPrivateKey:()=>{const t=(0,l.Tp)(n.ORDER);return(0,l.qy)(e.randomBytes(t),n.ORDER)},calcPairingPrecomputes:s},d=Q({n:n.ORDER,...e.G1}),A=Object.assign(d,m(d.ProjectivePoint,e.G1.mapToCurve,{...e.htfDefaults,...e.G1.htfDefaults})),h=Q({n:n.ORDER,...e.G2}),p=Object.assign(h,m(h.ProjectivePoint,e.G2.mapToCurve,{...e.htfDefaults,...e.G2.htfDefaults})),{ShortSignature:g}=e.G1,{Signature:y}=e.G2;function b(e,t,n=!0){if(e.equals(A.ProjectivePoint.ZERO)||t.equals(p.ProjectivePoint.ZERO))throw new Error("pairing is not available for ZERO point");e.assertValidity(),t.assertValidity();const r=e.toAffine(),i=c(function(e){const t=e;return t._PPRECOMPUTES||(t._PPRECOMPUTES=s(e.toAffine())),t._PPRECOMPUTES}(t),[r.x,r.y]);return n?o.finalExponentiate(i):i}function v(e){return e instanceof A.ProjectivePoint?e:A.ProjectivePoint.fromHex(e)}function w(e,t){return e instanceof A.ProjectivePoint?e:A.hashToCurve((0,f.qj)("point",e),t)}function E(e){return e instanceof p.ProjectivePoint?e:y.fromHex(e)}function I(e,t){return e instanceof p.ProjectivePoint?e:p.hashToCurve((0,f.qj)("point",e),t)}return A.ProjectivePoint.BASE._setWindowSize(4),{getPublicKey:function(e){return A.ProjectivePoint.fromPrivateKey(e).toRawBytes(!0)},getPublicKeyForShortSignatures:function(e){return p.ProjectivePoint.fromPrivateKey(e).toRawBytes(!0)},sign:function(e,t,n){const r=I(e,n);r.assertValidity();const i=r.multiply(A.normPrivateKeyToScalar(t));return e instanceof p.ProjectivePoint?i:y.toRawBytes(i)},signShortSignature:function(e,t,n){const r=w(e,n);r.assertValidity();const i=r.multiply(A.normPrivateKeyToScalar(t));return e instanceof A.ProjectivePoint?i:g.toRawBytes(i)},verify:function(e,t,n,r){const i=v(n),a=I(t,r),s=A.ProjectivePoint.BASE,c=E(e),u=b(i.negate(),a,!1),l=b(s,c,!1),f=o.finalExponentiate(o.mul(l,u));return o.eql(f,o.ONE)},verifyBatch:function(e,t,n,r){if(!t.length)throw new Error("Expected non-empty messages array");if(n.length!==t.length)throw new Error("Pubkey count should equal msg count");const i=E(e),a=t.map((e=>I(e,r))),s=n.map(v);try{const e=[];for(const t of new Set(a)){const n=a.reduce(((e,n,r)=>n===t?e.add(s[r]):e),A.ProjectivePoint.ZERO);e.push(b(n,t,!1))}e.push(b(A.ProjectivePoint.BASE.negate(),i,!1));const t=e.reduce(((e,t)=>o.mul(e,t)),o.ONE),n=o.finalExponentiate(t);return o.eql(n,o.ONE)}catch{return!1}},verifyShortSignature:function(e,t,n,r){const i=E(n),a=w(t,r),s=p.ProjectivePoint.BASE,c=v(e),u=b(a,i,!1),l=b(c,s.negate(),!1),f=o.finalExponentiate(o.mul(l,u));return o.eql(f,o.ONE)},aggregatePublicKeys:function(e){if(!e.length)throw new Error("Expected non-empty array");const t=e.map(v).reduce(((e,t)=>e.add(t)),A.ProjectivePoint.ZERO);return e[0]instanceof A.ProjectivePoint?(t.assertValidity(),t):t.toRawBytes(!0)},aggregateSignatures:function(e){if(!e.length)throw new Error("Expected non-empty array");const t=e.map(E).reduce(((e,t)=>e.add(t)),p.ProjectivePoint.ZERO);return e[0]instanceof p.ProjectivePoint?(t.assertValidity(),t):y.toRawBytes(t)},aggregateShortSignatures:function(e){if(!e.length)throw new Error("Expected non-empty array");const t=e.map(v).reduce(((e,t)=>e.add(t)),A.ProjectivePoint.ZERO);return e[0]instanceof A.ProjectivePoint?(t.assertValidity(),t):g.toRawBytes(t)},millerLoop:c,pairing:b,G1:A,G2:p,Signature:y,ShortSignature:g,fields:{Fr:n,Fp:t,Fp2:r,Fp6:i,Fp12:o},params:{x:e.params.x,r:e.params.r,G1b:e.G1.b,G2b:e.G2.b},utils:u}}({fields:{Fp:F,Fp2:z,Fp6:te,Fp12:fe,Fr:j},G1:{Fp:F,h:BigInt("0x396c8c005555e1568c00aaab0000aaab"),Gx:BigInt("0x17f1d3a73197d7942695638c4fa9ac0fc3688c4f9774b905a14e3a3f171bac586c55e83ff97a1aeffb3af00adb22c6bb"),Gy:BigInt("0x08b3f481e3aaa0f1a09e30ed741d8ae4fcf5e095d5d00af600db18cb2c04b3edd03cc744a2888ae40caa232946c5e7e1"),a:F.ZERO,b:O,htfDefaults:{...Be,m:1,DST:"BLS_SIG_BLS12381G1_XMD:SHA-256_SSWU_RO_NUL_"},wrapPrivateKey:!0,allowInfinityPoint:!0,isTorsionFree:(e,t)=>{const n=BigInt("0x5f19672fdf76ce51ba69c6076a0f77eaddb3a93be6f89688de17d813620a00022e01fffffffefffe"),r=new e(F.mul(t.px,n),t.py,t.pz);return t.multiplyUnsafe(Me.params.x).negate().multiplyUnsafe(Me.params.x).equals(r)},clearCofactor:(e,t)=>t.multiplyUnsafe(Me.params.x).add(t),mapToCurve:e=>{const{x:t,y:n}=ge(F.create(e[0]));return he(t,n)},fromBytes:e=>{const{compressed:t,infinity:n,sort:r,value:i}=_e(e);if(48===i.length&&t){const e=F.ORDER,t=(0,f.bytesToNumberBE)(i),o=F.create(t&F.MASK);if(n){if(o!==R)throw new Error("G1: non-empty compressed point at infinity");return{x:R,y:R}}const a=F.add(F.pow(o,N),F.create(Me.params.G1b));let s=F.sqrt(a);if(!s)throw new Error("Invalid compressed G1 point");return s*T/e!==BigInt(r)&&(s=F.neg(s)),{x:F.create(o),y:F.create(s)}}if(96!==i.length||t)throw new Error("Invalid point G1, expected 48/96 bytes");{const e=(0,f.bytesToNumberBE)(i.subarray(0,F.BYTES)),t=(0,f.bytesToNumberBE)(i.subarray(F.BYTES));if(n){if(e!==R||t!==R)throw new Error("G1: non-empty point at infinity");return Me.G1.ProjectivePoint.ZERO.toAffine()}return{x:F.create(e),y:F.create(t)}}},toBytes:(e,t,n)=>{const r=t.equals(e.ZERO),{x:i,y:o}=t.toAffine();if(n){if(r)return Ce.slice();const e=F.ORDER,t=Boolean(o*T/e);return Se((0,f.lq)(i,F.BYTES),{compressed:!0,sort:t})}return r?(0,f.Id)(new Uint8Array([64]),new Uint8Array(2*F.BYTES-1)):(0,f.Id)((0,f.lq)(i,F.BYTES),(0,f.lq)(o,F.BYTES))},ShortSignature:{fromHex(e){const{infinity:t,sort:n,value:r}=_e((0,f.qj)("signatureHex",e,48)),i=F.ORDER,o=(0,f.bytesToNumberBE)(r);if(t)return Me.G1.ProjectivePoint.ZERO;const a=F.create(o&F.MASK),s=F.add(F.pow(a,N),F.create(Me.params.G1b));let c=F.sqrt(s);if(!c)throw new Error("Invalid compressed G1 point");const u=BigInt(n);c*T/i!==u&&(c=F.neg(c));const l=Me.G1.ProjectivePoint.fromAffine({x:a,y:c});return l.assertValidity(),l},toRawBytes(e){return Qe(e)},toHex(e){return(0,f.My)(Qe(e))}}},G2:{Fp:z,h:BigInt("0x5d543a95414e7f1091d50792876a202cd91de4547085abaa68a205b2e5a7ddfa628f1cb4d9e82ef21537e293a6691ae1616ec6e786f0c70cf1c38e31c7238e5"),Gx:z.fromBigTuple([BigInt("0x024aa2b2f08f0a91260805272dc51051c6e47ad4fa403b02b4510b647ae3d1770bac0326a805bbefd48056c8c121bdb8"),BigInt("0x13e02b6052719f607dacd3a088274f65596bd0d09920b61ab5da61bbdc7f5049334cf11213945d57e5ac7d055d042b7e")]),Gy:z.fromBigTuple([BigInt("0x0ce5d527727d6e118cc9cdc6da2e351aadfd9baa8cbdd3a76d429a695160d12c923ac9cc3baca289e193548608b82801"),BigInt("0x0606c4a02ea734cc32acd2b02bc28b99cb3e287e85a763af267492ab572e99ab3f370d275cec1da1aaa9075ff05f79be")]),a:z.ZERO,b:z.fromBigTuple([O,O]),hEff:BigInt("0xbc69f08f2ee75b3584c6a0ea91b352888e2a8e9145ad7689986ff031508ffe1329c2f178731db956d82bf015d1212b02ec0ec69d7477c1ae954cbc06689f6a359894c0adebbf6b4e8020005aaa95551"),htfDefaults:{...Be},wrapPrivateKey:!0,allowInfinityPoint:!0,mapToCurve:e=>{const{x:t,y:n}=pe(z.fromBigTuple(e));return Ae(t,n)},isTorsionFree:(e,t)=>t.multiplyUnsafe(Me.params.x).negate().equals(Ee(e,t)),clearCofactor:(e,t)=>{const n=Me.params.x;let r=t.multiplyUnsafe(n).negate(),i=Ee(e,t),o=t.double();return o=function(e,t){const n=t.toAffine(),r=(i=n.x,o=n.y,[z.mul(i,Ie),z.neg(o)]);var i,o;return new e(r[0],r[1],z.ONE)}(e,o),o=o.subtract(i),i=r.add(i),i=i.multiplyUnsafe(n).negate(),o=o.add(i),o=o.subtract(r),o.subtract(t)},fromBytes:e=>{const{compressed:t,infinity:n,sort:r,value:i}=_e(e);if(!t&&!n&&r||!t&&n&&r||r&&n&&t)throw new Error("Invalid encoding flag: "+(224&e[0]));const o=F.BYTES,a=(e,t,n)=>(0,f.bytesToNumberBE)(e.slice(t,n));if(96===i.length&&t){const e=Me.params.G2b,t=F.ORDER;if(n){if(i.reduce(((e,t)=>0!==e?t+1:t),0)>0)throw new Error("Invalid compressed G2 point");return{x:z.ZERO,y:z.ZERO}}const s=a(i,0,o),c=a(i,o,2*o),u=z.create({c0:F.create(c),c1:F.create(s)}),l=z.add(z.pow(u,N),e);let f=z.sqrt(l);const d=f.c1===R?f.c0*T/t:f.c1*T/t?D:R;return f=r&&d>0?f:z.neg(f),{x:u,y:f}}if(192!==i.length||t)throw new Error("Invalid point G2, expected 96/192 bytes");{if(n){if(i.reduce(((e,t)=>0!==e?t+1:t),0)>0)throw new Error("Invalid uncompressed G2 point");return{x:z.ZERO,y:z.ZERO}}const e=a(i,0,o),t=a(i,o,2*o),r=a(i,2*o,3*o),s=a(i,3*o,4*o);return{x:z.fromBigTuple([t,e]),y:z.fromBigTuple([s,r])}}},toBytes:(e,t,n)=>{const{BYTES:r,ORDER:i}=F,o=t.equals(e.ZERO),{x:a,y:s}=t.toAffine();if(n){if(o)return(0,f.Id)(Ce,(0,f.lq)(R,r));const e=Boolean(s.c1===R?s.c0*T/i:s.c1*T/i);return(0,f.Id)(Se((0,f.lq)(a.c1,r),{compressed:!0,sort:e}),(0,f.lq)(a.c0,r))}{if(o)return(0,f.Id)(new Uint8Array([64]),new Uint8Array(4*r-1));const{re:e,im:t}=z.reim(a),{re:n,im:i}=z.reim(s);return(0,f.Id)((0,f.lq)(t,r),(0,f.lq)(e,r),(0,f.lq)(i,r),(0,f.lq)(n,r))}},Signature:{fromHex(e){const{infinity:t,sort:n,value:r}=_e((0,f.qj)("signatureHex",e)),i=F.ORDER,o=r.length/2;if(48!==o&&96!==o)throw new Error("Invalid compressed signature length, must be 96 or 192");const a=(0,f.bytesToNumberBE)(r.slice(0,o)),s=(0,f.bytesToNumberBE)(r.slice(o));if(t)return Me.G2.ProjectivePoint.ZERO;const c=F.create(a&F.MASK),u=F.create(s),l=z.create({c0:u,c1:c}),d=z.add(z.pow(l,N),Me.params.G2b);let A=z.sqrt(d);if(!A)throw new Error("Failed to find a square root");const{re:h,im:p}=z.reim(A),g=BigInt(n);(p>R&&p*T/i!==g||p===R&&h*T/i!==g)&&(A=z.neg(A));const y=Me.G2.ProjectivePoint.fromAffine({x:l,y:A});return y.assertValidity(),y},toRawBytes(e){return ke(e)},toHex(e){return(0,f.My)(ke(e))}}},params:{x:ie,r:j.ORDER},htfDefaults:Be,hash:c.s,randomBytes:u.po});function xe(e,t,n){const r="string"==typeof e?e:(0,a.nj)(e),i="string"==typeof t?t:(0,a.nj)(t),o="string"==typeof n?n:(0,a.nj)(n);return Me.verifyShortSignature(i,o,r)}var Re=n(9345);class De extends i.Y{constructor(e){super(`Invalid certificate: ${e}`)}}const Te={Empty:0,Fork:1,Labeled:2,Leaf:3,Pruned:4};function Ne(e,t){if(e.byteLength!==t.byteLength)return!1;const n=new Uint8Array(e),r=new Uint8Array(t);for(let e=0;ef)throw new De("Certificate is signed more than 5 minutes in the future. Certificate time: "+d.toISOString()+" Current time: "+new Date(u).toISOString());try{o=await this._blsVerify(new Uint8Array(r),new Uint8Array(n),new Uint8Array(i))}catch(e){o=!1}if(!o)throw new De("Signature verification failed")}async _checkDelegationAndGetKey(e){if(!e)return this._rootKey;const t=await Oe.createUnverified({certificate:e.certificate,rootKey:this._rootKey,canisterId:this._canisterId,blsVerify:this._blsVerify,maxAgeInMinutes:1/0});if(t.cert.delegation)throw new De("Delegation certificates cannot be nested");if(await t.verify(),!He({canisterId:this._canisterId,subnetId:s.p.fromUint8Array(new Uint8Array(e.subnet_id)),tree:t.cert.tree}))throw new De(`Canister ${this._canisterId} not in range of delegations for subnet 0x${(0,a.nj)(e.subnet_id)}`);const n=t.lookup(["subnet",e.subnet_id,"public_key"]);if(!n)throw new Error(`Could not find subnet key for subnet 0x${(0,a.nj)(e.subnet_id)}`);return n}}const Le=(0,a.aD)("308182301d060d2b0601040182dc7c0503010201060c2b0601040182dc7c05030201036100"),Pe=96;function Ue(e){return e instanceof ArrayBuffer?e:e instanceof Uint8Array?e.buffer:void 0}async function Fe(e){switch(e[0]){case Te.Empty:return(0,o.tW)(je("ic-hashtree-empty"));case Te.Pruned:return e[1];case Te.Leaf:return(0,o.tW)((0,a.xW)(je("ic-hashtree-leaf"),e[1]));case Te.Labeled:return(0,o.tW)((0,a.xW)(je("ic-hashtree-labeled"),e[1],await Fe(e[2])));case Te.Fork:return(0,o.tW)((0,a.xW)(je("ic-hashtree-fork"),await Fe(e[1]),await Fe(e[2])));default:throw new Error("unreachable")}}function je(e){const t=new Uint8Array([e.length]),n=(new TextEncoder).encode(e);return(0,a.xW)(t,n)}function qe(e,t){if(0===e.length)switch(t[0]){case Te.Leaf:if(!t[1])throw new Error("Invalid tree structure for leaf");return t[1]instanceof ArrayBuffer?t[1]:t[1]instanceof Uint8Array?t[1].buffer:t[1];case Te.Fork:default:return t}const n=function(e,t){if(0!==t.length)for(const n of t)if(n[0]===Te.Labeled&&Ne(e,n[1]))return n[2]}("string"==typeof e[0]?(new TextEncoder).encode(e[0]):e[0],Ge(t));if(n)return qe(e.slice(1),n)}function Ge(e){switch(e[0]){case Te.Empty:return[];case Te.Fork:return Ge(e[1]).concat(Ge(e[2]));default:return[e]}}function He(e){const{canisterId:t,subnetId:n,tree:i}=e,o=qe(["subnet",n.toUint8Array(),"canister_ranges"],i);if(!(o&&o instanceof ArrayBuffer))throw new Error(`Could not find canister ranges for subnet ${n}`);return r.D4(o).map((e=>[s.p.fromUint8Array(e[0]),s.p.fromUint8Array(e[1])])).some((e=>e[0].ltEq(t)&&e[1].gtEq(t)))}},7857:function(e,t,n){"use strict";n.d(t,{Y:function(){return r}});class r extends Error{constructor(e){super(e),this.message=e,Object.setPrototypeOf(this,r.prototype)}}},4141:function(e,t,n){"use strict";n.d(t,{Gb:function(){return l},tW:function(){return s},uF:function(){return f}});var r=n(4664),i=n(7516),o=n(8226),a=n(2338);function s(e){return(0,a.Nn)(o.s.create().update(new Uint8Array(e)).digest())}function c(e){if(e instanceof i.Tagged)return c(e.value);if("string"==typeof e)return u(e);if("number"==typeof e)return s((0,r.kk)(e));if(e instanceof ArrayBuffer||ArrayBuffer.isView(e))return s(e);if(Array.isArray(e)){const t=e.map(c);return s((0,a.xW)(...t))}if(e&&"object"==typeof e&&e._isPrincipal)return s(e.toUint8Array());if("object"==typeof e&&null!==e&&"function"==typeof e.toHash)return c(e.toHash());if("object"==typeof e)return f(e);if("bigint"==typeof e)return s((0,r.kk)(e));throw Object.assign(new Error(`Attempt to hash a value of unsupported type: ${e}`),{value:e})}const u=e=>s((new TextEncoder).encode(e));function l(e){return f(e)}function f(e){const t=Object.entries(e).filter((([,e])=>void 0!==e)).map((([e,t])=>[u(e),c(t)])).sort((([e],[t])=>(0,a.UD)(e,t)));return s((0,a.xW)(...t.map((e=>(0,a.xW)(...e)))))}},2338:function(e,t,n){"use strict";function r(...e){const t=new Uint8Array(e.reduce(((e,t)=>e+t.byteLength),0));let n=0;for(const r of e)t.set(new Uint8Array(r),n),n+=r.byteLength;return t.buffer}function i(e){return[...new Uint8Array(e)].map((e=>e.toString(16).padStart(2,"0"))).join("")}n.d(t,{HA:function(){return c},Nn:function(){return u},UD:function(){return s},aD:function(){return a},em:function(){return l},nj:function(){return i},xW:function(){return r}});const o=new RegExp(/^[0-9a-fA-F]+$/);function a(e){if(!o.test(e))throw new Error("Invalid hexadecimal string.");const t=[...e].reduce(((e,t,n)=>(e[n/2|0]=(e[n/2|0]||"")+t,e)),[]).map((e=>Number.parseInt(e,16)));return new Uint8Array(t).buffer}function s(e,t){if(e.byteLength!==t.byteLength)return e.byteLength-t.byteLength;const n=new Uint8Array(e),r=new Uint8Array(t);for(let e=0;e(0,r.Ui)(new r.Ki(e)),o=e=>{const t=i(e);return new Date(Number(t)/1e6)}},4664:function(e,t,n){"use strict";n.d(t,{Ih:function(){return r},Ki:function(){return a},em:function(){return c},Ui:function(){return h},kk:function(){return A}});var r={};n.r(r),n.d(r,{Bool:function(){return ee},BoolClass:function(){return k},ConstructType:function(){return _},Empty:function(){return Z},EmptyClass:function(){return S},FixedIntClass:function(){return O},FixedNatClass:function(){return L},Float32:function(){return oe},Float64:function(){return ae},FloatClass:function(){return N},Func:function(){return Ee},FuncClass:function(){return K},Int:function(){return re},Int16:function(){return ce},Int32:function(){return ue},Int64:function(){return le},Int8:function(){return se},IntClass:function(){return D},Nat:function(){return ie},Nat16:function(){return de},Nat32:function(){return Ae},Nat64:function(){return he},Nat8:function(){return fe},NatClass:function(){return T},Null:function(){return te},NullClass:function(){return M},Opt:function(){return me},OptClass:function(){return U},PrimitiveType:function(){return C},Principal:function(){return pe},PrincipalClass:function(){return Y},Rec:function(){return we},RecClass:function(){return G},Record:function(){return be},RecordClass:function(){return F},Reserved:function(){return $},ReservedClass:function(){return x},Service:function(){return Ie},ServiceClass:function(){return z},Text:function(){return ne},TextClass:function(){return R},Tuple:function(){return ge},TupleClass:function(){return j},Type:function(){return B},Unknown:function(){return X},UnknownClass:function(){return Q},Variant:function(){return ve},VariantClass:function(){return q},Vec:function(){return ye},VecClass:function(){return P},Visitor:function(){return I},decode:function(){return W},encode:function(){return J}});var i=n(2336);function o(...e){const t=new Uint8Array(e.reduce(((e,t)=>e+t.byteLength),0));let n=0;for(const r of e)t.set(new Uint8Array(r),n),n+=r.byteLength;return t}class a{constructor(e,t=(null==e?void 0:e.byteLength)||0){this._buffer=c(e||new ArrayBuffer(0)),this._view=new Uint8Array(this._buffer,0,t)}get buffer(){return c(this._view.slice())}get byteLength(){return this._view.byteLength}read(e){const t=this._view.subarray(0,e);return this._view=this._view.subarray(e),t.slice().buffer}readUint8(){const e=this._view[0];return this._view=this._view.subarray(1),e}write(e){const t=new Uint8Array(e),n=this._view.byteLength;this._view.byteOffset+this._view.byteLength+t.byteLength>=this._buffer.byteLength?this.alloc(t.byteLength):this._view=new Uint8Array(this._buffer,this._view.byteOffset,this._view.byteLength+t.byteLength),this._view.set(t,n)}get end(){return 0===this._view.byteLength}alloc(e){const t=new ArrayBuffer(1.2*(this._buffer.byteLength+e)|0),n=new Uint8Array(t,0,this._view.byteLength+e);n.set(this._view),this._buffer=t,this._view=n}}function s(e){return new DataView(e.buffer,e.byteOffset,e.byteLength).buffer}function c(e){return e instanceof Uint8Array?s(e):e instanceof ArrayBuffer?e:Array.isArray(e)?s(new Uint8Array(e)):"buffer"in e?c(e.buffer):s(new Uint8Array(e))}function u(e){if(/^_\d+_$/.test(e)||/^_0x[0-9a-fA-F]+_$/.test(e)){const t=+e.slice(1,-1);if(Number.isSafeInteger(t)&&t>=0&&t<2**32)return t}return function(e){const t=(new TextEncoder).encode(e);let n=0;for(const e of t)n=(223*n+e)%2**32;return n}(e)}function l(){throw new Error("unexpected end of buffer")}function f(e,t){return e.byteLength=128);return r}function p(e){"number"==typeof e&&(e=BigInt(e));const t=e=0;e--)i=i*BigInt(128)+BigInt(128-(127&r[e])-1);return-i-BigInt(1)}function y(e,t){e=BigInt(e);const n=new a(new ArrayBuffer(Math.min(1,t)),0);let r=0,i=BigInt(256),o=BigInt(0),s=Number(e%i);for(n.write(new Uint8Array([s]));++rn(e,t[r])))}class E{constructor(){this._typs=[],this._idx=new Map}has(e){return this._idx.has(e.name)}add(e,t){const n=this._typs.length;this._idx.set(e.name,n),this._typs.push(t)}merge(e,t){const n=this._idx.get(e.name),r=this._idx.get(t);if(void 0===n)throw new Error("Missing type index for "+e);if(void 0===r)throw new Error("Missing type index for "+t);this._typs[n]=this._typs[r],this._typs.splice(r,1),this._idx.delete(t)}encode(){const e=A(this._typs.length),t=o(...this._typs);return o(e,t)}indexOf(e){if(!this._idx.has(e))throw new Error("Missing type index for "+e);return p(this._idx.get(e)||0)}}class I{visitType(e,t){throw new Error("Not implemented")}visitPrimitive(e,t){return this.visitType(e,t)}visitEmpty(e,t){return this.visitPrimitive(e,t)}visitBool(e,t){return this.visitPrimitive(e,t)}visitNull(e,t){return this.visitPrimitive(e,t)}visitReserved(e,t){return this.visitPrimitive(e,t)}visitText(e,t){return this.visitPrimitive(e,t)}visitNumber(e,t){return this.visitPrimitive(e,t)}visitInt(e,t){return this.visitNumber(e,t)}visitNat(e,t){return this.visitNumber(e,t)}visitFloat(e,t){return this.visitPrimitive(e,t)}visitFixedInt(e,t){return this.visitNumber(e,t)}visitFixedNat(e,t){return this.visitNumber(e,t)}visitPrincipal(e,t){return this.visitPrimitive(e,t)}visitConstruct(e,t){return this.visitType(e,t)}visitVec(e,t,n){return this.visitConstruct(e,n)}visitOpt(e,t,n){return this.visitConstruct(e,n)}visitRecord(e,t,n){return this.visitConstruct(e,n)}visitTuple(e,t,n){const r=t.map(((e,t)=>[`_${t}_`,e]));return this.visitRecord(e,r,n)}visitVariant(e,t,n){return this.visitConstruct(e,n)}visitRec(e,t,n){return this.visitConstruct(t,n)}visitFunc(e,t){return this.visitConstruct(e,t)}visitService(e,t){return this.visitConstruct(e,t)}}class B{display(){return this.name}valueToString(e){return V(e)}buildTypeTable(e){e.has(this)||this._buildTypeTableImpl(e)}}class C extends B{checkType(e){if(this.name!==e.name)throw new Error(`type mismatch: type on the wire ${e.name}, expect type ${this.name}`);return e}_buildTypeTableImpl(e){}}class _ extends B{checkType(e){if(e instanceof G){const t=e.getType();if(void 0===t)throw new Error("type mismatch with uninitialized type");return t}throw new Error(`type mismatch: type on the wire ${e.name}, expect type ${this.name}`)}encodeType(e){return e.indexOf(this.name)}}class S extends C{accept(e,t){return e.visitEmpty(this,t)}covariant(e){throw new Error(`Invalid ${this.display()} argument: ${V(e)}`)}encodeValue(){throw new Error("Empty cannot appear as a function argument")}valueToString(){throw new Error("Empty cannot appear as a value")}encodeType(){return p(-17)}decodeValue(){throw new Error("Empty cannot appear as an output")}get name(){return"empty"}}class Q extends B{checkType(e){throw new Error("Method not implemented for unknown.")}accept(e,t){throw e.visitType(this,t)}covariant(e){throw new Error(`Invalid ${this.display()} argument: ${V(e)}`)}encodeValue(){throw new Error("Unknown cannot appear as a function argument")}valueToString(){throw new Error("Unknown cannot appear as a value")}encodeType(){throw new Error("Unknown cannot be serialized")}decodeValue(e,t){let n,r=t.decodeValue(e,t);return Object(r)!==r&&(r=Object(r)),n=t instanceof G?()=>t.getType():()=>t,Object.defineProperty(r,"type",{value:n,writable:!0,enumerable:!1,configurable:!0}),r}_buildTypeTableImpl(){throw new Error("Unknown cannot be serialized")}get name(){return"Unknown"}}class k extends C{accept(e,t){return e.visitBool(this,t)}covariant(e){if("boolean"==typeof e)return!0;throw new Error(`Invalid ${this.display()} argument: ${V(e)}`)}encodeValue(e){return new Uint8Array([e?1:0])}encodeType(){return p(-2)}decodeValue(e,t){switch(this.checkType(t),d(e)){case 0:return!1;case 1:return!0;default:throw new Error("Boolean value out of range")}}get name(){return"bool"}}class M extends C{accept(e,t){return e.visitNull(this,t)}covariant(e){if(null===e)return!0;throw new Error(`Invalid ${this.display()} argument: ${V(e)}`)}encodeValue(){return new ArrayBuffer(0)}encodeType(){return p(-1)}decodeValue(e,t){return this.checkType(t),null}get name(){return"null"}}class x extends C{accept(e,t){return e.visitReserved(this,t)}covariant(e){return!0}encodeValue(){return new ArrayBuffer(0)}encodeType(){return p(-16)}decodeValue(e,t){return t.name!==this.name&&t.decodeValue(e,t),null}get name(){return"reserved"}}class R extends C{accept(e,t){return e.visitText(this,t)}covariant(e){if("string"==typeof e)return!0;throw new Error(`Invalid ${this.display()} argument: ${V(e)}`)}encodeValue(e){const t=(new TextEncoder).encode(e);return o(A(t.byteLength),t)}encodeType(){return p(-15)}decodeValue(e,t){this.checkType(t);const n=h(e),r=f(e,Number(n));return new TextDecoder("utf8",{fatal:!0}).decode(r)}get name(){return"text"}valueToString(e){return'"'+e+'"'}}class D extends C{accept(e,t){return e.visitInt(this,t)}covariant(e){if("bigint"==typeof e||Number.isInteger(e))return!0;throw new Error(`Invalid ${this.display()} argument: ${V(e)}`)}encodeValue(e){return p(e)}encodeType(){return p(-4)}decodeValue(e,t){return this.checkType(t),g(e)}get name(){return"int"}valueToString(e){return e.toString()}}class T extends C{accept(e,t){return e.visitNat(this,t)}covariant(e){if("bigint"==typeof e&&e>=BigInt(0)||Number.isInteger(e)&&e>=0)return!0;throw new Error(`Invalid ${this.display()} argument: ${V(e)}`)}encodeValue(e){return A(e)}encodeType(){return p(-3)}decodeValue(e,t){return this.checkType(t),h(e)}get name(){return"nat"}valueToString(e){return e.toString()}}class N extends C{constructor(e){if(super(),this._bits=e,32!==e&&64!==e)throw new Error("not a valid float type")}accept(e,t){return e.visitFloat(this,t)}covariant(e){if("number"==typeof e||e instanceof Number)return!0;throw new Error(`Invalid ${this.display()} argument: ${V(e)}`)}encodeValue(e){const t=new ArrayBuffer(this._bits/8),n=new DataView(t);return 32===this._bits?n.setFloat32(0,e,!0):n.setFloat64(0,e,!0),t}encodeType(){return p(32===this._bits?-13:-14)}decodeValue(e,t){this.checkType(t);const n=f(e,this._bits/8),r=new DataView(n);return 32===this._bits?r.getFloat32(0,!0):r.getFloat64(0,!0)}get name(){return"float"+this._bits}valueToString(e){return e.toString()}}class O extends C{constructor(e){super(),this._bits=e}accept(e,t){return e.visitFixedInt(this,t)}covariant(e){const t=b(this._bits-1)*BigInt(-1),n=b(this._bits-1)-BigInt(1);let r=!1;if("bigint"==typeof e)r=e>=t&&e<=n;else if(Number.isInteger(e)){const i=BigInt(e);r=i>=t&&i<=n}else r=!1;if(r)return!0;throw new Error(`Invalid ${this.display()} argument: ${V(e)}`)}encodeValue(e){return y(e,this._bits/8)}encodeType(){return p(-9-(Math.log2(this._bits)-3))}decodeValue(e,t){this.checkType(t);const n=function(e,t){let n=m(e,t);const r=BigInt(2)**(BigInt(8)*BigInt(t-1)+BigInt(7));return n>=r&&(n-=r*BigInt(2)),n}(e,this._bits/8);return this._bits<=32?Number(n):n}get name(){return`int${this._bits}`}valueToString(e){return e.toString()}}class L extends C{constructor(e){super(),this._bits=e}accept(e,t){return e.visitFixedNat(this,t)}covariant(e){const t=b(this._bits);let n=!1;if(n="bigint"==typeof e&&e>=BigInt(0)?e=0)&&BigInt(e){try{return this._type.covariant(e)}catch(e){throw new Error(`Invalid ${this.display()} argument: \n\nindex ${t} -> ${e.message}`)}})))return!0;throw new Error(`Invalid ${this.display()} argument: ${V(e)}`)}encodeValue(e){const t=A(e.length);if(this._blobOptimization)return o(t,new Uint8Array(e));if(ArrayBuffer.isView(e))return o(t,new Uint8Array(e.buffer));const n=new a(new ArrayBuffer(t.byteLength+e.length),0);n.write(t);for(const t of e){const e=this._type.encodeValue(t);n.write(new Uint8Array(e))}return n.buffer}_buildTypeTableImpl(e){this._type.buildTypeTable(e);const t=p(-19),n=this._type.encodeType(e);e.add(this,o(t,n))}decodeValue(e,t){const n=this.checkType(t);if(!(n instanceof P))throw new Error("Not a vector type");const r=Number(h(e));if(this._type instanceof L){if(8==this._type._bits)return new Uint8Array(e.read(r));if(16==this._type._bits)return new Uint16Array(e.read(2*r));if(32==this._type._bits)return new Uint32Array(e.read(4*r));if(64==this._type._bits)return new BigUint64Array(e.read(8*r))}if(this._type instanceof O){if(8==this._type._bits)return new Int8Array(e.read(r));if(16==this._type._bits)return new Int16Array(e.read(2*r));if(32==this._type._bits)return new Int32Array(e.read(4*r));if(64==this._type._bits)return new BigInt64Array(e.read(8*r))}const i=[];for(let t=0;tthis._type.valueToString(e))).join("; ")+"}"}}class U extends _{constructor(e){super(),this._type=e}accept(e,t){return e.visitOpt(this,this._type,t)}covariant(e){try{if(Array.isArray(e)&&(0===e.length||1===e.length&&this._type.covariant(e[0])))return!0}catch(t){throw new Error(`Invalid ${this.display()} argument: ${V(e)} \n\n-> ${t.message}`)}throw new Error(`Invalid ${this.display()} argument: ${V(e)}`)}encodeValue(e){return 0===e.length?new Uint8Array([0]):o(new Uint8Array([1]),this._type.encodeValue(e[0]))}_buildTypeTableImpl(e){this._type.buildTypeTable(e);const t=p(-18),n=this._type.encodeType(e);e.add(this,o(t,n))}decodeValue(e,t){const n=this.checkType(t);if(!(n instanceof U))throw new Error("Not an option type");switch(d(e)){case 0:return[];case 1:return[this._type.decodeValue(e,n._type)];default:throw new Error("Not an option value")}}get name(){return`opt ${this._type.name}`}display(){return`opt ${this._type.display()}`}valueToString(e){return 0===e.length?"null":`opt ${this._type.valueToString(e[0])}`}}class F extends _{constructor(e={}){super(),this._fields=Object.entries(e).sort(((e,t)=>u(e[0])-u(t[0])))}accept(e,t){return e.visitRecord(this,this._fields,t)}tryAsTuple(){const e=[];for(let t=0;t{if(!e.hasOwnProperty(t))throw new Error(`Record is missing key "${t}".`);try{return n.covariant(e[t])}catch(e){throw new Error(`Invalid ${this.display()} argument: \n\nfield ${t} -> ${e.message}`)}})))return!0;throw new Error(`Invalid ${this.display()} argument: ${V(e)}`)}encodeValue(e){const t=this._fields.map((([t])=>e[t]));return o(...w(this._fields,t,(([,e],t)=>e.encodeValue(t))))}_buildTypeTableImpl(e){this._fields.forEach((([t,n])=>n.buildTypeTable(e)));const t=p(-20),n=A(this._fields.length),r=this._fields.map((([t,n])=>o(A(u(t)),n.encodeType(e))));e.add(this,o(t,n,o(...r)))}decodeValue(e,t){const n=this.checkType(t);if(!(n instanceof F))throw new Error("Not a record type");const r={};let i=0,o=0;for(;o=this._fields.length){a.decodeValue(e,a),o++;continue}const[s,c]=this._fields[i],l=u(this._fields[i][0]),f=u(t);if(l===f)r[s]=c.decodeValue(e,a),i++,o++;else if(f>l){if(!(c instanceof U||c instanceof x))throw new Error("Cannot find required field "+s);r[s]=[],i++}else a.decodeValue(e,a),o++}for(const[e,t]of this._fields.slice(i)){if(!(t instanceof U||t instanceof x))throw new Error("Cannot find required field "+e);r[e]=[]}return r}get name(){return`record {${this._fields.map((([e,t])=>e+":"+t.name)).join("; ")}}`}display(){return`record {${this._fields.map((([e,t])=>e+":"+t.display())).join("; ")}}`}valueToString(e){const t=this._fields.map((([t])=>e[t]));return`record {${w(this._fields,t,(([e,t],n)=>e+"="+t.valueToString(n))).join("; ")}}`}}class j extends F{constructor(e){const t={};e.forEach(((e,n)=>t["_"+n+"_"]=e)),super(t),this._components=e}accept(e,t){return e.visitTuple(this,this._components,t)}covariant(e){if(Array.isArray(e)&&e.length>=this._fields.length&&this._components.every(((t,n)=>{try{return t.covariant(e[n])}catch(e){throw new Error(`Invalid ${this.display()} argument: \n\nindex ${n} -> ${e.message}`)}})))return!0;throw new Error(`Invalid ${this.display()} argument: ${V(e)}`)}encodeValue(e){return o(...w(this._components,e,((e,t)=>e.encodeValue(t))))}decodeValue(e,t){const n=this.checkType(t);if(!(n instanceof j))throw new Error("not a tuple type");if(n._components.length=this._components.length?i.decodeValue(e,i):r.push(this._components[t].decodeValue(e,i));return r}display(){return`record {${this._components.map((e=>e.display())).join("; ")}}`}valueToString(e){return`record {${w(this._components,e,((e,t)=>e.valueToString(t))).join("; ")}}`}}class q extends _{constructor(e={}){super(),this._fields=Object.entries(e).sort(((e,t)=>u(e[0])-u(t[0])))}accept(e,t){return e.visitVariant(this,this._fields,t)}covariant(e){if("object"==typeof e&&1===Object.entries(e).length&&this._fields.every((([t,n])=>{try{return!e.hasOwnProperty(t)||n.covariant(e[t])}catch(e){throw new Error(`Invalid ${this.display()} argument: \n\nvariant ${t} -> ${e.message}`)}})))return!0;throw new Error(`Invalid ${this.display()} argument: ${V(e)}`)}encodeValue(e){for(let t=0;t{t.buildTypeTable(e)}));const t=p(-21),n=A(this._fields.length),r=this._fields.map((([t,n])=>o(A(u(t)),n.encodeType(e))));e.add(this,o(t,n,...r))}decodeValue(e,t){const n=this.checkType(t);if(!(n instanceof q))throw new Error("Not a variant type");const r=Number(h(e));if(r>=n._fields.length)throw Error("Invalid variant index: "+r);const[i,o]=n._fields[r];for(const[t,n]of this._fields)if(u(i)===u(t)){const r=n.decodeValue(e,o);return{[t]:r}}throw new Error("Cannot find field hash "+i)}get name(){return`variant {${this._fields.map((([e,t])=>e+":"+t.name)).join("; ")}}`}display(){return`variant {${this._fields.map((([e,t])=>e+("null"===t.name?"":`:${t.display()}`))).join("; ")}}`}valueToString(e){for(const[t,n]of this._fields)if(e.hasOwnProperty(t)){const r=n.valueToString(e[t]);return"null"===r?`variant {${t}}`:`variant {${t}=${r}}`}throw new Error("Variant has no data: "+e)}}class G extends _{constructor(){super(...arguments),this._id=G._counter++,this._type=void 0}accept(e,t){if(!this._type)throw Error("Recursive type uninitialized.");return e.visitRec(this,this._type,t)}fill(e){this._type=e}getType(){return this._type}covariant(e){if(this._type&&this._type.covariant(e))return!0;throw new Error(`Invalid ${this.display()} argument: ${V(e)}`)}encodeValue(e){if(!this._type)throw Error("Recursive type uninitialized.");return this._type.encodeValue(e)}_buildTypeTableImpl(e){if(!this._type)throw Error("Recursive type uninitialized.");e.add(this,new Uint8Array([])),this._type.buildTypeTable(e),e.merge(this,this._type.name)}decodeValue(e,t){if(!this._type)throw Error("Recursive type uninitialized.");return this._type.decodeValue(e,t)}get name(){return`rec_${this._id}`}display(){if(!this._type)throw Error("Recursive type uninitialized.");return`μ${this.name}.${this._type.name}`}valueToString(e){if(!this._type)throw Error("Recursive type uninitialized.");return this._type.valueToString(e)}}function H(e){if(1!==d(e))throw new Error("Cannot decode principal");const t=Number(h(e));return i.p.fromUint8Array(new Uint8Array(f(e,t)))}G._counter=0;class Y extends C{accept(e,t){return e.visitPrincipal(this,t)}covariant(e){if(e&&e._isPrincipal)return!0;throw new Error(`Invalid ${this.display()} argument: ${V(e)}`)}encodeValue(e){const t=e.toUint8Array(),n=A(t.byteLength);return o(new Uint8Array([1]),n,t)}encodeType(){return p(-24)}decodeValue(e,t){return this.checkType(t),H(e)}get name(){return"principal"}valueToString(e){return`${this.name} "${e.toText()}"`}}class K extends _{constructor(e,t,n=[]){super(),this.argTypes=e,this.retTypes=t,this.annotations=n}static argsToString(e,t){if(e.length!==t.length)throw new Error("arity mismatch");return"("+e.map(((e,n)=>e.valueToString(t[n]))).join(", ")+")"}accept(e,t){return e.visitFunc(this,t)}covariant(e){if(Array.isArray(e)&&2===e.length&&e[0]&&e[0]._isPrincipal&&"string"==typeof e[1])return!0;throw new Error(`Invalid ${this.display()} argument: ${V(e)}`)}encodeValue([e,t]){const n=e.toUint8Array(),r=A(n.byteLength),i=o(new Uint8Array([1]),r,n),a=(new TextEncoder).encode(t),s=A(a.byteLength);return o(new Uint8Array([1]),i,s,a)}_buildTypeTableImpl(e){this.argTypes.forEach((t=>t.buildTypeTable(e))),this.retTypes.forEach((t=>t.buildTypeTable(e)));const t=p(-22),n=A(this.argTypes.length),r=o(...this.argTypes.map((t=>t.encodeType(e)))),i=A(this.retTypes.length),a=o(...this.retTypes.map((t=>t.encodeType(e)))),s=A(this.annotations.length),c=o(...this.annotations.map((e=>this.encodeAnnotation(e))));e.add(this,o(t,n,r,i,a,s,c))}decodeValue(e){if(1!==d(e))throw new Error("Cannot decode function reference");const t=H(e),n=f(e,Number(h(e)));return[t,new TextDecoder("utf8",{fatal:!0}).decode(n)]}get name(){return`(${this.argTypes.map((e=>e.name)).join(", ")}) -> (${this.retTypes.map((e=>e.name)).join(", ")})${" "+this.annotations.join(" ")}`}valueToString([e,t]){return`func "${e.toText()}".${t}`}display(){return`(${this.argTypes.map((e=>e.display())).join(", ")}) → (${this.retTypes.map((e=>e.display())).join(", ")})${" "+this.annotations.join(" ")}`}encodeAnnotation(e){if("query"===e)return new Uint8Array([1]);if("oneway"===e)return new Uint8Array([2]);if("composite_query"===e)return new Uint8Array([3]);throw new Error("Illegal function annotation")}}class z extends _{constructor(e){super(),this._fields=Object.entries(e).sort(((e,t)=>e[0]t[0]?1:0))}accept(e,t){return e.visitService(this,t)}covariant(e){if(e&&e._isPrincipal)return!0;throw new Error(`Invalid ${this.display()} argument: ${V(e)}`)}encodeValue(e){const t=e.toUint8Array(),n=A(t.length);return o(new Uint8Array([1]),n,t)}_buildTypeTableImpl(e){this._fields.forEach((([t,n])=>n.buildTypeTable(e)));const t=p(-23),n=A(this._fields.length),r=this._fields.map((([t,n])=>{const r=(new TextEncoder).encode(t);return o(A(r.length),r,n.encodeType(e))}));e.add(this,o(t,n,...r))}decodeValue(e){return H(e)}get name(){return`service {${this._fields.map((([e,t])=>e+":"+t.name)).join("; ")}}`}valueToString(e){return`service "${e.toText()}"`}}function V(e){const t=JSON.stringify(e,((e,t)=>"bigint"==typeof t?`BigInt(${t})`:t));return t&&t.length>400?t.substring(0,397)+"...":t}function J(e,t){if(t.lengthe.buildTypeTable(n)));const r=(new TextEncoder).encode(v),i=n.encode(),a=A(t.length),s=o(...e.map((e=>e.encodeType(n)))),c=o(...w(e,t,((e,t)=>{try{e.covariant(t)}catch(e){throw new Error(e.message+"\n\n")}return e.encodeValue(t)})));return o(r,i,a,s,c)}function W(e,t){const n=new a(t);if(t.byteLength=Math.pow(2,32))throw new Error("field id out of 32-bit range");if("number"==typeof i&&i>=t)throw new Error("field id collision or not sorted");i=t;const n=Number(g(e));r.push([t,n])}t.push([n,r]);break}case-22:{const r=[];let i=Number(h(e));for(;i--;)r.push(Number(g(e)));const o=[];let a=Number(h(e));for(;a--;)o.push(Number(g(e)));const s=[];let c=Number(h(e));for(;c--;)switch(Number(h(e))){case 1:s.push("query");break;case 2:s.push("oneway");break;case 3:s.push("composite_query");break;default:throw new Error("unknown annotation")}t.push([n,[r,o,s]]);break}case-23:{let r=Number(h(e));const i=[];for(;r--;){const t=Number(h(e)),n=(new TextDecoder).decode(f(e,t)),r=g(e);i.push([n,r])}t.push([n,i]);break}default:throw new Error("Illegal op_code: "+n)}}const r=[],i=Number(h(e));for(let t=0;twe()));function u(e){if(e<-24)throw new Error("future value not supported");if(e<0)switch(e){case-1:return te;case-2:return ee;case-3:return ie;case-4:return re;case-5:return fe;case-6:return de;case-7:return Ae;case-8:return he;case-9:return se;case-10:return ce;case-11:return ue;case-12:return le;case-13:return oe;case-14:return ae;case-15:return ne;case-16:return $;case-17:return Z;case-24:return pe;default:throw new Error("Illegal op_code: "+e)}if(e>=o.length)throw new Error("type index out of range");return c[e]}function l(e){switch(e[0]){case-19:return ye(u(e[1]));case-18:return me(u(e[1]));case-20:{const t={};for(const[n,r]of e[1])t[`_${n}_`]=u(r);const n=be(t),r=n.tryAsTuple();return Array.isArray(r)?ge(...r):n}case-21:{const t={};for(const[n,r]of e[1])t[`_${n}_`]=u(r);return ve(t)}case-22:{const[t,n,r]=e[1];return Ee(t.map((e=>u(e))),n.map((e=>u(e))),r)}case-23:{const t={},n=e[1];for(const[e,r]of n){let n=u(r);if(n instanceof G&&(n=n.getType()),!(n instanceof K))throw new Error("Illegal service definition: services can only contain functions");t[e]=n}return Ie(t)}default:throw new Error("Illegal op_code: "+e[0])}}o.forEach(((e,t)=>{if(-22===e[0]){const n=l(e);c[t].fill(n)}})),o.forEach(((e,t)=>{if(-22!==e[0]){const n=l(e);c[t].fill(n)}}));const d=s.map((e=>u(e))),A=e.map(((e,t)=>e.decodeValue(n,d[t])));for(let t=e.length;t0)throw new Error("decode: Left-over bytes");return A}const Z=new S,$=new x,X=new Q,ee=new k,te=new M,ne=new R,re=new D,ie=new T,oe=new N(32),ae=new N(64),se=new O(8),ce=new O(16),ue=new O(32),le=new O(64),fe=new L(8),de=new L(16),Ae=new L(32),he=new L(64),pe=new Y;function ge(...e){return new j(e)}function ye(e){return new P(e)}function me(e){return new U(e)}function be(e){return new F(e)}function ve(e){return new q(e)}function we(){return new G}function Ee(e,t,n=[]){return new K(e,t,n)}function Ie(e){return new z(e)}},2336:function(e,t,n){"use strict";n.d(t,{p:function(){return c}});const r="abcdefghijklmnopqrstuvwxyz234567",i=Object.create(null);for(let e=0;e<32;e++)i[r[e]]=e;i[0]=i.o,i[1]=i.i;const o=new Uint32Array([0,1996959894,3993919788,2567524794,124634137,1886057615,3915621685,2657392035,249268274,2044508324,3772115230,2547177864,162941995,2125561021,3887607047,2428444049,498536548,1789927666,4089016648,2227061214,450548861,1843258603,4107580753,2211677639,325883990,1684777152,4251122042,2321926636,335633487,1661365465,4195302755,2366115317,997073096,1281953886,3579855332,2724688242,1006888145,1258607687,3524101629,2768942443,901097722,1119000684,3686517206,2898065728,853044451,1172266101,3705015759,2882616665,651767980,1373503546,3369554304,3218104598,565507253,1454621731,3485111705,3099436303,671266974,1594198024,3322730930,2970347812,795835527,1483230225,3244367275,3060149565,1994146192,31158534,2563907772,4023717930,1907459465,112637215,2680153253,3904427059,2013776290,251722036,2517215374,3775830040,2137656763,141376813,2439277719,3865271297,1802195444,476864866,2238001368,4066508878,1812370925,453092731,2181625025,4111451223,1706088902,314042704,2344532202,4240017532,1658658271,366619977,2362670323,4224994405,1303535960,984961486,2747007092,3569037538,1256170817,1037604311,2765210733,3554079995,1131014506,879679996,2909243462,3663771856,1141124467,855842277,2852801631,3708648649,1342533948,654459306,3188396048,3373015174,1466479909,544179635,3110523913,3462522015,1591671054,702138776,2966460450,3352799412,1504918807,783551873,3082640443,3233442989,3988292384,2596254646,62317068,1957810842,3939845945,2647816111,81470997,1943803523,3814918930,2489596804,225274430,2053790376,3826175755,2466906013,167816743,2097651377,4027552580,2265490386,503444072,1762050814,4150417245,2154129355,426522225,1852507879,4275313526,2312317920,282753626,1742555852,4189708143,2394877945,397917763,1622183637,3604390888,2714866558,953729732,1340076626,3518719985,2797360999,1068828381,1219638859,3624741850,2936675148,906185462,1090812512,3747672003,2825379669,829329135,1181335161,3412177804,3160834842,628085408,1382605366,3423369109,3138078467,570562233,1426400815,3317316542,2998733608,733239954,1555261956,3268935591,3050360625,752459403,1541320221,2607071920,3965973030,1969922972,40735498,2617837225,3943577151,1913087877,83908371,2512341634,3803740692,2075208622,213261112,2463272603,3855990285,2094854071,198958881,2262029012,4057260610,1759359992,534414190,2176718541,4139329115,1873836001,414664567,2282248934,4279200368,1711684554,285281116,2405801727,4167216745,1634467795,376229701,2685067896,3608007406,1308918612,956543938,2808555105,3495958263,1231636301,1047427035,2932959818,3654703836,1088359270,936918e3,2847714899,3736837829,1202900863,817233897,3183342108,3401237130,1404277552,615818150,3134207493,3453421203,1423857449,601450431,3009837614,3294710456,1567103746,711928724,3020668471,3272380065,1510334235,755167117]);var a=n(8226);const s="__principal__";class c{constructor(e){this._arr=e,this._isPrincipal=!0}static anonymous(){return new this(new Uint8Array([4]))}static managementCanister(){return this.fromHex("aaaaa-aa")}static selfAuthenticating(e){const t=(n=e,a.Z.create().update(new Uint8Array(n)).digest());var n;return new this(new Uint8Array([...t,2]))}static from(e){if("string"==typeof e)return c.fromText(e);if(Object.getPrototypeOf(e)===Uint8Array.prototype)return new c(e);if("object"==typeof e&&null!==e&&!0===e._isPrincipal)return new c(e._arr);throw new Error(`Impossible to convert ${JSON.stringify(e)} to Principal.`)}static fromHex(e){return new this(new Uint8Array((null!==(t=e.match(/.{1,2}/g))&&void 0!==t?t:[]).map((e=>parseInt(e,16)))));var t}static fromText(e){let t=e;if(e.includes(s)){const n=JSON.parse(e);s in n&&(t=n[s])}let n=function(e){let t=0,n=0;const r=new Uint8Array(4*e.length/3|0);let o=0;function a(e){let a=i[e.toLowerCase()];if(void 0===a)throw new Error(`Invalid character: ${JSON.stringify(e)}`);a<<=3,n|=a>>>t,t+=5,t>=8&&(r[o++]=n,t-=8,n=t>0?a<<5-t&255:0)}for(const t of e)a(t);return r.slice(0,o)}(t.toLowerCase().replace(/-/g,""));n=n.slice(4,n.length);const r=new this(n);if(r.toText()!==t)throw new Error(`Principal "${r.toText()}" does not have a valid checksum (original value "${t}" may not be a valid Principal ID).`);return r}static fromUint8Array(e){return new this(e)}isAnonymous(){return 1===this._arr.byteLength&&4===this._arr[0]}toUint8Array(){return this._arr}toHex(){return(e=this._arr,e.reduce(((e,t)=>e+t.toString(16).padStart(2,"0")),"")).toUpperCase();var e}toText(){const e=new ArrayBuffer(4);new DataView(e).setUint32(0,function(e){const t=new Uint8Array(e);let n=-1;for(let e=0;e>>8}return~n>>>0}(this._arr));const t=new Uint8Array(e),n=Uint8Array.from(this._arr),i=function(e){let t=0,n=0,i="";for(let a=0;a>-t:n=o<3?(t-=8,1):(t<4&&(i+=r[n>>3],t+=5),0));var o;return i+(t<0?r[n>>3]:"")}(new Uint8Array([...t,...n])).match(/.{1,5}/g);if(!i)throw new Error;return i.join("-")}toString(){return this.toText()}toJSON(){return{[s]:this.toText()}}compareTo(e){for(let t=0;te._arr[t])return"gt"}return this._arr.lengthe._arr.length?"gt":"eq"}ltEq(e){const t=this.compareTo(e);return"lt"==t||"eq"==t}gtEq(e){const t=this.compareTo(e);return"gt"==t||"eq"==t}}},3094:function(e,t,n){!function(e){"use strict";var t=void 0!==n.g?n.g:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},r="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==n.g?n.g:"undefined"!=typeof self?self:{};function i(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function o(e){if(e.__esModule)return e;var t=e.default;if("function"==typeof t){var n=function e(){return this instanceof e?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach((function(t){var r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,r.get?r:{enumerable:!0,get:function(){return e[t]}})})),n}var a={exports:{}};!function(e,t){var n="undefined"!=typeof self?self:r,i=function(){function e(){this.fetch=!1,this.DOMException=n.DOMException}return e.prototype=n,new e}();!function(e){!function(t){var n="URLSearchParams"in e,r="Symbol"in e&&"iterator"in Symbol,i="FileReader"in e&&"Blob"in e&&function(){try{return new Blob,!0}catch(e){return!1}}(),o="FormData"in e,a="ArrayBuffer"in e;if(a)var s=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],c=ArrayBuffer.isView||function(e){return e&&s.indexOf(Object.prototype.toString.call(e))>-1};function u(e){if("string"!=typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(e))throw new TypeError("Invalid character in header field name");return e.toLowerCase()}function l(e){return"string"!=typeof e&&(e=String(e)),e}function f(e){var t={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return r&&(t[Symbol.iterator]=function(){return t}),t}function d(e){this.map={},e instanceof d?e.forEach((function(e,t){this.append(t,e)}),this):Array.isArray(e)?e.forEach((function(e){this.append(e[0],e[1])}),this):e&&Object.getOwnPropertyNames(e).forEach((function(t){this.append(t,e[t])}),this)}function A(e){if(e.bodyUsed)return Promise.reject(new TypeError("Already read"));e.bodyUsed=!0}function h(e){return new Promise((function(t,n){e.onload=function(){t(e.result)},e.onerror=function(){n(e.error)}}))}function p(e){var t=new FileReader,n=h(t);return t.readAsArrayBuffer(e),n}function g(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function y(){return this.bodyUsed=!1,this._initBody=function(e){var t;this._bodyInit=e,e?"string"==typeof e?this._bodyText=e:i&&Blob.prototype.isPrototypeOf(e)?this._bodyBlob=e:o&&FormData.prototype.isPrototypeOf(e)?this._bodyFormData=e:n&&URLSearchParams.prototype.isPrototypeOf(e)?this._bodyText=e.toString():a&&i&&(t=e)&&DataView.prototype.isPrototypeOf(t)?(this._bodyArrayBuffer=g(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):a&&(ArrayBuffer.prototype.isPrototypeOf(e)||c(e))?this._bodyArrayBuffer=g(e):this._bodyText=e=Object.prototype.toString.call(e):this._bodyText="",this.headers.get("content-type")||("string"==typeof e?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):n&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},i&&(this.blob=function(){var e=A(this);if(e)return e;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?A(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(p)}),this.text=function(){var e,t,n,r=A(this);if(r)return r;if(this._bodyBlob)return e=this._bodyBlob,n=h(t=new FileReader),t.readAsText(e),n;if(this._bodyArrayBuffer)return Promise.resolve(function(e){for(var t=new Uint8Array(e),n=new Array(t.length),r=0;r-1?t:e}(t.method||this.method||"GET"),this.mode=t.mode||this.mode||null,this.signal=t.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&n)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(n)}function v(e){var t=new FormData;return e.trim().split("&").forEach((function(e){if(e){var n=e.split("="),r=n.shift().replace(/\+/g," "),i=n.join("=").replace(/\+/g," ");t.append(decodeURIComponent(r),decodeURIComponent(i))}})),t}function w(e,t){t||(t={}),this.type="default",this.status=void 0===t.status?200:t.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in t?t.statusText:"OK",this.headers=new d(t.headers),this.url=t.url||"",this._initBody(e)}b.prototype.clone=function(){return new b(this,{body:this._bodyInit})},y.call(b.prototype),y.call(w.prototype),w.prototype.clone=function(){return new w(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new d(this.headers),url:this.url})},w.error=function(){var e=new w(null,{status:0,statusText:""});return e.type="error",e};var E=[301,302,303,307,308];w.redirect=function(e,t){if(-1===E.indexOf(t))throw new RangeError("Invalid status code");return new w(null,{status:t,headers:{location:e}})},t.DOMException=e.DOMException;try{new t.DOMException}catch(e){t.DOMException=function(e,t){this.message=e,this.name=t;var n=Error(e);this.stack=n.stack},t.DOMException.prototype=Object.create(Error.prototype),t.DOMException.prototype.constructor=t.DOMException}function I(e,n){return new Promise((function(r,o){var a=new b(e,n);if(a.signal&&a.signal.aborted)return o(new t.DOMException("Aborted","AbortError"));var s=new XMLHttpRequest;function c(){s.abort()}s.onload=function(){var e,t,n={status:s.status,statusText:s.statusText,headers:(e=s.getAllResponseHeaders()||"",t=new d,e.replace(/\r?\n[\t ]+/g," ").split(/\r?\n/).forEach((function(e){var n=e.split(":"),r=n.shift().trim();if(r){var i=n.join(":").trim();t.append(r,i)}})),t)};n.url="responseURL"in s?s.responseURL:n.headers.get("X-Request-URL");var i="response"in s?s.response:s.responseText;r(new w(i,n))},s.onerror=function(){o(new TypeError("Network request failed"))},s.ontimeout=function(){o(new TypeError("Network request failed"))},s.onabort=function(){o(new t.DOMException("Aborted","AbortError"))},s.open(a.method,a.url,!0),"include"===a.credentials?s.withCredentials=!0:"omit"===a.credentials&&(s.withCredentials=!1),"responseType"in s&&i&&(s.responseType="blob"),a.headers.forEach((function(e,t){s.setRequestHeader(t,e)})),a.signal&&(a.signal.addEventListener("abort",c),s.onreadystatechange=function(){4===s.readyState&&a.signal.removeEventListener("abort",c)}),s.send(void 0===a._bodyInit?null:a._bodyInit)}))}I.polyfill=!0,e.fetch||(e.fetch=I,e.Headers=d,e.Request=b,e.Response=w),t.Headers=d,t.Request=b,t.Response=w,t.fetch=I,Object.defineProperty(t,"__esModule",{value:!0})}({})}(i),i.fetch.ponyfill=!0,delete i.fetch.polyfill;var o=i;(t=o.fetch).default=o.fetch,t.fetch=o.fetch,t.Headers=o.Headers,t.Request=o.Request,t.Response=o.Response,e.exports=t}(a,a.exports);var s=i(a.exports);function c(){throw new Error("setTimeout has not been defined")}function u(){throw new Error("clearTimeout has not been defined")}var l=c,f=u;function d(e){if(l===setTimeout)return setTimeout(e,0);if((l===c||!l)&&setTimeout)return l=setTimeout,setTimeout(e,0);try{return l(e,0)}catch(t){try{return l.call(null,e,0)}catch(t){return l.call(this,e,0)}}}"function"==typeof t.setTimeout&&(l=setTimeout),"function"==typeof t.clearTimeout&&(f=clearTimeout);var A,h=[],p=!1,g=-1;function y(){p&&A&&(p=!1,A.length?h=A.concat(h):g=-1,h.length&&m())}function m(){if(!p){var e=d(y);p=!0;for(var t=h.length;t;){for(A=h,h=[];++g1)for(var n=1;n0;)if(o===e[a])return r;i(t)}}Object.assign(h.prototype,{subscribe:function(e,t,n){var r=this,i=this._target,o=this._emitter,a=this._listeners,s=function(){var r=d.apply(null,arguments),a={data:r,name:t,original:e};n?!1!==n.call(i,a)&&o.emit.apply(o,[a.name].concat(r)):o.emit.apply(o,[t].concat(r))};if(a[e])throw Error("Event '"+e+"' is already listening");this._listenersCount++,o._newListener&&o._removeListener&&!r._onNewListener?(this._onNewListener=function(n){n===t&&null===a[e]&&(a[e]=s,r._on.call(i,e,s))},o.on("newListener",this._onNewListener),this._onRemoveListener=function(n){n===t&&!o.hasListeners(n)&&a[e]&&(a[e]=null,r._off.call(i,e,s))},a[e]=null,o.on("removeListener",this._onRemoveListener)):(a[e]=s,r._on.call(i,e,s))},unsubscribe:function(e){var t,n,r,i=this,o=this._listeners,a=this._emitter,s=this._off,u=this._target;if(e&&"string"!=typeof e)throw TypeError("event must be a string");function l(){i._onNewListener&&(a.off("newListener",i._onNewListener),a.off("removeListener",i._onRemoveListener),i._onNewListener=null,i._onRemoveListener=null);var e=E.call(a,i);a._observers.splice(e,1)}if(e){if(!(t=o[e]))return;s.call(u,e,t),delete o[e],--this._listenersCount||l()}else{for(r=(n=c(o)).length;r-- >0;)e=n[r],s.call(u,e,o[e]);this._listeners={},this._listenersCount=0,l()}}});var m=y(["function"]),v=y(["object","function"]);function w(e,t,n){var r,i,o,a=0,s=new e((function(c,u,l){function f(){i&&(i=null),a&&(clearTimeout(a),a=0)}n=p(n,{timeout:0,overload:!1},{timeout:function(e,t){return("number"!=typeof(e*=1)||e<0||!Number.isFinite(e))&&t("timeout must be a positive number"),e}}),r=!n.overload&&"function"==typeof e.prototype.cancel&&"function"==typeof l;var d=function(e){f(),c(e)},A=function(e){f(),u(e)};r?t(d,A,l):(i=[function(e){A(e||Error("canceled"))}],t(d,A,(function(e){if(o)throw Error("Unable to subscribe on cancel event asynchronously");if("function"!=typeof e)throw TypeError("onCancel callback must be a function");i.push(e)})),o=!0),n.timeout>0&&(a=setTimeout((function(){var e=Error("timeout");e.code="ETIMEDOUT",a=0,s.cancel(e),u(e)}),n.timeout))}));return r||(s.cancel=function(e){if(i){for(var t=i.length,n=1;n0;)"_listeners"!==(A=m[s])&&(b=I(e,t,n[A],r+1,i))&&(v?v.push.apply(v,b):v=b);return v}if("**"===w){for((y=r+1===i||r+2===i&&"*"===E)&&n._listeners&&(v=I(e,t,n,i,i)),s=(m=c(n)).length;s-- >0;)"_listeners"!==(A=m[s])&&("*"===A||"**"===A?(n[A]._listeners&&!y&&(b=I(e,t,n[A],i,i))&&(v?v.push.apply(v,b):v=b),b=I(e,t,n[A],r,i)):b=I(e,t,n[A],A===E?r+2:r,i),b&&(v?v.push.apply(v,b):v=b));return v}n[w]&&(v=I(e,t,n[w],r+1,i))}if((h=n["*"])&&I(e,t,h,r+1,i),p=n["**"])if(r0;)"_listeners"!==(A=m[s])&&(A===E?I(e,t,p[A],r+2,i):A===w?I(e,t,p[A],r+1,i):((g={})[A]=p[A],I(e,t,{"**":g},r+1,i)));else p._listeners?I(e,t,p,i,i):p["*"]&&p["*"]._listeners&&I(e,t,p["*"],i,i);return v}function B(e,t,n){var r,i,o=0,a=0,s=this.delimiter,c=s.length;if("string"==typeof e)if(-1!==(r=e.indexOf(s))){i=new Array(5);do{i[o++]=e.slice(a,r),a=r+c}while(-1!==(r=e.indexOf(s,a)));i[o++]=e.slice(a)}else i=[e],o=1;else i=e,o=e.length;if(o>1)for(r=0;r+10&&l._listeners.length>this._maxListeners&&(l._listeners.warned=!0,f.call(this,l._listeners.length,u))):l._listeners=t,!0;return!0}function C(e,t,n,r){for(var i,o,a,s,u=c(e),l=u.length,f=e._listeners;l-- >0;)i=e[o=u[l]],a="_listeners"===o?n:n?n.concat(o):[o],s=r||"symbol"==typeof o,f&&t.push(s?a:a.join(this.delimiter)),"object"==typeof i&&C.call(this,i,t,a,s);return t}function _(e){for(var t,n,r,i=c(e),o=i.length;o-- >0;)(t=e[n=i[o]])&&(r=!0,"_listeners"===n||_(t)||delete e[n]);return r}function S(e,t,n){this.emitter=e,this.event=t,this.listener=n}function Q(e,n,r){if(!0===r)a=!0;else if(!1===r)o=!0;else{if(!r||"object"!=typeof r)throw TypeError("options should be an object or true");var o=r.async,a=r.promisify,c=r.nextTick,u=r.objectify}if(o||c||a){var l=n,f=n._origin||n;if(c&&!i)throw Error("process.nextTick is not supported");a===t&&(a="AsyncFunction"===n.constructor.name),n=function(){var e=arguments,t=this,n=this.event;return a?c?Promise.resolve():new Promise((function(e){s(e)})).then((function(){return t.event=n,l.apply(t,e)})):(c?b:s)((function(){t.event=n,l.apply(t,e)}))},n._async=!0,n._origin=f}return[n,u?new S(this,e,n):this]}function k(e){this._events={},this._newListener=!1,this._removeListener=!1,this.verboseMemoryLeak=!1,l.call(this,e)}S.prototype.off=function(){return this.emitter.off(this.event,this.listener),this},k.EventEmitter2=k,k.prototype.listenTo=function(e,n,i){if("object"!=typeof e)throw TypeError("target musts be an object");var o=this;function a(t){if("object"!=typeof t)throw TypeError("events must be an object");var n,r=i.reducers,a=E.call(o,e);n=-1===a?new h(o,e,i):o._observers[a];for(var s,u=c(t),l=u.length,f="function"==typeof r,d=0;d0;)r=n[i],e&&r._target!==e||(r.unsubscribe(t),o=!0);return o},k.prototype.delimiter=".",k.prototype.setMaxListeners=function(e){e!==t&&(this._maxListeners=e,this._conf||(this._conf={}),this._conf.maxListeners=e)},k.prototype.getMaxListeners=function(){return this._maxListeners},k.prototype.event="",k.prototype.once=function(e,t,n){return this._once(e,t,!1,n)},k.prototype.prependOnceListener=function(e,t,n){return this._once(e,t,!0,n)},k.prototype._once=function(e,t,n,r){return this._many(e,1,t,n,r)},k.prototype.many=function(e,t,n,r){return this._many(e,t,n,!1,r)},k.prototype.prependMany=function(e,t,n,r){return this._many(e,t,n,!0,r)},k.prototype._many=function(e,t,n,r,i){var o=this;if("function"!=typeof n)throw new Error("many only accepts instances of Function");function a(){return 0==--t&&o.off(e,a),n.apply(this,arguments)}return a._origin=n,this._on(e,a,r,i)},k.prototype.emit=function(){if(!this._events&&!this._all)return!1;this._events||u.call(this);var e,t,n,r,i,a,s=arguments[0],c=this.wildcard;if("newListener"===s&&!this._newListener&&!this._events.newListener)return!1;if(c&&(e=s,"newListener"!==s&&"removeListener"!==s&&"object"==typeof s)){if(n=s.length,o)for(r=0;r3)for(t=new Array(f-1),i=1;i3)for(n=new Array(d-1),a=1;a0&&this._events[e].length>this._maxListeners&&(this._events[e].warned=!0,f.call(this,this._events[e].length,e))):this._events[e]=n,a)},k.prototype.off=function(e,t){if("function"!=typeof t)throw new Error("removeListener only takes instances of Function");var n,i=[];if(this.wildcard){var o="string"==typeof e?e.split(this.delimiter):e.slice();if(!(i=I.call(this,null,o,this.listenerTree,0)))return this}else{if(!this._events[e])return this;n=this._events[e],i.push({_listeners:n})}for(var a=0;a0){for(n=0,r=(t=this._all).length;n0;)"function"==typeof(r=s[n[o]])?i.push(r):i.push.apply(i,r);return i}if(this.wildcard){if(!(a=this.listenerTree))return[];var u=[],l="string"==typeof e?e.split(this.delimiter):e.slice();return I.call(this,u,l,a,0),u}return s&&(r=s[e])?"function"==typeof r?[r]:r:[]},k.prototype.eventNames=function(e){var t=this._events;return this.wildcard?C.call(this,this.listenerTree,[],null,e):t?c(t):[]},k.prototype.listenerCount=function(e){return this.listeners(e).length},k.prototype.hasListeners=function(e){if(this.wildcard){var n=[],r="string"==typeof e?e.split(this.delimiter):e.slice();return I.call(this,n,r,this.listenerTree,0),n.length>0}var i=this._events,o=this._all;return!!(o&&o.length||i&&(e===t?c(i).length:i[e]))},k.prototype.listenersAny=function(){return this._all?this._all:[]},k.prototype.waitFor=function(e,n){var r=this,i=typeof n;return"number"===i?n={timeout:n}:"function"===i&&(n={filter:n}),w((n=p(n,{timeout:0,filter:t,handleError:!1,Promise:Promise,overload:!1},{filter:m,Promise:g})).Promise,(function(t,i,o){function a(){var o=n.filter;if(!o||o.apply(r,arguments))if(r.off(e,a),n.handleError){var s=arguments[0];s?i(s):t(d.apply(null,arguments).slice(1))}else t(d.apply(null,arguments))}o((function(){r.off(e,a)})),r._on(e,a,!1)}),{timeout:n.timeout,overload:n.overload})};var M=k.prototype;Object.defineProperties(k,{defaultMaxListeners:{get:function(){return M._maxListeners},set:function(e){if("number"!=typeof e||e<0||Number.isNaN(e))throw TypeError("n must be a non-negative number");M._maxListeners=e},enumerable:!0},once:{value:function(e,t,n){return w((n=p(n,{Promise:Promise,timeout:0,overload:!1},{Promise:g})).Promise,(function(n,r,i){var o;if("function"==typeof e.addEventListener)return o=function(){n(d.apply(null,arguments))},i((function(){e.removeEventListener(t,o)})),void e.addEventListener(t,o,{once:!0});var a,s=function(){a&&e.removeListener("error",a),n(d.apply(null,arguments))};"error"!==t&&(a=function(n){e.removeListener(t,s),r(n)},e.once("error",a)),i((function(){a&&e.removeListener("error",a),e.removeListener(t,s)})),e.once(t,s)}),{timeout:n.timeout,overload:n.overload})},writable:!0,configurable:!0}}),Object.defineProperties(M,{_maxListeners:{value:10,writable:!0,configurable:!0},_observers:{value:null,writable:!0,configurable:!0}}),"function"==typeof t&&t.amd?t((function(){return k})):e.exports=k}()}(D);var T,N=D.exports,O=new Uint8Array(16);function L(){if(!T&&!(T="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return T(O)}var P=/^(?:[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 U(e){return"string"==typeof e&&P.test(e)}for(var F=[],j=0;j<256;++j)F.push((j+256).toString(16).substr(1));function q(e,t,n){var r=(e=e||{}).random||(e.rng||L)();if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,t){n=n||0;for(var i=0;i<16;++i)t[n+i]=r[i];return t}return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=(F[e[t+0]]+F[e[t+1]]+F[e[t+2]]+F[e[t+3]]+"-"+F[e[t+4]]+F[e[t+5]]+"-"+F[e[t+6]]+F[e[t+7]]+"-"+F[e[t+8]]+F[e[t+9]]+"-"+F[e[t+10]]+F[e[t+11]]+F[e[t+12]]+F[e[t+13]]+F[e[t+14]]+F[e[t+15]]).toLowerCase();if(!U(n))throw TypeError("Stringified UUID is invalid");return n}(r)}const G=Object.create(null);G.open="0",G.close="1",G.ping="2",G.pong="3",G.message="4",G.upgrade="5",G.noop="6";const H=Object.create(null);Object.keys(G).forEach((e=>{H[G[e]]=e}));const Y={type:"error",data:"parser error"},K="function"==typeof Blob||"undefined"!=typeof Blob&&"[object BlobConstructor]"===Object.prototype.toString.call(Blob),z="function"==typeof ArrayBuffer,V=e=>"function"==typeof ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer instanceof ArrayBuffer,J=({type:e,data:t},n,r)=>K&&t instanceof Blob?n?r(t):W(t,r):z&&(t instanceof ArrayBuffer||V(t))?n?r(t):W(new Blob([t]),r):r(G[e]+(t||"")),W=(e,t)=>{const n=new FileReader;return n.onload=function(){const e=n.result.split(",")[1];t("b"+(e||""))},n.readAsDataURL(e)};function Z(e){return e instanceof Uint8Array?e:e instanceof ArrayBuffer?new Uint8Array(e):new Uint8Array(e.buffer,e.byteOffset,e.byteLength)}let $;function X(e,t){return K&&e.data instanceof Blob?e.data.arrayBuffer().then(Z).then(t):z&&(e.data instanceof ArrayBuffer||V(e.data))?t(Z(e.data)):void J(e,!1,(e=>{$||($=new TextEncoder),t($.encode(e))}))}const ee="undefined"==typeof Uint8Array?[]:new Uint8Array(256);for(let e=0;e<64;e++)ee["ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charCodeAt(e)]=e;const te="function"==typeof ArrayBuffer,ne=(e,t)=>{if("string"!=typeof e)return{type:"message",data:ie(e,t)};const n=e.charAt(0);return"b"===n?{type:"message",data:re(e.substring(1),t)}:H[n]?e.length>1?{type:H[n],data:e.substring(1)}:{type:H[n]}:Y},re=(e,t)=>{if(te){const n=(e=>{let t,n,r,i,o,a=.75*e.length,s=e.length,c=0;"="===e[e.length-1]&&(a--,"="===e[e.length-2]&&a--);const u=new ArrayBuffer(a),l=new Uint8Array(u);for(t=0;t>4,l[c++]=(15&r)<<4|i>>2,l[c++]=(3&i)<<6|63&o;return u})(e);return ie(n,t)}return{base64:!0,data:e}},ie=(e,t)=>"blob"===t?e instanceof Blob?e:new Blob([e]):e instanceof ArrayBuffer?e:e.buffer,oe=String.fromCharCode(30);let ae;function se(e){if(e)return function(e){for(var t in se.prototype)e[t]=se.prototype[t];return e}(e)}se.prototype.on=se.prototype.addEventListener=function(e,t){return this._callbacks=this._callbacks||{},(this._callbacks["$"+e]=this._callbacks["$"+e]||[]).push(t),this},se.prototype.once=function(e,t){function n(){this.off(e,n),t.apply(this,arguments)}return n.fn=t,this.on(e,n),this},se.prototype.off=se.prototype.removeListener=se.prototype.removeAllListeners=se.prototype.removeEventListener=function(e,t){if(this._callbacks=this._callbacks||{},0==arguments.length)return this._callbacks={},this;var n,r=this._callbacks["$"+e];if(!r)return this;if(1==arguments.length)return delete this._callbacks["$"+e],this;for(var i=0;i(e.hasOwnProperty(n)&&(t[n]=e[n]),t)),{})}const le=ce.setTimeout,fe=ce.clearTimeout;function de(e,t){t.useNativeTimers?(e.setTimeoutFn=le.bind(ce),e.clearTimeoutFn=fe.bind(ce)):(e.setTimeoutFn=ce.setTimeout.bind(ce),e.clearTimeoutFn=ce.clearTimeout.bind(ce))}class Ae extends Error{constructor(e,t,n){super(e),this.description=t,this.context=n,this.type="TransportError"}}class he extends se{constructor(e){super(),this.writable=!1,de(this,e),this.opts=e,this.query=e.query,this.socket=e.socket}onError(e,t,n){return super.emitReserved("error",new Ae(e,t,n)),this}open(){return this.readyState="opening",this.doOpen(),this}close(){return"opening"!==this.readyState&&"open"!==this.readyState||(this.doClose(),this.onClose()),this}send(e){"open"===this.readyState&&this.write(e)}onOpen(){this.readyState="open",this.writable=!0,super.emitReserved("open")}onData(e){const t=ne(e,this.socket.binaryType);this.onPacket(t)}onPacket(e){super.emitReserved("packet",e)}onClose(e){this.readyState="closed",super.emitReserved("close",e)}pause(e){}createUri(e,t={}){return e+"://"+this._hostname()+this._port()+this.opts.path+this._query(t)}_hostname(){const e=this.opts.hostname;return-1===e.indexOf(":")?e:"["+e+"]"}_port(){return this.opts.port&&(this.opts.secure&&Number(443!==this.opts.port)||!this.opts.secure&&80!==Number(this.opts.port))?":"+this.opts.port:""}_query(e){const t=function(e){let t="";for(let n in e)e.hasOwnProperty(n)&&(t.length&&(t+="&"),t+=encodeURIComponent(n)+"="+encodeURIComponent(e[n]));return t}(e);return t.length?"?"+t:""}}const pe="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_".split(""),ge=64,ye={};let me,be=0,ve=0;function we(e){let t="";do{t=pe[e%ge]+t,e=Math.floor(e/ge)}while(e>0);return t}function Ee(){const e=we(+new Date);return e!==me?(be=0,me=e):e+"."+we(be++)}for(;ve{var e;3===n.readyState&&(null===(e=this.opts.cookieJar)||void 0===e||e.parseCookies(n)),4===n.readyState&&(200===n.status||1223===n.status?this.onLoad():this.setTimeoutFn((()=>{this.onError("number"==typeof n.status?n.status:0)}),0))},n.send(this.data)}catch(e){return void this.setTimeoutFn((()=>{this.onError(e)}),0)}"undefined"!=typeof document&&(this.index=Qe.requestsCount++,Qe.requests[this.index]=this)}onError(e){this.emitReserved("error",e,this.xhr),this.cleanup(!0)}cleanup(e){if(void 0!==this.xhr&&null!==this.xhr){if(this.xhr.onreadystatechange=_e,e)try{this.xhr.abort()}catch(e){}"undefined"!=typeof document&&delete Qe.requests[this.index],this.xhr=null}}onLoad(){const e=this.xhr.responseText;null!==e&&(this.emitReserved("data",e),this.emitReserved("success"),this.cleanup())}abort(){this.cleanup()}}function ke(){for(let e in Qe.requests)Qe.requests.hasOwnProperty(e)&&Qe.requests[e].abort()}Qe.requestsCount=0,Qe.requests={},"undefined"!=typeof document&&("function"==typeof attachEvent?attachEvent("onunload",ke):"function"==typeof addEventListener&&addEventListener("onpagehide"in ce?"pagehide":"unload",ke,!1));var Me=[],xe=[],Re="undefined"!=typeof Uint8Array?Uint8Array:Array,De=!1;function Te(){De=!0;for(var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t=0;t<64;++t)Me[t]=e[t],xe[e.charCodeAt(t)]=t;xe["-".charCodeAt(0)]=62,xe["_".charCodeAt(0)]=63}function Ne(e,t,n){for(var r,i,o=[],a=t;a>18&63]+Me[i>>12&63]+Me[i>>6&63]+Me[63&i]);return o.join("")}function Oe(e){var t;De||Te();for(var n=e.length,r=n%3,i="",o=[],a=16383,s=0,c=n-r;sc?c:s+a));return 1===r?(t=e[n-1],i+=Me[t>>2],i+=Me[t<<4&63],i+="=="):2===r&&(t=(e[n-2]<<8)+e[n-1],i+=Me[t>>10],i+=Me[t>>4&63],i+=Me[t<<2&63],i+="="),o.push(i),o.join("")}function Le(e,t,n,r,i){var o,a,s=8*i-r-1,c=(1<>1,l=-7,f=n?i-1:0,d=n?-1:1,A=e[t+f];for(f+=d,o=A&(1<<-l)-1,A>>=-l,l+=s;l>0;o=256*o+e[t+f],f+=d,l-=8);for(a=o&(1<<-l)-1,o>>=-l,l+=r;l>0;a=256*a+e[t+f],f+=d,l-=8);if(0===o)o=1-u;else{if(o===c)return a?NaN:1/0*(A?-1:1);a+=Math.pow(2,r),o-=u}return(A?-1:1)*a*Math.pow(2,o-r)}function Pe(e,t,n,r,i,o){var a,s,c,u=8*o-i-1,l=(1<>1,d=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,A=r?0:o-1,h=r?1:-1,p=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,a=l):(a=Math.floor(Math.log(t)/Math.LN2),t*(c=Math.pow(2,-a))<1&&(a--,c*=2),(t+=a+f>=1?d/c:d*Math.pow(2,1-f))*c>=2&&(a++,c/=2),a+f>=l?(s=0,a=l):a+f>=1?(s=(t*c-1)*Math.pow(2,i),a+=f):(s=t*Math.pow(2,f-1)*Math.pow(2,i),a=0));i>=8;e[n+A]=255&s,A+=h,s/=256,i-=8);for(a=a<0;e[n+A]=255&a,A+=h,a/=256,u-=8);e[n+A-h]|=128*p}var Ue={}.toString,Fe=Array.isArray||function(e){return"[object Array]"==Ue.call(e)};He.TYPED_ARRAY_SUPPORT=void 0===t.TYPED_ARRAY_SUPPORT||t.TYPED_ARRAY_SUPPORT;var je=qe();function qe(){return He.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function Ge(e,t){if(qe()=qe())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+qe().toString(16)+" bytes");return 0|e}function We(e){return!(null==e||!e._isBuffer)}function Ze(e,t){if(We(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var n=e.length;if(0===n)return 0;for(var r=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return Bt(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return Ct(e).length;default:if(r)return Bt(e).length;t=(""+t).toLowerCase(),r=!0}}function $e(e,t,n){var 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 At(this,t,n);case"utf8":case"utf-8":return ut(this,t,n);case"ascii":return ft(this,t,n);case"latin1":case"binary":return dt(this,t,n);case"base64":return ct(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ht(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function Xe(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function et(e,t,n,r,i){if(0===e.length)return-1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=i?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(i)return-1;n=e.length-1}else if(n<0){if(!i)return-1;n=0}if("string"==typeof t&&(t=He.from(t,r)),We(t))return 0===t.length?-1:tt(e,t,n,r,i);if("number"==typeof t)return t&=255,He.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):tt(e,[t],n,r,i);throw new TypeError("val must be string, number or Buffer")}function tt(e,t,n,r,i){var o,a=1,s=e.length,c=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;a=2,s/=2,c/=2,n/=2}function u(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(i){var l=-1;for(o=n;os&&(n=s-c),o=n;o>=0;o--){for(var f=!0,d=0;di&&(r=i):r=i;var o=t.length;if(o%2!=0)throw new TypeError("Invalid hex string");r>o/2&&(r=o/2);for(var a=0;a>8,i=n%256,o.push(i),o.push(r);return o}(t,e.length-n),e,n,r)}function ct(e,t,n){return 0===t&&n===e.length?Oe(e):Oe(e.slice(t,n))}function ut(e,t,n){n=Math.min(e.length,n);for(var r=[],i=t;i239?4:u>223?3:u>191?2:1;if(i+f<=n)switch(f){case 1:u<128&&(l=u);break;case 2:128==(192&(o=e[i+1]))&&(c=(31&u)<<6|63&o)>127&&(l=c);break;case 3:o=e[i+1],a=e[i+2],128==(192&o)&&128==(192&a)&&(c=(15&u)<<12|(63&o)<<6|63&a)>2047&&(c<55296||c>57343)&&(l=c);break;case 4:o=e[i+1],a=e[i+2],s=e[i+3],128==(192&o)&&128==(192&a)&&128==(192&s)&&(c=(15&u)<<18|(63&o)<<12|(63&a)<<6|63&s)>65535&&c<1114112&&(l=c)}null===l?(l=65533,f=1):l>65535&&(l-=65536,r.push(l>>>10&1023|55296),l=56320|1023&l),r.push(l),i+=f}return function(e){var t=e.length;if(t<=lt)return String.fromCharCode.apply(String,e);for(var n="",r=0;r0&&(e=this.toString("hex",0,50).match(/.{2}/g).join(" "),this.length>50&&(e+=" ... ")),""},He.prototype.compare=function(e,t,n,r,i){if(!We(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===i&&(i=this.length),t<0||n>e.length||r<0||i>this.length)throw new RangeError("out of range index");if(r>=i&&t>=n)return 0;if(r>=i)return-1;if(t>=n)return 1;if(this===e)return 0;for(var o=(i>>>=0)-(r>>>=0),a=(n>>>=0)-(t>>>=0),s=Math.min(o,a),c=this.slice(r,i),u=e.slice(t,n),l=0;li)&&(n=i),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var o=!1;;)switch(r){case"hex":return nt(this,e,t,n);case"utf8":case"utf-8":return rt(this,e,t,n);case"ascii":return it(this,e,t,n);case"latin1":case"binary":return ot(this,e,t,n);case"base64":return at(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return st(this,e,t,n);default:if(o)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),o=!0}},He.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var lt=4096;function ft(e,t,n){var r="";n=Math.min(e.length,n);for(var i=t;ir)&&(n=r);for(var i="",o=t;on)throw new RangeError("Trying to access beyond buffer length")}function gt(e,t,n,r,i,o){if(!We(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||te.length)throw new RangeError("Index out of range")}function yt(e,t,n,r){t<0&&(t=65535+t+1);for(var i=0,o=Math.min(e.length-n,2);i>>8*(r?i:1-i)}function mt(e,t,n,r){t<0&&(t=4294967295+t+1);for(var i=0,o=Math.min(e.length-n,4);i>>8*(r?i:3-i)&255}function bt(e,t,n,r,i,o){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function vt(e,t,n,r,i){return i||bt(e,0,n,4),Pe(e,t,n,r,23,4),n+4}function wt(e,t,n,r,i){return i||bt(e,0,n,8),Pe(e,t,n,r,52,8),n+8}He.prototype.slice=function(e,t){var n,r=this.length;if((e=~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),(t=void 0===t?r:~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),t0&&(i*=256);)r+=this[e+--t]*i;return r},He.prototype.readUInt8=function(e,t){return t||pt(e,1,this.length),this[e]},He.prototype.readUInt16LE=function(e,t){return t||pt(e,2,this.length),this[e]|this[e+1]<<8},He.prototype.readUInt16BE=function(e,t){return t||pt(e,2,this.length),this[e]<<8|this[e+1]},He.prototype.readUInt32LE=function(e,t){return t||pt(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},He.prototype.readUInt32BE=function(e,t){return t||pt(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},He.prototype.readIntLE=function(e,t,n){e|=0,t|=0,n||pt(e,t,this.length);for(var r=this[e],i=1,o=0;++o=(i*=128)&&(r-=Math.pow(2,8*t)),r},He.prototype.readIntBE=function(e,t,n){e|=0,t|=0,n||pt(e,t,this.length);for(var r=t,i=1,o=this[e+--r];r>0&&(i*=256);)o+=this[e+--r]*i;return o>=(i*=128)&&(o-=Math.pow(2,8*t)),o},He.prototype.readInt8=function(e,t){return t||pt(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},He.prototype.readInt16LE=function(e,t){t||pt(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},He.prototype.readInt16BE=function(e,t){t||pt(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},He.prototype.readInt32LE=function(e,t){return t||pt(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},He.prototype.readInt32BE=function(e,t){return t||pt(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},He.prototype.readFloatLE=function(e,t){return t||pt(e,4,this.length),Le(this,e,!0,23,4)},He.prototype.readFloatBE=function(e,t){return t||pt(e,4,this.length),Le(this,e,!1,23,4)},He.prototype.readDoubleLE=function(e,t){return t||pt(e,8,this.length),Le(this,e,!0,52,8)},He.prototype.readDoubleBE=function(e,t){return t||pt(e,8,this.length),Le(this,e,!1,52,8)},He.prototype.writeUIntLE=function(e,t,n,r){e=+e,t|=0,n|=0,r||gt(this,e,t,n,Math.pow(2,8*n)-1,0);var i=1,o=0;for(this[t]=255&e;++o=0&&(o*=256);)this[t+i]=e/o&255;return t+n},He.prototype.writeUInt8=function(e,t,n){return e=+e,t|=0,n||gt(this,e,t,1,255,0),He.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},He.prototype.writeUInt16LE=function(e,t,n){return e=+e,t|=0,n||gt(this,e,t,2,65535,0),He.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):yt(this,e,t,!0),t+2},He.prototype.writeUInt16BE=function(e,t,n){return e=+e,t|=0,n||gt(this,e,t,2,65535,0),He.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):yt(this,e,t,!1),t+2},He.prototype.writeUInt32LE=function(e,t,n){return e=+e,t|=0,n||gt(this,e,t,4,4294967295,0),He.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):mt(this,e,t,!0),t+4},He.prototype.writeUInt32BE=function(e,t,n){return e=+e,t|=0,n||gt(this,e,t,4,4294967295,0),He.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):mt(this,e,t,!1),t+4},He.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t|=0,!r){var i=Math.pow(2,8*n-1);gt(this,e,t,n,i-1,-i)}var o=0,a=1,s=0;for(this[t]=255&e;++o=0&&(a*=256);)e<0&&0===s&&0!==this[t+o+1]&&(s=1),this[t+o]=(e/a|0)-s&255;return t+n},He.prototype.writeInt8=function(e,t,n){return e=+e,t|=0,n||gt(this,e,t,1,127,-128),He.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},He.prototype.writeInt16LE=function(e,t,n){return e=+e,t|=0,n||gt(this,e,t,2,32767,-32768),He.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):yt(this,e,t,!0),t+2},He.prototype.writeInt16BE=function(e,t,n){return e=+e,t|=0,n||gt(this,e,t,2,32767,-32768),He.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):yt(this,e,t,!1),t+2},He.prototype.writeInt32LE=function(e,t,n){return e=+e,t|=0,n||gt(this,e,t,4,2147483647,-2147483648),He.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):mt(this,e,t,!0),t+4},He.prototype.writeInt32BE=function(e,t,n){return e=+e,t|=0,n||gt(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),He.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):mt(this,e,t,!1),t+4},He.prototype.writeFloatLE=function(e,t,n){return vt(this,e,t,!0,n)},He.prototype.writeFloatBE=function(e,t,n){return vt(this,e,t,!1,n)},He.prototype.writeDoubleLE=function(e,t,n){return wt(this,e,t,!0,n)},He.prototype.writeDoubleBE=function(e,t,n){return wt(this,e,t,!1,n)},He.prototype.copy=function(e,t,n,r){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("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t=0;--i)e[i+t]=this[i+n];else if(o<1e3||!He.TYPED_ARRAY_SUPPORT)for(i=0;i>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(o=t;o55295&&n<57344){if(!i){if(n>56319){(t-=3)>-1&&o.push(239,191,189);continue}if(a+1===r){(t-=3)>-1&&o.push(239,191,189);continue}i=n;continue}if(n<56320){(t-=3)>-1&&o.push(239,191,189),i=n;continue}n=65536+(i-55296<<10|n-56320)}else i&&(t-=3)>-1&&o.push(239,191,189);if(i=null,n<128){if((t-=1)<0)break;o.push(n)}else if(n<2048){if((t-=2)<0)break;o.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;o.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;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return o}function Ct(e){return function(e){var t,n,r,i,o,a;De||Te();var s=e.length;if(s%4>0)throw new Error("Invalid string. Length must be a multiple of 4");o="="===e[s-2]?2:"="===e[s-1]?1:0,a=new Re(3*s/4-o),r=o>0?s-4:s;var c=0;for(t=0,n=0;t>16&255,a[c++]=i>>8&255,a[c++]=255&i;return 2===o?(i=xe[e.charCodeAt(t)]<<2|xe[e.charCodeAt(t+1)]>>4,a[c++]=255&i):1===o&&(i=xe[e.charCodeAt(t)]<<10|xe[e.charCodeAt(t+1)]<<4|xe[e.charCodeAt(t+2)]>>2,a[c++]=i>>8&255,a[c++]=255&i),a}(function(e){if((e=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}(e).replace(Et,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function _t(e,t,n,r){for(var i=0;i=t.length||i>=e.length);++i)t[i+n]=e[i];return i}function St(e){return null!=e&&(!!e._isBuffer||Qt(e)||function(e){return"function"==typeof e.readFloatLE&&"function"==typeof e.slice&&Qt(e.slice(0,0))}(e))}function Qt(e){return!!e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}var kt=Object.freeze({__proto__:null,Buffer:He,INSPECT_MAX_BYTES:50,SlowBuffer:function(e){return+e!=e&&(e=0),He.alloc(+e)},isBuffer:St,kMaxLength:je});const Mt="function"==typeof Promise&&"function"==typeof Promise.resolve?e=>Promise.resolve().then(e):(e,t)=>t(e,0),xt=ce.WebSocket||ce.MozWebSocket,Rt="undefined"!=typeof navigator&&"string"==typeof navigator.product&&"reactnative"===navigator.product.toLowerCase();function Dt(e,t){return"message"===e.type&&"string"!=typeof e.data&&t[0]>=48&&t[0]<=54}const Tt={websocket:class extends he{constructor(e){super(e),this.supportsBinary=!e.forceBase64}get name(){return"websocket"}doOpen(){if(!this.check())return;const e=this.uri(),t=this.opts.protocols,n=Rt?{}:ue(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(n.headers=this.opts.extraHeaders);try{this.ws=Rt?new xt(e,t,n):t?new xt(e,t):new xt(e)}catch(e){return this.emitReserved("error",e)}this.ws.binaryType=this.socket.binaryType||"arraybuffer",this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=e=>this.onClose({description:"websocket connection closed",context:e}),this.ws.onmessage=e=>this.onData(e.data),this.ws.onerror=e=>this.onError("websocket error",e)}write(e){this.writable=!1;for(let t=0;t{try{this.ws.send(e)}catch(e){}r&&Mt((()=>{this.writable=!0,this.emitReserved("drain")}),this.setTimeoutFn)}))}}doClose(){void 0!==this.ws&&(this.ws.close(),this.ws=null)}uri(){const e=this.opts.secure?"wss":"ws",t=this.query||{};return this.opts.timestampRequests&&(t[this.opts.timestampParam]=Ee()),this.supportsBinary||(t.b64=1),this.createUri(e,t)}check(){return!!xt}},webtransport:class extends he{get name(){return"webtransport"}doOpen(){"function"==typeof WebTransport&&(this.transport=new WebTransport(this.createUri("https"),this.opts.transportOptions[this.name]),this.transport.closed.then((()=>{this.onClose()})).catch((e=>{this.onError("webtransport error",e)})),this.transport.ready.then((()=>{this.transport.createBidirectionalStream().then((e=>{const t=e.readable.getReader();let n;this.writer=e.writable.getWriter();const r=()=>{t.read().then((({done:e,value:t})=>{e||(n||1!==t.byteLength||54!==t[0]?(this.onPacket(function(e,t,n){ae||(ae=new TextDecoder);const r=t||e[0]<48||e[0]>54;return ne(r?e:ae.decode(e),"arraybuffer")}(t,n)),n=!1):n=!0,r())})).catch((e=>{}))};r();const i=this.query.sid?`0{"sid":"${this.query.sid}"}`:"0";this.writer.write((new TextEncoder).encode(i)).then((()=>this.onOpen()))}))})))}write(e){this.writable=!1;for(let t=0;t{Dt(n,e)&&this.writer.write(Uint8Array.of(54)),this.writer.write(e).then((()=>{r&&Mt((()=>{this.writable=!0,this.emitReserved("drain")}),this.setTimeoutFn)}))}))}}doClose(){var e;null===(e=this.transport)||void 0===e||e.close()}},polling:class extends he{constructor(e){if(super(e),this.polling=!1,"undefined"!=typeof location){const t="https:"===location.protocol;let n=location.port;n||(n=t?"443":"80"),this.xd="undefined"!=typeof location&&e.hostname!==location.hostname||n!==e.port}const t=e&&e.forceBase64;this.supportsBinary=Se&&!t,this.opts.withCredentials&&(this.cookieJar=void 0)}get name(){return"polling"}doOpen(){this.poll()}pause(e){this.readyState="pausing";const t=()=>{this.readyState="paused",e()};if(this.polling||!this.writable){let e=0;this.polling&&(e++,this.once("pollComplete",(function(){--e||t()}))),this.writable||(e++,this.once("drain",(function(){--e||t()})))}else t()}poll(){this.polling=!0,this.doPoll(),this.emitReserved("poll")}onData(e){((e,t)=>{const n=e.split(oe),r=[];for(let e=0;e{if("opening"===this.readyState&&"open"===e.type&&this.onOpen(),"close"===e.type)return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(e)})),"closed"!==this.readyState&&(this.polling=!1,this.emitReserved("pollComplete"),"open"===this.readyState&&this.poll())}doClose(){const e=()=>{this.write([{type:"close"}])};"open"===this.readyState?e():this.once("open",e)}write(e){this.writable=!1,((e,t)=>{const n=e.length,r=new Array(n);let i=0;e.forEach(((e,o)=>{J(e,!1,(e=>{r[o]=e,++i===n&&t(r.join(oe))}))}))})(e,(e=>{this.doWrite(e,(()=>{this.writable=!0,this.emitReserved("drain")}))}))}uri(){const e=this.opts.secure?"https":"http",t=this.query||{};return!1!==this.opts.timestampRequests&&(t[this.opts.timestampParam]=Ee()),this.supportsBinary||t.sid||(t.b64=1),this.createUri(e,t)}request(e={}){return Object.assign(e,{xd:this.xd,cookieJar:this.cookieJar},this.opts),new Qe(this.uri(),e)}doWrite(e,t){const n=this.request({method:"POST",data:e});n.on("success",t),n.on("error",((e,t)=>{this.onError("xhr post error",e,t)}))}doPoll(){const e=this.request();e.on("data",this.onData.bind(this)),e.on("error",((e,t)=>{this.onError("xhr poll error",e,t)})),this.pollXhr=e}}},Nt=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,Ot=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function Lt(e){const t=e,n=e.indexOf("["),r=e.indexOf("]");-1!=n&&-1!=r&&(e=e.substring(0,n)+e.substring(n,r).replace(/:/g,";")+e.substring(r,e.length));let i=Nt.exec(e||""),o={},a=14;for(;a--;)o[Ot[a]]=i[a]||"";return-1!=n&&-1!=r&&(o.source=t,o.host=o.host.substring(1,o.host.length-1).replace(/;/g,":"),o.authority=o.authority.replace("[","").replace("]","").replace(/;/g,":"),o.ipv6uri=!0),o.pathNames=function(e,t){const n=t.replace(/\/{2,9}/g,"/").split("/");return"/"!=t.slice(0,1)&&0!==t.length||n.splice(0,1),"/"==t.slice(-1)&&n.splice(n.length-1,1),n}(0,o.path),o.queryKey=function(e,t){const n={};return t.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,(function(e,t,r){t&&(n[t]=r)})),n}(0,o.query),o}let Pt=class e extends se{constructor(e,t={}){super(),this.writeBuffer=[],e&&"object"==typeof e&&(t=e,e=null),e?(e=Lt(e),t.hostname=e.host,t.secure="https"===e.protocol||"wss"===e.protocol,t.port=e.port,e.query&&(t.query=e.query)):t.host&&(t.hostname=Lt(t.host).host),de(this,t),this.secure=null!=t.secure?t.secure:"undefined"!=typeof location&&"https:"===location.protocol,t.hostname&&!t.port&&(t.port=this.secure?"443":"80"),this.hostname=t.hostname||("undefined"!=typeof location?location.hostname:"localhost"),this.port=t.port||("undefined"!=typeof location&&location.port?location.port:this.secure?"443":"80"),this.transports=t.transports||["polling","websocket","webtransport"],this.writeBuffer=[],this.prevBufferLen=0,this.opts=Object.assign({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,addTrailingSlash:!0,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!1},t),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),"string"==typeof this.opts.query&&(this.opts.query=function(e){let t={},n=e.split("&");for(let e=0,r=n.length;e{this.transport&&(this.transport.removeAllListeners(),this.transport.close())},addEventListener("beforeunload",this.beforeunloadEventListener,!1)),"localhost"!==this.hostname&&(this.offlineEventListener=()=>{this.onClose("transport close",{description:"network connection lost"})},addEventListener("offline",this.offlineEventListener,!1))),this.open()}createTransport(e){const t=Object.assign({},this.opts.query);t.EIO=4,t.transport=e,this.id&&(t.sid=this.id);const n=Object.assign({},this.opts,{query:t,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[e]);return new Tt[e](n)}open(){let t;if(this.opts.rememberUpgrade&&e.priorWebsocketSuccess&&-1!==this.transports.indexOf("websocket"))t="websocket";else{if(0===this.transports.length)return void this.setTimeoutFn((()=>{this.emitReserved("error","No transports available")}),0);t=this.transports[0]}this.readyState="opening";try{t=this.createTransport(t)}catch(e){return this.transports.shift(),void this.open()}t.open(),this.setTransport(t)}setTransport(e){this.transport&&this.transport.removeAllListeners(),this.transport=e,e.on("drain",this.onDrain.bind(this)).on("packet",this.onPacket.bind(this)).on("error",this.onError.bind(this)).on("close",(e=>this.onClose("transport close",e)))}probe(t){let n=this.createTransport(t),r=!1;e.priorWebsocketSuccess=!1;const i=()=>{r||(n.send([{type:"ping",data:"probe"}]),n.once("packet",(t=>{if(!r)if("pong"===t.type&&"probe"===t.data){if(this.upgrading=!0,this.emitReserved("upgrading",n),!n)return;e.priorWebsocketSuccess="websocket"===n.name,this.transport.pause((()=>{r||"closed"!==this.readyState&&(l(),this.setTransport(n),n.send([{type:"upgrade"}]),this.emitReserved("upgrade",n),n=null,this.upgrading=!1,this.flush())}))}else{const e=new Error("probe error");e.transport=n.name,this.emitReserved("upgradeError",e)}})))};function o(){r||(r=!0,l(),n.close(),n=null)}const a=e=>{const t=new Error("probe error: "+e);t.transport=n.name,o(),this.emitReserved("upgradeError",t)};function s(){a("transport closed")}function c(){a("socket closed")}function u(e){n&&e.name!==n.name&&o()}const l=()=>{n.removeListener("open",i),n.removeListener("error",a),n.removeListener("close",s),this.off("close",c),this.off("upgrading",u)};n.once("open",i),n.once("error",a),n.once("close",s),this.once("close",c),this.once("upgrading",u),-1!==this.upgrades.indexOf("webtransport")&&"webtransport"!==t?this.setTimeoutFn((()=>{r||n.open()}),200):n.open()}onOpen(){if(this.readyState="open",e.priorWebsocketSuccess="websocket"===this.transport.name,this.emitReserved("open"),this.flush(),"open"===this.readyState&&this.opts.upgrade){let e=0;const t=this.upgrades.length;for(;e{this.onClose("ping timeout")}),this.pingInterval+this.pingTimeout),this.opts.autoUnref&&this.pingTimeoutTimer.unref()}onDrain(){this.writeBuffer.splice(0,this.prevBufferLen),this.prevBufferLen=0,0===this.writeBuffer.length?this.emitReserved("drain"):this.flush()}flush(){if("closed"!==this.readyState&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){const e=this.getWritablePackets();this.transport.send(e),this.prevBufferLen=e.length,this.emitReserved("flush")}}getWritablePackets(){if(!(this.maxPayload&&"polling"===this.transport.name&&this.writeBuffer.length>1))return this.writeBuffer;let e=1;for(let n=0;n=57344?n+=3:(r++,n+=4);return n}(t):Math.ceil(1.33*(t.byteLength||t.size))),n>0&&e>this.maxPayload)return this.writeBuffer.slice(0,n);e+=2}var t;return this.writeBuffer}write(e,t,n){return this.sendPacket("message",e,t,n),this}send(e,t,n){return this.sendPacket("message",e,t,n),this}sendPacket(e,t,n,r){if("function"==typeof t&&(r=t,t=void 0),"function"==typeof n&&(r=n,n=null),"closing"===this.readyState||"closed"===this.readyState)return;(n=n||{}).compress=!1!==n.compress;const i={type:e,data:t,options:n};this.emitReserved("packetCreate",i),this.writeBuffer.push(i),r&&this.once("flush",r),this.flush()}close(){const e=()=>{this.onClose("forced close"),this.transport.close()},t=()=>{this.off("upgrade",t),this.off("upgradeError",t),e()},n=()=>{this.once("upgrade",t),this.once("upgradeError",t)};return"opening"!==this.readyState&&"open"!==this.readyState||(this.readyState="closing",this.writeBuffer.length?this.once("drain",(()=>{this.upgrading?n():e()})):this.upgrading?n():e()),this}onError(t){e.priorWebsocketSuccess=!1,this.emitReserved("error",t),this.onClose("transport error",t)}onClose(e,t){"opening"!==this.readyState&&"open"!==this.readyState&&"closing"!==this.readyState||(this.clearTimeoutFn(this.pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),"function"==typeof removeEventListener&&(removeEventListener("beforeunload",this.beforeunloadEventListener,!1),removeEventListener("offline",this.offlineEventListener,!1)),this.readyState="closed",this.id=null,this.emitReserved("close",e,t),this.writeBuffer=[],this.prevBufferLen=0)}filterUpgrades(e){const t=[];let n=0;const r=e.length;for(;n"function"==typeof ArrayBuffer.isView?ArrayBuffer.isView(e):e.buffer instanceof ArrayBuffer,jt=Object.prototype.toString,qt="function"==typeof Blob||"undefined"!=typeof Blob&&"[object BlobConstructor]"===jt.call(Blob),Gt="function"==typeof File||"undefined"!=typeof File&&"[object FileConstructor]"===jt.call(File);function Ht(e){return Ut&&(e instanceof ArrayBuffer||Ft(e))||qt&&e instanceof Blob||Gt&&e instanceof File}function Yt(e,t){if(!e||"object"!=typeof e)return!1;if(Array.isArray(e)){for(let t=0,n=e.length;t=0&&e.num{delete this.acks[e];for(let t=0;t{this.io.clearTimeoutFn(i),t.apply(this,[null,...e])}}emitWithAck(e,...t){const n=void 0!==this.flags.timeout||void 0!==this._opts.ackTimeout;return new Promise(((r,i)=>{t.push(((e,t)=>n?e?i(e):r(t):r(e))),this.emit(e,...t)}))}_addToQueue(e){let t;"function"==typeof e[e.length-1]&&(t=e.pop());const n={id:this._queueSeq++,tryCount:0,pending:!1,args:e,flags:Object.assign({fromQueue:!0},this.flags)};e.push(((e,...r)=>{if(n===this._queue[0])return null!==e?n.tryCount>this._opts.retries&&(this._queue.shift(),t&&t(e)):(this._queue.shift(),t&&t(null,...r)),n.pending=!1,this._drainQueue()})),this._queue.push(n),this._drainQueue()}_drainQueue(e=!1){if(!this.connected||0===this._queue.length)return;const t=this._queue[0];t.pending&&!e||(t.pending=!0,t.tryCount++,this.flags=t.flags,this.emit.apply(this,t.args))}packet(e){e.nsp=this.nsp,this.io._packet(e)}onopen(){"function"==typeof this.auth?this.auth((e=>{this._sendConnectPacket(e)})):this._sendConnectPacket(this.auth)}_sendConnectPacket(e){this.packet({type:Zt.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},e):e})}onerror(e){this.connected||this.emitReserved("connect_error",e)}onclose(e,t){this.connected=!1,delete this.id,this.emitReserved("disconnect",e,t)}onpacket(e){if(e.nsp===this.nsp)switch(e.type){case Zt.CONNECT:e.data&&e.data.sid?this.onconnect(e.data.sid,e.data.pid):this.emitReserved("connect_error",new Error("It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)"));break;case Zt.EVENT:case Zt.BINARY_EVENT:this.onevent(e);break;case Zt.ACK:case Zt.BINARY_ACK:this.onack(e);break;case Zt.DISCONNECT:this.ondisconnect();break;case Zt.CONNECT_ERROR:this.destroy();const t=new Error(e.data.message);t.data=e.data.data,this.emitReserved("connect_error",t)}}onevent(e){const t=e.data||[];null!=e.id&&t.push(this.ack(e.id)),this.connected?this.emitEvent(t):this.receiveBuffer.push(Object.freeze(t))}emitEvent(e){if(this._anyListeners&&this._anyListeners.length){const t=this._anyListeners.slice();for(const n of t)n.apply(this,e)}super.emit.apply(this,e),this._pid&&e.length&&"string"==typeof e[e.length-1]&&(this._lastOffset=e[e.length-1])}ack(e){const t=this;let n=!1;return function(...r){n||(n=!0,t.packet({type:Zt.ACK,id:e,data:r}))}}onack(e){const t=this.acks[e.id];"function"==typeof t&&(t.apply(this,e.data),delete this.acks[e.id])}onconnect(e,t){this.id=e,this.recovered=t&&this._pid===t,this._pid=t,this.connected=!0,this.emitBuffered(),this.emitReserved("connect"),this._drainQueue(!0)}emitBuffered(){this.receiveBuffer.forEach((e=>this.emitEvent(e))),this.receiveBuffer=[],this.sendBuffer.forEach((e=>{this.notifyOutgoingListeners(e),this.packet(e)})),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach((e=>e())),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&this.packet({type:Zt.DISCONNECT}),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(e){return this.flags.compress=e,this}get volatile(){return this.flags.volatile=!0,this}timeout(e){return this.flags.timeout=e,this}onAny(e){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(e),this}prependAny(e){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(e),this}offAny(e){if(!this._anyListeners)return this;if(e){const t=this._anyListeners;for(let n=0;n0&&e.jitter<=1?e.jitter:0,this.attempts=0}an.prototype.duration=function(){var e=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var t=Math.random(),n=Math.floor(t*this.jitter*e);e=1&Math.floor(10*t)?e+n:e-n}return 0|Math.min(e,this.max)},an.prototype.reset=function(){this.attempts=0},an.prototype.setMin=function(e){this.ms=e},an.prototype.setMax=function(e){this.max=e},an.prototype.setJitter=function(e){this.jitter=e};class sn extends se{constructor(e,t){var n;super(),this.nsps={},this.subs=[],e&&"object"==typeof e&&(t=e,e=void 0),(t=t||{}).path=t.path||"/socket.io",this.opts=t,de(this,t),this.reconnection(!1!==t.reconnection),this.reconnectionAttempts(t.reconnectionAttempts||1/0),this.reconnectionDelay(t.reconnectionDelay||1e3),this.reconnectionDelayMax(t.reconnectionDelayMax||5e3),this.randomizationFactor(null!==(n=t.randomizationFactor)&&void 0!==n?n:.5),this.backoff=new an({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(null==t.timeout?2e4:t.timeout),this._readyState="closed",this.uri=e;const r=t.parser||tn;this.encoder=new r.Encoder,this.decoder=new r.Decoder,this._autoConnect=!1!==t.autoConnect,this._autoConnect&&this.open()}reconnection(e){return arguments.length?(this._reconnection=!!e,this):this._reconnection}reconnectionAttempts(e){return void 0===e?this._reconnectionAttempts:(this._reconnectionAttempts=e,this)}reconnectionDelay(e){var t;return void 0===e?this._reconnectionDelay:(this._reconnectionDelay=e,null===(t=this.backoff)||void 0===t||t.setMin(e),this)}randomizationFactor(e){var t;return void 0===e?this._randomizationFactor:(this._randomizationFactor=e,null===(t=this.backoff)||void 0===t||t.setJitter(e),this)}reconnectionDelayMax(e){var t;return void 0===e?this._reconnectionDelayMax:(this._reconnectionDelayMax=e,null===(t=this.backoff)||void 0===t||t.setMax(e),this)}timeout(e){return arguments.length?(this._timeout=e,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&0===this.backoff.attempts&&this.reconnect()}open(e){if(~this._readyState.indexOf("open"))return this;this.engine=new Pt(this.uri,this.opts);const t=this.engine,n=this;this._readyState="opening",this.skipReconnect=!1;const r=nn(t,"open",(function(){n.onopen(),e&&e()})),i=t=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",t),e?e(t):this.maybeReconnectOnOpen()},o=nn(t,"error",i);if(!1!==this._timeout){const e=this._timeout,n=this.setTimeoutFn((()=>{r(),i(new Error("timeout")),t.close()}),e);this.opts.autoUnref&&n.unref(),this.subs.push((()=>{this.clearTimeoutFn(n)}))}return this.subs.push(r),this.subs.push(o),this}connect(e){return this.open(e)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");const e=this.engine;this.subs.push(nn(e,"ping",this.onping.bind(this)),nn(e,"data",this.ondata.bind(this)),nn(e,"error",this.onerror.bind(this)),nn(e,"close",this.onclose.bind(this)),nn(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(e){try{this.decoder.add(e)}catch(e){this.onclose("parse error",e)}}ondecoded(e){Mt((()=>{this.emitReserved("packet",e)}),this.setTimeoutFn)}onerror(e){this.emitReserved("error",e)}socket(e,t){let n=this.nsps[e];return n?this._autoConnect&&!n.active&&n.connect():(n=new on(this,e,t),this.nsps[e]=n),n}_destroy(e){const t=Object.keys(this.nsps);for(const e of t)if(this.nsps[e].active)return;this._close()}_packet(e){const t=this.encoder.encode(e);for(let n=0;ne())),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close"),this.engine&&this.engine.close()}disconnect(){return this._close()}onclose(e,t){this.cleanup(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",e,t),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;const e=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{const t=this.backoff.duration();this._reconnecting=!0;const n=this.setTimeoutFn((()=>{e.skipReconnect||(this.emitReserved("reconnect_attempt",e.backoff.attempts),e.skipReconnect||e.open((t=>{t?(e._reconnecting=!1,e.reconnect(),this.emitReserved("reconnect_error",t)):e.onreconnect()})))}),t);this.opts.autoUnref&&n.unref(),this.subs.push((()=>{this.clearTimeoutFn(n)}))}}onreconnect(){const e=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",e)}}const cn={};function un(e,t){"object"==typeof e&&(t=e,e=void 0);const n=function(e,t="",n){let r=e;n=n||"undefined"!=typeof location&&location,null==e&&(e=n.protocol+"//"+n.host),"string"==typeof e&&("/"===e.charAt(0)&&(e="/"===e.charAt(1)?n.protocol+e:n.host+e),/^(https?|wss?):\/\//.test(e)||(e=void 0!==n?n.protocol+"//"+e:"https://"+e),r=Lt(e)),r.port||(/^(http|ws)$/.test(r.protocol)?r.port="80":/^(http|ws)s$/.test(r.protocol)&&(r.port="443")),r.path=r.path||"/";const i=-1!==r.host.indexOf(":")?"["+r.host+"]":r.host;return r.id=r.protocol+"://"+i+":"+r.port+t,r.href=r.protocol+"://"+i+(n&&n.port===r.port?"":":"+r.port),r}(e,(t=t||{}).path||"/socket.io"),r=n.source,i=n.id,o=n.path,a=cn[i]&&o in cn[i].nsps;let s;return t.forceNew||t["force new connection"]||!1===t.multiplex||a?s=new sn(r,t):(cn[i]||(cn[i]=new sn(r,t)),s=cn[i]),n.query&&!t.query&&(t.query=n.queryKey),s.socket(n.path,t)}function ln(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{c(r.next(e))}catch(e){o(e)}}function s(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((r=r.apply(e,t||[])).next())}))}Object.assign(un,{Manager:sn,Socket:on,io:un,connect:un}),"function"==typeof SuppressedError&&SuppressedError;const fn=(e,t)=>ln(void 0,void 0,void 0,(function*(){const n=t.endsWith("/")?`${t}debug`:`${t}/debug`,r=JSON.stringify(e),i=yield s(n,{method:"POST",headers:{Accept:"application/json","Content-Type":"application/json"},body:r});return yield i.text()}));var dn=void 0!==t?t:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},An=[],hn=[],pn="undefined"!=typeof Uint8Array?Uint8Array:Array,gn=!1;function yn(){gn=!0;for(var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t=0;t<64;++t)An[t]=e[t],hn[e.charCodeAt(t)]=t;hn["-".charCodeAt(0)]=62,hn["_".charCodeAt(0)]=63}function mn(e,t,n){for(var r,i,o=[],a=t;a>18&63]+An[i>>12&63]+An[i>>6&63]+An[63&i]);return o.join("")}function bn(e){var t;gn||yn();for(var n=e.length,r=n%3,i="",o=[],a=16383,s=0,c=n-r;sc?c:s+a));return 1===r?(t=e[n-1],i+=An[t>>2],i+=An[t<<4&63],i+="=="):2===r&&(t=(e[n-2]<<8)+e[n-1],i+=An[t>>10],i+=An[t>>4&63],i+=An[t<<2&63],i+="="),o.push(i),o.join("")}function vn(e,t,n,r,i){var o,a,s=8*i-r-1,c=(1<>1,l=-7,f=n?i-1:0,d=n?-1:1,A=e[t+f];for(f+=d,o=A&(1<<-l)-1,A>>=-l,l+=s;l>0;o=256*o+e[t+f],f+=d,l-=8);for(a=o&(1<<-l)-1,o>>=-l,l+=r;l>0;a=256*a+e[t+f],f+=d,l-=8);if(0===o)o=1-u;else{if(o===c)return a?NaN:1/0*(A?-1:1);a+=Math.pow(2,r),o-=u}return(A?-1:1)*a*Math.pow(2,o-r)}function wn(e,t,n,r,i,o){var a,s,c,u=8*o-i-1,l=(1<>1,d=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,A=r?0:o-1,h=r?1:-1,p=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,a=l):(a=Math.floor(Math.log(t)/Math.LN2),t*(c=Math.pow(2,-a))<1&&(a--,c*=2),(t+=a+f>=1?d/c:d*Math.pow(2,1-f))*c>=2&&(a++,c/=2),a+f>=l?(s=0,a=l):a+f>=1?(s=(t*c-1)*Math.pow(2,i),a+=f):(s=t*Math.pow(2,f-1)*Math.pow(2,i),a=0));i>=8;e[n+A]=255&s,A+=h,s/=256,i-=8);for(a=a<0;e[n+A]=255&a,A+=h,a/=256,u-=8);e[n+A-h]|=128*p}var En={}.toString,In=Array.isArray||function(e){return"[object Array]"==En.call(e)};Sn.TYPED_ARRAY_SUPPORT=void 0===dn.TYPED_ARRAY_SUPPORT||dn.TYPED_ARRAY_SUPPORT;var Bn=Cn();function Cn(){return Sn.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function _n(e,t){if(Cn()=Cn())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+Cn().toString(16)+" bytes");return 0|e}function Dn(e){return!(null==e||!e._isBuffer)}function Tn(e,t){if(Dn(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var n=e.length;if(0===n)return 0;for(var r=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return sr(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return cr(e).length;default:if(r)return sr(e).length;t=(""+t).toLowerCase(),r=!0}}function Nn(e,t,n){var 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 Wn(this,t,n);case"utf8":case"utf-8":return Kn(this,t,n);case"ascii":return Vn(this,t,n);case"latin1":case"binary":return Jn(this,t,n);case"base64":return Yn(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Zn(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function On(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function Ln(e,t,n,r,i){if(0===e.length)return-1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=i?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(i)return-1;n=e.length-1}else if(n<0){if(!i)return-1;n=0}if("string"==typeof t&&(t=Sn.from(t,r)),Dn(t))return 0===t.length?-1:Pn(e,t,n,r,i);if("number"==typeof t)return t&=255,Sn.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):Pn(e,[t],n,r,i);throw new TypeError("val must be string, number or Buffer")}function Pn(e,t,n,r,i){var o,a=1,s=e.length,c=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;a=2,s/=2,c/=2,n/=2}function u(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(i){var l=-1;for(o=n;os&&(n=s-c),o=n;o>=0;o--){for(var f=!0,d=0;di&&(r=i):r=i;var o=t.length;if(o%2!=0)throw new TypeError("Invalid hex string");r>o/2&&(r=o/2);for(var a=0;a>8,i=n%256,o.push(i),o.push(r);return o}(t,e.length-n),e,n,r)}function Yn(e,t,n){return 0===t&&n===e.length?bn(e):bn(e.slice(t,n))}function Kn(e,t,n){n=Math.min(e.length,n);for(var r=[],i=t;i239?4:u>223?3:u>191?2:1;if(i+f<=n)switch(f){case 1:u<128&&(l=u);break;case 2:128==(192&(o=e[i+1]))&&(c=(31&u)<<6|63&o)>127&&(l=c);break;case 3:o=e[i+1],a=e[i+2],128==(192&o)&&128==(192&a)&&(c=(15&u)<<12|(63&o)<<6|63&a)>2047&&(c<55296||c>57343)&&(l=c);break;case 4:o=e[i+1],a=e[i+2],s=e[i+3],128==(192&o)&&128==(192&a)&&128==(192&s)&&(c=(15&u)<<18|(63&o)<<12|(63&a)<<6|63&s)>65535&&c<1114112&&(l=c)}null===l?(l=65533,f=1):l>65535&&(l-=65536,r.push(l>>>10&1023|55296),l=56320|1023&l),r.push(l),i+=f}return function(e){var t=e.length;if(t<=zn)return String.fromCharCode.apply(String,e);for(var n="",r=0;r0&&(e=this.toString("hex",0,50).match(/.{2}/g).join(" "),this.length>50&&(e+=" ... ")),""},Sn.prototype.compare=function(e,t,n,r,i){if(!Dn(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===i&&(i=this.length),t<0||n>e.length||r<0||i>this.length)throw new RangeError("out of range index");if(r>=i&&t>=n)return 0;if(r>=i)return-1;if(t>=n)return 1;if(this===e)return 0;for(var o=(i>>>=0)-(r>>>=0),a=(n>>>=0)-(t>>>=0),s=Math.min(o,a),c=this.slice(r,i),u=e.slice(t,n),l=0;li)&&(n=i),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var o=!1;;)switch(r){case"hex":return Un(this,e,t,n);case"utf8":case"utf-8":return Fn(this,e,t,n);case"ascii":return jn(this,e,t,n);case"latin1":case"binary":return qn(this,e,t,n);case"base64":return Gn(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Hn(this,e,t,n);default:if(o)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),o=!0}},Sn.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var zn=4096;function Vn(e,t,n){var r="";n=Math.min(e.length,n);for(var i=t;ir)&&(n=r);for(var i="",o=t;on)throw new RangeError("Trying to access beyond buffer length")}function Xn(e,t,n,r,i,o){if(!Dn(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||te.length)throw new RangeError("Index out of range")}function er(e,t,n,r){t<0&&(t=65535+t+1);for(var i=0,o=Math.min(e.length-n,2);i>>8*(r?i:1-i)}function tr(e,t,n,r){t<0&&(t=4294967295+t+1);for(var i=0,o=Math.min(e.length-n,4);i>>8*(r?i:3-i)&255}function nr(e,t,n,r,i,o){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function rr(e,t,n,r,i){return i||nr(e,0,n,4),wn(e,t,n,r,23,4),n+4}function ir(e,t,n,r,i){return i||nr(e,0,n,8),wn(e,t,n,r,52,8),n+8}Sn.prototype.slice=function(e,t){var n,r=this.length;if((e=~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),(t=void 0===t?r:~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),t0&&(i*=256);)r+=this[e+--t]*i;return r},Sn.prototype.readUInt8=function(e,t){return t||$n(e,1,this.length),this[e]},Sn.prototype.readUInt16LE=function(e,t){return t||$n(e,2,this.length),this[e]|this[e+1]<<8},Sn.prototype.readUInt16BE=function(e,t){return t||$n(e,2,this.length),this[e]<<8|this[e+1]},Sn.prototype.readUInt32LE=function(e,t){return t||$n(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},Sn.prototype.readUInt32BE=function(e,t){return t||$n(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},Sn.prototype.readIntLE=function(e,t,n){e|=0,t|=0,n||$n(e,t,this.length);for(var r=this[e],i=1,o=0;++o=(i*=128)&&(r-=Math.pow(2,8*t)),r},Sn.prototype.readIntBE=function(e,t,n){e|=0,t|=0,n||$n(e,t,this.length);for(var r=t,i=1,o=this[e+--r];r>0&&(i*=256);)o+=this[e+--r]*i;return o>=(i*=128)&&(o-=Math.pow(2,8*t)),o},Sn.prototype.readInt8=function(e,t){return t||$n(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},Sn.prototype.readInt16LE=function(e,t){t||$n(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},Sn.prototype.readInt16BE=function(e,t){t||$n(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},Sn.prototype.readInt32LE=function(e,t){return t||$n(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},Sn.prototype.readInt32BE=function(e,t){return t||$n(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},Sn.prototype.readFloatLE=function(e,t){return t||$n(e,4,this.length),vn(this,e,!0,23,4)},Sn.prototype.readFloatBE=function(e,t){return t||$n(e,4,this.length),vn(this,e,!1,23,4)},Sn.prototype.readDoubleLE=function(e,t){return t||$n(e,8,this.length),vn(this,e,!0,52,8)},Sn.prototype.readDoubleBE=function(e,t){return t||$n(e,8,this.length),vn(this,e,!1,52,8)},Sn.prototype.writeUIntLE=function(e,t,n,r){e=+e,t|=0,n|=0,r||Xn(this,e,t,n,Math.pow(2,8*n)-1,0);var i=1,o=0;for(this[t]=255&e;++o=0&&(o*=256);)this[t+i]=e/o&255;return t+n},Sn.prototype.writeUInt8=function(e,t,n){return e=+e,t|=0,n||Xn(this,e,t,1,255,0),Sn.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},Sn.prototype.writeUInt16LE=function(e,t,n){return e=+e,t|=0,n||Xn(this,e,t,2,65535,0),Sn.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):er(this,e,t,!0),t+2},Sn.prototype.writeUInt16BE=function(e,t,n){return e=+e,t|=0,n||Xn(this,e,t,2,65535,0),Sn.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):er(this,e,t,!1),t+2},Sn.prototype.writeUInt32LE=function(e,t,n){return e=+e,t|=0,n||Xn(this,e,t,4,4294967295,0),Sn.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):tr(this,e,t,!0),t+4},Sn.prototype.writeUInt32BE=function(e,t,n){return e=+e,t|=0,n||Xn(this,e,t,4,4294967295,0),Sn.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):tr(this,e,t,!1),t+4},Sn.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t|=0,!r){var i=Math.pow(2,8*n-1);Xn(this,e,t,n,i-1,-i)}var o=0,a=1,s=0;for(this[t]=255&e;++o=0&&(a*=256);)e<0&&0===s&&0!==this[t+o+1]&&(s=1),this[t+o]=(e/a|0)-s&255;return t+n},Sn.prototype.writeInt8=function(e,t,n){return e=+e,t|=0,n||Xn(this,e,t,1,127,-128),Sn.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},Sn.prototype.writeInt16LE=function(e,t,n){return e=+e,t|=0,n||Xn(this,e,t,2,32767,-32768),Sn.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):er(this,e,t,!0),t+2},Sn.prototype.writeInt16BE=function(e,t,n){return e=+e,t|=0,n||Xn(this,e,t,2,32767,-32768),Sn.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):er(this,e,t,!1),t+2},Sn.prototype.writeInt32LE=function(e,t,n){return e=+e,t|=0,n||Xn(this,e,t,4,2147483647,-2147483648),Sn.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):tr(this,e,t,!0),t+4},Sn.prototype.writeInt32BE=function(e,t,n){return e=+e,t|=0,n||Xn(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),Sn.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):tr(this,e,t,!1),t+4},Sn.prototype.writeFloatLE=function(e,t,n){return rr(this,e,t,!0,n)},Sn.prototype.writeFloatBE=function(e,t,n){return rr(this,e,t,!1,n)},Sn.prototype.writeDoubleLE=function(e,t,n){return ir(this,e,t,!0,n)},Sn.prototype.writeDoubleBE=function(e,t,n){return ir(this,e,t,!1,n)},Sn.prototype.copy=function(e,t,n,r){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("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t=0;--i)e[i+t]=this[i+n];else if(o<1e3||!Sn.TYPED_ARRAY_SUPPORT)for(i=0;i>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(o=t;o55295&&n<57344){if(!i){if(n>56319){(t-=3)>-1&&o.push(239,191,189);continue}if(a+1===r){(t-=3)>-1&&o.push(239,191,189);continue}i=n;continue}if(n<56320){(t-=3)>-1&&o.push(239,191,189),i=n;continue}n=65536+(i-55296<<10|n-56320)}else i&&(t-=3)>-1&&o.push(239,191,189);if(i=null,n<128){if((t-=1)<0)break;o.push(n)}else if(n<2048){if((t-=2)<0)break;o.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;o.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;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return o}function cr(e){return function(e){var t,n,r,i,o,a;gn||yn();var s=e.length;if(s%4>0)throw new Error("Invalid string. Length must be a multiple of 4");o="="===e[s-2]?2:"="===e[s-1]?1:0,a=new pn(3*s/4-o),r=o>0?s-4:s;var c=0;for(t=0,n=0;t>16&255,a[c++]=i>>8&255,a[c++]=255&i;return 2===o?(i=hn[e.charCodeAt(t)]<<2|hn[e.charCodeAt(t+1)]>>4,a[c++]=255&i):1===o&&(i=hn[e.charCodeAt(t)]<<10|hn[e.charCodeAt(t+1)]<<4|hn[e.charCodeAt(t+2)]>>2,a[c++]=i>>8&255,a[c++]=255&i),a}(function(e){if((e=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}(e).replace(or,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function ur(e,t,n,r){for(var i=0;i=t.length||i>=e.length);++i)t[i+n]=e[i];return i}function lr(e){return null!=e&&(!!e._isBuffer||fr(e)||function(e){return"function"==typeof e.readFloatLE&&"function"==typeof e.slice&&fr(e.slice(0,0))}(e))}function fr(e){return!!e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}var dr="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==t?t:"undefined"!=typeof self?self:{};function Ar(e){if(e.__esModule)return e;var t=e.default;if("function"==typeof t){var n=function e(){return this instanceof e?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach((function(t){var r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,r.get?r:{enumerable:!0,get:function(){return e[t]}})})),n}var hr={},pr={},gr={},yr=Ar(Object.freeze({__proto__:null,Buffer:Sn,INSPECT_MAX_BYTES:50,SlowBuffer:function(e){return+e!=e&&(e=0),Sn.alloc(+e)},isBuffer:lr,kMaxLength:Bn})),mr={};function br(){throw new Error("setTimeout has not been defined")}function vr(){throw new Error("clearTimeout has not been defined")}var wr=br,Er=vr;function Ir(e){if(wr===setTimeout)return setTimeout(e,0);if((wr===br||!wr)&&setTimeout)return wr=setTimeout,setTimeout(e,0);try{return wr(e,0)}catch(t){try{return wr.call(null,e,0)}catch(t){return wr.call(this,e,0)}}}"function"==typeof dn.setTimeout&&(wr=setTimeout),"function"==typeof dn.clearTimeout&&(Er=clearTimeout);var Br,Cr=[],_r=!1,Sr=-1;function Qr(){_r&&Br&&(_r=!1,Br.length?Cr=Br.concat(Cr):Sr=-1,Cr.length&&kr())}function kr(){if(!_r){var e=Ir(Qr);_r=!0;for(var t=Cr.length;t;){for(Br=Cr,Cr=[];++Sr1)for(var n=1;n4294967295)throw new RangeError("requested too many random bytes");var n=Vr.allocUnsafe(e);if(e>0)if(e>zr)for(var r=0;r0&&a.length>i){a.warned=!0;var c=new Error("Possible EventEmitter memory leak detected. "+a.length+" "+t+" listeners added. Use emitter.setMaxListeners() to increase limit");c.name="MaxListenersExceededWarning",c.emitter=e,c.type=t,c.count=a.length,s=c,"function"==typeof console.warn?console.warn(s):console.log(s)}}else a=o[t]=n,++e._eventsCount;return e}function ii(e,t,n){var r=!1;function i(){e.removeListener(t,i),r||(r=!0,n.apply(e,arguments))}return i.listener=n,i}function oi(e){var t=this._events;if(t){var n=t[e];if("function"==typeof n)return 1;if(n)return n.length}return 0}function ai(e,t){for(var n=new Array(t);t--;)n[t]=e[t];return n}ei.prototype=Object.create(null),ti.EventEmitter=ti,ti.usingDomains=!1,ti.prototype.domain=void 0,ti.prototype._events=void 0,ti.prototype._maxListeners=void 0,ti.defaultMaxListeners=10,ti.init=function(){this.domain=null,ti.usingDomains&&(void 0).active,this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=new ei,this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},ti.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||isNaN(e))throw new TypeError('"n" argument must be a positive number');return this._maxListeners=e,this},ti.prototype.getMaxListeners=function(){return ni(this)},ti.prototype.emit=function(e){var t,n,r,i,o,a,s,c="error"===e;if(a=this._events)c=c&&null==a.error;else if(!c)return!1;if(s=this.domain,c){if(t=arguments[1],!s){if(t instanceof Error)throw t;var u=new Error('Uncaught, unspecified "error" event. ('+t+")");throw u.context=t,u}return t||(t=new Error('Uncaught, unspecified "error" event')),t.domainEmitter=this,t.domain=s,t.domainThrown=!1,s.emit("error",t),!1}if(!(n=a[e]))return!1;var l="function"==typeof n;switch(r=arguments.length){case 1:!function(e,t,n){if(t)e.call(n);else for(var r=e.length,i=ai(e,r),o=0;o0;)if(n[o]===t||n[o].listener&&n[o].listener===t){a=n[o].listener,i=o;break}if(i<0)return this;if(1===n.length){if(n[0]=void 0,0==--this._eventsCount)return this._events=new ei,this;delete r[e]}else!function(e,t){for(var n=t,r=n+1,i=e.length;r0?Reflect.ownKeys(this._events):[]};var si=Ar(Object.freeze({__proto__:null,EventEmitter:ti,default:ti})),ci=si.EventEmitter,ui="function"==typeof Object.create?function(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}:function(e,t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e},li=/%[sdj%]/g;function fi(e){if(!Qi(e)){for(var t=[],n=0;n=i)return e;switch(e){case"%s":return String(r[n++]);case"%d":return Number(r[n++]);case"%j":try{return JSON.stringify(r[n++])}catch(e){return"[Circular]"}default:return e}})),a=r[n];n=3&&(n.depth=arguments[2]),arguments.length>=4&&(n.colors=arguments[3]),Bi(t)?n.showHidden=t:t&&qi(n,t),Mi(n.showHidden)&&(n.showHidden=!1),Mi(n.depth)&&(n.depth=2),Mi(n.colors)&&(n.colors=!1),Mi(n.customInspect)&&(n.customInspect=!0),n.colors&&(n.stylize=yi),bi(n,e,n.depth)}function yi(e,t){var n=gi.styles[t];return n?"["+gi.colors[n][0]+"m"+e+"["+gi.colors[n][1]+"m":e}function mi(e,t){return e}function bi(e,t,n){if(e.customInspect&&t&&Ni(t.inspect)&&t.inspect!==gi&&(!t.constructor||t.constructor.prototype!==t)){var r=t.inspect(n,e);return Qi(r)||(r=bi(e,r,n)),r}var i=function(e,t){if(Mi(t))return e.stylize("undefined","undefined");if(Qi(t)){var n="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(n,"string")}return Si(t)?e.stylize(""+t,"number"):Bi(t)?e.stylize(""+t,"boolean"):Ci(t)?e.stylize("null","null"):void 0}(e,t);if(i)return i;var o=Object.keys(t),a=function(e){var t={};return e.forEach((function(e,n){t[e]=!0})),t}(o);if(e.showHidden&&(o=Object.getOwnPropertyNames(t)),Ti(t)&&(o.indexOf("message")>=0||o.indexOf("description")>=0))return wi(t);if(0===o.length){if(Ni(t)){var s=t.name?": "+t.name:"";return e.stylize("[Function"+s+"]","special")}if(xi(t))return e.stylize(RegExp.prototype.toString.call(t),"regexp");if(Di(t))return e.stylize(Date.prototype.toString.call(t),"date");if(Ti(t))return wi(t)}var c,u="",l=!1,f=["{","}"];return Ii(t)&&(l=!0,f=["[","]"]),Ni(t)&&(u=" [Function"+(t.name?": "+t.name:"")+"]"),xi(t)&&(u=" "+RegExp.prototype.toString.call(t)),Di(t)&&(u=" "+Date.prototype.toUTCString.call(t)),Ti(t)&&(u=" "+wi(t)),0!==o.length||l&&0!=t.length?n<0?xi(t)?e.stylize(RegExp.prototype.toString.call(t),"regexp"):e.stylize("[Object]","special"):(e.seen.push(t),c=l?function(e,t,n,r,i){for(var o=[],a=0,s=t.length;a60?n[0]+(""===t?"":t+"\n ")+" "+e.join(",\n ")+" "+n[1]:n[0]+t+" "+e.join(", ")+" "+n[1]}(c,u,f)):f[0]+u+f[1]}function wi(e){return"["+Error.prototype.toString.call(e)+"]"}function Ei(e,t,n,r,i,o){var a,s,c;if((c=Object.getOwnPropertyDescriptor(t,i)||{value:t[i]}).get?s=c.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):c.set&&(s=e.stylize("[Setter]","special")),Gi(r,i)||(a="["+i+"]"),s||(e.seen.indexOf(c.value)<0?(s=Ci(n)?bi(e,c.value,null):bi(e,c.value,n-1)).indexOf("\n")>-1&&(s=o?s.split("\n").map((function(e){return" "+e})).join("\n").substr(2):"\n"+s.split("\n").map((function(e){return" "+e})).join("\n")):s=e.stylize("[Circular]","special")),Mi(a)){if(o&&i.match(/^\d+$/))return s;(a=JSON.stringify(""+i)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(a=a.substr(1,a.length-2),a=e.stylize(a,"name")):(a=a.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),a=e.stylize(a,"string"))}return a+": "+s}function Ii(e){return Array.isArray(e)}function Bi(e){return"boolean"==typeof e}function Ci(e){return null===e}function _i(e){return null==e}function Si(e){return"number"==typeof e}function Qi(e){return"string"==typeof e}function ki(e){return"symbol"==typeof e}function Mi(e){return void 0===e}function xi(e){return Ri(e)&&"[object RegExp]"===Pi(e)}function Ri(e){return"object"==typeof e&&null!==e}function Di(e){return Ri(e)&&"[object Date]"===Pi(e)}function Ti(e){return Ri(e)&&("[object Error]"===Pi(e)||e instanceof Error)}function Ni(e){return"function"==typeof e}function Oi(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e}function Li(e){return lr(e)}function Pi(e){return Object.prototype.toString.call(e)}function Ui(e){return e<10?"0"+e.toString(10):e.toString(10)}gi.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},gi.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};var Fi=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function ji(){var e,t;console.log("%s - %s",(t=[Ui((e=new Date).getHours()),Ui(e.getMinutes()),Ui(e.getSeconds())].join(":"),[e.getDate(),Fi[e.getMonth()],t].join(" ")),fi.apply(null,arguments))}function qi(e,t){if(!t||!Ri(t))return e;for(var n=Object.keys(t),r=n.length;r--;)e[n[r]]=t[n[r]];return e}function Gi(e,t){return Object.prototype.hasOwnProperty.call(e,t)}var Hi,Yi,Ki={inherits:ui,_extend:qi,log:ji,isBuffer:Li,isPrimitive:Oi,isFunction:Ni,isError:Ti,isDate:Di,isObject:Ri,isRegExp:xi,isUndefined:Mi,isSymbol:ki,isString:Qi,isNumber:Si,isNullOrUndefined:_i,isNull:Ci,isBoolean:Bi,isArray:Ii,inspect:gi,deprecate:di,format:fi,debuglog:pi},zi=Ar(Object.freeze({__proto__:null,_extend:qi,debuglog:pi,default:Ki,deprecate:di,format:fi,inherits:ui,inspect:gi,isArray:Ii,isBoolean:Bi,isBuffer:Li,isDate:Di,isError:Ti,isFunction:Ni,isNull:Ci,isNullOrUndefined:_i,isNumber:Si,isObject:Ri,isPrimitive:Oi,isRegExp:xi,isString:Qi,isSymbol:ki,isUndefined:Mi,log:ji}));function Vi(e,t){Wi(e,t),Ji(e)}function Ji(e){e._writableState&&!e._writableState.emitClose||e._readableState&&!e._readableState.emitClose||e.emit("close")}function Wi(e,t){e.emit("error",t)}var Zi={destroy:function(e,t){var n=this,r=this._readableState&&this._readableState.destroyed,i=this._writableState&&this._writableState.destroyed;return r||i?(t?t(e):e&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,Mr(Wi,this,e)):Mr(Wi,this,e)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,(function(e){!t&&e?n._writableState?n._writableState.errorEmitted?Mr(Ji,n):(n._writableState.errorEmitted=!0,Mr(Vi,n,e)):Mr(Vi,n,e):t?(Mr(Ji,n),t(e)):Mr(Ji,n)})),this)},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)},errorOrDestroy:function(e,t){var n=e._readableState,r=e._writableState;n&&n.autoDestroy||r&&r.autoDestroy?e.destroy(t):e.emit("error",t)}},$i={},Xi={};function eo(e,t,n){n||(n=Error);var r=function(e){var n,r;function i(n,r,i){return e.call(this,function(e,n,r){return"string"==typeof t?t:t(e,n,r)}(n,r,i))||this}return r=e,(n=i).prototype=Object.create(r.prototype),n.prototype.constructor=n,n.__proto__=r,i}(n);r.prototype.name=n.name,r.prototype.code=e,Xi[e]=r}function to(e,t){if(Array.isArray(e)){var n=e.length;return e=e.map((function(e){return String(e)})),n>2?"one of ".concat(t," ").concat(e.slice(0,n-1).join(", "),", or ")+e[n-1]:2===n?"one of ".concat(t," ").concat(e[0]," or ").concat(e[1]):"of ".concat(t," ").concat(e[0])}return"of ".concat(t," ").concat(String(e))}eo("ERR_INVALID_OPT_VALUE",(function(e,t){return'The value "'+t+'" is invalid for option "'+e+'"'}),TypeError),eo("ERR_INVALID_ARG_TYPE",(function(e,t,n){var r,i;if("string"==typeof t&&("not ","not "===t.substr(0,4))?(r="must not be",t=t.replace(/^not /,"")):r="must be",function(e,t,n){return(void 0===n||n>e.length)&&(n=e.length)," argument"===e.substring(n-9,n)}(e))i="The ".concat(e," ").concat(r," ").concat(to(t,"type"));else{var o=function(e,t,n){return"number"!=typeof n&&(n=0),!(n+1>e.length)&&-1!==e.indexOf(".",n)}(e)?"property":"argument";i='The "'.concat(e,'" ').concat(o," ").concat(r," ").concat(to(t,"type"))}return i+". Received type ".concat(typeof n)}),TypeError),eo("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),eo("ERR_METHOD_NOT_IMPLEMENTED",(function(e){return"The "+e+" method is not implemented"})),eo("ERR_STREAM_PREMATURE_CLOSE","Premature close"),eo("ERR_STREAM_DESTROYED",(function(e){return"Cannot call "+e+" after a stream was destroyed"})),eo("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),eo("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),eo("ERR_STREAM_WRITE_AFTER_END","write after end"),eo("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),eo("ERR_UNKNOWN_ENCODING",(function(e){return"Unknown encoding: "+e}),TypeError),eo("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),$i.codes=Xi;var no,ro,io,oo,ao,so,co=$i.codes.ERR_INVALID_OPT_VALUE,uo={getHighWaterMark:function(e,t,n,r){var i=function(e,t,n){return null!=e.highWaterMark?e.highWaterMark:t?e[n]:null}(t,r,n);if(null!=i){if(!isFinite(i)||Math.floor(i)!==i||i<0)throw new co(r?n:"highWaterMark",i);return Math.floor(i)}return e.objectMode?16:16384}};function lo(){if(ro)return no;function e(e){try{if(!dr.localStorage)return!1}catch(e){return!1}var t=dr.localStorage[e];return null!=t&&"true"===String(t).toLowerCase()}return ro=1,no=function(t,n){if(e("noDeprecation"))return t;var r=!1;return function(){if(!r){if(e("throwDeprecation"))throw new Error(n);e("traceDeprecation")?console.trace(n):console.warn(n),r=!0}return t.apply(this,arguments)}},no}function fo(){if(oo)return io;function e(e){var t=this;this.next=null,this.entry=null,this.finish=function(){!function(e,t,n){var r=e.entry;for(e.entry=null;r;){var i=r.callback;t.pendingcb--,i(void 0),r=r.next}t.corkedRequestsFree.next=e}(t,e)}}var t;oo=1,io=w,w.WritableState=v;var n,r={deprecate:lo()},i=ci,o=yr.Buffer,a=(void 0!==dr?dr:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{}).Uint8Array||function(){},s=Zi,c=uo.getHighWaterMark,u=$i.codes,l=u.ERR_INVALID_ARG_TYPE,f=u.ERR_METHOD_NOT_IMPLEMENTED,d=u.ERR_MULTIPLE_CALLBACK,A=u.ERR_STREAM_CANNOT_PIPE,h=u.ERR_STREAM_DESTROYED,p=u.ERR_STREAM_NULL_VALUES,g=u.ERR_STREAM_WRITE_AFTER_END,y=u.ERR_UNKNOWN_ENCODING,m=s.errorOrDestroy;function b(){}function v(n,r,i){t=t||Ao(),n=n||{},"boolean"!=typeof i&&(i=r instanceof t),this.objectMode=!!n.objectMode,i&&(this.objectMode=this.objectMode||!!n.writableObjectMode),this.highWaterMark=c(this,n,"writableHighWaterMark",i),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var o=!1===n.decodeStrings;this.decodeStrings=!o,this.defaultEncoding=n.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){!function(e,t){var n=e._writableState,r=n.sync,i=n.writecb;if("function"!=typeof i)throw new d;if(function(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}(n),t)!function(e,t,n,r,i){--t.pendingcb,n?(Mr(i,r),Mr(S,e,t),e._writableState.errorEmitted=!0,m(e,r)):(i(r),e._writableState.errorEmitted=!0,m(e,r),S(e,t))}(e,n,r,t,i);else{var o=C(n)||e.destroyed;o||n.corked||n.bufferProcessing||!n.bufferedRequest||B(e,n),r?Mr(I,e,n,o,i):I(e,n,o,i)}}(r,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!1!==n.emitClose,this.autoDestroy=!!n.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new e(this)}function w(e){var r=this instanceof(t=t||Ao());if(!r&&!n.call(w,this))return new w(e);this._writableState=new v(e,this,r),this.writable=!0,e&&("function"==typeof e.write&&(this._write=e.write),"function"==typeof e.writev&&(this._writev=e.writev),"function"==typeof e.destroy&&(this._destroy=e.destroy),"function"==typeof e.final&&(this._final=e.final)),i.call(this)}function E(e,t,n,r,i,o,a){t.writelen=r,t.writecb=a,t.writing=!0,t.sync=!0,t.destroyed?t.onwrite(new h("write")):n?e._writev(i,t.onwrite):e._write(i,o,t.onwrite),t.sync=!1}function I(e,t,n,r){n||function(e,t){0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}(e,t),t.pendingcb--,r(),S(e,t)}function B(t,n){n.bufferProcessing=!0;var r=n.bufferedRequest;if(t._writev&&r&&r.next){var i=n.bufferedRequestCount,o=new Array(i),a=n.corkedRequestsFree;a.entry=r;for(var s=0,c=!0;r;)o[s]=r,r.isBuf||(c=!1),r=r.next,s+=1;o.allBuffers=c,E(t,n,!0,n.length,o,"",a.finish),n.pendingcb++,n.lastBufferedRequest=null,a.next?(n.corkedRequestsFree=a.next,a.next=null):n.corkedRequestsFree=new e(n),n.bufferedRequestCount=0}else{for(;r;){var u=r.chunk,l=r.encoding,f=r.callback;if(E(t,n,!1,n.objectMode?1:u.length,u,l,f),r=r.next,n.bufferedRequestCount--,n.writing)break}null===r&&(n.lastBufferedRequest=null)}n.bufferedRequest=r,n.bufferProcessing=!1}function C(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function _(e,t){e._final((function(n){t.pendingcb--,n&&m(e,n),t.prefinished=!0,e.emit("prefinish"),S(e,t)}))}function S(e,t){var n=C(t);if(n&&(function(e,t){t.prefinished||t.finalCalled||("function"!=typeof e._final||t.destroyed?(t.prefinished=!0,e.emit("prefinish")):(t.pendingcb++,t.finalCalled=!0,Mr(_,e,t)))}(e,t),0===t.pendingcb&&(t.finished=!0,e.emit("finish"),t.autoDestroy))){var r=e._readableState;(!r||r.autoDestroy&&r.endEmitted)&&e.destroy()}return n}return $r(w,i),v.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},function(){try{Object.defineProperty(v.prototype,"buffer",{get:r.deprecate((function(){return this.getBuffer()}),"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(e){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(n=Function.prototype[Symbol.hasInstance],Object.defineProperty(w,Symbol.hasInstance,{value:function(e){return!!n.call(this,e)||this===w&&e&&e._writableState instanceof v}})):n=function(e){return e instanceof this},w.prototype.pipe=function(){m(this,new A)},w.prototype.write=function(e,t,n){var r,i=this._writableState,s=!1,c=!i.objectMode&&(r=e,o.isBuffer(r)||r instanceof a);return c&&!o.isBuffer(e)&&(e=function(e){return o.from(e)}(e)),"function"==typeof t&&(n=t,t=null),c?t="buffer":t||(t=i.defaultEncoding),"function"!=typeof n&&(n=b),i.ending?function(e,t){var n=new g;m(e,n),Mr(t,n)}(this,n):(c||function(e,t,n,r){var i;return null===n?i=new p:"string"==typeof n||t.objectMode||(i=new l("chunk",["string","Buffer"],n)),!i||(m(e,i),Mr(r,i),!1)}(this,i,e,n))&&(i.pendingcb++,s=function(e,t,n,r,i,a){if(!n){var s=function(e,t,n){return e.objectMode||!1===e.decodeStrings||"string"!=typeof t||(t=o.from(t,n)),t}(t,r,i);r!==s&&(n=!0,i="buffer",r=s)}var c=t.objectMode?1:r.length;t.length+=c;var u=t.length-1))throw new y(e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(w.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(w.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),w.prototype._write=function(e,t,n){n(new f("_write()"))},w.prototype._writev=null,w.prototype.end=function(e,t,n){var r=this._writableState;return"function"==typeof e?(n=e,e=null,t=null):"function"==typeof t&&(n=t,t=null),null!=e&&this.write(e,t),r.corked&&(r.corked=1,this.uncork()),r.ending||function(e,t,n){t.ending=!0,S(e,t),n&&(t.finished?Mr(n):e.once("finish",n)),t.ended=!0,e.writable=!1}(this,r,n),this},Object.defineProperty(w.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(w.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),w.prototype.destroy=s.destroy,w.prototype._undestroy=s.undestroy,w.prototype._destroy=function(e,t){t(e)},io}function Ao(){if(so)return ao;so=1;var e=Object.keys||function(e){var t=[];for(var n in e)t.push(n);return t};ao=a;var t=_o(),n=fo();$r(a,t);for(var r=e(n.prototype),i=0;i>5==6?2:e>>4==14?3:e>>3==30?4:e>>6==2?-1:-2}function i(e){var t=this.lastTotal-this.lastNeed,n=function(e,t,n){if(128!=(192&t[0]))return e.lastNeed=0,"�";if(e.lastNeed>1&&t.length>1){if(128!=(192&t[1]))return e.lastNeed=1,"�";if(e.lastNeed>2&&t.length>2&&128!=(192&t[2]))return e.lastNeed=2,"�"}}(this,e);return void 0!==n?n:this.lastNeed<=e.length?(e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(e.copy(this.lastChar,t,0,e.length),void(this.lastNeed-=e.length))}function o(e,t){if((e.length-t)%2==0){var n=e.toString("utf16le",t);if(n){var r=n.charCodeAt(n.length-1);if(r>=55296&&r<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],n.slice(0,-1)}return n}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function a(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var n=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,n)}return t}function s(e,t){var n=(e.length-t)%3;return 0===n?e.toString("base64",t):(this.lastNeed=3-n,this.lastTotal=3,1===n?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-n))}function c(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function u(e){return e.toString(this.encoding)}function l(e){return e&&e.length?this.write(e):""}return po.StringDecoder=n,n.prototype.write=function(e){if(0===e.length)return"";var t,n;if(this.lastNeed){if(void 0===(t=this.fillLast(e)))return"";n=this.lastNeed,this.lastNeed=0}else n=0;return n=0?(o>0&&(e.lastNeed=o-1),o):--i=0?(o>0&&(e.lastNeed=o-2),o):--i=0?(o>0&&(2===o?o=0:e.lastNeed=o-3),o):0}(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=n;var i=e.length-(n-this.lastNeed);return e.copy(this.lastChar,0,i),e.toString("utf8",t,i)},n.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length},po}var yo=$i.codes.ERR_STREAM_PREMATURE_CLOSE;function mo(){}var bo,vo,wo,Eo,Io,Bo,Co=function e(t,n,r){if("function"==typeof n)return e(t,null,n);n||(n={}),r=function(e){var t=!1;return function(){if(!t){t=!0;for(var n=arguments.length,r=new Array(n),i=0;i0?this.tail.next=t:this.head=t,this.tail=t,++this.length}},{key:"unshift",value:function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length}},{key:"shift",value:function(){if(0!==this.length){var e=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(e){if(0===this.length)return"";for(var t=this.head,n=""+t.data;t=t.next;)n+=e+t.data;return n}},{key:"concat",value:function(e){if(0===this.length)return o.alloc(0);for(var t,n,r,i=o.allocUnsafe(e>>>0),a=this.head,s=0;a;)t=a.data,n=i,r=s,o.prototype.copy.call(t,n,r),s+=a.data.length,a=a.next;return i}},{key:"consume",value:function(e,t){var n;return ei.length?i.length:e;if(o===i.length?r+=i:r+=i.slice(0,e),0==(e-=o)){o===i.length?(++n,t.next?this.head=t.next:this.head=this.tail=null):(this.head=t,t.data=i.slice(o));break}++n}return this.length-=n,r}},{key:"_getBuffer",value:function(e){var t=o.allocUnsafe(e),n=this.head,r=1;for(n.data.copy(t),e-=n.data.length;n=n.next;){var i=n.data,a=e>i.length?i.length:e;if(i.copy(t,t.length-e,0,a),0==(e-=a)){a===i.length?(++r,n.next?this.head=n.next:this.head=this.tail=null):(this.head=n,n.data=i.slice(a));break}++r}return this.length-=r,t}},{key:s,value:function(e,n){return a(this,t(t({},n),{},{depth:0,customInspect:!1}))}}],i&&r(n.prototype,i),Object.defineProperty(n,"prototype",{writable:!1}),e}(),Hi}(),f=Zi,d=uo.getHighWaterMark,A=$i.codes,h=A.ERR_INVALID_ARG_TYPE,p=A.ERR_STREAM_PUSH_AFTER_EOF,g=A.ERR_METHOD_NOT_IMPLEMENTED,y=A.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;$r(w,r);var m=f.errorOrDestroy,b=["error","close","destroy","pause","resume"];function v(t,n,r){e=e||Ao(),t=t||{},"boolean"!=typeof r&&(r=n instanceof e),this.objectMode=!!t.objectMode,r&&(this.objectMode=this.objectMode||!!t.readableObjectMode),this.highWaterMark=d(this,t,"readableHighWaterMark",r),this.buffer=new l,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=!1!==t.emitClose,this.autoDestroy=!!t.autoDestroy,this.destroyed=!1,this.defaultEncoding=t.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,t.encoding&&(s||(s=go().StringDecoder),this.decoder=new s(t.encoding),this.encoding=t.encoding)}function w(t){if(e=e||Ao(),!(this instanceof w))return new w(t);var n=this instanceof e;this._readableState=new v(t,this,n),this.readable=!0,t&&("function"==typeof t.read&&(this._read=t.read),"function"==typeof t.destroy&&(this._destroy=t.destroy)),r.call(this)}function E(e,n,r,a,s){t("readableAddChunk",n);var c,u=e._readableState;if(null===n)u.reading=!1,function(e,n){if(t("onEofChunk"),!n.ended){if(n.decoder){var r=n.decoder.end();r&&r.length&&(n.buffer.push(r),n.length+=n.objectMode?1:r.length)}n.ended=!0,n.sync?_(e):(n.needReadable=!1,n.emittedReadable||(n.emittedReadable=!0,S(e)))}}(e,u);else if(s||(c=function(e,t){var n,r;return r=t,i.isBuffer(r)||r instanceof o||"string"==typeof t||void 0===t||e.objectMode||(n=new h("chunk",["string","Buffer","Uint8Array"],t)),n}(u,n)),c)m(e,c);else if(u.objectMode||n&&n.length>0)if("string"==typeof n||u.objectMode||Object.getPrototypeOf(n)===i.prototype||(n=function(e){return i.from(e)}(n)),a)u.endEmitted?m(e,new y):I(e,u,n,!0);else if(u.ended)m(e,new p);else{if(u.destroyed)return!1;u.reading=!1,u.decoder&&!r?(n=u.decoder.write(n),u.objectMode||0!==n.length?I(e,u,n,!1):Q(e,u)):I(e,u,n,!1)}else a||(u.reading=!1,Q(e,u));return!u.ended&&(u.lengtht.highWaterMark&&(t.highWaterMark=function(e){return e>=B?e=B:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}function _(e){var n=e._readableState;t("emitReadable",n.needReadable,n.emittedReadable),n.needReadable=!1,n.emittedReadable||(t("emitReadable",n.flowing),n.emittedReadable=!0,Mr(S,e))}function S(e){var n=e._readableState;t("emitReadable_",n.destroyed,n.length,n.ended),n.destroyed||!n.length&&!n.ended||(e.emit("readable"),n.emittedReadable=!1),n.needReadable=!n.flowing&&!n.ended&&n.length<=n.highWaterMark,D(e)}function Q(e,t){t.readingMore||(t.readingMore=!0,Mr(k,e,t))}function k(e,n){for(;!n.reading&&!n.ended&&(n.length0,t.resumeScheduled&&!t.paused?t.flowing=!0:e.listenerCount("data")>0&&e.resume()}function x(e){t("readable nexttick read 0"),e.read(0)}function R(e,n){t("resume",n.reading),n.reading||e.read(0),n.resumeScheduled=!1,e.emit("resume"),D(e),n.flowing&&!n.reading&&e.read(0)}function D(e){var n=e._readableState;for(t("flow",n.flowing);n.flowing&&null!==e.read(););}function T(e,t){return 0===t.length?null:(t.objectMode?n=t.buffer.shift():!e||e>=t.length?(n=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.first():t.buffer.concat(t.length),t.buffer.clear()):n=t.buffer.consume(e,t.decoder),n);var n}function N(e){var n=e._readableState;t("endReadable",n.endEmitted),n.endEmitted||(n.ended=!0,Mr(O,n,e))}function O(e,n){if(t("endReadableNT",e.endEmitted,e.length),!e.endEmitted&&0===e.length&&(e.endEmitted=!0,n.readable=!1,n.emit("end"),e.autoDestroy)){var r=n._writableState;(!r||r.autoDestroy&&r.finished)&&n.destroy()}}function L(e,t){for(var n=0,r=e.length;n=n.highWaterMark:n.length>0)||n.ended))return t("read: emitReadable",n.length,n.ended),0===n.length&&n.ended?N(this):_(this),null;if(0===(e=C(e,n))&&n.ended)return 0===n.length&&N(this),null;var i,o=n.needReadable;return t("need readable",o),(0===n.length||n.length-e0?T(e,n):null)?(n.needReadable=n.length<=n.highWaterMark,e=0):(n.length-=e,n.awaitDrain=0),0===n.length&&(n.ended||(n.needReadable=!0),r!==e&&n.ended&&N(this)),null!==i&&this.emit("data",i),i},w.prototype._read=function(e){m(this,new g("_read()"))},w.prototype.pipe=function(e,r){var i=this,o=this._readableState;switch(o.pipesCount){case 0:o.pipes=e;break;case 1:o.pipes=[o.pipes,e];break;default:o.pipes.push(e)}o.pipesCount+=1,t("pipe count=%d opts=%j",o.pipesCount,r);var a=r&&!1===r.end||e===Gr.stdout||e===Gr.stderr?h:s;function s(){t("onend"),e.end()}o.endEmitted?Mr(a):i.once("end",a),e.on("unpipe",(function n(r,a){t("onunpipe"),r===i&&a&&!1===a.hasUnpiped&&(a.hasUnpiped=!0,t("cleanup"),e.removeListener("close",d),e.removeListener("finish",A),e.removeListener("drain",c),e.removeListener("error",f),e.removeListener("unpipe",n),i.removeListener("end",s),i.removeListener("end",h),i.removeListener("data",l),u=!0,!o.awaitDrain||e._writableState&&!e._writableState.needDrain||c())}));var c=function(e){return function(){var r=e._readableState;t("pipeOnDrain",r.awaitDrain),r.awaitDrain&&r.awaitDrain--,0===r.awaitDrain&&n(e,"data")&&(r.flowing=!0,D(e))}}(i);e.on("drain",c);var u=!1;function l(n){t("ondata");var r=e.write(n);t("dest.write",r),!1===r&&((1===o.pipesCount&&o.pipes===e||o.pipesCount>1&&-1!==L(o.pipes,e))&&!u&&(t("false write response, pause",o.awaitDrain),o.awaitDrain++),i.pause())}function f(r){t("onerror",r),h(),e.removeListener("error",f),0===n(e,"error")&&m(e,r)}function d(){e.removeListener("finish",A),h()}function A(){t("onfinish"),e.removeListener("close",d),h()}function h(){t("unpipe"),i.unpipe(e)}return i.on("data",l),function(e,t,n){if("function"==typeof e.prependListener)return e.prependListener(t,n);e._events&&e._events[t]?Array.isArray(e._events[t])?e._events[t].unshift(n):e._events[t]=[n,e._events[t]]:e.on(t,n)}(e,"error",f),e.once("close",d),e.once("finish",A),e.emit("pipe",i),o.flowing||(t("pipe resume"),i.resume()),e},w.prototype.unpipe=function(e){var t=this._readableState,n={hasUnpiped:!1};if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes||(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,n)),this;if(!e){var r=t.pipes,i=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var o=0;o0,!1!==o.flowing&&this.resume()):"readable"===e&&(o.endEmitted||o.readableListening||(o.readableListening=o.needReadable=!0,o.flowing=!1,o.emittedReadable=!1,t("on readable",o.length,o.reading),o.length?_(this):o.reading||Mr(x,this))),i},w.prototype.addListener=w.prototype.on,w.prototype.removeListener=function(e,t){var n=r.prototype.removeListener.call(this,e,t);return"readable"===e&&Mr(M,this),n},w.prototype.removeAllListeners=function(e){var t=r.prototype.removeAllListeners.apply(this,arguments);return"readable"!==e&&void 0!==e||Mr(M,this),t},w.prototype.resume=function(){var e=this._readableState;return e.flowing||(t("resume"),e.flowing=!e.readableListening,function(e,t){t.resumeScheduled||(t.resumeScheduled=!0,Mr(R,e,t))}(this,e)),e.paused=!1,this},w.prototype.pause=function(){return t("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(t("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},w.prototype.wrap=function(e){var n=this,r=this._readableState,i=!1;for(var o in e.on("end",(function(){if(t("wrapped end"),r.decoder&&!r.ended){var e=r.decoder.end();e&&e.length&&n.push(e)}n.push(null)})),e.on("data",(function(o){t("wrapped data"),r.decoder&&(o=r.decoder.write(o)),r.objectMode&&null==o||(r.objectMode||o&&o.length)&&(n.push(o)||(i=!0,e.pause()))})),e)void 0===this[o]&&"function"==typeof e[o]&&(this[o]=function(t){return function(){return e[t].apply(e,arguments)}}(o));for(var a=0;a0,(function(e){r||(r=e),e&&o.forEach(Ko),a||(o.forEach(Ko),i(r))}))}));return t.reduce(zo)};var Jo=Xr.exports,Wo=Kr.Buffer,Zo=Jo.Transform;function $o(e){Zo.call(this),this._block=Wo.allocUnsafe(e),this._blockSize=e,this._blockOffset=0,this._length=[0,0,0,0],this._finalized=!1}$r($o,Zo),$o.prototype._transform=function(e,t,n){var r=null;try{this.update(e,t)}catch(e){r=e}n(r)},$o.prototype._flush=function(e){var t=null;try{this.push(this.digest())}catch(e){t=e}e(t)},$o.prototype.update=function(e,t){if(function(e,t){if(!Wo.isBuffer(e)&&"string"!=typeof e)throw new TypeError("Data must be a string or a buffer")}(e),this._finalized)throw new Error("Digest already called");Wo.isBuffer(e)||(e=Wo.from(e,t));for(var n=this._block,r=0;this._blockOffset+e.length-r>=this._blockSize;){for(var i=this._blockOffset;i0;++o)this._length[o]+=a,(a=this._length[o]/4294967296|0)>0&&(this._length[o]-=4294967296*a);return this},$o.prototype._update=function(){throw new Error("_update is not implemented")},$o.prototype.digest=function(e){if(this._finalized)throw new Error("Digest already called");this._finalized=!0;var t=this._digest();void 0!==e&&(t=t.toString(e)),this._block.fill(0),this._blockOffset=0;for(var n=0;n<4;++n)this._length[n]=0;return t},$o.prototype._digest=function(){throw new Error("_digest is not implemented")};var Xo=$o,ea=$r,ta=Xo,na=Kr.Buffer,ra=new Array(16);function ia(){ta.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878}function oa(e,t){return e<>>32-t}function aa(e,t,n,r,i,o,a){return oa(e+(t&n|~t&r)+i+o|0,a)+t|0}function sa(e,t,n,r,i,o,a){return oa(e+(t&r|n&~r)+i+o|0,a)+t|0}function ca(e,t,n,r,i,o,a){return oa(e+(t^n^r)+i+o|0,a)+t|0}function ua(e,t,n,r,i,o,a){return oa(e+(n^(t|~r))+i+o|0,a)+t|0}ea(ia,ta),ia.prototype._update=function(){for(var e=ra,t=0;t<16;++t)e[t]=this._block.readInt32LE(4*t);var n=this._a,r=this._b,i=this._c,o=this._d;n=aa(n,r,i,o,e[0],3614090360,7),o=aa(o,n,r,i,e[1],3905402710,12),i=aa(i,o,n,r,e[2],606105819,17),r=aa(r,i,o,n,e[3],3250441966,22),n=aa(n,r,i,o,e[4],4118548399,7),o=aa(o,n,r,i,e[5],1200080426,12),i=aa(i,o,n,r,e[6],2821735955,17),r=aa(r,i,o,n,e[7],4249261313,22),n=aa(n,r,i,o,e[8],1770035416,7),o=aa(o,n,r,i,e[9],2336552879,12),i=aa(i,o,n,r,e[10],4294925233,17),r=aa(r,i,o,n,e[11],2304563134,22),n=aa(n,r,i,o,e[12],1804603682,7),o=aa(o,n,r,i,e[13],4254626195,12),i=aa(i,o,n,r,e[14],2792965006,17),n=sa(n,r=aa(r,i,o,n,e[15],1236535329,22),i,o,e[1],4129170786,5),o=sa(o,n,r,i,e[6],3225465664,9),i=sa(i,o,n,r,e[11],643717713,14),r=sa(r,i,o,n,e[0],3921069994,20),n=sa(n,r,i,o,e[5],3593408605,5),o=sa(o,n,r,i,e[10],38016083,9),i=sa(i,o,n,r,e[15],3634488961,14),r=sa(r,i,o,n,e[4],3889429448,20),n=sa(n,r,i,o,e[9],568446438,5),o=sa(o,n,r,i,e[14],3275163606,9),i=sa(i,o,n,r,e[3],4107603335,14),r=sa(r,i,o,n,e[8],1163531501,20),n=sa(n,r,i,o,e[13],2850285829,5),o=sa(o,n,r,i,e[2],4243563512,9),i=sa(i,o,n,r,e[7],1735328473,14),n=ca(n,r=sa(r,i,o,n,e[12],2368359562,20),i,o,e[5],4294588738,4),o=ca(o,n,r,i,e[8],2272392833,11),i=ca(i,o,n,r,e[11],1839030562,16),r=ca(r,i,o,n,e[14],4259657740,23),n=ca(n,r,i,o,e[1],2763975236,4),o=ca(o,n,r,i,e[4],1272893353,11),i=ca(i,o,n,r,e[7],4139469664,16),r=ca(r,i,o,n,e[10],3200236656,23),n=ca(n,r,i,o,e[13],681279174,4),o=ca(o,n,r,i,e[0],3936430074,11),i=ca(i,o,n,r,e[3],3572445317,16),r=ca(r,i,o,n,e[6],76029189,23),n=ca(n,r,i,o,e[9],3654602809,4),o=ca(o,n,r,i,e[12],3873151461,11),i=ca(i,o,n,r,e[15],530742520,16),n=ua(n,r=ca(r,i,o,n,e[2],3299628645,23),i,o,e[0],4096336452,6),o=ua(o,n,r,i,e[7],1126891415,10),i=ua(i,o,n,r,e[14],2878612391,15),r=ua(r,i,o,n,e[5],4237533241,21),n=ua(n,r,i,o,e[12],1700485571,6),o=ua(o,n,r,i,e[3],2399980690,10),i=ua(i,o,n,r,e[10],4293915773,15),r=ua(r,i,o,n,e[1],2240044497,21),n=ua(n,r,i,o,e[8],1873313359,6),o=ua(o,n,r,i,e[15],4264355552,10),i=ua(i,o,n,r,e[6],2734768916,15),r=ua(r,i,o,n,e[13],1309151649,21),n=ua(n,r,i,o,e[4],4149444226,6),o=ua(o,n,r,i,e[11],3174756917,10),i=ua(i,o,n,r,e[2],718787259,15),r=ua(r,i,o,n,e[9],3951481745,21),this._a=this._a+n|0,this._b=this._b+r|0,this._c=this._c+i|0,this._d=this._d+o|0},ia.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var e=na.allocUnsafe(16);return e.writeInt32LE(this._a,0),e.writeInt32LE(this._b,4),e.writeInt32LE(this._c,8),e.writeInt32LE(this._d,12),e};var la=ia,fa=yr.Buffer,da=$r,Aa=Xo,ha=new Array(16),pa=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],ga=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],ya=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],ma=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11],ba=[0,1518500249,1859775393,2400959708,2840853838],va=[1352829926,1548603684,1836072691,2053994217,0];function wa(){Aa.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520}function Ea(e,t){return e<>>32-t}function Ia(e,t,n,r,i,o,a,s){return Ea(e+(t^n^r)+o+a|0,s)+i|0}function Ba(e,t,n,r,i,o,a,s){return Ea(e+(t&n|~t&r)+o+a|0,s)+i|0}function Ca(e,t,n,r,i,o,a,s){return Ea(e+((t|~n)^r)+o+a|0,s)+i|0}function _a(e,t,n,r,i,o,a,s){return Ea(e+(t&r|n&~r)+o+a|0,s)+i|0}function Sa(e,t,n,r,i,o,a,s){return Ea(e+(t^(n|~r))+o+a|0,s)+i|0}da(wa,Aa),wa.prototype._update=function(){for(var e=ha,t=0;t<16;++t)e[t]=this._block.readInt32LE(4*t);for(var n=0|this._a,r=0|this._b,i=0|this._c,o=0|this._d,a=0|this._e,s=0|this._a,c=0|this._b,u=0|this._c,l=0|this._d,f=0|this._e,d=0;d<80;d+=1){var A,h;d<16?(A=Ia(n,r,i,o,a,e[pa[d]],ba[0],ya[d]),h=Sa(s,c,u,l,f,e[ga[d]],va[0],ma[d])):d<32?(A=Ba(n,r,i,o,a,e[pa[d]],ba[1],ya[d]),h=_a(s,c,u,l,f,e[ga[d]],va[1],ma[d])):d<48?(A=Ca(n,r,i,o,a,e[pa[d]],ba[2],ya[d]),h=Ca(s,c,u,l,f,e[ga[d]],va[2],ma[d])):d<64?(A=_a(n,r,i,o,a,e[pa[d]],ba[3],ya[d]),h=Ba(s,c,u,l,f,e[ga[d]],va[3],ma[d])):(A=Sa(n,r,i,o,a,e[pa[d]],ba[4],ya[d]),h=Ia(s,c,u,l,f,e[ga[d]],va[4],ma[d])),n=a,a=o,o=Ea(i,10),i=r,r=A,s=f,f=l,l=Ea(u,10),u=c,c=h}var p=this._b+i+l|0;this._b=this._c+o+f|0,this._c=this._d+a+s|0,this._d=this._e+n+c|0,this._e=this._a+r+u|0,this._a=p},wa.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var e=fa.alloc?fa.alloc(20):new fa(20);return e.writeInt32LE(this._a,0),e.writeInt32LE(this._b,4),e.writeInt32LE(this._c,8),e.writeInt32LE(this._d,12),e.writeInt32LE(this._e,16),e};var Qa=wa,ka={exports:{}},Ma=Kr.Buffer;function xa(e,t){this._block=Ma.alloc(e),this._finalSize=t,this._blockSize=e,this._len=0}xa.prototype.update=function(e,t){"string"==typeof e&&(t=t||"utf8",e=Ma.from(e,t));for(var n=this._block,r=this._blockSize,i=e.length,o=this._len,a=0;a=this._finalSize&&(this._update(this._block),this._block.fill(0));var n=8*this._len;if(n<=4294967295)this._block.writeUInt32BE(n,this._blockSize-4);else{var r=(4294967295&n)>>>0,i=(n-r)/4294967296;this._block.writeUInt32BE(i,this._blockSize-8),this._block.writeUInt32BE(r,this._blockSize-4)}this._update(this._block);var o=this._hash();return e?o.toString(e):o},xa.prototype._update=function(){throw new Error("_update must be implemented by subclass")};var Ra=xa,Da=$r,Ta=Ra,Na=Kr.Buffer,Oa=[1518500249,1859775393,-1894007588,-899497514],La=new Array(80);function Pa(){this.init(),this._w=La,Ta.call(this,64,56)}function Ua(e){return e<<30|e>>>2}function Fa(e,t,n,r){return 0===e?t&n|~t&r:2===e?t&n|t&r|n&r:t^n^r}Da(Pa,Ta),Pa.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},Pa.prototype._update=function(e){for(var t,n=this._w,r=0|this._a,i=0|this._b,o=0|this._c,a=0|this._d,s=0|this._e,c=0;c<16;++c)n[c]=e.readInt32BE(4*c);for(;c<80;++c)n[c]=n[c-3]^n[c-8]^n[c-14]^n[c-16];for(var u=0;u<80;++u){var l=~~(u/20),f=0|((t=r)<<5|t>>>27)+Fa(l,i,o,a)+s+n[u]+Oa[l];s=a,a=o,o=Ua(i),i=r,r=f}this._a=r+this._a|0,this._b=i+this._b|0,this._c=o+this._c|0,this._d=a+this._d|0,this._e=s+this._e|0},Pa.prototype._hash=function(){var e=Na.allocUnsafe(20);return e.writeInt32BE(0|this._a,0),e.writeInt32BE(0|this._b,4),e.writeInt32BE(0|this._c,8),e.writeInt32BE(0|this._d,12),e.writeInt32BE(0|this._e,16),e};var ja=Pa,qa=$r,Ga=Ra,Ha=Kr.Buffer,Ya=[1518500249,1859775393,-1894007588,-899497514],Ka=new Array(80);function za(){this.init(),this._w=Ka,Ga.call(this,64,56)}function Va(e){return e<<5|e>>>27}function Ja(e){return e<<30|e>>>2}function Wa(e,t,n,r){return 0===e?t&n|~t&r:2===e?t&n|t&r|n&r:t^n^r}qa(za,Ga),za.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},za.prototype._update=function(e){for(var t,n=this._w,r=0|this._a,i=0|this._b,o=0|this._c,a=0|this._d,s=0|this._e,c=0;c<16;++c)n[c]=e.readInt32BE(4*c);for(;c<80;++c)n[c]=(t=n[c-3]^n[c-8]^n[c-14]^n[c-16])<<1|t>>>31;for(var u=0;u<80;++u){var l=~~(u/20),f=Va(r)+Wa(l,i,o,a)+s+n[u]+Ya[l]|0;s=a,a=o,o=Ja(i),i=r,r=f}this._a=r+this._a|0,this._b=i+this._b|0,this._c=o+this._c|0,this._d=a+this._d|0,this._e=s+this._e|0},za.prototype._hash=function(){var e=Ha.allocUnsafe(20);return e.writeInt32BE(0|this._a,0),e.writeInt32BE(0|this._b,4),e.writeInt32BE(0|this._c,8),e.writeInt32BE(0|this._d,12),e.writeInt32BE(0|this._e,16),e};var Za=za,$a=$r,Xa=Ra,es=Kr.Buffer,ts=[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],ns=new Array(64);function rs(){this.init(),this._w=ns,Xa.call(this,64,56)}function is(e,t,n){return n^e&(t^n)}function os(e,t,n){return e&t|n&(e|t)}function as(e){return(e>>>2|e<<30)^(e>>>13|e<<19)^(e>>>22|e<<10)}function ss(e){return(e>>>6|e<<26)^(e>>>11|e<<21)^(e>>>25|e<<7)}function cs(e){return(e>>>7|e<<25)^(e>>>18|e<<14)^e>>>3}$a(rs,Xa),rs.prototype.init=function(){return this._a=1779033703,this._b=3144134277,this._c=1013904242,this._d=2773480762,this._e=1359893119,this._f=2600822924,this._g=528734635,this._h=1541459225,this},rs.prototype._update=function(e){for(var t,n=this._w,r=0|this._a,i=0|this._b,o=0|this._c,a=0|this._d,s=0|this._e,c=0|this._f,u=0|this._g,l=0|this._h,f=0;f<16;++f)n[f]=e.readInt32BE(4*f);for(;f<64;++f)n[f]=0|(((t=n[f-2])>>>17|t<<15)^(t>>>19|t<<13)^t>>>10)+n[f-7]+cs(n[f-15])+n[f-16];for(var d=0;d<64;++d){var A=l+ss(s)+is(s,c,u)+ts[d]+n[d]|0,h=as(r)+os(r,i,o)|0;l=u,u=c,c=s,s=a+A|0,a=o,o=i,i=r,r=A+h|0}this._a=r+this._a|0,this._b=i+this._b|0,this._c=o+this._c|0,this._d=a+this._d|0,this._e=s+this._e|0,this._f=c+this._f|0,this._g=u+this._g|0,this._h=l+this._h|0},rs.prototype._hash=function(){var e=es.allocUnsafe(32);return e.writeInt32BE(this._a,0),e.writeInt32BE(this._b,4),e.writeInt32BE(this._c,8),e.writeInt32BE(this._d,12),e.writeInt32BE(this._e,16),e.writeInt32BE(this._f,20),e.writeInt32BE(this._g,24),e.writeInt32BE(this._h,28),e};var us=rs,ls=$r,fs=us,ds=Ra,As=Kr.Buffer,hs=new Array(64);function ps(){this.init(),this._w=hs,ds.call(this,64,56)}ls(ps,fs),ps.prototype.init=function(){return this._a=3238371032,this._b=914150663,this._c=812702999,this._d=4144912697,this._e=4290775857,this._f=1750603025,this._g=1694076839,this._h=3204075428,this},ps.prototype._hash=function(){var e=As.allocUnsafe(28);return e.writeInt32BE(this._a,0),e.writeInt32BE(this._b,4),e.writeInt32BE(this._c,8),e.writeInt32BE(this._d,12),e.writeInt32BE(this._e,16),e.writeInt32BE(this._f,20),e.writeInt32BE(this._g,24),e};var gs=ps,ys=$r,ms=Ra,bs=Kr.Buffer,vs=[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],ws=new Array(160);function Es(){this.init(),this._w=ws,ms.call(this,128,112)}function Is(e,t,n){return n^e&(t^n)}function Bs(e,t,n){return e&t|n&(e|t)}function Cs(e,t){return(e>>>28|t<<4)^(t>>>2|e<<30)^(t>>>7|e<<25)}function _s(e,t){return(e>>>14|t<<18)^(e>>>18|t<<14)^(t>>>9|e<<23)}function Ss(e,t){return(e>>>1|t<<31)^(e>>>8|t<<24)^e>>>7}function Qs(e,t){return(e>>>1|t<<31)^(e>>>8|t<<24)^(e>>>7|t<<25)}function ks(e,t){return(e>>>19|t<<13)^(t>>>29|e<<3)^e>>>6}function Ms(e,t){return(e>>>19|t<<13)^(t>>>29|e<<3)^(e>>>6|t<<26)}function xs(e,t){return e>>>0>>0?1:0}ys(Es,ms),Es.prototype.init=function(){return this._ah=1779033703,this._bh=3144134277,this._ch=1013904242,this._dh=2773480762,this._eh=1359893119,this._fh=2600822924,this._gh=528734635,this._hh=1541459225,this._al=4089235720,this._bl=2227873595,this._cl=4271175723,this._dl=1595750129,this._el=2917565137,this._fl=725511199,this._gl=4215389547,this._hl=327033209,this},Es.prototype._update=function(e){for(var t=this._w,n=0|this._ah,r=0|this._bh,i=0|this._ch,o=0|this._dh,a=0|this._eh,s=0|this._fh,c=0|this._gh,u=0|this._hh,l=0|this._al,f=0|this._bl,d=0|this._cl,A=0|this._dl,h=0|this._el,p=0|this._fl,g=0|this._gl,y=0|this._hl,m=0;m<32;m+=2)t[m]=e.readInt32BE(4*m),t[m+1]=e.readInt32BE(4*m+4);for(;m<160;m+=2){var b=t[m-30],v=t[m-30+1],w=Ss(b,v),E=Qs(v,b),I=ks(b=t[m-4],v=t[m-4+1]),B=Ms(v,b),C=t[m-14],_=t[m-14+1],S=t[m-32],Q=t[m-32+1],k=E+_|0,M=w+C+xs(k,E)|0;M=(M=M+I+xs(k=k+B|0,B)|0)+S+xs(k=k+Q|0,Q)|0,t[m]=M,t[m+1]=k}for(var x=0;x<160;x+=2){M=t[x],k=t[x+1];var R=Bs(n,r,i),D=Bs(l,f,d),T=Cs(n,l),N=Cs(l,n),O=_s(a,h),L=_s(h,a),P=vs[x],U=vs[x+1],F=Is(a,s,c),j=Is(h,p,g),q=y+L|0,G=u+O+xs(q,y)|0;G=(G=(G=G+F+xs(q=q+j|0,j)|0)+P+xs(q=q+U|0,U)|0)+M+xs(q=q+k|0,k)|0;var H=N+D|0,Y=T+R+xs(H,N)|0;u=c,y=g,c=s,g=p,s=a,p=h,a=o+G+xs(h=A+q|0,A)|0,o=i,A=d,i=r,d=f,r=n,f=l,n=G+Y+xs(l=q+H|0,q)|0}this._al=this._al+l|0,this._bl=this._bl+f|0,this._cl=this._cl+d|0,this._dl=this._dl+A|0,this._el=this._el+h|0,this._fl=this._fl+p|0,this._gl=this._gl+g|0,this._hl=this._hl+y|0,this._ah=this._ah+n+xs(this._al,l)|0,this._bh=this._bh+r+xs(this._bl,f)|0,this._ch=this._ch+i+xs(this._cl,d)|0,this._dh=this._dh+o+xs(this._dl,A)|0,this._eh=this._eh+a+xs(this._el,h)|0,this._fh=this._fh+s+xs(this._fl,p)|0,this._gh=this._gh+c+xs(this._gl,g)|0,this._hh=this._hh+u+xs(this._hl,y)|0},Es.prototype._hash=function(){var e=bs.allocUnsafe(64);function t(t,n,r){e.writeInt32BE(t,r),e.writeInt32BE(n,r+4)}return t(this._ah,this._al,0),t(this._bh,this._bl,8),t(this._ch,this._cl,16),t(this._dh,this._dl,24),t(this._eh,this._el,32),t(this._fh,this._fl,40),t(this._gh,this._gl,48),t(this._hh,this._hl,56),e};var Rs=Es,Ds=$r,Ts=Rs,Ns=Ra,Os=Kr.Buffer,Ls=new Array(160);function Ps(){this.init(),this._w=Ls,Ns.call(this,128,112)}Ds(Ps,Ts),Ps.prototype.init=function(){return this._ah=3418070365,this._bh=1654270250,this._ch=2438529370,this._dh=355462360,this._eh=1731405415,this._fh=2394180231,this._gh=3675008525,this._hh=1203062813,this._al=3238371032,this._bl=914150663,this._cl=812702999,this._dl=4144912697,this._el=4290775857,this._fl=1750603025,this._gl=1694076839,this._hl=3204075428,this},Ps.prototype._hash=function(){var e=Os.allocUnsafe(48);function t(t,n,r){e.writeInt32BE(t,r),e.writeInt32BE(n,r+4)}return t(this._ah,this._al,0),t(this._bh,this._bl,8),t(this._ch,this._cl,16),t(this._dh,this._dl,24),t(this._eh,this._el,32),t(this._fh,this._fl,40),e};var Us=Ps,Fs=ka.exports=function(e){e=e.toLowerCase();var t=Fs[e];if(!t)throw new Error(e+" is not supported (we accept pull requests)");return new t};Fs.sha=ja,Fs.sha1=Za,Fs.sha224=gs,Fs.sha256=us,Fs.sha384=Us,Fs.sha512=Rs;var js=ka.exports;function qs(){this.head=null,this.tail=null,this.length=0}qs.prototype.push=function(e){var t={data:e,next:null};this.length>0?this.tail.next=t:this.head=t,this.tail=t,++this.length},qs.prototype.unshift=function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length},qs.prototype.shift=function(){if(0!==this.length){var e=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}},qs.prototype.clear=function(){this.head=this.tail=null,this.length=0},qs.prototype.join=function(e){if(0===this.length)return"";for(var t=this.head,n=""+t.data;t=t.next;)n+=e+t.data;return n},qs.prototype.concat=function(e){if(0===this.length)return Sn.alloc(0);if(1===this.length)return this.head.data;for(var t=Sn.allocUnsafe(e>>>0),n=this.head,r=0;n;)n.data.copy(t,r),r+=n.data.length,n=n.next;return t};var Gs=Sn.isEncoding||function(e){switch(e&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function Hs(e){switch(this.encoding=(e||"utf8").toLowerCase().replace(/[-_]/,""),function(e){if(e&&!Gs(e))throw new Error("Unknown encoding: "+e)}(e),this.encoding){case"utf8":this.surrogateSize=3;break;case"ucs2":case"utf16le":this.surrogateSize=2,this.detectIncompleteChar=Ks;break;case"base64":this.surrogateSize=3,this.detectIncompleteChar=zs;break;default:return void(this.write=Ys)}this.charBuffer=new Sn(6),this.charReceived=0,this.charLength=0}function Ys(e){return e.toString(this.encoding)}function Ks(e){this.charReceived=e.length%2,this.charLength=this.charReceived?2:0}function zs(e){this.charReceived=e.length%3,this.charLength=this.charReceived?3:0}Hs.prototype.write=function(e){for(var t="";this.charLength;){var n=e.length>=this.charLength-this.charReceived?this.charLength-this.charReceived:e.length;if(e.copy(this.charBuffer,this.charReceived,0,n),this.charReceived+=n,this.charReceived=55296&&r<=56319)){if(this.charReceived=this.charLength=0,0===e.length)return t;break}this.charLength+=this.surrogateSize,t=""}this.detectIncompleteChar(e);var r,i=e.length;if(this.charLength&&(e.copy(this.charBuffer,0,e.length-this.charReceived,i),i-=this.charReceived),i=(t+=e.toString(this.encoding,0,i)).length-1,(r=t.charCodeAt(i))>=55296&&r<=56319){var o=this.surrogateSize;return this.charLength+=o,this.charReceived+=o,this.charBuffer.copy(this.charBuffer,o,0,o),e.copy(this.charBuffer,0,0,o),t.substring(0,i)}return t},Hs.prototype.detectIncompleteChar=function(e){for(var t=e.length>=3?3:e.length;t>0;t--){var n=e[e.length-t];if(1==t&&n>>5==6){this.charLength=2;break}if(t<=2&&n>>4==14){this.charLength=3;break}if(t<=3&&n>>3==30){this.charLength=4;break}}this.charReceived=t},Hs.prototype.end=function(e){var t="";if(e&&e.length&&(t=this.write(e)),this.charReceived){var n=this.charReceived,r=this.charBuffer,i=this.encoding;t+=r.slice(0,n).toString(i)}return t};var Vs=Object.freeze({__proto__:null,StringDecoder:Hs});Zs.ReadableState=Ws;var Js=pi("stream");function Ws(e,t){e=e||{},this.objectMode=!!e.objectMode,t instanceof Cc&&(this.objectMode=this.objectMode||!!e.readableObjectMode);var n=e.highWaterMark,r=this.objectMode?16:16384;this.highWaterMark=n||0===n?n:r,this.highWaterMark=~~this.highWaterMark,this.buffer=new qs,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.ranOut=!1,this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(this.decoder=new Hs(e.encoding),this.encoding=e.encoding)}function Zs(e){if(!(this instanceof Zs))return new Zs(e);this._readableState=new Ws(e,this),this.readable=!0,e&&"function"==typeof e.read&&(this._read=e.read),ti.call(this)}function $s(e,t,n,r,i){var o=function(e,t){var n=null;return lr(t)||"string"==typeof t||null==t||e.objectMode||(n=new TypeError("Invalid non-string/buffer chunk")),n}(t,n);if(o)e.emit("error",o);else if(null===n)t.reading=!1,function(e,t){if(!t.ended){if(t.decoder){var n=t.decoder.end();n&&n.length&&(t.buffer.push(n),t.length+=t.objectMode?1:n.length)}t.ended=!0,tc(e)}}(e,t);else if(t.objectMode||n&&n.length>0)if(t.ended&&!i){var a=new Error("stream.push() after EOF");e.emit("error",a)}else if(t.endEmitted&&i){var s=new Error("stream.unshift() after end event");e.emit("error",s)}else{var c;!t.decoder||i||r||(n=t.decoder.write(n),c=!t.objectMode&&0===n.length),i||(t.reading=!1),c||(t.flowing&&0===t.length&&!t.sync?(e.emit("data",n),e.read(0)):(t.length+=t.objectMode?1:n.length,i?t.buffer.unshift(n):t.buffer.push(n),t.needReadable&&tc(e))),function(e,t){t.readingMore||(t.readingMore=!0,Mr(rc,e,t))}(e,t)}else i||(t.reading=!1);return function(e){return!e.ended&&(e.needReadable||e.lengtht.highWaterMark&&(t.highWaterMark=function(e){return e>=Xs?e=Xs:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}function tc(e){var t=e._readableState;t.needReadable=!1,t.emittedReadable||(Js("emitReadable",t.flowing),t.emittedReadable=!0,t.sync?Mr(nc,e):nc(e))}function nc(e){Js("emit readable"),e.emit("readable"),ac(e)}function rc(e,t){for(var n=t.length;!t.reading&&!t.flowing&&!t.ended&&t.length=t.length?(n=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.head.data:t.buffer.concat(t.length),t.buffer.clear()):n=function(e,t,n){var r;return eo.length?o.length:e;if(a===o.length?i+=o:i+=o.slice(0,e),0==(e-=a)){a===o.length?(++r,n.next?t.head=n.next:t.head=t.tail=null):(t.head=n,n.data=o.slice(a));break}++r}return t.length-=r,i}(e,t):function(e,t){var n=Sn.allocUnsafe(e),r=t.head,i=1;for(r.data.copy(n),e-=r.data.length;r=r.next;){var o=r.data,a=e>o.length?o.length:e;if(o.copy(n,n.length-e,0,a),0==(e-=a)){a===o.length?(++i,r.next?t.head=r.next:t.head=t.tail=null):(t.head=r,r.data=o.slice(a));break}++i}return t.length-=i,n}(e,t),r}(e,t.buffer,t.decoder),n);var n}function cc(e){var t=e._readableState;if(t.length>0)throw new Error('"endReadable()" called on non-empty stream');t.endEmitted||(t.ended=!0,Mr(uc,t,e))}function uc(e,t){e.endEmitted||0!==e.length||(e.endEmitted=!0,t.readable=!1,t.emit("end"))}function lc(e,t){for(var n=0,r=e.length;n=t.highWaterMark||t.ended))return Js("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?cc(this):tc(this),null;if(0===(e=ec(e,t))&&t.ended)return 0===t.length&&cc(this),null;var r,i=t.needReadable;return Js("need readable",i),(0===t.length||t.length-e0?sc(e,t):null)?(t.needReadable=!0,e=0):t.length-=e,0===t.length&&(t.ended||(t.needReadable=!0),n!==e&&t.ended&&cc(this)),null!==r&&this.emit("data",r),r},Zs.prototype._read=function(e){this.emit("error",new Error("not implemented"))},Zs.prototype.pipe=function(e,t){var n=this,r=this._readableState;switch(r.pipesCount){case 0:r.pipes=e;break;case 1:r.pipes=[r.pipes,e];break;default:r.pipes.push(e)}r.pipesCount+=1,Js("pipe count=%d opts=%j",r.pipesCount,t);var i=t&&!1===t.end?u:a;function o(e){Js("onunpipe"),e===n&&u()}function a(){Js("onend"),e.end()}r.endEmitted?Mr(i):n.once("end",i),e.on("unpipe",o);var s=function(e){return function(){var t=e._readableState;Js("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&e.listeners("data").length&&(t.flowing=!0,ac(e))}}(n);e.on("drain",s);var c=!1;function u(){Js("cleanup"),e.removeListener("close",A),e.removeListener("finish",h),e.removeListener("drain",s),e.removeListener("error",d),e.removeListener("unpipe",o),n.removeListener("end",a),n.removeListener("end",u),n.removeListener("data",f),c=!0,!r.awaitDrain||e._writableState&&!e._writableState.needDrain||s()}var l=!1;function f(t){Js("ondata"),l=!1,!1!==e.write(t)||l||((1===r.pipesCount&&r.pipes===e||r.pipesCount>1&&-1!==lc(r.pipes,e))&&!c&&(Js("false write response, pause",n._readableState.awaitDrain),n._readableState.awaitDrain++,l=!0),n.pause())}function d(t){Js("onerror",t),p(),e.removeListener("error",d),0===e.listeners("error").length&&e.emit("error",t)}function A(){e.removeListener("finish",h),p()}function h(){Js("onfinish"),e.removeListener("close",A),p()}function p(){Js("unpipe"),n.unpipe(e)}return n.on("data",f),function(e,t,n){if("function"==typeof e.prependListener)return e.prependListener(t,n);e._events&&e._events[t]?Array.isArray(e._events[t])?e._events[t].unshift(n):e._events[t]=[n,e._events[t]]:e.on(t,n)}(e,"error",d),e.once("close",A),e.once("finish",h),e.emit("pipe",n),r.flowing||(Js("pipe resume"),n.resume()),e},Zs.prototype.unpipe=function(e){var t=this._readableState;if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes||(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this)),this;if(!e){var n=t.pipes,r=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var i=0;i-1))throw new TypeError("Unknown encoding: "+e);return this._writableState.defaultEncoding=e,this},hc.prototype._write=function(e,t,n){n(new Error("not implemented"))},hc.prototype._writev=null,hc.prototype.end=function(e,t,n){var r=this._writableState;"function"==typeof e?(n=e,e=null,t=null):"function"==typeof t&&(n=t,t=null),null!=e&&this.write(e,t),r.corked&&(r.corked=1,this.uncork()),r.ending||r.finished||function(e,t,n){t.ending=!0,vc(e,t),n&&(t.finished?Mr(n):e.once("finish",n)),t.ended=!0,e.writable=!1}(this,r,n)},ui(Cc,Zs);for(var Ec=Object.keys(hc.prototype),Ic=0;IcWc?t=e(t):t.lengthn?t=("rmd160"===e?new ou:au(e)).update(t).digest():t.lengthAu||t!=t)throw new TypeError("Bad key length")},pu=dr.process&&dr.process.browser?"utf-8":dr.process&&dr.process.version?parseInt(Gr.version.split(".")[0].slice(1),10)>=6?"utf-8":"binary":"utf-8",gu=Kr.Buffer,yu=function(e,t,n){if(gu.isBuffer(e))return e;if("string"==typeof e)return gu.from(e,t);if(ArrayBuffer.isView(e))return gu.from(e.buffer);throw new TypeError(n+" must be a string, a Buffer, a typed array or a DataView")},mu=Xc,bu=Qa,vu=js,wu=Kr.Buffer,Eu=hu,Iu=pu,Bu=yu,Cu=wu.alloc(128),_u={md5:16,sha1:20,sha224:28,sha256:32,sha384:48,sha512:64,rmd160:20,ripemd160:20};function Su(e,t,n){var r=function(e){return"rmd160"===e||"ripemd160"===e?function(e){return(new bu).update(e).digest()}:"md5"===e?mu:function(t){return vu(e).update(t).digest()}}(e),i="sha512"===e||"sha384"===e?128:64;t.length>i?t=r(t):t.length>>0},writeUInt32BE:function(e,t,n){e[0+n]=t>>>24,e[1+n]=t>>>16&255,e[2+n]=t>>>8&255,e[3+n]=255&t},ip:function(e,t,n,r){for(var i=0,o=0,a=6;a>=0;a-=2){for(var s=0;s<=24;s+=8)i<<=1,i|=t>>>s+a&1;for(s=0;s<=24;s+=8)i<<=1,i|=e>>>s+a&1}for(a=6;a>=0;a-=2){for(s=1;s<=25;s+=8)o<<=1,o|=t>>>s+a&1;for(s=1;s<=25;s+=8)o<<=1,o|=e>>>s+a&1}n[r+0]=i>>>0,n[r+1]=o>>>0},rip:function(e,t,n,r){for(var i=0,o=0,a=0;a<4;a++)for(var s=24;s>=0;s-=8)i<<=1,i|=t>>>s+a&1,i<<=1,i|=e>>>s+a&1;for(a=4;a<8;a++)for(s=24;s>=0;s-=8)o<<=1,o|=t>>>s+a&1,o<<=1,o|=e>>>s+a&1;n[r+0]=i>>>0,n[r+1]=o>>>0},pc1:function(e,t,n,r){for(var i=0,o=0,a=7;a>=5;a--){for(var s=0;s<=24;s+=8)i<<=1,i|=t>>s+a&1;for(s=0;s<=24;s+=8)i<<=1,i|=e>>s+a&1}for(s=0;s<=24;s+=8)i<<=1,i|=t>>s+a&1;for(a=1;a<=3;a++){for(s=0;s<=24;s+=8)o<<=1,o|=t>>s+a&1;for(s=0;s<=24;s+=8)o<<=1,o|=e>>s+a&1}for(s=0;s<=24;s+=8)o<<=1,o|=e>>s+a&1;n[r+0]=i>>>0,n[r+1]=o>>>0},r28shl:function(e,t){return e<>>28-t}},Hu=[14,11,17,4,27,23,25,0,13,22,7,18,5,9,16,24,2,20,12,21,1,8,15,26,15,4,25,19,9,1,26,16,5,11,23,8,12,7,17,0,22,3,10,14,6,20,27,24];Gu.pc2=function(e,t,n,r){for(var i=0,o=0,a=Hu.length>>>1,s=0;s>>Hu[s]&1;for(s=a;s>>Hu[s]&1;n[r+0]=i>>>0,n[r+1]=o>>>0},Gu.expand=function(e,t,n){var r=0,i=0;r=(1&e)<<5|e>>>27;for(var o=23;o>=15;o-=4)r<<=6,r|=e>>>o&63;for(o=11;o>=3;o-=4)i|=e>>>o&63,i<<=6;i|=(31&e)<<1|e>>>31,t[n+0]=r>>>0,t[n+1]=i>>>0};var Yu=[14,0,4,15,13,7,1,4,2,14,15,2,11,13,8,1,3,10,10,6,6,12,12,11,5,9,9,5,0,3,7,8,4,15,1,12,14,8,8,2,13,4,6,9,2,1,11,7,15,5,12,11,9,3,7,14,3,10,10,0,5,6,0,13,15,3,1,13,8,4,14,7,6,15,11,2,3,8,4,14,9,12,7,0,2,1,13,10,12,6,0,9,5,11,10,5,0,13,14,8,7,10,11,1,10,3,4,15,13,4,1,2,5,11,8,6,12,7,6,12,9,0,3,5,2,14,15,9,10,13,0,7,9,0,14,9,6,3,3,4,15,6,5,10,1,2,13,8,12,5,7,14,11,12,4,11,2,15,8,1,13,1,6,10,4,13,9,0,8,6,15,9,3,8,0,7,11,4,1,15,2,14,12,3,5,11,10,5,14,2,7,12,7,13,13,8,14,11,3,5,0,6,6,15,9,0,10,3,1,4,2,7,8,2,5,12,11,1,12,10,4,14,15,9,10,3,6,15,9,0,0,6,12,10,11,1,7,13,13,8,15,9,1,4,3,5,14,11,5,12,2,7,8,2,4,14,2,14,12,11,4,2,1,12,7,4,10,7,11,13,6,1,8,5,5,0,3,15,15,10,13,3,0,9,14,8,9,6,4,11,2,8,1,12,11,7,10,1,13,14,7,2,8,13,15,6,9,15,12,0,5,9,6,10,3,4,0,5,14,3,12,10,1,15,10,4,15,2,9,7,2,12,6,9,8,5,0,6,13,1,3,13,4,14,14,0,7,11,5,3,11,8,9,4,14,3,15,2,5,12,2,9,8,5,12,15,3,10,7,11,0,14,4,1,10,7,1,6,13,0,11,8,6,13,4,13,11,0,2,11,14,7,15,4,0,9,8,1,13,10,3,14,12,3,9,5,7,12,5,2,10,15,6,8,1,6,1,6,4,11,11,13,13,8,12,1,3,4,7,10,14,7,10,9,15,5,6,0,8,15,0,14,5,2,9,3,2,12,13,1,2,15,8,13,4,8,6,10,15,3,11,7,1,4,10,12,9,5,3,6,14,11,5,0,0,14,12,9,7,2,7,2,11,1,4,14,1,7,9,4,12,10,14,8,2,13,0,15,6,12,10,9,13,0,15,3,3,5,5,6,8,11];Gu.substitute=function(e,t){for(var n=0,r=0;r<4;r++)n<<=4,n|=Yu[64*r+(e>>>18-6*r&63)];for(r=0;r<4;r++)n<<=4,n|=Yu[256+64*r+(t>>>18-6*r&63)];return n>>>0};var Ku=[16,25,12,11,3,20,4,15,31,17,9,6,27,14,1,22,30,24,8,18,0,5,29,23,13,19,2,26,10,21,28,7];Gu.permute=function(e){for(var t=0,n=0;n>>Ku[n]&1;return t>>>0},Gu.padSplit=function(e,t,n){for(var r=e.toString(2);r.length0;r--)t+=this._buffer(e,t),n+=this._flushBuffer(i,n);return t+=this._buffer(e,t),i},Wu.prototype.final=function(e){var t,n;return e&&(t=this.update(e)),n="encrypt"===this.type?this._finalEncrypt():this._finalDecrypt(),t?t.concat(n):n},Wu.prototype._pad=function(e,t){if(0===t)return!1;for(;t>>1];n=Xu.r28shl(n,o),r=Xu.r28shl(r,o),Xu.pc2(n,r,e.keys,i)}},nl.prototype._update=function(e,t,n,r){var i=this._desState,o=Xu.readUInt32BE(e,t),a=Xu.readUInt32BE(e,t+4);Xu.ip(o,a,i.tmp,0),o=i.tmp[0],a=i.tmp[1],"encrypt"===this.type?this._encrypt(i,o,a,i.tmp,0):this._decrypt(i,o,a,i.tmp,0),o=i.tmp[0],a=i.tmp[1],Xu.writeUInt32BE(n,o,r),Xu.writeUInt32BE(n,a,r+4)},nl.prototype._pad=function(e,t){if(!1===this.padding)return!1;for(var n=e.length-t,r=t;r>>0,o=f}Xu.rip(a,o,r,i)},nl.prototype._decrypt=function(e,t,n,r,i){for(var o=n,a=t,s=e.keys.length-2;s>=0;s-=2){var c=e.keys[s],u=e.keys[s+1];Xu.expand(o,e.tmp,0),c^=e.tmp[0],u^=e.tmp[1];var l=Xu.substitute(c,u),f=o;o=(a^Xu.permute(l))>>>0,a=f}Xu.rip(o,a,r,i)};var ol={},al=zu,sl=$r,cl={};function ul(e){al.equal(e.length,8,"Invalid IV length"),this.iv=new Array(8);for(var t=0;t>o%8,e._prev=Pl(e._prev,n?r:i);return a}function Pl(e,t){var n=e.length,r=-1,i=Ol.allocUnsafe(e.length);for(e=Ol.concat([e,Ol.from([t])]);++r>7;return i}Nl.encrypt=function(e,t,n){for(var r=t.length,i=Ol.allocUnsafe(r),o=-1;++o>>24]^l[h>>>16&255]^f[p>>>8&255]^d[255&g]^t[y++],a=u[h>>>24]^l[p>>>16&255]^f[g>>>8&255]^d[255&A]^t[y++],s=u[p>>>24]^l[g>>>16&255]^f[A>>>8&255]^d[255&h]^t[y++],c=u[g>>>24]^l[A>>>16&255]^f[h>>>8&255]^d[255&p]^t[y++],A=o,h=a,p=s,g=c;return o=(r[A>>>24]<<24|r[h>>>16&255]<<16|r[p>>>8&255]<<8|r[255&g])^t[y++],a=(r[h>>>24]<<24|r[p>>>16&255]<<16|r[g>>>8&255]<<8|r[255&A])^t[y++],s=(r[p>>>24]<<24|r[g>>>16&255]<<16|r[A>>>8&255]<<8|r[255&h])^t[y++],c=(r[g>>>24]<<24|r[A>>>16&255]<<16|r[h>>>8&255]<<8|r[255&p])^t[y++],[o>>>=0,a>>>=0,s>>>=0,c>>>=0]}var of=[0,1,2,4,8,16,32,64,128,27,54],af=function(){for(var e=new Array(256),t=0;t<256;t++)e[t]=t<128?t<<1:t<<1^283;for(var n=[],r=[],i=[[],[],[],[]],o=[[],[],[],[]],a=0,s=0,c=0;c<256;++c){var u=s^s<<1^s<<2^s<<3^s<<4;u=u>>>8^255&u^99,n[a]=u,r[u]=a;var l=e[a],f=e[l],d=e[f],A=257*e[u]^16843008*u;i[0][a]=A<<24|A>>>8,i[1][a]=A<<16|A>>>16,i[2][a]=A<<8|A>>>24,i[3][a]=A,A=16843009*d^65537*f^257*l^16843008*a,o[0][u]=A<<24|A>>>8,o[1][u]=A<<16|A>>>16,o[2][u]=A<<8|A>>>24,o[3][u]=A,0===a?a=s=1:(a=l^e[e[e[d^l]]],s^=e[e[s]])}return{SBOX:n,INV_SBOX:r,SUB_MIX:i,INV_SUB_MIX:o}}();function sf(e){this._key=tf(e),this._reset()}sf.blockSize=16,sf.keySize=32,sf.prototype.blockSize=sf.blockSize,sf.prototype.keySize=sf.keySize,sf.prototype._reset=function(){for(var e=this._key,t=e.length,n=t+6,r=4*(n+1),i=[],o=0;o>>24,a=af.SBOX[a>>>24]<<24|af.SBOX[a>>>16&255]<<16|af.SBOX[a>>>8&255]<<8|af.SBOX[255&a],a^=of[o/t|0]<<24):t>6&&o%t==4&&(a=af.SBOX[a>>>24]<<24|af.SBOX[a>>>16&255]<<16|af.SBOX[a>>>8&255]<<8|af.SBOX[255&a]),i[o]=i[o-t]^a}for(var s=[],c=0;c>>24]]^af.INV_SUB_MIX[1][af.SBOX[l>>>16&255]]^af.INV_SUB_MIX[2][af.SBOX[l>>>8&255]]^af.INV_SUB_MIX[3][af.SBOX[255&l]]}this._nRounds=n,this._keySchedule=i,this._invKeySchedule=s},sf.prototype.encryptBlockRaw=function(e){return rf(e=tf(e),this._keySchedule,af.SUB_MIX,af.SBOX,this._nRounds)},sf.prototype.encryptBlock=function(e){var t=this.encryptBlockRaw(e),n=ef.allocUnsafe(16);return n.writeUInt32BE(t[0],0),n.writeUInt32BE(t[1],4),n.writeUInt32BE(t[2],8),n.writeUInt32BE(t[3],12),n},sf.prototype.decryptBlock=function(e){var t=(e=tf(e))[1];e[1]=e[3],e[3]=t;var n=rf(e,this._invKeySchedule,af.INV_SUB_MIX,af.INV_SBOX,this._nRounds),r=ef.allocUnsafe(16);return r.writeUInt32BE(n[0],0),r.writeUInt32BE(n[3],4),r.writeUInt32BE(n[2],8),r.writeUInt32BE(n[1],12),r},sf.prototype.scrub=function(){nf(this._keySchedule),nf(this._invKeySchedule),nf(this._key)},Xl.AES=sf;var cf=Kr.Buffer,uf=cf.alloc(16,0);function lf(e){var t=cf.allocUnsafe(16);return t.writeUInt32BE(e[0]>>>0,0),t.writeUInt32BE(e[1]>>>0,4),t.writeUInt32BE(e[2]>>>0,8),t.writeUInt32BE(e[3]>>>0,12),t}function ff(e){this.h=e,this.state=cf.alloc(16,0),this.cache=cf.allocUnsafe(0)}ff.prototype.ghash=function(e){for(var t=-1;++t0;t--)r[t]=r[t]>>>1|(1&r[t-1])<<31;r[0]=r[0]>>>1,n&&(r[0]=r[0]^225<<24)}this.state=lf(i)},ff.prototype.update=function(e){var t;for(this.cache=cf.concat([this.cache,e]);this.cache.length>=16;)t=this.cache.slice(0,16),this.cache=this.cache.slice(16),this.ghash(t)},ff.prototype.final=function(e,t){return this.cache.length&&this.ghash(cf.concat([this.cache,uf],16)),this.ghash(lf([0,e,0,t])),this.state};var df=ff,Af=Xl,hf=Kr.Buffer,pf=Uc,gf=df,yf=_l,mf=Gl;function bf(e,t,n,r){pf.call(this);var i=hf.alloc(4,0);this._cipher=new Af.AES(t);var o=this._cipher.encryptBlock(i);this._ghash=new gf(o),n=function(e,t,n){if(12===t.length)return e._finID=hf.concat([t,hf.from([0,0,0,1])]),hf.concat([t,hf.from([0,0,0,2])]);var r=new gf(n),i=t.length,o=i%16;r.update(t),o&&(o=16-o,r.update(hf.alloc(o,0))),r.update(hf.alloc(8,0));var a=8*i,s=hf.alloc(8);s.writeUIntBE(a,0,8),r.update(s),e._finID=r.state;var c=hf.from(e._finID);return mf(c),c}(this,n,o),this._prev=hf.from(n),this._cache=hf.allocUnsafe(0),this._secCache=hf.allocUnsafe(0),this._decrypt=r,this._alen=0,this._len=0,this._mode=e,this._authTag=null,this._called=!1}$r(bf,pf),bf.prototype._update=function(e){if(!this._called&&this._alen){var t=16-this._alen%16;t<16&&(t=hf.alloc(t,0),this._ghash.update(t))}this._called=!0;var n=this._mode.encrypt(this,e);return this._decrypt?this._ghash.update(e):this._ghash.update(n),this._len+=e.length,n},bf.prototype._final=function(){if(this._decrypt&&!this._authTag)throw new Error("Unsupported state or unable to authenticate data");var e=yf(this._ghash.final(8*this._alen,8*this._len),this._cipher.encryptBlock(this._finID));if(this._decrypt&&function(e,t){var n=0;e.length!==t.length&&n++;for(var r=Math.min(e.length,t.length),i=0;i0||r>0;){var c=new Sf;c.update(s),c.update(e),t&&c.update(t),s=c.digest();var u=0;if(i>0){var l=o.length-i;u=Math.min(i,s.length),s.copy(o,l,0,u),i-=u}if(u0){var f=a.length-r,d=Math.min(r,s.length-u);s.copy(a,f,u,u+d),r-=d}}return s.fill(0),{key:o,iv:a}},kf=$l,Mf=vf,xf=Kr.Buffer,Rf=Cf,Df=Uc,Tf=Xl,Nf=Qf;function Of(e,t,n){Df.call(this),this._cache=new Pf,this._cipher=new Tf.AES(t),this._prev=xf.from(n),this._mode=e,this._autopadding=!0}$r(Of,Df),Of.prototype._update=function(e){var t,n;this._cache.add(e);for(var r=[];t=this._cache.get();)n=this._mode.encrypt(this,t),r.push(n);return xf.concat(r)};var Lf=xf.alloc(16,16);function Pf(){this.cache=xf.allocUnsafe(0)}function Uf(e,t,n){var r=kf[e.toLowerCase()];if(!r)throw new TypeError("invalid suite type");if("string"==typeof t&&(t=xf.from(t)),t.length!==r.key/8)throw new TypeError("invalid key length "+t.length);if("string"==typeof n&&(n=xf.from(n)),"GCM"!==r.mode&&n.length!==r.iv)throw new TypeError("invalid iv length "+n.length);return"stream"===r.type?new Rf(r.module,t,n):"auth"===r.type?new Mf(r.module,t,n):new Of(r.module,t,n)}Of.prototype._final=function(){var e=this._cache.flush();if(this._autopadding)return e=this._mode.encrypt(this,e),this._cipher.scrub(),e;if(!e.equals(Lf))throw this._cipher.scrub(),new Error("data not multiple of block length")},Of.prototype.setAutoPadding=function(e){return this._autopadding=!!e,this},Pf.prototype.add=function(e){this.cache=xf.concat([this.cache,e])},Pf.prototype.get=function(){if(this.cache.length>15){var e=this.cache.slice(0,16);return this.cache=this.cache.slice(16),e}return null},Pf.prototype.flush=function(){for(var e=16-this.cache.length,t=xf.allocUnsafe(e),n=-1;++n16)throw new Error("unable to decrypt data");for(var n=-1;++n16)return t=this.cache.slice(0,16),this.cache=this.cache.slice(16),t}else if(this.cache.length>=16)return t=this.cache.slice(0,16),this.cache=this.cache.slice(16),t;return null},Jf.prototype.flush=function(){if(this.cache.length)return this.cache},Ff.createDecipher=function(e,t){var n=Gf[e.toLowerCase()];if(!n)throw new TypeError("invalid suite type");var r=zf(t,!1,n.key,n.iv);return Wf(e,r.key,r.iv)},Ff.createDecipheriv=Wf;var Zf=Bl,$f=Ff,Xf=Vl;Il.createCipher=Il.Cipher=Zf.createCipher,Il.createCipheriv=Il.Cipheriv=Zf.createCipheriv,Il.createDecipher=Il.Decipher=$f.createDecipher,Il.createDecipheriv=Il.Decipheriv=$f.createDecipheriv,Il.listCiphers=Il.getCiphers=function(){return Object.keys(Xf)};var ed={};!function(e){e["des-ecb"]={key:8,iv:0},e["des-cbc"]=e.des={key:8,iv:8},e["des-ede3-cbc"]=e.des3={key:24,iv:8},e["des-ede3"]={key:24,iv:0},e["des-ede-cbc"]={key:16,iv:8},e["des-ede"]={key:16,iv:0}}(ed);var td=wl,nd=Il,rd=$l,id=ed,od=Qf;function ad(e,t,n){if(e=e.toLowerCase(),rd[e])return nd.createCipheriv(e,t,n);if(id[e])return new td({key:t,iv:n,mode:e});throw new TypeError("invalid suite type")}function sd(e,t,n){if(e=e.toLowerCase(),rd[e])return nd.createDecipheriv(e,t,n);if(id[e])return new td({key:t,iv:n,mode:e,decrypt:!0});throw new TypeError("invalid suite type")}ju.createCipher=ju.Cipher=function(e,t){var n,r;if(e=e.toLowerCase(),rd[e])n=rd[e].key,r=rd[e].iv;else{if(!id[e])throw new TypeError("invalid suite type");n=8*id[e].key,r=id[e].iv}var i=od(t,!1,n,r);return ad(e,i.key,i.iv)},ju.createCipheriv=ju.Cipheriv=ad,ju.createDecipher=ju.Decipher=function(e,t){var n,r;if(e=e.toLowerCase(),rd[e])n=rd[e].key,r=rd[e].iv;else{if(!id[e])throw new TypeError("invalid suite type");n=8*id[e].key,r=id[e].iv}var i=od(t,!1,n,r);return sd(e,i.key,i.iv)},ju.createDecipheriv=ju.Decipheriv=sd,ju.listCiphers=ju.getCiphers=function(){return Object.keys(id).concat(nd.getCiphers())};var cd={},ud={exports:{}};!function(e,t){function n(e,t){if(!e)throw new Error(t||"Assertion failed")}function r(e,t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}function i(e,t,n){if(i.isBN(e))return e;this.negative=0,this.words=null,this.length=0,this.red=null,null!==e&&("le"!==t&&"be"!==t||(n=t,t=10),this._init(e||0,t||10,n||"be"))}var o;"object"==typeof e?e.exports=i:t.BN=i,i.BN=i,i.wordSize=26;try{o="undefined"!=typeof window&&void 0!==window.Buffer?window.Buffer:yr.Buffer}catch(e){}function a(e,t){var n=e.charCodeAt(t);return n>=65&&n<=70?n-55:n>=97&&n<=102?n-87:n-48&15}function s(e,t,n){var r=a(e,n);return n-1>=t&&(r|=a(e,n-1)<<4),r}function c(e,t,n,r){for(var i=0,o=Math.min(e.length,n),a=t;a=49?s-49+10:s>=17?s-17+10:s}return i}i.isBN=function(e){return e instanceof i||null!==e&&"object"==typeof e&&e.constructor.wordSize===i.wordSize&&Array.isArray(e.words)},i.max=function(e,t){return e.cmp(t)>0?e:t},i.min=function(e,t){return e.cmp(t)<0?e:t},i.prototype._init=function(e,t,r){if("number"==typeof e)return this._initNumber(e,t,r);if("object"==typeof e)return this._initArray(e,t,r);"hex"===t&&(t=16),n(t===(0|t)&&t>=2&&t<=36);var i=0;"-"===(e=e.toString().replace(/\s+/g,""))[0]&&(i++,this.negative=1),i=0;i-=3)a=e[i]|e[i-1]<<8|e[i-2]<<16,this.words[o]|=a<>>26-s&67108863,(s+=24)>=26&&(s-=26,o++);else if("le"===r)for(i=0,o=0;i>>26-s&67108863,(s+=24)>=26&&(s-=26,o++);return this.strip()},i.prototype._parseHex=function(e,t,n){this.length=Math.ceil((e.length-t)/6),this.words=new Array(this.length);for(var r=0;r=t;r-=2)i=s(e,t,r)<=18?(o-=18,a+=1,this.words[a]|=i>>>26):o+=8;else for(r=(e.length-t)%2==0?t+1:t;r=18?(o-=18,a+=1,this.words[a]|=i>>>26):o+=8;this.strip()},i.prototype._parseBase=function(e,t,n){this.words=[0],this.length=1;for(var r=0,i=1;i<=67108863;i*=t)r++;r--,i=i/t|0;for(var o=e.length-n,a=o%r,s=Math.min(o,o-a)+n,u=0,l=n;l1&&0===this.words[this.length-1];)this.length--;return this._normSign()},i.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},i.prototype.inspect=function(){return(this.red?""};var u=["","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"],l=[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],f=[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];function d(e,t,n){n.negative=t.negative^e.negative;var r=e.length+t.length|0;n.length=r,r=r-1|0;var i=0|e.words[0],o=0|t.words[0],a=i*o,s=67108863&a,c=a/67108864|0;n.words[0]=s;for(var u=1;u>>26,f=67108863&c,d=Math.min(u,t.length-1),A=Math.max(0,u-e.length+1);A<=d;A++){var h=u-A|0;l+=(a=(i=0|e.words[h])*(o=0|t.words[A])+f)/67108864|0,f=67108863&a}n.words[u]=0|f,c=0|l}return 0!==c?n.words[u]=0|c:n.length--,n.strip()}i.prototype.toString=function(e,t){var r;if(t=0|t||1,16===(e=e||10)||"hex"===e){r="";for(var i=0,o=0,a=0;a>>24-i&16777215)||a!==this.length-1?u[6-c.length]+c+r:c+r,(i+=2)>=26&&(i-=26,a--)}for(0!==o&&(r=o.toString(16)+r);r.length%t!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}if(e===(0|e)&&e>=2&&e<=36){var d=l[e],A=f[e];r="";var h=this.clone();for(h.negative=0;!h.isZero();){var p=h.modn(A).toString(e);r=(h=h.idivn(A)).isZero()?p+r:u[d-p.length]+p+r}for(this.isZero()&&(r="0"+r);r.length%t!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}n(!1,"Base should be between 2 and 36")},i.prototype.toNumber=function(){var e=this.words[0];return 2===this.length?e+=67108864*this.words[1]:3===this.length&&1===this.words[2]?e+=4503599627370496+67108864*this.words[1]:this.length>2&&n(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-e:e},i.prototype.toJSON=function(){return this.toString(16)},i.prototype.toBuffer=function(e,t){return n(void 0!==o),this.toArrayLike(o,e,t)},i.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)},i.prototype.toArrayLike=function(e,t,r){var i=this.byteLength(),o=r||Math.max(1,i);n(i<=o,"byte array longer than desired length"),n(o>0,"Requested array length <= 0"),this.strip();var a,s,c="le"===t,u=new e(o),l=this.clone();if(c){for(s=0;!l.isZero();s++)a=l.andln(255),l.iushrn(8),u[s]=a;for(;s=4096&&(n+=13,t>>>=13),t>=64&&(n+=7,t>>>=7),t>=8&&(n+=4,t>>>=4),t>=2&&(n+=2,t>>>=2),n+t},i.prototype._zeroBits=function(e){if(0===e)return 26;var t=e,n=0;return!(8191&t)&&(n+=13,t>>>=13),!(127&t)&&(n+=7,t>>>=7),!(15&t)&&(n+=4,t>>>=4),!(3&t)&&(n+=2,t>>>=2),!(1&t)&&n++,n},i.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._countBits(e);return 26*(this.length-1)+t},i.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,t=0;te.length?this.clone().ior(e):e.clone().ior(this)},i.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},i.prototype.iuand=function(e){var t;t=this.length>e.length?e:this;for(var n=0;ne.length?this.clone().iand(e):e.clone().iand(this)},i.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},i.prototype.iuxor=function(e){var t,n;this.length>e.length?(t=this,n=e):(t=e,n=this);for(var r=0;re.length?this.clone().ixor(e):e.clone().ixor(this)},i.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},i.prototype.inotn=function(e){n("number"==typeof e&&e>=0);var t=0|Math.ceil(e/26),r=e%26;this._expand(t),r>0&&t--;for(var i=0;i0&&(this.words[i]=~this.words[i]&67108863>>26-r),this.strip()},i.prototype.notn=function(e){return this.clone().inotn(e)},i.prototype.setn=function(e,t){n("number"==typeof e&&e>=0);var r=e/26|0,i=e%26;return this._expand(r+1),this.words[r]=t?this.words[r]|1<e.length?(n=this,r=e):(n=e,r=this);for(var i=0,o=0;o>>26;for(;0!==i&&o>>26;if(this.length=n.length,0!==i)this.words[this.length]=i,this.length++;else if(n!==this)for(;oe.length?this.clone().iadd(e):e.clone().iadd(this)},i.prototype.isub=function(e){if(0!==e.negative){e.negative=0;var t=this.iadd(e);return e.negative=1,t._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(e),this.negative=1,this._normSign();var n,r,i=this.cmp(e);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;i>0?(n=this,r=e):(n=e,r=this);for(var o=0,a=0;a>26,this.words[a]=67108863&t;for(;0!==o&&a>26,this.words[a]=67108863&t;if(0===o&&a>>13,A=0|a[1],h=8191&A,p=A>>>13,g=0|a[2],y=8191&g,m=g>>>13,b=0|a[3],v=8191&b,w=b>>>13,E=0|a[4],I=8191&E,B=E>>>13,C=0|a[5],_=8191&C,S=C>>>13,Q=0|a[6],k=8191&Q,M=Q>>>13,x=0|a[7],R=8191&x,D=x>>>13,T=0|a[8],N=8191&T,O=T>>>13,L=0|a[9],P=8191&L,U=L>>>13,F=0|s[0],j=8191&F,q=F>>>13,G=0|s[1],H=8191&G,Y=G>>>13,K=0|s[2],z=8191&K,V=K>>>13,J=0|s[3],W=8191&J,Z=J>>>13,$=0|s[4],X=8191&$,ee=$>>>13,te=0|s[5],ne=8191&te,re=te>>>13,ie=0|s[6],oe=8191&ie,ae=ie>>>13,se=0|s[7],ce=8191&se,ue=se>>>13,le=0|s[8],fe=8191&le,de=le>>>13,Ae=0|s[9],he=8191&Ae,pe=Ae>>>13;n.negative=e.negative^t.negative,n.length=19;var ge=(u+(r=Math.imul(f,j))|0)+((8191&(i=(i=Math.imul(f,q))+Math.imul(d,j)|0))<<13)|0;u=((o=Math.imul(d,q))+(i>>>13)|0)+(ge>>>26)|0,ge&=67108863,r=Math.imul(h,j),i=(i=Math.imul(h,q))+Math.imul(p,j)|0,o=Math.imul(p,q);var ye=(u+(r=r+Math.imul(f,H)|0)|0)+((8191&(i=(i=i+Math.imul(f,Y)|0)+Math.imul(d,H)|0))<<13)|0;u=((o=o+Math.imul(d,Y)|0)+(i>>>13)|0)+(ye>>>26)|0,ye&=67108863,r=Math.imul(y,j),i=(i=Math.imul(y,q))+Math.imul(m,j)|0,o=Math.imul(m,q),r=r+Math.imul(h,H)|0,i=(i=i+Math.imul(h,Y)|0)+Math.imul(p,H)|0,o=o+Math.imul(p,Y)|0;var me=(u+(r=r+Math.imul(f,z)|0)|0)+((8191&(i=(i=i+Math.imul(f,V)|0)+Math.imul(d,z)|0))<<13)|0;u=((o=o+Math.imul(d,V)|0)+(i>>>13)|0)+(me>>>26)|0,me&=67108863,r=Math.imul(v,j),i=(i=Math.imul(v,q))+Math.imul(w,j)|0,o=Math.imul(w,q),r=r+Math.imul(y,H)|0,i=(i=i+Math.imul(y,Y)|0)+Math.imul(m,H)|0,o=o+Math.imul(m,Y)|0,r=r+Math.imul(h,z)|0,i=(i=i+Math.imul(h,V)|0)+Math.imul(p,z)|0,o=o+Math.imul(p,V)|0;var be=(u+(r=r+Math.imul(f,W)|0)|0)+((8191&(i=(i=i+Math.imul(f,Z)|0)+Math.imul(d,W)|0))<<13)|0;u=((o=o+Math.imul(d,Z)|0)+(i>>>13)|0)+(be>>>26)|0,be&=67108863,r=Math.imul(I,j),i=(i=Math.imul(I,q))+Math.imul(B,j)|0,o=Math.imul(B,q),r=r+Math.imul(v,H)|0,i=(i=i+Math.imul(v,Y)|0)+Math.imul(w,H)|0,o=o+Math.imul(w,Y)|0,r=r+Math.imul(y,z)|0,i=(i=i+Math.imul(y,V)|0)+Math.imul(m,z)|0,o=o+Math.imul(m,V)|0,r=r+Math.imul(h,W)|0,i=(i=i+Math.imul(h,Z)|0)+Math.imul(p,W)|0,o=o+Math.imul(p,Z)|0;var ve=(u+(r=r+Math.imul(f,X)|0)|0)+((8191&(i=(i=i+Math.imul(f,ee)|0)+Math.imul(d,X)|0))<<13)|0;u=((o=o+Math.imul(d,ee)|0)+(i>>>13)|0)+(ve>>>26)|0,ve&=67108863,r=Math.imul(_,j),i=(i=Math.imul(_,q))+Math.imul(S,j)|0,o=Math.imul(S,q),r=r+Math.imul(I,H)|0,i=(i=i+Math.imul(I,Y)|0)+Math.imul(B,H)|0,o=o+Math.imul(B,Y)|0,r=r+Math.imul(v,z)|0,i=(i=i+Math.imul(v,V)|0)+Math.imul(w,z)|0,o=o+Math.imul(w,V)|0,r=r+Math.imul(y,W)|0,i=(i=i+Math.imul(y,Z)|0)+Math.imul(m,W)|0,o=o+Math.imul(m,Z)|0,r=r+Math.imul(h,X)|0,i=(i=i+Math.imul(h,ee)|0)+Math.imul(p,X)|0,o=o+Math.imul(p,ee)|0;var we=(u+(r=r+Math.imul(f,ne)|0)|0)+((8191&(i=(i=i+Math.imul(f,re)|0)+Math.imul(d,ne)|0))<<13)|0;u=((o=o+Math.imul(d,re)|0)+(i>>>13)|0)+(we>>>26)|0,we&=67108863,r=Math.imul(k,j),i=(i=Math.imul(k,q))+Math.imul(M,j)|0,o=Math.imul(M,q),r=r+Math.imul(_,H)|0,i=(i=i+Math.imul(_,Y)|0)+Math.imul(S,H)|0,o=o+Math.imul(S,Y)|0,r=r+Math.imul(I,z)|0,i=(i=i+Math.imul(I,V)|0)+Math.imul(B,z)|0,o=o+Math.imul(B,V)|0,r=r+Math.imul(v,W)|0,i=(i=i+Math.imul(v,Z)|0)+Math.imul(w,W)|0,o=o+Math.imul(w,Z)|0,r=r+Math.imul(y,X)|0,i=(i=i+Math.imul(y,ee)|0)+Math.imul(m,X)|0,o=o+Math.imul(m,ee)|0,r=r+Math.imul(h,ne)|0,i=(i=i+Math.imul(h,re)|0)+Math.imul(p,ne)|0,o=o+Math.imul(p,re)|0;var Ee=(u+(r=r+Math.imul(f,oe)|0)|0)+((8191&(i=(i=i+Math.imul(f,ae)|0)+Math.imul(d,oe)|0))<<13)|0;u=((o=o+Math.imul(d,ae)|0)+(i>>>13)|0)+(Ee>>>26)|0,Ee&=67108863,r=Math.imul(R,j),i=(i=Math.imul(R,q))+Math.imul(D,j)|0,o=Math.imul(D,q),r=r+Math.imul(k,H)|0,i=(i=i+Math.imul(k,Y)|0)+Math.imul(M,H)|0,o=o+Math.imul(M,Y)|0,r=r+Math.imul(_,z)|0,i=(i=i+Math.imul(_,V)|0)+Math.imul(S,z)|0,o=o+Math.imul(S,V)|0,r=r+Math.imul(I,W)|0,i=(i=i+Math.imul(I,Z)|0)+Math.imul(B,W)|0,o=o+Math.imul(B,Z)|0,r=r+Math.imul(v,X)|0,i=(i=i+Math.imul(v,ee)|0)+Math.imul(w,X)|0,o=o+Math.imul(w,ee)|0,r=r+Math.imul(y,ne)|0,i=(i=i+Math.imul(y,re)|0)+Math.imul(m,ne)|0,o=o+Math.imul(m,re)|0,r=r+Math.imul(h,oe)|0,i=(i=i+Math.imul(h,ae)|0)+Math.imul(p,oe)|0,o=o+Math.imul(p,ae)|0;var Ie=(u+(r=r+Math.imul(f,ce)|0)|0)+((8191&(i=(i=i+Math.imul(f,ue)|0)+Math.imul(d,ce)|0))<<13)|0;u=((o=o+Math.imul(d,ue)|0)+(i>>>13)|0)+(Ie>>>26)|0,Ie&=67108863,r=Math.imul(N,j),i=(i=Math.imul(N,q))+Math.imul(O,j)|0,o=Math.imul(O,q),r=r+Math.imul(R,H)|0,i=(i=i+Math.imul(R,Y)|0)+Math.imul(D,H)|0,o=o+Math.imul(D,Y)|0,r=r+Math.imul(k,z)|0,i=(i=i+Math.imul(k,V)|0)+Math.imul(M,z)|0,o=o+Math.imul(M,V)|0,r=r+Math.imul(_,W)|0,i=(i=i+Math.imul(_,Z)|0)+Math.imul(S,W)|0,o=o+Math.imul(S,Z)|0,r=r+Math.imul(I,X)|0,i=(i=i+Math.imul(I,ee)|0)+Math.imul(B,X)|0,o=o+Math.imul(B,ee)|0,r=r+Math.imul(v,ne)|0,i=(i=i+Math.imul(v,re)|0)+Math.imul(w,ne)|0,o=o+Math.imul(w,re)|0,r=r+Math.imul(y,oe)|0,i=(i=i+Math.imul(y,ae)|0)+Math.imul(m,oe)|0,o=o+Math.imul(m,ae)|0,r=r+Math.imul(h,ce)|0,i=(i=i+Math.imul(h,ue)|0)+Math.imul(p,ce)|0,o=o+Math.imul(p,ue)|0;var Be=(u+(r=r+Math.imul(f,fe)|0)|0)+((8191&(i=(i=i+Math.imul(f,de)|0)+Math.imul(d,fe)|0))<<13)|0;u=((o=o+Math.imul(d,de)|0)+(i>>>13)|0)+(Be>>>26)|0,Be&=67108863,r=Math.imul(P,j),i=(i=Math.imul(P,q))+Math.imul(U,j)|0,o=Math.imul(U,q),r=r+Math.imul(N,H)|0,i=(i=i+Math.imul(N,Y)|0)+Math.imul(O,H)|0,o=o+Math.imul(O,Y)|0,r=r+Math.imul(R,z)|0,i=(i=i+Math.imul(R,V)|0)+Math.imul(D,z)|0,o=o+Math.imul(D,V)|0,r=r+Math.imul(k,W)|0,i=(i=i+Math.imul(k,Z)|0)+Math.imul(M,W)|0,o=o+Math.imul(M,Z)|0,r=r+Math.imul(_,X)|0,i=(i=i+Math.imul(_,ee)|0)+Math.imul(S,X)|0,o=o+Math.imul(S,ee)|0,r=r+Math.imul(I,ne)|0,i=(i=i+Math.imul(I,re)|0)+Math.imul(B,ne)|0,o=o+Math.imul(B,re)|0,r=r+Math.imul(v,oe)|0,i=(i=i+Math.imul(v,ae)|0)+Math.imul(w,oe)|0,o=o+Math.imul(w,ae)|0,r=r+Math.imul(y,ce)|0,i=(i=i+Math.imul(y,ue)|0)+Math.imul(m,ce)|0,o=o+Math.imul(m,ue)|0,r=r+Math.imul(h,fe)|0,i=(i=i+Math.imul(h,de)|0)+Math.imul(p,fe)|0,o=o+Math.imul(p,de)|0;var Ce=(u+(r=r+Math.imul(f,he)|0)|0)+((8191&(i=(i=i+Math.imul(f,pe)|0)+Math.imul(d,he)|0))<<13)|0;u=((o=o+Math.imul(d,pe)|0)+(i>>>13)|0)+(Ce>>>26)|0,Ce&=67108863,r=Math.imul(P,H),i=(i=Math.imul(P,Y))+Math.imul(U,H)|0,o=Math.imul(U,Y),r=r+Math.imul(N,z)|0,i=(i=i+Math.imul(N,V)|0)+Math.imul(O,z)|0,o=o+Math.imul(O,V)|0,r=r+Math.imul(R,W)|0,i=(i=i+Math.imul(R,Z)|0)+Math.imul(D,W)|0,o=o+Math.imul(D,Z)|0,r=r+Math.imul(k,X)|0,i=(i=i+Math.imul(k,ee)|0)+Math.imul(M,X)|0,o=o+Math.imul(M,ee)|0,r=r+Math.imul(_,ne)|0,i=(i=i+Math.imul(_,re)|0)+Math.imul(S,ne)|0,o=o+Math.imul(S,re)|0,r=r+Math.imul(I,oe)|0,i=(i=i+Math.imul(I,ae)|0)+Math.imul(B,oe)|0,o=o+Math.imul(B,ae)|0,r=r+Math.imul(v,ce)|0,i=(i=i+Math.imul(v,ue)|0)+Math.imul(w,ce)|0,o=o+Math.imul(w,ue)|0,r=r+Math.imul(y,fe)|0,i=(i=i+Math.imul(y,de)|0)+Math.imul(m,fe)|0,o=o+Math.imul(m,de)|0;var _e=(u+(r=r+Math.imul(h,he)|0)|0)+((8191&(i=(i=i+Math.imul(h,pe)|0)+Math.imul(p,he)|0))<<13)|0;u=((o=o+Math.imul(p,pe)|0)+(i>>>13)|0)+(_e>>>26)|0,_e&=67108863,r=Math.imul(P,z),i=(i=Math.imul(P,V))+Math.imul(U,z)|0,o=Math.imul(U,V),r=r+Math.imul(N,W)|0,i=(i=i+Math.imul(N,Z)|0)+Math.imul(O,W)|0,o=o+Math.imul(O,Z)|0,r=r+Math.imul(R,X)|0,i=(i=i+Math.imul(R,ee)|0)+Math.imul(D,X)|0,o=o+Math.imul(D,ee)|0,r=r+Math.imul(k,ne)|0,i=(i=i+Math.imul(k,re)|0)+Math.imul(M,ne)|0,o=o+Math.imul(M,re)|0,r=r+Math.imul(_,oe)|0,i=(i=i+Math.imul(_,ae)|0)+Math.imul(S,oe)|0,o=o+Math.imul(S,ae)|0,r=r+Math.imul(I,ce)|0,i=(i=i+Math.imul(I,ue)|0)+Math.imul(B,ce)|0,o=o+Math.imul(B,ue)|0,r=r+Math.imul(v,fe)|0,i=(i=i+Math.imul(v,de)|0)+Math.imul(w,fe)|0,o=o+Math.imul(w,de)|0;var Se=(u+(r=r+Math.imul(y,he)|0)|0)+((8191&(i=(i=i+Math.imul(y,pe)|0)+Math.imul(m,he)|0))<<13)|0;u=((o=o+Math.imul(m,pe)|0)+(i>>>13)|0)+(Se>>>26)|0,Se&=67108863,r=Math.imul(P,W),i=(i=Math.imul(P,Z))+Math.imul(U,W)|0,o=Math.imul(U,Z),r=r+Math.imul(N,X)|0,i=(i=i+Math.imul(N,ee)|0)+Math.imul(O,X)|0,o=o+Math.imul(O,ee)|0,r=r+Math.imul(R,ne)|0,i=(i=i+Math.imul(R,re)|0)+Math.imul(D,ne)|0,o=o+Math.imul(D,re)|0,r=r+Math.imul(k,oe)|0,i=(i=i+Math.imul(k,ae)|0)+Math.imul(M,oe)|0,o=o+Math.imul(M,ae)|0,r=r+Math.imul(_,ce)|0,i=(i=i+Math.imul(_,ue)|0)+Math.imul(S,ce)|0,o=o+Math.imul(S,ue)|0,r=r+Math.imul(I,fe)|0,i=(i=i+Math.imul(I,de)|0)+Math.imul(B,fe)|0,o=o+Math.imul(B,de)|0;var Qe=(u+(r=r+Math.imul(v,he)|0)|0)+((8191&(i=(i=i+Math.imul(v,pe)|0)+Math.imul(w,he)|0))<<13)|0;u=((o=o+Math.imul(w,pe)|0)+(i>>>13)|0)+(Qe>>>26)|0,Qe&=67108863,r=Math.imul(P,X),i=(i=Math.imul(P,ee))+Math.imul(U,X)|0,o=Math.imul(U,ee),r=r+Math.imul(N,ne)|0,i=(i=i+Math.imul(N,re)|0)+Math.imul(O,ne)|0,o=o+Math.imul(O,re)|0,r=r+Math.imul(R,oe)|0,i=(i=i+Math.imul(R,ae)|0)+Math.imul(D,oe)|0,o=o+Math.imul(D,ae)|0,r=r+Math.imul(k,ce)|0,i=(i=i+Math.imul(k,ue)|0)+Math.imul(M,ce)|0,o=o+Math.imul(M,ue)|0,r=r+Math.imul(_,fe)|0,i=(i=i+Math.imul(_,de)|0)+Math.imul(S,fe)|0,o=o+Math.imul(S,de)|0;var ke=(u+(r=r+Math.imul(I,he)|0)|0)+((8191&(i=(i=i+Math.imul(I,pe)|0)+Math.imul(B,he)|0))<<13)|0;u=((o=o+Math.imul(B,pe)|0)+(i>>>13)|0)+(ke>>>26)|0,ke&=67108863,r=Math.imul(P,ne),i=(i=Math.imul(P,re))+Math.imul(U,ne)|0,o=Math.imul(U,re),r=r+Math.imul(N,oe)|0,i=(i=i+Math.imul(N,ae)|0)+Math.imul(O,oe)|0,o=o+Math.imul(O,ae)|0,r=r+Math.imul(R,ce)|0,i=(i=i+Math.imul(R,ue)|0)+Math.imul(D,ce)|0,o=o+Math.imul(D,ue)|0,r=r+Math.imul(k,fe)|0,i=(i=i+Math.imul(k,de)|0)+Math.imul(M,fe)|0,o=o+Math.imul(M,de)|0;var Me=(u+(r=r+Math.imul(_,he)|0)|0)+((8191&(i=(i=i+Math.imul(_,pe)|0)+Math.imul(S,he)|0))<<13)|0;u=((o=o+Math.imul(S,pe)|0)+(i>>>13)|0)+(Me>>>26)|0,Me&=67108863,r=Math.imul(P,oe),i=(i=Math.imul(P,ae))+Math.imul(U,oe)|0,o=Math.imul(U,ae),r=r+Math.imul(N,ce)|0,i=(i=i+Math.imul(N,ue)|0)+Math.imul(O,ce)|0,o=o+Math.imul(O,ue)|0,r=r+Math.imul(R,fe)|0,i=(i=i+Math.imul(R,de)|0)+Math.imul(D,fe)|0,o=o+Math.imul(D,de)|0;var xe=(u+(r=r+Math.imul(k,he)|0)|0)+((8191&(i=(i=i+Math.imul(k,pe)|0)+Math.imul(M,he)|0))<<13)|0;u=((o=o+Math.imul(M,pe)|0)+(i>>>13)|0)+(xe>>>26)|0,xe&=67108863,r=Math.imul(P,ce),i=(i=Math.imul(P,ue))+Math.imul(U,ce)|0,o=Math.imul(U,ue),r=r+Math.imul(N,fe)|0,i=(i=i+Math.imul(N,de)|0)+Math.imul(O,fe)|0,o=o+Math.imul(O,de)|0;var Re=(u+(r=r+Math.imul(R,he)|0)|0)+((8191&(i=(i=i+Math.imul(R,pe)|0)+Math.imul(D,he)|0))<<13)|0;u=((o=o+Math.imul(D,pe)|0)+(i>>>13)|0)+(Re>>>26)|0,Re&=67108863,r=Math.imul(P,fe),i=(i=Math.imul(P,de))+Math.imul(U,fe)|0,o=Math.imul(U,de);var De=(u+(r=r+Math.imul(N,he)|0)|0)+((8191&(i=(i=i+Math.imul(N,pe)|0)+Math.imul(O,he)|0))<<13)|0;u=((o=o+Math.imul(O,pe)|0)+(i>>>13)|0)+(De>>>26)|0,De&=67108863;var Te=(u+(r=Math.imul(P,he))|0)+((8191&(i=(i=Math.imul(P,pe))+Math.imul(U,he)|0))<<13)|0;return u=((o=Math.imul(U,pe))+(i>>>13)|0)+(Te>>>26)|0,Te&=67108863,c[0]=ge,c[1]=ye,c[2]=me,c[3]=be,c[4]=ve,c[5]=we,c[6]=Ee,c[7]=Ie,c[8]=Be,c[9]=Ce,c[10]=_e,c[11]=Se,c[12]=Qe,c[13]=ke,c[14]=Me,c[15]=xe,c[16]=Re,c[17]=De,c[18]=Te,0!==u&&(c[19]=u,n.length++),n};function h(e,t,n){return(new p).mulp(e,t,n)}function p(e,t){this.x=e,this.y=t}Math.imul||(A=d),i.prototype.mulTo=function(e,t){var n,r=this.length+e.length;return n=10===this.length&&10===e.length?A(this,e,t):r<63?d(this,e,t):r<1024?function(e,t,n){n.negative=t.negative^e.negative,n.length=e.length+t.length;for(var r=0,i=0,o=0;o>>26)|0)>>>26,a&=67108863}n.words[o]=s,r=a,a=i}return 0!==r?n.words[o]=r:n.length--,n.strip()}(this,e,t):h(this,e,t),n},p.prototype.makeRBT=function(e){for(var t=new Array(e),n=i.prototype._countBits(e)-1,r=0;r>=1;return r},p.prototype.permute=function(e,t,n,r,i,o){for(var a=0;a>>=1)i++;return 1<>>=13,r[2*a+1]=8191&o,o>>>=13;for(a=2*t;a>=26,t+=i/67108864|0,t+=o>>>26,this.words[r]=67108863&o}return 0!==t&&(this.words[r]=t,this.length++),this},i.prototype.muln=function(e){return this.clone().imuln(e)},i.prototype.sqr=function(){return this.mul(this)},i.prototype.isqr=function(){return this.imul(this.clone())},i.prototype.pow=function(e){var t=function(e){for(var t=new Array(e.bitLength()),n=0;n>>i}return t}(e);if(0===t.length)return new i(1);for(var n=this,r=0;r=0);var t,r=e%26,i=(e-r)/26,o=67108863>>>26-r<<26-r;if(0!==r){var a=0;for(t=0;t>>26-r}a&&(this.words[t]=a,this.length++)}if(0!==i){for(t=this.length-1;t>=0;t--)this.words[t+i]=this.words[t];for(t=0;t=0),i=t?(t-t%26)/26:0;var o=e%26,a=Math.min((e-o)/26,this.length),s=67108863^67108863>>>o<a)for(this.length-=a,u=0;u=0&&(0!==l||u>=i);u--){var f=0|this.words[u];this.words[u]=l<<26-o|f>>>o,l=f&s}return c&&0!==l&&(c.words[c.length++]=l),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},i.prototype.ishrn=function(e,t,r){return n(0===this.negative),this.iushrn(e,t,r)},i.prototype.shln=function(e){return this.clone().ishln(e)},i.prototype.ushln=function(e){return this.clone().iushln(e)},i.prototype.shrn=function(e){return this.clone().ishrn(e)},i.prototype.ushrn=function(e){return this.clone().iushrn(e)},i.prototype.testn=function(e){n("number"==typeof e&&e>=0);var t=e%26,r=(e-t)/26,i=1<=0);var t=e%26,r=(e-t)/26;if(n(0===this.negative,"imaskn works only with positive numbers"),this.length<=r)return this;if(0!==t&&r++,this.length=Math.min(r,this.length),0!==t){var i=67108863^67108863>>>t<=67108864;t++)this.words[t]-=67108864,t===this.length-1?this.words[t+1]=1:this.words[t+1]++;return this.length=Math.max(this.length,t+1),this},i.prototype.isubn=function(e){if(n("number"==typeof e),n(e<67108864),e<0)return this.iaddn(-e);if(0!==this.negative)return this.negative=0,this.iaddn(e),this.negative=1,this;if(this.words[0]-=e,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var t=0;t>26)-(c/67108864|0),this.words[i+r]=67108863&o}for(;i>26,this.words[i+r]=67108863&o;if(0===s)return this.strip();for(n(-1===s),s=0,i=0;i>26,this.words[i]=67108863&o;return this.negative=1,this.strip()},i.prototype._wordDiv=function(e,t){var n=(this.length,e.length),r=this.clone(),o=e,a=0|o.words[o.length-1];0!=(n=26-this._countBits(a))&&(o=o.ushln(n),r.iushln(n),a=0|o.words[o.length-1]);var s,c=r.length-o.length;if("mod"!==t){(s=new i(null)).length=c+1,s.words=new Array(s.length);for(var u=0;u=0;f--){var d=67108864*(0|r.words[o.length+f])+(0|r.words[o.length+f-1]);for(d=Math.min(d/a|0,67108863),r._ishlnsubmul(o,d,f);0!==r.negative;)d--,r.negative=0,r._ishlnsubmul(o,1,f),r.isZero()||(r.negative^=1);s&&(s.words[f]=d)}return s&&s.strip(),r.strip(),"div"!==t&&0!==n&&r.iushrn(n),{div:s||null,mod:r}},i.prototype.divmod=function(e,t,r){return n(!e.isZero()),this.isZero()?{div:new i(0),mod:new i(0)}:0!==this.negative&&0===e.negative?(s=this.neg().divmod(e,t),"mod"!==t&&(o=s.div.neg()),"div"!==t&&(a=s.mod.neg(),r&&0!==a.negative&&a.iadd(e)),{div:o,mod:a}):0===this.negative&&0!==e.negative?(s=this.divmod(e.neg(),t),"mod"!==t&&(o=s.div.neg()),{div:o,mod:s.mod}):this.negative&e.negative?(s=this.neg().divmod(e.neg(),t),"div"!==t&&(a=s.mod.neg(),r&&0!==a.negative&&a.isub(e)),{div:s.div,mod:a}):e.length>this.length||this.cmp(e)<0?{div:new i(0),mod:this}:1===e.length?"div"===t?{div:this.divn(e.words[0]),mod:null}:"mod"===t?{div:null,mod:new i(this.modn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new i(this.modn(e.words[0]))}:this._wordDiv(e,t);var o,a,s},i.prototype.div=function(e){return this.divmod(e,"div",!1).div},i.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},i.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},i.prototype.divRound=function(e){var t=this.divmod(e);if(t.mod.isZero())return t.div;var n=0!==t.div.negative?t.mod.isub(e):t.mod,r=e.ushrn(1),i=e.andln(1),o=n.cmp(r);return o<0||1===i&&0===o?t.div:0!==t.div.negative?t.div.isubn(1):t.div.iaddn(1)},i.prototype.modn=function(e){n(e<=67108863);for(var t=(1<<26)%e,r=0,i=this.length-1;i>=0;i--)r=(t*r+(0|this.words[i]))%e;return r},i.prototype.idivn=function(e){n(e<=67108863);for(var t=0,r=this.length-1;r>=0;r--){var i=(0|this.words[r])+67108864*t;this.words[r]=i/e|0,t=i%e}return this.strip()},i.prototype.divn=function(e){return this.clone().idivn(e)},i.prototype.egcd=function(e){n(0===e.negative),n(!e.isZero());var t=this,r=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var o=new i(1),a=new i(0),s=new i(0),c=new i(1),u=0;t.isEven()&&r.isEven();)t.iushrn(1),r.iushrn(1),++u;for(var l=r.clone(),f=t.clone();!t.isZero();){for(var d=0,A=1;!(t.words[0]&A)&&d<26;++d,A<<=1);if(d>0)for(t.iushrn(d);d-- >0;)(o.isOdd()||a.isOdd())&&(o.iadd(l),a.isub(f)),o.iushrn(1),a.iushrn(1);for(var h=0,p=1;!(r.words[0]&p)&&h<26;++h,p<<=1);if(h>0)for(r.iushrn(h);h-- >0;)(s.isOdd()||c.isOdd())&&(s.iadd(l),c.isub(f)),s.iushrn(1),c.iushrn(1);t.cmp(r)>=0?(t.isub(r),o.isub(s),a.isub(c)):(r.isub(t),s.isub(o),c.isub(a))}return{a:s,b:c,gcd:r.iushln(u)}},i.prototype._invmp=function(e){n(0===e.negative),n(!e.isZero());var t=this,r=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var o,a=new i(1),s=new i(0),c=r.clone();t.cmpn(1)>0&&r.cmpn(1)>0;){for(var u=0,l=1;!(t.words[0]&l)&&u<26;++u,l<<=1);if(u>0)for(t.iushrn(u);u-- >0;)a.isOdd()&&a.iadd(c),a.iushrn(1);for(var f=0,d=1;!(r.words[0]&d)&&f<26;++f,d<<=1);if(f>0)for(r.iushrn(f);f-- >0;)s.isOdd()&&s.iadd(c),s.iushrn(1);t.cmp(r)>=0?(t.isub(r),a.isub(s)):(r.isub(t),s.isub(a))}return(o=0===t.cmpn(1)?a:s).cmpn(0)<0&&o.iadd(e),o},i.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var t=this.clone(),n=e.clone();t.negative=0,n.negative=0;for(var r=0;t.isEven()&&n.isEven();r++)t.iushrn(1),n.iushrn(1);for(;;){for(;t.isEven();)t.iushrn(1);for(;n.isEven();)n.iushrn(1);var i=t.cmp(n);if(i<0){var o=t;t=n,n=o}else if(0===i||0===n.cmpn(1))break;t.isub(n)}return n.iushln(r)},i.prototype.invm=function(e){return this.egcd(e).a.umod(e)},i.prototype.isEven=function(){return!(1&this.words[0])},i.prototype.isOdd=function(){return!(1&~this.words[0])},i.prototype.andln=function(e){return this.words[0]&e},i.prototype.bincn=function(e){n("number"==typeof e);var t=e%26,r=(e-t)/26,i=1<>>26,s&=67108863,this.words[a]=s}return 0!==o&&(this.words[a]=o,this.length++),this},i.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},i.prototype.cmpn=function(e){var t,r=e<0;if(0!==this.negative&&!r)return-1;if(0===this.negative&&r)return 1;if(this.strip(),this.length>1)t=1;else{r&&(e=-e),n(e<=67108863,"Number is too big");var i=0|this.words[0];t=i===e?0:ie.length)return 1;if(this.length=0;n--){var r=0|this.words[n],i=0|e.words[n];if(r!==i){ri&&(t=1);break}}return t},i.prototype.gtn=function(e){return 1===this.cmpn(e)},i.prototype.gt=function(e){return 1===this.cmp(e)},i.prototype.gten=function(e){return this.cmpn(e)>=0},i.prototype.gte=function(e){return this.cmp(e)>=0},i.prototype.ltn=function(e){return-1===this.cmpn(e)},i.prototype.lt=function(e){return-1===this.cmp(e)},i.prototype.lten=function(e){return this.cmpn(e)<=0},i.prototype.lte=function(e){return this.cmp(e)<=0},i.prototype.eqn=function(e){return 0===this.cmpn(e)},i.prototype.eq=function(e){return 0===this.cmp(e)},i.red=function(e){return new E(e)},i.prototype.toRed=function(e){return n(!this.red,"Already a number in reduction context"),n(0===this.negative,"red works only with positives"),e.convertTo(this)._forceRed(e)},i.prototype.fromRed=function(){return n(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},i.prototype._forceRed=function(e){return this.red=e,this},i.prototype.forceRed=function(e){return n(!this.red,"Already a number in reduction context"),this._forceRed(e)},i.prototype.redAdd=function(e){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},i.prototype.redIAdd=function(e){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},i.prototype.redSub=function(e){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},i.prototype.redISub=function(e){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},i.prototype.redShl=function(e){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},i.prototype.redMul=function(e){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},i.prototype.redIMul=function(e){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},i.prototype.redSqr=function(){return n(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},i.prototype.redISqr=function(){return n(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},i.prototype.redSqrt=function(){return n(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},i.prototype.redInvm=function(){return n(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},i.prototype.redNeg=function(){return n(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},i.prototype.redPow=function(e){return n(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var g={k256:null,p224:null,p192:null,p25519:null};function y(e,t){this.name=e,this.p=new i(t,16),this.n=this.p.bitLength(),this.k=new i(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function m(){y.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function b(){y.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function v(){y.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function w(){y.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function E(e){if("string"==typeof e){var t=i._prime(e);this.m=t.p,this.prime=t}else n(e.gtn(1),"modulus must be greater than 1"),this.m=e,this.prime=null}function I(e){E.call(this,e),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)}y.prototype._tmp=function(){var e=new i(null);return e.words=new Array(Math.ceil(this.n/13)),e},y.prototype.ireduce=function(e){var t,n=e;do{this.split(n,this.tmp),t=(n=(n=this.imulK(n)).iadd(this.tmp)).bitLength()}while(t>this.n);var r=t0?n.isub(this.p):void 0!==n.strip?n.strip():n._strip(),n},y.prototype.split=function(e,t){e.iushrn(this.n,0,t)},y.prototype.imulK=function(e){return e.imul(this.k)},r(m,y),m.prototype.split=function(e,t){for(var n=4194303,r=Math.min(e.length,9),i=0;i>>22,o=a}o>>>=22,e.words[i-10]=o,0===o&&e.length>10?e.length-=10:e.length-=9},m.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var t=0,n=0;n>>=26,e.words[n]=i,t=r}return 0!==t&&(e.words[e.length++]=t),e},i._prime=function(e){if(g[e])return g[e];var t;if("k256"===e)t=new m;else if("p224"===e)t=new b;else if("p192"===e)t=new v;else{if("p25519"!==e)throw new Error("Unknown prime "+e);t=new w}return g[e]=t,t},E.prototype._verify1=function(e){n(0===e.negative,"red works only with positives"),n(e.red,"red works only with red numbers")},E.prototype._verify2=function(e,t){n(!(e.negative|t.negative),"red works only with positives"),n(e.red&&e.red===t.red,"red works only with red numbers")},E.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):e.umod(this.m)._forceRed(this)},E.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},E.prototype.add=function(e,t){this._verify2(e,t);var n=e.add(t);return n.cmp(this.m)>=0&&n.isub(this.m),n._forceRed(this)},E.prototype.iadd=function(e,t){this._verify2(e,t);var n=e.iadd(t);return n.cmp(this.m)>=0&&n.isub(this.m),n},E.prototype.sub=function(e,t){this._verify2(e,t);var n=e.sub(t);return n.cmpn(0)<0&&n.iadd(this.m),n._forceRed(this)},E.prototype.isub=function(e,t){this._verify2(e,t);var n=e.isub(t);return n.cmpn(0)<0&&n.iadd(this.m),n},E.prototype.shl=function(e,t){return this._verify1(e),this.imod(e.ushln(t))},E.prototype.imul=function(e,t){return this._verify2(e,t),this.imod(e.imul(t))},E.prototype.mul=function(e,t){return this._verify2(e,t),this.imod(e.mul(t))},E.prototype.isqr=function(e){return this.imul(e,e.clone())},E.prototype.sqr=function(e){return this.mul(e,e)},E.prototype.sqrt=function(e){if(e.isZero())return e.clone();var t=this.m.andln(3);if(n(t%2==1),3===t){var r=this.m.add(new i(1)).iushrn(2);return this.pow(e,r)}for(var o=this.m.subn(1),a=0;!o.isZero()&&0===o.andln(1);)a++,o.iushrn(1);n(!o.isZero());var s=new i(1).toRed(this),c=s.redNeg(),u=this.m.subn(1).iushrn(1),l=this.m.bitLength();for(l=new i(2*l*l).toRed(this);0!==this.pow(l,u).cmp(c);)l.redIAdd(c);for(var f=this.pow(l,o),d=this.pow(e,o.addn(1).iushrn(1)),A=this.pow(e,o),h=a;0!==A.cmp(s);){for(var p=A,g=0;0!==p.cmp(s);g++)p=p.redSqr();n(g=0;r--){for(var u=t.words[r],l=c-1;l>=0;l--){var f=u>>l&1;o!==n[0]&&(o=this.sqr(o)),0!==f||0!==a?(a<<=1,a|=f,(4==++s||0===r&&0===l)&&(o=this.mul(o,n[a]),s=0,a=0)):s=0}c=26}return o},E.prototype.convertTo=function(e){var t=e.umod(this.m);return t===e?t.clone():t},E.prototype.convertFrom=function(e){var t=e.clone();return t.red=null,t},i.mont=function(e){return new I(e)},r(I,E),I.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},I.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},I.prototype.imul=function(e,t){if(e.isZero()||t.isZero())return e.words[0]=0,e.length=1,e;var n=e.imul(t),r=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=n.isub(r).iushrn(this.shift),o=i;return i.cmp(this.m)>=0?o=i.isub(this.m):i.cmpn(0)<0&&(o=i.iadd(this.m)),o._forceRed(this)},I.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new i(0)._forceRed(this);var n=e.mul(t),r=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),o=n.isub(r).iushrn(this.shift),a=o;return o.cmp(this.m)>=0?a=o.isub(this.m):o.cmpn(0)<0&&(a=o.iadd(this.m)),a._forceRed(this)},I.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}}(ud,dr);var ld,fd,dd,Ad,hd,pd=ud.exports,gd={exports:{}};function yd(){if(ld)return gd.exports;var e;function t(e){this.rand=e}if(ld=1,gd.exports=function(n){return e||(e=new t(null)),e.generate(n)},gd.exports.Rand=t,t.prototype.generate=function(e){return this._rand(e)},t.prototype._rand=function(e){if(this.rand.getBytes)return this.rand.getBytes(e);for(var t=new Uint8Array(e),n=0;n=0);return i},n.prototype._randrange=function(e,t){var n=t.sub(e);return e.add(this._randbelow(n))},n.prototype.test=function(t,n,r){var i=t.bitLength(),o=e.mont(t),a=new e(1).toRed(o);n||(n=Math.max(1,i/48|0));for(var s=t.subn(1),c=0;!s.testn(c);c++);for(var u=t.shrn(c),l=s.toRed(o);n>0;n--){var f=this._randrange(new e(2),s);r&&r(f);var d=f.toRed(o).redPow(u);if(0!==d.cmp(a)&&0!==d.cmp(l)){for(var A=1;A0;n--){var l=this._randrange(new e(2),a),f=t.gcd(l);if(0!==f.cmpn(1))return f;var d=l.toRed(i).redPow(c);if(0!==d.cmp(o)&&0!==d.cmp(u)){for(var A=1;Af;)p.ishrn(1);if(p.isEven()&&p.iadd(i),p.testn(1)||p.iadd(o),h.cmp(o)){if(!h.cmp(a))for(;p.mod(s).cmp(c);)p.iadd(l)}else for(;p.mod(n).cmp(u);)p.iadd(l);if(d(g=p.shrn(1))&&d(p)&&A(g)&&A(p)&&r.test(g)&&r.test(p))return p}}return Ad}var vd,wd,Ed,Id,Bd,Cd={modp1:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a63a3620ffffffffffffffff"},modp2:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece65381ffffffffffffffff"},modp5:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca237327ffffffffffffffff"},modp14:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aacaa68ffffffffffffffff"},modp15:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a93ad2caffffffffffffffff"},modp16:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c934063199ffffffffffffffff"},modp17:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dcc4024ffffffffffffffff"},modp18:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dbe115974a3926f12fee5e438777cb6a932df8cd8bec4d073b931ba3bc832b68d9dd300741fa7bf8afc47ed2576f6936ba424663aab639c5ae4f5683423b4742bf1c978238f16cbe39d652de3fdb8befc848ad922222e04a4037c0713eb57a81a23f0c73473fc646cea306b4bcbc8862f8385ddfa9d4b7fa2c087e879683303ed5bdd3a062b3cf5b3a278a66d2a13f83f44f82ddf310ee074ab6a364597e899a0255dc164f31cc50846851df9ab48195ded7ea1b1d510bd7ee74d73faf36bc31ecfa268359046f4eb879f924009438b481c6cd7889a002ed5ee382bc9190da6fc026e479558e4475677e9aa9e3050e2765694dfc81f56e880b96e7160c980dd98edd3dfffffffffffffffff"}},_d={exports:{}},Sd=si.EventEmitter;function Qd(e,t){Md(e,t),kd(e)}function kd(e){e._writableState&&!e._writableState.emitClose||e._readableState&&!e._readableState.emitClose||e.emit("close")}function Md(e,t){e.emit("error",t)}var xd={destroy:function(e,t){var n=this,r=this._readableState&&this._readableState.destroyed,i=this._writableState&&this._writableState.destroyed;return r||i?(t?t(e):e&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,Mr(Md,this,e)):Mr(Md,this,e)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,(function(e){!t&&e?n._writableState?n._writableState.errorEmitted?Mr(kd,n):(n._writableState.errorEmitted=!0,Mr(Qd,n,e)):Mr(Qd,n,e):t?(Mr(kd,n),t(e)):Mr(kd,n)})),this)},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)},errorOrDestroy:function(e,t){var n=e._readableState,r=e._writableState;n&&n.autoDestroy||r&&r.autoDestroy?e.destroy(t):e.emit("error",t)}},Rd={},Dd={};function Td(e,t,n){n||(n=Error);var r=function(e){var n,r;function i(n,r,i){return e.call(this,function(e,n,r){return"string"==typeof t?t:t(e,n,r)}(n,r,i))||this}return r=e,(n=i).prototype=Object.create(r.prototype),n.prototype.constructor=n,n.__proto__=r,i}(n);r.prototype.name=n.name,r.prototype.code=e,Dd[e]=r}function Nd(e,t){if(Array.isArray(e)){var n=e.length;return e=e.map((function(e){return String(e)})),n>2?"one of ".concat(t," ").concat(e.slice(0,n-1).join(", "),", or ")+e[n-1]:2===n?"one of ".concat(t," ").concat(e[0]," or ").concat(e[1]):"of ".concat(t," ").concat(e[0])}return"of ".concat(t," ").concat(String(e))}Td("ERR_INVALID_OPT_VALUE",(function(e,t){return'The value "'+t+'" is invalid for option "'+e+'"'}),TypeError),Td("ERR_INVALID_ARG_TYPE",(function(e,t,n){var r,i;if("string"==typeof t&&("not ","not "===t.substr(0,4))?(r="must not be",t=t.replace(/^not /,"")):r="must be",function(e,t,n){return(void 0===n||n>e.length)&&(n=e.length)," argument"===e.substring(n-9,n)}(e))i="The ".concat(e," ").concat(r," ").concat(Nd(t,"type"));else{var o=function(e,t,n){return"number"!=typeof n&&(n=0),!(n+1>e.length)&&-1!==e.indexOf(".",n)}(e)?"property":"argument";i='The "'.concat(e,'" ').concat(o," ").concat(r," ").concat(Nd(t,"type"))}return i+". Received type ".concat(typeof n)}),TypeError),Td("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),Td("ERR_METHOD_NOT_IMPLEMENTED",(function(e){return"The "+e+" method is not implemented"})),Td("ERR_STREAM_PREMATURE_CLOSE","Premature close"),Td("ERR_STREAM_DESTROYED",(function(e){return"Cannot call "+e+" after a stream was destroyed"})),Td("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),Td("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),Td("ERR_STREAM_WRITE_AFTER_END","write after end"),Td("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),Td("ERR_UNKNOWN_ENCODING",(function(e){return"Unknown encoding: "+e}),TypeError),Td("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),Rd.codes=Dd;var Od,Ld,Pd,Ud,Fd=Rd.codes.ERR_INVALID_OPT_VALUE,jd={getHighWaterMark:function(e,t,n,r){var i=function(e,t,n){return null!=e.highWaterMark?e.highWaterMark:t?e[n]:null}(t,r,n);if(null!=i){if(!isFinite(i)||Math.floor(i)!==i||i<0)throw new Fd(r?n:"highWaterMark",i);return Math.floor(i)}return e.objectMode?16:16384}};function qd(){if(Ld)return Od;function e(e){var t=this;this.next=null,this.entry=null,this.finish=function(){!function(e,t,n){var r=e.entry;for(e.entry=null;r;){var i=r.callback;t.pendingcb--,i(void 0),r=r.next}t.corkedRequestsFree.next=e}(t,e)}}var t;Ld=1,Od=w,w.WritableState=v;var n,r={deprecate:lo()},i=Sd,o=yr.Buffer,a=(void 0!==dr?dr:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{}).Uint8Array||function(){},s=xd,c=jd.getHighWaterMark,u=Rd.codes,l=u.ERR_INVALID_ARG_TYPE,f=u.ERR_METHOD_NOT_IMPLEMENTED,d=u.ERR_MULTIPLE_CALLBACK,A=u.ERR_STREAM_CANNOT_PIPE,h=u.ERR_STREAM_DESTROYED,p=u.ERR_STREAM_NULL_VALUES,g=u.ERR_STREAM_WRITE_AFTER_END,y=u.ERR_UNKNOWN_ENCODING,m=s.errorOrDestroy;function b(){}function v(n,r,i){t=t||Gd(),n=n||{},"boolean"!=typeof i&&(i=r instanceof t),this.objectMode=!!n.objectMode,i&&(this.objectMode=this.objectMode||!!n.writableObjectMode),this.highWaterMark=c(this,n,"writableHighWaterMark",i),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var o=!1===n.decodeStrings;this.decodeStrings=!o,this.defaultEncoding=n.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){!function(e,t){var n=e._writableState,r=n.sync,i=n.writecb;if("function"!=typeof i)throw new d;if(function(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}(n),t)!function(e,t,n,r,i){--t.pendingcb,n?(Mr(i,r),Mr(S,e,t),e._writableState.errorEmitted=!0,m(e,r)):(i(r),e._writableState.errorEmitted=!0,m(e,r),S(e,t))}(e,n,r,t,i);else{var o=C(n)||e.destroyed;o||n.corked||n.bufferProcessing||!n.bufferedRequest||B(e,n),r?Mr(I,e,n,o,i):I(e,n,o,i)}}(r,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!1!==n.emitClose,this.autoDestroy=!!n.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new e(this)}function w(e){var r=this instanceof(t=t||Gd());if(!r&&!n.call(w,this))return new w(e);this._writableState=new v(e,this,r),this.writable=!0,e&&("function"==typeof e.write&&(this._write=e.write),"function"==typeof e.writev&&(this._writev=e.writev),"function"==typeof e.destroy&&(this._destroy=e.destroy),"function"==typeof e.final&&(this._final=e.final)),i.call(this)}function E(e,t,n,r,i,o,a){t.writelen=r,t.writecb=a,t.writing=!0,t.sync=!0,t.destroyed?t.onwrite(new h("write")):n?e._writev(i,t.onwrite):e._write(i,o,t.onwrite),t.sync=!1}function I(e,t,n,r){n||function(e,t){0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}(e,t),t.pendingcb--,r(),S(e,t)}function B(t,n){n.bufferProcessing=!0;var r=n.bufferedRequest;if(t._writev&&r&&r.next){var i=n.bufferedRequestCount,o=new Array(i),a=n.corkedRequestsFree;a.entry=r;for(var s=0,c=!0;r;)o[s]=r,r.isBuf||(c=!1),r=r.next,s+=1;o.allBuffers=c,E(t,n,!0,n.length,o,"",a.finish),n.pendingcb++,n.lastBufferedRequest=null,a.next?(n.corkedRequestsFree=a.next,a.next=null):n.corkedRequestsFree=new e(n),n.bufferedRequestCount=0}else{for(;r;){var u=r.chunk,l=r.encoding,f=r.callback;if(E(t,n,!1,n.objectMode?1:u.length,u,l,f),r=r.next,n.bufferedRequestCount--,n.writing)break}null===r&&(n.lastBufferedRequest=null)}n.bufferedRequest=r,n.bufferProcessing=!1}function C(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function _(e,t){e._final((function(n){t.pendingcb--,n&&m(e,n),t.prefinished=!0,e.emit("prefinish"),S(e,t)}))}function S(e,t){var n=C(t);if(n&&(function(e,t){t.prefinished||t.finalCalled||("function"!=typeof e._final||t.destroyed?(t.prefinished=!0,e.emit("prefinish")):(t.pendingcb++,t.finalCalled=!0,Mr(_,e,t)))}(e,t),0===t.pendingcb&&(t.finished=!0,e.emit("finish"),t.autoDestroy))){var r=e._readableState;(!r||r.autoDestroy&&r.endEmitted)&&e.destroy()}return n}return $r(w,i),v.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},function(){try{Object.defineProperty(v.prototype,"buffer",{get:r.deprecate((function(){return this.getBuffer()}),"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(e){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(n=Function.prototype[Symbol.hasInstance],Object.defineProperty(w,Symbol.hasInstance,{value:function(e){return!!n.call(this,e)||this===w&&e&&e._writableState instanceof v}})):n=function(e){return e instanceof this},w.prototype.pipe=function(){m(this,new A)},w.prototype.write=function(e,t,n){var r,i=this._writableState,s=!1,c=!i.objectMode&&(r=e,o.isBuffer(r)||r instanceof a);return c&&!o.isBuffer(e)&&(e=function(e){return o.from(e)}(e)),"function"==typeof t&&(n=t,t=null),c?t="buffer":t||(t=i.defaultEncoding),"function"!=typeof n&&(n=b),i.ending?function(e,t){var n=new g;m(e,n),Mr(t,n)}(this,n):(c||function(e,t,n,r){var i;return null===n?i=new p:"string"==typeof n||t.objectMode||(i=new l("chunk",["string","Buffer"],n)),!i||(m(e,i),Mr(r,i),!1)}(this,i,e,n))&&(i.pendingcb++,s=function(e,t,n,r,i,a){if(!n){var s=function(e,t,n){return e.objectMode||!1===e.decodeStrings||"string"!=typeof t||(t=o.from(t,n)),t}(t,r,i);r!==s&&(n=!0,i="buffer",r=s)}var c=t.objectMode?1:r.length;t.length+=c;var u=t.length-1))throw new y(e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(w.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(w.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),w.prototype._write=function(e,t,n){n(new f("_write()"))},w.prototype._writev=null,w.prototype.end=function(e,t,n){var r=this._writableState;return"function"==typeof e?(n=e,e=null,t=null):"function"==typeof t&&(n=t,t=null),null!=e&&this.write(e,t),r.corked&&(r.corked=1,this.uncork()),r.ending||function(e,t,n){t.ending=!0,S(e,t),n&&(t.finished?Mr(n):e.once("finish",n)),t.ended=!0,e.writable=!1}(this,r,n),this},Object.defineProperty(w.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(w.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),w.prototype.destroy=s.destroy,w.prototype._undestroy=s.undestroy,w.prototype._destroy=function(e,t){t(e)},Od}function Gd(){if(Ud)return Pd;Ud=1;var e=Object.keys||function(e){var t=[];for(var n in e)t.push(n);return t};Pd=a;var t=nA(),n=qd();$r(a,t);for(var r=e(n.prototype),i=0;i>5==6?2:e>>4==14?3:e>>3==30?4:e>>6==2?-1:-2}function i(e){var t=this.lastTotal-this.lastNeed,n=function(e,t,n){if(128!=(192&t[0]))return e.lastNeed=0,"�";if(e.lastNeed>1&&t.length>1){if(128!=(192&t[1]))return e.lastNeed=1,"�";if(e.lastNeed>2&&t.length>2&&128!=(192&t[2]))return e.lastNeed=2,"�"}}(this,e);return void 0!==n?n:this.lastNeed<=e.length?(e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(e.copy(this.lastChar,t,0,e.length),void(this.lastNeed-=e.length))}function o(e,t){if((e.length-t)%2==0){var n=e.toString("utf16le",t);if(n){var r=n.charCodeAt(n.length-1);if(r>=55296&&r<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],n.slice(0,-1)}return n}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function a(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var n=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,n)}return t}function s(e,t){var n=(e.length-t)%3;return 0===n?e.toString("base64",t):(this.lastNeed=3-n,this.lastTotal=3,1===n?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-n))}function c(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function u(e){return e.toString(this.encoding)}function l(e){return e&&e.length?this.write(e):""}return Yd.StringDecoder=n,n.prototype.write=function(e){if(0===e.length)return"";var t,n;if(this.lastNeed){if(void 0===(t=this.fillLast(e)))return"";n=this.lastNeed,this.lastNeed=0}else n=0;return n=0?(o>0&&(e.lastNeed=o-1),o):--i=0?(o>0&&(e.lastNeed=o-2),o):--i=0?(o>0&&(2===o?o=0:e.lastNeed=o-3),o):0}(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=n;var i=e.length-(n-this.lastNeed);return e.copy(this.lastChar,0,i),e.toString("utf8",t,i)},n.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length},Yd}var zd=Rd.codes.ERR_STREAM_PREMATURE_CLOSE;function Vd(){}var Jd,Wd,Zd,$d,Xd,eA,tA=function e(t,n,r){if("function"==typeof n)return e(t,null,n);n||(n={}),r=function(e){var t=!1;return function(){if(!t){t=!0;for(var n=arguments.length,r=new Array(n),i=0;i0?this.tail.next=t:this.head=t,this.tail=t,++this.length}},{key:"unshift",value:function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length}},{key:"shift",value:function(){if(0!==this.length){var e=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(e){if(0===this.length)return"";for(var t=this.head,n=""+t.data;t=t.next;)n+=e+t.data;return n}},{key:"concat",value:function(e){if(0===this.length)return o.alloc(0);for(var t,n,r,i=o.allocUnsafe(e>>>0),a=this.head,s=0;a;)t=a.data,n=i,r=s,o.prototype.copy.call(t,n,r),s+=a.data.length,a=a.next;return i}},{key:"consume",value:function(e,t){var n;return ei.length?i.length:e;if(o===i.length?r+=i:r+=i.slice(0,e),0==(e-=o)){o===i.length?(++n,t.next?this.head=t.next:this.head=this.tail=null):(this.head=t,t.data=i.slice(o));break}++n}return this.length-=n,r}},{key:"_getBuffer",value:function(e){var t=o.allocUnsafe(e),n=this.head,r=1;for(n.data.copy(t),e-=n.data.length;n=n.next;){var i=n.data,a=e>i.length?i.length:e;if(i.copy(t,t.length-e,0,a),0==(e-=a)){a===i.length?(++r,n.next?this.head=n.next:this.head=this.tail=null):(this.head=n,n.data=i.slice(a));break}++r}return this.length-=r,t}},{key:s,value:function(e,n){return a(this,t(t({},n),{},{depth:0,customInspect:!1}))}}],i&&r(n.prototype,i),Object.defineProperty(n,"prototype",{writable:!1}),e}(),Id}(),f=xd,d=jd.getHighWaterMark,A=Rd.codes,h=A.ERR_INVALID_ARG_TYPE,p=A.ERR_STREAM_PUSH_AFTER_EOF,g=A.ERR_METHOD_NOT_IMPLEMENTED,y=A.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;$r(w,r);var m=f.errorOrDestroy,b=["error","close","destroy","pause","resume"];function v(t,n,r){e=e||Gd(),t=t||{},"boolean"!=typeof r&&(r=n instanceof e),this.objectMode=!!t.objectMode,r&&(this.objectMode=this.objectMode||!!t.readableObjectMode),this.highWaterMark=d(this,t,"readableHighWaterMark",r),this.buffer=new l,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=!1!==t.emitClose,this.autoDestroy=!!t.autoDestroy,this.destroyed=!1,this.defaultEncoding=t.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,t.encoding&&(s||(s=Kd().StringDecoder),this.decoder=new s(t.encoding),this.encoding=t.encoding)}function w(t){if(e=e||Gd(),!(this instanceof w))return new w(t);var n=this instanceof e;this._readableState=new v(t,this,n),this.readable=!0,t&&("function"==typeof t.read&&(this._read=t.read),"function"==typeof t.destroy&&(this._destroy=t.destroy)),r.call(this)}function E(e,n,r,a,s){t("readableAddChunk",n);var c,u=e._readableState;if(null===n)u.reading=!1,function(e,n){if(t("onEofChunk"),!n.ended){if(n.decoder){var r=n.decoder.end();r&&r.length&&(n.buffer.push(r),n.length+=n.objectMode?1:r.length)}n.ended=!0,n.sync?_(e):(n.needReadable=!1,n.emittedReadable||(n.emittedReadable=!0,S(e)))}}(e,u);else if(s||(c=function(e,t){var n,r;return r=t,i.isBuffer(r)||r instanceof o||"string"==typeof t||void 0===t||e.objectMode||(n=new h("chunk",["string","Buffer","Uint8Array"],t)),n}(u,n)),c)m(e,c);else if(u.objectMode||n&&n.length>0)if("string"==typeof n||u.objectMode||Object.getPrototypeOf(n)===i.prototype||(n=function(e){return i.from(e)}(n)),a)u.endEmitted?m(e,new y):I(e,u,n,!0);else if(u.ended)m(e,new p);else{if(u.destroyed)return!1;u.reading=!1,u.decoder&&!r?(n=u.decoder.write(n),u.objectMode||0!==n.length?I(e,u,n,!1):Q(e,u)):I(e,u,n,!1)}else a||(u.reading=!1,Q(e,u));return!u.ended&&(u.lengtht.highWaterMark&&(t.highWaterMark=function(e){return e>=B?e=B:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}function _(e){var n=e._readableState;t("emitReadable",n.needReadable,n.emittedReadable),n.needReadable=!1,n.emittedReadable||(t("emitReadable",n.flowing),n.emittedReadable=!0,Mr(S,e))}function S(e){var n=e._readableState;t("emitReadable_",n.destroyed,n.length,n.ended),n.destroyed||!n.length&&!n.ended||(e.emit("readable"),n.emittedReadable=!1),n.needReadable=!n.flowing&&!n.ended&&n.length<=n.highWaterMark,D(e)}function Q(e,t){t.readingMore||(t.readingMore=!0,Mr(k,e,t))}function k(e,n){for(;!n.reading&&!n.ended&&(n.length0,t.resumeScheduled&&!t.paused?t.flowing=!0:e.listenerCount("data")>0&&e.resume()}function x(e){t("readable nexttick read 0"),e.read(0)}function R(e,n){t("resume",n.reading),n.reading||e.read(0),n.resumeScheduled=!1,e.emit("resume"),D(e),n.flowing&&!n.reading&&e.read(0)}function D(e){var n=e._readableState;for(t("flow",n.flowing);n.flowing&&null!==e.read(););}function T(e,t){return 0===t.length?null:(t.objectMode?n=t.buffer.shift():!e||e>=t.length?(n=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.first():t.buffer.concat(t.length),t.buffer.clear()):n=t.buffer.consume(e,t.decoder),n);var n}function N(e){var n=e._readableState;t("endReadable",n.endEmitted),n.endEmitted||(n.ended=!0,Mr(O,n,e))}function O(e,n){if(t("endReadableNT",e.endEmitted,e.length),!e.endEmitted&&0===e.length&&(e.endEmitted=!0,n.readable=!1,n.emit("end"),e.autoDestroy)){var r=n._writableState;(!r||r.autoDestroy&&r.finished)&&n.destroy()}}function L(e,t){for(var n=0,r=e.length;n=n.highWaterMark:n.length>0)||n.ended))return t("read: emitReadable",n.length,n.ended),0===n.length&&n.ended?N(this):_(this),null;if(0===(e=C(e,n))&&n.ended)return 0===n.length&&N(this),null;var i,o=n.needReadable;return t("need readable",o),(0===n.length||n.length-e0?T(e,n):null)?(n.needReadable=n.length<=n.highWaterMark,e=0):(n.length-=e,n.awaitDrain=0),0===n.length&&(n.ended||(n.needReadable=!0),r!==e&&n.ended&&N(this)),null!==i&&this.emit("data",i),i},w.prototype._read=function(e){m(this,new g("_read()"))},w.prototype.pipe=function(e,r){var i=this,o=this._readableState;switch(o.pipesCount){case 0:o.pipes=e;break;case 1:o.pipes=[o.pipes,e];break;default:o.pipes.push(e)}o.pipesCount+=1,t("pipe count=%d opts=%j",o.pipesCount,r);var a=r&&!1===r.end||e===Gr.stdout||e===Gr.stderr?h:s;function s(){t("onend"),e.end()}o.endEmitted?Mr(a):i.once("end",a),e.on("unpipe",(function n(r,a){t("onunpipe"),r===i&&a&&!1===a.hasUnpiped&&(a.hasUnpiped=!0,t("cleanup"),e.removeListener("close",d),e.removeListener("finish",A),e.removeListener("drain",c),e.removeListener("error",f),e.removeListener("unpipe",n),i.removeListener("end",s),i.removeListener("end",h),i.removeListener("data",l),u=!0,!o.awaitDrain||e._writableState&&!e._writableState.needDrain||c())}));var c=function(e){return function(){var r=e._readableState;t("pipeOnDrain",r.awaitDrain),r.awaitDrain&&r.awaitDrain--,0===r.awaitDrain&&n(e,"data")&&(r.flowing=!0,D(e))}}(i);e.on("drain",c);var u=!1;function l(n){t("ondata");var r=e.write(n);t("dest.write",r),!1===r&&((1===o.pipesCount&&o.pipes===e||o.pipesCount>1&&-1!==L(o.pipes,e))&&!u&&(t("false write response, pause",o.awaitDrain),o.awaitDrain++),i.pause())}function f(r){t("onerror",r),h(),e.removeListener("error",f),0===n(e,"error")&&m(e,r)}function d(){e.removeListener("finish",A),h()}function A(){t("onfinish"),e.removeListener("close",d),h()}function h(){t("unpipe"),i.unpipe(e)}return i.on("data",l),function(e,t,n){if("function"==typeof e.prependListener)return e.prependListener(t,n);e._events&&e._events[t]?Array.isArray(e._events[t])?e._events[t].unshift(n):e._events[t]=[n,e._events[t]]:e.on(t,n)}(e,"error",f),e.once("close",d),e.once("finish",A),e.emit("pipe",i),o.flowing||(t("pipe resume"),i.resume()),e},w.prototype.unpipe=function(e){var t=this._readableState,n={hasUnpiped:!1};if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes||(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,n)),this;if(!e){var r=t.pipes,i=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var o=0;o0,!1!==o.flowing&&this.resume()):"readable"===e&&(o.endEmitted||o.readableListening||(o.readableListening=o.needReadable=!0,o.flowing=!1,o.emittedReadable=!1,t("on readable",o.length,o.reading),o.length?_(this):o.reading||Mr(x,this))),i},w.prototype.addListener=w.prototype.on,w.prototype.removeListener=function(e,t){var n=r.prototype.removeListener.call(this,e,t);return"readable"===e&&Mr(M,this),n},w.prototype.removeAllListeners=function(e){var t=r.prototype.removeAllListeners.apply(this,arguments);return"readable"!==e&&void 0!==e||Mr(M,this),t},w.prototype.resume=function(){var e=this._readableState;return e.flowing||(t("resume"),e.flowing=!e.readableListening,function(e,t){t.resumeScheduled||(t.resumeScheduled=!0,Mr(R,e,t))}(this,e)),e.paused=!1,this},w.prototype.pause=function(){return t("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(t("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},w.prototype.wrap=function(e){var n=this,r=this._readableState,i=!1;for(var o in e.on("end",(function(){if(t("wrapped end"),r.decoder&&!r.ended){var e=r.decoder.end();e&&e.length&&n.push(e)}n.push(null)})),e.on("data",(function(o){t("wrapped data"),r.decoder&&(o=r.decoder.write(o)),r.objectMode&&null==o||(r.objectMode||o&&o.length)&&(n.push(o)||(i=!0,e.pause()))})),e)void 0===this[o]&&"function"==typeof e[o]&&(this[o]=function(t){return function(){return e[t].apply(e,arguments)}}(o));for(var a=0;a0,(function(e){r||(r=e),e&&o.forEach(EA),a||(o.forEach(EA),i(r))}))}));return t.reduce(IA)};!function(e,t){(t=_d.exports=nA()).Stream=t,t.Readable=t,t.Writable=qd(),t.Duplex=Gd(),t.Transform=rA,t.PassThrough=pA,t.finished=tA,t.pipeline=BA}(0,_d.exports);var CA=_d.exports,_A={exports:{}},SA={exports:{}};!function(e,t){function n(e,t){if(!e)throw new Error(t||"Assertion failed")}function r(e,t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}function i(e,t,n){if(i.isBN(e))return e;this.negative=0,this.words=null,this.length=0,this.red=null,null!==e&&("le"!==t&&"be"!==t||(n=t,t=10),this._init(e||0,t||10,n||"be"))}var o;"object"==typeof e?e.exports=i:t.BN=i,i.BN=i,i.wordSize=26;try{o="undefined"!=typeof window&&void 0!==window.Buffer?window.Buffer:yr.Buffer}catch(e){}function a(e,t){var r=e.charCodeAt(t);return r>=48&&r<=57?r-48:r>=65&&r<=70?r-55:r>=97&&r<=102?r-87:void n(!1,"Invalid character in "+e)}function s(e,t,n){var r=a(e,n);return n-1>=t&&(r|=a(e,n-1)<<4),r}function c(e,t,r,i){for(var o=0,a=0,s=Math.min(e.length,r),c=t;c=49?u-49+10:u>=17?u-17+10:u,n(u>=0&&a0?e:t},i.min=function(e,t){return e.cmp(t)<0?e:t},i.prototype._init=function(e,t,r){if("number"==typeof e)return this._initNumber(e,t,r);if("object"==typeof e)return this._initArray(e,t,r);"hex"===t&&(t=16),n(t===(0|t)&&t>=2&&t<=36);var i=0;"-"===(e=e.toString().replace(/\s+/g,""))[0]&&(i++,this.negative=1),i=0;i-=3)a=e[i]|e[i-1]<<8|e[i-2]<<16,this.words[o]|=a<>>26-s&67108863,(s+=24)>=26&&(s-=26,o++);else if("le"===r)for(i=0,o=0;i>>26-s&67108863,(s+=24)>=26&&(s-=26,o++);return this._strip()},i.prototype._parseHex=function(e,t,n){this.length=Math.ceil((e.length-t)/6),this.words=new Array(this.length);for(var r=0;r=t;r-=2)i=s(e,t,r)<=18?(o-=18,a+=1,this.words[a]|=i>>>26):o+=8;else for(r=(e.length-t)%2==0?t+1:t;r=18?(o-=18,a+=1,this.words[a]|=i>>>26):o+=8;this._strip()},i.prototype._parseBase=function(e,t,n){this.words=[0],this.length=1;for(var r=0,i=1;i<=67108863;i*=t)r++;r--,i=i/t|0;for(var o=e.length-n,a=o%r,s=Math.min(o,o-a)+n,u=0,l=n;l1&&0===this.words[this.length-1];)this.length--;return this._normSign()},i.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},"undefined"!=typeof Symbol&&"function"==typeof Symbol.for)try{i.prototype[Symbol.for("nodejs.util.inspect.custom")]=l}catch(e){i.prototype.inspect=l}else i.prototype.inspect=l;function l(){return(this.red?""}var f=["","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"],d=[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],A=[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];function h(e,t,n){n.negative=t.negative^e.negative;var r=e.length+t.length|0;n.length=r,r=r-1|0;var i=0|e.words[0],o=0|t.words[0],a=i*o,s=67108863&a,c=a/67108864|0;n.words[0]=s;for(var u=1;u>>26,f=67108863&c,d=Math.min(u,t.length-1),A=Math.max(0,u-e.length+1);A<=d;A++){var h=u-A|0;l+=(a=(i=0|e.words[h])*(o=0|t.words[A])+f)/67108864|0,f=67108863&a}n.words[u]=0|f,c=0|l}return 0!==c?n.words[u]=0|c:n.length--,n._strip()}i.prototype.toString=function(e,t){var r;if(t=0|t||1,16===(e=e||10)||"hex"===e){r="";for(var i=0,o=0,a=0;a>>24-i&16777215,(i+=2)>=26&&(i-=26,a--),r=0!==o||a!==this.length-1?f[6-c.length]+c+r:c+r}for(0!==o&&(r=o.toString(16)+r);r.length%t!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}if(e===(0|e)&&e>=2&&e<=36){var u=d[e],l=A[e];r="";var h=this.clone();for(h.negative=0;!h.isZero();){var p=h.modrn(l).toString(e);r=(h=h.idivn(l)).isZero()?p+r:f[u-p.length]+p+r}for(this.isZero()&&(r="0"+r);r.length%t!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}n(!1,"Base should be between 2 and 36")},i.prototype.toNumber=function(){var e=this.words[0];return 2===this.length?e+=67108864*this.words[1]:3===this.length&&1===this.words[2]?e+=4503599627370496+67108864*this.words[1]:this.length>2&&n(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-e:e},i.prototype.toJSON=function(){return this.toString(16,2)},o&&(i.prototype.toBuffer=function(e,t){return this.toArrayLike(o,e,t)}),i.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)},i.prototype.toArrayLike=function(e,t,r){this._strip();var i=this.byteLength(),o=r||Math.max(1,i);n(i<=o,"byte array longer than desired length"),n(o>0,"Requested array length <= 0");var a=function(e,t){return e.allocUnsafe?e.allocUnsafe(t):new e(t)}(e,o);return this["_toArrayLike"+("le"===t?"LE":"BE")](a,i),a},i.prototype._toArrayLikeLE=function(e,t){for(var n=0,r=0,i=0,o=0;i>8&255),n>16&255),6===o?(n>24&255),r=0,o=0):(r=a>>>24,o+=2)}if(n=0&&(e[n--]=a>>8&255),n>=0&&(e[n--]=a>>16&255),6===o?(n>=0&&(e[n--]=a>>24&255),r=0,o=0):(r=a>>>24,o+=2)}if(n>=0)for(e[n--]=r;n>=0;)e[n--]=0},Math.clz32?i.prototype._countBits=function(e){return 32-Math.clz32(e)}:i.prototype._countBits=function(e){var t=e,n=0;return t>=4096&&(n+=13,t>>>=13),t>=64&&(n+=7,t>>>=7),t>=8&&(n+=4,t>>>=4),t>=2&&(n+=2,t>>>=2),n+t},i.prototype._zeroBits=function(e){if(0===e)return 26;var t=e,n=0;return!(8191&t)&&(n+=13,t>>>=13),!(127&t)&&(n+=7,t>>>=7),!(15&t)&&(n+=4,t>>>=4),!(3&t)&&(n+=2,t>>>=2),!(1&t)&&n++,n},i.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._countBits(e);return 26*(this.length-1)+t},i.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,t=0;te.length?this.clone().ior(e):e.clone().ior(this)},i.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},i.prototype.iuand=function(e){var t;t=this.length>e.length?e:this;for(var n=0;ne.length?this.clone().iand(e):e.clone().iand(this)},i.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},i.prototype.iuxor=function(e){var t,n;this.length>e.length?(t=this,n=e):(t=e,n=this);for(var r=0;re.length?this.clone().ixor(e):e.clone().ixor(this)},i.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},i.prototype.inotn=function(e){n("number"==typeof e&&e>=0);var t=0|Math.ceil(e/26),r=e%26;this._expand(t),r>0&&t--;for(var i=0;i0&&(this.words[i]=~this.words[i]&67108863>>26-r),this._strip()},i.prototype.notn=function(e){return this.clone().inotn(e)},i.prototype.setn=function(e,t){n("number"==typeof e&&e>=0);var r=e/26|0,i=e%26;return this._expand(r+1),this.words[r]=t?this.words[r]|1<e.length?(n=this,r=e):(n=e,r=this);for(var i=0,o=0;o>>26;for(;0!==i&&o>>26;if(this.length=n.length,0!==i)this.words[this.length]=i,this.length++;else if(n!==this)for(;oe.length?this.clone().iadd(e):e.clone().iadd(this)},i.prototype.isub=function(e){if(0!==e.negative){e.negative=0;var t=this.iadd(e);return e.negative=1,t._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(e),this.negative=1,this._normSign();var n,r,i=this.cmp(e);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;i>0?(n=this,r=e):(n=e,r=this);for(var o=0,a=0;a>26,this.words[a]=67108863&t;for(;0!==o&&a>26,this.words[a]=67108863&t;if(0===o&&a>>13,A=0|a[1],h=8191&A,p=A>>>13,g=0|a[2],y=8191&g,m=g>>>13,b=0|a[3],v=8191&b,w=b>>>13,E=0|a[4],I=8191&E,B=E>>>13,C=0|a[5],_=8191&C,S=C>>>13,Q=0|a[6],k=8191&Q,M=Q>>>13,x=0|a[7],R=8191&x,D=x>>>13,T=0|a[8],N=8191&T,O=T>>>13,L=0|a[9],P=8191&L,U=L>>>13,F=0|s[0],j=8191&F,q=F>>>13,G=0|s[1],H=8191&G,Y=G>>>13,K=0|s[2],z=8191&K,V=K>>>13,J=0|s[3],W=8191&J,Z=J>>>13,$=0|s[4],X=8191&$,ee=$>>>13,te=0|s[5],ne=8191&te,re=te>>>13,ie=0|s[6],oe=8191&ie,ae=ie>>>13,se=0|s[7],ce=8191&se,ue=se>>>13,le=0|s[8],fe=8191&le,de=le>>>13,Ae=0|s[9],he=8191&Ae,pe=Ae>>>13;n.negative=e.negative^t.negative,n.length=19;var ge=(u+(r=Math.imul(f,j))|0)+((8191&(i=(i=Math.imul(f,q))+Math.imul(d,j)|0))<<13)|0;u=((o=Math.imul(d,q))+(i>>>13)|0)+(ge>>>26)|0,ge&=67108863,r=Math.imul(h,j),i=(i=Math.imul(h,q))+Math.imul(p,j)|0,o=Math.imul(p,q);var ye=(u+(r=r+Math.imul(f,H)|0)|0)+((8191&(i=(i=i+Math.imul(f,Y)|0)+Math.imul(d,H)|0))<<13)|0;u=((o=o+Math.imul(d,Y)|0)+(i>>>13)|0)+(ye>>>26)|0,ye&=67108863,r=Math.imul(y,j),i=(i=Math.imul(y,q))+Math.imul(m,j)|0,o=Math.imul(m,q),r=r+Math.imul(h,H)|0,i=(i=i+Math.imul(h,Y)|0)+Math.imul(p,H)|0,o=o+Math.imul(p,Y)|0;var me=(u+(r=r+Math.imul(f,z)|0)|0)+((8191&(i=(i=i+Math.imul(f,V)|0)+Math.imul(d,z)|0))<<13)|0;u=((o=o+Math.imul(d,V)|0)+(i>>>13)|0)+(me>>>26)|0,me&=67108863,r=Math.imul(v,j),i=(i=Math.imul(v,q))+Math.imul(w,j)|0,o=Math.imul(w,q),r=r+Math.imul(y,H)|0,i=(i=i+Math.imul(y,Y)|0)+Math.imul(m,H)|0,o=o+Math.imul(m,Y)|0,r=r+Math.imul(h,z)|0,i=(i=i+Math.imul(h,V)|0)+Math.imul(p,z)|0,o=o+Math.imul(p,V)|0;var be=(u+(r=r+Math.imul(f,W)|0)|0)+((8191&(i=(i=i+Math.imul(f,Z)|0)+Math.imul(d,W)|0))<<13)|0;u=((o=o+Math.imul(d,Z)|0)+(i>>>13)|0)+(be>>>26)|0,be&=67108863,r=Math.imul(I,j),i=(i=Math.imul(I,q))+Math.imul(B,j)|0,o=Math.imul(B,q),r=r+Math.imul(v,H)|0,i=(i=i+Math.imul(v,Y)|0)+Math.imul(w,H)|0,o=o+Math.imul(w,Y)|0,r=r+Math.imul(y,z)|0,i=(i=i+Math.imul(y,V)|0)+Math.imul(m,z)|0,o=o+Math.imul(m,V)|0,r=r+Math.imul(h,W)|0,i=(i=i+Math.imul(h,Z)|0)+Math.imul(p,W)|0,o=o+Math.imul(p,Z)|0;var ve=(u+(r=r+Math.imul(f,X)|0)|0)+((8191&(i=(i=i+Math.imul(f,ee)|0)+Math.imul(d,X)|0))<<13)|0;u=((o=o+Math.imul(d,ee)|0)+(i>>>13)|0)+(ve>>>26)|0,ve&=67108863,r=Math.imul(_,j),i=(i=Math.imul(_,q))+Math.imul(S,j)|0,o=Math.imul(S,q),r=r+Math.imul(I,H)|0,i=(i=i+Math.imul(I,Y)|0)+Math.imul(B,H)|0,o=o+Math.imul(B,Y)|0,r=r+Math.imul(v,z)|0,i=(i=i+Math.imul(v,V)|0)+Math.imul(w,z)|0,o=o+Math.imul(w,V)|0,r=r+Math.imul(y,W)|0,i=(i=i+Math.imul(y,Z)|0)+Math.imul(m,W)|0,o=o+Math.imul(m,Z)|0,r=r+Math.imul(h,X)|0,i=(i=i+Math.imul(h,ee)|0)+Math.imul(p,X)|0,o=o+Math.imul(p,ee)|0;var we=(u+(r=r+Math.imul(f,ne)|0)|0)+((8191&(i=(i=i+Math.imul(f,re)|0)+Math.imul(d,ne)|0))<<13)|0;u=((o=o+Math.imul(d,re)|0)+(i>>>13)|0)+(we>>>26)|0,we&=67108863,r=Math.imul(k,j),i=(i=Math.imul(k,q))+Math.imul(M,j)|0,o=Math.imul(M,q),r=r+Math.imul(_,H)|0,i=(i=i+Math.imul(_,Y)|0)+Math.imul(S,H)|0,o=o+Math.imul(S,Y)|0,r=r+Math.imul(I,z)|0,i=(i=i+Math.imul(I,V)|0)+Math.imul(B,z)|0,o=o+Math.imul(B,V)|0,r=r+Math.imul(v,W)|0,i=(i=i+Math.imul(v,Z)|0)+Math.imul(w,W)|0,o=o+Math.imul(w,Z)|0,r=r+Math.imul(y,X)|0,i=(i=i+Math.imul(y,ee)|0)+Math.imul(m,X)|0,o=o+Math.imul(m,ee)|0,r=r+Math.imul(h,ne)|0,i=(i=i+Math.imul(h,re)|0)+Math.imul(p,ne)|0,o=o+Math.imul(p,re)|0;var Ee=(u+(r=r+Math.imul(f,oe)|0)|0)+((8191&(i=(i=i+Math.imul(f,ae)|0)+Math.imul(d,oe)|0))<<13)|0;u=((o=o+Math.imul(d,ae)|0)+(i>>>13)|0)+(Ee>>>26)|0,Ee&=67108863,r=Math.imul(R,j),i=(i=Math.imul(R,q))+Math.imul(D,j)|0,o=Math.imul(D,q),r=r+Math.imul(k,H)|0,i=(i=i+Math.imul(k,Y)|0)+Math.imul(M,H)|0,o=o+Math.imul(M,Y)|0,r=r+Math.imul(_,z)|0,i=(i=i+Math.imul(_,V)|0)+Math.imul(S,z)|0,o=o+Math.imul(S,V)|0,r=r+Math.imul(I,W)|0,i=(i=i+Math.imul(I,Z)|0)+Math.imul(B,W)|0,o=o+Math.imul(B,Z)|0,r=r+Math.imul(v,X)|0,i=(i=i+Math.imul(v,ee)|0)+Math.imul(w,X)|0,o=o+Math.imul(w,ee)|0,r=r+Math.imul(y,ne)|0,i=(i=i+Math.imul(y,re)|0)+Math.imul(m,ne)|0,o=o+Math.imul(m,re)|0,r=r+Math.imul(h,oe)|0,i=(i=i+Math.imul(h,ae)|0)+Math.imul(p,oe)|0,o=o+Math.imul(p,ae)|0;var Ie=(u+(r=r+Math.imul(f,ce)|0)|0)+((8191&(i=(i=i+Math.imul(f,ue)|0)+Math.imul(d,ce)|0))<<13)|0;u=((o=o+Math.imul(d,ue)|0)+(i>>>13)|0)+(Ie>>>26)|0,Ie&=67108863,r=Math.imul(N,j),i=(i=Math.imul(N,q))+Math.imul(O,j)|0,o=Math.imul(O,q),r=r+Math.imul(R,H)|0,i=(i=i+Math.imul(R,Y)|0)+Math.imul(D,H)|0,o=o+Math.imul(D,Y)|0,r=r+Math.imul(k,z)|0,i=(i=i+Math.imul(k,V)|0)+Math.imul(M,z)|0,o=o+Math.imul(M,V)|0,r=r+Math.imul(_,W)|0,i=(i=i+Math.imul(_,Z)|0)+Math.imul(S,W)|0,o=o+Math.imul(S,Z)|0,r=r+Math.imul(I,X)|0,i=(i=i+Math.imul(I,ee)|0)+Math.imul(B,X)|0,o=o+Math.imul(B,ee)|0,r=r+Math.imul(v,ne)|0,i=(i=i+Math.imul(v,re)|0)+Math.imul(w,ne)|0,o=o+Math.imul(w,re)|0,r=r+Math.imul(y,oe)|0,i=(i=i+Math.imul(y,ae)|0)+Math.imul(m,oe)|0,o=o+Math.imul(m,ae)|0,r=r+Math.imul(h,ce)|0,i=(i=i+Math.imul(h,ue)|0)+Math.imul(p,ce)|0,o=o+Math.imul(p,ue)|0;var Be=(u+(r=r+Math.imul(f,fe)|0)|0)+((8191&(i=(i=i+Math.imul(f,de)|0)+Math.imul(d,fe)|0))<<13)|0;u=((o=o+Math.imul(d,de)|0)+(i>>>13)|0)+(Be>>>26)|0,Be&=67108863,r=Math.imul(P,j),i=(i=Math.imul(P,q))+Math.imul(U,j)|0,o=Math.imul(U,q),r=r+Math.imul(N,H)|0,i=(i=i+Math.imul(N,Y)|0)+Math.imul(O,H)|0,o=o+Math.imul(O,Y)|0,r=r+Math.imul(R,z)|0,i=(i=i+Math.imul(R,V)|0)+Math.imul(D,z)|0,o=o+Math.imul(D,V)|0,r=r+Math.imul(k,W)|0,i=(i=i+Math.imul(k,Z)|0)+Math.imul(M,W)|0,o=o+Math.imul(M,Z)|0,r=r+Math.imul(_,X)|0,i=(i=i+Math.imul(_,ee)|0)+Math.imul(S,X)|0,o=o+Math.imul(S,ee)|0,r=r+Math.imul(I,ne)|0,i=(i=i+Math.imul(I,re)|0)+Math.imul(B,ne)|0,o=o+Math.imul(B,re)|0,r=r+Math.imul(v,oe)|0,i=(i=i+Math.imul(v,ae)|0)+Math.imul(w,oe)|0,o=o+Math.imul(w,ae)|0,r=r+Math.imul(y,ce)|0,i=(i=i+Math.imul(y,ue)|0)+Math.imul(m,ce)|0,o=o+Math.imul(m,ue)|0,r=r+Math.imul(h,fe)|0,i=(i=i+Math.imul(h,de)|0)+Math.imul(p,fe)|0,o=o+Math.imul(p,de)|0;var Ce=(u+(r=r+Math.imul(f,he)|0)|0)+((8191&(i=(i=i+Math.imul(f,pe)|0)+Math.imul(d,he)|0))<<13)|0;u=((o=o+Math.imul(d,pe)|0)+(i>>>13)|0)+(Ce>>>26)|0,Ce&=67108863,r=Math.imul(P,H),i=(i=Math.imul(P,Y))+Math.imul(U,H)|0,o=Math.imul(U,Y),r=r+Math.imul(N,z)|0,i=(i=i+Math.imul(N,V)|0)+Math.imul(O,z)|0,o=o+Math.imul(O,V)|0,r=r+Math.imul(R,W)|0,i=(i=i+Math.imul(R,Z)|0)+Math.imul(D,W)|0,o=o+Math.imul(D,Z)|0,r=r+Math.imul(k,X)|0,i=(i=i+Math.imul(k,ee)|0)+Math.imul(M,X)|0,o=o+Math.imul(M,ee)|0,r=r+Math.imul(_,ne)|0,i=(i=i+Math.imul(_,re)|0)+Math.imul(S,ne)|0,o=o+Math.imul(S,re)|0,r=r+Math.imul(I,oe)|0,i=(i=i+Math.imul(I,ae)|0)+Math.imul(B,oe)|0,o=o+Math.imul(B,ae)|0,r=r+Math.imul(v,ce)|0,i=(i=i+Math.imul(v,ue)|0)+Math.imul(w,ce)|0,o=o+Math.imul(w,ue)|0,r=r+Math.imul(y,fe)|0,i=(i=i+Math.imul(y,de)|0)+Math.imul(m,fe)|0,o=o+Math.imul(m,de)|0;var _e=(u+(r=r+Math.imul(h,he)|0)|0)+((8191&(i=(i=i+Math.imul(h,pe)|0)+Math.imul(p,he)|0))<<13)|0;u=((o=o+Math.imul(p,pe)|0)+(i>>>13)|0)+(_e>>>26)|0,_e&=67108863,r=Math.imul(P,z),i=(i=Math.imul(P,V))+Math.imul(U,z)|0,o=Math.imul(U,V),r=r+Math.imul(N,W)|0,i=(i=i+Math.imul(N,Z)|0)+Math.imul(O,W)|0,o=o+Math.imul(O,Z)|0,r=r+Math.imul(R,X)|0,i=(i=i+Math.imul(R,ee)|0)+Math.imul(D,X)|0,o=o+Math.imul(D,ee)|0,r=r+Math.imul(k,ne)|0,i=(i=i+Math.imul(k,re)|0)+Math.imul(M,ne)|0,o=o+Math.imul(M,re)|0,r=r+Math.imul(_,oe)|0,i=(i=i+Math.imul(_,ae)|0)+Math.imul(S,oe)|0,o=o+Math.imul(S,ae)|0,r=r+Math.imul(I,ce)|0,i=(i=i+Math.imul(I,ue)|0)+Math.imul(B,ce)|0,o=o+Math.imul(B,ue)|0,r=r+Math.imul(v,fe)|0,i=(i=i+Math.imul(v,de)|0)+Math.imul(w,fe)|0,o=o+Math.imul(w,de)|0;var Se=(u+(r=r+Math.imul(y,he)|0)|0)+((8191&(i=(i=i+Math.imul(y,pe)|0)+Math.imul(m,he)|0))<<13)|0;u=((o=o+Math.imul(m,pe)|0)+(i>>>13)|0)+(Se>>>26)|0,Se&=67108863,r=Math.imul(P,W),i=(i=Math.imul(P,Z))+Math.imul(U,W)|0,o=Math.imul(U,Z),r=r+Math.imul(N,X)|0,i=(i=i+Math.imul(N,ee)|0)+Math.imul(O,X)|0,o=o+Math.imul(O,ee)|0,r=r+Math.imul(R,ne)|0,i=(i=i+Math.imul(R,re)|0)+Math.imul(D,ne)|0,o=o+Math.imul(D,re)|0,r=r+Math.imul(k,oe)|0,i=(i=i+Math.imul(k,ae)|0)+Math.imul(M,oe)|0,o=o+Math.imul(M,ae)|0,r=r+Math.imul(_,ce)|0,i=(i=i+Math.imul(_,ue)|0)+Math.imul(S,ce)|0,o=o+Math.imul(S,ue)|0,r=r+Math.imul(I,fe)|0,i=(i=i+Math.imul(I,de)|0)+Math.imul(B,fe)|0,o=o+Math.imul(B,de)|0;var Qe=(u+(r=r+Math.imul(v,he)|0)|0)+((8191&(i=(i=i+Math.imul(v,pe)|0)+Math.imul(w,he)|0))<<13)|0;u=((o=o+Math.imul(w,pe)|0)+(i>>>13)|0)+(Qe>>>26)|0,Qe&=67108863,r=Math.imul(P,X),i=(i=Math.imul(P,ee))+Math.imul(U,X)|0,o=Math.imul(U,ee),r=r+Math.imul(N,ne)|0,i=(i=i+Math.imul(N,re)|0)+Math.imul(O,ne)|0,o=o+Math.imul(O,re)|0,r=r+Math.imul(R,oe)|0,i=(i=i+Math.imul(R,ae)|0)+Math.imul(D,oe)|0,o=o+Math.imul(D,ae)|0,r=r+Math.imul(k,ce)|0,i=(i=i+Math.imul(k,ue)|0)+Math.imul(M,ce)|0,o=o+Math.imul(M,ue)|0,r=r+Math.imul(_,fe)|0,i=(i=i+Math.imul(_,de)|0)+Math.imul(S,fe)|0,o=o+Math.imul(S,de)|0;var ke=(u+(r=r+Math.imul(I,he)|0)|0)+((8191&(i=(i=i+Math.imul(I,pe)|0)+Math.imul(B,he)|0))<<13)|0;u=((o=o+Math.imul(B,pe)|0)+(i>>>13)|0)+(ke>>>26)|0,ke&=67108863,r=Math.imul(P,ne),i=(i=Math.imul(P,re))+Math.imul(U,ne)|0,o=Math.imul(U,re),r=r+Math.imul(N,oe)|0,i=(i=i+Math.imul(N,ae)|0)+Math.imul(O,oe)|0,o=o+Math.imul(O,ae)|0,r=r+Math.imul(R,ce)|0,i=(i=i+Math.imul(R,ue)|0)+Math.imul(D,ce)|0,o=o+Math.imul(D,ue)|0,r=r+Math.imul(k,fe)|0,i=(i=i+Math.imul(k,de)|0)+Math.imul(M,fe)|0,o=o+Math.imul(M,de)|0;var Me=(u+(r=r+Math.imul(_,he)|0)|0)+((8191&(i=(i=i+Math.imul(_,pe)|0)+Math.imul(S,he)|0))<<13)|0;u=((o=o+Math.imul(S,pe)|0)+(i>>>13)|0)+(Me>>>26)|0,Me&=67108863,r=Math.imul(P,oe),i=(i=Math.imul(P,ae))+Math.imul(U,oe)|0,o=Math.imul(U,ae),r=r+Math.imul(N,ce)|0,i=(i=i+Math.imul(N,ue)|0)+Math.imul(O,ce)|0,o=o+Math.imul(O,ue)|0,r=r+Math.imul(R,fe)|0,i=(i=i+Math.imul(R,de)|0)+Math.imul(D,fe)|0,o=o+Math.imul(D,de)|0;var xe=(u+(r=r+Math.imul(k,he)|0)|0)+((8191&(i=(i=i+Math.imul(k,pe)|0)+Math.imul(M,he)|0))<<13)|0;u=((o=o+Math.imul(M,pe)|0)+(i>>>13)|0)+(xe>>>26)|0,xe&=67108863,r=Math.imul(P,ce),i=(i=Math.imul(P,ue))+Math.imul(U,ce)|0,o=Math.imul(U,ue),r=r+Math.imul(N,fe)|0,i=(i=i+Math.imul(N,de)|0)+Math.imul(O,fe)|0,o=o+Math.imul(O,de)|0;var Re=(u+(r=r+Math.imul(R,he)|0)|0)+((8191&(i=(i=i+Math.imul(R,pe)|0)+Math.imul(D,he)|0))<<13)|0;u=((o=o+Math.imul(D,pe)|0)+(i>>>13)|0)+(Re>>>26)|0,Re&=67108863,r=Math.imul(P,fe),i=(i=Math.imul(P,de))+Math.imul(U,fe)|0,o=Math.imul(U,de);var De=(u+(r=r+Math.imul(N,he)|0)|0)+((8191&(i=(i=i+Math.imul(N,pe)|0)+Math.imul(O,he)|0))<<13)|0;u=((o=o+Math.imul(O,pe)|0)+(i>>>13)|0)+(De>>>26)|0,De&=67108863;var Te=(u+(r=Math.imul(P,he))|0)+((8191&(i=(i=Math.imul(P,pe))+Math.imul(U,he)|0))<<13)|0;return u=((o=Math.imul(U,pe))+(i>>>13)|0)+(Te>>>26)|0,Te&=67108863,c[0]=ge,c[1]=ye,c[2]=me,c[3]=be,c[4]=ve,c[5]=we,c[6]=Ee,c[7]=Ie,c[8]=Be,c[9]=Ce,c[10]=_e,c[11]=Se,c[12]=Qe,c[13]=ke,c[14]=Me,c[15]=xe,c[16]=Re,c[17]=De,c[18]=Te,0!==u&&(c[19]=u,n.length++),n};function g(e,t,n){n.negative=t.negative^e.negative,n.length=e.length+t.length;for(var r=0,i=0,o=0;o>>26)|0)>>>26,a&=67108863}n.words[o]=s,r=a,a=i}return 0!==r?n.words[o]=r:n.length--,n._strip()}function y(e,t,n){return g(e,t,n)}Math.imul||(p=h),i.prototype.mulTo=function(e,t){var n=this.length+e.length;return 10===this.length&&10===e.length?p(this,e,t):n<63?h(this,e,t):n<1024?g(this,e,t):y(this,e,t)},i.prototype.mul=function(e){var t=new i(null);return t.words=new Array(this.length+e.length),this.mulTo(e,t)},i.prototype.mulf=function(e){var t=new i(null);return t.words=new Array(this.length+e.length),y(this,e,t)},i.prototype.imul=function(e){return this.clone().mulTo(e,this)},i.prototype.imuln=function(e){var t=e<0;t&&(e=-e),n("number"==typeof e),n(e<67108864);for(var r=0,i=0;i>=26,r+=o/67108864|0,r+=a>>>26,this.words[i]=67108863&a}return 0!==r&&(this.words[i]=r,this.length++),t?this.ineg():this},i.prototype.muln=function(e){return this.clone().imuln(e)},i.prototype.sqr=function(){return this.mul(this)},i.prototype.isqr=function(){return this.imul(this.clone())},i.prototype.pow=function(e){var t=function(e){for(var t=new Array(e.bitLength()),n=0;n>>i&1}return t}(e);if(0===t.length)return new i(1);for(var n=this,r=0;r=0);var t,r=e%26,i=(e-r)/26,o=67108863>>>26-r<<26-r;if(0!==r){var a=0;for(t=0;t>>26-r}a&&(this.words[t]=a,this.length++)}if(0!==i){for(t=this.length-1;t>=0;t--)this.words[t+i]=this.words[t];for(t=0;t=0),i=t?(t-t%26)/26:0;var o=e%26,a=Math.min((e-o)/26,this.length),s=67108863^67108863>>>o<a)for(this.length-=a,u=0;u=0&&(0!==l||u>=i);u--){var f=0|this.words[u];this.words[u]=l<<26-o|f>>>o,l=f&s}return c&&0!==l&&(c.words[c.length++]=l),0===this.length&&(this.words[0]=0,this.length=1),this._strip()},i.prototype.ishrn=function(e,t,r){return n(0===this.negative),this.iushrn(e,t,r)},i.prototype.shln=function(e){return this.clone().ishln(e)},i.prototype.ushln=function(e){return this.clone().iushln(e)},i.prototype.shrn=function(e){return this.clone().ishrn(e)},i.prototype.ushrn=function(e){return this.clone().iushrn(e)},i.prototype.testn=function(e){n("number"==typeof e&&e>=0);var t=e%26,r=(e-t)/26,i=1<=0);var t=e%26,r=(e-t)/26;if(n(0===this.negative,"imaskn works only with positive numbers"),this.length<=r)return this;if(0!==t&&r++,this.length=Math.min(r,this.length),0!==t){var i=67108863^67108863>>>t<=67108864;t++)this.words[t]-=67108864,t===this.length-1?this.words[t+1]=1:this.words[t+1]++;return this.length=Math.max(this.length,t+1),this},i.prototype.isubn=function(e){if(n("number"==typeof e),n(e<67108864),e<0)return this.iaddn(-e);if(0!==this.negative)return this.negative=0,this.iaddn(e),this.negative=1,this;if(this.words[0]-=e,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var t=0;t>26)-(c/67108864|0),this.words[i+r]=67108863&o}for(;i>26,this.words[i+r]=67108863&o;if(0===s)return this._strip();for(n(-1===s),s=0,i=0;i>26,this.words[i]=67108863&o;return this.negative=1,this._strip()},i.prototype._wordDiv=function(e,t){var n=(this.length,e.length),r=this.clone(),o=e,a=0|o.words[o.length-1];0!=(n=26-this._countBits(a))&&(o=o.ushln(n),r.iushln(n),a=0|o.words[o.length-1]);var s,c=r.length-o.length;if("mod"!==t){(s=new i(null)).length=c+1,s.words=new Array(s.length);for(var u=0;u=0;f--){var d=67108864*(0|r.words[o.length+f])+(0|r.words[o.length+f-1]);for(d=Math.min(d/a|0,67108863),r._ishlnsubmul(o,d,f);0!==r.negative;)d--,r.negative=0,r._ishlnsubmul(o,1,f),r.isZero()||(r.negative^=1);s&&(s.words[f]=d)}return s&&s._strip(),r._strip(),"div"!==t&&0!==n&&r.iushrn(n),{div:s||null,mod:r}},i.prototype.divmod=function(e,t,r){return n(!e.isZero()),this.isZero()?{div:new i(0),mod:new i(0)}:0!==this.negative&&0===e.negative?(s=this.neg().divmod(e,t),"mod"!==t&&(o=s.div.neg()),"div"!==t&&(a=s.mod.neg(),r&&0!==a.negative&&a.iadd(e)),{div:o,mod:a}):0===this.negative&&0!==e.negative?(s=this.divmod(e.neg(),t),"mod"!==t&&(o=s.div.neg()),{div:o,mod:s.mod}):this.negative&e.negative?(s=this.neg().divmod(e.neg(),t),"div"!==t&&(a=s.mod.neg(),r&&0!==a.negative&&a.isub(e)),{div:s.div,mod:a}):e.length>this.length||this.cmp(e)<0?{div:new i(0),mod:this}:1===e.length?"div"===t?{div:this.divn(e.words[0]),mod:null}:"mod"===t?{div:null,mod:new i(this.modrn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new i(this.modrn(e.words[0]))}:this._wordDiv(e,t);var o,a,s},i.prototype.div=function(e){return this.divmod(e,"div",!1).div},i.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},i.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},i.prototype.divRound=function(e){var t=this.divmod(e);if(t.mod.isZero())return t.div;var n=0!==t.div.negative?t.mod.isub(e):t.mod,r=e.ushrn(1),i=e.andln(1),o=n.cmp(r);return o<0||1===i&&0===o?t.div:0!==t.div.negative?t.div.isubn(1):t.div.iaddn(1)},i.prototype.modrn=function(e){var t=e<0;t&&(e=-e),n(e<=67108863);for(var r=(1<<26)%e,i=0,o=this.length-1;o>=0;o--)i=(r*i+(0|this.words[o]))%e;return t?-i:i},i.prototype.modn=function(e){return this.modrn(e)},i.prototype.idivn=function(e){var t=e<0;t&&(e=-e),n(e<=67108863);for(var r=0,i=this.length-1;i>=0;i--){var o=(0|this.words[i])+67108864*r;this.words[i]=o/e|0,r=o%e}return this._strip(),t?this.ineg():this},i.prototype.divn=function(e){return this.clone().idivn(e)},i.prototype.egcd=function(e){n(0===e.negative),n(!e.isZero());var t=this,r=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var o=new i(1),a=new i(0),s=new i(0),c=new i(1),u=0;t.isEven()&&r.isEven();)t.iushrn(1),r.iushrn(1),++u;for(var l=r.clone(),f=t.clone();!t.isZero();){for(var d=0,A=1;!(t.words[0]&A)&&d<26;++d,A<<=1);if(d>0)for(t.iushrn(d);d-- >0;)(o.isOdd()||a.isOdd())&&(o.iadd(l),a.isub(f)),o.iushrn(1),a.iushrn(1);for(var h=0,p=1;!(r.words[0]&p)&&h<26;++h,p<<=1);if(h>0)for(r.iushrn(h);h-- >0;)(s.isOdd()||c.isOdd())&&(s.iadd(l),c.isub(f)),s.iushrn(1),c.iushrn(1);t.cmp(r)>=0?(t.isub(r),o.isub(s),a.isub(c)):(r.isub(t),s.isub(o),c.isub(a))}return{a:s,b:c,gcd:r.iushln(u)}},i.prototype._invmp=function(e){n(0===e.negative),n(!e.isZero());var t=this,r=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var o,a=new i(1),s=new i(0),c=r.clone();t.cmpn(1)>0&&r.cmpn(1)>0;){for(var u=0,l=1;!(t.words[0]&l)&&u<26;++u,l<<=1);if(u>0)for(t.iushrn(u);u-- >0;)a.isOdd()&&a.iadd(c),a.iushrn(1);for(var f=0,d=1;!(r.words[0]&d)&&f<26;++f,d<<=1);if(f>0)for(r.iushrn(f);f-- >0;)s.isOdd()&&s.iadd(c),s.iushrn(1);t.cmp(r)>=0?(t.isub(r),a.isub(s)):(r.isub(t),s.isub(a))}return(o=0===t.cmpn(1)?a:s).cmpn(0)<0&&o.iadd(e),o},i.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var t=this.clone(),n=e.clone();t.negative=0,n.negative=0;for(var r=0;t.isEven()&&n.isEven();r++)t.iushrn(1),n.iushrn(1);for(;;){for(;t.isEven();)t.iushrn(1);for(;n.isEven();)n.iushrn(1);var i=t.cmp(n);if(i<0){var o=t;t=n,n=o}else if(0===i||0===n.cmpn(1))break;t.isub(n)}return n.iushln(r)},i.prototype.invm=function(e){return this.egcd(e).a.umod(e)},i.prototype.isEven=function(){return!(1&this.words[0])},i.prototype.isOdd=function(){return!(1&~this.words[0])},i.prototype.andln=function(e){return this.words[0]&e},i.prototype.bincn=function(e){n("number"==typeof e);var t=e%26,r=(e-t)/26,i=1<>>26,s&=67108863,this.words[a]=s}return 0!==o&&(this.words[a]=o,this.length++),this},i.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},i.prototype.cmpn=function(e){var t,r=e<0;if(0!==this.negative&&!r)return-1;if(0===this.negative&&r)return 1;if(this._strip(),this.length>1)t=1;else{r&&(e=-e),n(e<=67108863,"Number is too big");var i=0|this.words[0];t=i===e?0:ie.length)return 1;if(this.length=0;n--){var r=0|this.words[n],i=0|e.words[n];if(r!==i){ri&&(t=1);break}}return t},i.prototype.gtn=function(e){return 1===this.cmpn(e)},i.prototype.gt=function(e){return 1===this.cmp(e)},i.prototype.gten=function(e){return this.cmpn(e)>=0},i.prototype.gte=function(e){return this.cmp(e)>=0},i.prototype.ltn=function(e){return-1===this.cmpn(e)},i.prototype.lt=function(e){return-1===this.cmp(e)},i.prototype.lten=function(e){return this.cmpn(e)<=0},i.prototype.lte=function(e){return this.cmp(e)<=0},i.prototype.eqn=function(e){return 0===this.cmpn(e)},i.prototype.eq=function(e){return 0===this.cmp(e)},i.red=function(e){return new B(e)},i.prototype.toRed=function(e){return n(!this.red,"Already a number in reduction context"),n(0===this.negative,"red works only with positives"),e.convertTo(this)._forceRed(e)},i.prototype.fromRed=function(){return n(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},i.prototype._forceRed=function(e){return this.red=e,this},i.prototype.forceRed=function(e){return n(!this.red,"Already a number in reduction context"),this._forceRed(e)},i.prototype.redAdd=function(e){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},i.prototype.redIAdd=function(e){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},i.prototype.redSub=function(e){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},i.prototype.redISub=function(e){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},i.prototype.redShl=function(e){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},i.prototype.redMul=function(e){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},i.prototype.redIMul=function(e){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},i.prototype.redSqr=function(){return n(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},i.prototype.redISqr=function(){return n(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},i.prototype.redSqrt=function(){return n(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},i.prototype.redInvm=function(){return n(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},i.prototype.redNeg=function(){return n(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},i.prototype.redPow=function(e){return n(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var m={k256:null,p224:null,p192:null,p25519:null};function b(e,t){this.name=e,this.p=new i(t,16),this.n=this.p.bitLength(),this.k=new i(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function v(){b.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function w(){b.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function E(){b.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function I(){b.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function B(e){if("string"==typeof e){var t=i._prime(e);this.m=t.p,this.prime=t}else n(e.gtn(1),"modulus must be greater than 1"),this.m=e,this.prime=null}function C(e){B.call(this,e),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)}b.prototype._tmp=function(){var e=new i(null);return e.words=new Array(Math.ceil(this.n/13)),e},b.prototype.ireduce=function(e){var t,n=e;do{this.split(n,this.tmp),t=(n=(n=this.imulK(n)).iadd(this.tmp)).bitLength()}while(t>this.n);var r=t0?n.isub(this.p):void 0!==n.strip?n.strip():n._strip(),n},b.prototype.split=function(e,t){e.iushrn(this.n,0,t)},b.prototype.imulK=function(e){return e.imul(this.k)},r(v,b),v.prototype.split=function(e,t){for(var n=4194303,r=Math.min(e.length,9),i=0;i>>22,o=a}o>>>=22,e.words[i-10]=o,0===o&&e.length>10?e.length-=10:e.length-=9},v.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var t=0,n=0;n>>=26,e.words[n]=i,t=r}return 0!==t&&(e.words[e.length++]=t),e},i._prime=function(e){if(m[e])return m[e];var t;if("k256"===e)t=new v;else if("p224"===e)t=new w;else if("p192"===e)t=new E;else{if("p25519"!==e)throw new Error("Unknown prime "+e);t=new I}return m[e]=t,t},B.prototype._verify1=function(e){n(0===e.negative,"red works only with positives"),n(e.red,"red works only with red numbers")},B.prototype._verify2=function(e,t){n(!(e.negative|t.negative),"red works only with positives"),n(e.red&&e.red===t.red,"red works only with red numbers")},B.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):(u(e,e.umod(this.m)._forceRed(this)),e)},B.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},B.prototype.add=function(e,t){this._verify2(e,t);var n=e.add(t);return n.cmp(this.m)>=0&&n.isub(this.m),n._forceRed(this)},B.prototype.iadd=function(e,t){this._verify2(e,t);var n=e.iadd(t);return n.cmp(this.m)>=0&&n.isub(this.m),n},B.prototype.sub=function(e,t){this._verify2(e,t);var n=e.sub(t);return n.cmpn(0)<0&&n.iadd(this.m),n._forceRed(this)},B.prototype.isub=function(e,t){this._verify2(e,t);var n=e.isub(t);return n.cmpn(0)<0&&n.iadd(this.m),n},B.prototype.shl=function(e,t){return this._verify1(e),this.imod(e.ushln(t))},B.prototype.imul=function(e,t){return this._verify2(e,t),this.imod(e.imul(t))},B.prototype.mul=function(e,t){return this._verify2(e,t),this.imod(e.mul(t))},B.prototype.isqr=function(e){return this.imul(e,e.clone())},B.prototype.sqr=function(e){return this.mul(e,e)},B.prototype.sqrt=function(e){if(e.isZero())return e.clone();var t=this.m.andln(3);if(n(t%2==1),3===t){var r=this.m.add(new i(1)).iushrn(2);return this.pow(e,r)}for(var o=this.m.subn(1),a=0;!o.isZero()&&0===o.andln(1);)a++,o.iushrn(1);n(!o.isZero());var s=new i(1).toRed(this),c=s.redNeg(),u=this.m.subn(1).iushrn(1),l=this.m.bitLength();for(l=new i(2*l*l).toRed(this);0!==this.pow(l,u).cmp(c);)l.redIAdd(c);for(var f=this.pow(l,o),d=this.pow(e,o.addn(1).iushrn(1)),A=this.pow(e,o),h=a;0!==A.cmp(s);){for(var p=A,g=0;0!==p.cmp(s);g++)p=p.redSqr();n(g=0;r--){for(var u=t.words[r],l=c-1;l>=0;l--){var f=u>>l&1;o!==n[0]&&(o=this.sqr(o)),0!==f||0!==a?(a<<=1,a|=f,(4==++s||0===r&&0===l)&&(o=this.mul(o,n[a]),s=0,a=0)):s=0}c=26}return o},B.prototype.convertTo=function(e){var t=e.umod(this.m);return t===e?t.clone():t},B.prototype.convertFrom=function(e){var t=e.clone();return t.red=null,t},i.mont=function(e){return new C(e)},r(C,B),C.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},C.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},C.prototype.imul=function(e,t){if(e.isZero()||t.isZero())return e.words[0]=0,e.length=1,e;var n=e.imul(t),r=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=n.isub(r).iushrn(this.shift),o=i;return i.cmp(this.m)>=0?o=i.isub(this.m):i.cmpn(0)<0&&(o=i.iadd(this.m)),o._forceRed(this)},C.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new i(0)._forceRed(this);var n=e.mul(t),r=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),o=n.isub(r).iushrn(this.shift),a=o;return o.cmp(this.m)>=0?a=o.isub(this.m):o.cmpn(0)<0&&(a=o.iadd(this.m)),a._forceRed(this)},C.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}}(SA,dr);var QA=SA.exports,kA=Wr;function MA(e){var t,n=e.modulus.byteLength();do{t=new QA(kA(n))}while(t.cmp(e.modulus)>=0||!t.umod(e.prime1)||!t.umod(e.prime2));return t}function xA(e,t){var n=function(e){var t=MA(e);return{blinder:t.toRed(QA.mont(e.modulus)).redPow(new QA(e.publicExponent)).fromRed(),unblinder:t.invm(e.modulus)}}(t),r=t.modulus.byteLength(),i=new QA(e).mul(n.blinder).umod(t.modulus),o=i.toRed(QA.mont(t.prime1)),a=i.toRed(QA.mont(t.prime2)),s=t.coefficient,c=t.prime1,u=t.prime2,l=o.redPow(t.exponent1).fromRed(),f=a.redPow(t.exponent2).fromRed(),d=l.isub(f).imul(s).umod(c).imul(u);return f.iadd(d).imul(n.unblinder).umod(t.modulus).toArrayLike(Sn,"be",r)}xA.getr=MA;var RA=xA,DA={},TA={name:"elliptic",version:"6.5.4",description:"EC cryptography",main:"lib/elliptic.js",files:["lib"],scripts:{lint:"eslint lib test","lint:fix":"npm run lint -- --fix",unit:"istanbul test _mocha --reporter=spec test/index.js",test:"npm run lint && npm run unit",version:"grunt dist && git add dist/"},repository:{type:"git",url:"git@github.com:indutny/elliptic"},keywords:["EC","Elliptic","curve","Cryptography"],author:"Fedor Indutny ",license:"MIT",bugs:{url:"https://github.com/indutny/elliptic/issues"},homepage:"https://github.com/indutny/elliptic",devDependencies:{brfs:"^2.0.2",coveralls:"^3.1.0",eslint:"^7.6.0",grunt:"^1.2.1","grunt-browserify":"^5.3.0","grunt-cli":"^1.3.2","grunt-contrib-connect":"^3.0.0","grunt-contrib-copy":"^1.0.0","grunt-contrib-uglify":"^5.0.0","grunt-mocha-istanbul":"^5.0.2","grunt-saucelabs":"^9.0.1",istanbul:"^0.4.5",mocha:"^8.0.1"},dependencies:{"bn.js":"^4.11.9",brorand:"^1.1.0","hash.js":"^1.0.0","hmac-drbg":"^1.0.1",inherits:"^2.0.4","minimalistic-assert":"^1.0.1","minimalistic-crypto-utils":"^1.0.1"}},NA={},OA={};!function(e){var t=OA;function n(e){return 1===e.length?"0"+e:e}function r(e){for(var t="",r=0;r>8,a=255&i;o?n.push(o,a):n.push(a)}return n},t.zero2=n,t.toHex=r,t.encode=function(e,t){return"hex"===t?r(e):e}}(),function(e){var t=NA,n=pd,r=zu,i=OA;t.assert=r,t.toArray=i.toArray,t.zero2=i.zero2,t.toHex=i.toHex,t.encode=i.encode,t.getNAF=function(e,t,n){var r=new Array(Math.max(e.bitLength(),n)+1);r.fill(0);for(var i=1<(i>>1)-1?(i>>1)-c:c,o.isubn(s)):s=0,r[a]=s,o.iushrn(1)}return r},t.getJSF=function(e,t){var n=[[],[]];e=e.clone(),t=t.clone();for(var r,i=0,o=0;e.cmpn(-i)>0||t.cmpn(-o)>0;){var a,s,c=e.andln(3)+i&3,u=t.andln(3)+o&3;3===c&&(c=-1),3===u&&(u=-1),a=1&c?3!=(r=e.andln(7)+i&7)&&5!==r||2!==u?c:-c:0,n[0].push(a),s=1&u?3!=(r=t.andln(7)+o&7)&&5!==r||2!==c?u:-u:0,n[1].push(s),2*i===a+1&&(i=1-i),2*o===s+1&&(o=1-o),e.iushrn(1),t.iushrn(1)}return n},t.cachedProperty=function(e,t,n){var r="_"+t;e.prototype[t]=function(){return void 0!==this[r]?this[r]:this[r]=n.call(this)}},t.parseBytes=function(e){return"string"==typeof e?t.toArray(e,"hex"):e},t.intFromLE=function(e){return new n(e,"hex","le")}}();var LA={},PA=pd,UA=NA,FA=UA.getNAF,jA=UA.getJSF,qA=UA.assert;function GA(e,t){this.type=e,this.p=new PA(t.p,16),this.red=t.prime?PA.red(t.prime):PA.mont(this.p),this.zero=new PA(0).toRed(this.red),this.one=new PA(1).toRed(this.red),this.two=new PA(2).toRed(this.red),this.n=t.n&&new PA(t.n,16),this.g=t.g&&this.pointFromJSON(t.g,t.gRed),this._wnafT1=new Array(4),this._wnafT2=new Array(4),this._wnafT3=new Array(4),this._wnafT4=new Array(4),this._bitLength=this.n?this.n.bitLength():0;var n=this.n&&this.p.div(this.n);!n||n.cmpn(100)>0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}var HA=GA;function YA(e,t){this.curve=e,this.type=t,this.precomputed=null}GA.prototype.point=function(){throw new Error("Not implemented")},GA.prototype.validate=function(){throw new Error("Not implemented")},GA.prototype._fixedNafMul=function(e,t){qA(e.precomputed);var n=e._getDoubles(),r=FA(t,1,this._bitLength),i=(1<=o;c--)a=(a<<1)+r[c];s.push(a)}for(var u=this.jpoint(null,null,null),l=this.jpoint(null,null,null),f=i;f>0;f--){for(o=0;o=0;s--){for(var c=0;s>=0&&0===o[s];s--)c++;if(s>=0&&c++,a=a.dblp(c),s<0)break;var u=o[s];qA(0!==u),a="affine"===e.type?u>0?a.mixedAdd(i[u-1>>1]):a.mixedAdd(i[-u-1>>1].neg()):u>0?a.add(i[u-1>>1]):a.add(i[-u-1>>1].neg())}return"affine"===e.type?a.toP():a},GA.prototype._wnafMulAdd=function(e,t,n,r,i){var o,a,s,c=this._wnafT1,u=this._wnafT2,l=this._wnafT3,f=0;for(o=0;o=1;o-=2){var A=o-1,h=o;if(1===c[A]&&1===c[h]){var p=[t[A],null,null,t[h]];0===t[A].y.cmp(t[h].y)?(p[1]=t[A].add(t[h]),p[2]=t[A].toJ().mixedAdd(t[h].neg())):0===t[A].y.cmp(t[h].y.redNeg())?(p[1]=t[A].toJ().mixedAdd(t[h]),p[2]=t[A].add(t[h].neg())):(p[1]=t[A].toJ().mixedAdd(t[h]),p[2]=t[A].toJ().mixedAdd(t[h].neg()));var g=[-3,-1,-5,-7,0,7,5,1,3],y=jA(n[A],n[h]);for(f=Math.max(y[0].length,f),l[A]=new Array(f),l[h]=new Array(f),a=0;a=0;o--){for(var E=0;o>=0;){var I=!0;for(a=0;a=0&&E++,v=v.dblp(E),o<0)break;for(a=0;a0?s=u[a][B-1>>1]:B<0&&(s=u[a][-B-1>>1].neg()),v="affine"===s.type?v.mixedAdd(s):v.add(s))}}for(o=0;o=Math.ceil((e.bitLength()+1)/t.step)},YA.prototype._getDoubles=function(e,t){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var n=[this],r=this,i=0;i=0&&(o=t,a=n),r.negative&&(r=r.neg(),i=i.neg()),o.negative&&(o=o.neg(),a=a.neg()),[{a:r,b:i},{a:o,b:a}]},WA.prototype._endoSplit=function(e){var t=this.endo.basis,n=t[0],r=t[1],i=r.b.mul(e).divRound(this.n),o=n.b.neg().mul(e).divRound(this.n),a=i.mul(n.a),s=o.mul(r.a),c=i.mul(n.b),u=o.mul(r.b);return{k1:e.sub(a).sub(s),k2:c.add(u).neg()}},WA.prototype.pointFromX=function(e,t){(e=new KA(e,16)).red||(e=e.toRed(this.red));var n=e.redSqr().redMul(e).redIAdd(e.redMul(this.a)).redIAdd(this.b),r=n.redSqrt();if(0!==r.redSqr().redSub(n).cmp(this.zero))throw new Error("invalid point");var i=r.fromRed().isOdd();return(t&&!i||!t&&i)&&(r=r.redNeg()),this.point(e,r)},WA.prototype.validate=function(e){if(e.inf)return!0;var t=e.x,n=e.y,r=this.a.redMul(t),i=t.redSqr().redMul(t).redIAdd(r).redIAdd(this.b);return 0===n.redSqr().redISub(i).cmpn(0)},WA.prototype._endoWnafMulAdd=function(e,t,n){for(var r=this._endoWnafT1,i=this._endoWnafT2,o=0;o":""},$A.prototype.isInfinity=function(){return this.inf},$A.prototype.add=function(e){if(this.inf)return e;if(e.inf)return this;if(this.eq(e))return this.dbl();if(this.neg().eq(e))return this.curve.point(null,null);if(0===this.x.cmp(e.x))return this.curve.point(null,null);var t=this.y.redSub(e.y);0!==t.cmpn(0)&&(t=t.redMul(this.x.redSub(e.x).redInvm()));var n=t.redSqr().redISub(this.x).redISub(e.x),r=t.redMul(this.x.redSub(n)).redISub(this.y);return this.curve.point(n,r)},$A.prototype.dbl=function(){if(this.inf)return this;var e=this.y.redAdd(this.y);if(0===e.cmpn(0))return this.curve.point(null,null);var t=this.curve.a,n=this.x.redSqr(),r=e.redInvm(),i=n.redAdd(n).redIAdd(n).redIAdd(t).redMul(r),o=i.redSqr().redISub(this.x.redAdd(this.x)),a=i.redMul(this.x.redSub(o)).redISub(this.y);return this.curve.point(o,a)},$A.prototype.getX=function(){return this.x.fromRed()},$A.prototype.getY=function(){return this.y.fromRed()},$A.prototype.mul=function(e){return e=new KA(e,16),this.isInfinity()?this:this._hasDoubles(e)?this.curve._fixedNafMul(this,e):this.curve.endo?this.curve._endoWnafMulAdd([this],[e]):this.curve._wnafMul(this,e)},$A.prototype.mulAdd=function(e,t,n){var r=[this,t],i=[e,n];return this.curve.endo?this.curve._endoWnafMulAdd(r,i):this.curve._wnafMulAdd(1,r,i,2)},$A.prototype.jmulAdd=function(e,t,n){var r=[this,t],i=[e,n];return this.curve.endo?this.curve._endoWnafMulAdd(r,i,!0):this.curve._wnafMulAdd(1,r,i,2,!0)},$A.prototype.eq=function(e){return this===e||this.inf===e.inf&&(this.inf||0===this.x.cmp(e.x)&&0===this.y.cmp(e.y))},$A.prototype.neg=function(e){if(this.inf)return this;var t=this.curve.point(this.x,this.y.redNeg());if(e&&this.precomputed){var n=this.precomputed,r=function(e){return e.neg()};t.precomputed={naf:n.naf&&{wnd:n.naf.wnd,points:n.naf.points.map(r)},doubles:n.doubles&&{step:n.doubles.step,points:n.doubles.points.map(r)}}}return t},$A.prototype.toJ=function(){return this.inf?this.curve.jpoint(null,null,null):this.curve.jpoint(this.x,this.y,this.curve.one)},zA(XA,VA.BasePoint),WA.prototype.jpoint=function(e,t,n){return new XA(this,e,t,n)},XA.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var e=this.z.redInvm(),t=e.redSqr(),n=this.x.redMul(t),r=this.y.redMul(t).redMul(e);return this.curve.point(n,r)},XA.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)},XA.prototype.add=function(e){if(this.isInfinity())return e;if(e.isInfinity())return this;var t=e.z.redSqr(),n=this.z.redSqr(),r=this.x.redMul(t),i=e.x.redMul(n),o=this.y.redMul(t.redMul(e.z)),a=e.y.redMul(n.redMul(this.z)),s=r.redSub(i),c=o.redSub(a);if(0===s.cmpn(0))return 0!==c.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var u=s.redSqr(),l=u.redMul(s),f=r.redMul(u),d=c.redSqr().redIAdd(l).redISub(f).redISub(f),A=c.redMul(f.redISub(d)).redISub(o.redMul(l)),h=this.z.redMul(e.z).redMul(s);return this.curve.jpoint(d,A,h)},XA.prototype.mixedAdd=function(e){if(this.isInfinity())return e.toJ();if(e.isInfinity())return this;var t=this.z.redSqr(),n=this.x,r=e.x.redMul(t),i=this.y,o=e.y.redMul(t).redMul(this.z),a=n.redSub(r),s=i.redSub(o);if(0===a.cmpn(0))return 0!==s.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var c=a.redSqr(),u=c.redMul(a),l=n.redMul(c),f=s.redSqr().redIAdd(u).redISub(l).redISub(l),d=s.redMul(l.redISub(f)).redISub(i.redMul(u)),A=this.z.redMul(a);return this.curve.jpoint(f,d,A)},XA.prototype.dblp=function(e){if(0===e)return this;if(this.isInfinity())return this;if(!e)return this.dbl();var t;if(this.curve.zeroA||this.curve.threeA){var n=this;for(t=0;t=0)return!1;if(n.redIAdd(i),0===this.x.cmp(n))return!0}},XA.prototype.inspect=function(){return this.isInfinity()?"":""},XA.prototype.isInfinity=function(){return 0===this.z.cmpn(0)};var eh=pd,th=$r,nh=HA,rh=NA;function ih(e){nh.call(this,"mont",e),this.a=new eh(e.a,16).toRed(this.red),this.b=new eh(e.b,16).toRed(this.red),this.i4=new eh(4).toRed(this.red).redInvm(),this.two=new eh(2).toRed(this.red),this.a24=this.i4.redMul(this.a.redAdd(this.two))}th(ih,nh);var oh=ih;function ah(e,t,n){nh.BasePoint.call(this,e,"projective"),null===t&&null===n?(this.x=this.curve.one,this.z=this.curve.zero):(this.x=new eh(t,16),this.z=new eh(n,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)))}ih.prototype.validate=function(e){var t=e.normalize().x,n=t.redSqr(),r=n.redMul(t).redAdd(n.redMul(this.a)).redAdd(t);return 0===r.redSqrt().redSqr().cmp(r)},th(ah,nh.BasePoint),ih.prototype.decodePoint=function(e,t){return this.point(rh.toArray(e,t),1)},ih.prototype.point=function(e,t){return new ah(this,e,t)},ih.prototype.pointFromJSON=function(e){return ah.fromJSON(this,e)},ah.prototype.precompute=function(){},ah.prototype._encode=function(){return this.getX().toArray("be",this.curve.p.byteLength())},ah.fromJSON=function(e,t){return new ah(e,t[0],t[1]||e.one)},ah.prototype.inspect=function(){return this.isInfinity()?"":""},ah.prototype.isInfinity=function(){return 0===this.z.cmpn(0)},ah.prototype.dbl=function(){var e=this.x.redAdd(this.z).redSqr(),t=this.x.redSub(this.z).redSqr(),n=e.redSub(t),r=e.redMul(t),i=n.redMul(t.redAdd(this.curve.a24.redMul(n)));return this.curve.point(r,i)},ah.prototype.add=function(){throw new Error("Not supported on Montgomery curve")},ah.prototype.diffAdd=function(e,t){var n=this.x.redAdd(this.z),r=this.x.redSub(this.z),i=e.x.redAdd(e.z),o=e.x.redSub(e.z).redMul(n),a=i.redMul(r),s=t.z.redMul(o.redAdd(a).redSqr()),c=t.x.redMul(o.redISub(a).redSqr());return this.curve.point(s,c)},ah.prototype.mul=function(e){for(var t=e.clone(),n=this,r=this.curve.point(null,null),i=[];0!==t.cmpn(0);t.iushrn(1))i.push(t.andln(1));for(var o=i.length-1;o>=0;o--)0===i[o]?(n=n.diffAdd(r,this),r=r.dbl()):(r=n.diffAdd(r,this),n=n.dbl());return r},ah.prototype.mulAdd=function(){throw new Error("Not supported on Montgomery curve")},ah.prototype.jumlAdd=function(){throw new Error("Not supported on Montgomery curve")},ah.prototype.eq=function(e){return 0===this.getX().cmp(e.getX())},ah.prototype.normalize=function(){return this.x=this.x.redMul(this.z.redInvm()),this.z=this.curve.one,this},ah.prototype.getX=function(){return this.normalize(),this.x.fromRed()};var sh=pd,ch=$r,uh=HA,lh=NA.assert;function fh(e){this.twisted=1!=(0|e.a),this.mOneA=this.twisted&&-1==(0|e.a),this.extended=this.mOneA,uh.call(this,"edwards",e),this.a=new sh(e.a,16).umod(this.red.m),this.a=this.a.toRed(this.red),this.c=new sh(e.c,16).toRed(this.red),this.c2=this.c.redSqr(),this.d=new sh(e.d,16).toRed(this.red),this.dd=this.d.redAdd(this.d),lh(!this.twisted||0===this.c.fromRed().cmpn(1)),this.oneC=1==(0|e.c)}ch(fh,uh);var dh=fh;function Ah(e,t,n,r,i){uh.BasePoint.call(this,e,"projective"),null===t&&null===n&&null===r?(this.x=this.curve.zero,this.y=this.curve.one,this.z=this.curve.one,this.t=this.curve.zero,this.zOne=!0):(this.x=new sh(t,16),this.y=new sh(n,16),this.z=r?new sh(r,16):this.curve.one,this.t=i&&new sh(i,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.t&&!this.t.red&&(this.t=this.t.toRed(this.curve.red)),this.zOne=this.z===this.curve.one,this.curve.extended&&!this.t&&(this.t=this.x.redMul(this.y),this.zOne||(this.t=this.t.redMul(this.z.redInvm()))))}fh.prototype._mulA=function(e){return this.mOneA?e.redNeg():this.a.redMul(e)},fh.prototype._mulC=function(e){return this.oneC?e:this.c.redMul(e)},fh.prototype.jpoint=function(e,t,n,r){return this.point(e,t,n,r)},fh.prototype.pointFromX=function(e,t){(e=new sh(e,16)).red||(e=e.toRed(this.red));var n=e.redSqr(),r=this.c2.redSub(this.a.redMul(n)),i=this.one.redSub(this.c2.redMul(this.d).redMul(n)),o=r.redMul(i.redInvm()),a=o.redSqrt();if(0!==a.redSqr().redSub(o).cmp(this.zero))throw new Error("invalid point");var s=a.fromRed().isOdd();return(t&&!s||!t&&s)&&(a=a.redNeg()),this.point(e,a)},fh.prototype.pointFromY=function(e,t){(e=new sh(e,16)).red||(e=e.toRed(this.red));var n=e.redSqr(),r=n.redSub(this.c2),i=n.redMul(this.d).redMul(this.c2).redSub(this.a),o=r.redMul(i.redInvm());if(0===o.cmp(this.zero)){if(t)throw new Error("invalid point");return this.point(this.zero,e)}var a=o.redSqrt();if(0!==a.redSqr().redSub(o).cmp(this.zero))throw new Error("invalid point");return a.fromRed().isOdd()!==t&&(a=a.redNeg()),this.point(a,e)},fh.prototype.validate=function(e){if(e.isInfinity())return!0;e.normalize();var t=e.x.redSqr(),n=e.y.redSqr(),r=t.redMul(this.a).redAdd(n),i=this.c2.redMul(this.one.redAdd(this.d.redMul(t).redMul(n)));return 0===r.cmp(i)},ch(Ah,uh.BasePoint),fh.prototype.pointFromJSON=function(e){return Ah.fromJSON(this,e)},fh.prototype.point=function(e,t,n,r){return new Ah(this,e,t,n,r)},Ah.fromJSON=function(e,t){return new Ah(e,t[0],t[1],t[2])},Ah.prototype.inspect=function(){return this.isInfinity()?"":""},Ah.prototype.isInfinity=function(){return 0===this.x.cmpn(0)&&(0===this.y.cmp(this.z)||this.zOne&&0===this.y.cmp(this.curve.c))},Ah.prototype._extDbl=function(){var e=this.x.redSqr(),t=this.y.redSqr(),n=this.z.redSqr();n=n.redIAdd(n);var r=this.curve._mulA(e),i=this.x.redAdd(this.y).redSqr().redISub(e).redISub(t),o=r.redAdd(t),a=o.redSub(n),s=r.redSub(t),c=i.redMul(a),u=o.redMul(s),l=i.redMul(s),f=a.redMul(o);return this.curve.point(c,u,f,l)},Ah.prototype._projDbl=function(){var e,t,n,r,i,o,a=this.x.redAdd(this.y).redSqr(),s=this.x.redSqr(),c=this.y.redSqr();if(this.curve.twisted){var u=(r=this.curve._mulA(s)).redAdd(c);this.zOne?(e=a.redSub(s).redSub(c).redMul(u.redSub(this.curve.two)),t=u.redMul(r.redSub(c)),n=u.redSqr().redSub(u).redSub(u)):(i=this.z.redSqr(),o=u.redSub(i).redISub(i),e=a.redSub(s).redISub(c).redMul(o),t=u.redMul(r.redSub(c)),n=u.redMul(o))}else r=s.redAdd(c),i=this.curve._mulC(this.z).redSqr(),o=r.redSub(i).redSub(i),e=this.curve._mulC(a.redISub(r)).redMul(o),t=this.curve._mulC(r).redMul(s.redISub(c)),n=r.redMul(o);return this.curve.point(e,t,n)},Ah.prototype.dbl=function(){return this.isInfinity()?this:this.curve.extended?this._extDbl():this._projDbl()},Ah.prototype._extAdd=function(e){var t=this.y.redSub(this.x).redMul(e.y.redSub(e.x)),n=this.y.redAdd(this.x).redMul(e.y.redAdd(e.x)),r=this.t.redMul(this.curve.dd).redMul(e.t),i=this.z.redMul(e.z.redAdd(e.z)),o=n.redSub(t),a=i.redSub(r),s=i.redAdd(r),c=n.redAdd(t),u=o.redMul(a),l=s.redMul(c),f=o.redMul(c),d=a.redMul(s);return this.curve.point(u,l,d,f)},Ah.prototype._projAdd=function(e){var t,n,r=this.z.redMul(e.z),i=r.redSqr(),o=this.x.redMul(e.x),a=this.y.redMul(e.y),s=this.curve.d.redMul(o).redMul(a),c=i.redSub(s),u=i.redAdd(s),l=this.x.redAdd(this.y).redMul(e.x.redAdd(e.y)).redISub(o).redISub(a),f=r.redMul(c).redMul(l);return this.curve.twisted?(t=r.redMul(u).redMul(a.redSub(this.curve._mulA(o))),n=c.redMul(u)):(t=r.redMul(u).redMul(a.redSub(o)),n=this.curve._mulC(c).redMul(u)),this.curve.point(f,t,n)},Ah.prototype.add=function(e){return this.isInfinity()?e:e.isInfinity()?this:this.curve.extended?this._extAdd(e):this._projAdd(e)},Ah.prototype.mul=function(e){return this._hasDoubles(e)?this.curve._fixedNafMul(this,e):this.curve._wnafMul(this,e)},Ah.prototype.mulAdd=function(e,t,n){return this.curve._wnafMulAdd(1,[this,t],[e,n],2,!1)},Ah.prototype.jmulAdd=function(e,t,n){return this.curve._wnafMulAdd(1,[this,t],[e,n],2,!0)},Ah.prototype.normalize=function(){if(this.zOne)return this;var e=this.z.redInvm();return this.x=this.x.redMul(e),this.y=this.y.redMul(e),this.t&&(this.t=this.t.redMul(e)),this.z=this.curve.one,this.zOne=!0,this},Ah.prototype.neg=function(){return this.curve.point(this.x.redNeg(),this.y,this.z,this.t&&this.t.redNeg())},Ah.prototype.getX=function(){return this.normalize(),this.x.fromRed()},Ah.prototype.getY=function(){return this.normalize(),this.y.fromRed()},Ah.prototype.eq=function(e){return this===e||0===this.getX().cmp(e.getX())&&0===this.getY().cmp(e.getY())},Ah.prototype.eqXToP=function(e){var t=e.toRed(this.curve.red).redMul(this.z);if(0===this.x.cmp(t))return!0;for(var n=e.clone(),r=this.curve.redN.redMul(this.z);;){if(n.iadd(this.curve.n),n.cmp(this.curve.p)>=0)return!1;if(t.redIAdd(r),0===this.x.cmp(t))return!0}},Ah.prototype.toP=Ah.prototype.normalize,Ah.prototype.mixedAdd=Ah.prototype.add,function(e){var t=e;t.base=HA,t.short=ZA,t.mont=oh,t.edwards=dh}(LA);var hh={},ph={},gh={},yh=zu,mh=$r;function bh(e,t){return 55296==(64512&e.charCodeAt(t))&&!(t<0||t+1>=e.length)&&56320==(64512&e.charCodeAt(t+1))}function vh(e){return(e>>>24|e>>>8&65280|e<<8&16711680|(255&e)<<24)>>>0}function wh(e){return 1===e.length?"0"+e:e}function Eh(e){return 7===e.length?"0"+e:6===e.length?"00"+e:5===e.length?"000"+e:4===e.length?"0000"+e:3===e.length?"00000"+e:2===e.length?"000000"+e:1===e.length?"0000000"+e:e}gh.inherits=mh,gh.toArray=function(e,t){if(Array.isArray(e))return e.slice();if(!e)return[];var n=[];if("string"==typeof e)if(t){if("hex"===t)for((e=e.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(e="0"+e),i=0;i>6|192,n[r++]=63&o|128):bh(e,i)?(o=65536+((1023&o)<<10)+(1023&e.charCodeAt(++i)),n[r++]=o>>18|240,n[r++]=o>>12&63|128,n[r++]=o>>6&63|128,n[r++]=63&o|128):(n[r++]=o>>12|224,n[r++]=o>>6&63|128,n[r++]=63&o|128)}else for(i=0;i>>0}return o},gh.split32=function(e,t){for(var n=new Array(4*e.length),r=0,i=0;r>>24,n[i+1]=o>>>16&255,n[i+2]=o>>>8&255,n[i+3]=255&o):(n[i+3]=o>>>24,n[i+2]=o>>>16&255,n[i+1]=o>>>8&255,n[i]=255&o)}return n},gh.rotr32=function(e,t){return e>>>t|e<<32-t},gh.rotl32=function(e,t){return e<>>32-t},gh.sum32=function(e,t){return e+t>>>0},gh.sum32_3=function(e,t,n){return e+t+n>>>0},gh.sum32_4=function(e,t,n,r){return e+t+n+r>>>0},gh.sum32_5=function(e,t,n,r,i){return e+t+n+r+i>>>0},gh.sum64=function(e,t,n,r){var i=e[t],o=r+e[t+1]>>>0,a=(o>>0,e[t+1]=o},gh.sum64_hi=function(e,t,n,r){return(t+r>>>0>>0},gh.sum64_lo=function(e,t,n,r){return t+r>>>0},gh.sum64_4_hi=function(e,t,n,r,i,o,a,s){var c=0,u=t;return c+=(u=u+r>>>0)>>0)>>0)>>0},gh.sum64_4_lo=function(e,t,n,r,i,o,a,s){return t+r+o+s>>>0},gh.sum64_5_hi=function(e,t,n,r,i,o,a,s,c,u){var l=0,f=t;return l+=(f=f+r>>>0)>>0)>>0)>>0)>>0},gh.sum64_5_lo=function(e,t,n,r,i,o,a,s,c,u){return t+r+o+s+u>>>0},gh.rotr64_hi=function(e,t,n){return(t<<32-n|e>>>n)>>>0},gh.rotr64_lo=function(e,t,n){return(e<<32-n|t>>>n)>>>0},gh.shr64_hi=function(e,t,n){return e>>>n},gh.shr64_lo=function(e,t,n){return(e<<32-n|t>>>n)>>>0};var Ih={},Bh=gh,Ch=zu;function _h(){this.pending=null,this.pendingTotal=0,this.blockSize=this.constructor.blockSize,this.outSize=this.constructor.outSize,this.hmacStrength=this.constructor.hmacStrength,this.padLength=this.constructor.padLength/8,this.endian="big",this._delta8=this.blockSize/8,this._delta32=this.blockSize/32}Ih.BlockHash=_h,_h.prototype.update=function(e,t){if(e=Bh.toArray(e,t),this.pending?this.pending=this.pending.concat(e):this.pending=e,this.pendingTotal+=e.length,this.pending.length>=this._delta8){var n=(e=this.pending).length%this._delta8;this.pending=e.slice(e.length-n,e.length),0===this.pending.length&&(this.pending=null),e=Bh.join32(e,0,e.length-n,this.endian);for(var r=0;r>>24&255,r[i++]=e>>>16&255,r[i++]=e>>>8&255,r[i++]=255&e}else for(r[i++]=255&e,r[i++]=e>>>8&255,r[i++]=e>>>16&255,r[i++]=e>>>24&255,r[i++]=0,r[i++]=0,r[i++]=0,r[i++]=0,o=8;o>>3},Qh.g1_256=function(e){return kh(e,17)^kh(e,19)^e>>>10};var Dh=gh,Th=Ih,Nh=Qh,Oh=Dh.rotl32,Lh=Dh.sum32,Ph=Dh.sum32_5,Uh=Nh.ft_1,Fh=Th.BlockHash,jh=[1518500249,1859775393,2400959708,3395469782];function qh(){if(!(this instanceof qh))return new qh;Fh.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80)}Dh.inherits(qh,Fh);var Gh=qh;qh.blockSize=512,qh.outSize=160,qh.hmacStrength=80,qh.padLength=64,qh.prototype._update=function(e,t){for(var n=this.W,r=0;r<16;r++)n[r]=e[t+r];for(;rthis.blockSize&&(e=(new this.Hash).update(e).digest()),cg(e.length<=this.blockSize);for(var t=e.length;t=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(t,n,r)}var yg=gg;gg.prototype._init=function(e,t,n){var r=e.concat(t).concat(n);this.K=new Array(this.outLen/8),this.V=new Array(this.outLen/8);for(var i=0;i=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(e.concat(n||[])),this._reseed=1},gg.prototype.generate=function(e,t,n,r){if(this._reseed>this.reseedInterval)throw new Error("Reseed is required");"string"!=typeof t&&(r=n,n=t,t=null),n&&(n=hg.toArray(n,r||"hex"),this._update(n));for(var i=[];i.length"};var Eg=pd,Ig=NA,Bg=Ig.assert;function Cg(e,t){if(e instanceof Cg)return e;this._importDER(e,t)||(Bg(e.r&&e.s,"Signature without r or s"),this.r=new Eg(e.r,16),this.s=new Eg(e.s,16),void 0===e.recoveryParam?this.recoveryParam=null:this.recoveryParam=e.recoveryParam)}var _g,Sg,Qg=Cg;function kg(){this.place=0}function Mg(e,t){var n=e[t.place++];if(!(128&n))return n;var r=15&n;if(0===r||r>4)return!1;for(var i=0,o=0,a=t.place;o>>=0;return!(i<=127)&&(t.place=a,i)}function xg(e){for(var t=0,n=e.length-1;!e[t]&&!(128&e[t+1])&&t>>3);for(e.push(128|n);--n;)e.push(t>>>(n<<3)&255);e.push(t)}}Cg.prototype._importDER=function(e,t){e=Ig.toArray(e,t);var n=new kg;if(48!==e[n.place++])return!1;var r=Mg(e,n);if(!1===r)return!1;if(r+n.place!==e.length)return!1;if(2!==e[n.place++])return!1;var i=Mg(e,n);if(!1===i)return!1;var o=e.slice(n.place,i+n.place);if(n.place+=i,2!==e[n.place++])return!1;var a=Mg(e,n);if(!1===a)return!1;if(e.length!==a+n.place)return!1;var s=e.slice(n.place,a+n.place);if(0===o[0]){if(!(128&o[1]))return!1;o=o.slice(1)}if(0===s[0]){if(!(128&s[1]))return!1;s=s.slice(1)}return this.r=new Eg(o),this.s=new Eg(s),this.recoveryParam=null,!0},Cg.prototype.toDER=function(e){var t=this.r.toArray(),n=this.s.toArray();for(128&t[0]&&(t=[0].concat(t)),128&n[0]&&(n=[0].concat(n)),t=xg(t),n=xg(n);!(n[0]||128&n[1]);)n=n.slice(1);var r=[2];Rg(r,t.length),(r=r.concat(t)).push(2),Rg(r,n.length);var i=r.concat(n),o=[48];return Rg(o,i.length),o=o.concat(i),Ig.encode(o,e)};var Dg=NA,Tg=Dg.assert,Ng=Dg.parseBytes,Og=Dg.cachedProperty;function Lg(e,t){this.eddsa=e,this._secret=Ng(t.secret),e.isPoint(t.pub)?this._pub=t.pub:this._pubBytes=Ng(t.pub)}Lg.fromPublic=function(e,t){return t instanceof Lg?t:new Lg(e,{pub:t})},Lg.fromSecret=function(e,t){return t instanceof Lg?t:new Lg(e,{secret:t})},Lg.prototype.secret=function(){return this._secret},Og(Lg,"pubBytes",(function(){return this.eddsa.encodePoint(this.pub())})),Og(Lg,"pub",(function(){return this._pubBytes?this.eddsa.decodePoint(this._pubBytes):this.eddsa.g.mul(this.priv())})),Og(Lg,"privBytes",(function(){var e=this.eddsa,t=this.hash(),n=e.encodingLength-1,r=t.slice(0,e.encodingLength);return r[0]&=248,r[n]&=127,r[n]|=64,r})),Og(Lg,"priv",(function(){return this.eddsa.decodeInt(this.privBytes())})),Og(Lg,"hash",(function(){return this.eddsa.hash().update(this.secret()).digest()})),Og(Lg,"messagePrefix",(function(){return this.hash().slice(this.eddsa.encodingLength)})),Lg.prototype.sign=function(e){return Tg(this._secret,"KeyPair can only verify"),this.eddsa.sign(e,this)},Lg.prototype.verify=function(e,t){return this.eddsa.verify(e,t,this)},Lg.prototype.getSecret=function(e){return Tg(this._secret,"KeyPair is public only"),Dg.encode(this.secret(),e)},Lg.prototype.getPublic=function(e){return Dg.encode(this.pubBytes(),e)};var Pg=Lg,Ug=pd,Fg=NA,jg=Fg.assert,qg=Fg.cachedProperty,Gg=Fg.parseBytes;function Hg(e,t){this.eddsa=e,"object"!=typeof t&&(t=Gg(t)),Array.isArray(t)&&(t={R:t.slice(0,e.encodingLength),S:t.slice(e.encodingLength)}),jg(t.R&&t.S,"Signature without R or S"),e.isPoint(t.R)&&(this._R=t.R),t.S instanceof Ug&&(this._S=t.S),this._Rencoded=Array.isArray(t.R)?t.R:t.Rencoded,this._Sencoded=Array.isArray(t.S)?t.S:t.Sencoded}qg(Hg,"S",(function(){return this.eddsa.decodeInt(this.Sencoded())})),qg(Hg,"R",(function(){return this.eddsa.decodePoint(this.Rencoded())})),qg(Hg,"Rencoded",(function(){return this.eddsa.encodePoint(this.R())})),qg(Hg,"Sencoded",(function(){return this.eddsa.encodeInt(this.S())})),Hg.prototype.toBytes=function(){return this.Rencoded().concat(this.Sencoded())},Hg.prototype.toHex=function(){return Fg.encode(this.toBytes(),"hex").toUpperCase()};var Yg=Hg,Kg=ph,zg=hh,Vg=NA,Jg=Vg.assert,Wg=Vg.parseBytes,Zg=Pg,$g=Yg;function Xg(e){if(Jg("ed25519"===e,"only tested with ed25519 so far"),!(this instanceof Xg))return new Xg(e);e=zg[e].curve,this.curve=e,this.g=e.g,this.g.precompute(e.n.bitLength()+1),this.pointClass=e.point().constructor,this.encodingLength=Math.ceil(e.n.bitLength()/8),this.hash=Kg.sha512}var ey,ty=Xg;function ny(){return ey||(ey=1,function(e){var t=DA;t.version=TA.version,t.utils=NA,t.rand=yd(),t.curve=LA,t.curves=hh,t.ec=function(){if(Sg)return _g;Sg=1;var e=pd,t=yg,n=NA,r=hh,i=yd(),o=n.assert,a=wg,s=Qg;function c(e){if(!(this instanceof c))return new c(e);"string"==typeof e&&(o(Object.prototype.hasOwnProperty.call(r,e),"Unknown curve "+e),e=r[e]),e instanceof r.PresetCurve&&(e={curve:e}),this.curve=e.curve.curve,this.n=this.curve.n,this.nh=this.n.ushrn(1),this.g=this.curve.g,this.g=e.curve.g,this.g.precompute(e.curve.n.bitLength()+1),this.hash=e.hash||e.curve.hash}return _g=c,c.prototype.keyPair=function(e){return new a(this,e)},c.prototype.keyFromPrivate=function(e,t){return a.fromPrivate(this,e,t)},c.prototype.keyFromPublic=function(e,t){return a.fromPublic(this,e,t)},c.prototype.genKeyPair=function(n){n||(n={});for(var r=new t({hash:this.hash,pers:n.pers,persEnc:n.persEnc||"utf8",entropy:n.entropy||i(this.hash.hmacStrength),entropyEnc:n.entropy&&n.entropyEnc||"utf8",nonce:this.n.toArray()}),o=this.n.byteLength(),a=this.n.sub(new e(2));;){var s=new e(r.generate(o));if(!(s.cmp(a)>0))return s.iaddn(1),this.keyFromPrivate(s)}},c.prototype._truncateToN=function(e,t){var n=8*e.byteLength()-this.n.bitLength();return n>0&&(e=e.ushrn(n)),!t&&e.cmp(this.n)>=0?e.sub(this.n):e},c.prototype.sign=function(n,r,i,o){"object"==typeof i&&(o=i,i=null),o||(o={}),r=this.keyFromPrivate(r,i),n=this._truncateToN(new e(n,16));for(var a=this.n.byteLength(),c=r.getPrivate().toArray("be",a),u=n.toArray("be",a),l=new t({hash:this.hash,entropy:c,nonce:u,pers:o.pers,persEnc:o.persEnc||"utf8"}),f=this.n.sub(new e(1)),d=0;;d++){var A=o.k?o.k(d):new e(l.generate(this.n.byteLength()));if(!((A=this._truncateToN(A,!0)).cmpn(1)<=0||A.cmp(f)>=0)){var h=this.g.mul(A);if(!h.isInfinity()){var p=h.getX(),g=p.umod(this.n);if(0!==g.cmpn(0)){var y=A.invm(this.n).mul(g.mul(r.getPrivate()).iadd(n));if(0!==(y=y.umod(this.n)).cmpn(0)){var m=(h.getY().isOdd()?1:0)|(0!==p.cmp(g)?2:0);return o.canonical&&y.cmp(this.nh)>0&&(y=this.n.sub(y),m^=1),new s({r:g,s:y,recoveryParam:m})}}}}}},c.prototype.verify=function(t,n,r,i){t=this._truncateToN(new e(t,16)),r=this.keyFromPublic(r,i);var o=(n=new s(n,"hex")).r,a=n.s;if(o.cmpn(1)<0||o.cmp(this.n)>=0)return!1;if(a.cmpn(1)<0||a.cmp(this.n)>=0)return!1;var c,u=a.invm(this.n),l=u.mul(t).umod(this.n),f=u.mul(o).umod(this.n);return this.curve._maxwellTrick?!(c=this.g.jmulAdd(l,r.getPublic(),f)).isInfinity()&&c.eqXToP(o):!(c=this.g.mulAdd(l,r.getPublic(),f)).isInfinity()&&0===c.getX().umod(this.n).cmp(o)},c.prototype.recoverPubKey=function(t,n,r,i){o((3&r)===r,"The recovery param is more than two bits"),n=new s(n,i);var a=this.n,c=new e(t),u=n.r,l=n.s,f=1&r,d=r>>1;if(u.cmp(this.curve.p.umod(this.curve.n))>=0&&d)throw new Error("Unable to find sencond key candinate");u=d?this.curve.pointFromX(u.add(this.curve.n),f):this.curve.pointFromX(u,f);var A=n.r.invm(a),h=a.sub(c).mul(A).umod(a),p=l.mul(A).umod(a);return this.g.mulAdd(h,u,p)},c.prototype.getKeyRecoveryParam=function(e,t,n,r){if(null!==(t=new s(t,r)).recoveryParam)return t.recoveryParam;for(var i=0;i<4;i++){var o;try{o=this.recoverPubKey(e,t,i)}catch(e){continue}if(o.eq(n))return i}throw new Error("Unable to find valid recovery factor")},_g}(),t.eddsa=ty}()),DA}Xg.prototype.sign=function(e,t){e=Wg(e);var n=this.keyFromSecret(t),r=this.hashInt(n.messagePrefix(),e),i=this.g.mul(r),o=this.encodePoint(i),a=this.hashInt(o,n.pubBytes(),e).mul(n.priv()),s=r.add(a).umod(this.curve.n);return this.makeSignature({R:i,S:s,Rencoded:o})},Xg.prototype.verify=function(e,t,n){e=Wg(e),t=this.makeSignature(t);var r=this.keyFromPublic(n),i=this.hashInt(t.Rencoded(),r.pubBytes(),e),o=this.g.mul(t.S());return t.R().add(r.pub().mul(i)).eq(o)},Xg.prototype.hashInt=function(){for(var e=this.hash(),t=0;t=48&&r<=57?r-48:r>=65&&r<=70?r-55:r>=97&&r<=102?r-87:void n(!1,"Invalid character in "+e)}function s(e,t,n){var r=a(e,n);return n-1>=t&&(r|=a(e,n-1)<<4),r}function c(e,t,r,i){for(var o=0,a=0,s=Math.min(e.length,r),c=t;c=49?u-49+10:u>=17?u-17+10:u,n(u>=0&&a0?e:t},i.min=function(e,t){return e.cmp(t)<0?e:t},i.prototype._init=function(e,t,r){if("number"==typeof e)return this._initNumber(e,t,r);if("object"==typeof e)return this._initArray(e,t,r);"hex"===t&&(t=16),n(t===(0|t)&&t>=2&&t<=36);var i=0;"-"===(e=e.toString().replace(/\s+/g,""))[0]&&(i++,this.negative=1),i=0;i-=3)a=e[i]|e[i-1]<<8|e[i-2]<<16,this.words[o]|=a<>>26-s&67108863,(s+=24)>=26&&(s-=26,o++);else if("le"===r)for(i=0,o=0;i>>26-s&67108863,(s+=24)>=26&&(s-=26,o++);return this._strip()},i.prototype._parseHex=function(e,t,n){this.length=Math.ceil((e.length-t)/6),this.words=new Array(this.length);for(var r=0;r=t;r-=2)i=s(e,t,r)<=18?(o-=18,a+=1,this.words[a]|=i>>>26):o+=8;else for(r=(e.length-t)%2==0?t+1:t;r=18?(o-=18,a+=1,this.words[a]|=i>>>26):o+=8;this._strip()},i.prototype._parseBase=function(e,t,n){this.words=[0],this.length=1;for(var r=0,i=1;i<=67108863;i*=t)r++;r--,i=i/t|0;for(var o=e.length-n,a=o%r,s=Math.min(o,o-a)+n,u=0,l=n;l1&&0===this.words[this.length-1];)this.length--;return this._normSign()},i.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},"undefined"!=typeof Symbol&&"function"==typeof Symbol.for)try{i.prototype[Symbol.for("nodejs.util.inspect.custom")]=l}catch(e){i.prototype.inspect=l}else i.prototype.inspect=l;function l(){return(this.red?""}var f=["","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"],d=[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],A=[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];function h(e,t,n){n.negative=t.negative^e.negative;var r=e.length+t.length|0;n.length=r,r=r-1|0;var i=0|e.words[0],o=0|t.words[0],a=i*o,s=67108863&a,c=a/67108864|0;n.words[0]=s;for(var u=1;u>>26,f=67108863&c,d=Math.min(u,t.length-1),A=Math.max(0,u-e.length+1);A<=d;A++){var h=u-A|0;l+=(a=(i=0|e.words[h])*(o=0|t.words[A])+f)/67108864|0,f=67108863&a}n.words[u]=0|f,c=0|l}return 0!==c?n.words[u]=0|c:n.length--,n._strip()}i.prototype.toString=function(e,t){var r;if(t=0|t||1,16===(e=e||10)||"hex"===e){r="";for(var i=0,o=0,a=0;a>>24-i&16777215,(i+=2)>=26&&(i-=26,a--),r=0!==o||a!==this.length-1?f[6-c.length]+c+r:c+r}for(0!==o&&(r=o.toString(16)+r);r.length%t!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}if(e===(0|e)&&e>=2&&e<=36){var u=d[e],l=A[e];r="";var h=this.clone();for(h.negative=0;!h.isZero();){var p=h.modrn(l).toString(e);r=(h=h.idivn(l)).isZero()?p+r:f[u-p.length]+p+r}for(this.isZero()&&(r="0"+r);r.length%t!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}n(!1,"Base should be between 2 and 36")},i.prototype.toNumber=function(){var e=this.words[0];return 2===this.length?e+=67108864*this.words[1]:3===this.length&&1===this.words[2]?e+=4503599627370496+67108864*this.words[1]:this.length>2&&n(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-e:e},i.prototype.toJSON=function(){return this.toString(16,2)},o&&(i.prototype.toBuffer=function(e,t){return this.toArrayLike(o,e,t)}),i.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)},i.prototype.toArrayLike=function(e,t,r){this._strip();var i=this.byteLength(),o=r||Math.max(1,i);n(i<=o,"byte array longer than desired length"),n(o>0,"Requested array length <= 0");var a=function(e,t){return e.allocUnsafe?e.allocUnsafe(t):new e(t)}(e,o);return this["_toArrayLike"+("le"===t?"LE":"BE")](a,i),a},i.prototype._toArrayLikeLE=function(e,t){for(var n=0,r=0,i=0,o=0;i>8&255),n>16&255),6===o?(n>24&255),r=0,o=0):(r=a>>>24,o+=2)}if(n=0&&(e[n--]=a>>8&255),n>=0&&(e[n--]=a>>16&255),6===o?(n>=0&&(e[n--]=a>>24&255),r=0,o=0):(r=a>>>24,o+=2)}if(n>=0)for(e[n--]=r;n>=0;)e[n--]=0},Math.clz32?i.prototype._countBits=function(e){return 32-Math.clz32(e)}:i.prototype._countBits=function(e){var t=e,n=0;return t>=4096&&(n+=13,t>>>=13),t>=64&&(n+=7,t>>>=7),t>=8&&(n+=4,t>>>=4),t>=2&&(n+=2,t>>>=2),n+t},i.prototype._zeroBits=function(e){if(0===e)return 26;var t=e,n=0;return!(8191&t)&&(n+=13,t>>>=13),!(127&t)&&(n+=7,t>>>=7),!(15&t)&&(n+=4,t>>>=4),!(3&t)&&(n+=2,t>>>=2),!(1&t)&&n++,n},i.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._countBits(e);return 26*(this.length-1)+t},i.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,t=0;te.length?this.clone().ior(e):e.clone().ior(this)},i.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},i.prototype.iuand=function(e){var t;t=this.length>e.length?e:this;for(var n=0;ne.length?this.clone().iand(e):e.clone().iand(this)},i.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},i.prototype.iuxor=function(e){var t,n;this.length>e.length?(t=this,n=e):(t=e,n=this);for(var r=0;re.length?this.clone().ixor(e):e.clone().ixor(this)},i.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},i.prototype.inotn=function(e){n("number"==typeof e&&e>=0);var t=0|Math.ceil(e/26),r=e%26;this._expand(t),r>0&&t--;for(var i=0;i0&&(this.words[i]=~this.words[i]&67108863>>26-r),this._strip()},i.prototype.notn=function(e){return this.clone().inotn(e)},i.prototype.setn=function(e,t){n("number"==typeof e&&e>=0);var r=e/26|0,i=e%26;return this._expand(r+1),this.words[r]=t?this.words[r]|1<e.length?(n=this,r=e):(n=e,r=this);for(var i=0,o=0;o>>26;for(;0!==i&&o>>26;if(this.length=n.length,0!==i)this.words[this.length]=i,this.length++;else if(n!==this)for(;oe.length?this.clone().iadd(e):e.clone().iadd(this)},i.prototype.isub=function(e){if(0!==e.negative){e.negative=0;var t=this.iadd(e);return e.negative=1,t._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(e),this.negative=1,this._normSign();var n,r,i=this.cmp(e);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;i>0?(n=this,r=e):(n=e,r=this);for(var o=0,a=0;a>26,this.words[a]=67108863&t;for(;0!==o&&a>26,this.words[a]=67108863&t;if(0===o&&a>>13,A=0|a[1],h=8191&A,p=A>>>13,g=0|a[2],y=8191&g,m=g>>>13,b=0|a[3],v=8191&b,w=b>>>13,E=0|a[4],I=8191&E,B=E>>>13,C=0|a[5],_=8191&C,S=C>>>13,Q=0|a[6],k=8191&Q,M=Q>>>13,x=0|a[7],R=8191&x,D=x>>>13,T=0|a[8],N=8191&T,O=T>>>13,L=0|a[9],P=8191&L,U=L>>>13,F=0|s[0],j=8191&F,q=F>>>13,G=0|s[1],H=8191&G,Y=G>>>13,K=0|s[2],z=8191&K,V=K>>>13,J=0|s[3],W=8191&J,Z=J>>>13,$=0|s[4],X=8191&$,ee=$>>>13,te=0|s[5],ne=8191&te,re=te>>>13,ie=0|s[6],oe=8191&ie,ae=ie>>>13,se=0|s[7],ce=8191&se,ue=se>>>13,le=0|s[8],fe=8191&le,de=le>>>13,Ae=0|s[9],he=8191&Ae,pe=Ae>>>13;n.negative=e.negative^t.negative,n.length=19;var ge=(u+(r=Math.imul(f,j))|0)+((8191&(i=(i=Math.imul(f,q))+Math.imul(d,j)|0))<<13)|0;u=((o=Math.imul(d,q))+(i>>>13)|0)+(ge>>>26)|0,ge&=67108863,r=Math.imul(h,j),i=(i=Math.imul(h,q))+Math.imul(p,j)|0,o=Math.imul(p,q);var ye=(u+(r=r+Math.imul(f,H)|0)|0)+((8191&(i=(i=i+Math.imul(f,Y)|0)+Math.imul(d,H)|0))<<13)|0;u=((o=o+Math.imul(d,Y)|0)+(i>>>13)|0)+(ye>>>26)|0,ye&=67108863,r=Math.imul(y,j),i=(i=Math.imul(y,q))+Math.imul(m,j)|0,o=Math.imul(m,q),r=r+Math.imul(h,H)|0,i=(i=i+Math.imul(h,Y)|0)+Math.imul(p,H)|0,o=o+Math.imul(p,Y)|0;var me=(u+(r=r+Math.imul(f,z)|0)|0)+((8191&(i=(i=i+Math.imul(f,V)|0)+Math.imul(d,z)|0))<<13)|0;u=((o=o+Math.imul(d,V)|0)+(i>>>13)|0)+(me>>>26)|0,me&=67108863,r=Math.imul(v,j),i=(i=Math.imul(v,q))+Math.imul(w,j)|0,o=Math.imul(w,q),r=r+Math.imul(y,H)|0,i=(i=i+Math.imul(y,Y)|0)+Math.imul(m,H)|0,o=o+Math.imul(m,Y)|0,r=r+Math.imul(h,z)|0,i=(i=i+Math.imul(h,V)|0)+Math.imul(p,z)|0,o=o+Math.imul(p,V)|0;var be=(u+(r=r+Math.imul(f,W)|0)|0)+((8191&(i=(i=i+Math.imul(f,Z)|0)+Math.imul(d,W)|0))<<13)|0;u=((o=o+Math.imul(d,Z)|0)+(i>>>13)|0)+(be>>>26)|0,be&=67108863,r=Math.imul(I,j),i=(i=Math.imul(I,q))+Math.imul(B,j)|0,o=Math.imul(B,q),r=r+Math.imul(v,H)|0,i=(i=i+Math.imul(v,Y)|0)+Math.imul(w,H)|0,o=o+Math.imul(w,Y)|0,r=r+Math.imul(y,z)|0,i=(i=i+Math.imul(y,V)|0)+Math.imul(m,z)|0,o=o+Math.imul(m,V)|0,r=r+Math.imul(h,W)|0,i=(i=i+Math.imul(h,Z)|0)+Math.imul(p,W)|0,o=o+Math.imul(p,Z)|0;var ve=(u+(r=r+Math.imul(f,X)|0)|0)+((8191&(i=(i=i+Math.imul(f,ee)|0)+Math.imul(d,X)|0))<<13)|0;u=((o=o+Math.imul(d,ee)|0)+(i>>>13)|0)+(ve>>>26)|0,ve&=67108863,r=Math.imul(_,j),i=(i=Math.imul(_,q))+Math.imul(S,j)|0,o=Math.imul(S,q),r=r+Math.imul(I,H)|0,i=(i=i+Math.imul(I,Y)|0)+Math.imul(B,H)|0,o=o+Math.imul(B,Y)|0,r=r+Math.imul(v,z)|0,i=(i=i+Math.imul(v,V)|0)+Math.imul(w,z)|0,o=o+Math.imul(w,V)|0,r=r+Math.imul(y,W)|0,i=(i=i+Math.imul(y,Z)|0)+Math.imul(m,W)|0,o=o+Math.imul(m,Z)|0,r=r+Math.imul(h,X)|0,i=(i=i+Math.imul(h,ee)|0)+Math.imul(p,X)|0,o=o+Math.imul(p,ee)|0;var we=(u+(r=r+Math.imul(f,ne)|0)|0)+((8191&(i=(i=i+Math.imul(f,re)|0)+Math.imul(d,ne)|0))<<13)|0;u=((o=o+Math.imul(d,re)|0)+(i>>>13)|0)+(we>>>26)|0,we&=67108863,r=Math.imul(k,j),i=(i=Math.imul(k,q))+Math.imul(M,j)|0,o=Math.imul(M,q),r=r+Math.imul(_,H)|0,i=(i=i+Math.imul(_,Y)|0)+Math.imul(S,H)|0,o=o+Math.imul(S,Y)|0,r=r+Math.imul(I,z)|0,i=(i=i+Math.imul(I,V)|0)+Math.imul(B,z)|0,o=o+Math.imul(B,V)|0,r=r+Math.imul(v,W)|0,i=(i=i+Math.imul(v,Z)|0)+Math.imul(w,W)|0,o=o+Math.imul(w,Z)|0,r=r+Math.imul(y,X)|0,i=(i=i+Math.imul(y,ee)|0)+Math.imul(m,X)|0,o=o+Math.imul(m,ee)|0,r=r+Math.imul(h,ne)|0,i=(i=i+Math.imul(h,re)|0)+Math.imul(p,ne)|0,o=o+Math.imul(p,re)|0;var Ee=(u+(r=r+Math.imul(f,oe)|0)|0)+((8191&(i=(i=i+Math.imul(f,ae)|0)+Math.imul(d,oe)|0))<<13)|0;u=((o=o+Math.imul(d,ae)|0)+(i>>>13)|0)+(Ee>>>26)|0,Ee&=67108863,r=Math.imul(R,j),i=(i=Math.imul(R,q))+Math.imul(D,j)|0,o=Math.imul(D,q),r=r+Math.imul(k,H)|0,i=(i=i+Math.imul(k,Y)|0)+Math.imul(M,H)|0,o=o+Math.imul(M,Y)|0,r=r+Math.imul(_,z)|0,i=(i=i+Math.imul(_,V)|0)+Math.imul(S,z)|0,o=o+Math.imul(S,V)|0,r=r+Math.imul(I,W)|0,i=(i=i+Math.imul(I,Z)|0)+Math.imul(B,W)|0,o=o+Math.imul(B,Z)|0,r=r+Math.imul(v,X)|0,i=(i=i+Math.imul(v,ee)|0)+Math.imul(w,X)|0,o=o+Math.imul(w,ee)|0,r=r+Math.imul(y,ne)|0,i=(i=i+Math.imul(y,re)|0)+Math.imul(m,ne)|0,o=o+Math.imul(m,re)|0,r=r+Math.imul(h,oe)|0,i=(i=i+Math.imul(h,ae)|0)+Math.imul(p,oe)|0,o=o+Math.imul(p,ae)|0;var Ie=(u+(r=r+Math.imul(f,ce)|0)|0)+((8191&(i=(i=i+Math.imul(f,ue)|0)+Math.imul(d,ce)|0))<<13)|0;u=((o=o+Math.imul(d,ue)|0)+(i>>>13)|0)+(Ie>>>26)|0,Ie&=67108863,r=Math.imul(N,j),i=(i=Math.imul(N,q))+Math.imul(O,j)|0,o=Math.imul(O,q),r=r+Math.imul(R,H)|0,i=(i=i+Math.imul(R,Y)|0)+Math.imul(D,H)|0,o=o+Math.imul(D,Y)|0,r=r+Math.imul(k,z)|0,i=(i=i+Math.imul(k,V)|0)+Math.imul(M,z)|0,o=o+Math.imul(M,V)|0,r=r+Math.imul(_,W)|0,i=(i=i+Math.imul(_,Z)|0)+Math.imul(S,W)|0,o=o+Math.imul(S,Z)|0,r=r+Math.imul(I,X)|0,i=(i=i+Math.imul(I,ee)|0)+Math.imul(B,X)|0,o=o+Math.imul(B,ee)|0,r=r+Math.imul(v,ne)|0,i=(i=i+Math.imul(v,re)|0)+Math.imul(w,ne)|0,o=o+Math.imul(w,re)|0,r=r+Math.imul(y,oe)|0,i=(i=i+Math.imul(y,ae)|0)+Math.imul(m,oe)|0,o=o+Math.imul(m,ae)|0,r=r+Math.imul(h,ce)|0,i=(i=i+Math.imul(h,ue)|0)+Math.imul(p,ce)|0,o=o+Math.imul(p,ue)|0;var Be=(u+(r=r+Math.imul(f,fe)|0)|0)+((8191&(i=(i=i+Math.imul(f,de)|0)+Math.imul(d,fe)|0))<<13)|0;u=((o=o+Math.imul(d,de)|0)+(i>>>13)|0)+(Be>>>26)|0,Be&=67108863,r=Math.imul(P,j),i=(i=Math.imul(P,q))+Math.imul(U,j)|0,o=Math.imul(U,q),r=r+Math.imul(N,H)|0,i=(i=i+Math.imul(N,Y)|0)+Math.imul(O,H)|0,o=o+Math.imul(O,Y)|0,r=r+Math.imul(R,z)|0,i=(i=i+Math.imul(R,V)|0)+Math.imul(D,z)|0,o=o+Math.imul(D,V)|0,r=r+Math.imul(k,W)|0,i=(i=i+Math.imul(k,Z)|0)+Math.imul(M,W)|0,o=o+Math.imul(M,Z)|0,r=r+Math.imul(_,X)|0,i=(i=i+Math.imul(_,ee)|0)+Math.imul(S,X)|0,o=o+Math.imul(S,ee)|0,r=r+Math.imul(I,ne)|0,i=(i=i+Math.imul(I,re)|0)+Math.imul(B,ne)|0,o=o+Math.imul(B,re)|0,r=r+Math.imul(v,oe)|0,i=(i=i+Math.imul(v,ae)|0)+Math.imul(w,oe)|0,o=o+Math.imul(w,ae)|0,r=r+Math.imul(y,ce)|0,i=(i=i+Math.imul(y,ue)|0)+Math.imul(m,ce)|0,o=o+Math.imul(m,ue)|0,r=r+Math.imul(h,fe)|0,i=(i=i+Math.imul(h,de)|0)+Math.imul(p,fe)|0,o=o+Math.imul(p,de)|0;var Ce=(u+(r=r+Math.imul(f,he)|0)|0)+((8191&(i=(i=i+Math.imul(f,pe)|0)+Math.imul(d,he)|0))<<13)|0;u=((o=o+Math.imul(d,pe)|0)+(i>>>13)|0)+(Ce>>>26)|0,Ce&=67108863,r=Math.imul(P,H),i=(i=Math.imul(P,Y))+Math.imul(U,H)|0,o=Math.imul(U,Y),r=r+Math.imul(N,z)|0,i=(i=i+Math.imul(N,V)|0)+Math.imul(O,z)|0,o=o+Math.imul(O,V)|0,r=r+Math.imul(R,W)|0,i=(i=i+Math.imul(R,Z)|0)+Math.imul(D,W)|0,o=o+Math.imul(D,Z)|0,r=r+Math.imul(k,X)|0,i=(i=i+Math.imul(k,ee)|0)+Math.imul(M,X)|0,o=o+Math.imul(M,ee)|0,r=r+Math.imul(_,ne)|0,i=(i=i+Math.imul(_,re)|0)+Math.imul(S,ne)|0,o=o+Math.imul(S,re)|0,r=r+Math.imul(I,oe)|0,i=(i=i+Math.imul(I,ae)|0)+Math.imul(B,oe)|0,o=o+Math.imul(B,ae)|0,r=r+Math.imul(v,ce)|0,i=(i=i+Math.imul(v,ue)|0)+Math.imul(w,ce)|0,o=o+Math.imul(w,ue)|0,r=r+Math.imul(y,fe)|0,i=(i=i+Math.imul(y,de)|0)+Math.imul(m,fe)|0,o=o+Math.imul(m,de)|0;var _e=(u+(r=r+Math.imul(h,he)|0)|0)+((8191&(i=(i=i+Math.imul(h,pe)|0)+Math.imul(p,he)|0))<<13)|0;u=((o=o+Math.imul(p,pe)|0)+(i>>>13)|0)+(_e>>>26)|0,_e&=67108863,r=Math.imul(P,z),i=(i=Math.imul(P,V))+Math.imul(U,z)|0,o=Math.imul(U,V),r=r+Math.imul(N,W)|0,i=(i=i+Math.imul(N,Z)|0)+Math.imul(O,W)|0,o=o+Math.imul(O,Z)|0,r=r+Math.imul(R,X)|0,i=(i=i+Math.imul(R,ee)|0)+Math.imul(D,X)|0,o=o+Math.imul(D,ee)|0,r=r+Math.imul(k,ne)|0,i=(i=i+Math.imul(k,re)|0)+Math.imul(M,ne)|0,o=o+Math.imul(M,re)|0,r=r+Math.imul(_,oe)|0,i=(i=i+Math.imul(_,ae)|0)+Math.imul(S,oe)|0,o=o+Math.imul(S,ae)|0,r=r+Math.imul(I,ce)|0,i=(i=i+Math.imul(I,ue)|0)+Math.imul(B,ce)|0,o=o+Math.imul(B,ue)|0,r=r+Math.imul(v,fe)|0,i=(i=i+Math.imul(v,de)|0)+Math.imul(w,fe)|0,o=o+Math.imul(w,de)|0;var Se=(u+(r=r+Math.imul(y,he)|0)|0)+((8191&(i=(i=i+Math.imul(y,pe)|0)+Math.imul(m,he)|0))<<13)|0;u=((o=o+Math.imul(m,pe)|0)+(i>>>13)|0)+(Se>>>26)|0,Se&=67108863,r=Math.imul(P,W),i=(i=Math.imul(P,Z))+Math.imul(U,W)|0,o=Math.imul(U,Z),r=r+Math.imul(N,X)|0,i=(i=i+Math.imul(N,ee)|0)+Math.imul(O,X)|0,o=o+Math.imul(O,ee)|0,r=r+Math.imul(R,ne)|0,i=(i=i+Math.imul(R,re)|0)+Math.imul(D,ne)|0,o=o+Math.imul(D,re)|0,r=r+Math.imul(k,oe)|0,i=(i=i+Math.imul(k,ae)|0)+Math.imul(M,oe)|0,o=o+Math.imul(M,ae)|0,r=r+Math.imul(_,ce)|0,i=(i=i+Math.imul(_,ue)|0)+Math.imul(S,ce)|0,o=o+Math.imul(S,ue)|0,r=r+Math.imul(I,fe)|0,i=(i=i+Math.imul(I,de)|0)+Math.imul(B,fe)|0,o=o+Math.imul(B,de)|0;var Qe=(u+(r=r+Math.imul(v,he)|0)|0)+((8191&(i=(i=i+Math.imul(v,pe)|0)+Math.imul(w,he)|0))<<13)|0;u=((o=o+Math.imul(w,pe)|0)+(i>>>13)|0)+(Qe>>>26)|0,Qe&=67108863,r=Math.imul(P,X),i=(i=Math.imul(P,ee))+Math.imul(U,X)|0,o=Math.imul(U,ee),r=r+Math.imul(N,ne)|0,i=(i=i+Math.imul(N,re)|0)+Math.imul(O,ne)|0,o=o+Math.imul(O,re)|0,r=r+Math.imul(R,oe)|0,i=(i=i+Math.imul(R,ae)|0)+Math.imul(D,oe)|0,o=o+Math.imul(D,ae)|0,r=r+Math.imul(k,ce)|0,i=(i=i+Math.imul(k,ue)|0)+Math.imul(M,ce)|0,o=o+Math.imul(M,ue)|0,r=r+Math.imul(_,fe)|0,i=(i=i+Math.imul(_,de)|0)+Math.imul(S,fe)|0,o=o+Math.imul(S,de)|0;var ke=(u+(r=r+Math.imul(I,he)|0)|0)+((8191&(i=(i=i+Math.imul(I,pe)|0)+Math.imul(B,he)|0))<<13)|0;u=((o=o+Math.imul(B,pe)|0)+(i>>>13)|0)+(ke>>>26)|0,ke&=67108863,r=Math.imul(P,ne),i=(i=Math.imul(P,re))+Math.imul(U,ne)|0,o=Math.imul(U,re),r=r+Math.imul(N,oe)|0,i=(i=i+Math.imul(N,ae)|0)+Math.imul(O,oe)|0,o=o+Math.imul(O,ae)|0,r=r+Math.imul(R,ce)|0,i=(i=i+Math.imul(R,ue)|0)+Math.imul(D,ce)|0,o=o+Math.imul(D,ue)|0,r=r+Math.imul(k,fe)|0,i=(i=i+Math.imul(k,de)|0)+Math.imul(M,fe)|0,o=o+Math.imul(M,de)|0;var Me=(u+(r=r+Math.imul(_,he)|0)|0)+((8191&(i=(i=i+Math.imul(_,pe)|0)+Math.imul(S,he)|0))<<13)|0;u=((o=o+Math.imul(S,pe)|0)+(i>>>13)|0)+(Me>>>26)|0,Me&=67108863,r=Math.imul(P,oe),i=(i=Math.imul(P,ae))+Math.imul(U,oe)|0,o=Math.imul(U,ae),r=r+Math.imul(N,ce)|0,i=(i=i+Math.imul(N,ue)|0)+Math.imul(O,ce)|0,o=o+Math.imul(O,ue)|0,r=r+Math.imul(R,fe)|0,i=(i=i+Math.imul(R,de)|0)+Math.imul(D,fe)|0,o=o+Math.imul(D,de)|0;var xe=(u+(r=r+Math.imul(k,he)|0)|0)+((8191&(i=(i=i+Math.imul(k,pe)|0)+Math.imul(M,he)|0))<<13)|0;u=((o=o+Math.imul(M,pe)|0)+(i>>>13)|0)+(xe>>>26)|0,xe&=67108863,r=Math.imul(P,ce),i=(i=Math.imul(P,ue))+Math.imul(U,ce)|0,o=Math.imul(U,ue),r=r+Math.imul(N,fe)|0,i=(i=i+Math.imul(N,de)|0)+Math.imul(O,fe)|0,o=o+Math.imul(O,de)|0;var Re=(u+(r=r+Math.imul(R,he)|0)|0)+((8191&(i=(i=i+Math.imul(R,pe)|0)+Math.imul(D,he)|0))<<13)|0;u=((o=o+Math.imul(D,pe)|0)+(i>>>13)|0)+(Re>>>26)|0,Re&=67108863,r=Math.imul(P,fe),i=(i=Math.imul(P,de))+Math.imul(U,fe)|0,o=Math.imul(U,de);var De=(u+(r=r+Math.imul(N,he)|0)|0)+((8191&(i=(i=i+Math.imul(N,pe)|0)+Math.imul(O,he)|0))<<13)|0;u=((o=o+Math.imul(O,pe)|0)+(i>>>13)|0)+(De>>>26)|0,De&=67108863;var Te=(u+(r=Math.imul(P,he))|0)+((8191&(i=(i=Math.imul(P,pe))+Math.imul(U,he)|0))<<13)|0;return u=((o=Math.imul(U,pe))+(i>>>13)|0)+(Te>>>26)|0,Te&=67108863,c[0]=ge,c[1]=ye,c[2]=me,c[3]=be,c[4]=ve,c[5]=we,c[6]=Ee,c[7]=Ie,c[8]=Be,c[9]=Ce,c[10]=_e,c[11]=Se,c[12]=Qe,c[13]=ke,c[14]=Me,c[15]=xe,c[16]=Re,c[17]=De,c[18]=Te,0!==u&&(c[19]=u,n.length++),n};function g(e,t,n){n.negative=t.negative^e.negative,n.length=e.length+t.length;for(var r=0,i=0,o=0;o>>26)|0)>>>26,a&=67108863}n.words[o]=s,r=a,a=i}return 0!==r?n.words[o]=r:n.length--,n._strip()}function y(e,t,n){return g(e,t,n)}Math.imul||(p=h),i.prototype.mulTo=function(e,t){var n=this.length+e.length;return 10===this.length&&10===e.length?p(this,e,t):n<63?h(this,e,t):n<1024?g(this,e,t):y(this,e,t)},i.prototype.mul=function(e){var t=new i(null);return t.words=new Array(this.length+e.length),this.mulTo(e,t)},i.prototype.mulf=function(e){var t=new i(null);return t.words=new Array(this.length+e.length),y(this,e,t)},i.prototype.imul=function(e){return this.clone().mulTo(e,this)},i.prototype.imuln=function(e){var t=e<0;t&&(e=-e),n("number"==typeof e),n(e<67108864);for(var r=0,i=0;i>=26,r+=o/67108864|0,r+=a>>>26,this.words[i]=67108863&a}return 0!==r&&(this.words[i]=r,this.length++),t?this.ineg():this},i.prototype.muln=function(e){return this.clone().imuln(e)},i.prototype.sqr=function(){return this.mul(this)},i.prototype.isqr=function(){return this.imul(this.clone())},i.prototype.pow=function(e){var t=function(e){for(var t=new Array(e.bitLength()),n=0;n>>i&1}return t}(e);if(0===t.length)return new i(1);for(var n=this,r=0;r=0);var t,r=e%26,i=(e-r)/26,o=67108863>>>26-r<<26-r;if(0!==r){var a=0;for(t=0;t>>26-r}a&&(this.words[t]=a,this.length++)}if(0!==i){for(t=this.length-1;t>=0;t--)this.words[t+i]=this.words[t];for(t=0;t=0),i=t?(t-t%26)/26:0;var o=e%26,a=Math.min((e-o)/26,this.length),s=67108863^67108863>>>o<a)for(this.length-=a,u=0;u=0&&(0!==l||u>=i);u--){var f=0|this.words[u];this.words[u]=l<<26-o|f>>>o,l=f&s}return c&&0!==l&&(c.words[c.length++]=l),0===this.length&&(this.words[0]=0,this.length=1),this._strip()},i.prototype.ishrn=function(e,t,r){return n(0===this.negative),this.iushrn(e,t,r)},i.prototype.shln=function(e){return this.clone().ishln(e)},i.prototype.ushln=function(e){return this.clone().iushln(e)},i.prototype.shrn=function(e){return this.clone().ishrn(e)},i.prototype.ushrn=function(e){return this.clone().iushrn(e)},i.prototype.testn=function(e){n("number"==typeof e&&e>=0);var t=e%26,r=(e-t)/26,i=1<=0);var t=e%26,r=(e-t)/26;if(n(0===this.negative,"imaskn works only with positive numbers"),this.length<=r)return this;if(0!==t&&r++,this.length=Math.min(r,this.length),0!==t){var i=67108863^67108863>>>t<=67108864;t++)this.words[t]-=67108864,t===this.length-1?this.words[t+1]=1:this.words[t+1]++;return this.length=Math.max(this.length,t+1),this},i.prototype.isubn=function(e){if(n("number"==typeof e),n(e<67108864),e<0)return this.iaddn(-e);if(0!==this.negative)return this.negative=0,this.iaddn(e),this.negative=1,this;if(this.words[0]-=e,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var t=0;t>26)-(c/67108864|0),this.words[i+r]=67108863&o}for(;i>26,this.words[i+r]=67108863&o;if(0===s)return this._strip();for(n(-1===s),s=0,i=0;i>26,this.words[i]=67108863&o;return this.negative=1,this._strip()},i.prototype._wordDiv=function(e,t){var n=(this.length,e.length),r=this.clone(),o=e,a=0|o.words[o.length-1];0!=(n=26-this._countBits(a))&&(o=o.ushln(n),r.iushln(n),a=0|o.words[o.length-1]);var s,c=r.length-o.length;if("mod"!==t){(s=new i(null)).length=c+1,s.words=new Array(s.length);for(var u=0;u=0;f--){var d=67108864*(0|r.words[o.length+f])+(0|r.words[o.length+f-1]);for(d=Math.min(d/a|0,67108863),r._ishlnsubmul(o,d,f);0!==r.negative;)d--,r.negative=0,r._ishlnsubmul(o,1,f),r.isZero()||(r.negative^=1);s&&(s.words[f]=d)}return s&&s._strip(),r._strip(),"div"!==t&&0!==n&&r.iushrn(n),{div:s||null,mod:r}},i.prototype.divmod=function(e,t,r){return n(!e.isZero()),this.isZero()?{div:new i(0),mod:new i(0)}:0!==this.negative&&0===e.negative?(s=this.neg().divmod(e,t),"mod"!==t&&(o=s.div.neg()),"div"!==t&&(a=s.mod.neg(),r&&0!==a.negative&&a.iadd(e)),{div:o,mod:a}):0===this.negative&&0!==e.negative?(s=this.divmod(e.neg(),t),"mod"!==t&&(o=s.div.neg()),{div:o,mod:s.mod}):this.negative&e.negative?(s=this.neg().divmod(e.neg(),t),"div"!==t&&(a=s.mod.neg(),r&&0!==a.negative&&a.isub(e)),{div:s.div,mod:a}):e.length>this.length||this.cmp(e)<0?{div:new i(0),mod:this}:1===e.length?"div"===t?{div:this.divn(e.words[0]),mod:null}:"mod"===t?{div:null,mod:new i(this.modrn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new i(this.modrn(e.words[0]))}:this._wordDiv(e,t);var o,a,s},i.prototype.div=function(e){return this.divmod(e,"div",!1).div},i.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},i.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},i.prototype.divRound=function(e){var t=this.divmod(e);if(t.mod.isZero())return t.div;var n=0!==t.div.negative?t.mod.isub(e):t.mod,r=e.ushrn(1),i=e.andln(1),o=n.cmp(r);return o<0||1===i&&0===o?t.div:0!==t.div.negative?t.div.isubn(1):t.div.iaddn(1)},i.prototype.modrn=function(e){var t=e<0;t&&(e=-e),n(e<=67108863);for(var r=(1<<26)%e,i=0,o=this.length-1;o>=0;o--)i=(r*i+(0|this.words[o]))%e;return t?-i:i},i.prototype.modn=function(e){return this.modrn(e)},i.prototype.idivn=function(e){var t=e<0;t&&(e=-e),n(e<=67108863);for(var r=0,i=this.length-1;i>=0;i--){var o=(0|this.words[i])+67108864*r;this.words[i]=o/e|0,r=o%e}return this._strip(),t?this.ineg():this},i.prototype.divn=function(e){return this.clone().idivn(e)},i.prototype.egcd=function(e){n(0===e.negative),n(!e.isZero());var t=this,r=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var o=new i(1),a=new i(0),s=new i(0),c=new i(1),u=0;t.isEven()&&r.isEven();)t.iushrn(1),r.iushrn(1),++u;for(var l=r.clone(),f=t.clone();!t.isZero();){for(var d=0,A=1;!(t.words[0]&A)&&d<26;++d,A<<=1);if(d>0)for(t.iushrn(d);d-- >0;)(o.isOdd()||a.isOdd())&&(o.iadd(l),a.isub(f)),o.iushrn(1),a.iushrn(1);for(var h=0,p=1;!(r.words[0]&p)&&h<26;++h,p<<=1);if(h>0)for(r.iushrn(h);h-- >0;)(s.isOdd()||c.isOdd())&&(s.iadd(l),c.isub(f)),s.iushrn(1),c.iushrn(1);t.cmp(r)>=0?(t.isub(r),o.isub(s),a.isub(c)):(r.isub(t),s.isub(o),c.isub(a))}return{a:s,b:c,gcd:r.iushln(u)}},i.prototype._invmp=function(e){n(0===e.negative),n(!e.isZero());var t=this,r=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var o,a=new i(1),s=new i(0),c=r.clone();t.cmpn(1)>0&&r.cmpn(1)>0;){for(var u=0,l=1;!(t.words[0]&l)&&u<26;++u,l<<=1);if(u>0)for(t.iushrn(u);u-- >0;)a.isOdd()&&a.iadd(c),a.iushrn(1);for(var f=0,d=1;!(r.words[0]&d)&&f<26;++f,d<<=1);if(f>0)for(r.iushrn(f);f-- >0;)s.isOdd()&&s.iadd(c),s.iushrn(1);t.cmp(r)>=0?(t.isub(r),a.isub(s)):(r.isub(t),s.isub(a))}return(o=0===t.cmpn(1)?a:s).cmpn(0)<0&&o.iadd(e),o},i.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var t=this.clone(),n=e.clone();t.negative=0,n.negative=0;for(var r=0;t.isEven()&&n.isEven();r++)t.iushrn(1),n.iushrn(1);for(;;){for(;t.isEven();)t.iushrn(1);for(;n.isEven();)n.iushrn(1);var i=t.cmp(n);if(i<0){var o=t;t=n,n=o}else if(0===i||0===n.cmpn(1))break;t.isub(n)}return n.iushln(r)},i.prototype.invm=function(e){return this.egcd(e).a.umod(e)},i.prototype.isEven=function(){return!(1&this.words[0])},i.prototype.isOdd=function(){return!(1&~this.words[0])},i.prototype.andln=function(e){return this.words[0]&e},i.prototype.bincn=function(e){n("number"==typeof e);var t=e%26,r=(e-t)/26,i=1<>>26,s&=67108863,this.words[a]=s}return 0!==o&&(this.words[a]=o,this.length++),this},i.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},i.prototype.cmpn=function(e){var t,r=e<0;if(0!==this.negative&&!r)return-1;if(0===this.negative&&r)return 1;if(this._strip(),this.length>1)t=1;else{r&&(e=-e),n(e<=67108863,"Number is too big");var i=0|this.words[0];t=i===e?0:ie.length)return 1;if(this.length=0;n--){var r=0|this.words[n],i=0|e.words[n];if(r!==i){ri&&(t=1);break}}return t},i.prototype.gtn=function(e){return 1===this.cmpn(e)},i.prototype.gt=function(e){return 1===this.cmp(e)},i.prototype.gten=function(e){return this.cmpn(e)>=0},i.prototype.gte=function(e){return this.cmp(e)>=0},i.prototype.ltn=function(e){return-1===this.cmpn(e)},i.prototype.lt=function(e){return-1===this.cmp(e)},i.prototype.lten=function(e){return this.cmpn(e)<=0},i.prototype.lte=function(e){return this.cmp(e)<=0},i.prototype.eqn=function(e){return 0===this.cmpn(e)},i.prototype.eq=function(e){return 0===this.cmp(e)},i.red=function(e){return new B(e)},i.prototype.toRed=function(e){return n(!this.red,"Already a number in reduction context"),n(0===this.negative,"red works only with positives"),e.convertTo(this)._forceRed(e)},i.prototype.fromRed=function(){return n(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},i.prototype._forceRed=function(e){return this.red=e,this},i.prototype.forceRed=function(e){return n(!this.red,"Already a number in reduction context"),this._forceRed(e)},i.prototype.redAdd=function(e){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},i.prototype.redIAdd=function(e){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},i.prototype.redSub=function(e){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},i.prototype.redISub=function(e){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},i.prototype.redShl=function(e){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},i.prototype.redMul=function(e){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},i.prototype.redIMul=function(e){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},i.prototype.redSqr=function(){return n(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},i.prototype.redISqr=function(){return n(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},i.prototype.redSqrt=function(){return n(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},i.prototype.redInvm=function(){return n(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},i.prototype.redNeg=function(){return n(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},i.prototype.redPow=function(e){return n(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var m={k256:null,p224:null,p192:null,p25519:null};function b(e,t){this.name=e,this.p=new i(t,16),this.n=this.p.bitLength(),this.k=new i(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function v(){b.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function w(){b.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function E(){b.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function I(){b.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function B(e){if("string"==typeof e){var t=i._prime(e);this.m=t.p,this.prime=t}else n(e.gtn(1),"modulus must be greater than 1"),this.m=e,this.prime=null}function C(e){B.call(this,e),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)}b.prototype._tmp=function(){var e=new i(null);return e.words=new Array(Math.ceil(this.n/13)),e},b.prototype.ireduce=function(e){var t,n=e;do{this.split(n,this.tmp),t=(n=(n=this.imulK(n)).iadd(this.tmp)).bitLength()}while(t>this.n);var r=t0?n.isub(this.p):void 0!==n.strip?n.strip():n._strip(),n},b.prototype.split=function(e,t){e.iushrn(this.n,0,t)},b.prototype.imulK=function(e){return e.imul(this.k)},r(v,b),v.prototype.split=function(e,t){for(var n=4194303,r=Math.min(e.length,9),i=0;i>>22,o=a}o>>>=22,e.words[i-10]=o,0===o&&e.length>10?e.length-=10:e.length-=9},v.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var t=0,n=0;n>>=26,e.words[n]=i,t=r}return 0!==t&&(e.words[e.length++]=t),e},i._prime=function(e){if(m[e])return m[e];var t;if("k256"===e)t=new v;else if("p224"===e)t=new w;else if("p192"===e)t=new E;else{if("p25519"!==e)throw new Error("Unknown prime "+e);t=new I}return m[e]=t,t},B.prototype._verify1=function(e){n(0===e.negative,"red works only with positives"),n(e.red,"red works only with red numbers")},B.prototype._verify2=function(e,t){n(!(e.negative|t.negative),"red works only with positives"),n(e.red&&e.red===t.red,"red works only with red numbers")},B.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):(u(e,e.umod(this.m)._forceRed(this)),e)},B.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},B.prototype.add=function(e,t){this._verify2(e,t);var n=e.add(t);return n.cmp(this.m)>=0&&n.isub(this.m),n._forceRed(this)},B.prototype.iadd=function(e,t){this._verify2(e,t);var n=e.iadd(t);return n.cmp(this.m)>=0&&n.isub(this.m),n},B.prototype.sub=function(e,t){this._verify2(e,t);var n=e.sub(t);return n.cmpn(0)<0&&n.iadd(this.m),n._forceRed(this)},B.prototype.isub=function(e,t){this._verify2(e,t);var n=e.isub(t);return n.cmpn(0)<0&&n.iadd(this.m),n},B.prototype.shl=function(e,t){return this._verify1(e),this.imod(e.ushln(t))},B.prototype.imul=function(e,t){return this._verify2(e,t),this.imod(e.imul(t))},B.prototype.mul=function(e,t){return this._verify2(e,t),this.imod(e.mul(t))},B.prototype.isqr=function(e){return this.imul(e,e.clone())},B.prototype.sqr=function(e){return this.mul(e,e)},B.prototype.sqrt=function(e){if(e.isZero())return e.clone();var t=this.m.andln(3);if(n(t%2==1),3===t){var r=this.m.add(new i(1)).iushrn(2);return this.pow(e,r)}for(var o=this.m.subn(1),a=0;!o.isZero()&&0===o.andln(1);)a++,o.iushrn(1);n(!o.isZero());var s=new i(1).toRed(this),c=s.redNeg(),u=this.m.subn(1).iushrn(1),l=this.m.bitLength();for(l=new i(2*l*l).toRed(this);0!==this.pow(l,u).cmp(c);)l.redIAdd(c);for(var f=this.pow(l,o),d=this.pow(e,o.addn(1).iushrn(1)),A=this.pow(e,o),h=a;0!==A.cmp(s);){for(var p=A,g=0;0!==p.cmp(s);g++)p=p.redSqr();n(g=0;r--){for(var u=t.words[r],l=c-1;l>=0;l--){var f=u>>l&1;o!==n[0]&&(o=this.sqr(o)),0!==f||0!==a?(a<<=1,a|=f,(4==++s||0===r&&0===l)&&(o=this.mul(o,n[a]),s=0,a=0)):s=0}c=26}return o},B.prototype.convertTo=function(e){var t=e.umod(this.m);return t===e?t.clone():t},B.prototype.convertFrom=function(e){var t=e.clone();return t.red=null,t},i.mont=function(e){return new C(e)},r(C,B),C.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},C.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},C.prototype.imul=function(e,t){if(e.isZero()||t.isZero())return e.words[0]=0,e.length=1,e;var n=e.imul(t),r=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=n.isub(r).iushrn(this.shift),o=i;return i.cmp(this.m)>=0?o=i.isub(this.m):i.cmpn(0)<0&&(o=i.iadd(this.m)),o._forceRed(this)},C.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new i(0)._forceRed(this);var n=e.mul(t),r=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),o=n.isub(r).iushrn(this.shift),a=o;return o.cmp(this.m)>=0?a=o.isub(this.m):o.cmpn(0)<0&&(a=o.iadd(this.m)),a._forceRed(this)},C.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}}(ry,dr);var iy,oy=ry.exports,ay={},sy={},cy={},uy={},ly=yr,fy=ly.Buffer,dy={};for(iy in ly)ly.hasOwnProperty(iy)&&"SlowBuffer"!==iy&&"Buffer"!==iy&&(dy[iy]=ly[iy]);var Ay=dy.Buffer={};for(iy in fy)fy.hasOwnProperty(iy)&&"allocUnsafe"!==iy&&"allocUnsafeSlow"!==iy&&(Ay[iy]=fy[iy]);if(dy.Buffer.prototype=fy.prototype,Ay.from&&Ay.from!==Uint8Array.from||(Ay.from=function(e,t,n){if("number"==typeof e)throw new TypeError('The "value" argument must not be of type number. Received type '+typeof e);if(e&&void 0===e.length)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);return fy(e,t,n)}),Ay.alloc||(Ay.alloc=function(e,t,n){if("number"!=typeof e)throw new TypeError('The "size" argument must be of type number. Received type '+typeof e);if(e<0||e>=2*(1<<30))throw new RangeError('The value "'+e+'" is invalid for option "size"');var r=fy(e);return t&&0!==t.length?"string"==typeof n?r.fill(t,n):r.fill(t):r.fill(0),r}),!dy.kStringMaxLength)try{dy.kStringMaxLength=Gr.binding("buffer").kStringMaxLength}catch(s){}dy.constants||(dy.constants={MAX_LENGTH:dy.kMaxLength},dy.kStringMaxLength&&(dy.constants.MAX_STRING_LENGTH=dy.kStringMaxLength));var hy=dy,py={};const gy=$r;function yy(e){this._reporterState={obj:null,path:[],options:e||{},errors:[]}}function my(e,t){this.path=e,this.rethrow(t)}py.Reporter=yy,yy.prototype.isError=function(e){return e instanceof my},yy.prototype.save=function(){const e=this._reporterState;return{obj:e.obj,pathLen:e.path.length}},yy.prototype.restore=function(e){const t=this._reporterState;t.obj=e.obj,t.path=t.path.slice(0,e.pathLen)},yy.prototype.enterKey=function(e){return this._reporterState.path.push(e)},yy.prototype.exitKey=function(e){const t=this._reporterState;t.path=t.path.slice(0,e-1)},yy.prototype.leaveKey=function(e,t,n){const r=this._reporterState;this.exitKey(e),null!==r.obj&&(r.obj[t]=n)},yy.prototype.path=function(){return this._reporterState.path.join("/")},yy.prototype.enterObject=function(){const e=this._reporterState,t=e.obj;return e.obj={},t},yy.prototype.leaveObject=function(e){const t=this._reporterState,n=t.obj;return t.obj=e,n},yy.prototype.error=function(e){let t;const n=this._reporterState,r=e instanceof my;if(t=r?e:new my(n.path.map((function(e){return"["+JSON.stringify(e)+"]"})).join(""),e.message||e,e.stack),!n.options.partial)throw t;return r||n.errors.push(t),t},yy.prototype.wrapResult=function(e){const t=this._reporterState;return t.options.partial?{result:this.isError(e)?null:e,errors:t.errors}:e},gy(my,Error),my.prototype.rethrow=function(e){if(this.message=e+" at: "+(this.path||"(shallow)"),Error.captureStackTrace&&Error.captureStackTrace(this,my),!this.stack)try{throw new Error(this.message)}catch(e){this.stack=e.stack}return this};var by={};const vy=$r,wy=py.Reporter,Ey=hy.Buffer;function Iy(e,t){wy.call(this,t),Ey.isBuffer(e)?(this.base=e,this.offset=0,this.length=e.length):this.error("Input not Buffer")}function By(e,t){if(Array.isArray(e))this.length=0,this.value=e.map((function(e){return By.isEncoderBuffer(e)||(e=new By(e,t)),this.length+=e.length,e}),this);else if("number"==typeof e){if(!(0<=e&&e<=255))return t.error("non-byte EncoderBuffer value");this.value=e,this.length=1}else if("string"==typeof e)this.value=e,this.length=Ey.byteLength(e);else{if(!Ey.isBuffer(e))return t.error("Unsupported type: "+typeof e);this.value=e,this.length=e.length}}vy(Iy,wy),by.DecoderBuffer=Iy,Iy.isDecoderBuffer=function(e){return e instanceof Iy||"object"==typeof e&&Ey.isBuffer(e.base)&&"DecoderBuffer"===e.constructor.name&&"number"==typeof e.offset&&"number"==typeof e.length&&"function"==typeof e.save&&"function"==typeof e.restore&&"function"==typeof e.isEmpty&&"function"==typeof e.readUInt8&&"function"==typeof e.skip&&"function"==typeof e.raw},Iy.prototype.save=function(){return{offset:this.offset,reporter:wy.prototype.save.call(this)}},Iy.prototype.restore=function(e){const t=new Iy(this.base);return t.offset=e.offset,t.length=this.offset,this.offset=e.offset,wy.prototype.restore.call(this,e.reporter),t},Iy.prototype.isEmpty=function(){return this.offset===this.length},Iy.prototype.readUInt8=function(e){return this.offset+1<=this.length?this.base.readUInt8(this.offset++,!0):this.error(e||"DecoderBuffer overrun")},Iy.prototype.skip=function(e,t){if(!(this.offset+e<=this.length))return this.error(t||"DecoderBuffer overrun");const n=new Iy(this.base);return n._reporterState=this._reporterState,n.offset=this.offset,n.length=this.offset+e,this.offset+=e,n},Iy.prototype.raw=function(e){return this.base.slice(e?e.offset:this.offset,this.length)},by.EncoderBuffer=By,By.isEncoderBuffer=function(e){return e instanceof By||"object"==typeof e&&"EncoderBuffer"===e.constructor.name&&"number"==typeof e.length&&"function"==typeof e.join},By.prototype.join=function(e,t){return e||(e=Ey.alloc(this.length)),t||(t=0),0===this.length||(Array.isArray(this.value)?this.value.forEach((function(n){n.join(e,t),t+=n.length})):("number"==typeof this.value?e[t]=this.value:"string"==typeof this.value?e.write(this.value,t):Ey.isBuffer(this.value)&&this.value.copy(e,t),t+=this.length)),e};const Cy=py.Reporter,_y=by.EncoderBuffer,Sy=by.DecoderBuffer,Qy=zu,ky=["seq","seqof","set","setof","objid","bool","gentime","utctime","null_","enum","int","objDesc","bitstr","bmpstr","charstr","genstr","graphstr","ia5str","iso646str","numstr","octstr","printstr","t61str","unistr","utf8str","videostr"],My=["key","obj","use","optional","explicit","implicit","def","choice","any","contains"].concat(ky);function xy(e,t,n){const r={};this._baseState=r,r.name=n,r.enc=e,r.parent=t||null,r.children=null,r.tag=null,r.args=null,r.reverseArgs=null,r.choice=null,r.optional=!1,r.any=!1,r.obj=!1,r.use=null,r.useDecoder=null,r.key=null,r.default=null,r.explicit=null,r.implicit=null,r.contains=null,r.parent||(r.children=[],this._wrap())}var Ry=xy;const Dy=["enc","parent","children","tag","args","reverseArgs","choice","optional","any","obj","use","alteredUse","key","default","explicit","implicit","contains"];xy.prototype.clone=function(){const e=this._baseState,t={};Dy.forEach((function(n){t[n]=e[n]}));const n=new this.constructor(t.parent);return n._baseState=t,n},xy.prototype._wrap=function(){const e=this._baseState;My.forEach((function(t){this[t]=function(){const n=new this.constructor(this);return e.children.push(n),n[t].apply(n,arguments)}}),this)},xy.prototype._init=function(e){const t=this._baseState;Qy(null===t.parent),e.call(this),t.children=t.children.filter((function(e){return e._baseState.parent===this}),this),Qy.equal(t.children.length,1,"Root node can have only one child")},xy.prototype._useArgs=function(e){const t=this._baseState,n=e.filter((function(e){return e instanceof this.constructor}),this);e=e.filter((function(e){return!(e instanceof this.constructor)}),this),0!==n.length&&(Qy(null===t.children),t.children=n,n.forEach((function(e){e._baseState.parent=this}),this)),0!==e.length&&(Qy(null===t.args),t.args=e,t.reverseArgs=e.map((function(e){if("object"!=typeof e||e.constructor!==Object)return e;const t={};return Object.keys(e).forEach((function(n){n==(0|n)&&(n|=0);const r=e[n];t[r]=n})),t})))},["_peekTag","_decodeTag","_use","_decodeStr","_decodeObjid","_decodeTime","_decodeNull","_decodeInt","_decodeBool","_decodeList","_encodeComposite","_encodeStr","_encodeObjid","_encodeTime","_encodeNull","_encodeInt","_encodeBool"].forEach((function(e){xy.prototype[e]=function(){const t=this._baseState;throw new Error(e+" not implemented for encoding: "+t.enc)}})),ky.forEach((function(e){xy.prototype[e]=function(){const t=this._baseState,n=Array.prototype.slice.call(arguments);return Qy(null===t.tag),t.tag=e,this._useArgs(n),this}})),xy.prototype.use=function(e){Qy(e);const t=this._baseState;return Qy(null===t.use),t.use=e,this},xy.prototype.optional=function(){return this._baseState.optional=!0,this},xy.prototype.def=function(e){const t=this._baseState;return Qy(null===t.default),t.default=e,t.optional=!0,this},xy.prototype.explicit=function(e){const t=this._baseState;return Qy(null===t.explicit&&null===t.implicit),t.explicit=e,this},xy.prototype.implicit=function(e){const t=this._baseState;return Qy(null===t.explicit&&null===t.implicit),t.implicit=e,this},xy.prototype.obj=function(){const e=this._baseState,t=Array.prototype.slice.call(arguments);return e.obj=!0,0!==t.length&&this._useArgs(t),this},xy.prototype.key=function(e){const t=this._baseState;return Qy(null===t.key),t.key=e,this},xy.prototype.any=function(){return this._baseState.any=!0,this},xy.prototype.choice=function(e){const t=this._baseState;return Qy(null===t.choice),t.choice=e,this._useArgs(Object.keys(e).map((function(t){return e[t]}))),this},xy.prototype.contains=function(e){const t=this._baseState;return Qy(null===t.use),t.contains=e,this},xy.prototype._decode=function(e,t){const n=this._baseState;if(null===n.parent)return e.wrapResult(n.children[0]._decode(e,t));let r,i=n.default,o=!0,a=null;if(null!==n.key&&(a=e.enterKey(n.key)),n.optional){let r=null;if(null!==n.explicit?r=n.explicit:null!==n.implicit?r=n.implicit:null!==n.tag&&(r=n.tag),null!==r||n.any){if(o=this._peekTag(e,r,n.any),e.isError(o))return o}else{const r=e.save();try{null===n.choice?this._decodeGeneric(n.tag,e,t):this._decodeChoice(e,t),o=!0}catch(e){o=!1}e.restore(r)}}if(n.obj&&o&&(r=e.enterObject()),o){if(null!==n.explicit){const t=this._decodeTag(e,n.explicit);if(e.isError(t))return t;e=t}const r=e.offset;if(null===n.use&&null===n.choice){let t;n.any&&(t=e.save());const r=this._decodeTag(e,null!==n.implicit?n.implicit:n.tag,n.any);if(e.isError(r))return r;n.any?i=e.raw(t):e=r}if(t&&t.track&&null!==n.tag&&t.track(e.path(),r,e.length,"tagged"),t&&t.track&&null!==n.tag&&t.track(e.path(),e.offset,e.length,"content"),n.any||(i=null===n.choice?this._decodeGeneric(n.tag,e,t):this._decodeChoice(e,t)),e.isError(i))return i;if(n.any||null!==n.choice||null===n.children||n.children.forEach((function(n){n._decode(e,t)})),n.contains&&("octstr"===n.tag||"bitstr"===n.tag)){const r=new Sy(i);i=this._getUse(n.contains,e._reporterState.obj)._decode(r,t)}}return n.obj&&o&&(i=e.leaveObject(r)),null===n.key||null===i&&!0!==o?null!==a&&e.exitKey(a):e.leaveKey(a,n.key,i),i},xy.prototype._decodeGeneric=function(e,t,n){const r=this._baseState;return"seq"===e||"set"===e?null:"seqof"===e||"setof"===e?this._decodeList(t,e,r.args[0],n):/str$/.test(e)?this._decodeStr(t,e,n):"objid"===e&&r.args?this._decodeObjid(t,r.args[0],r.args[1],n):"objid"===e?this._decodeObjid(t,null,null,n):"gentime"===e||"utctime"===e?this._decodeTime(t,e,n):"null_"===e?this._decodeNull(t,n):"bool"===e?this._decodeBool(t,n):"objDesc"===e?this._decodeStr(t,e,n):"int"===e||"enum"===e?this._decodeInt(t,r.args&&r.args[0],n):null!==r.use?this._getUse(r.use,t._reporterState.obj)._decode(t,n):t.error("unknown tag: "+e)},xy.prototype._getUse=function(e,t){const n=this._baseState;return n.useDecoder=this._use(e,t),Qy(null===n.useDecoder._baseState.parent),n.useDecoder=n.useDecoder._baseState.children[0],n.implicit!==n.useDecoder._baseState.implicit&&(n.useDecoder=n.useDecoder.clone(),n.useDecoder._baseState.implicit=n.implicit),n.useDecoder},xy.prototype._decodeChoice=function(e,t){const n=this._baseState;let r=null,i=!1;return Object.keys(n.choice).some((function(o){const a=e.save(),s=n.choice[o];try{const n=s._decode(e,t);if(e.isError(n))return!1;r={type:o,value:n},i=!0}catch(t){return e.restore(a),!1}return!0}),this),i?r:e.error("Choice not matched")},xy.prototype._createEncoderBuffer=function(e){return new _y(e,this.reporter)},xy.prototype._encode=function(e,t,n){const r=this._baseState;if(null!==r.default&&r.default===e)return;const i=this._encodeValue(e,t,n);return void 0===i||this._skipDefault(i,t,n)?void 0:i},xy.prototype._encodeValue=function(e,t,n){const r=this._baseState;if(null===r.parent)return r.children[0]._encode(e,t||new Cy);let i=null;if(this.reporter=t,r.optional&&void 0===e){if(null===r.default)return;e=r.default}let o=null,a=!1;if(r.any)i=this._createEncoderBuffer(e);else if(r.choice)i=this._encodeChoice(e,t);else if(r.contains)o=this._getUse(r.contains,n)._encode(e,t),a=!0;else if(r.children)o=r.children.map((function(n){if("null_"===n._baseState.tag)return n._encode(null,t,e);if(null===n._baseState.key)return t.error("Child should have a key");const r=t.enterKey(n._baseState.key);if("object"!=typeof e)return t.error("Child expected, but input is not object");const i=n._encode(e[n._baseState.key],t,e);return t.leaveKey(r),i}),this).filter((function(e){return e})),o=this._createEncoderBuffer(o);else if("seqof"===r.tag||"setof"===r.tag){if(!r.args||1!==r.args.length)return t.error("Too many args for : "+r.tag);if(!Array.isArray(e))return t.error("seqof/setof, but data is not Array");const n=this.clone();n._baseState.implicit=null,o=this._createEncoderBuffer(e.map((function(n){const r=this._baseState;return this._getUse(r.args[0],e)._encode(n,t)}),n))}else null!==r.use?i=this._getUse(r.use,n)._encode(e,t):(o=this._encodePrimitive(r.tag,e),a=!0);if(!r.any&&null===r.choice){const e=null!==r.implicit?r.implicit:r.tag,n=null===r.implicit?"universal":"context";null===e?null===r.use&&t.error("Tag could be omitted only for .use()"):null===r.use&&(i=this._encodeComposite(e,a,n,o))}return null!==r.explicit&&(i=this._encodeComposite(r.explicit,!1,"context",i)),i},xy.prototype._encodeChoice=function(e,t){const n=this._baseState,r=n.choice[e.type];return r||Qy(!1,e.type+" not found in "+JSON.stringify(Object.keys(n.choice))),r._encode(e.value,t)},xy.prototype._encodePrimitive=function(e,t){const n=this._baseState;if(/str$/.test(e))return this._encodeStr(t,e);if("objid"===e&&n.args)return this._encodeObjid(t,n.reverseArgs[0],n.args[1]);if("objid"===e)return this._encodeObjid(t,null,null);if("gentime"===e||"utctime"===e)return this._encodeTime(t,e);if("null_"===e)return this._encodeNull();if("int"===e||"enum"===e)return this._encodeInt(t,n.args&&n.reverseArgs[0]);if("bool"===e)return this._encodeBool(t);if("objDesc"===e)return this._encodeStr(t,e);throw new Error("Unsupported tag: "+e)},xy.prototype._isNumstr=function(e){return/^[0-9 ]*$/.test(e)},xy.prototype._isPrintstr=function(e){return/^[A-Za-z0-9 '()+,-./:=?]*$/.test(e)};var Ty={};!function(e){function t(e){const t={};return Object.keys(e).forEach((function(n){(0|n)==n&&(n|=0);const r=e[n];t[r]=n})),t}e.tagClass={0:"universal",1:"application",2:"context",3:"private"},e.tagClassByName=t(e.tagClass),e.tag={0:"end",1:"bool",2:"int",3:"bitstr",4:"octstr",5:"null_",6:"objid",7:"objDesc",8:"external",9:"real",10:"enum",11:"embed",12:"utf8str",13:"relativeOid",16:"seq",17:"set",18:"numstr",19:"printstr",20:"t61str",21:"videostr",22:"ia5str",23:"utctime",24:"gentime",25:"graphstr",26:"iso646str",27:"genstr",28:"unistr",29:"charstr",30:"bmpstr"},e.tagByName=t(e.tag)}(Ty);const Ny=$r,Oy=hy.Buffer,Ly=Ry,Py=Ty;function Uy(e){this.enc="der",this.name=e.name,this.entity=e,this.tree=new jy,this.tree._init(e.body)}var Fy=Uy;function jy(e){Ly.call(this,"der",e)}function qy(e){return e<10?"0"+e:e}Uy.prototype.encode=function(e,t){return this.tree._encode(e,t).join()},Ny(jy,Ly),jy.prototype._encodeComposite=function(e,t,n,r){const i=function(e,t,n,r){let i;if("seqof"===e?e="seq":"setof"===e&&(e="set"),Py.tagByName.hasOwnProperty(e))i=Py.tagByName[e];else{if("number"!=typeof e||(0|e)!==e)return r.error("Unknown tag: "+e);i=e}return i>=31?r.error("Multi-octet tag encoding unsupported"):(t||(i|=32),i|=Py.tagClassByName[n||"universal"]<<6,i)}(e,t,n,this.reporter);if(r.length<128){const e=Oy.alloc(2);return e[0]=i,e[1]=r.length,this._createEncoderBuffer([e,r])}let o=1;for(let e=r.length;e>=256;e>>=8)o++;const a=Oy.alloc(2+o);a[0]=i,a[1]=128|o;for(let e=1+o,t=r.length;t>0;e--,t>>=8)a[e]=255&t;return this._createEncoderBuffer([a,r])},jy.prototype._encodeStr=function(e,t){if("bitstr"===t)return this._createEncoderBuffer([0|e.unused,e.data]);if("bmpstr"===t){const t=Oy.alloc(2*e.length);for(let n=0;n=40)return this.reporter.error("Second objid identifier OOB");e.splice(0,2,40*e[0]+e[1])}let r=0;for(let t=0;t=128;n>>=7)r++}const i=Oy.alloc(r);let o=i.length-1;for(let t=e.length-1;t>=0;t--){let n=e[t];for(i[o--]=127&n;(n>>=7)>0;)i[o--]=128|127&n}return this._createEncoderBuffer(i)},jy.prototype._encodeTime=function(e,t){let n;const r=new Date(e);return"gentime"===t?n=[qy(r.getUTCFullYear()),qy(r.getUTCMonth()+1),qy(r.getUTCDate()),qy(r.getUTCHours()),qy(r.getUTCMinutes()),qy(r.getUTCSeconds()),"Z"].join(""):"utctime"===t?n=[qy(r.getUTCFullYear()%100),qy(r.getUTCMonth()+1),qy(r.getUTCDate()),qy(r.getUTCHours()),qy(r.getUTCMinutes()),qy(r.getUTCSeconds()),"Z"].join(""):this.reporter.error("Encoding "+t+" time is not supported yet"),this._encodeStr(n,"octstr")},jy.prototype._encodeNull=function(){return this._createEncoderBuffer("")},jy.prototype._encodeInt=function(e,t){if("string"==typeof e){if(!t)return this.reporter.error("String int or enum given, but no values map");if(!t.hasOwnProperty(e))return this.reporter.error("Values map doesn't contain: "+JSON.stringify(e));e=t[e]}if("number"!=typeof e&&!Oy.isBuffer(e)){const t=e.toArray();!e.sign&&128&t[0]&&t.unshift(0),e=Oy.from(t)}if(Oy.isBuffer(e)){let t=e.length;0===e.length&&t++;const n=Oy.alloc(t);return e.copy(n),0===e.length&&(n[0]=0),this._createEncoderBuffer(n)}if(e<128)return this._createEncoderBuffer(e);if(e<256)return this._createEncoderBuffer([0,e]);let n=1;for(let t=e;t>=256;t>>=8)n++;const r=new Array(n);for(let t=r.length-1;t>=0;t--)r[t]=255&e,e>>=8;return 128&r[0]&&r.unshift(0),this._createEncoderBuffer(Oy.from(r))},jy.prototype._encodeBool=function(e){return this._createEncoderBuffer(e?255:0)},jy.prototype._use=function(e,t){return"function"==typeof e&&(e=e(t)),e._getEncoder("der").tree},jy.prototype._skipDefault=function(e,t,n){const r=this._baseState;let i;if(null===r.default)return!1;const o=e.join();if(void 0===r.defaultBuffer&&(r.defaultBuffer=this._encodeValue(r.default,t,n).join()),o.length!==r.defaultBuffer.length)return!1;for(i=0;i>6],i=!(32&n);if(31&~n)n&=31;else{let r=n;for(n=0;!(128&~r);){if(r=e.readUInt8(t),e.isError(r))return r;n<<=7,n|=127&r}}return{cls:r,primitive:i,tag:n,tagStr:Zy.tag[n]}}function nm(e,t,n){let r=e.readUInt8(n);if(e.isError(r))return r;if(!t&&128===r)return null;if(!(128&r))return r;const i=127&r;if(i>4)return e.error("length octect is too long");r=0;for(let t=0;tn-a-2)throw new Error("message too long");var s=gb.alloc(n-r-a-2),c=n-o-1,u=ub(o),l=db(gb.concat([i,s,gb.alloc(1,1),t],c),fb(u,c)),f=db(u,fb(l,o));return new Ab(gb.concat([gb.alloc(1),f,l],n))}(o,t);else if(1===r)i=function(e,t,n){var r,i=t.length,o=e.modulus.byteLength();if(i>o-11)throw new Error("message too long");return r=n?gb.alloc(o-i-3,255):function(e){for(var t,n=gb.allocUnsafe(e),r=0,i=ub(2*e),o=0;r=0)throw new Error("data too long for modulus")}return n?pb(i,o):hb(i,o)},mb=Gm,bb=nb,vb=ib,wb=pd,Eb=RA,Ib=Yc,Bb=sb,Cb=Kr.Buffer,_b=function(e,t,n){var r;r=e.padding?e.padding:n?1:4;var i,o=mb(e),a=o.modulus.byteLength();if(t.length>a||new wb(t).cmp(o.modulus)>=0)throw new Error("decryption error");i=n?Bb(new wb(t),o):Eb(t,o);var s=Cb.alloc(a-i.length);if(i=Cb.concat([s,i],a),4===r)return function(e,t){var n=e.modulus.byteLength(),r=Ib("sha1").update(Cb.alloc(0)).digest(),i=r.length;if(0!==t[0])throw new Error("decryption error");var o=t.slice(1,i+1),a=t.slice(i+1),s=vb(o,bb(a,i)),c=vb(a,bb(s,n-i-1));if(function(e,t){e=Cb.from(e),t=Cb.from(t);var n=0,r=e.length;e.length!==t.length&&(n++,r=Math.min(e.length,t.length));for(var i=-1;++i=t.length){o++;break}var a=t.slice(2,i-1);if(("0002"!==r.toString("hex")&&!n||"0001"!==r.toString("hex")&&n)&&o++,a.length<8&&o++,o)throw new Error("decryption error");return t.slice(i)}(0,i,n);if(3===r)return i;throw new Error("unknown padding")};!function(e){e.publicEncrypt=yb,e.privateDecrypt=_b,e.privateEncrypt=function(t,n){return e.publicEncrypt(t,n,!0)},e.publicDecrypt=function(t,n){return e.privateDecrypt(t,n,!0)}}(Xm);var Sb={};function Qb(){throw new Error("secure random number generation not supported by this browser\nuse chrome, FireFox or Internet Explorer 11")}var kb,Mb=Kr,xb=Mb.Buffer,Rb=Mb.kMaxLength,Db=dr.crypto||dr.msCrypto,Tb=Math.pow(2,32)-1;function Nb(e,t){if("number"!=typeof e||e!=e)throw new TypeError("offset must be a number");if(e>Tb||e<0)throw new TypeError("offset must be a uint32");if(e>Rb||e>t)throw new RangeError("offset out of range")}function Ob(e,t,n){if("number"!=typeof e||e!=e)throw new TypeError("size must be a number");if(e>Tb||e<0)throw new TypeError("size must be a uint32");if(e+t>n||e>Rb)throw new RangeError("buffer too small")}function Lb(e,t,n,r){var i=e.buffer,o=new Uint8Array(i,t,n);return Db.getRandomValues(o),r?void Mr((function(){r(null,e)})):e}function Pb(){if(kb)return mr;kb=1,mr.randomBytes=mr.rng=mr.pseudoRandomBytes=mr.prng=Wr,mr.createHash=mr.Hash=Yc,mr.createHmac=mr.Hmac=uu;var e=fu,t=Object.keys(e),n=["sha1","sha224","sha256","sha384","sha512","md5","rmd160"].concat(t);mr.getHashes=function(){return n};var r=du;mr.pbkdf2=r.pbkdf2,mr.pbkdf2Sync=r.pbkdf2Sync;var i=ju;mr.Cipher=i.Cipher,mr.createCipher=i.createCipher,mr.Cipheriv=i.Cipheriv,mr.createCipheriv=i.createCipheriv,mr.Decipher=i.Decipher,mr.createDecipher=i.createDecipher,mr.Decipheriv=i.Decipheriv,mr.createDecipheriv=i.createDecipheriv,mr.getCiphers=i.getCiphers,mr.listCiphers=i.listCiphers;var o=function(){if(Ed)return cd;Ed=1;var e=bd(),t=Cd,n=function(){if(wd)return vd;wd=1;var e=pd,t=new(md()),n=new e(24),r=new e(11),i=new e(10),o=new e(3),a=new e(7),s=bd(),c=Wr;function u(t,n){return n=n||"utf8",lr(t)||(t=new Sn(t,n)),this._pub=new e(t),this}function l(t,n){return n=n||"utf8",lr(t)||(t=new Sn(t,n)),this._priv=new e(t),this}vd=d;var f={};function d(t,n,r){this.setGenerator(n),this.__prime=new e(t),this._prime=e.mont(this.__prime),this._primeLen=t.length,this._pub=void 0,this._priv=void 0,this._primeCode=void 0,r?(this.setPublicKey=u,this.setPrivateKey=l):this._primeCode=8}function A(e,t){var n=new Sn(e.toArray());return t?n.toString(t):n}return Object.defineProperty(d.prototype,"verifyError",{enumerable:!0,get:function(){return"number"!=typeof this._primeCode&&(this._primeCode=function(e,c){var u=c.toString("hex"),l=[u,e.toString(16)].join("_");if(l in f)return f[l];var d,A=0;if(e.isEven()||!s.simpleSieve||!s.fermatTest(e)||!t.test(e))return A+=1,A+="02"===u||"05"===u?8:4,f[l]=A,A;switch(t.test(e.shrn(1))||(A+=2),u){case"02":e.mod(n).cmp(r)&&(A+=8);break;case"05":(d=e.mod(i)).cmp(o)&&d.cmp(a)&&(A+=8);break;default:A+=4}return f[l]=A,A}(this.__prime,this.__gen)),this._primeCode}}),d.prototype.generateKeys=function(){return this._priv||(this._priv=new e(c(this._primeLen))),this._pub=this._gen.toRed(this._prime).redPow(this._priv).fromRed(),this.getPublicKey()},d.prototype.computeSecret=function(t){var n=new Sn((t=(t=new e(t)).toRed(this._prime)).redPow(this._priv).fromRed().toArray()),r=this.getPrime();if(n.length0&&n.ishrn(r),n}function u(n,r,i){var o,a;do{for(o=e.alloc(0);8*o.length=t)throw new Error("invalid sig")}return Km=function(a,s,c,u,l){var f=r(c);if("ec"===f.type){if("ecdsa"!==u&&"ecdsa/rsa"!==u)throw new Error("wrong public key type");return function(e,t,r){var o=i[r.data.algorithm.curve.join(".")];if(!o)throw new Error("unknown curve "+r.data.algorithm.curve.join("."));var a=new n(o),s=r.data.subjectPrivateKey.data;return a.verify(t,e,s)}(a,s,f)}if("dsa"===f.type){if("dsa"!==u)throw new Error("wrong public key type");return function(e,n,i){var a=i.data.p,s=i.data.q,c=i.data.g,u=i.data.pub_key,l=r.signature.decode(e,"der"),f=l.s,d=l.r;o(f,s),o(d,s);var A=t.mont(a),h=f.invm(s);return 0===c.toRed(A).redPow(new t(n).mul(h).mod(s)).fromRed().mul(u.toRed(A).redPow(d.mul(h).mod(s)).fromRed()).mod(a).mod(s).cmp(d)}(a,s,f)}if("rsa"!==u&&"ecdsa/rsa"!==u)throw new Error("wrong public key type");s=e.concat([l,s]);for(var d=f.modulus.byteLength(),A=[1],h=0;s.length+A.length+2{switch(e){case"sha256":case"sha3-256":case"blake2s256":return 32;case"sha512":case"sha3-512":case"blake2b512":return 64;case"sha224":case"sha3-224":return 28;case"sha384":case"sha3-384":return 48;case"sha1":return 20;case"md5":return 16;default:{let t=qb[e];return void 0===t&&(t=Fb(e).digest().length,qb[e]=t),t}}},Hb=(e,t,n,r)=>{const i=Ub.isBuffer(n)?n:Ub.from(n),o=r&&r.length?Ub.from(r):Ub.alloc(t,0);return jb(e,o).update(i).digest()},Yb=(e,t,n,r,i)=>{const o=Ub.isBuffer(i)?i:Ub.from(i||""),a=o.length,s=Math.ceil(r/t);if(s>255)throw new Error(`OKM length ${r} is too long for ${e} hash`);const c=Ub.alloc(t*s+a+1);for(let r=1,i=0,u=0;r<=s;++r)o.copy(c,u),c[u+a]=r,jb(e,n).update(c.slice(i,u+a+1)).digest().copy(c,u),i=u,u+=t;return c.slice(0,r)};function Kb(e,t,{salt:n="",info:r="",hash:i="SHA-256"}={}){i=i.toLowerCase().replace("-","");const o=Gb(i),a=Hb(i,o,e,n);return Yb(i,o,a,t,r)}Object.defineProperties(Kb,{hash_length:{configurable:!1,enumerable:!1,writable:!1,value:Gb},extract:{configurable:!1,enumerable:!1,writable:!1,value:Hb},expand:{configurable:!1,enumerable:!1,writable:!1,value:Yb}});var zb=Kb;const Vb="Impossible case. Please create issue.",Jb="The tweak was out of range or the resulted private key is invalid",Wb="The tweak was out of range or equal to zero",Zb="Public Key could not be parsed",$b="Public Key serialization error",Xb="Signature could not be parsed";function ev(e,t){if(!e)throw new Error(t)}function tv(e,t,n){if(ev(t instanceof Uint8Array,`Expected ${e} to be an Uint8Array`),void 0!==n)if(Array.isArray(n)){const r=`Expected ${e} to be an Uint8Array with length [${n.join(", ")}]`;ev(n.includes(t.length),r)}else{const r=`Expected ${e} to be an Uint8Array with length ${n}`;ev(t.length===n,r)}}function nv(e){ev("Boolean"===iv(e),"Expected compressed to be a Boolean")}function rv(e=(e=>new Uint8Array(e)),t){return"function"==typeof e&&(e=e(t)),tv("output",e,t),e}function iv(e){return Object.prototype.toString.call(e).slice(8,-1)}const ov=new(ny().ec)("secp256k1"),av=ov.curve,sv=av.n.constructor;function cv(e){const t=e[0];switch(t){case 2:case 3:return 33!==e.length?null:function(e,t){let n=new sv(t);if(n.cmp(av.p)>=0)return null;n=n.toRed(av.red);let r=n.redSqr().redIMul(n).redIAdd(av.b).redSqrt();return 3===e!==r.isOdd()&&(r=r.redNeg()),ov.keyPair({pub:{x:n,y:r}})}(t,e.subarray(1,33));case 4:case 6:case 7:return 65!==e.length?null:function(e,t,n){let r=new sv(t),i=new sv(n);if(r.cmp(av.p)>=0||i.cmp(av.p)>=0)return null;if(r=r.toRed(av.red),i=i.toRed(av.red),(6===e||7===e)&&i.isOdd()!==(7===e))return null;const o=r.redSqr().redIMul(r);return i.redSqr().redISub(o.redIAdd(av.b)).isZero()?ov.keyPair({pub:{x:r,y:i}}):null}(t,e.subarray(1,33),e.subarray(33,65));default:return null}}function uv(e,t){const n=t.encode(null,33===e.length);for(let t=0;t0,privateKeyVerify(e){const t=new sv(e);return t.cmp(av.n)<0&&!t.isZero()?0:1},privateKeyNegate(e){const t=new sv(e),n=av.n.sub(t).umod(av.n).toArrayLike(Uint8Array,"be",32);return e.set(n),0},privateKeyTweakAdd(e,t){const n=new sv(t);if(n.cmp(av.n)>=0)return 1;if(n.iadd(new sv(e)),n.cmp(av.n)>=0&&n.isub(av.n),n.isZero())return 1;const r=n.toArrayLike(Uint8Array,"be",32);return e.set(r),0},privateKeyTweakMul(e,t){let n=new sv(t);if(n.cmp(av.n)>=0||n.isZero())return 1;n.imul(new sv(e)),n.cmp(av.n)>=0&&(n=n.umod(av.n));const r=n.toArrayLike(Uint8Array,"be",32);return e.set(r),0},publicKeyVerify:e=>null===cv(e)?1:0,publicKeyCreate(e,t){const n=new sv(t);return n.cmp(av.n)>=0||n.isZero()?1:(uv(e,ov.keyFromPrivate(t).getPublic()),0)},publicKeyConvert(e,t){const n=cv(t);return null===n?1:(uv(e,n.getPublic()),0)},publicKeyNegate(e,t){const n=cv(t);if(null===n)return 1;const r=n.getPublic();return r.y=r.y.redNeg(),uv(e,r),0},publicKeyCombine(e,t){const n=new Array(t.length);for(let e=0;e=0)return 2;const i=r.getPublic().add(av.g.mul(n));return i.isInfinity()?2:(uv(e,i),0)},publicKeyTweakMul(e,t,n){const r=cv(t);return null===r?1:(n=new sv(n)).cmp(av.n)>=0||n.isZero()?2:(uv(e,r.getPublic().mul(n)),0)},signatureNormalize(e){const t=new sv(e.subarray(0,32)),n=new sv(e.subarray(32,64));return t.cmp(av.n)>=0||n.cmp(av.n)>=0?1:(1===n.cmp(ov.nh)&&e.set(av.n.sub(n).toArrayLike(Uint8Array,"be",32),32),0)},signatureExport(e,t){const n=t.subarray(0,32),r=t.subarray(32,64);if(new sv(n).cmp(av.n)>=0)return 1;if(new sv(r).cmp(av.n)>=0)return 1;const{output:i}=e;let o=i.subarray(4,37);o[0]=0,o.set(n,1);let a=33,s=0;for(;a>1&&0===o[s]&&!(128&o[s+1]);--a,++s);if(o=o.subarray(s),128&o[0])return 1;if(a>1&&0===o[0]&&!(128&o[1]))return 1;let c=i.subarray(39,72);c[0]=0,c.set(r,1);let u=33,l=0;for(;u>1&&0===c[l]&&!(128&c[l+1]);--u,++l);return c=c.subarray(l),128&c[0]||u>1&&0===c[0]&&!(128&c[1])?1:(e.outputlen=6+a+u,i[0]=48,i[1]=e.outputlen-2,i[2]=2,i[3]=o.length,i.set(o,4),i[4+a]=2,i[5+a]=c.length,i.set(c,6+a),0)},signatureImport(e,t){if(t.length<8)return 1;if(t.length>72)return 1;if(48!==t[0])return 1;if(t[1]!==t.length-2)return 1;if(2!==t[2])return 1;const n=t[3];if(0===n)return 1;if(5+n>=t.length)return 1;if(2!==t[4+n])return 1;const r=t[5+n];if(0===r)return 1;if(6+n+r!==t.length)return 1;if(128&t[4])return 1;if(n>1&&0===t[4]&&!(128&t[5]))return 1;if(128&t[n+6])return 1;if(r>1&&0===t[n+6]&&!(128&t[n+7]))return 1;let i=t.subarray(4,4+n);if(33===i.length&&0===i[0]&&(i=i.subarray(1)),i.length>32)return 1;let o=t.subarray(6+n);if(33===o.length&&0===o[0]&&(o=o.slice(1)),o.length>32)throw new Error("S length is too long");let a=new sv(i);a.cmp(av.n)>=0&&(a=new sv(0));let s=new sv(t.subarray(6+n));return s.cmp(av.n)>=0&&(s=new sv(0)),e.set(a.toArrayLike(Uint8Array,"be",32),0),e.set(s.toArrayLike(Uint8Array,"be",32),32),0},ecdsaSign(e,t,n,r,i){if(i){const e=i;i=i=>{const o=e(t,n,null,r,i);if(!(o instanceof Uint8Array&&32===o.length))throw new Error("This is the way");return new sv(o)}}const o=new sv(n);if(o.cmp(av.n)>=0||o.isZero())return 1;let a;try{a=ov.sign(t,n,{canonical:!0,k:i,pers:r})}catch(e){return 1}return e.signature.set(a.r.toArrayLike(Uint8Array,"be",32),0),e.signature.set(a.s.toArrayLike(Uint8Array,"be",32),32),e.recid=a.recoveryParam,0},ecdsaVerify(e,t,n){const r={r:e.subarray(0,32),s:e.subarray(32,64)},i=new sv(r.r),o=new sv(r.s);if(i.cmp(av.n)>=0||o.cmp(av.n)>=0)return 1;if(1===o.cmp(ov.nh)||i.isZero()||o.isZero())return 3;const a=cv(n);if(null===a)return 2;const s=a.getPublic();return ov.verify(t,r,s)?0:3},ecdsaRecover(e,t,n,r){const i={r:t.slice(0,32),s:t.slice(32,64)},o=new sv(i.r),a=new sv(i.s);if(o.cmp(av.n)>=0||a.cmp(av.n)>=0)return 1;if(o.isZero()||a.isZero())return 2;let s;try{s=ov.recoverPubKey(r,i,n)}catch(e){return 2}return uv(e,s),0},ecdh(e,t,n,r,i,o,a){const s=cv(t);if(null===s)return 1;const c=new sv(n);if(c.cmp(av.n)>=0||c.isZero())return 2;const u=s.getPublic().mul(c);if(void 0===i){const t=u.encode(null,!0),n=ov.hash().update(t).digest();for(let t=0;t<32;++t)e[t]=n[t]}else{o||(o=new Uint8Array(32));const t=u.getX().toArray("be",32);for(let e=0;e<32;++e)o[e]=t[e];a||(a=new Uint8Array(32));const n=u.getY().toArray("be",32);for(let e=0;e<32;++e)a[e]=n[e];const s=i(o,a,r);if(!(s instanceof Uint8Array&&s.length===e.length))return 2;e.set(s)}return 0}},fv=(e=>({contextRandomize(t){if(ev(null===t||t instanceof Uint8Array,"Expected seed to be an Uint8Array or null"),null!==t&&tv("seed",t,32),1===e.contextRandomize(t))throw new Error("Unknow error on context randomization")},privateKeyVerify:t=>(tv("private key",t,32),0===e.privateKeyVerify(t)),privateKeyNegate(t){switch(tv("private key",t,32),e.privateKeyNegate(t)){case 0:return t;case 1:throw new Error(Vb)}},privateKeyTweakAdd(t,n){switch(tv("private key",t,32),tv("tweak",n,32),e.privateKeyTweakAdd(t,n)){case 0:return t;case 1:throw new Error(Jb)}},privateKeyTweakMul(t,n){switch(tv("private key",t,32),tv("tweak",n,32),e.privateKeyTweakMul(t,n)){case 0:return t;case 1:throw new Error(Wb)}},publicKeyVerify:t=>(tv("public key",t,[33,65]),0===e.publicKeyVerify(t)),publicKeyCreate(t,n=!0,r){switch(tv("private key",t,32),nv(n),r=rv(r,n?33:65),e.publicKeyCreate(r,t)){case 0:return r;case 1:throw new Error("Private Key is invalid");case 2:throw new Error($b)}},publicKeyConvert(t,n=!0,r){switch(tv("public key",t,[33,65]),nv(n),r=rv(r,n?33:65),e.publicKeyConvert(r,t)){case 0:return r;case 1:throw new Error(Zb);case 2:throw new Error($b)}},publicKeyNegate(t,n=!0,r){switch(tv("public key",t,[33,65]),nv(n),r=rv(r,n?33:65),e.publicKeyNegate(r,t)){case 0:return r;case 1:throw new Error(Zb);case 2:throw new Error(Vb);case 3:throw new Error($b)}},publicKeyCombine(t,n=!0,r){ev(Array.isArray(t),"Expected public keys to be an Array"),ev(t.length>0,"Expected public keys array will have more than zero items");for(const e of t)tv("public key",e,[33,65]);switch(nv(n),r=rv(r,n?33:65),e.publicKeyCombine(r,t)){case 0:return r;case 1:throw new Error(Zb);case 2:throw new Error("The sum of the public keys is not valid");case 3:throw new Error($b)}},publicKeyTweakAdd(t,n,r=!0,i){switch(tv("public key",t,[33,65]),tv("tweak",n,32),nv(r),i=rv(i,r?33:65),e.publicKeyTweakAdd(i,t,n)){case 0:return i;case 1:throw new Error(Zb);case 2:throw new Error(Jb)}},publicKeyTweakMul(t,n,r=!0,i){switch(tv("public key",t,[33,65]),tv("tweak",n,32),nv(r),i=rv(i,r?33:65),e.publicKeyTweakMul(i,t,n)){case 0:return i;case 1:throw new Error(Zb);case 2:throw new Error(Wb)}},signatureNormalize(t){switch(tv("signature",t,64),e.signatureNormalize(t)){case 0:return t;case 1:throw new Error(Xb)}},signatureExport(t,n){tv("signature",t,64);const r={output:n=rv(n,72),outputlen:72};switch(e.signatureExport(r,t)){case 0:return n.slice(0,r.outputlen);case 1:throw new Error(Xb);case 2:throw new Error(Vb)}},signatureImport(t,n){switch(tv("signature",t),n=rv(n,64),e.signatureImport(n,t)){case 0:return n;case 1:throw new Error(Xb);case 2:throw new Error(Vb)}},ecdsaSign(t,n,r={},i){tv("message",t,32),tv("private key",n,32),ev("Object"===iv(r),"Expected options to be an Object"),void 0!==r.data&&tv("options.data",r.data),void 0!==r.noncefn&&ev("Function"===iv(r.noncefn),"Expected options.noncefn to be a Function");const o={signature:i=rv(i,64),recid:null};switch(e.ecdsaSign(o,t,n,r.data,r.noncefn)){case 0:return o;case 1:throw new Error("The nonce generation function failed, or the private key was invalid");case 2:throw new Error(Vb)}},ecdsaVerify(t,n,r){switch(tv("signature",t,64),tv("message",n,32),tv("public key",r,[33,65]),e.ecdsaVerify(t,n,r)){case 0:return!0;case 3:return!1;case 1:throw new Error(Xb);case 2:throw new Error(Zb)}},ecdsaRecover(t,n,r,i=!0,o){switch(tv("signature",t,64),ev("Number"===iv(n)&&n>=0&&n<=3,"Expected recovery id to be a Number within interval [0, 3]"),tv("message",r,32),nv(i),o=rv(o,i?33:65),e.ecdsaRecover(o,t,n,r)){case 0:return o;case 1:throw new Error(Xb);case 2:throw new Error("Public key could not be recover");case 3:throw new Error(Vb)}},ecdh(t,n,r={},i){switch(tv("public key",t,[33,65]),tv("private key",n,32),ev("Object"===iv(r),"Expected options to be an Object"),void 0!==r.data&&tv("options.data",r.data),void 0!==r.hashfn?(ev("Function"===iv(r.hashfn),"Expected options.hashfn to be a Function"),void 0!==r.xbuf&&tv("options.xbuf",r.xbuf,32),void 0!==r.ybuf&&tv("options.ybuf",r.ybuf,32),tv("output",i)):i=rv(i,32),e.ecdh(i,t,n,r.data,r.hashfn,r.xbuf,r.ybuf)){case 0:return i;case 1:throw new Error(Zb);case 2:throw new Error("Scalar was invalid (zero or overflow)")}}}))(lv),dv={},Av={};!function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.SECRET_KEY_LENGTH=e.AES_IV_PLUS_TAG_LENGTH=e.AES_TAG_LENGTH=e.AES_IV_LENGTH=e.UNCOMPRESSED_PUBLIC_KEY_SIZE=void 0,e.UNCOMPRESSED_PUBLIC_KEY_SIZE=65,e.AES_IV_LENGTH=16,e.AES_TAG_LENGTH=16,e.AES_IV_PLUS_TAG_LENGTH=e.AES_IV_LENGTH+e.AES_TAG_LENGTH,e.SECRET_KEY_LENGTH=32}(Av);var hv=dr&&dr.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(dv,"__esModule",{value:!0}),dv.aesDecrypt=dv.aesEncrypt=dv.getValidSecret=dv.decodeHex=dv.remove0x=void 0;var pv=Pb(),gv=hv(fv),yv=Av;function mv(e){return e.startsWith("0x")||e.startsWith("0X")?e.slice(2):e}dv.remove0x=mv,dv.decodeHex=function(e){return Sn.from(mv(e),"hex")},dv.getValidSecret=function(){var e;do{e=(0,pv.randomBytes)(yv.SECRET_KEY_LENGTH)}while(!gv.default.privateKeyVerify(e));return e},dv.aesEncrypt=function(e,t){var n=(0,pv.randomBytes)(yv.AES_IV_LENGTH),r=(0,pv.createCipheriv)("aes-256-gcm",e,n),i=Sn.concat([r.update(t),r.final()]),o=r.getAuthTag();return Sn.concat([n,o,i])},dv.aesDecrypt=function(e,t){var n=t.slice(0,yv.AES_IV_LENGTH),r=t.slice(yv.AES_IV_LENGTH,yv.AES_IV_PLUS_TAG_LENGTH),i=t.slice(yv.AES_IV_PLUS_TAG_LENGTH),o=(0,pv.createDecipheriv)("aes-256-gcm",e,n);return o.setAuthTag(r),Sn.concat([o.update(i),o.final()])};var bv={},vv=dr&&dr.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(bv,"__esModule",{value:!0});var wv=vv(zb),Ev=vv(fv),Iv=dv,Bv=Av,Cv=function(){function e(e){this.uncompressed=Sn.from(Ev.default.publicKeyConvert(e,!1)),this.compressed=Sn.from(Ev.default.publicKeyConvert(e,!0))}return e.fromHex=function(t){var n=(0,Iv.decodeHex)(t);if(n.length===Bv.UNCOMPRESSED_PUBLIC_KEY_SIZE-1){var r=Sn.from([4]);return new e(Sn.concat([r,n]))}return new e(n)},e.prototype.toHex=function(e){return void 0===e&&(e=!0),e?this.compressed.toString("hex"):this.uncompressed.toString("hex")},e.prototype.decapsulate=function(e){var t=Sn.concat([this.uncompressed,e.multiply(this)]);return(0,wv.default)(t,32,{hash:"SHA-256"})},e.prototype.equals=function(e){return this.uncompressed.equals(e.uncompressed)},e}();bv.default=Cv;var _v=dr&&dr.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(gr,"__esModule",{value:!0});var Sv=_v(zb),Qv=_v(fv),kv=dv,Mv=_v(bv),xv=function(){function e(e){if(this.secret=e||(0,kv.getValidSecret)(),!Qv.default.privateKeyVerify(this.secret))throw new Error("Invalid private key");this.publicKey=new Mv.default(Sn.from(Qv.default.publicKeyCreate(this.secret)))}return e.fromHex=function(t){return new e((0,kv.decodeHex)(t))},e.prototype.toHex=function(){return"0x".concat(this.secret.toString("hex"))},e.prototype.encapsulate=function(e){var t=Sn.concat([this.publicKey.uncompressed,this.multiply(e)]);return(0,Sv.default)(t,32,{hash:"SHA-256"})},e.prototype.multiply=function(e){return Sn.from(Qv.default.publicKeyTweakMul(e.compressed,this.secret,!1))},e.prototype.equals=function(e){return this.secret.equals(e.secret)},e}();gr.default=xv,function(e){var t=dr&&dr.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,"__esModule",{value:!0}),e.PublicKey=e.PrivateKey=void 0;var n=gr;Object.defineProperty(e,"PrivateKey",{enumerable:!0,get:function(){return t(n).default}});var r=bv;Object.defineProperty(e,"PublicKey",{enumerable:!0,get:function(){return t(r).default}})}(pr),function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.utils=e.PublicKey=e.PrivateKey=e.decrypt=e.encrypt=void 0;var t=pr,n=dv,r=Av;e.encrypt=function(e,r){var i=new t.PrivateKey,o=e instanceof Sn?new t.PublicKey(e):t.PublicKey.fromHex(e),a=i.encapsulate(o),s=(0,n.aesEncrypt)(a,r);return Sn.concat([i.publicKey.uncompressed,s])},e.decrypt=function(e,i){var o=e instanceof Sn?new t.PrivateKey(e):t.PrivateKey.fromHex(e),a=new t.PublicKey(i.slice(0,r.UNCOMPRESSED_PUBLIC_KEY_SIZE)),s=i.slice(r.UNCOMPRESSED_PUBLIC_KEY_SIZE),c=a.decapsulate(o);return(0,n.aesDecrypt)(c,s)};var i=pr;Object.defineProperty(e,"PrivateKey",{enumerable:!0,get:function(){return i.PrivateKey}}),Object.defineProperty(e,"PublicKey",{enumerable:!0,get:function(){return i.PublicKey}}),e.utils={aesDecrypt:n.aesDecrypt,aesEncrypt:n.aesEncrypt,decodeHex:n.decodeHex,getValidSecret:n.getValidSecret,remove0x:n.remove0x}}(hr);class Rv{constructor(e){this.enabled=!0,this.debug=!1,(null==e?void 0:e.debug)&&(this.debug=e.debug),(null==e?void 0:e.pkey)?this.ecies=hr.PrivateKey.fromHex(e.pkey):this.ecies=new hr.PrivateKey,this.debug&&(console.info("[ECIES] initialized secret: ",this.ecies.toHex()),console.info("[ECIES] initialized public: ",this.ecies.publicKey.toHex()),console.info("[ECIES] init with",this))}generateECIES(){this.ecies=new hr.PrivateKey}getPublicKey(){return this.ecies.publicKey.toHex()}encrypt(e,t){let n=e;if(this.enabled)try{this.debug&&console.debug("ECIES::encrypt() using otherPublicKey",t);const r=Sn.from(e),i=hr.encrypt(t,r);n=Sn.from(i).toString("base64")}catch(n){throw this.debug&&(console.error("error encrypt:",n),console.error("private: ",this.ecies.toHex()),console.error("data: ",e),console.error("otherkey: ",t)),n}return n}decrypt(e){let t=e;if(this.enabled)try{this.debug&&console.debug("ECIES::decrypt() using privateKey",this.ecies.toHex());const n=Sn.from(e.toString(),"base64");t=hr.decrypt(this.ecies.toHex(),n).toString()}catch(t){throw this.debug&&(console.error("error decrypt",t),console.error("private: ",this.ecies.toHex()),console.error("encryptedData: ",e)),t}return t}getKeyInfo(){return{private:this.ecies.toHex(),public:this.ecies.publicKey.toHex()}}toString(){console.debug("ECIES::toString()",this.getKeyInfo())}}var Dv="0.14.3";const Tv="https://metamask-sdk-socket.metafi.codefi.network/",Nv=["websocket","polling"],Ov=6048e5,Lv="eth_requestAccounts";function Pv(e){const{debug:t,context:n}=e;t&&console.debug(`RemoteCommunication::${n}::clean()`),e.channelConfig=void 0,e.ready=!1,e.originatorConnectStarted=!1}var Uv,Fv;e.ConnectionStatus=void 0,e.EventType=void 0,e.MessageType=void 0,function(e){e.DISCONNECTED="disconnected",e.WAITING="waiting",e.TIMEOUT="timeout",e.LINKED="linked",e.PAUSED="paused",e.TERMINATED="terminated"}(e.ConnectionStatus||(e.ConnectionStatus={})),function(e){e.KEY_INFO="key_info",e.SERVICE_STATUS="service_status",e.PROVIDER_UPDATE="provider_update",e.RPC_UPDATE="rpc_update",e.KEYS_EXCHANGED="keys_exchanged",e.JOIN_CHANNEL="join_channel",e.CHANNEL_CREATED="channel_created",e.CLIENTS_CONNECTED="clients_connected",e.CLIENTS_DISCONNECTED="clients_disconnected",e.CLIENTS_WAITING="clients_waiting",e.CLIENTS_READY="clients_ready",e.SOCKET_DISCONNECTED="socket_disconnected",e.SOCKET_RECONNECT="socket_reconnect",e.OTP="otp",e.SDK_RPC_CALL="sdk_rpc_call",e.AUTHORIZED="authorized",e.CONNECTION_STATUS="connection_status",e.MESSAGE="message",e.TERMINATE="terminate"}(e.EventType||(e.EventType={})),function(e){e.KEY_EXCHANGE="key_exchange"}(Uv||(Uv={})),function(e){e.KEY_HANDSHAKE_START="key_handshake_start",e.KEY_HANDSHAKE_CHECK="key_handshake_check",e.KEY_HANDSHAKE_SYN="key_handshake_SYN",e.KEY_HANDSHAKE_SYNACK="key_handshake_SYNACK",e.KEY_HANDSHAKE_ACK="key_handshake_ACK",e.KEY_HANDSHAKE_NONE="none"}(Fv||(Fv={}));class jv extends N.EventEmitter2{constructor({communicationLayer:e,otherPublicKey:t,context:n,ecies:r,logging:i}){super(),this.keysExchanged=!1,this.step=Fv.KEY_HANDSHAKE_NONE,this.debug=!1,this.context=n,this.myECIES=new Rv(Object.assign(Object.assign({},r),{debug:null==i?void 0:i.eciesLayer})),this.communicationLayer=e,this.myPublicKey=this.myECIES.getPublicKey(),this.debug=!0===(null==i?void 0:i.keyExchangeLayer),t&&this.setOtherPublicKey(t),this.communicationLayer.on(Uv.KEY_EXCHANGE,this.onKeyExchangeMessage.bind(this))}onKeyExchangeMessage(t){this.debug&&console.debug(`KeyExchange::${this.context}::onKeyExchangeMessage() keysExchanged=${this.keysExchanged}`,t);const{message:n}=t;this.keysExchanged&&this.debug&&console.log(`KeyExchange::${this.context}::onKeyExchangeMessage received handshake while already exchanged. step=${this.step} otherPubKey=${this.otherPublicKey}`),this.emit(e.EventType.KEY_INFO,n.type),n.type===Fv.KEY_HANDSHAKE_SYN?(this.checkStep([Fv.KEY_HANDSHAKE_NONE,Fv.KEY_HANDSHAKE_ACK]),this.debug&&console.debug("KeyExchange::KEY_HANDSHAKE_SYN",n),n.pubkey&&this.setOtherPublicKey(n.pubkey),this.communicationLayer.sendMessage({type:Fv.KEY_HANDSHAKE_SYNACK,pubkey:this.myPublicKey}),this.setStep(Fv.KEY_HANDSHAKE_ACK)):n.type===Fv.KEY_HANDSHAKE_SYNACK?(this.checkStep([Fv.KEY_HANDSHAKE_SYNACK,Fv.KEY_HANDSHAKE_ACK,Fv.KEY_HANDSHAKE_NONE]),this.debug&&console.debug("KeyExchange::KEY_HANDSHAKE_SYNACK"),n.pubkey&&this.setOtherPublicKey(n.pubkey),this.communicationLayer.sendMessage({type:Fv.KEY_HANDSHAKE_ACK}),this.keysExchanged=!0,this.setStep(Fv.KEY_HANDSHAKE_ACK),this.emit(e.EventType.KEYS_EXCHANGED)):n.type===Fv.KEY_HANDSHAKE_ACK&&(this.debug&&console.debug("KeyExchange::KEY_HANDSHAKE_ACK set keysExchanged to true!"),this.checkStep([Fv.KEY_HANDSHAKE_ACK,Fv.KEY_HANDSHAKE_NONE]),this.keysExchanged=!0,this.setStep(Fv.KEY_HANDSHAKE_ACK),this.emit(e.EventType.KEYS_EXCHANGED))}resetKeys(e){this.clean(),this.myECIES=new Rv(e)}clean(){this.debug&&console.debug(`KeyExchange::${this.context}::clean reset handshake state`),this.setStep(Fv.KEY_HANDSHAKE_NONE),this.emit(e.EventType.KEY_INFO,this.step),this.keysExchanged=!1}start({isOriginator:e,force:t}){this.debug&&console.debug(`KeyExchange::${this.context}::start isOriginator=${e} step=${this.step} force=${t} keysExchanged=${this.keysExchanged}`),e?!(this.keysExchanged||this.step!==Fv.KEY_HANDSHAKE_NONE&&this.step!==Fv.KEY_HANDSHAKE_SYNACK)||t?(this.debug&&console.debug(`KeyExchange::${this.context}::start -- start key exchange (force=${t}) -- step=${this.step}`,this.step),this.clean(),this.setStep(Fv.KEY_HANDSHAKE_SYNACK),this.communicationLayer.sendMessage({type:Fv.KEY_HANDSHAKE_SYN,pubkey:this.myPublicKey})):this.debug&&console.debug(`KeyExchange::${this.context}::start -- key exchange already ${this.keysExchanged?"done":"in progress"} -- aborted.`,this.step):this.keysExchanged&&!0!==t?this.debug&&console.debug("KeyExchange::start don't send KEY_HANDSHAKE_START -- exchange already done."):(this.communicationLayer.sendMessage({type:Fv.KEY_HANDSHAKE_START}),this.clean())}setStep(t){this.step=t,this.emit(e.EventType.KEY_INFO,t)}checkStep(e){e.length>0&&-1===e.indexOf(this.step.toString())&&console.warn(`[KeyExchange] Wrong Step "${this.step}" not within ${e}`)}setKeysExchanged(e){this.keysExchanged=e}areKeysExchanged(){return this.keysExchanged}getMyPublicKey(){return this.myPublicKey}getOtherPublicKey(){return this.otherPublicKey}setOtherPublicKey(e){this.debug&&console.debug("KeyExchange::setOtherPubKey()",e),this.otherPublicKey=e}encryptMessage(e){if(!this.otherPublicKey)throw new Error("encryptMessage: Keys not exchanged - missing otherPubKey");return this.myECIES.encrypt(e,this.otherPublicKey)}decryptMessage(e){if(!this.otherPublicKey)throw new Error("decryptMessage: Keys not exchanged - missing otherPubKey");return this.myECIES.decrypt(e)}getKeyInfo(){return{ecies:Object.assign(Object.assign({},this.myECIES.getKeyInfo()),{otherPubKey:this.otherPublicKey}),step:this.step,keysExchanged:this.areKeysExchanged()}}toString(){const e={keyInfo:this.getKeyInfo(),keysExchanged:this.keysExchanged,step:this.step};return JSON.stringify(e)}}!function(e){e.TERMINATE="terminate",e.ANSWER="answer",e.OFFER="offer",e.CANDIDATE="candidate",e.JSONRPC="jsonrpc",e.WALLET_INFO="wallet_info",e.ORIGINATOR_INFO="originator_info",e.PAUSE="pause",e.OTP="otp",e.AUTHORIZED="authorized",e.PING="ping",e.READY="ready"}(e.MessageType||(e.MessageType={}));const qv=e=>new Promise((t=>{setTimeout(t,e)})),Gv=(e,t,n=200)=>ln(void 0,void 0,void 0,(function*(){let r;const i=Date.now();let o=!1;for(;!o;){if(o=Date.now()-i>3e5,r=t[e],void 0!==r.elapsedTime)return r;yield qv(n)}throw new Error(`RPC ${e} timed out`)})),Hv=t=>ln(void 0,void 0,void 0,(function*(){var n,r,i,o,a;return t.state.debug&&console.debug(`SocketService::connectAgain instance.state.socket?.connected=${null===(n=t.state.socket)||void 0===n?void 0:n.connected} trying to reconnect after socketio disconnection`,t),yield qv(200),(null===(r=t.state.socket)||void 0===r?void 0:r.connected)||(t.state.resumed=!0,null===(i=t.state.socket)||void 0===i||i.connect(),t.emit(e.EventType.SOCKET_RECONNECT),null===(o=t.state.socket)||void 0===o||o.emit(e.EventType.JOIN_CHANNEL,t.state.channelId,`${t.state.context}connect_again`)),yield qv(100),null===(a=t.state.socket)||void 0===a?void 0:a.connected})),Yv=[{event:"clients_connected",handler:function(t,n){return r=>ln(this,void 0,void 0,(function*(){var r,i,o,a,s,c,u,l;t.state.debug&&console.debug(`SocketService::${t.state.context}::setupChannelListener::on 'clients_connected-${n}' resumed=${t.state.resumed} clientsPaused=${t.state.clientsPaused} keysExchanged=${null===(r=t.state.keyExchange)||void 0===r?void 0:r.areKeysExchanged()} isOriginator=${t.state.isOriginator}`),t.emit(e.EventType.CLIENTS_CONNECTED,{isOriginator:t.state.isOriginator,keysExchanged:null===(i=t.state.keyExchange)||void 0===i?void 0:i.areKeysExchanged(),context:t.state.context}),t.state.resumed?(t.state.isOriginator||(t.state.debug&&console.debug(`SocketService::${t.state.context}::on 'clients_connected' / keysExchanged=${null===(o=t.state.keyExchange)||void 0===o?void 0:o.areKeysExchanged()} -- backward compatibility`),null===(a=t.state.keyExchange)||void 0===a||a.start({isOriginator:null!==(s=t.state.isOriginator)&&void 0!==s&&s})),t.state.resumed=!1):t.state.clientsPaused?console.debug("SocketService::on 'clients_connected' skip sending originatorInfo on pause"):t.state.isOriginator||(t.state.debug&&console.debug(`SocketService::${t.state.context}::on 'clients_connected' / keysExchanged=${null===(c=t.state.keyExchange)||void 0===c?void 0:c.areKeysExchanged()} -- backward compatibility`),null===(u=t.state.keyExchange)||void 0===u||u.start({isOriginator:null!==(l=t.state.isOriginator)&&void 0!==l&&l,force:!0})),t.state.clientsConnected=!0,t.state.clientsPaused=!1}))}},{event:"channel_created",handler:function(t,n){return r=>{t.state.debug&&console.debug(`SocketService::${t.state.context}::setupChannelListener::on 'channel_created-${n}'`,r),t.emit(e.EventType.CHANNEL_CREATED,r)}}},{event:"clients_disconnected",handler:function(t,n){return()=>{var r;t.state.clientsConnected=!1,t.state.debug&&console.debug(`SocketService::${t.state.context}::setupChannelListener::on 'clients_disconnected-${n}'`),t.state.isOriginator&&!t.state.clientsPaused&&(null===(r=t.state.keyExchange)||void 0===r||r.clean()),t.emit(e.EventType.CLIENTS_DISCONNECTED,n)}}},{event:"message",handler:function(t,n){return({id:r,message:i,error:o})=>{var a,s,c,u,l,f,d,A,h,p,g,y,m,b,v;if(t.state.debug&&console.debug(`SocketService::${t.state.context}::on 'message' ${n} keysExchanged=${null===(a=t.state.keyExchange)||void 0===a?void 0:a.areKeysExchanged()}`,i),o)throw t.state.debug&&console.debug(`\n SocketService::${t.state.context}::on 'message' error=${o}`),new Error(o);try{!function(e,t){if(t!==e.channelId)throw e.debug&&console.error(`Wrong id ${t} - should be ${e.channelId}`),new Error("Wrong id")}(t.state,r)}catch(e){return void console.error("ignore message --- wrong id ",i)}if(t.state.isOriginator&&(null==i?void 0:i.type)===Fv.KEY_HANDSHAKE_START)return t.state.debug&&console.debug(`SocketService::${t.state.context}::on 'message' received HANDSHAKE_START isOriginator=${t.state.isOriginator}`,i),void(null===(s=t.state.keyExchange)||void 0===s||s.start({isOriginator:null!==(c=t.state.isOriginator)&&void 0!==c&&c,force:!0}));if((null==i?void 0:i.type)===e.MessageType.PING)return t.state.debug&&console.debug(`SocketService::${t.state.context}::on 'message' ping `),void t.emit(e.EventType.MESSAGE,{message:{type:"ping"}});if(t.state.debug&&console.debug(`SocketService::${t.state.context}::on 'message' originator=${t.state.isOriginator}, type=${null==i?void 0:i.type}, keysExchanged=${null===(u=t.state.keyExchange)||void 0===u?void 0:u.areKeysExchanged()}`),null===(l=null==i?void 0:i.type)||void 0===l?void 0:l.startsWith("key_handshake"))return t.state.debug&&console.debug(`SocketService::${t.state.context}::on 'message' emit KEY_EXCHANGE`,i),void t.emit(Uv.KEY_EXCHANGE,{message:i,context:t.state.context});if(null===(f=t.state.keyExchange)||void 0===f?void 0:f.areKeysExchanged()){if(-1!==i.toString().indexOf("type"))return console.warn("SocketService::on 'message' received non encrypted unkwown message"),void t.emit(e.EventType.MESSAGE,i)}else{let e=!1;try{null===(d=t.state.keyExchange)||void 0===d||d.decryptMessage(i),e=!0}catch(e){}if(!e)return t.state.isOriginator?null===(h=t.state.keyExchange)||void 0===h||h.start({isOriginator:null!==(p=t.state.isOriginator)&&void 0!==p&&p}):t.sendMessage({type:Fv.KEY_HANDSHAKE_START}),void console.warn(`Message ignored because invalid key exchange status. step=${null===(g=t.state.keyExchange)||void 0===g?void 0:g.getKeyInfo().step}`,null===(y=t.state.keyExchange)||void 0===y?void 0:y.getKeyInfo(),i);console.warn("Invalid key exchange status detected --- updating it."),null===(A=t.state.keyExchange)||void 0===A||A.setKeysExchanged(!0)}const w=null===(m=t.state.keyExchange)||void 0===m?void 0:m.decryptMessage(i),E=JSON.parse(null!=w?w:"{}");if((null==E?void 0:E.type)===e.MessageType.PAUSE?t.state.clientsPaused=!0:t.state.clientsPaused=!1,t.state.isOriginator&&E.data){const n=E.data,r=t.state.rpcMethodTracker[n.id];if(r){const i=Date.now()-r.timestamp;t.state.debug&&console.debug(`SocketService::${t.state.context}::on 'message' received answer for id=${n.id} method=${r.method} responseTime=${i}`,E);const o=Object.assign(Object.assign({},r),{result:n.result,error:n.error?{code:null===(b=n.error)||void 0===b?void 0:b.code,message:null===(v=n.error)||void 0===v?void 0:v.message}:void 0,elapsedTime:i});t.state.rpcMethodTracker[n.id]=o,t.emit(e.EventType.RPC_UPDATE,o),t.state.debug&&console.debug("HACK (wallet <7.3) update rpcMethodTracker",o),t.emit(e.EventType.AUTHORIZED)}}t.emit(e.EventType.MESSAGE,{message:E})}}},{event:"clients_waiting_to_join",handler:function(t,n){return r=>{t.state.debug&&console.debug(`SocketService::${t.state.context}::setupChannelListener::on 'clients_waiting_to_join-${n}'`,r),t.emit(e.EventType.CLIENTS_WAITING,r)}}}],Kv=[{event:e.EventType.KEY_INFO,handler:function(t){return n=>{t.state.debug&&console.debug("SocketService::on 'KEY_INFO'",n),t.emit(e.EventType.KEY_INFO,n)}}},{event:e.EventType.KEYS_EXCHANGED,handler:function(t){return()=>{var n,r;t.state.debug&&console.debug(`SocketService::on 'keys_exchanged' keyschanged=${null===(n=t.state.keyExchange)||void 0===n?void 0:n.areKeysExchanged()}`),t.emit(e.EventType.KEYS_EXCHANGED,{keysExchanged:null===(r=t.state.keyExchange)||void 0===r?void 0:r.areKeysExchanged(),isOriginator:t.state.isOriginator});const i={keyInfo:t.getKeyInfo()};t.emit(e.EventType.SERVICE_STATUS,i)}}}];function zv(t,n){t.state.debug&&console.debug(`SocketService::${t.state.context}::setupChannelListener setting socket listeners for channel ${n}...`);const{socket:r}=t.state,{keyExchange:i}=t.state;t.state.setupChannelListeners&&console.warn(`SocketService::${t.state.context}::setupChannelListener socket listeners already set up for channel ${n}`),r&&t.state.isOriginator&&(t.state.debug&&(null==r||r.io.on("error",(e=>{console.debug(`SocketService::${t.state.context}::setupChannelListener socket event=error`,e)})),null==r||r.io.on("reconnect",(e=>{console.debug(`SocketService::${t.state.context}::setupChannelListener socket event=reconnect`,e)})),null==r||r.io.on("reconnect_error",(e=>{console.debug(`SocketService::${t.state.context}::setupChannelListener socket event=reconnect_error`,e)})),null==r||r.io.on("reconnect_failed",(()=>{console.debug(`SocketService::${t.state.context}::setupChannelListener socket event=reconnect_failed`)})),null==r||r.io.on("ping",(()=>{console.debug(`SocketService::${t.state.context}::setupChannelListener socket event=ping`)}))),null==r||r.on("disconnect",(n=>(console.log(`MetaMaskSDK socket disconnected '${n}' begin recovery...`),function(t){return n=>{t.state.debug&&console.debug(`SocketService::on 'disconnect' manualDisconnect=${t.state.manualDisconnect}`,n),t.state.manualDisconnect||(t.emit(e.EventType.SOCKET_DISCONNECTED),function(e){"undefined"!=typeof window&&"undefined"!=typeof document&&(e.state.debug&&console.debug(`SocketService::checkFocus hasFocus=${document.hasFocus()}`,e),document.hasFocus()?Hv(e).then((t=>{e.state.debug&&console.debug(`SocketService::checkFocus reconnectSocket success=${t}`,e)})).catch((e=>{console.error("SocketService::checkFocus Error reconnecting socket",e)})):window.addEventListener("focus",(()=>{Hv(e).catch((e=>{console.error("SocketService::checkFocus Error reconnecting socket",e)}))}),{once:!0}))}(t))}}(t)(n))))),Yv.forEach((({event:e,handler:i})=>{const o=`${e}-${n}`;null==r||r.on(o,i(t,n))})),Kv.forEach((({event:e,handler:n})=>{null==i||i.on(e,n(t))})),t.state.setupChannelListeners=!0}var Vv,Jv,Wv;function Zv(t,n){var r,i;if(!t.state.channelId)throw new Error("Create a channel first");t.state.debug&&console.debug(`SocketService::${t.state.context}::sendMessage() areKeysExchanged=${null===(r=t.state.keyExchange)||void 0===r?void 0:r.areKeysExchanged()}`,n),(null===(i=null==n?void 0:n.type)||void 0===i?void 0:i.startsWith("key_handshake"))?function(t,n){var r;t.state.debug&&console.debug(`SocketService::${t.state.context}::sendMessage()`,n),null===(r=t.state.socket)||void 0===r||r.emit(e.EventType.MESSAGE,{id:t.state.channelId,context:t.state.context,message:n})}(t,n):(function(e,t){var n;if(!(null===(n=e.state.keyExchange)||void 0===n?void 0:n.areKeysExchanged()))throw e.state.debug&&console.debug(`SocketService::${e.state.context}::sendMessage() ERROR keys not exchanged`,t),new Error("Keys not exchanged BBB")}(t,n),function(t,n){var r;const i=null!==(r=null==n?void 0:n.method)&&void 0!==r?r:"",o=null==n?void 0:n.id;t.state.isOriginator&&o&&(t.state.rpcMethodTracker[o]={id:o,timestamp:Date.now(),method:i},t.emit(e.EventType.RPC_UPDATE,t.state.rpcMethodTracker[o]))}(t,n),function(t,n){var r,i;const o=null===(r=t.state.keyExchange)||void 0===r?void 0:r.encryptMessage(JSON.stringify(n)),a={id:t.state.channelId,context:t.state.context,message:o,plaintext:t.state.hasPlaintext?JSON.stringify(n):void 0};t.state.debug&&console.debug(`SocketService::${t.state.context}::sendMessage()`,a),n.type===e.MessageType.TERMINATE&&(t.state.manualDisconnect=!0),null===(i=t.state.socket)||void 0===i||i.emit(e.EventType.MESSAGE,a)}(t,n),function(t,n){var r;return ln(this,void 0,void 0,(function*(){const i=null==n?void 0:n.id,o=null!==(r=null==n?void 0:n.method)&&void 0!==r?r:"";if(t.state.isOriginator&&i)try{const r=Gv(i,t.state.rpcMethodTracker,200).then((e=>({type:Vv.RPC_CHECK,result:e}))),a=(()=>ln(this,void 0,void 0,(function*(){const e=yield(({rpcId:e,instance:t})=>ln(void 0,void 0,void 0,(function*(){for(;t.state.lastRpcId===e||void 0===t.state.lastRpcId;)yield qv(200);return t.state.lastRpcId})))({instance:t,rpcId:i}),n=yield Gv(e,t.state.rpcMethodTracker,200);return{type:Vv.SKIPPED_RPC,result:n}})))(),s=yield Promise.race([r,a]);if(s.type===Vv.RPC_CHECK){const e=s.result;t.state.debug&&console.debug(`SocketService::waitForRpc id=${n.id} ${o} ( ${e.elapsedTime} ms)`,e.result)}else{if(s.type!==Vv.SKIPPED_RPC)throw new Error(`Error handling RPC replies for ${i}`);{const{result:n}=s;console.warn(`[handleRpcReplies] RPC METHOD HAS BEEN SKIPPED rpcid=${i} method=${o}`,n);const r=Object.assign(Object.assign({},t.state.rpcMethodTracker[i]),{error:new Error("SDK_CONNECTION_ISSUE")});t.emit(e.EventType.RPC_UPDATE,r);const a={data:Object.assign(Object.assign({},r),{jsonrpc:"2.0"}),name:"metamask-provider"};t.emit(e.EventType.MESSAGE,{message:a})}}}catch(e){throw console.warn(`[handleRpcReplies] Error rpcId=${n.id} ${o}`,e),e}}))}(t,n).catch((e=>{console.warn("Error handleRpcReplies",e)})))}e.CommunicationLayerPreference=void 0,e.PlatformType=void 0,function(e){e.RPC_CHECK="rpcCheck",e.SKIPPED_RPC="skippedRpc"}(Vv||(Vv={}));class $v extends N.EventEmitter2{constructor({otherPublicKey:e,reconnect:t,communicationLayerPreference:n,transports:r,communicationServerUrl:i,context:o,ecies:a,logging:s}){super(),this.state={clientsConnected:!1,clientsPaused:!1,manualDisconnect:!1,lastRpcId:void 0,rpcMethodTracker:{},hasPlaintext:!1,communicationServerUrl:""},this.state.resumed=t,this.state.context=o,this.state.communicationLayerPreference=n,this.state.debug=!0===(null==s?void 0:s.serviceLayer),this.state.communicationServerUrl=i,this.state.hasPlaintext=this.state.communicationServerUrl!==Tv&&!0===(null==s?void 0:s.plaintext);const c={autoConnect:!1,transports:Nv,withCredentials:!0};r&&(c.transports=r),this.state.debug&&console.debug(`SocketService::constructor() Socket IO url: ${this.state.communicationServerUrl}`),this.state.socket=un(i,c);const u={communicationLayer:this,otherPublicKey:e,sendPublicKey:!1,context:this.state.context,ecies:a,logging:s};this.state.keyExchange=new jv(u)}resetKeys(){return this.state.debug&&console.debug("SocketService::resetKeys()"),void(null===(e=this.state.keyExchange)||void 0===e||e.resetKeys());var e}createChannel(){return function(t){var n,r,i,o;t.state.debug&&console.debug(`SocketService::${t.state.context}::createChannel()`),(null===(n=t.state.socket)||void 0===n?void 0:n.connected)||null===(r=t.state.socket)||void 0===r||r.connect(),t.state.manualDisconnect=!1,t.state.isOriginator=!0;const a=q();return t.state.channelId=a,zv(t,a),null===(i=t.state.socket)||void 0===i||i.emit(e.EventType.JOIN_CHANNEL,a,`${t.state.context}createChannel`),{channelId:a,pubKey:(null===(o=t.state.keyExchange)||void 0===o?void 0:o.getMyPublicKey())||""}}(this)}connectToChannel({channelId:t,isOriginator:n=!1,withKeyExchange:r=!1}){return function({options:t,instance:n}){var r,i,o,a;const{channelId:s,withKeyExchange:c,isOriginator:u}=t;if(n.state.debug&&console.debug(`SocketService::${n.state.context}::connectToChannel() channelId=${s} isOriginator=${u}`,null===(r=n.state.keyExchange)||void 0===r?void 0:r.toString()),null===(i=n.state.socket)||void 0===i?void 0:i.connected)throw new Error("socket already connected");n.state.manualDisconnect=!1,null===(o=n.state.socket)||void 0===o||o.connect(),n.state.withKeyExchange=c,n.state.isOriginator=u,n.state.channelId=s,zv(n,s),null===(a=n.state.socket)||void 0===a||a.emit(e.EventType.JOIN_CHANNEL,s,`${n.state.context}_connectToChannel`)}({options:{channelId:t,isOriginator:n,withKeyExchange:r},instance:this})}getKeyInfo(){return this.state.keyExchange.getKeyInfo()}keyCheck(){var t,n;null===(n=(t=this).state.socket)||void 0===n||n.emit(e.EventType.MESSAGE,{id:t.state.channelId,context:t.state.context,message:{type:Fv.KEY_HANDSHAKE_CHECK,pubkey:t.getKeyInfo().ecies.otherPubKey}})}getKeyExchange(){return this.state.keyExchange}sendMessage(e){return Zv(this,e)}ping(){return(t=this).state.debug&&console.debug(`SocketService::${t.state.context}::ping() originator=${t.state.isOriginator} keysExchanged=${null===(n=t.state.keyExchange)||void 0===n?void 0:n.areKeysExchanged()}`),t.state.isOriginator&&((null===(r=t.state.keyExchange)||void 0===r?void 0:r.areKeysExchanged())?(console.warn(`SocketService::${t.state.context}::ping() sending READY message`),t.sendMessage({type:e.MessageType.READY})):(console.warn(`SocketService::${t.state.context}::ping() starting key exchange`),null===(i=t.state.keyExchange)||void 0===i||i.start({isOriginator:null!==(o=t.state.isOriginator)&&void 0!==o&&o}))),void(null===(a=t.state.socket)||void 0===a||a.emit(e.EventType.MESSAGE,{id:t.state.channelId,context:t.state.context,message:{type:e.MessageType.PING}}));var t,n,r,i,o,a}pause(){return(t=this).state.debug&&console.debug(`SocketService::${t.state.context}::pause()`),t.state.manualDisconnect=!0,(null===(n=t.state.keyExchange)||void 0===n?void 0:n.areKeysExchanged())&&t.sendMessage({type:e.MessageType.PAUSE}),void(null===(r=t.state.socket)||void 0===r||r.disconnect());var t,n,r}isConnected(){var e;return null===(e=this.state.socket)||void 0===e?void 0:e.connected}resume(){return(t=this).state.debug&&console.debug(`SocketService::${t.state.context}::resume() connected=${null===(n=t.state.socket)||void 0===n?void 0:n.connected} manualDisconnect=${t.state.manualDisconnect} resumed=${t.state.resumed} keysExchanged=${null===(r=t.state.keyExchange)||void 0===r?void 0:r.areKeysExchanged()}`),(null===(i=t.state.socket)||void 0===i?void 0:i.connected)?t.state.debug&&console.debug("SocketService::resume() already connected."):(null===(o=t.state.socket)||void 0===o||o.connect(),t.state.debug&&console.debug(`SocketService::resume() after connecting socket --\x3e connected=${null===(a=t.state.socket)||void 0===a?void 0:a.connected}`),null===(s=t.state.socket)||void 0===s||s.emit(e.EventType.JOIN_CHANNEL,t.state.channelId,`${t.state.context}_resume`)),(null===(c=t.state.keyExchange)||void 0===c?void 0:c.areKeysExchanged())?t.state.isOriginator||t.sendMessage({type:e.MessageType.READY}):t.state.isOriginator||null===(u=t.state.keyExchange)||void 0===u||u.start({isOriginator:null!==(l=t.state.isOriginator)&&void 0!==l&&l}),t.state.manualDisconnect=!1,void(t.state.resumed=!0);var t,n,r,i,o,a,s,c,u,l}getRPCMethodTracker(){return this.state.rpcMethodTracker}disconnect(e){return function(e,t){var n,r;e.state.debug&&console.debug(`SocketService::${e.state.context}::disconnect()`,t),(null==t?void 0:t.terminate)&&(e.state.channelId=t.channelId,null===(n=e.state.keyExchange)||void 0===n||n.clean()),e.state.rpcMethodTracker={},e.state.manualDisconnect=!0,null===(r=e.state.socket)||void 0===r||r.disconnect()}(this,e)}}function Xv(t){return()=>ln(this,void 0,void 0,(function*(){var n,r,i;const{state:o}=t;if(o.authorized)return;yield(()=>ln(this,void 0,void 0,(function*(){for(;!o.walletInfo;)yield qv(500)})))();const a="7.3".localeCompare((null===(n=o.walletInfo)||void 0===n?void 0:n.version)||"");if(o.debug&&console.debug(`RemoteCommunication HACK 'authorized' version=${null===(r=o.walletInfo)||void 0===r?void 0:r.version} compareValue=${a}`),1!==a)return;const s=o.platformType===e.PlatformType.MobileWeb||o.platformType===e.PlatformType.ReactNative||o.platformType===e.PlatformType.MetaMaskMobileWebview;o.debug&&console.debug(`RemoteCommunication HACK 'authorized' platform=${o.platformType} secure=${s} channel=${o.channelId} walletVersion=${null===(i=o.walletInfo)||void 0===i?void 0:i.version}`),s&&(o.authorized=!0,t.emit(e.EventType.AUTHORIZED))}))}function ew(t){return n=>{const{state:r}=t;r.debug&&console.debug(`RemoteCommunication::${r.context}::on 'channel_created' channelId=${n}`),t.emit(e.EventType.CHANNEL_CREATED,n)}}function tw(t,n){return()=>{var r,i,o,a;const{state:s}=t;if(s.debug&&console.debug(`RemoteCommunication::on 'clients_connected' channel=${s.channelId} keysExchanged=${null===(i=null===(r=s.communicationLayer)||void 0===r?void 0:r.getKeyInfo())||void 0===i?void 0:i.keysExchanged}`),s.analytics){const e=s.isOriginator?Jv.REQUEST:Jv.REQUEST_MOBILE;fn(Object.assign(Object.assign({id:null!==(o=s.channelId)&&void 0!==o?o:"",event:s.reconnection?Jv.RECONNECT:e},s.originatorInfo),{commLayer:n,sdkVersion:s.sdkVersion,walletVersion:null===(a=s.walletInfo)||void 0===a?void 0:a.version,commLayerVersion:Dv}),s.communicationServerUrl).catch((e=>{console.error("Cannot send analytics",e)}))}s.clientsConnected=!0,s.originatorInfoSent=!1,t.emit(e.EventType.CLIENTS_CONNECTED)}}function nw(t,n){return r=>{var i;const{state:o}=t;o.debug&&console.debug(`RemoteCommunication::${o.context}]::on 'clients_disconnected' channelId=${r}`),o.clientsConnected=!1,t.emit(e.EventType.CLIENTS_DISCONNECTED,o.channelId),t.setConnectionStatus(e.ConnectionStatus.DISCONNECTED),o.ready=!1,o.authorized=!1,o.analytics&&o.channelId&&fn({id:o.channelId,event:Jv.DISCONNECTED,sdkVersion:o.sdkVersion,commLayer:n,commLayerVersion:Dv,walletVersion:null===(i=o.walletInfo)||void 0===i?void 0:i.version},o.communicationServerUrl).catch((e=>{console.error("Cannot send analytics",e)}))}}function rw(t){return n=>{var r;const{state:i}=t;if(i.debug&&console.debug(`RemoteCommunication::${i.context}::on 'clients_waiting' numberUsers=${n} ready=${i.ready} autoStarted=${i.originatorConnectStarted}`),t.setConnectionStatus(e.ConnectionStatus.WAITING),t.emit(e.EventType.CLIENTS_WAITING,n),i.originatorConnectStarted){i.debug&&console.debug(`RemoteCommunication::on 'clients_waiting' watch autoStarted=${i.originatorConnectStarted} timeout`,i.autoConnectOptions);const n=(null===(r=i.autoConnectOptions)||void 0===r?void 0:r.timeout)||3e3,o=setTimeout((()=>{i.debug&&console.debug(`RemoteCommunication::on setTimeout(${n}) terminate channelConfig`,i.autoConnectOptions),i.originatorConnectStarted=!1,i.ready||t.setConnectionStatus(e.ConnectionStatus.TIMEOUT),clearTimeout(o)}),n)}}}function iw(t,n){return r=>{var i,o,a,s,c;const{state:u}=t;u.debug&&console.debug(`RemoteCommunication::${u.context}::on commLayer.'keys_exchanged' channel=${u.channelId}`,r),(null===(o=null===(i=u.communicationLayer)||void 0===i?void 0:i.getKeyInfo())||void 0===o?void 0:o.keysExchanged)&&t.setConnectionStatus(e.ConnectionStatus.LINKED),function(e,t){var n,r,i,o;const{state:a}=e;a.debug&&console.debug(`RemoteCommunication::setLastActiveDate() channel=${a.channelId}`,t);const s={channelId:null!==(n=a.channelId)&&void 0!==n?n:"",validUntil:null!==(i=null===(r=a.channelConfig)||void 0===r?void 0:r.validUntil)&&void 0!==i?i:0,lastActive:t.getTime()};null===(o=a.storageManager)||void 0===o||o.persistChannelConfig(s)}(t,new Date),u.analytics&&u.channelId&&fn({id:u.channelId,event:r.isOriginator?Jv.CONNECTED:Jv.CONNECTED_MOBILE,sdkVersion:u.sdkVersion,commLayer:n,commLayerVersion:Dv,walletVersion:null===(a=u.walletInfo)||void 0===a?void 0:a.version},u.communicationServerUrl).catch((e=>{console.error("Cannot send analytics",e)})),u.isOriginator=r.isOriginator,r.isOriginator||(null===(s=u.communicationLayer)||void 0===s||s.sendMessage({type:e.MessageType.READY}),u.ready=!0,u.paused=!1),r.isOriginator&&!u.originatorInfoSent&&(null===(c=u.communicationLayer)||void 0===c||c.sendMessage({type:e.MessageType.ORIGINATOR_INFO,originatorInfo:u.originatorInfo,originator:u.originatorInfo}),u.originatorInfoSent=!0)}}function ow(t){return n=>{let r=n;n.message&&(r=r.message),function(t,n){const{state:r}=n;if(r.debug&&console.debug(`RemoteCommunication::${r.context}::on 'message' typeof=${typeof t}`,t),n.state.ready=!0,r.isOriginator||t.type!==e.MessageType.ORIGINATOR_INFO)if(r.isOriginator&&t.type===e.MessageType.WALLET_INFO)!function(e,t){const{state:n}=e;n.walletInfo=t.walletInfo,n.paused=!1}(n,t);else{if(t.type===e.MessageType.TERMINATE)!function(t){const{state:n}=t;n.isOriginator&&(cw({options:{terminate:!0,sendMessage:!1},instance:t}),console.debug(),t.emit(e.EventType.TERMINATE))}(n);else if(t.type===e.MessageType.PAUSE)!function(t){const{state:n}=t;n.paused=!0,t.setConnectionStatus(e.ConnectionStatus.PAUSED)}(n);else if(t.type===e.MessageType.READY&&r.isOriginator)!function(t){const{state:n}=t;t.setConnectionStatus(e.ConnectionStatus.LINKED);const r=n.paused;n.paused=!1,t.emit(e.EventType.CLIENTS_READY,{isOriginator:n.isOriginator,walletInfo:n.walletInfo}),r&&(n.authorized=!0,t.emit(e.EventType.AUTHORIZED))}(n);else{if(t.type===e.MessageType.OTP&&r.isOriginator)return void function(t,n){var r;const{state:i}=t;t.emit(e.EventType.OTP,n.otpAnswer),1==="6.6".localeCompare((null===(r=i.walletInfo)||void 0===r?void 0:r.version)||"")&&(console.warn("RemoteCommunication::on 'otp' -- backward compatibility <6.6 -- triger eth_requestAccounts"),t.emit(e.EventType.SDK_RPC_CALL,{method:Lv,params:[]}))}(n,t);t.type===e.MessageType.AUTHORIZED&&r.isOriginator&&function(t){const{state:n}=t;n.authorized=!0,t.emit(e.EventType.AUTHORIZED)}(n)}n.emit(e.EventType.MESSAGE,t)}else!function(t,n){var r;const{state:i}=t;null===(r=i.communicationLayer)||void 0===r||r.sendMessage({type:e.MessageType.WALLET_INFO,walletInfo:i.walletInfo}),i.originatorInfo=n.originatorInfo||n.originator,t.emit(e.EventType.CLIENTS_READY,{isOriginator:i.isOriginator,originatorInfo:i.originatorInfo}),i.paused=!1}(n,t)}(r,t)}}function aw(e){return()=>{const{state:t}=e;t.debug&&console.debug("RemoteCommunication::on 'socket_reconnect' -- reset key exchange status / set ready to false"),t.ready=!1,t.authorized=!1,Pv(t),e.emitServiceStatusEvent()}}function sw(e){return()=>{const{state:t}=e;t.debug&&console.debug("RemoteCommunication::on 'socket_Disconnected' set ready to false"),t.ready=!1}}function cw({options:t,instance:n}){var r,i,o,a,s,c;const{state:u}=n;u.debug&&console.debug(`RemoteCommunication::disconnect() channel=${u.channelId}`,t),u.ready=!1,u.paused=!1,(null==t?void 0:t.terminate)?(null===(r=u.storageManager)||void 0===r||r.terminate(null!==(i=u.channelId)&&void 0!==i?i:""),(null===(o=u.communicationLayer)||void 0===o?void 0:o.getKeyInfo().keysExchanged)&&(null==t?void 0:t.sendMessage)&&(null===(a=u.communicationLayer)||void 0===a||a.sendMessage({type:e.MessageType.TERMINATE})),u.channelId=q(),t.channelId=u.channelId,u.channelConfig=void 0,u.originatorConnectStarted=!1,null===(s=u.communicationLayer)||void 0===s||s.disconnect(t),n.setConnectionStatus(e.ConnectionStatus.TERMINATED)):(null===(c=u.communicationLayer)||void 0===c||c.disconnect(t),n.setConnectionStatus(e.ConnectionStatus.DISCONNECTED))}!function(e){e.SOCKET="socket"}(e.CommunicationLayerPreference||(e.CommunicationLayerPreference={})),function(e){e.NonBrowser="nodejs",e.MetaMaskMobileWebview="in-app-browser",e.DesktopWeb="web-desktop",e.MobileWeb="web-mobile",e.ReactNative="react-native"}(e.PlatformType||(e.PlatformType={})),function(e){e.REQUEST="sdk_connect_request_started",e.REQUEST_MOBILE="sdk_connect_request_started_mobile",e.RECONNECT="sdk_reconnect_request_started",e.CONNECTED="sdk_connection_established",e.CONNECTED_MOBILE="sdk_connection_established_mobile",e.AUTHORIZED="sdk_connection_authorized",e.REJECTED="sdk_connection_rejected",e.TERMINATED="sdk_connection_terminated",e.DISCONNECTED="sdk_disconnected",e.SDK_USE_EXTENSION="sdk_use_extension",e.SDK_EXTENSION_UTILIZED="sdk_extension_utilized",e.SDK_USE_INAPP_BROWSER="sdk_use_inapp_browser"}(Jv||(Jv={}));class uw extends N.EventEmitter2{constructor({platformType:t,communicationLayerPreference:n,otherPublicKey:r,reconnect:i,walletInfo:o,dappMetadata:a,transports:s,context:c,ecies:u,analytics:l=!1,storage:f,sdkVersion:d,communicationServerUrl:A=Tv,logging:h,autoConnect:p={timeout:3e3}}){super(),this.state={ready:!1,authorized:!1,isOriginator:!1,paused:!1,platformType:"metamask-mobile",analytics:!1,reconnection:!1,originatorInfoSent:!1,communicationServerUrl:Tv,context:"",clientsConnected:!1,sessionDuration:Ov,originatorConnectStarted:!1,debug:!1,_connectionStatus:e.ConnectionStatus.DISCONNECTED},this.state.otherPublicKey=r,this.state.dappMetadata=a,this.state.walletInfo=o,this.state.transports=s,this.state.platformType=t,this.state.analytics=l,this.state.isOriginator=!r,this.state.communicationServerUrl=A,this.state.context=c,this.state.sdkVersion=d,this.setMaxListeners(50),this.setConnectionStatus(e.ConnectionStatus.DISCONNECTED),(null==f?void 0:f.duration)&&(this.state.sessionDuration=Ov),this.state.storageOptions=f,this.state.autoConnectOptions=p,this.state.debug=!0===(null==h?void 0:h.remoteLayer),this.state.logging=h,(null==f?void 0:f.storageManager)&&(this.state.storageManager=f.storageManager),this.initCommunicationLayer({communicationLayerPreference:n,otherPublicKey:r,reconnect:i,ecies:u,communicationServerUrl:A}),this.emitServiceStatusEvent()}initCommunicationLayer({communicationLayerPreference:t,otherPublicKey:n,reconnect:r,ecies:i,communicationServerUrl:o=Tv}){return function({communicationLayerPreference:t,otherPublicKey:n,reconnect:r,ecies:i,communicationServerUrl:o=Tv,instance:a}){var s,c,u,l,f;const{state:d}=a;if(t!==e.CommunicationLayerPreference.SOCKET)throw new Error("Invalid communication protocol");d.communicationLayer=new $v({communicationLayerPreference:t,otherPublicKey:n,reconnect:r,transports:d.transports,communicationServerUrl:o,context:d.context,ecies:i,logging:d.logging});let A="undefined"!=typeof document&&document.URL||"",h="undefined"!=typeof document&&document.title||"";(null===(s=d.dappMetadata)||void 0===s?void 0:s.url)&&(A=d.dappMetadata.url),(null===(c=d.dappMetadata)||void 0===c?void 0:c.name)&&(h=d.dappMetadata.name);const p={url:A,title:h,source:null===(u=d.dappMetadata)||void 0===u?void 0:u.source,icon:(null===(l=d.dappMetadata)||void 0===l?void 0:l.iconUrl)||(null===(f=d.dappMetadata)||void 0===f?void 0:f.base64Icon),platform:d.platformType,apiVersion:Dv};d.originatorInfo=p;const g={[e.EventType.AUTHORIZED]:Xv(a),[e.EventType.MESSAGE]:ow(a),[e.EventType.CLIENTS_CONNECTED]:tw(a,t),[e.EventType.KEYS_EXCHANGED]:iw(a,t),[e.EventType.SOCKET_DISCONNECTED]:sw(a),[e.EventType.SOCKET_RECONNECT]:aw(a),[e.EventType.CLIENTS_DISCONNECTED]:nw(a,t),[e.EventType.KEY_INFO]:()=>{a.emitServiceStatusEvent()},[e.EventType.CHANNEL_CREATED]:ew(a),[e.EventType.CLIENTS_WAITING]:rw(a),[e.EventType.RPC_UPDATE]:t=>{a.emit(e.EventType.RPC_UPDATE,t)}};for(const[e,t]of Object.entries(g))try{d.communicationLayer.on(e,t)}catch(n){console.error(`Error registering handler for ${e}:`,n)}}({communicationLayerPreference:t,otherPublicKey:n,reconnect:r,ecies:i,communicationServerUrl:o,instance:this})}originatorSessionConnect(){return ln(this,void 0,void 0,(function*(){const e=yield function(e){var t,n,r;return ln(this,void 0,void 0,(function*(){const{state:i}=e;if(!i.storageManager)return void(i.debug&&console.debug("RemoteCommunication::connect() no storage manager defined - skip"));const o=yield i.storageManager.getPersistedChannelConfig(null!==(t=i.channelId)&&void 0!==t?t:"");if(i.debug&&console.debug(`RemoteCommunication::connect() autoStarted=${i.originatorConnectStarted} channelConfig`,o),null===(n=i.communicationLayer)||void 0===n?void 0:n.isConnected())return i.debug&&console.debug("RemoteCommunication::connect() socket already connected - skip"),o;if(o){if(o.validUntil>Date.now())return i.channelConfig=o,i.originatorConnectStarted=!0,i.channelId=null==o?void 0:o.channelId,i.reconnection=!0,null===(r=i.communicationLayer)||void 0===r||r.connectToChannel({channelId:o.channelId,isOriginator:!0}),o;i.debug&&console.log("RemoteCommunication::autoConnect Session has expired")}i.originatorConnectStarted=!1}))}(this);return e}))}generateChannelIdConnect(){return ln(this,void 0,void 0,(function*(){return function(e){var t,n,r,i,o;if(!e.communicationLayer)throw new Error("communication layer not initialized");if(e.ready)throw new Error("Channel already connected");if(e.channelId&&(null===(t=e.communicationLayer)||void 0===t?void 0:t.isConnected()))return console.warn("Channel already exists -- interrupt generateChannelId",e.channelConfig),e.channelConfig={channelId:e.channelId,validUntil:Date.now()+e.sessionDuration},null===(n=e.storageManager)||void 0===n||n.persistChannelConfig(e.channelConfig),{channelId:e.channelId,pubKey:null===(i=null===(r=e.communicationLayer)||void 0===r?void 0:r.getKeyInfo())||void 0===i?void 0:i.ecies.public};e.debug&&console.debug("RemoteCommunication::generateChannelId()"),Pv(e);const a=e.communicationLayer.createChannel();e.debug&&console.debug("RemoteCommunication::generateChannelId() channel created",a);const s={channelId:a.channelId,validUntil:Date.now()+e.sessionDuration};return e.channelId=a.channelId,e.channelConfig=s,null===(o=e.storageManager)||void 0===o||o.persistChannelConfig(s),{channelId:e.channelId,pubKey:a.pubKey}}(this.state)}))}clean(){return Pv(this.state)}connectToChannel(e,t){return function({channelId:e,withKeyExchange:t,state:n}){var r,i,o;if(!U(e))throw console.debug(`RemoteCommunication::${n.context}::connectToChannel() invalid channel channelId=${e}`),new Error(`Invalid channel ${e}`);if(n.debug&&console.debug(`RemoteCommunication::${n.context}::connectToChannel() channelId=${e}`),null===(r=n.communicationLayer)||void 0===r?void 0:r.isConnected())return void console.debug(`RemoteCommunication::${n.context}::connectToChannel() already connected - interrup connection.`);n.channelId=e,null===(i=n.communicationLayer)||void 0===i||i.connectToChannel({channelId:e,withKeyExchange:t});const a={channelId:e,validUntil:Date.now()+n.sessionDuration};n.channelConfig=a,null===(o=n.storageManager)||void 0===o||o.persistChannelConfig(a)}({channelId:e,withKeyExchange:t,state:this.state})}sendMessage(t){return function(t,n){var r,i;return ln(this,void 0,void 0,(function*(){const{state:o}=t;o.debug&&console.log(`RemoteCommunication::${o.context}::sendMessage paused=${o.paused} ready=${o.ready} authorized=${o.authorized} socket=${null===(r=o.communicationLayer)||void 0===r?void 0:r.isConnected()} clientsConnected=${o.clientsConnected} status=${o._connectionStatus}`,n),!o.paused&&o.ready&&(null===(i=o.communicationLayer)||void 0===i?void 0:i.isConnected())&&o.clientsConnected||(o.debug&&console.log(`RemoteCommunication::${o.context}::sendMessage SKIP message waiting for MM mobile readiness.`),yield new Promise((n=>{t.once(e.EventType.CLIENTS_READY,n)})),o.debug&&console.log(`RemoteCommunication::${o.context}::sendMessage AFTER SKIP / READY -- sending pending message`));try{yield function(t,n){return ln(this,void 0,void 0,(function*(){return new Promise((r=>{var i,o,a,s;const{state:c}=t;if(c.debug&&console.log(`RemoteCommunication::${c.context}::sendMessage::handleAuthorization ready=${c.ready} authorized=${c.authorized} method=${n.method}`),1==="7.3".localeCompare((null===(i=c.walletInfo)||void 0===i?void 0:i.version)||""))return c.debug&&console.debug(`compatibility hack wallet version > ${null===(o=c.walletInfo)||void 0===o?void 0:o.version}`),null===(a=c.communicationLayer)||void 0===a||a.sendMessage(n),void r();!c.isOriginator||c.authorized?(null===(s=c.communicationLayer)||void 0===s||s.sendMessage(n),r()):t.once(e.EventType.AUTHORIZED,(()=>{var e;c.debug&&console.log(`RemoteCommunication::${c.context}::sendMessage AFTER SKIP / AUTHORIZED -- sending pending message`),null===(e=c.communicationLayer)||void 0===e||e.sendMessage(n),r()}))}))}))}(t,n)}catch(e){throw console.error(`RemoteCommunication::${o.context}::sendMessage ERROR`,e),e}}))}(this,t)}testStorage(){return ln(this,void 0,void 0,(function*(){return function(e){var t,n;return ln(this,void 0,void 0,(function*(){const r=yield null===(t=e.storageManager)||void 0===t?void 0:t.getPersistedChannelConfig(null!==(n=e.channelId)&&void 0!==n?n:"");console.debug("RemoteCommunication.testStorage() res",r)}))}(this.state)}))}getChannelConfig(){return this.state.channelConfig}isReady(){return this.state.ready}isConnected(){var e;return null===(e=this.state.communicationLayer)||void 0===e?void 0:e.isConnected()}isAuthorized(){return this.state.authorized}isPaused(){return this.state.paused}getCommunicationLayer(){return this.state.communicationLayer}ping(){var e;this.state.debug&&console.debug(`RemoteCommunication::ping() channel=${this.state.channelId}`),null===(e=this.state.communicationLayer)||void 0===e||e.ping()}keyCheck(){var e;this.state.debug&&console.debug(`RemoteCommunication::keyCheck() channel=${this.state.channelId}`),null===(e=this.state.communicationLayer)||void 0===e||e.keyCheck()}setConnectionStatus(t){this.state._connectionStatus!==t&&(this.state._connectionStatus=t,this.emit(e.EventType.CONNECTION_STATUS,t),this.emitServiceStatusEvent())}emitServiceStatusEvent(){this.emit(e.EventType.SERVICE_STATUS,this.getServiceStatus())}getConnectionStatus(){return this.state._connectionStatus}getServiceStatus(){return{originatorInfo:this.state.originatorInfo,keyInfo:this.getKeyInfo(),connectionStatus:this.state._connectionStatus,channelConfig:this.state.channelConfig,channelId:this.state.channelId}}getKeyInfo(){var e;return null===(e=this.state.communicationLayer)||void 0===e?void 0:e.getKeyInfo()}resetKeys(){var e;null===(e=this.state.communicationLayer)||void 0===e||e.resetKeys()}setOtherPublicKey(e){var t;const n=null===(t=this.state.communicationLayer)||void 0===t?void 0:t.getKeyExchange();if(!n)throw new Error("KeyExchange is not initialized.");n.getOtherPublicKey()!==e&&n.setOtherPublicKey(e)}pause(){var t;this.state.debug&&console.debug(`RemoteCommunication::pause() channel=${this.state.channelId}`),null===(t=this.state.communicationLayer)||void 0===t||t.pause(),this.setConnectionStatus(e.ConnectionStatus.PAUSED)}getVersion(){return Dv}resume(){return function(t){var n;const{state:r}=t;r.debug&&console.debug(`RemoteCommunication::resume() channel=${r.channelId}`),null===(n=r.communicationLayer)||void 0===n||n.resume(),t.setConnectionStatus(e.ConnectionStatus.LINKED)}(this)}getChannelId(){return this.state.channelId}getRPCMethodTracker(){var e;return null===(e=this.state.communicationLayer)||void 0===e?void 0:e.getRPCMethodTracker()}disconnect(e){return cw({options:e,instance:this})}}function lw(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{c(r.next(e))}catch(e){o(e)}}function s(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){e.done?i(e.value):function(e){return e instanceof n?e:new n((function(t){t(e)}))}(e.value).then(a,s)}c((r=r.apply(e,t||[])).next())}))}function fw(e,t,n,r){if("a"===n&&!r)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(e):r?r.value:t.get(e)}function dw(e,t,n,r,i){if("m"===r)throw new TypeError("Private method is not writable");if("a"===r&&!i)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===r?i.call(e,n):i?i.value=n:t.set(e,n),n}!function(e){e.RENEW="renew",e.LINK="link"}(Wv||(Wv={})),"function"==typeof SuppressedError&&SuppressedError;var Aw={},hw={},pw={};function gw(){}function yw(){yw.init.call(this)}function mw(e){return void 0===e._maxListeners?yw.defaultMaxListeners:e._maxListeners}function bw(e,t,n,r){var i,o,a;if("function"!=typeof n)throw new TypeError('"listener" argument must be a function');if((o=e._events)?(o.newListener&&(e.emit("newListener",t,n.listener?n.listener:n),o=e._events),a=o[t]):(o=e._events=new gw,e._eventsCount=0),a){if("function"==typeof a?a=o[t]=r?[n,a]:[a,n]:r?a.unshift(n):a.push(n),!a.warned&&(i=mw(e))&&i>0&&a.length>i){a.warned=!0;var s=new Error("Possible EventEmitter memory leak detected. "+a.length+" "+t+" listeners added. Use emitter.setMaxListeners() to increase limit");s.name="MaxListenersExceededWarning",s.emitter=e,s.type=t,s.count=a.length,function(e){"function"==typeof console.warn?console.warn(e):console.log(e)}(s)}}else a=o[t]=n,++e._eventsCount;return e}function vw(e,t,n){var r=!1;function i(){e.removeListener(t,i),r||(r=!0,n.apply(e,arguments))}return i.listener=n,i}function ww(e){var t=this._events;if(t){var n=t[e];if("function"==typeof n)return 1;if(n)return n.length}return 0}function Ew(e,t){for(var n=new Array(t);t--;)n[t]=e[t];return n}gw.prototype=Object.create(null),yw.EventEmitter=yw,yw.usingDomains=!1,yw.prototype.domain=void 0,yw.prototype._events=void 0,yw.prototype._maxListeners=void 0,yw.defaultMaxListeners=10,yw.init=function(){this.domain=null,yw.usingDomains&&(void 0).active,this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=new gw,this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},yw.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||isNaN(e))throw new TypeError('"n" argument must be a positive number');return this._maxListeners=e,this},yw.prototype.getMaxListeners=function(){return mw(this)},yw.prototype.emit=function(e){var t,n,r,i,o,a,s,c="error"===e;if(a=this._events)c=c&&null==a.error;else if(!c)return!1;if(s=this.domain,c){if(t=arguments[1],!s){if(t instanceof Error)throw t;var u=new Error('Uncaught, unspecified "error" event. ('+t+")");throw u.context=t,u}return t||(t=new Error('Uncaught, unspecified "error" event')),t.domainEmitter=this,t.domain=s,t.domainThrown=!1,s.emit("error",t),!1}if(!(n=a[e]))return!1;var l="function"==typeof n;switch(r=arguments.length){case 1:!function(e,t,n){if(t)e.call(n);else for(var r=e.length,i=Ew(e,r),o=0;o0;)if(n[o]===t||n[o].listener&&n[o].listener===t){a=n[o].listener,i=o;break}if(i<0)return this;if(1===n.length){if(n[0]=void 0,0==--this._eventsCount)return this._events=new gw,this;delete r[e]}else!function(e,t){for(var n=t,r=n+1,i=e.length;r0?Reflect.ownKeys(this._events):[]};var Iw=o(Object.freeze({__proto__:null,EventEmitter:yw,default:yw}));Object.defineProperty(pw,"__esModule",{value:!0});const Bw=Iw;function Cw(e,t,n){try{Reflect.apply(e,t,n)}catch(e){setTimeout((()=>{throw e}))}}let _w=class extends Bw.EventEmitter{emit(e,...t){let n="error"===e;const r=this._events;if(void 0!==r)n=n&&void 0===r.error;else if(!n)return!1;if(n){let e;if(t.length>0&&([e]=t),e instanceof Error)throw e;const n=new Error("Unhandled error."+(e?` (${e.message})`:""));throw n.context=e,n}const i=r[e];if(void 0===i)return!1;if("function"==typeof i)Cw(i,this,t);else{const e=i.length,n=function(e){const t=e.length,n=new Array(t);for(let r=0;ra.depthLimit)return void Ow(Mw,e,t,i);if(void 0!==a.edgesLimit&&n+1>a.edgesLimit)return void Ow(Mw,e,t,i);if(r.push(e),Array.isArray(e))for(s=0;st?1:0}function Uw(e,t,n,r){void 0===r&&(r=Tw());var i,o=Fw(e,"",0,[],void 0,0,r)||e;try{i=0===Dw.length?JSON.stringify(o,t,n):JSON.stringify(o,jw(t),n)}catch(e){return JSON.stringify("[unable to serialize, circular reference is too complex to analyze]")}finally{for(;0!==Rw.length;){var a=Rw.pop();4===a.length?Object.defineProperty(a[0],a[1],a[3]):a[0][a[1]]=a[2]}}return i}function Fw(e,t,n,r,i,o,a){var s;if(o+=1,"object"==typeof e&&null!==e){for(s=0;sa.depthLimit)return void Ow(Mw,e,t,i);if(void 0!==a.edgesLimit&&n+1>a.edgesLimit)return void Ow(Mw,e,t,i);if(r.push(e),Array.isArray(e))for(s=0;s0)for(var r=0;r=1e3&&e<=4999}(e))throw new Error('"code" must be an integer such that: 1000 <= code <= 4999');super(e,t,n)}};var Yw={},Kw={};Object.defineProperty(Kw,"__esModule",{value:!0}),Kw.errorValues=Kw.errorCodes=void 0,Kw.errorCodes={rpc:{invalidInput:-32e3,resourceNotFound:-32001,resourceUnavailable:-32002,transactionRejected:-32003,methodNotSupported:-32004,limitExceeded:-32005,parse:-32700,invalidRequest:-32600,methodNotFound:-32601,invalidParams:-32602,internal:-32603},provider:{userRejectedRequest:4001,unauthorized:4100,unsupportedMethod:4200,disconnected:4900,chainDisconnected:4901}},Kw.errorValues={"-32700":{standard:"JSON RPC 2.0",message:"Invalid JSON was received by the server. An error occurred on the server while parsing the JSON text."},"-32600":{standard:"JSON RPC 2.0",message:"The JSON sent is not a valid Request object."},"-32601":{standard:"JSON RPC 2.0",message:"The method does not exist / is not available."},"-32602":{standard:"JSON RPC 2.0",message:"Invalid method parameter(s)."},"-32603":{standard:"JSON RPC 2.0",message:"Internal JSON-RPC error."},"-32000":{standard:"EIP-1474",message:"Invalid input."},"-32001":{standard:"EIP-1474",message:"Resource not found."},"-32002":{standard:"EIP-1474",message:"Resource unavailable."},"-32003":{standard:"EIP-1474",message:"Transaction rejected."},"-32004":{standard:"EIP-1474",message:"Method not supported."},"-32005":{standard:"EIP-1474",message:"Request limit exceeded."},4001:{standard:"EIP-1193",message:"User rejected the request."},4100:{standard:"EIP-1193",message:"The requested account and/or method has not been authorized by the user."},4200:{standard:"EIP-1193",message:"The requested method is not supported by this Ethereum provider."},4900:{standard:"EIP-1193",message:"The provider is disconnected from all chains."},4901:{standard:"EIP-1193",message:"The provider is disconnected from the specified chain."}},function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.serializeError=e.isValidCode=e.getMessageFromCode=e.JSON_RPC_SERVER_ERROR_MESSAGE=void 0;const t=Kw,n=Qw,r=t.errorCodes.rpc.internal,i={code:r,message:o(r)};function o(n,r="Unspecified error message. This is a bug, please report it."){if(Number.isInteger(n)){const r=n.toString();if(u(t.errorValues,r))return t.errorValues[r].message;if(s(n))return e.JSON_RPC_SERVER_ERROR_MESSAGE}return r}function a(e){if(!Number.isInteger(e))return!1;const n=e.toString();return!!t.errorValues[n]||!!s(e)}function s(e){return e>=-32099&&e<=-32e3}function c(e){return e&&"object"==typeof e&&!Array.isArray(e)?Object.assign({},e):e}function u(e,t){return Object.prototype.hasOwnProperty.call(e,t)}e.JSON_RPC_SERVER_ERROR_MESSAGE="Unspecified server error.",e.getMessageFromCode=o,e.isValidCode=a,e.serializeError=function(e,{fallbackError:t=i,shouldIncludeStack:r=!1}={}){var s,l;if(!t||!Number.isInteger(t.code)||"string"!=typeof t.message)throw new Error("Must provide fallback error with integer number code and string message.");if(e instanceof n.EthereumRpcError)return e.serialize();const f={};if(e&&"object"==typeof e&&!Array.isArray(e)&&u(e,"code")&&a(e.code)){const t=e;f.code=t.code,t.message&&"string"==typeof t.message?(f.message=t.message,u(t,"data")&&(f.data=t.data)):(f.message=o(f.code),f.data={originalError:c(e)})}else{f.code=t.code;const n=null===(s=e)||void 0===s?void 0:s.message;f.message=n&&"string"==typeof n?n:t.message,f.data={originalError:c(e)}}const d=null===(l=e)||void 0===l?void 0:l.stack;return r&&e&&d&&"string"==typeof d&&(f.stack=d),f}}(Yw);var zw={};Object.defineProperty(zw,"__esModule",{value:!0}),zw.ethErrors=void 0;const Vw=Qw,Jw=Yw,Ww=Kw;function Zw(e,t){const[n,r]=Xw(t);return new Vw.EthereumRpcError(e,n||Jw.getMessageFromCode(e),r)}function $w(e,t){const[n,r]=Xw(t);return new Vw.EthereumProviderError(e,n||Jw.getMessageFromCode(e),r)}function Xw(e){if(e){if("string"==typeof e)return[e];if("object"==typeof e&&!Array.isArray(e)){const{message:t,data:n}=e;if(t&&"string"!=typeof t)throw new Error("Must specify string message.");return[t||void 0,n]}}return[]}zw.ethErrors={rpc:{parse:e=>Zw(Ww.errorCodes.rpc.parse,e),invalidRequest:e=>Zw(Ww.errorCodes.rpc.invalidRequest,e),invalidParams:e=>Zw(Ww.errorCodes.rpc.invalidParams,e),methodNotFound:e=>Zw(Ww.errorCodes.rpc.methodNotFound,e),internal:e=>Zw(Ww.errorCodes.rpc.internal,e),server:e=>{if(!e||"object"!=typeof e||Array.isArray(e))throw new Error("Ethereum RPC Server errors must provide single object argument.");const{code:t}=e;if(!Number.isInteger(t)||t>-32005||t<-32099)throw new Error('"code" must be an integer such that: -32099 <= code <= -32005');return Zw(t,e)},invalidInput:e=>Zw(Ww.errorCodes.rpc.invalidInput,e),resourceNotFound:e=>Zw(Ww.errorCodes.rpc.resourceNotFound,e),resourceUnavailable:e=>Zw(Ww.errorCodes.rpc.resourceUnavailable,e),transactionRejected:e=>Zw(Ww.errorCodes.rpc.transactionRejected,e),methodNotSupported:e=>Zw(Ww.errorCodes.rpc.methodNotSupported,e),limitExceeded:e=>Zw(Ww.errorCodes.rpc.limitExceeded,e)},provider:{userRejectedRequest:e=>$w(Ww.errorCodes.provider.userRejectedRequest,e),unauthorized:e=>$w(Ww.errorCodes.provider.unauthorized,e),unsupportedMethod:e=>$w(Ww.errorCodes.provider.unsupportedMethod,e),disconnected:e=>$w(Ww.errorCodes.provider.disconnected,e),chainDisconnected:e=>$w(Ww.errorCodes.provider.chainDisconnected,e),custom:e=>{if(!e||"object"!=typeof e||Array.isArray(e))throw new Error("Ethereum Provider custom errors must provide single object argument.");const{code:t,message:n,data:r}=e;if(!n||"string"!=typeof n)throw new Error('"message" must be a nonempty string');return new Vw.EthereumProviderError(t,n,r)}}},function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.getMessageFromCode=e.serializeError=e.EthereumProviderError=e.EthereumRpcError=e.ethErrors=e.errorCodes=void 0;const t=Qw;Object.defineProperty(e,"EthereumRpcError",{enumerable:!0,get:function(){return t.EthereumRpcError}}),Object.defineProperty(e,"EthereumProviderError",{enumerable:!0,get:function(){return t.EthereumProviderError}});const n=Yw;Object.defineProperty(e,"serializeError",{enumerable:!0,get:function(){return n.serializeError}}),Object.defineProperty(e,"getMessageFromCode",{enumerable:!0,get:function(){return n.getMessageFromCode}});const r=zw;Object.defineProperty(e,"ethErrors",{enumerable:!0,get:function(){return r.ethErrors}});const i=Kw;Object.defineProperty(e,"errorCodes",{enumerable:!0,get:function(){return i.errorCodes}})}(Sw);var eE=Array.isArray,tE=Object.keys,nE=Object.prototype.hasOwnProperty,rE={},iE={},oE={};Object.defineProperty(oE,"__esModule",{value:!0}),oE.getUniqueId=void 0;const aE=4294967295;let sE=Math.floor(Math.random()*aE);oE.getUniqueId=function(){return sE=(sE+1)%aE,sE},Object.defineProperty(iE,"__esModule",{value:!0}),iE.createIdRemapMiddleware=void 0;const cE=oE;iE.createIdRemapMiddleware=function(){return(e,t,n,r)=>{const i=e.id,o=cE.getUniqueId();e.id=o,t.id=o,n((n=>{e.id=i,t.id=i,n()}))}};var uE={};Object.defineProperty(uE,"__esModule",{value:!0}),uE.createAsyncMiddleware=void 0,uE.createAsyncMiddleware=function(e){return async(t,n,r,i)=>{let o;const a=new Promise((e=>{o=e}));let s=null,c=!1;const u=async()=>{c=!0,r((e=>{s=e,o()})),await a};try{await e(t,n,u),c?(await a,s(null)):i(null)}catch(e){s?s(e):i(e)}}};var lE={};Object.defineProperty(lE,"__esModule",{value:!0}),lE.createScaffoldMiddleware=void 0,lE.createScaffoldMiddleware=function(e){return(t,n,r,i)=>{const o=e[t.method];return void 0===o?r():"function"==typeof o?o(t,n,r,i):(n.result=o,i())}};var fE={},dE=r&&r.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(fE,"__esModule",{value:!0}),fE.JsonRpcEngine=void 0;const AE=dE(pw),hE=Sw;class pE extends AE.default{constructor(){super(),this._middleware=[]}push(e){this._middleware.push(e)}handle(e,t){if(t&&"function"!=typeof t)throw new Error('"callback" must be a function if provided.');return Array.isArray(e)?t?this._handleBatch(e,t):this._handleBatch(e):t?this._handle(e,t):this._promiseHandle(e)}asMiddleware(){return async(e,t,n,r)=>{try{const[i,o,a]=await pE._runAllMiddleware(e,t,this._middleware);return o?(await pE._runReturnHandlers(a),r(i)):n((async e=>{try{await pE._runReturnHandlers(a)}catch(t){return e(t)}return e()}))}catch(e){return r(e)}}}async _handleBatch(e,t){try{const n=await Promise.all(e.map(this._promiseHandle.bind(this)));return t?t(null,n):n}catch(e){if(t)return t(e);throw e}}_promiseHandle(e){return new Promise((t=>{this._handle(e,((e,n)=>{t(n)}))}))}async _handle(e,t){if(!e||Array.isArray(e)||"object"!=typeof e){const n=new hE.EthereumRpcError(hE.errorCodes.rpc.invalidRequest,"Requests must be plain objects. Received: "+typeof e,{request:e});return t(n,{id:void 0,jsonrpc:"2.0",error:n})}if("string"!=typeof e.method){const n=new hE.EthereumRpcError(hE.errorCodes.rpc.invalidRequest,"Must specify a string method. Received: "+typeof e.method,{request:e});return t(n,{id:e.id,jsonrpc:"2.0",error:n})}const n=Object.assign({},e),r={id:n.id,jsonrpc:n.jsonrpc};let i=null;try{await this._processRequest(n,r)}catch(e){i=e}return i&&(delete r.result,r.error||(r.error=hE.serializeError(i))),t(i,r)}async _processRequest(e,t){const[n,r,i]=await pE._runAllMiddleware(e,t,this._middleware);if(pE._checkForCompletion(e,t,r),await pE._runReturnHandlers(i),n)throw n}static async _runAllMiddleware(e,t,n){const r=[];let i=null,o=!1;for(const a of n)if([i,o]=await pE._runMiddleware(e,t,a,r),o)break;return[i,o,r.reverse()]}static _runMiddleware(e,t,n,r){return new Promise((i=>{const o=e=>{const n=e||t.error;n&&(t.error=hE.serializeError(n)),i([n,!0])},a=n=>{t.error?o(t.error):(n&&("function"!=typeof n&&o(new hE.EthereumRpcError(hE.errorCodes.rpc.internal,`JsonRpcEngine: "next" return handlers must be functions. Received "${typeof n}" for request:\n${gE(e)}`,{request:e})),r.push(n)),i([null,!1]))};try{n(e,t,a,o)}catch(e){o(e)}}))}static async _runReturnHandlers(e){for(const t of e)await new Promise(((e,n)=>{t((t=>t?n(t):e()))}))}static _checkForCompletion(e,t,n){if(!("result"in t)&&!("error"in t))throw new hE.EthereumRpcError(hE.errorCodes.rpc.internal,`JsonRpcEngine: Response has no error or result for request:\n${gE(e)}`,{request:e});if(!n)throw new hE.EthereumRpcError(hE.errorCodes.rpc.internal,`JsonRpcEngine: Nothing ended request:\n${gE(e)}`,{request:e})}}function gE(e){return JSON.stringify(e,null,2)}fE.JsonRpcEngine=pE;var yE={};Object.defineProperty(yE,"__esModule",{value:!0}),yE.mergeMiddleware=void 0;const mE=fE;yE.mergeMiddleware=function(e){const t=new mE.JsonRpcEngine;return e.forEach((e=>t.push(e))),t.asMiddleware()},function(e){var t=r&&r.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),n=r&&r.__exportStar||function(e,n){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(n,r)||t(n,e,r)};Object.defineProperty(e,"__esModule",{value:!0}),n(iE,e),n(uE,e),n(lE,e),n(oE,e),n(fE,e),n(yE,e)}(rE);var bE={};Object.defineProperty(bE,"__esModule",{value:!0});bE.default={errors:{disconnected:()=>"MetaMask: Disconnected from chain. Attempting to connect.",permanentlyDisconnected:()=>"MetaMask: Disconnected from MetaMask background. Page reload required.",sendSiteMetadata:()=>"MetaMask: Failed to send site metadata. This is an internal error, please report this bug.",unsupportedSync:e=>`MetaMask: The MetaMask Ethereum provider does not support synchronous methods like ${e} without a callback parameter.`,invalidDuplexStream:()=>"Must provide a Node.js-style duplex stream.",invalidNetworkParams:()=>"MetaMask: Received invalid network parameters. Please report this bug.",invalidRequestArgs:()=>"Expected a single, non-array, object argument.",invalidRequestMethod:()=>"'args.method' must be a non-empty string.",invalidRequestParams:()=>"'args.params' must be an object or array if provided.",invalidLoggerObject:()=>"'args.logger' must be an object if provided.",invalidLoggerMethod:e=>`'args.logger' must include required method '${e}'.`},info:{connected:e=>`MetaMask: Connected to chain with ID "${e}".`},warnings:{enableDeprecation:"MetaMask: 'ethereum.enable()' is deprecated and may be removed in the future. Please use the 'eth_requestAccounts' RPC method instead.\nFor more information, see: https://eips.ethereum.org/EIPS/eip-1102",sendDeprecation:"MetaMask: 'ethereum.send(...)' is deprecated and may be removed in the future. Please use 'ethereum.sendAsync(...)' or 'ethereum.request(...)' instead.\nFor more information, see: https://eips.ethereum.org/EIPS/eip-1193",events:{close:"MetaMask: The event 'close' is deprecated and may be removed in the future. Please use 'disconnect' instead.\nFor more information, see: https://eips.ethereum.org/EIPS/eip-1193#disconnect",data:"MetaMask: The event 'data' is deprecated and will be removed in the future. Use 'message' instead.\nFor more information, see: https://eips.ethereum.org/EIPS/eip-1193#message",networkChanged:"MetaMask: The event 'networkChanged' is deprecated and may be removed in the future. Use 'chainChanged' instead.\nFor more information, see: https://eips.ethereum.org/EIPS/eip-1193#chainchanged",notification:"MetaMask: The event 'notification' is deprecated and may be removed in the future. Use 'message' instead.\nFor more information, see: https://eips.ethereum.org/EIPS/eip-1193#message"},rpc:{ethDecryptDeprecation:"MetaMask: The RPC method 'eth_decrypt' is deprecated and may be removed in the future.\nFor more information, see: https://medium.com/metamask/metamask-api-method-deprecation-2b0564a84686",ethGetEncryptionPublicKeyDeprecation:"MetaMask: The RPC method 'eth_getEncryptionPublicKey' is deprecated and may be removed in the future.\nFor more information, see: https://medium.com/metamask/metamask-api-method-deprecation-2b0564a84686"},experimentalMethods:"MetaMask: 'ethereum._metamask' exposes non-standard, experimental methods. They may be removed or changed without warning."}};var vE={},wE={},EE=r&&r.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(wE,"__esModule",{value:!0}),wE.createRpcWarningMiddleware=void 0;const IE=EE(bE);wE.createRpcWarningMiddleware=function(e){const t={ethDecryptDeprecation:!1,ethGetEncryptionPublicKeyDeprecation:!1};return(n,r,i)=>{!1===t.ethDecryptDeprecation&&"eth_decrypt"===n.method?(e.warn(IE.default.warnings.rpc.ethDecryptDeprecation),t.ethDecryptDeprecation=!0):!1===t.ethGetEncryptionPublicKeyDeprecation&&"eth_getEncryptionPublicKey"===n.method&&(e.warn(IE.default.warnings.rpc.ethGetEncryptionPublicKeyDeprecation),t.ethGetEncryptionPublicKeyDeprecation=!0),i()}},Object.defineProperty(vE,"__esModule",{value:!0}),vE.NOOP=vE.isValidNetworkVersion=vE.isValidChainId=vE.getRpcPromiseCallback=vE.getDefaultExternalMiddleware=vE.EMITTED_NOTIFICATIONS=void 0;const BE=rE,CE=Sw,_E=wE;function SE(e){return(t,n,r)=>{"string"==typeof t.method&&t.method||(n.error=CE.ethErrors.rpc.invalidRequest({message:"The request 'method' must be a non-empty string.",data:t})),r((t=>{const{error:r}=n;return r?(e.error(`MetaMask - RPC Error: ${r.message}`,r),t()):t()}))}}vE.EMITTED_NOTIFICATIONS=Object.freeze(["eth_subscription"]),vE.getDefaultExternalMiddleware=(e=console)=>[BE.createIdRemapMiddleware(),SE(e),_E.createRpcWarningMiddleware(e)],vE.getRpcPromiseCallback=(e,t,n=!0)=>(r,i)=>{r||i.error?t(r||i.error):!n||Array.isArray(i)?e(i):e(i.result)},vE.isValidChainId=e=>Boolean(e)&&"string"==typeof e&&e.startsWith("0x"),vE.isValidNetworkVersion=e=>Boolean(e)&&"string"==typeof e,vE.NOOP=()=>{};var QE=r&&r.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(hw,"__esModule",{value:!0}),hw.BaseProvider=void 0;const kE=QE(pw),ME=Sw,xE=QE((function e(t,n){if(t===n)return!0;if(t&&n&&"object"==typeof t&&"object"==typeof n){var r,i,o,a=eE(t),s=eE(n);if(a&&s){if((i=t.length)!=n.length)return!1;for(r=i;0!=r--;)if(!e(t[r],n[r]))return!1;return!0}if(a!=s)return!1;var c=t instanceof Date,u=n instanceof Date;if(c!=u)return!1;if(c&&u)return t.getTime()==n.getTime();var l=t instanceof RegExp,f=n instanceof RegExp;if(l!=f)return!1;if(l&&f)return t.toString()==n.toString();var d=tE(t);if((i=d.length)!==tE(n).length)return!1;for(r=i;0!=r--;)if(!nE.call(n,d[r]))return!1;for(r=i;0!=r--;)if(!e(t[o=d[r]],n[o]))return!1;return!0}return t!=t&&n!=n})),RE=rE,DE=QE(bE),TE=vE;class NE extends kE.default{constructor({logger:e=console,maxEventListeners:t=100,rpcMiddleware:n=[]}={}){super(),this._log=e,this.setMaxListeners(t),this._state=Object.assign({},NE._defaultState),this.selectedAddress=null,this.chainId=null,this._handleAccountsChanged=this._handleAccountsChanged.bind(this),this._handleConnect=this._handleConnect.bind(this),this._handleChainChanged=this._handleChainChanged.bind(this),this._handleDisconnect=this._handleDisconnect.bind(this),this._handleUnlockStateChanged=this._handleUnlockStateChanged.bind(this),this._rpcRequest=this._rpcRequest.bind(this),this.request=this.request.bind(this);const r=new RE.JsonRpcEngine;n.forEach((e=>r.push(e))),this._rpcEngine=r}isConnected(){return this._state.isConnected}async request(e){if(!e||"object"!=typeof e||Array.isArray(e))throw ME.ethErrors.rpc.invalidRequest({message:DE.default.errors.invalidRequestArgs(),data:e});const{method:t,params:n}=e;if("string"!=typeof t||0===t.length)throw ME.ethErrors.rpc.invalidRequest({message:DE.default.errors.invalidRequestMethod(),data:e});if(void 0!==n&&!Array.isArray(n)&&("object"!=typeof n||null===n))throw ME.ethErrors.rpc.invalidRequest({message:DE.default.errors.invalidRequestParams(),data:e});return new Promise(((e,r)=>{this._rpcRequest({method:t,params:n},TE.getRpcPromiseCallback(e,r))}))}_initializeState(e){if(!0===this._state.initialized)throw new Error("Provider already initialized.");if(e){const{accounts:t,chainId:n,isUnlocked:r,networkVersion:i}=e;this._handleConnect(n),this._handleChainChanged({chainId:n,networkVersion:i}),this._handleUnlockStateChanged({accounts:t,isUnlocked:r}),this._handleAccountsChanged(t)}this._state.initialized=!0,this.emit("_initialized")}_rpcRequest(e,t){let n=t;return Array.isArray(e)||(e.jsonrpc||(e.jsonrpc="2.0"),"eth_accounts"!==e.method&&"eth_requestAccounts"!==e.method||(n=(n,r)=>{this._handleAccountsChanged(r.result||[],"eth_accounts"===e.method),t(n,r)})),this._rpcEngine.handle(e,n)}_handleConnect(e){this._state.isConnected||(this._state.isConnected=!0,this.emit("connect",{chainId:e}),this._log.debug(DE.default.info.connected(e)))}_handleDisconnect(e,t){if(this._state.isConnected||!this._state.isPermanentlyDisconnected&&!e){let n;this._state.isConnected=!1,e?(n=new ME.EthereumRpcError(1013,t||DE.default.errors.disconnected()),this._log.debug(n)):(n=new ME.EthereumRpcError(1011,t||DE.default.errors.permanentlyDisconnected()),this._log.error(n),this.chainId=null,this._state.accounts=null,this.selectedAddress=null,this._state.isUnlocked=!1,this._state.isPermanentlyDisconnected=!0),this.emit("disconnect",n)}}_handleChainChanged({chainId:e}={}){TE.isValidChainId(e)?(this._handleConnect(e),e!==this.chainId&&(this.chainId=e,this._state.initialized&&this.emit("chainChanged",this.chainId))):this._log.error(DE.default.errors.invalidNetworkParams(),{chainId:e})}_handleAccountsChanged(e,t=!1){let n=e;Array.isArray(e)||(this._log.error("MetaMask: Received invalid accounts parameter. Please report this bug.",e),n=[]);for(const t of e)if("string"!=typeof t){this._log.error("MetaMask: Received non-string account. Please report this bug.",e),n=[];break}xE.default(this._state.accounts,n)||(t&&null!==this._state.accounts&&this._log.error("MetaMask: 'eth_accounts' unexpectedly updated accounts. Please report this bug.",n),this._state.accounts=n,this.selectedAddress!==n[0]&&(this.selectedAddress=n[0]||null),this._state.initialized&&this.emit("accountsChanged",n))}_handleUnlockStateChanged({accounts:e,isUnlocked:t}={}){"boolean"==typeof t?t!==this._state.isUnlocked&&(this._state.isUnlocked=t,this._handleAccountsChanged(e||[])):this._log.error("MetaMask: Received invalid isUnlocked parameter. Please report this bug.")}}hw.BaseProvider=NE,NE._defaultState={accounts:null,isConnected:!1,isUnlocked:!1,initialized:!1,isPermanentlyDisconnected:!1};var OE={},LE={},PE="function"==typeof Object.create?function(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}:function(e,t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e},UE=/%[sdj%]/g;function FE(e){if(!nI(e)){for(var t=[],n=0;n=i)return e;switch(e){case"%s":return String(r[n++]);case"%d":return Number(r[n++]);case"%j":try{return JSON.stringify(r[n++])}catch(e){return"[Circular]"}default:return e}})),a=r[n];n=3&&(n.depth=arguments[2]),arguments.length>=4&&(n.colors=arguments[3]),$E(t)?n.showHidden=t:t&&gI(n,t),iI(n.showHidden)&&(n.showHidden=!1),iI(n.depth)&&(n.depth=2),iI(n.colors)&&(n.colors=!1),iI(n.customInspect)&&(n.customInspect=!0),n.colors&&(n.stylize=KE),VE(n,e,n.depth)}function KE(e,t){var n=YE.styles[t];return n?"["+YE.colors[n][0]+"m"+e+"["+YE.colors[n][1]+"m":e}function zE(e,t){return e}function VE(e,t,n){if(e.customInspect&&t&&uI(t.inspect)&&t.inspect!==YE&&(!t.constructor||t.constructor.prototype!==t)){var r=t.inspect(n,e);return nI(r)||(r=VE(e,r,n)),r}var i=function(e,t){if(iI(t))return e.stylize("undefined","undefined");if(nI(t)){var n="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(n,"string")}return tI(t)?e.stylize(""+t,"number"):$E(t)?e.stylize(""+t,"boolean"):XE(t)?e.stylize("null","null"):void 0}(e,t);if(i)return i;var o=Object.keys(t),a=function(e){var t={};return e.forEach((function(e,n){t[e]=!0})),t}(o);if(e.showHidden&&(o=Object.getOwnPropertyNames(t)),cI(t)&&(o.indexOf("message")>=0||o.indexOf("description")>=0))return JE(t);if(0===o.length){if(uI(t)){var s=t.name?": "+t.name:"";return e.stylize("[Function"+s+"]","special")}if(oI(t))return e.stylize(RegExp.prototype.toString.call(t),"regexp");if(sI(t))return e.stylize(Date.prototype.toString.call(t),"date");if(cI(t))return JE(t)}var c,u="",l=!1,f=["{","}"];return ZE(t)&&(l=!0,f=["[","]"]),uI(t)&&(u=" [Function"+(t.name?": "+t.name:"")+"]"),oI(t)&&(u=" "+RegExp.prototype.toString.call(t)),sI(t)&&(u=" "+Date.prototype.toUTCString.call(t)),cI(t)&&(u=" "+JE(t)),0!==o.length||l&&0!=t.length?n<0?oI(t)?e.stylize(RegExp.prototype.toString.call(t),"regexp"):e.stylize("[Object]","special"):(e.seen.push(t),c=l?function(e,t,n,r,i){for(var o=[],a=0,s=t.length;a60?n[0]+(""===t?"":t+"\n ")+" "+e.join(",\n ")+" "+n[1]:n[0]+t+" "+e.join(", ")+" "+n[1]}(c,u,f)):f[0]+u+f[1]}function JE(e){return"["+Error.prototype.toString.call(e)+"]"}function WE(e,t,n,r,i,o){var a,s,c;if((c=Object.getOwnPropertyDescriptor(t,i)||{value:t[i]}).get?s=c.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):c.set&&(s=e.stylize("[Setter]","special")),yI(r,i)||(a="["+i+"]"),s||(e.seen.indexOf(c.value)<0?(s=XE(n)?VE(e,c.value,null):VE(e,c.value,n-1)).indexOf("\n")>-1&&(s=o?s.split("\n").map((function(e){return" "+e})).join("\n").substr(2):"\n"+s.split("\n").map((function(e){return" "+e})).join("\n")):s=e.stylize("[Circular]","special")),iI(a)){if(o&&i.match(/^\d+$/))return s;(a=JSON.stringify(""+i)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(a=a.substr(1,a.length-2),a=e.stylize(a,"name")):(a=a.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),a=e.stylize(a,"string"))}return a+": "+s}function ZE(e){return Array.isArray(e)}function $E(e){return"boolean"==typeof e}function XE(e){return null===e}function eI(e){return null==e}function tI(e){return"number"==typeof e}function nI(e){return"string"==typeof e}function rI(e){return"symbol"==typeof e}function iI(e){return void 0===e}function oI(e){return aI(e)&&"[object RegExp]"===dI(e)}function aI(e){return"object"==typeof e&&null!==e}function sI(e){return aI(e)&&"[object Date]"===dI(e)}function cI(e){return aI(e)&&("[object Error]"===dI(e)||e instanceof Error)}function uI(e){return"function"==typeof e}function lI(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e}function fI(e){return St(e)}function dI(e){return Object.prototype.toString.call(e)}function AI(e){return e<10?"0"+e.toString(10):e.toString(10)}YE.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},YE.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};var hI=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function pI(){console.log("%s - %s",function(){var e=new Date,t=[AI(e.getHours()),AI(e.getMinutes()),AI(e.getSeconds())].join(":");return[e.getDate(),hI[e.getMonth()],t].join(" ")}(),FE.apply(null,arguments))}function gI(e,t){if(!t||!aI(t))return e;for(var n=Object.keys(t),r=n.length;r--;)e[n[r]]=t[n[r]];return e}function yI(e,t){return Object.prototype.hasOwnProperty.call(e,t)}var mI={inherits:PE,_extend:gI,log:pI,isBuffer:fI,isPrimitive:lI,isFunction:uI,isError:cI,isDate:sI,isObject:aI,isRegExp:oI,isUndefined:iI,isSymbol:rI,isString:nI,isNumber:tI,isNullOrUndefined:eI,isNull:XE,isBoolean:$E,isArray:ZE,inspect:YE,deprecate:jE,format:FE,debuglog:HE},bI=Object.freeze({__proto__:null,_extend:gI,debuglog:HE,default:mI,deprecate:jE,format:FE,inherits:PE,inspect:YE,isArray:ZE,isBoolean:$E,isBuffer:fI,isDate:sI,isError:cI,isFunction:uI,isNull:XE,isNullOrUndefined:eI,isNumber:tI,isObject:aI,isPrimitive:lI,isRegExp:oI,isString:nI,isSymbol:rI,isUndefined:iI,log:pI});function vI(){this.head=null,this.tail=null,this.length=0}vI.prototype.push=function(e){var t={data:e,next:null};this.length>0?this.tail.next=t:this.head=t,this.tail=t,++this.length},vI.prototype.unshift=function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length},vI.prototype.shift=function(){if(0!==this.length){var e=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}},vI.prototype.clear=function(){this.head=this.tail=null,this.length=0},vI.prototype.join=function(e){if(0===this.length)return"";for(var t=this.head,n=""+t.data;t=t.next;)n+=e+t.data;return n},vI.prototype.concat=function(e){if(0===this.length)return He.alloc(0);if(1===this.length)return this.head.data;for(var t=He.allocUnsafe(e>>>0),n=this.head,r=0;n;)n.data.copy(t,r),r+=n.data.length,n=n.next;return t};var wI=He.isEncoding||function(e){switch(e&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function EI(e){switch(this.encoding=(e||"utf8").toLowerCase().replace(/[-_]/,""),function(e){if(e&&!wI(e))throw new Error("Unknown encoding: "+e)}(e),this.encoding){case"utf8":this.surrogateSize=3;break;case"ucs2":case"utf16le":this.surrogateSize=2,this.detectIncompleteChar=BI;break;case"base64":this.surrogateSize=3,this.detectIncompleteChar=CI;break;default:return void(this.write=II)}this.charBuffer=new He(6),this.charReceived=0,this.charLength=0}function II(e){return e.toString(this.encoding)}function BI(e){this.charReceived=e.length%2,this.charLength=this.charReceived?2:0}function CI(e){this.charReceived=e.length%3,this.charLength=this.charReceived?3:0}EI.prototype.write=function(e){for(var t="";this.charLength;){var n=e.length>=this.charLength-this.charReceived?this.charLength-this.charReceived:e.length;if(e.copy(this.charBuffer,this.charReceived,0,n),this.charReceived+=n,this.charReceived=55296&&r<=56319)){if(this.charReceived=this.charLength=0,0===e.length)return t;break}this.charLength+=this.surrogateSize,t=""}this.detectIncompleteChar(e);var r,i=e.length;if(this.charLength&&(e.copy(this.charBuffer,0,e.length-this.charReceived,i),i-=this.charReceived),i=(t+=e.toString(this.encoding,0,i)).length-1,(r=t.charCodeAt(i))>=55296&&r<=56319){var o=this.surrogateSize;return this.charLength+=o,this.charReceived+=o,this.charBuffer.copy(this.charBuffer,o,0,o),e.copy(this.charBuffer,0,0,o),t.substring(0,i)}return t},EI.prototype.detectIncompleteChar=function(e){for(var t=e.length>=3?3:e.length;t>0;t--){var n=e[e.length-t];if(1==t&&n>>5==6){this.charLength=2;break}if(t<=2&&n>>4==14){this.charLength=3;break}if(t<=3&&n>>3==30){this.charLength=4;break}}this.charReceived=t},EI.prototype.end=function(e){var t="";if(e&&e.length&&(t=this.write(e)),this.charReceived){var n=this.charReceived,r=this.charBuffer,i=this.encoding;t+=r.slice(0,n).toString(i)}return t},QI.ReadableState=SI;var _I=HE("stream");function SI(e,t){e=e||{},this.objectMode=!!e.objectMode,t instanceof nB&&(this.objectMode=this.objectMode||!!e.readableObjectMode);var n=e.highWaterMark,r=this.objectMode?16:16384;this.highWaterMark=n||0===n?n:r,this.highWaterMark=~~this.highWaterMark,this.buffer=new vI,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.ranOut=!1,this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(this.decoder=new EI(e.encoding),this.encoding=e.encoding)}function QI(e){if(!(this instanceof QI))return new QI(e);this._readableState=new SI(e,this),this.readable=!0,e&&"function"==typeof e.read&&(this._read=e.read),yw.call(this)}function kI(e,t,n,r,i){var o=function(e,t){var n=null;return St(t)||"string"==typeof t||null==t||e.objectMode||(n=new TypeError("Invalid non-string/buffer chunk")),n}(t,n);if(o)e.emit("error",o);else if(null===n)t.reading=!1,function(e,t){if(!t.ended){if(t.decoder){var n=t.decoder.end();n&&n.length&&(t.buffer.push(n),t.length+=t.objectMode?1:n.length)}t.ended=!0,RI(e)}}(e,t);else if(t.objectMode||n&&n.length>0)if(t.ended&&!i){var a=new Error("stream.push() after EOF");e.emit("error",a)}else if(t.endEmitted&&i){var s=new Error("stream.unshift() after end event");e.emit("error",s)}else{var c;!t.decoder||i||r||(n=t.decoder.write(n),c=!t.objectMode&&0===n.length),i||(t.reading=!1),c||(t.flowing&&0===t.length&&!t.sync?(e.emit("data",n),e.read(0)):(t.length+=t.objectMode?1:n.length,i?t.buffer.unshift(n):t.buffer.push(n),t.needReadable&&RI(e))),function(e,t){t.readingMore||(t.readingMore=!0,b(TI,e,t))}(e,t)}else i||(t.reading=!1);return function(e){return!e.ended&&(e.needReadable||e.lengtht.highWaterMark&&(t.highWaterMark=function(e){return e>=MI?e=MI:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}function RI(e){var t=e._readableState;t.needReadable=!1,t.emittedReadable||(_I("emitReadable",t.flowing),t.emittedReadable=!0,t.sync?b(DI,e):DI(e))}function DI(e){_I("emit readable"),e.emit("readable"),LI(e)}function TI(e,t){for(var n=t.length;!t.reading&&!t.flowing&&!t.ended&&t.length=t.length?(n=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.head.data:t.buffer.concat(t.length),t.buffer.clear()):n=function(e,t,n){var r;return eo.length?o.length:e;if(a===o.length?i+=o:i+=o.slice(0,e),0==(e-=a)){a===o.length?(++r,n.next?t.head=n.next:t.head=t.tail=null):(t.head=n,n.data=o.slice(a));break}++r}return t.length-=r,i}(e,t):function(e,t){var n=He.allocUnsafe(e),r=t.head,i=1;for(r.data.copy(n),e-=r.data.length;r=r.next;){var o=r.data,a=e>o.length?o.length:e;if(o.copy(n,n.length-e,0,a),0==(e-=a)){a===o.length?(++i,r.next?t.head=r.next:t.head=t.tail=null):(t.head=r,r.data=o.slice(a));break}++i}return t.length-=i,n}(e,t),r}(e,t.buffer,t.decoder),n);var n}function UI(e){var t=e._readableState;if(t.length>0)throw new Error('"endReadable()" called on non-empty stream');t.endEmitted||(t.ended=!0,b(FI,t,e))}function FI(e,t){e.endEmitted||0!==e.length||(e.endEmitted=!0,t.readable=!1,t.emit("end"))}function jI(e,t){for(var n=0,r=e.length;n=t.highWaterMark||t.ended))return _I("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?UI(this):RI(this),null;if(0===(e=xI(e,t))&&t.ended)return 0===t.length&&UI(this),null;var r,i=t.needReadable;return _I("need readable",i),(0===t.length||t.length-e0?PI(e,t):null)?(t.needReadable=!0,e=0):t.length-=e,0===t.length&&(t.ended||(t.needReadable=!0),n!==e&&t.ended&&UI(this)),null!==r&&this.emit("data",r),r},QI.prototype._read=function(e){this.emit("error",new Error("not implemented"))},QI.prototype.pipe=function(e,t){var n=this,r=this._readableState;switch(r.pipesCount){case 0:r.pipes=e;break;case 1:r.pipes=[r.pipes,e];break;default:r.pipes.push(e)}r.pipesCount+=1,_I("pipe count=%d opts=%j",r.pipesCount,t);var i=t&&!1===t.end?u:a;function o(e){_I("onunpipe"),e===n&&u()}function a(){_I("onend"),e.end()}r.endEmitted?b(i):n.once("end",i),e.on("unpipe",o);var s=function(e){return function(){var t=e._readableState;_I("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&e.listeners("data").length&&(t.flowing=!0,LI(e))}}(n);e.on("drain",s);var c=!1;function u(){_I("cleanup"),e.removeListener("close",A),e.removeListener("finish",h),e.removeListener("drain",s),e.removeListener("error",d),e.removeListener("unpipe",o),n.removeListener("end",a),n.removeListener("end",u),n.removeListener("data",f),c=!0,!r.awaitDrain||e._writableState&&!e._writableState.needDrain||s()}var l=!1;function f(t){_I("ondata"),l=!1,!1!==e.write(t)||l||((1===r.pipesCount&&r.pipes===e||r.pipesCount>1&&-1!==jI(r.pipes,e))&&!c&&(_I("false write response, pause",n._readableState.awaitDrain),n._readableState.awaitDrain++,l=!0),n.pause())}function d(t){_I("onerror",t),p(),e.removeListener("error",d),0===("error",e.listeners("error").length)&&e.emit("error",t)}function A(){e.removeListener("finish",h),p()}function h(){_I("onfinish"),e.removeListener("close",A),p()}function p(){_I("unpipe"),n.unpipe(e)}return n.on("data",f),function(e,t,n){if("function"==typeof e.prependListener)return e.prependListener(t,n);e._events&&e._events[t]?Array.isArray(e._events[t])?e._events[t].unshift(n):e._events[t]=[n,e._events[t]]:e.on(t,n)}(e,"error",d),e.once("close",A),e.once("finish",h),e.emit("pipe",n),r.flowing||(_I("pipe resume"),n.resume()),e},QI.prototype.unpipe=function(e){var t=this._readableState;if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes||(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this)),this;if(!e){var n=t.pipes,r=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var i=0;i-1))throw new TypeError("Unknown encoding: "+e);return this._writableState.defaultEncoding=e,this},YI.prototype._write=function(e,t,n){n(new Error("not implemented"))},YI.prototype._writev=null,YI.prototype.end=function(e,t,n){var r=this._writableState;"function"==typeof e?(n=e,e=null,t=null):"function"==typeof t&&(n=t,t=null),null!=e&&this.write(e,t),r.corked&&(r.corked=1,this.uncork()),r.ending||r.finished||function(e,t,n){t.ending=!0,ZI(e,t),n&&(t.finished?b(n):e.once("finish",n)),t.ended=!0,e.writable=!1}(this,r,n)},PE(nB,QI);for(var XI=Object.keys(YI.prototype),eB=0;eBthis._onMessage(e))),this._port.onDisconnect.addListener((()=>this._onDisconnect())),this._log=()=>null}_onMessage(e){if(St(e)){const t=He.from(e);this._log(t,!1),this.push(t)}else this._log(e,!1),this.push(e)}_onDisconnect(){this.destroy()}_read(){}_write(e,t,n){try{if(St(e)){const t=e.toJSON();t._isBuffer=!0,this._log(t,!0),this._port.postMessage(t)}else this._log(e,!0),this._port.postMessage(e)}catch(e){return n(new Error("PortDuplexStream - disconnected"))}return n()}_setLogger(e){this._log=e}}LE.default=dB;var AB=function(e,t,n){if(n||2===arguments.length)for(var r,i=0,o=t.length;i meta[property="og:site_name"]');if(n)return n.content;const r=t.querySelector('head > meta[name="title"]');return r?r.content:t.title&&t.title.length>0?t.title:window.location.hostname}async function TB(e){const{document:t}=e,n=t.querySelectorAll('head > link[rel~="icon"]');for(const e of n)if(e&&await NB(e.href))return e.href;return null}function NB(e){return new Promise(((t,n)=>{try{const n=document.createElement("img");n.onload=()=>t(!0),n.onerror=()=>t(!1),n.src=e}catch(e){n(e)}}))}kB.sendSiteMetadata=async function(e,t){try{const t=await async function(){return{name:DB(window),icon:await TB(window)}}();e.handle({jsonrpc:"2.0",id:1,method:"metamask_sendDomainMetadata",params:t},RB.NOOP)}catch(e){t.error({message:xB.default.errors.sendSiteMetadata(),originalError:e})}};var OB={},LB={},PB={exports:{}},UB={exports:{}};void 0===R||!R.version||0===R.version.indexOf("v0.")||0===R.version.indexOf("v1.")&&0!==R.version.indexOf("v1.8.")?UB.exports={nextTick:function(e,t,n,r){if("function"!=typeof e)throw new TypeError('"callback" argument must be a function');var i,o,a=arguments.length;switch(a){case 0:case 1:return b(e);case 2:return b((function(){e.call(null,t)}));case 3:return b((function(){e.call(null,t,n)}));case 4:return b((function(){e.call(null,t,n,r)}));default:for(i=new Array(a-1),o=0;o-1))throw new TypeError("Unknown encoding: "+e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(h.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),h.prototype._write=function(e,t,n){n(new Error("_write() is not implemented"))},h.prototype._writev=null,h.prototype.end=function(t,n,r){var i=this._writableState;"function"==typeof t?(r=t,t=null,n=null):"function"==typeof n&&(r=n,n=null),null!=t&&this.write(t,n),i.corked&&(i.corked=1,this.uncork()),i.ending||function(t,n,r){n.ending=!0,v(t,n),r&&(n.finished?e.nextTick(r):t.once("finish",r)),n.ended=!0,t.writable=!1}(this,i,r)},Object.defineProperty(h.prototype,"destroyed",{get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),h.prototype.destroy=f.destroy,h.prototype._undestroy=f.undestroy,h.prototype._destroy=function(e,t){this.end(),t(e)},nC}function lC(){if(oC)return iC;oC=1;var e=FB,t=Object.keys||function(e){var t=[];for(var n in e)t.push(n);return t};iC=c;var n=Object.create(zB);n.inherits=ZB;var r=gC(),i=uC();n.inherits(c,r);for(var o=t(i.prototype),a=0;a>5==6?2:e>>4==14?3:e>>3==30?4:e>>6==2?-1:-2}function i(e){var t=this.lastTotal-this.lastNeed,n=function(e,t,n){if(128!=(192&t[0]))return e.lastNeed=0,"�";if(e.lastNeed>1&&t.length>1){if(128!=(192&t[1]))return e.lastNeed=1,"�";if(e.lastNeed>2&&t.length>2&&128!=(192&t[2]))return e.lastNeed=2,"�"}}(this,e);return void 0!==n?n:this.lastNeed<=e.length?(e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(e.copy(this.lastChar,t,0,e.length),void(this.lastNeed-=e.length))}function o(e,t){if((e.length-t)%2==0){var n=e.toString("utf16le",t);if(n){var r=n.charCodeAt(n.length-1);if(r>=55296&&r<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],n.slice(0,-1)}return n}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function a(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var n=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,n)}return t}function s(e,t){var n=(e.length-t)%3;return 0===n?e.toString("base64",t):(this.lastNeed=3-n,this.lastTotal=3,1===n?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-n))}function c(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function u(e){return e.toString(this.encoding)}function l(e){return e&&e.length?this.write(e):""}return hC.StringDecoder=n,n.prototype.write=function(e){if(0===e.length)return"";var t,n;if(this.lastNeed){if(void 0===(t=this.fillLast(e)))return"";n=this.lastNeed,this.lastNeed=0}else n=0;return n=0?(o>0&&(e.lastNeed=o-1),o):--i=0?(o>0&&(e.lastNeed=o-2),o):--i=0?(o>0&&(2===o?o=0:e.lastNeed=o-3),o):0}(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=n;var i=e.length-(n-this.lastNeed);return e.copy(this.lastChar,0,i),e.toString("utf8",t,i)},n.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length},hC}function gC(){if(AC)return dC;AC=1;var e=FB;dC=g;var t,n=qB;g.ReadableState=p,Iw.EventEmitter;var i=function(e,t){return e.listeners(t).length},o=GB,a=KB.Buffer,s=(void 0!==r?r:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{}).Uint8Array||function(){},c=Object.create(zB);c.inherits=ZB;var u=$B,l=void 0;l=u&&u.debuglog?u.debuglog("stream"):function(){};var f,d=(WB||(WB=1,function(e){var t=KB.Buffer,n=$B;e.exports=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.head=null,this.tail=null,this.length=0}return e.prototype.push=function(e){var t={data:e,next:null};this.length>0?this.tail.next=t:this.head=t,this.tail=t,++this.length},e.prototype.unshift=function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length},e.prototype.shift=function(){if(0!==this.length){var e=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}},e.prototype.clear=function(){this.head=this.tail=null,this.length=0},e.prototype.join=function(e){if(0===this.length)return"";for(var t=this.head,n=""+t.data;t=t.next;)n+=e+t.data;return n},e.prototype.concat=function(e){if(0===this.length)return t.alloc(0);for(var n,r,i=t.allocUnsafe(e>>>0),o=this.head,a=0;o;)n=i,r=a,o.data.copy(n,r),a+=o.data.length,o=o.next;return i},e}(),n&&n.inspect&&n.inspect.custom&&(e.exports.prototype[n.inspect.custom]=function(){var e=n.inspect({length:this.length});return this.constructor.name+" "+e})}(XB)),XB.exports),A=aC;c.inherits(g,o);var h=["error","close","destroy","pause","resume"];function p(e,n){e=e||{};var r=n instanceof(t=t||lC());this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.readableObjectMode);var i=e.highWaterMark,o=e.readableHighWaterMark,a=this.objectMode?16:16384;this.highWaterMark=i||0===i?i:r&&(o||0===o)?o:a,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new d,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(f||(f=pC().StringDecoder),this.decoder=new f(e.encoding),this.encoding=e.encoding)}function g(e){if(t=t||lC(),!(this instanceof g))return new g(e);this._readableState=new p(e,this),this.readable=!0,e&&("function"==typeof e.read&&(this._read=e.read),"function"==typeof e.destroy&&(this._destroy=e.destroy)),o.call(this)}function y(e,t,n,r,i){var o,c=e._readableState;return null===t?(c.reading=!1,function(e,t){if(!t.ended){if(t.decoder){var n=t.decoder.end();n&&n.length&&(t.buffer.push(n),t.length+=t.objectMode?1:n.length)}t.ended=!0,w(e)}}(e,c)):(i||(o=function(e,t){var n,r;return r=t,a.isBuffer(r)||r instanceof s||"string"==typeof t||void 0===t||e.objectMode||(n=new TypeError("Invalid non-string/buffer chunk")),n}(c,t)),o?e.emit("error",o):c.objectMode||t&&t.length>0?("string"==typeof t||c.objectMode||Object.getPrototypeOf(t)===a.prototype||(t=function(e){return a.from(e)}(t)),r?c.endEmitted?e.emit("error",new Error("stream.unshift() after end event")):m(e,c,t,!0):c.ended?e.emit("error",new Error("stream.push() after EOF")):(c.reading=!1,c.decoder&&!n?(t=c.decoder.write(t),c.objectMode||0!==t.length?m(e,c,t,!1):I(e,c)):m(e,c,t,!1))):r||(c.reading=!1)),function(e){return!e.ended&&(e.needReadable||e.lengtht.highWaterMark&&(t.highWaterMark=function(e){return e>=b?e=b:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}function w(t){var n=t._readableState;n.needReadable=!1,n.emittedReadable||(l("emitReadable",n.flowing),n.emittedReadable=!0,n.sync?e.nextTick(E,t):E(t))}function E(e){l("emit readable"),e.emit("readable"),S(e)}function I(t,n){n.readingMore||(n.readingMore=!0,e.nextTick(B,t,n))}function B(e,t){for(var n=t.length;!t.reading&&!t.flowing&&!t.ended&&t.length=t.length?(n=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.head.data:t.buffer.concat(t.length),t.buffer.clear()):n=function(e,t,n){var r;return eo.length?o.length:e;if(a===o.length?i+=o:i+=o.slice(0,e),0==(e-=a)){a===o.length?(++r,n.next?t.head=n.next:t.head=t.tail=null):(t.head=n,n.data=o.slice(a));break}++r}return t.length-=r,i}(e,t):function(e,t){var n=a.allocUnsafe(e),r=t.head,i=1;for(r.data.copy(n),e-=r.data.length;r=r.next;){var o=r.data,s=e>o.length?o.length:e;if(o.copy(n,n.length-e,0,s),0==(e-=s)){s===o.length?(++i,r.next?t.head=r.next:t.head=t.tail=null):(t.head=r,r.data=o.slice(s));break}++i}return t.length-=i,n}(e,t),r}(e,t.buffer,t.decoder),n);var n}function k(t){var n=t._readableState;if(n.length>0)throw new Error('"endReadable()" called on non-empty stream');n.endEmitted||(n.ended=!0,e.nextTick(M,n,t))}function M(e,t){e.endEmitted||0!==e.length||(e.endEmitted=!0,t.readable=!1,t.emit("end"))}function x(e,t){for(var n=0,r=e.length;n=t.highWaterMark||t.ended))return l("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?k(this):w(this),null;if(0===(e=v(e,t))&&t.ended)return 0===t.length&&k(this),null;var r,i=t.needReadable;return l("need readable",i),(0===t.length||t.length-e0?Q(e,t):null)?(t.needReadable=!0,e=0):t.length-=e,0===t.length&&(t.ended||(t.needReadable=!0),n!==e&&t.ended&&k(this)),null!==r&&this.emit("data",r),r},g.prototype._read=function(e){this.emit("error",new Error("_read() is not implemented"))},g.prototype.pipe=function(t,r){var o=this,a=this._readableState;switch(a.pipesCount){case 0:a.pipes=t;break;case 1:a.pipes=[a.pipes,t];break;default:a.pipes.push(t)}a.pipesCount+=1,l("pipe count=%d opts=%j",a.pipesCount,r);var s=r&&!1===r.end||t===R.stdout||t===R.stderr?y:c;function c(){l("onend"),t.end()}a.endEmitted?e.nextTick(s):o.once("end",s),t.on("unpipe",(function e(n,r){l("onunpipe"),n===o&&r&&!1===r.hasUnpiped&&(r.hasUnpiped=!0,l("cleanup"),t.removeListener("close",p),t.removeListener("finish",g),t.removeListener("drain",u),t.removeListener("error",h),t.removeListener("unpipe",e),o.removeListener("end",c),o.removeListener("end",y),o.removeListener("data",A),f=!0,!a.awaitDrain||t._writableState&&!t._writableState.needDrain||u())}));var u=function(e){return function(){var t=e._readableState;l("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&i(e,"data")&&(t.flowing=!0,S(e))}}(o);t.on("drain",u);var f=!1,d=!1;function A(e){l("ondata"),d=!1,!1!==t.write(e)||d||((1===a.pipesCount&&a.pipes===t||a.pipesCount>1&&-1!==x(a.pipes,t))&&!f&&(l("false write response, pause",a.awaitDrain),a.awaitDrain++,d=!0),o.pause())}function h(e){l("onerror",e),y(),t.removeListener("error",h),0===i(t,"error")&&t.emit("error",e)}function p(){t.removeListener("finish",g),y()}function g(){l("onfinish"),t.removeListener("close",p),y()}function y(){l("unpipe"),o.unpipe(t)}return o.on("data",A),function(e,t,r){if("function"==typeof e.prependListener)return e.prependListener(t,r);e._events&&e._events[t]?n(e._events[t])?e._events[t].unshift(r):e._events[t]=[r,e._events[t]]:e.on(t,r)}(t,"error",h),t.once("close",p),t.once("finish",g),t.emit("pipe",o),a.flowing||(l("pipe resume"),o.resume()),t},g.prototype.unpipe=function(e){var t=this._readableState,n={hasUnpiped:!1};if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes||(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,n)),this;if(!e){var r=t.pipes,i=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var o=0;ot.destroy(e||void 0))),t}ignoreStream(e){if(!e)throw new Error("ObjectMultiplex - name must not be empty");if(this._substreams[e])throw new Error(`ObjectMultiplex - Substream for name "${e}" already exists`);this._substreams[e]=KC}_read(){}_write(e,t,n){const{name:r,data:i}=e;if(!r)return console.warn(`ObjectMultiplex - malformed chunk without name "${e}"`),n();const o=this._substreams[r];return o?(o!==KC&&o.push(i),n()):(console.warn(`ObjectMultiplex - orphaned data for stream "${r}"`),n())}}LB.ObjectMultiplex=zC;var VC=LB.ObjectMultiplex;const JC=e=>null!==e&&"object"==typeof e&&"function"==typeof e.pipe;JC.writable=e=>JC(e)&&!1!==e.writable&&"function"==typeof e._write&&"object"==typeof e._writableState,JC.readable=e=>JC(e)&&!1!==e.readable&&"function"==typeof e._read&&"object"==typeof e._readableState,JC.duplex=e=>JC.writable(e)&&JC.readable(e),JC.transform=e=>JC.duplex(e)&&"function"==typeof e._transform;var WC=JC,ZC={},$C={};Object.defineProperty($C,"__esModule",{value:!0});const XC=QC;$C.default=function(e){if(!e||!e.engine)throw new Error("Missing engine parameter!");const{engine:t}=e,n=new XC.Duplex({objectMode:!0,read:()=>{},write:function(e,r,i){t.handle(e,((e,t)=>{n.push(t)})),i()}});return t.on&&t.on("notification",(e=>{n.push(e)})),n};var e_={},t_={};Object.defineProperty(t_,"__esModule",{value:!0});const n_=Iw;function r_(e,t,n){try{Reflect.apply(e,t,n)}catch(e){setTimeout((()=>{throw e}))}}class i_ extends n_.EventEmitter{emit(e,...t){let n="error"===e;const r=this._events;if(void 0!==r)n=n&&void 0===r.error;else if(!n)return!1;if(n){let e;if(t.length>0&&([e]=t),e instanceof Error)throw e;const n=new Error("Unhandled error."+(e?` (${e.message})`:""));throw n.context=e,n}const i=r[e];if(void 0===i)return!1;if("function"==typeof i)r_(i,this,t);else{const e=i.length,n=function(e){const t=e.length,n=new Array(t);for(let r=0;r{},write:function(n,o,a){let s=null;try{n.id?function(e){const n=t[e.id];n?(delete t[e.id],Object.assign(n.res,e),setTimeout(n.end)):console.warn(`StreamMiddleware - Unknown response id "${e.id}"`)}(n):function(n){(null==e?void 0:e.retryOnMessage)&&n.method===e.retryOnMessage&&Object.values(t).forEach((({req:e,retryCount:n=0})=>{if(e.id){if(n>=3)throw new Error(`StreamMiddleware - Retry limit exceeded for request id "${e.id}"`);t[e.id].retryCount=n+1,i(e)}})),r.emit("notification",n)}(n)}catch(e){s=e}a(s)}}),r=new a_.default;return{events:r,middleware:(e,n,r,o)=>{t[e.id]={req:e,res:n,next:r,end:o},i(e)},stream:n};function i(e){n.push(e)}};var c_=r&&r.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(ZC,"__esModule",{value:!0}),ZC.createStreamMiddleware=ZC.createEngineStream=void 0;const u_=c_($C);ZC.createEngineStream=u_.default;const l_=c_(e_);ZC.createStreamMiddleware=l_.default;var f_=DC,d_=LC,A_=o(Object.freeze({__proto__:null,default:{}})),h_=function(){},p_=/^v?\.0/.test(R.version),g_=function(e){return"function"==typeof e},y_=function(e){e()},m_=function(e,t){return e.pipe(t)},b_=r&&r.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(OB,"__esModule",{value:!0}),OB.StreamProvider=OB.AbstractStreamProvider=void 0;const v_=b_(VC),w_=WC,E_=ZC,I_=b_((function(){var e,t=Array.prototype.slice.call(arguments),n=g_(t[t.length-1]||h_)&&t.pop()||h_;if(Array.isArray(t[0])&&(t=t[0]),t.length<2)throw new Error("pump requires two streams per minimum");var r=t.map((function(i,o){var a=o0,(function(t){e||(e=t),t&&r.forEach(y_),a||(r.forEach(y_),n(e))}))}));return t.reduce(m_)})),B_=b_(bE),C_=vE,__=hw;class S_ extends __.BaseProvider{constructor(e,{jsonRpcStreamName:t,logger:n,maxEventListeners:r,rpcMiddleware:i}){if(super({logger:n,maxEventListeners:r,rpcMiddleware:i}),!w_.duplex(e))throw new Error(B_.default.errors.invalidDuplexStream());this._handleStreamDisconnect=this._handleStreamDisconnect.bind(this);const o=new v_.default;I_.default(e,o,e,this._handleStreamDisconnect.bind(this,"MetaMask")),this._jsonRpcConnection=E_.createStreamMiddleware({retryOnMessage:"METAMASK_EXTENSION_CONNECT_CAN_RETRY"}),I_.default(this._jsonRpcConnection.stream,o.createStream(t),this._jsonRpcConnection.stream,this._handleStreamDisconnect.bind(this,"MetaMask RpcProvider")),this._rpcEngine.push(this._jsonRpcConnection.middleware),this._jsonRpcConnection.events.on("notification",(t=>{const{method:n,params:r}=t;"metamask_accountsChanged"===n?this._handleAccountsChanged(r):"metamask_unlockStateChanged"===n?this._handleUnlockStateChanged(r):"metamask_chainChanged"===n?this._handleChainChanged(r):C_.EMITTED_NOTIFICATIONS.includes(n)?this.emit("message",{type:n,data:r}):"METAMASK_STREAM_FAILURE"===n&&e.destroy(new Error(B_.default.errors.permanentlyDisconnected()))}))}async _initializeStateAsync(){let e;try{e=await this.request({method:"metamask_getProviderState"})}catch(e){this._log.error("MetaMask: Failed to get initial state. Please report this bug.",e)}this._initializeState(e)}_handleStreamDisconnect(e,t){let n=`MetaMask: Lost connection to "${e}".`;(null==t?void 0:t.stack)&&(n+=`\n${t.stack}`),this._log.warn(n),this.listenerCount("error")>0&&this.emit("error",n),this._handleDisconnect(!1,t?t.message:void 0)}_handleChainChanged({chainId:e,networkVersion:t}={}){C_.isValidChainId(e)&&C_.isValidNetworkVersion(t)?"loading"===t?this._handleDisconnect(!0):super._handleChainChanged({chainId:e}):this._log.error(B_.default.errors.invalidNetworkParams(),{chainId:e,networkVersion:t})}}OB.AbstractStreamProvider=S_,OB.StreamProvider=class extends S_{async initialize(){return this._initializeStateAsync()}},function(e){var t=r&&r.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,"__esModule",{value:!0}),e.MetaMaskInpageProvider=e.MetaMaskInpageProviderStreamName=void 0;const n=Sw,i=kB,o=t(bE),a=vE,s=OB;e.MetaMaskInpageProviderStreamName="metamask-provider";class c extends s.AbstractStreamProvider{constructor(t,{jsonRpcStreamName:n=e.MetaMaskInpageProviderStreamName,logger:r=console,maxEventListeners:o,shouldSendMetadata:s}={}){if(super(t,{jsonRpcStreamName:n,logger:r,maxEventListeners:o,rpcMiddleware:a.getDefaultExternalMiddleware(r)}),this._sentWarnings={enable:!1,experimentalMethods:!1,send:!1,events:{close:!1,data:!1,networkChanged:!1,notification:!1}},this._initializeStateAsync(),this.networkVersion=null,this.isMetaMask=!0,this._sendSync=this._sendSync.bind(this),this.enable=this.enable.bind(this),this.send=this.send.bind(this),this.sendAsync=this.sendAsync.bind(this),this._warnOfDeprecation=this._warnOfDeprecation.bind(this),this._metamask=this._getExperimentalApi(),this._jsonRpcConnection.events.on("notification",(e=>{const{method:t}=e;a.EMITTED_NOTIFICATIONS.includes(t)&&(this.emit("data",e),this.emit("notification",e.params.result))})),s)if("complete"===document.readyState)i.sendSiteMetadata(this._rpcEngine,this._log);else{const e=()=>{i.sendSiteMetadata(this._rpcEngine,this._log),window.removeEventListener("DOMContentLoaded",e)};window.addEventListener("DOMContentLoaded",e)}}sendAsync(e,t){this._rpcRequest(e,t)}addListener(e,t){return this._warnOfDeprecation(e),super.addListener(e,t)}on(e,t){return this._warnOfDeprecation(e),super.on(e,t)}once(e,t){return this._warnOfDeprecation(e),super.once(e,t)}prependListener(e,t){return this._warnOfDeprecation(e),super.prependListener(e,t)}prependOnceListener(e,t){return this._warnOfDeprecation(e),super.prependOnceListener(e,t)}_handleDisconnect(e,t){super._handleDisconnect(e,t),this.networkVersion&&!e&&(this.networkVersion=null)}_warnOfDeprecation(e){var t;!1===(null===(t=this._sentWarnings)||void 0===t?void 0:t.events[e])&&(this._log.warn(o.default.warnings.events[e]),this._sentWarnings.events[e]=!0)}enable(){return this._sentWarnings.enable||(this._log.warn(o.default.warnings.enableDeprecation),this._sentWarnings.enable=!0),new Promise(((e,t)=>{try{this._rpcRequest({method:"eth_requestAccounts",params:[]},a.getRpcPromiseCallback(e,t))}catch(e){t(e)}}))}send(e,t){return this._sentWarnings.send||(this._log.warn(o.default.warnings.sendDeprecation),this._sentWarnings.send=!0),"string"!=typeof e||t&&!Array.isArray(t)?e&&"object"==typeof e&&"function"==typeof t?this._rpcRequest(e,t):this._sendSync(e):new Promise(((n,r)=>{try{this._rpcRequest({method:e,params:t},a.getRpcPromiseCallback(n,r,!1))}catch(e){r(e)}}))}_sendSync(e){let t;switch(e.method){case"eth_accounts":t=this.selectedAddress?[this.selectedAddress]:[];break;case"eth_coinbase":t=this.selectedAddress||null;break;case"eth_uninstallFilter":this._rpcRequest(e,a.NOOP),t=!0;break;case"net_version":t=this.networkVersion||null;break;default:throw new Error(o.default.errors.unsupportedSync(e.method))}return{id:e.id,jsonrpc:e.jsonrpc,result:t}}_getExperimentalApi(){return new Proxy({isUnlocked:async()=>(this._state.initialized||await new Promise((e=>{this.on("_initialized",(()=>e()))})),this._state.isUnlocked),requestBatch:async e=>{if(!Array.isArray(e))throw n.ethErrors.rpc.invalidRequest({message:"Batch requests must be made with an array of request objects.",data:e});return new Promise(((t,n)=>{this._rpcRequest(e,a.getRpcPromiseCallback(t,n))}))}},{get:(e,t,...n)=>(this._sentWarnings.experimentalMethods||(this._log.warn(o.default.warnings.experimentalMethods),this._sentWarnings.experimentalMethods=!0),Reflect.get(e,t,...n))})}_handleChainChanged({chainId:e,networkVersion:t}={}){super._handleChainChanged({chainId:e,networkVersion:t}),this._state.isConnected&&t!==this.networkVersion&&(this.networkVersion=t,this._state.initialized&&this.emit("networkChanged",this.networkVersion))}}e.MetaMaskInpageProvider=c}(QB);var Q_=r&&r.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(OE,"__esModule",{value:!0}),OE.createExternalExtensionProvider=void 0;const k_=Q_(LE),M_=SB,x_=QB,R_=OB,D_=vE,T_=Q_({CHROME_ID:"nkbihfbeogaeaoehlefnkodbefgpgknn",FIREFOX_ID:"webextension@metamask.io"}),N_=M_.detect();OE.createExternalExtensionProvider=function(){let e;try{const t=function(){switch(null==N_?void 0:N_.name){case"chrome":default:return T_.default.CHROME_ID;case"firefox":return T_.default.FIREFOX_ID}}(),n=chrome.runtime.connect(t),r=new k_.default(n);e=new R_.StreamProvider(r,{jsonRpcStreamName:x_.MetaMaskInpageProviderStreamName,logger:console,rpcMiddleware:D_.getDefaultExternalMiddleware(console)}),e.initialize()}catch(e){throw console.dir("MetaMask connect error.",e),e}return e};var O_={},L_={};Object.defineProperty(L_,"__esModule",{value:!0}),L_.shimWeb3=void 0,L_.shimWeb3=function(e,t=console){let n=!1,r=!1;if(!window.web3){const i="__isMetaMaskShim__";let o={currentProvider:e};Object.defineProperty(o,i,{value:!0,enumerable:!0,configurable:!1,writable:!1}),o=new Proxy(o,{get:(o,a,...s)=>("currentProvider"!==a||n?"currentProvider"===a||a===i||r||(r=!0,t.error("MetaMask no longer injects web3. For details, see: https://docs.metamask.io/guide/provider-migration.html#replacing-window-web3"),e.request({method:"metamask_logWeb3ShimUsage"}).catch((e=>{t.debug("MetaMask: Failed to log web3 shim usage.",e)}))):(n=!0,t.warn("You are accessing the MetaMask window.web3.currentProvider shim. This property is deprecated; use window.ethereum instead. For details, see: https://docs.metamask.io/guide/provider-migration.html#replacing-window-web3")),Reflect.get(o,a,...s)),set:(...e)=>(t.warn("You are accessing the MetaMask window.web3 shim. This object is deprecated; use window.ethereum instead. For details, see: https://docs.metamask.io/guide/provider-migration.html#replacing-window-web3"),Reflect.set(...e))}),Object.defineProperty(window,"web3",{value:o,enumerable:!1,configurable:!0,writable:!0})}},Object.defineProperty(O_,"__esModule",{value:!0}),O_.setGlobalProvider=O_.initializeProvider=void 0;const P_=QB,U_=L_;function F_(e){window.ethereum=e,window.dispatchEvent(new Event("ethereum#initialized"))}O_.initializeProvider=function({connectionStream:e,jsonRpcStreamName:t,logger:n=console,maxEventListeners:r=100,shouldSendMetadata:i=!0,shouldSetOnWindow:o=!0,shouldShimWeb3:a=!1}){const s=new P_.MetaMaskInpageProvider(e,{jsonRpcStreamName:t,logger:n,maxEventListeners:r,shouldSendMetadata:i}),c=new Proxy(s,{deleteProperty:()=>!0});return o&&F_(c),a&&U_.shimWeb3(c,n),c},O_.setGlobalProvider=F_,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.StreamProvider=e.shimWeb3=e.setGlobalProvider=e.MetaMaskInpageProvider=e.MetaMaskInpageProviderStreamName=e.initializeProvider=e.createExternalExtensionProvider=e.BaseProvider=void 0;const t=hw;Object.defineProperty(e,"BaseProvider",{enumerable:!0,get:function(){return t.BaseProvider}});const n=OE;Object.defineProperty(e,"createExternalExtensionProvider",{enumerable:!0,get:function(){return n.createExternalExtensionProvider}});const r=O_;Object.defineProperty(e,"initializeProvider",{enumerable:!0,get:function(){return r.initializeProvider}}),Object.defineProperty(e,"setGlobalProvider",{enumerable:!0,get:function(){return r.setGlobalProvider}});const i=QB;Object.defineProperty(e,"MetaMaskInpageProvider",{enumerable:!0,get:function(){return i.MetaMaskInpageProvider}}),Object.defineProperty(e,"MetaMaskInpageProviderStreamName",{enumerable:!0,get:function(){return i.MetaMaskInpageProviderStreamName}});const o=L_;Object.defineProperty(e,"shimWeb3",{enumerable:!0,get:function(){return o.shimWeb3}});const a=OB;Object.defineProperty(e,"StreamProvider",{enumerable:!0,get:function(){return a.StreamProvider}})}(Aw);class j_ extends Aw.MetaMaskInpageProvider{constructor({connectionStream:e,shouldSendMetadata:t,debug:n=!1,autoRequestAccounts:r=!1}){super(e,{logger:console,maxEventListeners:100,shouldSendMetadata:t}),this.state={debug:!1,autoRequestAccounts:!1,providerStateRequested:!1},n&&console.debug(`SDKProvider::constructor debug=${n} autoRequestAccounts=${r}`),this.state.autoRequestAccounts=r,this.state.debug=n}forceInitializeState(){return lw(this,void 0,void 0,(function*(){return this.state.debug&&console.debug(`SDKProvider::forceInitializeState() autoRequestAccounts=${this.state.autoRequestAccounts}`),this._initializeStateAsync()}))}_setConnected(){this.state.debug&&console.debug("SDKProvider::_setConnected()"),this._state.isConnected=!0}getState(){return this._state}getSDKProviderState(){return this.state}setSDKProviderState(e){this.state=Object.assign(Object.assign({},this.state),e)}handleDisconnect({terminate:e=!1}){!function({terminate:e=!1,instance:t}){const{state:n}=t;t.isConnected()?(n.debug&&console.debug(`SDKProvider::handleDisconnect() cleaning up provider state terminate=${e}`,t),e&&(t.chainId=null,t._state.accounts=null,t.selectedAddress=null,t._state.isUnlocked=!1,t._state.isPermanentlyDisconnected=!0,t._state.initialized=!1),t._handleAccountsChanged([]),t._state.isConnected=!1,t.emit("disconnect",Sw.ethErrors.provider.disconnected()),n.providerStateRequested=!1):n.debug&&console.debug("SDKProvider::handleDisconnect() not connected --- interrup disconnection")}({terminate:e,instance:this})}_initializeStateAsync(){return lw(this,void 0,void 0,(function*(){return function(e){var t;return lw(this,void 0,void 0,(function*(){void 0===e.state&&(e.state={debug:!1,autoRequestAccounts:!1,providerStateRequested:!1});const{state:n}=e;if(n.debug&&console.debug("SDKProvider::_initializeStateAsync()"),n.providerStateRequested)n.debug&&console.debug("SDKProvider::_initializeStateAsync() initialization already in progress");else{let r;n.providerStateRequested=!0;try{r=yield e.request({method:"metamask_getProviderState"})}catch(t){return e._log.error("MetaMask: Failed to get initial state. Please report this bug.",t),void(n.providerStateRequested=!1)}if(n.debug&&console.debug(`SDKProvider::_initializeStateAsync state selectedAddress=${e.selectedAddress} `,r),0===(null===(t=null==r?void 0:r.accounts)||void 0===t?void 0:t.length))if(n.debug&&console.debug("SDKProvider::_initializeStateAsync initial state doesn't contain accounts"),e.selectedAddress)n.debug&&console.debug("SDKProvider::_initializeStateAsync using instance.selectedAddress instead"),r.accounts=[e.selectedAddress];else{n.debug&&console.debug("SDKProvider::_initializeStateAsync Fetch accounts remotely.");const t=yield e.request({method:"eth_requestAccounts",params:[]});r.accounts=t}e._initializeState(r),n.providerStateRequested=!1}}))}(this)}))}_initializeState(e){return function(e,t,n){const{state:r}=e;return r.debug&&console.debug("SDKProvider::_initializeState() set state._initialized to false"),e._state.initialized=!1,t(n)}(this,super._initializeState.bind(this),e)}_handleChainChanged({chainId:e,networkVersion:t}={}){!function({instance:e,chainId:t,networkVersion:n,superHandleChainChanged:r}){const{state:i}=e;i.debug&&console.debug(`SDKProvider::_handleChainChanged chainId=${t} networkVersion=${n}`);let o=n;n||(console.info("forced network version to prevent provider error"),o="1"),e._state.isConnected=!0,e.emit("connect",{chainId:t}),r({chainId:t,networkVersion:o})}({instance:this,chainId:e,networkVersion:t,superHandleChainChanged:super._handleChainChanged.bind(this)})}}var q_={exports:{}};!function(e,t){!function(t){var n=Object.hasOwnProperty,r=Array.isArray?Array.isArray:function(e){return"[object Array]"===Object.prototype.toString.call(e)},i="object"==typeof R&&!0,o="function"==typeof Symbol,a="object"==typeof Reflect,s="function"==typeof setImmediate?setImmediate:setTimeout,c=o?a&&"function"==typeof Reflect.ownKeys?Reflect.ownKeys:function(e){var t=Object.getOwnPropertyNames(e);return t.push.apply(t,Object.getOwnPropertySymbols(e)),t}:Object.keys;function u(){this._events={},this._conf&&l.call(this,this._conf)}function l(e){e&&(this._conf=e,e.delimiter&&(this.delimiter=e.delimiter),e.maxListeners!==t&&(this._maxListeners=e.maxListeners),e.wildcard&&(this.wildcard=e.wildcard),e.newListener&&(this._newListener=e.newListener),e.removeListener&&(this._removeListener=e.removeListener),e.verboseMemoryLeak&&(this.verboseMemoryLeak=e.verboseMemoryLeak),e.ignoreErrors&&(this.ignoreErrors=e.ignoreErrors),this.wildcard&&(this.listenerTree={}))}function f(e,t){var n="(node) warning: possible EventEmitter memory leak detected. "+e+" listeners added. Use emitter.setMaxListeners() to increase limit.";if(this.verboseMemoryLeak&&(n+=" Event name: "+t+"."),void 0!==R&&R.emitWarning){var r=new Error(n);r.name="MaxListenersExceededWarning",r.emitter=this,r.count=e,R.emitWarning(r)}else console.error(n),console.trace&&console.trace()}var d=function(e,t,n){var r=arguments.length;switch(r){case 0:return[];case 1:return[e];case 2:return[e,t];case 3:return[e,t,n];default:for(var i=new Array(r);r--;)i[r]=arguments[r];return i}};function A(e,n){for(var r={},i=e.length,o=n?n.length:0,a=0;a0;)if(o===e[a])return r;i(t)}}Object.assign(h.prototype,{subscribe:function(e,t,n){var r=this,i=this._target,o=this._emitter,a=this._listeners,s=function(){var r=d.apply(null,arguments),a={data:r,name:t,original:e};n?!1!==n.call(i,a)&&o.emit.apply(o,[a.name].concat(r)):o.emit.apply(o,[t].concat(r))};if(a[e])throw Error("Event '"+e+"' is already listening");this._listenersCount++,o._newListener&&o._removeListener&&!r._onNewListener?(this._onNewListener=function(n){n===t&&null===a[e]&&(a[e]=s,r._on.call(i,e,s))},o.on("newListener",this._onNewListener),this._onRemoveListener=function(n){n===t&&!o.hasListeners(n)&&a[e]&&(a[e]=null,r._off.call(i,e,s))},a[e]=null,o.on("removeListener",this._onRemoveListener)):(a[e]=s,r._on.call(i,e,s))},unsubscribe:function(e){var t,n,r,i=this,o=this._listeners,a=this._emitter,s=this._off,u=this._target;if(e&&"string"!=typeof e)throw TypeError("event must be a string");function l(){i._onNewListener&&(a.off("newListener",i._onNewListener),a.off("removeListener",i._onRemoveListener),i._onNewListener=null,i._onRemoveListener=null);var e=E.call(a,i);a._observers.splice(e,1)}if(e){if(!(t=o[e]))return;s.call(u,e,t),delete o[e],--this._listenersCount||l()}else{for(r=(n=c(o)).length;r-- >0;)e=n[r],s.call(u,e,o[e]);this._listeners={},this._listenersCount=0,l()}}});var m=y(["function"]),v=y(["object","function"]);function w(e,t,n){var r,i,o,a=0,s=new e((function(c,u,l){function f(){i&&(i=null),a&&(clearTimeout(a),a=0)}n=p(n,{timeout:0,overload:!1},{timeout:function(e,t){return("number"!=typeof(e*=1)||e<0||!Number.isFinite(e))&&t("timeout must be a positive number"),e}}),r=!n.overload&&"function"==typeof e.prototype.cancel&&"function"==typeof l;var d=function(e){f(),c(e)},A=function(e){f(),u(e)};r?t(d,A,l):(i=[function(e){A(e||Error("canceled"))}],t(d,A,(function(e){if(o)throw Error("Unable to subscribe on cancel event asynchronously");if("function"!=typeof e)throw TypeError("onCancel callback must be a function");i.push(e)})),o=!0),n.timeout>0&&(a=setTimeout((function(){var e=Error("timeout");e.code="ETIMEDOUT",a=0,s.cancel(e),u(e)}),n.timeout))}));return r||(s.cancel=function(e){if(i){for(var t=i.length,n=1;n0;)"_listeners"!==(A=m[s])&&(b=I(e,t,n[A],r+1,i))&&(v?v.push.apply(v,b):v=b);return v}if("**"===w){for((y=r+1===i||r+2===i&&"*"===E)&&n._listeners&&(v=I(e,t,n,i,i)),s=(m=c(n)).length;s-- >0;)"_listeners"!==(A=m[s])&&("*"===A||"**"===A?(n[A]._listeners&&!y&&(b=I(e,t,n[A],i,i))&&(v?v.push.apply(v,b):v=b),b=I(e,t,n[A],r,i)):b=I(e,t,n[A],A===E?r+2:r,i),b&&(v?v.push.apply(v,b):v=b));return v}n[w]&&(v=I(e,t,n[w],r+1,i))}if((h=n["*"])&&I(e,t,h,r+1,i),p=n["**"])if(r0;)"_listeners"!==(A=m[s])&&(A===E?I(e,t,p[A],r+2,i):A===w?I(e,t,p[A],r+1,i):((g={})[A]=p[A],I(e,t,{"**":g},r+1,i)));else p._listeners?I(e,t,p,i,i):p["*"]&&p["*"]._listeners&&I(e,t,p["*"],i,i);return v}function B(e,t,n){var r,i,o=0,a=0,s=this.delimiter,c=s.length;if("string"==typeof e)if(-1!==(r=e.indexOf(s))){i=new Array(5);do{i[o++]=e.slice(a,r),a=r+c}while(-1!==(r=e.indexOf(s,a)));i[o++]=e.slice(a)}else i=[e],o=1;else i=e,o=e.length;if(o>1)for(r=0;r+10&&l._listeners.length>this._maxListeners&&(l._listeners.warned=!0,f.call(this,l._listeners.length,u))):l._listeners=t,!0;return!0}function C(e,t,n,r){for(var i,o,a,s,u=c(e),l=u.length,f=e._listeners;l-- >0;)i=e[o=u[l]],a="_listeners"===o?n:n?n.concat(o):[o],s=r||"symbol"==typeof o,f&&t.push(s?a:a.join(this.delimiter)),"object"==typeof i&&C.call(this,i,t,a,s);return t}function _(e){for(var t,n,r,i=c(e),o=i.length;o-- >0;)(t=e[n=i[o]])&&(r=!0,"_listeners"===n||_(t)||delete e[n]);return r}function S(e,t,n){this.emitter=e,this.event=t,this.listener=n}function Q(e,n,r){if(!0===r)a=!0;else if(!1===r)o=!0;else{if(!r||"object"!=typeof r)throw TypeError("options should be an object or true");var o=r.async,a=r.promisify,c=r.nextTick,u=r.objectify}if(o||c||a){var l=n,f=n._origin||n;if(c&&!i)throw Error("process.nextTick is not supported");a===t&&(a="AsyncFunction"===n.constructor.name),n=function(){var e=arguments,t=this,n=this.event;return a?c?Promise.resolve():new Promise((function(e){s(e)})).then((function(){return t.event=n,l.apply(t,e)})):(c?b:s)((function(){t.event=n,l.apply(t,e)}))},n._async=!0,n._origin=f}return[n,u?new S(this,e,n):this]}function k(e){this._events={},this._newListener=!1,this._removeListener=!1,this.verboseMemoryLeak=!1,l.call(this,e)}S.prototype.off=function(){return this.emitter.off(this.event,this.listener),this},k.EventEmitter2=k,k.prototype.listenTo=function(e,n,i){if("object"!=typeof e)throw TypeError("target musts be an object");var o=this;function a(t){if("object"!=typeof t)throw TypeError("events must be an object");var n,r=i.reducers,a=E.call(o,e);n=-1===a?new h(o,e,i):o._observers[a];for(var s,u=c(t),l=u.length,f="function"==typeof r,d=0;d0;)r=n[i],e&&r._target!==e||(r.unsubscribe(t),o=!0);return o},k.prototype.delimiter=".",k.prototype.setMaxListeners=function(e){e!==t&&(this._maxListeners=e,this._conf||(this._conf={}),this._conf.maxListeners=e)},k.prototype.getMaxListeners=function(){return this._maxListeners},k.prototype.event="",k.prototype.once=function(e,t,n){return this._once(e,t,!1,n)},k.prototype.prependOnceListener=function(e,t,n){return this._once(e,t,!0,n)},k.prototype._once=function(e,t,n,r){return this._many(e,1,t,n,r)},k.prototype.many=function(e,t,n,r){return this._many(e,t,n,!1,r)},k.prototype.prependMany=function(e,t,n,r){return this._many(e,t,n,!0,r)},k.prototype._many=function(e,t,n,r,i){var o=this;if("function"!=typeof n)throw new Error("many only accepts instances of Function");function a(){return 0==--t&&o.off(e,a),n.apply(this,arguments)}return a._origin=n,this._on(e,a,r,i)},k.prototype.emit=function(){if(!this._events&&!this._all)return!1;this._events||u.call(this);var e,t,n,r,i,a,s=arguments[0],c=this.wildcard;if("newListener"===s&&!this._newListener&&!this._events.newListener)return!1;if(c&&(e=s,"newListener"!==s&&"removeListener"!==s&&"object"==typeof s)){if(n=s.length,o)for(r=0;r3)for(t=new Array(f-1),i=1;i3)for(n=new Array(d-1),a=1;a0&&this._events[e].length>this._maxListeners&&(this._events[e].warned=!0,f.call(this,this._events[e].length,e))):this._events[e]=n,a)},k.prototype.off=function(e,t){if("function"!=typeof t)throw new Error("removeListener only takes instances of Function");var n,i=[];if(this.wildcard){var o="string"==typeof e?e.split(this.delimiter):e.slice();if(!(i=I.call(this,null,o,this.listenerTree,0)))return this}else{if(!this._events[e])return this;n=this._events[e],i.push({_listeners:n})}for(var a=0;a0){for(n=0,r=(t=this._all).length;n0;)"function"==typeof(r=s[n[o]])?i.push(r):i.push.apply(i,r);return i}if(this.wildcard){if(!(a=this.listenerTree))return[];var u=[],l="string"==typeof e?e.split(this.delimiter):e.slice();return I.call(this,u,l,a,0),u}return s&&(r=s[e])?"function"==typeof r?[r]:r:[]},k.prototype.eventNames=function(e){var t=this._events;return this.wildcard?C.call(this,this.listenerTree,[],null,e):t?c(t):[]},k.prototype.listenerCount=function(e){return this.listeners(e).length},k.prototype.hasListeners=function(e){if(this.wildcard){var n=[],r="string"==typeof e?e.split(this.delimiter):e.slice();return I.call(this,n,r,this.listenerTree,0),n.length>0}var i=this._events,o=this._all;return!!(o&&o.length||i&&(e===t?c(i).length:i[e]))},k.prototype.listenersAny=function(){return this._all?this._all:[]},k.prototype.waitFor=function(e,n){var r=this,i=typeof n;return"number"===i?n={timeout:n}:"function"===i&&(n={filter:n}),w((n=p(n,{timeout:0,filter:t,handleError:!1,Promise:Promise,overload:!1},{filter:m,Promise:g})).Promise,(function(t,i,o){function a(){var o=n.filter;if(!o||o.apply(r,arguments))if(r.off(e,a),n.handleError){var s=arguments[0];s?i(s):t(d.apply(null,arguments).slice(1))}else t(d.apply(null,arguments))}o((function(){r.off(e,a)})),r._on(e,a,!1)}),{timeout:n.timeout,overload:n.overload})};var M=k.prototype;Object.defineProperties(k,{defaultMaxListeners:{get:function(){return M._maxListeners},set:function(e){if("number"!=typeof e||e<0||Number.isNaN(e))throw TypeError("n must be a non-negative number");M._maxListeners=e},enumerable:!0},once:{value:function(e,t,n){return w((n=p(n,{Promise:Promise,timeout:0,overload:!1},{Promise:g})).Promise,(function(n,r,i){var o;if("function"==typeof e.addEventListener)return o=function(){n(d.apply(null,arguments))},i((function(){e.removeEventListener(t,o)})),void e.addEventListener(t,o,{once:!0});var a,s=function(){a&&e.removeListener("error",a),n(d.apply(null,arguments))};"error"!==t&&(a=function(n){e.removeListener(t,s),r(n)},e.once("error",a)),i((function(){a&&e.removeListener("error",a),e.removeListener(t,s)})),e.once(t,s)}),{timeout:n.timeout,overload:n.overload})},writable:!0,configurable:!0}}),Object.defineProperties(M,{_maxListeners:{value:10,writable:!0,configurable:!0},_observers:{value:null,writable:!0,configurable:!0}}),"function"==typeof t&&t.amd?t((function(){return k})):e.exports=k}()}(q_);var G_=i(q_.exports);function H_(e){return H_="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},H_(e)}function Y_(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function K_(e){var t=function(e,t){if("object"!==H_(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!==H_(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===H_(t)?t:String(t)}function z_(e,t){for(var n=0;ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n1&&void 0!==arguments[1]?arguments[1]:{};Y_(this,e),this.init(t,n)}return V_(e,[{key:"init",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.prefix=t.prefix||"i18next:",this.logger=e||iS,this.options=t,this.debug=t.debug}},{key:"setDebug",value:function(e){this.debug=e}},{key:"log",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n1?t-1:0),r=1;r-1?e.replace(/###/g,"."):e}function i(){return!e||"string"==typeof e}for(var o="string"!=typeof t?[].concat(t):t.split(".");o.length>1;){if(i())return{};var a=r(o.shift());!e[a]&&n&&(e[a]=new n),e=Object.prototype.hasOwnProperty.call(e,a)?e[a]:{}}return i()?{}:{obj:e,k:r(o.shift())}}function fS(e,t,n){var r=lS(e,t,Object);r.obj[r.k]=n}function dS(e,t){var n=lS(e,t),r=n.obj,i=n.k;if(r)return r[i]}function AS(e,t,n){for(var r in t)"__proto__"!==r&&"constructor"!==r&&(r in e?"string"==typeof e[r]||e[r]instanceof String||"string"==typeof t[r]||t[r]instanceof String?n&&(e[r]=t[r]):AS(e[r],t[r],n):e[r]=t[r]);return e}function hS(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var pS={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};function gS(e){return"string"==typeof e?e.replace(/[&<>"'\/]/g,(function(e){return pS[e]})):e}var yS="undefined"!=typeof window&&window.navigator&&void 0===window.navigator.userAgentData&&window.navigator.userAgent&&window.navigator.userAgent.indexOf("MSIE")>-1,mS=[" ",",","?","!",";"];function bS(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:".";if(e){if(e[t])return e[t];for(var r=t.split(n),i=e,o=0;oo+a;)a++,c=i[s=r.slice(o,o+a).join(n)];if(void 0===c)return;if(null===c)return null;if(t.endsWith(s)){if("string"==typeof c)return c;if(s&&"string"==typeof c[s])return c[s]}var u=r.slice(o+a).join(n);return u?bS(c,u,n):void 0}i=i[r[o]]}return i}}function vS(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function wS(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:{ns:["translation"],defaultNS:"translation"};return Y_(this,n),r=t.call(this),yS&&sS.call(J_(r)),r.data=e||{},r.options=i,void 0===r.options.keySeparator&&(r.options.keySeparator="."),void 0===r.options.ignoreJSONStructure&&(r.options.ignoreJSONStructure=!0),r}return V_(n,[{key:"addNamespaces",value:function(e){this.options.ns.indexOf(e)<0&&this.options.ns.push(e)}},{key:"removeNamespaces",value:function(e){var t=this.options.ns.indexOf(e);t>-1&&this.options.ns.splice(t,1)}},{key:"getResource",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=void 0!==r.keySeparator?r.keySeparator:this.options.keySeparator,o=void 0!==r.ignoreJSONStructure?r.ignoreJSONStructure:this.options.ignoreJSONStructure,a=[e,t];n&&"string"!=typeof n&&(a=a.concat(n)),n&&"string"==typeof n&&(a=a.concat(i?n.split(i):n)),e.indexOf(".")>-1&&(a=e.split("."));var s=dS(this.data,a);return s||!o||"string"!=typeof n?s:bS(this.data&&this.data[e]&&this.data[e][t],n,i)}},{key:"addResource",value:function(e,t,n,r){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{silent:!1},o=void 0!==i.keySeparator?i.keySeparator:this.options.keySeparator,a=[e,t];n&&(a=a.concat(o?n.split(o):n)),e.indexOf(".")>-1&&(r=t,t=(a=e.split("."))[1]),this.addNamespaces(t),fS(this.data,a,r),i.silent||this.emit("added",e,t,n,r)}},{key:"addResources",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{silent:!1};for(var i in n)"string"!=typeof n[i]&&"[object Array]"!==Object.prototype.toString.apply(n[i])||this.addResource(e,t,i,n[i],{silent:!0});r.silent||this.emit("added",e,t,n)}},{key:"addResourceBundle",value:function(e,t,n,r,i){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{silent:!1},a=[e,t];e.indexOf(".")>-1&&(r=n,n=t,t=(a=e.split("."))[1]),this.addNamespaces(t);var s=dS(this.data,a)||{};r?AS(s,n,i):s=wS(wS({},s),n),fS(this.data,a,s),o.silent||this.emit("added",e,t,n)}},{key:"removeResourceBundle",value:function(e,t){this.hasResourceBundle(e,t)&&delete this.data[e][t],this.removeNamespaces(t),this.emit("removed",e,t)}},{key:"hasResourceBundle",value:function(e,t){return void 0!==this.getResource(e,t)}},{key:"getResourceBundle",value:function(e,t){return t||(t=this.options.defaultNS),"v1"===this.options.compatibilityAPI?wS(wS({},{}),this.getResource(e,t)):this.getResource(e,t)}},{key:"getDataByLanguage",value:function(e){return this.data[e]}},{key:"hasLanguageSomeTranslations",value:function(e){var t=this.getDataByLanguage(e);return!!(t&&Object.keys(t)||[]).find((function(e){return t[e]&&Object.keys(t[e]).length>0}))}},{key:"toJSON",value:function(){return this.data}}]),n}(sS),IS={processors:{},addPostProcessor:function(e){this.processors[e.name]=e},handle:function(e,t,n,r,i){var o=this;return e.forEach((function(e){o.processors[e]&&(t=o.processors[e].process(t,n,r,i))})),t}};function BS(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function CS(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:{};return Y_(this,n),r=t.call(this),yS&&sS.call(J_(r)),function(e,t,n){["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"].forEach((function(e){t[e]&&(n[e]=t[e])}))}(0,e,J_(r)),r.options=i,void 0===r.options.keySeparator&&(r.options.keySeparator="."),r.logger=aS.create("translator"),r}return V_(n,[{key:"changeLanguage",value:function(e){e&&(this.language=e)}},{key:"exists",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}};if(null==e)return!1;var n=this.resolve(e,t);return n&&void 0!==n.res}},{key:"extractFromKey",value:function(e,t){var n=void 0!==t.nsSeparator?t.nsSeparator:this.options.nsSeparator;void 0===n&&(n=":");var r=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator,i=t.ns||this.options.defaultNS||[],o=n&&e.indexOf(n)>-1,a=!(this.options.userDefinedKeySeparator||t.keySeparator||this.options.userDefinedNsSeparator||t.nsSeparator||function(e,t,n){t=t||"",n=n||"";var r=mS.filter((function(e){return t.indexOf(e)<0&&n.indexOf(e)<0}));if(0===r.length)return!0;var i=new RegExp("(".concat(r.map((function(e){return"?"===e?"\\?":e})).join("|"),")")),o=!i.test(e);if(!o){var a=e.indexOf(n);a>0&&!i.test(e.substring(0,a))&&(o=!0)}return o}(e,n,r));if(o&&!a){var s=e.match(this.interpolator.nestingRegexp);if(s&&s.length>0)return{key:e,namespaces:i};var c=e.split(n);(n!==r||n===r&&this.options.ns.indexOf(c[0])>-1)&&(i=c.shift()),e=c.join(r)}return"string"==typeof i&&(i=[i]),{key:e,namespaces:i}}},{key:"translate",value:function(e,t,r){var i=this;if("object"!==H_(t)&&this.options.overloadTranslationOptionHandler&&(t=this.options.overloadTranslationOptionHandler(arguments)),"object"===H_(t)&&(t=CS({},t)),t||(t={}),null==e)return"";Array.isArray(e)||(e=[String(e)]);var o=void 0!==t.returnDetails?t.returnDetails:this.options.returnDetails,a=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator,s=this.extractFromKey(e[e.length-1],t),c=s.key,u=s.namespaces,l=u[u.length-1],f=t.lng||this.language,d=t.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(f&&"cimode"===f.toLowerCase()){if(d){var A=t.nsSeparator||this.options.nsSeparator;return o?{res:"".concat(l).concat(A).concat(c),usedKey:c,exactUsedKey:c,usedLng:f,usedNS:l}:"".concat(l).concat(A).concat(c)}return o?{res:c,usedKey:c,exactUsedKey:c,usedLng:f,usedNS:l}:c}var h=this.resolve(e,t),p=h&&h.res,g=h&&h.usedKey||c,y=h&&h.exactUsedKey||c,m=Object.prototype.toString.apply(p),b=void 0!==t.joinArrays?t.joinArrays:this.options.joinArrays,v=!this.i18nFormat||this.i18nFormat.handleAsObject;if(v&&p&&"string"!=typeof p&&"boolean"!=typeof p&&"number"!=typeof p&&["[object Number]","[object Function]","[object RegExp]"].indexOf(m)<0&&("string"!=typeof b||"[object Array]"!==m)){if(!t.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");var w=this.options.returnedObjectHandler?this.options.returnedObjectHandler(g,p,CS(CS({},t),{},{ns:u})):"key '".concat(c," (").concat(this.language,")' returned an object instead of string.");return o?(h.res=w,h):w}if(a){var E="[object Array]"===m,I=E?[]:{},B=E?y:g;for(var C in p)if(Object.prototype.hasOwnProperty.call(p,C)){var _="".concat(B).concat(a).concat(C);I[C]=this.translate(_,CS(CS({},t),{joinArrays:!1,ns:u})),I[C]===_&&(I[C]=p[C])}p=I}}else if(v&&"string"==typeof b&&"[object Array]"===m)(p=p.join(b))&&(p=this.extendTranslation(p,e,t,r));else{var S=!1,Q=!1,k=void 0!==t.count&&"string"!=typeof t.count,M=n.hasDefaultValue(t),x=k?this.pluralResolver.getSuffix(f,t.count,t):"",R=t["defaultValue".concat(x)]||t.defaultValue;!this.isValidLookup(p)&&M&&(S=!0,p=R),this.isValidLookup(p)||(Q=!0,p=c);var D=(t.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&Q?void 0:p,T=M&&R!==p&&this.options.updateMissing;if(Q||S||T){if(this.logger.log(T?"updateKey":"missingKey",f,l,c,T?R:p),a){var N=this.resolve(c,CS(CS({},t),{},{keySeparator:!1}));N&&N.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}var O=[],L=this.languageUtils.getFallbackCodes(this.options.fallbackLng,t.lng||this.language);if("fallback"===this.options.saveMissingTo&&L&&L[0])for(var P=0;P1&&void 0!==arguments[1]?arguments[1]:{};return"string"==typeof e&&(e=[e]),e.forEach((function(e){if(!a.isValidLookup(t)){var c=a.extractFromKey(e,s),u=c.key;n=u;var l=c.namespaces;a.options.fallbackNS&&(l=l.concat(a.options.fallbackNS));var f=void 0!==s.count&&"string"!=typeof s.count,d=f&&!s.ordinal&&0===s.count&&a.pluralResolver.shouldUseIntlApi(),A=void 0!==s.context&&("string"==typeof s.context||"number"==typeof s.context)&&""!==s.context,h=s.lngs?s.lngs:a.languageUtils.toResolveHierarchy(s.lng||a.language,s.fallbackLng);l.forEach((function(e){a.isValidLookup(t)||(o=e,!_S["".concat(h[0],"-").concat(e)]&&a.utils&&a.utils.hasLoadedNamespace&&!a.utils.hasLoadedNamespace(o)&&(_S["".concat(h[0],"-").concat(e)]=!0,a.logger.warn('key "'.concat(n,'" for languages "').concat(h.join(", "),'" won\'t get resolved as namespace "').concat(o,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),h.forEach((function(n){if(!a.isValidLookup(t)){i=n;var o,c=[u];if(a.i18nFormat&&a.i18nFormat.addLookupKeys)a.i18nFormat.addLookupKeys(c,u,n,e,s);else{var l;f&&(l=a.pluralResolver.getSuffix(n,s.count,s));var h="".concat(a.options.pluralSeparator,"zero");if(f&&(c.push(u+l),d&&c.push(u+h)),A){var p="".concat(u).concat(a.options.contextSeparator).concat(s.context);c.push(p),f&&(c.push(p+l),d&&c.push(p+h))}}for(;o=c.pop();)a.isValidLookup(t)||(r=o,t=a.getResource(n,e,o,s))}})))}))}})),{res:t,usedKey:n,exactUsedKey:r,usedLng:i,usedNS:o}}},{key:"isValidLookup",value:function(e){return!(void 0===e||!this.options.returnNull&&null===e||!this.options.returnEmptyString&&""===e)}},{key:"getResource",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(e,t,n,r):this.resourceStore.getResource(e,t,n,r)}}],[{key:"hasDefaultValue",value:function(e){for(var t in e)if(Object.prototype.hasOwnProperty.call(e,t)&&"defaultValue"===t.substring(0,12)&&void 0!==e[t])return!0;return!1}}]),n}(sS);function QS(e){return e.charAt(0).toUpperCase()+e.slice(1)}var kS=function(){function e(t){Y_(this,e),this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=aS.create("languageUtils")}return V_(e,[{key:"getScriptPartFromCode",value:function(e){if(!e||e.indexOf("-")<0)return null;var t=e.split("-");return 2===t.length?null:(t.pop(),"x"===t[t.length-1].toLowerCase()?null:this.formatLanguageCode(t.join("-")))}},{key:"getLanguagePartFromCode",value:function(e){if(!e||e.indexOf("-")<0)return e;var t=e.split("-");return this.formatLanguageCode(t[0])}},{key:"formatLanguageCode",value:function(e){if("string"==typeof e&&e.indexOf("-")>-1){var t=["hans","hant","latn","cyrl","cans","mong","arab"],n=e.split("-");return this.options.lowerCaseLng?n=n.map((function(e){return e.toLowerCase()})):2===n.length?(n[0]=n[0].toLowerCase(),n[1]=n[1].toUpperCase(),t.indexOf(n[1].toLowerCase())>-1&&(n[1]=QS(n[1].toLowerCase()))):3===n.length&&(n[0]=n[0].toLowerCase(),2===n[1].length&&(n[1]=n[1].toUpperCase()),"sgn"!==n[0]&&2===n[2].length&&(n[2]=n[2].toUpperCase()),t.indexOf(n[1].toLowerCase())>-1&&(n[1]=QS(n[1].toLowerCase())),t.indexOf(n[2].toLowerCase())>-1&&(n[2]=QS(n[2].toLowerCase()))),n.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}},{key:"isSupportedCode",value:function(e){return("languageOnly"===this.options.load||this.options.nonExplicitSupportedLngs)&&(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(e)>-1}},{key:"getBestMatchFromCodes",value:function(e){var t,n=this;return e?(e.forEach((function(e){if(!t){var r=n.formatLanguageCode(e);n.options.supportedLngs&&!n.isSupportedCode(r)||(t=r)}})),!t&&this.options.supportedLngs&&e.forEach((function(e){if(!t){var r=n.getLanguagePartFromCode(e);if(n.isSupportedCode(r))return t=r;t=n.options.supportedLngs.find((function(e){return e===r?e:e.indexOf("-")<0&&r.indexOf("-")<0?void 0:0===e.indexOf(r)?e:void 0}))}})),t||(t=this.getFallbackCodes(this.options.fallbackLng)[0]),t):null}},{key:"getFallbackCodes",value:function(e,t){if(!e)return[];if("function"==typeof e&&(e=e(t)),"string"==typeof e&&(e=[e]),"[object Array]"===Object.prototype.toString.apply(e))return e;if(!t)return e.default||[];var n=e[t];return n||(n=e[this.getScriptPartFromCode(t)]),n||(n=e[this.formatLanguageCode(t)]),n||(n=e[this.getLanguagePartFromCode(t)]),n||(n=e.default),n||[]}},{key:"toResolveHierarchy",value:function(e,t){var n=this,r=this.getFallbackCodes(t||this.options.fallbackLng||[],e),i=[],o=function(e){e&&(n.isSupportedCode(e)?i.push(e):n.logger.warn("rejecting language code not found in supportedLngs: ".concat(e)))};return"string"==typeof e&&e.indexOf("-")>-1?("languageOnly"!==this.options.load&&o(this.formatLanguageCode(e)),"languageOnly"!==this.options.load&&"currentOnly"!==this.options.load&&o(this.getScriptPartFromCode(e)),"currentOnly"!==this.options.load&&o(this.getLanguagePartFromCode(e))):"string"==typeof e&&o(this.formatLanguageCode(e)),r.forEach((function(e){i.indexOf(e)<0&&o(n.formatLanguageCode(e))})),i}}]),e}(),MS=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],xS={1:function(e){return Number(e>1)},2:function(e){return Number(1!=e)},3:function(e){return 0},4:function(e){return Number(e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2)},5:function(e){return Number(0==e?0:1==e?1:2==e?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5)},6:function(e){return Number(1==e?0:e>=2&&e<=4?1:2)},7:function(e){return Number(1==e?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2)},8:function(e){return Number(1==e?0:2==e?1:8!=e&&11!=e?2:3)},9:function(e){return Number(e>=2)},10:function(e){return Number(1==e?0:2==e?1:e<7?2:e<11?3:4)},11:function(e){return Number(1==e||11==e?0:2==e||12==e?1:e>2&&e<20?2:3)},12:function(e){return Number(e%10!=1||e%100==11)},13:function(e){return Number(0!==e)},14:function(e){return Number(1==e?0:2==e?1:3==e?2:3)},15:function(e){return Number(e%10==1&&e%100!=11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2)},16:function(e){return Number(e%10==1&&e%100!=11?0:0!==e?1:2)},17:function(e){return Number(1==e||e%10==1&&e%100!=11?0:1)},18:function(e){return Number(0==e?0:1==e?1:2)},19:function(e){return Number(1==e?0:0==e||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3)},20:function(e){return Number(1==e?0:0==e||e%100>0&&e%100<20?1:2)},21:function(e){return Number(e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0)},22:function(e){return Number(1==e?0:2==e?1:(e<0||e>10)&&e%10==0?2:3)}},RS=["v1","v2","v3"],DS={zero:0,one:1,two:2,few:3,many:4,other:5},TS=function(){function e(t){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Y_(this,e),this.languageUtils=t,this.options=r,this.logger=aS.create("pluralResolver"),this.options.compatibilityJSON&&"v4"!==this.options.compatibilityJSON||"undefined"!=typeof Intl&&Intl.PluralRules||(this.options.compatibilityJSON="v3",this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")),this.rules=(n={},MS.forEach((function(e){e.lngs.forEach((function(t){n[t]={numbers:e.nr,plurals:xS[e.fc]}}))})),n)}return V_(e,[{key:"addRule",value:function(e,t){this.rules[e]=t}},{key:"getRule",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(this.shouldUseIntlApi())try{return new Intl.PluralRules(e,{type:t.ordinal?"ordinal":"cardinal"})}catch(e){return}return this.rules[e]||this.rules[this.languageUtils.getLanguagePartFromCode(e)]}},{key:"needsPlural",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=this.getRule(e,t);return this.shouldUseIntlApi()?n&&n.resolvedOptions().pluralCategories.length>1:n&&n.numbers.length>1}},{key:"getPluralFormsOfKey",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.getSuffixes(e,n).map((function(e){return"".concat(t).concat(e)}))}},{key:"getSuffixes",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=this.getRule(e,n);return r?this.shouldUseIntlApi()?r.resolvedOptions().pluralCategories.sort((function(e,t){return DS[e]-DS[t]})).map((function(e){return"".concat(t.options.prepend).concat(e)})):r.numbers.map((function(r){return t.getSuffix(e,r,n)})):[]}},{key:"getSuffix",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=this.getRule(e,n);return r?this.shouldUseIntlApi()?"".concat(this.options.prepend).concat(r.select(t)):this.getSuffixRetroCompatible(r,t):(this.logger.warn("no plural rule found for: ".concat(e)),"")}},{key:"getSuffixRetroCompatible",value:function(e,t){var n=this,r=e.noAbs?e.plurals(t):e.plurals(Math.abs(t)),i=e.numbers[r];this.options.simplifyPluralSuffix&&2===e.numbers.length&&1===e.numbers[0]&&(2===i?i="plural":1===i&&(i=""));var o=function(){return n.options.prepend&&i.toString()?n.options.prepend+i.toString():i.toString()};return"v1"===this.options.compatibilityJSON?1===i?"":"number"==typeof i?"_plural_".concat(i.toString()):o():"v2"===this.options.compatibilityJSON||this.options.simplifyPluralSuffix&&2===e.numbers.length&&1===e.numbers[0]?o():this.options.prepend&&r.toString()?this.options.prepend+r.toString():r.toString()}},{key:"shouldUseIntlApi",value:function(){return!RS.includes(this.options.compatibilityJSON)}}]),e}();function NS(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function OS(e){for(var t=1;t3&&void 0!==arguments[3]?arguments[3]:".",i=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],o=function(e,t,n){var r=dS(e,n);return void 0!==r?r:dS(t,n)}(e,t,n);return!o&&i&&"string"==typeof n&&void 0===(o=bS(e,n,r))&&(o=bS(t,n,r)),o}var PS=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Y_(this,e),this.logger=aS.create("interpolator"),this.options=t,this.format=t.interpolation&&t.interpolation.format||function(e){return e},this.init(t)}return V_(e,[{key:"init",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};e.interpolation||(e.interpolation={escapeValue:!0});var t=e.interpolation;this.escape=void 0!==t.escape?t.escape:gS,this.escapeValue=void 0===t.escapeValue||t.escapeValue,this.useRawValueToEscape=void 0!==t.useRawValueToEscape&&t.useRawValueToEscape,this.prefix=t.prefix?hS(t.prefix):t.prefixEscaped||"{{",this.suffix=t.suffix?hS(t.suffix):t.suffixEscaped||"}}",this.formatSeparator=t.formatSeparator?t.formatSeparator:t.formatSeparator||",",this.unescapePrefix=t.unescapeSuffix?"":t.unescapePrefix||"-",this.unescapeSuffix=this.unescapePrefix?"":t.unescapeSuffix||"",this.nestingPrefix=t.nestingPrefix?hS(t.nestingPrefix):t.nestingPrefixEscaped||hS("$t("),this.nestingSuffix=t.nestingSuffix?hS(t.nestingSuffix):t.nestingSuffixEscaped||hS(")"),this.nestingOptionsSeparator=t.nestingOptionsSeparator?t.nestingOptionsSeparator:t.nestingOptionsSeparator||",",this.maxReplaces=t.maxReplaces?t.maxReplaces:1e3,this.alwaysFormat=void 0!==t.alwaysFormat&&t.alwaysFormat,this.resetRegExp()}},{key:"reset",value:function(){this.options&&this.init(this.options)}},{key:"resetRegExp",value:function(){var e="".concat(this.prefix,"(.+?)").concat(this.suffix);this.regexp=new RegExp(e,"g");var t="".concat(this.prefix).concat(this.unescapePrefix,"(.+?)").concat(this.unescapeSuffix).concat(this.suffix);this.regexpUnescape=new RegExp(t,"g");var n="".concat(this.nestingPrefix,"(.+?)").concat(this.nestingSuffix);this.nestingRegexp=new RegExp(n,"g")}},{key:"interpolate",value:function(e,t,n,r){var i,o,a,s=this,c=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function u(e){return e.replace(/\$/g,"$$$$")}var l=function(e){if(e.indexOf(s.formatSeparator)<0){var i=LS(t,c,e,s.options.keySeparator,s.options.ignoreJSONStructure);return s.alwaysFormat?s.format(i,void 0,n,OS(OS(OS({},r),t),{},{interpolationkey:e})):i}var o=e.split(s.formatSeparator),a=o.shift().trim(),u=o.join(s.formatSeparator).trim();return s.format(LS(t,c,a,s.options.keySeparator,s.options.ignoreJSONStructure),u,n,OS(OS(OS({},r),t),{},{interpolationkey:a}))};this.resetRegExp();var f=r&&r.missingInterpolationHandler||this.options.missingInterpolationHandler,d=r&&r.interpolation&&void 0!==r.interpolation.skipOnVariables?r.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:function(e){return u(e)}},{regex:this.regexp,safeValue:function(e){return s.escapeValue?u(s.escape(e)):u(e)}}].forEach((function(t){for(a=0;i=t.regex.exec(e);){var n=i[1].trim();if(void 0===(o=l(n)))if("function"==typeof f){var c=f(e,i,r);o="string"==typeof c?c:""}else if(r&&Object.prototype.hasOwnProperty.call(r,n))o="";else{if(d){o=i[0];continue}s.logger.warn("missed to pass in variable ".concat(n," for interpolating ").concat(e)),o=""}else"string"==typeof o||s.useRawValueToEscape||(o=uS(o));var u=t.safeValue(o);if(e=e.replace(i[0],u),d?(t.regex.lastIndex+=o.length,t.regex.lastIndex-=i[0].length):t.regex.lastIndex=0,++a>=s.maxReplaces)break}})),e}},{key:"nest",value:function(e,t){var n,r,i,o=this,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};function s(e,t){var n=this.nestingOptionsSeparator;if(e.indexOf(n)<0)return e;var r=e.split(new RegExp("".concat(n,"[ ]*{"))),o="{".concat(r[1]);e=r[0];var a=(o=this.interpolate(o,i)).match(/'/g),s=o.match(/"/g);(a&&a.length%2==0&&!s||s.length%2!=0)&&(o=o.replace(/'/g,'"'));try{i=JSON.parse(o),t&&(i=OS(OS({},t),i))}catch(t){return this.logger.warn("failed parsing options string in nesting for key ".concat(e),t),"".concat(e).concat(n).concat(o)}return delete i.defaultValue,e}for(;n=this.nestingRegexp.exec(e);){var c=[];(i=(i=OS({},a)).replace&&"string"!=typeof i.replace?i.replace:i).applyPostProcessor=!1,delete i.defaultValue;var u=!1;if(-1!==n[0].indexOf(this.formatSeparator)&&!/{.*}/.test(n[1])){var l=n[1].split(this.formatSeparator).map((function(e){return e.trim()}));n[1]=l.shift(),c=l,u=!0}if((r=t(s.call(this,n[1].trim(),i),i))&&n[0]===e&&"string"!=typeof r)return r;"string"!=typeof r&&(r=uS(r)),r||(this.logger.warn("missed to resolve ".concat(n[1]," for nesting ").concat(e)),r=""),u&&(r=c.reduce((function(e,t){return o.format(e,t,a.lng,OS(OS({},a),{},{interpolationkey:n[1].trim()}))}),r.trim())),e=e.replace(n[0],r),this.regexp.lastIndex=0}return e}}]),e}();function US(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function FS(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{};Y_(this,e),this.logger=aS.create("formatter"),this.options=t,this.formats={number:jS((function(e,t){var n=new Intl.NumberFormat(e,FS({},t));return function(e){return n.format(e)}})),currency:jS((function(e,t){var n=new Intl.NumberFormat(e,FS(FS({},t),{},{style:"currency"}));return function(e){return n.format(e)}})),datetime:jS((function(e,t){var n=new Intl.DateTimeFormat(e,FS({},t));return function(e){return n.format(e)}})),relativetime:jS((function(e,t){var n=new Intl.RelativeTimeFormat(e,FS({},t));return function(e){return n.format(e,t.range||"day")}})),list:jS((function(e,t){var n=new Intl.ListFormat(e,FS({},t));return function(e){return n.format(e)}}))},this.init(t)}return V_(e,[{key:"init",value:function(e){var t=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}}).interpolation;this.formatSeparator=t.formatSeparator?t.formatSeparator:t.formatSeparator||","}},{key:"add",value:function(e,t){this.formats[e.toLowerCase().trim()]=t}},{key:"addCached",value:function(e,t){this.formats[e.toLowerCase().trim()]=jS(t)}},{key:"format",value:function(e,t,n){var r=this,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=t.split(this.formatSeparator).reduce((function(e,t){var o=function(e){var t=e.toLowerCase().trim(),n={};if(e.indexOf("(")>-1){var r=e.split("(");t=r[0].toLowerCase().trim();var i=r[1].substring(0,r[1].length-1);"currency"===t&&i.indexOf(":")<0?n.currency||(n.currency=i.trim()):"relativetime"===t&&i.indexOf(":")<0?n.range||(n.range=i.trim()):i.split(";").forEach((function(e){if(e){var t=function(e){return function(e){if(Array.isArray(e))return e}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return tS(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?tS(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(e.split(":")),r=t[0],i=t.slice(1).join(":").trim().replace(/^'+|'+$/g,"");n[r.trim()]||(n[r.trim()]=i),"false"===i&&(n[r.trim()]=!1),"true"===i&&(n[r.trim()]=!0),isNaN(i)||(n[r.trim()]=parseInt(i,10))}}))}return{formatName:t,formatOptions:n}}(t),a=o.formatName,s=o.formatOptions;if(r.formats[a]){var c=e;try{var u=i&&i.formatParams&&i.formatParams[i.interpolationkey]||{},l=u.locale||u.lng||i.locale||i.lng||n;c=r.formats[a](e,l,FS(FS(FS({},s),i),u))}catch(e){r.logger.warn(e)}return c}return r.logger.warn("there was no format function for ".concat(a)),e}),e);return o}}]),e}();function GS(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function HS(e){for(var t=1;t3&&void 0!==arguments[3]?arguments[3]:{};return Y_(this,n),o=t.call(this),yS&&sS.call(J_(o)),o.backend=e,o.store=r,o.services=i,o.languageUtils=i.languageUtils,o.options=a,o.logger=aS.create("backendConnector"),o.waitingReads=[],o.maxParallelReads=a.maxParallelReads||10,o.readingCalls=0,o.maxRetries=a.maxRetries>=0?a.maxRetries:5,o.retryTimeout=a.retryTimeout>=1?a.retryTimeout:350,o.state={},o.queue=[],o.backend&&o.backend.init&&o.backend.init(i,a.backend,a),o}return V_(n,[{key:"queueLoad",value:function(e,t,n,r){var i=this,o={},a={},s={},c={};return e.forEach((function(e){var r=!0;t.forEach((function(t){var s="".concat(e,"|").concat(t);!n.reload&&i.store.hasResourceBundle(e,t)?i.state[s]=2:i.state[s]<0||(1===i.state[s]?void 0===a[s]&&(a[s]=!0):(i.state[s]=1,r=!1,void 0===a[s]&&(a[s]=!0),void 0===o[s]&&(o[s]=!0),void 0===c[t]&&(c[t]=!0)))})),r||(s[e]=!0)})),(Object.keys(o).length||Object.keys(a).length)&&this.queue.push({pending:a,pendingCount:Object.keys(a).length,loaded:{},errors:[],callback:r}),{toLoad:Object.keys(o),pending:Object.keys(a),toLoadLanguages:Object.keys(s),toLoadNamespaces:Object.keys(c)}}},{key:"loaded",value:function(e,t,n){var r=e.split("|"),i=r[0],o=r[1];t&&this.emit("failedLoading",i,o,t),n&&this.store.addResourceBundle(i,o,n),this.state[e]=t?-1:2;var a={};this.queue.forEach((function(n){!function(e,t,n,r){var i=lS(e,t,Object),o=i.obj,a=i.k;o[a]=o[a]||[],o[a].push(n)}(n.loaded,[i],o),function(e,t){void 0!==e.pending[t]&&(delete e.pending[t],e.pendingCount--)}(n,e),t&&n.errors.push(t),0!==n.pendingCount||n.done||(Object.keys(n.loaded).forEach((function(e){a[e]||(a[e]={});var t=n.loaded[e];t.length&&t.forEach((function(t){void 0===a[e][t]&&(a[e][t]=!0)}))})),n.done=!0,n.errors.length?n.callback(n.errors):n.callback())})),this.emit("loaded",a),this.queue=this.queue.filter((function(e){return!e.done}))}},{key:"read",value:function(e,t,n){var r=this,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:this.retryTimeout,a=arguments.length>5?arguments[5]:void 0;if(!e.length)return a(null,{});if(this.readingCalls>=this.maxParallelReads)this.waitingReads.push({lng:e,ns:t,fcName:n,tried:i,wait:o,callback:a});else{this.readingCalls++;var s=function(s,c){if(r.readingCalls--,r.waitingReads.length>0){var u=r.waitingReads.shift();r.read(u.lng,u.ns,u.fcName,u.tried,u.wait,u.callback)}s&&c&&i2&&void 0!==arguments[2]?arguments[2]:{},i=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),i&&i();"string"==typeof e&&(e=this.languageUtils.toResolveHierarchy(e)),"string"==typeof t&&(t=[t]);var o=this.queueLoad(e,t,r,i);if(!o.toLoad.length)return o.pending.length||i(),null;o.toLoad.forEach((function(e){n.loadOne(e)}))}},{key:"load",value:function(e,t,n){this.prepareLoading(e,t,{},n)}},{key:"reload",value:function(e,t,n){this.prepareLoading(e,t,{reload:!0},n)}},{key:"loadOne",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=e.split("|"),i=r[0],o=r[1];this.read(i,o,"read",void 0,void 0,(function(r,a){r&&t.logger.warn("".concat(n,"loading namespace ").concat(o," for language ").concat(i," failed"),r),!r&&a&&t.logger.log("".concat(n,"loaded namespace ").concat(o," for language ").concat(i),a),t.loaded(e,r,a)}))}},{key:"saveMissing",value:function(e,t,n,r,i){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},a=arguments.length>6&&void 0!==arguments[6]?arguments[6]:function(){};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(t))this.logger.warn('did not save key "'.concat(n,'" as the namespace "').concat(t,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");else if(null!=n&&""!==n){if(this.backend&&this.backend.create){var s=HS(HS({},o),{},{isUpdate:i}),c=this.backend.create.bind(this.backend);if(c.length<6)try{var u;(u=5===c.length?c(e,t,n,r,s):c(e,t,n,r))&&"function"==typeof u.then?u.then((function(e){return a(null,e)})).catch(a):a(null,u)}catch(e){a(e)}else c(e,t,n,r,a,s)}e&&e[0]&&this.store.addResource(e[0],t,n,r)}}}]),n}(sS);function KS(){return{debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!0,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(e){var t={};if("object"===H_(e[1])&&(t=e[1]),"string"==typeof e[1]&&(t.defaultValue=e[1]),"string"==typeof e[2]&&(t.tDescription=e[2]),"object"===H_(e[2])||"object"===H_(e[3])){var n=e[3]||e[2];Object.keys(n).forEach((function(e){t[e]=n[e]}))}return t},interpolation:{escapeValue:!0,format:function(e,t,n,r){return e},prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}}function zS(e){return"string"==typeof e.ns&&(e.ns=[e.ns]),"string"==typeof e.fallbackLng&&(e.fallbackLng=[e.fallbackLng]),"string"==typeof e.fallbackNS&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&e.supportedLngs.indexOf("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e}function VS(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function JS(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},o=arguments.length>1?arguments[1]:void 0;if(Y_(this,n),e=t.call(this),yS&&sS.call(J_(e)),e.options=zS(i),e.services={},e.logger=aS,e.modules={external:[]},r=J_(e),Object.getOwnPropertyNames(Object.getPrototypeOf(r)).forEach((function(e){"function"==typeof r[e]&&(r[e]=r[e].bind(r))})),o&&!e.isInitialized&&!i.isClone){if(!e.options.initImmediate)return e.init(i,o),$_(e,J_(e));setTimeout((function(){e.init(i,o)}),0)}return e}return V_(n,[{key:"init",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;"function"==typeof t&&(n=t,t={}),!t.defaultNS&&!1!==t.defaultNS&&t.ns&&("string"==typeof t.ns?t.defaultNS=t.ns:t.ns.indexOf("translation")<0&&(t.defaultNS=t.ns[0]));var r=KS();function i(e){return e?"function"==typeof e?new e:e:null}if(this.options=JS(JS(JS({},r),this.options),zS(t)),"v1"!==this.options.compatibilityAPI&&(this.options.interpolation=JS(JS({},r.interpolation),this.options.interpolation)),void 0!==t.keySeparator&&(this.options.userDefinedKeySeparator=t.keySeparator),void 0!==t.nsSeparator&&(this.options.userDefinedNsSeparator=t.nsSeparator),!this.options.isClone){var o;this.modules.logger?aS.init(i(this.modules.logger),this.options):aS.init(null,this.options),this.modules.formatter?o=this.modules.formatter:"undefined"!=typeof Intl&&(o=qS);var a=new kS(this.options);this.store=new ES(this.options.resources,this.options);var s=this.services;s.logger=aS,s.resourceStore=this.store,s.languageUtils=a,s.pluralResolver=new TS(a,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),!o||this.options.interpolation.format&&this.options.interpolation.format!==r.interpolation.format||(s.formatter=i(o),s.formatter.init(s,this.options),this.options.interpolation.format=s.formatter.format.bind(s.formatter)),s.interpolator=new PS(this.options),s.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},s.backendConnector=new YS(i(this.modules.backend),s.resourceStore,s,this.options),s.backendConnector.on("*",(function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i1?n-1:0),i=1;i0&&"dev"!==c[0]&&(this.options.lng=c[0])}this.services.languageDetector||this.options.lng||this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach((function(t){e[t]=function(){var n;return(n=e.store)[t].apply(n,arguments)}})),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach((function(t){e[t]=function(){var n;return(n=e.store)[t].apply(n,arguments),e}}));var u=cS(),l=function(){var t=function(t,r){e.isInitialized&&!e.initializedStoreOnce&&e.logger.warn("init: i18next is already initialized. You should call init just once!"),e.isInitialized=!0,e.options.isClone||e.logger.log("initialized",e.options),e.emit("initialized",e.options),u.resolve(r),n(t,r)};if(e.languages&&"v1"!==e.options.compatibilityAPI&&!e.isInitialized)return t(null,e.t.bind(e));e.changeLanguage(e.options.lng,t)};return this.options.resources||!this.options.initImmediate?l():setTimeout(l,0),u}},{key:"loadResources",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:WS,r="string"==typeof e?e:this.language;if("function"==typeof e&&(n=e),!this.options.resources||this.options.partialBundledLanguages){if(r&&"cimode"===r.toLowerCase())return n();var i=[],o=function(e){e&&t.services.languageUtils.toResolveHierarchy(e).forEach((function(e){i.indexOf(e)<0&&i.push(e)}))};r?o(r):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach((function(e){return o(e)})),this.options.preload&&this.options.preload.forEach((function(e){return o(e)})),this.services.backendConnector.load(i,this.options.ns,(function(e){e||t.resolvedLanguage||!t.language||t.setResolvedLanguage(t.language),n(e)}))}else n(null)}},{key:"reloadResources",value:function(e,t,n){var r=cS();return e||(e=this.languages),t||(t=this.options.ns),n||(n=WS),this.services.backendConnector.reload(e,t,(function(e){r.resolve(),n(e)})),r}},{key:"use",value:function(e){if(!e)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!e.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return"backend"===e.type&&(this.modules.backend=e),("logger"===e.type||e.log&&e.warn&&e.error)&&(this.modules.logger=e),"languageDetector"===e.type&&(this.modules.languageDetector=e),"i18nFormat"===e.type&&(this.modules.i18nFormat=e),"postProcessor"===e.type&&IS.addPostProcessor(e),"formatter"===e.type&&(this.modules.formatter=e),"3rdParty"===e.type&&this.modules.external.push(e),this}},{key:"setResolvedLanguage",value:function(e){if(e&&this.languages&&!(["cimode","dev"].indexOf(e)>-1))for(var t=0;t-1)&&this.store.hasLanguageSomeTranslations(n)){this.resolvedLanguage=n;break}}}},{key:"changeLanguage",value:function(e,t){var n=this;this.isLanguageChangingTo=e;var r=cS();this.emit("languageChanging",e);var i=function(e){n.language=e,n.languages=n.services.languageUtils.toResolveHierarchy(e),n.resolvedLanguage=void 0,n.setResolvedLanguage(e)},o=function(o){e||o||!n.services.languageDetector||(o=[]);var a="string"==typeof o?o:n.services.languageUtils.getBestMatchFromCodes(o);a&&(n.language||i(a),n.translator.language||n.translator.changeLanguage(a),n.services.languageDetector&&n.services.languageDetector.cacheUserLanguage&&n.services.languageDetector.cacheUserLanguage(a)),n.loadResources(a,(function(e){!function(e,o){o?(i(o),n.translator.changeLanguage(o),n.isLanguageChangingTo=void 0,n.emit("languageChanged",o),n.logger.log("languageChanged",o)):n.isLanguageChangingTo=void 0,r.resolve((function(){return n.t.apply(n,arguments)})),t&&t(e,(function(){return n.t.apply(n,arguments)}))}(e,a)}))};return e||!this.services.languageDetector||this.services.languageDetector.async?!e&&this.services.languageDetector&&this.services.languageDetector.async?0===this.services.languageDetector.detect.length?this.services.languageDetector.detect().then(o):this.services.languageDetector.detect(o):o(e):o(this.services.languageDetector.detect()),r}},{key:"getFixedT",value:function(e,t,n){var r=this,i=function e(t,i){var o;if("object"!==H_(i)){for(var a=arguments.length,s=new Array(a>2?a-2:0),c=2;c1&&void 0!==arguments[1]?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;var r=n.lng||this.resolvedLanguage||this.languages[0],i=!!this.options&&this.options.fallbackLng,o=this.languages[this.languages.length-1];if("cimode"===r.toLowerCase())return!0;var a=function(e,n){var r=t.services.backendConnector.state["".concat(e,"|").concat(n)];return-1===r||2===r};if(n.precheck){var s=n.precheck(this,a);if(void 0!==s)return s}return!(!this.hasResourceBundle(r,e)&&this.services.backendConnector.backend&&(!this.options.resources||this.options.partialBundledLanguages)&&(!a(r,e)||i&&!a(o,e)))}},{key:"loadNamespaces",value:function(e,t){var n=this,r=cS();return this.options.ns?("string"==typeof e&&(e=[e]),e.forEach((function(e){n.options.ns.indexOf(e)<0&&n.options.ns.push(e)})),this.loadResources((function(e){r.resolve(),t&&t(e)})),r):(t&&t(),Promise.resolve())}},{key:"loadLanguages",value:function(e,t){var n=cS();"string"==typeof e&&(e=[e]);var r=this.options.preload||[],i=e.filter((function(e){return r.indexOf(e)<0}));return i.length?(this.options.preload=r.concat(i),this.loadResources((function(e){n.resolve(),t&&t(e)})),n):(t&&t(),Promise.resolve())}},{key:"dir",value:function(e){if(e||(e=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),!e)return"rtl";var t=this.services&&this.services.languageUtils||new kS(KS());return["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"].indexOf(t.getLanguagePartFromCode(e))>-1||e.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}},{key:"cloneInstance",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:WS,i=JS(JS(JS({},this.options),t),{isClone:!0}),o=new n(i);return void 0===t.debug&&void 0===t.prefix||(o.logger=o.logger.clone(t)),["store","services","language"].forEach((function(t){o[t]=e[t]})),o.services=JS({},this.services),o.services.utils={hasLoadedNamespace:o.hasLoadedNamespace.bind(o)},o.translator=new SS(o.services,o.options),o.translator.on("*",(function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r0&&void 0!==arguments[0]?arguments[0]:{},arguments.length>1?arguments[1]:void 0)}));var $S=ZS.createInstance();$S.createInstance=ZS.createInstance;var XS=$S.createInstance;$S.dir,$S.init,$S.loadResources,$S.reloadResources,$S.use,$S.changeLanguage,$S.getFixedT,$S.t,$S.exists,$S.setDefaultNamespace,$S.hasLoadedNamespace,$S.loadNamespaces,$S.loadLanguages;var eQ="0.14.3";const tQ={eth_requestAccounts:!0,eth_sendTransaction:!0,eth_signTransaction:!0,eth_sign:!0,eth_accounts:!0,personal_sign:!0,eth_signTypedData:!0,eth_signTypedData_v3:!0,eth_signTypedData_v4:!0,wallet_watchAsset:!0,wallet_addEthereumChain:!0,wallet_switchEthereumChain:!0,metamask_connectSign:!0,metamask_connectWith:!0,metamask_batch:!0,metamask_open:!0},nQ=".sdk-comm",rQ="providerType",iQ={METAMASK_GETPROVIDERSTATE:"metamask_getProviderState",METAMASK_CONNECTSIGN:"metamask_connectSign",METAMASK_CONNECTWITH:"metamask_connectWith",METAMASK_OPEN:"metamask_open",METAMASK_BATCH:"metamask_batch",PERSONAL_SIGN:"personal_sign",ETH_REQUESTACCOUNTS:"eth_requestAccounts",ETH_ACCOUNTS:"eth_accounts",ETH_CHAINID:"eth_chainId"},oQ="chainChanged",aQ="accountsChanged",sQ="disconnect",cQ="connect",uQ="connected";var lQ,fQ,dQ,AQ,hQ;function pQ(t){var n,r;return lw(this,void 0,void 0,(function*(){t.debug&&console.debug("SDK::connectWithExtensionProvider()",t),t.sdkProvider=t.activeProvider,t.activeProvider=window.extension,window.ethereum=window.extension;try{const e=yield null===(n=window.extension)||void 0===n?void 0:n.request({method:"eth_requestAccounts"});t.debug&&console.debug("SDK::connectWithExtensionProvider() accounts",e)}catch(e){return void console.warn("SDK::connectWithExtensionProvider() can't request accounts error",e)}localStorage.setItem(rQ,"extension"),t.extensionActive=!0,t.emit(e.EventType.PROVIDER_UPDATE,e.PROVIDER_UPDATE_TYPE.EXTENSION),t.options.enableAnalytics&&(null===(r=t.analytics)||void 0===r||r.send({event:Jv.SDK_USE_EXTENSION}))}))}e.PROVIDER_UPDATE_TYPE=void 0,(lQ=e.PROVIDER_UPDATE_TYPE||(e.PROVIDER_UPDATE_TYPE={})).TERMINATE="terminate",lQ.EXTENSION="extension",lQ.INITIALIZED="initialized";const gQ="sdk",yQ="NONE";class mQ{constructor(e){var t;fQ.set(this,void 0),dQ.set(this,Tv),AQ.set(this,void 0),hQ.set(this,void 0),dw(this,fQ,e.debug,"f"),dw(this,dQ,e.serverURL,"f"),dw(this,hQ,e.metadata||void 0,"f"),dw(this,AQ,null===(t=e.enabled)||void 0===t||t,"f")}send({event:e}){fw(this,AQ,"f")&&fn({id:gQ,event:e,commLayerVersion:yQ,originationInfo:fw(this,hQ,"f")},fw(this,dQ,"f")).catch((e=>{fw(this,fQ,"f")&&console.error(e)}))}}var bQ;fQ=new WeakMap,dQ=new WeakMap,AQ=new WeakMap,hQ=new WeakMap,function(e){e.INPAGE="metamask-inpage",e.CONTENT_SCRIPT="metamask-contentscript",e.PROVIDER="metamask-provider"}(bQ||(bQ={}));const vQ="https://metamask.app.link/connect",wQ="metamask://connect",EQ={NAME:"MetaMask Main",RDNS:"io.metamask"},IQ=/(?:^[a-f0-9]{8}-[a-f0-9]{4}-4[a-f0-9]{3}-[a-f0-9]{4}-[a-f0-9]{12}$)|(?:^0{8}-0{4}-0{4}-0{4}-0{12}$)/u,BQ=36e5;class CQ{constructor({shouldSetOnWindow:e,connectionStream:t,shouldSendMetadata:n=!1,shouldShimWeb3:r,debug:i=!1}){this.debug=!1,this.debug=i;const o=new j_({connectionStream:t,shouldSendMetadata:n,shouldSetOnWindow:e,shouldShimWeb3:r,autoRequestAccounts:!1,debug:i});this.debug=i;const a=new Proxy(o,{deleteProperty:()=>!0});this.provider=a,e&&"undefined"!=typeof window&&Aw.setGlobalProvider(this.provider),r&&"undefined"!=typeof window&&Aw.shimWeb3(this.provider),this.provider.on("_initialized",(()=>{const e={chainId:this.provider.chainId,isConnected:this.provider.isConnected(),isMetaNask:this.provider.isMetaMask,selectedAddress:this.provider.selectedAddress,networkVersion:this.provider.networkVersion};this.debug&&console.info("Ethereum provider initialized",e)}))}static init(e){var t;return e.debug&&console.debug("Ethereum::init()"),this.instance=new CQ(e),null===(t=this.instance)||void 0===t?void 0:t.provider}static destroy(){CQ.instance=void 0}static getInstance(){var e;if(!(null===(e=this.instance)||void 0===e?void 0:e.provider))throw new Error("Ethereum instance not intiialized - call Ethereum.factory first.");return this.instance}static getProvider(){var e;if(!(null===(e=this.instance)||void 0===e?void 0:e.provider))throw new Error("Ethereum instance not intiialized - call Ethereum.factory first.");return this.instance.provider}}class _Q extends nB{constructor({name:t,remote:n,platformManager:r,debug:i}){super({objectMode:!0}),this.state={_name:null,remote:null,platformManager:null,debug:!1},this.state._name=t,this.state.remote=n,this.state.debug=i,this.state.platformManager=r,this._onMessage=this._onMessage.bind(this),this.state.remote.on(e.EventType.MESSAGE,this._onMessage)}_write(e,t,n){return lw(this,void 0,void 0,(function*(){return function(e,t,n,r){var i,o,a,s,c,u,l,f,d,A,h,p,g,y;return lw(this,void 0,void 0,(function*(){const n=null===(i=e.state.remote)||void 0===i?void 0:i.isReady(),m=null===(o=e.state.remote)||void 0===o?void 0:o.isConnected(),b=null===(a=e.state.remote)||void 0===a?void 0:a.isPaused(),v=CQ.getProvider(),w=null===(s=e.state.remote)||void 0===s?void 0:s.getChannelId(),E=null===(c=e.state.remote)||void 0===c?void 0:c.isAuthorized(),{method:I,data:B}=(e=>{var t;let n;return He.isBuffer(e)?(n=e.toJSON(),n._isBuffer=!0):n=e,{method:null===(t=null==n?void 0:n.data)||void 0===t?void 0:t.method,data:n}})(t);if(e.state.debug&&console.debug(`RPCMS::_write method='${I}' isRemoteReady=${n} channelId=${w} isSocketConnected=${m} isRemotePaused=${b} providerConnected=${v.isConnected()}`,t),!w)return e.state.debug&&I!==iQ.METAMASK_GETPROVIDERSTATE&&console.warn("RPCMS::_write Invalid channel id -- undefined"),r();e.state.debug&&console.debug(`RPCMS::_write remote.isPaused()=${null===(u=e.state.remote)||void 0===u?void 0:u.isPaused()} authorized=${E} ready=${n} socketConnected=${m}`,t);try{if(null===(l=e.state.remote)||void 0===l||l.sendMessage(null==B?void 0:B.data).then((()=>{e.state.debug&&console.debug(`RCPMS::_write ${I} sent successfully`)})).catch((e=>{console.error("RCPMS::_write error sending message",e)})),!(null===(f=e.state.platformManager)||void 0===f?void 0:f.isSecure()))return e.state.debug&&console.log(`RCPMS::_write unsecure platform for method ${I} -- return callback`),r();if(!m&&!n)return e.state.debug&&console.debug(`RCPMS::_write invalid connection status targetMethod=${I} socketConnected=${m} ready=${n} providerConnected=${v.isConnected()}\n\n`),r();if(!m&&n)return console.warn("RCPMS::_write invalid socket status -- shouln't happen"),r();const t=null!==(h=null===(A=null===(d=e.state.remote)||void 0===d?void 0:d.getKeyInfo())||void 0===A?void 0:A.ecies.public)&&void 0!==h?h:"",i=encodeURI(`channelId=${w}&pubkey=${t}&comm=socket&t=d`);tQ[I]?(e.state.debug&&console.debug(`RCPMS::_write redirect link for '${I}' socketConnected=${m}`,`connect?${i}`),null===(p=e.state.platformManager)||void 0===p||p.openDeeplink(`${vQ}?${i}`,`${wQ}?${i}`,"_self")):(null===(g=e.state.remote)||void 0===g?void 0:g.isPaused())?(e.state.debug&&console.debug(`RCPMS::_write MM is PAUSED! deeplink with connect! targetMethod=${I}`),null===(y=e.state.platformManager)||void 0===y||y.openDeeplink(`${vQ}?redirect=true&${i}`,`${wQ}?redirect=true&${i}`,"_self")):console.debug(`RCPMS::_write method ${I} doesn't need redirect.`)}catch(t){return e.state.debug&&console.error("RCPMS::_write error",t),r(new Error("RemoteCommunicationPostMessageStream - disconnected"))}return r()}))}(this,e,0,n)}))}_read(){}_onMessage(e){return function(e,t){try{if(e.state.debug&&console.debug("[RCPMS] _onMessage ",t),!t||"object"!=typeof t)return;if("object"!=typeof(null==t?void 0:t.data))return;if(!(null==t?void 0:t.name))return;if((null==t?void 0:t.name)!==bQ.PROVIDER)return;if(He.isBuffer(t)){const n=He.from(t);e.push(n)}else e.push(t)}catch(t){e.state.debug&&console.debug("RCPMS ignore message error",t)}}(this,e)}start(){}}var SQ={exports:{}};!function(e,t){var n="undefined"!=typeof globalThis&&globalThis||"undefined"!=typeof self&&self||void 0!==r&&r,i=function(){function e(){this.fetch=!1,this.DOMException=n.DOMException}return e.prototype=n,new e}();!function(e){!function(t){var n=void 0!==e&&e||"undefined"!=typeof self&&self||void 0!==n&&n,r="URLSearchParams"in n,i="Symbol"in n&&"iterator"in Symbol,o="FileReader"in n&&"Blob"in n&&function(){try{return new Blob,!0}catch(e){return!1}}(),a="FormData"in n,s="ArrayBuffer"in n;if(s)var c=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],u=ArrayBuffer.isView||function(e){return e&&c.indexOf(Object.prototype.toString.call(e))>-1};function l(e){if("string"!=typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(e)||""===e)throw new TypeError('Invalid character in header field name: "'+e+'"');return e.toLowerCase()}function f(e){return"string"!=typeof e&&(e=String(e)),e}function d(e){var t={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return i&&(t[Symbol.iterator]=function(){return t}),t}function A(e){this.map={},e instanceof A?e.forEach((function(e,t){this.append(t,e)}),this):Array.isArray(e)?e.forEach((function(e){this.append(e[0],e[1])}),this):e&&Object.getOwnPropertyNames(e).forEach((function(t){this.append(t,e[t])}),this)}function h(e){if(e.bodyUsed)return Promise.reject(new TypeError("Already read"));e.bodyUsed=!0}function p(e){return new Promise((function(t,n){e.onload=function(){t(e.result)},e.onerror=function(){n(e.error)}}))}function g(e){var t=new FileReader,n=p(t);return t.readAsArrayBuffer(e),n}function y(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function m(){return this.bodyUsed=!1,this._initBody=function(e){var t;this.bodyUsed=this.bodyUsed,this._bodyInit=e,e?"string"==typeof e?this._bodyText=e:o&&Blob.prototype.isPrototypeOf(e)?this._bodyBlob=e:a&&FormData.prototype.isPrototypeOf(e)?this._bodyFormData=e:r&&URLSearchParams.prototype.isPrototypeOf(e)?this._bodyText=e.toString():s&&o&&(t=e)&&DataView.prototype.isPrototypeOf(t)?(this._bodyArrayBuffer=y(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):s&&(ArrayBuffer.prototype.isPrototypeOf(e)||u(e))?this._bodyArrayBuffer=y(e):this._bodyText=e=Object.prototype.toString.call(e):this._bodyText="",this.headers.get("content-type")||("string"==typeof e?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):r&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},o&&(this.blob=function(){var e=h(this);if(e)return e;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?h(this)||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer)):this.blob().then(g)}),this.text=function(){var e,t,n,r=h(this);if(r)return r;if(this._bodyBlob)return e=this._bodyBlob,n=p(t=new FileReader),t.readAsText(e),n;if(this._bodyArrayBuffer)return Promise.resolve(function(e){for(var t=new Uint8Array(e),n=new Array(t.length),r=0;r-1?t:e}(t.method||this.method||"GET"),this.mode=t.mode||this.mode||null,this.signal=t.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&n)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(n),!("GET"!==this.method&&"HEAD"!==this.method||"no-store"!==t.cache&&"no-cache"!==t.cache)){var r=/([?&])_=[^&]*/;r.test(this.url)?this.url=this.url.replace(r,"$1_="+(new Date).getTime()):this.url+=(/\?/.test(this.url)?"&":"?")+"_="+(new Date).getTime()}}function w(e){var t=new FormData;return e.trim().split("&").forEach((function(e){if(e){var n=e.split("="),r=n.shift().replace(/\+/g," "),i=n.join("=").replace(/\+/g," ");t.append(decodeURIComponent(r),decodeURIComponent(i))}})),t}function E(e,t){if(!(this instanceof E))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');t||(t={}),this.type="default",this.status=void 0===t.status?200:t.status,this.ok=this.status>=200&&this.status<300,this.statusText=void 0===t.statusText?"":""+t.statusText,this.headers=new A(t.headers),this.url=t.url||"",this._initBody(e)}v.prototype.clone=function(){return new v(this,{body:this._bodyInit})},m.call(v.prototype),m.call(E.prototype),E.prototype.clone=function(){return new E(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new A(this.headers),url:this.url})},E.error=function(){var e=new E(null,{status:0,statusText:""});return e.type="error",e};var I=[301,302,303,307,308];E.redirect=function(e,t){if(-1===I.indexOf(t))throw new RangeError("Invalid status code");return new E(null,{status:t,headers:{location:e}})},t.DOMException=n.DOMException;try{new t.DOMException}catch(e){t.DOMException=function(e,t){this.message=e,this.name=t;var n=Error(e);this.stack=n.stack},t.DOMException.prototype=Object.create(Error.prototype),t.DOMException.prototype.constructor=t.DOMException}function B(e,r){return new Promise((function(i,a){var c=new v(e,r);if(c.signal&&c.signal.aborted)return a(new t.DOMException("Aborted","AbortError"));var u=new XMLHttpRequest;function l(){u.abort()}u.onload=function(){var e,t,n={status:u.status,statusText:u.statusText,headers:(e=u.getAllResponseHeaders()||"",t=new A,e.replace(/\r?\n[\t ]+/g," ").split("\r").map((function(e){return 0===e.indexOf("\n")?e.substr(1,e.length):e})).forEach((function(e){var n=e.split(":"),r=n.shift().trim();if(r){var i=n.join(":").trim();t.append(r,i)}})),t)};n.url="responseURL"in u?u.responseURL:n.headers.get("X-Request-URL");var r="response"in u?u.response:u.responseText;setTimeout((function(){i(new E(r,n))}),0)},u.onerror=function(){setTimeout((function(){a(new TypeError("Network request failed"))}),0)},u.ontimeout=function(){setTimeout((function(){a(new TypeError("Network request failed"))}),0)},u.onabort=function(){setTimeout((function(){a(new t.DOMException("Aborted","AbortError"))}),0)},u.open(c.method,function(e){try{return""===e&&n.location.href?n.location.href:e}catch(t){return e}}(c.url),!0),"include"===c.credentials?u.withCredentials=!0:"omit"===c.credentials&&(u.withCredentials=!1),"responseType"in u&&(o?u.responseType="blob":s&&c.headers.get("Content-Type")&&-1!==c.headers.get("Content-Type").indexOf("application/octet-stream")&&(u.responseType="arraybuffer")),!r||"object"!=typeof r.headers||r.headers instanceof A?c.headers.forEach((function(e,t){u.setRequestHeader(t,e)})):Object.getOwnPropertyNames(r.headers).forEach((function(e){u.setRequestHeader(e,f(r.headers[e]))})),c.signal&&(c.signal.addEventListener("abort",l),u.onreadystatechange=function(){4===u.readyState&&c.signal.removeEventListener("abort",l)}),u.send(void 0===c._bodyInit?null:c._bodyInit)}))}B.polyfill=!0,n.fetch||(n.fetch=B,n.Headers=A,n.Request=v,n.Response=E),t.Headers=A,t.Request=v,t.Response=E,t.fetch=B}({})}(i),i.fetch.ponyfill=!0,delete i.fetch.polyfill;var o=n.fetch?n:i;(t=o.fetch).default=o.fetch,t.fetch=o.fetch,t.Headers=o.Headers,t.Request=o.Request,t.Response=o.Response,e.exports=t}(SQ,SQ.exports);var QQ=i(SQ.exports);let kQ=1;const MQ=e=>new Promise((t=>{setTimeout((()=>{t(!0)}),e)})),xQ=({checkInstallationOnAllCalls:t=!1,communicationLayerPreference:n,injectProvider:r,shouldShimWeb3:i,platformManager:o,installer:a,sdk:s,remoteConnection:c,debug:u})=>{var l;const f=(({name:e,remoteConnection:t,debug:n})=>{if(!t||!(null==t?void 0:t.getConnector()))throw new Error("Missing remote connection parameter");return new _Q({name:e,remote:null==t?void 0:t.getConnector(),platformManager:null==t?void 0:t.getPlatformManager(),debug:n})})({name:bQ.INPAGE,target:bQ.CONTENT_SCRIPT,platformManager:o,communicationLayerPreference:n,remoteConnection:c,debug:u}),d=o.getPlatformType(),A=s.options.dappMetadata,h=`Sdk/Javascript SdkVersion/${eQ} Platform/${d} dApp/${null!==(l=A.url)&&void 0!==l?l:A.name} dAppTitle/${A.name}`;let p=null,g=null;const y=!(!r||d===e.PlatformType.NonBrowser||d===e.PlatformType.ReactNative),m=CQ.init({shouldSetOnWindow:y,connectionStream:f,shouldShimWeb3:i,debug:u});let b=!1;const v=e=>{b=e},w=()=>b,E=(n,r,i,l)=>lw(void 0,void 0,void 0,(function*(){var f,d,A,y,m,E,I,B,C,_,S;if(b){null==c||c.showActiveModal();let e=w();for(;e;)yield MQ(1e3),e=w();return u&&console.debug("initializeProvider::sendRequest() initial method completed -- prevent installation and call provider"),i(...r)}const Q=o.isMetaMaskInstalled(),k=null==c?void 0:c.isConnected();let{selectedAddress:M,chainId:x}=CQ.getProvider();if(M=null!=M?M:p,x=null!==(f=null!=x?x:g)&&void 0!==f?f:s.defaultReadOnlyChainId,M&&(p=M),x&&(g=x),l&&console.debug(`initializeProvider::sendRequest() method=${n} ongoing=${b} selectedAddress=${M} isInstalled=${Q} checkInstallationOnAllCalls=${t} socketConnected=${k}`),M&&n.toLowerCase()===iQ.ETH_ACCOUNTS.toLowerCase())return[M];if(x&&n.toLowerCase()===iQ.ETH_CHAINID.toLowerCase())return x;const R=[iQ.ETH_REQUESTACCOUNTS,iQ.METAMASK_CONNECTSIGN,iQ.METAMASK_CONNECTWITH],D=!tQ[n],T=null===(d=s.options.readonlyRPCMap)||void 0===d?void 0:d[x];if(T&&D)try{const e=null===(A=null==r?void 0:r[0])||void 0===A?void 0:A.params,t=yield(({rpcEndpoint:e,method:t,sdkInfo:n,params:r})=>lw(void 0,void 0,void 0,(function*(){const i=JSON.stringify({jsonrpc:"2.0",method:t,params:r,id:(kQ+=1,kQ)}),o={Accept:"application/json","Content-Type":"application/json"};let a;e.includes("infura")&&(o["Metamask-Sdk-Info"]=n);try{a=yield QQ(e,{method:"POST",headers:o,body:i})}catch(e){throw e instanceof Error?new Error(`Failed to fetch from RPC: ${e.message}`):new Error(`Failed to fetch from RPC: ${e}`)}if(!a.ok)throw new Error(`Server responded with a status of ${a.status}`);return(yield a.json()).result})))({rpcEndpoint:T,sdkInfo:h,method:n,params:e||[]});return l&&console.log("initializeProvider::ReadOnlyRPCResponse",t),t}catch(e){console.warn(`initializeProvider::sendRequest() method=${n} readOnlyRPCRequest failed:`,e)}if((!Q||Q&&!k)&&n!==iQ.METAMASK_GETPROVIDERSTATE){if(-1!==R.indexOf(n)||t){v(!0);try{yield a.start({wait:!1})}catch(t){if(v(!1),e.PROVIDER_UPDATE_TYPE.EXTENSION===t){if(u&&console.debug(`initializeProvider extension provider detect: re-create ${n} on the active provider`),n.toLowerCase()===iQ.METAMASK_CONNECTSIGN.toLowerCase()){const[e]=r,{params:t}=e,n=yield null===(y=s.getProvider())||void 0===y?void 0:y.request({method:iQ.ETH_REQUESTACCOUNTS,params:[]});if(!n.length)throw new Error("SDK state invalid -- undefined accounts");return yield null===(m=s.getProvider())||void 0===m?void 0:m.request({method:iQ.PERSONAL_SIGN,params:[t[0],n[0]]})}if(n.toLowerCase()===iQ.METAMASK_CONNECTWITH.toLowerCase()){const e=yield null===(E=s.getProvider())||void 0===E?void 0:E.request({method:iQ.ETH_REQUESTACCOUNTS,params:[]});if(!e.length)throw new Error("SDK state invalid -- undefined accounts");const[t]=r;console.log("connectWith:: initialMethod",t);const{params:n}=t,[i]=n;if(console.warn("FIXME:: handle CONNECT_WITH",i),(null===(I=i.method)||void 0===I?void 0:I.toLowerCase())===iQ.PERSONAL_SIGN.toLowerCase()){const t={method:i.method,params:[i.params[0],e[0]]};return console.log("connectWith:: connectedRpc",t),yield null===(B=s.getProvider())||void 0===B?void 0:B.request(t)}console.warn("FIXME:: handle CONNECT_WITH",i)}return yield null===(C=s.getProvider())||void 0===C?void 0:C.request({method:n,params:r})}throw u&&console.debug(`initializeProvider failed to start installer: ${t}`),t}const t=i(...r);try{yield new Promise(((t,n)=>{null==c||c.getConnector().once(e.EventType.AUTHORIZED,(()=>{t(!0)})),s.once(e.EventType.PROVIDER_UPDATE,(t=>{u&&console.debug("initializeProvider::sendRequest() PROVIDER_UPDATE --- remote provider request interupted",t),t===e.PROVIDER_UPDATE_TYPE.EXTENSION?n(e.EventType.PROVIDER_UPDATE):n(new Error("Connection Terminated"))}))}))}catch(t){if(v(!1),t===e.EventType.PROVIDER_UPDATE)return yield null===(_=s.getProvider())||void 0===_?void 0:_.request({method:n,params:r});throw t}return v(!1),t}if(o.isSecure()&&tQ[n])return i(...r);if(s.isExtensionActive())return u&&console.debug(`initializeProvider::sendRequest() EXTENSION active - redirect request '${n}' to it`),yield null===(S=s.getProvider())||void 0===S?void 0:S.request({method:n,params:r});throw u&&console.debug(`initializeProvider::sendRequest() method=${n} --- skip --- not connected/installed`),new Error("MetaMask is not connected/installed, please call eth_requestAccounts to connect first.")}const N=yield i(...r);return u&&console.debug(`initializeProvider::sendRequest() method=${n} rpcResponse:`,N),N})),{request:I}=m;m.request=(...e)=>lw(void 0,void 0,void 0,(function*(){return E(null==e?void 0:e[0].method,e,I,u)}));const{send:B}=m;return m.send=(...e)=>lw(void 0,void 0,void 0,(function*(){return E(null==e?void 0:e[0],e,B,u)})),u&&console.debug("initializeProvider metamaskStream.start()"),f.start(),m};const RQ=({provider:e,debug:t})=>{if("state"in e)throw new Error("INVALID EXTENSION PROVIDER");return new Proxy(e,{get:(n,r)=>"request"===r?function(r){return lw(this,void 0,void 0,(function*(){t&&console.debug("[wrapExtensionProvider] Overwriting request method, args:",r);const{method:i,params:o}=r;if(i===iQ.METAMASK_BATCH&&Array.isArray(o)){const t=[];for(const n of o){const r=yield null==e?void 0:e.request({method:n.method,params:n.params});t.push(r)}return t}return n.request(r)}))}:n[r]})};var DQ;!function(e){e.Announce="eip6963:announceProvider",e.Request="eip6963:requestProvider"}(DQ||(DQ={}));var TQ={exports:{}};!function(e,t){e.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=90)}({17:function(e,t,n){t.__esModule=!0,t.default=void 0;var r=n(18),i=function(){function e(){}return e.getFirstMatch=function(e,t){var n=t.match(e);return n&&n.length>0&&n[1]||""},e.getSecondMatch=function(e,t){var n=t.match(e);return n&&n.length>1&&n[2]||""},e.matchAndReturnConst=function(e,t,n){if(e.test(t))return n},e.getWindowsVersionName=function(e){switch(e){case"NT":return"NT";case"XP":case"NT 5.1":return"XP";case"NT 5.0":return"2000";case"NT 5.2":return"2003";case"NT 6.0":return"Vista";case"NT 6.1":return"7";case"NT 6.2":return"8";case"NT 6.3":return"8.1";case"NT 10.0":return"10";default:return}},e.getMacOSVersionName=function(e){var t=e.split(".").splice(0,2).map((function(e){return parseInt(e,10)||0}));if(t.push(0),10===t[0])switch(t[1]){case 5:return"Leopard";case 6:return"Snow Leopard";case 7:return"Lion";case 8:return"Mountain Lion";case 9:return"Mavericks";case 10:return"Yosemite";case 11:return"El Capitan";case 12:return"Sierra";case 13:return"High Sierra";case 14:return"Mojave";case 15:return"Catalina";default:return}},e.getAndroidVersionName=function(e){var t=e.split(".").splice(0,2).map((function(e){return parseInt(e,10)||0}));if(t.push(0),!(1===t[0]&&t[1]<5))return 1===t[0]&&t[1]<6?"Cupcake":1===t[0]&&t[1]>=6?"Donut":2===t[0]&&t[1]<2?"Eclair":2===t[0]&&2===t[1]?"Froyo":2===t[0]&&t[1]>2?"Gingerbread":3===t[0]?"Honeycomb":4===t[0]&&t[1]<1?"Ice Cream Sandwich":4===t[0]&&t[1]<4?"Jelly Bean":4===t[0]&&t[1]>=4?"KitKat":5===t[0]?"Lollipop":6===t[0]?"Marshmallow":7===t[0]?"Nougat":8===t[0]?"Oreo":9===t[0]?"Pie":void 0},e.getVersionPrecision=function(e){return e.split(".").length},e.compareVersions=function(t,n,r){void 0===r&&(r=!1);var i=e.getVersionPrecision(t),o=e.getVersionPrecision(n),a=Math.max(i,o),s=0,c=e.map([t,n],(function(t){var n=a-e.getVersionPrecision(t),r=t+new Array(n+1).join(".0");return e.map(r.split("."),(function(e){return new Array(20-e.length).join("0")+e})).reverse()}));for(r&&(s=a-Math.min(i,o)),a-=1;a>=s;){if(c[0][a]>c[1][a])return 1;if(c[0][a]===c[1][a]){if(a===s)return 0;a-=1}else if(c[0][a]1?i-1:0),a=1;a0){var a=Object.keys(n),c=s.default.find(a,(function(e){return t.isOS(e)}));if(c){var u=this.satisfies(n[c]);if(void 0!==u)return u}var l=s.default.find(a,(function(e){return t.isPlatform(e)}));if(l){var f=this.satisfies(n[l]);if(void 0!==f)return f}}if(o>0){var d=Object.keys(i),A=s.default.find(d,(function(e){return t.isBrowser(e,!0)}));if(void 0!==A)return this.compareVersion(i[A])}},t.isBrowser=function(e,t){void 0===t&&(t=!1);var n=this.getBrowserName().toLowerCase(),r=e.toLowerCase(),i=s.default.getBrowserTypeByAlias(r);return t&&i&&(r=i.toLowerCase()),r===n},t.compareVersion=function(e){var t=[0],n=e,r=!1,i=this.getBrowserVersion();if("string"==typeof i)return">"===e[0]||"<"===e[0]?(n=e.substr(1),"="===e[1]?(r=!0,n=e.substr(2)):t=[],">"===e[0]?t.push(1):t.push(-1)):"="===e[0]?n=e.substr(1):"~"===e[0]&&(r=!0,n=e.substr(1)),t.indexOf(s.default.compareVersions(i,n,r))>-1},t.isOS=function(e){return this.getOSName(!0)===String(e).toLowerCase()},t.isPlatform=function(e){return this.getPlatformType(!0)===String(e).toLowerCase()},t.isEngine=function(e){return this.getEngineName(!0)===String(e).toLowerCase()},t.is=function(e,t){return void 0===t&&(t=!1),this.isBrowser(e,t)||this.isOS(e)||this.isPlatform(e)},t.some=function(e){var t=this;return void 0===e&&(e=[]),e.some((function(e){return t.is(e)}))},e}();t.default=u,e.exports=t.default},92:function(e,t,n){t.__esModule=!0,t.default=void 0;var r,i=(r=n(17))&&r.__esModule?r:{default:r},o=/version\/(\d+(\.?_?\d+)+)/i,a=[{test:[/googlebot/i],describe:function(e){var t={name:"Googlebot"},n=i.default.getFirstMatch(/googlebot\/(\d+(\.\d+))/i,e)||i.default.getFirstMatch(o,e);return n&&(t.version=n),t}},{test:[/opera/i],describe:function(e){var t={name:"Opera"},n=i.default.getFirstMatch(o,e)||i.default.getFirstMatch(/(?:opera)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/opr\/|opios/i],describe:function(e){var t={name:"Opera"},n=i.default.getFirstMatch(/(?:opr|opios)[\s/](\S+)/i,e)||i.default.getFirstMatch(o,e);return n&&(t.version=n),t}},{test:[/SamsungBrowser/i],describe:function(e){var t={name:"Samsung Internet for Android"},n=i.default.getFirstMatch(o,e)||i.default.getFirstMatch(/(?:SamsungBrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/Whale/i],describe:function(e){var t={name:"NAVER Whale Browser"},n=i.default.getFirstMatch(o,e)||i.default.getFirstMatch(/(?:whale)[\s/](\d+(?:\.\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/MZBrowser/i],describe:function(e){var t={name:"MZ Browser"},n=i.default.getFirstMatch(/(?:MZBrowser)[\s/](\d+(?:\.\d+)+)/i,e)||i.default.getFirstMatch(o,e);return n&&(t.version=n),t}},{test:[/focus/i],describe:function(e){var t={name:"Focus"},n=i.default.getFirstMatch(/(?:focus)[\s/](\d+(?:\.\d+)+)/i,e)||i.default.getFirstMatch(o,e);return n&&(t.version=n),t}},{test:[/swing/i],describe:function(e){var t={name:"Swing"},n=i.default.getFirstMatch(/(?:swing)[\s/](\d+(?:\.\d+)+)/i,e)||i.default.getFirstMatch(o,e);return n&&(t.version=n),t}},{test:[/coast/i],describe:function(e){var t={name:"Opera Coast"},n=i.default.getFirstMatch(o,e)||i.default.getFirstMatch(/(?:coast)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/opt\/\d+(?:.?_?\d+)+/i],describe:function(e){var t={name:"Opera Touch"},n=i.default.getFirstMatch(/(?:opt)[\s/](\d+(\.?_?\d+)+)/i,e)||i.default.getFirstMatch(o,e);return n&&(t.version=n),t}},{test:[/yabrowser/i],describe:function(e){var t={name:"Yandex Browser"},n=i.default.getFirstMatch(/(?:yabrowser)[\s/](\d+(\.?_?\d+)+)/i,e)||i.default.getFirstMatch(o,e);return n&&(t.version=n),t}},{test:[/ucbrowser/i],describe:function(e){var t={name:"UC Browser"},n=i.default.getFirstMatch(o,e)||i.default.getFirstMatch(/(?:ucbrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/Maxthon|mxios/i],describe:function(e){var t={name:"Maxthon"},n=i.default.getFirstMatch(o,e)||i.default.getFirstMatch(/(?:Maxthon|mxios)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/epiphany/i],describe:function(e){var t={name:"Epiphany"},n=i.default.getFirstMatch(o,e)||i.default.getFirstMatch(/(?:epiphany)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/puffin/i],describe:function(e){var t={name:"Puffin"},n=i.default.getFirstMatch(o,e)||i.default.getFirstMatch(/(?:puffin)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/sleipnir/i],describe:function(e){var t={name:"Sleipnir"},n=i.default.getFirstMatch(o,e)||i.default.getFirstMatch(/(?:sleipnir)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/k-meleon/i],describe:function(e){var t={name:"K-Meleon"},n=i.default.getFirstMatch(o,e)||i.default.getFirstMatch(/(?:k-meleon)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/micromessenger/i],describe:function(e){var t={name:"WeChat"},n=i.default.getFirstMatch(/(?:micromessenger)[\s/](\d+(\.?_?\d+)+)/i,e)||i.default.getFirstMatch(o,e);return n&&(t.version=n),t}},{test:[/qqbrowser/i],describe:function(e){var t={name:/qqbrowserlite/i.test(e)?"QQ Browser Lite":"QQ Browser"},n=i.default.getFirstMatch(/(?:qqbrowserlite|qqbrowser)[/](\d+(\.?_?\d+)+)/i,e)||i.default.getFirstMatch(o,e);return n&&(t.version=n),t}},{test:[/msie|trident/i],describe:function(e){var t={name:"Internet Explorer"},n=i.default.getFirstMatch(/(?:msie |rv:)(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/\sedg\//i],describe:function(e){var t={name:"Microsoft Edge"},n=i.default.getFirstMatch(/\sedg\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/edg([ea]|ios)/i],describe:function(e){var t={name:"Microsoft Edge"},n=i.default.getSecondMatch(/edg([ea]|ios)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/vivaldi/i],describe:function(e){var t={name:"Vivaldi"},n=i.default.getFirstMatch(/vivaldi\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/seamonkey/i],describe:function(e){var t={name:"SeaMonkey"},n=i.default.getFirstMatch(/seamonkey\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/sailfish/i],describe:function(e){var t={name:"Sailfish"},n=i.default.getFirstMatch(/sailfish\s?browser\/(\d+(\.\d+)?)/i,e);return n&&(t.version=n),t}},{test:[/silk/i],describe:function(e){var t={name:"Amazon Silk"},n=i.default.getFirstMatch(/silk\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/phantom/i],describe:function(e){var t={name:"PhantomJS"},n=i.default.getFirstMatch(/phantomjs\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/slimerjs/i],describe:function(e){var t={name:"SlimerJS"},n=i.default.getFirstMatch(/slimerjs\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe:function(e){var t={name:"BlackBerry"},n=i.default.getFirstMatch(o,e)||i.default.getFirstMatch(/blackberry[\d]+\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/(web|hpw)[o0]s/i],describe:function(e){var t={name:"WebOS Browser"},n=i.default.getFirstMatch(o,e)||i.default.getFirstMatch(/w(?:eb)?[o0]sbrowser\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/bada/i],describe:function(e){var t={name:"Bada"},n=i.default.getFirstMatch(/dolfin\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/tizen/i],describe:function(e){var t={name:"Tizen"},n=i.default.getFirstMatch(/(?:tizen\s?)?browser\/(\d+(\.?_?\d+)+)/i,e)||i.default.getFirstMatch(o,e);return n&&(t.version=n),t}},{test:[/qupzilla/i],describe:function(e){var t={name:"QupZilla"},n=i.default.getFirstMatch(/(?:qupzilla)[\s/](\d+(\.?_?\d+)+)/i,e)||i.default.getFirstMatch(o,e);return n&&(t.version=n),t}},{test:[/firefox|iceweasel|fxios/i],describe:function(e){var t={name:"Firefox"},n=i.default.getFirstMatch(/(?:firefox|iceweasel|fxios)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/electron/i],describe:function(e){var t={name:"Electron"},n=i.default.getFirstMatch(/(?:electron)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/MiuiBrowser/i],describe:function(e){var t={name:"Miui"},n=i.default.getFirstMatch(/(?:MiuiBrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/chromium/i],describe:function(e){var t={name:"Chromium"},n=i.default.getFirstMatch(/(?:chromium)[\s/](\d+(\.?_?\d+)+)/i,e)||i.default.getFirstMatch(o,e);return n&&(t.version=n),t}},{test:[/chrome|crios|crmo/i],describe:function(e){var t={name:"Chrome"},n=i.default.getFirstMatch(/(?:chrome|crios|crmo)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/GSA/i],describe:function(e){var t={name:"Google Search"},n=i.default.getFirstMatch(/(?:GSA)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:function(e){var t=!e.test(/like android/i),n=e.test(/android/i);return t&&n},describe:function(e){var t={name:"Android Browser"},n=i.default.getFirstMatch(o,e);return n&&(t.version=n),t}},{test:[/playstation 4/i],describe:function(e){var t={name:"PlayStation 4"},n=i.default.getFirstMatch(o,e);return n&&(t.version=n),t}},{test:[/safari|applewebkit/i],describe:function(e){var t={name:"Safari"},n=i.default.getFirstMatch(o,e);return n&&(t.version=n),t}},{test:[/.*/i],describe:function(e){var t=-1!==e.search("\\(")?/^(.*)\/(.*)[ \t]\((.*)/:/^(.*)\/(.*) /;return{name:i.default.getFirstMatch(t,e),version:i.default.getSecondMatch(t,e)}}}];t.default=a,e.exports=t.default},93:function(e,t,n){t.__esModule=!0,t.default=void 0;var r,i=(r=n(17))&&r.__esModule?r:{default:r},o=n(18),a=[{test:[/Roku\/DVP/],describe:function(e){var t=i.default.getFirstMatch(/Roku\/DVP-(\d+\.\d+)/i,e);return{name:o.OS_MAP.Roku,version:t}}},{test:[/windows phone/i],describe:function(e){var t=i.default.getFirstMatch(/windows phone (?:os)?\s?(\d+(\.\d+)*)/i,e);return{name:o.OS_MAP.WindowsPhone,version:t}}},{test:[/windows /i],describe:function(e){var t=i.default.getFirstMatch(/Windows ((NT|XP)( \d\d?.\d)?)/i,e),n=i.default.getWindowsVersionName(t);return{name:o.OS_MAP.Windows,version:t,versionName:n}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe:function(e){var t={name:o.OS_MAP.iOS},n=i.default.getSecondMatch(/(Version\/)(\d[\d.]+)/,e);return n&&(t.version=n),t}},{test:[/macintosh/i],describe:function(e){var t=i.default.getFirstMatch(/mac os x (\d+(\.?_?\d+)+)/i,e).replace(/[_\s]/g,"."),n=i.default.getMacOSVersionName(t),r={name:o.OS_MAP.MacOS,version:t};return n&&(r.versionName=n),r}},{test:[/(ipod|iphone|ipad)/i],describe:function(e){var t=i.default.getFirstMatch(/os (\d+([_\s]\d+)*) like mac os x/i,e).replace(/[_\s]/g,".");return{name:o.OS_MAP.iOS,version:t}}},{test:function(e){var t=!e.test(/like android/i),n=e.test(/android/i);return t&&n},describe:function(e){var t=i.default.getFirstMatch(/android[\s/-](\d+(\.\d+)*)/i,e),n=i.default.getAndroidVersionName(t),r={name:o.OS_MAP.Android,version:t};return n&&(r.versionName=n),r}},{test:[/(web|hpw)[o0]s/i],describe:function(e){var t=i.default.getFirstMatch(/(?:web|hpw)[o0]s\/(\d+(\.\d+)*)/i,e),n={name:o.OS_MAP.WebOS};return t&&t.length&&(n.version=t),n}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe:function(e){var t=i.default.getFirstMatch(/rim\stablet\sos\s(\d+(\.\d+)*)/i,e)||i.default.getFirstMatch(/blackberry\d+\/(\d+([_\s]\d+)*)/i,e)||i.default.getFirstMatch(/\bbb(\d+)/i,e);return{name:o.OS_MAP.BlackBerry,version:t}}},{test:[/bada/i],describe:function(e){var t=i.default.getFirstMatch(/bada\/(\d+(\.\d+)*)/i,e);return{name:o.OS_MAP.Bada,version:t}}},{test:[/tizen/i],describe:function(e){var t=i.default.getFirstMatch(/tizen[/\s](\d+(\.\d+)*)/i,e);return{name:o.OS_MAP.Tizen,version:t}}},{test:[/linux/i],describe:function(){return{name:o.OS_MAP.Linux}}},{test:[/CrOS/],describe:function(){return{name:o.OS_MAP.ChromeOS}}},{test:[/PlayStation 4/],describe:function(e){var t=i.default.getFirstMatch(/PlayStation 4[/\s](\d+(\.\d+)*)/i,e);return{name:o.OS_MAP.PlayStation4,version:t}}}];t.default=a,e.exports=t.default},94:function(e,t,n){t.__esModule=!0,t.default=void 0;var r,i=(r=n(17))&&r.__esModule?r:{default:r},o=n(18),a=[{test:[/googlebot/i],describe:function(){return{type:"bot",vendor:"Google"}}},{test:[/huawei/i],describe:function(e){var t=i.default.getFirstMatch(/(can-l01)/i,e)&&"Nova",n={type:o.PLATFORMS_MAP.mobile,vendor:"Huawei"};return t&&(n.model=t),n}},{test:[/nexus\s*(?:7|8|9|10).*/i],describe:function(){return{type:o.PLATFORMS_MAP.tablet,vendor:"Nexus"}}},{test:[/ipad/i],describe:function(){return{type:o.PLATFORMS_MAP.tablet,vendor:"Apple",model:"iPad"}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe:function(){return{type:o.PLATFORMS_MAP.tablet,vendor:"Apple",model:"iPad"}}},{test:[/kftt build/i],describe:function(){return{type:o.PLATFORMS_MAP.tablet,vendor:"Amazon",model:"Kindle Fire HD 7"}}},{test:[/silk/i],describe:function(){return{type:o.PLATFORMS_MAP.tablet,vendor:"Amazon"}}},{test:[/tablet(?! pc)/i],describe:function(){return{type:o.PLATFORMS_MAP.tablet}}},{test:function(e){var t=e.test(/ipod|iphone/i),n=e.test(/like (ipod|iphone)/i);return t&&!n},describe:function(e){var t=i.default.getFirstMatch(/(ipod|iphone)/i,e);return{type:o.PLATFORMS_MAP.mobile,vendor:"Apple",model:t}}},{test:[/nexus\s*[0-6].*/i,/galaxy nexus/i],describe:function(){return{type:o.PLATFORMS_MAP.mobile,vendor:"Nexus"}}},{test:[/[^-]mobi/i],describe:function(){return{type:o.PLATFORMS_MAP.mobile}}},{test:function(e){return"blackberry"===e.getBrowserName(!0)},describe:function(){return{type:o.PLATFORMS_MAP.mobile,vendor:"BlackBerry"}}},{test:function(e){return"bada"===e.getBrowserName(!0)},describe:function(){return{type:o.PLATFORMS_MAP.mobile}}},{test:function(e){return"windows phone"===e.getBrowserName()},describe:function(){return{type:o.PLATFORMS_MAP.mobile,vendor:"Microsoft"}}},{test:function(e){var t=Number(String(e.getOSVersion()).split(".")[0]);return"android"===e.getOSName(!0)&&t>=3},describe:function(){return{type:o.PLATFORMS_MAP.tablet}}},{test:function(e){return"android"===e.getOSName(!0)},describe:function(){return{type:o.PLATFORMS_MAP.mobile}}},{test:function(e){return"macos"===e.getOSName(!0)},describe:function(){return{type:o.PLATFORMS_MAP.desktop,vendor:"Apple"}}},{test:function(e){return"windows"===e.getOSName(!0)},describe:function(){return{type:o.PLATFORMS_MAP.desktop}}},{test:function(e){return"linux"===e.getOSName(!0)},describe:function(){return{type:o.PLATFORMS_MAP.desktop}}},{test:function(e){return"playstation 4"===e.getOSName(!0)},describe:function(){return{type:o.PLATFORMS_MAP.tv}}},{test:function(e){return"roku"===e.getOSName(!0)},describe:function(){return{type:o.PLATFORMS_MAP.tv}}}];t.default=a,e.exports=t.default},95:function(e,t,n){t.__esModule=!0,t.default=void 0;var r,i=(r=n(17))&&r.__esModule?r:{default:r},o=n(18),a=[{test:function(e){return"microsoft edge"===e.getBrowserName(!0)},describe:function(e){if(/\sedg\//i.test(e))return{name:o.ENGINE_MAP.Blink};var t=i.default.getFirstMatch(/edge\/(\d+(\.?_?\d+)+)/i,e);return{name:o.ENGINE_MAP.EdgeHTML,version:t}}},{test:[/trident/i],describe:function(e){var t={name:o.ENGINE_MAP.Trident},n=i.default.getFirstMatch(/trident\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:function(e){return e.test(/presto/i)},describe:function(e){var t={name:o.ENGINE_MAP.Presto},n=i.default.getFirstMatch(/presto\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:function(e){var t=e.test(/gecko/i),n=e.test(/like gecko/i);return t&&!n},describe:function(e){var t={name:o.ENGINE_MAP.Gecko},n=i.default.getFirstMatch(/gecko\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/(apple)?webkit\/537\.36/i],describe:function(){return{name:o.ENGINE_MAP.Blink}}},{test:[/(apple)?webkit/i],describe:function(e){var t={name:o.ENGINE_MAP.WebKit},n=i.default.getFirstMatch(/webkit\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}}];t.default=a,e.exports=t.default}})}(TQ);var NQ,OQ=i(TQ.exports);!function(e){e.Disabled="Disabled",e.Temporary="Temporary",e.UntilResponse="UntilResponse"}(NQ||(NQ={}));const LQ=()=>"wakeLock"in navigator,PQ=()=>{if("undefined"==typeof navigator)return!1;const{userAgent:e}=navigator,t=/CPU (?:iPhone )?OS (\d+)(?:_\d+)?_?\d+ like Mac OS X/iu.exec(e);return!!t&&parseInt(t[1],10)<10&&!window.MSStream};class UQ{constructor(e){this.enabled=!1,this._eventsAdded=!1,this.debug=null!=e&&e}start(){if(this.enabled=!1,LQ()&&!this._eventsAdded){this._eventsAdded=!0,this._wakeLock=void 0;const e=()=>lw(this,void 0,void 0,(function*(){null!==this._wakeLock&&"visible"===document.visibilityState&&(yield this.enable())}));document.addEventListener("visibilitychange",e),document.addEventListener("fullscreenchange",e)}else PQ()?this.noSleepTimer=void 0:(this.noSleepVideo=document.createElement("video"),this.noSleepVideo.setAttribute("title","MetaMask SDK - Listening for responses"),this.noSleepVideo.setAttribute("playsinline",""),this._addSourceToVideo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TRNU1VJkqZ5niiKommapqqyLE3zPFEURdNUVVWFpnmeKIqiaaqq6sLzPE8URdE0VdV14XmeJ4qiaJqq6roQRVE0TdNUTVV1XSCKpmmaqqqqrgtETxRNU1Vd13WB54miaaqqq7ouEE3TVFVVdV1ZBpimaaqq68oyQFVV1XVdV5YBqqqqruu6sgxQVdd1XVmWZQCu67qyLMsCAAAOHAAAAoygk4wqi7DRhAsPQKEhKwKAKAAAwBimFFPKMCYhpBAaxiSEFEImJaXSUqogpFJSKRWEVEoqJaOUUmopVRBSKamUCkIqJZVSAADYgQMA2IGFUGjISgAgDwCAMEYpxhhzTiKkFGPOOScRUoox55yTSjHmnHPOSSkZc8w556SUzjnnnHNSSuacc845KaVzzjnnnJRSSuecc05KKSWEzkEnpZTSOeecEwAAVOAAABBgo8jmBCNBhYasBABSAQAMjmNZmuZ5omialiRpmud5niiapiZJmuZ5nieKqsnzPE8URdE0VZXneZ4oiqJpqirXFUXTNE1VVV2yLIqmaZqq6rowTdNUVdd1XZimaaqq67oubFtVVdV1ZRm2raqq6rqyDFzXdWXZloEsu67s2rIAAPAEBwCgAhtWRzgpGgssNGQlAJABAEAYg5BCCCFlEEIKIYSUUggJAAAYcAAACDChDBQashIASAUAAIyx1lprrbXWQGettdZaa62AzFprrbXWWmuttdZaa6211lJrrbXWWmuttdZaa6211lprrbXWWmuttdZaa6211lprrbXWWmuttdZaa6211lprrbXWWmstpZRSSimllFJKKaWUUkoppZRSSgUA+lU4APg/2LA6wknRWGChISsBgHAAAMAYpRhzDEIppVQIMeacdFRai7FCiDHnJKTUWmzFc85BKCGV1mIsnnMOQikpxVZjUSmEUlJKLbZYi0qho5JSSq3VWIwxqaTWWoutxmKMSSm01FqLMRYjbE2ptdhqq7EYY2sqLbQYY4zFCF9kbC2m2moNxggjWywt1VprMMYY3VuLpbaaizE++NpSLDHWXAAAd4MDAESCjTOsJJ0VjgYXGrISAAgJACAQUooxxhhzzjnnpFKMOeaccw5CCKFUijHGnHMOQgghlIwx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QACIBDmAYAAKOFggFPgA6jhYIBZIAOo5mBAWsAMQIAARAQABgAGFgv9AAIgEOYBgAAo4WCAXqADqOFggGPgA6jmYEBkwAxAgABEBAAGAAYWC/0AAiAQ5gGAACjhYIBpIAOo4WCAbqADqOZgQG7ADECAAEQEAAYABhYL/QACIBDmAYAAKOFggHPgA6jmYEB4wAxAgABEBAAGAAYWC/0AAiAQ5gGAACjhYIB5IAOo4WCAfqADqOZgQILADECAAEQEAAYABhYL/QACIBDmAYAAKOFggIPgA6jhYICJIAOo5mBAjMAMQIAARAQABgAGFgv9AAIgEOYBgAAo4WCAjqADqOFggJPgA6jmYECWwAxAgABEBAAGAAYWC/0AAiAQ5gGAACjhYICZIAOo4WCAnqADqOZgQKDADECAAEQEAAYABhYL/QACIBDmAYAAKOFggKPgA6jhYICpIAOo5mBAqsAMQIAARAQABgAGFgv9AAIgEOYBgAAo4WCArqADqOFggLPgA6jmIEC0wARAgABEBAUYABhYL/QACIBDmAYAKOFggLkgA6jhYIC+oAOo5mBAvsAMQIAARAQABgAGFgv9AAIgEOYBgAAo4WCAw+ADqOZgQMjADECAAEQEAAYABhYL/QACIBDmAYAAKOFggMkgA6jhYIDOoAOo5mBA0sAMQIAARAQABgAGFgv9AAIgEOYBgAAo4WCA0+ADqOFggNkgA6jmYEDcwAxAgABEBAAGAAYWC/0AAiAQ5gGAACjhYIDeoAOo4WCA4+ADqOZgQObADECAAEQEAAYABhYL/QACIBDmAYAAKOFggOkgA6jhYIDuoAOo5mBA8MAMQIAARAQABgAGFgv9AAIgEOYBgAAo4WCA8+ADqOFggPkgA6jhYID+oAOo4WCBA+ADhxTu2sBAAAAAAAAEbuPs4EDt4r3gQHxghEr8IEK"),this._addSourceToVideo(this.noSleepVideo,"mp4","data:video/mp4;base64,AAAAHGZ0eXBNNFYgAAACAGlzb21pc28yYXZjMQAAAAhmcmVlAAAGF21kYXTeBAAAbGliZmFhYyAxLjI4AABCAJMgBDIARwAAArEGBf//rdxF6b3m2Ui3l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AACQAAAAkAAAAJAAAACQAAAAkAAAAJAAAACQAAAAkAAAAJAAAACQAAAAkAAAAJAAAACQAAAAkAAAAJAAAACQAAAAkAAAAJAAAACQAAAAkAAAAJAAAACQAAAAkAAAAJAAAACQAAAAkAAAAJAAAACQAAAAkAAAAJAAAACQAAAAkAAAAJAAAACQAAAAkAAAAJAAAACQAAAAkAAAAJAAAACQAAAAkAAAAJAAAACQAAAAkAAAAJAAAACQAAAAkAAACMc3RjbwAAAAAAAAAfAAAALAAAA1UAAANyAAADhgAAA6IAAAO+AAAD0QAAA+0AAAQAAAAEHAAABC8AAARLAAAEZwAABHoAAASWAAAEqQAABMUAAATYAAAE9AAABRAAAAUjAAAFPwAABVIAAAVuAAAFgQAABZ0AAAWwAAAFzAAABegAAAX7AAAGFwAAAGJ1ZHRhAAAAWm1ldGEAAAAAAAAAIWhkbHIAAAAAAAAAAG1kaXJhcHBsAAAAAAAAAAAAAAAALWlsc3QAAAAlqXRvbwAAAB1kYXRhAAAAAQAAAABMYXZmNTUuMzMuMTAw"),this.noSleepVideo.addEventListener("loadedmetadata",(()=>{this.debug&&console.debug("WakeLockManager::start() video loadedmetadata",this.noSleepVideo),this.noSleepVideo&&(this.noSleepVideo.duration<=1?this.noSleepVideo.setAttribute("loop",""):this.noSleepVideo.addEventListener("timeupdate",(()=>{this.noSleepVideo&&this.noSleepVideo.currentTime>.5&&(this.noSleepVideo.currentTime=Math.random())})))})))}_addSourceToVideo(e,t,n){const r=document.createElement("source");r.src=n,r.type=`video/${t}`,e.appendChild(r)}isEnabled(){return this.enabled}setDebug(e){e&&!this.debug&&console.debug("WakeLockManager::setDebug() activate debug mode"),this.debug=e}enable(){return lw(this,void 0,void 0,(function*(){this.enabled&&this.disable("from_enable");const e=LQ(),t=PQ();if(this.debug&&console.debug(`WakeLockManager::enable() hasWakelock=${e} isOldIos=${t}`,this.noSleepVideo),this.start(),LQ())try{const e=yield navigator.wakeLock.request("screen");this._wakeLock=e,this.enabled=!0}catch(e){return this.debug&&console.error("WakeLockManager::enable() failed to enable wake lock",e),this.enabled=!1,!1}else if(PQ())return this.disable("from_enable_old_ios"),this.noSleepTimer=window.setInterval((()=>{document.hidden||(window.location.href=window.location.href.split("#")[0],window.setTimeout(window.stop,0))}),15e3),this.enabled=!0,!0;return!!this.noSleepVideo&&(this.noSleepVideo.play().then((()=>{this.debug&&console.debug("WakeLockManager::enable() video started playing successfully")})).catch((e=>{console.warn("WakeLockManager::enable() video failed to play",e)})),this.enabled=!0,!0)}))}disable(e){if(this.enabled){if(this.debug&&console.debug(`WakeLockManager::disable() context=${e}`),LQ())this._wakeLock&&(this.debug&&console.debug("WakeLockManager::disable() release wake lock"),this._wakeLock.release()),this._wakeLock=void 0;else if(PQ())this.noSleepTimer&&(console.warn("\n NoSleep now disabled for older iOS devices.\n "),window.clearInterval(this.noSleepTimer),this.noSleepTimer=void 0);else try{if(!this.noSleepVideo)return void(this.debug&&console.debug("WakeLockManager::disable() noSleepVideo is undefined"));this.debug&&console.debug("WakeLockManager::disable() pause noSleepVideo"),this.noSleepVideo.firstChild&&(this.noSleepVideo.removeChild(this.noSleepVideo.firstChild),this.noSleepVideo.load()),this.noSleepVideo.pause(),this.noSleepVideo.src="",this.noSleepVideo.remove()}catch(e){console.log(e)}this.enabled=!1}}}class FQ{constructor({useDeepLink:e,preferredOpenLink:t,wakeLockStatus:n=NQ.UntilResponse,debug:r=!1}){this.state={wakeLock:new UQ,wakeLockStatus:NQ.UntilResponse,wakeLockTimer:void 0,wakeLockFeatureActive:!1,platformType:void 0,useDeeplink:!1,preferredOpenLink:void 0,debug:!1},this.state.platformType=this.getPlatformType(),this.state.useDeeplink=e,this.state.preferredOpenLink=t,this.state.wakeLockStatus=n,this.state.debug=r,this.state.wakeLock.setDebug(r)}enableWakeLock(){return function(e){const{state:t}=e;if(t.wakeLockStatus===NQ.Disabled)return void(t.debug&&console.debug("WakeLock is disabled"));t.wakeLock.enable().catch((e=>{console.error("WakeLock is not supported",e)}));const n=t.wakeLockStatus===NQ.Temporary?2e3:4e4;t.wakeLockTimer=setTimeout((()=>{e.disableWakeLock()}),n),t.wakeLockFeatureActive||t.wakeLockStatus!==NQ.UntilResponse||(t.wakeLockFeatureActive=!0,window.addEventListener("focus",(()=>{e.disableWakeLock()})))}(this)}disableWakeLock(){return function(e){const{state:t}=e;t.wakeLockStatus!==NQ.Disabled&&(t.wakeLockTimer&&clearTimeout(t.wakeLockTimer),t.wakeLock.disable("disableWakeLock"))}(this)}openDeeplink(e,t,n){return function(e,t,n,r){const{state:i}=e;i.debug&&(console.debug(`Platform::openDeepLink universalLink --\x3e ${t}`),console.debug(`Platform::openDeepLink deepLink --\x3e ${n}`)),e.isBrowser()&&e.enableWakeLock();try{if(i.preferredOpenLink)return void i.preferredOpenLink(i.useDeeplink?n:t,r);if(i.debug&&console.warn(`Platform::openDeepLink() open link now useDeepLink=${i.useDeeplink}`,i.useDeeplink?n:t),"undefined"!=typeof window){let e;e=i.useDeeplink?window.open(n,"_blank"):window.open(t,"_blank"),setTimeout((()=>{var t;return null===(t=null==e?void 0:e.close)||void 0===t?void 0:t.call(e)}),500)}}catch(e){console.log("Platform::openDeepLink() can't open link",e)}}(this,e,t,n)}isReactNative(){var e;return this.isNotBrowser()&&"undefined"!=typeof window&&(null===window||void 0===window?void 0:window.navigator)&&"ReactNative"===(null===(e=window.navigator)||void 0===e?void 0:e.product)}isMetaMaskInstalled(){return function(e){const{state:t}=e,n=CQ.getProvider()||(null===window||void 0===window?void 0:window.ethereum);return t.debug&&console.debug(`Platform::isMetaMaskInstalled isMetaMask=${null==n?void 0:n.isMetaMask} isConnected=${null==n?void 0:n.isConnected()}`),(null==n?void 0:n.isMetaMask)&&(null==n?void 0:n.isConnected())}(this)}isDesktopWeb(){return this.isBrowser()&&!this.isMobileWeb()}isMobile(){var e,t;const n=OQ.parse(window.navigator.userAgent);return"mobile"===(null===(e=null==n?void 0:n.platform)||void 0===e?void 0:e.type)||"tablet"===(null===(t=null==n?void 0:n.platform)||void 0===t?void 0:t.type)}isSecure(){return this.isReactNative()||this.isMobileWeb()}isMetaMaskMobileWebView(){return"undefined"!=typeof window&&Boolean(window.ReactNativeWebView)&&Boolean(navigator.userAgent.endsWith("MetaMaskMobile"))}isMobileWeb(){return this.state.platformType===e.PlatformType.MobileWeb}isNotBrowser(){var e;return"undefined"==typeof window||!(null===window||void 0===window?void 0:window.navigator)||void 0!==n.g&&"ReactNative"===(null===(e=null===n.g||void 0===n.g?void 0:n.g.navigator)||void 0===e?void 0:e.product)||"ReactNative"===(null===navigator||void 0===navigator?void 0:navigator.product)}isNodeJS(){return this.isNotBrowser()&&!this.isReactNative()}isBrowser(){return!this.isNotBrowser()}isUseDeepLink(){return this.state.useDeeplink}getPlatformType(){return function(t){const{state:n}=t;return n.platformType?n.platformType:t.isReactNative()?e.PlatformType.ReactNative:t.isNotBrowser()?e.PlatformType.NonBrowser:t.isMetaMaskMobileWebView()?e.PlatformType.MetaMaskMobileWebview:t.isMobile()?e.PlatformType.MobileWeb:e.PlatformType.DesktopWeb}(this)}}var jQ="INSTALLED",qQ="NOT_INSTALLED",GQ="REGISTERED",HQ="REGISTERING",YQ="RELOADING",KQ={CHROME:"https://chrome.google.com/webstore/detail/metamask/nkbihfbeogaeaoehlefnkodbefgpgknn",FIREFOX:"https://addons.mozilla.org/firefox/addon/ether-metamask/",DEFAULT:"https://metamask.io"},zQ="REGISTRATION_IN_PROGRESS",VQ="FORWARDER_ID",JQ=function(){function e(t){var n=void 0===t?{}:t,r=n.forwarderOrigin,i=void 0===r?"https://fwd.metamask.io":r,o=n.forwarderMode,a=void 0===o?e.FORWARDER_MODE.INJECT:o;this.forwarderOrigin=i,this.forwarderMode=a,this.state=e.isMetaMaskInstalled()?jQ:qQ;var s=e._detectBrowser();this.downloadUrl=s?KQ[s]:KQ.DEFAULT,this._onMessage=this._onMessage.bind(this),this._onMessageFromForwarder=this._onMessageFromForwarder.bind(this),this._openForwarder=this._openForwarder.bind(this),this._openDownloadPage=this._openDownloadPage.bind(this),this.startOnboarding=this.startOnboarding.bind(this),this.stopOnboarding=this.stopOnboarding.bind(this),window.addEventListener("message",this._onMessage),a===e.FORWARDER_MODE.INJECT&&"true"===sessionStorage.getItem(zQ)&&e._injectForwarder(this.forwarderOrigin)}return e.prototype._onMessage=function(e){if(e.origin===this.forwarderOrigin)return"metamask:reload"===e.data.type?this._onMessageFromForwarder(e):void console.debug("Unknown message from '"+e.origin+"' with data "+JSON.stringify(e.data))},e.prototype._onMessageUnknownStateError=function(e){throw new Error("Unknown state: '"+e+"'")},e.prototype._onMessageFromForwarder=function(t){return function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{c(r.next(e))}catch(e){o(e)}}function s(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){e.done?i(e.value):function(e){return e instanceof n?e:new n((function(t){t(e)}))}(e.value).then(a,s)}c((r=r.apply(e,t||[])).next())}))}(this,void 0,void 0,(function(){return function(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!((i=(i=a.trys).length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]{var e={192:(e,t)=>{var n,r,i=function(){var e=function(e,t){var n=e,r=a[t],i=null,o=0,c=null,g=[],y={},b=function(e,t){i=function(e){for(var t=new Array(e),n=0;n=7&&I(e),null==c&&(c=_(n,r,g)),C(c,t)},v=function(e,t){for(var n=-1;n<=7;n+=1)if(!(e+n<=-1||o<=e+n))for(var r=-1;r<=7;r+=1)t+r<=-1||o<=t+r||(i[e+n][t+r]=0<=n&&n<=6&&(0==r||6==r)||0<=r&&r<=6&&(0==n||6==n)||2<=n&&n<=4&&2<=r&&r<=4)},w=function(){for(var e=8;e>r&1);i[Math.floor(r/3)][r%3+o-8-3]=a}for(r=0;r<18;r+=1)a=!e&&1==(t>>r&1),i[r%3+o-8-3][Math.floor(r/3)]=a},B=function(e,t){for(var n=r<<3|t,a=s.getBCHTypeInfo(n),c=0;c<15;c+=1){var u=!e&&1==(a>>c&1);c<6?i[c][8]=u:c<8?i[c+1][8]=u:i[o-15+c][8]=u}for(c=0;c<15;c+=1)u=!e&&1==(a>>c&1),c<8?i[8][o-c-1]=u:c<9?i[8][15-c-1+1]=u:i[8][15-c-1]=u;i[o-8][8]=!e},C=function(e,t){for(var n=-1,r=o-1,a=7,c=0,u=s.getMaskFunction(t),l=o-1;l>0;l-=2)for(6==l&&(l-=1);;){for(var f=0;f<2;f+=1)if(null==i[r][l-f]){var d=!1;c>>a&1)),u(r,l-f)&&(d=!d),i[r][l-f]=d,-1==(a-=1)&&(c+=1,a=7)}if((r+=n)<0||o<=r){r-=n,n=-n;break}}},_=function(e,t,n){for(var r=l.getRSBlocks(e,t),i=f(),o=0;o8*c)throw"code length overflow. ("+i.getLengthInBits()+">"+8*c+")";for(i.getLengthInBits()+4<=8*c&&i.put(0,4);i.getLengthInBits()%8!=0;)i.putBit(!1);for(;!(i.getLengthInBits()>=8*c||(i.put(236,8),i.getLengthInBits()>=8*c));)i.put(17,8);return function(e,t){for(var n=0,r=0,i=0,o=new Array(t.length),a=new Array(t.length),c=0;c=0?h.getAt(p):0}}var g=0;for(d=0;dr)&&(e=r,t=n)}return t}())},y.createTableTag=function(e,t){e=e||2;var n="";n+='',n+="";for(var r=0;r";for(var i=0;i';n+=""}return(n+="")+"
"},y.createSvgTag=function(e,t,n,r){var i={};"object"==typeof arguments[0]&&(e=(i=arguments[0]).cellSize,t=i.margin,n=i.alt,r=i.title),e=e||2,t=void 0===t?4*e:t,(n="string"==typeof n?{text:n}:n||{}).text=n.text||null,n.id=n.text?n.id||"qrcode-description":null,(r="string"==typeof r?{text:r}:r||{}).text=r.text||null,r.id=r.text?r.id||"qrcode-title":null;var o,a,s,c,u=y.getModuleCount()*e+2*t,l="";for(c="l"+e+",0 0,"+e+" -"+e+",0 0,-"+e+"z ",l+=''+S(r.text)+"":"",l+=n.text?''+S(n.text)+"":"",l+='',l+='"},y.createDataURL=function(e,t){e=e||2,t=void 0===t?4*e:t;var n=y.getModuleCount()*e+2*t,r=t,i=n-t;return m(n,n,(function(t,n){if(r<=t&&t"};var S=function(e){for(var t="",n=0;n":t+=">";break;case"&":t+="&";break;case'"':t+=""";break;default:t+=r}}return t};return y.createASCII=function(e,t){if((e=e||1)<2)return function(e){e=void 0===e?2:e;var t,n,r,i,o,a=1*y.getModuleCount()+2*e,s=e,c=a-e,u={"██":"█","█ ":"▀"," █":"▄"," ":" "},l={"██":"▀","█ ":"▀"," █":" "," ":" "},f="";for(t=0;t=c?l[o]:u[o];f+="\n"}return a%2&&e>0?f.substring(0,f.length-a-1)+Array(a+1).join("▀"):f.substring(0,f.length-1)}(t);e-=1,t=void 0===t?2*e:t;var n,r,i,o,a=y.getModuleCount()*e+2*t,s=t,c=a-t,u=Array(e+1).join("██"),l=Array(e+1).join(" "),f="",d="";for(n=0;n>>8),t.push(255&a)):t.push(r)}}return t}};var t,n,r,i,o,a={L:1,M:0,Q:3,H:2},s=(t=[[],[6,18],[6,22],[6,26],[6,30],[6,34],[6,22,38],[6,24,42],[6,26,46],[6,28,50],[6,30,54],[6,32,58],[6,34,62],[6,26,46,66],[6,26,48,70],[6,26,50,74],[6,30,54,78],[6,30,56,82],[6,30,58,86],[6,34,62,90],[6,28,50,72,94],[6,26,50,74,98],[6,30,54,78,102],[6,28,54,80,106],[6,32,58,84,110],[6,30,58,86,114],[6,34,62,90,118],[6,26,50,74,98,122],[6,30,54,78,102,126],[6,26,52,78,104,130],[6,30,56,82,108,134],[6,34,60,86,112,138],[6,30,58,86,114,142],[6,34,62,90,118,146],[6,30,54,78,102,126,150],[6,24,50,76,102,128,154],[6,28,54,80,106,132,158],[6,32,58,84,110,136,162],[6,26,54,82,110,138,166],[6,30,58,86,114,142,170]],n=1335,r=7973,o=function(e){for(var t=0;0!=e;)t+=1,e>>>=1;return t},(i={}).getBCHTypeInfo=function(e){for(var t=e<<10;o(t)-o(n)>=0;)t^=n<=0;)t^=r<5&&(n+=3+o-5)}for(r=0;r=256;)t-=255;return e[t]}}}();function u(e,t){if(void 0===e.length)throw e.length+"/"+t;var n=function(){for(var n=0;n>>7-t%8&1)},put:function(e,t){for(var r=0;r>>t-r-1&1))},getLengthInBits:function(){return t},putBit:function(n){var r=Math.floor(t/8);e.length<=r&&e.push(0),n&&(e[r]|=128>>>t%8),t+=1}};return n},d=function(e){var t=e,n={getMode:function(){return 1},getLength:function(e){return t.length},write:function(e){for(var n=t,i=0;i+2>>8&255)+(255&i),e.put(i,13),n+=2}if(n>>8)},writeBytes:function(e,n,r){n=n||0,r=r||e.length;for(var i=0;i0&&(t+=","),t+=e[n];return t+"]"}};return t},y=function(e){var t=e,n=0,r=0,i=0,o={read:function(){for(;i<8;){if(n>=t.length){if(0==i)return-1;throw"unexpected end of file./"+i}var e=t.charAt(n);if(n+=1,"="==e)return i=0,-1;e.match(/^\s$/)||(r=r<<6|a(e.charCodeAt(0)),i+=6)}var o=r>>>i-8&255;return i-=8,o}},a=function(e){if(65<=e&&e<=90)return e-65;if(97<=e&&e<=122)return e-97+26;if(48<=e&&e<=57)return e-48+52;if(43==e)return 62;if(47==e)return 63;throw"c:"+e};return o},m=function(e,t,n){for(var r=function(e,t){var n=e,r=t,i=new Array(e*t),o={setPixel:function(e,t,r){i[t*n+e]=r},write:function(e){e.writeString("GIF87a"),e.writeShort(n),e.writeShort(r),e.writeByte(128),e.writeByte(0),e.writeByte(0),e.writeByte(0),e.writeByte(0),e.writeByte(0),e.writeByte(255),e.writeByte(255),e.writeByte(255),e.writeString(","),e.writeShort(0),e.writeShort(0),e.writeShort(n),e.writeShort(r),e.writeByte(0);var t=a(2);e.writeByte(2);for(var i=0;t.length-i>255;)e.writeByte(255),e.writeBytes(t,i,255),i+=255;e.writeByte(t.length-i),e.writeBytes(t,i,t.length-i),e.writeByte(0),e.writeString(";")}},a=function(e){for(var t=1<>>t!=0)throw"length over";for(;u+t>=8;)c.writeByte(255&(e<>>=8-u,l=0,u=0;l|=e<0&&c.writeByte(l)}});d.write(t,r);var A=0,h=String.fromCharCode(i[A]);for(A+=1;A=6;)o(e>>>t-6),t-=6},i.flush=function(){if(t>0&&(o(e<<6-t),e=0,t=0),n%3!=0)for(var i=3-n%3,a=0;a>6,128|63&r):r<55296||r>=57344?t.push(224|r>>12,128|r>>6&63,128|63&r):(n++,r=65536+((1023&r)<<10|1023&e.charCodeAt(n)),t.push(240|r>>18,128|r>>12&63,128|r>>6&63,128|63&r))}return t}(e)},void 0===(r="function"==typeof(n=function(){return i})?n.apply(t,[]):n)||(e.exports=r)},676:(e,t,n)=>{n.d(t,{default:()=>R});var r=function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]2||o&&a||s&&c)this._basicSquare({x:t,y:n,size:r,rotation:0});else{if(2===u){var l=0;return o&&s?l=Math.PI/2:s&&a?l=Math.PI:a&&c&&(l=-Math.PI/2),void this._basicCornerRounded({x:t,y:n,size:r,rotation:l})}if(1===u)return l=0,s?l=Math.PI/2:a?l=Math.PI:c&&(l=-Math.PI/2),void this._basicSideRounded({x:t,y:n,size:r,rotation:l})}else this._basicDot({x:t,y:n,size:r,rotation:0})},e.prototype._drawExtraRounded=function(e){var t=e.x,n=e.y,r=e.size,i=e.getNeighbor,o=i?+i(-1,0):0,a=i?+i(1,0):0,s=i?+i(0,-1):0,c=i?+i(0,1):0,u=o+a+s+c;if(0!==u)if(u>2||o&&a||s&&c)this._basicSquare({x:t,y:n,size:r,rotation:0});else{if(2===u){var l=0;return o&&s?l=Math.PI/2:s&&a?l=Math.PI:a&&c&&(l=-Math.PI/2),void this._basicCornerExtraRounded({x:t,y:n,size:r,rotation:l})}if(1===u)return l=0,s?l=Math.PI/2:a?l=Math.PI:c&&(l=-Math.PI/2),void this._basicSideRounded({x:t,y:n,size:r,rotation:l})}else this._basicDot({x:t,y:n,size:r,rotation:0})},e.prototype._drawClassy=function(e){var t=e.x,n=e.y,r=e.size,i=e.getNeighbor,o=i?+i(-1,0):0,a=i?+i(1,0):0,s=i?+i(0,-1):0,c=i?+i(0,1):0;0!==o+a+s+c?o||s?a||c?this._basicSquare({x:t,y:n,size:r,rotation:0}):this._basicCornerRounded({x:t,y:n,size:r,rotation:Math.PI/2}):this._basicCornerRounded({x:t,y:n,size:r,rotation:-Math.PI/2}):this._basicCornersRounded({x:t,y:n,size:r,rotation:Math.PI/2})},e.prototype._drawClassyRounded=function(e){var t=e.x,n=e.y,r=e.size,i=e.getNeighbor,o=i?+i(-1,0):0,a=i?+i(1,0):0,s=i?+i(0,-1):0,c=i?+i(0,1):0;0!==o+a+s+c?o||s?a||c?this._basicSquare({x:t,y:n,size:r,rotation:0}):this._basicCornerExtraRounded({x:t,y:n,size:r,rotation:Math.PI/2}):this._basicCornerExtraRounded({x:t,y:n,size:r,rotation:-Math.PI/2}):this._basicCornersRounded({x:t,y:n,size:r,rotation:Math.PI/2})},e}();var f=function(){return(f=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]r||i&&i=(t-o.hideXDots)/2&&e<(t+o.hideXDots)/2&&n>=(t-o.hideYDots)/2&&n<(t+o.hideYDots)/2||(null===(r=m[e])||void 0===r?void 0:r[n])||(null===(i=m[e-t+7])||void 0===i?void 0:i[n])||(null===(a=m[e])||void 0===a?void 0:a[n-t+7])||(null===(s=b[e])||void 0===s?void 0:s[n])||(null===(c=b[e-t+7])||void 0===c?void 0:c[n])||(null===(u=b[e])||void 0===u?void 0:u[n-t+7]))})),this.drawCorners(),this._options.image?[4,this.drawImage({width:o.width,height:o.height,count:t,dotSize:i})]:[3,4];case 3:A.sent(),A.label=4;case 4:return[2]}}))}))},e.prototype.drawBackground=function(){var e,t,n,r=this._element,i=this._options;if(r){var o=null===(e=i.backgroundOptions)||void 0===e?void 0:e.gradient,a=null===(t=i.backgroundOptions)||void 0===t?void 0:t.color;if((o||a)&&this._createColor({options:o,color:a,additionalRotation:0,x:0,y:0,height:i.height,width:i.width,name:"background-color"}),null===(n=i.backgroundOptions)||void 0===n?void 0:n.round){var s=Math.min(i.width,i.height),c=document.createElementNS("http://www.w3.org/2000/svg","rect");this._backgroundClipPath=document.createElementNS("http://www.w3.org/2000/svg","clipPath"),this._backgroundClipPath.setAttribute("id","clip-path-background-color"),this._defs.appendChild(this._backgroundClipPath),c.setAttribute("x",String((i.width-s)/2)),c.setAttribute("y",String((i.height-s)/2)),c.setAttribute("width",String(s)),c.setAttribute("height",String(s)),c.setAttribute("rx",String(s/2*i.backgroundOptions.round)),this._backgroundClipPath.appendChild(c)}}},e.prototype.drawDots=function(e){var t,n,r=this;if(!this._qr)throw"QR code is not defined";var i=this._options,o=this._qr.getModuleCount();if(o>i.width||o>i.height)throw"The canvas is too small.";var a=Math.min(i.width,i.height)-2*i.margin,s=i.shape===p?a/Math.sqrt(2):a,c=Math.floor(s/o),u=Math.floor((i.width-o*c)/2),f=Math.floor((i.height-o*c)/2),d=new l({svg:this._element,type:i.dotsOptions.type});this._dotsClipPath=document.createElementNS("http://www.w3.org/2000/svg","clipPath"),this._dotsClipPath.setAttribute("id","clip-path-dot-color"),this._defs.appendChild(this._dotsClipPath),this._createColor({options:null===(t=i.dotsOptions)||void 0===t?void 0:t.gradient,color:i.dotsOptions.color,additionalRotation:0,x:0,y:0,height:i.height,width:i.width,name:"dot-color"});for(var A=function(t){for(var i=function(i){return e&&!e(t,i)?"continue":(null===(n=h._qr)||void 0===n?void 0:n.isDark(t,i))?(d.draw(u+t*c,f+i*c,c,(function(n,a){return!(t+n<0||i+a<0||t+n>=o||i+a>=o)&&!(e&&!e(t+n,i+a))&&!!r._qr&&r._qr.isDark(t+n,i+a)})),void(d._element&&h._dotsClipPath&&h._dotsClipPath.appendChild(d._element))):"continue"},a=0;a=y-1&&g<=m-y&&I>=y-1&&I<=m-y||Math.sqrt((g-E)*(g-E)+(I-E)*(I-E))>E?w[g][I]=0:w[g][I]=this._qr.isDark(I-2*y<0?I:I>=o?I-2*y:I-y,g-2*y<0?g:g>=o?g-2*y:g-y)?1:0}var B=function(e){for(var t=function(t){if(!w[e][t])return"continue";d.draw(b+e*c,v+t*c,c,(function(n,r){var i;return!!(null===(i=w[e+n])||void 0===i?void 0:i[t+r])})),d._element&&C._dotsClipPath&&C._dotsClipPath.appendChild(d._element)},n=0;na?s:a,l=document.createElementNS("http://www.w3.org/2000/svg","rect");if(l.setAttribute("x",String(i)),l.setAttribute("y",String(o)),l.setAttribute("height",String(a)),l.setAttribute("width",String(s)),l.setAttribute("clip-path","url('#clip-path-"+c+"')"),t){var f;if("radial"===t.type)(f=document.createElementNS("http://www.w3.org/2000/svg","radialGradient")).setAttribute("id",c),f.setAttribute("gradientUnits","userSpaceOnUse"),f.setAttribute("fx",String(i+s/2)),f.setAttribute("fy",String(o+a/2)),f.setAttribute("cx",String(i+s/2)),f.setAttribute("cy",String(o+a/2)),f.setAttribute("r",String(u/2));else{var d=((t.rotation||0)+r)%(2*Math.PI),A=(d+2*Math.PI)%(2*Math.PI),h=i+s/2,p=o+a/2,g=i+s/2,y=o+a/2;A>=0&&A<=.25*Math.PI||A>1.75*Math.PI&&A<=2*Math.PI?(h-=s/2,p-=a/2*Math.tan(d),g+=s/2,y+=a/2*Math.tan(d)):A>.25*Math.PI&&A<=.75*Math.PI?(p-=a/2,h-=s/2/Math.tan(d),y+=a/2,g+=s/2/Math.tan(d)):A>.75*Math.PI&&A<=1.25*Math.PI?(h+=s/2,p+=a/2*Math.tan(d),g-=s/2,y-=a/2*Math.tan(d)):A>1.25*Math.PI&&A<=1.75*Math.PI&&(p+=a/2,h+=s/2/Math.tan(d),y-=a/2,g-=s/2/Math.tan(d)),(f=document.createElementNS("http://www.w3.org/2000/svg","linearGradient")).setAttribute("id",c),f.setAttribute("gradientUnits","userSpaceOnUse"),f.setAttribute("x1",String(Math.round(h))),f.setAttribute("y1",String(Math.round(p))),f.setAttribute("x2",String(Math.round(g))),f.setAttribute("y2",String(Math.round(y)))}t.colorStops.forEach((function(e){var t=e.offset,n=e.color,r=document.createElementNS("http://www.w3.org/2000/svg","stop");r.setAttribute("offset",100*t+"%"),r.setAttribute("stop-color",n),f.appendChild(r)})),l.setAttribute("fill","url('#"+c+"')"),this._defs.appendChild(f)}else n&&l.setAttribute("fill",n);this._element.appendChild(l)},e}(),w="canvas";for(var E={},I=0;I<=40;I++)E[I]=I;const B={type:w,shape:"square",width:300,height:300,data:"",margin:0,qrOptions:{typeNumber:E[0],mode:void 0,errorCorrectionLevel:"Q"},imageOptions:{hideBackgroundDots:!0,imageSize:.4,crossOrigin:void 0,margin:0},dotsOptions:{type:"square",color:"#000"},backgroundOptions:{round:0,color:"#fff"}};var C=function(){return(C=Object.assign||function(e){for(var t,n=1,r=arguments.length;nMath.min(t.width,t.height)&&(t.margin=Math.min(t.width,t.height)),t.dotsOptions=C({},t.dotsOptions),t.dotsOptions.gradient&&(t.dotsOptions.gradient=_(t.dotsOptions.gradient)),t.cornersSquareOptions&&(t.cornersSquareOptions=C({},t.cornersSquareOptions),t.cornersSquareOptions.gradient&&(t.cornersSquareOptions.gradient=_(t.cornersSquareOptions.gradient))),t.cornersDotOptions&&(t.cornersDotOptions=C({},t.cornersDotOptions),t.cornersDotOptions.gradient&&(t.cornersDotOptions.gradient=_(t.cornersDotOptions.gradient))),t.backgroundOptions&&(t.backgroundOptions=C({},t.backgroundOptions),t.backgroundOptions.gradient&&(t.backgroundOptions.gradient=_(t.backgroundOptions.gradient))),t}var Q=n(192),k=n.n(Q),M=function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{c(r.next(e))}catch(e){o(e)}}function s(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((r=r.apply(e,t||[])).next())}))},x=function(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!((i=(i=a.trys).length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]\r\n'+r],{type:"image/svg+xml"})]):[2,new Promise((function(n){return t.toBlob(n,"image/"+e,1)}))]:[2,null]}}))}))},e.prototype.download=function(e){return M(this,void 0,void 0,(function(){var t,n,r,i,o;return x(this,(function(s){switch(s.label){case 0:if(!this._qr)throw"QR code is empty";return t="png",n="qr","string"==typeof e?(t=e,console.warn("Extension is deprecated as argument for 'download' method, please pass object { name: '...', extension: '...' } as argument")):"object"==typeof e&&null!==e&&(e.name&&(n=e.name),e.extension&&(t=e.extension)),[4,this._getElement(t)];case 1:return(r=s.sent())?("svg"===t.toLowerCase()?(i=new XMLSerializer,o='\r\n'+(o=i.serializeToString(r)),a("data:image/svg+xml;charset=utf-8,"+encodeURIComponent(o),n+".svg")):a(r.toDataURL("image/"+t),n+"."+t),[2]):[2]}}))}))},e}()}},t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={exports:{}};return e[r](i,i.exports,n),i.exports}return n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n(676)})().default}(XQ)),XQ.exports}!function(e,t){!function(e){var t,n,i={exports:{}},o={},a={exports:{}};"production"===R.env.NODE_ENV?i.exports=function(){if(t)return o;t=1;var e=Symbol.for("react.element"),n=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),c=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),l=Symbol.for("react.suspense"),f=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),A=Symbol.iterator,h={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},p=Object.assign,g={};function y(e,t,n){this.props=e,this.context=t,this.refs=g,this.updater=n||h}function m(){}function b(e,t,n){this.props=e,this.context=t,this.refs=g,this.updater=n||h}y.prototype.isReactComponent={},y.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)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")},y.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},m.prototype=y.prototype;var v=b.prototype=new m;v.constructor=b,p(v,y.prototype),v.isPureReactComponent=!0;var w=Array.isArray,E=Object.prototype.hasOwnProperty,I={current:null},B={key:!0,ref:!0,__self:!0,__source:!0};function C(t,n,r){var i,o={},a=null,s=null;if(null!=n)for(i in void 0!==n.ref&&(s=n.ref),void 0!==n.key&&(a=""+n.key),n)E.call(n,i)&&!B.hasOwnProperty(i)&&(o[i]=n[i]);var c=arguments.length-2;if(1===c)o.children=r;else if(11?t-1:0),r=1;r1?t-1:0),r=1;r1){for(var l=Array(u),f=0;f1){for(var d=Array(f),A=0;A import('./MyComponent'))\n\nDid you accidentally put curly braces around the import?",r),"default"in r||R("lazy: Expected the result of a dynamic import() call. Instead received: %s\n\nYour code should look like: \n const MyComponent = lazy(() => import('./MyComponent'))",r),r.default}throw e._result}function be(e){return"string"==typeof e||"function"==typeof e||!!(e===i||e===a||k||e===o||e===l||e===f||Q||e===h||C||_||S)||"object"==typeof e&&null!==e&&(e.$$typeof===A||e.$$typeof===d||e.$$typeof===s||e.$$typeof===c||e.$$typeof===u||e.$$typeof===ye||void 0!==e.getModuleId)}function ve(){var e=m.current;return null===e&&R("Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:\n1. You might have mismatching versions of React and the renderer (such as React DOM)\n2. You might be breaking the Rules of Hooks\n3. You might have more than one copy of React in the same app\nSee https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem."),e}ye=Symbol.for("react.module.reference");var we,Ee,Ie,Be,Ce,_e,Se,Qe=0;function ke(){}ke.__reactDisabledLog=!0;var Me,xe=M.ReactCurrentDispatcher;function Re(e,t,n){if(void 0===Me)try{throw Error()}catch(e){var r=e.stack.trim().match(/\n( *(at )?)/);Me=r&&r[1]||""}return"\n"+Me+e}var De,Te=!1,Ne="function"==typeof WeakMap?WeakMap:Map;function Oe(e,t){if(!e||Te)return"";var n,r=De.get(e);if(void 0!==r)return r;Te=!0;var i,o=Error.prepareStackTrace;Error.prepareStackTrace=void 0,i=xe.current,xe.current=null,function(){if(0===Qe){we=console.log,Ee=console.info,Ie=console.warn,Be=console.error,Ce=console.group,_e=console.groupCollapsed,Se=console.groupEnd;var e={configurable:!0,enumerable:!0,value:ke,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}Qe++}();try{if(t){var a=function(){throw Error()};if(Object.defineProperty(a.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(a,[])}catch(e){n=e}Reflect.construct(e,[],a)}else{try{a.call()}catch(e){n=e}e.call(a.prototype)}}else{try{throw Error()}catch(e){n=e}e()}}catch(t){if(t&&n&&"string"==typeof t.stack){for(var s=t.stack.split("\n"),c=n.stack.split("\n"),u=s.length-1,l=c.length-1;u>=1&&l>=0&&s[u]!==c[l];)l--;for(;u>=1&&l>=0;u--,l--)if(s[u]!==c[l]){if(1!==u||1!==l)do{if(u--,--l<0||s[u]!==c[l]){var f="\n"+s[u].replace(" at new "," at ");return e.displayName&&f.includes("")&&(f=f.replace("",e.displayName)),"function"==typeof e&&De.set(e,f),f}}while(u>=1&&l>=0);break}}}finally{Te=!1,xe.current=i,function(){if(0==--Qe){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:L({},e,{value:we}),info:L({},e,{value:Ee}),warn:L({},e,{value:Ie}),error:L({},e,{value:Be}),group:L({},e,{value:Ce}),groupCollapsed:L({},e,{value:_e}),groupEnd:L({},e,{value:Se})})}Qe<0&&R("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}(),Error.prepareStackTrace=o}var d=e?e.displayName||e.name:"",A=d?Re(d):"";return"function"==typeof e&&De.set(e,A),A}function Le(e,t,n){if(null==e)return"";if("function"==typeof e)return Oe(e,function(e){var t=e.prototype;return!(!t||!t.isReactComponent)}(e));if("string"==typeof e)return Re(e);switch(e){case l:return Re("Suspense");case f:return Re("SuspenseList")}if("object"==typeof e)switch(e.$$typeof){case u:return Oe(e.render,!1);case d:return Le(e.type,t,n);case A:var r=e,i=r._payload,o=r._init;try{return Le(o(i),t,n)}catch(e){}}return""}De=new Ne;var Pe,Ue={},Fe=M.ReactDebugCurrentFrame;function je(e){if(e){var t=e._owner,n=Le(e.type,e._source,t?t.type:null);Fe.setExtraStackFrame(n)}else Fe.setExtraStackFrame(null)}function qe(e){if(e){var t=e._owner;B(Le(e.type,e._source,t?t.type:null))}else B(null)}function Ge(){if(w.current){var e=Z(w.current.type);if(e)return"\n\nCheck the render method of `"+e+"`."}return""}Pe=!1;var He={};function Ye(e,t){if(e._store&&!e._store.validated&&null==e.key){e._store.validated=!0;var n=function(e){var t=Ge();if(!t){var n="string"==typeof e?e:e.displayName||e.name;n&&(t="\n\nCheck the top-level render call using <"+n+">.")}return t}(t);if(!He[n]){He[n]=!0;var r="";e&&e._owner&&e._owner!==w.current&&(r=" It was passed a child from "+Z(e._owner.type)+"."),qe(e),R('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',n,r),qe(null)}}}function Ke(e,t){if("object"==typeof e)if(z(e))for(var n=0;n",u=" Did you accidentally export a JSX literal instead of a component?"):c=typeof e,R("React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",c,u)}var l=ae.apply(this,arguments);if(null==l)return l;if(s)for(var f=2;f ...) will fail. Please file an issue at https://github.com/facebook/react/issues if you encounter this warning."));var t=new MessageChannel;t.port1.onmessage=e,t.port2.postMessage(void 0)}}Ze(t)}((function(){0===i.length?(v.current=null,n(t)):tt(t,n,r)}))}catch(e){r(e)}else n(t)}var nt=!1;function rt(e){if(!nt){nt=!0;var t=0;try{for(;t is not supported and will be removed in a future major release. Did you mean to render instead?")),t.Provider},set:function(e){t.Provider=e}},_currentValue:{get:function(){return t._currentValue},set:function(e){t._currentValue=e}},_currentValue2:{get:function(){return t._currentValue2},set:function(e){t._currentValue2=e}},_threadCount:{get:function(){return t._threadCount},set:function(e){t._threadCount=e}},Consumer:{get:function(){return n||(n=!0,R("Rendering is not supported and will be removed in a future major release. Did you mean to render instead?")),t.Consumer}},displayName:{get:function(){return t.displayName},set:function(e){i||(x("Setting `displayName` on Context.Consumer has no effect. You should set it directly on the context with Context.displayName = '%s'.",e),i=!0)}}}),t.Consumer=o,t._currentRenderer=null,t._currentRenderer2=null,t},t.createElement=it,t.createFactory=function(e){var t=Ve.bind(null,e);return t.type=e,Je||(Je=!0,x("React.createFactory() is deprecated and will be removed in a future major release. Consider using JSX or use React.createElement() directly instead.")),Object.defineProperty(t,"type",{enumerable:!1,get:function(){return x("Factory.type is deprecated. Access the class directly before passing it to createFactory."),Object.defineProperty(this,"type",{value:e}),e}}),t},t.createRef=function(){var e={current:null};return Object.seal(e),e},t.forwardRef=function(e){null!=e&&e.$$typeof===d?R("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."):"function"!=typeof e?R("forwardRef requires a render function but was given %s.",null===e?"null":typeof e):0!==e.length&&2!==e.length&&R("forwardRef render functions accept exactly two parameters: props and ref. %s",1===e.length?"Did you forget to use the ref parameter?":"Any additional parameter will be undefined."),null!=e&&(null==e.defaultProps&&null==e.propTypes||R("forwardRef render functions do not support propTypes or defaultProps. Did you accidentally pass a React component?"));var t,n={$$typeof:u,render:e};return Object.defineProperty(n,"displayName",{enumerable:!1,configurable:!0,get:function(){return t},set:function(n){t=n,e.name||e.displayName||(e.displayName=n)}}),n},t.isValidElement=ce,t.lazy=function(e){var t,n,r={$$typeof:A,_payload:{_status:-1,_result:e},_init:me};return Object.defineProperties(r,{defaultProps:{configurable:!0,get:function(){return t},set:function(e){R("React.lazy(...): It is not supported to assign `defaultProps` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it."),t=e,Object.defineProperty(r,"defaultProps",{enumerable:!0})}},propTypes:{configurable:!0,get:function(){return n},set:function(e){R("React.lazy(...): It is not supported to assign `propTypes` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it."),n=e,Object.defineProperty(r,"propTypes",{enumerable:!0})}}}),r},t.memo=function(e,t){be(e)||R("memo: The first argument must be a component. Instead received: %s",null===e?"null":typeof e);var n,r={$$typeof:d,type:e,compare:void 0===t?null:t};return Object.defineProperty(r,"displayName",{enumerable:!1,configurable:!0,get:function(){return n},set:function(t){n=t,e.name||e.displayName||(e.displayName=t)}}),r},t.startTransition=function(e,t){var n=b.transition;b.transition={};var r=b.transition;b.transition._updatedFibers=new Set;try{e()}finally{b.transition=n,null===n&&r._updatedFibers&&(r._updatedFibers.size>10&&x("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table."),r._updatedFibers.clear())}},t.unstable_act=function(e){var t=$e;$e++,null===v.current&&(v.current=[]);var n,r=v.isBatchingLegacy;try{if(v.isBatchingLegacy=!0,n=e(),!r&&v.didScheduleLegacyUpdate){var i=v.current;null!==i&&(v.didScheduleLegacyUpdate=!1,rt(i))}}catch(e){throw et(t),e}finally{v.isBatchingLegacy=r}if(null!==n&&"object"==typeof n&&"function"==typeof n.then){var o=n,a=!1,s={then:function(e,n){a=!0,o.then((function(r){et(t),0===$e?tt(r,e,n):e(r)}),(function(e){et(t),n(e)}))}};return Xe||"undefined"==typeof Promise||Promise.resolve().then((function(){})).then((function(){a||(Xe=!0,R("You called act(async () => ...) without await. This could lead to unexpected testing behaviour, interleaving multiple act calls and mixing their scopes. You should - await act(async () => ...);"))})),s}var c=n;if(et(t),0===$e){var u=v.current;return null!==u&&(rt(u),v.current=null),{then:function(e,t){null===v.current?(v.current=[],tt(c,e,t)):e(c)}}}return{then:function(e,t){e(c)}}},t.useCallback=function(e,t){return ve().useCallback(e,t)},t.useContext=function(e){var t=ve();if(void 0!==e._context){var n=e._context;n.Consumer===e?R("Calling useContext(Context.Consumer) is not supported, may cause bugs, and will be removed in a future major release. Did you mean to call useContext(Context) instead?"):n.Provider===e&&R("Calling useContext(Context.Provider) is not supported. Did you mean to call useContext(Context) instead?")}return t.useContext(e)},t.useDebugValue=function(e,t){return ve().useDebugValue(e,t)},t.useDeferredValue=function(e){return ve().useDeferredValue(e)},t.useEffect=function(e,t){return ve().useEffect(e,t)},t.useId=function(){return ve().useId()},t.useImperativeHandle=function(e,t,n){return ve().useImperativeHandle(e,t,n)},t.useInsertionEffect=function(e,t){return ve().useInsertionEffect(e,t)},t.useLayoutEffect=function(e,t){return ve().useLayoutEffect(e,t)},t.useMemo=function(e,t){return ve().useMemo(e,t)},t.useReducer=function(e,t,n){return ve().useReducer(e,t,n)},t.useRef=function(e){return ve().useRef(e)},t.useState=function(e){return ve().useState(e)},t.useSyncExternalStore=function(e,t,n){return ve().useSyncExternalStore(e,t,n)},t.useTransition=function(){return ve().useTransition()},t.version="18.2.0","undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error)}()}(a,a.exports)),a.exports);var s,c,u,l,f=i.exports,d=function(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}(f),A=function(e,t){return t.forEach((function(t){t&&"string"!=typeof t&&!Array.isArray(t)&&Object.keys(t).forEach((function(n){if("default"!==n&&!(n in e)){var r=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(e,n,r.get?r:{enumerable:!0,get:function(){return t[n]}})}}))})),Object.freeze(e)}({__proto__:null,default:d},[f]),h={exports:{}},p={},g={exports:{}},y={},m={};function b(){return u||(u=1,"production"===R.env.NODE_ENV?g.exports=(s||(s=1,function(e){function t(e,t){var n=e.length;e.push(t);e:for(;0>>1,o=e[r];if(!(0>>1;ri(c,n))ui(l,c)?(e[r]=l,e[u]=n,r=u):(e[r]=c,e[s]=n,r=s);else{if(!(ui(l,n)))break e;e[r]=l,e[u]=n,r=u}}}return t}function i(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}if("object"==typeof performance&&"function"==typeof performance.now){var o=performance;e.unstable_now=function(){return o.now()}}else{var a=Date,s=a.now();e.unstable_now=function(){return a.now()-s}}var c=[],u=[],l=1,f=null,d=3,A=!1,h=!1,p=!1,g="function"==typeof setTimeout?setTimeout:null,y="function"==typeof clearTimeout?clearTimeout:null,m="undefined"!=typeof setImmediate?setImmediate:null;function b(e){for(var i=n(u);null!==i;){if(null===i.callback)r(u);else{if(!(i.startTime<=e))break;r(u),i.sortIndex=i.expirationTime,t(c,i)}i=n(u)}}function v(e){if(p=!1,b(e),!h)if(null!==n(c))h=!0,R(w);else{var t=n(u);null!==t&&D(v,t.startTime-e)}}function w(t,i){h=!1,p&&(p=!1,y(C),C=-1),A=!0;var o=d;try{for(b(i),f=n(c);null!==f&&(!(f.expirationTime>i)||t&&!Q());){var a=f.callback;if("function"==typeof a){f.callback=null,d=f.priorityLevel;var s=a(f.expirationTime<=i);i=e.unstable_now(),"function"==typeof s?f.callback=s:f===n(c)&&r(c),b(i)}else r(c);f=n(c)}if(null!==f)var l=!0;else{var g=n(u);null!==g&&D(v,g.startTime-i),l=!1}return l}finally{f=null,d=o,A=!1}}"undefined"!=typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);var E,I=!1,B=null,C=-1,_=5,S=-1;function Q(){return!(e.unstable_now()-S<_)}function k(){if(null!==B){var t=e.unstable_now();S=t;var n=!0;try{n=B(!0,t)}finally{n?E():(I=!1,B=null)}}else I=!1}if("function"==typeof m)E=function(){m(k)};else if("undefined"!=typeof MessageChannel){var M=new MessageChannel,x=M.port2;M.port1.onmessage=k,E=function(){x.postMessage(null)}}else E=function(){g(k,0)};function R(e){B=e,I||(I=!0,E())}function D(t,n){C=g((function(){t(e.unstable_now())}),n)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(e){e.callback=null},e.unstable_continueExecution=function(){h||A||(h=!0,R(w))},e.unstable_forceFrameRate=function(e){0>e||125a?(r.sortIndex=o,t(u,r),null===n(c)&&r===n(u)&&(p?(y(C),C=-1):p=!0,D(v,o-a))):(r.sortIndex=s,t(c,r),h||A||(h=!0,R(w))),r},e.unstable_shouldYield=Q,e.unstable_wrapCallback=function(e){var t=d;return function(){var n=d;d=t;try{return e.apply(this,arguments)}finally{d=n}}}}(y)),y):g.exports=(c||(c=1,function(e){"production"!==R.env.NODE_ENV&&function(){"undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error);var t=!1,n=!1;function r(e,t){var n=e.length;e.push(t),function(e,t,n){for(var r=n;r>0;){var i=r-1>>>1,o=e[i];if(!(a(o,t)>0))return;e[i]=t,e[r]=o,r=i}}(e,t,n)}function i(e){return 0===e.length?null:e[0]}function o(e){if(0===e.length)return null;var t=e[0],n=e.pop();return n!==t&&(e[0]=n,function(e,t,n){for(var r=0,i=e.length,o=i>>>1;ra)||n&&!k());){var s=A.callback;if("function"==typeof s){A.callback=null,h=A.priorityLevel;var c=s(A.expirationTime<=a);a=e.unstable_now(),"function"==typeof c?A.callback=c:A===i(l)&&o(l),w(a)}else o(l);A=i(l)}if(null!==A)return!0;var u=i(f);return null!==u&&N(E,u.startTime-a),!1}(r,a)}finally{A=null,h=s,p=!1}}"undefined"!=typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);var B=!1,C=null,_=-1,S=5,Q=-1;function k(){return!(e.unstable_now()-Q125?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):S=e>0?Math.floor(1e3/e):5},e.unstable_getCurrentPriorityLevel=function(){return h},e.unstable_getFirstCallbackNode=function(){return i(l)},e.unstable_next=function(e){var t;switch(h){case 1:case 2:case 3:t=3;break;default:t=h}var n=h;h=t;try{return e()}finally{h=n}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=h;h=e;try{return t()}finally{h=n}},e.unstable_scheduleCallback=function(t,n,o){var a,s,c=e.unstable_now();if("object"==typeof o&&null!==o){var u=o.delay;a="number"==typeof u&&u>0?c+u:c}else a=c;switch(t){case 1:s=-1;break;case 2:s=250;break;case 5:s=1073741823;break;case 4:s=1e4;break;default:s=5e3}var A=a+s,h={id:d++,callback:n,priorityLevel:t,startTime:a,expirationTime:A,sortIndex:-1};return a>c?(h.sortIndex=a,r(f,h),null===i(l)&&h===i(f)&&(y?O():y=!0,N(E,a-c))):(h.sortIndex=A,r(l,h),g||p||(g=!0,T(I))),h},e.unstable_shouldYield=k,e.unstable_wrapCallback=function(e){var t=h;return function(){var n=h;h=t;try{return e.apply(this,arguments)}finally{h=n}}},"undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error)}()}(m)),m)),g.exports}var v,w={};"production"===R.env.NODE_ENV?(function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE){if("production"!==R.env.NODE_ENV)throw new Error("^_^");try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}}(),h.exports=function(){if(l)return p;l=1;var e=f,t=b();function n(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n",t=le.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}},"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,t,n,r){MSApp.execUnsafeLocalFunction((function(){return fe(e,t)}))}:fe);function Ae(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}var he={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},pe=["Webkit","ms","Moz","O"];function ge(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||he.hasOwnProperty(e)&&he[e]?(""+t).trim():t+"px"}function ye(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),i=ge(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}Object.keys(he).forEach((function(e){pe.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),he[t]=he[e]}))}));var me=P({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 be(e,t){if(t){if(me[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(n(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(n(60));if("object"!=typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(n(61))}if(null!=t.style&&"object"!=typeof t.style)throw Error(n(62))}}function ve(e,t){if(-1===e.indexOf("-"))return"string"==typeof t.is;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 we=null;function Ee(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var Ie=null,Be=null,Ce=null;function _e(e){if(e=yi(e)){if("function"!=typeof Ie)throw Error(n(280));var t=e.stateNode;t&&(t=bi(t),Ie(e.stateNode,e.type,t))}}function Se(e){Be?Ce?Ce.push(e):Ce=[e]:Be=e}function Qe(){if(Be){var e=Be,t=Ce;if(Ce=Be=null,_e(e),t)for(e=0;e>>=0)?32:31-(ct(e)/ut|0)|0},ct=Math.log,ut=Math.LN2,lt=64,ft=4194304;function dt(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 4194240&e;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return 130023424&e;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function At(e,t){var n=e.pendingLanes;if(0===n)return 0;var r=0,i=e.suspendedLanes,o=e.pingedLanes,a=268435455&n;if(0!==a){var s=a&~i;0!==s?r=dt(s):0!=(o&=a)&&(r=dt(o))}else 0!=(a=n&~i)?r=dt(a):0!==o&&(r=dt(o));if(0===r)return 0;if(0!==t&&t!==r&&!(t&i)&&((i=r&-r)>=(o=t&-t)||16===i&&4194240&o))return t;if(!!(4&r)&&(r|=16&n),0!==(t=e.entangledLanes))for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function mt(e,t,n){e.pendingLanes|=t,536870912!==t&&(e.suspendedLanes=0,e.pingedLanes=0),(e=e.eventTimes)[t=31-st(t)]=n}function bt(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-st(n),i=1<=Dn),On=String.fromCharCode(32),Ln=!1;function Pn(e,t){switch(e){case"keyup":return-1!==xn.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Un(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var Fn=!1,jn={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 qn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!jn[e.type]:"textarea"===t}function Gn(e,t,n,r){Se(r),0<(t=Hr(t,"onChange")).length&&(n=new fn("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Hn=null,Yn=null;function Kn(e){Or(e,0)}function zn(e){if(V(mi(e)))return e}function Vn(e,t){if("change"===e)return t}var Jn=!1;if(s){var Wn;if(s){var Zn="oninput"in document;if(!Zn){var $n=document.createElement("div");$n.setAttribute("oninput","return;"),Zn="function"==typeof $n.oninput}Wn=Zn}else Wn=!1;Jn=Wn&&(!document.documentMode||9=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=sr(r)}}function ur(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?ur(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function lr(){for(var e=window,t=J();t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch(e){n=!1}if(!n)break;t=J((e=t.contentWindow).document)}return t}function fr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}function dr(e){var t=lr(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&ur(n.ownerDocument.documentElement,n)){if(null!==r&&fr(n))if(t=r.start,void 0===(e=r.end)&&(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).getSelection){e=e.getSelection();var i=n.textContent.length,o=Math.min(r.start,i);r=void 0===r.end?o:Math.min(r.end,i),!e.extend&&o>r&&(i=r,r=o,o=i),i=cr(n,o);var a=cr(n,r);i&&a&&(1!==e.rangeCount||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&((t=t.createRange()).setStart(i.node,i.offset),e.removeAllRanges(),o>r?(e.addRange(t),e.extend(a.node,a.offset)):(t.setEnd(a.node,a.offset),e.addRange(t)))}for(t=[],e=n;e=e.parentNode;)1===e.nodeType&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for("function"==typeof n.focus&&n.focus(),n=0;n=document.documentMode,hr=null,pr=null,gr=null,yr=!1;function mr(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;yr||null==hr||hr!==J(r)||(r="selectionStart"in(r=hr)&&fr(r)?{start:r.selectionStart,end:r.selectionEnd}:{anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},gr&&ar(gr,r)||(gr=r,0<(r=Hr(pr,"onSelect")).length&&(t=new fn("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=hr)))}function br(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var vr={animationend:br("Animation","AnimationEnd"),animationiteration:br("Animation","AnimationIteration"),animationstart:br("Animation","AnimationStart"),transitionend:br("Transition","TransitionEnd")},wr={},Er={};function Ir(e){if(wr[e])return wr[e];if(!vr[e])return e;var t,n=vr[e];for(t in n)if(n.hasOwnProperty(t)&&t in Er)return wr[e]=n[t];return e}s&&(Er=document.createElement("div").style,"AnimationEvent"in window||(delete vr.animationend.animation,delete vr.animationiteration.animation,delete vr.animationstart.animation),"TransitionEvent"in window||delete vr.transitionend.transition);var Br=Ir("animationend"),Cr=Ir("animationiteration"),_r=Ir("animationstart"),Sr=Ir("transitionend"),Qr=new Map,kr="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 Mr(e,t){Qr.set(e,t),o(t,[e])}for(var xr=0;xrwi||(e.current=vi[wi],vi[wi]=null,wi--)}function Bi(e,t){wi++,vi[wi]=e.current,e.current=t}var Ci={},_i=Ei(Ci),Si=Ei(!1),Qi=Ci;function ki(e,t){var n=e.type.contextTypes;if(!n)return Ci;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i,o={};for(i in n)o[i]=t[i];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function Mi(e){return null!=e.childContextTypes}function xi(){Ii(Si),Ii(_i)}function Ri(e,t,r){if(_i.current!==Ci)throw Error(n(168));Bi(_i,t),Bi(Si,r)}function Di(e,t,r){var i=e.stateNode;if(t=t.childContextTypes,"function"!=typeof i.getChildContext)return r;for(var o in i=i.getChildContext())if(!(o in t))throw Error(n(108,H(e)||"Unknown",o));return P({},r,i)}function Ti(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Ci,Qi=_i.current,Bi(_i,e),Bi(Si,Si.current),!0}function Ni(e,t,r){var i=e.stateNode;if(!i)throw Error(n(169));r?(e=Di(e,t,Qi),i.__reactInternalMemoizedMergedChildContext=e,Ii(Si),Ii(_i),Bi(_i,e)):Ii(Si),Bi(Si,r)}var Oi=null,Li=!1,Pi=!1;function Ui(e){null===Oi?Oi=[e]:Oi.push(e)}function Fi(){if(!Pi&&null!==Oi){Pi=!0;var e=0,t=vt;try{var n=Oi;for(vt=1;e>=a,i-=a,Vi=1<<32-st(t)+i|n<p?(g=f,f=null):g=f.sibling;var y=A(n,f,s[p],c);if(null===y){null===f&&(f=g);break}e&&f&&null===y.alternate&&t(n,f),o=a(y,o,p),null===l?u=y:l.sibling=y,l=y,f=g}if(p===s.length)return r(n,f),no&&Wi(n,p),u;if(null===f){for(;pg?(y=p,p=null):y=p.sibling;var b=A(o,p,m.value,u);if(null===b){null===p&&(p=y);break}e&&p&&null===b.alternate&&t(o,p),s=a(b,s,g),null===f?l=b:f.sibling=b,f=b,p=y}if(m.done)return r(o,p),no&&Wi(o,g),l;if(null===p){for(;!m.done;g++,m=c.next())null!==(m=d(o,m.value,u))&&(s=a(m,s,g),null===f?l=m:f.sibling=m,f=m);return no&&Wi(o,g),l}for(p=i(o,p);!m.done;g++,m=c.next())null!==(m=h(p,o,g,m.value,u))&&(e&&null!==m.alternate&&p.delete(null===m.key?g:m.key),s=a(m,s,g),null===f?l=m:f.sibling=m,f=m);return e&&p.forEach((function(e){return t(o,e)})),no&&Wi(o,g),l}return function e(n,i,a,c){if("object"==typeof a&&null!==a&&a.type===B&&null===a.key&&(a=a.props.children),"object"==typeof a&&null!==a){switch(a.$$typeof){case E:e:{for(var u=a.key,l=i;null!==l;){if(l.key===u){if((u=a.type)===B){if(7===l.tag){r(n,l.sibling),(i=o(l,a.props.children)).return=n,n=i;break e}}else if(l.elementType===u||"object"==typeof u&&null!==u&&u.$$typeof===D&&zo(u)===l.type){r(n,l.sibling),(i=o(l,a.props)).ref=Yo(n,l,a),i.return=n,n=i;break e}r(n,l);break}t(n,l),l=l.sibling}a.type===B?((i=Tu(a.props.children,n.mode,c,a.key)).return=n,n=i):((c=Du(a.type,a.key,a.props,null,n.mode,c)).ref=Yo(n,i,a),c.return=n,n=c)}return s(n);case I:e:{for(l=a.key;null!==i;){if(i.key===l){if(4===i.tag&&i.stateNode.containerInfo===a.containerInfo&&i.stateNode.implementation===a.implementation){r(n,i.sibling),(i=o(i,a.children||[])).return=n,n=i;break e}r(n,i);break}t(n,i),i=i.sibling}(i=Lu(a,n.mode,c)).return=n,n=i}return s(n);case D:return e(n,i,(l=a._init)(a._payload),c)}if(ne(a))return p(n,i,a,c);if(O(a))return g(n,i,a,c);Ko(n,a)}return"string"==typeof a&&""!==a||"number"==typeof a?(a=""+a,null!==i&&6===i.tag?(r(n,i.sibling),(i=o(i,a)).return=n,n=i):(r(n,i),(i=Ou(a,n.mode,c)).return=n,n=i),s(n)):r(n,i)}}var Jo=Vo(!0),Wo=Vo(!1),Zo={},$o=Ei(Zo),Xo=Ei(Zo),ea=Ei(Zo);function ta(e){if(e===Zo)throw Error(n(174));return e}function na(e,t){switch(Bi(ea,t),Bi(Xo,e),Bi($o,Zo),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:ue(null,"");break;default:t=ue(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}Ii($o),Bi($o,t)}function ra(){Ii($o),Ii(Xo),Ii(ea)}function ia(e){ta(ea.current);var t=ta($o.current),n=ue(t,e.type);t!==n&&(Bi(Xo,e),Bi($o,n))}function oa(e){Xo.current===e&&(Ii($o),Ii(Xo))}var aa=Ei(0);function sa(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(128&t.flags)return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var ca=[];function ua(){for(var e=0;en?n:4,e(!0);var r=fa.transition;fa.transition={};try{e(!1),t()}finally{vt=n,fa.transition=r}}function $a(){return Ca().memoizedState}function Xa(e,t,n){var r=eu(e);n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},ts(e)?ns(t,n):null!==(n=So(e,t,n,r))&&(tu(n,e,r,Xc()),rs(n,t,r))}function es(e,t,n){var r=eu(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(ts(e))ns(t,i);else{var o=e.alternate;if(0===e.lanes&&(null===o||0===o.lanes)&&null!==(o=t.lastRenderedReducer))try{var a=t.lastRenderedState,s=o(a,n);if(i.hasEagerState=!0,i.eagerState=s,or(s,a)){var c=t.interleaved;return null===c?(i.next=i,_o(t)):(i.next=c.next,c.next=i),void(t.interleaved=i)}}catch(e){}null!==(n=So(e,t,i,r))&&(tu(n,e,r,i=Xc()),rs(n,t,r))}}function ts(e){var t=e.alternate;return e===Aa||null!==t&&t===Aa}function ns(e,t){ya=ga=!0;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function rs(e,t,n){if(4194240&n){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,bt(e,n)}}var is={readContext:Bo,useCallback:va,useContext:va,useEffect:va,useImperativeHandle:va,useInsertionEffect:va,useLayoutEffect:va,useMemo:va,useReducer:va,useRef:va,useState:va,useDebugValue:va,useDeferredValue:va,useTransition:va,useMutableSource:va,useSyncExternalStore:va,useId:va,unstable_isNewReconciler:!1},os={readContext:Bo,useCallback:function(e,t){return Ba().memoizedState=[e,void 0===t?null:t],e},useContext:Bo,useEffect:ja,useImperativeHandle:function(e,t,n){return n=null!=n?n.concat([e]):null,Ua(4194308,4,Ya.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Ua(4194308,4,e,t)},useInsertionEffect:function(e,t){return Ua(4,2,e,t)},useMemo:function(e,t){var n=Ba();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Ba();return t=void 0!==n?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=Xa.bind(null,Aa,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},Ba().memoizedState=e},useState:Oa,useDebugValue:za,useDeferredValue:function(e){return Ba().memoizedState=e},useTransition:function(){var e=Oa(!1),t=e[0];return e=Za.bind(null,e[1]),Ba().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,r){var i=Aa,o=Ba();if(no){if(void 0===r)throw Error(n(407));r=r()}else{if(r=t(),null===Qc)throw Error(n(349));30&da||xa(i,t,r)}o.memoizedState=r;var a={value:r,getSnapshot:t};return o.queue=a,ja(Da.bind(null,i,a,e),[e]),i.flags|=2048,La(9,Ra.bind(null,i,a,r,t),void 0,null),r},useId:function(){var e=Ba(),t=Qc.identifierPrefix;if(no){var n=Ji;t=":"+t+"R"+(n=(Vi&~(1<<32-st(Vi)-1)).toString(32)+n),0<(n=ma++)&&(t+="H"+n.toString(32)),t+=":"}else t=":"+t+"r"+(n=ba++).toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},as={readContext:Bo,useCallback:Va,useContext:Bo,useEffect:qa,useImperativeHandle:Ka,useInsertionEffect:Ga,useLayoutEffect:Ha,useMemo:Ja,useReducer:Sa,useRef:Pa,useState:function(){return Sa(_a)},useDebugValue:za,useDeferredValue:function(e){return Wa(Ca(),ha.memoizedState,e)},useTransition:function(){return[Sa(_a)[0],Ca().memoizedState]},useMutableSource:ka,useSyncExternalStore:Ma,useId:$a,unstable_isNewReconciler:!1},ss={readContext:Bo,useCallback:Va,useContext:Bo,useEffect:qa,useImperativeHandle:Ka,useInsertionEffect:Ga,useLayoutEffect:Ha,useMemo:Ja,useReducer:Qa,useRef:Pa,useState:function(){return Qa(_a)},useDebugValue:za,useDeferredValue:function(e){var t=Ca();return null===ha?t.memoizedState=e:Wa(t,ha.memoizedState,e)},useTransition:function(){return[Qa(_a)[0],Ca().memoizedState]},useMutableSource:ka,useSyncExternalStore:Ma,useId:$a,unstable_isNewReconciler:!1};function cs(e,t){try{var n="",r=t;do{n+=q(r),r=r.return}while(r);var i=n}catch(e){i="\nError generating stack: "+e.message+"\n"+e.stack}return{value:e,source:t,stack:i,digest:null}}function us(e,t,n){return{value:e,source:null,stack:null!=n?n:null,digest:null!=t?t:null}}function ls(e,t){try{console.error(t.value)}catch(e){setTimeout((function(){throw e}))}}var fs="function"==typeof WeakMap?WeakMap:Map;function ds(e,t,n){(n=Ro(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Gc||(Gc=!0,Hc=r),ls(0,t)},n}function As(e,t,n){(n=Ro(-1,n)).tag=3;var r=e.type.getDerivedStateFromError;if("function"==typeof r){var i=t.value;n.payload=function(){return r(i)},n.callback=function(){ls(0,t)}}var o=e.stateNode;return null!==o&&"function"==typeof o.componentDidCatch&&(n.callback=function(){ls(0,t),"function"!=typeof r&&(null===Yc?Yc=new Set([this]):Yc.add(this));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}function hs(e,t,n){var r=e.pingCache;if(null===r){r=e.pingCache=new fs;var i=new Set;r.set(t,i)}else void 0===(i=r.get(t))&&(i=new Set,r.set(t,i));i.has(n)||(i.add(n),e=Bu.bind(null,e,t,n),t.then(e,e))}function ps(e){do{var t;if((t=13===e.tag)&&(t=null===(t=e.memoizedState)||null!==t.dehydrated),t)return e;e=e.return}while(null!==e);return null}function gs(e,t,n,r,i){return 1&e.mode?(e.flags|=65536,e.lanes=i,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,1===n.tag&&(null===n.alternate?n.tag=17:((t=Ro(-1,1)).tag=2,Do(n,t,1))),n.lanes|=1),e)}var ys=w.ReactCurrentOwner,ms=!1;function bs(e,t,n,r){t.child=null===e?Wo(t,null,n,r):Jo(t,e.child,n,r)}function vs(e,t,n,r,i){n=n.render;var o=t.ref;return Io(t,i),r=Ea(e,t,n,r,o,i),n=Ia(),null===e||ms?(no&&n&&$i(t),t.flags|=1,bs(e,t,r,i),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Gs(e,t,i))}function ws(e,t,n,r,i){if(null===e){var o=n.type;return"function"!=typeof o||xu(o)||void 0!==o.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=Du(n.type,null,r,t,t.mode,i)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=o,Es(e,t,o,r,i))}if(o=e.child,!(e.lanes&i)){var a=o.memoizedProps;if((n=null!==(n=n.compare)?n:ar)(a,r)&&e.ref===t.ref)return Gs(e,t,i)}return t.flags|=1,(e=Ru(o,r)).ref=t.ref,e.return=t,t.child=e}function Es(e,t,n,r,i){if(null!==e){var o=e.memoizedProps;if(ar(o,r)&&e.ref===t.ref){if(ms=!1,t.pendingProps=r=o,!(e.lanes&i))return t.lanes=e.lanes,Gs(e,t,i);131072&e.flags&&(ms=!0)}}return Cs(e,t,n,r,i)}function Is(e,t,n){var r=t.pendingProps,i=r.children,o=null!==e?e.memoizedState:null;if("hidden"===r.mode)if(1&t.mode){if(!(1073741824&n))return e=null!==o?o.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Bi(Rc,xc),xc|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=null!==o?o.baseLanes:n,Bi(Rc,xc),xc|=r}else t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Bi(Rc,xc),xc|=n;else null!==o?(r=o.baseLanes|n,t.memoizedState=null):r=n,Bi(Rc,xc),xc|=r;return bs(e,t,i,n),t.child}function Bs(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Cs(e,t,n,r,i){var o=Mi(n)?Qi:_i.current;return o=ki(t,o),Io(t,i),n=Ea(e,t,n,r,o,i),r=Ia(),null===e||ms?(no&&r&&$i(t),t.flags|=1,bs(e,t,n,i),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Gs(e,t,i))}function _s(e,t,n,r,i){if(Mi(n)){var o=!0;Ti(t)}else o=!1;if(Io(t,i),null===t.stateNode)qs(e,t),qo(t,n,r),Ho(t,n,r,i),r=!0;else if(null===e){var a=t.stateNode,s=t.memoizedProps;a.props=s;var c=a.context,u=n.contextType;u="object"==typeof u&&null!==u?Bo(u):ki(t,u=Mi(n)?Qi:_i.current);var l=n.getDerivedStateFromProps,f="function"==typeof l||"function"==typeof a.getSnapshotBeforeUpdate;f||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(s!==r||c!==u)&&Go(t,a,r,u),ko=!1;var d=t.memoizedState;a.state=d,Oo(t,r,a,i),c=t.memoizedState,s!==r||d!==c||Si.current||ko?("function"==typeof l&&(Uo(t,n,l,r),c=t.memoizedState),(s=ko||jo(t,n,s,r,d,c,u))?(f||"function"!=typeof a.UNSAFE_componentWillMount&&"function"!=typeof a.componentWillMount||("function"==typeof a.componentWillMount&&a.componentWillMount(),"function"==typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount()),"function"==typeof a.componentDidMount&&(t.flags|=4194308)):("function"==typeof a.componentDidMount&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=c),a.props=r,a.state=c,a.context=u,r=s):("function"==typeof a.componentDidMount&&(t.flags|=4194308),r=!1)}else{a=t.stateNode,xo(e,t),s=t.memoizedProps,u=t.type===t.elementType?s:po(t.type,s),a.props=u,f=t.pendingProps,d=a.context,c="object"==typeof(c=n.contextType)&&null!==c?Bo(c):ki(t,c=Mi(n)?Qi:_i.current);var A=n.getDerivedStateFromProps;(l="function"==typeof A||"function"==typeof a.getSnapshotBeforeUpdate)||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(s!==f||d!==c)&&Go(t,a,r,c),ko=!1,d=t.memoizedState,a.state=d,Oo(t,r,a,i);var h=t.memoizedState;s!==f||d!==h||Si.current||ko?("function"==typeof A&&(Uo(t,n,A,r),h=t.memoizedState),(u=ko||jo(t,n,u,r,d,h,c)||!1)?(l||"function"!=typeof a.UNSAFE_componentWillUpdate&&"function"!=typeof a.componentWillUpdate||("function"==typeof a.componentWillUpdate&&a.componentWillUpdate(r,h,c),"function"==typeof a.UNSAFE_componentWillUpdate&&a.UNSAFE_componentWillUpdate(r,h,c)),"function"==typeof a.componentDidUpdate&&(t.flags|=4),"function"==typeof a.getSnapshotBeforeUpdate&&(t.flags|=1024)):("function"!=typeof a.componentDidUpdate||s===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),"function"!=typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&d===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=h),a.props=r,a.state=h,a.context=c,r=u):("function"!=typeof a.componentDidUpdate||s===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),"function"!=typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&d===e.memoizedState||(t.flags|=1024),r=!1)}return Ss(e,t,n,r,o,i)}function Ss(e,t,n,r,i,o){Bs(e,t);var a=!!(128&t.flags);if(!r&&!a)return i&&Ni(t,n,!1),Gs(e,t,o);r=t.stateNode,ys.current=t;var s=a&&"function"!=typeof n.getDerivedStateFromError?null:r.render();return t.flags|=1,null!==e&&a?(t.child=Jo(t,e.child,null,o),t.child=Jo(t,null,s,o)):bs(e,t,s,o),t.memoizedState=r.state,i&&Ni(t,n,!0),t.child}function Qs(e){var t=e.stateNode;t.pendingContext?Ri(0,t.pendingContext,t.pendingContext!==t.context):t.context&&Ri(0,t.context,!1),na(e,t.containerInfo)}function ks(e,t,n,r,i){return fo(),Ao(i),t.flags|=256,bs(e,t,n,r),t.child}var Ms,xs,Rs,Ds,Ts={dehydrated:null,treeContext:null,retryLane:0};function Ns(e){return{baseLanes:e,cachePool:null,transitions:null}}function Os(e,t,r){var i,o=t.pendingProps,a=aa.current,s=!1,c=!!(128&t.flags);if((i=c)||(i=(null===e||null!==e.memoizedState)&&!!(2&a)),i?(s=!0,t.flags&=-129):null!==e&&null===e.memoizedState||(a|=1),Bi(aa,1&a),null===e)return so(t),null!==(e=t.memoizedState)&&null!==(e=e.dehydrated)?(1&t.mode?"$!"===e.data?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(c=o.children,e=o.fallback,s?(o=t.mode,s=t.child,c={mode:"hidden",children:c},1&o||null===s?s=Nu(c,o,0,null):(s.childLanes=0,s.pendingProps=c),e=Tu(e,o,r,null),s.return=t,e.return=t,s.sibling=e,t.child=s,t.child.memoizedState=Ns(r),t.memoizedState=Ts,e):Ls(t,c));if(null!==(a=e.memoizedState)&&null!==(i=a.dehydrated))return function(e,t,r,i,o,a,s){if(r)return 256&t.flags?(t.flags&=-257,Ps(e,t,s,i=us(Error(n(422))))):null!==t.memoizedState?(t.child=e.child,t.flags|=128,null):(a=i.fallback,o=t.mode,i=Nu({mode:"visible",children:i.children},o,0,null),(a=Tu(a,o,s,null)).flags|=2,i.return=t,a.return=t,i.sibling=a,t.child=i,!!(1&t.mode)&&Jo(t,e.child,null,s),t.child.memoizedState=Ns(s),t.memoizedState=Ts,a);if(!(1&t.mode))return Ps(e,t,s,null);if("$!"===o.data){if(i=o.nextSibling&&o.nextSibling.dataset)var c=i.dgst;return i=c,Ps(e,t,s,i=us(a=Error(n(419)),i,void 0))}if(c=!!(s&e.childLanes),ms||c){if(null!==(i=Qc)){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}0!==(o=o&(i.suspendedLanes|s)?0:o)&&o!==a.retryLane&&(a.retryLane=o,Qo(e,o),tu(i,e,o,-1))}return hu(),Ps(e,t,s,i=us(Error(n(421))))}return"$?"===o.data?(t.flags|=128,t.child=e.child,t=_u.bind(null,e),o._reactRetry=t,null):(e=a.treeContext,to=si(o.nextSibling),eo=t,no=!0,ro=null,null!==e&&(Yi[Ki++]=Vi,Yi[Ki++]=Ji,Yi[Ki++]=zi,Vi=e.id,Ji=e.overflow,zi=t),(t=Ls(t,i.children)).flags|=4096,t)}(e,t,c,o,i,a,r);if(s){s=o.fallback,c=t.mode,i=(a=e.child).sibling;var u={mode:"hidden",children:o.children};return 1&c||t.child===a?(o=Ru(a,u)).subtreeFlags=14680064&a.subtreeFlags:((o=t.child).childLanes=0,o.pendingProps=u,t.deletions=null),null!==i?s=Ru(i,s):(s=Tu(s,c,r,null)).flags|=2,s.return=t,o.return=t,o.sibling=s,t.child=o,o=s,s=t.child,c=null===(c=e.child.memoizedState)?Ns(r):{baseLanes:c.baseLanes|r,cachePool:null,transitions:c.transitions},s.memoizedState=c,s.childLanes=e.childLanes&~r,t.memoizedState=Ts,o}return e=(s=e.child).sibling,o=Ru(s,{mode:"visible",children:o.children}),!(1&t.mode)&&(o.lanes=r),o.return=t,o.sibling=null,null!==e&&(null===(r=t.deletions)?(t.deletions=[e],t.flags|=16):r.push(e)),t.child=o,t.memoizedState=null,o}function Ls(e,t){return(t=Nu({mode:"visible",children:t},e.mode,0,null)).return=e,e.child=t}function Ps(e,t,n,r){return null!==r&&Ao(r),Jo(t,e.child,null,n),(e=Ls(t,t.pendingProps.children)).flags|=2,t.memoizedState=null,e}function Us(e,t,n){e.lanes|=t;var r=e.alternate;null!==r&&(r.lanes|=t),Eo(e.return,t,n)}function Fs(e,t,n,r,i){var o=e.memoizedState;null===o?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=i)}function js(e,t,n){var r=t.pendingProps,i=r.revealOrder,o=r.tail;if(bs(e,t,r.children,n),2&(r=aa.current))r=1&r|2,t.flags|=128;else{if(null!==e&&128&e.flags)e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&Us(e,n,t);else if(19===e.tag)Us(e,n,t);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(Bi(aa,r),1&t.mode)switch(i){case"forwards":for(n=t.child,i=null;null!==n;)null!==(e=n.alternate)&&null===sa(e)&&(i=n),n=n.sibling;null===(n=i)?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),Fs(t,!1,i,n,o);break;case"backwards":for(n=null,i=t.child,t.child=null;null!==i;){if(null!==(e=i.alternate)&&null===sa(e)){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}Fs(t,!0,n,null,o);break;case"together":Fs(t,!1,null,null,void 0);break;default:t.memoizedState=null}else t.memoizedState=null;return t.child}function qs(e,t){!(1&t.mode)&&null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Gs(e,t,r){if(null!==e&&(t.dependencies=e.dependencies),Nc|=t.lanes,!(r&t.childLanes))return null;if(null!==e&&t.child!==e.child)throw Error(n(153));if(null!==t.child){for(r=Ru(e=t.child,e.pendingProps),t.child=r,r.return=t;null!==e.sibling;)e=e.sibling,(r=r.sibling=Ru(e,e.pendingProps)).return=t;r.sibling=null}return t.child}function Hs(e,t){if(!no)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Ys(e){var t=null!==e.alternate&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;null!==i;)n|=i.lanes|i.childLanes,r|=14680064&i.subtreeFlags,r|=14680064&i.flags,i.return=e,i=i.sibling;else for(i=e.child;null!==i;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function Ks(e,t,r){var o=t.pendingProps;switch(Xi(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ys(t),null;case 1:case 17:return Mi(t.type)&&xi(),Ys(t),null;case 3:return o=t.stateNode,ra(),Ii(Si),Ii(_i),ua(),o.pendingContext&&(o.context=o.pendingContext,o.pendingContext=null),null!==e&&null!==e.child||(uo(t)?t.flags|=4:null===e||e.memoizedState.isDehydrated&&!(256&t.flags)||(t.flags|=1024,null!==ro&&(ou(ro),ro=null))),xs(e,t),Ys(t),null;case 5:oa(t);var a=ta(ea.current);if(r=t.type,null!==e&&null!=t.stateNode)Rs(e,t,r,o,a),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!o){if(null===t.stateNode)throw Error(n(166));return Ys(t),null}if(e=ta($o.current),uo(t)){o=t.stateNode,r=t.type;var s=t.memoizedProps;switch(o[li]=t,o[fi]=s,e=!!(1&t.mode),r){case"dialog":Lr("cancel",o),Lr("close",o);break;case"iframe":case"object":case"embed":Lr("load",o);break;case"video":case"audio":for(a=0;a<\/script>",e=e.removeChild(e.firstChild)):"string"==typeof o.is?e=c.createElement(r,{is:o.is}):(e=c.createElement(r),"select"===r&&(c=e,o.multiple?c.multiple=!0:o.size&&(c.size=o.size))):e=c.createElementNS(e,r),e[li]=t,e[fi]=o,Ms(e,t,!1,!1),t.stateNode=e;e:{switch(c=ve(r,o),r){case"dialog":Lr("cancel",e),Lr("close",e),a=o;break;case"iframe":case"object":case"embed":Lr("load",e),a=o;break;case"video":case"audio":for(a=0;ajc&&(t.flags|=128,o=!0,Hs(s,!1),t.lanes=4194304)}else{if(!o)if(null!==(e=sa(c))){if(t.flags|=128,o=!0,null!==(r=e.updateQueue)&&(t.updateQueue=r,t.flags|=4),Hs(s,!0),null===s.tail&&"hidden"===s.tailMode&&!c.alternate&&!no)return Ys(t),null}else 2*$e()-s.renderingStartTime>jc&&1073741824!==r&&(t.flags|=128,o=!0,Hs(s,!1),t.lanes=4194304);s.isBackwards?(c.sibling=t.child,t.child=c):(null!==(r=s.last)?r.sibling=c:t.child=c,s.last=c)}return null!==s.tail?(t=s.tail,s.rendering=t,s.tail=t.sibling,s.renderingStartTime=$e(),t.sibling=null,r=aa.current,Bi(aa,o?1&r|2:1&r),t):(Ys(t),null);case 22:case 23:return lu(),o=null!==t.memoizedState,null!==e&&null!==e.memoizedState!==o&&(t.flags|=8192),o&&1&t.mode?!!(1073741824&xc)&&(Ys(t),6&t.subtreeFlags&&(t.flags|=8192)):Ys(t),null;case 24:case 25:return null}throw Error(n(156,t.tag))}function zs(e,t){switch(Xi(t),t.tag){case 1:return Mi(t.type)&&xi(),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return ra(),Ii(Si),Ii(_i),ua(),65536&(e=t.flags)&&!(128&e)?(t.flags=-65537&e|128,t):null;case 5:return oa(t),null;case 13:if(Ii(aa),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(n(340));fo()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return Ii(aa),null;case 4:return ra(),null;case 10:return wo(t.type._context),null;case 22:case 23:return lu(),null;default:return null}}Ms=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},xs=function(){},Rs=function(e,t,n,r){var o=e.memoizedProps;if(o!==r){e=t.stateNode,ta($o.current);var a,s=null;switch(n){case"input":o=W(e,o),r=W(e,r),s=[];break;case"select":o=P({},o,{value:void 0}),r=P({},r,{value:void 0}),s=[];break;case"textarea":o=ie(e,o),r=ie(e,r),s=[];break;default:"function"!=typeof o.onClick&&"function"==typeof r.onClick&&(e.onclick=Zr)}for(l in be(n,r),n=null,o)if(!r.hasOwnProperty(l)&&o.hasOwnProperty(l)&&null!=o[l])if("style"===l){var c=o[l];for(a in c)c.hasOwnProperty(a)&&(n||(n={}),n[a]="")}else"dangerouslySetInnerHTML"!==l&&"children"!==l&&"suppressContentEditableWarning"!==l&&"suppressHydrationWarning"!==l&&"autoFocus"!==l&&(i.hasOwnProperty(l)?s||(s=[]):(s=s||[]).push(l,null));for(l in r){var u=r[l];if(c=null!=o?o[l]:void 0,r.hasOwnProperty(l)&&u!==c&&(null!=u||null!=c))if("style"===l)if(c){for(a in c)!c.hasOwnProperty(a)||u&&u.hasOwnProperty(a)||(n||(n={}),n[a]="");for(a in u)u.hasOwnProperty(a)&&c[a]!==u[a]&&(n||(n={}),n[a]=u[a])}else n||(s||(s=[]),s.push(l,n)),n=u;else"dangerouslySetInnerHTML"===l?(u=u?u.__html:void 0,c=c?c.__html:void 0,null!=u&&c!==u&&(s=s||[]).push(l,u)):"children"===l?"string"!=typeof u&&"number"!=typeof u||(s=s||[]).push(l,""+u):"suppressContentEditableWarning"!==l&&"suppressHydrationWarning"!==l&&(i.hasOwnProperty(l)?(null!=u&&"onScroll"===l&&Lr("scroll",e),s||c===u||(s=[])):(s=s||[]).push(l,u))}n&&(s=s||[]).push("style",n);var l=s;(t.updateQueue=l)&&(t.flags|=4)}},Ds=function(e,t,n,r){n!==r&&(t.flags|=4)};var Vs=!1,Js=!1,Ws="function"==typeof WeakSet?WeakSet:Set,Zs=null;function $s(e,t){var n=e.ref;if(null!==n)if("function"==typeof n)try{n(null)}catch(n){Iu(e,t,n)}else n.current=null}function Xs(e,t,n){try{n()}catch(n){Iu(e,t,n)}}var ec=!1;function tc(e,t,n){var r=t.updateQueue;if(null!==(r=null!==r?r.lastEffect:null)){var i=r=r.next;do{if((i.tag&e)===e){var o=i.destroy;i.destroy=void 0,void 0!==o&&Xs(t,n,o)}i=i.next}while(i!==r)}}function nc(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect: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 rc(e){var t=e.ref;if(null!==t){var n=e.stateNode;e.tag,e=n,"function"==typeof t?t(e):t.current=e}}function ic(e){var t=e.alternate;null!==t&&(e.alternate=null,ic(t)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&null!==(t=e.stateNode)&&(delete t[li],delete t[fi],delete t[Ai],delete t[hi],delete t[pi]),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 oc(e){return 5===e.tag||3===e.tag||4===e.tag}function ac(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||oc(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;5!==e.tag&&6!==e.tag&&18!==e.tag;){if(2&e.flags)continue e;if(null===e.child||4===e.tag)continue e;e.child.return=e,e=e.child}if(!(2&e.flags))return e.stateNode}}function sc(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?8===n.nodeType?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(8===n.nodeType?(t=n.parentNode).insertBefore(e,n):(t=n).appendChild(e),null!=(n=n._reactRootContainer)||null!==t.onclick||(t.onclick=Zr));else if(4!==r&&null!==(e=e.child))for(sc(e,t,n),e=e.sibling;null!==e;)sc(e,t,n),e=e.sibling}function cc(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==r&&null!==(e=e.child))for(cc(e,t,n),e=e.sibling;null!==e;)cc(e,t,n),e=e.sibling}var uc=null,lc=!1;function fc(e,t,n){for(n=n.child;null!==n;)dc(e,t,n),n=n.sibling}function dc(e,t,n){if(at&&"function"==typeof at.onCommitFiberUnmount)try{at.onCommitFiberUnmount(ot,n)}catch(e){}switch(n.tag){case 5:Js||$s(n,t);case 6:var r=uc,i=lc;uc=null,fc(e,t,n),lc=i,null!==(uc=r)&&(lc?(e=uc,n=n.stateNode,8===e.nodeType?e.parentNode.removeChild(n):e.removeChild(n)):uc.removeChild(n.stateNode));break;case 18:null!==uc&&(lc?(e=uc,n=n.stateNode,8===e.nodeType?ai(e.parentNode,n):1===e.nodeType&&ai(e,n),Gt(e)):ai(uc,n.stateNode));break;case 4:r=uc,i=lc,uc=n.stateNode.containerInfo,lc=!0,fc(e,t,n),uc=r,lc=i;break;case 0:case 11:case 14:case 15:if(!Js&&null!==(r=n.updateQueue)&&null!==(r=r.lastEffect)){i=r=r.next;do{var o=i,a=o.destroy;o=o.tag,void 0!==a&&(!!(2&o)||!!(4&o))&&Xs(n,t,a),i=i.next}while(i!==r)}fc(e,t,n);break;case 1:if(!Js&&($s(n,t),"function"==typeof(r=n.stateNode).componentWillUnmount))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(e){Iu(n,t,e)}fc(e,t,n);break;case 21:fc(e,t,n);break;case 22:1&n.mode?(Js=(r=Js)||null!==n.memoizedState,fc(e,t,n),Js=r):fc(e,t,n);break;default:fc(e,t,n)}}function Ac(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new Ws),t.forEach((function(t){var r=Su.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))}))}}function hc(e,t){var r=t.deletions;if(null!==r)for(var i=0;io&&(o=s),i&=~a}if(i=o,10<(i=(120>(i=$e()-i)?120:480>i?480:1080>i?1080:1920>i?1920:3e3>i?3e3:4320>i?4320:1960*Ic(i/1960))-i)){e.timeoutHandle=ti(vu.bind(null,e,Uc,qc),i);break}vu(e,Uc,qc);break;default:throw Error(n(329))}}}return nu(e,$e()),e.callbackNode===r?ru.bind(null,e):null}function iu(e,t){var n=Pc;return e.current.memoizedState.isDehydrated&&(fu(e,t).flags|=256),2!==(e=pu(e,t))&&(t=Uc,Uc=n,null!==t&&ou(t)),e}function ou(e){null===Uc?Uc=e:Uc.push.apply(Uc,e)}function au(e,t){for(t&=~Lc,t&=~Oc,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0e?16:e,null===zc)var i=!1;else{if(e=zc,zc=null,Vc=0,6&Sc)throw Error(n(331));var o=Sc;for(Sc|=4,Zs=e.current;null!==Zs;){var a=Zs,s=a.child;if(16&Zs.flags){var c=a.deletions;if(null!==c){for(var u=0;u$e()-Fc?fu(e,0):Lc|=n),nu(e,t)}function Cu(e,t){0===t&&(1&e.mode?(t=ft,!(130023424&(ft<<=1))&&(ft=4194304)):t=1);var n=Xc();null!==(e=Qo(e,t))&&(mt(e,t,n),nu(e,n))}function _u(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),Cu(e,n)}function Su(e,t){var r=0;switch(e.tag){case 13:var i=e.stateNode,o=e.memoizedState;null!==o&&(r=o.retryLane);break;case 19:i=e.stateNode;break;default:throw Error(n(314))}null!==i&&i.delete(t),Cu(e,r)}function Qu(e,t){return Ve(e,t)}function ku(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 Mu(e,t,n,r){return new ku(e,t,n,r)}function xu(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Ru(e,t){var n=e.alternate;return null===n?((n=Mu(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=14680064&e.flags,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Du(e,t,r,i,o,a){var s=2;if(i=e,"function"==typeof e)xu(e)&&(s=1);else if("string"==typeof e)s=5;else e:switch(e){case B:return Tu(r.children,o,a,t);case C:s=8,o|=8;break;case _:return(e=Mu(12,r,t,2|o)).elementType=_,e.lanes=a,e;case M:return(e=Mu(13,r,t,o)).elementType=M,e.lanes=a,e;case x:return(e=Mu(19,r,t,o)).elementType=x,e.lanes=a,e;case T:return Nu(r,o,a,t);default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case S:s=10;break e;case Q:s=9;break e;case k:s=11;break e;case R:s=14;break e;case D:s=16,i=null;break e}throw Error(n(130,null==e?e:typeof e,""))}return(t=Mu(s,r,t,o)).elementType=e,t.type=i,t.lanes=a,t}function Tu(e,t,n,r){return(e=Mu(7,e,r,t)).lanes=n,e}function Nu(e,t,n,r){return(e=Mu(22,e,r,t)).elementType=T,e.lanes=n,e.stateNode={isHidden:!1},e}function Ou(e,t,n){return(e=Mu(6,e,null,t)).lanes=n,e}function Lu(e,t,n){return(t=Mu(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Pu(e,t,n,r,i){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=yt(0),this.expirationTimes=yt(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=yt(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function Uu(e,t,n,r,i,o,a,s,c){return e=new Pu(e,t,n,s,c),1===t?(t=1,!0===o&&(t|=8)):t=0,o=Mu(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Mo(o),e}function Fu(e){if(!e)return Ci;e:{if(Ge(e=e._reactInternals)!==e||1!==e.tag)throw Error(n(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Mi(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(null!==t);throw Error(n(171))}if(1===e.tag){var r=e.type;if(Mi(r))return Di(e,r,t)}return t}function ju(e,t,n,r,i,o,a,s,c){return(e=Uu(n,r,!0,e,0,o,0,s,c)).context=Fu(null),n=e.current,(o=Ro(r=Xc(),i=eu(n))).callback=null!=t?t:null,Do(n,o,i),e.current.lanes=i,mt(e,i,r),nu(e,r),e}function qu(e,t,n,r){var i=t.current,o=Xc(),a=eu(i);return n=Fu(n),null===t.context?t.context=n:t.pendingContext=n,(t=Ro(o,a)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),null!==(e=Do(i,t,a))&&(tu(e,i,a,o),To(e,i,a)),a}function Gu(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function Hu(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n1?t-1:0),i=1;i1?t-1:0),i=1;i2&&("o"===e[0]||"O"===e[0])&&("n"===e[1]||"N"===e[1])}function pe(e,t,n,r){if(null!==n&&n.type===re)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":if(r)return!1;if(null!==n)return!n.acceptsBooleans;var i=e.toLowerCase().slice(0,5);return"data-"!==i&&"aria-"!==i;default:return!1}}function ge(e,t,n,r){if(null==t)return!0;if(pe(e,t,n,r))return!0;if(r)return!1;if(null!==n)switch(n.type){case ie:return!t;case oe:return!1===t;case ae:return isNaN(t);case se:return isNaN(t)||t<1}return!1}function ye(e){return be.hasOwnProperty(e)?be[e]:null}function me(e,t,n,r,i,o,a){this.acceptsBooleans=2===t||t===ie||t===oe,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=a}var be={};["children","dangerouslySetInnerHTML","defaultValue","defaultChecked","innerHTML","suppressContentEditableWarning","suppressHydrationWarning","style"].forEach((function(e){be[e]=new me(e,re,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0],n=e[1];be[t]=new me(t,1,!1,n,null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){be[e]=new me(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){be[e]=new me(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"].forEach((function(e){be[e]=new me(e,ie,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){be[e]=new me(e,ie,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){be[e]=new me(e,oe,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){be[e]=new me(e,se,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){be[e]=new me(e,ae,!1,e.toLowerCase(),null,!1,!1)}));var ve=/[\-\:]([a-z])/g,we=function(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"].forEach((function(e){var t=e.replace(ve,we);be[t]=new me(t,1,!1,e,null,!1,!1)})),["xlink:actuate","xlink:arcrole","xlink:role","xlink:show","xlink:title","xlink:type"].forEach((function(e){var t=e.replace(ve,we);be[t]=new me(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(ve,we);be[t]=new me(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){be[e]=new me(e,1,!1,e.toLowerCase(),null,!1,!1)})),be.xlinkHref=new me("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){be[e]=new me(e,1,!1,e.toLowerCase(),null,!0,!0)}));var Ee=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*\:/i,Ie=!1;function Be(e){!Ie&&Ee.test(e)&&(Ie=!0,o("A future version of React will block javascript: URLs as a security precaution. Use event handlers instead if you can. If you need to generate unsafe HTML try using dangerouslySetInnerHTML instead. React was passed %s.",JSON.stringify(e)))}function Ce(e,t,n,r){if(r.mustUseProperty)return e[r.propertyName];te(n,t),r.sanitizeURL&&Be(""+n);var i=r.attributeName,o=null;if(r.type===oe){if(e.hasAttribute(i)){var a=e.getAttribute(i);return""===a||(ge(t,n,r,!1)?a:a===""+n?n:a)}}else if(e.hasAttribute(i)){if(ge(t,n,r,!1))return e.getAttribute(i);if(r.type===ie)return n;o=e.getAttribute(i)}return ge(t,n,r,!1)?null===o?n:o:o===""+n?n:o}function _e(e,t,n,r){if(Ae(t)){if(!e.hasAttribute(t))return void 0===n?void 0:null;var i=e.getAttribute(t);return te(n,t),i===""+n?n:i}}function Se(e,t,n,r){var i=ye(t);if(!he(t,i,r))if(ge(t,n,i,r)&&(n=null),r||null===i){if(Ae(t)){var o=t;null===n?e.removeAttribute(o):(te(n,t),e.setAttribute(o,""+n))}}else if(i.mustUseProperty){var a=i.propertyName;if(null===n){var s=i.type;e[a]=s!==ie&&""}else e[a]=n}else{var c=i.attributeName,u=i.attributeNamespace;if(null===n)e.removeAttribute(c);else{var l,f=i.type;f===ie||f===oe&&!0===n?l="":(te(n,c),l=""+n,i.sanitizeURL&&Be(l.toString())),u?e.setAttributeNS(u,c,l):e.setAttribute(c,l)}}}var Qe=Symbol.for("react.element"),ke=Symbol.for("react.portal"),Me=Symbol.for("react.fragment"),xe=Symbol.for("react.strict_mode"),Re=Symbol.for("react.profiler"),De=Symbol.for("react.provider"),Te=Symbol.for("react.context"),Ne=Symbol.for("react.forward_ref"),Oe=Symbol.for("react.suspense"),Le=Symbol.for("react.suspense_list"),Pe=Symbol.for("react.memo"),Ue=Symbol.for("react.lazy"),Fe=Symbol.for("react.offscreen"),je=Symbol.iterator,qe="@@iterator";function Ge(e){if(null===e||"object"!=typeof e)return null;var t=je&&e[je]||e[qe];return"function"==typeof t?t:null}var He,Ye,Ke,ze,Ve,Je,We,Ze=Object.assign,$e=0;function Xe(){}Xe.__reactDisabledLog=!0;var et,tt=n.ReactCurrentDispatcher;function nt(e,t,n){if(void 0===et)try{throw Error()}catch(e){var r=e.stack.trim().match(/\n( *(at )?)/);et=r&&r[1]||""}return"\n"+et+e}var rt,it=!1,ot="function"==typeof WeakMap?WeakMap:Map;function at(e,t){if(!e||it)return"";var n,r=rt.get(e);if(void 0!==r)return r;it=!0;var i,a=Error.prepareStackTrace;Error.prepareStackTrace=void 0,i=tt.current,tt.current=null,function(){if(0===$e){He=console.log,Ye=console.info,Ke=console.warn,ze=console.error,Ve=console.group,Je=console.groupCollapsed,We=console.groupEnd;var e={configurable:!0,enumerable:!0,value:Xe,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}$e++}();try{if(t){var s=function(){throw Error()};if(Object.defineProperty(s.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(s,[])}catch(e){n=e}Reflect.construct(e,[],s)}else{try{s.call()}catch(e){n=e}e.call(s.prototype)}}else{try{throw Error()}catch(e){n=e}e()}}catch(t){if(t&&n&&"string"==typeof t.stack){for(var c=t.stack.split("\n"),u=n.stack.split("\n"),l=c.length-1,f=u.length-1;l>=1&&f>=0&&c[l]!==u[f];)f--;for(;l>=1&&f>=0;l--,f--)if(c[l]!==u[f]){if(1!==l||1!==f)do{if(l--,--f<0||c[l]!==u[f]){var d="\n"+c[l].replace(" at new "," at ");return e.displayName&&d.includes("")&&(d=d.replace("",e.displayName)),"function"==typeof e&&rt.set(e,d),d}}while(l>=1&&f>=0);break}}}finally{it=!1,tt.current=i,function(){if(0==--$e){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:Ze({},e,{value:He}),info:Ze({},e,{value:Ye}),warn:Ze({},e,{value:Ke}),error:Ze({},e,{value:ze}),group:Ze({},e,{value:Ve}),groupCollapsed:Ze({},e,{value:Je}),groupEnd:Ze({},e,{value:We})})}$e<0&&o("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}(),Error.prepareStackTrace=a}var A=e?e.displayName||e.name:"",h=A?nt(A):"";return"function"==typeof e&&rt.set(e,h),h}function st(e,t,n){return at(e,!1)}function ct(e,t,n){if(null==e)return"";if("function"==typeof e)return at(e,!(!(r=e.prototype)||!r.isReactComponent));var r;if("string"==typeof e)return nt(e);switch(e){case Oe:return nt("Suspense");case Le:return nt("SuspenseList")}if("object"==typeof e)switch(e.$$typeof){case Ne:return st(e.render);case Pe:return ct(e.type,t,n);case Ue:var i=e,o=i._payload,a=i._init;try{return ct(a(o),t,n)}catch(e){}}return""}function ut(e){switch(e._debugOwner&&e._debugOwner.type,e._debugSource,e.tag){case A:return nt(e.type);case _:return nt("Lazy");case I:return nt("Suspense");case k:return nt("SuspenseList");case s:case u:case C:return st(e.type);case v:return st(e.type.render);case c:return at(e.type,!0);default:return""}}function lt(e){try{var t="",n=e;do{t+=ut(n),n=n.return}while(n);return t}catch(e){return"\nError generating stack: "+e.message+"\n"+e.stack}}function ft(e){return e.displayName||"Context"}function dt(e){if(null==e)return null;if("number"==typeof e.tag&&o("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),"function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case Me:return"Fragment";case ke:return"Portal";case Re:return"Profiler";case xe:return"StrictMode";case Oe:return"Suspense";case Le:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case Te:return ft(e)+".Consumer";case De:return ft(e._context)+".Provider";case Ne:return function(e,t,n){var r=e.displayName;if(r)return r;var i=t.displayName||t.name||"";return""!==i?n+"("+i+")":n}(e,e.render,"ForwardRef");case Pe:var t=e.displayName||null;return null!==t?t:dt(e.type)||"Memo";case Ue:var n=e,r=n._payload,i=n._init;try{return dt(i(r))}catch(e){return null}}return null}function At(e){return e.displayName||"Context"}function ht(e){var t,n,r,i,o=e.tag,a=e.type;switch(o){case D:return"Cache";case y:return At(a)+".Consumer";case m:return At(a._context)+".Provider";case Q:return"DehydratedFragment";case v:return t=a,r="ForwardRef",i=(n=a.render).displayName||n.name||"",t.displayName||(""!==i?r+"("+i+")":r);case p:return"Fragment";case A:return a;case d:return"Portal";case l:return"Root";case h:return"Text";case _:return dt(a);case g:return a===xe?"StrictMode":"Mode";case x:return"Offscreen";case E:return"Profiler";case M:return"Scope";case I:return"Suspense";case k:return"SuspenseList";case T:return"TracingMarker";case c:case s:case S:case u:case B:case C:if("function"==typeof a)return a.displayName||a.name||null;if("string"==typeof a)return a}return null}rt=new ot;var pt=n.ReactDebugCurrentFrame,gt=null,yt=!1;function mt(){if(null===gt)return null;var e=gt._debugOwner;return null!=e?ht(e):null}function bt(){return null===gt?"":lt(gt)}function vt(){pt.getCurrentStack=null,gt=null,yt=!1}function wt(e){pt.getCurrentStack=null===e?null:bt,gt=e,yt=!1}function Et(e){yt=e}function It(e){return""+e}function Bt(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return ne(e),e;default:return""}}var Ct={button:!0,checkbox:!0,image:!0,hidden:!0,radio:!0,reset:!0,submit:!0};function _t(e,t){Ct[t.type]||t.onChange||t.onInput||t.readOnly||t.disabled||null==t.value||o("You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set either `onChange` or `readOnly`."),t.onChange||t.readOnly||t.disabled||null==t.checked||o("You provided a `checked` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultChecked`. Otherwise, set either `onChange` or `readOnly`.")}function St(e){var t=e.type,n=e.nodeName;return n&&"input"===n.toLowerCase()&&("checkbox"===t||"radio"===t)}function Qt(e){return e._valueTracker}function kt(e){Qt(e)||(e._valueTracker=function(e){var t=St(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);ne(e[t]);var r=""+e[t];if(!e.hasOwnProperty(t)&&void 0!==n&&"function"==typeof n.get&&"function"==typeof n.set){var i=n.get,o=n.set;Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(e){ne(e),r=""+e,o.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable});var a={getValue:function(){return r},setValue:function(e){ne(e),r=""+e},stopTracking:function(){!function(e){e._valueTracker=null}(e),delete e[t]}};return a}}(e))}function Mt(e){if(!e)return!1;var t=Qt(e);if(!t)return!0;var n=t.getValue(),r=function(e){var t="";return e?t=St(e)?e.checked?"true":"false":e.value:t}(e);return r!==n&&(t.setValue(r),!0)}function xt(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}var Rt=!1,Dt=!1,Tt=!1,Nt=!1;function Ot(e){return"checkbox"===e.type||"radio"===e.type?null!=e.checked:null!=e.value}function Lt(e,t){var n=e,r=t.checked;return Ze({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=r?r:n._wrapperState.initialChecked})}function Pt(e,t){_t(0,t),void 0===t.checked||void 0===t.defaultChecked||Dt||(o("%s contains an input of type %s with both checked and defaultChecked props. Input elements must be either controlled or uncontrolled (specify either the checked prop, or the defaultChecked prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://reactjs.org/link/controlled-components",mt()||"A component",t.type),Dt=!0),void 0===t.value||void 0===t.defaultValue||Rt||(o("%s contains an input of type %s with both value and defaultValue props. Input elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://reactjs.org/link/controlled-components",mt()||"A component",t.type),Rt=!0);var n=e,r=null==t.defaultValue?"":t.defaultValue;n._wrapperState={initialChecked:null!=t.checked?t.checked:t.defaultChecked,initialValue:Bt(null!=t.value?t.value:r),controlled:Ot(t)}}function Ut(e,t){var n=e,r=t.checked;null!=r&&Se(n,"checked",r,!1)}function Ft(e,t){var n=e,r=Ot(t);n._wrapperState.controlled||!r||Nt||(o("A component is changing an uncontrolled input to be controlled. This is likely caused by the value changing from undefined to a defined value, which should not happen. Decide between using a controlled or uncontrolled input element for the lifetime of the component. More info: https://reactjs.org/link/controlled-components"),Nt=!0),!n._wrapperState.controlled||r||Tt||(o("A component is changing a controlled input to be uncontrolled. This is likely caused by the value changing from a defined to undefined, which should not happen. Decide between using a controlled or uncontrolled input element for the lifetime of the component. More info: https://reactjs.org/link/controlled-components"),Tt=!0),Ut(e,t);var i=Bt(t.value),a=t.type;if(null!=i)"number"===a?(0===i&&""===n.value||n.value!=i)&&(n.value=It(i)):n.value!==It(i)&&(n.value=It(i));else if("submit"===a||"reset"===a)return void n.removeAttribute("value");t.hasOwnProperty("value")?qt(n,t.type,i):t.hasOwnProperty("defaultValue")&&qt(n,t.type,Bt(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(n.defaultChecked=!!t.defaultChecked)}function jt(e,t,n){var r=e;if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var i=t.type;if(!("submit"!==i&&"reset"!==i||void 0!==t.value&&null!==t.value))return;var o=It(r._wrapperState.initialValue);n||o!==r.value&&(r.value=o),r.defaultValue=o}var a=r.name;""!==a&&(r.name=""),r.defaultChecked=!r.defaultChecked,r.defaultChecked=!!r._wrapperState.initialChecked,""!==a&&(r.name=a)}function qt(e,t,n){"number"===t&&xt(e.ownerDocument)===e||(null==n?e.defaultValue=It(e._wrapperState.initialValue):e.defaultValue!==It(n)&&(e.defaultValue=It(n)))}var Gt=!1,Ht=!1,Yt=!1;function Kt(t,n){null==n.value&&("object"==typeof n.children&&null!==n.children?e.Children.forEach(n.children,(function(e){null!=e&&"string"!=typeof e&&"number"!=typeof e&&(Ht||(Ht=!0,o("Cannot infer the option value of complex children. Pass a `value` prop or use a plain string as children to