@smartledger/bsv 6.1.1 → 6.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (49) hide show
  1. package/CHANGELOG.md +59 -0
  2. package/README.md +38 -38
  3. package/SECURITY.md +39 -12
  4. package/bsv-anchor.min.js +18 -11
  5. package/bsv-covenant.min.js +2 -48
  6. package/bsv-didweb.min.js +18 -11
  7. package/bsv-ecies.min.js +2 -20
  8. package/bsv-gdaf.min.js +103 -45
  9. package/bsv-ltp.min.js +103 -45
  10. package/bsv-message.min.js +3 -10
  11. package/bsv-mnemonic.min.js +20 -11
  12. package/bsv-script-helper.min.js +2 -10
  13. package/bsv-security.min.js +2 -10
  14. package/bsv-shamir.min.js +20 -11
  15. package/bsv-smartcontract.min.js +26 -48
  16. package/bsv-statuslist.min.js +74 -17
  17. package/bsv-vcjwt.min.js +18 -11
  18. package/bsv.bundle.js +103 -45
  19. package/bsv.min.js +103 -45
  20. package/build/esbuild/empty.js +2 -0
  21. package/build/esbuild/globals.js +6 -0
  22. package/build/esbuild.js +129 -0
  23. package/docs/MODULE_REFERENCE_COMPLETE.md +27 -27
  24. package/docs/THREAT_MODEL.md +127 -0
  25. package/docs/advanced/UTXO_MANAGER_GUIDE.md +1 -1
  26. package/docs/getting-started/INSTALLATION.md +23 -23
  27. package/docs/getting-started/QUICK_START.md +7 -7
  28. package/docs/migration/FROM_BSV_1_5_6.md +5 -5
  29. package/package.json +5 -22
  30. package/test/build/bundle_smoke.js +55 -0
  31. package/test/build/esbuild_main.js +65 -0
  32. package/test/security/threat_model_coverage.js +31 -0
  33. package/build/webpack.anchor.config.js +0 -15
  34. package/build/webpack.base.js +0 -125
  35. package/build/webpack.bundle.config.js +0 -15
  36. package/build/webpack.config.js +0 -17
  37. package/build/webpack.covenant.config.js +0 -17
  38. package/build/webpack.didweb.config.js +0 -15
  39. package/build/webpack.ecies.config.js +0 -15
  40. package/build/webpack.gdaf.config.js +0 -15
  41. package/build/webpack.ltp.config.js +0 -15
  42. package/build/webpack.message.config.js +0 -15
  43. package/build/webpack.mnemonic.config.js +0 -15
  44. package/build/webpack.script-helper.config.js +0 -17
  45. package/build/webpack.security.config.js +0 -15
  46. package/build/webpack.shamir.config.js +0 -15
  47. package/build/webpack.smartcontract.config.js +0 -18
  48. package/build/webpack.statuslist.config.js +0 -15
  49. package/build/webpack.vcjwt.config.js +0 -15
@@ -1,17 +1,74 @@
1
- !function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.bsvStatusList=e():t.bsvStatusList=e()}(this,()=>(()=>{var __webpack_modules__={4096(t,e,r){"use strict";var n=r(8287).Buffer,i=r(6470),o=(r(1565),r(8559));function a(t,e){var r=e&&e.maxDecompressedBytes||8388608;return o.gunzipSync(n.from(t,"base64"),{maxOutputLength:r})}async function s(t,e){if(!e.expectedIssuerDid)throw new Error("expectedIssuerDid is required to verify a status list (issuer pinning); refusing to read revocation state from an unpinned/unverified JWT");var r=e.didResolver;if(!r){var n=e.issuerJwks||(e.issuerPublicJwk?{keys:[e.issuerPublicJwk]}:null);if(!n)throw new Error("Provide params.didResolver, params.issuerJwks, or params.issuerPublicJwk to verify the status list signature");r=async function(){return{jwks:n}}}var o=await i.verifyVcJwt(t,{didResolver:r,expectedIssuerDid:e.expectedIssuerDid,allowedAlgs:e.allowedAlgs,allowLegacyDER:e.allowLegacyDER,clockToleranceSec:e.clockToleranceSec});if(!o.valid)throw new Error("Status list signature verification failed: "+(o.error||"invalid signature"));return o.payload}t.exports={createStatusList:async function(t){if(!t.issuerDid||!t.privateJwk)throw new Error("issuerDid and privateJwk are required");var e=t.listId||t.issuerDid+"/status/"+Date.now(),o=t.listSize||1e5,a=Math.ceil(o/8),s=n.alloc(a,0),u=r(8559).gzipSync(s).toString("base64"),h={"@context":["https://www.w3.org/2018/credentials/v1","https://w3id.org/vc/status-list/2021/v1"],type:["VerifiableCredential","StatusList2021Credential"],issuer:t.issuerDid,issuanceDate:(new Date).toISOString(),credentialSubject:{id:e,type:"StatusList2021",statusPurpose:"revocation",encodedList:u}};return{listVcJwt:(await i.issueVcJwt({issuerDid:t.issuerDid,subjectId:e,types:["VerifiableCredential","StatusList2021Credential"],credentialSubject:h.credentialSubject,privateJwk:t.privateJwk,alg:t.privateJwk.alg||"ES256"})).jwt,listId:e}},updateStatusList:async function(t){if(!t.listVcJwt||void 0===t.index||!t.status||!t.privateJwk)throw new Error("listVcJwt, index, status, and privateJwk are required");var e=await s(t.listVcJwt,t),r=a(e.vc.credentialSubject.encodedList,t),n=Math.floor(t.index/8),u=t.index%8;if(n>=r.length)throw new Error("Index out of range");1===("revoked"===t.status||"suspended"===t.status?1:0)?r[n]|=1<<u:r[n]&=~(1<<u);var h=o.gzipSync(r).toString("base64"),f={id:e.vc.credentialSubject.id,type:"StatusList2021",statusPurpose:"revocation",encodedList:h};return{listVcJwt:(await i.issueVcJwt({issuerDid:e.iss,subjectId:e.vc.credentialSubject.id,types:["VerifiableCredential","StatusList2021Credential"],credentialSubject:f,privateJwk:t.privateJwk,alg:t.privateJwk.alg||"ES256"})).jwt}},getCredentialStatusEntry:async function(t){if(!t.listVcJwt||void 0===t.index)throw new Error("listVcJwt and index are required");var e=a((await s(t.listVcJwt,t)).vc.credentialSubject.encodedList,t),r=Math.floor(t.index/8),n=t.index%8;if(r>=e.length)throw new Error("Index out of range");return 1===(e[r]>>n&1)?"revoked":"valid"}}},6470(t,e,r){"use strict";var n=r(8287).Buffer,i=r(1565),o={ES256:"P-256",ES256K:"secp256k1"},a=["ES256","ES256K"];function s(t){return t.toString("base64").replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}function u(t){for(t=t.replace(/-/g,"+").replace(/_/g,"/");t.length%4;)t+="=";return n.from(t,"base64")}t.exports={issueVcJwt:async function(t){if(!(t.issuerDid&&t.subjectId&&t.credentialSubject&&t.privateJwk))throw new Error("issuerDid, subjectId, credentialSubject, and privateJwk are required");var e=t.alg||"ES256";if(!o[e])throw new Error("Unsupported algorithm: "+e);if(t.privateJwk.crv&&t.privateJwk.crv!==o[e])throw new Error("Key curve "+t.privateJwk.crv+" does not match alg "+e);var r=t.kid||t.privateJwk.kid,a=t.types||["VerifiableCredential"],u=t.expSeconds||31536e3,h=Math.floor(Date.now()/1e3),f=(new Date).toISOString(),l={"@context":["https://www.w3.org/2018/credentials/v1"],type:a,issuer:t.issuerDid,issuanceDate:f,credentialSubject:Object.assign({id:t.subjectId},t.credentialSubject)},c={iss:t.issuerDid,sub:t.subjectId,iat:h,exp:h+u,vc:l},d={alg:e,typ:"JWT",kid:r},p=s(n.from(JSON.stringify(d)))+"."+s(n.from(JSON.stringify(c))),y=i.createPrivateKey({key:t.privateJwk,format:"jwk"});return{jwt:p+"."+s(i.sign("sha256",n.from(p),{key:y,dsaEncoding:"ieee-p1363"}))}},verifyVcJwt:async function(t,e){e=e||{};try{if("string"!=typeof t)return{valid:!1,error:"Invalid JWT format"};var r=t.split(".");if(3!==r.length)return{valid:!1,error:"Invalid JWT format"};var s=r[0],h=r[1],f=r[2],l=JSON.parse(u(s).toString()),c=JSON.parse(u(h).toString()),d=u(f),p=e.allowedAlgs||a;if(!l.alg||-1===p.indexOf(l.alg)||!o[l.alg])return{valid:!1,error:"Algorithm not allowed: "+l.alg,header:l,payload:c};var y,g=Math.floor(Date.now()/1e3),m=e.clockToleranceSec||60;if(e.requireExpiration&&!c.exp)return{valid:!1,error:"JWT missing required exp claim",header:l,payload:c};if(c.exp&&c.exp<g-m)return{valid:!1,error:"JWT expired",header:l,payload:c};if(c.nbf&&c.nbf>g+m)return{valid:!1,error:"JWT not yet valid",header:l,payload:c};if(e.expectedIssuerDid&&c.iss!==e.expectedIssuerDid)return{valid:!1,error:"Unexpected issuer",header:l,payload:c};if(!e.didResolver)return{valid:!1,error:"DID resolver required for verification",header:l,payload:c};var b=await e.didResolver(c.iss);if(!b||!b.jwks||!b.jwks.keys)return{valid:!1,error:"Failed to resolve issuer DID",header:l,payload:c};var v=b.jwks.keys.find(function(t){return t.kid===l.kid});if(!v)return{valid:!1,error:"Key not found in JWKS",header:l,payload:c};if((y=v).crv&&y.crv!==o[l.alg])return{valid:!1,error:"Key curve does not match algorithm",header:l,payload:c};var _=s+"."+h,w=i.createPublicKey({key:y,format:"jwk"}),E=i.verify("sha256",n.from(_),{key:w,dsaEncoding:"ieee-p1363"},d);if(!E&&e.allowLegacyDER)try{E=i.verify("sha256",n.from(_),{key:w,dsaEncoding:"der"},d)}catch(t){E=!1}return E?{valid:!0,header:l,payload:c}:{valid:!1,error:"Invalid signature",header:l,payload:c}}catch(t){return{valid:!1,error:t.message||"Verification failed"}}},base64UrlEncode:s,base64UrlDecode:u,ALG_TO_CRV:o}},7568(t,e,r){var n=e;n.bignum=r(9404),n.define=r(7363).define,n.base=r(9673),n.constants=r(2153),n.decoders=r(2853),n.encoders=r(4669)},7363(t,e,r){var n=r(7568),i=r(4317);function o(t,e){this.name=t,this.body=e,this.decoders={},this.encoders={}}e.define=function(t,e){return new o(t,e)},o.prototype._createNamed=function(t){var e;try{e=r(8961).runInThisContext("(function "+this.name+"(entity) {\n this._initNamed(entity);\n})")}catch(t){e=function(t){this._initNamed(t)}}return i(e,t),e.prototype._initNamed=function(e){t.call(this,e)},new e(this)},o.prototype._getDecoder=function(t){return t=t||"der",this.decoders.hasOwnProperty(t)||(this.decoders[t]=this._createNamed(n.decoders[t])),this.decoders[t]},o.prototype.decode=function(t,e,r){return this._getDecoder(e).decode(t,r)},o.prototype._getEncoder=function(t){return t=t||"der",this.encoders.hasOwnProperty(t)||(this.encoders[t]=this._createNamed(n.encoders[t])),this.encoders[t]},o.prototype.encode=function(t,e,r){return this._getEncoder(e).encode(t,r)}},7227(t,e,r){var n=r(4317),i=r(9673).Reporter,o=r(8287).Buffer;function a(t,e){i.call(this,e),o.isBuffer(t)?(this.base=t,this.offset=0,this.length=t.length):this.error("Input not Buffer")}function s(t,e){if(Array.isArray(t))this.length=0,this.value=t.map(function(t){return t instanceof s||(t=new s(t,e)),this.length+=t.length,t},this);else if("number"==typeof t){if(!(0<=t&&t<=255))return e.error("non-byte EncoderBuffer value");this.value=t,this.length=1}else if("string"==typeof t)this.value=t,this.length=o.byteLength(t);else{if(!o.isBuffer(t))return e.error("Unsupported type: "+typeof t);this.value=t,this.length=t.length}}n(a,i),e.t=a,a.prototype.save=function(){return{offset:this.offset,reporter:i.prototype.save.call(this)}},a.prototype.restore=function(t){var e=new a(this.base);return e.offset=t.offset,e.length=this.offset,this.offset=t.offset,i.prototype.restore.call(this,t.reporter),e},a.prototype.isEmpty=function(){return this.offset===this.length},a.prototype.readUInt8=function(t){return this.offset+1<=this.length?this.base.readUInt8(this.offset++,!0):this.error(t||"DecoderBuffer overrun")},a.prototype.skip=function(t,e){if(!(this.offset+t<=this.length))return this.error(e||"DecoderBuffer overrun");var r=new a(this.base);return r._reporterState=this._reporterState,r.offset=this.offset,r.length=this.offset+t,this.offset+=t,r},a.prototype.raw=function(t){return this.base.slice(t?t.offset:this.offset,this.length)},e.d=s,s.prototype.join=function(t,e){return t||(t=new o(this.length)),e||(e=0),0===this.length||(Array.isArray(this.value)?this.value.forEach(function(r){r.join(t,e),e+=r.length}):("number"==typeof this.value?t[e]=this.value:"string"==typeof this.value?t.write(this.value,e):o.isBuffer(this.value)&&this.value.copy(t,e),e+=this.length)),t}},9673(t,e,r){var n=e;n.Reporter=r(9220).a,n.DecoderBuffer=r(7227).t,n.EncoderBuffer=r(7227).d,n.Node=r(993)},993(t,e,r){var n=r(9673).Reporter,i=r(9673).EncoderBuffer,o=r(9673).DecoderBuffer,a=r(3349),s=["seq","seqof","set","setof","objid","bool","gentime","utctime","null_","enum","int","objDesc","bitstr","bmpstr","charstr","genstr","graphstr","ia5str","iso646str","numstr","octstr","printstr","t61str","unistr","utf8str","videostr"],u=["key","obj","use","optional","explicit","implicit","def","choice","any","contains"].concat(s);function h(t,e){var r={};this._baseState=r,r.enc=t,r.parent=e||null,r.children=null,r.tag=null,r.args=null,r.reverseArgs=null,r.choice=null,r.optional=!1,r.any=!1,r.obj=!1,r.use=null,r.useDecoder=null,r.key=null,r.default=null,r.explicit=null,r.implicit=null,r.contains=null,r.parent||(r.children=[],this._wrap())}t.exports=h;var f=["enc","parent","children","tag","args","reverseArgs","choice","optional","any","obj","use","alteredUse","key","default","explicit","implicit","contains"];h.prototype.clone=function(){var t=this._baseState,e={};f.forEach(function(r){e[r]=t[r]});var r=new this.constructor(e.parent);return r._baseState=e,r},h.prototype._wrap=function(){var t=this._baseState;u.forEach(function(e){this[e]=function(){var r=new this.constructor(this);return t.children.push(r),r[e].apply(r,arguments)}},this)},h.prototype._init=function(t){var e=this._baseState;a(null===e.parent),t.call(this),e.children=e.children.filter(function(t){return t._baseState.parent===this},this),a.equal(e.children.length,1,"Root node can have only one child")},h.prototype._useArgs=function(t){var e=this._baseState,r=t.filter(function(t){return t instanceof this.constructor},this);t=t.filter(function(t){return!(t instanceof this.constructor)},this),0!==r.length&&(a(null===e.children),e.children=r,r.forEach(function(t){t._baseState.parent=this},this)),0!==t.length&&(a(null===e.args),e.args=t,e.reverseArgs=t.map(function(t){if("object"!=typeof t||t.constructor!==Object)return t;var e={};return Object.keys(t).forEach(function(r){r==(0|r)&&(r|=0);var n=t[r];e[n]=r}),e}))},["_peekTag","_decodeTag","_use","_decodeStr","_decodeObjid","_decodeTime","_decodeNull","_decodeInt","_decodeBool","_decodeList","_encodeComposite","_encodeStr","_encodeObjid","_encodeTime","_encodeNull","_encodeInt","_encodeBool"].forEach(function(t){h.prototype[t]=function(){var e=this._baseState;throw new Error(t+" not implemented for encoding: "+e.enc)}}),s.forEach(function(t){h.prototype[t]=function(){var e=this._baseState,r=Array.prototype.slice.call(arguments);return a(null===e.tag),e.tag=t,this._useArgs(r),this}}),h.prototype.use=function(t){a(t);var e=this._baseState;return a(null===e.use),e.use=t,this},h.prototype.optional=function(){return this._baseState.optional=!0,this},h.prototype.def=function(t){var e=this._baseState;return a(null===e.default),e.default=t,e.optional=!0,this},h.prototype.explicit=function(t){var e=this._baseState;return a(null===e.explicit&&null===e.implicit),e.explicit=t,this},h.prototype.implicit=function(t){var e=this._baseState;return a(null===e.explicit&&null===e.implicit),e.implicit=t,this},h.prototype.obj=function(){var t=this._baseState,e=Array.prototype.slice.call(arguments);return t.obj=!0,0!==e.length&&this._useArgs(e),this},h.prototype.key=function(t){var e=this._baseState;return a(null===e.key),e.key=t,this},h.prototype.any=function(){return this._baseState.any=!0,this},h.prototype.choice=function(t){var e=this._baseState;return a(null===e.choice),e.choice=t,this._useArgs(Object.keys(t).map(function(e){return t[e]})),this},h.prototype.contains=function(t){var e=this._baseState;return a(null===e.use),e.contains=t,this},h.prototype._decode=function(t,e){var r=this._baseState;if(null===r.parent)return t.wrapResult(r.children[0]._decode(t,e));var n,i=r.default,a=!0,s=null;if(null!==r.key&&(s=t.enterKey(r.key)),r.optional){var u=null;if(null!==r.explicit?u=r.explicit:null!==r.implicit?u=r.implicit:null!==r.tag&&(u=r.tag),null!==u||r.any){if(a=this._peekTag(t,u,r.any),t.isError(a))return a}else{var h=t.save();try{null===r.choice?this._decodeGeneric(r.tag,t,e):this._decodeChoice(t,e),a=!0}catch(t){a=!1}t.restore(h)}}if(r.obj&&a&&(n=t.enterObject()),a){if(null!==r.explicit){var f=this._decodeTag(t,r.explicit);if(t.isError(f))return f;t=f}var l=t.offset;if(null===r.use&&null===r.choice){if(r.any)h=t.save();var c=this._decodeTag(t,null!==r.implicit?r.implicit:r.tag,r.any);if(t.isError(c))return c;r.any?i=t.raw(h):t=c}if(e&&e.track&&null!==r.tag&&e.track(t.path(),l,t.length,"tagged"),e&&e.track&&null!==r.tag&&e.track(t.path(),t.offset,t.length,"content"),r.any||(i=null===r.choice?this._decodeGeneric(r.tag,t,e):this._decodeChoice(t,e)),t.isError(i))return i;if(r.any||null!==r.choice||null===r.children||r.children.forEach(function(r){r._decode(t,e)}),r.contains&&("octstr"===r.tag||"bitstr"===r.tag)){var d=new o(i);i=this._getUse(r.contains,t._reporterState.obj)._decode(d,e)}}return r.obj&&a&&(i=t.leaveObject(n)),null===r.key||null===i&&!0!==a?null!==s&&t.exitKey(s):t.leaveKey(s,r.key,i),i},h.prototype._decodeGeneric=function(t,e,r){var n=this._baseState;return"seq"===t||"set"===t?null:"seqof"===t||"setof"===t?this._decodeList(e,t,n.args[0],r):/str$/.test(t)?this._decodeStr(e,t,r):"objid"===t&&n.args?this._decodeObjid(e,n.args[0],n.args[1],r):"objid"===t?this._decodeObjid(e,null,null,r):"gentime"===t||"utctime"===t?this._decodeTime(e,t,r):"null_"===t?this._decodeNull(e,r):"bool"===t?this._decodeBool(e,r):"objDesc"===t?this._decodeStr(e,t,r):"int"===t||"enum"===t?this._decodeInt(e,n.args&&n.args[0],r):null!==n.use?this._getUse(n.use,e._reporterState.obj)._decode(e,r):e.error("unknown tag: "+t)},h.prototype._getUse=function(t,e){var r=this._baseState;return r.useDecoder=this._use(t,e),a(null===r.useDecoder._baseState.parent),r.useDecoder=r.useDecoder._baseState.children[0],r.implicit!==r.useDecoder._baseState.implicit&&(r.useDecoder=r.useDecoder.clone(),r.useDecoder._baseState.implicit=r.implicit),r.useDecoder},h.prototype._decodeChoice=function(t,e){var r=this._baseState,n=null,i=!1;return Object.keys(r.choice).some(function(o){var a=t.save(),s=r.choice[o];try{var u=s._decode(t,e);if(t.isError(u))return!1;n={type:o,value:u},i=!0}catch(e){return t.restore(a),!1}return!0},this),i?n:t.error("Choice not matched")},h.prototype._createEncoderBuffer=function(t){return new i(t,this.reporter)},h.prototype._encode=function(t,e,r){var n=this._baseState;if(null===n.default||n.default!==t){var i=this._encodeValue(t,e,r);if(void 0!==i&&!this._skipDefault(i,e,r))return i}},h.prototype._encodeValue=function(t,e,r){var i=this._baseState;if(null===i.parent)return i.children[0]._encode(t,e||new n);var o=null;if(this.reporter=e,i.optional&&void 0===t){if(null===i.default)return;t=i.default}var a=null,s=!1;if(i.any)o=this._createEncoderBuffer(t);else if(i.choice)o=this._encodeChoice(t,e);else if(i.contains)a=this._getUse(i.contains,r)._encode(t,e),s=!0;else if(i.children)a=i.children.map(function(r){if("null_"===r._baseState.tag)return r._encode(null,e,t);if(null===r._baseState.key)return e.error("Child should have a key");var n=e.enterKey(r._baseState.key);if("object"!=typeof t)return e.error("Child expected, but input is not object");var i=r._encode(t[r._baseState.key],e,t);return e.leaveKey(n),i},this).filter(function(t){return t}),a=this._createEncoderBuffer(a);else if("seqof"===i.tag||"setof"===i.tag){if(!i.args||1!==i.args.length)return e.error("Too many args for : "+i.tag);if(!Array.isArray(t))return e.error("seqof/setof, but data is not Array");var u=this.clone();u._baseState.implicit=null,a=this._createEncoderBuffer(t.map(function(r){var n=this._baseState;return this._getUse(n.args[0],t)._encode(r,e)},u))}else null!==i.use?o=this._getUse(i.use,r)._encode(t,e):(a=this._encodePrimitive(i.tag,t),s=!0);if(!i.any&&null===i.choice){var h=null!==i.implicit?i.implicit:i.tag,f=null===i.implicit?"universal":"context";null===h?null===i.use&&e.error("Tag could be omitted only for .use()"):null===i.use&&(o=this._encodeComposite(h,s,f,a))}return null!==i.explicit&&(o=this._encodeComposite(i.explicit,!1,"context",o)),o},h.prototype._encodeChoice=function(t,e){var r=this._baseState,n=r.choice[t.type];return n||a(!1,t.type+" not found in "+JSON.stringify(Object.keys(r.choice))),n._encode(t.value,e)},h.prototype._encodePrimitive=function(t,e){var r=this._baseState;if(/str$/.test(t))return this._encodeStr(e,t);if("objid"===t&&r.args)return this._encodeObjid(e,r.reverseArgs[0],r.args[1]);if("objid"===t)return this._encodeObjid(e,null,null);if("gentime"===t||"utctime"===t)return this._encodeTime(e,t);if("null_"===t)return this._encodeNull();if("int"===t||"enum"===t)return this._encodeInt(e,r.args&&r.reverseArgs[0]);if("bool"===t)return this._encodeBool(e);if("objDesc"===t)return this._encodeStr(e,t);throw new Error("Unsupported tag: "+t)},h.prototype._isNumstr=function(t){return/^[0-9 ]*$/.test(t)},h.prototype._isPrintstr=function(t){return/^[A-Za-z0-9 '\(\)\+,\-\.\/:=\?]*$/.test(t)}},9220(t,e,r){var n=r(4317);function i(t){this._reporterState={obj:null,path:[],options:t||{},errors:[]}}function o(t,e){this.path=t,this.rethrow(e)}e.a=i,i.prototype.isError=function(t){return t instanceof o},i.prototype.save=function(){var t=this._reporterState;return{obj:t.obj,pathLen:t.path.length}},i.prototype.restore=function(t){var e=this._reporterState;e.obj=t.obj,e.path=e.path.slice(0,t.pathLen)},i.prototype.enterKey=function(t){return this._reporterState.path.push(t)},i.prototype.exitKey=function(t){var e=this._reporterState;e.path=e.path.slice(0,t-1)},i.prototype.leaveKey=function(t,e,r){var n=this._reporterState;this.exitKey(t),null!==n.obj&&(n.obj[e]=r)},i.prototype.path=function(){return this._reporterState.path.join("/")},i.prototype.enterObject=function(){var t=this._reporterState,e=t.obj;return t.obj={},e},i.prototype.leaveObject=function(t){var e=this._reporterState,r=e.obj;return e.obj=t,r},i.prototype.error=function(t){var e,r=this._reporterState,n=t instanceof o;if(e=n?t:new o(r.path.map(function(t){return"["+JSON.stringify(t)+"]"}).join(""),t.message||t,t.stack),!r.options.partial)throw e;return n||r.errors.push(e),e},i.prototype.wrapResult=function(t){var e=this._reporterState;return e.options.partial?{result:this.isError(t)?null:t,errors:e.errors}:t},n(o,Error),o.prototype.rethrow=function(t){if(this.message=t+" at: "+(this.path||"(shallow)"),Error.captureStackTrace&&Error.captureStackTrace(this,o),!this.stack)try{throw new Error(this.message)}catch(t){this.stack=t.stack}return this}},4598(t,e,r){var n=r(2153);e.tagClass={0:"universal",1:"application",2:"context",3:"private"},e.tagClassByName=n._reverse(e.tagClass),e.tag={0:"end",1:"bool",2:"int",3:"bitstr",4:"octstr",5:"null_",6:"objid",7:"objDesc",8:"external",9:"real",10:"enum",11:"embed",12:"utf8str",13:"relativeOid",16:"seq",17:"set",18:"numstr",19:"printstr",20:"t61str",21:"videostr",22:"ia5str",23:"utctime",24:"gentime",25:"graphstr",26:"iso646str",27:"genstr",28:"unistr",29:"charstr",30:"bmpstr"},e.tagByName=n._reverse(e.tag)},2153(t,e,r){var n=e;n._reverse=function(t){var e={};return Object.keys(t).forEach(function(r){(0|r)==r&&(r|=0);var n=t[r];e[n]=r}),e},n.der=r(4598)},2010(t,e,r){var n=r(4317),i=r(7568),o=i.base,a=i.bignum,s=i.constants.der;function u(t){this.enc="der",this.name=t.name,this.entity=t,this.tree=new h,this.tree._init(t.body)}function h(t){o.Node.call(this,"der",t)}function f(t,e){var r=t.readUInt8(e);if(t.isError(r))return r;var n=s.tagClass[r>>6],i=!(32&r);if(31&~r)r&=31;else{var o=r;for(r=0;!(128&~o);){if(o=t.readUInt8(e),t.isError(o))return o;r<<=7,r|=127&o}}return{cls:n,primitive:i,tag:r,tagStr:s.tag[r]}}function l(t,e,r){var n=t.readUInt8(r);if(t.isError(n))return n;if(!e&&128===n)return null;if(!(128&n))return n;var i=127&n;if(i>4)return t.error("length octect is too long");n=0;for(var o=0;o<i;o++){n<<=8;var a=t.readUInt8(r);if(t.isError(a))return a;n|=a}return n}t.exports=u,u.prototype.decode=function(t,e){return t instanceof o.DecoderBuffer||(t=new o.DecoderBuffer(t,e)),this.tree._decode(t,e)},n(h,o.Node),h.prototype._peekTag=function(t,e,r){if(t.isEmpty())return!1;var n=t.save(),i=f(t,'Failed to peek tag: "'+e+'"');return t.isError(i)?i:(t.restore(n),i.tag===e||i.tagStr===e||i.tagStr+"of"===e||r)},h.prototype._decodeTag=function(t,e,r){var n=f(t,'Failed to decode tag of "'+e+'"');if(t.isError(n))return n;var i=l(t,n.primitive,'Failed to get length of "'+e+'"');if(t.isError(i))return i;if(!r&&n.tag!==e&&n.tagStr!==e&&n.tagStr+"of"!==e)return t.error('Failed to match tag: "'+e+'"');if(n.primitive||null!==i)return t.skip(i,'Failed to match body of: "'+e+'"');var o=t.save(),a=this._skipUntilEnd(t,'Failed to skip indefinite length body: "'+this.tag+'"');return t.isError(a)?a:(i=t.offset-o.offset,t.restore(o),t.skip(i,'Failed to match body of: "'+e+'"'))},h.prototype._skipUntilEnd=function(t,e){for(;;){var r=f(t,e);if(t.isError(r))return r;var n,i=l(t,r.primitive,e);if(t.isError(i))return i;if(n=r.primitive||null!==i?t.skip(i):this._skipUntilEnd(t,e),t.isError(n))return n;if("end"===r.tagStr)break}},h.prototype._decodeList=function(t,e,r,n){for(var i=[];!t.isEmpty();){var o=this._peekTag(t,"end");if(t.isError(o))return o;var a=r.decode(t,"der",n);if(t.isError(a)&&o)break;i.push(a)}return i},h.prototype._decodeStr=function(t,e){if("bitstr"===e){var r=t.readUInt8();return t.isError(r)?r:{unused:r,data:t.raw()}}if("bmpstr"===e){var n=t.raw();if(n.length%2==1)return t.error("Decoding of string type: bmpstr length mismatch");for(var i="",o=0;o<n.length/2;o++)i+=String.fromCharCode(n.readUInt16BE(2*o));return i}if("numstr"===e){var a=t.raw().toString("ascii");return this._isNumstr(a)?a:t.error("Decoding of string type: numstr unsupported characters")}if("octstr"===e)return t.raw();if("objDesc"===e)return t.raw();if("printstr"===e){var s=t.raw().toString("ascii");return this._isPrintstr(s)?s:t.error("Decoding of string type: printstr unsupported characters")}return/str$/.test(e)?t.raw().toString():t.error("Decoding of string type: "+e+" unsupported")},h.prototype._decodeObjid=function(t,e,r){for(var n,i=[],o=0;!t.isEmpty();){var a=t.readUInt8();o<<=7,o|=127&a,128&a||(i.push(o),o=0)}128&a&&i.push(o);var s=i[0]/40|0,u=i[0]%40;if(n=r?i:[s,u].concat(i.slice(1)),e){var h=e[n.join(" ")];void 0===h&&(h=e[n.join(".")]),void 0!==h&&(n=h)}return n},h.prototype._decodeTime=function(t,e){var r=t.raw().toString();if("gentime"===e)var n=0|r.slice(0,4),i=0|r.slice(4,6),o=0|r.slice(6,8),a=0|r.slice(8,10),s=0|r.slice(10,12),u=0|r.slice(12,14);else{if("utctime"!==e)return t.error("Decoding "+e+" time is not supported yet");n=0|r.slice(0,2),i=0|r.slice(2,4),o=0|r.slice(4,6),a=0|r.slice(6,8),s=0|r.slice(8,10),u=0|r.slice(10,12);n=n<70?2e3+n:1900+n}return Date.UTC(n,i-1,o,a,s,u,0)},h.prototype._decodeNull=function(t){return null},h.prototype._decodeBool=function(t){var e=t.readUInt8();return t.isError(e)?e:0!==e},h.prototype._decodeInt=function(t,e){var r=t.raw(),n=new a(r);return e&&(n=e[n.toString(10)]||n),n},h.prototype._use=function(t,e){return"function"==typeof t&&(t=t(e)),t._getDecoder("der").tree}},2853(t,e,r){var n=e;n.der=r(2010),n.pem=r(8903)},8903(t,e,r){var n=r(4317),i=r(8287).Buffer,o=r(2010);function a(t){o.call(this,t),this.enc="pem"}n(a,o),t.exports=a,a.prototype.decode=function(t,e){for(var r=t.toString().split(/[\r\n]+/g),n=e.label.toUpperCase(),a=/^-----(BEGIN|END) ([^-]+)-----$/,s=-1,u=-1,h=0;h<r.length;h++){var f=r[h].match(a);if(null!==f&&f[2]===n){if(-1!==s){if("END"!==f[1])break;u=h;break}if("BEGIN"!==f[1])break;s=h}}if(-1===s||-1===u)throw new Error("PEM section not found for: "+n);var l=r.slice(s+1,u).join("");l.replace(/[^a-z0-9\+\/=]+/gi,"");var c=new i(l,"base64");return o.prototype.decode.call(this,c,e)}},82(t,e,r){var n=r(4317),i=r(8287).Buffer,o=r(7568),a=o.base,s=o.constants.der;function u(t){this.enc="der",this.name=t.name,this.entity=t,this.tree=new h,this.tree._init(t.body)}function h(t){a.Node.call(this,"der",t)}function f(t){return t<10?"0"+t:t}t.exports=u,u.prototype.encode=function(t,e){return this.tree._encode(t,e).join()},n(h,a.Node),h.prototype._encodeComposite=function(t,e,r,n){var o,a=function(t,e,r,n){var i;"seqof"===t?t="seq":"setof"===t&&(t="set");if(s.tagByName.hasOwnProperty(t))i=s.tagByName[t];else{if("number"!=typeof t||(0|t)!==t)return n.error("Unknown tag: "+t);i=t}if(i>=31)return n.error("Multi-octet tag encoding unsupported");e||(i|=32);return i|=s.tagClassByName[r||"universal"]<<6,i}(t,e,r,this.reporter);if(n.length<128)return(o=new i(2))[0]=a,o[1]=n.length,this._createEncoderBuffer([o,n]);for(var u=1,h=n.length;h>=256;h>>=8)u++;(o=new i(2+u))[0]=a,o[1]=128|u;h=1+u;for(var f=n.length;f>0;h--,f>>=8)o[h]=255&f;return this._createEncoderBuffer([o,n])},h.prototype._encodeStr=function(t,e){if("bitstr"===e)return this._createEncoderBuffer([0|t.unused,t.data]);if("bmpstr"===e){for(var r=new i(2*t.length),n=0;n<t.length;n++)r.writeUInt16BE(t.charCodeAt(n),2*n);return this._createEncoderBuffer(r)}return"numstr"===e?this._isNumstr(t)?this._createEncoderBuffer(t):this.reporter.error("Encoding of string type: numstr supports only digits and space"):"printstr"===e?this._isPrintstr(t)?this._createEncoderBuffer(t):this.reporter.error("Encoding of string type: printstr supports only latin upper and lower case letters, digits, space, apostrophe, left and rigth parenthesis, plus sign, comma, hyphen, dot, slash, colon, equal sign, question mark"):/str$/.test(e)||"objDesc"===e?this._createEncoderBuffer(t):this.reporter.error("Encoding of string type: "+e+" unsupported")},h.prototype._encodeObjid=function(t,e,r){if("string"==typeof t){if(!e)return this.reporter.error("string objid given, but no values map found");if(!e.hasOwnProperty(t))return this.reporter.error("objid not found in values map");t=e[t].split(/[\s\.]+/g);for(var n=0;n<t.length;n++)t[n]|=0}else if(Array.isArray(t)){t=t.slice();for(n=0;n<t.length;n++)t[n]|=0}if(!Array.isArray(t))return this.reporter.error("objid() should be either array or string, got: "+JSON.stringify(t));if(!r){if(t[1]>=40)return this.reporter.error("Second objid identifier OOB");t.splice(0,2,40*t[0]+t[1])}var o=0;for(n=0;n<t.length;n++){var a=t[n];for(o++;a>=128;a>>=7)o++}var s=new i(o),u=s.length-1;for(n=t.length-1;n>=0;n--){a=t[n];for(s[u--]=127&a;(a>>=7)>0;)s[u--]=128|127&a}return this._createEncoderBuffer(s)},h.prototype._encodeTime=function(t,e){var r,n=new Date(t);return"gentime"===e?r=[f(n.getFullYear()),f(n.getUTCMonth()+1),f(n.getUTCDate()),f(n.getUTCHours()),f(n.getUTCMinutes()),f(n.getUTCSeconds()),"Z"].join(""):"utctime"===e?r=[f(n.getFullYear()%100),f(n.getUTCMonth()+1),f(n.getUTCDate()),f(n.getUTCHours()),f(n.getUTCMinutes()),f(n.getUTCSeconds()),"Z"].join(""):this.reporter.error("Encoding "+e+" time is not supported yet"),this._encodeStr(r,"octstr")},h.prototype._encodeNull=function(){return this._createEncoderBuffer("")},h.prototype._encodeInt=function(t,e){if("string"==typeof t){if(!e)return this.reporter.error("String int or enum given, but no values map");if(!e.hasOwnProperty(t))return this.reporter.error("Values map doesn't contain: "+JSON.stringify(t));t=e[t]}if("number"!=typeof t&&!i.isBuffer(t)){var r=t.toArray();!t.sign&&128&r[0]&&r.unshift(0),t=new i(r)}if(i.isBuffer(t)){var n=t.length;0===t.length&&n++;var o=new i(n);return t.copy(o),0===t.length&&(o[0]=0),this._createEncoderBuffer(o)}if(t<128)return this._createEncoderBuffer(t);if(t<256)return this._createEncoderBuffer([0,t]);n=1;for(var a=t;a>=256;a>>=8)n++;for(a=(o=new Array(n)).length-1;a>=0;a--)o[a]=255&t,t>>=8;return 128&o[0]&&o.unshift(0),this._createEncoderBuffer(new i(o))},h.prototype._encodeBool=function(t){return this._createEncoderBuffer(t?255:0)},h.prototype._use=function(t,e){return"function"==typeof t&&(t=t(e)),t._getEncoder("der").tree},h.prototype._skipDefault=function(t,e,r){var n,i=this._baseState;if(null===i.default)return!1;var o=t.join();if(void 0===i.defaultBuffer&&(i.defaultBuffer=this._encodeValue(i.default,e,r).join()),o.length!==i.defaultBuffer.length)return!1;for(n=0;n<o.length;n++)if(o[n]!==i.defaultBuffer[n])return!1;return!0}},4669(t,e,r){var n=e;n.der=r(82),n.pem=r(735)},735(t,e,r){var n=r(4317),i=r(82);function o(t){i.call(this,t),this.enc="pem"}n(o,i),t.exports=o,o.prototype.encode=function(t,e){for(var r=i.prototype.encode.call(this,t).toString("base64"),n=["-----BEGIN "+e.label+"-----"],o=0;o<r.length;o+=64)n.push(r.slice(o,o+64));return n.push("-----END "+e.label+"-----"),n.join("\n")}},4148(t,e,r){"use strict";var n=r(5606);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)}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,s(n.key),n)}}function a(t,e,r){return e&&o(t.prototype,e),r&&o(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function s(t){var e=function(t,e){if("object"!==i(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==i(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===i(e)?e:String(e)}var u,h,f=r(9597).codes,l=f.ERR_AMBIGUOUS_ARGUMENT,c=f.ERR_INVALID_ARG_TYPE,d=f.ERR_INVALID_ARG_VALUE,p=f.ERR_INVALID_RETURN_VALUE,y=f.ERR_MISSING_ARGS,g=r(3918),m=r(537).inspect,b=r(537).types,v=b.isPromise,_=b.isRegExp,w=r(9133)(),E=r(9394)(),M=r(8075)("RegExp.prototype.test");new Map;function S(){var t=r(2299);u=t.isDeepEqual,h=t.isDeepStrictEqual}var k=!1,A=t.exports=B,x={};function O(t){if(t.message instanceof Error)throw t.message;throw new g(t)}function R(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 g({actual:r,expected:!0,message:n,operator:"==",stackStartFn:t});throw o.generatedMessage=i,o}}function B(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];R.apply(void 0,[B,e.length].concat(e))}A.fail=function t(e,r,i,o,a){var s,u=arguments.length;if(0===u)s="Failed";else if(1===u)i=e,e=void 0;else{if(!1===k)k=!0,(n.emitWarning?n.emitWarning:console.warn.bind(console))("assert.fail() with more than one argument is deprecated. Please use assert.strictEqual() instead or only pass a message.","DeprecationWarning","DEP0094");2===u&&(o="!=")}if(i instanceof Error)throw i;var h={actual:e,expected:r,operator:void 0===o?"fail":o,stackStartFn:a||t};void 0!==i&&(h.message=i);var f=new g(h);throw s&&(f.message=s,f.generatedMessage=!0),f},A.AssertionError=g,A.ok=B,A.equal=function t(e,r,n){if(arguments.length<2)throw new y("actual","expected");e!=r&&O({actual:e,expected:r,message:n,operator:"==",stackStartFn:t})},A.notEqual=function t(e,r,n){if(arguments.length<2)throw new y("actual","expected");e==r&&O({actual:e,expected:r,message:n,operator:"!=",stackStartFn:t})},A.deepEqual=function t(e,r,n){if(arguments.length<2)throw new y("actual","expected");void 0===u&&S(),u(e,r)||O({actual:e,expected:r,message:n,operator:"deepEqual",stackStartFn:t})},A.notDeepEqual=function t(e,r,n){if(arguments.length<2)throw new y("actual","expected");void 0===u&&S(),u(e,r)&&O({actual:e,expected:r,message:n,operator:"notDeepEqual",stackStartFn:t})},A.deepStrictEqual=function t(e,r,n){if(arguments.length<2)throw new y("actual","expected");void 0===u&&S(),h(e,r)||O({actual:e,expected:r,message:n,operator:"deepStrictEqual",stackStartFn:t})},A.notDeepStrictEqual=function t(e,r,n){if(arguments.length<2)throw new y("actual","expected");void 0===u&&S();h(e,r)&&O({actual:e,expected:r,message:n,operator:"notDeepStrictEqual",stackStartFn:t})},A.strictEqual=function t(e,r,n){if(arguments.length<2)throw new y("actual","expected");E(e,r)||O({actual:e,expected:r,message:n,operator:"strictEqual",stackStartFn:t})},A.notStrictEqual=function t(e,r,n){if(arguments.length<2)throw new y("actual","expected");E(e,r)&&O({actual:e,expected:r,message:n,operator:"notStrictEqual",stackStartFn:t})};var j=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]&&_(e[t])&&M(e[t],n[t])?i[t]=n[t]:i[t]=e[t])})});function I(t,e,r,n){if("function"!=typeof e){if(_(e))return M(e,t);if(2===arguments.length)throw new c("expected",["Function","RegExp"],e);if("object"!==i(t)||null===t){var o=new g({actual:t,expected:e,message:r,operator:"deepStrictEqual",stackStartFn:n});throw o.operator=n.name,o}var a=Object.keys(e);if(e instanceof Error)a.push("name","message");else if(0===a.length)throw new d("error",e,"may not be an empty object");return void 0===u&&S(),a.forEach(function(i){"string"==typeof t[i]&&_(e[i])&&M(e[i],t[i])||function(t,e,r,n,i,o){if(!(r in t)||!h(t[r],e[r])){if(!n){var a=new j(t,i),s=new j(e,i,t),u=new g({actual:a,expected:s,operator:"deepStrictEqual",stackStartFn:o});throw u.actual=t,u.expected=e,u.operator=o.name,u}O({actual:t,expected:e,message:n,operator:o.name,stackStartFn:o})}}(t,e,i,r,a,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 c("fn","Function",t);try{t()}catch(t){return t}return x}function L(t){return v(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(!L(e=t()))throw new p("instance of Promise","promiseFn",e)}else{if(!L(t))throw new c("promiseFn",["Function","Promise"],t);e=t}return Promise.resolve().then(function(){return e}).then(function(){return x}).catch(function(t){return t})})}function U(t,e,r,n){if("string"==typeof r){if(4===arguments.length)throw new c("error",["Object","Error","Function","RegExp"],r);if("object"===i(e)&&null!==e){if(e.message===r)throw new l("error/message",'The error message "'.concat(e.message,'" is identical to the message.'))}else if(e===r)throw new l("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 c("error",["Object","Error","Function","RegExp"],r);if(e===x){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&&!I(e,r,n,t))throw e}function N(t,e,r,n){if(e!==x){if("string"==typeof r&&(n=r,r=void 0),!r||I(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(t,e,r,n,o){if(!_(e))throw new c("regexp","RegExp",e);var a="match"===o;if("string"!=typeof t||M(e,t)!==a){if(r instanceof Error)throw r;var s=!r;r=r||("string"!=typeof t?'The "string" argument must be of type string. Received type '+"".concat(i(t)," (").concat(m(t),")"):(a?"The input did not match the regular expression ":"The input was expected to not match the regular expression ")+"".concat(m(e),". Input:\n\n").concat(m(t),"\n"));var u=new g({actual:t,expected:e,message:r,operator:o,stackStartFn:n});throw u.generatedMessage=s,u}}function C(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];R.apply(void 0,[C,e.length].concat(e))}A.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];U.apply(void 0,[t,T(e)].concat(n))},A.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 U.apply(void 0,[t,e].concat(n))})},A.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];N.apply(void 0,[t,T(e)].concat(n))},A.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 N.apply(void 0,[t,e].concat(n))})},A.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+=m(e);var n=new g({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 s=n.stack.split("\n"),u=0;u<a.length;u++){var h=s.indexOf(a[u]);if(-1!==h){s=s.slice(0,h);break}}n.stack="".concat(s.join("\n"),"\n").concat(a.join("\n"))}throw n}},A.match=function t(e,r,n){D(e,r,n,t,"match")},A.doesNotMatch=function t(e,r,n){D(e,r,n,t,"doesNotMatch")},A.strict=w(C,A,{equal:A.strictEqual,deepEqual:A.deepStrictEqual,notEqual:A.notStrictEqual,notDeepEqual:A.notDeepStrictEqual}),A.strict.strict=A.strict},3918(t,e,r){"use strict";var n=r(5606);function i(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 o(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?i(Object(r),!0).forEach(function(e){a(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):i(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function a(t,e,r){return(e=u(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function s(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,u(n.key),n)}}function u(t){var e=function(t,e){if("object"!==g(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==g(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===g(e)?e:String(e)}function h(t,e){if(e&&("object"===g(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return f(t)}function f(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function l(t){var e="function"==typeof Map?new Map:void 0;return l=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,y(this).constructor)}return n.prototype=Object.create(t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),p(n,t)},l(t)}function c(t,e,r){return c=d()?Reflect.construct.bind():function(t,e,r){var n=[null];n.push.apply(n,e);var i=new(Function.bind.apply(t,n));return r&&p(i,r.prototype),i},c.apply(null,arguments)}function d(){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 p(t,e){return p=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},p(t,e)}function y(t){return y=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},y(t)}function g(t){return g="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},g(t)}var m=r(537).inspect,b=r(9597).codes.ERR_INVALID_ARG_TYPE;function v(t,e,r){return(void 0===r||r>t.length)&&(r=t.length),t.substring(r-e.length,r)===e}var _="",w="",E="",M="",S={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 k(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 A(t){return m(t,{compact:!1,customInspect:!1,depth:1e3,maxArrayLength:1/0,showHidden:!1,breakLength:1/0,showProxy:!1,sorted:!0,getters:!0})}function x(t,e,r){var i="",o="",a=0,s="",u=!1,h=A(t),f=h.split("\n"),l=A(e).split("\n"),c=0,d="";if("strictEqual"===r&&"object"===g(t)&&"object"===g(e)&&null!==t&&null!==e&&(r="strictEqualObject"),1===f.length&&1===l.length&&f[0]!==l[0]){var p=f[0].length+l[0].length;if(p<=10){if(!("object"===g(t)&&null!==t||"object"===g(e)&&null!==e||0===t&&0===e))return"".concat(S[r],"\n\n")+"".concat(f[0]," !== ").concat(l[0],"\n")}else if("strictEqualObject"!==r){if(p<(n.stderr&&n.stderr.isTTY?n.stderr.columns:80)){for(;f[0][c]===l[0][c];)c++;c>2&&(d="\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)}(" ",c),"^"),c=0)}}}for(var y=f[f.length-1],m=l[l.length-1];y===m&&(c++<2?s="\n ".concat(y).concat(s):i=y,f.pop(),l.pop(),0!==f.length&&0!==l.length);)y=f[f.length-1],m=l[l.length-1];var b=Math.max(f.length,l.length);if(0===b){var k=h.split("\n");if(k.length>30)for(k[26]="".concat(_,"...").concat(M);k.length>27;)k.pop();return"".concat(S.notIdentical,"\n\n").concat(k.join("\n"),"\n")}c>3&&(s="\n".concat(_,"...").concat(M).concat(s),u=!0),""!==i&&(s="\n ".concat(i).concat(s),i="");var x=0,O=S[r]+"\n".concat(w,"+ actual").concat(M," ").concat(E,"- expected").concat(M),R=" ".concat(_,"...").concat(M," Lines skipped");for(c=0;c<b;c++){var B=c-a;if(f.length<c+1)B>1&&c>2&&(B>4?(o+="\n".concat(_,"...").concat(M),u=!0):B>3&&(o+="\n ".concat(l[c-2]),x++),o+="\n ".concat(l[c-1]),x++),a=c,i+="\n".concat(E,"-").concat(M," ").concat(l[c]),x++;else if(l.length<c+1)B>1&&c>2&&(B>4?(o+="\n".concat(_,"...").concat(M),u=!0):B>3&&(o+="\n ".concat(f[c-2]),x++),o+="\n ".concat(f[c-1]),x++),a=c,o+="\n".concat(w,"+").concat(M," ").concat(f[c]),x++;else{var j=l[c],I=f[c],T=I!==j&&(!v(I,",")||I.slice(0,-1)!==j);T&&v(j,",")&&j.slice(0,-1)===I&&(T=!1,I+=","),T?(B>1&&c>2&&(B>4?(o+="\n".concat(_,"...").concat(M),u=!0):B>3&&(o+="\n ".concat(f[c-2]),x++),o+="\n ".concat(f[c-1]),x++),a=c,o+="\n".concat(w,"+").concat(M," ").concat(I),i+="\n".concat(E,"-").concat(M," ").concat(j),x+=2):(o+=i,i="",1!==B&&0!==c||(o+="\n ".concat(I),x++))}if(x>20&&c<b-2)return"".concat(O).concat(R,"\n").concat(o,"\n").concat(_,"...").concat(M).concat(i,"\n")+"".concat(_,"...").concat(M)}return"".concat(O).concat(u?R:"","\n").concat(o).concat(i).concat(s).concat(d)}var O=function(t,e){!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}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&p(t,e)}(v,t);var r,i,a,u,l,c=(r=v,i=d(),function(){var t,e=y(r);if(i){var n=y(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return h(this,t)});function v(t){var e;if(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,v),"object"!==g(t)||null===t)throw new b("options","Object",t);var r=t.message,i=t.operator,o=t.stackStartFn,a=t.actual,s=t.expected,u=Error.stackTraceLimit;if(Error.stackTraceLimit=0,null!=r)e=c.call(this,String(r));else if(n.stderr&&n.stderr.isTTY&&(n.stderr&&n.stderr.getColorDepth&&1!==n.stderr.getColorDepth()?(_="",w="",M="",E=""):(_="",w="",M="",E="")),"object"===g(a)&&null!==a&&"object"===g(s)&&null!==s&&"stack"in a&&a instanceof Error&&"stack"in s&&s instanceof Error&&(a=k(a),s=k(s)),"deepStrictEqual"===i||"strictEqual"===i)e=c.call(this,x(a,s,i));else if("notDeepStrictEqual"===i||"notStrictEqual"===i){var l=S[i],d=A(a).split("\n");if("notStrictEqual"===i&&"object"===g(a)&&null!==a&&(l=S.notStrictEqualObject),d.length>30)for(d[26]="".concat(_,"...").concat(M);d.length>27;)d.pop();e=1===d.length?c.call(this,"".concat(l," ").concat(d[0])):c.call(this,"".concat(l,"\n\n").concat(d.join("\n"),"\n"))}else{var p=A(a),y="",m=S[i];"notDeepEqual"===i||"notEqual"===i?(p="".concat(S[i],"\n\n").concat(p)).length>1024&&(p="".concat(p.slice(0,1021),"...")):(y="".concat(A(s)),p.length>512&&(p="".concat(p.slice(0,509),"...")),y.length>512&&(y="".concat(y.slice(0,509),"...")),"deepEqual"===i||"equal"===i?p="".concat(m,"\n\n").concat(p,"\n\nshould equal\n\n"):y=" ".concat(i," ").concat(y)),e=c.call(this,"".concat(p).concat(y))}return Error.stackTraceLimit=u,e.generatedMessage=!r,Object.defineProperty(f(e),"name",{value:"AssertionError [ERR_ASSERTION]",enumerable:!1,writable:!0,configurable:!0}),e.code="ERR_ASSERTION",e.actual=a,e.expected=s,e.operator=i,Error.captureStackTrace&&Error.captureStackTrace(f(e),o),e.stack,e.name="AssertionError",h(e)}return a=v,(u=[{key:"toString",value:function(){return"".concat(this.name," [").concat(this.code,"]: ").concat(this.message)}},{key:e,value:function(t,e){return m(this,o(o({},e),{},{customInspect:!1,depth:0}))}}])&&s(a.prototype,u),l&&s(a,l),Object.defineProperty(a,"prototype",{writable:!1}),v}(l(Error),m.custom);t.exports=O},9597(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){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,o(n.key),n)}}function o(t){var e=function(t,e){if("object"!==n(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var i=r.call(t,e||"default");if("object"!==n(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===n(e)?e:String(e)}function a(t,e){return a=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},a(t,e)}function s(t){var e=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}}();return function(){var r,i=u(t);if(e){var o=u(this).constructor;r=Reflect.construct(i,arguments,o)}else r=i.apply(this,arguments);return function(t,e){if(e&&("object"===n(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,r)}}function u(t){return u=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},u(t)}var h,f,l={};function c(t,e,r){r||(r=Error);var n=function(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}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&a(t,e)}(f,r);var n,o,u,h=s(f);function f(r,n,i){var o;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,f),o=h.call(this,function(t,r,n){return"string"==typeof e?e:e(t,r,n)}(r,n,i)),o.code=t,o}return n=f,o&&i(n.prototype,o),u&&i(n,u),Object.defineProperty(n,"prototype",{writable:!1}),n}(r);l[t]=n}function d(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))}c("ERR_AMBIGUOUS_ARGUMENT",'The "%s" argument is ambiguous. %s',TypeError),c("ERR_INVALID_ARG_TYPE",function(t,e,i){var o,a,s,u;if(void 0===h&&(h=r(4148)),h("string"==typeof t,"'name' must be a string"),"string"==typeof e&&(a="not ",e.substr(!s||s<0?0:+s,a.length)===a)?(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"))u="The ".concat(t," ").concat(o," ").concat(d(e,"type"));else{var f=function(t,e,r){return"number"!=typeof r&&(r=0),!(r+e.length>t.length)&&-1!==t.indexOf(e,r)}(t,".")?"property":"argument";u='The "'.concat(t,'" ').concat(f," ").concat(o," ").concat(d(e,"type"))}return u+=". Received type ".concat(n(i))},TypeError),c("ERR_INVALID_ARG_VALUE",function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"is invalid";void 0===f&&(f=r(537));var i=f.inspect(e);return i.length>128&&(i="".concat(i.slice(0,128),"...")),"The argument '".concat(t,"' ").concat(n,". Received ").concat(i)},TypeError,RangeError),c("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),c("ERR_MISSING_ARGS",function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];void 0===h&&(h=r(4148)),h(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=l},2299(t,e,r){"use strict";function n(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,i,o,a,s=[],u=!0,h=!1;try{if(o=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=o.call(r)).done)&&(s.push(n.value),s.length!==e);u=!0);}catch(t){h=!0,i=t}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(h)throw i}}return s}}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return i(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return i(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(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 o(t){return o="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},o(t)}var a=void 0!==/a/g.flags,s=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},h=Object.is?Object.is:r(7653),f=Object.getOwnPropertySymbols?Object.getOwnPropertySymbols:function(){return[]},l=Number.isNaN?Number.isNaN:r(4133);function c(t){return t.call.bind(t)}var d=c(Object.prototype.hasOwnProperty),p=c(Object.prototype.propertyIsEnumerable),y=c(Object.prototype.toString),g=r(537).types,m=g.isAnyArrayBuffer,b=g.isArrayBufferView,v=g.isDate,_=g.isMap,w=g.isRegExp,E=g.isSet,M=g.isNativeError,S=g.isBoxedPrimitive,k=g.isNumberObject,A=g.isStringObject,x=g.isBooleanObject,O=g.isBigIntObject,R=g.isSymbolObject,B=g.isFloat32Array,j=g.isFloat64Array;function I(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 T(t){return Object.keys(t).filter(I).concat(f(t).filter(Object.prototype.propertyIsEnumerable.bind(t)))}
2
- /*!
3
- * The buffer module from node.js, for the browser.
4
- *
5
- * @author Feross Aboukhadijeh <feross@feross.org> <http://feross.org>
6
- * @license MIT
7
- */function L(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 P(t,e,r,n){if(t===e)return 0!==t||(!r||h(t,e));if(r){if("object"!==o(t))return"number"==typeof t&&l(t)&&l(e);if("object"!==o(e)||null===t||null===e)return!1;if(Object.getPrototypeOf(t)!==Object.getPrototypeOf(e))return!1}else{if(null===t||"object"!==o(t))return(null===e||"object"!==o(e))&&t==e;if(null===e||"object"!==o(e))return!1}var i,s,u,f,c=y(t);if(c!==y(e))return!1;if(Array.isArray(t)){if(t.length!==e.length)return!1;var d=T(t),p=T(e);return d.length===p.length&&N(t,e,r,n,1,d)}if("[object Object]"===c&&(!_(t)&&_(e)||!E(t)&&E(e)))return!1;if(v(t)){if(!v(e)||Date.prototype.getTime.call(t)!==Date.prototype.getTime.call(e))return!1}else if(w(t)){if(!w(e)||(u=t,f=e,!(a?u.source===f.source&&u.flags===f.flags:RegExp.prototype.toString.call(u)===RegExp.prototype.toString.call(f))))return!1}else if(M(t)||t instanceof Error){if(t.message!==e.message||t.name!==e.name)return!1}else{if(b(t)){if(r||!B(t)&&!j(t)){if(!function(t,e){return t.byteLength===e.byteLength&&0===L(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 g=T(t),I=T(e);return g.length===I.length&&N(t,e,r,n,0,g)}if(E(t))return!(!E(e)||t.size!==e.size)&&N(t,e,r,n,2);if(_(t))return!(!_(e)||t.size!==e.size)&&N(t,e,r,n,3);if(m(t)){if(s=e,(i=t).byteLength!==s.byteLength||0!==L(new Uint8Array(i),new Uint8Array(s)))return!1}else if(S(t)&&!function(t,e){return k(t)?k(e)&&h(Number.prototype.valueOf.call(t),Number.prototype.valueOf.call(e)):A(t)?A(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):O(t)?O(e)&&BigInt.prototype.valueOf.call(t)===BigInt.prototype.valueOf.call(e):R(e)&&Symbol.prototype.valueOf.call(t)===Symbol.prototype.valueOf.call(e)}(t,e))return!1}return N(t,e,r,n,0)}function U(t,e){return e.filter(function(e){return p(t,e)})}function N(t,e,r,i,a,h){if(5===arguments.length){h=Object.keys(t);var l=Object.keys(e);if(h.length!==l.length)return!1}for(var c=0;c<h.length;c++)if(!d(e,h[c]))return!1;if(r&&5===arguments.length){var y=f(t);if(0!==y.length){var g=0;for(c=0;c<y.length;c++){var m=y[c];if(p(t,m)){if(!p(e,m))return!1;h.push(m),g++}else if(p(e,m))return!1}var b=f(e);if(y.length!==b.length&&U(e,b).length!==g)return!1}else{var v=f(e);if(0!==v.length&&0!==U(e,v).length)return!1}}if(0===h.length&&(0===a||1===a&&0===t.length||0===t.size))return!0;if(void 0===i)i={val1:new Map,val2:new Map,position:0};else{var _=i.val1.get(t);if(void 0!==_){var w=i.val2.get(e);if(void 0!==w)return _===w}i.position++}i.val1.set(t,i.position),i.val2.set(e,i.position);var E=function(t,e,r,i,a,h){var f=0;if(2===h){if(!function(t,e,r,n){for(var i=null,a=s(t),u=0;u<a.length;u++){var h=a[u];if("object"===o(h)&&null!==h)null===i&&(i=new Set),i.add(h);else if(!e.has(h)){if(r)return!1;if(!F(t,e,h))return!1;null===i&&(i=new Set),i.add(h)}}if(null!==i){for(var f=s(e),l=0;l<f.length;l++){var c=f[l];if("object"===o(c)&&null!==c){if(!D(i,c,r,n))return!1}else if(!r&&!t.has(c)&&!D(i,c,r,n))return!1}return 0===i.size}return!0}(t,e,r,a))return!1}else if(3===h){if(!function(t,e,r,i){for(var a=null,s=u(t),h=0;h<s.length;h++){var f=n(s[h],2),l=f[0],c=f[1];if("object"===o(l)&&null!==l)null===a&&(a=new Set),a.add(l);else{var d=e.get(l);if(void 0===d&&!e.has(l)||!P(c,d,r,i)){if(r)return!1;if(!z(t,e,l,c,i))return!1;null===a&&(a=new Set),a.add(l)}}}if(null!==a){for(var p=u(e),y=0;y<p.length;y++){var g=n(p[y],2),m=g[0],b=g[1];if("object"===o(m)&&null!==m){if(!q(a,t,m,b,r,i))return!1}else if(!(r||t.has(m)&&P(t.get(m),b,!1,i)||q(a,t,m,b,!1,i)))return!1}return 0===a.size}return!0}(t,e,r,a))return!1}else if(1===h)for(;f<t.length;f++){if(!d(t,f)){if(d(e,f))return!1;for(var l=Object.keys(t);f<l.length;f++){var c=l[f];if(!d(e,c)||!P(t[c],e[c],r,a))return!1}return l.length===Object.keys(e).length}if(!d(e,f)||!P(t[f],e[f],r,a))return!1}for(f=0;f<i.length;f++){var p=i[f];if(!P(t[p],e[p],r,a))return!1}return!0}(t,e,r,h,i,a);return i.val1.delete(t),i.val2.delete(e),E}function D(t,e,r,n){for(var i=s(t),o=0;o<i.length;o++){var a=i[o];if(P(e,a,r,n))return t.delete(a),!0}return!1}function C(t){switch(o(t)){case"undefined":return null;case"object":return;case"symbol":return!1;case"string":t=+t;case"number":if(l(t))return!1}return!0}function F(t,e,r){var n=C(r);return null!=n?n:e.has(n)&&!t.has(n)}function z(t,e,r,n,i){var o=C(r);if(null!=o)return o;var a=e.get(o);return!(void 0===a&&!e.has(o)||!P(n,a,!1,i))&&(!t.has(o)&&P(n,a,!1,i))}function q(t,e,r,n,i,o){for(var a=s(t),u=0;u<a.length;u++){var h=a[u];if(P(r,h,i,o)&&P(n,e.get(h),i,o))return t.delete(h),!0}return!1}t.exports={isDeepEqual:function(t,e){return P(t,e,false)},isDeepStrictEqual:function(t,e){return P(t,e,true)}}},7526(t,e){"use strict";e.toByteArray=function(t){var e,r,o=s(t),a=o[0],u=o[1],h=new i(function(t,e,r){return 3*(e+r)/4-r}(0,a,u)),f=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)],h[f++]=e>>16&255,h[f++]=e>>8&255,h[f++]=255&e;2===u&&(e=n[t.charCodeAt(r)]<<2|n[t.charCodeAt(r+1)]>>4,h[f++]=255&e);1===u&&(e=n[t.charCodeAt(r)]<<10|n[t.charCodeAt(r+1)]<<4|n[t.charCodeAt(r+2)]>>2,h[f++]=e>>8&255,h[f++]=255&e);return h},e.fromByteArray=function(t){for(var e,n=t.length,i=n%3,o=[],a=16383,s=0,u=n-i;s<u;s+=a)o.push(h(t,s,s+a>u?u:s+a));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]+"="));return o.join("")};for(var r=[],n=[],i="undefined"!=typeof Uint8Array?Uint8Array:Array,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0;a<64;++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 u(t){return r[t>>18&63]+r[t>>12&63]+r[t>>6&63]+r[63&t]}function h(t,e,r){for(var n,i=[],o=e;o<r;o+=3)n=(t[o]<<16&16711680)+(t[o+1]<<8&65280)+(255&t[o+2]),i.push(u(n));return i.join("")}n["-".charCodeAt(0)]=62,n["_".charCodeAt(0)]=63},9404(t,e,r){!function(t,e){"use strict";function n(t,e){if(!t)throw new Error(e||"Assertion failed")}function i(t,e){t.super_=e;var r=function(){};r.prototype=e.prototype,t.prototype=new r,t.prototype.constructor=t}function o(t,e,r){if(o.isBN(t))return t;this.negative=0,this.words=null,this.length=0,this.red=null,null!==t&&("le"!==e&&"be"!==e||(r=e,e=10),this._init(t||0,e||10,r||"be"))}var a;"object"==typeof t?t.exports=o:e.BN=o,o.BN=o,o.wordSize=26;try{a="undefined"!=typeof window&&void 0!==window.Buffer?window.Buffer:r(7790).Buffer}catch(t){}function s(t,e){var r=t.charCodeAt(e);return r>=65&&r<=70?r-55:r>=97&&r<=102?r-87:r-48&15}function u(t,e,r){var n=s(t,r);return r-1>=e&&(n|=s(t,r-1)<<4),n}function h(t,e,r,n){for(var i=0,o=Math.min(t.length,r),a=e;a<o;a++){var s=t.charCodeAt(a)-48;i*=n,i+=s>=49?s-49+10:s>=17?s-17+10:s}return i}o.isBN=function(t){return t instanceof o||null!==t&&"object"==typeof t&&t.constructor.wordSize===o.wordSize&&Array.isArray(t.words)},o.max=function(t,e){return t.cmp(e)>0?t:e},o.min=function(t,e){return t.cmp(e)<0?t:e},o.prototype._init=function(t,e,r){if("number"==typeof t)return this._initNumber(t,e,r);if("object"==typeof t)return this._initArray(t,e,r);"hex"===e&&(e=16),n(e===(0|e)&&e>=2&&e<=36);var i=0;"-"===(t=t.toString().replace(/\s+/g,""))[0]&&(i++,this.negative=1),i<t.length&&(16===e?this._parseHex(t,i,r):(this._parseBase(t,e,i),"le"===r&&this._initArray(this.toArray(),e,r)))},o.prototype._initNumber=function(t,e,r){t<0&&(this.negative=1,t=-t),t<67108864?(this.words=[67108863&t],this.length=1):t<4503599627370496?(this.words=[67108863&t,t/67108864&67108863],this.length=2):(n(t<9007199254740992),this.words=[67108863&t,t/67108864&67108863,1],this.length=3),"le"===r&&this._initArray(this.toArray(),e,r)},o.prototype._initArray=function(t,e,r){if(n("number"==typeof t.length),t.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(t.length/3),this.words=new Array(this.length);for(var i=0;i<this.length;i++)this.words[i]=0;var o,a,s=0;if("be"===r)for(i=t.length-1,o=0;i>=0;i-=3)a=t[i]|t[i-1]<<8|t[i-2]<<16,this.words[o]|=a<<s&67108863,this.words[o+1]=a>>>26-s&67108863,(s+=24)>=26&&(s-=26,o++);else if("le"===r)for(i=0,o=0;i<t.length;i+=3)a=t[i]|t[i+1]<<8|t[i+2]<<16,this.words[o]|=a<<s&67108863,this.words[o+1]=a>>>26-s&67108863,(s+=24)>=26&&(s-=26,o++);return this.strip()},o.prototype._parseHex=function(t,e,r){this.length=Math.ceil((t.length-e)/6),this.words=new Array(this.length);for(var n=0;n<this.length;n++)this.words[n]=0;var i,o=0,a=0;if("be"===r)for(n=t.length-1;n>=e;n-=2)i=u(t,e,n)<<o,this.words[a]|=67108863&i,o>=18?(o-=18,a+=1,this.words[a]|=i>>>26):o+=8;else for(n=(t.length-e)%2==0?e+1:e;n<t.length;n+=2)i=u(t,e,n)<<o,this.words[a]|=67108863&i,o>=18?(o-=18,a+=1,this.words[a]|=i>>>26):o+=8;this.strip()},o.prototype._parseBase=function(t,e,r){this.words=[0],this.length=1;for(var n=0,i=1;i<=67108863;i*=e)n++;n--,i=i/e|0;for(var o=t.length-r,a=o%n,s=Math.min(o,o-a)+r,u=0,f=r;f<s;f+=n)u=h(t,f,f+n,e),this.imuln(i),this.words[0]+u<67108864?this.words[0]+=u:this._iaddn(u);if(0!==a){var l=1;for(u=h(t,f,t.length,e),f=0;f<a;f++)l*=e;this.imuln(l),this.words[0]+u<67108864?this.words[0]+=u:this._iaddn(u)}this.strip()},o.prototype.copy=function(t){t.words=new Array(this.length);for(var e=0;e<this.length;e++)t.words[e]=this.words[e];t.length=this.length,t.negative=this.negative,t.red=this.red},o.prototype.clone=function(){var t=new o(null);return this.copy(t),t},o.prototype._expand=function(t){for(;this.length<t;)this.words[this.length++]=0;return this},o.prototype.strip=function(){for(;this.length>1&&0===this.words[this.length-1];)this.length--;return this._normSign()},o.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},o.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var f=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],l=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],c=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function d(t,e,r){r.negative=e.negative^t.negative;var n=t.length+e.length|0;r.length=n,n=n-1|0;var i=0|t.words[0],o=0|e.words[0],a=i*o,s=67108863&a,u=a/67108864|0;r.words[0]=s;for(var h=1;h<n;h++){for(var f=u>>>26,l=67108863&u,c=Math.min(h,e.length-1),d=Math.max(0,h-t.length+1);d<=c;d++){var p=h-d|0;f+=(a=(i=0|t.words[p])*(o=0|e.words[d])+l)/67108864|0,l=67108863&a}r.words[h]=0|l,u=0|f}return 0!==u?r.words[h]=0|u:r.length--,r.strip()}o.prototype.toString=function(t,e){var r;if(e=0|e||1,16===(t=t||10)||"hex"===t){r="";for(var i=0,o=0,a=0;a<this.length;a++){var s=this.words[a],u=(16777215&(s<<i|o)).toString(16);o=s>>>24-i&16777215,(i+=2)>=26&&(i-=26,a--),r=0!==o||a!==this.length-1?f[6-u.length]+u+r:u+r}for(0!==o&&(r=o.toString(16)+r);r.length%e!==0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}if(t===(0|t)&&t>=2&&t<=36){var h=l[t],d=c[t];r="";var p=this.clone();for(p.negative=0;!p.isZero();){var y=p.modn(d).toString(t);r=(p=p.idivn(d)).isZero()?y+r:f[h-y.length]+y+r}for(this.isZero()&&(r="0"+r);r.length%e!==0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}n(!1,"Base should be between 2 and 36")},o.prototype.toNumber=function(){var t=this.words[0];return 2===this.length?t+=67108864*this.words[1]:3===this.length&&1===this.words[2]?t+=4503599627370496+67108864*this.words[1]:this.length>2&&n(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-t:t},o.prototype.toJSON=function(){return this.toString(16)},o.prototype.toBuffer=function(t,e){return n(void 0!==a),this.toArrayLike(a,t,e)},o.prototype.toArray=function(t,e){return this.toArrayLike(Array,t,e)},o.prototype.toArrayLike=function(t,e,r){var i=this.byteLength(),o=r||Math.max(1,i);n(i<=o,"byte array longer than desired length"),n(o>0,"Requested array length <= 0"),this.strip();var a,s,u="le"===e,h=new t(o),f=this.clone();if(u){for(s=0;!f.isZero();s++)a=f.andln(255),f.iushrn(8),h[s]=a;for(;s<o;s++)h[s]=0}else{for(s=0;s<o-i;s++)h[s]=0;for(s=0;!f.isZero();s++)a=f.andln(255),f.iushrn(8),h[o-s-1]=a}return h},Math.clz32?o.prototype._countBits=function(t){return 32-Math.clz32(t)}:o.prototype._countBits=function(t){var e=t,r=0;return e>=4096&&(r+=13,e>>>=13),e>=64&&(r+=7,e>>>=7),e>=8&&(r+=4,e>>>=4),e>=2&&(r+=2,e>>>=2),r+e},o.prototype._zeroBits=function(t){if(0===t)return 26;var e=t,r=0;return 8191&e||(r+=13,e>>>=13),127&e||(r+=7,e>>>=7),15&e||(r+=4,e>>>=4),3&e||(r+=2,e>>>=2),1&e||r++,r},o.prototype.bitLength=function(){var t=this.words[this.length-1],e=this._countBits(t);return 26*(this.length-1)+e},o.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,e=0;e<this.length;e++){var r=this._zeroBits(this.words[e]);if(t+=r,26!==r)break}return t},o.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},o.prototype.toTwos=function(t){return 0!==this.negative?this.abs().inotn(t).iaddn(1):this.clone()},o.prototype.fromTwos=function(t){return this.testn(t-1)?this.notn(t).iaddn(1).ineg():this.clone()},o.prototype.isNeg=function(){return 0!==this.negative},o.prototype.neg=function(){return this.clone().ineg()},o.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},o.prototype.iuor=function(t){for(;this.length<t.length;)this.words[this.length++]=0;for(var e=0;e<t.length;e++)this.words[e]=this.words[e]|t.words[e];return this.strip()},o.prototype.ior=function(t){return n(0===(this.negative|t.negative)),this.iuor(t)},o.prototype.or=function(t){return this.length>t.length?this.clone().ior(t):t.clone().ior(this)},o.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},o.prototype.iuand=function(t){var e;e=this.length>t.length?t:this;for(var r=0;r<e.length;r++)this.words[r]=this.words[r]&t.words[r];return this.length=e.length,this.strip()},o.prototype.iand=function(t){return n(0===(this.negative|t.negative)),this.iuand(t)},o.prototype.and=function(t){return this.length>t.length?this.clone().iand(t):t.clone().iand(this)},o.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},o.prototype.iuxor=function(t){var e,r;this.length>t.length?(e=this,r=t):(e=t,r=this);for(var n=0;n<r.length;n++)this.words[n]=e.words[n]^r.words[n];if(this!==e)for(;n<e.length;n++)this.words[n]=e.words[n];return this.length=e.length,this.strip()},o.prototype.ixor=function(t){return n(0===(this.negative|t.negative)),this.iuxor(t)},o.prototype.xor=function(t){return this.length>t.length?this.clone().ixor(t):t.clone().ixor(this)},o.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},o.prototype.inotn=function(t){n("number"==typeof t&&t>=0);var e=0|Math.ceil(t/26),r=t%26;this._expand(e),r>0&&e--;for(var i=0;i<e;i++)this.words[i]=67108863&~this.words[i];return r>0&&(this.words[i]=~this.words[i]&67108863>>26-r),this.strip()},o.prototype.notn=function(t){return this.clone().inotn(t)},o.prototype.setn=function(t,e){n("number"==typeof t&&t>=0);var r=t/26|0,i=t%26;return this._expand(r+1),this.words[r]=e?this.words[r]|1<<i:this.words[r]&~(1<<i),this.strip()},o.prototype.iadd=function(t){var e,r,n;if(0!==this.negative&&0===t.negative)return this.negative=0,e=this.isub(t),this.negative^=1,this._normSign();if(0===this.negative&&0!==t.negative)return t.negative=0,e=this.isub(t),t.negative=1,e._normSign();this.length>t.length?(r=this,n=t):(r=t,n=this);for(var i=0,o=0;o<n.length;o++)e=(0|r.words[o])+(0|n.words[o])+i,this.words[o]=67108863&e,i=e>>>26;for(;0!==i&&o<r.length;o++)e=(0|r.words[o])+i,this.words[o]=67108863&e,i=e>>>26;if(this.length=r.length,0!==i)this.words[this.length]=i,this.length++;else if(r!==this)for(;o<r.length;o++)this.words[o]=r.words[o];return this},o.prototype.add=function(t){var e;return 0!==t.negative&&0===this.negative?(t.negative=0,e=this.sub(t),t.negative^=1,e):0===t.negative&&0!==this.negative?(this.negative=0,e=t.sub(this),this.negative=1,e):this.length>t.length?this.clone().iadd(t):t.clone().iadd(this)},o.prototype.isub=function(t){if(0!==t.negative){t.negative=0;var e=this.iadd(t);return t.negative=1,e._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(t),this.negative=1,this._normSign();var r,n,i=this.cmp(t);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;i>0?(r=this,n=t):(r=t,n=this);for(var o=0,a=0;a<n.length;a++)o=(e=(0|r.words[a])-(0|n.words[a])+o)>>26,this.words[a]=67108863&e;for(;0!==o&&a<r.length;a++)o=(e=(0|r.words[a])+o)>>26,this.words[a]=67108863&e;if(0===o&&a<r.length&&r!==this)for(;a<r.length;a++)this.words[a]=r.words[a];return this.length=Math.max(this.length,a),r!==this&&(this.negative=1),this.strip()},o.prototype.sub=function(t){return this.clone().isub(t)};var p=function(t,e,r){var n,i,o,a=t.words,s=e.words,u=r.words,h=0,f=0|a[0],l=8191&f,c=f>>>13,d=0|a[1],p=8191&d,y=d>>>13,g=0|a[2],m=8191&g,b=g>>>13,v=0|a[3],_=8191&v,w=v>>>13,E=0|a[4],M=8191&E,S=E>>>13,k=0|a[5],A=8191&k,x=k>>>13,O=0|a[6],R=8191&O,B=O>>>13,j=0|a[7],I=8191&j,T=j>>>13,L=0|a[8],P=8191&L,U=L>>>13,N=0|a[9],D=8191&N,C=N>>>13,F=0|s[0],z=8191&F,q=F>>>13,Z=0|s[1],W=8191&Z,K=Z>>>13,V=0|s[2],H=8191&V,G=V>>>13,$=0|s[3],J=8191&$,Y=$>>>13,X=0|s[4],Q=8191&X,tt=X>>>13,et=0|s[5],rt=8191&et,nt=et>>>13,it=0|s[6],ot=8191&it,at=it>>>13,st=0|s[7],ut=8191&st,ht=st>>>13,ft=0|s[8],lt=8191&ft,ct=ft>>>13,dt=0|s[9],pt=8191&dt,yt=dt>>>13;r.negative=t.negative^e.negative,r.length=19;var gt=(h+(n=Math.imul(l,z))|0)+((8191&(i=(i=Math.imul(l,q))+Math.imul(c,z)|0))<<13)|0;h=((o=Math.imul(c,q))+(i>>>13)|0)+(gt>>>26)|0,gt&=67108863,n=Math.imul(p,z),i=(i=Math.imul(p,q))+Math.imul(y,z)|0,o=Math.imul(y,q);var mt=(h+(n=n+Math.imul(l,W)|0)|0)+((8191&(i=(i=i+Math.imul(l,K)|0)+Math.imul(c,W)|0))<<13)|0;h=((o=o+Math.imul(c,K)|0)+(i>>>13)|0)+(mt>>>26)|0,mt&=67108863,n=Math.imul(m,z),i=(i=Math.imul(m,q))+Math.imul(b,z)|0,o=Math.imul(b,q),n=n+Math.imul(p,W)|0,i=(i=i+Math.imul(p,K)|0)+Math.imul(y,W)|0,o=o+Math.imul(y,K)|0;var bt=(h+(n=n+Math.imul(l,H)|0)|0)+((8191&(i=(i=i+Math.imul(l,G)|0)+Math.imul(c,H)|0))<<13)|0;h=((o=o+Math.imul(c,G)|0)+(i>>>13)|0)+(bt>>>26)|0,bt&=67108863,n=Math.imul(_,z),i=(i=Math.imul(_,q))+Math.imul(w,z)|0,o=Math.imul(w,q),n=n+Math.imul(m,W)|0,i=(i=i+Math.imul(m,K)|0)+Math.imul(b,W)|0,o=o+Math.imul(b,K)|0,n=n+Math.imul(p,H)|0,i=(i=i+Math.imul(p,G)|0)+Math.imul(y,H)|0,o=o+Math.imul(y,G)|0;var vt=(h+(n=n+Math.imul(l,J)|0)|0)+((8191&(i=(i=i+Math.imul(l,Y)|0)+Math.imul(c,J)|0))<<13)|0;h=((o=o+Math.imul(c,Y)|0)+(i>>>13)|0)+(vt>>>26)|0,vt&=67108863,n=Math.imul(M,z),i=(i=Math.imul(M,q))+Math.imul(S,z)|0,o=Math.imul(S,q),n=n+Math.imul(_,W)|0,i=(i=i+Math.imul(_,K)|0)+Math.imul(w,W)|0,o=o+Math.imul(w,K)|0,n=n+Math.imul(m,H)|0,i=(i=i+Math.imul(m,G)|0)+Math.imul(b,H)|0,o=o+Math.imul(b,G)|0,n=n+Math.imul(p,J)|0,i=(i=i+Math.imul(p,Y)|0)+Math.imul(y,J)|0,o=o+Math.imul(y,Y)|0;var _t=(h+(n=n+Math.imul(l,Q)|0)|0)+((8191&(i=(i=i+Math.imul(l,tt)|0)+Math.imul(c,Q)|0))<<13)|0;h=((o=o+Math.imul(c,tt)|0)+(i>>>13)|0)+(_t>>>26)|0,_t&=67108863,n=Math.imul(A,z),i=(i=Math.imul(A,q))+Math.imul(x,z)|0,o=Math.imul(x,q),n=n+Math.imul(M,W)|0,i=(i=i+Math.imul(M,K)|0)+Math.imul(S,W)|0,o=o+Math.imul(S,K)|0,n=n+Math.imul(_,H)|0,i=(i=i+Math.imul(_,G)|0)+Math.imul(w,H)|0,o=o+Math.imul(w,G)|0,n=n+Math.imul(m,J)|0,i=(i=i+Math.imul(m,Y)|0)+Math.imul(b,J)|0,o=o+Math.imul(b,Y)|0,n=n+Math.imul(p,Q)|0,i=(i=i+Math.imul(p,tt)|0)+Math.imul(y,Q)|0,o=o+Math.imul(y,tt)|0;var wt=(h+(n=n+Math.imul(l,rt)|0)|0)+((8191&(i=(i=i+Math.imul(l,nt)|0)+Math.imul(c,rt)|0))<<13)|0;h=((o=o+Math.imul(c,nt)|0)+(i>>>13)|0)+(wt>>>26)|0,wt&=67108863,n=Math.imul(R,z),i=(i=Math.imul(R,q))+Math.imul(B,z)|0,o=Math.imul(B,q),n=n+Math.imul(A,W)|0,i=(i=i+Math.imul(A,K)|0)+Math.imul(x,W)|0,o=o+Math.imul(x,K)|0,n=n+Math.imul(M,H)|0,i=(i=i+Math.imul(M,G)|0)+Math.imul(S,H)|0,o=o+Math.imul(S,G)|0,n=n+Math.imul(_,J)|0,i=(i=i+Math.imul(_,Y)|0)+Math.imul(w,J)|0,o=o+Math.imul(w,Y)|0,n=n+Math.imul(m,Q)|0,i=(i=i+Math.imul(m,tt)|0)+Math.imul(b,Q)|0,o=o+Math.imul(b,tt)|0,n=n+Math.imul(p,rt)|0,i=(i=i+Math.imul(p,nt)|0)+Math.imul(y,rt)|0,o=o+Math.imul(y,nt)|0;var Et=(h+(n=n+Math.imul(l,ot)|0)|0)+((8191&(i=(i=i+Math.imul(l,at)|0)+Math.imul(c,ot)|0))<<13)|0;h=((o=o+Math.imul(c,at)|0)+(i>>>13)|0)+(Et>>>26)|0,Et&=67108863,n=Math.imul(I,z),i=(i=Math.imul(I,q))+Math.imul(T,z)|0,o=Math.imul(T,q),n=n+Math.imul(R,W)|0,i=(i=i+Math.imul(R,K)|0)+Math.imul(B,W)|0,o=o+Math.imul(B,K)|0,n=n+Math.imul(A,H)|0,i=(i=i+Math.imul(A,G)|0)+Math.imul(x,H)|0,o=o+Math.imul(x,G)|0,n=n+Math.imul(M,J)|0,i=(i=i+Math.imul(M,Y)|0)+Math.imul(S,J)|0,o=o+Math.imul(S,Y)|0,n=n+Math.imul(_,Q)|0,i=(i=i+Math.imul(_,tt)|0)+Math.imul(w,Q)|0,o=o+Math.imul(w,tt)|0,n=n+Math.imul(m,rt)|0,i=(i=i+Math.imul(m,nt)|0)+Math.imul(b,rt)|0,o=o+Math.imul(b,nt)|0,n=n+Math.imul(p,ot)|0,i=(i=i+Math.imul(p,at)|0)+Math.imul(y,ot)|0,o=o+Math.imul(y,at)|0;var Mt=(h+(n=n+Math.imul(l,ut)|0)|0)+((8191&(i=(i=i+Math.imul(l,ht)|0)+Math.imul(c,ut)|0))<<13)|0;h=((o=o+Math.imul(c,ht)|0)+(i>>>13)|0)+(Mt>>>26)|0,Mt&=67108863,n=Math.imul(P,z),i=(i=Math.imul(P,q))+Math.imul(U,z)|0,o=Math.imul(U,q),n=n+Math.imul(I,W)|0,i=(i=i+Math.imul(I,K)|0)+Math.imul(T,W)|0,o=o+Math.imul(T,K)|0,n=n+Math.imul(R,H)|0,i=(i=i+Math.imul(R,G)|0)+Math.imul(B,H)|0,o=o+Math.imul(B,G)|0,n=n+Math.imul(A,J)|0,i=(i=i+Math.imul(A,Y)|0)+Math.imul(x,J)|0,o=o+Math.imul(x,Y)|0,n=n+Math.imul(M,Q)|0,i=(i=i+Math.imul(M,tt)|0)+Math.imul(S,Q)|0,o=o+Math.imul(S,tt)|0,n=n+Math.imul(_,rt)|0,i=(i=i+Math.imul(_,nt)|0)+Math.imul(w,rt)|0,o=o+Math.imul(w,nt)|0,n=n+Math.imul(m,ot)|0,i=(i=i+Math.imul(m,at)|0)+Math.imul(b,ot)|0,o=o+Math.imul(b,at)|0,n=n+Math.imul(p,ut)|0,i=(i=i+Math.imul(p,ht)|0)+Math.imul(y,ut)|0,o=o+Math.imul(y,ht)|0;var St=(h+(n=n+Math.imul(l,lt)|0)|0)+((8191&(i=(i=i+Math.imul(l,ct)|0)+Math.imul(c,lt)|0))<<13)|0;h=((o=o+Math.imul(c,ct)|0)+(i>>>13)|0)+(St>>>26)|0,St&=67108863,n=Math.imul(D,z),i=(i=Math.imul(D,q))+Math.imul(C,z)|0,o=Math.imul(C,q),n=n+Math.imul(P,W)|0,i=(i=i+Math.imul(P,K)|0)+Math.imul(U,W)|0,o=o+Math.imul(U,K)|0,n=n+Math.imul(I,H)|0,i=(i=i+Math.imul(I,G)|0)+Math.imul(T,H)|0,o=o+Math.imul(T,G)|0,n=n+Math.imul(R,J)|0,i=(i=i+Math.imul(R,Y)|0)+Math.imul(B,J)|0,o=o+Math.imul(B,Y)|0,n=n+Math.imul(A,Q)|0,i=(i=i+Math.imul(A,tt)|0)+Math.imul(x,Q)|0,o=o+Math.imul(x,tt)|0,n=n+Math.imul(M,rt)|0,i=(i=i+Math.imul(M,nt)|0)+Math.imul(S,rt)|0,o=o+Math.imul(S,nt)|0,n=n+Math.imul(_,ot)|0,i=(i=i+Math.imul(_,at)|0)+Math.imul(w,ot)|0,o=o+Math.imul(w,at)|0,n=n+Math.imul(m,ut)|0,i=(i=i+Math.imul(m,ht)|0)+Math.imul(b,ut)|0,o=o+Math.imul(b,ht)|0,n=n+Math.imul(p,lt)|0,i=(i=i+Math.imul(p,ct)|0)+Math.imul(y,lt)|0,o=o+Math.imul(y,ct)|0;var kt=(h+(n=n+Math.imul(l,pt)|0)|0)+((8191&(i=(i=i+Math.imul(l,yt)|0)+Math.imul(c,pt)|0))<<13)|0;h=((o=o+Math.imul(c,yt)|0)+(i>>>13)|0)+(kt>>>26)|0,kt&=67108863,n=Math.imul(D,W),i=(i=Math.imul(D,K))+Math.imul(C,W)|0,o=Math.imul(C,K),n=n+Math.imul(P,H)|0,i=(i=i+Math.imul(P,G)|0)+Math.imul(U,H)|0,o=o+Math.imul(U,G)|0,n=n+Math.imul(I,J)|0,i=(i=i+Math.imul(I,Y)|0)+Math.imul(T,J)|0,o=o+Math.imul(T,Y)|0,n=n+Math.imul(R,Q)|0,i=(i=i+Math.imul(R,tt)|0)+Math.imul(B,Q)|0,o=o+Math.imul(B,tt)|0,n=n+Math.imul(A,rt)|0,i=(i=i+Math.imul(A,nt)|0)+Math.imul(x,rt)|0,o=o+Math.imul(x,nt)|0,n=n+Math.imul(M,ot)|0,i=(i=i+Math.imul(M,at)|0)+Math.imul(S,ot)|0,o=o+Math.imul(S,at)|0,n=n+Math.imul(_,ut)|0,i=(i=i+Math.imul(_,ht)|0)+Math.imul(w,ut)|0,o=o+Math.imul(w,ht)|0,n=n+Math.imul(m,lt)|0,i=(i=i+Math.imul(m,ct)|0)+Math.imul(b,lt)|0,o=o+Math.imul(b,ct)|0;var At=(h+(n=n+Math.imul(p,pt)|0)|0)+((8191&(i=(i=i+Math.imul(p,yt)|0)+Math.imul(y,pt)|0))<<13)|0;h=((o=o+Math.imul(y,yt)|0)+(i>>>13)|0)+(At>>>26)|0,At&=67108863,n=Math.imul(D,H),i=(i=Math.imul(D,G))+Math.imul(C,H)|0,o=Math.imul(C,G),n=n+Math.imul(P,J)|0,i=(i=i+Math.imul(P,Y)|0)+Math.imul(U,J)|0,o=o+Math.imul(U,Y)|0,n=n+Math.imul(I,Q)|0,i=(i=i+Math.imul(I,tt)|0)+Math.imul(T,Q)|0,o=o+Math.imul(T,tt)|0,n=n+Math.imul(R,rt)|0,i=(i=i+Math.imul(R,nt)|0)+Math.imul(B,rt)|0,o=o+Math.imul(B,nt)|0,n=n+Math.imul(A,ot)|0,i=(i=i+Math.imul(A,at)|0)+Math.imul(x,ot)|0,o=o+Math.imul(x,at)|0,n=n+Math.imul(M,ut)|0,i=(i=i+Math.imul(M,ht)|0)+Math.imul(S,ut)|0,o=o+Math.imul(S,ht)|0,n=n+Math.imul(_,lt)|0,i=(i=i+Math.imul(_,ct)|0)+Math.imul(w,lt)|0,o=o+Math.imul(w,ct)|0;var xt=(h+(n=n+Math.imul(m,pt)|0)|0)+((8191&(i=(i=i+Math.imul(m,yt)|0)+Math.imul(b,pt)|0))<<13)|0;h=((o=o+Math.imul(b,yt)|0)+(i>>>13)|0)+(xt>>>26)|0,xt&=67108863,n=Math.imul(D,J),i=(i=Math.imul(D,Y))+Math.imul(C,J)|0,o=Math.imul(C,Y),n=n+Math.imul(P,Q)|0,i=(i=i+Math.imul(P,tt)|0)+Math.imul(U,Q)|0,o=o+Math.imul(U,tt)|0,n=n+Math.imul(I,rt)|0,i=(i=i+Math.imul(I,nt)|0)+Math.imul(T,rt)|0,o=o+Math.imul(T,nt)|0,n=n+Math.imul(R,ot)|0,i=(i=i+Math.imul(R,at)|0)+Math.imul(B,ot)|0,o=o+Math.imul(B,at)|0,n=n+Math.imul(A,ut)|0,i=(i=i+Math.imul(A,ht)|0)+Math.imul(x,ut)|0,o=o+Math.imul(x,ht)|0,n=n+Math.imul(M,lt)|0,i=(i=i+Math.imul(M,ct)|0)+Math.imul(S,lt)|0,o=o+Math.imul(S,ct)|0;var Ot=(h+(n=n+Math.imul(_,pt)|0)|0)+((8191&(i=(i=i+Math.imul(_,yt)|0)+Math.imul(w,pt)|0))<<13)|0;h=((o=o+Math.imul(w,yt)|0)+(i>>>13)|0)+(Ot>>>26)|0,Ot&=67108863,n=Math.imul(D,Q),i=(i=Math.imul(D,tt))+Math.imul(C,Q)|0,o=Math.imul(C,tt),n=n+Math.imul(P,rt)|0,i=(i=i+Math.imul(P,nt)|0)+Math.imul(U,rt)|0,o=o+Math.imul(U,nt)|0,n=n+Math.imul(I,ot)|0,i=(i=i+Math.imul(I,at)|0)+Math.imul(T,ot)|0,o=o+Math.imul(T,at)|0,n=n+Math.imul(R,ut)|0,i=(i=i+Math.imul(R,ht)|0)+Math.imul(B,ut)|0,o=o+Math.imul(B,ht)|0,n=n+Math.imul(A,lt)|0,i=(i=i+Math.imul(A,ct)|0)+Math.imul(x,lt)|0,o=o+Math.imul(x,ct)|0;var Rt=(h+(n=n+Math.imul(M,pt)|0)|0)+((8191&(i=(i=i+Math.imul(M,yt)|0)+Math.imul(S,pt)|0))<<13)|0;h=((o=o+Math.imul(S,yt)|0)+(i>>>13)|0)+(Rt>>>26)|0,Rt&=67108863,n=Math.imul(D,rt),i=(i=Math.imul(D,nt))+Math.imul(C,rt)|0,o=Math.imul(C,nt),n=n+Math.imul(P,ot)|0,i=(i=i+Math.imul(P,at)|0)+Math.imul(U,ot)|0,o=o+Math.imul(U,at)|0,n=n+Math.imul(I,ut)|0,i=(i=i+Math.imul(I,ht)|0)+Math.imul(T,ut)|0,o=o+Math.imul(T,ht)|0,n=n+Math.imul(R,lt)|0,i=(i=i+Math.imul(R,ct)|0)+Math.imul(B,lt)|0,o=o+Math.imul(B,ct)|0;var Bt=(h+(n=n+Math.imul(A,pt)|0)|0)+((8191&(i=(i=i+Math.imul(A,yt)|0)+Math.imul(x,pt)|0))<<13)|0;h=((o=o+Math.imul(x,yt)|0)+(i>>>13)|0)+(Bt>>>26)|0,Bt&=67108863,n=Math.imul(D,ot),i=(i=Math.imul(D,at))+Math.imul(C,ot)|0,o=Math.imul(C,at),n=n+Math.imul(P,ut)|0,i=(i=i+Math.imul(P,ht)|0)+Math.imul(U,ut)|0,o=o+Math.imul(U,ht)|0,n=n+Math.imul(I,lt)|0,i=(i=i+Math.imul(I,ct)|0)+Math.imul(T,lt)|0,o=o+Math.imul(T,ct)|0;var jt=(h+(n=n+Math.imul(R,pt)|0)|0)+((8191&(i=(i=i+Math.imul(R,yt)|0)+Math.imul(B,pt)|0))<<13)|0;h=((o=o+Math.imul(B,yt)|0)+(i>>>13)|0)+(jt>>>26)|0,jt&=67108863,n=Math.imul(D,ut),i=(i=Math.imul(D,ht))+Math.imul(C,ut)|0,o=Math.imul(C,ht),n=n+Math.imul(P,lt)|0,i=(i=i+Math.imul(P,ct)|0)+Math.imul(U,lt)|0,o=o+Math.imul(U,ct)|0;var It=(h+(n=n+Math.imul(I,pt)|0)|0)+((8191&(i=(i=i+Math.imul(I,yt)|0)+Math.imul(T,pt)|0))<<13)|0;h=((o=o+Math.imul(T,yt)|0)+(i>>>13)|0)+(It>>>26)|0,It&=67108863,n=Math.imul(D,lt),i=(i=Math.imul(D,ct))+Math.imul(C,lt)|0,o=Math.imul(C,ct);var Tt=(h+(n=n+Math.imul(P,pt)|0)|0)+((8191&(i=(i=i+Math.imul(P,yt)|0)+Math.imul(U,pt)|0))<<13)|0;h=((o=o+Math.imul(U,yt)|0)+(i>>>13)|0)+(Tt>>>26)|0,Tt&=67108863;var Lt=(h+(n=Math.imul(D,pt))|0)+((8191&(i=(i=Math.imul(D,yt))+Math.imul(C,pt)|0))<<13)|0;return h=((o=Math.imul(C,yt))+(i>>>13)|0)+(Lt>>>26)|0,Lt&=67108863,u[0]=gt,u[1]=mt,u[2]=bt,u[3]=vt,u[4]=_t,u[5]=wt,u[6]=Et,u[7]=Mt,u[8]=St,u[9]=kt,u[10]=At,u[11]=xt,u[12]=Ot,u[13]=Rt,u[14]=Bt,u[15]=jt,u[16]=It,u[17]=Tt,u[18]=Lt,0!==h&&(u[19]=h,r.length++),r};function y(t,e,r){return(new g).mulp(t,e,r)}function g(t,e){this.x=t,this.y=e}Math.imul||(p=d),o.prototype.mulTo=function(t,e){var r,n=this.length+t.length;return r=10===this.length&&10===t.length?p(this,t,e):n<63?d(this,t,e):n<1024?function(t,e,r){r.negative=e.negative^t.negative,r.length=t.length+e.length;for(var n=0,i=0,o=0;o<r.length-1;o++){var a=i;i=0;for(var s=67108863&n,u=Math.min(o,e.length-1),h=Math.max(0,o-t.length+1);h<=u;h++){var f=o-h,l=(0|t.words[f])*(0|e.words[h]),c=67108863&l;s=67108863&(c=c+s|0),i+=(a=(a=a+(l/67108864|0)|0)+(c>>>26)|0)>>>26,a&=67108863}r.words[o]=s,n=a,a=i}return 0!==n?r.words[o]=n:r.length--,r.strip()}(this,t,e):y(this,t,e),r},g.prototype.makeRBT=function(t){for(var e=new Array(t),r=o.prototype._countBits(t)-1,n=0;n<t;n++)e[n]=this.revBin(n,r,t);return e},g.prototype.revBin=function(t,e,r){if(0===t||t===r-1)return t;for(var n=0,i=0;i<e;i++)n|=(1&t)<<e-i-1,t>>=1;return n},g.prototype.permute=function(t,e,r,n,i,o){for(var a=0;a<o;a++)n[a]=e[t[a]],i[a]=r[t[a]]},g.prototype.transform=function(t,e,r,n,i,o){this.permute(o,t,e,r,n,i);for(var a=1;a<i;a<<=1)for(var s=a<<1,u=Math.cos(2*Math.PI/s),h=Math.sin(2*Math.PI/s),f=0;f<i;f+=s)for(var l=u,c=h,d=0;d<a;d++){var p=r[f+d],y=n[f+d],g=r[f+d+a],m=n[f+d+a],b=l*g-c*m;m=l*m+c*g,g=b,r[f+d]=p+g,n[f+d]=y+m,r[f+d+a]=p-g,n[f+d+a]=y-m,d!==s&&(b=u*l-h*c,c=u*c+h*l,l=b)}},g.prototype.guessLen13b=function(t,e){var r=1|Math.max(e,t),n=1&r,i=0;for(r=r/2|0;r;r>>>=1)i++;return 1<<i+1+n},g.prototype.conjugate=function(t,e,r){if(!(r<=1))for(var n=0;n<r/2;n++){var i=t[n];t[n]=t[r-n-1],t[r-n-1]=i,i=e[n],e[n]=-e[r-n-1],e[r-n-1]=-i}},g.prototype.normalize13b=function(t,e){for(var r=0,n=0;n<e/2;n++){var i=8192*Math.round(t[2*n+1]/e)+Math.round(t[2*n]/e)+r;t[n]=67108863&i,r=i<67108864?0:i/67108864|0}return t},g.prototype.convert13b=function(t,e,r,i){for(var o=0,a=0;a<e;a++)o+=0|t[a],r[2*a]=8191&o,o>>>=13,r[2*a+1]=8191&o,o>>>=13;for(a=2*e;a<i;++a)r[a]=0;n(0===o),n(!(-8192&o))},g.prototype.stub=function(t){for(var e=new Array(t),r=0;r<t;r++)e[r]=0;return e},g.prototype.mulp=function(t,e,r){var n=2*this.guessLen13b(t.length,e.length),i=this.makeRBT(n),o=this.stub(n),a=new Array(n),s=new Array(n),u=new Array(n),h=new Array(n),f=new Array(n),l=new Array(n),c=r.words;c.length=n,this.convert13b(t.words,t.length,a,n),this.convert13b(e.words,e.length,h,n),this.transform(a,o,s,u,n,i),this.transform(h,o,f,l,n,i);for(var d=0;d<n;d++){var p=s[d]*f[d]-u[d]*l[d];u[d]=s[d]*l[d]+u[d]*f[d],s[d]=p}return this.conjugate(s,u,n),this.transform(s,u,c,o,n,i),this.conjugate(c,o,n),this.normalize13b(c,n),r.negative=t.negative^e.negative,r.length=t.length+e.length,r.strip()},o.prototype.mul=function(t){var e=new o(null);return e.words=new Array(this.length+t.length),this.mulTo(t,e)},o.prototype.mulf=function(t){var e=new o(null);return e.words=new Array(this.length+t.length),y(this,t,e)},o.prototype.imul=function(t){return this.clone().mulTo(t,this)},o.prototype.imuln=function(t){n("number"==typeof t),n(t<67108864);for(var e=0,r=0;r<this.length;r++){var i=(0|this.words[r])*t,o=(67108863&i)+(67108863&e);e>>=26,e+=i/67108864|0,e+=o>>>26,this.words[r]=67108863&o}return 0!==e&&(this.words[r]=e,this.length++),this.length=0===t?1:this.length,this},o.prototype.muln=function(t){return this.clone().imuln(t)},o.prototype.sqr=function(){return this.mul(this)},o.prototype.isqr=function(){return this.imul(this.clone())},o.prototype.pow=function(t){var e=function(t){for(var e=new Array(t.bitLength()),r=0;r<e.length;r++){var n=r/26|0,i=r%26;e[r]=(t.words[n]&1<<i)>>>i}return e}(t);if(0===e.length)return new o(1);for(var r=this,n=0;n<e.length&&0===e[n];n++,r=r.sqr());if(++n<e.length)for(var i=r.sqr();n<e.length;n++,i=i.sqr())0!==e[n]&&(r=r.mul(i));return r},o.prototype.iushln=function(t){n("number"==typeof t&&t>=0);var e,r=t%26,i=(t-r)/26,o=67108863>>>26-r<<26-r;if(0!==r){var a=0;for(e=0;e<this.length;e++){var s=this.words[e]&o,u=(0|this.words[e])-s<<r;this.words[e]=u|a,a=s>>>26-r}a&&(this.words[e]=a,this.length++)}if(0!==i){for(e=this.length-1;e>=0;e--)this.words[e+i]=this.words[e];for(e=0;e<i;e++)this.words[e]=0;this.length+=i}return this.strip()},o.prototype.ishln=function(t){return n(0===this.negative),this.iushln(t)},o.prototype.iushrn=function(t,e,r){var i;n("number"==typeof t&&t>=0),i=e?(e-e%26)/26:0;var o=t%26,a=Math.min((t-o)/26,this.length),s=67108863^67108863>>>o<<o,u=r;if(i-=a,i=Math.max(0,i),u){for(var h=0;h<a;h++)u.words[h]=this.words[h];u.length=a}if(0===a);else if(this.length>a)for(this.length-=a,h=0;h<this.length;h++)this.words[h]=this.words[h+a];else this.words[0]=0,this.length=1;var f=0;for(h=this.length-1;h>=0&&(0!==f||h>=i);h--){var l=0|this.words[h];this.words[h]=f<<26-o|l>>>o,f=l&s}return u&&0!==f&&(u.words[u.length++]=f),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},o.prototype.ishrn=function(t,e,r){return n(0===this.negative),this.iushrn(t,e,r)},o.prototype.shln=function(t){return this.clone().ishln(t)},o.prototype.ushln=function(t){return this.clone().iushln(t)},o.prototype.shrn=function(t){return this.clone().ishrn(t)},o.prototype.ushrn=function(t){return this.clone().iushrn(t)},o.prototype.testn=function(t){n("number"==typeof t&&t>=0);var e=t%26,r=(t-e)/26,i=1<<e;return!(this.length<=r)&&!!(this.words[r]&i)},o.prototype.imaskn=function(t){n("number"==typeof t&&t>=0);var e=t%26,r=(t-e)/26;if(n(0===this.negative,"imaskn works only with positive numbers"),this.length<=r)return this;if(0!==e&&r++,this.length=Math.min(r,this.length),0!==e){var i=67108863^67108863>>>e<<e;this.words[this.length-1]&=i}return 0===this.length&&(this.words[0]=0,this.length=1),this.strip()},o.prototype.maskn=function(t){return this.clone().imaskn(t)},o.prototype.iaddn=function(t){return n("number"==typeof t),n(t<67108864),t<0?this.isubn(-t):0!==this.negative?1===this.length&&(0|this.words[0])<t?(this.words[0]=t-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(t),this.negative=1,this):this._iaddn(t)},o.prototype._iaddn=function(t){this.words[0]+=t;for(var e=0;e<this.length&&this.words[e]>=67108864;e++)this.words[e]-=67108864,e===this.length-1?this.words[e+1]=1:this.words[e+1]++;return this.length=Math.max(this.length,e+1),this},o.prototype.isubn=function(t){if(n("number"==typeof t),n(t<67108864),t<0)return this.iaddn(-t);if(0!==this.negative)return this.negative=0,this.iaddn(t),this.negative=1,this;if(this.words[0]-=t,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var e=0;e<this.length&&this.words[e]<0;e++)this.words[e]+=67108864,this.words[e+1]-=1;return this.strip()},o.prototype.addn=function(t){return this.clone().iaddn(t)},o.prototype.subn=function(t){return this.clone().isubn(t)},o.prototype.iabs=function(){return this.negative=0,this},o.prototype.abs=function(){return this.clone().iabs()},o.prototype._ishlnsubmul=function(t,e,r){var i,o,a=t.length+r;this._expand(a);var s=0;for(i=0;i<t.length;i++){o=(0|this.words[i+r])+s;var u=(0|t.words[i])*e;s=((o-=67108863&u)>>26)-(u/67108864|0),this.words[i+r]=67108863&o}for(;i<this.length-r;i++)s=(o=(0|this.words[i+r])+s)>>26,this.words[i+r]=67108863&o;if(0===s)return this.strip();for(n(-1===s),s=0,i=0;i<this.length;i++)s=(o=-(0|this.words[i])+s)>>26,this.words[i]=67108863&o;return this.negative=1,this.strip()},o.prototype._wordDiv=function(t,e){var r=(this.length,t.length),n=this.clone(),i=t,a=0|i.words[i.length-1];0!==(r=26-this._countBits(a))&&(i=i.ushln(r),n.iushln(r),a=0|i.words[i.length-1]);var s,u=n.length-i.length;if("mod"!==e){(s=new o(null)).length=u+1,s.words=new Array(s.length);for(var h=0;h<s.length;h++)s.words[h]=0}var f=n.clone()._ishlnsubmul(i,1,u);0===f.negative&&(n=f,s&&(s.words[u]=1));for(var l=u-1;l>=0;l--){var c=67108864*(0|n.words[i.length+l])+(0|n.words[i.length+l-1]);for(c=Math.min(c/a|0,67108863),n._ishlnsubmul(i,c,l);0!==n.negative;)c--,n.negative=0,n._ishlnsubmul(i,1,l),n.isZero()||(n.negative^=1);s&&(s.words[l]=c)}return s&&s.strip(),n.strip(),"div"!==e&&0!==r&&n.iushrn(r),{div:s||null,mod:n}},o.prototype.divmod=function(t,e,r){return n(!t.isZero()),this.isZero()?{div:new o(0),mod:new o(0)}:0!==this.negative&&0===t.negative?(s=this.neg().divmod(t,e),"mod"!==e&&(i=s.div.neg()),"div"!==e&&(a=s.mod.neg(),r&&0!==a.negative&&a.iadd(t)),{div:i,mod:a}):0===this.negative&&0!==t.negative?(s=this.divmod(t.neg(),e),"mod"!==e&&(i=s.div.neg()),{div:i,mod:s.mod}):0!==(this.negative&t.negative)?(s=this.neg().divmod(t.neg(),e),"div"!==e&&(a=s.mod.neg(),r&&0!==a.negative&&a.isub(t)),{div:s.div,mod:a}):t.length>this.length||this.cmp(t)<0?{div:new o(0),mod:this}:1===t.length?"div"===e?{div:this.divn(t.words[0]),mod:null}:"mod"===e?{div:null,mod:new o(this.modn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new o(this.modn(t.words[0]))}:this._wordDiv(t,e);var i,a,s},o.prototype.div=function(t){return this.divmod(t,"div",!1).div},o.prototype.mod=function(t){return this.divmod(t,"mod",!1).mod},o.prototype.umod=function(t){return this.divmod(t,"mod",!0).mod},o.prototype.divRound=function(t){var e=this.divmod(t);if(e.mod.isZero())return e.div;var r=0!==e.div.negative?e.mod.isub(t):e.mod,n=t.ushrn(1),i=t.andln(1),o=r.cmp(n);return o<0||1===i&&0===o?e.div:0!==e.div.negative?e.div.isubn(1):e.div.iaddn(1)},o.prototype.modn=function(t){n(t<=67108863);for(var e=(1<<26)%t,r=0,i=this.length-1;i>=0;i--)r=(e*r+(0|this.words[i]))%t;return r},o.prototype.idivn=function(t){n(t<=67108863);for(var e=0,r=this.length-1;r>=0;r--){var i=(0|this.words[r])+67108864*e;this.words[r]=i/t|0,e=i%t}return this.strip()},o.prototype.divn=function(t){return this.clone().idivn(t)},o.prototype.egcd=function(t){n(0===t.negative),n(!t.isZero());var e=this,r=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var i=new o(1),a=new o(0),s=new o(0),u=new o(1),h=0;e.isEven()&&r.isEven();)e.iushrn(1),r.iushrn(1),++h;for(var f=r.clone(),l=e.clone();!e.isZero();){for(var c=0,d=1;0===(e.words[0]&d)&&c<26;++c,d<<=1);if(c>0)for(e.iushrn(c);c-- >0;)(i.isOdd()||a.isOdd())&&(i.iadd(f),a.isub(l)),i.iushrn(1),a.iushrn(1);for(var p=0,y=1;0===(r.words[0]&y)&&p<26;++p,y<<=1);if(p>0)for(r.iushrn(p);p-- >0;)(s.isOdd()||u.isOdd())&&(s.iadd(f),u.isub(l)),s.iushrn(1),u.iushrn(1);e.cmp(r)>=0?(e.isub(r),i.isub(s),a.isub(u)):(r.isub(e),s.isub(i),u.isub(a))}return{a:s,b:u,gcd:r.iushln(h)}},o.prototype._invmp=function(t){n(0===t.negative),n(!t.isZero());var e=this,r=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var i,a=new o(1),s=new o(0),u=r.clone();e.cmpn(1)>0&&r.cmpn(1)>0;){for(var h=0,f=1;0===(e.words[0]&f)&&h<26;++h,f<<=1);if(h>0)for(e.iushrn(h);h-- >0;)a.isOdd()&&a.iadd(u),a.iushrn(1);for(var l=0,c=1;0===(r.words[0]&c)&&l<26;++l,c<<=1);if(l>0)for(r.iushrn(l);l-- >0;)s.isOdd()&&s.iadd(u),s.iushrn(1);e.cmp(r)>=0?(e.isub(r),a.isub(s)):(r.isub(e),s.isub(a))}return(i=0===e.cmpn(1)?a:s).cmpn(0)<0&&i.iadd(t),i},o.prototype.gcd=function(t){if(this.isZero())return t.abs();if(t.isZero())return this.abs();var e=this.clone(),r=t.clone();e.negative=0,r.negative=0;for(var n=0;e.isEven()&&r.isEven();n++)e.iushrn(1),r.iushrn(1);for(;;){for(;e.isEven();)e.iushrn(1);for(;r.isEven();)r.iushrn(1);var i=e.cmp(r);if(i<0){var o=e;e=r,r=o}else if(0===i||0===r.cmpn(1))break;e.isub(r)}return r.iushln(n)},o.prototype.invm=function(t){return this.egcd(t).a.umod(t)},o.prototype.isEven=function(){return!(1&this.words[0])},o.prototype.isOdd=function(){return!(1&~this.words[0])},o.prototype.andln=function(t){return this.words[0]&t},o.prototype.bincn=function(t){n("number"==typeof t);var e=t%26,r=(t-e)/26,i=1<<e;if(this.length<=r)return this._expand(r+1),this.words[r]|=i,this;for(var o=i,a=r;0!==o&&a<this.length;a++){var s=0|this.words[a];o=(s+=o)>>>26,s&=67108863,this.words[a]=s}return 0!==o&&(this.words[a]=o,this.length++),this},o.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},o.prototype.cmpn=function(t){var e,r=t<0;if(0!==this.negative&&!r)return-1;if(0===this.negative&&r)return 1;if(this.strip(),this.length>1)e=1;else{r&&(t=-t),n(t<=67108863,"Number is too big");var i=0|this.words[0];e=i===t?0:i<t?-1:1}return 0!==this.negative?0|-e:e},o.prototype.cmp=function(t){if(0!==this.negative&&0===t.negative)return-1;if(0===this.negative&&0!==t.negative)return 1;var e=this.ucmp(t);return 0!==this.negative?0|-e:e},o.prototype.ucmp=function(t){if(this.length>t.length)return 1;if(this.length<t.length)return-1;for(var e=0,r=this.length-1;r>=0;r--){var n=0|this.words[r],i=0|t.words[r];if(n!==i){n<i?e=-1:n>i&&(e=1);break}}return e},o.prototype.gtn=function(t){return 1===this.cmpn(t)},o.prototype.gt=function(t){return 1===this.cmp(t)},o.prototype.gten=function(t){return this.cmpn(t)>=0},o.prototype.gte=function(t){return this.cmp(t)>=0},o.prototype.ltn=function(t){return-1===this.cmpn(t)},o.prototype.lt=function(t){return-1===this.cmp(t)},o.prototype.lten=function(t){return this.cmpn(t)<=0},o.prototype.lte=function(t){return this.cmp(t)<=0},o.prototype.eqn=function(t){return 0===this.cmpn(t)},o.prototype.eq=function(t){return 0===this.cmp(t)},o.red=function(t){return new M(t)},o.prototype.toRed=function(t){return n(!this.red,"Already a number in reduction context"),n(0===this.negative,"red works only with positives"),t.convertTo(this)._forceRed(t)},o.prototype.fromRed=function(){return n(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},o.prototype._forceRed=function(t){return this.red=t,this},o.prototype.forceRed=function(t){return n(!this.red,"Already a number in reduction context"),this._forceRed(t)},o.prototype.redAdd=function(t){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,t)},o.prototype.redIAdd=function(t){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,t)},o.prototype.redSub=function(t){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,t)},o.prototype.redISub=function(t){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,t)},o.prototype.redShl=function(t){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,t)},o.prototype.redMul=function(t){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.mul(this,t)},o.prototype.redIMul=function(t){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.imul(this,t)},o.prototype.redSqr=function(){return n(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},o.prototype.redISqr=function(){return n(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},o.prototype.redSqrt=function(){return n(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},o.prototype.redInvm=function(){return n(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},o.prototype.redNeg=function(){return n(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},o.prototype.redPow=function(t){return n(this.red&&!t.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,t)};var m={k256:null,p224:null,p192:null,p25519:null};function b(t,e){this.name=t,this.p=new o(e,16),this.n=this.p.bitLength(),this.k=new o(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function v(){b.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function _(){b.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function w(){b.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function E(){b.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function M(t){if("string"==typeof t){var e=o._prime(t);this.m=e.p,this.prime=e}else n(t.gtn(1),"modulus must be greater than 1"),this.m=t,this.prime=null}function S(t){M.call(this,t),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new o(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}b.prototype._tmp=function(){var t=new o(null);return t.words=new Array(Math.ceil(this.n/13)),t},b.prototype.ireduce=function(t){var e,r=t;do{this.split(r,this.tmp),e=(r=(r=this.imulK(r)).iadd(this.tmp)).bitLength()}while(e>this.n);var n=e<this.n?-1:r.ucmp(this.p);return 0===n?(r.words[0]=0,r.length=1):n>0?r.isub(this.p):void 0!==r.strip?r.strip():r._strip(),r},b.prototype.split=function(t,e){t.iushrn(this.n,0,e)},b.prototype.imulK=function(t){return t.imul(this.k)},i(v,b),v.prototype.split=function(t,e){for(var r=4194303,n=Math.min(t.length,9),i=0;i<n;i++)e.words[i]=t.words[i];if(e.length=n,t.length<=9)return t.words[0]=0,void(t.length=1);var o=t.words[9];for(e.words[e.length++]=o&r,i=10;i<t.length;i++){var a=0|t.words[i];t.words[i-10]=(a&r)<<4|o>>>22,o=a}o>>>=22,t.words[i-10]=o,0===o&&t.length>10?t.length-=10:t.length-=9},v.prototype.imulK=function(t){t.words[t.length]=0,t.words[t.length+1]=0,t.length+=2;for(var e=0,r=0;r<t.length;r++){var n=0|t.words[r];e+=977*n,t.words[r]=67108863&e,e=64*n+(e/67108864|0)}return 0===t.words[t.length-1]&&(t.length--,0===t.words[t.length-1]&&t.length--),t},i(_,b),i(w,b),i(E,b),E.prototype.imulK=function(t){for(var e=0,r=0;r<t.length;r++){var n=19*(0|t.words[r])+e,i=67108863&n;n>>>=26,t.words[r]=i,e=n}return 0!==e&&(t.words[t.length++]=e),t},o._prime=function(t){if(m[t])return m[t];var e;if("k256"===t)e=new v;else if("p224"===t)e=new _;else if("p192"===t)e=new w;else{if("p25519"!==t)throw new Error("Unknown prime "+t);e=new E}return m[t]=e,e},M.prototype._verify1=function(t){n(0===t.negative,"red works only with positives"),n(t.red,"red works only with red numbers")},M.prototype._verify2=function(t,e){n(0===(t.negative|e.negative),"red works only with positives"),n(t.red&&t.red===e.red,"red works only with red numbers")},M.prototype.imod=function(t){return this.prime?this.prime.ireduce(t)._forceRed(this):t.umod(this.m)._forceRed(this)},M.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},M.prototype.add=function(t,e){this._verify2(t,e);var r=t.add(e);return r.cmp(this.m)>=0&&r.isub(this.m),r._forceRed(this)},M.prototype.iadd=function(t,e){this._verify2(t,e);var r=t.iadd(e);return r.cmp(this.m)>=0&&r.isub(this.m),r},M.prototype.sub=function(t,e){this._verify2(t,e);var r=t.sub(e);return r.cmpn(0)<0&&r.iadd(this.m),r._forceRed(this)},M.prototype.isub=function(t,e){this._verify2(t,e);var r=t.isub(e);return r.cmpn(0)<0&&r.iadd(this.m),r},M.prototype.shl=function(t,e){return this._verify1(t),this.imod(t.ushln(e))},M.prototype.imul=function(t,e){return this._verify2(t,e),this.imod(t.imul(e))},M.prototype.mul=function(t,e){return this._verify2(t,e),this.imod(t.mul(e))},M.prototype.isqr=function(t){return this.imul(t,t.clone())},M.prototype.sqr=function(t){return this.mul(t,t)},M.prototype.sqrt=function(t){if(t.isZero())return t.clone();var e=this.m.andln(3);if(n(e%2==1),3===e){var r=this.m.add(new o(1)).iushrn(2);return this.pow(t,r)}for(var i=this.m.subn(1),a=0;!i.isZero()&&0===i.andln(1);)a++,i.iushrn(1);n(!i.isZero());var s=new o(1).toRed(this),u=s.redNeg(),h=this.m.subn(1).iushrn(1),f=this.m.bitLength();for(f=new o(2*f*f).toRed(this);0!==this.pow(f,h).cmp(u);)f.redIAdd(u);for(var l=this.pow(f,i),c=this.pow(t,i.addn(1).iushrn(1)),d=this.pow(t,i),p=a;0!==d.cmp(s);){for(var y=d,g=0;0!==y.cmp(s);g++)y=y.redSqr();n(g<p);var m=this.pow(l,new o(1).iushln(p-g-1));c=c.redMul(m),l=m.redSqr(),d=d.redMul(l),p=g}return c},M.prototype.invm=function(t){var e=t._invmp(this.m);return 0!==e.negative?(e.negative=0,this.imod(e).redNeg()):this.imod(e)},M.prototype.pow=function(t,e){if(e.isZero())return new o(1).toRed(this);if(0===e.cmpn(1))return t.clone();var r=new Array(16);r[0]=new o(1).toRed(this),r[1]=t;for(var n=2;n<r.length;n++)r[n]=this.mul(r[n-1],t);var i=r[0],a=0,s=0,u=e.bitLength()%26;for(0===u&&(u=26),n=e.length-1;n>=0;n--){for(var h=e.words[n],f=u-1;f>=0;f--){var l=h>>f&1;i!==r[0]&&(i=this.sqr(i)),0!==l||0!==a?(a<<=1,a|=l,(4===++s||0===n&&0===f)&&(i=this.mul(i,r[a]),s=0,a=0)):s=0}u=26}return i},M.prototype.convertTo=function(t){var e=t.umod(this.m);return e===t?e.clone():e},M.prototype.convertFrom=function(t){var e=t.clone();return e.red=null,e},o.mont=function(t){return new S(t)},i(S,M),S.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},S.prototype.convertFrom=function(t){var e=this.imod(t.mul(this.rinv));return e.red=null,e},S.prototype.imul=function(t,e){if(t.isZero()||e.isZero())return t.words[0]=0,t.length=1,t;var r=t.imul(e),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),o=i;return i.cmp(this.m)>=0?o=i.isub(this.m):i.cmpn(0)<0&&(o=i.iadd(this.m)),o._forceRed(this)},S.prototype.mul=function(t,e){if(t.isZero()||e.isZero())return new o(0)._forceRed(this);var r=t.mul(e),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),a=i;return i.cmp(this.m)>=0?a=i.isub(this.m):i.cmpn(0)<0&&(a=i.iadd(this.m)),a._forceRed(this)},S.prototype.invm=function(t){return this.imod(t._invmp(this.m).mul(this.r2))._forceRed(this)}}(t=r.nmd(t),this)},5037(t,e,r){var n;function i(t){this.rand=t}if(t.exports=function(t){return n||(n=new i(null)),n.generate(t)},t.exports.Rand=i,i.prototype.generate=function(t){return this._rand(t)},i.prototype._rand=function(t){if(this.rand.getBytes)return this.rand.getBytes(t);for(var e=new Uint8Array(t),r=0;r<e.length;r++)e[r]=this.rand.getByte();return e},"object"==typeof self)self.crypto&&self.crypto.getRandomValues?i.prototype._rand=function(t){var e=new Uint8Array(t);return self.crypto.getRandomValues(e),e}:self.msCrypto&&self.msCrypto.getRandomValues?i.prototype._rand=function(t){var e=new Uint8Array(t);return self.msCrypto.getRandomValues(e),e}:"object"==typeof window&&(i.prototype._rand=function(){throw new Error("Not implemented yet")});else try{var o=r(3776);if("function"!=typeof o.randomBytes)throw new Error("Not supported");i.prototype._rand=function(t){return o.randomBytes(t)}}catch(t){}},462(t,e,r){var n=r(2861).Buffer;function i(t){n.isBuffer(t)||(t=n.from(t));for(var e=t.length/4|0,r=new Array(e),i=0;i<e;i++)r[i]=t.readUInt32BE(4*i);return r}function o(t){for(;0<t.length;t++)t[0]=0}function a(t,e,r,n,i){for(var o,a,s,u,h=r[0],f=r[1],l=r[2],c=r[3],d=t[0]^e[0],p=t[1]^e[1],y=t[2]^e[2],g=t[3]^e[3],m=4,b=1;b<i;b++)o=h[d>>>24]^f[p>>>16&255]^l[y>>>8&255]^c[255&g]^e[m++],a=h[p>>>24]^f[y>>>16&255]^l[g>>>8&255]^c[255&d]^e[m++],s=h[y>>>24]^f[g>>>16&255]^l[d>>>8&255]^c[255&p]^e[m++],u=h[g>>>24]^f[d>>>16&255]^l[p>>>8&255]^c[255&y]^e[m++],d=o,p=a,y=s,g=u;return o=(n[d>>>24]<<24|n[p>>>16&255]<<16|n[y>>>8&255]<<8|n[255&g])^e[m++],a=(n[p>>>24]<<24|n[y>>>16&255]<<16|n[g>>>8&255]<<8|n[255&d])^e[m++],s=(n[y>>>24]<<24|n[g>>>16&255]<<16|n[d>>>8&255]<<8|n[255&p])^e[m++],u=(n[g>>>24]<<24|n[d>>>16&255]<<16|n[p>>>8&255]<<8|n[255&y])^e[m++],[o>>>=0,a>>>=0,s>>>=0,u>>>=0]}var s=[0,1,2,4,8,16,32,64,128,27,54],u=function(){for(var t=new Array(256),e=0;e<256;e++)t[e]=e<128?e<<1:e<<1^283;for(var r=[],n=[],i=[[],[],[],[]],o=[[],[],[],[]],a=0,s=0,u=0;u<256;++u){var h=s^s<<1^s<<2^s<<3^s<<4;h=h>>>8^255&h^99,r[a]=h,n[h]=a;var f=t[a],l=t[f],c=t[l],d=257*t[h]^16843008*h;i[0][a]=d<<24|d>>>8,i[1][a]=d<<16|d>>>16,i[2][a]=d<<8|d>>>24,i[3][a]=d,d=16843009*c^65537*l^257*f^16843008*a,o[0][h]=d<<24|d>>>8,o[1][h]=d<<16|d>>>16,o[2][h]=d<<8|d>>>24,o[3][h]=d,0===a?a=s=1:(a=f^t[t[t[c^f]]],s^=t[t[s]])}return{SBOX:r,INV_SBOX:n,SUB_MIX:i,INV_SUB_MIX:o}}();function h(t){this._key=i(t),this._reset()}h.blockSize=16,h.keySize=32,h.prototype.blockSize=h.blockSize,h.prototype.keySize=h.keySize,h.prototype._reset=function(){for(var t=this._key,e=t.length,r=e+6,n=4*(r+1),i=[],o=0;o<e;o++)i[o]=t[o];for(o=e;o<n;o++){var a=i[o-1];o%e===0?(a=a<<8|a>>>24,a=u.SBOX[a>>>24]<<24|u.SBOX[a>>>16&255]<<16|u.SBOX[a>>>8&255]<<8|u.SBOX[255&a],a^=s[o/e|0]<<24):e>6&&o%e===4&&(a=u.SBOX[a>>>24]<<24|u.SBOX[a>>>16&255]<<16|u.SBOX[a>>>8&255]<<8|u.SBOX[255&a]),i[o]=i[o-e]^a}for(var h=[],f=0;f<n;f++){var l=n-f,c=i[l-(f%4?0:4)];h[f]=f<4||l<=4?c:u.INV_SUB_MIX[0][u.SBOX[c>>>24]]^u.INV_SUB_MIX[1][u.SBOX[c>>>16&255]]^u.INV_SUB_MIX[2][u.SBOX[c>>>8&255]]^u.INV_SUB_MIX[3][u.SBOX[255&c]]}this._nRounds=r,this._keySchedule=i,this._invKeySchedule=h},h.prototype.encryptBlockRaw=function(t){return a(t=i(t),this._keySchedule,u.SUB_MIX,u.SBOX,this._nRounds)},h.prototype.encryptBlock=function(t){var e=this.encryptBlockRaw(t),r=n.allocUnsafe(16);return r.writeUInt32BE(e[0],0),r.writeUInt32BE(e[1],4),r.writeUInt32BE(e[2],8),r.writeUInt32BE(e[3],12),r},h.prototype.decryptBlock=function(t){var e=(t=i(t))[1];t[1]=t[3],t[3]=e;var r=a(t,this._invKeySchedule,u.INV_SUB_MIX,u.INV_SBOX,this._nRounds),o=n.allocUnsafe(16);return o.writeUInt32BE(r[0],0),o.writeUInt32BE(r[3],4),o.writeUInt32BE(r[2],8),o.writeUInt32BE(r[1],12),o},h.prototype.scrub=function(){o(this._keySchedule),o(this._invKeySchedule),o(this._key)},t.exports.AES=h},2356(t,e,r){var n=r(462),i=r(2861).Buffer,o=r(6168),a=r(4317),s=r(5892),u=r(295),h=r(5122);function f(t,e,r,a){o.call(this);var u=i.alloc(4,0);this._cipher=new n.AES(e);var f=this._cipher.encryptBlock(u);this._ghash=new s(f),r=function(t,e,r){if(12===e.length)return t._finID=i.concat([e,i.from([0,0,0,1])]),i.concat([e,i.from([0,0,0,2])]);var n=new s(r),o=e.length,a=o%16;n.update(e),a&&(a=16-a,n.update(i.alloc(a,0))),n.update(i.alloc(8,0));var u=8*o,f=i.alloc(8);f.writeUIntBE(u,0,8),n.update(f),t._finID=n.state;var l=i.from(t._finID);return h(l),l}(this,r,f),this._prev=i.from(r),this._cache=i.allocUnsafe(0),this._secCache=i.allocUnsafe(0),this._decrypt=a,this._alen=0,this._len=0,this._mode=t,this._authTag=null,this._called=!1}a(f,o),f.prototype._update=function(t){if(!this._called&&this._alen){var e=16-this._alen%16;e<16&&(e=i.alloc(e,0),this._ghash.update(e))}this._called=!0;var r=this._mode.encrypt(this,t);return this._decrypt?this._ghash.update(t):this._ghash.update(r),this._len+=t.length,r},f.prototype._final=function(){if(this._decrypt&&!this._authTag)throw new Error("Unsupported state or unable to authenticate data");var t=u(this._ghash.final(8*this._alen,8*this._len),this._cipher.encryptBlock(this._finID));if(this._decrypt&&function(t,e){var r=0;t.length!==e.length&&r++;for(var n=Math.min(t.length,e.length),i=0;i<n;++i)r+=t[i]^e[i];return r}(t,this._authTag))throw new Error("Unsupported state or unable to authenticate data");this._authTag=t,this._cipher.scrub()},f.prototype.getAuthTag=function(){if(this._decrypt||!i.isBuffer(this._authTag))throw new Error("Attempting to get auth tag in unsupported state");return this._authTag},f.prototype.setAuthTag=function(t){if(!this._decrypt)throw new Error("Attempting to set auth tag in unsupported state");this._authTag=t},f.prototype.setAAD=function(t){if(this._called)throw new Error("Attempting to set AAD in unsupported state");this._ghash.update(t),this._alen+=t.length},t.exports=f},1241(t,e,r){var n=r(5799),i=r(6171),o=r(3219);e.createCipher=e.Cipher=n.createCipher,e.createCipheriv=e.Cipheriv=n.createCipheriv,e.createDecipher=e.Decipher=i.createDecipher,e.createDecipheriv=e.Decipheriv=i.createDecipheriv,e.listCiphers=e.getCiphers=function(){return Object.keys(o)}},6171(t,e,r){var n=r(2356),i=r(2861).Buffer,o=r(530),a=r(650),s=r(6168),u=r(462),h=r(8078);function f(t,e,r){s.call(this),this._cache=new l,this._last=void 0,this._cipher=new u.AES(e),this._prev=i.from(r),this._mode=t,this._autopadding=!0}function l(){this.cache=i.allocUnsafe(0)}function c(t,e,r){var s=o[t.toLowerCase()];if(!s)throw new TypeError("invalid suite type");if("string"==typeof r&&(r=i.from(r)),"GCM"!==s.mode&&r.length!==s.iv)throw new TypeError("invalid iv length "+r.length);if("string"==typeof e&&(e=i.from(e)),e.length!==s.key/8)throw new TypeError("invalid key length "+e.length);return"stream"===s.type?new a(s.module,e,r,!0):"auth"===s.type?new n(s.module,e,r,!0):new f(s.module,e,r)}r(4317)(f,s),f.prototype._update=function(t){var e,r;this._cache.add(t);for(var n=[];e=this._cache.get(this._autopadding);)r=this._mode.decrypt(this,e),n.push(r);return i.concat(n)},f.prototype._final=function(){var t=this._cache.flush();if(this._autopadding)return function(t){var e=t[15];if(e<1||e>16)throw new Error("unable to decrypt data");var r=-1;for(;++r<e;)if(t[r+(16-e)]!==e)throw new Error("unable to decrypt data");if(16===e)return;return t.slice(0,16-e)}(this._mode.decrypt(this,t));if(t)throw new Error("data not multiple of block length")},f.prototype.setAutoPadding=function(t){return this._autopadding=!!t,this},l.prototype.add=function(t){this.cache=i.concat([this.cache,t])},l.prototype.get=function(t){var e;if(t){if(this.cache.length>16)return e=this.cache.slice(0,16),this.cache=this.cache.slice(16),e}else if(this.cache.length>=16)return e=this.cache.slice(0,16),this.cache=this.cache.slice(16),e;return null},l.prototype.flush=function(){if(this.cache.length)return this.cache},e.createDecipher=function(t,e){var r=o[t.toLowerCase()];if(!r)throw new TypeError("invalid suite type");var n=h(e,!1,r.key,r.iv);return c(t,n.key,n.iv)},e.createDecipheriv=c},5799(t,e,r){var n=r(530),i=r(2356),o=r(2861).Buffer,a=r(650),s=r(6168),u=r(462),h=r(8078);function f(t,e,r){s.call(this),this._cache=new c,this._cipher=new u.AES(e),this._prev=o.from(r),this._mode=t,this._autopadding=!0}r(4317)(f,s),f.prototype._update=function(t){var e,r;this._cache.add(t);for(var n=[];e=this._cache.get();)r=this._mode.encrypt(this,e),n.push(r);return o.concat(n)};var l=o.alloc(16,16);function c(){this.cache=o.allocUnsafe(0)}function d(t,e,r){var s=n[t.toLowerCase()];if(!s)throw new TypeError("invalid suite type");if("string"==typeof e&&(e=o.from(e)),e.length!==s.key/8)throw new TypeError("invalid key length "+e.length);if("string"==typeof r&&(r=o.from(r)),"GCM"!==s.mode&&r.length!==s.iv)throw new TypeError("invalid iv length "+r.length);return"stream"===s.type?new a(s.module,e,r):"auth"===s.type?new i(s.module,e,r):new f(s.module,e,r)}f.prototype._final=function(){var t=this._cache.flush();if(this._autopadding)return t=this._mode.encrypt(this,t),this._cipher.scrub(),t;if(!t.equals(l))throw this._cipher.scrub(),new Error("data not multiple of block length")},f.prototype.setAutoPadding=function(t){return this._autopadding=!!t,this},c.prototype.add=function(t){this.cache=o.concat([this.cache,t])},c.prototype.get=function(){if(this.cache.length>15){var t=this.cache.slice(0,16);return this.cache=this.cache.slice(16),t}return null},c.prototype.flush=function(){for(var t=16-this.cache.length,e=o.allocUnsafe(t),r=-1;++r<t;)e.writeUInt8(t,r);return o.concat([this.cache,e])},e.createCipheriv=d,e.createCipher=function(t,e){var r=n[t.toLowerCase()];if(!r)throw new TypeError("invalid suite type");var i=h(e,!1,r.key,r.iv);return d(t,i.key,i.iv)}},5892(t,e,r){var n=r(2861).Buffer,i=n.alloc(16,0);function o(t){var e=n.allocUnsafe(16);return e.writeUInt32BE(t[0]>>>0,0),e.writeUInt32BE(t[1]>>>0,4),e.writeUInt32BE(t[2]>>>0,8),e.writeUInt32BE(t[3]>>>0,12),e}function a(t){this.h=t,this.state=n.alloc(16,0),this.cache=n.allocUnsafe(0)}a.prototype.ghash=function(t){for(var e=-1;++e<t.length;)this.state[e]^=t[e];this._multiply()},a.prototype._multiply=function(){for(var t,e,r,n=[(t=this.h).readUInt32BE(0),t.readUInt32BE(4),t.readUInt32BE(8),t.readUInt32BE(12)],i=[0,0,0,0],a=-1;++a<128;){for(!!(this.state[~~(a/8)]&1<<7-a%8)&&(i[0]^=n[0],i[1]^=n[1],i[2]^=n[2],i[3]^=n[3]),r=!!(1&n[3]),e=3;e>0;e--)n[e]=n[e]>>>1|(1&n[e-1])<<31;n[0]=n[0]>>>1,r&&(n[0]=n[0]^225<<24)}this.state=o(i)},a.prototype.update=function(t){var e;for(this.cache=n.concat([this.cache,t]);this.cache.length>=16;)e=this.cache.slice(0,16),this.cache=this.cache.slice(16),this.ghash(e)},a.prototype.final=function(t,e){return this.cache.length&&this.ghash(n.concat([this.cache,i],16)),this.ghash(o([0,t,0,e])),this.state},t.exports=a},5122(t){t.exports=function(t){for(var e,r=t.length;r--;){if(255!==(e=t.readUInt8(r))){e++,t.writeUInt8(e,r);break}t.writeUInt8(0,r)}}},2884(t,e,r){var n=r(295);e.encrypt=function(t,e){var r=n(e,t._prev);return t._prev=t._cipher.encryptBlock(r),t._prev},e.decrypt=function(t,e){var r=t._prev;t._prev=e;var i=t._cipher.decryptBlock(e);return n(i,r)}},6383(t,e,r){var n=r(2861).Buffer,i=r(295);function o(t,e,r){var o=e.length,a=i(e,t._cache);return t._cache=t._cache.slice(o),t._prev=n.concat([t._prev,r?e:a]),a}e.encrypt=function(t,e,r){for(var i,a=n.allocUnsafe(0);e.length;){if(0===t._cache.length&&(t._cache=t._cipher.encryptBlock(t._prev),t._prev=n.allocUnsafe(0)),!(t._cache.length<=e.length)){a=n.concat([a,o(t,e,r)]);break}i=t._cache.length,a=n.concat([a,o(t,e.slice(0,i),r)]),e=e.slice(i)}return a}},5264(t,e,r){var n=r(2861).Buffer;function i(t,e,r){for(var n,i,a=-1,s=0;++a<8;)n=e&1<<7-a?128:0,s+=(128&(i=t._cipher.encryptBlock(t._prev)[0]^n))>>a%8,t._prev=o(t._prev,r?n:i);return s}function o(t,e){var r=t.length,i=-1,o=n.allocUnsafe(t.length);for(t=n.concat([t,n.from([e])]);++i<r;)o[i]=t[i]<<1|t[i+1]>>7;return o}e.encrypt=function(t,e,r){for(var o=e.length,a=n.allocUnsafe(o),s=-1;++s<o;)a[s]=i(t,e[s],r);return a}},6975(t,e,r){var n=r(2861).Buffer;function i(t,e,r){var i=t._cipher.encryptBlock(t._prev)[0]^e;return t._prev=n.concat([t._prev.slice(1),n.from([r?e:i])]),i}e.encrypt=function(t,e,r){for(var o=e.length,a=n.allocUnsafe(o),s=-1;++s<o;)a[s]=i(t,e[s],r);return a}},3053(t,e,r){var n=r(295),i=r(2861).Buffer,o=r(5122);function a(t){var e=t._cipher.encryptBlockRaw(t._prev);return o(t._prev),e}e.encrypt=function(t,e){var r=Math.ceil(e.length/16),o=t._cache.length;t._cache=i.concat([t._cache,i.allocUnsafe(16*r)]);for(var s=0;s<r;s++){var u=a(t),h=o+16*s;t._cache.writeUInt32BE(u[0],h+0),t._cache.writeUInt32BE(u[1],h+4),t._cache.writeUInt32BE(u[2],h+8),t._cache.writeUInt32BE(u[3],h+12)}var f=t._cache.slice(0,e.length);return t._cache=t._cache.slice(e.length),n(e,f)}},2632(t,e){e.encrypt=function(t,e){return t._cipher.encryptBlock(e)},e.decrypt=function(t,e){return t._cipher.decryptBlock(e)}},530(t,e,r){var n={ECB:r(2632),CBC:r(2884),CFB:r(6383),CFB8:r(6975),CFB1:r(5264),OFB:r(6843),CTR:r(3053),GCM:r(3053)},i=r(3219);for(var o in i)i[o].module=n[i[o].mode];t.exports=i},6843(t,e,r){var n=r(8287).Buffer,i=r(295);function o(t){return t._prev=t._cipher.encryptBlock(t._prev),t._prev}e.encrypt=function(t,e){for(;t._cache.length<e.length;)t._cache=n.concat([t._cache,o(t)]);var r=t._cache.slice(0,e.length);return t._cache=t._cache.slice(e.length),i(e,r)}},650(t,e,r){var n=r(462),i=r(2861).Buffer,o=r(6168);function a(t,e,r,a){o.call(this),this._cipher=new n.AES(e),this._prev=i.from(r),this._cache=i.allocUnsafe(0),this._secCache=i.allocUnsafe(0),this._decrypt=a,this._mode=t}r(4317)(a,o),a.prototype._update=function(t){return this._mode.encrypt(this,t,this._decrypt)},a.prototype._final=function(){this._cipher.scrub()},t.exports=a},125(t,e,r){var n=r(4050),i=r(1241),o=r(530),a=r(2438),s=r(8078);function u(t,e,r){if(t=t.toLowerCase(),o[t])return i.createCipheriv(t,e,r);if(a[t])return new n({key:e,iv:r,mode:t});throw new TypeError("invalid suite type")}function h(t,e,r){if(t=t.toLowerCase(),o[t])return i.createDecipheriv(t,e,r);if(a[t])return new n({key:e,iv:r,mode:t,decrypt:!0});throw new TypeError("invalid suite type")}e.createCipher=e.Cipher=function(t,e){var r,n;if(t=t.toLowerCase(),o[t])r=o[t].key,n=o[t].iv;else{if(!a[t])throw new TypeError("invalid suite type");r=8*a[t].key,n=a[t].iv}var i=s(e,!1,r,n);return u(t,i.key,i.iv)},e.createCipheriv=e.Cipheriv=u,e.createDecipher=e.Decipher=function(t,e){var r,n;if(t=t.toLowerCase(),o[t])r=o[t].key,n=o[t].iv;else{if(!a[t])throw new TypeError("invalid suite type");r=8*a[t].key,n=a[t].iv}var i=s(e,!1,r,n);return h(t,i.key,i.iv)},e.createDecipheriv=e.Decipheriv=h,e.listCiphers=e.getCiphers=function(){return Object.keys(a).concat(i.getCiphers())}},4050(t,e,r){var n=r(6168),i=r(9560),o=r(4317),a=r(2861).Buffer,s={"des-ede3-cbc":i.CBC.instantiate(i.EDE),"des-ede3":i.EDE,"des-ede-cbc":i.CBC.instantiate(i.EDE),"des-ede":i.EDE,"des-cbc":i.CBC.instantiate(i.DES),"des-ecb":i.DES};function u(t){n.call(this);var e,r=t.mode.toLowerCase(),i=s[r];e=t.decrypt?"decrypt":"encrypt";var o=t.key;a.isBuffer(o)||(o=a.from(o)),"des-ede"!==r&&"des-ede-cbc"!==r||(o=a.concat([o,o.slice(0,8)]));var u=t.iv;a.isBuffer(u)||(u=a.from(u)),this._des=i.create({key:o,iv:u,type:e})}s.des=s["des-cbc"],s.des3=s["des-ede3-cbc"],t.exports=u,o(u,n),u.prototype._update=function(t){return a.from(this._des.update(t))},u.prototype._final=function(){return a.from(this._des.final())}},2438(t,e){e["des-ecb"]={key:8,iv:0},e["des-cbc"]=e.des={key:8,iv:8},e["des-ede3-cbc"]=e.des3={key:24,iv:8},e["des-ede3"]={key:24,iv:0},e["des-ede-cbc"]={key:16,iv:8},e["des-ede"]={key:16,iv:0}},7332(t,e,r){"use strict";var n=r(8893),i=r(3209),o=r(2861).Buffer;function a(t){var e,r=t.modulus.byteLength();do{e=new n(i(r))}while(e.cmp(t.modulus)>=0||!e.umod(t.prime1)||!e.umod(t.prime2));return e}function s(t,e){var r=function(t){var e=a(t);return{blinder:e.toRed(n.mont(t.modulus)).redPow(new n(t.publicExponent)).fromRed(),unblinder:e.invm(t.modulus)}}(e),i=e.modulus.byteLength(),s=new n(t).mul(r.blinder).umod(e.modulus),u=s.toRed(n.mont(e.prime1)),h=s.toRed(n.mont(e.prime2)),f=e.coefficient,l=e.prime1,c=e.prime2,d=u.redPow(e.exponent1).fromRed(),p=h.redPow(e.exponent2).fromRed(),y=d.isub(p).imul(f).umod(l).imul(c);return p.iadd(y).imul(r.unblinder).umod(e.modulus).toArrayLike(o,"be",i)}s.getr=a,t.exports=s},8893(t,e,r){!function(t,e){"use strict";function n(t,e){if(!t)throw new Error(e||"Assertion failed")}function i(t,e){t.super_=e;var r=function(){};r.prototype=e.prototype,t.prototype=new r,t.prototype.constructor=t}function o(t,e,r){if(o.isBN(t))return t;this.negative=0,this.words=null,this.length=0,this.red=null,null!==t&&("le"!==e&&"be"!==e||(r=e,e=10),this._init(t||0,e||10,r||"be"))}var a;"object"==typeof t?t.exports=o:e.BN=o,o.BN=o,o.wordSize=26;try{a="undefined"!=typeof window&&void 0!==window.Buffer?window.Buffer:r(8285).Buffer}catch(t){}function s(t,e){var r=t.charCodeAt(e);return r>=48&&r<=57?r-48:r>=65&&r<=70?r-55:r>=97&&r<=102?r-87:void n(!1,"Invalid character in "+t)}function u(t,e,r){var n=s(t,r);return r-1>=e&&(n|=s(t,r-1)<<4),n}function h(t,e,r,i){for(var o=0,a=0,s=Math.min(t.length,r),u=e;u<s;u++){var h=t.charCodeAt(u)-48;o*=i,a=h>=49?h-49+10:h>=17?h-17+10:h,n(h>=0&&a<i,"Invalid character"),o+=a}return o}function f(t,e){t.words=e.words,t.length=e.length,t.negative=e.negative,t.red=e.red}if(o.isBN=function(t){return t instanceof o||null!==t&&"object"==typeof t&&t.constructor.wordSize===o.wordSize&&Array.isArray(t.words)},o.max=function(t,e){return t.cmp(e)>0?t:e},o.min=function(t,e){return t.cmp(e)<0?t:e},o.prototype._init=function(t,e,r){if("number"==typeof t)return this._initNumber(t,e,r);if("object"==typeof t)return this._initArray(t,e,r);"hex"===e&&(e=16),n(e===(0|e)&&e>=2&&e<=36);var i=0;"-"===(t=t.toString().replace(/\s+/g,""))[0]&&(i++,this.negative=1),i<t.length&&(16===e?this._parseHex(t,i,r):(this._parseBase(t,e,i),"le"===r&&this._initArray(this.toArray(),e,r)))},o.prototype._initNumber=function(t,e,r){t<0&&(this.negative=1,t=-t),t<67108864?(this.words=[67108863&t],this.length=1):t<4503599627370496?(this.words=[67108863&t,t/67108864&67108863],this.length=2):(n(t<9007199254740992),this.words=[67108863&t,t/67108864&67108863,1],this.length=3),"le"===r&&this._initArray(this.toArray(),e,r)},o.prototype._initArray=function(t,e,r){if(n("number"==typeof t.length),t.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(t.length/3),this.words=new Array(this.length);for(var i=0;i<this.length;i++)this.words[i]=0;var o,a,s=0;if("be"===r)for(i=t.length-1,o=0;i>=0;i-=3)a=t[i]|t[i-1]<<8|t[i-2]<<16,this.words[o]|=a<<s&67108863,this.words[o+1]=a>>>26-s&67108863,(s+=24)>=26&&(s-=26,o++);else if("le"===r)for(i=0,o=0;i<t.length;i+=3)a=t[i]|t[i+1]<<8|t[i+2]<<16,this.words[o]|=a<<s&67108863,this.words[o+1]=a>>>26-s&67108863,(s+=24)>=26&&(s-=26,o++);return this._strip()},o.prototype._parseHex=function(t,e,r){this.length=Math.ceil((t.length-e)/6),this.words=new Array(this.length);for(var n=0;n<this.length;n++)this.words[n]=0;var i,o=0,a=0;if("be"===r)for(n=t.length-1;n>=e;n-=2)i=u(t,e,n)<<o,this.words[a]|=67108863&i,o>=18?(o-=18,a+=1,this.words[a]|=i>>>26):o+=8;else for(n=(t.length-e)%2==0?e+1:e;n<t.length;n+=2)i=u(t,e,n)<<o,this.words[a]|=67108863&i,o>=18?(o-=18,a+=1,this.words[a]|=i>>>26):o+=8;this._strip()},o.prototype._parseBase=function(t,e,r){this.words=[0],this.length=1;for(var n=0,i=1;i<=67108863;i*=e)n++;n--,i=i/e|0;for(var o=t.length-r,a=o%n,s=Math.min(o,o-a)+r,u=0,f=r;f<s;f+=n)u=h(t,f,f+n,e),this.imuln(i),this.words[0]+u<67108864?this.words[0]+=u:this._iaddn(u);if(0!==a){var l=1;for(u=h(t,f,t.length,e),f=0;f<a;f++)l*=e;this.imuln(l),this.words[0]+u<67108864?this.words[0]+=u:this._iaddn(u)}this._strip()},o.prototype.copy=function(t){t.words=new Array(this.length);for(var e=0;e<this.length;e++)t.words[e]=this.words[e];t.length=this.length,t.negative=this.negative,t.red=this.red},o.prototype._move=function(t){f(t,this)},o.prototype.clone=function(){var t=new o(null);return this.copy(t),t},o.prototype._expand=function(t){for(;this.length<t;)this.words[this.length++]=0;return this},o.prototype._strip=function(){for(;this.length>1&&0===this.words[this.length-1];)this.length--;return this._normSign()},o.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},"undefined"!=typeof Symbol&&"function"==typeof Symbol.for)try{o.prototype[Symbol.for("nodejs.util.inspect.custom")]=l}catch(t){o.prototype.inspect=l}else o.prototype.inspect=l;function l(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"}var c=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],d=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],p=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];o.prototype.toString=function(t,e){var r;if(e=0|e||1,16===(t=t||10)||"hex"===t){r="";for(var i=0,o=0,a=0;a<this.length;a++){var s=this.words[a],u=(16777215&(s<<i|o)).toString(16);o=s>>>24-i&16777215,(i+=2)>=26&&(i-=26,a--),r=0!==o||a!==this.length-1?c[6-u.length]+u+r:u+r}for(0!==o&&(r=o.toString(16)+r);r.length%e!==0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}if(t===(0|t)&&t>=2&&t<=36){var h=d[t],f=p[t];r="";var l=this.clone();for(l.negative=0;!l.isZero();){var y=l.modrn(f).toString(t);r=(l=l.idivn(f)).isZero()?y+r:c[h-y.length]+y+r}for(this.isZero()&&(r="0"+r);r.length%e!==0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}n(!1,"Base should be between 2 and 36")},o.prototype.toNumber=function(){var t=this.words[0];return 2===this.length?t+=67108864*this.words[1]:3===this.length&&1===this.words[2]?t+=4503599627370496+67108864*this.words[1]:this.length>2&&n(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-t:t},o.prototype.toJSON=function(){return this.toString(16,2)},a&&(o.prototype.toBuffer=function(t,e){return this.toArrayLike(a,t,e)}),o.prototype.toArray=function(t,e){return this.toArrayLike(Array,t,e)};function y(t,e,r){r.negative=e.negative^t.negative;var n=t.length+e.length|0;r.length=n,n=n-1|0;var i=0|t.words[0],o=0|e.words[0],a=i*o,s=67108863&a,u=a/67108864|0;r.words[0]=s;for(var h=1;h<n;h++){for(var f=u>>>26,l=67108863&u,c=Math.min(h,e.length-1),d=Math.max(0,h-t.length+1);d<=c;d++){var p=h-d|0;f+=(a=(i=0|t.words[p])*(o=0|e.words[d])+l)/67108864|0,l=67108863&a}r.words[h]=0|l,u=0|f}return 0!==u?r.words[h]=0|u:r.length--,r._strip()}o.prototype.toArrayLike=function(t,e,r){this._strip();var i=this.byteLength(),o=r||Math.max(1,i);n(i<=o,"byte array longer than desired length"),n(o>0,"Requested array length <= 0");var a=function(t,e){return t.allocUnsafe?t.allocUnsafe(e):new t(e)}(t,o);return this["_toArrayLike"+("le"===e?"LE":"BE")](a,i),a},o.prototype._toArrayLikeLE=function(t,e){for(var r=0,n=0,i=0,o=0;i<this.length;i++){var a=this.words[i]<<o|n;t[r++]=255&a,r<t.length&&(t[r++]=a>>8&255),r<t.length&&(t[r++]=a>>16&255),6===o?(r<t.length&&(t[r++]=a>>24&255),n=0,o=0):(n=a>>>24,o+=2)}if(r<t.length)for(t[r++]=n;r<t.length;)t[r++]=0},o.prototype._toArrayLikeBE=function(t,e){for(var r=t.length-1,n=0,i=0,o=0;i<this.length;i++){var a=this.words[i]<<o|n;t[r--]=255&a,r>=0&&(t[r--]=a>>8&255),r>=0&&(t[r--]=a>>16&255),6===o?(r>=0&&(t[r--]=a>>24&255),n=0,o=0):(n=a>>>24,o+=2)}if(r>=0)for(t[r--]=n;r>=0;)t[r--]=0},Math.clz32?o.prototype._countBits=function(t){return 32-Math.clz32(t)}:o.prototype._countBits=function(t){var e=t,r=0;return e>=4096&&(r+=13,e>>>=13),e>=64&&(r+=7,e>>>=7),e>=8&&(r+=4,e>>>=4),e>=2&&(r+=2,e>>>=2),r+e},o.prototype._zeroBits=function(t){if(0===t)return 26;var e=t,r=0;return 8191&e||(r+=13,e>>>=13),127&e||(r+=7,e>>>=7),15&e||(r+=4,e>>>=4),3&e||(r+=2,e>>>=2),1&e||r++,r},o.prototype.bitLength=function(){var t=this.words[this.length-1],e=this._countBits(t);return 26*(this.length-1)+e},o.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,e=0;e<this.length;e++){var r=this._zeroBits(this.words[e]);if(t+=r,26!==r)break}return t},o.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},o.prototype.toTwos=function(t){return 0!==this.negative?this.abs().inotn(t).iaddn(1):this.clone()},o.prototype.fromTwos=function(t){return this.testn(t-1)?this.notn(t).iaddn(1).ineg():this.clone()},o.prototype.isNeg=function(){return 0!==this.negative},o.prototype.neg=function(){return this.clone().ineg()},o.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},o.prototype.iuor=function(t){for(;this.length<t.length;)this.words[this.length++]=0;for(var e=0;e<t.length;e++)this.words[e]=this.words[e]|t.words[e];return this._strip()},o.prototype.ior=function(t){return n(0===(this.negative|t.negative)),this.iuor(t)},o.prototype.or=function(t){return this.length>t.length?this.clone().ior(t):t.clone().ior(this)},o.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},o.prototype.iuand=function(t){var e;e=this.length>t.length?t:this;for(var r=0;r<e.length;r++)this.words[r]=this.words[r]&t.words[r];return this.length=e.length,this._strip()},o.prototype.iand=function(t){return n(0===(this.negative|t.negative)),this.iuand(t)},o.prototype.and=function(t){return this.length>t.length?this.clone().iand(t):t.clone().iand(this)},o.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},o.prototype.iuxor=function(t){var e,r;this.length>t.length?(e=this,r=t):(e=t,r=this);for(var n=0;n<r.length;n++)this.words[n]=e.words[n]^r.words[n];if(this!==e)for(;n<e.length;n++)this.words[n]=e.words[n];return this.length=e.length,this._strip()},o.prototype.ixor=function(t){return n(0===(this.negative|t.negative)),this.iuxor(t)},o.prototype.xor=function(t){return this.length>t.length?this.clone().ixor(t):t.clone().ixor(this)},o.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},o.prototype.inotn=function(t){n("number"==typeof t&&t>=0);var e=0|Math.ceil(t/26),r=t%26;this._expand(e),r>0&&e--;for(var i=0;i<e;i++)this.words[i]=67108863&~this.words[i];return r>0&&(this.words[i]=~this.words[i]&67108863>>26-r),this._strip()},o.prototype.notn=function(t){return this.clone().inotn(t)},o.prototype.setn=function(t,e){n("number"==typeof t&&t>=0);var r=t/26|0,i=t%26;return this._expand(r+1),this.words[r]=e?this.words[r]|1<<i:this.words[r]&~(1<<i),this._strip()},o.prototype.iadd=function(t){var e,r,n;if(0!==this.negative&&0===t.negative)return this.negative=0,e=this.isub(t),this.negative^=1,this._normSign();if(0===this.negative&&0!==t.negative)return t.negative=0,e=this.isub(t),t.negative=1,e._normSign();this.length>t.length?(r=this,n=t):(r=t,n=this);for(var i=0,o=0;o<n.length;o++)e=(0|r.words[o])+(0|n.words[o])+i,this.words[o]=67108863&e,i=e>>>26;for(;0!==i&&o<r.length;o++)e=(0|r.words[o])+i,this.words[o]=67108863&e,i=e>>>26;if(this.length=r.length,0!==i)this.words[this.length]=i,this.length++;else if(r!==this)for(;o<r.length;o++)this.words[o]=r.words[o];return this},o.prototype.add=function(t){var e;return 0!==t.negative&&0===this.negative?(t.negative=0,e=this.sub(t),t.negative^=1,e):0===t.negative&&0!==this.negative?(this.negative=0,e=t.sub(this),this.negative=1,e):this.length>t.length?this.clone().iadd(t):t.clone().iadd(this)},o.prototype.isub=function(t){if(0!==t.negative){t.negative=0;var e=this.iadd(t);return t.negative=1,e._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(t),this.negative=1,this._normSign();var r,n,i=this.cmp(t);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;i>0?(r=this,n=t):(r=t,n=this);for(var o=0,a=0;a<n.length;a++)o=(e=(0|r.words[a])-(0|n.words[a])+o)>>26,this.words[a]=67108863&e;for(;0!==o&&a<r.length;a++)o=(e=(0|r.words[a])+o)>>26,this.words[a]=67108863&e;if(0===o&&a<r.length&&r!==this)for(;a<r.length;a++)this.words[a]=r.words[a];return this.length=Math.max(this.length,a),r!==this&&(this.negative=1),this._strip()},o.prototype.sub=function(t){return this.clone().isub(t)};var g=function(t,e,r){var n,i,o,a=t.words,s=e.words,u=r.words,h=0,f=0|a[0],l=8191&f,c=f>>>13,d=0|a[1],p=8191&d,y=d>>>13,g=0|a[2],m=8191&g,b=g>>>13,v=0|a[3],_=8191&v,w=v>>>13,E=0|a[4],M=8191&E,S=E>>>13,k=0|a[5],A=8191&k,x=k>>>13,O=0|a[6],R=8191&O,B=O>>>13,j=0|a[7],I=8191&j,T=j>>>13,L=0|a[8],P=8191&L,U=L>>>13,N=0|a[9],D=8191&N,C=N>>>13,F=0|s[0],z=8191&F,q=F>>>13,Z=0|s[1],W=8191&Z,K=Z>>>13,V=0|s[2],H=8191&V,G=V>>>13,$=0|s[3],J=8191&$,Y=$>>>13,X=0|s[4],Q=8191&X,tt=X>>>13,et=0|s[5],rt=8191&et,nt=et>>>13,it=0|s[6],ot=8191&it,at=it>>>13,st=0|s[7],ut=8191&st,ht=st>>>13,ft=0|s[8],lt=8191&ft,ct=ft>>>13,dt=0|s[9],pt=8191&dt,yt=dt>>>13;r.negative=t.negative^e.negative,r.length=19;var gt=(h+(n=Math.imul(l,z))|0)+((8191&(i=(i=Math.imul(l,q))+Math.imul(c,z)|0))<<13)|0;h=((o=Math.imul(c,q))+(i>>>13)|0)+(gt>>>26)|0,gt&=67108863,n=Math.imul(p,z),i=(i=Math.imul(p,q))+Math.imul(y,z)|0,o=Math.imul(y,q);var mt=(h+(n=n+Math.imul(l,W)|0)|0)+((8191&(i=(i=i+Math.imul(l,K)|0)+Math.imul(c,W)|0))<<13)|0;h=((o=o+Math.imul(c,K)|0)+(i>>>13)|0)+(mt>>>26)|0,mt&=67108863,n=Math.imul(m,z),i=(i=Math.imul(m,q))+Math.imul(b,z)|0,o=Math.imul(b,q),n=n+Math.imul(p,W)|0,i=(i=i+Math.imul(p,K)|0)+Math.imul(y,W)|0,o=o+Math.imul(y,K)|0;var bt=(h+(n=n+Math.imul(l,H)|0)|0)+((8191&(i=(i=i+Math.imul(l,G)|0)+Math.imul(c,H)|0))<<13)|0;h=((o=o+Math.imul(c,G)|0)+(i>>>13)|0)+(bt>>>26)|0,bt&=67108863,n=Math.imul(_,z),i=(i=Math.imul(_,q))+Math.imul(w,z)|0,o=Math.imul(w,q),n=n+Math.imul(m,W)|0,i=(i=i+Math.imul(m,K)|0)+Math.imul(b,W)|0,o=o+Math.imul(b,K)|0,n=n+Math.imul(p,H)|0,i=(i=i+Math.imul(p,G)|0)+Math.imul(y,H)|0,o=o+Math.imul(y,G)|0;var vt=(h+(n=n+Math.imul(l,J)|0)|0)+((8191&(i=(i=i+Math.imul(l,Y)|0)+Math.imul(c,J)|0))<<13)|0;h=((o=o+Math.imul(c,Y)|0)+(i>>>13)|0)+(vt>>>26)|0,vt&=67108863,n=Math.imul(M,z),i=(i=Math.imul(M,q))+Math.imul(S,z)|0,o=Math.imul(S,q),n=n+Math.imul(_,W)|0,i=(i=i+Math.imul(_,K)|0)+Math.imul(w,W)|0,o=o+Math.imul(w,K)|0,n=n+Math.imul(m,H)|0,i=(i=i+Math.imul(m,G)|0)+Math.imul(b,H)|0,o=o+Math.imul(b,G)|0,n=n+Math.imul(p,J)|0,i=(i=i+Math.imul(p,Y)|0)+Math.imul(y,J)|0,o=o+Math.imul(y,Y)|0;var _t=(h+(n=n+Math.imul(l,Q)|0)|0)+((8191&(i=(i=i+Math.imul(l,tt)|0)+Math.imul(c,Q)|0))<<13)|0;h=((o=o+Math.imul(c,tt)|0)+(i>>>13)|0)+(_t>>>26)|0,_t&=67108863,n=Math.imul(A,z),i=(i=Math.imul(A,q))+Math.imul(x,z)|0,o=Math.imul(x,q),n=n+Math.imul(M,W)|0,i=(i=i+Math.imul(M,K)|0)+Math.imul(S,W)|0,o=o+Math.imul(S,K)|0,n=n+Math.imul(_,H)|0,i=(i=i+Math.imul(_,G)|0)+Math.imul(w,H)|0,o=o+Math.imul(w,G)|0,n=n+Math.imul(m,J)|0,i=(i=i+Math.imul(m,Y)|0)+Math.imul(b,J)|0,o=o+Math.imul(b,Y)|0,n=n+Math.imul(p,Q)|0,i=(i=i+Math.imul(p,tt)|0)+Math.imul(y,Q)|0,o=o+Math.imul(y,tt)|0;var wt=(h+(n=n+Math.imul(l,rt)|0)|0)+((8191&(i=(i=i+Math.imul(l,nt)|0)+Math.imul(c,rt)|0))<<13)|0;h=((o=o+Math.imul(c,nt)|0)+(i>>>13)|0)+(wt>>>26)|0,wt&=67108863,n=Math.imul(R,z),i=(i=Math.imul(R,q))+Math.imul(B,z)|0,o=Math.imul(B,q),n=n+Math.imul(A,W)|0,i=(i=i+Math.imul(A,K)|0)+Math.imul(x,W)|0,o=o+Math.imul(x,K)|0,n=n+Math.imul(M,H)|0,i=(i=i+Math.imul(M,G)|0)+Math.imul(S,H)|0,o=o+Math.imul(S,G)|0,n=n+Math.imul(_,J)|0,i=(i=i+Math.imul(_,Y)|0)+Math.imul(w,J)|0,o=o+Math.imul(w,Y)|0,n=n+Math.imul(m,Q)|0,i=(i=i+Math.imul(m,tt)|0)+Math.imul(b,Q)|0,o=o+Math.imul(b,tt)|0,n=n+Math.imul(p,rt)|0,i=(i=i+Math.imul(p,nt)|0)+Math.imul(y,rt)|0,o=o+Math.imul(y,nt)|0;var Et=(h+(n=n+Math.imul(l,ot)|0)|0)+((8191&(i=(i=i+Math.imul(l,at)|0)+Math.imul(c,ot)|0))<<13)|0;h=((o=o+Math.imul(c,at)|0)+(i>>>13)|0)+(Et>>>26)|0,Et&=67108863,n=Math.imul(I,z),i=(i=Math.imul(I,q))+Math.imul(T,z)|0,o=Math.imul(T,q),n=n+Math.imul(R,W)|0,i=(i=i+Math.imul(R,K)|0)+Math.imul(B,W)|0,o=o+Math.imul(B,K)|0,n=n+Math.imul(A,H)|0,i=(i=i+Math.imul(A,G)|0)+Math.imul(x,H)|0,o=o+Math.imul(x,G)|0,n=n+Math.imul(M,J)|0,i=(i=i+Math.imul(M,Y)|0)+Math.imul(S,J)|0,o=o+Math.imul(S,Y)|0,n=n+Math.imul(_,Q)|0,i=(i=i+Math.imul(_,tt)|0)+Math.imul(w,Q)|0,o=o+Math.imul(w,tt)|0,n=n+Math.imul(m,rt)|0,i=(i=i+Math.imul(m,nt)|0)+Math.imul(b,rt)|0,o=o+Math.imul(b,nt)|0,n=n+Math.imul(p,ot)|0,i=(i=i+Math.imul(p,at)|0)+Math.imul(y,ot)|0,o=o+Math.imul(y,at)|0;var Mt=(h+(n=n+Math.imul(l,ut)|0)|0)+((8191&(i=(i=i+Math.imul(l,ht)|0)+Math.imul(c,ut)|0))<<13)|0;h=((o=o+Math.imul(c,ht)|0)+(i>>>13)|0)+(Mt>>>26)|0,Mt&=67108863,n=Math.imul(P,z),i=(i=Math.imul(P,q))+Math.imul(U,z)|0,o=Math.imul(U,q),n=n+Math.imul(I,W)|0,i=(i=i+Math.imul(I,K)|0)+Math.imul(T,W)|0,o=o+Math.imul(T,K)|0,n=n+Math.imul(R,H)|0,i=(i=i+Math.imul(R,G)|0)+Math.imul(B,H)|0,o=o+Math.imul(B,G)|0,n=n+Math.imul(A,J)|0,i=(i=i+Math.imul(A,Y)|0)+Math.imul(x,J)|0,o=o+Math.imul(x,Y)|0,n=n+Math.imul(M,Q)|0,i=(i=i+Math.imul(M,tt)|0)+Math.imul(S,Q)|0,o=o+Math.imul(S,tt)|0,n=n+Math.imul(_,rt)|0,i=(i=i+Math.imul(_,nt)|0)+Math.imul(w,rt)|0,o=o+Math.imul(w,nt)|0,n=n+Math.imul(m,ot)|0,i=(i=i+Math.imul(m,at)|0)+Math.imul(b,ot)|0,o=o+Math.imul(b,at)|0,n=n+Math.imul(p,ut)|0,i=(i=i+Math.imul(p,ht)|0)+Math.imul(y,ut)|0,o=o+Math.imul(y,ht)|0;var St=(h+(n=n+Math.imul(l,lt)|0)|0)+((8191&(i=(i=i+Math.imul(l,ct)|0)+Math.imul(c,lt)|0))<<13)|0;h=((o=o+Math.imul(c,ct)|0)+(i>>>13)|0)+(St>>>26)|0,St&=67108863,n=Math.imul(D,z),i=(i=Math.imul(D,q))+Math.imul(C,z)|0,o=Math.imul(C,q),n=n+Math.imul(P,W)|0,i=(i=i+Math.imul(P,K)|0)+Math.imul(U,W)|0,o=o+Math.imul(U,K)|0,n=n+Math.imul(I,H)|0,i=(i=i+Math.imul(I,G)|0)+Math.imul(T,H)|0,o=o+Math.imul(T,G)|0,n=n+Math.imul(R,J)|0,i=(i=i+Math.imul(R,Y)|0)+Math.imul(B,J)|0,o=o+Math.imul(B,Y)|0,n=n+Math.imul(A,Q)|0,i=(i=i+Math.imul(A,tt)|0)+Math.imul(x,Q)|0,o=o+Math.imul(x,tt)|0,n=n+Math.imul(M,rt)|0,i=(i=i+Math.imul(M,nt)|0)+Math.imul(S,rt)|0,o=o+Math.imul(S,nt)|0,n=n+Math.imul(_,ot)|0,i=(i=i+Math.imul(_,at)|0)+Math.imul(w,ot)|0,o=o+Math.imul(w,at)|0,n=n+Math.imul(m,ut)|0,i=(i=i+Math.imul(m,ht)|0)+Math.imul(b,ut)|0,o=o+Math.imul(b,ht)|0,n=n+Math.imul(p,lt)|0,i=(i=i+Math.imul(p,ct)|0)+Math.imul(y,lt)|0,o=o+Math.imul(y,ct)|0;var kt=(h+(n=n+Math.imul(l,pt)|0)|0)+((8191&(i=(i=i+Math.imul(l,yt)|0)+Math.imul(c,pt)|0))<<13)|0;h=((o=o+Math.imul(c,yt)|0)+(i>>>13)|0)+(kt>>>26)|0,kt&=67108863,n=Math.imul(D,W),i=(i=Math.imul(D,K))+Math.imul(C,W)|0,o=Math.imul(C,K),n=n+Math.imul(P,H)|0,i=(i=i+Math.imul(P,G)|0)+Math.imul(U,H)|0,o=o+Math.imul(U,G)|0,n=n+Math.imul(I,J)|0,i=(i=i+Math.imul(I,Y)|0)+Math.imul(T,J)|0,o=o+Math.imul(T,Y)|0,n=n+Math.imul(R,Q)|0,i=(i=i+Math.imul(R,tt)|0)+Math.imul(B,Q)|0,o=o+Math.imul(B,tt)|0,n=n+Math.imul(A,rt)|0,i=(i=i+Math.imul(A,nt)|0)+Math.imul(x,rt)|0,o=o+Math.imul(x,nt)|0,n=n+Math.imul(M,ot)|0,i=(i=i+Math.imul(M,at)|0)+Math.imul(S,ot)|0,o=o+Math.imul(S,at)|0,n=n+Math.imul(_,ut)|0,i=(i=i+Math.imul(_,ht)|0)+Math.imul(w,ut)|0,o=o+Math.imul(w,ht)|0,n=n+Math.imul(m,lt)|0,i=(i=i+Math.imul(m,ct)|0)+Math.imul(b,lt)|0,o=o+Math.imul(b,ct)|0;var At=(h+(n=n+Math.imul(p,pt)|0)|0)+((8191&(i=(i=i+Math.imul(p,yt)|0)+Math.imul(y,pt)|0))<<13)|0;h=((o=o+Math.imul(y,yt)|0)+(i>>>13)|0)+(At>>>26)|0,At&=67108863,n=Math.imul(D,H),i=(i=Math.imul(D,G))+Math.imul(C,H)|0,o=Math.imul(C,G),n=n+Math.imul(P,J)|0,i=(i=i+Math.imul(P,Y)|0)+Math.imul(U,J)|0,o=o+Math.imul(U,Y)|0,n=n+Math.imul(I,Q)|0,i=(i=i+Math.imul(I,tt)|0)+Math.imul(T,Q)|0,o=o+Math.imul(T,tt)|0,n=n+Math.imul(R,rt)|0,i=(i=i+Math.imul(R,nt)|0)+Math.imul(B,rt)|0,o=o+Math.imul(B,nt)|0,n=n+Math.imul(A,ot)|0,i=(i=i+Math.imul(A,at)|0)+Math.imul(x,ot)|0,o=o+Math.imul(x,at)|0,n=n+Math.imul(M,ut)|0,i=(i=i+Math.imul(M,ht)|0)+Math.imul(S,ut)|0,o=o+Math.imul(S,ht)|0,n=n+Math.imul(_,lt)|0,i=(i=i+Math.imul(_,ct)|0)+Math.imul(w,lt)|0,o=o+Math.imul(w,ct)|0;var xt=(h+(n=n+Math.imul(m,pt)|0)|0)+((8191&(i=(i=i+Math.imul(m,yt)|0)+Math.imul(b,pt)|0))<<13)|0;h=((o=o+Math.imul(b,yt)|0)+(i>>>13)|0)+(xt>>>26)|0,xt&=67108863,n=Math.imul(D,J),i=(i=Math.imul(D,Y))+Math.imul(C,J)|0,o=Math.imul(C,Y),n=n+Math.imul(P,Q)|0,i=(i=i+Math.imul(P,tt)|0)+Math.imul(U,Q)|0,o=o+Math.imul(U,tt)|0,n=n+Math.imul(I,rt)|0,i=(i=i+Math.imul(I,nt)|0)+Math.imul(T,rt)|0,o=o+Math.imul(T,nt)|0,n=n+Math.imul(R,ot)|0,i=(i=i+Math.imul(R,at)|0)+Math.imul(B,ot)|0,o=o+Math.imul(B,at)|0,n=n+Math.imul(A,ut)|0,i=(i=i+Math.imul(A,ht)|0)+Math.imul(x,ut)|0,o=o+Math.imul(x,ht)|0,n=n+Math.imul(M,lt)|0,i=(i=i+Math.imul(M,ct)|0)+Math.imul(S,lt)|0,o=o+Math.imul(S,ct)|0;var Ot=(h+(n=n+Math.imul(_,pt)|0)|0)+((8191&(i=(i=i+Math.imul(_,yt)|0)+Math.imul(w,pt)|0))<<13)|0;h=((o=o+Math.imul(w,yt)|0)+(i>>>13)|0)+(Ot>>>26)|0,Ot&=67108863,n=Math.imul(D,Q),i=(i=Math.imul(D,tt))+Math.imul(C,Q)|0,o=Math.imul(C,tt),n=n+Math.imul(P,rt)|0,i=(i=i+Math.imul(P,nt)|0)+Math.imul(U,rt)|0,o=o+Math.imul(U,nt)|0,n=n+Math.imul(I,ot)|0,i=(i=i+Math.imul(I,at)|0)+Math.imul(T,ot)|0,o=o+Math.imul(T,at)|0,n=n+Math.imul(R,ut)|0,i=(i=i+Math.imul(R,ht)|0)+Math.imul(B,ut)|0,o=o+Math.imul(B,ht)|0,n=n+Math.imul(A,lt)|0,i=(i=i+Math.imul(A,ct)|0)+Math.imul(x,lt)|0,o=o+Math.imul(x,ct)|0;var Rt=(h+(n=n+Math.imul(M,pt)|0)|0)+((8191&(i=(i=i+Math.imul(M,yt)|0)+Math.imul(S,pt)|0))<<13)|0;h=((o=o+Math.imul(S,yt)|0)+(i>>>13)|0)+(Rt>>>26)|0,Rt&=67108863,n=Math.imul(D,rt),i=(i=Math.imul(D,nt))+Math.imul(C,rt)|0,o=Math.imul(C,nt),n=n+Math.imul(P,ot)|0,i=(i=i+Math.imul(P,at)|0)+Math.imul(U,ot)|0,o=o+Math.imul(U,at)|0,n=n+Math.imul(I,ut)|0,i=(i=i+Math.imul(I,ht)|0)+Math.imul(T,ut)|0,o=o+Math.imul(T,ht)|0,n=n+Math.imul(R,lt)|0,i=(i=i+Math.imul(R,ct)|0)+Math.imul(B,lt)|0,o=o+Math.imul(B,ct)|0;var Bt=(h+(n=n+Math.imul(A,pt)|0)|0)+((8191&(i=(i=i+Math.imul(A,yt)|0)+Math.imul(x,pt)|0))<<13)|0;h=((o=o+Math.imul(x,yt)|0)+(i>>>13)|0)+(Bt>>>26)|0,Bt&=67108863,n=Math.imul(D,ot),i=(i=Math.imul(D,at))+Math.imul(C,ot)|0,o=Math.imul(C,at),n=n+Math.imul(P,ut)|0,i=(i=i+Math.imul(P,ht)|0)+Math.imul(U,ut)|0,o=o+Math.imul(U,ht)|0,n=n+Math.imul(I,lt)|0,i=(i=i+Math.imul(I,ct)|0)+Math.imul(T,lt)|0,o=o+Math.imul(T,ct)|0;var jt=(h+(n=n+Math.imul(R,pt)|0)|0)+((8191&(i=(i=i+Math.imul(R,yt)|0)+Math.imul(B,pt)|0))<<13)|0;h=((o=o+Math.imul(B,yt)|0)+(i>>>13)|0)+(jt>>>26)|0,jt&=67108863,n=Math.imul(D,ut),i=(i=Math.imul(D,ht))+Math.imul(C,ut)|0,o=Math.imul(C,ht),n=n+Math.imul(P,lt)|0,i=(i=i+Math.imul(P,ct)|0)+Math.imul(U,lt)|0,o=o+Math.imul(U,ct)|0;var It=(h+(n=n+Math.imul(I,pt)|0)|0)+((8191&(i=(i=i+Math.imul(I,yt)|0)+Math.imul(T,pt)|0))<<13)|0;h=((o=o+Math.imul(T,yt)|0)+(i>>>13)|0)+(It>>>26)|0,It&=67108863,n=Math.imul(D,lt),i=(i=Math.imul(D,ct))+Math.imul(C,lt)|0,o=Math.imul(C,ct);var Tt=(h+(n=n+Math.imul(P,pt)|0)|0)+((8191&(i=(i=i+Math.imul(P,yt)|0)+Math.imul(U,pt)|0))<<13)|0;h=((o=o+Math.imul(U,yt)|0)+(i>>>13)|0)+(Tt>>>26)|0,Tt&=67108863;var Lt=(h+(n=Math.imul(D,pt))|0)+((8191&(i=(i=Math.imul(D,yt))+Math.imul(C,pt)|0))<<13)|0;return h=((o=Math.imul(C,yt))+(i>>>13)|0)+(Lt>>>26)|0,Lt&=67108863,u[0]=gt,u[1]=mt,u[2]=bt,u[3]=vt,u[4]=_t,u[5]=wt,u[6]=Et,u[7]=Mt,u[8]=St,u[9]=kt,u[10]=At,u[11]=xt,u[12]=Ot,u[13]=Rt,u[14]=Bt,u[15]=jt,u[16]=It,u[17]=Tt,u[18]=Lt,0!==h&&(u[19]=h,r.length++),r};function m(t,e,r){r.negative=e.negative^t.negative,r.length=t.length+e.length;for(var n=0,i=0,o=0;o<r.length-1;o++){var a=i;i=0;for(var s=67108863&n,u=Math.min(o,e.length-1),h=Math.max(0,o-t.length+1);h<=u;h++){var f=o-h,l=(0|t.words[f])*(0|e.words[h]),c=67108863&l;s=67108863&(c=c+s|0),i+=(a=(a=a+(l/67108864|0)|0)+(c>>>26)|0)>>>26,a&=67108863}r.words[o]=s,n=a,a=i}return 0!==n?r.words[o]=n:r.length--,r._strip()}function b(t,e,r){return m(t,e,r)}function v(t,e){this.x=t,this.y=e}Math.imul||(g=y),o.prototype.mulTo=function(t,e){var r=this.length+t.length;return 10===this.length&&10===t.length?g(this,t,e):r<63?y(this,t,e):r<1024?m(this,t,e):b(this,t,e)},v.prototype.makeRBT=function(t){for(var e=new Array(t),r=o.prototype._countBits(t)-1,n=0;n<t;n++)e[n]=this.revBin(n,r,t);return e},v.prototype.revBin=function(t,e,r){if(0===t||t===r-1)return t;for(var n=0,i=0;i<e;i++)n|=(1&t)<<e-i-1,t>>=1;return n},v.prototype.permute=function(t,e,r,n,i,o){for(var a=0;a<o;a++)n[a]=e[t[a]],i[a]=r[t[a]]},v.prototype.transform=function(t,e,r,n,i,o){this.permute(o,t,e,r,n,i);for(var a=1;a<i;a<<=1)for(var s=a<<1,u=Math.cos(2*Math.PI/s),h=Math.sin(2*Math.PI/s),f=0;f<i;f+=s)for(var l=u,c=h,d=0;d<a;d++){var p=r[f+d],y=n[f+d],g=r[f+d+a],m=n[f+d+a],b=l*g-c*m;m=l*m+c*g,g=b,r[f+d]=p+g,n[f+d]=y+m,r[f+d+a]=p-g,n[f+d+a]=y-m,d!==s&&(b=u*l-h*c,c=u*c+h*l,l=b)}},v.prototype.guessLen13b=function(t,e){var r=1|Math.max(e,t),n=1&r,i=0;for(r=r/2|0;r;r>>>=1)i++;return 1<<i+1+n},v.prototype.conjugate=function(t,e,r){if(!(r<=1))for(var n=0;n<r/2;n++){var i=t[n];t[n]=t[r-n-1],t[r-n-1]=i,i=e[n],e[n]=-e[r-n-1],e[r-n-1]=-i}},v.prototype.normalize13b=function(t,e){for(var r=0,n=0;n<e/2;n++){var i=8192*Math.round(t[2*n+1]/e)+Math.round(t[2*n]/e)+r;t[n]=67108863&i,r=i<67108864?0:i/67108864|0}return t},v.prototype.convert13b=function(t,e,r,i){for(var o=0,a=0;a<e;a++)o+=0|t[a],r[2*a]=8191&o,o>>>=13,r[2*a+1]=8191&o,o>>>=13;for(a=2*e;a<i;++a)r[a]=0;n(0===o),n(!(-8192&o))},v.prototype.stub=function(t){for(var e=new Array(t),r=0;r<t;r++)e[r]=0;return e},v.prototype.mulp=function(t,e,r){var n=2*this.guessLen13b(t.length,e.length),i=this.makeRBT(n),o=this.stub(n),a=new Array(n),s=new Array(n),u=new Array(n),h=new Array(n),f=new Array(n),l=new Array(n),c=r.words;c.length=n,this.convert13b(t.words,t.length,a,n),this.convert13b(e.words,e.length,h,n),this.transform(a,o,s,u,n,i),this.transform(h,o,f,l,n,i);for(var d=0;d<n;d++){var p=s[d]*f[d]-u[d]*l[d];u[d]=s[d]*l[d]+u[d]*f[d],s[d]=p}return this.conjugate(s,u,n),this.transform(s,u,c,o,n,i),this.conjugate(c,o,n),this.normalize13b(c,n),r.negative=t.negative^e.negative,r.length=t.length+e.length,r._strip()},o.prototype.mul=function(t){var e=new o(null);return e.words=new Array(this.length+t.length),this.mulTo(t,e)},o.prototype.mulf=function(t){var e=new o(null);return e.words=new Array(this.length+t.length),b(this,t,e)},o.prototype.imul=function(t){return this.clone().mulTo(t,this)},o.prototype.imuln=function(t){var e=t<0;e&&(t=-t),n("number"==typeof t),n(t<67108864);for(var r=0,i=0;i<this.length;i++){var o=(0|this.words[i])*t,a=(67108863&o)+(67108863&r);r>>=26,r+=o/67108864|0,r+=a>>>26,this.words[i]=67108863&a}return 0!==r&&(this.words[i]=r,this.length++),this.length=0===t?1:this.length,e?this.ineg():this},o.prototype.muln=function(t){return this.clone().imuln(t)},o.prototype.sqr=function(){return this.mul(this)},o.prototype.isqr=function(){return this.imul(this.clone())},o.prototype.pow=function(t){var e=function(t){for(var e=new Array(t.bitLength()),r=0;r<e.length;r++){var n=r/26|0,i=r%26;e[r]=t.words[n]>>>i&1}return e}(t);if(0===e.length)return new o(1);for(var r=this,n=0;n<e.length&&0===e[n];n++,r=r.sqr());if(++n<e.length)for(var i=r.sqr();n<e.length;n++,i=i.sqr())0!==e[n]&&(r=r.mul(i));return r},o.prototype.iushln=function(t){n("number"==typeof t&&t>=0);var e,r=t%26,i=(t-r)/26,o=67108863>>>26-r<<26-r;if(0!==r){var a=0;for(e=0;e<this.length;e++){var s=this.words[e]&o,u=(0|this.words[e])-s<<r;this.words[e]=u|a,a=s>>>26-r}a&&(this.words[e]=a,this.length++)}if(0!==i){for(e=this.length-1;e>=0;e--)this.words[e+i]=this.words[e];for(e=0;e<i;e++)this.words[e]=0;this.length+=i}return this._strip()},o.prototype.ishln=function(t){return n(0===this.negative),this.iushln(t)},o.prototype.iushrn=function(t,e,r){var i;n("number"==typeof t&&t>=0),i=e?(e-e%26)/26:0;var o=t%26,a=Math.min((t-o)/26,this.length),s=67108863^67108863>>>o<<o,u=r;if(i-=a,i=Math.max(0,i),u){for(var h=0;h<a;h++)u.words[h]=this.words[h];u.length=a}if(0===a);else if(this.length>a)for(this.length-=a,h=0;h<this.length;h++)this.words[h]=this.words[h+a];else this.words[0]=0,this.length=1;var f=0;for(h=this.length-1;h>=0&&(0!==f||h>=i);h--){var l=0|this.words[h];this.words[h]=f<<26-o|l>>>o,f=l&s}return u&&0!==f&&(u.words[u.length++]=f),0===this.length&&(this.words[0]=0,this.length=1),this._strip()},o.prototype.ishrn=function(t,e,r){return n(0===this.negative),this.iushrn(t,e,r)},o.prototype.shln=function(t){return this.clone().ishln(t)},o.prototype.ushln=function(t){return this.clone().iushln(t)},o.prototype.shrn=function(t){return this.clone().ishrn(t)},o.prototype.ushrn=function(t){return this.clone().iushrn(t)},o.prototype.testn=function(t){n("number"==typeof t&&t>=0);var e=t%26,r=(t-e)/26,i=1<<e;return!(this.length<=r)&&!!(this.words[r]&i)},o.prototype.imaskn=function(t){n("number"==typeof t&&t>=0);var e=t%26,r=(t-e)/26;if(n(0===this.negative,"imaskn works only with positive numbers"),this.length<=r)return this;if(0!==e&&r++,this.length=Math.min(r,this.length),0!==e){var i=67108863^67108863>>>e<<e;this.words[this.length-1]&=i}return 0===this.length&&(this.words[0]=0,this.length=1),this._strip()},o.prototype.maskn=function(t){return this.clone().imaskn(t)},o.prototype.iaddn=function(t){return n("number"==typeof t),n(t<67108864),t<0?this.isubn(-t):0!==this.negative?1===this.length&&(0|this.words[0])<=t?(this.words[0]=t-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(t),this.negative=1,this):this._iaddn(t)},o.prototype._iaddn=function(t){this.words[0]+=t;for(var e=0;e<this.length&&this.words[e]>=67108864;e++)this.words[e]-=67108864,e===this.length-1?this.words[e+1]=1:this.words[e+1]++;return this.length=Math.max(this.length,e+1),this},o.prototype.isubn=function(t){if(n("number"==typeof t),n(t<67108864),t<0)return this.iaddn(-t);if(0!==this.negative)return this.negative=0,this.iaddn(t),this.negative=1,this;if(this.words[0]-=t,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var e=0;e<this.length&&this.words[e]<0;e++)this.words[e]+=67108864,this.words[e+1]-=1;return this._strip()},o.prototype.addn=function(t){return this.clone().iaddn(t)},o.prototype.subn=function(t){return this.clone().isubn(t)},o.prototype.iabs=function(){return this.negative=0,this},o.prototype.abs=function(){return this.clone().iabs()},o.prototype._ishlnsubmul=function(t,e,r){var i,o,a=t.length+r;this._expand(a);var s=0;for(i=0;i<t.length;i++){o=(0|this.words[i+r])+s;var u=(0|t.words[i])*e;s=((o-=67108863&u)>>26)-(u/67108864|0),this.words[i+r]=67108863&o}for(;i<this.length-r;i++)s=(o=(0|this.words[i+r])+s)>>26,this.words[i+r]=67108863&o;if(0===s)return this._strip();for(n(-1===s),s=0,i=0;i<this.length;i++)s=(o=-(0|this.words[i])+s)>>26,this.words[i]=67108863&o;return this.negative=1,this._strip()},o.prototype._wordDiv=function(t,e){var r=(this.length,t.length),n=this.clone(),i=t,a=0|i.words[i.length-1];0!==(r=26-this._countBits(a))&&(i=i.ushln(r),n.iushln(r),a=0|i.words[i.length-1]);var s,u=n.length-i.length;if("mod"!==e){(s=new o(null)).length=u+1,s.words=new Array(s.length);for(var h=0;h<s.length;h++)s.words[h]=0}var f=n.clone()._ishlnsubmul(i,1,u);0===f.negative&&(n=f,s&&(s.words[u]=1));for(var l=u-1;l>=0;l--){var c=67108864*(0|n.words[i.length+l])+(0|n.words[i.length+l-1]);for(c=Math.min(c/a|0,67108863),n._ishlnsubmul(i,c,l);0!==n.negative;)c--,n.negative=0,n._ishlnsubmul(i,1,l),n.isZero()||(n.negative^=1);s&&(s.words[l]=c)}return s&&s._strip(),n._strip(),"div"!==e&&0!==r&&n.iushrn(r),{div:s||null,mod:n}},o.prototype.divmod=function(t,e,r){return n(!t.isZero()),this.isZero()?{div:new o(0),mod:new o(0)}:0!==this.negative&&0===t.negative?(s=this.neg().divmod(t,e),"mod"!==e&&(i=s.div.neg()),"div"!==e&&(a=s.mod.neg(),r&&0!==a.negative&&a.iadd(t)),{div:i,mod:a}):0===this.negative&&0!==t.negative?(s=this.divmod(t.neg(),e),"mod"!==e&&(i=s.div.neg()),{div:i,mod:s.mod}):0!==(this.negative&t.negative)?(s=this.neg().divmod(t.neg(),e),"div"!==e&&(a=s.mod.neg(),r&&0!==a.negative&&a.isub(t)),{div:s.div,mod:a}):t.length>this.length||this.cmp(t)<0?{div:new o(0),mod:this}:1===t.length?"div"===e?{div:this.divn(t.words[0]),mod:null}:"mod"===e?{div:null,mod:new o(this.modrn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new o(this.modrn(t.words[0]))}:this._wordDiv(t,e);var i,a,s},o.prototype.div=function(t){return this.divmod(t,"div",!1).div},o.prototype.mod=function(t){return this.divmod(t,"mod",!1).mod},o.prototype.umod=function(t){return this.divmod(t,"mod",!0).mod},o.prototype.divRound=function(t){var e=this.divmod(t);if(e.mod.isZero())return e.div;var r=0!==e.div.negative?e.mod.isub(t):e.mod,n=t.ushrn(1),i=t.andln(1),o=r.cmp(n);return o<0||1===i&&0===o?e.div:0!==e.div.negative?e.div.isubn(1):e.div.iaddn(1)},o.prototype.modrn=function(t){var e=t<0;e&&(t=-t),n(t<=67108863);for(var r=(1<<26)%t,i=0,o=this.length-1;o>=0;o--)i=(r*i+(0|this.words[o]))%t;return e?-i:i},o.prototype.modn=function(t){return this.modrn(t)},o.prototype.idivn=function(t){var e=t<0;e&&(t=-t),n(t<=67108863);for(var r=0,i=this.length-1;i>=0;i--){var o=(0|this.words[i])+67108864*r;this.words[i]=o/t|0,r=o%t}return this._strip(),e?this.ineg():this},o.prototype.divn=function(t){return this.clone().idivn(t)},o.prototype.egcd=function(t){n(0===t.negative),n(!t.isZero());var e=this,r=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var i=new o(1),a=new o(0),s=new o(0),u=new o(1),h=0;e.isEven()&&r.isEven();)e.iushrn(1),r.iushrn(1),++h;for(var f=r.clone(),l=e.clone();!e.isZero();){for(var c=0,d=1;0===(e.words[0]&d)&&c<26;++c,d<<=1);if(c>0)for(e.iushrn(c);c-- >0;)(i.isOdd()||a.isOdd())&&(i.iadd(f),a.isub(l)),i.iushrn(1),a.iushrn(1);for(var p=0,y=1;0===(r.words[0]&y)&&p<26;++p,y<<=1);if(p>0)for(r.iushrn(p);p-- >0;)(s.isOdd()||u.isOdd())&&(s.iadd(f),u.isub(l)),s.iushrn(1),u.iushrn(1);e.cmp(r)>=0?(e.isub(r),i.isub(s),a.isub(u)):(r.isub(e),s.isub(i),u.isub(a))}return{a:s,b:u,gcd:r.iushln(h)}},o.prototype._invmp=function(t){n(0===t.negative),n(!t.isZero());var e=this,r=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var i,a=new o(1),s=new o(0),u=r.clone();e.cmpn(1)>0&&r.cmpn(1)>0;){for(var h=0,f=1;0===(e.words[0]&f)&&h<26;++h,f<<=1);if(h>0)for(e.iushrn(h);h-- >0;)a.isOdd()&&a.iadd(u),a.iushrn(1);for(var l=0,c=1;0===(r.words[0]&c)&&l<26;++l,c<<=1);if(l>0)for(r.iushrn(l);l-- >0;)s.isOdd()&&s.iadd(u),s.iushrn(1);e.cmp(r)>=0?(e.isub(r),a.isub(s)):(r.isub(e),s.isub(a))}return(i=0===e.cmpn(1)?a:s).cmpn(0)<0&&i.iadd(t),i},o.prototype.gcd=function(t){if(this.isZero())return t.abs();if(t.isZero())return this.abs();var e=this.clone(),r=t.clone();e.negative=0,r.negative=0;for(var n=0;e.isEven()&&r.isEven();n++)e.iushrn(1),r.iushrn(1);for(;;){for(;e.isEven();)e.iushrn(1);for(;r.isEven();)r.iushrn(1);var i=e.cmp(r);if(i<0){var o=e;e=r,r=o}else if(0===i||0===r.cmpn(1))break;e.isub(r)}return r.iushln(n)},o.prototype.invm=function(t){return this.egcd(t).a.umod(t)},o.prototype.isEven=function(){return!(1&this.words[0])},o.prototype.isOdd=function(){return!(1&~this.words[0])},o.prototype.andln=function(t){return this.words[0]&t},o.prototype.bincn=function(t){n("number"==typeof t);var e=t%26,r=(t-e)/26,i=1<<e;if(this.length<=r)return this._expand(r+1),this.words[r]|=i,this;for(var o=i,a=r;0!==o&&a<this.length;a++){var s=0|this.words[a];o=(s+=o)>>>26,s&=67108863,this.words[a]=s}return 0!==o&&(this.words[a]=o,this.length++),this},o.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},o.prototype.cmpn=function(t){var e,r=t<0;if(0!==this.negative&&!r)return-1;if(0===this.negative&&r)return 1;if(this._strip(),this.length>1)e=1;else{r&&(t=-t),n(t<=67108863,"Number is too big");var i=0|this.words[0];e=i===t?0:i<t?-1:1}return 0!==this.negative?0|-e:e},o.prototype.cmp=function(t){if(0!==this.negative&&0===t.negative)return-1;if(0===this.negative&&0!==t.negative)return 1;var e=this.ucmp(t);return 0!==this.negative?0|-e:e},o.prototype.ucmp=function(t){if(this.length>t.length)return 1;if(this.length<t.length)return-1;for(var e=0,r=this.length-1;r>=0;r--){var n=0|this.words[r],i=0|t.words[r];if(n!==i){n<i?e=-1:n>i&&(e=1);break}}return e},o.prototype.gtn=function(t){return 1===this.cmpn(t)},o.prototype.gt=function(t){return 1===this.cmp(t)},o.prototype.gten=function(t){return this.cmpn(t)>=0},o.prototype.gte=function(t){return this.cmp(t)>=0},o.prototype.ltn=function(t){return-1===this.cmpn(t)},o.prototype.lt=function(t){return-1===this.cmp(t)},o.prototype.lten=function(t){return this.cmpn(t)<=0},o.prototype.lte=function(t){return this.cmp(t)<=0},o.prototype.eqn=function(t){return 0===this.cmpn(t)},o.prototype.eq=function(t){return 0===this.cmp(t)},o.red=function(t){return new A(t)},o.prototype.toRed=function(t){return n(!this.red,"Already a number in reduction context"),n(0===this.negative,"red works only with positives"),t.convertTo(this)._forceRed(t)},o.prototype.fromRed=function(){return n(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},o.prototype._forceRed=function(t){return this.red=t,this},o.prototype.forceRed=function(t){return n(!this.red,"Already a number in reduction context"),this._forceRed(t)},o.prototype.redAdd=function(t){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,t)},o.prototype.redIAdd=function(t){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,t)},o.prototype.redSub=function(t){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,t)},o.prototype.redISub=function(t){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,t)},o.prototype.redShl=function(t){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,t)},o.prototype.redMul=function(t){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.mul(this,t)},o.prototype.redIMul=function(t){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.imul(this,t)},o.prototype.redSqr=function(){return n(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},o.prototype.redISqr=function(){return n(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},o.prototype.redSqrt=function(){return n(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},o.prototype.redInvm=function(){return n(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},o.prototype.redNeg=function(){return n(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},o.prototype.redPow=function(t){return n(this.red&&!t.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,t)};var _={k256:null,p224:null,p192:null,p25519:null};function w(t,e){this.name=t,this.p=new o(e,16),this.n=this.p.bitLength(),this.k=new o(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function E(){w.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function M(){w.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function S(){w.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function k(){w.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function A(t){if("string"==typeof t){var e=o._prime(t);this.m=e.p,this.prime=e}else n(t.gtn(1),"modulus must be greater than 1"),this.m=t,this.prime=null}function x(t){A.call(this,t),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new o(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}w.prototype._tmp=function(){var t=new o(null);return t.words=new Array(Math.ceil(this.n/13)),t},w.prototype.ireduce=function(t){var e,r=t;do{this.split(r,this.tmp),e=(r=(r=this.imulK(r)).iadd(this.tmp)).bitLength()}while(e>this.n);var n=e<this.n?-1:r.ucmp(this.p);return 0===n?(r.words[0]=0,r.length=1):n>0?r.isub(this.p):void 0!==r.strip?r.strip():r._strip(),r},w.prototype.split=function(t,e){t.iushrn(this.n,0,e)},w.prototype.imulK=function(t){return t.imul(this.k)},i(E,w),E.prototype.split=function(t,e){for(var r=4194303,n=Math.min(t.length,9),i=0;i<n;i++)e.words[i]=t.words[i];if(e.length=n,t.length<=9)return t.words[0]=0,void(t.length=1);var o=t.words[9];for(e.words[e.length++]=o&r,i=10;i<t.length;i++){var a=0|t.words[i];t.words[i-10]=(a&r)<<4|o>>>22,o=a}o>>>=22,t.words[i-10]=o,0===o&&t.length>10?t.length-=10:t.length-=9},E.prototype.imulK=function(t){t.words[t.length]=0,t.words[t.length+1]=0,t.length+=2;for(var e=0,r=0;r<t.length;r++){var n=0|t.words[r];e+=977*n,t.words[r]=67108863&e,e=64*n+(e/67108864|0)}return 0===t.words[t.length-1]&&(t.length--,0===t.words[t.length-1]&&t.length--),t},i(M,w),i(S,w),i(k,w),k.prototype.imulK=function(t){for(var e=0,r=0;r<t.length;r++){var n=19*(0|t.words[r])+e,i=67108863&n;n>>>=26,t.words[r]=i,e=n}return 0!==e&&(t.words[t.length++]=e),t},o._prime=function(t){if(_[t])return _[t];var e;if("k256"===t)e=new E;else if("p224"===t)e=new M;else if("p192"===t)e=new S;else{if("p25519"!==t)throw new Error("Unknown prime "+t);e=new k}return _[t]=e,e},A.prototype._verify1=function(t){n(0===t.negative,"red works only with positives"),n(t.red,"red works only with red numbers")},A.prototype._verify2=function(t,e){n(0===(t.negative|e.negative),"red works only with positives"),n(t.red&&t.red===e.red,"red works only with red numbers")},A.prototype.imod=function(t){return this.prime?this.prime.ireduce(t)._forceRed(this):(f(t,t.umod(this.m)._forceRed(this)),t)},A.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},A.prototype.add=function(t,e){this._verify2(t,e);var r=t.add(e);return r.cmp(this.m)>=0&&r.isub(this.m),r._forceRed(this)},A.prototype.iadd=function(t,e){this._verify2(t,e);var r=t.iadd(e);return r.cmp(this.m)>=0&&r.isub(this.m),r},A.prototype.sub=function(t,e){this._verify2(t,e);var r=t.sub(e);return r.cmpn(0)<0&&r.iadd(this.m),r._forceRed(this)},A.prototype.isub=function(t,e){this._verify2(t,e);var r=t.isub(e);return r.cmpn(0)<0&&r.iadd(this.m),r},A.prototype.shl=function(t,e){return this._verify1(t),this.imod(t.ushln(e))},A.prototype.imul=function(t,e){return this._verify2(t,e),this.imod(t.imul(e))},A.prototype.mul=function(t,e){return this._verify2(t,e),this.imod(t.mul(e))},A.prototype.isqr=function(t){return this.imul(t,t.clone())},A.prototype.sqr=function(t){return this.mul(t,t)},A.prototype.sqrt=function(t){if(t.isZero())return t.clone();var e=this.m.andln(3);if(n(e%2==1),3===e){var r=this.m.add(new o(1)).iushrn(2);return this.pow(t,r)}for(var i=this.m.subn(1),a=0;!i.isZero()&&0===i.andln(1);)a++,i.iushrn(1);n(!i.isZero());var s=new o(1).toRed(this),u=s.redNeg(),h=this.m.subn(1).iushrn(1),f=this.m.bitLength();for(f=new o(2*f*f).toRed(this);0!==this.pow(f,h).cmp(u);)f.redIAdd(u);for(var l=this.pow(f,i),c=this.pow(t,i.addn(1).iushrn(1)),d=this.pow(t,i),p=a;0!==d.cmp(s);){for(var y=d,g=0;0!==y.cmp(s);g++)y=y.redSqr();n(g<p);var m=this.pow(l,new o(1).iushln(p-g-1));c=c.redMul(m),l=m.redSqr(),d=d.redMul(l),p=g}return c},A.prototype.invm=function(t){var e=t._invmp(this.m);return 0!==e.negative?(e.negative=0,this.imod(e).redNeg()):this.imod(e)},A.prototype.pow=function(t,e){if(e.isZero())return new o(1).toRed(this);if(0===e.cmpn(1))return t.clone();var r=new Array(16);r[0]=new o(1).toRed(this),r[1]=t;for(var n=2;n<r.length;n++)r[n]=this.mul(r[n-1],t);var i=r[0],a=0,s=0,u=e.bitLength()%26;for(0===u&&(u=26),n=e.length-1;n>=0;n--){for(var h=e.words[n],f=u-1;f>=0;f--){var l=h>>f&1;i!==r[0]&&(i=this.sqr(i)),0!==l||0!==a?(a<<=1,a|=l,(4===++s||0===n&&0===f)&&(i=this.mul(i,r[a]),s=0,a=0)):s=0}u=26}return i},A.prototype.convertTo=function(t){var e=t.umod(this.m);return e===t?e.clone():e},A.prototype.convertFrom=function(t){var e=t.clone();return e.red=null,e},o.mont=function(t){return new x(t)},i(x,A),x.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},x.prototype.convertFrom=function(t){var e=this.imod(t.mul(this.rinv));return e.red=null,e},x.prototype.imul=function(t,e){if(t.isZero()||e.isZero())return t.words[0]=0,t.length=1,t;var r=t.imul(e),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),o=i;return i.cmp(this.m)>=0?o=i.isub(this.m):i.cmpn(0)<0&&(o=i.iadd(this.m)),o._forceRed(this)},x.prototype.mul=function(t,e){if(t.isZero()||e.isZero())return new o(0)._forceRed(this);var r=t.mul(e),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),a=i;return i.cmp(this.m)>=0?a=i.isub(this.m):i.cmpn(0)<0&&(a=i.iadd(this.m)),a._forceRed(this)},x.prototype.invm=function(t){return this.imod(t._invmp(this.m).mul(this.r2))._forceRed(this)}}(t=r.nmd(t),this)},5974(t,e,r){"use strict";var n=r(8287).Buffer,i=r(5606),o=r(4148),a=r(4442),s=r(8411),u=r(1447),h=r(9681);for(var f in h)e[f]=h[f];e.NONE=0,e.DEFLATE=1,e.INFLATE=2,e.GZIP=3,e.GUNZIP=4,e.DEFLATERAW=5,e.INFLATERAW=6,e.UNZIP=7;function l(t){if("number"!=typeof t||t<e.DEFLATE||t>e.UNZIP)throw new TypeError("Bad argument");this.dictionary=null,this.err=0,this.flush=0,this.init_done=!1,this.level=0,this.memLevel=0,this.mode=t,this.strategy=0,this.windowBits=0,this.write_in_progress=!1,this.pending_close=!1,this.gzip_id_bytes_read=0}l.prototype.close=function(){this.write_in_progress?this.pending_close=!0:(this.pending_close=!1,o(this.init_done,"close before init"),o(this.mode<=e.UNZIP),this.mode===e.DEFLATE||this.mode===e.GZIP||this.mode===e.DEFLATERAW?s.deflateEnd(this.strm):this.mode!==e.INFLATE&&this.mode!==e.GUNZIP&&this.mode!==e.INFLATERAW&&this.mode!==e.UNZIP||u.inflateEnd(this.strm),this.mode=e.NONE,this.dictionary=null)},l.prototype.write=function(t,e,r,n,i,o,a){return this._write(!0,t,e,r,n,i,o,a)},l.prototype.writeSync=function(t,e,r,n,i,o,a){return this._write(!1,t,e,r,n,i,o,a)},l.prototype._write=function(t,r,a,s,u,h,f,l){if(o.equal(arguments.length,8),o(this.init_done,"write before init"),o(this.mode!==e.NONE,"already finalized"),o.equal(!1,this.write_in_progress,"write already in progress"),o.equal(!1,this.pending_close,"close is pending"),this.write_in_progress=!0,o.equal(!1,void 0===r,"must provide flush value"),this.write_in_progress=!0,r!==e.Z_NO_FLUSH&&r!==e.Z_PARTIAL_FLUSH&&r!==e.Z_SYNC_FLUSH&&r!==e.Z_FULL_FLUSH&&r!==e.Z_FINISH&&r!==e.Z_BLOCK)throw new Error("Invalid flush value");if(null==a&&(a=n.alloc(0),u=0,s=0),this.strm.avail_in=u,this.strm.input=a,this.strm.next_in=s,this.strm.avail_out=l,this.strm.output=h,this.strm.next_out=f,this.flush=r,!t)return this._process(),this._checkError()?this._afterSync():void 0;var c=this;return i.nextTick(function(){c._process(),c._after()}),this},l.prototype._afterSync=function(){var t=this.strm.avail_out,e=this.strm.avail_in;return this.write_in_progress=!1,[e,t]},l.prototype._process=function(){var t=null;switch(this.mode){case e.DEFLATE:case e.GZIP:case e.DEFLATERAW:this.err=s.deflate(this.strm,this.flush);break;case e.UNZIP:switch(this.strm.avail_in>0&&(t=this.strm.next_in),this.gzip_id_bytes_read){case 0:if(null===t)break;if(31!==this.strm.input[t]){this.mode=e.INFLATE;break}if(this.gzip_id_bytes_read=1,t++,1===this.strm.avail_in)break;case 1:if(null===t)break;139===this.strm.input[t]?(this.gzip_id_bytes_read=2,this.mode=e.GUNZIP):this.mode=e.INFLATE;break;default:throw new Error("invalid number of gzip magic number bytes read")}case e.INFLATE:case e.GUNZIP:case e.INFLATERAW:for(this.err=u.inflate(this.strm,this.flush),this.err===e.Z_NEED_DICT&&this.dictionary&&(this.err=u.inflateSetDictionary(this.strm,this.dictionary),this.err===e.Z_OK?this.err=u.inflate(this.strm,this.flush):this.err===e.Z_DATA_ERROR&&(this.err=e.Z_NEED_DICT));this.strm.avail_in>0&&this.mode===e.GUNZIP&&this.err===e.Z_STREAM_END&&0!==this.strm.next_in[0];)this.reset(),this.err=u.inflate(this.strm,this.flush);break;default:throw new Error("Unknown mode "+this.mode)}},l.prototype._checkError=function(){switch(this.err){case e.Z_OK:case e.Z_BUF_ERROR:if(0!==this.strm.avail_out&&this.flush===e.Z_FINISH)return this._error("unexpected end of file"),!1;break;case e.Z_STREAM_END:break;case e.Z_NEED_DICT:return null==this.dictionary?this._error("Missing dictionary"):this._error("Bad dictionary"),!1;default:return this._error("Zlib error"),!1}return!0},l.prototype._after=function(){if(this._checkError()){var t=this.strm.avail_out,e=this.strm.avail_in;this.write_in_progress=!1,this.callback(e,t),this.pending_close&&this.close()}},l.prototype._error=function(t){this.strm.msg&&(t=this.strm.msg),this.onerror(t,this.err),this.write_in_progress=!1,this.pending_close&&this.close()},l.prototype.init=function(t,r,n,i,a){o(4===arguments.length||5===arguments.length,"init(windowBits, level, memLevel, strategy, [dictionary])"),o(t>=8&&t<=15,"invalid windowBits"),o(r>=-1&&r<=9,"invalid compression level"),o(n>=1&&n<=9,"invalid memlevel"),o(i===e.Z_FILTERED||i===e.Z_HUFFMAN_ONLY||i===e.Z_RLE||i===e.Z_FIXED||i===e.Z_DEFAULT_STRATEGY,"invalid strategy"),this._init(r,t,n,i,a),this._setDictionary()},l.prototype.params=function(){throw new Error("deflateParams Not supported")},l.prototype.reset=function(){this._reset(),this._setDictionary()},l.prototype._init=function(t,r,n,i,o){switch(this.level=t,this.windowBits=r,this.memLevel=n,this.strategy=i,this.flush=e.Z_NO_FLUSH,this.err=e.Z_OK,this.mode!==e.GZIP&&this.mode!==e.GUNZIP||(this.windowBits+=16),this.mode===e.UNZIP&&(this.windowBits+=32),this.mode!==e.DEFLATERAW&&this.mode!==e.INFLATERAW||(this.windowBits=-1*this.windowBits),this.strm=new a,this.mode){case e.DEFLATE:case e.GZIP:case e.DEFLATERAW:this.err=s.deflateInit2(this.strm,this.level,e.Z_DEFLATED,this.windowBits,this.memLevel,this.strategy);break;case e.INFLATE:case e.GUNZIP:case e.INFLATERAW:case e.UNZIP:this.err=u.inflateInit2(this.strm,this.windowBits);break;default:throw new Error("Unknown mode "+this.mode)}this.err!==e.Z_OK&&this._error("Init error"),this.dictionary=o,this.write_in_progress=!1,this.init_done=!0},l.prototype._setDictionary=function(){if(null!=this.dictionary){switch(this.err=e.Z_OK,this.mode){case e.DEFLATE:case e.DEFLATERAW:this.err=s.deflateSetDictionary(this.strm,this.dictionary)}this.err!==e.Z_OK&&this._error("Failed to set dictionary")}},l.prototype._reset=function(){switch(this.err=e.Z_OK,this.mode){case e.DEFLATE:case e.DEFLATERAW:case e.GZIP:this.err=s.deflateReset(this.strm);break;case e.INFLATE:case e.INFLATERAW:case e.GUNZIP:this.err=u.inflateReset(this.strm)}this.err!==e.Z_OK&&this._error("Failed to reset stream")},e.Zlib=l},8559(t,e,r){"use strict";var n=r(5606),i=r(8287).Buffer,o=r(8310).Transform,a=r(5974),s=r(537),u=r(4148).ok,h=r(8287).kMaxLength,f="Cannot create final Buffer. It would be larger than 0x"+h.toString(16)+" bytes";a.Z_MIN_WINDOWBITS=8,a.Z_MAX_WINDOWBITS=15,a.Z_DEFAULT_WINDOWBITS=15,a.Z_MIN_CHUNK=64,a.Z_MAX_CHUNK=1/0,a.Z_DEFAULT_CHUNK=16384,a.Z_MIN_MEMLEVEL=1,a.Z_MAX_MEMLEVEL=9,a.Z_DEFAULT_MEMLEVEL=8,a.Z_MIN_LEVEL=-1,a.Z_MAX_LEVEL=9,a.Z_DEFAULT_LEVEL=a.Z_DEFAULT_COMPRESSION;for(var l=Object.keys(a),c=0;c<l.length;c++){var d=l[c];d.match(/^Z/)&&Object.defineProperty(e,d,{enumerable:!0,value:a[d],writable:!1})}for(var p={Z_OK:a.Z_OK,Z_STREAM_END:a.Z_STREAM_END,Z_NEED_DICT:a.Z_NEED_DICT,Z_ERRNO:a.Z_ERRNO,Z_STREAM_ERROR:a.Z_STREAM_ERROR,Z_DATA_ERROR:a.Z_DATA_ERROR,Z_MEM_ERROR:a.Z_MEM_ERROR,Z_BUF_ERROR:a.Z_BUF_ERROR,Z_VERSION_ERROR:a.Z_VERSION_ERROR},y=Object.keys(p),g=0;g<y.length;g++){var m=y[g];p[p[m]]=m}function b(t,e,r){var n=[],o=0;function a(){for(var e;null!==(e=t.read());)n.push(e),o+=e.length;t.once("readable",a)}function s(){var e,a=null;o>=h?a=new RangeError(f):e=i.concat(n,o),n=[],t.close(),r(a,e)}t.on("error",function(e){t.removeListener("end",s),t.removeListener("readable",a),r(e)}),t.on("end",s),t.end(e),a()}function v(t,e){if("string"==typeof e&&(e=i.from(e)),!i.isBuffer(e))throw new TypeError("Not a string or buffer");var r=t._finishFlushFlag;return t._processChunk(e,r)}function _(t){if(!(this instanceof _))return new _(t);O.call(this,t,a.DEFLATE)}function w(t){if(!(this instanceof w))return new w(t);O.call(this,t,a.INFLATE)}function E(t){if(!(this instanceof E))return new E(t);O.call(this,t,a.GZIP)}function M(t){if(!(this instanceof M))return new M(t);O.call(this,t,a.GUNZIP)}function S(t){if(!(this instanceof S))return new S(t);O.call(this,t,a.DEFLATERAW)}function k(t){if(!(this instanceof k))return new k(t);O.call(this,t,a.INFLATERAW)}function A(t){if(!(this instanceof A))return new A(t);O.call(this,t,a.UNZIP)}function x(t){return t===a.Z_NO_FLUSH||t===a.Z_PARTIAL_FLUSH||t===a.Z_SYNC_FLUSH||t===a.Z_FULL_FLUSH||t===a.Z_FINISH||t===a.Z_BLOCK}function O(t,r){var n=this;if(this._opts=t=t||{},this._chunkSize=t.chunkSize||e.Z_DEFAULT_CHUNK,o.call(this,t),t.flush&&!x(t.flush))throw new Error("Invalid flush flag: "+t.flush);if(t.finishFlush&&!x(t.finishFlush))throw new Error("Invalid flush flag: "+t.finishFlush);if(this._flushFlag=t.flush||a.Z_NO_FLUSH,this._finishFlushFlag=void 0!==t.finishFlush?t.finishFlush:a.Z_FINISH,t.chunkSize&&(t.chunkSize<e.Z_MIN_CHUNK||t.chunkSize>e.Z_MAX_CHUNK))throw new Error("Invalid chunk size: "+t.chunkSize);if(t.windowBits&&(t.windowBits<e.Z_MIN_WINDOWBITS||t.windowBits>e.Z_MAX_WINDOWBITS))throw new Error("Invalid windowBits: "+t.windowBits);if(t.level&&(t.level<e.Z_MIN_LEVEL||t.level>e.Z_MAX_LEVEL))throw new Error("Invalid compression level: "+t.level);if(t.memLevel&&(t.memLevel<e.Z_MIN_MEMLEVEL||t.memLevel>e.Z_MAX_MEMLEVEL))throw new Error("Invalid memLevel: "+t.memLevel);if(t.strategy&&t.strategy!=e.Z_FILTERED&&t.strategy!=e.Z_HUFFMAN_ONLY&&t.strategy!=e.Z_RLE&&t.strategy!=e.Z_FIXED&&t.strategy!=e.Z_DEFAULT_STRATEGY)throw new Error("Invalid strategy: "+t.strategy);if(t.dictionary&&!i.isBuffer(t.dictionary))throw new Error("Invalid dictionary: it should be a Buffer instance");this._handle=new a.Zlib(r);var s=this;this._hadError=!1,this._handle.onerror=function(t,r){R(s),s._hadError=!0;var n=new Error(t);n.errno=r,n.code=e.codes[r],s.emit("error",n)};var u=e.Z_DEFAULT_COMPRESSION;"number"==typeof t.level&&(u=t.level);var h=e.Z_DEFAULT_STRATEGY;"number"==typeof t.strategy&&(h=t.strategy),this._handle.init(t.windowBits||e.Z_DEFAULT_WINDOWBITS,u,t.memLevel||e.Z_DEFAULT_MEMLEVEL,h,t.dictionary),this._buffer=i.allocUnsafe(this._chunkSize),this._offset=0,this._level=u,this._strategy=h,this.once("end",this.close),Object.defineProperty(this,"_closed",{get:function(){return!n._handle},configurable:!0,enumerable:!0})}function R(t,e){e&&n.nextTick(e),t._handle&&(t._handle.close(),t._handle=null)}function B(t){t.emit("close")}Object.defineProperty(e,"codes",{enumerable:!0,value:Object.freeze(p),writable:!1}),e.Deflate=_,e.Inflate=w,e.Gzip=E,e.Gunzip=M,e.DeflateRaw=S,e.InflateRaw=k,e.Unzip=A,e.createDeflate=function(t){return new _(t)},e.createInflate=function(t){return new w(t)},e.createDeflateRaw=function(t){return new S(t)},e.createInflateRaw=function(t){return new k(t)},e.createGzip=function(t){return new E(t)},e.createGunzip=function(t){return new M(t)},e.createUnzip=function(t){return new A(t)},e.deflate=function(t,e,r){return"function"==typeof e&&(r=e,e={}),b(new _(e),t,r)},e.deflateSync=function(t,e){return v(new _(e),t)},e.gzip=function(t,e,r){return"function"==typeof e&&(r=e,e={}),b(new E(e),t,r)},e.gzipSync=function(t,e){return v(new E(e),t)},e.deflateRaw=function(t,e,r){return"function"==typeof e&&(r=e,e={}),b(new S(e),t,r)},e.deflateRawSync=function(t,e){return v(new S(e),t)},e.unzip=function(t,e,r){return"function"==typeof e&&(r=e,e={}),b(new A(e),t,r)},e.unzipSync=function(t,e){return v(new A(e),t)},e.inflate=function(t,e,r){return"function"==typeof e&&(r=e,e={}),b(new w(e),t,r)},e.inflateSync=function(t,e){return v(new w(e),t)},e.gunzip=function(t,e,r){return"function"==typeof e&&(r=e,e={}),b(new M(e),t,r)},e.gunzipSync=function(t,e){return v(new M(e),t)},e.inflateRaw=function(t,e,r){return"function"==typeof e&&(r=e,e={}),b(new k(e),t,r)},e.inflateRawSync=function(t,e){return v(new k(e),t)},s.inherits(O,o),O.prototype.params=function(t,r,i){if(t<e.Z_MIN_LEVEL||t>e.Z_MAX_LEVEL)throw new RangeError("Invalid compression level: "+t);if(r!=e.Z_FILTERED&&r!=e.Z_HUFFMAN_ONLY&&r!=e.Z_RLE&&r!=e.Z_FIXED&&r!=e.Z_DEFAULT_STRATEGY)throw new TypeError("Invalid strategy: "+r);if(this._level!==t||this._strategy!==r){var o=this;this.flush(a.Z_SYNC_FLUSH,function(){u(o._handle,"zlib binding closed"),o._handle.params(t,r),o._hadError||(o._level=t,o._strategy=r,i&&i())})}else n.nextTick(i)},O.prototype.reset=function(){return u(this._handle,"zlib binding closed"),this._handle.reset()},O.prototype._flush=function(t){this._transform(i.alloc(0),"",t)},O.prototype.flush=function(t,e){var r=this,o=this._writableState;("function"==typeof t||void 0===t&&!e)&&(e=t,t=a.Z_FULL_FLUSH),o.ended?e&&n.nextTick(e):o.ending?e&&this.once("end",e):o.needDrain?e&&this.once("drain",function(){return r.flush(t,e)}):(this._flushFlag=t,this.write(i.alloc(0),"",e))},O.prototype.close=function(t){R(this,t),n.nextTick(B,this)},O.prototype._transform=function(t,e,r){var n,o=this._writableState,s=(o.ending||o.ended)&&(!t||o.length===t.length);return null===t||i.isBuffer(t)?this._handle?(s?n=this._finishFlushFlag:(n=this._flushFlag,t.length>=o.length&&(this._flushFlag=this._opts.flush||a.Z_NO_FLUSH)),void this._processChunk(t,n,r)):r(new Error("zlib binding closed")):r(new Error("invalid input"))},O.prototype._processChunk=function(t,e,r){var n=t&&t.length,o=this._chunkSize-this._offset,a=0,s=this,l="function"==typeof r;if(!l){var c,d=[],p=0;this.on("error",function(t){c=t}),u(this._handle,"zlib binding closed");do{var y=this._handle.writeSync(e,t,a,n,this._buffer,this._offset,o)}while(!this._hadError&&b(y[0],y[1]));if(this._hadError)throw c;if(p>=h)throw R(this),new RangeError(f);var g=i.concat(d,p);return R(this),g}u(this._handle,"zlib binding closed");var m=this._handle.write(e,t,a,n,this._buffer,this._offset,o);function b(h,f){if(this&&(this.buffer=null,this.callback=null),!s._hadError){var c=o-f;if(u(c>=0,"have should not go down"),c>0){var y=s._buffer.slice(s._offset,s._offset+c);s._offset+=c,l?s.push(y):(d.push(y),p+=y.length)}if((0===f||s._offset>=s._chunkSize)&&(o=s._chunkSize,s._offset=0,s._buffer=i.allocUnsafe(s._chunkSize)),0===f){if(a+=n-h,n=h,!l)return!0;var g=s._handle.write(e,t,a,n,s._buffer,s._offset,s._chunkSize);return g.callback=b,void(g.buffer=t)}if(!l)return!1;r()}}m.buffer=t,m.callback=b},s.inherits(_,O),s.inherits(w,O),s.inherits(E,O),s.inherits(M,O),s.inherits(S,O),s.inherits(k,O),s.inherits(A,O)},295(t,e,r){var n=r(8287).Buffer;t.exports=function(t,e){for(var r=Math.min(t.length,e.length),i=new n(r),o=0;o<r;++o)i[o]=t[o]^e[o];return i}},8287(t,e,r){"use strict";
8
- /*!
9
- * The buffer module from node.js, for the browser.
10
- *
11
- * @author Feross Aboukhadijeh <https://feross.org>
12
- * @license MIT
13
- */const n=r(7526),i=r(251),o="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;e.Buffer=u,e.SlowBuffer=function(t){+t!=t&&(t=0);return u.alloc(+t)},e.INSPECT_MAX_BYTES=50;const a=2147483647;function s(t){if(t>a)throw new RangeError('The value "'+t+'" is invalid for option "size"');const e=new Uint8Array(t);return Object.setPrototypeOf(e,u.prototype),e}function u(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 h(t,e,r)}function h(t,e,r){if("string"==typeof t)return function(t,e){"string"==typeof e&&""!==e||(e="utf8");if(!u.isEncoding(e))throw new TypeError("Unknown encoding: "+e);const r=0|y(t,e);let n=s(r);const i=n.write(t,e);i!==r&&(n=n.slice(0,i));return n}(t,e);if(ArrayBuffer.isView(t))return function(t){if($(t,Uint8Array)){const e=new Uint8Array(t);return d(e.buffer,e.byteOffset,e.byteLength)}return c(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($(t,ArrayBuffer)||t&&$(t.buffer,ArrayBuffer))return d(t,e,r);if("undefined"!=typeof SharedArrayBuffer&&($(t,SharedArrayBuffer)||t&&$(t.buffer,SharedArrayBuffer)))return d(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 u.from(n,e,r);const i=function(t){if(u.isBuffer(t)){const e=0|p(t.length),r=s(e);return 0===r.length||t.copy(r,0,0,e),r}if(void 0!==t.length)return"number"!=typeof t.length||J(t.length)?s(0):c(t);if("Buffer"===t.type&&Array.isArray(t.data))return c(t.data)}(t);if(i)return i;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof t[Symbol.toPrimitive])return u.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 f(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 f(t),s(t<0?0:0|p(t))}function c(t){const e=t.length<0?0:0|p(t.length),r=s(e);for(let n=0;n<e;n+=1)r[n]=255&t[n];return r}function d(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,u.prototype),n}function p(t){if(t>=a)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a.toString(16)+" bytes");return 0|t}function y(t,e){if(u.isBuffer(t))return t.length;if(ArrayBuffer.isView(t)||$(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 V(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:V(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 B(this,e,r);case"utf8":case"utf-8":return A(this,e,r);case"ascii":return O(this,e,r);case"latin1":case"binary":return R(this,e,r);case"base64":return k(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 m(t,e,r){const n=t[e];t[e]=t[r],t[r]=n}function b(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=u.from(e,n)),u.isBuffer(e))return 0===e.length?-1:v(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):v(t,[e],r,n,i);throw new TypeError("val must be string, number or Buffer")}function v(t,e,r,n,i){let o,a=1,s=t.length,u=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,s/=2,u/=2,r/=2}function h(t,e){return 1===a?t[e]:t.readUInt16BE(e*a)}if(i){let n=-1;for(o=r;o<s;o++)if(h(t,o)===h(e,-1===n?0:o-n)){if(-1===n&&(n=o),o-n+1===u)return n*a}else-1!==n&&(o-=o-n),n=-1}else for(r+u>s&&(r=s-u),o=r;o>=0;o--){let r=!0;for(let n=0;n<u;n++)if(h(t,o+n)!==h(e,n)){r=!1;break}if(r)return o}return-1}function _(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 G(V(e,t.length-r),t,r,n)}function E(t,e,r,n){return G(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 M(t,e,r,n){return G(H(e),t,r,n)}function S(t,e,r,n){return G(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 k(t,e,r){return 0===e&&r===t.length?n.fromByteArray(t):n.fromByteArray(t.slice(e,r))}function A(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,s,u;switch(a){case 1:e<128&&(o=e);break;case 2:r=t[i+1],128==(192&r)&&(u=(31&e)<<6|63&r,u>127&&(o=u));break;case 3:r=t[i+1],n=t[i+2],128==(192&r)&&128==(192&n)&&(u=(15&e)<<12|(63&r)<<6|63&n,u>2047&&(u<55296||u>57343)&&(o=u));break;case 4:r=t[i+1],n=t[i+2],s=t[i+3],128==(192&r)&&128==(192&n)&&128==(192&s)&&(u=(15&e)<<18|(63&r)<<12|(63&n)<<6|63&s,u>65535&&u<1114112&&(o=u))}}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<=x)return String.fromCharCode.apply(String,t);let r="",n=0;for(;n<e;)r+=String.fromCharCode.apply(String,t.slice(n,n+=x));return r}(n)}e.kMaxLength=a,u.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}}(),u.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(u.prototype,"parent",{enumerable:!0,get:function(){if(u.isBuffer(this))return this.buffer}}),Object.defineProperty(u.prototype,"offset",{enumerable:!0,get:function(){if(u.isBuffer(this))return this.byteOffset}}),u.poolSize=8192,u.from=function(t,e,r){return h(t,e,r)},Object.setPrototypeOf(u.prototype,Uint8Array.prototype),Object.setPrototypeOf(u,Uint8Array),u.alloc=function(t,e,r){return function(t,e,r){return f(t),t<=0?s(t):void 0!==e?"string"==typeof r?s(t).fill(e,r):s(t).fill(e):s(t)}(t,e,r)},u.allocUnsafe=function(t){return l(t)},u.allocUnsafeSlow=function(t){return l(t)},u.isBuffer=function(t){return null!=t&&!0===t._isBuffer&&t!==u.prototype},u.compare=function(t,e){if($(t,Uint8Array)&&(t=u.from(t,t.offset,t.byteLength)),$(e,Uint8Array)&&(e=u.from(e,e.offset,e.byteLength)),!u.isBuffer(t)||!u.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},u.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}},u.concat=function(t,e){if(!Array.isArray(t))throw new TypeError('"list" argument must be an Array of Buffers');if(0===t.length)return u.alloc(0);let r;if(void 0===e)for(e=0,r=0;r<t.length;++r)e+=t[r].length;const n=u.allocUnsafe(e);let i=0;for(r=0;r<t.length;++r){let e=t[r];if($(e,Uint8Array))i+e.length>n.length?(u.isBuffer(e)||(e=u.from(e)),e.copy(n,i)):Uint8Array.prototype.set.call(n,e,i);else{if(!u.isBuffer(e))throw new TypeError('"list" argument must be an Array of Buffers');e.copy(n,i)}i+=e.length}return n},u.byteLength=y,u.prototype._isBuffer=!0,u.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)m(this,e,e+1);return this},u.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)m(this,e,e+3),m(this,e+1,e+2);return this},u.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)m(this,e,e+7),m(this,e+1,e+6),m(this,e+2,e+5),m(this,e+3,e+4);return this},u.prototype.toString=function(){const t=this.length;return 0===t?"":0===arguments.length?A(this,0,t):g.apply(this,arguments)},u.prototype.toLocaleString=u.prototype.toString,u.prototype.equals=function(t){if(!u.isBuffer(t))throw new TypeError("Argument must be a Buffer");return this===t||0===u.compare(this,t)},u.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&&(u.prototype[o]=u.prototype.inspect),u.prototype.compare=function(t,e,r,n,i){if($(t,Uint8Array)&&(t=u.from(t,t.offset,t.byteLength)),!u.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 s=Math.min(o,a),h=this.slice(n,i),f=t.slice(e,r);for(let t=0;t<s;++t)if(h[t]!==f[t]){o=h[t],a=f[t];break}return o<a?-1:a<o?1:0},u.prototype.includes=function(t,e,r){return-1!==this.indexOf(t,e,r)},u.prototype.indexOf=function(t,e,r){return b(this,t,e,r,!0)},u.prototype.lastIndexOf=function(t,e,r){return b(this,t,e,r,!1)},u.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 _(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 M(this,t,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return S(this,t,e,r);default:if(o)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),o=!0}},u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};const x=4096;function O(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 B(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+=Y[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 I(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 T(t,e,r,n,i,o){if(!u.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 L(t,e,r,n,i){q(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 P(t,e,r,n,i){q(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 N(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 D(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}u.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,u.prototype),n},u.prototype.readUintLE=u.prototype.readUIntLE=function(t,e,r){t>>>=0,e>>>=0,r||I(t,e,this.length);let n=this[t],i=1,o=0;for(;++o<e&&(i*=256);)n+=this[t+o]*i;return n},u.prototype.readUintBE=u.prototype.readUIntBE=function(t,e,r){t>>>=0,e>>>=0,r||I(t,e,this.length);let n=this[t+--e],i=1;for(;e>0&&(i*=256);)n+=this[t+--e]*i;return n},u.prototype.readUint8=u.prototype.readUInt8=function(t,e){return t>>>=0,e||I(t,1,this.length),this[t]},u.prototype.readUint16LE=u.prototype.readUInt16LE=function(t,e){return t>>>=0,e||I(t,2,this.length),this[t]|this[t+1]<<8},u.prototype.readUint16BE=u.prototype.readUInt16BE=function(t,e){return t>>>=0,e||I(t,2,this.length),this[t]<<8|this[t+1]},u.prototype.readUint32LE=u.prototype.readUInt32LE=function(t,e){return t>>>=0,e||I(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},u.prototype.readUint32BE=u.prototype.readUInt32BE=function(t,e){return t>>>=0,e||I(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},u.prototype.readBigUInt64LE=X(function(t){Z(t>>>=0,"offset");const e=this[t],r=this[t+7];void 0!==e&&void 0!==r||W(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))}),u.prototype.readBigUInt64BE=X(function(t){Z(t>>>=0,"offset");const e=this[t],r=this[t+7];void 0!==e&&void 0!==r||W(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)}),u.prototype.readIntLE=function(t,e,r){t>>>=0,e>>>=0,r||I(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},u.prototype.readIntBE=function(t,e,r){t>>>=0,e>>>=0,r||I(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},u.prototype.readInt8=function(t,e){return t>>>=0,e||I(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},u.prototype.readInt16LE=function(t,e){t>>>=0,e||I(t,2,this.length);const r=this[t]|this[t+1]<<8;return 32768&r?4294901760|r:r},u.prototype.readInt16BE=function(t,e){t>>>=0,e||I(t,2,this.length);const r=this[t+1]|this[t]<<8;return 32768&r?4294901760|r:r},u.prototype.readInt32LE=function(t,e){return t>>>=0,e||I(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},u.prototype.readInt32BE=function(t,e){return t>>>=0,e||I(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},u.prototype.readBigInt64LE=X(function(t){Z(t>>>=0,"offset");const e=this[t],r=this[t+7];void 0!==e&&void 0!==r||W(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)}),u.prototype.readBigInt64BE=X(function(t){Z(t>>>=0,"offset");const e=this[t],r=this[t+7];void 0!==e&&void 0!==r||W(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)}),u.prototype.readFloatLE=function(t,e){return t>>>=0,e||I(t,4,this.length),i.read(this,t,!0,23,4)},u.prototype.readFloatBE=function(t,e){return t>>>=0,e||I(t,4,this.length),i.read(this,t,!1,23,4)},u.prototype.readDoubleLE=function(t,e){return t>>>=0,e||I(t,8,this.length),i.read(this,t,!0,52,8)},u.prototype.readDoubleBE=function(t,e){return t>>>=0,e||I(t,8,this.length),i.read(this,t,!1,52,8)},u.prototype.writeUintLE=u.prototype.writeUIntLE=function(t,e,r,n){if(t=+t,e>>>=0,r>>>=0,!n){T(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},u.prototype.writeUintBE=u.prototype.writeUIntBE=function(t,e,r,n){if(t=+t,e>>>=0,r>>>=0,!n){T(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},u.prototype.writeUint8=u.prototype.writeUInt8=function(t,e,r){return t=+t,e>>>=0,r||T(this,t,e,1,255,0),this[e]=255&t,e+1},u.prototype.writeUint16LE=u.prototype.writeUInt16LE=function(t,e,r){return t=+t,e>>>=0,r||T(this,t,e,2,65535,0),this[e]=255&t,this[e+1]=t>>>8,e+2},u.prototype.writeUint16BE=u.prototype.writeUInt16BE=function(t,e,r){return t=+t,e>>>=0,r||T(this,t,e,2,65535,0),this[e]=t>>>8,this[e+1]=255&t,e+2},u.prototype.writeUint32LE=u.prototype.writeUInt32LE=function(t,e,r){return t=+t,e>>>=0,r||T(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},u.prototype.writeUint32BE=u.prototype.writeUInt32BE=function(t,e,r){return t=+t,e>>>=0,r||T(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},u.prototype.writeBigUInt64LE=X(function(t,e=0){return L(this,t,e,BigInt(0),BigInt("0xffffffffffffffff"))}),u.prototype.writeBigUInt64BE=X(function(t,e=0){return P(this,t,e,BigInt(0),BigInt("0xffffffffffffffff"))}),u.prototype.writeIntLE=function(t,e,r,n){if(t=+t,e>>>=0,!n){const n=Math.pow(2,8*r-1);T(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},u.prototype.writeIntBE=function(t,e,r,n){if(t=+t,e>>>=0,!n){const n=Math.pow(2,8*r-1);T(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},u.prototype.writeInt8=function(t,e,r){return t=+t,e>>>=0,r||T(this,t,e,1,127,-128),t<0&&(t=255+t+1),this[e]=255&t,e+1},u.prototype.writeInt16LE=function(t,e,r){return t=+t,e>>>=0,r||T(this,t,e,2,32767,-32768),this[e]=255&t,this[e+1]=t>>>8,e+2},u.prototype.writeInt16BE=function(t,e,r){return t=+t,e>>>=0,r||T(this,t,e,2,32767,-32768),this[e]=t>>>8,this[e+1]=255&t,e+2},u.prototype.writeInt32LE=function(t,e,r){return t=+t,e>>>=0,r||T(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},u.prototype.writeInt32BE=function(t,e,r){return t=+t,e>>>=0,r||T(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},u.prototype.writeBigInt64LE=X(function(t,e=0){return L(this,t,e,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),u.prototype.writeBigInt64BE=X(function(t,e=0){return P(this,t,e,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),u.prototype.writeFloatLE=function(t,e,r){return N(this,t,e,!0,r)},u.prototype.writeFloatBE=function(t,e,r){return N(this,t,e,!1,r)},u.prototype.writeDoubleLE=function(t,e,r){return D(this,t,e,!0,r)},u.prototype.writeDoubleBE=function(t,e,r){return D(this,t,e,!1,r)},u.prototype.copy=function(t,e,r,n){if(!u.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},u.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&&!u.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=u.isBuffer(t)?t:u.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 C={};function F(t,e,r){C[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 z(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 q(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 C.ERR_OUT_OF_RANGE("value",i,t)}!function(t,e,r){Z(e,"offset"),void 0!==t[e]&&void 0!==t[e+r]||W(e,t.length-(r+1))}(n,i,o)}function Z(t,e){if("number"!=typeof t)throw new C.ERR_INVALID_ARG_TYPE(e,"number",t)}function W(t,e,r){if(Math.floor(t)!==t)throw Z(t,r),new C.ERR_OUT_OF_RANGE(r||"offset","an integer",t);if(e<0)throw new C.ERR_BUFFER_OUT_OF_BOUNDS;throw new C.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=z(String(r)):"bigint"==typeof r&&(i=String(r),(r>BigInt(2)**BigInt(32)||r<-(BigInt(2)**BigInt(32)))&&(i=z(i)),i+="n"),n+=` It must be ${e}. Received ${i}`,n},RangeError);const K=/[^+/0-9A-Za-z-_]/g;function V(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(K,"")).length<2)return"";for(;t.length%4!=0;)t+="=";return t}(t))}function G(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 $(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 Y=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 X(t){return"undefined"==typeof BigInt?Q:t}function Q(){throw new Error("BigInt not supported")}},3144(t,e,r){"use strict";var n=r(6743),i=r(1002),o=r(76),a=r(7119);t.exports=a||n.call(o,i)},2205(t,e,r){"use strict";var n=r(6743),i=r(1002),o=r(3144);t.exports=function(){return o(n,i,arguments)}},1002(t){"use strict";t.exports=Function.prototype.apply},76(t){"use strict";t.exports=Function.prototype.call},3126(t,e,r){"use strict";var n=r(6743),i=r(9675),o=r(76),a=r(3144);t.exports=function(t){if(t.length<1||"function"!=typeof t[0])throw new i("a function is required");return a(n,o,t)}},7119(t){"use strict";t.exports="undefined"!=typeof Reflect&&Reflect&&Reflect.apply},8075(t,e,r){"use strict";var n=r(453),i=r(487),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}},487(t,e,r){"use strict";var n=r(6897),i=r(655),o=r(3126),a=r(2205);t.exports=function(t){var e=o(arguments),r=1+t.length-(arguments.length-1);return n(e,r>0?r:0,!0)},i?i(t.exports,"apply",{value:a}):t.exports.apply=a},6556(t,e,r){"use strict";var n=r(453),i=r(3126),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}},6168(t,e,r){"use strict";var n=r(2861).Buffer,i=r(8310).Transform,o=r(3141).I,a=r(941),s=r(5377);function u(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}a(u,i),u.prototype.update=function(t,e,r){var n=s(t,e),i=this._update(n);return this.hashMode?this:(r&&(i=this._toString(i,r)),i)},u.prototype.setAutoPadding=function(){},u.prototype.getAuthTag=function(){throw new Error("trying to get auth tag in unsupported state")},u.prototype.setAuthTag=function(){throw new Error("trying to set auth tag in unsupported state")},u.prototype.setAAD=function(){throw new Error("trying to set aad in unsupported state")},u.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)}},u.prototype._flush=function(t){var e;try{this.push(this.__final())}catch(t){e=t}t(e)},u.prototype._finalOrDigest=function(t){var e=this.__final()||n.alloc(0);return t&&(e=this._toString(e,t,!0)),e},u.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=u},941(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}}},5622(t,e,r){function n(t){return Object.prototype.toString.call(t)}e.isArray=function(t){return Array.isArray?Array.isArray(t):"[object Array]"===n(t)},e.isBoolean=function(t){return"boolean"==typeof t},e.isNull=function(t){return null===t},e.isNullOrUndefined=function(t){return null==t},e.isNumber=function(t){return"number"==typeof t},e.isString=function(t){return"string"==typeof t},e.isSymbol=function(t){return"symbol"==typeof t},e.isUndefined=function(t){return void 0===t},e.isRegExp=function(t){return"[object RegExp]"===n(t)},e.isObject=function(t){return"object"==typeof t&&null!==t},e.isDate=function(t){return"[object Date]"===n(t)},e.isError=function(t){return"[object Error]"===n(t)||t instanceof Error},e.isFunction=function(t){return"function"==typeof t},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(8287).Buffer.isBuffer},7108(t,e,r){"use strict";var n=r(4317),i=r(8276),o=r(6011),a=r(2802),s=r(6168);function u(t){s.call(this,"digest"),this._hash=t}n(u,s),u.prototype._update=function(t){this._hash.update(t)},u.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 u(a(t))}},320(t,e,r){var n=r(8276);t.exports=function(t){return(new n).update(t).digest()}},3507(t,e,r){"use strict";var n=r(4317),i=r(1800),o=r(6168),a=r(2861).Buffer,s=r(320),u=r(6011),h=r(2802),f=a.alloc(128);function l(t,e){o.call(this,"digest"),"string"==typeof e&&(e=a.from(e));var r="sha512"===t||"sha384"===t?128:64;(this._alg=t,this._key=e,e.length>r)?e=("rmd160"===t?new u:h(t)).update(e).digest():e.length<r&&(e=a.concat([e,f],r));for(var n=this._ipad=a.allocUnsafe(r),i=this._opad=a.allocUnsafe(r),s=0;s<r;s++)n[s]=54^e[s],i[s]=92^e[s];this._hash="rmd160"===t?new u:h(t),this._hash.update(n)}n(l,o),l.prototype._update=function(t){this._hash.update(t)},l.prototype._final=function(){var t=this._hash.digest();return("rmd160"===this._alg?new u:h(this._alg)).update(this._opad).update(t).digest()},t.exports=function(t,e){return"rmd160"===(t=t.toLowerCase())||"ripemd160"===t?new l("rmd160",e):"md5"===t?new i(s,e):new l(t,e)}},1800(t,e,r){"use strict";var n=r(4317),i=r(2861).Buffer,o=r(6168),a=i.alloc(128),s=64;function u(t,e){o.call(this,"digest"),"string"==typeof e&&(e=i.from(e)),this._alg=t,this._key=e,e.length>s?e=t(e):e.length<s&&(e=i.concat([e,a],s));for(var r=this._ipad=i.allocUnsafe(s),n=this._opad=i.allocUnsafe(s),u=0;u<s;u++)r[u]=54^e[u],n[u]=92^e[u];this._hash=[r]}n(u,o),u.prototype._update=function(t){this._hash.push(t)},u.prototype._final=function(){var t=this._alg(i.concat(this._hash));return this._alg(i.concat([this._opad,t]))},t.exports=u},1565(t,e,r){"use strict";e.randomBytes=e.rng=e.pseudoRandomBytes=e.prng=r(3209),e.createHash=e.Hash=r(7108),e.createHmac=e.Hmac=r(3507);var n=r(8216),i=Object.keys(n),o=["sha1","sha224","sha256","sha384","sha512","md5","rmd160"].concat(i);e.getHashes=function(){return o};var a=r(8396);e.pbkdf2=a.pbkdf2,e.pbkdf2Sync=a.pbkdf2Sync;var s=r(125);e.Cipher=s.Cipher,e.createCipher=s.createCipher,e.Cipheriv=s.Cipheriv,e.createCipheriv=s.createCipheriv,e.Decipher=s.Decipher,e.createDecipher=s.createDecipher,e.Decipheriv=s.Decipheriv,e.createDecipheriv=s.createDecipheriv,e.getCiphers=s.getCiphers,e.listCiphers=s.listCiphers;var u=r(5380);e.DiffieHellmanGroup=u.DiffieHellmanGroup,e.createDiffieHellmanGroup=u.createDiffieHellmanGroup,e.getDiffieHellman=u.getDiffieHellman,e.createDiffieHellman=u.createDiffieHellman,e.DiffieHellman=u.DiffieHellman;var h=r(4581);e.createSign=h.createSign,e.Sign=h.Sign,e.createVerify=h.createVerify,e.Verify=h.Verify,e.createECDH=r(9004);var f=r(7168);e.publicEncrypt=f.publicEncrypt,e.privateEncrypt=f.privateEncrypt,e.publicDecrypt=f.publicDecrypt,e.privateDecrypt=f.privateDecrypt;var l=r(6983);e.randomFill=l.randomFill,e.randomFillSync=l.randomFillSync,e.createCredentials=function(){throw new Error("sorry, createCredentials is not implemented yet\nwe accept pull requests\nhttps://github.com/browserify/crypto-browserify")},e.constants={DH_CHECK_P_NOT_SAFE_PRIME:2,DH_CHECK_P_NOT_PRIME:1,DH_UNABLE_TO_CHECK_GENERATOR:4,DH_NOT_SUITABLE_GENERATOR:8,NPN_ENABLED:1,ALPN_ENABLED:1,RSA_PKCS1_PADDING:1,RSA_SSLV23_PADDING:2,RSA_NO_PADDING:3,RSA_PKCS1_OAEP_PADDING:4,RSA_X931_PADDING:5,RSA_PKCS1_PSS_PADDING:6,POINT_CONVERSION_COMPRESSED:2,POINT_CONVERSION_UNCOMPRESSED:4,POINT_CONVERSION_HYBRID:6}},41(t,e,r){"use strict";var n=r(655),i=r(8068),o=r(9675),a=r(5795);t.exports=function(t,e,r){if(!t||"object"!=typeof t&&"function"!=typeof t)throw new o("`obj` must be an object or a function`");if("string"!=typeof e&&"symbol"!=typeof e)throw new o("`property` must be a string or a symbol`");if(arguments.length>3&&"boolean"!=typeof arguments[3]&&null!==arguments[3])throw new o("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&"boolean"!=typeof arguments[4]&&null!==arguments[4])throw new o("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&"boolean"!=typeof arguments[5]&&null!==arguments[5])throw new o("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&"boolean"!=typeof arguments[6])throw new o("`loose`, if provided, must be a boolean");var s=arguments.length>3?arguments[3]:null,u=arguments.length>4?arguments[4]:null,h=arguments.length>5?arguments[5]:null,f=arguments.length>6&&arguments[6],l=!!a&&a(t,e);if(n)n(t,e,{configurable:null===h&&l?l.configurable:!h,enumerable:null===s&&l?l.enumerable:!s,value:r,writable:null===u&&l?l.writable:!u});else{if(!f&&(s||u||h))throw new i("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");t[e]=r}}},8452(t,e,r){"use strict";var n=r(1189),i="function"==typeof Symbol&&"symbol"==typeof Symbol("foo"),o=Object.prototype.toString,a=Array.prototype.concat,s=r(41),u=r(592)(),h=function(t,e,r,n){if(e in t)if(!0===n){if(t[e]===r)return}else if("function"!=typeof(i=n)||"[object Function]"!==o.call(i)||!n())return;var i;u?s(t,e,r,!0):s(t,e,r)},f=function(t,e){var r=arguments.length>2?arguments[2]:{},o=n(e);i&&(o=a.call(o,Object.getOwnPropertySymbols(e)));for(var s=0;s<o.length;s+=1)h(t,o[s],e[o[s]],r[o[s]])};f.supportsDescriptors=!!u,t.exports=f},9560(t,e,r){"use strict";e.utils=r(7626),e.Cipher=r(2808),e.DES=r(2211),e.CBC=r(3389),e.EDE=r(5279)},3389(t,e,r){"use strict";var n=r(3349),i=r(4317),o={};function a(t){n.equal(t.length,8,"Invalid IV length"),this.iv=new Array(8);for(var e=0;e<this.iv.length;e++)this.iv[e]=t[e]}e.instantiate=function(t){function e(e){t.call(this,e),this._cbcInit()}i(e,t);for(var r=Object.keys(o),n=0;n<r.length;n++){var a=r[n];e.prototype[a]=o[a]}return e.create=function(t){return new e(t)},e},o._cbcInit=function(){var t=new a(this.options.iv);this._cbcState=t},o._update=function(t,e,r,n){var i=this._cbcState,o=this.constructor.super_.prototype,a=i.iv;if("encrypt"===this.type){for(var s=0;s<this.blockSize;s++)a[s]^=t[e+s];o._update.call(this,a,0,r,n);for(s=0;s<this.blockSize;s++)a[s]=r[n+s]}else{o._update.call(this,t,e,r,n);for(s=0;s<this.blockSize;s++)r[n+s]^=a[s];for(s=0;s<this.blockSize;s++)a[s]=t[e+s]}}},2808(t,e,r){"use strict";var n=r(3349);function i(t){this.options=t,this.type=this.options.type,this.blockSize=8,this._init(),this.buffer=new Array(this.blockSize),this.bufferOff=0,this.padding=!1!==t.padding}t.exports=i,i.prototype._init=function(){},i.prototype.update=function(t){return 0===t.length?[]:"decrypt"===this.type?this._updateDecrypt(t):this._updateEncrypt(t)},i.prototype._buffer=function(t,e){for(var r=Math.min(this.buffer.length-this.bufferOff,t.length-e),n=0;n<r;n++)this.buffer[this.bufferOff+n]=t[e+n];return this.bufferOff+=r,r},i.prototype._flushBuffer=function(t,e){return this._update(this.buffer,0,t,e),this.bufferOff=0,this.blockSize},i.prototype._updateEncrypt=function(t){var e=0,r=0,n=(this.bufferOff+t.length)/this.blockSize|0,i=new Array(n*this.blockSize);0!==this.bufferOff&&(e+=this._buffer(t,e),this.bufferOff===this.buffer.length&&(r+=this._flushBuffer(i,r)));for(var o=t.length-(t.length-e)%this.blockSize;e<o;e+=this.blockSize)this._update(t,e,i,r),r+=this.blockSize;for(;e<t.length;e++,this.bufferOff++)this.buffer[this.bufferOff]=t[e];return i},i.prototype._updateDecrypt=function(t){for(var e=0,r=0,n=Math.ceil((this.bufferOff+t.length)/this.blockSize)-1,i=new Array(n*this.blockSize);n>0;n--)e+=this._buffer(t,e),r+=this._flushBuffer(i,r);return e+=this._buffer(t,e),i},i.prototype.final=function(t){var e,r;return t&&(e=this.update(t)),r="encrypt"===this.type?this._finalEncrypt():this._finalDecrypt(),e?e.concat(r):r},i.prototype._pad=function(t,e){if(0===e)return!1;for(;e<t.length;)t[e++]=0;return!0},i.prototype._finalEncrypt=function(){if(!this._pad(this.buffer,this.bufferOff))return[];var t=new Array(this.blockSize);return this._update(this.buffer,0,t,0),t},i.prototype._unpad=function(t){return t},i.prototype._finalDecrypt=function(){n.equal(this.bufferOff,this.blockSize,"Not enough data to decrypt");var t=new Array(this.blockSize);return this._flushBuffer(t,0),this._unpad(t)}},2211(t,e,r){"use strict";var n=r(3349),i=r(4317),o=r(7626),a=r(2808);function s(){this.tmp=new Array(2),this.keys=null}function u(t){a.call(this,t);var e=new s;this._desState=e,this.deriveKeys(e,t.key)}i(u,a),t.exports=u,u.create=function(t){return new u(t)};var h=[1,1,2,2,2,2,2,2,1,2,2,2,2,2,2,1];u.prototype.deriveKeys=function(t,e){t.keys=new Array(32),n.equal(e.length,this.blockSize,"Invalid key length");var r=o.readUInt32BE(e,0),i=o.readUInt32BE(e,4);o.pc1(r,i,t.tmp,0),r=t.tmp[0],i=t.tmp[1];for(var a=0;a<t.keys.length;a+=2){var s=h[a>>>1];r=o.r28shl(r,s),i=o.r28shl(i,s),o.pc2(r,i,t.keys,a)}},u.prototype._update=function(t,e,r,n){var i=this._desState,a=o.readUInt32BE(t,e),s=o.readUInt32BE(t,e+4);o.ip(a,s,i.tmp,0),a=i.tmp[0],s=i.tmp[1],"encrypt"===this.type?this._encrypt(i,a,s,i.tmp,0):this._decrypt(i,a,s,i.tmp,0),a=i.tmp[0],s=i.tmp[1],o.writeUInt32BE(r,a,n),o.writeUInt32BE(r,s,n+4)},u.prototype._pad=function(t,e){if(!1===this.padding)return!1;for(var r=t.length-e,n=e;n<t.length;n++)t[n]=r;return!0},u.prototype._unpad=function(t){if(!1===this.padding)return t;for(var e=t[t.length-1],r=t.length-e;r<t.length;r++)n.equal(t[r],e);return t.slice(0,t.length-e)},u.prototype._encrypt=function(t,e,r,n,i){for(var a=e,s=r,u=0;u<t.keys.length;u+=2){var h=t.keys[u],f=t.keys[u+1];o.expand(s,t.tmp,0),h^=t.tmp[0],f^=t.tmp[1];var l=o.substitute(h,f),c=s;s=(a^o.permute(l))>>>0,a=c}o.rip(s,a,n,i)},u.prototype._decrypt=function(t,e,r,n,i){for(var a=r,s=e,u=t.keys.length-2;u>=0;u-=2){var h=t.keys[u],f=t.keys[u+1];o.expand(a,t.tmp,0),h^=t.tmp[0],f^=t.tmp[1];var l=o.substitute(h,f),c=a;a=(s^o.permute(l))>>>0,s=c}o.rip(a,s,n,i)}},5279(t,e,r){"use strict";var n=r(3349),i=r(4317),o=r(2808),a=r(2211);function s(t,e){n.equal(e.length,24,"Invalid key length");var r=e.slice(0,8),i=e.slice(8,16),o=e.slice(16,24);this.ciphers="encrypt"===t?[a.create({type:"encrypt",key:r}),a.create({type:"decrypt",key:i}),a.create({type:"encrypt",key:o})]:[a.create({type:"decrypt",key:o}),a.create({type:"encrypt",key:i}),a.create({type:"decrypt",key:r})]}function u(t){o.call(this,t);var e=new s(this.type,this.options.key);this._edeState=e}i(u,o),t.exports=u,u.create=function(t){return new u(t)},u.prototype._update=function(t,e,r,n){var i=this._edeState;i.ciphers[0]._update(t,e,r,n),i.ciphers[1]._update(r,n,r,n),i.ciphers[2]._update(r,n,r,n)},u.prototype._pad=a.prototype._pad,u.prototype._unpad=a.prototype._unpad},7626(t,e){"use strict";e.readUInt32BE=function(t,e){return(t[0+e]<<24|t[1+e]<<16|t[2+e]<<8|t[3+e])>>>0},e.writeUInt32BE=function(t,e,r){t[0+r]=e>>>24,t[1+r]=e>>>16&255,t[2+r]=e>>>8&255,t[3+r]=255&e},e.ip=function(t,e,r,n){for(var i=0,o=0,a=6;a>=0;a-=2){for(var s=0;s<=24;s+=8)i<<=1,i|=e>>>s+a&1;for(s=0;s<=24;s+=8)i<<=1,i|=t>>>s+a&1}for(a=6;a>=0;a-=2){for(s=1;s<=25;s+=8)o<<=1,o|=e>>>s+a&1;for(s=1;s<=25;s+=8)o<<=1,o|=t>>>s+a&1}r[n+0]=i>>>0,r[n+1]=o>>>0},e.rip=function(t,e,r,n){for(var i=0,o=0,a=0;a<4;a++)for(var s=24;s>=0;s-=8)i<<=1,i|=e>>>s+a&1,i<<=1,i|=t>>>s+a&1;for(a=4;a<8;a++)for(s=24;s>=0;s-=8)o<<=1,o|=e>>>s+a&1,o<<=1,o|=t>>>s+a&1;r[n+0]=i>>>0,r[n+1]=o>>>0},e.pc1=function(t,e,r,n){for(var i=0,o=0,a=7;a>=5;a--){for(var s=0;s<=24;s+=8)i<<=1,i|=e>>s+a&1;for(s=0;s<=24;s+=8)i<<=1,i|=t>>s+a&1}for(s=0;s<=24;s+=8)i<<=1,i|=e>>s+a&1;for(a=1;a<=3;a++){for(s=0;s<=24;s+=8)o<<=1,o|=e>>s+a&1;for(s=0;s<=24;s+=8)o<<=1,o|=t>>s+a&1}for(s=0;s<=24;s+=8)o<<=1,o|=t>>s+a&1;r[n+0]=i>>>0,r[n+1]=o>>>0},e.r28shl=function(t,e){return t<<e&268435455|t>>>28-e};var r=[14,11,17,4,27,23,25,0,13,22,7,18,5,9,16,24,2,20,12,21,1,8,15,26,15,4,25,19,9,1,26,16,5,11,23,8,12,7,17,0,22,3,10,14,6,20,27,24];e.pc2=function(t,e,n,i){for(var o=0,a=0,s=r.length>>>1,u=0;u<s;u++)o<<=1,o|=t>>>r[u]&1;for(u=s;u<r.length;u++)a<<=1,a|=e>>>r[u]&1;n[i+0]=o>>>0,n[i+1]=a>>>0},e.expand=function(t,e,r){var n=0,i=0;n=(1&t)<<5|t>>>27;for(var o=23;o>=15;o-=4)n<<=6,n|=t>>>o&63;for(o=11;o>=3;o-=4)i|=t>>>o&63,i<<=6;i|=(31&t)<<1|t>>>31,e[r+0]=n>>>0,e[r+1]=i>>>0};var n=[14,0,4,15,13,7,1,4,2,14,15,2,11,13,8,1,3,10,10,6,6,12,12,11,5,9,9,5,0,3,7,8,4,15,1,12,14,8,8,2,13,4,6,9,2,1,11,7,15,5,12,11,9,3,7,14,3,10,10,0,5,6,0,13,15,3,1,13,8,4,14,7,6,15,11,2,3,8,4,14,9,12,7,0,2,1,13,10,12,6,0,9,5,11,10,5,0,13,14,8,7,10,11,1,10,3,4,15,13,4,1,2,5,11,8,6,12,7,6,12,9,0,3,5,2,14,15,9,10,13,0,7,9,0,14,9,6,3,3,4,15,6,5,10,1,2,13,8,12,5,7,14,11,12,4,11,2,15,8,1,13,1,6,10,4,13,9,0,8,6,15,9,3,8,0,7,11,4,1,15,2,14,12,3,5,11,10,5,14,2,7,12,7,13,13,8,14,11,3,5,0,6,6,15,9,0,10,3,1,4,2,7,8,2,5,12,11,1,12,10,4,14,15,9,10,3,6,15,9,0,0,6,12,10,11,1,7,13,13,8,15,9,1,4,3,5,14,11,5,12,2,7,8,2,4,14,2,14,12,11,4,2,1,12,7,4,10,7,11,13,6,1,8,5,5,0,3,15,15,10,13,3,0,9,14,8,9,6,4,11,2,8,1,12,11,7,10,1,13,14,7,2,8,13,15,6,9,15,12,0,5,9,6,10,3,4,0,5,14,3,12,10,1,15,10,4,15,2,9,7,2,12,6,9,8,5,0,6,13,1,3,13,4,14,14,0,7,11,5,3,11,8,9,4,14,3,15,2,5,12,2,9,8,5,12,15,3,10,7,11,0,14,4,1,10,7,1,6,13,0,11,8,6,13,4,13,11,0,2,11,14,7,15,4,0,9,8,1,13,10,3,14,12,3,9,5,7,12,5,2,10,15,6,8,1,6,1,6,4,11,11,13,13,8,12,1,3,4,7,10,14,7,10,9,15,5,6,0,8,15,0,14,5,2,9,3,2,12,13,1,2,15,8,13,4,8,6,10,15,3,11,7,1,4,10,12,9,5,3,6,14,11,5,0,0,14,12,9,7,2,7,2,11,1,4,14,1,7,9,4,12,10,14,8,2,13,0,15,6,12,10,9,13,0,15,3,3,5,5,6,8,11];e.substitute=function(t,e){for(var r=0,i=0;i<4;i++){r<<=4,r|=n[64*i+(t>>>18-6*i&63)]}for(i=0;i<4;i++){r<<=4,r|=n[256+64*i+(e>>>18-6*i&63)]}return r>>>0};var i=[16,25,12,11,3,20,4,15,31,17,9,6,27,14,1,22,30,24,8,18,0,5,29,23,13,19,2,26,10,21,28,7];e.permute=function(t){for(var e=0,r=0;r<i.length;r++)e<<=1,e|=t>>>i[r]&1;return e>>>0},e.padSplit=function(t,e,r){for(var n=t.toString(2);n.length<e;)n="0"+n;for(var i=[],o=0;o<e;o+=r)i.push(n.slice(o,o+r));return i.join(" ")}},5380(t,e,r){var n=r(8287).Buffer,i=r(4934),o=r(3241),a=r(4910);var s={binary:!0,hex:!0,base64:!0};e.DiffieHellmanGroup=e.createDiffieHellmanGroup=e.getDiffieHellman=function(t){var e=new n(o[t].prime,"hex"),r=new n(o[t].gen,"hex");return new a(e,r)},e.createDiffieHellman=e.DiffieHellman=function t(e,r,o,u){return n.isBuffer(r)||void 0===s[r]?t(e,"binary",r,o):(r=r||"binary",u=u||"binary",o=o||new n([2]),n.isBuffer(o)||(o=new n(o,u)),"number"==typeof e?new a(i(e,o),o,!0):(n.isBuffer(e)||(e=new n(e,r)),new a(e,o,!0)))}},4910(t,e,r){var n=r(8287).Buffer,i=r(9404),o=new(r(2244)),a=new i(24),s=new i(11),u=new i(10),h=new i(3),f=new i(7),l=r(4934),c=r(3209);function d(t,e){return e=e||"utf8",n.isBuffer(t)||(t=new n(t,e)),this._pub=new i(t),this}function p(t,e){return e=e||"utf8",n.isBuffer(t)||(t=new n(t,e)),this._priv=new i(t),this}t.exports=g;var y={};function g(t,e,r){this.setGenerator(e),this.__prime=new i(t),this._prime=i.mont(this.__prime),this._primeLen=t.length,this._pub=void 0,this._priv=void 0,this._primeCode=void 0,r?(this.setPublicKey=d,this.setPrivateKey=p):this._primeCode=8}function m(t,e){var r=new n(t.toArray());return e?r.toString(e):r}Object.defineProperty(g.prototype,"verifyError",{enumerable:!0,get:function(){return"number"!=typeof this._primeCode&&(this._primeCode=function(t,e){var r=e.toString("hex"),n=[r,t.toString(16)].join("_");if(n in y)return y[n];var i,c=0;if(t.isEven()||!l.simpleSieve||!l.fermatTest(t)||!o.test(t))return c+=1,c+="02"===r||"05"===r?8:4,y[n]=c,c;switch(o.test(t.shrn(1))||(c+=2),r){case"02":t.mod(a).cmp(s)&&(c+=8);break;case"05":(i=t.mod(u)).cmp(h)&&i.cmp(f)&&(c+=8);break;default:c+=4}return y[n]=c,c}(this.__prime,this.__gen)),this._primeCode}}),g.prototype.generateKeys=function(){return this._priv||(this._priv=new i(c(this._primeLen))),this._pub=this._gen.toRed(this._prime).redPow(this._priv).fromRed(),this.getPublicKey()},g.prototype.computeSecret=function(t){var e=(t=(t=new i(t)).toRed(this._prime)).redPow(this._priv).fromRed(),r=new n(e.toArray()),o=this.getPrime();if(r.length<o.length){var a=new n(o.length-r.length);a.fill(0),r=n.concat([a,r])}return r},g.prototype.getPublicKey=function(t){return m(this._pub,t)},g.prototype.getPrivateKey=function(t){return m(this._priv,t)},g.prototype.getPrime=function(t){return m(this.__prime,t)},g.prototype.getGenerator=function(t){return m(this._gen,t)},g.prototype.setGenerator=function(t,e){return e=e||"utf8",n.isBuffer(t)||(t=new n(t,e)),this.__gen=t,this._gen=new i(t),this}},4934(t,e,r){var n=r(3209);t.exports=b,b.simpleSieve=g,b.fermatTest=m;var i=r(9404),o=new i(24),a=new(r(2244)),s=new i(1),u=new i(2),h=new i(5),f=(new i(16),new i(8),new i(10)),l=new i(3),c=(new i(7),new i(11)),d=new i(4),p=(new i(12),null);function y(){if(null!==p)return p;var t=[];t[0]=2;for(var e=1,r=3;r<1048576;r+=2){for(var n=Math.ceil(Math.sqrt(r)),i=0;i<e&&t[i]<=n&&r%t[i]!==0;i++);e!==i&&t[i]<=n||(t[e++]=r)}return p=t,t}function g(t){for(var e=y(),r=0;r<e.length;r++)if(0===t.modn(e[r]))return 0===t.cmpn(e[r]);return!0}function m(t){var e=i.mont(t);return 0===u.toRed(e).redPow(t.subn(1)).fromRed().cmpn(1)}function b(t,e){if(t<16)return new i(2===e||5===e?[140,123]:[140,39]);var r,p;for(e=new i(e);;){for(r=new i(n(Math.ceil(t/8)));r.bitLength()>t;)r.ishrn(1);if(r.isEven()&&r.iadd(s),r.testn(1)||r.iadd(u),e.cmp(u)){if(!e.cmp(h))for(;r.mod(f).cmp(l);)r.iadd(d)}else for(;r.mod(o).cmp(c);)r.iadd(d);if(g(p=r.shrn(1))&&g(r)&&m(p)&&m(r)&&a.test(p)&&a.test(r))return r}}},7176(t,e,r){"use strict";var n,i=r(3126),o=r(5795);try{n=[].__proto__===Array.prototype}catch(t){if(!t||"object"!=typeof t||!("code"in t)||"ERR_PROTO_ACCESS"!==t.code)throw t}var a=!!n&&o&&o(Object.prototype,"__proto__"),s=Object,u=s.getPrototypeOf;t.exports=a&&"function"==typeof a.get?i([a.get]):"function"==typeof u&&function(t){return u(null==t?t:s(t))}},655(t){"use strict";var e=Object.defineProperty||!1;if(e)try{e({},"a",{value:1})}catch(t){e=!1}t.exports=e},1237(t){"use strict";t.exports=EvalError},9383(t){"use strict";t.exports=Error},9290(t){"use strict";t.exports=RangeError},9538(t){"use strict";t.exports=ReferenceError},8068(t){"use strict";t.exports=SyntaxError},9675(t){"use strict";t.exports=TypeError},5345(t){"use strict";t.exports=URIError},9612(t){"use strict";t.exports=Object},7007(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))}y(t,e,o,{once:!0}),"error"!==e&&function(t,e,r){"function"==typeof t.on&&y(t,"error",e,r)}(t,i,{once:!0})})},o.EventEmitter=o,o.prototype._events=void 0,o.prototype._eventsCount=0,o.prototype._maxListeners=void 0;var a=10;function s(t){if("function"!=typeof t)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof t)}function u(t){return void 0===t._maxListeners?o.defaultMaxListeners:t._maxListeners}function h(t,e,r,n){var i,o,a,h;if(s(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=u(t))>0&&a.length>i&&!a.warned){a.warned=!0;var f=new Error("Possible EventEmitter memory leak detected. "+a.length+" "+String(e)+" listeners added. Use emitter.setMaxListeners() to increase limit");f.name="MaxListenersExceededWarning",f.emitter=t,f.type=e,f.count=a.length,h=f,console&&console.warn&&console.warn(h)}return t}function f(){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=f.bind(n);return i.listener=r,n.wrapFn=i,i}function c(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):p(i,i.length)}function d(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 p(t,e){for(var r=new Array(e),n=0;n<e;++n)r[n]=t[n];return r}function y(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 u(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 s=new Error("Unhandled error."+(a?" ("+a.message+")":""));throw s.context=a,s}var u=o[t];if(void 0===u)return!1;if("function"==typeof u)n(u,this,e);else{var h=u.length,f=p(u,h);for(r=0;r<h;++r)n(f[r],this,e)}return!0},o.prototype.addListener=function(t,e){return h(this,t,e,!1)},o.prototype.on=o.prototype.addListener,o.prototype.prependListener=function(t,e){return h(this,t,e,!0)},o.prototype.once=function(t,e){return s(e),this.on(t,l(this,t,e)),this},o.prototype.prependOnceListener=function(t,e){return s(e),this.prependListener(t,l(this,t,e)),this},o.prototype.removeListener=function(t,e){var r,n,i,o,a;if(s(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 c(this,t,!0)},o.prototype.rawListeners=function(t){return c(this,t,!1)},o.listenerCount=function(t,e){return"function"==typeof t.listenerCount?t.listenerCount(e):d.call(t,e)},o.prototype.listenerCount=d,o.prototype.eventNames=function(){return this._eventsCount>0?e(this._events):[]}},8078(t,e,r){var n=r(2861).Buffer,i=r(8276);t.exports=function(t,e,r,o){if(n.isBuffer(t)||(t=n.from(t,"binary")),e&&(n.isBuffer(e)||(e=n.from(e,"binary")),8!==e.length))throw new RangeError("salt should be Buffer with 8 byte length");for(var a=r/8,s=n.alloc(a),u=n.alloc(o||0),h=n.alloc(0);a>0||o>0;){var f=new i;f.update(h),f.update(t),e&&f.update(e),h=f.digest();var l=0;if(a>0){var c=s.length-a;l=Math.min(a,h.length),h.copy(s,c,0,l),a-=l}if(l<h.length&&o>0){var d=u.length-o,p=Math.min(o,h.length-l);h.copy(u,d,l,l+p),o-=p}}return h.fill(0),{key:s,iv:u}}},2682(t,e,r){"use strict";var n=r(9600),i=Object.prototype.toString,o=Object.prototype.hasOwnProperty;t.exports=function(t,e,r){if(!n(e))throw new TypeError("iterator must be a function");var a,s;arguments.length>=3&&(a=r),s=t,"[object Array]"===i.call(s)?function(t,e,r){for(var n=0,i=t.length;n<i;n++)o.call(t,n)&&(null==r?e(t[n],n,t):e.call(r,t[n],n,t))}(t,e,a):"string"==typeof t?function(t,e,r){for(var n=0,i=t.length;n<i;n++)null==r?e(t.charAt(n),n,t):e.call(r,t.charAt(n),n,t)}(t,e,a):function(t,e,r){for(var n in t)o.call(t,n)&&(null==r?e(t[n],n,t):e.call(r,t[n],n,t))}(t,e,a)}},9353(t){"use strict";var e=Object.prototype.toString,r=Math.max,n=function(t,e){for(var r=[],n=0;n<t.length;n+=1)r[n]=t[n];for(var i=0;i<e.length;i+=1)r[i+t.length]=e[i];return r};t.exports=function(t){var i=this;if("function"!=typeof i||"[object Function]"!==e.apply(i))throw new TypeError("Function.prototype.bind called on incompatible "+i);for(var o,a=function(t,e){for(var r=[],n=e||0,i=0;n<t.length;n+=1,i+=1)r[i]=t[n];return r}(arguments,1),s=r(0,i.length-a.length),u=[],h=0;h<s;h++)u[h]="$"+h;if(o=Function("binder","return function ("+function(t,e){for(var r="",n=0;n<t.length;n+=1)r+=t[n],n+1<t.length&&(r+=e);return r}(u,",")+"){ return binder.apply(this,arguments); }")(function(){if(this instanceof o){var e=i.apply(this,n(a,arguments));return Object(e)===e?e:this}return i.apply(t,n(a,arguments))}),i.prototype){var f=function(){};f.prototype=i.prototype,o.prototype=new f,f.prototype=null}return o}},6743(t,e,r){"use strict";var n=r(9353);t.exports=Function.prototype.bind||n},4233(t){"use strict";const e=function*(){}.constructor;t.exports=()=>e},453(t,e,r){"use strict";var n,i=r(9612),o=r(9383),a=r(1237),s=r(9290),u=r(9538),h=r(8068),f=r(9675),l=r(5345),c=r(1514),d=r(8968),p=r(6188),y=r(8002),g=r(5880),m=r(414),b=r(3093),v=Function,_=function(t){try{return v('"use strict"; return ('+t+").constructor;")()}catch(t){}},w=r(5795),E=r(655),M=function(){throw new f},S=w?function(){try{return M}catch(t){try{return w(arguments,"callee").get}catch(t){return M}}}():M,k=r(4039)(),A=r(3628),x=r(1064),O=r(8648),R=r(1002),B=r(76),j={},I="undefined"!=typeof Uint8Array&&A?A(Uint8Array):n,T={__proto__:null,"%AggregateError%":"undefined"==typeof AggregateError?n:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?n:ArrayBuffer,"%ArrayIteratorPrototype%":k&&A?A([][Symbol.iterator]()):n,"%AsyncFromSyncIteratorPrototype%":n,"%AsyncFunction%":j,"%AsyncGenerator%":j,"%AsyncGeneratorFunction%":j,"%AsyncIteratorPrototype%":j,"%Atomics%":"undefined"==typeof Atomics?n:Atomics,"%BigInt%":"undefined"==typeof BigInt?n:BigInt,"%BigInt64Array%":"undefined"==typeof BigInt64Array?n:BigInt64Array,"%BigUint64Array%":"undefined"==typeof BigUint64Array?n:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?n:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":o,"%eval%":eval,"%EvalError%":a,"%Float16Array%":"undefined"==typeof Float16Array?n:Float16Array,"%Float32Array%":"undefined"==typeof Float32Array?n:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?n:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?n:FinalizationRegistry,"%Function%":v,"%GeneratorFunction%":j,"%Int8Array%":"undefined"==typeof Int8Array?n:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?n:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?n:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":k&&A?A(A([][Symbol.iterator]())):n,"%JSON%":"object"==typeof JSON?JSON:n,"%Map%":"undefined"==typeof Map?n:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&k&&A?A((new Map)[Symbol.iterator]()):n,"%Math%":Math,"%Number%":Number,"%Object%":i,"%Object.getOwnPropertyDescriptor%":w,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?n:Promise,"%Proxy%":"undefined"==typeof Proxy?n:Proxy,"%RangeError%":s,"%ReferenceError%":u,"%Reflect%":"undefined"==typeof Reflect?n:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?n:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&k&&A?A((new Set)[Symbol.iterator]()):n,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?n:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":k&&A?A(""[Symbol.iterator]()):n,"%Symbol%":k?Symbol:n,"%SyntaxError%":h,"%ThrowTypeError%":S,"%TypedArray%":I,"%TypeError%":f,"%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%":l,"%WeakMap%":"undefined"==typeof WeakMap?n:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?n:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?n:WeakSet,"%Function.prototype.call%":B,"%Function.prototype.apply%":R,"%Object.defineProperty%":E,"%Object.getPrototypeOf%":x,"%Math.abs%":c,"%Math.floor%":d,"%Math.max%":p,"%Math.min%":y,"%Math.pow%":g,"%Math.round%":m,"%Math.sign%":b,"%Reflect.getPrototypeOf%":O};if(A)try{null.error}catch(t){var L=A(A(t));T["%Error.prototype%"]=L}var P=function t(e){var r;if("%AsyncFunction%"===e)r=_("async function () {}");else if("%GeneratorFunction%"===e)r=_("function* () {}");else if("%AsyncGeneratorFunction%"===e)r=_("async function* () {}");else if("%AsyncGenerator%"===e){var n=t("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if("%AsyncIteratorPrototype%"===e){var i=t("%AsyncGenerator%");i&&A&&(r=A(i.prototype))}return T[e]=r,r},U={__proto__:null,"%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"]},N=r(6743),D=r(9957),C=N.call(B,Array.prototype.concat),F=N.call(R,Array.prototype.splice),z=N.call(B,String.prototype.replace),q=N.call(B,String.prototype.slice),Z=N.call(B,RegExp.prototype.exec),W=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,K=/\\(\\)?/g,V=function(t,e){var r,n=t;if(D(U,n)&&(n="%"+(r=U[n])[0]+"%"),D(T,n)){var i=T[n];if(i===j&&(i=P(n)),void 0===i&&!e)throw new f("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:r,name:n,value:i}}throw new h("intrinsic "+t+" does not exist!")};t.exports=function(t,e){if("string"!=typeof t||0===t.length)throw new f("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof e)throw new f('"allowMissing" argument must be a boolean');if(null===Z(/^%?[^%]*%?$/,t))throw new h("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var r=function(t){var e=q(t,0,1),r=q(t,-1);if("%"===e&&"%"!==r)throw new h("invalid intrinsic syntax, expected closing `%`");if("%"===r&&"%"!==e)throw new h("invalid intrinsic syntax, expected opening `%`");var n=[];return z(t,W,function(t,e,r,i){n[n.length]=r?z(i,K,"$1"):e||t}),n}(t),n=r.length>0?r[0]:"",i=V("%"+n+"%",e),o=i.name,a=i.value,s=!1,u=i.alias;u&&(n=u[0],F(r,C([0,1],u)));for(var l=1,c=!0;l<r.length;l+=1){var d=r[l],p=q(d,0,1),y=q(d,-1);if(('"'===p||"'"===p||"`"===p||'"'===y||"'"===y||"`"===y)&&p!==y)throw new h("property names with quotes must have matching quotes");if("constructor"!==d&&c||(s=!0),D(T,o="%"+(n+="."+d)+"%"))a=T[o];else if(null!=a){if(!(d in a)){if(!e)throw new f("base intrinsic for "+t+" exists, but the property is not available.");return}if(w&&l+1>=r.length){var g=w(a,d);a=(c=!!g)&&"get"in g&&!("originalValue"in g.get)?g.get:a[d]}else c=D(a,d),a=a[d];c&&!s&&(T[o]=a)}}return a}},1064(t,e,r){"use strict";var n=r(9612);t.exports=n.getPrototypeOf||null},8648(t){"use strict";t.exports="undefined"!=typeof Reflect&&Reflect.getPrototypeOf||null},3628(t,e,r){"use strict";var n=r(8648),i=r(1064),o=r(7176);t.exports=n?function(t){return n(t)}:i?function(t){if(!t||"object"!=typeof t&&"function"!=typeof t)throw new TypeError("getProto: not an object");return i(t)}:o?function(t){return o(t)}:null},6549(t){"use strict";t.exports=Object.getOwnPropertyDescriptor},5795(t,e,r){"use strict";var n=r(6549);if(n)try{n([],"length")}catch(t){n=null}t.exports=n},592(t,e,r){"use strict";var n=r(655),i=function(){return!!n};i.hasArrayLengthDefineBug=function(){if(!n)return null;try{return 1!==n([],"length",{value:1}).length}catch(t){return!0}},t.exports=i},4039(t,e,r){"use strict";var n="undefined"!=typeof Symbol&&Symbol,i=r(1333);t.exports=function(){return"function"==typeof n&&("function"==typeof Symbol&&("symbol"==typeof n("foo")&&("symbol"==typeof Symbol("bar")&&i())))}},1333(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(var n 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 i=Object.getOwnPropertySymbols(t);if(1!==i.length||i[0]!==e)return!1;if(!Object.prototype.propertyIsEnumerable.call(t,e))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var o=Object.getOwnPropertyDescriptor(t,e);if(42!==o.value||!0!==o.enumerable)return!1}return!0}},9092(t,e,r){"use strict";var n=r(1333);t.exports=function(){return n()&&!!Symbol.toStringTag}},4729(t,e,r){"use strict";var n=r(2861).Buffer,i=r(8310).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(9094)(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)};var a="undefined"!=typeof Uint8Array,s="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof Uint8Array&&ArrayBuffer.isView&&(n.prototype instanceof Uint8Array||n.TYPED_ARRAY_SUPPORT);o.prototype.update=function(t,e){if(this._finalized)throw new Error("Digest already called");t=function(t,e){if(t instanceof n)return t;if("string"==typeof t)return n.from(t,e);if(s&&ArrayBuffer.isView(t)){if(0===t.byteLength)return n.alloc(0);var r=n.from(t.buffer,t.byteOffset,t.byteLength);if(r.byteLength===t.byteLength)return r}if(a&&t instanceof Uint8Array)return n.from(t);if(n.isBuffer(t)&&t.constructor&&"function"==typeof t.constructor.isBuffer&&t.constructor.isBuffer(t))return n.from(t);throw new TypeError('The "data" argument must be of type string or an instance of Buffer, TypedArray, or DataView.')}(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 u=0,h=8*t.length;h>0;++u)this._length[u]+=h,(h=this._length[u]/4294967296|0)>0&&(this._length[u]-=4294967296*h);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},9094(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}}},9957(t,e,r){"use strict";var n=Function.prototype.call,i=Object.prototype.hasOwnProperty,o=r(6743);t.exports=o.call(n,i)},251(t,e){
14
- /*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */
15
- e.read=function(t,e,r,n,i){var o,a,s=8*i-n-1,u=(1<<s)-1,h=u>>1,f=-7,l=r?i-1:0,c=r?-1:1,d=t[e+l];for(l+=c,o=d&(1<<-f)-1,d>>=-f,f+=s;f>0;o=256*o+t[e+l],l+=c,f-=8);for(a=o&(1<<-f)-1,o>>=-f,f+=n;f>0;a=256*a+t[e+l],l+=c,f-=8);if(0===o)o=1-h;else{if(o===u)return a?NaN:1/0*(d?-1:1);a+=Math.pow(2,n),o-=h}return(d?-1:1)*a*Math.pow(2,o-n)},e.write=function(t,e,r,n,i,o){var a,s,u,h=8*o-i-1,f=(1<<h)-1,l=f>>1,c=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,d=n?0:o-1,p=n?1:-1,y=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(s=isNaN(e)?1:0,a=f):(a=Math.floor(Math.log(e)/Math.LN2),e*(u=Math.pow(2,-a))<1&&(a--,u*=2),(e+=a+l>=1?c/u:c*Math.pow(2,1-l))*u>=2&&(a++,u/=2),a+l>=f?(s=0,a=f):a+l>=1?(s=(e*u-1)*Math.pow(2,i),a+=l):(s=e*Math.pow(2,l-1)*Math.pow(2,i),a=0));i>=8;t[r+d]=255&s,d+=p,s/=256,i-=8);for(a=a<<i|s,h+=i;h>0;t[r+d]=255&a,d+=p,a/=256,h-=8);t[r+d-p]|=128*y}},4317(t){"function"==typeof Object.create?t.exports=function(t,e){t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}})}:t.exports=function(t,e){t.super_=e;var r=function(){};r.prototype=e.prototype,t.prototype=new r,t.prototype.constructor=t}},7244(t,e,r){"use strict";var n=r(9092)(),i=r(6556)("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&&"length"in t&&"number"==typeof t.length&&t.length>=0&&"[object Array]"!==i(t)&&"callee"in t&&"[object Function]"===i(t.callee)},s=function(){return o(arguments)}();o.isLegacyArguments=a,t.exports=s?o:a},9600(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}},s=function(t){try{return!a(t)&&(n.call(t),!0)}catch(t){return!1}},u=Object.prototype.toString,h="function"==typeof Symbol&&!!Symbol.toStringTag,f=!(0 in[,]),l=function(){return!1};if("object"==typeof document){var c=document.all;u.call(c)===u.call(document.all)&&(l=function(t){if((f||!t)&&(void 0===t||"object"==typeof t))try{var e=u.call(t);return("[object HTMLAllCollection]"===e||"[object HTML document.all class]"===e||"[object HTMLCollection]"===e||"[object Object]"===e)&&null==t("")}catch(t){}return!1})}t.exports=i?function(t){if(l(t))return!0;if(!t)return!1;if("function"!=typeof t&&"object"!=typeof t)return!1;try{i(t,null,e)}catch(t){if(t!==r)return!1}return!a(t)&&s(t)}:function(t){if(l(t))return!0;if(!t)return!1;if("function"!=typeof t&&"object"!=typeof t)return!1;if(h)return s(t);if(a(t))return!1;var e=u.call(t);return!("[object Function]"!==e&&"[object GeneratorFunction]"!==e&&!/^\[object HTML/.test(e))&&s(t)}},8184(t,e,r){"use strict";var n=r(6556),i=r(9721)(/^\s*(?:function)?\*/),o=r(9092)(),a=r(3628),s=n("Object.prototype.toString"),u=n("Function.prototype.toString"),h=r(9294).c;t.exports=function(t){if("function"!=typeof t)return!1;if(i(u(t)))return!0;if(!o)return"[object GeneratorFunction]"===s(t);if(!a)return!1;var e=h();return e&&a(t)===e.prototype}},3003(t){"use strict";t.exports=function(t){return t!=t}},4133(t,e,r){"use strict";var n=r(487),i=r(8452),o=r(3003),a=r(6642),s=r(2464),u=n(a(),Number);i(u,{getPolyfill:a,implementation:o,shim:s}),t.exports=u},6642(t,e,r){"use strict";var n=r(3003);t.exports=function(){return Number.isNaN&&Number.isNaN(NaN)&&!Number.isNaN("a")?Number.isNaN:n}},2464(t,e,r){"use strict";var n=r(8452),i=r(6642);t.exports=function(){var t=i();return n(Number,{isNaN:t},{isNaN:function(){return Number.isNaN!==t}}),t}},4035(t,e,r){"use strict";var n,i=r(6556),o=r(9092)(),a=r(9957),s=r(5795);if(o){var u=i("RegExp.prototype.exec"),h={},f=function(){throw h},l={toString:f,valueOf:f};"symbol"==typeof Symbol.toPrimitive&&(l[Symbol.toPrimitive]=f),n=function(t){if(!t||"object"!=typeof t)return!1;var e=s(t,"lastIndex");if(!(e&&a(e,"value")))return!1;try{u(t,l)}catch(t){return t===h}}}else{var c=i("Object.prototype.toString");n=function(t){return!(!t||"object"!=typeof t&&"function"!=typeof t)&&"[object RegExp]"===c(t)}}t.exports=n},5680(t,e,r){"use strict";var n=r(5767);t.exports=function(t){return!!n(t)}},1514(t){"use strict";t.exports=Math.abs},8968(t){"use strict";t.exports=Math.floor},4459(t){"use strict";t.exports=Number.isNaN||function(t){return t!=t}},6188(t){"use strict";t.exports=Math.max},8002(t){"use strict";t.exports=Math.min},5880(t){"use strict";t.exports=Math.pow},414(t){"use strict";t.exports=Math.round},3093(t,e,r){"use strict";var n=r(4459);t.exports=function(t){return n(t)||0===t?t:t<0?-1:1}},8276(t,e,r){"use strict";var n=r(4317),i=r(4729),o=r(2861).Buffer,a=new Array(16);function s(){i.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878}function u(t,e){return t<<e|t>>>32-e}function h(t,e,r,n,i,o,a){return u(t+(e&r|~e&n)+i+o|0,a)+e|0}function f(t,e,r,n,i,o,a){return u(t+(e&n|r&~n)+i+o|0,a)+e|0}function l(t,e,r,n,i,o,a){return u(t+(e^r^n)+i+o|0,a)+e|0}function c(t,e,r,n,i,o,a){return u(t+(r^(e|~n))+i+o|0,a)+e|0}n(s,i),s.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=h(r,n,i,o,t[0],3614090360,7),o=h(o,r,n,i,t[1],3905402710,12),i=h(i,o,r,n,t[2],606105819,17),n=h(n,i,o,r,t[3],3250441966,22),r=h(r,n,i,o,t[4],4118548399,7),o=h(o,r,n,i,t[5],1200080426,12),i=h(i,o,r,n,t[6],2821735955,17),n=h(n,i,o,r,t[7],4249261313,22),r=h(r,n,i,o,t[8],1770035416,7),o=h(o,r,n,i,t[9],2336552879,12),i=h(i,o,r,n,t[10],4294925233,17),n=h(n,i,o,r,t[11],2304563134,22),r=h(r,n,i,o,t[12],1804603682,7),o=h(o,r,n,i,t[13],4254626195,12),i=h(i,o,r,n,t[14],2792965006,17),r=f(r,n=h(n,i,o,r,t[15],1236535329,22),i,o,t[1],4129170786,5),o=f(o,r,n,i,t[6],3225465664,9),i=f(i,o,r,n,t[11],643717713,14),n=f(n,i,o,r,t[0],3921069994,20),r=f(r,n,i,o,t[5],3593408605,5),o=f(o,r,n,i,t[10],38016083,9),i=f(i,o,r,n,t[15],3634488961,14),n=f(n,i,o,r,t[4],3889429448,20),r=f(r,n,i,o,t[9],568446438,5),o=f(o,r,n,i,t[14],3275163606,9),i=f(i,o,r,n,t[3],4107603335,14),n=f(n,i,o,r,t[8],1163531501,20),r=f(r,n,i,o,t[13],2850285829,5),o=f(o,r,n,i,t[2],4243563512,9),i=f(i,o,r,n,t[7],1735328473,14),r=l(r,n=f(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=c(r,n=l(n,i,o,r,t[2],3299628645,23),i,o,t[0],4096336452,6),o=c(o,r,n,i,t[7],1126891415,10),i=c(i,o,r,n,t[14],2878612391,15),n=c(n,i,o,r,t[5],4237533241,21),r=c(r,n,i,o,t[12],1700485571,6),o=c(o,r,n,i,t[3],2399980690,10),i=c(i,o,r,n,t[10],4293915773,15),n=c(n,i,o,r,t[1],2240044497,21),r=c(r,n,i,o,t[8],1873313359,6),o=c(o,r,n,i,t[15],4264355552,10),i=c(i,o,r,n,t[6],2734768916,15),n=c(n,i,o,r,t[13],1309151649,21),r=c(r,n,i,o,t[4],4149444226,6),o=c(o,r,n,i,t[11],3174756917,10),i=c(i,o,r,n,t[2],718787259,15),n=c(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},s.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=s},2244(t,e,r){var n=r(9404),i=r(5037);function o(t){this.rand=t||new i.Rand}t.exports=o,o.create=function(t){return new o(t)},o.prototype._randbelow=function(t){var e=t.bitLength(),r=Math.ceil(e/8);do{var i=new n(this.rand.generate(r))}while(i.cmp(t)>=0);return i},o.prototype._randrange=function(t,e){var r=e.sub(t);return t.add(this._randbelow(r))},o.prototype.test=function(t,e,r){var i=t.bitLength(),o=n.mont(t),a=new n(1).toRed(o);e||(e=Math.max(1,i/48|0));for(var s=t.subn(1),u=0;!s.testn(u);u++);for(var h=t.shrn(u),f=s.toRed(o);e>0;e--){var l=this._randrange(new n(2),s);r&&r(l);var c=l.toRed(o).redPow(h);if(0!==c.cmp(a)&&0!==c.cmp(f)){for(var d=1;d<u;d++){if(0===(c=c.redSqr()).cmp(a))return!1;if(0===c.cmp(f))break}if(d===u)return!1}}return!0},o.prototype.getDivisor=function(t,e){var r=t.bitLength(),i=n.mont(t),o=new n(1).toRed(i);e||(e=Math.max(1,r/48|0));for(var a=t.subn(1),s=0;!a.testn(s);s++);for(var u=t.shrn(s),h=a.toRed(i);e>0;e--){var f=this._randrange(new n(2),a),l=t.gcd(f);if(0!==l.cmpn(1))return l;var c=f.toRed(i).redPow(u);if(0!==c.cmp(o)&&0!==c.cmp(h)){for(var d=1;d<s;d++){if(0===(c=c.redSqr()).cmp(o))return c.fromRed().subn(1).gcd(t);if(0===c.cmp(h))break}if(d===s)return(c=c.redSqr()).fromRed().subn(1).gcd(t)}}return!1}},3349(t){function e(t,e){if(!t)throw new Error(e||"Assertion failed")}t.exports=e,e.equal=function(t,e,r){if(t!=e)throw new Error(r||"Assertion failed: "+t+" != "+e)}},9211(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))}},7653(t,e,r){"use strict";var n=r(8452),i=r(487),o=r(9211),a=r(9394),s=r(6576),u=i(a(),Object);n(u,{getPolyfill:a,implementation:o,shim:s}),t.exports=u},9394(t,e,r){"use strict";var n=r(9211);t.exports=function(){return"function"==typeof Object.is?Object.is:n}},6576(t,e,r){"use strict";var n=r(9394),i=r(8452);t.exports=function(){var t=n();return i(Object,{is:t},{is:function(){return Object.is!==t}}),t}},8875(t,e,r){"use strict";var n;if(!Object.keys){var i=Object.prototype.hasOwnProperty,o=Object.prototype.toString,a=r(1093),s=Object.prototype.propertyIsEnumerable,u=!s.call({toString:null},"toString"),h=s.call(function(){},"prototype"),f=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],l=function(t){var e=t.constructor;return e&&e.prototype===t},c={$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},d=function(){if("undefined"==typeof window)return!1;for(var t in window)try{if(!c["$"+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),s=e&&"[object String]"===o.call(t),c=[];if(!e&&!r&&!n)throw new TypeError("Object.keys called on a non-object");var p=h&&r;if(s&&t.length>0&&!i.call(t,0))for(var y=0;y<t.length;++y)c.push(String(y));if(n&&t.length>0)for(var g=0;g<t.length;++g)c.push(String(g));else for(var m in t)p&&"prototype"===m||!i.call(t,m)||c.push(String(m));if(u)for(var b=function(t){if("undefined"==typeof window||!d)return l(t);try{return l(t)}catch(t){return!1}}(t),v=0;v<f.length;++v)b&&"constructor"===f[v]||!i.call(t,f[v])||c.push(f[v]);return c}}t.exports=n},1189(t,e,r){"use strict";var n=Array.prototype.slice,i=r(1093),o=Object.keys,a=o?function(t){return o(t)}:r(8875),s=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)?s(n.call(t)):s(t)})}else Object.keys=a;return Object.keys||a},t.exports=a},1093(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}},8403(t,e,r){"use strict";var n=r(1189),i=r(1333)(),o=r(6556),a=r(9612),s=o("Array.prototype.push"),u=o("Object.prototype.propertyIsEnumerable"),h=i?a.getOwnPropertySymbols:null;t.exports=function(t,e){if(null==t)throw new TypeError("target must be an object");var r=a(t);if(1===arguments.length)return r;for(var o=1;o<arguments.length;++o){var f=a(arguments[o]),l=n(f),c=i&&(a.getOwnPropertySymbols||h);if(c)for(var d=c(f),p=0;p<d.length;++p){var y=d[p];u(f,y)&&s(l,y)}for(var g=0;g<l.length;++g){var m=l[g];if(u(f,m)){var b=f[m];r[m]=b}}}return r}},9133(t,e,r){"use strict";var n=r(8403);t.exports=function(){return Object.assign?function(){if(!Object.assign)return!1;for(var t="abcdefghijklmnopqrst",e=t.split(""),r={},n=0;n<e.length;++n)r[e[n]]=e[n];var i=Object.assign({},r),o="";for(var a in i)o+=a;return t!==o}()||function(){if(!Object.assign||!Object.preventExtensions)return!1;var t=Object.preventExtensions({1:2});try{Object.assign(t,"xy")}catch(e){return"y"===t[1]}return!1}()?n:Object.assign:n}},9805(t,e){"use strict";var r="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Int32Array;function n(t,e){return Object.prototype.hasOwnProperty.call(t,e)}e.assign=function(t){for(var e=Array.prototype.slice.call(arguments,1);e.length;){var r=e.shift();if(r){if("object"!=typeof r)throw new TypeError(r+"must be non-object");for(var i in r)n(r,i)&&(t[i]=r[i])}}return t},e.shrinkBuf=function(t,e){return t.length===e?t:t.subarray?t.subarray(0,e):(t.length=e,t)};var i={arraySet:function(t,e,r,n,i){if(e.subarray&&t.subarray)t.set(e.subarray(r,r+n),i);else for(var o=0;o<n;o++)t[i+o]=e[r+o]},flattenChunks:function(t){var e,r,n,i,o,a;for(n=0,e=0,r=t.length;e<r;e++)n+=t[e].length;for(a=new Uint8Array(n),i=0,e=0,r=t.length;e<r;e++)o=t[e],a.set(o,i),i+=o.length;return a}},o={arraySet:function(t,e,r,n,i){for(var o=0;o<n;o++)t[i+o]=e[r+o]},flattenChunks:function(t){return[].concat.apply([],t)}};e.setTyped=function(t){t?(e.Buf8=Uint8Array,e.Buf16=Uint16Array,e.Buf32=Int32Array,e.assign(e,i)):(e.Buf8=Array,e.Buf16=Array,e.Buf32=Array,e.assign(e,o))},e.setTyped(r)},3269(t){"use strict";t.exports=function(t,e,r,n){for(var i=65535&t,o=t>>>16&65535,a=0;0!==r;){r-=a=r>2e3?2e3:r;do{o=o+(i=i+e[n++]|0)|0}while(--a);i%=65521,o%=65521}return i|o<<16}},9681(t){"use strict";t.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}},4823(t){"use strict";var e=function(){for(var t,e=[],r=0;r<256;r++){t=r;for(var n=0;n<8;n++)t=1&t?3988292384^t>>>1:t>>>1;e[r]=t}return e}();t.exports=function(t,r,n,i){var o=e,a=i+n;t^=-1;for(var s=i;s<a;s++)t=t>>>8^o[255&(t^r[s])];return-1^t}},8411(t,e,r){"use strict";var n,i=r(9805),o=r(3665),a=r(3269),s=r(4823),u=r(4674),h=-2,f=258,l=262,c=103,d=113,p=666;function y(t,e){return t.msg=u[e],e}function g(t){return(t<<1)-(t>4?9:0)}function m(t){for(var e=t.length;--e>=0;)t[e]=0}function b(t){var e=t.state,r=e.pending;r>t.avail_out&&(r=t.avail_out),0!==r&&(i.arraySet(t.output,e.pending_buf,e.pending_out,r,t.next_out),t.next_out+=r,e.pending_out+=r,t.total_out+=r,t.avail_out-=r,e.pending-=r,0===e.pending&&(e.pending_out=0))}function v(t,e){o._tr_flush_block(t,t.block_start>=0?t.block_start:-1,t.strstart-t.block_start,e),t.block_start=t.strstart,b(t.strm)}function _(t,e){t.pending_buf[t.pending++]=e}function w(t,e){t.pending_buf[t.pending++]=e>>>8&255,t.pending_buf[t.pending++]=255&e}function E(t,e,r,n){var o=t.avail_in;return o>n&&(o=n),0===o?0:(t.avail_in-=o,i.arraySet(e,t.input,t.next_in,o,r),1===t.state.wrap?t.adler=a(t.adler,e,o,r):2===t.state.wrap&&(t.adler=s(t.adler,e,o,r)),t.next_in+=o,t.total_in+=o,o)}function M(t,e){var r,n,i=t.max_chain_length,o=t.strstart,a=t.prev_length,s=t.nice_match,u=t.strstart>t.w_size-l?t.strstart-(t.w_size-l):0,h=t.window,c=t.w_mask,d=t.prev,p=t.strstart+f,y=h[o+a-1],g=h[o+a];t.prev_length>=t.good_match&&(i>>=2),s>t.lookahead&&(s=t.lookahead);do{if(h[(r=e)+a]===g&&h[r+a-1]===y&&h[r]===h[o]&&h[++r]===h[o+1]){o+=2,r++;do{}while(h[++o]===h[++r]&&h[++o]===h[++r]&&h[++o]===h[++r]&&h[++o]===h[++r]&&h[++o]===h[++r]&&h[++o]===h[++r]&&h[++o]===h[++r]&&h[++o]===h[++r]&&o<p);if(n=f-(p-o),o=p-f,n>a){if(t.match_start=e,a=n,n>=s)break;y=h[o+a-1],g=h[o+a]}}}while((e=d[e&c])>u&&0!==--i);return a<=t.lookahead?a:t.lookahead}function S(t){var e,r,n,o,a,s=t.w_size;do{if(o=t.window_size-t.lookahead-t.strstart,t.strstart>=s+(s-l)){i.arraySet(t.window,t.window,s,s,0),t.match_start-=s,t.strstart-=s,t.block_start-=s,e=r=t.hash_size;do{n=t.head[--e],t.head[e]=n>=s?n-s:0}while(--r);e=r=s;do{n=t.prev[--e],t.prev[e]=n>=s?n-s:0}while(--r);o+=s}if(0===t.strm.avail_in)break;if(r=E(t.strm,t.window,t.strstart+t.lookahead,o),t.lookahead+=r,t.lookahead+t.insert>=3)for(a=t.strstart-t.insert,t.ins_h=t.window[a],t.ins_h=(t.ins_h<<t.hash_shift^t.window[a+1])&t.hash_mask;t.insert&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[a+3-1])&t.hash_mask,t.prev[a&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=a,a++,t.insert--,!(t.lookahead+t.insert<3)););}while(t.lookahead<l&&0!==t.strm.avail_in)}function k(t,e){for(var r,n;;){if(t.lookahead<l){if(S(t),t.lookahead<l&&0===e)return 1;if(0===t.lookahead)break}if(r=0,t.lookahead>=3&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+3-1])&t.hash_mask,r=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),0!==r&&t.strstart-r<=t.w_size-l&&(t.match_length=M(t,r)),t.match_length>=3)if(n=o._tr_tally(t,t.strstart-t.match_start,t.match_length-3),t.lookahead-=t.match_length,t.match_length<=t.max_lazy_match&&t.lookahead>=3){t.match_length--;do{t.strstart++,t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+3-1])&t.hash_mask,r=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart}while(0!==--t.match_length);t.strstart++}else t.strstart+=t.match_length,t.match_length=0,t.ins_h=t.window[t.strstart],t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+1])&t.hash_mask;else n=o._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++;if(n&&(v(t,!1),0===t.strm.avail_out))return 1}return t.insert=t.strstart<2?t.strstart:2,4===e?(v(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(v(t,!1),0===t.strm.avail_out)?1:2}function A(t,e){for(var r,n,i;;){if(t.lookahead<l){if(S(t),t.lookahead<l&&0===e)return 1;if(0===t.lookahead)break}if(r=0,t.lookahead>=3&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+3-1])&t.hash_mask,r=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),t.prev_length=t.match_length,t.prev_match=t.match_start,t.match_length=2,0!==r&&t.prev_length<t.max_lazy_match&&t.strstart-r<=t.w_size-l&&(t.match_length=M(t,r),t.match_length<=5&&(1===t.strategy||3===t.match_length&&t.strstart-t.match_start>4096)&&(t.match_length=2)),t.prev_length>=3&&t.match_length<=t.prev_length){i=t.strstart+t.lookahead-3,n=o._tr_tally(t,t.strstart-1-t.prev_match,t.prev_length-3),t.lookahead-=t.prev_length-1,t.prev_length-=2;do{++t.strstart<=i&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+3-1])&t.hash_mask,r=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart)}while(0!==--t.prev_length);if(t.match_available=0,t.match_length=2,t.strstart++,n&&(v(t,!1),0===t.strm.avail_out))return 1}else if(t.match_available){if((n=o._tr_tally(t,0,t.window[t.strstart-1]))&&v(t,!1),t.strstart++,t.lookahead--,0===t.strm.avail_out)return 1}else t.match_available=1,t.strstart++,t.lookahead--}return t.match_available&&(n=o._tr_tally(t,0,t.window[t.strstart-1]),t.match_available=0),t.insert=t.strstart<2?t.strstart:2,4===e?(v(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(v(t,!1),0===t.strm.avail_out)?1:2}function x(t,e,r,n,i){this.good_length=t,this.max_lazy=e,this.nice_length=r,this.max_chain=n,this.func=i}function O(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=8,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new i.Buf16(1146),this.dyn_dtree=new i.Buf16(122),this.bl_tree=new i.Buf16(78),m(this.dyn_ltree),m(this.dyn_dtree),m(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new i.Buf16(16),this.heap=new i.Buf16(573),m(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new i.Buf16(573),m(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function R(t){var e;return t&&t.state?(t.total_in=t.total_out=0,t.data_type=2,(e=t.state).pending=0,e.pending_out=0,e.wrap<0&&(e.wrap=-e.wrap),e.status=e.wrap?42:d,t.adler=2===e.wrap?0:1,e.last_flush=0,o._tr_init(e),0):y(t,h)}function B(t){var e,r=R(t);return 0===r&&((e=t.state).window_size=2*e.w_size,m(e.head),e.max_lazy_match=n[e.level].max_lazy,e.good_match=n[e.level].good_length,e.nice_match=n[e.level].nice_length,e.max_chain_length=n[e.level].max_chain,e.strstart=0,e.block_start=0,e.lookahead=0,e.insert=0,e.match_length=e.prev_length=2,e.match_available=0,e.ins_h=0),r}function j(t,e,r,n,o,a){if(!t)return h;var s=1;if(-1===e&&(e=6),n<0?(s=0,n=-n):n>15&&(s=2,n-=16),o<1||o>9||8!==r||n<8||n>15||e<0||e>9||a<0||a>4)return y(t,h);8===n&&(n=9);var u=new O;return t.state=u,u.strm=t,u.wrap=s,u.gzhead=null,u.w_bits=n,u.w_size=1<<u.w_bits,u.w_mask=u.w_size-1,u.hash_bits=o+7,u.hash_size=1<<u.hash_bits,u.hash_mask=u.hash_size-1,u.hash_shift=~~((u.hash_bits+3-1)/3),u.window=new i.Buf8(2*u.w_size),u.head=new i.Buf16(u.hash_size),u.prev=new i.Buf16(u.w_size),u.lit_bufsize=1<<o+6,u.pending_buf_size=4*u.lit_bufsize,u.pending_buf=new i.Buf8(u.pending_buf_size),u.d_buf=1*u.lit_bufsize,u.l_buf=3*u.lit_bufsize,u.level=e,u.strategy=a,u.method=r,B(t)}n=[new x(0,0,0,0,function(t,e){var r=65535;for(r>t.pending_buf_size-5&&(r=t.pending_buf_size-5);;){if(t.lookahead<=1){if(S(t),0===t.lookahead&&0===e)return 1;if(0===t.lookahead)break}t.strstart+=t.lookahead,t.lookahead=0;var n=t.block_start+r;if((0===t.strstart||t.strstart>=n)&&(t.lookahead=t.strstart-n,t.strstart=n,v(t,!1),0===t.strm.avail_out))return 1;if(t.strstart-t.block_start>=t.w_size-l&&(v(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,4===e?(v(t,!0),0===t.strm.avail_out?3:4):(t.strstart>t.block_start&&(v(t,!1),t.strm.avail_out),1)}),new x(4,4,8,4,k),new x(4,5,16,8,k),new x(4,6,32,32,k),new x(4,4,16,16,A),new x(8,16,32,32,A),new x(8,16,128,128,A),new x(8,32,128,256,A),new x(32,128,258,1024,A),new x(32,258,258,4096,A)],e.deflateInit=function(t,e){return j(t,e,8,15,8,0)},e.deflateInit2=j,e.deflateReset=B,e.deflateResetKeep=R,e.deflateSetHeader=function(t,e){return t&&t.state?2!==t.state.wrap?h:(t.state.gzhead=e,0):h},e.deflate=function(t,e){var r,i,a,u;if(!t||!t.state||e>5||e<0)return t?y(t,h):h;if(i=t.state,!t.output||!t.input&&0!==t.avail_in||i.status===p&&4!==e)return y(t,0===t.avail_out?-5:h);if(i.strm=t,r=i.last_flush,i.last_flush=e,42===i.status)if(2===i.wrap)t.adler=0,_(i,31),_(i,139),_(i,8),i.gzhead?(_(i,(i.gzhead.text?1:0)+(i.gzhead.hcrc?2:0)+(i.gzhead.extra?4:0)+(i.gzhead.name?8:0)+(i.gzhead.comment?16:0)),_(i,255&i.gzhead.time),_(i,i.gzhead.time>>8&255),_(i,i.gzhead.time>>16&255),_(i,i.gzhead.time>>24&255),_(i,9===i.level?2:i.strategy>=2||i.level<2?4:0),_(i,255&i.gzhead.os),i.gzhead.extra&&i.gzhead.extra.length&&(_(i,255&i.gzhead.extra.length),_(i,i.gzhead.extra.length>>8&255)),i.gzhead.hcrc&&(t.adler=s(t.adler,i.pending_buf,i.pending,0)),i.gzindex=0,i.status=69):(_(i,0),_(i,0),_(i,0),_(i,0),_(i,0),_(i,9===i.level?2:i.strategy>=2||i.level<2?4:0),_(i,3),i.status=d);else{var l=8+(i.w_bits-8<<4)<<8;l|=(i.strategy>=2||i.level<2?0:i.level<6?1:6===i.level?2:3)<<6,0!==i.strstart&&(l|=32),l+=31-l%31,i.status=d,w(i,l),0!==i.strstart&&(w(i,t.adler>>>16),w(i,65535&t.adler)),t.adler=1}if(69===i.status)if(i.gzhead.extra){for(a=i.pending;i.gzindex<(65535&i.gzhead.extra.length)&&(i.pending!==i.pending_buf_size||(i.gzhead.hcrc&&i.pending>a&&(t.adler=s(t.adler,i.pending_buf,i.pending-a,a)),b(t),a=i.pending,i.pending!==i.pending_buf_size));)_(i,255&i.gzhead.extra[i.gzindex]),i.gzindex++;i.gzhead.hcrc&&i.pending>a&&(t.adler=s(t.adler,i.pending_buf,i.pending-a,a)),i.gzindex===i.gzhead.extra.length&&(i.gzindex=0,i.status=73)}else i.status=73;if(73===i.status)if(i.gzhead.name){a=i.pending;do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>a&&(t.adler=s(t.adler,i.pending_buf,i.pending-a,a)),b(t),a=i.pending,i.pending===i.pending_buf_size)){u=1;break}u=i.gzindex<i.gzhead.name.length?255&i.gzhead.name.charCodeAt(i.gzindex++):0,_(i,u)}while(0!==u);i.gzhead.hcrc&&i.pending>a&&(t.adler=s(t.adler,i.pending_buf,i.pending-a,a)),0===u&&(i.gzindex=0,i.status=91)}else i.status=91;if(91===i.status)if(i.gzhead.comment){a=i.pending;do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>a&&(t.adler=s(t.adler,i.pending_buf,i.pending-a,a)),b(t),a=i.pending,i.pending===i.pending_buf_size)){u=1;break}u=i.gzindex<i.gzhead.comment.length?255&i.gzhead.comment.charCodeAt(i.gzindex++):0,_(i,u)}while(0!==u);i.gzhead.hcrc&&i.pending>a&&(t.adler=s(t.adler,i.pending_buf,i.pending-a,a)),0===u&&(i.status=c)}else i.status=c;if(i.status===c&&(i.gzhead.hcrc?(i.pending+2>i.pending_buf_size&&b(t),i.pending+2<=i.pending_buf_size&&(_(i,255&t.adler),_(i,t.adler>>8&255),t.adler=0,i.status=d)):i.status=d),0!==i.pending){if(b(t),0===t.avail_out)return i.last_flush=-1,0}else if(0===t.avail_in&&g(e)<=g(r)&&4!==e)return y(t,-5);if(i.status===p&&0!==t.avail_in)return y(t,-5);if(0!==t.avail_in||0!==i.lookahead||0!==e&&i.status!==p){var E=2===i.strategy?function(t,e){for(var r;;){if(0===t.lookahead&&(S(t),0===t.lookahead)){if(0===e)return 1;break}if(t.match_length=0,r=o._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++,r&&(v(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,4===e?(v(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(v(t,!1),0===t.strm.avail_out)?1:2}(i,e):3===i.strategy?function(t,e){for(var r,n,i,a,s=t.window;;){if(t.lookahead<=f){if(S(t),t.lookahead<=f&&0===e)return 1;if(0===t.lookahead)break}if(t.match_length=0,t.lookahead>=3&&t.strstart>0&&(n=s[i=t.strstart-1])===s[++i]&&n===s[++i]&&n===s[++i]){a=t.strstart+f;do{}while(n===s[++i]&&n===s[++i]&&n===s[++i]&&n===s[++i]&&n===s[++i]&&n===s[++i]&&n===s[++i]&&n===s[++i]&&i<a);t.match_length=f-(a-i),t.match_length>t.lookahead&&(t.match_length=t.lookahead)}if(t.match_length>=3?(r=o._tr_tally(t,1,t.match_length-3),t.lookahead-=t.match_length,t.strstart+=t.match_length,t.match_length=0):(r=o._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++),r&&(v(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,4===e?(v(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(v(t,!1),0===t.strm.avail_out)?1:2}(i,e):n[i.level].func(i,e);if(3!==E&&4!==E||(i.status=p),1===E||3===E)return 0===t.avail_out&&(i.last_flush=-1),0;if(2===E&&(1===e?o._tr_align(i):5!==e&&(o._tr_stored_block(i,0,0,!1),3===e&&(m(i.head),0===i.lookahead&&(i.strstart=0,i.block_start=0,i.insert=0))),b(t),0===t.avail_out))return i.last_flush=-1,0}return 4!==e?0:i.wrap<=0?1:(2===i.wrap?(_(i,255&t.adler),_(i,t.adler>>8&255),_(i,t.adler>>16&255),_(i,t.adler>>24&255),_(i,255&t.total_in),_(i,t.total_in>>8&255),_(i,t.total_in>>16&255),_(i,t.total_in>>24&255)):(w(i,t.adler>>>16),w(i,65535&t.adler)),b(t),i.wrap>0&&(i.wrap=-i.wrap),0!==i.pending?0:1)},e.deflateEnd=function(t){var e;return t&&t.state?42!==(e=t.state.status)&&69!==e&&73!==e&&91!==e&&e!==c&&e!==d&&e!==p?y(t,h):(t.state=null,e===d?y(t,-3):0):h},e.deflateSetDictionary=function(t,e){var r,n,o,s,u,f,l,c,d=e.length;if(!t||!t.state)return h;if(2===(s=(r=t.state).wrap)||1===s&&42!==r.status||r.lookahead)return h;for(1===s&&(t.adler=a(t.adler,e,d,0)),r.wrap=0,d>=r.w_size&&(0===s&&(m(r.head),r.strstart=0,r.block_start=0,r.insert=0),c=new i.Buf8(r.w_size),i.arraySet(c,e,d-r.w_size,r.w_size,0),e=c,d=r.w_size),u=t.avail_in,f=t.next_in,l=t.input,t.avail_in=d,t.next_in=0,t.input=e,S(r);r.lookahead>=3;){n=r.strstart,o=r.lookahead-2;do{r.ins_h=(r.ins_h<<r.hash_shift^r.window[n+3-1])&r.hash_mask,r.prev[n&r.w_mask]=r.head[r.ins_h],r.head[r.ins_h]=n,n++}while(--o);r.strstart=n,r.lookahead=2,S(r)}return r.strstart+=r.lookahead,r.block_start=r.strstart,r.insert=r.lookahead,r.lookahead=0,r.match_length=r.prev_length=2,r.match_available=0,t.next_in=f,t.input=l,t.avail_in=u,r.wrap=s,0},e.deflateInfo="pako deflate (from Nodeca project)"},7293(t){"use strict";t.exports=function(t,e){var r,n,i,o,a,s,u,h,f,l,c,d,p,y,g,m,b,v,_,w,E,M,S,k,A;r=t.state,n=t.next_in,k=t.input,i=n+(t.avail_in-5),o=t.next_out,A=t.output,a=o-(e-t.avail_out),s=o+(t.avail_out-257),u=r.dmax,h=r.wsize,f=r.whave,l=r.wnext,c=r.window,d=r.hold,p=r.bits,y=r.lencode,g=r.distcode,m=(1<<r.lenbits)-1,b=(1<<r.distbits)-1;t:do{p<15&&(d+=k[n++]<<p,p+=8,d+=k[n++]<<p,p+=8),v=y[d&m];e:for(;;){if(d>>>=_=v>>>24,p-=_,0===(_=v>>>16&255))A[o++]=65535&v;else{if(!(16&_)){if(64&_){if(32&_){r.mode=12;break t}t.msg="invalid literal/length code",r.mode=30;break t}v=y[(65535&v)+(d&(1<<_)-1)];continue e}for(w=65535&v,(_&=15)&&(p<_&&(d+=k[n++]<<p,p+=8),w+=d&(1<<_)-1,d>>>=_,p-=_),p<15&&(d+=k[n++]<<p,p+=8,d+=k[n++]<<p,p+=8),v=g[d&b];;){if(d>>>=_=v>>>24,p-=_,16&(_=v>>>16&255)){if(E=65535&v,p<(_&=15)&&(d+=k[n++]<<p,(p+=8)<_&&(d+=k[n++]<<p,p+=8)),(E+=d&(1<<_)-1)>u){t.msg="invalid distance too far back",r.mode=30;break t}if(d>>>=_,p-=_,E>(_=o-a)){if((_=E-_)>f&&r.sane){t.msg="invalid distance too far back",r.mode=30;break t}if(M=0,S=c,0===l){if(M+=h-_,_<w){w-=_;do{A[o++]=c[M++]}while(--_);M=o-E,S=A}}else if(l<_){if(M+=h+l-_,(_-=l)<w){w-=_;do{A[o++]=c[M++]}while(--_);if(M=0,l<w){w-=_=l;do{A[o++]=c[M++]}while(--_);M=o-E,S=A}}}else if(M+=l-_,_<w){w-=_;do{A[o++]=c[M++]}while(--_);M=o-E,S=A}for(;w>2;)A[o++]=S[M++],A[o++]=S[M++],A[o++]=S[M++],w-=3;w&&(A[o++]=S[M++],w>1&&(A[o++]=S[M++]))}else{M=o-E;do{A[o++]=A[M++],A[o++]=A[M++],A[o++]=A[M++],w-=3}while(w>2);w&&(A[o++]=A[M++],w>1&&(A[o++]=A[M++]))}break}if(64&_){t.msg="invalid distance code",r.mode=30;break t}v=g[(65535&v)+(d&(1<<_)-1)]}}break}}while(n<i&&o<s);n-=w=p>>3,d&=(1<<(p-=w<<3))-1,t.next_in=n,t.next_out=o,t.avail_in=n<i?i-n+5:5-(n-i),t.avail_out=o<s?s-o+257:257-(o-s),r.hold=d,r.bits=p}},1447(t,e,r){"use strict";var n=r(9805),i=r(3269),o=r(4823),a=r(7293),s=r(1998),u=-2,h=12,f=30;function l(t){return(t>>>24&255)+(t>>>8&65280)+((65280&t)<<8)+((255&t)<<24)}function c(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new n.Buf16(320),this.work=new n.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function d(t){var e;return t&&t.state?(e=t.state,t.total_in=t.total_out=e.total=0,t.msg="",e.wrap&&(t.adler=1&e.wrap),e.mode=1,e.last=0,e.havedict=0,e.dmax=32768,e.head=null,e.hold=0,e.bits=0,e.lencode=e.lendyn=new n.Buf32(852),e.distcode=e.distdyn=new n.Buf32(592),e.sane=1,e.back=-1,0):u}function p(t){var e;return t&&t.state?((e=t.state).wsize=0,e.whave=0,e.wnext=0,d(t)):u}function y(t,e){var r,n;return t&&t.state?(n=t.state,e<0?(r=0,e=-e):(r=1+(e>>4),e<48&&(e&=15)),e&&(e<8||e>15)?u:(null!==n.window&&n.wbits!==e&&(n.window=null),n.wrap=r,n.wbits=e,p(t))):u}function g(t,e){var r,n;return t?(n=new c,t.state=n,n.window=null,0!==(r=y(t,e))&&(t.state=null),r):u}var m,b,v=!0;function _(t){if(v){var e;for(m=new n.Buf32(512),b=new n.Buf32(32),e=0;e<144;)t.lens[e++]=8;for(;e<256;)t.lens[e++]=9;for(;e<280;)t.lens[e++]=7;for(;e<288;)t.lens[e++]=8;for(s(1,t.lens,0,288,m,0,t.work,{bits:9}),e=0;e<32;)t.lens[e++]=5;s(2,t.lens,0,32,b,0,t.work,{bits:5}),v=!1}t.lencode=m,t.lenbits=9,t.distcode=b,t.distbits=5}function w(t,e,r,i){var o,a=t.state;return null===a.window&&(a.wsize=1<<a.wbits,a.wnext=0,a.whave=0,a.window=new n.Buf8(a.wsize)),i>=a.wsize?(n.arraySet(a.window,e,r-a.wsize,a.wsize,0),a.wnext=0,a.whave=a.wsize):((o=a.wsize-a.wnext)>i&&(o=i),n.arraySet(a.window,e,r-i,o,a.wnext),(i-=o)?(n.arraySet(a.window,e,r-i,i,0),a.wnext=i,a.whave=a.wsize):(a.wnext+=o,a.wnext===a.wsize&&(a.wnext=0),a.whave<a.wsize&&(a.whave+=o))),0}e.inflateReset=p,e.inflateReset2=y,e.inflateResetKeep=d,e.inflateInit=function(t){return g(t,15)},e.inflateInit2=g,e.inflate=function(t,e){var r,c,d,p,y,g,m,b,v,E,M,S,k,A,x,O,R,B,j,I,T,L,P,U,N=0,D=new n.Buf8(4),C=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!t||!t.state||!t.output||!t.input&&0!==t.avail_in)return u;(r=t.state).mode===h&&(r.mode=13),y=t.next_out,d=t.output,m=t.avail_out,p=t.next_in,c=t.input,g=t.avail_in,b=r.hold,v=r.bits,E=g,M=m,L=0;t:for(;;)switch(r.mode){case 1:if(0===r.wrap){r.mode=13;break}for(;v<16;){if(0===g)break t;g--,b+=c[p++]<<v,v+=8}if(2&r.wrap&&35615===b){r.check=0,D[0]=255&b,D[1]=b>>>8&255,r.check=o(r.check,D,2,0),b=0,v=0,r.mode=2;break}if(r.flags=0,r.head&&(r.head.done=!1),!(1&r.wrap)||(((255&b)<<8)+(b>>8))%31){t.msg="incorrect header check",r.mode=f;break}if(8!=(15&b)){t.msg="unknown compression method",r.mode=f;break}if(v-=4,T=8+(15&(b>>>=4)),0===r.wbits)r.wbits=T;else if(T>r.wbits){t.msg="invalid window size",r.mode=f;break}r.dmax=1<<T,t.adler=r.check=1,r.mode=512&b?10:h,b=0,v=0;break;case 2:for(;v<16;){if(0===g)break t;g--,b+=c[p++]<<v,v+=8}if(r.flags=b,8!=(255&r.flags)){t.msg="unknown compression method",r.mode=f;break}if(57344&r.flags){t.msg="unknown header flags set",r.mode=f;break}r.head&&(r.head.text=b>>8&1),512&r.flags&&(D[0]=255&b,D[1]=b>>>8&255,r.check=o(r.check,D,2,0)),b=0,v=0,r.mode=3;case 3:for(;v<32;){if(0===g)break t;g--,b+=c[p++]<<v,v+=8}r.head&&(r.head.time=b),512&r.flags&&(D[0]=255&b,D[1]=b>>>8&255,D[2]=b>>>16&255,D[3]=b>>>24&255,r.check=o(r.check,D,4,0)),b=0,v=0,r.mode=4;case 4:for(;v<16;){if(0===g)break t;g--,b+=c[p++]<<v,v+=8}r.head&&(r.head.xflags=255&b,r.head.os=b>>8),512&r.flags&&(D[0]=255&b,D[1]=b>>>8&255,r.check=o(r.check,D,2,0)),b=0,v=0,r.mode=5;case 5:if(1024&r.flags){for(;v<16;){if(0===g)break t;g--,b+=c[p++]<<v,v+=8}r.length=b,r.head&&(r.head.extra_len=b),512&r.flags&&(D[0]=255&b,D[1]=b>>>8&255,r.check=o(r.check,D,2,0)),b=0,v=0}else r.head&&(r.head.extra=null);r.mode=6;case 6:if(1024&r.flags&&((S=r.length)>g&&(S=g),S&&(r.head&&(T=r.head.extra_len-r.length,r.head.extra||(r.head.extra=new Array(r.head.extra_len)),n.arraySet(r.head.extra,c,p,S,T)),512&r.flags&&(r.check=o(r.check,c,S,p)),g-=S,p+=S,r.length-=S),r.length))break t;r.length=0,r.mode=7;case 7:if(2048&r.flags){if(0===g)break t;S=0;do{T=c[p+S++],r.head&&T&&r.length<65536&&(r.head.name+=String.fromCharCode(T))}while(T&&S<g);if(512&r.flags&&(r.check=o(r.check,c,S,p)),g-=S,p+=S,T)break t}else r.head&&(r.head.name=null);r.length=0,r.mode=8;case 8:if(4096&r.flags){if(0===g)break t;S=0;do{T=c[p+S++],r.head&&T&&r.length<65536&&(r.head.comment+=String.fromCharCode(T))}while(T&&S<g);if(512&r.flags&&(r.check=o(r.check,c,S,p)),g-=S,p+=S,T)break t}else r.head&&(r.head.comment=null);r.mode=9;case 9:if(512&r.flags){for(;v<16;){if(0===g)break t;g--,b+=c[p++]<<v,v+=8}if(b!==(65535&r.check)){t.msg="header crc mismatch",r.mode=f;break}b=0,v=0}r.head&&(r.head.hcrc=r.flags>>9&1,r.head.done=!0),t.adler=r.check=0,r.mode=h;break;case 10:for(;v<32;){if(0===g)break t;g--,b+=c[p++]<<v,v+=8}t.adler=r.check=l(b),b=0,v=0,r.mode=11;case 11:if(0===r.havedict)return t.next_out=y,t.avail_out=m,t.next_in=p,t.avail_in=g,r.hold=b,r.bits=v,2;t.adler=r.check=1,r.mode=h;case h:if(5===e||6===e)break t;case 13:if(r.last){b>>>=7&v,v-=7&v,r.mode=27;break}for(;v<3;){if(0===g)break t;g--,b+=c[p++]<<v,v+=8}switch(r.last=1&b,v-=1,3&(b>>>=1)){case 0:r.mode=14;break;case 1:if(_(r),r.mode=20,6===e){b>>>=2,v-=2;break t}break;case 2:r.mode=17;break;case 3:t.msg="invalid block type",r.mode=f}b>>>=2,v-=2;break;case 14:for(b>>>=7&v,v-=7&v;v<32;){if(0===g)break t;g--,b+=c[p++]<<v,v+=8}if((65535&b)!=(b>>>16^65535)){t.msg="invalid stored block lengths",r.mode=f;break}if(r.length=65535&b,b=0,v=0,r.mode=15,6===e)break t;case 15:r.mode=16;case 16:if(S=r.length){if(S>g&&(S=g),S>m&&(S=m),0===S)break t;n.arraySet(d,c,p,S,y),g-=S,p+=S,m-=S,y+=S,r.length-=S;break}r.mode=h;break;case 17:for(;v<14;){if(0===g)break t;g--,b+=c[p++]<<v,v+=8}if(r.nlen=257+(31&b),b>>>=5,v-=5,r.ndist=1+(31&b),b>>>=5,v-=5,r.ncode=4+(15&b),b>>>=4,v-=4,r.nlen>286||r.ndist>30){t.msg="too many length or distance symbols",r.mode=f;break}r.have=0,r.mode=18;case 18:for(;r.have<r.ncode;){for(;v<3;){if(0===g)break t;g--,b+=c[p++]<<v,v+=8}r.lens[C[r.have++]]=7&b,b>>>=3,v-=3}for(;r.have<19;)r.lens[C[r.have++]]=0;if(r.lencode=r.lendyn,r.lenbits=7,P={bits:r.lenbits},L=s(0,r.lens,0,19,r.lencode,0,r.work,P),r.lenbits=P.bits,L){t.msg="invalid code lengths set",r.mode=f;break}r.have=0,r.mode=19;case 19:for(;r.have<r.nlen+r.ndist;){for(;O=(N=r.lencode[b&(1<<r.lenbits)-1])>>>16&255,R=65535&N,!((x=N>>>24)<=v);){if(0===g)break t;g--,b+=c[p++]<<v,v+=8}if(R<16)b>>>=x,v-=x,r.lens[r.have++]=R;else{if(16===R){for(U=x+2;v<U;){if(0===g)break t;g--,b+=c[p++]<<v,v+=8}if(b>>>=x,v-=x,0===r.have){t.msg="invalid bit length repeat",r.mode=f;break}T=r.lens[r.have-1],S=3+(3&b),b>>>=2,v-=2}else if(17===R){for(U=x+3;v<U;){if(0===g)break t;g--,b+=c[p++]<<v,v+=8}v-=x,T=0,S=3+(7&(b>>>=x)),b>>>=3,v-=3}else{for(U=x+7;v<U;){if(0===g)break t;g--,b+=c[p++]<<v,v+=8}v-=x,T=0,S=11+(127&(b>>>=x)),b>>>=7,v-=7}if(r.have+S>r.nlen+r.ndist){t.msg="invalid bit length repeat",r.mode=f;break}for(;S--;)r.lens[r.have++]=T}}if(r.mode===f)break;if(0===r.lens[256]){t.msg="invalid code -- missing end-of-block",r.mode=f;break}if(r.lenbits=9,P={bits:r.lenbits},L=s(1,r.lens,0,r.nlen,r.lencode,0,r.work,P),r.lenbits=P.bits,L){t.msg="invalid literal/lengths set",r.mode=f;break}if(r.distbits=6,r.distcode=r.distdyn,P={bits:r.distbits},L=s(2,r.lens,r.nlen,r.ndist,r.distcode,0,r.work,P),r.distbits=P.bits,L){t.msg="invalid distances set",r.mode=f;break}if(r.mode=20,6===e)break t;case 20:r.mode=21;case 21:if(g>=6&&m>=258){t.next_out=y,t.avail_out=m,t.next_in=p,t.avail_in=g,r.hold=b,r.bits=v,a(t,M),y=t.next_out,d=t.output,m=t.avail_out,p=t.next_in,c=t.input,g=t.avail_in,b=r.hold,v=r.bits,r.mode===h&&(r.back=-1);break}for(r.back=0;O=(N=r.lencode[b&(1<<r.lenbits)-1])>>>16&255,R=65535&N,!((x=N>>>24)<=v);){if(0===g)break t;g--,b+=c[p++]<<v,v+=8}if(O&&!(240&O)){for(B=x,j=O,I=R;O=(N=r.lencode[I+((b&(1<<B+j)-1)>>B)])>>>16&255,R=65535&N,!(B+(x=N>>>24)<=v);){if(0===g)break t;g--,b+=c[p++]<<v,v+=8}b>>>=B,v-=B,r.back+=B}if(b>>>=x,v-=x,r.back+=x,r.length=R,0===O){r.mode=26;break}if(32&O){r.back=-1,r.mode=h;break}if(64&O){t.msg="invalid literal/length code",r.mode=f;break}r.extra=15&O,r.mode=22;case 22:if(r.extra){for(U=r.extra;v<U;){if(0===g)break t;g--,b+=c[p++]<<v,v+=8}r.length+=b&(1<<r.extra)-1,b>>>=r.extra,v-=r.extra,r.back+=r.extra}r.was=r.length,r.mode=23;case 23:for(;O=(N=r.distcode[b&(1<<r.distbits)-1])>>>16&255,R=65535&N,!((x=N>>>24)<=v);){if(0===g)break t;g--,b+=c[p++]<<v,v+=8}if(!(240&O)){for(B=x,j=O,I=R;O=(N=r.distcode[I+((b&(1<<B+j)-1)>>B)])>>>16&255,R=65535&N,!(B+(x=N>>>24)<=v);){if(0===g)break t;g--,b+=c[p++]<<v,v+=8}b>>>=B,v-=B,r.back+=B}if(b>>>=x,v-=x,r.back+=x,64&O){t.msg="invalid distance code",r.mode=f;break}r.offset=R,r.extra=15&O,r.mode=24;case 24:if(r.extra){for(U=r.extra;v<U;){if(0===g)break t;g--,b+=c[p++]<<v,v+=8}r.offset+=b&(1<<r.extra)-1,b>>>=r.extra,v-=r.extra,r.back+=r.extra}if(r.offset>r.dmax){t.msg="invalid distance too far back",r.mode=f;break}r.mode=25;case 25:if(0===m)break t;if(S=M-m,r.offset>S){if((S=r.offset-S)>r.whave&&r.sane){t.msg="invalid distance too far back",r.mode=f;break}S>r.wnext?(S-=r.wnext,k=r.wsize-S):k=r.wnext-S,S>r.length&&(S=r.length),A=r.window}else A=d,k=y-r.offset,S=r.length;S>m&&(S=m),m-=S,r.length-=S;do{d[y++]=A[k++]}while(--S);0===r.length&&(r.mode=21);break;case 26:if(0===m)break t;d[y++]=r.length,m--,r.mode=21;break;case 27:if(r.wrap){for(;v<32;){if(0===g)break t;g--,b|=c[p++]<<v,v+=8}if(M-=m,t.total_out+=M,r.total+=M,M&&(t.adler=r.check=r.flags?o(r.check,d,M,y-M):i(r.check,d,M,y-M)),M=m,(r.flags?b:l(b))!==r.check){t.msg="incorrect data check",r.mode=f;break}b=0,v=0}r.mode=28;case 28:if(r.wrap&&r.flags){for(;v<32;){if(0===g)break t;g--,b+=c[p++]<<v,v+=8}if(b!==(4294967295&r.total)){t.msg="incorrect length check",r.mode=f;break}b=0,v=0}r.mode=29;case 29:L=1;break t;case f:L=-3;break t;case 31:return-4;default:return u}return t.next_out=y,t.avail_out=m,t.next_in=p,t.avail_in=g,r.hold=b,r.bits=v,(r.wsize||M!==t.avail_out&&r.mode<f&&(r.mode<27||4!==e))&&w(t,t.output,t.next_out,M-t.avail_out)?(r.mode=31,-4):(E-=t.avail_in,M-=t.avail_out,t.total_in+=E,t.total_out+=M,r.total+=M,r.wrap&&M&&(t.adler=r.check=r.flags?o(r.check,d,M,t.next_out-M):i(r.check,d,M,t.next_out-M)),t.data_type=r.bits+(r.last?64:0)+(r.mode===h?128:0)+(20===r.mode||15===r.mode?256:0),(0===E&&0===M||4===e)&&0===L&&(L=-5),L)},e.inflateEnd=function(t){if(!t||!t.state)return u;var e=t.state;return e.window&&(e.window=null),t.state=null,0},e.inflateGetHeader=function(t,e){var r;return t&&t.state&&2&(r=t.state).wrap?(r.head=e,e.done=!1,0):u},e.inflateSetDictionary=function(t,e){var r,n=e.length;return t&&t.state?0!==(r=t.state).wrap&&11!==r.mode?u:11===r.mode&&i(1,e,n,0)!==r.check?-3:w(t,e,n,n)?(r.mode=31,-4):(r.havedict=1,0):u},e.inflateInfo="pako inflate (from Nodeca project)"},1998(t,e,r){"use strict";var n=r(9805),i=15,o=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],a=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],s=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],u=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];t.exports=function(t,e,r,h,f,l,c,d){var p,y,g,m,b,v,_,w,E,M=d.bits,S=0,k=0,A=0,x=0,O=0,R=0,B=0,j=0,I=0,T=0,L=null,P=0,U=new n.Buf16(16),N=new n.Buf16(16),D=null,C=0;for(S=0;S<=i;S++)U[S]=0;for(k=0;k<h;k++)U[e[r+k]]++;for(O=M,x=i;x>=1&&0===U[x];x--);if(O>x&&(O=x),0===x)return f[l++]=20971520,f[l++]=20971520,d.bits=1,0;for(A=1;A<x&&0===U[A];A++);for(O<A&&(O=A),j=1,S=1;S<=i;S++)if(j<<=1,(j-=U[S])<0)return-1;if(j>0&&(0===t||1!==x))return-1;for(N[1]=0,S=1;S<i;S++)N[S+1]=N[S]+U[S];for(k=0;k<h;k++)0!==e[r+k]&&(c[N[e[r+k]]++]=k);if(0===t?(L=D=c,v=19):1===t?(L=o,P-=257,D=a,C-=257,v=256):(L=s,D=u,v=-1),T=0,k=0,S=A,b=l,R=O,B=0,g=-1,m=(I=1<<O)-1,1===t&&I>852||2===t&&I>592)return 1;for(;;){_=S-B,c[k]<v?(w=0,E=c[k]):c[k]>v?(w=D[C+c[k]],E=L[P+c[k]]):(w=96,E=0),p=1<<S-B,A=y=1<<R;do{f[b+(T>>B)+(y-=p)]=_<<24|w<<16|E}while(0!==y);for(p=1<<S-1;T&p;)p>>=1;if(0!==p?(T&=p-1,T+=p):T=0,k++,0===--U[S]){if(S===x)break;S=e[r+c[k]]}if(S>O&&(T&m)!==g){for(0===B&&(B=O),b+=A,j=1<<(R=S-B);R+B<x&&!((j-=U[R+B])<=0);)R++,j<<=1;if(I+=1<<R,1===t&&I>852||2===t&&I>592)return 1;f[g=T&m]=O<<24|R<<16|b-l}}return 0!==T&&(f[b+T]=S-B<<24|64<<16),d.bits=O,0}},4674(t){"use strict";t.exports={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}},3665(t,e,r){"use strict";var n=r(9805);function i(t){for(var e=t.length;--e>=0;)t[e]=0}var o=256,a=286,s=30,u=15,h=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],f=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],l=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],c=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],d=new Array(576);i(d);var p=new Array(60);i(p);var y=new Array(512);i(y);var g=new Array(256);i(g);var m=new Array(29);i(m);var b,v,_,w=new Array(s);function E(t,e,r,n,i){this.static_tree=t,this.extra_bits=e,this.extra_base=r,this.elems=n,this.max_length=i,this.has_stree=t&&t.length}function M(t,e){this.dyn_tree=t,this.max_code=0,this.stat_desc=e}function S(t){return t<256?y[t]:y[256+(t>>>7)]}function k(t,e){t.pending_buf[t.pending++]=255&e,t.pending_buf[t.pending++]=e>>>8&255}function A(t,e,r){t.bi_valid>16-r?(t.bi_buf|=e<<t.bi_valid&65535,k(t,t.bi_buf),t.bi_buf=e>>16-t.bi_valid,t.bi_valid+=r-16):(t.bi_buf|=e<<t.bi_valid&65535,t.bi_valid+=r)}function x(t,e,r){A(t,r[2*e],r[2*e+1])}function O(t,e){var r=0;do{r|=1&t,t>>>=1,r<<=1}while(--e>0);return r>>>1}function R(t,e,r){var n,i,o=new Array(16),a=0;for(n=1;n<=u;n++)o[n]=a=a+r[n-1]<<1;for(i=0;i<=e;i++){var s=t[2*i+1];0!==s&&(t[2*i]=O(o[s]++,s))}}function B(t){var e;for(e=0;e<a;e++)t.dyn_ltree[2*e]=0;for(e=0;e<s;e++)t.dyn_dtree[2*e]=0;for(e=0;e<19;e++)t.bl_tree[2*e]=0;t.dyn_ltree[512]=1,t.opt_len=t.static_len=0,t.last_lit=t.matches=0}function j(t){t.bi_valid>8?k(t,t.bi_buf):t.bi_valid>0&&(t.pending_buf[t.pending++]=t.bi_buf),t.bi_buf=0,t.bi_valid=0}function I(t,e,r,n){var i=2*e,o=2*r;return t[i]<t[o]||t[i]===t[o]&&n[e]<=n[r]}function T(t,e,r){for(var n=t.heap[r],i=r<<1;i<=t.heap_len&&(i<t.heap_len&&I(e,t.heap[i+1],t.heap[i],t.depth)&&i++,!I(e,n,t.heap[i],t.depth));)t.heap[r]=t.heap[i],r=i,i<<=1;t.heap[r]=n}function L(t,e,r){var n,i,a,s,u=0;if(0!==t.last_lit)do{n=t.pending_buf[t.d_buf+2*u]<<8|t.pending_buf[t.d_buf+2*u+1],i=t.pending_buf[t.l_buf+u],u++,0===n?x(t,i,e):(x(t,(a=g[i])+o+1,e),0!==(s=h[a])&&A(t,i-=m[a],s),x(t,a=S(--n),r),0!==(s=f[a])&&A(t,n-=w[a],s))}while(u<t.last_lit);x(t,256,e)}function P(t,e){var r,n,i,o=e.dyn_tree,a=e.stat_desc.static_tree,s=e.stat_desc.has_stree,h=e.stat_desc.elems,f=-1;for(t.heap_len=0,t.heap_max=573,r=0;r<h;r++)0!==o[2*r]?(t.heap[++t.heap_len]=f=r,t.depth[r]=0):o[2*r+1]=0;for(;t.heap_len<2;)o[2*(i=t.heap[++t.heap_len]=f<2?++f:0)]=1,t.depth[i]=0,t.opt_len--,s&&(t.static_len-=a[2*i+1]);for(e.max_code=f,r=t.heap_len>>1;r>=1;r--)T(t,o,r);i=h;do{r=t.heap[1],t.heap[1]=t.heap[t.heap_len--],T(t,o,1),n=t.heap[1],t.heap[--t.heap_max]=r,t.heap[--t.heap_max]=n,o[2*i]=o[2*r]+o[2*n],t.depth[i]=(t.depth[r]>=t.depth[n]?t.depth[r]:t.depth[n])+1,o[2*r+1]=o[2*n+1]=i,t.heap[1]=i++,T(t,o,1)}while(t.heap_len>=2);t.heap[--t.heap_max]=t.heap[1],function(t,e){var r,n,i,o,a,s,h=e.dyn_tree,f=e.max_code,l=e.stat_desc.static_tree,c=e.stat_desc.has_stree,d=e.stat_desc.extra_bits,p=e.stat_desc.extra_base,y=e.stat_desc.max_length,g=0;for(o=0;o<=u;o++)t.bl_count[o]=0;for(h[2*t.heap[t.heap_max]+1]=0,r=t.heap_max+1;r<573;r++)(o=h[2*h[2*(n=t.heap[r])+1]+1]+1)>y&&(o=y,g++),h[2*n+1]=o,n>f||(t.bl_count[o]++,a=0,n>=p&&(a=d[n-p]),s=h[2*n],t.opt_len+=s*(o+a),c&&(t.static_len+=s*(l[2*n+1]+a)));if(0!==g){do{for(o=y-1;0===t.bl_count[o];)o--;t.bl_count[o]--,t.bl_count[o+1]+=2,t.bl_count[y]--,g-=2}while(g>0);for(o=y;0!==o;o--)for(n=t.bl_count[o];0!==n;)(i=t.heap[--r])>f||(h[2*i+1]!==o&&(t.opt_len+=(o-h[2*i+1])*h[2*i],h[2*i+1]=o),n--)}}(t,e),R(o,f,t.bl_count)}function U(t,e,r){var n,i,o=-1,a=e[1],s=0,u=7,h=4;for(0===a&&(u=138,h=3),e[2*(r+1)+1]=65535,n=0;n<=r;n++)i=a,a=e[2*(n+1)+1],++s<u&&i===a||(s<h?t.bl_tree[2*i]+=s:0!==i?(i!==o&&t.bl_tree[2*i]++,t.bl_tree[32]++):s<=10?t.bl_tree[34]++:t.bl_tree[36]++,s=0,o=i,0===a?(u=138,h=3):i===a?(u=6,h=3):(u=7,h=4))}function N(t,e,r){var n,i,o=-1,a=e[1],s=0,u=7,h=4;for(0===a&&(u=138,h=3),n=0;n<=r;n++)if(i=a,a=e[2*(n+1)+1],!(++s<u&&i===a)){if(s<h)do{x(t,i,t.bl_tree)}while(0!==--s);else 0!==i?(i!==o&&(x(t,i,t.bl_tree),s--),x(t,16,t.bl_tree),A(t,s-3,2)):s<=10?(x(t,17,t.bl_tree),A(t,s-3,3)):(x(t,18,t.bl_tree),A(t,s-11,7));s=0,o=i,0===a?(u=138,h=3):i===a?(u=6,h=3):(u=7,h=4)}}i(w);var D=!1;function C(t,e,r,i){A(t,0+(i?1:0),3),function(t,e,r,i){j(t),i&&(k(t,r),k(t,~r)),n.arraySet(t.pending_buf,t.window,e,r,t.pending),t.pending+=r}(t,e,r,!0)}e._tr_init=function(t){D||(!function(){var t,e,r,n,i,o=new Array(16);for(r=0,n=0;n<28;n++)for(m[n]=r,t=0;t<1<<h[n];t++)g[r++]=n;for(g[r-1]=n,i=0,n=0;n<16;n++)for(w[n]=i,t=0;t<1<<f[n];t++)y[i++]=n;for(i>>=7;n<s;n++)for(w[n]=i<<7,t=0;t<1<<f[n]-7;t++)y[256+i++]=n;for(e=0;e<=u;e++)o[e]=0;for(t=0;t<=143;)d[2*t+1]=8,t++,o[8]++;for(;t<=255;)d[2*t+1]=9,t++,o[9]++;for(;t<=279;)d[2*t+1]=7,t++,o[7]++;for(;t<=287;)d[2*t+1]=8,t++,o[8]++;for(R(d,287,o),t=0;t<s;t++)p[2*t+1]=5,p[2*t]=O(t,5);b=new E(d,h,257,a,u),v=new E(p,f,0,s,u),_=new E(new Array(0),l,0,19,7)}(),D=!0),t.l_desc=new M(t.dyn_ltree,b),t.d_desc=new M(t.dyn_dtree,v),t.bl_desc=new M(t.bl_tree,_),t.bi_buf=0,t.bi_valid=0,B(t)},e._tr_stored_block=C,e._tr_flush_block=function(t,e,r,n){var i,a,s=0;t.level>0?(2===t.strm.data_type&&(t.strm.data_type=function(t){var e,r=4093624447;for(e=0;e<=31;e++,r>>>=1)if(1&r&&0!==t.dyn_ltree[2*e])return 0;if(0!==t.dyn_ltree[18]||0!==t.dyn_ltree[20]||0!==t.dyn_ltree[26])return 1;for(e=32;e<o;e++)if(0!==t.dyn_ltree[2*e])return 1;return 0}(t)),P(t,t.l_desc),P(t,t.d_desc),s=function(t){var e;for(U(t,t.dyn_ltree,t.l_desc.max_code),U(t,t.dyn_dtree,t.d_desc.max_code),P(t,t.bl_desc),e=18;e>=3&&0===t.bl_tree[2*c[e]+1];e--);return t.opt_len+=3*(e+1)+5+5+4,e}(t),i=t.opt_len+3+7>>>3,(a=t.static_len+3+7>>>3)<=i&&(i=a)):i=a=r+5,r+4<=i&&-1!==e?C(t,e,r,n):4===t.strategy||a===i?(A(t,2+(n?1:0),3),L(t,d,p)):(A(t,4+(n?1:0),3),function(t,e,r,n){var i;for(A(t,e-257,5),A(t,r-1,5),A(t,n-4,4),i=0;i<n;i++)A(t,t.bl_tree[2*c[i]+1],3);N(t,t.dyn_ltree,e-1),N(t,t.dyn_dtree,r-1)}(t,t.l_desc.max_code+1,t.d_desc.max_code+1,s+1),L(t,t.dyn_ltree,t.dyn_dtree)),B(t),n&&j(t)},e._tr_tally=function(t,e,r){return t.pending_buf[t.d_buf+2*t.last_lit]=e>>>8&255,t.pending_buf[t.d_buf+2*t.last_lit+1]=255&e,t.pending_buf[t.l_buf+t.last_lit]=255&r,t.last_lit++,0===e?t.dyn_ltree[2*r]++:(t.matches++,e--,t.dyn_ltree[2*(g[r]+o+1)]++,t.dyn_dtree[2*S(e)]++),t.last_lit===t.lit_bufsize-1},e._tr_align=function(t){A(t,2,3),x(t,256,d),function(t){16===t.bi_valid?(k(t,t.bi_buf),t.bi_buf=0,t.bi_valid=0):t.bi_valid>=8&&(t.pending_buf[t.pending++]=255&t.bi_buf,t.bi_buf>>=8,t.bi_valid-=8)}(t)}},4442(t){"use strict";t.exports=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}},1137(t,e,r){"use strict";var n=r(7568);e.certificate=r(6413);var i=n.define("RSAPrivateKey",function(){this.seq().obj(this.key("version").int(),this.key("modulus").int(),this.key("publicExponent").int(),this.key("privateExponent").int(),this.key("prime1").int(),this.key("prime2").int(),this.key("exponent1").int(),this.key("exponent2").int(),this.key("coefficient").int())});e.RSAPrivateKey=i;var o=n.define("RSAPublicKey",function(){this.seq().obj(this.key("modulus").int(),this.key("publicExponent").int())});e.RSAPublicKey=o;var a=n.define("AlgorithmIdentifier",function(){this.seq().obj(this.key("algorithm").objid(),this.key("none").null_().optional(),this.key("curve").objid().optional(),this.key("params").seq().obj(this.key("p").int(),this.key("q").int(),this.key("g").int()).optional())}),s=n.define("SubjectPublicKeyInfo",function(){this.seq().obj(this.key("algorithm").use(a),this.key("subjectPublicKey").bitstr())});e.PublicKey=s;var u=n.define("PrivateKeyInfo",function(){this.seq().obj(this.key("version").int(),this.key("algorithm").use(a),this.key("subjectPrivateKey").octstr())});e.PrivateKey=u;var h=n.define("EncryptedPrivateKeyInfo",function(){this.seq().obj(this.key("algorithm").seq().obj(this.key("id").objid(),this.key("decrypt").seq().obj(this.key("kde").seq().obj(this.key("id").objid(),this.key("kdeparams").seq().obj(this.key("salt").octstr(),this.key("iters").int())),this.key("cipher").seq().obj(this.key("algo").objid(),this.key("iv").octstr()))),this.key("subjectPrivateKey").octstr())});e.EncryptedPrivateKey=h;var f=n.define("DSAPrivateKey",function(){this.seq().obj(this.key("version").int(),this.key("p").int(),this.key("q").int(),this.key("g").int(),this.key("pub_key").int(),this.key("priv_key").int())});e.DSAPrivateKey=f,e.DSAparam=n.define("DSAparam",function(){this.int()});var l=n.define("ECParameters",function(){this.choice({namedCurve:this.objid()})}),c=n.define("ECPrivateKey",function(){this.seq().obj(this.key("version").int(),this.key("privateKey").octstr(),this.key("parameters").optional().explicit(0).use(l),this.key("publicKey").optional().explicit(1).bitstr())});e.ECPrivateKey=c,e.signature=n.define("signature",function(){this.seq().obj(this.key("r").int(),this.key("s").int())})},6413(t,e,r){"use strict";var n=r(7568),i=n.define("Time",function(){this.choice({utcTime:this.utctime(),generalTime:this.gentime()})}),o=n.define("AttributeTypeValue",function(){this.seq().obj(this.key("type").objid(),this.key("value").any())}),a=n.define("AlgorithmIdentifier",function(){this.seq().obj(this.key("algorithm").objid(),this.key("parameters").optional(),this.key("curve").objid().optional())}),s=n.define("SubjectPublicKeyInfo",function(){this.seq().obj(this.key("algorithm").use(a),this.key("subjectPublicKey").bitstr())}),u=n.define("RelativeDistinguishedName",function(){this.setof(o)}),h=n.define("RDNSequence",function(){this.seqof(u)}),f=n.define("Name",function(){this.choice({rdnSequence:this.use(h)})}),l=n.define("Validity",function(){this.seq().obj(this.key("notBefore").use(i),this.key("notAfter").use(i))}),c=n.define("Extension",function(){this.seq().obj(this.key("extnID").objid(),this.key("critical").bool().def(!1),this.key("extnValue").octstr())}),d=n.define("TBSCertificate",function(){this.seq().obj(this.key("version").explicit(0).int().optional(),this.key("serialNumber").int(),this.key("signature").use(a),this.key("issuer").use(f),this.key("validity").use(l),this.key("subject").use(f),this.key("subjectPublicKeyInfo").use(s),this.key("issuerUniqueID").implicit(1).bitstr().optional(),this.key("subjectUniqueID").implicit(2).bitstr().optional(),this.key("extensions").explicit(3).seqof(c).optional())}),p=n.define("X509Certificate",function(){this.seq().obj(this.key("tbsCertificate").use(d),this.key("signatureAlgorithm").use(a),this.key("signatureValue").bitstr())});t.exports=p},4101(t,e,r){"use strict";var n=/Proc-Type: 4,ENCRYPTED[\n\r]+DEK-Info: AES-((?:128)|(?:192)|(?:256))-CBC,([0-9A-H]+)[\n\r]+([0-9A-z\n\r+/=]+)[\n\r]+/m,i=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----/m,o=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----([0-9A-z\n\r+/=]+)-----END \1-----$/m,a=r(8078),s=r(1241),u=r(2861).Buffer;t.exports=function(t,e){var r,h=t.toString(),f=h.match(n);if(f){var l="aes"+f[1],c=u.from(f[2],"hex"),d=u.from(f[3].replace(/[\r\n]/g,""),"base64"),p=a(e,c.slice(0,8),parseInt(f[1],10)).key,y=[],g=s.createDecipheriv(l,p,c);y.push(g.update(d)),y.push(g.final()),r=u.concat(y)}else{var m=h.match(o);r=u.from(m[2].replace(/[\r\n]/g,""),"base64")}return{tag:h.match(i)[1],data:r}}},8170(t,e,r){"use strict";var n=r(1137),i=r(5579),o=r(4101),a=r(1241),s=r(8396).pbkdf2Sync,u=r(2861).Buffer;function h(t){var e;"object"!=typeof t||u.isBuffer(t)||(e=t.passphrase,t=t.key),"string"==typeof t&&(t=u.from(t));var r,h,f=o(t,e),l=f.tag,c=f.data;switch(l){case"CERTIFICATE":h=n.certificate.decode(c,"der").tbsCertificate.subjectPublicKeyInfo;case"PUBLIC KEY":switch(h||(h=n.PublicKey.decode(c,"der")),r=h.algorithm.algorithm.join(".")){case"1.2.840.113549.1.1.1":return n.RSAPublicKey.decode(h.subjectPublicKey.data,"der");case"1.2.840.10045.2.1":return h.subjectPrivateKey=h.subjectPublicKey,{type:"ec",data:h};case"1.2.840.10040.4.1":return h.algorithm.params.pub_key=n.DSAparam.decode(h.subjectPublicKey.data,"der"),{type:"dsa",data:h.algorithm.params};default:throw new Error("unknown key id "+r)}case"ENCRYPTED PRIVATE KEY":c=function(t,e){var r=t.algorithm.decrypt.kde.kdeparams.salt,n=parseInt(t.algorithm.decrypt.kde.kdeparams.iters.toString(),10),o=i[t.algorithm.decrypt.cipher.algo.join(".")],h=t.algorithm.decrypt.cipher.iv,f=t.subjectPrivateKey,l=parseInt(o.split("-")[1],10)/8,c=s(e,r,n,l,"sha1"),d=a.createDecipheriv(o,c,h),p=[];return p.push(d.update(f)),p.push(d.final()),u.concat(p)}(c=n.EncryptedPrivateKey.decode(c,"der"),e);case"PRIVATE KEY":switch(r=(h=n.PrivateKey.decode(c,"der")).algorithm.algorithm.join(".")){case"1.2.840.113549.1.1.1":return n.RSAPrivateKey.decode(h.subjectPrivateKey,"der");case"1.2.840.10045.2.1":return{curve:h.algorithm.curve,privateKey:n.ECPrivateKey.decode(h.subjectPrivateKey,"der").privateKey};case"1.2.840.10040.4.1":return h.algorithm.params.priv_key=n.DSAparam.decode(h.subjectPrivateKey,"der"),{type:"dsa",params:h.algorithm.params};default:throw new Error("unknown key id "+r)}case"RSA PUBLIC KEY":return n.RSAPublicKey.decode(c,"der");case"RSA PRIVATE KEY":return n.RSAPrivateKey.decode(c,"der");case"DSA PRIVATE KEY":return{type:"dsa",params:n.DSAPrivateKey.decode(c,"der")};case"EC PRIVATE KEY":return{curve:(c=n.ECPrivateKey.decode(c,"der")).parameters.value,privateKey:c.privateKey};default:throw new Error("unknown key type "+l)}}h.signature=n.signature,t.exports=h},8396(t,e,r){"use strict";e.pbkdf2=r(3832),e.pbkdf2Sync=r(1352)},3832(t,e,r){"use strict";var n,i,o=r(2861).Buffer,a=r(4196),s=r(2455),u=r(1352),h=r(3382),f=r.g.crypto&&r.g.crypto.subtle,l={sha:"SHA-1","sha-1":"SHA-1",sha1:"SHA-1",sha256:"SHA-256","sha-256":"SHA-256",sha384:"SHA-384","sha-384":"SHA-384","sha-512":"SHA-512",sha512:"SHA-512"},c=[];function d(){return i||(i=r.g.process&&r.g.process.nextTick?r.g.process.nextTick:r.g.queueMicrotask?r.g.queueMicrotask:r.g.setImmediate?r.g.setImmediate:r.g.setTimeout)}function p(t,e,r,n,i){return f.importKey("raw",t,{name:"PBKDF2"},!1,["deriveBits"]).then(function(t){return f.deriveBits({name:"PBKDF2",salt:e,iterations:r,hash:{name:i}},t,n<<3)}).then(function(t){return o.from(t)})}t.exports=function(t,e,i,y,g,m){if("function"==typeof g&&(m=g,g=void 0),a(i,y),t=h(t,s,"Password"),e=h(e,s,"Salt"),"function"!=typeof m)throw new Error("No callback provided to pbkdf2");var b=l[(g=g||"sha1").toLowerCase()];b&&"function"==typeof r.g.Promise?function(t,e){t.then(function(t){d()(function(){e(null,t)})},function(t){d()(function(){e(t)})})}(function(t){if(r.g.process&&!r.g.process.browser)return Promise.resolve(!1);if(!f||!f.importKey||!f.deriveBits)return Promise.resolve(!1);if(void 0!==c[t])return c[t];var e=p(n=n||o.alloc(8),n,10,128,t).then(function(){return!0},function(){return!1});return c[t]=e,e}(b).then(function(r){return r?p(t,e,i,y,b):u(t,e,i,y,g)}),m):d()(function(){var r;try{r=u(t,e,i,y,g)}catch(t){return void m(t)}m(null,r)})}},2455(t,e,r){"use strict";var n,i=r(5606);if(r.g.process&&r.g.process.browser)n="utf-8";else if(r.g.process&&r.g.process.version){n=parseInt(i.version.split(".")[0].slice(1),10)>=6?"utf-8":"binary"}else n="utf-8";t.exports=n},4196(t){"use strict";var e=isFinite,r=Math.pow(2,30)-1;t.exports=function(t,n){if("number"!=typeof t)throw new TypeError("Iterations not a number");if(t<0||!e(t))throw new TypeError("Bad iterations");if("number"!=typeof n)throw new TypeError("Key length not a number");if(n<0||n>r||n!=n)throw new TypeError("Bad key length")}},1352(t,e,r){"use strict";var n=r(320),i=r(6011),o=r(2802),a=r(2861).Buffer,s=r(4196),u=r(2455),h=r(3382),f=a.alloc(128),l={__proto__:null,md5:16,sha1:20,sha224:28,sha256:32,sha384:48,sha512:64,"sha512-256":32,ripemd160:20,rmd160:20},c={__proto__:null,"sha-1":"sha1","sha-224":"sha224","sha-256":"sha256","sha-384":"sha384","sha-512":"sha512","ripemd-160":"ripemd160"};function d(t){return(new i).update(t).digest()}function p(t,e,r){var i=function(t){return"rmd160"===t||"ripemd160"===t?d:"md5"===t?n:function(e){return o(t).update(e).digest()}}(t),s="sha512"===t||"sha384"===t?128:64;e.length>s?e=i(e):e.length<s&&(e=a.concat([e,f],s));for(var u=a.allocUnsafe(s+l[t]),h=a.allocUnsafe(s+l[t]),c=0;c<s;c++)u[c]=54^e[c],h[c]=92^e[c];var p=a.allocUnsafe(s+r+4);u.copy(p,0,0,s),this.ipad1=p,this.ipad2=u,this.opad=h,this.alg=t,this.blocksize=s,this.hash=i,this.size=l[t]}p.prototype.run=function(t,e){return t.copy(e,this.blocksize),this.hash(e).copy(this.opad,this.blocksize),this.hash(this.opad)},t.exports=function(t,e,r,n,i){s(r,n),t=h(t,u,"Password"),e=h(e,u,"Salt");var o=(i||"sha1").toLowerCase(),f=c[o]||o,d=l[f];if("number"!=typeof d||!d)throw new TypeError("Digest algorithm not supported: "+i);var y=new p(f,t,e.length),g=a.allocUnsafe(n),m=a.allocUnsafe(e.length+4);e.copy(m,0,0,e.length);for(var b=0,v=d,_=Math.ceil(n/v),w=1;w<=_;w++){m.writeUInt32BE(w,e.length);for(var E=y.run(m,y.ipad1),M=E,S=1;S<r;S++){M=y.run(M,y.ipad2);for(var k=0;k<v;k++)E[k]^=M[k]}E.copy(g,b),b+=v}return g}},3382(t,e,r){"use strict";var n=r(2861).Buffer,i=r(5377),o="undefined"!=typeof Uint8Array,a=o&&"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView;t.exports=function(t,e,r){if("string"==typeof t||n.isBuffer(t)||o&&t instanceof Uint8Array||a&&a(t))return i(t,e);throw new TypeError(r+" must be a string, a Buffer, a Uint8Array, or a DataView")}},6578(t){"use strict";t.exports=["Float16Array","Float32Array","Float64Array","Int8Array","Int16Array","Int32Array","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array"]},3225(t,e,r){"use strict";var n=r(5606);void 0===n||!n.version||0===n.version.indexOf("v0.")||0===n.version.indexOf("v1.")&&0!==n.version.indexOf("v1.8.")?t.exports={nextTick:function(t,e,r,i){if("function"!=typeof t)throw new TypeError('"callback" argument must be a function');var o,a,s=arguments.length;switch(s){case 0:case 1:return n.nextTick(t);case 2:return n.nextTick(function(){t.call(null,e)});case 3:return n.nextTick(function(){t.call(null,e,r)});case 4:return n.nextTick(function(){t.call(null,e,r,i)});default:for(o=new Array(s-1),a=0;a<o.length;)o[a++]=arguments[a];return n.nextTick(function(){t.apply(null,o)})}}}:t.exports=n},5606(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 s,u=[],h=!1,f=-1;function l(){h&&s&&(h=!1,s.length?u=s.concat(u):f=-1,u.length&&c())}function c(){if(!h){var t=a(l);h=!0;for(var e=u.length;e;){for(s=u,u=[];++f<e;)s&&s[f].run();f=-1,e=u.length}s=null,h=!1,function(t){if(r===clearTimeout)return clearTimeout(t);if((r===o||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(t);try{return r(t)}catch(e){try{return r.call(null,t)}catch(e){return r.call(this,t)}}}(t)}}function d(t,e){this.fun=t,this.array=e}function p(){}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];u.push(new d(t,e)),1!==u.length||h||a(c)},d.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=p,n.addListener=p,n.once=p,n.off=p,n.removeListener=p,n.removeAllListeners=p,n.emit=p,n.prependListener=p,n.prependOnceListener=p,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}},7168(t,e,r){e.publicEncrypt=r(8902),e.privateDecrypt=r(7362),e.privateEncrypt=function(t,r){return e.publicEncrypt(t,r,!0)},e.publicDecrypt=function(t,r){return e.privateDecrypt(t,r,!0)}},8206(t,e,r){var n=r(7108),i=r(2861).Buffer;function o(t){var e=i.allocUnsafe(4);return e.writeUInt32BE(t,0),e}t.exports=function(t,e){for(var r,a=i.alloc(0),s=0;a.length<e;)r=o(s++),a=i.concat([a,n("sha1").update(t).update(r).digest()]);return a.slice(0,e)}},7362(t,e,r){var n=r(8170),i=r(8206),o=r(2061),a=r(9404),s=r(7332),u=r(7108),h=r(9247),f=r(2861).Buffer;t.exports=function(t,e,r){var l;l=t.padding?t.padding:r?1:4;var c,d=n(t),p=d.modulus.byteLength();if(e.length>p||new a(e).cmp(d.modulus)>=0)throw new Error("decryption error");c=r?h(new a(e),d):s(e,d);var y=f.alloc(p-c.length);if(c=f.concat([y,c],p),4===l)return function(t,e){var r=t.modulus.byteLength(),n=u("sha1").update(f.alloc(0)).digest(),a=n.length;if(0!==e[0])throw new Error("decryption error");var s=e.slice(1,a+1),h=e.slice(a+1),l=o(s,i(h,a)),c=o(h,i(l,r-a-1));if(function(t,e){t=f.from(t),e=f.from(e);var r=0,n=t.length;t.length!==e.length&&(r++,n=Math.min(t.length,e.length));var i=-1;for(;++i<n;)r+=t[i]^e[i];return r}(n,c.slice(0,a)))throw new Error("decryption error");var d=a;for(;0===c[d];)d++;if(1!==c[d++])throw new Error("decryption error");return c.slice(d)}(d,c);if(1===l)return function(t,e,r){var n=e.slice(0,2),i=2,o=0;for(;0!==e[i++];)if(i>=e.length){o++;break}var a=e.slice(2,i-1);("0002"!==n.toString("hex")&&!r||"0001"!==n.toString("hex")&&r)&&o++;a.length<8&&o++;if(o)throw new Error("decryption error");return e.slice(i)}(0,c,r);if(3===l)return c;throw new Error("unknown padding")}},8902(t,e,r){var n=r(8170),i=r(3209),o=r(7108),a=r(8206),s=r(2061),u=r(9404),h=r(9247),f=r(7332),l=r(2861).Buffer;t.exports=function(t,e,r){var c;c=t.padding?t.padding:r?1:4;var d,p=n(t);if(4===c)d=function(t,e){var r=t.modulus.byteLength(),n=e.length,h=o("sha1").update(l.alloc(0)).digest(),f=h.length,c=2*f;if(n>r-c-2)throw new Error("message too long");var d=l.alloc(r-n-c-2),p=r-f-1,y=i(f),g=s(l.concat([h,d,l.alloc(1,1),e],p),a(y,p)),m=s(y,a(g,f));return new u(l.concat([l.alloc(1),m,g],r))}(p,e);else if(1===c)d=function(t,e,r){var n,o=e.length,a=t.modulus.byteLength();if(o>a-11)throw new Error("message too long");n=r?l.alloc(a-o-3,255):function(t){var e,r=l.allocUnsafe(t),n=0,o=i(2*t),a=0;for(;n<t;)a===o.length&&(o=i(2*t),a=0),(e=o[a++])&&(r[n++]=e);return r}(a-o-3);return new u(l.concat([l.from([0,r?1:2]),n,l.alloc(1),e],a))}(p,e,r);else{if(3!==c)throw new Error("unknown padding");if((d=new u(e)).cmp(p.modulus)>=0)throw new Error("data too long for modulus")}return r?f(d,p):h(d,p)}},9247(t,e,r){var n=r(9404),i=r(2861).Buffer;t.exports=function(t,e){return i.from(t.toRed(n.mont(e.modulus)).redPow(new n(e.publicExponent)).fromRed().toArray())}},2061(t){t.exports=function(t,e){for(var r=t.length,n=-1;++n<r;)t[n]^=e[n];return t}},3209(t,e,r){"use strict";var n=r(5606),i=65536,o=4294967295;var a=r(2861).Buffer,s=r.g.crypto||r.g.msCrypto;s&&s.getRandomValues?t.exports=function(t,e){if(t>o)throw new RangeError("requested too many random bytes");var r=a.allocUnsafe(t);if(t>0)if(t>i)for(var u=0;u<t;u+=i)s.getRandomValues(r.slice(u,u+i));else s.getRandomValues(r);if("function"==typeof e)return n.nextTick(function(){e(null,r)});return r}:t.exports=function(){throw new Error("Secure random number generation is not supported by this browser.\nUse Chrome, Firefox or Internet Explorer 11")}},6983(t,e,r){"use strict";var n=r(5606);function i(){throw new Error("secure random number generation not supported by this browser\nuse chrome, FireFox or Internet Explorer 11")}var o=r(2861),a=r(3209),s=o.Buffer,u=o.kMaxLength,h=r.g.crypto||r.g.msCrypto,f=Math.pow(2,32)-1;function l(t,e){if("number"!=typeof t||t!=t)throw new TypeError("offset must be a number");if(t>f||t<0)throw new TypeError("offset must be a uint32");if(t>u||t>e)throw new RangeError("offset out of range")}function c(t,e,r){if("number"!=typeof t||t!=t)throw new TypeError("size must be a number");if(t>f||t<0)throw new TypeError("size must be a uint32");if(t+e>r||t>u)throw new RangeError("buffer too small")}function d(t,e,r,i){if(n.browser){var o=t.buffer,s=new Uint8Array(o,e,r);return h.getRandomValues(s),i?void n.nextTick(function(){i(null,t)}):t}if(!i)return a(r).copy(t,e),t;a(r,function(r,n){if(r)return i(r);n.copy(t,e),i(null,t)})}h&&h.getRandomValues||!n.browser?(e.randomFill=function(t,e,n,i){if(!(s.isBuffer(t)||t instanceof r.g.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');if("function"==typeof e)i=e,e=0,n=t.length;else if("function"==typeof n)i=n,n=t.length-e;else if("function"!=typeof i)throw new TypeError('"cb" argument must be a function');return l(e,t.length),c(n,e,t.length),d(t,e,n,i)},e.randomFillSync=function(t,e,n){void 0===e&&(e=0);if(!(s.isBuffer(t)||t instanceof r.g.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');l(e,t.length),void 0===n&&(n=t.length-e);return c(n,e,t.length),d(t,e,n)}):(e.randomFill=i,e.randomFillSync=i)},5382(t,e,r){"use strict";var n=r(3225),i=Object.keys||function(t){var e=[];for(var r in t)e.push(r);return e};t.exports=l;var o=Object.create(r(5622));o.inherits=r(4317);var a=r(5412),s=r(6708);o.inherits(l,a);for(var u=i(s.prototype),h=0;h<u.length;h++){var f=u[h];l.prototype[f]||(l.prototype[f]=s.prototype[f])}function l(t){if(!(this instanceof l))return new l(t);a.call(this,t),s.call(this,t),t&&!1===t.readable&&(this.readable=!1),t&&!1===t.writable&&(this.writable=!1),this.allowHalfOpen=!0,t&&!1===t.allowHalfOpen&&(this.allowHalfOpen=!1),this.once("end",c)}function c(){this.allowHalfOpen||this._writableState.ended||n.nextTick(d,this)}function d(t){t.end()}Object.defineProperty(l.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(l.prototype,"destroyed",{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)}}),l.prototype._destroy=function(t,e){this.push(null),this.end(),n.nextTick(e,t)}},3600(t,e,r){"use strict";t.exports=o;var n=r(4610),i=Object.create(r(5622));function o(t){if(!(this instanceof o))return new o(t);n.call(this,t)}i.inherits=r(4317),i.inherits(o,n),o.prototype._transform=function(t,e,r){r(null,t)}},5412(t,e,r){"use strict";var n=r(5606),i=r(3225);t.exports=v;var o,a=r(7225);v.ReadableState=b;r(7007).EventEmitter;var s=function(t,e){return t.listeners(e).length},u=r(345),h=r(4106).Buffer,f=(void 0!==r.g?r.g:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{}).Uint8Array||function(){};var l=Object.create(r(5622));l.inherits=r(4317);var c=r(9838),d=void 0;d=c&&c.debuglog?c.debuglog("stream"):function(){};var p,y=r(3222),g=r(5896);l.inherits(v,u);var m=["error","close","destroy","pause","resume"];function b(t,e){t=t||{};var n=e instanceof(o=o||r(5382));this.objectMode=!!t.objectMode,n&&(this.objectMode=this.objectMode||!!t.readableObjectMode);var i=t.highWaterMark,a=t.readableHighWaterMark,s=this.objectMode?16:16384;this.highWaterMark=i||0===i?i:n&&(a||0===a)?a:s,this.highWaterMark=Math.floor(this.highWaterMark),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.destroyed=!1,this.defaultEncoding=t.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,t.encoding&&(p||(p=r(3141).I),this.decoder=new p(t.encoding),this.encoding=t.encoding)}function v(t){if(o=o||r(5382),!(this instanceof v))return new v(t);this._readableState=new b(t,this),this.readable=!0,t&&("function"==typeof t.read&&(this._read=t.read),"function"==typeof t.destroy&&(this._destroy=t.destroy)),u.call(this)}function _(t,e,r,n,i){var o,a=t._readableState;null===e?(a.reading=!1,function(t,e){if(e.ended)return;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,S(t)}(t,a)):(i||(o=function(t,e){var r;n=e,h.isBuffer(n)||n instanceof f||"string"==typeof e||void 0===e||t.objectMode||(r=new TypeError("Invalid non-string/buffer chunk"));var n;return r}(a,e)),o?t.emit("error",o):a.objectMode||e&&e.length>0?("string"==typeof e||a.objectMode||Object.getPrototypeOf(e)===h.prototype||(e=function(t){return h.from(t)}(e)),n?a.endEmitted?t.emit("error",new Error("stream.unshift() after end event")):w(t,a,e,!0):a.ended?t.emit("error",new Error("stream.push() after EOF")):(a.reading=!1,a.decoder&&!r?(e=a.decoder.write(e),a.objectMode||0!==e.length?w(t,a,e,!1):A(t,a)):w(t,a,e,!1))):n||(a.reading=!1));return function(t){return!t.ended&&(t.needReadable||t.length<t.highWaterMark||0===t.length)}(a)}function w(t,e,r,n){e.flowing&&0===e.length&&!e.sync?(t.emit("data",r),t.read(0)):(e.length+=e.objectMode?1:r.length,n?e.buffer.unshift(r):e.buffer.push(r),e.needReadable&&S(t)),A(t,e)}Object.defineProperty(v.prototype,"destroyed",{get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(t){this._readableState&&(this._readableState.destroyed=t)}}),v.prototype.destroy=g.destroy,v.prototype._undestroy=g.undestroy,v.prototype._destroy=function(t,e){this.push(null),e(t)},v.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=h.from(t,e),e=""),r=!0),_(this,t,e,!1,r)},v.prototype.unshift=function(t){return _(this,t,null,!0,!1)},v.prototype.isPaused=function(){return!1===this._readableState.flowing},v.prototype.setEncoding=function(t){return p||(p=r(3141).I),this._readableState.decoder=new p(t),this._readableState.encoding=t,this};var E=8388608;function M(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>=E?t=E:(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 S(t){var e=t._readableState;e.needReadable=!1,e.emittedReadable||(d("emitReadable",e.flowing),e.emittedReadable=!0,e.sync?i.nextTick(k,t):k(t))}function k(t){d("emit readable"),t.emit("readable"),B(t)}function A(t,e){e.readingMore||(e.readingMore=!0,i.nextTick(x,t,e))}function x(t,e){for(var r=e.length;!e.reading&&!e.flowing&&!e.ended&&e.length<e.highWaterMark&&(d("maybeReadMore read 0"),t.read(0),r!==e.length);)r=e.length;e.readingMore=!1}function O(t){d("readable nexttick read 0"),t.read(0)}function R(t,e){e.reading||(d("resume read 0"),t.read(0)),e.resumeScheduled=!1,e.awaitDrain=0,t.emit("resume"),B(t),e.flowing&&!e.reading&&t.read(0)}function B(t){var e=t._readableState;for(d("flow",e.flowing);e.flowing&&null!==t.read(););}function j(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.head.data:e.buffer.concat(e.length),e.buffer.clear()):r=function(t,e,r){var n;t<e.head.data.length?(n=e.head.data.slice(0,t),e.head.data=e.head.data.slice(t)):n=t===e.head.data.length?e.shift():r?function(t,e){var r=e.head,n=1,i=r.data;t-=i.length;for(;r=r.next;){var o=r.data,a=t>o.length?o.length:t;if(a===o.length?i+=o:i+=o.slice(0,t),0===(t-=a)){a===o.length?(++n,r.next?e.head=r.next:e.head=e.tail=null):(e.head=r,r.data=o.slice(a));break}++n}return e.length-=n,i}(t,e):function(t,e){var r=h.allocUnsafe(t),n=e.head,i=1;n.data.copy(r),t-=n.data.length;for(;n=n.next;){var o=n.data,a=t>o.length?o.length:t;if(o.copy(r,r.length-t,0,a),0===(t-=a)){a===o.length?(++i,n.next?e.head=n.next:e.head=e.tail=null):(e.head=n,n.data=o.slice(a));break}++i}return e.length-=i,r}(t,e);return n}(t,e.buffer,e.decoder),r);var r}function I(t){var e=t._readableState;if(e.length>0)throw new Error('"endReadable()" called on non-empty stream');e.endEmitted||(e.ended=!0,i.nextTick(T,e,t))}function T(t,e){t.endEmitted||0!==t.length||(t.endEmitted=!0,e.readable=!1,e.emit("end"))}function L(t,e){for(var r=0,n=t.length;r<n;r++)if(t[r]===e)return r;return-1}v.prototype.read=function(t){d("read",t),t=parseInt(t,10);var e=this._readableState,r=t;if(0!==t&&(e.emittedReadable=!1),0===t&&e.needReadable&&(e.length>=e.highWaterMark||e.ended))return d("read: emitReadable",e.length,e.ended),0===e.length&&e.ended?I(this):S(this),null;if(0===(t=M(t,e))&&e.ended)return 0===e.length&&I(this),null;var n,i=e.needReadable;return d("need readable",i),(0===e.length||e.length-t<e.highWaterMark)&&d("length less than watermark",i=!0),e.ended||e.reading?d("reading or ended",i=!1):i&&(d("do read"),e.reading=!0,e.sync=!0,0===e.length&&(e.needReadable=!0),this._read(e.highWaterMark),e.sync=!1,e.reading||(t=M(r,e))),null===(n=t>0?j(t,e):null)?(e.needReadable=!0,t=0):e.length-=t,0===e.length&&(e.ended||(e.needReadable=!0),r!==t&&e.ended&&I(this)),null!==n&&this.emit("data",n),n},v.prototype._read=function(t){this.emit("error",new Error("_read() is not implemented"))},v.prototype.pipe=function(t,e){var r=this,o=this._readableState;switch(o.pipesCount){case 0:o.pipes=t;break;case 1:o.pipes=[o.pipes,t];break;default:o.pipes.push(t)}o.pipesCount+=1,d("pipe count=%d opts=%j",o.pipesCount,e);var u=(!e||!1!==e.end)&&t!==n.stdout&&t!==n.stderr?f:v;function h(e,n){d("onunpipe"),e===r&&n&&!1===n.hasUnpiped&&(n.hasUnpiped=!0,d("cleanup"),t.removeListener("close",m),t.removeListener("finish",b),t.removeListener("drain",l),t.removeListener("error",g),t.removeListener("unpipe",h),r.removeListener("end",f),r.removeListener("end",v),r.removeListener("data",y),c=!0,!o.awaitDrain||t._writableState&&!t._writableState.needDrain||l())}function f(){d("onend"),t.end()}o.endEmitted?i.nextTick(u):r.once("end",u),t.on("unpipe",h);var l=function(t){return function(){var e=t._readableState;d("pipeOnDrain",e.awaitDrain),e.awaitDrain&&e.awaitDrain--,0===e.awaitDrain&&s(t,"data")&&(e.flowing=!0,B(t))}}(r);t.on("drain",l);var c=!1;var p=!1;function y(e){d("ondata"),p=!1,!1!==t.write(e)||p||((1===o.pipesCount&&o.pipes===t||o.pipesCount>1&&-1!==L(o.pipes,t))&&!c&&(d("false write response, pause",o.awaitDrain),o.awaitDrain++,p=!0),r.pause())}function g(e){d("onerror",e),v(),t.removeListener("error",g),0===s(t,"error")&&t.emit("error",e)}function m(){t.removeListener("finish",b),v()}function b(){d("onfinish"),t.removeListener("close",m),v()}function v(){d("unpipe"),r.unpipe(t)}return r.on("data",y),function(t,e,r){if("function"==typeof t.prependListener)return t.prependListener(e,r);t._events&&t._events[e]?a(t._events[e])?t._events[e].unshift(r):t._events[e]=[r,t._events[e]]:t.on(e,r)}(t,"error",g),t.once("close",m),t.once("finish",b),t.emit("pipe",r),o.flowing||(d("pipe resume"),r.resume()),t},v.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=L(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},v.prototype.on=function(t,e){var r=u.prototype.on.call(this,t,e);if("data"===t)!1!==this._readableState.flowing&&this.resume();else if("readable"===t){var n=this._readableState;n.endEmitted||n.readableListening||(n.readableListening=n.needReadable=!0,n.emittedReadable=!1,n.reading?n.length&&S(this):i.nextTick(O,this))}return r},v.prototype.addListener=v.prototype.on,v.prototype.resume=function(){var t=this._readableState;return t.flowing||(d("resume"),t.flowing=!0,function(t,e){e.resumeScheduled||(e.resumeScheduled=!0,i.nextTick(R,t,e))}(this,t)),this},v.prototype.pause=function(){return d("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(d("pause"),this._readableState.flowing=!1,this.emit("pause")),this},v.prototype.wrap=function(t){var e=this,r=this._readableState,n=!1;for(var i in t.on("end",function(){if(d("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){(d("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 o=0;o<m.length;o++)t.on(m[o],this.emit.bind(this,m[o]));return this._read=function(e){d("wrapped _read",e),n&&(n=!1,t.resume())},this},Object.defineProperty(v.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),v._fromList=j},4610(t,e,r){"use strict";t.exports=a;var n=r(5382),i=Object.create(r(5622));function o(t,e){var r=this._transformState;r.transforming=!1;var n=r.writecb;if(!n)return this.emit("error",new Error("write callback called multiple times"));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 a(t){if(!(this instanceof a))return new a(t);n.call(this,t),this._transformState={afterTransform:o.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",s)}function s(){var t=this;"function"==typeof this._flush?this._flush(function(e,r){u(t,e,r)}):u(this,null,null)}function u(t,e,r){if(e)return t.emit("error",e);if(null!=r&&t.push(r),t._writableState.length)throw new Error("Calling transform done when ws.length != 0");if(t._transformState.transforming)throw new Error("Calling transform done when still transforming");return t.push(null)}i.inherits=r(4317),i.inherits(a,n),a.prototype.push=function(t,e){return this._transformState.needTransform=!1,n.prototype.push.call(this,t,e)},a.prototype._transform=function(t,e,r){throw new Error("_transform() is not implemented")},a.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)}},a.prototype._read=function(t){var e=this._transformState;null!==e.writechunk&&e.writecb&&!e.transforming?(e.transforming=!0,this._transform(e.writechunk,e.writeencoding,e.afterTransform)):e.needTransform=!0},a.prototype._destroy=function(t,e){var r=this;n.prototype._destroy.call(this,t,function(t){e(t),r.emit("close")})}},6708(t,e,r){"use strict";var n=r(5606),i=r(3225);function o(t){var e=this;this.next=null,this.entry=null,this.finish=function(){!function(t,e,r){var n=t.entry;t.entry=null;for(;n;){var i=n.callback;e.pendingcb--,i(r),n=n.next}e.corkedRequestsFree.next=t}(e,t)}}t.exports=m;var a,s=!n.browser&&["v0.10","v0.9."].indexOf(n.version.slice(0,5))>-1?setImmediate:i.nextTick;m.WritableState=g;var u=Object.create(r(5622));u.inherits=r(4317);var h={deprecate:r(4643)},f=r(345),l=r(4106).Buffer,c=(void 0!==r.g?r.g:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{}).Uint8Array||function(){};var d,p=r(5896);function y(){}function g(t,e){a=a||r(5382),t=t||{};var n=e instanceof a;this.objectMode=!!t.objectMode,n&&(this.objectMode=this.objectMode||!!t.writableObjectMode);var u=t.highWaterMark,h=t.writableHighWaterMark,f=this.objectMode?16:16384;this.highWaterMark=u||0===u?u:n&&(h||0===h)?h:f,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var l=!1===t.decodeStrings;this.decodeStrings=!l,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(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(M,t,e),t._writableState.errorEmitted=!0,t.emit("error",n)):(o(n),t._writableState.errorEmitted=!0,t.emit("error",n),M(t,e))}(t,r,n,e,o);else{var a=w(r);a||r.corked||r.bufferProcessing||!r.bufferedRequest||_(t,r),n?s(v,t,r,a,o):v(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.bufferedRequestCount=0,this.corkedRequestsFree=new o(this)}function m(t){if(a=a||r(5382),!(d.call(m,this)||this instanceof a))return new m(t);this._writableState=new g(t,this),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)),f.call(this)}function b(t,e,r,n,i,o,a){e.writelen=n,e.writecb=a,e.writing=!0,e.sync=!0,r?t._writev(i,e.onwrite):t._write(i,o,e.onwrite),e.sync=!1}function v(t,e,r,n){r||function(t,e){0===e.length&&e.needDrain&&(e.needDrain=!1,t.emit("drain"))}(t,e),e.pendingcb--,n(),M(t,e)}function _(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 s=0,u=!0;r;)i[s]=r,r.isBuf||(u=!1),r=r.next,s+=1;i.allBuffers=u,b(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 h=r.chunk,f=r.encoding,l=r.callback;if(b(t,e,!1,e.objectMode?1:h.length,h,f,l),r=r.next,e.bufferedRequestCount--,e.writing)break}null===r&&(e.lastBufferedRequest=null)}e.bufferedRequest=r,e.bufferProcessing=!1}function w(t){return t.ending&&0===t.length&&null===t.bufferedRequest&&!t.finished&&!t.writing}function E(t,e){t._final(function(r){e.pendingcb--,r&&t.emit("error",r),e.prefinished=!0,t.emit("prefinish"),M(t,e)})}function M(t,e){var r=w(e);return r&&(!function(t,e){e.prefinished||e.finalCalled||("function"==typeof t._final?(e.pendingcb++,e.finalCalled=!0,i.nextTick(E,t,e)):(e.prefinished=!0,t.emit("prefinish")))}(t,e),0===e.pendingcb&&(e.finished=!0,t.emit("finish"))),r}u.inherits(m,f),g.prototype.getBuffer=function(){for(var t=this.bufferedRequest,e=[];t;)e.push(t),t=t.next;return e},function(){try{Object.defineProperty(g.prototype,"buffer",{get:h.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]?(d=Function.prototype[Symbol.hasInstance],Object.defineProperty(m,Symbol.hasInstance,{value:function(t){return!!d.call(this,t)||this===m&&(t&&t._writableState instanceof g)}})):d=function(t){return t instanceof this},m.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},m.prototype.write=function(t,e,r){var n,o=this._writableState,a=!1,s=!o.objectMode&&(n=t,l.isBuffer(n)||n instanceof c);return s&&!l.isBuffer(t)&&(t=function(t){return l.from(t)}(t)),"function"==typeof e&&(r=e,e=null),s?e="buffer":e||(e=o.defaultEncoding),"function"!=typeof r&&(r=y),o.ended?function(t,e){var r=new Error("write after end");t.emit("error",r),i.nextTick(e,r)}(this,r):(s||function(t,e,r,n){var o=!0,a=!1;return null===r?a=new TypeError("May not write null values to stream"):"string"==typeof r||void 0===r||e.objectMode||(a=new TypeError("Invalid non-string/buffer chunk")),a&&(t.emit("error",a),i.nextTick(n,a),o=!1),o}(this,o,t,r))&&(o.pendingcb++,a=function(t,e,r,n,i,o){if(!r){var a=function(t,e,r){t.objectMode||!1===t.decodeStrings||"string"!=typeof e||(e=l.from(e,r));return e}(e,n,i);n!==a&&(r=!0,i="buffer",n=a)}var s=e.objectMode?1:n.length;e.length+=s;var u=e.length<e.highWaterMark;u||(e.needDrain=!0);if(e.writing||e.corked){var h=e.lastBufferedRequest;e.lastBufferedRequest={chunk:n,encoding:i,isBuf:r,callback:o,next:null},h?h.next=e.lastBufferedRequest:e.bufferedRequest=e.lastBufferedRequest,e.bufferedRequestCount+=1}else b(t,e,!1,s,n,i,o);return u}(this,o,s,t,e,r)),a},m.prototype.cork=function(){this._writableState.corked++},m.prototype.uncork=function(){var t=this._writableState;t.corked&&(t.corked--,t.writing||t.corked||t.bufferProcessing||!t.bufferedRequest||_(this,t))},m.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 TypeError("Unknown encoding: "+t);return this._writableState.defaultEncoding=t,this},Object.defineProperty(m.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),m.prototype._write=function(t,e,r){r(new Error("_write() is not implemented"))},m.prototype._writev=null,m.prototype.end=function(t,e,r){var n=this._writableState;"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,M(t,e),r&&(e.finished?i.nextTick(r):t.once("finish",r));e.ended=!0,t.writable=!1}(this,n,r)},Object.defineProperty(m.prototype,"destroyed",{get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(t){this._writableState&&(this._writableState.destroyed=t)}}),m.prototype.destroy=p.destroy,m.prototype._undestroy=p.undestroy,m.prototype._destroy=function(t,e){this.end(),e(t)}},3222(t,e,r){"use strict";var n=r(4106).Buffer,i=r(5340);function o(t,e,r){t.copy(e,r)}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}return t.prototype.push=function(t){var e={data:t,next:null};this.length>0?this.tail.next=e:this.head=e,this.tail=e,++this.length},t.prototype.unshift=function(t){var e={data:t,next:this.head};0===this.length&&(this.tail=e),this.head=e,++this.length},t.prototype.shift=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}},t.prototype.clear=function(){this.head=this.tail=null,this.length=0},t.prototype.join=function(t){if(0===this.length)return"";for(var e=this.head,r=""+e.data;e=e.next;)r+=t+e.data;return r},t.prototype.concat=function(t){if(0===this.length)return n.alloc(0);for(var e=n.allocUnsafe(t>>>0),r=this.head,i=0;r;)o(r.data,e,i),i+=r.data.length,r=r.next;return e},t}(),i&&i.inspect&&i.inspect.custom&&(t.exports.prototype[i.inspect.custom]=function(){var t=i.inspect({length:this.length});return this.constructor.name+" "+t})},5896(t,e,r){"use strict";var n=r(3225);function i(t,e){t.emit("error",e)}t.exports={destroy:function(t,e){var r=this,o=this._readableState&&this._readableState.destroyed,a=this._writableState&&this._writableState.destroyed;return o||a?(e?e(t):t&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,n.nextTick(i,this,t)):n.nextTick(i,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||(r._writableState.errorEmitted=!0,n.nextTick(i,r,t)):n.nextTick(i,r,t):e&&e(t)}),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)}}},345(t,e,r){t.exports=r(7007).EventEmitter},7225(t){var e={}.toString;t.exports=Array.isArray||function(t){return"[object Array]"==e.call(t)}},4106(t,e,r){var n=r(8287),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),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)}},8399(t,e,r){(e=t.exports=r(5412)).Stream=e,e.Readable=e,e.Writable=r(6708),e.Duplex=r(5382),e.Transform=r(4610),e.PassThrough=r(3600)},6011(t,e,r){"use strict";var n=r(8287).Buffer,i=r(4744),o=r(1147),a=new Array(16),s=[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],u=[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],h=[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],f=[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],c=[1352829926,1548603684,1836072691,2053994217,0];function d(t,e){return t<<e|t>>>32-e}function p(t,e,r,n,i,o,a,s){return d(t+(e^r^n)+o+a|0,s)+i|0}function y(t,e,r,n,i,o,a,s){return d(t+(e&r|~e&n)+o+a|0,s)+i|0}function g(t,e,r,n,i,o,a,s){return d(t+((e|~r)^n)+o+a|0,s)+i|0}function m(t,e,r,n,i,o,a,s){return d(t+(e&n|r&~n)+o+a|0,s)+i|0}function b(t,e,r,n,i,o,a,s){return d(t+(e^(r|~n))+o+a|0,s)+i|0}function v(){o.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520}i(v,o),v.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,v=0|this._e,_=0|this._a,w=0|this._b,E=0|this._c,M=0|this._d,S=0|this._e,k=0;k<80;k+=1){var A,x;k<16?(A=p(r,n,i,o,v,t[s[k]],l[0],h[k]),x=b(_,w,E,M,S,t[u[k]],c[0],f[k])):k<32?(A=y(r,n,i,o,v,t[s[k]],l[1],h[k]),x=m(_,w,E,M,S,t[u[k]],c[1],f[k])):k<48?(A=g(r,n,i,o,v,t[s[k]],l[2],h[k]),x=g(_,w,E,M,S,t[u[k]],c[2],f[k])):k<64?(A=m(r,n,i,o,v,t[s[k]],l[3],h[k]),x=y(_,w,E,M,S,t[u[k]],c[3],f[k])):(A=b(r,n,i,o,v,t[s[k]],l[4],h[k]),x=p(_,w,E,M,S,t[u[k]],c[4],f[k])),r=v,v=o,o=d(i,10),i=n,n=A,_=S,S=M,M=d(E,10),E=w,w=x}var O=this._b+i+M|0;this._b=this._c+o+S|0,this._c=this._d+v+_|0,this._d=this._e+r+w|0,this._e=this._a+n+E|0,this._a=O},v.prototype._digest=function(){this._block[this._blockOffset]=128,this._blockOffset+=1,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=v},1147(t,e,r){"use strict";var n=r(2861).Buffer,i=r(8537),o=r(8399).Transform;function a(t){o.call(this),this._block=n.allocUnsafe(t),this._blockSize=t,this._blockOffset=0,this._length=[0,0,0,0],this._finalized=!1}r(4744)(a,o),a.prototype._transform=function(t,e,r){var n=null;try{this.update(t,e)}catch(t){n=t}r(n)},a.prototype._flush=function(t){var e=null;try{this.push(this.digest())}catch(t){e=t}t(e)},a.prototype.update=function(t,e){if(this._finalized)throw new Error("Digest already called");for(var r=i(t,e),n=this._block,o=0;this._blockOffset+r.length-o>=this._blockSize;){for(var a=this._blockOffset;a<this._blockSize;)n[a]=r[o],a+=1,o+=1;this._update(),this._blockOffset=0}for(;o<r.length;)n[this._blockOffset]=r[o],this._blockOffset+=1,o+=1;for(var s=0,u=8*r.length;u>0;++s)this._length[s]+=u,(u=this._length[s]/4294967296|0)>0&&(this._length[s]-=4294967296*u);return this},a.prototype._update=function(){throw new Error("_update is not implemented")},a.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},a.prototype._digest=function(){throw new Error("_digest is not implemented")},t.exports=a},8537(t,e,r){"use strict";var n=r(2861).Buffer,i=r(5377),o="undefined"!=typeof Uint8Array,a=o&&"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView;t.exports=function(t,e){if("string"==typeof t||n.isBuffer(t)||o&&t instanceof Uint8Array||a&&a(t))return i(t,e);throw new TypeError('The "data" argument must be a string, a Buffer, a Uint8Array, or a DataView')}},4744(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}}},2861(t,e,r){
16
- /*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */
17
- var n=r(8287),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)}},9721(t,e,r){"use strict";var n=r(6556),i=r(4035),o=n("RegExp.prototype.exec"),a=r(9675);t.exports=function(t){if(!i(t))throw new a("`regex` must be a RegExp");return function(e){return null!==o(t,e)}}},6897(t,e,r){"use strict";var n=r(453),i=r(41),o=r(592)(),a=r(5795),s=r(9675),u=n("%Math.floor%");t.exports=function(t,e){if("function"!=typeof t)throw new s("`fn` is not a function");if("number"!=typeof e||e<0||e>4294967295||u(e)!==e)throw new s("`length` must be a positive 32-bit integer");var r=arguments.length>2&&!!arguments[2],n=!0,h=!0;if("length"in t&&a){var f=a(t,"length");f&&!f.configurable&&(n=!1),f&&!f.writable&&(h=!1)}return(n||h||!r)&&(o?i(t,"length",e,!0,!0):i(t,"length",e)),t}},392(t,e,r){"use strict";var n=r(2861).Buffer,i=r(5377);function o(t,e){this._block=n.alloc(t),this._finalSize=e,this._blockSize=t,this._len=0}o.prototype.update=function(t,e){t=i(t,e||"utf8");for(var r=this._block,n=this._blockSize,o=t.length,a=this._len,s=0;s<o;){for(var u=a%n,h=Math.min(o-s,n-u),f=0;f<h;f++)r[u+f]=t[s+f];s+=h,(a+=h)%n===0&&this._update(r)}return this._len+=o,this},o.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},o.prototype._update=function(){throw new Error("_update must be implemented by subclass")},t.exports=o},2802(t,e,r){"use strict";t.exports=function(e){var r=e.toLowerCase(),n=t.exports[r];if(!n)throw new Error(r+" is not supported (we accept pull requests)");return new n},t.exports.sha=r(7816),t.exports.sha1=r(3737),t.exports.sha224=r(6710),t.exports.sha256=r(4107),t.exports.sha384=r(2827),t.exports.sha512=r(2890)},231(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}}},7816(t,e,r){"use strict";var n=r(231),i=r(392),o=r(2861).Buffer,a=[1518500249,1859775393,-1894007588,-899497514],s=new Array(80);function u(){this.init(),this._w=s,i.call(this,64,56)}function h(t){return t<<5|t>>>27}function f(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(u,i),u.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},u.prototype._update=function(t){for(var e=this._w,r=0|this._a,n=0|this._b,i=0|this._c,o=0|this._d,s=0|this._e,u=0;u<16;++u)e[u]=t.readInt32BE(4*u);for(;u<80;++u)e[u]=e[u-3]^e[u-8]^e[u-14]^e[u-16];for(var c=0;c<80;++c){var d=~~(c/20),p=h(r)+l(d,n,i,o)+s+e[c]+a[d]|0;s=o,o=i,i=f(n),n=r,r=p}this._a=r+this._a|0,this._b=n+this._b|0,this._c=i+this._c|0,this._d=o+this._d|0,this._e=s+this._e|0},u.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=u},3737(t,e,r){"use strict";var n=r(231),i=r(392),o=r(2861).Buffer,a=[1518500249,1859775393,-1894007588,-899497514],s=new Array(80);function u(){this.init(),this._w=s,i.call(this,64,56)}function h(t){return t<<1|t>>>31}function f(t){return t<<5|t>>>27}function l(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(u,i),u.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},u.prototype._update=function(t){for(var e=this._w,r=0|this._a,n=0|this._b,i=0|this._c,o=0|this._d,s=0|this._e,u=0;u<16;++u)e[u]=t.readInt32BE(4*u);for(;u<80;++u)e[u]=h(e[u-3]^e[u-8]^e[u-14]^e[u-16]);for(var d=0;d<80;++d){var p=~~(d/20),y=f(r)+c(p,n,i,o)+s+e[d]+a[p]|0;s=o,o=i,i=l(n),n=r,r=y}this._a=r+this._a|0,this._b=n+this._b|0,this._c=i+this._c|0,this._d=o+this._d|0,this._e=s+this._e|0},u.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=u},6710(t,e,r){"use strict";var n=r(231),i=r(4107),o=r(392),a=r(2861).Buffer,s=new Array(64);function u(){this.init(),this._w=s,o.call(this,64,56)}n(u,i),u.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},u.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=u},4107(t,e,r){"use strict";var n=r(231),i=r(392),o=r(2861).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],s=new Array(64);function u(){this.init(),this._w=s,i.call(this,64,56)}function h(t,e,r){return r^t&(e^r)}function f(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 c(t){return(t>>>6|t<<26)^(t>>>11|t<<21)^(t>>>25|t<<7)}function d(t){return(t>>>7|t<<25)^(t>>>18|t<<14)^t>>>3}function p(t){return(t>>>17|t<<15)^(t>>>19|t<<13)^t>>>10}n(u,i),u.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},u.prototype._update=function(t){for(var e=this._w,r=0|this._a,n=0|this._b,i=0|this._c,o=0|this._d,s=0|this._e,u=0|this._f,y=0|this._g,g=0|this._h,m=0;m<16;++m)e[m]=t.readInt32BE(4*m);for(;m<64;++m)e[m]=p(e[m-2])+e[m-7]+d(e[m-15])+e[m-16]|0;for(var b=0;b<64;++b){var v=g+c(s)+h(s,u,y)+a[b]+e[b]|0,_=l(r)+f(r,n,i)|0;g=y,y=u,u=s,s=o+v|0,o=i,i=n,n=r,r=v+_|0}this._a=r+this._a|0,this._b=n+this._b|0,this._c=i+this._c|0,this._d=o+this._d|0,this._e=s+this._e|0,this._f=u+this._f|0,this._g=y+this._g|0,this._h=g+this._h|0},u.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=u},2827(t,e,r){"use strict";var n=r(231),i=r(2890),o=r(392),a=r(2861).Buffer,s=new Array(160);function u(){this.init(),this._w=s,o.call(this,128,112)}n(u,i),u.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},u.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=u},2890(t,e,r){"use strict";var n=r(231),i=r(392),o=r(2861).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],s=new Array(160);function u(){this.init(),this._w=s,i.call(this,128,112)}function h(t,e,r){return r^t&(e^r)}function f(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 c(t,e){return(t>>>14|e<<18)^(t>>>18|e<<14)^(e>>>9|t<<23)}function d(t,e){return(t>>>1|e<<31)^(t>>>8|e<<24)^t>>>7}function p(t,e){return(t>>>1|e<<31)^(t>>>8|e<<24)^(t>>>7|e<<25)}function y(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 m(t,e){return t>>>0<e>>>0?1:0}n(u,i),u.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},u.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,s=0|this._eh,u=0|this._fh,b=0|this._gh,v=0|this._hh,_=0|this._al,w=0|this._bl,E=0|this._cl,M=0|this._dl,S=0|this._el,k=0|this._fl,A=0|this._gl,x=0|this._hl,O=0;O<32;O+=2)e[O]=t.readInt32BE(4*O),e[O+1]=t.readInt32BE(4*O+4);for(;O<160;O+=2){var R=e[O-30],B=e[O-30+1],j=d(R,B),I=p(B,R),T=y(R=e[O-4],B=e[O-4+1]),L=g(B,R),P=e[O-14],U=e[O-14+1],N=e[O-32],D=e[O-32+1],C=I+U|0,F=j+P+m(C,I)|0;F=(F=F+T+m(C=C+L|0,L)|0)+N+m(C=C+D|0,D)|0,e[O]=F,e[O+1]=C}for(var z=0;z<160;z+=2){F=e[z],C=e[z+1];var q=f(r,n,i),Z=f(_,w,E),W=l(r,_),K=l(_,r),V=c(s,S),H=c(S,s),G=a[z],$=a[z+1],J=h(s,u,b),Y=h(S,k,A),X=x+H|0,Q=v+V+m(X,x)|0;Q=(Q=(Q=Q+J+m(X=X+Y|0,Y)|0)+G+m(X=X+$|0,$)|0)+F+m(X=X+C|0,C)|0;var tt=K+Z|0,et=W+q+m(tt,K)|0;v=b,x=A,b=u,A=k,u=s,k=S,s=o+Q+m(S=M+X|0,M)|0,o=i,M=E,i=n,E=w,n=r,w=_,r=Q+et+m(_=X+tt|0,X)|0}this._al=this._al+_|0,this._bl=this._bl+w|0,this._cl=this._cl+E|0,this._dl=this._dl+M|0,this._el=this._el+S|0,this._fl=this._fl+k|0,this._gl=this._gl+A|0,this._hl=this._hl+x|0,this._ah=this._ah+r+m(this._al,_)|0,this._bh=this._bh+n+m(this._bl,w)|0,this._ch=this._ch+i+m(this._cl,E)|0,this._dh=this._dh+o+m(this._dl,M)|0,this._eh=this._eh+s+m(this._el,S)|0,this._fh=this._fh+u+m(this._fl,k)|0,this._gh=this._gh+b+m(this._gl,A)|0,this._hh=this._hh+v+m(this._hl,x)|0},u.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=u},8310(t,e,r){t.exports=i;var n=r(7007).EventEmitter;function i(){n.call(this)}r(1939)(i,n),i.Readable=r(6891),i.Writable=r(1999),i.Duplex=r(8101),i.Transform=r(9083),i.PassThrough=r(3681),i.finished=r(4257),i.pipeline=r(5267),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",s),r.on("close",u));var a=!1;function s(){a||(a=!0,t.end())}function u(){a||(a=!0,"function"==typeof t.destroy&&t.destroy())}function h(t){if(f(),0===n.listenerCount(this,"error"))throw t}function f(){r.removeListener("data",i),t.removeListener("drain",o),r.removeListener("end",s),r.removeListener("close",u),r.removeListener("error",h),t.removeListener("error",h),r.removeListener("end",f),r.removeListener("close",f),t.removeListener("close",f)}return r.on("error",h),t.on("error",h),r.on("end",f),r.on("close",f),t.on("close",f),t.emit("pipe",r),t}},1939(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}}},2463(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,s;if("string"==typeof e&&(o="not ",e.substr(!a||a<0?0:+a,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"))s="The ".concat(t," ").concat(i," ").concat(n(e,"type"));else{var u=function(t,e,r){return"number"!=typeof r&&(r=0),!(r+e.length>t.length)&&-1!==t.indexOf(e,r)}(t,".")?"property":"argument";s='The "'.concat(t,'" ').concat(u," ").concat(i," ").concat(n(e,"type"))}return s+=". 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.F=e},8101(t,e,r){"use strict";var n=r(5606),i=Object.keys||function(t){var e=[];for(var r in t)e.push(r);return e};t.exports=f;var o=r(6891),a=r(1999);r(1939)(f,o);for(var s=i(a.prototype),u=0;u<s.length;u++){var h=s[u];f.prototype[h]||(f.prototype[h]=a.prototype[h])}function f(t){if(!(this instanceof f))return new f(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(c,this)}function c(t){t.end()}Object.defineProperty(f.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(f.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(f.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(f.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)}})},3681(t,e,r){"use strict";t.exports=i;var n=r(9083);function i(t){if(!(this instanceof i))return new i(t);n.call(this,t)}r(1939)(i,n),i.prototype._transform=function(t,e,r){r(null,t)}},6891(t,e,r){"use strict";var n,i=r(5606);t.exports=k,k.ReadableState=S;r(7007).EventEmitter;var o=function(t,e){return t.listeners(e).length},a=r(1396),s=r(8287).Buffer,u=(void 0!==r.g?r.g:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{}).Uint8Array||function(){};var h,f=r(7199);h=f&&f.debuglog?f.debuglog("stream"):function(){};var l,c,d,p=r(1766),y=r(4347),g=r(6644).getHighWaterMark,m=r(2463).F,b=m.ERR_INVALID_ARG_TYPE,v=m.ERR_STREAM_PUSH_AFTER_EOF,_=m.ERR_METHOD_NOT_IMPLEMENTED,w=m.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;r(1939)(k,a);var E=y.errorOrDestroy,M=["error","close","destroy","pause","resume"];function S(t,e,i){n=n||r(8101),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 p,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(3141).I),this.decoder=new l(t.encoding),this.encoding=t.encoding)}function k(t){if(n=n||r(8101),!(this instanceof k))return new k(t);var e=this instanceof n;this._readableState=new S(t,this,e),this.readable=!0,t&&("function"==typeof t.read&&(this._read=t.read),"function"==typeof t.destroy&&(this._destroy=t.destroy)),a.call(this)}function A(t,e,r,n,i){h("readableAddChunk",e);var o,a=t._readableState;if(null===e)a.reading=!1,function(t,e){if(h("onEofChunk"),e.ended)return;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?B(t):(e.needReadable=!1,e.emittedReadable||(e.emittedReadable=!0,j(t)))}(t,a);else if(i||(o=function(t,e){var r;n=e,s.isBuffer(n)||n instanceof u||"string"==typeof e||void 0===e||t.objectMode||(r=new b("chunk",["string","Buffer","Uint8Array"],e));var n;return r}(a,e)),o)E(t,o);else if(a.objectMode||e&&e.length>0)if("string"==typeof e||a.objectMode||Object.getPrototypeOf(e)===s.prototype||(e=function(t){return s.from(t)}(e)),n)a.endEmitted?E(t,new w):x(t,a,e,!0);else if(a.ended)E(t,new v);else{if(a.destroyed)return!1;a.reading=!1,a.decoder&&!r?(e=a.decoder.write(e),a.objectMode||0!==e.length?x(t,a,e,!1):I(t,a)):x(t,a,e,!1)}else n||(a.reading=!1,I(t,a));return!a.ended&&(a.length<a.highWaterMark||0===a.length)}function x(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&&B(t)),I(t,e)}Object.defineProperty(k.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(t){this._readableState&&(this._readableState.destroyed=t)}}),k.prototype.destroy=y.destroy,k.prototype._undestroy=y.undestroy,k.prototype._destroy=function(t,e){e(t)},k.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),A(this,t,e,!1,r)},k.prototype.unshift=function(t){return A(this,t,null,!0,!1)},k.prototype.isPaused=function(){return!1===this._readableState.flowing},k.prototype.setEncoding=function(t){l||(l=r(3141).I);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 O=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>=O?t=O:(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 B(t){var e=t._readableState;h("emitReadable",e.needReadable,e.emittedReadable),e.needReadable=!1,e.emittedReadable||(h("emitReadable",e.flowing),e.emittedReadable=!0,i.nextTick(j,t))}function j(t){var e=t._readableState;h("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,N(t)}function I(t,e){e.readingMore||(e.readingMore=!0,i.nextTick(T,t,e))}function T(t,e){for(;!e.reading&&!e.ended&&(e.length<e.highWaterMark||e.flowing&&0===e.length);){var r=e.length;if(h("maybeReadMore read 0"),t.read(0),r===e.length)break}e.readingMore=!1}function L(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 P(t){h("readable nexttick read 0"),t.read(0)}function U(t,e){h("resume",e.reading),e.reading||t.read(0),e.resumeScheduled=!1,t.emit("resume"),N(t),e.flowing&&!e.reading&&t.read(0)}function N(t){var e=t._readableState;for(h("flow",e.flowing);e.flowing&&null!==t.read(););}function D(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 C(t){var e=t._readableState;h("endReadable",e.endEmitted),e.endEmitted||(e.ended=!0,i.nextTick(F,e,t))}function F(t,e){if(h("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 z(t,e){for(var r=0,n=t.length;r<n;r++)if(t[r]===e)return r;return-1}k.prototype.read=function(t){h("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 h("read: emitReadable",e.length,e.ended),0===e.length&&e.ended?C(this):B(this),null;if(0===(t=R(t,e))&&e.ended)return 0===e.length&&C(this),null;var n,i=e.needReadable;return h("need readable",i),(0===e.length||e.length-t<e.highWaterMark)&&h("length less than watermark",i=!0),e.ended||e.reading?h("reading or ended",i=!1):i&&(h("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?D(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&&C(this)),null!==n&&this.emit("data",n),n},k.prototype._read=function(t){E(this,new _("_read()"))},k.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,h("pipe count=%d opts=%j",n.pipesCount,e);var a=(!e||!1!==e.end)&&t!==i.stdout&&t!==i.stderr?u:g;function s(e,i){h("onunpipe"),e===r&&i&&!1===i.hasUnpiped&&(i.hasUnpiped=!0,h("cleanup"),t.removeListener("close",p),t.removeListener("finish",y),t.removeListener("drain",f),t.removeListener("error",d),t.removeListener("unpipe",s),r.removeListener("end",u),r.removeListener("end",g),r.removeListener("data",c),l=!0,!n.awaitDrain||t._writableState&&!t._writableState.needDrain||f())}function u(){h("onend"),t.end()}n.endEmitted?i.nextTick(a):r.once("end",a),t.on("unpipe",s);var f=function(t){return function(){var e=t._readableState;h("pipeOnDrain",e.awaitDrain),e.awaitDrain&&e.awaitDrain--,0===e.awaitDrain&&o(t,"data")&&(e.flowing=!0,N(t))}}(r);t.on("drain",f);var l=!1;function c(e){h("ondata");var i=t.write(e);h("dest.write",i),!1===i&&((1===n.pipesCount&&n.pipes===t||n.pipesCount>1&&-1!==z(n.pipes,t))&&!l&&(h("false write response, pause",n.awaitDrain),n.awaitDrain++),r.pause())}function d(e){h("onerror",e),g(),t.removeListener("error",d),0===o(t,"error")&&E(t,e)}function p(){t.removeListener("finish",y),g()}function y(){h("onfinish"),t.removeListener("close",p),g()}function g(){h("unpipe"),r.unpipe(t)}return r.on("data",c),function(t,e,r){if("function"==typeof t.prependListener)return t.prependListener(e,r);t._events&&t._events[e]?Array.isArray(t._events[e])?t._events[e].unshift(r):t._events[e]=[r,t._events[e]]:t.on(e,r)}(t,"error",d),t.once("close",p),t.once("finish",y),t.emit("pipe",r),n.flowing||(h("pipe resume"),r.resume()),t},k.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=z(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},k.prototype.on=function(t,e){var r=a.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,h("on readable",n.length,n.reading),n.length?B(this):n.reading||i.nextTick(P,this))),r},k.prototype.addListener=k.prototype.on,k.prototype.removeListener=function(t,e){var r=a.prototype.removeListener.call(this,t,e);return"readable"===t&&i.nextTick(L,this),r},k.prototype.removeAllListeners=function(t){var e=a.prototype.removeAllListeners.apply(this,arguments);return"readable"!==t&&void 0!==t||i.nextTick(L,this),e},k.prototype.resume=function(){var t=this._readableState;return t.flowing||(h("resume"),t.flowing=!t.readableListening,function(t,e){e.resumeScheduled||(e.resumeScheduled=!0,i.nextTick(U,t,e))}(this,t)),t.paused=!1,this},k.prototype.pause=function(){return h("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(h("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},k.prototype.wrap=function(t){var e=this,r=this._readableState,n=!1;for(var i in t.on("end",function(){if(h("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){(h("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 o=0;o<M.length;o++)t.on(M[o],this.emit.bind(this,M[o]));return this._read=function(e){h("wrapped _read",e),n&&(n=!1,t.resume())},this},"function"==typeof Symbol&&(k.prototype[Symbol.asyncIterator]=function(){return void 0===c&&(c=r(5034)),c(this)}),Object.defineProperty(k.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(k.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(k.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(t){this._readableState&&(this._readableState.flowing=t)}}),k._fromList=D,Object.defineProperty(k.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}}),"function"==typeof Symbol&&(k.from=function(t,e){return void 0===d&&(d=r(968)),d(k,t,e)})},9083(t,e,r){"use strict";t.exports=f;var n=r(2463).F,i=n.ERR_METHOD_NOT_IMPLEMENTED,o=n.ERR_MULTIPLE_CALLBACK,a=n.ERR_TRANSFORM_ALREADY_TRANSFORMING,s=n.ERR_TRANSFORM_WITH_LENGTH_0,u=r(8101);function h(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 f(t){if(!(this instanceof f))return new f(t);u.call(this,t),this._transformState={afterTransform:h.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?c(this,null,null):this._flush(function(e,r){c(t,e,r)})}function c(t,e,r){if(e)return t.emit("error",e);if(null!=r&&t.push(r),t._writableState.length)throw new s;if(t._transformState.transforming)throw new a;return t.push(null)}r(1939)(f,u),f.prototype.push=function(t,e){return this._transformState.needTransform=!1,u.prototype.push.call(this,t,e)},f.prototype._transform=function(t,e,r){r(new i("_transform()"))},f.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)}},f.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))},f.prototype._destroy=function(t,e){u.prototype._destroy.call(this,t,function(t){e(t)})}},1999(t,e,r){"use strict";var n,i=r(5606);function o(t){var e=this;this.next=null,this.entry=null,this.finish=function(){!function(t,e,r){var n=t.entry;t.entry=null;for(;n;){var i=n.callback;e.pendingcb--,i(r),n=n.next}e.corkedRequestsFree.next=t}(e,t)}}t.exports=k,k.WritableState=S;var a={deprecate:r(4643)},s=r(1396),u=r(8287).Buffer,h=(void 0!==r.g?r.g:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{}).Uint8Array||function(){};var f,l=r(4347),c=r(6644).getHighWaterMark,d=r(2463).F,p=d.ERR_INVALID_ARG_TYPE,y=d.ERR_METHOD_NOT_IMPLEMENTED,g=d.ERR_MULTIPLE_CALLBACK,m=d.ERR_STREAM_CANNOT_PIPE,b=d.ERR_STREAM_DESTROYED,v=d.ERR_STREAM_NULL_VALUES,_=d.ERR_STREAM_WRITE_AFTER_END,w=d.ERR_UNKNOWN_ENCODING,E=l.errorOrDestroy;function M(){}function S(t,e,a){n=n||r(8101),t=t||{},"boolean"!=typeof a&&(a=e instanceof n),this.objectMode=!!t.objectMode,a&&(this.objectMode=this.objectMode||!!t.writableObjectMode),this.highWaterMark=c(this,t,"writableHighWaterMark",a),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var s=!1===t.decodeStrings;this.decodeStrings=!s,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||O(t,r),n?i.nextTick(x,t,r,a,o):x(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 k(t){var e=this instanceof(n=n||r(8101));if(!e&&!f.call(k,this))return new k(t);this._writableState=new S(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 A(t,e,r,n,i,o,a){e.writelen=n,e.writecb=a,e.writing=!0,e.sync=!0,e.destroyed?e.onwrite(new b("write")):r?t._writev(i,e.onwrite):t._write(i,o,e.onwrite),e.sync=!1}function x(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 O(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 s=0,u=!0;r;)i[s]=r,r.isBuf||(u=!1),r=r.next,s+=1;i.allBuffers=u,A(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 h=r.chunk,f=r.encoding,l=r.callback;if(A(t,e,!1,e.objectMode?1:h.length,h,f,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 B(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(B,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(1939)(k,s),S.prototype.getBuffer=function(){for(var t=this.bufferedRequest,e=[];t;)e.push(t),t=t.next;return e},function(){try{Object.defineProperty(S.prototype,"buffer",{get:a.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]?(f=Function.prototype[Symbol.hasInstance],Object.defineProperty(k,Symbol.hasInstance,{value:function(t){return!!f.call(this,t)||this===k&&(t&&t._writableState instanceof S)}})):f=function(t){return t instanceof this},k.prototype.pipe=function(){E(this,new m)},k.prototype.write=function(t,e,r){var n,o=this._writableState,a=!1,s=!o.objectMode&&(n=t,u.isBuffer(n)||n instanceof h);return s&&!u.isBuffer(t)&&(t=function(t){return u.from(t)}(t)),"function"==typeof e&&(r=e,e=null),s?e="buffer":e||(e=o.defaultEncoding),"function"!=typeof r&&(r=M),o.ending?function(t,e){var r=new _;E(t,r),i.nextTick(e,r)}(this,r):(s||function(t,e,r,n){var o;return null===r?o=new v:"string"==typeof r||e.objectMode||(o=new p("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){t.objectMode||!1===t.decodeStrings||"string"!=typeof e||(e=u.from(e,r));return e}(e,n,i);n!==a&&(r=!0,i="buffer",n=a)}var s=e.objectMode?1:n.length;e.length+=s;var h=e.length<e.highWaterMark;h||(e.needDrain=!0);if(e.writing||e.corked){var f=e.lastBufferedRequest;e.lastBufferedRequest={chunk:n,encoding:i,isBuf:r,callback:o,next:null},f?f.next=e.lastBufferedRequest:e.bufferedRequest=e.lastBufferedRequest,e.bufferedRequestCount+=1}else A(t,e,!1,s,n,i,o);return h}(this,o,s,t,e,r)),a},k.prototype.cork=function(){this._writableState.corked++},k.prototype.uncork=function(){var t=this._writableState;t.corked&&(t.corked--,t.writing||t.corked||t.bufferProcessing||!t.bufferedRequest||O(this,t))},k.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(k.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(k.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),k.prototype._write=function(t,e,r){r(new y("_write()"))},k.prototype._writev=null,k.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(k.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(k.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(t){this._writableState&&(this._writableState.destroyed=t)}}),k.prototype.destroy=l.destroy,k.prototype._undestroy=l.undestroy,k.prototype._destroy=function(t,e){e(t)}},5034(t,e,r){"use strict";var n,i=r(5606);function o(t,e,r){return(e=function(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var a=r(4257),s=Symbol("lastResolve"),u=Symbol("lastReject"),h=Symbol("error"),f=Symbol("ended"),l=Symbol("lastPromise"),c=Symbol("handlePromise"),d=Symbol("stream");function p(t,e){return{value:t,done:e}}function y(t){var e=t[s];if(null!==e){var r=t[d].read();null!==r&&(t[l]=null,t[s]=null,t[u]=null,e(p(r,!1)))}}function g(t){i.nextTick(y,t)}var m=Object.getPrototypeOf(function(){}),b=Object.setPrototypeOf((o(n={get stream(){return this[d]},next:function(){var t=this,e=this[h];if(null!==e)return Promise.reject(e);if(this[f])return Promise.resolve(p(void 0,!0));if(this[d].destroyed)return new Promise(function(e,r){i.nextTick(function(){t[h]?r(t[h]):e(p(void 0,!0))})});var r,n=this[l];if(n)r=new Promise(function(t,e){return function(r,n){t.then(function(){e[f]?r(p(void 0,!0)):e[c](r,n)},n)}}(n,this));else{var o=this[d].read();if(null!==o)return Promise.resolve(p(o,!1));r=new Promise(this[c])}return this[l]=r,r}},Symbol.asyncIterator,function(){return this}),o(n,"return",function(){var t=this;return new Promise(function(e,r){t[d].destroy(null,function(t){t?r(t):e(p(void 0,!0))})})}),n),m);t.exports=function(t){var e,r=Object.create(b,(o(e={},d,{value:t,writable:!0}),o(e,s,{value:null,writable:!0}),o(e,u,{value:null,writable:!0}),o(e,h,{value:null,writable:!0}),o(e,f,{value:t._readableState.endEmitted,writable:!0}),o(e,c,{value:function(t,e){var n=r[d].read();n?(r[l]=null,r[s]=null,r[u]=null,t(p(n,!1))):(r[s]=t,r[u]=e)},writable:!0}),e));return r[l]=null,a(t,function(t){if(t&&"ERR_STREAM_PREMATURE_CLOSE"!==t.code){var e=r[u];return null!==e&&(r[l]=null,r[s]=null,r[u]=null,e(t)),void(r[h]=t)}var n=r[s];null!==n&&(r[l]=null,r[s]=null,r[u]=null,n(p(void 0,!0))),r[f]=!0}),t.on("readable",g.bind(null,r)),r}},1766(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){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?n(Object(r),!0).forEach(function(e){o(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}function o(t,e,r){return(e=s(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function a(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,s(n.key),n)}}function s(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:String(e)}var u=r(8287).Buffer,h=r(3779).inspect,f=h&&h.custom||"inspect";function l(t,e,r){u.prototype.copy.call(t,e,r)}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,n;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 u.alloc(0);for(var e=u.allocUnsafe(t>>>0),r=this.head,n=0;r;)l(r.data,e,n),n+=r.data.length,r=r.next;return e}},{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=u.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:f,value:function(t,e){return h(this,i(i({},e),{},{depth:0,customInspect:!1}))}}])&&a(e.prototype,r),n&&a(e,n),Object.defineProperty(e,"prototype",{writable:!1}),t}()},4347(t,e,r){"use strict";var n=r(5606);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,s=this._readableState&&this._readableState.destroyed,u=this._writableState&&this._writableState.destroyed;return s||u?(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)}}},4257(t,e,r){"use strict";var n=r(2463).F.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,s=r.writable||!1!==r.writable&&e.writable,u=function(){e.writable||f()},h=e._writableState&&e._writableState.finished,f=function(){s=!1,h=!0,a||o.call(e)},l=e._readableState&&e._readableState.endEmitted,c=function(){a=!1,l=!0,s||o.call(e)},d=function(t){o.call(e,t)},p=function(){var t;return a&&!l?(e._readableState&&e._readableState.ended||(t=new n),o.call(e,t)):s&&!h?(e._writableState&&e._writableState.ended||(t=new n),o.call(e,t)):void 0},y=function(){e.req.on("finish",f)};return!function(t){return t.setHeader&&"function"==typeof t.abort}(e)?s&&!e._writableState&&(e.on("end",u),e.on("close",u)):(e.on("complete",f),e.on("abort",p),e.req?y():e.on("request",y)),e.on("end",c),e.on("finish",f),!1!==r.error&&e.on("error",d),e.on("close",p),function(){e.removeListener("complete",f),e.removeListener("abort",p),e.removeListener("request",y),e.req&&e.req.removeListener("finish",f),e.removeListener("end",u),e.removeListener("close",u),e.removeListener("finish",f),e.removeListener("end",c),e.removeListener("error",d),e.removeListener("close",p)}}},968(t){t.exports=function(){throw new Error("Readable.from is not available in the browser")}},5267(t,e,r){"use strict";var n;var i=r(2463).F,o=i.ERR_MISSING_ARGS,a=i.ERR_STREAM_DESTROYED;function s(t){if(t)throw t}function u(t){t()}function h(t,e){return t.pipe(e)}t.exports=function(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];var f,l=function(t){return t.length?"function"!=typeof t[t.length-1]?s:t.pop():s}(e);if(Array.isArray(e[0])&&(e=e[0]),e.length<2)throw new o("streams");var c=e.map(function(t,i){var o=i<e.length-1;return function(t,e,i,o){o=function(t){var e=!1;return function(){e||(e=!0,t.apply(void 0,arguments))}}(o);var s=!1;t.on("close",function(){s=!0}),void 0===n&&(n=r(4257)),n(t,{readable:e,writable:i},function(t){if(t)return o(t);s=!0,o()});var u=!1;return function(e){if(!s&&!u)return u=!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"))}}(t,o,i>0,function(t){f||(f=t),t&&c.forEach(u),o||(c.forEach(u),l(f))})});return e.reduce(h)}},6644(t,e,r){"use strict";var n=r(2463).F.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}}},1396(t,e,r){t.exports=r(7007).EventEmitter},3141(t,e,r){"use strict";var n=r(5003).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=u,this.end=h,e=4;break;case"utf8":this.fillLast=s,e=4;break;case"base64":this.text=f,this.end=l,e=3;break;default:return this.write=c,void(this.end=d)}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 s(t){var e=this.lastTotal-this.lastNeed,r=function(t,e){if(128!=(192&e[0]))return t.lastNeed=0,"�";if(t.lastNeed>1&&e.length>1){if(128!=(192&e[1]))return t.lastNeed=1,"�";if(t.lastNeed>2&&e.length>2&&128!=(192&e[2]))return t.lastNeed=2,"�"}}(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 u(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 h(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 f(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 c(t){return t.toString(this.encoding)}function d(t){return t&&t.length?this.write(t):""}e.I=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+"�":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]);if(i>=0)return i>0&&(t.lastNeed=i-1),i;if(--n<r||-2===i)return 0;if(i=a(e[n]),i>=0)return i>0&&(t.lastNeed=i-2),i;if(--n<r||-2===i)return 0;if(i=a(e[n]),i>=0)return i>0&&(2===i?i=0:t.lastNeed=i-3),i;return 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}},5003(t,e,r){var n=r(8287),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),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)}},5377(t,e,r){"use strict";var n=r(2861).Buffer,i=r(2006),o=r(4372),a=ArrayBuffer.isView||function(t){try{return o(t),!0}catch(t){return!1}},s="undefined"!=typeof Uint8Array,u="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof Uint8Array,h=u&&(n.prototype instanceof Uint8Array||n.TYPED_ARRAY_SUPPORT);t.exports=function(t,e){if(n.isBuffer(t))return t.constructor&&!("isBuffer"in t)?n.from(t):t;if("string"==typeof t)return n.from(t,e);if(u&&a(t)){if(0===t.byteLength)return n.alloc(0);if(h){var r=n.from(t.buffer,t.byteOffset,t.byteLength);if(r.byteLength===t.byteLength)return r}var o=t instanceof Uint8Array?t:new Uint8Array(t.buffer,t.byteOffset,t.byteLength),f=n.from(o);if(f.length===t.byteLength)return f}if(s&&t instanceof Uint8Array)return n.from(t);var l=i(t);if(l)for(var c=0;c<t.length;c+=1){var d=t[c];if("number"!=typeof d||d<0||d>255||~~d!==d)throw new RangeError("Array items must be numbers in the range 0-255.")}if(l||n.isBuffer(t)&&t.constructor&&"function"==typeof t.constructor.isBuffer&&t.constructor.isBuffer(t))return n.from(t);throw new TypeError('The "data" argument must be a string, an Array, a Buffer, a Uint8Array, or a DataView.')}},2006(t){var e={}.toString;t.exports=Array.isArray||function(t){return"[object Array]"==e.call(t)}},4372(t,e,r){"use strict";var n=r(9675),i=r(6556)("TypedArray.prototype.buffer",!0),o=r(5680);t.exports=i||function(t){if(!o(t))throw new n("Not a Typed Array");return t.buffer}},4643(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)}}},1135(t){t.exports=function(t){return t&&"object"==typeof t&&"function"==typeof t.copy&&"function"==typeof t.fill&&"function"==typeof t.readUInt8}},9032(t,e,r){"use strict";var n=r(7244),i=r(8184),o=r(5767),a=r(5680);function s(t){return t.call.bind(t)}var u="undefined"!=typeof BigInt,h="undefined"!=typeof Symbol,f=s(Object.prototype.toString),l=s(Number.prototype.valueOf),c=s(String.prototype.valueOf),d=s(Boolean.prototype.valueOf);if(u)var p=s(BigInt.prototype.valueOf);if(h)var y=s(Symbol.prototype.valueOf);function g(t,e){if("object"!=typeof t)return!1;try{return e(t),!0}catch(t){return!1}}function m(t){return"[object Map]"===f(t)}function b(t){return"[object Set]"===f(t)}function v(t){return"[object WeakMap]"===f(t)}function _(t){return"[object WeakSet]"===f(t)}function w(t){return"[object ArrayBuffer]"===f(t)}function E(t){return"undefined"!=typeof ArrayBuffer&&(w.working?w(t):t instanceof ArrayBuffer)}function M(t){return"[object DataView]"===f(t)}function S(t){return"undefined"!=typeof DataView&&(M.working?M(t):t instanceof DataView)}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)||S(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)},m.working="undefined"!=typeof Map&&m(new Map),e.isMap=function(t){return"undefined"!=typeof Map&&(m.working?m(t):t instanceof Map)},b.working="undefined"!=typeof Set&&b(new Set),e.isSet=function(t){return"undefined"!=typeof Set&&(b.working?b(t):t instanceof Set)},v.working="undefined"!=typeof WeakMap&&v(new WeakMap),e.isWeakMap=function(t){return"undefined"!=typeof WeakMap&&(v.working?v(t):t instanceof WeakMap)},_.working="undefined"!=typeof WeakSet&&_(new WeakSet),e.isWeakSet=function(t){return _(t)},w.working="undefined"!=typeof ArrayBuffer&&w(new ArrayBuffer),e.isArrayBuffer=E,M.working="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView&&M(new DataView(new ArrayBuffer(1),0,1)),e.isDataView=S;var k="undefined"!=typeof SharedArrayBuffer?SharedArrayBuffer:void 0;function A(t){return"[object SharedArrayBuffer]"===f(t)}function x(t){return void 0!==k&&(void 0===A.working&&(A.working=A(new k)),A.working?A(t):t instanceof k)}function O(t){return g(t,l)}function R(t){return g(t,c)}function B(t){return g(t,d)}function j(t){return u&&g(t,p)}function I(t){return h&&g(t,y)}e.isSharedArrayBuffer=x,e.isAsyncFunction=function(t){return"[object AsyncFunction]"===f(t)},e.isMapIterator=function(t){return"[object Map Iterator]"===f(t)},e.isSetIterator=function(t){return"[object Set Iterator]"===f(t)},e.isGeneratorObject=function(t){return"[object Generator]"===f(t)},e.isWebAssemblyCompiledModule=function(t){return"[object WebAssembly.Module]"===f(t)},e.isNumberObject=O,e.isStringObject=R,e.isBooleanObject=B,e.isBigIntObject=j,e.isSymbolObject=I,e.isBoxedPrimitive=function(t){return O(t)||R(t)||B(t)||j(t)||I(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")}})})},537(t,e,r){var n=r(5606),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(!v(t)){for(var e=[],r=0;r<arguments.length;r++)e.push(h(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}}),s=n[r];r<i;s=n[++r])m(s)||!E(s)?a+=" "+s:a+=" "+h(s);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={},s=/^$/;if(n.env.NODE_DEBUG){var u=n.env.NODE_DEBUG;u=u.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase(),s=new RegExp("^"+u+"$","i")}function h(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),_(n.showHidden)&&(n.showHidden=!1),_(n.depth)&&(n.depth=2),_(n.colors)&&(n.colors=!1),_(n.customInspect)&&(n.customInspect=!0),n.colors&&(n.stylize=f),c(n,t,n.depth)}function f(t,e){var r=h.styles[e];return r?"["+h.colors[r][0]+"m"+t+"["+h.colors[r][1]+"m":t}function l(t,e){return t}function c(t,r,n){if(t.customInspect&&r&&k(r.inspect)&&r.inspect!==e.inspect&&(!r.constructor||r.constructor.prototype!==r)){var i=r.inspect(n,t);return v(i)||(i=c(t,i,n)),i}var o=function(t,e){if(_(e))return t.stylize("undefined","undefined");if(v(e)){var r="'"+JSON.stringify(e).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return t.stylize(r,"string")}if(b(e))return t.stylize(""+e,"number");if(g(e))return t.stylize(""+e,"boolean");if(m(e))return t.stylize("null","null")}(t,r);if(o)return o;var a=Object.keys(r),s=function(t){var e={};return t.forEach(function(t,r){e[t]=!0}),e}(a);if(t.showHidden&&(a=Object.getOwnPropertyNames(r)),S(r)&&(a.indexOf("message")>=0||a.indexOf("description")>=0))return d(r);if(0===a.length){if(k(r)){var u=r.name?": "+r.name:"";return t.stylize("[Function"+u+"]","special")}if(w(r))return t.stylize(RegExp.prototype.toString.call(r),"regexp");if(M(r))return t.stylize(Date.prototype.toString.call(r),"date");if(S(r))return d(r)}var h,f="",l=!1,E=["{","}"];(y(r)&&(l=!0,E=["[","]"]),k(r))&&(f=" [Function"+(r.name?": "+r.name:"")+"]");return w(r)&&(f=" "+RegExp.prototype.toString.call(r)),M(r)&&(f=" "+Date.prototype.toUTCString.call(r)),S(r)&&(f=" "+d(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),h=l?function(t,e,r,n,i){for(var o=[],a=0,s=e.length;a<s;++a)R(e,String(a))?o.push(p(t,e,r,n,String(a),!0)):o.push("");return i.forEach(function(i){i.match(/^\d+$/)||o.push(p(t,e,r,n,i,!0))}),o}(t,r,n,s,a):a.map(function(e){return p(t,r,n,s,e,l)}),t.seen.pop(),function(t,e,r){var n=t.reduce(function(t,e){return e.indexOf("\n")>=0&&0,t+e.replace(/\u001b\[\d\d?m/g,"").length+1},0);if(n>60)return r[0]+(""===e?"":e+"\n ")+" "+t.join(",\n ")+" "+r[1];return r[0]+e+" "+t.join(", ")+" "+r[1]}(h,f,E)):E[0]+f+E[1]}function d(t){return"["+Error.prototype.toString.call(t)+"]"}function p(t,e,r,n,i,o){var a,s,u;if((u=Object.getOwnPropertyDescriptor(e,i)||{value:e[i]}).get?s=u.set?t.stylize("[Getter/Setter]","special"):t.stylize("[Getter]","special"):u.set&&(s=t.stylize("[Setter]","special")),R(n,i)||(a="["+i+"]"),s||(t.seen.indexOf(u.value)<0?(s=m(r)?c(t,u.value,null):c(t,u.value,r-1)).indexOf("\n")>-1&&(s=o?s.split("\n").map(function(t){return" "+t}).join("\n").slice(2):"\n"+s.split("\n").map(function(t){return" "+t}).join("\n")):s=t.stylize("[Circular]","special")),_(a)){if(o&&i.match(/^\d+$/))return s;(a=JSON.stringify(""+i)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(a=a.slice(1,-1),a=t.stylize(a,"name")):(a=a.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),a=t.stylize(a,"string"))}return a+": "+s}function y(t){return Array.isArray(t)}function g(t){return"boolean"==typeof t}function m(t){return null===t}function b(t){return"number"==typeof t}function v(t){return"string"==typeof t}function _(t){return void 0===t}function w(t){return E(t)&&"[object RegExp]"===A(t)}function E(t){return"object"==typeof t&&null!==t}function M(t){return E(t)&&"[object Date]"===A(t)}function S(t){return E(t)&&("[object Error]"===A(t)||t instanceof Error)}function k(t){return"function"==typeof t}function A(t){return Object.prototype.toString.call(t)}function x(t){return t<10?"0"+t.toString(10):t.toString(10)}e.debuglog=function(t){if(t=t.toUpperCase(),!a[t])if(s.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=h,h.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]},h.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},e.types=r(9032),e.isArray=y,e.isBoolean=g,e.isNull=m,e.isNullOrUndefined=function(t){return null==t},e.isNumber=b,e.isString=v,e.isSymbol=function(t){return"symbol"==typeof t},e.isUndefined=_,e.isRegExp=w,e.types.isRegExp=w,e.isObject=E,e.isDate=M,e.types.isDate=M,e.isError=S,e.types.isNativeError=S,e.isFunction=k,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(1135);var O=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function R(t,e){return Object.prototype.hasOwnProperty.call(t,e)}e.log=function(){var t,r;console.log("%s - %s",(t=new Date,r=[x(t.getHours()),x(t.getMinutes()),x(t.getSeconds())].join(":"),[t.getDate(),O[t.getMonth()],r].join(" ")),e.format.apply(e,arguments))},e.inherits=r(4317),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 B="undefined"!=typeof Symbol?Symbol("util.promisify.custom"):void 0;function j(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(B&&t[B]){var e;if("function"!=typeof(e=t[B]))throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(e,B,{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)),B&&Object.defineProperty(e,B,{value:e,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(e,i(t))},e.promisify.custom=B,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(j.bind(null,t,a))})}return Object.setPrototypeOf(e,Object.getPrototypeOf(t)),Object.defineProperties(e,i(t)),e}},8961(__unused_webpack_module,exports){var indexOf=function(t,e){if(t.indexOf)return t.indexOf(e);for(var r=0;r<t.length;r++)if(t[r]===e)return r;return-1},Object_keys=function(t){if(Object.keys)return Object.keys(t);var e=[];for(var r in t)e.push(r);return e},forEach=function(t,e){if(t.forEach)return t.forEach(e);for(var r=0;r<t.length;r++)e(t[r],r,t)},defineProp=function(){try{return Object.defineProperty({},"_",{}),function(t,e,r){Object.defineProperty(t,e,{writable:!0,enumerable:!1,configurable:!0,value:r})}}catch(t){return function(t,e,r){t[e]=r}}}(),globals=["Array","Boolean","Date","Error","EvalError","Function","Infinity","JSON","Math","NaN","Number","Object","RangeError","ReferenceError","RegExp","String","SyntaxError","TypeError","URIError","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","eval","isFinite","isNaN","parseFloat","parseInt","undefined","unescape"];function Context(){}Context.prototype={};var Script=exports.Script=function(t){if(!(this instanceof Script))return new Script(t);this.code=t};Script.prototype.runInContext=function(t){if(!(t instanceof Context))throw new TypeError("needs a 'context' argument.");var e=document.createElement("iframe");e.style||(e.style={}),e.style.display="none",document.body.appendChild(e);var r=e.contentWindow,n=r.eval,i=r.execScript;!n&&i&&(i.call(r,"null"),n=r.eval),forEach(Object_keys(t),function(e){r[e]=t[e]}),forEach(globals,function(e){t[e]&&(r[e]=t[e])});var o=Object_keys(r),a=n.call(r,this.code);return forEach(Object_keys(r),function(e){(e in t||-1===indexOf(o,e))&&(t[e]=r[e])}),forEach(globals,function(e){e in t||defineProp(t,e,r[e])}),document.body.removeChild(e),a},Script.prototype.runInThisContext=function(){return eval(this.code)},Script.prototype.runInNewContext=function(t){var e=Script.createContext(t),r=this.runInContext(e);return t&&forEach(Object_keys(e),function(r){t[r]=e[r]}),r},forEach(Object_keys(Script.prototype),function(t){exports[t]=Script[t]=function(e){var r=Script(e);return r[t].apply(r,[].slice.call(arguments,1))}}),exports.isContext=function(t){return t instanceof Context},exports.createScript=function(t){return exports.Script(t)},exports.createContext=Script.createContext=function(t){var e=new Context;return"object"==typeof t&&forEach(Object_keys(t),function(r){e[r]=t[r]}),e}},5767(t,e,r){"use strict";var n=r(2682),i=r(9209),o=r(487),a=r(6556),s=r(5795),u=r(3628),h=a("Object.prototype.toString"),f=r(9092)(),l="undefined"==typeof globalThis?r.g:globalThis,c=i(),d=a("String.prototype.slice"),p=a("Array.prototype.indexOf",!0)||function(t,e){for(var r=0;r<t.length;r+=1)if(t[r]===e)return r;return-1},y={__proto__:null};n(c,f&&s&&u?function(t){var e=new l[t];if(Symbol.toStringTag in e&&u){var r=u(e),n=s(r,Symbol.toStringTag);if(!n&&r){var i=u(r);n=s(i,Symbol.toStringTag)}if(n&&n.get){var a=o(n.get);y["$"+t]=a}}}:function(t){var e=new l[t],r=e.slice||e.set;if(r){var n=o(r);y["$"+t]=n}});t.exports=function(t){if(!t||"object"!=typeof t)return!1;if(!f){var e=d(h(t),8,-1);return p(c,e)>-1?e:"Object"===e&&function(t){var e=!1;return n(y,function(r,n){if(!e)try{r(t),e=d(n,1)}catch(t){}}),e}(t)}return s?function(t){var e=!1;return n(y,function(r,n){if(!e)try{"$"+r(t)===n&&(e=d(n,1))}catch(t){}}),e}(t):null}},6698(t,e,r){t.exports=r(4096)},7790(){},3776(){},8285(){},4581(){},8216(){},9004(){},5340(){},9838(){},3779(){},7199(){},9209(t,e,r){"use strict";var n=r(6578),i="undefined"==typeof globalThis?r.g:globalThis;t.exports=function(){for(var t=[],e=0;e<n.length;e++)"function"==typeof i[n[e]]&&(t[t.length]=n[e]);return t}},9294(t,e,r){"use strict";r.d(e,{c:()=>n});var n=r(4233)},3219(t){"use strict";t.exports=JSON.parse('{"aes-128-ecb":{"cipher":"AES","key":128,"iv":0,"mode":"ECB","type":"block"},"aes-192-ecb":{"cipher":"AES","key":192,"iv":0,"mode":"ECB","type":"block"},"aes-256-ecb":{"cipher":"AES","key":256,"iv":0,"mode":"ECB","type":"block"},"aes-128-cbc":{"cipher":"AES","key":128,"iv":16,"mode":"CBC","type":"block"},"aes-192-cbc":{"cipher":"AES","key":192,"iv":16,"mode":"CBC","type":"block"},"aes-256-cbc":{"cipher":"AES","key":256,"iv":16,"mode":"CBC","type":"block"},"aes128":{"cipher":"AES","key":128,"iv":16,"mode":"CBC","type":"block"},"aes192":{"cipher":"AES","key":192,"iv":16,"mode":"CBC","type":"block"},"aes256":{"cipher":"AES","key":256,"iv":16,"mode":"CBC","type":"block"},"aes-128-cfb":{"cipher":"AES","key":128,"iv":16,"mode":"CFB","type":"stream"},"aes-192-cfb":{"cipher":"AES","key":192,"iv":16,"mode":"CFB","type":"stream"},"aes-256-cfb":{"cipher":"AES","key":256,"iv":16,"mode":"CFB","type":"stream"},"aes-128-cfb8":{"cipher":"AES","key":128,"iv":16,"mode":"CFB8","type":"stream"},"aes-192-cfb8":{"cipher":"AES","key":192,"iv":16,"mode":"CFB8","type":"stream"},"aes-256-cfb8":{"cipher":"AES","key":256,"iv":16,"mode":"CFB8","type":"stream"},"aes-128-cfb1":{"cipher":"AES","key":128,"iv":16,"mode":"CFB1","type":"stream"},"aes-192-cfb1":{"cipher":"AES","key":192,"iv":16,"mode":"CFB1","type":"stream"},"aes-256-cfb1":{"cipher":"AES","key":256,"iv":16,"mode":"CFB1","type":"stream"},"aes-128-ofb":{"cipher":"AES","key":128,"iv":16,"mode":"OFB","type":"stream"},"aes-192-ofb":{"cipher":"AES","key":192,"iv":16,"mode":"OFB","type":"stream"},"aes-256-ofb":{"cipher":"AES","key":256,"iv":16,"mode":"OFB","type":"stream"},"aes-128-ctr":{"cipher":"AES","key":128,"iv":16,"mode":"CTR","type":"stream"},"aes-192-ctr":{"cipher":"AES","key":192,"iv":16,"mode":"CTR","type":"stream"},"aes-256-ctr":{"cipher":"AES","key":256,"iv":16,"mode":"CTR","type":"stream"},"aes-128-gcm":{"cipher":"AES","key":128,"iv":12,"mode":"GCM","type":"auth"},"aes-192-gcm":{"cipher":"AES","key":192,"iv":12,"mode":"GCM","type":"auth"},"aes-256-gcm":{"cipher":"AES","key":256,"iv":12,"mode":"GCM","type":"auth"}}')},3241(t){"use strict";t.exports=JSON.parse('{"modp1":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a63a3620ffffffffffffffff"},"modp2":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece65381ffffffffffffffff"},"modp5":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca237327ffffffffffffffff"},"modp14":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aacaa68ffffffffffffffff"},"modp15":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a93ad2caffffffffffffffff"},"modp16":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c934063199ffffffffffffffff"},"modp17":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dcc4024ffffffffffffffff"},"modp18":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dbe115974a3926f12fee5e438777cb6a932df8cd8bec4d073b931ba3bc832b68d9dd300741fa7bf8afc47ed2576f6936ba424663aab639c5ae4f5683423b4742bf1c978238f16cbe39d652de3fdb8befc848ad922222e04a4037c0713eb57a81a23f0c73473fc646cea306b4bcbc8862f8385ddfa9d4b7fa2c087e879683303ed5bdd3a062b3cf5b3a278a66d2a13f83f44f82ddf310ee074ab6a364597e899a0255dc164f31cc50846851df9ab48195ded7ea1b1d510bd7ee74d73faf36bc31ecfa268359046f4eb879f924009438b481c6cd7889a002ed5ee382bc9190da6fc026e479558e4475677e9aa9e3050e2765694dfc81f56e880b96e7160c980dd98edd3dfffffffffffffffff"}}')},5579(t){"use strict";t.exports=JSON.parse('{"2.16.840.1.101.3.4.1.1":"aes-128-ecb","2.16.840.1.101.3.4.1.2":"aes-128-cbc","2.16.840.1.101.3.4.1.3":"aes-128-ofb","2.16.840.1.101.3.4.1.4":"aes-128-cfb","2.16.840.1.101.3.4.1.21":"aes-192-ecb","2.16.840.1.101.3.4.1.22":"aes-192-cbc","2.16.840.1.101.3.4.1.23":"aes-192-ofb","2.16.840.1.101.3.4.1.24":"aes-192-cfb","2.16.840.1.101.3.4.1.41":"aes-256-ecb","2.16.840.1.101.3.4.1.42":"aes-256-cbc","2.16.840.1.101.3.4.1.43":"aes-256-ofb","2.16.840.1.101.3.4.1.44":"aes-256-cfb"}')}},__webpack_module_cache__={};function __webpack_require__(t){var e=__webpack_module_cache__[t];if(void 0!==e)return e.exports;var r=__webpack_module_cache__[t]={id:t,loaded:!1,exports:{}};return __webpack_modules__[t].call(r.exports,r,r.exports,__webpack_require__),r.loaded=!0,r.exports}__webpack_require__.d=(t,e)=>{for(var r in e)__webpack_require__.o(e,r)&&!__webpack_require__.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},__webpack_require__.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),__webpack_require__.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),__webpack_require__.nmd=t=>(t.paths=[],t.children||(t.children=[]),t);var __webpack_exports__=__webpack_require__(6698);return __webpack_exports__})());
1
+ var bsvStatusList=(()=>{var HE=Object.create;var Y0=Object.defineProperty;var WE=Object.getOwnPropertyDescriptor;var KE=Object.getOwnPropertyNames;var GE=Object.getPrototypeOf,VE=Object.prototype.hasOwnProperty;var $E=(e,t,r)=>()=>{if(r)throw r[0];try{return e&&(t=e(e=0)),t}catch(i){throw r=[i],i}};var R=(e,t)=>()=>{try{return t||e((t={exports:{}}).exports,t),t.exports}catch(r){throw t=0,r}};var YE=(e,t,r,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of KE(t))!VE.call(e,n)&&n!==r&&Y0(e,n,{get:()=>t[n],enumerable:!(i=WE(t,n))||i.enumerable});return e};var J0=(e,t,r)=>(r=e!=null?HE(GE(e)):{},YE(t||!e||!e.__esModule?Y0(r,"default",{value:e,enumerable:!0}):r,e));var rd=R((UO,td)=>{m();var et=td.exports={},sr,ur;function Vu(){throw new Error("setTimeout has not been defined")}function $u(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?sr=setTimeout:sr=Vu}catch{sr=Vu}try{typeof clearTimeout=="function"?ur=clearTimeout:ur=$u}catch{ur=$u}})();function X0(e){if(sr===setTimeout)return setTimeout(e,0);if((sr===Vu||!sr)&&setTimeout)return sr=setTimeout,setTimeout(e,0);try{return sr(e,0)}catch{try{return sr.call(null,e,0)}catch{return sr.call(this,e,0)}}}function JE(e){if(ur===clearTimeout)return clearTimeout(e);if((ur===$u||!ur)&&clearTimeout)return ur=clearTimeout,clearTimeout(e);try{return ur(e)}catch{try{return ur.call(null,e)}catch{return ur.call(this,e)}}}var Mr=[],An=!1,ki,hf=-1;function XE(){!An||!ki||(An=!1,ki.length?Mr=ki.concat(Mr):hf=-1,Mr.length&&Q0())}function Q0(){if(!An){var e=X0(XE);An=!0;for(var t=Mr.length;t;){for(ki=Mr,Mr=[];++hf<t;)ki&&ki[hf].run();hf=-1,t=Mr.length}ki=null,An=!1,JE(e)}}et.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];Mr.push(new ed(e,t)),Mr.length===1&&!An&&X0(Q0)};function ed(e,t){this.fun=e,this.array=t}ed.prototype.run=function(){this.fun.apply(null,this.array)};et.title="browser";et.browser=!0;et.env={};et.argv=[];et.version="";et.versions={};function Ar(){}et.on=Ar;et.addListener=Ar;et.once=Ar;et.off=Ar;et.removeListener=Ar;et.removeAllListeners=Ar;et.emit=Ar;et.prependListener=Ar;et.prependOnceListener=Ar;et.listeners=function(e){return[]};et.binding=function(e){throw new Error("process.binding is not supported")};et.cwd=function(){return"/"};et.chdir=function(e){throw new Error("process.chdir is not supported")};et.umask=function(){return 0}});var ad=R(cf=>{"use strict";m();cf.byteLength=e6;cf.toByteArray=r6;cf.fromByteArray=a6;var lr=[],Tt=[],QE=typeof Uint8Array<"u"?Uint8Array:Array,Yu="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(Ti=0,id=Yu.length;Ti<id;++Ti)lr[Ti]=Yu[Ti],Tt[Yu.charCodeAt(Ti)]=Ti;var Ti,id;Tt[45]=62;Tt[95]=63;function nd(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var r=e.indexOf("=");r===-1&&(r=t);var i=r===t?0:4-r%4;return[r,i]}function e6(e){var t=nd(e),r=t[0],i=t[1];return(r+i)*3/4-i}function t6(e,t,r){return(t+r)*3/4-r}function r6(e){var t,r=nd(e),i=r[0],n=r[1],a=new QE(t6(e,i,n)),o=0,s=n>0?i-4:i,y;for(y=0;y<s;y+=4)t=Tt[e.charCodeAt(y)]<<18|Tt[e.charCodeAt(y+1)]<<12|Tt[e.charCodeAt(y+2)]<<6|Tt[e.charCodeAt(y+3)],a[o++]=t>>16&255,a[o++]=t>>8&255,a[o++]=t&255;return n===2&&(t=Tt[e.charCodeAt(y)]<<2|Tt[e.charCodeAt(y+1)]>>4,a[o++]=t&255),n===1&&(t=Tt[e.charCodeAt(y)]<<10|Tt[e.charCodeAt(y+1)]<<4|Tt[e.charCodeAt(y+2)]>>2,a[o++]=t>>8&255,a[o++]=t&255),a}function i6(e){return lr[e>>18&63]+lr[e>>12&63]+lr[e>>6&63]+lr[e&63]}function n6(e,t,r){for(var i,n=[],a=t;a<r;a+=3)i=(e[a]<<16&16711680)+(e[a+1]<<8&65280)+(e[a+2]&255),n.push(i6(i));return n.join("")}function a6(e){for(var t,r=e.length,i=r%3,n=[],a=16383,o=0,s=r-i;o<s;o+=a)n.push(n6(e,o,o+a>s?s:o+a));return i===1?(t=e[r-1],n.push(lr[t>>2]+lr[t<<4&63]+"==")):i===2&&(t=(e[r-2]<<8)+e[r-1],n.push(lr[t>>10]+lr[t>>4&63]+lr[t<<2&63]+"=")),n.join("")}});var od=R(Ju=>{m();Ju.read=function(e,t,r,i,n){var a,o,s=n*8-i-1,y=(1<<s)-1,_=y>>1,x=-7,B=r?n-1:0,k=r?-1:1,T=e[t+B];for(B+=k,a=T&(1<<-x)-1,T>>=-x,x+=s;x>0;a=a*256+e[t+B],B+=k,x-=8);for(o=a&(1<<-x)-1,a>>=-x,x+=i;x>0;o=o*256+e[t+B],B+=k,x-=8);if(a===0)a=1-_;else{if(a===y)return o?NaN:(T?-1:1)*(1/0);o=o+Math.pow(2,i),a=a-_}return(T?-1:1)*o*Math.pow(2,a-i)};Ju.write=function(e,t,r,i,n,a){var o,s,y,_=a*8-n-1,x=(1<<_)-1,B=x>>1,k=n===23?Math.pow(2,-24)-Math.pow(2,-77):0,T=i?0:a-1,O=i?1:-1,D=t<0||t===0&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,o=x):(o=Math.floor(Math.log(t)/Math.LN2),t*(y=Math.pow(2,-o))<1&&(o--,y*=2),o+B>=1?t+=k/y:t+=k*Math.pow(2,1-B),t*y>=2&&(o++,y/=2),o+B>=x?(s=0,o=x):o+B>=1?(s=(t*y-1)*Math.pow(2,n),o=o+B):(s=t*Math.pow(2,B-1)*Math.pow(2,n),o=0));n>=8;e[r+T]=s&255,T+=O,s/=256,n-=8);for(o=o<<n|s,_+=n;_>0;e[r+T]=o&255,T+=O,o/=256,_-=8);e[r+T-O]|=D*128}});var st=R(Tn=>{"use strict";m();var Xu=ad(),Rn=od(),fd=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;Tn.Buffer=q;Tn.SlowBuffer=h6;Tn.INSPECT_MAX_BYTES=50;var df=2147483647;Tn.kMaxLength=df;q.TYPED_ARRAY_SUPPORT=o6();!q.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function o6(){try{let e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),e.foo()===42}catch{return!1}}Object.defineProperty(q.prototype,"parent",{enumerable:!0,get:function(){if(q.isBuffer(this))return this.buffer}});Object.defineProperty(q.prototype,"offset",{enumerable:!0,get:function(){if(q.isBuffer(this))return this.byteOffset}});function Br(e){if(e>df)throw new RangeError('The value "'+e+'" is invalid for option "size"');let t=new Uint8Array(e);return Object.setPrototypeOf(t,q.prototype),t}function q(e,t,r){if(typeof e=="number"){if(typeof t=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return rl(e)}return hd(e,t,r)}q.poolSize=8192;function hd(e,t,r){if(typeof e=="string")return s6(e,t);if(ArrayBuffer.isView(e))return u6(e);if(e==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(hr(e,ArrayBuffer)||e&&hr(e.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(hr(e,SharedArrayBuffer)||e&&hr(e.buffer,SharedArrayBuffer)))return el(e,t,r);if(typeof e=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');let i=e.valueOf&&e.valueOf();if(i!=null&&i!==e)return q.from(i,t,r);let n=l6(e);if(n)return n;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof e[Symbol.toPrimitive]=="function")return q.from(e[Symbol.toPrimitive]("string"),t,r);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}q.from=function(e,t,r){return hd(e,t,r)};Object.setPrototypeOf(q.prototype,Uint8Array.prototype);Object.setPrototypeOf(q,Uint8Array);function cd(e){if(typeof e!="number")throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function f6(e,t,r){return cd(e),e<=0?Br(e):t!==void 0?typeof r=="string"?Br(e).fill(t,r):Br(e).fill(t):Br(e)}q.alloc=function(e,t,r){return f6(e,t,r)};function rl(e){return cd(e),Br(e<0?0:il(e)|0)}q.allocUnsafe=function(e){return rl(e)};q.allocUnsafeSlow=function(e){return rl(e)};function s6(e,t){if((typeof t!="string"||t==="")&&(t="utf8"),!q.isEncoding(t))throw new TypeError("Unknown encoding: "+t);let r=dd(e,t)|0,i=Br(r),n=i.write(e,t);return n!==r&&(i=i.slice(0,n)),i}function Qu(e){let t=e.length<0?0:il(e.length)|0,r=Br(t);for(let i=0;i<t;i+=1)r[i]=e[i]&255;return r}function u6(e){if(hr(e,Uint8Array)){let t=new Uint8Array(e);return el(t.buffer,t.byteOffset,t.byteLength)}return Qu(e)}function el(e,t,r){if(t<0||e.byteLength<t)throw new RangeError('"offset" is outside of buffer bounds');if(e.byteLength<t+(r||0))throw new RangeError('"length" is outside of buffer bounds');let i;return t===void 0&&r===void 0?i=new Uint8Array(e):r===void 0?i=new Uint8Array(e,t):i=new Uint8Array(e,t,r),Object.setPrototypeOf(i,q.prototype),i}function l6(e){if(q.isBuffer(e)){let t=il(e.length)|0,r=Br(t);return r.length===0||e.copy(r,0,0,t),r}if(e.length!==void 0)return typeof e.length!="number"||al(e.length)?Br(0):Qu(e);if(e.type==="Buffer"&&Array.isArray(e.data))return Qu(e.data)}function il(e){if(e>=df)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+df.toString(16)+" bytes");return e|0}function h6(e){return+e!=e&&(e=0),q.alloc(+e)}q.isBuffer=function(t){return t!=null&&t._isBuffer===!0&&t!==q.prototype};q.compare=function(t,r){if(hr(t,Uint8Array)&&(t=q.from(t,t.offset,t.byteLength)),hr(r,Uint8Array)&&(r=q.from(r,r.offset,r.byteLength)),!q.isBuffer(t)||!q.isBuffer(r))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(t===r)return 0;let i=t.length,n=r.length;for(let a=0,o=Math.min(i,n);a<o;++a)if(t[a]!==r[a]){i=t[a],n=r[a];break}return i<n?-1:n<i?1:0};q.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}};q.concat=function(t,r){if(!Array.isArray(t))throw new TypeError('"list" argument must be an Array of Buffers');if(t.length===0)return q.alloc(0);let i;if(r===void 0)for(r=0,i=0;i<t.length;++i)r+=t[i].length;let n=q.allocUnsafe(r),a=0;for(i=0;i<t.length;++i){let o=t[i];if(hr(o,Uint8Array))a+o.length>n.length?(q.isBuffer(o)||(o=q.from(o)),o.copy(n,a)):Uint8Array.prototype.set.call(n,o,a);else if(q.isBuffer(o))o.copy(n,a);else throw new TypeError('"list" argument must be an Array of Buffers');a+=o.length}return n};function dd(e,t){if(q.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||hr(e,ArrayBuffer))return e.byteLength;if(typeof e!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);let r=e.length,i=arguments.length>2&&arguments[2]===!0;if(!i&&r===0)return 0;let n=!1;for(;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return tl(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return r*2;case"hex":return r>>>1;case"base64":return xd(e).length;default:if(n)return i?-1:tl(e).length;t=(""+t).toLowerCase(),n=!0}}q.byteLength=dd;function c6(e,t,r){let i=!1;if((t===void 0||t<0)&&(t=0),t>this.length||((r===void 0||r>this.length)&&(r=this.length),r<=0)||(r>>>=0,t>>>=0,r<=t))return"";for(e||(e="utf8");;)switch(e){case"hex":return x6(this,t,r);case"utf8":case"utf-8":return vd(this,t,r);case"ascii":return m6(this,t,r);case"latin1":case"binary":return w6(this,t,r);case"base64":return b6(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return E6(this,t,r);default:if(i)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),i=!0}}q.prototype._isBuffer=!0;function Ii(e,t,r){let i=e[t];e[t]=e[r],e[r]=i}q.prototype.swap16=function(){let t=this.length;if(t%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let r=0;r<t;r+=2)Ii(this,r,r+1);return this};q.prototype.swap32=function(){let t=this.length;if(t%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let r=0;r<t;r+=4)Ii(this,r,r+3),Ii(this,r+1,r+2);return this};q.prototype.swap64=function(){let t=this.length;if(t%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let r=0;r<t;r+=8)Ii(this,r,r+7),Ii(this,r+1,r+6),Ii(this,r+2,r+5),Ii(this,r+3,r+4);return this};q.prototype.toString=function(){let t=this.length;return t===0?"":arguments.length===0?vd(this,0,t):c6.apply(this,arguments)};q.prototype.toLocaleString=q.prototype.toString;q.prototype.equals=function(t){if(!q.isBuffer(t))throw new TypeError("Argument must be a Buffer");return this===t?!0:q.compare(this,t)===0};q.prototype.inspect=function(){let t="",r=Tn.INSPECT_MAX_BYTES;return t=this.toString("hex",0,r).replace(/(.{2})/g,"$1 ").trim(),this.length>r&&(t+=" ... "),"<Buffer "+t+">"};fd&&(q.prototype[fd]=q.prototype.inspect);q.prototype.compare=function(t,r,i,n,a){if(hr(t,Uint8Array)&&(t=q.from(t,t.offset,t.byteLength)),!q.isBuffer(t))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof t);if(r===void 0&&(r=0),i===void 0&&(i=t?t.length:0),n===void 0&&(n=0),a===void 0&&(a=this.length),r<0||i>t.length||n<0||a>this.length)throw new RangeError("out of range index");if(n>=a&&r>=i)return 0;if(n>=a)return-1;if(r>=i)return 1;if(r>>>=0,i>>>=0,n>>>=0,a>>>=0,this===t)return 0;let o=a-n,s=i-r,y=Math.min(o,s),_=this.slice(n,a),x=t.slice(r,i);for(let B=0;B<y;++B)if(_[B]!==x[B]){o=_[B],s=x[B];break}return o<s?-1:s<o?1:0};function pd(e,t,r,i,n){if(e.length===0)return-1;if(typeof r=="string"?(i=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,al(r)&&(r=n?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(n)return-1;r=e.length-1}else if(r<0)if(n)r=0;else return-1;if(typeof t=="string"&&(t=q.from(t,i)),q.isBuffer(t))return t.length===0?-1:sd(e,t,r,i,n);if(typeof t=="number")return t=t&255,typeof Uint8Array.prototype.indexOf=="function"?n?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):sd(e,[t],r,i,n);throw new TypeError("val must be string, number or Buffer")}function sd(e,t,r,i,n){let a=1,o=e.length,s=t.length;if(i!==void 0&&(i=String(i).toLowerCase(),i==="ucs2"||i==="ucs-2"||i==="utf16le"||i==="utf-16le")){if(e.length<2||t.length<2)return-1;a=2,o/=2,s/=2,r/=2}function y(x,B){return a===1?x[B]:x.readUInt16BE(B*a)}let _;if(n){let x=-1;for(_=r;_<o;_++)if(y(e,_)===y(t,x===-1?0:_-x)){if(x===-1&&(x=_),_-x+1===s)return x*a}else x!==-1&&(_-=_-x),x=-1}else for(r+s>o&&(r=o-s),_=r;_>=0;_--){let x=!0;for(let B=0;B<s;B++)if(y(e,_+B)!==y(t,B)){x=!1;break}if(x)return _}return-1}q.prototype.includes=function(t,r,i){return this.indexOf(t,r,i)!==-1};q.prototype.indexOf=function(t,r,i){return pd(this,t,r,i,!0)};q.prototype.lastIndexOf=function(t,r,i){return pd(this,t,r,i,!1)};function d6(e,t,r,i){r=Number(r)||0;let n=e.length-r;i?(i=Number(i),i>n&&(i=n)):i=n;let a=t.length;i>a/2&&(i=a/2);let o;for(o=0;o<i;++o){let s=parseInt(t.substr(o*2,2),16);if(al(s))return o;e[r+o]=s}return o}function p6(e,t,r,i){return pf(tl(t,e.length-r),e,r,i)}function v6(e,t,r,i){return pf(B6(t),e,r,i)}function y6(e,t,r,i){return pf(xd(t),e,r,i)}function g6(e,t,r,i){return pf(R6(t,e.length-r),e,r,i)}q.prototype.write=function(t,r,i,n){if(r===void 0)n="utf8",i=this.length,r=0;else if(i===void 0&&typeof r=="string")n=r,i=this.length,r=0;else if(isFinite(r))r=r>>>0,isFinite(i)?(i=i>>>0,n===void 0&&(n="utf8")):(n=i,i=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");let a=this.length-r;if((i===void 0||i>a)&&(i=a),t.length>0&&(i<0||r<0)||r>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");let o=!1;for(;;)switch(n){case"hex":return d6(this,t,r,i);case"utf8":case"utf-8":return p6(this,t,r,i);case"ascii":case"latin1":case"binary":return v6(this,t,r,i);case"base64":return y6(this,t,r,i);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return g6(this,t,r,i);default:if(o)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),o=!0}};q.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function b6(e,t,r){return t===0&&r===e.length?Xu.fromByteArray(e):Xu.fromByteArray(e.slice(t,r))}function vd(e,t,r){r=Math.min(e.length,r);let i=[],n=t;for(;n<r;){let a=e[n],o=null,s=a>239?4:a>223?3:a>191?2:1;if(n+s<=r){let y,_,x,B;switch(s){case 1:a<128&&(o=a);break;case 2:y=e[n+1],(y&192)===128&&(B=(a&31)<<6|y&63,B>127&&(o=B));break;case 3:y=e[n+1],_=e[n+2],(y&192)===128&&(_&192)===128&&(B=(a&15)<<12|(y&63)<<6|_&63,B>2047&&(B<55296||B>57343)&&(o=B));break;case 4:y=e[n+1],_=e[n+2],x=e[n+3],(y&192)===128&&(_&192)===128&&(x&192)===128&&(B=(a&15)<<18|(y&63)<<12|(_&63)<<6|x&63,B>65535&&B<1114112&&(o=B))}}o===null?(o=65533,s=1):o>65535&&(o-=65536,i.push(o>>>10&1023|55296),o=56320|o&1023),i.push(o),n+=s}return _6(i)}var ud=4096;function _6(e){let t=e.length;if(t<=ud)return String.fromCharCode.apply(String,e);let r="",i=0;for(;i<t;)r+=String.fromCharCode.apply(String,e.slice(i,i+=ud));return r}function m6(e,t,r){let i="";r=Math.min(e.length,r);for(let n=t;n<r;++n)i+=String.fromCharCode(e[n]&127);return i}function w6(e,t,r){let i="";r=Math.min(e.length,r);for(let n=t;n<r;++n)i+=String.fromCharCode(e[n]);return i}function x6(e,t,r){let i=e.length;(!t||t<0)&&(t=0),(!r||r<0||r>i)&&(r=i);let n="";for(let a=t;a<r;++a)n+=k6[e[a]];return n}function E6(e,t,r){let i=e.slice(t,r),n="";for(let a=0;a<i.length-1;a+=2)n+=String.fromCharCode(i[a]+i[a+1]*256);return n}q.prototype.slice=function(t,r){let i=this.length;t=~~t,r=r===void 0?i:~~r,t<0?(t+=i,t<0&&(t=0)):t>i&&(t=i),r<0?(r+=i,r<0&&(r=0)):r>i&&(r=i),r<t&&(r=t);let n=this.subarray(t,r);return Object.setPrototypeOf(n,q.prototype),n};function at(e,t,r){if(e%1!==0||e<0)throw new RangeError("offset is not uint");if(e+t>r)throw new RangeError("Trying to access beyond buffer length")}q.prototype.readUintLE=q.prototype.readUIntLE=function(t,r,i){t=t>>>0,r=r>>>0,i||at(t,r,this.length);let n=this[t],a=1,o=0;for(;++o<r&&(a*=256);)n+=this[t+o]*a;return n};q.prototype.readUintBE=q.prototype.readUIntBE=function(t,r,i){t=t>>>0,r=r>>>0,i||at(t,r,this.length);let n=this[t+--r],a=1;for(;r>0&&(a*=256);)n+=this[t+--r]*a;return n};q.prototype.readUint8=q.prototype.readUInt8=function(t,r){return t=t>>>0,r||at(t,1,this.length),this[t]};q.prototype.readUint16LE=q.prototype.readUInt16LE=function(t,r){return t=t>>>0,r||at(t,2,this.length),this[t]|this[t+1]<<8};q.prototype.readUint16BE=q.prototype.readUInt16BE=function(t,r){return t=t>>>0,r||at(t,2,this.length),this[t]<<8|this[t+1]};q.prototype.readUint32LE=q.prototype.readUInt32LE=function(t,r){return t=t>>>0,r||at(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+this[t+3]*16777216};q.prototype.readUint32BE=q.prototype.readUInt32BE=function(t,r){return t=t>>>0,r||at(t,4,this.length),this[t]*16777216+(this[t+1]<<16|this[t+2]<<8|this[t+3])};q.prototype.readBigUInt64LE=Zr(function(t){t=t>>>0,kn(t,"offset");let r=this[t],i=this[t+7];(r===void 0||i===void 0)&&La(t,this.length-8);let n=r+this[++t]*2**8+this[++t]*2**16+this[++t]*2**24,a=this[++t]+this[++t]*2**8+this[++t]*2**16+i*2**24;return BigInt(n)+(BigInt(a)<<BigInt(32))});q.prototype.readBigUInt64BE=Zr(function(t){t=t>>>0,kn(t,"offset");let r=this[t],i=this[t+7];(r===void 0||i===void 0)&&La(t,this.length-8);let n=r*2**24+this[++t]*2**16+this[++t]*2**8+this[++t],a=this[++t]*2**24+this[++t]*2**16+this[++t]*2**8+i;return(BigInt(n)<<BigInt(32))+BigInt(a)});q.prototype.readIntLE=function(t,r,i){t=t>>>0,r=r>>>0,i||at(t,r,this.length);let n=this[t],a=1,o=0;for(;++o<r&&(a*=256);)n+=this[t+o]*a;return a*=128,n>=a&&(n-=Math.pow(2,8*r)),n};q.prototype.readIntBE=function(t,r,i){t=t>>>0,r=r>>>0,i||at(t,r,this.length);let n=r,a=1,o=this[t+--n];for(;n>0&&(a*=256);)o+=this[t+--n]*a;return a*=128,o>=a&&(o-=Math.pow(2,8*r)),o};q.prototype.readInt8=function(t,r){return t=t>>>0,r||at(t,1,this.length),this[t]&128?(255-this[t]+1)*-1:this[t]};q.prototype.readInt16LE=function(t,r){t=t>>>0,r||at(t,2,this.length);let i=this[t]|this[t+1]<<8;return i&32768?i|4294901760:i};q.prototype.readInt16BE=function(t,r){t=t>>>0,r||at(t,2,this.length);let i=this[t+1]|this[t]<<8;return i&32768?i|4294901760:i};q.prototype.readInt32LE=function(t,r){return t=t>>>0,r||at(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24};q.prototype.readInt32BE=function(t,r){return t=t>>>0,r||at(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]};q.prototype.readBigInt64LE=Zr(function(t){t=t>>>0,kn(t,"offset");let r=this[t],i=this[t+7];(r===void 0||i===void 0)&&La(t,this.length-8);let n=this[t+4]+this[t+5]*2**8+this[t+6]*2**16+(i<<24);return(BigInt(n)<<BigInt(32))+BigInt(r+this[++t]*2**8+this[++t]*2**16+this[++t]*2**24)});q.prototype.readBigInt64BE=Zr(function(t){t=t>>>0,kn(t,"offset");let r=this[t],i=this[t+7];(r===void 0||i===void 0)&&La(t,this.length-8);let n=(r<<24)+this[++t]*2**16+this[++t]*2**8+this[++t];return(BigInt(n)<<BigInt(32))+BigInt(this[++t]*2**24+this[++t]*2**16+this[++t]*2**8+i)});q.prototype.readFloatLE=function(t,r){return t=t>>>0,r||at(t,4,this.length),Rn.read(this,t,!0,23,4)};q.prototype.readFloatBE=function(t,r){return t=t>>>0,r||at(t,4,this.length),Rn.read(this,t,!1,23,4)};q.prototype.readDoubleLE=function(t,r){return t=t>>>0,r||at(t,8,this.length),Rn.read(this,t,!0,52,8)};q.prototype.readDoubleBE=function(t,r){return t=t>>>0,r||at(t,8,this.length),Rn.read(this,t,!1,52,8)};function xt(e,t,r,i,n,a){if(!q.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>n||t<a)throw new RangeError('"value" argument is out of bounds');if(r+i>e.length)throw new RangeError("Index out of range")}q.prototype.writeUintLE=q.prototype.writeUIntLE=function(t,r,i,n){if(t=+t,r=r>>>0,i=i>>>0,!n){let s=Math.pow(2,8*i)-1;xt(this,t,r,i,s,0)}let a=1,o=0;for(this[r]=t&255;++o<i&&(a*=256);)this[r+o]=t/a&255;return r+i};q.prototype.writeUintBE=q.prototype.writeUIntBE=function(t,r,i,n){if(t=+t,r=r>>>0,i=i>>>0,!n){let s=Math.pow(2,8*i)-1;xt(this,t,r,i,s,0)}let a=i-1,o=1;for(this[r+a]=t&255;--a>=0&&(o*=256);)this[r+a]=t/o&255;return r+i};q.prototype.writeUint8=q.prototype.writeUInt8=function(t,r,i){return t=+t,r=r>>>0,i||xt(this,t,r,1,255,0),this[r]=t&255,r+1};q.prototype.writeUint16LE=q.prototype.writeUInt16LE=function(t,r,i){return t=+t,r=r>>>0,i||xt(this,t,r,2,65535,0),this[r]=t&255,this[r+1]=t>>>8,r+2};q.prototype.writeUint16BE=q.prototype.writeUInt16BE=function(t,r,i){return t=+t,r=r>>>0,i||xt(this,t,r,2,65535,0),this[r]=t>>>8,this[r+1]=t&255,r+2};q.prototype.writeUint32LE=q.prototype.writeUInt32LE=function(t,r,i){return t=+t,r=r>>>0,i||xt(this,t,r,4,4294967295,0),this[r+3]=t>>>24,this[r+2]=t>>>16,this[r+1]=t>>>8,this[r]=t&255,r+4};q.prototype.writeUint32BE=q.prototype.writeUInt32BE=function(t,r,i){return t=+t,r=r>>>0,i||xt(this,t,r,4,4294967295,0),this[r]=t>>>24,this[r+1]=t>>>16,this[r+2]=t>>>8,this[r+3]=t&255,r+4};function yd(e,t,r,i,n){wd(t,i,n,e,r,7);let a=Number(t&BigInt(4294967295));e[r++]=a,a=a>>8,e[r++]=a,a=a>>8,e[r++]=a,a=a>>8,e[r++]=a;let o=Number(t>>BigInt(32)&BigInt(4294967295));return e[r++]=o,o=o>>8,e[r++]=o,o=o>>8,e[r++]=o,o=o>>8,e[r++]=o,r}function gd(e,t,r,i,n){wd(t,i,n,e,r,7);let a=Number(t&BigInt(4294967295));e[r+7]=a,a=a>>8,e[r+6]=a,a=a>>8,e[r+5]=a,a=a>>8,e[r+4]=a;let o=Number(t>>BigInt(32)&BigInt(4294967295));return e[r+3]=o,o=o>>8,e[r+2]=o,o=o>>8,e[r+1]=o,o=o>>8,e[r]=o,r+8}q.prototype.writeBigUInt64LE=Zr(function(t,r=0){return yd(this,t,r,BigInt(0),BigInt("0xffffffffffffffff"))});q.prototype.writeBigUInt64BE=Zr(function(t,r=0){return gd(this,t,r,BigInt(0),BigInt("0xffffffffffffffff"))});q.prototype.writeIntLE=function(t,r,i,n){if(t=+t,r=r>>>0,!n){let y=Math.pow(2,8*i-1);xt(this,t,r,i,y-1,-y)}let a=0,o=1,s=0;for(this[r]=t&255;++a<i&&(o*=256);)t<0&&s===0&&this[r+a-1]!==0&&(s=1),this[r+a]=(t/o>>0)-s&255;return r+i};q.prototype.writeIntBE=function(t,r,i,n){if(t=+t,r=r>>>0,!n){let y=Math.pow(2,8*i-1);xt(this,t,r,i,y-1,-y)}let a=i-1,o=1,s=0;for(this[r+a]=t&255;--a>=0&&(o*=256);)t<0&&s===0&&this[r+a+1]!==0&&(s=1),this[r+a]=(t/o>>0)-s&255;return r+i};q.prototype.writeInt8=function(t,r,i){return t=+t,r=r>>>0,i||xt(this,t,r,1,127,-128),t<0&&(t=255+t+1),this[r]=t&255,r+1};q.prototype.writeInt16LE=function(t,r,i){return t=+t,r=r>>>0,i||xt(this,t,r,2,32767,-32768),this[r]=t&255,this[r+1]=t>>>8,r+2};q.prototype.writeInt16BE=function(t,r,i){return t=+t,r=r>>>0,i||xt(this,t,r,2,32767,-32768),this[r]=t>>>8,this[r+1]=t&255,r+2};q.prototype.writeInt32LE=function(t,r,i){return t=+t,r=r>>>0,i||xt(this,t,r,4,2147483647,-2147483648),this[r]=t&255,this[r+1]=t>>>8,this[r+2]=t>>>16,this[r+3]=t>>>24,r+4};q.prototype.writeInt32BE=function(t,r,i){return t=+t,r=r>>>0,i||xt(this,t,r,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),this[r]=t>>>24,this[r+1]=t>>>16,this[r+2]=t>>>8,this[r+3]=t&255,r+4};q.prototype.writeBigInt64LE=Zr(function(t,r=0){return yd(this,t,r,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});q.prototype.writeBigInt64BE=Zr(function(t,r=0){return gd(this,t,r,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function bd(e,t,r,i,n,a){if(r+i>e.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function _d(e,t,r,i,n){return t=+t,r=r>>>0,n||bd(e,t,r,4,34028234663852886e22,-34028234663852886e22),Rn.write(e,t,r,i,23,4),r+4}q.prototype.writeFloatLE=function(t,r,i){return _d(this,t,r,!0,i)};q.prototype.writeFloatBE=function(t,r,i){return _d(this,t,r,!1,i)};function md(e,t,r,i,n){return t=+t,r=r>>>0,n||bd(e,t,r,8,17976931348623157e292,-17976931348623157e292),Rn.write(e,t,r,i,52,8),r+8}q.prototype.writeDoubleLE=function(t,r,i){return md(this,t,r,!0,i)};q.prototype.writeDoubleBE=function(t,r,i){return md(this,t,r,!1,i)};q.prototype.copy=function(t,r,i,n){if(!q.isBuffer(t))throw new TypeError("argument should be a Buffer");if(i||(i=0),!n&&n!==0&&(n=this.length),r>=t.length&&(r=t.length),r||(r=0),n>0&&n<i&&(n=i),n===i||t.length===0||this.length===0)return 0;if(r<0)throw new RangeError("targetStart out of bounds");if(i<0||i>=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-r<n-i&&(n=t.length-r+i);let a=n-i;return this===t&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(r,i,n):Uint8Array.prototype.set.call(t,this.subarray(i,n),r),a};q.prototype.fill=function(t,r,i,n){if(typeof t=="string"){if(typeof r=="string"?(n=r,r=0,i=this.length):typeof i=="string"&&(n=i,i=this.length),n!==void 0&&typeof n!="string")throw new TypeError("encoding must be a string");if(typeof n=="string"&&!q.isEncoding(n))throw new TypeError("Unknown encoding: "+n);if(t.length===1){let o=t.charCodeAt(0);(n==="utf8"&&o<128||n==="latin1")&&(t=o)}}else typeof t=="number"?t=t&255:typeof t=="boolean"&&(t=Number(t));if(r<0||this.length<r||this.length<i)throw new RangeError("Out of range index");if(i<=r)return this;r=r>>>0,i=i===void 0?this.length:i>>>0,t||(t=0);let a;if(typeof t=="number")for(a=r;a<i;++a)this[a]=t;else{let o=q.isBuffer(t)?t:q.from(t,n),s=o.length;if(s===0)throw new TypeError('The value "'+t+'" is invalid for argument "value"');for(a=0;a<i-r;++a)this[a+r]=o[a%s]}return this};var Bn={};function nl(e,t,r){Bn[e]=class extends r{constructor(){super(),Object.defineProperty(this,"message",{value:t.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${e}]`,this.stack,delete this.name}get code(){return e}set code(n){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:n,writable:!0})}toString(){return`${this.name} [${e}]: ${this.message}`}}}nl("ERR_BUFFER_OUT_OF_BOUNDS",function(e){return e?`${e} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError);nl("ERR_INVALID_ARG_TYPE",function(e,t){return`The "${e}" argument must be of type number. Received type ${typeof t}`},TypeError);nl("ERR_OUT_OF_RANGE",function(e,t,r){let i=`The value of "${e}" is out of range.`,n=r;return Number.isInteger(r)&&Math.abs(r)>2**32?n=ld(String(r)):typeof r=="bigint"&&(n=String(r),(r>BigInt(2)**BigInt(32)||r<-(BigInt(2)**BigInt(32)))&&(n=ld(n)),n+="n"),i+=` It must be ${t}. Received ${n}`,i},RangeError);function ld(e){let t="",r=e.length,i=e[0]==="-"?1:0;for(;r>=i+4;r-=3)t=`_${e.slice(r-3,r)}${t}`;return`${e.slice(0,r)}${t}`}function S6(e,t,r){kn(t,"offset"),(e[t]===void 0||e[t+r]===void 0)&&La(t,e.length-(r+1))}function wd(e,t,r,i,n,a){if(e>r||e<t){let o=typeof t=="bigint"?"n":"",s;throw a>3?t===0||t===BigInt(0)?s=`>= 0${o} and < 2${o} ** ${(a+1)*8}${o}`:s=`>= -(2${o} ** ${(a+1)*8-1}${o}) and < 2 ** ${(a+1)*8-1}${o}`:s=`>= ${t}${o} and <= ${r}${o}`,new Bn.ERR_OUT_OF_RANGE("value",s,e)}S6(i,n,a)}function kn(e,t){if(typeof e!="number")throw new Bn.ERR_INVALID_ARG_TYPE(t,"number",e)}function La(e,t,r){throw Math.floor(e)!==e?(kn(e,r),new Bn.ERR_OUT_OF_RANGE(r||"offset","an integer",e)):t<0?new Bn.ERR_BUFFER_OUT_OF_BOUNDS:new Bn.ERR_OUT_OF_RANGE(r||"offset",`>= ${r?1:0} and <= ${t}`,e)}var M6=/[^+/0-9A-Za-z-_]/g;function A6(e){if(e=e.split("=")[0],e=e.trim().replace(M6,""),e.length<2)return"";for(;e.length%4!==0;)e=e+"=";return e}function tl(e,t){t=t||1/0;let r,i=e.length,n=null,a=[];for(let o=0;o<i;++o){if(r=e.charCodeAt(o),r>55295&&r<57344){if(!n){if(r>56319){(t-=3)>-1&&a.push(239,191,189);continue}else if(o+1===i){(t-=3)>-1&&a.push(239,191,189);continue}n=r;continue}if(r<56320){(t-=3)>-1&&a.push(239,191,189),n=r;continue}r=(n-55296<<10|r-56320)+65536}else n&&(t-=3)>-1&&a.push(239,191,189);if(n=null,r<128){if((t-=1)<0)break;a.push(r)}else if(r<2048){if((t-=2)<0)break;a.push(r>>6|192,r&63|128)}else if(r<65536){if((t-=3)<0)break;a.push(r>>12|224,r>>6&63|128,r&63|128)}else if(r<1114112){if((t-=4)<0)break;a.push(r>>18|240,r>>12&63|128,r>>6&63|128,r&63|128)}else throw new Error("Invalid code point")}return a}function B6(e){let t=[];for(let r=0;r<e.length;++r)t.push(e.charCodeAt(r)&255);return t}function R6(e,t){let r,i,n,a=[];for(let o=0;o<e.length&&!((t-=2)<0);++o)r=e.charCodeAt(o),i=r>>8,n=r%256,a.push(n),a.push(i);return a}function xd(e){return Xu.toByteArray(A6(e))}function pf(e,t,r,i){let n;for(n=0;n<i&&!(n+r>=t.length||n>=e.length);++n)t[n+r]=e[n];return n}function hr(e,t){return e instanceof t||e!=null&&e.constructor!=null&&e.constructor.name!=null&&e.constructor.name===t.name}function al(e){return e!==e}var k6=(function(){let e="0123456789abcdef",t=new Array(256);for(let r=0;r<16;++r){let i=r*16;for(let n=0;n<16;++n)t[i+n]=e[r]+e[n]}return t})();function Zr(e){return typeof BigInt>"u"?T6:e}function T6(){throw new Error("BigInt not supported")}});var M,I,m=$E(()=>{M=J0(rd()),I=J0(st())});var De=R((ol,Sd)=>{m();var vf=st(),cr=vf.Buffer;function Ed(e,t){for(var r in e)t[r]=e[r]}cr.from&&cr.alloc&&cr.allocUnsafe&&cr.allocUnsafeSlow?Sd.exports=vf:(Ed(vf,ol),ol.Buffer=Oi);function Oi(e,t,r){return cr(e,t,r)}Oi.prototype=Object.create(cr.prototype);Ed(cr,Oi);Oi.from=function(e,t,r){if(typeof e=="number")throw new TypeError("Argument must not be a number");return cr(e,t,r)};Oi.alloc=function(e,t,r){if(typeof e!="number")throw new TypeError("Argument must be a number");var i=cr(e);return t!==void 0?typeof r=="string"?i.fill(t,r):i.fill(t):i.fill(0),i};Oi.allocUnsafe=function(e){if(typeof e!="number")throw new TypeError("Argument must be a number");return cr(e)};Oi.allocUnsafeSlow=function(e){if(typeof e!="number")throw new TypeError("Argument must be a number");return vf.SlowBuffer(e)}});var qi=R((YO,sl)=>{"use strict";m();var fl=65536,I6=4294967295;function O6(){throw new Error(`Secure random number generation is not supported by this browser.
2
+ Use Chrome, Firefox or Internet Explorer 11`)}var q6=De().Buffer,yf=globalThis.crypto||globalThis.msCrypto;yf&&yf.getRandomValues?sl.exports=D6:sl.exports=O6;function D6(e,t){if(e>I6)throw new RangeError("requested too many random bytes");var r=q6.allocUnsafe(e);if(e>0)if(e>fl)for(var i=0;i<e;i+=fl)yf.getRandomValues(r.slice(i,i+fl));else yf.getRandomValues(r);return typeof t=="function"?M.default.nextTick(function(){t(null,r)}):r}});var Ke=R((XO,ul)=>{m();typeof Object.create=="function"?ul.exports=function(t,r){t.super_=r,t.prototype=Object.create(r.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}})}:ul.exports=function(t,r){t.super_=r;var i=function(){};i.prototype=r.prototype,t.prototype=new i,t.prototype.constructor=t}});var On=R((eq,ll)=>{"use strict";m();var In=typeof Reflect=="object"?Reflect:null,Md=In&&typeof In.apply=="function"?In.apply:function(t,r,i){return Function.prototype.apply.call(t,r,i)},gf;In&&typeof In.ownKeys=="function"?gf=In.ownKeys:Object.getOwnPropertySymbols?gf=function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:gf=function(t){return Object.getOwnPropertyNames(t)};function N6(e){console&&console.warn&&console.warn(e)}var Bd=Number.isNaN||function(t){return t!==t};function He(){He.init.call(this)}ll.exports=He;ll.exports.once=U6;He.EventEmitter=He;He.prototype._events=void 0;He.prototype._eventsCount=0;He.prototype._maxListeners=void 0;var Ad=10;function bf(e){if(typeof e!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}Object.defineProperty(He,"defaultMaxListeners",{enumerable:!0,get:function(){return Ad},set:function(e){if(typeof e!="number"||e<0||Bd(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");Ad=e}});He.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0};He.prototype.setMaxListeners=function(t){if(typeof t!="number"||t<0||Bd(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};function Rd(e){return e._maxListeners===void 0?He.defaultMaxListeners:e._maxListeners}He.prototype.getMaxListeners=function(){return Rd(this)};He.prototype.emit=function(t){for(var r=[],i=1;i<arguments.length;i++)r.push(arguments[i]);var n=t==="error",a=this._events;if(a!==void 0)n=n&&a.error===void 0;else if(!n)return!1;if(n){var o;if(r.length>0&&(o=r[0]),o instanceof Error)throw o;var s=new Error("Unhandled error."+(o?" ("+o.message+")":""));throw s.context=o,s}var y=a[t];if(y===void 0)return!1;if(typeof y=="function")Md(y,this,r);else for(var _=y.length,x=qd(y,_),i=0;i<_;++i)Md(x[i],this,r);return!0};function kd(e,t,r,i){var n,a,o;if(bf(r),a=e._events,a===void 0?(a=e._events=Object.create(null),e._eventsCount=0):(a.newListener!==void 0&&(e.emit("newListener",t,r.listener?r.listener:r),a=e._events),o=a[t]),o===void 0)o=a[t]=r,++e._eventsCount;else if(typeof o=="function"?o=a[t]=i?[r,o]:[o,r]:i?o.unshift(r):o.push(r),n=Rd(e),n>0&&o.length>n&&!o.warned){o.warned=!0;var s=new Error("Possible EventEmitter memory leak detected. "+o.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");s.name="MaxListenersExceededWarning",s.emitter=e,s.type=t,s.count=o.length,N6(s)}return e}He.prototype.addListener=function(t,r){return kd(this,t,r,!1)};He.prototype.on=He.prototype.addListener;He.prototype.prependListener=function(t,r){return kd(this,t,r,!0)};function P6(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function Td(e,t,r){var i={fired:!1,wrapFn:void 0,target:e,type:t,listener:r},n=P6.bind(i);return n.listener=r,i.wrapFn=n,n}He.prototype.once=function(t,r){return bf(r),this.on(t,Td(this,t,r)),this};He.prototype.prependOnceListener=function(t,r){return bf(r),this.prependListener(t,Td(this,t,r)),this};He.prototype.removeListener=function(t,r){var i,n,a,o,s;if(bf(r),n=this._events,n===void 0)return this;if(i=n[t],i===void 0)return this;if(i===r||i.listener===r)--this._eventsCount===0?this._events=Object.create(null):(delete n[t],n.removeListener&&this.emit("removeListener",t,i.listener||r));else if(typeof i!="function"){for(a=-1,o=i.length-1;o>=0;o--)if(i[o]===r||i[o].listener===r){s=i[o].listener,a=o;break}if(a<0)return this;a===0?i.shift():L6(i,a),i.length===1&&(n[t]=i[0]),n.removeListener!==void 0&&this.emit("removeListener",t,s||r)}return this};He.prototype.off=He.prototype.removeListener;He.prototype.removeAllListeners=function(t){var r,i,n;if(i=this._events,i===void 0)return this;if(i.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):i[t]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete i[t]),this;if(arguments.length===0){var a=Object.keys(i),o;for(n=0;n<a.length;++n)o=a[n],o!=="removeListener"&&this.removeAllListeners(o);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(r=i[t],typeof r=="function")this.removeListener(t,r);else if(r!==void 0)for(n=r.length-1;n>=0;n--)this.removeListener(t,r[n]);return this};function Id(e,t,r){var i=e._events;if(i===void 0)return[];var n=i[t];return n===void 0?[]:typeof n=="function"?r?[n.listener||n]:[n]:r?C6(n):qd(n,n.length)}He.prototype.listeners=function(t){return Id(this,t,!0)};He.prototype.rawListeners=function(t){return Id(this,t,!1)};He.listenerCount=function(e,t){return typeof e.listenerCount=="function"?e.listenerCount(t):Od.call(e,t)};He.prototype.listenerCount=Od;function Od(e){var t=this._events;if(t!==void 0){var r=t[e];if(typeof r=="function")return 1;if(r!==void 0)return r.length}return 0}He.prototype.eventNames=function(){return this._eventsCount>0?gf(this._events):[]};function qd(e,t){for(var r=new Array(t),i=0;i<t;++i)r[i]=e[i];return r}function L6(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}function C6(e){for(var t=new Array(e.length),r=0;r<t.length;++r)t[r]=e[r].listener||e[r];return t}function U6(e,t){return new Promise(function(r,i){function n(o){e.removeListener(t,a),i(o)}function a(){typeof e.removeListener=="function"&&e.removeListener("error",n),r([].slice.call(arguments))}Dd(e,t,a,{once:!0}),t!=="error"&&F6(e,n,{once:!0})})}function F6(e,t,r){typeof e.on=="function"&&Dd(e,"error",t,r)}function Dd(e,t,r,i){if(typeof e.on=="function")i.once?e.once(t,r):e.on(t,r);else if(typeof e.addEventListener=="function")e.addEventListener(t,function n(a){i.once&&e.removeEventListener(t,n),r(a)});else throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof e)}});var Di=R((rq,hl)=>{m();typeof Object.create=="function"?hl.exports=function(t,r){r&&(t.super_=r,t.prototype=Object.create(r.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:hl.exports=function(t,r){if(r){t.super_=r;var i=function(){};i.prototype=r.prototype,t.prototype=new i,t.prototype.constructor=t}}});var cl=R((nq,Nd)=>{m();Nd.exports=On().EventEmitter});var _f=R((oq,Pd)=>{"use strict";m();Pd.exports=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var t={},r=Symbol("test"),i=Object(r);if(typeof r=="string"||Object.prototype.toString.call(r)!=="[object Symbol]"||Object.prototype.toString.call(i)!=="[object Symbol]")return!1;var n=42;t[r]=n;for(var a in t)return!1;if(typeof Object.keys=="function"&&Object.keys(t).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(t).length!==0)return!1;var o=Object.getOwnPropertySymbols(t);if(o.length!==1||o[0]!==r||!Object.prototype.propertyIsEnumerable.call(t,r))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var s=Object.getOwnPropertyDescriptor(t,r);if(s.value!==n||s.enumerable!==!0)return!1}return!0}});var Ca=R((sq,Ld)=>{"use strict";m();var j6=_f();Ld.exports=function(){return j6()&&!!Symbol.toStringTag}});var mf=R((lq,Cd)=>{"use strict";m();Cd.exports=Object});var Fd=R((cq,Ud)=>{"use strict";m();Ud.exports=Error});var zd=R((pq,jd)=>{"use strict";m();jd.exports=EvalError});var Hd=R((yq,Zd)=>{"use strict";m();Zd.exports=RangeError});var Kd=R((bq,Wd)=>{"use strict";m();Wd.exports=ReferenceError});var dl=R((mq,Gd)=>{"use strict";m();Gd.exports=SyntaxError});var Ni=R((xq,Vd)=>{"use strict";m();Vd.exports=TypeError});var Yd=R((Sq,$d)=>{"use strict";m();$d.exports=URIError});var Xd=R((Aq,Jd)=>{"use strict";m();Jd.exports=Math.abs});var ep=R((Rq,Qd)=>{"use strict";m();Qd.exports=Math.floor});var rp=R((Tq,tp)=>{"use strict";m();tp.exports=Math.max});var np=R((Oq,ip)=>{"use strict";m();ip.exports=Math.min});var op=R((Dq,ap)=>{"use strict";m();ap.exports=Math.pow});var sp=R((Pq,fp)=>{"use strict";m();fp.exports=Math.round});var lp=R((Cq,up)=>{"use strict";m();up.exports=Number.isNaN||function(t){return t!==t}});var cp=R((Fq,hp)=>{"use strict";m();var z6=lp();hp.exports=function(t){return z6(t)||t===0?t:t<0?-1:1}});var pp=R((zq,dp)=>{"use strict";m();dp.exports=Object.getOwnPropertyDescriptor});var Pi=R((Hq,vp)=>{"use strict";m();var wf=pp();if(wf)try{wf([],"length")}catch{wf=null}vp.exports=wf});var Ua=R((Kq,yp)=>{"use strict";m();var xf=Object.defineProperty||!1;if(xf)try{xf({},"a",{value:1})}catch{xf=!1}yp.exports=xf});var _p=R((Vq,bp)=>{"use strict";m();var gp=typeof Symbol<"u"&&Symbol,Z6=_f();bp.exports=function(){return typeof gp!="function"||typeof Symbol!="function"||typeof gp("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:Z6()}});var pl=R((Yq,mp)=>{"use strict";m();mp.exports=typeof Reflect<"u"&&Reflect.getPrototypeOf||null});var vl=R((Xq,wp)=>{"use strict";m();var H6=mf();wp.exports=H6.getPrototypeOf||null});var Sp=R((e9,Ep)=>{"use strict";m();var W6="Function.prototype.bind called on incompatible ",K6=Object.prototype.toString,G6=Math.max,V6="[object Function]",xp=function(t,r){for(var i=[],n=0;n<t.length;n+=1)i[n]=t[n];for(var a=0;a<r.length;a+=1)i[a+t.length]=r[a];return i},$6=function(t,r){for(var i=[],n=r||0,a=0;n<t.length;n+=1,a+=1)i[a]=t[n];return i},Y6=function(e,t){for(var r="",i=0;i<e.length;i+=1)r+=e[i],i+1<e.length&&(r+=t);return r};Ep.exports=function(t){var r=this;if(typeof r!="function"||K6.apply(r)!==V6)throw new TypeError(W6+r);for(var i=$6(arguments,1),n,a=function(){if(this instanceof n){var x=r.apply(this,xp(i,arguments));return Object(x)===x?x:this}return r.apply(t,xp(i,arguments))},o=G6(0,r.length-i.length),s=[],y=0;y<o;y++)s[y]="$"+y;if(n=Function("binder","return function ("+Y6(s,",")+"){ return binder.apply(this,arguments); }")(a),r.prototype){var _=function(){};_.prototype=r.prototype,n.prototype=new _,_.prototype=null}return n}});var qn=R((r9,Mp)=>{"use strict";m();var J6=Sp();Mp.exports=Function.prototype.bind||J6});var Ef=R((n9,Ap)=>{"use strict";m();Ap.exports=Function.prototype.call});var Sf=R((o9,Bp)=>{"use strict";m();Bp.exports=Function.prototype.apply});var kp=R((s9,Rp)=>{"use strict";m();Rp.exports=typeof Reflect<"u"&&Reflect&&Reflect.apply});var yl=R((l9,Tp)=>{"use strict";m();var X6=qn(),Q6=Sf(),e3=Ef(),t3=kp();Tp.exports=t3||X6.call(e3,Q6)});var Mf=R((c9,Ip)=>{"use strict";m();var r3=qn(),i3=Ni(),n3=Ef(),a3=yl();Ip.exports=function(t){if(t.length<1||typeof t[0]!="function")throw new i3("a function is required");return a3(r3,n3,t)}});var Lp=R((p9,Pp)=>{"use strict";m();var o3=Mf(),Op=Pi(),Dp;try{Dp=[].__proto__===Array.prototype}catch(e){if(!e||typeof e!="object"||!("code"in e)||e.code!=="ERR_PROTO_ACCESS")throw e}var gl=!!Dp&&Op&&Op(Object.prototype,"__proto__"),Np=Object,qp=Np.getPrototypeOf;Pp.exports=gl&&typeof gl.get=="function"?o3([gl.get]):typeof qp=="function"?function(t){return qp(t==null?t:Np(t))}:!1});var Af=R((y9,jp)=>{"use strict";m();var Cp=pl(),Up=vl(),Fp=Lp();jp.exports=Cp?function(t){return Cp(t)}:Up?function(t){if(!t||typeof t!="object"&&typeof t!="function")throw new TypeError("getProto: not an object");return Up(t)}:Fp?function(t){return Fp(t)}:null});var bl=R((b9,zp)=>{"use strict";m();var f3=Function.prototype.call,s3=Object.prototype.hasOwnProperty,u3=qn();zp.exports=u3.call(f3,s3)});var kf=R((m9,Vp)=>{"use strict";m();var Le,l3=mf(),h3=Fd(),c3=zd(),d3=Hd(),p3=Kd(),Ln=dl(),Pn=Ni(),v3=Yd(),y3=Xd(),g3=ep(),b3=rp(),_3=np(),m3=op(),w3=sp(),x3=cp(),Kp=Function,_l=function(e){try{return Kp('"use strict"; return ('+e+").constructor;")()}catch{}},Fa=Pi(),E3=Ua(),ml=function(){throw new Pn},S3=Fa?(function(){try{return arguments.callee,ml}catch{try{return Fa(arguments,"callee").get}catch{return ml}}})():ml,Dn=_p()(),ot=Af(),M3=vl(),A3=pl(),Gp=Sf(),ja=Ef(),Nn={},B3=typeof Uint8Array>"u"||!ot?Le:ot(Uint8Array),Li={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?Le:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?Le:ArrayBuffer,"%ArrayIteratorPrototype%":Dn&&ot?ot([][Symbol.iterator]()):Le,"%AsyncFromSyncIteratorPrototype%":Le,"%AsyncFunction%":Nn,"%AsyncGenerator%":Nn,"%AsyncGeneratorFunction%":Nn,"%AsyncIteratorPrototype%":Nn,"%Atomics%":typeof Atomics>"u"?Le:Atomics,"%BigInt%":typeof BigInt>"u"?Le:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?Le:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?Le:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?Le:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":h3,"%eval%":eval,"%EvalError%":c3,"%Float16Array%":typeof Float16Array>"u"?Le:Float16Array,"%Float32Array%":typeof Float32Array>"u"?Le:Float32Array,"%Float64Array%":typeof Float64Array>"u"?Le:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?Le:FinalizationRegistry,"%Function%":Kp,"%GeneratorFunction%":Nn,"%Int8Array%":typeof Int8Array>"u"?Le:Int8Array,"%Int16Array%":typeof Int16Array>"u"?Le:Int16Array,"%Int32Array%":typeof Int32Array>"u"?Le:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":Dn&&ot?ot(ot([][Symbol.iterator]())):Le,"%JSON%":typeof JSON=="object"?JSON:Le,"%Map%":typeof Map>"u"?Le:Map,"%MapIteratorPrototype%":typeof Map>"u"||!Dn||!ot?Le:ot(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":l3,"%Object.getOwnPropertyDescriptor%":Fa,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?Le:Promise,"%Proxy%":typeof Proxy>"u"?Le:Proxy,"%RangeError%":d3,"%ReferenceError%":p3,"%Reflect%":typeof Reflect>"u"?Le:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?Le:Set,"%SetIteratorPrototype%":typeof Set>"u"||!Dn||!ot?Le:ot(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?Le:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":Dn&&ot?ot(""[Symbol.iterator]()):Le,"%Symbol%":Dn?Symbol:Le,"%SyntaxError%":Ln,"%ThrowTypeError%":S3,"%TypedArray%":B3,"%TypeError%":Pn,"%Uint8Array%":typeof Uint8Array>"u"?Le:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?Le:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?Le:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?Le:Uint32Array,"%URIError%":v3,"%WeakMap%":typeof WeakMap>"u"?Le:WeakMap,"%WeakRef%":typeof WeakRef>"u"?Le:WeakRef,"%WeakSet%":typeof WeakSet>"u"?Le:WeakSet,"%Function.prototype.call%":ja,"%Function.prototype.apply%":Gp,"%Object.defineProperty%":E3,"%Object.getPrototypeOf%":M3,"%Math.abs%":y3,"%Math.floor%":g3,"%Math.max%":b3,"%Math.min%":_3,"%Math.pow%":m3,"%Math.round%":w3,"%Math.sign%":x3,"%Reflect.getPrototypeOf%":A3};if(ot)try{null.error}catch(e){Zp=ot(ot(e)),Li["%Error.prototype%"]=Zp}var Zp,R3=function e(t){var r;if(t==="%AsyncFunction%")r=_l("async function () {}");else if(t==="%GeneratorFunction%")r=_l("function* () {}");else if(t==="%AsyncGeneratorFunction%")r=_l("async function* () {}");else if(t==="%AsyncGenerator%"){var i=e("%AsyncGeneratorFunction%");i&&(r=i.prototype)}else if(t==="%AsyncIteratorPrototype%"){var n=e("%AsyncGenerator%");n&&ot&&(r=ot(n.prototype))}return Li[t]=r,r},Hp={__proto__:null,"%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"]},za=qn(),Bf=bl(),k3=za.call(ja,Array.prototype.concat),T3=za.call(Gp,Array.prototype.splice),Wp=za.call(ja,String.prototype.replace),Rf=za.call(ja,String.prototype.slice),I3=za.call(ja,RegExp.prototype.exec),O3=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,q3=/\\(\\)?/g,D3=function(t){var r=Rf(t,0,1),i=Rf(t,-1);if(r==="%"&&i!=="%")throw new Ln("invalid intrinsic syntax, expected closing `%`");if(i==="%"&&r!=="%")throw new Ln("invalid intrinsic syntax, expected opening `%`");var n=[];return Wp(t,O3,function(a,o,s,y){n[n.length]=s?Wp(y,q3,"$1"):o||a}),n},N3=function(t,r){var i=t,n;if(Bf(Hp,i)&&(n=Hp[i],i="%"+n[0]+"%"),Bf(Li,i)){var a=Li[i];if(a===Nn&&(a=R3(i)),typeof a>"u"&&!r)throw new Pn("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:n,name:i,value:a}}throw new Ln("intrinsic "+t+" does not exist!")};Vp.exports=function(t,r){if(typeof t!="string"||t.length===0)throw new Pn("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof r!="boolean")throw new Pn('"allowMissing" argument must be a boolean');if(I3(/^%?[^%]*%?$/,t)===null)throw new Ln("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var i=D3(t),n=i.length>0?i[0]:"",a=N3("%"+n+"%",r),o=a.name,s=a.value,y=!1,_=a.alias;_&&(n=_[0],T3(i,k3([0,1],_)));for(var x=1,B=!0;x<i.length;x+=1){var k=i[x],T=Rf(k,0,1),O=Rf(k,-1);if((T==='"'||T==="'"||T==="`"||O==='"'||O==="'"||O==="`")&&T!==O)throw new Ln("property names with quotes must have matching quotes");if((k==="constructor"||!B)&&(y=!0),n+="."+k,o="%"+n+"%",Bf(Li,o))s=Li[o];else if(s!=null){if(!(k in s)){if(!r)throw new Pn("base intrinsic for "+t+" exists, but the property is not available.");return}if(Fa&&x+1>=i.length){var D=Fa(s,k);B=!!D,B&&"get"in D&&!("originalValue"in D.get)?s=D.get:s=s[k]}else B=Bf(s,k),s=s[k];B&&!y&&(Li[o]=s)}}return s}});var Hr=R((x9,Jp)=>{"use strict";m();var $p=kf(),Yp=Mf(),P3=Yp([$p("%String.prototype.indexOf%")]);Jp.exports=function(t,r){var i=$p(t,!!r);return typeof i=="function"&&P3(t,".prototype.")>-1?Yp([i]):i}});var ev=R((S9,Qp)=>{"use strict";m();var L3=Ca()(),C3=Hr(),wl=C3("Object.prototype.toString"),Tf=function(t){return L3&&t&&typeof t=="object"&&Symbol.toStringTag in t?!1:wl(t)==="[object Arguments]"},Xp=function(t){return Tf(t)?!0:t!==null&&typeof t=="object"&&"length"in t&&typeof t.length=="number"&&t.length>=0&&wl(t)!=="[object Array]"&&"callee"in t&&wl(t.callee)==="[object Function]"},U3=(function(){return Tf(arguments)})();Tf.isLegacyArguments=Xp;Qp.exports=U3?Tf:Xp});var ov=R((A9,av)=>{"use strict";m();var tv=Hr(),F3=Ca()(),j3=bl(),z3=Pi(),Sl;F3?(rv=tv("RegExp.prototype.exec"),xl={},If=function(){throw xl},El={toString:If,valueOf:If},typeof Symbol.toPrimitive=="symbol"&&(El[Symbol.toPrimitive]=If),Sl=function(t){if(!t||typeof t!="object")return!1;var r=z3(t,"lastIndex"),i=r&&j3(r,"value");if(!i)return!1;try{rv(t,El)}catch(n){return n===xl}}):(iv=tv("Object.prototype.toString"),nv="[object RegExp]",Sl=function(t){return!t||typeof t!="object"&&typeof t!="function"?!1:iv(t)===nv});var rv,xl,If,El,iv,nv;av.exports=Sl});var sv=R((R9,fv)=>{"use strict";m();var Z3=Hr(),H3=ov(),W3=Z3("RegExp.prototype.exec"),K3=Ni();fv.exports=function(t){if(!H3(t))throw new K3("`regex` must be a RegExp");return function(i){return W3(t,i)!==null}}});var lv=R((T9,uv)=>{"use strict";m();var G3=function*(){}.constructor;uv.exports=()=>G3});var pv=R((O9,dv)=>{"use strict";m();var cv=Hr(),V3=sv(),$3=V3(/^\s*(?:function)?\*/),Y3=Ca()(),hv=Af(),J3=cv("Object.prototype.toString"),X3=cv("Function.prototype.toString"),Q3=lv();dv.exports=function(t){if(typeof t!="function")return!1;if($3(X3(t)))return!0;if(!Y3){var r=J3(t);return r==="[object GeneratorFunction]"}if(!hv)return!1;var i=Q3();return i&&hv(t)===i.prototype}});var bv=R((D9,gv)=>{"use strict";m();var yv=Function.prototype.toString,Cn=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply,Al,Of;if(typeof Cn=="function"&&typeof Object.defineProperty=="function")try{Al=Object.defineProperty({},"length",{get:function(){throw Of}}),Of={},Cn(function(){throw 42},null,Al)}catch(e){e!==Of&&(Cn=null)}else Cn=null;var eS=/^\s*class\b/,Bl=function(t){try{var r=yv.call(t);return eS.test(r)}catch{return!1}},Ml=function(t){try{return Bl(t)?!1:(yv.call(t),!0)}catch{return!1}},qf=Object.prototype.toString,tS="[object Object]",rS="[object Function]",iS="[object GeneratorFunction]",nS="[object HTMLAllCollection]",aS="[object HTML document.all class]",oS="[object HTMLCollection]",fS=typeof Symbol=="function"&&!!Symbol.toStringTag,sS=!(0 in[,]),Rl=function(){return!1};typeof document=="object"&&(vv=document.all,qf.call(vv)===qf.call(document.all)&&(Rl=function(t){if((sS||!t)&&(typeof t>"u"||typeof t=="object"))try{var r=qf.call(t);return(r===nS||r===aS||r===oS||r===tS)&&t("")==null}catch{}return!1}));var vv;gv.exports=Cn?function(t){if(Rl(t))return!0;if(!t||typeof t!="function"&&typeof t!="object")return!1;try{Cn(t,null,Al)}catch(r){if(r!==Of)return!1}return!Bl(t)&&Ml(t)}:function(t){if(Rl(t))return!0;if(!t||typeof t!="function"&&typeof t!="object")return!1;if(fS)return Ml(t);if(Bl(t))return!1;var r=qf.call(t);return r!==rS&&r!==iS&&!/^\[object HTML/.test(r)?!1:Ml(t)}});var wv=R((P9,mv)=>{"use strict";m();var uS=bv(),lS=Object.prototype.toString,_v=Object.prototype.hasOwnProperty,hS=function(t,r,i){for(var n=0,a=t.length;n<a;n++)_v.call(t,n)&&(i==null?r(t[n],n,t):r.call(i,t[n],n,t))},cS=function(t,r,i){for(var n=0,a=t.length;n<a;n++)i==null?r(t.charAt(n),n,t):r.call(i,t.charAt(n),n,t)},dS=function(t,r,i){for(var n in t)_v.call(t,n)&&(i==null?r(t[n],n,t):r.call(i,t[n],n,t))};function pS(e){return lS.call(e)==="[object Array]"}mv.exports=function(t,r,i){if(!uS(r))throw new TypeError("iterator must be a function");var n;arguments.length>=3&&(n=i),pS(t)?hS(t,r,n):typeof t=="string"?cS(t,r,n):dS(t,r,n)}});var Ev=R((C9,xv)=>{"use strict";m();xv.exports=["Float16Array","Float32Array","Float64Array","Int8Array","Int16Array","Int32Array","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array"]});var Mv=R((F9,Sv)=>{"use strict";m();var kl=Ev(),vS=globalThis;Sv.exports=function(){for(var t=[],r=0;r<kl.length;r++)typeof vS[kl[r]]=="function"&&(t[t.length]=kl[r]);return t}});var Tl=R((z9,Rv)=>{"use strict";m();var Av=Ua(),yS=dl(),Un=Ni(),Bv=Pi();Rv.exports=function(t,r,i){if(!t||typeof t!="object"&&typeof t!="function")throw new Un("`obj` must be an object or a function`");if(typeof r!="string"&&typeof r!="symbol")throw new Un("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new Un("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new Un("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new Un("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new Un("`loose`, if provided, must be a boolean");var n=arguments.length>3?arguments[3]:null,a=arguments.length>4?arguments[4]:null,o=arguments.length>5?arguments[5]:null,s=arguments.length>6?arguments[6]:!1,y=!!Bv&&Bv(t,r);if(Av)Av(t,r,{configurable:o===null&&y?y.configurable:!o,enumerable:n===null&&y?y.enumerable:!n,value:i,writable:a===null&&y?y.writable:!a});else if(s||!n&&!a&&!o)t[r]=i;else throw new yS("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")}});var Ol=R((H9,Tv)=>{"use strict";m();var Il=Ua(),kv=function(){return!!Il};kv.hasArrayLengthDefineBug=function(){if(!Il)return null;try{return Il([],"length",{value:1}).length!==1}catch{return!0}};Tv.exports=kv});var Nv=R((K9,Dv)=>{"use strict";m();var gS=kf(),Iv=Tl(),bS=Ol()(),Ov=Pi(),qv=Ni(),_S=gS("%Math.floor%");Dv.exports=function(t,r){if(typeof t!="function")throw new qv("`fn` is not a function");if(typeof r!="number"||r<0||r>4294967295||_S(r)!==r)throw new qv("`length` must be a positive 32-bit integer");var i=arguments.length>2&&!!arguments[2],n=!0,a=!0;if("length"in t&&Ov){var o=Ov(t,"length");o&&!o.configurable&&(n=!1),o&&!o.writable&&(a=!1)}return(n||a||!i)&&(bS?Iv(t,"length",r,!0,!0):Iv(t,"length",r)),t}});var Lv=R((V9,Pv)=>{"use strict";m();var mS=qn(),wS=Sf(),xS=yl();Pv.exports=function(){return xS(mS,wS,arguments)}});var Za=R((Y9,Df)=>{"use strict";m();var ES=Nv(),Cv=Ua(),SS=Mf(),Uv=Lv();Df.exports=function(t){var r=SS(arguments),i=1+t.length-(arguments.length-1);return ES(r,i>0?i:0,!0)};Cv?Cv(Df.exports,"apply",{value:Uv}):Df.exports.apply=Uv});var Pl=R((X9,Zv)=>{"use strict";m();var Lf=wv(),MS=Mv(),Fv=Za(),Dl=Hr(),Pf=Pi(),Nf=Af(),AS=Dl("Object.prototype.toString"),zv=Ca()(),jv=globalThis,ql=MS(),Nl=Dl("String.prototype.slice"),BS=Dl("Array.prototype.indexOf",!0)||function(t,r){for(var i=0;i<t.length;i+=1)if(t[i]===r)return i;return-1},Cf={__proto__:null};zv&&Pf&&Nf?Lf(ql,function(e){var t=new jv[e];if(Symbol.toStringTag in t&&Nf){var r=Nf(t),i=Pf(r,Symbol.toStringTag);if(!i&&r){var n=Nf(r);i=Pf(n,Symbol.toStringTag)}if(i&&i.get){var a=Fv(i.get);Cf["$"+e]=a}}}):Lf(ql,function(e){var t=new jv[e],r=t.slice||t.set;if(r){var i=Fv(r);Cf["$"+e]=i}});var RS=function(t){var r=!1;return Lf(Cf,function(i,n){if(!r)try{"$"+i(t)===n&&(r=Nl(n,1))}catch{}}),r},kS=function(t){var r=!1;return Lf(Cf,function(i,n){if(!r)try{i(t),r=Nl(n,1)}catch{}}),r};Zv.exports=function(t){if(!t||typeof t!="object")return!1;if(!zv){var r=Nl(AS(t),8,-1);return BS(ql,r)>-1?r:r!=="Object"?!1:kS(t)}return Pf?RS(t):null}});var Ll=R((eD,Hv)=>{"use strict";m();var TS=Pl();Hv.exports=function(t){return!!TS(t)}});var ny=R(Ce=>{"use strict";m();var IS=ev(),OS=pv(),Kt=Pl(),Wv=Ll();function Fn(e){return e.call.bind(e)}var Kv=typeof BigInt<"u",Gv=typeof Symbol<"u",It=Fn(Object.prototype.toString),qS=Fn(Number.prototype.valueOf),DS=Fn(String.prototype.valueOf),NS=Fn(Boolean.prototype.valueOf);Kv&&(Vv=Fn(BigInt.prototype.valueOf));var Vv;Gv&&($v=Fn(Symbol.prototype.valueOf));var $v;function Wa(e,t){if(typeof e!="object")return!1;try{return t(e),!0}catch{return!1}}Ce.isArgumentsObject=IS;Ce.isGeneratorFunction=OS;Ce.isTypedArray=Wv;function PS(e){return typeof Promise<"u"&&e instanceof Promise||e!==null&&typeof e=="object"&&typeof e.then=="function"&&typeof e.catch=="function"}Ce.isPromise=PS;function LS(e){return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?ArrayBuffer.isView(e):Wv(e)||Jv(e)}Ce.isArrayBufferView=LS;function CS(e){return Kt(e)==="Uint8Array"}Ce.isUint8Array=CS;function US(e){return Kt(e)==="Uint8ClampedArray"}Ce.isUint8ClampedArray=US;function FS(e){return Kt(e)==="Uint16Array"}Ce.isUint16Array=FS;function jS(e){return Kt(e)==="Uint32Array"}Ce.isUint32Array=jS;function zS(e){return Kt(e)==="Int8Array"}Ce.isInt8Array=zS;function ZS(e){return Kt(e)==="Int16Array"}Ce.isInt16Array=ZS;function HS(e){return Kt(e)==="Int32Array"}Ce.isInt32Array=HS;function WS(e){return Kt(e)==="Float32Array"}Ce.isFloat32Array=WS;function KS(e){return Kt(e)==="Float64Array"}Ce.isFloat64Array=KS;function GS(e){return Kt(e)==="BigInt64Array"}Ce.isBigInt64Array=GS;function VS(e){return Kt(e)==="BigUint64Array"}Ce.isBigUint64Array=VS;function Uf(e){return It(e)==="[object Map]"}Uf.working=typeof Map<"u"&&Uf(new Map);function $S(e){return typeof Map>"u"?!1:Uf.working?Uf(e):e instanceof Map}Ce.isMap=$S;function Ff(e){return It(e)==="[object Set]"}Ff.working=typeof Set<"u"&&Ff(new Set);function YS(e){return typeof Set>"u"?!1:Ff.working?Ff(e):e instanceof Set}Ce.isSet=YS;function jf(e){return It(e)==="[object WeakMap]"}jf.working=typeof WeakMap<"u"&&jf(new WeakMap);function JS(e){return typeof WeakMap>"u"?!1:jf.working?jf(e):e instanceof WeakMap}Ce.isWeakMap=JS;function Ul(e){return It(e)==="[object WeakSet]"}Ul.working=typeof WeakSet<"u"&&Ul(new WeakSet);function XS(e){return Ul(e)}Ce.isWeakSet=XS;function zf(e){return It(e)==="[object ArrayBuffer]"}zf.working=typeof ArrayBuffer<"u"&&zf(new ArrayBuffer);function Yv(e){return typeof ArrayBuffer>"u"?!1:zf.working?zf(e):e instanceof ArrayBuffer}Ce.isArrayBuffer=Yv;function Zf(e){return It(e)==="[object DataView]"}Zf.working=typeof ArrayBuffer<"u"&&typeof DataView<"u"&&Zf(new DataView(new ArrayBuffer(1),0,1));function Jv(e){return typeof DataView>"u"?!1:Zf.working?Zf(e):e instanceof DataView}Ce.isDataView=Jv;var Cl=typeof SharedArrayBuffer<"u"?SharedArrayBuffer:void 0;function Ha(e){return It(e)==="[object SharedArrayBuffer]"}function Xv(e){return typeof Cl>"u"?!1:(typeof Ha.working>"u"&&(Ha.working=Ha(new Cl)),Ha.working?Ha(e):e instanceof Cl)}Ce.isSharedArrayBuffer=Xv;function QS(e){return It(e)==="[object AsyncFunction]"}Ce.isAsyncFunction=QS;function e8(e){return It(e)==="[object Map Iterator]"}Ce.isMapIterator=e8;function t8(e){return It(e)==="[object Set Iterator]"}Ce.isSetIterator=t8;function r8(e){return It(e)==="[object Generator]"}Ce.isGeneratorObject=r8;function i8(e){return It(e)==="[object WebAssembly.Module]"}Ce.isWebAssemblyCompiledModule=i8;function Qv(e){return Wa(e,qS)}Ce.isNumberObject=Qv;function ey(e){return Wa(e,DS)}Ce.isStringObject=ey;function ty(e){return Wa(e,NS)}Ce.isBooleanObject=ty;function ry(e){return Kv&&Wa(e,Vv)}Ce.isBigIntObject=ry;function iy(e){return Gv&&Wa(e,$v)}Ce.isSymbolObject=iy;function n8(e){return Qv(e)||ey(e)||ty(e)||ry(e)||iy(e)}Ce.isBoxedPrimitive=n8;function a8(e){return typeof Uint8Array<"u"&&(Yv(e)||Xv(e))}Ce.isAnyArrayBuffer=a8;["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(e){Object.defineProperty(Ce,e,{enumerable:!1,value:function(){throw new Error(e+" is not supported in userland")}})})});var oy=R((nD,ay)=>{m();ay.exports=function(t){return t&&typeof t=="object"&&typeof t.copy=="function"&&typeof t.fill=="function"&&typeof t.readUInt8=="function"}});var Gt=R(Ue=>{m();var fy=Object.getOwnPropertyDescriptors||function(t){for(var r=Object.keys(t),i={},n=0;n<r.length;n++)i[r[n]]=Object.getOwnPropertyDescriptor(t,r[n]);return i},o8=/%[sdj%]/g;Ue.format=function(e){if(!Yf(e)){for(var t=[],r=0;r<arguments.length;r++)t.push(Wr(arguments[r]));return t.join(" ")}for(var r=1,i=arguments,n=i.length,a=String(e).replace(o8,function(s){if(s==="%%")return"%";if(r>=n)return s;switch(s){case"%s":return String(i[r++]);case"%d":return Number(i[r++]);case"%j":try{return JSON.stringify(i[r++])}catch{return"[Circular]"}default:return s}}),o=i[r];r<n;o=i[++r])$f(o)||!jn(o)?a+=" "+o:a+=" "+Wr(o);return a};Ue.deprecate=function(e,t){if(typeof M.default<"u"&&M.default.noDeprecation===!0)return e;if(typeof M.default>"u")return function(){return Ue.deprecate(e,t).apply(this,arguments)};var r=!1;function i(){if(!r){if(M.default.throwDeprecation)throw new Error(t);M.default.traceDeprecation?console.trace(t):console.error(t),r=!0}return e.apply(this,arguments)}return i};var Hf={},sy=/^$/;M.default.env.NODE_DEBUG&&(Wf=M.default.env.NODE_DEBUG,Wf=Wf.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase(),sy=new RegExp("^"+Wf+"$","i"));var Wf;Ue.debuglog=function(e){if(e=e.toUpperCase(),!Hf[e])if(sy.test(e)){var t=M.default.pid;Hf[e]=function(){var r=Ue.format.apply(Ue,arguments);console.error("%s %d: %s",e,t,r)}}else Hf[e]=function(){};return Hf[e]};function Wr(e,t){var r={seen:[],stylize:s8};return arguments.length>=3&&(r.depth=arguments[2]),arguments.length>=4&&(r.colors=arguments[3]),Zl(t)?r.showHidden=t:t&&Ue._extend(r,t),Ui(r.showHidden)&&(r.showHidden=!1),Ui(r.depth)&&(r.depth=2),Ui(r.colors)&&(r.colors=!1),Ui(r.customInspect)&&(r.customInspect=!0),r.colors&&(r.stylize=f8),Gf(r,e,r.depth)}Ue.inspect=Wr;Wr.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]};Wr.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function f8(e,t){var r=Wr.styles[t];return r?"\x1B["+Wr.colors[r][0]+"m"+e+"\x1B["+Wr.colors[r][1]+"m":e}function s8(e,t){return e}function u8(e){var t={};return e.forEach(function(r,i){t[r]=!0}),t}function Gf(e,t,r){if(e.customInspect&&t&&Kf(t.inspect)&&t.inspect!==Ue.inspect&&!(t.constructor&&t.constructor.prototype===t)){var i=t.inspect(r,e);return Yf(i)||(i=Gf(e,i,r)),i}var n=l8(e,t);if(n)return n;var a=Object.keys(t),o=u8(a);if(e.showHidden&&(a=Object.getOwnPropertyNames(t)),Ga(t)&&(a.indexOf("message")>=0||a.indexOf("description")>=0))return Fl(t);if(a.length===0){if(Kf(t)){var s=t.name?": "+t.name:"";return e.stylize("[Function"+s+"]","special")}if(Ka(t))return e.stylize(RegExp.prototype.toString.call(t),"regexp");if(Vf(t))return e.stylize(Date.prototype.toString.call(t),"date");if(Ga(t))return Fl(t)}var y="",_=!1,x=["{","}"];if(uy(t)&&(_=!0,x=["[","]"]),Kf(t)){var B=t.name?": "+t.name:"";y=" [Function"+B+"]"}if(Ka(t)&&(y=" "+RegExp.prototype.toString.call(t)),Vf(t)&&(y=" "+Date.prototype.toUTCString.call(t)),Ga(t)&&(y=" "+Fl(t)),a.length===0&&(!_||t.length==0))return x[0]+y+x[1];if(r<0)return Ka(t)?e.stylize(RegExp.prototype.toString.call(t),"regexp"):e.stylize("[Object]","special");e.seen.push(t);var k;return _?k=h8(e,t,r,o,a):k=a.map(function(T){return zl(e,t,r,o,T,_)}),e.seen.pop(),c8(k,y,x)}function l8(e,t){if(Ui(t))return e.stylize("undefined","undefined");if(Yf(t)){var r="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(r,"string")}if(ly(t))return e.stylize(""+t,"number");if(Zl(t))return e.stylize(""+t,"boolean");if($f(t))return e.stylize("null","null")}function Fl(e){return"["+Error.prototype.toString.call(e)+"]"}function h8(e,t,r,i,n){for(var a=[],o=0,s=t.length;o<s;++o)hy(t,String(o))?a.push(zl(e,t,r,i,String(o),!0)):a.push("");return n.forEach(function(y){y.match(/^\d+$/)||a.push(zl(e,t,r,i,y,!0))}),a}function zl(e,t,r,i,n,a){var o,s,y;if(y=Object.getOwnPropertyDescriptor(t,n)||{value:t[n]},y.get?y.set?s=e.stylize("[Getter/Setter]","special"):s=e.stylize("[Getter]","special"):y.set&&(s=e.stylize("[Setter]","special")),hy(i,n)||(o="["+n+"]"),s||(e.seen.indexOf(y.value)<0?($f(r)?s=Gf(e,y.value,null):s=Gf(e,y.value,r-1),s.indexOf(`
3
+ `)>-1&&(a?s=s.split(`
4
+ `).map(function(_){return" "+_}).join(`
5
+ `).slice(2):s=`
6
+ `+s.split(`
7
+ `).map(function(_){return" "+_}).join(`
8
+ `))):s=e.stylize("[Circular]","special")),Ui(o)){if(a&&n.match(/^\d+$/))return s;o=JSON.stringify(""+n),o.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(o=o.slice(1,-1),o=e.stylize(o,"name")):(o=o.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),o=e.stylize(o,"string"))}return o+": "+s}function c8(e,t,r){var i=0,n=e.reduce(function(a,o){return i++,o.indexOf(`
9
+ `)>=0&&i++,a+o.replace(/\u001b\[\d\d?m/g,"").length+1},0);return n>60?r[0]+(t===""?"":t+`
10
+ `)+" "+e.join(`,
11
+ `)+" "+r[1]:r[0]+t+" "+e.join(", ")+" "+r[1]}Ue.types=ny();function uy(e){return Array.isArray(e)}Ue.isArray=uy;function Zl(e){return typeof e=="boolean"}Ue.isBoolean=Zl;function $f(e){return e===null}Ue.isNull=$f;function d8(e){return e==null}Ue.isNullOrUndefined=d8;function ly(e){return typeof e=="number"}Ue.isNumber=ly;function Yf(e){return typeof e=="string"}Ue.isString=Yf;function p8(e){return typeof e=="symbol"}Ue.isSymbol=p8;function Ui(e){return e===void 0}Ue.isUndefined=Ui;function Ka(e){return jn(e)&&Hl(e)==="[object RegExp]"}Ue.isRegExp=Ka;Ue.types.isRegExp=Ka;function jn(e){return typeof e=="object"&&e!==null}Ue.isObject=jn;function Vf(e){return jn(e)&&Hl(e)==="[object Date]"}Ue.isDate=Vf;Ue.types.isDate=Vf;function Ga(e){return jn(e)&&(Hl(e)==="[object Error]"||e instanceof Error)}Ue.isError=Ga;Ue.types.isNativeError=Ga;function Kf(e){return typeof e=="function"}Ue.isFunction=Kf;function v8(e){return e===null||typeof e=="boolean"||typeof e=="number"||typeof e=="string"||typeof e=="symbol"||typeof e>"u"}Ue.isPrimitive=v8;Ue.isBuffer=oy();function Hl(e){return Object.prototype.toString.call(e)}function jl(e){return e<10?"0"+e.toString(10):e.toString(10)}var y8=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function g8(){var e=new Date,t=[jl(e.getHours()),jl(e.getMinutes()),jl(e.getSeconds())].join(":");return[e.getDate(),y8[e.getMonth()],t].join(" ")}Ue.log=function(){console.log("%s - %s",g8(),Ue.format.apply(Ue,arguments))};Ue.inherits=Ke();Ue._extend=function(e,t){if(!t||!jn(t))return e;for(var r=Object.keys(t),i=r.length;i--;)e[r[i]]=t[r[i]];return e};function hy(e,t){return Object.prototype.hasOwnProperty.call(e,t)}var Ci=typeof Symbol<"u"?Symbol("util.promisify.custom"):void 0;Ue.promisify=function(t){if(typeof t!="function")throw new TypeError('The "original" argument must be of type Function');if(Ci&&t[Ci]){var r=t[Ci];if(typeof r!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(r,Ci,{value:r,enumerable:!1,writable:!1,configurable:!0}),r}function r(){for(var i,n,a=new Promise(function(y,_){i=y,n=_}),o=[],s=0;s<arguments.length;s++)o.push(arguments[s]);o.push(function(y,_){y?n(y):i(_)});try{t.apply(this,o)}catch(y){n(y)}return a}return Object.setPrototypeOf(r,Object.getPrototypeOf(t)),Ci&&Object.defineProperty(r,Ci,{value:r,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(r,fy(t))};Ue.promisify.custom=Ci;function b8(e,t){if(!e){var r=new Error("Promise was rejected with a falsy value");r.reason=e,e=r}return t(e)}function _8(e){if(typeof e!="function")throw new TypeError('The "original" argument must be of type Function');function t(){for(var r=[],i=0;i<arguments.length;i++)r.push(arguments[i]);var n=r.pop();if(typeof n!="function")throw new TypeError("The last argument must be of type Function");var a=this,o=function(){return n.apply(a,arguments)};e.apply(this,r).then(function(s){M.default.nextTick(o.bind(null,null,s))},function(s){M.default.nextTick(b8.bind(null,s,o))})}return Object.setPrototypeOf(t,Object.getPrototypeOf(e)),Object.defineProperties(t,fy(e)),t}Ue.callbackify=_8});var gy=R((sD,yy)=>{"use strict";m();function cy(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),r.push.apply(r,i)}return r}function dy(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?cy(Object(r),!0).forEach(function(i){m8(e,i,r[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):cy(Object(r)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(r,i))})}return e}function m8(e,t,r){return t=vy(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function w8(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function py(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,vy(i.key),i)}}function x8(e,t,r){return t&&py(e.prototype,t),r&&py(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function vy(e){var t=E8(e,"string");return typeof t=="symbol"?t:String(t)}function E8(e,t){if(typeof e!="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var i=r.call(e,t||"default");if(typeof i!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var S8=st(),Jf=S8.Buffer,M8=Gt(),Wl=M8.inspect,A8=Wl&&Wl.custom||"inspect";function B8(e,t,r){Jf.prototype.copy.call(e,t,r)}yy.exports=(function(){function e(){w8(this,e),this.head=null,this.tail=null,this.length=0}return x8(e,[{key:"push",value:function(r){var i={data:r,next:null};this.length>0?this.tail.next=i:this.head=i,this.tail=i,++this.length}},{key:"unshift",value:function(r){var i={data:r,next:this.head};this.length===0&&(this.tail=i),this.head=i,++this.length}},{key:"shift",value:function(){if(this.length!==0){var r=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,r}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(r){if(this.length===0)return"";for(var i=this.head,n=""+i.data;i=i.next;)n+=r+i.data;return n}},{key:"concat",value:function(r){if(this.length===0)return Jf.alloc(0);for(var i=Jf.allocUnsafe(r>>>0),n=this.head,a=0;n;)B8(n.data,i,a),a+=n.data.length,n=n.next;return i}},{key:"consume",value:function(r,i){var n;return r<this.head.data.length?(n=this.head.data.slice(0,r),this.head.data=this.head.data.slice(r)):r===this.head.data.length?n=this.shift():n=i?this._getString(r):this._getBuffer(r),n}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(r){var i=this.head,n=1,a=i.data;for(r-=a.length;i=i.next;){var o=i.data,s=r>o.length?o.length:r;if(s===o.length?a+=o:a+=o.slice(0,r),r-=s,r===0){s===o.length?(++n,i.next?this.head=i.next:this.head=this.tail=null):(this.head=i,i.data=o.slice(s));break}++n}return this.length-=n,a}},{key:"_getBuffer",value:function(r){var i=Jf.allocUnsafe(r),n=this.head,a=1;for(n.data.copy(i),r-=n.data.length;n=n.next;){var o=n.data,s=r>o.length?o.length:r;if(o.copy(i,i.length-r,0,s),r-=s,r===0){s===o.length?(++a,n.next?this.head=n.next:this.head=this.tail=null):(this.head=n,n.data=o.slice(s));break}++a}return this.length-=a,i}},{key:A8,value:function(r,i){return Wl(this,dy(dy({},i),{},{depth:0,customInspect:!1}))}}]),e})()});var Gl=R((lD,_y)=>{"use strict";m();function R8(e,t){var r=this,i=this._readableState&&this._readableState.destroyed,n=this._writableState&&this._writableState.destroyed;return i||n?(t?t(e):e&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,M.default.nextTick(Kl,this,e)):M.default.nextTick(Kl,this,e)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,function(a){!t&&a?r._writableState?r._writableState.errorEmitted?M.default.nextTick(Xf,r):(r._writableState.errorEmitted=!0,M.default.nextTick(by,r,a)):M.default.nextTick(by,r,a):t?(M.default.nextTick(Xf,r),t(a)):M.default.nextTick(Xf,r)}),this)}function by(e,t){Kl(e,t),Xf(e)}function Xf(e){e._writableState&&!e._writableState.emitClose||e._readableState&&!e._readableState.emitClose||e.emit("close")}function k8(){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)}function Kl(e,t){e.emit("error",t)}function T8(e,t){var r=e._readableState,i=e._writableState;r&&r.autoDestroy||i&&i.autoDestroy?e.destroy(t):e.emit("error",t)}_y.exports={destroy:R8,undestroy:k8,errorOrDestroy:T8}});var Fi=R((cD,xy)=>{"use strict";m();function I8(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var wy={};function Ot(e,t,r){r||(r=Error);function i(a,o,s){return typeof t=="string"?t:t(a,o,s)}var n=(function(a){I8(o,a);function o(s,y,_){return a.call(this,i(s,y,_))||this}return o})(r);n.prototype.name=r.name,n.prototype.code=e,wy[e]=n}function my(e,t){if(Array.isArray(e)){var r=e.length;return e=e.map(function(i){return String(i)}),r>2?"one of ".concat(t," ").concat(e.slice(0,r-1).join(", "),", or ")+e[r-1]:r===2?"one of ".concat(t," ").concat(e[0]," or ").concat(e[1]):"of ".concat(t," ").concat(e[0])}else return"of ".concat(t," ").concat(String(e))}function O8(e,t,r){return e.substr(!r||r<0?0:+r,t.length)===t}function q8(e,t,r){return(r===void 0||r>e.length)&&(r=e.length),e.substring(r-t.length,r)===t}function D8(e,t,r){return typeof r!="number"&&(r=0),r+t.length>e.length?!1:e.indexOf(t,r)!==-1}Ot("ERR_INVALID_OPT_VALUE",function(e,t){return'The value "'+t+'" is invalid for option "'+e+'"'},TypeError);Ot("ERR_INVALID_ARG_TYPE",function(e,t,r){var i;typeof t=="string"&&O8(t,"not ")?(i="must not be",t=t.replace(/^not /,"")):i="must be";var n;if(q8(e," argument"))n="The ".concat(e," ").concat(i," ").concat(my(t,"type"));else{var a=D8(e,".")?"property":"argument";n='The "'.concat(e,'" ').concat(a," ").concat(i," ").concat(my(t,"type"))}return n+=". Received type ".concat(typeof r),n},TypeError);Ot("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF");Ot("ERR_METHOD_NOT_IMPLEMENTED",function(e){return"The "+e+" method is not implemented"});Ot("ERR_STREAM_PREMATURE_CLOSE","Premature close");Ot("ERR_STREAM_DESTROYED",function(e){return"Cannot call "+e+" after a stream was destroyed"});Ot("ERR_MULTIPLE_CALLBACK","Callback called multiple times");Ot("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable");Ot("ERR_STREAM_WRITE_AFTER_END","write after end");Ot("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError);Ot("ERR_UNKNOWN_ENCODING",function(e){return"Unknown encoding: "+e},TypeError);Ot("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event");xy.exports.codes=wy});var Vl=R((pD,Ey)=>{"use strict";m();var N8=Fi().codes.ERR_INVALID_OPT_VALUE;function P8(e,t,r){return e.highWaterMark!=null?e.highWaterMark:t?e[r]:null}function L8(e,t,r,i){var n=P8(t,i,r);if(n!=null){if(!(isFinite(n)&&Math.floor(n)===n)||n<0){var a=i?r:"highWaterMark";throw new N8(a,n)}return Math.floor(n)}return e.objectMode?16:16*1024}Ey.exports={getHighWaterMark:L8}});var Yl=R((yD,Sy)=>{m();Sy.exports=C8;function C8(e,t){if($l("noDeprecation"))return e;var r=!1;function i(){if(!r){if($l("throwDeprecation"))throw new Error(t);$l("traceDeprecation")?console.trace(t):console.warn(t),r=!0}return e.apply(this,arguments)}return i}function $l(e){try{if(!globalThis.localStorage)return!1}catch{return!1}var t=globalThis.localStorage[e];return t==null?!1:String(t).toLowerCase()==="true"}});var Ql=R((bD,Ty)=>{"use strict";m();Ty.exports=Xe;function Ay(e){var t=this;this.next=null,this.entry=null,this.finish=function(){hM(t,e)}}var zn;Xe.WritableState=$a;var U8={deprecate:Yl()},By=cl(),es=st().Buffer,F8=(typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function j8(e){return es.from(e)}function z8(e){return es.isBuffer(e)||e instanceof F8}var Xl=Gl(),Z8=Vl(),H8=Z8.getHighWaterMark,Kr=Fi().codes,W8=Kr.ERR_INVALID_ARG_TYPE,K8=Kr.ERR_METHOD_NOT_IMPLEMENTED,G8=Kr.ERR_MULTIPLE_CALLBACK,V8=Kr.ERR_STREAM_CANNOT_PIPE,$8=Kr.ERR_STREAM_DESTROYED,Y8=Kr.ERR_STREAM_NULL_VALUES,J8=Kr.ERR_STREAM_WRITE_AFTER_END,X8=Kr.ERR_UNKNOWN_ENCODING,Zn=Xl.errorOrDestroy;Di()(Xe,By);function Q8(){}function $a(e,t,r){zn=zn||ji(),e=e||{},typeof r!="boolean"&&(r=t instanceof zn),this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.writableObjectMode),this.highWaterMark=H8(this,e,"writableHighWaterMark",r),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var i=e.decodeStrings===!1;this.decodeStrings=!i,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(n){oM(t,n)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=e.emitClose!==!1,this.autoDestroy=!!e.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new Ay(this)}$a.prototype.getBuffer=function(){for(var t=this.bufferedRequest,r=[];t;)r.push(t),t=t.next;return r};(function(){try{Object.defineProperty($a.prototype,"buffer",{get:U8.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}})();var Qf;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(Qf=Function.prototype[Symbol.hasInstance],Object.defineProperty(Xe,Symbol.hasInstance,{value:function(t){return Qf.call(this,t)?!0:this!==Xe?!1:t&&t._writableState instanceof $a}})):Qf=function(t){return t instanceof this};function Xe(e){zn=zn||ji();var t=this instanceof zn;if(!t&&!Qf.call(Xe,this))return new Xe(e);this._writableState=new $a(e,this,t),this.writable=!0,e&&(typeof e.write=="function"&&(this._write=e.write),typeof e.writev=="function"&&(this._writev=e.writev),typeof e.destroy=="function"&&(this._destroy=e.destroy),typeof e.final=="function"&&(this._final=e.final)),By.call(this)}Xe.prototype.pipe=function(){Zn(this,new V8)};function eM(e,t){var r=new J8;Zn(e,r),M.default.nextTick(t,r)}function tM(e,t,r,i){var n;return r===null?n=new Y8:typeof r!="string"&&!t.objectMode&&(n=new W8("chunk",["string","Buffer"],r)),n?(Zn(e,n),M.default.nextTick(i,n),!1):!0}Xe.prototype.write=function(e,t,r){var i=this._writableState,n=!1,a=!i.objectMode&&z8(e);return a&&!es.isBuffer(e)&&(e=j8(e)),typeof t=="function"&&(r=t,t=null),a?t="buffer":t||(t=i.defaultEncoding),typeof r!="function"&&(r=Q8),i.ending?eM(this,r):(a||tM(this,i,e,r))&&(i.pendingcb++,n=iM(this,i,a,e,t,r)),n};Xe.prototype.cork=function(){this._writableState.corked++};Xe.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,!e.writing&&!e.corked&&!e.bufferProcessing&&e.bufferedRequest&&Ry(this,e))};Xe.prototype.setDefaultEncoding=function(t){if(typeof t=="string"&&(t=t.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((t+"").toLowerCase())>-1))throw new X8(t);return this._writableState.defaultEncoding=t,this};Object.defineProperty(Xe.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function rM(e,t,r){return!e.objectMode&&e.decodeStrings!==!1&&typeof t=="string"&&(t=es.from(t,r)),t}Object.defineProperty(Xe.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function iM(e,t,r,i,n,a){if(!r){var o=rM(t,i,n);i!==o&&(r=!0,n="buffer",i=o)}var s=t.objectMode?1:i.length;t.length+=s;var y=t.length<t.highWaterMark;if(y||(t.needDrain=!0),t.writing||t.corked){var _=t.lastBufferedRequest;t.lastBufferedRequest={chunk:i,encoding:n,isBuf:r,callback:a,next:null},_?_.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1}else Jl(e,t,!1,s,i,n,a);return y}function Jl(e,t,r,i,n,a,o){t.writelen=i,t.writecb=o,t.writing=!0,t.sync=!0,t.destroyed?t.onwrite(new $8("write")):r?e._writev(n,t.onwrite):e._write(n,a,t.onwrite),t.sync=!1}function nM(e,t,r,i,n){--t.pendingcb,r?(M.default.nextTick(n,i),M.default.nextTick(Va,e,t),e._writableState.errorEmitted=!0,Zn(e,i)):(n(i),e._writableState.errorEmitted=!0,Zn(e,i),Va(e,t))}function aM(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}function oM(e,t){var r=e._writableState,i=r.sync,n=r.writecb;if(typeof n!="function")throw new G8;if(aM(r),t)nM(e,r,i,t,n);else{var a=ky(r)||e.destroyed;!a&&!r.corked&&!r.bufferProcessing&&r.bufferedRequest&&Ry(e,r),i?M.default.nextTick(My,e,r,a,n):My(e,r,a,n)}}function My(e,t,r,i){r||fM(e,t),t.pendingcb--,i(),Va(e,t)}function fM(e,t){t.length===0&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}function Ry(e,t){t.bufferProcessing=!0;var r=t.bufferedRequest;if(e._writev&&r&&r.next){var i=t.bufferedRequestCount,n=new Array(i),a=t.corkedRequestsFree;a.entry=r;for(var o=0,s=!0;r;)n[o]=r,r.isBuf||(s=!1),r=r.next,o+=1;n.allBuffers=s,Jl(e,t,!0,t.length,n,"",a.finish),t.pendingcb++,t.lastBufferedRequest=null,a.next?(t.corkedRequestsFree=a.next,a.next=null):t.corkedRequestsFree=new Ay(t),t.bufferedRequestCount=0}else{for(;r;){var y=r.chunk,_=r.encoding,x=r.callback,B=t.objectMode?1:y.length;if(Jl(e,t,!1,B,y,_,x),r=r.next,t.bufferedRequestCount--,t.writing)break}r===null&&(t.lastBufferedRequest=null)}t.bufferedRequest=r,t.bufferProcessing=!1}Xe.prototype._write=function(e,t,r){r(new K8("_write()"))};Xe.prototype._writev=null;Xe.prototype.end=function(e,t,r){var i=this._writableState;return typeof e=="function"?(r=e,e=null,t=null):typeof t=="function"&&(r=t,t=null),e!=null&&this.write(e,t),i.corked&&(i.corked=1,this.uncork()),i.ending||lM(this,i,r),this};Object.defineProperty(Xe.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function ky(e){return e.ending&&e.length===0&&e.bufferedRequest===null&&!e.finished&&!e.writing}function sM(e,t){e._final(function(r){t.pendingcb--,r&&Zn(e,r),t.prefinished=!0,e.emit("prefinish"),Va(e,t)})}function uM(e,t){!t.prefinished&&!t.finalCalled&&(typeof e._final=="function"&&!t.destroyed?(t.pendingcb++,t.finalCalled=!0,M.default.nextTick(sM,e,t)):(t.prefinished=!0,e.emit("prefinish")))}function Va(e,t){var r=ky(t);if(r&&(uM(e,t),t.pendingcb===0&&(t.finished=!0,e.emit("finish"),t.autoDestroy))){var i=e._readableState;(!i||i.autoDestroy&&i.endEmitted)&&e.destroy()}return r}function lM(e,t,r){t.ending=!0,Va(e,t),r&&(t.finished?M.default.nextTick(r):e.once("finish",r)),t.ended=!0,e.writable=!1}function hM(e,t,r){var i=e.entry;for(e.entry=null;i;){var n=i.callback;t.pendingcb--,n(r),i=i.next}t.corkedRequestsFree.next=e}Object.defineProperty(Xe.prototype,"destroyed",{enumerable:!1,get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(t){this._writableState&&(this._writableState.destroyed=t)}});Xe.prototype.destroy=Xl.destroy;Xe.prototype._undestroy=Xl.undestroy;Xe.prototype._destroy=function(e,t){t(e)}});var ji=R((mD,Oy)=>{"use strict";m();var cM=Object.keys||function(e){var t=[];for(var r in e)t.push(r);return t};Oy.exports=dr;var Iy=rh(),th=Ql();Di()(dr,Iy);for(eh=cM(th.prototype),ts=0;ts<eh.length;ts++)rs=eh[ts],dr.prototype[rs]||(dr.prototype[rs]=th.prototype[rs]);var eh,rs,ts;function dr(e){if(!(this instanceof dr))return new dr(e);Iy.call(this,e),th.call(this,e),this.allowHalfOpen=!0,e&&(e.readable===!1&&(this.readable=!1),e.writable===!1&&(this.writable=!1),e.allowHalfOpen===!1&&(this.allowHalfOpen=!1,this.once("end",dM)))}Object.defineProperty(dr.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});Object.defineProperty(dr.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});Object.defineProperty(dr.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function dM(){this._writableState.ended||M.default.nextTick(pM,this)}function pM(e){e.end()}Object.defineProperty(dr.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},set:function(t){this._readableState===void 0||this._writableState===void 0||(this._readableState.destroyed=t,this._writableState.destroyed=t)}})});var Ny=R((ih,Dy)=>{m();var is=st(),Rr=is.Buffer;function qy(e,t){for(var r in e)t[r]=e[r]}Rr.from&&Rr.alloc&&Rr.allocUnsafe&&Rr.allocUnsafeSlow?Dy.exports=is:(qy(is,ih),ih.Buffer=Hn);function Hn(e,t,r){return Rr(e,t,r)}qy(Rr,Hn);Hn.from=function(e,t,r){if(typeof e=="number")throw new TypeError("Argument must not be a number");return Rr(e,t,r)};Hn.alloc=function(e,t,r){if(typeof e!="number")throw new TypeError("Argument must be a number");var i=Rr(e);return t!==void 0?typeof r=="string"?i.fill(t,r):i.fill(t):i.fill(0),i};Hn.allocUnsafe=function(e){if(typeof e!="number")throw new TypeError("Argument must be a number");return Rr(e)};Hn.allocUnsafeSlow=function(e){if(typeof e!="number")throw new TypeError("Argument must be a number");return is.SlowBuffer(e)}});var Wn=R(Ly=>{"use strict";m();var ah=Ny().Buffer,Py=ah.isEncoding||function(e){switch(e=""+e,e&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function vM(e){if(!e)return"utf8";for(var t;;)switch(e){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 e;default:if(t)return;e=(""+e).toLowerCase(),t=!0}}function yM(e){var t=vM(e);if(typeof t!="string"&&(ah.isEncoding===Py||!Py(e)))throw new Error("Unknown encoding: "+e);return t||e}Ly.StringDecoder=Ya;function Ya(e){this.encoding=yM(e);var t;switch(this.encoding){case"utf16le":this.text=xM,this.end=EM,t=4;break;case"utf8":this.fillLast=_M,t=4;break;case"base64":this.text=SM,this.end=MM,t=3;break;default:this.write=AM,this.end=BM;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=ah.allocUnsafe(t)}Ya.prototype.write=function(e){if(e.length===0)return"";var t,r;if(this.lastNeed){if(t=this.fillLast(e),t===void 0)return"";r=this.lastNeed,this.lastNeed=0}else r=0;return r<e.length?t?t+this.text(e,r):this.text(e,r):t||""};Ya.prototype.end=wM;Ya.prototype.text=mM;Ya.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length};function nh(e){return e<=127?0:e>>5===6?2:e>>4===14?3:e>>3===30?4:e>>6===2?-1:-2}function gM(e,t,r){var i=t.length-1;if(i<r)return 0;var n=nh(t[i]);return n>=0?(n>0&&(e.lastNeed=n-1),n):--i<r||n===-2?0:(n=nh(t[i]),n>=0?(n>0&&(e.lastNeed=n-2),n):--i<r||n===-2?0:(n=nh(t[i]),n>=0?(n>0&&(n===2?n=0:e.lastNeed=n-3),n):0))}function bM(e,t,r){if((t[0]&192)!==128)return e.lastNeed=0,"\uFFFD";if(e.lastNeed>1&&t.length>1){if((t[1]&192)!==128)return e.lastNeed=1,"\uFFFD";if(e.lastNeed>2&&t.length>2&&(t[2]&192)!==128)return e.lastNeed=2,"\uFFFD"}}function _M(e){var t=this.lastTotal-this.lastNeed,r=bM(this,e,t);if(r!==void 0)return r;if(this.lastNeed<=e.length)return e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,t,0,e.length),this.lastNeed-=e.length}function mM(e,t){var r=gM(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=r;var i=e.length-(r-this.lastNeed);return e.copy(this.lastChar,0,i),e.toString("utf8",t,i)}function wM(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+"\uFFFD":t}function xM(e,t){if((e.length-t)%2===0){var r=e.toString("utf16le",t);if(r){var i=r.charCodeAt(r.length-1);if(i>=55296&&i<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],r.slice(0,-1)}return r}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function EM(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var r=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,r)}return t}function SM(e,t){var r=(e.length-t)%3;return r===0?e.toString("base64",t):(this.lastNeed=3-r,this.lastTotal=3,r===1?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-r))}function MM(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function AM(e){return e.toString(this.encoding)}function BM(e){return e&&e.length?this.write(e):""}});var ns=R((MD,Fy)=>{"use strict";m();var Cy=Fi().codes.ERR_STREAM_PREMATURE_CLOSE;function RM(e){var t=!1;return function(){if(!t){t=!0;for(var r=arguments.length,i=new Array(r),n=0;n<r;n++)i[n]=arguments[n];e.apply(this,i)}}}function kM(){}function TM(e){return e.setHeader&&typeof e.abort=="function"}function Uy(e,t,r){if(typeof t=="function")return Uy(e,null,t);t||(t={}),r=RM(r||kM);var i=t.readable||t.readable!==!1&&e.readable,n=t.writable||t.writable!==!1&&e.writable,a=function(){e.writable||s()},o=e._writableState&&e._writableState.finished,s=function(){n=!1,o=!0,i||r.call(e)},y=e._readableState&&e._readableState.endEmitted,_=function(){i=!1,y=!0,n||r.call(e)},x=function(O){r.call(e,O)},B=function(){var O;if(i&&!y)return(!e._readableState||!e._readableState.ended)&&(O=new Cy),r.call(e,O);if(n&&!o)return(!e._writableState||!e._writableState.ended)&&(O=new Cy),r.call(e,O)},k=function(){e.req.on("finish",s)};return TM(e)?(e.on("complete",s),e.on("abort",B),e.req?k():e.on("request",k)):n&&!e._writableState&&(e.on("end",a),e.on("close",a)),e.on("end",_),e.on("finish",s),t.error!==!1&&e.on("error",x),e.on("close",B),function(){e.removeListener("complete",s),e.removeListener("abort",B),e.removeListener("request",k),e.req&&e.req.removeListener("finish",s),e.removeListener("end",a),e.removeListener("close",a),e.removeListener("finish",s),e.removeListener("end",_),e.removeListener("error",x),e.removeListener("close",B)}}Fy.exports=Uy});var zy=R((BD,jy)=>{"use strict";m();var as;function Gr(e,t,r){return t=IM(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function IM(e){var t=OM(e,"string");return typeof t=="symbol"?t:String(t)}function OM(e,t){if(typeof e!="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var i=r.call(e,t||"default");if(typeof i!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var qM=ns(),Vr=Symbol("lastResolve"),zi=Symbol("lastReject"),Ja=Symbol("error"),os=Symbol("ended"),Zi=Symbol("lastPromise"),oh=Symbol("handlePromise"),Hi=Symbol("stream");function $r(e,t){return{value:e,done:t}}function DM(e){var t=e[Vr];if(t!==null){var r=e[Hi].read();r!==null&&(e[Zi]=null,e[Vr]=null,e[zi]=null,t($r(r,!1)))}}function NM(e){M.default.nextTick(DM,e)}function PM(e,t){return function(r,i){e.then(function(){if(t[os]){r($r(void 0,!0));return}t[oh](r,i)},i)}}var LM=Object.getPrototypeOf(function(){}),CM=Object.setPrototypeOf((as={get stream(){return this[Hi]},next:function(){var t=this,r=this[Ja];if(r!==null)return Promise.reject(r);if(this[os])return Promise.resolve($r(void 0,!0));if(this[Hi].destroyed)return new Promise(function(o,s){M.default.nextTick(function(){t[Ja]?s(t[Ja]):o($r(void 0,!0))})});var i=this[Zi],n;if(i)n=new Promise(PM(i,this));else{var a=this[Hi].read();if(a!==null)return Promise.resolve($r(a,!1));n=new Promise(this[oh])}return this[Zi]=n,n}},Gr(as,Symbol.asyncIterator,function(){return this}),Gr(as,"return",function(){var t=this;return new Promise(function(r,i){t[Hi].destroy(null,function(n){if(n){i(n);return}r($r(void 0,!0))})})}),as),LM),UM=function(t){var r,i=Object.create(CM,(r={},Gr(r,Hi,{value:t,writable:!0}),Gr(r,Vr,{value:null,writable:!0}),Gr(r,zi,{value:null,writable:!0}),Gr(r,Ja,{value:null,writable:!0}),Gr(r,os,{value:t._readableState.endEmitted,writable:!0}),Gr(r,oh,{value:function(a,o){var s=i[Hi].read();s?(i[Zi]=null,i[Vr]=null,i[zi]=null,a($r(s,!1))):(i[Vr]=a,i[zi]=o)},writable:!0}),r));return i[Zi]=null,qM(t,function(n){if(n&&n.code!=="ERR_STREAM_PREMATURE_CLOSE"){var a=i[zi];a!==null&&(i[Zi]=null,i[Vr]=null,i[zi]=null,a(n)),i[Ja]=n;return}var o=i[Vr];o!==null&&(i[Zi]=null,i[Vr]=null,i[zi]=null,o($r(void 0,!0))),i[os]=!0}),t.on("readable",NM.bind(null,i)),i};jy.exports=UM});var Hy=R((kD,Zy)=>{m();Zy.exports=function(){throw new Error("Readable.from is not available in the browser")}});var rh=R((OD,e1)=>{"use strict";m();e1.exports=je;var Kn;je.ReadableState=Vy;var ID=On().EventEmitter,Gy=function(t,r){return t.listeners(r).length},Qa=cl(),fs=st().Buffer,FM=(typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function jM(e){return fs.from(e)}function zM(e){return fs.isBuffer(e)||e instanceof FM}var fh=Gt(),Pe;fh&&fh.debuglog?Pe=fh.debuglog("stream"):Pe=function(){};var ZM=gy(),ph=Gl(),HM=Vl(),WM=HM.getHighWaterMark,ss=Fi().codes,KM=ss.ERR_INVALID_ARG_TYPE,GM=ss.ERR_STREAM_PUSH_AFTER_EOF,VM=ss.ERR_METHOD_NOT_IMPLEMENTED,$M=ss.ERR_STREAM_UNSHIFT_AFTER_END_EVENT,Gn,sh,uh;Di()(je,Qa);var Xa=ph.errorOrDestroy,lh=["error","close","destroy","pause","resume"];function YM(e,t,r){if(typeof e.prependListener=="function")return e.prependListener(t,r);!e._events||!e._events[t]?e.on(t,r):Array.isArray(e._events[t])?e._events[t].unshift(r):e._events[t]=[r,e._events[t]]}function Vy(e,t,r){Kn=Kn||ji(),e=e||{},typeof r!="boolean"&&(r=t instanceof Kn),this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.readableObjectMode),this.highWaterMark=WM(this,e,"readableHighWaterMark",r),this.buffer=new ZM,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=e.emitClose!==!1,this.autoDestroy=!!e.autoDestroy,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(Gn||(Gn=Wn().StringDecoder),this.decoder=new Gn(e.encoding),this.encoding=e.encoding)}function je(e){if(Kn=Kn||ji(),!(this instanceof je))return new je(e);var t=this instanceof Kn;this._readableState=new Vy(e,this,t),this.readable=!0,e&&(typeof e.read=="function"&&(this._read=e.read),typeof e.destroy=="function"&&(this._destroy=e.destroy)),Qa.call(this)}Object.defineProperty(je.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(t){this._readableState&&(this._readableState.destroyed=t)}});je.prototype.destroy=ph.destroy;je.prototype._undestroy=ph.undestroy;je.prototype._destroy=function(e,t){t(e)};je.prototype.push=function(e,t){var r=this._readableState,i;return r.objectMode?i=!0:typeof e=="string"&&(t=t||r.defaultEncoding,t!==r.encoding&&(e=fs.from(e,t),t=""),i=!0),$y(this,e,t,!1,i)};je.prototype.unshift=function(e){return $y(this,e,null,!0,!1)};function $y(e,t,r,i,n){Pe("readableAddChunk",t);var a=e._readableState;if(t===null)a.reading=!1,QM(e,a);else{var o;if(n||(o=JM(a,t)),o)Xa(e,o);else if(a.objectMode||t&&t.length>0)if(typeof t!="string"&&!a.objectMode&&Object.getPrototypeOf(t)!==fs.prototype&&(t=jM(t)),i)a.endEmitted?Xa(e,new $M):hh(e,a,t,!0);else if(a.ended)Xa(e,new GM);else{if(a.destroyed)return!1;a.reading=!1,a.decoder&&!r?(t=a.decoder.write(t),a.objectMode||t.length!==0?hh(e,a,t,!1):dh(e,a)):hh(e,a,t,!1)}else i||(a.reading=!1,dh(e,a))}return!a.ended&&(a.length<a.highWaterMark||a.length===0)}function hh(e,t,r,i){t.flowing&&t.length===0&&!t.sync?(t.awaitDrain=0,e.emit("data",r)):(t.length+=t.objectMode?1:r.length,i?t.buffer.unshift(r):t.buffer.push(r),t.needReadable&&us(e)),dh(e,t)}function JM(e,t){var r;return!zM(t)&&typeof t!="string"&&t!==void 0&&!e.objectMode&&(r=new KM("chunk",["string","Buffer","Uint8Array"],t)),r}je.prototype.isPaused=function(){return this._readableState.flowing===!1};je.prototype.setEncoding=function(e){Gn||(Gn=Wn().StringDecoder);var t=new Gn(e);this._readableState.decoder=t,this._readableState.encoding=this._readableState.decoder.encoding;for(var r=this._readableState.buffer.head,i="";r!==null;)i+=t.write(r.data),r=r.next;return this._readableState.buffer.clear(),i!==""&&this._readableState.buffer.push(i),this._readableState.length=i.length,this};var Wy=1073741824;function XM(e){return e>=Wy?e=Wy:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}function Ky(e,t){return e<=0||t.length===0&&t.ended?0:t.objectMode?1:e!==e?t.flowing&&t.length?t.buffer.head.data.length:t.length:(e>t.highWaterMark&&(t.highWaterMark=XM(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}je.prototype.read=function(e){Pe("read",e),e=parseInt(e,10);var t=this._readableState,r=e;if(e!==0&&(t.emittedReadable=!1),e===0&&t.needReadable&&((t.highWaterMark!==0?t.length>=t.highWaterMark:t.length>0)||t.ended))return Pe("read: emitReadable",t.length,t.ended),t.length===0&&t.ended?ch(this):us(this),null;if(e=Ky(e,t),e===0&&t.ended)return t.length===0&&ch(this),null;var i=t.needReadable;Pe("need readable",i),(t.length===0||t.length-e<t.highWaterMark)&&(i=!0,Pe("length less than watermark",i)),t.ended||t.reading?(i=!1,Pe("reading or ended",i)):i&&(Pe("do read"),t.reading=!0,t.sync=!0,t.length===0&&(t.needReadable=!0),this._read(t.highWaterMark),t.sync=!1,t.reading||(e=Ky(r,t)));var n;return e>0?n=Xy(e,t):n=null,n===null?(t.needReadable=t.length<=t.highWaterMark,e=0):(t.length-=e,t.awaitDrain=0),t.length===0&&(t.ended||(t.needReadable=!0),r!==e&&t.ended&&ch(this)),n!==null&&this.emit("data",n),n};function QM(e,t){if(Pe("onEofChunk"),!t.ended){if(t.decoder){var r=t.decoder.end();r&&r.length&&(t.buffer.push(r),t.length+=t.objectMode?1:r.length)}t.ended=!0,t.sync?us(e):(t.needReadable=!1,t.emittedReadable||(t.emittedReadable=!0,Yy(e)))}}function us(e){var t=e._readableState;Pe("emitReadable",t.needReadable,t.emittedReadable),t.needReadable=!1,t.emittedReadable||(Pe("emitReadable",t.flowing),t.emittedReadable=!0,M.default.nextTick(Yy,e))}function Yy(e){var t=e._readableState;Pe("emitReadable_",t.destroyed,t.length,t.ended),!t.destroyed&&(t.length||t.ended)&&(e.emit("readable"),t.emittedReadable=!1),t.needReadable=!t.flowing&&!t.ended&&t.length<=t.highWaterMark,vh(e)}function dh(e,t){t.readingMore||(t.readingMore=!0,M.default.nextTick(e4,e,t))}function e4(e,t){for(;!t.reading&&!t.ended&&(t.length<t.highWaterMark||t.flowing&&t.length===0);){var r=t.length;if(Pe("maybeReadMore read 0"),e.read(0),r===t.length)break}t.readingMore=!1}je.prototype._read=function(e){Xa(this,new VM("_read()"))};je.prototype.pipe=function(e,t){var r=this,i=this._readableState;switch(i.pipesCount){case 0:i.pipes=e;break;case 1:i.pipes=[i.pipes,e];break;default:i.pipes.push(e);break}i.pipesCount+=1,Pe("pipe count=%d opts=%j",i.pipesCount,t);var n=(!t||t.end!==!1)&&e!==M.default.stdout&&e!==M.default.stderr,a=n?s:D;i.endEmitted?M.default.nextTick(a):r.once("end",a),e.on("unpipe",o);function o(U,N){Pe("onunpipe"),U===r&&N&&N.hasUnpiped===!1&&(N.hasUnpiped=!0,x())}function s(){Pe("onend"),e.end()}var y=t4(r);e.on("drain",y);var _=!1;function x(){Pe("cleanup"),e.removeListener("close",T),e.removeListener("finish",O),e.removeListener("drain",y),e.removeListener("error",k),e.removeListener("unpipe",o),r.removeListener("end",s),r.removeListener("end",D),r.removeListener("data",B),_=!0,i.awaitDrain&&(!e._writableState||e._writableState.needDrain)&&y()}r.on("data",B);function B(U){Pe("ondata");var N=e.write(U);Pe("dest.write",N),N===!1&&((i.pipesCount===1&&i.pipes===e||i.pipesCount>1&&Qy(i.pipes,e)!==-1)&&!_&&(Pe("false write response, pause",i.awaitDrain),i.awaitDrain++),r.pause())}function k(U){Pe("onerror",U),D(),e.removeListener("error",k),Gy(e,"error")===0&&Xa(e,U)}YM(e,"error",k);function T(){e.removeListener("finish",O),D()}e.once("close",T);function O(){Pe("onfinish"),e.removeListener("close",T),D()}e.once("finish",O);function D(){Pe("unpipe"),r.unpipe(e)}return e.emit("pipe",r),i.flowing||(Pe("pipe resume"),r.resume()),e};function t4(e){return function(){var r=e._readableState;Pe("pipeOnDrain",r.awaitDrain),r.awaitDrain&&r.awaitDrain--,r.awaitDrain===0&&Gy(e,"data")&&(r.flowing=!0,vh(e))}}je.prototype.unpipe=function(e){var t=this._readableState,r={hasUnpiped:!1};if(t.pipesCount===0)return this;if(t.pipesCount===1)return e&&e!==t.pipes?this:(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,r),this);if(!e){var i=t.pipes,n=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var a=0;a<n;a++)i[a].emit("unpipe",this,{hasUnpiped:!1});return this}var o=Qy(t.pipes,e);return o===-1?this:(t.pipes.splice(o,1),t.pipesCount-=1,t.pipesCount===1&&(t.pipes=t.pipes[0]),e.emit("unpipe",this,r),this)};je.prototype.on=function(e,t){var r=Qa.prototype.on.call(this,e,t),i=this._readableState;return e==="data"?(i.readableListening=this.listenerCount("readable")>0,i.flowing!==!1&&this.resume()):e==="readable"&&!i.endEmitted&&!i.readableListening&&(i.readableListening=i.needReadable=!0,i.flowing=!1,i.emittedReadable=!1,Pe("on readable",i.length,i.reading),i.length?us(this):i.reading||M.default.nextTick(r4,this)),r};je.prototype.addListener=je.prototype.on;je.prototype.removeListener=function(e,t){var r=Qa.prototype.removeListener.call(this,e,t);return e==="readable"&&M.default.nextTick(Jy,this),r};je.prototype.removeAllListeners=function(e){var t=Qa.prototype.removeAllListeners.apply(this,arguments);return(e==="readable"||e===void 0)&&M.default.nextTick(Jy,this),t};function Jy(e){var t=e._readableState;t.readableListening=e.listenerCount("readable")>0,t.resumeScheduled&&!t.paused?t.flowing=!0:e.listenerCount("data")>0&&e.resume()}function r4(e){Pe("readable nexttick read 0"),e.read(0)}je.prototype.resume=function(){var e=this._readableState;return e.flowing||(Pe("resume"),e.flowing=!e.readableListening,i4(this,e)),e.paused=!1,this};function i4(e,t){t.resumeScheduled||(t.resumeScheduled=!0,M.default.nextTick(n4,e,t))}function n4(e,t){Pe("resume",t.reading),t.reading||e.read(0),t.resumeScheduled=!1,e.emit("resume"),vh(e),t.flowing&&!t.reading&&e.read(0)}je.prototype.pause=function(){return Pe("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(Pe("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this};function vh(e){var t=e._readableState;for(Pe("flow",t.flowing);t.flowing&&e.read()!==null;);}je.prototype.wrap=function(e){var t=this,r=this._readableState,i=!1;e.on("end",function(){if(Pe("wrapped end"),r.decoder&&!r.ended){var o=r.decoder.end();o&&o.length&&t.push(o)}t.push(null)}),e.on("data",function(o){if(Pe("wrapped data"),r.decoder&&(o=r.decoder.write(o)),!(r.objectMode&&o==null)&&!(!r.objectMode&&(!o||!o.length))){var s=t.push(o);s||(i=!0,e.pause())}});for(var n in e)this[n]===void 0&&typeof e[n]=="function"&&(this[n]=(function(s){return function(){return e[s].apply(e,arguments)}})(n));for(var a=0;a<lh.length;a++)e.on(lh[a],this.emit.bind(this,lh[a]));return this._read=function(o){Pe("wrapped _read",o),i&&(i=!1,e.resume())},this};typeof Symbol=="function"&&(je.prototype[Symbol.asyncIterator]=function(){return sh===void 0&&(sh=zy()),sh(this)});Object.defineProperty(je.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}});Object.defineProperty(je.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}});Object.defineProperty(je.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(t){this._readableState&&(this._readableState.flowing=t)}});je._fromList=Xy;Object.defineProperty(je.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}});function Xy(e,t){if(t.length===0)return null;var r;return t.objectMode?r=t.buffer.shift():!e||e>=t.length?(t.decoder?r=t.buffer.join(""):t.buffer.length===1?r=t.buffer.first():r=t.buffer.concat(t.length),t.buffer.clear()):r=t.buffer.consume(e,t.decoder),r}function ch(e){var t=e._readableState;Pe("endReadable",t.endEmitted),t.endEmitted||(t.ended=!0,M.default.nextTick(a4,t,e))}function a4(e,t){if(Pe("endReadableNT",e.endEmitted,e.length),!e.endEmitted&&e.length===0&&(e.endEmitted=!0,t.readable=!1,t.emit("end"),e.autoDestroy)){var r=t._writableState;(!r||r.autoDestroy&&r.finished)&&t.destroy()}}typeof Symbol=="function"&&(je.from=function(e,t){return uh===void 0&&(uh=Hy()),uh(je,e,t)});function Qy(e,t){for(var r=0,i=e.length;r<i;r++)if(e[r]===t)return r;return-1}});var yh=R((DD,r1)=>{"use strict";m();r1.exports=kr;var ls=Fi().codes,o4=ls.ERR_METHOD_NOT_IMPLEMENTED,f4=ls.ERR_MULTIPLE_CALLBACK,s4=ls.ERR_TRANSFORM_ALREADY_TRANSFORMING,u4=ls.ERR_TRANSFORM_WITH_LENGTH_0,hs=ji();Di()(kr,hs);function l4(e,t){var r=this._transformState;r.transforming=!1;var i=r.writecb;if(i===null)return this.emit("error",new f4);r.writechunk=null,r.writecb=null,t!=null&&this.push(t),i(e);var n=this._readableState;n.reading=!1,(n.needReadable||n.length<n.highWaterMark)&&this._read(n.highWaterMark)}function kr(e){if(!(this instanceof kr))return new kr(e);hs.call(this,e),this._transformState={afterTransform:l4.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,e&&(typeof e.transform=="function"&&(this._transform=e.transform),typeof e.flush=="function"&&(this._flush=e.flush)),this.on("prefinish",h4)}function h4(){var e=this;typeof this._flush=="function"&&!this._readableState.destroyed?this._flush(function(t,r){t1(e,t,r)}):t1(this,null,null)}kr.prototype.push=function(e,t){return this._transformState.needTransform=!1,hs.prototype.push.call(this,e,t)};kr.prototype._transform=function(e,t,r){r(new o4("_transform()"))};kr.prototype._write=function(e,t,r){var i=this._transformState;if(i.writecb=r,i.writechunk=e,i.writeencoding=t,!i.transforming){var n=this._readableState;(i.needTransform||n.needReadable||n.length<n.highWaterMark)&&this._read(n.highWaterMark)}};kr.prototype._read=function(e){var t=this._transformState;t.writechunk!==null&&!t.transforming?(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform)):t.needTransform=!0};kr.prototype._destroy=function(e,t){hs.prototype._destroy.call(this,e,function(r){t(r)})};function t1(e,t,r){if(t)return e.emit("error",t);if(r!=null&&e.push(r),e._writableState.length)throw new u4;if(e._transformState.transforming)throw new s4;return e.push(null)}});var a1=R((PD,n1)=>{"use strict";m();n1.exports=eo;var i1=yh();Di()(eo,i1);function eo(e){if(!(this instanceof eo))return new eo(e);i1.call(this,e)}eo.prototype._transform=function(e,t,r){r(null,e)}});var l1=R((CD,u1)=>{"use strict";m();var gh;function c4(e){var t=!1;return function(){t||(t=!0,e.apply(void 0,arguments))}}var s1=Fi().codes,d4=s1.ERR_MISSING_ARGS,p4=s1.ERR_STREAM_DESTROYED;function o1(e){if(e)throw e}function v4(e){return e.setHeader&&typeof e.abort=="function"}function y4(e,t,r,i){i=c4(i);var n=!1;e.on("close",function(){n=!0}),gh===void 0&&(gh=ns()),gh(e,{readable:t,writable:r},function(o){if(o)return i(o);n=!0,i()});var a=!1;return function(o){if(!n&&!a){if(a=!0,v4(e))return e.abort();if(typeof e.destroy=="function")return e.destroy();i(o||new p4("pipe"))}}}function f1(e){e()}function g4(e,t){return e.pipe(t)}function b4(e){return!e.length||typeof e[e.length-1]!="function"?o1:e.pop()}function _4(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var i=b4(t);if(Array.isArray(t[0])&&(t=t[0]),t.length<2)throw new d4("streams");var n,a=t.map(function(o,s){var y=s<t.length-1,_=s>0;return y4(o,y,_,function(x){n||(n=x),x&&a.forEach(f1),!y&&(a.forEach(f1),i(n))})});return t.reduce(g4)}u1.exports=_4});var cs=R((FD,h1)=>{m();h1.exports=qt;var bh=On().EventEmitter,m4=Di();m4(qt,bh);qt.Readable=rh();qt.Writable=Ql();qt.Duplex=ji();qt.Transform=yh();qt.PassThrough=a1();qt.finished=ns();qt.pipeline=l1();qt.Stream=qt;function qt(){bh.call(this)}qt.prototype.pipe=function(e,t){var r=this;function i(x){e.writable&&e.write(x)===!1&&r.pause&&r.pause()}r.on("data",i);function n(){r.readable&&r.resume&&r.resume()}e.on("drain",n),!e._isStdio&&(!t||t.end!==!1)&&(r.on("end",o),r.on("close",s));var a=!1;function o(){a||(a=!0,e.end())}function s(){a||(a=!0,typeof e.destroy=="function"&&e.destroy())}function y(x){if(_(),bh.listenerCount(this,"error")===0)throw x}r.on("error",y),e.on("error",y);function _(){r.removeListener("data",i),e.removeListener("drain",n),r.removeListener("end",o),r.removeListener("close",s),r.removeListener("error",y),e.removeListener("error",y),r.removeListener("end",_),r.removeListener("close",_),e.removeListener("close",_)}return r.on("end",_),r.on("close",_),e.on("close",_),e.emit("pipe",r),e}});var c1=R((zD,_h)=>{m();typeof Object.create=="function"?_h.exports=function(t,r){r&&(t.super_=r,t.prototype=Object.create(r.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:_h.exports=function(t,r){if(r){t.super_=r;var i=function(){};i.prototype=r.prototype,t.prototype=new i,t.prototype.constructor=t}}});var v1=R((HD,p1)=>{"use strict";m();var pr=De().Buffer,d1=cs().Transform,w4=c1();function Yr(e){d1.call(this),this._block=pr.allocUnsafe(e),this._blockSize=e,this._blockOffset=0,this._length=[0,0,0,0],this._finalized=!1}w4(Yr,d1);Yr.prototype._transform=function(e,t,r){var i=null;try{this.update(e,t)}catch(n){i=n}r(i)};Yr.prototype._flush=function(e){var t=null;try{this.push(this.digest())}catch(r){t=r}e(t)};var x4=typeof Uint8Array<"u",E4=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u"&&ArrayBuffer.isView&&(pr.prototype instanceof Uint8Array||pr.TYPED_ARRAY_SUPPORT);function S4(e,t){if(e instanceof pr)return e;if(typeof e=="string")return pr.from(e,t);if(E4&&ArrayBuffer.isView(e)){if(e.byteLength===0)return pr.alloc(0);var r=pr.from(e.buffer,e.byteOffset,e.byteLength);if(r.byteLength===e.byteLength)return r}if(x4&&e instanceof Uint8Array||pr.isBuffer(e)&&e.constructor&&typeof e.constructor.isBuffer=="function"&&e.constructor.isBuffer(e))return pr.from(e);throw new TypeError('The "data" argument must be of type string or an instance of Buffer, TypedArray, or DataView.')}Yr.prototype.update=function(e,t){if(this._finalized)throw new Error("Digest already called");e=S4(e,t);for(var r=this._block,i=0;this._blockOffset+e.length-i>=this._blockSize;){for(var n=this._blockOffset;n<this._blockSize;)r[n++]=e[i++];this._update(),this._blockOffset=0}for(;i<e.length;)r[this._blockOffset++]=e[i++];for(var a=0,o=e.length*8;o>0;++a)this._length[a]+=o,o=this._length[a]/4294967296|0,o>0&&(this._length[a]-=4294967296*o);return this};Yr.prototype._update=function(){throw new Error("_update is not implemented")};Yr.prototype.digest=function(e){if(this._finalized)throw new Error("Digest already called");this._finalized=!0;var t=this._digest();e!==void 0&&(t=t.toString(e)),this._block.fill(0),this._blockOffset=0;for(var r=0;r<4;++r)this._length[r]=0;return t};Yr.prototype._digest=function(){throw new Error("_digest is not implemented")};p1.exports=Yr});var vs=R((KD,g1)=>{"use strict";m();var M4=Ke(),y1=v1(),A4=De().Buffer,B4=new Array(16);function ds(){y1.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878}M4(ds,y1);ds.prototype._update=function(){for(var e=B4,t=0;t<16;++t)e[t]=this._block.readInt32LE(t*4);var r=this._a,i=this._b,n=this._c,a=this._d;r=ct(r,i,n,a,e[0],3614090360,7),a=ct(a,r,i,n,e[1],3905402710,12),n=ct(n,a,r,i,e[2],606105819,17),i=ct(i,n,a,r,e[3],3250441966,22),r=ct(r,i,n,a,e[4],4118548399,7),a=ct(a,r,i,n,e[5],1200080426,12),n=ct(n,a,r,i,e[6],2821735955,17),i=ct(i,n,a,r,e[7],4249261313,22),r=ct(r,i,n,a,e[8],1770035416,7),a=ct(a,r,i,n,e[9],2336552879,12),n=ct(n,a,r,i,e[10],4294925233,17),i=ct(i,n,a,r,e[11],2304563134,22),r=ct(r,i,n,a,e[12],1804603682,7),a=ct(a,r,i,n,e[13],4254626195,12),n=ct(n,a,r,i,e[14],2792965006,17),i=ct(i,n,a,r,e[15],1236535329,22),r=dt(r,i,n,a,e[1],4129170786,5),a=dt(a,r,i,n,e[6],3225465664,9),n=dt(n,a,r,i,e[11],643717713,14),i=dt(i,n,a,r,e[0],3921069994,20),r=dt(r,i,n,a,e[5],3593408605,5),a=dt(a,r,i,n,e[10],38016083,9),n=dt(n,a,r,i,e[15],3634488961,14),i=dt(i,n,a,r,e[4],3889429448,20),r=dt(r,i,n,a,e[9],568446438,5),a=dt(a,r,i,n,e[14],3275163606,9),n=dt(n,a,r,i,e[3],4107603335,14),i=dt(i,n,a,r,e[8],1163531501,20),r=dt(r,i,n,a,e[13],2850285829,5),a=dt(a,r,i,n,e[2],4243563512,9),n=dt(n,a,r,i,e[7],1735328473,14),i=dt(i,n,a,r,e[12],2368359562,20),r=pt(r,i,n,a,e[5],4294588738,4),a=pt(a,r,i,n,e[8],2272392833,11),n=pt(n,a,r,i,e[11],1839030562,16),i=pt(i,n,a,r,e[14],4259657740,23),r=pt(r,i,n,a,e[1],2763975236,4),a=pt(a,r,i,n,e[4],1272893353,11),n=pt(n,a,r,i,e[7],4139469664,16),i=pt(i,n,a,r,e[10],3200236656,23),r=pt(r,i,n,a,e[13],681279174,4),a=pt(a,r,i,n,e[0],3936430074,11),n=pt(n,a,r,i,e[3],3572445317,16),i=pt(i,n,a,r,e[6],76029189,23),r=pt(r,i,n,a,e[9],3654602809,4),a=pt(a,r,i,n,e[12],3873151461,11),n=pt(n,a,r,i,e[15],530742520,16),i=pt(i,n,a,r,e[2],3299628645,23),r=vt(r,i,n,a,e[0],4096336452,6),a=vt(a,r,i,n,e[7],1126891415,10),n=vt(n,a,r,i,e[14],2878612391,15),i=vt(i,n,a,r,e[5],4237533241,21),r=vt(r,i,n,a,e[12],1700485571,6),a=vt(a,r,i,n,e[3],2399980690,10),n=vt(n,a,r,i,e[10],4293915773,15),i=vt(i,n,a,r,e[1],2240044497,21),r=vt(r,i,n,a,e[8],1873313359,6),a=vt(a,r,i,n,e[15],4264355552,10),n=vt(n,a,r,i,e[6],2734768916,15),i=vt(i,n,a,r,e[13],1309151649,21),r=vt(r,i,n,a,e[4],4149444226,6),a=vt(a,r,i,n,e[11],3174756917,10),n=vt(n,a,r,i,e[2],718787259,15),i=vt(i,n,a,r,e[9],3951481745,21),this._a=this._a+r|0,this._b=this._b+i|0,this._c=this._c+n|0,this._d=this._d+a|0};ds.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var e=A4.allocUnsafe(16);return e.writeInt32LE(this._a,0),e.writeInt32LE(this._b,4),e.writeInt32LE(this._c,8),e.writeInt32LE(this._d,12),e};function ps(e,t){return e<<t|e>>>32-t}function ct(e,t,r,i,n,a,o){return ps(e+(t&r|~t&i)+n+a|0,o)+t|0}function dt(e,t,r,i,n,a,o){return ps(e+(t&i|r&~i)+n+a|0,o)+t|0}function pt(e,t,r,i,n,a,o){return ps(e+(t^r^i)+n+a|0,o)+t|0}function vt(e,t,r,i,n,a,o){return ps(e+(r^(t|~i))+n+a|0,o)+t|0}g1.exports=ds});var wh=R((VD,mh)=>{m();typeof Object.create=="function"?mh.exports=function(t,r){r&&(t.super_=r,t.prototype=Object.create(r.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:mh.exports=function(t,r){if(r){t.super_=r;var i=function(){};i.prototype=r.prototype,t.prototype=new i,t.prototype.constructor=t}}});var _1=R((YD,b1)=>{m();var R4={}.toString;b1.exports=Array.isArray||function(e){return R4.call(e)=="[object Array]"}});var w1=R((XD,m1)=>{"use strict";m();var k4=Ni(),T4=Hr(),I4=T4("TypedArray.prototype.buffer",!0),O4=Ll();m1.exports=I4||function(t){if(!O4(t))throw new k4("Not a Typed Array");return t.buffer}});var to=R((eN,E1)=>{"use strict";m();var Vt=De().Buffer,q4=_1(),D4=w1(),N4=ArrayBuffer.isView||function(t){try{return D4(t),!0}catch{return!1}},P4=typeof Uint8Array<"u",x1=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u",L4=x1&&(Vt.prototype instanceof Uint8Array||Vt.TYPED_ARRAY_SUPPORT);E1.exports=function(t,r){if(Vt.isBuffer(t))return t.constructor&&!("isBuffer"in t)?Vt.from(t):t;if(typeof t=="string")return Vt.from(t,r);if(x1&&N4(t)){if(t.byteLength===0)return Vt.alloc(0);if(L4){var i=Vt.from(t.buffer,t.byteOffset,t.byteLength);if(i.byteLength===t.byteLength)return i}var n=t instanceof Uint8Array?t:new Uint8Array(t.buffer,t.byteOffset,t.byteLength),a=Vt.from(n);if(a.length===t.byteLength)return a}if(P4&&t instanceof Uint8Array)return Vt.from(t);var o=q4(t);if(o)for(var s=0;s<t.length;s+=1){var y=t[s];if(typeof y!="number"||y<0||y>255||~~y!==y)throw new RangeError("Array items must be numbers in the range 0-255.")}if(o||Vt.isBuffer(t)&&t.constructor&&typeof t.constructor.isBuffer=="function"&&t.constructor.isBuffer(t))return Vt.from(t);throw new TypeError('The "data" argument must be a string, an Array, a Buffer, a Uint8Array, or a DataView.')}});var B1=R((rN,A1)=>{"use strict";m();var C4=De().Buffer,U4=to(),M1=typeof Uint8Array<"u",F4=M1&&typeof ArrayBuffer<"u",S1=F4&&ArrayBuffer.isView;A1.exports=function(e,t){if(typeof e=="string"||C4.isBuffer(e)||M1&&e instanceof Uint8Array||S1&&S1(e))return U4(e,t);throw new TypeError('The "data" argument must be a string, a Buffer, a Uint8Array, or a DataView')}});var ro=R((nN,xh)=>{"use strict";m();typeof M.default>"u"||!M.default.version||M.default.version.indexOf("v0.")===0||M.default.version.indexOf("v1.")===0&&M.default.version.indexOf("v1.8.")!==0?xh.exports={nextTick:j4}:xh.exports=M.default;function j4(e,t,r,i){if(typeof e!="function")throw new TypeError('"callback" argument must be a function');var n=arguments.length,a,o;switch(n){case 0:case 1:return M.default.nextTick(e);case 2:return M.default.nextTick(function(){e.call(null,t)});case 3:return M.default.nextTick(function(){e.call(null,t,r)});case 4:return M.default.nextTick(function(){e.call(null,t,r,i)});default:for(a=new Array(n-1),o=0;o<a.length;)a[o++]=arguments[o];return M.default.nextTick(function(){e.apply(null,a)})}}});var k1=R((oN,R1)=>{m();var z4={}.toString;R1.exports=Array.isArray||function(e){return z4.call(e)=="[object Array]"}});var Eh=R((sN,T1)=>{m();T1.exports=On().EventEmitter});var gs=R((Sh,O1)=>{m();var ys=st(),Tr=ys.Buffer;function I1(e,t){for(var r in e)t[r]=e[r]}Tr.from&&Tr.alloc&&Tr.allocUnsafe&&Tr.allocUnsafeSlow?O1.exports=ys:(I1(ys,Sh),Sh.Buffer=Vn);function Vn(e,t,r){return Tr(e,t,r)}I1(Tr,Vn);Vn.from=function(e,t,r){if(typeof e=="number")throw new TypeError("Argument must not be a number");return Tr(e,t,r)};Vn.alloc=function(e,t,r){if(typeof e!="number")throw new TypeError("Argument must be a number");var i=Tr(e);return t!==void 0?typeof r=="string"?i.fill(t,r):i.fill(t):i.fill(0),i};Vn.allocUnsafe=function(e){if(typeof e!="number")throw new TypeError("Argument must be a number");return Tr(e)};Vn.allocUnsafeSlow=function(e){if(typeof e!="number")throw new TypeError("Argument must be a number");return ys.SlowBuffer(e)}});var $n=R(yt=>{m();function Z4(e){return Array.isArray?Array.isArray(e):bs(e)==="[object Array]"}yt.isArray=Z4;function H4(e){return typeof e=="boolean"}yt.isBoolean=H4;function W4(e){return e===null}yt.isNull=W4;function K4(e){return e==null}yt.isNullOrUndefined=K4;function G4(e){return typeof e=="number"}yt.isNumber=G4;function V4(e){return typeof e=="string"}yt.isString=V4;function $4(e){return typeof e=="symbol"}yt.isSymbol=$4;function Y4(e){return e===void 0}yt.isUndefined=Y4;function J4(e){return bs(e)==="[object RegExp]"}yt.isRegExp=J4;function X4(e){return typeof e=="object"&&e!==null}yt.isObject=X4;function Q4(e){return bs(e)==="[object Date]"}yt.isDate=Q4;function eA(e){return bs(e)==="[object Error]"||e instanceof Error}yt.isError=eA;function tA(e){return typeof e=="function"}yt.isFunction=tA;function rA(e){return e===null||typeof e=="boolean"||typeof e=="number"||typeof e=="string"||typeof e=="symbol"||typeof e>"u"}yt.isPrimitive=rA;yt.isBuffer=st().Buffer.isBuffer;function bs(e){return Object.prototype.toString.call(e)}});var D1=R((dN,Mh)=>{"use strict";m();function iA(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var q1=gs().Buffer,io=Gt();function nA(e,t,r){e.copy(t,r)}Mh.exports=(function(){function e(){iA(this,e),this.head=null,this.tail=null,this.length=0}return e.prototype.push=function(r){var i={data:r,next:null};this.length>0?this.tail.next=i:this.head=i,this.tail=i,++this.length},e.prototype.unshift=function(r){var i={data:r,next:this.head};this.length===0&&(this.tail=i),this.head=i,++this.length},e.prototype.shift=function(){if(this.length!==0){var r=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,r}},e.prototype.clear=function(){this.head=this.tail=null,this.length=0},e.prototype.join=function(r){if(this.length===0)return"";for(var i=this.head,n=""+i.data;i=i.next;)n+=r+i.data;return n},e.prototype.concat=function(r){if(this.length===0)return q1.alloc(0);for(var i=q1.allocUnsafe(r>>>0),n=this.head,a=0;n;)nA(n.data,i,a),a+=n.data.length,n=n.next;return i},e})();io&&io.inspect&&io.inspect.custom&&(Mh.exports.prototype[io.inspect.custom]=function(){var e=io.inspect({length:this.length});return this.constructor.name+" "+e})});var Ah=R((vN,N1)=>{"use strict";m();var _s=ro();function aA(e,t){var r=this,i=this._readableState&&this._readableState.destroyed,n=this._writableState&&this._writableState.destroyed;return i||n?(t?t(e):e&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,_s.nextTick(ms,this,e)):_s.nextTick(ms,this,e)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,function(a){!t&&a?r._writableState?r._writableState.errorEmitted||(r._writableState.errorEmitted=!0,_s.nextTick(ms,r,a)):_s.nextTick(ms,r,a):t&&t(a)}),this)}function oA(){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)}function ms(e,t){e.emit("error",t)}N1.exports={destroy:aA,undestroy:oA}});var Rh=R((gN,Z1)=>{"use strict";m();var Wi=ro();Z1.exports=tt;function L1(e){var t=this;this.next=null,this.entry=null,this.finish=function(){SA(t,e)}}var fA=!M.default.browser&&["v0.10","v0.9."].indexOf(M.default.version.slice(0,5))>-1?setImmediate:Wi.nextTick,Yn;tt.WritableState=ao;var C1=Object.create($n());C1.inherits=Ke();var sA={deprecate:Yl()},U1=Eh(),xs=gs().Buffer,uA=(typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function lA(e){return xs.from(e)}function hA(e){return xs.isBuffer(e)||e instanceof uA}var F1=Ah();C1.inherits(tt,U1);function cA(){}function ao(e,t){Yn=Yn||Ki(),e=e||{};var r=t instanceof Yn;this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.writableObjectMode);var i=e.highWaterMark,n=e.writableHighWaterMark,a=this.objectMode?16:16*1024;i||i===0?this.highWaterMark=i:r&&(n||n===0)?this.highWaterMark=n:this.highWaterMark=a,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var o=e.decodeStrings===!1;this.decodeStrings=!o,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(s){_A(t,s)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new L1(this)}ao.prototype.getBuffer=function(){for(var t=this.bufferedRequest,r=[];t;)r.push(t),t=t.next;return r};(function(){try{Object.defineProperty(ao.prototype,"buffer",{get:sA.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}})();var ws;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(ws=Function.prototype[Symbol.hasInstance],Object.defineProperty(tt,Symbol.hasInstance,{value:function(e){return ws.call(this,e)?!0:this!==tt?!1:e&&e._writableState instanceof ao}})):ws=function(e){return e instanceof this};function tt(e){if(Yn=Yn||Ki(),!ws.call(tt,this)&&!(this instanceof Yn))return new tt(e);this._writableState=new ao(e,this),this.writable=!0,e&&(typeof e.write=="function"&&(this._write=e.write),typeof e.writev=="function"&&(this._writev=e.writev),typeof e.destroy=="function"&&(this._destroy=e.destroy),typeof e.final=="function"&&(this._final=e.final)),U1.call(this)}tt.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))};function dA(e,t){var r=new Error("write after end");e.emit("error",r),Wi.nextTick(t,r)}function pA(e,t,r,i){var n=!0,a=!1;return r===null?a=new TypeError("May not write null values to stream"):typeof r!="string"&&r!==void 0&&!t.objectMode&&(a=new TypeError("Invalid non-string/buffer chunk")),a&&(e.emit("error",a),Wi.nextTick(i,a),n=!1),n}tt.prototype.write=function(e,t,r){var i=this._writableState,n=!1,a=!i.objectMode&&hA(e);return a&&!xs.isBuffer(e)&&(e=lA(e)),typeof t=="function"&&(r=t,t=null),a?t="buffer":t||(t=i.defaultEncoding),typeof r!="function"&&(r=cA),i.ended?dA(this,r):(a||pA(this,i,e,r))&&(i.pendingcb++,n=yA(this,i,a,e,t,r)),n};tt.prototype.cork=function(){var e=this._writableState;e.corked++};tt.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,!e.writing&&!e.corked&&!e.bufferProcessing&&e.bufferedRequest&&j1(this,e))};tt.prototype.setDefaultEncoding=function(t){if(typeof t=="string"&&(t=t.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((t+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+t);return this._writableState.defaultEncoding=t,this};function vA(e,t,r){return!e.objectMode&&e.decodeStrings!==!1&&typeof t=="string"&&(t=xs.from(t,r)),t}Object.defineProperty(tt.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function yA(e,t,r,i,n,a){if(!r){var o=vA(t,i,n);i!==o&&(r=!0,n="buffer",i=o)}var s=t.objectMode?1:i.length;t.length+=s;var y=t.length<t.highWaterMark;if(y||(t.needDrain=!0),t.writing||t.corked){var _=t.lastBufferedRequest;t.lastBufferedRequest={chunk:i,encoding:n,isBuf:r,callback:a,next:null},_?_.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1}else Bh(e,t,!1,s,i,n,a);return y}function Bh(e,t,r,i,n,a,o){t.writelen=i,t.writecb=o,t.writing=!0,t.sync=!0,r?e._writev(n,t.onwrite):e._write(n,a,t.onwrite),t.sync=!1}function gA(e,t,r,i,n){--t.pendingcb,r?(Wi.nextTick(n,i),Wi.nextTick(no,e,t),e._writableState.errorEmitted=!0,e.emit("error",i)):(n(i),e._writableState.errorEmitted=!0,e.emit("error",i),no(e,t))}function bA(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}function _A(e,t){var r=e._writableState,i=r.sync,n=r.writecb;if(bA(r),t)gA(e,r,i,t,n);else{var a=z1(r);!a&&!r.corked&&!r.bufferProcessing&&r.bufferedRequest&&j1(e,r),i?fA(P1,e,r,a,n):P1(e,r,a,n)}}function P1(e,t,r,i){r||mA(e,t),t.pendingcb--,i(),no(e,t)}function mA(e,t){t.length===0&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}function j1(e,t){t.bufferProcessing=!0;var r=t.bufferedRequest;if(e._writev&&r&&r.next){var i=t.bufferedRequestCount,n=new Array(i),a=t.corkedRequestsFree;a.entry=r;for(var o=0,s=!0;r;)n[o]=r,r.isBuf||(s=!1),r=r.next,o+=1;n.allBuffers=s,Bh(e,t,!0,t.length,n,"",a.finish),t.pendingcb++,t.lastBufferedRequest=null,a.next?(t.corkedRequestsFree=a.next,a.next=null):t.corkedRequestsFree=new L1(t),t.bufferedRequestCount=0}else{for(;r;){var y=r.chunk,_=r.encoding,x=r.callback,B=t.objectMode?1:y.length;if(Bh(e,t,!1,B,y,_,x),r=r.next,t.bufferedRequestCount--,t.writing)break}r===null&&(t.lastBufferedRequest=null)}t.bufferedRequest=r,t.bufferProcessing=!1}tt.prototype._write=function(e,t,r){r(new Error("_write() is not implemented"))};tt.prototype._writev=null;tt.prototype.end=function(e,t,r){var i=this._writableState;typeof e=="function"?(r=e,e=null,t=null):typeof t=="function"&&(r=t,t=null),e!=null&&this.write(e,t),i.corked&&(i.corked=1,this.uncork()),i.ending||EA(this,i,r)};function z1(e){return e.ending&&e.length===0&&e.bufferedRequest===null&&!e.finished&&!e.writing}function wA(e,t){e._final(function(r){t.pendingcb--,r&&e.emit("error",r),t.prefinished=!0,e.emit("prefinish"),no(e,t)})}function xA(e,t){!t.prefinished&&!t.finalCalled&&(typeof e._final=="function"?(t.pendingcb++,t.finalCalled=!0,Wi.nextTick(wA,e,t)):(t.prefinished=!0,e.emit("prefinish")))}function no(e,t){var r=z1(t);return r&&(xA(e,t),t.pendingcb===0&&(t.finished=!0,e.emit("finish"))),r}function EA(e,t,r){t.ending=!0,no(e,t),r&&(t.finished?Wi.nextTick(r):e.once("finish",r)),t.ended=!0,e.writable=!1}function SA(e,t,r){var i=e.entry;for(e.entry=null;i;){var n=i.callback;t.pendingcb--,n(r),i=i.next}t.corkedRequestsFree.next=e}Object.defineProperty(tt.prototype,"destroyed",{get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}});tt.prototype.destroy=F1.destroy;tt.prototype._undestroy=F1.undestroy;tt.prototype._destroy=function(e,t){this.end(),t(e)}});var Ki=R((_N,G1)=>{"use strict";m();var H1=ro(),MA=Object.keys||function(e){var t=[];for(var r in e)t.push(r);return t};G1.exports=Ir;var W1=Object.create($n());W1.inherits=Ke();var K1=Ih(),Th=Rh();W1.inherits(Ir,K1);for(kh=MA(Th.prototype),Es=0;Es<kh.length;Es++)Ss=kh[Es],Ir.prototype[Ss]||(Ir.prototype[Ss]=Th.prototype[Ss]);var kh,Ss,Es;function Ir(e){if(!(this instanceof Ir))return new Ir(e);K1.call(this,e),Th.call(this,e),e&&e.readable===!1&&(this.readable=!1),e&&e.writable===!1&&(this.writable=!1),this.allowHalfOpen=!0,e&&e.allowHalfOpen===!1&&(this.allowHalfOpen=!1),this.once("end",AA)}Object.defineProperty(Ir.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function AA(){this.allowHalfOpen||this._writableState.ended||H1.nextTick(BA,this)}function BA(e){e.end()}Object.defineProperty(Ir.prototype,"destroyed",{get:function(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},set:function(e){this._readableState===void 0||this._writableState===void 0||(this._readableState.destroyed=e,this._writableState.destroyed=e)}});Ir.prototype._destroy=function(e,t){this.push(null),this.end(),H1.nextTick(t,e)}});var Ih=R((xN,ag)=>{"use strict";m();var Xn=ro();ag.exports=Ve;var RA=k1(),oo;Ve.ReadableState=eg;var wN=On().EventEmitter,J1=function(e,t){return e.listeners(t).length},Ph=Eh(),fo=gs().Buffer,kA=(typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function TA(e){return fo.from(e)}function IA(e){return fo.isBuffer(e)||e instanceof kA}var X1=Object.create($n());X1.inherits=Ke();var Oh=Gt(),Ze=void 0;Oh&&Oh.debuglog?Ze=Oh.debuglog("stream"):Ze=function(){};var OA=D1(),Q1=Ah(),Jn;X1.inherits(Ve,Ph);var qh=["error","close","destroy","pause","resume"];function qA(e,t,r){if(typeof e.prependListener=="function")return e.prependListener(t,r);!e._events||!e._events[t]?e.on(t,r):RA(e._events[t])?e._events[t].unshift(r):e._events[t]=[r,e._events[t]]}function eg(e,t){oo=oo||Ki(),e=e||{};var r=t instanceof oo;this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.readableObjectMode);var i=e.highWaterMark,n=e.readableHighWaterMark,a=this.objectMode?16:16*1024;i||i===0?this.highWaterMark=i:r&&(n||n===0)?this.highWaterMark=n:this.highWaterMark=a,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new OA,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(Jn||(Jn=Wn().StringDecoder),this.decoder=new Jn(e.encoding),this.encoding=e.encoding)}function Ve(e){if(oo=oo||Ki(),!(this instanceof Ve))return new Ve(e);this._readableState=new eg(e,this),this.readable=!0,e&&(typeof e.read=="function"&&(this._read=e.read),typeof e.destroy=="function"&&(this._destroy=e.destroy)),Ph.call(this)}Object.defineProperty(Ve.prototype,"destroyed",{get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e)}});Ve.prototype.destroy=Q1.destroy;Ve.prototype._undestroy=Q1.undestroy;Ve.prototype._destroy=function(e,t){this.push(null),t(e)};Ve.prototype.push=function(e,t){var r=this._readableState,i;return r.objectMode?i=!0:typeof e=="string"&&(t=t||r.defaultEncoding,t!==r.encoding&&(e=fo.from(e,t),t=""),i=!0),tg(this,e,t,!1,i)};Ve.prototype.unshift=function(e){return tg(this,e,null,!0,!1)};function tg(e,t,r,i,n){var a=e._readableState;if(t===null)a.reading=!1,LA(e,a);else{var o;n||(o=DA(a,t)),o?e.emit("error",o):a.objectMode||t&&t.length>0?(typeof t!="string"&&!a.objectMode&&Object.getPrototypeOf(t)!==fo.prototype&&(t=TA(t)),i?a.endEmitted?e.emit("error",new Error("stream.unshift() after end event")):Dh(e,a,t,!0):a.ended?e.emit("error",new Error("stream.push() after EOF")):(a.reading=!1,a.decoder&&!r?(t=a.decoder.write(t),a.objectMode||t.length!==0?Dh(e,a,t,!1):rg(e,a)):Dh(e,a,t,!1))):i||(a.reading=!1)}return NA(a)}function Dh(e,t,r,i){t.flowing&&t.length===0&&!t.sync?(e.emit("data",r),e.read(0)):(t.length+=t.objectMode?1:r.length,i?t.buffer.unshift(r):t.buffer.push(r),t.needReadable&&Ms(e)),rg(e,t)}function DA(e,t){var r;return!IA(t)&&typeof t!="string"&&t!==void 0&&!e.objectMode&&(r=new TypeError("Invalid non-string/buffer chunk")),r}function NA(e){return!e.ended&&(e.needReadable||e.length<e.highWaterMark||e.length===0)}Ve.prototype.isPaused=function(){return this._readableState.flowing===!1};Ve.prototype.setEncoding=function(e){return Jn||(Jn=Wn().StringDecoder),this._readableState.decoder=new Jn(e),this._readableState.encoding=e,this};var V1=8388608;function PA(e){return e>=V1?e=V1:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}function $1(e,t){return e<=0||t.length===0&&t.ended?0:t.objectMode?1:e!==e?t.flowing&&t.length?t.buffer.head.data.length:t.length:(e>t.highWaterMark&&(t.highWaterMark=PA(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}Ve.prototype.read=function(e){Ze("read",e),e=parseInt(e,10);var t=this._readableState,r=e;if(e!==0&&(t.emittedReadable=!1),e===0&&t.needReadable&&(t.length>=t.highWaterMark||t.ended))return Ze("read: emitReadable",t.length,t.ended),t.length===0&&t.ended?Nh(this):Ms(this),null;if(e=$1(e,t),e===0&&t.ended)return t.length===0&&Nh(this),null;var i=t.needReadable;Ze("need readable",i),(t.length===0||t.length-e<t.highWaterMark)&&(i=!0,Ze("length less than watermark",i)),t.ended||t.reading?(i=!1,Ze("reading or ended",i)):i&&(Ze("do read"),t.reading=!0,t.sync=!0,t.length===0&&(t.needReadable=!0),this._read(t.highWaterMark),t.sync=!1,t.reading||(e=$1(r,t)));var n;return e>0?n=ig(e,t):n=null,n===null?(t.needReadable=!0,e=0):t.length-=e,t.length===0&&(t.ended||(t.needReadable=!0),r!==e&&t.ended&&Nh(this)),n!==null&&this.emit("data",n),n};function LA(e,t){if(!t.ended){if(t.decoder){var r=t.decoder.end();r&&r.length&&(t.buffer.push(r),t.length+=t.objectMode?1:r.length)}t.ended=!0,Ms(e)}}function Ms(e){var t=e._readableState;t.needReadable=!1,t.emittedReadable||(Ze("emitReadable",t.flowing),t.emittedReadable=!0,t.sync?Xn.nextTick(Y1,e):Y1(e))}function Y1(e){Ze("emit readable"),e.emit("readable"),Lh(e)}function rg(e,t){t.readingMore||(t.readingMore=!0,Xn.nextTick(CA,e,t))}function CA(e,t){for(var r=t.length;!t.reading&&!t.flowing&&!t.ended&&t.length<t.highWaterMark&&(Ze("maybeReadMore read 0"),e.read(0),r!==t.length);)r=t.length;t.readingMore=!1}Ve.prototype._read=function(e){this.emit("error",new Error("_read() is not implemented"))};Ve.prototype.pipe=function(e,t){var r=this,i=this._readableState;switch(i.pipesCount){case 0:i.pipes=e;break;case 1:i.pipes=[i.pipes,e];break;default:i.pipes.push(e);break}i.pipesCount+=1,Ze("pipe count=%d opts=%j",i.pipesCount,t);var n=(!t||t.end!==!1)&&e!==M.default.stdout&&e!==M.default.stderr,a=n?s:U;i.endEmitted?Xn.nextTick(a):r.once("end",a),e.on("unpipe",o);function o(N,j){Ze("onunpipe"),N===r&&j&&j.hasUnpiped===!1&&(j.hasUnpiped=!0,x())}function s(){Ze("onend"),e.end()}var y=UA(r);e.on("drain",y);var _=!1;function x(){Ze("cleanup"),e.removeListener("close",O),e.removeListener("finish",D),e.removeListener("drain",y),e.removeListener("error",T),e.removeListener("unpipe",o),r.removeListener("end",s),r.removeListener("end",U),r.removeListener("data",k),_=!0,i.awaitDrain&&(!e._writableState||e._writableState.needDrain)&&y()}var B=!1;r.on("data",k);function k(N){Ze("ondata"),B=!1;var j=e.write(N);j===!1&&!B&&((i.pipesCount===1&&i.pipes===e||i.pipesCount>1&&ng(i.pipes,e)!==-1)&&!_&&(Ze("false write response, pause",i.awaitDrain),i.awaitDrain++,B=!0),r.pause())}function T(N){Ze("onerror",N),U(),e.removeListener("error",T),J1(e,"error")===0&&e.emit("error",N)}qA(e,"error",T);function O(){e.removeListener("finish",D),U()}e.once("close",O);function D(){Ze("onfinish"),e.removeListener("close",O),U()}e.once("finish",D);function U(){Ze("unpipe"),r.unpipe(e)}return e.emit("pipe",r),i.flowing||(Ze("pipe resume"),r.resume()),e};function UA(e){return function(){var t=e._readableState;Ze("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,t.awaitDrain===0&&J1(e,"data")&&(t.flowing=!0,Lh(e))}}Ve.prototype.unpipe=function(e){var t=this._readableState,r={hasUnpiped:!1};if(t.pipesCount===0)return this;if(t.pipesCount===1)return e&&e!==t.pipes?this:(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,r),this);if(!e){var i=t.pipes,n=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var a=0;a<n;a++)i[a].emit("unpipe",this,{hasUnpiped:!1});return this}var o=ng(t.pipes,e);return o===-1?this:(t.pipes.splice(o,1),t.pipesCount-=1,t.pipesCount===1&&(t.pipes=t.pipes[0]),e.emit("unpipe",this,r),this)};Ve.prototype.on=function(e,t){var r=Ph.prototype.on.call(this,e,t);if(e==="data")this._readableState.flowing!==!1&&this.resume();else if(e==="readable"){var i=this._readableState;!i.endEmitted&&!i.readableListening&&(i.readableListening=i.needReadable=!0,i.emittedReadable=!1,i.reading?i.length&&Ms(this):Xn.nextTick(FA,this))}return r};Ve.prototype.addListener=Ve.prototype.on;function FA(e){Ze("readable nexttick read 0"),e.read(0)}Ve.prototype.resume=function(){var e=this._readableState;return e.flowing||(Ze("resume"),e.flowing=!0,jA(this,e)),this};function jA(e,t){t.resumeScheduled||(t.resumeScheduled=!0,Xn.nextTick(zA,e,t))}function zA(e,t){t.reading||(Ze("resume read 0"),e.read(0)),t.resumeScheduled=!1,t.awaitDrain=0,e.emit("resume"),Lh(e),t.flowing&&!t.reading&&e.read(0)}Ve.prototype.pause=function(){return Ze("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(Ze("pause"),this._readableState.flowing=!1,this.emit("pause")),this};function Lh(e){var t=e._readableState;for(Ze("flow",t.flowing);t.flowing&&e.read()!==null;);}Ve.prototype.wrap=function(e){var t=this,r=this._readableState,i=!1;e.on("end",function(){if(Ze("wrapped end"),r.decoder&&!r.ended){var o=r.decoder.end();o&&o.length&&t.push(o)}t.push(null)}),e.on("data",function(o){if(Ze("wrapped data"),r.decoder&&(o=r.decoder.write(o)),!(r.objectMode&&o==null)&&!(!r.objectMode&&(!o||!o.length))){var s=t.push(o);s||(i=!0,e.pause())}});for(var n in e)this[n]===void 0&&typeof e[n]=="function"&&(this[n]=(function(o){return function(){return e[o].apply(e,arguments)}})(n));for(var a=0;a<qh.length;a++)e.on(qh[a],this.emit.bind(this,qh[a]));return this._read=function(o){Ze("wrapped _read",o),i&&(i=!1,e.resume())},this};Object.defineProperty(Ve.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}});Ve._fromList=ig;function ig(e,t){if(t.length===0)return null;var r;return t.objectMode?r=t.buffer.shift():!e||e>=t.length?(t.decoder?r=t.buffer.join(""):t.buffer.length===1?r=t.buffer.head.data:r=t.buffer.concat(t.length),t.buffer.clear()):r=ZA(e,t.buffer,t.decoder),r}function ZA(e,t,r){var i;return e<t.head.data.length?(i=t.head.data.slice(0,e),t.head.data=t.head.data.slice(e)):e===t.head.data.length?i=t.shift():i=r?HA(e,t):WA(e,t),i}function HA(e,t){var r=t.head,i=1,n=r.data;for(e-=n.length;r=r.next;){var a=r.data,o=e>a.length?a.length:e;if(o===a.length?n+=a:n+=a.slice(0,e),e-=o,e===0){o===a.length?(++i,r.next?t.head=r.next:t.head=t.tail=null):(t.head=r,r.data=a.slice(o));break}++i}return t.length-=i,n}function WA(e,t){var r=fo.allocUnsafe(e),i=t.head,n=1;for(i.data.copy(r),e-=i.data.length;i=i.next;){var a=i.data,o=e>a.length?a.length:e;if(a.copy(r,r.length-e,0,o),e-=o,e===0){o===a.length?(++n,i.next?t.head=i.next:t.head=t.tail=null):(t.head=i,i.data=a.slice(o));break}++n}return t.length-=n,r}function Nh(e){var t=e._readableState;if(t.length>0)throw new Error('"endReadable()" called on non-empty stream');t.endEmitted||(t.ended=!0,Xn.nextTick(KA,t,e))}function KA(e,t){!e.endEmitted&&e.length===0&&(e.endEmitted=!0,t.readable=!1,t.emit("end"))}function ng(e,t){for(var r=0,i=e.length;r<i;r++)if(e[r]===t)return r;return-1}});var Ch=R((SN,sg)=>{"use strict";m();sg.exports=Or;var As=Ki(),fg=Object.create($n());fg.inherits=Ke();fg.inherits(Or,As);function GA(e,t){var r=this._transformState;r.transforming=!1;var i=r.writecb;if(!i)return this.emit("error",new Error("write callback called multiple times"));r.writechunk=null,r.writecb=null,t!=null&&this.push(t),i(e);var n=this._readableState;n.reading=!1,(n.needReadable||n.length<n.highWaterMark)&&this._read(n.highWaterMark)}function Or(e){if(!(this instanceof Or))return new Or(e);As.call(this,e),this._transformState={afterTransform:GA.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,e&&(typeof e.transform=="function"&&(this._transform=e.transform),typeof e.flush=="function"&&(this._flush=e.flush)),this.on("prefinish",VA)}function VA(){var e=this;typeof this._flush=="function"?this._flush(function(t,r){og(e,t,r)}):og(this,null,null)}Or.prototype.push=function(e,t){return this._transformState.needTransform=!1,As.prototype.push.call(this,e,t)};Or.prototype._transform=function(e,t,r){throw new Error("_transform() is not implemented")};Or.prototype._write=function(e,t,r){var i=this._transformState;if(i.writecb=r,i.writechunk=e,i.writeencoding=t,!i.transforming){var n=this._readableState;(i.needTransform||n.needReadable||n.length<n.highWaterMark)&&this._read(n.highWaterMark)}};Or.prototype._read=function(e){var t=this._transformState;t.writechunk!==null&&t.writecb&&!t.transforming?(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform)):t.needTransform=!0};Or.prototype._destroy=function(e,t){var r=this;As.prototype._destroy.call(this,e,function(i){t(i),r.emit("close")})};function og(e,t,r){if(t)return e.emit("error",t);if(r!=null&&e.push(r),e._writableState.length)throw new Error("Calling transform done when ws.length != 0");if(e._transformState.transforming)throw new Error("Calling transform done when still transforming");return e.push(null)}});var cg=R((AN,hg)=>{"use strict";m();hg.exports=so;var ug=Ch(),lg=Object.create($n());lg.inherits=Ke();lg.inherits(so,ug);function so(e){if(!(this instanceof so))return new so(e);ug.call(this,e)}so.prototype._transform=function(e,t,r){r(null,e)}});var pg=R((vr,dg)=>{m();vr=dg.exports=Ih();vr.Stream=vr;vr.Readable=vr;vr.Writable=Rh();vr.Duplex=Ki();vr.Transform=Ch();vr.PassThrough=cg()});var gg=R((kN,yg)=>{"use strict";m();var $A=De().Buffer,YA=B1(),vg=pg().Transform,JA=wh();function Jr(e){vg.call(this),this._block=$A.allocUnsafe(e),this._blockSize=e,this._blockOffset=0,this._length=[0,0,0,0],this._finalized=!1}JA(Jr,vg);Jr.prototype._transform=function(e,t,r){var i=null;try{this.update(e,t)}catch(n){i=n}r(i)};Jr.prototype._flush=function(e){var t=null;try{this.push(this.digest())}catch(r){t=r}e(t)};Jr.prototype.update=function(e,t){if(this._finalized)throw new Error("Digest already called");for(var r=YA(e,t),i=this._block,n=0;this._blockOffset+r.length-n>=this._blockSize;){for(var a=this._blockOffset;a<this._blockSize;)i[a]=r[n],a+=1,n+=1;this._update(),this._blockOffset=0}for(;n<r.length;)i[this._blockOffset]=r[n],this._blockOffset+=1,n+=1;for(var o=0,s=r.length*8;s>0;++o)this._length[o]+=s,s=this._length[o]/4294967296|0,s>0&&(this._length[o]-=4294967296*s);return this};Jr.prototype._update=function(){throw new Error("_update is not implemented")};Jr.prototype.digest=function(e){if(this._finalized)throw new Error("Digest already called");this._finalized=!0;var t=this._digest();e!==void 0&&(t=t.toString(e)),this._block.fill(0),this._blockOffset=0;for(var r=0;r<4;++r)this._length[r]=0;return t};Jr.prototype._digest=function(){throw new Error("_digest is not implemented")};yg.exports=Jr});var Rs=R((IN,Sg)=>{"use strict";m();var Uh=st().Buffer,XA=wh(),Eg=gg(),QA=new Array(16),uo=[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],lo=[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],ho=[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],co=[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],po=[0,1518500249,1859775393,2400959708,2840853838],vo=[1352829926,1548603684,1836072691,2053994217,0];function Gi(e,t){return e<<t|e>>>32-t}function bg(e,t,r,i,n,a,o,s){return Gi(e+(t^r^i)+a+o|0,s)+n|0}function _g(e,t,r,i,n,a,o,s){return Gi(e+(t&r|~t&i)+a+o|0,s)+n|0}function mg(e,t,r,i,n,a,o,s){return Gi(e+((t|~r)^i)+a+o|0,s)+n|0}function wg(e,t,r,i,n,a,o,s){return Gi(e+(t&i|r&~i)+a+o|0,s)+n|0}function xg(e,t,r,i,n,a,o,s){return Gi(e+(t^(r|~i))+a+o|0,s)+n|0}function Bs(){Eg.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520}XA(Bs,Eg);Bs.prototype._update=function(){for(var e=QA,t=0;t<16;++t)e[t]=this._block.readInt32LE(t*4);for(var r=this._a|0,i=this._b|0,n=this._c|0,a=this._d|0,o=this._e|0,s=this._a|0,y=this._b|0,_=this._c|0,x=this._d|0,B=this._e|0,k=0;k<80;k+=1){var T,O;k<16?(T=bg(r,i,n,a,o,e[uo[k]],po[0],ho[k]),O=xg(s,y,_,x,B,e[lo[k]],vo[0],co[k])):k<32?(T=_g(r,i,n,a,o,e[uo[k]],po[1],ho[k]),O=wg(s,y,_,x,B,e[lo[k]],vo[1],co[k])):k<48?(T=mg(r,i,n,a,o,e[uo[k]],po[2],ho[k]),O=mg(s,y,_,x,B,e[lo[k]],vo[2],co[k])):k<64?(T=wg(r,i,n,a,o,e[uo[k]],po[3],ho[k]),O=_g(s,y,_,x,B,e[lo[k]],vo[3],co[k])):(T=xg(r,i,n,a,o,e[uo[k]],po[4],ho[k]),O=bg(s,y,_,x,B,e[lo[k]],vo[4],co[k])),r=o,o=a,a=Gi(n,10),n=i,i=T,s=B,B=x,x=Gi(_,10),_=y,y=O}var D=this._b+n+x|0;this._b=this._c+a+B|0,this._c=this._d+o+s|0,this._d=this._e+r+y|0,this._e=this._a+i+_|0,this._a=D};Bs.prototype._digest=function(){this._block[this._blockOffset]=128,this._blockOffset+=1,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var e=Uh.alloc?Uh.alloc(20):new Uh(20);return e.writeInt32LE(this._a,0),e.writeInt32LE(this._b,4),e.writeInt32LE(this._c,8),e.writeInt32LE(this._d,12),e.writeInt32LE(this._e,16),e};Sg.exports=Bs});var Vi=R((qN,Fh)=>{m();typeof Object.create=="function"?Fh.exports=function(t,r){r&&(t.super_=r,t.prototype=Object.create(r.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:Fh.exports=function(t,r){if(r){t.super_=r;var i=function(){};i.prototype=r.prototype,t.prototype=new i,t.prototype.constructor=t}}});var $i=R((NN,Mg)=>{"use strict";m();var e5=De().Buffer,t5=to();function ks(e,t){this._block=e5.alloc(e),this._finalSize=t,this._blockSize=e,this._len=0}ks.prototype.update=function(e,t){e=t5(e,t||"utf8");for(var r=this._block,i=this._blockSize,n=e.length,a=this._len,o=0;o<n;){for(var s=a%i,y=Math.min(n-o,i-s),_=0;_<y;_++)r[s+_]=e[o+_];a+=y,o+=y,a%i===0&&this._update(r)}return this._len+=n,this};ks.prototype.digest=function(e){var t=this._len%this._blockSize;this._block[t]=128,this._block.fill(0,t+1),t>=this._finalSize&&(this._update(this._block),this._block.fill(0));var r=this._len*8;if(r<=4294967295)this._block.writeUInt32BE(r,this._blockSize-4);else{var i=(r&4294967295)>>>0,n=(r-i)/4294967296;this._block.writeUInt32BE(n,this._blockSize-8),this._block.writeUInt32BE(i,this._blockSize-4)}this._update(this._block);var a=this._hash();return e?a.toString(e):a};ks.prototype._update=function(){throw new Error("_update must be implemented by subclass")};Mg.exports=ks});var Rg=R((LN,Bg)=>{"use strict";m();var r5=Vi(),Ag=$i(),i5=De().Buffer,n5=[1518500249,1859775393,-1894007588,-899497514],a5=new Array(80);function yo(){this.init(),this._w=a5,Ag.call(this,64,56)}r5(yo,Ag);yo.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this};function o5(e){return e<<5|e>>>27}function f5(e){return e<<30|e>>>2}function s5(e,t,r,i){return e===0?t&r|~t&i:e===2?t&r|t&i|r&i:t^r^i}yo.prototype._update=function(e){for(var t=this._w,r=this._a|0,i=this._b|0,n=this._c|0,a=this._d|0,o=this._e|0,s=0;s<16;++s)t[s]=e.readInt32BE(s*4);for(;s<80;++s)t[s]=t[s-3]^t[s-8]^t[s-14]^t[s-16];for(var y=0;y<80;++y){var _=~~(y/20),x=o5(r)+s5(_,i,n,a)+o+t[y]+n5[_]|0;o=a,a=n,n=f5(i),i=r,r=x}this._a=r+this._a|0,this._b=i+this._b|0,this._c=n+this._c|0,this._d=a+this._d|0,this._e=o+this._e|0};yo.prototype._hash=function(){var e=i5.allocUnsafe(20);return e.writeInt32BE(this._a|0,0),e.writeInt32BE(this._b|0,4),e.writeInt32BE(this._c|0,8),e.writeInt32BE(this._d|0,12),e.writeInt32BE(this._e|0,16),e};Bg.exports=yo});var Ig=R((UN,Tg)=>{"use strict";m();var u5=Vi(),kg=$i(),l5=De().Buffer,h5=[1518500249,1859775393,-1894007588,-899497514],c5=new Array(80);function go(){this.init(),this._w=c5,kg.call(this,64,56)}u5(go,kg);go.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this};function d5(e){return e<<1|e>>>31}function p5(e){return e<<5|e>>>27}function v5(e){return e<<30|e>>>2}function y5(e,t,r,i){return e===0?t&r|~t&i:e===2?t&r|t&i|r&i:t^r^i}go.prototype._update=function(e){for(var t=this._w,r=this._a|0,i=this._b|0,n=this._c|0,a=this._d|0,o=this._e|0,s=0;s<16;++s)t[s]=e.readInt32BE(s*4);for(;s<80;++s)t[s]=d5(t[s-3]^t[s-8]^t[s-14]^t[s-16]);for(var y=0;y<80;++y){var _=~~(y/20),x=p5(r)+y5(_,i,n,a)+o+t[y]+h5[_]|0;o=a,a=n,n=v5(i),i=r,r=x}this._a=r+this._a|0,this._b=i+this._b|0,this._c=n+this._c|0,this._d=a+this._d|0,this._e=o+this._e|0};go.prototype._hash=function(){var e=l5.allocUnsafe(20);return e.writeInt32BE(this._a|0,0),e.writeInt32BE(this._b|0,4),e.writeInt32BE(this._c|0,8),e.writeInt32BE(this._d|0,12),e.writeInt32BE(this._e|0,16),e};Tg.exports=go});var jh=R((jN,qg)=>{"use strict";m();var g5=Vi(),Og=$i(),b5=De().Buffer,_5=[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],m5=new Array(64);function bo(){this.init(),this._w=m5,Og.call(this,64,56)}g5(bo,Og);bo.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};function w5(e,t,r){return r^e&(t^r)}function x5(e,t,r){return e&t|r&(e|t)}function E5(e){return(e>>>2|e<<30)^(e>>>13|e<<19)^(e>>>22|e<<10)}function S5(e){return(e>>>6|e<<26)^(e>>>11|e<<21)^(e>>>25|e<<7)}function M5(e){return(e>>>7|e<<25)^(e>>>18|e<<14)^e>>>3}function A5(e){return(e>>>17|e<<15)^(e>>>19|e<<13)^e>>>10}bo.prototype._update=function(e){for(var t=this._w,r=this._a|0,i=this._b|0,n=this._c|0,a=this._d|0,o=this._e|0,s=this._f|0,y=this._g|0,_=this._h|0,x=0;x<16;++x)t[x]=e.readInt32BE(x*4);for(;x<64;++x)t[x]=A5(t[x-2])+t[x-7]+M5(t[x-15])+t[x-16]|0;for(var B=0;B<64;++B){var k=_+S5(o)+w5(o,s,y)+_5[B]+t[B]|0,T=E5(r)+x5(r,i,n)|0;_=y,y=s,s=o,o=a+k|0,a=n,n=i,i=r,r=k+T|0}this._a=r+this._a|0,this._b=i+this._b|0,this._c=n+this._c|0,this._d=a+this._d|0,this._e=o+this._e|0,this._f=s+this._f|0,this._g=y+this._g|0,this._h=_+this._h|0};bo.prototype._hash=function(){var e=b5.allocUnsafe(32);return e.writeInt32BE(this._a,0),e.writeInt32BE(this._b,4),e.writeInt32BE(this._c,8),e.writeInt32BE(this._d,12),e.writeInt32BE(this._e,16),e.writeInt32BE(this._f,20),e.writeInt32BE(this._g,24),e.writeInt32BE(this._h,28),e};qg.exports=bo});var Ng=R((ZN,Dg)=>{"use strict";m();var B5=Vi(),R5=jh(),k5=$i(),T5=De().Buffer,I5=new Array(64);function Ts(){this.init(),this._w=I5,k5.call(this,64,56)}B5(Ts,R5);Ts.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};Ts.prototype._hash=function(){var e=T5.allocUnsafe(28);return e.writeInt32BE(this._a,0),e.writeInt32BE(this._b,4),e.writeInt32BE(this._c,8),e.writeInt32BE(this._d,12),e.writeInt32BE(this._e,16),e.writeInt32BE(this._f,20),e.writeInt32BE(this._g,24),e};Dg.exports=Ts});var zh=R((WN,zg)=>{"use strict";m();var O5=Vi(),jg=$i(),q5=De().Buffer,Pg=[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],D5=new Array(160);function _o(){this.init(),this._w=D5,jg.call(this,128,112)}O5(_o,jg);_o.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};function Lg(e,t,r){return r^e&(t^r)}function Cg(e,t,r){return e&t|r&(e|t)}function Ug(e,t){return(e>>>28|t<<4)^(t>>>2|e<<30)^(t>>>7|e<<25)}function Fg(e,t){return(e>>>14|t<<18)^(e>>>18|t<<14)^(t>>>9|e<<23)}function N5(e,t){return(e>>>1|t<<31)^(e>>>8|t<<24)^e>>>7}function P5(e,t){return(e>>>1|t<<31)^(e>>>8|t<<24)^(e>>>7|t<<25)}function L5(e,t){return(e>>>19|t<<13)^(t>>>29|e<<3)^e>>>6}function C5(e,t){return(e>>>19|t<<13)^(t>>>29|e<<3)^(e>>>6|t<<26)}function ft(e,t){return e>>>0<t>>>0?1:0}_o.prototype._update=function(e){for(var t=this._w,r=this._ah|0,i=this._bh|0,n=this._ch|0,a=this._dh|0,o=this._eh|0,s=this._fh|0,y=this._gh|0,_=this._hh|0,x=this._al|0,B=this._bl|0,k=this._cl|0,T=this._dl|0,O=this._el|0,D=this._fl|0,U=this._gl|0,N=this._hl|0,j=0;j<32;j+=2)t[j]=e.readInt32BE(j*4),t[j+1]=e.readInt32BE(j*4+4);for(;j<160;j+=2){var H=t[j-30],W=t[j-30+1],Z=N5(H,W),K=P5(W,H);H=t[j-4],W=t[j-4+1];var J=L5(H,W),z=C5(W,H),X=t[j-14],A=t[j-14+1],h=t[j-32],b=t[j-32+1],d=K+A|0,f=Z+X+ft(d,K)|0;d=d+z|0,f=f+J+ft(d,z)|0,d=d+b|0,f=f+h+ft(d,b)|0,t[j]=f,t[j+1]=d}for(var l=0;l<160;l+=2){f=t[l],d=t[l+1];var v=Cg(r,i,n),g=Cg(x,B,k),p=Ug(r,x),u=Ug(x,r),w=Fg(o,O),E=Fg(O,o),c=Pg[l],S=Pg[l+1],P=Lg(o,s,y),C=Lg(O,D,U),L=N+E|0,V=_+w+ft(L,N)|0;L=L+C|0,V=V+P+ft(L,C)|0,L=L+S|0,V=V+c+ft(L,S)|0,L=L+d|0,V=V+f+ft(L,d)|0;var G=u+g|0,Y=p+v+ft(G,u)|0;_=y,N=U,y=s,U=D,s=o,D=O,O=T+L|0,o=a+V+ft(O,T)|0,a=n,T=k,n=i,k=B,i=r,B=x,x=L+G|0,r=V+Y+ft(x,L)|0}this._al=this._al+x|0,this._bl=this._bl+B|0,this._cl=this._cl+k|0,this._dl=this._dl+T|0,this._el=this._el+O|0,this._fl=this._fl+D|0,this._gl=this._gl+U|0,this._hl=this._hl+N|0,this._ah=this._ah+r+ft(this._al,x)|0,this._bh=this._bh+i+ft(this._bl,B)|0,this._ch=this._ch+n+ft(this._cl,k)|0,this._dh=this._dh+a+ft(this._dl,T)|0,this._eh=this._eh+o+ft(this._el,O)|0,this._fh=this._fh+s+ft(this._fl,D)|0,this._gh=this._gh+y+ft(this._gl,U)|0,this._hh=this._hh+_+ft(this._hl,N)|0};_o.prototype._hash=function(){var e=q5.allocUnsafe(64);function t(r,i,n){e.writeInt32BE(r,n),e.writeInt32BE(i,n+4)}return t(this._ah,this._al,0),t(this._bh,this._bl,8),t(this._ch,this._cl,16),t(this._dh,this._dl,24),t(this._eh,this._el,32),t(this._fh,this._fl,40),t(this._gh,this._gl,48),t(this._hh,this._hl,56),e};zg.exports=_o});var Hg=R((GN,Zg)=>{"use strict";m();var U5=Vi(),F5=zh(),j5=$i(),z5=De().Buffer,Z5=new Array(160);function Is(){this.init(),this._w=Z5,j5.call(this,128,112)}U5(Is,F5);Is.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};Is.prototype._hash=function(){var e=z5.allocUnsafe(48);function t(r,i,n){e.writeInt32BE(r,n),e.writeInt32BE(i,n+4)}return t(this._ah,this._al,0),t(this._bh,this._bl,8),t(this._ch,this._cl,16),t(this._dh,this._dl,24),t(this._eh,this._el,32),t(this._fh,this._fl,40),e};Zg.exports=Is});var Os=R(($N,qr)=>{"use strict";m();qr.exports=function(t){var r=t.toLowerCase(),i=qr.exports[r];if(!i)throw new Error(r+" is not supported (we accept pull requests)");return new i};qr.exports.sha=Rg();qr.exports.sha1=Ig();qr.exports.sha224=Ng();qr.exports.sha256=jh();qr.exports.sha384=Hg();qr.exports.sha512=zh()});var Wg=R((JN,Zh)=>{m();typeof Object.create=="function"?Zh.exports=function(t,r){r&&(t.super_=r,t.prototype=Object.create(r.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:Zh.exports=function(t,r){if(r){t.super_=r;var i=function(){};i.prototype=r.prototype,t.prototype=new i,t.prototype.constructor=t}}});var Dr=R((QN,Gg)=>{"use strict";m();var H5=De().Buffer,Kg=cs().Transform,W5=Wn().StringDecoder,K5=Wg(),G5=to();function $t(e){Kg.call(this),this.hashMode=typeof e=="string",this.hashMode?this[e]=this._finalOrDigest:this.final=this._finalOrDigest,this._final&&(this.__final=this._final,this._final=null),this._decoder=null,this._encoding=null}K5($t,Kg);$t.prototype.update=function(e,t,r){var i=G5(e,t),n=this._update(i);return this.hashMode?this:(r&&(n=this._toString(n,r)),n)};$t.prototype.setAutoPadding=function(){};$t.prototype.getAuthTag=function(){throw new Error("trying to get auth tag in unsupported state")};$t.prototype.setAuthTag=function(){throw new Error("trying to set auth tag in unsupported state")};$t.prototype.setAAD=function(){throw new Error("trying to set aad in unsupported state")};$t.prototype._transform=function(e,t,r){var i;try{this.hashMode?this._update(e):this.push(this._update(e))}catch(n){i=n}finally{r(i)}};$t.prototype._flush=function(e){var t;try{this.push(this.__final())}catch(r){t=r}e(t)};$t.prototype._finalOrDigest=function(e){var t=this.__final()||H5.alloc(0);return e&&(t=this._toString(t,e,!0)),t};$t.prototype._toString=function(e,t,r){if(this._decoder||(this._decoder=new W5(t),this._encoding=t),this._encoding!==t)throw new Error("can\u2019t switch encodings");var i=this._decoder.write(e);return r&&(i+=this._decoder.end()),i};Gg.exports=$t});var mo=R((tP,$g)=>{"use strict";m();var V5=Ke(),$5=vs(),Y5=Rs(),J5=Os(),Vg=Dr();function qs(e){Vg.call(this,"digest"),this._hash=e}V5(qs,Vg);qs.prototype._update=function(e){this._hash.update(e)};qs.prototype._final=function(){return this._hash.digest()};$g.exports=function(t){return t=t.toLowerCase(),t==="md5"?new $5:t==="rmd160"||t==="ripemd160"?new Y5:new qs(J5(t))}});var Xg=R((iP,Jg)=>{"use strict";m();var X5=Ke(),Yi=De().Buffer,Yg=Dr(),Q5=Yi.alloc(128),Qn=64;function Ds(e,t){Yg.call(this,"digest"),typeof t=="string"&&(t=Yi.from(t)),this._alg=e,this._key=t,t.length>Qn?t=e(t):t.length<Qn&&(t=Yi.concat([t,Q5],Qn));for(var r=this._ipad=Yi.allocUnsafe(Qn),i=this._opad=Yi.allocUnsafe(Qn),n=0;n<Qn;n++)r[n]=t[n]^54,i[n]=t[n]^92;this._hash=[r]}X5(Ds,Yg);Ds.prototype._update=function(e){this._hash.push(e)};Ds.prototype._final=function(){var e=this._alg(Yi.concat(this._hash));return this._alg(Yi.concat([this._opad,e]))};Jg.exports=Ds});var Hh=R((aP,Qg)=>{m();var eB=vs();Qg.exports=function(e){return new eB().update(e).digest()}});var rb=R((fP,tb)=>{"use strict";m();var tB=Ke(),rB=Xg(),eb=Dr(),wo=De().Buffer,iB=Hh(),Wh=Rs(),Kh=Os(),nB=wo.alloc(128);function xo(e,t){eb.call(this,"digest"),typeof t=="string"&&(t=wo.from(t));var r=e==="sha512"||e==="sha384"?128:64;if(this._alg=e,this._key=t,t.length>r){var i=e==="rmd160"?new Wh:Kh(e);t=i.update(t).digest()}else t.length<r&&(t=wo.concat([t,nB],r));for(var n=this._ipad=wo.allocUnsafe(r),a=this._opad=wo.allocUnsafe(r),o=0;o<r;o++)n[o]=t[o]^54,a[o]=t[o]^92;this._hash=e==="rmd160"?new Wh:Kh(e),this._hash.update(n)}tB(xo,eb);xo.prototype._update=function(e){this._hash.update(e)};xo.prototype._final=function(){var e=this._hash.digest(),t=this._alg==="rmd160"?new Wh:Kh(this._alg);return t.update(this._opad).update(e).digest()};tb.exports=function(t,r){return t=t.toLowerCase(),t==="rmd160"||t==="ripemd160"?new xo("rmd160",r):t==="md5"?new rB(iB,r):new xo(t,r)}});var Ns=R((uP,ib)=>{"use strict";m();ib.exports={}});var Gh=R((hP,nb)=>{"use strict";m();var aB=isFinite,oB=Math.pow(2,30)-1;nb.exports=function(e,t){if(typeof e!="number")throw new TypeError("Iterations not a number");if(e<0||!aB(e))throw new TypeError("Bad iterations");if(typeof t!="number")throw new TypeError("Key length not a number");if(t<0||t>oB||t!==t)throw new TypeError("Bad key length")}});var Vh=R((dP,ob)=>{"use strict";m();var Ps;globalThis.process&&globalThis.process.browser?Ps="utf-8":globalThis.process&&globalThis.process.version?(ab=parseInt(M.default.version.split(".")[0].slice(1),10),Ps=ab>=6?"utf-8":"binary"):Ps="utf-8";var ab;ob.exports=Ps});var $h=R((vP,ub)=>{"use strict";m();var fB=De().Buffer,sB=to(),sb=typeof Uint8Array<"u",uB=sb&&typeof ArrayBuffer<"u",fb=uB&&ArrayBuffer.isView;ub.exports=function(e,t,r){if(typeof e=="string"||fB.isBuffer(e)||sb&&e instanceof Uint8Array||fb&&fb(e))return sB(e,t);throw new TypeError(r+" must be a string, a Buffer, a Uint8Array, or a DataView")}});var Yh=R((gP,db)=>{"use strict";m();var lB=Hh(),hB=Rs(),cB=Os(),Ji=De().Buffer,dB=Gh(),lb=Vh(),hb=$h(),pB=Ji.alloc(128),Ls={__proto__:null,md5:16,sha1:20,sha224:28,sha256:32,sha384:48,sha512:64,"sha512-256":32,ripemd160:20,rmd160:20},vB={__proto__:null,"sha-1":"sha1","sha-224":"sha224","sha-256":"sha256","sha-384":"sha384","sha-512":"sha512","ripemd-160":"ripemd160"};function yB(e){return new hB().update(e).digest()}function gB(e){function t(r){return cB(e).update(r).digest()}return e==="rmd160"||e==="ripemd160"?yB:e==="md5"?lB:t}function cb(e,t,r){var i=gB(e),n=e==="sha512"||e==="sha384"?128:64;t.length>n?t=i(t):t.length<n&&(t=Ji.concat([t,pB],n));for(var a=Ji.allocUnsafe(n+Ls[e]),o=Ji.allocUnsafe(n+Ls[e]),s=0;s<n;s++)a[s]=t[s]^54,o[s]=t[s]^92;var y=Ji.allocUnsafe(n+r+4);a.copy(y,0,0,n),this.ipad1=y,this.ipad2=a,this.opad=o,this.alg=e,this.blocksize=n,this.hash=i,this.size=Ls[e]}cb.prototype.run=function(e,t){e.copy(t,this.blocksize);var r=this.hash(t);return r.copy(this.opad,this.blocksize),this.hash(this.opad)};function bB(e,t,r,i,n){dB(r,i),e=hb(e,lb,"Password"),t=hb(t,lb,"Salt");var a=(n||"sha1").toLowerCase(),o=vB[a]||a,s=Ls[o];if(typeof s!="number"||!s)throw new TypeError("Digest algorithm not supported: "+n);var y=new cb(o,e,t.length),_=Ji.allocUnsafe(i),x=Ji.allocUnsafe(t.length+4);t.copy(x,0,0,t.length);for(var B=0,k=s,T=Math.ceil(i/k),O=1;O<=T;O++){x.writeUInt32BE(O,t.length);for(var D=y.run(x,y.ipad1),U=D,N=1;N<r;N++){U=y.run(U,y.ipad2);for(var j=0;j<k;j++)D[j]^=U[j]}D.copy(_,B),B+=k}return _}db.exports=bB});var mb=R((_P,_b)=>{"use strict";m();var gb=De().Buffer,_B=Gh(),pb=Vh(),vb=Yh(),yb=$h(),Cs,Eo=globalThis.crypto&&globalThis.crypto.subtle,mB={sha:"SHA-1","sha-1":"SHA-1",sha1:"SHA-1",sha256:"SHA-256","sha-256":"SHA-256",sha384:"SHA-384","sha-384":"SHA-384","sha-512":"SHA-512",sha512:"SHA-512"},Jh=[],Xi;function Xh(){return Xi||(globalThis.process&&globalThis.process.nextTick?Xi=globalThis.process.nextTick:globalThis.queueMicrotask?Xi=globalThis.queueMicrotask:globalThis.setImmediate?Xi=globalThis.setImmediate:Xi=globalThis.setTimeout,Xi)}function bb(e,t,r,i,n){return Eo.importKey("raw",e,{name:"PBKDF2"},!1,["deriveBits"]).then(function(a){return Eo.deriveBits({name:"PBKDF2",salt:t,iterations:r,hash:{name:n}},a,i<<3)}).then(function(a){return gb.from(a)})}function wB(e){if(globalThis.process&&!globalThis.process.browser||!Eo||!Eo.importKey||!Eo.deriveBits)return Promise.resolve(!1);if(Jh[e]!==void 0)return Jh[e];Cs=Cs||gb.alloc(8);var t=bb(Cs,Cs,10,128,e).then(function(){return!0},function(){return!1});return Jh[e]=t,t}function xB(e,t){e.then(function(r){Xh()(function(){t(null,r)})},function(r){Xh()(function(){t(r)})})}_b.exports=function(e,t,r,i,n,a){if(typeof n=="function"&&(a=n,n=void 0),_B(r,i),e=yb(e,pb,"Password"),t=yb(t,pb,"Salt"),typeof a!="function")throw new Error("No callback provided to pbkdf2");n=n||"sha1";var o=mB[n.toLowerCase()];if(!o||typeof globalThis.Promise!="function"){Xh()(function(){var s;try{s=vb(e,t,r,i,n)}catch(y){a(y);return}a(null,s)});return}xB(wB(o).then(function(s){return s?bb(e,t,r,i,o):vb(e,t,r,i,n)}),a)}});var ec=R(Qh=>{"use strict";m();Qh.pbkdf2=mb();Qh.pbkdf2Sync=Yh()});var tc=R(Dt=>{"use strict";m();Dt.readUInt32BE=function(t,r){var i=t[0+r]<<24|t[1+r]<<16|t[2+r]<<8|t[3+r];return i>>>0};Dt.writeUInt32BE=function(t,r,i){t[0+i]=r>>>24,t[1+i]=r>>>16&255,t[2+i]=r>>>8&255,t[3+i]=r&255};Dt.ip=function(t,r,i,n){for(var a=0,o=0,s=6;s>=0;s-=2){for(var y=0;y<=24;y+=8)a<<=1,a|=r>>>y+s&1;for(var y=0;y<=24;y+=8)a<<=1,a|=t>>>y+s&1}for(var s=6;s>=0;s-=2){for(var y=1;y<=25;y+=8)o<<=1,o|=r>>>y+s&1;for(var y=1;y<=25;y+=8)o<<=1,o|=t>>>y+s&1}i[n+0]=a>>>0,i[n+1]=o>>>0};Dt.rip=function(t,r,i,n){for(var a=0,o=0,s=0;s<4;s++)for(var y=24;y>=0;y-=8)a<<=1,a|=r>>>y+s&1,a<<=1,a|=t>>>y+s&1;for(var s=4;s<8;s++)for(var y=24;y>=0;y-=8)o<<=1,o|=r>>>y+s&1,o<<=1,o|=t>>>y+s&1;i[n+0]=a>>>0,i[n+1]=o>>>0};Dt.pc1=function(t,r,i,n){for(var a=0,o=0,s=7;s>=5;s--){for(var y=0;y<=24;y+=8)a<<=1,a|=r>>y+s&1;for(var y=0;y<=24;y+=8)a<<=1,a|=t>>y+s&1}for(var y=0;y<=24;y+=8)a<<=1,a|=r>>y+s&1;for(var s=1;s<=3;s++){for(var y=0;y<=24;y+=8)o<<=1,o|=r>>y+s&1;for(var y=0;y<=24;y+=8)o<<=1,o|=t>>y+s&1}for(var y=0;y<=24;y+=8)o<<=1,o|=t>>y+s&1;i[n+0]=a>>>0,i[n+1]=o>>>0};Dt.r28shl=function(t,r){return t<<r&268435455|t>>>28-r};var Us=[14,11,17,4,27,23,25,0,13,22,7,18,5,9,16,24,2,20,12,21,1,8,15,26,15,4,25,19,9,1,26,16,5,11,23,8,12,7,17,0,22,3,10,14,6,20,27,24];Dt.pc2=function(t,r,i,n){for(var a=0,o=0,s=Us.length>>>1,y=0;y<s;y++)a<<=1,a|=t>>>Us[y]&1;for(var y=s;y<Us.length;y++)o<<=1,o|=r>>>Us[y]&1;i[n+0]=a>>>0,i[n+1]=o>>>0};Dt.expand=function(t,r,i){var n=0,a=0;n=(t&1)<<5|t>>>27;for(var o=23;o>=15;o-=4)n<<=6,n|=t>>>o&63;for(var o=11;o>=3;o-=4)a|=t>>>o&63,a<<=6;a|=(t&31)<<1|t>>>31,r[i+0]=n>>>0,r[i+1]=a>>>0};var wb=[14,0,4,15,13,7,1,4,2,14,15,2,11,13,8,1,3,10,10,6,6,12,12,11,5,9,9,5,0,3,7,8,4,15,1,12,14,8,8,2,13,4,6,9,2,1,11,7,15,5,12,11,9,3,7,14,3,10,10,0,5,6,0,13,15,3,1,13,8,4,14,7,6,15,11,2,3,8,4,14,9,12,7,0,2,1,13,10,12,6,0,9,5,11,10,5,0,13,14,8,7,10,11,1,10,3,4,15,13,4,1,2,5,11,8,6,12,7,6,12,9,0,3,5,2,14,15,9,10,13,0,7,9,0,14,9,6,3,3,4,15,6,5,10,1,2,13,8,12,5,7,14,11,12,4,11,2,15,8,1,13,1,6,10,4,13,9,0,8,6,15,9,3,8,0,7,11,4,1,15,2,14,12,3,5,11,10,5,14,2,7,12,7,13,13,8,14,11,3,5,0,6,6,15,9,0,10,3,1,4,2,7,8,2,5,12,11,1,12,10,4,14,15,9,10,3,6,15,9,0,0,6,12,10,11,1,7,13,13,8,15,9,1,4,3,5,14,11,5,12,2,7,8,2,4,14,2,14,12,11,4,2,1,12,7,4,10,7,11,13,6,1,8,5,5,0,3,15,15,10,13,3,0,9,14,8,9,6,4,11,2,8,1,12,11,7,10,1,13,14,7,2,8,13,15,6,9,15,12,0,5,9,6,10,3,4,0,5,14,3,12,10,1,15,10,4,15,2,9,7,2,12,6,9,8,5,0,6,13,1,3,13,4,14,14,0,7,11,5,3,11,8,9,4,14,3,15,2,5,12,2,9,8,5,12,15,3,10,7,11,0,14,4,1,10,7,1,6,13,0,11,8,6,13,4,13,11,0,2,11,14,7,15,4,0,9,8,1,13,10,3,14,12,3,9,5,7,12,5,2,10,15,6,8,1,6,1,6,4,11,11,13,13,8,12,1,3,4,7,10,14,7,10,9,15,5,6,0,8,15,0,14,5,2,9,3,2,12,13,1,2,15,8,13,4,8,6,10,15,3,11,7,1,4,10,12,9,5,3,6,14,11,5,0,0,14,12,9,7,2,7,2,11,1,4,14,1,7,9,4,12,10,14,8,2,13,0,15,6,12,10,9,13,0,15,3,3,5,5,6,8,11];Dt.substitute=function(t,r){for(var i=0,n=0;n<4;n++){var a=t>>>18-n*6&63,o=wb[n*64+a];i<<=4,i|=o}for(var n=0;n<4;n++){var a=r>>>18-n*6&63,o=wb[256+n*64+a];i<<=4,i|=o}return i>>>0};var xb=[16,25,12,11,3,20,4,15,31,17,9,6,27,14,1,22,30,24,8,18,0,5,29,23,13,19,2,26,10,21,28,7];Dt.permute=function(t){for(var r=0,i=0;i<xb.length;i++)r<<=1,r|=t>>>xb[i]&1;return r>>>0};Dt.padSplit=function(t,r,i){for(var n=t.toString(2);n.length<r;)n="0"+n;for(var a=[],o=0;o<r;o+=i)a.push(n.slice(o,o+i));return a.join(" ")}});var ea=R((MP,Sb)=>{m();Sb.exports=Eb;function Eb(e,t){if(!e)throw new Error(t||"Assertion failed")}Eb.equal=function(t,r,i){if(t!=r)throw new Error(i||"Assertion failed: "+t+" != "+r)}});var Fs=R((BP,Mb)=>{"use strict";m();var EB=ea();function Nt(e){this.options=e,this.type=this.options.type,this.blockSize=8,this._init(),this.buffer=new Array(this.blockSize),this.bufferOff=0,this.padding=e.padding!==!1}Mb.exports=Nt;Nt.prototype._init=function(){};Nt.prototype.update=function(t){return t.length===0?[]:this.type==="decrypt"?this._updateDecrypt(t):this._updateEncrypt(t)};Nt.prototype._buffer=function(t,r){for(var i=Math.min(this.buffer.length-this.bufferOff,t.length-r),n=0;n<i;n++)this.buffer[this.bufferOff+n]=t[r+n];return this.bufferOff+=i,i};Nt.prototype._flushBuffer=function(t,r){return this._update(this.buffer,0,t,r),this.bufferOff=0,this.blockSize};Nt.prototype._updateEncrypt=function(t){var r=0,i=0,n=(this.bufferOff+t.length)/this.blockSize|0,a=new Array(n*this.blockSize);this.bufferOff!==0&&(r+=this._buffer(t,r),this.bufferOff===this.buffer.length&&(i+=this._flushBuffer(a,i)));for(var o=t.length-(t.length-r)%this.blockSize;r<o;r+=this.blockSize)this._update(t,r,a,i),i+=this.blockSize;for(;r<t.length;r++,this.bufferOff++)this.buffer[this.bufferOff]=t[r];return a};Nt.prototype._updateDecrypt=function(t){for(var r=0,i=0,n=Math.ceil((this.bufferOff+t.length)/this.blockSize)-1,a=new Array(n*this.blockSize);n>0;n--)r+=this._buffer(t,r),i+=this._flushBuffer(a,i);return r+=this._buffer(t,r),a};Nt.prototype.final=function(t){var r;t&&(r=this.update(t));var i;return this.type==="encrypt"?i=this._finalEncrypt():i=this._finalDecrypt(),r?r.concat(i):i};Nt.prototype._pad=function(t,r){if(r===0)return!1;for(;r<t.length;)t[r++]=0;return!0};Nt.prototype._finalEncrypt=function(){if(!this._pad(this.buffer,this.bufferOff))return[];var t=new Array(this.blockSize);return this._update(this.buffer,0,t,0),t};Nt.prototype._unpad=function(t){return t};Nt.prototype._finalDecrypt=function(){EB.equal(this.bufferOff,this.blockSize,"Not enough data to decrypt");var t=new Array(this.blockSize);return this._flushBuffer(t,0),this._unpad(t)}});var rc=R((kP,Rb)=>{"use strict";m();var Ab=ea(),SB=Ke(),it=tc(),Bb=Fs();function MB(){this.tmp=new Array(2),this.keys=null}function yr(e){Bb.call(this,e);var t=new MB;this._desState=t,this.deriveKeys(t,e.key)}SB(yr,Bb);Rb.exports=yr;yr.create=function(t){return new yr(t)};var AB=[1,1,2,2,2,2,2,2,1,2,2,2,2,2,2,1];yr.prototype.deriveKeys=function(t,r){t.keys=new Array(32),Ab.equal(r.length,this.blockSize,"Invalid key length");var i=it.readUInt32BE(r,0),n=it.readUInt32BE(r,4);it.pc1(i,n,t.tmp,0),i=t.tmp[0],n=t.tmp[1];for(var a=0;a<t.keys.length;a+=2){var o=AB[a>>>1];i=it.r28shl(i,o),n=it.r28shl(n,o),it.pc2(i,n,t.keys,a)}};yr.prototype._update=function(t,r,i,n){var a=this._desState,o=it.readUInt32BE(t,r),s=it.readUInt32BE(t,r+4);it.ip(o,s,a.tmp,0),o=a.tmp[0],s=a.tmp[1],this.type==="encrypt"?this._encrypt(a,o,s,a.tmp,0):this._decrypt(a,o,s,a.tmp,0),o=a.tmp[0],s=a.tmp[1],it.writeUInt32BE(i,o,n),it.writeUInt32BE(i,s,n+4)};yr.prototype._pad=function(t,r){if(this.padding===!1)return!1;for(var i=t.length-r,n=r;n<t.length;n++)t[n]=i;return!0};yr.prototype._unpad=function(t){if(this.padding===!1)return t;for(var r=t[t.length-1],i=t.length-r;i<t.length;i++)Ab.equal(t[i],r);return t.slice(0,t.length-r)};yr.prototype._encrypt=function(t,r,i,n,a){for(var o=r,s=i,y=0;y<t.keys.length;y+=2){var _=t.keys[y],x=t.keys[y+1];it.expand(s,t.tmp,0),_^=t.tmp[0],x^=t.tmp[1];var B=it.substitute(_,x),k=it.permute(B),T=s;s=(o^k)>>>0,o=T}it.rip(s,o,n,a)};yr.prototype._decrypt=function(t,r,i,n,a){for(var o=i,s=r,y=t.keys.length-2;y>=0;y-=2){var _=t.keys[y],x=t.keys[y+1];it.expand(o,t.tmp,0),_^=t.tmp[0],x^=t.tmp[1];var B=it.substitute(_,x),k=it.permute(B),T=o;o=(s^k)>>>0,s=T}it.rip(o,s,n,a)}});var Tb=R(kb=>{"use strict";m();var BB=ea(),RB=Ke(),js={};function kB(e){BB.equal(e.length,8,"Invalid IV length"),this.iv=new Array(8);for(var t=0;t<this.iv.length;t++)this.iv[t]=e[t]}function TB(e){function t(a){e.call(this,a),this._cbcInit()}RB(t,e);for(var r=Object.keys(js),i=0;i<r.length;i++){var n=r[i];t.prototype[n]=js[n]}return t.create=function(o){return new t(o)},t}kb.instantiate=TB;js._cbcInit=function(){var t=new kB(this.options.iv);this._cbcState=t};js._update=function(t,r,i,n){var a=this._cbcState,o=this.constructor.super_.prototype,s=a.iv;if(this.type==="encrypt"){for(var y=0;y<this.blockSize;y++)s[y]^=t[r+y];o._update.call(this,s,0,i,n);for(var y=0;y<this.blockSize;y++)s[y]=i[n+y]}else{o._update.call(this,t,r,i,n);for(var y=0;y<this.blockSize;y++)i[n+y]^=s[y];for(var y=0;y<this.blockSize;y++)s[y]=t[r+y]}}});var qb=R((qP,Ob)=>{"use strict";m();var IB=ea(),OB=Ke(),Ib=Fs(),Xr=rc();function qB(e,t){IB.equal(t.length,24,"Invalid key length");var r=t.slice(0,8),i=t.slice(8,16),n=t.slice(16,24);e==="encrypt"?this.ciphers=[Xr.create({type:"encrypt",key:r}),Xr.create({type:"decrypt",key:i}),Xr.create({type:"encrypt",key:n})]:this.ciphers=[Xr.create({type:"decrypt",key:n}),Xr.create({type:"encrypt",key:i}),Xr.create({type:"decrypt",key:r})]}function Qi(e){Ib.call(this,e);var t=new qB(this.type,this.options.key);this._edeState=t}OB(Qi,Ib);Ob.exports=Qi;Qi.create=function(t){return new Qi(t)};Qi.prototype._update=function(t,r,i,n){var a=this._edeState;a.ciphers[0]._update(t,r,i,n),a.ciphers[1]._update(i,n,i,n),a.ciphers[2]._update(i,n,i,n)};Qi.prototype._pad=Xr.prototype._pad;Qi.prototype._unpad=Xr.prototype._unpad});var Db=R(ta=>{"use strict";m();ta.utils=tc();ta.Cipher=Fs();ta.DES=rc();ta.CBC=Tb();ta.EDE=qb()});var Lb=R((LP,Pb)=>{m();var Nb=Dr(),Nr=Db(),DB=Ke(),en=De().Buffer,So={"des-ede3-cbc":Nr.CBC.instantiate(Nr.EDE),"des-ede3":Nr.EDE,"des-ede-cbc":Nr.CBC.instantiate(Nr.EDE),"des-ede":Nr.EDE,"des-cbc":Nr.CBC.instantiate(Nr.DES),"des-ecb":Nr.DES};So.des=So["des-cbc"];So.des3=So["des-ede3-cbc"];Pb.exports=zs;DB(zs,Nb);function zs(e){Nb.call(this);var t=e.mode.toLowerCase(),r=So[t],i;e.decrypt?i="decrypt":i="encrypt";var n=e.key;en.isBuffer(n)||(n=en.from(n)),(t==="des-ede"||t==="des-ede-cbc")&&(n=en.concat([n,n.slice(0,8)]));var a=e.iv;en.isBuffer(a)||(a=en.from(a)),this._des=r.create({key:n,iv:a,type:i})}zs.prototype._update=function(e){return en.from(this._des.update(e))};zs.prototype._final=function(){return en.from(this._des.final())}});var Cb=R(ic=>{m();ic.encrypt=function(e,t){return e._cipher.encryptBlock(t)};ic.decrypt=function(e,t){return e._cipher.decryptBlock(t)}});var ra=R((jP,Ub)=>{m();Ub.exports=function(t,r){for(var i=Math.min(t.length,r.length),n=new I.Buffer(i),a=0;a<i;++a)n[a]=t[a]^r[a];return n}});var jb=R(nc=>{m();var Fb=ra();nc.encrypt=function(e,t){var r=Fb(t,e._prev);return e._prev=e._cipher.encryptBlock(r),e._prev};nc.decrypt=function(e,t){var r=e._prev;e._prev=t;var i=e._cipher.decryptBlock(t);return Fb(i,r)}});var Hb=R(Zb=>{m();var Mo=De().Buffer,NB=ra();function zb(e,t,r){var i=t.length,n=NB(t,e._cache);return e._cache=e._cache.slice(i),e._prev=Mo.concat([e._prev,r?t:n]),n}Zb.encrypt=function(e,t,r){for(var i=Mo.allocUnsafe(0),n;t.length;)if(e._cache.length===0&&(e._cache=e._cipher.encryptBlock(e._prev),e._prev=Mo.allocUnsafe(0)),e._cache.length<=t.length)n=e._cache.length,i=Mo.concat([i,zb(e,t.slice(0,n),r)]),t=t.slice(n);else{i=Mo.concat([i,zb(e,t,r)]);break}return i}});var Kb=R(Wb=>{m();var ac=De().Buffer;function PB(e,t,r){var i=e._cipher.encryptBlock(e._prev),n=i[0]^t;return e._prev=ac.concat([e._prev.slice(1),ac.from([r?t:n])]),n}Wb.encrypt=function(e,t,r){for(var i=t.length,n=ac.allocUnsafe(i),a=-1;++a<i;)n[a]=PB(e,t[a],r);return n}});var Vb=R(Gb=>{m();var Zs=De().Buffer;function LB(e,t,r){for(var i,n=-1,a=8,o=0,s,y;++n<a;)i=e._cipher.encryptBlock(e._prev),s=t&1<<7-n?128:0,y=i[0]^s,o+=(y&128)>>n%8,e._prev=CB(e._prev,r?s:y);return o}function CB(e,t){var r=e.length,i=-1,n=Zs.allocUnsafe(e.length);for(e=Zs.concat([e,Zs.from([t])]);++i<r;)n[i]=e[i]<<1|e[i+1]>>7;return n}Gb.encrypt=function(e,t,r){for(var i=t.length,n=Zs.allocUnsafe(i),a=-1;++a<i;)n[a]=LB(e,t[a],r);return n}});var Yb=R($b=>{m();var UB=ra();function FB(e){return e._prev=e._cipher.encryptBlock(e._prev),e._prev}$b.encrypt=function(e,t){for(;e._cache.length<t.length;)e._cache=I.Buffer.concat([e._cache,FB(e)]);var r=e._cache.slice(0,t.length);return e._cache=e._cache.slice(t.length),UB(t,r)}});var oc=R((QP,Jb)=>{m();function jB(e){for(var t=e.length,r;t--;)if(r=e.readUInt8(t),r===255)e.writeUInt8(0,t);else{r++,e.writeUInt8(r,t);break}}Jb.exports=jB});var sc=R(Qb=>{m();var zB=ra(),Xb=De().Buffer,ZB=oc();function HB(e){var t=e._cipher.encryptBlockRaw(e._prev);return ZB(e._prev),t}var fc=16;Qb.encrypt=function(e,t){var r=Math.ceil(t.length/fc),i=e._cache.length;e._cache=Xb.concat([e._cache,Xb.allocUnsafe(r*fc)]);for(var n=0;n<r;n++){var a=HB(e),o=i+n*fc;e._cache.writeUInt32BE(a[0],o+0),e._cache.writeUInt32BE(a[1],o+4),e._cache.writeUInt32BE(a[2],o+8),e._cache.writeUInt32BE(a[3],o+12)}var s=e._cache.slice(0,t.length);return e._cache=e._cache.slice(t.length),zB(t,s)}});var uc=R((iL,WB)=>{WB.exports={"aes-128-ecb":{cipher:"AES",key:128,iv:0,mode:"ECB",type:"block"},"aes-192-ecb":{cipher:"AES",key:192,iv:0,mode:"ECB",type:"block"},"aes-256-ecb":{cipher:"AES",key:256,iv:0,mode:"ECB",type:"block"},"aes-128-cbc":{cipher:"AES",key:128,iv:16,mode:"CBC",type:"block"},"aes-192-cbc":{cipher:"AES",key:192,iv:16,mode:"CBC",type:"block"},"aes-256-cbc":{cipher:"AES",key:256,iv:16,mode:"CBC",type:"block"},aes128:{cipher:"AES",key:128,iv:16,mode:"CBC",type:"block"},aes192:{cipher:"AES",key:192,iv:16,mode:"CBC",type:"block"},aes256:{cipher:"AES",key:256,iv:16,mode:"CBC",type:"block"},"aes-128-cfb":{cipher:"AES",key:128,iv:16,mode:"CFB",type:"stream"},"aes-192-cfb":{cipher:"AES",key:192,iv:16,mode:"CFB",type:"stream"},"aes-256-cfb":{cipher:"AES",key:256,iv:16,mode:"CFB",type:"stream"},"aes-128-cfb8":{cipher:"AES",key:128,iv:16,mode:"CFB8",type:"stream"},"aes-192-cfb8":{cipher:"AES",key:192,iv:16,mode:"CFB8",type:"stream"},"aes-256-cfb8":{cipher:"AES",key:256,iv:16,mode:"CFB8",type:"stream"},"aes-128-cfb1":{cipher:"AES",key:128,iv:16,mode:"CFB1",type:"stream"},"aes-192-cfb1":{cipher:"AES",key:192,iv:16,mode:"CFB1",type:"stream"},"aes-256-cfb1":{cipher:"AES",key:256,iv:16,mode:"CFB1",type:"stream"},"aes-128-ofb":{cipher:"AES",key:128,iv:16,mode:"OFB",type:"stream"},"aes-192-ofb":{cipher:"AES",key:192,iv:16,mode:"OFB",type:"stream"},"aes-256-ofb":{cipher:"AES",key:256,iv:16,mode:"OFB",type:"stream"},"aes-128-ctr":{cipher:"AES",key:128,iv:16,mode:"CTR",type:"stream"},"aes-192-ctr":{cipher:"AES",key:192,iv:16,mode:"CTR",type:"stream"},"aes-256-ctr":{cipher:"AES",key:256,iv:16,mode:"CTR",type:"stream"},"aes-128-gcm":{cipher:"AES",key:128,iv:12,mode:"GCM",type:"auth"},"aes-192-gcm":{cipher:"AES",key:192,iv:12,mode:"GCM",type:"auth"},"aes-256-gcm":{cipher:"AES",key:256,iv:12,mode:"GCM",type:"auth"}}});var Ws=R((nL,e_)=>{m();var KB={ECB:Cb(),CBC:jb(),CFB:Hb(),CFB8:Kb(),CFB1:Vb(),OFB:Yb(),CTR:sc(),GCM:sc()},Hs=uc();for(lc in Hs)Hs[lc].module=KB[Hs[lc].mode];var lc;e_.exports=Hs});var Ao=R((oL,r_)=>{m();var Ks=De().Buffer;function cc(e){Ks.isBuffer(e)||(e=Ks.from(e));for(var t=e.length/4|0,r=new Array(t),i=0;i<t;i++)r[i]=e.readUInt32BE(i*4);return r}function hc(e){for(var t=0;t<e.length;e++)e[t]=0}function t_(e,t,r,i,n){for(var a=r[0],o=r[1],s=r[2],y=r[3],_=e[0]^t[0],x=e[1]^t[1],B=e[2]^t[2],k=e[3]^t[3],T,O,D,U,N=4,j=1;j<n;j++)T=a[_>>>24]^o[x>>>16&255]^s[B>>>8&255]^y[k&255]^t[N++],O=a[x>>>24]^o[B>>>16&255]^s[k>>>8&255]^y[_&255]^t[N++],D=a[B>>>24]^o[k>>>16&255]^s[_>>>8&255]^y[x&255]^t[N++],U=a[k>>>24]^o[_>>>16&255]^s[x>>>8&255]^y[B&255]^t[N++],_=T,x=O,B=D,k=U;return T=(i[_>>>24]<<24|i[x>>>16&255]<<16|i[B>>>8&255]<<8|i[k&255])^t[N++],O=(i[x>>>24]<<24|i[B>>>16&255]<<16|i[k>>>8&255]<<8|i[_&255])^t[N++],D=(i[B>>>24]<<24|i[k>>>16&255]<<16|i[_>>>8&255]<<8|i[x&255])^t[N++],U=(i[k>>>24]<<24|i[_>>>16&255]<<16|i[x>>>8&255]<<8|i[B&255])^t[N++],T=T>>>0,O=O>>>0,D=D>>>0,U=U>>>0,[T,O,D,U]}var GB=[0,1,2,4,8,16,32,64,128,27,54],rt=(function(){for(var e=new Array(256),t=0;t<256;t++)t<128?e[t]=t<<1:e[t]=t<<1^283;for(var r=[],i=[],n=[[],[],[],[]],a=[[],[],[],[]],o=0,s=0,y=0;y<256;++y){var _=s^s<<1^s<<2^s<<3^s<<4;_=_>>>8^_&255^99,r[o]=_,i[_]=o;var x=e[o],B=e[x],k=e[B],T=e[_]*257^_*16843008;n[0][o]=T<<24|T>>>8,n[1][o]=T<<16|T>>>16,n[2][o]=T<<8|T>>>24,n[3][o]=T,T=k*16843009^B*65537^x*257^o*16843008,a[0][_]=T<<24|T>>>8,a[1][_]=T<<16|T>>>16,a[2][_]=T<<8|T>>>24,a[3][_]=T,o===0?o=s=1:(o=x^e[e[e[k^x]]],s^=e[e[s]])}return{SBOX:r,INV_SBOX:i,SUB_MIX:n,INV_SUB_MIX:a}})();function Pt(e){this._key=cc(e),this._reset()}Pt.blockSize=16;Pt.keySize=256/8;Pt.prototype.blockSize=Pt.blockSize;Pt.prototype.keySize=Pt.keySize;Pt.prototype._reset=function(){for(var e=this._key,t=e.length,r=t+6,i=(r+1)*4,n=[],a=0;a<t;a++)n[a]=e[a];for(a=t;a<i;a++){var o=n[a-1];a%t===0?(o=o<<8|o>>>24,o=rt.SBOX[o>>>24]<<24|rt.SBOX[o>>>16&255]<<16|rt.SBOX[o>>>8&255]<<8|rt.SBOX[o&255],o^=GB[a/t|0]<<24):t>6&&a%t===4&&(o=rt.SBOX[o>>>24]<<24|rt.SBOX[o>>>16&255]<<16|rt.SBOX[o>>>8&255]<<8|rt.SBOX[o&255]),n[a]=n[a-t]^o}for(var s=[],y=0;y<i;y++){var _=i-y,x=n[_-(y%4?0:4)];y<4||_<=4?s[y]=x:s[y]=rt.INV_SUB_MIX[0][rt.SBOX[x>>>24]]^rt.INV_SUB_MIX[1][rt.SBOX[x>>>16&255]]^rt.INV_SUB_MIX[2][rt.SBOX[x>>>8&255]]^rt.INV_SUB_MIX[3][rt.SBOX[x&255]]}this._nRounds=r,this._keySchedule=n,this._invKeySchedule=s};Pt.prototype.encryptBlockRaw=function(e){return e=cc(e),t_(e,this._keySchedule,rt.SUB_MIX,rt.SBOX,this._nRounds)};Pt.prototype.encryptBlock=function(e){var t=this.encryptBlockRaw(e),r=Ks.allocUnsafe(16);return r.writeUInt32BE(t[0],0),r.writeUInt32BE(t[1],4),r.writeUInt32BE(t[2],8),r.writeUInt32BE(t[3],12),r};Pt.prototype.decryptBlock=function(e){e=cc(e);var t=e[1];e[1]=e[3],e[3]=t;var r=t_(e,this._invKeySchedule,rt.INV_SUB_MIX,rt.INV_SBOX,this._nRounds),i=Ks.allocUnsafe(16);return i.writeUInt32BE(r[0],0),i.writeUInt32BE(r[3],4),i.writeUInt32BE(r[2],8),i.writeUInt32BE(r[1],12),i};Pt.prototype.scrub=function(){hc(this._keySchedule),hc(this._invKeySchedule),hc(this._key)};r_.exports.AES=Pt});var a_=R((sL,n_)=>{m();var ia=De().Buffer,VB=ia.alloc(16,0);function $B(e){return[e.readUInt32BE(0),e.readUInt32BE(4),e.readUInt32BE(8),e.readUInt32BE(12)]}function i_(e){var t=ia.allocUnsafe(16);return t.writeUInt32BE(e[0]>>>0,0),t.writeUInt32BE(e[1]>>>0,4),t.writeUInt32BE(e[2]>>>0,8),t.writeUInt32BE(e[3]>>>0,12),t}function Bo(e){this.h=e,this.state=ia.alloc(16,0),this.cache=ia.allocUnsafe(0)}Bo.prototype.ghash=function(e){for(var t=-1;++t<e.length;)this.state[t]^=e[t];this._multiply()};Bo.prototype._multiply=function(){for(var e=$B(this.h),t=[0,0,0,0],r,i,n,a=-1;++a<128;){for(i=(this.state[~~(a/8)]&1<<7-a%8)!==0,i&&(t[0]^=e[0],t[1]^=e[1],t[2]^=e[2],t[3]^=e[3]),n=(e[3]&1)!==0,r=3;r>0;r--)e[r]=e[r]>>>1|(e[r-1]&1)<<31;e[0]=e[0]>>>1,n&&(e[0]=e[0]^225<<24)}this.state=i_(t)};Bo.prototype.update=function(e){this.cache=ia.concat([this.cache,e]);for(var t;this.cache.length>=16;)t=this.cache.slice(0,16),this.cache=this.cache.slice(16),this.ghash(t)};Bo.prototype.final=function(e,t){return this.cache.length&&this.ghash(ia.concat([this.cache,VB],16)),this.ghash(i_([0,e,0,t])),this.state};n_.exports=Bo});var dc=R((lL,s_)=>{m();var YB=Ao(),Et=De().Buffer,o_=Dr(),JB=Ke(),f_=a_(),XB=ra(),QB=oc();function eR(e,t){var r=0;e.length!==t.length&&r++;for(var i=Math.min(e.length,t.length),n=0;n<i;++n)r+=e[n]^t[n];return r}function tR(e,t,r){if(t.length===12)return e._finID=Et.concat([t,Et.from([0,0,0,1])]),Et.concat([t,Et.from([0,0,0,2])]);var i=new f_(r),n=t.length,a=n%16;i.update(t),a&&(a=16-a,i.update(Et.alloc(a,0))),i.update(Et.alloc(8,0));var o=n*8,s=Et.alloc(8);s.writeUIntBE(o,0,8),i.update(s),e._finID=i.state;var y=Et.from(e._finID);return QB(y),y}function tn(e,t,r,i){o_.call(this);var n=Et.alloc(4,0);this._cipher=new YB.AES(t);var a=this._cipher.encryptBlock(n);this._ghash=new f_(a),r=tR(this,r,a),this._prev=Et.from(r),this._cache=Et.allocUnsafe(0),this._secCache=Et.allocUnsafe(0),this._decrypt=i,this._alen=0,this._len=0,this._mode=e,this._authTag=null,this._called=!1}JB(tn,o_);tn.prototype._update=function(e){if(!this._called&&this._alen){var t=16-this._alen%16;t<16&&(t=Et.alloc(t,0),this._ghash.update(t))}this._called=!0;var r=this._mode.encrypt(this,e);return this._decrypt?this._ghash.update(e):this._ghash.update(r),this._len+=e.length,r};tn.prototype._final=function(){if(this._decrypt&&!this._authTag)throw new Error("Unsupported state or unable to authenticate data");var e=XB(this._ghash.final(this._alen*8,this._len*8),this._cipher.encryptBlock(this._finID));if(this._decrypt&&eR(e,this._authTag))throw new Error("Unsupported state or unable to authenticate data");this._authTag=e,this._cipher.scrub()};tn.prototype.getAuthTag=function(){if(this._decrypt||!Et.isBuffer(this._authTag))throw new Error("Attempting to get auth tag in unsupported state");return this._authTag};tn.prototype.setAuthTag=function(t){if(!this._decrypt)throw new Error("Attempting to set auth tag in unsupported state");this._authTag=t};tn.prototype.setAAD=function(t){if(this._called)throw new Error("Attempting to set AAD in unsupported state");this._ghash.update(t),this._alen+=t.length};s_.exports=tn});var vc=R((cL,l_)=>{m();var rR=Ao(),pc=De().Buffer,u_=Dr(),iR=Ke();function Gs(e,t,r,i){u_.call(this),this._cipher=new rR.AES(t),this._prev=pc.from(r),this._cache=pc.allocUnsafe(0),this._secCache=pc.allocUnsafe(0),this._decrypt=i,this._mode=e}iR(Gs,u_);Gs.prototype._update=function(e){return this._mode.encrypt(this,e,this._decrypt)};Gs.prototype._final=function(){this._cipher.scrub()};l_.exports=Gs});var Ro=R((pL,h_)=>{m();var rn=De().Buffer,nR=vs();function aR(e,t,r,i){if(rn.isBuffer(e)||(e=rn.from(e,"binary")),t&&(rn.isBuffer(t)||(t=rn.from(t,"binary")),t.length!==8))throw new RangeError("salt should be Buffer with 8 byte length");for(var n=r/8,a=rn.alloc(n),o=rn.alloc(i||0),s=rn.alloc(0);n>0||i>0;){var y=new nR;y.update(s),y.update(e),t&&y.update(t),s=y.digest();var _=0;if(n>0){var x=a.length-n;_=Math.min(n,s.length),s.copy(a,x,0,_),n-=_}if(_<s.length&&i>0){var B=o.length-i,k=Math.min(i,s.length-_);s.copy(o,B,_,_+k),i-=k}}return s.fill(0),{key:a,iv:o}}h_.exports=aR});var v_=R(yc=>{m();var c_=Ws(),oR=dc(),Pr=De().Buffer,fR=vc(),d_=Dr(),sR=Ao(),uR=Ro(),lR=Ke();function ko(e,t,r){d_.call(this),this._cache=new Vs,this._cipher=new sR.AES(t),this._prev=Pr.from(r),this._mode=e,this._autopadding=!0}lR(ko,d_);ko.prototype._update=function(e){this._cache.add(e);for(var t,r,i=[];t=this._cache.get();)r=this._mode.encrypt(this,t),i.push(r);return Pr.concat(i)};var hR=Pr.alloc(16,16);ko.prototype._final=function(){var e=this._cache.flush();if(this._autopadding)return e=this._mode.encrypt(this,e),this._cipher.scrub(),e;if(!e.equals(hR))throw this._cipher.scrub(),new Error("data not multiple of block length")};ko.prototype.setAutoPadding=function(e){return this._autopadding=!!e,this};function Vs(){this.cache=Pr.allocUnsafe(0)}Vs.prototype.add=function(e){this.cache=Pr.concat([this.cache,e])};Vs.prototype.get=function(){if(this.cache.length>15){var e=this.cache.slice(0,16);return this.cache=this.cache.slice(16),e}return null};Vs.prototype.flush=function(){for(var e=16-this.cache.length,t=Pr.allocUnsafe(e),r=-1;++r<e;)t.writeUInt8(e,r);return Pr.concat([this.cache,t])};function p_(e,t,r){var i=c_[e.toLowerCase()];if(!i)throw new TypeError("invalid suite type");if(typeof t=="string"&&(t=Pr.from(t)),t.length!==i.key/8)throw new TypeError("invalid key length "+t.length);if(typeof r=="string"&&(r=Pr.from(r)),i.mode!=="GCM"&&r.length!==i.iv)throw new TypeError("invalid iv length "+r.length);return i.type==="stream"?new fR(i.module,t,r):i.type==="auth"?new oR(i.module,t,r):new ko(i.module,t,r)}function cR(e,t){var r=c_[e.toLowerCase()];if(!r)throw new TypeError("invalid suite type");var i=uR(t,!1,r.key,r.iv);return p_(e,i.key,i.iv)}yc.createCipheriv=p_;yc.createCipher=cR});var __=R(gc=>{m();var dR=dc(),na=De().Buffer,y_=Ws(),pR=vc(),g_=Dr(),vR=Ao(),yR=Ro(),gR=Ke();function To(e,t,r){g_.call(this),this._cache=new $s,this._last=void 0,this._cipher=new vR.AES(t),this._prev=na.from(r),this._mode=e,this._autopadding=!0}gR(To,g_);To.prototype._update=function(e){this._cache.add(e);for(var t,r,i=[];t=this._cache.get(this._autopadding);)r=this._mode.decrypt(this,t),i.push(r);return na.concat(i)};To.prototype._final=function(){var e=this._cache.flush();if(this._autopadding)return bR(this._mode.decrypt(this,e));if(e)throw new Error("data not multiple of block length")};To.prototype.setAutoPadding=function(e){return this._autopadding=!!e,this};function $s(){this.cache=na.allocUnsafe(0)}$s.prototype.add=function(e){this.cache=na.concat([this.cache,e])};$s.prototype.get=function(e){var t;if(e){if(this.cache.length>16)return t=this.cache.slice(0,16),this.cache=this.cache.slice(16),t}else if(this.cache.length>=16)return t=this.cache.slice(0,16),this.cache=this.cache.slice(16),t;return null};$s.prototype.flush=function(){if(this.cache.length)return this.cache};function bR(e){var t=e[15];if(t<1||t>16)throw new Error("unable to decrypt data");for(var r=-1;++r<t;)if(e[r+(16-t)]!==t)throw new Error("unable to decrypt data");if(t!==16)return e.slice(0,16-t)}function b_(e,t,r){var i=y_[e.toLowerCase()];if(!i)throw new TypeError("invalid suite type");if(typeof r=="string"&&(r=na.from(r)),i.mode!=="GCM"&&r.length!==i.iv)throw new TypeError("invalid iv length "+r.length);if(typeof t=="string"&&(t=na.from(t)),t.length!==i.key/8)throw new TypeError("invalid key length "+t.length);return i.type==="stream"?new pR(i.module,t,r,!0):i.type==="auth"?new dR(i.module,t,r,!0):new To(i.module,t,r)}function _R(e,t){var r=y_[e.toLowerCase()];if(!r)throw new TypeError("invalid suite type");var i=yR(t,!1,r.key,r.iv);return b_(e,i.key,i.iv)}gc.createDecipher=_R;gc.createDecipheriv=b_});var Ys=R(Yt=>{m();var m_=v_(),w_=__(),mR=uc();function wR(){return Object.keys(mR)}Yt.createCipher=Yt.Cipher=m_.createCipher;Yt.createCipheriv=Yt.Cipheriv=m_.createCipheriv;Yt.createDecipher=Yt.Decipher=w_.createDecipher;Yt.createDecipheriv=Yt.Decipheriv=w_.createDecipheriv;Yt.listCiphers=Yt.getCiphers=wR});var x_=R(Lr=>{m();Lr["des-ecb"]={key:8,iv:0};Lr["des-cbc"]=Lr.des={key:8,iv:8};Lr["des-ede3-cbc"]=Lr.des3={key:24,iv:8};Lr["des-ede3"]={key:24,iv:0};Lr["des-ede-cbc"]={key:16,iv:8};Lr["des-ede"]={key:16,iv:0}});var B_=R(Jt=>{m();var E_=Lb(),bc=Ys(),Qr=Ws(),Cr=x_(),S_=Ro();function xR(e,t){e=e.toLowerCase();var r,i;if(Qr[e])r=Qr[e].key,i=Qr[e].iv;else if(Cr[e])r=Cr[e].key*8,i=Cr[e].iv;else throw new TypeError("invalid suite type");var n=S_(t,!1,r,i);return M_(e,n.key,n.iv)}function ER(e,t){e=e.toLowerCase();var r,i;if(Qr[e])r=Qr[e].key,i=Qr[e].iv;else if(Cr[e])r=Cr[e].key*8,i=Cr[e].iv;else throw new TypeError("invalid suite type");var n=S_(t,!1,r,i);return A_(e,n.key,n.iv)}function M_(e,t,r){if(e=e.toLowerCase(),Qr[e])return bc.createCipheriv(e,t,r);if(Cr[e])return new E_({key:t,iv:r,mode:e});throw new TypeError("invalid suite type")}function A_(e,t,r){if(e=e.toLowerCase(),Qr[e])return bc.createDecipheriv(e,t,r);if(Cr[e])return new E_({key:t,iv:r,mode:e,decrypt:!0});throw new TypeError("invalid suite type")}function SR(){return Object.keys(Cr).concat(bc.getCiphers())}Jt.createCipher=Jt.Cipher=xR;Jt.createCipheriv=Jt.Cipheriv=M_;Jt.createDecipher=Jt.Decipher=ER;Jt.createDecipheriv=Jt.Decipheriv=A_;Jt.listCiphers=Jt.getCiphers=SR});var ei=R((R_,_c)=>{m();(function(e,t){"use strict";function r(A,h){if(!A)throw new Error(h||"Assertion failed")}function i(A,h){A.super_=h;var b=function(){};b.prototype=h.prototype,A.prototype=new b,A.prototype.constructor=A}function n(A,h,b){if(n.isBN(A))return A;this.negative=0,this.words=null,this.length=0,this.red=null,A!==null&&((h==="le"||h==="be")&&(b=h,h=10),this._init(A||0,h||10,b||"be"))}typeof e=="object"?e.exports=n:t.BN=n,n.BN=n,n.wordSize=26;var a;try{typeof window<"u"&&typeof window.Buffer<"u"?a=window.Buffer:a=st().Buffer}catch{}n.isBN=function(h){return h instanceof n?!0:h!==null&&typeof h=="object"&&h.constructor.wordSize===n.wordSize&&Array.isArray(h.words)},n.max=function(h,b){return h.cmp(b)>0?h:b},n.min=function(h,b){return h.cmp(b)<0?h:b},n.prototype._init=function(h,b,d){if(typeof h=="number")return this._initNumber(h,b,d);if(typeof h=="object")return this._initArray(h,b,d);b==="hex"&&(b=16),r(b===(b|0)&&b>=2&&b<=36),h=h.toString().replace(/\s+/g,"");var f=0;h[0]==="-"&&(f++,this.negative=1),f<h.length&&(b===16?this._parseHex(h,f,d):(this._parseBase(h,b,f),d==="le"&&this._initArray(this.toArray(),b,d)))},n.prototype._initNumber=function(h,b,d){h<0&&(this.negative=1,h=-h),h<67108864?(this.words=[h&67108863],this.length=1):h<4503599627370496?(this.words=[h&67108863,h/67108864&67108863],this.length=2):(r(h<9007199254740992),this.words=[h&67108863,h/67108864&67108863,1],this.length=3),d==="le"&&this._initArray(this.toArray(),b,d)},n.prototype._initArray=function(h,b,d){if(r(typeof h.length=="number"),h.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(h.length/3),this.words=new Array(this.length);for(var f=0;f<this.length;f++)this.words[f]=0;var l,v,g=0;if(d==="be")for(f=h.length-1,l=0;f>=0;f-=3)v=h[f]|h[f-1]<<8|h[f-2]<<16,this.words[l]|=v<<g&67108863,this.words[l+1]=v>>>26-g&67108863,g+=24,g>=26&&(g-=26,l++);else if(d==="le")for(f=0,l=0;f<h.length;f+=3)v=h[f]|h[f+1]<<8|h[f+2]<<16,this.words[l]|=v<<g&67108863,this.words[l+1]=v>>>26-g&67108863,g+=24,g>=26&&(g-=26,l++);return this.strip()};function o(A,h){var b=A.charCodeAt(h);return b>=65&&b<=70?b-55:b>=97&&b<=102?b-87:b-48&15}function s(A,h,b){var d=o(A,b);return b-1>=h&&(d|=o(A,b-1)<<4),d}n.prototype._parseHex=function(h,b,d){this.length=Math.ceil((h.length-b)/6),this.words=new Array(this.length);for(var f=0;f<this.length;f++)this.words[f]=0;var l=0,v=0,g;if(d==="be")for(f=h.length-1;f>=b;f-=2)g=s(h,b,f)<<l,this.words[v]|=g&67108863,l>=18?(l-=18,v+=1,this.words[v]|=g>>>26):l+=8;else{var p=h.length-b;for(f=p%2===0?b+1:b;f<h.length;f+=2)g=s(h,b,f)<<l,this.words[v]|=g&67108863,l>=18?(l-=18,v+=1,this.words[v]|=g>>>26):l+=8}this.strip()};function y(A,h,b,d){for(var f=0,l=Math.min(A.length,b),v=h;v<l;v++){var g=A.charCodeAt(v)-48;f*=d,g>=49?f+=g-49+10:g>=17?f+=g-17+10:f+=g}return f}n.prototype._parseBase=function(h,b,d){this.words=[0],this.length=1;for(var f=0,l=1;l<=67108863;l*=b)f++;f--,l=l/b|0;for(var v=h.length-d,g=v%f,p=Math.min(v,v-g)+d,u=0,w=d;w<p;w+=f)u=y(h,w,w+f,b),this.imuln(l),this.words[0]+u<67108864?this.words[0]+=u:this._iaddn(u);if(g!==0){var E=1;for(u=y(h,w,h.length,b),w=0;w<g;w++)E*=b;this.imuln(E),this.words[0]+u<67108864?this.words[0]+=u:this._iaddn(u)}this.strip()},n.prototype.copy=function(h){h.words=new Array(this.length);for(var b=0;b<this.length;b++)h.words[b]=this.words[b];h.length=this.length,h.negative=this.negative,h.red=this.red},n.prototype.clone=function(){var h=new n(null);return this.copy(h),h},n.prototype._expand=function(h){for(;this.length<h;)this.words[this.length++]=0;return this},n.prototype.strip=function(){for(;this.length>1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},n.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},n.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var _=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],x=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],B=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];n.prototype.toString=function(h,b){h=h||10,b=b|0||1;var d;if(h===16||h==="hex"){d="";for(var f=0,l=0,v=0;v<this.length;v++){var g=this.words[v],p=((g<<f|l)&16777215).toString(16);l=g>>>24-f&16777215,f+=2,f>=26&&(f-=26,v--),l!==0||v!==this.length-1?d=_[6-p.length]+p+d:d=p+d}for(l!==0&&(d=l.toString(16)+d);d.length%b!==0;)d="0"+d;return this.negative!==0&&(d="-"+d),d}if(h===(h|0)&&h>=2&&h<=36){var u=x[h],w=B[h];d="";var E=this.clone();for(E.negative=0;!E.isZero();){var c=E.modn(w).toString(h);E=E.idivn(w),E.isZero()?d=c+d:d=_[u-c.length]+c+d}for(this.isZero()&&(d="0"+d);d.length%b!==0;)d="0"+d;return this.negative!==0&&(d="-"+d),d}r(!1,"Base should be between 2 and 36")},n.prototype.toNumber=function(){var h=this.words[0];return this.length===2?h+=this.words[1]*67108864:this.length===3&&this.words[2]===1?h+=4503599627370496+this.words[1]*67108864:this.length>2&&r(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-h:h},n.prototype.toJSON=function(){return this.toString(16)},n.prototype.toBuffer=function(h,b){return r(typeof a<"u"),this.toArrayLike(a,h,b)},n.prototype.toArray=function(h,b){return this.toArrayLike(Array,h,b)},n.prototype.toArrayLike=function(h,b,d){var f=this.byteLength(),l=d||Math.max(1,f);r(f<=l,"byte array longer than desired length"),r(l>0,"Requested array length <= 0"),this.strip();var v=b==="le",g=new h(l),p,u,w=this.clone();if(v){for(u=0;!w.isZero();u++)p=w.andln(255),w.iushrn(8),g[u]=p;for(;u<l;u++)g[u]=0}else{for(u=0;u<l-f;u++)g[u]=0;for(u=0;!w.isZero();u++)p=w.andln(255),w.iushrn(8),g[l-u-1]=p}return g},Math.clz32?n.prototype._countBits=function(h){return 32-Math.clz32(h)}:n.prototype._countBits=function(h){var b=h,d=0;return b>=4096&&(d+=13,b>>>=13),b>=64&&(d+=7,b>>>=7),b>=8&&(d+=4,b>>>=4),b>=2&&(d+=2,b>>>=2),d+b},n.prototype._zeroBits=function(h){if(h===0)return 26;var b=h,d=0;return(b&8191)===0&&(d+=13,b>>>=13),(b&127)===0&&(d+=7,b>>>=7),(b&15)===0&&(d+=4,b>>>=4),(b&3)===0&&(d+=2,b>>>=2),(b&1)===0&&d++,d},n.prototype.bitLength=function(){var h=this.words[this.length-1],b=this._countBits(h);return(this.length-1)*26+b};function k(A){for(var h=new Array(A.bitLength()),b=0;b<h.length;b++){var d=b/26|0,f=b%26;h[b]=(A.words[d]&1<<f)>>>f}return h}n.prototype.zeroBits=function(){if(this.isZero())return 0;for(var h=0,b=0;b<this.length;b++){var d=this._zeroBits(this.words[b]);if(h+=d,d!==26)break}return h},n.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},n.prototype.toTwos=function(h){return this.negative!==0?this.abs().inotn(h).iaddn(1):this.clone()},n.prototype.fromTwos=function(h){return this.testn(h-1)?this.notn(h).iaddn(1).ineg():this.clone()},n.prototype.isNeg=function(){return this.negative!==0},n.prototype.neg=function(){return this.clone().ineg()},n.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},n.prototype.iuor=function(h){for(;this.length<h.length;)this.words[this.length++]=0;for(var b=0;b<h.length;b++)this.words[b]=this.words[b]|h.words[b];return this.strip()},n.prototype.ior=function(h){return r((this.negative|h.negative)===0),this.iuor(h)},n.prototype.or=function(h){return this.length>h.length?this.clone().ior(h):h.clone().ior(this)},n.prototype.uor=function(h){return this.length>h.length?this.clone().iuor(h):h.clone().iuor(this)},n.prototype.iuand=function(h){var b;this.length>h.length?b=h:b=this;for(var d=0;d<b.length;d++)this.words[d]=this.words[d]&h.words[d];return this.length=b.length,this.strip()},n.prototype.iand=function(h){return r((this.negative|h.negative)===0),this.iuand(h)},n.prototype.and=function(h){return this.length>h.length?this.clone().iand(h):h.clone().iand(this)},n.prototype.uand=function(h){return this.length>h.length?this.clone().iuand(h):h.clone().iuand(this)},n.prototype.iuxor=function(h){var b,d;this.length>h.length?(b=this,d=h):(b=h,d=this);for(var f=0;f<d.length;f++)this.words[f]=b.words[f]^d.words[f];if(this!==b)for(;f<b.length;f++)this.words[f]=b.words[f];return this.length=b.length,this.strip()},n.prototype.ixor=function(h){return r((this.negative|h.negative)===0),this.iuxor(h)},n.prototype.xor=function(h){return this.length>h.length?this.clone().ixor(h):h.clone().ixor(this)},n.prototype.uxor=function(h){return this.length>h.length?this.clone().iuxor(h):h.clone().iuxor(this)},n.prototype.inotn=function(h){r(typeof h=="number"&&h>=0);var b=Math.ceil(h/26)|0,d=h%26;this._expand(b),d>0&&b--;for(var f=0;f<b;f++)this.words[f]=~this.words[f]&67108863;return d>0&&(this.words[f]=~this.words[f]&67108863>>26-d),this.strip()},n.prototype.notn=function(h){return this.clone().inotn(h)},n.prototype.setn=function(h,b){r(typeof h=="number"&&h>=0);var d=h/26|0,f=h%26;return this._expand(d+1),b?this.words[d]=this.words[d]|1<<f:this.words[d]=this.words[d]&~(1<<f),this.strip()},n.prototype.iadd=function(h){var b;if(this.negative!==0&&h.negative===0)return this.negative=0,b=this.isub(h),this.negative^=1,this._normSign();if(this.negative===0&&h.negative!==0)return h.negative=0,b=this.isub(h),h.negative=1,b._normSign();var d,f;this.length>h.length?(d=this,f=h):(d=h,f=this);for(var l=0,v=0;v<f.length;v++)b=(d.words[v]|0)+(f.words[v]|0)+l,this.words[v]=b&67108863,l=b>>>26;for(;l!==0&&v<d.length;v++)b=(d.words[v]|0)+l,this.words[v]=b&67108863,l=b>>>26;if(this.length=d.length,l!==0)this.words[this.length]=l,this.length++;else if(d!==this)for(;v<d.length;v++)this.words[v]=d.words[v];return this},n.prototype.add=function(h){var b;return h.negative!==0&&this.negative===0?(h.negative=0,b=this.sub(h),h.negative^=1,b):h.negative===0&&this.negative!==0?(this.negative=0,b=h.sub(this),this.negative=1,b):this.length>h.length?this.clone().iadd(h):h.clone().iadd(this)},n.prototype.isub=function(h){if(h.negative!==0){h.negative=0;var b=this.iadd(h);return h.negative=1,b._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(h),this.negative=1,this._normSign();var d=this.cmp(h);if(d===0)return this.negative=0,this.length=1,this.words[0]=0,this;var f,l;d>0?(f=this,l=h):(f=h,l=this);for(var v=0,g=0;g<l.length;g++)b=(f.words[g]|0)-(l.words[g]|0)+v,v=b>>26,this.words[g]=b&67108863;for(;v!==0&&g<f.length;g++)b=(f.words[g]|0)+v,v=b>>26,this.words[g]=b&67108863;if(v===0&&g<f.length&&f!==this)for(;g<f.length;g++)this.words[g]=f.words[g];return this.length=Math.max(this.length,g),f!==this&&(this.negative=1),this.strip()},n.prototype.sub=function(h){return this.clone().isub(h)};function T(A,h,b){b.negative=h.negative^A.negative;var d=A.length+h.length|0;b.length=d,d=d-1|0;var f=A.words[0]|0,l=h.words[0]|0,v=f*l,g=v&67108863,p=v/67108864|0;b.words[0]=g;for(var u=1;u<d;u++){for(var w=p>>>26,E=p&67108863,c=Math.min(u,h.length-1),S=Math.max(0,u-A.length+1);S<=c;S++){var P=u-S|0;f=A.words[P]|0,l=h.words[S]|0,v=f*l+E,w+=v/67108864|0,E=v&67108863}b.words[u]=E|0,p=w|0}return p!==0?b.words[u]=p|0:b.length--,b.strip()}var O=function(h,b,d){var f=h.words,l=b.words,v=d.words,g=0,p,u,w,E=f[0]|0,c=E&8191,S=E>>>13,P=f[1]|0,C=P&8191,L=P>>>13,V=f[2]|0,G=V&8191,Y=V>>>13,Wt=f[3]|0,Q=Wt&8191,ee=Wt>>>13,wa=f[4]|0,re=wa&8191,ie=wa>>>13,xa=f[5]|0,ne=xa&8191,ae=xa>>>13,Ea=f[6]|0,oe=Ea&8191,fe=Ea>>>13,Sa=f[7]|0,se=Sa&8191,ue=Sa>>>13,Ma=f[8]|0,le=Ma&8191,he=Ma>>>13,Aa=f[9]|0,ce=Aa&8191,de=Aa>>>13,Ba=l[0]|0,pe=Ba&8191,ve=Ba>>>13,Ra=l[1]|0,ye=Ra&8191,ge=Ra>>>13,ka=l[2]|0,be=ka&8191,_e=ka>>>13,Ta=l[3]|0,me=Ta&8191,we=Ta>>>13,Ia=l[4]|0,xe=Ia&8191,Ee=Ia>>>13,Oa=l[5]|0,Se=Oa&8191,Me=Oa>>>13,qa=l[6]|0,Ae=qa&8191,Be=qa>>>13,Da=l[7]|0,Re=Da&8191,ke=Da>>>13,Na=l[8]|0,Te=Na&8191,Ie=Na>>>13,Pa=l[9]|0,Oe=Pa&8191,qe=Pa>>>13;d.negative=h.negative^b.negative,d.length=19,p=Math.imul(c,pe),u=Math.imul(c,ve),u=u+Math.imul(S,pe)|0,w=Math.imul(S,ve);var Mn=(g+p|0)+((u&8191)<<13)|0;g=(w+(u>>>13)|0)+(Mn>>>26)|0,Mn&=67108863,p=Math.imul(C,pe),u=Math.imul(C,ve),u=u+Math.imul(L,pe)|0,w=Math.imul(L,ve),p=p+Math.imul(c,ye)|0,u=u+Math.imul(c,ge)|0,u=u+Math.imul(S,ye)|0,w=w+Math.imul(S,ge)|0;var $e=(g+p|0)+((u&8191)<<13)|0;g=(w+(u>>>13)|0)+($e>>>26)|0,$e&=67108863,p=Math.imul(G,pe),u=Math.imul(G,ve),u=u+Math.imul(Y,pe)|0,w=Math.imul(Y,ve),p=p+Math.imul(C,ye)|0,u=u+Math.imul(C,ge)|0,u=u+Math.imul(L,ye)|0,w=w+Math.imul(L,ge)|0,p=p+Math.imul(c,be)|0,u=u+Math.imul(c,_e)|0,u=u+Math.imul(S,be)|0,w=w+Math.imul(S,_e)|0;var Ye=(g+p|0)+((u&8191)<<13)|0;g=(w+(u>>>13)|0)+(Ye>>>26)|0,Ye&=67108863,p=Math.imul(Q,pe),u=Math.imul(Q,ve),u=u+Math.imul(ee,pe)|0,w=Math.imul(ee,ve),p=p+Math.imul(G,ye)|0,u=u+Math.imul(G,ge)|0,u=u+Math.imul(Y,ye)|0,w=w+Math.imul(Y,ge)|0,p=p+Math.imul(C,be)|0,u=u+Math.imul(C,_e)|0,u=u+Math.imul(L,be)|0,w=w+Math.imul(L,_e)|0,p=p+Math.imul(c,me)|0,u=u+Math.imul(c,we)|0,u=u+Math.imul(S,me)|0,w=w+Math.imul(S,we)|0;var di=(g+p|0)+((u&8191)<<13)|0;g=(w+(u>>>13)|0)+(di>>>26)|0,di&=67108863,p=Math.imul(re,pe),u=Math.imul(re,ve),u=u+Math.imul(ie,pe)|0,w=Math.imul(ie,ve),p=p+Math.imul(Q,ye)|0,u=u+Math.imul(Q,ge)|0,u=u+Math.imul(ee,ye)|0,w=w+Math.imul(ee,ge)|0,p=p+Math.imul(G,be)|0,u=u+Math.imul(G,_e)|0,u=u+Math.imul(Y,be)|0,w=w+Math.imul(Y,_e)|0,p=p+Math.imul(C,me)|0,u=u+Math.imul(C,we)|0,u=u+Math.imul(L,me)|0,w=w+Math.imul(L,we)|0,p=p+Math.imul(c,xe)|0,u=u+Math.imul(c,Ee)|0,u=u+Math.imul(S,xe)|0,w=w+Math.imul(S,Ee)|0;var pi=(g+p|0)+((u&8191)<<13)|0;g=(w+(u>>>13)|0)+(pi>>>26)|0,pi&=67108863,p=Math.imul(ne,pe),u=Math.imul(ne,ve),u=u+Math.imul(ae,pe)|0,w=Math.imul(ae,ve),p=p+Math.imul(re,ye)|0,u=u+Math.imul(re,ge)|0,u=u+Math.imul(ie,ye)|0,w=w+Math.imul(ie,ge)|0,p=p+Math.imul(Q,be)|0,u=u+Math.imul(Q,_e)|0,u=u+Math.imul(ee,be)|0,w=w+Math.imul(ee,_e)|0,p=p+Math.imul(G,me)|0,u=u+Math.imul(G,we)|0,u=u+Math.imul(Y,me)|0,w=w+Math.imul(Y,we)|0,p=p+Math.imul(C,xe)|0,u=u+Math.imul(C,Ee)|0,u=u+Math.imul(L,xe)|0,w=w+Math.imul(L,Ee)|0,p=p+Math.imul(c,Se)|0,u=u+Math.imul(c,Me)|0,u=u+Math.imul(S,Se)|0,w=w+Math.imul(S,Me)|0;var vi=(g+p|0)+((u&8191)<<13)|0;g=(w+(u>>>13)|0)+(vi>>>26)|0,vi&=67108863,p=Math.imul(oe,pe),u=Math.imul(oe,ve),u=u+Math.imul(fe,pe)|0,w=Math.imul(fe,ve),p=p+Math.imul(ne,ye)|0,u=u+Math.imul(ne,ge)|0,u=u+Math.imul(ae,ye)|0,w=w+Math.imul(ae,ge)|0,p=p+Math.imul(re,be)|0,u=u+Math.imul(re,_e)|0,u=u+Math.imul(ie,be)|0,w=w+Math.imul(ie,_e)|0,p=p+Math.imul(Q,me)|0,u=u+Math.imul(Q,we)|0,u=u+Math.imul(ee,me)|0,w=w+Math.imul(ee,we)|0,p=p+Math.imul(G,xe)|0,u=u+Math.imul(G,Ee)|0,u=u+Math.imul(Y,xe)|0,w=w+Math.imul(Y,Ee)|0,p=p+Math.imul(C,Se)|0,u=u+Math.imul(C,Me)|0,u=u+Math.imul(L,Se)|0,w=w+Math.imul(L,Me)|0,p=p+Math.imul(c,Ae)|0,u=u+Math.imul(c,Be)|0,u=u+Math.imul(S,Ae)|0,w=w+Math.imul(S,Be)|0;var yi=(g+p|0)+((u&8191)<<13)|0;g=(w+(u>>>13)|0)+(yi>>>26)|0,yi&=67108863,p=Math.imul(se,pe),u=Math.imul(se,ve),u=u+Math.imul(ue,pe)|0,w=Math.imul(ue,ve),p=p+Math.imul(oe,ye)|0,u=u+Math.imul(oe,ge)|0,u=u+Math.imul(fe,ye)|0,w=w+Math.imul(fe,ge)|0,p=p+Math.imul(ne,be)|0,u=u+Math.imul(ne,_e)|0,u=u+Math.imul(ae,be)|0,w=w+Math.imul(ae,_e)|0,p=p+Math.imul(re,me)|0,u=u+Math.imul(re,we)|0,u=u+Math.imul(ie,me)|0,w=w+Math.imul(ie,we)|0,p=p+Math.imul(Q,xe)|0,u=u+Math.imul(Q,Ee)|0,u=u+Math.imul(ee,xe)|0,w=w+Math.imul(ee,Ee)|0,p=p+Math.imul(G,Se)|0,u=u+Math.imul(G,Me)|0,u=u+Math.imul(Y,Se)|0,w=w+Math.imul(Y,Me)|0,p=p+Math.imul(C,Ae)|0,u=u+Math.imul(C,Be)|0,u=u+Math.imul(L,Ae)|0,w=w+Math.imul(L,Be)|0,p=p+Math.imul(c,Re)|0,u=u+Math.imul(c,ke)|0,u=u+Math.imul(S,Re)|0,w=w+Math.imul(S,ke)|0;var gi=(g+p|0)+((u&8191)<<13)|0;g=(w+(u>>>13)|0)+(gi>>>26)|0,gi&=67108863,p=Math.imul(le,pe),u=Math.imul(le,ve),u=u+Math.imul(he,pe)|0,w=Math.imul(he,ve),p=p+Math.imul(se,ye)|0,u=u+Math.imul(se,ge)|0,u=u+Math.imul(ue,ye)|0,w=w+Math.imul(ue,ge)|0,p=p+Math.imul(oe,be)|0,u=u+Math.imul(oe,_e)|0,u=u+Math.imul(fe,be)|0,w=w+Math.imul(fe,_e)|0,p=p+Math.imul(ne,me)|0,u=u+Math.imul(ne,we)|0,u=u+Math.imul(ae,me)|0,w=w+Math.imul(ae,we)|0,p=p+Math.imul(re,xe)|0,u=u+Math.imul(re,Ee)|0,u=u+Math.imul(ie,xe)|0,w=w+Math.imul(ie,Ee)|0,p=p+Math.imul(Q,Se)|0,u=u+Math.imul(Q,Me)|0,u=u+Math.imul(ee,Se)|0,w=w+Math.imul(ee,Me)|0,p=p+Math.imul(G,Ae)|0,u=u+Math.imul(G,Be)|0,u=u+Math.imul(Y,Ae)|0,w=w+Math.imul(Y,Be)|0,p=p+Math.imul(C,Re)|0,u=u+Math.imul(C,ke)|0,u=u+Math.imul(L,Re)|0,w=w+Math.imul(L,ke)|0,p=p+Math.imul(c,Te)|0,u=u+Math.imul(c,Ie)|0,u=u+Math.imul(S,Te)|0,w=w+Math.imul(S,Ie)|0;var bi=(g+p|0)+((u&8191)<<13)|0;g=(w+(u>>>13)|0)+(bi>>>26)|0,bi&=67108863,p=Math.imul(ce,pe),u=Math.imul(ce,ve),u=u+Math.imul(de,pe)|0,w=Math.imul(de,ve),p=p+Math.imul(le,ye)|0,u=u+Math.imul(le,ge)|0,u=u+Math.imul(he,ye)|0,w=w+Math.imul(he,ge)|0,p=p+Math.imul(se,be)|0,u=u+Math.imul(se,_e)|0,u=u+Math.imul(ue,be)|0,w=w+Math.imul(ue,_e)|0,p=p+Math.imul(oe,me)|0,u=u+Math.imul(oe,we)|0,u=u+Math.imul(fe,me)|0,w=w+Math.imul(fe,we)|0,p=p+Math.imul(ne,xe)|0,u=u+Math.imul(ne,Ee)|0,u=u+Math.imul(ae,xe)|0,w=w+Math.imul(ae,Ee)|0,p=p+Math.imul(re,Se)|0,u=u+Math.imul(re,Me)|0,u=u+Math.imul(ie,Se)|0,w=w+Math.imul(ie,Me)|0,p=p+Math.imul(Q,Ae)|0,u=u+Math.imul(Q,Be)|0,u=u+Math.imul(ee,Ae)|0,w=w+Math.imul(ee,Be)|0,p=p+Math.imul(G,Re)|0,u=u+Math.imul(G,ke)|0,u=u+Math.imul(Y,Re)|0,w=w+Math.imul(Y,ke)|0,p=p+Math.imul(C,Te)|0,u=u+Math.imul(C,Ie)|0,u=u+Math.imul(L,Te)|0,w=w+Math.imul(L,Ie)|0,p=p+Math.imul(c,Oe)|0,u=u+Math.imul(c,qe)|0,u=u+Math.imul(S,Oe)|0,w=w+Math.imul(S,qe)|0;var _i=(g+p|0)+((u&8191)<<13)|0;g=(w+(u>>>13)|0)+(_i>>>26)|0,_i&=67108863,p=Math.imul(ce,ye),u=Math.imul(ce,ge),u=u+Math.imul(de,ye)|0,w=Math.imul(de,ge),p=p+Math.imul(le,be)|0,u=u+Math.imul(le,_e)|0,u=u+Math.imul(he,be)|0,w=w+Math.imul(he,_e)|0,p=p+Math.imul(se,me)|0,u=u+Math.imul(se,we)|0,u=u+Math.imul(ue,me)|0,w=w+Math.imul(ue,we)|0,p=p+Math.imul(oe,xe)|0,u=u+Math.imul(oe,Ee)|0,u=u+Math.imul(fe,xe)|0,w=w+Math.imul(fe,Ee)|0,p=p+Math.imul(ne,Se)|0,u=u+Math.imul(ne,Me)|0,u=u+Math.imul(ae,Se)|0,w=w+Math.imul(ae,Me)|0,p=p+Math.imul(re,Ae)|0,u=u+Math.imul(re,Be)|0,u=u+Math.imul(ie,Ae)|0,w=w+Math.imul(ie,Be)|0,p=p+Math.imul(Q,Re)|0,u=u+Math.imul(Q,ke)|0,u=u+Math.imul(ee,Re)|0,w=w+Math.imul(ee,ke)|0,p=p+Math.imul(G,Te)|0,u=u+Math.imul(G,Ie)|0,u=u+Math.imul(Y,Te)|0,w=w+Math.imul(Y,Ie)|0,p=p+Math.imul(C,Oe)|0,u=u+Math.imul(C,qe)|0,u=u+Math.imul(L,Oe)|0,w=w+Math.imul(L,qe)|0;var mi=(g+p|0)+((u&8191)<<13)|0;g=(w+(u>>>13)|0)+(mi>>>26)|0,mi&=67108863,p=Math.imul(ce,be),u=Math.imul(ce,_e),u=u+Math.imul(de,be)|0,w=Math.imul(de,_e),p=p+Math.imul(le,me)|0,u=u+Math.imul(le,we)|0,u=u+Math.imul(he,me)|0,w=w+Math.imul(he,we)|0,p=p+Math.imul(se,xe)|0,u=u+Math.imul(se,Ee)|0,u=u+Math.imul(ue,xe)|0,w=w+Math.imul(ue,Ee)|0,p=p+Math.imul(oe,Se)|0,u=u+Math.imul(oe,Me)|0,u=u+Math.imul(fe,Se)|0,w=w+Math.imul(fe,Me)|0,p=p+Math.imul(ne,Ae)|0,u=u+Math.imul(ne,Be)|0,u=u+Math.imul(ae,Ae)|0,w=w+Math.imul(ae,Be)|0,p=p+Math.imul(re,Re)|0,u=u+Math.imul(re,ke)|0,u=u+Math.imul(ie,Re)|0,w=w+Math.imul(ie,ke)|0,p=p+Math.imul(Q,Te)|0,u=u+Math.imul(Q,Ie)|0,u=u+Math.imul(ee,Te)|0,w=w+Math.imul(ee,Ie)|0,p=p+Math.imul(G,Oe)|0,u=u+Math.imul(G,qe)|0,u=u+Math.imul(Y,Oe)|0,w=w+Math.imul(Y,qe)|0;var wi=(g+p|0)+((u&8191)<<13)|0;g=(w+(u>>>13)|0)+(wi>>>26)|0,wi&=67108863,p=Math.imul(ce,me),u=Math.imul(ce,we),u=u+Math.imul(de,me)|0,w=Math.imul(de,we),p=p+Math.imul(le,xe)|0,u=u+Math.imul(le,Ee)|0,u=u+Math.imul(he,xe)|0,w=w+Math.imul(he,Ee)|0,p=p+Math.imul(se,Se)|0,u=u+Math.imul(se,Me)|0,u=u+Math.imul(ue,Se)|0,w=w+Math.imul(ue,Me)|0,p=p+Math.imul(oe,Ae)|0,u=u+Math.imul(oe,Be)|0,u=u+Math.imul(fe,Ae)|0,w=w+Math.imul(fe,Be)|0,p=p+Math.imul(ne,Re)|0,u=u+Math.imul(ne,ke)|0,u=u+Math.imul(ae,Re)|0,w=w+Math.imul(ae,ke)|0,p=p+Math.imul(re,Te)|0,u=u+Math.imul(re,Ie)|0,u=u+Math.imul(ie,Te)|0,w=w+Math.imul(ie,Ie)|0,p=p+Math.imul(Q,Oe)|0,u=u+Math.imul(Q,qe)|0,u=u+Math.imul(ee,Oe)|0,w=w+Math.imul(ee,qe)|0;var xi=(g+p|0)+((u&8191)<<13)|0;g=(w+(u>>>13)|0)+(xi>>>26)|0,xi&=67108863,p=Math.imul(ce,xe),u=Math.imul(ce,Ee),u=u+Math.imul(de,xe)|0,w=Math.imul(de,Ee),p=p+Math.imul(le,Se)|0,u=u+Math.imul(le,Me)|0,u=u+Math.imul(he,Se)|0,w=w+Math.imul(he,Me)|0,p=p+Math.imul(se,Ae)|0,u=u+Math.imul(se,Be)|0,u=u+Math.imul(ue,Ae)|0,w=w+Math.imul(ue,Be)|0,p=p+Math.imul(oe,Re)|0,u=u+Math.imul(oe,ke)|0,u=u+Math.imul(fe,Re)|0,w=w+Math.imul(fe,ke)|0,p=p+Math.imul(ne,Te)|0,u=u+Math.imul(ne,Ie)|0,u=u+Math.imul(ae,Te)|0,w=w+Math.imul(ae,Ie)|0,p=p+Math.imul(re,Oe)|0,u=u+Math.imul(re,qe)|0,u=u+Math.imul(ie,Oe)|0,w=w+Math.imul(ie,qe)|0;var Ei=(g+p|0)+((u&8191)<<13)|0;g=(w+(u>>>13)|0)+(Ei>>>26)|0,Ei&=67108863,p=Math.imul(ce,Se),u=Math.imul(ce,Me),u=u+Math.imul(de,Se)|0,w=Math.imul(de,Me),p=p+Math.imul(le,Ae)|0,u=u+Math.imul(le,Be)|0,u=u+Math.imul(he,Ae)|0,w=w+Math.imul(he,Be)|0,p=p+Math.imul(se,Re)|0,u=u+Math.imul(se,ke)|0,u=u+Math.imul(ue,Re)|0,w=w+Math.imul(ue,ke)|0,p=p+Math.imul(oe,Te)|0,u=u+Math.imul(oe,Ie)|0,u=u+Math.imul(fe,Te)|0,w=w+Math.imul(fe,Ie)|0,p=p+Math.imul(ne,Oe)|0,u=u+Math.imul(ne,qe)|0,u=u+Math.imul(ae,Oe)|0,w=w+Math.imul(ae,qe)|0;var Si=(g+p|0)+((u&8191)<<13)|0;g=(w+(u>>>13)|0)+(Si>>>26)|0,Si&=67108863,p=Math.imul(ce,Ae),u=Math.imul(ce,Be),u=u+Math.imul(de,Ae)|0,w=Math.imul(de,Be),p=p+Math.imul(le,Re)|0,u=u+Math.imul(le,ke)|0,u=u+Math.imul(he,Re)|0,w=w+Math.imul(he,ke)|0,p=p+Math.imul(se,Te)|0,u=u+Math.imul(se,Ie)|0,u=u+Math.imul(ue,Te)|0,w=w+Math.imul(ue,Ie)|0,p=p+Math.imul(oe,Oe)|0,u=u+Math.imul(oe,qe)|0,u=u+Math.imul(fe,Oe)|0,w=w+Math.imul(fe,qe)|0;var Mi=(g+p|0)+((u&8191)<<13)|0;g=(w+(u>>>13)|0)+(Mi>>>26)|0,Mi&=67108863,p=Math.imul(ce,Re),u=Math.imul(ce,ke),u=u+Math.imul(de,Re)|0,w=Math.imul(de,ke),p=p+Math.imul(le,Te)|0,u=u+Math.imul(le,Ie)|0,u=u+Math.imul(he,Te)|0,w=w+Math.imul(he,Ie)|0,p=p+Math.imul(se,Oe)|0,u=u+Math.imul(se,qe)|0,u=u+Math.imul(ue,Oe)|0,w=w+Math.imul(ue,qe)|0;var Ai=(g+p|0)+((u&8191)<<13)|0;g=(w+(u>>>13)|0)+(Ai>>>26)|0,Ai&=67108863,p=Math.imul(ce,Te),u=Math.imul(ce,Ie),u=u+Math.imul(de,Te)|0,w=Math.imul(de,Ie),p=p+Math.imul(le,Oe)|0,u=u+Math.imul(le,qe)|0,u=u+Math.imul(he,Oe)|0,w=w+Math.imul(he,qe)|0;var Bi=(g+p|0)+((u&8191)<<13)|0;g=(w+(u>>>13)|0)+(Bi>>>26)|0,Bi&=67108863,p=Math.imul(ce,Oe),u=Math.imul(ce,qe),u=u+Math.imul(de,Oe)|0,w=Math.imul(de,qe);var Ri=(g+p|0)+((u&8191)<<13)|0;return g=(w+(u>>>13)|0)+(Ri>>>26)|0,Ri&=67108863,v[0]=Mn,v[1]=$e,v[2]=Ye,v[3]=di,v[4]=pi,v[5]=vi,v[6]=yi,v[7]=gi,v[8]=bi,v[9]=_i,v[10]=mi,v[11]=wi,v[12]=xi,v[13]=Ei,v[14]=Si,v[15]=Mi,v[16]=Ai,v[17]=Bi,v[18]=Ri,g!==0&&(v[19]=g,d.length++),d};Math.imul||(O=T);function D(A,h,b){b.negative=h.negative^A.negative,b.length=A.length+h.length;for(var d=0,f=0,l=0;l<b.length-1;l++){var v=f;f=0;for(var g=d&67108863,p=Math.min(l,h.length-1),u=Math.max(0,l-A.length+1);u<=p;u++){var w=l-u,E=A.words[w]|0,c=h.words[u]|0,S=E*c,P=S&67108863;v=v+(S/67108864|0)|0,P=P+g|0,g=P&67108863,v=v+(P>>>26)|0,f+=v>>>26,v&=67108863}b.words[l]=g,d=v,v=f}return d!==0?b.words[l]=d:b.length--,b.strip()}function U(A,h,b){var d=new N;return d.mulp(A,h,b)}n.prototype.mulTo=function(h,b){var d,f=this.length+h.length;return this.length===10&&h.length===10?d=O(this,h,b):f<63?d=T(this,h,b):f<1024?d=D(this,h,b):d=U(this,h,b),d};function N(A,h){this.x=A,this.y=h}N.prototype.makeRBT=function(h){for(var b=new Array(h),d=n.prototype._countBits(h)-1,f=0;f<h;f++)b[f]=this.revBin(f,d,h);return b},N.prototype.revBin=function(h,b,d){if(h===0||h===d-1)return h;for(var f=0,l=0;l<b;l++)f|=(h&1)<<b-l-1,h>>=1;return f},N.prototype.permute=function(h,b,d,f,l,v){for(var g=0;g<v;g++)f[g]=b[h[g]],l[g]=d[h[g]]},N.prototype.transform=function(h,b,d,f,l,v){this.permute(v,h,b,d,f,l);for(var g=1;g<l;g<<=1)for(var p=g<<1,u=Math.cos(2*Math.PI/p),w=Math.sin(2*Math.PI/p),E=0;E<l;E+=p)for(var c=u,S=w,P=0;P<g;P++){var C=d[E+P],L=f[E+P],V=d[E+P+g],G=f[E+P+g],Y=c*V-S*G;G=c*G+S*V,V=Y,d[E+P]=C+V,f[E+P]=L+G,d[E+P+g]=C-V,f[E+P+g]=L-G,P!==p&&(Y=u*c-w*S,S=u*S+w*c,c=Y)}},N.prototype.guessLen13b=function(h,b){var d=Math.max(b,h)|1,f=d&1,l=0;for(d=d/2|0;d;d=d>>>1)l++;return 1<<l+1+f},N.prototype.conjugate=function(h,b,d){if(!(d<=1))for(var f=0;f<d/2;f++){var l=h[f];h[f]=h[d-f-1],h[d-f-1]=l,l=b[f],b[f]=-b[d-f-1],b[d-f-1]=-l}},N.prototype.normalize13b=function(h,b){for(var d=0,f=0;f<b/2;f++){var l=Math.round(h[2*f+1]/b)*8192+Math.round(h[2*f]/b)+d;h[f]=l&67108863,l<67108864?d=0:d=l/67108864|0}return h},N.prototype.convert13b=function(h,b,d,f){for(var l=0,v=0;v<b;v++)l=l+(h[v]|0),d[2*v]=l&8191,l=l>>>13,d[2*v+1]=l&8191,l=l>>>13;for(v=2*b;v<f;++v)d[v]=0;r(l===0),r((l&-8192)===0)},N.prototype.stub=function(h){for(var b=new Array(h),d=0;d<h;d++)b[d]=0;return b},N.prototype.mulp=function(h,b,d){var f=2*this.guessLen13b(h.length,b.length),l=this.makeRBT(f),v=this.stub(f),g=new Array(f),p=new Array(f),u=new Array(f),w=new Array(f),E=new Array(f),c=new Array(f),S=d.words;S.length=f,this.convert13b(h.words,h.length,g,f),this.convert13b(b.words,b.length,w,f),this.transform(g,v,p,u,f,l),this.transform(w,v,E,c,f,l);for(var P=0;P<f;P++){var C=p[P]*E[P]-u[P]*c[P];u[P]=p[P]*c[P]+u[P]*E[P],p[P]=C}return this.conjugate(p,u,f),this.transform(p,u,S,v,f,l),this.conjugate(S,v,f),this.normalize13b(S,f),d.negative=h.negative^b.negative,d.length=h.length+b.length,d.strip()},n.prototype.mul=function(h){var b=new n(null);return b.words=new Array(this.length+h.length),this.mulTo(h,b)},n.prototype.mulf=function(h){var b=new n(null);return b.words=new Array(this.length+h.length),U(this,h,b)},n.prototype.imul=function(h){return this.clone().mulTo(h,this)},n.prototype.imuln=function(h){r(typeof h=="number"),r(h<67108864);for(var b=0,d=0;d<this.length;d++){var f=(this.words[d]|0)*h,l=(f&67108863)+(b&67108863);b>>=26,b+=f/67108864|0,b+=l>>>26,this.words[d]=l&67108863}return b!==0&&(this.words[d]=b,this.length++),this.length=h===0?1:this.length,this},n.prototype.muln=function(h){return this.clone().imuln(h)},n.prototype.sqr=function(){return this.mul(this)},n.prototype.isqr=function(){return this.imul(this.clone())},n.prototype.pow=function(h){var b=k(h);if(b.length===0)return new n(1);for(var d=this,f=0;f<b.length&&b[f]===0;f++,d=d.sqr());if(++f<b.length)for(var l=d.sqr();f<b.length;f++,l=l.sqr())b[f]!==0&&(d=d.mul(l));return d},n.prototype.iushln=function(h){r(typeof h=="number"&&h>=0);var b=h%26,d=(h-b)/26,f=67108863>>>26-b<<26-b,l;if(b!==0){var v=0;for(l=0;l<this.length;l++){var g=this.words[l]&f,p=(this.words[l]|0)-g<<b;this.words[l]=p|v,v=g>>>26-b}v&&(this.words[l]=v,this.length++)}if(d!==0){for(l=this.length-1;l>=0;l--)this.words[l+d]=this.words[l];for(l=0;l<d;l++)this.words[l]=0;this.length+=d}return this.strip()},n.prototype.ishln=function(h){return r(this.negative===0),this.iushln(h)},n.prototype.iushrn=function(h,b,d){r(typeof h=="number"&&h>=0);var f;b?f=(b-b%26)/26:f=0;var l=h%26,v=Math.min((h-l)/26,this.length),g=67108863^67108863>>>l<<l,p=d;if(f-=v,f=Math.max(0,f),p){for(var u=0;u<v;u++)p.words[u]=this.words[u];p.length=v}if(v!==0)if(this.length>v)for(this.length-=v,u=0;u<this.length;u++)this.words[u]=this.words[u+v];else this.words[0]=0,this.length=1;var w=0;for(u=this.length-1;u>=0&&(w!==0||u>=f);u--){var E=this.words[u]|0;this.words[u]=w<<26-l|E>>>l,w=E&g}return p&&w!==0&&(p.words[p.length++]=w),this.length===0&&(this.words[0]=0,this.length=1),this.strip()},n.prototype.ishrn=function(h,b,d){return r(this.negative===0),this.iushrn(h,b,d)},n.prototype.shln=function(h){return this.clone().ishln(h)},n.prototype.ushln=function(h){return this.clone().iushln(h)},n.prototype.shrn=function(h){return this.clone().ishrn(h)},n.prototype.ushrn=function(h){return this.clone().iushrn(h)},n.prototype.testn=function(h){r(typeof h=="number"&&h>=0);var b=h%26,d=(h-b)/26,f=1<<b;if(this.length<=d)return!1;var l=this.words[d];return!!(l&f)},n.prototype.imaskn=function(h){r(typeof h=="number"&&h>=0);var b=h%26,d=(h-b)/26;if(r(this.negative===0,"imaskn works only with positive numbers"),this.length<=d)return this;if(b!==0&&d++,this.length=Math.min(d,this.length),b!==0){var f=67108863^67108863>>>b<<b;this.words[this.length-1]&=f}return this.length===0&&(this.words[0]=0,this.length=1),this.strip()},n.prototype.maskn=function(h){return this.clone().imaskn(h)},n.prototype.iaddn=function(h){return r(typeof h=="number"),r(h<67108864),h<0?this.isubn(-h):this.negative!==0?this.length===1&&(this.words[0]|0)<h?(this.words[0]=h-(this.words[0]|0),this.negative=0,this):(this.negative=0,this.isubn(h),this.negative=1,this):this._iaddn(h)},n.prototype._iaddn=function(h){this.words[0]+=h;for(var b=0;b<this.length&&this.words[b]>=67108864;b++)this.words[b]-=67108864,b===this.length-1?this.words[b+1]=1:this.words[b+1]++;return this.length=Math.max(this.length,b+1),this},n.prototype.isubn=function(h){if(r(typeof h=="number"),r(h<67108864),h<0)return this.iaddn(-h);if(this.negative!==0)return this.negative=0,this.iaddn(h),this.negative=1,this;if(this.words[0]-=h,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var b=0;b<this.length&&this.words[b]<0;b++)this.words[b]+=67108864,this.words[b+1]-=1;return this.strip()},n.prototype.addn=function(h){return this.clone().iaddn(h)},n.prototype.subn=function(h){return this.clone().isubn(h)},n.prototype.iabs=function(){return this.negative=0,this},n.prototype.abs=function(){return this.clone().iabs()},n.prototype._ishlnsubmul=function(h,b,d){var f=h.length+d,l;this._expand(f);var v,g=0;for(l=0;l<h.length;l++){v=(this.words[l+d]|0)+g;var p=(h.words[l]|0)*b;v-=p&67108863,g=(v>>26)-(p/67108864|0),this.words[l+d]=v&67108863}for(;l<this.length-d;l++)v=(this.words[l+d]|0)+g,g=v>>26,this.words[l+d]=v&67108863;if(g===0)return this.strip();for(r(g===-1),g=0,l=0;l<this.length;l++)v=-(this.words[l]|0)+g,g=v>>26,this.words[l]=v&67108863;return this.negative=1,this.strip()},n.prototype._wordDiv=function(h,b){var d=this.length-h.length,f=this.clone(),l=h,v=l.words[l.length-1]|0,g=this._countBits(v);d=26-g,d!==0&&(l=l.ushln(d),f.iushln(d),v=l.words[l.length-1]|0);var p=f.length-l.length,u;if(b!=="mod"){u=new n(null),u.length=p+1,u.words=new Array(u.length);for(var w=0;w<u.length;w++)u.words[w]=0}var E=f.clone()._ishlnsubmul(l,1,p);E.negative===0&&(f=E,u&&(u.words[p]=1));for(var c=p-1;c>=0;c--){var S=(f.words[l.length+c]|0)*67108864+(f.words[l.length+c-1]|0);for(S=Math.min(S/v|0,67108863),f._ishlnsubmul(l,S,c);f.negative!==0;)S--,f.negative=0,f._ishlnsubmul(l,1,c),f.isZero()||(f.negative^=1);u&&(u.words[c]=S)}return u&&u.strip(),f.strip(),b!=="div"&&d!==0&&f.iushrn(d),{div:u||null,mod:f}},n.prototype.divmod=function(h,b,d){if(r(!h.isZero()),this.isZero())return{div:new n(0),mod:new n(0)};var f,l,v;return this.negative!==0&&h.negative===0?(v=this.neg().divmod(h,b),b!=="mod"&&(f=v.div.neg()),b!=="div"&&(l=v.mod.neg(),d&&l.negative!==0&&l.iadd(h)),{div:f,mod:l}):this.negative===0&&h.negative!==0?(v=this.divmod(h.neg(),b),b!=="mod"&&(f=v.div.neg()),{div:f,mod:v.mod}):(this.negative&h.negative)!==0?(v=this.neg().divmod(h.neg(),b),b!=="div"&&(l=v.mod.neg(),d&&l.negative!==0&&l.isub(h)),{div:v.div,mod:l}):h.length>this.length||this.cmp(h)<0?{div:new n(0),mod:this}:h.length===1?b==="div"?{div:this.divn(h.words[0]),mod:null}:b==="mod"?{div:null,mod:new n(this.modn(h.words[0]))}:{div:this.divn(h.words[0]),mod:new n(this.modn(h.words[0]))}:this._wordDiv(h,b)},n.prototype.div=function(h){return this.divmod(h,"div",!1).div},n.prototype.mod=function(h){return this.divmod(h,"mod",!1).mod},n.prototype.umod=function(h){return this.divmod(h,"mod",!0).mod},n.prototype.divRound=function(h){var b=this.divmod(h);if(b.mod.isZero())return b.div;var d=b.div.negative!==0?b.mod.isub(h):b.mod,f=h.ushrn(1),l=h.andln(1),v=d.cmp(f);return v<0||l===1&&v===0?b.div:b.div.negative!==0?b.div.isubn(1):b.div.iaddn(1)},n.prototype.modn=function(h){r(h<=67108863);for(var b=(1<<26)%h,d=0,f=this.length-1;f>=0;f--)d=(b*d+(this.words[f]|0))%h;return d},n.prototype.idivn=function(h){r(h<=67108863);for(var b=0,d=this.length-1;d>=0;d--){var f=(this.words[d]|0)+b*67108864;this.words[d]=f/h|0,b=f%h}return this.strip()},n.prototype.divn=function(h){return this.clone().idivn(h)},n.prototype.egcd=function(h){r(h.negative===0),r(!h.isZero());var b=this,d=h.clone();b.negative!==0?b=b.umod(h):b=b.clone();for(var f=new n(1),l=new n(0),v=new n(0),g=new n(1),p=0;b.isEven()&&d.isEven();)b.iushrn(1),d.iushrn(1),++p;for(var u=d.clone(),w=b.clone();!b.isZero();){for(var E=0,c=1;(b.words[0]&c)===0&&E<26;++E,c<<=1);if(E>0)for(b.iushrn(E);E-- >0;)(f.isOdd()||l.isOdd())&&(f.iadd(u),l.isub(w)),f.iushrn(1),l.iushrn(1);for(var S=0,P=1;(d.words[0]&P)===0&&S<26;++S,P<<=1);if(S>0)for(d.iushrn(S);S-- >0;)(v.isOdd()||g.isOdd())&&(v.iadd(u),g.isub(w)),v.iushrn(1),g.iushrn(1);b.cmp(d)>=0?(b.isub(d),f.isub(v),l.isub(g)):(d.isub(b),v.isub(f),g.isub(l))}return{a:v,b:g,gcd:d.iushln(p)}},n.prototype._invmp=function(h){r(h.negative===0),r(!h.isZero());var b=this,d=h.clone();b.negative!==0?b=b.umod(h):b=b.clone();for(var f=new n(1),l=new n(0),v=d.clone();b.cmpn(1)>0&&d.cmpn(1)>0;){for(var g=0,p=1;(b.words[0]&p)===0&&g<26;++g,p<<=1);if(g>0)for(b.iushrn(g);g-- >0;)f.isOdd()&&f.iadd(v),f.iushrn(1);for(var u=0,w=1;(d.words[0]&w)===0&&u<26;++u,w<<=1);if(u>0)for(d.iushrn(u);u-- >0;)l.isOdd()&&l.iadd(v),l.iushrn(1);b.cmp(d)>=0?(b.isub(d),f.isub(l)):(d.isub(b),l.isub(f))}var E;return b.cmpn(1)===0?E=f:E=l,E.cmpn(0)<0&&E.iadd(h),E},n.prototype.gcd=function(h){if(this.isZero())return h.abs();if(h.isZero())return this.abs();var b=this.clone(),d=h.clone();b.negative=0,d.negative=0;for(var f=0;b.isEven()&&d.isEven();f++)b.iushrn(1),d.iushrn(1);do{for(;b.isEven();)b.iushrn(1);for(;d.isEven();)d.iushrn(1);var l=b.cmp(d);if(l<0){var v=b;b=d,d=v}else if(l===0||d.cmpn(1)===0)break;b.isub(d)}while(!0);return d.iushln(f)},n.prototype.invm=function(h){return this.egcd(h).a.umod(h)},n.prototype.isEven=function(){return(this.words[0]&1)===0},n.prototype.isOdd=function(){return(this.words[0]&1)===1},n.prototype.andln=function(h){return this.words[0]&h},n.prototype.bincn=function(h){r(typeof h=="number");var b=h%26,d=(h-b)/26,f=1<<b;if(this.length<=d)return this._expand(d+1),this.words[d]|=f,this;for(var l=f,v=d;l!==0&&v<this.length;v++){var g=this.words[v]|0;g+=l,l=g>>>26,g&=67108863,this.words[v]=g}return l!==0&&(this.words[v]=l,this.length++),this},n.prototype.isZero=function(){return this.length===1&&this.words[0]===0},n.prototype.cmpn=function(h){var b=h<0;if(this.negative!==0&&!b)return-1;if(this.negative===0&&b)return 1;this.strip();var d;if(this.length>1)d=1;else{b&&(h=-h),r(h<=67108863,"Number is too big");var f=this.words[0]|0;d=f===h?0:f<h?-1:1}return this.negative!==0?-d|0:d},n.prototype.cmp=function(h){if(this.negative!==0&&h.negative===0)return-1;if(this.negative===0&&h.negative!==0)return 1;var b=this.ucmp(h);return this.negative!==0?-b|0:b},n.prototype.ucmp=function(h){if(this.length>h.length)return 1;if(this.length<h.length)return-1;for(var b=0,d=this.length-1;d>=0;d--){var f=this.words[d]|0,l=h.words[d]|0;if(f!==l){f<l?b=-1:f>l&&(b=1);break}}return b},n.prototype.gtn=function(h){return this.cmpn(h)===1},n.prototype.gt=function(h){return this.cmp(h)===1},n.prototype.gten=function(h){return this.cmpn(h)>=0},n.prototype.gte=function(h){return this.cmp(h)>=0},n.prototype.ltn=function(h){return this.cmpn(h)===-1},n.prototype.lt=function(h){return this.cmp(h)===-1},n.prototype.lten=function(h){return this.cmpn(h)<=0},n.prototype.lte=function(h){return this.cmp(h)<=0},n.prototype.eqn=function(h){return this.cmpn(h)===0},n.prototype.eq=function(h){return this.cmp(h)===0},n.red=function(h){return new z(h)},n.prototype.toRed=function(h){return r(!this.red,"Already a number in reduction context"),r(this.negative===0,"red works only with positives"),h.convertTo(this)._forceRed(h)},n.prototype.fromRed=function(){return r(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},n.prototype._forceRed=function(h){return this.red=h,this},n.prototype.forceRed=function(h){return r(!this.red,"Already a number in reduction context"),this._forceRed(h)},n.prototype.redAdd=function(h){return r(this.red,"redAdd works only with red numbers"),this.red.add(this,h)},n.prototype.redIAdd=function(h){return r(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,h)},n.prototype.redSub=function(h){return r(this.red,"redSub works only with red numbers"),this.red.sub(this,h)},n.prototype.redISub=function(h){return r(this.red,"redISub works only with red numbers"),this.red.isub(this,h)},n.prototype.redShl=function(h){return r(this.red,"redShl works only with red numbers"),this.red.shl(this,h)},n.prototype.redMul=function(h){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,h),this.red.mul(this,h)},n.prototype.redIMul=function(h){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,h),this.red.imul(this,h)},n.prototype.redSqr=function(){return r(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},n.prototype.redISqr=function(){return r(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},n.prototype.redSqrt=function(){return r(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},n.prototype.redInvm=function(){return r(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},n.prototype.redNeg=function(){return r(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},n.prototype.redPow=function(h){return r(this.red&&!h.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,h)};var j={k256:null,p224:null,p192:null,p25519:null};function H(A,h){this.name=A,this.p=new n(h,16),this.n=this.p.bitLength(),this.k=new n(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}H.prototype._tmp=function(){var h=new n(null);return h.words=new Array(Math.ceil(this.n/13)),h},H.prototype.ireduce=function(h){var b=h,d;do this.split(b,this.tmp),b=this.imulK(b),b=b.iadd(this.tmp),d=b.bitLength();while(d>this.n);var f=d<this.n?-1:b.ucmp(this.p);return f===0?(b.words[0]=0,b.length=1):f>0?b.isub(this.p):b.strip!==void 0?b.strip():b._strip(),b},H.prototype.split=function(h,b){h.iushrn(this.n,0,b)},H.prototype.imulK=function(h){return h.imul(this.k)};function W(){H.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}i(W,H),W.prototype.split=function(h,b){for(var d=4194303,f=Math.min(h.length,9),l=0;l<f;l++)b.words[l]=h.words[l];if(b.length=f,h.length<=9){h.words[0]=0,h.length=1;return}var v=h.words[9];for(b.words[b.length++]=v&d,l=10;l<h.length;l++){var g=h.words[l]|0;h.words[l-10]=(g&d)<<4|v>>>22,v=g}v>>>=22,h.words[l-10]=v,v===0&&h.length>10?h.length-=10:h.length-=9},W.prototype.imulK=function(h){h.words[h.length]=0,h.words[h.length+1]=0,h.length+=2;for(var b=0,d=0;d<h.length;d++){var f=h.words[d]|0;b+=f*977,h.words[d]=b&67108863,b=f*64+(b/67108864|0)}return h.words[h.length-1]===0&&(h.length--,h.words[h.length-1]===0&&h.length--),h};function Z(){H.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}i(Z,H);function K(){H.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}i(K,H);function J(){H.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}i(J,H),J.prototype.imulK=function(h){for(var b=0,d=0;d<h.length;d++){var f=(h.words[d]|0)*19+b,l=f&67108863;f>>>=26,h.words[d]=l,b=f}return b!==0&&(h.words[h.length++]=b),h},n._prime=function(h){if(j[h])return j[h];var b;if(h==="k256")b=new W;else if(h==="p224")b=new Z;else if(h==="p192")b=new K;else if(h==="p25519")b=new J;else throw new Error("Unknown prime "+h);return j[h]=b,b};function z(A){if(typeof A=="string"){var h=n._prime(A);this.m=h.p,this.prime=h}else r(A.gtn(1),"modulus must be greater than 1"),this.m=A,this.prime=null}z.prototype._verify1=function(h){r(h.negative===0,"red works only with positives"),r(h.red,"red works only with red numbers")},z.prototype._verify2=function(h,b){r((h.negative|b.negative)===0,"red works only with positives"),r(h.red&&h.red===b.red,"red works only with red numbers")},z.prototype.imod=function(h){return this.prime?this.prime.ireduce(h)._forceRed(this):h.umod(this.m)._forceRed(this)},z.prototype.neg=function(h){return h.isZero()?h.clone():this.m.sub(h)._forceRed(this)},z.prototype.add=function(h,b){this._verify2(h,b);var d=h.add(b);return d.cmp(this.m)>=0&&d.isub(this.m),d._forceRed(this)},z.prototype.iadd=function(h,b){this._verify2(h,b);var d=h.iadd(b);return d.cmp(this.m)>=0&&d.isub(this.m),d},z.prototype.sub=function(h,b){this._verify2(h,b);var d=h.sub(b);return d.cmpn(0)<0&&d.iadd(this.m),d._forceRed(this)},z.prototype.isub=function(h,b){this._verify2(h,b);var d=h.isub(b);return d.cmpn(0)<0&&d.iadd(this.m),d},z.prototype.shl=function(h,b){return this._verify1(h),this.imod(h.ushln(b))},z.prototype.imul=function(h,b){return this._verify2(h,b),this.imod(h.imul(b))},z.prototype.mul=function(h,b){return this._verify2(h,b),this.imod(h.mul(b))},z.prototype.isqr=function(h){return this.imul(h,h.clone())},z.prototype.sqr=function(h){return this.mul(h,h)},z.prototype.sqrt=function(h){if(h.isZero())return h.clone();var b=this.m.andln(3);if(r(b%2===1),b===3){var d=this.m.add(new n(1)).iushrn(2);return this.pow(h,d)}for(var f=this.m.subn(1),l=0;!f.isZero()&&f.andln(1)===0;)l++,f.iushrn(1);r(!f.isZero());var v=new n(1).toRed(this),g=v.redNeg(),p=this.m.subn(1).iushrn(1),u=this.m.bitLength();for(u=new n(2*u*u).toRed(this);this.pow(u,p).cmp(g)!==0;)u.redIAdd(g);for(var w=this.pow(u,f),E=this.pow(h,f.addn(1).iushrn(1)),c=this.pow(h,f),S=l;c.cmp(v)!==0;){for(var P=c,C=0;P.cmp(v)!==0;C++)P=P.redSqr();r(C<S);var L=this.pow(w,new n(1).iushln(S-C-1));E=E.redMul(L),w=L.redSqr(),c=c.redMul(w),S=C}return E},z.prototype.invm=function(h){var b=h._invmp(this.m);return b.negative!==0?(b.negative=0,this.imod(b).redNeg()):this.imod(b)},z.prototype.pow=function(h,b){if(b.isZero())return new n(1).toRed(this);if(b.cmpn(1)===0)return h.clone();var d=4,f=new Array(1<<d);f[0]=new n(1).toRed(this),f[1]=h;for(var l=2;l<f.length;l++)f[l]=this.mul(f[l-1],h);var v=f[0],g=0,p=0,u=b.bitLength()%26;for(u===0&&(u=26),l=b.length-1;l>=0;l--){for(var w=b.words[l],E=u-1;E>=0;E--){var c=w>>E&1;if(v!==f[0]&&(v=this.sqr(v)),c===0&&g===0){p=0;continue}g<<=1,g|=c,p++,!(p!==d&&(l!==0||E!==0))&&(v=this.mul(v,f[g]),p=0,g=0)}u=26}return v},z.prototype.convertTo=function(h){var b=h.umod(this.m);return b===h?b.clone():b},z.prototype.convertFrom=function(h){var b=h.clone();return b.red=null,b},n.mont=function(h){return new X(h)};function X(A){z.call(this,A),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new n(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}i(X,z),X.prototype.convertTo=function(h){return this.imod(h.ushln(this.shift))},X.prototype.convertFrom=function(h){var b=this.imod(h.mul(this.rinv));return b.red=null,b},X.prototype.imul=function(h,b){if(h.isZero()||b.isZero())return h.words[0]=0,h.length=1,h;var d=h.imul(b),f=d.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),l=d.isub(f).iushrn(this.shift),v=l;return l.cmp(this.m)>=0?v=l.isub(this.m):l.cmpn(0)<0&&(v=l.iadd(this.m)),v._forceRed(this)},X.prototype.mul=function(h,b){if(h.isZero()||b.isZero())return new n(0)._forceRed(this);var d=h.mul(b),f=d.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),l=d.isub(f).iushrn(this.shift),v=l;return l.cmp(this.m)>=0?v=l.isub(this.m):l.cmpn(0)<0&&(v=l.iadd(this.m)),v._forceRed(this)},X.prototype.invm=function(h){var b=this.imod(h._invmp(this.m).mul(this.r2));return b._forceRed(this)}})(typeof _c>"u"||_c,R_)});var k_=R((BL,xc)=>{m();var mc;xc.exports=function(t){return mc||(mc=new ti(null)),mc.generate(t)};function ti(e){this.rand=e}xc.exports.Rand=ti;ti.prototype.generate=function(t){return this._rand(t)};ti.prototype._rand=function(t){if(this.rand.getBytes)return this.rand.getBytes(t);for(var r=new Uint8Array(t),i=0;i<r.length;i++)r[i]=this.rand.getByte();return r};if(typeof self=="object")self.crypto&&self.crypto.getRandomValues?ti.prototype._rand=function(t){var r=new Uint8Array(t);return self.crypto.getRandomValues(r),r}:self.msCrypto&&self.msCrypto.getRandomValues?ti.prototype._rand=function(t){var r=new Uint8Array(t);return self.msCrypto.getRandomValues(r),r}:typeof window=="object"&&(ti.prototype._rand=function(){throw new Error("Not implemented yet")});else try{if(wc=Js(),typeof wc.randomBytes!="function")throw new Error("Not supported");ti.prototype._rand=function(t){return wc.randomBytes(t)}}catch{}var wc});var Ec=R((kL,T_)=>{m();var nn=ei(),MR=k_();function an(e){this.rand=e||new MR.Rand}T_.exports=an;an.create=function(t){return new an(t)};an.prototype._randbelow=function(t){var r=t.bitLength(),i=Math.ceil(r/8);do var n=new nn(this.rand.generate(i));while(n.cmp(t)>=0);return n};an.prototype._randrange=function(t,r){var i=r.sub(t);return t.add(this._randbelow(i))};an.prototype.test=function(t,r,i){var n=t.bitLength(),a=nn.mont(t),o=new nn(1).toRed(a);r||(r=Math.max(1,n/48|0));for(var s=t.subn(1),y=0;!s.testn(y);y++);for(var _=t.shrn(y),x=s.toRed(a),B=!0;r>0;r--){var k=this._randrange(new nn(2),s);i&&i(k);var T=k.toRed(a).redPow(_);if(!(T.cmp(o)===0||T.cmp(x)===0)){for(var O=1;O<y;O++){if(T=T.redSqr(),T.cmp(o)===0)return!1;if(T.cmp(x)===0)break}if(O===y)return!1}}return B};an.prototype.getDivisor=function(t,r){var i=t.bitLength(),n=nn.mont(t),a=new nn(1).toRed(n);r||(r=Math.max(1,i/48|0));for(var o=t.subn(1),s=0;!o.testn(s);s++);for(var y=t.shrn(s),_=o.toRed(n);r>0;r--){var x=this._randrange(new nn(2),o),B=t.gcd(x);if(B.cmpn(1)!==0)return B;var k=x.toRed(n).redPow(y);if(!(k.cmp(a)===0||k.cmp(_)===0)){for(var T=1;T<s;T++){if(k=k.redSqr(),k.cmp(a)===0)return k.fromRed().subn(1).gcd(t);if(k.cmp(_)===0)break}if(T===s)return k=k.redSqr(),k.fromRed().subn(1).gcd(t)}}return!1}});var kc=R((NL,q_)=>{m();var AR=qi();q_.exports=Rc;Rc.simpleSieve=Ac;Rc.fermatTest=Bc;var ut=ei(),BR=new ut(24),RR=Ec(),I_=new RR,kR=new ut(1),Mc=new ut(2),TR=new ut(5),IL=new ut(16),OL=new ut(8),IR=new ut(10),OR=new ut(3),qL=new ut(7),qR=new ut(11),O_=new ut(4),DL=new ut(12),Sc=null;function DR(){if(Sc!==null)return Sc;var e=1048576,t=[];t[0]=2;for(var r=1,i=3;i<e;i+=2){for(var n=Math.ceil(Math.sqrt(i)),a=0;a<r&&t[a]<=n&&i%t[a]!==0;a++);r!==a&&t[a]<=n||(t[r++]=i)}return Sc=t,t}function Ac(e){for(var t=DR(),r=0;r<t.length;r++)if(e.modn(t[r])===0)return e.cmpn(t[r])===0;return!0}function Bc(e){var t=ut.mont(e);return Mc.toRed(t).redPow(e.subn(1)).fromRed().cmpn(1)===0}function Rc(e,t){if(e<16)return t===2||t===5?new ut([140,123]):new ut([140,39]);t=new ut(t);for(var r,i;;){for(r=new ut(AR(Math.ceil(e/8)));r.bitLength()>e;)r.ishrn(1);if(r.isEven()&&r.iadd(kR),r.testn(1)||r.iadd(Mc),t.cmp(Mc)){if(!t.cmp(TR))for(;r.mod(IR).cmp(OR);)r.iadd(O_)}else for(;r.mod(BR).cmp(qR);)r.iadd(O_);if(i=r.shrn(1),Ac(i)&&Ac(r)&&Bc(i)&&Bc(r)&&I_.test(i)&&I_.test(r))return r}}});var D_=R((LL,NR)=>{NR.exports={modp1:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a63a3620ffffffffffffffff"},modp2:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece65381ffffffffffffffff"},modp5:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca237327ffffffffffffffff"},modp14:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aacaa68ffffffffffffffff"},modp15:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a93ad2caffffffffffffffff"},modp16:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c934063199ffffffffffffffff"},modp17:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dcc4024ffffffffffffffff"},modp18:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dbe115974a3926f12fee5e438777cb6a932df8cd8bec4d073b931ba3bc832b68d9dd300741fa7bf8afc47ed2576f6936ba424663aab639c5ae4f5683423b4742bf1c978238f16cbe39d652de3fdb8befc848ad922222e04a4037c0713eb57a81a23f0c73473fc646cea306b4bcbc8862f8385ddfa9d4b7fa2c087e879683303ed5bdd3a062b3cf5b3a278a66d2a13f83f44f82ddf310ee074ab6a364597e899a0255dc164f31cc50846851df9ab48195ded7ea1b1d510bd7ee74d73faf36bc31ecfa268359046f4eb879f924009438b481c6cd7889a002ed5ee382bc9190da6fc026e479558e4475677e9aa9e3050e2765694dfc81f56e880b96e7160c980dd98edd3dfffffffffffffffff"}}});var C_=R((CL,L_)=>{m();var Lt=ei(),PR=Ec(),N_=new PR,LR=new Lt(24),CR=new Lt(11),UR=new Lt(10),FR=new Lt(3),jR=new Lt(7),P_=kc(),zR=qi();L_.exports=Ur;function ZR(e,t){return t=t||"utf8",I.Buffer.isBuffer(e)||(e=new I.Buffer(e,t)),this._pub=new Lt(e),this}function HR(e,t){return t=t||"utf8",I.Buffer.isBuffer(e)||(e=new I.Buffer(e,t)),this._priv=new Lt(e),this}var Xs={};function WR(e,t){var r=t.toString("hex"),i=[r,e.toString(16)].join("_");if(i in Xs)return Xs[i];var n=0;if(e.isEven()||!P_.simpleSieve||!P_.fermatTest(e)||!N_.test(e))return n+=1,r==="02"||r==="05"?n+=8:n+=4,Xs[i]=n,n;N_.test(e.shrn(1))||(n+=2);var a;switch(r){case"02":e.mod(LR).cmp(CR)&&(n+=8);break;case"05":a=e.mod(UR),a.cmp(FR)&&a.cmp(jR)&&(n+=8);break;default:n+=4}return Xs[i]=n,n}function Ur(e,t,r){this.setGenerator(t),this.__prime=new Lt(e),this._prime=Lt.mont(this.__prime),this._primeLen=e.length,this._pub=void 0,this._priv=void 0,this._primeCode=void 0,r?(this.setPublicKey=ZR,this.setPrivateKey=HR):this._primeCode=8}Object.defineProperty(Ur.prototype,"verifyError",{enumerable:!0,get:function(){return typeof this._primeCode!="number"&&(this._primeCode=WR(this.__prime,this.__gen)),this._primeCode}});Ur.prototype.generateKeys=function(){return this._priv||(this._priv=new Lt(zR(this._primeLen))),this._pub=this._gen.toRed(this._prime).redPow(this._priv).fromRed(),this.getPublicKey()};Ur.prototype.computeSecret=function(e){e=new Lt(e),e=e.toRed(this._prime);var t=e.redPow(this._priv).fromRed(),r=new I.Buffer(t.toArray()),i=this.getPrime();if(r.length<i.length){var n=new I.Buffer(i.length-r.length);n.fill(0),r=I.Buffer.concat([n,r])}return r};Ur.prototype.getPublicKey=function(t){return Qs(this._pub,t)};Ur.prototype.getPrivateKey=function(t){return Qs(this._priv,t)};Ur.prototype.getPrime=function(e){return Qs(this.__prime,e)};Ur.prototype.getGenerator=function(e){return Qs(this._gen,e)};Ur.prototype.setGenerator=function(e,t){return t=t||"utf8",I.Buffer.isBuffer(e)||(e=new I.Buffer(e,t)),this.__gen=e,this._gen=new Lt(e),this};function Qs(e,t){var r=new I.Buffer(e.toArray());return t?r.toString(t):r}});var j_=R(aa=>{m();var KR=kc(),U_=D_(),Tc=C_();function GR(e){var t=new I.Buffer(U_[e].prime,"hex"),r=new I.Buffer(U_[e].gen,"hex");return new Tc(t,r)}var VR={binary:!0,hex:!0,base64:!0};function F_(e,t,r,i){return I.Buffer.isBuffer(t)||VR[t]===void 0?F_(e,"binary",t,r):(t=t||"binary",i=i||"binary",r=r||new I.Buffer([2]),I.Buffer.isBuffer(r)||(r=new I.Buffer(r,i)),typeof e=="number"?new Tc(KR(e,r),r,!0):(I.Buffer.isBuffer(e)||(e=new I.Buffer(e,t)),new Tc(e,r,!0)))}aa.DiffieHellmanGroup=aa.createDiffieHellmanGroup=aa.getDiffieHellman=GR;aa.createDiffieHellman=aa.DiffieHellman=F_});var z_=R((exports,module)=>{m();var indexOf=function(e,t){if(e.indexOf)return e.indexOf(t);for(var r=0;r<e.length;r++)if(e[r]===t)return r;return-1},Object_keys=function(e){if(Object.keys)return Object.keys(e);var t=[];for(var r in e)t.push(r);return t},forEach=function(e,t){if(e.forEach)return e.forEach(t);for(var r=0;r<e.length;r++)t(e[r],r,e)},defineProp=(function(){try{return Object.defineProperty({},"_",{}),function(e,t,r){Object.defineProperty(e,t,{writable:!0,enumerable:!1,configurable:!0,value:r})}}catch{return function(t,r,i){t[r]=i}}})(),globals=["Array","Boolean","Date","Error","EvalError","Function","Infinity","JSON","Math","NaN","Number","Object","RangeError","ReferenceError","RegExp","String","SyntaxError","TypeError","URIError","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","eval","isFinite","isNaN","parseFloat","parseInt","undefined","unescape"];function Context(){}Context.prototype={};var Script=exports.Script=function(t){if(!(this instanceof Script))return new Script(t);this.code=t};Script.prototype.runInContext=function(e){if(!(e instanceof Context))throw new TypeError("needs a 'context' argument.");var t=document.createElement("iframe");t.style||(t.style={}),t.style.display="none",document.body.appendChild(t);var r=t.contentWindow,i=r.eval,n=r.execScript;!i&&n&&(n.call(r,"null"),i=r.eval),forEach(Object_keys(e),function(s){r[s]=e[s]}),forEach(globals,function(s){e[s]&&(r[s]=e[s])});var a=Object_keys(r),o=i.call(r,this.code);return forEach(Object_keys(r),function(s){(s in e||indexOf(a,s)===-1)&&(e[s]=r[s])}),forEach(globals,function(s){s in e||defineProp(e,s,r[s])}),document.body.removeChild(t),o};Script.prototype.runInThisContext=function(){return eval(this.code)};Script.prototype.runInNewContext=function(e){var t=Script.createContext(e),r=this.runInContext(t);return e&&forEach(Object_keys(t),function(i){e[i]=t[i]}),r};forEach(Object_keys(Script.prototype),function(e){exports[e]=Script[e]=function(t){var r=Script(t);return r[e].apply(r,[].slice.call(arguments,1))}});exports.isContext=function(e){return e instanceof Context};exports.createScript=function(e){return exports.Script(e)};exports.createContext=Script.createContext=function(e){var t=new Context;return typeof e=="object"&&forEach(Object_keys(e),function(r){t[r]=e[r]}),t}});var W_=R(H_=>{m();var Z_=fa(),$R=Ke(),YR=H_;YR.define=function(t,r){return new oa(t,r)};function oa(e,t){this.name=e,this.body=t,this.decoders={},this.encoders={}}oa.prototype._createNamed=function(t){var r;try{r=z_().runInThisContext("(function "+this.name+`(entity) {
12
+ this._initNamed(entity);
13
+ })`)}catch{r=function(n){this._initNamed(n)}}return $R(r,t),r.prototype._initNamed=function(n){t.call(this,n)},new r(this)};oa.prototype._getDecoder=function(t){return t=t||"der",this.decoders.hasOwnProperty(t)||(this.decoders[t]=this._createNamed(Z_.decoders[t])),this.decoders[t]};oa.prototype.decode=function(t,r,i){return this._getDecoder(r).decode(t,i)};oa.prototype._getEncoder=function(t){return t=t||"der",this.encoders.hasOwnProperty(t)||(this.encoders[t]=this._createNamed(Z_.encoders[t])),this.encoders[t]};oa.prototype.encode=function(t,r,i){return this._getEncoder(r).encode(t,i)}});var G_=R(K_=>{m();var JR=Ke();function Ct(e){this._reporterState={obj:null,path:[],options:e||{},errors:[]}}K_.Reporter=Ct;Ct.prototype.isError=function(t){return t instanceof sa};Ct.prototype.save=function(){var t=this._reporterState;return{obj:t.obj,pathLen:t.path.length}};Ct.prototype.restore=function(t){var r=this._reporterState;r.obj=t.obj,r.path=r.path.slice(0,t.pathLen)};Ct.prototype.enterKey=function(t){return this._reporterState.path.push(t)};Ct.prototype.exitKey=function(t){var r=this._reporterState;r.path=r.path.slice(0,t-1)};Ct.prototype.leaveKey=function(t,r,i){var n=this._reporterState;this.exitKey(t),n.obj!==null&&(n.obj[r]=i)};Ct.prototype.path=function(){return this._reporterState.path.join("/")};Ct.prototype.enterObject=function(){var t=this._reporterState,r=t.obj;return t.obj={},r};Ct.prototype.leaveObject=function(t){var r=this._reporterState,i=r.obj;return r.obj=t,i};Ct.prototype.error=function(t){var r,i=this._reporterState,n=t instanceof sa;if(n?r=t:r=new sa(i.path.map(function(a){return"["+JSON.stringify(a)+"]"}).join(""),t.message||t,t.stack),!i.options.partial)throw r;return n||i.errors.push(r),r};Ct.prototype.wrapResult=function(t){var r=this._reporterState;return r.options.partial?{result:this.isError(t)?null:t,errors:r.errors}:t};function sa(e,t){this.path=e,this.rethrow(t)}JR(sa,Error);sa.prototype.rethrow=function(t){if(this.message=t+" at: "+(this.path||"(shallow)"),Error.captureStackTrace&&Error.captureStackTrace(this,sa),!this.stack)try{throw new Error(this.message)}catch(r){this.stack=r.stack}return this}});var Oc=R(Ic=>{m();var XR=Ke(),tu=ua().Reporter,Io=st().Buffer;function gr(e,t){if(tu.call(this,t),!Io.isBuffer(e)){this.error("Input not Buffer");return}this.base=e,this.offset=0,this.length=e.length}XR(gr,tu);Ic.DecoderBuffer=gr;gr.prototype.save=function(){return{offset:this.offset,reporter:tu.prototype.save.call(this)}};gr.prototype.restore=function(t){var r=new gr(this.base);return r.offset=t.offset,r.length=this.offset,this.offset=t.offset,tu.prototype.restore.call(this,t.reporter),r};gr.prototype.isEmpty=function(){return this.offset===this.length};gr.prototype.readUInt8=function(t){return this.offset+1<=this.length?this.base.readUInt8(this.offset++,!0):this.error(t||"DecoderBuffer overrun")};gr.prototype.skip=function(t,r){if(!(this.offset+t<=this.length))return this.error(r||"DecoderBuffer overrun");var i=new gr(this.base);return i._reporterState=this._reporterState,i.offset=this.offset,i.length=this.offset+t,this.offset+=t,i};gr.prototype.raw=function(t){return this.base.slice(t?t.offset:this.offset,this.length)};function eu(e,t){if(Array.isArray(e))this.length=0,this.value=e.map(function(r){return r instanceof eu||(r=new eu(r,t)),this.length+=r.length,r},this);else if(typeof e=="number"){if(!(0<=e&&e<=255))return t.error("non-byte EncoderBuffer value");this.value=e,this.length=1}else if(typeof e=="string")this.value=e,this.length=Io.byteLength(e);else if(Io.isBuffer(e))this.value=e,this.length=e.length;else return t.error("Unsupported type: "+typeof e)}Ic.EncoderBuffer=eu;eu.prototype.join=function(t,r){return t||(t=new Io(this.length)),r||(r=0),this.length===0||(Array.isArray(this.value)?this.value.forEach(function(i){i.join(t,r),r+=i.length}):(typeof this.value=="number"?t[r]=this.value:typeof this.value=="string"?t.write(this.value,r):Io.isBuffer(this.value)&&this.value.copy(t,r),r+=this.length)),t}});var Y_=R(($L,$_)=>{m();var QR=ua().Reporter,ek=ua().EncoderBuffer,tk=ua().DecoderBuffer,bt=ea(),V_=["seq","seqof","set","setof","objid","bool","gentime","utctime","null_","enum","int","objDesc","bitstr","bmpstr","charstr","genstr","graphstr","ia5str","iso646str","numstr","octstr","printstr","t61str","unistr","utf8str","videostr"],rk=["key","obj","use","optional","explicit","implicit","def","choice","any","contains"].concat(V_),ik=["_peekTag","_decodeTag","_use","_decodeStr","_decodeObjid","_decodeTime","_decodeNull","_decodeInt","_decodeBool","_decodeList","_encodeComposite","_encodeStr","_encodeObjid","_encodeTime","_encodeNull","_encodeInt","_encodeBool"];function We(e,t){var r={};this._baseState=r,r.enc=e,r.parent=t||null,r.children=null,r.tag=null,r.args=null,r.reverseArgs=null,r.choice=null,r.optional=!1,r.any=!1,r.obj=!1,r.use=null,r.useDecoder=null,r.key=null,r.default=null,r.explicit=null,r.implicit=null,r.contains=null,r.parent||(r.children=[],this._wrap())}$_.exports=We;var nk=["enc","parent","children","tag","args","reverseArgs","choice","optional","any","obj","use","alteredUse","key","default","explicit","implicit","contains"];We.prototype.clone=function(){var t=this._baseState,r={};nk.forEach(function(n){r[n]=t[n]});var i=new this.constructor(r.parent);return i._baseState=r,i};We.prototype._wrap=function(){var t=this._baseState;rk.forEach(function(r){this[r]=function(){var n=new this.constructor(this);return t.children.push(n),n[r].apply(n,arguments)}},this)};We.prototype._init=function(t){var r=this._baseState;bt(r.parent===null),t.call(this),r.children=r.children.filter(function(i){return i._baseState.parent===this},this),bt.equal(r.children.length,1,"Root node can have only one child")};We.prototype._useArgs=function(t){var r=this._baseState,i=t.filter(function(n){return n instanceof this.constructor},this);t=t.filter(function(n){return!(n instanceof this.constructor)},this),i.length!==0&&(bt(r.children===null),r.children=i,i.forEach(function(n){n._baseState.parent=this},this)),t.length!==0&&(bt(r.args===null),r.args=t,r.reverseArgs=t.map(function(n){if(typeof n!="object"||n.constructor!==Object)return n;var a={};return Object.keys(n).forEach(function(o){o==(o|0)&&(o|=0);var s=n[o];a[s]=o}),a}))};ik.forEach(function(e){We.prototype[e]=function(){var r=this._baseState;throw new Error(e+" not implemented for encoding: "+r.enc)}});V_.forEach(function(e){We.prototype[e]=function(){var r=this._baseState,i=Array.prototype.slice.call(arguments);return bt(r.tag===null),r.tag=e,this._useArgs(i),this}});We.prototype.use=function(t){bt(t);var r=this._baseState;return bt(r.use===null),r.use=t,this};We.prototype.optional=function(){var t=this._baseState;return t.optional=!0,this};We.prototype.def=function(t){var r=this._baseState;return bt(r.default===null),r.default=t,r.optional=!0,this};We.prototype.explicit=function(t){var r=this._baseState;return bt(r.explicit===null&&r.implicit===null),r.explicit=t,this};We.prototype.implicit=function(t){var r=this._baseState;return bt(r.explicit===null&&r.implicit===null),r.implicit=t,this};We.prototype.obj=function(){var t=this._baseState,r=Array.prototype.slice.call(arguments);return t.obj=!0,r.length!==0&&this._useArgs(r),this};We.prototype.key=function(t){var r=this._baseState;return bt(r.key===null),r.key=t,this};We.prototype.any=function(){var t=this._baseState;return t.any=!0,this};We.prototype.choice=function(t){var r=this._baseState;return bt(r.choice===null),r.choice=t,this._useArgs(Object.keys(t).map(function(i){return t[i]})),this};We.prototype.contains=function(t){var r=this._baseState;return bt(r.use===null),r.contains=t,this};We.prototype._decode=function(t,r){var i=this._baseState;if(i.parent===null)return t.wrapResult(i.children[0]._decode(t,r));var n=i.default,a=!0,o=null;if(i.key!==null&&(o=t.enterKey(i.key)),i.optional){var s=null;if(i.explicit!==null?s=i.explicit:i.implicit!==null?s=i.implicit:i.tag!==null&&(s=i.tag),s===null&&!i.any){var y=t.save();try{i.choice===null?this._decodeGeneric(i.tag,t,r):this._decodeChoice(t,r),a=!0}catch{a=!1}t.restore(y)}else if(a=this._peekTag(t,s,i.any),t.isError(a))return a}var _;if(i.obj&&a&&(_=t.enterObject()),a){if(i.explicit!==null){var x=this._decodeTag(t,i.explicit);if(t.isError(x))return x;t=x}var B=t.offset;if(i.use===null&&i.choice===null){if(i.any)var y=t.save();var k=this._decodeTag(t,i.implicit!==null?i.implicit:i.tag,i.any);if(t.isError(k))return k;i.any?n=t.raw(y):t=k}if(r&&r.track&&i.tag!==null&&r.track(t.path(),B,t.length,"tagged"),r&&r.track&&i.tag!==null&&r.track(t.path(),t.offset,t.length,"content"),i.any?n=n:i.choice===null?n=this._decodeGeneric(i.tag,t,r):n=this._decodeChoice(t,r),t.isError(n))return n;if(!i.any&&i.choice===null&&i.children!==null&&i.children.forEach(function(D){D._decode(t,r)}),i.contains&&(i.tag==="octstr"||i.tag==="bitstr")){var T=new tk(n);n=this._getUse(i.contains,t._reporterState.obj)._decode(T,r)}}return i.obj&&a&&(n=t.leaveObject(_)),i.key!==null&&(n!==null||a===!0)?t.leaveKey(o,i.key,n):o!==null&&t.exitKey(o),n};We.prototype._decodeGeneric=function(t,r,i){var n=this._baseState;return t==="seq"||t==="set"?null:t==="seqof"||t==="setof"?this._decodeList(r,t,n.args[0],i):/str$/.test(t)?this._decodeStr(r,t,i):t==="objid"&&n.args?this._decodeObjid(r,n.args[0],n.args[1],i):t==="objid"?this._decodeObjid(r,null,null,i):t==="gentime"||t==="utctime"?this._decodeTime(r,t,i):t==="null_"?this._decodeNull(r,i):t==="bool"?this._decodeBool(r,i):t==="objDesc"?this._decodeStr(r,t,i):t==="int"||t==="enum"?this._decodeInt(r,n.args&&n.args[0],i):n.use!==null?this._getUse(n.use,r._reporterState.obj)._decode(r,i):r.error("unknown tag: "+t)};We.prototype._getUse=function(t,r){var i=this._baseState;return i.useDecoder=this._use(t,r),bt(i.useDecoder._baseState.parent===null),i.useDecoder=i.useDecoder._baseState.children[0],i.implicit!==i.useDecoder._baseState.implicit&&(i.useDecoder=i.useDecoder.clone(),i.useDecoder._baseState.implicit=i.implicit),i.useDecoder};We.prototype._decodeChoice=function(t,r){var i=this._baseState,n=null,a=!1;return Object.keys(i.choice).some(function(o){var s=t.save(),y=i.choice[o];try{var _=y._decode(t,r);if(t.isError(_))return!1;n={type:o,value:_},a=!0}catch{return t.restore(s),!1}return!0},this),a?n:t.error("Choice not matched")};We.prototype._createEncoderBuffer=function(t){return new ek(t,this.reporter)};We.prototype._encode=function(t,r,i){var n=this._baseState;if(!(n.default!==null&&n.default===t)){var a=this._encodeValue(t,r,i);if(a!==void 0&&!this._skipDefault(a,r,i))return a}};We.prototype._encodeValue=function(t,r,i){var n=this._baseState;if(n.parent===null)return n.children[0]._encode(t,r||new QR);var y=null;if(this.reporter=r,n.optional&&t===void 0)if(n.default!==null)t=n.default;else return;var a=null,o=!1;if(n.any)y=this._createEncoderBuffer(t);else if(n.choice)y=this._encodeChoice(t,r);else if(n.contains)a=this._getUse(n.contains,i)._encode(t,r),o=!0;else if(n.children)a=n.children.map(function(B){if(B._baseState.tag==="null_")return B._encode(null,r,t);if(B._baseState.key===null)return r.error("Child should have a key");var k=r.enterKey(B._baseState.key);if(typeof t!="object")return r.error("Child expected, but input is not object");var T=B._encode(t[B._baseState.key],r,t);return r.leaveKey(k),T},this).filter(function(B){return B}),a=this._createEncoderBuffer(a);else if(n.tag==="seqof"||n.tag==="setof"){if(!(n.args&&n.args.length===1))return r.error("Too many args for : "+n.tag);if(!Array.isArray(t))return r.error("seqof/setof, but data is not Array");var s=this.clone();s._baseState.implicit=null,a=this._createEncoderBuffer(t.map(function(B){var k=this._baseState;return this._getUse(k.args[0],t)._encode(B,r)},s))}else n.use!==null?y=this._getUse(n.use,i)._encode(t,r):(a=this._encodePrimitive(n.tag,t),o=!0);var y;if(!n.any&&n.choice===null){var _=n.implicit!==null?n.implicit:n.tag,x=n.implicit===null?"universal":"context";_===null?n.use===null&&r.error("Tag could be omitted only for .use()"):n.use===null&&(y=this._encodeComposite(_,o,x,a))}return n.explicit!==null&&(y=this._encodeComposite(n.explicit,!1,"context",y)),y};We.prototype._encodeChoice=function(t,r){var i=this._baseState,n=i.choice[t.type];return n||bt(!1,t.type+" not found in "+JSON.stringify(Object.keys(i.choice))),n._encode(t.value,r)};We.prototype._encodePrimitive=function(t,r){var i=this._baseState;if(/str$/.test(t))return this._encodeStr(r,t);if(t==="objid"&&i.args)return this._encodeObjid(r,i.reverseArgs[0],i.args[1]);if(t==="objid")return this._encodeObjid(r,null,null);if(t==="gentime"||t==="utctime")return this._encodeTime(r,t);if(t==="null_")return this._encodeNull();if(t==="int"||t==="enum")return this._encodeInt(r,i.args&&i.reverseArgs[0]);if(t==="bool")return this._encodeBool(r);if(t==="objDesc")return this._encodeStr(r,t);throw new Error("Unsupported tag: "+t)};We.prototype._isNumstr=function(t){return/^[0-9 ]*$/.test(t)};We.prototype._isPrintstr=function(t){return/^[A-Za-z0-9 '\(\)\+,\-\.\/:=\?]*$/.test(t)}});var ua=R(J_=>{m();var ru=J_;ru.Reporter=G_().Reporter;ru.DecoderBuffer=Oc().DecoderBuffer;ru.EncoderBuffer=Oc().EncoderBuffer;ru.Node=Y_()});var Q_=R(on=>{m();var X_=qc();on.tagClass={0:"universal",1:"application",2:"context",3:"private"};on.tagClassByName=X_._reverse(on.tagClass);on.tag={0:"end",1:"bool",2:"int",3:"bitstr",4:"octstr",5:"null_",6:"objid",7:"objDesc",8:"external",9:"real",10:"enum",11:"embed",12:"utf8str",13:"relativeOid",16:"seq",17:"set",18:"numstr",19:"printstr",20:"t61str",21:"videostr",22:"ia5str",23:"utctime",24:"gentime",25:"graphstr",26:"iso646str",27:"genstr",28:"unistr",29:"charstr",30:"bmpstr"};on.tagByName=X_._reverse(on.tag)});var qc=R(tm=>{m();var em=tm;em._reverse=function(t){var r={};return Object.keys(t).forEach(function(i){(i|0)==i&&(i=i|0);var n=t[i];r[n]=i}),r};em.der=Q_()});var Pc=R((iC,am)=>{m();var ak=Ke(),Dc=fa(),iu=Dc.base,ok=Dc.bignum,rm=Dc.constants.der;function im(e){this.enc="der",this.name=e.name,this.entity=e,this.tree=new Bt,this.tree._init(e.body)}am.exports=im;im.prototype.decode=function(t,r){return t instanceof iu.DecoderBuffer||(t=new iu.DecoderBuffer(t,r)),this.tree._decode(t,r)};function Bt(e){iu.Node.call(this,"der",e)}ak(Bt,iu.Node);Bt.prototype._peekTag=function(t,r,i){if(t.isEmpty())return!1;var n=t.save(),a=Nc(t,'Failed to peek tag: "'+r+'"');return t.isError(a)?a:(t.restore(n),a.tag===r||a.tagStr===r||a.tagStr+"of"===r||i)};Bt.prototype._decodeTag=function(t,r,i){var n=Nc(t,'Failed to decode tag of "'+r+'"');if(t.isError(n))return n;var a=nm(t,n.primitive,'Failed to get length of "'+r+'"');if(t.isError(a))return a;if(!i&&n.tag!==r&&n.tagStr!==r&&n.tagStr+"of"!==r)return t.error('Failed to match tag: "'+r+'"');if(n.primitive||a!==null)return t.skip(a,'Failed to match body of: "'+r+'"');var o=t.save(),s=this._skipUntilEnd(t,'Failed to skip indefinite length body: "'+this.tag+'"');return t.isError(s)?s:(a=t.offset-o.offset,t.restore(o),t.skip(a,'Failed to match body of: "'+r+'"'))};Bt.prototype._skipUntilEnd=function(t,r){for(;;){var i=Nc(t,r);if(t.isError(i))return i;var n=nm(t,i.primitive,r);if(t.isError(n))return n;var a;if(i.primitive||n!==null?a=t.skip(n):a=this._skipUntilEnd(t,r),t.isError(a))return a;if(i.tagStr==="end")break}};Bt.prototype._decodeList=function(t,r,i,n){for(var a=[];!t.isEmpty();){var o=this._peekTag(t,"end");if(t.isError(o))return o;var s=i.decode(t,"der",n);if(t.isError(s)&&o)break;a.push(s)}return a};Bt.prototype._decodeStr=function(t,r){if(r==="bitstr"){var i=t.readUInt8();return t.isError(i)?i:{unused:i,data:t.raw()}}else if(r==="bmpstr"){var n=t.raw();if(n.length%2===1)return t.error("Decoding of string type: bmpstr length mismatch");for(var a="",o=0;o<n.length/2;o++)a+=String.fromCharCode(n.readUInt16BE(o*2));return a}else if(r==="numstr"){var s=t.raw().toString("ascii");return this._isNumstr(s)?s:t.error("Decoding of string type: numstr unsupported characters")}else{if(r==="octstr")return t.raw();if(r==="objDesc")return t.raw();if(r==="printstr"){var y=t.raw().toString("ascii");return this._isPrintstr(y)?y:t.error("Decoding of string type: printstr unsupported characters")}else return/str$/.test(r)?t.raw().toString():t.error("Decoding of string type: "+r+" unsupported")}};Bt.prototype._decodeObjid=function(t,r,i){for(var n,a=[],o=0;!t.isEmpty();){var s=t.readUInt8();o<<=7,o|=s&127,(s&128)===0&&(a.push(o),o=0)}s&128&&a.push(o);var y=a[0]/40|0,_=a[0]%40;if(i?n=a:n=[y,_].concat(a.slice(1)),r){var x=r[n.join(" ")];x===void 0&&(x=r[n.join(".")]),x!==void 0&&(n=x)}return n};Bt.prototype._decodeTime=function(t,r){var i=t.raw().toString();if(r==="gentime")var n=i.slice(0,4)|0,a=i.slice(4,6)|0,o=i.slice(6,8)|0,s=i.slice(8,10)|0,y=i.slice(10,12)|0,_=i.slice(12,14)|0;else if(r==="utctime"){var n=i.slice(0,2)|0,a=i.slice(2,4)|0,o=i.slice(4,6)|0,s=i.slice(6,8)|0,y=i.slice(8,10)|0,_=i.slice(10,12)|0;n<70?n=2e3+n:n=1900+n}else return t.error("Decoding "+r+" time is not supported yet");return Date.UTC(n,a-1,o,s,y,_,0)};Bt.prototype._decodeNull=function(t){return null};Bt.prototype._decodeBool=function(t){var r=t.readUInt8();return t.isError(r)?r:r!==0};Bt.prototype._decodeInt=function(t,r){var i=t.raw(),n=new ok(i);return r&&(n=r[n.toString(10)]||n),n};Bt.prototype._use=function(t,r){return typeof t=="function"&&(t=t(r)),t._getDecoder("der").tree};function Nc(e,t){var r=e.readUInt8(t);if(e.isError(r))return r;var i=rm.tagClass[r>>6],n=(r&32)===0;if((r&31)===31){var a=r;for(r=0;(a&128)===128;){if(a=e.readUInt8(t),e.isError(a))return a;r<<=7,r|=a&127}}else r&=31;var o=rm.tag[r];return{cls:i,primitive:n,tag:r,tagStr:o}}function nm(e,t,r){var i=e.readUInt8(r);if(e.isError(i))return i;if(!t&&i===128)return null;if((i&128)===0)return i;var n=i&127;if(n>4)return e.error("length octect is too long");i=0;for(var a=0;a<n;a++){i<<=8;var o=e.readUInt8(r);if(e.isError(o))return o;i|=o}return i}});var fm=R((aC,om)=>{m();var fk=Ke(),sk=st().Buffer,Lc=Pc();function Cc(e){Lc.call(this,e),this.enc="pem"}fk(Cc,Lc);om.exports=Cc;Cc.prototype.decode=function(t,r){for(var i=t.toString().split(/[\r\n]+/g),n=r.label.toUpperCase(),a=/^-----(BEGIN|END) ([^-]+)-----$/,o=-1,s=-1,y=0;y<i.length;y++){var _=i[y].match(a);if(_!==null&&_[2]===n)if(o===-1){if(_[1]!=="BEGIN")break;o=y}else{if(_[1]!=="END")break;s=y;break}}if(o===-1||s===-1)throw new Error("PEM section not found for: "+n);var x=i.slice(o+1,s).join("");x.replace(/[^a-z0-9\+\/=]+/gi,"");var B=new sk(x,"base64");return Lc.prototype.decode.call(this,B,r)}});var lm=R(um=>{m();var sm=um;sm.der=Pc();sm.pem=fm()});var Fc=R((uC,pm)=>{m();var uk=Ke(),Fr=st().Buffer,hm=fa(),cm=hm.base,Uc=hm.constants.der;function dm(e){this.enc="der",this.name=e.name,this.entity=e,this.tree=new Xt,this.tree._init(e.body)}pm.exports=dm;dm.prototype.encode=function(t,r){return this.tree._encode(t,r).join()};function Xt(e){cm.Node.call(this,"der",e)}uk(Xt,cm.Node);Xt.prototype._encodeComposite=function(t,r,i,n){var a=lk(t,r,i,this.reporter);if(n.length<128){var y=new Fr(2);return y[0]=a,y[1]=n.length,this._createEncoderBuffer([y,n])}for(var o=1,s=n.length;s>=256;s>>=8)o++;var y=new Fr(2+o);y[0]=a,y[1]=128|o;for(var s=1+o,_=n.length;_>0;s--,_>>=8)y[s]=_&255;return this._createEncoderBuffer([y,n])};Xt.prototype._encodeStr=function(t,r){if(r==="bitstr")return this._createEncoderBuffer([t.unused|0,t.data]);if(r==="bmpstr"){for(var i=new Fr(t.length*2),n=0;n<t.length;n++)i.writeUInt16BE(t.charCodeAt(n),n*2);return this._createEncoderBuffer(i)}else return r==="numstr"?this._isNumstr(t)?this._createEncoderBuffer(t):this.reporter.error("Encoding of string type: numstr supports only digits and space"):r==="printstr"?this._isPrintstr(t)?this._createEncoderBuffer(t):this.reporter.error("Encoding of string type: printstr supports only latin upper and lower case letters, digits, space, apostrophe, left and rigth parenthesis, plus sign, comma, hyphen, dot, slash, colon, equal sign, question mark"):/str$/.test(r)?this._createEncoderBuffer(t):r==="objDesc"?this._createEncoderBuffer(t):this.reporter.error("Encoding of string type: "+r+" unsupported")};Xt.prototype._encodeObjid=function(t,r,i){if(typeof t=="string"){if(!r)return this.reporter.error("string objid given, but no values map found");if(!r.hasOwnProperty(t))return this.reporter.error("objid not found in values map");t=r[t].split(/[\s\.]+/g);for(var n=0;n<t.length;n++)t[n]|=0}else if(Array.isArray(t)){t=t.slice();for(var n=0;n<t.length;n++)t[n]|=0}if(!Array.isArray(t))return this.reporter.error("objid() should be either array or string, got: "+JSON.stringify(t));if(!i){if(t[1]>=40)return this.reporter.error("Second objid identifier OOB");t.splice(0,2,t[0]*40+t[1])}for(var a=0,n=0;n<t.length;n++){var o=t[n];for(a++;o>=128;o>>=7)a++}for(var s=new Fr(a),y=s.length-1,n=t.length-1;n>=0;n--){var o=t[n];for(s[y--]=o&127;(o>>=7)>0;)s[y--]=128|o&127}return this._createEncoderBuffer(s)};function Ut(e){return e<10?"0"+e:e}Xt.prototype._encodeTime=function(t,r){var i,n=new Date(t);return r==="gentime"?i=[Ut(n.getFullYear()),Ut(n.getUTCMonth()+1),Ut(n.getUTCDate()),Ut(n.getUTCHours()),Ut(n.getUTCMinutes()),Ut(n.getUTCSeconds()),"Z"].join(""):r==="utctime"?i=[Ut(n.getFullYear()%100),Ut(n.getUTCMonth()+1),Ut(n.getUTCDate()),Ut(n.getUTCHours()),Ut(n.getUTCMinutes()),Ut(n.getUTCSeconds()),"Z"].join(""):this.reporter.error("Encoding "+r+" time is not supported yet"),this._encodeStr(i,"octstr")};Xt.prototype._encodeNull=function(){return this._createEncoderBuffer("")};Xt.prototype._encodeInt=function(t,r){if(typeof t=="string"){if(!r)return this.reporter.error("String int or enum given, but no values map");if(!r.hasOwnProperty(t))return this.reporter.error("Values map doesn't contain: "+JSON.stringify(t));t=r[t]}if(typeof t!="number"&&!Fr.isBuffer(t)){var i=t.toArray();!t.sign&&i[0]&128&&i.unshift(0),t=new Fr(i)}if(Fr.isBuffer(t)){var n=t.length;t.length===0&&n++;var o=new Fr(n);return t.copy(o),t.length===0&&(o[0]=0),this._createEncoderBuffer(o)}if(t<128)return this._createEncoderBuffer(t);if(t<256)return this._createEncoderBuffer([0,t]);for(var n=1,a=t;a>=256;a>>=8)n++;for(var o=new Array(n),a=o.length-1;a>=0;a--)o[a]=t&255,t>>=8;return o[0]&128&&o.unshift(0),this._createEncoderBuffer(new Fr(o))};Xt.prototype._encodeBool=function(t){return this._createEncoderBuffer(t?255:0)};Xt.prototype._use=function(t,r){return typeof t=="function"&&(t=t(r)),t._getEncoder("der").tree};Xt.prototype._skipDefault=function(t,r,i){var n=this._baseState,a;if(n.default===null)return!1;var o=t.join();if(n.defaultBuffer===void 0&&(n.defaultBuffer=this._encodeValue(n.default,r,i).join()),o.length!==n.defaultBuffer.length)return!1;for(a=0;a<o.length;a++)if(o[a]!==n.defaultBuffer[a])return!1;return!0};function lk(e,t,r,i){var n;if(e==="seqof"?e="seq":e==="setof"&&(e="set"),Uc.tagByName.hasOwnProperty(e))n=Uc.tagByName[e];else if(typeof e=="number"&&(e|0)===e)n=e;else return i.error("Unknown tag: "+e);return n>=31?i.error("Multi-octet tag encoding unsupported"):(t||(n|=32),n|=Uc.tagClassByName[r||"universal"]<<6,n)}});var ym=R((hC,vm)=>{m();var hk=Ke(),jc=Fc();function zc(e){jc.call(this,e),this.enc="pem"}hk(zc,jc);vm.exports=zc;zc.prototype.encode=function(t,r){for(var i=jc.prototype.encode.call(this,t),n=i.toString("base64"),a=["-----BEGIN "+r.label+"-----"],o=0;o<n.length;o+=64)a.push(n.slice(o,o+64));return a.push("-----END "+r.label+"-----"),a.join(`
14
+ `)}});var _m=R(bm=>{m();var gm=bm;gm.der=Fc();gm.pem=ym()});var fa=R(mm=>{m();var la=mm;la.bignum=ei();la.define=W_().define;la.base=ua();la.constants=qc();la.decoders=lm();la.encoders=_m()});var Sm=R((gC,Em)=>{"use strict";m();var Qt=fa(),wm=Qt.define("Time",function(){this.choice({utcTime:this.utctime(),generalTime:this.gentime()})}),ck=Qt.define("AttributeTypeValue",function(){this.seq().obj(this.key("type").objid(),this.key("value").any())}),Zc=Qt.define("AlgorithmIdentifier",function(){this.seq().obj(this.key("algorithm").objid(),this.key("parameters").optional(),this.key("curve").objid().optional())}),dk=Qt.define("SubjectPublicKeyInfo",function(){this.seq().obj(this.key("algorithm").use(Zc),this.key("subjectPublicKey").bitstr())}),pk=Qt.define("RelativeDistinguishedName",function(){this.setof(ck)}),vk=Qt.define("RDNSequence",function(){this.seqof(pk)}),xm=Qt.define("Name",function(){this.choice({rdnSequence:this.use(vk)})}),yk=Qt.define("Validity",function(){this.seq().obj(this.key("notBefore").use(wm),this.key("notAfter").use(wm))}),gk=Qt.define("Extension",function(){this.seq().obj(this.key("extnID").objid(),this.key("critical").bool().def(!1),this.key("extnValue").octstr())}),bk=Qt.define("TBSCertificate",function(){this.seq().obj(this.key("version").explicit(0).int().optional(),this.key("serialNumber").int(),this.key("signature").use(Zc),this.key("issuer").use(xm),this.key("validity").use(yk),this.key("subject").use(xm),this.key("subjectPublicKeyInfo").use(dk),this.key("issuerUniqueID").implicit(1).bitstr().optional(),this.key("subjectUniqueID").implicit(2).bitstr().optional(),this.key("extensions").explicit(3).seqof(gk).optional())}),_k=Qt.define("X509Certificate",function(){this.seq().obj(this.key("tbsCertificate").use(bk),this.key("signatureAlgorithm").use(Zc),this.key("signatureValue").bitstr())});Em.exports=_k});var Am=R(tr=>{"use strict";m();var er=fa();tr.certificate=Sm();var mk=er.define("RSAPrivateKey",function(){this.seq().obj(this.key("version").int(),this.key("modulus").int(),this.key("publicExponent").int(),this.key("privateExponent").int(),this.key("prime1").int(),this.key("prime2").int(),this.key("exponent1").int(),this.key("exponent2").int(),this.key("coefficient").int())});tr.RSAPrivateKey=mk;var wk=er.define("RSAPublicKey",function(){this.seq().obj(this.key("modulus").int(),this.key("publicExponent").int())});tr.RSAPublicKey=wk;var Mm=er.define("AlgorithmIdentifier",function(){this.seq().obj(this.key("algorithm").objid(),this.key("none").null_().optional(),this.key("curve").objid().optional(),this.key("params").seq().obj(this.key("p").int(),this.key("q").int(),this.key("g").int()).optional())}),xk=er.define("SubjectPublicKeyInfo",function(){this.seq().obj(this.key("algorithm").use(Mm),this.key("subjectPublicKey").bitstr())});tr.PublicKey=xk;var Ek=er.define("PrivateKeyInfo",function(){this.seq().obj(this.key("version").int(),this.key("algorithm").use(Mm),this.key("subjectPrivateKey").octstr())});tr.PrivateKey=Ek;var Sk=er.define("EncryptedPrivateKeyInfo",function(){this.seq().obj(this.key("algorithm").seq().obj(this.key("id").objid(),this.key("decrypt").seq().obj(this.key("kde").seq().obj(this.key("id").objid(),this.key("kdeparams").seq().obj(this.key("salt").octstr(),this.key("iters").int())),this.key("cipher").seq().obj(this.key("algo").objid(),this.key("iv").octstr()))),this.key("subjectPrivateKey").octstr())});tr.EncryptedPrivateKey=Sk;var Mk=er.define("DSAPrivateKey",function(){this.seq().obj(this.key("version").int(),this.key("p").int(),this.key("q").int(),this.key("g").int(),this.key("pub_key").int(),this.key("priv_key").int())});tr.DSAPrivateKey=Mk;tr.DSAparam=er.define("DSAparam",function(){this.int()});var Ak=er.define("ECParameters",function(){this.choice({namedCurve:this.objid()})}),Bk=er.define("ECPrivateKey",function(){this.seq().obj(this.key("version").int(),this.key("privateKey").octstr(),this.key("parameters").optional().explicit(0).use(Ak),this.key("publicKey").optional().explicit(1).bitstr())});tr.ECPrivateKey=Bk;tr.signature=er.define("signature",function(){this.seq().obj(this.key("r").int(),this.key("s").int())})});var Bm=R((wC,Rk)=>{Rk.exports={"2.16.840.1.101.3.4.1.1":"aes-128-ecb","2.16.840.1.101.3.4.1.2":"aes-128-cbc","2.16.840.1.101.3.4.1.3":"aes-128-ofb","2.16.840.1.101.3.4.1.4":"aes-128-cfb","2.16.840.1.101.3.4.1.21":"aes-192-ecb","2.16.840.1.101.3.4.1.22":"aes-192-cbc","2.16.840.1.101.3.4.1.23":"aes-192-ofb","2.16.840.1.101.3.4.1.24":"aes-192-cfb","2.16.840.1.101.3.4.1.41":"aes-256-ecb","2.16.840.1.101.3.4.1.42":"aes-256-cbc","2.16.840.1.101.3.4.1.43":"aes-256-ofb","2.16.840.1.101.3.4.1.44":"aes-256-cfb"}});var km=R((xC,Rm)=>{"use strict";m();var kk=/Proc-Type: 4,ENCRYPTED[\n\r]+DEK-Info: AES-((?:128)|(?:192)|(?:256))-CBC,([0-9A-H]+)[\n\r]+([0-9A-z\n\r+/=]+)[\n\r]+/m,Tk=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----/m,Ik=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----([0-9A-z\n\r+/=]+)-----END \1-----$/m,Ok=Ro(),qk=Ys(),nu=De().Buffer;Rm.exports=function(e,t){var r=e.toString(),i=r.match(kk),n;if(i){var o="aes"+i[1],s=nu.from(i[2],"hex"),y=nu.from(i[3].replace(/[\r\n]/g,""),"base64"),_=Ok(t,s.slice(0,8),parseInt(i[1],10)).key,x=[],B=qk.createDecipheriv(o,_,s);x.push(B.update(y)),x.push(B.final()),n=nu.concat(x)}else{var a=r.match(Ik);n=nu.from(a[2].replace(/[\r\n]/g,""),"base64")}var k=r.match(Tk)[1];return{tag:k,data:n}}});var Wc=R((SC,Im)=>{"use strict";m();var St=Am(),Dk=Bm(),Nk=km(),Pk=Ys(),Lk=ec().pbkdf2Sync,Hc=De().Buffer;function Ck(e,t){var r=e.algorithm.decrypt.kde.kdeparams.salt,i=parseInt(e.algorithm.decrypt.kde.kdeparams.iters.toString(),10),n=Dk[e.algorithm.decrypt.cipher.algo.join(".")],a=e.algorithm.decrypt.cipher.iv,o=e.subjectPrivateKey,s=parseInt(n.split("-")[1],10)/8,y=Lk(t,r,i,s,"sha1"),_=Pk.createDecipheriv(n,y,a),x=[];return x.push(_.update(o)),x.push(_.final()),Hc.concat(x)}function Tm(e){var t;typeof e=="object"&&!Hc.isBuffer(e)&&(t=e.passphrase,e=e.key),typeof e=="string"&&(e=Hc.from(e));var r=Nk(e,t),i=r.tag,n=r.data,a,o;switch(i){case"CERTIFICATE":o=St.certificate.decode(n,"der").tbsCertificate.subjectPublicKeyInfo;case"PUBLIC KEY":switch(o||(o=St.PublicKey.decode(n,"der")),a=o.algorithm.algorithm.join("."),a){case"1.2.840.113549.1.1.1":return St.RSAPublicKey.decode(o.subjectPublicKey.data,"der");case"1.2.840.10045.2.1":return o.subjectPrivateKey=o.subjectPublicKey,{type:"ec",data:o};case"1.2.840.10040.4.1":return o.algorithm.params.pub_key=St.DSAparam.decode(o.subjectPublicKey.data,"der"),{type:"dsa",data:o.algorithm.params};default:throw new Error("unknown key id "+a)}case"ENCRYPTED PRIVATE KEY":n=St.EncryptedPrivateKey.decode(n,"der"),n=Ck(n,t);case"PRIVATE KEY":switch(o=St.PrivateKey.decode(n,"der"),a=o.algorithm.algorithm.join("."),a){case"1.2.840.113549.1.1.1":return St.RSAPrivateKey.decode(o.subjectPrivateKey,"der");case"1.2.840.10045.2.1":return{curve:o.algorithm.curve,privateKey:St.ECPrivateKey.decode(o.subjectPrivateKey,"der").privateKey};case"1.2.840.10040.4.1":return o.algorithm.params.priv_key=St.DSAparam.decode(o.subjectPrivateKey,"der"),{type:"dsa",params:o.algorithm.params};default:throw new Error("unknown key id "+a)}case"RSA PUBLIC KEY":return St.RSAPublicKey.decode(n,"der");case"RSA PRIVATE KEY":return St.RSAPrivateKey.decode(n,"der");case"DSA PRIVATE KEY":return{type:"dsa",params:St.DSAPrivateKey.decode(n,"der")};case"EC PRIVATE KEY":return n=St.ECPrivateKey.decode(n,"der"),{curve:n.parameters.value,privateKey:n.privateKey};default:throw new Error("unknown key type "+i)}}Tm.signature=St.signature;Im.exports=Tm});var Gc=R((AC,Om)=>{m();var Uk=mo(),Kc=De().Buffer;Om.exports=function(e,t){for(var r=Kc.alloc(0),i=0,n;r.length<t;)n=Fk(i++),r=Kc.concat([r,Uk("sha1").update(e).update(n).digest()]);return r.slice(0,t)};function Fk(e){var t=Kc.allocUnsafe(4);return t.writeUInt32BE(e,0),t}});var Vc=R((RC,qm)=>{m();qm.exports=function(t,r){for(var i=t.length,n=-1;++n<i;)t[n]^=r[n];return t}});var $c=R((TC,Nm)=>{m();var Dm=ei(),jk=De().Buffer;function zk(e,t){return jk.from(e.toRed(Dm.mont(t.modulus)).redPow(new Dm(t.publicExponent)).fromRed().toArray())}Nm.exports=zk});var Lm=R((Pm,Yc)=>{m();(function(e,t){"use strict";function r(d,f){if(!d)throw new Error(f||"Assertion failed")}function i(d,f){d.super_=f;var l=function(){};l.prototype=f.prototype,d.prototype=new l,d.prototype.constructor=d}function n(d,f,l){if(n.isBN(d))return d;this.negative=0,this.words=null,this.length=0,this.red=null,d!==null&&((f==="le"||f==="be")&&(l=f,f=10),this._init(d||0,f||10,l||"be"))}typeof e=="object"?e.exports=n:t.BN=n,n.BN=n,n.wordSize=26;var a;try{typeof window<"u"&&typeof window.Buffer<"u"?a=window.Buffer:a=st().Buffer}catch{}n.isBN=function(f){return f instanceof n?!0:f!==null&&typeof f=="object"&&f.constructor.wordSize===n.wordSize&&Array.isArray(f.words)},n.max=function(f,l){return f.cmp(l)>0?f:l},n.min=function(f,l){return f.cmp(l)<0?f:l},n.prototype._init=function(f,l,v){if(typeof f=="number")return this._initNumber(f,l,v);if(typeof f=="object")return this._initArray(f,l,v);l==="hex"&&(l=16),r(l===(l|0)&&l>=2&&l<=36),f=f.toString().replace(/\s+/g,"");var g=0;f[0]==="-"&&(g++,this.negative=1),g<f.length&&(l===16?this._parseHex(f,g,v):(this._parseBase(f,l,g),v==="le"&&this._initArray(this.toArray(),l,v)))},n.prototype._initNumber=function(f,l,v){f<0&&(this.negative=1,f=-f),f<67108864?(this.words=[f&67108863],this.length=1):f<4503599627370496?(this.words=[f&67108863,f/67108864&67108863],this.length=2):(r(f<9007199254740992),this.words=[f&67108863,f/67108864&67108863,1],this.length=3),v==="le"&&this._initArray(this.toArray(),l,v)},n.prototype._initArray=function(f,l,v){if(r(typeof f.length=="number"),f.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(f.length/3),this.words=new Array(this.length);for(var g=0;g<this.length;g++)this.words[g]=0;var p,u,w=0;if(v==="be")for(g=f.length-1,p=0;g>=0;g-=3)u=f[g]|f[g-1]<<8|f[g-2]<<16,this.words[p]|=u<<w&67108863,this.words[p+1]=u>>>26-w&67108863,w+=24,w>=26&&(w-=26,p++);else if(v==="le")for(g=0,p=0;g<f.length;g+=3)u=f[g]|f[g+1]<<8|f[g+2]<<16,this.words[p]|=u<<w&67108863,this.words[p+1]=u>>>26-w&67108863,w+=24,w>=26&&(w-=26,p++);return this._strip()};function o(d,f){var l=d.charCodeAt(f);if(l>=48&&l<=57)return l-48;if(l>=65&&l<=70)return l-55;if(l>=97&&l<=102)return l-87;r(!1,"Invalid character in "+d)}function s(d,f,l){var v=o(d,l);return l-1>=f&&(v|=o(d,l-1)<<4),v}n.prototype._parseHex=function(f,l,v){this.length=Math.ceil((f.length-l)/6),this.words=new Array(this.length);for(var g=0;g<this.length;g++)this.words[g]=0;var p=0,u=0,w;if(v==="be")for(g=f.length-1;g>=l;g-=2)w=s(f,l,g)<<p,this.words[u]|=w&67108863,p>=18?(p-=18,u+=1,this.words[u]|=w>>>26):p+=8;else{var E=f.length-l;for(g=E%2===0?l+1:l;g<f.length;g+=2)w=s(f,l,g)<<p,this.words[u]|=w&67108863,p>=18?(p-=18,u+=1,this.words[u]|=w>>>26):p+=8}this._strip()};function y(d,f,l,v){for(var g=0,p=0,u=Math.min(d.length,l),w=f;w<u;w++){var E=d.charCodeAt(w)-48;g*=v,E>=49?p=E-49+10:E>=17?p=E-17+10:p=E,r(E>=0&&p<v,"Invalid character"),g+=p}return g}n.prototype._parseBase=function(f,l,v){this.words=[0],this.length=1;for(var g=0,p=1;p<=67108863;p*=l)g++;g--,p=p/l|0;for(var u=f.length-v,w=u%g,E=Math.min(u,u-w)+v,c=0,S=v;S<E;S+=g)c=y(f,S,S+g,l),this.imuln(p),this.words[0]+c<67108864?this.words[0]+=c:this._iaddn(c);if(w!==0){var P=1;for(c=y(f,S,f.length,l),S=0;S<w;S++)P*=l;this.imuln(P),this.words[0]+c<67108864?this.words[0]+=c:this._iaddn(c)}this._strip()},n.prototype.copy=function(f){f.words=new Array(this.length);for(var l=0;l<this.length;l++)f.words[l]=this.words[l];f.length=this.length,f.negative=this.negative,f.red=this.red};function _(d,f){d.words=f.words,d.length=f.length,d.negative=f.negative,d.red=f.red}if(n.prototype._move=function(f){_(f,this)},n.prototype.clone=function(){var f=new n(null);return this.copy(f),f},n.prototype._expand=function(f){for(;this.length<f;)this.words[this.length++]=0;return this},n.prototype._strip=function(){for(;this.length>1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},n.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},typeof Symbol<"u"&&typeof Symbol.for=="function")try{n.prototype[Symbol.for("nodejs.util.inspect.custom")]=x}catch{n.prototype.inspect=x}else n.prototype.inspect=x;function x(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"}var B=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],k=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],T=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];n.prototype.toString=function(f,l){f=f||10,l=l|0||1;var v;if(f===16||f==="hex"){v="";for(var g=0,p=0,u=0;u<this.length;u++){var w=this.words[u],E=((w<<g|p)&16777215).toString(16);p=w>>>24-g&16777215,g+=2,g>=26&&(g-=26,u--),p!==0||u!==this.length-1?v=B[6-E.length]+E+v:v=E+v}for(p!==0&&(v=p.toString(16)+v);v.length%l!==0;)v="0"+v;return this.negative!==0&&(v="-"+v),v}if(f===(f|0)&&f>=2&&f<=36){var c=k[f],S=T[f];v="";var P=this.clone();for(P.negative=0;!P.isZero();){var C=P.modrn(S).toString(f);P=P.idivn(S),P.isZero()?v=C+v:v=B[c-C.length]+C+v}for(this.isZero()&&(v="0"+v);v.length%l!==0;)v="0"+v;return this.negative!==0&&(v="-"+v),v}r(!1,"Base should be between 2 and 36")},n.prototype.toNumber=function(){var f=this.words[0];return this.length===2?f+=this.words[1]*67108864:this.length===3&&this.words[2]===1?f+=4503599627370496+this.words[1]*67108864:this.length>2&&r(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-f:f},n.prototype.toJSON=function(){return this.toString(16,2)},a&&(n.prototype.toBuffer=function(f,l){return this.toArrayLike(a,f,l)}),n.prototype.toArray=function(f,l){return this.toArrayLike(Array,f,l)};var O=function(f,l){return f.allocUnsafe?f.allocUnsafe(l):new f(l)};n.prototype.toArrayLike=function(f,l,v){this._strip();var g=this.byteLength(),p=v||Math.max(1,g);r(g<=p,"byte array longer than desired length"),r(p>0,"Requested array length <= 0");var u=O(f,p),w=l==="le"?"LE":"BE";return this["_toArrayLike"+w](u,g),u},n.prototype._toArrayLikeLE=function(f,l){for(var v=0,g=0,p=0,u=0;p<this.length;p++){var w=this.words[p]<<u|g;f[v++]=w&255,v<f.length&&(f[v++]=w>>8&255),v<f.length&&(f[v++]=w>>16&255),u===6?(v<f.length&&(f[v++]=w>>24&255),g=0,u=0):(g=w>>>24,u+=2)}if(v<f.length)for(f[v++]=g;v<f.length;)f[v++]=0},n.prototype._toArrayLikeBE=function(f,l){for(var v=f.length-1,g=0,p=0,u=0;p<this.length;p++){var w=this.words[p]<<u|g;f[v--]=w&255,v>=0&&(f[v--]=w>>8&255),v>=0&&(f[v--]=w>>16&255),u===6?(v>=0&&(f[v--]=w>>24&255),g=0,u=0):(g=w>>>24,u+=2)}if(v>=0)for(f[v--]=g;v>=0;)f[v--]=0},Math.clz32?n.prototype._countBits=function(f){return 32-Math.clz32(f)}:n.prototype._countBits=function(f){var l=f,v=0;return l>=4096&&(v+=13,l>>>=13),l>=64&&(v+=7,l>>>=7),l>=8&&(v+=4,l>>>=4),l>=2&&(v+=2,l>>>=2),v+l},n.prototype._zeroBits=function(f){if(f===0)return 26;var l=f,v=0;return(l&8191)===0&&(v+=13,l>>>=13),(l&127)===0&&(v+=7,l>>>=7),(l&15)===0&&(v+=4,l>>>=4),(l&3)===0&&(v+=2,l>>>=2),(l&1)===0&&v++,v},n.prototype.bitLength=function(){var f=this.words[this.length-1],l=this._countBits(f);return(this.length-1)*26+l};function D(d){for(var f=new Array(d.bitLength()),l=0;l<f.length;l++){var v=l/26|0,g=l%26;f[l]=d.words[v]>>>g&1}return f}n.prototype.zeroBits=function(){if(this.isZero())return 0;for(var f=0,l=0;l<this.length;l++){var v=this._zeroBits(this.words[l]);if(f+=v,v!==26)break}return f},n.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},n.prototype.toTwos=function(f){return this.negative!==0?this.abs().inotn(f).iaddn(1):this.clone()},n.prototype.fromTwos=function(f){return this.testn(f-1)?this.notn(f).iaddn(1).ineg():this.clone()},n.prototype.isNeg=function(){return this.negative!==0},n.prototype.neg=function(){return this.clone().ineg()},n.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},n.prototype.iuor=function(f){for(;this.length<f.length;)this.words[this.length++]=0;for(var l=0;l<f.length;l++)this.words[l]=this.words[l]|f.words[l];return this._strip()},n.prototype.ior=function(f){return r((this.negative|f.negative)===0),this.iuor(f)},n.prototype.or=function(f){return this.length>f.length?this.clone().ior(f):f.clone().ior(this)},n.prototype.uor=function(f){return this.length>f.length?this.clone().iuor(f):f.clone().iuor(this)},n.prototype.iuand=function(f){var l;this.length>f.length?l=f:l=this;for(var v=0;v<l.length;v++)this.words[v]=this.words[v]&f.words[v];return this.length=l.length,this._strip()},n.prototype.iand=function(f){return r((this.negative|f.negative)===0),this.iuand(f)},n.prototype.and=function(f){return this.length>f.length?this.clone().iand(f):f.clone().iand(this)},n.prototype.uand=function(f){return this.length>f.length?this.clone().iuand(f):f.clone().iuand(this)},n.prototype.iuxor=function(f){var l,v;this.length>f.length?(l=this,v=f):(l=f,v=this);for(var g=0;g<v.length;g++)this.words[g]=l.words[g]^v.words[g];if(this!==l)for(;g<l.length;g++)this.words[g]=l.words[g];return this.length=l.length,this._strip()},n.prototype.ixor=function(f){return r((this.negative|f.negative)===0),this.iuxor(f)},n.prototype.xor=function(f){return this.length>f.length?this.clone().ixor(f):f.clone().ixor(this)},n.prototype.uxor=function(f){return this.length>f.length?this.clone().iuxor(f):f.clone().iuxor(this)},n.prototype.inotn=function(f){r(typeof f=="number"&&f>=0);var l=Math.ceil(f/26)|0,v=f%26;this._expand(l),v>0&&l--;for(var g=0;g<l;g++)this.words[g]=~this.words[g]&67108863;return v>0&&(this.words[g]=~this.words[g]&67108863>>26-v),this._strip()},n.prototype.notn=function(f){return this.clone().inotn(f)},n.prototype.setn=function(f,l){r(typeof f=="number"&&f>=0);var v=f/26|0,g=f%26;return this._expand(v+1),l?this.words[v]=this.words[v]|1<<g:this.words[v]=this.words[v]&~(1<<g),this._strip()},n.prototype.iadd=function(f){var l;if(this.negative!==0&&f.negative===0)return this.negative=0,l=this.isub(f),this.negative^=1,this._normSign();if(this.negative===0&&f.negative!==0)return f.negative=0,l=this.isub(f),f.negative=1,l._normSign();var v,g;this.length>f.length?(v=this,g=f):(v=f,g=this);for(var p=0,u=0;u<g.length;u++)l=(v.words[u]|0)+(g.words[u]|0)+p,this.words[u]=l&67108863,p=l>>>26;for(;p!==0&&u<v.length;u++)l=(v.words[u]|0)+p,this.words[u]=l&67108863,p=l>>>26;if(this.length=v.length,p!==0)this.words[this.length]=p,this.length++;else if(v!==this)for(;u<v.length;u++)this.words[u]=v.words[u];return this},n.prototype.add=function(f){var l;return f.negative!==0&&this.negative===0?(f.negative=0,l=this.sub(f),f.negative^=1,l):f.negative===0&&this.negative!==0?(this.negative=0,l=f.sub(this),this.negative=1,l):this.length>f.length?this.clone().iadd(f):f.clone().iadd(this)},n.prototype.isub=function(f){if(f.negative!==0){f.negative=0;var l=this.iadd(f);return f.negative=1,l._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(f),this.negative=1,this._normSign();var v=this.cmp(f);if(v===0)return this.negative=0,this.length=1,this.words[0]=0,this;var g,p;v>0?(g=this,p=f):(g=f,p=this);for(var u=0,w=0;w<p.length;w++)l=(g.words[w]|0)-(p.words[w]|0)+u,u=l>>26,this.words[w]=l&67108863;for(;u!==0&&w<g.length;w++)l=(g.words[w]|0)+u,u=l>>26,this.words[w]=l&67108863;if(u===0&&w<g.length&&g!==this)for(;w<g.length;w++)this.words[w]=g.words[w];return this.length=Math.max(this.length,w),g!==this&&(this.negative=1),this._strip()},n.prototype.sub=function(f){return this.clone().isub(f)};function U(d,f,l){l.negative=f.negative^d.negative;var v=d.length+f.length|0;l.length=v,v=v-1|0;var g=d.words[0]|0,p=f.words[0]|0,u=g*p,w=u&67108863,E=u/67108864|0;l.words[0]=w;for(var c=1;c<v;c++){for(var S=E>>>26,P=E&67108863,C=Math.min(c,f.length-1),L=Math.max(0,c-d.length+1);L<=C;L++){var V=c-L|0;g=d.words[V]|0,p=f.words[L]|0,u=g*p+P,S+=u/67108864|0,P=u&67108863}l.words[c]=P|0,E=S|0}return E!==0?l.words[c]=E|0:l.length--,l._strip()}var N=function(f,l,v){var g=f.words,p=l.words,u=v.words,w=0,E,c,S,P=g[0]|0,C=P&8191,L=P>>>13,V=g[1]|0,G=V&8191,Y=V>>>13,Wt=g[2]|0,Q=Wt&8191,ee=Wt>>>13,wa=g[3]|0,re=wa&8191,ie=wa>>>13,xa=g[4]|0,ne=xa&8191,ae=xa>>>13,Ea=g[5]|0,oe=Ea&8191,fe=Ea>>>13,Sa=g[6]|0,se=Sa&8191,ue=Sa>>>13,Ma=g[7]|0,le=Ma&8191,he=Ma>>>13,Aa=g[8]|0,ce=Aa&8191,de=Aa>>>13,Ba=g[9]|0,pe=Ba&8191,ve=Ba>>>13,Ra=p[0]|0,ye=Ra&8191,ge=Ra>>>13,ka=p[1]|0,be=ka&8191,_e=ka>>>13,Ta=p[2]|0,me=Ta&8191,we=Ta>>>13,Ia=p[3]|0,xe=Ia&8191,Ee=Ia>>>13,Oa=p[4]|0,Se=Oa&8191,Me=Oa>>>13,qa=p[5]|0,Ae=qa&8191,Be=qa>>>13,Da=p[6]|0,Re=Da&8191,ke=Da>>>13,Na=p[7]|0,Te=Na&8191,Ie=Na>>>13,Pa=p[8]|0,Oe=Pa&8191,qe=Pa>>>13,Mn=p[9]|0,$e=Mn&8191,Ye=Mn>>>13;v.negative=f.negative^l.negative,v.length=19,E=Math.imul(C,ye),c=Math.imul(C,ge),c=c+Math.imul(L,ye)|0,S=Math.imul(L,ge);var di=(w+E|0)+((c&8191)<<13)|0;w=(S+(c>>>13)|0)+(di>>>26)|0,di&=67108863,E=Math.imul(G,ye),c=Math.imul(G,ge),c=c+Math.imul(Y,ye)|0,S=Math.imul(Y,ge),E=E+Math.imul(C,be)|0,c=c+Math.imul(C,_e)|0,c=c+Math.imul(L,be)|0,S=S+Math.imul(L,_e)|0;var pi=(w+E|0)+((c&8191)<<13)|0;w=(S+(c>>>13)|0)+(pi>>>26)|0,pi&=67108863,E=Math.imul(Q,ye),c=Math.imul(Q,ge),c=c+Math.imul(ee,ye)|0,S=Math.imul(ee,ge),E=E+Math.imul(G,be)|0,c=c+Math.imul(G,_e)|0,c=c+Math.imul(Y,be)|0,S=S+Math.imul(Y,_e)|0,E=E+Math.imul(C,me)|0,c=c+Math.imul(C,we)|0,c=c+Math.imul(L,me)|0,S=S+Math.imul(L,we)|0;var vi=(w+E|0)+((c&8191)<<13)|0;w=(S+(c>>>13)|0)+(vi>>>26)|0,vi&=67108863,E=Math.imul(re,ye),c=Math.imul(re,ge),c=c+Math.imul(ie,ye)|0,S=Math.imul(ie,ge),E=E+Math.imul(Q,be)|0,c=c+Math.imul(Q,_e)|0,c=c+Math.imul(ee,be)|0,S=S+Math.imul(ee,_e)|0,E=E+Math.imul(G,me)|0,c=c+Math.imul(G,we)|0,c=c+Math.imul(Y,me)|0,S=S+Math.imul(Y,we)|0,E=E+Math.imul(C,xe)|0,c=c+Math.imul(C,Ee)|0,c=c+Math.imul(L,xe)|0,S=S+Math.imul(L,Ee)|0;var yi=(w+E|0)+((c&8191)<<13)|0;w=(S+(c>>>13)|0)+(yi>>>26)|0,yi&=67108863,E=Math.imul(ne,ye),c=Math.imul(ne,ge),c=c+Math.imul(ae,ye)|0,S=Math.imul(ae,ge),E=E+Math.imul(re,be)|0,c=c+Math.imul(re,_e)|0,c=c+Math.imul(ie,be)|0,S=S+Math.imul(ie,_e)|0,E=E+Math.imul(Q,me)|0,c=c+Math.imul(Q,we)|0,c=c+Math.imul(ee,me)|0,S=S+Math.imul(ee,we)|0,E=E+Math.imul(G,xe)|0,c=c+Math.imul(G,Ee)|0,c=c+Math.imul(Y,xe)|0,S=S+Math.imul(Y,Ee)|0,E=E+Math.imul(C,Se)|0,c=c+Math.imul(C,Me)|0,c=c+Math.imul(L,Se)|0,S=S+Math.imul(L,Me)|0;var gi=(w+E|0)+((c&8191)<<13)|0;w=(S+(c>>>13)|0)+(gi>>>26)|0,gi&=67108863,E=Math.imul(oe,ye),c=Math.imul(oe,ge),c=c+Math.imul(fe,ye)|0,S=Math.imul(fe,ge),E=E+Math.imul(ne,be)|0,c=c+Math.imul(ne,_e)|0,c=c+Math.imul(ae,be)|0,S=S+Math.imul(ae,_e)|0,E=E+Math.imul(re,me)|0,c=c+Math.imul(re,we)|0,c=c+Math.imul(ie,me)|0,S=S+Math.imul(ie,we)|0,E=E+Math.imul(Q,xe)|0,c=c+Math.imul(Q,Ee)|0,c=c+Math.imul(ee,xe)|0,S=S+Math.imul(ee,Ee)|0,E=E+Math.imul(G,Se)|0,c=c+Math.imul(G,Me)|0,c=c+Math.imul(Y,Se)|0,S=S+Math.imul(Y,Me)|0,E=E+Math.imul(C,Ae)|0,c=c+Math.imul(C,Be)|0,c=c+Math.imul(L,Ae)|0,S=S+Math.imul(L,Be)|0;var bi=(w+E|0)+((c&8191)<<13)|0;w=(S+(c>>>13)|0)+(bi>>>26)|0,bi&=67108863,E=Math.imul(se,ye),c=Math.imul(se,ge),c=c+Math.imul(ue,ye)|0,S=Math.imul(ue,ge),E=E+Math.imul(oe,be)|0,c=c+Math.imul(oe,_e)|0,c=c+Math.imul(fe,be)|0,S=S+Math.imul(fe,_e)|0,E=E+Math.imul(ne,me)|0,c=c+Math.imul(ne,we)|0,c=c+Math.imul(ae,me)|0,S=S+Math.imul(ae,we)|0,E=E+Math.imul(re,xe)|0,c=c+Math.imul(re,Ee)|0,c=c+Math.imul(ie,xe)|0,S=S+Math.imul(ie,Ee)|0,E=E+Math.imul(Q,Se)|0,c=c+Math.imul(Q,Me)|0,c=c+Math.imul(ee,Se)|0,S=S+Math.imul(ee,Me)|0,E=E+Math.imul(G,Ae)|0,c=c+Math.imul(G,Be)|0,c=c+Math.imul(Y,Ae)|0,S=S+Math.imul(Y,Be)|0,E=E+Math.imul(C,Re)|0,c=c+Math.imul(C,ke)|0,c=c+Math.imul(L,Re)|0,S=S+Math.imul(L,ke)|0;var _i=(w+E|0)+((c&8191)<<13)|0;w=(S+(c>>>13)|0)+(_i>>>26)|0,_i&=67108863,E=Math.imul(le,ye),c=Math.imul(le,ge),c=c+Math.imul(he,ye)|0,S=Math.imul(he,ge),E=E+Math.imul(se,be)|0,c=c+Math.imul(se,_e)|0,c=c+Math.imul(ue,be)|0,S=S+Math.imul(ue,_e)|0,E=E+Math.imul(oe,me)|0,c=c+Math.imul(oe,we)|0,c=c+Math.imul(fe,me)|0,S=S+Math.imul(fe,we)|0,E=E+Math.imul(ne,xe)|0,c=c+Math.imul(ne,Ee)|0,c=c+Math.imul(ae,xe)|0,S=S+Math.imul(ae,Ee)|0,E=E+Math.imul(re,Se)|0,c=c+Math.imul(re,Me)|0,c=c+Math.imul(ie,Se)|0,S=S+Math.imul(ie,Me)|0,E=E+Math.imul(Q,Ae)|0,c=c+Math.imul(Q,Be)|0,c=c+Math.imul(ee,Ae)|0,S=S+Math.imul(ee,Be)|0,E=E+Math.imul(G,Re)|0,c=c+Math.imul(G,ke)|0,c=c+Math.imul(Y,Re)|0,S=S+Math.imul(Y,ke)|0,E=E+Math.imul(C,Te)|0,c=c+Math.imul(C,Ie)|0,c=c+Math.imul(L,Te)|0,S=S+Math.imul(L,Ie)|0;var mi=(w+E|0)+((c&8191)<<13)|0;w=(S+(c>>>13)|0)+(mi>>>26)|0,mi&=67108863,E=Math.imul(ce,ye),c=Math.imul(ce,ge),c=c+Math.imul(de,ye)|0,S=Math.imul(de,ge),E=E+Math.imul(le,be)|0,c=c+Math.imul(le,_e)|0,c=c+Math.imul(he,be)|0,S=S+Math.imul(he,_e)|0,E=E+Math.imul(se,me)|0,c=c+Math.imul(se,we)|0,c=c+Math.imul(ue,me)|0,S=S+Math.imul(ue,we)|0,E=E+Math.imul(oe,xe)|0,c=c+Math.imul(oe,Ee)|0,c=c+Math.imul(fe,xe)|0,S=S+Math.imul(fe,Ee)|0,E=E+Math.imul(ne,Se)|0,c=c+Math.imul(ne,Me)|0,c=c+Math.imul(ae,Se)|0,S=S+Math.imul(ae,Me)|0,E=E+Math.imul(re,Ae)|0,c=c+Math.imul(re,Be)|0,c=c+Math.imul(ie,Ae)|0,S=S+Math.imul(ie,Be)|0,E=E+Math.imul(Q,Re)|0,c=c+Math.imul(Q,ke)|0,c=c+Math.imul(ee,Re)|0,S=S+Math.imul(ee,ke)|0,E=E+Math.imul(G,Te)|0,c=c+Math.imul(G,Ie)|0,c=c+Math.imul(Y,Te)|0,S=S+Math.imul(Y,Ie)|0,E=E+Math.imul(C,Oe)|0,c=c+Math.imul(C,qe)|0,c=c+Math.imul(L,Oe)|0,S=S+Math.imul(L,qe)|0;var wi=(w+E|0)+((c&8191)<<13)|0;w=(S+(c>>>13)|0)+(wi>>>26)|0,wi&=67108863,E=Math.imul(pe,ye),c=Math.imul(pe,ge),c=c+Math.imul(ve,ye)|0,S=Math.imul(ve,ge),E=E+Math.imul(ce,be)|0,c=c+Math.imul(ce,_e)|0,c=c+Math.imul(de,be)|0,S=S+Math.imul(de,_e)|0,E=E+Math.imul(le,me)|0,c=c+Math.imul(le,we)|0,c=c+Math.imul(he,me)|0,S=S+Math.imul(he,we)|0,E=E+Math.imul(se,xe)|0,c=c+Math.imul(se,Ee)|0,c=c+Math.imul(ue,xe)|0,S=S+Math.imul(ue,Ee)|0,E=E+Math.imul(oe,Se)|0,c=c+Math.imul(oe,Me)|0,c=c+Math.imul(fe,Se)|0,S=S+Math.imul(fe,Me)|0,E=E+Math.imul(ne,Ae)|0,c=c+Math.imul(ne,Be)|0,c=c+Math.imul(ae,Ae)|0,S=S+Math.imul(ae,Be)|0,E=E+Math.imul(re,Re)|0,c=c+Math.imul(re,ke)|0,c=c+Math.imul(ie,Re)|0,S=S+Math.imul(ie,ke)|0,E=E+Math.imul(Q,Te)|0,c=c+Math.imul(Q,Ie)|0,c=c+Math.imul(ee,Te)|0,S=S+Math.imul(ee,Ie)|0,E=E+Math.imul(G,Oe)|0,c=c+Math.imul(G,qe)|0,c=c+Math.imul(Y,Oe)|0,S=S+Math.imul(Y,qe)|0,E=E+Math.imul(C,$e)|0,c=c+Math.imul(C,Ye)|0,c=c+Math.imul(L,$e)|0,S=S+Math.imul(L,Ye)|0;var xi=(w+E|0)+((c&8191)<<13)|0;w=(S+(c>>>13)|0)+(xi>>>26)|0,xi&=67108863,E=Math.imul(pe,be),c=Math.imul(pe,_e),c=c+Math.imul(ve,be)|0,S=Math.imul(ve,_e),E=E+Math.imul(ce,me)|0,c=c+Math.imul(ce,we)|0,c=c+Math.imul(de,me)|0,S=S+Math.imul(de,we)|0,E=E+Math.imul(le,xe)|0,c=c+Math.imul(le,Ee)|0,c=c+Math.imul(he,xe)|0,S=S+Math.imul(he,Ee)|0,E=E+Math.imul(se,Se)|0,c=c+Math.imul(se,Me)|0,c=c+Math.imul(ue,Se)|0,S=S+Math.imul(ue,Me)|0,E=E+Math.imul(oe,Ae)|0,c=c+Math.imul(oe,Be)|0,c=c+Math.imul(fe,Ae)|0,S=S+Math.imul(fe,Be)|0,E=E+Math.imul(ne,Re)|0,c=c+Math.imul(ne,ke)|0,c=c+Math.imul(ae,Re)|0,S=S+Math.imul(ae,ke)|0,E=E+Math.imul(re,Te)|0,c=c+Math.imul(re,Ie)|0,c=c+Math.imul(ie,Te)|0,S=S+Math.imul(ie,Ie)|0,E=E+Math.imul(Q,Oe)|0,c=c+Math.imul(Q,qe)|0,c=c+Math.imul(ee,Oe)|0,S=S+Math.imul(ee,qe)|0,E=E+Math.imul(G,$e)|0,c=c+Math.imul(G,Ye)|0,c=c+Math.imul(Y,$e)|0,S=S+Math.imul(Y,Ye)|0;var Ei=(w+E|0)+((c&8191)<<13)|0;w=(S+(c>>>13)|0)+(Ei>>>26)|0,Ei&=67108863,E=Math.imul(pe,me),c=Math.imul(pe,we),c=c+Math.imul(ve,me)|0,S=Math.imul(ve,we),E=E+Math.imul(ce,xe)|0,c=c+Math.imul(ce,Ee)|0,c=c+Math.imul(de,xe)|0,S=S+Math.imul(de,Ee)|0,E=E+Math.imul(le,Se)|0,c=c+Math.imul(le,Me)|0,c=c+Math.imul(he,Se)|0,S=S+Math.imul(he,Me)|0,E=E+Math.imul(se,Ae)|0,c=c+Math.imul(se,Be)|0,c=c+Math.imul(ue,Ae)|0,S=S+Math.imul(ue,Be)|0,E=E+Math.imul(oe,Re)|0,c=c+Math.imul(oe,ke)|0,c=c+Math.imul(fe,Re)|0,S=S+Math.imul(fe,ke)|0,E=E+Math.imul(ne,Te)|0,c=c+Math.imul(ne,Ie)|0,c=c+Math.imul(ae,Te)|0,S=S+Math.imul(ae,Ie)|0,E=E+Math.imul(re,Oe)|0,c=c+Math.imul(re,qe)|0,c=c+Math.imul(ie,Oe)|0,S=S+Math.imul(ie,qe)|0,E=E+Math.imul(Q,$e)|0,c=c+Math.imul(Q,Ye)|0,c=c+Math.imul(ee,$e)|0,S=S+Math.imul(ee,Ye)|0;var Si=(w+E|0)+((c&8191)<<13)|0;w=(S+(c>>>13)|0)+(Si>>>26)|0,Si&=67108863,E=Math.imul(pe,xe),c=Math.imul(pe,Ee),c=c+Math.imul(ve,xe)|0,S=Math.imul(ve,Ee),E=E+Math.imul(ce,Se)|0,c=c+Math.imul(ce,Me)|0,c=c+Math.imul(de,Se)|0,S=S+Math.imul(de,Me)|0,E=E+Math.imul(le,Ae)|0,c=c+Math.imul(le,Be)|0,c=c+Math.imul(he,Ae)|0,S=S+Math.imul(he,Be)|0,E=E+Math.imul(se,Re)|0,c=c+Math.imul(se,ke)|0,c=c+Math.imul(ue,Re)|0,S=S+Math.imul(ue,ke)|0,E=E+Math.imul(oe,Te)|0,c=c+Math.imul(oe,Ie)|0,c=c+Math.imul(fe,Te)|0,S=S+Math.imul(fe,Ie)|0,E=E+Math.imul(ne,Oe)|0,c=c+Math.imul(ne,qe)|0,c=c+Math.imul(ae,Oe)|0,S=S+Math.imul(ae,qe)|0,E=E+Math.imul(re,$e)|0,c=c+Math.imul(re,Ye)|0,c=c+Math.imul(ie,$e)|0,S=S+Math.imul(ie,Ye)|0;var Mi=(w+E|0)+((c&8191)<<13)|0;w=(S+(c>>>13)|0)+(Mi>>>26)|0,Mi&=67108863,E=Math.imul(pe,Se),c=Math.imul(pe,Me),c=c+Math.imul(ve,Se)|0,S=Math.imul(ve,Me),E=E+Math.imul(ce,Ae)|0,c=c+Math.imul(ce,Be)|0,c=c+Math.imul(de,Ae)|0,S=S+Math.imul(de,Be)|0,E=E+Math.imul(le,Re)|0,c=c+Math.imul(le,ke)|0,c=c+Math.imul(he,Re)|0,S=S+Math.imul(he,ke)|0,E=E+Math.imul(se,Te)|0,c=c+Math.imul(se,Ie)|0,c=c+Math.imul(ue,Te)|0,S=S+Math.imul(ue,Ie)|0,E=E+Math.imul(oe,Oe)|0,c=c+Math.imul(oe,qe)|0,c=c+Math.imul(fe,Oe)|0,S=S+Math.imul(fe,qe)|0,E=E+Math.imul(ne,$e)|0,c=c+Math.imul(ne,Ye)|0,c=c+Math.imul(ae,$e)|0,S=S+Math.imul(ae,Ye)|0;var Ai=(w+E|0)+((c&8191)<<13)|0;w=(S+(c>>>13)|0)+(Ai>>>26)|0,Ai&=67108863,E=Math.imul(pe,Ae),c=Math.imul(pe,Be),c=c+Math.imul(ve,Ae)|0,S=Math.imul(ve,Be),E=E+Math.imul(ce,Re)|0,c=c+Math.imul(ce,ke)|0,c=c+Math.imul(de,Re)|0,S=S+Math.imul(de,ke)|0,E=E+Math.imul(le,Te)|0,c=c+Math.imul(le,Ie)|0,c=c+Math.imul(he,Te)|0,S=S+Math.imul(he,Ie)|0,E=E+Math.imul(se,Oe)|0,c=c+Math.imul(se,qe)|0,c=c+Math.imul(ue,Oe)|0,S=S+Math.imul(ue,qe)|0,E=E+Math.imul(oe,$e)|0,c=c+Math.imul(oe,Ye)|0,c=c+Math.imul(fe,$e)|0,S=S+Math.imul(fe,Ye)|0;var Bi=(w+E|0)+((c&8191)<<13)|0;w=(S+(c>>>13)|0)+(Bi>>>26)|0,Bi&=67108863,E=Math.imul(pe,Re),c=Math.imul(pe,ke),c=c+Math.imul(ve,Re)|0,S=Math.imul(ve,ke),E=E+Math.imul(ce,Te)|0,c=c+Math.imul(ce,Ie)|0,c=c+Math.imul(de,Te)|0,S=S+Math.imul(de,Ie)|0,E=E+Math.imul(le,Oe)|0,c=c+Math.imul(le,qe)|0,c=c+Math.imul(he,Oe)|0,S=S+Math.imul(he,qe)|0,E=E+Math.imul(se,$e)|0,c=c+Math.imul(se,Ye)|0,c=c+Math.imul(ue,$e)|0,S=S+Math.imul(ue,Ye)|0;var Ri=(w+E|0)+((c&8191)<<13)|0;w=(S+(c>>>13)|0)+(Ri>>>26)|0,Ri&=67108863,E=Math.imul(pe,Te),c=Math.imul(pe,Ie),c=c+Math.imul(ve,Te)|0,S=Math.imul(ve,Ie),E=E+Math.imul(ce,Oe)|0,c=c+Math.imul(ce,qe)|0,c=c+Math.imul(de,Oe)|0,S=S+Math.imul(de,qe)|0,E=E+Math.imul(le,$e)|0,c=c+Math.imul(le,Ye)|0,c=c+Math.imul(he,$e)|0,S=S+Math.imul(he,Ye)|0;var Wu=(w+E|0)+((c&8191)<<13)|0;w=(S+(c>>>13)|0)+(Wu>>>26)|0,Wu&=67108863,E=Math.imul(pe,Oe),c=Math.imul(pe,qe),c=c+Math.imul(ve,Oe)|0,S=Math.imul(ve,qe),E=E+Math.imul(ce,$e)|0,c=c+Math.imul(ce,Ye)|0,c=c+Math.imul(de,$e)|0,S=S+Math.imul(de,Ye)|0;var Ku=(w+E|0)+((c&8191)<<13)|0;w=(S+(c>>>13)|0)+(Ku>>>26)|0,Ku&=67108863,E=Math.imul(pe,$e),c=Math.imul(pe,Ye),c=c+Math.imul(ve,$e)|0,S=Math.imul(ve,Ye);var Gu=(w+E|0)+((c&8191)<<13)|0;return w=(S+(c>>>13)|0)+(Gu>>>26)|0,Gu&=67108863,u[0]=di,u[1]=pi,u[2]=vi,u[3]=yi,u[4]=gi,u[5]=bi,u[6]=_i,u[7]=mi,u[8]=wi,u[9]=xi,u[10]=Ei,u[11]=Si,u[12]=Mi,u[13]=Ai,u[14]=Bi,u[15]=Ri,u[16]=Wu,u[17]=Ku,u[18]=Gu,w!==0&&(u[19]=w,v.length++),v};Math.imul||(N=U);function j(d,f,l){l.negative=f.negative^d.negative,l.length=d.length+f.length;for(var v=0,g=0,p=0;p<l.length-1;p++){var u=g;g=0;for(var w=v&67108863,E=Math.min(p,f.length-1),c=Math.max(0,p-d.length+1);c<=E;c++){var S=p-c,P=d.words[S]|0,C=f.words[c]|0,L=P*C,V=L&67108863;u=u+(L/67108864|0)|0,V=V+w|0,w=V&67108863,u=u+(V>>>26)|0,g+=u>>>26,u&=67108863}l.words[p]=w,v=u,u=g}return v!==0?l.words[p]=v:l.length--,l._strip()}function H(d,f,l){return j(d,f,l)}n.prototype.mulTo=function(f,l){var v,g=this.length+f.length;return this.length===10&&f.length===10?v=N(this,f,l):g<63?v=U(this,f,l):g<1024?v=j(this,f,l):v=H(this,f,l),v};function W(d,f){this.x=d,this.y=f}W.prototype.makeRBT=function(f){for(var l=new Array(f),v=n.prototype._countBits(f)-1,g=0;g<f;g++)l[g]=this.revBin(g,v,f);return l},W.prototype.revBin=function(f,l,v){if(f===0||f===v-1)return f;for(var g=0,p=0;p<l;p++)g|=(f&1)<<l-p-1,f>>=1;return g},W.prototype.permute=function(f,l,v,g,p,u){for(var w=0;w<u;w++)g[w]=l[f[w]],p[w]=v[f[w]]},W.prototype.transform=function(f,l,v,g,p,u){this.permute(u,f,l,v,g,p);for(var w=1;w<p;w<<=1)for(var E=w<<1,c=Math.cos(2*Math.PI/E),S=Math.sin(2*Math.PI/E),P=0;P<p;P+=E)for(var C=c,L=S,V=0;V<w;V++){var G=v[P+V],Y=g[P+V],Wt=v[P+V+w],Q=g[P+V+w],ee=C*Wt-L*Q;Q=C*Q+L*Wt,Wt=ee,v[P+V]=G+Wt,g[P+V]=Y+Q,v[P+V+w]=G-Wt,g[P+V+w]=Y-Q,V!==E&&(ee=c*C-S*L,L=c*L+S*C,C=ee)}},W.prototype.guessLen13b=function(f,l){var v=Math.max(l,f)|1,g=v&1,p=0;for(v=v/2|0;v;v=v>>>1)p++;return 1<<p+1+g},W.prototype.conjugate=function(f,l,v){if(!(v<=1))for(var g=0;g<v/2;g++){var p=f[g];f[g]=f[v-g-1],f[v-g-1]=p,p=l[g],l[g]=-l[v-g-1],l[v-g-1]=-p}},W.prototype.normalize13b=function(f,l){for(var v=0,g=0;g<l/2;g++){var p=Math.round(f[2*g+1]/l)*8192+Math.round(f[2*g]/l)+v;f[g]=p&67108863,p<67108864?v=0:v=p/67108864|0}return f},W.prototype.convert13b=function(f,l,v,g){for(var p=0,u=0;u<l;u++)p=p+(f[u]|0),v[2*u]=p&8191,p=p>>>13,v[2*u+1]=p&8191,p=p>>>13;for(u=2*l;u<g;++u)v[u]=0;r(p===0),r((p&-8192)===0)},W.prototype.stub=function(f){for(var l=new Array(f),v=0;v<f;v++)l[v]=0;return l},W.prototype.mulp=function(f,l,v){var g=2*this.guessLen13b(f.length,l.length),p=this.makeRBT(g),u=this.stub(g),w=new Array(g),E=new Array(g),c=new Array(g),S=new Array(g),P=new Array(g),C=new Array(g),L=v.words;L.length=g,this.convert13b(f.words,f.length,w,g),this.convert13b(l.words,l.length,S,g),this.transform(w,u,E,c,g,p),this.transform(S,u,P,C,g,p);for(var V=0;V<g;V++){var G=E[V]*P[V]-c[V]*C[V];c[V]=E[V]*C[V]+c[V]*P[V],E[V]=G}return this.conjugate(E,c,g),this.transform(E,c,L,u,g,p),this.conjugate(L,u,g),this.normalize13b(L,g),v.negative=f.negative^l.negative,v.length=f.length+l.length,v._strip()},n.prototype.mul=function(f){var l=new n(null);return l.words=new Array(this.length+f.length),this.mulTo(f,l)},n.prototype.mulf=function(f){var l=new n(null);return l.words=new Array(this.length+f.length),H(this,f,l)},n.prototype.imul=function(f){return this.clone().mulTo(f,this)},n.prototype.imuln=function(f){var l=f<0;l&&(f=-f),r(typeof f=="number"),r(f<67108864);for(var v=0,g=0;g<this.length;g++){var p=(this.words[g]|0)*f,u=(p&67108863)+(v&67108863);v>>=26,v+=p/67108864|0,v+=u>>>26,this.words[g]=u&67108863}return v!==0&&(this.words[g]=v,this.length++),this.length=f===0?1:this.length,l?this.ineg():this},n.prototype.muln=function(f){return this.clone().imuln(f)},n.prototype.sqr=function(){return this.mul(this)},n.prototype.isqr=function(){return this.imul(this.clone())},n.prototype.pow=function(f){var l=D(f);if(l.length===0)return new n(1);for(var v=this,g=0;g<l.length&&l[g]===0;g++,v=v.sqr());if(++g<l.length)for(var p=v.sqr();g<l.length;g++,p=p.sqr())l[g]!==0&&(v=v.mul(p));return v},n.prototype.iushln=function(f){r(typeof f=="number"&&f>=0);var l=f%26,v=(f-l)/26,g=67108863>>>26-l<<26-l,p;if(l!==0){var u=0;for(p=0;p<this.length;p++){var w=this.words[p]&g,E=(this.words[p]|0)-w<<l;this.words[p]=E|u,u=w>>>26-l}u&&(this.words[p]=u,this.length++)}if(v!==0){for(p=this.length-1;p>=0;p--)this.words[p+v]=this.words[p];for(p=0;p<v;p++)this.words[p]=0;this.length+=v}return this._strip()},n.prototype.ishln=function(f){return r(this.negative===0),this.iushln(f)},n.prototype.iushrn=function(f,l,v){r(typeof f=="number"&&f>=0);var g;l?g=(l-l%26)/26:g=0;var p=f%26,u=Math.min((f-p)/26,this.length),w=67108863^67108863>>>p<<p,E=v;if(g-=u,g=Math.max(0,g),E){for(var c=0;c<u;c++)E.words[c]=this.words[c];E.length=u}if(u!==0)if(this.length>u)for(this.length-=u,c=0;c<this.length;c++)this.words[c]=this.words[c+u];else this.words[0]=0,this.length=1;var S=0;for(c=this.length-1;c>=0&&(S!==0||c>=g);c--){var P=this.words[c]|0;this.words[c]=S<<26-p|P>>>p,S=P&w}return E&&S!==0&&(E.words[E.length++]=S),this.length===0&&(this.words[0]=0,this.length=1),this._strip()},n.prototype.ishrn=function(f,l,v){return r(this.negative===0),this.iushrn(f,l,v)},n.prototype.shln=function(f){return this.clone().ishln(f)},n.prototype.ushln=function(f){return this.clone().iushln(f)},n.prototype.shrn=function(f){return this.clone().ishrn(f)},n.prototype.ushrn=function(f){return this.clone().iushrn(f)},n.prototype.testn=function(f){r(typeof f=="number"&&f>=0);var l=f%26,v=(f-l)/26,g=1<<l;if(this.length<=v)return!1;var p=this.words[v];return!!(p&g)},n.prototype.imaskn=function(f){r(typeof f=="number"&&f>=0);var l=f%26,v=(f-l)/26;if(r(this.negative===0,"imaskn works only with positive numbers"),this.length<=v)return this;if(l!==0&&v++,this.length=Math.min(v,this.length),l!==0){var g=67108863^67108863>>>l<<l;this.words[this.length-1]&=g}return this.length===0&&(this.words[0]=0,this.length=1),this._strip()},n.prototype.maskn=function(f){return this.clone().imaskn(f)},n.prototype.iaddn=function(f){return r(typeof f=="number"),r(f<67108864),f<0?this.isubn(-f):this.negative!==0?this.length===1&&(this.words[0]|0)<=f?(this.words[0]=f-(this.words[0]|0),this.negative=0,this):(this.negative=0,this.isubn(f),this.negative=1,this):this._iaddn(f)},n.prototype._iaddn=function(f){this.words[0]+=f;for(var l=0;l<this.length&&this.words[l]>=67108864;l++)this.words[l]-=67108864,l===this.length-1?this.words[l+1]=1:this.words[l+1]++;return this.length=Math.max(this.length,l+1),this},n.prototype.isubn=function(f){if(r(typeof f=="number"),r(f<67108864),f<0)return this.iaddn(-f);if(this.negative!==0)return this.negative=0,this.iaddn(f),this.negative=1,this;if(this.words[0]-=f,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var l=0;l<this.length&&this.words[l]<0;l++)this.words[l]+=67108864,this.words[l+1]-=1;return this._strip()},n.prototype.addn=function(f){return this.clone().iaddn(f)},n.prototype.subn=function(f){return this.clone().isubn(f)},n.prototype.iabs=function(){return this.negative=0,this},n.prototype.abs=function(){return this.clone().iabs()},n.prototype._ishlnsubmul=function(f,l,v){var g=f.length+v,p;this._expand(g);var u,w=0;for(p=0;p<f.length;p++){u=(this.words[p+v]|0)+w;var E=(f.words[p]|0)*l;u-=E&67108863,w=(u>>26)-(E/67108864|0),this.words[p+v]=u&67108863}for(;p<this.length-v;p++)u=(this.words[p+v]|0)+w,w=u>>26,this.words[p+v]=u&67108863;if(w===0)return this._strip();for(r(w===-1),w=0,p=0;p<this.length;p++)u=-(this.words[p]|0)+w,w=u>>26,this.words[p]=u&67108863;return this.negative=1,this._strip()},n.prototype._wordDiv=function(f,l){var v=this.length-f.length,g=this.clone(),p=f,u=p.words[p.length-1]|0,w=this._countBits(u);v=26-w,v!==0&&(p=p.ushln(v),g.iushln(v),u=p.words[p.length-1]|0);var E=g.length-p.length,c;if(l!=="mod"){c=new n(null),c.length=E+1,c.words=new Array(c.length);for(var S=0;S<c.length;S++)c.words[S]=0}var P=g.clone()._ishlnsubmul(p,1,E);P.negative===0&&(g=P,c&&(c.words[E]=1));for(var C=E-1;C>=0;C--){var L=(g.words[p.length+C]|0)*67108864+(g.words[p.length+C-1]|0);for(L=Math.min(L/u|0,67108863),g._ishlnsubmul(p,L,C);g.negative!==0;)L--,g.negative=0,g._ishlnsubmul(p,1,C),g.isZero()||(g.negative^=1);c&&(c.words[C]=L)}return c&&c._strip(),g._strip(),l!=="div"&&v!==0&&g.iushrn(v),{div:c||null,mod:g}},n.prototype.divmod=function(f,l,v){if(r(!f.isZero()),this.isZero())return{div:new n(0),mod:new n(0)};var g,p,u;return this.negative!==0&&f.negative===0?(u=this.neg().divmod(f,l),l!=="mod"&&(g=u.div.neg()),l!=="div"&&(p=u.mod.neg(),v&&p.negative!==0&&p.iadd(f)),{div:g,mod:p}):this.negative===0&&f.negative!==0?(u=this.divmod(f.neg(),l),l!=="mod"&&(g=u.div.neg()),{div:g,mod:u.mod}):(this.negative&f.negative)!==0?(u=this.neg().divmod(f.neg(),l),l!=="div"&&(p=u.mod.neg(),v&&p.negative!==0&&p.isub(f)),{div:u.div,mod:p}):f.length>this.length||this.cmp(f)<0?{div:new n(0),mod:this}:f.length===1?l==="div"?{div:this.divn(f.words[0]),mod:null}:l==="mod"?{div:null,mod:new n(this.modrn(f.words[0]))}:{div:this.divn(f.words[0]),mod:new n(this.modrn(f.words[0]))}:this._wordDiv(f,l)},n.prototype.div=function(f){return this.divmod(f,"div",!1).div},n.prototype.mod=function(f){return this.divmod(f,"mod",!1).mod},n.prototype.umod=function(f){return this.divmod(f,"mod",!0).mod},n.prototype.divRound=function(f){var l=this.divmod(f);if(l.mod.isZero())return l.div;var v=l.div.negative!==0?l.mod.isub(f):l.mod,g=f.ushrn(1),p=f.andln(1),u=v.cmp(g);return u<0||p===1&&u===0?l.div:l.div.negative!==0?l.div.isubn(1):l.div.iaddn(1)},n.prototype.modrn=function(f){var l=f<0;l&&(f=-f),r(f<=67108863);for(var v=(1<<26)%f,g=0,p=this.length-1;p>=0;p--)g=(v*g+(this.words[p]|0))%f;return l?-g:g},n.prototype.modn=function(f){return this.modrn(f)},n.prototype.idivn=function(f){var l=f<0;l&&(f=-f),r(f<=67108863);for(var v=0,g=this.length-1;g>=0;g--){var p=(this.words[g]|0)+v*67108864;this.words[g]=p/f|0,v=p%f}return this._strip(),l?this.ineg():this},n.prototype.divn=function(f){return this.clone().idivn(f)},n.prototype.egcd=function(f){r(f.negative===0),r(!f.isZero());var l=this,v=f.clone();l.negative!==0?l=l.umod(f):l=l.clone();for(var g=new n(1),p=new n(0),u=new n(0),w=new n(1),E=0;l.isEven()&&v.isEven();)l.iushrn(1),v.iushrn(1),++E;for(var c=v.clone(),S=l.clone();!l.isZero();){for(var P=0,C=1;(l.words[0]&C)===0&&P<26;++P,C<<=1);if(P>0)for(l.iushrn(P);P-- >0;)(g.isOdd()||p.isOdd())&&(g.iadd(c),p.isub(S)),g.iushrn(1),p.iushrn(1);for(var L=0,V=1;(v.words[0]&V)===0&&L<26;++L,V<<=1);if(L>0)for(v.iushrn(L);L-- >0;)(u.isOdd()||w.isOdd())&&(u.iadd(c),w.isub(S)),u.iushrn(1),w.iushrn(1);l.cmp(v)>=0?(l.isub(v),g.isub(u),p.isub(w)):(v.isub(l),u.isub(g),w.isub(p))}return{a:u,b:w,gcd:v.iushln(E)}},n.prototype._invmp=function(f){r(f.negative===0),r(!f.isZero());var l=this,v=f.clone();l.negative!==0?l=l.umod(f):l=l.clone();for(var g=new n(1),p=new n(0),u=v.clone();l.cmpn(1)>0&&v.cmpn(1)>0;){for(var w=0,E=1;(l.words[0]&E)===0&&w<26;++w,E<<=1);if(w>0)for(l.iushrn(w);w-- >0;)g.isOdd()&&g.iadd(u),g.iushrn(1);for(var c=0,S=1;(v.words[0]&S)===0&&c<26;++c,S<<=1);if(c>0)for(v.iushrn(c);c-- >0;)p.isOdd()&&p.iadd(u),p.iushrn(1);l.cmp(v)>=0?(l.isub(v),g.isub(p)):(v.isub(l),p.isub(g))}var P;return l.cmpn(1)===0?P=g:P=p,P.cmpn(0)<0&&P.iadd(f),P},n.prototype.gcd=function(f){if(this.isZero())return f.abs();if(f.isZero())return this.abs();var l=this.clone(),v=f.clone();l.negative=0,v.negative=0;for(var g=0;l.isEven()&&v.isEven();g++)l.iushrn(1),v.iushrn(1);do{for(;l.isEven();)l.iushrn(1);for(;v.isEven();)v.iushrn(1);var p=l.cmp(v);if(p<0){var u=l;l=v,v=u}else if(p===0||v.cmpn(1)===0)break;l.isub(v)}while(!0);return v.iushln(g)},n.prototype.invm=function(f){return this.egcd(f).a.umod(f)},n.prototype.isEven=function(){return(this.words[0]&1)===0},n.prototype.isOdd=function(){return(this.words[0]&1)===1},n.prototype.andln=function(f){return this.words[0]&f},n.prototype.bincn=function(f){r(typeof f=="number");var l=f%26,v=(f-l)/26,g=1<<l;if(this.length<=v)return this._expand(v+1),this.words[v]|=g,this;for(var p=g,u=v;p!==0&&u<this.length;u++){var w=this.words[u]|0;w+=p,p=w>>>26,w&=67108863,this.words[u]=w}return p!==0&&(this.words[u]=p,this.length++),this},n.prototype.isZero=function(){return this.length===1&&this.words[0]===0},n.prototype.cmpn=function(f){var l=f<0;if(this.negative!==0&&!l)return-1;if(this.negative===0&&l)return 1;this._strip();var v;if(this.length>1)v=1;else{l&&(f=-f),r(f<=67108863,"Number is too big");var g=this.words[0]|0;v=g===f?0:g<f?-1:1}return this.negative!==0?-v|0:v},n.prototype.cmp=function(f){if(this.negative!==0&&f.negative===0)return-1;if(this.negative===0&&f.negative!==0)return 1;var l=this.ucmp(f);return this.negative!==0?-l|0:l},n.prototype.ucmp=function(f){if(this.length>f.length)return 1;if(this.length<f.length)return-1;for(var l=0,v=this.length-1;v>=0;v--){var g=this.words[v]|0,p=f.words[v]|0;if(g!==p){g<p?l=-1:g>p&&(l=1);break}}return l},n.prototype.gtn=function(f){return this.cmpn(f)===1},n.prototype.gt=function(f){return this.cmp(f)===1},n.prototype.gten=function(f){return this.cmpn(f)>=0},n.prototype.gte=function(f){return this.cmp(f)>=0},n.prototype.ltn=function(f){return this.cmpn(f)===-1},n.prototype.lt=function(f){return this.cmp(f)===-1},n.prototype.lten=function(f){return this.cmpn(f)<=0},n.prototype.lte=function(f){return this.cmp(f)<=0},n.prototype.eqn=function(f){return this.cmpn(f)===0},n.prototype.eq=function(f){return this.cmp(f)===0},n.red=function(f){return new h(f)},n.prototype.toRed=function(f){return r(!this.red,"Already a number in reduction context"),r(this.negative===0,"red works only with positives"),f.convertTo(this)._forceRed(f)},n.prototype.fromRed=function(){return r(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},n.prototype._forceRed=function(f){return this.red=f,this},n.prototype.forceRed=function(f){return r(!this.red,"Already a number in reduction context"),this._forceRed(f)},n.prototype.redAdd=function(f){return r(this.red,"redAdd works only with red numbers"),this.red.add(this,f)},n.prototype.redIAdd=function(f){return r(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,f)},n.prototype.redSub=function(f){return r(this.red,"redSub works only with red numbers"),this.red.sub(this,f)},n.prototype.redISub=function(f){return r(this.red,"redISub works only with red numbers"),this.red.isub(this,f)},n.prototype.redShl=function(f){return r(this.red,"redShl works only with red numbers"),this.red.shl(this,f)},n.prototype.redMul=function(f){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,f),this.red.mul(this,f)},n.prototype.redIMul=function(f){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,f),this.red.imul(this,f)},n.prototype.redSqr=function(){return r(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},n.prototype.redISqr=function(){return r(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},n.prototype.redSqrt=function(){return r(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},n.prototype.redInvm=function(){return r(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},n.prototype.redNeg=function(){return r(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},n.prototype.redPow=function(f){return r(this.red&&!f.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,f)};var Z={k256:null,p224:null,p192:null,p25519:null};function K(d,f){this.name=d,this.p=new n(f,16),this.n=this.p.bitLength(),this.k=new n(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}K.prototype._tmp=function(){var f=new n(null);return f.words=new Array(Math.ceil(this.n/13)),f},K.prototype.ireduce=function(f){var l=f,v;do this.split(l,this.tmp),l=this.imulK(l),l=l.iadd(this.tmp),v=l.bitLength();while(v>this.n);var g=v<this.n?-1:l.ucmp(this.p);return g===0?(l.words[0]=0,l.length=1):g>0?l.isub(this.p):l.strip!==void 0?l.strip():l._strip(),l},K.prototype.split=function(f,l){f.iushrn(this.n,0,l)},K.prototype.imulK=function(f){return f.imul(this.k)};function J(){K.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}i(J,K),J.prototype.split=function(f,l){for(var v=4194303,g=Math.min(f.length,9),p=0;p<g;p++)l.words[p]=f.words[p];if(l.length=g,f.length<=9){f.words[0]=0,f.length=1;return}var u=f.words[9];for(l.words[l.length++]=u&v,p=10;p<f.length;p++){var w=f.words[p]|0;f.words[p-10]=(w&v)<<4|u>>>22,u=w}u>>>=22,f.words[p-10]=u,u===0&&f.length>10?f.length-=10:f.length-=9},J.prototype.imulK=function(f){f.words[f.length]=0,f.words[f.length+1]=0,f.length+=2;for(var l=0,v=0;v<f.length;v++){var g=f.words[v]|0;l+=g*977,f.words[v]=l&67108863,l=g*64+(l/67108864|0)}return f.words[f.length-1]===0&&(f.length--,f.words[f.length-1]===0&&f.length--),f};function z(){K.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}i(z,K);function X(){K.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}i(X,K);function A(){K.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}i(A,K),A.prototype.imulK=function(f){for(var l=0,v=0;v<f.length;v++){var g=(f.words[v]|0)*19+l,p=g&67108863;g>>>=26,f.words[v]=p,l=g}return l!==0&&(f.words[f.length++]=l),f},n._prime=function(f){if(Z[f])return Z[f];var l;if(f==="k256")l=new J;else if(f==="p224")l=new z;else if(f==="p192")l=new X;else if(f==="p25519")l=new A;else throw new Error("Unknown prime "+f);return Z[f]=l,l};function h(d){if(typeof d=="string"){var f=n._prime(d);this.m=f.p,this.prime=f}else r(d.gtn(1),"modulus must be greater than 1"),this.m=d,this.prime=null}h.prototype._verify1=function(f){r(f.negative===0,"red works only with positives"),r(f.red,"red works only with red numbers")},h.prototype._verify2=function(f,l){r((f.negative|l.negative)===0,"red works only with positives"),r(f.red&&f.red===l.red,"red works only with red numbers")},h.prototype.imod=function(f){return this.prime?this.prime.ireduce(f)._forceRed(this):(_(f,f.umod(this.m)._forceRed(this)),f)},h.prototype.neg=function(f){return f.isZero()?f.clone():this.m.sub(f)._forceRed(this)},h.prototype.add=function(f,l){this._verify2(f,l);var v=f.add(l);return v.cmp(this.m)>=0&&v.isub(this.m),v._forceRed(this)},h.prototype.iadd=function(f,l){this._verify2(f,l);var v=f.iadd(l);return v.cmp(this.m)>=0&&v.isub(this.m),v},h.prototype.sub=function(f,l){this._verify2(f,l);var v=f.sub(l);return v.cmpn(0)<0&&v.iadd(this.m),v._forceRed(this)},h.prototype.isub=function(f,l){this._verify2(f,l);var v=f.isub(l);return v.cmpn(0)<0&&v.iadd(this.m),v},h.prototype.shl=function(f,l){return this._verify1(f),this.imod(f.ushln(l))},h.prototype.imul=function(f,l){return this._verify2(f,l),this.imod(f.imul(l))},h.prototype.mul=function(f,l){return this._verify2(f,l),this.imod(f.mul(l))},h.prototype.isqr=function(f){return this.imul(f,f.clone())},h.prototype.sqr=function(f){return this.mul(f,f)},h.prototype.sqrt=function(f){if(f.isZero())return f.clone();var l=this.m.andln(3);if(r(l%2===1),l===3){var v=this.m.add(new n(1)).iushrn(2);return this.pow(f,v)}for(var g=this.m.subn(1),p=0;!g.isZero()&&g.andln(1)===0;)p++,g.iushrn(1);r(!g.isZero());var u=new n(1).toRed(this),w=u.redNeg(),E=this.m.subn(1).iushrn(1),c=this.m.bitLength();for(c=new n(2*c*c).toRed(this);this.pow(c,E).cmp(w)!==0;)c.redIAdd(w);for(var S=this.pow(c,g),P=this.pow(f,g.addn(1).iushrn(1)),C=this.pow(f,g),L=p;C.cmp(u)!==0;){for(var V=C,G=0;V.cmp(u)!==0;G++)V=V.redSqr();r(G<L);var Y=this.pow(S,new n(1).iushln(L-G-1));P=P.redMul(Y),S=Y.redSqr(),C=C.redMul(S),L=G}return P},h.prototype.invm=function(f){var l=f._invmp(this.m);return l.negative!==0?(l.negative=0,this.imod(l).redNeg()):this.imod(l)},h.prototype.pow=function(f,l){if(l.isZero())return new n(1).toRed(this);if(l.cmpn(1)===0)return f.clone();var v=4,g=new Array(1<<v);g[0]=new n(1).toRed(this),g[1]=f;for(var p=2;p<g.length;p++)g[p]=this.mul(g[p-1],f);var u=g[0],w=0,E=0,c=l.bitLength()%26;for(c===0&&(c=26),p=l.length-1;p>=0;p--){for(var S=l.words[p],P=c-1;P>=0;P--){var C=S>>P&1;if(u!==g[0]&&(u=this.sqr(u)),C===0&&w===0){E=0;continue}w<<=1,w|=C,E++,!(E!==v&&(p!==0||P!==0))&&(u=this.mul(u,g[w]),E=0,w=0)}c=26}return u},h.prototype.convertTo=function(f){var l=f.umod(this.m);return l===f?l.clone():l},h.prototype.convertFrom=function(f){var l=f.clone();return l.red=null,l},n.mont=function(f){return new b(f)};function b(d){h.call(this,d),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new n(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}i(b,h),b.prototype.convertTo=function(f){return this.imod(f.ushln(this.shift))},b.prototype.convertFrom=function(f){var l=this.imod(f.mul(this.rinv));return l.red=null,l},b.prototype.imul=function(f,l){if(f.isZero()||l.isZero())return f.words[0]=0,f.length=1,f;var v=f.imul(l),g=v.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),p=v.isub(g).iushrn(this.shift),u=p;return p.cmp(this.m)>=0?u=p.isub(this.m):p.cmpn(0)<0&&(u=p.iadd(this.m)),u._forceRed(this)},b.prototype.mul=function(f,l){if(f.isZero()||l.isZero())return new n(0)._forceRed(this);var v=f.mul(l),g=v.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),p=v.isub(g).iushrn(this.shift),u=p;return p.cmp(this.m)>=0?u=p.isub(this.m):p.cmpn(0)<0&&(u=p.iadd(this.m)),u._forceRed(this)},b.prototype.invm=function(f){var l=this.imod(f._invmp(this.m).mul(this.r2));return l._forceRed(this)}})(typeof Yc>"u"||Yc,Pm)});var Jc=R((qC,Fm)=>{"use strict";m();var ha=Lm(),Zk=qi(),Hk=De().Buffer;function Cm(e){var t=e.modulus.byteLength(),r;do r=new ha(Zk(t));while(r.cmp(e.modulus)>=0||!r.umod(e.prime1)||!r.umod(e.prime2));return r}function Wk(e){var t=Cm(e),r=t.toRed(ha.mont(e.modulus)).redPow(new ha(e.publicExponent)).fromRed();return{blinder:r,unblinder:t.invm(e.modulus)}}function Um(e,t){var r=Wk(t),i=t.modulus.byteLength(),n=new ha(e).mul(r.blinder).umod(t.modulus),a=n.toRed(ha.mont(t.prime1)),o=n.toRed(ha.mont(t.prime2)),s=t.coefficient,y=t.prime1,_=t.prime2,x=a.redPow(t.exponent1).fromRed(),B=o.redPow(t.exponent2).fromRed(),k=x.isub(B).imul(s).umod(y).imul(_);return B.iadd(k).imul(r.unblinder).umod(t.modulus).toArrayLike(Hk,"be",i)}Um.getr=Cm;Fm.exports=Um});var Hm=R((NC,Zm)=>{m();var Kk=Wc(),Xc=qi(),Gk=mo(),jm=Gc(),zm=Vc(),Qc=ei(),Vk=$c(),$k=Jc(),rr=De().Buffer;Zm.exports=function(t,r,i){var n;t.padding?n=t.padding:i?n=1:n=4;var a=Kk(t),o;if(n===4)o=Yk(a,r);else if(n===1)o=Jk(a,r,i);else if(n===3){if(o=new Qc(r),o.cmp(a.modulus)>=0)throw new Error("data too long for modulus")}else throw new Error("unknown padding");return i?$k(o,a):Vk(o,a)};function Yk(e,t){var r=e.modulus.byteLength(),i=t.length,n=Gk("sha1").update(rr.alloc(0)).digest(),a=n.length,o=2*a;if(i>r-o-2)throw new Error("message too long");var s=rr.alloc(r-i-o-2),y=r-a-1,_=Xc(a),x=zm(rr.concat([n,s,rr.alloc(1,1),t],y),jm(_,y)),B=zm(_,jm(x,a));return new Qc(rr.concat([rr.alloc(1),B,x],r))}function Jk(e,t,r){var i=t.length,n=e.modulus.byteLength();if(i>n-11)throw new Error("message too long");var a;return r?a=rr.alloc(n-i-3,255):a=Xk(n-i-3),new Qc(rr.concat([rr.from([0,r?1:2]),a,rr.alloc(1),t],n))}function Xk(e){for(var t=rr.allocUnsafe(e),r=0,i=Xc(e*2),n=0,a;r<e;)n===i.length&&(i=Xc(e*2),n=0),a=i[n++],a&&(t[r++]=a);return t}});var $m=R((LC,Vm)=>{m();var Qk=Wc(),Wm=Gc(),Km=Vc(),Gm=ei(),eT=Jc(),tT=mo(),rT=$c(),Oo=De().Buffer;Vm.exports=function(t,r,i){var n;t.padding?n=t.padding:i?n=1:n=4;var a=Qk(t),o=a.modulus.byteLength();if(r.length>o||new Gm(r).cmp(a.modulus)>=0)throw new Error("decryption error");var s;i?s=rT(new Gm(r),a):s=eT(r,a);var y=Oo.alloc(o-s.length);if(s=Oo.concat([y,s],o),n===4)return iT(a,s);if(n===1)return nT(a,s,i);if(n===3)return s;throw new Error("unknown padding")};function iT(e,t){var r=e.modulus.byteLength(),i=tT("sha1").update(Oo.alloc(0)).digest(),n=i.length;if(t[0]!==0)throw new Error("decryption error");var a=t.slice(1,n+1),o=t.slice(n+1),s=Km(a,Wm(o,n)),y=Km(o,Wm(s,r-n-1));if(aT(i,y.slice(0,n)))throw new Error("decryption error");for(var _=n;y[_]===0;)_++;if(y[_++]!==1)throw new Error("decryption error");return y.slice(_)}function nT(e,t,r){for(var i=t.slice(0,2),n=2,a=0;t[n++]!==0;)if(n>=t.length){a++;break}var o=t.slice(2,n-1);if((i.toString("hex")!=="0002"&&!r||i.toString("hex")!=="0001"&&r)&&a++,o.length<8&&a++,a)throw new Error("decryption error");return t.slice(n)}function aT(e,t){e=Oo.from(e),t=Oo.from(t);var r=0,i=e.length;e.length!==t.length&&(r++,i=Math.min(e.length,t.length));for(var n=-1;++n<i;)r+=e[n]^t[n];return r}});var Ym=R(fn=>{m();fn.publicEncrypt=Hm();fn.privateDecrypt=$m();fn.privateEncrypt=function(t,r){return fn.publicEncrypt(t,r,!0)};fn.publicDecrypt=function(t,r){return fn.privateDecrypt(t,r,!0)}});var ow=R(qo=>{"use strict";m();function Jm(){throw new Error(`secure random number generation not supported by this browser
15
+ use chrome, FireFox or Internet Explorer 11`)}var Qm=De(),Xm=qi(),ew=Qm.Buffer,tw=Qm.kMaxLength,e0=globalThis.crypto||globalThis.msCrypto,rw=Math.pow(2,32)-1;function iw(e,t){if(typeof e!="number"||e!==e)throw new TypeError("offset must be a number");if(e>rw||e<0)throw new TypeError("offset must be a uint32");if(e>tw||e>t)throw new RangeError("offset out of range")}function nw(e,t,r){if(typeof e!="number"||e!==e)throw new TypeError("size must be a number");if(e>rw||e<0)throw new TypeError("size must be a uint32");if(e+t>r||e>tw)throw new RangeError("buffer too small")}e0&&e0.getRandomValues||!M.default.browser?(qo.randomFill=oT,qo.randomFillSync=fT):(qo.randomFill=Jm,qo.randomFillSync=Jm);function oT(e,t,r,i){if(!ew.isBuffer(e)&&!(e instanceof globalThis.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');if(typeof t=="function")i=t,t=0,r=e.length;else if(typeof r=="function")i=r,r=e.length-t;else if(typeof i!="function")throw new TypeError('"cb" argument must be a function');return iw(t,e.length),nw(r,t,e.length),aw(e,t,r,i)}function aw(e,t,r,i){if(M.default.browser){var n=e.buffer,a=new Uint8Array(n,t,r);if(e0.getRandomValues(a),i){M.default.nextTick(function(){i(null,e)});return}return e}if(i){Xm(r,function(s,y){if(s)return i(s);y.copy(e,t),i(null,e)});return}var o=Xm(r);return o.copy(e,t),e}function fT(e,t,r){if(typeof t>"u"&&(t=0),!ew.isBuffer(e)&&!(e instanceof globalThis.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');return iw(t,e.length),r===void 0&&(r=e.length-t),nw(r,t,e.length),aw(e,t,r)}});var Js=R(Ne=>{"use strict";m();Ne.randomBytes=Ne.rng=Ne.pseudoRandomBytes=Ne.prng=qi();Ne.createHash=Ne.Hash=mo();Ne.createHmac=Ne.Hmac=rb();var sT=Ns(),uT=Object.keys(sT),lT=["sha1","sha224","sha256","sha384","sha512","md5","rmd160"].concat(uT);Ne.getHashes=function(){return lT};var fw=ec();Ne.pbkdf2=fw.pbkdf2;Ne.pbkdf2Sync=fw.pbkdf2Sync;var br=B_();Ne.Cipher=br.Cipher;Ne.createCipher=br.createCipher;Ne.Cipheriv=br.Cipheriv;Ne.createCipheriv=br.createCipheriv;Ne.Decipher=br.Decipher;Ne.createDecipher=br.createDecipher;Ne.Decipheriv=br.Decipheriv;Ne.createDecipheriv=br.createDecipheriv;Ne.getCiphers=br.getCiphers;Ne.listCiphers=br.listCiphers;var Do=j_();Ne.DiffieHellmanGroup=Do.DiffieHellmanGroup;Ne.createDiffieHellmanGroup=Do.createDiffieHellmanGroup;Ne.getDiffieHellman=Do.getDiffieHellman;Ne.createDiffieHellman=Do.createDiffieHellman;Ne.DiffieHellman=Do.DiffieHellman;var au=Ns();Ne.createSign=au.createSign;Ne.Sign=au.Sign;Ne.createVerify=au.createVerify;Ne.Verify=au.Verify;Ne.createECDH=Ns();var ou=Ym();Ne.publicEncrypt=ou.publicEncrypt;Ne.privateEncrypt=ou.privateEncrypt;Ne.publicDecrypt=ou.publicDecrypt;Ne.privateDecrypt=ou.privateDecrypt;var sw=ow();Ne.randomFill=sw.randomFill;Ne.randomFillSync=sw.randomFillSync;Ne.createCredentials=function(){throw new Error(`sorry, createCredentials is not implemented yet
16
+ we accept pull requests
17
+ https://github.com/browserify/crypto-browserify`)};Ne.constants={DH_CHECK_P_NOT_SAFE_PRIME:2,DH_CHECK_P_NOT_PRIME:1,DH_UNABLE_TO_CHECK_GENERATOR:4,DH_NOT_SUITABLE_GENERATOR:8,NPN_ENABLED:1,ALPN_ENABLED:1,RSA_PKCS1_PADDING:1,RSA_SSLV23_PADDING:2,RSA_NO_PADDING:3,RSA_PKCS1_OAEP_PADDING:4,RSA_X931_PADDING:5,RSA_PKCS1_PSS_PADDING:6,POINT_CONVERSION_COMPRESSED:2,POINT_CONVERSION_UNCOMPRESSED:4,POINT_CONVERSION_HYBRID:6}});var lw=R((WC,uw)=>{"use strict";m();var No=Js(),Po={ES256:"P-256",ES256K:"secp256k1"},hT=["ES256","ES256K"];function fu(e){return e.toString("base64").replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}function su(e){for(e=e.replace(/-/g,"+").replace(/_/g,"/");e.length%4;)e+="=";return I.Buffer.from(e,"base64")}async function cT(e){if(!e.issuerDid||!e.subjectId||!e.credentialSubject||!e.privateJwk)throw new Error("issuerDid, subjectId, credentialSubject, and privateJwk are required");var t=e.alg||"ES256";if(!Po[t])throw new Error("Unsupported algorithm: "+t);if(e.privateJwk.crv&&e.privateJwk.crv!==Po[t])throw new Error("Key curve "+e.privateJwk.crv+" does not match alg "+t);var r=e.kid||e.privateJwk.kid,i=e.types||["VerifiableCredential"],n=e.expSeconds||365*24*60*60,a=Math.floor(Date.now()/1e3),o=new Date().toISOString(),s={"@context":["https://www.w3.org/2018/credentials/v1"],type:i,issuer:e.issuerDid,issuanceDate:o,credentialSubject:Object.assign({id:e.subjectId},e.credentialSubject)},y={iss:e.issuerDid,sub:e.subjectId,iat:a,exp:a+n,vc:s},_={alg:t,typ:"JWT",kid:r},x=fu(I.Buffer.from(JSON.stringify(_))),B=fu(I.Buffer.from(JSON.stringify(y))),k=x+"."+B,T=No.createPrivateKey({key:e.privateJwk,format:"jwk"}),O=No.sign("sha256",I.Buffer.from(k),{key:T,dsaEncoding:"ieee-p1363"}),D=fu(O),U=k+"."+D;return{jwt:U}}async function dT(e,t){t=t||{};try{if(typeof e!="string")return{valid:!1,error:"Invalid JWT format"};var r=e.split(".");if(r.length!==3)return{valid:!1,error:"Invalid JWT format"};var i=r[0],n=r[1],a=r[2],o=JSON.parse(su(i).toString()),s=JSON.parse(su(n).toString()),y=su(a),_=t.allowedAlgs||hT;if(!o.alg||_.indexOf(o.alg)===-1||!Po[o.alg])return{valid:!1,error:"Algorithm not allowed: "+o.alg,header:o,payload:s};var x=Math.floor(Date.now()/1e3),B=t.clockToleranceSec||60;if(t.requireExpiration&&!s.exp)return{valid:!1,error:"JWT missing required exp claim",header:o,payload:s};if(s.exp&&s.exp<x-B)return{valid:!1,error:"JWT expired",header:o,payload:s};if(s.nbf&&s.nbf>x+B)return{valid:!1,error:"JWT not yet valid",header:o,payload:s};if(t.expectedIssuerDid&&s.iss!==t.expectedIssuerDid)return{valid:!1,error:"Unexpected issuer",header:o,payload:s};var k;if(t.didResolver){var T=await t.didResolver(s.iss);if(!T||!T.jwks||!T.jwks.keys)return{valid:!1,error:"Failed to resolve issuer DID",header:o,payload:s};var O=T.jwks.keys.find(function(j){return j.kid===o.kid});if(!O)return{valid:!1,error:"Key not found in JWKS",header:o,payload:s};k=O}else return{valid:!1,error:"DID resolver required for verification",header:o,payload:s};if(k.crv&&k.crv!==Po[o.alg])return{valid:!1,error:"Key curve does not match algorithm",header:o,payload:s};var D=i+"."+n,U=No.createPublicKey({key:k,format:"jwk"}),N=No.verify("sha256",I.Buffer.from(D),{key:U,dsaEncoding:"ieee-p1363"},y);if(!N&&t.allowLegacyDER)try{N=No.verify("sha256",I.Buffer.from(D),{key:U,dsaEncoding:"der"},y)}catch{N=!1}return N?{valid:!0,header:o,payload:s}:{valid:!1,error:"Invalid signature",header:o,payload:s}}catch(j){return{valid:!1,error:j.message||"Verification failed"}}}uw.exports={issueVcJwt:cT,verifyVcJwt:dT,base64UrlEncode:fu,base64UrlDecode:su,ALG_TO_CRV:Po}});var i0=R((GC,pw)=>{"use strict";m();function ri(e){"@babel/helpers - typeof";return ri=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ri(e)}function hw(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,vT(i.key),i)}}function pT(e,t,r){return t&&hw(e.prototype,t),r&&hw(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function vT(e){var t=yT(e,"string");return ri(t)==="symbol"?t:String(t)}function yT(e,t){if(ri(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var i=r.call(e,t||"default");if(ri(i)!=="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function gT(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function bT(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&r0(e,t)}function r0(e,t){return r0=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(i,n){return i.__proto__=n,i},r0(e,t)}function _T(e){var t=xT();return function(){var i=uu(e),n;if(t){var a=uu(this).constructor;n=Reflect.construct(i,arguments,a)}else n=i.apply(this,arguments);return mT(this,n)}}function mT(e,t){if(t&&(ri(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return wT(e)}function wT(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function xT(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function uu(e){return uu=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},uu(e)}var dw={},ca,t0;function Lo(e,t,r){r||(r=Error);function i(a,o,s){return typeof t=="string"?t:t(a,o,s)}var n=(function(a){bT(s,a);var o=_T(s);function s(y,_,x){var B;return gT(this,s),B=o.call(this,i(y,_,x)),B.code=e,B}return pT(s)})(r);dw[e]=n}function cw(e,t){if(Array.isArray(e)){var r=e.length;return e=e.map(function(i){return String(i)}),r>2?"one of ".concat(t," ").concat(e.slice(0,r-1).join(", "),", or ")+e[r-1]:r===2?"one of ".concat(t," ").concat(e[0]," or ").concat(e[1]):"of ".concat(t," ").concat(e[0])}else return"of ".concat(t," ").concat(String(e))}function ET(e,t,r){return e.substr(!r||r<0?0:+r,t.length)===t}function ST(e,t,r){return(r===void 0||r>e.length)&&(r=e.length),e.substring(r-t.length,r)===t}function MT(e,t,r){return typeof r!="number"&&(r=0),r+t.length>e.length?!1:e.indexOf(t,r)!==-1}Lo("ERR_AMBIGUOUS_ARGUMENT",'The "%s" argument is ambiguous. %s',TypeError);Lo("ERR_INVALID_ARG_TYPE",function(e,t,r){ca===void 0&&(ca=Co()),ca(typeof e=="string","'name' must be a string");var i;typeof t=="string"&&ET(t,"not ")?(i="must not be",t=t.replace(/^not /,"")):i="must be";var n;if(ST(e," argument"))n="The ".concat(e," ").concat(i," ").concat(cw(t,"type"));else{var a=MT(e,".")?"property":"argument";n='The "'.concat(e,'" ').concat(a," ").concat(i," ").concat(cw(t,"type"))}return n+=". Received type ".concat(ri(r)),n},TypeError);Lo("ERR_INVALID_ARG_VALUE",function(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"is invalid";t0===void 0&&(t0=Gt());var i=t0.inspect(t);return i.length>128&&(i="".concat(i.slice(0,128),"...")),"The argument '".concat(e,"' ").concat(r,". Received ").concat(i)},TypeError,RangeError);Lo("ERR_INVALID_RETURN_VALUE",function(e,t,r){var i;return r&&r.constructor&&r.constructor.name?i="instance of ".concat(r.constructor.name):i="type ".concat(ri(r)),"Expected ".concat(e,' to be returned from the "').concat(t,'"')+" function but got ".concat(i,".")},TypeError);Lo("ERR_MISSING_ARGS",function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];ca===void 0&&(ca=Co()),ca(t.length>0,"At least one arg needs to be specified");var i="The ",n=t.length;switch(t=t.map(function(a){return'"'.concat(a,'"')}),n){case 1:i+="".concat(t[0]," argument");break;case 2:i+="".concat(t[0]," and ").concat(t[1]," arguments");break;default:i+=t.slice(0,n-1).join(", "),i+=", and ".concat(t[n-1]," arguments");break}return"".concat(i," must be specified")},TypeError);pw.exports.codes=dw});var Sw=R(($C,Ew)=>{"use strict";m();function vw(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),r.push.apply(r,i)}return r}function yw(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?vw(Object(r),!0).forEach(function(i){AT(e,i,r[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):vw(Object(r)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(r,i))})}return e}function AT(e,t,r){return t=mw(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function BT(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function gw(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,mw(i.key),i)}}function RT(e,t,r){return t&&gw(e.prototype,t),r&&gw(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function mw(e){var t=kT(e,"string");return Mt(t)==="symbol"?t:String(t)}function kT(e,t){if(Mt(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var i=r.call(e,t||"default");if(Mt(i)!=="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function TT(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&zo(e,t)}function IT(e){var t=xw();return function(){var i=Zo(e),n;if(t){var a=Zo(this).constructor;n=Reflect.construct(i,arguments,a)}else n=i.apply(this,arguments);return ww(this,n)}}function ww(e,t){if(t&&(Mt(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return n0(e)}function n0(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function a0(e){var t=typeof Map=="function"?new Map:void 0;return a0=function(i){if(i===null||!OT(i))return i;if(typeof i!="function")throw new TypeError("Super expression must either be null or a function");if(typeof t<"u"){if(t.has(i))return t.get(i);t.set(i,n)}function n(){return lu(i,arguments,Zo(this).constructor)}return n.prototype=Object.create(i.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),zo(n,i)},a0(e)}function lu(e,t,r){return xw()?lu=Reflect.construct.bind():lu=function(n,a,o){var s=[null];s.push.apply(s,a);var y=Function.bind.apply(n,s),_=new y;return o&&zo(_,o.prototype),_},lu.apply(null,arguments)}function xw(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function OT(e){return Function.toString.call(e).indexOf("[native code]")!==-1}function zo(e,t){return zo=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(i,n){return i.__proto__=n,i},zo(e,t)}function Zo(e){return Zo=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Zo(e)}function Mt(e){"@babel/helpers - typeof";return Mt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Mt(e)}var qT=Gt(),o0=qT.inspect,DT=i0(),NT=DT.codes.ERR_INVALID_ARG_TYPE;function bw(e,t,r){return(r===void 0||r>e.length)&&(r=e.length),e.substring(r-t.length,r)===t}function PT(e,t){if(t=Math.floor(t),e.length==0||t==0)return"";var r=e.length*t;for(t=Math.floor(Math.log(t)/Math.log(2));t;)e+=e,t--;return e+=e.substring(0,r-e.length),e}var ir="",Uo="",Fo="",lt="",sn={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:"},LT=10;function _w(e){var t=Object.keys(e),r=Object.create(Object.getPrototypeOf(e));return t.forEach(function(i){r[i]=e[i]}),Object.defineProperty(r,"message",{value:e.message}),r}function jo(e){return o0(e,{compact:!1,customInspect:!1,depth:1e3,maxArrayLength:1/0,showHidden:!1,breakLength:1/0,showProxy:!1,sorted:!0,getters:!0})}function CT(e,t,r){var i="",n="",a=0,o="",s=!1,y=jo(e),_=y.split(`
18
+ `),x=jo(t).split(`
19
+ `),B=0,k="";if(r==="strictEqual"&&Mt(e)==="object"&&Mt(t)==="object"&&e!==null&&t!==null&&(r="strictEqualObject"),_.length===1&&x.length===1&&_[0]!==x[0]){var T=_[0].length+x[0].length;if(T<=LT){if((Mt(e)!=="object"||e===null)&&(Mt(t)!=="object"||t===null)&&(e!==0||t!==0))return"".concat(sn[r],`
20
+
21
+ `)+"".concat(_[0]," !== ").concat(x[0],`
22
+ `)}else if(r!=="strictEqualObject"){var O=M.default.stderr&&M.default.stderr.isTTY?M.default.stderr.columns:80;if(T<O){for(;_[0][B]===x[0][B];)B++;B>2&&(k=`
23
+ `.concat(PT(" ",B),"^"),B=0)}}}for(var D=_[_.length-1],U=x[x.length-1];D===U&&(B++<2?o=`
24
+ `.concat(D).concat(o):i=D,_.pop(),x.pop(),!(_.length===0||x.length===0));)D=_[_.length-1],U=x[x.length-1];var N=Math.max(_.length,x.length);if(N===0){var j=y.split(`
25
+ `);if(j.length>30)for(j[26]="".concat(ir,"...").concat(lt);j.length>27;)j.pop();return"".concat(sn.notIdentical,`
26
+
27
+ `).concat(j.join(`
28
+ `),`
29
+ `)}B>3&&(o=`
30
+ `.concat(ir,"...").concat(lt).concat(o),s=!0),i!==""&&(o=`
31
+ `.concat(i).concat(o),i="");var H=0,W=sn[r]+`
32
+ `.concat(Uo,"+ actual").concat(lt," ").concat(Fo,"- expected").concat(lt),Z=" ".concat(ir,"...").concat(lt," Lines skipped");for(B=0;B<N;B++){var K=B-a;if(_.length<B+1)K>1&&B>2&&(K>4?(n+=`
33
+ `.concat(ir,"...").concat(lt),s=!0):K>3&&(n+=`
34
+ `.concat(x[B-2]),H++),n+=`
35
+ `.concat(x[B-1]),H++),a=B,i+=`
36
+ `.concat(Fo,"-").concat(lt," ").concat(x[B]),H++;else if(x.length<B+1)K>1&&B>2&&(K>4?(n+=`
37
+ `.concat(ir,"...").concat(lt),s=!0):K>3&&(n+=`
38
+ `.concat(_[B-2]),H++),n+=`
39
+ `.concat(_[B-1]),H++),a=B,n+=`
40
+ `.concat(Uo,"+").concat(lt," ").concat(_[B]),H++;else{var J=x[B],z=_[B],X=z!==J&&(!bw(z,",")||z.slice(0,-1)!==J);X&&bw(J,",")&&J.slice(0,-1)===z&&(X=!1,z+=","),X?(K>1&&B>2&&(K>4?(n+=`
41
+ `.concat(ir,"...").concat(lt),s=!0):K>3&&(n+=`
42
+ `.concat(_[B-2]),H++),n+=`
43
+ `.concat(_[B-1]),H++),a=B,n+=`
44
+ `.concat(Uo,"+").concat(lt," ").concat(z),i+=`
45
+ `.concat(Fo,"-").concat(lt," ").concat(J),H+=2):(n+=i,i="",(K===1||B===0)&&(n+=`
46
+ `.concat(z),H++))}if(H>20&&B<N-2)return"".concat(W).concat(Z,`
47
+ `).concat(n,`
48
+ `).concat(ir,"...").concat(lt).concat(i,`
49
+ `)+"".concat(ir,"...").concat(lt)}return"".concat(W).concat(s?Z:"",`
50
+ `).concat(n).concat(i).concat(o).concat(k)}var UT=(function(e,t){TT(i,e);var r=IT(i);function i(n){var a;if(BT(this,i),Mt(n)!=="object"||n===null)throw new NT("options","Object",n);var o=n.message,s=n.operator,y=n.stackStartFn,_=n.actual,x=n.expected,B=Error.stackTraceLimit;if(Error.stackTraceLimit=0,o!=null)a=r.call(this,String(o));else if(M.default.stderr&&M.default.stderr.isTTY&&(M.default.stderr&&M.default.stderr.getColorDepth&&M.default.stderr.getColorDepth()!==1?(ir="\x1B[34m",Uo="\x1B[32m",lt="\x1B[39m",Fo="\x1B[31m"):(ir="",Uo="",lt="",Fo="")),Mt(_)==="object"&&_!==null&&Mt(x)==="object"&&x!==null&&"stack"in _&&_ instanceof Error&&"stack"in x&&x instanceof Error&&(_=_w(_),x=_w(x)),s==="deepStrictEqual"||s==="strictEqual")a=r.call(this,CT(_,x,s));else if(s==="notDeepStrictEqual"||s==="notStrictEqual"){var k=sn[s],T=jo(_).split(`
51
+ `);if(s==="notStrictEqual"&&Mt(_)==="object"&&_!==null&&(k=sn.notStrictEqualObject),T.length>30)for(T[26]="".concat(ir,"...").concat(lt);T.length>27;)T.pop();T.length===1?a=r.call(this,"".concat(k," ").concat(T[0])):a=r.call(this,"".concat(k,`
52
+
53
+ `).concat(T.join(`
54
+ `),`
55
+ `))}else{var O=jo(_),D="",U=sn[s];s==="notDeepEqual"||s==="notEqual"?(O="".concat(sn[s],`
56
+
57
+ `).concat(O),O.length>1024&&(O="".concat(O.slice(0,1021),"..."))):(D="".concat(jo(x)),O.length>512&&(O="".concat(O.slice(0,509),"...")),D.length>512&&(D="".concat(D.slice(0,509),"...")),s==="deepEqual"||s==="equal"?O="".concat(U,`
58
+
59
+ `).concat(O,`
60
+
61
+ should equal
62
+
63
+ `):D=" ".concat(s," ").concat(D)),a=r.call(this,"".concat(O).concat(D))}return Error.stackTraceLimit=B,a.generatedMessage=!o,Object.defineProperty(n0(a),"name",{value:"AssertionError [ERR_ASSERTION]",enumerable:!1,writable:!0,configurable:!0}),a.code="ERR_ASSERTION",a.actual=_,a.expected=x,a.operator=s,Error.captureStackTrace&&Error.captureStackTrace(n0(a),y),a.stack,a.name="AssertionError",ww(a)}return RT(i,[{key:"toString",value:function(){return"".concat(this.name," [").concat(this.code,"]: ").concat(this.message)}},{key:t,value:function(a,o){return o0(this,yw(yw({},o),{},{customInspect:!1,depth:0}))}}]),i})(a0(Error),o0.custom);Ew.exports=UT});var f0=R((JC,Aw)=>{"use strict";m();var Mw=Object.prototype.toString;Aw.exports=function(t){var r=Mw.call(t),i=r==="[object Arguments]";return i||(i=r!=="[object Array]"&&t!==null&&typeof t=="object"&&typeof t.length=="number"&&t.length>=0&&Mw.call(t.callee)==="[object Function]"),i}});var Nw=R((QC,Dw)=>{"use strict";m();var qw;Object.keys||(Ho=Object.prototype.hasOwnProperty,s0=Object.prototype.toString,Bw=f0(),u0=Object.prototype.propertyIsEnumerable,Rw=!u0.call({toString:null},"toString"),kw=u0.call(function(){},"prototype"),Wo=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],hu=function(e){var t=e.constructor;return t&&t.prototype===e},Tw={$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},Iw=(function(){if(typeof window>"u")return!1;for(var e in window)try{if(!Tw["$"+e]&&Ho.call(window,e)&&window[e]!==null&&typeof window[e]=="object")try{hu(window[e])}catch{return!0}}catch{return!0}return!1})(),Ow=function(e){if(typeof window>"u"||!Iw)return hu(e);try{return hu(e)}catch{return!1}},qw=function(t){var r=t!==null&&typeof t=="object",i=s0.call(t)==="[object Function]",n=Bw(t),a=r&&s0.call(t)==="[object String]",o=[];if(!r&&!i&&!n)throw new TypeError("Object.keys called on a non-object");var s=kw&&i;if(a&&t.length>0&&!Ho.call(t,0))for(var y=0;y<t.length;++y)o.push(String(y));if(n&&t.length>0)for(var _=0;_<t.length;++_)o.push(String(_));else for(var x in t)!(s&&x==="prototype")&&Ho.call(t,x)&&o.push(String(x));if(Rw)for(var B=Ow(t),k=0;k<Wo.length;++k)!(B&&Wo[k]==="constructor")&&Ho.call(t,Wo[k])&&o.push(Wo[k]);return o});var Ho,s0,Bw,u0,Rw,kw,Wo,hu,Tw,Iw,Ow;Dw.exports=qw});var l0=R((tU,Cw)=>{"use strict";m();var FT=Array.prototype.slice,jT=f0(),Pw=Object.keys,cu=Pw?function(t){return Pw(t)}:Nw(),Lw=Object.keys;cu.shim=function(){if(Object.keys){var t=(function(){var r=Object.keys(arguments);return r&&r.length===arguments.length})(1,2);t||(Object.keys=function(i){return jT(i)?Lw(FT.call(i)):Lw(i)})}else Object.keys=cu;return Object.keys||cu};Cw.exports=cu});var Zw=R((iU,zw)=>{"use strict";m();var zT=l0(),Fw=_f()(),jw=Hr(),du=mf(),ZT=jw("Array.prototype.push"),Uw=jw("Object.prototype.propertyIsEnumerable"),HT=Fw?du.getOwnPropertySymbols:null;zw.exports=function(t,r){if(t==null)throw new TypeError("target must be an object");var i=du(t);if(arguments.length===1)return i;for(var n=1;n<arguments.length;++n){var a=du(arguments[n]),o=zT(a),s=Fw&&(du.getOwnPropertySymbols||HT);if(s)for(var y=s(a),_=0;_<y.length;++_){var x=y[_];Uw(a,x)&&ZT(o,x)}for(var B=0;B<o.length;++B){var k=o[B];if(Uw(a,k)){var T=a[k];i[k]=T}}}return i}});var Ww=R((aU,Hw)=>{"use strict";m();var h0=Zw(),WT=function(){if(!Object.assign)return!1;for(var e="abcdefghijklmnopqrst",t=e.split(""),r={},i=0;i<t.length;++i)r[t[i]]=t[i];var n=Object.assign({},r),a="";for(var o in n)a+=o;return e!==a},KT=function(){if(!Object.assign||!Object.preventExtensions)return!1;var e=Object.preventExtensions({1:2});try{Object.assign(e,"xy")}catch{return e[1]==="y"}return!1};Hw.exports=function(){return!Object.assign||WT()||KT()?h0:Object.assign}});var c0=R((fU,Gw)=>{"use strict";m();var Kw=function(e){return e!==e};Gw.exports=function(t,r){return t===0&&r===0?1/t===1/r:!!(t===r||Kw(t)&&Kw(r))}});var pu=R((uU,Vw)=>{"use strict";m();var GT=c0();Vw.exports=function(){return typeof Object.is=="function"?Object.is:GT}});var Xw=R((hU,Jw)=>{"use strict";m();var $w=kf(),Yw=Za(),VT=Yw($w("String.prototype.indexOf"));Jw.exports=function(t,r){var i=$w(t,!!r);return typeof i=="function"&&VT(t,".prototype.")>-1?Yw(i):i}});var Ko=R((dU,r2)=>{"use strict";m();var $T=l0(),YT=typeof Symbol=="function"&&typeof Symbol("foo")=="symbol",JT=Object.prototype.toString,XT=Array.prototype.concat,Qw=Tl(),QT=function(e){return typeof e=="function"&&JT.call(e)==="[object Function]"},e2=Ol()(),e7=function(e,t,r,i){if(t in e){if(i===!0){if(e[t]===r)return}else if(!QT(i)||!i())return}e2?Qw(e,t,r,!0):Qw(e,t,r)},t2=function(e,t){var r=arguments.length>2?arguments[2]:{},i=$T(t);YT&&(i=XT.call(i,Object.getOwnPropertySymbols(t)));for(var n=0;n<i.length;n+=1)e7(e,i[n],t[i[n]],r[i[n]])};t2.supportsDescriptors=!!e2;r2.exports=t2});var n2=R((vU,i2)=>{"use strict";m();var t7=pu(),r7=Ko();i2.exports=function(){var t=t7();return r7(Object,{is:t},{is:function(){return Object.is!==t}}),t}});var s2=R((gU,f2)=>{"use strict";m();var i7=Ko(),n7=Za(),a7=c0(),a2=pu(),o7=n2(),o2=n7(a2(),Object);i7(o2,{getPolyfill:a2,implementation:a7,shim:o7});f2.exports=o2});var d0=R((_U,u2)=>{"use strict";m();u2.exports=function(t){return t!==t}});var p0=R((wU,l2)=>{"use strict";m();var f7=d0();l2.exports=function(){return Number.isNaN&&Number.isNaN(NaN)&&!Number.isNaN("a")?Number.isNaN:f7}});var c2=R((EU,h2)=>{"use strict";m();var s7=Ko(),u7=p0();h2.exports=function(){var t=u7();return s7(Number,{isNaN:t},{isNaN:function(){return Number.isNaN!==t}}),t}});var y2=R((MU,v2)=>{"use strict";m();var l7=Za(),h7=Ko(),c7=d0(),d2=p0(),d7=c2(),p2=l7(d2(),Number);h7(p2,{getPolyfill:d2,implementation:c7,shim:d7});v2.exports=p2});var P2=R((BU,N2)=>{"use strict";m();function g2(e,t){return g7(e)||y7(e,t)||v7(e,t)||p7()}function p7(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
64
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function v7(e,t){if(e){if(typeof e=="string")return b2(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return b2(e,t)}}function b2(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,i=new Array(t);r<t;r++)i[r]=e[r];return i}function y7(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var i,n,a,o,s=[],y=!0,_=!1;try{if(a=(r=r.call(e)).next,t===0){if(Object(r)!==r)return;y=!1}else for(;!(y=(i=a.call(r)).done)&&(s.push(i.value),s.length!==t);y=!0);}catch(x){_=!0,n=x}finally{try{if(!y&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(_)throw n}}return s}}function g7(e){if(Array.isArray(e))return e}function Ft(e){"@babel/helpers - typeof";return Ft=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ft(e)}var b7=/a/g.flags!==void 0,wu=function(t){var r=[];return t.forEach(function(i){return r.push(i)}),r},_2=function(t){var r=[];return t.forEach(function(i,n){return r.push([n,i])}),r},T2=Object.is?Object.is:s2(),_u=Object.getOwnPropertySymbols?Object.getOwnPropertySymbols:function(){return[]},v0=Number.isNaN?Number.isNaN:y2();function g0(e){return e.call.bind(e)}var Vo=g0(Object.prototype.hasOwnProperty),mu=g0(Object.prototype.propertyIsEnumerable),m2=g0(Object.prototype.toString),_t=Gt().types,_7=_t.isAnyArrayBuffer,m7=_t.isArrayBufferView,w2=_t.isDate,vu=_t.isMap,x2=_t.isRegExp,yu=_t.isSet,w7=_t.isNativeError,x7=_t.isBoxedPrimitive,E2=_t.isNumberObject,S2=_t.isStringObject,M2=_t.isBooleanObject,A2=_t.isBigIntObject,E7=_t.isSymbolObject,S7=_t.isFloat32Array,M7=_t.isFloat64Array;function A7(e){if(e.length===0||e.length>10)return!0;for(var t=0;t<e.length;t++){var r=e.charCodeAt(t);if(r<48||r>57)return!0}return e.length===10&&e>=Math.pow(2,32)}function gu(e){return Object.keys(e).filter(A7).concat(_u(e).filter(Object.prototype.propertyIsEnumerable.bind(e)))}function I2(e,t){if(e===t)return 0;for(var r=e.length,i=t.length,n=0,a=Math.min(r,i);n<a;++n)if(e[n]!==t[n]){r=e[n],i=t[n];break}return r<i?-1:i<r?1:0}var bu=void 0,B7=!0,R7=!1,y0=0,b0=1,O2=2,q2=3;function k7(e,t){return b7?e.source===t.source&&e.flags===t.flags:RegExp.prototype.toString.call(e)===RegExp.prototype.toString.call(t)}function T7(e,t){if(e.byteLength!==t.byteLength)return!1;for(var r=0;r<e.byteLength;r++)if(e[r]!==t[r])return!1;return!0}function I7(e,t){return e.byteLength!==t.byteLength?!1:I2(new Uint8Array(e.buffer,e.byteOffset,e.byteLength),new Uint8Array(t.buffer,t.byteOffset,t.byteLength))===0}function O7(e,t){return e.byteLength===t.byteLength&&I2(new Uint8Array(e),new Uint8Array(t))===0}function q7(e,t){return E2(e)?E2(t)&&T2(Number.prototype.valueOf.call(e),Number.prototype.valueOf.call(t)):S2(e)?S2(t)&&String.prototype.valueOf.call(e)===String.prototype.valueOf.call(t):M2(e)?M2(t)&&Boolean.prototype.valueOf.call(e)===Boolean.prototype.valueOf.call(t):A2(e)?A2(t)&&BigInt.prototype.valueOf.call(e)===BigInt.prototype.valueOf.call(t):E7(t)&&Symbol.prototype.valueOf.call(e)===Symbol.prototype.valueOf.call(t)}function jt(e,t,r,i){if(e===t)return e!==0?!0:r?T2(e,t):!0;if(r){if(Ft(e)!=="object")return typeof e=="number"&&v0(e)&&v0(t);if(Ft(t)!=="object"||e===null||t===null||Object.getPrototypeOf(e)!==Object.getPrototypeOf(t))return!1}else{if(e===null||Ft(e)!=="object")return t===null||Ft(t)!=="object"?e==t:!1;if(t===null||Ft(t)!=="object")return!1}var n=m2(e),a=m2(t);if(n!==a)return!1;if(Array.isArray(e)){if(e.length!==t.length)return!1;var o=gu(e,bu),s=gu(t,bu);return o.length!==s.length?!1:Go(e,t,r,i,b0,o)}if(n==="[object Object]"&&(!vu(e)&&vu(t)||!yu(e)&&yu(t)))return!1;if(w2(e)){if(!w2(t)||Date.prototype.getTime.call(e)!==Date.prototype.getTime.call(t))return!1}else if(x2(e)){if(!x2(t)||!k7(e,t))return!1}else if(w7(e)||e instanceof Error){if(e.message!==t.message||e.name!==t.name)return!1}else if(m7(e)){if(!r&&(S7(e)||M7(e))){if(!T7(e,t))return!1}else if(!I7(e,t))return!1;var y=gu(e,bu),_=gu(t,bu);return y.length!==_.length?!1:Go(e,t,r,i,y0,y)}else{if(yu(e))return!yu(t)||e.size!==t.size?!1:Go(e,t,r,i,O2);if(vu(e))return!vu(t)||e.size!==t.size?!1:Go(e,t,r,i,q2);if(_7(e)){if(!O7(e,t))return!1}else if(x7(e)&&!q7(e,t))return!1}return Go(e,t,r,i,y0)}function B2(e,t){return t.filter(function(r){return mu(e,r)})}function Go(e,t,r,i,n,a){if(arguments.length===5){a=Object.keys(e);var o=Object.keys(t);if(a.length!==o.length)return!1}for(var s=0;s<a.length;s++)if(!Vo(t,a[s]))return!1;if(r&&arguments.length===5){var y=_u(e);if(y.length!==0){var _=0;for(s=0;s<y.length;s++){var x=y[s];if(mu(e,x)){if(!mu(t,x))return!1;a.push(x),_++}else if(mu(t,x))return!1}var B=_u(t);if(y.length!==B.length&&B2(t,B).length!==_)return!1}else{var k=_u(t);if(k.length!==0&&B2(t,k).length!==0)return!1}}if(a.length===0&&(n===y0||n===b0&&e.length===0||e.size===0))return!0;if(i===void 0)i={val1:new Map,val2:new Map,position:0};else{var T=i.val1.get(e);if(T!==void 0){var O=i.val2.get(t);if(O!==void 0)return T===O}i.position++}i.val1.set(e,i.position),i.val2.set(t,i.position);var D=C7(e,t,r,a,i,n);return i.val1.delete(e),i.val2.delete(t),D}function R2(e,t,r,i){for(var n=wu(e),a=0;a<n.length;a++){var o=n[a];if(jt(t,o,r,i))return e.delete(o),!0}return!1}function D2(e){switch(Ft(e)){case"undefined":return null;case"object":return;case"symbol":return!1;case"string":e=+e;case"number":if(v0(e))return!1}return!0}function D7(e,t,r){var i=D2(r);return i??(t.has(i)&&!e.has(i))}function N7(e,t,r,i,n){var a=D2(r);if(a!=null)return a;var o=t.get(a);return o===void 0&&!t.has(a)||!jt(i,o,!1,n)?!1:!e.has(a)&&jt(i,o,!1,n)}function P7(e,t,r,i){for(var n=null,a=wu(e),o=0;o<a.length;o++){var s=a[o];if(Ft(s)==="object"&&s!==null)n===null&&(n=new Set),n.add(s);else if(!t.has(s)){if(r||!D7(e,t,s))return!1;n===null&&(n=new Set),n.add(s)}}if(n!==null){for(var y=wu(t),_=0;_<y.length;_++){var x=y[_];if(Ft(x)==="object"&&x!==null){if(!R2(n,x,r,i))return!1}else if(!r&&!e.has(x)&&!R2(n,x,r,i))return!1}return n.size===0}return!0}function k2(e,t,r,i,n,a){for(var o=wu(e),s=0;s<o.length;s++){var y=o[s];if(jt(r,y,n,a)&&jt(i,t.get(y),n,a))return e.delete(y),!0}return!1}function L7(e,t,r,i){for(var n=null,a=_2(e),o=0;o<a.length;o++){var s=g2(a[o],2),y=s[0],_=s[1];if(Ft(y)==="object"&&y!==null)n===null&&(n=new Set),n.add(y);else{var x=t.get(y);if(x===void 0&&!t.has(y)||!jt(_,x,r,i)){if(r||!N7(e,t,y,_,i))return!1;n===null&&(n=new Set),n.add(y)}}}if(n!==null){for(var B=_2(t),k=0;k<B.length;k++){var T=g2(B[k],2),O=T[0],D=T[1];if(Ft(O)==="object"&&O!==null){if(!k2(n,e,O,D,r,i))return!1}else if(!r&&(!e.has(O)||!jt(e.get(O),D,!1,i))&&!k2(n,e,O,D,!1,i))return!1}return n.size===0}return!0}function C7(e,t,r,i,n,a){var o=0;if(a===O2){if(!P7(e,t,r,n))return!1}else if(a===q2){if(!L7(e,t,r,n))return!1}else if(a===b0)for(;o<e.length;o++)if(Vo(e,o)){if(!Vo(t,o)||!jt(e[o],t[o],r,n))return!1}else{if(Vo(t,o))return!1;for(var s=Object.keys(e);o<s.length;o++){var y=s[o];if(!Vo(t,y)||!jt(e[y],t[y],r,n))return!1}return s.length===Object.keys(t).length}for(o=0;o<i.length;o++){var _=i[o];if(!jt(e[_],t[_],r,n))return!1}return!0}function U7(e,t){return jt(e,t,R7)}function F7(e,t){return jt(e,t,B7)}N2.exports={isDeepEqual:U7,isDeepStrictEqual:F7}});var Co=R((kU,ex)=>{"use strict";m();function nr(e){"@babel/helpers - typeof";return nr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},nr(e)}function L2(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,z7(i.key),i)}}function j7(e,t,r){return t&&L2(e.prototype,t),r&&L2(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function z7(e){var t=Z7(e,"string");return nr(t)==="symbol"?t:String(t)}function Z7(e,t){if(nr(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var i=r.call(e,t||"default");if(nr(i)!=="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function H7(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var W7=i0(),$o=W7.codes,C2=$o.ERR_AMBIGUOUS_ARGUMENT,da=$o.ERR_INVALID_ARG_TYPE,K7=$o.ERR_INVALID_ARG_VALUE,G7=$o.ERR_INVALID_RETURN_VALUE,ni=$o.ERR_MISSING_ARGS,ai=Sw(),V7=Gt(),xu=V7.inspect,z2=Gt().types,$7=z2.isPromise,Eu=z2.isRegExp,Y7=Ww()(),Z2=pu()(),Su=Xw()("RegExp.prototype.test"),ii,Mu;function Yo(){var e=P2();ii=e.isDeepEqual,Mu=e.isDeepStrictEqual}var U2=!1,Ge=ex.exports=_0,Au={};function ar(e){throw e.message instanceof Error?e.message:new ai(e)}function H2(e,t,r,i,n){var a=arguments.length,o;if(a===0)o="Failed";else if(a===1)r=e,e=void 0;else{if(U2===!1){U2=!0;var s=M.default.emitWarning?M.default.emitWarning:console.warn.bind(console);s("assert.fail() with more than one argument is deprecated. Please use assert.strictEqual() instead or only pass a message.","DeprecationWarning","DEP0094")}a===2&&(i="!=")}if(r instanceof Error)throw r;var y={actual:e,expected:t,operator:i===void 0?"fail":i,stackStartFn:n||H2};r!==void 0&&(y.message=r);var _=new ai(y);throw o&&(_.message=o,_.generatedMessage=!0),_}Ge.fail=H2;Ge.AssertionError=ai;function W2(e,t,r,i){if(!r){var n=!1;if(t===0)n=!0,i="No value argument passed to `assert.ok()`";else if(i instanceof Error)throw i;var a=new ai({actual:r,expected:!0,message:i,operator:"==",stackStartFn:e});throw a.generatedMessage=n,a}}function _0(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];W2.apply(void 0,[_0,t.length].concat(t))}Ge.ok=_0;Ge.equal=function e(t,r,i){if(arguments.length<2)throw new ni("actual","expected");t!=r&&ar({actual:t,expected:r,message:i,operator:"==",stackStartFn:e})};Ge.notEqual=function e(t,r,i){if(arguments.length<2)throw new ni("actual","expected");t==r&&ar({actual:t,expected:r,message:i,operator:"!=",stackStartFn:e})};Ge.deepEqual=function e(t,r,i){if(arguments.length<2)throw new ni("actual","expected");ii===void 0&&Yo(),ii(t,r)||ar({actual:t,expected:r,message:i,operator:"deepEqual",stackStartFn:e})};Ge.notDeepEqual=function e(t,r,i){if(arguments.length<2)throw new ni("actual","expected");ii===void 0&&Yo(),ii(t,r)&&ar({actual:t,expected:r,message:i,operator:"notDeepEqual",stackStartFn:e})};Ge.deepStrictEqual=function e(t,r,i){if(arguments.length<2)throw new ni("actual","expected");ii===void 0&&Yo(),Mu(t,r)||ar({actual:t,expected:r,message:i,operator:"deepStrictEqual",stackStartFn:e})};Ge.notDeepStrictEqual=K2;function K2(e,t,r){if(arguments.length<2)throw new ni("actual","expected");ii===void 0&&Yo(),Mu(e,t)&&ar({actual:e,expected:t,message:r,operator:"notDeepStrictEqual",stackStartFn:K2})}Ge.strictEqual=function e(t,r,i){if(arguments.length<2)throw new ni("actual","expected");Z2(t,r)||ar({actual:t,expected:r,message:i,operator:"strictEqual",stackStartFn:e})};Ge.notStrictEqual=function e(t,r,i){if(arguments.length<2)throw new ni("actual","expected");Z2(t,r)&&ar({actual:t,expected:r,message:i,operator:"notStrictEqual",stackStartFn:e})};var F2=j7(function e(t,r,i){var n=this;H7(this,e),r.forEach(function(a){a in t&&(i!==void 0&&typeof i[a]=="string"&&Eu(t[a])&&Su(t[a],i[a])?n[a]=i[a]:n[a]=t[a])})});function J7(e,t,r,i,n,a){if(!(r in e)||!Mu(e[r],t[r])){if(!i){var o=new F2(e,n),s=new F2(t,n,e),y=new ai({actual:o,expected:s,operator:"deepStrictEqual",stackStartFn:a});throw y.actual=e,y.expected=t,y.operator=a.name,y}ar({actual:e,expected:t,message:i,operator:a.name,stackStartFn:a})}}function G2(e,t,r,i){if(typeof t!="function"){if(Eu(t))return Su(t,e);if(arguments.length===2)throw new da("expected",["Function","RegExp"],t);if(nr(e)!=="object"||e===null){var n=new ai({actual:e,expected:t,message:r,operator:"deepStrictEqual",stackStartFn:i});throw n.operator=i.name,n}var a=Object.keys(t);if(t instanceof Error)a.push("name","message");else if(a.length===0)throw new K7("error",t,"may not be an empty object");return ii===void 0&&Yo(),a.forEach(function(o){typeof e[o]=="string"&&Eu(t[o])&&Su(t[o],e[o])||J7(e,t,o,r,a,i)}),!0}return t.prototype!==void 0&&e instanceof t?!0:Error.isPrototypeOf(t)?!1:t.call({},e)===!0}function V2(e){if(typeof e!="function")throw new da("fn","Function",e);try{e()}catch(t){return t}return Au}function j2(e){return $7(e)||e!==null&&nr(e)==="object"&&typeof e.then=="function"&&typeof e.catch=="function"}function $2(e){return Promise.resolve().then(function(){var t;if(typeof e=="function"){if(t=e(),!j2(t))throw new G7("instance of Promise","promiseFn",t)}else if(j2(e))t=e;else throw new da("promiseFn",["Function","Promise"],e);return Promise.resolve().then(function(){return t}).then(function(){return Au}).catch(function(r){return r})})}function Y2(e,t,r,i){if(typeof r=="string"){if(arguments.length===4)throw new da("error",["Object","Error","Function","RegExp"],r);if(nr(t)==="object"&&t!==null){if(t.message===r)throw new C2("error/message",'The error message "'.concat(t.message,'" is identical to the message.'))}else if(t===r)throw new C2("error/message",'The error "'.concat(t,'" is identical to the message.'));i=r,r=void 0}else if(r!=null&&nr(r)!=="object"&&typeof r!="function")throw new da("error",["Object","Error","Function","RegExp"],r);if(t===Au){var n="";r&&r.name&&(n+=" (".concat(r.name,")")),n+=i?": ".concat(i):".";var a=e.name==="rejects"?"rejection":"exception";ar({actual:void 0,expected:r,operator:e.name,message:"Missing expected ".concat(a).concat(n),stackStartFn:e})}if(r&&!G2(t,r,i,e))throw t}function J2(e,t,r,i){if(t!==Au){if(typeof r=="string"&&(i=r,r=void 0),!r||G2(t,r)){var n=i?": ".concat(i):".",a=e.name==="doesNotReject"?"rejection":"exception";ar({actual:t,expected:r,operator:e.name,message:"Got unwanted ".concat(a).concat(n,`
65
+ `)+'Actual message: "'.concat(t&&t.message,'"'),stackStartFn:e})}throw t}}Ge.throws=function e(t){for(var r=arguments.length,i=new Array(r>1?r-1:0),n=1;n<r;n++)i[n-1]=arguments[n];Y2.apply(void 0,[e,V2(t)].concat(i))};Ge.rejects=function e(t){for(var r=arguments.length,i=new Array(r>1?r-1:0),n=1;n<r;n++)i[n-1]=arguments[n];return $2(t).then(function(a){return Y2.apply(void 0,[e,a].concat(i))})};Ge.doesNotThrow=function e(t){for(var r=arguments.length,i=new Array(r>1?r-1:0),n=1;n<r;n++)i[n-1]=arguments[n];J2.apply(void 0,[e,V2(t)].concat(i))};Ge.doesNotReject=function e(t){for(var r=arguments.length,i=new Array(r>1?r-1:0),n=1;n<r;n++)i[n-1]=arguments[n];return $2(t).then(function(a){return J2.apply(void 0,[e,a].concat(i))})};Ge.ifError=function e(t){if(t!=null){var r="ifError got unwanted exception: ";nr(t)==="object"&&typeof t.message=="string"?t.message.length===0&&t.constructor?r+=t.constructor.name:r+=t.message:r+=xu(t);var i=new ai({actual:t,expected:null,operator:"ifError",message:r,stackStartFn:e}),n=t.stack;if(typeof n=="string"){var a=n.split(`
66
+ `);a.shift();for(var o=i.stack.split(`
67
+ `),s=0;s<a.length;s++){var y=o.indexOf(a[s]);if(y!==-1){o=o.slice(0,y);break}}i.stack="".concat(o.join(`
68
+ `),`
69
+ `).concat(a.join(`
70
+ `))}throw i}};function X2(e,t,r,i,n){if(!Eu(t))throw new da("regexp","RegExp",t);var a=n==="match";if(typeof e!="string"||Su(t,e)!==a){if(r instanceof Error)throw r;var o=!r;r=r||(typeof e!="string"?'The "string" argument must be of type string. Received type '+"".concat(nr(e)," (").concat(xu(e),")"):(a?"The input did not match the regular expression ":"The input was expected to not match the regular expression ")+"".concat(xu(t),`. Input:
71
+
72
+ `).concat(xu(e),`
73
+ `));var s=new ai({actual:e,expected:t,message:r,operator:n,stackStartFn:i});throw s.generatedMessage=o,s}}Ge.match=function e(t,r,i){X2(t,r,i,e,"match")};Ge.doesNotMatch=function e(t,r,i){X2(t,r,i,e,"doesNotMatch")};function Q2(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];W2.apply(void 0,[Q2,t.length].concat(t))}Ge.strict=Y7(Q2,Ge,{equal:Ge.strictEqual,deepEqual:Ge.deepStrictEqual,notEqual:Ge.notStrictEqual,notDeepEqual:Ge.notDeepStrictEqual});Ge.strict.strict=Ge.strict});var rx=R((IU,tx)=>{"use strict";m();function X7(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}tx.exports=X7});var Jo=R(mt=>{"use strict";m();var Q7=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Int32Array<"u";function eI(e,t){return Object.prototype.hasOwnProperty.call(e,t)}mt.assign=function(e){for(var t=Array.prototype.slice.call(arguments,1);t.length;){var r=t.shift();if(r){if(typeof r!="object")throw new TypeError(r+"must be non-object");for(var i in r)eI(r,i)&&(e[i]=r[i])}}return e};mt.shrinkBuf=function(e,t){return e.length===t?e:e.subarray?e.subarray(0,t):(e.length=t,e)};var tI={arraySet:function(e,t,r,i,n){if(t.subarray&&e.subarray){e.set(t.subarray(r,r+i),n);return}for(var a=0;a<i;a++)e[n+a]=t[r+a]},flattenChunks:function(e){var t,r,i,n,a,o;for(i=0,t=0,r=e.length;t<r;t++)i+=e[t].length;for(o=new Uint8Array(i),n=0,t=0,r=e.length;t<r;t++)a=e[t],o.set(a,n),n+=a.length;return o}},rI={arraySet:function(e,t,r,i,n){for(var a=0;a<i;a++)e[n+a]=t[r+a]},flattenChunks:function(e){return[].concat.apply([],e)}};mt.setTyped=function(e){e?(mt.Buf8=Uint8Array,mt.Buf16=Uint16Array,mt.Buf32=Int32Array,mt.assign(mt,tI)):(mt.Buf8=Array,mt.Buf16=Array,mt.Buf32=Array,mt.assign(mt,rI))};mt.setTyped(Q7)});var Mx=R(ya=>{"use strict";m();var iI=Jo(),nI=4,ix=0,nx=1,aI=2;function va(e){for(var t=e.length;--t>=0;)e[t]=0}var oI=0,lx=1,fI=2,sI=3,uI=258,A0=29,nf=256,Qo=nf+1+A0,pa=30,B0=19,hx=2*Qo+1,un=15,m0=16,lI=7,R0=256,cx=16,dx=17,px=18,S0=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],Bu=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],hI=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],vx=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],cI=512,jr=new Array((Qo+2)*2);va(jr);var Xo=new Array(pa*2);va(Xo);var ef=new Array(cI);va(ef);var tf=new Array(uI-sI+1);va(tf);var k0=new Array(A0);va(k0);var Ru=new Array(pa);va(Ru);function w0(e,t,r,i,n){this.static_tree=e,this.extra_bits=t,this.extra_base=r,this.elems=i,this.max_length=n,this.has_stree=e&&e.length}var yx,gx,bx;function x0(e,t){this.dyn_tree=e,this.max_code=0,this.stat_desc=t}function _x(e){return e<256?ef[e]:ef[256+(e>>>7)]}function rf(e,t){e.pending_buf[e.pending++]=t&255,e.pending_buf[e.pending++]=t>>>8&255}function At(e,t,r){e.bi_valid>m0-r?(e.bi_buf|=t<<e.bi_valid&65535,rf(e,e.bi_buf),e.bi_buf=t>>m0-e.bi_valid,e.bi_valid+=r-m0):(e.bi_buf|=t<<e.bi_valid&65535,e.bi_valid+=r)}function _r(e,t,r){At(e,r[t*2],r[t*2+1])}function mx(e,t){var r=0;do r|=e&1,e>>>=1,r<<=1;while(--t>0);return r>>>1}function dI(e){e.bi_valid===16?(rf(e,e.bi_buf),e.bi_buf=0,e.bi_valid=0):e.bi_valid>=8&&(e.pending_buf[e.pending++]=e.bi_buf&255,e.bi_buf>>=8,e.bi_valid-=8)}function pI(e,t){var r=t.dyn_tree,i=t.max_code,n=t.stat_desc.static_tree,a=t.stat_desc.has_stree,o=t.stat_desc.extra_bits,s=t.stat_desc.extra_base,y=t.stat_desc.max_length,_,x,B,k,T,O,D=0;for(k=0;k<=un;k++)e.bl_count[k]=0;for(r[e.heap[e.heap_max]*2+1]=0,_=e.heap_max+1;_<hx;_++)x=e.heap[_],k=r[r[x*2+1]*2+1]+1,k>y&&(k=y,D++),r[x*2+1]=k,!(x>i)&&(e.bl_count[k]++,T=0,x>=s&&(T=o[x-s]),O=r[x*2],e.opt_len+=O*(k+T),a&&(e.static_len+=O*(n[x*2+1]+T)));if(D!==0){do{for(k=y-1;e.bl_count[k]===0;)k--;e.bl_count[k]--,e.bl_count[k+1]+=2,e.bl_count[y]--,D-=2}while(D>0);for(k=y;k!==0;k--)for(x=e.bl_count[k];x!==0;)B=e.heap[--_],!(B>i)&&(r[B*2+1]!==k&&(e.opt_len+=(k-r[B*2+1])*r[B*2],r[B*2+1]=k),x--)}}function wx(e,t,r){var i=new Array(un+1),n=0,a,o;for(a=1;a<=un;a++)i[a]=n=n+r[a-1]<<1;for(o=0;o<=t;o++){var s=e[o*2+1];s!==0&&(e[o*2]=mx(i[s]++,s))}}function vI(){var e,t,r,i,n,a=new Array(un+1);for(r=0,i=0;i<A0-1;i++)for(k0[i]=r,e=0;e<1<<S0[i];e++)tf[r++]=i;for(tf[r-1]=i,n=0,i=0;i<16;i++)for(Ru[i]=n,e=0;e<1<<Bu[i];e++)ef[n++]=i;for(n>>=7;i<pa;i++)for(Ru[i]=n<<7,e=0;e<1<<Bu[i]-7;e++)ef[256+n++]=i;for(t=0;t<=un;t++)a[t]=0;for(e=0;e<=143;)jr[e*2+1]=8,e++,a[8]++;for(;e<=255;)jr[e*2+1]=9,e++,a[9]++;for(;e<=279;)jr[e*2+1]=7,e++,a[7]++;for(;e<=287;)jr[e*2+1]=8,e++,a[8]++;for(wx(jr,Qo+1,a),e=0;e<pa;e++)Xo[e*2+1]=5,Xo[e*2]=mx(e,5);yx=new w0(jr,S0,nf+1,Qo,un),gx=new w0(Xo,Bu,0,pa,un),bx=new w0(new Array(0),hI,0,B0,lI)}function xx(e){var t;for(t=0;t<Qo;t++)e.dyn_ltree[t*2]=0;for(t=0;t<pa;t++)e.dyn_dtree[t*2]=0;for(t=0;t<B0;t++)e.bl_tree[t*2]=0;e.dyn_ltree[R0*2]=1,e.opt_len=e.static_len=0,e.last_lit=e.matches=0}function Ex(e){e.bi_valid>8?rf(e,e.bi_buf):e.bi_valid>0&&(e.pending_buf[e.pending++]=e.bi_buf),e.bi_buf=0,e.bi_valid=0}function yI(e,t,r,i){Ex(e),i&&(rf(e,r),rf(e,~r)),iI.arraySet(e.pending_buf,e.window,t,r,e.pending),e.pending+=r}function ax(e,t,r,i){var n=t*2,a=r*2;return e[n]<e[a]||e[n]===e[a]&&i[t]<=i[r]}function E0(e,t,r){for(var i=e.heap[r],n=r<<1;n<=e.heap_len&&(n<e.heap_len&&ax(t,e.heap[n+1],e.heap[n],e.depth)&&n++,!ax(t,i,e.heap[n],e.depth));)e.heap[r]=e.heap[n],r=n,n<<=1;e.heap[r]=i}function ox(e,t,r){var i,n,a=0,o,s;if(e.last_lit!==0)do i=e.pending_buf[e.d_buf+a*2]<<8|e.pending_buf[e.d_buf+a*2+1],n=e.pending_buf[e.l_buf+a],a++,i===0?_r(e,n,t):(o=tf[n],_r(e,o+nf+1,t),s=S0[o],s!==0&&(n-=k0[o],At(e,n,s)),i--,o=_x(i),_r(e,o,r),s=Bu[o],s!==0&&(i-=Ru[o],At(e,i,s)));while(a<e.last_lit);_r(e,R0,t)}function M0(e,t){var r=t.dyn_tree,i=t.stat_desc.static_tree,n=t.stat_desc.has_stree,a=t.stat_desc.elems,o,s,y=-1,_;for(e.heap_len=0,e.heap_max=hx,o=0;o<a;o++)r[o*2]!==0?(e.heap[++e.heap_len]=y=o,e.depth[o]=0):r[o*2+1]=0;for(;e.heap_len<2;)_=e.heap[++e.heap_len]=y<2?++y:0,r[_*2]=1,e.depth[_]=0,e.opt_len--,n&&(e.static_len-=i[_*2+1]);for(t.max_code=y,o=e.heap_len>>1;o>=1;o--)E0(e,r,o);_=a;do o=e.heap[1],e.heap[1]=e.heap[e.heap_len--],E0(e,r,1),s=e.heap[1],e.heap[--e.heap_max]=o,e.heap[--e.heap_max]=s,r[_*2]=r[o*2]+r[s*2],e.depth[_]=(e.depth[o]>=e.depth[s]?e.depth[o]:e.depth[s])+1,r[o*2+1]=r[s*2+1]=_,e.heap[1]=_++,E0(e,r,1);while(e.heap_len>=2);e.heap[--e.heap_max]=e.heap[1],pI(e,t),wx(r,y,e.bl_count)}function fx(e,t,r){var i,n=-1,a,o=t[1],s=0,y=7,_=4;for(o===0&&(y=138,_=3),t[(r+1)*2+1]=65535,i=0;i<=r;i++)a=o,o=t[(i+1)*2+1],!(++s<y&&a===o)&&(s<_?e.bl_tree[a*2]+=s:a!==0?(a!==n&&e.bl_tree[a*2]++,e.bl_tree[cx*2]++):s<=10?e.bl_tree[dx*2]++:e.bl_tree[px*2]++,s=0,n=a,o===0?(y=138,_=3):a===o?(y=6,_=3):(y=7,_=4))}function sx(e,t,r){var i,n=-1,a,o=t[1],s=0,y=7,_=4;for(o===0&&(y=138,_=3),i=0;i<=r;i++)if(a=o,o=t[(i+1)*2+1],!(++s<y&&a===o)){if(s<_)do _r(e,a,e.bl_tree);while(--s!==0);else a!==0?(a!==n&&(_r(e,a,e.bl_tree),s--),_r(e,cx,e.bl_tree),At(e,s-3,2)):s<=10?(_r(e,dx,e.bl_tree),At(e,s-3,3)):(_r(e,px,e.bl_tree),At(e,s-11,7));s=0,n=a,o===0?(y=138,_=3):a===o?(y=6,_=3):(y=7,_=4)}}function gI(e){var t;for(fx(e,e.dyn_ltree,e.l_desc.max_code),fx(e,e.dyn_dtree,e.d_desc.max_code),M0(e,e.bl_desc),t=B0-1;t>=3&&e.bl_tree[vx[t]*2+1]===0;t--);return e.opt_len+=3*(t+1)+5+5+4,t}function bI(e,t,r,i){var n;for(At(e,t-257,5),At(e,r-1,5),At(e,i-4,4),n=0;n<i;n++)At(e,e.bl_tree[vx[n]*2+1],3);sx(e,e.dyn_ltree,t-1),sx(e,e.dyn_dtree,r-1)}function _I(e){var t=4093624447,r;for(r=0;r<=31;r++,t>>>=1)if(t&1&&e.dyn_ltree[r*2]!==0)return ix;if(e.dyn_ltree[18]!==0||e.dyn_ltree[20]!==0||e.dyn_ltree[26]!==0)return nx;for(r=32;r<nf;r++)if(e.dyn_ltree[r*2]!==0)return nx;return ix}var ux=!1;function mI(e){ux||(vI(),ux=!0),e.l_desc=new x0(e.dyn_ltree,yx),e.d_desc=new x0(e.dyn_dtree,gx),e.bl_desc=new x0(e.bl_tree,bx),e.bi_buf=0,e.bi_valid=0,xx(e)}function Sx(e,t,r,i){At(e,(oI<<1)+(i?1:0),3),yI(e,t,r,!0)}function wI(e){At(e,lx<<1,3),_r(e,R0,jr),dI(e)}function xI(e,t,r,i){var n,a,o=0;e.level>0?(e.strm.data_type===aI&&(e.strm.data_type=_I(e)),M0(e,e.l_desc),M0(e,e.d_desc),o=gI(e),n=e.opt_len+3+7>>>3,a=e.static_len+3+7>>>3,a<=n&&(n=a)):n=a=r+5,r+4<=n&&t!==-1?Sx(e,t,r,i):e.strategy===nI||a===n?(At(e,(lx<<1)+(i?1:0),3),ox(e,jr,Xo)):(At(e,(fI<<1)+(i?1:0),3),bI(e,e.l_desc.max_code+1,e.d_desc.max_code+1,o+1),ox(e,e.dyn_ltree,e.dyn_dtree)),xx(e),i&&Ex(e)}function EI(e,t,r){return e.pending_buf[e.d_buf+e.last_lit*2]=t>>>8&255,e.pending_buf[e.d_buf+e.last_lit*2+1]=t&255,e.pending_buf[e.l_buf+e.last_lit]=r&255,e.last_lit++,t===0?e.dyn_ltree[r*2]++:(e.matches++,t--,e.dyn_ltree[(tf[r]+nf+1)*2]++,e.dyn_dtree[_x(t)*2]++),e.last_lit===e.lit_bufsize-1}ya._tr_init=mI;ya._tr_stored_block=Sx;ya._tr_flush_block=xI;ya._tr_tally=EI;ya._tr_align=wI});var T0=R((LU,Ax)=>{"use strict";m();function SI(e,t,r,i){for(var n=e&65535|0,a=e>>>16&65535|0,o=0;r!==0;){o=r>2e3?2e3:r,r-=o;do n=n+t[i++]|0,a=a+n|0;while(--o);n%=65521,a%=65521}return n|a<<16|0}Ax.exports=SI});var I0=R((UU,Bx)=>{"use strict";m();function MI(){for(var e,t=[],r=0;r<256;r++){e=r;for(var i=0;i<8;i++)e=e&1?3988292384^e>>>1:e>>>1;t[r]=e}return t}var AI=MI();function BI(e,t,r,i){var n=AI,a=i+r;e^=-1;for(var o=i;o<a;o++)e=e>>>8^n[(e^t[o])&255];return e^-1}Bx.exports=BI});var kx=R((jU,Rx)=>{"use strict";m();Rx.exports={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}});var Cx=R(xr=>{"use strict";m();var wt=Jo(),zt=Mx(),qx=T0(),oi=I0(),RI=kx(),dn=0,kI=1,TI=3,hi=4,Tx=5,wr=0,Ix=1,Zt=-2,II=-3,O0=-5,OI=-1,qI=1,ku=2,DI=3,NI=4,PI=0,LI=2,qu=8,CI=9,UI=15,FI=8,jI=29,zI=256,D0=zI+1+jI,ZI=30,HI=19,WI=2*D0+1,KI=15,Fe=3,ui=258,or=ui+Fe+1,GI=32,Du=42,N0=69,Tu=73,Iu=91,Ou=103,ln=113,of=666,nt=1,ff=2,hn=3,_a=4,VI=3;function li(e,t){return e.msg=RI[t],t}function Ox(e){return(e<<1)-(e>4?9:0)}function si(e){for(var t=e.length;--t>=0;)e[t]=0}function fi(e){var t=e.state,r=t.pending;r>e.avail_out&&(r=e.avail_out),r!==0&&(wt.arraySet(e.output,t.pending_buf,t.pending_out,r,e.next_out),e.next_out+=r,t.pending_out+=r,e.total_out+=r,e.avail_out-=r,t.pending-=r,t.pending===0&&(t.pending_out=0))}function ht(e,t){zt._tr_flush_block(e,e.block_start>=0?e.block_start:-1,e.strstart-e.block_start,t),e.block_start=e.strstart,fi(e.strm)}function ze(e,t){e.pending_buf[e.pending++]=t}function af(e,t){e.pending_buf[e.pending++]=t>>>8&255,e.pending_buf[e.pending++]=t&255}function $I(e,t,r,i){var n=e.avail_in;return n>i&&(n=i),n===0?0:(e.avail_in-=n,wt.arraySet(t,e.input,e.next_in,n,r),e.state.wrap===1?e.adler=qx(e.adler,t,n,r):e.state.wrap===2&&(e.adler=oi(e.adler,t,n,r)),e.next_in+=n,e.total_in+=n,n)}function Dx(e,t){var r=e.max_chain_length,i=e.strstart,n,a,o=e.prev_length,s=e.nice_match,y=e.strstart>e.w_size-or?e.strstart-(e.w_size-or):0,_=e.window,x=e.w_mask,B=e.prev,k=e.strstart+ui,T=_[i+o-1],O=_[i+o];e.prev_length>=e.good_match&&(r>>=2),s>e.lookahead&&(s=e.lookahead);do if(n=t,!(_[n+o]!==O||_[n+o-1]!==T||_[n]!==_[i]||_[++n]!==_[i+1])){i+=2,n++;do;while(_[++i]===_[++n]&&_[++i]===_[++n]&&_[++i]===_[++n]&&_[++i]===_[++n]&&_[++i]===_[++n]&&_[++i]===_[++n]&&_[++i]===_[++n]&&_[++i]===_[++n]&&i<k);if(a=ui-(k-i),i=k-ui,a>o){if(e.match_start=t,o=a,a>=s)break;T=_[i+o-1],O=_[i+o]}}while((t=B[t&x])>y&&--r!==0);return o<=e.lookahead?o:e.lookahead}function cn(e){var t=e.w_size,r,i,n,a,o;do{if(a=e.window_size-e.lookahead-e.strstart,e.strstart>=t+(t-or)){wt.arraySet(e.window,e.window,t,t,0),e.match_start-=t,e.strstart-=t,e.block_start-=t,i=e.hash_size,r=i;do n=e.head[--r],e.head[r]=n>=t?n-t:0;while(--i);i=t,r=i;do n=e.prev[--r],e.prev[r]=n>=t?n-t:0;while(--i);a+=t}if(e.strm.avail_in===0)break;if(i=$I(e.strm,e.window,e.strstart+e.lookahead,a),e.lookahead+=i,e.lookahead+e.insert>=Fe)for(o=e.strstart-e.insert,e.ins_h=e.window[o],e.ins_h=(e.ins_h<<e.hash_shift^e.window[o+1])&e.hash_mask;e.insert&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[o+Fe-1])&e.hash_mask,e.prev[o&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=o,o++,e.insert--,!(e.lookahead+e.insert<Fe)););}while(e.lookahead<or&&e.strm.avail_in!==0)}function YI(e,t){var r=65535;for(r>e.pending_buf_size-5&&(r=e.pending_buf_size-5);;){if(e.lookahead<=1){if(cn(e),e.lookahead===0&&t===dn)return nt;if(e.lookahead===0)break}e.strstart+=e.lookahead,e.lookahead=0;var i=e.block_start+r;if((e.strstart===0||e.strstart>=i)&&(e.lookahead=e.strstart-i,e.strstart=i,ht(e,!1),e.strm.avail_out===0)||e.strstart-e.block_start>=e.w_size-or&&(ht(e,!1),e.strm.avail_out===0))return nt}return e.insert=0,t===hi?(ht(e,!0),e.strm.avail_out===0?hn:_a):(e.strstart>e.block_start&&(ht(e,!1),e.strm.avail_out===0),nt)}function q0(e,t){for(var r,i;;){if(e.lookahead<or){if(cn(e),e.lookahead<or&&t===dn)return nt;if(e.lookahead===0)break}if(r=0,e.lookahead>=Fe&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+Fe-1])&e.hash_mask,r=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),r!==0&&e.strstart-r<=e.w_size-or&&(e.match_length=Dx(e,r)),e.match_length>=Fe)if(i=zt._tr_tally(e,e.strstart-e.match_start,e.match_length-Fe),e.lookahead-=e.match_length,e.match_length<=e.max_lazy_match&&e.lookahead>=Fe){e.match_length--;do e.strstart++,e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+Fe-1])&e.hash_mask,r=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart;while(--e.match_length!==0);e.strstart++}else e.strstart+=e.match_length,e.match_length=0,e.ins_h=e.window[e.strstart],e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+1])&e.hash_mask;else i=zt._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++;if(i&&(ht(e,!1),e.strm.avail_out===0))return nt}return e.insert=e.strstart<Fe-1?e.strstart:Fe-1,t===hi?(ht(e,!0),e.strm.avail_out===0?hn:_a):e.last_lit&&(ht(e,!1),e.strm.avail_out===0)?nt:ff}function ga(e,t){for(var r,i,n;;){if(e.lookahead<or){if(cn(e),e.lookahead<or&&t===dn)return nt;if(e.lookahead===0)break}if(r=0,e.lookahead>=Fe&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+Fe-1])&e.hash_mask,r=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),e.prev_length=e.match_length,e.prev_match=e.match_start,e.match_length=Fe-1,r!==0&&e.prev_length<e.max_lazy_match&&e.strstart-r<=e.w_size-or&&(e.match_length=Dx(e,r),e.match_length<=5&&(e.strategy===qI||e.match_length===Fe&&e.strstart-e.match_start>4096)&&(e.match_length=Fe-1)),e.prev_length>=Fe&&e.match_length<=e.prev_length){n=e.strstart+e.lookahead-Fe,i=zt._tr_tally(e,e.strstart-1-e.prev_match,e.prev_length-Fe),e.lookahead-=e.prev_length-1,e.prev_length-=2;do++e.strstart<=n&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+Fe-1])&e.hash_mask,r=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart);while(--e.prev_length!==0);if(e.match_available=0,e.match_length=Fe-1,e.strstart++,i&&(ht(e,!1),e.strm.avail_out===0))return nt}else if(e.match_available){if(i=zt._tr_tally(e,0,e.window[e.strstart-1]),i&&ht(e,!1),e.strstart++,e.lookahead--,e.strm.avail_out===0)return nt}else e.match_available=1,e.strstart++,e.lookahead--}return e.match_available&&(i=zt._tr_tally(e,0,e.window[e.strstart-1]),e.match_available=0),e.insert=e.strstart<Fe-1?e.strstart:Fe-1,t===hi?(ht(e,!0),e.strm.avail_out===0?hn:_a):e.last_lit&&(ht(e,!1),e.strm.avail_out===0)?nt:ff}function JI(e,t){for(var r,i,n,a,o=e.window;;){if(e.lookahead<=ui){if(cn(e),e.lookahead<=ui&&t===dn)return nt;if(e.lookahead===0)break}if(e.match_length=0,e.lookahead>=Fe&&e.strstart>0&&(n=e.strstart-1,i=o[n],i===o[++n]&&i===o[++n]&&i===o[++n])){a=e.strstart+ui;do;while(i===o[++n]&&i===o[++n]&&i===o[++n]&&i===o[++n]&&i===o[++n]&&i===o[++n]&&i===o[++n]&&i===o[++n]&&n<a);e.match_length=ui-(a-n),e.match_length>e.lookahead&&(e.match_length=e.lookahead)}if(e.match_length>=Fe?(r=zt._tr_tally(e,1,e.match_length-Fe),e.lookahead-=e.match_length,e.strstart+=e.match_length,e.match_length=0):(r=zt._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++),r&&(ht(e,!1),e.strm.avail_out===0))return nt}return e.insert=0,t===hi?(ht(e,!0),e.strm.avail_out===0?hn:_a):e.last_lit&&(ht(e,!1),e.strm.avail_out===0)?nt:ff}function XI(e,t){for(var r;;){if(e.lookahead===0&&(cn(e),e.lookahead===0)){if(t===dn)return nt;break}if(e.match_length=0,r=zt._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++,r&&(ht(e,!1),e.strm.avail_out===0))return nt}return e.insert=0,t===hi?(ht(e,!0),e.strm.avail_out===0?hn:_a):e.last_lit&&(ht(e,!1),e.strm.avail_out===0)?nt:ff}function mr(e,t,r,i,n){this.good_length=e,this.max_lazy=t,this.nice_length=r,this.max_chain=i,this.func=n}var ba;ba=[new mr(0,0,0,0,YI),new mr(4,4,8,4,q0),new mr(4,5,16,8,q0),new mr(4,6,32,32,q0),new mr(4,4,16,16,ga),new mr(8,16,32,32,ga),new mr(8,16,128,128,ga),new mr(8,32,128,256,ga),new mr(32,128,258,1024,ga),new mr(32,258,258,4096,ga)];function QI(e){e.window_size=2*e.w_size,si(e.head),e.max_lazy_match=ba[e.level].max_lazy,e.good_match=ba[e.level].good_length,e.nice_match=ba[e.level].nice_length,e.max_chain_length=ba[e.level].max_chain,e.strstart=0,e.block_start=0,e.lookahead=0,e.insert=0,e.match_length=e.prev_length=Fe-1,e.match_available=0,e.ins_h=0}function eO(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=qu,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new wt.Buf16(WI*2),this.dyn_dtree=new wt.Buf16((2*ZI+1)*2),this.bl_tree=new wt.Buf16((2*HI+1)*2),si(this.dyn_ltree),si(this.dyn_dtree),si(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new wt.Buf16(KI+1),this.heap=new wt.Buf16(2*D0+1),si(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new wt.Buf16(2*D0+1),si(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function Nx(e){var t;return!e||!e.state?li(e,Zt):(e.total_in=e.total_out=0,e.data_type=LI,t=e.state,t.pending=0,t.pending_out=0,t.wrap<0&&(t.wrap=-t.wrap),t.status=t.wrap?Du:ln,e.adler=t.wrap===2?0:1,t.last_flush=dn,zt._tr_init(t),wr)}function Px(e){var t=Nx(e);return t===wr&&QI(e.state),t}function tO(e,t){return!e||!e.state||e.state.wrap!==2?Zt:(e.state.gzhead=t,wr)}function Lx(e,t,r,i,n,a){if(!e)return Zt;var o=1;if(t===OI&&(t=6),i<0?(o=0,i=-i):i>15&&(o=2,i-=16),n<1||n>CI||r!==qu||i<8||i>15||t<0||t>9||a<0||a>NI)return li(e,Zt);i===8&&(i=9);var s=new eO;return e.state=s,s.strm=e,s.wrap=o,s.gzhead=null,s.w_bits=i,s.w_size=1<<s.w_bits,s.w_mask=s.w_size-1,s.hash_bits=n+7,s.hash_size=1<<s.hash_bits,s.hash_mask=s.hash_size-1,s.hash_shift=~~((s.hash_bits+Fe-1)/Fe),s.window=new wt.Buf8(s.w_size*2),s.head=new wt.Buf16(s.hash_size),s.prev=new wt.Buf16(s.w_size),s.lit_bufsize=1<<n+6,s.pending_buf_size=s.lit_bufsize*4,s.pending_buf=new wt.Buf8(s.pending_buf_size),s.d_buf=1*s.lit_bufsize,s.l_buf=3*s.lit_bufsize,s.level=t,s.strategy=a,s.method=r,Px(e)}function rO(e,t){return Lx(e,t,qu,UI,FI,PI)}function iO(e,t){var r,i,n,a;if(!e||!e.state||t>Tx||t<0)return e?li(e,Zt):Zt;if(i=e.state,!e.output||!e.input&&e.avail_in!==0||i.status===of&&t!==hi)return li(e,e.avail_out===0?O0:Zt);if(i.strm=e,r=i.last_flush,i.last_flush=t,i.status===Du)if(i.wrap===2)e.adler=0,ze(i,31),ze(i,139),ze(i,8),i.gzhead?(ze(i,(i.gzhead.text?1:0)+(i.gzhead.hcrc?2:0)+(i.gzhead.extra?4:0)+(i.gzhead.name?8:0)+(i.gzhead.comment?16:0)),ze(i,i.gzhead.time&255),ze(i,i.gzhead.time>>8&255),ze(i,i.gzhead.time>>16&255),ze(i,i.gzhead.time>>24&255),ze(i,i.level===9?2:i.strategy>=ku||i.level<2?4:0),ze(i,i.gzhead.os&255),i.gzhead.extra&&i.gzhead.extra.length&&(ze(i,i.gzhead.extra.length&255),ze(i,i.gzhead.extra.length>>8&255)),i.gzhead.hcrc&&(e.adler=oi(e.adler,i.pending_buf,i.pending,0)),i.gzindex=0,i.status=N0):(ze(i,0),ze(i,0),ze(i,0),ze(i,0),ze(i,0),ze(i,i.level===9?2:i.strategy>=ku||i.level<2?4:0),ze(i,VI),i.status=ln);else{var o=qu+(i.w_bits-8<<4)<<8,s=-1;i.strategy>=ku||i.level<2?s=0:i.level<6?s=1:i.level===6?s=2:s=3,o|=s<<6,i.strstart!==0&&(o|=GI),o+=31-o%31,i.status=ln,af(i,o),i.strstart!==0&&(af(i,e.adler>>>16),af(i,e.adler&65535)),e.adler=1}if(i.status===N0)if(i.gzhead.extra){for(n=i.pending;i.gzindex<(i.gzhead.extra.length&65535)&&!(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>n&&(e.adler=oi(e.adler,i.pending_buf,i.pending-n,n)),fi(e),n=i.pending,i.pending===i.pending_buf_size));)ze(i,i.gzhead.extra[i.gzindex]&255),i.gzindex++;i.gzhead.hcrc&&i.pending>n&&(e.adler=oi(e.adler,i.pending_buf,i.pending-n,n)),i.gzindex===i.gzhead.extra.length&&(i.gzindex=0,i.status=Tu)}else i.status=Tu;if(i.status===Tu)if(i.gzhead.name){n=i.pending;do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>n&&(e.adler=oi(e.adler,i.pending_buf,i.pending-n,n)),fi(e),n=i.pending,i.pending===i.pending_buf_size)){a=1;break}i.gzindex<i.gzhead.name.length?a=i.gzhead.name.charCodeAt(i.gzindex++)&255:a=0,ze(i,a)}while(a!==0);i.gzhead.hcrc&&i.pending>n&&(e.adler=oi(e.adler,i.pending_buf,i.pending-n,n)),a===0&&(i.gzindex=0,i.status=Iu)}else i.status=Iu;if(i.status===Iu)if(i.gzhead.comment){n=i.pending;do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>n&&(e.adler=oi(e.adler,i.pending_buf,i.pending-n,n)),fi(e),n=i.pending,i.pending===i.pending_buf_size)){a=1;break}i.gzindex<i.gzhead.comment.length?a=i.gzhead.comment.charCodeAt(i.gzindex++)&255:a=0,ze(i,a)}while(a!==0);i.gzhead.hcrc&&i.pending>n&&(e.adler=oi(e.adler,i.pending_buf,i.pending-n,n)),a===0&&(i.status=Ou)}else i.status=Ou;if(i.status===Ou&&(i.gzhead.hcrc?(i.pending+2>i.pending_buf_size&&fi(e),i.pending+2<=i.pending_buf_size&&(ze(i,e.adler&255),ze(i,e.adler>>8&255),e.adler=0,i.status=ln)):i.status=ln),i.pending!==0){if(fi(e),e.avail_out===0)return i.last_flush=-1,wr}else if(e.avail_in===0&&Ox(t)<=Ox(r)&&t!==hi)return li(e,O0);if(i.status===of&&e.avail_in!==0)return li(e,O0);if(e.avail_in!==0||i.lookahead!==0||t!==dn&&i.status!==of){var y=i.strategy===ku?XI(i,t):i.strategy===DI?JI(i,t):ba[i.level].func(i,t);if((y===hn||y===_a)&&(i.status=of),y===nt||y===hn)return e.avail_out===0&&(i.last_flush=-1),wr;if(y===ff&&(t===kI?zt._tr_align(i):t!==Tx&&(zt._tr_stored_block(i,0,0,!1),t===TI&&(si(i.head),i.lookahead===0&&(i.strstart=0,i.block_start=0,i.insert=0))),fi(e),e.avail_out===0))return i.last_flush=-1,wr}return t!==hi?wr:i.wrap<=0?Ix:(i.wrap===2?(ze(i,e.adler&255),ze(i,e.adler>>8&255),ze(i,e.adler>>16&255),ze(i,e.adler>>24&255),ze(i,e.total_in&255),ze(i,e.total_in>>8&255),ze(i,e.total_in>>16&255),ze(i,e.total_in>>24&255)):(af(i,e.adler>>>16),af(i,e.adler&65535)),fi(e),i.wrap>0&&(i.wrap=-i.wrap),i.pending!==0?wr:Ix)}function nO(e){var t;return!e||!e.state?Zt:(t=e.state.status,t!==Du&&t!==N0&&t!==Tu&&t!==Iu&&t!==Ou&&t!==ln&&t!==of?li(e,Zt):(e.state=null,t===ln?li(e,II):wr))}function aO(e,t){var r=t.length,i,n,a,o,s,y,_,x;if(!e||!e.state||(i=e.state,o=i.wrap,o===2||o===1&&i.status!==Du||i.lookahead))return Zt;for(o===1&&(e.adler=qx(e.adler,t,r,0)),i.wrap=0,r>=i.w_size&&(o===0&&(si(i.head),i.strstart=0,i.block_start=0,i.insert=0),x=new wt.Buf8(i.w_size),wt.arraySet(x,t,r-i.w_size,i.w_size,0),t=x,r=i.w_size),s=e.avail_in,y=e.next_in,_=e.input,e.avail_in=r,e.next_in=0,e.input=t,cn(i);i.lookahead>=Fe;){n=i.strstart,a=i.lookahead-(Fe-1);do i.ins_h=(i.ins_h<<i.hash_shift^i.window[n+Fe-1])&i.hash_mask,i.prev[n&i.w_mask]=i.head[i.ins_h],i.head[i.ins_h]=n,n++;while(--a);i.strstart=n,i.lookahead=Fe-1,cn(i)}return i.strstart+=i.lookahead,i.block_start=i.strstart,i.insert=i.lookahead,i.lookahead=0,i.match_length=i.prev_length=Fe-1,i.match_available=0,e.next_in=y,e.input=_,e.avail_in=s,i.wrap=o,wr}xr.deflateInit=rO;xr.deflateInit2=Lx;xr.deflateReset=Px;xr.deflateResetKeep=Nx;xr.deflateSetHeader=tO;xr.deflate=iO;xr.deflateEnd=nO;xr.deflateSetDictionary=aO;xr.deflateInfo="pako deflate (from Nodeca project)"});var Fx=R((WU,Ux)=>{"use strict";m();var Nu=30,oO=12;Ux.exports=function(t,r){var i,n,a,o,s,y,_,x,B,k,T,O,D,U,N,j,H,W,Z,K,J,z,X,A,h;i=t.state,n=t.next_in,A=t.input,a=n+(t.avail_in-5),o=t.next_out,h=t.output,s=o-(r-t.avail_out),y=o+(t.avail_out-257),_=i.dmax,x=i.wsize,B=i.whave,k=i.wnext,T=i.window,O=i.hold,D=i.bits,U=i.lencode,N=i.distcode,j=(1<<i.lenbits)-1,H=(1<<i.distbits)-1;e:do{D<15&&(O+=A[n++]<<D,D+=8,O+=A[n++]<<D,D+=8),W=U[O&j];t:for(;;){if(Z=W>>>24,O>>>=Z,D-=Z,Z=W>>>16&255,Z===0)h[o++]=W&65535;else if(Z&16){K=W&65535,Z&=15,Z&&(D<Z&&(O+=A[n++]<<D,D+=8),K+=O&(1<<Z)-1,O>>>=Z,D-=Z),D<15&&(O+=A[n++]<<D,D+=8,O+=A[n++]<<D,D+=8),W=N[O&H];r:for(;;){if(Z=W>>>24,O>>>=Z,D-=Z,Z=W>>>16&255,Z&16){if(J=W&65535,Z&=15,D<Z&&(O+=A[n++]<<D,D+=8,D<Z&&(O+=A[n++]<<D,D+=8)),J+=O&(1<<Z)-1,J>_){t.msg="invalid distance too far back",i.mode=Nu;break e}if(O>>>=Z,D-=Z,Z=o-s,J>Z){if(Z=J-Z,Z>B&&i.sane){t.msg="invalid distance too far back",i.mode=Nu;break e}if(z=0,X=T,k===0){if(z+=x-Z,Z<K){K-=Z;do h[o++]=T[z++];while(--Z);z=o-J,X=h}}else if(k<Z){if(z+=x+k-Z,Z-=k,Z<K){K-=Z;do h[o++]=T[z++];while(--Z);if(z=0,k<K){Z=k,K-=Z;do h[o++]=T[z++];while(--Z);z=o-J,X=h}}}else if(z+=k-Z,Z<K){K-=Z;do h[o++]=T[z++];while(--Z);z=o-J,X=h}for(;K>2;)h[o++]=X[z++],h[o++]=X[z++],h[o++]=X[z++],K-=3;K&&(h[o++]=X[z++],K>1&&(h[o++]=X[z++]))}else{z=o-J;do h[o++]=h[z++],h[o++]=h[z++],h[o++]=h[z++],K-=3;while(K>2);K&&(h[o++]=h[z++],K>1&&(h[o++]=h[z++]))}}else if((Z&64)===0){W=N[(W&65535)+(O&(1<<Z)-1)];continue r}else{t.msg="invalid distance code",i.mode=Nu;break e}break}}else if((Z&64)===0){W=U[(W&65535)+(O&(1<<Z)-1)];continue t}else if(Z&32){i.mode=oO;break e}else{t.msg="invalid literal/length code",i.mode=Nu;break e}break}}while(n<a&&o<y);K=D>>3,n-=K,D-=K<<3,O&=(1<<D)-1,t.next_in=n,t.next_out=o,t.avail_in=n<a?5+(a-n):5-(n-a),t.avail_out=o<y?257+(y-o):257-(o-y),i.hold=O,i.bits=D}});var Gx=R((GU,Kx)=>{"use strict";m();var jx=Jo(),ma=15,zx=852,Zx=592,Hx=0,P0=1,Wx=2,fO=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],sO=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],uO=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],lO=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];Kx.exports=function(t,r,i,n,a,o,s,y){var _=y.bits,x=0,B=0,k=0,T=0,O=0,D=0,U=0,N=0,j=0,H=0,W,Z,K,J,z,X=null,A=0,h,b=new jx.Buf16(ma+1),d=new jx.Buf16(ma+1),f=null,l=0,v,g,p;for(x=0;x<=ma;x++)b[x]=0;for(B=0;B<n;B++)b[r[i+B]]++;for(O=_,T=ma;T>=1&&b[T]===0;T--);if(O>T&&(O=T),T===0)return a[o++]=1<<24|64<<16|0,a[o++]=1<<24|64<<16|0,y.bits=1,0;for(k=1;k<T&&b[k]===0;k++);for(O<k&&(O=k),N=1,x=1;x<=ma;x++)if(N<<=1,N-=b[x],N<0)return-1;if(N>0&&(t===Hx||T!==1))return-1;for(d[1]=0,x=1;x<ma;x++)d[x+1]=d[x]+b[x];for(B=0;B<n;B++)r[i+B]!==0&&(s[d[r[i+B]]++]=B);if(t===Hx?(X=f=s,h=19):t===P0?(X=fO,A-=257,f=sO,l-=257,h=256):(X=uO,f=lO,h=-1),H=0,B=0,x=k,z=o,D=O,U=0,K=-1,j=1<<O,J=j-1,t===P0&&j>zx||t===Wx&&j>Zx)return 1;for(;;){v=x-U,s[B]<h?(g=0,p=s[B]):s[B]>h?(g=f[l+s[B]],p=X[A+s[B]]):(g=96,p=0),W=1<<x-U,Z=1<<D,k=Z;do Z-=W,a[z+(H>>U)+Z]=v<<24|g<<16|p|0;while(Z!==0);for(W=1<<x-1;H&W;)W>>=1;if(W!==0?(H&=W-1,H+=W):H=0,B++,--b[x]===0){if(x===T)break;x=r[i+s[B]]}if(x>O&&(H&J)!==K){for(U===0&&(U=O),z+=k,D=x-U,N=1<<D;D+U<T&&(N-=b[D+U],!(N<=0));)D++,N<<=1;if(j+=1<<D,t===P0&&j>zx||t===Wx&&j>Zx)return 1;K=H&J,a[K]=O<<24|D<<16|z-o|0}}return H!==0&&(a[z+H]=x-U<<24|64<<16|0),y.bits=O,0}});var RE=R(fr=>{"use strict";m();var Rt=Jo(),z0=T0(),Er=I0(),hO=Fx(),sf=Gx(),cO=0,_E=1,mE=2,Vx=4,dO=5,Pu=6,pn=0,pO=1,vO=2,Ht=-2,wE=-3,Z0=-4,yO=-5,$x=8,xE=1,Yx=2,Jx=3,Xx=4,Qx=5,eE=6,tE=7,rE=8,iE=9,nE=10,Uu=11,zr=12,L0=13,aE=14,C0=15,oE=16,fE=17,sE=18,uE=19,Lu=20,Cu=21,lE=22,hE=23,cE=24,dE=25,pE=26,U0=27,vE=28,yE=29,Je=30,H0=31,gO=32,bO=852,_O=592,mO=15,wO=mO;function gE(e){return(e>>>24&255)+(e>>>8&65280)+((e&65280)<<8)+((e&255)<<24)}function xO(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new Rt.Buf16(320),this.work=new Rt.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function EE(e){var t;return!e||!e.state?Ht:(t=e.state,e.total_in=e.total_out=t.total=0,e.msg="",t.wrap&&(e.adler=t.wrap&1),t.mode=xE,t.last=0,t.havedict=0,t.dmax=32768,t.head=null,t.hold=0,t.bits=0,t.lencode=t.lendyn=new Rt.Buf32(bO),t.distcode=t.distdyn=new Rt.Buf32(_O),t.sane=1,t.back=-1,pn)}function SE(e){var t;return!e||!e.state?Ht:(t=e.state,t.wsize=0,t.whave=0,t.wnext=0,EE(e))}function ME(e,t){var r,i;return!e||!e.state||(i=e.state,t<0?(r=0,t=-t):(r=(t>>4)+1,t<48&&(t&=15)),t&&(t<8||t>15))?Ht:(i.window!==null&&i.wbits!==t&&(i.window=null),i.wrap=r,i.wbits=t,SE(e))}function AE(e,t){var r,i;return e?(i=new xO,e.state=i,i.window=null,r=ME(e,t),r!==pn&&(e.state=null),r):Ht}function EO(e){return AE(e,wO)}var bE=!0,F0,j0;function SO(e){if(bE){var t;for(F0=new Rt.Buf32(512),j0=new Rt.Buf32(32),t=0;t<144;)e.lens[t++]=8;for(;t<256;)e.lens[t++]=9;for(;t<280;)e.lens[t++]=7;for(;t<288;)e.lens[t++]=8;for(sf(_E,e.lens,0,288,F0,0,e.work,{bits:9}),t=0;t<32;)e.lens[t++]=5;sf(mE,e.lens,0,32,j0,0,e.work,{bits:5}),bE=!1}e.lencode=F0,e.lenbits=9,e.distcode=j0,e.distbits=5}function BE(e,t,r,i){var n,a=e.state;return a.window===null&&(a.wsize=1<<a.wbits,a.wnext=0,a.whave=0,a.window=new Rt.Buf8(a.wsize)),i>=a.wsize?(Rt.arraySet(a.window,t,r-a.wsize,a.wsize,0),a.wnext=0,a.whave=a.wsize):(n=a.wsize-a.wnext,n>i&&(n=i),Rt.arraySet(a.window,t,r-i,n,a.wnext),i-=n,i?(Rt.arraySet(a.window,t,r-i,i,0),a.wnext=i,a.whave=a.wsize):(a.wnext+=n,a.wnext===a.wsize&&(a.wnext=0),a.whave<a.wsize&&(a.whave+=n))),0}function MO(e,t){var r,i,n,a,o,s,y,_,x,B,k,T,O,D,U=0,N,j,H,W,Z,K,J,z,X=new Rt.Buf8(4),A,h,b=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!e||!e.state||!e.output||!e.input&&e.avail_in!==0)return Ht;r=e.state,r.mode===zr&&(r.mode=L0),o=e.next_out,n=e.output,y=e.avail_out,a=e.next_in,i=e.input,s=e.avail_in,_=r.hold,x=r.bits,B=s,k=y,z=pn;e:for(;;)switch(r.mode){case xE:if(r.wrap===0){r.mode=L0;break}for(;x<16;){if(s===0)break e;s--,_+=i[a++]<<x,x+=8}if(r.wrap&2&&_===35615){r.check=0,X[0]=_&255,X[1]=_>>>8&255,r.check=Er(r.check,X,2,0),_=0,x=0,r.mode=Yx;break}if(r.flags=0,r.head&&(r.head.done=!1),!(r.wrap&1)||(((_&255)<<8)+(_>>8))%31){e.msg="incorrect header check",r.mode=Je;break}if((_&15)!==$x){e.msg="unknown compression method",r.mode=Je;break}if(_>>>=4,x-=4,J=(_&15)+8,r.wbits===0)r.wbits=J;else if(J>r.wbits){e.msg="invalid window size",r.mode=Je;break}r.dmax=1<<J,e.adler=r.check=1,r.mode=_&512?nE:zr,_=0,x=0;break;case Yx:for(;x<16;){if(s===0)break e;s--,_+=i[a++]<<x,x+=8}if(r.flags=_,(r.flags&255)!==$x){e.msg="unknown compression method",r.mode=Je;break}if(r.flags&57344){e.msg="unknown header flags set",r.mode=Je;break}r.head&&(r.head.text=_>>8&1),r.flags&512&&(X[0]=_&255,X[1]=_>>>8&255,r.check=Er(r.check,X,2,0)),_=0,x=0,r.mode=Jx;case Jx:for(;x<32;){if(s===0)break e;s--,_+=i[a++]<<x,x+=8}r.head&&(r.head.time=_),r.flags&512&&(X[0]=_&255,X[1]=_>>>8&255,X[2]=_>>>16&255,X[3]=_>>>24&255,r.check=Er(r.check,X,4,0)),_=0,x=0,r.mode=Xx;case Xx:for(;x<16;){if(s===0)break e;s--,_+=i[a++]<<x,x+=8}r.head&&(r.head.xflags=_&255,r.head.os=_>>8),r.flags&512&&(X[0]=_&255,X[1]=_>>>8&255,r.check=Er(r.check,X,2,0)),_=0,x=0,r.mode=Qx;case Qx:if(r.flags&1024){for(;x<16;){if(s===0)break e;s--,_+=i[a++]<<x,x+=8}r.length=_,r.head&&(r.head.extra_len=_),r.flags&512&&(X[0]=_&255,X[1]=_>>>8&255,r.check=Er(r.check,X,2,0)),_=0,x=0}else r.head&&(r.head.extra=null);r.mode=eE;case eE:if(r.flags&1024&&(T=r.length,T>s&&(T=s),T&&(r.head&&(J=r.head.extra_len-r.length,r.head.extra||(r.head.extra=new Array(r.head.extra_len)),Rt.arraySet(r.head.extra,i,a,T,J)),r.flags&512&&(r.check=Er(r.check,i,T,a)),s-=T,a+=T,r.length-=T),r.length))break e;r.length=0,r.mode=tE;case tE:if(r.flags&2048){if(s===0)break e;T=0;do J=i[a+T++],r.head&&J&&r.length<65536&&(r.head.name+=String.fromCharCode(J));while(J&&T<s);if(r.flags&512&&(r.check=Er(r.check,i,T,a)),s-=T,a+=T,J)break e}else r.head&&(r.head.name=null);r.length=0,r.mode=rE;case rE:if(r.flags&4096){if(s===0)break e;T=0;do J=i[a+T++],r.head&&J&&r.length<65536&&(r.head.comment+=String.fromCharCode(J));while(J&&T<s);if(r.flags&512&&(r.check=Er(r.check,i,T,a)),s-=T,a+=T,J)break e}else r.head&&(r.head.comment=null);r.mode=iE;case iE:if(r.flags&512){for(;x<16;){if(s===0)break e;s--,_+=i[a++]<<x,x+=8}if(_!==(r.check&65535)){e.msg="header crc mismatch",r.mode=Je;break}_=0,x=0}r.head&&(r.head.hcrc=r.flags>>9&1,r.head.done=!0),e.adler=r.check=0,r.mode=zr;break;case nE:for(;x<32;){if(s===0)break e;s--,_+=i[a++]<<x,x+=8}e.adler=r.check=gE(_),_=0,x=0,r.mode=Uu;case Uu:if(r.havedict===0)return e.next_out=o,e.avail_out=y,e.next_in=a,e.avail_in=s,r.hold=_,r.bits=x,vO;e.adler=r.check=1,r.mode=zr;case zr:if(t===dO||t===Pu)break e;case L0:if(r.last){_>>>=x&7,x-=x&7,r.mode=U0;break}for(;x<3;){if(s===0)break e;s--,_+=i[a++]<<x,x+=8}switch(r.last=_&1,_>>>=1,x-=1,_&3){case 0:r.mode=aE;break;case 1:if(SO(r),r.mode=Lu,t===Pu){_>>>=2,x-=2;break e}break;case 2:r.mode=fE;break;case 3:e.msg="invalid block type",r.mode=Je}_>>>=2,x-=2;break;case aE:for(_>>>=x&7,x-=x&7;x<32;){if(s===0)break e;s--,_+=i[a++]<<x,x+=8}if((_&65535)!==(_>>>16^65535)){e.msg="invalid stored block lengths",r.mode=Je;break}if(r.length=_&65535,_=0,x=0,r.mode=C0,t===Pu)break e;case C0:r.mode=oE;case oE:if(T=r.length,T){if(T>s&&(T=s),T>y&&(T=y),T===0)break e;Rt.arraySet(n,i,a,T,o),s-=T,a+=T,y-=T,o+=T,r.length-=T;break}r.mode=zr;break;case fE:for(;x<14;){if(s===0)break e;s--,_+=i[a++]<<x,x+=8}if(r.nlen=(_&31)+257,_>>>=5,x-=5,r.ndist=(_&31)+1,_>>>=5,x-=5,r.ncode=(_&15)+4,_>>>=4,x-=4,r.nlen>286||r.ndist>30){e.msg="too many length or distance symbols",r.mode=Je;break}r.have=0,r.mode=sE;case sE:for(;r.have<r.ncode;){for(;x<3;){if(s===0)break e;s--,_+=i[a++]<<x,x+=8}r.lens[b[r.have++]]=_&7,_>>>=3,x-=3}for(;r.have<19;)r.lens[b[r.have++]]=0;if(r.lencode=r.lendyn,r.lenbits=7,A={bits:r.lenbits},z=sf(cO,r.lens,0,19,r.lencode,0,r.work,A),r.lenbits=A.bits,z){e.msg="invalid code lengths set",r.mode=Je;break}r.have=0,r.mode=uE;case uE:for(;r.have<r.nlen+r.ndist;){for(;U=r.lencode[_&(1<<r.lenbits)-1],N=U>>>24,j=U>>>16&255,H=U&65535,!(N<=x);){if(s===0)break e;s--,_+=i[a++]<<x,x+=8}if(H<16)_>>>=N,x-=N,r.lens[r.have++]=H;else{if(H===16){for(h=N+2;x<h;){if(s===0)break e;s--,_+=i[a++]<<x,x+=8}if(_>>>=N,x-=N,r.have===0){e.msg="invalid bit length repeat",r.mode=Je;break}J=r.lens[r.have-1],T=3+(_&3),_>>>=2,x-=2}else if(H===17){for(h=N+3;x<h;){if(s===0)break e;s--,_+=i[a++]<<x,x+=8}_>>>=N,x-=N,J=0,T=3+(_&7),_>>>=3,x-=3}else{for(h=N+7;x<h;){if(s===0)break e;s--,_+=i[a++]<<x,x+=8}_>>>=N,x-=N,J=0,T=11+(_&127),_>>>=7,x-=7}if(r.have+T>r.nlen+r.ndist){e.msg="invalid bit length repeat",r.mode=Je;break}for(;T--;)r.lens[r.have++]=J}}if(r.mode===Je)break;if(r.lens[256]===0){e.msg="invalid code -- missing end-of-block",r.mode=Je;break}if(r.lenbits=9,A={bits:r.lenbits},z=sf(_E,r.lens,0,r.nlen,r.lencode,0,r.work,A),r.lenbits=A.bits,z){e.msg="invalid literal/lengths set",r.mode=Je;break}if(r.distbits=6,r.distcode=r.distdyn,A={bits:r.distbits},z=sf(mE,r.lens,r.nlen,r.ndist,r.distcode,0,r.work,A),r.distbits=A.bits,z){e.msg="invalid distances set",r.mode=Je;break}if(r.mode=Lu,t===Pu)break e;case Lu:r.mode=Cu;case Cu:if(s>=6&&y>=258){e.next_out=o,e.avail_out=y,e.next_in=a,e.avail_in=s,r.hold=_,r.bits=x,hO(e,k),o=e.next_out,n=e.output,y=e.avail_out,a=e.next_in,i=e.input,s=e.avail_in,_=r.hold,x=r.bits,r.mode===zr&&(r.back=-1);break}for(r.back=0;U=r.lencode[_&(1<<r.lenbits)-1],N=U>>>24,j=U>>>16&255,H=U&65535,!(N<=x);){if(s===0)break e;s--,_+=i[a++]<<x,x+=8}if(j&&(j&240)===0){for(W=N,Z=j,K=H;U=r.lencode[K+((_&(1<<W+Z)-1)>>W)],N=U>>>24,j=U>>>16&255,H=U&65535,!(W+N<=x);){if(s===0)break e;s--,_+=i[a++]<<x,x+=8}_>>>=W,x-=W,r.back+=W}if(_>>>=N,x-=N,r.back+=N,r.length=H,j===0){r.mode=pE;break}if(j&32){r.back=-1,r.mode=zr;break}if(j&64){e.msg="invalid literal/length code",r.mode=Je;break}r.extra=j&15,r.mode=lE;case lE:if(r.extra){for(h=r.extra;x<h;){if(s===0)break e;s--,_+=i[a++]<<x,x+=8}r.length+=_&(1<<r.extra)-1,_>>>=r.extra,x-=r.extra,r.back+=r.extra}r.was=r.length,r.mode=hE;case hE:for(;U=r.distcode[_&(1<<r.distbits)-1],N=U>>>24,j=U>>>16&255,H=U&65535,!(N<=x);){if(s===0)break e;s--,_+=i[a++]<<x,x+=8}if((j&240)===0){for(W=N,Z=j,K=H;U=r.distcode[K+((_&(1<<W+Z)-1)>>W)],N=U>>>24,j=U>>>16&255,H=U&65535,!(W+N<=x);){if(s===0)break e;s--,_+=i[a++]<<x,x+=8}_>>>=W,x-=W,r.back+=W}if(_>>>=N,x-=N,r.back+=N,j&64){e.msg="invalid distance code",r.mode=Je;break}r.offset=H,r.extra=j&15,r.mode=cE;case cE:if(r.extra){for(h=r.extra;x<h;){if(s===0)break e;s--,_+=i[a++]<<x,x+=8}r.offset+=_&(1<<r.extra)-1,_>>>=r.extra,x-=r.extra,r.back+=r.extra}if(r.offset>r.dmax){e.msg="invalid distance too far back",r.mode=Je;break}r.mode=dE;case dE:if(y===0)break e;if(T=k-y,r.offset>T){if(T=r.offset-T,T>r.whave&&r.sane){e.msg="invalid distance too far back",r.mode=Je;break}T>r.wnext?(T-=r.wnext,O=r.wsize-T):O=r.wnext-T,T>r.length&&(T=r.length),D=r.window}else D=n,O=o-r.offset,T=r.length;T>y&&(T=y),y-=T,r.length-=T;do n[o++]=D[O++];while(--T);r.length===0&&(r.mode=Cu);break;case pE:if(y===0)break e;n[o++]=r.length,y--,r.mode=Cu;break;case U0:if(r.wrap){for(;x<32;){if(s===0)break e;s--,_|=i[a++]<<x,x+=8}if(k-=y,e.total_out+=k,r.total+=k,k&&(e.adler=r.check=r.flags?Er(r.check,n,k,o-k):z0(r.check,n,k,o-k)),k=y,(r.flags?_:gE(_))!==r.check){e.msg="incorrect data check",r.mode=Je;break}_=0,x=0}r.mode=vE;case vE:if(r.wrap&&r.flags){for(;x<32;){if(s===0)break e;s--,_+=i[a++]<<x,x+=8}if(_!==(r.total&4294967295)){e.msg="incorrect length check",r.mode=Je;break}_=0,x=0}r.mode=yE;case yE:z=pO;break e;case Je:z=wE;break e;case H0:return Z0;case gO:default:return Ht}return e.next_out=o,e.avail_out=y,e.next_in=a,e.avail_in=s,r.hold=_,r.bits=x,(r.wsize||k!==e.avail_out&&r.mode<Je&&(r.mode<U0||t!==Vx))&&BE(e,e.output,e.next_out,k-e.avail_out)?(r.mode=H0,Z0):(B-=e.avail_in,k-=e.avail_out,e.total_in+=B,e.total_out+=k,r.total+=k,r.wrap&&k&&(e.adler=r.check=r.flags?Er(r.check,n,k,e.next_out-k):z0(r.check,n,k,e.next_out-k)),e.data_type=r.bits+(r.last?64:0)+(r.mode===zr?128:0)+(r.mode===Lu||r.mode===C0?256:0),(B===0&&k===0||t===Vx)&&z===pn&&(z=yO),z)}function AO(e){if(!e||!e.state)return Ht;var t=e.state;return t.window&&(t.window=null),e.state=null,pn}function BO(e,t){var r;return!e||!e.state||(r=e.state,(r.wrap&2)===0)?Ht:(r.head=t,t.done=!1,pn)}function RO(e,t){var r=t.length,i,n,a;return!e||!e.state||(i=e.state,i.wrap!==0&&i.mode!==Uu)?Ht:i.mode===Uu&&(n=1,n=z0(n,t,r,0),n!==i.check)?wE:(a=BE(e,t,r,r),a?(i.mode=H0,Z0):(i.havedict=1,pn))}fr.inflateReset=SE;fr.inflateReset2=ME;fr.inflateResetKeep=EE;fr.inflateInit=EO;fr.inflateInit2=AE;fr.inflate=MO;fr.inflateEnd=AO;fr.inflateGetHeader=BO;fr.inflateSetDictionary=RO;fr.inflateInfo="pako inflate (from Nodeca project)"});var TE=R((JU,kE)=>{"use strict";m();kE.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}});var OE=R(F=>{"use strict";m();var kt=Co(),kO=rx(),uf=Cx(),vn=RE(),IE=TE();for(W0 in IE)F[W0]=IE[W0];var W0;F.NONE=0;F.DEFLATE=1;F.INFLATE=2;F.GZIP=3;F.GUNZIP=4;F.DEFLATERAW=5;F.INFLATERAW=6;F.UNZIP=7;var TO=31,IO=139;function gt(e){if(typeof e!="number"||e<F.DEFLATE||e>F.UNZIP)throw new TypeError("Bad argument");this.dictionary=null,this.err=0,this.flush=0,this.init_done=!1,this.level=0,this.memLevel=0,this.mode=e,this.strategy=0,this.windowBits=0,this.write_in_progress=!1,this.pending_close=!1,this.gzip_id_bytes_read=0}gt.prototype.close=function(){if(this.write_in_progress){this.pending_close=!0;return}this.pending_close=!1,kt(this.init_done,"close before init"),kt(this.mode<=F.UNZIP),this.mode===F.DEFLATE||this.mode===F.GZIP||this.mode===F.DEFLATERAW?uf.deflateEnd(this.strm):(this.mode===F.INFLATE||this.mode===F.GUNZIP||this.mode===F.INFLATERAW||this.mode===F.UNZIP)&&vn.inflateEnd(this.strm),this.mode=F.NONE,this.dictionary=null};gt.prototype.write=function(e,t,r,i,n,a,o){return this._write(!0,e,t,r,i,n,a,o)};gt.prototype.writeSync=function(e,t,r,i,n,a,o){return this._write(!1,e,t,r,i,n,a,o)};gt.prototype._write=function(e,t,r,i,n,a,o,s){if(kt.equal(arguments.length,8),kt(this.init_done,"write before init"),kt(this.mode!==F.NONE,"already finalized"),kt.equal(!1,this.write_in_progress,"write already in progress"),kt.equal(!1,this.pending_close,"close is pending"),this.write_in_progress=!0,kt.equal(!1,t===void 0,"must provide flush value"),this.write_in_progress=!0,t!==F.Z_NO_FLUSH&&t!==F.Z_PARTIAL_FLUSH&&t!==F.Z_SYNC_FLUSH&&t!==F.Z_FULL_FLUSH&&t!==F.Z_FINISH&&t!==F.Z_BLOCK)throw new Error("Invalid flush value");if(r==null&&(r=I.Buffer.alloc(0),n=0,i=0),this.strm.avail_in=n,this.strm.input=r,this.strm.next_in=i,this.strm.avail_out=s,this.strm.output=a,this.strm.next_out=o,this.flush=t,!e)return this._process(),this._checkError()?this._afterSync():void 0;var y=this;return M.default.nextTick(function(){y._process(),y._after()}),this};gt.prototype._afterSync=function(){var e=this.strm.avail_out,t=this.strm.avail_in;return this.write_in_progress=!1,[t,e]};gt.prototype._process=function(){var e=null;switch(this.mode){case F.DEFLATE:case F.GZIP:case F.DEFLATERAW:this.err=uf.deflate(this.strm,this.flush);break;case F.UNZIP:switch(this.strm.avail_in>0&&(e=this.strm.next_in),this.gzip_id_bytes_read){case 0:if(e===null)break;if(this.strm.input[e]===TO){if(this.gzip_id_bytes_read=1,e++,this.strm.avail_in===1)break}else{this.mode=F.INFLATE;break}case 1:if(e===null)break;this.strm.input[e]===IO?(this.gzip_id_bytes_read=2,this.mode=F.GUNZIP):this.mode=F.INFLATE;break;default:throw new Error("invalid number of gzip magic number bytes read")}case F.INFLATE:case F.GUNZIP:case F.INFLATERAW:for(this.err=vn.inflate(this.strm,this.flush),this.err===F.Z_NEED_DICT&&this.dictionary&&(this.err=vn.inflateSetDictionary(this.strm,this.dictionary),this.err===F.Z_OK?this.err=vn.inflate(this.strm,this.flush):this.err===F.Z_DATA_ERROR&&(this.err=F.Z_NEED_DICT));this.strm.avail_in>0&&this.mode===F.GUNZIP&&this.err===F.Z_STREAM_END&&this.strm.next_in[0]!==0;)this.reset(),this.err=vn.inflate(this.strm,this.flush);break;default:throw new Error("Unknown mode "+this.mode)}};gt.prototype._checkError=function(){switch(this.err){case F.Z_OK:case F.Z_BUF_ERROR:if(this.strm.avail_out!==0&&this.flush===F.Z_FINISH)return this._error("unexpected end of file"),!1;break;case F.Z_STREAM_END:break;case F.Z_NEED_DICT:return this.dictionary==null?this._error("Missing dictionary"):this._error("Bad dictionary"),!1;default:return this._error("Zlib error"),!1}return!0};gt.prototype._after=function(){if(this._checkError()){var e=this.strm.avail_out,t=this.strm.avail_in;this.write_in_progress=!1,this.callback(t,e),this.pending_close&&this.close()}};gt.prototype._error=function(e){this.strm.msg&&(e=this.strm.msg),this.onerror(e,this.err),this.write_in_progress=!1,this.pending_close&&this.close()};gt.prototype.init=function(e,t,r,i,n){kt(arguments.length===4||arguments.length===5,"init(windowBits, level, memLevel, strategy, [dictionary])"),kt(e>=8&&e<=15,"invalid windowBits"),kt(t>=-1&&t<=9,"invalid compression level"),kt(r>=1&&r<=9,"invalid memlevel"),kt(i===F.Z_FILTERED||i===F.Z_HUFFMAN_ONLY||i===F.Z_RLE||i===F.Z_FIXED||i===F.Z_DEFAULT_STRATEGY,"invalid strategy"),this._init(t,e,r,i,n),this._setDictionary()};gt.prototype.params=function(){throw new Error("deflateParams Not supported")};gt.prototype.reset=function(){this._reset(),this._setDictionary()};gt.prototype._init=function(e,t,r,i,n){switch(this.level=e,this.windowBits=t,this.memLevel=r,this.strategy=i,this.flush=F.Z_NO_FLUSH,this.err=F.Z_OK,(this.mode===F.GZIP||this.mode===F.GUNZIP)&&(this.windowBits+=16),this.mode===F.UNZIP&&(this.windowBits+=32),(this.mode===F.DEFLATERAW||this.mode===F.INFLATERAW)&&(this.windowBits=-1*this.windowBits),this.strm=new kO,this.mode){case F.DEFLATE:case F.GZIP:case F.DEFLATERAW:this.err=uf.deflateInit2(this.strm,this.level,F.Z_DEFLATED,this.windowBits,this.memLevel,this.strategy);break;case F.INFLATE:case F.GUNZIP:case F.INFLATERAW:case F.UNZIP:this.err=vn.inflateInit2(this.strm,this.windowBits);break;default:throw new Error("Unknown mode "+this.mode)}this.err!==F.Z_OK&&this._error("Init error"),this.dictionary=n,this.write_in_progress=!1,this.init_done=!0};gt.prototype._setDictionary=function(){if(this.dictionary!=null){switch(this.err=F.Z_OK,this.mode){case F.DEFLATE:case F.DEFLATERAW:this.err=uf.deflateSetDictionary(this.strm,this.dictionary);break;default:break}this.err!==F.Z_OK&&this._error("Failed to set dictionary")}};gt.prototype._reset=function(){switch(this.err=F.Z_OK,this.mode){case F.DEFLATE:case F.DEFLATERAW:case F.GZIP:this.err=uf.deflateReset(this.strm);break;case F.INFLATE:case F.INFLATERAW:case F.GUNZIP:this.err=vn.inflateReset(this.strm);break;default:break}this.err!==F.Z_OK&&this._error("Failed to reset stream")};F.Zlib=gt});var V0=R($=>{"use strict";m();var Sr=st().Buffer,PE=cs().Transform,te=OE(),ci=Gt(),lf=Co().ok,G0=st().kMaxLength,LE="Cannot create final Buffer. It would be larger than 0x"+G0.toString(16)+" bytes";te.Z_MIN_WINDOWBITS=8;te.Z_MAX_WINDOWBITS=15;te.Z_DEFAULT_WINDOWBITS=15;te.Z_MIN_CHUNK=64;te.Z_MAX_CHUNK=1/0;te.Z_DEFAULT_CHUNK=16*1024;te.Z_MIN_MEMLEVEL=1;te.Z_MAX_MEMLEVEL=9;te.Z_DEFAULT_MEMLEVEL=8;te.Z_MIN_LEVEL=-1;te.Z_MAX_LEVEL=9;te.Z_DEFAULT_LEVEL=te.Z_DEFAULT_COMPRESSION;var qE=Object.keys(te);for(Fu=0;Fu<qE.length;Fu++)ju=qE[Fu],ju.match(/^Z/)&&Object.defineProperty($,ju,{enumerable:!0,value:te[ju],writable:!1});var ju,Fu,Zu={Z_OK:te.Z_OK,Z_STREAM_END:te.Z_STREAM_END,Z_NEED_DICT:te.Z_NEED_DICT,Z_ERRNO:te.Z_ERRNO,Z_STREAM_ERROR:te.Z_STREAM_ERROR,Z_DATA_ERROR:te.Z_DATA_ERROR,Z_MEM_ERROR:te.Z_MEM_ERROR,Z_BUF_ERROR:te.Z_BUF_ERROR,Z_VERSION_ERROR:te.Z_VERSION_ERROR},DE=Object.keys(Zu);for(zu=0;zu<DE.length;zu++)K0=DE[zu],Zu[Zu[K0]]=K0;var K0,zu;Object.defineProperty($,"codes",{enumerable:!0,value:Object.freeze(Zu),writable:!1});$.Deflate=yn;$.Inflate=gn;$.Gzip=bn;$.Gunzip=_n;$.DeflateRaw=mn;$.InflateRaw=wn;$.Unzip=xn;$.createDeflate=function(e){return new yn(e)};$.createInflate=function(e){return new gn(e)};$.createDeflateRaw=function(e){return new mn(e)};$.createInflateRaw=function(e){return new wn(e)};$.createGzip=function(e){return new bn(e)};$.createGunzip=function(e){return new _n(e)};$.createUnzip=function(e){return new xn(e)};$.deflate=function(e,t,r){return typeof t=="function"&&(r=t,t={}),En(new yn(t),e,r)};$.deflateSync=function(e,t){return Sn(new yn(t),e)};$.gzip=function(e,t,r){return typeof t=="function"&&(r=t,t={}),En(new bn(t),e,r)};$.gzipSync=function(e,t){return Sn(new bn(t),e)};$.deflateRaw=function(e,t,r){return typeof t=="function"&&(r=t,t={}),En(new mn(t),e,r)};$.deflateRawSync=function(e,t){return Sn(new mn(t),e)};$.unzip=function(e,t,r){return typeof t=="function"&&(r=t,t={}),En(new xn(t),e,r)};$.unzipSync=function(e,t){return Sn(new xn(t),e)};$.inflate=function(e,t,r){return typeof t=="function"&&(r=t,t={}),En(new gn(t),e,r)};$.inflateSync=function(e,t){return Sn(new gn(t),e)};$.gunzip=function(e,t,r){return typeof t=="function"&&(r=t,t={}),En(new _n(t),e,r)};$.gunzipSync=function(e,t){return Sn(new _n(t),e)};$.inflateRaw=function(e,t,r){return typeof t=="function"&&(r=t,t={}),En(new wn(t),e,r)};$.inflateRawSync=function(e,t){return Sn(new wn(t),e)};function En(e,t,r){var i=[],n=0;e.on("error",o),e.on("end",s),e.end(t),a();function a(){for(var y;(y=e.read())!==null;)i.push(y),n+=y.length;e.once("readable",a)}function o(y){e.removeListener("end",s),e.removeListener("readable",a),r(y)}function s(){var y,_=null;n>=G0?_=new RangeError(LE):y=Sr.concat(i,n),i=[],e.close(),r(_,y)}}function Sn(e,t){if(typeof t=="string"&&(t=Sr.from(t)),!Sr.isBuffer(t))throw new TypeError("Not a string or buffer");var r=e._finishFlushFlag;return e._processChunk(t,r)}function yn(e){if(!(this instanceof yn))return new yn(e);Qe.call(this,e,te.DEFLATE)}function gn(e){if(!(this instanceof gn))return new gn(e);Qe.call(this,e,te.INFLATE)}function bn(e){if(!(this instanceof bn))return new bn(e);Qe.call(this,e,te.GZIP)}function _n(e){if(!(this instanceof _n))return new _n(e);Qe.call(this,e,te.GUNZIP)}function mn(e){if(!(this instanceof mn))return new mn(e);Qe.call(this,e,te.DEFLATERAW)}function wn(e){if(!(this instanceof wn))return new wn(e);Qe.call(this,e,te.INFLATERAW)}function xn(e){if(!(this instanceof xn))return new xn(e);Qe.call(this,e,te.UNZIP)}function NE(e){return e===te.Z_NO_FLUSH||e===te.Z_PARTIAL_FLUSH||e===te.Z_SYNC_FLUSH||e===te.Z_FULL_FLUSH||e===te.Z_FINISH||e===te.Z_BLOCK}function Qe(e,t){var r=this;if(this._opts=e=e||{},this._chunkSize=e.chunkSize||$.Z_DEFAULT_CHUNK,PE.call(this,e),e.flush&&!NE(e.flush))throw new Error("Invalid flush flag: "+e.flush);if(e.finishFlush&&!NE(e.finishFlush))throw new Error("Invalid flush flag: "+e.finishFlush);if(this._flushFlag=e.flush||te.Z_NO_FLUSH,this._finishFlushFlag=typeof e.finishFlush<"u"?e.finishFlush:te.Z_FINISH,e.chunkSize&&(e.chunkSize<$.Z_MIN_CHUNK||e.chunkSize>$.Z_MAX_CHUNK))throw new Error("Invalid chunk size: "+e.chunkSize);if(e.windowBits&&(e.windowBits<$.Z_MIN_WINDOWBITS||e.windowBits>$.Z_MAX_WINDOWBITS))throw new Error("Invalid windowBits: "+e.windowBits);if(e.level&&(e.level<$.Z_MIN_LEVEL||e.level>$.Z_MAX_LEVEL))throw new Error("Invalid compression level: "+e.level);if(e.memLevel&&(e.memLevel<$.Z_MIN_MEMLEVEL||e.memLevel>$.Z_MAX_MEMLEVEL))throw new Error("Invalid memLevel: "+e.memLevel);if(e.strategy&&e.strategy!=$.Z_FILTERED&&e.strategy!=$.Z_HUFFMAN_ONLY&&e.strategy!=$.Z_RLE&&e.strategy!=$.Z_FIXED&&e.strategy!=$.Z_DEFAULT_STRATEGY)throw new Error("Invalid strategy: "+e.strategy);if(e.dictionary&&!Sr.isBuffer(e.dictionary))throw new Error("Invalid dictionary: it should be a Buffer instance");this._handle=new te.Zlib(t);var i=this;this._hadError=!1,this._handle.onerror=function(o,s){Hu(i),i._hadError=!0;var y=new Error(o);y.errno=s,y.code=$.codes[s],i.emit("error",y)};var n=$.Z_DEFAULT_COMPRESSION;typeof e.level=="number"&&(n=e.level);var a=$.Z_DEFAULT_STRATEGY;typeof e.strategy=="number"&&(a=e.strategy),this._handle.init(e.windowBits||$.Z_DEFAULT_WINDOWBITS,n,e.memLevel||$.Z_DEFAULT_MEMLEVEL,a,e.dictionary),this._buffer=Sr.allocUnsafe(this._chunkSize),this._offset=0,this._level=n,this._strategy=a,this.once("end",this.close),Object.defineProperty(this,"_closed",{get:function(){return!r._handle},configurable:!0,enumerable:!0})}ci.inherits(Qe,PE);Qe.prototype.params=function(e,t,r){if(e<$.Z_MIN_LEVEL||e>$.Z_MAX_LEVEL)throw new RangeError("Invalid compression level: "+e);if(t!=$.Z_FILTERED&&t!=$.Z_HUFFMAN_ONLY&&t!=$.Z_RLE&&t!=$.Z_FIXED&&t!=$.Z_DEFAULT_STRATEGY)throw new TypeError("Invalid strategy: "+t);if(this._level!==e||this._strategy!==t){var i=this;this.flush(te.Z_SYNC_FLUSH,function(){lf(i._handle,"zlib binding closed"),i._handle.params(e,t),i._hadError||(i._level=e,i._strategy=t,r&&r())})}else M.default.nextTick(r)};Qe.prototype.reset=function(){return lf(this._handle,"zlib binding closed"),this._handle.reset()};Qe.prototype._flush=function(e){this._transform(Sr.alloc(0),"",e)};Qe.prototype.flush=function(e,t){var r=this,i=this._writableState;(typeof e=="function"||e===void 0&&!t)&&(t=e,e=te.Z_FULL_FLUSH),i.ended?t&&M.default.nextTick(t):i.ending?t&&this.once("end",t):i.needDrain?t&&this.once("drain",function(){return r.flush(e,t)}):(this._flushFlag=e,this.write(Sr.alloc(0),"",t))};Qe.prototype.close=function(e){Hu(this,e),M.default.nextTick(OO,this)};function Hu(e,t){t&&M.default.nextTick(t),e._handle&&(e._handle.close(),e._handle=null)}function OO(e){e.emit("close")}Qe.prototype._transform=function(e,t,r){var i,n=this._writableState,a=n.ending||n.ended,o=a&&(!e||n.length===e.length);if(e!==null&&!Sr.isBuffer(e))return r(new Error("invalid input"));if(!this._handle)return r(new Error("zlib binding closed"));o?i=this._finishFlushFlag:(i=this._flushFlag,e.length>=n.length&&(this._flushFlag=this._opts.flush||te.Z_NO_FLUSH)),this._processChunk(e,i,r)};Qe.prototype._processChunk=function(e,t,r){var i=e&&e.length,n=this._chunkSize-this._offset,a=0,o=this,s=typeof r=="function";if(!s){var y=[],_=0,x;this.on("error",function(D){x=D}),lf(this._handle,"zlib binding closed");do var B=this._handle.writeSync(t,e,a,i,this._buffer,this._offset,n);while(!this._hadError&&O(B[0],B[1]));if(this._hadError)throw x;if(_>=G0)throw Hu(this),new RangeError(LE);var k=Sr.concat(y,_);return Hu(this),k}lf(this._handle,"zlib binding closed");var T=this._handle.write(t,e,a,i,this._buffer,this._offset,n);T.buffer=e,T.callback=O;function O(D,U){if(this&&(this.buffer=null,this.callback=null),!o._hadError){var N=n-U;if(lf(N>=0,"have should not go down"),N>0){var j=o._buffer.slice(o._offset,o._offset+N);o._offset+=N,s?o.push(j):(y.push(j),_+=j.length)}if((U===0||o._offset>=o._chunkSize)&&(n=o._chunkSize,o._offset=0,o._buffer=Sr.allocUnsafe(o._chunkSize)),U===0){if(a+=i-D,i=D,!s)return!0;var H=o._handle.write(t,e,a,i,o._buffer,o._offset,o._chunkSize);H.callback=O,H.buffer=e;return}if(!s)return!1;r()}}};ci.inherits(yn,Qe);ci.inherits(gn,Qe);ci.inherits(bn,Qe);ci.inherits(_n,Qe);ci.inherits(mn,Qe);ci.inherits(wn,Qe);ci.inherits(xn,Qe)});var zE=R((nF,jE)=>{"use strict";m();var $0=lw(),iF=Js(),CE=V0(),qO=8*1024*1024;function UE(e,t){var r=t&&t.maxDecompressedBytes||qO;return CE.gunzipSync(I.Buffer.from(e,"base64"),{maxOutputLength:r})}async function FE(e,t){if(!t.expectedIssuerDid)throw new Error("expectedIssuerDid is required to verify a status list (issuer pinning); refusing to read revocation state from an unpinned/unverified JWT");var r=t.didResolver;if(!r){var i=t.issuerJwks||(t.issuerPublicJwk?{keys:[t.issuerPublicJwk]}:null);if(!i)throw new Error("Provide params.didResolver, params.issuerJwks, or params.issuerPublicJwk to verify the status list signature");r=async function(){return{jwks:i}}}var n=await $0.verifyVcJwt(e,{didResolver:r,expectedIssuerDid:t.expectedIssuerDid,allowedAlgs:t.allowedAlgs,allowLegacyDER:t.allowLegacyDER,clockToleranceSec:t.clockToleranceSec});if(!n.valid)throw new Error("Status list signature verification failed: "+(n.error||"invalid signature"));return n.payload}async function DO(e){if(!e.issuerDid||!e.privateJwk)throw new Error("issuerDid and privateJwk are required");var t=e.listId||e.issuerDid+"/status/"+Date.now(),r=e.listSize||1e5,i=Math.ceil(r/8),n=I.Buffer.alloc(i,0),a=V0(),o=a.gzipSync(n),s=o.toString("base64"),y={"@context":["https://www.w3.org/2018/credentials/v1","https://w3id.org/vc/status-list/2021/v1"],type:["VerifiableCredential","StatusList2021Credential"],issuer:e.issuerDid,issuanceDate:new Date().toISOString(),credentialSubject:{id:t,type:"StatusList2021",statusPurpose:"revocation",encodedList:s}},_=await $0.issueVcJwt({issuerDid:e.issuerDid,subjectId:t,types:["VerifiableCredential","StatusList2021Credential"],credentialSubject:y.credentialSubject,privateJwk:e.privateJwk,alg:e.privateJwk.alg||"ES256"});return{listVcJwt:_.jwt,listId:t}}async function NO(e){if(!e.listVcJwt||e.index===void 0||!e.status||!e.privateJwk)throw new Error("listVcJwt, index, status, and privateJwk are required");var t=await FE(e.listVcJwt,e),r=t.vc.credentialSubject.encodedList,i=UE(r,e),n=Math.floor(e.index/8),a=e.index%8;if(n>=i.length)throw new Error("Index out of range");var o=e.status==="revoked"||e.status==="suspended"?1:0;o===1?i[n]|=1<<a:i[n]&=~(1<<a);var s=CE.gzipSync(i),y=s.toString("base64"),_={id:t.vc.credentialSubject.id,type:"StatusList2021",statusPurpose:"revocation",encodedList:y},x=await $0.issueVcJwt({issuerDid:t.iss,subjectId:t.vc.credentialSubject.id,types:["VerifiableCredential","StatusList2021Credential"],credentialSubject:_,privateJwk:e.privateJwk,alg:e.privateJwk.alg||"ES256"});return{listVcJwt:x.jwt}}async function PO(e){if(!e.listVcJwt||e.index===void 0)throw new Error("listVcJwt and index are required");var t=await FE(e.listVcJwt,e),r=t.vc.credentialSubject.encodedList,i=UE(r,e),n=Math.floor(e.index/8),a=e.index%8;if(n>=i.length)throw new Error("Index out of range");var o=i[n]>>a&1;return o===1?"revoked":"valid"}jE.exports={createStatusList:DO,updateStatusList:NO,getCredentialStatusEntry:PO}});var LO=R((oF,ZE)=>{m();ZE.exports=zE()});return LO();})();
74
+ if(typeof module!=="undefined"&&module.exports){module.exports=bsvStatusList}else if(typeof define==="function"&&define.amd){define([],function(){return bsvStatusList})}