(this.csbJsonP=this.csbJsonP||[]).push([["vendors~postcss-compiler"],{"../../node_modules/asn1.js/lib/asn1.js":function(t,e,i){var r=e;r.bignum=i("../../node_modules/bn.js/lib/bn.js"),r.define=i("../../node_modules/asn1.js/lib/asn1/api.js").define,r.base=i("../../node_modules/asn1.js/lib/asn1/base/index.js"),r.constants=i("../../node_modules/asn1.js/lib/asn1/constants/index.js"),r.decoders=i("../../node_modules/asn1.js/lib/asn1/decoders/index.js"),r.encoders=i("../../node_modules/asn1.js/lib/asn1/encoders/index.js")},"../../node_modules/asn1.js/lib/asn1/api.js":function(t,e,i){var r=i("../../node_modules/asn1.js/lib/asn1.js"),n=i("../../node_modules/inherits/inherits_browser.js");function s(t,e){this.name=t,this.body=e,this.decoders={},this.encoders={}}e.define=function(t,e){return new s(t,e)},s.prototype._createNamed=function(t){var e;try{e=i("../../node_modules/vm-browserify/index.js").runInThisContext("(function "+this.name+"(entity) {\n this._initNamed(entity);\n})")}catch(t){e=function(t){this._initNamed(t)}}return n(e,t),e.prototype._initNamed=function(e){t.call(this,e)},new e(this)},s.prototype._getDecoder=function(t){return t=t||"der",this.decoders.hasOwnProperty(t)||(this.decoders[t]=this._createNamed(r.decoders[t])),this.decoders[t]},s.prototype.decode=function(t,e,i){return this._getDecoder(e).decode(t,i)},s.prototype._getEncoder=function(t){return t=t||"der",this.encoders.hasOwnProperty(t)||(this.encoders[t]=this._createNamed(r.encoders[t])),this.encoders[t]},s.prototype.encode=function(t,e,i){return this._getEncoder(e).encode(t,i)}},"../../node_modules/asn1.js/lib/asn1/base/buffer.js":function(t,e,i){var r=i("../../node_modules/inherits/inherits_browser.js"),n=i("../../node_modules/asn1.js/lib/asn1/base/index.js").Reporter,s=i("../../standalone-packages/codesandbox-browserfs/dist/shims/buffer.js").Buffer;function o(t,e){n.call(this,e),s.isBuffer(t)?(this.base=t,this.offset=0,this.length=t.length):this.error("Input not Buffer")}function a(t,e){if(Array.isArray(t))this.length=0,this.value=t.map((function(t){return t instanceof a||(t=new a(t,e)),this.length+=t.length,t}),this);else if("number"==typeof t){if(!(0<=t&&t<=255))return e.error("non-byte EncoderBuffer value");this.value=t,this.length=1}else if("string"==typeof t)this.value=t,this.length=s.byteLength(t);else{if(!s.isBuffer(t))return e.error("Unsupported type: "+typeof t);this.value=t,this.length=t.length}}r(o,n),e.DecoderBuffer=o,o.prototype.save=function(){return{offset:this.offset,reporter:n.prototype.save.call(this)}},o.prototype.restore=function(t){var e=new o(this.base);return e.offset=t.offset,e.length=this.offset,this.offset=t.offset,n.prototype.restore.call(this,t.reporter),e},o.prototype.isEmpty=function(){return this.offset===this.length},o.prototype.readUInt8=function(t){return this.offset+1<=this.length?this.base.readUInt8(this.offset++,!0):this.error(t||"DecoderBuffer overrun")},o.prototype.skip=function(t,e){if(!(this.offset+t<=this.length))return this.error(e||"DecoderBuffer overrun");var i=new o(this.base);return i._reporterState=this._reporterState,i.offset=this.offset,i.length=this.offset+t,this.offset+=t,i},o.prototype.raw=function(t){return this.base.slice(t?t.offset:this.offset,this.length)},e.EncoderBuffer=a,a.prototype.join=function(t,e){return t||(t=new s(this.length)),e||(e=0),0===this.length||(Array.isArray(this.value)?this.value.forEach((function(i){i.join(t,e),e+=i.length})):("number"==typeof this.value?t[e]=this.value:"string"==typeof this.value?t.write(this.value,e):s.isBuffer(this.value)&&this.value.copy(t,e),e+=this.length)),t}},"../../node_modules/asn1.js/lib/asn1/base/index.js":function(t,e,i){var r=e;r.Reporter=i("../../node_modules/asn1.js/lib/asn1/base/reporter.js").Reporter,r.DecoderBuffer=i("../../node_modules/asn1.js/lib/asn1/base/buffer.js").DecoderBuffer,r.EncoderBuffer=i("../../node_modules/asn1.js/lib/asn1/base/buffer.js").EncoderBuffer,r.Node=i("../../node_modules/asn1.js/lib/asn1/base/node.js")},"../../node_modules/asn1.js/lib/asn1/base/node.js":function(t,e,i){var r=i("../../node_modules/asn1.js/lib/asn1/base/index.js").Reporter,n=i("../../node_modules/asn1.js/lib/asn1/base/index.js").EncoderBuffer,s=i("../../node_modules/asn1.js/lib/asn1/base/index.js").DecoderBuffer,o=i("../../node_modules/minimalistic-assert/index.js"),a=["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"],h=["key","obj","use","optional","explicit","implicit","def","choice","any","contains"].concat(a);function d(t,e){var i={};this._baseState=i,i.enc=t,i.parent=e||null,i.children=null,i.tag=null,i.args=null,i.reverseArgs=null,i.choice=null,i.optional=!1,i.any=!1,i.obj=!1,i.use=null,i.useDecoder=null,i.key=null,i.default=null,i.explicit=null,i.implicit=null,i.contains=null,i.parent||(i.children=[],this._wrap())}t.exports=d;var u=["enc","parent","children","tag","args","reverseArgs","choice","optional","any","obj","use","alteredUse","key","default","explicit","implicit","contains"];d.prototype.clone=function(){var t=this._baseState,e={};u.forEach((function(i){e[i]=t[i]}));var i=new this.constructor(e.parent);return i._baseState=e,i},d.prototype._wrap=function(){var t=this._baseState;h.forEach((function(e){this[e]=function(){var i=new this.constructor(this);return t.children.push(i),i[e].apply(i,arguments)}}),this)},d.prototype._init=function(t){var e=this._baseState;o(null===e.parent),t.call(this),e.children=e.children.filter((function(t){return t._baseState.parent===this}),this),o.equal(e.children.length,1,"Root node can have only one child")},d.prototype._useArgs=function(t){var e=this._baseState,i=t.filter((function(t){return t instanceof this.constructor}),this);t=t.filter((function(t){return!(t instanceof this.constructor)}),this),0!==i.length&&(o(null===e.children),e.children=i,i.forEach((function(t){t._baseState.parent=this}),this)),0!==t.length&&(o(null===e.args),e.args=t,e.reverseArgs=t.map((function(t){if("object"!=typeof t||t.constructor!==Object)return t;var e={};return Object.keys(t).forEach((function(i){i==(0|i)&&(i|=0);var r=t[i];e[r]=i})),e})))},["_peekTag","_decodeTag","_use","_decodeStr","_decodeObjid","_decodeTime","_decodeNull","_decodeInt","_decodeBool","_decodeList","_encodeComposite","_encodeStr","_encodeObjid","_encodeTime","_encodeNull","_encodeInt","_encodeBool"].forEach((function(t){d.prototype[t]=function(){var e=this._baseState;throw new Error(t+" not implemented for encoding: "+e.enc)}})),a.forEach((function(t){d.prototype[t]=function(){var e=this._baseState,i=Array.prototype.slice.call(arguments);return o(null===e.tag),e.tag=t,this._useArgs(i),this}})),d.prototype.use=function(t){o(t);var e=this._baseState;return o(null===e.use),e.use=t,this},d.prototype.optional=function(){return this._baseState.optional=!0,this},d.prototype.def=function(t){var e=this._baseState;return o(null===e.default),e.default=t,e.optional=!0,this},d.prototype.explicit=function(t){var e=this._baseState;return o(null===e.explicit&&null===e.implicit),e.explicit=t,this},d.prototype.implicit=function(t){var e=this._baseState;return o(null===e.explicit&&null===e.implicit),e.implicit=t,this},d.prototype.obj=function(){var t=this._baseState,e=Array.prototype.slice.call(arguments);return t.obj=!0,0!==e.length&&this._useArgs(e),this},d.prototype.key=function(t){var e=this._baseState;return o(null===e.key),e.key=t,this},d.prototype.any=function(){return this._baseState.any=!0,this},d.prototype.choice=function(t){var e=this._baseState;return o(null===e.choice),e.choice=t,this._useArgs(Object.keys(t).map((function(e){return t[e]}))),this},d.prototype.contains=function(t){var e=this._baseState;return o(null===e.use),e.contains=t,this},d.prototype._decode=function(t,e){var i=this._baseState;if(null===i.parent)return t.wrapResult(i.children[0]._decode(t,e));var r,n=i.default,o=!0,a=null;if(null!==i.key&&(a=t.enterKey(i.key)),i.optional){var h=null;if(null!==i.explicit?h=i.explicit:null!==i.implicit?h=i.implicit:null!==i.tag&&(h=i.tag),null!==h||i.any){if(o=this._peekTag(t,h,i.any),t.isError(o))return o}else{var d=t.save();try{null===i.choice?this._decodeGeneric(i.tag,t,e):this._decodeChoice(t,e),o=!0}catch(t){o=!1}t.restore(d)}}if(i.obj&&o&&(r=t.enterObject()),o){if(null!==i.explicit){var u=this._decodeTag(t,i.explicit);if(t.isError(u))return u;t=u}var f=t.offset;if(null===i.use&&null===i.choice){if(i.any)d=t.save();var l=this._decodeTag(t,null!==i.implicit?i.implicit:i.tag,i.any);if(t.isError(l))return l;i.any?n=t.raw(d):t=l}if(e&&e.track&&null!==i.tag&&e.track(t.path(),f,t.length,"tagged"),e&&e.track&&null!==i.tag&&e.track(t.path(),t.offset,t.length,"content"),n=i.any?n:null===i.choice?this._decodeGeneric(i.tag,t,e):this._decodeChoice(t,e),t.isError(n))return n;if(i.any||null!==i.choice||null===i.children||i.children.forEach((function(i){i._decode(t,e)})),i.contains&&("octstr"===i.tag||"bitstr"===i.tag)){var c=new s(n);n=this._getUse(i.contains,t._reporterState.obj)._decode(c,e)}}return i.obj&&o&&(n=t.leaveObject(r)),null===i.key||null===n&&!0!==o?null!==a&&t.exitKey(a):t.leaveKey(a,i.key,n),n},d.prototype._decodeGeneric=function(t,e,i){var r=this._baseState;return"seq"===t||"set"===t?null:"seqof"===t||"setof"===t?this._decodeList(e,t,r.args[0],i):/str$/.test(t)?this._decodeStr(e,t,i):"objid"===t&&r.args?this._decodeObjid(e,r.args[0],r.args[1],i):"objid"===t?this._decodeObjid(e,null,null,i):"gentime"===t||"utctime"===t?this._decodeTime(e,t,i):"null_"===t?this._decodeNull(e,i):"bool"===t?this._decodeBool(e,i):"objDesc"===t?this._decodeStr(e,t,i):"int"===t||"enum"===t?this._decodeInt(e,r.args&&r.args[0],i):null!==r.use?this._getUse(r.use,e._reporterState.obj)._decode(e,i):e.error("unknown tag: "+t)},d.prototype._getUse=function(t,e){var i=this._baseState;return i.useDecoder=this._use(t,e),o(null===i.useDecoder._baseState.parent),i.useDecoder=i.useDecoder._baseState.children[0],i.implicit!==i.useDecoder._baseState.implicit&&(i.useDecoder=i.useDecoder.clone(),i.useDecoder._baseState.implicit=i.implicit),i.useDecoder},d.prototype._decodeChoice=function(t,e){var i=this._baseState,r=null,n=!1;return Object.keys(i.choice).some((function(s){var o=t.save(),a=i.choice[s];try{var h=a._decode(t,e);if(t.isError(h))return!1;r={type:s,value:h},n=!0}catch(e){return t.restore(o),!1}return!0}),this),n?r:t.error("Choice not matched")},d.prototype._createEncoderBuffer=function(t){return new n(t,this.reporter)},d.prototype._encode=function(t,e,i){var r=this._baseState;if(null===r.default||r.default!==t){var n=this._encodeValue(t,e,i);if(void 0!==n&&!this._skipDefault(n,e,i))return n}},d.prototype._encodeValue=function(t,e,i){var n=this._baseState;if(null===n.parent)return n.children[0]._encode(t,e||new r);var s=null;if(this.reporter=e,n.optional&&void 0===t){if(null===n.default)return;t=n.default}var o=null,a=!1;if(n.any)s=this._createEncoderBuffer(t);else if(n.choice)s=this._encodeChoice(t,e);else if(n.contains)o=this._getUse(n.contains,i)._encode(t,e),a=!0;else if(n.children)o=n.children.map((function(i){if("null_"===i._baseState.tag)return i._encode(null,e,t);if(null===i._baseState.key)return e.error("Child should have a key");var r=e.enterKey(i._baseState.key);if("object"!=typeof t)return e.error("Child expected, but input is not object");var n=i._encode(t[i._baseState.key],e,t);return e.leaveKey(r),n}),this).filter((function(t){return t})),o=this._createEncoderBuffer(o);else if("seqof"===n.tag||"setof"===n.tag){if(!n.args||1!==n.args.length)return e.error("Too many args for : "+n.tag);if(!Array.isArray(t))return e.error("seqof/setof, but data is not Array");var h=this.clone();h._baseState.implicit=null,o=this._createEncoderBuffer(t.map((function(i){var r=this._baseState;return this._getUse(r.args[0],t)._encode(i,e)}),h))}else null!==n.use?s=this._getUse(n.use,i)._encode(t,e):(o=this._encodePrimitive(n.tag,t),a=!0);if(!n.any&&null===n.choice){var d=null!==n.implicit?n.implicit:n.tag,u=null===n.implicit?"universal":"context";null===d?null===n.use&&e.error("Tag could be omitted only for .use()"):null===n.use&&(s=this._encodeComposite(d,a,u,o))}return null!==n.explicit&&(s=this._encodeComposite(n.explicit,!1,"context",s)),s},d.prototype._encodeChoice=function(t,e){var i=this._baseState,r=i.choice[t.type];return r||o(!1,t.type+" not found in "+JSON.stringify(Object.keys(i.choice))),r._encode(t.value,e)},d.prototype._encodePrimitive=function(t,e){var i=this._baseState;if(/str$/.test(t))return this._encodeStr(e,t);if("objid"===t&&i.args)return this._encodeObjid(e,i.reverseArgs[0],i.args[1]);if("objid"===t)return this._encodeObjid(e,null,null);if("gentime"===t||"utctime"===t)return this._encodeTime(e,t);if("null_"===t)return this._encodeNull();if("int"===t||"enum"===t)return this._encodeInt(e,i.args&&i.reverseArgs[0]);if("bool"===t)return this._encodeBool(e);if("objDesc"===t)return this._encodeStr(e,t);throw new Error("Unsupported tag: "+t)},d.prototype._isNumstr=function(t){return/^[0-9 ]*$/.test(t)},d.prototype._isPrintstr=function(t){return/^[A-Za-z0-9 '\(\)\+,\-\.\/:=\?]*$/.test(t)}},"../../node_modules/asn1.js/lib/asn1/base/reporter.js":function(t,e,i){var r=i("../../node_modules/inherits/inherits_browser.js");function n(t){this._reporterState={obj:null,path:[],options:t||{},errors:[]}}function s(t,e){this.path=t,this.rethrow(e)}e.Reporter=n,n.prototype.isError=function(t){return t instanceof s},n.prototype.save=function(){var t=this._reporterState;return{obj:t.obj,pathLen:t.path.length}},n.prototype.restore=function(t){var e=this._reporterState;e.obj=t.obj,e.path=e.path.slice(0,t.pathLen)},n.prototype.enterKey=function(t){return this._reporterState.path.push(t)},n.prototype.exitKey=function(t){var e=this._reporterState;e.path=e.path.slice(0,t-1)},n.prototype.leaveKey=function(t,e,i){var r=this._reporterState;this.exitKey(t),null!==r.obj&&(r.obj[e]=i)},n.prototype.path=function(){return this._reporterState.path.join("/")},n.prototype.enterObject=function(){var t=this._reporterState,e=t.obj;return t.obj={},e},n.prototype.leaveObject=function(t){var e=this._reporterState,i=e.obj;return e.obj=t,i},n.prototype.error=function(t){var e,i=this._reporterState,r=t instanceof s;if(e=r?t:new s(i.path.map((function(t){return"["+JSON.stringify(t)+"]"})).join(""),t.message||t,t.stack),!i.options.partial)throw e;return r||i.errors.push(e),e},n.prototype.wrapResult=function(t){var e=this._reporterState;return e.options.partial?{result:this.isError(t)?null:t,errors:e.errors}:t},r(s,Error),s.prototype.rethrow=function(t){if(this.message=t+" at: "+(this.path||"(shallow)"),Error.captureStackTrace&&Error.captureStackTrace(this,s),!this.stack)try{throw new Error(this.message)}catch(t){this.stack=t.stack}return this}},"../../node_modules/asn1.js/lib/asn1/constants/der.js":function(t,e,i){var r=i("../../node_modules/asn1.js/lib/asn1/constants/index.js");e.tagClass={0:"universal",1:"application",2:"context",3:"private"},e.tagClassByName=r._reverse(e.tagClass),e.tag={0:"end",1:"bool",2:"int",3:"bitstr",4:"octstr",5:"null_",6:"objid",7:"objDesc",8:"external",9:"real",10:"enum",11:"embed",12:"utf8str",13:"relativeOid",16:"seq",17:"set",18:"numstr",19:"printstr",20:"t61str",21:"videostr",22:"ia5str",23:"utctime",24:"gentime",25:"graphstr",26:"iso646str",27:"genstr",28:"unistr",29:"charstr",30:"bmpstr"},e.tagByName=r._reverse(e.tag)},"../../node_modules/asn1.js/lib/asn1/constants/index.js":function(t,e,i){var r=e;r._reverse=function(t){var e={};return Object.keys(t).forEach((function(i){(0|i)==i&&(i|=0);var r=t[i];e[r]=i})),e},r.der=i("../../node_modules/asn1.js/lib/asn1/constants/der.js")},"../../node_modules/asn1.js/lib/asn1/decoders/der.js":function(t,e,i){var r=i("../../node_modules/inherits/inherits_browser.js"),n=i("../../node_modules/asn1.js/lib/asn1.js"),s=n.base,o=n.bignum,a=n.constants.der;function h(t){this.enc="der",this.name=t.name,this.entity=t,this.tree=new d,this.tree._init(t.body)}function d(t){s.Node.call(this,"der",t)}function u(t,e){var i=t.readUInt8(e);if(t.isError(i))return i;var r=a.tagClass[i>>6],n=0==(32&i);if(31==(31&i)){var s=i;for(i=0;128==(128&s);){if(s=t.readUInt8(e),t.isError(s))return s;i<<=7,i|=127&s}}else i&=31;return{cls:r,primitive:n,tag:i,tagStr:a.tag[i]}}function f(t,e,i){var r=t.readUInt8(i);if(t.isError(r))return r;if(!e&&128===r)return null;if(0==(128&r))return r;var n=127&r;if(n>4)return t.error("length octect is too long");r=0;for(var s=0;s=31)return r.error("Multi-octet tag encoding unsupported");e||(n|=32);return n|=a.tagClassByName[i||"universal"]<<6}(t,e,i,this.reporter);if(r.length<128)return(s=new n(2))[0]=o,s[1]=r.length,this._createEncoderBuffer([s,r]);for(var h=1,d=r.length;d>=256;d>>=8)h++;(s=new n(2+h))[0]=o,s[1]=128|h;d=1+h;for(var u=r.length;u>0;d--,u>>=8)s[d]=255&u;return this._createEncoderBuffer([s,r])},d.prototype._encodeStr=function(t,e){if("bitstr"===e)return this._createEncoderBuffer([0|t.unused,t.data]);if("bmpstr"===e){for(var i=new n(2*t.length),r=0;r=40)return this.reporter.error("Second objid identifier OOB");t.splice(0,2,40*t[0]+t[1])}var s=0;for(r=0;r=128;o>>=7)s++}var a=new n(s),h=a.length-1;for(r=t.length-1;r>=0;r--){o=t[r];for(a[h--]=127&o;(o>>=7)>0;)a[h--]=128|127&o}return this._createEncoderBuffer(a)},d.prototype._encodeTime=function(t,e){var i,r=new Date(t);return"gentime"===e?i=[u(r.getFullYear()),u(r.getUTCMonth()+1),u(r.getUTCDate()),u(r.getUTCHours()),u(r.getUTCMinutes()),u(r.getUTCSeconds()),"Z"].join(""):"utctime"===e?i=[u(r.getFullYear()%100),u(r.getUTCMonth()+1),u(r.getUTCDate()),u(r.getUTCHours()),u(r.getUTCMinutes()),u(r.getUTCSeconds()),"Z"].join(""):this.reporter.error("Encoding "+e+" time is not supported yet"),this._encodeStr(i,"octstr")},d.prototype._encodeNull=function(){return this._createEncoderBuffer("")},d.prototype._encodeInt=function(t,e){if("string"==typeof t){if(!e)return this.reporter.error("String int or enum given, but no values map");if(!e.hasOwnProperty(t))return this.reporter.error("Values map doesn't contain: "+JSON.stringify(t));t=e[t]}if("number"!=typeof t&&!n.isBuffer(t)){var i=t.toArray();!t.sign&&128&i[0]&&i.unshift(0),t=new n(i)}if(n.isBuffer(t)){var r=t.length;0===t.length&&r++;var s=new n(r);return t.copy(s),0===t.length&&(s[0]=0),this._createEncoderBuffer(s)}if(t<128)return this._createEncoderBuffer(t);if(t<256)return this._createEncoderBuffer([0,t]);r=1;for(var o=t;o>=256;o>>=8)r++;for(o=(s=new Array(r)).length-1;o>=0;o--)s[o]=255&t,t>>=8;return 128&s[0]&&s.unshift(0),this._createEncoderBuffer(new n(s))},d.prototype._encodeBool=function(t){return this._createEncoderBuffer(t?255:0)},d.prototype._use=function(t,e){return"function"==typeof t&&(t=t(e)),t._getEncoder("der").tree},d.prototype._skipDefault=function(t,e,i){var r,n=this._baseState;if(null===n.default)return!1;var s=t.join();if(void 0===n.defaultBuffer&&(n.defaultBuffer=this._encodeValue(n.default,e,i).join()),s.length!==n.defaultBuffer.length)return!1;for(r=0;r=49&&o<=54?o-49+10:o>=17&&o<=22?o-17+10:15&o}return r}function h(t,e,i,r){for(var n=0,s=Math.min(t.length,i),o=e;o=49?a-49+10:a>=17?a-17+10:a}return n}s.isBN=function(t){return t instanceof s||null!==t&&"object"==typeof t&&t.constructor.wordSize===s.wordSize&&Array.isArray(t.words)},s.max=function(t,e){return t.cmp(e)>0?t:e},s.min=function(t,e){return t.cmp(e)<0?t:e},s.prototype._init=function(t,e,i){if("number"==typeof t)return this._initNumber(t,e,i);if("object"==typeof t)return this._initArray(t,e,i);"hex"===e&&(e=16),r(e===(0|e)&&e>=2&&e<=36);var n=0;"-"===(t=t.toString().replace(/\s+/g,""))[0]&&n++,16===e?this._parseHex(t,n):this._parseBase(t,e,n),"-"===t[0]&&(this.negative=1),this.strip(),"le"===i&&this._initArray(this.toArray(),e,i)},s.prototype._initNumber=function(t,e,i){t<0&&(this.negative=1,t=-t),t<67108864?(this.words=[67108863&t],this.length=1):t<4503599627370496?(this.words=[67108863&t,t/67108864&67108863],this.length=2):(r(t<9007199254740992),this.words=[67108863&t,t/67108864&67108863,1],this.length=3),"le"===i&&this._initArray(this.toArray(),e,i)},s.prototype._initArray=function(t,e,i){if(r("number"==typeof t.length),t.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(t.length/3),this.words=new Array(this.length);for(var n=0;n=0;n-=3)o=t[n]|t[n-1]<<8|t[n-2]<<16,this.words[s]|=o<>>26-a&67108863,(a+=24)>=26&&(a-=26,s++);else if("le"===i)for(n=0,s=0;n>>26-a&67108863,(a+=24)>=26&&(a-=26,s++);return this.strip()},s.prototype._parseHex=function(t,e){this.length=Math.ceil((t.length-e)/6),this.words=new Array(this.length);for(var i=0;i=e;i-=6)n=a(t,i,i+6),this.words[r]|=n<>>26-s&4194303,(s+=24)>=26&&(s-=26,r++);i+6!==e&&(n=a(t,e,i+6),this.words[r]|=n<>>26-s&4194303),this.strip()},s.prototype._parseBase=function(t,e,i){this.words=[0],this.length=1;for(var r=0,n=1;n<=67108863;n*=e)r++;r--,n=n/e|0;for(var s=t.length-i,o=s%r,a=Math.min(s,s-o)+i,d=0,u=i;u1&&0===this.words[this.length-1];)this.length--;return this._normSign()},s.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},s.prototype.inspect=function(){return(this.red?""};var d=["","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"],u=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],f=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function l(t,e,i){i.negative=e.negative^t.negative;var r=t.length+e.length|0;i.length=r,r=r-1|0;var n=0|t.words[0],s=0|e.words[0],o=n*s,a=67108863&o,h=o/67108864|0;i.words[0]=a;for(var d=1;d>>26,f=67108863&h,l=Math.min(d,e.length-1),c=Math.max(0,d-t.length+1);c<=l;c++){var p=d-c|0;u+=(o=(n=0|t.words[p])*(s=0|e.words[c])+f)/67108864|0,f=67108863&o}i.words[d]=0|f,h=0|u}return 0!==h?i.words[d]=0|h:i.length--,i.strip()}s.prototype.toString=function(t,e){var i;if(e=0|e||1,16===(t=t||10)||"hex"===t){i="";for(var n=0,s=0,o=0;o>>24-n&16777215)||o!==this.length-1?d[6-h.length]+h+i:h+i,(n+=2)>=26&&(n-=26,o--)}for(0!==s&&(i=s.toString(16)+i);i.length%e!=0;)i="0"+i;return 0!==this.negative&&(i="-"+i),i}if(t===(0|t)&&t>=2&&t<=36){var l=u[t],c=f[t];i="";var p=this.clone();for(p.negative=0;!p.isZero();){var m=p.modn(c).toString(t);i=(p=p.idivn(c)).isZero()?m+i:d[l-m.length]+m+i}for(this.isZero()&&(i="0"+i);i.length%e!=0;)i="0"+i;return 0!==this.negative&&(i="-"+i),i}r(!1,"Base should be between 2 and 36")},s.prototype.toNumber=function(){var t=this.words[0];return 2===this.length?t+=67108864*this.words[1]:3===this.length&&1===this.words[2]?t+=4503599627370496+67108864*this.words[1]:this.length>2&&r(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-t:t},s.prototype.toJSON=function(){return this.toString(16)},s.prototype.toBuffer=function(t,e){return r(void 0!==o),this.toArrayLike(o,t,e)},s.prototype.toArray=function(t,e){return this.toArrayLike(Array,t,e)},s.prototype.toArrayLike=function(t,e,i){var n=this.byteLength(),s=i||Math.max(1,n);r(n<=s,"byte array longer than desired length"),r(s>0,"Requested array length <= 0"),this.strip();var o,a,h="le"===e,d=new t(s),u=this.clone();if(h){for(a=0;!u.isZero();a++)o=u.andln(255),u.iushrn(8),d[a]=o;for(;a=4096&&(i+=13,e>>>=13),e>=64&&(i+=7,e>>>=7),e>=8&&(i+=4,e>>>=4),e>=2&&(i+=2,e>>>=2),i+e},s.prototype._zeroBits=function(t){if(0===t)return 26;var e=t,i=0;return 0==(8191&e)&&(i+=13,e>>>=13),0==(127&e)&&(i+=7,e>>>=7),0==(15&e)&&(i+=4,e>>>=4),0==(3&e)&&(i+=2,e>>>=2),0==(1&e)&&i++,i},s.prototype.bitLength=function(){var t=this.words[this.length-1],e=this._countBits(t);return 26*(this.length-1)+e},s.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,e=0;et.length?this.clone().ior(t):t.clone().ior(this)},s.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},s.prototype.iuand=function(t){var e;e=this.length>t.length?t:this;for(var i=0;it.length?this.clone().iand(t):t.clone().iand(this)},s.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},s.prototype.iuxor=function(t){var e,i;this.length>t.length?(e=this,i=t):(e=t,i=this);for(var r=0;rt.length?this.clone().ixor(t):t.clone().ixor(this)},s.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},s.prototype.inotn=function(t){r("number"==typeof t&&t>=0);var e=0|Math.ceil(t/26),i=t%26;this._expand(e),i>0&&e--;for(var n=0;n0&&(this.words[n]=~this.words[n]&67108863>>26-i),this.strip()},s.prototype.notn=function(t){return this.clone().inotn(t)},s.prototype.setn=function(t,e){r("number"==typeof t&&t>=0);var i=t/26|0,n=t%26;return this._expand(i+1),this.words[i]=e?this.words[i]|1<t.length?(i=this,r=t):(i=t,r=this);for(var n=0,s=0;s>>26;for(;0!==n&&s>>26;if(this.length=i.length,0!==n)this.words[this.length]=n,this.length++;else if(i!==this)for(;st.length?this.clone().iadd(t):t.clone().iadd(this)},s.prototype.isub=function(t){if(0!==t.negative){t.negative=0;var e=this.iadd(t);return t.negative=1,e._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(t),this.negative=1,this._normSign();var i,r,n=this.cmp(t);if(0===n)return this.negative=0,this.length=1,this.words[0]=0,this;n>0?(i=this,r=t):(i=t,r=this);for(var s=0,o=0;o>26,this.words[o]=67108863&e;for(;0!==s&&o>26,this.words[o]=67108863&e;if(0===s&&o>>13,c=0|o[1],p=8191&c,m=c>>>13,b=0|o[2],v=8191&b,g=b>>>13,y=0|o[3],_=8191&y,w=y>>>13,M=0|o[4],x=8191&M,j=M>>>13,E=0|o[5],S=8191&E,k=E>>>13,A=0|o[6],R=8191&A,I=A>>>13,B=0|o[7],C=8191&B,O=B>>>13,T=0|o[8],P=8191&T,N=T>>>13,L=0|o[9],q=8191&L,D=L>>>13,z=0|a[0],U=8191&z,K=z>>>13,F=0|a[1],H=8191&F,Z=F>>>13,G=0|a[2],V=8191&G,X=G>>>13,$=0|a[3],W=8191&$,Y=$>>>13,J=0|a[4],Q=8191&J,tt=J>>>13,et=0|a[5],it=8191&et,rt=et>>>13,nt=0|a[6],st=8191&nt,ot=nt>>>13,at=0|a[7],ht=8191&at,dt=at>>>13,ut=0|a[8],ft=8191&ut,lt=ut>>>13,ct=0|a[9],pt=8191&ct,mt=ct>>>13;i.negative=t.negative^e.negative,i.length=19;var bt=(d+(r=Math.imul(f,U))|0)+((8191&(n=(n=Math.imul(f,K))+Math.imul(l,U)|0))<<13)|0;d=((s=Math.imul(l,K))+(n>>>13)|0)+(bt>>>26)|0,bt&=67108863,r=Math.imul(p,U),n=(n=Math.imul(p,K))+Math.imul(m,U)|0,s=Math.imul(m,K);var vt=(d+(r=r+Math.imul(f,H)|0)|0)+((8191&(n=(n=n+Math.imul(f,Z)|0)+Math.imul(l,H)|0))<<13)|0;d=((s=s+Math.imul(l,Z)|0)+(n>>>13)|0)+(vt>>>26)|0,vt&=67108863,r=Math.imul(v,U),n=(n=Math.imul(v,K))+Math.imul(g,U)|0,s=Math.imul(g,K),r=r+Math.imul(p,H)|0,n=(n=n+Math.imul(p,Z)|0)+Math.imul(m,H)|0,s=s+Math.imul(m,Z)|0;var gt=(d+(r=r+Math.imul(f,V)|0)|0)+((8191&(n=(n=n+Math.imul(f,X)|0)+Math.imul(l,V)|0))<<13)|0;d=((s=s+Math.imul(l,X)|0)+(n>>>13)|0)+(gt>>>26)|0,gt&=67108863,r=Math.imul(_,U),n=(n=Math.imul(_,K))+Math.imul(w,U)|0,s=Math.imul(w,K),r=r+Math.imul(v,H)|0,n=(n=n+Math.imul(v,Z)|0)+Math.imul(g,H)|0,s=s+Math.imul(g,Z)|0,r=r+Math.imul(p,V)|0,n=(n=n+Math.imul(p,X)|0)+Math.imul(m,V)|0,s=s+Math.imul(m,X)|0;var yt=(d+(r=r+Math.imul(f,W)|0)|0)+((8191&(n=(n=n+Math.imul(f,Y)|0)+Math.imul(l,W)|0))<<13)|0;d=((s=s+Math.imul(l,Y)|0)+(n>>>13)|0)+(yt>>>26)|0,yt&=67108863,r=Math.imul(x,U),n=(n=Math.imul(x,K))+Math.imul(j,U)|0,s=Math.imul(j,K),r=r+Math.imul(_,H)|0,n=(n=n+Math.imul(_,Z)|0)+Math.imul(w,H)|0,s=s+Math.imul(w,Z)|0,r=r+Math.imul(v,V)|0,n=(n=n+Math.imul(v,X)|0)+Math.imul(g,V)|0,s=s+Math.imul(g,X)|0,r=r+Math.imul(p,W)|0,n=(n=n+Math.imul(p,Y)|0)+Math.imul(m,W)|0,s=s+Math.imul(m,Y)|0;var _t=(d+(r=r+Math.imul(f,Q)|0)|0)+((8191&(n=(n=n+Math.imul(f,tt)|0)+Math.imul(l,Q)|0))<<13)|0;d=((s=s+Math.imul(l,tt)|0)+(n>>>13)|0)+(_t>>>26)|0,_t&=67108863,r=Math.imul(S,U),n=(n=Math.imul(S,K))+Math.imul(k,U)|0,s=Math.imul(k,K),r=r+Math.imul(x,H)|0,n=(n=n+Math.imul(x,Z)|0)+Math.imul(j,H)|0,s=s+Math.imul(j,Z)|0,r=r+Math.imul(_,V)|0,n=(n=n+Math.imul(_,X)|0)+Math.imul(w,V)|0,s=s+Math.imul(w,X)|0,r=r+Math.imul(v,W)|0,n=(n=n+Math.imul(v,Y)|0)+Math.imul(g,W)|0,s=s+Math.imul(g,Y)|0,r=r+Math.imul(p,Q)|0,n=(n=n+Math.imul(p,tt)|0)+Math.imul(m,Q)|0,s=s+Math.imul(m,tt)|0;var wt=(d+(r=r+Math.imul(f,it)|0)|0)+((8191&(n=(n=n+Math.imul(f,rt)|0)+Math.imul(l,it)|0))<<13)|0;d=((s=s+Math.imul(l,rt)|0)+(n>>>13)|0)+(wt>>>26)|0,wt&=67108863,r=Math.imul(R,U),n=(n=Math.imul(R,K))+Math.imul(I,U)|0,s=Math.imul(I,K),r=r+Math.imul(S,H)|0,n=(n=n+Math.imul(S,Z)|0)+Math.imul(k,H)|0,s=s+Math.imul(k,Z)|0,r=r+Math.imul(x,V)|0,n=(n=n+Math.imul(x,X)|0)+Math.imul(j,V)|0,s=s+Math.imul(j,X)|0,r=r+Math.imul(_,W)|0,n=(n=n+Math.imul(_,Y)|0)+Math.imul(w,W)|0,s=s+Math.imul(w,Y)|0,r=r+Math.imul(v,Q)|0,n=(n=n+Math.imul(v,tt)|0)+Math.imul(g,Q)|0,s=s+Math.imul(g,tt)|0,r=r+Math.imul(p,it)|0,n=(n=n+Math.imul(p,rt)|0)+Math.imul(m,it)|0,s=s+Math.imul(m,rt)|0;var Mt=(d+(r=r+Math.imul(f,st)|0)|0)+((8191&(n=(n=n+Math.imul(f,ot)|0)+Math.imul(l,st)|0))<<13)|0;d=((s=s+Math.imul(l,ot)|0)+(n>>>13)|0)+(Mt>>>26)|0,Mt&=67108863,r=Math.imul(C,U),n=(n=Math.imul(C,K))+Math.imul(O,U)|0,s=Math.imul(O,K),r=r+Math.imul(R,H)|0,n=(n=n+Math.imul(R,Z)|0)+Math.imul(I,H)|0,s=s+Math.imul(I,Z)|0,r=r+Math.imul(S,V)|0,n=(n=n+Math.imul(S,X)|0)+Math.imul(k,V)|0,s=s+Math.imul(k,X)|0,r=r+Math.imul(x,W)|0,n=(n=n+Math.imul(x,Y)|0)+Math.imul(j,W)|0,s=s+Math.imul(j,Y)|0,r=r+Math.imul(_,Q)|0,n=(n=n+Math.imul(_,tt)|0)+Math.imul(w,Q)|0,s=s+Math.imul(w,tt)|0,r=r+Math.imul(v,it)|0,n=(n=n+Math.imul(v,rt)|0)+Math.imul(g,it)|0,s=s+Math.imul(g,rt)|0,r=r+Math.imul(p,st)|0,n=(n=n+Math.imul(p,ot)|0)+Math.imul(m,st)|0,s=s+Math.imul(m,ot)|0;var xt=(d+(r=r+Math.imul(f,ht)|0)|0)+((8191&(n=(n=n+Math.imul(f,dt)|0)+Math.imul(l,ht)|0))<<13)|0;d=((s=s+Math.imul(l,dt)|0)+(n>>>13)|0)+(xt>>>26)|0,xt&=67108863,r=Math.imul(P,U),n=(n=Math.imul(P,K))+Math.imul(N,U)|0,s=Math.imul(N,K),r=r+Math.imul(C,H)|0,n=(n=n+Math.imul(C,Z)|0)+Math.imul(O,H)|0,s=s+Math.imul(O,Z)|0,r=r+Math.imul(R,V)|0,n=(n=n+Math.imul(R,X)|0)+Math.imul(I,V)|0,s=s+Math.imul(I,X)|0,r=r+Math.imul(S,W)|0,n=(n=n+Math.imul(S,Y)|0)+Math.imul(k,W)|0,s=s+Math.imul(k,Y)|0,r=r+Math.imul(x,Q)|0,n=(n=n+Math.imul(x,tt)|0)+Math.imul(j,Q)|0,s=s+Math.imul(j,tt)|0,r=r+Math.imul(_,it)|0,n=(n=n+Math.imul(_,rt)|0)+Math.imul(w,it)|0,s=s+Math.imul(w,rt)|0,r=r+Math.imul(v,st)|0,n=(n=n+Math.imul(v,ot)|0)+Math.imul(g,st)|0,s=s+Math.imul(g,ot)|0,r=r+Math.imul(p,ht)|0,n=(n=n+Math.imul(p,dt)|0)+Math.imul(m,ht)|0,s=s+Math.imul(m,dt)|0;var jt=(d+(r=r+Math.imul(f,ft)|0)|0)+((8191&(n=(n=n+Math.imul(f,lt)|0)+Math.imul(l,ft)|0))<<13)|0;d=((s=s+Math.imul(l,lt)|0)+(n>>>13)|0)+(jt>>>26)|0,jt&=67108863,r=Math.imul(q,U),n=(n=Math.imul(q,K))+Math.imul(D,U)|0,s=Math.imul(D,K),r=r+Math.imul(P,H)|0,n=(n=n+Math.imul(P,Z)|0)+Math.imul(N,H)|0,s=s+Math.imul(N,Z)|0,r=r+Math.imul(C,V)|0,n=(n=n+Math.imul(C,X)|0)+Math.imul(O,V)|0,s=s+Math.imul(O,X)|0,r=r+Math.imul(R,W)|0,n=(n=n+Math.imul(R,Y)|0)+Math.imul(I,W)|0,s=s+Math.imul(I,Y)|0,r=r+Math.imul(S,Q)|0,n=(n=n+Math.imul(S,tt)|0)+Math.imul(k,Q)|0,s=s+Math.imul(k,tt)|0,r=r+Math.imul(x,it)|0,n=(n=n+Math.imul(x,rt)|0)+Math.imul(j,it)|0,s=s+Math.imul(j,rt)|0,r=r+Math.imul(_,st)|0,n=(n=n+Math.imul(_,ot)|0)+Math.imul(w,st)|0,s=s+Math.imul(w,ot)|0,r=r+Math.imul(v,ht)|0,n=(n=n+Math.imul(v,dt)|0)+Math.imul(g,ht)|0,s=s+Math.imul(g,dt)|0,r=r+Math.imul(p,ft)|0,n=(n=n+Math.imul(p,lt)|0)+Math.imul(m,ft)|0,s=s+Math.imul(m,lt)|0;var Et=(d+(r=r+Math.imul(f,pt)|0)|0)+((8191&(n=(n=n+Math.imul(f,mt)|0)+Math.imul(l,pt)|0))<<13)|0;d=((s=s+Math.imul(l,mt)|0)+(n>>>13)|0)+(Et>>>26)|0,Et&=67108863,r=Math.imul(q,H),n=(n=Math.imul(q,Z))+Math.imul(D,H)|0,s=Math.imul(D,Z),r=r+Math.imul(P,V)|0,n=(n=n+Math.imul(P,X)|0)+Math.imul(N,V)|0,s=s+Math.imul(N,X)|0,r=r+Math.imul(C,W)|0,n=(n=n+Math.imul(C,Y)|0)+Math.imul(O,W)|0,s=s+Math.imul(O,Y)|0,r=r+Math.imul(R,Q)|0,n=(n=n+Math.imul(R,tt)|0)+Math.imul(I,Q)|0,s=s+Math.imul(I,tt)|0,r=r+Math.imul(S,it)|0,n=(n=n+Math.imul(S,rt)|0)+Math.imul(k,it)|0,s=s+Math.imul(k,rt)|0,r=r+Math.imul(x,st)|0,n=(n=n+Math.imul(x,ot)|0)+Math.imul(j,st)|0,s=s+Math.imul(j,ot)|0,r=r+Math.imul(_,ht)|0,n=(n=n+Math.imul(_,dt)|0)+Math.imul(w,ht)|0,s=s+Math.imul(w,dt)|0,r=r+Math.imul(v,ft)|0,n=(n=n+Math.imul(v,lt)|0)+Math.imul(g,ft)|0,s=s+Math.imul(g,lt)|0;var St=(d+(r=r+Math.imul(p,pt)|0)|0)+((8191&(n=(n=n+Math.imul(p,mt)|0)+Math.imul(m,pt)|0))<<13)|0;d=((s=s+Math.imul(m,mt)|0)+(n>>>13)|0)+(St>>>26)|0,St&=67108863,r=Math.imul(q,V),n=(n=Math.imul(q,X))+Math.imul(D,V)|0,s=Math.imul(D,X),r=r+Math.imul(P,W)|0,n=(n=n+Math.imul(P,Y)|0)+Math.imul(N,W)|0,s=s+Math.imul(N,Y)|0,r=r+Math.imul(C,Q)|0,n=(n=n+Math.imul(C,tt)|0)+Math.imul(O,Q)|0,s=s+Math.imul(O,tt)|0,r=r+Math.imul(R,it)|0,n=(n=n+Math.imul(R,rt)|0)+Math.imul(I,it)|0,s=s+Math.imul(I,rt)|0,r=r+Math.imul(S,st)|0,n=(n=n+Math.imul(S,ot)|0)+Math.imul(k,st)|0,s=s+Math.imul(k,ot)|0,r=r+Math.imul(x,ht)|0,n=(n=n+Math.imul(x,dt)|0)+Math.imul(j,ht)|0,s=s+Math.imul(j,dt)|0,r=r+Math.imul(_,ft)|0,n=(n=n+Math.imul(_,lt)|0)+Math.imul(w,ft)|0,s=s+Math.imul(w,lt)|0;var kt=(d+(r=r+Math.imul(v,pt)|0)|0)+((8191&(n=(n=n+Math.imul(v,mt)|0)+Math.imul(g,pt)|0))<<13)|0;d=((s=s+Math.imul(g,mt)|0)+(n>>>13)|0)+(kt>>>26)|0,kt&=67108863,r=Math.imul(q,W),n=(n=Math.imul(q,Y))+Math.imul(D,W)|0,s=Math.imul(D,Y),r=r+Math.imul(P,Q)|0,n=(n=n+Math.imul(P,tt)|0)+Math.imul(N,Q)|0,s=s+Math.imul(N,tt)|0,r=r+Math.imul(C,it)|0,n=(n=n+Math.imul(C,rt)|0)+Math.imul(O,it)|0,s=s+Math.imul(O,rt)|0,r=r+Math.imul(R,st)|0,n=(n=n+Math.imul(R,ot)|0)+Math.imul(I,st)|0,s=s+Math.imul(I,ot)|0,r=r+Math.imul(S,ht)|0,n=(n=n+Math.imul(S,dt)|0)+Math.imul(k,ht)|0,s=s+Math.imul(k,dt)|0,r=r+Math.imul(x,ft)|0,n=(n=n+Math.imul(x,lt)|0)+Math.imul(j,ft)|0,s=s+Math.imul(j,lt)|0;var At=(d+(r=r+Math.imul(_,pt)|0)|0)+((8191&(n=(n=n+Math.imul(_,mt)|0)+Math.imul(w,pt)|0))<<13)|0;d=((s=s+Math.imul(w,mt)|0)+(n>>>13)|0)+(At>>>26)|0,At&=67108863,r=Math.imul(q,Q),n=(n=Math.imul(q,tt))+Math.imul(D,Q)|0,s=Math.imul(D,tt),r=r+Math.imul(P,it)|0,n=(n=n+Math.imul(P,rt)|0)+Math.imul(N,it)|0,s=s+Math.imul(N,rt)|0,r=r+Math.imul(C,st)|0,n=(n=n+Math.imul(C,ot)|0)+Math.imul(O,st)|0,s=s+Math.imul(O,ot)|0,r=r+Math.imul(R,ht)|0,n=(n=n+Math.imul(R,dt)|0)+Math.imul(I,ht)|0,s=s+Math.imul(I,dt)|0,r=r+Math.imul(S,ft)|0,n=(n=n+Math.imul(S,lt)|0)+Math.imul(k,ft)|0,s=s+Math.imul(k,lt)|0;var Rt=(d+(r=r+Math.imul(x,pt)|0)|0)+((8191&(n=(n=n+Math.imul(x,mt)|0)+Math.imul(j,pt)|0))<<13)|0;d=((s=s+Math.imul(j,mt)|0)+(n>>>13)|0)+(Rt>>>26)|0,Rt&=67108863,r=Math.imul(q,it),n=(n=Math.imul(q,rt))+Math.imul(D,it)|0,s=Math.imul(D,rt),r=r+Math.imul(P,st)|0,n=(n=n+Math.imul(P,ot)|0)+Math.imul(N,st)|0,s=s+Math.imul(N,ot)|0,r=r+Math.imul(C,ht)|0,n=(n=n+Math.imul(C,dt)|0)+Math.imul(O,ht)|0,s=s+Math.imul(O,dt)|0,r=r+Math.imul(R,ft)|0,n=(n=n+Math.imul(R,lt)|0)+Math.imul(I,ft)|0,s=s+Math.imul(I,lt)|0;var It=(d+(r=r+Math.imul(S,pt)|0)|0)+((8191&(n=(n=n+Math.imul(S,mt)|0)+Math.imul(k,pt)|0))<<13)|0;d=((s=s+Math.imul(k,mt)|0)+(n>>>13)|0)+(It>>>26)|0,It&=67108863,r=Math.imul(q,st),n=(n=Math.imul(q,ot))+Math.imul(D,st)|0,s=Math.imul(D,ot),r=r+Math.imul(P,ht)|0,n=(n=n+Math.imul(P,dt)|0)+Math.imul(N,ht)|0,s=s+Math.imul(N,dt)|0,r=r+Math.imul(C,ft)|0,n=(n=n+Math.imul(C,lt)|0)+Math.imul(O,ft)|0,s=s+Math.imul(O,lt)|0;var Bt=(d+(r=r+Math.imul(R,pt)|0)|0)+((8191&(n=(n=n+Math.imul(R,mt)|0)+Math.imul(I,pt)|0))<<13)|0;d=((s=s+Math.imul(I,mt)|0)+(n>>>13)|0)+(Bt>>>26)|0,Bt&=67108863,r=Math.imul(q,ht),n=(n=Math.imul(q,dt))+Math.imul(D,ht)|0,s=Math.imul(D,dt),r=r+Math.imul(P,ft)|0,n=(n=n+Math.imul(P,lt)|0)+Math.imul(N,ft)|0,s=s+Math.imul(N,lt)|0;var Ct=(d+(r=r+Math.imul(C,pt)|0)|0)+((8191&(n=(n=n+Math.imul(C,mt)|0)+Math.imul(O,pt)|0))<<13)|0;d=((s=s+Math.imul(O,mt)|0)+(n>>>13)|0)+(Ct>>>26)|0,Ct&=67108863,r=Math.imul(q,ft),n=(n=Math.imul(q,lt))+Math.imul(D,ft)|0,s=Math.imul(D,lt);var Ot=(d+(r=r+Math.imul(P,pt)|0)|0)+((8191&(n=(n=n+Math.imul(P,mt)|0)+Math.imul(N,pt)|0))<<13)|0;d=((s=s+Math.imul(N,mt)|0)+(n>>>13)|0)+(Ot>>>26)|0,Ot&=67108863;var Tt=(d+(r=Math.imul(q,pt))|0)+((8191&(n=(n=Math.imul(q,mt))+Math.imul(D,pt)|0))<<13)|0;return d=((s=Math.imul(D,mt))+(n>>>13)|0)+(Tt>>>26)|0,Tt&=67108863,h[0]=bt,h[1]=vt,h[2]=gt,h[3]=yt,h[4]=_t,h[5]=wt,h[6]=Mt,h[7]=xt,h[8]=jt,h[9]=Et,h[10]=St,h[11]=kt,h[12]=At,h[13]=Rt,h[14]=It,h[15]=Bt,h[16]=Ct,h[17]=Ot,h[18]=Tt,0!==d&&(h[19]=d,i.length++),i};function p(t,e,i){return(new m).mulp(t,e,i)}function m(t,e){this.x=t,this.y=e}Math.imul||(c=l),s.prototype.mulTo=function(t,e){var i=this.length+t.length;return 10===this.length&&10===t.length?c(this,t,e):i<63?l(this,t,e):i<1024?function(t,e,i){i.negative=e.negative^t.negative,i.length=t.length+e.length;for(var r=0,n=0,s=0;s>>26)|0)>>>26,o&=67108863}i.words[s]=a,r=o,o=n}return 0!==r?i.words[s]=r:i.length--,i.strip()}(this,t,e):p(this,t,e)},m.prototype.makeRBT=function(t){for(var e=new Array(t),i=s.prototype._countBits(t)-1,r=0;r>=1;return r},m.prototype.permute=function(t,e,i,r,n,s){for(var o=0;o>>=1)n++;return 1<>>=13,i[2*o+1]=8191&s,s>>>=13;for(o=2*e;o>=26,e+=n/67108864|0,e+=s>>>26,this.words[i]=67108863&s}return 0!==e&&(this.words[i]=e,this.length++),this},s.prototype.muln=function(t){return this.clone().imuln(t)},s.prototype.sqr=function(){return this.mul(this)},s.prototype.isqr=function(){return this.imul(this.clone())},s.prototype.pow=function(t){var e=function(t){for(var e=new Array(t.bitLength()),i=0;i>>n}return e}(t);if(0===e.length)return new s(1);for(var i=this,r=0;r=0);var e,i=t%26,n=(t-i)/26,s=67108863>>>26-i<<26-i;if(0!==i){var o=0;for(e=0;e>>26-i}o&&(this.words[e]=o,this.length++)}if(0!==n){for(e=this.length-1;e>=0;e--)this.words[e+n]=this.words[e];for(e=0;e=0),n=e?(e-e%26)/26:0;var s=t%26,o=Math.min((t-s)/26,this.length),a=67108863^67108863>>>s<o)for(this.length-=o,d=0;d=0&&(0!==u||d>=n);d--){var f=0|this.words[d];this.words[d]=u<<26-s|f>>>s,u=f&a}return h&&0!==u&&(h.words[h.length++]=u),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},s.prototype.ishrn=function(t,e,i){return r(0===this.negative),this.iushrn(t,e,i)},s.prototype.shln=function(t){return this.clone().ishln(t)},s.prototype.ushln=function(t){return this.clone().iushln(t)},s.prototype.shrn=function(t){return this.clone().ishrn(t)},s.prototype.ushrn=function(t){return this.clone().iushrn(t)},s.prototype.testn=function(t){r("number"==typeof t&&t>=0);var e=t%26,i=(t-e)/26,n=1<=0);var e=t%26,i=(t-e)/26;if(r(0===this.negative,"imaskn works only with positive numbers"),this.length<=i)return this;if(0!==e&&i++,this.length=Math.min(i,this.length),0!==e){var n=67108863^67108863>>>e<=67108864;e++)this.words[e]-=67108864,e===this.length-1?this.words[e+1]=1:this.words[e+1]++;return this.length=Math.max(this.length,e+1),this},s.prototype.isubn=function(t){if(r("number"==typeof t),r(t<67108864),t<0)return this.iaddn(-t);if(0!==this.negative)return this.negative=0,this.iaddn(t),this.negative=1,this;if(this.words[0]-=t,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var e=0;e>26)-(h/67108864|0),this.words[n+i]=67108863&s}for(;n>26,this.words[n+i]=67108863&s;if(0===a)return this.strip();for(r(-1===a),a=0,n=0;n>26,this.words[n]=67108863&s;return this.negative=1,this.strip()},s.prototype._wordDiv=function(t,e){var i=(this.length,t.length),r=this.clone(),n=t,o=0|n.words[n.length-1];0!==(i=26-this._countBits(o))&&(n=n.ushln(i),r.iushln(i),o=0|n.words[n.length-1]);var a,h=r.length-n.length;if("mod"!==e){(a=new s(null)).length=h+1,a.words=new Array(a.length);for(var d=0;d=0;f--){var l=67108864*(0|r.words[n.length+f])+(0|r.words[n.length+f-1]);for(l=Math.min(l/o|0,67108863),r._ishlnsubmul(n,l,f);0!==r.negative;)l--,r.negative=0,r._ishlnsubmul(n,1,f),r.isZero()||(r.negative^=1);a&&(a.words[f]=l)}return a&&a.strip(),r.strip(),"div"!==e&&0!==i&&r.iushrn(i),{div:a||null,mod:r}},s.prototype.divmod=function(t,e,i){return r(!t.isZero()),this.isZero()?{div:new s(0),mod:new s(0)}:0!==this.negative&&0===t.negative?(a=this.neg().divmod(t,e),"mod"!==e&&(n=a.div.neg()),"div"!==e&&(o=a.mod.neg(),i&&0!==o.negative&&o.iadd(t)),{div:n,mod:o}):0===this.negative&&0!==t.negative?(a=this.divmod(t.neg(),e),"mod"!==e&&(n=a.div.neg()),{div:n,mod:a.mod}):0!=(this.negative&t.negative)?(a=this.neg().divmod(t.neg(),e),"div"!==e&&(o=a.mod.neg(),i&&0!==o.negative&&o.isub(t)),{div:a.div,mod:o}):t.length>this.length||this.cmp(t)<0?{div:new s(0),mod:this}:1===t.length?"div"===e?{div:this.divn(t.words[0]),mod:null}:"mod"===e?{div:null,mod:new s(this.modn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new s(this.modn(t.words[0]))}:this._wordDiv(t,e);var n,o,a},s.prototype.div=function(t){return this.divmod(t,"div",!1).div},s.prototype.mod=function(t){return this.divmod(t,"mod",!1).mod},s.prototype.umod=function(t){return this.divmod(t,"mod",!0).mod},s.prototype.divRound=function(t){var e=this.divmod(t);if(e.mod.isZero())return e.div;var i=0!==e.div.negative?e.mod.isub(t):e.mod,r=t.ushrn(1),n=t.andln(1),s=i.cmp(r);return s<0||1===n&&0===s?e.div:0!==e.div.negative?e.div.isubn(1):e.div.iaddn(1)},s.prototype.modn=function(t){r(t<=67108863);for(var e=(1<<26)%t,i=0,n=this.length-1;n>=0;n--)i=(e*i+(0|this.words[n]))%t;return i},s.prototype.idivn=function(t){r(t<=67108863);for(var e=0,i=this.length-1;i>=0;i--){var n=(0|this.words[i])+67108864*e;this.words[i]=n/t|0,e=n%t}return this.strip()},s.prototype.divn=function(t){return this.clone().idivn(t)},s.prototype.egcd=function(t){r(0===t.negative),r(!t.isZero());var e=this,i=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var n=new s(1),o=new s(0),a=new s(0),h=new s(1),d=0;e.isEven()&&i.isEven();)e.iushrn(1),i.iushrn(1),++d;for(var u=i.clone(),f=e.clone();!e.isZero();){for(var l=0,c=1;0==(e.words[0]&c)&&l<26;++l,c<<=1);if(l>0)for(e.iushrn(l);l-- >0;)(n.isOdd()||o.isOdd())&&(n.iadd(u),o.isub(f)),n.iushrn(1),o.iushrn(1);for(var p=0,m=1;0==(i.words[0]&m)&&p<26;++p,m<<=1);if(p>0)for(i.iushrn(p);p-- >0;)(a.isOdd()||h.isOdd())&&(a.iadd(u),h.isub(f)),a.iushrn(1),h.iushrn(1);e.cmp(i)>=0?(e.isub(i),n.isub(a),o.isub(h)):(i.isub(e),a.isub(n),h.isub(o))}return{a:a,b:h,gcd:i.iushln(d)}},s.prototype._invmp=function(t){r(0===t.negative),r(!t.isZero());var e=this,i=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var n,o=new s(1),a=new s(0),h=i.clone();e.cmpn(1)>0&&i.cmpn(1)>0;){for(var d=0,u=1;0==(e.words[0]&u)&&d<26;++d,u<<=1);if(d>0)for(e.iushrn(d);d-- >0;)o.isOdd()&&o.iadd(h),o.iushrn(1);for(var f=0,l=1;0==(i.words[0]&l)&&f<26;++f,l<<=1);if(f>0)for(i.iushrn(f);f-- >0;)a.isOdd()&&a.iadd(h),a.iushrn(1);e.cmp(i)>=0?(e.isub(i),o.isub(a)):(i.isub(e),a.isub(o))}return(n=0===e.cmpn(1)?o:a).cmpn(0)<0&&n.iadd(t),n},s.prototype.gcd=function(t){if(this.isZero())return t.abs();if(t.isZero())return this.abs();var e=this.clone(),i=t.clone();e.negative=0,i.negative=0;for(var r=0;e.isEven()&&i.isEven();r++)e.iushrn(1),i.iushrn(1);for(;;){for(;e.isEven();)e.iushrn(1);for(;i.isEven();)i.iushrn(1);var n=e.cmp(i);if(n<0){var s=e;e=i,i=s}else if(0===n||0===i.cmpn(1))break;e.isub(i)}return i.iushln(r)},s.prototype.invm=function(t){return this.egcd(t).a.umod(t)},s.prototype.isEven=function(){return 0==(1&this.words[0])},s.prototype.isOdd=function(){return 1==(1&this.words[0])},s.prototype.andln=function(t){return this.words[0]&t},s.prototype.bincn=function(t){r("number"==typeof t);var e=t%26,i=(t-e)/26,n=1<>>26,a&=67108863,this.words[o]=a}return 0!==s&&(this.words[o]=s,this.length++),this},s.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},s.prototype.cmpn=function(t){var e,i=t<0;if(0!==this.negative&&!i)return-1;if(0===this.negative&&i)return 1;if(this.strip(),this.length>1)e=1;else{i&&(t=-t),r(t<=67108863,"Number is too big");var n=0|this.words[0];e=n===t?0:nt.length)return 1;if(this.length=0;i--){var r=0|this.words[i],n=0|t.words[i];if(r!==n){rn&&(e=1);break}}return e},s.prototype.gtn=function(t){return 1===this.cmpn(t)},s.prototype.gt=function(t){return 1===this.cmp(t)},s.prototype.gten=function(t){return this.cmpn(t)>=0},s.prototype.gte=function(t){return this.cmp(t)>=0},s.prototype.ltn=function(t){return-1===this.cmpn(t)},s.prototype.lt=function(t){return-1===this.cmp(t)},s.prototype.lten=function(t){return this.cmpn(t)<=0},s.prototype.lte=function(t){return this.cmp(t)<=0},s.prototype.eqn=function(t){return 0===this.cmpn(t)},s.prototype.eq=function(t){return 0===this.cmp(t)},s.red=function(t){return new M(t)},s.prototype.toRed=function(t){return r(!this.red,"Already a number in reduction context"),r(0===this.negative,"red works only with positives"),t.convertTo(this)._forceRed(t)},s.prototype.fromRed=function(){return r(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},s.prototype._forceRed=function(t){return this.red=t,this},s.prototype.forceRed=function(t){return r(!this.red,"Already a number in reduction context"),this._forceRed(t)},s.prototype.redAdd=function(t){return r(this.red,"redAdd works only with red numbers"),this.red.add(this,t)},s.prototype.redIAdd=function(t){return r(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,t)},s.prototype.redSub=function(t){return r(this.red,"redSub works only with red numbers"),this.red.sub(this,t)},s.prototype.redISub=function(t){return r(this.red,"redISub works only with red numbers"),this.red.isub(this,t)},s.prototype.redShl=function(t){return r(this.red,"redShl works only with red numbers"),this.red.shl(this,t)},s.prototype.redMul=function(t){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.mul(this,t)},s.prototype.redIMul=function(t){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.imul(this,t)},s.prototype.redSqr=function(){return r(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},s.prototype.redISqr=function(){return r(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},s.prototype.redSqrt=function(){return r(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},s.prototype.redInvm=function(){return r(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},s.prototype.redNeg=function(){return r(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},s.prototype.redPow=function(t){return r(this.red&&!t.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,t)};var b={k256:null,p224:null,p192:null,p25519:null};function v(t,e){this.name=t,this.p=new s(e,16),this.n=this.p.bitLength(),this.k=new s(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function g(){v.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function y(){v.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function _(){v.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function w(){v.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function M(t){if("string"==typeof t){var e=s._prime(t);this.m=e.p,this.prime=e}else r(t.gtn(1),"modulus must be greater than 1"),this.m=t,this.prime=null}function x(t){M.call(this,t),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new s(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)}v.prototype._tmp=function(){var t=new s(null);return t.words=new Array(Math.ceil(this.n/13)),t},v.prototype.ireduce=function(t){var e,i=t;do{this.split(i,this.tmp),e=(i=(i=this.imulK(i)).iadd(this.tmp)).bitLength()}while(e>this.n);var r=e0?i.isub(this.p):i.strip(),i},v.prototype.split=function(t,e){t.iushrn(this.n,0,e)},v.prototype.imulK=function(t){return t.imul(this.k)},n(g,v),g.prototype.split=function(t,e){for(var i=Math.min(t.length,9),r=0;r>>22,n=s}n>>>=22,t.words[r-10]=n,0===n&&t.length>10?t.length-=10:t.length-=9},g.prototype.imulK=function(t){t.words[t.length]=0,t.words[t.length+1]=0,t.length+=2;for(var e=0,i=0;i>>=26,t.words[i]=n,e=r}return 0!==e&&(t.words[t.length++]=e),t},s._prime=function(t){if(b[t])return b[t];var e;if("k256"===t)e=new g;else if("p224"===t)e=new y;else if("p192"===t)e=new _;else{if("p25519"!==t)throw new Error("Unknown prime "+t);e=new w}return b[t]=e,e},M.prototype._verify1=function(t){r(0===t.negative,"red works only with positives"),r(t.red,"red works only with red numbers")},M.prototype._verify2=function(t,e){r(0==(t.negative|e.negative),"red works only with positives"),r(t.red&&t.red===e.red,"red works only with red numbers")},M.prototype.imod=function(t){return this.prime?this.prime.ireduce(t)._forceRed(this):t.umod(this.m)._forceRed(this)},M.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},M.prototype.add=function(t,e){this._verify2(t,e);var i=t.add(e);return i.cmp(this.m)>=0&&i.isub(this.m),i._forceRed(this)},M.prototype.iadd=function(t,e){this._verify2(t,e);var i=t.iadd(e);return i.cmp(this.m)>=0&&i.isub(this.m),i},M.prototype.sub=function(t,e){this._verify2(t,e);var i=t.sub(e);return i.cmpn(0)<0&&i.iadd(this.m),i._forceRed(this)},M.prototype.isub=function(t,e){this._verify2(t,e);var i=t.isub(e);return i.cmpn(0)<0&&i.iadd(this.m),i},M.prototype.shl=function(t,e){return this._verify1(t),this.imod(t.ushln(e))},M.prototype.imul=function(t,e){return this._verify2(t,e),this.imod(t.imul(e))},M.prototype.mul=function(t,e){return this._verify2(t,e),this.imod(t.mul(e))},M.prototype.isqr=function(t){return this.imul(t,t.clone())},M.prototype.sqr=function(t){return this.mul(t,t)},M.prototype.sqrt=function(t){if(t.isZero())return t.clone();var e=this.m.andln(3);if(r(e%2==1),3===e){var i=this.m.add(new s(1)).iushrn(2);return this.pow(t,i)}for(var n=this.m.subn(1),o=0;!n.isZero()&&0===n.andln(1);)o++,n.iushrn(1);r(!n.isZero());var a=new s(1).toRed(this),h=a.redNeg(),d=this.m.subn(1).iushrn(1),u=this.m.bitLength();for(u=new s(2*u*u).toRed(this);0!==this.pow(u,d).cmp(h);)u.redIAdd(h);for(var f=this.pow(u,n),l=this.pow(t,n.addn(1).iushrn(1)),c=this.pow(t,n),p=o;0!==c.cmp(a);){for(var m=c,b=0;0!==m.cmp(a);b++)m=m.redSqr();r(b=0;r--){for(var d=e.words[r],u=h-1;u>=0;u--){var f=d>>u&1;n!==i[0]&&(n=this.sqr(n)),0!==f||0!==o?(o<<=1,o|=f,(4===++a||0===r&&0===u)&&(n=this.mul(n,i[o]),a=0,o=0)):a=0}h=26}return n},M.prototype.convertTo=function(t){var e=t.umod(this.m);return e===t?e.clone():e},M.prototype.convertFrom=function(t){var e=t.clone();return e.red=null,e},s.mont=function(t){return new x(t)},n(x,M),x.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},x.prototype.convertFrom=function(t){var e=this.imod(t.mul(this.rinv));return e.red=null,e},x.prototype.imul=function(t,e){if(t.isZero()||e.isZero())return t.words[0]=0,t.length=1,t;var i=t.imul(e),r=i.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),n=i.isub(r).iushrn(this.shift),s=n;return n.cmp(this.m)>=0?s=n.isub(this.m):n.cmpn(0)<0&&(s=n.iadd(this.m)),s._forceRed(this)},x.prototype.mul=function(t,e){if(t.isZero()||e.isZero())return new s(0)._forceRed(this);var i=t.mul(e),r=i.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),n=i.isub(r).iushrn(this.shift),o=n;return n.cmp(this.m)>=0?o=n.isub(this.m):n.cmpn(0)<0&&(o=n.iadd(this.m)),o._forceRed(this)},x.prototype.invm=function(t){return this.imod(t._invmp(this.m).mul(this.r2))._forceRed(this)}}(t,this)}).call(this,i("../../node_modules/webpack/buildin/module.js")(t))},"../../node_modules/brorand/index.js":function(t,e,i){var r;function n(t){this.rand=t}if(t.exports=function(t){return r||(r=new n(null)),r.generate(t)},t.exports.Rand=n,n.prototype.generate=function(t){return this._rand(t)},n.prototype._rand=function(t){if(this.rand.getBytes)return this.rand.getBytes(t);for(var e=new Uint8Array(t),i=0;i>>24]^u[p>>>16&255]^f[m>>>8&255]^l[255&b]^e[v++],o=d[p>>>24]^u[m>>>16&255]^f[b>>>8&255]^l[255&c]^e[v++],a=d[m>>>24]^u[b>>>16&255]^f[c>>>8&255]^l[255&p]^e[v++],h=d[b>>>24]^u[c>>>16&255]^f[p>>>8&255]^l[255&m]^e[v++],c=s,p=o,m=a,b=h;return s=(r[c>>>24]<<24|r[p>>>16&255]<<16|r[m>>>8&255]<<8|r[255&b])^e[v++],o=(r[p>>>24]<<24|r[m>>>16&255]<<16|r[b>>>8&255]<<8|r[255&c])^e[v++],a=(r[m>>>24]<<24|r[b>>>16&255]<<16|r[c>>>8&255]<<8|r[255&p])^e[v++],h=(r[b>>>24]<<24|r[c>>>16&255]<<16|r[p>>>8&255]<<8|r[255&m])^e[v++],[s>>>=0,o>>>=0,a>>>=0,h>>>=0]}var a=[0,1,2,4,8,16,32,64,128,27,54],h=function(){for(var t=new Array(256),e=0;e<256;e++)t[e]=e<128?e<<1:e<<1^283;for(var i=[],r=[],n=[[],[],[],[]],s=[[],[],[],[]],o=0,a=0,h=0;h<256;++h){var d=a^a<<1^a<<2^a<<3^a<<4;d=d>>>8^255&d^99,i[o]=d,r[d]=o;var u=t[o],f=t[u],l=t[f],c=257*t[d]^16843008*d;n[0][o]=c<<24|c>>>8,n[1][o]=c<<16|c>>>16,n[2][o]=c<<8|c>>>24,n[3][o]=c,c=16843009*l^65537*f^257*u^16843008*o,s[0][d]=c<<24|c>>>8,s[1][d]=c<<16|c>>>16,s[2][d]=c<<8|c>>>24,s[3][d]=c,0===o?o=a=1:(o=u^t[t[t[l^u]]],a^=t[t[a]])}return{SBOX:i,INV_SBOX:r,SUB_MIX:n,INV_SUB_MIX:s}}();function d(t){this._key=n(t),this._reset()}d.blockSize=16,d.keySize=32,d.prototype.blockSize=d.blockSize,d.prototype.keySize=d.keySize,d.prototype._reset=function(){for(var t=this._key,e=t.length,i=e+6,r=4*(i+1),n=[],s=0;s>>24,o=h.SBOX[o>>>24]<<24|h.SBOX[o>>>16&255]<<16|h.SBOX[o>>>8&255]<<8|h.SBOX[255&o],o^=a[s/e|0]<<24):e>6&&s%e==4&&(o=h.SBOX[o>>>24]<<24|h.SBOX[o>>>16&255]<<16|h.SBOX[o>>>8&255]<<8|h.SBOX[255&o]),n[s]=n[s-e]^o}for(var d=[],u=0;u>>24]]^h.INV_SUB_MIX[1][h.SBOX[l>>>16&255]]^h.INV_SUB_MIX[2][h.SBOX[l>>>8&255]]^h.INV_SUB_MIX[3][h.SBOX[255&l]]}this._nRounds=i,this._keySchedule=n,this._invKeySchedule=d},d.prototype.encryptBlockRaw=function(t){return o(t=n(t),this._keySchedule,h.SUB_MIX,h.SBOX,this._nRounds)},d.prototype.encryptBlock=function(t){var e=this.encryptBlockRaw(t),i=r.allocUnsafe(16);return i.writeUInt32BE(e[0],0),i.writeUInt32BE(e[1],4),i.writeUInt32BE(e[2],8),i.writeUInt32BE(e[3],12),i},d.prototype.decryptBlock=function(t){var e=(t=n(t))[1];t[1]=t[3],t[3]=e;var i=o(t,this._invKeySchedule,h.INV_SUB_MIX,h.INV_SBOX,this._nRounds),s=r.allocUnsafe(16);return s.writeUInt32BE(i[0],0),s.writeUInt32BE(i[3],4),s.writeUInt32BE(i[2],8),s.writeUInt32BE(i[1],12),s},d.prototype.scrub=function(){s(this._keySchedule),s(this._invKeySchedule),s(this._key)},t.exports.AES=d},"../../node_modules/browserify-aes/authCipher.js":function(t,e,i){var r=i("../../node_modules/browserify-aes/aes.js"),n=i("../../node_modules/safe-buffer/index.js").Buffer,s=i("../../node_modules/cipher-base/index.js"),o=i("../../node_modules/inherits/inherits_browser.js"),a=i("../../node_modules/browserify-aes/ghash.js"),h=i("../../node_modules/buffer-xor/index.js"),d=i("../../node_modules/browserify-aes/incr32.js");function u(t,e,i,o){s.call(this);var h=n.alloc(4,0);this._cipher=new r.AES(e);var u=this._cipher.encryptBlock(h);this._ghash=new a(u),i=function(t,e,i){if(12===e.length)return t._finID=n.concat([e,n.from([0,0,0,1])]),n.concat([e,n.from([0,0,0,2])]);var r=new a(i),s=e.length,o=s%16;r.update(e),o&&(o=16-o,r.update(n.alloc(o,0))),r.update(n.alloc(8,0));var h=8*s,u=n.alloc(8);u.writeUIntBE(h,0,8),r.update(u),t._finID=r.state;var f=n.from(t._finID);return d(f),f}(this,i,u),this._prev=n.from(i),this._cache=n.allocUnsafe(0),this._secCache=n.allocUnsafe(0),this._decrypt=o,this._alen=0,this._len=0,this._mode=t,this._authTag=null,this._called=!1}o(u,s),u.prototype._update=function(t){if(!this._called&&this._alen){var e=16-this._alen%16;e<16&&(e=n.alloc(e,0),this._ghash.update(e))}this._called=!0;var i=this._mode.encrypt(this,t);return this._decrypt?this._ghash.update(t):this._ghash.update(i),this._len+=t.length,i},u.prototype._final=function(){if(this._decrypt&&!this._authTag)throw new Error("Unsupported state or unable to authenticate data");var t=h(this._ghash.final(8*this._alen,8*this._len),this._cipher.encryptBlock(this._finID));if(this._decrypt&&function(t,e){var i=0;t.length!==e.length&&i++;for(var r=Math.min(t.length,e.length),n=0;n16)throw new Error("unable to decrypt data");var i=-1;for(;++i16)return e=this.cache.slice(0,16),this.cache=this.cache.slice(16),e}else if(this.cache.length>=16)return e=this.cache.slice(0,16),this.cache=this.cache.slice(16),e;return null},f.prototype.flush=function(){if(this.cache.length)return this.cache},e.createDecipher=function(t,e){var i=s[t.toLowerCase()];if(!i)throw new TypeError("invalid suite type");var r=d(e,!1,i.key,i.iv);return l(t,r.key,r.iv)},e.createDecipheriv=l},"../../node_modules/browserify-aes/encrypter.js":function(t,e,i){var r=i("../../node_modules/browserify-aes/modes/index.js"),n=i("../../node_modules/browserify-aes/authCipher.js"),s=i("../../node_modules/safe-buffer/index.js").Buffer,o=i("../../node_modules/browserify-aes/streamCipher.js"),a=i("../../node_modules/cipher-base/index.js"),h=i("../../node_modules/browserify-aes/aes.js"),d=i("../../node_modules/evp_bytestokey/index.js");function u(t,e,i){a.call(this),this._cache=new l,this._cipher=new h.AES(e),this._prev=s.from(i),this._mode=t,this._autopadding=!0}i("../../node_modules/inherits/inherits_browser.js")(u,a),u.prototype._update=function(t){var e,i;this._cache.add(t);for(var r=[];e=this._cache.get();)i=this._mode.encrypt(this,e),r.push(i);return s.concat(r)};var f=s.alloc(16,16);function l(){this.cache=s.allocUnsafe(0)}function c(t,e,i){var a=r[t.toLowerCase()];if(!a)throw new TypeError("invalid suite type");if("string"==typeof e&&(e=s.from(e)),e.length!==a.key/8)throw new TypeError("invalid key length "+e.length);if("string"==typeof i&&(i=s.from(i)),"GCM"!==a.mode&&i.length!==a.iv)throw new TypeError("invalid iv length "+i.length);return"stream"===a.type?new o(a.module,e,i):"auth"===a.type?new n(a.module,e,i):new u(a.module,e,i)}u.prototype._final=function(){var t=this._cache.flush();if(this._autopadding)return t=this._mode.encrypt(this,t),this._cipher.scrub(),t;if(!t.equals(f))throw this._cipher.scrub(),new Error("data not multiple of block length")},u.prototype.setAutoPadding=function(t){return this._autopadding=!!t,this},l.prototype.add=function(t){this.cache=s.concat([this.cache,t])},l.prototype.get=function(){if(this.cache.length>15){var t=this.cache.slice(0,16);return this.cache=this.cache.slice(16),t}return null},l.prototype.flush=function(){for(var t=16-this.cache.length,e=s.allocUnsafe(t),i=-1;++i>>0,0),e.writeUInt32BE(t[1]>>>0,4),e.writeUInt32BE(t[2]>>>0,8),e.writeUInt32BE(t[3]>>>0,12),e}function o(t){this.h=t,this.state=r.alloc(16,0),this.cache=r.allocUnsafe(0)}o.prototype.ghash=function(t){for(var e=-1;++e0;e--)r[e]=r[e]>>>1|(1&r[e-1])<<31;r[0]=r[0]>>>1,i&&(r[0]=r[0]^225<<24)}this.state=s(n)},o.prototype.update=function(t){var e;for(this.cache=r.concat([this.cache,t]);this.cache.length>=16;)e=this.cache.slice(0,16),this.cache=this.cache.slice(16),this.ghash(e)},o.prototype.final=function(t,e){return this.cache.length&&this.ghash(r.concat([this.cache,n],16)),this.ghash(s([0,t,0,e])),this.state},t.exports=o},"../../node_modules/browserify-aes/incr32.js":function(t,e){t.exports=function(t){for(var e,i=t.length;i--;){if(255!==(e=t.readUInt8(i))){e++,t.writeUInt8(e,i);break}t.writeUInt8(0,i)}}},"../../node_modules/browserify-aes/modes/cbc.js":function(t,e,i){var r=i("../../node_modules/buffer-xor/index.js");e.encrypt=function(t,e){var i=r(e,t._prev);return t._prev=t._cipher.encryptBlock(i),t._prev},e.decrypt=function(t,e){var i=t._prev;t._prev=e;var n=t._cipher.decryptBlock(e);return r(n,i)}},"../../node_modules/browserify-aes/modes/cfb.js":function(t,e,i){var r=i("../../node_modules/safe-buffer/index.js").Buffer,n=i("../../node_modules/buffer-xor/index.js");function s(t,e,i){var s=e.length,o=n(e,t._cache);return t._cache=t._cache.slice(s),t._prev=r.concat([t._prev,i?e:o]),o}e.encrypt=function(t,e,i){for(var n,o=r.allocUnsafe(0);e.length;){if(0===t._cache.length&&(t._cache=t._cipher.encryptBlock(t._prev),t._prev=r.allocUnsafe(0)),!(t._cache.length<=e.length)){o=r.concat([o,s(t,e,i)]);break}n=t._cache.length,o=r.concat([o,s(t,e.slice(0,n),i)]),e=e.slice(n)}return o}},"../../node_modules/browserify-aes/modes/cfb1.js":function(t,e,i){var r=i("../../node_modules/safe-buffer/index.js").Buffer;function n(t,e,i){for(var r,n,o=-1,a=0;++o<8;)r=e&1<<7-o?128:0,a+=(128&(n=t._cipher.encryptBlock(t._prev)[0]^r))>>o%8,t._prev=s(t._prev,i?r:n);return a}function s(t,e){var i=t.length,n=-1,s=r.allocUnsafe(t.length);for(t=r.concat([t,r.from([e])]);++n>7;return s}e.encrypt=function(t,e,i){for(var s=e.length,o=r.allocUnsafe(s),a=-1;++a=0||!i.umod(t.prime1)||!i.umod(t.prime2);)i=new r(n(e));return i}t.exports=s,s.getr=o}).call(this,i("../../node_modules/buffer/index.js").Buffer)},"../../node_modules/browserify-sign/algos.js":function(t,e,i){"use strict";t.exports=i("../../node_modules/browserify-sign/browser/algorithms.json")},"../../node_modules/browserify-sign/browser/algorithms.json":function(t){t.exports=JSON.parse('{"sha224WithRSAEncryption":{"sign":"rsa","hash":"sha224","id":"302d300d06096086480165030402040500041c"},"RSA-SHA224":{"sign":"ecdsa/rsa","hash":"sha224","id":"302d300d06096086480165030402040500041c"},"sha256WithRSAEncryption":{"sign":"rsa","hash":"sha256","id":"3031300d060960864801650304020105000420"},"RSA-SHA256":{"sign":"ecdsa/rsa","hash":"sha256","id":"3031300d060960864801650304020105000420"},"sha384WithRSAEncryption":{"sign":"rsa","hash":"sha384","id":"3041300d060960864801650304020205000430"},"RSA-SHA384":{"sign":"ecdsa/rsa","hash":"sha384","id":"3041300d060960864801650304020205000430"},"sha512WithRSAEncryption":{"sign":"rsa","hash":"sha512","id":"3051300d060960864801650304020305000440"},"RSA-SHA512":{"sign":"ecdsa/rsa","hash":"sha512","id":"3051300d060960864801650304020305000440"},"RSA-SHA1":{"sign":"rsa","hash":"sha1","id":"3021300906052b0e03021a05000414"},"ecdsa-with-SHA1":{"sign":"ecdsa","hash":"sha1","id":""},"sha256":{"sign":"ecdsa","hash":"sha256","id":""},"sha224":{"sign":"ecdsa","hash":"sha224","id":""},"sha384":{"sign":"ecdsa","hash":"sha384","id":""},"sha512":{"sign":"ecdsa","hash":"sha512","id":""},"DSA-SHA":{"sign":"dsa","hash":"sha1","id":""},"DSA-SHA1":{"sign":"dsa","hash":"sha1","id":""},"DSA":{"sign":"dsa","hash":"sha1","id":""},"DSA-WITH-SHA224":{"sign":"dsa","hash":"sha224","id":""},"DSA-SHA224":{"sign":"dsa","hash":"sha224","id":""},"DSA-WITH-SHA256":{"sign":"dsa","hash":"sha256","id":""},"DSA-SHA256":{"sign":"dsa","hash":"sha256","id":""},"DSA-WITH-SHA384":{"sign":"dsa","hash":"sha384","id":""},"DSA-SHA384":{"sign":"dsa","hash":"sha384","id":""},"DSA-WITH-SHA512":{"sign":"dsa","hash":"sha512","id":""},"DSA-SHA512":{"sign":"dsa","hash":"sha512","id":""},"DSA-RIPEMD160":{"sign":"dsa","hash":"rmd160","id":""},"ripemd160WithRSA":{"sign":"rsa","hash":"rmd160","id":"3021300906052b2403020105000414"},"RSA-RIPEMD160":{"sign":"rsa","hash":"rmd160","id":"3021300906052b2403020105000414"},"md5WithRSAEncryption":{"sign":"rsa","hash":"md5","id":"3020300c06082a864886f70d020505000410"},"RSA-MD5":{"sign":"rsa","hash":"md5","id":"3020300c06082a864886f70d020505000410"}}')},"../../node_modules/browserify-sign/browser/curves.json":function(t){t.exports=JSON.parse('{"1.3.132.0.10":"secp256k1","1.3.132.0.33":"p224","1.2.840.10045.3.1.1":"p192","1.2.840.10045.3.1.7":"p256","1.3.132.0.34":"p384","1.3.132.0.35":"p521"}')},"../../node_modules/browserify-sign/browser/index.js":function(t,e,i){"use strict";var r=i("../../node_modules/safe-buffer/index.js").Buffer,n=i("../../node_modules/create-hash/browser.js"),s=i("../../node_modules/browserify-sign/node_modules/readable-stream/readable-browser.js"),o=i("../../node_modules/inherits/inherits_browser.js"),a=i("../../node_modules/browserify-sign/browser/sign.js"),h=i("../../node_modules/browserify-sign/browser/verify.js"),d=i("../../node_modules/browserify-sign/browser/algorithms.json");function u(t){s.Writable.call(this);var e=d[t];if(!e)throw new Error("Unknown message digest");this._hashType=e.hash,this._hash=n(e.hash),this._tag=e.id,this._signType=e.sign}function f(t){s.Writable.call(this);var e=d[t];if(!e)throw new Error("Unknown message digest");this._hash=n(e.hash),this._tag=e.id,this._signType=e.sign}function l(t){return new u(t)}function c(t){return new f(t)}Object.keys(d).forEach((function(t){d[t].id=r.from(d[t].id,"hex"),d[t.toLowerCase()]=d[t]})),o(u,s.Writable),u.prototype._write=function(t,e,i){this._hash.update(t),i()},u.prototype.update=function(t,e){return this._hash.update("string"==typeof t?r.from(t,e):t),this},u.prototype.sign=function(t,e){this.end();var i=this._hash.digest(),r=a(i,t,this._hashType,this._signType,this._tag);return e?r.toString(e):r},o(f,s.Writable),f.prototype._write=function(t,e,i){this._hash.update(t),i()},f.prototype.update=function(t,e){return this._hash.update("string"==typeof t?r.from(t,e):t),this},f.prototype.verify=function(t,e,i){var n="string"==typeof e?r.from(e,i):e;this.end();var s=this._hash.digest();return h(n,s,t,this._signType,this._tag)},t.exports={Sign:l,Verify:c,createSign:l,createVerify:c}},"../../node_modules/browserify-sign/browser/sign.js":function(t,e,i){"use strict";var r=i("../../node_modules/safe-buffer/index.js").Buffer,n=i("../../node_modules/create-hmac/browser.js"),s=i("../../node_modules/browserify-sign/node_modules/browserify-rsa/index.js"),o=i("../../node_modules/elliptic/lib/elliptic.js").ec,a=i("../../node_modules/browserify-sign/node_modules/bn.js/lib/bn.js"),h=i("../../node_modules/browserify-sign/node_modules/parse-asn1/index.js"),d=i("../../node_modules/browserify-sign/browser/curves.json");function u(t,e,i,s){if((t=r.from(t.toArray())).length0&&i.ishrn(r),i}function l(t,e,i){var s,o;do{for(s=r.alloc(0);8*s.length=0)throw new Error("invalid sig")}t.exports=function(t,e,i,d,u){var f=o(i);if("ec"===f.type){if("ecdsa"!==d&&"ecdsa/rsa"!==d)throw new Error("wrong public key type");return function(t,e,i){var r=a[i.data.algorithm.curve.join(".")];if(!r)throw new Error("unknown curve "+i.data.algorithm.curve.join("."));var n=new s(r),o=i.data.subjectPrivateKey.data;return n.verify(e,t,o)}(t,e,f)}if("dsa"===f.type){if("dsa"!==d)throw new Error("wrong public key type");return function(t,e,i){var r=i.data.p,s=i.data.q,a=i.data.g,d=i.data.pub_key,u=o.signature.decode(t,"der"),f=u.s,l=u.r;h(f,s),h(l,s);var c=n.mont(r),p=f.invm(s);return 0===a.toRed(c).redPow(new n(e).mul(p).mod(s)).fromRed().mul(d.toRed(c).redPow(l.mul(p).mod(s)).fromRed()).mod(r).mod(s).cmp(l)}(t,e,f)}if("rsa"!==d&&"ecdsa/rsa"!==d)throw new Error("wrong public key type");e=r.concat([u,e]);for(var l=f.modulus.byteLength(),c=[1],p=0;e.length+c.length+2>6],n=0==(32&i);if(31==(31&i)){let r=i;for(i=0;128==(128&r);){if(r=t.readUInt8(e),t.isError(r))return r;i<<=7,i|=127&r}}else i&=31;return{cls:r,primitive:n,tag:i,tagStr:a.tag[i]}}function f(t,e,i){let r=t.readUInt8(i);if(t.isError(r))return r;if(!e&&128===r)return null;if(0==(128&r))return r;const n=127&r;if(n>4)return t.error("length octect is too long");r=0;for(let e=0;e=31)return r.error("Multi-octet tag encoding unsupported");e||(n|=32);return n|=o.tagClassByName[i||"universal"]<<6,n}(t,e,i,this.reporter);if(r.length<128){const t=n.alloc(2);return t[0]=s,t[1]=r.length,this._createEncoderBuffer([t,r])}let a=1;for(let t=r.length;t>=256;t>>=8)a++;const h=n.alloc(2+a);h[0]=s,h[1]=128|a;for(let t=1+a,e=r.length;e>0;t--,e>>=8)h[t]=255&e;return this._createEncoderBuffer([h,r])},h.prototype._encodeStr=function(t,e){if("bitstr"===e)return this._createEncoderBuffer([0|t.unused,t.data]);if("bmpstr"===e){const e=n.alloc(2*t.length);for(let i=0;i=40)return this.reporter.error("Second objid identifier OOB");t.splice(0,2,40*t[0]+t[1])}let r=0;for(let e=0;e=128;i>>=7)r++}const s=n.alloc(r);let o=s.length-1;for(let e=t.length-1;e>=0;e--){let i=t[e];for(s[o--]=127&i;(i>>=7)>0;)s[o--]=128|127&i}return this._createEncoderBuffer(s)},h.prototype._encodeTime=function(t,e){let i;const r=new Date(t);return"gentime"===e?i=[d(r.getUTCFullYear()),d(r.getUTCMonth()+1),d(r.getUTCDate()),d(r.getUTCHours()),d(r.getUTCMinutes()),d(r.getUTCSeconds()),"Z"].join(""):"utctime"===e?i=[d(r.getUTCFullYear()%100),d(r.getUTCMonth()+1),d(r.getUTCDate()),d(r.getUTCHours()),d(r.getUTCMinutes()),d(r.getUTCSeconds()),"Z"].join(""):this.reporter.error("Encoding "+e+" time is not supported yet"),this._encodeStr(i,"octstr")},h.prototype._encodeNull=function(){return this._createEncoderBuffer("")},h.prototype._encodeInt=function(t,e){if("string"==typeof t){if(!e)return this.reporter.error("String int or enum given, but no values map");if(!e.hasOwnProperty(t))return this.reporter.error("Values map doesn't contain: "+JSON.stringify(t));t=e[t]}if("number"!=typeof t&&!n.isBuffer(t)){const e=t.toArray();!t.sign&&128&e[0]&&e.unshift(0),t=n.from(e)}if(n.isBuffer(t)){let e=t.length;0===t.length&&e++;const i=n.alloc(e);return t.copy(i),0===t.length&&(i[0]=0),this._createEncoderBuffer(i)}if(t<128)return this._createEncoderBuffer(t);if(t<256)return this._createEncoderBuffer([0,t]);let i=1;for(let e=t;e>=256;e>>=8)i++;const r=new Array(i);for(let e=r.length-1;e>=0;e--)r[e]=255&t,t>>=8;return 128&r[0]&&r.unshift(0),this._createEncoderBuffer(n.from(r))},h.prototype._encodeBool=function(t){return this._createEncoderBuffer(t?255:0)},h.prototype._use=function(t,e){return"function"==typeof t&&(t=t(e)),t._getEncoder("der").tree},h.prototype._skipDefault=function(t,e,i){const r=this._baseState;let n;if(null===r.default)return!1;const s=t.join();if(void 0===r.defaultBuffer&&(r.defaultBuffer=this._encodeValue(r.default,e,i).join()),s.length!==r.defaultBuffer.length)return!1;for(n=0;n=49&&o<=54?o-49+10:o>=17&&o<=22?o-17+10:15&o}return r}function h(t,e,i,r){for(var n=0,s=Math.min(t.length,i),o=e;o=49?a-49+10:a>=17?a-17+10:a}return n}s.isBN=function(t){return t instanceof s||null!==t&&"object"==typeof t&&t.constructor.wordSize===s.wordSize&&Array.isArray(t.words)},s.max=function(t,e){return t.cmp(e)>0?t:e},s.min=function(t,e){return t.cmp(e)<0?t:e},s.prototype._init=function(t,e,i){if("number"==typeof t)return this._initNumber(t,e,i);if("object"==typeof t)return this._initArray(t,e,i);"hex"===e&&(e=16),r(e===(0|e)&&e>=2&&e<=36);var n=0;"-"===(t=t.toString().replace(/\s+/g,""))[0]&&n++,16===e?this._parseHex(t,n):this._parseBase(t,e,n),"-"===t[0]&&(this.negative=1),this.strip(),"le"===i&&this._initArray(this.toArray(),e,i)},s.prototype._initNumber=function(t,e,i){t<0&&(this.negative=1,t=-t),t<67108864?(this.words=[67108863&t],this.length=1):t<4503599627370496?(this.words=[67108863&t,t/67108864&67108863],this.length=2):(r(t<9007199254740992),this.words=[67108863&t,t/67108864&67108863,1],this.length=3),"le"===i&&this._initArray(this.toArray(),e,i)},s.prototype._initArray=function(t,e,i){if(r("number"==typeof t.length),t.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(t.length/3),this.words=new Array(this.length);for(var n=0;n=0;n-=3)o=t[n]|t[n-1]<<8|t[n-2]<<16,this.words[s]|=o<>>26-a&67108863,(a+=24)>=26&&(a-=26,s++);else if("le"===i)for(n=0,s=0;n>>26-a&67108863,(a+=24)>=26&&(a-=26,s++);return this.strip()},s.prototype._parseHex=function(t,e){this.length=Math.ceil((t.length-e)/6),this.words=new Array(this.length);for(var i=0;i=e;i-=6)n=a(t,i,i+6),this.words[r]|=n<>>26-s&4194303,(s+=24)>=26&&(s-=26,r++);i+6!==e&&(n=a(t,e,i+6),this.words[r]|=n<>>26-s&4194303),this.strip()},s.prototype._parseBase=function(t,e,i){this.words=[0],this.length=1;for(var r=0,n=1;n<=67108863;n*=e)r++;r--,n=n/e|0;for(var s=t.length-i,o=s%r,a=Math.min(s,s-o)+i,d=0,u=i;u1&&0===this.words[this.length-1];)this.length--;return this._normSign()},s.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},s.prototype.inspect=function(){return(this.red?""};var d=["","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"],u=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],f=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function l(t,e,i){i.negative=e.negative^t.negative;var r=t.length+e.length|0;i.length=r,r=r-1|0;var n=0|t.words[0],s=0|e.words[0],o=n*s,a=67108863&o,h=o/67108864|0;i.words[0]=a;for(var d=1;d>>26,f=67108863&h,l=Math.min(d,e.length-1),c=Math.max(0,d-t.length+1);c<=l;c++){var p=d-c|0;u+=(o=(n=0|t.words[p])*(s=0|e.words[c])+f)/67108864|0,f=67108863&o}i.words[d]=0|f,h=0|u}return 0!==h?i.words[d]=0|h:i.length--,i.strip()}s.prototype.toString=function(t,e){var i;if(e=0|e||1,16===(t=t||10)||"hex"===t){i="";for(var n=0,s=0,o=0;o>>24-n&16777215)||o!==this.length-1?d[6-h.length]+h+i:h+i,(n+=2)>=26&&(n-=26,o--)}for(0!==s&&(i=s.toString(16)+i);i.length%e!=0;)i="0"+i;return 0!==this.negative&&(i="-"+i),i}if(t===(0|t)&&t>=2&&t<=36){var l=u[t],c=f[t];i="";var p=this.clone();for(p.negative=0;!p.isZero();){var m=p.modn(c).toString(t);i=(p=p.idivn(c)).isZero()?m+i:d[l-m.length]+m+i}for(this.isZero()&&(i="0"+i);i.length%e!=0;)i="0"+i;return 0!==this.negative&&(i="-"+i),i}r(!1,"Base should be between 2 and 36")},s.prototype.toNumber=function(){var t=this.words[0];return 2===this.length?t+=67108864*this.words[1]:3===this.length&&1===this.words[2]?t+=4503599627370496+67108864*this.words[1]:this.length>2&&r(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-t:t},s.prototype.toJSON=function(){return this.toString(16)},s.prototype.toBuffer=function(t,e){return r(void 0!==o),this.toArrayLike(o,t,e)},s.prototype.toArray=function(t,e){return this.toArrayLike(Array,t,e)},s.prototype.toArrayLike=function(t,e,i){var n=this.byteLength(),s=i||Math.max(1,n);r(n<=s,"byte array longer than desired length"),r(s>0,"Requested array length <= 0"),this.strip();var o,a,h="le"===e,d=new t(s),u=this.clone();if(h){for(a=0;!u.isZero();a++)o=u.andln(255),u.iushrn(8),d[a]=o;for(;a=4096&&(i+=13,e>>>=13),e>=64&&(i+=7,e>>>=7),e>=8&&(i+=4,e>>>=4),e>=2&&(i+=2,e>>>=2),i+e},s.prototype._zeroBits=function(t){if(0===t)return 26;var e=t,i=0;return 0==(8191&e)&&(i+=13,e>>>=13),0==(127&e)&&(i+=7,e>>>=7),0==(15&e)&&(i+=4,e>>>=4),0==(3&e)&&(i+=2,e>>>=2),0==(1&e)&&i++,i},s.prototype.bitLength=function(){var t=this.words[this.length-1],e=this._countBits(t);return 26*(this.length-1)+e},s.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,e=0;et.length?this.clone().ior(t):t.clone().ior(this)},s.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},s.prototype.iuand=function(t){var e;e=this.length>t.length?t:this;for(var i=0;it.length?this.clone().iand(t):t.clone().iand(this)},s.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},s.prototype.iuxor=function(t){var e,i;this.length>t.length?(e=this,i=t):(e=t,i=this);for(var r=0;rt.length?this.clone().ixor(t):t.clone().ixor(this)},s.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},s.prototype.inotn=function(t){r("number"==typeof t&&t>=0);var e=0|Math.ceil(t/26),i=t%26;this._expand(e),i>0&&e--;for(var n=0;n0&&(this.words[n]=~this.words[n]&67108863>>26-i),this.strip()},s.prototype.notn=function(t){return this.clone().inotn(t)},s.prototype.setn=function(t,e){r("number"==typeof t&&t>=0);var i=t/26|0,n=t%26;return this._expand(i+1),this.words[i]=e?this.words[i]|1<t.length?(i=this,r=t):(i=t,r=this);for(var n=0,s=0;s>>26;for(;0!==n&&s>>26;if(this.length=i.length,0!==n)this.words[this.length]=n,this.length++;else if(i!==this)for(;st.length?this.clone().iadd(t):t.clone().iadd(this)},s.prototype.isub=function(t){if(0!==t.negative){t.negative=0;var e=this.iadd(t);return t.negative=1,e._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(t),this.negative=1,this._normSign();var i,r,n=this.cmp(t);if(0===n)return this.negative=0,this.length=1,this.words[0]=0,this;n>0?(i=this,r=t):(i=t,r=this);for(var s=0,o=0;o>26,this.words[o]=67108863&e;for(;0!==s&&o>26,this.words[o]=67108863&e;if(0===s&&o>>13,c=0|o[1],p=8191&c,m=c>>>13,b=0|o[2],v=8191&b,g=b>>>13,y=0|o[3],_=8191&y,w=y>>>13,M=0|o[4],x=8191&M,j=M>>>13,E=0|o[5],S=8191&E,k=E>>>13,A=0|o[6],R=8191&A,I=A>>>13,B=0|o[7],C=8191&B,O=B>>>13,T=0|o[8],P=8191&T,N=T>>>13,L=0|o[9],q=8191&L,D=L>>>13,z=0|a[0],U=8191&z,K=z>>>13,F=0|a[1],H=8191&F,Z=F>>>13,G=0|a[2],V=8191&G,X=G>>>13,$=0|a[3],W=8191&$,Y=$>>>13,J=0|a[4],Q=8191&J,tt=J>>>13,et=0|a[5],it=8191&et,rt=et>>>13,nt=0|a[6],st=8191&nt,ot=nt>>>13,at=0|a[7],ht=8191&at,dt=at>>>13,ut=0|a[8],ft=8191&ut,lt=ut>>>13,ct=0|a[9],pt=8191&ct,mt=ct>>>13;i.negative=t.negative^e.negative,i.length=19;var bt=(d+(r=Math.imul(f,U))|0)+((8191&(n=(n=Math.imul(f,K))+Math.imul(l,U)|0))<<13)|0;d=((s=Math.imul(l,K))+(n>>>13)|0)+(bt>>>26)|0,bt&=67108863,r=Math.imul(p,U),n=(n=Math.imul(p,K))+Math.imul(m,U)|0,s=Math.imul(m,K);var vt=(d+(r=r+Math.imul(f,H)|0)|0)+((8191&(n=(n=n+Math.imul(f,Z)|0)+Math.imul(l,H)|0))<<13)|0;d=((s=s+Math.imul(l,Z)|0)+(n>>>13)|0)+(vt>>>26)|0,vt&=67108863,r=Math.imul(v,U),n=(n=Math.imul(v,K))+Math.imul(g,U)|0,s=Math.imul(g,K),r=r+Math.imul(p,H)|0,n=(n=n+Math.imul(p,Z)|0)+Math.imul(m,H)|0,s=s+Math.imul(m,Z)|0;var gt=(d+(r=r+Math.imul(f,V)|0)|0)+((8191&(n=(n=n+Math.imul(f,X)|0)+Math.imul(l,V)|0))<<13)|0;d=((s=s+Math.imul(l,X)|0)+(n>>>13)|0)+(gt>>>26)|0,gt&=67108863,r=Math.imul(_,U),n=(n=Math.imul(_,K))+Math.imul(w,U)|0,s=Math.imul(w,K),r=r+Math.imul(v,H)|0,n=(n=n+Math.imul(v,Z)|0)+Math.imul(g,H)|0,s=s+Math.imul(g,Z)|0,r=r+Math.imul(p,V)|0,n=(n=n+Math.imul(p,X)|0)+Math.imul(m,V)|0,s=s+Math.imul(m,X)|0;var yt=(d+(r=r+Math.imul(f,W)|0)|0)+((8191&(n=(n=n+Math.imul(f,Y)|0)+Math.imul(l,W)|0))<<13)|0;d=((s=s+Math.imul(l,Y)|0)+(n>>>13)|0)+(yt>>>26)|0,yt&=67108863,r=Math.imul(x,U),n=(n=Math.imul(x,K))+Math.imul(j,U)|0,s=Math.imul(j,K),r=r+Math.imul(_,H)|0,n=(n=n+Math.imul(_,Z)|0)+Math.imul(w,H)|0,s=s+Math.imul(w,Z)|0,r=r+Math.imul(v,V)|0,n=(n=n+Math.imul(v,X)|0)+Math.imul(g,V)|0,s=s+Math.imul(g,X)|0,r=r+Math.imul(p,W)|0,n=(n=n+Math.imul(p,Y)|0)+Math.imul(m,W)|0,s=s+Math.imul(m,Y)|0;var _t=(d+(r=r+Math.imul(f,Q)|0)|0)+((8191&(n=(n=n+Math.imul(f,tt)|0)+Math.imul(l,Q)|0))<<13)|0;d=((s=s+Math.imul(l,tt)|0)+(n>>>13)|0)+(_t>>>26)|0,_t&=67108863,r=Math.imul(S,U),n=(n=Math.imul(S,K))+Math.imul(k,U)|0,s=Math.imul(k,K),r=r+Math.imul(x,H)|0,n=(n=n+Math.imul(x,Z)|0)+Math.imul(j,H)|0,s=s+Math.imul(j,Z)|0,r=r+Math.imul(_,V)|0,n=(n=n+Math.imul(_,X)|0)+Math.imul(w,V)|0,s=s+Math.imul(w,X)|0,r=r+Math.imul(v,W)|0,n=(n=n+Math.imul(v,Y)|0)+Math.imul(g,W)|0,s=s+Math.imul(g,Y)|0,r=r+Math.imul(p,Q)|0,n=(n=n+Math.imul(p,tt)|0)+Math.imul(m,Q)|0,s=s+Math.imul(m,tt)|0;var wt=(d+(r=r+Math.imul(f,it)|0)|0)+((8191&(n=(n=n+Math.imul(f,rt)|0)+Math.imul(l,it)|0))<<13)|0;d=((s=s+Math.imul(l,rt)|0)+(n>>>13)|0)+(wt>>>26)|0,wt&=67108863,r=Math.imul(R,U),n=(n=Math.imul(R,K))+Math.imul(I,U)|0,s=Math.imul(I,K),r=r+Math.imul(S,H)|0,n=(n=n+Math.imul(S,Z)|0)+Math.imul(k,H)|0,s=s+Math.imul(k,Z)|0,r=r+Math.imul(x,V)|0,n=(n=n+Math.imul(x,X)|0)+Math.imul(j,V)|0,s=s+Math.imul(j,X)|0,r=r+Math.imul(_,W)|0,n=(n=n+Math.imul(_,Y)|0)+Math.imul(w,W)|0,s=s+Math.imul(w,Y)|0,r=r+Math.imul(v,Q)|0,n=(n=n+Math.imul(v,tt)|0)+Math.imul(g,Q)|0,s=s+Math.imul(g,tt)|0,r=r+Math.imul(p,it)|0,n=(n=n+Math.imul(p,rt)|0)+Math.imul(m,it)|0,s=s+Math.imul(m,rt)|0;var Mt=(d+(r=r+Math.imul(f,st)|0)|0)+((8191&(n=(n=n+Math.imul(f,ot)|0)+Math.imul(l,st)|0))<<13)|0;d=((s=s+Math.imul(l,ot)|0)+(n>>>13)|0)+(Mt>>>26)|0,Mt&=67108863,r=Math.imul(C,U),n=(n=Math.imul(C,K))+Math.imul(O,U)|0,s=Math.imul(O,K),r=r+Math.imul(R,H)|0,n=(n=n+Math.imul(R,Z)|0)+Math.imul(I,H)|0,s=s+Math.imul(I,Z)|0,r=r+Math.imul(S,V)|0,n=(n=n+Math.imul(S,X)|0)+Math.imul(k,V)|0,s=s+Math.imul(k,X)|0,r=r+Math.imul(x,W)|0,n=(n=n+Math.imul(x,Y)|0)+Math.imul(j,W)|0,s=s+Math.imul(j,Y)|0,r=r+Math.imul(_,Q)|0,n=(n=n+Math.imul(_,tt)|0)+Math.imul(w,Q)|0,s=s+Math.imul(w,tt)|0,r=r+Math.imul(v,it)|0,n=(n=n+Math.imul(v,rt)|0)+Math.imul(g,it)|0,s=s+Math.imul(g,rt)|0,r=r+Math.imul(p,st)|0,n=(n=n+Math.imul(p,ot)|0)+Math.imul(m,st)|0,s=s+Math.imul(m,ot)|0;var xt=(d+(r=r+Math.imul(f,ht)|0)|0)+((8191&(n=(n=n+Math.imul(f,dt)|0)+Math.imul(l,ht)|0))<<13)|0;d=((s=s+Math.imul(l,dt)|0)+(n>>>13)|0)+(xt>>>26)|0,xt&=67108863,r=Math.imul(P,U),n=(n=Math.imul(P,K))+Math.imul(N,U)|0,s=Math.imul(N,K),r=r+Math.imul(C,H)|0,n=(n=n+Math.imul(C,Z)|0)+Math.imul(O,H)|0,s=s+Math.imul(O,Z)|0,r=r+Math.imul(R,V)|0,n=(n=n+Math.imul(R,X)|0)+Math.imul(I,V)|0,s=s+Math.imul(I,X)|0,r=r+Math.imul(S,W)|0,n=(n=n+Math.imul(S,Y)|0)+Math.imul(k,W)|0,s=s+Math.imul(k,Y)|0,r=r+Math.imul(x,Q)|0,n=(n=n+Math.imul(x,tt)|0)+Math.imul(j,Q)|0,s=s+Math.imul(j,tt)|0,r=r+Math.imul(_,it)|0,n=(n=n+Math.imul(_,rt)|0)+Math.imul(w,it)|0,s=s+Math.imul(w,rt)|0,r=r+Math.imul(v,st)|0,n=(n=n+Math.imul(v,ot)|0)+Math.imul(g,st)|0,s=s+Math.imul(g,ot)|0,r=r+Math.imul(p,ht)|0,n=(n=n+Math.imul(p,dt)|0)+Math.imul(m,ht)|0,s=s+Math.imul(m,dt)|0;var jt=(d+(r=r+Math.imul(f,ft)|0)|0)+((8191&(n=(n=n+Math.imul(f,lt)|0)+Math.imul(l,ft)|0))<<13)|0;d=((s=s+Math.imul(l,lt)|0)+(n>>>13)|0)+(jt>>>26)|0,jt&=67108863,r=Math.imul(q,U),n=(n=Math.imul(q,K))+Math.imul(D,U)|0,s=Math.imul(D,K),r=r+Math.imul(P,H)|0,n=(n=n+Math.imul(P,Z)|0)+Math.imul(N,H)|0,s=s+Math.imul(N,Z)|0,r=r+Math.imul(C,V)|0,n=(n=n+Math.imul(C,X)|0)+Math.imul(O,V)|0,s=s+Math.imul(O,X)|0,r=r+Math.imul(R,W)|0,n=(n=n+Math.imul(R,Y)|0)+Math.imul(I,W)|0,s=s+Math.imul(I,Y)|0,r=r+Math.imul(S,Q)|0,n=(n=n+Math.imul(S,tt)|0)+Math.imul(k,Q)|0,s=s+Math.imul(k,tt)|0,r=r+Math.imul(x,it)|0,n=(n=n+Math.imul(x,rt)|0)+Math.imul(j,it)|0,s=s+Math.imul(j,rt)|0,r=r+Math.imul(_,st)|0,n=(n=n+Math.imul(_,ot)|0)+Math.imul(w,st)|0,s=s+Math.imul(w,ot)|0,r=r+Math.imul(v,ht)|0,n=(n=n+Math.imul(v,dt)|0)+Math.imul(g,ht)|0,s=s+Math.imul(g,dt)|0,r=r+Math.imul(p,ft)|0,n=(n=n+Math.imul(p,lt)|0)+Math.imul(m,ft)|0,s=s+Math.imul(m,lt)|0;var Et=(d+(r=r+Math.imul(f,pt)|0)|0)+((8191&(n=(n=n+Math.imul(f,mt)|0)+Math.imul(l,pt)|0))<<13)|0;d=((s=s+Math.imul(l,mt)|0)+(n>>>13)|0)+(Et>>>26)|0,Et&=67108863,r=Math.imul(q,H),n=(n=Math.imul(q,Z))+Math.imul(D,H)|0,s=Math.imul(D,Z),r=r+Math.imul(P,V)|0,n=(n=n+Math.imul(P,X)|0)+Math.imul(N,V)|0,s=s+Math.imul(N,X)|0,r=r+Math.imul(C,W)|0,n=(n=n+Math.imul(C,Y)|0)+Math.imul(O,W)|0,s=s+Math.imul(O,Y)|0,r=r+Math.imul(R,Q)|0,n=(n=n+Math.imul(R,tt)|0)+Math.imul(I,Q)|0,s=s+Math.imul(I,tt)|0,r=r+Math.imul(S,it)|0,n=(n=n+Math.imul(S,rt)|0)+Math.imul(k,it)|0,s=s+Math.imul(k,rt)|0,r=r+Math.imul(x,st)|0,n=(n=n+Math.imul(x,ot)|0)+Math.imul(j,st)|0,s=s+Math.imul(j,ot)|0,r=r+Math.imul(_,ht)|0,n=(n=n+Math.imul(_,dt)|0)+Math.imul(w,ht)|0,s=s+Math.imul(w,dt)|0,r=r+Math.imul(v,ft)|0,n=(n=n+Math.imul(v,lt)|0)+Math.imul(g,ft)|0,s=s+Math.imul(g,lt)|0;var St=(d+(r=r+Math.imul(p,pt)|0)|0)+((8191&(n=(n=n+Math.imul(p,mt)|0)+Math.imul(m,pt)|0))<<13)|0;d=((s=s+Math.imul(m,mt)|0)+(n>>>13)|0)+(St>>>26)|0,St&=67108863,r=Math.imul(q,V),n=(n=Math.imul(q,X))+Math.imul(D,V)|0,s=Math.imul(D,X),r=r+Math.imul(P,W)|0,n=(n=n+Math.imul(P,Y)|0)+Math.imul(N,W)|0,s=s+Math.imul(N,Y)|0,r=r+Math.imul(C,Q)|0,n=(n=n+Math.imul(C,tt)|0)+Math.imul(O,Q)|0,s=s+Math.imul(O,tt)|0,r=r+Math.imul(R,it)|0,n=(n=n+Math.imul(R,rt)|0)+Math.imul(I,it)|0,s=s+Math.imul(I,rt)|0,r=r+Math.imul(S,st)|0,n=(n=n+Math.imul(S,ot)|0)+Math.imul(k,st)|0,s=s+Math.imul(k,ot)|0,r=r+Math.imul(x,ht)|0,n=(n=n+Math.imul(x,dt)|0)+Math.imul(j,ht)|0,s=s+Math.imul(j,dt)|0,r=r+Math.imul(_,ft)|0,n=(n=n+Math.imul(_,lt)|0)+Math.imul(w,ft)|0,s=s+Math.imul(w,lt)|0;var kt=(d+(r=r+Math.imul(v,pt)|0)|0)+((8191&(n=(n=n+Math.imul(v,mt)|0)+Math.imul(g,pt)|0))<<13)|0;d=((s=s+Math.imul(g,mt)|0)+(n>>>13)|0)+(kt>>>26)|0,kt&=67108863,r=Math.imul(q,W),n=(n=Math.imul(q,Y))+Math.imul(D,W)|0,s=Math.imul(D,Y),r=r+Math.imul(P,Q)|0,n=(n=n+Math.imul(P,tt)|0)+Math.imul(N,Q)|0,s=s+Math.imul(N,tt)|0,r=r+Math.imul(C,it)|0,n=(n=n+Math.imul(C,rt)|0)+Math.imul(O,it)|0,s=s+Math.imul(O,rt)|0,r=r+Math.imul(R,st)|0,n=(n=n+Math.imul(R,ot)|0)+Math.imul(I,st)|0,s=s+Math.imul(I,ot)|0,r=r+Math.imul(S,ht)|0,n=(n=n+Math.imul(S,dt)|0)+Math.imul(k,ht)|0,s=s+Math.imul(k,dt)|0,r=r+Math.imul(x,ft)|0,n=(n=n+Math.imul(x,lt)|0)+Math.imul(j,ft)|0,s=s+Math.imul(j,lt)|0;var At=(d+(r=r+Math.imul(_,pt)|0)|0)+((8191&(n=(n=n+Math.imul(_,mt)|0)+Math.imul(w,pt)|0))<<13)|0;d=((s=s+Math.imul(w,mt)|0)+(n>>>13)|0)+(At>>>26)|0,At&=67108863,r=Math.imul(q,Q),n=(n=Math.imul(q,tt))+Math.imul(D,Q)|0,s=Math.imul(D,tt),r=r+Math.imul(P,it)|0,n=(n=n+Math.imul(P,rt)|0)+Math.imul(N,it)|0,s=s+Math.imul(N,rt)|0,r=r+Math.imul(C,st)|0,n=(n=n+Math.imul(C,ot)|0)+Math.imul(O,st)|0,s=s+Math.imul(O,ot)|0,r=r+Math.imul(R,ht)|0,n=(n=n+Math.imul(R,dt)|0)+Math.imul(I,ht)|0,s=s+Math.imul(I,dt)|0,r=r+Math.imul(S,ft)|0,n=(n=n+Math.imul(S,lt)|0)+Math.imul(k,ft)|0,s=s+Math.imul(k,lt)|0;var Rt=(d+(r=r+Math.imul(x,pt)|0)|0)+((8191&(n=(n=n+Math.imul(x,mt)|0)+Math.imul(j,pt)|0))<<13)|0;d=((s=s+Math.imul(j,mt)|0)+(n>>>13)|0)+(Rt>>>26)|0,Rt&=67108863,r=Math.imul(q,it),n=(n=Math.imul(q,rt))+Math.imul(D,it)|0,s=Math.imul(D,rt),r=r+Math.imul(P,st)|0,n=(n=n+Math.imul(P,ot)|0)+Math.imul(N,st)|0,s=s+Math.imul(N,ot)|0,r=r+Math.imul(C,ht)|0,n=(n=n+Math.imul(C,dt)|0)+Math.imul(O,ht)|0,s=s+Math.imul(O,dt)|0,r=r+Math.imul(R,ft)|0,n=(n=n+Math.imul(R,lt)|0)+Math.imul(I,ft)|0,s=s+Math.imul(I,lt)|0;var It=(d+(r=r+Math.imul(S,pt)|0)|0)+((8191&(n=(n=n+Math.imul(S,mt)|0)+Math.imul(k,pt)|0))<<13)|0;d=((s=s+Math.imul(k,mt)|0)+(n>>>13)|0)+(It>>>26)|0,It&=67108863,r=Math.imul(q,st),n=(n=Math.imul(q,ot))+Math.imul(D,st)|0,s=Math.imul(D,ot),r=r+Math.imul(P,ht)|0,n=(n=n+Math.imul(P,dt)|0)+Math.imul(N,ht)|0,s=s+Math.imul(N,dt)|0,r=r+Math.imul(C,ft)|0,n=(n=n+Math.imul(C,lt)|0)+Math.imul(O,ft)|0,s=s+Math.imul(O,lt)|0;var Bt=(d+(r=r+Math.imul(R,pt)|0)|0)+((8191&(n=(n=n+Math.imul(R,mt)|0)+Math.imul(I,pt)|0))<<13)|0;d=((s=s+Math.imul(I,mt)|0)+(n>>>13)|0)+(Bt>>>26)|0,Bt&=67108863,r=Math.imul(q,ht),n=(n=Math.imul(q,dt))+Math.imul(D,ht)|0,s=Math.imul(D,dt),r=r+Math.imul(P,ft)|0,n=(n=n+Math.imul(P,lt)|0)+Math.imul(N,ft)|0,s=s+Math.imul(N,lt)|0;var Ct=(d+(r=r+Math.imul(C,pt)|0)|0)+((8191&(n=(n=n+Math.imul(C,mt)|0)+Math.imul(O,pt)|0))<<13)|0;d=((s=s+Math.imul(O,mt)|0)+(n>>>13)|0)+(Ct>>>26)|0,Ct&=67108863,r=Math.imul(q,ft),n=(n=Math.imul(q,lt))+Math.imul(D,ft)|0,s=Math.imul(D,lt);var Ot=(d+(r=r+Math.imul(P,pt)|0)|0)+((8191&(n=(n=n+Math.imul(P,mt)|0)+Math.imul(N,pt)|0))<<13)|0;d=((s=s+Math.imul(N,mt)|0)+(n>>>13)|0)+(Ot>>>26)|0,Ot&=67108863;var Tt=(d+(r=Math.imul(q,pt))|0)+((8191&(n=(n=Math.imul(q,mt))+Math.imul(D,pt)|0))<<13)|0;return d=((s=Math.imul(D,mt))+(n>>>13)|0)+(Tt>>>26)|0,Tt&=67108863,h[0]=bt,h[1]=vt,h[2]=gt,h[3]=yt,h[4]=_t,h[5]=wt,h[6]=Mt,h[7]=xt,h[8]=jt,h[9]=Et,h[10]=St,h[11]=kt,h[12]=At,h[13]=Rt,h[14]=It,h[15]=Bt,h[16]=Ct,h[17]=Ot,h[18]=Tt,0!==d&&(h[19]=d,i.length++),i};function p(t,e,i){return(new m).mulp(t,e,i)}function m(t,e){this.x=t,this.y=e}Math.imul||(c=l),s.prototype.mulTo=function(t,e){var i=this.length+t.length;return 10===this.length&&10===t.length?c(this,t,e):i<63?l(this,t,e):i<1024?function(t,e,i){i.negative=e.negative^t.negative,i.length=t.length+e.length;for(var r=0,n=0,s=0;s>>26)|0)>>>26,o&=67108863}i.words[s]=a,r=o,o=n}return 0!==r?i.words[s]=r:i.length--,i.strip()}(this,t,e):p(this,t,e)},m.prototype.makeRBT=function(t){for(var e=new Array(t),i=s.prototype._countBits(t)-1,r=0;r>=1;return r},m.prototype.permute=function(t,e,i,r,n,s){for(var o=0;o>>=1)n++;return 1<>>=13,i[2*o+1]=8191&s,s>>>=13;for(o=2*e;o>=26,e+=n/67108864|0,e+=s>>>26,this.words[i]=67108863&s}return 0!==e&&(this.words[i]=e,this.length++),this},s.prototype.muln=function(t){return this.clone().imuln(t)},s.prototype.sqr=function(){return this.mul(this)},s.prototype.isqr=function(){return this.imul(this.clone())},s.prototype.pow=function(t){var e=function(t){for(var e=new Array(t.bitLength()),i=0;i>>n}return e}(t);if(0===e.length)return new s(1);for(var i=this,r=0;r=0);var e,i=t%26,n=(t-i)/26,s=67108863>>>26-i<<26-i;if(0!==i){var o=0;for(e=0;e>>26-i}o&&(this.words[e]=o,this.length++)}if(0!==n){for(e=this.length-1;e>=0;e--)this.words[e+n]=this.words[e];for(e=0;e=0),n=e?(e-e%26)/26:0;var s=t%26,o=Math.min((t-s)/26,this.length),a=67108863^67108863>>>s<o)for(this.length-=o,d=0;d=0&&(0!==u||d>=n);d--){var f=0|this.words[d];this.words[d]=u<<26-s|f>>>s,u=f&a}return h&&0!==u&&(h.words[h.length++]=u),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},s.prototype.ishrn=function(t,e,i){return r(0===this.negative),this.iushrn(t,e,i)},s.prototype.shln=function(t){return this.clone().ishln(t)},s.prototype.ushln=function(t){return this.clone().iushln(t)},s.prototype.shrn=function(t){return this.clone().ishrn(t)},s.prototype.ushrn=function(t){return this.clone().iushrn(t)},s.prototype.testn=function(t){r("number"==typeof t&&t>=0);var e=t%26,i=(t-e)/26,n=1<=0);var e=t%26,i=(t-e)/26;if(r(0===this.negative,"imaskn works only with positive numbers"),this.length<=i)return this;if(0!==e&&i++,this.length=Math.min(i,this.length),0!==e){var n=67108863^67108863>>>e<=67108864;e++)this.words[e]-=67108864,e===this.length-1?this.words[e+1]=1:this.words[e+1]++;return this.length=Math.max(this.length,e+1),this},s.prototype.isubn=function(t){if(r("number"==typeof t),r(t<67108864),t<0)return this.iaddn(-t);if(0!==this.negative)return this.negative=0,this.iaddn(t),this.negative=1,this;if(this.words[0]-=t,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var e=0;e>26)-(h/67108864|0),this.words[n+i]=67108863&s}for(;n>26,this.words[n+i]=67108863&s;if(0===a)return this.strip();for(r(-1===a),a=0,n=0;n>26,this.words[n]=67108863&s;return this.negative=1,this.strip()},s.prototype._wordDiv=function(t,e){var i=(this.length,t.length),r=this.clone(),n=t,o=0|n.words[n.length-1];0!==(i=26-this._countBits(o))&&(n=n.ushln(i),r.iushln(i),o=0|n.words[n.length-1]);var a,h=r.length-n.length;if("mod"!==e){(a=new s(null)).length=h+1,a.words=new Array(a.length);for(var d=0;d=0;f--){var l=67108864*(0|r.words[n.length+f])+(0|r.words[n.length+f-1]);for(l=Math.min(l/o|0,67108863),r._ishlnsubmul(n,l,f);0!==r.negative;)l--,r.negative=0,r._ishlnsubmul(n,1,f),r.isZero()||(r.negative^=1);a&&(a.words[f]=l)}return a&&a.strip(),r.strip(),"div"!==e&&0!==i&&r.iushrn(i),{div:a||null,mod:r}},s.prototype.divmod=function(t,e,i){return r(!t.isZero()),this.isZero()?{div:new s(0),mod:new s(0)}:0!==this.negative&&0===t.negative?(a=this.neg().divmod(t,e),"mod"!==e&&(n=a.div.neg()),"div"!==e&&(o=a.mod.neg(),i&&0!==o.negative&&o.iadd(t)),{div:n,mod:o}):0===this.negative&&0!==t.negative?(a=this.divmod(t.neg(),e),"mod"!==e&&(n=a.div.neg()),{div:n,mod:a.mod}):0!=(this.negative&t.negative)?(a=this.neg().divmod(t.neg(),e),"div"!==e&&(o=a.mod.neg(),i&&0!==o.negative&&o.isub(t)),{div:a.div,mod:o}):t.length>this.length||this.cmp(t)<0?{div:new s(0),mod:this}:1===t.length?"div"===e?{div:this.divn(t.words[0]),mod:null}:"mod"===e?{div:null,mod:new s(this.modn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new s(this.modn(t.words[0]))}:this._wordDiv(t,e);var n,o,a},s.prototype.div=function(t){return this.divmod(t,"div",!1).div},s.prototype.mod=function(t){return this.divmod(t,"mod",!1).mod},s.prototype.umod=function(t){return this.divmod(t,"mod",!0).mod},s.prototype.divRound=function(t){var e=this.divmod(t);if(e.mod.isZero())return e.div;var i=0!==e.div.negative?e.mod.isub(t):e.mod,r=t.ushrn(1),n=t.andln(1),s=i.cmp(r);return s<0||1===n&&0===s?e.div:0!==e.div.negative?e.div.isubn(1):e.div.iaddn(1)},s.prototype.modn=function(t){r(t<=67108863);for(var e=(1<<26)%t,i=0,n=this.length-1;n>=0;n--)i=(e*i+(0|this.words[n]))%t;return i},s.prototype.idivn=function(t){r(t<=67108863);for(var e=0,i=this.length-1;i>=0;i--){var n=(0|this.words[i])+67108864*e;this.words[i]=n/t|0,e=n%t}return this.strip()},s.prototype.divn=function(t){return this.clone().idivn(t)},s.prototype.egcd=function(t){r(0===t.negative),r(!t.isZero());var e=this,i=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var n=new s(1),o=new s(0),a=new s(0),h=new s(1),d=0;e.isEven()&&i.isEven();)e.iushrn(1),i.iushrn(1),++d;for(var u=i.clone(),f=e.clone();!e.isZero();){for(var l=0,c=1;0==(e.words[0]&c)&&l<26;++l,c<<=1);if(l>0)for(e.iushrn(l);l-- >0;)(n.isOdd()||o.isOdd())&&(n.iadd(u),o.isub(f)),n.iushrn(1),o.iushrn(1);for(var p=0,m=1;0==(i.words[0]&m)&&p<26;++p,m<<=1);if(p>0)for(i.iushrn(p);p-- >0;)(a.isOdd()||h.isOdd())&&(a.iadd(u),h.isub(f)),a.iushrn(1),h.iushrn(1);e.cmp(i)>=0?(e.isub(i),n.isub(a),o.isub(h)):(i.isub(e),a.isub(n),h.isub(o))}return{a:a,b:h,gcd:i.iushln(d)}},s.prototype._invmp=function(t){r(0===t.negative),r(!t.isZero());var e=this,i=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var n,o=new s(1),a=new s(0),h=i.clone();e.cmpn(1)>0&&i.cmpn(1)>0;){for(var d=0,u=1;0==(e.words[0]&u)&&d<26;++d,u<<=1);if(d>0)for(e.iushrn(d);d-- >0;)o.isOdd()&&o.iadd(h),o.iushrn(1);for(var f=0,l=1;0==(i.words[0]&l)&&f<26;++f,l<<=1);if(f>0)for(i.iushrn(f);f-- >0;)a.isOdd()&&a.iadd(h),a.iushrn(1);e.cmp(i)>=0?(e.isub(i),o.isub(a)):(i.isub(e),a.isub(o))}return(n=0===e.cmpn(1)?o:a).cmpn(0)<0&&n.iadd(t),n},s.prototype.gcd=function(t){if(this.isZero())return t.abs();if(t.isZero())return this.abs();var e=this.clone(),i=t.clone();e.negative=0,i.negative=0;for(var r=0;e.isEven()&&i.isEven();r++)e.iushrn(1),i.iushrn(1);for(;;){for(;e.isEven();)e.iushrn(1);for(;i.isEven();)i.iushrn(1);var n=e.cmp(i);if(n<0){var s=e;e=i,i=s}else if(0===n||0===i.cmpn(1))break;e.isub(i)}return i.iushln(r)},s.prototype.invm=function(t){return this.egcd(t).a.umod(t)},s.prototype.isEven=function(){return 0==(1&this.words[0])},s.prototype.isOdd=function(){return 1==(1&this.words[0])},s.prototype.andln=function(t){return this.words[0]&t},s.prototype.bincn=function(t){r("number"==typeof t);var e=t%26,i=(t-e)/26,n=1<>>26,a&=67108863,this.words[o]=a}return 0!==s&&(this.words[o]=s,this.length++),this},s.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},s.prototype.cmpn=function(t){var e,i=t<0;if(0!==this.negative&&!i)return-1;if(0===this.negative&&i)return 1;if(this.strip(),this.length>1)e=1;else{i&&(t=-t),r(t<=67108863,"Number is too big");var n=0|this.words[0];e=n===t?0:nt.length)return 1;if(this.length=0;i--){var r=0|this.words[i],n=0|t.words[i];if(r!==n){rn&&(e=1);break}}return e},s.prototype.gtn=function(t){return 1===this.cmpn(t)},s.prototype.gt=function(t){return 1===this.cmp(t)},s.prototype.gten=function(t){return this.cmpn(t)>=0},s.prototype.gte=function(t){return this.cmp(t)>=0},s.prototype.ltn=function(t){return-1===this.cmpn(t)},s.prototype.lt=function(t){return-1===this.cmp(t)},s.prototype.lten=function(t){return this.cmpn(t)<=0},s.prototype.lte=function(t){return this.cmp(t)<=0},s.prototype.eqn=function(t){return 0===this.cmpn(t)},s.prototype.eq=function(t){return 0===this.cmp(t)},s.red=function(t){return new M(t)},s.prototype.toRed=function(t){return r(!this.red,"Already a number in reduction context"),r(0===this.negative,"red works only with positives"),t.convertTo(this)._forceRed(t)},s.prototype.fromRed=function(){return r(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},s.prototype._forceRed=function(t){return this.red=t,this},s.prototype.forceRed=function(t){return r(!this.red,"Already a number in reduction context"),this._forceRed(t)},s.prototype.redAdd=function(t){return r(this.red,"redAdd works only with red numbers"),this.red.add(this,t)},s.prototype.redIAdd=function(t){return r(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,t)},s.prototype.redSub=function(t){return r(this.red,"redSub works only with red numbers"),this.red.sub(this,t)},s.prototype.redISub=function(t){return r(this.red,"redISub works only with red numbers"),this.red.isub(this,t)},s.prototype.redShl=function(t){return r(this.red,"redShl works only with red numbers"),this.red.shl(this,t)},s.prototype.redMul=function(t){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.mul(this,t)},s.prototype.redIMul=function(t){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.imul(this,t)},s.prototype.redSqr=function(){return r(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},s.prototype.redISqr=function(){return r(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},s.prototype.redSqrt=function(){return r(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},s.prototype.redInvm=function(){return r(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},s.prototype.redNeg=function(){return r(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},s.prototype.redPow=function(t){return r(this.red&&!t.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,t)};var b={k256:null,p224:null,p192:null,p25519:null};function v(t,e){this.name=t,this.p=new s(e,16),this.n=this.p.bitLength(),this.k=new s(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function g(){v.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function y(){v.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function _(){v.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function w(){v.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function M(t){if("string"==typeof t){var e=s._prime(t);this.m=e.p,this.prime=e}else r(t.gtn(1),"modulus must be greater than 1"),this.m=t,this.prime=null}function x(t){M.call(this,t),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new s(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)}v.prototype._tmp=function(){var t=new s(null);return t.words=new Array(Math.ceil(this.n/13)),t},v.prototype.ireduce=function(t){var e,i=t;do{this.split(i,this.tmp),e=(i=(i=this.imulK(i)).iadd(this.tmp)).bitLength()}while(e>this.n);var r=e0?i.isub(this.p):i.strip(),i},v.prototype.split=function(t,e){t.iushrn(this.n,0,e)},v.prototype.imulK=function(t){return t.imul(this.k)},n(g,v),g.prototype.split=function(t,e){for(var i=Math.min(t.length,9),r=0;r>>22,n=s}n>>>=22,t.words[r-10]=n,0===n&&t.length>10?t.length-=10:t.length-=9},g.prototype.imulK=function(t){t.words[t.length]=0,t.words[t.length+1]=0,t.length+=2;for(var e=0,i=0;i>>=26,t.words[i]=n,e=r}return 0!==e&&(t.words[t.length++]=e),t},s._prime=function(t){if(b[t])return b[t];var e;if("k256"===t)e=new g;else if("p224"===t)e=new y;else if("p192"===t)e=new _;else{if("p25519"!==t)throw new Error("Unknown prime "+t);e=new w}return b[t]=e,e},M.prototype._verify1=function(t){r(0===t.negative,"red works only with positives"),r(t.red,"red works only with red numbers")},M.prototype._verify2=function(t,e){r(0==(t.negative|e.negative),"red works only with positives"),r(t.red&&t.red===e.red,"red works only with red numbers")},M.prototype.imod=function(t){return this.prime?this.prime.ireduce(t)._forceRed(this):t.umod(this.m)._forceRed(this)},M.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},M.prototype.add=function(t,e){this._verify2(t,e);var i=t.add(e);return i.cmp(this.m)>=0&&i.isub(this.m),i._forceRed(this)},M.prototype.iadd=function(t,e){this._verify2(t,e);var i=t.iadd(e);return i.cmp(this.m)>=0&&i.isub(this.m),i},M.prototype.sub=function(t,e){this._verify2(t,e);var i=t.sub(e);return i.cmpn(0)<0&&i.iadd(this.m),i._forceRed(this)},M.prototype.isub=function(t,e){this._verify2(t,e);var i=t.isub(e);return i.cmpn(0)<0&&i.iadd(this.m),i},M.prototype.shl=function(t,e){return this._verify1(t),this.imod(t.ushln(e))},M.prototype.imul=function(t,e){return this._verify2(t,e),this.imod(t.imul(e))},M.prototype.mul=function(t,e){return this._verify2(t,e),this.imod(t.mul(e))},M.prototype.isqr=function(t){return this.imul(t,t.clone())},M.prototype.sqr=function(t){return this.mul(t,t)},M.prototype.sqrt=function(t){if(t.isZero())return t.clone();var e=this.m.andln(3);if(r(e%2==1),3===e){var i=this.m.add(new s(1)).iushrn(2);return this.pow(t,i)}for(var n=this.m.subn(1),o=0;!n.isZero()&&0===n.andln(1);)o++,n.iushrn(1);r(!n.isZero());var a=new s(1).toRed(this),h=a.redNeg(),d=this.m.subn(1).iushrn(1),u=this.m.bitLength();for(u=new s(2*u*u).toRed(this);0!==this.pow(u,d).cmp(h);)u.redIAdd(h);for(var f=this.pow(u,n),l=this.pow(t,n.addn(1).iushrn(1)),c=this.pow(t,n),p=o;0!==c.cmp(a);){for(var m=c,b=0;0!==m.cmp(a);b++)m=m.redSqr();r(b=0;r--){for(var d=e.words[r],u=h-1;u>=0;u--){var f=d>>u&1;n!==i[0]&&(n=this.sqr(n)),0!==f||0!==o?(o<<=1,o|=f,(4===++a||0===r&&0===u)&&(n=this.mul(n,i[o]),a=0,o=0)):a=0}h=26}return n},M.prototype.convertTo=function(t){var e=t.umod(this.m);return e===t?e.clone():e},M.prototype.convertFrom=function(t){var e=t.clone();return e.red=null,e},s.mont=function(t){return new x(t)},n(x,M),x.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},x.prototype.convertFrom=function(t){var e=this.imod(t.mul(this.rinv));return e.red=null,e},x.prototype.imul=function(t,e){if(t.isZero()||e.isZero())return t.words[0]=0,t.length=1,t;var i=t.imul(e),r=i.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),n=i.isub(r).iushrn(this.shift),s=n;return n.cmp(this.m)>=0?s=n.isub(this.m):n.cmpn(0)<0&&(s=n.iadd(this.m)),s._forceRed(this)},x.prototype.mul=function(t,e){if(t.isZero()||e.isZero())return new s(0)._forceRed(this);var i=t.mul(e),r=i.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),n=i.isub(r).iushrn(this.shift),o=n;return n.cmp(this.m)>=0?o=n.isub(this.m):n.cmpn(0)<0&&(o=n.iadd(this.m)),o._forceRed(this)},x.prototype.invm=function(t){return this.imod(t._invmp(this.m).mul(this.r2))._forceRed(this)}}(t,this)}).call(this,i("../../node_modules/webpack/buildin/module.js")(t))},"../../node_modules/browserify-sign/node_modules/bn.js/lib/bn.js":function(t,e,i){(function(t){!function(t,e){"use strict";function r(t,e){if(!t)throw new Error(e||"Assertion failed")}function n(t,e){t.super_=e;var i=function(){};i.prototype=e.prototype,t.prototype=new i,t.prototype.constructor=t}function s(t,e,i){if(s.isBN(t))return t;this.negative=0,this.words=null,this.length=0,this.red=null,null!==t&&("le"!==e&&"be"!==e||(i=e,e=10),this._init(t||0,e||10,i||"be"))}var o;"object"==typeof t?t.exports=s:e.BN=s,s.BN=s,s.wordSize=26;try{o="undefined"!=typeof window&&void 0!==window.Buffer?window.Buffer:i("../../standalone-packages/codesandbox-browserfs/dist/shims/buffer.js").Buffer}catch(t){}function a(t,e){var i=t.charCodeAt(e);return i>=48&&i<=57?i-48:i>=65&&i<=70?i-55:i>=97&&i<=102?i-87:void r(!1,"Invalid character in "+t)}function h(t,e,i){var r=a(t,i);return i-1>=e&&(r|=a(t,i-1)<<4),r}function d(t,e,i,n){for(var s=0,o=0,a=Math.min(t.length,i),h=e;h=49?d-49+10:d>=17?d-17+10:d,r(d>=0&&o0?t:e},s.min=function(t,e){return t.cmp(e)<0?t:e},s.prototype._init=function(t,e,i){if("number"==typeof t)return this._initNumber(t,e,i);if("object"==typeof t)return this._initArray(t,e,i);"hex"===e&&(e=16),r(e===(0|e)&&e>=2&&e<=36);var n=0;"-"===(t=t.toString().replace(/\s+/g,""))[0]&&(n++,this.negative=1),n=0;n-=3)o=t[n]|t[n-1]<<8|t[n-2]<<16,this.words[s]|=o<>>26-a&67108863,(a+=24)>=26&&(a-=26,s++);else if("le"===i)for(n=0,s=0;n>>26-a&67108863,(a+=24)>=26&&(a-=26,s++);return this._strip()},s.prototype._parseHex=function(t,e,i){this.length=Math.ceil((t.length-e)/6),this.words=new Array(this.length);for(var r=0;r=e;r-=2)n=h(t,e,r)<=18?(s-=18,o+=1,this.words[o]|=n>>>26):s+=8;else for(r=(t.length-e)%2==0?e+1:e;r=18?(s-=18,o+=1,this.words[o]|=n>>>26):s+=8;this._strip()},s.prototype._parseBase=function(t,e,i){this.words=[0],this.length=1;for(var r=0,n=1;n<=67108863;n*=e)r++;r--,n=n/e|0;for(var s=t.length-i,o=s%r,a=Math.min(s,s-o)+i,h=0,u=i;u1&&0===this.words[this.length-1];)this.length--;return this._normSign()},s.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},"undefined"!=typeof Symbol&&"function"==typeof Symbol.for)try{s.prototype[Symbol.for("nodejs.util.inspect.custom")]=f}catch(t){s.prototype.inspect=f}else s.prototype.inspect=f;function f(){return(this.red?""}var l=["","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"],c=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],p=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];s.prototype.toString=function(t,e){var i;if(e=0|e||1,16===(t=t||10)||"hex"===t){i="";for(var n=0,s=0,o=0;o>>24-n&16777215,(n+=2)>=26&&(n-=26,o--),i=0!==s||o!==this.length-1?l[6-h.length]+h+i:h+i}for(0!==s&&(i=s.toString(16)+i);i.length%e!=0;)i="0"+i;return 0!==this.negative&&(i="-"+i),i}if(t===(0|t)&&t>=2&&t<=36){var d=c[t],u=p[t];i="";var f=this.clone();for(f.negative=0;!f.isZero();){var m=f.modrn(u).toString(t);i=(f=f.idivn(u)).isZero()?m+i:l[d-m.length]+m+i}for(this.isZero()&&(i="0"+i);i.length%e!=0;)i="0"+i;return 0!==this.negative&&(i="-"+i),i}r(!1,"Base should be between 2 and 36")},s.prototype.toNumber=function(){var t=this.words[0];return 2===this.length?t+=67108864*this.words[1]:3===this.length&&1===this.words[2]?t+=4503599627370496+67108864*this.words[1]:this.length>2&&r(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-t:t},s.prototype.toJSON=function(){return this.toString(16,2)},o&&(s.prototype.toBuffer=function(t,e){return this.toArrayLike(o,t,e)}),s.prototype.toArray=function(t,e){return this.toArrayLike(Array,t,e)};function m(t,e,i){i.negative=e.negative^t.negative;var r=t.length+e.length|0;i.length=r,r=r-1|0;var n=0|t.words[0],s=0|e.words[0],o=n*s,a=67108863&o,h=o/67108864|0;i.words[0]=a;for(var d=1;d>>26,f=67108863&h,l=Math.min(d,e.length-1),c=Math.max(0,d-t.length+1);c<=l;c++){var p=d-c|0;u+=(o=(n=0|t.words[p])*(s=0|e.words[c])+f)/67108864|0,f=67108863&o}i.words[d]=0|f,h=0|u}return 0!==h?i.words[d]=0|h:i.length--,i._strip()}s.prototype.toArrayLike=function(t,e,i){this._strip();var n=this.byteLength(),s=i||Math.max(1,n);r(n<=s,"byte array longer than desired length"),r(s>0,"Requested array length <= 0");var o=function(t,e){return t.allocUnsafe?t.allocUnsafe(e):new t(e)}(t,s);return this["_toArrayLike"+("le"===e?"LE":"BE")](o,n),o},s.prototype._toArrayLikeLE=function(t,e){for(var i=0,r=0,n=0,s=0;n>8&255),i>16&255),6===s?(i>24&255),r=0,s=0):(r=o>>>24,s+=2)}if(i=0&&(t[i--]=o>>8&255),i>=0&&(t[i--]=o>>16&255),6===s?(i>=0&&(t[i--]=o>>24&255),r=0,s=0):(r=o>>>24,s+=2)}if(i>=0)for(t[i--]=r;i>=0;)t[i--]=0},Math.clz32?s.prototype._countBits=function(t){return 32-Math.clz32(t)}:s.prototype._countBits=function(t){var e=t,i=0;return e>=4096&&(i+=13,e>>>=13),e>=64&&(i+=7,e>>>=7),e>=8&&(i+=4,e>>>=4),e>=2&&(i+=2,e>>>=2),i+e},s.prototype._zeroBits=function(t){if(0===t)return 26;var e=t,i=0;return 0==(8191&e)&&(i+=13,e>>>=13),0==(127&e)&&(i+=7,e>>>=7),0==(15&e)&&(i+=4,e>>>=4),0==(3&e)&&(i+=2,e>>>=2),0==(1&e)&&i++,i},s.prototype.bitLength=function(){var t=this.words[this.length-1],e=this._countBits(t);return 26*(this.length-1)+e},s.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,e=0;et.length?this.clone().ior(t):t.clone().ior(this)},s.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},s.prototype.iuand=function(t){var e;e=this.length>t.length?t:this;for(var i=0;it.length?this.clone().iand(t):t.clone().iand(this)},s.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},s.prototype.iuxor=function(t){var e,i;this.length>t.length?(e=this,i=t):(e=t,i=this);for(var r=0;rt.length?this.clone().ixor(t):t.clone().ixor(this)},s.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},s.prototype.inotn=function(t){r("number"==typeof t&&t>=0);var e=0|Math.ceil(t/26),i=t%26;this._expand(e),i>0&&e--;for(var n=0;n0&&(this.words[n]=~this.words[n]&67108863>>26-i),this._strip()},s.prototype.notn=function(t){return this.clone().inotn(t)},s.prototype.setn=function(t,e){r("number"==typeof t&&t>=0);var i=t/26|0,n=t%26;return this._expand(i+1),this.words[i]=e?this.words[i]|1<t.length?(i=this,r=t):(i=t,r=this);for(var n=0,s=0;s>>26;for(;0!==n&&s>>26;if(this.length=i.length,0!==n)this.words[this.length]=n,this.length++;else if(i!==this)for(;st.length?this.clone().iadd(t):t.clone().iadd(this)},s.prototype.isub=function(t){if(0!==t.negative){t.negative=0;var e=this.iadd(t);return t.negative=1,e._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(t),this.negative=1,this._normSign();var i,r,n=this.cmp(t);if(0===n)return this.negative=0,this.length=1,this.words[0]=0,this;n>0?(i=this,r=t):(i=t,r=this);for(var s=0,o=0;o>26,this.words[o]=67108863&e;for(;0!==s&&o>26,this.words[o]=67108863&e;if(0===s&&o>>13,c=0|o[1],p=8191&c,m=c>>>13,b=0|o[2],v=8191&b,g=b>>>13,y=0|o[3],_=8191&y,w=y>>>13,M=0|o[4],x=8191&M,j=M>>>13,E=0|o[5],S=8191&E,k=E>>>13,A=0|o[6],R=8191&A,I=A>>>13,B=0|o[7],C=8191&B,O=B>>>13,T=0|o[8],P=8191&T,N=T>>>13,L=0|o[9],q=8191&L,D=L>>>13,z=0|a[0],U=8191&z,K=z>>>13,F=0|a[1],H=8191&F,Z=F>>>13,G=0|a[2],V=8191&G,X=G>>>13,$=0|a[3],W=8191&$,Y=$>>>13,J=0|a[4],Q=8191&J,tt=J>>>13,et=0|a[5],it=8191&et,rt=et>>>13,nt=0|a[6],st=8191&nt,ot=nt>>>13,at=0|a[7],ht=8191&at,dt=at>>>13,ut=0|a[8],ft=8191&ut,lt=ut>>>13,ct=0|a[9],pt=8191&ct,mt=ct>>>13;i.negative=t.negative^e.negative,i.length=19;var bt=(d+(r=Math.imul(f,U))|0)+((8191&(n=(n=Math.imul(f,K))+Math.imul(l,U)|0))<<13)|0;d=((s=Math.imul(l,K))+(n>>>13)|0)+(bt>>>26)|0,bt&=67108863,r=Math.imul(p,U),n=(n=Math.imul(p,K))+Math.imul(m,U)|0,s=Math.imul(m,K);var vt=(d+(r=r+Math.imul(f,H)|0)|0)+((8191&(n=(n=n+Math.imul(f,Z)|0)+Math.imul(l,H)|0))<<13)|0;d=((s=s+Math.imul(l,Z)|0)+(n>>>13)|0)+(vt>>>26)|0,vt&=67108863,r=Math.imul(v,U),n=(n=Math.imul(v,K))+Math.imul(g,U)|0,s=Math.imul(g,K),r=r+Math.imul(p,H)|0,n=(n=n+Math.imul(p,Z)|0)+Math.imul(m,H)|0,s=s+Math.imul(m,Z)|0;var gt=(d+(r=r+Math.imul(f,V)|0)|0)+((8191&(n=(n=n+Math.imul(f,X)|0)+Math.imul(l,V)|0))<<13)|0;d=((s=s+Math.imul(l,X)|0)+(n>>>13)|0)+(gt>>>26)|0,gt&=67108863,r=Math.imul(_,U),n=(n=Math.imul(_,K))+Math.imul(w,U)|0,s=Math.imul(w,K),r=r+Math.imul(v,H)|0,n=(n=n+Math.imul(v,Z)|0)+Math.imul(g,H)|0,s=s+Math.imul(g,Z)|0,r=r+Math.imul(p,V)|0,n=(n=n+Math.imul(p,X)|0)+Math.imul(m,V)|0,s=s+Math.imul(m,X)|0;var yt=(d+(r=r+Math.imul(f,W)|0)|0)+((8191&(n=(n=n+Math.imul(f,Y)|0)+Math.imul(l,W)|0))<<13)|0;d=((s=s+Math.imul(l,Y)|0)+(n>>>13)|0)+(yt>>>26)|0,yt&=67108863,r=Math.imul(x,U),n=(n=Math.imul(x,K))+Math.imul(j,U)|0,s=Math.imul(j,K),r=r+Math.imul(_,H)|0,n=(n=n+Math.imul(_,Z)|0)+Math.imul(w,H)|0,s=s+Math.imul(w,Z)|0,r=r+Math.imul(v,V)|0,n=(n=n+Math.imul(v,X)|0)+Math.imul(g,V)|0,s=s+Math.imul(g,X)|0,r=r+Math.imul(p,W)|0,n=(n=n+Math.imul(p,Y)|0)+Math.imul(m,W)|0,s=s+Math.imul(m,Y)|0;var _t=(d+(r=r+Math.imul(f,Q)|0)|0)+((8191&(n=(n=n+Math.imul(f,tt)|0)+Math.imul(l,Q)|0))<<13)|0;d=((s=s+Math.imul(l,tt)|0)+(n>>>13)|0)+(_t>>>26)|0,_t&=67108863,r=Math.imul(S,U),n=(n=Math.imul(S,K))+Math.imul(k,U)|0,s=Math.imul(k,K),r=r+Math.imul(x,H)|0,n=(n=n+Math.imul(x,Z)|0)+Math.imul(j,H)|0,s=s+Math.imul(j,Z)|0,r=r+Math.imul(_,V)|0,n=(n=n+Math.imul(_,X)|0)+Math.imul(w,V)|0,s=s+Math.imul(w,X)|0,r=r+Math.imul(v,W)|0,n=(n=n+Math.imul(v,Y)|0)+Math.imul(g,W)|0,s=s+Math.imul(g,Y)|0,r=r+Math.imul(p,Q)|0,n=(n=n+Math.imul(p,tt)|0)+Math.imul(m,Q)|0,s=s+Math.imul(m,tt)|0;var wt=(d+(r=r+Math.imul(f,it)|0)|0)+((8191&(n=(n=n+Math.imul(f,rt)|0)+Math.imul(l,it)|0))<<13)|0;d=((s=s+Math.imul(l,rt)|0)+(n>>>13)|0)+(wt>>>26)|0,wt&=67108863,r=Math.imul(R,U),n=(n=Math.imul(R,K))+Math.imul(I,U)|0,s=Math.imul(I,K),r=r+Math.imul(S,H)|0,n=(n=n+Math.imul(S,Z)|0)+Math.imul(k,H)|0,s=s+Math.imul(k,Z)|0,r=r+Math.imul(x,V)|0,n=(n=n+Math.imul(x,X)|0)+Math.imul(j,V)|0,s=s+Math.imul(j,X)|0,r=r+Math.imul(_,W)|0,n=(n=n+Math.imul(_,Y)|0)+Math.imul(w,W)|0,s=s+Math.imul(w,Y)|0,r=r+Math.imul(v,Q)|0,n=(n=n+Math.imul(v,tt)|0)+Math.imul(g,Q)|0,s=s+Math.imul(g,tt)|0,r=r+Math.imul(p,it)|0,n=(n=n+Math.imul(p,rt)|0)+Math.imul(m,it)|0,s=s+Math.imul(m,rt)|0;var Mt=(d+(r=r+Math.imul(f,st)|0)|0)+((8191&(n=(n=n+Math.imul(f,ot)|0)+Math.imul(l,st)|0))<<13)|0;d=((s=s+Math.imul(l,ot)|0)+(n>>>13)|0)+(Mt>>>26)|0,Mt&=67108863,r=Math.imul(C,U),n=(n=Math.imul(C,K))+Math.imul(O,U)|0,s=Math.imul(O,K),r=r+Math.imul(R,H)|0,n=(n=n+Math.imul(R,Z)|0)+Math.imul(I,H)|0,s=s+Math.imul(I,Z)|0,r=r+Math.imul(S,V)|0,n=(n=n+Math.imul(S,X)|0)+Math.imul(k,V)|0,s=s+Math.imul(k,X)|0,r=r+Math.imul(x,W)|0,n=(n=n+Math.imul(x,Y)|0)+Math.imul(j,W)|0,s=s+Math.imul(j,Y)|0,r=r+Math.imul(_,Q)|0,n=(n=n+Math.imul(_,tt)|0)+Math.imul(w,Q)|0,s=s+Math.imul(w,tt)|0,r=r+Math.imul(v,it)|0,n=(n=n+Math.imul(v,rt)|0)+Math.imul(g,it)|0,s=s+Math.imul(g,rt)|0,r=r+Math.imul(p,st)|0,n=(n=n+Math.imul(p,ot)|0)+Math.imul(m,st)|0,s=s+Math.imul(m,ot)|0;var xt=(d+(r=r+Math.imul(f,ht)|0)|0)+((8191&(n=(n=n+Math.imul(f,dt)|0)+Math.imul(l,ht)|0))<<13)|0;d=((s=s+Math.imul(l,dt)|0)+(n>>>13)|0)+(xt>>>26)|0,xt&=67108863,r=Math.imul(P,U),n=(n=Math.imul(P,K))+Math.imul(N,U)|0,s=Math.imul(N,K),r=r+Math.imul(C,H)|0,n=(n=n+Math.imul(C,Z)|0)+Math.imul(O,H)|0,s=s+Math.imul(O,Z)|0,r=r+Math.imul(R,V)|0,n=(n=n+Math.imul(R,X)|0)+Math.imul(I,V)|0,s=s+Math.imul(I,X)|0,r=r+Math.imul(S,W)|0,n=(n=n+Math.imul(S,Y)|0)+Math.imul(k,W)|0,s=s+Math.imul(k,Y)|0,r=r+Math.imul(x,Q)|0,n=(n=n+Math.imul(x,tt)|0)+Math.imul(j,Q)|0,s=s+Math.imul(j,tt)|0,r=r+Math.imul(_,it)|0,n=(n=n+Math.imul(_,rt)|0)+Math.imul(w,it)|0,s=s+Math.imul(w,rt)|0,r=r+Math.imul(v,st)|0,n=(n=n+Math.imul(v,ot)|0)+Math.imul(g,st)|0,s=s+Math.imul(g,ot)|0,r=r+Math.imul(p,ht)|0,n=(n=n+Math.imul(p,dt)|0)+Math.imul(m,ht)|0,s=s+Math.imul(m,dt)|0;var jt=(d+(r=r+Math.imul(f,ft)|0)|0)+((8191&(n=(n=n+Math.imul(f,lt)|0)+Math.imul(l,ft)|0))<<13)|0;d=((s=s+Math.imul(l,lt)|0)+(n>>>13)|0)+(jt>>>26)|0,jt&=67108863,r=Math.imul(q,U),n=(n=Math.imul(q,K))+Math.imul(D,U)|0,s=Math.imul(D,K),r=r+Math.imul(P,H)|0,n=(n=n+Math.imul(P,Z)|0)+Math.imul(N,H)|0,s=s+Math.imul(N,Z)|0,r=r+Math.imul(C,V)|0,n=(n=n+Math.imul(C,X)|0)+Math.imul(O,V)|0,s=s+Math.imul(O,X)|0,r=r+Math.imul(R,W)|0,n=(n=n+Math.imul(R,Y)|0)+Math.imul(I,W)|0,s=s+Math.imul(I,Y)|0,r=r+Math.imul(S,Q)|0,n=(n=n+Math.imul(S,tt)|0)+Math.imul(k,Q)|0,s=s+Math.imul(k,tt)|0,r=r+Math.imul(x,it)|0,n=(n=n+Math.imul(x,rt)|0)+Math.imul(j,it)|0,s=s+Math.imul(j,rt)|0,r=r+Math.imul(_,st)|0,n=(n=n+Math.imul(_,ot)|0)+Math.imul(w,st)|0,s=s+Math.imul(w,ot)|0,r=r+Math.imul(v,ht)|0,n=(n=n+Math.imul(v,dt)|0)+Math.imul(g,ht)|0,s=s+Math.imul(g,dt)|0,r=r+Math.imul(p,ft)|0,n=(n=n+Math.imul(p,lt)|0)+Math.imul(m,ft)|0,s=s+Math.imul(m,lt)|0;var Et=(d+(r=r+Math.imul(f,pt)|0)|0)+((8191&(n=(n=n+Math.imul(f,mt)|0)+Math.imul(l,pt)|0))<<13)|0;d=((s=s+Math.imul(l,mt)|0)+(n>>>13)|0)+(Et>>>26)|0,Et&=67108863,r=Math.imul(q,H),n=(n=Math.imul(q,Z))+Math.imul(D,H)|0,s=Math.imul(D,Z),r=r+Math.imul(P,V)|0,n=(n=n+Math.imul(P,X)|0)+Math.imul(N,V)|0,s=s+Math.imul(N,X)|0,r=r+Math.imul(C,W)|0,n=(n=n+Math.imul(C,Y)|0)+Math.imul(O,W)|0,s=s+Math.imul(O,Y)|0,r=r+Math.imul(R,Q)|0,n=(n=n+Math.imul(R,tt)|0)+Math.imul(I,Q)|0,s=s+Math.imul(I,tt)|0,r=r+Math.imul(S,it)|0,n=(n=n+Math.imul(S,rt)|0)+Math.imul(k,it)|0,s=s+Math.imul(k,rt)|0,r=r+Math.imul(x,st)|0,n=(n=n+Math.imul(x,ot)|0)+Math.imul(j,st)|0,s=s+Math.imul(j,ot)|0,r=r+Math.imul(_,ht)|0,n=(n=n+Math.imul(_,dt)|0)+Math.imul(w,ht)|0,s=s+Math.imul(w,dt)|0,r=r+Math.imul(v,ft)|0,n=(n=n+Math.imul(v,lt)|0)+Math.imul(g,ft)|0,s=s+Math.imul(g,lt)|0;var St=(d+(r=r+Math.imul(p,pt)|0)|0)+((8191&(n=(n=n+Math.imul(p,mt)|0)+Math.imul(m,pt)|0))<<13)|0;d=((s=s+Math.imul(m,mt)|0)+(n>>>13)|0)+(St>>>26)|0,St&=67108863,r=Math.imul(q,V),n=(n=Math.imul(q,X))+Math.imul(D,V)|0,s=Math.imul(D,X),r=r+Math.imul(P,W)|0,n=(n=n+Math.imul(P,Y)|0)+Math.imul(N,W)|0,s=s+Math.imul(N,Y)|0,r=r+Math.imul(C,Q)|0,n=(n=n+Math.imul(C,tt)|0)+Math.imul(O,Q)|0,s=s+Math.imul(O,tt)|0,r=r+Math.imul(R,it)|0,n=(n=n+Math.imul(R,rt)|0)+Math.imul(I,it)|0,s=s+Math.imul(I,rt)|0,r=r+Math.imul(S,st)|0,n=(n=n+Math.imul(S,ot)|0)+Math.imul(k,st)|0,s=s+Math.imul(k,ot)|0,r=r+Math.imul(x,ht)|0,n=(n=n+Math.imul(x,dt)|0)+Math.imul(j,ht)|0,s=s+Math.imul(j,dt)|0,r=r+Math.imul(_,ft)|0,n=(n=n+Math.imul(_,lt)|0)+Math.imul(w,ft)|0,s=s+Math.imul(w,lt)|0;var kt=(d+(r=r+Math.imul(v,pt)|0)|0)+((8191&(n=(n=n+Math.imul(v,mt)|0)+Math.imul(g,pt)|0))<<13)|0;d=((s=s+Math.imul(g,mt)|0)+(n>>>13)|0)+(kt>>>26)|0,kt&=67108863,r=Math.imul(q,W),n=(n=Math.imul(q,Y))+Math.imul(D,W)|0,s=Math.imul(D,Y),r=r+Math.imul(P,Q)|0,n=(n=n+Math.imul(P,tt)|0)+Math.imul(N,Q)|0,s=s+Math.imul(N,tt)|0,r=r+Math.imul(C,it)|0,n=(n=n+Math.imul(C,rt)|0)+Math.imul(O,it)|0,s=s+Math.imul(O,rt)|0,r=r+Math.imul(R,st)|0,n=(n=n+Math.imul(R,ot)|0)+Math.imul(I,st)|0,s=s+Math.imul(I,ot)|0,r=r+Math.imul(S,ht)|0,n=(n=n+Math.imul(S,dt)|0)+Math.imul(k,ht)|0,s=s+Math.imul(k,dt)|0,r=r+Math.imul(x,ft)|0,n=(n=n+Math.imul(x,lt)|0)+Math.imul(j,ft)|0,s=s+Math.imul(j,lt)|0;var At=(d+(r=r+Math.imul(_,pt)|0)|0)+((8191&(n=(n=n+Math.imul(_,mt)|0)+Math.imul(w,pt)|0))<<13)|0;d=((s=s+Math.imul(w,mt)|0)+(n>>>13)|0)+(At>>>26)|0,At&=67108863,r=Math.imul(q,Q),n=(n=Math.imul(q,tt))+Math.imul(D,Q)|0,s=Math.imul(D,tt),r=r+Math.imul(P,it)|0,n=(n=n+Math.imul(P,rt)|0)+Math.imul(N,it)|0,s=s+Math.imul(N,rt)|0,r=r+Math.imul(C,st)|0,n=(n=n+Math.imul(C,ot)|0)+Math.imul(O,st)|0,s=s+Math.imul(O,ot)|0,r=r+Math.imul(R,ht)|0,n=(n=n+Math.imul(R,dt)|0)+Math.imul(I,ht)|0,s=s+Math.imul(I,dt)|0,r=r+Math.imul(S,ft)|0,n=(n=n+Math.imul(S,lt)|0)+Math.imul(k,ft)|0,s=s+Math.imul(k,lt)|0;var Rt=(d+(r=r+Math.imul(x,pt)|0)|0)+((8191&(n=(n=n+Math.imul(x,mt)|0)+Math.imul(j,pt)|0))<<13)|0;d=((s=s+Math.imul(j,mt)|0)+(n>>>13)|0)+(Rt>>>26)|0,Rt&=67108863,r=Math.imul(q,it),n=(n=Math.imul(q,rt))+Math.imul(D,it)|0,s=Math.imul(D,rt),r=r+Math.imul(P,st)|0,n=(n=n+Math.imul(P,ot)|0)+Math.imul(N,st)|0,s=s+Math.imul(N,ot)|0,r=r+Math.imul(C,ht)|0,n=(n=n+Math.imul(C,dt)|0)+Math.imul(O,ht)|0,s=s+Math.imul(O,dt)|0,r=r+Math.imul(R,ft)|0,n=(n=n+Math.imul(R,lt)|0)+Math.imul(I,ft)|0,s=s+Math.imul(I,lt)|0;var It=(d+(r=r+Math.imul(S,pt)|0)|0)+((8191&(n=(n=n+Math.imul(S,mt)|0)+Math.imul(k,pt)|0))<<13)|0;d=((s=s+Math.imul(k,mt)|0)+(n>>>13)|0)+(It>>>26)|0,It&=67108863,r=Math.imul(q,st),n=(n=Math.imul(q,ot))+Math.imul(D,st)|0,s=Math.imul(D,ot),r=r+Math.imul(P,ht)|0,n=(n=n+Math.imul(P,dt)|0)+Math.imul(N,ht)|0,s=s+Math.imul(N,dt)|0,r=r+Math.imul(C,ft)|0,n=(n=n+Math.imul(C,lt)|0)+Math.imul(O,ft)|0,s=s+Math.imul(O,lt)|0;var Bt=(d+(r=r+Math.imul(R,pt)|0)|0)+((8191&(n=(n=n+Math.imul(R,mt)|0)+Math.imul(I,pt)|0))<<13)|0;d=((s=s+Math.imul(I,mt)|0)+(n>>>13)|0)+(Bt>>>26)|0,Bt&=67108863,r=Math.imul(q,ht),n=(n=Math.imul(q,dt))+Math.imul(D,ht)|0,s=Math.imul(D,dt),r=r+Math.imul(P,ft)|0,n=(n=n+Math.imul(P,lt)|0)+Math.imul(N,ft)|0,s=s+Math.imul(N,lt)|0;var Ct=(d+(r=r+Math.imul(C,pt)|0)|0)+((8191&(n=(n=n+Math.imul(C,mt)|0)+Math.imul(O,pt)|0))<<13)|0;d=((s=s+Math.imul(O,mt)|0)+(n>>>13)|0)+(Ct>>>26)|0,Ct&=67108863,r=Math.imul(q,ft),n=(n=Math.imul(q,lt))+Math.imul(D,ft)|0,s=Math.imul(D,lt);var Ot=(d+(r=r+Math.imul(P,pt)|0)|0)+((8191&(n=(n=n+Math.imul(P,mt)|0)+Math.imul(N,pt)|0))<<13)|0;d=((s=s+Math.imul(N,mt)|0)+(n>>>13)|0)+(Ot>>>26)|0,Ot&=67108863;var Tt=(d+(r=Math.imul(q,pt))|0)+((8191&(n=(n=Math.imul(q,mt))+Math.imul(D,pt)|0))<<13)|0;return d=((s=Math.imul(D,mt))+(n>>>13)|0)+(Tt>>>26)|0,Tt&=67108863,h[0]=bt,h[1]=vt,h[2]=gt,h[3]=yt,h[4]=_t,h[5]=wt,h[6]=Mt,h[7]=xt,h[8]=jt,h[9]=Et,h[10]=St,h[11]=kt,h[12]=At,h[13]=Rt,h[14]=It,h[15]=Bt,h[16]=Ct,h[17]=Ot,h[18]=Tt,0!==d&&(h[19]=d,i.length++),i};function v(t,e,i){i.negative=e.negative^t.negative,i.length=t.length+e.length;for(var r=0,n=0,s=0;s>>26)|0)>>>26,o&=67108863}i.words[s]=a,r=o,o=n}return 0!==r?i.words[s]=r:i.length--,i._strip()}function g(t,e,i){return v(t,e,i)}function y(t,e){this.x=t,this.y=e}Math.imul||(b=m),s.prototype.mulTo=function(t,e){var i=this.length+t.length;return 10===this.length&&10===t.length?b(this,t,e):i<63?m(this,t,e):i<1024?v(this,t,e):g(this,t,e)},y.prototype.makeRBT=function(t){for(var e=new Array(t),i=s.prototype._countBits(t)-1,r=0;r>=1;return r},y.prototype.permute=function(t,e,i,r,n,s){for(var o=0;o>>=1)n++;return 1<>>=13,i[2*o+1]=8191&s,s>>>=13;for(o=2*e;o>=26,i+=s/67108864|0,i+=o>>>26,this.words[n]=67108863&o}return 0!==i&&(this.words[n]=i,this.length++),e?this.ineg():this},s.prototype.muln=function(t){return this.clone().imuln(t)},s.prototype.sqr=function(){return this.mul(this)},s.prototype.isqr=function(){return this.imul(this.clone())},s.prototype.pow=function(t){var e=function(t){for(var e=new Array(t.bitLength()),i=0;i>>n&1}return e}(t);if(0===e.length)return new s(1);for(var i=this,r=0;r=0);var e,i=t%26,n=(t-i)/26,s=67108863>>>26-i<<26-i;if(0!==i){var o=0;for(e=0;e>>26-i}o&&(this.words[e]=o,this.length++)}if(0!==n){for(e=this.length-1;e>=0;e--)this.words[e+n]=this.words[e];for(e=0;e=0),n=e?(e-e%26)/26:0;var s=t%26,o=Math.min((t-s)/26,this.length),a=67108863^67108863>>>s<o)for(this.length-=o,d=0;d=0&&(0!==u||d>=n);d--){var f=0|this.words[d];this.words[d]=u<<26-s|f>>>s,u=f&a}return h&&0!==u&&(h.words[h.length++]=u),0===this.length&&(this.words[0]=0,this.length=1),this._strip()},s.prototype.ishrn=function(t,e,i){return r(0===this.negative),this.iushrn(t,e,i)},s.prototype.shln=function(t){return this.clone().ishln(t)},s.prototype.ushln=function(t){return this.clone().iushln(t)},s.prototype.shrn=function(t){return this.clone().ishrn(t)},s.prototype.ushrn=function(t){return this.clone().iushrn(t)},s.prototype.testn=function(t){r("number"==typeof t&&t>=0);var e=t%26,i=(t-e)/26,n=1<=0);var e=t%26,i=(t-e)/26;if(r(0===this.negative,"imaskn works only with positive numbers"),this.length<=i)return this;if(0!==e&&i++,this.length=Math.min(i,this.length),0!==e){var n=67108863^67108863>>>e<=67108864;e++)this.words[e]-=67108864,e===this.length-1?this.words[e+1]=1:this.words[e+1]++;return this.length=Math.max(this.length,e+1),this},s.prototype.isubn=function(t){if(r("number"==typeof t),r(t<67108864),t<0)return this.iaddn(-t);if(0!==this.negative)return this.negative=0,this.iaddn(t),this.negative=1,this;if(this.words[0]-=t,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var e=0;e>26)-(h/67108864|0),this.words[n+i]=67108863&s}for(;n>26,this.words[n+i]=67108863&s;if(0===a)return this._strip();for(r(-1===a),a=0,n=0;n>26,this.words[n]=67108863&s;return this.negative=1,this._strip()},s.prototype._wordDiv=function(t,e){var i=(this.length,t.length),r=this.clone(),n=t,o=0|n.words[n.length-1];0!==(i=26-this._countBits(o))&&(n=n.ushln(i),r.iushln(i),o=0|n.words[n.length-1]);var a,h=r.length-n.length;if("mod"!==e){(a=new s(null)).length=h+1,a.words=new Array(a.length);for(var d=0;d=0;f--){var l=67108864*(0|r.words[n.length+f])+(0|r.words[n.length+f-1]);for(l=Math.min(l/o|0,67108863),r._ishlnsubmul(n,l,f);0!==r.negative;)l--,r.negative=0,r._ishlnsubmul(n,1,f),r.isZero()||(r.negative^=1);a&&(a.words[f]=l)}return a&&a._strip(),r._strip(),"div"!==e&&0!==i&&r.iushrn(i),{div:a||null,mod:r}},s.prototype.divmod=function(t,e,i){return r(!t.isZero()),this.isZero()?{div:new s(0),mod:new s(0)}:0!==this.negative&&0===t.negative?(a=this.neg().divmod(t,e),"mod"!==e&&(n=a.div.neg()),"div"!==e&&(o=a.mod.neg(),i&&0!==o.negative&&o.iadd(t)),{div:n,mod:o}):0===this.negative&&0!==t.negative?(a=this.divmod(t.neg(),e),"mod"!==e&&(n=a.div.neg()),{div:n,mod:a.mod}):0!=(this.negative&t.negative)?(a=this.neg().divmod(t.neg(),e),"div"!==e&&(o=a.mod.neg(),i&&0!==o.negative&&o.isub(t)),{div:a.div,mod:o}):t.length>this.length||this.cmp(t)<0?{div:new s(0),mod:this}:1===t.length?"div"===e?{div:this.divn(t.words[0]),mod:null}:"mod"===e?{div:null,mod:new s(this.modrn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new s(this.modrn(t.words[0]))}:this._wordDiv(t,e);var n,o,a},s.prototype.div=function(t){return this.divmod(t,"div",!1).div},s.prototype.mod=function(t){return this.divmod(t,"mod",!1).mod},s.prototype.umod=function(t){return this.divmod(t,"mod",!0).mod},s.prototype.divRound=function(t){var e=this.divmod(t);if(e.mod.isZero())return e.div;var i=0!==e.div.negative?e.mod.isub(t):e.mod,r=t.ushrn(1),n=t.andln(1),s=i.cmp(r);return s<0||1===n&&0===s?e.div:0!==e.div.negative?e.div.isubn(1):e.div.iaddn(1)},s.prototype.modrn=function(t){var e=t<0;e&&(t=-t),r(t<=67108863);for(var i=(1<<26)%t,n=0,s=this.length-1;s>=0;s--)n=(i*n+(0|this.words[s]))%t;return e?-n:n},s.prototype.modn=function(t){return this.modrn(t)},s.prototype.idivn=function(t){var e=t<0;e&&(t=-t),r(t<=67108863);for(var i=0,n=this.length-1;n>=0;n--){var s=(0|this.words[n])+67108864*i;this.words[n]=s/t|0,i=s%t}return this._strip(),e?this.ineg():this},s.prototype.divn=function(t){return this.clone().idivn(t)},s.prototype.egcd=function(t){r(0===t.negative),r(!t.isZero());var e=this,i=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var n=new s(1),o=new s(0),a=new s(0),h=new s(1),d=0;e.isEven()&&i.isEven();)e.iushrn(1),i.iushrn(1),++d;for(var u=i.clone(),f=e.clone();!e.isZero();){for(var l=0,c=1;0==(e.words[0]&c)&&l<26;++l,c<<=1);if(l>0)for(e.iushrn(l);l-- >0;)(n.isOdd()||o.isOdd())&&(n.iadd(u),o.isub(f)),n.iushrn(1),o.iushrn(1);for(var p=0,m=1;0==(i.words[0]&m)&&p<26;++p,m<<=1);if(p>0)for(i.iushrn(p);p-- >0;)(a.isOdd()||h.isOdd())&&(a.iadd(u),h.isub(f)),a.iushrn(1),h.iushrn(1);e.cmp(i)>=0?(e.isub(i),n.isub(a),o.isub(h)):(i.isub(e),a.isub(n),h.isub(o))}return{a:a,b:h,gcd:i.iushln(d)}},s.prototype._invmp=function(t){r(0===t.negative),r(!t.isZero());var e=this,i=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var n,o=new s(1),a=new s(0),h=i.clone();e.cmpn(1)>0&&i.cmpn(1)>0;){for(var d=0,u=1;0==(e.words[0]&u)&&d<26;++d,u<<=1);if(d>0)for(e.iushrn(d);d-- >0;)o.isOdd()&&o.iadd(h),o.iushrn(1);for(var f=0,l=1;0==(i.words[0]&l)&&f<26;++f,l<<=1);if(f>0)for(i.iushrn(f);f-- >0;)a.isOdd()&&a.iadd(h),a.iushrn(1);e.cmp(i)>=0?(e.isub(i),o.isub(a)):(i.isub(e),a.isub(o))}return(n=0===e.cmpn(1)?o:a).cmpn(0)<0&&n.iadd(t),n},s.prototype.gcd=function(t){if(this.isZero())return t.abs();if(t.isZero())return this.abs();var e=this.clone(),i=t.clone();e.negative=0,i.negative=0;for(var r=0;e.isEven()&&i.isEven();r++)e.iushrn(1),i.iushrn(1);for(;;){for(;e.isEven();)e.iushrn(1);for(;i.isEven();)i.iushrn(1);var n=e.cmp(i);if(n<0){var s=e;e=i,i=s}else if(0===n||0===i.cmpn(1))break;e.isub(i)}return i.iushln(r)},s.prototype.invm=function(t){return this.egcd(t).a.umod(t)},s.prototype.isEven=function(){return 0==(1&this.words[0])},s.prototype.isOdd=function(){return 1==(1&this.words[0])},s.prototype.andln=function(t){return this.words[0]&t},s.prototype.bincn=function(t){r("number"==typeof t);var e=t%26,i=(t-e)/26,n=1<>>26,a&=67108863,this.words[o]=a}return 0!==s&&(this.words[o]=s,this.length++),this},s.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},s.prototype.cmpn=function(t){var e,i=t<0;if(0!==this.negative&&!i)return-1;if(0===this.negative&&i)return 1;if(this._strip(),this.length>1)e=1;else{i&&(t=-t),r(t<=67108863,"Number is too big");var n=0|this.words[0];e=n===t?0:nt.length)return 1;if(this.length=0;i--){var r=0|this.words[i],n=0|t.words[i];if(r!==n){rn&&(e=1);break}}return e},s.prototype.gtn=function(t){return 1===this.cmpn(t)},s.prototype.gt=function(t){return 1===this.cmp(t)},s.prototype.gten=function(t){return this.cmpn(t)>=0},s.prototype.gte=function(t){return this.cmp(t)>=0},s.prototype.ltn=function(t){return-1===this.cmpn(t)},s.prototype.lt=function(t){return-1===this.cmp(t)},s.prototype.lten=function(t){return this.cmpn(t)<=0},s.prototype.lte=function(t){return this.cmp(t)<=0},s.prototype.eqn=function(t){return 0===this.cmpn(t)},s.prototype.eq=function(t){return 0===this.cmp(t)},s.red=function(t){return new S(t)},s.prototype.toRed=function(t){return r(!this.red,"Already a number in reduction context"),r(0===this.negative,"red works only with positives"),t.convertTo(this)._forceRed(t)},s.prototype.fromRed=function(){return r(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},s.prototype._forceRed=function(t){return this.red=t,this},s.prototype.forceRed=function(t){return r(!this.red,"Already a number in reduction context"),this._forceRed(t)},s.prototype.redAdd=function(t){return r(this.red,"redAdd works only with red numbers"),this.red.add(this,t)},s.prototype.redIAdd=function(t){return r(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,t)},s.prototype.redSub=function(t){return r(this.red,"redSub works only with red numbers"),this.red.sub(this,t)},s.prototype.redISub=function(t){return r(this.red,"redISub works only with red numbers"),this.red.isub(this,t)},s.prototype.redShl=function(t){return r(this.red,"redShl works only with red numbers"),this.red.shl(this,t)},s.prototype.redMul=function(t){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.mul(this,t)},s.prototype.redIMul=function(t){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.imul(this,t)},s.prototype.redSqr=function(){return r(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},s.prototype.redISqr=function(){return r(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},s.prototype.redSqrt=function(){return r(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},s.prototype.redInvm=function(){return r(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},s.prototype.redNeg=function(){return r(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},s.prototype.redPow=function(t){return r(this.red&&!t.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,t)};var _={k256:null,p224:null,p192:null,p25519:null};function w(t,e){this.name=t,this.p=new s(e,16),this.n=this.p.bitLength(),this.k=new s(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function M(){w.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function x(){w.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function j(){w.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function E(){w.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function S(t){if("string"==typeof t){var e=s._prime(t);this.m=e.p,this.prime=e}else r(t.gtn(1),"modulus must be greater than 1"),this.m=t,this.prime=null}function k(t){S.call(this,t),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new s(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}w.prototype._tmp=function(){var t=new s(null);return t.words=new Array(Math.ceil(this.n/13)),t},w.prototype.ireduce=function(t){var e,i=t;do{this.split(i,this.tmp),e=(i=(i=this.imulK(i)).iadd(this.tmp)).bitLength()}while(e>this.n);var r=e0?i.isub(this.p):void 0!==i.strip?i.strip():i._strip(),i},w.prototype.split=function(t,e){t.iushrn(this.n,0,e)},w.prototype.imulK=function(t){return t.imul(this.k)},n(M,w),M.prototype.split=function(t,e){for(var i=Math.min(t.length,9),r=0;r>>22,n=s}n>>>=22,t.words[r-10]=n,0===n&&t.length>10?t.length-=10:t.length-=9},M.prototype.imulK=function(t){t.words[t.length]=0,t.words[t.length+1]=0,t.length+=2;for(var e=0,i=0;i>>=26,t.words[i]=n,e=r}return 0!==e&&(t.words[t.length++]=e),t},s._prime=function(t){if(_[t])return _[t];var e;if("k256"===t)e=new M;else if("p224"===t)e=new x;else if("p192"===t)e=new j;else{if("p25519"!==t)throw new Error("Unknown prime "+t);e=new E}return _[t]=e,e},S.prototype._verify1=function(t){r(0===t.negative,"red works only with positives"),r(t.red,"red works only with red numbers")},S.prototype._verify2=function(t,e){r(0==(t.negative|e.negative),"red works only with positives"),r(t.red&&t.red===e.red,"red works only with red numbers")},S.prototype.imod=function(t){return this.prime?this.prime.ireduce(t)._forceRed(this):(u(t,t.umod(this.m)._forceRed(this)),t)},S.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},S.prototype.add=function(t,e){this._verify2(t,e);var i=t.add(e);return i.cmp(this.m)>=0&&i.isub(this.m),i._forceRed(this)},S.prototype.iadd=function(t,e){this._verify2(t,e);var i=t.iadd(e);return i.cmp(this.m)>=0&&i.isub(this.m),i},S.prototype.sub=function(t,e){this._verify2(t,e);var i=t.sub(e);return i.cmpn(0)<0&&i.iadd(this.m),i._forceRed(this)},S.prototype.isub=function(t,e){this._verify2(t,e);var i=t.isub(e);return i.cmpn(0)<0&&i.iadd(this.m),i},S.prototype.shl=function(t,e){return this._verify1(t),this.imod(t.ushln(e))},S.prototype.imul=function(t,e){return this._verify2(t,e),this.imod(t.imul(e))},S.prototype.mul=function(t,e){return this._verify2(t,e),this.imod(t.mul(e))},S.prototype.isqr=function(t){return this.imul(t,t.clone())},S.prototype.sqr=function(t){return this.mul(t,t)},S.prototype.sqrt=function(t){if(t.isZero())return t.clone();var e=this.m.andln(3);if(r(e%2==1),3===e){var i=this.m.add(new s(1)).iushrn(2);return this.pow(t,i)}for(var n=this.m.subn(1),o=0;!n.isZero()&&0===n.andln(1);)o++,n.iushrn(1);r(!n.isZero());var a=new s(1).toRed(this),h=a.redNeg(),d=this.m.subn(1).iushrn(1),u=this.m.bitLength();for(u=new s(2*u*u).toRed(this);0!==this.pow(u,d).cmp(h);)u.redIAdd(h);for(var f=this.pow(u,n),l=this.pow(t,n.addn(1).iushrn(1)),c=this.pow(t,n),p=o;0!==c.cmp(a);){for(var m=c,b=0;0!==m.cmp(a);b++)m=m.redSqr();r(b=0;r--){for(var d=e.words[r],u=h-1;u>=0;u--){var f=d>>u&1;n!==i[0]&&(n=this.sqr(n)),0!==f||0!==o?(o<<=1,o|=f,(4===++a||0===r&&0===u)&&(n=this.mul(n,i[o]),a=0,o=0)):a=0}h=26}return n},S.prototype.convertTo=function(t){var e=t.umod(this.m);return e===t?e.clone():e},S.prototype.convertFrom=function(t){var e=t.clone();return e.red=null,e},s.mont=function(t){return new k(t)},n(k,S),k.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},k.prototype.convertFrom=function(t){var e=this.imod(t.mul(this.rinv));return e.red=null,e},k.prototype.imul=function(t,e){if(t.isZero()||e.isZero())return t.words[0]=0,t.length=1,t;var i=t.imul(e),r=i.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),n=i.isub(r).iushrn(this.shift),s=n;return n.cmp(this.m)>=0?s=n.isub(this.m):n.cmpn(0)<0&&(s=n.iadd(this.m)),s._forceRed(this)},k.prototype.mul=function(t,e){if(t.isZero()||e.isZero())return new s(0)._forceRed(this);var i=t.mul(e),r=i.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),n=i.isub(r).iushrn(this.shift),o=n;return n.cmp(this.m)>=0?o=n.isub(this.m):n.cmpn(0)<0&&(o=n.iadd(this.m)),o._forceRed(this)},k.prototype.invm=function(t){return this.imod(t._invmp(this.m).mul(this.r2))._forceRed(this)}}(t,this)}).call(this,i("../../node_modules/webpack/buildin/module.js")(t))},"../../node_modules/browserify-sign/node_modules/browserify-rsa/index.js":function(t,e,i){(function(e){var r=i("../../node_modules/browserify-sign/node_modules/bn.js/lib/bn.js"),n=i("../../node_modules/randombytes/browser.js");function s(t){var e,i=t.modulus.byteLength();do{e=new r(n(i))}while(e.cmp(t.modulus)>=0||!e.umod(t.prime1)||!e.umod(t.prime2));return e}function o(t,i){var n=function(t){var e=s(t);return{blinder:e.toRed(r.mont(t.modulus)).redPow(new r(t.publicExponent)).fromRed(),unblinder:e.invm(t.modulus)}}(i),o=i.modulus.byteLength(),a=new r(t).mul(n.blinder).umod(i.modulus),h=a.toRed(r.mont(i.prime1)),d=a.toRed(r.mont(i.prime2)),u=i.coefficient,f=i.prime1,l=i.prime2,c=h.redPow(i.exponent1).fromRed(),p=d.redPow(i.exponent2).fromRed(),m=c.isub(p).imul(u).umod(f).imul(l);return p.iadd(m).imul(n.unblinder).umod(i.modulus).toArrayLike(e,"be",o)}o.getr=s,t.exports=o}).call(this,i("../../node_modules/buffer/index.js").Buffer)},"../../node_modules/browserify-sign/node_modules/parse-asn1/aesid.json":function(t){t.exports=JSON.parse('{"2.16.840.1.101.3.4.1.1":"aes-128-ecb","2.16.840.1.101.3.4.1.2":"aes-128-cbc","2.16.840.1.101.3.4.1.3":"aes-128-ofb","2.16.840.1.101.3.4.1.4":"aes-128-cfb","2.16.840.1.101.3.4.1.21":"aes-192-ecb","2.16.840.1.101.3.4.1.22":"aes-192-cbc","2.16.840.1.101.3.4.1.23":"aes-192-ofb","2.16.840.1.101.3.4.1.24":"aes-192-cfb","2.16.840.1.101.3.4.1.41":"aes-256-ecb","2.16.840.1.101.3.4.1.42":"aes-256-cbc","2.16.840.1.101.3.4.1.43":"aes-256-ofb","2.16.840.1.101.3.4.1.44":"aes-256-cfb"}')},"../../node_modules/browserify-sign/node_modules/parse-asn1/asn1.js":function(t,e,i){"use strict";var r=i("../../node_modules/browserify-sign/node_modules/asn1.js/lib/asn1.js");e.certificate=i("../../node_modules/browserify-sign/node_modules/parse-asn1/certificate.js");var n=r.define("RSAPrivateKey",(function(){this.seq().obj(this.key("version").int(),this.key("modulus").int(),this.key("publicExponent").int(),this.key("privateExponent").int(),this.key("prime1").int(),this.key("prime2").int(),this.key("exponent1").int(),this.key("exponent2").int(),this.key("coefficient").int())}));e.RSAPrivateKey=n;var s=r.define("RSAPublicKey",(function(){this.seq().obj(this.key("modulus").int(),this.key("publicExponent").int())}));e.RSAPublicKey=s;var o=r.define("SubjectPublicKeyInfo",(function(){this.seq().obj(this.key("algorithm").use(a),this.key("subjectPublicKey").bitstr())}));e.PublicKey=o;var a=r.define("AlgorithmIdentifier",(function(){this.seq().obj(this.key("algorithm").objid(),this.key("none").null_().optional(),this.key("curve").objid().optional(),this.key("params").seq().obj(this.key("p").int(),this.key("q").int(),this.key("g").int()).optional())})),h=r.define("PrivateKeyInfo",(function(){this.seq().obj(this.key("version").int(),this.key("algorithm").use(a),this.key("subjectPrivateKey").octstr())}));e.PrivateKey=h;var d=r.define("EncryptedPrivateKeyInfo",(function(){this.seq().obj(this.key("algorithm").seq().obj(this.key("id").objid(),this.key("decrypt").seq().obj(this.key("kde").seq().obj(this.key("id").objid(),this.key("kdeparams").seq().obj(this.key("salt").octstr(),this.key("iters").int())),this.key("cipher").seq().obj(this.key("algo").objid(),this.key("iv").octstr()))),this.key("subjectPrivateKey").octstr())}));e.EncryptedPrivateKey=d;var u=r.define("DSAPrivateKey",(function(){this.seq().obj(this.key("version").int(),this.key("p").int(),this.key("q").int(),this.key("g").int(),this.key("pub_key").int(),this.key("priv_key").int())}));e.DSAPrivateKey=u,e.DSAparam=r.define("DSAparam",(function(){this.int()}));var f=r.define("ECPrivateKey",(function(){this.seq().obj(this.key("version").int(),this.key("privateKey").octstr(),this.key("parameters").optional().explicit(0).use(l),this.key("publicKey").optional().explicit(1).bitstr())}));e.ECPrivateKey=f;var l=r.define("ECParameters",(function(){this.choice({namedCurve:this.objid()})}));e.signature=r.define("signature",(function(){this.seq().obj(this.key("r").int(),this.key("s").int())}))},"../../node_modules/browserify-sign/node_modules/parse-asn1/certificate.js":function(t,e,i){"use strict";var r=i("../../node_modules/browserify-sign/node_modules/asn1.js/lib/asn1.js"),n=r.define("Time",(function(){this.choice({utcTime:this.utctime(),generalTime:this.gentime()})})),s=r.define("AttributeTypeValue",(function(){this.seq().obj(this.key("type").objid(),this.key("value").any())})),o=r.define("AlgorithmIdentifier",(function(){this.seq().obj(this.key("algorithm").objid(),this.key("parameters").optional(),this.key("curve").objid().optional())})),a=r.define("SubjectPublicKeyInfo",(function(){this.seq().obj(this.key("algorithm").use(o),this.key("subjectPublicKey").bitstr())})),h=r.define("RelativeDistinguishedName",(function(){this.setof(s)})),d=r.define("RDNSequence",(function(){this.seqof(h)})),u=r.define("Name",(function(){this.choice({rdnSequence:this.use(d)})})),f=r.define("Validity",(function(){this.seq().obj(this.key("notBefore").use(n),this.key("notAfter").use(n))})),l=r.define("Extension",(function(){this.seq().obj(this.key("extnID").objid(),this.key("critical").bool().def(!1),this.key("extnValue").octstr())})),c=r.define("TBSCertificate",(function(){this.seq().obj(this.key("version").explicit(0).int().optional(),this.key("serialNumber").int(),this.key("signature").use(o),this.key("issuer").use(u),this.key("validity").use(f),this.key("subject").use(u),this.key("subjectPublicKeyInfo").use(a),this.key("issuerUniqueID").implicit(1).bitstr().optional(),this.key("subjectUniqueID").implicit(2).bitstr().optional(),this.key("extensions").explicit(3).seqof(l).optional())})),p=r.define("X509Certificate",(function(){this.seq().obj(this.key("tbsCertificate").use(c),this.key("signatureAlgorithm").use(o),this.key("signatureValue").bitstr())}));t.exports=p},"../../node_modules/browserify-sign/node_modules/parse-asn1/fixProc.js":function(t,e,i){var r=/Proc-Type: 4,ENCRYPTED[\n\r]+DEK-Info: AES-((?:128)|(?:192)|(?:256))-CBC,([0-9A-H]+)[\n\r]+([0-9A-z\n\r+/=]+)[\n\r]+/m,n=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----/m,s=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----([0-9A-z\n\r+/=]+)-----END \1-----$/m,o=i("../../node_modules/evp_bytestokey/index.js"),a=i("../../node_modules/browserify-aes/browser.js"),h=i("../../node_modules/safe-buffer/index.js").Buffer;t.exports=function(t,e){var i,d=t.toString(),u=d.match(r);if(u){var f="aes"+u[1],l=h.from(u[2],"hex"),c=h.from(u[3].replace(/[\r\n]/g,""),"base64"),p=o(e,l.slice(0,8),parseInt(u[1],10)).key,m=[],b=a.createDecipheriv(f,p,l);m.push(b.update(c)),m.push(b.final()),i=h.concat(m)}else{var v=d.match(s);i=h.from(v[2].replace(/[\r\n]/g,""),"base64")}return{tag:d.match(n)[1],data:i}}},"../../node_modules/browserify-sign/node_modules/parse-asn1/index.js":function(t,e,i){var r=i("../../node_modules/browserify-sign/node_modules/parse-asn1/asn1.js"),n=i("../../node_modules/browserify-sign/node_modules/parse-asn1/aesid.json"),s=i("../../node_modules/browserify-sign/node_modules/parse-asn1/fixProc.js"),o=i("../../node_modules/browserify-aes/browser.js"),a=i("../../node_modules/pbkdf2/browser.js"),h=i("../../node_modules/safe-buffer/index.js").Buffer;function d(t){var e;"object"!=typeof t||h.isBuffer(t)||(e=t.passphrase,t=t.key),"string"==typeof t&&(t=h.from(t));var i,d,u=s(t,e),f=u.tag,l=u.data;switch(f){case"CERTIFICATE":d=r.certificate.decode(l,"der").tbsCertificate.subjectPublicKeyInfo;case"PUBLIC KEY":switch(d||(d=r.PublicKey.decode(l,"der")),i=d.algorithm.algorithm.join(".")){case"1.2.840.113549.1.1.1":return r.RSAPublicKey.decode(d.subjectPublicKey.data,"der");case"1.2.840.10045.2.1":return d.subjectPrivateKey=d.subjectPublicKey,{type:"ec",data:d};case"1.2.840.10040.4.1":return d.algorithm.params.pub_key=r.DSAparam.decode(d.subjectPublicKey.data,"der"),{type:"dsa",data:d.algorithm.params};default:throw new Error("unknown key id "+i)}case"ENCRYPTED PRIVATE KEY":l=function(t,e){var i=t.algorithm.decrypt.kde.kdeparams.salt,r=parseInt(t.algorithm.decrypt.kde.kdeparams.iters.toString(),10),s=n[t.algorithm.decrypt.cipher.algo.join(".")],d=t.algorithm.decrypt.cipher.iv,u=t.subjectPrivateKey,f=parseInt(s.split("-")[1],10)/8,l=a.pbkdf2Sync(e,i,r,f,"sha1"),c=o.createDecipheriv(s,l,d),p=[];return p.push(c.update(u)),p.push(c.final()),h.concat(p)}(l=r.EncryptedPrivateKey.decode(l,"der"),e);case"PRIVATE KEY":switch(i=(d=r.PrivateKey.decode(l,"der")).algorithm.algorithm.join(".")){case"1.2.840.113549.1.1.1":return r.RSAPrivateKey.decode(d.subjectPrivateKey,"der");case"1.2.840.10045.2.1":return{curve:d.algorithm.curve,privateKey:r.ECPrivateKey.decode(d.subjectPrivateKey,"der").privateKey};case"1.2.840.10040.4.1":return d.algorithm.params.priv_key=r.DSAparam.decode(d.subjectPrivateKey,"der"),{type:"dsa",params:d.algorithm.params};default:throw new Error("unknown key id "+i)}case"RSA PUBLIC KEY":return r.RSAPublicKey.decode(l,"der");case"RSA PRIVATE KEY":return r.RSAPrivateKey.decode(l,"der");case"DSA PRIVATE KEY":return{type:"dsa",params:r.DSAPrivateKey.decode(l,"der")};case"EC PRIVATE KEY":return{curve:(l=r.ECPrivateKey.decode(l,"der")).parameters.value,privateKey:l.privateKey};default:throw new Error("unknown key type "+f)}}t.exports=d,d.signature=r.signature},"../../node_modules/browserify-sign/node_modules/readable-stream/errors-browser.js":function(t,e,i){"use strict";var r={};function n(t,e,i){i||(i=Error);var n=function(t){var i,r;function n(i,r,n){return t.call(this,function(t,i,r){return"string"==typeof e?e:e(t,i,r)}(i,r,n))||this}return r=t,(i=n).prototype=Object.create(r.prototype),i.prototype.constructor=i,i.__proto__=r,n}(i);n.prototype.name=i.name,n.prototype.code=t,r[t]=n}function s(t,e){if(Array.isArray(t)){var i=t.length;return t=t.map((function(t){return String(t)})),i>2?"one of ".concat(e," ").concat(t.slice(0,i-1).join(", "),", or ")+t[i-1]:2===i?"one of ".concat(e," ").concat(t[0]," or ").concat(t[1]):"of ".concat(e," ").concat(t[0])}return"of ".concat(e," ").concat(String(t))}n("ERR_INVALID_OPT_VALUE",(function(t,e){return'The value "'+e+'" is invalid for option "'+t+'"'}),TypeError),n("ERR_INVALID_ARG_TYPE",(function(t,e,i){var r,n,o,a;if("string"==typeof e&&(n="not ",e.substr(!o||o<0?0:+o,n.length)===n)?(r="must not be",e=e.replace(/^not /,"")):r="must be",function(t,e,i){return(void 0===i||i>t.length)&&(i=t.length),t.substring(i-e.length,i)===e}(t," argument"))a="The ".concat(t," ").concat(r," ").concat(s(e,"type"));else{var h=function(t,e,i){return"number"!=typeof i&&(i=0),!(i+e.length>t.length)&&-1!==t.indexOf(e,i)}(t,".")?"property":"argument";a='The "'.concat(t,'" ').concat(h," ").concat(r," ").concat(s(e,"type"))}return a+=". Received type ".concat(typeof i)}),TypeError),n("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),n("ERR_METHOD_NOT_IMPLEMENTED",(function(t){return"The "+t+" method is not implemented"})),n("ERR_STREAM_PREMATURE_CLOSE","Premature close"),n("ERR_STREAM_DESTROYED",(function(t){return"Cannot call "+t+" after a stream was destroyed"})),n("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),n("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),n("ERR_STREAM_WRITE_AFTER_END","write after end"),n("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),n("ERR_UNKNOWN_ENCODING",(function(t){return"Unknown encoding: "+t}),TypeError),n("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),t.exports.codes=r},"../../node_modules/browserify-sign/node_modules/readable-stream/lib/_stream_duplex.js":function(t,e,i){"use strict";(function(e){var r=Object.keys||function(t){var e=[];for(var i in t)e.push(i);return e};t.exports=d;var n=i("../../node_modules/browserify-sign/node_modules/readable-stream/lib/_stream_readable.js"),s=i("../../node_modules/browserify-sign/node_modules/readable-stream/lib/_stream_writable.js");i("../../node_modules/inherits/inherits_browser.js")(d,n);for(var o=r(s.prototype),a=0;a0)if("string"==typeof e||o.objectMode||Object.getPrototypeOf(e)===a.prototype||(e=function(t){return a.from(t)}(e)),r)o.endEmitted?M(t,new w):k(t,o,e,!0);else if(o.ended)M(t,new y);else{if(o.destroyed)return!1;o.reading=!1,o.decoder&&!i?(e=o.decoder.write(e),o.objectMode||0!==e.length?k(t,o,e,!1):B(t,o)):k(t,o,e,!1)}else r||(o.reading=!1,B(t,o));return!o.ended&&(o.lengthe.highWaterMark&&(e.highWaterMark=function(t){return t>=1073741824?t=1073741824:(t--,t|=t>>>1,t|=t>>>2,t|=t>>>4,t|=t>>>8,t|=t>>>16,t++),t}(t)),t<=e.length?t:e.ended?e.length:(e.needReadable=!0,0))}function R(t){var e=t._readableState;d("emitReadable",e.needReadable,e.emittedReadable),e.needReadable=!1,e.emittedReadable||(d("emitReadable",e.flowing),e.emittedReadable=!0,r.nextTick(I,t))}function I(t){var e=t._readableState;d("emitReadable_",e.destroyed,e.length,e.ended),e.destroyed||!e.length&&!e.ended||(t.emit("readable"),e.emittedReadable=!1),e.needReadable=!e.flowing&&!e.ended&&e.length<=e.highWaterMark,N(t)}function B(t,e){e.readingMore||(e.readingMore=!0,r.nextTick(C,t,e))}function C(t,e){for(;!e.reading&&!e.ended&&(e.length0,e.resumeScheduled&&!e.paused?e.flowing=!0:t.listenerCount("data")>0&&t.resume()}function T(t){d("readable nexttick read 0"),t.read(0)}function P(t,e){d("resume",e.reading),e.reading||t.read(0),e.resumeScheduled=!1,t.emit("resume"),N(t),e.flowing&&!e.reading&&t.read(0)}function N(t){var e=t._readableState;for(d("flow",e.flowing);e.flowing&&null!==t.read(););}function L(t,e){return 0===e.length?null:(e.objectMode?i=e.buffer.shift():!t||t>=e.length?(i=e.decoder?e.buffer.join(""):1===e.buffer.length?e.buffer.first():e.buffer.concat(e.length),e.buffer.clear()):i=e.buffer.consume(t,e.decoder),i);var i}function q(t){var e=t._readableState;d("endReadable",e.endEmitted),e.endEmitted||(e.ended=!0,r.nextTick(D,e,t))}function D(t,e){if(d("endReadableNT",t.endEmitted,t.length),!t.endEmitted&&0===t.length&&(t.endEmitted=!0,e.readable=!1,e.emit("end"),t.autoDestroy)){var i=e._writableState;(!i||i.autoDestroy&&i.finished)&&e.destroy()}}function z(t,e){for(var i=0,r=t.length;i=e.highWaterMark:e.length>0)||e.ended))return d("read: emitReadable",e.length,e.ended),0===e.length&&e.ended?q(this):R(this),null;if(0===(t=A(t,e))&&e.ended)return 0===e.length&&q(this),null;var r,n=e.needReadable;return d("need readable",n),(0===e.length||e.length-t0?L(t,e):null)?(e.needReadable=e.length<=e.highWaterMark,t=0):(e.length-=t,e.awaitDrain=0),0===e.length&&(e.ended||(e.needReadable=!0),i!==t&&e.ended&&q(this)),null!==r&&this.emit("data",r),r},E.prototype._read=function(t){M(this,new _("_read()"))},E.prototype.pipe=function(t,e){var i=this,n=this._readableState;switch(n.pipesCount){case 0:n.pipes=t;break;case 1:n.pipes=[n.pipes,t];break;default:n.pipes.push(t)}n.pipesCount+=1,d("pipe count=%d opts=%j",n.pipesCount,e);var o=(!e||!1!==e.end)&&t!==r.stdout&&t!==r.stderr?h:b;function a(e,r){d("onunpipe"),e===i&&r&&!1===r.hasUnpiped&&(r.hasUnpiped=!0,d("cleanup"),t.removeListener("close",p),t.removeListener("finish",m),t.removeListener("drain",u),t.removeListener("error",c),t.removeListener("unpipe",a),i.removeListener("end",h),i.removeListener("end",b),i.removeListener("data",l),f=!0,!n.awaitDrain||t._writableState&&!t._writableState.needDrain||u())}function h(){d("onend"),t.end()}n.endEmitted?r.nextTick(o):i.once("end",o),t.on("unpipe",a);var u=function(t){return function(){var e=t._readableState;d("pipeOnDrain",e.awaitDrain),e.awaitDrain&&e.awaitDrain--,0===e.awaitDrain&&s(t,"data")&&(e.flowing=!0,N(t))}}(i);t.on("drain",u);var f=!1;function l(e){d("ondata");var r=t.write(e);d("dest.write",r),!1===r&&((1===n.pipesCount&&n.pipes===t||n.pipesCount>1&&-1!==z(n.pipes,t))&&!f&&(d("false write response, pause",n.awaitDrain),n.awaitDrain++),i.pause())}function c(e){d("onerror",e),b(),t.removeListener("error",c),0===s(t,"error")&&M(t,e)}function p(){t.removeListener("finish",m),b()}function m(){d("onfinish"),t.removeListener("close",p),b()}function b(){d("unpipe"),i.unpipe(t)}return i.on("data",l),function(t,e,i){if("function"==typeof t.prependListener)return t.prependListener(e,i);t._events&&t._events[e]?Array.isArray(t._events[e])?t._events[e].unshift(i):t._events[e]=[i,t._events[e]]:t.on(e,i)}(t,"error",c),t.once("close",p),t.once("finish",m),t.emit("pipe",i),n.flowing||(d("pipe resume"),i.resume()),t},E.prototype.unpipe=function(t){var e=this._readableState,i={hasUnpiped:!1};if(0===e.pipesCount)return this;if(1===e.pipesCount)return t&&t!==e.pipes||(t||(t=e.pipes),e.pipes=null,e.pipesCount=0,e.flowing=!1,t&&t.emit("unpipe",this,i)),this;if(!t){var r=e.pipes,n=e.pipesCount;e.pipes=null,e.pipesCount=0,e.flowing=!1;for(var s=0;s0,!1!==n.flowing&&this.resume()):"readable"===t&&(n.endEmitted||n.readableListening||(n.readableListening=n.needReadable=!0,n.flowing=!1,n.emittedReadable=!1,d("on readable",n.length,n.reading),n.length?R(this):n.reading||r.nextTick(T,this))),i},E.prototype.addListener=E.prototype.on,E.prototype.removeListener=function(t,e){var i=o.prototype.removeListener.call(this,t,e);return"readable"===t&&r.nextTick(O,this),i},E.prototype.removeAllListeners=function(t){var e=o.prototype.removeAllListeners.apply(this,arguments);return"readable"!==t&&void 0!==t||r.nextTick(O,this),e},E.prototype.resume=function(){var t=this._readableState;return t.flowing||(d("resume"),t.flowing=!t.readableListening,function(t,e){e.resumeScheduled||(e.resumeScheduled=!0,r.nextTick(P,t,e))}(this,t)),t.paused=!1,this},E.prototype.pause=function(){return d("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(d("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},E.prototype.wrap=function(t){var e=this,i=this._readableState,r=!1;for(var n in t.on("end",(function(){if(d("wrapped end"),i.decoder&&!i.ended){var t=i.decoder.end();t&&t.length&&e.push(t)}e.push(null)})),t.on("data",(function(n){(d("wrapped data"),i.decoder&&(n=i.decoder.write(n)),i.objectMode&&null==n)||(i.objectMode||n&&n.length)&&(e.push(n)||(r=!0,t.pause()))})),t)void 0===this[n]&&"function"==typeof t[n]&&(this[n]=function(e){return function(){return t[e].apply(t,arguments)}}(n));for(var s=0;s-1))throw new w(t);return this._writableState.defaultEncoding=t,this},Object.defineProperty(E.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(E.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),E.prototype._write=function(t,e,i){i(new m("_write()"))},E.prototype._writev=null,E.prototype.end=function(t,e,i){var n=this._writableState;return"function"==typeof t?(i=t,t=null,e=null):"function"==typeof e&&(i=e,e=null),null!=t&&this.write(t,e),n.corked&&(n.corked=1,this.uncork()),n.ending||function(t,e,i){e.ending=!0,B(t,e),i&&(e.finished?r.nextTick(i):t.once("finish",i));e.ended=!0,t.writable=!1}(this,n,i),this},Object.defineProperty(E.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(E.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(t){this._writableState&&(this._writableState.destroyed=t)}}),E.prototype.destroy=f.destroy,E.prototype._undestroy=f.undestroy,E.prototype._destroy=function(t,e){e(t)}}).call(this,i("../../node_modules/webpack/buildin/global.js"),i("../../node_modules/process/browser.js"))},"../../node_modules/browserify-sign/node_modules/readable-stream/lib/internal/streams/async_iterator.js":function(t,e,i){"use strict";(function(e){var r;function n(t,e,i){return(e=function(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var i=t[Symbol.toPrimitive];if(void 0!==i){var r=i.call(t,e||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}var s=i("../../node_modules/browserify-sign/node_modules/readable-stream/lib/internal/streams/end-of-stream.js"),o=Symbol("lastResolve"),a=Symbol("lastReject"),h=Symbol("error"),d=Symbol("ended"),u=Symbol("lastPromise"),f=Symbol("handlePromise"),l=Symbol("stream");function c(t,e){return{value:t,done:e}}function p(t){var e=t[o];if(null!==e){var i=t[l].read();null!==i&&(t[u]=null,t[o]=null,t[a]=null,e(c(i,!1)))}}function m(t){e.nextTick(p,t)}var b=Object.getPrototypeOf((function(){})),v=Object.setPrototypeOf((n(r={get stream(){return this[l]},next:function(){var t=this,i=this[h];if(null!==i)return Promise.reject(i);if(this[d])return Promise.resolve(c(void 0,!0));if(this[l].destroyed)return new Promise((function(i,r){e.nextTick((function(){t[h]?r(t[h]):i(c(void 0,!0))}))}));var r,n=this[u];if(n)r=new Promise(function(t,e){return function(i,r){t.then((function(){e[d]?i(c(void 0,!0)):e[f](i,r)}),r)}}(n,this));else{var s=this[l].read();if(null!==s)return Promise.resolve(c(s,!1));r=new Promise(this[f])}return this[u]=r,r}},Symbol.asyncIterator,(function(){return this})),n(r,"return",(function(){var t=this;return new Promise((function(e,i){t[l].destroy(null,(function(t){t?i(t):e(c(void 0,!0))}))}))})),r),b);t.exports=function(t){var e,i=Object.create(v,(n(e={},l,{value:t,writable:!0}),n(e,o,{value:null,writable:!0}),n(e,a,{value:null,writable:!0}),n(e,h,{value:null,writable:!0}),n(e,d,{value:t._readableState.endEmitted,writable:!0}),n(e,f,{value:function(t,e){var r=i[l].read();r?(i[u]=null,i[o]=null,i[a]=null,t(c(r,!1))):(i[o]=t,i[a]=e)},writable:!0}),e));return i[u]=null,s(t,(function(t){if(t&&"ERR_STREAM_PREMATURE_CLOSE"!==t.code){var e=i[a];return null!==e&&(i[u]=null,i[o]=null,i[a]=null,e(t)),void(i[h]=t)}var r=i[o];null!==r&&(i[u]=null,i[o]=null,i[a]=null,r(c(void 0,!0))),i[d]=!0})),t.on("readable",m.bind(null,i)),i}}).call(this,i("../../node_modules/process/browser.js"))},"../../node_modules/browserify-sign/node_modules/readable-stream/lib/internal/streams/buffer_list.js":function(t,e,i){"use strict";function r(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,r)}return i}function n(t){for(var e=1;e0?this.tail.next=e:this.head=e,this.tail=e,++this.length}},{key:"unshift",value:function(t){var e={data:t,next:this.head};0===this.length&&(this.tail=e),this.head=e,++this.length}},{key:"shift",value:function(){if(0!==this.length){var t=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,t}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(t){if(0===this.length)return"";for(var e=this.head,i=""+e.data;e=e.next;)i+=t+e.data;return i}},{key:"concat",value:function(t){if(0===this.length)return h.alloc(0);for(var e,i,r,n=h.allocUnsafe(t>>>0),s=this.head,o=0;s;)e=s.data,i=n,r=o,h.prototype.copy.call(e,i,r),o+=s.data.length,s=s.next;return n}},{key:"consume",value:function(t,e){var i;return tn.length?n.length:t;if(s===n.length?r+=n:r+=n.slice(0,t),0==(t-=s)){s===n.length?(++i,e.next?this.head=e.next:this.head=this.tail=null):(this.head=e,e.data=n.slice(s));break}++i}return this.length-=i,r}},{key:"_getBuffer",value:function(t){var e=h.allocUnsafe(t),i=this.head,r=1;for(i.data.copy(e),t-=i.data.length;i=i.next;){var n=i.data,s=t>n.length?n.length:t;if(n.copy(e,e.length-t,0,s),0==(t-=s)){s===n.length?(++r,i.next?this.head=i.next:this.head=this.tail=null):(this.head=i,i.data=n.slice(s));break}++r}return this.length-=r,e}},{key:u,value:function(t,e){return d(this,n(n({},e),{},{depth:0,customInspect:!1}))}}])&&o(e.prototype,i),r&&o(e,r),Object.defineProperty(e,"prototype",{writable:!1}),t}()},"../../node_modules/browserify-sign/node_modules/readable-stream/lib/internal/streams/destroy.js":function(t,e,i){"use strict";(function(e){function i(t,e){n(t,e),r(t)}function r(t){t._writableState&&!t._writableState.emitClose||t._readableState&&!t._readableState.emitClose||t.emit("close")}function n(t,e){t.emit("error",e)}t.exports={destroy:function(t,s){var o=this,a=this._readableState&&this._readableState.destroyed,h=this._writableState&&this._writableState.destroyed;return a||h?(s?s(t):t&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,e.nextTick(n,this,t)):e.nextTick(n,this,t)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(t||null,(function(t){!s&&t?o._writableState?o._writableState.errorEmitted?e.nextTick(r,o):(o._writableState.errorEmitted=!0,e.nextTick(i,o,t)):e.nextTick(i,o,t):s?(e.nextTick(r,o),s(t)):e.nextTick(r,o)})),this)},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)},errorOrDestroy:function(t,e){var i=t._readableState,r=t._writableState;i&&i.autoDestroy||r&&r.autoDestroy?t.destroy(e):t.emit("error",e)}}}).call(this,i("../../node_modules/process/browser.js"))},"../../node_modules/browserify-sign/node_modules/readable-stream/lib/internal/streams/end-of-stream.js":function(t,e,i){"use strict";var r=i("../../node_modules/browserify-sign/node_modules/readable-stream/errors-browser.js").codes.ERR_STREAM_PREMATURE_CLOSE;function n(){}t.exports=function t(e,i,s){if("function"==typeof i)return t(e,null,i);i||(i={}),s=function(t){var e=!1;return function(){if(!e){e=!0;for(var i=arguments.length,r=new Array(i),n=0;n0,(function(t){r||(r=t),t&&o.forEach(d),s||(o.forEach(d),n(r))}))}));return e.reduce(u)}},"../../node_modules/browserify-sign/node_modules/readable-stream/lib/internal/streams/state.js":function(t,e,i){"use strict";var r=i("../../node_modules/browserify-sign/node_modules/readable-stream/errors-browser.js").codes.ERR_INVALID_OPT_VALUE;t.exports={getHighWaterMark:function(t,e,i,n){var s=function(t,e,i){return null!=t.highWaterMark?t.highWaterMark:e?t[i]:null}(e,n,i);if(null!=s){if(!isFinite(s)||Math.floor(s)!==s||s<0)throw new r(n?i:"highWaterMark",s);return Math.floor(s)}return t.objectMode?16:16384}}},"../../node_modules/browserify-sign/node_modules/readable-stream/lib/internal/streams/stream-browser.js":function(t,e,i){t.exports=i("../../node_modules/node-libs-browser/node_modules/events/events.js").EventEmitter},"../../node_modules/browserify-sign/node_modules/readable-stream/readable-browser.js":function(t,e,i){(e=t.exports=i("../../node_modules/browserify-sign/node_modules/readable-stream/lib/_stream_readable.js")).Stream=e,e.Readable=e,e.Writable=i("../../node_modules/browserify-sign/node_modules/readable-stream/lib/_stream_writable.js"),e.Duplex=i("../../node_modules/browserify-sign/node_modules/readable-stream/lib/_stream_duplex.js"),e.Transform=i("../../node_modules/browserify-sign/node_modules/readable-stream/lib/_stream_transform.js"),e.PassThrough=i("../../node_modules/browserify-sign/node_modules/readable-stream/lib/_stream_passthrough.js"),e.finished=i("../../node_modules/browserify-sign/node_modules/readable-stream/lib/internal/streams/end-of-stream.js"),e.pipeline=i("../../node_modules/browserify-sign/node_modules/readable-stream/lib/internal/streams/pipeline.js")},"../../node_modules/buffer-xor/index.js":function(t,e,i){(function(e){t.exports=function(t,i){for(var r=Math.min(t.length,i.length),n=new e(r),s=0;si)?e=("rmd160"===t?new h:d(t)).update(e).digest():e.length64?e=t(e):e.length<64&&(e=n.concat([e,o],64));for(var i=this._ipad=n.allocUnsafe(64),r=this._opad=n.allocUnsafe(64),a=0;a<64;a++)i[a]=54^e[a],r[a]=92^e[a];this._hash=[i]}r(a,s),a.prototype._update=function(t){this._hash.push(t)},a.prototype._final=function(){var t=this._alg(n.concat(this._hash));return this._alg(n.concat([this._opad,t]))},t.exports=a},"../../node_modules/crypto-browserify/index.js":function(t,e,i){"use strict";e.randomBytes=e.rng=e.pseudoRandomBytes=e.prng=i("../../node_modules/randombytes/browser.js"),e.createHash=e.Hash=i("../../node_modules/create-hash/browser.js"),e.createHmac=e.Hmac=i("../../node_modules/create-hmac/browser.js");var r=i("../../node_modules/browserify-sign/algos.js"),n=Object.keys(r),s=["sha1","sha224","sha256","sha384","sha512","md5","rmd160"].concat(n);e.getHashes=function(){return s};var o=i("../../node_modules/pbkdf2/browser.js");e.pbkdf2=o.pbkdf2,e.pbkdf2Sync=o.pbkdf2Sync;var a=i("../../node_modules/browserify-cipher/browser.js");e.Cipher=a.Cipher,e.createCipher=a.createCipher,e.Cipheriv=a.Cipheriv,e.createCipheriv=a.createCipheriv,e.Decipher=a.Decipher,e.createDecipher=a.createDecipher,e.Decipheriv=a.Decipheriv,e.createDecipheriv=a.createDecipheriv,e.getCiphers=a.getCiphers,e.listCiphers=a.listCiphers;var h=i("../../node_modules/diffie-hellman/browser.js");e.DiffieHellmanGroup=h.DiffieHellmanGroup,e.createDiffieHellmanGroup=h.createDiffieHellmanGroup,e.getDiffieHellman=h.getDiffieHellman,e.createDiffieHellman=h.createDiffieHellman,e.DiffieHellman=h.DiffieHellman;var d=i("../../node_modules/browserify-sign/browser/index.js");e.createSign=d.createSign,e.Sign=d.Sign,e.createVerify=d.createVerify,e.Verify=d.Verify,e.createECDH=i("../../node_modules/create-ecdh/browser.js");var u=i("../../node_modules/public-encrypt/browser.js");e.publicEncrypt=u.publicEncrypt,e.privateEncrypt=u.privateEncrypt,e.publicDecrypt=u.publicDecrypt,e.privateDecrypt=u.privateDecrypt;var f=i("../../node_modules/randomfill/browser.js");e.randomFill=f.randomFill,e.randomFillSync=f.randomFillSync,e.createCredentials=function(){throw new Error(["sorry, createCredentials is not implemented yet","we accept pull requests","https://github.com/crypto-browserify/crypto-browserify"].join("\n"))},e.constants={DH_CHECK_P_NOT_SAFE_PRIME:2,DH_CHECK_P_NOT_PRIME:1,DH_UNABLE_TO_CHECK_GENERATOR:4,DH_NOT_SUITABLE_GENERATOR:8,NPN_ENABLED:1,ALPN_ENABLED:1,RSA_PKCS1_PADDING:1,RSA_SSLV23_PADDING:2,RSA_NO_PADDING:3,RSA_PKCS1_OAEP_PADDING:4,RSA_X931_PADDING:5,RSA_PKCS1_PSS_PADDING:6,POINT_CONVERSION_COMPRESSED:2,POINT_CONVERSION_UNCOMPRESSED:4,POINT_CONVERSION_HYBRID:6}},"../../node_modules/cuint/index.js":function(t,e,i){e.UINT32=i("../../node_modules/cuint/lib/uint32.js"),e.UINT64=i("../../node_modules/cuint/lib/uint64.js")},"../../node_modules/cuint/lib/uint32.js":function(t,e,i){var r;!function(i){n(Math.pow(36,5)),n(Math.pow(16,7)),n(Math.pow(10,9)),n(Math.pow(2,30)),n(36),n(16),n(10),n(2);function n(t,e){return this instanceof n?(this._low=0,this._high=0,this.remainder=null,void 0===e?o.call(this,t):"string"==typeof t?a.call(this,t,e):void s.call(this,t,e)):new n(t,e)}function s(t,e){return this._low=0|t,this._high=0|e,this}function o(t){return this._low=65535&t,this._high=t>>>16,this}function a(t,e){var i=parseInt(t,e||10);return this._low=65535&i,this._high=i>>>16,this}n.prototype.fromBits=s,n.prototype.fromNumber=o,n.prototype.fromString=a,n.prototype.toNumber=function(){return 65536*this._high+this._low},n.prototype.toString=function(t){return this.toNumber().toString(t||10)},n.prototype.add=function(t){var e=this._low+t._low,i=e>>>16;return i+=this._high+t._high,this._low=65535&e,this._high=65535&i,this},n.prototype.subtract=function(t){return this.add(t.clone().negate())},n.prototype.multiply=function(t){var e,i,r=this._high,n=this._low,s=t._high,o=t._low;return e=(i=n*o)>>>16,e+=r*o,e&=65535,e+=n*s,this._low=65535&i,this._high=65535&e,this},n.prototype.div=function(t){if(0==t._low&&0==t._high)throw Error("division by zero");if(0==t._high&&1==t._low)return this.remainder=new n(0),this;if(t.gt(this))return this.remainder=this.clone(),this._low=0,this._high=0,this;if(this.eq(t))return this.remainder=new n(0),this._low=1,this._high=0,this;for(var e=t.clone(),i=-1;!this.lt(e);)e.shiftLeft(1,!0),i++;for(this.remainder=this.clone(),this._low=0,this._high=0;i>=0;i--)e.shiftRight(1),this.remainder.lt(e)||(this.remainder.subtract(e),i>=16?this._high|=1<>>16)&65535,this},n.prototype.equals=n.prototype.eq=function(t){return this._low==t._low&&this._high==t._high},n.prototype.greaterThan=n.prototype.gt=function(t){return this._high>t._high||!(this._hight._low},n.prototype.lessThan=n.prototype.lt=function(t){return this._hight._high)&&this._low16?(this._low=this._high>>t-16,this._high=0):16==t?(this._low=this._high,this._high=0):(this._low=this._low>>t|this._high<<16-t&65535,this._high>>=t),this},n.prototype.shiftLeft=n.prototype.shiftl=function(t,e){return t>16?(this._high=this._low<>16-t,this._low=this._low<>>32-t,this._low=65535&e,this._high=e>>>16,this},n.prototype.rotateRight=n.prototype.rotr=function(t){var e=this._high<<16|this._low;return e=e>>>t|e<<32-t,this._low=65535&e,this._high=e>>>16,this},n.prototype.clone=function(){return new n(this._low,this._high)},void 0===(r=function(){return n}.apply(e,[]))||(t.exports=r)}()},"../../node_modules/cuint/lib/uint64.js":function(t,e,i){var r;!function(i){var n={16:o(Math.pow(16,5)),10:o(Math.pow(10,5)),2:o(Math.pow(2,5))},s={16:o(16),10:o(10),2:o(2)};function o(t,e,i,r){return this instanceof o?(this.remainder=null,"string"==typeof t?d.call(this,t,e):void 0===e?h.call(this,t):void a.apply(this,arguments)):new o(t,e,i,r)}function a(t,e,i,r){return void 0===i?(this._a00=65535&t,this._a16=t>>>16,this._a32=65535&e,this._a48=e>>>16,this):(this._a00=0|t,this._a16=0|e,this._a32=0|i,this._a48=0|r,this)}function h(t){return this._a00=65535&t,this._a16=t>>>16,this._a32=0,this._a48=0,this}function d(t,e){e=e||10,this._a00=0,this._a16=0,this._a32=0,this._a48=0;for(var i=n[e]||new o(Math.pow(e,5)),r=0,s=t.length;r=0&&(i.div(e),r[n]=i.remainder.toNumber().toString(t),i.gt(e));n--);return r[n-1]=i.toNumber().toString(t),r.join("")},o.prototype.add=function(t){var e=this._a00+t._a00,i=e>>>16,r=(i+=this._a16+t._a16)>>>16,n=(r+=this._a32+t._a32)>>>16;return n+=this._a48+t._a48,this._a00=65535&e,this._a16=65535&i,this._a32=65535&r,this._a48=65535&n,this},o.prototype.subtract=function(t){return this.add(t.clone().negate())},o.prototype.multiply=function(t){var e=this._a00,i=this._a16,r=this._a32,n=this._a48,s=t._a00,o=t._a16,a=t._a32,h=e*s,d=h>>>16,u=(d+=e*o)>>>16;d&=65535,u+=(d+=i*s)>>>16;var f=(u+=e*a)>>>16;return u&=65535,f+=(u+=i*o)>>>16,u&=65535,f+=(u+=r*s)>>>16,f+=e*t._a48,f&=65535,f+=i*a,f&=65535,f+=r*o,f&=65535,f+=n*s,this._a00=65535&h,this._a16=65535&d,this._a32=65535&u,this._a48=65535&f,this},o.prototype.div=function(t){if(0==t._a16&&0==t._a32&&0==t._a48){if(0==t._a00)throw Error("division by zero");if(1==t._a00)return this.remainder=new o(0),this}if(t.gt(this))return this.remainder=this.clone(),this._a00=0,this._a16=0,this._a32=0,this._a48=0,this;if(this.eq(t))return this.remainder=new o(0),this._a00=1,this._a16=0,this._a32=0,this._a48=0,this;for(var e=t.clone(),i=-1;!this.lt(e);)e.shiftLeft(1,!0),i++;for(this.remainder=this.clone(),this._a00=0,this._a16=0,this._a32=0,this._a48=0;i>=0;i--)e.shiftRight(1),this.remainder.lt(e)||(this.remainder.subtract(e),i>=48?this._a48|=1<=32?this._a32|=1<=16?this._a16|=1<>>16),this._a16=65535&t,t=(65535&~this._a32)+(t>>>16),this._a32=65535&t,this._a48=~this._a48+(t>>>16)&65535,this},o.prototype.equals=o.prototype.eq=function(t){return this._a48==t._a48&&this._a00==t._a00&&this._a32==t._a32&&this._a16==t._a16},o.prototype.greaterThan=o.prototype.gt=function(t){return this._a48>t._a48||!(this._a48t._a32||!(this._a32t._a16||!(this._a16t._a00))},o.prototype.lessThan=o.prototype.lt=function(t){return this._a48t._a48)&&(this._a32t._a32)&&(this._a16t._a16)&&this._a00=48?(this._a00=this._a48>>t-48,this._a16=0,this._a32=0,this._a48=0):t>=32?(t-=32,this._a00=65535&(this._a32>>t|this._a48<<16-t),this._a16=this._a48>>t&65535,this._a32=0,this._a48=0):t>=16?(t-=16,this._a00=65535&(this._a16>>t|this._a32<<16-t),this._a16=65535&(this._a32>>t|this._a48<<16-t),this._a32=this._a48>>t&65535,this._a48=0):(this._a00=65535&(this._a00>>t|this._a16<<16-t),this._a16=65535&(this._a16>>t|this._a32<<16-t),this._a32=65535&(this._a32>>t|this._a48<<16-t),this._a48=this._a48>>t&65535),this},o.prototype.shiftLeft=o.prototype.shiftl=function(t,e){return(t%=64)>=48?(this._a48=this._a00<=32?(t-=32,this._a48=this._a16<>16-t,this._a32=this._a00<=16?(t-=16,this._a48=this._a32<>16-t,this._a32=65535&(this._a16<>16-t),this._a16=this._a00<>16-t,this._a32=65535&(this._a32<>16-t),this._a16=65535&(this._a16<>16-t),this._a00=this._a00<=32){var e=this._a00;if(this._a00=this._a32,this._a32=e,e=this._a48,this._a48=this._a16,this._a16=e,32==t)return this;t-=32}var i=this._a48<<16|this._a32,r=this._a16<<16|this._a00,n=i<>>32-t,s=r<>>32-t;return this._a00=65535&s,this._a16=s>>>16,this._a32=65535&n,this._a48=n>>>16,this},o.prototype.rotateRight=o.prototype.rotr=function(t){if(0==(t%=64))return this;if(t>=32){var e=this._a00;if(this._a00=this._a32,this._a32=e,e=this._a48,this._a48=this._a16,this._a16=e,32==t)return this;t-=32}var i=this._a48<<16|this._a32,r=this._a16<<16|this._a00,n=i>>>t|r<<32-t,s=r>>>t|i<<32-t;return this._a00=65535&s,this._a16=s>>>16,this._a32=65535&n,this._a48=n>>>16,this},o.prototype.clone=function(){return new o(this._a00,this._a16,this._a32,this._a48)},void 0===(r=function(){return o}.apply(e,[]))||(t.exports=r)}()},"../../node_modules/des.js/lib/des.js":function(t,e,i){"use strict";e.utils=i("../../node_modules/des.js/lib/des/utils.js"),e.Cipher=i("../../node_modules/des.js/lib/des/cipher.js"),e.DES=i("../../node_modules/des.js/lib/des/des.js"),e.CBC=i("../../node_modules/des.js/lib/des/cbc.js"),e.EDE=i("../../node_modules/des.js/lib/des/ede.js")},"../../node_modules/des.js/lib/des/cbc.js":function(t,e,i){"use strict";var r=i("../../node_modules/minimalistic-assert/index.js"),n=i("../../node_modules/inherits/inherits_browser.js"),s={};function o(t){r.equal(t.length,8,"Invalid IV length"),this.iv=new Array(8);for(var e=0;e0;r--)e+=this._buffer(t,e),i+=this._flushBuffer(n,i);return e+=this._buffer(t,e),n},n.prototype.final=function(t){var e,i;return t&&(e=this.update(t)),i="encrypt"===this.type?this._finalEncrypt():this._finalDecrypt(),e?e.concat(i):i},n.prototype._pad=function(t,e){if(0===e)return!1;for(;e>>1];i=o.r28shl(i,a),n=o.r28shl(n,a),o.pc2(i,n,t.keys,s)}},d.prototype._update=function(t,e,i,r){var n=this._desState,s=o.readUInt32BE(t,e),a=o.readUInt32BE(t,e+4);o.ip(s,a,n.tmp,0),s=n.tmp[0],a=n.tmp[1],"encrypt"===this.type?this._encrypt(n,s,a,n.tmp,0):this._decrypt(n,s,a,n.tmp,0),s=n.tmp[0],a=n.tmp[1],o.writeUInt32BE(i,s,r),o.writeUInt32BE(i,a,r+4)},d.prototype._pad=function(t,e){for(var i=t.length-e,r=e;r>>0,s=l}o.rip(a,s,r,n)},d.prototype._decrypt=function(t,e,i,r,n){for(var s=i,a=e,h=t.keys.length-2;h>=0;h-=2){var d=t.keys[h],u=t.keys[h+1];o.expand(s,t.tmp,0),d^=t.tmp[0],u^=t.tmp[1];var f=o.substitute(d,u),l=s;s=(a^o.permute(f))>>>0,a=l}o.rip(s,a,r,n)}},"../../node_modules/des.js/lib/des/ede.js":function(t,e,i){"use strict";var r=i("../../node_modules/minimalistic-assert/index.js"),n=i("../../node_modules/inherits/inherits_browser.js"),s=i("../../node_modules/des.js/lib/des.js"),o=s.Cipher,a=s.DES;function h(t,e){r.equal(e.length,24,"Invalid key length");var i=e.slice(0,8),n=e.slice(8,16),s=e.slice(16,24);this.ciphers="encrypt"===t?[a.create({type:"encrypt",key:i}),a.create({type:"decrypt",key:n}),a.create({type:"encrypt",key:s})]:[a.create({type:"decrypt",key:s}),a.create({type:"encrypt",key:n}),a.create({type:"decrypt",key:i})]}function d(t){o.call(this,t);var e=new h(this.type,this.options.key);this._edeState=e}n(d,o),t.exports=d,d.create=function(t){return new d(t)},d.prototype._update=function(t,e,i,r){var n=this._edeState;n.ciphers[0]._update(t,e,i,r),n.ciphers[1]._update(i,r,i,r),n.ciphers[2]._update(i,r,i,r)},d.prototype._pad=a.prototype._pad,d.prototype._unpad=a.prototype._unpad},"../../node_modules/des.js/lib/des/utils.js":function(t,e,i){"use strict";e.readUInt32BE=function(t,e){return(t[0+e]<<24|t[1+e]<<16|t[2+e]<<8|t[3+e])>>>0},e.writeUInt32BE=function(t,e,i){t[0+i]=e>>>24,t[1+i]=e>>>16&255,t[2+i]=e>>>8&255,t[3+i]=255&e},e.ip=function(t,e,i,r){for(var n=0,s=0,o=6;o>=0;o-=2){for(var a=0;a<=24;a+=8)n<<=1,n|=e>>>a+o&1;for(a=0;a<=24;a+=8)n<<=1,n|=t>>>a+o&1}for(o=6;o>=0;o-=2){for(a=1;a<=25;a+=8)s<<=1,s|=e>>>a+o&1;for(a=1;a<=25;a+=8)s<<=1,s|=t>>>a+o&1}i[r+0]=n>>>0,i[r+1]=s>>>0},e.rip=function(t,e,i,r){for(var n=0,s=0,o=0;o<4;o++)for(var a=24;a>=0;a-=8)n<<=1,n|=e>>>a+o&1,n<<=1,n|=t>>>a+o&1;for(o=4;o<8;o++)for(a=24;a>=0;a-=8)s<<=1,s|=e>>>a+o&1,s<<=1,s|=t>>>a+o&1;i[r+0]=n>>>0,i[r+1]=s>>>0},e.pc1=function(t,e,i,r){for(var n=0,s=0,o=7;o>=5;o--){for(var a=0;a<=24;a+=8)n<<=1,n|=e>>a+o&1;for(a=0;a<=24;a+=8)n<<=1,n|=t>>a+o&1}for(a=0;a<=24;a+=8)n<<=1,n|=e>>a+o&1;for(o=1;o<=3;o++){for(a=0;a<=24;a+=8)s<<=1,s|=e>>a+o&1;for(a=0;a<=24;a+=8)s<<=1,s|=t>>a+o&1}for(a=0;a<=24;a+=8)s<<=1,s|=t>>a+o&1;i[r+0]=n>>>0,i[r+1]=s>>>0},e.r28shl=function(t,e){return t<>>28-e};var r=[14,11,17,4,27,23,25,0,13,22,7,18,5,9,16,24,2,20,12,21,1,8,15,26,15,4,25,19,9,1,26,16,5,11,23,8,12,7,17,0,22,3,10,14,6,20,27,24];e.pc2=function(t,e,i,n){for(var s=0,o=0,a=r.length>>>1,h=0;h>>r[h]&1;for(h=a;h>>r[h]&1;i[n+0]=s>>>0,i[n+1]=o>>>0},e.expand=function(t,e,i){var r=0,n=0;r=(1&t)<<5|t>>>27;for(var s=23;s>=15;s-=4)r<<=6,r|=t>>>s&63;for(s=11;s>=3;s-=4)n|=t>>>s&63,n<<=6;n|=(31&t)<<1|t>>>31,e[i+0]=r>>>0,e[i+1]=n>>>0};var n=[14,0,4,15,13,7,1,4,2,14,15,2,11,13,8,1,3,10,10,6,6,12,12,11,5,9,9,5,0,3,7,8,4,15,1,12,14,8,8,2,13,4,6,9,2,1,11,7,15,5,12,11,9,3,7,14,3,10,10,0,5,6,0,13,15,3,1,13,8,4,14,7,6,15,11,2,3,8,4,14,9,12,7,0,2,1,13,10,12,6,0,9,5,11,10,5,0,13,14,8,7,10,11,1,10,3,4,15,13,4,1,2,5,11,8,6,12,7,6,12,9,0,3,5,2,14,15,9,10,13,0,7,9,0,14,9,6,3,3,4,15,6,5,10,1,2,13,8,12,5,7,14,11,12,4,11,2,15,8,1,13,1,6,10,4,13,9,0,8,6,15,9,3,8,0,7,11,4,1,15,2,14,12,3,5,11,10,5,14,2,7,12,7,13,13,8,14,11,3,5,0,6,6,15,9,0,10,3,1,4,2,7,8,2,5,12,11,1,12,10,4,14,15,9,10,3,6,15,9,0,0,6,12,10,11,1,7,13,13,8,15,9,1,4,3,5,14,11,5,12,2,7,8,2,4,14,2,14,12,11,4,2,1,12,7,4,10,7,11,13,6,1,8,5,5,0,3,15,15,10,13,3,0,9,14,8,9,6,4,11,2,8,1,12,11,7,10,1,13,14,7,2,8,13,15,6,9,15,12,0,5,9,6,10,3,4,0,5,14,3,12,10,1,15,10,4,15,2,9,7,2,12,6,9,8,5,0,6,13,1,3,13,4,14,14,0,7,11,5,3,11,8,9,4,14,3,15,2,5,12,2,9,8,5,12,15,3,10,7,11,0,14,4,1,10,7,1,6,13,0,11,8,6,13,4,13,11,0,2,11,14,7,15,4,0,9,8,1,13,10,3,14,12,3,9,5,7,12,5,2,10,15,6,8,1,6,1,6,4,11,11,13,13,8,12,1,3,4,7,10,14,7,10,9,15,5,6,0,8,15,0,14,5,2,9,3,2,12,13,1,2,15,8,13,4,8,6,10,15,3,11,7,1,4,10,12,9,5,3,6,14,11,5,0,0,14,12,9,7,2,7,2,11,1,4,14,1,7,9,4,12,10,14,8,2,13,0,15,6,12,10,9,13,0,15,3,3,5,5,6,8,11];e.substitute=function(t,e){for(var i=0,r=0;r<4;r++){i<<=4,i|=n[64*r+(t>>>18-6*r&63)]}for(r=0;r<4;r++){i<<=4,i|=n[256+64*r+(e>>>18-6*r&63)]}return i>>>0};var s=[16,25,12,11,3,20,4,15,31,17,9,6,27,14,1,22,30,24,8,18,0,5,29,23,13,19,2,26,10,21,28,7];e.permute=function(t){for(var e=0,i=0;i>>s[i]&1;return e>>>0},e.padSplit=function(t,e,i){for(var r=t.toString(2);r.lengtht;)i.ishrn(1);if(i.isEven()&&i.iadd(a),i.testn(1)||i.iadd(h),e.cmp(h)){if(!e.cmp(d))for(;i.mod(u).cmp(f);)i.iadd(c)}else for(;i.mod(s).cmp(l);)i.iadd(c);if(b(p=i.shrn(1))&&b(i)&&v(p)&&v(i)&&o.test(p)&&o.test(i))return i}}},"../../node_modules/diffie-hellman/lib/primes.json":function(t){t.exports=JSON.parse('{"modp1":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a63a3620ffffffffffffffff"},"modp2":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece65381ffffffffffffffff"},"modp5":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca237327ffffffffffffffff"},"modp14":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aacaa68ffffffffffffffff"},"modp15":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a93ad2caffffffffffffffff"},"modp16":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c934063199ffffffffffffffff"},"modp17":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dcc4024ffffffffffffffff"},"modp18":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dbe115974a3926f12fee5e438777cb6a932df8cd8bec4d073b931ba3bc832b68d9dd300741fa7bf8afc47ed2576f6936ba424663aab639c5ae4f5683423b4742bf1c978238f16cbe39d652de3fdb8befc848ad922222e04a4037c0713eb57a81a23f0c73473fc646cea306b4bcbc8862f8385ddfa9d4b7fa2c087e879683303ed5bdd3a062b3cf5b3a278a66d2a13f83f44f82ddf310ee074ab6a364597e899a0255dc164f31cc50846851df9ab48195ded7ea1b1d510bd7ee74d73faf36bc31ecfa268359046f4eb879f924009438b481c6cd7889a002ed5ee382bc9190da6fc026e479558e4475677e9aa9e3050e2765694dfc81f56e880b96e7160c980dd98edd3dfffffffffffffffff"}}')},"../../node_modules/elliptic/lib/elliptic.js":function(t,e,i){"use strict";var r=e;r.version=i("../../node_modules/elliptic/package.json").version,r.utils=i("../../node_modules/elliptic/lib/elliptic/utils.js"),r.rand=i("../../node_modules/brorand/index.js"),r.curve=i("../../node_modules/elliptic/lib/elliptic/curve/index.js"),r.curves=i("../../node_modules/elliptic/lib/elliptic/curves.js"),r.ec=i("../../node_modules/elliptic/lib/elliptic/ec/index.js"),r.eddsa=i("../../node_modules/elliptic/lib/elliptic/eddsa/index.js")},"../../node_modules/elliptic/lib/elliptic/curve/base.js":function(t,e,i){"use strict";var r=i("../../node_modules/elliptic/node_modules/bn.js/lib/bn.js"),n=i("../../node_modules/elliptic/lib/elliptic/utils.js"),s=n.getNAF,o=n.getJSF,a=n.assert;function h(t,e){this.type=t,this.p=new r(e.p,16),this.red=e.prime?r.red(e.prime):r.mont(this.p),this.zero=new r(0).toRed(this.red),this.one=new r(1).toRed(this.red),this.two=new r(2).toRed(this.red),this.n=e.n&&new r(e.n,16),this.g=e.g&&this.pointFromJSON(e.g,e.gRed),this._wnafT1=new Array(4),this._wnafT2=new Array(4),this._wnafT3=new Array(4),this._wnafT4=new Array(4),this._bitLength=this.n?this.n.bitLength():0;var i=this.n&&this.p.div(this.n);!i||i.cmpn(100)>0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}function d(t,e){this.curve=t,this.type=e,this.precomputed=null}t.exports=h,h.prototype.point=function(){throw new Error("Not implemented")},h.prototype.validate=function(){throw new Error("Not implemented")},h.prototype._fixedNafMul=function(t,e){a(t.precomputed);var i=t._getDoubles(),r=s(e,1,this._bitLength),n=(1<=o;u--)h=(h<<1)+r[u];d.push(h)}for(var f=this.jpoint(null,null,null),l=this.jpoint(null,null,null),c=n;c>0;c--){for(o=0;o=0;d--){for(var u=0;d>=0&&0===o[d];d--)u++;if(d>=0&&u++,h=h.dblp(u),d<0)break;var f=o[d];a(0!==f),h="affine"===t.type?f>0?h.mixedAdd(n[f-1>>1]):h.mixedAdd(n[-f-1>>1].neg()):f>0?h.add(n[f-1>>1]):h.add(n[-f-1>>1].neg())}return"affine"===t.type?h.toP():h},h.prototype._wnafMulAdd=function(t,e,i,r,n){var a,h,d,u=this._wnafT1,f=this._wnafT2,l=this._wnafT3,c=0;for(a=0;a=1;a-=2){var m=a-1,b=a;if(1===u[m]&&1===u[b]){var v=[e[m],null,null,e[b]];0===e[m].y.cmp(e[b].y)?(v[1]=e[m].add(e[b]),v[2]=e[m].toJ().mixedAdd(e[b].neg())):0===e[m].y.cmp(e[b].y.redNeg())?(v[1]=e[m].toJ().mixedAdd(e[b]),v[2]=e[m].add(e[b].neg())):(v[1]=e[m].toJ().mixedAdd(e[b]),v[2]=e[m].toJ().mixedAdd(e[b].neg()));var g=[-3,-1,-5,-7,0,7,5,1,3],y=o(i[m],i[b]);for(c=Math.max(y[0].length,c),l[m]=new Array(c),l[b]=new Array(c),h=0;h=0;a--){for(var j=0;a>=0;){var E=!0;for(h=0;h=0&&j++,M=M.dblp(j),a<0)break;for(h=0;h0?d=f[h][S-1>>1]:S<0&&(d=f[h][-S-1>>1].neg()),M="affine"===d.type?M.mixedAdd(d):M.add(d))}}for(a=0;a=Math.ceil((t.bitLength()+1)/e.step)},d.prototype._getDoubles=function(t,e){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var i=[this],r=this,n=0;n":""},d.prototype.isInfinity=function(){return 0===this.x.cmpn(0)&&(0===this.y.cmp(this.z)||this.zOne&&0===this.y.cmp(this.curve.c))},d.prototype._extDbl=function(){var t=this.x.redSqr(),e=this.y.redSqr(),i=this.z.redSqr();i=i.redIAdd(i);var r=this.curve._mulA(t),n=this.x.redAdd(this.y).redSqr().redISub(t).redISub(e),s=r.redAdd(e),o=s.redSub(i),a=r.redSub(e),h=n.redMul(o),d=s.redMul(a),u=n.redMul(a),f=o.redMul(s);return this.curve.point(h,d,f,u)},d.prototype._projDbl=function(){var t,e,i,r,n,s,o=this.x.redAdd(this.y).redSqr(),a=this.x.redSqr(),h=this.y.redSqr();if(this.curve.twisted){var d=(r=this.curve._mulA(a)).redAdd(h);this.zOne?(t=o.redSub(a).redSub(h).redMul(d.redSub(this.curve.two)),e=d.redMul(r.redSub(h)),i=d.redSqr().redSub(d).redSub(d)):(n=this.z.redSqr(),s=d.redSub(n).redISub(n),t=o.redSub(a).redISub(h).redMul(s),e=d.redMul(r.redSub(h)),i=d.redMul(s))}else r=a.redAdd(h),n=this.curve._mulC(this.z).redSqr(),s=r.redSub(n).redSub(n),t=this.curve._mulC(o.redISub(r)).redMul(s),e=this.curve._mulC(r).redMul(a.redISub(h)),i=r.redMul(s);return this.curve.point(t,e,i)},d.prototype.dbl=function(){return this.isInfinity()?this:this.curve.extended?this._extDbl():this._projDbl()},d.prototype._extAdd=function(t){var e=this.y.redSub(this.x).redMul(t.y.redSub(t.x)),i=this.y.redAdd(this.x).redMul(t.y.redAdd(t.x)),r=this.t.redMul(this.curve.dd).redMul(t.t),n=this.z.redMul(t.z.redAdd(t.z)),s=i.redSub(e),o=n.redSub(r),a=n.redAdd(r),h=i.redAdd(e),d=s.redMul(o),u=a.redMul(h),f=s.redMul(h),l=o.redMul(a);return this.curve.point(d,u,l,f)},d.prototype._projAdd=function(t){var e,i,r=this.z.redMul(t.z),n=r.redSqr(),s=this.x.redMul(t.x),o=this.y.redMul(t.y),a=this.curve.d.redMul(s).redMul(o),h=n.redSub(a),d=n.redAdd(a),u=this.x.redAdd(this.y).redMul(t.x.redAdd(t.y)).redISub(s).redISub(o),f=r.redMul(h).redMul(u);return this.curve.twisted?(e=r.redMul(d).redMul(o.redSub(this.curve._mulA(s))),i=h.redMul(d)):(e=r.redMul(d).redMul(o.redSub(s)),i=this.curve._mulC(h).redMul(d)),this.curve.point(f,e,i)},d.prototype.add=function(t){return this.isInfinity()?t:t.isInfinity()?this:this.curve.extended?this._extAdd(t):this._projAdd(t)},d.prototype.mul=function(t){return this._hasDoubles(t)?this.curve._fixedNafMul(this,t):this.curve._wnafMul(this,t)},d.prototype.mulAdd=function(t,e,i){return this.curve._wnafMulAdd(1,[this,e],[t,i],2,!1)},d.prototype.jmulAdd=function(t,e,i){return this.curve._wnafMulAdd(1,[this,e],[t,i],2,!0)},d.prototype.normalize=function(){if(this.zOne)return this;var t=this.z.redInvm();return this.x=this.x.redMul(t),this.y=this.y.redMul(t),this.t&&(this.t=this.t.redMul(t)),this.z=this.curve.one,this.zOne=!0,this},d.prototype.neg=function(){return this.curve.point(this.x.redNeg(),this.y,this.z,this.t&&this.t.redNeg())},d.prototype.getX=function(){return this.normalize(),this.x.fromRed()},d.prototype.getY=function(){return this.normalize(),this.y.fromRed()},d.prototype.eq=function(t){return this===t||0===this.getX().cmp(t.getX())&&0===this.getY().cmp(t.getY())},d.prototype.eqXToP=function(t){var e=t.toRed(this.curve.red).redMul(this.z);if(0===this.x.cmp(e))return!0;for(var i=t.clone(),r=this.curve.redN.redMul(this.z);;){if(i.iadd(this.curve.n),i.cmp(this.curve.p)>=0)return!1;if(e.redIAdd(r),0===this.x.cmp(e))return!0}},d.prototype.toP=d.prototype.normalize,d.prototype.mixedAdd=d.prototype.add},"../../node_modules/elliptic/lib/elliptic/curve/index.js":function(t,e,i){"use strict";var r=e;r.base=i("../../node_modules/elliptic/lib/elliptic/curve/base.js"),r.short=i("../../node_modules/elliptic/lib/elliptic/curve/short.js"),r.mont=i("../../node_modules/elliptic/lib/elliptic/curve/mont.js"),r.edwards=i("../../node_modules/elliptic/lib/elliptic/curve/edwards.js")},"../../node_modules/elliptic/lib/elliptic/curve/mont.js":function(t,e,i){"use strict";var r=i("../../node_modules/elliptic/node_modules/bn.js/lib/bn.js"),n=i("../../node_modules/inherits/inherits_browser.js"),s=i("../../node_modules/elliptic/lib/elliptic/curve/base.js"),o=i("../../node_modules/elliptic/lib/elliptic/utils.js");function a(t){s.call(this,"mont",t),this.a=new r(t.a,16).toRed(this.red),this.b=new r(t.b,16).toRed(this.red),this.i4=new r(4).toRed(this.red).redInvm(),this.two=new r(2).toRed(this.red),this.a24=this.i4.redMul(this.a.redAdd(this.two))}function h(t,e,i){s.BasePoint.call(this,t,"projective"),null===e&&null===i?(this.x=this.curve.one,this.z=this.curve.zero):(this.x=new r(e,16),this.z=new r(i,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)))}n(a,s),t.exports=a,a.prototype.validate=function(t){var e=t.normalize().x,i=e.redSqr(),r=i.redMul(e).redAdd(i.redMul(this.a)).redAdd(e);return 0===r.redSqrt().redSqr().cmp(r)},n(h,s.BasePoint),a.prototype.decodePoint=function(t,e){return this.point(o.toArray(t,e),1)},a.prototype.point=function(t,e){return new h(this,t,e)},a.prototype.pointFromJSON=function(t){return h.fromJSON(this,t)},h.prototype.precompute=function(){},h.prototype._encode=function(){return this.getX().toArray("be",this.curve.p.byteLength())},h.fromJSON=function(t,e){return new h(t,e[0],e[1]||t.one)},h.prototype.inspect=function(){return this.isInfinity()?"":""},h.prototype.isInfinity=function(){return 0===this.z.cmpn(0)},h.prototype.dbl=function(){var t=this.x.redAdd(this.z).redSqr(),e=this.x.redSub(this.z).redSqr(),i=t.redSub(e),r=t.redMul(e),n=i.redMul(e.redAdd(this.curve.a24.redMul(i)));return this.curve.point(r,n)},h.prototype.add=function(){throw new Error("Not supported on Montgomery curve")},h.prototype.diffAdd=function(t,e){var i=this.x.redAdd(this.z),r=this.x.redSub(this.z),n=t.x.redAdd(t.z),s=t.x.redSub(t.z).redMul(i),o=n.redMul(r),a=e.z.redMul(s.redAdd(o).redSqr()),h=e.x.redMul(s.redISub(o).redSqr());return this.curve.point(a,h)},h.prototype.mul=function(t){for(var e=t.clone(),i=this,r=this.curve.point(null,null),n=[];0!==e.cmpn(0);e.iushrn(1))n.push(e.andln(1));for(var s=n.length-1;s>=0;s--)0===n[s]?(i=i.diffAdd(r,this),r=r.dbl()):(r=i.diffAdd(r,this),i=i.dbl());return r},h.prototype.mulAdd=function(){throw new Error("Not supported on Montgomery curve")},h.prototype.jumlAdd=function(){throw new Error("Not supported on Montgomery curve")},h.prototype.eq=function(t){return 0===this.getX().cmp(t.getX())},h.prototype.normalize=function(){return this.x=this.x.redMul(this.z.redInvm()),this.z=this.curve.one,this},h.prototype.getX=function(){return this.normalize(),this.x.fromRed()}},"../../node_modules/elliptic/lib/elliptic/curve/short.js":function(t,e,i){"use strict";var r=i("../../node_modules/elliptic/lib/elliptic/utils.js"),n=i("../../node_modules/elliptic/node_modules/bn.js/lib/bn.js"),s=i("../../node_modules/inherits/inherits_browser.js"),o=i("../../node_modules/elliptic/lib/elliptic/curve/base.js"),a=r.assert;function h(t){o.call(this,"short",t),this.a=new n(t.a,16).toRed(this.red),this.b=new n(t.b,16).toRed(this.red),this.tinv=this.two.redInvm(),this.zeroA=0===this.a.fromRed().cmpn(0),this.threeA=0===this.a.fromRed().sub(this.p).cmpn(-3),this.endo=this._getEndomorphism(t),this._endoWnafT1=new Array(4),this._endoWnafT2=new Array(4)}function d(t,e,i,r){o.BasePoint.call(this,t,"affine"),null===e&&null===i?(this.x=null,this.y=null,this.inf=!0):(this.x=new n(e,16),this.y=new n(i,16),r&&(this.x.forceRed(this.curve.red),this.y.forceRed(this.curve.red)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.inf=!1)}function u(t,e,i,r){o.BasePoint.call(this,t,"jacobian"),null===e&&null===i&&null===r?(this.x=this.curve.one,this.y=this.curve.one,this.z=new n(0)):(this.x=new n(e,16),this.y=new n(i,16),this.z=new n(r,16)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.zOne=this.z===this.curve.one}s(h,o),t.exports=h,h.prototype._getEndomorphism=function(t){if(this.zeroA&&this.g&&this.n&&1===this.p.modn(3)){var e,i;if(t.beta)e=new n(t.beta,16).toRed(this.red);else{var r=this._getEndoRoots(this.p);e=(e=r[0].cmp(r[1])<0?r[0]:r[1]).toRed(this.red)}if(t.lambda)i=new n(t.lambda,16);else{var s=this._getEndoRoots(this.n);0===this.g.mul(s[0]).x.cmp(this.g.x.redMul(e))?i=s[0]:(i=s[1],a(0===this.g.mul(i).x.cmp(this.g.x.redMul(e))))}return{beta:e,lambda:i,basis:t.basis?t.basis.map((function(t){return{a:new n(t.a,16),b:new n(t.b,16)}})):this._getEndoBasis(i)}}},h.prototype._getEndoRoots=function(t){var e=t===this.p?this.red:n.mont(t),i=new n(2).toRed(e).redInvm(),r=i.redNeg(),s=new n(3).toRed(e).redNeg().redSqrt().redMul(i);return[r.redAdd(s).fromRed(),r.redSub(s).fromRed()]},h.prototype._getEndoBasis=function(t){for(var e,i,r,s,o,a,h,d,u,f=this.n.ushrn(Math.floor(this.n.bitLength()/2)),l=t,c=this.n.clone(),p=new n(1),m=new n(0),b=new n(0),v=new n(1),g=0;0!==l.cmpn(0);){var y=c.div(l);d=c.sub(y.mul(l)),u=b.sub(y.mul(p));var _=v.sub(y.mul(m));if(!r&&d.cmp(f)<0)e=h.neg(),i=p,r=d.neg(),s=u;else if(r&&2==++g)break;h=d,c=l,l=d,b=p,p=u,v=m,m=_}o=d.neg(),a=u;var w=r.sqr().add(s.sqr());return o.sqr().add(a.sqr()).cmp(w)>=0&&(o=e,a=i),r.negative&&(r=r.neg(),s=s.neg()),o.negative&&(o=o.neg(),a=a.neg()),[{a:r,b:s},{a:o,b:a}]},h.prototype._endoSplit=function(t){var e=this.endo.basis,i=e[0],r=e[1],n=r.b.mul(t).divRound(this.n),s=i.b.neg().mul(t).divRound(this.n),o=n.mul(i.a),a=s.mul(r.a),h=n.mul(i.b),d=s.mul(r.b);return{k1:t.sub(o).sub(a),k2:h.add(d).neg()}},h.prototype.pointFromX=function(t,e){(t=new n(t,16)).red||(t=t.toRed(this.red));var i=t.redSqr().redMul(t).redIAdd(t.redMul(this.a)).redIAdd(this.b),r=i.redSqrt();if(0!==r.redSqr().redSub(i).cmp(this.zero))throw new Error("invalid point");var s=r.fromRed().isOdd();return(e&&!s||!e&&s)&&(r=r.redNeg()),this.point(t,r)},h.prototype.validate=function(t){if(t.inf)return!0;var e=t.x,i=t.y,r=this.a.redMul(e),n=e.redSqr().redMul(e).redIAdd(r).redIAdd(this.b);return 0===i.redSqr().redISub(n).cmpn(0)},h.prototype._endoWnafMulAdd=function(t,e,i){for(var r=this._endoWnafT1,n=this._endoWnafT2,s=0;s":""},d.prototype.isInfinity=function(){return this.inf},d.prototype.add=function(t){if(this.inf)return t;if(t.inf)return this;if(this.eq(t))return this.dbl();if(this.neg().eq(t))return this.curve.point(null,null);if(0===this.x.cmp(t.x))return this.curve.point(null,null);var e=this.y.redSub(t.y);0!==e.cmpn(0)&&(e=e.redMul(this.x.redSub(t.x).redInvm()));var i=e.redSqr().redISub(this.x).redISub(t.x),r=e.redMul(this.x.redSub(i)).redISub(this.y);return this.curve.point(i,r)},d.prototype.dbl=function(){if(this.inf)return this;var t=this.y.redAdd(this.y);if(0===t.cmpn(0))return this.curve.point(null,null);var e=this.curve.a,i=this.x.redSqr(),r=t.redInvm(),n=i.redAdd(i).redIAdd(i).redIAdd(e).redMul(r),s=n.redSqr().redISub(this.x.redAdd(this.x)),o=n.redMul(this.x.redSub(s)).redISub(this.y);return this.curve.point(s,o)},d.prototype.getX=function(){return this.x.fromRed()},d.prototype.getY=function(){return this.y.fromRed()},d.prototype.mul=function(t){return t=new n(t,16),this.isInfinity()?this:this._hasDoubles(t)?this.curve._fixedNafMul(this,t):this.curve.endo?this.curve._endoWnafMulAdd([this],[t]):this.curve._wnafMul(this,t)},d.prototype.mulAdd=function(t,e,i){var r=[this,e],n=[t,i];return this.curve.endo?this.curve._endoWnafMulAdd(r,n):this.curve._wnafMulAdd(1,r,n,2)},d.prototype.jmulAdd=function(t,e,i){var r=[this,e],n=[t,i];return this.curve.endo?this.curve._endoWnafMulAdd(r,n,!0):this.curve._wnafMulAdd(1,r,n,2,!0)},d.prototype.eq=function(t){return this===t||this.inf===t.inf&&(this.inf||0===this.x.cmp(t.x)&&0===this.y.cmp(t.y))},d.prototype.neg=function(t){if(this.inf)return this;var e=this.curve.point(this.x,this.y.redNeg());if(t&&this.precomputed){var i=this.precomputed,r=function(t){return t.neg()};e.precomputed={naf:i.naf&&{wnd:i.naf.wnd,points:i.naf.points.map(r)},doubles:i.doubles&&{step:i.doubles.step,points:i.doubles.points.map(r)}}}return e},d.prototype.toJ=function(){return this.inf?this.curve.jpoint(null,null,null):this.curve.jpoint(this.x,this.y,this.curve.one)},s(u,o.BasePoint),h.prototype.jpoint=function(t,e,i){return new u(this,t,e,i)},u.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var t=this.z.redInvm(),e=t.redSqr(),i=this.x.redMul(e),r=this.y.redMul(e).redMul(t);return this.curve.point(i,r)},u.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)},u.prototype.add=function(t){if(this.isInfinity())return t;if(t.isInfinity())return this;var e=t.z.redSqr(),i=this.z.redSqr(),r=this.x.redMul(e),n=t.x.redMul(i),s=this.y.redMul(e.redMul(t.z)),o=t.y.redMul(i.redMul(this.z)),a=r.redSub(n),h=s.redSub(o);if(0===a.cmpn(0))return 0!==h.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var d=a.redSqr(),u=d.redMul(a),f=r.redMul(d),l=h.redSqr().redIAdd(u).redISub(f).redISub(f),c=h.redMul(f.redISub(l)).redISub(s.redMul(u)),p=this.z.redMul(t.z).redMul(a);return this.curve.jpoint(l,c,p)},u.prototype.mixedAdd=function(t){if(this.isInfinity())return t.toJ();if(t.isInfinity())return this;var e=this.z.redSqr(),i=this.x,r=t.x.redMul(e),n=this.y,s=t.y.redMul(e).redMul(this.z),o=i.redSub(r),a=n.redSub(s);if(0===o.cmpn(0))return 0!==a.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var h=o.redSqr(),d=h.redMul(o),u=i.redMul(h),f=a.redSqr().redIAdd(d).redISub(u).redISub(u),l=a.redMul(u.redISub(f)).redISub(n.redMul(d)),c=this.z.redMul(o);return this.curve.jpoint(f,l,c)},u.prototype.dblp=function(t){if(0===t)return this;if(this.isInfinity())return this;if(!t)return this.dbl();var e;if(this.curve.zeroA||this.curve.threeA){var i=this;for(e=0;e=0)return!1;if(i.redIAdd(n),0===this.x.cmp(i))return!0}},u.prototype.inspect=function(){return this.isInfinity()?"":""},u.prototype.isInfinity=function(){return 0===this.z.cmpn(0)}},"../../node_modules/elliptic/lib/elliptic/curves.js":function(t,e,i){"use strict";var r,n=e,s=i("../../node_modules/hash.js/lib/hash.js"),o=i("../../node_modules/elliptic/lib/elliptic/curve/index.js"),a=i("../../node_modules/elliptic/lib/elliptic/utils.js").assert;function h(t){"short"===t.type?this.curve=new o.short(t):"edwards"===t.type?this.curve=new o.edwards(t):this.curve=new o.mont(t),this.g=this.curve.g,this.n=this.curve.n,this.hash=t.hash,a(this.g.validate(),"Invalid curve"),a(this.g.mul(this.n).isInfinity(),"Invalid curve, G*N != O")}function d(t,e){Object.defineProperty(n,t,{configurable:!0,enumerable:!0,get:function(){var i=new h(e);return Object.defineProperty(n,t,{configurable:!0,enumerable:!0,value:i}),i}})}n.PresetCurve=h,d("p192",{type:"short",prime:"p192",p:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff",a:"ffffffff ffffffff ffffffff fffffffe ffffffff fffffffc",b:"64210519 e59c80e7 0fa7e9ab 72243049 feb8deec c146b9b1",n:"ffffffff ffffffff ffffffff 99def836 146bc9b1 b4d22831",hash:s.sha256,gRed:!1,g:["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012","07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]}),d("p224",{type:"short",prime:"p224",p:"ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001",a:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff fffffffe",b:"b4050a85 0c04b3ab f5413256 5044b0b7 d7bfd8ba 270b3943 2355ffb4",n:"ffffffff ffffffff ffffffff ffff16a2 e0b8f03e 13dd2945 5c5c2a3d",hash:s.sha256,gRed:!1,g:["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21","bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"]}),d("p256",{type:"short",prime:null,p:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff ffffffff",a:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff fffffffc",b:"5ac635d8 aa3a93e7 b3ebbd55 769886bc 651d06b0 cc53b0f6 3bce3c3e 27d2604b",n:"ffffffff 00000000 ffffffff ffffffff bce6faad a7179e84 f3b9cac2 fc632551",hash:s.sha256,gRed:!1,g:["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296","4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]}),d("p384",{type:"short",prime:null,p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 ffffffff",a:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 fffffffc",b:"b3312fa7 e23ee7e4 988e056b e3f82d19 181d9c6e fe814112 0314088f 5013875a c656398d 8a2ed19d 2a85c8ed d3ec2aef",n:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff c7634d81 f4372ddf 581a0db2 48b0a77a ecec196a ccc52973",hash:s.sha384,gRed:!1,g:["aa87ca22 be8b0537 8eb1c71e f320ad74 6e1d3b62 8ba79b98 59f741e0 82542a38 5502f25d bf55296c 3a545e38 72760ab7","3617de4a 96262c6f 5d9e98bf 9292dc29 f8f41dbd 289a147c e9da3113 b5f0b8c0 0a60b1ce 1d7e819d 7a431d7c 90ea0e5f"]}),d("p521",{type:"short",prime:null,p:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff",a:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffc",b:"00000051 953eb961 8e1c9a1f 929a21a0 b68540ee a2da725b 99b315f3 b8b48991 8ef109e1 56193951 ec7e937b 1652c0bd 3bb1bf07 3573df88 3d2c34f1 ef451fd4 6b503f00",n:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffa 51868783 bf2f966b 7fcc0148 f709a5d0 3bb5c9b8 899c47ae bb6fb71e 91386409",hash:s.sha512,gRed:!1,g:["000000c6 858e06b7 0404e9cd 9e3ecb66 2395b442 9c648139 053fb521 f828af60 6b4d3dba a14b5e77 efe75928 fe1dc127 a2ffa8de 3348b3c1 856a429b f97e7e31 c2e5bd66","00000118 39296a78 9a3bc004 5c8a5fb4 2c7d1bd9 98f54449 579b4468 17afbd17 273e662c 97ee7299 5ef42640 c550b901 3fad0761 353c7086 a272c240 88be9476 9fd16650"]}),d("curve25519",{type:"mont",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"76d06",b:"1",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:s.sha256,gRed:!1,g:["9"]}),d("ed25519",{type:"edwards",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"-1",c:"1",d:"52036cee2b6ffe73 8cc740797779e898 00700a4d4141d8ab 75eb4dca135978a3",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:s.sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});try{r=i("../../node_modules/elliptic/lib/elliptic/precomputed/secp256k1.js")}catch(t){r=void 0}d("secp256k1",{type:"short",prime:"k256",p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f",a:"0",b:"7",n:"ffffffff ffffffff ffffffff fffffffe baaedce6 af48a03b bfd25e8c d0364141",h:"1",hash:s.sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"},{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",r]})},"../../node_modules/elliptic/lib/elliptic/ec/index.js":function(t,e,i){"use strict";var r=i("../../node_modules/elliptic/node_modules/bn.js/lib/bn.js"),n=i("../../node_modules/hmac-drbg/lib/hmac-drbg.js"),s=i("../../node_modules/elliptic/lib/elliptic/utils.js"),o=i("../../node_modules/elliptic/lib/elliptic/curves.js"),a=i("../../node_modules/brorand/index.js"),h=s.assert,d=i("../../node_modules/elliptic/lib/elliptic/ec/key.js"),u=i("../../node_modules/elliptic/lib/elliptic/ec/signature.js");function f(t){if(!(this instanceof f))return new f(t);"string"==typeof t&&(h(Object.prototype.hasOwnProperty.call(o,t),"Unknown curve "+t),t=o[t]),t instanceof o.PresetCurve&&(t={curve:t}),this.curve=t.curve.curve,this.n=this.curve.n,this.nh=this.n.ushrn(1),this.g=this.curve.g,this.g=t.curve.g,this.g.precompute(t.curve.n.bitLength()+1),this.hash=t.hash||t.curve.hash}t.exports=f,f.prototype.keyPair=function(t){return new d(this,t)},f.prototype.keyFromPrivate=function(t,e){return d.fromPrivate(this,t,e)},f.prototype.keyFromPublic=function(t,e){return d.fromPublic(this,t,e)},f.prototype.genKeyPair=function(t){t||(t={});for(var e=new n({hash:this.hash,pers:t.pers,persEnc:t.persEnc||"utf8",entropy:t.entropy||a(this.hash.hmacStrength),entropyEnc:t.entropy&&t.entropyEnc||"utf8",nonce:this.n.toArray()}),i=this.n.byteLength(),s=this.n.sub(new r(2));;){var o=new r(e.generate(i));if(!(o.cmp(s)>0))return o.iaddn(1),this.keyFromPrivate(o)}},f.prototype._truncateToN=function(t,e,i){var n;if(r.isBN(t)||"number"==typeof t)n=(t=new r(t,16)).byteLength();else if("object"==typeof t)n=t.length,t=new r(t,16);else{var s=t.toString();n=s.length+1>>>1,t=new r(s,16)}"number"!=typeof i&&(i=8*n);var o=i-this.n.bitLength();return o>0&&(t=t.ushrn(o)),!e&&t.cmp(this.n)>=0?t.sub(this.n):t},f.prototype.sign=function(t,e,i,s){if("object"==typeof i&&(s=i,i=null),s||(s={}),"string"!=typeof t&&"number"!=typeof t&&!r.isBN(t)){h("object"==typeof t&&t&&"number"==typeof t.length,"Expected message to be an array-like, a hex string, or a BN instance"),h(t.length>>>0===t.length);for(var o=0;o=0)){var b=this.g.mul(m);if(!b.isInfinity()){var v=b.getX(),g=v.umod(this.n);if(0!==g.cmpn(0)){var y=m.invm(this.n).mul(g.mul(e.getPrivate()).iadd(t));if(0!==(y=y.umod(this.n)).cmpn(0)){var _=(b.getY().isOdd()?1:0)|(0!==v.cmp(g)?2:0);return s.canonical&&y.cmp(this.nh)>0&&(y=this.n.sub(y),_^=1),new u({r:g,s:y,recoveryParam:_})}}}}}},f.prototype.verify=function(t,e,i,r,n){n||(n={}),t=this._truncateToN(t,!1,n.msgBitLength),i=this.keyFromPublic(i,r);var s=(e=new u(e,"hex")).r,o=e.s;if(s.cmpn(1)<0||s.cmp(this.n)>=0)return!1;if(o.cmpn(1)<0||o.cmp(this.n)>=0)return!1;var a,h=o.invm(this.n),d=h.mul(t).umod(this.n),f=h.mul(s).umod(this.n);return this.curve._maxwellTrick?!(a=this.g.jmulAdd(d,i.getPublic(),f)).isInfinity()&&a.eqXToP(s):!(a=this.g.mulAdd(d,i.getPublic(),f)).isInfinity()&&0===a.getX().umod(this.n).cmp(s)},f.prototype.recoverPubKey=function(t,e,i,n){h((3&i)===i,"The recovery param is more than two bits"),e=new u(e,n);var s=this.n,o=new r(t),a=e.r,d=e.s,f=1&i,l=i>>1;if(a.cmp(this.curve.p.umod(this.curve.n))>=0&&l)throw new Error("Unable to find sencond key candinate");a=l?this.curve.pointFromX(a.add(this.curve.n),f):this.curve.pointFromX(a,f);var c=e.r.invm(s),p=s.sub(o).mul(c).umod(s),m=d.mul(c).umod(s);return this.g.mulAdd(p,a,m)},f.prototype.getKeyRecoveryParam=function(t,e,i,r){if(null!==(e=new u(e,r)).recoveryParam)return e.recoveryParam;for(var n=0;n<4;n++){var s;try{s=this.recoverPubKey(t,e,n)}catch(t){continue}if(s.eq(i))return n}throw new Error("Unable to find valid recovery factor")}},"../../node_modules/elliptic/lib/elliptic/ec/key.js":function(t,e,i){"use strict";var r=i("../../node_modules/elliptic/node_modules/bn.js/lib/bn.js"),n=i("../../node_modules/elliptic/lib/elliptic/utils.js").assert;function s(t,e){this.ec=t,this.priv=null,this.pub=null,e.priv&&this._importPrivate(e.priv,e.privEnc),e.pub&&this._importPublic(e.pub,e.pubEnc)}t.exports=s,s.fromPublic=function(t,e,i){return e instanceof s?e:new s(t,{pub:e,pubEnc:i})},s.fromPrivate=function(t,e,i){return e instanceof s?e:new s(t,{priv:e,privEnc:i})},s.prototype.validate=function(){var t=this.getPublic();return t.isInfinity()?{result:!1,reason:"Invalid public key"}:t.validate()?t.mul(this.ec.curve.n).isInfinity()?{result:!0,reason:null}:{result:!1,reason:"Public key * N != O"}:{result:!1,reason:"Public key is not a point"}},s.prototype.getPublic=function(t,e){return"string"==typeof t&&(e=t,t=null),this.pub||(this.pub=this.ec.g.mul(this.priv)),e?this.pub.encode(e,t):this.pub},s.prototype.getPrivate=function(t){return"hex"===t?this.priv.toString(16,2):this.priv},s.prototype._importPrivate=function(t,e){this.priv=new r(t,e||16),this.priv=this.priv.umod(this.ec.curve.n)},s.prototype._importPublic=function(t,e){if(t.x||t.y)return"mont"===this.ec.curve.type?n(t.x,"Need x coordinate"):"short"!==this.ec.curve.type&&"edwards"!==this.ec.curve.type||n(t.x&&t.y,"Need both x and y coordinate"),void(this.pub=this.ec.curve.point(t.x,t.y));this.pub=this.ec.curve.decodePoint(t,e)},s.prototype.derive=function(t){return t.validate()||n(t.validate(),"public point not validated"),t.mul(this.priv).getX()},s.prototype.sign=function(t,e,i){return this.ec.sign(t,this,e,i)},s.prototype.verify=function(t,e,i){return this.ec.verify(t,e,this,void 0,i)},s.prototype.inspect=function(){return""}},"../../node_modules/elliptic/lib/elliptic/ec/signature.js":function(t,e,i){"use strict";var r=i("../../node_modules/elliptic/node_modules/bn.js/lib/bn.js"),n=i("../../node_modules/elliptic/lib/elliptic/utils.js"),s=n.assert;function o(t,e){if(t instanceof o)return t;this._importDER(t,e)||(s(t.r&&t.s,"Signature without r or s"),this.r=new r(t.r,16),this.s=new r(t.s,16),void 0===t.recoveryParam?this.recoveryParam=null:this.recoveryParam=t.recoveryParam)}function a(){this.place=0}function h(t,e){var i=t[e.place++];if(!(128&i))return i;var r=15&i;if(0===r||r>4)return!1;if(0===t[e.place])return!1;for(var n=0,s=0,o=e.place;s>>=0;return!(n<=127)&&(e.place=o,n)}function d(t){for(var e=0,i=t.length-1;!t[e]&&!(128&t[e+1])&&e>>3);for(t.push(128|i);--i;)t.push(e>>>(i<<3)&255);t.push(e)}}t.exports=o,o.prototype._importDER=function(t,e){t=n.toArray(t,e);var i=new a;if(48!==t[i.place++])return!1;var s=h(t,i);if(!1===s)return!1;if(s+i.place!==t.length)return!1;if(2!==t[i.place++])return!1;var o=h(t,i);if(!1===o)return!1;if(0!=(128&t[i.place]))return!1;var d=t.slice(i.place,o+i.place);if(i.place+=o,2!==t[i.place++])return!1;var u=h(t,i);if(!1===u)return!1;if(t.length!==u+i.place)return!1;if(0!=(128&t[i.place]))return!1;var f=t.slice(i.place,u+i.place);if(0===d[0]){if(!(128&d[1]))return!1;d=d.slice(1)}if(0===f[0]){if(!(128&f[1]))return!1;f=f.slice(1)}return this.r=new r(d),this.s=new r(f),this.recoveryParam=null,!0},o.prototype.toDER=function(t){var e=this.r.toArray(),i=this.s.toArray();for(128&e[0]&&(e=[0].concat(e)),128&i[0]&&(i=[0].concat(i)),e=d(e),i=d(i);!(i[0]||128&i[1]);)i=i.slice(1);var r=[2];u(r,e.length),(r=r.concat(e)).push(2),u(r,i.length);var s=r.concat(i),o=[48];return u(o,s.length),o=o.concat(s),n.encode(o,t)}},"../../node_modules/elliptic/lib/elliptic/eddsa/index.js":function(t,e,i){"use strict";var r=i("../../node_modules/hash.js/lib/hash.js"),n=i("../../node_modules/elliptic/lib/elliptic/curves.js"),s=i("../../node_modules/elliptic/lib/elliptic/utils.js"),o=s.assert,a=s.parseBytes,h=i("../../node_modules/elliptic/lib/elliptic/eddsa/key.js"),d=i("../../node_modules/elliptic/lib/elliptic/eddsa/signature.js");function u(t){if(o("ed25519"===t,"only tested with ed25519 so far"),!(this instanceof u))return new u(t);t=n[t].curve,this.curve=t,this.g=t.g,this.g.precompute(t.n.bitLength()+1),this.pointClass=t.point().constructor,this.encodingLength=Math.ceil(t.n.bitLength()/8),this.hash=r.sha512}t.exports=u,u.prototype.sign=function(t,e){t=a(t);var i=this.keyFromSecret(e),r=this.hashInt(i.messagePrefix(),t),n=this.g.mul(r),s=this.encodePoint(n),o=this.hashInt(s,i.pubBytes(),t).mul(i.priv()),h=r.add(o).umod(this.curve.n);return this.makeSignature({R:n,S:h,Rencoded:s})},u.prototype.verify=function(t,e,i){if(t=a(t),(e=this.makeSignature(e)).S().gte(e.eddsa.curve.n)||e.S().isNeg())return!1;var r=this.keyFromPublic(i),n=this.hashInt(e.Rencoded(),r.pubBytes(),t),s=this.g.mul(e.S());return e.R().add(r.pub().mul(n)).eq(s)},u.prototype.hashInt=function(){for(var t=this.hash(),e=0;e(s>>1)-1?(s>>1)-h:h,o.isubn(a)):a=0,n[r]=a,o.iushrn(1)}return n},r.getJSF=function(t,e){var i=[[],[]];t=t.clone(),e=e.clone();for(var r,n=0,s=0;t.cmpn(-n)>0||e.cmpn(-s)>0;){var o,a,h=t.andln(3)+n&3,d=e.andln(3)+s&3;3===h&&(h=-1),3===d&&(d=-1),o=0==(1&h)?0:3!==(r=t.andln(7)+n&7)&&5!==r||2!==d?h:-h,i[0].push(o),a=0==(1&d)?0:3!==(r=e.andln(7)+s&7)&&5!==r||2!==h?d:-d,i[1].push(a),2*n===o+1&&(n=1-n),2*s===a+1&&(s=1-s),t.iushrn(1),e.iushrn(1)}return i},r.cachedProperty=function(t,e,i){var r="_"+e;t.prototype[e]=function(){return void 0!==this[r]?this[r]:this[r]=i.call(this)}},r.parseBytes=function(t){return"string"==typeof t?r.toArray(t,"hex"):t},r.intFromLE=function(t){return new n(t,"hex","le")}},"../../node_modules/elliptic/node_modules/bn.js/lib/bn.js":function(t,e,i){(function(t){!function(t,e){"use strict";function r(t,e){if(!t)throw new Error(e||"Assertion failed")}function n(t,e){t.super_=e;var i=function(){};i.prototype=e.prototype,t.prototype=new i,t.prototype.constructor=t}function s(t,e,i){if(s.isBN(t))return t;this.negative=0,this.words=null,this.length=0,this.red=null,null!==t&&("le"!==e&&"be"!==e||(i=e,e=10),this._init(t||0,e||10,i||"be"))}var o;"object"==typeof t?t.exports=s:e.BN=s,s.BN=s,s.wordSize=26;try{o="undefined"!=typeof window&&void 0!==window.Buffer?window.Buffer:i("../../standalone-packages/codesandbox-browserfs/dist/shims/buffer.js").Buffer}catch(t){}function a(t,e){var i=t.charCodeAt(e);return i>=65&&i<=70?i-55:i>=97&&i<=102?i-87:i-48&15}function h(t,e,i){var r=a(t,i);return i-1>=e&&(r|=a(t,i-1)<<4),r}function d(t,e,i,r){for(var n=0,s=Math.min(t.length,i),o=e;o=49?a-49+10:a>=17?a-17+10:a}return n}s.isBN=function(t){return t instanceof s||null!==t&&"object"==typeof t&&t.constructor.wordSize===s.wordSize&&Array.isArray(t.words)},s.max=function(t,e){return t.cmp(e)>0?t:e},s.min=function(t,e){return t.cmp(e)<0?t:e},s.prototype._init=function(t,e,i){if("number"==typeof t)return this._initNumber(t,e,i);if("object"==typeof t)return this._initArray(t,e,i);"hex"===e&&(e=16),r(e===(0|e)&&e>=2&&e<=36);var n=0;"-"===(t=t.toString().replace(/\s+/g,""))[0]&&(n++,this.negative=1),n=0;n-=3)o=t[n]|t[n-1]<<8|t[n-2]<<16,this.words[s]|=o<>>26-a&67108863,(a+=24)>=26&&(a-=26,s++);else if("le"===i)for(n=0,s=0;n>>26-a&67108863,(a+=24)>=26&&(a-=26,s++);return this.strip()},s.prototype._parseHex=function(t,e,i){this.length=Math.ceil((t.length-e)/6),this.words=new Array(this.length);for(var r=0;r=e;r-=2)n=h(t,e,r)<=18?(s-=18,o+=1,this.words[o]|=n>>>26):s+=8;else for(r=(t.length-e)%2==0?e+1:e;r=18?(s-=18,o+=1,this.words[o]|=n>>>26):s+=8;this.strip()},s.prototype._parseBase=function(t,e,i){this.words=[0],this.length=1;for(var r=0,n=1;n<=67108863;n*=e)r++;r--,n=n/e|0;for(var s=t.length-i,o=s%r,a=Math.min(s,s-o)+i,h=0,u=i;u1&&0===this.words[this.length-1];)this.length--;return this._normSign()},s.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},s.prototype.inspect=function(){return(this.red?""};var u=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],f=[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],l=[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 c(t,e,i){i.negative=e.negative^t.negative;var r=t.length+e.length|0;i.length=r,r=r-1|0;var n=0|t.words[0],s=0|e.words[0],o=n*s,a=67108863&o,h=o/67108864|0;i.words[0]=a;for(var d=1;d>>26,f=67108863&h,l=Math.min(d,e.length-1),c=Math.max(0,d-t.length+1);c<=l;c++){var p=d-c|0;u+=(o=(n=0|t.words[p])*(s=0|e.words[c])+f)/67108864|0,f=67108863&o}i.words[d]=0|f,h=0|u}return 0!==h?i.words[d]=0|h:i.length--,i.strip()}s.prototype.toString=function(t,e){var i;if(e=0|e||1,16===(t=t||10)||"hex"===t){i="";for(var n=0,s=0,o=0;o>>24-n&16777215)||o!==this.length-1?u[6-h.length]+h+i:h+i,(n+=2)>=26&&(n-=26,o--)}for(0!==s&&(i=s.toString(16)+i);i.length%e!=0;)i="0"+i;return 0!==this.negative&&(i="-"+i),i}if(t===(0|t)&&t>=2&&t<=36){var d=f[t],c=l[t];i="";var p=this.clone();for(p.negative=0;!p.isZero();){var m=p.modn(c).toString(t);i=(p=p.idivn(c)).isZero()?m+i:u[d-m.length]+m+i}for(this.isZero()&&(i="0"+i);i.length%e!=0;)i="0"+i;return 0!==this.negative&&(i="-"+i),i}r(!1,"Base should be between 2 and 36")},s.prototype.toNumber=function(){var t=this.words[0];return 2===this.length?t+=67108864*this.words[1]:3===this.length&&1===this.words[2]?t+=4503599627370496+67108864*this.words[1]:this.length>2&&r(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-t:t},s.prototype.toJSON=function(){return this.toString(16)},s.prototype.toBuffer=function(t,e){return r(void 0!==o),this.toArrayLike(o,t,e)},s.prototype.toArray=function(t,e){return this.toArrayLike(Array,t,e)},s.prototype.toArrayLike=function(t,e,i){var n=this.byteLength(),s=i||Math.max(1,n);r(n<=s,"byte array longer than desired length"),r(s>0,"Requested array length <= 0"),this.strip();var o,a,h="le"===e,d=new t(s),u=this.clone();if(h){for(a=0;!u.isZero();a++)o=u.andln(255),u.iushrn(8),d[a]=o;for(;a=4096&&(i+=13,e>>>=13),e>=64&&(i+=7,e>>>=7),e>=8&&(i+=4,e>>>=4),e>=2&&(i+=2,e>>>=2),i+e},s.prototype._zeroBits=function(t){if(0===t)return 26;var e=t,i=0;return 0==(8191&e)&&(i+=13,e>>>=13),0==(127&e)&&(i+=7,e>>>=7),0==(15&e)&&(i+=4,e>>>=4),0==(3&e)&&(i+=2,e>>>=2),0==(1&e)&&i++,i},s.prototype.bitLength=function(){var t=this.words[this.length-1],e=this._countBits(t);return 26*(this.length-1)+e},s.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,e=0;et.length?this.clone().ior(t):t.clone().ior(this)},s.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},s.prototype.iuand=function(t){var e;e=this.length>t.length?t:this;for(var i=0;it.length?this.clone().iand(t):t.clone().iand(this)},s.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},s.prototype.iuxor=function(t){var e,i;this.length>t.length?(e=this,i=t):(e=t,i=this);for(var r=0;rt.length?this.clone().ixor(t):t.clone().ixor(this)},s.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},s.prototype.inotn=function(t){r("number"==typeof t&&t>=0);var e=0|Math.ceil(t/26),i=t%26;this._expand(e),i>0&&e--;for(var n=0;n0&&(this.words[n]=~this.words[n]&67108863>>26-i),this.strip()},s.prototype.notn=function(t){return this.clone().inotn(t)},s.prototype.setn=function(t,e){r("number"==typeof t&&t>=0);var i=t/26|0,n=t%26;return this._expand(i+1),this.words[i]=e?this.words[i]|1<t.length?(i=this,r=t):(i=t,r=this);for(var n=0,s=0;s>>26;for(;0!==n&&s>>26;if(this.length=i.length,0!==n)this.words[this.length]=n,this.length++;else if(i!==this)for(;st.length?this.clone().iadd(t):t.clone().iadd(this)},s.prototype.isub=function(t){if(0!==t.negative){t.negative=0;var e=this.iadd(t);return t.negative=1,e._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(t),this.negative=1,this._normSign();var i,r,n=this.cmp(t);if(0===n)return this.negative=0,this.length=1,this.words[0]=0,this;n>0?(i=this,r=t):(i=t,r=this);for(var s=0,o=0;o>26,this.words[o]=67108863&e;for(;0!==s&&o>26,this.words[o]=67108863&e;if(0===s&&o>>13,c=0|o[1],p=8191&c,m=c>>>13,b=0|o[2],v=8191&b,g=b>>>13,y=0|o[3],_=8191&y,w=y>>>13,M=0|o[4],x=8191&M,j=M>>>13,E=0|o[5],S=8191&E,k=E>>>13,A=0|o[6],R=8191&A,I=A>>>13,B=0|o[7],C=8191&B,O=B>>>13,T=0|o[8],P=8191&T,N=T>>>13,L=0|o[9],q=8191&L,D=L>>>13,z=0|a[0],U=8191&z,K=z>>>13,F=0|a[1],H=8191&F,Z=F>>>13,G=0|a[2],V=8191&G,X=G>>>13,$=0|a[3],W=8191&$,Y=$>>>13,J=0|a[4],Q=8191&J,tt=J>>>13,et=0|a[5],it=8191&et,rt=et>>>13,nt=0|a[6],st=8191&nt,ot=nt>>>13,at=0|a[7],ht=8191&at,dt=at>>>13,ut=0|a[8],ft=8191&ut,lt=ut>>>13,ct=0|a[9],pt=8191&ct,mt=ct>>>13;i.negative=t.negative^e.negative,i.length=19;var bt=(d+(r=Math.imul(f,U))|0)+((8191&(n=(n=Math.imul(f,K))+Math.imul(l,U)|0))<<13)|0;d=((s=Math.imul(l,K))+(n>>>13)|0)+(bt>>>26)|0,bt&=67108863,r=Math.imul(p,U),n=(n=Math.imul(p,K))+Math.imul(m,U)|0,s=Math.imul(m,K);var vt=(d+(r=r+Math.imul(f,H)|0)|0)+((8191&(n=(n=n+Math.imul(f,Z)|0)+Math.imul(l,H)|0))<<13)|0;d=((s=s+Math.imul(l,Z)|0)+(n>>>13)|0)+(vt>>>26)|0,vt&=67108863,r=Math.imul(v,U),n=(n=Math.imul(v,K))+Math.imul(g,U)|0,s=Math.imul(g,K),r=r+Math.imul(p,H)|0,n=(n=n+Math.imul(p,Z)|0)+Math.imul(m,H)|0,s=s+Math.imul(m,Z)|0;var gt=(d+(r=r+Math.imul(f,V)|0)|0)+((8191&(n=(n=n+Math.imul(f,X)|0)+Math.imul(l,V)|0))<<13)|0;d=((s=s+Math.imul(l,X)|0)+(n>>>13)|0)+(gt>>>26)|0,gt&=67108863,r=Math.imul(_,U),n=(n=Math.imul(_,K))+Math.imul(w,U)|0,s=Math.imul(w,K),r=r+Math.imul(v,H)|0,n=(n=n+Math.imul(v,Z)|0)+Math.imul(g,H)|0,s=s+Math.imul(g,Z)|0,r=r+Math.imul(p,V)|0,n=(n=n+Math.imul(p,X)|0)+Math.imul(m,V)|0,s=s+Math.imul(m,X)|0;var yt=(d+(r=r+Math.imul(f,W)|0)|0)+((8191&(n=(n=n+Math.imul(f,Y)|0)+Math.imul(l,W)|0))<<13)|0;d=((s=s+Math.imul(l,Y)|0)+(n>>>13)|0)+(yt>>>26)|0,yt&=67108863,r=Math.imul(x,U),n=(n=Math.imul(x,K))+Math.imul(j,U)|0,s=Math.imul(j,K),r=r+Math.imul(_,H)|0,n=(n=n+Math.imul(_,Z)|0)+Math.imul(w,H)|0,s=s+Math.imul(w,Z)|0,r=r+Math.imul(v,V)|0,n=(n=n+Math.imul(v,X)|0)+Math.imul(g,V)|0,s=s+Math.imul(g,X)|0,r=r+Math.imul(p,W)|0,n=(n=n+Math.imul(p,Y)|0)+Math.imul(m,W)|0,s=s+Math.imul(m,Y)|0;var _t=(d+(r=r+Math.imul(f,Q)|0)|0)+((8191&(n=(n=n+Math.imul(f,tt)|0)+Math.imul(l,Q)|0))<<13)|0;d=((s=s+Math.imul(l,tt)|0)+(n>>>13)|0)+(_t>>>26)|0,_t&=67108863,r=Math.imul(S,U),n=(n=Math.imul(S,K))+Math.imul(k,U)|0,s=Math.imul(k,K),r=r+Math.imul(x,H)|0,n=(n=n+Math.imul(x,Z)|0)+Math.imul(j,H)|0,s=s+Math.imul(j,Z)|0,r=r+Math.imul(_,V)|0,n=(n=n+Math.imul(_,X)|0)+Math.imul(w,V)|0,s=s+Math.imul(w,X)|0,r=r+Math.imul(v,W)|0,n=(n=n+Math.imul(v,Y)|0)+Math.imul(g,W)|0,s=s+Math.imul(g,Y)|0,r=r+Math.imul(p,Q)|0,n=(n=n+Math.imul(p,tt)|0)+Math.imul(m,Q)|0,s=s+Math.imul(m,tt)|0;var wt=(d+(r=r+Math.imul(f,it)|0)|0)+((8191&(n=(n=n+Math.imul(f,rt)|0)+Math.imul(l,it)|0))<<13)|0;d=((s=s+Math.imul(l,rt)|0)+(n>>>13)|0)+(wt>>>26)|0,wt&=67108863,r=Math.imul(R,U),n=(n=Math.imul(R,K))+Math.imul(I,U)|0,s=Math.imul(I,K),r=r+Math.imul(S,H)|0,n=(n=n+Math.imul(S,Z)|0)+Math.imul(k,H)|0,s=s+Math.imul(k,Z)|0,r=r+Math.imul(x,V)|0,n=(n=n+Math.imul(x,X)|0)+Math.imul(j,V)|0,s=s+Math.imul(j,X)|0,r=r+Math.imul(_,W)|0,n=(n=n+Math.imul(_,Y)|0)+Math.imul(w,W)|0,s=s+Math.imul(w,Y)|0,r=r+Math.imul(v,Q)|0,n=(n=n+Math.imul(v,tt)|0)+Math.imul(g,Q)|0,s=s+Math.imul(g,tt)|0,r=r+Math.imul(p,it)|0,n=(n=n+Math.imul(p,rt)|0)+Math.imul(m,it)|0,s=s+Math.imul(m,rt)|0;var Mt=(d+(r=r+Math.imul(f,st)|0)|0)+((8191&(n=(n=n+Math.imul(f,ot)|0)+Math.imul(l,st)|0))<<13)|0;d=((s=s+Math.imul(l,ot)|0)+(n>>>13)|0)+(Mt>>>26)|0,Mt&=67108863,r=Math.imul(C,U),n=(n=Math.imul(C,K))+Math.imul(O,U)|0,s=Math.imul(O,K),r=r+Math.imul(R,H)|0,n=(n=n+Math.imul(R,Z)|0)+Math.imul(I,H)|0,s=s+Math.imul(I,Z)|0,r=r+Math.imul(S,V)|0,n=(n=n+Math.imul(S,X)|0)+Math.imul(k,V)|0,s=s+Math.imul(k,X)|0,r=r+Math.imul(x,W)|0,n=(n=n+Math.imul(x,Y)|0)+Math.imul(j,W)|0,s=s+Math.imul(j,Y)|0,r=r+Math.imul(_,Q)|0,n=(n=n+Math.imul(_,tt)|0)+Math.imul(w,Q)|0,s=s+Math.imul(w,tt)|0,r=r+Math.imul(v,it)|0,n=(n=n+Math.imul(v,rt)|0)+Math.imul(g,it)|0,s=s+Math.imul(g,rt)|0,r=r+Math.imul(p,st)|0,n=(n=n+Math.imul(p,ot)|0)+Math.imul(m,st)|0,s=s+Math.imul(m,ot)|0;var xt=(d+(r=r+Math.imul(f,ht)|0)|0)+((8191&(n=(n=n+Math.imul(f,dt)|0)+Math.imul(l,ht)|0))<<13)|0;d=((s=s+Math.imul(l,dt)|0)+(n>>>13)|0)+(xt>>>26)|0,xt&=67108863,r=Math.imul(P,U),n=(n=Math.imul(P,K))+Math.imul(N,U)|0,s=Math.imul(N,K),r=r+Math.imul(C,H)|0,n=(n=n+Math.imul(C,Z)|0)+Math.imul(O,H)|0,s=s+Math.imul(O,Z)|0,r=r+Math.imul(R,V)|0,n=(n=n+Math.imul(R,X)|0)+Math.imul(I,V)|0,s=s+Math.imul(I,X)|0,r=r+Math.imul(S,W)|0,n=(n=n+Math.imul(S,Y)|0)+Math.imul(k,W)|0,s=s+Math.imul(k,Y)|0,r=r+Math.imul(x,Q)|0,n=(n=n+Math.imul(x,tt)|0)+Math.imul(j,Q)|0,s=s+Math.imul(j,tt)|0,r=r+Math.imul(_,it)|0,n=(n=n+Math.imul(_,rt)|0)+Math.imul(w,it)|0,s=s+Math.imul(w,rt)|0,r=r+Math.imul(v,st)|0,n=(n=n+Math.imul(v,ot)|0)+Math.imul(g,st)|0,s=s+Math.imul(g,ot)|0,r=r+Math.imul(p,ht)|0,n=(n=n+Math.imul(p,dt)|0)+Math.imul(m,ht)|0,s=s+Math.imul(m,dt)|0;var jt=(d+(r=r+Math.imul(f,ft)|0)|0)+((8191&(n=(n=n+Math.imul(f,lt)|0)+Math.imul(l,ft)|0))<<13)|0;d=((s=s+Math.imul(l,lt)|0)+(n>>>13)|0)+(jt>>>26)|0,jt&=67108863,r=Math.imul(q,U),n=(n=Math.imul(q,K))+Math.imul(D,U)|0,s=Math.imul(D,K),r=r+Math.imul(P,H)|0,n=(n=n+Math.imul(P,Z)|0)+Math.imul(N,H)|0,s=s+Math.imul(N,Z)|0,r=r+Math.imul(C,V)|0,n=(n=n+Math.imul(C,X)|0)+Math.imul(O,V)|0,s=s+Math.imul(O,X)|0,r=r+Math.imul(R,W)|0,n=(n=n+Math.imul(R,Y)|0)+Math.imul(I,W)|0,s=s+Math.imul(I,Y)|0,r=r+Math.imul(S,Q)|0,n=(n=n+Math.imul(S,tt)|0)+Math.imul(k,Q)|0,s=s+Math.imul(k,tt)|0,r=r+Math.imul(x,it)|0,n=(n=n+Math.imul(x,rt)|0)+Math.imul(j,it)|0,s=s+Math.imul(j,rt)|0,r=r+Math.imul(_,st)|0,n=(n=n+Math.imul(_,ot)|0)+Math.imul(w,st)|0,s=s+Math.imul(w,ot)|0,r=r+Math.imul(v,ht)|0,n=(n=n+Math.imul(v,dt)|0)+Math.imul(g,ht)|0,s=s+Math.imul(g,dt)|0,r=r+Math.imul(p,ft)|0,n=(n=n+Math.imul(p,lt)|0)+Math.imul(m,ft)|0,s=s+Math.imul(m,lt)|0;var Et=(d+(r=r+Math.imul(f,pt)|0)|0)+((8191&(n=(n=n+Math.imul(f,mt)|0)+Math.imul(l,pt)|0))<<13)|0;d=((s=s+Math.imul(l,mt)|0)+(n>>>13)|0)+(Et>>>26)|0,Et&=67108863,r=Math.imul(q,H),n=(n=Math.imul(q,Z))+Math.imul(D,H)|0,s=Math.imul(D,Z),r=r+Math.imul(P,V)|0,n=(n=n+Math.imul(P,X)|0)+Math.imul(N,V)|0,s=s+Math.imul(N,X)|0,r=r+Math.imul(C,W)|0,n=(n=n+Math.imul(C,Y)|0)+Math.imul(O,W)|0,s=s+Math.imul(O,Y)|0,r=r+Math.imul(R,Q)|0,n=(n=n+Math.imul(R,tt)|0)+Math.imul(I,Q)|0,s=s+Math.imul(I,tt)|0,r=r+Math.imul(S,it)|0,n=(n=n+Math.imul(S,rt)|0)+Math.imul(k,it)|0,s=s+Math.imul(k,rt)|0,r=r+Math.imul(x,st)|0,n=(n=n+Math.imul(x,ot)|0)+Math.imul(j,st)|0,s=s+Math.imul(j,ot)|0,r=r+Math.imul(_,ht)|0,n=(n=n+Math.imul(_,dt)|0)+Math.imul(w,ht)|0,s=s+Math.imul(w,dt)|0,r=r+Math.imul(v,ft)|0,n=(n=n+Math.imul(v,lt)|0)+Math.imul(g,ft)|0,s=s+Math.imul(g,lt)|0;var St=(d+(r=r+Math.imul(p,pt)|0)|0)+((8191&(n=(n=n+Math.imul(p,mt)|0)+Math.imul(m,pt)|0))<<13)|0;d=((s=s+Math.imul(m,mt)|0)+(n>>>13)|0)+(St>>>26)|0,St&=67108863,r=Math.imul(q,V),n=(n=Math.imul(q,X))+Math.imul(D,V)|0,s=Math.imul(D,X),r=r+Math.imul(P,W)|0,n=(n=n+Math.imul(P,Y)|0)+Math.imul(N,W)|0,s=s+Math.imul(N,Y)|0,r=r+Math.imul(C,Q)|0,n=(n=n+Math.imul(C,tt)|0)+Math.imul(O,Q)|0,s=s+Math.imul(O,tt)|0,r=r+Math.imul(R,it)|0,n=(n=n+Math.imul(R,rt)|0)+Math.imul(I,it)|0,s=s+Math.imul(I,rt)|0,r=r+Math.imul(S,st)|0,n=(n=n+Math.imul(S,ot)|0)+Math.imul(k,st)|0,s=s+Math.imul(k,ot)|0,r=r+Math.imul(x,ht)|0,n=(n=n+Math.imul(x,dt)|0)+Math.imul(j,ht)|0,s=s+Math.imul(j,dt)|0,r=r+Math.imul(_,ft)|0,n=(n=n+Math.imul(_,lt)|0)+Math.imul(w,ft)|0,s=s+Math.imul(w,lt)|0;var kt=(d+(r=r+Math.imul(v,pt)|0)|0)+((8191&(n=(n=n+Math.imul(v,mt)|0)+Math.imul(g,pt)|0))<<13)|0;d=((s=s+Math.imul(g,mt)|0)+(n>>>13)|0)+(kt>>>26)|0,kt&=67108863,r=Math.imul(q,W),n=(n=Math.imul(q,Y))+Math.imul(D,W)|0,s=Math.imul(D,Y),r=r+Math.imul(P,Q)|0,n=(n=n+Math.imul(P,tt)|0)+Math.imul(N,Q)|0,s=s+Math.imul(N,tt)|0,r=r+Math.imul(C,it)|0,n=(n=n+Math.imul(C,rt)|0)+Math.imul(O,it)|0,s=s+Math.imul(O,rt)|0,r=r+Math.imul(R,st)|0,n=(n=n+Math.imul(R,ot)|0)+Math.imul(I,st)|0,s=s+Math.imul(I,ot)|0,r=r+Math.imul(S,ht)|0,n=(n=n+Math.imul(S,dt)|0)+Math.imul(k,ht)|0,s=s+Math.imul(k,dt)|0,r=r+Math.imul(x,ft)|0,n=(n=n+Math.imul(x,lt)|0)+Math.imul(j,ft)|0,s=s+Math.imul(j,lt)|0;var At=(d+(r=r+Math.imul(_,pt)|0)|0)+((8191&(n=(n=n+Math.imul(_,mt)|0)+Math.imul(w,pt)|0))<<13)|0;d=((s=s+Math.imul(w,mt)|0)+(n>>>13)|0)+(At>>>26)|0,At&=67108863,r=Math.imul(q,Q),n=(n=Math.imul(q,tt))+Math.imul(D,Q)|0,s=Math.imul(D,tt),r=r+Math.imul(P,it)|0,n=(n=n+Math.imul(P,rt)|0)+Math.imul(N,it)|0,s=s+Math.imul(N,rt)|0,r=r+Math.imul(C,st)|0,n=(n=n+Math.imul(C,ot)|0)+Math.imul(O,st)|0,s=s+Math.imul(O,ot)|0,r=r+Math.imul(R,ht)|0,n=(n=n+Math.imul(R,dt)|0)+Math.imul(I,ht)|0,s=s+Math.imul(I,dt)|0,r=r+Math.imul(S,ft)|0,n=(n=n+Math.imul(S,lt)|0)+Math.imul(k,ft)|0,s=s+Math.imul(k,lt)|0;var Rt=(d+(r=r+Math.imul(x,pt)|0)|0)+((8191&(n=(n=n+Math.imul(x,mt)|0)+Math.imul(j,pt)|0))<<13)|0;d=((s=s+Math.imul(j,mt)|0)+(n>>>13)|0)+(Rt>>>26)|0,Rt&=67108863,r=Math.imul(q,it),n=(n=Math.imul(q,rt))+Math.imul(D,it)|0,s=Math.imul(D,rt),r=r+Math.imul(P,st)|0,n=(n=n+Math.imul(P,ot)|0)+Math.imul(N,st)|0,s=s+Math.imul(N,ot)|0,r=r+Math.imul(C,ht)|0,n=(n=n+Math.imul(C,dt)|0)+Math.imul(O,ht)|0,s=s+Math.imul(O,dt)|0,r=r+Math.imul(R,ft)|0,n=(n=n+Math.imul(R,lt)|0)+Math.imul(I,ft)|0,s=s+Math.imul(I,lt)|0;var It=(d+(r=r+Math.imul(S,pt)|0)|0)+((8191&(n=(n=n+Math.imul(S,mt)|0)+Math.imul(k,pt)|0))<<13)|0;d=((s=s+Math.imul(k,mt)|0)+(n>>>13)|0)+(It>>>26)|0,It&=67108863,r=Math.imul(q,st),n=(n=Math.imul(q,ot))+Math.imul(D,st)|0,s=Math.imul(D,ot),r=r+Math.imul(P,ht)|0,n=(n=n+Math.imul(P,dt)|0)+Math.imul(N,ht)|0,s=s+Math.imul(N,dt)|0,r=r+Math.imul(C,ft)|0,n=(n=n+Math.imul(C,lt)|0)+Math.imul(O,ft)|0,s=s+Math.imul(O,lt)|0;var Bt=(d+(r=r+Math.imul(R,pt)|0)|0)+((8191&(n=(n=n+Math.imul(R,mt)|0)+Math.imul(I,pt)|0))<<13)|0;d=((s=s+Math.imul(I,mt)|0)+(n>>>13)|0)+(Bt>>>26)|0,Bt&=67108863,r=Math.imul(q,ht),n=(n=Math.imul(q,dt))+Math.imul(D,ht)|0,s=Math.imul(D,dt),r=r+Math.imul(P,ft)|0,n=(n=n+Math.imul(P,lt)|0)+Math.imul(N,ft)|0,s=s+Math.imul(N,lt)|0;var Ct=(d+(r=r+Math.imul(C,pt)|0)|0)+((8191&(n=(n=n+Math.imul(C,mt)|0)+Math.imul(O,pt)|0))<<13)|0;d=((s=s+Math.imul(O,mt)|0)+(n>>>13)|0)+(Ct>>>26)|0,Ct&=67108863,r=Math.imul(q,ft),n=(n=Math.imul(q,lt))+Math.imul(D,ft)|0,s=Math.imul(D,lt);var Ot=(d+(r=r+Math.imul(P,pt)|0)|0)+((8191&(n=(n=n+Math.imul(P,mt)|0)+Math.imul(N,pt)|0))<<13)|0;d=((s=s+Math.imul(N,mt)|0)+(n>>>13)|0)+(Ot>>>26)|0,Ot&=67108863;var Tt=(d+(r=Math.imul(q,pt))|0)+((8191&(n=(n=Math.imul(q,mt))+Math.imul(D,pt)|0))<<13)|0;return d=((s=Math.imul(D,mt))+(n>>>13)|0)+(Tt>>>26)|0,Tt&=67108863,h[0]=bt,h[1]=vt,h[2]=gt,h[3]=yt,h[4]=_t,h[5]=wt,h[6]=Mt,h[7]=xt,h[8]=jt,h[9]=Et,h[10]=St,h[11]=kt,h[12]=At,h[13]=Rt,h[14]=It,h[15]=Bt,h[16]=Ct,h[17]=Ot,h[18]=Tt,0!==d&&(h[19]=d,i.length++),i};function m(t,e,i){return(new b).mulp(t,e,i)}function b(t,e){this.x=t,this.y=e}Math.imul||(p=c),s.prototype.mulTo=function(t,e){var i=this.length+t.length;return 10===this.length&&10===t.length?p(this,t,e):i<63?c(this,t,e):i<1024?function(t,e,i){i.negative=e.negative^t.negative,i.length=t.length+e.length;for(var r=0,n=0,s=0;s>>26)|0)>>>26,o&=67108863}i.words[s]=a,r=o,o=n}return 0!==r?i.words[s]=r:i.length--,i.strip()}(this,t,e):m(this,t,e)},b.prototype.makeRBT=function(t){for(var e=new Array(t),i=s.prototype._countBits(t)-1,r=0;r>=1;return r},b.prototype.permute=function(t,e,i,r,n,s){for(var o=0;o>>=1)n++;return 1<>>=13,i[2*o+1]=8191&s,s>>>=13;for(o=2*e;o>=26,e+=n/67108864|0,e+=s>>>26,this.words[i]=67108863&s}return 0!==e&&(this.words[i]=e,this.length++),this},s.prototype.muln=function(t){return this.clone().imuln(t)},s.prototype.sqr=function(){return this.mul(this)},s.prototype.isqr=function(){return this.imul(this.clone())},s.prototype.pow=function(t){var e=function(t){for(var e=new Array(t.bitLength()),i=0;i>>n}return e}(t);if(0===e.length)return new s(1);for(var i=this,r=0;r=0);var e,i=t%26,n=(t-i)/26,s=67108863>>>26-i<<26-i;if(0!==i){var o=0;for(e=0;e>>26-i}o&&(this.words[e]=o,this.length++)}if(0!==n){for(e=this.length-1;e>=0;e--)this.words[e+n]=this.words[e];for(e=0;e=0),n=e?(e-e%26)/26:0;var s=t%26,o=Math.min((t-s)/26,this.length),a=67108863^67108863>>>s<o)for(this.length-=o,d=0;d=0&&(0!==u||d>=n);d--){var f=0|this.words[d];this.words[d]=u<<26-s|f>>>s,u=f&a}return h&&0!==u&&(h.words[h.length++]=u),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},s.prototype.ishrn=function(t,e,i){return r(0===this.negative),this.iushrn(t,e,i)},s.prototype.shln=function(t){return this.clone().ishln(t)},s.prototype.ushln=function(t){return this.clone().iushln(t)},s.prototype.shrn=function(t){return this.clone().ishrn(t)},s.prototype.ushrn=function(t){return this.clone().iushrn(t)},s.prototype.testn=function(t){r("number"==typeof t&&t>=0);var e=t%26,i=(t-e)/26,n=1<=0);var e=t%26,i=(t-e)/26;if(r(0===this.negative,"imaskn works only with positive numbers"),this.length<=i)return this;if(0!==e&&i++,this.length=Math.min(i,this.length),0!==e){var n=67108863^67108863>>>e<=67108864;e++)this.words[e]-=67108864,e===this.length-1?this.words[e+1]=1:this.words[e+1]++;return this.length=Math.max(this.length,e+1),this},s.prototype.isubn=function(t){if(r("number"==typeof t),r(t<67108864),t<0)return this.iaddn(-t);if(0!==this.negative)return this.negative=0,this.iaddn(t),this.negative=1,this;if(this.words[0]-=t,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var e=0;e>26)-(h/67108864|0),this.words[n+i]=67108863&s}for(;n>26,this.words[n+i]=67108863&s;if(0===a)return this.strip();for(r(-1===a),a=0,n=0;n>26,this.words[n]=67108863&s;return this.negative=1,this.strip()},s.prototype._wordDiv=function(t,e){var i=(this.length,t.length),r=this.clone(),n=t,o=0|n.words[n.length-1];0!==(i=26-this._countBits(o))&&(n=n.ushln(i),r.iushln(i),o=0|n.words[n.length-1]);var a,h=r.length-n.length;if("mod"!==e){(a=new s(null)).length=h+1,a.words=new Array(a.length);for(var d=0;d=0;f--){var l=67108864*(0|r.words[n.length+f])+(0|r.words[n.length+f-1]);for(l=Math.min(l/o|0,67108863),r._ishlnsubmul(n,l,f);0!==r.negative;)l--,r.negative=0,r._ishlnsubmul(n,1,f),r.isZero()||(r.negative^=1);a&&(a.words[f]=l)}return a&&a.strip(),r.strip(),"div"!==e&&0!==i&&r.iushrn(i),{div:a||null,mod:r}},s.prototype.divmod=function(t,e,i){return r(!t.isZero()),this.isZero()?{div:new s(0),mod:new s(0)}:0!==this.negative&&0===t.negative?(a=this.neg().divmod(t,e),"mod"!==e&&(n=a.div.neg()),"div"!==e&&(o=a.mod.neg(),i&&0!==o.negative&&o.iadd(t)),{div:n,mod:o}):0===this.negative&&0!==t.negative?(a=this.divmod(t.neg(),e),"mod"!==e&&(n=a.div.neg()),{div:n,mod:a.mod}):0!=(this.negative&t.negative)?(a=this.neg().divmod(t.neg(),e),"div"!==e&&(o=a.mod.neg(),i&&0!==o.negative&&o.isub(t)),{div:a.div,mod:o}):t.length>this.length||this.cmp(t)<0?{div:new s(0),mod:this}:1===t.length?"div"===e?{div:this.divn(t.words[0]),mod:null}:"mod"===e?{div:null,mod:new s(this.modn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new s(this.modn(t.words[0]))}:this._wordDiv(t,e);var n,o,a},s.prototype.div=function(t){return this.divmod(t,"div",!1).div},s.prototype.mod=function(t){return this.divmod(t,"mod",!1).mod},s.prototype.umod=function(t){return this.divmod(t,"mod",!0).mod},s.prototype.divRound=function(t){var e=this.divmod(t);if(e.mod.isZero())return e.div;var i=0!==e.div.negative?e.mod.isub(t):e.mod,r=t.ushrn(1),n=t.andln(1),s=i.cmp(r);return s<0||1===n&&0===s?e.div:0!==e.div.negative?e.div.isubn(1):e.div.iaddn(1)},s.prototype.modn=function(t){r(t<=67108863);for(var e=(1<<26)%t,i=0,n=this.length-1;n>=0;n--)i=(e*i+(0|this.words[n]))%t;return i},s.prototype.idivn=function(t){r(t<=67108863);for(var e=0,i=this.length-1;i>=0;i--){var n=(0|this.words[i])+67108864*e;this.words[i]=n/t|0,e=n%t}return this.strip()},s.prototype.divn=function(t){return this.clone().idivn(t)},s.prototype.egcd=function(t){r(0===t.negative),r(!t.isZero());var e=this,i=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var n=new s(1),o=new s(0),a=new s(0),h=new s(1),d=0;e.isEven()&&i.isEven();)e.iushrn(1),i.iushrn(1),++d;for(var u=i.clone(),f=e.clone();!e.isZero();){for(var l=0,c=1;0==(e.words[0]&c)&&l<26;++l,c<<=1);if(l>0)for(e.iushrn(l);l-- >0;)(n.isOdd()||o.isOdd())&&(n.iadd(u),o.isub(f)),n.iushrn(1),o.iushrn(1);for(var p=0,m=1;0==(i.words[0]&m)&&p<26;++p,m<<=1);if(p>0)for(i.iushrn(p);p-- >0;)(a.isOdd()||h.isOdd())&&(a.iadd(u),h.isub(f)),a.iushrn(1),h.iushrn(1);e.cmp(i)>=0?(e.isub(i),n.isub(a),o.isub(h)):(i.isub(e),a.isub(n),h.isub(o))}return{a:a,b:h,gcd:i.iushln(d)}},s.prototype._invmp=function(t){r(0===t.negative),r(!t.isZero());var e=this,i=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var n,o=new s(1),a=new s(0),h=i.clone();e.cmpn(1)>0&&i.cmpn(1)>0;){for(var d=0,u=1;0==(e.words[0]&u)&&d<26;++d,u<<=1);if(d>0)for(e.iushrn(d);d-- >0;)o.isOdd()&&o.iadd(h),o.iushrn(1);for(var f=0,l=1;0==(i.words[0]&l)&&f<26;++f,l<<=1);if(f>0)for(i.iushrn(f);f-- >0;)a.isOdd()&&a.iadd(h),a.iushrn(1);e.cmp(i)>=0?(e.isub(i),o.isub(a)):(i.isub(e),a.isub(o))}return(n=0===e.cmpn(1)?o:a).cmpn(0)<0&&n.iadd(t),n},s.prototype.gcd=function(t){if(this.isZero())return t.abs();if(t.isZero())return this.abs();var e=this.clone(),i=t.clone();e.negative=0,i.negative=0;for(var r=0;e.isEven()&&i.isEven();r++)e.iushrn(1),i.iushrn(1);for(;;){for(;e.isEven();)e.iushrn(1);for(;i.isEven();)i.iushrn(1);var n=e.cmp(i);if(n<0){var s=e;e=i,i=s}else if(0===n||0===i.cmpn(1))break;e.isub(i)}return i.iushln(r)},s.prototype.invm=function(t){return this.egcd(t).a.umod(t)},s.prototype.isEven=function(){return 0==(1&this.words[0])},s.prototype.isOdd=function(){return 1==(1&this.words[0])},s.prototype.andln=function(t){return this.words[0]&t},s.prototype.bincn=function(t){r("number"==typeof t);var e=t%26,i=(t-e)/26,n=1<>>26,a&=67108863,this.words[o]=a}return 0!==s&&(this.words[o]=s,this.length++),this},s.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},s.prototype.cmpn=function(t){var e,i=t<0;if(0!==this.negative&&!i)return-1;if(0===this.negative&&i)return 1;if(this.strip(),this.length>1)e=1;else{i&&(t=-t),r(t<=67108863,"Number is too big");var n=0|this.words[0];e=n===t?0:nt.length)return 1;if(this.length=0;i--){var r=0|this.words[i],n=0|t.words[i];if(r!==n){rn&&(e=1);break}}return e},s.prototype.gtn=function(t){return 1===this.cmpn(t)},s.prototype.gt=function(t){return 1===this.cmp(t)},s.prototype.gten=function(t){return this.cmpn(t)>=0},s.prototype.gte=function(t){return this.cmp(t)>=0},s.prototype.ltn=function(t){return-1===this.cmpn(t)},s.prototype.lt=function(t){return-1===this.cmp(t)},s.prototype.lten=function(t){return this.cmpn(t)<=0},s.prototype.lte=function(t){return this.cmp(t)<=0},s.prototype.eqn=function(t){return 0===this.cmpn(t)},s.prototype.eq=function(t){return 0===this.cmp(t)},s.red=function(t){return new x(t)},s.prototype.toRed=function(t){return r(!this.red,"Already a number in reduction context"),r(0===this.negative,"red works only with positives"),t.convertTo(this)._forceRed(t)},s.prototype.fromRed=function(){return r(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},s.prototype._forceRed=function(t){return this.red=t,this},s.prototype.forceRed=function(t){return r(!this.red,"Already a number in reduction context"),this._forceRed(t)},s.prototype.redAdd=function(t){return r(this.red,"redAdd works only with red numbers"),this.red.add(this,t)},s.prototype.redIAdd=function(t){return r(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,t)},s.prototype.redSub=function(t){return r(this.red,"redSub works only with red numbers"),this.red.sub(this,t)},s.prototype.redISub=function(t){return r(this.red,"redISub works only with red numbers"),this.red.isub(this,t)},s.prototype.redShl=function(t){return r(this.red,"redShl works only with red numbers"),this.red.shl(this,t)},s.prototype.redMul=function(t){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.mul(this,t)},s.prototype.redIMul=function(t){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.imul(this,t)},s.prototype.redSqr=function(){return r(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},s.prototype.redISqr=function(){return r(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},s.prototype.redSqrt=function(){return r(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},s.prototype.redInvm=function(){return r(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},s.prototype.redNeg=function(){return r(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},s.prototype.redPow=function(t){return r(this.red&&!t.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,t)};var v={k256:null,p224:null,p192:null,p25519:null};function g(t,e){this.name=t,this.p=new s(e,16),this.n=this.p.bitLength(),this.k=new s(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function y(){g.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function _(){g.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function w(){g.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function M(){g.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function x(t){if("string"==typeof t){var e=s._prime(t);this.m=e.p,this.prime=e}else r(t.gtn(1),"modulus must be greater than 1"),this.m=t,this.prime=null}function j(t){x.call(this,t),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new s(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)}g.prototype._tmp=function(){var t=new s(null);return t.words=new Array(Math.ceil(this.n/13)),t},g.prototype.ireduce=function(t){var e,i=t;do{this.split(i,this.tmp),e=(i=(i=this.imulK(i)).iadd(this.tmp)).bitLength()}while(e>this.n);var r=e0?i.isub(this.p):void 0!==i.strip?i.strip():i._strip(),i},g.prototype.split=function(t,e){t.iushrn(this.n,0,e)},g.prototype.imulK=function(t){return t.imul(this.k)},n(y,g),y.prototype.split=function(t,e){for(var i=Math.min(t.length,9),r=0;r>>22,n=s}n>>>=22,t.words[r-10]=n,0===n&&t.length>10?t.length-=10:t.length-=9},y.prototype.imulK=function(t){t.words[t.length]=0,t.words[t.length+1]=0,t.length+=2;for(var e=0,i=0;i>>=26,t.words[i]=n,e=r}return 0!==e&&(t.words[t.length++]=e),t},s._prime=function(t){if(v[t])return v[t];var e;if("k256"===t)e=new y;else if("p224"===t)e=new _;else if("p192"===t)e=new w;else{if("p25519"!==t)throw new Error("Unknown prime "+t);e=new M}return v[t]=e,e},x.prototype._verify1=function(t){r(0===t.negative,"red works only with positives"),r(t.red,"red works only with red numbers")},x.prototype._verify2=function(t,e){r(0==(t.negative|e.negative),"red works only with positives"),r(t.red&&t.red===e.red,"red works only with red numbers")},x.prototype.imod=function(t){return this.prime?this.prime.ireduce(t)._forceRed(this):t.umod(this.m)._forceRed(this)},x.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},x.prototype.add=function(t,e){this._verify2(t,e);var i=t.add(e);return i.cmp(this.m)>=0&&i.isub(this.m),i._forceRed(this)},x.prototype.iadd=function(t,e){this._verify2(t,e);var i=t.iadd(e);return i.cmp(this.m)>=0&&i.isub(this.m),i},x.prototype.sub=function(t,e){this._verify2(t,e);var i=t.sub(e);return i.cmpn(0)<0&&i.iadd(this.m),i._forceRed(this)},x.prototype.isub=function(t,e){this._verify2(t,e);var i=t.isub(e);return i.cmpn(0)<0&&i.iadd(this.m),i},x.prototype.shl=function(t,e){return this._verify1(t),this.imod(t.ushln(e))},x.prototype.imul=function(t,e){return this._verify2(t,e),this.imod(t.imul(e))},x.prototype.mul=function(t,e){return this._verify2(t,e),this.imod(t.mul(e))},x.prototype.isqr=function(t){return this.imul(t,t.clone())},x.prototype.sqr=function(t){return this.mul(t,t)},x.prototype.sqrt=function(t){if(t.isZero())return t.clone();var e=this.m.andln(3);if(r(e%2==1),3===e){var i=this.m.add(new s(1)).iushrn(2);return this.pow(t,i)}for(var n=this.m.subn(1),o=0;!n.isZero()&&0===n.andln(1);)o++,n.iushrn(1);r(!n.isZero());var a=new s(1).toRed(this),h=a.redNeg(),d=this.m.subn(1).iushrn(1),u=this.m.bitLength();for(u=new s(2*u*u).toRed(this);0!==this.pow(u,d).cmp(h);)u.redIAdd(h);for(var f=this.pow(u,n),l=this.pow(t,n.addn(1).iushrn(1)),c=this.pow(t,n),p=o;0!==c.cmp(a);){for(var m=c,b=0;0!==m.cmp(a);b++)m=m.redSqr();r(b=0;r--){for(var d=e.words[r],u=h-1;u>=0;u--){var f=d>>u&1;n!==i[0]&&(n=this.sqr(n)),0!==f||0!==o?(o<<=1,o|=f,(4===++a||0===r&&0===u)&&(n=this.mul(n,i[o]),a=0,o=0)):a=0}h=26}return n},x.prototype.convertTo=function(t){var e=t.umod(this.m);return e===t?e.clone():e},x.prototype.convertFrom=function(t){var e=t.clone();return e.red=null,e},s.mont=function(t){return new j(t)},n(j,x),j.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},j.prototype.convertFrom=function(t){var e=this.imod(t.mul(this.rinv));return e.red=null,e},j.prototype.imul=function(t,e){if(t.isZero()||e.isZero())return t.words[0]=0,t.length=1,t;var i=t.imul(e),r=i.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),n=i.isub(r).iushrn(this.shift),s=n;return n.cmp(this.m)>=0?s=n.isub(this.m):n.cmpn(0)<0&&(s=n.iadd(this.m)),s._forceRed(this)},j.prototype.mul=function(t,e){if(t.isZero()||e.isZero())return new s(0)._forceRed(this);var i=t.mul(e),r=i.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),n=i.isub(r).iushrn(this.shift),o=n;return n.cmp(this.m)>=0?o=n.isub(this.m):n.cmpn(0)<0&&(o=n.iadd(this.m)),o._forceRed(this)},j.prototype.invm=function(t){return this.imod(t._invmp(this.m).mul(this.r2))._forceRed(this)}}(t,this)}).call(this,i("../../node_modules/webpack/buildin/module.js")(t))},"../../node_modules/elliptic/package.json":function(t){t.exports=JSON.parse('{"name":"elliptic","version":"6.6.1","description":"EC cryptography","main":"lib/elliptic.js","files":["lib"],"scripts":{"lint":"eslint lib test","lint:fix":"npm run lint -- --fix","unit":"istanbul test _mocha --reporter=spec test/index.js","test":"npm run lint && npm run unit","version":"grunt dist && git add dist/"},"repository":{"type":"git","url":"git@github.com:indutny/elliptic"},"keywords":["EC","Elliptic","curve","Cryptography"],"author":"Fedor Indutny ","license":"MIT","bugs":{"url":"https://github.com/indutny/elliptic/issues"},"homepage":"https://github.com/indutny/elliptic","devDependencies":{"brfs":"^2.0.2","coveralls":"^3.1.0","eslint":"^7.6.0","grunt":"^1.2.1","grunt-browserify":"^5.3.0","grunt-cli":"^1.3.2","grunt-contrib-connect":"^3.0.0","grunt-contrib-copy":"^1.0.0","grunt-contrib-uglify":"^5.0.0","grunt-mocha-istanbul":"^5.0.2","grunt-saucelabs":"^9.0.1","istanbul":"^0.4.5","mocha":"^8.0.1"},"dependencies":{"bn.js":"^4.11.9","brorand":"^1.1.0","hash.js":"^1.0.0","hmac-drbg":"^1.0.1","inherits":"^2.0.4","minimalistic-assert":"^1.0.1","minimalistic-crypto-utils":"^1.0.1"}}')},"../../node_modules/evp_bytestokey/index.js":function(t,e,i){var r=i("../../node_modules/safe-buffer/index.js").Buffer,n=i("../../node_modules/md5.js/index.js");t.exports=function(t,e,i,s){if(r.isBuffer(t)||(t=r.from(t,"binary")),e&&(r.isBuffer(e)||(e=r.from(e,"binary")),8!==e.length))throw new RangeError("salt should be Buffer with 8 byte length");for(var o=i/8,a=r.alloc(o),h=r.alloc(s||0),d=r.alloc(0);o>0||s>0;){var u=new n;u.update(d),u.update(t),e&&u.update(e),d=u.digest();var f=0;if(o>0){var l=a.length-o;f=Math.min(o,d.length),d.copy(a,l,0,f),o-=f}if(f0){var c=h.length-s,p=Math.min(s,d.length-f);d.copy(h,c,f,f+p),s-=p}}return d.fill(0),{key:a,iv:h}}},"../../node_modules/hash-base/index.js":function(t,e,i){"use strict";var r=i("../../node_modules/safe-buffer/index.js").Buffer,n=i("../../node_modules/node-libs-browser/node_modules/stream-browserify/index.js").Transform;function s(t){n.call(this),this._block=r.allocUnsafe(t),this._blockSize=t,this._blockOffset=0,this._length=[0,0,0,0],this._finalized=!1}i("../../node_modules/inherits/inherits_browser.js")(s,n),s.prototype._transform=function(t,e,i){var r=null;try{this.update(t,e)}catch(t){r=t}i(r)},s.prototype._flush=function(t){var e=null;try{this.push(this.digest())}catch(t){e=t}t(e)},s.prototype.update=function(t,e){if(function(t,e){if(!r.isBuffer(t)&&"string"!=typeof t)throw new TypeError(e+" must be a string or a buffer")}(t,"Data"),this._finalized)throw new Error("Digest already called");r.isBuffer(t)||(t=r.from(t,e));for(var i=this._block,n=0;this._blockOffset+t.length-n>=this._blockSize;){for(var s=this._blockOffset;s0;++o)this._length[o]+=a,(a=this._length[o]/4294967296|0)>0&&(this._length[o]-=4294967296*a);return this},s.prototype._update=function(){throw new Error("_update is not implemented")},s.prototype.digest=function(t){if(this._finalized)throw new Error("Digest already called");this._finalized=!0;var e=this._digest();void 0!==t&&(e=e.toString(t)),this._block.fill(0),this._blockOffset=0;for(var i=0;i<4;++i)this._length[i]=0;return e},s.prototype._digest=function(){throw new Error("_digest is not implemented")},t.exports=s},"../../node_modules/hash.js/lib/hash.js":function(t,e,i){var r=e;r.utils=i("../../node_modules/hash.js/lib/hash/utils.js"),r.common=i("../../node_modules/hash.js/lib/hash/common.js"),r.sha=i("../../node_modules/hash.js/lib/hash/sha.js"),r.ripemd=i("../../node_modules/hash.js/lib/hash/ripemd.js"),r.hmac=i("../../node_modules/hash.js/lib/hash/hmac.js"),r.sha1=r.sha.sha1,r.sha256=r.sha.sha256,r.sha224=r.sha.sha224,r.sha384=r.sha.sha384,r.sha512=r.sha.sha512,r.ripemd160=r.ripemd.ripemd160},"../../node_modules/hash.js/lib/hash/common.js":function(t,e,i){"use strict";var r=i("../../node_modules/hash.js/lib/hash/utils.js"),n=i("../../node_modules/minimalistic-assert/index.js");function s(){this.pending=null,this.pendingTotal=0,this.blockSize=this.constructor.blockSize,this.outSize=this.constructor.outSize,this.hmacStrength=this.constructor.hmacStrength,this.padLength=this.constructor.padLength/8,this.endian="big",this._delta8=this.blockSize/8,this._delta32=this.blockSize/32}e.BlockHash=s,s.prototype.update=function(t,e){if(t=r.toArray(t,e),this.pending?this.pending=this.pending.concat(t):this.pending=t,this.pendingTotal+=t.length,this.pending.length>=this._delta8){var i=(t=this.pending).length%this._delta8;this.pending=t.slice(t.length-i,t.length),0===this.pending.length&&(this.pending=null),t=r.join32(t,0,t.length-i,this.endian);for(var n=0;n>>24&255,r[n++]=t>>>16&255,r[n++]=t>>>8&255,r[n++]=255&t}else for(r[n++]=255&t,r[n++]=t>>>8&255,r[n++]=t>>>16&255,r[n++]=t>>>24&255,r[n++]=0,r[n++]=0,r[n++]=0,r[n++]=0,s=8;sthis.blockSize&&(t=(new this.Hash).update(t).digest()),n(t.length<=this.blockSize);for(var e=t.length;e>>3},e.g1_256=function(t){return r(t,17)^r(t,19)^t>>>10}},"../../node_modules/hash.js/lib/hash/utils.js":function(t,e,i){"use strict";var r=i("../../node_modules/minimalistic-assert/index.js"),n=i("../../node_modules/inherits/inherits_browser.js");function s(t,e){return 55296==(64512&t.charCodeAt(e))&&(!(e<0||e+1>=t.length)&&56320==(64512&t.charCodeAt(e+1)))}function o(t){return(t>>>24|t>>>8&65280|t<<8&16711680|(255&t)<<24)>>>0}function a(t){return 1===t.length?"0"+t:t}function h(t){return 7===t.length?"0"+t:6===t.length?"00"+t:5===t.length?"000"+t:4===t.length?"0000"+t:3===t.length?"00000"+t:2===t.length?"000000"+t:1===t.length?"0000000"+t:t}e.inherits=n,e.toArray=function(t,e){if(Array.isArray(t))return t.slice();if(!t)return[];var i=[];if("string"==typeof t)if(e){if("hex"===e)for((t=t.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(t="0"+t),n=0;n>6|192,i[r++]=63&o|128):s(t,n)?(o=65536+((1023&o)<<10)+(1023&t.charCodeAt(++n)),i[r++]=o>>18|240,i[r++]=o>>12&63|128,i[r++]=o>>6&63|128,i[r++]=63&o|128):(i[r++]=o>>12|224,i[r++]=o>>6&63|128,i[r++]=63&o|128)}else for(n=0;n>>0}return o},e.split32=function(t,e){for(var i=new Array(4*t.length),r=0,n=0;r>>24,i[n+1]=s>>>16&255,i[n+2]=s>>>8&255,i[n+3]=255&s):(i[n+3]=s>>>24,i[n+2]=s>>>16&255,i[n+1]=s>>>8&255,i[n]=255&s)}return i},e.rotr32=function(t,e){return t>>>e|t<<32-e},e.rotl32=function(t,e){return t<>>32-e},e.sum32=function(t,e){return t+e>>>0},e.sum32_3=function(t,e,i){return t+e+i>>>0},e.sum32_4=function(t,e,i,r){return t+e+i+r>>>0},e.sum32_5=function(t,e,i,r,n){return t+e+i+r+n>>>0},e.sum64=function(t,e,i,r){var n=t[e],s=r+t[e+1]>>>0,o=(s>>0,t[e+1]=s},e.sum64_hi=function(t,e,i,r){return(e+r>>>0>>0},e.sum64_lo=function(t,e,i,r){return e+r>>>0},e.sum64_4_hi=function(t,e,i,r,n,s,o,a){var h=0,d=e;return h+=(d=d+r>>>0)>>0)>>0)>>0},e.sum64_4_lo=function(t,e,i,r,n,s,o,a){return e+r+s+a>>>0},e.sum64_5_hi=function(t,e,i,r,n,s,o,a,h,d){var u=0,f=e;return u+=(f=f+r>>>0)>>0)>>0)>>0)>>0},e.sum64_5_lo=function(t,e,i,r,n,s,o,a,h,d){return e+r+s+a+d>>>0},e.rotr64_hi=function(t,e,i){return(e<<32-i|t>>>i)>>>0},e.rotr64_lo=function(t,e,i){return(t<<32-i|e>>>i)>>>0},e.shr64_hi=function(t,e,i){return t>>>i},e.shr64_lo=function(t,e,i){return(t<<32-i|e>>>i)>>>0}},"../../node_modules/hmac-drbg/lib/hmac-drbg.js":function(t,e,i){"use strict";var r=i("../../node_modules/hash.js/lib/hash.js"),n=i("../../node_modules/minimalistic-crypto-utils/lib/utils.js"),s=i("../../node_modules/minimalistic-assert/index.js");function o(t){if(!(this instanceof o))return new o(t);this.hash=t.hash,this.predResist=!!t.predResist,this.outLen=this.hash.outSize,this.minEntropy=t.minEntropy||this.hash.hmacStrength,this._reseed=null,this.reseedInterval=null,this.K=null,this.V=null;var e=n.toArray(t.entropy,t.entropyEnc||"hex"),i=n.toArray(t.nonce,t.nonceEnc||"hex"),r=n.toArray(t.pers,t.persEnc||"hex");s(e.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(e,i,r)}t.exports=o,o.prototype._init=function(t,e,i){var r=t.concat(e).concat(i);this.K=new Array(this.outLen/8),this.V=new Array(this.outLen/8);for(var n=0;n=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(t.concat(i||[])),this._reseed=1},o.prototype.generate=function(t,e,i,r){if(this._reseed>this.reseedInterval)throw new Error("Reseed is required");"string"!=typeof e&&(r=i,i=e,e=null),i&&(i=n.toArray(i,r||"hex"),this._update(i));for(var s=[];s.length=10.12.0"),a=t=>{if("win32"===e.platform){if(/[<>:"|?*]/.test(t.replace(n.parse(t).root,""))){const e=new Error("Path contains invalid characters: "+t);throw e.code="EINVAL",e}}},h=t=>({...{mode:511,fs:r},...t}),d=t=>{const e=new Error(`operation not permitted, mkdir '${t}'`);return e.code="EPERM",e.errno=-4048,e.path=t,e.syscall="mkdir",e};t.exports=async(t,e)=>{a(t),e=h(e);const i=s(e.fs.mkdir),u=s(e.fs.stat);if(o&&e.fs.mkdir===r.mkdir){const r=n.resolve(t);return await i(r,{mode:e.mode,recursive:!0}),r}const f=async t=>{try{return await i(t,e.mode),t}catch(e){if("EPERM"===e.code)throw e;if("ENOENT"===e.code){if(n.dirname(t)===t)throw d(t);if(e.message.includes("null bytes"))throw e;return await f(n.dirname(t)),f(t)}try{if(!(await u(t)).isDirectory())throw new Error("The path is not a directory")}catch(t){throw e}return t}};return f(n.resolve(t))},t.exports.sync=(t,e)=>{if(a(t),e=h(e),o&&e.fs.mkdirSync===r.mkdirSync){const i=n.resolve(t);return r.mkdirSync(i,{mode:e.mode,recursive:!0}),i}const i=t=>{try{e.fs.mkdirSync(t,e.mode)}catch(r){if("EPERM"===r.code)throw r;if("ENOENT"===r.code){if(n.dirname(t)===t)throw d(t);if(r.message.includes("null bytes"))throw r;return i(n.dirname(t)),i(t)}try{if(!e.fs.statSync(t).isDirectory())throw new Error("The path is not a directory")}catch(t){throw r}}return t};return i(n.resolve(t))}}).call(this,i("../../node_modules/process/browser.js"))},"../../node_modules/make-dir/node_modules/semver/semver.js":function(t,e,i){(function(i){var r;e=t.exports=m,r="object"==typeof i&&i.env&&i.env.NODE_DEBUG&&/\bsemver\b/i.test(i.env.NODE_DEBUG)?function(){var t=Array.prototype.slice.call(arguments,0);t.unshift("SEMVER"),console.log.apply(console,t)}:function(){},e.SEMVER_SPEC_VERSION="2.0.0";var n=Number.MAX_SAFE_INTEGER||9007199254740991,s=e.re=[],o=e.safeRe=[],a=e.src=[],h=e.tokens={},d=0;function u(t){h[t]=d++}var f=[["\\s",1],["\\d",256],["[a-zA-Z0-9-]",250]];function l(t){for(var e=0;e256)return null;if(!(e.loose?o[h.LOOSE]:o[h.FULL]).test(t))return null;try{return new m(t,e)}catch(t){return null}}function m(t,e){if(e&&"object"==typeof e||(e={loose:!!e,includePrerelease:!1}),t instanceof m){if(t.loose===e.loose)return t;t=t.version}else if("string"!=typeof t)throw new TypeError("Invalid Version: "+t);if(t.length>256)throw new TypeError("version is longer than 256 characters");if(!(this instanceof m))return new m(t,e);r("SemVer",t,e),this.options=e,this.loose=!!e.loose;var i=t.trim().match(e.loose?o[h.LOOSE]:o[h.FULL]);if(!i)throw new TypeError("Invalid Version: "+t);if(this.raw=t,this.major=+i[1],this.minor=+i[2],this.patch=+i[3],this.major>n||this.major<0)throw new TypeError("Invalid major version");if(this.minor>n||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>n||this.patch<0)throw new TypeError("Invalid patch version");i[4]?this.prerelease=i[4].split(".").map((function(t){if(/^[0-9]+$/.test(t)){var e=+t;if(e>=0&&e=0;)"number"==typeof this.prerelease[i]&&(this.prerelease[i]++,i=-2);-1===i&&this.prerelease.push(0)}e&&(this.prerelease[0]===e?isNaN(this.prerelease[1])&&(this.prerelease=[e,0]):this.prerelease=[e,0]);break;default:throw new Error("invalid increment argument: "+t)}return this.format(),this.raw=this.version,this},e.inc=function(t,e,i,r){"string"==typeof i&&(r=i,i=void 0);try{return new m(t,i).inc(e,r).version}catch(t){return null}},e.diff=function(t,e){if(w(t,e))return null;var i=p(t),r=p(e),n="";if(i.prerelease.length||r.prerelease.length){n="pre";var s="prerelease"}for(var o in i)if(("major"===o||"minor"===o||"patch"===o)&&i[o]!==r[o])return n+o;return s},e.compareIdentifiers=v;var b=/^[0-9]+$/;function v(t,e){var i=b.test(t),r=b.test(e);return i&&r&&(t=+t,e=+e),t===e?0:i&&!r?-1:r&&!i?1:t0}function _(t,e,i){return g(t,e,i)<0}function w(t,e,i){return 0===g(t,e,i)}function M(t,e,i){return 0!==g(t,e,i)}function x(t,e,i){return g(t,e,i)>=0}function j(t,e,i){return g(t,e,i)<=0}function E(t,e,i,r){switch(e){case"===":return"object"==typeof t&&(t=t.version),"object"==typeof i&&(i=i.version),t===i;case"!==":return"object"==typeof t&&(t=t.version),"object"==typeof i&&(i=i.version),t!==i;case"":case"=":case"==":return w(t,i,r);case"!=":return M(t,i,r);case">":return y(t,i,r);case">=":return x(t,i,r);case"<":return _(t,i,r);case"<=":return j(t,i,r);default:throw new TypeError("Invalid operator: "+e)}}function S(t,e){if(e&&"object"==typeof e||(e={loose:!!e,includePrerelease:!1}),t instanceof S){if(t.loose===!!e.loose)return t;t=t.value}if(!(this instanceof S))return new S(t,e);t=t.trim().split(/\s+/).join(" "),r("comparator",t,e),this.options=e,this.loose=!!e.loose,this.parse(t),this.semver===k?this.value="":this.value=this.operator+this.semver.version,r("comp",this)}e.rcompareIdentifiers=function(t,e){return v(e,t)},e.major=function(t,e){return new m(t,e).major},e.minor=function(t,e){return new m(t,e).minor},e.patch=function(t,e){return new m(t,e).patch},e.compare=g,e.compareLoose=function(t,e){return g(t,e,!0)},e.compareBuild=function(t,e,i){var r=new m(t,i),n=new m(e,i);return r.compare(n)||r.compareBuild(n)},e.rcompare=function(t,e,i){return g(e,t,i)},e.sort=function(t,i){return t.sort((function(t,r){return e.compareBuild(t,r,i)}))},e.rsort=function(t,i){return t.sort((function(t,r){return e.compareBuild(r,t,i)}))},e.gt=y,e.lt=_,e.eq=w,e.neq=M,e.gte=x,e.lte=j,e.cmp=E,e.Comparator=S;var k={};function A(t,e){if(e&&"object"==typeof e||(e={loose:!!e,includePrerelease:!1}),t instanceof A)return t.loose===!!e.loose&&t.includePrerelease===!!e.includePrerelease?t:new A(t.raw,e);if(t instanceof S)return new A(t.value,e);if(!(this instanceof A))return new A(t,e);if(this.options=e,this.loose=!!e.loose,this.includePrerelease=!!e.includePrerelease,this.raw=t.trim().split(/\s+/).join(" "),this.set=this.raw.split("||").map((function(t){return this.parseRange(t.trim())}),this).filter((function(t){return t.length})),!this.set.length)throw new TypeError("Invalid SemVer Range: "+this.raw);this.format()}function R(t,e){for(var i=!0,r=t.slice(),n=r.pop();i&&r.length;)i=r.every((function(t){return n.intersects(t,e)})),n=r.pop();return i}function I(t){return!t||"x"===t.toLowerCase()||"*"===t}function B(t,e,i,r,n,s,o,a,h,d,u,f,l){return((e=I(i)?"":I(r)?">="+i+".0.0":I(n)?">="+i+"."+r+".0":">="+e)+" "+(a=I(h)?"":I(d)?"<"+(+h+1)+".0.0":I(u)?"<"+h+"."+(+d+1)+".0":f?"<="+h+"."+d+"."+u+"-"+f:"<="+a)).trim()}function C(t,e,i){for(var n=0;n0){var s=t[n].semver;if(s.major===e.major&&s.minor===e.minor&&s.patch===e.patch)return!0}return!1}return!0}function O(t,e,i){try{e=new A(e,i)}catch(t){return!1}return e.test(t)}function T(t,e,i,r){var n,s,o,a,h;switch(t=new m(t,r),e=new A(e,r),i){case">":n=y,s=j,o=_,a=">",h=">=";break;case"<":n=_,s=x,o=y,a="<",h="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(O(t,e,r))return!1;for(var d=0;d=0.0.0")),f=f||t,l=l||t,n(t.semver,f.semver,r)?f=t:o(t.semver,l.semver,r)&&(l=t)})),f.operator===a||f.operator===h)return!1;if((!l.operator||l.operator===a)&&s(t,l.semver))return!1;if(l.operator===h&&o(t,l.semver))return!1}return!0}S.prototype.parse=function(t){var e=this.options.loose?o[h.COMPARATORLOOSE]:o[h.COMPARATOR],i=t.match(e);if(!i)throw new TypeError("Invalid comparator: "+t);this.operator=void 0!==i[1]?i[1]:"","="===this.operator&&(this.operator=""),i[2]?this.semver=new m(i[2],this.options.loose):this.semver=k},S.prototype.toString=function(){return this.value},S.prototype.test=function(t){if(r("Comparator.test",t,this.options.loose),this.semver===k||t===k)return!0;if("string"==typeof t)try{t=new m(t,this.options)}catch(t){return!1}return E(t,this.operator,this.semver,this.options)},S.prototype.intersects=function(t,e){if(!(t instanceof S))throw new TypeError("a Comparator is required");var i;if(e&&"object"==typeof e||(e={loose:!!e,includePrerelease:!1}),""===this.operator)return""===this.value||(i=new A(t.value,e),O(this.value,i,e));if(""===t.operator)return""===t.value||(i=new A(this.value,e),O(t.semver,i,e));var r=!(">="!==this.operator&&">"!==this.operator||">="!==t.operator&&">"!==t.operator),n=!("<="!==this.operator&&"<"!==this.operator||"<="!==t.operator&&"<"!==t.operator),s=this.semver.version===t.semver.version,o=!(">="!==this.operator&&"<="!==this.operator||">="!==t.operator&&"<="!==t.operator),a=E(this.semver,"<",t.semver,e)&&(">="===this.operator||">"===this.operator)&&("<="===t.operator||"<"===t.operator),h=E(this.semver,">",t.semver,e)&&("<="===this.operator||"<"===this.operator)&&(">="===t.operator||">"===t.operator);return r||n||s&&o||a||h},e.Range=A,A.prototype.format=function(){return this.range=this.set.map((function(t){return t.join(" ").trim()})).join("||").trim(),this.range},A.prototype.toString=function(){return this.range},A.prototype.parseRange=function(t){var e=this.options.loose,i=e?o[h.HYPHENRANGELOOSE]:o[h.HYPHENRANGE];t=t.replace(i,B),r("hyphen replace",t),t=t.replace(o[h.COMPARATORTRIM],"$1$2$3"),r("comparator trim",t,o[h.COMPARATORTRIM]),t=(t=(t=t.replace(o[h.TILDETRIM],"$1~")).replace(o[h.CARETTRIM],"$1^")).split(/\s+/).join(" ");var n=e?o[h.COMPARATORLOOSE]:o[h.COMPARATOR],s=t.split(" ").map((function(t){return function(t,e){return r("comp",t,e),t=function(t,e){return t.trim().split(/\s+/).map((function(t){return function(t,e){r("caret",t,e);var i=e.loose?o[h.CARETLOOSE]:o[h.CARET];return t.replace(i,(function(e,i,n,s,o){var a;return r("caret",t,e,i,n,s,o),I(i)?a="":I(n)?a=">="+i+".0.0 <"+(+i+1)+".0.0":I(s)?a="0"===i?">="+i+"."+n+".0 <"+i+"."+(+n+1)+".0":">="+i+"."+n+".0 <"+(+i+1)+".0.0":o?(r("replaceCaret pr",o),a="0"===i?"0"===n?">="+i+"."+n+"."+s+"-"+o+" <"+i+"."+n+"."+(+s+1):">="+i+"."+n+"."+s+"-"+o+" <"+i+"."+(+n+1)+".0":">="+i+"."+n+"."+s+"-"+o+" <"+(+i+1)+".0.0"):(r("no pr"),a="0"===i?"0"===n?">="+i+"."+n+"."+s+" <"+i+"."+n+"."+(+s+1):">="+i+"."+n+"."+s+" <"+i+"."+(+n+1)+".0":">="+i+"."+n+"."+s+" <"+(+i+1)+".0.0"),r("caret return",a),a}))}(t,e)})).join(" ")}(t,e),r("caret",t),t=function(t,e){return t.trim().split(/\s+/).map((function(t){return function(t,e){var i=e.loose?o[h.TILDELOOSE]:o[h.TILDE];return t.replace(i,(function(e,i,n,s,o){var a;return r("tilde",t,e,i,n,s,o),I(i)?a="":I(n)?a=">="+i+".0.0 <"+(+i+1)+".0.0":I(s)?a=">="+i+"."+n+".0 <"+i+"."+(+n+1)+".0":o?(r("replaceTilde pr",o),a=">="+i+"."+n+"."+s+"-"+o+" <"+i+"."+(+n+1)+".0"):a=">="+i+"."+n+"."+s+" <"+i+"."+(+n+1)+".0",r("tilde return",a),a}))}(t,e)})).join(" ")}(t,e),r("tildes",t),t=function(t,e){return r("replaceXRanges",t,e),t.split(/\s+/).map((function(t){return function(t,e){t=t.trim();var i=e.loose?o[h.XRANGELOOSE]:o[h.XRANGE];return t.replace(i,(function(i,n,s,o,a,h){r("xRange",t,i,n,s,o,a,h);var d=I(s),u=d||I(o),f=u||I(a),l=f;return"="===n&&l&&(n=""),h=e.includePrerelease?"-0":"",d?i=">"===n||"<"===n?"<0.0.0-0":"*":n&&l?(u&&(o=0),a=0,">"===n?(n=">=",u?(s=+s+1,o=0,a=0):(o=+o+1,a=0)):"<="===n&&(n="<",u?s=+s+1:o=+o+1),i=n+s+"."+o+"."+a+h):u?i=">="+s+".0.0"+h+" <"+(+s+1)+".0.0"+h:f&&(i=">="+s+"."+o+".0"+h+" <"+s+"."+(+o+1)+".0"+h),r("xRange return",i),i}))}(t,e)})).join(" ")}(t,e),r("xrange",t),t=function(t,e){return r("replaceStars",t,e),t.trim().replace(o[h.STAR],"")}(t,e),r("stars",t),t}(t,this.options)}),this).join(" ").split(/\s+/);return this.options.loose&&(s=s.filter((function(t){return!!t.match(n)}))),s=s.map((function(t){return new S(t,this.options)}),this)},A.prototype.intersects=function(t,e){if(!(t instanceof A))throw new TypeError("a Range is required");return this.set.some((function(i){return R(i,e)&&t.set.some((function(t){return R(t,e)&&i.every((function(i){return t.every((function(t){return i.intersects(t,e)}))}))}))}))},e.toComparators=function(t,e){return new A(t,e).set.map((function(t){return t.map((function(t){return t.value})).join(" ").trim().split(" ")}))},A.prototype.test=function(t){if(!t)return!1;if("string"==typeof t)try{t=new m(t,this.options)}catch(t){return!1}for(var e=0;e":0===e.prerelease.length?e.patch++:e.prerelease.push(0),e.raw=e.format();case"":case">=":i&&!y(i,e)||(i=e);break;case"<":case"<=":break;default:throw new Error("Unexpected operation: "+t.operator)}}))}if(i&&t.test(i))return i;return null},e.validRange=function(t,e){try{return new A(t,e).range||"*"}catch(t){return null}},e.ltr=function(t,e,i){return T(t,e,"<",i)},e.gtr=function(t,e,i){return T(t,e,">",i)},e.outside=T,e.prerelease=function(t,e){var i=p(t,e);return i&&i.prerelease.length?i.prerelease:null},e.intersects=function(t,e,i){return t=new A(t,i),e=new A(e,i),t.intersects(e)},e.coerce=function(t,e){if(t instanceof m)return t;"number"==typeof t&&(t=String(t));if("string"!=typeof t)return null;var i=null;if((e=e||{}).rtl){for(var r;(r=o[h.COERCERTL].exec(t))&&(!i||i.index+i[0].length!==t.length);)i&&r.index+r[0].length===i.index+i[0].length||(i=r),o[h.COERCERTL].lastIndex=r.index+r[1].length+r[2].length;o[h.COERCERTL].lastIndex=-1}else i=t.match(o[h.COERCE]);if(null===i)return null;return p(i[2]+"."+(i[3]||"0")+"."+(i[4]||"0"),e)}}).call(this,i("../../node_modules/process/browser.js"))},"../../node_modules/md5.js/index.js":function(t,e,i){"use strict";var r=i("../../node_modules/inherits/inherits_browser.js"),n=i("../../node_modules/hash-base/index.js"),s=i("../../node_modules/safe-buffer/index.js").Buffer,o=new Array(16);function a(){n.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878}function h(t,e){return t<>>32-e}function d(t,e,i,r,n,s,o){return h(t+(e&i|~e&r)+n+s|0,o)+e|0}function u(t,e,i,r,n,s,o){return h(t+(e&r|i&~r)+n+s|0,o)+e|0}function f(t,e,i,r,n,s,o){return h(t+(e^i^r)+n+s|0,o)+e|0}function l(t,e,i,r,n,s,o){return h(t+(i^(e|~r))+n+s|0,o)+e|0}r(a,n),a.prototype._update=function(){for(var t=o,e=0;e<16;++e)t[e]=this._block.readInt32LE(4*e);var i=this._a,r=this._b,n=this._c,s=this._d;i=d(i,r,n,s,t[0],3614090360,7),s=d(s,i,r,n,t[1],3905402710,12),n=d(n,s,i,r,t[2],606105819,17),r=d(r,n,s,i,t[3],3250441966,22),i=d(i,r,n,s,t[4],4118548399,7),s=d(s,i,r,n,t[5],1200080426,12),n=d(n,s,i,r,t[6],2821735955,17),r=d(r,n,s,i,t[7],4249261313,22),i=d(i,r,n,s,t[8],1770035416,7),s=d(s,i,r,n,t[9],2336552879,12),n=d(n,s,i,r,t[10],4294925233,17),r=d(r,n,s,i,t[11],2304563134,22),i=d(i,r,n,s,t[12],1804603682,7),s=d(s,i,r,n,t[13],4254626195,12),n=d(n,s,i,r,t[14],2792965006,17),i=u(i,r=d(r,n,s,i,t[15],1236535329,22),n,s,t[1],4129170786,5),s=u(s,i,r,n,t[6],3225465664,9),n=u(n,s,i,r,t[11],643717713,14),r=u(r,n,s,i,t[0],3921069994,20),i=u(i,r,n,s,t[5],3593408605,5),s=u(s,i,r,n,t[10],38016083,9),n=u(n,s,i,r,t[15],3634488961,14),r=u(r,n,s,i,t[4],3889429448,20),i=u(i,r,n,s,t[9],568446438,5),s=u(s,i,r,n,t[14],3275163606,9),n=u(n,s,i,r,t[3],4107603335,14),r=u(r,n,s,i,t[8],1163531501,20),i=u(i,r,n,s,t[13],2850285829,5),s=u(s,i,r,n,t[2],4243563512,9),n=u(n,s,i,r,t[7],1735328473,14),i=f(i,r=u(r,n,s,i,t[12],2368359562,20),n,s,t[5],4294588738,4),s=f(s,i,r,n,t[8],2272392833,11),n=f(n,s,i,r,t[11],1839030562,16),r=f(r,n,s,i,t[14],4259657740,23),i=f(i,r,n,s,t[1],2763975236,4),s=f(s,i,r,n,t[4],1272893353,11),n=f(n,s,i,r,t[7],4139469664,16),r=f(r,n,s,i,t[10],3200236656,23),i=f(i,r,n,s,t[13],681279174,4),s=f(s,i,r,n,t[0],3936430074,11),n=f(n,s,i,r,t[3],3572445317,16),r=f(r,n,s,i,t[6],76029189,23),i=f(i,r,n,s,t[9],3654602809,4),s=f(s,i,r,n,t[12],3873151461,11),n=f(n,s,i,r,t[15],530742520,16),i=l(i,r=f(r,n,s,i,t[2],3299628645,23),n,s,t[0],4096336452,6),s=l(s,i,r,n,t[7],1126891415,10),n=l(n,s,i,r,t[14],2878612391,15),r=l(r,n,s,i,t[5],4237533241,21),i=l(i,r,n,s,t[12],1700485571,6),s=l(s,i,r,n,t[3],2399980690,10),n=l(n,s,i,r,t[10],4293915773,15),r=l(r,n,s,i,t[1],2240044497,21),i=l(i,r,n,s,t[8],1873313359,6),s=l(s,i,r,n,t[15],4264355552,10),n=l(n,s,i,r,t[6],2734768916,15),r=l(r,n,s,i,t[13],1309151649,21),i=l(i,r,n,s,t[4],4149444226,6),s=l(s,i,r,n,t[11],3174756917,10),n=l(n,s,i,r,t[2],718787259,15),r=l(r,n,s,i,t[9],3951481745,21),this._a=this._a+i|0,this._b=this._b+r|0,this._c=this._c+n|0,this._d=this._d+s|0},a.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var t=s.allocUnsafe(16);return t.writeInt32LE(this._a,0),t.writeInt32LE(this._b,4),t.writeInt32LE(this._c,8),t.writeInt32LE(this._d,12),t},t.exports=a},"../../node_modules/miller-rabin/lib/mr.js":function(t,e,i){var r=i("../../node_modules/bn.js/lib/bn.js"),n=i("../../node_modules/brorand/index.js");function s(t){this.rand=t||new n.Rand}t.exports=s,s.create=function(t){return new s(t)},s.prototype._randbelow=function(t){var e=t.bitLength(),i=Math.ceil(e/8);do{var n=new r(this.rand.generate(i))}while(n.cmp(t)>=0);return n},s.prototype._randrange=function(t,e){var i=e.sub(t);return t.add(this._randbelow(i))},s.prototype.test=function(t,e,i){var n=t.bitLength(),s=r.mont(t),o=new r(1).toRed(s);e||(e=Math.max(1,n/48|0));for(var a=t.subn(1),h=0;!a.testn(h);h++);for(var d=t.shrn(h),u=a.toRed(s);e>0;e--){var f=this._randrange(new r(2),a);i&&i(f);var l=f.toRed(s).redPow(d);if(0!==l.cmp(o)&&0!==l.cmp(u)){for(var c=1;c0;e--){var u=this._randrange(new r(2),o),f=t.gcd(u);if(0!==f.cmpn(1))return f;var l=u.toRed(n).redPow(h);if(0!==l.cmp(s)&&0!==l.cmp(d)){for(var c=1;c>8,o=255&n;s?i.push(s,o):i.push(o)}return i},r.zero2=n,r.toHex=s,r.encode=function(t,e){return"hex"===e?s(t):t}},"../../node_modules/node-libs-browser/node_modules/punycode/punycode.js":function(t,e,i){(function(t,r){var n;!function(s){e&&e.nodeType,t&&t.nodeType;var o="object"==typeof r&&r;o.global!==o&&o.window!==o&&o.self;var a,h=2147483647,d=/^xn--/,u=/[^\x20-\x7E]/,f=/[\x2E\u3002\uFF0E\uFF61]/g,l={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},c=Math.floor,p=String.fromCharCode;function m(t){throw new RangeError(l[t])}function b(t,e){for(var i=t.length,r=[];i--;)r[i]=e(t[i]);return r}function v(t,e){var i=t.split("@"),r="";return i.length>1&&(r=i[0]+"@",t=i[1]),r+b((t=t.replace(f,".")).split("."),e).join(".")}function g(t){for(var e,i,r=[],n=0,s=t.length;n=55296&&e<=56319&&n65535&&(e+=p((t-=65536)>>>10&1023|55296),t=56320|1023&t),e+=p(t)})).join("")}function _(t,e){return t+22+75*(t<26)-((0!=e)<<5)}function w(t,e,i){var r=0;for(t=i?c(t/700):t>>1,t+=c(t/e);t>455;r+=36)t=c(t/35);return c(r+36*t/(t+38))}function M(t){var e,i,r,n,s,o,a,d,u,f,l,p=[],b=t.length,v=0,g=128,_=72;for((i=t.lastIndexOf("-"))<0&&(i=0),r=0;r=128&&m("not-basic"),p.push(t.charCodeAt(r));for(n=i>0?i+1:0;n=b&&m("invalid-input"),((d=(l=t.charCodeAt(n++))-48<10?l-22:l-65<26?l-65:l-97<26?l-97:36)>=36||d>c((h-v)/o))&&m("overflow"),v+=d*o,!(d<(u=a<=_?1:a>=_+26?26:a-_));a+=36)o>c(h/(f=36-u))&&m("overflow"),o*=f;_=w(v-s,e=p.length+1,0==s),c(v/e)>h-g&&m("overflow"),g+=c(v/e),v%=e,p.splice(v++,0,g)}return y(p)}function x(t){var e,i,r,n,s,o,a,d,u,f,l,b,v,y,M,x=[];for(b=(t=g(t)).length,e=128,i=0,s=72,o=0;o=e&&lc((h-i)/(v=r+1))&&m("overflow"),i+=(a-e)*v,e=a,o=0;oh&&m("overflow"),l==e){for(d=i,u=36;!(d<(f=u<=s?1:u>=s+26?26:u-s));u+=36)M=d-f,y=36-f,x.push(p(_(f+M%y,0))),d=c(M/y);x.push(p(_(d,0))),s=w(i,v,r==n),i=0,++r}++i,++e}return x.join("")}a={version:"1.4.1",ucs2:{decode:g,encode:y},decode:M,encode:x,toASCII:function(t){return v(t,(function(t){return u.test(t)?"xn--"+x(t):t}))},toUnicode:function(t){return v(t,(function(t){return d.test(t)?M(t.slice(4).toLowerCase()):t}))}},void 0===(n=function(){return a}.call(e,i,e,t))||(t.exports=n)}()}).call(this,i("../../node_modules/webpack/buildin/module.js")(t),i("../../node_modules/webpack/buildin/global.js"))},"../../node_modules/parse-asn1/aesid.json":function(t){t.exports=JSON.parse('{"2.16.840.1.101.3.4.1.1":"aes-128-ecb","2.16.840.1.101.3.4.1.2":"aes-128-cbc","2.16.840.1.101.3.4.1.3":"aes-128-ofb","2.16.840.1.101.3.4.1.4":"aes-128-cfb","2.16.840.1.101.3.4.1.21":"aes-192-ecb","2.16.840.1.101.3.4.1.22":"aes-192-cbc","2.16.840.1.101.3.4.1.23":"aes-192-ofb","2.16.840.1.101.3.4.1.24":"aes-192-cfb","2.16.840.1.101.3.4.1.41":"aes-256-ecb","2.16.840.1.101.3.4.1.42":"aes-256-cbc","2.16.840.1.101.3.4.1.43":"aes-256-ofb","2.16.840.1.101.3.4.1.44":"aes-256-cfb"}')},"../../node_modules/parse-asn1/asn1.js":function(t,e,i){"use strict";var r=i("../../node_modules/asn1.js/lib/asn1.js");e.certificate=i("../../node_modules/parse-asn1/certificate.js");var n=r.define("RSAPrivateKey",(function(){this.seq().obj(this.key("version").int(),this.key("modulus").int(),this.key("publicExponent").int(),this.key("privateExponent").int(),this.key("prime1").int(),this.key("prime2").int(),this.key("exponent1").int(),this.key("exponent2").int(),this.key("coefficient").int())}));e.RSAPrivateKey=n;var s=r.define("RSAPublicKey",(function(){this.seq().obj(this.key("modulus").int(),this.key("publicExponent").int())}));e.RSAPublicKey=s;var o=r.define("SubjectPublicKeyInfo",(function(){this.seq().obj(this.key("algorithm").use(a),this.key("subjectPublicKey").bitstr())}));e.PublicKey=o;var a=r.define("AlgorithmIdentifier",(function(){this.seq().obj(this.key("algorithm").objid(),this.key("none").null_().optional(),this.key("curve").objid().optional(),this.key("params").seq().obj(this.key("p").int(),this.key("q").int(),this.key("g").int()).optional())})),h=r.define("PrivateKeyInfo",(function(){this.seq().obj(this.key("version").int(),this.key("algorithm").use(a),this.key("subjectPrivateKey").octstr())}));e.PrivateKey=h;var d=r.define("EncryptedPrivateKeyInfo",(function(){this.seq().obj(this.key("algorithm").seq().obj(this.key("id").objid(),this.key("decrypt").seq().obj(this.key("kde").seq().obj(this.key("id").objid(),this.key("kdeparams").seq().obj(this.key("salt").octstr(),this.key("iters").int())),this.key("cipher").seq().obj(this.key("algo").objid(),this.key("iv").octstr()))),this.key("subjectPrivateKey").octstr())}));e.EncryptedPrivateKey=d;var u=r.define("DSAPrivateKey",(function(){this.seq().obj(this.key("version").int(),this.key("p").int(),this.key("q").int(),this.key("g").int(),this.key("pub_key").int(),this.key("priv_key").int())}));e.DSAPrivateKey=u,e.DSAparam=r.define("DSAparam",(function(){this.int()}));var f=r.define("ECPrivateKey",(function(){this.seq().obj(this.key("version").int(),this.key("privateKey").octstr(),this.key("parameters").optional().explicit(0).use(l),this.key("publicKey").optional().explicit(1).bitstr())}));e.ECPrivateKey=f;var l=r.define("ECParameters",(function(){this.choice({namedCurve:this.objid()})}));e.signature=r.define("signature",(function(){this.seq().obj(this.key("r").int(),this.key("s").int())}))},"../../node_modules/parse-asn1/certificate.js":function(t,e,i){"use strict";var r=i("../../node_modules/asn1.js/lib/asn1.js"),n=r.define("Time",(function(){this.choice({utcTime:this.utctime(),generalTime:this.gentime()})})),s=r.define("AttributeTypeValue",(function(){this.seq().obj(this.key("type").objid(),this.key("value").any())})),o=r.define("AlgorithmIdentifier",(function(){this.seq().obj(this.key("algorithm").objid(),this.key("parameters").optional(),this.key("curve").objid().optional())})),a=r.define("SubjectPublicKeyInfo",(function(){this.seq().obj(this.key("algorithm").use(o),this.key("subjectPublicKey").bitstr())})),h=r.define("RelativeDistinguishedName",(function(){this.setof(s)})),d=r.define("RDNSequence",(function(){this.seqof(h)})),u=r.define("Name",(function(){this.choice({rdnSequence:this.use(d)})})),f=r.define("Validity",(function(){this.seq().obj(this.key("notBefore").use(n),this.key("notAfter").use(n))})),l=r.define("Extension",(function(){this.seq().obj(this.key("extnID").objid(),this.key("critical").bool().def(!1),this.key("extnValue").octstr())})),c=r.define("TBSCertificate",(function(){this.seq().obj(this.key("version").explicit(0).int().optional(),this.key("serialNumber").int(),this.key("signature").use(o),this.key("issuer").use(u),this.key("validity").use(f),this.key("subject").use(u),this.key("subjectPublicKeyInfo").use(a),this.key("issuerUniqueID").implicit(1).bitstr().optional(),this.key("subjectUniqueID").implicit(2).bitstr().optional(),this.key("extensions").explicit(3).seqof(l).optional())})),p=r.define("X509Certificate",(function(){this.seq().obj(this.key("tbsCertificate").use(c),this.key("signatureAlgorithm").use(o),this.key("signatureValue").bitstr())}));t.exports=p},"../../node_modules/parse-asn1/fixProc.js":function(t,e,i){var r=/Proc-Type: 4,ENCRYPTED[\n\r]+DEK-Info: AES-((?:128)|(?:192)|(?:256))-CBC,([0-9A-H]+)[\n\r]+([0-9A-z\n\r\+\/\=]+)[\n\r]+/m,n=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----/m,s=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----([0-9A-z\n\r\+\/\=]+)-----END \1-----$/m,o=i("../../node_modules/evp_bytestokey/index.js"),a=i("../../node_modules/browserify-aes/browser.js"),h=i("../../node_modules/safe-buffer/index.js").Buffer;t.exports=function(t,e){var i,d=t.toString(),u=d.match(r);if(u){var f="aes"+u[1],l=h.from(u[2],"hex"),c=h.from(u[3].replace(/[\r\n]/g,""),"base64"),p=o(e,l.slice(0,8),parseInt(u[1],10)).key,m=[],b=a.createDecipheriv(f,p,l);m.push(b.update(c)),m.push(b.final()),i=h.concat(m)}else{var v=d.match(s);i=new h(v[2].replace(/[\r\n]/g,""),"base64")}return{tag:d.match(n)[1],data:i}}},"../../node_modules/parse-asn1/index.js":function(t,e,i){var r=i("../../node_modules/parse-asn1/asn1.js"),n=i("../../node_modules/parse-asn1/aesid.json"),s=i("../../node_modules/parse-asn1/fixProc.js"),o=i("../../node_modules/browserify-aes/browser.js"),a=i("../../node_modules/pbkdf2/browser.js"),h=i("../../node_modules/safe-buffer/index.js").Buffer;function d(t){var e;"object"!=typeof t||h.isBuffer(t)||(e=t.passphrase,t=t.key),"string"==typeof t&&(t=h.from(t));var i,d,u=s(t,e),f=u.tag,l=u.data;switch(f){case"CERTIFICATE":d=r.certificate.decode(l,"der").tbsCertificate.subjectPublicKeyInfo;case"PUBLIC KEY":switch(d||(d=r.PublicKey.decode(l,"der")),i=d.algorithm.algorithm.join(".")){case"1.2.840.113549.1.1.1":return r.RSAPublicKey.decode(d.subjectPublicKey.data,"der");case"1.2.840.10045.2.1":return d.subjectPrivateKey=d.subjectPublicKey,{type:"ec",data:d};case"1.2.840.10040.4.1":return d.algorithm.params.pub_key=r.DSAparam.decode(d.subjectPublicKey.data,"der"),{type:"dsa",data:d.algorithm.params};default:throw new Error("unknown key id "+i)}throw new Error("unknown key type "+f);case"ENCRYPTED PRIVATE KEY":l=function(t,e){var i=t.algorithm.decrypt.kde.kdeparams.salt,r=parseInt(t.algorithm.decrypt.kde.kdeparams.iters.toString(),10),s=n[t.algorithm.decrypt.cipher.algo.join(".")],d=t.algorithm.decrypt.cipher.iv,u=t.subjectPrivateKey,f=parseInt(s.split("-")[1],10)/8,l=a.pbkdf2Sync(e,i,r,f,"sha1"),c=o.createDecipheriv(s,l,d),p=[];return p.push(c.update(u)),p.push(c.final()),h.concat(p)}(l=r.EncryptedPrivateKey.decode(l,"der"),e);case"PRIVATE KEY":switch(i=(d=r.PrivateKey.decode(l,"der")).algorithm.algorithm.join(".")){case"1.2.840.113549.1.1.1":return r.RSAPrivateKey.decode(d.subjectPrivateKey,"der");case"1.2.840.10045.2.1":return{curve:d.algorithm.curve,privateKey:r.ECPrivateKey.decode(d.subjectPrivateKey,"der").privateKey};case"1.2.840.10040.4.1":return d.algorithm.params.priv_key=r.DSAparam.decode(d.subjectPrivateKey,"der"),{type:"dsa",params:d.algorithm.params};default:throw new Error("unknown key id "+i)}throw new Error("unknown key type "+f);case"RSA PUBLIC KEY":return r.RSAPublicKey.decode(l,"der");case"RSA PRIVATE KEY":return r.RSAPrivateKey.decode(l,"der");case"DSA PRIVATE KEY":return{type:"dsa",params:r.DSAPrivateKey.decode(l,"der")};case"EC PRIVATE KEY":return{curve:(l=r.ECPrivateKey.decode(l,"der")).parameters.value,privateKey:l.privateKey};default:throw new Error("unknown key type "+f)}}t.exports=d,d.signature=r.signature},"../../node_modules/pbkdf2/browser.js":function(t,e,i){e.pbkdf2=i("../../node_modules/pbkdf2/lib/async.js"),e.pbkdf2Sync=i("../../node_modules/pbkdf2/lib/sync-browser.js")},"../../node_modules/pbkdf2/lib/async.js":function(t,e,i){(function(e,r){var n,s=i("../../node_modules/pbkdf2/lib/precondition.js"),o=i("../../node_modules/pbkdf2/lib/default-encoding.js"),a=i("../../node_modules/pbkdf2/lib/sync-browser.js"),h=i("../../node_modules/safe-buffer/index.js").Buffer,d=e.crypto&&e.crypto.subtle,u={sha:"SHA-1","sha-1":"SHA-1",sha1:"SHA-1",sha256:"SHA-256","sha-256":"SHA-256",sha384:"SHA-384","sha-384":"SHA-384","sha-512":"SHA-512",sha512:"SHA-512"},f=[];function l(t,e,i,r,n){return d.importKey("raw",t,{name:"PBKDF2"},!1,["deriveBits"]).then((function(t){return d.deriveBits({name:"PBKDF2",salt:e,iterations:i,hash:{name:n}},t,r<<3)})).then((function(t){return h.from(t)}))}t.exports=function(t,i,c,p,m,b){"function"==typeof m&&(b=m,m=void 0);var v=u[(m=m||"sha1").toLowerCase()];if(!v||"function"!=typeof e.Promise)return r.nextTick((function(){var e;try{e=a(t,i,c,p,m)}catch(t){return b(t)}b(null,e)}));if(s(t,i,c,p),"function"!=typeof b)throw new Error("No callback provided to pbkdf2");h.isBuffer(t)||(t=h.from(t,o)),h.isBuffer(i)||(i=h.from(i,o)),function(t,e){t.then((function(t){r.nextTick((function(){e(null,t)}))}),(function(t){r.nextTick((function(){e(t)}))}))}(function(t){if(e.process&&!e.process.browser)return Promise.resolve(!1);if(!d||!d.importKey||!d.deriveBits)return Promise.resolve(!1);if(void 0!==f[t])return f[t];var i=l(n=n||h.alloc(8),n,10,128,t).then((function(){return!0})).catch((function(){return!1}));return f[t]=i,i}(v).then((function(e){return e?l(t,i,c,p,v):a(t,i,c,p,m)})),b)}}).call(this,i("../../node_modules/webpack/buildin/global.js"),i("../../node_modules/process/browser.js"))},"../../node_modules/pbkdf2/lib/default-encoding.js":function(t,e,i){(function(e){var i;e.browser?i="utf-8":i=parseInt(e.version.split(".")[0].slice(1),10)>=6?"utf-8":"binary";t.exports=i}).call(this,i("../../node_modules/process/browser.js"))},"../../node_modules/pbkdf2/lib/precondition.js":function(t,e,i){(function(e){var i=Math.pow(2,30)-1;function r(t,i){if("string"!=typeof t&&!e.isBuffer(t))throw new TypeError(i+" must be a buffer or string")}t.exports=function(t,e,n,s){if(r(t,"Password"),r(e,"Salt"),"number"!=typeof n)throw new TypeError("Iterations not a number");if(n<0)throw new TypeError("Bad iterations");if("number"!=typeof s)throw new TypeError("Key length not a number");if(s<0||s>i||s!=s)throw new TypeError("Bad key length")}}).call(this,i("../../node_modules/buffer/index.js").Buffer)},"../../node_modules/pbkdf2/lib/sync-browser.js":function(t,e,i){var r=i("../../node_modules/create-hash/md5.js"),n=i("../../node_modules/ripemd160/index.js"),s=i("../../node_modules/sha.js/index.js"),o=i("../../node_modules/pbkdf2/lib/precondition.js"),a=i("../../node_modules/pbkdf2/lib/default-encoding.js"),h=i("../../node_modules/safe-buffer/index.js").Buffer,d=h.alloc(128),u={md5:16,sha1:20,sha224:28,sha256:32,sha384:48,sha512:64,rmd160:20,ripemd160:20};function f(t,e,i){var o=function(t){function e(e){return s(t).update(e).digest()}return"rmd160"===t||"ripemd160"===t?function(t){return(new n).update(t).digest()}:"md5"===t?r:e}(t),a="sha512"===t||"sha384"===t?128:64;e.length>a?e=o(e):e.lengthp||new o(e).cmp(c.modulus)>=0)throw new Error("decryption error");l=i?d(new o(e),c):a(e,c);var m=u.alloc(p-l.length);if(l=u.concat([m,l],p),4===f)return function(t,e){var i=t.modulus.byteLength(),r=h("sha1").update(u.alloc(0)).digest(),o=r.length;if(0!==e[0])throw new Error("decryption error");var a=e.slice(1,o+1),d=e.slice(o+1),f=s(a,n(d,o)),l=s(d,n(f,i-o-1));if(function(t,e){t=u.from(t),e=u.from(e);var i=0,r=t.length;t.length!==e.length&&(i++,r=Math.min(t.length,e.length));var n=-1;for(;++n=e.length){s++;break}var o=e.slice(2,n-1);("0002"!==r.toString("hex")&&!i||"0001"!==r.toString("hex")&&i)&&s++;o.length<8&&s++;if(s)throw new Error("decryption error");return e.slice(n)}(0,l,i);if(3===f)return l;throw new Error("unknown padding")}},"../../node_modules/public-encrypt/publicEncrypt.js":function(t,e,i){var r=i("../../node_modules/parse-asn1/index.js"),n=i("../../node_modules/randombytes/browser.js"),s=i("../../node_modules/create-hash/browser.js"),o=i("../../node_modules/public-encrypt/mgf.js"),a=i("../../node_modules/public-encrypt/xor.js"),h=i("../../node_modules/bn.js/lib/bn.js"),d=i("../../node_modules/public-encrypt/withPublic.js"),u=i("../../node_modules/browserify-rsa/index.js"),f=i("../../node_modules/safe-buffer/index.js").Buffer;t.exports=function(t,e,i){var l;l=t.padding?t.padding:i?1:4;var c,p=r(t);if(4===l)c=function(t,e){var i=t.modulus.byteLength(),r=e.length,d=s("sha1").update(f.alloc(0)).digest(),u=d.length,l=2*u;if(r>i-l-2)throw new Error("message too long");var c=f.alloc(i-r-l-2),p=i-u-1,m=n(u),b=a(f.concat([d,c,f.alloc(1,1),e],p),o(m,p)),v=a(m,o(b,u));return new h(f.concat([f.alloc(1),v,b],i))}(p,e);else if(1===l)c=function(t,e,i){var r,s=e.length,o=t.modulus.byteLength();if(s>o-11)throw new Error("message too long");r=i?f.alloc(o-s-3,255):function(t){var e,i=f.allocUnsafe(t),r=0,s=n(2*t),o=0;for(;r=0)throw new Error("data too long for modulus")}return i?u(c,p):d(c,p)}},"../../node_modules/public-encrypt/withPublic.js":function(t,e,i){var r=i("../../node_modules/bn.js/lib/bn.js"),n=i("../../node_modules/safe-buffer/index.js").Buffer;t.exports=function(t,e){return n.from(t.toRed(r.mont(e.modulus)).redPow(new r(e.publicExponent)).fromRed().toArray())}},"../../node_modules/public-encrypt/xor.js":function(t,e){t.exports=function(t,e){for(var i=t.length,r=-1;++r4294967295)throw new RangeError("requested too many random bytes");var i=n.allocUnsafe(t);if(t>0)if(t>65536)for(var o=0;ou||t<0)throw new TypeError("offset must be a uint32");if(t>h||t>e)throw new RangeError("offset out of range")}function l(t,e,i){if("number"!=typeof t||t!=t)throw new TypeError("size must be a number");if(t>u||t<0)throw new TypeError("size must be a uint32");if(t+e>i||t>h)throw new RangeError("buffer too small")}function c(t,e,i,n){if(r.browser){var s=t.buffer,a=new Uint8Array(s,e,i);return d.getRandomValues(a),n?void r.nextTick((function(){n(null,t)})):t}if(!n)return o(i).copy(t,e),t;o(i,(function(i,r){if(i)return n(i);r.copy(t,e),n(null,t)}))}d&&d.getRandomValues||!r.browser?(e.randomFill=function(e,i,r,n){if(!(a.isBuffer(e)||e instanceof t.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');if("function"==typeof i)n=i,i=0,r=e.length;else if("function"==typeof r)n=r,r=e.length-i;else if("function"!=typeof n)throw new TypeError('"cb" argument must be a function');return f(i,e.length),l(r,i,e.length),c(e,i,r,n)},e.randomFillSync=function(e,i,r){void 0===i&&(i=0);if(!(a.isBuffer(e)||e instanceof t.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');f(i,e.length),void 0===r&&(r=e.length-i);return l(r,i,e.length),c(e,i,r)}):(e.randomFill=n,e.randomFillSync=n)}).call(this,i("../../node_modules/webpack/buildin/global.js"),i("../../node_modules/process/browser.js"))},"../../node_modules/ripemd160/index.js":function(t,e,i){"use strict";var r=i("../../standalone-packages/codesandbox-browserfs/dist/shims/buffer.js").Buffer,n=i("../../node_modules/inherits/inherits_browser.js"),s=i("../../node_modules/hash-base/index.js"),o=new Array(16),a=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],h=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],d=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],u=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11],f=[0,1518500249,1859775393,2400959708,2840853838],l=[1352829926,1548603684,1836072691,2053994217,0];function c(){s.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520}function p(t,e){return t<>>32-e}function m(t,e,i,r,n,s,o,a){return p(t+(e^i^r)+s+o|0,a)+n|0}function b(t,e,i,r,n,s,o,a){return p(t+(e&i|~e&r)+s+o|0,a)+n|0}function v(t,e,i,r,n,s,o,a){return p(t+((e|~i)^r)+s+o|0,a)+n|0}function g(t,e,i,r,n,s,o,a){return p(t+(e&r|i&~r)+s+o|0,a)+n|0}function y(t,e,i,r,n,s,o,a){return p(t+(e^(i|~r))+s+o|0,a)+n|0}n(c,s),c.prototype._update=function(){for(var t=o,e=0;e<16;++e)t[e]=this._block.readInt32LE(4*e);for(var i=0|this._a,r=0|this._b,n=0|this._c,s=0|this._d,c=0|this._e,_=0|this._a,w=0|this._b,M=0|this._c,x=0|this._d,j=0|this._e,E=0;E<80;E+=1){var S,k;E<16?(S=m(i,r,n,s,c,t[a[E]],f[0],d[E]),k=y(_,w,M,x,j,t[h[E]],l[0],u[E])):E<32?(S=b(i,r,n,s,c,t[a[E]],f[1],d[E]),k=g(_,w,M,x,j,t[h[E]],l[1],u[E])):E<48?(S=v(i,r,n,s,c,t[a[E]],f[2],d[E]),k=v(_,w,M,x,j,t[h[E]],l[2],u[E])):E<64?(S=g(i,r,n,s,c,t[a[E]],f[3],d[E]),k=b(_,w,M,x,j,t[h[E]],l[3],u[E])):(S=y(i,r,n,s,c,t[a[E]],f[4],d[E]),k=m(_,w,M,x,j,t[h[E]],l[4],u[E])),i=c,c=s,s=p(n,10),n=r,r=S,_=j,j=x,x=p(M,10),M=w,w=k}var A=this._b+n+x|0;this._b=this._c+s+j|0,this._c=this._d+c+_|0,this._d=this._e+i+w|0,this._e=this._a+r+M|0,this._a=A},c.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var t=r.alloc?r.alloc(20):new r(20);return t.writeInt32LE(this._a,0),t.writeInt32LE(this._b,4),t.writeInt32LE(this._c,8),t.writeInt32LE(this._d,12),t.writeInt32LE(this._e,16),t},t.exports=c},"../../node_modules/safer-buffer/safer.js":function(t,e,i){"use strict";(function(e){var r,n=i("../../standalone-packages/codesandbox-browserfs/dist/shims/buffer.js"),s=n.Buffer,o={};for(r in n)n.hasOwnProperty(r)&&"SlowBuffer"!==r&&"Buffer"!==r&&(o[r]=n[r]);var a=o.Buffer={};for(r in s)s.hasOwnProperty(r)&&"allocUnsafe"!==r&&"allocUnsafeSlow"!==r&&(a[r]=s[r]);if(o.Buffer.prototype=s.prototype,a.from&&a.from!==Uint8Array.from||(a.from=function(t,e,i){if("number"==typeof t)throw new TypeError('The "value" argument must not be of type number. Received type '+typeof t);if(t&&void 0===t.length)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t);return s(t,e,i)}),a.alloc||(a.alloc=function(t,e,i){if("number"!=typeof t)throw new TypeError('The "size" argument must be of type number. Received type '+typeof t);if(t<0||t>=2*(1<<30))throw new RangeError('The value "'+t+'" is invalid for option "size"');var r=s(t);return e&&0!==e.length?"string"==typeof i?r.fill(e,i):r.fill(e):r.fill(0),r}),!o.kStringMaxLength)try{o.kStringMaxLength=e.binding("buffer").kStringMaxLength}catch(t){}o.constants||(o.constants={MAX_LENGTH:o.kMaxLength},o.kStringMaxLength&&(o.constants.MAX_STRING_LENGTH=o.kStringMaxLength)),t.exports=o}).call(this,i("../../node_modules/process/browser.js"))},"../../node_modules/sha.js/hash.js":function(t,e,i){var r=i("../../node_modules/safe-buffer/index.js").Buffer;function n(t,e){this._block=r.alloc(t),this._finalSize=e,this._blockSize=t,this._len=0}n.prototype.update=function(t,e){"string"==typeof t&&(e=e||"utf8",t=r.from(t,e));for(var i=this._block,n=this._blockSize,s=t.length,o=this._len,a=0;a=this._finalSize&&(this._update(this._block),this._block.fill(0));var i=8*this._len;if(i<=4294967295)this._block.writeUInt32BE(i,this._blockSize-4);else{var r=(4294967295&i)>>>0,n=(i-r)/4294967296;this._block.writeUInt32BE(n,this._blockSize-8),this._block.writeUInt32BE(r,this._blockSize-4)}this._update(this._block);var s=this._hash();return t?s.toString(t):s},n.prototype._update=function(){throw new Error("_update must be implemented by subclass")},t.exports=n},"../../node_modules/sha.js/index.js":function(t,e,i){(e=t.exports=function(t){t=t.toLowerCase();var i=e[t];if(!i)throw new Error(t+" is not supported (we accept pull requests)");return new i}).sha=i("../../node_modules/sha.js/sha.js"),e.sha1=i("../../node_modules/sha.js/sha1.js"),e.sha224=i("../../node_modules/sha.js/sha224.js"),e.sha256=i("../../node_modules/sha.js/sha256.js"),e.sha384=i("../../node_modules/sha.js/sha384.js"),e.sha512=i("../../node_modules/sha.js/sha512.js")},"../../node_modules/sha.js/sha.js":function(t,e,i){var r=i("../../node_modules/inherits/inherits_browser.js"),n=i("../../node_modules/sha.js/hash.js"),s=i("../../node_modules/safe-buffer/index.js").Buffer,o=[1518500249,1859775393,-1894007588,-899497514],a=new Array(80);function h(){this.init(),this._w=a,n.call(this,64,56)}function d(t){return t<<30|t>>>2}function u(t,e,i,r){return 0===t?e&i|~e&r:2===t?e&i|e&r|i&r:e^i^r}r(h,n),h.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},h.prototype._update=function(t){for(var e,i=this._w,r=0|this._a,n=0|this._b,s=0|this._c,a=0|this._d,h=0|this._e,f=0;f<16;++f)i[f]=t.readInt32BE(4*f);for(;f<80;++f)i[f]=i[f-3]^i[f-8]^i[f-14]^i[f-16];for(var l=0;l<80;++l){var c=~~(l/20),p=0|((e=r)<<5|e>>>27)+u(c,n,s,a)+h+i[l]+o[c];h=a,a=s,s=d(n),n=r,r=p}this._a=r+this._a|0,this._b=n+this._b|0,this._c=s+this._c|0,this._d=a+this._d|0,this._e=h+this._e|0},h.prototype._hash=function(){var t=s.allocUnsafe(20);return t.writeInt32BE(0|this._a,0),t.writeInt32BE(0|this._b,4),t.writeInt32BE(0|this._c,8),t.writeInt32BE(0|this._d,12),t.writeInt32BE(0|this._e,16),t},t.exports=h},"../../node_modules/sha.js/sha1.js":function(t,e,i){var r=i("../../node_modules/inherits/inherits_browser.js"),n=i("../../node_modules/sha.js/hash.js"),s=i("../../node_modules/safe-buffer/index.js").Buffer,o=[1518500249,1859775393,-1894007588,-899497514],a=new Array(80);function h(){this.init(),this._w=a,n.call(this,64,56)}function d(t){return t<<5|t>>>27}function u(t){return t<<30|t>>>2}function f(t,e,i,r){return 0===t?e&i|~e&r:2===t?e&i|e&r|i&r:e^i^r}r(h,n),h.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},h.prototype._update=function(t){for(var e,i=this._w,r=0|this._a,n=0|this._b,s=0|this._c,a=0|this._d,h=0|this._e,l=0;l<16;++l)i[l]=t.readInt32BE(4*l);for(;l<80;++l)i[l]=(e=i[l-3]^i[l-8]^i[l-14]^i[l-16])<<1|e>>>31;for(var c=0;c<80;++c){var p=~~(c/20),m=d(r)+f(p,n,s,a)+h+i[c]+o[p]|0;h=a,a=s,s=u(n),n=r,r=m}this._a=r+this._a|0,this._b=n+this._b|0,this._c=s+this._c|0,this._d=a+this._d|0,this._e=h+this._e|0},h.prototype._hash=function(){var t=s.allocUnsafe(20);return t.writeInt32BE(0|this._a,0),t.writeInt32BE(0|this._b,4),t.writeInt32BE(0|this._c,8),t.writeInt32BE(0|this._d,12),t.writeInt32BE(0|this._e,16),t},t.exports=h},"../../node_modules/sha.js/sha224.js":function(t,e,i){var r=i("../../node_modules/inherits/inherits_browser.js"),n=i("../../node_modules/sha.js/sha256.js"),s=i("../../node_modules/sha.js/hash.js"),o=i("../../node_modules/safe-buffer/index.js").Buffer,a=new Array(64);function h(){this.init(),this._w=a,s.call(this,64,56)}r(h,n),h.prototype.init=function(){return this._a=3238371032,this._b=914150663,this._c=812702999,this._d=4144912697,this._e=4290775857,this._f=1750603025,this._g=1694076839,this._h=3204075428,this},h.prototype._hash=function(){var t=o.allocUnsafe(28);return t.writeInt32BE(this._a,0),t.writeInt32BE(this._b,4),t.writeInt32BE(this._c,8),t.writeInt32BE(this._d,12),t.writeInt32BE(this._e,16),t.writeInt32BE(this._f,20),t.writeInt32BE(this._g,24),t},t.exports=h},"../../node_modules/sha.js/sha256.js":function(t,e,i){var r=i("../../node_modules/inherits/inherits_browser.js"),n=i("../../node_modules/sha.js/hash.js"),s=i("../../node_modules/safe-buffer/index.js").Buffer,o=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],a=new Array(64);function h(){this.init(),this._w=a,n.call(this,64,56)}function d(t,e,i){return i^t&(e^i)}function u(t,e,i){return t&e|i&(t|e)}function f(t){return(t>>>2|t<<30)^(t>>>13|t<<19)^(t>>>22|t<<10)}function l(t){return(t>>>6|t<<26)^(t>>>11|t<<21)^(t>>>25|t<<7)}function c(t){return(t>>>7|t<<25)^(t>>>18|t<<14)^t>>>3}r(h,n),h.prototype.init=function(){return this._a=1779033703,this._b=3144134277,this._c=1013904242,this._d=2773480762,this._e=1359893119,this._f=2600822924,this._g=528734635,this._h=1541459225,this},h.prototype._update=function(t){for(var e,i=this._w,r=0|this._a,n=0|this._b,s=0|this._c,a=0|this._d,h=0|this._e,p=0|this._f,m=0|this._g,b=0|this._h,v=0;v<16;++v)i[v]=t.readInt32BE(4*v);for(;v<64;++v)i[v]=0|(((e=i[v-2])>>>17|e<<15)^(e>>>19|e<<13)^e>>>10)+i[v-7]+c(i[v-15])+i[v-16];for(var g=0;g<64;++g){var y=b+l(h)+d(h,p,m)+o[g]+i[g]|0,_=f(r)+u(r,n,s)|0;b=m,m=p,p=h,h=a+y|0,a=s,s=n,n=r,r=y+_|0}this._a=r+this._a|0,this._b=n+this._b|0,this._c=s+this._c|0,this._d=a+this._d|0,this._e=h+this._e|0,this._f=p+this._f|0,this._g=m+this._g|0,this._h=b+this._h|0},h.prototype._hash=function(){var t=s.allocUnsafe(32);return t.writeInt32BE(this._a,0),t.writeInt32BE(this._b,4),t.writeInt32BE(this._c,8),t.writeInt32BE(this._d,12),t.writeInt32BE(this._e,16),t.writeInt32BE(this._f,20),t.writeInt32BE(this._g,24),t.writeInt32BE(this._h,28),t},t.exports=h},"../../node_modules/sha.js/sha384.js":function(t,e,i){var r=i("../../node_modules/inherits/inherits_browser.js"),n=i("../../node_modules/sha.js/sha512.js"),s=i("../../node_modules/sha.js/hash.js"),o=i("../../node_modules/safe-buffer/index.js").Buffer,a=new Array(160);function h(){this.init(),this._w=a,s.call(this,128,112)}r(h,n),h.prototype.init=function(){return this._ah=3418070365,this._bh=1654270250,this._ch=2438529370,this._dh=355462360,this._eh=1731405415,this._fh=2394180231,this._gh=3675008525,this._hh=1203062813,this._al=3238371032,this._bl=914150663,this._cl=812702999,this._dl=4144912697,this._el=4290775857,this._fl=1750603025,this._gl=1694076839,this._hl=3204075428,this},h.prototype._hash=function(){var t=o.allocUnsafe(48);function e(e,i,r){t.writeInt32BE(e,r),t.writeInt32BE(i,r+4)}return e(this._ah,this._al,0),e(this._bh,this._bl,8),e(this._ch,this._cl,16),e(this._dh,this._dl,24),e(this._eh,this._el,32),e(this._fh,this._fl,40),t},t.exports=h},"../../node_modules/sha.js/sha512.js":function(t,e,i){var r=i("../../node_modules/inherits/inherits_browser.js"),n=i("../../node_modules/sha.js/hash.js"),s=i("../../node_modules/safe-buffer/index.js").Buffer,o=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591],a=new Array(160);function h(){this.init(),this._w=a,n.call(this,128,112)}function d(t,e,i){return i^t&(e^i)}function u(t,e,i){return t&e|i&(t|e)}function f(t,e){return(t>>>28|e<<4)^(e>>>2|t<<30)^(e>>>7|t<<25)}function l(t,e){return(t>>>14|e<<18)^(t>>>18|e<<14)^(e>>>9|t<<23)}function c(t,e){return(t>>>1|e<<31)^(t>>>8|e<<24)^t>>>7}function p(t,e){return(t>>>1|e<<31)^(t>>>8|e<<24)^(t>>>7|e<<25)}function m(t,e){return(t>>>19|e<<13)^(e>>>29|t<<3)^t>>>6}function b(t,e){return(t>>>19|e<<13)^(e>>>29|t<<3)^(t>>>6|e<<26)}function v(t,e){return t>>>0>>0?1:0}r(h,n),h.prototype.init=function(){return this._ah=1779033703,this._bh=3144134277,this._ch=1013904242,this._dh=2773480762,this._eh=1359893119,this._fh=2600822924,this._gh=528734635,this._hh=1541459225,this._al=4089235720,this._bl=2227873595,this._cl=4271175723,this._dl=1595750129,this._el=2917565137,this._fl=725511199,this._gl=4215389547,this._hl=327033209,this},h.prototype._update=function(t){for(var e=this._w,i=0|this._ah,r=0|this._bh,n=0|this._ch,s=0|this._dh,a=0|this._eh,h=0|this._fh,g=0|this._gh,y=0|this._hh,_=0|this._al,w=0|this._bl,M=0|this._cl,x=0|this._dl,j=0|this._el,E=0|this._fl,S=0|this._gl,k=0|this._hl,A=0;A<32;A+=2)e[A]=t.readInt32BE(4*A),e[A+1]=t.readInt32BE(4*A+4);for(;A<160;A+=2){var R=e[A-30],I=e[A-30+1],B=c(R,I),C=p(I,R),O=m(R=e[A-4],I=e[A-4+1]),T=b(I,R),P=e[A-14],N=e[A-14+1],L=e[A-32],q=e[A-32+1],D=C+N|0,z=B+P+v(D,C)|0;z=(z=z+O+v(D=D+T|0,T)|0)+L+v(D=D+q|0,q)|0,e[A]=z,e[A+1]=D}for(var U=0;U<160;U+=2){z=e[U],D=e[U+1];var K=u(i,r,n),F=u(_,w,M),H=f(i,_),Z=f(_,i),G=l(a,j),V=l(j,a),X=o[U],$=o[U+1],W=d(a,h,g),Y=d(j,E,S),J=k+V|0,Q=y+G+v(J,k)|0;Q=(Q=(Q=Q+W+v(J=J+Y|0,Y)|0)+X+v(J=J+$|0,$)|0)+z+v(J=J+D|0,D)|0;var tt=Z+F|0,et=H+K+v(tt,Z)|0;y=g,k=S,g=h,S=E,h=a,E=j,a=s+Q+v(j=x+J|0,x)|0,s=n,x=M,n=r,M=w,r=i,w=_,i=Q+et+v(_=J+tt|0,J)|0}this._al=this._al+_|0,this._bl=this._bl+w|0,this._cl=this._cl+M|0,this._dl=this._dl+x|0,this._el=this._el+j|0,this._fl=this._fl+E|0,this._gl=this._gl+S|0,this._hl=this._hl+k|0,this._ah=this._ah+i+v(this._al,_)|0,this._bh=this._bh+r+v(this._bl,w)|0,this._ch=this._ch+n+v(this._cl,M)|0,this._dh=this._dh+s+v(this._dl,x)|0,this._eh=this._eh+a+v(this._el,j)|0,this._fh=this._fh+h+v(this._fl,E)|0,this._gh=this._gh+g+v(this._gl,S)|0,this._hh=this._hh+y+v(this._hl,k)|0},h.prototype._hash=function(){var t=s.allocUnsafe(64);function e(e,i,r){t.writeInt32BE(e,r),t.writeInt32BE(i,r+4)}return e(this._ah,this._al,0),e(this._bh,this._bl,8),e(this._ch,this._cl,16),e(this._dh,this._dl,24),e(this._eh,this._el,32),e(this._fh,this._fl,40),e(this._gh,this._gl,48),e(this._hh,this._hl,56),t},t.exports=h},"../../node_modules/url/url.js":function(t,e,i){"use strict";var r=i("../../node_modules/node-libs-browser/node_modules/punycode/punycode.js"),n=i("../../node_modules/url/util.js");function s(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}e.parse=y,e.resolve=function(t,e){return y(t,!1,!0).resolve(e)},e.resolveObject=function(t,e){return t?y(t,!1,!0).resolveObject(e):e},e.format=function(t){n.isString(t)&&(t=y(t));return t instanceof s?t.format():s.prototype.format.call(t)},e.Url=s;var o=/^([a-z0-9.+-]+:)/i,a=/:[0-9]*$/,h=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,d=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n","\t"]),u=["'"].concat(d),f=["%","/","?",";","#"].concat(u),l=["/","?","#"],c=/^[+a-z0-9A-Z_-]{0,63}$/,p=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,m={javascript:!0,"javascript:":!0},b={javascript:!0,"javascript:":!0},v={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},g=i("../../node_modules/querystring-es3/index.js");function y(t,e,i){if(t&&n.isObject(t)&&t instanceof s)return t;var r=new s;return r.parse(t,e,i),r}s.prototype.parse=function(t,e,i){if(!n.isString(t))throw new TypeError("Parameter 'url' must be a string, not "+typeof t);var s=t.indexOf("?"),a=-1!==s&&s127?O+="x":O+=C[T];if(!O.match(c)){var N=I.slice(0,k),L=I.slice(k+1),q=C.match(p);q&&(N.push(q[1]),L.unshift(q[2])),L.length&&(y="/"+L.join(".")+y),this.hostname=N.join(".");break}}}this.hostname.length>255?this.hostname="":this.hostname=this.hostname.toLowerCase(),R||(this.hostname=r.toASCII(this.hostname));var D=this.port?":"+this.port:"",z=this.hostname||"";this.host=z+D,this.href+=this.host,R&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==y[0]&&(y="/"+y))}if(!m[M])for(k=0,B=u.length;k0)&&i.host.split("@"))&&(i.auth=R.shift(),i.host=i.hostname=R.shift());return i.search=t.search,i.query=t.query,n.isNull(i.pathname)&&n.isNull(i.search)||(i.path=(i.pathname?i.pathname:"")+(i.search?i.search:"")),i.href=i.format(),i}if(!x.length)return i.pathname=null,i.search?i.path="/"+i.search:i.path=null,i.href=i.format(),i;for(var E=x.slice(-1)[0],S=(i.host||t.host||x.length>1)&&("."===E||".."===E)||""===E,k=0,A=x.length;A>=0;A--)"."===(E=x[A])?x.splice(A,1):".."===E?(x.splice(A,1),k++):k&&(x.splice(A,1),k--);if(!w&&!M)for(;k--;k)x.unshift("..");!w||""===x[0]||x[0]&&"/"===x[0].charAt(0)||x.unshift(""),S&&"/"!==x.join("/").substr(-1)&&x.push("");var R,I=""===x[0]||x[0]&&"/"===x[0].charAt(0);j&&(i.hostname=i.host=I?"":x.length?x.shift():"",(R=!!(i.host&&i.host.indexOf("@")>0)&&i.host.split("@"))&&(i.auth=R.shift(),i.host=i.hostname=R.shift()));return(w=w||i.host&&x.length)&&!I&&x.unshift(""),x.length?i.pathname=x.join("/"):(i.pathname=null,i.path=null),n.isNull(i.pathname)&&n.isNull(i.search)||(i.path=(i.pathname?i.pathname:"")+(i.search?i.search:"")),i.auth=t.auth||i.auth,i.slashes=i.slashes||t.slashes,i.href=i.format(),i},s.prototype.parseHost=function(){var t=this.host,e=a.exec(t);e&&(":"!==(e=e[0])&&(this.port=e.substr(1)),t=t.substr(0,t.length-e.length)),t&&(this.hostname=t)}},"../../node_modules/url/util.js":function(t,e,i){"use strict";t.exports={isString:function(t){return"string"==typeof t},isObject:function(t){return"object"==typeof t&&null!==t},isNull:function(t){return null===t},isNullOrUndefined:function(t){return null==t}}},"../../node_modules/vm-browserify/index.js":function(module,exports){var indexOf=function(t,e){if(t.indexOf)return t.indexOf(e);for(var i=0;i>>16,i+=e*o,i&=65535,i+=t*a;var h=this._low+(65535&r),d=h>>>16,u=(d+=this._high+(65535&i))<<16|65535&h;d=(u=u<<13|u>>>19)>>>16,i=(r=(h=65535&u)*(o=n._low))>>>16,i+=d*o,i&=65535,i+=h*(a=n._high),this._low=65535&r,this._high=65535&i};var n=r("2654435761"),s=r("2246822519"),o=r("3266489917"),a=r("668265263"),h=r("374761393");function d(){return 2==arguments.length?new d(arguments[1]).update(arguments[0]).digest():this instanceof d?void u.call(this,arguments[0]):new d(arguments[0])}function u(t){return this.seed=t instanceof r?t.clone():r(t),this.v1=this.seed.clone().add(n).add(s),this.v2=this.seed.clone().add(s),this.v3=this.seed.clone(),this.v4=this.seed.clone().subtract(n),this.total_len=0,this.memsize=0,this.memory=null,this}d.prototype.init=u,d.prototype.update=function(t){var i,r="string"==typeof t;r&&(t=function(t){for(var e=[],i=0,r=t.length;i>6,128|63&n):n<55296||n>=57344?e.push(224|n>>12,128|n>>6&63,128|63&n):(i++,n=65536+((1023&n)<<10|1023&t.charCodeAt(i)),e.push(240|n>>18,128|n>>12&63,128|n>>6&63,128|63&n))}return new Uint8Array(e)}(t),r=!1,i=!0),"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer&&(i=!0,t=new Uint8Array(t));var n=0,s=t.length,o=n+s;if(0==s)return this;if(this.total_len+=s,0==this.memsize&&(this.memory=r?"":i?new Uint8Array(16):new e(16)),this.memsize+s<16)return r?this.memory+=t:i?this.memory.set(t.subarray(0,s),this.memsize):t.copy(this.memory,this.memsize,0,s),this.memsize+=s,this;if(this.memsize>0){r?this.memory+=t.slice(0,16-this.memsize):i?this.memory.set(t.subarray(0,16-this.memsize),this.memsize):t.copy(this.memory,this.memsize,0,16-this.memsize);var a=0;r?(this.v1.xxh_update(this.memory.charCodeAt(a+1)<<8|this.memory.charCodeAt(a),this.memory.charCodeAt(a+3)<<8|this.memory.charCodeAt(a+2)),a+=4,this.v2.xxh_update(this.memory.charCodeAt(a+1)<<8|this.memory.charCodeAt(a),this.memory.charCodeAt(a+3)<<8|this.memory.charCodeAt(a+2)),a+=4,this.v3.xxh_update(this.memory.charCodeAt(a+1)<<8|this.memory.charCodeAt(a),this.memory.charCodeAt(a+3)<<8|this.memory.charCodeAt(a+2)),a+=4,this.v4.xxh_update(this.memory.charCodeAt(a+1)<<8|this.memory.charCodeAt(a),this.memory.charCodeAt(a+3)<<8|this.memory.charCodeAt(a+2))):(this.v1.xxh_update(this.memory[a+1]<<8|this.memory[a],this.memory[a+3]<<8|this.memory[a+2]),a+=4,this.v2.xxh_update(this.memory[a+1]<<8|this.memory[a],this.memory[a+3]<<8|this.memory[a+2]),a+=4,this.v3.xxh_update(this.memory[a+1]<<8|this.memory[a],this.memory[a+3]<<8|this.memory[a+2]),a+=4,this.v4.xxh_update(this.memory[a+1]<<8|this.memory[a],this.memory[a+3]<<8|this.memory[a+2])),n+=16-this.memsize,this.memsize=0,r&&(this.memory="")}if(n<=o-16){var h=o-16;do{r?(this.v1.xxh_update(t.charCodeAt(n+1)<<8|t.charCodeAt(n),t.charCodeAt(n+3)<<8|t.charCodeAt(n+2)),n+=4,this.v2.xxh_update(t.charCodeAt(n+1)<<8|t.charCodeAt(n),t.charCodeAt(n+3)<<8|t.charCodeAt(n+2)),n+=4,this.v3.xxh_update(t.charCodeAt(n+1)<<8|t.charCodeAt(n),t.charCodeAt(n+3)<<8|t.charCodeAt(n+2)),n+=4,this.v4.xxh_update(t.charCodeAt(n+1)<<8|t.charCodeAt(n),t.charCodeAt(n+3)<<8|t.charCodeAt(n+2))):(this.v1.xxh_update(t[n+1]<<8|t[n],t[n+3]<<8|t[n+2]),n+=4,this.v2.xxh_update(t[n+1]<<8|t[n],t[n+3]<<8|t[n+2]),n+=4,this.v3.xxh_update(t[n+1]<<8|t[n],t[n+3]<<8|t[n+2]),n+=4,this.v4.xxh_update(t[n+1]<<8|t[n],t[n+3]<<8|t[n+2])),n+=4}while(n<=h)}return n=16?this.v1.rotl(1).add(this.v2.rotl(7).add(this.v3.rotl(12).add(this.v4.rotl(18)))):this.seed.clone().add(h)).add(l.fromNumber(this.total_len));u<=f-4;)d?l.fromBits(i.charCodeAt(u+1)<<8|i.charCodeAt(u),i.charCodeAt(u+3)<<8|i.charCodeAt(u+2)):l.fromBits(i[u+1]<<8|i[u],i[u+3]<<8|i[u+2]),t.add(l.multiply(o)).rotl(17).multiply(a),u+=4;for(;u>6,128|63&n):n<55296||n>=57344?e.push(224|n>>12,128|n>>6&63,128|63&n):(i++,n=65536+((1023&n)<<10|1023&t.charCodeAt(i)),e.push(240|n>>18,128|n>>12&63,128|n>>6&63,128|63&n))}return new Uint8Array(e)}(t),o=!1,i=!0),"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer&&(i=!0,t=new Uint8Array(t));var a=0,h=t.length,d=a+h;if(0==h)return this;if(this.total_len+=h,0==this.memsize&&(this.memory=o?"":i?new Uint8Array(32):new e(32)),this.memsize+h<32)return o?this.memory+=t:i?this.memory.set(t.subarray(0,h),this.memsize):t.copy(this.memory,this.memsize,0,h),this.memsize+=h,this;if(this.memsize>0){o?this.memory+=t.slice(0,32-this.memsize):i?this.memory.set(t.subarray(0,32-this.memsize),this.memsize):t.copy(this.memory,this.memsize,0,32-this.memsize);var u=0;if(o)l=r(this.memory.charCodeAt(u+1)<<8|this.memory.charCodeAt(u),this.memory.charCodeAt(u+3)<<8|this.memory.charCodeAt(u+2),this.memory.charCodeAt(u+5)<<8|this.memory.charCodeAt(u+4),this.memory.charCodeAt(u+7)<<8|this.memory.charCodeAt(u+6)),this.v1.add(l.multiply(s)).rotl(31).multiply(n),u+=8,l=r(this.memory.charCodeAt(u+1)<<8|this.memory.charCodeAt(u),this.memory.charCodeAt(u+3)<<8|this.memory.charCodeAt(u+2),this.memory.charCodeAt(u+5)<<8|this.memory.charCodeAt(u+4),this.memory.charCodeAt(u+7)<<8|this.memory.charCodeAt(u+6)),this.v2.add(l.multiply(s)).rotl(31).multiply(n),u+=8,l=r(this.memory.charCodeAt(u+1)<<8|this.memory.charCodeAt(u),this.memory.charCodeAt(u+3)<<8|this.memory.charCodeAt(u+2),this.memory.charCodeAt(u+5)<<8|this.memory.charCodeAt(u+4),this.memory.charCodeAt(u+7)<<8|this.memory.charCodeAt(u+6)),this.v3.add(l.multiply(s)).rotl(31).multiply(n),u+=8,l=r(this.memory.charCodeAt(u+1)<<8|this.memory.charCodeAt(u),this.memory.charCodeAt(u+3)<<8|this.memory.charCodeAt(u+2),this.memory.charCodeAt(u+5)<<8|this.memory.charCodeAt(u+4),this.memory.charCodeAt(u+7)<<8|this.memory.charCodeAt(u+6)),this.v4.add(l.multiply(s)).rotl(31).multiply(n);else l=r(this.memory[u+1]<<8|this.memory[u],this.memory[u+3]<<8|this.memory[u+2],this.memory[u+5]<<8|this.memory[u+4],this.memory[u+7]<<8|this.memory[u+6]),this.v1.add(l.multiply(s)).rotl(31).multiply(n),u+=8,l=r(this.memory[u+1]<<8|this.memory[u],this.memory[u+3]<<8|this.memory[u+2],this.memory[u+5]<<8|this.memory[u+4],this.memory[u+7]<<8|this.memory[u+6]),this.v2.add(l.multiply(s)).rotl(31).multiply(n),u+=8,l=r(this.memory[u+1]<<8|this.memory[u],this.memory[u+3]<<8|this.memory[u+2],this.memory[u+5]<<8|this.memory[u+4],this.memory[u+7]<<8|this.memory[u+6]),this.v3.add(l.multiply(s)).rotl(31).multiply(n),u+=8,l=r(this.memory[u+1]<<8|this.memory[u],this.memory[u+3]<<8|this.memory[u+2],this.memory[u+5]<<8|this.memory[u+4],this.memory[u+7]<<8|this.memory[u+6]),this.v4.add(l.multiply(s)).rotl(31).multiply(n);a+=32-this.memsize,this.memsize=0,o&&(this.memory="")}if(a<=d-32){var f=d-32;do{var l;if(o)l=r(t.charCodeAt(a+1)<<8|t.charCodeAt(a),t.charCodeAt(a+3)<<8|t.charCodeAt(a+2),t.charCodeAt(a+5)<<8|t.charCodeAt(a+4),t.charCodeAt(a+7)<<8|t.charCodeAt(a+6)),this.v1.add(l.multiply(s)).rotl(31).multiply(n),a+=8,l=r(t.charCodeAt(a+1)<<8|t.charCodeAt(a),t.charCodeAt(a+3)<<8|t.charCodeAt(a+2),t.charCodeAt(a+5)<<8|t.charCodeAt(a+4),t.charCodeAt(a+7)<<8|t.charCodeAt(a+6)),this.v2.add(l.multiply(s)).rotl(31).multiply(n),a+=8,l=r(t.charCodeAt(a+1)<<8|t.charCodeAt(a),t.charCodeAt(a+3)<<8|t.charCodeAt(a+2),t.charCodeAt(a+5)<<8|t.charCodeAt(a+4),t.charCodeAt(a+7)<<8|t.charCodeAt(a+6)),this.v3.add(l.multiply(s)).rotl(31).multiply(n),a+=8,l=r(t.charCodeAt(a+1)<<8|t.charCodeAt(a),t.charCodeAt(a+3)<<8|t.charCodeAt(a+2),t.charCodeAt(a+5)<<8|t.charCodeAt(a+4),t.charCodeAt(a+7)<<8|t.charCodeAt(a+6)),this.v4.add(l.multiply(s)).rotl(31).multiply(n);else l=r(t[a+1]<<8|t[a],t[a+3]<<8|t[a+2],t[a+5]<<8|t[a+4],t[a+7]<<8|t[a+6]),this.v1.add(l.multiply(s)).rotl(31).multiply(n),l=r(t[(a+=8)+1]<<8|t[a],t[a+3]<<8|t[a+2],t[a+5]<<8|t[a+4],t[a+7]<<8|t[a+6]),this.v2.add(l.multiply(s)).rotl(31).multiply(n),l=r(t[(a+=8)+1]<<8|t[a],t[a+3]<<8|t[a+2],t[a+5]<<8|t[a+4],t[a+7]<<8|t[a+6]),this.v3.add(l.multiply(s)).rotl(31).multiply(n),l=r(t[(a+=8)+1]<<8|t[a],t[a+3]<<8|t[a+2],t[a+5]<<8|t[a+4],t[a+7]<<8|t[a+6]),this.v4.add(l.multiply(s)).rotl(31).multiply(n);a+=8}while(a<=f)}return a=32?((t=this.v1.clone().rotl(1)).add(this.v2.clone().rotl(7)),t.add(this.v3.clone().rotl(12)),t.add(this.v4.clone().rotl(18)),t.xor(this.v1.multiply(s).rotl(31).multiply(n)),t.multiply(n).add(a),t.xor(this.v2.multiply(s).rotl(31).multiply(n)),t.multiply(n).add(a),t.xor(this.v3.multiply(s).rotl(31).multiply(n)),t.multiply(n).add(a),t.xor(this.v4.multiply(s).rotl(31).multiply(n)),t.multiply(n).add(a)):t=this.seed.clone().add(h),t.add(l.fromNumber(this.total_len));u<=f-8;)d?l.fromBits(i.charCodeAt(u+1)<<8|i.charCodeAt(u),i.charCodeAt(u+3)<<8|i.charCodeAt(u+2),i.charCodeAt(u+5)<<8|i.charCodeAt(u+4),i.charCodeAt(u+7)<<8|i.charCodeAt(u+6)):l.fromBits(i[u+1]<<8|i[u],i[u+3]<<8|i[u+2],i[u+5]<<8|i[u+4],i[u+7]<<8|i[u+6]),l.multiply(s).rotl(31).multiply(n),t.xor(l).rotl(27).multiply(n).add(a),u+=8;for(u+4<=f&&(d?l.fromBits(i.charCodeAt(u+1)<<8|i.charCodeAt(u),i.charCodeAt(u+3)<<8|i.charCodeAt(u+2),0,0):l.fromBits(i[u+1]<<8|i[u],i[u+3]<<8|i[u+2],0,0),t.xor(l.multiply(n)).rotl(23).multiply(s).add(o),u+=4);u65536)throw new TypeError("pattern is too long")};f.prototype.parse=function(t,e){c(t);var i=this.options;if("**"===t){if(!i.noglobstar)return n;t="*"}if(""===t)return"";var r,s="",h=!!i.nocase,d=!1,u=[],f=[],l=!1,m=-1,b=-1,v="."===t.charAt(0)?"":i.dot?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)",g=this;function y(){if(r){switch(r){case"*":s+="[^/]*?",h=!0;break;case"?":s+="[^/]",h=!0;break;default:s+="\\"+r}g.debug("clearStateChar %j %j",r,s),r=!1}}for(var _,w=0,M=t.length;w-1;R--){var I=f[R],B=s.slice(0,I.reStart),C=s.slice(I.reStart,I.reEnd-8),O=s.slice(I.reEnd-8,I.reEnd),T=s.slice(I.reEnd);O+=T;var P=B.split("(").length-1,N=T;for(w=0;w=0&&!(n=t[s]);s--);for(s=0;s>> no match, partial?",t,l,e,c),l!==a))}if("string"==typeof u?(d=f===u,this.debug("string match",u,f,d)):(d=f.match(u),this.debug("pattern match",u,f,d)),!d)return!1}if(s===a&&o===h)return!0;if(s===a)return i;if(o===h)return s===a-1&&""===t[s];throw new Error("wtf?")}},"./node_modules/postcss-url/src/index.js":function(t,e,i){"use strict";const r=i("../../node_modules/path-browserify/index.js"),n=i("./node_modules/postcss-url/src/lib/decl-processor.js").declProcessor,s=t=>(t=t||{},{postcssPlugin:"postcss-url",Once(e,{result:i}){const s=[],o=i.opts,a=o.from?r.dirname(o.from):".",h=o.to?r.dirname(o.to):a;return e.walkDecls(e=>s.push(n(a,h,t,i,e))),Promise.all(s)}});s.postcss=!0,t.exports=s},"./node_modules/postcss-url/src/lib/decl-processor.js":function(t,e,i){"use strict";const r=i("./node_modules/postcss-url/src/lib/match-options.js"),n=i("./node_modules/postcss-url/src/lib/paths.js"),s=n.getPathDeclFile,o=n.getDirDeclFile,a=n.prepareAsset,h=[/(url\(\s*['"]?)([^"')]+)(["']?\s*\))/g,/(AlphaImageLoader\(\s*src=['"]?)([^"')]+)(["'])/g],d=/^['"]/,u=["rebase","inline","copy","custom"];const f=(t,e,n,o,h)=>{const d=a(t,e,h),f=r(d,n);if(!f)return Promise.resolve();const l=t=>((t,e,i)=>{const r=t=>i.warn(e,t),n=t=>e.messages.push({type:"dependency",file:t,parent:s(i)});return(s,o,a)=>t(s,o,a,i,r,e,n)})(function(t){const e=(t=>"function"==typeof t?"custom":t||"rebase")(t);if(-1===u.indexOf(e))throw new Error("Unknown mode for postcss-url: "+e);return i("./node_modules/postcss-url/src/type sync recursive ^\\.\\/.*$")("./"+e)}(t.url),o,h)(d,e,t);let c=Promise.resolve();if(Array.isArray(f))for(let t=0;tl(f[t])).then(t=>(d.url=t,t));else c=l(f);return c.then(t=>(d.url=t,t))};t.exports={declProcessor:(t,e,i,r,n)=>{const s={from:t,to:e,file:o(n)},a=(t=>h.find(e=>e.test(t.value)))(n);if(!a)return Promise.resolve();const u=[];return n.value=n.value.replace(a,(t,e,o,a)=>{const h=f(o,s,i,r,n);return u.push(h.then(i=>{if(!i)return t;d.test(i)&&d.test(a)&&(e=e.slice(0,-1),a=a.slice(1)),n.value=n.value.replace(t,`${e}${i}${a}`)})),t}),Promise.all(u)}}},"./node_modules/postcss-url/src/lib/encode.js":function(t,e,i){"use strict";t.exports=(t,e,i)=>{const r="data:"+t.mimeType;if("base64"===e)return`${r};base64,${t.contents.toString("base64")}`;const n="encodeURI"===e?encodeURI:encodeURIComponent,s=t.contents.toString("utf8").replace(/\n+/g,"");let o=i&&"encodeURIComponent"===e?encodeURIComponent(s).replace(/%3D/g,"=").replace(/%3A/g,":").replace(/%2F/g,"/").replace(/%22/g,"'").replace(/%2C/g,",").replace(/%3B/g,";").replace(/(%[0-9A-Z]{2})/g,(t,e)=>e.toLowerCase()):n(s);return o=o.replace(/%20/g," ").replace(/#/g,"%23"),`${r},${o}`}},"./node_modules/postcss-url/src/lib/get-file.js":function(t,e,i){"use strict";const r=i("../../standalone-packages/codesandbox-browserfs/dist/shims/fs.js"),n=i("../../node_modules/mime/index.js"),s=i("./node_modules/postcss-url/src/lib/paths.js").getPathByBasePath,o=t=>{let e=!1;return new Promise((i,n)=>{const s=t.map(t=>{return(n=t,new Promise(t=>r.access(n,e=>{t(!e)}))).then(r=>{!e&&r&&(e=!0,i(t))});var n});Promise.all(s).then(()=>{e||n()})})};t.exports=(t,e,i,a)=>{const h=e.basePath?s(e.basePath,i.from,t.pathname):[t.absolutePath];return o(h).then(t=>{return(e=t,new Promise((t,i)=>{r.readFile(e,(e,r)=>{e&&i(e),t(r)})})).then(e=>({path:t,contents:e,mimeType:n.getType(t)}));var e}).catch(()=>{a(`Can't read file '${h.join()}', ignoring`)})}},"./node_modules/postcss-url/src/lib/hash.js":function(t,e,i){"use strict";const r=i("../../node_modules/crypto-browserify/index.js"),n=i("../../node_modules/xxhashjs/lib/index.js"),s={method:"xxhash32",shrink:8,append:!1},o=(t,e)=>{if(e.method&&"function"==typeof e.method)return e.method(t);if(e.method&&0===e.method.indexOf("xxhash"))return((t,e)=>("xxhash32"===e.method?n.h32:n.h64)(0).update(t).digest().toString(16))(t,e);try{return r.createHash(e.method).update(t).digest("hex")}catch(t){return null}};t.exports=function(t,e){let i=o(t,e=e||s);return null==i&&(i=o(t,s)),e.shrink?i.substr(0,e.shrink):i}},"./node_modules/postcss-url/src/lib/match-options.js":function(t,e,i){"use strict";(function(e){const r=i("./node_modules/postcss-url/node_modules/minimatch/minimatch.js"),n=i("../../node_modules/path-browserify/index.js"),s=i("./node_modules/postcss-url/src/lib/paths.js").isUrlShouldBeIgnored,o=(t,i)=>!!((t,i)=>{const s=n.relative(e.cwd(),t.absolutePath);return"string"==typeof i?(i=r.filter(i))(s):i instanceof RegExp?i.test(s):!(i instanceof Function)||i(t)})(t,i.filter)&&("function"==typeof i.url||!s(t.url,i)),a=t=>t.multi&&"function"==typeof t.url;t.exports=(t,e)=>{if(e){if(Array.isArray(e)){const i=e.findIndex(e=>o(t,e));if(i<0)return;const r=e[i];if(i===e.length-1)return r;const n=e.slice(i+1).filter(e=>(a(r)||a(e))&&o(t,e));return n.length?[r].concat(n):r}return o(t,e)?e:void 0}}}).call(this,i("../../node_modules/process/browser.js"))},"./node_modules/postcss-url/src/lib/paths.js":function(t,e,i){"use strict";(function(e){const r=i("../../node_modules/path-browserify/index.js"),n=i("../../node_modules/url/url.js"),s=t=>"#"===t[0]||0===t.indexOf("%23")||0===t.indexOf("data:")||/^[a-z]+:\/\//.test(t)||/^\/\//.test(t),o=(t,e,i)=>r.resolve(t,e||"",i||""),a=t=>t.source&&t.source.input&&t.source.input.file;t.exports={normalize:t=>(t=r.normalize(t),"\\"===r.sep?t.replace(/\\/g,"/"):t),prepareAsset:(t,e,i)=>{const o=n.parse(t),h=s(t)?null:o.pathname,d=h?r.resolve(r.join(e.file,h)):a(i);return{url:t,originUrl:t,pathname:h,absolutePath:d||e.from,relativePath:d?r.relative(e.from,d):".",search:o.search||"",hash:o.hash||""}},getAssetsPath:o,getDirDeclFile:t=>{const i=a(t);return i?r.dirname(i):e.cwd()},getPathDeclFile:a,getTargetDir:t=>null!=t.to?t.to:e.cwd(),getPathByBasePath:(t,e,i)=>("/"===i[0]&&(i="."+i),(t=Array.isArray(t)?t:[t]).map(t=>o(e,t,i))),isUrlShouldBeIgnored:(t,e)=>{const i="/"===t[0],r="~"===t[0];return s(t)||(i||r)&&!e.basePath}}}).call(this,i("../../node_modules/process/browser.js"))},"./node_modules/postcss-url/src/type/copy.js":function(t,e,i){"use strict";const r=i("../../node_modules/path-browserify/index.js"),n=i("../../standalone-packages/codesandbox-browserfs/dist/shims/fs.js"),s=i("../../node_modules/make-dir/index.js"),o=i("./node_modules/postcss-url/src/lib/hash.js"),a=i("./node_modules/postcss-url/src/lib/paths.js"),h=i("./node_modules/postcss-url/src/lib/get-file.js"),d=a.getTargetDir,u=a.getAssetsPath,f=a.normalize;t.exports=function(t,e,i,a,l,c,p){return i.assetsPath||e.from!==e.to?h(t,i,e,l).then(a=>{if(!a)return;const h=i.useHash?((t,e)=>(e&&e.append?r.basename(t.path,r.extname(t.path))+"_":"")+o(t.contents,e)+r.extname(t.path))(a,i.hashOptions):t.relativePath,l=d(e),c=u(l,i.assetsPath),m=r.join(c,h),b=f(r.relative(l,m));return s(r.dirname(m)).then(()=>((t,e)=>new Promise((i,r)=>{n.writeFile(e,t.contents,{flag:"wx"},t=>{t&&("EEXIST"===t.code?i():r(t)),i()})}))(a,m)).then(()=>(p(a.path),`${b}${t.search}${t.hash}`))}):(l("Option `to` of postcss is required, ignoring"),Promise.resolve())}},"./node_modules/postcss-url/src/type/custom.js":function(t,e){t.exports=function(t,e,i){return Promise.resolve().then(()=>i.url.apply(null,arguments))}},"./node_modules/postcss-url/src/type/inline.js":function(t,e,i){"use strict";(function(e){const r=i("./node_modules/postcss-url/src/type/copy.js"),n=i("./node_modules/postcss-url/src/type/rebase.js"),s=i("./node_modules/postcss-url/src/lib/encode.js"),o=i("./node_modules/postcss-url/src/lib/get-file.js");function a(t,e,i){if("function"==typeof i.fallback)return i.fallback.apply(null,arguments);switch(i.fallback){case"copy":return r.apply(null,arguments);case"rebase":return n.apply(null,arguments);default:return Promise.resolve()}}const h=(t,e,i,r,n)=>{const o="image/svg+xml"===t.mimeType,a=o?"encodeURIComponent":"base64",h=n.encodeType||a;o&&e.hash&&!n.ignoreFragmentWarning&&i("Image type is svg and link contains #. Postcss-url cant handle svg fragments. SVG file fully inlined. "+t.path),r(t.path);const d=o&&n.optimizeSvgEncode,u=s(t,h,d),f=n.includeUriFragment&&e.hash?u+e.hash:u;return o&&"base64"!==h?`"${f}"`:f};t.exports=function(t,i,r,n,s,d,u){return o(t,r,i,s).then(i=>{if(!i)return;if(!i.mimeType)return void s("Unable to find asset mime-type for "+i.path);const n=1024*(r.maxSize||0);if(n){if(e.byteLength(i.contents)>=n)return a.apply(this,arguments)}return h(i,t,s,u,r)})}}).call(this,i("../../node_modules/buffer/index.js").Buffer)},"./node_modules/postcss-url/src/type/rebase.js":function(t,e,i){"use strict";const r=i("../../node_modules/path-browserify/index.js"),n=i("./node_modules/postcss-url/src/lib/paths.js"),s=n.normalize,o=n.getAssetsPath;t.exports=function(t,e,i){const n=o(e.to,i&&i.assetsPath||""),a=s(r.relative(n,t.absolutePath));return Promise.resolve().then(()=>`${a}${t.search}${t.hash}`)}}}]); //# sourceMappingURL=vendors~postcss-compiler.950b69b0b.chunk.js.map