/*! For license information please see main.js.LICENSE.txt */ (()=>{var r,i={77147:(r,i,n)=>{function isBrowserBundle(){return"undefined"!=typeof __SENTRY_BROWSER_BUNDLE__&&!!__SENTRY_BROWSER_BUNDLE__}function getSDKSource(){return"npm"}n.d(i,{S:()=>getSDKSource,n:()=>isBrowserBundle})},98612:(r,i,n)=>{n.d(i,{KV:()=>isNodeEnv,l$:()=>dynamicRequire});var o=n(77147);r=n.hmd(r);var u=n(2724);function isNodeEnv(){return!(0,o.n)()&&"[object process]"===Object.prototype.toString.call(void 0!==u?u:0)}function dynamicRequire(r,i){return r.require(i)}},97685:(r,i,n)=>{n.d(i,{Z1:()=>x,ph:()=>k,yW:()=>g});var o=n(98612),u=n(92420);r=n.hmd(r);const l=(0,u.Rf)(),_={nowSeconds:()=>Date.now()/1e3};const p=(0,o.KV)()?function getNodePerformance(){try{return(0,o.l$)(r,"perf_hooks").performance}catch(i){return}}():function getBrowserPerformance(){const{performance:r}=l;if(!r||!r.now)return;return{now:()=>r.now(),timeOrigin:Date.now()-r.now()}}(),b=void 0===p?_:{nowSeconds:()=>(p.timeOrigin+p.now())/1e3},g=_.nowSeconds.bind(_),k=b.nowSeconds.bind(b);let I;const x=(()=>{const{performance:r}=l;if(!r||!r.now)return void(I="none");const i=36e5,n=r.now(),o=Date.now(),u=r.timeOrigin?Math.abs(r.timeOrigin+n-o):i,_=u{function isGlobalObj(r){return r&&r.Math==Math?r:void 0}n.d(i,{Rf:()=>getGlobalObject,YO:()=>getGlobalSingleton,n2:()=>o});const o="object"==typeof globalThis&&isGlobalObj(globalThis)||"object"==typeof window&&isGlobalObj(window)||"object"==typeof self&&isGlobalObj(self)||"object"==typeof n.g&&isGlobalObj(n.g)||function(){return this}()||{};function getGlobalObject(){return o}function getGlobalSingleton(r,i,n){const u=n||o,l=u.__SENTRY__=u.__SENTRY__||{};return l[r]||(l[r]=i())}},92047:(r,i,n)=>{const o=i;o.bignum=n(11143),o.define=n(75141).define,o.base=n(10479),o.constants=n(55533),o.decoders=n(60412),o.encoders=n(75039)},75141:(r,i,n)=>{const o=n(75039),u=n(60412),l=n(40137);function Entity(r,i){this.name=r,this.body=i,this.decoders={},this.encoders={}}i.define=function define(r,i){return new Entity(r,i)},Entity.prototype._createNamed=function createNamed(r){const i=this.name;function Generated(r){this._initNamed(r,i)}return l(Generated,r),Generated.prototype._initNamed=function _initNamed(i,n){r.call(this,i,n)},new Generated(this)},Entity.prototype._getDecoder=function _getDecoder(r){return r=r||"der",this.decoders.hasOwnProperty(r)||(this.decoders[r]=this._createNamed(u[r])),this.decoders[r]},Entity.prototype.decode=function decode(r,i,n){return this._getDecoder(i).decode(r,n)},Entity.prototype._getEncoder=function _getEncoder(r){return r=r||"der",this.encoders.hasOwnProperty(r)||(this.encoders[r]=this._createNamed(o[r])),this.encoders[r]},Entity.prototype.encode=function encode(r,i,n){return this._getEncoder(i).encode(r,n)}},56465:(r,i,n)=>{const o=n(40137),u=n(35058).b,l=n(28632).Buffer;function DecoderBuffer(r,i){u.call(this,i),l.isBuffer(r)?(this.base=r,this.offset=0,this.length=r.length):this.error("Input not Buffer")}function EncoderBuffer(r,i){if(Array.isArray(r))this.length=0,this.value=r.map((function(r){return EncoderBuffer.isEncoderBuffer(r)||(r=new EncoderBuffer(r,i)),this.length+=r.length,r}),this);else if("number"==typeof r){if(!(0<=r&&r<=255))return i.error("non-byte EncoderBuffer value");this.value=r,this.length=1}else if("string"==typeof r)this.value=r,this.length=l.byteLength(r);else{if(!l.isBuffer(r))return i.error("Unsupported type: "+typeof r);this.value=r,this.length=r.length}}o(DecoderBuffer,u),i.C=DecoderBuffer,DecoderBuffer.isDecoderBuffer=function isDecoderBuffer(r){if(r instanceof DecoderBuffer)return!0;return"object"==typeof r&&l.isBuffer(r.base)&&"DecoderBuffer"===r.constructor.name&&"number"==typeof r.offset&&"number"==typeof r.length&&"function"==typeof r.save&&"function"==typeof r.restore&&"function"==typeof r.isEmpty&&"function"==typeof r.readUInt8&&"function"==typeof r.skip&&"function"==typeof r.raw},DecoderBuffer.prototype.save=function save(){return{offset:this.offset,reporter:u.prototype.save.call(this)}},DecoderBuffer.prototype.restore=function restore(r){const i=new DecoderBuffer(this.base);return i.offset=r.offset,i.length=this.offset,this.offset=r.offset,u.prototype.restore.call(this,r.reporter),i},DecoderBuffer.prototype.isEmpty=function isEmpty(){return this.offset===this.length},DecoderBuffer.prototype.readUInt8=function readUInt8(r){return this.offset+1<=this.length?this.base.readUInt8(this.offset++,!0):this.error(r||"DecoderBuffer overrun")},DecoderBuffer.prototype.skip=function skip(r,i){if(!(this.offset+r<=this.length))return this.error(i||"DecoderBuffer overrun");const n=new DecoderBuffer(this.base);return n._reporterState=this._reporterState,n.offset=this.offset,n.length=this.offset+r,this.offset+=r,n},DecoderBuffer.prototype.raw=function raw(r){return this.base.slice(r?r.offset:this.offset,this.length)},i.R=EncoderBuffer,EncoderBuffer.isEncoderBuffer=function isEncoderBuffer(r){if(r instanceof EncoderBuffer)return!0;return"object"==typeof r&&"EncoderBuffer"===r.constructor.name&&"number"==typeof r.length&&"function"==typeof r.join},EncoderBuffer.prototype.join=function join(r,i){return r||(r=l.alloc(this.length)),i||(i=0),0===this.length||(Array.isArray(this.value)?this.value.forEach((function(n){n.join(r,i),i+=n.length})):("number"==typeof this.value?r[i]=this.value:"string"==typeof this.value?r.write(this.value,i):l.isBuffer(this.value)&&this.value.copy(r,i),i+=this.length)),r}},10479:(r,i,n)=>{const o=i;o.Reporter=n(35058).b,o.DecoderBuffer=n(56465).C,o.EncoderBuffer=n(56465).R,o.Node=n(25324)},25324:(r,i,n)=>{const o=n(35058).b,u=n(56465).R,l=n(56465).C,_=n(97338),p=["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"],b=["key","obj","use","optional","explicit","implicit","def","choice","any","contains"].concat(p);function Node(r,i,n){const o={};this._baseState=o,o.name=n,o.enc=r,o.parent=i||null,o.children=null,o.tag=null,o.args=null,o.reverseArgs=null,o.choice=null,o.optional=!1,o.any=!1,o.obj=!1,o.use=null,o.useDecoder=null,o.key=null,o.default=null,o.explicit=null,o.implicit=null,o.contains=null,o.parent||(o.children=[],this._wrap())}r.exports=Node;const g=["enc","parent","children","tag","args","reverseArgs","choice","optional","any","obj","use","alteredUse","key","default","explicit","implicit","contains"];Node.prototype.clone=function clone(){const r=this._baseState,i={};g.forEach((function(n){i[n]=r[n]}));const n=new this.constructor(i.parent);return n._baseState=i,n},Node.prototype._wrap=function wrap(){const r=this._baseState;b.forEach((function(i){this[i]=function _wrappedMethod(){const n=new this.constructor(this);return r.children.push(n),n[i].apply(n,arguments)}}),this)},Node.prototype._init=function init(r){const i=this._baseState;_(null===i.parent),r.call(this),i.children=i.children.filter((function(r){return r._baseState.parent===this}),this),_.equal(i.children.length,1,"Root node can have only one child")},Node.prototype._useArgs=function useArgs(r){const i=this._baseState,n=r.filter((function(r){return r instanceof this.constructor}),this);r=r.filter((function(r){return!(r instanceof this.constructor)}),this),0!==n.length&&(_(null===i.children),i.children=n,n.forEach((function(r){r._baseState.parent=this}),this)),0!==r.length&&(_(null===i.args),i.args=r,i.reverseArgs=r.map((function(r){if("object"!=typeof r||r.constructor!==Object)return r;const i={};return Object.keys(r).forEach((function(n){n==(0|n)&&(n|=0);const o=r[n];i[o]=n})),i})))},["_peekTag","_decodeTag","_use","_decodeStr","_decodeObjid","_decodeTime","_decodeNull","_decodeInt","_decodeBool","_decodeList","_encodeComposite","_encodeStr","_encodeObjid","_encodeTime","_encodeNull","_encodeInt","_encodeBool"].forEach((function(r){Node.prototype[r]=function _overrided(){const i=this._baseState;throw new Error(r+" not implemented for encoding: "+i.enc)}})),p.forEach((function(r){Node.prototype[r]=function _tagMethod(){const i=this._baseState,n=Array.prototype.slice.call(arguments);return _(null===i.tag),i.tag=r,this._useArgs(n),this}})),Node.prototype.use=function use(r){_(r);const i=this._baseState;return _(null===i.use),i.use=r,this},Node.prototype.optional=function optional(){return this._baseState.optional=!0,this},Node.prototype.def=function def(r){const i=this._baseState;return _(null===i.default),i.default=r,i.optional=!0,this},Node.prototype.explicit=function explicit(r){const i=this._baseState;return _(null===i.explicit&&null===i.implicit),i.explicit=r,this},Node.prototype.implicit=function implicit(r){const i=this._baseState;return _(null===i.explicit&&null===i.implicit),i.implicit=r,this},Node.prototype.obj=function obj(){const r=this._baseState,i=Array.prototype.slice.call(arguments);return r.obj=!0,0!==i.length&&this._useArgs(i),this},Node.prototype.key=function key(r){const i=this._baseState;return _(null===i.key),i.key=r,this},Node.prototype.any=function any(){return this._baseState.any=!0,this},Node.prototype.choice=function choice(r){const i=this._baseState;return _(null===i.choice),i.choice=r,this._useArgs(Object.keys(r).map((function(i){return r[i]}))),this},Node.prototype.contains=function contains(r){const i=this._baseState;return _(null===i.use),i.contains=r,this},Node.prototype._decode=function decode(r,i){const n=this._baseState;if(null===n.parent)return r.wrapResult(n.children[0]._decode(r,i));let o,u=n.default,_=!0,p=null;if(null!==n.key&&(p=r.enterKey(n.key)),n.optional){let o=null;if(null!==n.explicit?o=n.explicit:null!==n.implicit?o=n.implicit:null!==n.tag&&(o=n.tag),null!==o||n.any){if(_=this._peekTag(r,o,n.any),r.isError(_))return _}else{const o=r.save();try{null===n.choice?this._decodeGeneric(n.tag,r,i):this._decodeChoice(r,i),_=!0}catch(b){_=!1}r.restore(o)}}if(n.obj&&_&&(o=r.enterObject()),_){if(null!==n.explicit){const i=this._decodeTag(r,n.explicit);if(r.isError(i))return i;r=i}const o=r.offset;if(null===n.use&&null===n.choice){let i;n.any&&(i=r.save());const o=this._decodeTag(r,null!==n.implicit?n.implicit:n.tag,n.any);if(r.isError(o))return o;n.any?u=r.raw(i):r=o}if(i&&i.track&&null!==n.tag&&i.track(r.path(),o,r.length,"tagged"),i&&i.track&&null!==n.tag&&i.track(r.path(),r.offset,r.length,"content"),n.any||(u=null===n.choice?this._decodeGeneric(n.tag,r,i):this._decodeChoice(r,i)),r.isError(u))return u;if(n.any||null!==n.choice||null===n.children||n.children.forEach((function decodeChildren(n){n._decode(r,i)})),n.contains&&("octstr"===n.tag||"bitstr"===n.tag)){const o=new l(u);u=this._getUse(n.contains,r._reporterState.obj)._decode(o,i)}}return n.obj&&_&&(u=r.leaveObject(o)),null===n.key||null===u&&!0!==_?null!==p&&r.exitKey(p):r.leaveKey(p,n.key,u),u},Node.prototype._decodeGeneric=function decodeGeneric(r,i,n){const o=this._baseState;return"seq"===r||"set"===r?null:"seqof"===r||"setof"===r?this._decodeList(i,r,o.args[0],n):/str$/.test(r)?this._decodeStr(i,r,n):"objid"===r&&o.args?this._decodeObjid(i,o.args[0],o.args[1],n):"objid"===r?this._decodeObjid(i,null,null,n):"gentime"===r||"utctime"===r?this._decodeTime(i,r,n):"null_"===r?this._decodeNull(i,n):"bool"===r?this._decodeBool(i,n):"objDesc"===r?this._decodeStr(i,r,n):"int"===r||"enum"===r?this._decodeInt(i,o.args&&o.args[0],n):null!==o.use?this._getUse(o.use,i._reporterState.obj)._decode(i,n):i.error("unknown tag: "+r)},Node.prototype._getUse=function _getUse(r,i){const n=this._baseState;return n.useDecoder=this._use(r,i),_(null===n.useDecoder._baseState.parent),n.useDecoder=n.useDecoder._baseState.children[0],n.implicit!==n.useDecoder._baseState.implicit&&(n.useDecoder=n.useDecoder.clone(),n.useDecoder._baseState.implicit=n.implicit),n.useDecoder},Node.prototype._decodeChoice=function decodeChoice(r,i){const n=this._baseState;let o=null,u=!1;return Object.keys(n.choice).some((function(l){const _=r.save(),p=n.choice[l];try{const n=p._decode(r,i);if(r.isError(n))return!1;o={type:l,value:n},u=!0}catch(b){return r.restore(_),!1}return!0}),this),u?o:r.error("Choice not matched")},Node.prototype._createEncoderBuffer=function createEncoderBuffer(r){return new u(r,this.reporter)},Node.prototype._encode=function encode(r,i,n){const o=this._baseState;if(null!==o.default&&o.default===r)return;const u=this._encodeValue(r,i,n);return void 0===u||this._skipDefault(u,i,n)?void 0:u},Node.prototype._encodeValue=function encode(r,i,n){const u=this._baseState;if(null===u.parent)return u.children[0]._encode(r,i||new o);let l=null;if(this.reporter=i,u.optional&&void 0===r){if(null===u.default)return;r=u.default}let _=null,p=!1;if(u.any)l=this._createEncoderBuffer(r);else if(u.choice)l=this._encodeChoice(r,i);else if(u.contains)_=this._getUse(u.contains,n)._encode(r,i),p=!0;else if(u.children)_=u.children.map((function(n){if("null_"===n._baseState.tag)return n._encode(null,i,r);if(null===n._baseState.key)return i.error("Child should have a key");const o=i.enterKey(n._baseState.key);if("object"!=typeof r)return i.error("Child expected, but input is not object");const u=n._encode(r[n._baseState.key],i,r);return i.leaveKey(o),u}),this).filter((function(r){return r})),_=this._createEncoderBuffer(_);else if("seqof"===u.tag||"setof"===u.tag){if(!u.args||1!==u.args.length)return i.error("Too many args for : "+u.tag);if(!Array.isArray(r))return i.error("seqof/setof, but data is not Array");const n=this.clone();n._baseState.implicit=null,_=this._createEncoderBuffer(r.map((function(n){const o=this._baseState;return this._getUse(o.args[0],r)._encode(n,i)}),n))}else null!==u.use?l=this._getUse(u.use,n)._encode(r,i):(_=this._encodePrimitive(u.tag,r),p=!0);if(!u.any&&null===u.choice){const r=null!==u.implicit?u.implicit:u.tag,n=null===u.implicit?"universal":"context";null===r?null===u.use&&i.error("Tag could be omitted only for .use()"):null===u.use&&(l=this._encodeComposite(r,p,n,_))}return null!==u.explicit&&(l=this._encodeComposite(u.explicit,!1,"context",l)),l},Node.prototype._encodeChoice=function encodeChoice(r,i){const n=this._baseState,o=n.choice[r.type];return o||_(!1,r.type+" not found in "+JSON.stringify(Object.keys(n.choice))),o._encode(r.value,i)},Node.prototype._encodePrimitive=function encodePrimitive(r,i){const n=this._baseState;if(/str$/.test(r))return this._encodeStr(i,r);if("objid"===r&&n.args)return this._encodeObjid(i,n.reverseArgs[0],n.args[1]);if("objid"===r)return this._encodeObjid(i,null,null);if("gentime"===r||"utctime"===r)return this._encodeTime(i,r);if("null_"===r)return this._encodeNull();if("int"===r||"enum"===r)return this._encodeInt(i,n.args&&n.reverseArgs[0]);if("bool"===r)return this._encodeBool(i);if("objDesc"===r)return this._encodeStr(i,r);throw new Error("Unsupported tag: "+r)},Node.prototype._isNumstr=function isNumstr(r){return/^[0-9 ]*$/.test(r)},Node.prototype._isPrintstr=function isPrintstr(r){return/^[A-Za-z0-9 '()+,-./:=?]*$/.test(r)}},35058:(r,i,n)=>{const o=n(40137);function Reporter(r){this._reporterState={obj:null,path:[],options:r||{},errors:[]}}function ReporterError(r,i){this.path=r,this.rethrow(i)}i.b=Reporter,Reporter.prototype.isError=function isError(r){return r instanceof ReporterError},Reporter.prototype.save=function save(){const r=this._reporterState;return{obj:r.obj,pathLen:r.path.length}},Reporter.prototype.restore=function restore(r){const i=this._reporterState;i.obj=r.obj,i.path=i.path.slice(0,r.pathLen)},Reporter.prototype.enterKey=function enterKey(r){return this._reporterState.path.push(r)},Reporter.prototype.exitKey=function exitKey(r){const i=this._reporterState;i.path=i.path.slice(0,r-1)},Reporter.prototype.leaveKey=function leaveKey(r,i,n){const o=this._reporterState;this.exitKey(r),null!==o.obj&&(o.obj[i]=n)},Reporter.prototype.path=function path(){return this._reporterState.path.join("/")},Reporter.prototype.enterObject=function enterObject(){const r=this._reporterState,i=r.obj;return r.obj={},i},Reporter.prototype.leaveObject=function leaveObject(r){const i=this._reporterState,n=i.obj;return i.obj=r,n},Reporter.prototype.error=function error(r){let i;const n=this._reporterState,o=r instanceof ReporterError;if(i=o?r:new ReporterError(n.path.map((function(r){return"["+JSON.stringify(r)+"]"})).join(""),r.message||r,r.stack),!n.options.partial)throw i;return o||n.errors.push(i),i},Reporter.prototype.wrapResult=function wrapResult(r){const i=this._reporterState;return i.options.partial?{result:this.isError(r)?null:r,errors:i.errors}:r},o(ReporterError,Error),ReporterError.prototype.rethrow=function rethrow(r){if(this.message=r+" at: "+(this.path||"(shallow)"),Error.captureStackTrace&&Error.captureStackTrace(this,ReporterError),!this.stack)try{throw new Error(this.message)}catch(i){this.stack=i.stack}return this}},15228:(r,i)=>{function reverse(r){const i={};return Object.keys(r).forEach((function(n){(0|n)==n&&(n|=0);const o=r[n];i[o]=n})),i}i.tagClass={0:"universal",1:"application",2:"context",3:"private"},i.tagClassByName=reverse(i.tagClass),i.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"},i.tagByName=reverse(i.tag)},55533:(r,i,n)=>{const o=i;o._reverse=function reverse(r){const i={};return Object.keys(r).forEach((function(n){(0|n)==n&&(n|=0);const o=r[n];i[o]=n})),i},o.der=n(15228)},99008:(r,i,n)=>{const o=n(40137),u=n(11143),l=n(56465).C,_=n(25324),p=n(15228);function DERDecoder(r){this.enc="der",this.name=r.name,this.entity=r,this.tree=new DERNode,this.tree._init(r.body)}function DERNode(r){_.call(this,"der",r)}function derDecodeTag(r,i){let n=r.readUInt8(i);if(r.isError(n))return n;const o=p.tagClass[n>>6],u=0==(32&n);if(31==(31&n)){let o=n;for(n=0;128==(128&o);){if(o=r.readUInt8(i),r.isError(o))return o;n<<=7,n|=127&o}}else n&=31;return{cls:o,primitive:u,tag:n,tagStr:p.tag[n]}}function derDecodeLen(r,i,n){let o=r.readUInt8(n);if(r.isError(o))return o;if(!i&&128===o)return null;if(0==(128&o))return o;const u=127&o;if(u>4)return r.error("length octect is too long");o=0;for(let l=0;l{const o=i;o.der=n(99008),o.pem=n(41293)},41293:(r,i,n)=>{const o=n(40137),u=n(28632).Buffer,l=n(99008);function PEMDecoder(r){l.call(this,r),this.enc="pem"}o(PEMDecoder,l),r.exports=PEMDecoder,PEMDecoder.prototype.decode=function decode(r,i){const n=r.toString().split(/[\r\n]+/g),o=i.label.toUpperCase(),_=/^-----(BEGIN|END) ([^-]+)-----$/;let p=-1,b=-1;for(let u=0;u{const o=n(40137),u=n(28632).Buffer,l=n(25324),_=n(15228);function DEREncoder(r){this.enc="der",this.name=r.name,this.entity=r,this.tree=new DERNode,this.tree._init(r.body)}function DERNode(r){l.call(this,"der",r)}function two(r){return r<10?"0"+r:r}r.exports=DEREncoder,DEREncoder.prototype.encode=function encode(r,i){return this.tree._encode(r,i).join()},o(DERNode,l),DERNode.prototype._encodeComposite=function encodeComposite(r,i,n,o){const l=function encodeTag(r,i,n,o){let u;"seqof"===r?r="seq":"setof"===r&&(r="set");if(_.tagByName.hasOwnProperty(r))u=_.tagByName[r];else{if("number"!=typeof r||(0|r)!==r)return o.error("Unknown tag: "+r);u=r}if(u>=31)return o.error("Multi-octet tag encoding unsupported");i||(u|=32);return u|=_.tagClassByName[n||"universal"]<<6,u}(r,i,n,this.reporter);if(o.length<128){const r=u.alloc(2);return r[0]=l,r[1]=o.length,this._createEncoderBuffer([r,o])}let p=1;for(let u=o.length;u>=256;u>>=8)p++;const b=u.alloc(2+p);b[0]=l,b[1]=128|p;for(let u=1+p,_=o.length;_>0;u--,_>>=8)b[u]=255&_;return this._createEncoderBuffer([b,o])},DERNode.prototype._encodeStr=function encodeStr(r,i){if("bitstr"===i)return this._createEncoderBuffer([0|r.unused,r.data]);if("bmpstr"===i){const i=u.alloc(2*r.length);for(let n=0;n=40)return this.reporter.error("Second objid identifier OOB");r.splice(0,2,40*r[0]+r[1])}let o=0;for(let u=0;u=128;i>>=7)o++}const l=u.alloc(o);let _=l.length-1;for(let u=r.length-1;u>=0;u--){let i=r[u];for(l[_--]=127&i;(i>>=7)>0;)l[_--]=128|127&i}return this._createEncoderBuffer(l)},DERNode.prototype._encodeTime=function encodeTime(r,i){let n;const o=new Date(r);return"gentime"===i?n=[two(o.getUTCFullYear()),two(o.getUTCMonth()+1),two(o.getUTCDate()),two(o.getUTCHours()),two(o.getUTCMinutes()),two(o.getUTCSeconds()),"Z"].join(""):"utctime"===i?n=[two(o.getUTCFullYear()%100),two(o.getUTCMonth()+1),two(o.getUTCDate()),two(o.getUTCHours()),two(o.getUTCMinutes()),two(o.getUTCSeconds()),"Z"].join(""):this.reporter.error("Encoding "+i+" time is not supported yet"),this._encodeStr(n,"octstr")},DERNode.prototype._encodeNull=function encodeNull(){return this._createEncoderBuffer("")},DERNode.prototype._encodeInt=function encodeInt(r,i){if("string"==typeof r){if(!i)return this.reporter.error("String int or enum given, but no values map");if(!i.hasOwnProperty(r))return this.reporter.error("Values map doesn't contain: "+JSON.stringify(r));r=i[r]}if("number"!=typeof r&&!u.isBuffer(r)){const i=r.toArray();!r.sign&&128&i[0]&&i.unshift(0),r=u.from(i)}if(u.isBuffer(r)){let i=r.length;0===r.length&&i++;const n=u.alloc(i);return r.copy(n),0===r.length&&(n[0]=0),this._createEncoderBuffer(n)}if(r<128)return this._createEncoderBuffer(r);if(r<256)return this._createEncoderBuffer([0,r]);let n=1;for(let u=r;u>=256;u>>=8)n++;const o=new Array(n);for(let u=o.length-1;u>=0;u--)o[u]=255&r,r>>=8;return 128&o[0]&&o.unshift(0),this._createEncoderBuffer(u.from(o))},DERNode.prototype._encodeBool=function encodeBool(r){return this._createEncoderBuffer(r?255:0)},DERNode.prototype._use=function use(r,i){return"function"==typeof r&&(r=r(i)),r._getEncoder("der").tree},DERNode.prototype._skipDefault=function skipDefault(r,i,n){const o=this._baseState;let u;if(null===o.default)return!1;const l=r.join();if(void 0===o.defaultBuffer&&(o.defaultBuffer=this._encodeValue(o.default,i,n).join()),l.length!==o.defaultBuffer.length)return!1;for(u=0;u{const o=i;o.der=n(25156),o.pem=n(35734)},35734:(r,i,n)=>{const o=n(40137),u=n(25156);function PEMEncoder(r){u.call(this,r),this.enc="pem"}o(PEMEncoder,u),r.exports=PEMEncoder,PEMEncoder.prototype.encode=function encode(r,i){const n=u.prototype.encode.call(this,r).toString("base64"),o=["-----BEGIN "+i.label+"-----"];for(let u=0;u=65&&n<=70?n-55:n>=97&&n<=102?n-87:n-48&15}function parseHexByte(r,i,n){var o=parseHex4Bits(r,n);return n-1>=i&&(o|=parseHex4Bits(r,n-1)<<4),o}function parseBase(r,i,n,o){for(var u=0,l=Math.min(r.length,n),_=i;_=49?p-49+10:p>=17?p-17+10:p}return u}BN.isBN=function isBN(r){return r instanceof BN||null!==r&&"object"==typeof r&&r.constructor.wordSize===BN.wordSize&&Array.isArray(r.words)},BN.max=function max(r,i){return r.cmp(i)>0?r:i},BN.min=function min(r,i){return r.cmp(i)<0?r:i},BN.prototype._init=function init(r,i,n){if("number"==typeof r)return this._initNumber(r,i,n);if("object"==typeof r)return this._initArray(r,i,n);"hex"===i&&(i=16),assert(i===(0|i)&&i>=2&&i<=36);var o=0;"-"===(r=r.toString().replace(/\s+/g,""))[0]&&(o++,this.negative=1),o=0;o-=3)l=r[o]|r[o-1]<<8|r[o-2]<<16,this.words[u]|=l<<_&67108863,this.words[u+1]=l>>>26-_&67108863,(_+=24)>=26&&(_-=26,u++);else if("le"===n)for(o=0,u=0;o>>26-_&67108863,(_+=24)>=26&&(_-=26,u++);return this.strip()},BN.prototype._parseHex=function _parseHex(r,i,n){this.length=Math.ceil((r.length-i)/6),this.words=new Array(this.length);for(var o=0;o=i;o-=2)u=parseHexByte(r,i,o)<=18?(l-=18,_+=1,this.words[_]|=u>>>26):l+=8;else for(o=(r.length-i)%2==0?i+1:i;o=18?(l-=18,_+=1,this.words[_]|=u>>>26):l+=8;this.strip()},BN.prototype._parseBase=function _parseBase(r,i,n){this.words=[0],this.length=1;for(var o=0,u=1;u<=67108863;u*=i)o++;o--,u=u/i|0;for(var l=r.length-n,_=l%o,p=Math.min(l,l-_)+n,b=0,g=n;g1&&0===this.words[this.length-1];)this.length--;return this._normSign()},BN.prototype._normSign=function _normSign(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},BN.prototype.inspect=function inspect(){return(this.red?""};var u=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],l=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],_=[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 smallMulTo(r,i,n){n.negative=i.negative^r.negative;var o=r.length+i.length|0;n.length=o,o=o-1|0;var u=0|r.words[0],l=0|i.words[0],_=u*l,p=67108863&_,b=_/67108864|0;n.words[0]=p;for(var g=1;g>>26,I=67108863&b,x=Math.min(g,i.length-1),j=Math.max(0,g-r.length+1);j<=x;j++){var q=g-j|0;k+=(_=(u=0|r.words[q])*(l=0|i.words[j])+I)/67108864|0,I=67108863&_}n.words[g]=0|I,b=0|k}return 0!==b?n.words[g]=0|b:n.length--,n.strip()}BN.prototype.toString=function toString(r,i){var n;if(i=0|i||1,16===(r=r||10)||"hex"===r){n="";for(var o=0,p=0,b=0;b>>24-o&16777215)||b!==this.length-1?u[6-k.length]+k+n:k+n,(o+=2)>=26&&(o-=26,b--)}for(0!==p&&(n=p.toString(16)+n);n.length%i!=0;)n="0"+n;return 0!==this.negative&&(n="-"+n),n}if(r===(0|r)&&r>=2&&r<=36){var I=l[r],x=_[r];n="";var j=this.clone();for(j.negative=0;!j.isZero();){var q=j.modn(x).toString(r);n=(j=j.idivn(x)).isZero()?q+n:u[I-q.length]+q+n}for(this.isZero()&&(n="0"+n);n.length%i!=0;)n="0"+n;return 0!==this.negative&&(n="-"+n),n}assert(!1,"Base should be between 2 and 36")},BN.prototype.toNumber=function toNumber(){var r=this.words[0];return 2===this.length?r+=67108864*this.words[1]:3===this.length&&1===this.words[2]?r+=4503599627370496+67108864*this.words[1]:this.length>2&&assert(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-r:r},BN.prototype.toJSON=function toJSON(){return this.toString(16)},BN.prototype.toBuffer=function toBuffer(r,i){return assert(void 0!==o),this.toArrayLike(o,r,i)},BN.prototype.toArray=function toArray(r,i){return this.toArrayLike(Array,r,i)},BN.prototype.toArrayLike=function toArrayLike(r,i,n){var o=this.byteLength(),u=n||Math.max(1,o);assert(o<=u,"byte array longer than desired length"),assert(u>0,"Requested array length <= 0"),this.strip();var l,_,p="le"===i,b=new r(u),g=this.clone();if(p){for(_=0;!g.isZero();_++)l=g.andln(255),g.iushrn(8),b[_]=l;for(;_=4096&&(n+=13,i>>>=13),i>=64&&(n+=7,i>>>=7),i>=8&&(n+=4,i>>>=4),i>=2&&(n+=2,i>>>=2),n+i},BN.prototype._zeroBits=function _zeroBits(r){if(0===r)return 26;var i=r,n=0;return 0==(8191&i)&&(n+=13,i>>>=13),0==(127&i)&&(n+=7,i>>>=7),0==(15&i)&&(n+=4,i>>>=4),0==(3&i)&&(n+=2,i>>>=2),0==(1&i)&&n++,n},BN.prototype.bitLength=function bitLength(){var r=this.words[this.length-1],i=this._countBits(r);return 26*(this.length-1)+i},BN.prototype.zeroBits=function zeroBits(){if(this.isZero())return 0;for(var r=0,i=0;ir.length?this.clone().ior(r):r.clone().ior(this)},BN.prototype.uor=function uor(r){return this.length>r.length?this.clone().iuor(r):r.clone().iuor(this)},BN.prototype.iuand=function iuand(r){var i;i=this.length>r.length?r:this;for(var n=0;nr.length?this.clone().iand(r):r.clone().iand(this)},BN.prototype.uand=function uand(r){return this.length>r.length?this.clone().iuand(r):r.clone().iuand(this)},BN.prototype.iuxor=function iuxor(r){var i,n;this.length>r.length?(i=this,n=r):(i=r,n=this);for(var o=0;or.length?this.clone().ixor(r):r.clone().ixor(this)},BN.prototype.uxor=function uxor(r){return this.length>r.length?this.clone().iuxor(r):r.clone().iuxor(this)},BN.prototype.inotn=function inotn(r){assert("number"==typeof r&&r>=0);var i=0|Math.ceil(r/26),n=r%26;this._expand(i),n>0&&i--;for(var o=0;o0&&(this.words[o]=~this.words[o]&67108863>>26-n),this.strip()},BN.prototype.notn=function notn(r){return this.clone().inotn(r)},BN.prototype.setn=function setn(r,i){assert("number"==typeof r&&r>=0);var n=r/26|0,o=r%26;return this._expand(n+1),this.words[n]=i?this.words[n]|1<r.length?(n=this,o=r):(n=r,o=this);for(var u=0,l=0;l>>26;for(;0!==u&&l>>26;if(this.length=n.length,0!==u)this.words[this.length]=u,this.length++;else if(n!==this)for(;lr.length?this.clone().iadd(r):r.clone().iadd(this)},BN.prototype.isub=function isub(r){if(0!==r.negative){r.negative=0;var i=this.iadd(r);return r.negative=1,i._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(r),this.negative=1,this._normSign();var n,o,u=this.cmp(r);if(0===u)return this.negative=0,this.length=1,this.words[0]=0,this;u>0?(n=this,o=r):(n=r,o=this);for(var l=0,_=0;_>26,this.words[_]=67108863&i;for(;0!==l&&_>26,this.words[_]=67108863&i;if(0===l&&_>>13,j=0|_[1],q=8191&j,Y=j>>>13,$=0|_[2],J=8191&$,te=$>>>13,re=0|_[3],ie=8191&re,ne=re>>>13,ae=0|_[4],oe=8191&ae,se=ae>>>13,de=0|_[5],ce=8191&de,ue=de>>>13,le=0|_[6],_e=8191&le,pe=le>>>13,he=0|_[7],fe=8191&he,me=he>>>13,be=0|_[8],ge=8191&be,ye=be>>>13,ve=0|_[9],we=8191&ve,Se=ve>>>13,Ee=0|p[0],ke=8191&Ee,Ae=Ee>>>13,Te=0|p[1],Ce=8191&Te,Me=Te>>>13,Pe=0|p[2],Re=8191&Pe,Ie=Pe>>>13,De=0|p[3],Oe=8191&De,Ne=De>>>13,Be=0|p[4],xe=8191&Be,je=Be>>>13,Le=0|p[5],Ue=8191&Le,Fe=Le>>>13,qe=0|p[6],ze=8191&qe,Ve=qe>>>13,Ge=0|p[7],He=8191&Ge,Ke=Ge>>>13,Ye=0|p[8],$e=8191&Ye,We=Ye>>>13,Je=0|p[9],Qe=8191&Je,Ze=Je>>>13;n.negative=r.negative^i.negative,n.length=19;var Xe=(g+(o=Math.imul(I,ke))|0)+((8191&(u=(u=Math.imul(I,Ae))+Math.imul(x,ke)|0))<<13)|0;g=((l=Math.imul(x,Ae))+(u>>>13)|0)+(Xe>>>26)|0,Xe&=67108863,o=Math.imul(q,ke),u=(u=Math.imul(q,Ae))+Math.imul(Y,ke)|0,l=Math.imul(Y,Ae);var et=(g+(o=o+Math.imul(I,Ce)|0)|0)+((8191&(u=(u=u+Math.imul(I,Me)|0)+Math.imul(x,Ce)|0))<<13)|0;g=((l=l+Math.imul(x,Me)|0)+(u>>>13)|0)+(et>>>26)|0,et&=67108863,o=Math.imul(J,ke),u=(u=Math.imul(J,Ae))+Math.imul(te,ke)|0,l=Math.imul(te,Ae),o=o+Math.imul(q,Ce)|0,u=(u=u+Math.imul(q,Me)|0)+Math.imul(Y,Ce)|0,l=l+Math.imul(Y,Me)|0;var tt=(g+(o=o+Math.imul(I,Re)|0)|0)+((8191&(u=(u=u+Math.imul(I,Ie)|0)+Math.imul(x,Re)|0))<<13)|0;g=((l=l+Math.imul(x,Ie)|0)+(u>>>13)|0)+(tt>>>26)|0,tt&=67108863,o=Math.imul(ie,ke),u=(u=Math.imul(ie,Ae))+Math.imul(ne,ke)|0,l=Math.imul(ne,Ae),o=o+Math.imul(J,Ce)|0,u=(u=u+Math.imul(J,Me)|0)+Math.imul(te,Ce)|0,l=l+Math.imul(te,Me)|0,o=o+Math.imul(q,Re)|0,u=(u=u+Math.imul(q,Ie)|0)+Math.imul(Y,Re)|0,l=l+Math.imul(Y,Ie)|0;var rt=(g+(o=o+Math.imul(I,Oe)|0)|0)+((8191&(u=(u=u+Math.imul(I,Ne)|0)+Math.imul(x,Oe)|0))<<13)|0;g=((l=l+Math.imul(x,Ne)|0)+(u>>>13)|0)+(rt>>>26)|0,rt&=67108863,o=Math.imul(oe,ke),u=(u=Math.imul(oe,Ae))+Math.imul(se,ke)|0,l=Math.imul(se,Ae),o=o+Math.imul(ie,Ce)|0,u=(u=u+Math.imul(ie,Me)|0)+Math.imul(ne,Ce)|0,l=l+Math.imul(ne,Me)|0,o=o+Math.imul(J,Re)|0,u=(u=u+Math.imul(J,Ie)|0)+Math.imul(te,Re)|0,l=l+Math.imul(te,Ie)|0,o=o+Math.imul(q,Oe)|0,u=(u=u+Math.imul(q,Ne)|0)+Math.imul(Y,Oe)|0,l=l+Math.imul(Y,Ne)|0;var it=(g+(o=o+Math.imul(I,xe)|0)|0)+((8191&(u=(u=u+Math.imul(I,je)|0)+Math.imul(x,xe)|0))<<13)|0;g=((l=l+Math.imul(x,je)|0)+(u>>>13)|0)+(it>>>26)|0,it&=67108863,o=Math.imul(ce,ke),u=(u=Math.imul(ce,Ae))+Math.imul(ue,ke)|0,l=Math.imul(ue,Ae),o=o+Math.imul(oe,Ce)|0,u=(u=u+Math.imul(oe,Me)|0)+Math.imul(se,Ce)|0,l=l+Math.imul(se,Me)|0,o=o+Math.imul(ie,Re)|0,u=(u=u+Math.imul(ie,Ie)|0)+Math.imul(ne,Re)|0,l=l+Math.imul(ne,Ie)|0,o=o+Math.imul(J,Oe)|0,u=(u=u+Math.imul(J,Ne)|0)+Math.imul(te,Oe)|0,l=l+Math.imul(te,Ne)|0,o=o+Math.imul(q,xe)|0,u=(u=u+Math.imul(q,je)|0)+Math.imul(Y,xe)|0,l=l+Math.imul(Y,je)|0;var nt=(g+(o=o+Math.imul(I,Ue)|0)|0)+((8191&(u=(u=u+Math.imul(I,Fe)|0)+Math.imul(x,Ue)|0))<<13)|0;g=((l=l+Math.imul(x,Fe)|0)+(u>>>13)|0)+(nt>>>26)|0,nt&=67108863,o=Math.imul(_e,ke),u=(u=Math.imul(_e,Ae))+Math.imul(pe,ke)|0,l=Math.imul(pe,Ae),o=o+Math.imul(ce,Ce)|0,u=(u=u+Math.imul(ce,Me)|0)+Math.imul(ue,Ce)|0,l=l+Math.imul(ue,Me)|0,o=o+Math.imul(oe,Re)|0,u=(u=u+Math.imul(oe,Ie)|0)+Math.imul(se,Re)|0,l=l+Math.imul(se,Ie)|0,o=o+Math.imul(ie,Oe)|0,u=(u=u+Math.imul(ie,Ne)|0)+Math.imul(ne,Oe)|0,l=l+Math.imul(ne,Ne)|0,o=o+Math.imul(J,xe)|0,u=(u=u+Math.imul(J,je)|0)+Math.imul(te,xe)|0,l=l+Math.imul(te,je)|0,o=o+Math.imul(q,Ue)|0,u=(u=u+Math.imul(q,Fe)|0)+Math.imul(Y,Ue)|0,l=l+Math.imul(Y,Fe)|0;var at=(g+(o=o+Math.imul(I,ze)|0)|0)+((8191&(u=(u=u+Math.imul(I,Ve)|0)+Math.imul(x,ze)|0))<<13)|0;g=((l=l+Math.imul(x,Ve)|0)+(u>>>13)|0)+(at>>>26)|0,at&=67108863,o=Math.imul(fe,ke),u=(u=Math.imul(fe,Ae))+Math.imul(me,ke)|0,l=Math.imul(me,Ae),o=o+Math.imul(_e,Ce)|0,u=(u=u+Math.imul(_e,Me)|0)+Math.imul(pe,Ce)|0,l=l+Math.imul(pe,Me)|0,o=o+Math.imul(ce,Re)|0,u=(u=u+Math.imul(ce,Ie)|0)+Math.imul(ue,Re)|0,l=l+Math.imul(ue,Ie)|0,o=o+Math.imul(oe,Oe)|0,u=(u=u+Math.imul(oe,Ne)|0)+Math.imul(se,Oe)|0,l=l+Math.imul(se,Ne)|0,o=o+Math.imul(ie,xe)|0,u=(u=u+Math.imul(ie,je)|0)+Math.imul(ne,xe)|0,l=l+Math.imul(ne,je)|0,o=o+Math.imul(J,Ue)|0,u=(u=u+Math.imul(J,Fe)|0)+Math.imul(te,Ue)|0,l=l+Math.imul(te,Fe)|0,o=o+Math.imul(q,ze)|0,u=(u=u+Math.imul(q,Ve)|0)+Math.imul(Y,ze)|0,l=l+Math.imul(Y,Ve)|0;var ot=(g+(o=o+Math.imul(I,He)|0)|0)+((8191&(u=(u=u+Math.imul(I,Ke)|0)+Math.imul(x,He)|0))<<13)|0;g=((l=l+Math.imul(x,Ke)|0)+(u>>>13)|0)+(ot>>>26)|0,ot&=67108863,o=Math.imul(ge,ke),u=(u=Math.imul(ge,Ae))+Math.imul(ye,ke)|0,l=Math.imul(ye,Ae),o=o+Math.imul(fe,Ce)|0,u=(u=u+Math.imul(fe,Me)|0)+Math.imul(me,Ce)|0,l=l+Math.imul(me,Me)|0,o=o+Math.imul(_e,Re)|0,u=(u=u+Math.imul(_e,Ie)|0)+Math.imul(pe,Re)|0,l=l+Math.imul(pe,Ie)|0,o=o+Math.imul(ce,Oe)|0,u=(u=u+Math.imul(ce,Ne)|0)+Math.imul(ue,Oe)|0,l=l+Math.imul(ue,Ne)|0,o=o+Math.imul(oe,xe)|0,u=(u=u+Math.imul(oe,je)|0)+Math.imul(se,xe)|0,l=l+Math.imul(se,je)|0,o=o+Math.imul(ie,Ue)|0,u=(u=u+Math.imul(ie,Fe)|0)+Math.imul(ne,Ue)|0,l=l+Math.imul(ne,Fe)|0,o=o+Math.imul(J,ze)|0,u=(u=u+Math.imul(J,Ve)|0)+Math.imul(te,ze)|0,l=l+Math.imul(te,Ve)|0,o=o+Math.imul(q,He)|0,u=(u=u+Math.imul(q,Ke)|0)+Math.imul(Y,He)|0,l=l+Math.imul(Y,Ke)|0;var st=(g+(o=o+Math.imul(I,$e)|0)|0)+((8191&(u=(u=u+Math.imul(I,We)|0)+Math.imul(x,$e)|0))<<13)|0;g=((l=l+Math.imul(x,We)|0)+(u>>>13)|0)+(st>>>26)|0,st&=67108863,o=Math.imul(we,ke),u=(u=Math.imul(we,Ae))+Math.imul(Se,ke)|0,l=Math.imul(Se,Ae),o=o+Math.imul(ge,Ce)|0,u=(u=u+Math.imul(ge,Me)|0)+Math.imul(ye,Ce)|0,l=l+Math.imul(ye,Me)|0,o=o+Math.imul(fe,Re)|0,u=(u=u+Math.imul(fe,Ie)|0)+Math.imul(me,Re)|0,l=l+Math.imul(me,Ie)|0,o=o+Math.imul(_e,Oe)|0,u=(u=u+Math.imul(_e,Ne)|0)+Math.imul(pe,Oe)|0,l=l+Math.imul(pe,Ne)|0,o=o+Math.imul(ce,xe)|0,u=(u=u+Math.imul(ce,je)|0)+Math.imul(ue,xe)|0,l=l+Math.imul(ue,je)|0,o=o+Math.imul(oe,Ue)|0,u=(u=u+Math.imul(oe,Fe)|0)+Math.imul(se,Ue)|0,l=l+Math.imul(se,Fe)|0,o=o+Math.imul(ie,ze)|0,u=(u=u+Math.imul(ie,Ve)|0)+Math.imul(ne,ze)|0,l=l+Math.imul(ne,Ve)|0,o=o+Math.imul(J,He)|0,u=(u=u+Math.imul(J,Ke)|0)+Math.imul(te,He)|0,l=l+Math.imul(te,Ke)|0,o=o+Math.imul(q,$e)|0,u=(u=u+Math.imul(q,We)|0)+Math.imul(Y,$e)|0,l=l+Math.imul(Y,We)|0;var dt=(g+(o=o+Math.imul(I,Qe)|0)|0)+((8191&(u=(u=u+Math.imul(I,Ze)|0)+Math.imul(x,Qe)|0))<<13)|0;g=((l=l+Math.imul(x,Ze)|0)+(u>>>13)|0)+(dt>>>26)|0,dt&=67108863,o=Math.imul(we,Ce),u=(u=Math.imul(we,Me))+Math.imul(Se,Ce)|0,l=Math.imul(Se,Me),o=o+Math.imul(ge,Re)|0,u=(u=u+Math.imul(ge,Ie)|0)+Math.imul(ye,Re)|0,l=l+Math.imul(ye,Ie)|0,o=o+Math.imul(fe,Oe)|0,u=(u=u+Math.imul(fe,Ne)|0)+Math.imul(me,Oe)|0,l=l+Math.imul(me,Ne)|0,o=o+Math.imul(_e,xe)|0,u=(u=u+Math.imul(_e,je)|0)+Math.imul(pe,xe)|0,l=l+Math.imul(pe,je)|0,o=o+Math.imul(ce,Ue)|0,u=(u=u+Math.imul(ce,Fe)|0)+Math.imul(ue,Ue)|0,l=l+Math.imul(ue,Fe)|0,o=o+Math.imul(oe,ze)|0,u=(u=u+Math.imul(oe,Ve)|0)+Math.imul(se,ze)|0,l=l+Math.imul(se,Ve)|0,o=o+Math.imul(ie,He)|0,u=(u=u+Math.imul(ie,Ke)|0)+Math.imul(ne,He)|0,l=l+Math.imul(ne,Ke)|0,o=o+Math.imul(J,$e)|0,u=(u=u+Math.imul(J,We)|0)+Math.imul(te,$e)|0,l=l+Math.imul(te,We)|0;var ct=(g+(o=o+Math.imul(q,Qe)|0)|0)+((8191&(u=(u=u+Math.imul(q,Ze)|0)+Math.imul(Y,Qe)|0))<<13)|0;g=((l=l+Math.imul(Y,Ze)|0)+(u>>>13)|0)+(ct>>>26)|0,ct&=67108863,o=Math.imul(we,Re),u=(u=Math.imul(we,Ie))+Math.imul(Se,Re)|0,l=Math.imul(Se,Ie),o=o+Math.imul(ge,Oe)|0,u=(u=u+Math.imul(ge,Ne)|0)+Math.imul(ye,Oe)|0,l=l+Math.imul(ye,Ne)|0,o=o+Math.imul(fe,xe)|0,u=(u=u+Math.imul(fe,je)|0)+Math.imul(me,xe)|0,l=l+Math.imul(me,je)|0,o=o+Math.imul(_e,Ue)|0,u=(u=u+Math.imul(_e,Fe)|0)+Math.imul(pe,Ue)|0,l=l+Math.imul(pe,Fe)|0,o=o+Math.imul(ce,ze)|0,u=(u=u+Math.imul(ce,Ve)|0)+Math.imul(ue,ze)|0,l=l+Math.imul(ue,Ve)|0,o=o+Math.imul(oe,He)|0,u=(u=u+Math.imul(oe,Ke)|0)+Math.imul(se,He)|0,l=l+Math.imul(se,Ke)|0,o=o+Math.imul(ie,$e)|0,u=(u=u+Math.imul(ie,We)|0)+Math.imul(ne,$e)|0,l=l+Math.imul(ne,We)|0;var ut=(g+(o=o+Math.imul(J,Qe)|0)|0)+((8191&(u=(u=u+Math.imul(J,Ze)|0)+Math.imul(te,Qe)|0))<<13)|0;g=((l=l+Math.imul(te,Ze)|0)+(u>>>13)|0)+(ut>>>26)|0,ut&=67108863,o=Math.imul(we,Oe),u=(u=Math.imul(we,Ne))+Math.imul(Se,Oe)|0,l=Math.imul(Se,Ne),o=o+Math.imul(ge,xe)|0,u=(u=u+Math.imul(ge,je)|0)+Math.imul(ye,xe)|0,l=l+Math.imul(ye,je)|0,o=o+Math.imul(fe,Ue)|0,u=(u=u+Math.imul(fe,Fe)|0)+Math.imul(me,Ue)|0,l=l+Math.imul(me,Fe)|0,o=o+Math.imul(_e,ze)|0,u=(u=u+Math.imul(_e,Ve)|0)+Math.imul(pe,ze)|0,l=l+Math.imul(pe,Ve)|0,o=o+Math.imul(ce,He)|0,u=(u=u+Math.imul(ce,Ke)|0)+Math.imul(ue,He)|0,l=l+Math.imul(ue,Ke)|0,o=o+Math.imul(oe,$e)|0,u=(u=u+Math.imul(oe,We)|0)+Math.imul(se,$e)|0,l=l+Math.imul(se,We)|0;var _t=(g+(o=o+Math.imul(ie,Qe)|0)|0)+((8191&(u=(u=u+Math.imul(ie,Ze)|0)+Math.imul(ne,Qe)|0))<<13)|0;g=((l=l+Math.imul(ne,Ze)|0)+(u>>>13)|0)+(_t>>>26)|0,_t&=67108863,o=Math.imul(we,xe),u=(u=Math.imul(we,je))+Math.imul(Se,xe)|0,l=Math.imul(Se,je),o=o+Math.imul(ge,Ue)|0,u=(u=u+Math.imul(ge,Fe)|0)+Math.imul(ye,Ue)|0,l=l+Math.imul(ye,Fe)|0,o=o+Math.imul(fe,ze)|0,u=(u=u+Math.imul(fe,Ve)|0)+Math.imul(me,ze)|0,l=l+Math.imul(me,Ve)|0,o=o+Math.imul(_e,He)|0,u=(u=u+Math.imul(_e,Ke)|0)+Math.imul(pe,He)|0,l=l+Math.imul(pe,Ke)|0,o=o+Math.imul(ce,$e)|0,u=(u=u+Math.imul(ce,We)|0)+Math.imul(ue,$e)|0,l=l+Math.imul(ue,We)|0;var pt=(g+(o=o+Math.imul(oe,Qe)|0)|0)+((8191&(u=(u=u+Math.imul(oe,Ze)|0)+Math.imul(se,Qe)|0))<<13)|0;g=((l=l+Math.imul(se,Ze)|0)+(u>>>13)|0)+(pt>>>26)|0,pt&=67108863,o=Math.imul(we,Ue),u=(u=Math.imul(we,Fe))+Math.imul(Se,Ue)|0,l=Math.imul(Se,Fe),o=o+Math.imul(ge,ze)|0,u=(u=u+Math.imul(ge,Ve)|0)+Math.imul(ye,ze)|0,l=l+Math.imul(ye,Ve)|0,o=o+Math.imul(fe,He)|0,u=(u=u+Math.imul(fe,Ke)|0)+Math.imul(me,He)|0,l=l+Math.imul(me,Ke)|0,o=o+Math.imul(_e,$e)|0,u=(u=u+Math.imul(_e,We)|0)+Math.imul(pe,$e)|0,l=l+Math.imul(pe,We)|0;var ht=(g+(o=o+Math.imul(ce,Qe)|0)|0)+((8191&(u=(u=u+Math.imul(ce,Ze)|0)+Math.imul(ue,Qe)|0))<<13)|0;g=((l=l+Math.imul(ue,Ze)|0)+(u>>>13)|0)+(ht>>>26)|0,ht&=67108863,o=Math.imul(we,ze),u=(u=Math.imul(we,Ve))+Math.imul(Se,ze)|0,l=Math.imul(Se,Ve),o=o+Math.imul(ge,He)|0,u=(u=u+Math.imul(ge,Ke)|0)+Math.imul(ye,He)|0,l=l+Math.imul(ye,Ke)|0,o=o+Math.imul(fe,$e)|0,u=(u=u+Math.imul(fe,We)|0)+Math.imul(me,$e)|0,l=l+Math.imul(me,We)|0;var mt=(g+(o=o+Math.imul(_e,Qe)|0)|0)+((8191&(u=(u=u+Math.imul(_e,Ze)|0)+Math.imul(pe,Qe)|0))<<13)|0;g=((l=l+Math.imul(pe,Ze)|0)+(u>>>13)|0)+(mt>>>26)|0,mt&=67108863,o=Math.imul(we,He),u=(u=Math.imul(we,Ke))+Math.imul(Se,He)|0,l=Math.imul(Se,Ke),o=o+Math.imul(ge,$e)|0,u=(u=u+Math.imul(ge,We)|0)+Math.imul(ye,$e)|0,l=l+Math.imul(ye,We)|0;var bt=(g+(o=o+Math.imul(fe,Qe)|0)|0)+((8191&(u=(u=u+Math.imul(fe,Ze)|0)+Math.imul(me,Qe)|0))<<13)|0;g=((l=l+Math.imul(me,Ze)|0)+(u>>>13)|0)+(bt>>>26)|0,bt&=67108863,o=Math.imul(we,$e),u=(u=Math.imul(we,We))+Math.imul(Se,$e)|0,l=Math.imul(Se,We);var yt=(g+(o=o+Math.imul(ge,Qe)|0)|0)+((8191&(u=(u=u+Math.imul(ge,Ze)|0)+Math.imul(ye,Qe)|0))<<13)|0;g=((l=l+Math.imul(ye,Ze)|0)+(u>>>13)|0)+(yt>>>26)|0,yt&=67108863;var vt=(g+(o=Math.imul(we,Qe))|0)+((8191&(u=(u=Math.imul(we,Ze))+Math.imul(Se,Qe)|0))<<13)|0;return g=((l=Math.imul(Se,Ze))+(u>>>13)|0)+(vt>>>26)|0,vt&=67108863,b[0]=Xe,b[1]=et,b[2]=tt,b[3]=rt,b[4]=it,b[5]=nt,b[6]=at,b[7]=ot,b[8]=st,b[9]=dt,b[10]=ct,b[11]=ut,b[12]=_t,b[13]=pt,b[14]=ht,b[15]=mt,b[16]=bt,b[17]=yt,b[18]=vt,0!==g&&(b[19]=g,n.length++),n};function jumboMulTo(r,i,n){return(new FFTM).mulp(r,i,n)}function FFTM(r,i){this.x=r,this.y=i}Math.imul||(p=smallMulTo),BN.prototype.mulTo=function mulTo(r,i){var n,o=this.length+r.length;return n=10===this.length&&10===r.length?p(this,r,i):o<63?smallMulTo(this,r,i):o<1024?function bigMulTo(r,i,n){n.negative=i.negative^r.negative,n.length=r.length+i.length;for(var o=0,u=0,l=0;l>>26)|0)>>>26,_&=67108863}n.words[l]=p,o=_,_=u}return 0!==o?n.words[l]=o:n.length--,n.strip()}(this,r,i):jumboMulTo(this,r,i),n},FFTM.prototype.makeRBT=function makeRBT(r){for(var i=new Array(r),n=BN.prototype._countBits(r)-1,o=0;o>=1;return o},FFTM.prototype.permute=function permute(r,i,n,o,u,l){for(var _=0;_>>=1)u++;return 1<>>=13,n[2*l+1]=8191&u,u>>>=13;for(l=2*i;l>=26,i+=o/67108864|0,i+=u>>>26,this.words[n]=67108863&u}return 0!==i&&(this.words[n]=i,this.length++),this},BN.prototype.muln=function muln(r){return this.clone().imuln(r)},BN.prototype.sqr=function sqr(){return this.mul(this)},BN.prototype.isqr=function isqr(){return this.imul(this.clone())},BN.prototype.pow=function pow(r){var i=function toBitArray(r){for(var i=new Array(r.bitLength()),n=0;n>>u}return i}(r);if(0===i.length)return new BN(1);for(var n=this,o=0;o=0);var i,n=r%26,o=(r-n)/26,u=67108863>>>26-n<<26-n;if(0!==n){var l=0;for(i=0;i>>26-n}l&&(this.words[i]=l,this.length++)}if(0!==o){for(i=this.length-1;i>=0;i--)this.words[i+o]=this.words[i];for(i=0;i=0),o=i?(i-i%26)/26:0;var u=r%26,l=Math.min((r-u)/26,this.length),_=67108863^67108863>>>u<l)for(this.length-=l,b=0;b=0&&(0!==g||b>=o);b--){var k=0|this.words[b];this.words[b]=g<<26-u|k>>>u,g=k&_}return p&&0!==g&&(p.words[p.length++]=g),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},BN.prototype.ishrn=function ishrn(r,i,n){return assert(0===this.negative),this.iushrn(r,i,n)},BN.prototype.shln=function shln(r){return this.clone().ishln(r)},BN.prototype.ushln=function ushln(r){return this.clone().iushln(r)},BN.prototype.shrn=function shrn(r){return this.clone().ishrn(r)},BN.prototype.ushrn=function ushrn(r){return this.clone().iushrn(r)},BN.prototype.testn=function testn(r){assert("number"==typeof r&&r>=0);var i=r%26,n=(r-i)/26,o=1<=0);var i=r%26,n=(r-i)/26;if(assert(0===this.negative,"imaskn works only with positive numbers"),this.length<=n)return this;if(0!==i&&n++,this.length=Math.min(n,this.length),0!==i){var o=67108863^67108863>>>i<=67108864;i++)this.words[i]-=67108864,i===this.length-1?this.words[i+1]=1:this.words[i+1]++;return this.length=Math.max(this.length,i+1),this},BN.prototype.isubn=function isubn(r){if(assert("number"==typeof r),assert(r<67108864),r<0)return this.iaddn(-r);if(0!==this.negative)return this.negative=0,this.iaddn(r),this.negative=1,this;if(this.words[0]-=r,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var i=0;i>26)-(p/67108864|0),this.words[o+n]=67108863&u}for(;o>26,this.words[o+n]=67108863&u;if(0===_)return this.strip();for(assert(-1===_),_=0,o=0;o>26,this.words[o]=67108863&u;return this.negative=1,this.strip()},BN.prototype._wordDiv=function _wordDiv(r,i){var n=(this.length,r.length),o=this.clone(),u=r,l=0|u.words[u.length-1];0!==(n=26-this._countBits(l))&&(u=u.ushln(n),o.iushln(n),l=0|u.words[u.length-1]);var _,p=o.length-u.length;if("mod"!==i){(_=new BN(null)).length=p+1,_.words=new Array(_.length);for(var b=0;b<_.length;b++)_.words[b]=0}var g=o.clone()._ishlnsubmul(u,1,p);0===g.negative&&(o=g,_&&(_.words[p]=1));for(var k=p-1;k>=0;k--){var I=67108864*(0|o.words[u.length+k])+(0|o.words[u.length+k-1]);for(I=Math.min(I/l|0,67108863),o._ishlnsubmul(u,I,k);0!==o.negative;)I--,o.negative=0,o._ishlnsubmul(u,1,k),o.isZero()||(o.negative^=1);_&&(_.words[k]=I)}return _&&_.strip(),o.strip(),"div"!==i&&0!==n&&o.iushrn(n),{div:_||null,mod:o}},BN.prototype.divmod=function divmod(r,i,n){return assert(!r.isZero()),this.isZero()?{div:new BN(0),mod:new BN(0)}:0!==this.negative&&0===r.negative?(l=this.neg().divmod(r,i),"mod"!==i&&(o=l.div.neg()),"div"!==i&&(u=l.mod.neg(),n&&0!==u.negative&&u.iadd(r)),{div:o,mod:u}):0===this.negative&&0!==r.negative?(l=this.divmod(r.neg(),i),"mod"!==i&&(o=l.div.neg()),{div:o,mod:l.mod}):0!=(this.negative&r.negative)?(l=this.neg().divmod(r.neg(),i),"div"!==i&&(u=l.mod.neg(),n&&0!==u.negative&&u.isub(r)),{div:l.div,mod:u}):r.length>this.length||this.cmp(r)<0?{div:new BN(0),mod:this}:1===r.length?"div"===i?{div:this.divn(r.words[0]),mod:null}:"mod"===i?{div:null,mod:new BN(this.modn(r.words[0]))}:{div:this.divn(r.words[0]),mod:new BN(this.modn(r.words[0]))}:this._wordDiv(r,i);var o,u,l},BN.prototype.div=function div(r){return this.divmod(r,"div",!1).div},BN.prototype.mod=function mod(r){return this.divmod(r,"mod",!1).mod},BN.prototype.umod=function umod(r){return this.divmod(r,"mod",!0).mod},BN.prototype.divRound=function divRound(r){var i=this.divmod(r);if(i.mod.isZero())return i.div;var n=0!==i.div.negative?i.mod.isub(r):i.mod,o=r.ushrn(1),u=r.andln(1),l=n.cmp(o);return l<0||1===u&&0===l?i.div:0!==i.div.negative?i.div.isubn(1):i.div.iaddn(1)},BN.prototype.modn=function modn(r){assert(r<=67108863);for(var i=(1<<26)%r,n=0,o=this.length-1;o>=0;o--)n=(i*n+(0|this.words[o]))%r;return n},BN.prototype.idivn=function idivn(r){assert(r<=67108863);for(var i=0,n=this.length-1;n>=0;n--){var o=(0|this.words[n])+67108864*i;this.words[n]=o/r|0,i=o%r}return this.strip()},BN.prototype.divn=function divn(r){return this.clone().idivn(r)},BN.prototype.egcd=function egcd(r){assert(0===r.negative),assert(!r.isZero());var i=this,n=r.clone();i=0!==i.negative?i.umod(r):i.clone();for(var o=new BN(1),u=new BN(0),l=new BN(0),_=new BN(1),p=0;i.isEven()&&n.isEven();)i.iushrn(1),n.iushrn(1),++p;for(var b=n.clone(),g=i.clone();!i.isZero();){for(var k=0,I=1;0==(i.words[0]&I)&&k<26;++k,I<<=1);if(k>0)for(i.iushrn(k);k-- >0;)(o.isOdd()||u.isOdd())&&(o.iadd(b),u.isub(g)),o.iushrn(1),u.iushrn(1);for(var x=0,j=1;0==(n.words[0]&j)&&x<26;++x,j<<=1);if(x>0)for(n.iushrn(x);x-- >0;)(l.isOdd()||_.isOdd())&&(l.iadd(b),_.isub(g)),l.iushrn(1),_.iushrn(1);i.cmp(n)>=0?(i.isub(n),o.isub(l),u.isub(_)):(n.isub(i),l.isub(o),_.isub(u))}return{a:l,b:_,gcd:n.iushln(p)}},BN.prototype._invmp=function _invmp(r){assert(0===r.negative),assert(!r.isZero());var i=this,n=r.clone();i=0!==i.negative?i.umod(r):i.clone();for(var o,u=new BN(1),l=new BN(0),_=n.clone();i.cmpn(1)>0&&n.cmpn(1)>0;){for(var p=0,b=1;0==(i.words[0]&b)&&p<26;++p,b<<=1);if(p>0)for(i.iushrn(p);p-- >0;)u.isOdd()&&u.iadd(_),u.iushrn(1);for(var g=0,k=1;0==(n.words[0]&k)&&g<26;++g,k<<=1);if(g>0)for(n.iushrn(g);g-- >0;)l.isOdd()&&l.iadd(_),l.iushrn(1);i.cmp(n)>=0?(i.isub(n),u.isub(l)):(n.isub(i),l.isub(u))}return(o=0===i.cmpn(1)?u:l).cmpn(0)<0&&o.iadd(r),o},BN.prototype.gcd=function gcd(r){if(this.isZero())return r.abs();if(r.isZero())return this.abs();var i=this.clone(),n=r.clone();i.negative=0,n.negative=0;for(var o=0;i.isEven()&&n.isEven();o++)i.iushrn(1),n.iushrn(1);for(;;){for(;i.isEven();)i.iushrn(1);for(;n.isEven();)n.iushrn(1);var u=i.cmp(n);if(u<0){var l=i;i=n,n=l}else if(0===u||0===n.cmpn(1))break;i.isub(n)}return n.iushln(o)},BN.prototype.invm=function invm(r){return this.egcd(r).a.umod(r)},BN.prototype.isEven=function isEven(){return 0==(1&this.words[0])},BN.prototype.isOdd=function isOdd(){return 1==(1&this.words[0])},BN.prototype.andln=function andln(r){return this.words[0]&r},BN.prototype.bincn=function bincn(r){assert("number"==typeof r);var i=r%26,n=(r-i)/26,o=1<>>26,_&=67108863,this.words[l]=_}return 0!==u&&(this.words[l]=u,this.length++),this},BN.prototype.isZero=function isZero(){return 1===this.length&&0===this.words[0]},BN.prototype.cmpn=function cmpn(r){var i,n=r<0;if(0!==this.negative&&!n)return-1;if(0===this.negative&&n)return 1;if(this.strip(),this.length>1)i=1;else{n&&(r=-r),assert(r<=67108863,"Number is too big");var o=0|this.words[0];i=o===r?0:or.length)return 1;if(this.length=0;n--){var o=0|this.words[n],u=0|r.words[n];if(o!==u){ou&&(i=1);break}}return i},BN.prototype.gtn=function gtn(r){return 1===this.cmpn(r)},BN.prototype.gt=function gt(r){return 1===this.cmp(r)},BN.prototype.gten=function gten(r){return this.cmpn(r)>=0},BN.prototype.gte=function gte(r){return this.cmp(r)>=0},BN.prototype.ltn=function ltn(r){return-1===this.cmpn(r)},BN.prototype.lt=function lt(r){return-1===this.cmp(r)},BN.prototype.lten=function lten(r){return this.cmpn(r)<=0},BN.prototype.lte=function lte(r){return this.cmp(r)<=0},BN.prototype.eqn=function eqn(r){return 0===this.cmpn(r)},BN.prototype.eq=function eq(r){return 0===this.cmp(r)},BN.red=function red(r){return new Red(r)},BN.prototype.toRed=function toRed(r){return assert(!this.red,"Already a number in reduction context"),assert(0===this.negative,"red works only with positives"),r.convertTo(this)._forceRed(r)},BN.prototype.fromRed=function fromRed(){return assert(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},BN.prototype._forceRed=function _forceRed(r){return this.red=r,this},BN.prototype.forceRed=function forceRed(r){return assert(!this.red,"Already a number in reduction context"),this._forceRed(r)},BN.prototype.redAdd=function redAdd(r){return assert(this.red,"redAdd works only with red numbers"),this.red.add(this,r)},BN.prototype.redIAdd=function redIAdd(r){return assert(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,r)},BN.prototype.redSub=function redSub(r){return assert(this.red,"redSub works only with red numbers"),this.red.sub(this,r)},BN.prototype.redISub=function redISub(r){return assert(this.red,"redISub works only with red numbers"),this.red.isub(this,r)},BN.prototype.redShl=function redShl(r){return assert(this.red,"redShl works only with red numbers"),this.red.shl(this,r)},BN.prototype.redMul=function redMul(r){return assert(this.red,"redMul works only with red numbers"),this.red._verify2(this,r),this.red.mul(this,r)},BN.prototype.redIMul=function redIMul(r){return assert(this.red,"redMul works only with red numbers"),this.red._verify2(this,r),this.red.imul(this,r)},BN.prototype.redSqr=function redSqr(){return assert(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},BN.prototype.redISqr=function redISqr(){return assert(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},BN.prototype.redSqrt=function redSqrt(){return assert(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},BN.prototype.redInvm=function redInvm(){return assert(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},BN.prototype.redNeg=function redNeg(){return assert(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},BN.prototype.redPow=function redPow(r){return assert(this.red&&!r.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,r)};var b={k256:null,p224:null,p192:null,p25519:null};function MPrime(r,i){this.name=r,this.p=new BN(i,16),this.n=this.p.bitLength(),this.k=new BN(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function K256(){MPrime.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function P224(){MPrime.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function P192(){MPrime.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function P25519(){MPrime.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function Red(r){if("string"==typeof r){var i=BN._prime(r);this.m=i.p,this.prime=i}else assert(r.gtn(1),"modulus must be greater than 1"),this.m=r,this.prime=null}function Mont(r){Red.call(this,r),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new BN(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)}MPrime.prototype._tmp=function _tmp(){var r=new BN(null);return r.words=new Array(Math.ceil(this.n/13)),r},MPrime.prototype.ireduce=function ireduce(r){var i,n=r;do{this.split(n,this.tmp),i=(n=(n=this.imulK(n)).iadd(this.tmp)).bitLength()}while(i>this.n);var o=i0?n.isub(this.p):void 0!==n.strip?n.strip():n._strip(),n},MPrime.prototype.split=function split(r,i){r.iushrn(this.n,0,i)},MPrime.prototype.imulK=function imulK(r){return r.imul(this.k)},inherits(K256,MPrime),K256.prototype.split=function split(r,i){for(var n=4194303,o=Math.min(r.length,9),u=0;u>>22,l=_}l>>>=22,r.words[u-10]=l,0===l&&r.length>10?r.length-=10:r.length-=9},K256.prototype.imulK=function imulK(r){r.words[r.length]=0,r.words[r.length+1]=0,r.length+=2;for(var i=0,n=0;n>>=26,r.words[n]=u,i=o}return 0!==i&&(r.words[r.length++]=i),r},BN._prime=function prime(r){if(b[r])return b[r];var prime;if("k256"===r)prime=new K256;else if("p224"===r)prime=new P224;else if("p192"===r)prime=new P192;else{if("p25519"!==r)throw new Error("Unknown prime "+r);prime=new P25519}return b[r]=prime,prime},Red.prototype._verify1=function _verify1(r){assert(0===r.negative,"red works only with positives"),assert(r.red,"red works only with red numbers")},Red.prototype._verify2=function _verify2(r,i){assert(0==(r.negative|i.negative),"red works only with positives"),assert(r.red&&r.red===i.red,"red works only with red numbers")},Red.prototype.imod=function imod(r){return this.prime?this.prime.ireduce(r)._forceRed(this):r.umod(this.m)._forceRed(this)},Red.prototype.neg=function neg(r){return r.isZero()?r.clone():this.m.sub(r)._forceRed(this)},Red.prototype.add=function add(r,i){this._verify2(r,i);var n=r.add(i);return n.cmp(this.m)>=0&&n.isub(this.m),n._forceRed(this)},Red.prototype.iadd=function iadd(r,i){this._verify2(r,i);var n=r.iadd(i);return n.cmp(this.m)>=0&&n.isub(this.m),n},Red.prototype.sub=function sub(r,i){this._verify2(r,i);var n=r.sub(i);return n.cmpn(0)<0&&n.iadd(this.m),n._forceRed(this)},Red.prototype.isub=function isub(r,i){this._verify2(r,i);var n=r.isub(i);return n.cmpn(0)<0&&n.iadd(this.m),n},Red.prototype.shl=function shl(r,i){return this._verify1(r),this.imod(r.ushln(i))},Red.prototype.imul=function imul(r,i){return this._verify2(r,i),this.imod(r.imul(i))},Red.prototype.mul=function mul(r,i){return this._verify2(r,i),this.imod(r.mul(i))},Red.prototype.isqr=function isqr(r){return this.imul(r,r.clone())},Red.prototype.sqr=function sqr(r){return this.mul(r,r)},Red.prototype.sqrt=function sqrt(r){if(r.isZero())return r.clone();var i=this.m.andln(3);if(assert(i%2==1),3===i){var n=this.m.add(new BN(1)).iushrn(2);return this.pow(r,n)}for(var o=this.m.subn(1),u=0;!o.isZero()&&0===o.andln(1);)u++,o.iushrn(1);assert(!o.isZero());var l=new BN(1).toRed(this),_=l.redNeg(),p=this.m.subn(1).iushrn(1),b=this.m.bitLength();for(b=new BN(2*b*b).toRed(this);0!==this.pow(b,p).cmp(_);)b.redIAdd(_);for(var g=this.pow(b,o),k=this.pow(r,o.addn(1).iushrn(1)),I=this.pow(r,o),x=u;0!==I.cmp(l);){for(var j=I,q=0;0!==j.cmp(l);q++)j=j.redSqr();assert(q=0;o--){for(var b=i.words[o],g=p-1;g>=0;g--){var k=b>>g&1;u!==n[0]&&(u=this.sqr(u)),0!==k||0!==l?(l<<=1,l|=k,(4===++_||0===o&&0===g)&&(u=this.mul(u,n[l]),_=0,l=0)):_=0}p=26}return u},Red.prototype.convertTo=function convertTo(r){var i=r.umod(this.m);return i===r?i.clone():i},Red.prototype.convertFrom=function convertFrom(r){var i=r.clone();return i.red=null,i},BN.mont=function mont(r){return new Mont(r)},inherits(Mont,Red),Mont.prototype.convertTo=function convertTo(r){return this.imod(r.ushln(this.shift))},Mont.prototype.convertFrom=function convertFrom(r){var i=this.imod(r.mul(this.rinv));return i.red=null,i},Mont.prototype.imul=function imul(r,i){if(r.isZero()||i.isZero())return r.words[0]=0,r.length=1,r;var n=r.imul(i),o=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),u=n.isub(o).iushrn(this.shift),l=u;return u.cmp(this.m)>=0?l=u.isub(this.m):u.cmpn(0)<0&&(l=u.iadd(this.m)),l._forceRed(this)},Mont.prototype.mul=function mul(r,i){if(r.isZero()||i.isZero())return new BN(0)._forceRed(this);var n=r.mul(i),o=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),u=n.isub(o).iushrn(this.shift),l=u;return u.cmp(this.m)>=0?l=u.isub(this.m):u.cmpn(0)<0&&(l=u.iadd(this.m)),l._forceRed(this)},Mont.prototype.invm=function invm(r){return this.imod(r._invmp(this.m).mul(this.r2))._forceRed(this)}}(r=n.nmd(r),this)},7551:r=>{r.exports={newInvalidAsn1Error:function(r){var i=new Error;return i.name="InvalidAsn1Error",i.message=r||"",i}}},52338:(r,i,n)=>{var o=n(7551),u=n(32066),l=n(95220),_=n(92279);for(var p in r.exports={Reader:l,Writer:_},u)u.hasOwnProperty(p)&&(r.exports[p]=u[p]);for(var b in o)o.hasOwnProperty(b)&&(r.exports[b]=o[b])},95220:(r,i,n)=>{var o=n(13039).Buffer,u=n(99295),l=n(32066),_=n(7551).newInvalidAsn1Error;function Reader(r){if(!r||!o.isBuffer(r))throw new TypeError("data must be a node Buffer");this._buf=r,this._size=r.length,this._len=0,this._offset=0}Object.defineProperty(Reader.prototype,"length",{enumerable:!0,get:function(){return this._len}}),Object.defineProperty(Reader.prototype,"offset",{enumerable:!0,get:function(){return this._offset}}),Object.defineProperty(Reader.prototype,"remain",{get:function(){return this._size-this._offset}}),Object.defineProperty(Reader.prototype,"buffer",{get:function(){return this._buf.slice(this._offset)}}),Reader.prototype.readByte=function(r){if(this._size-this._offset<1)return null;var i=255&this._buf[this._offset];return r||(this._offset+=1),i},Reader.prototype.peek=function(){return this.readByte(!0)},Reader.prototype.readLength=function(r){if(void 0===r&&(r=this._offset),r>=this._size)return null;var i=255&this._buf[r++];if(null===i)return null;if(128==(128&i)){if(0==(i&=127))throw _("Indefinite length not supported");if(i>4)throw _("encoding too long");if(this._size-rthis._size-u)return null;if(this._offset=u,0===this.length)return i?new o(0):"";var p=this._buf.slice(this._offset,this._offset+this.length);return this._offset+=this.length,i?p:p.toString("utf8")},Reader.prototype.readOID=function(r){r||(r=l.OID);var i=this.readString(r,!0);if(null===i)return null;for(var n=[],o=0,u=0;u>0),n.join(".")},Reader.prototype._readTag=function(r){u.ok(void 0!==r);var i=this.peek();if(null===i)return null;if(i!==r)throw _("Expected 0x"+r.toString(16)+": got 0x"+i.toString(16));var n=this.readLength(this._offset+1);if(null===n)return null;if(this.length>4)throw _("Integer too long: "+this.length);if(this.length>this._size-n)return null;this._offset=n;for(var o=this._buf[this._offset],l=0,p=0;p>0},r.exports=Reader},32066:r=>{r.exports={EOC:0,Boolean:1,Integer:2,BitString:3,OctetString:4,Null:5,OID:6,ObjectDescriptor:7,External:8,Real:9,Enumeration:10,PDV:11,Utf8String:12,RelativeOID:13,Sequence:16,Set:17,NumericString:18,PrintableString:19,T61String:20,VideotexString:21,IA5String:22,UTCTime:23,GeneralizedTime:24,GraphicString:25,VisibleString:26,GeneralString:28,UniversalString:29,CharacterString:30,BMPString:31,Constructor:32,Context:128}},92279:(r,i,n)=>{var o=n(13039).Buffer,u=n(99295),l=n(32066),_=(n(7551).newInvalidAsn1Error,{size:1024,growthFactor:8});function Writer(r){r=function merge(r,i){return u.ok(r),u.equal(typeof r,"object"),u.ok(i),u.equal(typeof i,"object"),Object.getOwnPropertyNames(r).forEach((function(n){if(!i[n]){var o=Object.getOwnPropertyDescriptor(r,n);Object.defineProperty(i,n,o)}})),i}(_,r||{}),this._buf=new o(r.size||1024),this._size=this._buf.length,this._offset=0,this._options=r,this._seq=[]}Object.defineProperty(Writer.prototype,"buffer",{get:function(){if(this._seq.length)throw new InvalidAsn1Error(this._seq.length+" unended sequence(s)");return this._buf.slice(0,this._offset)}}),Writer.prototype.writeByte=function(r){if("number"!=typeof r)throw new TypeError("argument must be a Number");this._ensure(1),this._buf[this._offset++]=r},Writer.prototype.writeInt=function(r,i){if("number"!=typeof r)throw new TypeError("argument must be a Number");"number"!=typeof i&&(i=l.Integer);for(var n=4;(0==(4286578688&r)||-8388608==(4286578688&r))&&n>1;)n--,r<<=8;if(n>4)throw new InvalidAsn1Error("BER ints cannot be > 0xffffffff");for(this._ensure(2+n),this._buf[this._offset++]=i,this._buf[this._offset++]=n;n-- >0;)this._buf[this._offset++]=(4278190080&r)>>>24,r<<=8},Writer.prototype.writeNull=function(){this.writeByte(l.Null),this.writeByte(0)},Writer.prototype.writeEnumeration=function(r,i){if("number"!=typeof r)throw new TypeError("argument must be a Number");return"number"!=typeof i&&(i=l.Enumeration),this.writeInt(r,i)},Writer.prototype.writeBoolean=function(r,i){if("boolean"!=typeof r)throw new TypeError("argument must be a Boolean");"number"!=typeof i&&(i=l.Boolean),this._ensure(3),this._buf[this._offset++]=i,this._buf[this._offset++]=1,this._buf[this._offset++]=r?255:0},Writer.prototype.writeString=function(r,i){if("string"!=typeof r)throw new TypeError("argument must be a string (was: "+typeof r+")");"number"!=typeof i&&(i=l.OctetString);var n=o.byteLength(r);this.writeByte(i),this.writeLength(n),n&&(this._ensure(n),this._buf.write(r,this._offset),this._offset+=n)},Writer.prototype.writeBuffer=function(r,i){if("number"!=typeof i)throw new TypeError("tag must be a number");if(!o.isBuffer(r))throw new TypeError("argument must be a buffer");this.writeByte(i),this.writeLength(r.length),this._ensure(r.length),r.copy(this._buf,this._offset,0,r.length),this._offset+=r.length},Writer.prototype.writeStringArray=function(r){if(!r instanceof Array)throw new TypeError("argument must be an Array[String]");var i=this;r.forEach((function(r){i.writeString(r)}))},Writer.prototype.writeOID=function(r,i){if("string"!=typeof r)throw new TypeError("argument must be a string");if("number"!=typeof i&&(i=l.OID),!/^([0-9]+\.){3,}[0-9]+$/.test(r))throw new Error("argument is not a valid OID string");var n=r.split("."),o=[];o.push(40*parseInt(n[0],10)+parseInt(n[1],10)),n.slice(2).forEach((function(r){!function encodeOctet(r,i){i<128?r.push(i):i<16384?(r.push(i>>>7|128),r.push(127&i)):i<2097152?(r.push(i>>>14|128),r.push(255&(i>>>7|128)),r.push(127&i)):i<268435456?(r.push(i>>>21|128),r.push(255&(i>>>14|128)),r.push(255&(i>>>7|128)),r.push(127&i)):(r.push(255&(i>>>28|128)),r.push(255&(i>>>21|128)),r.push(255&(i>>>14|128)),r.push(255&(i>>>7|128)),r.push(127&i))}(o,parseInt(r,10))}));var u=this;this._ensure(2+o.length),this.writeByte(i),this.writeLength(o.length),o.forEach((function(r){u.writeByte(r)}))},Writer.prototype.writeLength=function(r){if("number"!=typeof r)throw new TypeError("argument must be a Number");if(this._ensure(4),r<=127)this._buf[this._offset++]=r;else if(r<=255)this._buf[this._offset++]=129,this._buf[this._offset++]=r;else if(r<=65535)this._buf[this._offset++]=130,this._buf[this._offset++]=r>>8,this._buf[this._offset++]=r;else{if(!(r<=16777215))throw new InvalidAsn1ERror("Length too long (> 4 bytes)");this._buf[this._offset++]=131,this._buf[this._offset++]=r>>16,this._buf[this._offset++]=r>>8,this._buf[this._offset++]=r}},Writer.prototype.startSequence=function(r){"number"!=typeof r&&(r=l.Sequence|l.Constructor),this.writeByte(r),this._seq.push(this._offset),this._ensure(3),this._offset+=3},Writer.prototype.endSequence=function(){var r=this._seq.pop(),i=r+3,n=this._offset-i;if(n<=127)this._shift(i,n,-2),this._buf[r]=n;else if(n<=255)this._shift(i,n,-1),this._buf[r]=129,this._buf[r+1]=n;else if(n<=65535)this._buf[r]=130,this._buf[r+1]=n>>8,this._buf[r+2]=n;else{if(!(n<=16777215))throw new InvalidAsn1Error("Sequence too long");this._shift(i,n,1),this._buf[r]=131,this._buf[r+1]=n>>16,this._buf[r+2]=n>>8,this._buf[r+3]=n}},Writer.prototype._shift=function(r,i,n){u.ok(void 0!==r),u.ok(void 0!==i),u.ok(n),this._buf.copy(this._buf,r+n,r,r+i),this._offset+=n},Writer.prototype._ensure=function(r){if(u.ok(r),this._size-this._offset{var o=n(52338);r.exports={Ber:o,BerReader:o.Reader,BerWriter:o.Writer}},99295:(r,i,n)=>{var o=n(2724);function _typeof(r){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function _typeof(r){return typeof r}:function _typeof(r){return r&&"function"==typeof Symbol&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},_typeof(r)}var u,l,_=n(70375).codes,p=_.ERR_AMBIGUOUS_ARGUMENT,b=_.ERR_INVALID_ARG_TYPE,g=_.ERR_INVALID_ARG_VALUE,k=_.ERR_INVALID_RETURN_VALUE,I=_.ERR_MISSING_ARGS,x=n(61870),j=n(55723).inspect,q=n(55723).types,Y=q.isPromise,$=q.isRegExp,J=Object.assign?Object.assign:n(38702).assign,te=Object.is?Object.is:n(67253);new Map;function lazyLoadComparison(){var r=n(66080);u=r.isDeepEqual,l=r.isDeepStrictEqual}var re=!1,ie=r.exports=ok,ne={};function innerFail(r){if(r.message instanceof Error)throw r.message;throw new x(r)}function innerOk(r,i,n,o){if(!n){var u=!1;if(0===i)u=!0,o="No value argument passed to `assert.ok()`";else if(o instanceof Error)throw o;var l=new x({actual:n,expected:!0,message:o,operator:"==",stackStartFn:r});throw l.generatedMessage=u,l}}function ok(){for(var r=arguments.length,i=new Array(r),n=0;n1?i-1:0),o=1;o1?i-1:0),o=1;o1?i-1:0),o=1;o1?i-1:0),o=1;o{var o=n(2724);function _defineProperty(r,i,n){return i in r?Object.defineProperty(r,i,{value:n,enumerable:!0,configurable:!0,writable:!0}):r[i]=n,r}function _defineProperties(r,i){for(var n=0;nr.length)&&(n=r.length),r.substring(n-i.length,n)===i}var _="",p="",b="",g="",k={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 copyError(r){var i=Object.keys(r),n=Object.create(Object.getPrototypeOf(r));return i.forEach((function(i){n[i]=r[i]})),Object.defineProperty(n,"message",{value:r.message}),n}function inspectValue(r){return u(r,{compact:!1,customInspect:!1,depth:1e3,maxArrayLength:1/0,showHidden:!1,breakLength:1/0,showProxy:!1,sorted:!0,getters:!0})}function createErrDiff(r,i,n){var u="",l="",I=0,x="",j=!1,q=inspectValue(r),Y=q.split("\n"),$=inspectValue(i).split("\n"),J=0,te="";if("strictEqual"===n&&"object"===_typeof(r)&&"object"===_typeof(i)&&null!==r&&null!==i&&(n="strictEqualObject"),1===Y.length&&1===$.length&&Y[0]!==$[0]){var re=Y[0].length+$[0].length;if(re<=10){if(!("object"===_typeof(r)&&null!==r||"object"===_typeof(i)&&null!==i||0===r&&0===i))return"".concat(k[n],"\n\n")+"".concat(Y[0]," !== ").concat($[0],"\n")}else if("strictEqualObject"!==n){if(re<(o.stderr&&o.stderr.isTTY?o.stderr.columns:80)){for(;Y[0][J]===$[0][J];)J++;J>2&&(te="\n ".concat(function repeat(r,i){if(i=Math.floor(i),0==r.length||0==i)return"";var n=r.length*i;for(i=Math.floor(Math.log(i)/Math.log(2));i;)r+=r,i--;return r+r.substring(0,n-r.length)}(" ",J),"^"),J=0)}}}for(var ie=Y[Y.length-1],ne=$[$.length-1];ie===ne&&(J++<2?x="\n ".concat(ie).concat(x):u=ie,Y.pop(),$.pop(),0!==Y.length&&0!==$.length);)ie=Y[Y.length-1],ne=$[$.length-1];var ae=Math.max(Y.length,$.length);if(0===ae){var oe=q.split("\n");if(oe.length>30)for(oe[26]="".concat(_,"...").concat(g);oe.length>27;)oe.pop();return"".concat(k.notIdentical,"\n\n").concat(oe.join("\n"),"\n")}J>3&&(x="\n".concat(_,"...").concat(g).concat(x),j=!0),""!==u&&(x="\n ".concat(u).concat(x),u="");var se=0,de=k[n]+"\n".concat(p,"+ actual").concat(g," ").concat(b,"- expected").concat(g),ce=" ".concat(_,"...").concat(g," Lines skipped");for(J=0;J1&&J>2&&(ue>4?(l+="\n".concat(_,"...").concat(g),j=!0):ue>3&&(l+="\n ".concat($[J-2]),se++),l+="\n ".concat($[J-1]),se++),I=J,u+="\n".concat(b,"-").concat(g," ").concat($[J]),se++;else if($.length1&&J>2&&(ue>4?(l+="\n".concat(_,"...").concat(g),j=!0):ue>3&&(l+="\n ".concat(Y[J-2]),se++),l+="\n ".concat(Y[J-1]),se++),I=J,l+="\n".concat(p,"+").concat(g," ").concat(Y[J]),se++;else{var le=$[J],_e=Y[J],pe=_e!==le&&(!endsWith(_e,",")||_e.slice(0,-1)!==le);pe&&endsWith(le,",")&&le.slice(0,-1)===_e&&(pe=!1,_e+=","),pe?(ue>1&&J>2&&(ue>4?(l+="\n".concat(_,"...").concat(g),j=!0):ue>3&&(l+="\n ".concat(Y[J-2]),se++),l+="\n ".concat(Y[J-1]),se++),I=J,l+="\n".concat(p,"+").concat(g," ").concat(_e),u+="\n".concat(b,"-").concat(g," ").concat(le),se+=2):(l+=u,u="",1!==ue&&0!==J||(l+="\n ".concat(_e),se++))}if(se>20&&J30)for($[26]="".concat(_,"...").concat(g);$.length>27;)$.pop();i=1===$.length?_possibleConstructorReturn(this,_getPrototypeOf(AssertionError).call(this,"".concat(Y," ").concat($[0]))):_possibleConstructorReturn(this,_getPrototypeOf(AssertionError).call(this,"".concat(Y,"\n\n").concat($.join("\n"),"\n")))}else{var J=inspectValue(x),te="",re=k[u];"notDeepEqual"===u||"notEqual"===u?(J="".concat(k[u],"\n\n").concat(J)).length>1024&&(J="".concat(J.slice(0,1021),"...")):(te="".concat(inspectValue(j)),J.length>512&&(J="".concat(J.slice(0,509),"...")),te.length>512&&(te="".concat(te.slice(0,509),"...")),"deepEqual"===u||"equal"===u?J="".concat(re,"\n\n").concat(J,"\n\nshould equal\n\n"):te=" ".concat(u," ").concat(te)),i=_possibleConstructorReturn(this,_getPrototypeOf(AssertionError).call(this,"".concat(J).concat(te)))}return Error.stackTraceLimit=q,i.generatedMessage=!n,Object.defineProperty(_assertThisInitialized(i),"name",{value:"AssertionError [ERR_ASSERTION]",enumerable:!1,writable:!0,configurable:!0}),i.code="ERR_ASSERTION",i.actual=x,i.expected=j,i.operator=u,Error.captureStackTrace&&Error.captureStackTrace(_assertThisInitialized(i),I),i.stack,i.name="AssertionError",_possibleConstructorReturn(i)}return function _inherits(r,i){if("function"!=typeof i&&null!==i)throw new TypeError("Super expression must either be null or a function");r.prototype=Object.create(i&&i.prototype,{constructor:{value:r,writable:!0,configurable:!0}}),i&&_setPrototypeOf(r,i)}(AssertionError,r),function _createClass(r,i,n){return i&&_defineProperties(r.prototype,i),n&&_defineProperties(r,n),r}(AssertionError,[{key:"toString",value:function toString(){return"".concat(this.name," [").concat(this.code,"]: ").concat(this.message)}},{key:u.custom,value:function value(r,i){return u(this,function _objectSpread(r){for(var i=1;i{function _typeof(r){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function _typeof(r){return typeof r}:function _typeof(r){return r&&"function"==typeof Symbol&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},_typeof(r)}function _possibleConstructorReturn(r,i){return!i||"object"!==_typeof(i)&&"function"!=typeof i?function _assertThisInitialized(r){if(void 0===r)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return r}(r):i}function _getPrototypeOf(r){return _getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function _getPrototypeOf(r){return r.__proto__||Object.getPrototypeOf(r)},_getPrototypeOf(r)}function _setPrototypeOf(r,i){return _setPrototypeOf=Object.setPrototypeOf||function _setPrototypeOf(r,i){return r.__proto__=i,r},_setPrototypeOf(r,i)}var o,u,l={};function createErrorType(r,i,n){n||(n=Error);var o=function(n){function NodeError(n,o,u){var l;return function _classCallCheck(r,i){if(!(r instanceof i))throw new TypeError("Cannot call a class as a function")}(this,NodeError),l=_possibleConstructorReturn(this,_getPrototypeOf(NodeError).call(this,function getMessage(r,n,o){return"string"==typeof i?i:i(r,n,o)}(n,o,u))),l.code=r,l}return function _inherits(r,i){if("function"!=typeof i&&null!==i)throw new TypeError("Super expression must either be null or a function");r.prototype=Object.create(i&&i.prototype,{constructor:{value:r,writable:!0,configurable:!0}}),i&&_setPrototypeOf(r,i)}(NodeError,n),NodeError}(n);l[r]=o}function oneOf(r,i){if(Array.isArray(r)){var n=r.length;return r=r.map((function(r){return String(r)})),n>2?"one of ".concat(i," ").concat(r.slice(0,n-1).join(", "),", or ")+r[n-1]:2===n?"one of ".concat(i," ").concat(r[0]," or ").concat(r[1]):"of ".concat(i," ").concat(r[0])}return"of ".concat(i," ").concat(String(r))}createErrorType("ERR_AMBIGUOUS_ARGUMENT",'The "%s" argument is ambiguous. %s',TypeError),createErrorType("ERR_INVALID_ARG_TYPE",(function(r,i,u){var l,_;if(void 0===o&&(o=n(99295)),o("string"==typeof r,"'name' must be a string"),"string"==typeof i&&function startsWith(r,i,n){return r.substr(!n||n<0?0:+n,i.length)===i}(i,"not ")?(l="must not be",i=i.replace(/^not /,"")):l="must be",function endsWith(r,i,n){return(void 0===n||n>r.length)&&(n=r.length),r.substring(n-i.length,n)===i}(r," argument"))_="The ".concat(r," ").concat(l," ").concat(oneOf(i,"type"));else{var p=function includes(r,i,n){return"number"!=typeof n&&(n=0),!(n+i.length>r.length)&&-1!==r.indexOf(i,n)}(r,".")?"property":"argument";_='The "'.concat(r,'" ').concat(p," ").concat(l," ").concat(oneOf(i,"type"))}return _+=". Received type ".concat(_typeof(u))}),TypeError),createErrorType("ERR_INVALID_ARG_VALUE",(function(r,i){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"is invalid";void 0===u&&(u=n(55723));var l=u.inspect(i);return l.length>128&&(l="".concat(l.slice(0,128),"...")),"The argument '".concat(r,"' ").concat(o,". Received ").concat(l)}),TypeError,RangeError),createErrorType("ERR_INVALID_RETURN_VALUE",(function(r,i,n){var o;return o=n&&n.constructor&&n.constructor.name?"instance of ".concat(n.constructor.name):"type ".concat(_typeof(n)),"Expected ".concat(r,' to be returned from the "').concat(i,'"')+" function but got ".concat(o,".")}),TypeError),createErrorType("ERR_MISSING_ARGS",(function(){for(var r=arguments.length,i=new Array(r),u=0;u0,"At least one arg needs to be specified");var l="The ",_=i.length;switch(i=i.map((function(r){return'"'.concat(r,'"')})),_){case 1:l+="".concat(i[0]," argument");break;case 2:l+="".concat(i[0]," and ").concat(i[1]," arguments");break;default:l+=i.slice(0,_-1).join(", "),l+=", and ".concat(i[_-1]," arguments")}return"".concat(l," must be specified")}),TypeError),r.exports.codes=l},66080:(r,i,n)=>{function _slicedToArray(r,i){return function _arrayWithHoles(r){if(Array.isArray(r))return r}(r)||function _iterableToArrayLimit(r,i){var n=[],o=!0,u=!1,l=void 0;try{for(var _,p=r[Symbol.iterator]();!(o=(_=p.next()).done)&&(n.push(_.value),!i||n.length!==i);o=!0);}catch(b){u=!0,l=b}finally{try{o||null==p.return||p.return()}finally{if(u)throw l}}return n}(r,i)||function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function _typeof(r){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function _typeof(r){return typeof r}:function _typeof(r){return r&&"function"==typeof Symbol&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},_typeof(r)}var o=void 0!==/a/g.flags,u=function arrayFromSet(r){var i=[];return r.forEach((function(r){return i.push(r)})),i},l=function arrayFromMap(r){var i=[];return r.forEach((function(r,n){return i.push([n,r])})),i},_=Object.is?Object.is:n(67253),p=Object.getOwnPropertySymbols?Object.getOwnPropertySymbols:function(){return[]},b=Number.isNaN?Number.isNaN:n(49284);function uncurryThis(r){return r.call.bind(r)}var g=uncurryThis(Object.prototype.hasOwnProperty),k=uncurryThis(Object.prototype.propertyIsEnumerable),I=uncurryThis(Object.prototype.toString),x=n(55723).types,j=x.isAnyArrayBuffer,q=x.isArrayBufferView,Y=x.isDate,$=x.isMap,J=x.isRegExp,te=x.isSet,re=x.isNativeError,ie=x.isBoxedPrimitive,ne=x.isNumberObject,ae=x.isStringObject,oe=x.isBooleanObject,se=x.isBigIntObject,de=x.isSymbolObject,ce=x.isFloat32Array,ue=x.isFloat64Array;function isNonIndex(r){if(0===r.length||r.length>10)return!0;for(var i=0;i57)return!0}return 10===r.length&&r>=Math.pow(2,32)}function getOwnNonIndexProperties(r){return Object.keys(r).filter(isNonIndex).concat(p(r).filter(Object.prototype.propertyIsEnumerable.bind(r)))}function compare(r,i){if(r===i)return 0;for(var n=r.length,o=i.length,u=0,l=Math.min(n,o);u{var charmap=function(r,i){return i||(i={}),r.split("").forEach((function(r,n){r in i||(i[r]=n)})),i},n={alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567",charmap:{0:14,1:8}};n.charmap=charmap(n.alphabet,n.charmap);var o={alphabet:"0123456789ABCDEFGHJKMNPQRSTVWXYZ",charmap:{O:0,I:1,L:1}};function Decoder(r){if(this.buf=[],this.shift=8,this.carry=0,r){switch(r.type){case"rfc4648":this.charmap=i.rfc4648.charmap;break;case"crockford":this.charmap=i.crockford.charmap;break;default:throw new Error("invalid type")}r.charmap&&(this.charmap=r.charmap)}}function Encoder(r){if(this.buf="",this.shift=3,this.carry=0,r){switch(r.type){case"rfc4648":this.alphabet=i.rfc4648.alphabet;break;case"crockford":this.alphabet=i.crockford.alphabet;break;default:throw new Error("invalid type")}r.alphabet?this.alphabet=r.alphabet:r.lc&&(this.alphabet=this.alphabet.toLowerCase())}}o.charmap=charmap(o.alphabet,o.charmap),Decoder.prototype.charmap=n.charmap,Decoder.prototype.write=function(r){var i=this.charmap,n=this.buf,o=this.shift,u=this.carry;return r.toUpperCase().split("").forEach((function(r){if("="!=r){var l=255&i[r];(o-=5)>0?u|=l<>-o),u=l<<(o+=8)&255):(n.push(u|l),o=8,u=0)}})),this.shift=o,this.carry=u,this},Decoder.prototype.finalize=function(r){return r&&this.write(r),8!==this.shift&&0!==this.carry&&(this.buf.push(this.carry),this.shift=8,this.carry=0),this.buf},Encoder.prototype.alphabet=n.alphabet,Encoder.prototype.write=function(r){var i,n,o,u=this.shift,l=this.carry;for(o=0;o>u,this.buf+=this.alphabet[31&i],u>5&&(i=n>>(u-=5),this.buf+=this.alphabet[31&i]),l=n<<(u=5-u),u=8-u;return this.shift=u,this.carry=l,this},Encoder.prototype.finalize=function(r){return r&&this.write(r),3!==this.shift&&(this.buf+=this.alphabet[31&this.carry],this.shift=3,this.carry=0),this.buf},i.encode=function(r,i){return new Encoder(i).finalize(r)},i.decode=function(r,i){return new Decoder(i).finalize(r)},i.Decoder=Decoder,i.Encoder=Encoder,i.charmap=charmap,i.crockford=o,i.rfc4648=n},34005:(r,i)=>{i.byteLength=function byteLength(r){var i=getLens(r),n=i[0],o=i[1];return 3*(n+o)/4-o},i.toByteArray=function toByteArray(r){var i,n,l=getLens(r),_=l[0],p=l[1],b=new u(function _byteLength(r,i,n){return 3*(i+n)/4-n}(0,_,p)),g=0,k=p>0?_-4:_;for(n=0;n>16&255,b[g++]=i>>8&255,b[g++]=255&i;2===p&&(i=o[r.charCodeAt(n)]<<2|o[r.charCodeAt(n+1)]>>4,b[g++]=255&i);1===p&&(i=o[r.charCodeAt(n)]<<10|o[r.charCodeAt(n+1)]<<4|o[r.charCodeAt(n+2)]>>2,b[g++]=i>>8&255,b[g++]=255&i);return b},i.fromByteArray=function fromByteArray(r){for(var i,o=r.length,u=o%3,l=[],_=16383,p=0,b=o-u;pb?b:p+_));1===u?(i=r[o-1],l.push(n[i>>2]+n[i<<4&63]+"==")):2===u&&(i=(r[o-2]<<8)+r[o-1],l.push(n[i>>10]+n[i>>4&63]+n[i<<2&63]+"="));return l.join("")};for(var n=[],o=[],u="undefined"!=typeof Uint8Array?Uint8Array:Array,l="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",_=0,p=l.length;_0)throw new Error("Invalid string. Length must be a multiple of 4");var n=r.indexOf("=");return-1===n&&(n=i),[n,n===i?0:4-n%4]}function encodeChunk(r,i,o){for(var u,l,_=[],p=i;p>18&63]+n[l>>12&63]+n[l>>6&63]+n[63&l]);return _.join("")}o["-".charCodeAt(0)]=62,o["_".charCodeAt(0)]=63},18486:function(r,i,n){!function(r,i){function assert(r,i){if(!r)throw new Error(i||"Assertion failed")}function inherits(r,i){r.super_=i;var TempCtor=function(){};TempCtor.prototype=i.prototype,r.prototype=new TempCtor,r.prototype.constructor=r}function BN(r,i,n){if(BN.isBN(r))return r;this.negative=0,this.words=null,this.length=0,this.red=null,null!==r&&("le"!==i&&"be"!==i||(n=i,i=10),this._init(r||0,i||10,n||"be"))}var o;"object"==typeof r?r.exports=BN:i.BN=BN,BN.BN=BN,BN.wordSize=26;try{o="undefined"!=typeof window&&void 0!==window.Buffer?window.Buffer:n(46601).Buffer}catch(g){}function parseHex4Bits(r,i){var n=r.charCodeAt(i);return n>=48&&n<=57?n-48:n>=65&&n<=70?n-55:n>=97&&n<=102?n-87:void assert(!1,"Invalid character in "+r)}function parseHexByte(r,i,n){var o=parseHex4Bits(r,n);return n-1>=i&&(o|=parseHex4Bits(r,n-1)<<4),o}function parseBase(r,i,n,o){for(var u=0,l=0,_=Math.min(r.length,n),p=i;p<_;p++){var b=r.charCodeAt(p)-48;u*=o,l=b>=49?b-49+10:b>=17?b-17+10:b,assert(b>=0&&l0?r:i},BN.min=function min(r,i){return r.cmp(i)<0?r:i},BN.prototype._init=function init(r,i,n){if("number"==typeof r)return this._initNumber(r,i,n);if("object"==typeof r)return this._initArray(r,i,n);"hex"===i&&(i=16),assert(i===(0|i)&&i>=2&&i<=36);var o=0;"-"===(r=r.toString().replace(/\s+/g,""))[0]&&(o++,this.negative=1),o=0;o-=3)l=r[o]|r[o-1]<<8|r[o-2]<<16,this.words[u]|=l<<_&67108863,this.words[u+1]=l>>>26-_&67108863,(_+=24)>=26&&(_-=26,u++);else if("le"===n)for(o=0,u=0;o>>26-_&67108863,(_+=24)>=26&&(_-=26,u++);return this._strip()},BN.prototype._parseHex=function _parseHex(r,i,n){this.length=Math.ceil((r.length-i)/6),this.words=new Array(this.length);for(var o=0;o=i;o-=2)u=parseHexByte(r,i,o)<=18?(l-=18,_+=1,this.words[_]|=u>>>26):l+=8;else for(o=(r.length-i)%2==0?i+1:i;o=18?(l-=18,_+=1,this.words[_]|=u>>>26):l+=8;this._strip()},BN.prototype._parseBase=function _parseBase(r,i,n){this.words=[0],this.length=1;for(var o=0,u=1;u<=67108863;u*=i)o++;o--,u=u/i|0;for(var l=r.length-n,_=l%o,p=Math.min(l,l-_)+n,b=0,g=n;g1&&0===this.words[this.length-1];)this.length--;return this._normSign()},BN.prototype._normSign=function _normSign(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},"undefined"!=typeof Symbol&&"function"==typeof Symbol.for)try{BN.prototype[Symbol.for("nodejs.util.inspect.custom")]=inspect}catch(g){BN.prototype.inspect=inspect}else BN.prototype.inspect=inspect;function inspect(){return(this.red?""}var u=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],l=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],_=[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];BN.prototype.toString=function toString(r,i){var n;if(i=0|i||1,16===(r=r||10)||"hex"===r){n="";for(var o=0,p=0,b=0;b>>24-o&16777215)||b!==this.length-1?u[6-k.length]+k+n:k+n,(o+=2)>=26&&(o-=26,b--)}for(0!==p&&(n=p.toString(16)+n);n.length%i!=0;)n="0"+n;return 0!==this.negative&&(n="-"+n),n}if(r===(0|r)&&r>=2&&r<=36){var I=l[r],x=_[r];n="";var j=this.clone();for(j.negative=0;!j.isZero();){var q=j.modrn(x).toString(r);n=(j=j.idivn(x)).isZero()?q+n:u[I-q.length]+q+n}for(this.isZero()&&(n="0"+n);n.length%i!=0;)n="0"+n;return 0!==this.negative&&(n="-"+n),n}assert(!1,"Base should be between 2 and 36")},BN.prototype.toNumber=function toNumber(){var r=this.words[0];return 2===this.length?r+=67108864*this.words[1]:3===this.length&&1===this.words[2]?r+=4503599627370496+67108864*this.words[1]:this.length>2&&assert(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-r:r},BN.prototype.toJSON=function toJSON(){return this.toString(16,2)},o&&(BN.prototype.toBuffer=function toBuffer(r,i){return this.toArrayLike(o,r,i)}),BN.prototype.toArray=function toArray(r,i){return this.toArrayLike(Array,r,i)};function smallMulTo(r,i,n){n.negative=i.negative^r.negative;var o=r.length+i.length|0;n.length=o,o=o-1|0;var u=0|r.words[0],l=0|i.words[0],_=u*l,p=67108863&_,b=_/67108864|0;n.words[0]=p;for(var g=1;g>>26,I=67108863&b,x=Math.min(g,i.length-1),j=Math.max(0,g-r.length+1);j<=x;j++){var q=g-j|0;k+=(_=(u=0|r.words[q])*(l=0|i.words[j])+I)/67108864|0,I=67108863&_}n.words[g]=0|I,b=0|k}return 0!==b?n.words[g]=0|b:n.length--,n._strip()}BN.prototype.toArrayLike=function toArrayLike(r,i,n){this._strip();var o=this.byteLength(),u=n||Math.max(1,o);assert(o<=u,"byte array longer than desired length"),assert(u>0,"Requested array length <= 0");var l=function allocate(r,i){return r.allocUnsafe?r.allocUnsafe(i):new r(i)}(r,u);return this["_toArrayLike"+("le"===i?"LE":"BE")](l,o),l},BN.prototype._toArrayLikeLE=function _toArrayLikeLE(r,i){for(var n=0,o=0,u=0,l=0;u>8&255),n>16&255),6===l?(n>24&255),o=0,l=0):(o=_>>>24,l+=2)}if(n=0&&(r[n--]=_>>8&255),n>=0&&(r[n--]=_>>16&255),6===l?(n>=0&&(r[n--]=_>>24&255),o=0,l=0):(o=_>>>24,l+=2)}if(n>=0)for(r[n--]=o;n>=0;)r[n--]=0},Math.clz32?BN.prototype._countBits=function _countBits(r){return 32-Math.clz32(r)}:BN.prototype._countBits=function _countBits(r){var i=r,n=0;return i>=4096&&(n+=13,i>>>=13),i>=64&&(n+=7,i>>>=7),i>=8&&(n+=4,i>>>=4),i>=2&&(n+=2,i>>>=2),n+i},BN.prototype._zeroBits=function _zeroBits(r){if(0===r)return 26;var i=r,n=0;return 0==(8191&i)&&(n+=13,i>>>=13),0==(127&i)&&(n+=7,i>>>=7),0==(15&i)&&(n+=4,i>>>=4),0==(3&i)&&(n+=2,i>>>=2),0==(1&i)&&n++,n},BN.prototype.bitLength=function bitLength(){var r=this.words[this.length-1],i=this._countBits(r);return 26*(this.length-1)+i},BN.prototype.zeroBits=function zeroBits(){if(this.isZero())return 0;for(var r=0,i=0;ir.length?this.clone().ior(r):r.clone().ior(this)},BN.prototype.uor=function uor(r){return this.length>r.length?this.clone().iuor(r):r.clone().iuor(this)},BN.prototype.iuand=function iuand(r){var i;i=this.length>r.length?r:this;for(var n=0;nr.length?this.clone().iand(r):r.clone().iand(this)},BN.prototype.uand=function uand(r){return this.length>r.length?this.clone().iuand(r):r.clone().iuand(this)},BN.prototype.iuxor=function iuxor(r){var i,n;this.length>r.length?(i=this,n=r):(i=r,n=this);for(var o=0;or.length?this.clone().ixor(r):r.clone().ixor(this)},BN.prototype.uxor=function uxor(r){return this.length>r.length?this.clone().iuxor(r):r.clone().iuxor(this)},BN.prototype.inotn=function inotn(r){assert("number"==typeof r&&r>=0);var i=0|Math.ceil(r/26),n=r%26;this._expand(i),n>0&&i--;for(var o=0;o0&&(this.words[o]=~this.words[o]&67108863>>26-n),this._strip()},BN.prototype.notn=function notn(r){return this.clone().inotn(r)},BN.prototype.setn=function setn(r,i){assert("number"==typeof r&&r>=0);var n=r/26|0,o=r%26;return this._expand(n+1),this.words[n]=i?this.words[n]|1<r.length?(n=this,o=r):(n=r,o=this);for(var u=0,l=0;l>>26;for(;0!==u&&l>>26;if(this.length=n.length,0!==u)this.words[this.length]=u,this.length++;else if(n!==this)for(;lr.length?this.clone().iadd(r):r.clone().iadd(this)},BN.prototype.isub=function isub(r){if(0!==r.negative){r.negative=0;var i=this.iadd(r);return r.negative=1,i._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(r),this.negative=1,this._normSign();var n,o,u=this.cmp(r);if(0===u)return this.negative=0,this.length=1,this.words[0]=0,this;u>0?(n=this,o=r):(n=r,o=this);for(var l=0,_=0;_>26,this.words[_]=67108863&i;for(;0!==l&&_>26,this.words[_]=67108863&i;if(0===l&&_>>13,j=0|_[1],q=8191&j,Y=j>>>13,$=0|_[2],J=8191&$,te=$>>>13,re=0|_[3],ie=8191&re,ne=re>>>13,ae=0|_[4],oe=8191&ae,se=ae>>>13,de=0|_[5],ce=8191&de,ue=de>>>13,le=0|_[6],_e=8191&le,pe=le>>>13,he=0|_[7],fe=8191&he,me=he>>>13,be=0|_[8],ge=8191&be,ye=be>>>13,ve=0|_[9],we=8191&ve,Se=ve>>>13,Ee=0|p[0],ke=8191&Ee,Ae=Ee>>>13,Te=0|p[1],Ce=8191&Te,Me=Te>>>13,Pe=0|p[2],Re=8191&Pe,Ie=Pe>>>13,De=0|p[3],Oe=8191&De,Ne=De>>>13,Be=0|p[4],xe=8191&Be,je=Be>>>13,Le=0|p[5],Ue=8191&Le,Fe=Le>>>13,qe=0|p[6],ze=8191&qe,Ve=qe>>>13,Ge=0|p[7],He=8191&Ge,Ke=Ge>>>13,Ye=0|p[8],$e=8191&Ye,We=Ye>>>13,Je=0|p[9],Qe=8191&Je,Ze=Je>>>13;n.negative=r.negative^i.negative,n.length=19;var Xe=(g+(o=Math.imul(I,ke))|0)+((8191&(u=(u=Math.imul(I,Ae))+Math.imul(x,ke)|0))<<13)|0;g=((l=Math.imul(x,Ae))+(u>>>13)|0)+(Xe>>>26)|0,Xe&=67108863,o=Math.imul(q,ke),u=(u=Math.imul(q,Ae))+Math.imul(Y,ke)|0,l=Math.imul(Y,Ae);var et=(g+(o=o+Math.imul(I,Ce)|0)|0)+((8191&(u=(u=u+Math.imul(I,Me)|0)+Math.imul(x,Ce)|0))<<13)|0;g=((l=l+Math.imul(x,Me)|0)+(u>>>13)|0)+(et>>>26)|0,et&=67108863,o=Math.imul(J,ke),u=(u=Math.imul(J,Ae))+Math.imul(te,ke)|0,l=Math.imul(te,Ae),o=o+Math.imul(q,Ce)|0,u=(u=u+Math.imul(q,Me)|0)+Math.imul(Y,Ce)|0,l=l+Math.imul(Y,Me)|0;var tt=(g+(o=o+Math.imul(I,Re)|0)|0)+((8191&(u=(u=u+Math.imul(I,Ie)|0)+Math.imul(x,Re)|0))<<13)|0;g=((l=l+Math.imul(x,Ie)|0)+(u>>>13)|0)+(tt>>>26)|0,tt&=67108863,o=Math.imul(ie,ke),u=(u=Math.imul(ie,Ae))+Math.imul(ne,ke)|0,l=Math.imul(ne,Ae),o=o+Math.imul(J,Ce)|0,u=(u=u+Math.imul(J,Me)|0)+Math.imul(te,Ce)|0,l=l+Math.imul(te,Me)|0,o=o+Math.imul(q,Re)|0,u=(u=u+Math.imul(q,Ie)|0)+Math.imul(Y,Re)|0,l=l+Math.imul(Y,Ie)|0;var rt=(g+(o=o+Math.imul(I,Oe)|0)|0)+((8191&(u=(u=u+Math.imul(I,Ne)|0)+Math.imul(x,Oe)|0))<<13)|0;g=((l=l+Math.imul(x,Ne)|0)+(u>>>13)|0)+(rt>>>26)|0,rt&=67108863,o=Math.imul(oe,ke),u=(u=Math.imul(oe,Ae))+Math.imul(se,ke)|0,l=Math.imul(se,Ae),o=o+Math.imul(ie,Ce)|0,u=(u=u+Math.imul(ie,Me)|0)+Math.imul(ne,Ce)|0,l=l+Math.imul(ne,Me)|0,o=o+Math.imul(J,Re)|0,u=(u=u+Math.imul(J,Ie)|0)+Math.imul(te,Re)|0,l=l+Math.imul(te,Ie)|0,o=o+Math.imul(q,Oe)|0,u=(u=u+Math.imul(q,Ne)|0)+Math.imul(Y,Oe)|0,l=l+Math.imul(Y,Ne)|0;var it=(g+(o=o+Math.imul(I,xe)|0)|0)+((8191&(u=(u=u+Math.imul(I,je)|0)+Math.imul(x,xe)|0))<<13)|0;g=((l=l+Math.imul(x,je)|0)+(u>>>13)|0)+(it>>>26)|0,it&=67108863,o=Math.imul(ce,ke),u=(u=Math.imul(ce,Ae))+Math.imul(ue,ke)|0,l=Math.imul(ue,Ae),o=o+Math.imul(oe,Ce)|0,u=(u=u+Math.imul(oe,Me)|0)+Math.imul(se,Ce)|0,l=l+Math.imul(se,Me)|0,o=o+Math.imul(ie,Re)|0,u=(u=u+Math.imul(ie,Ie)|0)+Math.imul(ne,Re)|0,l=l+Math.imul(ne,Ie)|0,o=o+Math.imul(J,Oe)|0,u=(u=u+Math.imul(J,Ne)|0)+Math.imul(te,Oe)|0,l=l+Math.imul(te,Ne)|0,o=o+Math.imul(q,xe)|0,u=(u=u+Math.imul(q,je)|0)+Math.imul(Y,xe)|0,l=l+Math.imul(Y,je)|0;var nt=(g+(o=o+Math.imul(I,Ue)|0)|0)+((8191&(u=(u=u+Math.imul(I,Fe)|0)+Math.imul(x,Ue)|0))<<13)|0;g=((l=l+Math.imul(x,Fe)|0)+(u>>>13)|0)+(nt>>>26)|0,nt&=67108863,o=Math.imul(_e,ke),u=(u=Math.imul(_e,Ae))+Math.imul(pe,ke)|0,l=Math.imul(pe,Ae),o=o+Math.imul(ce,Ce)|0,u=(u=u+Math.imul(ce,Me)|0)+Math.imul(ue,Ce)|0,l=l+Math.imul(ue,Me)|0,o=o+Math.imul(oe,Re)|0,u=(u=u+Math.imul(oe,Ie)|0)+Math.imul(se,Re)|0,l=l+Math.imul(se,Ie)|0,o=o+Math.imul(ie,Oe)|0,u=(u=u+Math.imul(ie,Ne)|0)+Math.imul(ne,Oe)|0,l=l+Math.imul(ne,Ne)|0,o=o+Math.imul(J,xe)|0,u=(u=u+Math.imul(J,je)|0)+Math.imul(te,xe)|0,l=l+Math.imul(te,je)|0,o=o+Math.imul(q,Ue)|0,u=(u=u+Math.imul(q,Fe)|0)+Math.imul(Y,Ue)|0,l=l+Math.imul(Y,Fe)|0;var at=(g+(o=o+Math.imul(I,ze)|0)|0)+((8191&(u=(u=u+Math.imul(I,Ve)|0)+Math.imul(x,ze)|0))<<13)|0;g=((l=l+Math.imul(x,Ve)|0)+(u>>>13)|0)+(at>>>26)|0,at&=67108863,o=Math.imul(fe,ke),u=(u=Math.imul(fe,Ae))+Math.imul(me,ke)|0,l=Math.imul(me,Ae),o=o+Math.imul(_e,Ce)|0,u=(u=u+Math.imul(_e,Me)|0)+Math.imul(pe,Ce)|0,l=l+Math.imul(pe,Me)|0,o=o+Math.imul(ce,Re)|0,u=(u=u+Math.imul(ce,Ie)|0)+Math.imul(ue,Re)|0,l=l+Math.imul(ue,Ie)|0,o=o+Math.imul(oe,Oe)|0,u=(u=u+Math.imul(oe,Ne)|0)+Math.imul(se,Oe)|0,l=l+Math.imul(se,Ne)|0,o=o+Math.imul(ie,xe)|0,u=(u=u+Math.imul(ie,je)|0)+Math.imul(ne,xe)|0,l=l+Math.imul(ne,je)|0,o=o+Math.imul(J,Ue)|0,u=(u=u+Math.imul(J,Fe)|0)+Math.imul(te,Ue)|0,l=l+Math.imul(te,Fe)|0,o=o+Math.imul(q,ze)|0,u=(u=u+Math.imul(q,Ve)|0)+Math.imul(Y,ze)|0,l=l+Math.imul(Y,Ve)|0;var ot=(g+(o=o+Math.imul(I,He)|0)|0)+((8191&(u=(u=u+Math.imul(I,Ke)|0)+Math.imul(x,He)|0))<<13)|0;g=((l=l+Math.imul(x,Ke)|0)+(u>>>13)|0)+(ot>>>26)|0,ot&=67108863,o=Math.imul(ge,ke),u=(u=Math.imul(ge,Ae))+Math.imul(ye,ke)|0,l=Math.imul(ye,Ae),o=o+Math.imul(fe,Ce)|0,u=(u=u+Math.imul(fe,Me)|0)+Math.imul(me,Ce)|0,l=l+Math.imul(me,Me)|0,o=o+Math.imul(_e,Re)|0,u=(u=u+Math.imul(_e,Ie)|0)+Math.imul(pe,Re)|0,l=l+Math.imul(pe,Ie)|0,o=o+Math.imul(ce,Oe)|0,u=(u=u+Math.imul(ce,Ne)|0)+Math.imul(ue,Oe)|0,l=l+Math.imul(ue,Ne)|0,o=o+Math.imul(oe,xe)|0,u=(u=u+Math.imul(oe,je)|0)+Math.imul(se,xe)|0,l=l+Math.imul(se,je)|0,o=o+Math.imul(ie,Ue)|0,u=(u=u+Math.imul(ie,Fe)|0)+Math.imul(ne,Ue)|0,l=l+Math.imul(ne,Fe)|0,o=o+Math.imul(J,ze)|0,u=(u=u+Math.imul(J,Ve)|0)+Math.imul(te,ze)|0,l=l+Math.imul(te,Ve)|0,o=o+Math.imul(q,He)|0,u=(u=u+Math.imul(q,Ke)|0)+Math.imul(Y,He)|0,l=l+Math.imul(Y,Ke)|0;var st=(g+(o=o+Math.imul(I,$e)|0)|0)+((8191&(u=(u=u+Math.imul(I,We)|0)+Math.imul(x,$e)|0))<<13)|0;g=((l=l+Math.imul(x,We)|0)+(u>>>13)|0)+(st>>>26)|0,st&=67108863,o=Math.imul(we,ke),u=(u=Math.imul(we,Ae))+Math.imul(Se,ke)|0,l=Math.imul(Se,Ae),o=o+Math.imul(ge,Ce)|0,u=(u=u+Math.imul(ge,Me)|0)+Math.imul(ye,Ce)|0,l=l+Math.imul(ye,Me)|0,o=o+Math.imul(fe,Re)|0,u=(u=u+Math.imul(fe,Ie)|0)+Math.imul(me,Re)|0,l=l+Math.imul(me,Ie)|0,o=o+Math.imul(_e,Oe)|0,u=(u=u+Math.imul(_e,Ne)|0)+Math.imul(pe,Oe)|0,l=l+Math.imul(pe,Ne)|0,o=o+Math.imul(ce,xe)|0,u=(u=u+Math.imul(ce,je)|0)+Math.imul(ue,xe)|0,l=l+Math.imul(ue,je)|0,o=o+Math.imul(oe,Ue)|0,u=(u=u+Math.imul(oe,Fe)|0)+Math.imul(se,Ue)|0,l=l+Math.imul(se,Fe)|0,o=o+Math.imul(ie,ze)|0,u=(u=u+Math.imul(ie,Ve)|0)+Math.imul(ne,ze)|0,l=l+Math.imul(ne,Ve)|0,o=o+Math.imul(J,He)|0,u=(u=u+Math.imul(J,Ke)|0)+Math.imul(te,He)|0,l=l+Math.imul(te,Ke)|0,o=o+Math.imul(q,$e)|0,u=(u=u+Math.imul(q,We)|0)+Math.imul(Y,$e)|0,l=l+Math.imul(Y,We)|0;var dt=(g+(o=o+Math.imul(I,Qe)|0)|0)+((8191&(u=(u=u+Math.imul(I,Ze)|0)+Math.imul(x,Qe)|0))<<13)|0;g=((l=l+Math.imul(x,Ze)|0)+(u>>>13)|0)+(dt>>>26)|0,dt&=67108863,o=Math.imul(we,Ce),u=(u=Math.imul(we,Me))+Math.imul(Se,Ce)|0,l=Math.imul(Se,Me),o=o+Math.imul(ge,Re)|0,u=(u=u+Math.imul(ge,Ie)|0)+Math.imul(ye,Re)|0,l=l+Math.imul(ye,Ie)|0,o=o+Math.imul(fe,Oe)|0,u=(u=u+Math.imul(fe,Ne)|0)+Math.imul(me,Oe)|0,l=l+Math.imul(me,Ne)|0,o=o+Math.imul(_e,xe)|0,u=(u=u+Math.imul(_e,je)|0)+Math.imul(pe,xe)|0,l=l+Math.imul(pe,je)|0,o=o+Math.imul(ce,Ue)|0,u=(u=u+Math.imul(ce,Fe)|0)+Math.imul(ue,Ue)|0,l=l+Math.imul(ue,Fe)|0,o=o+Math.imul(oe,ze)|0,u=(u=u+Math.imul(oe,Ve)|0)+Math.imul(se,ze)|0,l=l+Math.imul(se,Ve)|0,o=o+Math.imul(ie,He)|0,u=(u=u+Math.imul(ie,Ke)|0)+Math.imul(ne,He)|0,l=l+Math.imul(ne,Ke)|0,o=o+Math.imul(J,$e)|0,u=(u=u+Math.imul(J,We)|0)+Math.imul(te,$e)|0,l=l+Math.imul(te,We)|0;var ct=(g+(o=o+Math.imul(q,Qe)|0)|0)+((8191&(u=(u=u+Math.imul(q,Ze)|0)+Math.imul(Y,Qe)|0))<<13)|0;g=((l=l+Math.imul(Y,Ze)|0)+(u>>>13)|0)+(ct>>>26)|0,ct&=67108863,o=Math.imul(we,Re),u=(u=Math.imul(we,Ie))+Math.imul(Se,Re)|0,l=Math.imul(Se,Ie),o=o+Math.imul(ge,Oe)|0,u=(u=u+Math.imul(ge,Ne)|0)+Math.imul(ye,Oe)|0,l=l+Math.imul(ye,Ne)|0,o=o+Math.imul(fe,xe)|0,u=(u=u+Math.imul(fe,je)|0)+Math.imul(me,xe)|0,l=l+Math.imul(me,je)|0,o=o+Math.imul(_e,Ue)|0,u=(u=u+Math.imul(_e,Fe)|0)+Math.imul(pe,Ue)|0,l=l+Math.imul(pe,Fe)|0,o=o+Math.imul(ce,ze)|0,u=(u=u+Math.imul(ce,Ve)|0)+Math.imul(ue,ze)|0,l=l+Math.imul(ue,Ve)|0,o=o+Math.imul(oe,He)|0,u=(u=u+Math.imul(oe,Ke)|0)+Math.imul(se,He)|0,l=l+Math.imul(se,Ke)|0,o=o+Math.imul(ie,$e)|0,u=(u=u+Math.imul(ie,We)|0)+Math.imul(ne,$e)|0,l=l+Math.imul(ne,We)|0;var ut=(g+(o=o+Math.imul(J,Qe)|0)|0)+((8191&(u=(u=u+Math.imul(J,Ze)|0)+Math.imul(te,Qe)|0))<<13)|0;g=((l=l+Math.imul(te,Ze)|0)+(u>>>13)|0)+(ut>>>26)|0,ut&=67108863,o=Math.imul(we,Oe),u=(u=Math.imul(we,Ne))+Math.imul(Se,Oe)|0,l=Math.imul(Se,Ne),o=o+Math.imul(ge,xe)|0,u=(u=u+Math.imul(ge,je)|0)+Math.imul(ye,xe)|0,l=l+Math.imul(ye,je)|0,o=o+Math.imul(fe,Ue)|0,u=(u=u+Math.imul(fe,Fe)|0)+Math.imul(me,Ue)|0,l=l+Math.imul(me,Fe)|0,o=o+Math.imul(_e,ze)|0,u=(u=u+Math.imul(_e,Ve)|0)+Math.imul(pe,ze)|0,l=l+Math.imul(pe,Ve)|0,o=o+Math.imul(ce,He)|0,u=(u=u+Math.imul(ce,Ke)|0)+Math.imul(ue,He)|0,l=l+Math.imul(ue,Ke)|0,o=o+Math.imul(oe,$e)|0,u=(u=u+Math.imul(oe,We)|0)+Math.imul(se,$e)|0,l=l+Math.imul(se,We)|0;var _t=(g+(o=o+Math.imul(ie,Qe)|0)|0)+((8191&(u=(u=u+Math.imul(ie,Ze)|0)+Math.imul(ne,Qe)|0))<<13)|0;g=((l=l+Math.imul(ne,Ze)|0)+(u>>>13)|0)+(_t>>>26)|0,_t&=67108863,o=Math.imul(we,xe),u=(u=Math.imul(we,je))+Math.imul(Se,xe)|0,l=Math.imul(Se,je),o=o+Math.imul(ge,Ue)|0,u=(u=u+Math.imul(ge,Fe)|0)+Math.imul(ye,Ue)|0,l=l+Math.imul(ye,Fe)|0,o=o+Math.imul(fe,ze)|0,u=(u=u+Math.imul(fe,Ve)|0)+Math.imul(me,ze)|0,l=l+Math.imul(me,Ve)|0,o=o+Math.imul(_e,He)|0,u=(u=u+Math.imul(_e,Ke)|0)+Math.imul(pe,He)|0,l=l+Math.imul(pe,Ke)|0,o=o+Math.imul(ce,$e)|0,u=(u=u+Math.imul(ce,We)|0)+Math.imul(ue,$e)|0,l=l+Math.imul(ue,We)|0;var pt=(g+(o=o+Math.imul(oe,Qe)|0)|0)+((8191&(u=(u=u+Math.imul(oe,Ze)|0)+Math.imul(se,Qe)|0))<<13)|0;g=((l=l+Math.imul(se,Ze)|0)+(u>>>13)|0)+(pt>>>26)|0,pt&=67108863,o=Math.imul(we,Ue),u=(u=Math.imul(we,Fe))+Math.imul(Se,Ue)|0,l=Math.imul(Se,Fe),o=o+Math.imul(ge,ze)|0,u=(u=u+Math.imul(ge,Ve)|0)+Math.imul(ye,ze)|0,l=l+Math.imul(ye,Ve)|0,o=o+Math.imul(fe,He)|0,u=(u=u+Math.imul(fe,Ke)|0)+Math.imul(me,He)|0,l=l+Math.imul(me,Ke)|0,o=o+Math.imul(_e,$e)|0,u=(u=u+Math.imul(_e,We)|0)+Math.imul(pe,$e)|0,l=l+Math.imul(pe,We)|0;var ht=(g+(o=o+Math.imul(ce,Qe)|0)|0)+((8191&(u=(u=u+Math.imul(ce,Ze)|0)+Math.imul(ue,Qe)|0))<<13)|0;g=((l=l+Math.imul(ue,Ze)|0)+(u>>>13)|0)+(ht>>>26)|0,ht&=67108863,o=Math.imul(we,ze),u=(u=Math.imul(we,Ve))+Math.imul(Se,ze)|0,l=Math.imul(Se,Ve),o=o+Math.imul(ge,He)|0,u=(u=u+Math.imul(ge,Ke)|0)+Math.imul(ye,He)|0,l=l+Math.imul(ye,Ke)|0,o=o+Math.imul(fe,$e)|0,u=(u=u+Math.imul(fe,We)|0)+Math.imul(me,$e)|0,l=l+Math.imul(me,We)|0;var mt=(g+(o=o+Math.imul(_e,Qe)|0)|0)+((8191&(u=(u=u+Math.imul(_e,Ze)|0)+Math.imul(pe,Qe)|0))<<13)|0;g=((l=l+Math.imul(pe,Ze)|0)+(u>>>13)|0)+(mt>>>26)|0,mt&=67108863,o=Math.imul(we,He),u=(u=Math.imul(we,Ke))+Math.imul(Se,He)|0,l=Math.imul(Se,Ke),o=o+Math.imul(ge,$e)|0,u=(u=u+Math.imul(ge,We)|0)+Math.imul(ye,$e)|0,l=l+Math.imul(ye,We)|0;var bt=(g+(o=o+Math.imul(fe,Qe)|0)|0)+((8191&(u=(u=u+Math.imul(fe,Ze)|0)+Math.imul(me,Qe)|0))<<13)|0;g=((l=l+Math.imul(me,Ze)|0)+(u>>>13)|0)+(bt>>>26)|0,bt&=67108863,o=Math.imul(we,$e),u=(u=Math.imul(we,We))+Math.imul(Se,$e)|0,l=Math.imul(Se,We);var yt=(g+(o=o+Math.imul(ge,Qe)|0)|0)+((8191&(u=(u=u+Math.imul(ge,Ze)|0)+Math.imul(ye,Qe)|0))<<13)|0;g=((l=l+Math.imul(ye,Ze)|0)+(u>>>13)|0)+(yt>>>26)|0,yt&=67108863;var vt=(g+(o=Math.imul(we,Qe))|0)+((8191&(u=(u=Math.imul(we,Ze))+Math.imul(Se,Qe)|0))<<13)|0;return g=((l=Math.imul(Se,Ze))+(u>>>13)|0)+(vt>>>26)|0,vt&=67108863,b[0]=Xe,b[1]=et,b[2]=tt,b[3]=rt,b[4]=it,b[5]=nt,b[6]=at,b[7]=ot,b[8]=st,b[9]=dt,b[10]=ct,b[11]=ut,b[12]=_t,b[13]=pt,b[14]=ht,b[15]=mt,b[16]=bt,b[17]=yt,b[18]=vt,0!==g&&(b[19]=g,n.length++),n};function bigMulTo(r,i,n){n.negative=i.negative^r.negative,n.length=r.length+i.length;for(var o=0,u=0,l=0;l>>26)|0)>>>26,_&=67108863}n.words[l]=p,o=_,_=u}return 0!==o?n.words[l]=o:n.length--,n._strip()}function jumboMulTo(r,i,n){return bigMulTo(r,i,n)}function FFTM(r,i){this.x=r,this.y=i}Math.imul||(p=smallMulTo),BN.prototype.mulTo=function mulTo(r,i){var n=this.length+r.length;return 10===this.length&&10===r.length?p(this,r,i):n<63?smallMulTo(this,r,i):n<1024?bigMulTo(this,r,i):jumboMulTo(this,r,i)},FFTM.prototype.makeRBT=function makeRBT(r){for(var i=new Array(r),n=BN.prototype._countBits(r)-1,o=0;o>=1;return o},FFTM.prototype.permute=function permute(r,i,n,o,u,l){for(var _=0;_>>=1)u++;return 1<>>=13,n[2*l+1]=8191&u,u>>>=13;for(l=2*i;l>=26,n+=u/67108864|0,n+=l>>>26,this.words[o]=67108863&l}return 0!==n&&(this.words[o]=n,this.length++),i?this.ineg():this},BN.prototype.muln=function muln(r){return this.clone().imuln(r)},BN.prototype.sqr=function sqr(){return this.mul(this)},BN.prototype.isqr=function isqr(){return this.imul(this.clone())},BN.prototype.pow=function pow(r){var i=function toBitArray(r){for(var i=new Array(r.bitLength()),n=0;n>>u&1}return i}(r);if(0===i.length)return new BN(1);for(var n=this,o=0;o=0);var i,n=r%26,o=(r-n)/26,u=67108863>>>26-n<<26-n;if(0!==n){var l=0;for(i=0;i>>26-n}l&&(this.words[i]=l,this.length++)}if(0!==o){for(i=this.length-1;i>=0;i--)this.words[i+o]=this.words[i];for(i=0;i=0),o=i?(i-i%26)/26:0;var u=r%26,l=Math.min((r-u)/26,this.length),_=67108863^67108863>>>u<l)for(this.length-=l,b=0;b=0&&(0!==g||b>=o);b--){var k=0|this.words[b];this.words[b]=g<<26-u|k>>>u,g=k&_}return p&&0!==g&&(p.words[p.length++]=g),0===this.length&&(this.words[0]=0,this.length=1),this._strip()},BN.prototype.ishrn=function ishrn(r,i,n){return assert(0===this.negative),this.iushrn(r,i,n)},BN.prototype.shln=function shln(r){return this.clone().ishln(r)},BN.prototype.ushln=function ushln(r){return this.clone().iushln(r)},BN.prototype.shrn=function shrn(r){return this.clone().ishrn(r)},BN.prototype.ushrn=function ushrn(r){return this.clone().iushrn(r)},BN.prototype.testn=function testn(r){assert("number"==typeof r&&r>=0);var i=r%26,n=(r-i)/26,o=1<=0);var i=r%26,n=(r-i)/26;if(assert(0===this.negative,"imaskn works only with positive numbers"),this.length<=n)return this;if(0!==i&&n++,this.length=Math.min(n,this.length),0!==i){var o=67108863^67108863>>>i<=67108864;i++)this.words[i]-=67108864,i===this.length-1?this.words[i+1]=1:this.words[i+1]++;return this.length=Math.max(this.length,i+1),this},BN.prototype.isubn=function isubn(r){if(assert("number"==typeof r),assert(r<67108864),r<0)return this.iaddn(-r);if(0!==this.negative)return this.negative=0,this.iaddn(r),this.negative=1,this;if(this.words[0]-=r,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var i=0;i>26)-(p/67108864|0),this.words[o+n]=67108863&u}for(;o>26,this.words[o+n]=67108863&u;if(0===_)return this._strip();for(assert(-1===_),_=0,o=0;o>26,this.words[o]=67108863&u;return this.negative=1,this._strip()},BN.prototype._wordDiv=function _wordDiv(r,i){var n=(this.length,r.length),o=this.clone(),u=r,l=0|u.words[u.length-1];0!==(n=26-this._countBits(l))&&(u=u.ushln(n),o.iushln(n),l=0|u.words[u.length-1]);var _,p=o.length-u.length;if("mod"!==i){(_=new BN(null)).length=p+1,_.words=new Array(_.length);for(var b=0;b<_.length;b++)_.words[b]=0}var g=o.clone()._ishlnsubmul(u,1,p);0===g.negative&&(o=g,_&&(_.words[p]=1));for(var k=p-1;k>=0;k--){var I=67108864*(0|o.words[u.length+k])+(0|o.words[u.length+k-1]);for(I=Math.min(I/l|0,67108863),o._ishlnsubmul(u,I,k);0!==o.negative;)I--,o.negative=0,o._ishlnsubmul(u,1,k),o.isZero()||(o.negative^=1);_&&(_.words[k]=I)}return _&&_._strip(),o._strip(),"div"!==i&&0!==n&&o.iushrn(n),{div:_||null,mod:o}},BN.prototype.divmod=function divmod(r,i,n){return assert(!r.isZero()),this.isZero()?{div:new BN(0),mod:new BN(0)}:0!==this.negative&&0===r.negative?(l=this.neg().divmod(r,i),"mod"!==i&&(o=l.div.neg()),"div"!==i&&(u=l.mod.neg(),n&&0!==u.negative&&u.iadd(r)),{div:o,mod:u}):0===this.negative&&0!==r.negative?(l=this.divmod(r.neg(),i),"mod"!==i&&(o=l.div.neg()),{div:o,mod:l.mod}):0!=(this.negative&r.negative)?(l=this.neg().divmod(r.neg(),i),"div"!==i&&(u=l.mod.neg(),n&&0!==u.negative&&u.isub(r)),{div:l.div,mod:u}):r.length>this.length||this.cmp(r)<0?{div:new BN(0),mod:this}:1===r.length?"div"===i?{div:this.divn(r.words[0]),mod:null}:"mod"===i?{div:null,mod:new BN(this.modrn(r.words[0]))}:{div:this.divn(r.words[0]),mod:new BN(this.modrn(r.words[0]))}:this._wordDiv(r,i);var o,u,l},BN.prototype.div=function div(r){return this.divmod(r,"div",!1).div},BN.prototype.mod=function mod(r){return this.divmod(r,"mod",!1).mod},BN.prototype.umod=function umod(r){return this.divmod(r,"mod",!0).mod},BN.prototype.divRound=function divRound(r){var i=this.divmod(r);if(i.mod.isZero())return i.div;var n=0!==i.div.negative?i.mod.isub(r):i.mod,o=r.ushrn(1),u=r.andln(1),l=n.cmp(o);return l<0||1===u&&0===l?i.div:0!==i.div.negative?i.div.isubn(1):i.div.iaddn(1)},BN.prototype.modrn=function modrn(r){var i=r<0;i&&(r=-r),assert(r<=67108863);for(var n=(1<<26)%r,o=0,u=this.length-1;u>=0;u--)o=(n*o+(0|this.words[u]))%r;return i?-o:o},BN.prototype.modn=function modn(r){return this.modrn(r)},BN.prototype.idivn=function idivn(r){var i=r<0;i&&(r=-r),assert(r<=67108863);for(var n=0,o=this.length-1;o>=0;o--){var u=(0|this.words[o])+67108864*n;this.words[o]=u/r|0,n=u%r}return this._strip(),i?this.ineg():this},BN.prototype.divn=function divn(r){return this.clone().idivn(r)},BN.prototype.egcd=function egcd(r){assert(0===r.negative),assert(!r.isZero());var i=this,n=r.clone();i=0!==i.negative?i.umod(r):i.clone();for(var o=new BN(1),u=new BN(0),l=new BN(0),_=new BN(1),p=0;i.isEven()&&n.isEven();)i.iushrn(1),n.iushrn(1),++p;for(var b=n.clone(),g=i.clone();!i.isZero();){for(var k=0,I=1;0==(i.words[0]&I)&&k<26;++k,I<<=1);if(k>0)for(i.iushrn(k);k-- >0;)(o.isOdd()||u.isOdd())&&(o.iadd(b),u.isub(g)),o.iushrn(1),u.iushrn(1);for(var x=0,j=1;0==(n.words[0]&j)&&x<26;++x,j<<=1);if(x>0)for(n.iushrn(x);x-- >0;)(l.isOdd()||_.isOdd())&&(l.iadd(b),_.isub(g)),l.iushrn(1),_.iushrn(1);i.cmp(n)>=0?(i.isub(n),o.isub(l),u.isub(_)):(n.isub(i),l.isub(o),_.isub(u))}return{a:l,b:_,gcd:n.iushln(p)}},BN.prototype._invmp=function _invmp(r){assert(0===r.negative),assert(!r.isZero());var i=this,n=r.clone();i=0!==i.negative?i.umod(r):i.clone();for(var o,u=new BN(1),l=new BN(0),_=n.clone();i.cmpn(1)>0&&n.cmpn(1)>0;){for(var p=0,b=1;0==(i.words[0]&b)&&p<26;++p,b<<=1);if(p>0)for(i.iushrn(p);p-- >0;)u.isOdd()&&u.iadd(_),u.iushrn(1);for(var g=0,k=1;0==(n.words[0]&k)&&g<26;++g,k<<=1);if(g>0)for(n.iushrn(g);g-- >0;)l.isOdd()&&l.iadd(_),l.iushrn(1);i.cmp(n)>=0?(i.isub(n),u.isub(l)):(n.isub(i),l.isub(u))}return(o=0===i.cmpn(1)?u:l).cmpn(0)<0&&o.iadd(r),o},BN.prototype.gcd=function gcd(r){if(this.isZero())return r.abs();if(r.isZero())return this.abs();var i=this.clone(),n=r.clone();i.negative=0,n.negative=0;for(var o=0;i.isEven()&&n.isEven();o++)i.iushrn(1),n.iushrn(1);for(;;){for(;i.isEven();)i.iushrn(1);for(;n.isEven();)n.iushrn(1);var u=i.cmp(n);if(u<0){var l=i;i=n,n=l}else if(0===u||0===n.cmpn(1))break;i.isub(n)}return n.iushln(o)},BN.prototype.invm=function invm(r){return this.egcd(r).a.umod(r)},BN.prototype.isEven=function isEven(){return 0==(1&this.words[0])},BN.prototype.isOdd=function isOdd(){return 1==(1&this.words[0])},BN.prototype.andln=function andln(r){return this.words[0]&r},BN.prototype.bincn=function bincn(r){assert("number"==typeof r);var i=r%26,n=(r-i)/26,o=1<>>26,_&=67108863,this.words[l]=_}return 0!==u&&(this.words[l]=u,this.length++),this},BN.prototype.isZero=function isZero(){return 1===this.length&&0===this.words[0]},BN.prototype.cmpn=function cmpn(r){var i,n=r<0;if(0!==this.negative&&!n)return-1;if(0===this.negative&&n)return 1;if(this._strip(),this.length>1)i=1;else{n&&(r=-r),assert(r<=67108863,"Number is too big");var o=0|this.words[0];i=o===r?0:or.length)return 1;if(this.length=0;n--){var o=0|this.words[n],u=0|r.words[n];if(o!==u){ou&&(i=1);break}}return i},BN.prototype.gtn=function gtn(r){return 1===this.cmpn(r)},BN.prototype.gt=function gt(r){return 1===this.cmp(r)},BN.prototype.gten=function gten(r){return this.cmpn(r)>=0},BN.prototype.gte=function gte(r){return this.cmp(r)>=0},BN.prototype.ltn=function ltn(r){return-1===this.cmpn(r)},BN.prototype.lt=function lt(r){return-1===this.cmp(r)},BN.prototype.lten=function lten(r){return this.cmpn(r)<=0},BN.prototype.lte=function lte(r){return this.cmp(r)<=0},BN.prototype.eqn=function eqn(r){return 0===this.cmpn(r)},BN.prototype.eq=function eq(r){return 0===this.cmp(r)},BN.red=function red(r){return new Red(r)},BN.prototype.toRed=function toRed(r){return assert(!this.red,"Already a number in reduction context"),assert(0===this.negative,"red works only with positives"),r.convertTo(this)._forceRed(r)},BN.prototype.fromRed=function fromRed(){return assert(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},BN.prototype._forceRed=function _forceRed(r){return this.red=r,this},BN.prototype.forceRed=function forceRed(r){return assert(!this.red,"Already a number in reduction context"),this._forceRed(r)},BN.prototype.redAdd=function redAdd(r){return assert(this.red,"redAdd works only with red numbers"),this.red.add(this,r)},BN.prototype.redIAdd=function redIAdd(r){return assert(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,r)},BN.prototype.redSub=function redSub(r){return assert(this.red,"redSub works only with red numbers"),this.red.sub(this,r)},BN.prototype.redISub=function redISub(r){return assert(this.red,"redISub works only with red numbers"),this.red.isub(this,r)},BN.prototype.redShl=function redShl(r){return assert(this.red,"redShl works only with red numbers"),this.red.shl(this,r)},BN.prototype.redMul=function redMul(r){return assert(this.red,"redMul works only with red numbers"),this.red._verify2(this,r),this.red.mul(this,r)},BN.prototype.redIMul=function redIMul(r){return assert(this.red,"redMul works only with red numbers"),this.red._verify2(this,r),this.red.imul(this,r)},BN.prototype.redSqr=function redSqr(){return assert(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},BN.prototype.redISqr=function redISqr(){return assert(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},BN.prototype.redSqrt=function redSqrt(){return assert(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},BN.prototype.redInvm=function redInvm(){return assert(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},BN.prototype.redNeg=function redNeg(){return assert(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},BN.prototype.redPow=function redPow(r){return assert(this.red&&!r.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,r)};var b={k256:null,p224:null,p192:null,p25519:null};function MPrime(r,i){this.name=r,this.p=new BN(i,16),this.n=this.p.bitLength(),this.k=new BN(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function K256(){MPrime.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function P224(){MPrime.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function P192(){MPrime.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function P25519(){MPrime.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function Red(r){if("string"==typeof r){var i=BN._prime(r);this.m=i.p,this.prime=i}else assert(r.gtn(1),"modulus must be greater than 1"),this.m=r,this.prime=null}function Mont(r){Red.call(this,r),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new BN(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)}MPrime.prototype._tmp=function _tmp(){var r=new BN(null);return r.words=new Array(Math.ceil(this.n/13)),r},MPrime.prototype.ireduce=function ireduce(r){var i,n=r;do{this.split(n,this.tmp),i=(n=(n=this.imulK(n)).iadd(this.tmp)).bitLength()}while(i>this.n);var o=i0?n.isub(this.p):void 0!==n.strip?n.strip():n._strip(),n},MPrime.prototype.split=function split(r,i){r.iushrn(this.n,0,i)},MPrime.prototype.imulK=function imulK(r){return r.imul(this.k)},inherits(K256,MPrime),K256.prototype.split=function split(r,i){for(var n=4194303,o=Math.min(r.length,9),u=0;u>>22,l=_}l>>>=22,r.words[u-10]=l,0===l&&r.length>10?r.length-=10:r.length-=9},K256.prototype.imulK=function imulK(r){r.words[r.length]=0,r.words[r.length+1]=0,r.length+=2;for(var i=0,n=0;n>>=26,r.words[n]=u,i=o}return 0!==i&&(r.words[r.length++]=i),r},BN._prime=function prime(r){if(b[r])return b[r];var prime;if("k256"===r)prime=new K256;else if("p224"===r)prime=new P224;else if("p192"===r)prime=new P192;else{if("p25519"!==r)throw new Error("Unknown prime "+r);prime=new P25519}return b[r]=prime,prime},Red.prototype._verify1=function _verify1(r){assert(0===r.negative,"red works only with positives"),assert(r.red,"red works only with red numbers")},Red.prototype._verify2=function _verify2(r,i){assert(0==(r.negative|i.negative),"red works only with positives"),assert(r.red&&r.red===i.red,"red works only with red numbers")},Red.prototype.imod=function imod(r){return this.prime?this.prime.ireduce(r)._forceRed(this):(move(r,r.umod(this.m)._forceRed(this)),r)},Red.prototype.neg=function neg(r){return r.isZero()?r.clone():this.m.sub(r)._forceRed(this)},Red.prototype.add=function add(r,i){this._verify2(r,i);var n=r.add(i);return n.cmp(this.m)>=0&&n.isub(this.m),n._forceRed(this)},Red.prototype.iadd=function iadd(r,i){this._verify2(r,i);var n=r.iadd(i);return n.cmp(this.m)>=0&&n.isub(this.m),n},Red.prototype.sub=function sub(r,i){this._verify2(r,i);var n=r.sub(i);return n.cmpn(0)<0&&n.iadd(this.m),n._forceRed(this)},Red.prototype.isub=function isub(r,i){this._verify2(r,i);var n=r.isub(i);return n.cmpn(0)<0&&n.iadd(this.m),n},Red.prototype.shl=function shl(r,i){return this._verify1(r),this.imod(r.ushln(i))},Red.prototype.imul=function imul(r,i){return this._verify2(r,i),this.imod(r.imul(i))},Red.prototype.mul=function mul(r,i){return this._verify2(r,i),this.imod(r.mul(i))},Red.prototype.isqr=function isqr(r){return this.imul(r,r.clone())},Red.prototype.sqr=function sqr(r){return this.mul(r,r)},Red.prototype.sqrt=function sqrt(r){if(r.isZero())return r.clone();var i=this.m.andln(3);if(assert(i%2==1),3===i){var n=this.m.add(new BN(1)).iushrn(2);return this.pow(r,n)}for(var o=this.m.subn(1),u=0;!o.isZero()&&0===o.andln(1);)u++,o.iushrn(1);assert(!o.isZero());var l=new BN(1).toRed(this),_=l.redNeg(),p=this.m.subn(1).iushrn(1),b=this.m.bitLength();for(b=new BN(2*b*b).toRed(this);0!==this.pow(b,p).cmp(_);)b.redIAdd(_);for(var g=this.pow(b,o),k=this.pow(r,o.addn(1).iushrn(1)),I=this.pow(r,o),x=u;0!==I.cmp(l);){for(var j=I,q=0;0!==j.cmp(l);q++)j=j.redSqr();assert(q=0;o--){for(var b=i.words[o],g=p-1;g>=0;g--){var k=b>>g&1;u!==n[0]&&(u=this.sqr(u)),0!==k||0!==l?(l<<=1,l|=k,(4===++_||0===o&&0===g)&&(u=this.mul(u,n[l]),_=0,l=0)):_=0}p=26}return u},Red.prototype.convertTo=function convertTo(r){var i=r.umod(this.m);return i===r?i.clone():i},Red.prototype.convertFrom=function convertFrom(r){var i=r.clone();return i.red=null,i},BN.mont=function mont(r){return new Mont(r)},inherits(Mont,Red),Mont.prototype.convertTo=function convertTo(r){return this.imod(r.ushln(this.shift))},Mont.prototype.convertFrom=function convertFrom(r){var i=this.imod(r.mul(this.rinv));return i.red=null,i},Mont.prototype.imul=function imul(r,i){if(r.isZero()||i.isZero())return r.words[0]=0,r.length=1,r;var n=r.imul(i),o=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),u=n.isub(o).iushrn(this.shift),l=u;return u.cmp(this.m)>=0?l=u.isub(this.m):u.cmpn(0)<0&&(l=u.iadd(this.m)),l._forceRed(this)},Mont.prototype.mul=function mul(r,i){if(r.isZero()||i.isZero())return new BN(0)._forceRed(this);var n=r.mul(i),o=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),u=n.isub(o).iushrn(this.shift),l=u;return u.cmp(this.m)>=0?l=u.isub(this.m):u.cmpn(0)<0&&(l=u.iadd(this.m)),l._forceRed(this)},Mont.prototype.invm=function invm(r){return this.imod(r._invmp(this.m).mul(this.r2))._forceRed(this)}}(r=n.nmd(r),this)},17203:(r,i,n)=>{var o;function Rand(r){this.rand=r}if(r.exports=function rand(r){return o||(o=new Rand(null)),o.generate(r)},r.exports.Rand=Rand,Rand.prototype.generate=function generate(r){return this._rand(r)},Rand.prototype._rand=function _rand(r){if(this.rand.getBytes)return this.rand.getBytes(r);for(var i=new Uint8Array(r),n=0;n{var o=n(65955).Buffer;function asUInt32Array(r){o.isBuffer(r)||(r=o.from(r));for(var i=r.length/4|0,n=new Array(i),u=0;u>>24]^k[q>>>16&255]^I[Y>>>8&255]^x[255&$]^i[J++],_=g[q>>>24]^k[Y>>>16&255]^I[$>>>8&255]^x[255&j]^i[J++],p=g[Y>>>24]^k[$>>>16&255]^I[j>>>8&255]^x[255&q]^i[J++],b=g[$>>>24]^k[j>>>16&255]^I[q>>>8&255]^x[255&Y]^i[J++],j=l,q=_,Y=p,$=b;return l=(o[j>>>24]<<24|o[q>>>16&255]<<16|o[Y>>>8&255]<<8|o[255&$])^i[J++],_=(o[q>>>24]<<24|o[Y>>>16&255]<<16|o[$>>>8&255]<<8|o[255&j])^i[J++],p=(o[Y>>>24]<<24|o[$>>>16&255]<<16|o[j>>>8&255]<<8|o[255&q])^i[J++],b=(o[$>>>24]<<24|o[j>>>16&255]<<16|o[q>>>8&255]<<8|o[255&Y])^i[J++],[l>>>=0,_>>>=0,p>>>=0,b>>>=0]}var u=[0,1,2,4,8,16,32,64,128,27,54],l=function(){for(var r=new Array(256),i=0;i<256;i++)r[i]=i<128?i<<1:i<<1^283;for(var n=[],o=[],u=[[],[],[],[]],l=[[],[],[],[]],_=0,p=0,b=0;b<256;++b){var g=p^p<<1^p<<2^p<<3^p<<4;g=g>>>8^255&g^99,n[_]=g,o[g]=_;var k=r[_],I=r[k],x=r[I],j=257*r[g]^16843008*g;u[0][_]=j<<24|j>>>8,u[1][_]=j<<16|j>>>16,u[2][_]=j<<8|j>>>24,u[3][_]=j,j=16843009*x^65537*I^257*k^16843008*_,l[0][g]=j<<24|j>>>8,l[1][g]=j<<16|j>>>16,l[2][g]=j<<8|j>>>24,l[3][g]=j,0===_?_=p=1:(_=k^r[r[r[x^k]]],p^=r[r[p]])}return{SBOX:n,INV_SBOX:o,SUB_MIX:u,INV_SUB_MIX:l}}();function AES(r){this._key=asUInt32Array(r),this._reset()}AES.blockSize=16,AES.keySize=32,AES.prototype.blockSize=AES.blockSize,AES.prototype.keySize=AES.keySize,AES.prototype._reset=function(){for(var r=this._key,i=r.length,n=i+6,o=4*(n+1),_=[],p=0;p>>24,b=l.SBOX[b>>>24]<<24|l.SBOX[b>>>16&255]<<16|l.SBOX[b>>>8&255]<<8|l.SBOX[255&b],b^=u[p/i|0]<<24):i>6&&p%i==4&&(b=l.SBOX[b>>>24]<<24|l.SBOX[b>>>16&255]<<16|l.SBOX[b>>>8&255]<<8|l.SBOX[255&b]),_[p]=_[p-i]^b}for(var g=[],k=0;k>>24]]^l.INV_SUB_MIX[1][l.SBOX[x>>>16&255]]^l.INV_SUB_MIX[2][l.SBOX[x>>>8&255]]^l.INV_SUB_MIX[3][l.SBOX[255&x]]}this._nRounds=n,this._keySchedule=_,this._invKeySchedule=g},AES.prototype.encryptBlockRaw=function(r){return cryptBlock(r=asUInt32Array(r),this._keySchedule,l.SUB_MIX,l.SBOX,this._nRounds)},AES.prototype.encryptBlock=function(r){var i=this.encryptBlockRaw(r),n=o.allocUnsafe(16);return n.writeUInt32BE(i[0],0),n.writeUInt32BE(i[1],4),n.writeUInt32BE(i[2],8),n.writeUInt32BE(i[3],12),n},AES.prototype.decryptBlock=function(r){var i=(r=asUInt32Array(r))[1];r[1]=r[3],r[3]=i;var n=cryptBlock(r,this._invKeySchedule,l.INV_SUB_MIX,l.INV_SBOX,this._nRounds),u=o.allocUnsafe(16);return u.writeUInt32BE(n[0],0),u.writeUInt32BE(n[3],4),u.writeUInt32BE(n[2],8),u.writeUInt32BE(n[1],12),u},AES.prototype.scrub=function(){scrubVec(this._keySchedule),scrubVec(this._invKeySchedule),scrubVec(this._key)},r.exports.AES=AES},6377:(r,i,n)=>{var o=n(69584),u=n(65955).Buffer,l=n(59618),_=n(40137),p=n(43554),b=n(29343),g=n(89199);function StreamCipher(r,i,n,_){l.call(this);var b=u.alloc(4,0);this._cipher=new o.AES(i);var k=this._cipher.encryptBlock(b);this._ghash=new p(k),n=function calcIv(r,i,n){if(12===i.length)return r._finID=u.concat([i,u.from([0,0,0,1])]),u.concat([i,u.from([0,0,0,2])]);var o=new p(n),l=i.length,_=l%16;o.update(i),_&&(_=16-_,o.update(u.alloc(_,0))),o.update(u.alloc(8,0));var b=8*l,k=u.alloc(8);k.writeUIntBE(b,0,8),o.update(k),r._finID=o.state;var I=u.from(r._finID);return g(I),I}(this,n,k),this._prev=u.from(n),this._cache=u.allocUnsafe(0),this._secCache=u.allocUnsafe(0),this._decrypt=_,this._alen=0,this._len=0,this._mode=r,this._authTag=null,this._called=!1}_(StreamCipher,l),StreamCipher.prototype._update=function(r){if(!this._called&&this._alen){var i=16-this._alen%16;i<16&&(i=u.alloc(i,0),this._ghash.update(i))}this._called=!0;var n=this._mode.encrypt(this,r);return this._decrypt?this._ghash.update(r):this._ghash.update(n),this._len+=r.length,n},StreamCipher.prototype._final=function(){if(this._decrypt&&!this._authTag)throw new Error("Unsupported state or unable to authenticate data");var r=b(this._ghash.final(8*this._alen,8*this._len),this._cipher.encryptBlock(this._finID));if(this._decrypt&&function xorTest(r,i){var n=0;r.length!==i.length&&n++;for(var o=Math.min(r.length,i.length),u=0;u{var o=n(37817),u=n(46581),l=n(44946);i.createCipher=i.Cipher=o.createCipher,i.createCipheriv=i.Cipheriv=o.createCipheriv,i.createDecipher=i.Decipher=u.createDecipher,i.createDecipheriv=i.Decipheriv=u.createDecipheriv,i.listCiphers=i.getCiphers=function getCiphers(){return Object.keys(l)}},46581:(r,i,n)=>{var o=n(6377),u=n(65955).Buffer,l=n(92282),_=n(92570),p=n(59618),b=n(69584),g=n(21833);function Decipher(r,i,n){p.call(this),this._cache=new Splitter,this._last=void 0,this._cipher=new b.AES(i),this._prev=u.from(n),this._mode=r,this._autopadding=!0}function Splitter(){this.cache=u.allocUnsafe(0)}function createDecipheriv(r,i,n){var p=l[r.toLowerCase()];if(!p)throw new TypeError("invalid suite type");if("string"==typeof n&&(n=u.from(n)),"GCM"!==p.mode&&n.length!==p.iv)throw new TypeError("invalid iv length "+n.length);if("string"==typeof i&&(i=u.from(i)),i.length!==p.key/8)throw new TypeError("invalid key length "+i.length);return"stream"===p.type?new _(p.module,i,n,!0):"auth"===p.type?new o(p.module,i,n,!0):new Decipher(p.module,i,n)}n(40137)(Decipher,p),Decipher.prototype._update=function(r){var i,n;this._cache.add(r);for(var o=[];i=this._cache.get(this._autopadding);)n=this._mode.decrypt(this,i),o.push(n);return u.concat(o)},Decipher.prototype._final=function(){var r=this._cache.flush();if(this._autopadding)return function unpad(r){var i=r[15];if(i<1||i>16)throw new Error("unable to decrypt data");var n=-1;for(;++n16)return i=this.cache.slice(0,16),this.cache=this.cache.slice(16),i}else if(this.cache.length>=16)return i=this.cache.slice(0,16),this.cache=this.cache.slice(16),i;return null},Splitter.prototype.flush=function(){if(this.cache.length)return this.cache},i.createDecipher=function createDecipher(r,i){var n=l[r.toLowerCase()];if(!n)throw new TypeError("invalid suite type");var o=g(i,!1,n.key,n.iv);return createDecipheriv(r,o.key,o.iv)},i.createDecipheriv=createDecipheriv},37817:(r,i,n)=>{var o=n(92282),u=n(6377),l=n(65955).Buffer,_=n(92570),p=n(59618),b=n(69584),g=n(21833);function Cipher(r,i,n){p.call(this),this._cache=new Splitter,this._cipher=new b.AES(i),this._prev=l.from(n),this._mode=r,this._autopadding=!0}n(40137)(Cipher,p),Cipher.prototype._update=function(r){var i,n;this._cache.add(r);for(var o=[];i=this._cache.get();)n=this._mode.encrypt(this,i),o.push(n);return l.concat(o)};var k=l.alloc(16,16);function Splitter(){this.cache=l.allocUnsafe(0)}function createCipheriv(r,i,n){var p=o[r.toLowerCase()];if(!p)throw new TypeError("invalid suite type");if("string"==typeof i&&(i=l.from(i)),i.length!==p.key/8)throw new TypeError("invalid key length "+i.length);if("string"==typeof n&&(n=l.from(n)),"GCM"!==p.mode&&n.length!==p.iv)throw new TypeError("invalid iv length "+n.length);return"stream"===p.type?new _(p.module,i,n):"auth"===p.type?new u(p.module,i,n):new Cipher(p.module,i,n)}Cipher.prototype._final=function(){var r=this._cache.flush();if(this._autopadding)return r=this._mode.encrypt(this,r),this._cipher.scrub(),r;if(!r.equals(k))throw this._cipher.scrub(),new Error("data not multiple of block length")},Cipher.prototype.setAutoPadding=function(r){return this._autopadding=!!r,this},Splitter.prototype.add=function(r){this.cache=l.concat([this.cache,r])},Splitter.prototype.get=function(){if(this.cache.length>15){var r=this.cache.slice(0,16);return this.cache=this.cache.slice(16),r}return null},Splitter.prototype.flush=function(){for(var r=16-this.cache.length,i=l.allocUnsafe(r),n=-1;++n{var o=n(65955).Buffer,u=o.alloc(16,0);function fromArray(r){var i=o.allocUnsafe(16);return i.writeUInt32BE(r[0]>>>0,0),i.writeUInt32BE(r[1]>>>0,4),i.writeUInt32BE(r[2]>>>0,8),i.writeUInt32BE(r[3]>>>0,12),i}function GHASH(r){this.h=r,this.state=o.alloc(16,0),this.cache=o.allocUnsafe(0)}GHASH.prototype.ghash=function(r){for(var i=-1;++i0;r--)n[r]=n[r]>>>1|(1&n[r-1])<<31;n[0]=n[0]>>>1,i&&(n[0]=n[0]^225<<24)}this.state=fromArray(o)},GHASH.prototype.update=function(r){var i;for(this.cache=o.concat([this.cache,r]);this.cache.length>=16;)i=this.cache.slice(0,16),this.cache=this.cache.slice(16),this.ghash(i)},GHASH.prototype.final=function(r,i){return this.cache.length&&this.ghash(o.concat([this.cache,u],16)),this.ghash(fromArray([0,r,0,i])),this.state},r.exports=GHASH},89199:r=>{r.exports=function incr32(r){for(var i,n=r.length;n--;){if(255!==(i=r.readUInt8(n))){i++,r.writeUInt8(i,n);break}r.writeUInt8(0,n)}}},78405:(r,i,n)=>{var o=n(29343);i.encrypt=function(r,i){var n=o(i,r._prev);return r._prev=r._cipher.encryptBlock(n),r._prev},i.decrypt=function(r,i){var n=r._prev;r._prev=i;var u=r._cipher.decryptBlock(i);return o(u,n)}},76969:(r,i,n)=>{var o=n(65955).Buffer,u=n(29343);function encryptStart(r,i,n){var l=i.length,_=u(i,r._cache);return r._cache=r._cache.slice(l),r._prev=o.concat([r._prev,n?i:_]),_}i.encrypt=function(r,i,n){for(var u,l=o.allocUnsafe(0);i.length;){if(0===r._cache.length&&(r._cache=r._cipher.encryptBlock(r._prev),r._prev=o.allocUnsafe(0)),!(r._cache.length<=i.length)){l=o.concat([l,encryptStart(r,i,n)]);break}u=r._cache.length,l=o.concat([l,encryptStart(r,i.slice(0,u),n)]),i=i.slice(u)}return l}},4766:(r,i,n)=>{var o=n(65955).Buffer;function encryptByte(r,i,n){for(var o,u,l=-1,_=0;++l<8;)o=i&1<<7-l?128:0,_+=(128&(u=r._cipher.encryptBlock(r._prev)[0]^o))>>l%8,r._prev=shiftIn(r._prev,n?o:u);return _}function shiftIn(r,i){var n=r.length,u=-1,l=o.allocUnsafe(r.length);for(r=o.concat([r,o.from([i])]);++u>7;return l}i.encrypt=function(r,i,n){for(var u=i.length,l=o.allocUnsafe(u),_=-1;++_{var o=n(65955).Buffer;function encryptByte(r,i,n){var u=r._cipher.encryptBlock(r._prev)[0]^i;return r._prev=o.concat([r._prev.slice(1),o.from([n?i:u])]),u}i.encrypt=function(r,i,n){for(var u=i.length,l=o.allocUnsafe(u),_=-1;++_{var o=n(29343),u=n(65955).Buffer,l=n(89199);function getBlock(r){var i=r._cipher.encryptBlockRaw(r._prev);return l(r._prev),i}i.encrypt=function(r,i){var n=Math.ceil(i.length/16),l=r._cache.length;r._cache=u.concat([r._cache,u.allocUnsafe(16*n)]);for(var _=0;_{i.encrypt=function(r,i){return r._cipher.encryptBlock(i)},i.decrypt=function(r,i){return r._cipher.decryptBlock(i)}},92282:(r,i,n)=>{var o={ECB:n(89390),CBC:n(78405),CFB:n(76969),CFB8:n(12224),CFB1:n(4766),OFB:n(26621),CTR:n(59357),GCM:n(59357)},u=n(44946);for(var l in u)u[l].module=o[u[l].mode];r.exports=u},26621:(r,i,n)=>{var o=n(13039).Buffer,u=n(29343);function getBlock(r){return r._prev=r._cipher.encryptBlock(r._prev),r._prev}i.encrypt=function(r,i){for(;r._cache.length{var o=n(69584),u=n(65955).Buffer,l=n(59618);function StreamCipher(r,i,n,_){l.call(this),this._cipher=new o.AES(i),this._prev=u.from(n),this._cache=u.allocUnsafe(0),this._secCache=u.allocUnsafe(0),this._decrypt=_,this._mode=r}n(40137)(StreamCipher,l),StreamCipher.prototype._update=function(r){return this._mode.encrypt(this,r,this._decrypt)},StreamCipher.prototype._final=function(){this._cipher.scrub()},r.exports=StreamCipher},45372:(r,i,n)=>{var o=n(73999),u=n(94962),l=n(92282),_=n(33719),p=n(21833);function createCipheriv(r,i,n){if(r=r.toLowerCase(),l[r])return u.createCipheriv(r,i,n);if(_[r])return new o({key:i,iv:n,mode:r});throw new TypeError("invalid suite type")}function createDecipheriv(r,i,n){if(r=r.toLowerCase(),l[r])return u.createDecipheriv(r,i,n);if(_[r])return new o({key:i,iv:n,mode:r,decrypt:!0});throw new TypeError("invalid suite type")}i.createCipher=i.Cipher=function createCipher(r,i){var n,o;if(r=r.toLowerCase(),l[r])n=l[r].key,o=l[r].iv;else{if(!_[r])throw new TypeError("invalid suite type");n=8*_[r].key,o=_[r].iv}var u=p(i,!1,n,o);return createCipheriv(r,u.key,u.iv)},i.createCipheriv=i.Cipheriv=createCipheriv,i.createDecipher=i.Decipher=function createDecipher(r,i){var n,o;if(r=r.toLowerCase(),l[r])n=l[r].key,o=l[r].iv;else{if(!_[r])throw new TypeError("invalid suite type");n=8*_[r].key,o=_[r].iv}var u=p(i,!1,n,o);return createDecipheriv(r,u.key,u.iv)},i.createDecipheriv=i.Decipheriv=createDecipheriv,i.listCiphers=i.getCiphers=function getCiphers(){return Object.keys(_).concat(u.getCiphers())}},73999:(r,i,n)=>{var o=n(59618),u=n(81104),l=n(40137),_=n(65955).Buffer,p={"des-ede3-cbc":u.CBC.instantiate(u.EDE),"des-ede3":u.EDE,"des-ede-cbc":u.CBC.instantiate(u.EDE),"des-ede":u.EDE,"des-cbc":u.CBC.instantiate(u.DES),"des-ecb":u.DES};function DES(r){o.call(this);var i,n=r.mode.toLowerCase(),u=p[n];i=r.decrypt?"decrypt":"encrypt";var l=r.key;_.isBuffer(l)||(l=_.from(l)),"des-ede"!==n&&"des-ede-cbc"!==n||(l=_.concat([l,l.slice(0,8)]));var b=r.iv;_.isBuffer(b)||(b=_.from(b)),this._des=u.create({key:l,iv:b,type:i})}p.des=p["des-cbc"],p.des3=p["des-ede3-cbc"],r.exports=DES,l(DES,o),DES.prototype._update=function(r){return _.from(this._des.update(r))},DES.prototype._final=function(){return _.from(this._des.final())}},33719:(r,i)=>{i["des-ecb"]={key:8,iv:0},i["des-cbc"]=i.des={key:8,iv:8},i["des-ede3-cbc"]=i.des3={key:24,iv:8},i["des-ede3"]={key:24,iv:0},i["des-ede-cbc"]={key:16,iv:8},i["des-ede"]={key:16,iv:0}},52967:(r,i,n)=>{var o=n(13039).Buffer,u=n(18486),l=n(65519);function getr(r){var i,n=r.modulus.byteLength();do{i=new u(l(n))}while(i.cmp(r.modulus)>=0||!i.umod(r.prime1)||!i.umod(r.prime2));return i}function crt(r,i){var n=function blind(r){var i=getr(r);return{blinder:i.toRed(u.mont(r.modulus)).redPow(new u(r.publicExponent)).fromRed(),unblinder:i.invm(r.modulus)}}(i),l=i.modulus.byteLength(),_=new u(r).mul(n.blinder).umod(i.modulus),p=_.toRed(u.mont(i.prime1)),b=_.toRed(u.mont(i.prime2)),g=i.coefficient,k=i.prime1,I=i.prime2,x=p.redPow(i.exponent1).fromRed(),j=b.redPow(i.exponent2).fromRed(),q=x.isub(j).imul(g).umod(k).imul(I);return j.iadd(q).imul(n.unblinder).umod(i.modulus).toArrayLike(o,"be",l)}crt.getr=getr,r.exports=crt},8812:(r,i,n)=>{r.exports=n(75207)},72895:(r,i,n)=>{var o=n(38114).Buffer,u=n(22525),l=n(29449),_=n(40137),p=n(99348),b=n(20410),g=n(75207);function Sign(r){l.Writable.call(this);var i=g[r];if(!i)throw new Error("Unknown message digest");this._hashType=i.hash,this._hash=u(i.hash),this._tag=i.id,this._signType=i.sign}function Verify(r){l.Writable.call(this);var i=g[r];if(!i)throw new Error("Unknown message digest");this._hash=u(i.hash),this._tag=i.id,this._signType=i.sign}function createSign(r){return new Sign(r)}function createVerify(r){return new Verify(r)}Object.keys(g).forEach((function(r){g[r].id=o.from(g[r].id,"hex"),g[r.toLowerCase()]=g[r]})),_(Sign,l.Writable),Sign.prototype._write=function _write(r,i,n){this._hash.update(r),n()},Sign.prototype.update=function update(r,i){return"string"==typeof r&&(r=o.from(r,i)),this._hash.update(r),this},Sign.prototype.sign=function signMethod(r,i){this.end();var n=this._hash.digest(),o=p(n,r,this._hashType,this._signType,this._tag);return i?o.toString(i):o},_(Verify,l.Writable),Verify.prototype._write=function _write(r,i,n){this._hash.update(r),n()},Verify.prototype.update=function update(r,i){return"string"==typeof r&&(r=o.from(r,i)),this._hash.update(r),this},Verify.prototype.verify=function verifyMethod(r,i,n){"string"==typeof i&&(i=o.from(i,n)),this.end();var u=this._hash.digest();return b(i,u,r,this._signType,this._tag)},r.exports={Sign:createSign,Verify:createVerify,createSign,createVerify}},99348:(r,i,n)=>{var o=n(38114).Buffer,u=n(97925),l=n(52967),_=n(816).ec,p=n(18486),b=n(47817),g=n(1308);function getKey(r,i,n,l){if((r=o.from(r.toArray())).length0&&n.ishrn(o),n}function makeKey(r,i,n){var l,_;do{for(l=o.alloc(0);8*l.length{var o=n(38114).Buffer,u=n(18486),l=n(816).ec,_=n(47817),p=n(1308);function checkValue(r,i){if(r.cmpn(0)<=0)throw new Error("invalid sig");if(r.cmp(i)>=i)throw new Error("invalid sig")}r.exports=function verify(r,i,n,b,g){var k=_(n);if("ec"===k.type){if("ecdsa"!==b&&"ecdsa/rsa"!==b)throw new Error("wrong public key type");return function ecVerify(r,i,n){var o=p[n.data.algorithm.curve.join(".")];if(!o)throw new Error("unknown curve "+n.data.algorithm.curve.join("."));var u=new l(o),_=n.data.subjectPrivateKey.data;return u.verify(i,r,_)}(r,i,k)}if("dsa"===k.type){if("dsa"!==b)throw new Error("wrong public key type");return function dsaVerify(r,i,n){var o=n.data.p,l=n.data.q,p=n.data.g,b=n.data.pub_key,g=_.signature.decode(r,"der"),k=g.s,I=g.r;checkValue(k,l),checkValue(I,l);var x=u.mont(o),j=k.invm(l);return 0===p.toRed(x).redPow(new u(i).mul(j).mod(l)).fromRed().mul(b.toRed(x).redPow(I.mul(j).mod(l)).fromRed()).mod(o).mod(l).cmp(I)}(r,i,k)}if("rsa"!==b&&"ecdsa/rsa"!==b)throw new Error("wrong public key type");i=o.concat([g,i]);for(var I=k.modulus.byteLength(),x=[1],j=0;i.length+x.length+2{var o=n(13039),u=o.Buffer;function copyProps(r,i){for(var n in r)i[n]=r[n]}function SafeBuffer(r,i,n){return u(r,i,n)}u.from&&u.alloc&&u.allocUnsafe&&u.allocUnsafeSlow?r.exports=o:(copyProps(o,i),i.Buffer=SafeBuffer),SafeBuffer.prototype=Object.create(u.prototype),copyProps(u,SafeBuffer),SafeBuffer.from=function(r,i,n){if("number"==typeof r)throw new TypeError("Argument must not be a number");return u(r,i,n)},SafeBuffer.alloc=function(r,i,n){if("number"!=typeof r)throw new TypeError("Argument must be a number");var o=u(r);return void 0!==i?"string"==typeof n?o.fill(i,n):o.fill(i):o.fill(0),o},SafeBuffer.allocUnsafe=function(r){if("number"!=typeof r)throw new TypeError("Argument must be a number");return u(r)},SafeBuffer.allocUnsafeSlow=function(r){if("number"!=typeof r)throw new TypeError("Argument must be a number");return o.SlowBuffer(r)}},29343:(r,i,n)=>{var o=n(13039).Buffer;r.exports=function xor(r,i){for(var n=Math.min(r.length,i.length),u=new o(n),l=0;l{var o=n(34005),u=n(68865),l="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;i.Buffer=Buffer,i.SlowBuffer=function SlowBuffer(r){+r!=r&&(r=0);return Buffer.alloc(+r)},i.INSPECT_MAX_BYTES=50;var _=2147483647;function createBuffer(r){if(r>_)throw new RangeError('The value "'+r+'" is invalid for option "size"');var i=new Uint8Array(r);return Object.setPrototypeOf(i,Buffer.prototype),i}function Buffer(r,i,n){if("number"==typeof r){if("string"==typeof i)throw new TypeError('The "string" argument must be of type string. Received type number');return allocUnsafe(r)}return from(r,i,n)}function from(r,i,n){if("string"==typeof r)return function fromString(r,i){"string"==typeof i&&""!==i||(i="utf8");if(!Buffer.isEncoding(i))throw new TypeError("Unknown encoding: "+i);var n=0|byteLength(r,i),o=createBuffer(n),u=o.write(r,i);u!==n&&(o=o.slice(0,u));return o}(r,i);if(ArrayBuffer.isView(r))return function fromArrayView(r){if(isInstance(r,Uint8Array)){var i=new Uint8Array(r);return fromArrayBuffer(i.buffer,i.byteOffset,i.byteLength)}return fromArrayLike(r)}(r);if(null==r)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof r);if(isInstance(r,ArrayBuffer)||r&&isInstance(r.buffer,ArrayBuffer))return fromArrayBuffer(r,i,n);if("undefined"!=typeof SharedArrayBuffer&&(isInstance(r,SharedArrayBuffer)||r&&isInstance(r.buffer,SharedArrayBuffer)))return fromArrayBuffer(r,i,n);if("number"==typeof r)throw new TypeError('The "value" argument must not be of type number. Received type number');var o=r.valueOf&&r.valueOf();if(null!=o&&o!==r)return Buffer.from(o,i,n);var u=function fromObject(r){if(Buffer.isBuffer(r)){var i=0|checked(r.length),n=createBuffer(i);return 0===n.length||r.copy(n,0,0,i),n}if(void 0!==r.length)return"number"!=typeof r.length||numberIsNaN(r.length)?createBuffer(0):fromArrayLike(r);if("Buffer"===r.type&&Array.isArray(r.data))return fromArrayLike(r.data)}(r);if(u)return u;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof r[Symbol.toPrimitive])return Buffer.from(r[Symbol.toPrimitive]("string"),i,n);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof r)}function assertSize(r){if("number"!=typeof r)throw new TypeError('"size" argument must be of type number');if(r<0)throw new RangeError('The value "'+r+'" is invalid for option "size"')}function allocUnsafe(r){return assertSize(r),createBuffer(r<0?0:0|checked(r))}function fromArrayLike(r){for(var i=r.length<0?0:0|checked(r.length),n=createBuffer(i),o=0;o=_)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+_.toString(16)+" bytes");return 0|r}function byteLength(r,i){if(Buffer.isBuffer(r))return r.length;if(ArrayBuffer.isView(r)||isInstance(r,ArrayBuffer))return r.byteLength;if("string"!=typeof r)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof r);var n=r.length,o=arguments.length>2&&!0===arguments[2];if(!o&&0===n)return 0;for(var u=!1;;)switch(i){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":return utf8ToBytes(r).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return base64ToBytes(r).length;default:if(u)return o?-1:utf8ToBytes(r).length;i=(""+i).toLowerCase(),u=!0}}function slowToString(r,i,n){var o=!1;if((void 0===i||i<0)&&(i=0),i>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(i>>>=0))return"";for(r||(r="utf8");;)switch(r){case"hex":return hexSlice(this,i,n);case"utf8":case"utf-8":return utf8Slice(this,i,n);case"ascii":return asciiSlice(this,i,n);case"latin1":case"binary":return latin1Slice(this,i,n);case"base64":return base64Slice(this,i,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return utf16leSlice(this,i,n);default:if(o)throw new TypeError("Unknown encoding: "+r);r=(r+"").toLowerCase(),o=!0}}function swap(r,i,n){var o=r[i];r[i]=r[n],r[n]=o}function bidirectionalIndexOf(r,i,n,o,u){if(0===r.length)return-1;if("string"==typeof n?(o=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),numberIsNaN(n=+n)&&(n=u?0:r.length-1),n<0&&(n=r.length+n),n>=r.length){if(u)return-1;n=r.length-1}else if(n<0){if(!u)return-1;n=0}if("string"==typeof i&&(i=Buffer.from(i,o)),Buffer.isBuffer(i))return 0===i.length?-1:arrayIndexOf(r,i,n,o,u);if("number"==typeof i)return i&=255,"function"==typeof Uint8Array.prototype.indexOf?u?Uint8Array.prototype.indexOf.call(r,i,n):Uint8Array.prototype.lastIndexOf.call(r,i,n):arrayIndexOf(r,[i],n,o,u);throw new TypeError("val must be string, number or Buffer")}function arrayIndexOf(r,i,n,o,u){var l,_=1,p=r.length,b=i.length;if(void 0!==o&&("ucs2"===(o=String(o).toLowerCase())||"ucs-2"===o||"utf16le"===o||"utf-16le"===o)){if(r.length<2||i.length<2)return-1;_=2,p/=2,b/=2,n/=2}function read(r,i){return 1===_?r[i]:r.readUInt16BE(i*_)}if(u){var g=-1;for(l=n;lp&&(n=p-b),l=n;l>=0;l--){for(var k=!0,I=0;Iu&&(o=u):o=u;var l=i.length;o>l/2&&(o=l/2);for(var _=0;_>8,u=n%256,l.push(u),l.push(o);return l}(i,r.length-n),r,n,o)}function base64Slice(r,i,n){return 0===i&&n===r.length?o.fromByteArray(r):o.fromByteArray(r.slice(i,n))}function utf8Slice(r,i,n){n=Math.min(r.length,n);for(var o=[],u=i;u239?4:k>223?3:k>191?2:1;if(u+x<=n)switch(x){case 1:k<128&&(I=k);break;case 2:128==(192&(l=r[u+1]))&&(g=(31&k)<<6|63&l)>127&&(I=g);break;case 3:l=r[u+1],_=r[u+2],128==(192&l)&&128==(192&_)&&(g=(15&k)<<12|(63&l)<<6|63&_)>2047&&(g<55296||g>57343)&&(I=g);break;case 4:l=r[u+1],_=r[u+2],b=r[u+3],128==(192&l)&&128==(192&_)&&128==(192&b)&&(g=(15&k)<<18|(63&l)<<12|(63&_)<<6|63&b)>65535&&g<1114112&&(I=g)}null===I?(I=65533,x=1):I>65535&&(I-=65536,o.push(I>>>10&1023|55296),I=56320|1023&I),o.push(I),u+=x}return function decodeCodePointsArray(r){var i=r.length;if(i<=p)return String.fromCharCode.apply(String,r);var n="",o=0;for(;oo.length?Buffer.from(l).copy(o,u):Uint8Array.prototype.set.call(o,l,u);else{if(!Buffer.isBuffer(l))throw new TypeError('"list" argument must be an Array of Buffers');l.copy(o,u)}u+=l.length}return o},Buffer.byteLength=byteLength,Buffer.prototype._isBuffer=!0,Buffer.prototype.swap16=function swap16(){var r=this.length;if(r%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var i=0;in&&(r+=" ... "),""},l&&(Buffer.prototype[l]=Buffer.prototype.inspect),Buffer.prototype.compare=function compare(r,i,n,o,u){if(isInstance(r,Uint8Array)&&(r=Buffer.from(r,r.offset,r.byteLength)),!Buffer.isBuffer(r))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof r);if(void 0===i&&(i=0),void 0===n&&(n=r?r.length:0),void 0===o&&(o=0),void 0===u&&(u=this.length),i<0||n>r.length||o<0||u>this.length)throw new RangeError("out of range index");if(o>=u&&i>=n)return 0;if(o>=u)return-1;if(i>=n)return 1;if(this===r)return 0;for(var l=(u>>>=0)-(o>>>=0),_=(n>>>=0)-(i>>>=0),p=Math.min(l,_),b=this.slice(o,u),g=r.slice(i,n),k=0;k>>=0,isFinite(n)?(n>>>=0,void 0===o&&(o="utf8")):(o=n,n=void 0)}var u=this.length-i;if((void 0===n||n>u)&&(n=u),r.length>0&&(n<0||i<0)||i>this.length)throw new RangeError("Attempt to write outside buffer bounds");o||(o="utf8");for(var l=!1;;)switch(o){case"hex":return hexWrite(this,r,i,n);case"utf8":case"utf-8":return utf8Write(this,r,i,n);case"ascii":case"latin1":case"binary":return asciiWrite(this,r,i,n);case"base64":return base64Write(this,r,i,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ucs2Write(this,r,i,n);default:if(l)throw new TypeError("Unknown encoding: "+o);o=(""+o).toLowerCase(),l=!0}},Buffer.prototype.toJSON=function toJSON(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var p=4096;function asciiSlice(r,i,n){var o="";n=Math.min(r.length,n);for(var u=i;uo)&&(n=o);for(var u="",l=i;ln)throw new RangeError("Trying to access beyond buffer length")}function checkInt(r,i,n,o,u,l){if(!Buffer.isBuffer(r))throw new TypeError('"buffer" argument must be a Buffer instance');if(i>u||ir.length)throw new RangeError("Index out of range")}function checkIEEE754(r,i,n,o,u,l){if(n+o>r.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function writeFloat(r,i,n,o,l){return i=+i,n>>>=0,l||checkIEEE754(r,0,n,4),u.write(r,i,n,o,23,4),n+4}function writeDouble(r,i,n,o,l){return i=+i,n>>>=0,l||checkIEEE754(r,0,n,8),u.write(r,i,n,o,52,8),n+8}Buffer.prototype.slice=function slice(r,i){var n=this.length;(r=~~r)<0?(r+=n)<0&&(r=0):r>n&&(r=n),(i=void 0===i?n:~~i)<0?(i+=n)<0&&(i=0):i>n&&(i=n),i>>=0,i>>>=0,n||checkOffset(r,i,this.length);for(var o=this[r],u=1,l=0;++l>>=0,i>>>=0,n||checkOffset(r,i,this.length);for(var o=this[r+--i],u=1;i>0&&(u*=256);)o+=this[r+--i]*u;return o},Buffer.prototype.readUint8=Buffer.prototype.readUInt8=function readUInt8(r,i){return r>>>=0,i||checkOffset(r,1,this.length),this[r]},Buffer.prototype.readUint16LE=Buffer.prototype.readUInt16LE=function readUInt16LE(r,i){return r>>>=0,i||checkOffset(r,2,this.length),this[r]|this[r+1]<<8},Buffer.prototype.readUint16BE=Buffer.prototype.readUInt16BE=function readUInt16BE(r,i){return r>>>=0,i||checkOffset(r,2,this.length),this[r]<<8|this[r+1]},Buffer.prototype.readUint32LE=Buffer.prototype.readUInt32LE=function readUInt32LE(r,i){return r>>>=0,i||checkOffset(r,4,this.length),(this[r]|this[r+1]<<8|this[r+2]<<16)+16777216*this[r+3]},Buffer.prototype.readUint32BE=Buffer.prototype.readUInt32BE=function readUInt32BE(r,i){return r>>>=0,i||checkOffset(r,4,this.length),16777216*this[r]+(this[r+1]<<16|this[r+2]<<8|this[r+3])},Buffer.prototype.readIntLE=function readIntLE(r,i,n){r>>>=0,i>>>=0,n||checkOffset(r,i,this.length);for(var o=this[r],u=1,l=0;++l=(u*=128)&&(o-=Math.pow(2,8*i)),o},Buffer.prototype.readIntBE=function readIntBE(r,i,n){r>>>=0,i>>>=0,n||checkOffset(r,i,this.length);for(var o=i,u=1,l=this[r+--o];o>0&&(u*=256);)l+=this[r+--o]*u;return l>=(u*=128)&&(l-=Math.pow(2,8*i)),l},Buffer.prototype.readInt8=function readInt8(r,i){return r>>>=0,i||checkOffset(r,1,this.length),128&this[r]?-1*(255-this[r]+1):this[r]},Buffer.prototype.readInt16LE=function readInt16LE(r,i){r>>>=0,i||checkOffset(r,2,this.length);var n=this[r]|this[r+1]<<8;return 32768&n?4294901760|n:n},Buffer.prototype.readInt16BE=function readInt16BE(r,i){r>>>=0,i||checkOffset(r,2,this.length);var n=this[r+1]|this[r]<<8;return 32768&n?4294901760|n:n},Buffer.prototype.readInt32LE=function readInt32LE(r,i){return r>>>=0,i||checkOffset(r,4,this.length),this[r]|this[r+1]<<8|this[r+2]<<16|this[r+3]<<24},Buffer.prototype.readInt32BE=function readInt32BE(r,i){return r>>>=0,i||checkOffset(r,4,this.length),this[r]<<24|this[r+1]<<16|this[r+2]<<8|this[r+3]},Buffer.prototype.readFloatLE=function readFloatLE(r,i){return r>>>=0,i||checkOffset(r,4,this.length),u.read(this,r,!0,23,4)},Buffer.prototype.readFloatBE=function readFloatBE(r,i){return r>>>=0,i||checkOffset(r,4,this.length),u.read(this,r,!1,23,4)},Buffer.prototype.readDoubleLE=function readDoubleLE(r,i){return r>>>=0,i||checkOffset(r,8,this.length),u.read(this,r,!0,52,8)},Buffer.prototype.readDoubleBE=function readDoubleBE(r,i){return r>>>=0,i||checkOffset(r,8,this.length),u.read(this,r,!1,52,8)},Buffer.prototype.writeUintLE=Buffer.prototype.writeUIntLE=function writeUIntLE(r,i,n,o){(r=+r,i>>>=0,n>>>=0,o)||checkInt(this,r,i,n,Math.pow(2,8*n)-1,0);var u=1,l=0;for(this[i]=255&r;++l>>=0,n>>>=0,o)||checkInt(this,r,i,n,Math.pow(2,8*n)-1,0);var u=n-1,l=1;for(this[i+u]=255&r;--u>=0&&(l*=256);)this[i+u]=r/l&255;return i+n},Buffer.prototype.writeUint8=Buffer.prototype.writeUInt8=function writeUInt8(r,i,n){return r=+r,i>>>=0,n||checkInt(this,r,i,1,255,0),this[i]=255&r,i+1},Buffer.prototype.writeUint16LE=Buffer.prototype.writeUInt16LE=function writeUInt16LE(r,i,n){return r=+r,i>>>=0,n||checkInt(this,r,i,2,65535,0),this[i]=255&r,this[i+1]=r>>>8,i+2},Buffer.prototype.writeUint16BE=Buffer.prototype.writeUInt16BE=function writeUInt16BE(r,i,n){return r=+r,i>>>=0,n||checkInt(this,r,i,2,65535,0),this[i]=r>>>8,this[i+1]=255&r,i+2},Buffer.prototype.writeUint32LE=Buffer.prototype.writeUInt32LE=function writeUInt32LE(r,i,n){return r=+r,i>>>=0,n||checkInt(this,r,i,4,4294967295,0),this[i+3]=r>>>24,this[i+2]=r>>>16,this[i+1]=r>>>8,this[i]=255&r,i+4},Buffer.prototype.writeUint32BE=Buffer.prototype.writeUInt32BE=function writeUInt32BE(r,i,n){return r=+r,i>>>=0,n||checkInt(this,r,i,4,4294967295,0),this[i]=r>>>24,this[i+1]=r>>>16,this[i+2]=r>>>8,this[i+3]=255&r,i+4},Buffer.prototype.writeIntLE=function writeIntLE(r,i,n,o){if(r=+r,i>>>=0,!o){var u=Math.pow(2,8*n-1);checkInt(this,r,i,n,u-1,-u)}var l=0,_=1,p=0;for(this[i]=255&r;++l>0)-p&255;return i+n},Buffer.prototype.writeIntBE=function writeIntBE(r,i,n,o){if(r=+r,i>>>=0,!o){var u=Math.pow(2,8*n-1);checkInt(this,r,i,n,u-1,-u)}var l=n-1,_=1,p=0;for(this[i+l]=255&r;--l>=0&&(_*=256);)r<0&&0===p&&0!==this[i+l+1]&&(p=1),this[i+l]=(r/_>>0)-p&255;return i+n},Buffer.prototype.writeInt8=function writeInt8(r,i,n){return r=+r,i>>>=0,n||checkInt(this,r,i,1,127,-128),r<0&&(r=255+r+1),this[i]=255&r,i+1},Buffer.prototype.writeInt16LE=function writeInt16LE(r,i,n){return r=+r,i>>>=0,n||checkInt(this,r,i,2,32767,-32768),this[i]=255&r,this[i+1]=r>>>8,i+2},Buffer.prototype.writeInt16BE=function writeInt16BE(r,i,n){return r=+r,i>>>=0,n||checkInt(this,r,i,2,32767,-32768),this[i]=r>>>8,this[i+1]=255&r,i+2},Buffer.prototype.writeInt32LE=function writeInt32LE(r,i,n){return r=+r,i>>>=0,n||checkInt(this,r,i,4,2147483647,-2147483648),this[i]=255&r,this[i+1]=r>>>8,this[i+2]=r>>>16,this[i+3]=r>>>24,i+4},Buffer.prototype.writeInt32BE=function writeInt32BE(r,i,n){return r=+r,i>>>=0,n||checkInt(this,r,i,4,2147483647,-2147483648),r<0&&(r=4294967295+r+1),this[i]=r>>>24,this[i+1]=r>>>16,this[i+2]=r>>>8,this[i+3]=255&r,i+4},Buffer.prototype.writeFloatLE=function writeFloatLE(r,i,n){return writeFloat(this,r,i,!0,n)},Buffer.prototype.writeFloatBE=function writeFloatBE(r,i,n){return writeFloat(this,r,i,!1,n)},Buffer.prototype.writeDoubleLE=function writeDoubleLE(r,i,n){return writeDouble(this,r,i,!0,n)},Buffer.prototype.writeDoubleBE=function writeDoubleBE(r,i,n){return writeDouble(this,r,i,!1,n)},Buffer.prototype.copy=function copy(r,i,n,o){if(!Buffer.isBuffer(r))throw new TypeError("argument should be a Buffer");if(n||(n=0),o||0===o||(o=this.length),i>=r.length&&(i=r.length),i||(i=0),o>0&&o=this.length)throw new RangeError("Index out of range");if(o<0)throw new RangeError("sourceEnd out of bounds");o>this.length&&(o=this.length),r.length-i>>=0,n=void 0===n?this.length:n>>>0,r||(r=0),"number"==typeof r)for(l=i;l55295&&n<57344){if(!u){if(n>56319){(i-=3)>-1&&l.push(239,191,189);continue}if(_+1===o){(i-=3)>-1&&l.push(239,191,189);continue}u=n;continue}if(n<56320){(i-=3)>-1&&l.push(239,191,189),u=n;continue}n=65536+(u-55296<<10|n-56320)}else u&&(i-=3)>-1&&l.push(239,191,189);if(u=null,n<128){if((i-=1)<0)break;l.push(n)}else if(n<2048){if((i-=2)<0)break;l.push(n>>6|192,63&n|128)}else if(n<65536){if((i-=3)<0)break;l.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((i-=4)<0)break;l.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return l}function base64ToBytes(r){return o.toByteArray(function base64clean(r){if((r=(r=r.split("=")[0]).trim().replace(b,"")).length<2)return"";for(;r.length%4!=0;)r+="=";return r}(r))}function blitBuffer(r,i,n,o){for(var u=0;u=i.length||u>=r.length);++u)i[u+n]=r[u];return u}function isInstance(r,i){return r instanceof i||null!=r&&null!=r.constructor&&null!=r.constructor.name&&r.constructor.name===i.name}function numberIsNaN(r){return r!=r}var g=function(){for(var r="0123456789abcdef",i=new Array(256),n=0;n<16;++n)for(var o=16*n,u=0;u<16;++u)i[o+u]=r[n]+r[u];return i}()},92440:(r,i,n)=>{var o=n(7370),u=n(64239),l=u(o("String.prototype.indexOf"));r.exports=function callBoundIntrinsic(r,i){var n=o(r,!!i);return"function"==typeof n&&l(r,".prototype.")>-1?u(n):n}},64239:(r,i,n)=>{var o=n(65120),u=n(7370),l=u("%Function.prototype.apply%"),_=u("%Function.prototype.call%"),p=u("%Reflect.apply%",!0)||o.call(_,l),b=u("%Object.getOwnPropertyDescriptor%",!0),g=u("%Object.defineProperty%",!0),k=u("%Math.max%");if(g)try{g({},"a",{value:1})}catch(x){g=null}r.exports=function callBind(r){var i=p(o,_,arguments);if(b&&g){var n=b(i,"length");n.configurable&&g(i,"length",{value:1+k(0,r.length-(arguments.length-1))})}return i};var I=function applyBind(){return p(o,l,arguments)};g?g(r.exports,"apply",{value:I}):r.exports.apply=I},59618:(r,i,n)=>{var o=n(65955).Buffer,u=n(67004).Transform,l=n(6923).s;function CipherBase(r){u.call(this),this.hashMode="string"==typeof r,this.hashMode?this[r]=this._finalOrDigest:this.final=this._finalOrDigest,this._final&&(this.__final=this._final,this._final=null),this._decoder=null,this._encoding=null}n(40137)(CipherBase,u),CipherBase.prototype.update=function(r,i,n){"string"==typeof r&&(r=o.from(r,i));var u=this._update(r);return this.hashMode?this:(n&&(u=this._toString(u,n)),u)},CipherBase.prototype.setAutoPadding=function(){},CipherBase.prototype.getAuthTag=function(){throw new Error("trying to get auth tag in unsupported state")},CipherBase.prototype.setAuthTag=function(){throw new Error("trying to set auth tag in unsupported state")},CipherBase.prototype.setAAD=function(){throw new Error("trying to set aad in unsupported state")},CipherBase.prototype._transform=function(r,i,n){var o;try{this.hashMode?this._update(r):this.push(this._update(r))}catch(u){o=u}finally{n(o)}},CipherBase.prototype._flush=function(r){var i;try{this.push(this.__final())}catch(n){i=n}r(i)},CipherBase.prototype._finalOrDigest=function(r){var i=this.__final()||o.alloc(0);return r&&(i=this._toString(i,r,!0)),i},CipherBase.prototype._toString=function(r,i,n){if(this._decoder||(this._decoder=new l(i),this._encoding=i),this._encoding!==i)throw new Error("can't switch encodings");var o=this._decoder.write(r);return n&&(o+=this._decoder.end()),o},r.exports=CipherBase},99821:function(r,i){var n,o,u;o=[],void 0===(u="function"==typeof(n=function(){var r=/^v?(?:\d+)(\.(?:[x*]|\d+)(\.(?:[x*]|\d+)(\.(?:[x*]|\d+))?(?:-[\da-z\-]+(?:\.[\da-z\-]+)*)?(?:\+[\da-z\-]+(?:\.[\da-z\-]+)*)?)?)?$/i;function indexOrEnd(r,i){return-1===r.indexOf(i)?r.length:r.indexOf(i)}function split(r){var i=r.replace(/^v/,"").replace(/\+.*$/,""),n=indexOrEnd(i,"-"),o=i.substring(0,n).split(".");return o.push(i.substring(n+1)),o}function tryParse(r){return isNaN(Number(r))?r:Number(r)}function validate(i){if("string"!=typeof i)throw new TypeError("Invalid argument expected string");if(!r.test(i))throw new Error("Invalid argument not valid semver ('"+i+"' received)")}function compareVersions(r,i){[r,i].forEach(validate);for(var n=split(r),o=split(i),u=0;u_)return 1;if(_>l)return-1}var p=n[n.length-1],b=o[o.length-1];if(p&&b){var g=p.split(".").map(tryParse),k=b.split(".").map(tryParse);for(u=0;uk[u])return 1;if(k[u]>g[u])return-1}}else if(p||b)return p?-1:1;return 0}var i=[">",">=","=","<","<="],n={">":[1],">=":[0,1],"=":[0],"<=":[-1,0],"<":[-1]};function validateOperator(r){if("string"!=typeof r)throw new TypeError("Invalid operator type, expected string but got "+typeof r);if(-1===i.indexOf(r))throw new TypeError("Invalid operator, expected one of "+i.join("|"))}return compareVersions.validate=function(i){return"string"==typeof i&&r.test(i)},compareVersions.compare=function(r,i,o){validateOperator(o);var u=compareVersions(r,i);return n[o].indexOf(u)>-1},compareVersions})?n.apply(i,o):n)||(r.exports=u)},19564:(r,i,n)=>{var o=n(3084);r.exports=o},89003:(r,i,n)=>{var o=n(99329);r.exports=o},59389:(r,i,n)=>{var o=n(55094);r.exports=o},37050:(r,i,n)=>{var o=n(13048);r.exports=o},74461:(r,i,n)=>{var o=n(15579);r.exports=o},87730:(r,i,n)=>{n(25036),n(9586);var o=n(36917);r.exports=o("Array","flatMap")},55018:(r,i,n)=>{n(47195),n(34540);var o=n(36917);r.exports=o("Array","flat")},85792:(r,i,n)=>{n(64701);var o=n(23034);r.exports=o.Object.entries},99035:(r,i,n)=>{n(55574);var o=n(23034);r.exports=o.Object.values},94626:(r,i,n)=>{var o=n(19564);r.exports=o},9141:(r,i,n)=>{var o=n(89003);r.exports=o},69894:(r,i,n)=>{var o=n(59389);r.exports=o},60612:(r,i,n)=>{var o=n(37050);r.exports=o},8794:(r,i,n)=>{var o=n(74461);r.exports=o},86173:(r,i,n)=>{var o=n(32022),u=n(34028),l=n(84160),_=o.TypeError;r.exports=function(r){if(u(r))return r;throw _(l(r)+" is not a function")}},41684:(r,i,n)=>{var o=n(32022),u=n(34028),l=o.String,_=o.TypeError;r.exports=function(r){if("object"==typeof r||u(r))return r;throw _("Can't set "+l(r)+" as a prototype")}},47512:(r,i,n)=>{var o=n(30191),u=n(13250),l=n(43087),_=o("unscopables"),p=Array.prototype;null==p[_]&&l.f(p,_,{configurable:!0,value:u(null)}),r.exports=function(r){p[_][r]=!0}},39837:(r,i,n)=>{var o=n(32022),u=n(27357),l=o.TypeError;r.exports=function(r,i){if(u(i,r))return r;throw l("Incorrect invocation")}},52546:(r,i,n)=>{var o=n(32022),u=n(51355),l=o.String,_=o.TypeError;r.exports=function(r){if(u(r))return r;throw _(l(r)+" is not an object")}},78035:(r,i,n)=>{var o=n(58326),u=n(86593),l=n(84117),createMethod=function(r){return function(i,n,_){var p,b=o(i),g=l(b),k=u(_,g);if(r&&n!=n){for(;g>k;)if((p=b[k++])!=p)return!0}else for(;g>k;k++)if((r||k in b)&&b[k]===n)return r||k||0;return!r&&-1}};r.exports={includes:createMethod(!0),indexOf:createMethod(!1)}},42893:(r,i,n)=>{var o=n(32022),u=n(86593),l=n(84117),_=n(19402),p=o.Array,b=Math.max;r.exports=function(r,i,n){for(var o=l(r),g=u(i,o),k=u(void 0===n?o:n,o),I=p(b(k-g,0)),x=0;g{var o=n(42893),u=Math.floor,mergeSort=function(r,i){var n=r.length,l=u(n/2);return n<8?insertionSort(r,i):merge(r,mergeSort(o(r,0,l),i),mergeSort(o(r,l),i),i)},insertionSort=function(r,i){for(var n,o,u=r.length,l=1;l0;)r[o]=r[--o];o!==l++&&(r[o]=n)}return r},merge=function(r,i,n,o){for(var u=i.length,l=n.length,_=0,p=0;_{var o=n(32022),u=n(65351),l=n(78449),_=n(51355),p=n(30191)("species"),b=o.Array;r.exports=function(r){var i;return u(r)&&(i=r.constructor,(l(i)&&(i===b||u(i.prototype))||_(i)&&null===(i=i[p]))&&(i=void 0)),void 0===i?b:i}},74842:(r,i,n)=>{var o=n(78502);r.exports=function(r,i){return new(o(r))(0===i?0:i)}},39523:(r,i,n)=>{var o=n(59913),u=o({}.toString),l=o("".slice);r.exports=function(r){return l(u(r),8,-1)}},82814:(r,i,n)=>{var o=n(32022),u=n(77568),l=n(34028),_=n(39523),p=n(30191)("toStringTag"),b=o.Object,g="Arguments"==_(function(){return arguments}());r.exports=u?_:function(r){var i,n,o;return void 0===r?"Undefined":null===r?"Null":"string"==typeof(n=function(r,i){try{return r[i]}catch(n){}}(i=b(r),p))?n:g?_(i):"Object"==(o=_(i))&&l(i.callee)?"Arguments":o}},74953:(r,i,n)=>{var o=n(98511),u=n(91537),l=n(66213),_=n(43087);r.exports=function(r,i,n){for(var p=u(i),b=_.f,g=l.f,k=0;k{var o=n(38986);r.exports=!o((function(){function F(){}return F.prototype.constructor=null,Object.getPrototypeOf(new F)!==F.prototype}))},62753:(r,i,n)=>{var o=n(10798).IteratorPrototype,u=n(13250),l=n(71111),_=n(27747),p=n(13766),returnThis=function(){return this};r.exports=function(r,i,n,b){var g=i+" Iterator";return r.prototype=u(o,{next:l(+!b,n)}),_(r,g,!1,!0),p[g]=returnThis,r}},22775:(r,i,n)=>{var o=n(12115),u=n(43087),l=n(71111);r.exports=o?function(r,i,n){return u.f(r,i,l(1,n))}:function(r,i,n){return r[i]=n,r}},71111:r=>{r.exports=function(r,i){return{enumerable:!(1&r),configurable:!(2&r),writable:!(4&r),value:i}}},19402:(r,i,n)=>{var o=n(79127),u=n(43087),l=n(71111);r.exports=function(r,i,n){var _=o(i);_ in r?u.f(r,_,l(0,n)):r[_]=n}},92665:(r,i,n)=>{var o=n(54635),u=n(49425),l=n(68546),_=n(27765),p=n(34028),b=n(62753),g=n(75783),k=n(25466),I=n(27747),x=n(22775),j=n(5048),q=n(30191),Y=n(13766),$=n(10798),J=_.PROPER,te=_.CONFIGURABLE,re=$.IteratorPrototype,ie=$.BUGGY_SAFARI_ITERATORS,ne=q("iterator"),ae="keys",oe="values",se="entries",returnThis=function(){return this};r.exports=function(r,i,n,_,q,$,de){b(n,i,_);var ce,ue,le,getIterationMethod=function(r){if(r===q&&me)return me;if(!ie&&r in he)return he[r];switch(r){case ae:return function keys(){return new n(this,r)};case oe:return function values(){return new n(this,r)};case se:return function entries(){return new n(this,r)}}return function(){return new n(this)}},_e=i+" Iterator",pe=!1,he=r.prototype,fe=he[ne]||he["@@iterator"]||q&&he[q],me=!ie&&fe||getIterationMethod(q),be="Array"==i&&he.entries||fe;if(be&&(ce=g(be.call(new r)))!==Object.prototype&&ce.next&&(l||g(ce)===re||(k?k(ce,re):p(ce[ne])||j(ce,ne,returnThis)),I(ce,_e,!0,!0),l&&(Y[_e]=returnThis)),J&&q==oe&&fe&&fe.name!==oe&&(!l&&te?x(he,"name",oe):(pe=!0,me=function values(){return u(fe,this)})),q)if(ue={values:getIterationMethod(oe),keys:$?me:getIterationMethod(ae),entries:getIterationMethod(se)},de)for(le in ue)(ie||pe||!(le in he))&&j(he,le,ue[le]);else o({target:i,proto:!0,forced:ie||pe},ue);return l&&!de||he[ne]===me||j(he,ne,me,{name:q}),Y[i]=me,ue}},12115:(r,i,n)=>{var o=n(38986);r.exports=!o((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},82985:(r,i,n)=>{var o=n(32022),u=n(51355),l=o.document,_=u(l)&&u(l.createElement);r.exports=function(r){return _?l.createElement(r):{}}},66910:r=>{r.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},73391:(r,i,n)=>{var o=n(82985)("span").classList,u=o&&o.constructor&&o.constructor.prototype;r.exports=u===Object.prototype?void 0:u},30727:(r,i,n)=>{var o=n(83155);r.exports=o("navigator","userAgent")||""},80714:(r,i,n)=>{var o,u,l=n(32022),_=n(30727),p=l.process,b=l.Deno,g=p&&p.versions||b&&b.version,k=g&&g.v8;k&&(u=(o=k.split("."))[0]>0&&o[0]<4?1:+(o[0]+o[1])),!u&&_&&(!(o=_.match(/Edge\/(\d+)/))||o[1]>=74)&&(o=_.match(/Chrome\/(\d+)/))&&(u=+o[1]),r.exports=u},36917:(r,i,n)=>{var o=n(32022),u=n(59913);r.exports=function(r,i){return u(o[r].prototype[i])}},26100:r=>{r.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},54635:(r,i,n)=>{var o=n(32022),u=n(66213).f,l=n(22775),_=n(5048),p=n(33096),b=n(74953),g=n(77987);r.exports=function(r,i){var n,k,I,x,j,q=r.target,Y=r.global,$=r.stat;if(n=Y?o:$?o[q]||p(q,{}):(o[q]||{}).prototype)for(k in i){if(x=i[k],I=r.noTargetGet?(j=u(n,k))&&j.value:n[k],!g(Y?k:q+($?".":"#")+k,r.forced)&&void 0!==I){if(typeof x==typeof I)continue;b(x,I)}(r.sham||I&&I.sham)&&l(x,"sham",!0),_(n,k,x,r)}}},38986:r=>{r.exports=function(r){try{return!!r()}catch(i){return!0}}},47484:(r,i,n)=>{var o=n(32022),u=n(65351),l=n(84117),_=n(80391),p=o.TypeError,flattenIntoArray=function(r,i,n,o,b,g,k,I){for(var x,j,q=b,Y=0,$=!!k&&_(k,I);Y0&&u(x))j=l(x),q=flattenIntoArray(r,i,x,j,q,g-1)-1;else{if(q>=9007199254740991)throw p("Exceed the acceptable array length");r[q]=x}q++}Y++}return q};r.exports=flattenIntoArray},80391:(r,i,n)=>{var o=n(59913),u=n(86173),l=n(74959),_=o(o.bind);r.exports=function(r,i){return u(r),void 0===i?r:l?_(r,i):function(){return r.apply(i,arguments)}}},74959:(r,i,n)=>{var o=n(38986);r.exports=!o((function(){var r=function(){}.bind();return"function"!=typeof r||r.hasOwnProperty("prototype")}))},49425:(r,i,n)=>{var o=n(74959),u=Function.prototype.call;r.exports=o?u.bind(u):function(){return u.apply(u,arguments)}},27765:(r,i,n)=>{var o=n(12115),u=n(98511),l=Function.prototype,_=o&&Object.getOwnPropertyDescriptor,p=u(l,"name"),b=p&&"something"===function something(){}.name,g=p&&(!o||o&&_(l,"name").configurable);r.exports={EXISTS:p,PROPER:b,CONFIGURABLE:g}},59913:(r,i,n)=>{var o=n(74959),u=Function.prototype,l=u.bind,_=u.call,p=o&&l.bind(_,_);r.exports=o?function(r){return r&&p(r)}:function(r){return r&&function(){return _.apply(r,arguments)}}},83155:(r,i,n)=>{var o=n(32022),u=n(34028),aFunction=function(r){return u(r)?r:void 0};r.exports=function(r,i){return arguments.length<2?aFunction(o[r]):o[r]&&o[r][i]}},6897:(r,i,n)=>{var o=n(82814),u=n(34040),l=n(13766),_=n(30191)("iterator");r.exports=function(r){if(null!=r)return u(r,_)||u(r,"@@iterator")||l[o(r)]}},32057:(r,i,n)=>{var o=n(32022),u=n(49425),l=n(86173),_=n(52546),p=n(84160),b=n(6897),g=o.TypeError;r.exports=function(r,i){var n=arguments.length<2?b(r):i;if(l(n))return _(u(n,r));throw g(p(r)+" is not iterable")}},34040:(r,i,n)=>{var o=n(86173);r.exports=function(r,i){var n=r[i];return null==n?void 0:o(n)}},32022:(r,i,n)=>{var check=function(r){return r&&r.Math==Math&&r};r.exports=check("object"==typeof globalThis&&globalThis)||check("object"==typeof window&&window)||check("object"==typeof self&&self)||check("object"==typeof n.g&&n.g)||function(){return this}()||Function("return this")()},98511:(r,i,n)=>{var o=n(59913),u=n(47137),l=o({}.hasOwnProperty);r.exports=Object.hasOwn||function hasOwn(r,i){return l(u(r),i)}},17307:r=>{r.exports={}},86419:(r,i,n)=>{var o=n(83155);r.exports=o("document","documentElement")},2159:(r,i,n)=>{var o=n(12115),u=n(38986),l=n(82985);r.exports=!o&&!u((function(){return 7!=Object.defineProperty(l("div"),"a",{get:function(){return 7}}).a}))},94032:(r,i,n)=>{var o=n(32022),u=n(59913),l=n(38986),_=n(39523),p=o.Object,b=u("".split);r.exports=l((function(){return!p("z").propertyIsEnumerable(0)}))?function(r){return"String"==_(r)?b(r,""):p(r)}:p},46169:(r,i,n)=>{var o=n(59913),u=n(34028),l=n(43349),_=o(Function.toString);u(l.inspectSource)||(l.inspectSource=function(r){return _(r)}),r.exports=l.inspectSource},78045:(r,i,n)=>{var o,u,l,_=n(26507),p=n(32022),b=n(59913),g=n(51355),k=n(22775),I=n(98511),x=n(43349),j=n(57186),q=n(17307),Y="Object already initialized",$=p.TypeError,J=p.WeakMap;if(_||x.state){var te=x.state||(x.state=new J),re=b(te.get),ie=b(te.has),ne=b(te.set);o=function(r,i){if(ie(te,r))throw new $(Y);return i.facade=r,ne(te,r,i),i},u=function(r){return re(te,r)||{}},l=function(r){return ie(te,r)}}else{var ae=j("state");q[ae]=!0,o=function(r,i){if(I(r,ae))throw new $(Y);return i.facade=r,k(r,ae,i),i},u=function(r){return I(r,ae)?r[ae]:{}},l=function(r){return I(r,ae)}}r.exports={set:o,get:u,has:l,enforce:function(r){return l(r)?u(r):o(r,{})},getterFor:function(r){return function(i){var n;if(!g(i)||(n=u(i)).type!==r)throw $("Incompatible receiver, "+r+" required");return n}}}},65351:(r,i,n)=>{var o=n(39523);r.exports=Array.isArray||function isArray(r){return"Array"==o(r)}},34028:r=>{r.exports=function(r){return"function"==typeof r}},78449:(r,i,n)=>{var o=n(59913),u=n(38986),l=n(34028),_=n(82814),p=n(83155),b=n(46169),noop=function(){},g=[],k=p("Reflect","construct"),I=/^\s*(?:class|function)\b/,x=o(I.exec),j=!I.exec(noop),q=function isConstructor(r){if(!l(r))return!1;try{return k(noop,g,r),!0}catch(i){return!1}},Y=function isConstructor(r){if(!l(r))return!1;switch(_(r)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return j||!!x(I,b(r))}catch(i){return!0}};Y.sham=!0,r.exports=!k||u((function(){var r;return q(q.call)||!q(Object)||!q((function(){r=!0}))||r}))?Y:q},77987:(r,i,n)=>{var o=n(38986),u=n(34028),l=/#|\.prototype\./,isForced=function(r,i){var n=p[_(r)];return n==g||n!=b&&(u(i)?o(i):!!i)},_=isForced.normalize=function(r){return String(r).replace(l,".").toLowerCase()},p=isForced.data={},b=isForced.NATIVE="N",g=isForced.POLYFILL="P";r.exports=isForced},51355:(r,i,n)=>{var o=n(34028);r.exports=function(r){return"object"==typeof r?null!==r:o(r)}},68546:r=>{r.exports=!1},24505:(r,i,n)=>{var o=n(32022),u=n(83155),l=n(34028),_=n(27357),p=n(78590),b=o.Object;r.exports=p?function(r){return"symbol"==typeof r}:function(r){var i=u("Symbol");return l(i)&&_(i.prototype,b(r))}},10798:(r,i,n)=>{var o,u,l,_=n(38986),p=n(34028),b=n(13250),g=n(75783),k=n(5048),I=n(30191),x=n(68546),j=I("iterator"),q=!1;[].keys&&("next"in(l=[].keys())?(u=g(g(l)))!==Object.prototype&&(o=u):q=!0),null==o||_((function(){var r={};return o[j].call(r)!==r}))?o={}:x&&(o=b(o)),p(o[j])||k(o,j,(function(){return this})),r.exports={IteratorPrototype:o,BUGGY_SAFARI_ITERATORS:q}},13766:r=>{r.exports={}},84117:(r,i,n)=>{var o=n(9375);r.exports=function(r){return o(r.length)}},92113:(r,i,n)=>{var o=n(80714),u=n(38986);r.exports=!!Object.getOwnPropertySymbols&&!u((function(){var r=Symbol();return!String(r)||!(Object(r)instanceof Symbol)||!Symbol.sham&&o&&o<41}))},45733:(r,i,n)=>{var o=n(38986),u=n(30191),l=n(68546),_=u("iterator");r.exports=!o((function(){var r=new URL("b?a=1&b=2&c=3","http://a"),i=r.searchParams,n="";return r.pathname="c%20d",i.forEach((function(r,o){i.delete("b"),n+=o+r})),l&&!r.toJSON||!i.sort||"http://a/c%20d?a=1&c=3"!==r.href||"3"!==i.get("c")||"a=1"!==String(new URLSearchParams("?a=1"))||!i[_]||"a"!==new URL("https://a@b").username||"b"!==new URLSearchParams(new URLSearchParams("a=b")).get("a")||"xn--e1aybc"!==new URL("http://тест").host||"#%D0%B1"!==new URL("http://a#б").hash||"a1c3"!==n||"x"!==new URL("http://x",void 0).host}))},26507:(r,i,n)=>{var o=n(32022),u=n(34028),l=n(46169),_=o.WeakMap;r.exports=u(_)&&/native code/.test(l(_))},13250:(r,i,n)=>{var o,u=n(52546),l=n(13330),_=n(26100),p=n(17307),b=n(86419),g=n(82985),k=n(57186),I=k("IE_PROTO"),EmptyConstructor=function(){},scriptTag=function(r){return"