btcpayserver/BTCPayServer/wwwroot/vendor/ur-registry/urlib.min.js
2022-09-13 10:17:12 +02:00

4 lines
342 KiB
JavaScript
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

// Custom build using `yarn run build:purescript` with this repo: https://github.com/KeystoneHQ/ur-registry
/*! For license information please see urlib.min.js.LICENSE.txt */
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.URlib=e():t.URlib=e()}(this,(()=>(()=>{var t={4019:t=>{function e(t,e,r){"use strict";this.alias=[],this.prob=[],this.outcomes=e||this.indexedOutcomes(t.length),this.rng=r||Math.random,this.precomputeAlias(t)}e.prototype.next=function(t){"use strict";var e=t||1,r=[],n=0;do{var i=Math.floor(this.rng()*this.prob.length);r[n]=this.outcomes[this.rng()<this.prob[i]?i:this.alias[i]]}while(++n<e);return e>1?r:r[0]},e.prototype.precomputeAlias=function(t){"use strict";var e,r,n,i=t.length,o=0,a=0,u=0,s=[],f=[],c=[];for(r=0;r<i;++r){if(t[r]<0)throw"Probability must be a positive: p["+r+"]="+t[r];o+=t[r]}if(0===o)throw"Probability cannot be zero.";for(r=0;r<i;++r)s[r]=t[r]*i/o;for(r=i-1;r>=0;--r)s[r]<1?f[a++]=r:c[u++]=r;for(;a&&u;)n=f[--a],e=c[--u],this.prob[n]=s[n],this.alias[n]=e,s[e]=s[e]+s[n]-1,s[e]<1?f[a++]=e:c[u++]=e;for(;u;)this.prob[c[--u]]=1;for(;a;)this.prob[f[--a]]=1},e.prototype.indexedOutcomes=function(t){"use strict";for(var e=[],r=0;r<t;r++)e[r]=r;return e},e.prototype.randomInt=function(t,e){"use strict";return Math.floor(this.rng()*(e-t))+t},t.exports=function(t,r,n){"use strict";return new e(t,r,n)}},9760:function(t,e,r){"use strict";var n=r(8764).Buffer,i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});const o=i(r(9282)),a=r(3154);let u=[];var s;!function(t){t.STANDARD="standard",t.URI="uri",t.MINIMAL="minimal"}(s||(s={}));const f=t=>"ableacidalsoapexaquaarchatomauntawayaxisbackbaldbarnbeltbetabiasbluebodybragbrewbulbbuzzcalmcashcatschefcityclawcodecolacookcostcruxcurlcuspcyandarkdatadaysdelidicedietdoordowndrawdropdrumdulldutyeacheasyechoedgeepicevenexamexiteyesfactfairfernfigsfilmfishfizzflapflewfluxfoxyfreefrogfuelfundgalagamegeargemsgiftgirlglowgoodgraygrimgurugushgyrohalfhanghardhawkheathelphighhillholyhopehornhutsicedideaidleinchinkyintoirisironitemjadejazzjoinjoltjowljudojugsjumpjunkjurykeepkenokeptkeyskickkilnkingkitekiwiknoblamblavalazyleaflegsliarlimplionlistlogoloudloveluaulucklungmainmanymathmazememomenumeowmildmintmissmonknailnavyneednewsnextnoonnotenumbobeyoboeomitonyxopenovalowlspaidpartpeckplaypluspoempoolposepuffpumapurrquadquizraceramprealredorichroadrockroofrubyruinrunsrustsafesagascarsetssilkskewslotsoapsolosongstubsurfswantacotasktaxitenttiedtimetinytoiltombtoystriptunatwinuglyundouniturgeuservastveryvetovialvibeviewvisavoidvowswallwandwarmwaspwavewaxywebswhatwhenwhizwolfworkyankyawnyellyogayurtzapszerozestzinczonezoom".slice(4*t,4*t+4),c=t=>`${t}${a.getCRCHex(n.from(t,"hex"))}`,l=(t,e)=>{const r=c(t);return n.from(r,"hex").reduce(((t,e)=>[...t,f(e)]),[]).join(e)},h=(t,e,r)=>{const i=(4==r?t.split(e):a.partition(t,2)).map((t=>((t,e)=>{o.default(t.length===e,"Invalid Bytewords: word.length does not match wordLength provided");if(0===u.length){u=[...new Array(676)].map((()=>-1));for(let t=0;t<256;t++){const e=f(t);let r=e[0].charCodeAt(0)-"a".charCodeAt(0),n=e[3].charCodeAt(0)-"a".charCodeAt(0);u[26*n+r]=t}}let r=t[0].toLowerCase().charCodeAt(0)-"a".charCodeAt(0),i=t[4==e?3:1].toLowerCase().charCodeAt(0)-"a".charCodeAt(0);o.default(0<=r&&r<26&&0<=i&&i<26,"Invalid Bytewords: invalid word");let a=u[26*i+r];if(o.default(-1!==a,"Invalid Bytewords: value not in lookup table"),4==e){const e=f(a);let r=t[1].toLowerCase(),n=t[2].toLowerCase();o.default(r===e[1]&&n===e[2],"Invalid Bytewords: invalid middle letters of word")}return n.from([a]).toString("hex")})(t,r))).join("");o.default(i.length>=5,"Invalid Bytewords: invalid decoded string length");const[s,c]=a.split(n.from(i,"hex"),4),l=a.getCRCHex(s);return o.default(l===c.toString("hex"),"Invalid Checksum"),s.toString("hex")};e.default={decode:(t,e=s.MINIMAL)=>{switch(e){case s.STANDARD:return h(t," ",4);case s.URI:return h(t,"-",4);case s.MINIMAL:return h(t,"",2);default:throw new Error(`Invalid style ${e}`)}},encode:(t,e=s.MINIMAL)=>{switch(e){case s.STANDARD:return l(t," ");case s.URI:return l(t,"-");case s.MINIMAL:return(t=>{const e=c(t);return n.from(e,"hex").reduce(((t,e)=>t+(t=>{const e=f(t);return`${e[0]}${e[3]}`})(e)),"")})(t);default:throw new Error(`Invalid style ${e}`)}},STYLES:s}},3823:(t,e,r)=>{"use strict";var n=r(8764).Buffer;Object.defineProperty(e,"__esModule",{value:!0}),e.cborDecode=e.cborEncode=void 0;const i=r(2474);e.cborEncode=t=>i.encode(t),e.cborDecode=t=>i.decode(n.isBuffer(t)?t:n.from(t,"hex"))},4686:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.InvalidChecksumError=e.InvalidSequenceComponentError=e.InvalidTypeError=e.InvalidPathLengthError=e.InvalidSchemeError=void 0;class r extends Error{constructor(){super("Invalid Scheme"),this.name="InvalidSchemeError"}}e.InvalidSchemeError=r;class n extends Error{constructor(){super("Invalid Path"),this.name="InvalidPathLengthError"}}e.InvalidPathLengthError=n;class i extends Error{constructor(){super("Invalid Type"),this.name="InvalidTypeError"}}e.InvalidTypeError=i;class o extends Error{constructor(){super("Invalid Sequence Component"),this.name="InvalidSequenceComponentError"}}e.InvalidSequenceComponentError=o;class a extends Error{constructor(){super("Invalid Checksum"),this.name="InvalidChecksumError"}}e.InvalidChecksumError=a},4684:(t,e,r)=>{"use strict";var n=r(8764).Buffer;Object.defineProperty(e,"__esModule",{value:!0}),e.FountainDecoderPart=void 0;const i=r(3154),o=r(4609),a=r(4686);class u{constructor(t,e){this._indexes=t,this._fragment=e}get indexes(){return this._indexes}get fragment(){return this._fragment}static fromEncoderPart(t){const e=o.chooseFragments(t.seqNum,t.seqLength,t.checksum),r=t.fragment;return new u(e,r)}isSimple(){return 1===this.indexes.length}}e.FountainDecoderPart=u;class s{constructor(){this.result=void 0,this.expectedMessageLength=0,this.expectedChecksum=0,this.expectedFragmentLength=0,this.processedPartsCount=0,this.expectedPartIndexes=[],this.lastPartIndexes=[],this.queuedParts=[],this.receivedPartIndexes=[],this.mixedParts=[],this.simpleParts=[]}validatePart(t){if(0===this.expectedPartIndexes.length)[...new Array(t.seqLength)].forEach(((t,e)=>this.expectedPartIndexes.push(e))),this.expectedMessageLength=t.messageLength,this.expectedChecksum=t.checksum,this.expectedFragmentLength=t.fragment.length;else{if(this.expectedPartIndexes.length!==t.seqLength)return!1;if(this.expectedMessageLength!==t.messageLength)return!1;if(this.expectedChecksum!==t.checksum)return!1;if(this.expectedFragmentLength!==t.fragment.length)return!1}return!0}reducePartByPart(t,e){if(i.arrayContains(t.indexes,e.indexes)){const r=i.setDifference(t.indexes,e.indexes),n=i.bufferXOR(t.fragment,e.fragment);return new u(r,n)}return t}reduceMixedBy(t){const e=[];this.mixedParts.map((({value:e})=>this.reducePartByPart(e,t))).forEach((t=>{t.isSimple()?this.queuedParts.push(t):e.push({key:t.indexes,value:t})})),this.mixedParts=e}processSimplePart(t){const e=t.indexes[0];if(!this.receivedPartIndexes.includes(e))if(this.simpleParts.push({key:t.indexes,value:t}),this.receivedPartIndexes.push(e),i.arraysEqual(this.receivedPartIndexes,this.expectedPartIndexes)){const t=this.simpleParts.map((({value:t})=>t)).sort(((t,e)=>t.indexes[0]-e.indexes[0])),e=s.joinFragments(t.map((t=>t.fragment)),this.expectedMessageLength);i.getCRC(e)===this.expectedChecksum?this.result=e:this.error=new a.InvalidChecksumError}else this.reduceMixedBy(t)}processMixedPart(t){if(this.mixedParts.some((({key:e})=>i.arraysEqual(e,t.indexes))))return;let e=this.simpleParts.reduce(((t,{value:e})=>this.reducePartByPart(t,e)),t);e=this.mixedParts.reduce(((t,{value:e})=>this.reducePartByPart(t,e)),e),e.isSimple()?this.queuedParts.push(e):(this.reduceMixedBy(e),this.mixedParts.push({key:e.indexes,value:e}))}processQueuedItem(){if(0===this.queuedParts.length)return;const t=this.queuedParts.shift();t.isSimple()?this.processSimplePart(t):this.processMixedPart(t)}receivePart(t){if(this.isComplete())return!1;if(!this.validatePart(t))return!1;const e=u.fromEncoderPart(t);for(this.lastPartIndexes=e.indexes,this.queuedParts.push(e);!this.isComplete()&&this.queuedParts.length>0;)this.processQueuedItem();return this.processedPartsCount+=1,!0}isComplete(){return Boolean(void 0!==this.result&&this.result.length>0)}isSuccess(){return Boolean(void 0===this.error&&this.isComplete())}resultMessage(){return this.isSuccess()?this.result:n.from([])}isFailure(){return void 0!==this.error}resultError(){return this.error?this.error.message:""}expectedPartCount(){return this.expectedPartIndexes.length}getExpectedPartIndexes(){return[...this.expectedPartIndexes]}getReceivedPartIndexes(){return[...this.receivedPartIndexes]}getLastPartIndexes(){return[...this.lastPartIndexes]}estimatedPercentComplete(){if(this.isComplete())return 1;const t=this.expectedPartCount();return 0===t?0:Math.min(.99,this.processedPartsCount/(1.75*t))}getProgress(){if(this.isComplete())return 1;const t=this.expectedPartCount();return 0===t?0:this.receivedPartIndexes.length/t}}e.default=s,s.joinFragments=(t,e)=>n.concat(t).slice(0,e)},8299:function(t,e,r){"use strict";var n=r(8764).Buffer,i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.FountainEncoderPart=void 0;const o=i(r(9282)),a=r(3154),u=r(4609),s=r(3823);class f{constructor(t,e,r,n,i){this._seqNum=t,this._seqLength=e,this._messageLength=r,this._checksum=n,this._fragment=i}get messageLength(){return this._messageLength}get fragment(){return this._fragment}get seqNum(){return this._seqNum}get seqLength(){return this._seqLength}get checksum(){return this._checksum}cbor(){const t=s.cborEncode([this._seqNum,this._seqLength,this._messageLength,this._checksum,this._fragment]);return n.from(t)}description(){return`seqNum:${this._seqNum}, seqLen:${this._seqLength}, messageLen:${this._messageLength}, checksum:${this._checksum}, data:${this._fragment.toString("hex")}`}static fromCBOR(t){const[e,r,i,a,u]=s.cborDecode(t);return o.default("number"==typeof e),o.default("number"==typeof r),o.default("number"==typeof i),o.default("number"==typeof a),o.default(n.isBuffer(u)&&u.length>0),new f(e,r,i,a,n.from(u))}}e.FountainEncoderPart=f;class c{constructor(t,e=100,r=0,n=10){const i=c.findNominalFragmentLength(t.length,n,e);this._messageLength=t.length,this._fragments=c.partitionMessage(t,i),this.fragmentLength=i,this.seqNum=a.toUint32(r),this.checksum=a.getCRC(t)}get fragmentsLength(){return this._fragments.length}get fragments(){return this._fragments}get messageLength(){return this._messageLength}isComplete(){return this.seqNum>=this._fragments.length}isSinglePart(){return 1===this._fragments.length}seqLength(){return this._fragments.length}mix(t){return t.reduce(((t,e)=>a.bufferXOR(this._fragments[e],t)),n.alloc(this.fragmentLength,0))}nextPart(){this.seqNum=a.toUint32(this.seqNum+1);const t=u.chooseFragments(this.seqNum,this._fragments.length,this.checksum),e=this.mix(t);return new f(this.seqNum,this._fragments.length,this._messageLength,this.checksum,e)}static findNominalFragmentLength(t,e,r){o.default(t>0),o.default(e>0),o.default(r>=e);const n=Math.ceil(t/e);let i=0;for(let e=1;e<=n&&(i=Math.ceil(t/e),!(i<=r));e++);return i}static partitionMessage(t,e){let r,i=n.from(t),o=[];for(;i.length>0;)[r,i]=a.split(i,-e),r=n.alloc(e,0).fill(r,0,r.length),o.push(r);return o}}e.default=c},4609:function(t,e,r){"use strict";var n=r(8764).Buffer,i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.chooseFragments=e.shuffle=e.chooseDegree=void 0;const o=r(3154),a=i(r(8728)),u=r(4019);e.chooseDegree=(t,e)=>{const r=[...new Array(t)].map(((t,e)=>1/(e+1)));return u(r,null,e.nextDouble).next()+1},e.shuffle=(t,e)=>{let r=[...t],n=[];for(;r.length>0;){let t=e.nextInt(0,r.length-1),i=r[t];r.splice(t,1),n.push(i)}return n},e.chooseFragments=(t,r,i)=>{if(t<=r)return[t-1];{const u=n.concat([o.intToBytes(t),o.intToBytes(i)]),s=new a.default(u),f=e.chooseDegree(r,s),c=[...new Array(r)].map(((t,e)=>e));return e.shuffle(c,s).slice(0,f)}}},6139:function(t,e,r){"use strict";var n=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.URDecoder=e.UREncoder=e.UR=void 0;const i=n(r(9814));e.UR=i.default;const o=n(r(3406));e.UREncoder=o.default;const a=n(r(9978));e.URDecoder=a.default},9814:(t,e,r)=>{"use strict";var n=r(8764).Buffer;Object.defineProperty(e,"__esModule",{value:!0});const i=r(4686),o=r(3154),a=r(3823);class u{constructor(t,e="bytes"){if(this._cborPayload=t,this._type=e,!o.isURType(this._type))throw new i.InvalidTypeError}static fromBuffer(t){return new u(a.cborEncode(t))}static from(t,e){return u.fromBuffer(n.from(t,e))}decodeCBOR(){return a.cborDecode(this._cborPayload)}get type(){return this._type}get cbor(){return this._cborPayload}equals(t){return this.type===t.type&&this.cbor.equals(t.cbor)}}e.default=u},9978:function(t,e,r){"use strict";var n=r(8764).Buffer,i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});const o=i(r(4684)),a=i(r(9760)),u=i(r(9282)),s=r(3154),f=r(4686),c=i(r(9814)),l=r(8299);class h{constructor(t=new o.default,e="bytes"){this.fountainDecoder=t,this.type=e,u.default(s.isURType(e),"Invalid UR type"),this.expected_type=""}static decodeBody(t,e){const r=a.default.decode(e,a.default.STYLES.MINIMAL);return new c.default(n.from(r,"hex"),t)}validatePart(t){return this.expected_type?this.expected_type===t:!!s.isURType(t)&&(this.expected_type=t,!0)}static decode(t){const[e,r]=this.parse(t);if(0===r.length)throw new f.InvalidPathLengthError;const n=r[0];return h.decodeBody(e,n)}static parse(t){const e=t.toLowerCase();if("ur:"!==e.slice(0,3))throw new f.InvalidSchemeError;const r=e.slice(3).split("/"),n=r[0];if(r.length<2)throw new f.InvalidPathLengthError;if(!s.isURType(n))throw new f.InvalidTypeError;return[n,r.slice(1)]}static parseSequenceComponent(t){const e=t.split("-");if(2!==e.length)throw new f.InvalidSequenceComponentError;const r=s.toUint32(Number(e[0])),n=Number(e[1]);if(r<1||n<1)throw new f.InvalidSequenceComponentError;return[r,n]}receivePart(t){if(void 0!==this.result)return!1;const[e,r]=h.parse(t);if(!this.validatePart(e))return!1;if(1===r.length)return this.result=h.decodeBody(e,r[0]),!0;if(2!==r.length)throw new f.InvalidPathLengthError;const[n,i]=r,[o,u]=h.parseSequenceComponent(n),s=a.default.decode(i,a.default.STYLES.MINIMAL),p=l.FountainEncoderPart.fromCBOR(s);return o===p.seqNum&&u===p.seqLength&&!!this.fountainDecoder.receivePart(p)&&(this.fountainDecoder.isSuccess()?this.result=new c.default(this.fountainDecoder.resultMessage(),e):this.fountainDecoder.isFailure()&&(this.error=new f.InvalidSchemeError),!0)}resultUR(){return this.result?this.result:new c.default(n.from([]))}isComplete(){return this.result&&this.result.cbor.length>0}isSuccess(){return!this.error&&this.isComplete()}isError(){return void 0!==this.error}resultError(){return this.error?this.error.message:""}expectedPartCount(){return this.fountainDecoder.expectedPartCount()}expectedPartIndexes(){return this.fountainDecoder.getExpectedPartIndexes()}receivedPartIndexes(){return this.fountainDecoder.getReceivedPartIndexes()}lastPartIndexes(){return this.fountainDecoder.getLastPartIndexes()}estimatedPercentComplete(){return this.fountainDecoder.estimatedPercentComplete()}getProgress(){return this.fountainDecoder.getProgress()}}e.default=h},3406:function(t,e,r){"use strict";var n=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});const i=n(r(8299)),o=n(r(9760));class a{constructor(t,e,r,n){this.ur=t,this.fountainEncoder=new i.default(t.cbor,e,r,n)}get fragmentsLength(){return this.fountainEncoder.fragmentsLength}get fragments(){return this.fountainEncoder.fragments}get messageLength(){return this.fountainEncoder.messageLength}get cbor(){return this.ur.cbor}encodeWhole(){return[...new Array(this.fragmentsLength)].map((()=>this.nextPart()))}nextPart(){const t=this.fountainEncoder.nextPart();return this.fountainEncoder.isSinglePart()?a.encodeSinglePart(this.ur):a.encodePart(this.ur.type,t)}static encodeUri(t,e){return[t,e.join("/")].join(":")}static encodeUR(t){return a.encodeUri("ur",t)}static encodePart(t,e){const r=`${e.seqNum}-${e.seqLength}`,n=o.default.encode(e.cbor().toString("hex"),o.default.STYLES.MINIMAL);return a.encodeUR([t,r,n])}static encodeSinglePart(t){const e=o.default.encode(t.cbor.toString("hex"),o.default.STYLES.MINIMAL);return a.encodeUR([t.type,e])}}e.default=a},3154:function(t,e,r){"use strict";var n=r(8764).Buffer,i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.bufferXOR=e.setDifference=e.arrayContains=e.arraysEqual=e.hasPrefix=e.isURType=e.intToBytes=e.toUint32=e.getCRCHex=e.getCRC=e.split=e.partition=e.sha256Hash=void 0;const o=i(r(9072)),a=r(5057);e.sha256Hash=t=>o.default("sha256").update(t).digest(),e.partition=(t,e)=>t.match(new RegExp(".{1,"+e+"}","g"))||[t],e.split=(t,e)=>[t.slice(0,-e),t.slice(-e)],e.getCRC=t=>a.crc32(t),e.getCRCHex=t=>a.crc32(t).toString(16).padStart(8,"0"),e.toUint32=t=>t>>>0,e.intToBytes=t=>{const e=new ArrayBuffer(4);return new DataView(e).setUint32(0,t,!1),n.from(e)},e.isURType=t=>t.split("").every(((e,r)=>{let n=t.charCodeAt(r);return"a".charCodeAt(0)<=n&&n<="z".charCodeAt(0)||"0".charCodeAt(0)<=n&&n<="9".charCodeAt(0)||n==="-".charCodeAt(0)})),e.hasPrefix=(t,e)=>0===t.indexOf(e),e.arraysEqual=(t,e)=>t.length===e.length&&t.every((t=>e.includes(t))),e.arrayContains=(t,e)=>e.every((e=>t.includes(e))),e.setDifference=(t,e)=>t.filter((t=>e.indexOf(t)<0)),e.bufferXOR=(t,e)=>{const r=Math.max(t.length,e.length),i=n.allocUnsafe(r);for(let n=0;n<r;++n)i[n]=t[n]^e[n];return i}},8728:function(t,e,r){"use strict";var n=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});const i=r(3154),o=n(r(4431)),a=n(r(9499)),u=(t,e)=>a.default.bitwiseXor(a.default.asUintN(64,a.default.leftShift(t,a.default.BigInt(e))),a.default.BigInt(a.default.asUintN(64,a.default.signedRightShift(t,a.default.subtract(a.default.BigInt(64),a.default.BigInt(e))))));e.default=class{constructor(t){this.next=()=>new o.default(this.roll().toString()),this.nextDouble=()=>new o.default(this.roll().toString()).div(0x10000000000000000),this.nextInt=(t,e)=>Math.floor(this.nextDouble().toNumber()*(e-t+1)+t),this.nextByte=()=>this.nextInt(0,255),this.nextData=t=>[...new Array(t)].map((()=>this.nextByte()));const e=i.sha256Hash(t);this.s=[a.default.BigInt(0),a.default.BigInt(0),a.default.BigInt(0),a.default.BigInt(0)],this.setS(e)}setS(t){for(let e=0;e<4;e++){let r=8*e,n=a.default.BigInt(0);for(let e=0;e<8;e++)n=a.default.asUintN(64,a.default.leftShift(n,a.default.BigInt(8))),n=a.default.asUintN(64,a.default.bitwiseOr(n,a.default.BigInt(t[r+e])));this.s[e]=a.default.asUintN(64,n)}}roll(){const t=a.default.asUintN(64,a.default.multiply(u(a.default.asUintN(64,a.default.multiply(this.s[1],a.default.BigInt(5))),7),a.default.BigInt(9))),e=a.default.asUintN(64,a.default.leftShift(this.s[1],a.default.BigInt(17)));return this.s[2]=a.default.asUintN(64,a.default.bitwiseXor(this.s[2],a.default.BigInt(this.s[0]))),this.s[3]=a.default.asUintN(64,a.default.bitwiseXor(this.s[3],a.default.BigInt(this.s[1]))),this.s[1]=a.default.asUintN(64,a.default.bitwiseXor(this.s[1],a.default.BigInt(this.s[2]))),this.s[0]=a.default.asUintN(64,a.default.bitwiseXor(this.s[0],a.default.BigInt(this.s[3]))),this.s[2]=a.default.asUintN(64,a.default.bitwiseXor(this.s[2],a.default.BigInt(e))),this.s[3]=a.default.asUintN(64,u(this.s[3],45)),t}}},396:(t,e,r)=>{"use strict";var n=r(4745),i=r(7800),o=r(2861),a=r(5588),u=r(7392),s=r(590),f=r(5484),c=r(3683),l=r(2093),h=r(7308),p=r(1924),y=r(9981),d=Object("a"),g="a"!==d[0]||!(0 in d),b=p("String.prototype.split");t.exports=function(t){var e,r=l(this),p=g&&y(r)?b(r,""):r,d=f(p);if(!s(t))throw new TypeError("Array.prototype.filter callback must be a function");arguments.length>1&&(e=arguments[1]);for(var v=n(r,0),_=0,m=0;_<d;){var w=h(_),E=u(r,w);if(E){var S=a(r,w),O=c(i(t,e,[S,_,r]));O&&(o(v,h(m),S),m+=1)}_+=1}return v}},1199:(t,e,r)=>{"use strict";var n=r(4289),i=r(3733),o=r(1924),a=r(396),u=r(6983),s=u(),f=r(2840),c=o("Array.prototype.slice"),l=function(t,e){return i(t),s.apply(t,c(arguments,1))};n(l,{getPolyfill:u,implementation:a,shim:f}),t.exports=l},6983:(t,e,r)=>{"use strict";var n=r(2868),i=r(396);t.exports=function(){var t=Array.prototype.filter;return n(t)?t:i}},2840:(t,e,r)=>{"use strict";var n=r(4289),i=r(6983);t.exports=function(){var t=i();return n(Array.prototype,{filter:t},{filter:function(){return Array.prototype.filter!==t}}),t}},9282:(t,e,r)=>{"use strict";var n=r(4155);function i(t){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i(t)}var o,a,u=r(2136).codes,s=u.ERR_AMBIGUOUS_ARGUMENT,f=u.ERR_INVALID_ARG_TYPE,c=u.ERR_INVALID_ARG_VALUE,l=u.ERR_INVALID_RETURN_VALUE,h=u.ERR_MISSING_ARGS,p=r(5961),y=r(9539).inspect,d=r(9539).types,g=d.isPromise,b=d.isRegExp,v=Object.assign?Object.assign:r(8091).assign,_=Object.is?Object.is:r(609);function m(){var t=r(9158);o=t.isDeepEqual,a=t.isDeepStrictEqual}new Map;var w=!1,E=t.exports=x,S={};function O(t){if(t.message instanceof Error)throw t.message;throw new p(t)}function B(t,e,r,n){if(!r){var i=!1;if(0===e)i=!0,n="No value argument passed to `assert.ok()`";else if(n instanceof Error)throw n;var o=new p({actual:r,expected:!0,message:n,operator:"==",stackStartFn:t});throw o.generatedMessage=i,o}}function x(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];B.apply(void 0,[x,e.length].concat(e))}E.fail=function t(e,r,i,o,a){var u,s=arguments.length;if(0===s)u="Failed";else if(1===s)i=e,e=void 0;else{if(!1===w){w=!0;var f=n.emitWarning?n.emitWarning:console.warn.bind(console);f("assert.fail() with more than one argument is deprecated. Please use assert.strictEqual() instead or only pass a message.","DeprecationWarning","DEP0094")}2===s&&(o="!=")}if(i instanceof Error)throw i;var c={actual:e,expected:r,operator:void 0===o?"fail":o,stackStartFn:a||t};void 0!==i&&(c.message=i);var l=new p(c);throw u&&(l.message=u,l.generatedMessage=!0),l},E.AssertionError=p,E.ok=x,E.equal=function t(e,r,n){if(arguments.length<2)throw new h("actual","expected");e!=r&&O({actual:e,expected:r,message:n,operator:"==",stackStartFn:t})},E.notEqual=function t(e,r,n){if(arguments.length<2)throw new h("actual","expected");e==r&&O({actual:e,expected:r,message:n,operator:"!=",stackStartFn:t})},E.deepEqual=function t(e,r,n){if(arguments.length<2)throw new h("actual","expected");void 0===o&&m(),o(e,r)||O({actual:e,expected:r,message:n,operator:"deepEqual",stackStartFn:t})},E.notDeepEqual=function t(e,r,n){if(arguments.length<2)throw new h("actual","expected");void 0===o&&m(),o(e,r)&&O({actual:e,expected:r,message:n,operator:"notDeepEqual",stackStartFn:t})},E.deepStrictEqual=function t(e,r,n){if(arguments.length<2)throw new h("actual","expected");void 0===o&&m(),a(e,r)||O({actual:e,expected:r,message:n,operator:"deepStrictEqual",stackStartFn:t})},E.notDeepStrictEqual=function t(e,r,n){if(arguments.length<2)throw new h("actual","expected");void 0===o&&m(),a(e,r)&&O({actual:e,expected:r,message:n,operator:"notDeepStrictEqual",stackStartFn:t})},E.strictEqual=function t(e,r,n){if(arguments.length<2)throw new h("actual","expected");_(e,r)||O({actual:e,expected:r,message:n,operator:"strictEqual",stackStartFn:t})},E.notStrictEqual=function t(e,r,n){if(arguments.length<2)throw new h("actual","expected");_(e,r)&&O({actual:e,expected:r,message:n,operator:"notStrictEqual",stackStartFn:t})};var A=function t(e,r,n){var i=this;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),r.forEach((function(t){t in e&&(void 0!==n&&"string"==typeof n[t]&&b(e[t])&&e[t].test(n[t])?i[t]=n[t]:i[t]=e[t])}))};function I(t,e,r,n,i,o){if(!(r in t)||!a(t[r],e[r])){if(!n){var u=new A(t,i),s=new A(e,i,t),f=new p({actual:u,expected:s,operator:"deepStrictEqual",stackStartFn:o});throw f.actual=t,f.expected=e,f.operator=o.name,f}O({actual:t,expected:e,message:n,operator:o.name,stackStartFn:o})}}function R(t,e,r,n){if("function"!=typeof e){if(b(e))return e.test(t);if(2===arguments.length)throw new f("expected",["Function","RegExp"],e);if("object"!==i(t)||null===t){var a=new p({actual:t,expected:e,message:r,operator:"deepStrictEqual",stackStartFn:n});throw a.operator=n.name,a}var u=Object.keys(e);if(e instanceof Error)u.push("name","message");else if(0===u.length)throw new c("error",e,"may not be an empty object");return void 0===o&&m(),u.forEach((function(i){"string"==typeof t[i]&&b(e[i])&&e[i].test(t[i])||I(t,e,i,r,u,n)})),!0}return void 0!==e.prototype&&t instanceof e||!Error.isPrototypeOf(e)&&!0===e.call({},t)}function T(t){if("function"!=typeof t)throw new f("fn","Function",t);try{t()}catch(t){return t}return S}function j(t){return g(t)||null!==t&&"object"===i(t)&&"function"==typeof t.then&&"function"==typeof t.catch}function P(t){return Promise.resolve().then((function(){var e;if("function"==typeof t){if(!j(e=t()))throw new l("instance of Promise","promiseFn",e)}else{if(!j(t))throw new f("promiseFn",["Function","Promise"],t);e=t}return Promise.resolve().then((function(){return e})).then((function(){return S})).catch((function(t){return t}))}))}function k(t,e,r,n){if("string"==typeof r){if(4===arguments.length)throw new f("error",["Object","Error","Function","RegExp"],r);if("object"===i(e)&&null!==e){if(e.message===r)throw new s("error/message",'The error message "'.concat(e.message,'" is identical to the message.'))}else if(e===r)throw new s("error/message",'The error "'.concat(e,'" is identical to the message.'));n=r,r=void 0}else if(null!=r&&"object"!==i(r)&&"function"!=typeof r)throw new f("error",["Object","Error","Function","RegExp"],r);if(e===S){var o="";r&&r.name&&(o+=" (".concat(r.name,")")),o+=n?": ".concat(n):".";var a="rejects"===t.name?"rejection":"exception";O({actual:void 0,expected:r,operator:t.name,message:"Missing expected ".concat(a).concat(o),stackStartFn:t})}if(r&&!R(e,r,n,t))throw e}function C(t,e,r,n){if(e!==S){if("string"==typeof r&&(n=r,r=void 0),!r||R(e,r)){var i=n?": ".concat(n):".",o="doesNotReject"===t.name?"rejection":"exception";O({actual:e,expected:r,operator:t.name,message:"Got unwanted ".concat(o).concat(i,"\n")+'Actual message: "'.concat(e&&e.message,'"'),stackStartFn:t})}throw e}}function D(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];B.apply(void 0,[D,e.length].concat(e))}E.throws=function t(e){for(var r=arguments.length,n=new Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];k.apply(void 0,[t,T(e)].concat(n))},E.rejects=function t(e){for(var r=arguments.length,n=new Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];return P(e).then((function(e){return k.apply(void 0,[t,e].concat(n))}))},E.doesNotThrow=function t(e){for(var r=arguments.length,n=new Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];C.apply(void 0,[t,T(e)].concat(n))},E.doesNotReject=function t(e){for(var r=arguments.length,n=new Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];return P(e).then((function(e){return C.apply(void 0,[t,e].concat(n))}))},E.ifError=function t(e){if(null!=e){var r="ifError got unwanted exception: ";"object"===i(e)&&"string"==typeof e.message?0===e.message.length&&e.constructor?r+=e.constructor.name:r+=e.message:r+=y(e);var n=new p({actual:e,expected:null,operator:"ifError",message:r,stackStartFn:t}),o=e.stack;if("string"==typeof o){var a=o.split("\n");a.shift();for(var u=n.stack.split("\n"),s=0;s<a.length;s++){var f=u.indexOf(a[s]);if(-1!==f){u=u.slice(0,f);break}}n.stack="".concat(u.join("\n"),"\n").concat(a.join("\n"))}throw n}},E.strict=v(D,E,{equal:E.strictEqual,deepEqual:E.deepStrictEqual,notEqual:E.notStrictEqual,notDeepEqual:E.notDeepStrictEqual}),E.strict.strict=E.strict},5961:(t,e,r)=>{"use strict";var n=r(4155);function i(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function o(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function a(t,e){return!e||"object"!==p(e)&&"function"!=typeof e?u(t):e}function u(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function s(t){var e="function"==typeof Map?new Map:void 0;return s=function(t){if(null===t||(r=t,-1===Function.toString.call(r).indexOf("[native code]")))return t;var r;if("function"!=typeof t)throw new TypeError("Super expression must either be null or a function");if(void 0!==e){if(e.has(t))return e.get(t);e.set(t,n)}function n(){return c(t,arguments,h(this).constructor)}return n.prototype=Object.create(t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),l(n,t)},s(t)}function f(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}function c(t,e,r){return c=f()?Reflect.construct:function(t,e,r){var n=[null];n.push.apply(n,e);var i=new(Function.bind.apply(t,n));return r&&l(i,r.prototype),i},c.apply(null,arguments)}function l(t,e){return l=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},l(t,e)}function h(t){return h=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},h(t)}function p(t){return p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},p(t)}var y=r(9539).inspect,d=r(2136).codes.ERR_INVALID_ARG_TYPE;function g(t,e,r){return(void 0===r||r>t.length)&&(r=t.length),t.substring(r-e.length,r)===e}var b="",v="",_="",m="",w={deepStrictEqual:"Expected values to be strictly deep-equal:",strictEqual:"Expected values to be strictly equal:",strictEqualObject:'Expected "actual" to be reference-equal to "expected":',deepEqual:"Expected values to be loosely deep-equal:",equal:"Expected values to be loosely equal:",notDeepStrictEqual:'Expected "actual" not to be strictly deep-equal to:',notStrictEqual:'Expected "actual" to be strictly unequal to:',notStrictEqualObject:'Expected "actual" not to be reference-equal to "expected":',notDeepEqual:'Expected "actual" not to be loosely deep-equal to:',notEqual:'Expected "actual" to be loosely unequal to:',notIdentical:"Values identical but not reference-equal:"};function E(t){var e=Object.keys(t),r=Object.create(Object.getPrototypeOf(t));return e.forEach((function(e){r[e]=t[e]})),Object.defineProperty(r,"message",{value:t.message}),r}function S(t){return y(t,{compact:!1,customInspect:!1,depth:1e3,maxArrayLength:1/0,showHidden:!1,breakLength:1/0,showProxy:!1,sorted:!0,getters:!0})}var O=function(t){function e(t){var r;if(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),"object"!==p(t)||null===t)throw new d("options","Object",t);var i=t.message,o=t.operator,s=t.stackStartFn,f=t.actual,c=t.expected,l=Error.stackTraceLimit;if(Error.stackTraceLimit=0,null!=i)r=a(this,h(e).call(this,String(i)));else if(n.stderr&&n.stderr.isTTY&&(n.stderr&&n.stderr.getColorDepth&&1!==n.stderr.getColorDepth()?(b="",v="",m="",_=""):(b="",v="",m="",_="")),"object"===p(f)&&null!==f&&"object"===p(c)&&null!==c&&"stack"in f&&f instanceof Error&&"stack"in c&&c instanceof Error&&(f=E(f),c=E(c)),"deepStrictEqual"===o||"strictEqual"===o)r=a(this,h(e).call(this,function(t,e,r){var i="",o="",a=0,u="",s=!1,f=S(t),c=f.split("\n"),l=S(e).split("\n"),h=0,y="";if("strictEqual"===r&&"object"===p(t)&&"object"===p(e)&&null!==t&&null!==e&&(r="strictEqualObject"),1===c.length&&1===l.length&&c[0]!==l[0]){var d=c[0].length+l[0].length;if(d<=10){if(!("object"===p(t)&&null!==t||"object"===p(e)&&null!==e||0===t&&0===e))return"".concat(w[r],"\n\n")+"".concat(c[0]," !== ").concat(l[0],"\n")}else if("strictEqualObject"!==r&&d<(n.stderr&&n.stderr.isTTY?n.stderr.columns:80)){for(;c[0][h]===l[0][h];)h++;h>2&&(y="\n ".concat(function(t,e){if(e=Math.floor(e),0==t.length||0==e)return"";var r=t.length*e;for(e=Math.floor(Math.log(e)/Math.log(2));e;)t+=t,e--;return t+t.substring(0,r-t.length)}(" ",h),"^"),h=0)}}for(var E=c[c.length-1],O=l[l.length-1];E===O&&(h++<2?u="\n ".concat(E).concat(u):i=E,c.pop(),l.pop(),0!==c.length&&0!==l.length);)E=c[c.length-1],O=l[l.length-1];var B=Math.max(c.length,l.length);if(0===B){var x=f.split("\n");if(x.length>30)for(x[26]="".concat(b,"...").concat(m);x.length>27;)x.pop();return"".concat(w.notIdentical,"\n\n").concat(x.join("\n"),"\n")}h>3&&(u="\n".concat(b,"...").concat(m).concat(u),s=!0),""!==i&&(u="\n ".concat(i).concat(u),i="");var A=0,I=w[r]+"\n".concat(v,"+ actual").concat(m," ").concat(_,"- expected").concat(m),R=" ".concat(b,"...").concat(m," Lines skipped");for(h=0;h<B;h++){var T=h-a;if(c.length<h+1)T>1&&h>2&&(T>4?(o+="\n".concat(b,"...").concat(m),s=!0):T>3&&(o+="\n ".concat(l[h-2]),A++),o+="\n ".concat(l[h-1]),A++),a=h,i+="\n".concat(_,"-").concat(m," ").concat(l[h]),A++;else if(l.length<h+1)T>1&&h>2&&(T>4?(o+="\n".concat(b,"...").concat(m),s=!0):T>3&&(o+="\n ".concat(c[h-2]),A++),o+="\n ".concat(c[h-1]),A++),a=h,o+="\n".concat(v,"+").concat(m," ").concat(c[h]),A++;else{var j=l[h],P=c[h],k=P!==j&&(!g(P,",")||P.slice(0,-1)!==j);k&&g(j,",")&&j.slice(0,-1)===P&&(k=!1,P+=","),k?(T>1&&h>2&&(T>4?(o+="\n".concat(b,"...").concat(m),s=!0):T>3&&(o+="\n ".concat(c[h-2]),A++),o+="\n ".concat(c[h-1]),A++),a=h,o+="\n".concat(v,"+").concat(m," ").concat(P),i+="\n".concat(_,"-").concat(m," ").concat(j),A+=2):(o+=i,i="",1!==T&&0!==h||(o+="\n ".concat(P),A++))}if(A>20&&h<B-2)return"".concat(I).concat(R,"\n").concat(o,"\n").concat(b,"...").concat(m).concat(i,"\n")+"".concat(b,"...").concat(m)}return"".concat(I).concat(s?R:"","\n").concat(o).concat(i).concat(u).concat(y)}(f,c,o)));else if("notDeepStrictEqual"===o||"notStrictEqual"===o){var y=w[o],O=S(f).split("\n");if("notStrictEqual"===o&&"object"===p(f)&&null!==f&&(y=w.notStrictEqualObject),O.length>30)for(O[26]="".concat(b,"...").concat(m);O.length>27;)O.pop();r=1===O.length?a(this,h(e).call(this,"".concat(y," ").concat(O[0]))):a(this,h(e).call(this,"".concat(y,"\n\n").concat(O.join("\n"),"\n")))}else{var B=S(f),x="",A=w[o];"notDeepEqual"===o||"notEqual"===o?(B="".concat(w[o],"\n\n").concat(B)).length>1024&&(B="".concat(B.slice(0,1021),"...")):(x="".concat(S(c)),B.length>512&&(B="".concat(B.slice(0,509),"...")),x.length>512&&(x="".concat(x.slice(0,509),"...")),"deepEqual"===o||"equal"===o?B="".concat(A,"\n\n").concat(B,"\n\nshould equal\n\n"):x=" ".concat(o," ").concat(x)),r=a(this,h(e).call(this,"".concat(B).concat(x)))}return Error.stackTraceLimit=l,r.generatedMessage=!i,Object.defineProperty(u(r),"name",{value:"AssertionError [ERR_ASSERTION]",enumerable:!1,writable:!0,configurable:!0}),r.code="ERR_ASSERTION",r.actual=f,r.expected=c,r.operator=o,Error.captureStackTrace&&Error.captureStackTrace(u(r),s),r.stack,r.name="AssertionError",a(r)}var r,s;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&l(t,e)}(e,t),r=e,s=[{key:"toString",value:function(){return"".concat(this.name," [").concat(this.code,"]: ").concat(this.message)}},{key:y.custom,value:function(t,e){return y(this,function(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(t){return Object.getOwnPropertyDescriptor(r,t).enumerable})))),n.forEach((function(e){i(t,e,r[e])}))}return t}({},e,{customInspect:!1,depth:0}))}}],s&&o(r.prototype,s),e}(s(Error));t.exports=O},2136:(t,e,r)=>{"use strict";function n(t){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n(t)}function i(t){return i=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},i(t)}function o(t,e){return o=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},o(t,e)}var a,u,s={};function f(t,e,r){r||(r=Error);var a=function(r){function a(r,o,u){var s,f,c;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,a),f=this,c=i(a).call(this,function(t,r,n){return"string"==typeof e?e:e(t,r,n)}(r,o,u)),s=!c||"object"!==n(c)&&"function"!=typeof c?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(f):c,s.code=t,s}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&o(t,e)}(a,r),a}(r);s[t]=a}function c(t,e){if(Array.isArray(t)){var r=t.length;return t=t.map((function(t){return String(t)})),r>2?"one of ".concat(e," ").concat(t.slice(0,r-1).join(", "),", or ")+t[r-1]:2===r?"one of ".concat(e," ").concat(t[0]," or ").concat(t[1]):"of ".concat(e," ").concat(t[0])}return"of ".concat(e," ").concat(String(t))}f("ERR_AMBIGUOUS_ARGUMENT",'The "%s" argument is ambiguous. %s',TypeError),f("ERR_INVALID_ARG_TYPE",(function(t,e,i){var o,u,s,f,l;if(void 0===a&&(a=r(9282)),a("string"==typeof t,"'name' must be a string"),"string"==typeof e&&(u="not ",e.substr(0,u.length)===u)?(o="must not be",e=e.replace(/^not /,"")):o="must be",function(t,e,r){return(void 0===r||r>t.length)&&(r=t.length),t.substring(r-e.length,r)===e}(t," argument"))s="The ".concat(t," ").concat(o," ").concat(c(e,"type"));else{var h=("number"!=typeof l&&(l=0),l+".".length>(f=t).length||-1===f.indexOf(".",l)?"argument":"property");s='The "'.concat(t,'" ').concat(h," ").concat(o," ").concat(c(e,"type"))}return s+". Received type ".concat(n(i))}),TypeError),f("ERR_INVALID_ARG_VALUE",(function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"is invalid";void 0===u&&(u=r(9539));var i=u.inspect(e);return i.length>128&&(i="".concat(i.slice(0,128),"...")),"The argument '".concat(t,"' ").concat(n,". Received ").concat(i)}),TypeError,RangeError),f("ERR_INVALID_RETURN_VALUE",(function(t,e,r){var i;return i=r&&r.constructor&&r.constructor.name?"instance of ".concat(r.constructor.name):"type ".concat(n(r)),"Expected ".concat(t,' to be returned from the "').concat(e,'"')+" function but got ".concat(i,".")}),TypeError),f("ERR_MISSING_ARGS",(function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];void 0===a&&(a=r(9282)),a(e.length>0,"At least one arg needs to be specified");var i="The ",o=e.length;switch(e=e.map((function(t){return'"'.concat(t,'"')})),o){case 1:i+="".concat(e[0]," argument");break;case 2:i+="".concat(e[0]," and ").concat(e[1]," arguments");break;default:i+=e.slice(0,o-1).join(", "),i+=", and ".concat(e[o-1]," arguments")}return"".concat(i," must be specified")}),TypeError),t.exports.codes=s},9158:(t,e,r)=>{"use strict";function n(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=[],n=!0,i=!1,o=void 0;try{for(var a,u=t[Symbol.iterator]();!(n=(a=u.next()).done)&&(r.push(a.value),!e||r.length!==e);n=!0);}catch(t){i=!0,o=t}finally{try{n||null==u.return||u.return()}finally{if(i)throw o}}return r}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function i(t){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i(t)}var o=void 0!==/a/g.flags,a=function(t){var e=[];return t.forEach((function(t){return e.push(t)})),e},u=function(t){var e=[];return t.forEach((function(t,r){return e.push([r,t])})),e},s=Object.is?Object.is:r(609),f=Object.getOwnPropertySymbols?Object.getOwnPropertySymbols:function(){return[]},c=Number.isNaN?Number.isNaN:r(360);function l(t){return t.call.bind(t)}var h=l(Object.prototype.hasOwnProperty),p=l(Object.prototype.propertyIsEnumerable),y=l(Object.prototype.toString),d=r(9539).types,g=d.isAnyArrayBuffer,b=d.isArrayBufferView,v=d.isDate,_=d.isMap,m=d.isRegExp,w=d.isSet,E=d.isNativeError,S=d.isBoxedPrimitive,O=d.isNumberObject,B=d.isStringObject,x=d.isBooleanObject,A=d.isBigIntObject,I=d.isSymbolObject,R=d.isFloat32Array,T=d.isFloat64Array;function j(t){if(0===t.length||t.length>10)return!0;for(var e=0;e<t.length;e++){var r=t.charCodeAt(e);if(r<48||r>57)return!0}return 10===t.length&&t>=Math.pow(2,32)}function P(t){return Object.keys(t).filter(j).concat(f(t).filter(Object.prototype.propertyIsEnumerable.bind(t)))}function k(t,e){if(t===e)return 0;for(var r=t.length,n=e.length,i=0,o=Math.min(r,n);i<o;++i)if(t[i]!==e[i]){r=t[i],n=e[i];break}return r<n?-1:n<r?1:0}function C(t,e,r,n){if(t===e)return 0!==t||!r||s(t,e);if(r){if("object"!==i(t))return"number"==typeof t&&c(t)&&c(e);if("object"!==i(e)||null===t||null===e)return!1;if(Object.getPrototypeOf(t)!==Object.getPrototypeOf(e))return!1}else{if(null===t||"object"!==i(t))return(null===e||"object"!==i(e))&&t==e;if(null===e||"object"!==i(e))return!1}var a,u,f,l,h=y(t);if(h!==y(e))return!1;if(Array.isArray(t)){if(t.length!==e.length)return!1;var p=P(t),d=P(e);return p.length===d.length&&U(t,e,r,n,1,p)}if("[object Object]"===h&&(!_(t)&&_(e)||!w(t)&&w(e)))return!1;if(v(t)){if(!v(e)||Date.prototype.getTime.call(t)!==Date.prototype.getTime.call(e))return!1}else if(m(t)){if(!m(e)||(f=t,l=e,!(o?f.source===l.source&&f.flags===l.flags:RegExp.prototype.toString.call(f)===RegExp.prototype.toString.call(l))))return!1}else if(E(t)||t instanceof Error){if(t.message!==e.message||t.name!==e.name)return!1}else{if(b(t)){if(r||!R(t)&&!T(t)){if(!function(t,e){return t.byteLength===e.byteLength&&0===k(new Uint8Array(t.buffer,t.byteOffset,t.byteLength),new Uint8Array(e.buffer,e.byteOffset,e.byteLength))}(t,e))return!1}else if(!function(t,e){if(t.byteLength!==e.byteLength)return!1;for(var r=0;r<t.byteLength;r++)if(t[r]!==e[r])return!1;return!0}(t,e))return!1;var j=P(t),C=P(e);return j.length===C.length&&U(t,e,r,n,0,j)}if(w(t))return!(!w(e)||t.size!==e.size)&&U(t,e,r,n,2);if(_(t))return!(!_(e)||t.size!==e.size)&&U(t,e,r,n,3);if(g(t)){if(u=e,(a=t).byteLength!==u.byteLength||0!==k(new Uint8Array(a),new Uint8Array(u)))return!1}else if(S(t)&&!function(t,e){return O(t)?O(e)&&s(Number.prototype.valueOf.call(t),Number.prototype.valueOf.call(e)):B(t)?B(e)&&String.prototype.valueOf.call(t)===String.prototype.valueOf.call(e):x(t)?x(e)&&Boolean.prototype.valueOf.call(t)===Boolean.prototype.valueOf.call(e):A(t)?A(e)&&BigInt.prototype.valueOf.call(t)===BigInt.prototype.valueOf.call(e):I(e)&&Symbol.prototype.valueOf.call(t)===Symbol.prototype.valueOf.call(e)}(t,e))return!1}return U(t,e,r,n,0)}function D(t,e){return e.filter((function(e){return p(t,e)}))}function U(t,e,r,n,i,o){if(5===arguments.length){o=Object.keys(t);var a=Object.keys(e);if(o.length!==a.length)return!1}for(var u=0;u<o.length;u++)if(!h(e,o[u]))return!1;if(r&&5===arguments.length){var s=f(t);if(0!==s.length){var c=0;for(u=0;u<s.length;u++){var l=s[u];if(p(t,l)){if(!p(e,l))return!1;o.push(l),c++}else if(p(e,l))return!1}var y=f(e);if(s.length!==y.length&&D(e,y).length!==c)return!1}else{var d=f(e);if(0!==d.length&&0!==D(e,d).length)return!1}}if(0===o.length&&(0===i||1===i&&0===t.length||0===t.size))return!0;if(void 0===n)n={val1:new Map,val2:new Map,position:0};else{var g=n.val1.get(t);if(void 0!==g){var b=n.val2.get(e);if(void 0!==b)return g===b}n.position++}n.val1.set(t,n.position),n.val2.set(e,n.position);var v=W(t,e,r,o,n,i);return n.val1.delete(t),n.val2.delete(e),v}function L(t,e,r,n){for(var i=a(t),o=0;o<i.length;o++){var u=i[o];if(C(e,u,r,n))return t.delete(u),!0}return!1}function M(t){switch(i(t)){case"undefined":return null;case"object":return;case"symbol":return!1;case"string":t=+t;case"number":if(c(t))return!1}return!0}function N(t,e,r){var n=M(r);return null!=n?n:e.has(n)&&!t.has(n)}function F(t,e,r,n,i){var o=M(r);if(null!=o)return o;var a=e.get(o);return!(void 0===a&&!e.has(o)||!C(n,a,!1,i))&&!t.has(o)&&C(n,a,!1,i)}function q(t,e,r,n,i,o){for(var u=a(t),s=0;s<u.length;s++){var f=u[s];if(C(r,f,i,o)&&C(n,e.get(f),i,o))return t.delete(f),!0}return!1}function W(t,e,r,o,s,f){var c=0;if(2===f){if(!function(t,e,r,n){for(var o=null,u=a(t),s=0;s<u.length;s++){var f=u[s];if("object"===i(f)&&null!==f)null===o&&(o=new Set),o.add(f);else if(!e.has(f)){if(r)return!1;if(!N(t,e,f))return!1;null===o&&(o=new Set),o.add(f)}}if(null!==o){for(var c=a(e),l=0;l<c.length;l++){var h=c[l];if("object"===i(h)&&null!==h){if(!L(o,h,r,n))return!1}else if(!r&&!t.has(h)&&!L(o,h,r,n))return!1}return 0===o.size}return!0}(t,e,r,s))return!1}else if(3===f){if(!function(t,e,r,o){for(var a=null,s=u(t),f=0;f<s.length;f++){var c=n(s[f],2),l=c[0],h=c[1];if("object"===i(l)&&null!==l)null===a&&(a=new Set),a.add(l);else{var p=e.get(l);if(void 0===p&&!e.has(l)||!C(h,p,r,o)){if(r)return!1;if(!F(t,e,l,h,o))return!1;null===a&&(a=new Set),a.add(l)}}}if(null!==a){for(var y=u(e),d=0;d<y.length;d++){var g=n(y[d],2),b=(l=g[0],g[1]);if("object"===i(l)&&null!==l){if(!q(a,t,l,b,r,o))return!1}else if(!(r||t.has(l)&&C(t.get(l),b,!1,o)||q(a,t,l,b,!1,o)))return!1}return 0===a.size}return!0}(t,e,r,s))return!1}else if(1===f)for(;c<t.length;c++){if(!h(t,c)){if(h(e,c))return!1;for(var l=Object.keys(t);c<l.length;c++){var p=l[c];if(!h(e,p)||!C(t[p],e[p],r,s))return!1}return l.length===Object.keys(e).length}if(!h(e,c)||!C(t[c],e[c],r,s))return!1}for(c=0;c<o.length;c++){var y=o[c];if(!C(t[y],e[y],r,s))return!1}return!0}t.exports={isDeepEqual:function(t,e){return C(t,e,!1)},isDeepStrictEqual:function(t,e){return C(t,e,!0)}}},6399:(t,e,r)=>{"use strict";r.d(e,{J:()=>h});var n=r(6091),i=r(498),o=r(2171);function a(t){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},a(t)}function u(t,e){return u=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},u(t,e)}function s(t,e){return!e||"object"!==a(e)&&"function"!=typeof e?f(t):e}function f(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function c(t){return c=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},c(t)}function l(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var h=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&u(t,e)}(a,t);var e,r,i=(e=a,r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,n=c(e);if(r){var i=c(this).constructor;t=Reflect.construct(n,arguments,i)}else t=n.apply(this,arguments);return s(this,t)});function a(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,a),l(f(e=i.call(this)),"getRegistryType",(function(){return o.t.BYTES})),l(f(e),"getData",(function(){return e.bytes})),l(f(e),"toDataItem",(function(){return new n.zw(e.bytes)})),e.bytes=t,e}return a}(i.B);l(h,"fromDataItem",(function(t){var e=t.getData();if(!e)throw new Error("#[ur-registry][Bytes][fn.fromDataItem]: decoded [dataItem][#data] is undefined: ".concat(t));return new h(e)})),l(h,"fromCBOR",(function(t){var e=(0,n.mt)(t);return h.fromDataItem(e)}))},1036:(t,e,r)=>{"use strict";r.d(e,{B:()=>d});var n,i=r(8809),o=r(6091),a=r(498),u=r(2171),s=r(8764).Buffer;function f(t){return f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},f(t)}function c(t,e){return c=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},c(t,e)}function l(t,e){return!e||"object"!==f(e)&&"function"!=typeof e?h(t):e}function h(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function p(t){return p=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},p(t)}function y(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}!function(t){t[t.masterFingerprint=1]="masterFingerprint",t[t.outputDescriptors=2]="outputDescriptors"}(n||(n={}));var d=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&c(t,e)}(a,t);var e,r,i=(e=a,r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,n=p(e);if(r){var i=p(this).constructor;t=Reflect.construct(n,arguments,i)}else t=n.apply(this,arguments);return l(this,t)});function a(t,e){var r;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,a),y(h(r=i.call(this)),"getRegistryType",(function(){return u.t.CRYPTO_ACCOUNT})),y(h(r),"getMasterFingerprint",(function(){return r.masterFingerprint})),y(h(r),"getOutputDescriptors",(function(){return r.outputDescriptors})),y(h(r),"toDataItem",(function(){var t={};return r.masterFingerprint&&(t[n.masterFingerprint]=r.masterFingerprint.readUInt32BE(0)),r.outputDescriptors&&(t[n.outputDescriptors]=r.outputDescriptors.map((function(t){return t.toDataItem()}))),new o.zw(t)})),r.masterFingerprint=t,r.outputDescriptors=e,r}return a}(a.B);y(d,"fromDataItem",(function(t){var e=t.getData(),r=s.alloc(4),o=e[n.masterFingerprint];o&&r.writeUInt32BE(o,0);var a=e[n.outputDescriptors].map((function(t){return i.CryptoOutput.fromDataItem(t)}));return new d(r,a)})),y(d,"fromCBOR",(function(t){var e=(0,o.mt)(t);return d.fromDataItem(e)}))},9923:(t,e,r)=>{"use strict";r.d(e,{Dy:()=>i,Zc:()=>o,kp:()=>d});var n,i,o,a=r(6091),u=r(498),s=r(2171);function f(t){return f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},f(t)}function c(t,e){return c=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},c(t,e)}function l(t,e){return!e||"object"!==f(e)&&"function"!=typeof e?h(t):e}function h(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function p(t){return p=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},p(t)}function y(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}!function(t){t.type="1",t.network="2"}(n||(n={})),function(t){t[t.bitcoin=0]="bitcoin"}(i||(i={})),function(t){t[t.mainnet=0]="mainnet",t[t.testnet=1]="testnet"}(o||(o={}));var d=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&c(t,e)}(f,t);var e,r,u=(e=f,r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,n=p(e);if(r){var i=p(this).constructor;t=Reflect.construct(n,arguments,i)}else t=n.apply(this,arguments);return l(this,t)});function f(t,e){var r;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,f),y(h(r=u.call(this)),"getRegistryType",(function(){return s.t.CRYPTO_COIN_INFO})),y(h(r),"getType",(function(){return r.type||i.bitcoin})),y(h(r),"getNetwork",(function(){return r.network||o.mainnet})),y(h(r),"toDataItem",(function(){var t={};return r.type&&(t[n.type]=r.type),r.network&&(t[n.network]=r.network),new a.zw(t)})),r.type=t,r.network=e,r}return f}(u.B);y(d,"fromDataItem",(function(t){var e=t.getData(),r=e[n.type],i=e[n.network];return new d(r,i)})),y(d,"fromCBOR",(function(t){var e=(0,a.mt)(t);return d.fromDataItem(e)}))},3825:(t,e,r)=>{"use strict";r.d(e,{u:()=>p});var n,i=r(6091),o=r(498),a=r(2171);function u(t){return u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},u(t)}function s(t,e){return s=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},s(t,e)}function f(t,e){return!e||"object"!==u(e)&&"function"!=typeof e?c(t):e}function c(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function l(t){return l=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},l(t)}function h(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}!function(t){t[t.curve=1]="curve",t[t.private=2]="private",t[t.data=3]="data"}(n||(n={}));var p=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&s(t,e)}(u,t);var e,r,o=(e=u,r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,n=l(e);if(r){var i=l(this).constructor;t=Reflect.construct(n,arguments,i)}else t=n.apply(this,arguments);return f(this,t)});function u(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,u),h(c(e=o.call(this)),"isECKey",(function(){return!0})),h(c(e),"getCurve",(function(){return e.curve||0})),h(c(e),"isPrivateKey",(function(){return e.privateKey||!1})),h(c(e),"getData",(function(){return e.data})),h(c(e),"getRegistryType",(function(){return a.t.CRYPTO_ECKEY})),h(c(e),"toDataItem",(function(){var t={};return e.curve&&(t[n.curve]=e.curve),void 0!==e.privateKey&&(t[n.private]=e.privateKey),t[n.data]=e.data,new i.zw(t)})),h(c(e),"getOutputDescriptorContent",(function(){return e.data.toString("hex")})),e.data=t.data,e.curve=t.curve,e.privateKey=t.privateKey||void 0,e}return u}(o.B);h(p,"fromDataItem",(function(t){var e=t.getData(),r=e[n.curve],i=e[n.private],o=e[n.data];if(!o)throw new Error("#[ur-registry][CryptoECKey][fn.fromDataItem]: decoded [dataItem][#data.data] is undefined: ".concat(t));return new p({data:o,curve:r,privateKey:i})})),h(p,"fromCBOR",(function(t){var e=(0,i.mt)(t);return p.fromDataItem(e)}))},913:(t,e,r)=>{"use strict";r.d(e,{r:()=>b});var n,i=r(8334),o=r(9923),a=r(9207),u=r(6091),s=r(498),f=r(2171),c=r(8764).Buffer;function l(t){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},l(t)}function h(t,e){return h=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},h(t,e)}function p(t,e){return!e||"object"!==l(e)&&"function"!=typeof e?y(t):e}function y(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function d(t){return d=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},d(t)}function g(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}!function(t){t[t.is_master=1]="is_master",t[t.is_private=2]="is_private",t[t.key_data=3]="key_data",t[t.chain_code=4]="chain_code",t[t.use_info=5]="use_info",t[t.origin=6]="origin",t[t.children=7]="children",t[t.parent_fingerprint=8]="parent_fingerprint",t[t.name=9]="name",t[t.note=10]="note"}(n||(n={}));var b=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&h(t,e)}(a,t);var e,r,o=(e=a,r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,n=d(e);if(r){var i=d(this).constructor;t=Reflect.construct(n,arguments,i)}else t=n.apply(this,arguments);return p(this,t)});function a(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,a),g(y(e=o.call(this)),"isECKey",(function(){return!1})),g(y(e),"getKey",(function(){return e.key})),g(y(e),"getChainCode",(function(){return e.chainCode})),g(y(e),"isMaster",(function(){return e.master})),g(y(e),"isPrivateKey",(function(){return!!e.privateKey})),g(y(e),"getUseInfo",(function(){return e.useInfo})),g(y(e),"getOrigin",(function(){return e.origin})),g(y(e),"getChildren",(function(){return e.children})),g(y(e),"getParentFingerprint",(function(){return e.parentFingerprint})),g(y(e),"getName",(function(){return e.name})),g(y(e),"getNote",(function(){return e.note})),g(y(e),"getBip32Key",(function(){var t,r,n=0,o=c.alloc(4).fill(0);if(e.isMaster())t=c.from("0488ADE4","hex"),r=0,n=0;else{var a,u,s;r=(null===(a=e.getOrigin())||void 0===a?void 0:a.getComponents().length)||(null===(u=e.getOrigin())||void 0===u?void 0:u.getDepth());var f=null===(s=e.getOrigin())||void 0===s?void 0:s.getComponents(),l=f[f.length-1];l&&(n=l.isHardened()?l.getIndex()+2147483648:l.getIndex(),e.getParentFingerprint()&&(o=e.getParentFingerprint())),t=e.isPrivateKey()?c.from("0488ADE4","hex"):c.from("0488B21E","hex")}var h=c.alloc(1);h.writeUInt8(r,0);var p=c.alloc(4);p.writeUInt32BE(n,0);var y=e.getChainCode(),d=e.getKey();return(0,i.encode)(c.concat([t,h,o,p,y,d]))})),g(y(e),"getRegistryType",(function(){return f.t.CRYPTO_HDKEY})),g(y(e),"getOutputDescriptorContent",(function(){var t,r,n,i,o,a,u,s="";return e.getOrigin()&&null!==(t=e.getOrigin())&&void 0!==t&&t.getSourceFingerprint()&&null!==(r=e.getOrigin())&&void 0!==r&&r.getPath()&&(s+="".concat(null===(n=e.getOrigin())||void 0===n||null===(i=n.getSourceFingerprint())||void 0===i?void 0:i.toString("hex"),"/").concat(null===(o=e.getOrigin())||void 0===o?void 0:o.getPath())),s+=e.getBip32Key(),e.getChildren()&&null!==(a=e.getChildren())&&void 0!==a&&a.getPath()&&(s+="/".concat(null===(u=e.getChildren())||void 0===u?void 0:u.getPath())),s})),g(y(e),"setupMasterKey",(function(t){e.master=!0,e.key=t.key,e.chainCode=t.chainCode})),g(y(e),"setupDeriveKey",(function(t){e.master=!1,e.privateKey=t.isPrivateKey,e.key=t.key,e.chainCode=t.chainCode,e.useInfo=t.useInfo,e.origin=t.origin,e.children=t.children,e.parentFingerprint=t.parentFingerprint,e.name=t.name,e.note=t.note})),g(y(e),"toDataItem",(function(){var t={};if(e.master)t[n.is_master]=!0,t[n.key_data]=e.key,t[n.chain_code]=e.chainCode;else{if(void 0!==e.privateKey&&(t[n.is_private]=e.privateKey),t[n.key_data]=e.key,e.chainCode&&(t[n.chain_code]=e.chainCode),e.useInfo){var r=e.useInfo.toDataItem();r.setTag(e.useInfo.getRegistryType().getTag()),t[n.use_info]=r}if(e.origin){var i=e.origin.toDataItem();i.setTag(e.origin.getRegistryType().getTag()),t[n.origin]=i}if(e.children){var o=e.children.toDataItem();o.setTag(e.children.getRegistryType().getTag()),t[n.children]=o}e.parentFingerprint&&(t[n.parent_fingerprint]=e.parentFingerprint.readUInt32BE(0)),void 0!==e.name&&(t[n.name]=e.name),void 0!==e.note&&(t[n.note]=e.note)}return new u.zw(t)})),t.isMaster?e.setupMasterKey(t):e.setupDeriveKey(t),e}return a}(s.B);g(b,"fromDataItem",(function(t){var e=t.getData(),r=!!e[n.is_master],i=e[n.is_private],u=e[n.key_data],s=e[n.chain_code],f=e[n.use_info]?o.kp.fromDataItem(e[n.use_info]):void 0,l=e[n.origin]?a.s.fromDataItem(e[n.origin]):void 0,h=e[n.children]?a.s.fromDataItem(e[n.children]):void 0,p=e[n.parent_fingerprint],y=void 0;p&&(y=c.alloc(4)).writeUInt32BE(p,0);var d=e[n.name],g=e[n.note];return new b({isMaster:r,isPrivateKey:i,key:u,chainCode:s,useInfo:f,origin:l,children:h,parentFingerprint:y,name:d,note:g})})),g(b,"fromCBOR",(function(t){var e=(0,u.mt)(t);return b.fromDataItem(e)}))},9207:(t,e,r)=>{"use strict";r.d(e,{s:()=>g});var n,i=r(6091),o=r(4638),a=r(498),u=r(2171),s=r(8764).Buffer;function f(t){return f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},f(t)}function c(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function l(t,e){return l=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},l(t,e)}function h(t,e){return!e||"object"!==f(e)&&"function"!=typeof e?p(t):e}function p(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function y(t){return y=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},y(t)}function d(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}!function(t){t[t.components=1]="components",t[t.source_fingerprint=2]="source_fingerprint",t[t.depth=3]="depth"}(n||(n={}));var g=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&l(t,e)}(a,t);var e,r,o=(e=a,r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,n=y(e);if(r){var i=y(this).constructor;t=Reflect.construct(n,arguments,i)}else t=n.apply(this,arguments);return h(this,t)});function a(){var t,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],r=arguments.length>1?arguments[1]:void 0,s=arguments.length>2?arguments[2]:void 0;return c(this,a),d(p(t=o.call(this)),"getRegistryType",(function(){return u.t.CRYPTO_KEYPATH})),d(p(t),"getPath",(function(){if(0!==t.components.length)return t.components.map((function(t){return"".concat(t.isWildcard()?"*":t.getIndex()).concat(t.isHardened()?"'":"")})).join("/")})),d(p(t),"getComponents",(function(){return t.components})),d(p(t),"getSourceFingerprint",(function(){return t.sourceFingerprint})),d(p(t),"getDepth",(function(){return t.depth})),d(p(t),"toDataItem",(function(){var e={},r=[];return t.components&&t.components.forEach((function(t){t.isWildcard()?r.push([]):r.push(t.getIndex()),r.push(t.isHardened())})),e[n.components]=r,t.sourceFingerprint&&(e[n.source_fingerprint]=t.sourceFingerprint.readUInt32BE(0)),void 0!==t.depth&&(e[n.depth]=t.depth),new i.zw(e)})),t.components=e,t.sourceFingerprint=r,t.depth=s,t}return a}(a.B);d(g,"fromDataItem",(function(t){var e=t.getData(),r=[],i=e[n.components];if(i)for(var a=0;a<i.length;a+=2){var u=i[a+1],f=i[a];"number"==typeof f?r.push(new o.l({index:f,hardened:u})):r.push(new o.l({hardened:u}))}var c,l=e[n.source_fingerprint];l&&(c=s.alloc(4)).writeUInt32BE(l,0);var h=e[n.depth];return new g(r,c,h)})),d(g,"fromCBOR",(function(t){var e=(0,i.mt)(t);return g.fromDataItem(e)}))},3511:(t,e,r)=>{"use strict";r.d(e,{k:()=>b});var n=r(3825),i=r(913),o=r(6091),a=r(4916),u=r(498),s=r(2171),f=r(4673);function c(t){return c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},c(t)}function l(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function h(t,e){return h=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},h(t,e)}function p(t,e){return!e||"object"!==c(e)&&"function"!=typeof e?y(t):e}function y(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function d(t){return d=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},d(t)}function g(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var b=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&h(t,e)}(f,t);var e,r,u=(e=f,r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,n=d(e);if(r){var i=d(this).constructor;t=Reflect.construct(n,arguments,i)}else t=n.apply(this,arguments);return p(this,t)});function f(t,e){var r;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,f),g(y(r=u.call(this)),"getRegistryType",(function(){return s.t.CRYPTO_OUTPUT})),g(y(r),"getCryptoKey",(function(){return r.cryptoKey})),g(y(r),"getHDKey",(function(){return r.cryptoKey instanceof i.r?r.cryptoKey:void 0})),g(y(r),"getECKey",(function(){return r.cryptoKey instanceof n.u?r.cryptoKey:void 0})),g(y(r),"getMultiKey",(function(){return r.cryptoKey instanceof a.m?r.cryptoKey:void 0})),g(y(r),"getScriptExpressions",(function(){return r.scriptExpressions})),g(y(r),"_toOutputDescriptor",(function(t){return t>=r.scriptExpressions.length?r.cryptoKey.getOutputDescriptorContent():"".concat(r.scriptExpressions[t].getExpression(),"(").concat(r._toOutputDescriptor(t+1),")")})),g(y(r),"toString",(function(){return r._toOutputDescriptor(0)})),g(y(r),"toDataItem",(function(){var t,e=r.cryptoKey.toDataItem();return(r.cryptoKey instanceof n.u||r.cryptoKey instanceof i.r)&&e.setTag(r.cryptoKey.getRegistryType().getTag()),(t=r.scriptExpressions,function(t){if(Array.isArray(t))return l(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return l(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?l(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()).reverse().forEach((function(t){var r=t.getTag();void 0===e.getTag()?e.setTag(r):e=new o.zw(e,r)})),e})),r.scriptExpressions=t,r.cryptoKey=e,r}return f}(u.B);g(b,"fromDataItem",(function(t){for(var e=[],r=t;;){var u=r.getTag(),c=f.Y.fromTag(u);if(!c)break;if(e.push(c),!(r.getData()instanceof o.zw))break;u=(r=r.getData()).getTag()}var l=e.length;if(l>0&&(e[l-1].getExpression()===f.I.MULTISIG.getExpression()||e[l-1].getExpression()===f.I.SORTED_MULTISIG.getExpression())){var h=a.m.fromDataItem(r);return new b(e,h)}if(r.getTag()===s.t.CRYPTO_HDKEY.getTag()){var p=i.r.fromDataItem(r);return new b(e,p)}var y=n.u.fromDataItem(r);return new b(e,y)})),g(b,"fromCBOR",(function(t){var e=(0,o.mt)(t);return b.fromDataItem(e)}))},3979:(t,e,r)=>{"use strict";r.d(e,{Y:()=>h});var n=r(6091),i=r(498),o=r(2171);function a(t){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},a(t)}function u(t,e){return u=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},u(t,e)}function s(t,e){return!e||"object"!==a(e)&&"function"!=typeof e?f(t):e}function f(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function c(t){return c=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},c(t)}function l(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var h=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&u(t,e)}(a,t);var e,r,i=(e=a,r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,n=c(e);if(r){var i=c(this).constructor;t=Reflect.construct(n,arguments,i)}else t=n.apply(this,arguments);return s(this,t)});function a(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,a),l(f(e=i.call(this)),"getRegistryType",(function(){return o.t.CRYPTO_PSBT})),l(f(e),"getPSBT",(function(){return e.psbt})),l(f(e),"toDataItem",(function(){return new n.zw(e.psbt)})),e.psbt=t,e}return a}(i.B);l(h,"fromDataItem",(function(t){var e=t.getData();if(!e)throw new Error("#[ur-registry][CryptoPSBT][fn.fromDataItem]: decoded [dataItem][#data] is undefined: ".concat(t));return new h(e)})),l(h,"fromCBOR",(function(t){var e=(0,n.mt)(t);return h.fromDataItem(e)}))},7925:(t,e,r)=>{"use strict";r.d(e,{t:()=>y});var n=r(6139),i=r(8809),o=r(2171),a=r(3409);function u(t){return u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},u(t)}function s(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function f(t,e){return f=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},f(t,e)}function c(t,e){return!e||"object"!==u(e)&&"function"!=typeof e?l(t):e}function l(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function h(t){return h=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},h(t)}function p(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var y=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&f(t,e)}(u,t);var e,r,n=(e=u,r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,n=h(e);if(r){var i=h(this).constructor;t=Reflect.construct(n,arguments,i)}else t=n.apply(this,arguments);return c(this,t)});function u(){var t;s(this,u);for(var e=arguments.length,r=new Array(e),f=0;f<e;f++)r[f]=arguments[f];return p(l(t=n.call.apply(n,[this].concat(r))),"resultRegistryType",(function(){var e=t.resultUR();switch(e.type){case o.t.BYTES.getType():return i.Bytes.fromCBOR(e.cbor);case o.t.CRYPTO_HDKEY.getType():return i.CryptoHDKey.fromCBOR(e.cbor);case o.t.CRYPTO_KEYPATH.getType():return i.CryptoKeypath.fromCBOR(e.cbor);case o.t.CRYPTO_COIN_INFO.getType():return i.CryptoCoinInfo.fromCBOR(e.cbor);case o.t.CRYPTO_ECKEY.getType():return i.CryptoECKey.fromCBOR(e.cbor);case o.t.CRYPTO_OUTPUT.getType():return i.CryptoOutput.fromCBOR(e.cbor);case o.t.CRYPTO_PSBT.getType():return i.CryptoPSBT.fromCBOR(e.cbor);case o.t.CRYPTO_ACCOUNT.getType():return i.CryptoAccount.fromCBOR(e.cbor);default:throw new a.p("#[ur-registry][Decoder][fn.resultRegistryType]: registry type ".concat(e.type," is not supported now"))}})),t}return u}(n.URDecoder)},4916:(t,e,r)=>{"use strict";r.d(e,{m:()=>d});var n,i=r(3825),o=r(913),a=r(5694),u=r(498),s=r(2171);function f(t){return f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},f(t)}function c(t,e){return c=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},c(t,e)}function l(t,e){return!e||"object"!==f(e)&&"function"!=typeof e?h(t):e}function h(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function p(t){return p=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},p(t)}function y(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}!function(t){t[t.threshold=1]="threshold",t[t.keys=2]="keys"}(n||(n={}));var d=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&c(t,e)}(o,t);var e,r,i=(e=o,r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,n=p(e);if(r){var i=p(this).constructor;t=Reflect.construct(n,arguments,i)}else t=n.apply(this,arguments);return l(this,t)});function o(t,e){var r;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,o),y(h(r=i.call(this)),"getThreshold",(function(){return r.threshold})),y(h(r),"getKeys",(function(){return r.keys})),y(h(r),"toDataItem",(function(){var t={};t[n.threshold]=r.threshold;var e=r.keys.map((function(t){var e=t.toDataItem();return e.setTag(t.getRegistryType().getTag()),e}));return t[n.keys]=e,new a.DataItem(t)})),y(h(r),"getOutputDescriptorContent",(function(){return[r.getThreshold(),r.keys.map((function(t){return t.getOutputDescriptorContent()})).join(",")].join(",")})),r.threshold=t,r.keys=e,r}return o}(u.B);y(d,"fromDataItem",(function(t){var e=t.getData(),r=e[n.threshold],a=e[n.keys],u=[];return a.forEach((function(t){t.getTag()===s.t.CRYPTO_HDKEY.getTag()?u.push(o.r.fromDataItem(t)):t.getTag()===s.t.CRYPTO_ECKEY.getTag()&&u.push(i.u.fromDataItem(t))})),new d(r,u)}))},4638:(t,e,r)=>{"use strict";function n(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}r.d(e,{l:()=>i});var i=function t(e){var r=this;if(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),n(this,"getIndex",(function(){return r.index})),n(this,"isWildcard",(function(){return r.wildcard})),n(this,"isHardened",(function(){return r.hardened})),this.index=e.index,this.hardened=e.hardened,void 0!==this.index?this.wildcard=!1:this.wildcard=!0,this.index&&0!=(this.index&t.HARDENED_BIT))throw new Error("#[ur-registry][PathComponent][fn.constructor]: Invalid index ".concat(this.index," - most significant bit cannot be set"))};n(i,"HARDENED_BIT",2147483648)},498:(t,e,r)=>{"use strict";r.d(e,{B:()=>a});var n=r(6139),i=r(6091);function o(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var a=function t(){var e=this;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),o(this,"toCBOR",(function(){if(void 0===e.toDataItem())throw new Error("#[ur-registry][RegistryItem][fn.toCBOR]: registry ".concat(e.getRegistryType(),"'s method toDataItem returns undefined"));return(0,i.Sj)(e.toDataItem())})),o(this,"toUR",(function(){return new n.UR(e.toCBOR(),e.getRegistryType().getType())})),o(this,"toUREncoder",(function(t,r,i){var o=e.toUR();return new n.UREncoder(o,t,r,i)}))}},2171:(t,e,r)=>{"use strict";function n(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}r.d(e,{t:()=>o,z:()=>i});var i=function t(e,r){var i=this;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),n(this,"getTag",(function(){return i.tag})),n(this,"getType",(function(){return i.type})),this.type=e,this.tag=r},o={UUID:new i("uuid",37),BYTES:new i("bytes",void 0),CRYPTO_HDKEY:new i("crypto-hdkey",303),CRYPTO_KEYPATH:new i("crypto-keypath",304),CRYPTO_COIN_INFO:new i("crypto-coin-info",305),CRYPTO_ECKEY:new i("crypto-eckey",306),CRYPTO_OUTPUT:new i("crypto-output",308),CRYPTO_PSBT:new i("crypto-psbt",310),CRYPTO_ACCOUNT:new i("crypto-account",311),CRYPTO_MULTI_ACCOUNTS:new i("crypto-multi-accounts",1103)}},4673:(t,e,r)=>{"use strict";function n(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}r.d(e,{I:()=>o,Y:()=>i});var i=function t(e,r){var i=this;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),n(this,"getTag",(function(){return i.tag})),n(this,"getExpression",(function(){return i.expression})),this.tag=e,this.expression=r};n(i,"fromTag",(function(t){return Object.values(o).find((function(e){return e.getTag()===t}))}));var o={SCRIPT_HASH:new i(400,"sh"),WITNESS_SCRIPT_HASH:new i(401,"wsh"),PUBLIC_KEY:new i(402,"pk"),PUBLIC_KEY_HASH:new i(403,"pkh"),WITNESS_PUBLIC_KEY_HASH:new i(404,"wpkh"),COMBO:new i(405,"combo"),MULTISIG:new i(406,"multi"),SORTED_MULTISIG:new i(407,"sortedmulti"),ADDRESS:new i(307,"addr"),RAW_SCRIPT:new i(408,"raw")}},3409:(t,e,r)=>{"use strict";function n(t){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n(t)}function i(t,e){return!e||"object"!==n(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function o(t){var e="function"==typeof Map?new Map:void 0;return o=function(t){if(null===t||(r=t,-1===Function.toString.call(r).indexOf("[native code]")))return t;var r;if("function"!=typeof t)throw new TypeError("Super expression must either be null or a function");if(void 0!==e){if(e.has(t))return e.get(t);e.set(t,n)}function n(){return a(t,arguments,f(this).constructor)}return n.prototype=Object.create(t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),s(n,t)},o(t)}function a(t,e,r){return a=u()?Reflect.construct:function(t,e,r){var n=[null];n.push.apply(n,e);var i=new(Function.bind.apply(t,n));return r&&s(i,r.prototype),i},a.apply(null,arguments)}function u(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}function s(t,e){return s=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},s(t,e)}function f(t){return f=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},f(t)}r.d(e,{p:()=>c});var c=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&s(t,e)}(o,t);var e,r,n=(e=o,r=u(),function(){var t,n=f(e);if(r){var o=f(this).constructor;t=Reflect.construct(n,arguments,o)}else t=n.apply(this,arguments);return i(this,t)});function o(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,o),n.call(this,t)}return o}(o(Error))},2460:(t,e,r)=>{"use strict";r.d(e,{P:()=>d});var n,i=r(2171),o=r(913),a=r(498),u=r(6091),s=r(8764).Buffer;function f(t){return f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},f(t)}function c(t,e){return c=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},c(t,e)}function l(t,e){return!e||"object"!==f(e)&&"function"!=typeof e?h(t):e}function h(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function p(t){return p=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},p(t)}function y(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}!function(t){t[t.masterFingerprint=1]="masterFingerprint",t[t.keys=2]="keys",t[t.device=3]="device"}(n||(n={}));var d=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&c(t,e)}(a,t);var e,r,o=(e=a,r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,n=p(e);if(r){var i=p(this).constructor;t=Reflect.construct(n,arguments,i)}else t=n.apply(this,arguments);return l(this,t)});function a(t,e,r){var s;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,a),y(h(s=o.call(this)),"getRegistryType",(function(){return i.t.CRYPTO_MULTI_ACCOUNTS})),y(h(s),"getMasterFingerprint",(function(){return s.masterFingerprint})),y(h(s),"getKeys",(function(){return s.keys})),y(h(s),"getDevice",(function(){return s.device})),y(h(s),"toDataItem",(function(){var t={};return s.masterFingerprint&&(t[n.masterFingerprint]=s.masterFingerprint.readUInt32BE(0)),s.keys&&(t[n.keys]=s.keys.map((function(t){var e=t.toDataItem();return e.setTag(t.getRegistryType().getTag()),e}))),s.device&&(t[n.device]=s.device),new u.zw(t)})),s.masterFingerprint=t,s.keys=e,s.device=r,s}return a}(a.B);y(d,"fromDataItem",(function(t){var e=t.getData(),r=s.alloc(4),i=e[n.masterFingerprint];i&&r.writeUInt32BE(i,0);var a=e[n.keys].map((function(t){return o.r.fromDataItem(t)})),u=e[n.device];return new d(r,a,u)})),y(d,"fromCBOR",(function(t){var e=(0,u.mt)(t);return d.fromDataItem(e)}))},8809:(t,e,r)=>{"use strict";r.r(e),r.d(e,{Buffer:()=>n.Buffer,Bytes:()=>s.J,CryptoAccount:()=>l.B,CryptoCoinInfo:()=>a.kp,CryptoCoinInfoNetwork:()=>a.Zc,CryptoCoinInfoType:()=>a.Dy,CryptoECKey:()=>u.u,CryptoHDKey:()=>i.r,CryptoKeypath:()=>o.s,CryptoMultiAccounts:()=>m.P,CryptoOutput:()=>f.k,CryptoPSBT:()=>c.Y,DataItem:()=>v.zw,MultiKey:()=>p.m,Network:()=>a.Zc,PathComponent:()=>d.l,RegistryItem:()=>g.B,RegistryType:()=>b.z,RegistryTypes:()=>b.t,ScriptExpressions:()=>y.I,Type:()=>a.Dy,URRegistryDecoder:()=>h.t,UnknownURTypeError:()=>w.p,addReader:()=>v.KM,addSemanticDecode:()=>v.e_,addSemanticEncode:()=>v.rJ,addWriter:()=>v.wZ,decodeToDataItem:()=>v.mt,default:()=>A,encodeDataItem:()=>v.Sj,extend:()=>x,patchTags:()=>_.Z}),r(6256);var n=r(8764),i=r(913),o=r(9207),a=r(9923),u=r(3825),s=r(6399),f=r(3511),c=r(3979),l=r(1036),h=r(7925),p=r(4916),y=r(4673),d=r(4638),g=r(498),b=r(2171),v=r(6091),_=r(2637),m=r(2460),w=r(3409),E=r(6606),S={};for(const t in E)["default","DataItem","URRegistryDecoder","Bytes","CryptoAccount","CryptoHDKey","CryptoMultiAccounts","CryptoKeypath","CryptoCoinInfo","CryptoCoinInfoType","CryptoCoinInfoNetwork","CryptoECKey","CryptoOutput","CryptoPSBT","MultiKey","ScriptExpressions","PathComponent","extend","Buffer","UnknownURTypeError","addReader","addSemanticDecode","addSemanticEncode","addWriter","decodeToDataItem","encodeDataItem","Network","Type","RegistryItem","RegistryType","RegistryTypes"].indexOf(t)<0&&(S[t]=()=>E[t]);r.d(e,S);var O={URRegistryDecoder:h.t,Bytes:s.J,CryptoAccount:l.B,CryptoHDKey:i.r,CryptoMultiAccounts:m.P,CryptoKeypath:o.s,CryptoCoinInfo:a.kp,CryptoCoinInfoType:a.Dy,CryptoCoinInfoNetwork:a.Zc,CryptoECKey:u.u,CryptoOutput:f.k,CryptoPSBT:c.Y,MultiKey:p.m,ScriptExpressions:y.I,PathComponent:d.l},B={addReader:v.KM,addSemanticDecode:v.e_,addSemanticEncode:v.rJ,addWriter:v.wZ,patchTags:_.Z},x={RegistryTypes:b.t,RegistryItem:g.B,RegistryType:b.z,decodeToDataItem:v.mt,encodeDataItem:v.Sj,cbor:B};const A=O},5694:(t,e,r)=>{"use strict";function n(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}r.r(e),r.d(e,{DataItem:()=>i});var i=function t(e,r){var i=this;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),n(this,"setTag",(function(t){i.tag=t})),n(this,"clearTag",(function(){i.tag=void 0})),n(this,"getTag",(function(){return i.tag})),n(this,"getData",(function(){return i.data})),this.data=e,this.tag=r}},6091:(t,e,r)=>{"use strict";r.d(e,{KM:()=>n.addReader,Sj:()=>n.encodeDataItem,e_:()=>n.addSemanticDecode,mt:()=>n.decodeToDataItem,rJ:()=>n.addSemanticEncode,wZ:()=>n.addWriter,zw:()=>i.DataItem});var n=r(1367),i=r(5694)},6256:(t,e,r)=>{"use strict";var n=r(2637),i=r(2171),o=r(4673),a=Object.values(i.t).filter((function(t){return!!t.getTag()})).map((function(t){return t.getTag()})),u=Object.values(o.I).map((function(t){return t.getTag()}));(0,n.Z)(a.concat(u))},6606:()=>{},2637:(t,e,r)=>{"use strict";r.d(e,{Z:()=>o});var n=r(6091),i=[],o=function(t){t.forEach((function(t){i.find((function(e){return e===t}))||((0,n.rJ)(t,(function(e){if(e instanceof n.zw&&e.getTag()===t)return e.getData()})),(0,n.e_)(t,(function(e){return new n.zw(e,t)})),i.push(t))}))}},9742:(t,e)=>{"use strict";e.byteLength=function(t){var e=s(t),r=e[0],n=e[1];return 3*(r+n)/4-n},e.toByteArray=function(t){var e,r,o=s(t),a=o[0],u=o[1],f=new i(function(t,e,r){return 3*(e+r)/4-r}(0,a,u)),c=0,l=u>0?a-4:a;for(r=0;r<l;r+=4)e=n[t.charCodeAt(r)]<<18|n[t.charCodeAt(r+1)]<<12|n[t.charCodeAt(r+2)]<<6|n[t.charCodeAt(r+3)],f[c++]=e>>16&255,f[c++]=e>>8&255,f[c++]=255&e;return 2===u&&(e=n[t.charCodeAt(r)]<<2|n[t.charCodeAt(r+1)]>>4,f[c++]=255&e),1===u&&(e=n[t.charCodeAt(r)]<<10|n[t.charCodeAt(r+1)]<<4|n[t.charCodeAt(r+2)]>>2,f[c++]=e>>8&255,f[c++]=255&e),f},e.fromByteArray=function(t){for(var e,n=t.length,i=n%3,o=[],a=16383,u=0,s=n-i;u<s;u+=a)o.push(f(t,u,u+a>s?s:u+a));return 1===i?(e=t[n-1],o.push(r[e>>2]+r[e<<4&63]+"==")):2===i&&(e=(t[n-2]<<8)+t[n-1],o.push(r[e>>10]+r[e>>4&63]+r[e<<2&63]+"=")),o.join("")};for(var r=[],n=[],i="undefined"!=typeof Uint8Array?Uint8Array:Array,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0,u=o.length;a<u;++a)r[a]=o[a],n[o.charCodeAt(a)]=a;function s(t){var e=t.length;if(e%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var r=t.indexOf("=");return-1===r&&(r=e),[r,r===e?0:4-r%4]}function f(t,e,n){for(var i,o,a=[],u=e;u<n;u+=3)i=(t[u]<<16&16711680)+(t[u+1]<<8&65280)+(255&t[u+2]),a.push(r[(o=i)>>18&63]+r[o>>12&63]+r[o>>6&63]+r[63&o]);return a.join("")}n["-".charCodeAt(0)]=62,n["_".charCodeAt(0)]=63},4431:function(t,e,r){var n;!function(i){"use strict";var o,a=/^-?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?$/i,u=Math.ceil,s=Math.floor,f="[BigNumber Error] ",c=f+"Number primitive has more than 15 significant digits: ",l=1e14,h=14,p=9007199254740991,y=[1,10,100,1e3,1e4,1e5,1e6,1e7,1e8,1e9,1e10,1e11,1e12,1e13],d=1e7,g=1e9;function b(t){var e=0|t;return t>0||t===e?e:e-1}function v(t){for(var e,r,n=1,i=t.length,o=t[0]+"";n<i;){for(e=t[n++]+"",r=h-e.length;r--;e="0"+e);o+=e}for(i=o.length;48===o.charCodeAt(--i););return o.slice(0,i+1||1)}function _(t,e){var r,n,i=t.c,o=e.c,a=t.s,u=e.s,s=t.e,f=e.e;if(!a||!u)return null;if(r=i&&!i[0],n=o&&!o[0],r||n)return r?n?0:-u:a;if(a!=u)return a;if(r=a<0,n=s==f,!i||!o)return n?0:!i^r?1:-1;if(!n)return s>f^r?1:-1;for(u=(s=i.length)<(f=o.length)?s:f,a=0;a<u;a++)if(i[a]!=o[a])return i[a]>o[a]^r?1:-1;return s==f?0:s>f^r?1:-1}function m(t,e,r,n){if(t<e||t>r||t!==s(t))throw Error(f+(n||"Argument")+("number"==typeof t?t<e||t>r?" out of range: ":" not an integer: ":" not a primitive number: ")+String(t))}function w(t){var e=t.c.length-1;return b(t.e/h)==e&&t.c[e]%2!=0}function E(t,e){return(t.length>1?t.charAt(0)+"."+t.slice(1):t)+(e<0?"e":"e+")+e}function S(t,e,r){var n,i;if(e<0){for(i=r+".";++e;i+=r);t=i+t}else if(++e>(n=t.length)){for(i=r,e-=n;--e;i+=r);t+=i}else e<n&&(t=t.slice(0,e)+"."+t.slice(e));return t}o=function t(e){var r,n,i,o,O,B,x,A,I,R,T=z.prototype={constructor:z,toString:null,valueOf:null},j=new z(1),P=20,k=4,C=-7,D=21,U=-1e7,L=1e7,M=!1,N=1,F=0,q={prefix:"",groupSize:3,secondaryGroupSize:0,groupSeparator:",",decimalSeparator:".",fractionGroupSize:0,fractionGroupSeparator:" ",suffix:""},W="0123456789abcdefghijklmnopqrstuvwxyz";function z(t,e){var r,o,u,f,l,y,d,g,b=this;if(!(b instanceof z))return new z(t,e);if(null==e){if(t&&!0===t._isBigNumber)return b.s=t.s,void(!t.c||t.e>L?b.c=b.e=null:t.e<U?b.c=[b.e=0]:(b.e=t.e,b.c=t.c.slice()));if((y="number"==typeof t)&&0*t==0){if(b.s=1/t<0?(t=-t,-1):1,t===~~t){for(f=0,l=t;l>=10;l/=10,f++);return void(f>L?b.c=b.e=null:(b.e=f,b.c=[t]))}g=String(t)}else{if(!a.test(g=String(t)))return i(b,g,y);b.s=45==g.charCodeAt(0)?(g=g.slice(1),-1):1}(f=g.indexOf("."))>-1&&(g=g.replace(".","")),(l=g.search(/e/i))>0?(f<0&&(f=l),f+=+g.slice(l+1),g=g.substring(0,l)):f<0&&(f=g.length)}else{if(m(e,2,W.length,"Base"),10==e)return H(b=new z(t),P+b.e+1,k);if(g=String(t),y="number"==typeof t){if(0*t!=0)return i(b,g,y,e);if(b.s=1/t<0?(g=g.slice(1),-1):1,z.DEBUG&&g.replace(/^0\.0*|\./,"").length>15)throw Error(c+t)}else b.s=45===g.charCodeAt(0)?(g=g.slice(1),-1):1;for(r=W.slice(0,e),f=l=0,d=g.length;l<d;l++)if(r.indexOf(o=g.charAt(l))<0){if("."==o){if(l>f){f=d;continue}}else if(!u&&(g==g.toUpperCase()&&(g=g.toLowerCase())||g==g.toLowerCase()&&(g=g.toUpperCase()))){u=!0,l=-1,f=0;continue}return i(b,String(t),y,e)}y=!1,(f=(g=n(g,e,10,b.s)).indexOf("."))>-1?g=g.replace(".",""):f=g.length}for(l=0;48===g.charCodeAt(l);l++);for(d=g.length;48===g.charCodeAt(--d););if(g=g.slice(l,++d)){if(d-=l,y&&z.DEBUG&&d>15&&(t>p||t!==s(t)))throw Error(c+b.s*t);if((f=f-l-1)>L)b.c=b.e=null;else if(f<U)b.c=[b.e=0];else{if(b.e=f,b.c=[],l=(f+1)%h,f<0&&(l+=h),l<d){for(l&&b.c.push(+g.slice(0,l)),d-=h;l<d;)b.c.push(+g.slice(l,l+=h));l=h-(g=g.slice(l)).length}else l-=d;for(;l--;g+="0");b.c.push(+g)}}else b.c=[b.e=0]}function $(t,e,r,n){var i,o,a,u,s;if(null==r?r=k:m(r,0,8),!t.c)return t.toString();if(i=t.c[0],a=t.e,null==e)s=v(t.c),s=1==n||2==n&&(a<=C||a>=D)?E(s,a):S(s,a,"0");else if(o=(t=H(new z(t),e,r)).e,u=(s=v(t.c)).length,1==n||2==n&&(e<=o||o<=C)){for(;u<e;s+="0",u++);s=E(s,o)}else if(e-=a,s=S(s,o,"0"),o+1>u){if(--e>0)for(s+=".";e--;s+="0");}else if((e+=o-u)>0)for(o+1==u&&(s+=".");e--;s+="0");return t.s<0&&i?"-"+s:s}function G(t,e){for(var r,n=1,i=new z(t[0]);n<t.length;n++){if(!(r=new z(t[n])).s){i=r;break}e.call(i,r)&&(i=r)}return i}function K(t,e,r){for(var n=1,i=e.length;!e[--i];e.pop());for(i=e[0];i>=10;i/=10,n++);return(r=n+r*h-1)>L?t.c=t.e=null:r<U?t.c=[t.e=0]:(t.e=r,t.c=e),t}function H(t,e,r,n){var i,o,a,f,c,p,d,g=t.c,b=y;if(g){t:{for(i=1,f=g[0];f>=10;f/=10,i++);if((o=e-i)<0)o+=h,a=e,d=(c=g[p=0])/b[i-a-1]%10|0;else if((p=u((o+1)/h))>=g.length){if(!n)break t;for(;g.length<=p;g.push(0));c=d=0,i=1,a=(o%=h)-h+1}else{for(c=f=g[p],i=1;f>=10;f/=10,i++);d=(a=(o%=h)-h+i)<0?0:c/b[i-a-1]%10|0}if(n=n||e<0||null!=g[p+1]||(a<0?c:c%b[i-a-1]),n=r<4?(d||n)&&(0==r||r==(t.s<0?3:2)):d>5||5==d&&(4==r||n||6==r&&(o>0?a>0?c/b[i-a]:0:g[p-1])%10&1||r==(t.s<0?8:7)),e<1||!g[0])return g.length=0,n?(e-=t.e+1,g[0]=b[(h-e%h)%h],t.e=-e||0):g[0]=t.e=0,t;if(0==o?(g.length=p,f=1,p--):(g.length=p+1,f=b[h-o],g[p]=a>0?s(c/b[i-a]%b[a])*f:0),n)for(;;){if(0==p){for(o=1,a=g[0];a>=10;a/=10,o++);for(a=g[0]+=f,f=1;a>=10;a/=10,f++);o!=f&&(t.e++,g[0]==l&&(g[0]=1));break}if(g[p]+=f,g[p]!=l)break;g[p--]=0,f=1}for(o=g.length;0===g[--o];g.pop());}t.e>L?t.c=t.e=null:t.e<U&&(t.c=[t.e=0])}return t}function Y(t){var e,r=t.e;return null===r?t.toString():(e=v(t.c),e=r<=C||r>=D?E(e,r):S(e,r,"0"),t.s<0?"-"+e:e)}return z.clone=t,z.ROUND_UP=0,z.ROUND_DOWN=1,z.ROUND_CEIL=2,z.ROUND_FLOOR=3,z.ROUND_HALF_UP=4,z.ROUND_HALF_DOWN=5,z.ROUND_HALF_EVEN=6,z.ROUND_HALF_CEIL=7,z.ROUND_HALF_FLOOR=8,z.EUCLID=9,z.config=z.set=function(t){var e,r;if(null!=t){if("object"!=typeof t)throw Error(f+"Object expected: "+t);if(t.hasOwnProperty(e="DECIMAL_PLACES")&&(m(r=t[e],0,g,e),P=r),t.hasOwnProperty(e="ROUNDING_MODE")&&(m(r=t[e],0,8,e),k=r),t.hasOwnProperty(e="EXPONENTIAL_AT")&&((r=t[e])&&r.pop?(m(r[0],-g,0,e),m(r[1],0,g,e),C=r[0],D=r[1]):(m(r,-g,g,e),C=-(D=r<0?-r:r))),t.hasOwnProperty(e="RANGE"))if((r=t[e])&&r.pop)m(r[0],-g,-1,e),m(r[1],1,g,e),U=r[0],L=r[1];else{if(m(r,-g,g,e),!r)throw Error(f+e+" cannot be zero: "+r);U=-(L=r<0?-r:r)}if(t.hasOwnProperty(e="CRYPTO")){if((r=t[e])!==!!r)throw Error(f+e+" not true or false: "+r);if(r){if("undefined"==typeof crypto||!crypto||!crypto.getRandomValues&&!crypto.randomBytes)throw M=!r,Error(f+"crypto unavailable");M=r}else M=r}if(t.hasOwnProperty(e="MODULO_MODE")&&(m(r=t[e],0,9,e),N=r),t.hasOwnProperty(e="POW_PRECISION")&&(m(r=t[e],0,g,e),F=r),t.hasOwnProperty(e="FORMAT")){if("object"!=typeof(r=t[e]))throw Error(f+e+" not an object: "+r);q=r}if(t.hasOwnProperty(e="ALPHABET")){if("string"!=typeof(r=t[e])||/^.?$|[+\-.\s]|(.).*\1/.test(r))throw Error(f+e+" invalid: "+r);W=r}}return{DECIMAL_PLACES:P,ROUNDING_MODE:k,EXPONENTIAL_AT:[C,D],RANGE:[U,L],CRYPTO:M,MODULO_MODE:N,POW_PRECISION:F,FORMAT:q,ALPHABET:W}},z.isBigNumber=function(t){if(!t||!0!==t._isBigNumber)return!1;if(!z.DEBUG)return!0;var e,r,n=t.c,i=t.e,o=t.s;t:if("[object Array]"=={}.toString.call(n)){if((1===o||-1===o)&&i>=-g&&i<=g&&i===s(i)){if(0===n[0]){if(0===i&&1===n.length)return!0;break t}if((e=(i+1)%h)<1&&(e+=h),String(n[0]).length==e){for(e=0;e<n.length;e++)if((r=n[e])<0||r>=l||r!==s(r))break t;if(0!==r)return!0}}}else if(null===n&&null===i&&(null===o||1===o||-1===o))return!0;throw Error(f+"Invalid BigNumber: "+t)},z.maximum=z.max=function(){return G(arguments,T.lt)},z.minimum=z.min=function(){return G(arguments,T.gt)},z.random=(o=9007199254740992,O=Math.random()*o&2097151?function(){return s(Math.random()*o)}:function(){return 8388608*(1073741824*Math.random()|0)+(8388608*Math.random()|0)},function(t){var e,r,n,i,o,a=0,c=[],l=new z(j);if(null==t?t=P:m(t,0,g),i=u(t/h),M)if(crypto.getRandomValues){for(e=crypto.getRandomValues(new Uint32Array(i*=2));a<i;)(o=131072*e[a]+(e[a+1]>>>11))>=9e15?(r=crypto.getRandomValues(new Uint32Array(2)),e[a]=r[0],e[a+1]=r[1]):(c.push(o%1e14),a+=2);a=i/2}else{if(!crypto.randomBytes)throw M=!1,Error(f+"crypto unavailable");for(e=crypto.randomBytes(i*=7);a<i;)(o=281474976710656*(31&e[a])+1099511627776*e[a+1]+4294967296*e[a+2]+16777216*e[a+3]+(e[a+4]<<16)+(e[a+5]<<8)+e[a+6])>=9e15?crypto.randomBytes(7).copy(e,a):(c.push(o%1e14),a+=7);a=i/7}if(!M)for(;a<i;)(o=O())<9e15&&(c[a++]=o%1e14);for(i=c[--a],t%=h,i&&t&&(o=y[h-t],c[a]=s(i/o)*o);0===c[a];c.pop(),a--);if(a<0)c=[n=0];else{for(n=-1;0===c[0];c.splice(0,1),n-=h);for(a=1,o=c[0];o>=10;o/=10,a++);a<h&&(n-=h-a)}return l.e=n,l.c=c,l}),z.sum=function(){for(var t=1,e=arguments,r=new z(e[0]);t<e.length;)r=r.plus(e[t++]);return r},n=function(){var t="0123456789";function e(t,e,r,n){for(var i,o,a=[0],u=0,s=t.length;u<s;){for(o=a.length;o--;a[o]*=e);for(a[0]+=n.indexOf(t.charAt(u++)),i=0;i<a.length;i++)a[i]>r-1&&(null==a[i+1]&&(a[i+1]=0),a[i+1]+=a[i]/r|0,a[i]%=r)}return a.reverse()}return function(n,i,o,a,u){var s,f,c,l,h,p,y,d,g=n.indexOf("."),b=P,_=k;for(g>=0&&(l=F,F=0,n=n.replace(".",""),p=(d=new z(i)).pow(n.length-g),F=l,d.c=e(S(v(p.c),p.e,"0"),10,o,t),d.e=d.c.length),c=l=(y=e(n,i,o,u?(s=W,t):(s=t,W))).length;0==y[--l];y.pop());if(!y[0])return s.charAt(0);if(g<0?--c:(p.c=y,p.e=c,p.s=a,y=(p=r(p,d,b,_,o)).c,h=p.r,c=p.e),g=y[f=c+b+1],l=o/2,h=h||f<0||null!=y[f+1],h=_<4?(null!=g||h)&&(0==_||_==(p.s<0?3:2)):g>l||g==l&&(4==_||h||6==_&&1&y[f-1]||_==(p.s<0?8:7)),f<1||!y[0])n=h?S(s.charAt(1),-b,s.charAt(0)):s.charAt(0);else{if(y.length=f,h)for(--o;++y[--f]>o;)y[f]=0,f||(++c,y=[1].concat(y));for(l=y.length;!y[--l];);for(g=0,n="";g<=l;n+=s.charAt(y[g++]));n=S(n,c,s.charAt(0))}return n}}(),r=function(){function t(t,e,r){var n,i,o,a,u=0,s=t.length,f=e%d,c=e/d|0;for(t=t.slice();s--;)u=((i=f*(o=t[s]%d)+(n=c*o+(a=t[s]/d|0)*f)%d*d+u)/r|0)+(n/d|0)+c*a,t[s]=i%r;return u&&(t=[u].concat(t)),t}function e(t,e,r,n){var i,o;if(r!=n)o=r>n?1:-1;else for(i=o=0;i<r;i++)if(t[i]!=e[i]){o=t[i]>e[i]?1:-1;break}return o}function r(t,e,r,n){for(var i=0;r--;)t[r]-=i,i=t[r]<e[r]?1:0,t[r]=i*n+t[r]-e[r];for(;!t[0]&&t.length>1;t.splice(0,1));}return function(n,i,o,a,u){var f,c,p,y,d,g,v,_,m,w,E,S,O,B,x,A,I,R=n.s==i.s?1:-1,T=n.c,j=i.c;if(!(T&&T[0]&&j&&j[0]))return new z(n.s&&i.s&&(T?!j||T[0]!=j[0]:j)?T&&0==T[0]||!j?0*R:R/0:NaN);for(m=(_=new z(R)).c=[],R=o+(c=n.e-i.e)+1,u||(u=l,c=b(n.e/h)-b(i.e/h),R=R/h|0),p=0;j[p]==(T[p]||0);p++);if(j[p]>(T[p]||0)&&c--,R<0)m.push(1),y=!0;else{for(B=T.length,A=j.length,p=0,R+=2,(d=s(u/(j[0]+1)))>1&&(j=t(j,d,u),T=t(T,d,u),A=j.length,B=T.length),O=A,E=(w=T.slice(0,A)).length;E<A;w[E++]=0);I=j.slice(),I=[0].concat(I),x=j[0],j[1]>=u/2&&x++;do{if(d=0,(f=e(j,w,A,E))<0){if(S=w[0],A!=E&&(S=S*u+(w[1]||0)),(d=s(S/x))>1)for(d>=u&&(d=u-1),v=(g=t(j,d,u)).length,E=w.length;1==e(g,w,v,E);)d--,r(g,A<v?I:j,v,u),v=g.length,f=1;else 0==d&&(f=d=1),v=(g=j.slice()).length;if(v<E&&(g=[0].concat(g)),r(w,g,E,u),E=w.length,-1==f)for(;e(j,w,A,E)<1;)d++,r(w,A<E?I:j,E,u),E=w.length}else 0===f&&(d++,w=[0]);m[p++]=d,w[0]?w[E++]=T[O]||0:(w=[T[O]],E=1)}while((O++<B||null!=w[0])&&R--);y=null!=w[0],m[0]||m.splice(0,1)}if(u==l){for(p=1,R=m[0];R>=10;R/=10,p++);H(_,o+(_.e=p+c*h-1)+1,a,y)}else _.e=c,_.r=+y;return _}}(),B=/^(-?)0([xbo])(?=\w[\w.]*$)/i,x=/^([^.]+)\.$/,A=/^\.([^.]+)$/,I=/^-?(Infinity|NaN)$/,R=/^\s*\+(?=[\w.])|^\s+|\s+$/g,i=function(t,e,r,n){var i,o=r?e:e.replace(R,"");if(I.test(o))t.s=isNaN(o)?null:o<0?-1:1;else{if(!r&&(o=o.replace(B,(function(t,e,r){return i="x"==(r=r.toLowerCase())?16:"b"==r?2:8,n&&n!=i?t:e})),n&&(i=n,o=o.replace(x,"$1").replace(A,"0.$1")),e!=o))return new z(o,i);if(z.DEBUG)throw Error(f+"Not a"+(n?" base "+n:"")+" number: "+e);t.s=null}t.c=t.e=null},T.absoluteValue=T.abs=function(){var t=new z(this);return t.s<0&&(t.s=1),t},T.comparedTo=function(t,e){return _(this,new z(t,e))},T.decimalPlaces=T.dp=function(t,e){var r,n,i,o=this;if(null!=t)return m(t,0,g),null==e?e=k:m(e,0,8),H(new z(o),t+o.e+1,e);if(!(r=o.c))return null;if(n=((i=r.length-1)-b(this.e/h))*h,i=r[i])for(;i%10==0;i/=10,n--);return n<0&&(n=0),n},T.dividedBy=T.div=function(t,e){return r(this,new z(t,e),P,k)},T.dividedToIntegerBy=T.idiv=function(t,e){return r(this,new z(t,e),0,1)},T.exponentiatedBy=T.pow=function(t,e){var r,n,i,o,a,c,l,p,y=this;if((t=new z(t)).c&&!t.isInteger())throw Error(f+"Exponent not an integer: "+Y(t));if(null!=e&&(e=new z(e)),a=t.e>14,!y.c||!y.c[0]||1==y.c[0]&&!y.e&&1==y.c.length||!t.c||!t.c[0])return p=new z(Math.pow(+Y(y),a?2-w(t):+Y(t))),e?p.mod(e):p;if(c=t.s<0,e){if(e.c?!e.c[0]:!e.s)return new z(NaN);(n=!c&&y.isInteger()&&e.isInteger())&&(y=y.mod(e))}else{if(t.e>9&&(y.e>0||y.e<-1||(0==y.e?y.c[0]>1||a&&y.c[1]>=24e7:y.c[0]<8e13||a&&y.c[0]<=9999975e7)))return o=y.s<0&&w(t)?-0:0,y.e>-1&&(o=1/o),new z(c?1/o:o);F&&(o=u(F/h+2))}for(a?(r=new z(.5),c&&(t.s=1),l=w(t)):l=(i=Math.abs(+Y(t)))%2,p=new z(j);;){if(l){if(!(p=p.times(y)).c)break;o?p.c.length>o&&(p.c.length=o):n&&(p=p.mod(e))}if(i){if(0===(i=s(i/2)))break;l=i%2}else if(H(t=t.times(r),t.e+1,1),t.e>14)l=w(t);else{if(0==(i=+Y(t)))break;l=i%2}y=y.times(y),o?y.c&&y.c.length>o&&(y.c.length=o):n&&(y=y.mod(e))}return n?p:(c&&(p=j.div(p)),e?p.mod(e):o?H(p,F,k,void 0):p)},T.integerValue=function(t){var e=new z(this);return null==t?t=k:m(t,0,8),H(e,e.e+1,t)},T.isEqualTo=T.eq=function(t,e){return 0===_(this,new z(t,e))},T.isFinite=function(){return!!this.c},T.isGreaterThan=T.gt=function(t,e){return _(this,new z(t,e))>0},T.isGreaterThanOrEqualTo=T.gte=function(t,e){return 1===(e=_(this,new z(t,e)))||0===e},T.isInteger=function(){return!!this.c&&b(this.e/h)>this.c.length-2},T.isLessThan=T.lt=function(t,e){return _(this,new z(t,e))<0},T.isLessThanOrEqualTo=T.lte=function(t,e){return-1===(e=_(this,new z(t,e)))||0===e},T.isNaN=function(){return!this.s},T.isNegative=function(){return this.s<0},T.isPositive=function(){return this.s>0},T.isZero=function(){return!!this.c&&0==this.c[0]},T.minus=function(t,e){var r,n,i,o,a=this,u=a.s;if(e=(t=new z(t,e)).s,!u||!e)return new z(NaN);if(u!=e)return t.s=-e,a.plus(t);var s=a.e/h,f=t.e/h,c=a.c,p=t.c;if(!s||!f){if(!c||!p)return c?(t.s=-e,t):new z(p?a:NaN);if(!c[0]||!p[0])return p[0]?(t.s=-e,t):new z(c[0]?a:3==k?-0:0)}if(s=b(s),f=b(f),c=c.slice(),u=s-f){for((o=u<0)?(u=-u,i=c):(f=s,i=p),i.reverse(),e=u;e--;i.push(0));i.reverse()}else for(n=(o=(u=c.length)<(e=p.length))?u:e,u=e=0;e<n;e++)if(c[e]!=p[e]){o=c[e]<p[e];break}if(o&&(i=c,c=p,p=i,t.s=-t.s),(e=(n=p.length)-(r=c.length))>0)for(;e--;c[r++]=0);for(e=l-1;n>u;){if(c[--n]<p[n]){for(r=n;r&&!c[--r];c[r]=e);--c[r],c[n]+=l}c[n]-=p[n]}for(;0==c[0];c.splice(0,1),--f);return c[0]?K(t,c,f):(t.s=3==k?-1:1,t.c=[t.e=0],t)},T.modulo=T.mod=function(t,e){var n,i,o=this;return t=new z(t,e),!o.c||!t.s||t.c&&!t.c[0]?new z(NaN):!t.c||o.c&&!o.c[0]?new z(o):(9==N?(i=t.s,t.s=1,n=r(o,t,0,3),t.s=i,n.s*=i):n=r(o,t,0,N),(t=o.minus(n.times(t))).c[0]||1!=N||(t.s=o.s),t)},T.multipliedBy=T.times=function(t,e){var r,n,i,o,a,u,s,f,c,p,y,g,v,_,m,w=this,E=w.c,S=(t=new z(t,e)).c;if(!(E&&S&&E[0]&&S[0]))return!w.s||!t.s||E&&!E[0]&&!S||S&&!S[0]&&!E?t.c=t.e=t.s=null:(t.s*=w.s,E&&S?(t.c=[0],t.e=0):t.c=t.e=null),t;for(n=b(w.e/h)+b(t.e/h),t.s*=w.s,(s=E.length)<(p=S.length)&&(v=E,E=S,S=v,i=s,s=p,p=i),i=s+p,v=[];i--;v.push(0));for(_=l,m=d,i=p;--i>=0;){for(r=0,y=S[i]%m,g=S[i]/m|0,o=i+(a=s);o>i;)r=((f=y*(f=E[--a]%m)+(u=g*f+(c=E[a]/m|0)*y)%m*m+v[o]+r)/_|0)+(u/m|0)+g*c,v[o--]=f%_;v[o]=r}return r?++n:v.splice(0,1),K(t,v,n)},T.negated=function(){var t=new z(this);return t.s=-t.s||null,t},T.plus=function(t,e){var r,n=this,i=n.s;if(e=(t=new z(t,e)).s,!i||!e)return new z(NaN);if(i!=e)return t.s=-e,n.minus(t);var o=n.e/h,a=t.e/h,u=n.c,s=t.c;if(!o||!a){if(!u||!s)return new z(i/0);if(!u[0]||!s[0])return s[0]?t:new z(u[0]?n:0*i)}if(o=b(o),a=b(a),u=u.slice(),i=o-a){for(i>0?(a=o,r=s):(i=-i,r=u),r.reverse();i--;r.push(0));r.reverse()}for((i=u.length)-(e=s.length)<0&&(r=s,s=u,u=r,e=i),i=0;e;)i=(u[--e]=u[e]+s[e]+i)/l|0,u[e]=l===u[e]?0:u[e]%l;return i&&(u=[i].concat(u),++a),K(t,u,a)},T.precision=T.sd=function(t,e){var r,n,i,o=this;if(null!=t&&t!==!!t)return m(t,1,g),null==e?e=k:m(e,0,8),H(new z(o),t,e);if(!(r=o.c))return null;if(n=(i=r.length-1)*h+1,i=r[i]){for(;i%10==0;i/=10,n--);for(i=r[0];i>=10;i/=10,n++);}return t&&o.e+1>n&&(n=o.e+1),n},T.shiftedBy=function(t){return m(t,-9007199254740991,p),this.times("1e"+t)},T.squareRoot=T.sqrt=function(){var t,e,n,i,o,a=this,u=a.c,s=a.s,f=a.e,c=P+4,l=new z("0.5");if(1!==s||!u||!u[0])return new z(!s||s<0&&(!u||u[0])?NaN:u?a:1/0);if(0==(s=Math.sqrt(+Y(a)))||s==1/0?(((e=v(u)).length+f)%2==0&&(e+="0"),s=Math.sqrt(+e),f=b((f+1)/2)-(f<0||f%2),n=new z(e=s==1/0?"5e"+f:(e=s.toExponential()).slice(0,e.indexOf("e")+1)+f)):n=new z(s+""),n.c[0])for((s=(f=n.e)+c)<3&&(s=0);;)if(o=n,n=l.times(o.plus(r(a,o,c,1))),v(o.c).slice(0,s)===(e=v(n.c)).slice(0,s)){if(n.e<f&&--s,"9999"!=(e=e.slice(s-3,s+1))&&(i||"4999"!=e)){+e&&(+e.slice(1)||"5"!=e.charAt(0))||(H(n,n.e+P+2,1),t=!n.times(n).eq(a));break}if(!i&&(H(o,o.e+P+2,0),o.times(o).eq(a))){n=o;break}c+=4,s+=4,i=1}return H(n,n.e+P+1,k,t)},T.toExponential=function(t,e){return null!=t&&(m(t,0,g),t++),$(this,t,e,1)},T.toFixed=function(t,e){return null!=t&&(m(t,0,g),t=t+this.e+1),$(this,t,e)},T.toFormat=function(t,e,r){var n,i=this;if(null==r)null!=t&&e&&"object"==typeof e?(r=e,e=null):t&&"object"==typeof t?(r=t,t=e=null):r=q;else if("object"!=typeof r)throw Error(f+"Argument not an object: "+r);if(n=i.toFixed(t,e),i.c){var o,a=n.split("."),u=+r.groupSize,s=+r.secondaryGroupSize,c=r.groupSeparator||"",l=a[0],h=a[1],p=i.s<0,y=p?l.slice(1):l,d=y.length;if(s&&(o=u,u=s,s=o,d-=o),u>0&&d>0){for(o=d%u||u,l=y.substr(0,o);o<d;o+=u)l+=c+y.substr(o,u);s>0&&(l+=c+y.slice(o)),p&&(l="-"+l)}n=h?l+(r.decimalSeparator||"")+((s=+r.fractionGroupSize)?h.replace(new RegExp("\\d{"+s+"}\\B","g"),"$&"+(r.fractionGroupSeparator||"")):h):l}return(r.prefix||"")+n+(r.suffix||"")},T.toFraction=function(t){var e,n,i,o,a,u,s,c,l,p,d,g,b=this,_=b.c;if(null!=t&&(!(s=new z(t)).isInteger()&&(s.c||1!==s.s)||s.lt(j)))throw Error(f+"Argument "+(s.isInteger()?"out of range: ":"not an integer: ")+Y(s));if(!_)return new z(b);for(e=new z(j),l=n=new z(j),i=c=new z(j),g=v(_),a=e.e=g.length-b.e-1,e.c[0]=y[(u=a%h)<0?h+u:u],t=!t||s.comparedTo(e)>0?a>0?e:l:s,u=L,L=1/0,s=new z(g),c.c[0]=0;p=r(s,e,0,1),1!=(o=n.plus(p.times(i))).comparedTo(t);)n=i,i=o,l=c.plus(p.times(o=l)),c=o,e=s.minus(p.times(o=e)),s=o;return o=r(t.minus(n),i,0,1),c=c.plus(o.times(l)),n=n.plus(o.times(i)),c.s=l.s=b.s,d=r(l,i,a*=2,k).minus(b).abs().comparedTo(r(c,n,a,k).minus(b).abs())<1?[l,i]:[c,n],L=u,d},T.toNumber=function(){return+Y(this)},T.toPrecision=function(t,e){return null!=t&&m(t,1,g),$(this,t,e,2)},T.toString=function(t){var e,r=this,i=r.s,o=r.e;return null===o?i?(e="Infinity",i<0&&(e="-"+e)):e="NaN":(null==t?e=o<=C||o>=D?E(v(r.c),o):S(v(r.c),o,"0"):10===t?e=S(v((r=H(new z(r),P+o+1,k)).c),r.e,"0"):(m(t,2,W.length,"Base"),e=n(S(v(r.c),o,"0"),10,t,i,!0)),i<0&&r.c[0]&&(e="-"+e)),e},T.valueOf=T.toJSON=function(){return Y(this)},T._isBigNumber=!0,null!=e&&z.set(e),z}(),o.default=o.BigNumber=o,void 0===(n=function(){return o}.call(e,r,e,t))||(t.exports=n)}()},3310:(t,e,r)=>{"use strict";var n=r(1518),i=r(9509).Buffer;t.exports=function(t){function e(e){var r=e.slice(0,-4),n=e.slice(-4),i=t(r);if(!(n[0]^i[0]|n[1]^i[1]|n[2]^i[2]|n[3]^i[3]))return r}return{encode:function(e){var r=t(e);return n.encode(i.concat([e,r],e.length+4))},decode:function(t){var r=e(n.decode(t));if(!r)throw new Error("Invalid checksum");return r},decodeUnsafe:function(t){var r=n.decodeUnsafe(t);if(r)return e(r)}}}},8334:(t,e,r)=>{"use strict";var n=r(3482),i=r(3310);t.exports=i((function(t){var e=n("sha256").update(t).digest();return n("sha256").update(e).digest()}))},2179:(t,e,r)=>{"use strict";var n=r(9509).Buffer;t.exports=function(t){if(t.length>=255)throw new TypeError("Alphabet too long");for(var e=new Uint8Array(256),r=0;r<e.length;r++)e[r]=255;for(var i=0;i<t.length;i++){var o=t.charAt(i),a=o.charCodeAt(0);if(255!==e[a])throw new TypeError(o+" is ambiguous");e[a]=i}var u=t.length,s=t.charAt(0),f=Math.log(u)/Math.log(256),c=Math.log(256)/Math.log(u);function l(t){if("string"!=typeof t)throw new TypeError("Expected String");if(0===t.length)return n.alloc(0);var r=0;if(" "!==t[r]){for(var i=0,o=0;t[r]===s;)i++,r++;for(var a=(t.length-r)*f+1>>>0,c=new Uint8Array(a);t[r];){var l=e[t.charCodeAt(r)];if(255===l)return;for(var h=0,p=a-1;(0!==l||h<o)&&-1!==p;p--,h++)l+=u*c[p]>>>0,c[p]=l%256>>>0,l=l/256>>>0;if(0!==l)throw new Error("Non-zero carry");o=h,r++}if(" "!==t[r]){for(var y=a-o;y!==a&&0===c[y];)y++;var d=n.allocUnsafe(i+(a-y));d.fill(0,0,i);for(var g=i;y!==a;)d[g++]=c[y++];return d}}}return{encode:function(e){if((Array.isArray(e)||e instanceof Uint8Array)&&(e=n.from(e)),!n.isBuffer(e))throw new TypeError("Expected Buffer");if(0===e.length)return"";for(var r=0,i=0,o=0,a=e.length;o!==a&&0===e[o];)o++,r++;for(var f=(a-o)*c+1>>>0,l=new Uint8Array(f);o!==a;){for(var h=e[o],p=0,y=f-1;(0!==h||p<i)&&-1!==y;y--,p++)h+=256*l[y]>>>0,l[y]=h%u>>>0,h=h/u>>>0;if(0!==h)throw new Error("Non-zero carry");i=p,o++}for(var d=f-i;d!==f&&0===l[d];)d++;for(var g=s.repeat(r);d<f;++d)g+=t.charAt(l[d]);return g},decodeUnsafe:l,decode:function(t){var e=l(t);if(e)return e;throw new Error("Non-base"+u+" character")}}}},1518:(t,e,r)=>{var n=r(2179);t.exports=n("123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz")},8764:(t,e,r)=>{"use strict";const n=r(9742),i=r(645),o="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;e.Buffer=s,e.SlowBuffer=function(t){return+t!=t&&(t=0),s.alloc(+t)},e.INSPECT_MAX_BYTES=50;const a=2147483647;function u(t){if(t>a)throw new RangeError('The value "'+t+'" is invalid for option "size"');const e=new Uint8Array(t);return Object.setPrototypeOf(e,s.prototype),e}function s(t,e,r){if("number"==typeof t){if("string"==typeof e)throw new TypeError('The "string" argument must be of type string. Received type number');return l(t)}return f(t,e,r)}function f(t,e,r){if("string"==typeof t)return function(t,e){if("string"==typeof e&&""!==e||(e="utf8"),!s.isEncoding(e))throw new TypeError("Unknown encoding: "+e);const r=0|d(t,e);let n=u(r);const i=n.write(t,e);return i!==r&&(n=n.slice(0,i)),n}(t,e);if(ArrayBuffer.isView(t))return function(t){if(V(t,Uint8Array)){const e=new Uint8Array(t);return p(e.buffer,e.byteOffset,e.byteLength)}return h(t)}(t);if(null==t)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t);if(V(t,ArrayBuffer)||t&&V(t.buffer,ArrayBuffer))return p(t,e,r);if("undefined"!=typeof SharedArrayBuffer&&(V(t,SharedArrayBuffer)||t&&V(t.buffer,SharedArrayBuffer)))return p(t,e,r);if("number"==typeof t)throw new TypeError('The "value" argument must not be of type number. Received type number');const n=t.valueOf&&t.valueOf();if(null!=n&&n!==t)return s.from(n,e,r);const i=function(t){if(s.isBuffer(t)){const e=0|y(t.length),r=u(e);return 0===r.length||t.copy(r,0,0,e),r}return void 0!==t.length?"number"!=typeof t.length||J(t.length)?u(0):h(t):"Buffer"===t.type&&Array.isArray(t.data)?h(t.data):void 0}(t);if(i)return i;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof t[Symbol.toPrimitive])return s.from(t[Symbol.toPrimitive]("string"),e,r);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t)}function c(t){if("number"!=typeof t)throw new TypeError('"size" argument must be of type number');if(t<0)throw new RangeError('The value "'+t+'" is invalid for option "size"')}function l(t){return c(t),u(t<0?0:0|y(t))}function h(t){const e=t.length<0?0:0|y(t.length),r=u(e);for(let n=0;n<e;n+=1)r[n]=255&t[n];return r}function p(t,e,r){if(e<0||t.byteLength<e)throw new RangeError('"offset" is outside of buffer bounds');if(t.byteLength<e+(r||0))throw new RangeError('"length" is outside of buffer bounds');let n;return n=void 0===e&&void 0===r?new Uint8Array(t):void 0===r?new Uint8Array(t,e):new Uint8Array(t,e,r),Object.setPrototypeOf(n,s.prototype),n}function y(t){if(t>=a)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a.toString(16)+" bytes");return 0|t}function d(t,e){if(s.isBuffer(t))return t.length;if(ArrayBuffer.isView(t)||V(t,ArrayBuffer))return t.byteLength;if("string"!=typeof t)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof t);const r=t.length,n=arguments.length>2&&!0===arguments[2];if(!n&&0===r)return 0;let i=!1;for(;;)switch(e){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return K(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return H(t).length;default:if(i)return n?-1:K(t).length;e=(""+e).toLowerCase(),i=!0}}function g(t,e,r){let n=!1;if((void 0===e||e<0)&&(e=0),e>this.length)return"";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return"";if((r>>>=0)<=(e>>>=0))return"";for(t||(t="utf8");;)switch(t){case"hex":return T(this,e,r);case"utf8":case"utf-8":return x(this,e,r);case"ascii":return I(this,e,r);case"latin1":case"binary":return R(this,e,r);case"base64":return B(this,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return j(this,e,r);default:if(n)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),n=!0}}function b(t,e,r){const n=t[e];t[e]=t[r],t[r]=n}function v(t,e,r,n,i){if(0===t.length)return-1;if("string"==typeof r?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),J(r=+r)&&(r=i?0:t.length-1),r<0&&(r=t.length+r),r>=t.length){if(i)return-1;r=t.length-1}else if(r<0){if(!i)return-1;r=0}if("string"==typeof e&&(e=s.from(e,n)),s.isBuffer(e))return 0===e.length?-1:_(t,e,r,n,i);if("number"==typeof e)return e&=255,"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(t,e,r):Uint8Array.prototype.lastIndexOf.call(t,e,r):_(t,[e],r,n,i);throw new TypeError("val must be string, number or Buffer")}function _(t,e,r,n,i){let o,a=1,u=t.length,s=e.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(t.length<2||e.length<2)return-1;a=2,u/=2,s/=2,r/=2}function f(t,e){return 1===a?t[e]:t.readUInt16BE(e*a)}if(i){let n=-1;for(o=r;o<u;o++)if(f(t,o)===f(e,-1===n?0:o-n)){if(-1===n&&(n=o),o-n+1===s)return n*a}else-1!==n&&(o-=o-n),n=-1}else for(r+s>u&&(r=u-s),o=r;o>=0;o--){let r=!0;for(let n=0;n<s;n++)if(f(t,o+n)!==f(e,n)){r=!1;break}if(r)return o}return-1}function m(t,e,r,n){r=Number(r)||0;const i=t.length-r;n?(n=Number(n))>i&&(n=i):n=i;const o=e.length;let a;for(n>o/2&&(n=o/2),a=0;a<n;++a){const n=parseInt(e.substr(2*a,2),16);if(J(n))return a;t[r+a]=n}return a}function w(t,e,r,n){return Y(K(e,t.length-r),t,r,n)}function E(t,e,r,n){return Y(function(t){const e=[];for(let r=0;r<t.length;++r)e.push(255&t.charCodeAt(r));return e}(e),t,r,n)}function S(t,e,r,n){return Y(H(e),t,r,n)}function O(t,e,r,n){return Y(function(t,e){let r,n,i;const o=[];for(let a=0;a<t.length&&!((e-=2)<0);++a)r=t.charCodeAt(a),n=r>>8,i=r%256,o.push(i),o.push(n);return o}(e,t.length-r),t,r,n)}function B(t,e,r){return 0===e&&r===t.length?n.fromByteArray(t):n.fromByteArray(t.slice(e,r))}function x(t,e,r){r=Math.min(t.length,r);const n=[];let i=e;for(;i<r;){const e=t[i];let o=null,a=e>239?4:e>223?3:e>191?2:1;if(i+a<=r){let r,n,u,s;switch(a){case 1:e<128&&(o=e);break;case 2:r=t[i+1],128==(192&r)&&(s=(31&e)<<6|63&r,s>127&&(o=s));break;case 3:r=t[i+1],n=t[i+2],128==(192&r)&&128==(192&n)&&(s=(15&e)<<12|(63&r)<<6|63&n,s>2047&&(s<55296||s>57343)&&(o=s));break;case 4:r=t[i+1],n=t[i+2],u=t[i+3],128==(192&r)&&128==(192&n)&&128==(192&u)&&(s=(15&e)<<18|(63&r)<<12|(63&n)<<6|63&u,s>65535&&s<1114112&&(o=s))}}null===o?(o=65533,a=1):o>65535&&(o-=65536,n.push(o>>>10&1023|55296),o=56320|1023&o),n.push(o),i+=a}return function(t){const e=t.length;if(e<=A)return String.fromCharCode.apply(String,t);let r="",n=0;for(;n<e;)r+=String.fromCharCode.apply(String,t.slice(n,n+=A));return r}(n)}e.kMaxLength=a,s.TYPED_ARRAY_SUPPORT=function(){try{const t=new Uint8Array(1),e={foo:function(){return 42}};return Object.setPrototypeOf(e,Uint8Array.prototype),Object.setPrototypeOf(t,e),42===t.foo()}catch(t){return!1}}(),s.TYPED_ARRAY_SUPPORT||"undefined"==typeof console||"function"!=typeof console.error||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(s.prototype,"parent",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.buffer}}),Object.defineProperty(s.prototype,"offset",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.byteOffset}}),s.poolSize=8192,s.from=function(t,e,r){return f(t,e,r)},Object.setPrototypeOf(s.prototype,Uint8Array.prototype),Object.setPrototypeOf(s,Uint8Array),s.alloc=function(t,e,r){return function(t,e,r){return c(t),t<=0?u(t):void 0!==e?"string"==typeof r?u(t).fill(e,r):u(t).fill(e):u(t)}(t,e,r)},s.allocUnsafe=function(t){return l(t)},s.allocUnsafeSlow=function(t){return l(t)},s.isBuffer=function(t){return null!=t&&!0===t._isBuffer&&t!==s.prototype},s.compare=function(t,e){if(V(t,Uint8Array)&&(t=s.from(t,t.offset,t.byteLength)),V(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),!s.isBuffer(t)||!s.isBuffer(e))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(t===e)return 0;let r=t.length,n=e.length;for(let i=0,o=Math.min(r,n);i<o;++i)if(t[i]!==e[i]){r=t[i],n=e[i];break}return r<n?-1:n<r?1:0},s.isEncoding=function(t){switch(String(t).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},s.concat=function(t,e){if(!Array.isArray(t))throw new TypeError('"list" argument must be an Array of Buffers');if(0===t.length)return s.alloc(0);let r;if(void 0===e)for(e=0,r=0;r<t.length;++r)e+=t[r].length;const n=s.allocUnsafe(e);let i=0;for(r=0;r<t.length;++r){let e=t[r];if(V(e,Uint8Array))i+e.length>n.length?(s.isBuffer(e)||(e=s.from(e)),e.copy(n,i)):Uint8Array.prototype.set.call(n,e,i);else{if(!s.isBuffer(e))throw new TypeError('"list" argument must be an Array of Buffers');e.copy(n,i)}i+=e.length}return n},s.byteLength=d,s.prototype._isBuffer=!0,s.prototype.swap16=function(){const t=this.length;if(t%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let e=0;e<t;e+=2)b(this,e,e+1);return this},s.prototype.swap32=function(){const t=this.length;if(t%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let e=0;e<t;e+=4)b(this,e,e+3),b(this,e+1,e+2);return this},s.prototype.swap64=function(){const t=this.length;if(t%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let e=0;e<t;e+=8)b(this,e,e+7),b(this,e+1,e+6),b(this,e+2,e+5),b(this,e+3,e+4);return this},s.prototype.toString=function(){const t=this.length;return 0===t?"":0===arguments.length?x(this,0,t):g.apply(this,arguments)},s.prototype.toLocaleString=s.prototype.toString,s.prototype.equals=function(t){if(!s.isBuffer(t))throw new TypeError("Argument must be a Buffer");return this===t||0===s.compare(this,t)},s.prototype.inspect=function(){let t="";const r=e.INSPECT_MAX_BYTES;return t=this.toString("hex",0,r).replace(/(.{2})/g,"$1 ").trim(),this.length>r&&(t+=" ... "),"<Buffer "+t+">"},o&&(s.prototype[o]=s.prototype.inspect),s.prototype.compare=function(t,e,r,n,i){if(V(t,Uint8Array)&&(t=s.from(t,t.offset,t.byteLength)),!s.isBuffer(t))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof t);if(void 0===e&&(e=0),void 0===r&&(r=t?t.length:0),void 0===n&&(n=0),void 0===i&&(i=this.length),e<0||r>t.length||n<0||i>this.length)throw new RangeError("out of range index");if(n>=i&&e>=r)return 0;if(n>=i)return-1;if(e>=r)return 1;if(this===t)return 0;let o=(i>>>=0)-(n>>>=0),a=(r>>>=0)-(e>>>=0);const u=Math.min(o,a),f=this.slice(n,i),c=t.slice(e,r);for(let t=0;t<u;++t)if(f[t]!==c[t]){o=f[t],a=c[t];break}return o<a?-1:a<o?1:0},s.prototype.includes=function(t,e,r){return-1!==this.indexOf(t,e,r)},s.prototype.indexOf=function(t,e,r){return v(this,t,e,r,!0)},s.prototype.lastIndexOf=function(t,e,r){return v(this,t,e,r,!1)},s.prototype.write=function(t,e,r,n){if(void 0===e)n="utf8",r=this.length,e=0;else if(void 0===r&&"string"==typeof e)n=e,r=this.length,e=0;else{if(!isFinite(e))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");e>>>=0,isFinite(r)?(r>>>=0,void 0===n&&(n="utf8")):(n=r,r=void 0)}const i=this.length-e;if((void 0===r||r>i)&&(r=i),t.length>0&&(r<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");let o=!1;for(;;)switch(n){case"hex":return m(this,t,e,r);case"utf8":case"utf-8":return w(this,t,e,r);case"ascii":case"latin1":case"binary":return E(this,t,e,r);case"base64":return S(this,t,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return O(this,t,e,r);default:if(o)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),o=!0}},s.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};const A=4096;function I(t,e,r){let n="";r=Math.min(t.length,r);for(let i=e;i<r;++i)n+=String.fromCharCode(127&t[i]);return n}function R(t,e,r){let n="";r=Math.min(t.length,r);for(let i=e;i<r;++i)n+=String.fromCharCode(t[i]);return n}function T(t,e,r){const n=t.length;(!e||e<0)&&(e=0),(!r||r<0||r>n)&&(r=n);let i="";for(let n=e;n<r;++n)i+=X[t[n]];return i}function j(t,e,r){const n=t.slice(e,r);let i="";for(let t=0;t<n.length-1;t+=2)i+=String.fromCharCode(n[t]+256*n[t+1]);return i}function P(t,e,r){if(t%1!=0||t<0)throw new RangeError("offset is not uint");if(t+e>r)throw new RangeError("Trying to access beyond buffer length")}function k(t,e,r,n,i,o){if(!s.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>i||e<o)throw new RangeError('"value" argument is out of bounds');if(r+n>t.length)throw new RangeError("Index out of range")}function C(t,e,r,n,i){W(e,n,i,t,r,7);let o=Number(e&BigInt(4294967295));t[r++]=o,o>>=8,t[r++]=o,o>>=8,t[r++]=o,o>>=8,t[r++]=o;let a=Number(e>>BigInt(32)&BigInt(4294967295));return t[r++]=a,a>>=8,t[r++]=a,a>>=8,t[r++]=a,a>>=8,t[r++]=a,r}function D(t,e,r,n,i){W(e,n,i,t,r,7);let o=Number(e&BigInt(4294967295));t[r+7]=o,o>>=8,t[r+6]=o,o>>=8,t[r+5]=o,o>>=8,t[r+4]=o;let a=Number(e>>BigInt(32)&BigInt(4294967295));return t[r+3]=a,a>>=8,t[r+2]=a,a>>=8,t[r+1]=a,a>>=8,t[r]=a,r+8}function U(t,e,r,n,i,o){if(r+n>t.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function L(t,e,r,n,o){return e=+e,r>>>=0,o||U(t,0,r,4),i.write(t,e,r,n,23,4),r+4}function M(t,e,r,n,o){return e=+e,r>>>=0,o||U(t,0,r,8),i.write(t,e,r,n,52,8),r+8}s.prototype.slice=function(t,e){const r=this.length;(t=~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),(e=void 0===e?r:~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),e<t&&(e=t);const n=this.subarray(t,e);return Object.setPrototypeOf(n,s.prototype),n},s.prototype.readUintLE=s.prototype.readUIntLE=function(t,e,r){t>>>=0,e>>>=0,r||P(t,e,this.length);let n=this[t],i=1,o=0;for(;++o<e&&(i*=256);)n+=this[t+o]*i;return n},s.prototype.readUintBE=s.prototype.readUIntBE=function(t,e,r){t>>>=0,e>>>=0,r||P(t,e,this.length);let n=this[t+--e],i=1;for(;e>0&&(i*=256);)n+=this[t+--e]*i;return n},s.prototype.readUint8=s.prototype.readUInt8=function(t,e){return t>>>=0,e||P(t,1,this.length),this[t]},s.prototype.readUint16LE=s.prototype.readUInt16LE=function(t,e){return t>>>=0,e||P(t,2,this.length),this[t]|this[t+1]<<8},s.prototype.readUint16BE=s.prototype.readUInt16BE=function(t,e){return t>>>=0,e||P(t,2,this.length),this[t]<<8|this[t+1]},s.prototype.readUint32LE=s.prototype.readUInt32LE=function(t,e){return t>>>=0,e||P(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},s.prototype.readUint32BE=s.prototype.readUInt32BE=function(t,e){return t>>>=0,e||P(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},s.prototype.readBigUInt64LE=Z((function(t){z(t>>>=0,"offset");const e=this[t],r=this[t+7];void 0!==e&&void 0!==r||$(t,this.length-8);const n=e+256*this[++t]+65536*this[++t]+this[++t]*2**24,i=this[++t]+256*this[++t]+65536*this[++t]+r*2**24;return BigInt(n)+(BigInt(i)<<BigInt(32))})),s.prototype.readBigUInt64BE=Z((function(t){z(t>>>=0,"offset");const e=this[t],r=this[t+7];void 0!==e&&void 0!==r||$(t,this.length-8);const n=e*2**24+65536*this[++t]+256*this[++t]+this[++t],i=this[++t]*2**24+65536*this[++t]+256*this[++t]+r;return(BigInt(n)<<BigInt(32))+BigInt(i)})),s.prototype.readIntLE=function(t,e,r){t>>>=0,e>>>=0,r||P(t,e,this.length);let n=this[t],i=1,o=0;for(;++o<e&&(i*=256);)n+=this[t+o]*i;return i*=128,n>=i&&(n-=Math.pow(2,8*e)),n},s.prototype.readIntBE=function(t,e,r){t>>>=0,e>>>=0,r||P(t,e,this.length);let n=e,i=1,o=this[t+--n];for(;n>0&&(i*=256);)o+=this[t+--n]*i;return i*=128,o>=i&&(o-=Math.pow(2,8*e)),o},s.prototype.readInt8=function(t,e){return t>>>=0,e||P(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},s.prototype.readInt16LE=function(t,e){t>>>=0,e||P(t,2,this.length);const r=this[t]|this[t+1]<<8;return 32768&r?4294901760|r:r},s.prototype.readInt16BE=function(t,e){t>>>=0,e||P(t,2,this.length);const r=this[t+1]|this[t]<<8;return 32768&r?4294901760|r:r},s.prototype.readInt32LE=function(t,e){return t>>>=0,e||P(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},s.prototype.readInt32BE=function(t,e){return t>>>=0,e||P(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},s.prototype.readBigInt64LE=Z((function(t){z(t>>>=0,"offset");const e=this[t],r=this[t+7];void 0!==e&&void 0!==r||$(t,this.length-8);const n=this[t+4]+256*this[t+5]+65536*this[t+6]+(r<<24);return(BigInt(n)<<BigInt(32))+BigInt(e+256*this[++t]+65536*this[++t]+this[++t]*2**24)})),s.prototype.readBigInt64BE=Z((function(t){z(t>>>=0,"offset");const e=this[t],r=this[t+7];void 0!==e&&void 0!==r||$(t,this.length-8);const n=(e<<24)+65536*this[++t]+256*this[++t]+this[++t];return(BigInt(n)<<BigInt(32))+BigInt(this[++t]*2**24+65536*this[++t]+256*this[++t]+r)})),s.prototype.readFloatLE=function(t,e){return t>>>=0,e||P(t,4,this.length),i.read(this,t,!0,23,4)},s.prototype.readFloatBE=function(t,e){return t>>>=0,e||P(t,4,this.length),i.read(this,t,!1,23,4)},s.prototype.readDoubleLE=function(t,e){return t>>>=0,e||P(t,8,this.length),i.read(this,t,!0,52,8)},s.prototype.readDoubleBE=function(t,e){return t>>>=0,e||P(t,8,this.length),i.read(this,t,!1,52,8)},s.prototype.writeUintLE=s.prototype.writeUIntLE=function(t,e,r,n){t=+t,e>>>=0,r>>>=0,n||k(this,t,e,r,Math.pow(2,8*r)-1,0);let i=1,o=0;for(this[e]=255&t;++o<r&&(i*=256);)this[e+o]=t/i&255;return e+r},s.prototype.writeUintBE=s.prototype.writeUIntBE=function(t,e,r,n){t=+t,e>>>=0,r>>>=0,n||k(this,t,e,r,Math.pow(2,8*r)-1,0);let i=r-1,o=1;for(this[e+i]=255&t;--i>=0&&(o*=256);)this[e+i]=t/o&255;return e+r},s.prototype.writeUint8=s.prototype.writeUInt8=function(t,e,r){return t=+t,e>>>=0,r||k(this,t,e,1,255,0),this[e]=255&t,e+1},s.prototype.writeUint16LE=s.prototype.writeUInt16LE=function(t,e,r){return t=+t,e>>>=0,r||k(this,t,e,2,65535,0),this[e]=255&t,this[e+1]=t>>>8,e+2},s.prototype.writeUint16BE=s.prototype.writeUInt16BE=function(t,e,r){return t=+t,e>>>=0,r||k(this,t,e,2,65535,0),this[e]=t>>>8,this[e+1]=255&t,e+2},s.prototype.writeUint32LE=s.prototype.writeUInt32LE=function(t,e,r){return t=+t,e>>>=0,r||k(this,t,e,4,4294967295,0),this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t,e+4},s.prototype.writeUint32BE=s.prototype.writeUInt32BE=function(t,e,r){return t=+t,e>>>=0,r||k(this,t,e,4,4294967295,0),this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t,e+4},s.prototype.writeBigUInt64LE=Z((function(t,e=0){return C(this,t,e,BigInt(0),BigInt("0xffffffffffffffff"))})),s.prototype.writeBigUInt64BE=Z((function(t,e=0){return D(this,t,e,BigInt(0),BigInt("0xffffffffffffffff"))})),s.prototype.writeIntLE=function(t,e,r,n){if(t=+t,e>>>=0,!n){const n=Math.pow(2,8*r-1);k(this,t,e,r,n-1,-n)}let i=0,o=1,a=0;for(this[e]=255&t;++i<r&&(o*=256);)t<0&&0===a&&0!==this[e+i-1]&&(a=1),this[e+i]=(t/o>>0)-a&255;return e+r},s.prototype.writeIntBE=function(t,e,r,n){if(t=+t,e>>>=0,!n){const n=Math.pow(2,8*r-1);k(this,t,e,r,n-1,-n)}let i=r-1,o=1,a=0;for(this[e+i]=255&t;--i>=0&&(o*=256);)t<0&&0===a&&0!==this[e+i+1]&&(a=1),this[e+i]=(t/o>>0)-a&255;return e+r},s.prototype.writeInt8=function(t,e,r){return t=+t,e>>>=0,r||k(this,t,e,1,127,-128),t<0&&(t=255+t+1),this[e]=255&t,e+1},s.prototype.writeInt16LE=function(t,e,r){return t=+t,e>>>=0,r||k(this,t,e,2,32767,-32768),this[e]=255&t,this[e+1]=t>>>8,e+2},s.prototype.writeInt16BE=function(t,e,r){return t=+t,e>>>=0,r||k(this,t,e,2,32767,-32768),this[e]=t>>>8,this[e+1]=255&t,e+2},s.prototype.writeInt32LE=function(t,e,r){return t=+t,e>>>=0,r||k(this,t,e,4,2147483647,-2147483648),this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24,e+4},s.prototype.writeInt32BE=function(t,e,r){return t=+t,e>>>=0,r||k(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t,e+4},s.prototype.writeBigInt64LE=Z((function(t,e=0){return C(this,t,e,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),s.prototype.writeBigInt64BE=Z((function(t,e=0){return D(this,t,e,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),s.prototype.writeFloatLE=function(t,e,r){return L(this,t,e,!0,r)},s.prototype.writeFloatBE=function(t,e,r){return L(this,t,e,!1,r)},s.prototype.writeDoubleLE=function(t,e,r){return M(this,t,e,!0,r)},s.prototype.writeDoubleBE=function(t,e,r){return M(this,t,e,!1,r)},s.prototype.copy=function(t,e,r,n){if(!s.isBuffer(t))throw new TypeError("argument should be a Buffer");if(r||(r=0),n||0===n||(n=this.length),e>=t.length&&(e=t.length),e||(e=0),n>0&&n<r&&(n=r),n===r)return 0;if(0===t.length||0===this.length)return 0;if(e<0)throw new RangeError("targetStart out of bounds");if(r<0||r>=this.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),t.length-e<n-r&&(n=t.length-e+r);const i=n-r;return this===t&&"function"==typeof Uint8Array.prototype.copyWithin?this.copyWithin(e,r,n):Uint8Array.prototype.set.call(t,this.subarray(r,n),e),i},s.prototype.fill=function(t,e,r,n){if("string"==typeof t){if("string"==typeof e?(n=e,e=0,r=this.length):"string"==typeof r&&(n=r,r=this.length),void 0!==n&&"string"!=typeof n)throw new TypeError("encoding must be a string");if("string"==typeof n&&!s.isEncoding(n))throw new TypeError("Unknown encoding: "+n);if(1===t.length){const e=t.charCodeAt(0);("utf8"===n&&e<128||"latin1"===n)&&(t=e)}}else"number"==typeof t?t&=255:"boolean"==typeof t&&(t=Number(t));if(e<0||this.length<e||this.length<r)throw new RangeError("Out of range index");if(r<=e)return this;let i;if(e>>>=0,r=void 0===r?this.length:r>>>0,t||(t=0),"number"==typeof t)for(i=e;i<r;++i)this[i]=t;else{const o=s.isBuffer(t)?t:s.from(t,n),a=o.length;if(0===a)throw new TypeError('The value "'+t+'" is invalid for argument "value"');for(i=0;i<r-e;++i)this[i+e]=o[i%a]}return this};const N={};function F(t,e,r){N[t]=class extends r{constructor(){super(),Object.defineProperty(this,"message",{value:e.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${t}]`,this.stack,delete this.name}get code(){return t}set code(t){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:t,writable:!0})}toString(){return`${this.name} [${t}]: ${this.message}`}}}function q(t){let e="",r=t.length;const n="-"===t[0]?1:0;for(;r>=n+4;r-=3)e=`_${t.slice(r-3,r)}${e}`;return`${t.slice(0,r)}${e}`}function W(t,e,r,n,i,o){if(t>r||t<e){const n="bigint"==typeof e?"n":"";let i;throw i=o>3?0===e||e===BigInt(0)?`>= 0${n} and < 2${n} ** ${8*(o+1)}${n}`:`>= -(2${n} ** ${8*(o+1)-1}${n}) and < 2 ** ${8*(o+1)-1}${n}`:`>= ${e}${n} and <= ${r}${n}`,new N.ERR_OUT_OF_RANGE("value",i,t)}!function(t,e,r){z(e,"offset"),void 0!==t[e]&&void 0!==t[e+r]||$(e,t.length-(r+1))}(n,i,o)}function z(t,e){if("number"!=typeof t)throw new N.ERR_INVALID_ARG_TYPE(e,"number",t)}function $(t,e,r){if(Math.floor(t)!==t)throw z(t,r),new N.ERR_OUT_OF_RANGE(r||"offset","an integer",t);if(e<0)throw new N.ERR_BUFFER_OUT_OF_BOUNDS;throw new N.ERR_OUT_OF_RANGE(r||"offset",`>= ${r?1:0} and <= ${e}`,t)}F("ERR_BUFFER_OUT_OF_BOUNDS",(function(t){return t?`${t} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"}),RangeError),F("ERR_INVALID_ARG_TYPE",(function(t,e){return`The "${t}" argument must be of type number. Received type ${typeof e}`}),TypeError),F("ERR_OUT_OF_RANGE",(function(t,e,r){let n=`The value of "${t}" is out of range.`,i=r;return Number.isInteger(r)&&Math.abs(r)>2**32?i=q(String(r)):"bigint"==typeof r&&(i=String(r),(r>BigInt(2)**BigInt(32)||r<-(BigInt(2)**BigInt(32)))&&(i=q(i)),i+="n"),n+=` It must be ${e}. Received ${i}`,n}),RangeError);const G=/[^+/0-9A-Za-z-_]/g;function K(t,e){let r;e=e||1/0;const n=t.length;let i=null;const o=[];for(let a=0;a<n;++a){if(r=t.charCodeAt(a),r>55295&&r<57344){if(!i){if(r>56319){(e-=3)>-1&&o.push(239,191,189);continue}if(a+1===n){(e-=3)>-1&&o.push(239,191,189);continue}i=r;continue}if(r<56320){(e-=3)>-1&&o.push(239,191,189),i=r;continue}r=65536+(i-55296<<10|r-56320)}else i&&(e-=3)>-1&&o.push(239,191,189);if(i=null,r<128){if((e-=1)<0)break;o.push(r)}else if(r<2048){if((e-=2)<0)break;o.push(r>>6|192,63&r|128)}else if(r<65536){if((e-=3)<0)break;o.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error("Invalid code point");if((e-=4)<0)break;o.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return o}function H(t){return n.toByteArray(function(t){if((t=(t=t.split("=")[0]).trim().replace(G,"")).length<2)return"";for(;t.length%4!=0;)t+="=";return t}(t))}function Y(t,e,r,n){let i;for(i=0;i<n&&!(i+r>=e.length||i>=t.length);++i)e[i+r]=t[i];return i}function V(t,e){return t instanceof e||null!=t&&null!=t.constructor&&null!=t.constructor.name&&t.constructor.name===e.name}function J(t){return t!=t}const X=function(){const t="0123456789abcdef",e=new Array(256);for(let r=0;r<16;++r){const n=16*r;for(let i=0;i<16;++i)e[n+i]=t[r]+t[i]}return e}();function Z(t){return"undefined"==typeof BigInt?Q:t}function Q(){throw new Error("BigInt not supported")}},1924:(t,e,r)=>{"use strict";var n=r(210),i=r(5559),o=i(n("String.prototype.indexOf"));t.exports=function(t,e){var r=n(t,!!e);return"function"==typeof r&&o(t,".prototype.")>-1?i(r):r}},5559:(t,e,r)=>{"use strict";var n=r(8612),i=r(210),o=i("%Function.prototype.apply%"),a=i("%Function.prototype.call%"),u=i("%Reflect.apply%",!0)||n.call(a,o),s=i("%Object.getOwnPropertyDescriptor%",!0),f=i("%Object.defineProperty%",!0),c=i("%Math.max%");if(f)try{f({},"a",{value:1})}catch(t){f=null}t.exports=function(t){var e=u(n,a,arguments);if(s&&f){var r=s(e,"length");r.configurable&&f(e,"length",{value:1+c(0,t.length-(arguments.length-1))})}return e};var l=function(){return u(n,o,arguments)};f?f(t.exports,"apply",{value:l}):t.exports.apply=l},2474:function(t,e,r){var n,i,o=r(8764).Buffer;void 0===(i="function"==typeof(n=function(){var t=function(){function t(t){this.$hex=t}t.prototype={length:function(){return this.$hex.length/2},toString:function(t){if(!t||"hex"===t||16===t)return this.$hex;if("utf-8"===t){for(var e="",r=0;r<this.$hex.length;r+=2)e+="%"+this.$hex.substring(r,r+2);return decodeURIComponent(e)}if("latin"===t){for(e=[],r=0;r<this.$hex.length;r+=2)e.push(parseInt(this.$hex.substring(r,r+2),16));return String.fromCharCode.apply(String,e)}throw new Error("Unrecognised format: "+t)}},t.fromLatinString=function(e){for(var r="",n=0;n<e.length;n++){var i=e.charCodeAt(n).toString(16);1===i.length&&(i="0"+i),r+=i}return new t(r)},t.fromUtf8String=function(e){for(var r=encodeURIComponent(e),n="",i=0;i<r.length;i++)if("%"===r.charAt(i))n+=r.substring(i+1,i+3),i+=2;else{var o=r.charCodeAt(i).toString(16);o.length<2&&(o="0"+o),n+=o}return new t(n)};var e=[],r={},n=function(t){return function(){throw new Error(t+" not implemented")}};function i(){}function a(){}function u(t,e){var r=t.value;return r<24?r:24==r?e.readByte():25==r?e.readUint16():26==r?e.readUint32():27==r?e.readUint64():31==r?null:void n("Additional info: "+r)()}function s(t,e,r){var n=t<<5;e<24?r.writeByte(n|e):e<256?(r.writeByte(24|n),r.writeByte(e)):e<65536?(r.writeByte(25|n),r.writeUint16(e)):e<4294967296?(r.writeByte(26|n),r.writeUint32(e)):(r.writeByte(27|n),r.writeUint64(e))}i.prototype={peekByte:n("peekByte"),readByte:n("readByte"),readChunk:n("readChunk"),readFloat16:function(){var t=this.readUint16(),e=(32767&t)>>10,r=1023&t,n=32768&t;if(31===e)return 0===r?n?-1/0:1/0:NaN;var i=e?Math.pow(2,e-25)*(1024+r):Math.pow(2,-24)*r;return n?-i:i},readFloat32:function(){var t=this.readUint32(),e=(2147483647&t)>>23,r=8388607&t,n=2147483648&t;if(255===e)return 0===r?n?-1/0:1/0:NaN;var i=e?Math.pow(2,e-23-127)*(8388608+r):Math.pow(2,-149)*r;return n?-i:i},readFloat64:function(){var t=this.readUint32(),e=t>>20&2047,r=4294967296*(1048575&t)+this.readUint32(),n=2147483648&t;if(2047===e)return 0===r?n?-1/0:1/0:NaN;var i=e?Math.pow(2,e-52-1023)*(4503599627370496+r):Math.pow(2,-1074)*r;return n?-i:i},readUint16:function(){return 256*this.readByte()+this.readByte()},readUint32:function(){return 65536*this.readUint16()+this.readUint16()},readUint64:function(){return 4294967296*this.readUint32()+this.readUint32()}},a.prototype={writeByte:n("writeByte"),result:n("result"),writeFloat16:n("writeFloat16"),writeFloat32:n("writeFloat32"),writeFloat64:n("writeFloat64"),writeUint16:function(t){this.writeByte(t>>8&255),this.writeByte(255&t)},writeUint32:function(t){this.writeUint16(t>>16&65535),this.writeUint16(65535&t)},writeUint64:function(t){if(t>=9007199254740992||t<=-9007199254740992)throw new Error("Cannot encode Uint64 of: "+t+" magnitude to big (floating point errors)");this.writeUint32(Math.floor(t/4294967296)),this.writeUint32(t%4294967296)},writeString:n("writeString"),canWriteBinary:function(t){return!1},writeBinary:n("writeChunk")};var f=new Error;function c(t){var e=function(t){var e=t.readByte();return{type:e>>5,value:31&e}}(t);switch(e.type){case 0:return u(e,t);case 1:return-1-u(e,t);case 2:return t.readChunk(u(e,t));case 3:return t.readChunk(u(e,t)).toString("utf-8");case 4:case 5:var n=u(e,t),i=[];if(null!==n){5===e.type&&(n*=2);for(var o=0;o<n;o++)i[o]=c(t)}else for(var a;(a=c(t))!==f;)i.push(a);if(5===e.type){var s={};for(o=0;o<i.length;o+=2)s[i[o]]=i[o+1];return s}return i;case 6:var l=u(e,t),h=r[l];return i=c(t),h?h(i):i;case 7:if(25===e.value)return t.readFloat16();if(26===e.value)return t.readFloat32();if(27===e.value)return t.readFloat64();switch(u(e,t)){case 20:return!1;case 21:return!0;case 22:return null;case 23:return;case null:return f;default:throw new Error("Unknown fixed value: "+e.value)}default:throw new Error("Unsupported header: "+JSON.stringify(e))}throw new Error("not implemented yet")}function l(t,r){for(var n=0;n<e.length;n++){var i=e[n].fn(t);if(void 0!==i)return s(6,e[n].tag,r),l(i,r)}if(t&&"function"==typeof t.toCBOR&&(t=t.toCBOR()),!1===t)s(7,20,r);else if(!0===t)s(7,21,r);else if(null===t)s(7,22,r);else if(void 0===t)s(7,23,r);else if("number"==typeof t)Math.floor(t)===t&&t<9007199254740992&&t>-9007199254740992?t<0?s(1,-1-t,r):s(0,t,r):(function(t,e,r){r.writeByte(t<<5|e)}(7,27,r),r.writeFloat64(t));else if("string"==typeof t)r.writeString(t,(function(t){s(3,t,r)}));else if(r.canWriteBinary(t))r.writeBinary(t,(function(t){s(2,t,r)}));else{if("object"!=typeof t)throw new Error("CBOR encoding not supported: "+t);if(y.config.useToJSON&&"function"==typeof t.toJSON&&(t=t.toJSON()),Array.isArray(t))for(s(4,t.length,r),n=0;n<t.length;n++)l(t[n],r);else{var o=Object.keys(t);for(s(5,o.length,r),n=0;n<o.length;n++)l(o[n],r),l(t[o[n]],r)}}}var h=[],p=[],y={config:{useToJSON:!0},addWriter:function(t,e){"string"==typeof t?p.push((function(r){if(t===r)return e(r)})):p.push(t)},addReader:function(t,e){"string"==typeof t?h.push((function(r,n){if(t===n)return e(r,n)})):h.push(t)},encode:function(t,e){for(var r=0;r<p.length;r++){var n=(0,p[r])(e);if(n)return l(t,n),n.result()}throw new Error("Unsupported output format: "+e)},decode:function(t,e){for(var r=0;r<h.length;r++){var n=(0,h[r])(t,e);if(n)return c(n)}throw new Error("Unsupported input format: "+e)},addSemanticEncode:function(t,r){if("number"!=typeof t||t%1!=0||t<0)throw new Error("Tag must be a positive integer");return e.push({tag:t,fn:r}),this},addSemanticDecode:function(t,e){if("number"!=typeof t||t%1!=0||t<0)throw new Error("Tag must be a positive integer");return r[t]=e,this},Reader:i,Writer:a};function d(t){this.buffer=t,this.pos=0}function g(t){this.byteLength=0,this.defaultBufferLength=16384,this.latestBuffer=o.alloc(this.defaultBufferLength),this.latestBufferOffset=0,this.completeBuffers=[],this.stringFormat=t}function b(t){this.hex=t,this.pos=0}function v(t){this.$hex="",this.finalFormat=t||"hex"}return d.prototype=Object.create(i.prototype),d.prototype.peekByte=function(){return this.buffer[this.pos]},d.prototype.readByte=function(){return this.buffer[this.pos++]},d.prototype.readUint16=function(){var t=this.buffer.readUInt16BE(this.pos);return this.pos+=2,t},d.prototype.readUint32=function(){var t=this.buffer.readUInt32BE(this.pos);return this.pos+=4,t},d.prototype.readFloat32=function(){var t=this.buffer.readFloatBE(this.pos);return this.pos+=4,t},d.prototype.readFloat64=function(){var t=this.buffer.readDoubleBE(this.pos);return this.pos+=8,t},d.prototype.readChunk=function(t){var e=o.alloc(t);return this.buffer.copy(e,0,this.pos,this.pos+=t),e},g.prototype=Object.create(a.prototype),g.prototype.writeByte=function(t){this.latestBuffer[this.latestBufferOffset++]=t,this.latestBufferOffset>=this.latestBuffer.length&&(this.completeBuffers.push(this.latestBuffer),this.latestBuffer=o.alloc(this.defaultBufferLength),this.latestBufferOffset=0),this.byteLength++},g.prototype.writeFloat32=function(t){var e=o.alloc(4);e.writeFloatBE(t,0),this.writeBuffer(e)},g.prototype.writeFloat64=function(t){var e=o.alloc(8);e.writeDoubleBE(t,0),this.writeBuffer(e)},g.prototype.writeString=function(t,e){var r=o.from(t,"utf-8");e(r.length),this.writeBuffer(r)},g.prototype.canWriteBinary=function(t){return t instanceof o},g.prototype.writeBinary=function(t,e){e(t.length),this.writeBuffer(t)},g.prototype.writeBuffer=function(t){if(!(t instanceof o))throw new TypeError("BufferWriter only accepts Buffers");this.latestBufferOffset?this.latestBuffer.length-this.latestBufferOffset>=t.length?(t.copy(this.latestBuffer,this.latestBufferOffset),this.latestBufferOffset+=t.length,this.latestBufferOffset>=this.latestBuffer.length&&(this.completeBuffers.push(this.latestBuffer),this.latestBuffer=o.alloc(this.defaultBufferLength),this.latestBufferOffset=0)):(this.completeBuffers.push(this.latestBuffer.slice(0,this.latestBufferOffset)),this.completeBuffers.push(t),this.latestBuffer=o.alloc(this.defaultBufferLength),this.latestBufferOffset=0):this.completeBuffers.push(t),this.byteLength+=t.length},g.prototype.result=function(){for(var t=o.alloc(this.byteLength),e=0,r=0;r<this.completeBuffers.length;r++){var n=this.completeBuffers[r];n.copy(t,e,0,n.length),e+=n.length}return this.latestBufferOffset&&this.latestBuffer.copy(t,e,0,this.latestBufferOffset),this.stringFormat?t.toString(this.stringFormat):t},"function"==typeof o&&(y.addReader((function(t,e){return t instanceof o?new d(t):"hex"===e||"base64"===e?new d(o.from(t,e)):void 0})),y.addWriter((function(t){return t&&"buffer"!==t?"hex"===t||"base64"===t?new g(t):void 0:new g}))),b.prototype=Object.create(i.prototype),b.prototype.peekByte=function(){var t=this.hex.substring(this.pos,2);return parseInt(t,16)},b.prototype.readByte=function(){var t=this.hex.substring(this.pos,this.pos+2);return this.pos+=2,parseInt(t,16)},b.prototype.readChunk=function(e){var r=this.hex.substring(this.pos,this.pos+2*e);return this.pos+=2*e,"function"==typeof o?o.from(r,"hex"):new t(r)},v.prototype=Object.create(a.prototype),v.prototype.writeByte=function(t){if(t<0||t>255)throw new Error("Byte value out of range: "+t);var e=t.toString(16);1==e.length&&(e="0"+e),this.$hex+=e},v.prototype.canWriteBinary=function(e){return e instanceof t||"function"==typeof o&&e instanceof o},v.prototype.writeBinary=function(e,r){if(e instanceof t)r(e.length()),this.$hex+=e.$hex;else{if(!("function"==typeof o&&e instanceof o))throw new TypeError("HexWriter only accepts BinaryHex or Buffers");r(e.length),this.$hex+=e.toString("hex")}},v.prototype.result=function(){return"buffer"===this.finalFormat&&"function"==typeof o?o.from(this.$hex,"hex"):new t(this.$hex).toString(this.finalFormat)},v.prototype.writeString=function(e,r){var n=t.fromUtf8String(e);r(n.length()),this.$hex+=n.$hex},y.addReader((function(e,r){return e instanceof t||e.$hex?new b(e.$hex):"hex"===r?new b(e):void 0})),y.addWriter((function(t){if("hex"===t)return new v})),y}();return t.addSemanticEncode(0,(function(t){if(t instanceof Date)return t.toISOString()})).addSemanticDecode(0,(function(t){return new Date(t)})).addSemanticDecode(1,(function(t){return new Date(t)})),t})?n.apply(e,[]):n)||(t.exports=i)},1027:(t,e,r)=>{var n=r(9509).Buffer,i=r(2830).Transform,o=r(2553).s;function a(t){i.call(this),this.hashMode="string"==typeof t,this.hashMode?this[t]=this._finalOrDigest:this.final=this._finalOrDigest,this._final&&(this.__final=this._final,this._final=null),this._decoder=null,this._encoding=null}r(5717)(a,i),a.prototype.update=function(t,e,r){"string"==typeof t&&(t=n.from(t,e));var i=this._update(t);return this.hashMode?this:(r&&(i=this._toString(i,r)),i)},a.prototype.setAutoPadding=function(){},a.prototype.getAuthTag=function(){throw new Error("trying to get auth tag in unsupported state")},a.prototype.setAuthTag=function(){throw new Error("trying to set auth tag in unsupported state")},a.prototype.setAAD=function(){throw new Error("trying to set aad in unsupported state")},a.prototype._transform=function(t,e,r){var n;try{this.hashMode?this._update(t):this.push(this._update(t))}catch(t){n=t}finally{r(n)}},a.prototype._flush=function(t){var e;try{this.push(this.__final())}catch(t){e=t}t(e)},a.prototype._finalOrDigest=function(t){var e=this.__final()||n.alloc(0);return t&&(e=this._toString(e,t,!0)),e},a.prototype._toString=function(t,e,r){if(this._decoder||(this._decoder=new o(e),this._encoding=e),this._encoding!==e)throw new Error("can't switch encodings");var n=this._decoder.write(t);return r&&(n+=this._decoder.end()),n},t.exports=a},5057:(t,e,r)=>{"use strict";r.r(e),r.d(e,{crc1:()=>u,crc16:()=>g,crc16ccitt:()=>_,crc16kermit:()=>A,crc16modbus:()=>E,crc16xmodem:()=>O,crc24:()=>T,crc32:()=>k,crc8:()=>c,crc81wire:()=>p,crcjam:()=>U,default:()=>L});var n=r(3032);const i=n.lW.from&&n.lW.alloc&&n.lW.allocUnsafe&&n.lW.allocUnsafeSlow?n.lW.from:t=>new n.lW(t);function o(t,e){const r=(t,r)=>e(t,r)>>>0;return r.signed=e,r.unsigned=r,r.model=t,r}const a=o("crc1",(function(t,e){n.lW.isBuffer(t)||(t=i(t));let r=~~e,o=0;for(let e=0;e<t.length;e++)o+=t[e];return r+=o%256,r%256})),u=a;let s=[0,7,14,9,28,27,18,21,56,63,54,49,36,35,42,45,112,119,126,121,108,107,98,101,72,79,70,65,84,83,90,93,224,231,238,233,252,251,242,245,216,223,214,209,196,195,202,205,144,151,158,153,140,139,130,133,168,175,166,161,180,179,186,189,199,192,201,206,219,220,213,210,255,248,241,246,227,228,237,234,183,176,185,190,171,172,165,162,143,136,129,134,147,148,157,154,39,32,41,46,59,60,53,50,31,24,17,22,3,4,13,10,87,80,89,94,75,76,69,66,111,104,97,102,115,116,125,122,137,142,135,128,149,146,155,156,177,182,191,184,173,170,163,164,249,254,247,240,229,226,235,236,193,198,207,200,221,218,211,212,105,110,103,96,117,114,123,124,81,86,95,88,77,74,67,68,25,30,23,16,5,2,11,12,33,38,47,40,61,58,51,52,78,73,64,71,82,85,92,91,118,113,120,127,106,109,100,99,62,57,48,55,34,37,44,43,6,1,8,15,26,29,20,19,174,169,160,167,178,181,188,187,150,145,152,159,138,141,132,131,222,217,208,215,194,197,204,203,230,225,232,239,250,253,244,243];"undefined"!=typeof Int32Array&&(s=new Int32Array(s));const f=o("crc-8",(function(t,e){n.lW.isBuffer(t)||(t=i(t));let r=~~e;for(let e=0;e<t.length;e++){const n=t[e];r=255&s[255&(r^n)]}return r})),c=f;let l=[0,94,188,226,97,63,221,131,194,156,126,32,163,253,31,65,157,195,33,127,252,162,64,30,95,1,227,189,62,96,130,220,35,125,159,193,66,28,254,160,225,191,93,3,128,222,60,98,190,224,2,92,223,129,99,61,124,34,192,158,29,67,161,255,70,24,250,164,39,121,155,197,132,218,56,102,229,187,89,7,219,133,103,57,186,228,6,88,25,71,165,251,120,38,196,154,101,59,217,135,4,90,184,230,167,249,27,69,198,152,122,36,248,166,68,26,153,199,37,123,58,100,134,216,91,5,231,185,140,210,48,110,237,179,81,15,78,16,242,172,47,113,147,205,17,79,173,243,112,46,204,146,211,141,111,49,178,236,14,80,175,241,19,77,206,144,114,44,109,51,209,143,12,82,176,238,50,108,142,208,83,13,239,177,240,174,76,18,145,207,45,115,202,148,118,40,171,245,23,73,8,86,180,234,105,55,213,139,87,9,235,181,54,104,138,212,149,203,41,119,244,170,72,22,233,183,85,11,136,214,52,106,43,117,151,201,74,20,246,168,116,42,200,150,21,75,169,247,182,232,10,84,215,137,107,53];"undefined"!=typeof Int32Array&&(l=new Int32Array(l));const h=o("dallas-1-wire",(function(t,e){n.lW.isBuffer(t)||(t=i(t));let r=~~e;for(let e=0;e<t.length;e++){const n=t[e];r=255&l[255&(r^n)]}return r})),p=h;let y=[0,49345,49537,320,49921,960,640,49729,50689,1728,1920,51009,1280,50625,50305,1088,52225,3264,3456,52545,3840,53185,52865,3648,2560,51905,52097,2880,51457,2496,2176,51265,55297,6336,6528,55617,6912,56257,55937,6720,7680,57025,57217,8e3,56577,7616,7296,56385,5120,54465,54657,5440,55041,6080,5760,54849,53761,4800,4992,54081,4352,53697,53377,4160,61441,12480,12672,61761,13056,62401,62081,12864,13824,63169,63361,14144,62721,13760,13440,62529,15360,64705,64897,15680,65281,16320,16e3,65089,64001,15040,15232,64321,14592,63937,63617,14400,10240,59585,59777,10560,60161,11200,10880,59969,60929,11968,12160,61249,11520,60865,60545,11328,58369,9408,9600,58689,9984,59329,59009,9792,8704,58049,58241,9024,57601,8640,8320,57409,40961,24768,24960,41281,25344,41921,41601,25152,26112,42689,42881,26432,42241,26048,25728,42049,27648,44225,44417,27968,44801,28608,28288,44609,43521,27328,27520,43841,26880,43457,43137,26688,30720,47297,47489,31040,47873,31680,31360,47681,48641,32448,32640,48961,32e3,48577,48257,31808,46081,29888,30080,46401,30464,47041,46721,30272,29184,45761,45953,29504,45313,29120,28800,45121,20480,37057,37249,20800,37633,21440,21120,37441,38401,22208,22400,38721,21760,38337,38017,21568,39937,23744,23936,40257,24320,40897,40577,24128,23040,39617,39809,23360,39169,22976,22656,38977,34817,18624,18816,35137,19200,35777,35457,19008,19968,36545,36737,20288,36097,19904,19584,35905,17408,33985,34177,17728,34561,18368,18048,34369,33281,17088,17280,33601,16640,33217,32897,16448];"undefined"!=typeof Int32Array&&(y=new Int32Array(y));const d=o("crc-16",(function(t,e){n.lW.isBuffer(t)||(t=i(t));let r=~~e;for(let e=0;e<t.length;e++){const n=t[e];r=65535&(y[255&(r^n)]^r>>8)}return r})),g=d;let b=[0,4129,8258,12387,16516,20645,24774,28903,33032,37161,41290,45419,49548,53677,57806,61935,4657,528,12915,8786,21173,17044,29431,25302,37689,33560,45947,41818,54205,50076,62463,58334,9314,13379,1056,5121,25830,29895,17572,21637,42346,46411,34088,38153,58862,62927,50604,54669,13907,9842,5649,1584,30423,26358,22165,18100,46939,42874,38681,34616,63455,59390,55197,51132,18628,22757,26758,30887,2112,6241,10242,14371,51660,55789,59790,63919,35144,39273,43274,47403,23285,19156,31415,27286,6769,2640,14899,10770,56317,52188,64447,60318,39801,35672,47931,43802,27814,31879,19684,23749,11298,15363,3168,7233,60846,64911,52716,56781,44330,48395,36200,40265,32407,28342,24277,20212,15891,11826,7761,3696,65439,61374,57309,53244,48923,44858,40793,36728,37256,33193,45514,41451,53516,49453,61774,57711,4224,161,12482,8419,20484,16421,28742,24679,33721,37784,41979,46042,49981,54044,58239,62302,689,4752,8947,13010,16949,21012,25207,29270,46570,42443,38312,34185,62830,58703,54572,50445,13538,9411,5280,1153,29798,25671,21540,17413,42971,47098,34713,38840,59231,63358,50973,55100,9939,14066,1681,5808,26199,30326,17941,22068,55628,51565,63758,59695,39368,35305,47498,43435,22596,18533,30726,26663,6336,2273,14466,10403,52093,56156,60223,64286,35833,39896,43963,48026,19061,23124,27191,31254,2801,6864,10931,14994,64814,60687,56684,52557,48554,44427,40424,36297,31782,27655,23652,19525,15522,11395,7392,3265,61215,65342,53085,57212,44955,49082,36825,40952,28183,32310,20053,24180,11923,16050,3793,7920];"undefined"!=typeof Int32Array&&(b=new Int32Array(b));const v=o("ccitt",(function(t,e){n.lW.isBuffer(t)||(t=i(t));let r=void 0!==e?~~e:65535;for(let e=0;e<t.length;e++){const n=t[e];r=65535&(b[255&(r>>8^n)]^r<<8)}return r})),_=v;let m=[0,49345,49537,320,49921,960,640,49729,50689,1728,1920,51009,1280,50625,50305,1088,52225,3264,3456,52545,3840,53185,52865,3648,2560,51905,52097,2880,51457,2496,2176,51265,55297,6336,6528,55617,6912,56257,55937,6720,7680,57025,57217,8e3,56577,7616,7296,56385,5120,54465,54657,5440,55041,6080,5760,54849,53761,4800,4992,54081,4352,53697,53377,4160,61441,12480,12672,61761,13056,62401,62081,12864,13824,63169,63361,14144,62721,13760,13440,62529,15360,64705,64897,15680,65281,16320,16e3,65089,64001,15040,15232,64321,14592,63937,63617,14400,10240,59585,59777,10560,60161,11200,10880,59969,60929,11968,12160,61249,11520,60865,60545,11328,58369,9408,9600,58689,9984,59329,59009,9792,8704,58049,58241,9024,57601,8640,8320,57409,40961,24768,24960,41281,25344,41921,41601,25152,26112,42689,42881,26432,42241,26048,25728,42049,27648,44225,44417,27968,44801,28608,28288,44609,43521,27328,27520,43841,26880,43457,43137,26688,30720,47297,47489,31040,47873,31680,31360,47681,48641,32448,32640,48961,32e3,48577,48257,31808,46081,29888,30080,46401,30464,47041,46721,30272,29184,45761,45953,29504,45313,29120,28800,45121,20480,37057,37249,20800,37633,21440,21120,37441,38401,22208,22400,38721,21760,38337,38017,21568,39937,23744,23936,40257,24320,40897,40577,24128,23040,39617,39809,23360,39169,22976,22656,38977,34817,18624,18816,35137,19200,35777,35457,19008,19968,36545,36737,20288,36097,19904,19584,35905,17408,33985,34177,17728,34561,18368,18048,34369,33281,17088,17280,33601,16640,33217,32897,16448];"undefined"!=typeof Int32Array&&(m=new Int32Array(m));const w=o("crc-16-modbus",(function(t,e){n.lW.isBuffer(t)||(t=i(t));let r=void 0!==e?~~e:65535;for(let e=0;e<t.length;e++){const n=t[e];r=65535&(m[255&(r^n)]^r>>8)}return r})),E=w,S=o("xmodem",(function(t,e){n.lW.isBuffer(t)||(t=i(t));let r=void 0!==e?~~e:0;for(let e=0;e<t.length;e++){let n=r>>>8&255;n^=255&t[e],n^=n>>>4,r=r<<8&65535,r^=n,n=n<<5&65535,r^=n,n=n<<7&65535,r^=n}return r})),O=S;let B=[0,4489,8978,12955,17956,22445,25910,29887,35912,40385,44890,48851,51820,56293,59774,63735,4225,264,13203,8730,22181,18220,30135,25662,40137,36160,49115,44626,56045,52068,63999,59510,8450,12427,528,5017,26406,30383,17460,21949,44362,48323,36440,40913,60270,64231,51324,55797,12675,8202,4753,792,30631,26158,21685,17724,48587,44098,40665,36688,64495,60006,55549,51572,16900,21389,24854,28831,1056,5545,10034,14011,52812,57285,60766,64727,34920,39393,43898,47859,21125,17164,29079,24606,5281,1320,14259,9786,57037,53060,64991,60502,39145,35168,48123,43634,25350,29327,16404,20893,9506,13483,1584,6073,61262,65223,52316,56789,43370,47331,35448,39921,29575,25102,20629,16668,13731,9258,5809,1848,65487,60998,56541,52564,47595,43106,39673,35696,33800,38273,42778,46739,49708,54181,57662,61623,2112,6601,11090,15067,20068,24557,28022,31999,38025,34048,47003,42514,53933,49956,61887,57398,6337,2376,15315,10842,24293,20332,32247,27774,42250,46211,34328,38801,58158,62119,49212,53685,10562,14539,2640,7129,28518,32495,19572,24061,46475,41986,38553,34576,62383,57894,53437,49460,14787,10314,6865,2904,32743,28270,23797,19836,50700,55173,58654,62615,32808,37281,41786,45747,19012,23501,26966,30943,3168,7657,12146,16123,54925,50948,62879,58390,37033,33056,46011,41522,23237,19276,31191,26718,7393,3432,16371,11898,59150,63111,50204,54677,41258,45219,33336,37809,27462,31439,18516,23005,11618,15595,3696,8185,63375,58886,54429,50452,45483,40994,37561,33584,31687,27214,22741,18780,15843,11370,7921,3960];"undefined"!=typeof Int32Array&&(B=new Int32Array(B));const x=o("kermit",(function(t,e){n.lW.isBuffer(t)||(t=i(t));let r=void 0!==e?~~e:0;for(let e=0;e<t.length;e++){const n=t[e];r=65535&(B[255&(r^n)]^r>>8)}return r})),A=x;let I=[0,8801531,9098509,825846,9692897,1419802,1651692,10452759,10584377,2608578,2839604,11344079,3303384,11807523,12104405,4128302,12930697,4391538,5217156,13227903,5679208,13690003,14450021,5910942,6606768,14844747,15604413,6837830,16197969,7431594,8256604,16494759,840169,9084178,8783076,18463,10434312,1670131,1434117,9678590,11358416,2825259,2590173,10602790,4109873,12122826,11821884,3289031,13213536,5231515,4409965,12912278,5929345,14431610,13675660,5693559,6823513,15618722,14863188,6588335,16513208,8238147,7417269,16212302,1680338,10481449,9664223,1391140,9061683,788936,36926,8838341,12067563,4091408,3340262,11844381,2868234,11372785,10555655,2579964,14478683,5939616,5650518,13661357,5180346,13190977,12967607,4428364,8219746,16457881,16234863,7468436,15633027,6866552,6578062,14816117,1405499,9649856,10463030,1698765,8819930,55329,803287,9047340,11858690,3325945,4072975,12086004,2561507,10574104,11387118,2853909,13647026,5664841,5958079,14460228,4446803,12949160,13176670,5194661,7454091,16249200,16476294,8201341,14834538,6559633,6852199,15647388,3360676,11864927,12161705,4185682,10527045,2551230,2782280,11286707,9619101,1346150,1577872,10379115,73852,8875143,9172337,899466,16124205,7357910,8182816,16421083,6680524,14918455,15678145,6911546,5736468,13747439,14507289,5968354,12873461,4334094,5159928,13170435,4167245,12180150,11879232,3346363,11301036,2767959,2532769,10545498,10360692,1596303,1360505,9604738,913813,9157998,8856728,92259,16439492,8164415,7343561,16138546,6897189,15692510,14936872,6662099,5986813,14488838,13733104,5750795,13156124,5174247,4352529,12855018,2810998,11315341,10498427,2522496,12124823,4148844,3397530,11901793,9135439,862644,110658,8912057,1606574,10407765,9590435,1317464,15706879,6940164,6651890,14889737,8145950,16384229,16161043,7394792,5123014,13133629,12910283,4370992,14535975,5997020,5707818,13718737,2504095,10516836,11329682,2796649,11916158,3383173,4130419,12143240,8893606,129117,876971,9121104,1331783,9576124,10389322,1625009,14908182,6633453,6925851,15721184,7380471,16175372,16402682,8127489,4389423,12891860,13119266,5137369,13704398,5722165,6015427,14517560];"undefined"!=typeof Int32Array&&(I=new Int32Array(I));const R=o("crc-24",(function(t,e){n.lW.isBuffer(t)||(t=i(t));let r=void 0!==e?~~e:11994318;for(let e=0;e<t.length;e++){const n=t[e];r=16777215&(I[255&(r>>16^n)]^r<<8)}return r})),T=R;let j=[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];"undefined"!=typeof Int32Array&&(j=new Int32Array(j));const P=o("crc-32",(function(t,e){n.lW.isBuffer(t)||(t=i(t));let r=0===e?0:-1^~~e;for(let e=0;e<t.length;e++){const n=t[e];r=j[255&(r^n)]^r>>>8}return-1^r})),k=P;let C=[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];"undefined"!=typeof Int32Array&&(C=new Int32Array(C));const D=o("jam",(function(t,e=-1){n.lW.isBuffer(t)||(t=i(t));let r=0===e?0:~~e;for(let e=0;e<t.length;e++){const n=t[e];r=C[255&(r^n)]^r>>>8}return r})),U=D,L={crc1:u,crc8:c,crc81wire:p,crc16:g,crc16ccitt:_,crc16modbus:E,crc16xmodem:O,crc16kermit:A,crc24:T,crc32:k,crcjam:D}},3032:(t,e,r)=>{"use strict";var n=r(9742),i=r(645),o="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;e.lW=s,e.h2=50;var a=2147483647;function u(t){if(t>a)throw new RangeError('The value "'+t+'" is invalid for option "size"');var e=new Uint8Array(t);return Object.setPrototypeOf(e,s.prototype),e}function s(t,e,r){if("number"==typeof t){if("string"==typeof e)throw new TypeError('The "string" argument must be of type string. Received type number');return l(t)}return f(t,e,r)}function f(t,e,r){if("string"==typeof t)return function(t,e){if("string"==typeof e&&""!==e||(e="utf8"),!s.isEncoding(e))throw new TypeError("Unknown encoding: "+e);var r=0|d(t,e),n=u(r),i=n.write(t,e);return i!==r&&(n=n.slice(0,i)),n}(t,e);if(ArrayBuffer.isView(t))return function(t){if(q(t,Uint8Array)){var e=new Uint8Array(t);return p(e.buffer,e.byteOffset,e.byteLength)}return h(t)}(t);if(null==t)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t);if(q(t,ArrayBuffer)||t&&q(t.buffer,ArrayBuffer))return p(t,e,r);if("undefined"!=typeof SharedArrayBuffer&&(q(t,SharedArrayBuffer)||t&&q(t.buffer,SharedArrayBuffer)))return p(t,e,r);if("number"==typeof t)throw new TypeError('The "value" argument must not be of type number. Received type number');var n=t.valueOf&&t.valueOf();if(null!=n&&n!==t)return s.from(n,e,r);var i=function(t){if(s.isBuffer(t)){var e=0|y(t.length),r=u(e);return 0===r.length||t.copy(r,0,0,e),r}return void 0!==t.length?"number"!=typeof t.length||W(t.length)?u(0):h(t):"Buffer"===t.type&&Array.isArray(t.data)?h(t.data):void 0}(t);if(i)return i;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof t[Symbol.toPrimitive])return s.from(t[Symbol.toPrimitive]("string"),e,r);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t)}function c(t){if("number"!=typeof t)throw new TypeError('"size" argument must be of type number');if(t<0)throw new RangeError('The value "'+t+'" is invalid for option "size"')}function l(t){return c(t),u(t<0?0:0|y(t))}function h(t){for(var e=t.length<0?0:0|y(t.length),r=u(e),n=0;n<e;n+=1)r[n]=255&t[n];return r}function p(t,e,r){if(e<0||t.byteLength<e)throw new RangeError('"offset" is outside of buffer bounds');if(t.byteLength<e+(r||0))throw new RangeError('"length" is outside of buffer bounds');var n;return n=void 0===e&&void 0===r?new Uint8Array(t):void 0===r?new Uint8Array(t,e):new Uint8Array(t,e,r),Object.setPrototypeOf(n,s.prototype),n}function y(t){if(t>=a)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a.toString(16)+" bytes");return 0|t}function d(t,e){if(s.isBuffer(t))return t.length;if(ArrayBuffer.isView(t)||q(t,ArrayBuffer))return t.byteLength;if("string"!=typeof t)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof t);var r=t.length,n=arguments.length>2&&!0===arguments[2];if(!n&&0===r)return 0;for(var i=!1;;)switch(e){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return M(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return N(t).length;default:if(i)return n?-1:M(t).length;e=(""+e).toLowerCase(),i=!0}}function g(t,e,r){var n=!1;if((void 0===e||e<0)&&(e=0),e>this.length)return"";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return"";if((r>>>=0)<=(e>>>=0))return"";for(t||(t="utf8");;)switch(t){case"hex":return T(this,e,r);case"utf8":case"utf-8":return x(this,e,r);case"ascii":return I(this,e,r);case"latin1":case"binary":return R(this,e,r);case"base64":return B(this,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return j(this,e,r);default:if(n)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),n=!0}}function b(t,e,r){var n=t[e];t[e]=t[r],t[r]=n}function v(t,e,r,n,i){if(0===t.length)return-1;if("string"==typeof r?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),W(r=+r)&&(r=i?0:t.length-1),r<0&&(r=t.length+r),r>=t.length){if(i)return-1;r=t.length-1}else if(r<0){if(!i)return-1;r=0}if("string"==typeof e&&(e=s.from(e,n)),s.isBuffer(e))return 0===e.length?-1:_(t,e,r,n,i);if("number"==typeof e)return e&=255,"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(t,e,r):Uint8Array.prototype.lastIndexOf.call(t,e,r):_(t,[e],r,n,i);throw new TypeError("val must be string, number or Buffer")}function _(t,e,r,n,i){var o,a=1,u=t.length,s=e.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(t.length<2||e.length<2)return-1;a=2,u/=2,s/=2,r/=2}function f(t,e){return 1===a?t[e]:t.readUInt16BE(e*a)}if(i){var c=-1;for(o=r;o<u;o++)if(f(t,o)===f(e,-1===c?0:o-c)){if(-1===c&&(c=o),o-c+1===s)return c*a}else-1!==c&&(o-=o-c),c=-1}else for(r+s>u&&(r=u-s),o=r;o>=0;o--){for(var l=!0,h=0;h<s;h++)if(f(t,o+h)!==f(e,h)){l=!1;break}if(l)return o}return-1}function m(t,e,r,n){r=Number(r)||0;var i=t.length-r;n?(n=Number(n))>i&&(n=i):n=i;var o=e.length;n>o/2&&(n=o/2);for(var a=0;a<n;++a){var u=parseInt(e.substr(2*a,2),16);if(W(u))return a;t[r+a]=u}return a}function w(t,e,r,n){return F(M(e,t.length-r),t,r,n)}function E(t,e,r,n){return F(function(t){for(var e=[],r=0;r<t.length;++r)e.push(255&t.charCodeAt(r));return e}(e),t,r,n)}function S(t,e,r,n){return F(N(e),t,r,n)}function O(t,e,r,n){return F(function(t,e){for(var r,n,i,o=[],a=0;a<t.length&&!((e-=2)<0);++a)n=(r=t.charCodeAt(a))>>8,i=r%256,o.push(i),o.push(n);return o}(e,t.length-r),t,r,n)}function B(t,e,r){return 0===e&&r===t.length?n.fromByteArray(t):n.fromByteArray(t.slice(e,r))}function x(t,e,r){r=Math.min(t.length,r);for(var n=[],i=e;i<r;){var o,a,u,s,f=t[i],c=null,l=f>239?4:f>223?3:f>191?2:1;if(i+l<=r)switch(l){case 1:f<128&&(c=f);break;case 2:128==(192&(o=t[i+1]))&&(s=(31&f)<<6|63&o)>127&&(c=s);break;case 3:o=t[i+1],a=t[i+2],128==(192&o)&&128==(192&a)&&(s=(15&f)<<12|(63&o)<<6|63&a)>2047&&(s<55296||s>57343)&&(c=s);break;case 4:o=t[i+1],a=t[i+2],u=t[i+3],128==(192&o)&&128==(192&a)&&128==(192&u)&&(s=(15&f)<<18|(63&o)<<12|(63&a)<<6|63&u)>65535&&s<1114112&&(c=s)}null===c?(c=65533,l=1):c>65535&&(c-=65536,n.push(c>>>10&1023|55296),c=56320|1023&c),n.push(c),i+=l}return function(t){var e=t.length;if(e<=A)return String.fromCharCode.apply(String,t);for(var r="",n=0;n<e;)r+=String.fromCharCode.apply(String,t.slice(n,n+=A));return r}(n)}s.TYPED_ARRAY_SUPPORT=function(){try{var t=new Uint8Array(1),e={foo:function(){return 42}};return Object.setPrototypeOf(e,Uint8Array.prototype),Object.setPrototypeOf(t,e),42===t.foo()}catch(t){return!1}}(),s.TYPED_ARRAY_SUPPORT||"undefined"==typeof console||"function"!=typeof console.error||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(s.prototype,"parent",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.buffer}}),Object.defineProperty(s.prototype,"offset",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.byteOffset}}),s.poolSize=8192,s.from=function(t,e,r){return f(t,e,r)},Object.setPrototypeOf(s.prototype,Uint8Array.prototype),Object.setPrototypeOf(s,Uint8Array),s.alloc=function(t,e,r){return function(t,e,r){return c(t),t<=0?u(t):void 0!==e?"string"==typeof r?u(t).fill(e,r):u(t).fill(e):u(t)}(t,e,r)},s.allocUnsafe=function(t){return l(t)},s.allocUnsafeSlow=function(t){return l(t)},s.isBuffer=function(t){return null!=t&&!0===t._isBuffer&&t!==s.prototype},s.compare=function(t,e){if(q(t,Uint8Array)&&(t=s.from(t,t.offset,t.byteLength)),q(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),!s.isBuffer(t)||!s.isBuffer(e))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(t===e)return 0;for(var r=t.length,n=e.length,i=0,o=Math.min(r,n);i<o;++i)if(t[i]!==e[i]){r=t[i],n=e[i];break}return r<n?-1:n<r?1:0},s.isEncoding=function(t){switch(String(t).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},s.concat=function(t,e){if(!Array.isArray(t))throw new TypeError('"list" argument must be an Array of Buffers');if(0===t.length)return s.alloc(0);var r;if(void 0===e)for(e=0,r=0;r<t.length;++r)e+=t[r].length;var n=s.allocUnsafe(e),i=0;for(r=0;r<t.length;++r){var o=t[r];if(q(o,Uint8Array))i+o.length>n.length?s.from(o).copy(n,i):Uint8Array.prototype.set.call(n,o,i);else{if(!s.isBuffer(o))throw new TypeError('"list" argument must be an Array of Buffers');o.copy(n,i)}i+=o.length}return n},s.byteLength=d,s.prototype._isBuffer=!0,s.prototype.swap16=function(){var t=this.length;if(t%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var e=0;e<t;e+=2)b(this,e,e+1);return this},s.prototype.swap32=function(){var t=this.length;if(t%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var e=0;e<t;e+=4)b(this,e,e+3),b(this,e+1,e+2);return this},s.prototype.swap64=function(){var t=this.length;if(t%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var e=0;e<t;e+=8)b(this,e,e+7),b(this,e+1,e+6),b(this,e+2,e+5),b(this,e+3,e+4);return this},s.prototype.toString=function(){var t=this.length;return 0===t?"":0===arguments.length?x(this,0,t):g.apply(this,arguments)},s.prototype.toLocaleString=s.prototype.toString,s.prototype.equals=function(t){if(!s.isBuffer(t))throw new TypeError("Argument must be a Buffer");return this===t||0===s.compare(this,t)},s.prototype.inspect=function(){var t="",r=e.h2;return t=this.toString("hex",0,r).replace(/(.{2})/g,"$1 ").trim(),this.length>r&&(t+=" ... "),"<Buffer "+t+">"},o&&(s.prototype[o]=s.prototype.inspect),s.prototype.compare=function(t,e,r,n,i){if(q(t,Uint8Array)&&(t=s.from(t,t.offset,t.byteLength)),!s.isBuffer(t))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof t);if(void 0===e&&(e=0),void 0===r&&(r=t?t.length:0),void 0===n&&(n=0),void 0===i&&(i=this.length),e<0||r>t.length||n<0||i>this.length)throw new RangeError("out of range index");if(n>=i&&e>=r)return 0;if(n>=i)return-1;if(e>=r)return 1;if(this===t)return 0;for(var o=(i>>>=0)-(n>>>=0),a=(r>>>=0)-(e>>>=0),u=Math.min(o,a),f=this.slice(n,i),c=t.slice(e,r),l=0;l<u;++l)if(f[l]!==c[l]){o=f[l],a=c[l];break}return o<a?-1:a<o?1:0},s.prototype.includes=function(t,e,r){return-1!==this.indexOf(t,e,r)},s.prototype.indexOf=function(t,e,r){return v(this,t,e,r,!0)},s.prototype.lastIndexOf=function(t,e,r){return v(this,t,e,r,!1)},s.prototype.write=function(t,e,r,n){if(void 0===e)n="utf8",r=this.length,e=0;else if(void 0===r&&"string"==typeof e)n=e,r=this.length,e=0;else{if(!isFinite(e))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");e>>>=0,isFinite(r)?(r>>>=0,void 0===n&&(n="utf8")):(n=r,r=void 0)}var i=this.length-e;if((void 0===r||r>i)&&(r=i),t.length>0&&(r<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var o=!1;;)switch(n){case"hex":return m(this,t,e,r);case"utf8":case"utf-8":return w(this,t,e,r);case"ascii":case"latin1":case"binary":return E(this,t,e,r);case"base64":return S(this,t,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return O(this,t,e,r);default:if(o)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),o=!0}},s.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var A=4096;function I(t,e,r){var n="";r=Math.min(t.length,r);for(var i=e;i<r;++i)n+=String.fromCharCode(127&t[i]);return n}function R(t,e,r){var n="";r=Math.min(t.length,r);for(var i=e;i<r;++i)n+=String.fromCharCode(t[i]);return n}function T(t,e,r){var n=t.length;(!e||e<0)&&(e=0),(!r||r<0||r>n)&&(r=n);for(var i="",o=e;o<r;++o)i+=z[t[o]];return i}function j(t,e,r){for(var n=t.slice(e,r),i="",o=0;o<n.length-1;o+=2)i+=String.fromCharCode(n[o]+256*n[o+1]);return i}function P(t,e,r){if(t%1!=0||t<0)throw new RangeError("offset is not uint");if(t+e>r)throw new RangeError("Trying to access beyond buffer length")}function k(t,e,r,n,i,o){if(!s.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>i||e<o)throw new RangeError('"value" argument is out of bounds');if(r+n>t.length)throw new RangeError("Index out of range")}function C(t,e,r,n,i,o){if(r+n>t.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function D(t,e,r,n,o){return e=+e,r>>>=0,o||C(t,0,r,4),i.write(t,e,r,n,23,4),r+4}function U(t,e,r,n,o){return e=+e,r>>>=0,o||C(t,0,r,8),i.write(t,e,r,n,52,8),r+8}s.prototype.slice=function(t,e){var r=this.length;(t=~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),(e=void 0===e?r:~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),e<t&&(e=t);var n=this.subarray(t,e);return Object.setPrototypeOf(n,s.prototype),n},s.prototype.readUintLE=s.prototype.readUIntLE=function(t,e,r){t>>>=0,e>>>=0,r||P(t,e,this.length);for(var n=this[t],i=1,o=0;++o<e&&(i*=256);)n+=this[t+o]*i;return n},s.prototype.readUintBE=s.prototype.readUIntBE=function(t,e,r){t>>>=0,e>>>=0,r||P(t,e,this.length);for(var n=this[t+--e],i=1;e>0&&(i*=256);)n+=this[t+--e]*i;return n},s.prototype.readUint8=s.prototype.readUInt8=function(t,e){return t>>>=0,e||P(t,1,this.length),this[t]},s.prototype.readUint16LE=s.prototype.readUInt16LE=function(t,e){return t>>>=0,e||P(t,2,this.length),this[t]|this[t+1]<<8},s.prototype.readUint16BE=s.prototype.readUInt16BE=function(t,e){return t>>>=0,e||P(t,2,this.length),this[t]<<8|this[t+1]},s.prototype.readUint32LE=s.prototype.readUInt32LE=function(t,e){return t>>>=0,e||P(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},s.prototype.readUint32BE=s.prototype.readUInt32BE=function(t,e){return t>>>=0,e||P(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},s.prototype.readIntLE=function(t,e,r){t>>>=0,e>>>=0,r||P(t,e,this.length);for(var n=this[t],i=1,o=0;++o<e&&(i*=256);)n+=this[t+o]*i;return n>=(i*=128)&&(n-=Math.pow(2,8*e)),n},s.prototype.readIntBE=function(t,e,r){t>>>=0,e>>>=0,r||P(t,e,this.length);for(var n=e,i=1,o=this[t+--n];n>0&&(i*=256);)o+=this[t+--n]*i;return o>=(i*=128)&&(o-=Math.pow(2,8*e)),o},s.prototype.readInt8=function(t,e){return t>>>=0,e||P(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},s.prototype.readInt16LE=function(t,e){t>>>=0,e||P(t,2,this.length);var r=this[t]|this[t+1]<<8;return 32768&r?4294901760|r:r},s.prototype.readInt16BE=function(t,e){t>>>=0,e||P(t,2,this.length);var r=this[t+1]|this[t]<<8;return 32768&r?4294901760|r:r},s.prototype.readInt32LE=function(t,e){return t>>>=0,e||P(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},s.prototype.readInt32BE=function(t,e){return t>>>=0,e||P(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},s.prototype.readFloatLE=function(t,e){return t>>>=0,e||P(t,4,this.length),i.read(this,t,!0,23,4)},s.prototype.readFloatBE=function(t,e){return t>>>=0,e||P(t,4,this.length),i.read(this,t,!1,23,4)},s.prototype.readDoubleLE=function(t,e){return t>>>=0,e||P(t,8,this.length),i.read(this,t,!0,52,8)},s.prototype.readDoubleBE=function(t,e){return t>>>=0,e||P(t,8,this.length),i.read(this,t,!1,52,8)},s.prototype.writeUintLE=s.prototype.writeUIntLE=function(t,e,r,n){t=+t,e>>>=0,r>>>=0,n||k(this,t,e,r,Math.pow(2,8*r)-1,0);var i=1,o=0;for(this[e]=255&t;++o<r&&(i*=256);)this[e+o]=t/i&255;return e+r},s.prototype.writeUintBE=s.prototype.writeUIntBE=function(t,e,r,n){t=+t,e>>>=0,r>>>=0,n||k(this,t,e,r,Math.pow(2,8*r)-1,0);var i=r-1,o=1;for(this[e+i]=255&t;--i>=0&&(o*=256);)this[e+i]=t/o&255;return e+r},s.prototype.writeUint8=s.prototype.writeUInt8=function(t,e,r){return t=+t,e>>>=0,r||k(this,t,e,1,255,0),this[e]=255&t,e+1},s.prototype.writeUint16LE=s.prototype.writeUInt16LE=function(t,e,r){return t=+t,e>>>=0,r||k(this,t,e,2,65535,0),this[e]=255&t,this[e+1]=t>>>8,e+2},s.prototype.writeUint16BE=s.prototype.writeUInt16BE=function(t,e,r){return t=+t,e>>>=0,r||k(this,t,e,2,65535,0),this[e]=t>>>8,this[e+1]=255&t,e+2},s.prototype.writeUint32LE=s.prototype.writeUInt32LE=function(t,e,r){return t=+t,e>>>=0,r||k(this,t,e,4,4294967295,0),this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t,e+4},s.prototype.writeUint32BE=s.prototype.writeUInt32BE=function(t,e,r){return t=+t,e>>>=0,r||k(this,t,e,4,4294967295,0),this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t,e+4},s.prototype.writeIntLE=function(t,e,r,n){if(t=+t,e>>>=0,!n){var i=Math.pow(2,8*r-1);k(this,t,e,r,i-1,-i)}var o=0,a=1,u=0;for(this[e]=255&t;++o<r&&(a*=256);)t<0&&0===u&&0!==this[e+o-1]&&(u=1),this[e+o]=(t/a>>0)-u&255;return e+r},s.prototype.writeIntBE=function(t,e,r,n){if(t=+t,e>>>=0,!n){var i=Math.pow(2,8*r-1);k(this,t,e,r,i-1,-i)}var o=r-1,a=1,u=0;for(this[e+o]=255&t;--o>=0&&(a*=256);)t<0&&0===u&&0!==this[e+o+1]&&(u=1),this[e+o]=(t/a>>0)-u&255;return e+r},s.prototype.writeInt8=function(t,e,r){return t=+t,e>>>=0,r||k(this,t,e,1,127,-128),t<0&&(t=255+t+1),this[e]=255&t,e+1},s.prototype.writeInt16LE=function(t,e,r){return t=+t,e>>>=0,r||k(this,t,e,2,32767,-32768),this[e]=255&t,this[e+1]=t>>>8,e+2},s.prototype.writeInt16BE=function(t,e,r){return t=+t,e>>>=0,r||k(this,t,e,2,32767,-32768),this[e]=t>>>8,this[e+1]=255&t,e+2},s.prototype.writeInt32LE=function(t,e,r){return t=+t,e>>>=0,r||k(this,t,e,4,2147483647,-2147483648),this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24,e+4},s.prototype.writeInt32BE=function(t,e,r){return t=+t,e>>>=0,r||k(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t,e+4},s.prototype.writeFloatLE=function(t,e,r){return D(this,t,e,!0,r)},s.prototype.writeFloatBE=function(t,e,r){return D(this,t,e,!1,r)},s.prototype.writeDoubleLE=function(t,e,r){return U(this,t,e,!0,r)},s.prototype.writeDoubleBE=function(t,e,r){return U(this,t,e,!1,r)},s.prototype.copy=function(t,e,r,n){if(!s.isBuffer(t))throw new TypeError("argument should be a Buffer");if(r||(r=0),n||0===n||(n=this.length),e>=t.length&&(e=t.length),e||(e=0),n>0&&n<r&&(n=r),n===r)return 0;if(0===t.length||0===this.length)return 0;if(e<0)throw new RangeError("targetStart out of bounds");if(r<0||r>=this.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),t.length-e<n-r&&(n=t.length-e+r);var i=n-r;return this===t&&"function"==typeof Uint8Array.prototype.copyWithin?this.copyWithin(e,r,n):Uint8Array.prototype.set.call(t,this.subarray(r,n),e),i},s.prototype.fill=function(t,e,r,n){if("string"==typeof t){if("string"==typeof e?(n=e,e=0,r=this.length):"string"==typeof r&&(n=r,r=this.length),void 0!==n&&"string"!=typeof n)throw new TypeError("encoding must be a string");if("string"==typeof n&&!s.isEncoding(n))throw new TypeError("Unknown encoding: "+n);if(1===t.length){var i=t.charCodeAt(0);("utf8"===n&&i<128||"latin1"===n)&&(t=i)}}else"number"==typeof t?t&=255:"boolean"==typeof t&&(t=Number(t));if(e<0||this.length<e||this.length<r)throw new RangeError("Out of range index");if(r<=e)return this;var o;if(e>>>=0,r=void 0===r?this.length:r>>>0,t||(t=0),"number"==typeof t)for(o=e;o<r;++o)this[o]=t;else{var a=s.isBuffer(t)?t:s.from(t,n),u=a.length;if(0===u)throw new TypeError('The value "'+t+'" is invalid for argument "value"');for(o=0;o<r-e;++o)this[o+e]=a[o%u]}return this};var L=/[^+/0-9A-Za-z-_]/g;function M(t,e){var r;e=e||1/0;for(var n=t.length,i=null,o=[],a=0;a<n;++a){if((r=t.charCodeAt(a))>55295&&r<57344){if(!i){if(r>56319){(e-=3)>-1&&o.push(239,191,189);continue}if(a+1===n){(e-=3)>-1&&o.push(239,191,189);continue}i=r;continue}if(r<56320){(e-=3)>-1&&o.push(239,191,189),i=r;continue}r=65536+(i-55296<<10|r-56320)}else i&&(e-=3)>-1&&o.push(239,191,189);if(i=null,r<128){if((e-=1)<0)break;o.push(r)}else if(r<2048){if((e-=2)<0)break;o.push(r>>6|192,63&r|128)}else if(r<65536){if((e-=3)<0)break;o.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error("Invalid code point");if((e-=4)<0)break;o.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return o}function N(t){return n.toByteArray(function(t){if((t=(t=t.split("=")[0]).trim().replace(L,"")).length<2)return"";for(;t.length%4!=0;)t+="=";return t}(t))}function F(t,e,r,n){for(var i=0;i<n&&!(i+r>=e.length||i>=t.length);++i)e[i+r]=t[i];return i}function q(t,e){return t instanceof e||null!=t&&null!=t.constructor&&null!=t.constructor.name&&t.constructor.name===e.name}function W(t){return t!=t}var z=function(){for(var t="0123456789abcdef",e=new Array(256),r=0;r<16;++r)for(var n=16*r,i=0;i<16;++i)e[n+i]=t[r]+t[i];return e}()},3482:(t,e,r)=>{"use strict";var n=r(5717),i=r(2318),o=r(9785),a=r(9072),u=r(1027);function s(t){u.call(this,"digest"),this._hash=t}n(s,u),s.prototype._update=function(t){this._hash.update(t)},s.prototype._final=function(){return this._hash.digest()},t.exports=function(t){return"md5"===(t=t.toLowerCase())?new i:"rmd160"===t||"ripemd160"===t?new o:new s(a(t))}},4289:(t,e,r)=>{"use strict";var n=r(2215),i="function"==typeof Symbol&&"symbol"==typeof Symbol("foo"),o=Object.prototype.toString,a=Array.prototype.concat,u=Object.defineProperty,s=u&&function(){var t={};try{for(var e in u(t,"x",{enumerable:!1,value:t}),t)return!1;return t.x===t}catch(t){return!1}}(),f=function(t,e,r,n){var i;(!(e in t)||"function"==typeof(i=n)&&"[object Function]"===o.call(i)&&n())&&(s?u(t,e,{configurable:!0,enumerable:!1,value:r,writable:!0}):t[e]=r)},c=function(t,e){var r=arguments.length>2?arguments[2]:{},o=n(e);i&&(o=a.call(o,Object.getOwnPropertySymbols(e)));for(var u=0;u<o.length;u+=1)f(t,o[u],e[o[u]],r[o[u]])};c.supportsDescriptors=!!s,t.exports=c},4745:(t,e,r)=>{"use strict";var n=r(210),i=n("%Array%"),o=n("%Symbol.species%",!0),a=n("%TypeError%"),u=r(5588),s=r(4400),f=r(970),c=r(7868),l=r(1915);t.exports=function(t,e){if(!c(e)||e<0)throw new a("Assertion failed: length must be an integer >= 0");var r,n=0===e?0:e;if(s(t)&&(r=u(t,"constructor"),o&&"Object"===l(r)&&null===(r=u(r,o))&&(r=void 0)),void 0===r)return i(n);if(!f(r))throw new a("C must be a constructor");return new r(n)}},7800:(t,e,r)=>{"use strict";var n=r(210),i=r(1924),o=n("%TypeError%"),a=r(4400),u=n("%Reflect.apply%",!0)||i("%Function.prototype.apply%");t.exports=function(t,e){var r=arguments.length>2?arguments[2]:[];if(!a(r))throw new o("Assertion failed: optional `argumentsList`, if provided, must be a List");return u(t,e,r)}},2467:(t,e,r)=>{"use strict";var n=r(210)("%TypeError%"),i=r(509),o=r(1922),a=r(1186),u=r(4307),s=r(8624),f=r(1388),c=r(1221),l=r(1915);t.exports=function(t,e,r){if("Object"!==l(t))throw new n("Assertion failed: Type(O) is not Object");if(!f(e))throw new n("Assertion failed: IsPropertyKey(P) is not true");var h=a(t,e),p=!h||s(t);return!(h&&(!h["[[Writable]]"]||!h["[[Configurable]]"])||!p)&&i(u,c,o,t,e,{"[[Configurable]]":!0,"[[Enumerable]]":!0,"[[Value]]":r,"[[Writable]]":!0})}},2861:(t,e,r)=>{"use strict";var n=r(210)("%TypeError%"),i=r(2467),o=r(1388),a=r(1915);t.exports=function(t,e,r){if("Object"!==a(t))throw new n("Assertion failed: Type(O) is not Object");if(!o(e))throw new n("Assertion failed: IsPropertyKey(P) is not true");var u=i(t,e,r);if(!u)throw new n("unable to create data property");return u}},7942:(t,e,r)=>{"use strict";var n=r(210)("%TypeError%"),i=r(9146),o=r(509),a=r(1922),u=r(1876),s=r(4307),f=r(1388),c=r(1221),l=r(2449),h=r(1915);t.exports=function(t,e,r){if("Object"!==h(t))throw new n("Assertion failed: Type(O) is not Object");if(!f(e))throw new n("Assertion failed: IsPropertyKey(P) is not true");var p=i({Type:h,IsDataDescriptor:s,IsAccessorDescriptor:u},r)?r:l(r);if(!i({Type:h,IsDataDescriptor:s,IsAccessorDescriptor:u},p))throw new n("Assertion failed: Desc is not a valid Property Descriptor");return o(s,c,a,t,e,p)}},1922:(t,e,r)=>{"use strict";var n=r(4179),i=r(1915);t.exports=function(t){if(void 0===t)return t;n(i,"Property Descriptor","Desc",t);var e={};return"[[Value]]"in t&&(e.value=t["[[Value]]"]),"[[Writable]]"in t&&(e.writable=t["[[Writable]]"]),"[[Get]]"in t&&(e.get=t["[[Get]]"]),"[[Set]]"in t&&(e.set=t["[[Set]]"]),"[[Enumerable]]"in t&&(e.enumerable=t["[[Enumerable]]"]),"[[Configurable]]"in t&&(e.configurable=t["[[Configurable]]"]),e}},5588:(t,e,r)=>{"use strict";var n=r(210)("%TypeError%"),i=r(631),o=r(1388),a=r(1915);t.exports=function(t,e){if("Object"!==a(t))throw new n("Assertion failed: Type(O) is not Object");if(!o(e))throw new n("Assertion failed: IsPropertyKey(P) is not true, got "+i(e));return t[e]}},7392:(t,e,r)=>{"use strict";var n=r(210)("%TypeError%"),i=r(1388),o=r(1915);t.exports=function(t,e){if("Object"!==o(t))throw new n("Assertion failed: `O` must be an Object");if(!i(e))throw new n("Assertion failed: `P` must be a Property Key");return e in t}},1876:(t,e,r)=>{"use strict";var n=r(7642),i=r(4179),o=r(1915);t.exports=function(t){return void 0!==t&&(i(o,"Property Descriptor","Desc",t),!(!n(t,"[[Get]]")&&!n(t,"[[Set]]")))}},4400:(t,e,r)=>{"use strict";var n=r(210)("%Array%"),i=!n.isArray&&r(1924)("Object.prototype.toString");t.exports=n.isArray||function(t){return"[object Array]"===i(t)}},590:(t,e,r)=>{"use strict";t.exports=r(5320)},970:(t,e,r)=>{"use strict";var n=r(8769)("%Reflect.construct%",!0),i=r(7942);try{i({},"",{"[[Get]]":function(){}})}catch(t){i=null}if(i&&n){var o={},a={};i(a,"length",{"[[Get]]":function(){throw o},"[[Enumerable]]":!0}),t.exports=function(t){try{n(t,a)}catch(t){return t===o}}}else t.exports=function(t){return"function"==typeof t&&!!t.prototype}},4307:(t,e,r)=>{"use strict";var n=r(7642),i=r(4179),o=r(1915);t.exports=function(t){return void 0!==t&&(i(o,"Property Descriptor","Desc",t),!(!n(t,"[[Value]]")&&!n(t,"[[Writable]]")))}},8624:(t,e,r)=>{"use strict";var n=r(210)("%Object%"),i=r(3126),o=n.preventExtensions,a=n.isExtensible;t.exports=o?function(t){return!i(t)&&a(t)}:function(t){return!i(t)}},7868:(t,e,r)=>{"use strict";var n=r(1717),i=r(9202),o=r(1214),a=r(3060);t.exports=function(t){if("number"!=typeof t||o(t)||!a(t))return!1;var e=n(t);return i(e)===e}},1388:t=>{"use strict";t.exports=function(t){return"string"==typeof t||"symbol"==typeof t}},1137:(t,e,r)=>{"use strict";var n=r(210)("%Symbol.match%",!0),i=r(8420),o=r(3683);t.exports=function(t){if(!t||"object"!=typeof t)return!1;if(n){var e=t[n];if(void 0!==e)return o(e)}return i(t)}},5484:(t,e,r)=>{"use strict";var n=r(210)("%TypeError%"),i=r(5588),o=r(8502),a=r(1915);t.exports=function(t){if("Object"!==a(t))throw new n("Assertion failed: `obj` must be an Object");return o(i(t,"length"))}},1186:(t,e,r)=>{"use strict";var n=r(210),i=r(4079),o=n("%TypeError%"),a=r(1924)("Object.prototype.propertyIsEnumerable"),u=r(7642),s=r(4400),f=r(1388),c=r(1137),l=r(2449),h=r(1915);t.exports=function(t,e){if("Object"!==h(t))throw new o("Assertion failed: O must be an Object");if(!f(e))throw new o("Assertion failed: P must be a Property Key");if(u(t,e)){if(!i){var r=s(t)&&"length"===e,n=c(t)&&"lastIndex"===e;return{"[[Configurable]]":!(r||n),"[[Enumerable]]":a(t,e),"[[Value]]":t[e],"[[Writable]]":!0}}return l(i(t,e))}}},3733:(t,e,r)=>{"use strict";t.exports=r(8631)},1221:(t,e,r)=>{"use strict";var n=r(1214);t.exports=function(t,e){return t===e?0!==t||1/t==1/e:n(t)&&n(e)}},3683:t=>{"use strict";t.exports=function(t){return!!t}},5912:(t,e,r)=>{"use strict";var n=r(7195),i=r(7622);t.exports=function(t){var e=i(t);return 0!==e&&(e=n(e)),0===e?0:e}},8502:(t,e,r)=>{"use strict";var n=r(5376),i=r(5912);t.exports=function(t){var e=i(t);return e<=0?0:e>n?n:e}},7622:(t,e,r)=>{"use strict";var n=r(210),i=n("%TypeError%"),o=n("%Number%"),a=n("%RegExp%"),u=n("%parseInt%"),s=r(1924),f=r(1652),c=r(3126),l=s("String.prototype.slice"),h=f(/^0b[01]+$/i),p=f(/^0o[0-7]+$/i),y=f(/^[-+]0x[0-9a-f]+$/i),d=f(new a("["+["…","","￾"].join("")+"]","g")),g=["\t\n\v\f\r   "," \u2028","\u2029\ufeff"].join(""),b=new RegExp("(^["+g+"]+)|(["+g+"]+$)","g"),v=s("String.prototype.replace"),_=r(8842);t.exports=function t(e){var r=c(e)?e:_(e,o);if("symbol"==typeof r)throw new i("Cannot convert a Symbol value to a number");if("string"==typeof r){if(h(r))return t(u(l(r,2),2));if(p(r))return t(u(l(r,2),8));if(d(r)||y(r))return NaN;var n=function(t){return v(t,b,"")}(r);if(n!==r)return t(n)}return o(r)}},2093:(t,e,r)=>{"use strict";var n=r(210)("%Object%"),i=r(3733);t.exports=function(t){return i(t),n(t)}},8842:(t,e,r)=>{"use strict";var n=r(1503);t.exports=function(t){return arguments.length>1?n(t,arguments[1]):n(t)}},2449:(t,e,r)=>{"use strict";var n=r(7642),i=r(210)("%TypeError%"),o=r(1915),a=r(3683),u=r(590);t.exports=function(t){if("Object"!==o(t))throw new i("ToPropertyDescriptor requires an object");var e={};if(n(t,"enumerable")&&(e["[[Enumerable]]"]=a(t.enumerable)),n(t,"configurable")&&(e["[[Configurable]]"]=a(t.configurable)),n(t,"value")&&(e["[[Value]]"]=t.value),n(t,"writable")&&(e["[[Writable]]"]=a(t.writable)),n(t,"get")){var r=t.get;if(void 0!==r&&!u(r))throw new i("getter must be a function");e["[[Get]]"]=r}if(n(t,"set")){var s=t.set;if(void 0!==s&&!u(s))throw new i("setter must be a function");e["[[Set]]"]=s}if((n(e,"[[Get]]")||n(e,"[[Set]]"))&&(n(e,"[[Value]]")||n(e,"[[Writable]]")))throw new i("Invalid property descriptor. Cannot both specify accessors and a value or writable attribute");return e}},7308:(t,e,r)=>{"use strict";var n=r(210),i=n("%String%"),o=n("%TypeError%");t.exports=function(t){if("symbol"==typeof t)throw new o("Cannot convert a Symbol value to a string");return i(t)}},1915:(t,e,r)=>{"use strict";var n=r(1276);t.exports=function(t){return"symbol"==typeof t?"Symbol":"bigint"==typeof t?"BigInt":n(t)}},1717:(t,e,r)=>{"use strict";var n=r(210)("%Math.abs%");t.exports=function(t){return n(t)}},9202:t=>{"use strict";var e=Math.floor;t.exports=function(t){return e(t)}},8631:(t,e,r)=>{"use strict";var n=r(210)("%TypeError%");t.exports=function(t,e){if(null==t)throw new n(e||"Cannot call method on "+t);return t}},7195:(t,e,r)=>{"use strict";var n=r(2683),i=r(9711),o=r(7196),a=r(1214),u=r(3060),s=r(4099);t.exports=function(t){var e=o(t);return a(e)?0:0!==e&&u(e)?s(e)*i(n(e)):e}},7196:(t,e,r)=>{"use strict";var n=r(1318);t.exports=function(t){var e=n(t,Number);if("string"!=typeof e)return+e;var r=e.replace(/^[ \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u0085]+|[ \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u0085]+$/g,"");return/^0[ob]|^[+-]0x/.test(r)?NaN:+r}},1318:(t,e,r)=>{"use strict";t.exports=r(2116)},1276:t=>{"use strict";t.exports=function(t){return null===t?"Null":void 0===t?"Undefined":"function"==typeof t||"object"==typeof t?"Object":"number"==typeof t?"Number":"boolean"==typeof t?"Boolean":"string"==typeof t?"String":void 0}},2683:(t,e,r)=>{"use strict";var n=r(210)("%Math.abs%");t.exports=function(t){return n(t)}},9711:t=>{"use strict";var e=Math.floor;t.exports=function(t){return e(t)}},8769:(t,e,r)=>{"use strict";t.exports=r(210)},509:(t,e,r)=>{"use strict";var n=r(210)("%Object.defineProperty%",!0);if(n)try{n({},"a",{value:1})}catch(t){n=null}var i=r(1924)("Object.prototype.propertyIsEnumerable");t.exports=function(t,e,r,o,a,u){if(!n){if(!t(u))return!1;if(!u["[[Configurable]]"]||!u["[[Writable]]"])return!1;if(a in o&&i(o,a)!==!!u["[[Enumerable]]"])return!1;var s=u["[[Value]]"];return o[a]=s,e(o[a],s)}return n(o,a,r(u)),!0}},4179:(t,e,r)=>{"use strict";var n=r(210),i=n("%TypeError%"),o=n("%SyntaxError%"),a=r(7642),u={"Property Descriptor":function(t,e){if("Object"!==t(e))return!1;var r={"[[Configurable]]":!0,"[[Enumerable]]":!0,"[[Get]]":!0,"[[Set]]":!0,"[[Value]]":!0,"[[Writable]]":!0};for(var n in e)if(a(e,n)&&!r[n])return!1;var o=a(e,"[[Value]]"),u=a(e,"[[Get]]")||a(e,"[[Set]]");if(o&&u)throw new i("Property Descriptors may not be both accessor and data descriptors");return!0}};t.exports=function(t,e,r,n){var a=u[e];if("function"!=typeof a)throw new o("unknown record type: "+e);if(!a(t,n))throw new i(r+" must be a "+e)}},4079:(t,e,r)=>{"use strict";var n=r(210)("%Object.getOwnPropertyDescriptor%");if(n)try{n([],"length")}catch(t){n=null}t.exports=n},3060:t=>{"use strict";var e=Number.isNaN||function(t){return t!=t};t.exports=Number.isFinite||function(t){return"number"==typeof t&&!e(t)&&t!==1/0&&t!==-1/0}},1214:t=>{"use strict";t.exports=Number.isNaN||function(t){return t!=t}},3126:t=>{"use strict";t.exports=function(t){return null===t||"function"!=typeof t&&"object"!=typeof t}},9146:(t,e,r)=>{"use strict";var n=r(210),i=r(7642),o=n("%TypeError%");t.exports=function(t,e){if("Object"!==t.Type(e))return!1;var r={"[[Configurable]]":!0,"[[Enumerable]]":!0,"[[Get]]":!0,"[[Set]]":!0,"[[Value]]":!0,"[[Writable]]":!0};for(var n in e)if(i(e,n)&&!r[n])return!1;if(t.IsDataDescriptor(e)&&t.IsAccessorDescriptor(e))throw new o("Property Descriptors may not be both accessor and data descriptors");return!0}},5376:(t,e,r)=>{"use strict";var n=r(210),i=n("%Math%"),o=n("%Number%");t.exports=o.MAX_SAFE_INTEGER||i.pow(2,53)-1},1652:(t,e,r)=>{"use strict";var n=r(210)("RegExp.prototype.test"),i=r(5559);t.exports=function(t){return i(n,t)}},4099:t=>{"use strict";t.exports=function(t){return t>=0?1:-1}},2868:t=>{t.exports=function(t){var e=!0,r=!0,n=!1;if("function"==typeof t){try{t.call("f",(function(t,r,n){"object"!=typeof n&&(e=!1)})),t.call([null],(function(){"use strict";r="string"==typeof this}),"x")}catch(t){n=!0}return!n&&e&&r}return!1}},1503:(t,e,r)=>{"use strict";var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator,i=r(4149),o=r(5320),a=r(8923),u=r(2636),s=function(t,e){if(null==t)throw new TypeError("Cannot call method on "+t);if("string"!=typeof e||"number"!==e&&"string"!==e)throw new TypeError('hint must be "string" or "number"');var r,n,a,u="string"===e?["toString","valueOf"]:["valueOf","toString"];for(a=0;a<u.length;++a)if(r=t[u[a]],o(r)&&(n=r.call(t),i(n)))return n;throw new TypeError("No default value")},f=function(t,e){var r=t[e];if(null!=r){if(!o(r))throw new TypeError(r+" returned for property "+e+" of object "+t+" is not a function");return r}};t.exports=function(t){if(i(t))return t;var e,r="default";if(arguments.length>1&&(arguments[1]===String?r="string":arguments[1]===Number&&(r="number")),n&&(Symbol.toPrimitive?e=f(t,Symbol.toPrimitive):u(t)&&(e=Symbol.prototype.valueOf)),void 0!==e){var o=e.call(t,r);if(i(o))return o;throw new TypeError("unable to convert exotic object to primitive")}return"default"===r&&(a(t)||u(t))&&(r="string"),s(t,"default"===r?"number":r)}},2116:(t,e,r)=>{"use strict";var n=Object.prototype.toString,i=r(4149),o=r(5320),a=function(t){var e;if((e=arguments.length>1?arguments[1]:"[object Date]"===n.call(t)?String:Number)===String||e===Number){var r,a,u=e===String?["toString","valueOf"]:["valueOf","toString"];for(a=0;a<u.length;++a)if(o(t[u[a]])&&(r=t[u[a]](),i(r)))return r;throw new TypeError("No default value")}throw new TypeError("invalid [[DefaultValue]] hint supplied")};t.exports=function(t){return i(t)?t:arguments.length>1?a(t,arguments[1]):a(t)}},4149:t=>{"use strict";t.exports=function(t){return null===t||"function"!=typeof t&&"object"!=typeof t}},8091:t=>{"use strict";function e(t,e){if(null==t)throw new TypeError("Cannot convert first argument to object");for(var r=Object(t),n=1;n<arguments.length;n++){var i=arguments[n];if(null!=i)for(var o=Object.keys(Object(i)),a=0,u=o.length;a<u;a++){var s=o[a],f=Object.getOwnPropertyDescriptor(i,s);void 0!==f&&f.enumerable&&(r[s]=i[s])}}return r}t.exports={assign:e,polyfill:function(){Object.assign||Object.defineProperty(Object,"assign",{enumerable:!1,configurable:!0,writable:!0,value:e})}}},7187:t=>{"use strict";var e,r="object"==typeof Reflect?Reflect:null,n=r&&"function"==typeof r.apply?r.apply:function(t,e,r){return Function.prototype.apply.call(t,e,r)};e=r&&"function"==typeof r.ownKeys?r.ownKeys:Object.getOwnPropertySymbols?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:function(t){return Object.getOwnPropertyNames(t)};var i=Number.isNaN||function(t){return t!=t};function o(){o.init.call(this)}t.exports=o,t.exports.once=function(t,e){return new Promise((function(r,n){function i(r){t.removeListener(e,o),n(r)}function o(){"function"==typeof t.removeListener&&t.removeListener("error",i),r([].slice.call(arguments))}d(t,e,o,{once:!0}),"error"!==e&&function(t,e,r){"function"==typeof t.on&&d(t,"error",e,{once:!0})}(t,i)}))},o.EventEmitter=o,o.prototype._events=void 0,o.prototype._eventsCount=0,o.prototype._maxListeners=void 0;var a=10;function u(t){if("function"!=typeof t)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof t)}function s(t){return void 0===t._maxListeners?o.defaultMaxListeners:t._maxListeners}function f(t,e,r,n){var i,o,a,f;if(u(r),void 0===(o=t._events)?(o=t._events=Object.create(null),t._eventsCount=0):(void 0!==o.newListener&&(t.emit("newListener",e,r.listener?r.listener:r),o=t._events),a=o[e]),void 0===a)a=o[e]=r,++t._eventsCount;else if("function"==typeof a?a=o[e]=n?[r,a]:[a,r]:n?a.unshift(r):a.push(r),(i=s(t))>0&&a.length>i&&!a.warned){a.warned=!0;var c=new Error("Possible EventEmitter memory leak detected. "+a.length+" "+String(e)+" listeners added. Use emitter.setMaxListeners() to increase limit");c.name="MaxListenersExceededWarning",c.emitter=t,c.type=e,c.count=a.length,f=c,console&&console.warn&&console.warn(f)}return t}function c(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function l(t,e,r){var n={fired:!1,wrapFn:void 0,target:t,type:e,listener:r},i=c.bind(n);return i.listener=r,n.wrapFn=i,i}function h(t,e,r){var n=t._events;if(void 0===n)return[];var i=n[e];return void 0===i?[]:"function"==typeof i?r?[i.listener||i]:[i]:r?function(t){for(var e=new Array(t.length),r=0;r<e.length;++r)e[r]=t[r].listener||t[r];return e}(i):y(i,i.length)}function p(t){var e=this._events;if(void 0!==e){var r=e[t];if("function"==typeof r)return 1;if(void 0!==r)return r.length}return 0}function y(t,e){for(var r=new Array(e),n=0;n<e;++n)r[n]=t[n];return r}function d(t,e,r,n){if("function"==typeof t.on)n.once?t.once(e,r):t.on(e,r);else{if("function"!=typeof t.addEventListener)throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof t);t.addEventListener(e,(function i(o){n.once&&t.removeEventListener(e,i),r(o)}))}}Object.defineProperty(o,"defaultMaxListeners",{enumerable:!0,get:function(){return a},set:function(t){if("number"!=typeof t||t<0||i(t))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+t+".");a=t}}),o.init=function(){void 0!==this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},o.prototype.setMaxListeners=function(t){if("number"!=typeof t||t<0||i(t))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+t+".");return this._maxListeners=t,this},o.prototype.getMaxListeners=function(){return s(this)},o.prototype.emit=function(t){for(var e=[],r=1;r<arguments.length;r++)e.push(arguments[r]);var i="error"===t,o=this._events;if(void 0!==o)i=i&&void 0===o.error;else if(!i)return!1;if(i){var a;if(e.length>0&&(a=e[0]),a instanceof Error)throw a;var u=new Error("Unhandled error."+(a?" ("+a.message+")":""));throw u.context=a,u}var s=o[t];if(void 0===s)return!1;if("function"==typeof s)n(s,this,e);else{var f=s.length,c=y(s,f);for(r=0;r<f;++r)n(c[r],this,e)}return!0},o.prototype.addListener=function(t,e){return f(this,t,e,!1)},o.prototype.on=o.prototype.addListener,o.prototype.prependListener=function(t,e){return f(this,t,e,!0)},o.prototype.once=function(t,e){return u(e),this.on(t,l(this,t,e)),this},o.prototype.prependOnceListener=function(t,e){return u(e),this.prependListener(t,l(this,t,e)),this},o.prototype.removeListener=function(t,e){var r,n,i,o,a;if(u(e),void 0===(n=this._events))return this;if(void 0===(r=n[t]))return this;if(r===e||r.listener===e)0==--this._eventsCount?this._events=Object.create(null):(delete n[t],n.removeListener&&this.emit("removeListener",t,r.listener||e));else if("function"!=typeof r){for(i=-1,o=r.length-1;o>=0;o--)if(r[o]===e||r[o].listener===e){a=r[o].listener,i=o;break}if(i<0)return this;0===i?r.shift():function(t,e){for(;e+1<t.length;e++)t[e]=t[e+1];t.pop()}(r,i),1===r.length&&(n[t]=r[0]),void 0!==n.removeListener&&this.emit("removeListener",t,a||e)}return this},o.prototype.off=o.prototype.removeListener,o.prototype.removeAllListeners=function(t){var e,r,n;if(void 0===(r=this._events))return this;if(void 0===r.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==r[t]&&(0==--this._eventsCount?this._events=Object.create(null):delete r[t]),this;if(0===arguments.length){var i,o=Object.keys(r);for(n=0;n<o.length;++n)"removeListener"!==(i=o[n])&&this.removeAllListeners(i);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(e=r[t]))this.removeListener(t,e);else if(void 0!==e)for(n=e.length-1;n>=0;n--)this.removeListener(t,e[n]);return this},o.prototype.listeners=function(t){return h(this,t,!0)},o.prototype.rawListeners=function(t){return h(this,t,!1)},o.listenerCount=function(t,e){return"function"==typeof t.listenerCount?t.listenerCount(e):p.call(t,e)},o.prototype.listenerCount=p,o.prototype.eventNames=function(){return this._eventsCount>0?e(this._events):[]}},9804:t=>{var e=Object.prototype.hasOwnProperty,r=Object.prototype.toString;t.exports=function(t,n,i){if("[object Function]"!==r.call(n))throw new TypeError("iterator must be a function");var o=t.length;if(o===+o)for(var a=0;a<o;a++)n.call(i,t[a],a,t);else for(var u in t)e.call(t,u)&&n.call(i,t[u],u,t)}},7648:t=>{"use strict";var e="Function.prototype.bind called on incompatible ",r=Array.prototype.slice,n=Object.prototype.toString,i="[object Function]";t.exports=function(t){var o=this;if("function"!=typeof o||n.call(o)!==i)throw new TypeError(e+o);for(var a,u=r.call(arguments,1),s=function(){if(this instanceof a){var e=o.apply(this,u.concat(r.call(arguments)));return Object(e)===e?e:this}return o.apply(t,u.concat(r.call(arguments)))},f=Math.max(0,o.length-u.length),c=[],l=0;l<f;l++)c.push("$"+l);if(a=Function("binder","return function ("+c.join(",")+"){ return binder.apply(this,arguments); }")(s),o.prototype){var h=function(){};h.prototype=o.prototype,a.prototype=new h,h.prototype=null}return a}},8612:(t,e,r)=>{"use strict";var n=r(7648);t.exports=Function.prototype.bind||n},210:(t,e,r)=>{"use strict";var n,i=SyntaxError,o=Function,a=TypeError,u=function(t){try{return o('"use strict"; return ('+t+").constructor;")()}catch(t){}},s=Object.getOwnPropertyDescriptor;if(s)try{s({},"")}catch(t){s=null}var f=function(){throw new a},c=s?function(){try{return f}catch(t){try{return s(arguments,"callee").get}catch(t){return f}}}():f,l=r(1405)(),h=Object.getPrototypeOf||function(t){return t.__proto__},p={},y="undefined"==typeof Uint8Array?n:h(Uint8Array),d={"%AggregateError%":"undefined"==typeof AggregateError?n:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?n:ArrayBuffer,"%ArrayIteratorPrototype%":l?h([][Symbol.iterator]()):n,"%AsyncFromSyncIteratorPrototype%":n,"%AsyncFunction%":p,"%AsyncGenerator%":p,"%AsyncGeneratorFunction%":p,"%AsyncIteratorPrototype%":p,"%Atomics%":"undefined"==typeof Atomics?n:Atomics,"%BigInt%":"undefined"==typeof BigInt?n:BigInt,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?n:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":"undefined"==typeof Float32Array?n:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?n:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?n:FinalizationRegistry,"%Function%":o,"%GeneratorFunction%":p,"%Int8Array%":"undefined"==typeof Int8Array?n:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?n:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?n:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":l?h(h([][Symbol.iterator]())):n,"%JSON%":"object"==typeof JSON?JSON:n,"%Map%":"undefined"==typeof Map?n:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&l?h((new Map)[Symbol.iterator]()):n,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?n:Promise,"%Proxy%":"undefined"==typeof Proxy?n:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":"undefined"==typeof Reflect?n:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?n:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&l?h((new Set)[Symbol.iterator]()):n,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?n:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":l?h(""[Symbol.iterator]()):n,"%Symbol%":l?Symbol:n,"%SyntaxError%":i,"%ThrowTypeError%":c,"%TypedArray%":y,"%TypeError%":a,"%Uint8Array%":"undefined"==typeof Uint8Array?n:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?n:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?n:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?n:Uint32Array,"%URIError%":URIError,"%WeakMap%":"undefined"==typeof WeakMap?n:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?n:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?n:WeakSet},g=function t(e){var r;if("%AsyncFunction%"===e)r=u("async function () {}");else if("%GeneratorFunction%"===e)r=u("function* () {}");else if("%AsyncGeneratorFunction%"===e)r=u("async function* () {}");else if("%AsyncGenerator%"===e){var n=t("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if("%AsyncIteratorPrototype%"===e){var i=t("%AsyncGenerator%");i&&(r=h(i.prototype))}return d[e]=r,r},b={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},v=r(8612),_=r(7642),m=v.call(Function.call,Array.prototype.concat),w=v.call(Function.apply,Array.prototype.splice),E=v.call(Function.call,String.prototype.replace),S=v.call(Function.call,String.prototype.slice),O=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,B=/\\(\\)?/g,x=function(t){var e=S(t,0,1),r=S(t,-1);if("%"===e&&"%"!==r)throw new i("invalid intrinsic syntax, expected closing `%`");if("%"===r&&"%"!==e)throw new i("invalid intrinsic syntax, expected opening `%`");var n=[];return E(t,O,(function(t,e,r,i){n[n.length]=r?E(i,B,"$1"):e||t})),n},A=function(t,e){var r,n=t;if(_(b,n)&&(n="%"+(r=b[n])[0]+"%"),_(d,n)){var o=d[n];if(o===p&&(o=g(n)),void 0===o&&!e)throw new a("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:r,name:n,value:o}}throw new i("intrinsic "+t+" does not exist!")};t.exports=function(t,e){if("string"!=typeof t||0===t.length)throw new a("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof e)throw new a('"allowMissing" argument must be a boolean');var r=x(t),n=r.length>0?r[0]:"",o=A("%"+n+"%",e),u=o.name,f=o.value,c=!1,l=o.alias;l&&(n=l[0],w(r,m([0,1],l)));for(var h=1,p=!0;h<r.length;h+=1){var y=r[h],g=S(y,0,1),b=S(y,-1);if(('"'===g||"'"===g||"`"===g||'"'===b||"'"===b||"`"===b)&&g!==b)throw new i("property names with quotes must have matching quotes");if("constructor"!==y&&p||(c=!0),_(d,u="%"+(n+="."+y)+"%"))f=d[u];else if(null!=f){if(!(y in f)){if(!e)throw new a("base intrinsic for "+t+" exists, but the property is not available.");return}if(s&&h+1>=r.length){var v=s(f,y);f=(p=!!v)&&"get"in v&&!("originalValue"in v.get)?v.get:f[y]}else p=_(f,y),f=f[y];p&&!c&&(d[u]=f)}}return f}},1405:(t,e,r)=>{"use strict";var n="undefined"!=typeof Symbol&&Symbol,i=r(5419);t.exports=function(){return"function"==typeof n&&"function"==typeof Symbol&&"symbol"==typeof n("foo")&&"symbol"==typeof Symbol("bar")&&i()}},5419:t=>{"use strict";t.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var t={},e=Symbol("test"),r=Object(e);if("string"==typeof e)return!1;if("[object Symbol]"!==Object.prototype.toString.call(e))return!1;if("[object Symbol]"!==Object.prototype.toString.call(r))return!1;for(e in t[e]=42,t)return!1;if("function"==typeof Object.keys&&0!==Object.keys(t).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(t).length)return!1;var n=Object.getOwnPropertySymbols(t);if(1!==n.length||n[0]!==e)return!1;if(!Object.prototype.propertyIsEnumerable.call(t,e))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var i=Object.getOwnPropertyDescriptor(t,e);if(42!==i.value||!0!==i.enumerable)return!1}return!0}},7642:(t,e,r)=>{"use strict";var n=r(8612);t.exports=n.call(Function.call,Object.prototype.hasOwnProperty)},3349:(t,e,r)=>{"use strict";var n=r(9509).Buffer,i=r(8473).Transform;function o(t){i.call(this),this._block=n.allocUnsafe(t),this._blockSize=t,this._blockOffset=0,this._length=[0,0,0,0],this._finalized=!1}r(5717)(o,i),o.prototype._transform=function(t,e,r){var n=null;try{this.update(t,e)}catch(t){n=t}r(n)},o.prototype._flush=function(t){var e=null;try{this.push(this.digest())}catch(t){e=t}t(e)},o.prototype.update=function(t,e){if(function(t,e){if(!n.isBuffer(t)&&"string"!=typeof t)throw new TypeError("Data must be a string or a buffer")}(t),this._finalized)throw new Error("Digest already called");n.isBuffer(t)||(t=n.from(t,e));for(var r=this._block,i=0;this._blockOffset+t.length-i>=this._blockSize;){for(var o=this._blockOffset;o<this._blockSize;)r[o++]=t[i++];this._update(),this._blockOffset=0}for(;i<t.length;)r[this._blockOffset++]=t[i++];for(var a=0,u=8*t.length;u>0;++a)this._length[a]+=u,(u=this._length[a]/4294967296|0)>0&&(this._length[a]-=4294967296*u);return this},o.prototype._update=function(){throw new Error("_update is not implemented")},o.prototype.digest=function(t){if(this._finalized)throw new Error("Digest already called");this._finalized=!0;var e=this._digest();void 0!==t&&(e=e.toString(t)),this._block.fill(0),this._blockOffset=0;for(var r=0;r<4;++r)this._length[r]=0;return e},o.prototype._digest=function(){throw new Error("_digest is not implemented")},t.exports=o},645:(t,e)=>{e.read=function(t,e,r,n,i){var o,a,u=8*i-n-1,s=(1<<u)-1,f=s>>1,c=-7,l=r?i-1:0,h=r?-1:1,p=t[e+l];for(l+=h,o=p&(1<<-c)-1,p>>=-c,c+=u;c>0;o=256*o+t[e+l],l+=h,c-=8);for(a=o&(1<<-c)-1,o>>=-c,c+=n;c>0;a=256*a+t[e+l],l+=h,c-=8);if(0===o)o=1-f;else{if(o===s)return a?NaN:1/0*(p?-1:1);a+=Math.pow(2,n),o-=f}return(p?-1:1)*a*Math.pow(2,o-n)},e.write=function(t,e,r,n,i,o){var a,u,s,f=8*o-i-1,c=(1<<f)-1,l=c>>1,h=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,p=n?0:o-1,y=n?1:-1,d=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(u=isNaN(e)?1:0,a=c):(a=Math.floor(Math.log(e)/Math.LN2),e*(s=Math.pow(2,-a))<1&&(a--,s*=2),(e+=a+l>=1?h/s:h*Math.pow(2,1-l))*s>=2&&(a++,s/=2),a+l>=c?(u=0,a=c):a+l>=1?(u=(e*s-1)*Math.pow(2,i),a+=l):(u=e*Math.pow(2,l-1)*Math.pow(2,i),a=0));i>=8;t[r+p]=255&u,p+=y,u/=256,i-=8);for(a=a<<i|u,f+=i;f>0;t[r+p]=255&a,p+=y,a/=256,f-=8);t[r+p-y]|=128*d}},5717:t=>{"function"==typeof Object.create?t.exports=function(t,e){e&&(t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:t.exports=function(t,e){if(e){t.super_=e;var r=function(){};r.prototype=e.prototype,t.prototype=new r,t.prototype.constructor=t}}},2584:(t,e,r)=>{"use strict";var n="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag,i=r(1924)("Object.prototype.toString"),o=function(t){return!(n&&t&&"object"==typeof t&&Symbol.toStringTag in t)&&"[object Arguments]"===i(t)},a=function(t){return!!o(t)||null!==t&&"object"==typeof t&&"number"==typeof t.length&&t.length>=0&&"[object Array]"!==i(t)&&"[object Function]"===i(t.callee)},u=function(){return o(arguments)}();o.isLegacyArguments=a,t.exports=u?o:a},5320:t=>{"use strict";var e,r,n=Function.prototype.toString,i="object"==typeof Reflect&&null!==Reflect&&Reflect.apply;if("function"==typeof i&&"function"==typeof Object.defineProperty)try{e=Object.defineProperty({},"length",{get:function(){throw r}}),r={},i((function(){throw 42}),null,e)}catch(t){t!==r&&(i=null)}else i=null;var o=/^\s*class\b/,a=function(t){try{var e=n.call(t);return o.test(e)}catch(t){return!1}},u=Object.prototype.toString,s="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag,f="object"==typeof document&&void 0===document.all&&void 0!==document.all?document.all:{};t.exports=i?function(t){if(t===f)return!0;if(!t)return!1;if("function"!=typeof t&&"object"!=typeof t)return!1;if("function"==typeof t&&!t.prototype)return!0;try{i(t,null,e)}catch(t){if(t!==r)return!1}return!a(t)}:function(t){if(t===f)return!0;if(!t)return!1;if("function"!=typeof t&&"object"!=typeof t)return!1;if("function"==typeof t&&!t.prototype)return!0;if(s)return function(t){try{return!a(t)&&(n.call(t),!0)}catch(t){return!1}}(t);if(a(t))return!1;var e=u.call(t);return"[object Function]"===e||"[object GeneratorFunction]"===e}},8923:t=>{"use strict";var e=Date.prototype.getDay,r=Object.prototype.toString,n="function"==typeof Symbol&&!!Symbol.toStringTag;t.exports=function(t){return"object"==typeof t&&null!==t&&(n?function(t){try{return e.call(t),!0}catch(t){return!1}}(t):"[object Date]"===r.call(t))}},8662:t=>{"use strict";var e,r=Object.prototype.toString,n=Function.prototype.toString,i=/^\s*(?:function)?\*/,o="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag,a=Object.getPrototypeOf;t.exports=function(t){if("function"!=typeof t)return!1;if(i.test(n.call(t)))return!0;if(!o)return"[object GeneratorFunction]"===r.call(t);if(!a)return!1;if(void 0===e){var u=function(){if(!o)return!1;try{return Function("return function*() {}")()}catch(t){}}();e=!!u&&a(u)}return a(t)===e}},8611:t=>{"use strict";t.exports=function(t){return t!=t}},360:(t,e,r)=>{"use strict";var n=r(5559),i=r(4289),o=r(8611),a=r(9415),u=r(3194),s=n(a(),Number);i(s,{getPolyfill:a,implementation:o,shim:u}),t.exports=s},9415:(t,e,r)=>{"use strict";var n=r(8611);t.exports=function(){return Number.isNaN&&Number.isNaN(NaN)&&!Number.isNaN("a")?Number.isNaN:n}},3194:(t,e,r)=>{"use strict";var n=r(4289),i=r(9415);t.exports=function(){var t=i();return n(Number,{isNaN:t},{isNaN:function(){return Number.isNaN!==t}}),t}},8420:(t,e,r)=>{"use strict";var n,i,o,a,u=r(1924),s=r(5419)()&&!!Symbol.toStringTag;if(s){n=u("Object.prototype.hasOwnProperty"),i=u("RegExp.prototype.exec"),o={};var f=function(){throw o};a={toString:f,valueOf:f},"symbol"==typeof Symbol.toPrimitive&&(a[Symbol.toPrimitive]=f)}var c=u("Object.prototype.toString"),l=Object.getOwnPropertyDescriptor;t.exports=s?function(t){if(!t||"object"!=typeof t)return!1;var e=l(t,"lastIndex");if(!e||!n(e,"value"))return!1;try{i(t,a)}catch(t){return t===o}}:function(t){return!(!t||"object"!=typeof t&&"function"!=typeof t)&&"[object RegExp]"===c(t)}},9981:t=>{"use strict";var e=String.prototype.valueOf,r=Object.prototype.toString,n="function"==typeof Symbol&&!!Symbol.toStringTag;t.exports=function(t){return"string"==typeof t||"object"==typeof t&&(n?function(t){try{return e.call(t),!0}catch(t){return!1}}(t):"[object String]"===r.call(t))}},2636:(t,e,r)=>{"use strict";var n=Object.prototype.toString;if(r(1405)()){var i=Symbol.prototype.toString,o=/^Symbol\(.*\)$/;t.exports=function(t){if("symbol"==typeof t)return!0;if("[object Symbol]"!==n.call(t))return!1;try{return function(t){return"symbol"==typeof t.valueOf()&&o.test(i.call(t))}(t)}catch(t){return!1}}}else t.exports=function(t){return!1}},5692:(t,e,r)=>{"use strict";var n=r(9804),i=r(3083),o=r(1924),a=o("Object.prototype.toString"),u=r(1405)()&&"symbol"==typeof Symbol.toStringTag,s=i(),f=o("Array.prototype.indexOf",!0)||function(t,e){for(var r=0;r<t.length;r+=1)if(t[r]===e)return r;return-1},c=o("String.prototype.slice"),l={},h=r(4079),p=Object.getPrototypeOf;u&&h&&p&&n(s,(function(t){var e=new r.g[t];if(!(Symbol.toStringTag in e))throw new EvalError("this engine has support for Symbol.toStringTag, but "+t+" does not have the property! Please report this.");var n=p(e),i=h(n,Symbol.toStringTag);if(!i){var o=p(n);i=h(o,Symbol.toStringTag)}l[t]=i.get})),t.exports=function(t){if(!t||"object"!=typeof t)return!1;if(!u){var e=c(a(t),8,-1);return f(s,e)>-1}return!!h&&function(t){var e=!1;return n(l,(function(r,n){if(!e)try{e=r.call(t)===n}catch(t){}})),e}(t)}},9499:function(t){t.exports=function(){"use strict";var t=Math.imul,e=Math.clz32;function r(t){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r(t)}function n(t,e){for(var r,n=0;n<e.length;n++)(r=e[n]).enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}function i(t,e,r){return e&&n(t.prototype,e),r&&n(t,r),t}function o(t){return o=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},o(t)}function a(t,e){return a=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},a(t,e)}function u(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}function s(){return s=u()?Reflect.construct:function(t,e,r){var n=[null];n.push.apply(n,e);var i=new(Function.bind.apply(t,n));return r&&a(i,r.prototype),i},s.apply(null,arguments)}function f(t){var e="function"==typeof Map?new Map:void 0;return f=function(t){function r(){return s(t,arguments,o(this).constructor)}if(null===t||!function(t){return-1!==Function.toString.call(t).indexOf("[native code]")}(t))return t;if("function"!=typeof t)throw new TypeError("Super expression must either be null or a function");if(void 0!==e){if(e.has(t))return e.get(t);e.set(t,r)}return r.prototype=Object.create(t.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),a(r,t)},f(t)}function c(t,e){return!e||"object"!=typeof e&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function l(t){var e=u();return function(){var r,n=o(t);if(e){var i=o(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return c(this,r)}}function h(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}function p(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=function(t,e){if(t){if("string"==typeof t)return h(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?h(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0,i=function(){};return{s:i,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,u=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return a=t.done,t},e:function(t){u=!0,o=t},f:function(){try{a||null==r.return||r.return()}finally{if(u)throw o}}}}var y=function(t){var e=Math.abs,n=Math.max;function o(t,e){var r;if(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,o),t>o.__kMaxLength)throw new RangeError("Maximum BigInt size exceeded");return(r=u.call(this,t)).sign=e,r}!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&a(t,e)}(o,t);var u=l(o);return i(o,[{key:"toDebugString",value:function(){var t,e=["BigInt["],r=p(this);try{for(r.s();!(t=r.n()).done;){var n=t.value;e.push((n?(n>>>0).toString(16):n)+", ")}}catch(t){r.e(t)}finally{r.f()}return e.push("]"),e.join("")}},{key:"toString",value:function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:10;if(2>t||36<t)throw new RangeError("toString() radix argument must be between 2 and 36");return 0===this.length?"0":0==(t&t-1)?o.__toStringBasePowerOfTwo(this,t):o.__toStringGeneric(this,t,!1)}},{key:"__copy",value:function(){for(var t=new o(this.length,this.sign),e=0;e<this.length;e++)t[e]=this[e];return t}},{key:"__trim",value:function(){for(var t=this.length,e=this[t-1];0===e;)e=this[--t-1],this.pop();return 0===t&&(this.sign=!1),this}},{key:"__initializeDigits",value:function(){for(var t=0;t<this.length;t++)this[t]=0}},{key:"__clzmsd",value:function(){return o.__clz32(this[this.length-1])}},{key:"__inplaceMultiplyAdd",value:function(t,e,r){r>this.length&&(r=this.length);for(var n=65535&t,i=t>>>16,a=0,u=65535&e,s=e>>>16,f=0;f<r;f++){var c=this.__digit(f),l=65535&c,h=c>>>16,p=o.__imul(l,n),y=o.__imul(l,i),d=o.__imul(h,n),g=o.__imul(h,i),b=u+(65535&p),v=s+a+(b>>>16)+(p>>>16)+(65535&y)+(65535&d);a=(u=(y>>>16)+(d>>>16)+(65535&g)+(v>>>16))>>>16,u&=65535,s=g>>>16,this.__setDigit(f,65535&b|v<<16)}if(0!==a||0!==u||0!==s)throw new Error("implementation bug")}},{key:"__inplaceAdd",value:function(t,e,r){for(var n,i=0,o=0;o<r;o++)i=(n=this.__halfDigit(e+o)+t.__halfDigit(o)+i)>>>16,this.__setHalfDigit(e+o,n);return i}},{key:"__inplaceSub",value:function(t,e,r){var n=0;if(1&e){e>>=1;for(var i=this.__digit(e),o=65535&i,a=0;a<r-1>>>1;a++){var u=t.__digit(a),s=(i>>>16)-(65535&u)-n;n=1&s>>>16,this.__setDigit(e+a,s<<16|65535&o),n=1&(o=(65535&(i=this.__digit(e+a+1)))-(u>>>16)-n)>>>16}var f=t.__digit(a),c=(i>>>16)-(65535&f)-n;if(n=1&c>>>16,this.__setDigit(e+a,c<<16|65535&o),e+a+1>=this.length)throw new RangeError("out of bounds");0==(1&r)&&(n=1&(o=(65535&(i=this.__digit(e+a+1)))-(f>>>16)-n)>>>16,this.__setDigit(e+t.length,4294901760&i|65535&o))}else{e>>=1;for(var l=0;l<t.length-1;l++){var h=this.__digit(e+l),p=t.__digit(l),y=(65535&h)-(65535&p)-n,d=(h>>>16)-(p>>>16)-(n=1&y>>>16);n=1&d>>>16,this.__setDigit(e+l,d<<16|65535&y)}var g=this.__digit(e+l),b=t.__digit(l),v=(65535&g)-(65535&b)-n;n=1&v>>>16;var _=0;0==(1&r)&&(n=1&(_=(g>>>16)-(b>>>16)-n)>>>16),this.__setDigit(e+l,_<<16|65535&v)}return n}},{key:"__inplaceRightShift",value:function(t){if(0!==t){for(var e,r=this.__digit(0)>>>t,n=this.length-1,i=0;i<n;i++)e=this.__digit(i+1),this.__setDigit(i,e<<32-t|r),r=e>>>t;this.__setDigit(n,r)}}},{key:"__digit",value:function(t){return this[t]}},{key:"__unsignedDigit",value:function(t){return this[t]>>>0}},{key:"__setDigit",value:function(t,e){this[t]=0|e}},{key:"__setDigitGrow",value:function(t,e){this[t]=0|e}},{key:"__halfDigitLength",value:function(){var t=this.length;return 65535>=this.__unsignedDigit(t-1)?2*t-1:2*t}},{key:"__halfDigit",value:function(t){return 65535&this[t>>>1]>>>((1&t)<<4)}},{key:"__setHalfDigit",value:function(t,e){var r=t>>>1,n=this.__digit(r),i=1&t?65535&n|e<<16:4294901760&n|65535&e;this.__setDigit(r,i)}}],[{key:"BigInt",value:function(t){var e=Math.floor,n=Number.isFinite;if("number"==typeof t){if(0===t)return o.__zero();if((0|t)===t)return 0>t?o.__oneDigit(-t,!0):o.__oneDigit(t,!1);if(!n(t)||e(t)!==t)throw new RangeError("The number "+t+" cannot be converted to BigInt because it is not an integer");return o.__fromDouble(t)}if("string"==typeof t){var i=o.__fromString(t);if(null===i)throw new SyntaxError("Cannot convert "+t+" to a BigInt");return i}if("boolean"==typeof t)return!0===t?o.__oneDigit(1,!1):o.__zero();if("object"===r(t)){if(t.constructor===o)return t;var a=o.__toPrimitive(t);return o.BigInt(a)}throw new TypeError("Cannot convert "+t+" to a BigInt")}},{key:"toNumber",value:function(t){var e=t.length;if(0===e)return 0;if(1===e){var r=t.__unsignedDigit(0);return t.sign?-r:r}var n=t.__digit(e-1),i=o.__clz32(n),a=32*e-i;if(1024<a)return t.sign?-1/0:1/0;var u=a-1,s=n,f=e-1,c=i+1,l=32===c?0:s<<c;l>>>=12;var h=c-12,p=12<=c?0:s<<20+c,y=20+c;0<h&&0<f&&(f--,l|=(s=t.__digit(f))>>>32-h,p=s<<h,y=h),0<y&&0<f&&(f--,p|=(s=t.__digit(f))>>>32-y,y-=32);var d=o.__decideRounding(t,y,f,s);if((1===d||0===d&&1==(1&p))&&0==(p=p+1>>>0)&&0!=++l>>>20&&(l=0,1023<++u))return t.sign?-1/0:1/0;var g=t.sign?-2147483648:0;return u=u+1023<<20,o.__kBitConversionInts[1]=g|u|l,o.__kBitConversionInts[0]=p,o.__kBitConversionDouble[0]}},{key:"unaryMinus",value:function(t){if(0===t.length)return t;var e=t.__copy();return e.sign=!t.sign,e}},{key:"bitwiseNot",value:function(t){return t.sign?o.__absoluteSubOne(t).__trim():o.__absoluteAddOne(t,!0)}},{key:"exponentiate",value:function(t,e){if(e.sign)throw new RangeError("Exponent must be positive");if(0===e.length)return o.__oneDigit(1,!1);if(0===t.length)return t;if(1===t.length&&1===t.__digit(0))return t.sign&&0==(1&e.__digit(0))?o.unaryMinus(t):t;if(1<e.length)throw new RangeError("BigInt too big");var r=e.__unsignedDigit(0);if(1===r)return t;if(r>=o.__kMaxLengthBits)throw new RangeError("BigInt too big");if(1===t.length&&2===t.__digit(0)){var n=1+(r>>>5),i=new o(n,t.sign&&0!=(1&r));i.__initializeDigits();var a=1<<(31&r);return i.__setDigit(n-1,a),i}var u=null,s=t;for(0!=(1&r)&&(u=t),r>>=1;0!==r;r>>=1)s=o.multiply(s,s),0!=(1&r)&&(u=null===u?s:o.multiply(u,s));return u}},{key:"multiply",value:function(t,e){if(0===t.length)return t;if(0===e.length)return e;var r=t.length+e.length;32<=t.__clzmsd()+e.__clzmsd()&&r--;var n=new o(r,t.sign!==e.sign);n.__initializeDigits();for(var i=0;i<t.length;i++)o.__multiplyAccumulate(e,t.__digit(i),n,i);return n.__trim()}},{key:"divide",value:function(t,e){if(0===e.length)throw new RangeError("Division by zero");if(0>o.__absoluteCompare(t,e))return o.__zero();var r,n=t.sign!==e.sign,i=e.__unsignedDigit(0);if(1===e.length&&65535>=i){if(1===i)return n===t.sign?t:o.unaryMinus(t);r=o.__absoluteDivSmall(t,i,null)}else r=o.__absoluteDivLarge(t,e,!0,!1);return r.sign=n,r.__trim()}},{key:"remainder",value:function(t,e){if(0===e.length)throw new RangeError("Division by zero");if(0>o.__absoluteCompare(t,e))return t;var r=e.__unsignedDigit(0);if(1===e.length&&65535>=r){if(1===r)return o.__zero();var n=o.__absoluteModSmall(t,r);return 0===n?o.__zero():o.__oneDigit(n,t.sign)}var i=o.__absoluteDivLarge(t,e,!1,!0);return i.sign=t.sign,i.__trim()}},{key:"add",value:function(t,e){var r=t.sign;return r===e.sign?o.__absoluteAdd(t,e,r):0<=o.__absoluteCompare(t,e)?o.__absoluteSub(t,e,r):o.__absoluteSub(e,t,!r)}},{key:"subtract",value:function(t,e){var r=t.sign;return r===e.sign?0<=o.__absoluteCompare(t,e)?o.__absoluteSub(t,e,r):o.__absoluteSub(e,t,!r):o.__absoluteAdd(t,e,r)}},{key:"leftShift",value:function(t,e){return 0===e.length||0===t.length?t:e.sign?o.__rightShiftByAbsolute(t,e):o.__leftShiftByAbsolute(t,e)}},{key:"signedRightShift",value:function(t,e){return 0===e.length||0===t.length?t:e.sign?o.__leftShiftByAbsolute(t,e):o.__rightShiftByAbsolute(t,e)}},{key:"unsignedRightShift",value:function(){throw new TypeError("BigInts have no unsigned right shift; use >> instead")}},{key:"lessThan",value:function(t,e){return 0>o.__compareToBigInt(t,e)}},{key:"lessThanOrEqual",value:function(t,e){return 0>=o.__compareToBigInt(t,e)}},{key:"greaterThan",value:function(t,e){return 0<o.__compareToBigInt(t,e)}},{key:"greaterThanOrEqual",value:function(t,e){return 0<=o.__compareToBigInt(t,e)}},{key:"equal",value:function(t,e){if(t.sign!==e.sign)return!1;if(t.length!==e.length)return!1;for(var r=0;r<t.length;r++)if(t.__digit(r)!==e.__digit(r))return!1;return!0}},{key:"notEqual",value:function(t,e){return!o.equal(t,e)}},{key:"bitwiseAnd",value:function(t,e){if(!t.sign&&!e.sign)return o.__absoluteAnd(t,e).__trim();if(t.sign&&e.sign){var r=n(t.length,e.length)+1,i=o.__absoluteSubOne(t,r),a=o.__absoluteSubOne(e);return i=o.__absoluteOr(i,a,i),o.__absoluteAddOne(i,!0,i).__trim()}if(t.sign){var u=[e,t];t=u[0],e=u[1]}return o.__absoluteAndNot(t,o.__absoluteSubOne(e)).__trim()}},{key:"bitwiseXor",value:function(t,e){if(!t.sign&&!e.sign)return o.__absoluteXor(t,e).__trim();if(t.sign&&e.sign){var r=n(t.length,e.length),i=o.__absoluteSubOne(t,r),a=o.__absoluteSubOne(e);return o.__absoluteXor(i,a,i).__trim()}var u=n(t.length,e.length)+1;if(t.sign){var s=[e,t];t=s[0],e=s[1]}var f=o.__absoluteSubOne(e,u);return f=o.__absoluteXor(f,t,f),o.__absoluteAddOne(f,!0,f).__trim()}},{key:"bitwiseOr",value:function(t,e){var r=n(t.length,e.length);if(!t.sign&&!e.sign)return o.__absoluteOr(t,e).__trim();if(t.sign&&e.sign){var i=o.__absoluteSubOne(t,r),a=o.__absoluteSubOne(e);return i=o.__absoluteAnd(i,a,i),o.__absoluteAddOne(i,!0,i).__trim()}if(t.sign){var u=[e,t];t=u[0],e=u[1]}var s=o.__absoluteSubOne(e,r);return s=o.__absoluteAndNot(s,t,s),o.__absoluteAddOne(s,!0,s).__trim()}},{key:"asIntN",value:function(t,e){if(0===e.length)return e;if(0===t)return o.__zero();if(t>=o.__kMaxLengthBits)return e;var r=t+31>>>5;if(e.length<r)return e;var n=e.__unsignedDigit(r-1),i=1<<(31&t-1);if(e.length===r&&n<i)return e;if((n&i)!==i)return o.__truncateToNBits(t,e);if(!e.sign)return o.__truncateAndSubFromPowerOfTwo(t,e,!0);if(0==(n&i-1)){for(var a=r-2;0<=a;a--)if(0!==e.__digit(a))return o.__truncateAndSubFromPowerOfTwo(t,e,!1);return e.length===r&&n===i?e:o.__truncateToNBits(t,e)}return o.__truncateAndSubFromPowerOfTwo(t,e,!1)}},{key:"asUintN",value:function(t,e){if(0===e.length)return e;if(0===t)return o.__zero();if(e.sign){if(t>o.__kMaxLengthBits)throw new RangeError("BigInt too big");return o.__truncateAndSubFromPowerOfTwo(t,e,!1)}if(t>=o.__kMaxLengthBits)return e;var r=t+31>>>5;if(e.length<r)return e;var n=31&t;if(e.length==r){if(0===n)return e;if(0==e.__digit(r-1)>>>n)return e}return o.__truncateToNBits(t,e)}},{key:"ADD",value:function(t,e){if(t=o.__toPrimitive(t),e=o.__toPrimitive(e),"string"==typeof t)return"string"!=typeof e&&(e=e.toString()),t+e;if("string"==typeof e)return t.toString()+e;if(t=o.__toNumeric(t),e=o.__toNumeric(e),o.__isBigInt(t)&&o.__isBigInt(e))return o.add(t,e);if("number"==typeof t&&"number"==typeof e)return t+e;throw new TypeError("Cannot mix BigInt and other types, use explicit conversions")}},{key:"LT",value:function(t,e){return o.__compare(t,e,0)}},{key:"LE",value:function(t,e){return o.__compare(t,e,1)}},{key:"GT",value:function(t,e){return o.__compare(t,e,2)}},{key:"GE",value:function(t,e){return o.__compare(t,e,3)}},{key:"EQ",value:function(t,e){for(;;){if(o.__isBigInt(t))return o.__isBigInt(e)?o.equal(t,e):o.EQ(e,t);if("number"==typeof t){if(o.__isBigInt(e))return o.__equalToNumber(e,t);if("object"!==r(e))return t==e;e=o.__toPrimitive(e)}else if("string"==typeof t){if(o.__isBigInt(e))return null!==(t=o.__fromString(t))&&o.equal(t,e);if("object"!==r(e))return t==e;e=o.__toPrimitive(e)}else if("boolean"==typeof t){if(o.__isBigInt(e))return o.__equalToNumber(e,+t);if("object"!==r(e))return t==e;e=o.__toPrimitive(e)}else if("symbol"===r(t)){if(o.__isBigInt(e))return!1;if("object"!==r(e))return t==e;e=o.__toPrimitive(e)}else{if("object"!==r(t))return t==e;if("object"===r(e)&&e.constructor!==o)return t==e;t=o.__toPrimitive(t)}}}},{key:"NE",value:function(t,e){return!o.EQ(t,e)}},{key:"__zero",value:function(){return new o(0,!1)}},{key:"__oneDigit",value:function(t,e){var r=new o(1,e);return r.__setDigit(0,t),r}},{key:"__decideRounding",value:function(t,e,r,n){if(0<e)return-1;var i;if(0>e)i=-e-1;else{if(0===r)return-1;r--,n=t.__digit(r),i=31}var o=1<<i;if(0==(n&o))return-1;if(0!=(n&(o-=1)))return 1;for(;0<r;)if(r--,0!==t.__digit(r))return 1;return 0}},{key:"__fromDouble",value:function(t){o.__kBitConversionDouble[0]=t;var e,r=(2047&o.__kBitConversionInts[1]>>>20)-1023,n=1+(r>>>5),i=new o(n,0>t),a=1048575&o.__kBitConversionInts[1]|1048576,u=o.__kBitConversionInts[0],s=31&r,f=0;if(s<20){var c=20-s;f=c+32,e=a>>>c,a=a<<32-c|u>>>c,u<<=32-c}else if(20===s)f=32,e=a,a=u;else{var l=s-20;f=32-l,e=a<<l|u>>>32-l,a=u<<l}i.__setDigit(n-1,e);for(var h=n-2;0<=h;h--)0<f?(f-=32,e=a,a=u):e=0,i.__setDigit(h,e);return i.__trim()}},{key:"__isWhitespace",value:function(t){return!!(13>=t&&9<=t)||(159>=t?32==t:131071>=t?160==t||5760==t:196607>=t?10>=(t&=131071)||40==t||41==t||47==t||95==t||4096==t:65279==t)}},{key:"__fromString",value:function(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:0,r=0,n=t.length,i=0;if(i===n)return o.__zero();for(var a=t.charCodeAt(i);o.__isWhitespace(a);){if(++i===n)return o.__zero();a=t.charCodeAt(i)}if(43===a){if(++i===n)return null;a=t.charCodeAt(i),r=1}else if(45===a){if(++i===n)return null;a=t.charCodeAt(i),r=-1}if(0===e){if(e=10,48===a){if(++i===n)return o.__zero();if(88===(a=t.charCodeAt(i))||120===a){if(e=16,++i===n)return null;a=t.charCodeAt(i)}else if(79===a||111===a){if(e=8,++i===n)return null;a=t.charCodeAt(i)}else if(66===a||98===a){if(e=2,++i===n)return null;a=t.charCodeAt(i)}}}else if(16===e&&48===a){if(++i===n)return o.__zero();if(88===(a=t.charCodeAt(i))||120===a){if(++i===n)return null;a=t.charCodeAt(i)}}for(;48===a;){if(++i===n)return o.__zero();a=t.charCodeAt(i)}var u=n-i,s=o.__kMaxBitsPerChar[e],f=o.__kBitsPerCharTableMultiplier-1;if(u>1073741824/s)return null;var c=new o(31+(s*u+f>>>o.__kBitsPerCharTableShift)>>>5,!1),l=10>e?e:10,h=10<e?e-10:0;if(0==(e&e-1)){s>>=o.__kBitsPerCharTableShift;var p=[],y=[],d=!1;do{for(var g,b=0,v=0;;){if(g=void 0,a-48>>>0<l)g=a-48;else{if(!((32|a)-97>>>0<h)){d=!0;break}g=(32|a)-87}if(v+=s,b=b<<s|g,++i===n){d=!0;break}if(a=t.charCodeAt(i),32<v+s)break}p.push(b),y.push(v)}while(!d);o.__fillFromParts(c,p,y)}else{c.__initializeDigits();var _=!1,m=0;do{for(var w,E=0,S=1;;){if(w=void 0,a-48>>>0<l)w=a-48;else{if(!((32|a)-97>>>0<h)){_=!0;break}w=(32|a)-87}var O=S*e;if(4294967295<O)break;if(S=O,E=E*e+w,m++,++i===n){_=!0;break}a=t.charCodeAt(i)}var B=s*m+(f=32*o.__kBitsPerCharTableMultiplier-1)>>>o.__kBitsPerCharTableShift+5;c.__inplaceMultiplyAdd(S,E,B)}while(!_)}if(i!==n){if(!o.__isWhitespace(a))return null;for(i++;i<n;i++)if(a=t.charCodeAt(i),!o.__isWhitespace(a))return null}return 0!==r&&10!==e?null:(c.sign=-1===r,c.__trim())}},{key:"__fillFromParts",value:function(t,e,r){for(var n=0,i=0,o=0,a=e.length-1;0<=a;a--){var u=e[a],s=r[a];i|=u<<o,32===(o+=s)?(t.__setDigit(n++,i),o=0,i=0):32<o&&(t.__setDigit(n++,i),i=u>>>s-(o-=32))}if(0!==i){if(n>=t.length)throw new Error("implementation bug");t.__setDigit(n++,i)}for(;n<t.length;n++)t.__setDigit(n,0)}},{key:"__toStringBasePowerOfTwo",value:function(t,e){var r=t.length,n=e-1,i=n=(15&(n=(51&(n=(85&n>>>1)+(85&n))>>>2)+(51&n))>>>4)+(15&n),a=e-1,u=t.__digit(r-1),s=0|(32*r-o.__clz32(u)+i-1)/i;if(t.sign&&s++,268435456<s)throw new Error("string too long");for(var f=Array(s),c=s-1,l=0,h=0,p=0;p<r-1;p++){var y=t.__digit(p),d=(l|y<<h)&a;f[c--]=o.__kConversionChars[d];var g=i-h;for(l=y>>>g,h=32-g;h>=i;)f[c--]=o.__kConversionChars[l&a],l>>>=i,h-=i}var b=(l|u<<h)&a;for(f[c--]=o.__kConversionChars[b],l=u>>>i-h;0!==l;)f[c--]=o.__kConversionChars[l&a],l>>>=i;if(t.sign&&(f[c--]="-"),-1!==c)throw new Error("implementation bug");return f.join("")}},{key:"__toStringGeneric",value:function(t,e,r){var n=t.length;if(0===n)return"";if(1===n){var i=t.__unsignedDigit(0).toString(e);return!1===r&&t.sign&&(i="-"+i),i}var a,u,s=32*n-o.__clz32(t.__digit(n-1)),f=o.__kMaxBitsPerChar[e]-1,c=s*o.__kBitsPerCharTableMultiplier,l=1+(c=0|(c+=f-1)/f)>>1,h=o.exponentiate(o.__oneDigit(e,!1),o.__oneDigit(l,!1)),p=h.__unsignedDigit(0);if(1===h.length&&65535>=p){(a=new o(t.length,!1)).__initializeDigits();for(var y,d=0,g=2*t.length-1;0<=g;g--)y=d<<16|t.__halfDigit(g),a.__setHalfDigit(g,0|y/p),d=0|y%p;u=d.toString(e)}else{var b=o.__absoluteDivLarge(t,h,!0,!0);a=b.quotient;var v=b.remainder.__trim();u=o.__toStringGeneric(v,e,!0)}a.__trim();for(var _=o.__toStringGeneric(a,e,!0);u.length<l;)u="0"+u;return!1===r&&t.sign&&(_="-"+_),_+u}},{key:"__unequalSign",value:function(t){return t?-1:1}},{key:"__absoluteGreater",value:function(t){return t?-1:1}},{key:"__absoluteLess",value:function(t){return t?1:-1}},{key:"__compareToBigInt",value:function(t,e){var r=t.sign;if(r!==e.sign)return o.__unequalSign(r);var n=o.__absoluteCompare(t,e);return 0<n?o.__absoluteGreater(r):0>n?o.__absoluteLess(r):0}},{key:"__compareToNumber",value:function(t,r){if(!0|r){var n=t.sign,i=0>r;if(n!==i)return o.__unequalSign(n);if(0===t.length){if(i)throw new Error("implementation bug");return 0===r?0:-1}if(1<t.length)return o.__absoluteGreater(n);var a=e(r),u=t.__unsignedDigit(0);return u>a?o.__absoluteGreater(n):u<a?o.__absoluteLess(n):0}return o.__compareToDouble(t,r)}},{key:"__compareToDouble",value:function(t,e){if(e!=e)return e;if(e===1/0)return-1;if(e===-1/0)return 1;var r=t.sign;if(r!==0>e)return o.__unequalSign(r);if(0===e)throw new Error("implementation bug: should be handled elsewhere");if(0===t.length)return-1;o.__kBitConversionDouble[0]=e;var n=2047&o.__kBitConversionInts[1]>>>20;if(2047==n)throw new Error("implementation bug: handled elsewhere");var i=n-1023;if(0>i)return o.__absoluteGreater(r);var a=t.length,u=t.__digit(a-1),s=o.__clz32(u),f=32*a-s,c=i+1;if(f<c)return o.__absoluteLess(r);if(f>c)return o.__absoluteGreater(r);var l=1048576|1048575&o.__kBitConversionInts[1],h=o.__kBitConversionInts[0],p=31-s;if(p!==(f-1)%31)throw new Error("implementation bug");var y,d=0;if(p<20){var g=20-p;d=g+32,y=l>>>g,l=l<<32-g|h>>>g,h<<=32-g}else if(20===p)d=32,y=l,l=h;else{var b=p-20;d=32-b,y=l<<b|h>>>32-b,l=h<<b}if((u>>>=0)>(y>>>=0))return o.__absoluteGreater(r);if(u<y)return o.__absoluteLess(r);for(var v=a-2;0<=v;v--){0<d?(d-=32,y=l>>>0,l=h,h=0):y=0;var _=t.__unsignedDigit(v);if(_>y)return o.__absoluteGreater(r);if(_<y)return o.__absoluteLess(r)}if(0!==l||0!==h){if(0===d)throw new Error("implementation bug");return o.__absoluteLess(r)}return 0}},{key:"__equalToNumber",value:function(t,r){return r|0===r?0===r?0===t.length:1===t.length&&t.sign===0>r&&t.__unsignedDigit(0)===e(r):0===o.__compareToDouble(t,r)}},{key:"__comparisonResultToBool",value:function(t,e){switch(e){case 0:return 0>t;case 1:return 0>=t;case 2:return 0<t;case 3:return 0<=t}throw new Error("unreachable")}},{key:"__compare",value:function(t,e,r){if(t=o.__toPrimitive(t),e=o.__toPrimitive(e),"string"==typeof t&&"string"==typeof e)switch(r){case 0:return t<e;case 1:return t<=e;case 2:return t>e;case 3:return t>=e}if(o.__isBigInt(t)&&"string"==typeof e)return null!==(e=o.__fromString(e))&&o.__comparisonResultToBool(o.__compareToBigInt(t,e),r);if("string"==typeof t&&o.__isBigInt(e))return null!==(t=o.__fromString(t))&&o.__comparisonResultToBool(o.__compareToBigInt(t,e),r);if(t=o.__toNumeric(t),e=o.__toNumeric(e),o.__isBigInt(t)){if(o.__isBigInt(e))return o.__comparisonResultToBool(o.__compareToBigInt(t,e),r);if("number"!=typeof e)throw new Error("implementation bug");return o.__comparisonResultToBool(o.__compareToNumber(t,e),r)}if("number"!=typeof t)throw new Error("implementation bug");if(o.__isBigInt(e))return o.__comparisonResultToBool(o.__compareToNumber(e,t),2^r);if("number"!=typeof e)throw new Error("implementation bug");return 0===r?t<e:1===r?t<=e:2===r?t>e:3===r?t>=e:void 0}},{key:"__absoluteAdd",value:function(t,e,r){if(t.length<e.length)return o.__absoluteAdd(e,t,r);if(0===t.length)return t;if(0===e.length)return t.sign===r?t:o.unaryMinus(t);var n=t.length;(0===t.__clzmsd()||e.length===t.length&&0===e.__clzmsd())&&n++;for(var i=new o(n,r),a=0,u=0;u<e.length;u++){var s=e.__digit(u),f=t.__digit(u),c=(65535&f)+(65535&s)+a,l=(f>>>16)+(s>>>16)+(c>>>16);a=l>>>16,i.__setDigit(u,65535&c|l<<16)}for(;u<t.length;u++){var h=t.__digit(u),p=(65535&h)+a,y=(h>>>16)+(p>>>16);a=y>>>16,i.__setDigit(u,65535&p|y<<16)}return u<i.length&&i.__setDigit(u,a),i.__trim()}},{key:"__absoluteSub",value:function(t,e,r){if(0===t.length)return t;if(0===e.length)return t.sign===r?t:o.unaryMinus(t);for(var n=new o(t.length,r),i=0,a=0;a<e.length;a++){var u=t.__digit(a),s=e.__digit(a),f=(65535&u)-(65535&s)-i,c=(u>>>16)-(s>>>16)-(i=1&f>>>16);i=1&c>>>16,n.__setDigit(a,65535&f|c<<16)}for(;a<t.length;a++){var l=t.__digit(a),h=(65535&l)-i,p=(l>>>16)-(i=1&h>>>16);i=1&p>>>16,n.__setDigit(a,65535&h|p<<16)}return n.__trim()}},{key:"__absoluteAddOne",value:function(t,e){var r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null,n=t.length;null===r?r=new o(n,e):r.sign=e;for(var i,a=!0,u=0;u<n;u++){if(i=t.__digit(u),a){var s=-1===i;i=0|i+1,a=s}r.__setDigit(u,i)}return a&&r.__setDigitGrow(n,1),r}},{key:"__absoluteSubOne",value:function(t,e){for(var r,n=t.length,i=new o(e=e||n,!1),a=!0,u=0;u<n;u++){if(r=t.__digit(u),a){var s=0===r;r=0|r-1,a=s}i.__setDigit(u,r)}if(a)throw new Error("implementation bug");for(var f=n;f<e;f++)i.__setDigit(f,0);return i}},{key:"__absoluteAnd",value:function(t,e){var r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null,n=t.length,i=e.length,a=i;if(n<i){a=n;var u=t,s=n;t=e,n=i,e=u,i=s}var f=a;null===r?r=new o(f,!1):f=r.length;for(var c=0;c<a;c++)r.__setDigit(c,t.__digit(c)&e.__digit(c));for(;c<f;c++)r.__setDigit(c,0);return r}},{key:"__absoluteAndNot",value:function(t,e){var r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null,n=t.length,i=e.length,a=i;n<i&&(a=n);var u=n;null===r?r=new o(u,!1):u=r.length;for(var s=0;s<a;s++)r.__setDigit(s,t.__digit(s)&~e.__digit(s));for(;s<n;s++)r.__setDigit(s,t.__digit(s));for(;s<u;s++)r.__setDigit(s,0);return r}},{key:"__absoluteOr",value:function(t,e){var r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null,n=t.length,i=e.length,a=i;if(n<i){a=n;var u=t,s=n;t=e,n=i,e=u,i=s}var f=n;null===r?r=new o(f,!1):f=r.length;for(var c=0;c<a;c++)r.__setDigit(c,t.__digit(c)|e.__digit(c));for(;c<n;c++)r.__setDigit(c,t.__digit(c));for(;c<f;c++)r.__setDigit(c,0);return r}},{key:"__absoluteXor",value:function(t,e){var r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null,n=t.length,i=e.length,a=i;if(n<i){a=n;var u=t,s=n;t=e,n=i,e=u,i=s}var f=n;null===r?r=new o(f,!1):f=r.length;for(var c=0;c<a;c++)r.__setDigit(c,t.__digit(c)^e.__digit(c));for(;c<n;c++)r.__setDigit(c,t.__digit(c));for(;c<f;c++)r.__setDigit(c,0);return r}},{key:"__absoluteCompare",value:function(t,e){var r=t.length-e.length;if(0!=r)return r;for(var n=t.length-1;0<=n&&t.__digit(n)===e.__digit(n);)n--;return 0>n?0:t.__unsignedDigit(n)>e.__unsignedDigit(n)?1:-1}},{key:"__multiplyAccumulate",value:function(t,e,r,n){if(0!==e){for(var i=65535&e,a=e>>>16,u=0,s=0,f=0,c=0;c<t.length;c++,n++){var l=r.__digit(n),h=65535&l,p=l>>>16,y=t.__digit(c),d=65535&y,g=y>>>16,b=o.__imul(d,i),v=o.__imul(d,a),_=o.__imul(g,i),m=o.__imul(g,a);u=(s=(v>>>16)+(_>>>16)+(65535&m)+(u=(p+=f+u+((h+=s+(65535&b))>>>16)+(b>>>16)+(65535&v)+(65535&_))>>>16))>>>16,s&=65535,f=m>>>16,l=65535&h|p<<16,r.__setDigit(n,l)}for(;0!==u||0!==s||0!==f;n++){var w=r.__digit(n),E=(65535&w)+s,S=(w>>>16)+(E>>>16)+f+u;s=0,f=0,u=S>>>16,w=65535&E|S<<16,r.__setDigit(n,w)}}}},{key:"__internalMultiplyAdd",value:function(t,e,r,n,i){for(var a=r,u=0,s=0;s<n;s++){var f=t.__digit(s),c=o.__imul(65535&f,e),l=(65535&c)+u+a;a=l>>>16;var h=o.__imul(f>>>16,e),p=(65535&h)+(c>>>16)+a;a=p>>>16,u=h>>>16,i.__setDigit(s,p<<16|65535&l)}if(i.length>n)for(i.__setDigit(n++,a+u);n<i.length;)i.__setDigit(n++,0);else if(0!==a+u)throw new Error("implementation bug")}},{key:"__absoluteDivSmall",value:function(t,e,r){null===r&&(r=new o(t.length,!1));for(var n=0,i=2*t.length-1;0<=i;i-=2){var a=(n<<16|t.__halfDigit(i))>>>0,u=0|a/e,s=0|(a=((n=0|a%e)<<16|t.__halfDigit(i-1))>>>0)/e;n=0|a%e,r.__setDigit(i>>>1,u<<16|s)}return r}},{key:"__absoluteModSmall",value:function(t,e){for(var r=0,n=2*t.length-1;0<=n;n--)r=0|((r<<16|t.__halfDigit(n))>>>0)%e;return r}},{key:"__absoluteDivLarge",value:function(t,e,r,n){var i=e.__halfDigitLength(),a=e.length,u=t.__halfDigitLength()-i,s=null;r&&(s=new o(u+2>>>1,!1)).__initializeDigits();var f=new o(i+2>>>1,!1);f.__initializeDigits();var c=o.__clz16(e.__halfDigit(i-1));0<c&&(e=o.__specialLeftShift(e,c,0));for(var l=o.__specialLeftShift(t,c,1),h=e.__halfDigit(i-1),p=0,y=u;0<=y;y--){var d=65535,g=l.__halfDigit(y+i);if(g!==h){var b=(g<<16|l.__halfDigit(y+i-1))>>>0;d=0|b/h;for(var v=0|b%h,_=e.__halfDigit(i-2),m=l.__halfDigit(y+i-2);o.__imul(d,_)>>>0>(v<<16|m)>>>0&&(d--,!(65535<(v+=h))););}o.__internalMultiplyAdd(e,d,0,a,f);var w=l.__inplaceSub(f,y,i+1);0!==w&&(w=l.__inplaceAdd(e,y,i),l.__setHalfDigit(y+i,l.__halfDigit(y+i)+w),d--),r&&(1&y?p=d<<16:s.__setDigit(y>>>1,p|d))}return n?(l.__inplaceRightShift(c),r?{quotient:s,remainder:l}:l):r?s:void 0}},{key:"__clz16",value:function(t){return o.__clz32(t)-16}},{key:"__specialLeftShift",value:function(t,e,r){var n=t.length,i=new o(n+r,!1);if(0===e){for(var a=0;a<n;a++)i.__setDigit(a,t.__digit(a));return 0<r&&i.__setDigit(n,0),i}for(var u,s=0,f=0;f<n;f++)u=t.__digit(f),i.__setDigit(f,u<<e|s),s=u>>>32-e;return 0<r&&i.__setDigit(n,s),i}},{key:"__leftShiftByAbsolute",value:function(t,e){var r=o.__toShiftAmount(e);if(0>r)throw new RangeError("BigInt too big");var n=r>>>5,i=31&r,a=t.length,u=0!==i&&0!=t.__digit(a-1)>>>32-i,s=a+n+(u?1:0),f=new o(s,t.sign);if(0===i){for(var c=0;c<n;c++)f.__setDigit(c,0);for(;c<s;c++)f.__setDigit(c,t.__digit(c-n))}else{for(var l=0,h=0;h<n;h++)f.__setDigit(h,0);for(var p,y=0;y<a;y++)p=t.__digit(y),f.__setDigit(y+n,p<<i|l),l=p>>>32-i;if(u)f.__setDigit(a+n,l);else if(0!==l)throw new Error("implementation bug")}return f.__trim()}},{key:"__rightShiftByAbsolute",value:function(t,e){var r=t.length,n=t.sign,i=o.__toShiftAmount(e);if(0>i)return o.__rightShiftByMaximum(n);var a=i>>>5,u=31&i,s=r-a;if(0>=s)return o.__rightShiftByMaximum(n);var f=!1;if(n)if(0!=(t.__digit(a)&(1<<u)-1))f=!0;else for(var c=0;c<a;c++)if(0!==t.__digit(c)){f=!0;break}f&&0===u&&0==~t.__digit(r-1)&&s++;var l=new o(s,n);if(0===u)for(var h=a;h<r;h++)l.__setDigit(h-a,t.__digit(h));else{for(var p,y=t.__digit(a)>>>u,d=r-a-1,g=0;g<d;g++)p=t.__digit(g+a+1),l.__setDigit(g,p<<32-u|y),y=p>>>u;l.__setDigit(d,y)}return f&&(l=o.__absoluteAddOne(l,!0,l)),l.__trim()}},{key:"__rightShiftByMaximum",value:function(t){return t?o.__oneDigit(1,!0):o.__zero()}},{key:"__toShiftAmount",value:function(t){if(1<t.length)return-1;var e=t.__unsignedDigit(0);return e>o.__kMaxLengthBits?-1:e}},{key:"__toPrimitive",value:function(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:"default";if("object"!==r(t))return t;if(t.constructor===o)return t;var n=t[Symbol.toPrimitive];if(n){var i=n(e);if("object"!==r(i))return i;throw new TypeError("Cannot convert object to primitive value")}var a=t.valueOf;if(a){var u=a.call(t);if("object"!==r(u))return u}var s=t.toString;if(s){var f=s.call(t);if("object"!==r(f))return f}throw new TypeError("Cannot convert object to primitive value")}},{key:"__toNumeric",value:function(t){return o.__isBigInt(t)?t:+t}},{key:"__isBigInt",value:function(t){return"object"===r(t)&&null!==t&&t.constructor===o}},{key:"__truncateToNBits",value:function(t,e){for(var r=t+31>>>5,n=new o(r,e.sign),i=r-1,a=0;a<i;a++)n.__setDigit(a,e.__digit(a));var u=e.__digit(i);if(0!=(31&t)){var s=32-(31&t);u=u<<s>>>s}return n.__setDigit(i,u),n.__trim()}},{key:"__truncateAndSubFromPowerOfTwo",value:function(t,e,r){for(var n=Math.min,i=t+31>>>5,a=new o(i,r),u=0,s=i-1,f=0,c=n(s,e.length);u<c;u++){var l=e.__digit(u),h=0-(65535&l)-f,p=0-(l>>>16)-(f=1&h>>>16);f=1&p>>>16,a.__setDigit(u,65535&h|p<<16)}for(;u<s;u++)a.__setDigit(u,0|-f);var y,d=s<e.length?e.__digit(s):0,g=31&t;if(0===g){var b=0-(65535&d)-f;y=65535&b|0-(d>>>16)-(f=1&b>>>16)<<16}else{var v=32-g,_=1<<32-v,m=(65535&_)-(65535&(d=d<<v>>>v))-f;y=65535&m|(_>>>16)-(d>>>16)-(f=1&m>>>16)<<16,y&=_-1}return a.__setDigit(s,y),a.__trim()}},{key:"__digitPow",value:function(t,e){for(var r=1;0<e;)1&e&&(r*=t),e>>>=1,t*=t;return r}}]),o}(f(Array));return y.__kMaxLength=33554432,y.__kMaxLengthBits=y.__kMaxLength<<5,y.__kMaxBitsPerChar=[0,0,32,51,64,75,83,90,96,102,107,111,115,119,122,126,128,131,134,136,139,141,143,145,147,149,151,153,154,156,158,159,160,162,163,165,166],y.__kBitsPerCharTableShift=5,y.__kBitsPerCharTableMultiplier=1<<y.__kBitsPerCharTableShift,y.__kConversionChars=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z"],y.__kBitConversionBuffer=new ArrayBuffer(8),y.__kBitConversionDouble=new Float64Array(y.__kBitConversionBuffer),y.__kBitConversionInts=new Int32Array(y.__kBitConversionBuffer),y.__clz32=e||function(t){var e=Math.LN2,r=Math.log;return 0===t?32:0|31-(0|r(t>>>0)/e)},y.__imul=t||function(t,e){return 0|t*e},y}()},2318:(t,e,r)=>{"use strict";var n=r(5717),i=r(3349),o=r(9509).Buffer,a=new Array(16);function u(){i.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878}function s(t,e){return t<<e|t>>>32-e}function f(t,e,r,n,i,o,a){return s(t+(e&r|~e&n)+i+o|0,a)+e|0}function c(t,e,r,n,i,o,a){return s(t+(e&n|r&~n)+i+o|0,a)+e|0}function l(t,e,r,n,i,o,a){return s(t+(e^r^n)+i+o|0,a)+e|0}function h(t,e,r,n,i,o,a){return s(t+(r^(e|~n))+i+o|0,a)+e|0}n(u,i),u.prototype._update=function(){for(var t=a,e=0;e<16;++e)t[e]=this._block.readInt32LE(4*e);var r=this._a,n=this._b,i=this._c,o=this._d;r=f(r,n,i,o,t[0],3614090360,7),o=f(o,r,n,i,t[1],3905402710,12),i=f(i,o,r,n,t[2],606105819,17),n=f(n,i,o,r,t[3],3250441966,22),r=f(r,n,i,o,t[4],4118548399,7),o=f(o,r,n,i,t[5],1200080426,12),i=f(i,o,r,n,t[6],2821735955,17),n=f(n,i,o,r,t[7],4249261313,22),r=f(r,n,i,o,t[8],1770035416,7),o=f(o,r,n,i,t[9],2336552879,12),i=f(i,o,r,n,t[10],4294925233,17),n=f(n,i,o,r,t[11],2304563134,22),r=f(r,n,i,o,t[12],1804603682,7),o=f(o,r,n,i,t[13],4254626195,12),i=f(i,o,r,n,t[14],2792965006,17),r=c(r,n=f(n,i,o,r,t[15],1236535329,22),i,o,t[1],4129170786,5),o=c(o,r,n,i,t[6],3225465664,9),i=c(i,o,r,n,t[11],643717713,14),n=c(n,i,o,r,t[0],3921069994,20),r=c(r,n,i,o,t[5],3593408605,5),o=c(o,r,n,i,t[10],38016083,9),i=c(i,o,r,n,t[15],3634488961,14),n=c(n,i,o,r,t[4],3889429448,20),r=c(r,n,i,o,t[9],568446438,5),o=c(o,r,n,i,t[14],3275163606,9),i=c(i,o,r,n,t[3],4107603335,14),n=c(n,i,o,r,t[8],1163531501,20),r=c(r,n,i,o,t[13],2850285829,5),o=c(o,r,n,i,t[2],4243563512,9),i=c(i,o,r,n,t[7],1735328473,14),r=l(r,n=c(n,i,o,r,t[12],2368359562,20),i,o,t[5],4294588738,4),o=l(o,r,n,i,t[8],2272392833,11),i=l(i,o,r,n,t[11],1839030562,16),n=l(n,i,o,r,t[14],4259657740,23),r=l(r,n,i,o,t[1],2763975236,4),o=l(o,r,n,i,t[4],1272893353,11),i=l(i,o,r,n,t[7],4139469664,16),n=l(n,i,o,r,t[10],3200236656,23),r=l(r,n,i,o,t[13],681279174,4),o=l(o,r,n,i,t[0],3936430074,11),i=l(i,o,r,n,t[3],3572445317,16),n=l(n,i,o,r,t[6],76029189,23),r=l(r,n,i,o,t[9],3654602809,4),o=l(o,r,n,i,t[12],3873151461,11),i=l(i,o,r,n,t[15],530742520,16),r=h(r,n=l(n,i,o,r,t[2],3299628645,23),i,o,t[0],4096336452,6),o=h(o,r,n,i,t[7],1126891415,10),i=h(i,o,r,n,t[14],2878612391,15),n=h(n,i,o,r,t[5],4237533241,21),r=h(r,n,i,o,t[12],1700485571,6),o=h(o,r,n,i,t[3],2399980690,10),i=h(i,o,r,n,t[10],4293915773,15),n=h(n,i,o,r,t[1],2240044497,21),r=h(r,n,i,o,t[8],1873313359,6),o=h(o,r,n,i,t[15],4264355552,10),i=h(i,o,r,n,t[6],2734768916,15),n=h(n,i,o,r,t[13],1309151649,21),r=h(r,n,i,o,t[4],4149444226,6),o=h(o,r,n,i,t[11],3174756917,10),i=h(i,o,r,n,t[2],718787259,15),n=h(n,i,o,r,t[9],3951481745,21),this._a=this._a+r|0,this._b=this._b+n|0,this._c=this._c+i|0,this._d=this._d+o|0},u.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 t=o.allocUnsafe(16);return t.writeInt32LE(this._a,0),t.writeInt32LE(this._b,4),t.writeInt32LE(this._c,8),t.writeInt32LE(this._d,12),t},t.exports=u},631:(t,e,r)=>{var n="function"==typeof Map&&Map.prototype,i=Object.getOwnPropertyDescriptor&&n?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,o=n&&i&&"function"==typeof i.get?i.get:null,a=n&&Map.prototype.forEach,u="function"==typeof Set&&Set.prototype,s=Object.getOwnPropertyDescriptor&&u?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,f=u&&s&&"function"==typeof s.get?s.get:null,c=u&&Set.prototype.forEach,l="function"==typeof WeakMap&&WeakMap.prototype?WeakMap.prototype.has:null,h="function"==typeof WeakSet&&WeakSet.prototype?WeakSet.prototype.has:null,p="function"==typeof WeakRef&&WeakRef.prototype?WeakRef.prototype.deref:null,y=Boolean.prototype.valueOf,d=Object.prototype.toString,g=Function.prototype.toString,b=String.prototype.match,v="function"==typeof BigInt?BigInt.prototype.valueOf:null,_=Object.getOwnPropertySymbols,m="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?Symbol.prototype.toString:null,w="function"==typeof Symbol&&"object"==typeof Symbol.iterator,E=Object.prototype.propertyIsEnumerable,S=("function"==typeof Reflect?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(t){return t.__proto__}:null),O=r(4654).custom,B=O&&T(O)?O:null,x="function"==typeof Symbol&&void 0!==Symbol.toStringTag?Symbol.toStringTag:null;function A(t,e,r){var n="double"===(r.quoteStyle||e)?'"':"'";return n+t+n}function I(t){return String(t).replace(/"/g,"&quot;")}function R(t){return!("[object Array]"!==k(t)||x&&"object"==typeof t&&x in t)}function T(t){if(w)return t&&"object"==typeof t&&t instanceof Symbol;if("symbol"==typeof t)return!0;if(!t||"object"!=typeof t||!m)return!1;try{return m.call(t),!0}catch(t){}return!1}t.exports=function t(e,r,n,i){var u=r||{};if(P(u,"quoteStyle")&&"single"!==u.quoteStyle&&"double"!==u.quoteStyle)throw new TypeError('option "quoteStyle" must be "single" or "double"');if(P(u,"maxStringLength")&&("number"==typeof u.maxStringLength?u.maxStringLength<0&&u.maxStringLength!==1/0:null!==u.maxStringLength))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var s=!P(u,"customInspect")||u.customInspect;if("boolean"!=typeof s)throw new TypeError('option "customInspect", if provided, must be `true` or `false`');if(P(u,"indent")&&null!==u.indent&&"\t"!==u.indent&&!(parseInt(u.indent,10)===u.indent&&u.indent>0))throw new TypeError('options "indent" must be "\\t", an integer > 0, or `null`');if(void 0===e)return"undefined";if(null===e)return"null";if("boolean"==typeof e)return e?"true":"false";if("string"==typeof e)return D(e,u);if("number"==typeof e)return 0===e?1/0/e>0?"0":"-0":String(e);if("bigint"==typeof e)return String(e)+"n";var d=void 0===u.depth?5:u.depth;if(void 0===n&&(n=0),n>=d&&d>0&&"object"==typeof e)return R(e)?"[Array]":"[Object]";var _,E=function(t,e){var r;if("\t"===t.indent)r="\t";else{if(!("number"==typeof t.indent&&t.indent>0))return null;r=Array(t.indent+1).join(" ")}return{base:r,prev:Array(e+1).join(r)}}(u,n);if(void 0===i)i=[];else if(C(i,e)>=0)return"[Circular]";function O(e,r,o){if(r&&(i=i.slice()).push(r),o){var a={depth:u.depth};return P(u,"quoteStyle")&&(a.quoteStyle=u.quoteStyle),t(e,a,n+1,i)}return t(e,u,n+1,i)}if("function"==typeof e){var j=function(t){if(t.name)return t.name;var e=b.call(g.call(t),/^function\s*([\w$]+)/);return e?e[1]:null}(e),U=q(e,O);return"[Function"+(j?": "+j:" (anonymous)")+"]"+(U.length>0?" { "+U.join(", ")+" }":"")}if(T(e)){var W=w?String(e).replace(/^(Symbol\(.*\))_[^)]*$/,"$1"):m.call(e);return"object"!=typeof e||w?W:L(W)}if((_=e)&&"object"==typeof _&&("undefined"!=typeof HTMLElement&&_ instanceof HTMLElement||"string"==typeof _.nodeName&&"function"==typeof _.getAttribute)){for(var z="<"+String(e.nodeName).toLowerCase(),$=e.attributes||[],G=0;G<$.length;G++)z+=" "+$[G].name+"="+A(I($[G].value),"double",u);return z+=">",e.childNodes&&e.childNodes.length&&(z+="..."),z+"</"+String(e.nodeName).toLowerCase()+">"}if(R(e)){if(0===e.length)return"[]";var K=q(e,O);return E&&!function(t){for(var e=0;e<t.length;e++)if(C(t[e],"\n")>=0)return!1;return!0}(K)?"["+F(K,E)+"]":"[ "+K.join(", ")+" ]"}if(function(t){return!("[object Error]"!==k(t)||x&&"object"==typeof t&&x in t)}(e)){var H=q(e,O);return 0===H.length?"["+String(e)+"]":"{ ["+String(e)+"] "+H.join(", ")+" }"}if("object"==typeof e&&s){if(B&&"function"==typeof e[B])return e[B]();if("function"==typeof e.inspect)return e.inspect()}if(function(t){if(!o||!t||"object"!=typeof t)return!1;try{o.call(t);try{f.call(t)}catch(t){return!0}return t instanceof Map}catch(t){}return!1}(e)){var Y=[];return a.call(e,(function(t,r){Y.push(O(r,e,!0)+" => "+O(t,e))})),N("Map",o.call(e),Y,E)}if(function(t){if(!f||!t||"object"!=typeof t)return!1;try{f.call(t);try{o.call(t)}catch(t){return!0}return t instanceof Set}catch(t){}return!1}(e)){var V=[];return c.call(e,(function(t){V.push(O(t,e))})),N("Set",f.call(e),V,E)}if(function(t){if(!l||!t||"object"!=typeof t)return!1;try{l.call(t,l);try{h.call(t,h)}catch(t){return!0}return t instanceof WeakMap}catch(t){}return!1}(e))return M("WeakMap");if(function(t){if(!h||!t||"object"!=typeof t)return!1;try{h.call(t,h);try{l.call(t,l)}catch(t){return!0}return t instanceof WeakSet}catch(t){}return!1}(e))return M("WeakSet");if(function(t){if(!p||!t||"object"!=typeof t)return!1;try{return p.call(t),!0}catch(t){}return!1}(e))return M("WeakRef");if(function(t){return!("[object Number]"!==k(t)||x&&"object"==typeof t&&x in t)}(e))return L(O(Number(e)));if(function(t){if(!t||"object"!=typeof t||!v)return!1;try{return v.call(t),!0}catch(t){}return!1}(e))return L(O(v.call(e)));if(function(t){return!("[object Boolean]"!==k(t)||x&&"object"==typeof t&&x in t)}(e))return L(y.call(e));if(function(t){return!("[object String]"!==k(t)||x&&"object"==typeof t&&x in t)}(e))return L(O(String(e)));if(!function(t){return!("[object Date]"!==k(t)||x&&"object"==typeof t&&x in t)}(e)&&!function(t){return!("[object RegExp]"!==k(t)||x&&"object"==typeof t&&x in t)}(e)){var J=q(e,O),X=S?S(e)===Object.prototype:e instanceof Object||e.constructor===Object,Z=e instanceof Object?"":"null prototype",Q=!X&&x&&Object(e)===e&&x in e?k(e).slice(8,-1):Z?"Object":"",tt=(X||"function"!=typeof e.constructor?"":e.constructor.name?e.constructor.name+" ":"")+(Q||Z?"["+[].concat(Q||[],Z||[]).join(": ")+"] ":"");return 0===J.length?tt+"{}":E?tt+"{"+F(J,E)+"}":tt+"{ "+J.join(", ")+" }"}return String(e)};var j=Object.prototype.hasOwnProperty||function(t){return t in this};function P(t,e){return j.call(t,e)}function k(t){return d.call(t)}function C(t,e){if(t.indexOf)return t.indexOf(e);for(var r=0,n=t.length;r<n;r++)if(t[r]===e)return r;return-1}function D(t,e){if(t.length>e.maxStringLength){var r=t.length-e.maxStringLength,n="... "+r+" more character"+(r>1?"s":"");return D(t.slice(0,e.maxStringLength),e)+n}return A(t.replace(/(['\\])/g,"\\$1").replace(/[\x00-\x1f]/g,U),"single",e)}function U(t){var e=t.charCodeAt(0),r={8:"b",9:"t",10:"n",12:"f",13:"r"}[e];return r?"\\"+r:"\\x"+(e<16?"0":"")+e.toString(16).toUpperCase()}function L(t){return"Object("+t+")"}function M(t){return t+" { ? }"}function N(t,e,r,n){return t+" ("+e+") {"+(n?F(r,n):r.join(", "))+"}"}function F(t,e){if(0===t.length)return"";var r="\n"+e.prev+e.base;return r+t.join(","+r)+"\n"+e.prev}function q(t,e){var r=R(t),n=[];if(r){n.length=t.length;for(var i=0;i<t.length;i++)n[i]=P(t,i)?e(t[i],t):""}var o,a="function"==typeof _?_(t):[];if(w){o={};for(var u=0;u<a.length;u++)o["$"+a[u]]=a[u]}for(var s in t)P(t,s)&&(r&&String(Number(s))===s&&s<t.length||w&&o["$"+s]instanceof Symbol||(/[^\w$]/.test(s)?n.push(e(s,t)+": "+e(t[s],t)):n.push(s+": "+e(t[s],t))));if("function"==typeof _)for(var f=0;f<a.length;f++)E.call(t,a[f])&&n.push("["+e(a[f])+"]: "+e(t[a[f]],t));return n}},4244:t=>{"use strict";var e=function(t){return t!=t};t.exports=function(t,r){return 0===t&&0===r?1/t==1/r:t===r||!(!e(t)||!e(r))}},609:(t,e,r)=>{"use strict";var n=r(4289),i=r(5559),o=r(4244),a=r(5624),u=r(2281),s=i(a(),Object);n(s,{getPolyfill:a,implementation:o,shim:u}),t.exports=s},5624:(t,e,r)=>{"use strict";var n=r(4244);t.exports=function(){return"function"==typeof Object.is?Object.is:n}},2281:(t,e,r)=>{"use strict";var n=r(5624),i=r(4289);t.exports=function(){var t=n();return i(Object,{is:t},{is:function(){return Object.is!==t}}),t}},8987:(t,e,r)=>{"use strict";var n;if(!Object.keys){var i=Object.prototype.hasOwnProperty,o=Object.prototype.toString,a=r(1414),u=Object.prototype.propertyIsEnumerable,s=!u.call({toString:null},"toString"),f=u.call((function(){}),"prototype"),c=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],l=function(t){var e=t.constructor;return e&&e.prototype===t},h={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},p=function(){if("undefined"==typeof window)return!1;for(var t in window)try{if(!h["$"+t]&&i.call(window,t)&&null!==window[t]&&"object"==typeof window[t])try{l(window[t])}catch(t){return!0}}catch(t){return!0}return!1}();n=function(t){var e=null!==t&&"object"==typeof t,r="[object Function]"===o.call(t),n=a(t),u=e&&"[object String]"===o.call(t),h=[];if(!e&&!r&&!n)throw new TypeError("Object.keys called on a non-object");var y=f&&r;if(u&&t.length>0&&!i.call(t,0))for(var d=0;d<t.length;++d)h.push(String(d));if(n&&t.length>0)for(var g=0;g<t.length;++g)h.push(String(g));else for(var b in t)y&&"prototype"===b||!i.call(t,b)||h.push(String(b));if(s)for(var v=function(t){if("undefined"==typeof window||!p)return l(t);try{return l(t)}catch(t){return!1}}(t),_=0;_<c.length;++_)v&&"constructor"===c[_]||!i.call(t,c[_])||h.push(c[_]);return h}}t.exports=n},2215:(t,e,r)=>{"use strict";var n=Array.prototype.slice,i=r(1414),o=Object.keys,a=o?function(t){return o(t)}:r(8987),u=Object.keys;a.shim=function(){if(Object.keys){var t=function(){var t=Object.keys(arguments);return t&&t.length===arguments.length}(1,2);t||(Object.keys=function(t){return i(t)?u(n.call(t)):u(t)})}else Object.keys=a;return Object.keys||a},t.exports=a},1414:t=>{"use strict";var e=Object.prototype.toString;t.exports=function(t){var r=e.call(t),n="[object Arguments]"===r;return n||(n="[object Array]"!==r&&null!==t&&"object"==typeof t&&"number"==typeof t.length&&t.length>=0&&"[object Function]"===e.call(t.callee)),n}},4155:t=>{var e,r,n=t.exports={};function i(){throw new Error("setTimeout has not been defined")}function o(){throw new Error("clearTimeout has not been defined")}function a(t){if(e===setTimeout)return setTimeout(t,0);if((e===i||!e)&&setTimeout)return e=setTimeout,setTimeout(t,0);try{return e(t,0)}catch(r){try{return e.call(null,t,0)}catch(r){return e.call(this,t,0)}}}!function(){try{e="function"==typeof setTimeout?setTimeout:i}catch(t){e=i}try{r="function"==typeof clearTimeout?clearTimeout:o}catch(t){r=o}}();var u,s=[],f=!1,c=-1;function l(){f&&u&&(f=!1,u.length?s=u.concat(s):c=-1,s.length&&h())}function h(){if(!f){var t=a(l);f=!0;for(var e=s.length;e;){for(u=s,s=[];++c<e;)u&&u[c].run();c=-1,e=s.length}u=null,f=!1,function(t){if(r===clearTimeout)return clearTimeout(t);if((r===o||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(t);try{r(t)}catch(e){try{return r.call(null,t)}catch(e){return r.call(this,t)}}}(t)}}function p(t,e){this.fun=t,this.array=e}function y(){}n.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)e[r-1]=arguments[r];s.push(new p(t,e)),1!==s.length||f||a(h)},p.prototype.run=function(){this.fun.apply(null,this.array)},n.title="browser",n.browser=!0,n.env={},n.argv=[],n.version="",n.versions={},n.on=y,n.addListener=y,n.once=y,n.off=y,n.removeListener=y,n.removeAllListeners=y,n.emit=y,n.prependListener=y,n.prependOnceListener=y,n.listeners=function(t){return[]},n.binding=function(t){throw new Error("process.binding is not supported")},n.cwd=function(){return"/"},n.chdir=function(t){throw new Error("process.chdir is not supported")},n.umask=function(){return 0}},4281:t=>{"use strict";var e={};function r(t,r,n){n||(n=Error);var i=function(t){var e,n;function i(e,n,i){return t.call(this,function(t,e,n){return"string"==typeof r?r:r(t,e,n)}(e,n,i))||this}return n=t,(e=i).prototype=Object.create(n.prototype),e.prototype.constructor=e,e.__proto__=n,i}(n);i.prototype.name=n.name,i.prototype.code=t,e[t]=i}function n(t,e){if(Array.isArray(t)){var r=t.length;return t=t.map((function(t){return String(t)})),r>2?"one of ".concat(e," ").concat(t.slice(0,r-1).join(", "),", or ")+t[r-1]:2===r?"one of ".concat(e," ").concat(t[0]," or ").concat(t[1]):"of ".concat(e," ").concat(t[0])}return"of ".concat(e," ").concat(String(t))}r("ERR_INVALID_OPT_VALUE",(function(t,e){return'The value "'+e+'" is invalid for option "'+t+'"'}),TypeError),r("ERR_INVALID_ARG_TYPE",(function(t,e,r){var i,o,a,u,s;if("string"==typeof e&&(o="not ",e.substr(0,o.length)===o)?(i="must not be",e=e.replace(/^not /,"")):i="must be",function(t,e,r){return(void 0===r||r>t.length)&&(r=t.length),t.substring(r-e.length,r)===e}(t," argument"))a="The ".concat(t," ").concat(i," ").concat(n(e,"type"));else{var f=("number"!=typeof s&&(s=0),s+".".length>(u=t).length||-1===u.indexOf(".",s)?"argument":"property");a='The "'.concat(t,'" ').concat(f," ").concat(i," ").concat(n(e,"type"))}return a+". Received type ".concat(typeof r)}),TypeError),r("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),r("ERR_METHOD_NOT_IMPLEMENTED",(function(t){return"The "+t+" method is not implemented"})),r("ERR_STREAM_PREMATURE_CLOSE","Premature close"),r("ERR_STREAM_DESTROYED",(function(t){return"Cannot call "+t+" after a stream was destroyed"})),r("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),r("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),r("ERR_STREAM_WRITE_AFTER_END","write after end"),r("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),r("ERR_UNKNOWN_ENCODING",(function(t){return"Unknown encoding: "+t}),TypeError),r("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),t.exports.q=e},6753:(t,e,r)=>{"use strict";var n=r(4155),i=Object.keys||function(t){var e=[];for(var r in t)e.push(r);return e};t.exports=c;var o=r(9481),a=r(4229);r(5717)(c,o);for(var u=i(a.prototype),s=0;s<u.length;s++){var f=u[s];c.prototype[f]||(c.prototype[f]=a.prototype[f])}function c(t){if(!(this instanceof c))return new c(t);o.call(this,t),a.call(this,t),this.allowHalfOpen=!0,t&&(!1===t.readable&&(this.readable=!1),!1===t.writable&&(this.writable=!1),!1===t.allowHalfOpen&&(this.allowHalfOpen=!1,this.once("end",l)))}function l(){this._writableState.ended||n.nextTick(h,this)}function h(t){t.end()}Object.defineProperty(c.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(c.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(c.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(c.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&void 0!==this._writableState&&this._readableState.destroyed&&this._writableState.destroyed},set:function(t){void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed=t,this._writableState.destroyed=t)}})},2725:(t,e,r)=>{"use strict";t.exports=i;var n=r(4605);function i(t){if(!(this instanceof i))return new i(t);n.call(this,t)}r(5717)(i,n),i.prototype._transform=function(t,e,r){r(null,t)}},9481:(t,e,r)=>{"use strict";var n,i=r(4155);t.exports=B,B.ReadableState=O,r(7187).EventEmitter;var o,a=function(t,e){return t.listeners(e).length},u=r(2503),s=r(8764).Buffer,f=r.g.Uint8Array||function(){},c=r(4616);o=c&&c.debuglog?c.debuglog("stream"):function(){};var l,h,p,y=r(7327),d=r(1195),g=r(2457).getHighWaterMark,b=r(4281).q,v=b.ERR_INVALID_ARG_TYPE,_=b.ERR_STREAM_PUSH_AFTER_EOF,m=b.ERR_METHOD_NOT_IMPLEMENTED,w=b.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;r(5717)(B,u);var E=d.errorOrDestroy,S=["error","close","destroy","pause","resume"];function O(t,e,i){n=n||r(6753),t=t||{},"boolean"!=typeof i&&(i=e instanceof n),this.objectMode=!!t.objectMode,i&&(this.objectMode=this.objectMode||!!t.readableObjectMode),this.highWaterMark=g(this,t,"readableHighWaterMark",i),this.buffer=new y,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&&(l||(l=r(2553).s),this.decoder=new l(t.encoding),this.encoding=t.encoding)}function B(t){if(n=n||r(6753),!(this instanceof B))return new B(t);var e=this instanceof n;this._readableState=new O(t,this,e),this.readable=!0,t&&("function"==typeof t.read&&(this._read=t.read),"function"==typeof t.destroy&&(this._destroy=t.destroy)),u.call(this)}function x(t,e,r,n,i){o("readableAddChunk",e);var a,u=t._readableState;if(null===e)u.reading=!1,function(t,e){if(o("onEofChunk"),!e.ended){if(e.decoder){var r=e.decoder.end();r&&r.length&&(e.buffer.push(r),e.length+=e.objectMode?1:r.length)}e.ended=!0,e.sync?T(t):(e.needReadable=!1,e.emittedReadable||(e.emittedReadable=!0,j(t)))}}(t,u);else if(i||(a=function(t,e){var r,n;return n=e,s.isBuffer(n)||n instanceof f||"string"==typeof e||void 0===e||t.objectMode||(r=new v("chunk",["string","Buffer","Uint8Array"],e)),r}(u,e)),a)E(t,a);else if(u.objectMode||e&&e.length>0)if("string"==typeof e||u.objectMode||Object.getPrototypeOf(e)===s.prototype||(e=function(t){return s.from(t)}(e)),n)u.endEmitted?E(t,new w):A(t,u,e,!0);else if(u.ended)E(t,new _);else{if(u.destroyed)return!1;u.reading=!1,u.decoder&&!r?(e=u.decoder.write(e),u.objectMode||0!==e.length?A(t,u,e,!1):P(t,u)):A(t,u,e,!1)}else n||(u.reading=!1,P(t,u));return!u.ended&&(u.length<u.highWaterMark||0===u.length)}function A(t,e,r,n){e.flowing&&0===e.length&&!e.sync?(e.awaitDrain=0,t.emit("data",r)):(e.length+=e.objectMode?1:r.length,n?e.buffer.unshift(r):e.buffer.push(r),e.needReadable&&T(t)),P(t,e)}Object.defineProperty(B.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(t){this._readableState&&(this._readableState.destroyed=t)}}),B.prototype.destroy=d.destroy,B.prototype._undestroy=d.undestroy,B.prototype._destroy=function(t,e){e(t)},B.prototype.push=function(t,e){var r,n=this._readableState;return n.objectMode?r=!0:"string"==typeof t&&((e=e||n.defaultEncoding)!==n.encoding&&(t=s.from(t,e),e=""),r=!0),x(this,t,e,!1,r)},B.prototype.unshift=function(t){return x(this,t,null,!0,!1)},B.prototype.isPaused=function(){return!1===this._readableState.flowing},B.prototype.setEncoding=function(t){l||(l=r(2553).s);var e=new l(t);this._readableState.decoder=e,this._readableState.encoding=this._readableState.decoder.encoding;for(var n=this._readableState.buffer.head,i="";null!==n;)i+=e.write(n.data),n=n.next;return this._readableState.buffer.clear(),""!==i&&this._readableState.buffer.push(i),this._readableState.length=i.length,this};var I=1073741824;function R(t,e){return t<=0||0===e.length&&e.ended?0:e.objectMode?1:t!=t?e.flowing&&e.length?e.buffer.head.data.length:e.length:(t>e.highWaterMark&&(e.highWaterMark=function(t){return t>=I?t=I:(t--,t|=t>>>1,t|=t>>>2,t|=t>>>4,t|=t>>>8,t|=t>>>16,t++),t}(t)),t<=e.length?t:e.ended?e.length:(e.needReadable=!0,0))}function T(t){var e=t._readableState;o("emitReadable",e.needReadable,e.emittedReadable),e.needReadable=!1,e.emittedReadable||(o("emitReadable",e.flowing),e.emittedReadable=!0,i.nextTick(j,t))}function j(t){var e=t._readableState;o("emitReadable_",e.destroyed,e.length,e.ended),e.destroyed||!e.length&&!e.ended||(t.emit("readable"),e.emittedReadable=!1),e.needReadable=!e.flowing&&!e.ended&&e.length<=e.highWaterMark,L(t)}function P(t,e){e.readingMore||(e.readingMore=!0,i.nextTick(k,t,e))}function k(t,e){for(;!e.reading&&!e.ended&&(e.length<e.highWaterMark||e.flowing&&0===e.length);){var r=e.length;if(o("maybeReadMore read 0"),t.read(0),r===e.length)break}e.readingMore=!1}function C(t){var e=t._readableState;e.readableListening=t.listenerCount("readable")>0,e.resumeScheduled&&!e.paused?e.flowing=!0:t.listenerCount("data")>0&&t.resume()}function D(t){o("readable nexttick read 0"),t.read(0)}function U(t,e){o("resume",e.reading),e.reading||t.read(0),e.resumeScheduled=!1,t.emit("resume"),L(t),e.flowing&&!e.reading&&t.read(0)}function L(t){var e=t._readableState;for(o("flow",e.flowing);e.flowing&&null!==t.read(););}function M(t,e){return 0===e.length?null:(e.objectMode?r=e.buffer.shift():!t||t>=e.length?(r=e.decoder?e.buffer.join(""):1===e.buffer.length?e.buffer.first():e.buffer.concat(e.length),e.buffer.clear()):r=e.buffer.consume(t,e.decoder),r);var r}function N(t){var e=t._readableState;o("endReadable",e.endEmitted),e.endEmitted||(e.ended=!0,i.nextTick(F,e,t))}function F(t,e){if(o("endReadableNT",t.endEmitted,t.length),!t.endEmitted&&0===t.length&&(t.endEmitted=!0,e.readable=!1,e.emit("end"),t.autoDestroy)){var r=e._writableState;(!r||r.autoDestroy&&r.finished)&&e.destroy()}}function q(t,e){for(var r=0,n=t.length;r<n;r++)if(t[r]===e)return r;return-1}B.prototype.read=function(t){o("read",t),t=parseInt(t,10);var e=this._readableState,r=t;if(0!==t&&(e.emittedReadable=!1),0===t&&e.needReadable&&((0!==e.highWaterMark?e.length>=e.highWaterMark:e.length>0)||e.ended))return o("read: emitReadable",e.length,e.ended),0===e.length&&e.ended?N(this):T(this),null;if(0===(t=R(t,e))&&e.ended)return 0===e.length&&N(this),null;var n,i=e.needReadable;return o("need readable",i),(0===e.length||e.length-t<e.highWaterMark)&&o("length less than watermark",i=!0),e.ended||e.reading?o("reading or ended",i=!1):i&&(o("do read"),e.reading=!0,e.sync=!0,0===e.length&&(e.needReadable=!0),this._read(e.highWaterMark),e.sync=!1,e.reading||(t=R(r,e))),null===(n=t>0?M(t,e):null)?(e.needReadable=e.length<=e.highWaterMark,t=0):(e.length-=t,e.awaitDrain=0),0===e.length&&(e.ended||(e.needReadable=!0),r!==t&&e.ended&&N(this)),null!==n&&this.emit("data",n),n},B.prototype._read=function(t){E(this,new m("_read()"))},B.prototype.pipe=function(t,e){var r=this,n=this._readableState;switch(n.pipesCount){case 0:n.pipes=t;break;case 1:n.pipes=[n.pipes,t];break;default:n.pipes.push(t)}n.pipesCount+=1,o("pipe count=%d opts=%j",n.pipesCount,e);var u=e&&!1===e.end||t===i.stdout||t===i.stderr?d:s;function s(){o("onend"),t.end()}n.endEmitted?i.nextTick(u):r.once("end",u),t.on("unpipe",(function e(i,a){o("onunpipe"),i===r&&a&&!1===a.hasUnpiped&&(a.hasUnpiped=!0,o("cleanup"),t.removeListener("close",p),t.removeListener("finish",y),t.removeListener("drain",f),t.removeListener("error",h),t.removeListener("unpipe",e),r.removeListener("end",s),r.removeListener("end",d),r.removeListener("data",l),c=!0,!n.awaitDrain||t._writableState&&!t._writableState.needDrain||f())}));var f=function(t){return function(){var e=t._readableState;o("pipeOnDrain",e.awaitDrain),e.awaitDrain&&e.awaitDrain--,0===e.awaitDrain&&a(t,"data")&&(e.flowing=!0,L(t))}}(r);t.on("drain",f);var c=!1;function l(e){o("ondata");var i=t.write(e);o("dest.write",i),!1===i&&((1===n.pipesCount&&n.pipes===t||n.pipesCount>1&&-1!==q(n.pipes,t))&&!c&&(o("false write response, pause",n.awaitDrain),n.awaitDrain++),r.pause())}function h(e){o("onerror",e),d(),t.removeListener("error",h),0===a(t,"error")&&E(t,e)}function p(){t.removeListener("finish",y),d()}function y(){o("onfinish"),t.removeListener("close",p),d()}function d(){o("unpipe"),r.unpipe(t)}return r.on("data",l),function(t,e,r){if("function"==typeof t.prependListener)return t.prependListener(e,r);t._events&&t._events.error?Array.isArray(t._events.error)?t._events.error.unshift(r):t._events.error=[r,t._events.error]:t.on(e,r)}(t,"error",h),t.once("close",p),t.once("finish",y),t.emit("pipe",r),n.flowing||(o("pipe resume"),r.resume()),t},B.prototype.unpipe=function(t){var e=this._readableState,r={hasUnpiped:!1};if(0===e.pipesCount)return this;if(1===e.pipesCount)return t&&t!==e.pipes||(t||(t=e.pipes),e.pipes=null,e.pipesCount=0,e.flowing=!1,t&&t.emit("unpipe",this,r)),this;if(!t){var n=e.pipes,i=e.pipesCount;e.pipes=null,e.pipesCount=0,e.flowing=!1;for(var o=0;o<i;o++)n[o].emit("unpipe",this,{hasUnpiped:!1});return this}var a=q(e.pipes,t);return-1===a||(e.pipes.splice(a,1),e.pipesCount-=1,1===e.pipesCount&&(e.pipes=e.pipes[0]),t.emit("unpipe",this,r)),this},B.prototype.on=function(t,e){var r=u.prototype.on.call(this,t,e),n=this._readableState;return"data"===t?(n.readableListening=this.listenerCount("readable")>0,!1!==n.flowing&&this.resume()):"readable"===t&&(n.endEmitted||n.readableListening||(n.readableListening=n.needReadable=!0,n.flowing=!1,n.emittedReadable=!1,o("on readable",n.length,n.reading),n.length?T(this):n.reading||i.nextTick(D,this))),r},B.prototype.addListener=B.prototype.on,B.prototype.removeListener=function(t,e){var r=u.prototype.removeListener.call(this,t,e);return"readable"===t&&i.nextTick(C,this),r},B.prototype.removeAllListeners=function(t){var e=u.prototype.removeAllListeners.apply(this,arguments);return"readable"!==t&&void 0!==t||i.nextTick(C,this),e},B.prototype.resume=function(){var t=this._readableState;return t.flowing||(o("resume"),t.flowing=!t.readableListening,function(t,e){e.resumeScheduled||(e.resumeScheduled=!0,i.nextTick(U,t,e))}(this,t)),t.paused=!1,this},B.prototype.pause=function(){return o("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(o("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},B.prototype.wrap=function(t){var e=this,r=this._readableState,n=!1;for(var i in t.on("end",(function(){if(o("wrapped end"),r.decoder&&!r.ended){var t=r.decoder.end();t&&t.length&&e.push(t)}e.push(null)})),t.on("data",(function(i){o("wrapped data"),r.decoder&&(i=r.decoder.write(i)),r.objectMode&&null==i||(r.objectMode||i&&i.length)&&(e.push(i)||(n=!0,t.pause()))})),t)void 0===this[i]&&"function"==typeof t[i]&&(this[i]=function(e){return function(){return t[e].apply(t,arguments)}}(i));for(var a=0;a<S.length;a++)t.on(S[a],this.emit.bind(this,S[a]));return this._read=function(e){o("wrapped _read",e),n&&(n=!1,t.resume())},this},"function"==typeof Symbol&&(B.prototype[Symbol.asyncIterator]=function(){return void 0===h&&(h=r(5850)),h(this)}),Object.defineProperty(B.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(B.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(B.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(t){this._readableState&&(this._readableState.flowing=t)}}),B._fromList=M,Object.defineProperty(B.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}}),"function"==typeof Symbol&&(B.from=function(t,e){return void 0===p&&(p=r(5167)),p(B,t,e)})},4605:(t,e,r)=>{"use strict";t.exports=c;var n=r(4281).q,i=n.ERR_METHOD_NOT_IMPLEMENTED,o=n.ERR_MULTIPLE_CALLBACK,a=n.ERR_TRANSFORM_ALREADY_TRANSFORMING,u=n.ERR_TRANSFORM_WITH_LENGTH_0,s=r(6753);function f(t,e){var r=this._transformState;r.transforming=!1;var n=r.writecb;if(null===n)return this.emit("error",new o);r.writechunk=null,r.writecb=null,null!=e&&this.push(e),n(t);var i=this._readableState;i.reading=!1,(i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}function c(t){if(!(this instanceof c))return new c(t);s.call(this,t),this._transformState={afterTransform:f.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,t&&("function"==typeof t.transform&&(this._transform=t.transform),"function"==typeof t.flush&&(this._flush=t.flush)),this.on("prefinish",l)}function l(){var t=this;"function"!=typeof this._flush||this._readableState.destroyed?h(this,null,null):this._flush((function(e,r){h(t,e,r)}))}function h(t,e,r){if(e)return t.emit("error",e);if(null!=r&&t.push(r),t._writableState.length)throw new u;if(t._transformState.transforming)throw new a;return t.push(null)}r(5717)(c,s),c.prototype.push=function(t,e){return this._transformState.needTransform=!1,s.prototype.push.call(this,t,e)},c.prototype._transform=function(t,e,r){r(new i("_transform()"))},c.prototype._write=function(t,e,r){var n=this._transformState;if(n.writecb=r,n.writechunk=t,n.writeencoding=e,!n.transforming){var i=this._readableState;(n.needTransform||i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}},c.prototype._read=function(t){var e=this._transformState;null===e.writechunk||e.transforming?e.needTransform=!0:(e.transforming=!0,this._transform(e.writechunk,e.writeencoding,e.afterTransform))},c.prototype._destroy=function(t,e){s.prototype._destroy.call(this,t,(function(t){e(t)}))}},4229:(t,e,r)=>{"use strict";var n,i=r(4155);function o(t){var e=this;this.next=null,this.entry=null,this.finish=function(){!function(t,e,r){var n=t.entry;for(t.entry=null;n;){var i=n.callback;e.pendingcb--,i(undefined),n=n.next}e.corkedRequestsFree.next=t}(e,t)}}t.exports=B,B.WritableState=O;var a,u={deprecate:r(4927)},s=r(2503),f=r(8764).Buffer,c=r.g.Uint8Array||function(){},l=r(1195),h=r(2457).getHighWaterMark,p=r(4281).q,y=p.ERR_INVALID_ARG_TYPE,d=p.ERR_METHOD_NOT_IMPLEMENTED,g=p.ERR_MULTIPLE_CALLBACK,b=p.ERR_STREAM_CANNOT_PIPE,v=p.ERR_STREAM_DESTROYED,_=p.ERR_STREAM_NULL_VALUES,m=p.ERR_STREAM_WRITE_AFTER_END,w=p.ERR_UNKNOWN_ENCODING,E=l.errorOrDestroy;function S(){}function O(t,e,a){n=n||r(6753),t=t||{},"boolean"!=typeof a&&(a=e instanceof n),this.objectMode=!!t.objectMode,a&&(this.objectMode=this.objectMode||!!t.writableObjectMode),this.highWaterMark=h(this,t,"writableHighWaterMark",a),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var u=!1===t.decodeStrings;this.decodeStrings=!u,this.defaultEncoding=t.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(t){!function(t,e){var r=t._writableState,n=r.sync,o=r.writecb;if("function"!=typeof o)throw new g;if(function(t){t.writing=!1,t.writecb=null,t.length-=t.writelen,t.writelen=0}(r),e)!function(t,e,r,n,o){--e.pendingcb,r?(i.nextTick(o,n),i.nextTick(j,t,e),t._writableState.errorEmitted=!0,E(t,n)):(o(n),t._writableState.errorEmitted=!0,E(t,n),j(t,e))}(t,r,n,e,o);else{var a=R(r)||t.destroyed;a||r.corked||r.bufferProcessing||!r.bufferedRequest||I(t,r),n?i.nextTick(A,t,r,a,o):A(t,r,a,o)}}(e,t)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!1!==t.emitClose,this.autoDestroy=!!t.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new o(this)}function B(t){var e=this instanceof(n=n||r(6753));if(!e&&!a.call(B,this))return new B(t);this._writableState=new O(t,this,e),this.writable=!0,t&&("function"==typeof t.write&&(this._write=t.write),"function"==typeof t.writev&&(this._writev=t.writev),"function"==typeof t.destroy&&(this._destroy=t.destroy),"function"==typeof t.final&&(this._final=t.final)),s.call(this)}function x(t,e,r,n,i,o,a){e.writelen=n,e.writecb=a,e.writing=!0,e.sync=!0,e.destroyed?e.onwrite(new v("write")):r?t._writev(i,e.onwrite):t._write(i,o,e.onwrite),e.sync=!1}function A(t,e,r,n){r||function(t,e){0===e.length&&e.needDrain&&(e.needDrain=!1,t.emit("drain"))}(t,e),e.pendingcb--,n(),j(t,e)}function I(t,e){e.bufferProcessing=!0;var r=e.bufferedRequest;if(t._writev&&r&&r.next){var n=e.bufferedRequestCount,i=new Array(n),a=e.corkedRequestsFree;a.entry=r;for(var u=0,s=!0;r;)i[u]=r,r.isBuf||(s=!1),r=r.next,u+=1;i.allBuffers=s,x(t,e,!0,e.length,i,"",a.finish),e.pendingcb++,e.lastBufferedRequest=null,a.next?(e.corkedRequestsFree=a.next,a.next=null):e.corkedRequestsFree=new o(e),e.bufferedRequestCount=0}else{for(;r;){var f=r.chunk,c=r.encoding,l=r.callback;if(x(t,e,!1,e.objectMode?1:f.length,f,c,l),r=r.next,e.bufferedRequestCount--,e.writing)break}null===r&&(e.lastBufferedRequest=null)}e.bufferedRequest=r,e.bufferProcessing=!1}function R(t){return t.ending&&0===t.length&&null===t.bufferedRequest&&!t.finished&&!t.writing}function T(t,e){t._final((function(r){e.pendingcb--,r&&E(t,r),e.prefinished=!0,t.emit("prefinish"),j(t,e)}))}function j(t,e){var r=R(e);if(r&&(function(t,e){e.prefinished||e.finalCalled||("function"!=typeof t._final||e.destroyed?(e.prefinished=!0,t.emit("prefinish")):(e.pendingcb++,e.finalCalled=!0,i.nextTick(T,t,e)))}(t,e),0===e.pendingcb&&(e.finished=!0,t.emit("finish"),e.autoDestroy))){var n=t._readableState;(!n||n.autoDestroy&&n.endEmitted)&&t.destroy()}return r}r(5717)(B,s),O.prototype.getBuffer=function(){for(var t=this.bufferedRequest,e=[];t;)e.push(t),t=t.next;return e},function(){try{Object.defineProperty(O.prototype,"buffer",{get:u.deprecate((function(){return this.getBuffer()}),"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(t){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(a=Function.prototype[Symbol.hasInstance],Object.defineProperty(B,Symbol.hasInstance,{value:function(t){return!!a.call(this,t)||this===B&&t&&t._writableState instanceof O}})):a=function(t){return t instanceof this},B.prototype.pipe=function(){E(this,new b)},B.prototype.write=function(t,e,r){var n,o=this._writableState,a=!1,u=!o.objectMode&&(n=t,f.isBuffer(n)||n instanceof c);return u&&!f.isBuffer(t)&&(t=function(t){return f.from(t)}(t)),"function"==typeof e&&(r=e,e=null),u?e="buffer":e||(e=o.defaultEncoding),"function"!=typeof r&&(r=S),o.ending?function(t,e){var r=new m;E(t,r),i.nextTick(e,r)}(this,r):(u||function(t,e,r,n){var o;return null===r?o=new _:"string"==typeof r||e.objectMode||(o=new y("chunk",["string","Buffer"],r)),!o||(E(t,o),i.nextTick(n,o),!1)}(this,o,t,r))&&(o.pendingcb++,a=function(t,e,r,n,i,o){if(!r){var a=function(t,e,r){return t.objectMode||!1===t.decodeStrings||"string"!=typeof e||(e=f.from(e,r)),e}(e,n,i);n!==a&&(r=!0,i="buffer",n=a)}var u=e.objectMode?1:n.length;e.length+=u;var s=e.length<e.highWaterMark;if(s||(e.needDrain=!0),e.writing||e.corked){var c=e.lastBufferedRequest;e.lastBufferedRequest={chunk:n,encoding:i,isBuf:r,callback:o,next:null},c?c.next=e.lastBufferedRequest:e.bufferedRequest=e.lastBufferedRequest,e.bufferedRequestCount+=1}else x(t,e,!1,u,n,i,o);return s}(this,o,u,t,e,r)),a},B.prototype.cork=function(){this._writableState.corked++},B.prototype.uncork=function(){var t=this._writableState;t.corked&&(t.corked--,t.writing||t.corked||t.bufferProcessing||!t.bufferedRequest||I(this,t))},B.prototype.setDefaultEncoding=function(t){if("string"==typeof t&&(t=t.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((t+"").toLowerCase())>-1))throw new w(t);return this._writableState.defaultEncoding=t,this},Object.defineProperty(B.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(B.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),B.prototype._write=function(t,e,r){r(new d("_write()"))},B.prototype._writev=null,B.prototype.end=function(t,e,r){var n=this._writableState;return"function"==typeof t?(r=t,t=null,e=null):"function"==typeof e&&(r=e,e=null),null!=t&&this.write(t,e),n.corked&&(n.corked=1,this.uncork()),n.ending||function(t,e,r){e.ending=!0,j(t,e),r&&(e.finished?i.nextTick(r):t.once("finish",r)),e.ended=!0,t.writable=!1}(this,n,r),this},Object.defineProperty(B.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(B.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(t){this._writableState&&(this._writableState.destroyed=t)}}),B.prototype.destroy=l.destroy,B.prototype._undestroy=l.undestroy,B.prototype._destroy=function(t,e){e(t)}},5850:(t,e,r)=>{"use strict";var n,i=r(4155);function o(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var a=r(8610),u=Symbol("lastResolve"),s=Symbol("lastReject"),f=Symbol("error"),c=Symbol("ended"),l=Symbol("lastPromise"),h=Symbol("handlePromise"),p=Symbol("stream");function y(t,e){return{value:t,done:e}}function d(t){var e=t[u];if(null!==e){var r=t[p].read();null!==r&&(t[l]=null,t[u]=null,t[s]=null,e(y(r,!1)))}}function g(t){i.nextTick(d,t)}var b=Object.getPrototypeOf((function(){})),v=Object.setPrototypeOf((o(n={get stream(){return this[p]},next:function(){var t=this,e=this[f];if(null!==e)return Promise.reject(e);if(this[c])return Promise.resolve(y(void 0,!0));if(this[p].destroyed)return new Promise((function(e,r){i.nextTick((function(){t[f]?r(t[f]):e(y(void 0,!0))}))}));var r,n=this[l];if(n)r=new Promise(function(t,e){return function(r,n){t.then((function(){e[c]?r(y(void 0,!0)):e[h](r,n)}),n)}}(n,this));else{var o=this[p].read();if(null!==o)return Promise.resolve(y(o,!1));r=new Promise(this[h])}return this[l]=r,r}},Symbol.asyncIterator,(function(){return this})),o(n,"return",(function(){var t=this;return new Promise((function(e,r){t[p].destroy(null,(function(t){t?r(t):e(y(void 0,!0))}))}))})),n),b);t.exports=function(t){var e,r=Object.create(v,(o(e={},p,{value:t,writable:!0}),o(e,u,{value:null,writable:!0}),o(e,s,{value:null,writable:!0}),o(e,f,{value:null,writable:!0}),o(e,c,{value:t._readableState.endEmitted,writable:!0}),o(e,h,{value:function(t,e){var n=r[p].read();n?(r[l]=null,r[u]=null,r[s]=null,t(y(n,!1))):(r[u]=t,r[s]=e)},writable:!0}),e));return r[l]=null,a(t,(function(t){if(t&&"ERR_STREAM_PREMATURE_CLOSE"!==t.code){var e=r[s];return null!==e&&(r[l]=null,r[u]=null,r[s]=null,e(t)),void(r[f]=t)}var n=r[u];null!==n&&(r[l]=null,r[u]=null,r[s]=null,n(y(void 0,!0))),r[c]=!0})),t.on("readable",g.bind(null,r)),r}},7327:(t,e,r)=>{"use strict";function n(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function i(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function o(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}var a=r(8764).Buffer,u=r(2361).inspect,s=u&&u.custom||"inspect";t.exports=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.head=null,this.tail=null,this.length=0}var e,r;return e=t,r=[{key:"push",value:function(t){var e={data:t,next:null};this.length>0?this.tail.next=e:this.head=e,this.tail=e,++this.length}},{key:"unshift",value:function(t){var e={data:t,next:this.head};0===this.length&&(this.tail=e),this.head=e,++this.length}},{key:"shift",value:function(){if(0!==this.length){var t=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,t}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(t){if(0===this.length)return"";for(var e=this.head,r=""+e.data;e=e.next;)r+=t+e.data;return r}},{key:"concat",value:function(t){if(0===this.length)return a.alloc(0);for(var e,r,n,i=a.allocUnsafe(t>>>0),o=this.head,u=0;o;)e=o.data,r=i,n=u,a.prototype.copy.call(e,r,n),u+=o.data.length,o=o.next;return i}},{key:"consume",value:function(t,e){var r;return t<this.head.data.length?(r=this.head.data.slice(0,t),this.head.data=this.head.data.slice(t)):r=t===this.head.data.length?this.shift():e?this._getString(t):this._getBuffer(t),r}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(t){var e=this.head,r=1,n=e.data;for(t-=n.length;e=e.next;){var i=e.data,o=t>i.length?i.length:t;if(o===i.length?n+=i:n+=i.slice(0,t),0==(t-=o)){o===i.length?(++r,e.next?this.head=e.next:this.head=this.tail=null):(this.head=e,e.data=i.slice(o));break}++r}return this.length-=r,n}},{key:"_getBuffer",value:function(t){var e=a.allocUnsafe(t),r=this.head,n=1;for(r.data.copy(e),t-=r.data.length;r=r.next;){var i=r.data,o=t>i.length?i.length:t;if(i.copy(e,e.length-t,0,o),0==(t-=o)){o===i.length?(++n,r.next?this.head=r.next:this.head=this.tail=null):(this.head=r,r.data=i.slice(o));break}++n}return this.length-=n,e}},{key:s,value:function(t,e){return u(this,function(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?n(Object(r),!0).forEach((function(e){i(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):n(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}({},e,{depth:0,customInspect:!1}))}}],r&&o(e.prototype,r),t}()},1195:(t,e,r)=>{"use strict";var n=r(4155);function i(t,e){a(t,e),o(t)}function o(t){t._writableState&&!t._writableState.emitClose||t._readableState&&!t._readableState.emitClose||t.emit("close")}function a(t,e){t.emit("error",e)}t.exports={destroy:function(t,e){var r=this,u=this._readableState&&this._readableState.destroyed,s=this._writableState&&this._writableState.destroyed;return u||s?(e?e(t):t&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,n.nextTick(a,this,t)):n.nextTick(a,this,t)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(t||null,(function(t){!e&&t?r._writableState?r._writableState.errorEmitted?n.nextTick(o,r):(r._writableState.errorEmitted=!0,n.nextTick(i,r,t)):n.nextTick(i,r,t):e?(n.nextTick(o,r),e(t)):n.nextTick(o,r)})),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(t,e){var r=t._readableState,n=t._writableState;r&&r.autoDestroy||n&&n.autoDestroy?t.destroy(e):t.emit("error",e)}}},8610:(t,e,r)=>{"use strict";var n=r(4281).q.ERR_STREAM_PREMATURE_CLOSE;function i(){}t.exports=function t(e,r,o){if("function"==typeof r)return t(e,null,r);r||(r={}),o=function(t){var e=!1;return function(){if(!e){e=!0;for(var r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];t.apply(this,n)}}}(o||i);var a=r.readable||!1!==r.readable&&e.readable,u=r.writable||!1!==r.writable&&e.writable,s=function(){e.writable||c()},f=e._writableState&&e._writableState.finished,c=function(){u=!1,f=!0,a||o.call(e)},l=e._readableState&&e._readableState.endEmitted,h=function(){a=!1,l=!0,u||o.call(e)},p=function(t){o.call(e,t)},y=function(){var t;return a&&!l?(e._readableState&&e._readableState.ended||(t=new n),o.call(e,t)):u&&!f?(e._writableState&&e._writableState.ended||(t=new n),o.call(e,t)):void 0},d=function(){e.req.on("finish",c)};return function(t){return t.setHeader&&"function"==typeof t.abort}(e)?(e.on("complete",c),e.on("abort",y),e.req?d():e.on("request",d)):u&&!e._writableState&&(e.on("end",s),e.on("close",s)),e.on("end",h),e.on("finish",c),!1!==r.error&&e.on("error",p),e.on("close",y),function(){e.removeListener("complete",c),e.removeListener("abort",y),e.removeListener("request",d),e.req&&e.req.removeListener("finish",c),e.removeListener("end",s),e.removeListener("close",s),e.removeListener("finish",c),e.removeListener("end",h),e.removeListener("error",p),e.removeListener("close",y)}}},5167:t=>{t.exports=function(){throw new Error("Readable.from is not available in the browser")}},9946:(t,e,r)=>{"use strict";var n,i=r(4281).q,o=i.ERR_MISSING_ARGS,a=i.ERR_STREAM_DESTROYED;function u(t){if(t)throw t}function s(t,e,i,o){o=function(t){var e=!1;return function(){e||(e=!0,t.apply(void 0,arguments))}}(o);var u=!1;t.on("close",(function(){u=!0})),void 0===n&&(n=r(8610)),n(t,{readable:e,writable:i},(function(t){if(t)return o(t);u=!0,o()}));var s=!1;return function(e){if(!u&&!s)return s=!0,function(t){return t.setHeader&&"function"==typeof t.abort}(t)?t.abort():"function"==typeof t.destroy?t.destroy():void o(e||new a("pipe"))}}function f(t){t()}function c(t,e){return t.pipe(e)}function l(t){return t.length?"function"!=typeof t[t.length-1]?u:t.pop():u}t.exports=function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];var n,i=l(e);if(Array.isArray(e[0])&&(e=e[0]),e.length<2)throw new o("streams");var a=e.map((function(t,r){var o=r<e.length-1;return s(t,o,r>0,(function(t){n||(n=t),t&&a.forEach(f),o||(a.forEach(f),i(n))}))}));return e.reduce(c)}},2457:(t,e,r)=>{"use strict";var n=r(4281).q.ERR_INVALID_OPT_VALUE;t.exports={getHighWaterMark:function(t,e,r,i){var o=function(t,e,r){return null!=t.highWaterMark?t.highWaterMark:e?t[r]:null}(e,i,r);if(null!=o){if(!isFinite(o)||Math.floor(o)!==o||o<0)throw new n(i?r:"highWaterMark",o);return Math.floor(o)}return t.objectMode?16:16384}}},2503:(t,e,r)=>{t.exports=r(7187).EventEmitter},8473:(t,e,r)=>{(e=t.exports=r(9481)).Stream=e,e.Readable=e,e.Writable=r(4229),e.Duplex=r(6753),e.Transform=r(4605),e.PassThrough=r(2725),e.finished=r(8610),e.pipeline=r(9946)},9785:(t,e,r)=>{"use strict";var n=r(8764).Buffer,i=r(5717),o=r(3349),a=new Array(16),u=[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],s=[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],f=[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],c=[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],l=[0,1518500249,1859775393,2400959708,2840853838],h=[1352829926,1548603684,1836072691,2053994217,0];function p(){o.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520}function y(t,e){return t<<e|t>>>32-e}function d(t,e,r,n,i,o,a,u){return y(t+(e^r^n)+o+a|0,u)+i|0}function g(t,e,r,n,i,o,a,u){return y(t+(e&r|~e&n)+o+a|0,u)+i|0}function b(t,e,r,n,i,o,a,u){return y(t+((e|~r)^n)+o+a|0,u)+i|0}function v(t,e,r,n,i,o,a,u){return y(t+(e&n|r&~n)+o+a|0,u)+i|0}function _(t,e,r,n,i,o,a,u){return y(t+(e^(r|~n))+o+a|0,u)+i|0}i(p,o),p.prototype._update=function(){for(var t=a,e=0;e<16;++e)t[e]=this._block.readInt32LE(4*e);for(var r=0|this._a,n=0|this._b,i=0|this._c,o=0|this._d,p=0|this._e,m=0|this._a,w=0|this._b,E=0|this._c,S=0|this._d,O=0|this._e,B=0;B<80;B+=1){var x,A;B<16?(x=d(r,n,i,o,p,t[u[B]],l[0],f[B]),A=_(m,w,E,S,O,t[s[B]],h[0],c[B])):B<32?(x=g(r,n,i,o,p,t[u[B]],l[1],f[B]),A=v(m,w,E,S,O,t[s[B]],h[1],c[B])):B<48?(x=b(r,n,i,o,p,t[u[B]],l[2],f[B]),A=b(m,w,E,S,O,t[s[B]],h[2],c[B])):B<64?(x=v(r,n,i,o,p,t[u[B]],l[3],f[B]),A=g(m,w,E,S,O,t[s[B]],h[3],c[B])):(x=_(r,n,i,o,p,t[u[B]],l[4],f[B]),A=d(m,w,E,S,O,t[s[B]],h[4],c[B])),r=p,p=o,o=y(i,10),i=n,n=x,m=O,O=S,S=y(E,10),E=w,w=A}var I=this._b+i+S|0;this._b=this._c+o+O|0,this._c=this._d+p+m|0,this._d=this._e+r+w|0,this._e=this._a+n+E|0,this._a=I},p.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 t=n.alloc?n.alloc(20):new n(20);return t.writeInt32LE(this._a,0),t.writeInt32LE(this._b,4),t.writeInt32LE(this._c,8),t.writeInt32LE(this._d,12),t.writeInt32LE(this._e,16),t},t.exports=p},9509:(t,e,r)=>{var n=r(8764),i=n.Buffer;function o(t,e){for(var r in t)e[r]=t[r]}function a(t,e,r){return i(t,e,r)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?t.exports=n:(o(n,e),e.Buffer=a),a.prototype=Object.create(i.prototype),o(i,a),a.from=function(t,e,r){if("number"==typeof t)throw new TypeError("Argument must not be a number");return i(t,e,r)},a.alloc=function(t,e,r){if("number"!=typeof t)throw new TypeError("Argument must be a number");var n=i(t);return void 0!==e?"string"==typeof r?n.fill(e,r):n.fill(e):n.fill(0),n},a.allocUnsafe=function(t){if("number"!=typeof t)throw new TypeError("Argument must be a number");return i(t)},a.allocUnsafeSlow=function(t){if("number"!=typeof t)throw new TypeError("Argument must be a number");return n.SlowBuffer(t)}},4189:(t,e,r)=>{var n=r(9509).Buffer;function i(t,e){this._block=n.alloc(t),this._finalSize=e,this._blockSize=t,this._len=0}i.prototype.update=function(t,e){"string"==typeof t&&(e=e||"utf8",t=n.from(t,e));for(var r=this._block,i=this._blockSize,o=t.length,a=this._len,u=0;u<o;){for(var s=a%i,f=Math.min(o-u,i-s),c=0;c<f;c++)r[s+c]=t[u+c];u+=f,(a+=f)%i==0&&this._update(r)}return this._len+=o,this},i.prototype.digest=function(t){var e=this._len%this._blockSize;this._block[e]=128,this._block.fill(0,e+1),e>=this._finalSize&&(this._update(this._block),this._block.fill(0));var r=8*this._len;if(r<=4294967295)this._block.writeUInt32BE(r,this._blockSize-4);else{var n=(4294967295&r)>>>0,i=(r-n)/4294967296;this._block.writeUInt32BE(i,this._blockSize-8),this._block.writeUInt32BE(n,this._blockSize-4)}this._update(this._block);var o=this._hash();return t?o.toString(t):o},i.prototype._update=function(){throw new Error("_update must be implemented by subclass")},t.exports=i},9072:(t,e,r)=>{var n=t.exports=function(t){t=t.toLowerCase();var e=n[t];if(!e)throw new Error(t+" is not supported (we accept pull requests)");return new e};n.sha=r(4448),n.sha1=r(8336),n.sha224=r(8432),n.sha256=r(7499),n.sha384=r(1686),n.sha512=r(7816)},4448:(t,e,r)=>{var n=r(5717),i=r(4189),o=r(9509).Buffer,a=[1518500249,1859775393,-1894007588,-899497514],u=new Array(80);function s(){this.init(),this._w=u,i.call(this,64,56)}function f(t){return t<<30|t>>>2}function c(t,e,r,n){return 0===t?e&r|~e&n:2===t?e&r|e&n|r&n:e^r^n}n(s,i),s.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},s.prototype._update=function(t){for(var e,r=this._w,n=0|this._a,i=0|this._b,o=0|this._c,u=0|this._d,s=0|this._e,l=0;l<16;++l)r[l]=t.readInt32BE(4*l);for(;l<80;++l)r[l]=r[l-3]^r[l-8]^r[l-14]^r[l-16];for(var h=0;h<80;++h){var p=~~(h/20),y=0|((e=n)<<5|e>>>27)+c(p,i,o,u)+s+r[h]+a[p];s=u,u=o,o=f(i),i=n,n=y}this._a=n+this._a|0,this._b=i+this._b|0,this._c=o+this._c|0,this._d=u+this._d|0,this._e=s+this._e|0},s.prototype._hash=function(){var t=o.allocUnsafe(20);return t.writeInt32BE(0|this._a,0),t.writeInt32BE(0|this._b,4),t.writeInt32BE(0|this._c,8),t.writeInt32BE(0|this._d,12),t.writeInt32BE(0|this._e,16),t},t.exports=s},8336:(t,e,r)=>{var n=r(5717),i=r(4189),o=r(9509).Buffer,a=[1518500249,1859775393,-1894007588,-899497514],u=new Array(80);function s(){this.init(),this._w=u,i.call(this,64,56)}function f(t){return t<<5|t>>>27}function c(t){return t<<30|t>>>2}function l(t,e,r,n){return 0===t?e&r|~e&n:2===t?e&r|e&n|r&n:e^r^n}n(s,i),s.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},s.prototype._update=function(t){for(var e,r=this._w,n=0|this._a,i=0|this._b,o=0|this._c,u=0|this._d,s=0|this._e,h=0;h<16;++h)r[h]=t.readInt32BE(4*h);for(;h<80;++h)r[h]=(e=r[h-3]^r[h-8]^r[h-14]^r[h-16])<<1|e>>>31;for(var p=0;p<80;++p){var y=~~(p/20),d=f(n)+l(y,i,o,u)+s+r[p]+a[y]|0;s=u,u=o,o=c(i),i=n,n=d}this._a=n+this._a|0,this._b=i+this._b|0,this._c=o+this._c|0,this._d=u+this._d|0,this._e=s+this._e|0},s.prototype._hash=function(){var t=o.allocUnsafe(20);return t.writeInt32BE(0|this._a,0),t.writeInt32BE(0|this._b,4),t.writeInt32BE(0|this._c,8),t.writeInt32BE(0|this._d,12),t.writeInt32BE(0|this._e,16),t},t.exports=s},8432:(t,e,r)=>{var n=r(5717),i=r(7499),o=r(4189),a=r(9509).Buffer,u=new Array(64);function s(){this.init(),this._w=u,o.call(this,64,56)}n(s,i),s.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},s.prototype._hash=function(){var t=a.allocUnsafe(28);return t.writeInt32BE(this._a,0),t.writeInt32BE(this._b,4),t.writeInt32BE(this._c,8),t.writeInt32BE(this._d,12),t.writeInt32BE(this._e,16),t.writeInt32BE(this._f,20),t.writeInt32BE(this._g,24),t},t.exports=s},7499:(t,e,r)=>{var n=r(5717),i=r(4189),o=r(9509).Buffer,a=[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],u=new Array(64);function s(){this.init(),this._w=u,i.call(this,64,56)}function f(t,e,r){return r^t&(e^r)}function c(t,e,r){return t&e|r&(t|e)}function l(t){return(t>>>2|t<<30)^(t>>>13|t<<19)^(t>>>22|t<<10)}function h(t){return(t>>>6|t<<26)^(t>>>11|t<<21)^(t>>>25|t<<7)}function p(t){return(t>>>7|t<<25)^(t>>>18|t<<14)^t>>>3}n(s,i),s.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},s.prototype._update=function(t){for(var e,r=this._w,n=0|this._a,i=0|this._b,o=0|this._c,u=0|this._d,s=0|this._e,y=0|this._f,d=0|this._g,g=0|this._h,b=0;b<16;++b)r[b]=t.readInt32BE(4*b);for(;b<64;++b)r[b]=0|(((e=r[b-2])>>>17|e<<15)^(e>>>19|e<<13)^e>>>10)+r[b-7]+p(r[b-15])+r[b-16];for(var v=0;v<64;++v){var _=g+h(s)+f(s,y,d)+a[v]+r[v]|0,m=l(n)+c(n,i,o)|0;g=d,d=y,y=s,s=u+_|0,u=o,o=i,i=n,n=_+m|0}this._a=n+this._a|0,this._b=i+this._b|0,this._c=o+this._c|0,this._d=u+this._d|0,this._e=s+this._e|0,this._f=y+this._f|0,this._g=d+this._g|0,this._h=g+this._h|0},s.prototype._hash=function(){var t=o.allocUnsafe(32);return t.writeInt32BE(this._a,0),t.writeInt32BE(this._b,4),t.writeInt32BE(this._c,8),t.writeInt32BE(this._d,12),t.writeInt32BE(this._e,16),t.writeInt32BE(this._f,20),t.writeInt32BE(this._g,24),t.writeInt32BE(this._h,28),t},t.exports=s},1686:(t,e,r)=>{var n=r(5717),i=r(7816),o=r(4189),a=r(9509).Buffer,u=new Array(160);function s(){this.init(),this._w=u,o.call(this,128,112)}n(s,i),s.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},s.prototype._hash=function(){var t=a.allocUnsafe(48);function e(e,r,n){t.writeInt32BE(e,n),t.writeInt32BE(r,n+4)}return e(this._ah,this._al,0),e(this._bh,this._bl,8),e(this._ch,this._cl,16),e(this._dh,this._dl,24),e(this._eh,this._el,32),e(this._fh,this._fl,40),t},t.exports=s},7816:(t,e,r)=>{var n=r(5717),i=r(4189),o=r(9509).Buffer,a=[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],u=new Array(160);function s(){this.init(),this._w=u,i.call(this,128,112)}function f(t,e,r){return r^t&(e^r)}function c(t,e,r){return t&e|r&(t|e)}function l(t,e){return(t>>>28|e<<4)^(e>>>2|t<<30)^(e>>>7|t<<25)}function h(t,e){return(t>>>14|e<<18)^(t>>>18|e<<14)^(e>>>9|t<<23)}function p(t,e){return(t>>>1|e<<31)^(t>>>8|e<<24)^t>>>7}function y(t,e){return(t>>>1|e<<31)^(t>>>8|e<<24)^(t>>>7|e<<25)}function d(t,e){return(t>>>19|e<<13)^(e>>>29|t<<3)^t>>>6}function g(t,e){return(t>>>19|e<<13)^(e>>>29|t<<3)^(t>>>6|e<<26)}function b(t,e){return t>>>0<e>>>0?1:0}n(s,i),s.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},s.prototype._update=function(t){for(var e=this._w,r=0|this._ah,n=0|this._bh,i=0|this._ch,o=0|this._dh,u=0|this._eh,s=0|this._fh,v=0|this._gh,_=0|this._hh,m=0|this._al,w=0|this._bl,E=0|this._cl,S=0|this._dl,O=0|this._el,B=0|this._fl,x=0|this._gl,A=0|this._hl,I=0;I<32;I+=2)e[I]=t.readInt32BE(4*I),e[I+1]=t.readInt32BE(4*I+4);for(;I<160;I+=2){var R=e[I-30],T=e[I-30+1],j=p(R,T),P=y(T,R),k=d(R=e[I-4],T=e[I-4+1]),C=g(T,R),D=e[I-14],U=e[I-14+1],L=e[I-32],M=e[I-32+1],N=P+U|0,F=j+D+b(N,P)|0;F=(F=F+k+b(N=N+C|0,C)|0)+L+b(N=N+M|0,M)|0,e[I]=F,e[I+1]=N}for(var q=0;q<160;q+=2){F=e[q],N=e[q+1];var W=c(r,n,i),z=c(m,w,E),$=l(r,m),G=l(m,r),K=h(u,O),H=h(O,u),Y=a[q],V=a[q+1],J=f(u,s,v),X=f(O,B,x),Z=A+H|0,Q=_+K+b(Z,A)|0;Q=(Q=(Q=Q+J+b(Z=Z+X|0,X)|0)+Y+b(Z=Z+V|0,V)|0)+F+b(Z=Z+N|0,N)|0;var tt=G+z|0,et=$+W+b(tt,G)|0;_=v,A=x,v=s,x=B,s=u,B=O,u=o+Q+b(O=S+Z|0,S)|0,o=i,S=E,i=n,E=w,n=r,w=m,r=Q+et+b(m=Z+tt|0,Z)|0}this._al=this._al+m|0,this._bl=this._bl+w|0,this._cl=this._cl+E|0,this._dl=this._dl+S|0,this._el=this._el+O|0,this._fl=this._fl+B|0,this._gl=this._gl+x|0,this._hl=this._hl+A|0,this._ah=this._ah+r+b(this._al,m)|0,this._bh=this._bh+n+b(this._bl,w)|0,this._ch=this._ch+i+b(this._cl,E)|0,this._dh=this._dh+o+b(this._dl,S)|0,this._eh=this._eh+u+b(this._el,O)|0,this._fh=this._fh+s+b(this._fl,B)|0,this._gh=this._gh+v+b(this._gl,x)|0,this._hh=this._hh+_+b(this._hl,A)|0},s.prototype._hash=function(){var t=o.allocUnsafe(64);function e(e,r,n){t.writeInt32BE(e,n),t.writeInt32BE(r,n+4)}return e(this._ah,this._al,0),e(this._bh,this._bl,8),e(this._ch,this._cl,16),e(this._dh,this._dl,24),e(this._eh,this._el,32),e(this._fh,this._fl,40),e(this._gh,this._gl,48),e(this._hh,this._hl,56),t},t.exports=s},2830:(t,e,r)=>{t.exports=i;var n=r(7187).EventEmitter;function i(){n.call(this)}r(5717)(i,n),i.Readable=r(9481),i.Writable=r(4229),i.Duplex=r(6753),i.Transform=r(4605),i.PassThrough=r(2725),i.finished=r(8610),i.pipeline=r(9946),i.Stream=i,i.prototype.pipe=function(t,e){var r=this;function i(e){t.writable&&!1===t.write(e)&&r.pause&&r.pause()}function o(){r.readable&&r.resume&&r.resume()}r.on("data",i),t.on("drain",o),t._isStdio||e&&!1===e.end||(r.on("end",u),r.on("close",s));var a=!1;function u(){a||(a=!0,t.end())}function s(){a||(a=!0,"function"==typeof t.destroy&&t.destroy())}function f(t){if(c(),0===n.listenerCount(this,"error"))throw t}function c(){r.removeListener("data",i),t.removeListener("drain",o),r.removeListener("end",u),r.removeListener("close",s),r.removeListener("error",f),t.removeListener("error",f),r.removeListener("end",c),r.removeListener("close",c),t.removeListener("close",c)}return r.on("error",f),t.on("error",f),r.on("end",c),r.on("close",c),t.on("close",c),t.emit("pipe",r),t}},2553:(t,e,r)=>{"use strict";var n=r(9509).Buffer,i=n.isEncoding||function(t){switch((t=""+t)&&t.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 o(t){var e;switch(this.encoding=function(t){var e=function(t){if(!t)return"utf8";for(var e;;)switch(t){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return t;default:if(e)return;t=(""+t).toLowerCase(),e=!0}}(t);if("string"!=typeof e&&(n.isEncoding===i||!i(t)))throw new Error("Unknown encoding: "+t);return e||t}(t),this.encoding){case"utf16le":this.text=s,this.end=f,e=4;break;case"utf8":this.fillLast=u,e=4;break;case"base64":this.text=c,this.end=l,e=3;break;default:return this.write=h,void(this.end=p)}this.lastNeed=0,this.lastTotal=0,this.lastChar=n.allocUnsafe(e)}function a(t){return t<=127?0:t>>5==6?2:t>>4==14?3:t>>3==30?4:t>>6==2?-1:-2}function u(t){var e=this.lastTotal-this.lastNeed,r=function(t,e,r){if(128!=(192&e[0]))return t.lastNeed=0,"<22>";if(t.lastNeed>1&&e.length>1){if(128!=(192&e[1]))return t.lastNeed=1,"<22>";if(t.lastNeed>2&&e.length>2&&128!=(192&e[2]))return t.lastNeed=2,"<22>"}}(this,t);return void 0!==r?r:this.lastNeed<=t.length?(t.copy(this.lastChar,e,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(t.copy(this.lastChar,e,0,t.length),void(this.lastNeed-=t.length))}function s(t,e){if((t.length-e)%2==0){var r=t.toString("utf16le",e);if(r){var n=r.charCodeAt(r.length-1);if(n>=55296&&n<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1],r.slice(0,-1)}return r}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=t[t.length-1],t.toString("utf16le",e,t.length-1)}function f(t){var e=t&&t.length?this.write(t):"";if(this.lastNeed){var r=this.lastTotal-this.lastNeed;return e+this.lastChar.toString("utf16le",0,r)}return e}function c(t,e){var r=(t.length-e)%3;return 0===r?t.toString("base64",e):(this.lastNeed=3-r,this.lastTotal=3,1===r?this.lastChar[0]=t[t.length-1]:(this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1]),t.toString("base64",e,t.length-r))}function l(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+this.lastChar.toString("base64",0,3-this.lastNeed):e}function h(t){return t.toString(this.encoding)}function p(t){return t&&t.length?this.write(t):""}e.s=o,o.prototype.write=function(t){if(0===t.length)return"";var e,r;if(this.lastNeed){if(void 0===(e=this.fillLast(t)))return"";r=this.lastNeed,this.lastNeed=0}else r=0;return r<t.length?e?e+this.text(t,r):this.text(t,r):e||""},o.prototype.end=function(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+"<22>":e},o.prototype.text=function(t,e){var r=function(t,e,r){var n=e.length-1;if(n<r)return 0;var i=a(e[n]);return i>=0?(i>0&&(t.lastNeed=i-1),i):--n<r||-2===i?0:(i=a(e[n]))>=0?(i>0&&(t.lastNeed=i-2),i):--n<r||-2===i?0:(i=a(e[n]))>=0?(i>0&&(2===i?i=0:t.lastNeed=i-3),i):0}(this,t,e);if(!this.lastNeed)return t.toString("utf8",e);this.lastTotal=r;var n=t.length-(r-this.lastNeed);return t.copy(this.lastChar,0,n),t.toString("utf8",e,n)},o.prototype.fillLast=function(t){if(this.lastNeed<=t.length)return t.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);t.copy(this.lastChar,this.lastTotal-this.lastNeed,0,t.length),this.lastNeed-=t.length}},4927:(t,e,r)=>{function n(t){try{if(!r.g.localStorage)return!1}catch(t){return!1}var e=r.g.localStorage[t];return null!=e&&"true"===String(e).toLowerCase()}t.exports=function(t,e){if(n("noDeprecation"))return t;var r=!1;return function(){if(!r){if(n("throwDeprecation"))throw new Error(e);n("traceDeprecation")?console.trace(e):console.warn(e),r=!0}return t.apply(this,arguments)}}},384:t=>{t.exports=function(t){return t&&"object"==typeof t&&"function"==typeof t.copy&&"function"==typeof t.fill&&"function"==typeof t.readUInt8}},5955:(t,e,r)=>{"use strict";var n=r(2584),i=r(8662),o=r(6430),a=r(5692);function u(t){return t.call.bind(t)}var s="undefined"!=typeof BigInt,f="undefined"!=typeof Symbol,c=u(Object.prototype.toString),l=u(Number.prototype.valueOf),h=u(String.prototype.valueOf),p=u(Boolean.prototype.valueOf);if(s)var y=u(BigInt.prototype.valueOf);if(f)var d=u(Symbol.prototype.valueOf);function g(t,e){if("object"!=typeof t)return!1;try{return e(t),!0}catch(t){return!1}}function b(t){return"[object Map]"===c(t)}function v(t){return"[object Set]"===c(t)}function _(t){return"[object WeakMap]"===c(t)}function m(t){return"[object WeakSet]"===c(t)}function w(t){return"[object ArrayBuffer]"===c(t)}function E(t){return"undefined"!=typeof ArrayBuffer&&(w.working?w(t):t instanceof ArrayBuffer)}function S(t){return"[object DataView]"===c(t)}function O(t){return"undefined"!=typeof DataView&&(S.working?S(t):t instanceof DataView)}function B(t){return"[object SharedArrayBuffer]"===c(t)}function x(t){return"undefined"!=typeof SharedArrayBuffer&&(B.working?B(t):t instanceof SharedArrayBuffer)}function A(t){return g(t,l)}function I(t){return g(t,h)}function R(t){return g(t,p)}function T(t){return s&&g(t,y)}function j(t){return f&&g(t,d)}e.isArgumentsObject=n,e.isGeneratorFunction=i,e.isTypedArray=a,e.isPromise=function(t){return"undefined"!=typeof Promise&&t instanceof Promise||null!==t&&"object"==typeof t&&"function"==typeof t.then&&"function"==typeof t.catch},e.isArrayBufferView=function(t){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(t):a(t)||O(t)},e.isUint8Array=function(t){return"Uint8Array"===o(t)},e.isUint8ClampedArray=function(t){return"Uint8ClampedArray"===o(t)},e.isUint16Array=function(t){return"Uint16Array"===o(t)},e.isUint32Array=function(t){return"Uint32Array"===o(t)},e.isInt8Array=function(t){return"Int8Array"===o(t)},e.isInt16Array=function(t){return"Int16Array"===o(t)},e.isInt32Array=function(t){return"Int32Array"===o(t)},e.isFloat32Array=function(t){return"Float32Array"===o(t)},e.isFloat64Array=function(t){return"Float64Array"===o(t)},e.isBigInt64Array=function(t){return"BigInt64Array"===o(t)},e.isBigUint64Array=function(t){return"BigUint64Array"===o(t)},b.working="undefined"!=typeof Map&&b(new Map),e.isMap=function(t){return"undefined"!=typeof Map&&(b.working?b(t):t instanceof Map)},v.working="undefined"!=typeof Set&&v(new Set),e.isSet=function(t){return"undefined"!=typeof Set&&(v.working?v(t):t instanceof Set)},_.working="undefined"!=typeof WeakMap&&_(new WeakMap),e.isWeakMap=function(t){return"undefined"!=typeof WeakMap&&(_.working?_(t):t instanceof WeakMap)},m.working="undefined"!=typeof WeakSet&&m(new WeakSet),e.isWeakSet=function(t){return m(t)},w.working="undefined"!=typeof ArrayBuffer&&w(new ArrayBuffer),e.isArrayBuffer=E,S.working="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView&&S(new DataView(new ArrayBuffer(1),0,1)),e.isDataView=O,B.working="undefined"!=typeof SharedArrayBuffer&&B(new SharedArrayBuffer),e.isSharedArrayBuffer=x,e.isAsyncFunction=function(t){return"[object AsyncFunction]"===c(t)},e.isMapIterator=function(t){return"[object Map Iterator]"===c(t)},e.isSetIterator=function(t){return"[object Set Iterator]"===c(t)},e.isGeneratorObject=function(t){return"[object Generator]"===c(t)},e.isWebAssemblyCompiledModule=function(t){return"[object WebAssembly.Module]"===c(t)},e.isNumberObject=A,e.isStringObject=I,e.isBooleanObject=R,e.isBigIntObject=T,e.isSymbolObject=j,e.isBoxedPrimitive=function(t){return A(t)||I(t)||R(t)||T(t)||j(t)},e.isAnyArrayBuffer=function(t){return"undefined"!=typeof Uint8Array&&(E(t)||x(t))},["isProxy","isExternal","isModuleNamespaceObject"].forEach((function(t){Object.defineProperty(e,t,{enumerable:!1,value:function(){throw new Error(t+" is not supported in userland")}})}))},9539:(t,e,r)=>{var n=r(4155),i=Object.getOwnPropertyDescriptors||function(t){for(var e=Object.keys(t),r={},n=0;n<e.length;n++)r[e[n]]=Object.getOwnPropertyDescriptor(t,e[n]);return r},o=/%[sdj%]/g;e.format=function(t){if(!_(t)){for(var e=[],r=0;r<arguments.length;r++)e.push(f(arguments[r]));return e.join(" ")}r=1;for(var n=arguments,i=n.length,a=String(t).replace(o,(function(t){if("%%"===t)return"%";if(r>=i)return t;switch(t){case"%s":return String(n[r++]);case"%d":return Number(n[r++]);case"%j":try{return JSON.stringify(n[r++])}catch(t){return"[Circular]"}default:return t}})),u=n[r];r<i;u=n[++r])b(u)||!E(u)?a+=" "+u:a+=" "+f(u);return a},e.deprecate=function(t,r){if(void 0!==n&&!0===n.noDeprecation)return t;if(void 0===n)return function(){return e.deprecate(t,r).apply(this,arguments)};var i=!1;return function(){if(!i){if(n.throwDeprecation)throw new Error(r);n.traceDeprecation?console.trace(r):console.error(r),i=!0}return t.apply(this,arguments)}};var a={},u=/^$/;if(n.env.NODE_DEBUG){var s=n.env.NODE_DEBUG;s=s.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase(),u=new RegExp("^"+s+"$","i")}function f(t,r){var n={seen:[],stylize:l};return arguments.length>=3&&(n.depth=arguments[2]),arguments.length>=4&&(n.colors=arguments[3]),g(r)?n.showHidden=r:r&&e._extend(n,r),m(n.showHidden)&&(n.showHidden=!1),m(n.depth)&&(n.depth=2),m(n.colors)&&(n.colors=!1),m(n.customInspect)&&(n.customInspect=!0),n.colors&&(n.stylize=c),h(n,t,n.depth)}function c(t,e){var r=f.styles[e];return r?"["+f.colors[r][0]+"m"+t+"["+f.colors[r][1]+"m":t}function l(t,e){return t}function h(t,r,n){if(t.customInspect&&r&&B(r.inspect)&&r.inspect!==e.inspect&&(!r.constructor||r.constructor.prototype!==r)){var i=r.inspect(n,t);return _(i)||(i=h(t,i,n)),i}var o=function(t,e){if(m(e))return t.stylize("undefined","undefined");if(_(e)){var r="'"+JSON.stringify(e).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return t.stylize(r,"string")}return v(e)?t.stylize(""+e,"number"):g(e)?t.stylize(""+e,"boolean"):b(e)?t.stylize("null","null"):void 0}(t,r);if(o)return o;var a=Object.keys(r),u=function(t){var e={};return t.forEach((function(t,r){e[t]=!0})),e}(a);if(t.showHidden&&(a=Object.getOwnPropertyNames(r)),O(r)&&(a.indexOf("message")>=0||a.indexOf("description")>=0))return p(r);if(0===a.length){if(B(r)){var s=r.name?": "+r.name:"";return t.stylize("[Function"+s+"]","special")}if(w(r))return t.stylize(RegExp.prototype.toString.call(r),"regexp");if(S(r))return t.stylize(Date.prototype.toString.call(r),"date");if(O(r))return p(r)}var f,c="",l=!1,E=["{","}"];return d(r)&&(l=!0,E=["[","]"]),B(r)&&(c=" [Function"+(r.name?": "+r.name:"")+"]"),w(r)&&(c=" "+RegExp.prototype.toString.call(r)),S(r)&&(c=" "+Date.prototype.toUTCString.call(r)),O(r)&&(c=" "+p(r)),0!==a.length||l&&0!=r.length?n<0?w(r)?t.stylize(RegExp.prototype.toString.call(r),"regexp"):t.stylize("[Object]","special"):(t.seen.push(r),f=l?function(t,e,r,n,i){for(var o=[],a=0,u=e.length;a<u;++a)T(e,String(a))?o.push(y(t,e,r,n,String(a),!0)):o.push("");return i.forEach((function(i){i.match(/^\d+$/)||o.push(y(t,e,r,n,i,!0))})),o}(t,r,n,u,a):a.map((function(e){return y(t,r,n,u,e,l)})),t.seen.pop(),function(t,e,r){return t.reduce((function(t,e){return e.indexOf("\n"),t+e.replace(/\u001b\[\d\d?m/g,"").length+1}),0)>60?r[0]+(""===e?"":e+"\n ")+" "+t.join(",\n ")+" "+r[1]:r[0]+e+" "+t.join(", ")+" "+r[1]}(f,c,E)):E[0]+c+E[1]}function p(t){return"["+Error.prototype.toString.call(t)+"]"}function y(t,e,r,n,i,o){var a,u,s;if((s=Object.getOwnPropertyDescriptor(e,i)||{value:e[i]}).get?u=s.set?t.stylize("[Getter/Setter]","special"):t.stylize("[Getter]","special"):s.set&&(u=t.stylize("[Setter]","special")),T(n,i)||(a="["+i+"]"),u||(t.seen.indexOf(s.value)<0?(u=b(r)?h(t,s.value,null):h(t,s.value,r-1)).indexOf("\n")>-1&&(u=o?u.split("\n").map((function(t){return" "+t})).join("\n").substr(2):"\n"+u.split("\n").map((function(t){return" "+t})).join("\n")):u=t.stylize("[Circular]","special")),m(a)){if(o&&i.match(/^\d+$/))return u;(a=JSON.stringify(""+i)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(a=a.substr(1,a.length-2),a=t.stylize(a,"name")):(a=a.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),a=t.stylize(a,"string"))}return a+": "+u}function d(t){return Array.isArray(t)}function g(t){return"boolean"==typeof t}function b(t){return null===t}function v(t){return"number"==typeof t}function _(t){return"string"==typeof t}function m(t){return void 0===t}function w(t){return E(t)&&"[object RegExp]"===x(t)}function E(t){return"object"==typeof t&&null!==t}function S(t){return E(t)&&"[object Date]"===x(t)}function O(t){return E(t)&&("[object Error]"===x(t)||t instanceof Error)}function B(t){return"function"==typeof t}function x(t){return Object.prototype.toString.call(t)}function A(t){return t<10?"0"+t.toString(10):t.toString(10)}e.debuglog=function(t){if(t=t.toUpperCase(),!a[t])if(u.test(t)){var r=n.pid;a[t]=function(){var n=e.format.apply(e,arguments);console.error("%s %d: %s",t,r,n)}}else a[t]=function(){};return a[t]},e.inspect=f,f.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]},f.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},e.types=r(5955),e.isArray=d,e.isBoolean=g,e.isNull=b,e.isNullOrUndefined=function(t){return null==t},e.isNumber=v,e.isString=_,e.isSymbol=function(t){return"symbol"==typeof t},e.isUndefined=m,e.isRegExp=w,e.types.isRegExp=w,e.isObject=E,e.isDate=S,e.types.isDate=S,e.isError=O,e.types.isNativeError=O,e.isFunction=B,e.isPrimitive=function(t){return null===t||"boolean"==typeof t||"number"==typeof t||"string"==typeof t||"symbol"==typeof t||void 0===t},e.isBuffer=r(384);var I=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function R(){var t=new Date,e=[A(t.getHours()),A(t.getMinutes()),A(t.getSeconds())].join(":");return[t.getDate(),I[t.getMonth()],e].join(" ")}function T(t,e){return Object.prototype.hasOwnProperty.call(t,e)}e.log=function(){console.log("%s - %s",R(),e.format.apply(e,arguments))},e.inherits=r(5717),e._extend=function(t,e){if(!e||!E(e))return t;for(var r=Object.keys(e),n=r.length;n--;)t[r[n]]=e[r[n]];return t};var j="undefined"!=typeof Symbol?Symbol("util.promisify.custom"):void 0;function P(t,e){if(!t){var r=new Error("Promise was rejected with a falsy value");r.reason=t,t=r}return e(t)}e.promisify=function(t){if("function"!=typeof t)throw new TypeError('The "original" argument must be of type Function');if(j&&t[j]){var e;if("function"!=typeof(e=t[j]))throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(e,j,{value:e,enumerable:!1,writable:!1,configurable:!0}),e}function e(){for(var e,r,n=new Promise((function(t,n){e=t,r=n})),i=[],o=0;o<arguments.length;o++)i.push(arguments[o]);i.push((function(t,n){t?r(t):e(n)}));try{t.apply(this,i)}catch(t){r(t)}return n}return Object.setPrototypeOf(e,Object.getPrototypeOf(t)),j&&Object.defineProperty(e,j,{value:e,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(e,i(t))},e.promisify.custom=j,e.callbackify=function(t){if("function"!=typeof t)throw new TypeError('The "original" argument must be of type Function');function e(){for(var e=[],r=0;r<arguments.length;r++)e.push(arguments[r]);var i=e.pop();if("function"!=typeof i)throw new TypeError("The last argument must be of type Function");var o=this,a=function(){return i.apply(o,arguments)};t.apply(this,e).then((function(t){n.nextTick(a.bind(null,null,t))}),(function(t){n.nextTick(P.bind(null,t,a))}))}return Object.setPrototypeOf(e,Object.getPrototypeOf(t)),Object.defineProperties(e,i(t)),e}},6430:(t,e,r)=>{"use strict";var n=r(9804),i=r(3083),o=r(1924),a=o("Object.prototype.toString"),u=r(1405)()&&"symbol"==typeof Symbol.toStringTag,s=i(),f=o("String.prototype.slice"),c={},l=r(4079),h=Object.getPrototypeOf;u&&l&&h&&n(s,(function(t){if("function"==typeof r.g[t]){var e=new r.g[t];if(!(Symbol.toStringTag in e))throw new EvalError("this engine has support for Symbol.toStringTag, but "+t+" does not have the property! Please report this.");var n=h(e),i=l(n,Symbol.toStringTag);if(!i){var o=h(n);i=l(o,Symbol.toStringTag)}c[t]=i.get}}));var p=r(5692);t.exports=function(t){return!!p(t)&&(u?function(t){var e=!1;return n(c,(function(r,n){if(!e)try{var i=r.call(t);i===n&&(e=i)}catch(t){}})),e}(t):f(a(t),8,-1))}},1367:function(t,e,r){var n,i,o=r(8764).Buffer;void 0===(i="function"==typeof(n=function(){const{DataItem:t}=r(5694);var e=function(){function e(t){this.$hex=t}e.prototype={length:function(){return this.$hex.length/2},toString:function(t){if(!t||"hex"===t||16===t)return this.$hex;if("utf-8"===t){for(var e="",r=0;r<this.$hex.length;r+=2)e+="%"+this.$hex.substring(r,r+2);return decodeURIComponent(e)}if("latin"===t){for(e=[],r=0;r<this.$hex.length;r+=2)e.push(parseInt(this.$hex.substring(r,r+2),16));return String.fromCharCode.apply(String,e)}throw new Error("Unrecognised format: "+t)}},e.fromLatinString=function(t){for(var r="",n=0;n<t.length;n++){var i=t.charCodeAt(n).toString(16);1===i.length&&(i="0"+i),r+=i}return new e(r)},e.fromUtf8String=function(t){for(var r=encodeURIComponent(t),n="",i=0;i<r.length;i++)if("%"===r.charAt(i))n+=r.substring(i+1,i+3),i+=2;else{var o=r.charCodeAt(i).toString(16);o.length<2&&(o="0"+o),n+=o}return new e(n)};var r=[],n={},i=function(t){return function(){throw new Error(t+" not implemented")}};function a(){}function u(){}function s(t,e){var r=t.value;return r<24?r:24==r?e.readByte():25==r?e.readUint16():26==r?e.readUint32():27==r?e.readUint64():31==r?null:void i("Additional info: "+r)()}function f(t,e,r){var n=t<<5;e<24?r.writeByte(n|e):e<256?(r.writeByte(24|n),r.writeByte(e)):e<65536?(r.writeByte(25|n),r.writeUint16(e)):e<4294967296?(r.writeByte(26|n),r.writeUint32(e)):(r.writeByte(27|n),r.writeUint64(e))}a.prototype={peekByte:i("peekByte"),readByte:i("readByte"),readChunk:i("readChunk"),readFloat16:function(){var t=this.readUint16(),e=(32767&t)>>10,r=1023&t,n=32768&t;if(31===e)return 0===r?n?-1/0:1/0:NaN;var i=e?Math.pow(2,e-25)*(1024+r):Math.pow(2,-24)*r;return n?-i:i},readFloat32:function(){var t=this.readUint32(),e=(2147483647&t)>>23,r=8388607&t,n=2147483648&t;if(255===e)return 0===r?n?-1/0:1/0:NaN;var i=e?Math.pow(2,e-23-127)*(8388608+r):Math.pow(2,-149)*r;return n?-i:i},readFloat64:function(){var t=this.readUint32(),e=t>>20&2047,r=4294967296*(1048575&t)+this.readUint32(),n=2147483648&t;if(2047===e)return 0===r?n?-1/0:1/0:NaN;var i=e?Math.pow(2,e-52-1023)*(4503599627370496+r):Math.pow(2,-1074)*r;return n?-i:i},readUint16:function(){return 256*this.readByte()+this.readByte()},readUint32:function(){return 65536*this.readUint16()+this.readUint16()},readUint64:function(){return 4294967296*this.readUint32()+this.readUint32()}},u.prototype={writeByte:i("writeByte"),result:i("result"),writeFloat16:i("writeFloat16"),writeFloat32:i("writeFloat32"),writeFloat64:i("writeFloat64"),writeUint16:function(t){this.writeByte(t>>8&255),this.writeByte(255&t)},writeUint32:function(t){this.writeUint16(t>>16&65535),this.writeUint16(65535&t)},writeUint64:function(t){if(t>=9007199254740992||t<=-9007199254740992)throw new Error("Cannot encode Uint64 of: "+t+" magnitude to big (floating point errors)");this.writeUint32(Math.floor(t/4294967296)),this.writeUint32(t%4294967296)},writeString:i("writeString"),canWriteBinary:function(t){return!1},writeBinary:i("writeChunk")};var c=new Error;function l(t){var e=function(t){var e=t.readByte();return{type:e>>5,value:31&e}}(t);switch(e.type){case 0:return s(e,t);case 1:return-1-s(e,t);case 2:return t.readChunk(s(e,t));case 3:return t.readChunk(s(e,t)).toString("utf-8");case 4:case 5:var r=s(e,t),i=[];if(null!==r){5===e.type&&(r*=2);for(var o=0;o<r;o++)i[o]=l(t)}else for(var a;(a=l(t))!==c;)i.push(a);if(5===e.type){var u={};for(o=0;o<i.length;o+=2)u[i[o]]=i[o+1];return u}return i;case 6:var f=s(e,t),h=n[f];return i=l(t),h?h(i):i;case 7:if(25===e.value)return t.readFloat16();if(26===e.value)return t.readFloat32();if(27===e.value)return t.readFloat64();switch(s(e,t)){case 20:return!1;case 21:return!0;case 22:return null;case 23:return;case null:return c;default:throw new Error("Unknown fixed value: "+e.value)}default:throw new Error("Unsupported header: "+JSON.stringify(e))}throw new Error("not implemented yet")}function h(t,e){for(var n=0;n<r.length;n++){var i=r[n].fn(t);if(void 0!==i)return f(6,r[n].tag,e),h(i,e)}if(t&&"function"==typeof t.toCBOR&&(t=t.toCBOR()),!1===t)f(7,20,e);else if(!0===t)f(7,21,e);else if(null===t)f(7,22,e);else if(void 0===t)f(7,23,e);else if("number"==typeof t)Math.floor(t)===t&&t<9007199254740992&&t>-9007199254740992?t<0?f(1,-1-t,e):f(0,t,e):(function(t,e,r){r.writeByte(t<<5|e)}(7,27,e),e.writeFloat64(t));else if("string"==typeof t)e.writeString(t,(function(t){f(3,t,e)}));else if(e.canWriteBinary(t))e.writeBinary(t,(function(t){f(2,t,e)}));else{if("object"!=typeof t)throw new Error("CBOR encoding not supported: "+t);if(d.config.useToJSON&&"function"==typeof t.toJSON&&(t=t.toJSON()),Array.isArray(t))for(f(4,t.length,e),n=0;n<t.length;n++)h(t[n],e);else{var o=Object.keys(t);for(f(5,o.length,e),n=0;n<o.length;n++){const r=parseInt(o[n]);isNaN(r)?(h(o[n],e),h(t[o[n]],e)):(h(r,e),h(t[o[n]],e))}}}}var p=[],y=[],d={config:{useToJSON:!0},addWriter:function(t,e){"string"==typeof t?y.push((function(r){if(t===r)return e(r)})):y.push(t)},addReader:function(t,e){"string"==typeof t?p.push((function(r,n){if(t===n)return e(r,n)})):p.push(t)},encode:function(t,e){for(var r=0;r<y.length;r++){var n=(0,y[r])(e);if(n)return h(t,n),n.result()}throw new Error("Unsupported output format: "+e)},encodeDataItem:function(t,e){for(var r=0;r<y.length;r++){var n=(0,y[r])(e);if(n)return void 0!==t.getTag()?(h(t,n),n.result()):(h(t.getData(),n),n.result())}throw new Error("Unsupported output format: "+e)},decode:function(t,e){for(var r=0;r<p.length;r++){var n=(0,p[r])(t,e);if(n)return l(n)}throw new Error("Unsupported input format: "+e)},decodeToDataItem:function(e,r){for(var n=0;n<p.length;n++){var i=(0,p[n])(e,r);if(i){const e=l(i);return e instanceof t?e:new t(e)}}throw new Error("Unsupported input format: "+r)},addSemanticEncode:function(t,e){if("number"!=typeof t||t%1!=0||t<0)throw new Error("Tag must be a positive integer");return r.push({tag:t,fn:e}),this},addSemanticDecode:function(t,e){if("number"!=typeof t||t%1!=0||t<0)throw new Error("Tag must be a positive integer");return n[t]=e,this}};function g(t){this.buffer=t,this.pos=0}function b(t){this.byteLength=0,this.defaultBufferLength=16384,this.latestBuffer=o.alloc(this.defaultBufferLength),this.latestBufferOffset=0,this.completeBuffers=[],this.stringFormat=t}function v(t){this.hex=t,this.pos=0}function _(t){this.$hex="",this.finalFormat=t||"hex"}return g.prototype=Object.create(a.prototype),g.prototype.peekByte=function(){return this.buffer[this.pos]},g.prototype.readByte=function(){return this.buffer[this.pos++]},g.prototype.readUint16=function(){var t=this.buffer.readUInt16BE(this.pos);return this.pos+=2,t},g.prototype.readUint32=function(){var t=this.buffer.readUInt32BE(this.pos);return this.pos+=4,t},g.prototype.readFloat32=function(){var t=this.buffer.readFloatBE(this.pos);return this.pos+=4,t},g.prototype.readFloat64=function(){var t=this.buffer.readDoubleBE(this.pos);return this.pos+=8,t},g.prototype.readChunk=function(t){var e=o.alloc(t);return this.buffer.copy(e,0,this.pos,this.pos+=t),e},b.prototype=Object.create(u.prototype),b.prototype.writeByte=function(t){this.latestBuffer[this.latestBufferOffset++]=t,this.latestBufferOffset>=this.latestBuffer.length&&(this.completeBuffers.push(this.latestBuffer),this.latestBuffer=o.alloc(this.defaultBufferLength),this.latestBufferOffset=0),this.byteLength++},b.prototype.writeFloat32=function(t){var e=o.alloc(4);e.writeFloatBE(t,0),this.writeBuffer(e)},b.prototype.writeFloat64=function(t){var e=o.alloc(8);e.writeDoubleBE(t,0),this.writeBuffer(e)},b.prototype.writeString=function(t,e){var r=o.from(t,"utf-8");e(r.length),this.writeBuffer(r)},b.prototype.canWriteBinary=function(t){return t instanceof o},b.prototype.writeBinary=function(t,e){e(t.length),this.writeBuffer(t)},b.prototype.writeBuffer=function(t){if(!(t instanceof o))throw new TypeError("BufferWriter only accepts Buffers");this.latestBufferOffset?this.latestBuffer.length-this.latestBufferOffset>=t.length?(t.copy(this.latestBuffer,this.latestBufferOffset),this.latestBufferOffset+=t.length,this.latestBufferOffset>=this.latestBuffer.length&&(this.completeBuffers.push(this.latestBuffer),this.latestBuffer=o.alloc(this.defaultBufferLength),this.latestBufferOffset=0)):(this.completeBuffers.push(this.latestBuffer.slice(0,this.latestBufferOffset)),this.completeBuffers.push(t),this.latestBuffer=o.alloc(this.defaultBufferLength),this.latestBufferOffset=0):this.completeBuffers.push(t),this.byteLength+=t.length},b.prototype.result=function(){for(var t=o.alloc(this.byteLength),e=0,r=0;r<this.completeBuffers.length;r++){var n=this.completeBuffers[r];n.copy(t,e,0,n.length),e+=n.length}return this.latestBufferOffset&&this.latestBuffer.copy(t,e,0,this.latestBufferOffset),this.stringFormat?t.toString(this.stringFormat):t},"function"==typeof o&&(d.addReader((function(t,e){return t instanceof o?new g(t):"hex"===e||"base64"===e?new g(o.from(t,e)):void 0})),d.addWriter((function(t){return t&&"buffer"!==t?"hex"===t||"base64"===t?new b(t):void 0:new b}))),v.prototype=Object.create(a.prototype),v.prototype.peekByte=function(){var t=this.hex.substring(this.pos,2);return parseInt(t,16)},v.prototype.readByte=function(){var t=this.hex.substring(this.pos,this.pos+2);return this.pos+=2,parseInt(t,16)},v.prototype.readChunk=function(t){var r=this.hex.substring(this.pos,this.pos+2*t);return this.pos+=2*t,"function"==typeof o?o.from(r,"hex"):new e(r)},_.prototype=Object.create(u.prototype),_.prototype.writeByte=function(t){if(t<0||t>255)throw new Error("Byte value out of range: "+t);var e=t.toString(16);1==e.length&&(e="0"+e),this.$hex+=e},_.prototype.canWriteBinary=function(t){return t instanceof e||"function"==typeof o&&t instanceof o},_.prototype.writeBinary=function(t,r){if(t instanceof e)r(t.length()),this.$hex+=t.$hex;else{if(!("function"==typeof o&&t instanceof o))throw new TypeError("HexWriter only accepts BinaryHex or Buffers");r(t.length),this.$hex+=t.toString("hex")}},_.prototype.result=function(){return"buffer"===this.finalFormat&&"function"==typeof o?o.from(this.$hex,"hex"):new e(this.$hex).toString(this.finalFormat)},_.prototype.writeString=function(t,r){var n=e.fromUtf8String(t);r(n.length()),this.$hex+=n.$hex},d.addReader((function(t,r){return t instanceof e||t.$hex?new v(t.$hex):"hex"===r?new v(t):void 0})),d.addWriter((function(t){if("hex"===t)return new _})),d}();return e.addSemanticEncode(0,(function(t){if(t instanceof Date)return t.toISOString()})).addSemanticDecode(0,(function(t){return new Date(t)})).addSemanticDecode(1,(function(t){return new Date(t)})),e})?n.apply(e,[]):n)||(t.exports=i)},4654:()=>{},2361:()=>{},4616:()=>{},3083:(t,e,r)=>{"use strict";var n=r(1199);t.exports=function(){return n(["BigInt64Array","BigUint64Array","Float32Array","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray"],(function(t){return"function"==typeof r.g[t]}))}}},e={};function r(n){var i=e[n];if(void 0!==i)return i.exports;var o=e[n]={exports:{}};return t[n].call(o.exports,o,o.exports,r),o.exports}return r.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return r.d(e,{a:e}),e},r.d=(t,e)=>{for(var n in e)r.o(e,n)&&!r.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),r.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),r.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r(8809)})()));