@raiden_network/raiden-cli
Version:
Raiden Light Client standalone app with a REST API via HTTP
1 lines • 2.24 MB
JavaScript
(window.webpackJsonp=window.webpackJsonp||[]).push([[1],{"+215":function(t){t.exports=JSON.parse('{"name":"chainstart","comment":"Start of the Ethereum main chain","eip":{"url":"","status":""},"status":"","gasConfig":{"minGasLimit":{"v":5000,"d":"Minimum the gas limit may ever be"},"gasLimitBoundDivisor":{"v":1024,"d":"The bound divisor of the gas limit, used in update calculations"}},"gasPrices":{"base":{"v":2,"d":"Gas base cost, used e.g. for ChainID opcode (Istanbul)"},"tierStep":{"v":[0,2,3,5,8,10,20],"d":"Once per operation, for a selection of them"},"exp":{"v":10,"d":"Once per EXP instuction"},"expByte":{"v":10,"d":"Times ceil(log256(exponent)) for the EXP instruction"},"sha3":{"v":30,"d":"Once per SHA3 operation"},"sha3Word":{"v":6,"d":"Once per word of the SHA3 operation\'s data"},"sload":{"v":50,"d":"Once per SLOAD operation"},"sstoreSet":{"v":20000,"d":"Once per SSTORE operation if the zeroness changes from zero"},"sstoreReset":{"v":5000,"d":"Once per SSTORE operation if the zeroness does not change from zero"},"sstoreRefund":{"v":15000,"d":"Once per SSTORE operation if the zeroness changes to zero"},"jumpdest":{"v":1,"d":"Refunded gas, once per SSTORE operation if the zeroness changes to zero"},"log":{"v":375,"d":"Per LOG* operation"},"logData":{"v":8,"d":"Per byte in a LOG* operation\'s data"},"logTopic":{"v":375,"d":"Multiplied by the * of the LOG*, per LOG transaction. e.g. LOG0 incurs 0 * c_txLogTopicGas, LOG4 incurs 4 * c_txLogTopicGas"},"create":{"v":32000,"d":"Once per CREATE operation & contract-creation transaction"},"call":{"v":40,"d":"Once per CALL operation & message call transaction"},"callStipend":{"v":2300,"d":"Free gas given at beginning of call"},"callValueTransfer":{"v":9000,"d":"Paid for CALL when the value transfor is non-zero"},"callNewAccount":{"v":25000,"d":"Paid for CALL when the destination address didn\'t exist prior"},"selfdestructRefund":{"v":24000,"d":"Refunded following a selfdestruct operation"},"memory":{"v":3,"d":"Times the address of the (highest referenced byte in memory + 1). NOTE: referencing happens on read, write and in instructions such as RETURN and CALL"},"quadCoeffDiv":{"v":512,"d":"Divisor for the quadratic particle of the memory cost equation"},"createData":{"v":200,"d":""},"tx":{"v":21000,"d":"Per transaction. NOTE: Not payable on data of calls between transactions"},"txCreation":{"v":32000,"d":"The cost of creating a contract via tx"},"txDataZero":{"v":4,"d":"Per byte of data attached to a transaction that equals zero. NOTE: Not payable on data of calls between transactions"},"txDataNonZero":{"v":68,"d":"Per byte of data attached to a transaction that is not equal to zero. NOTE: Not payable on data of calls between transactions"},"copy":{"v":3,"d":"Multiplied by the number of 32-byte words that are copied (round up) for any *COPY operation and added"},"ecRecover":{"v":3000,"d":""},"sha256":{"v":60,"d":""},"sha256Word":{"v":12,"d":""},"ripemd160":{"v":600,"d":""},"ripemd160Word":{"v":120,"d":""},"identity":{"v":15,"d":""},"identityWord":{"v":3,"d":""}},"vm":{"stackLimit":{"v":1024,"d":"Maximum size of VM stack allowed"},"callCreateDepth":{"v":1024,"d":"Maximum depth of call/create stack"},"maxExtraDataSize":{"v":32,"d":"Maximum size extra data may be after Genesis"}},"pow":{"minimumDifficulty":{"v":131072,"d":"The minimum that the difficulty may ever be"},"difficultyBoundDivisor":{"v":2048,"d":"The bound divisor of the difficulty, used in the update calculations"},"durationLimit":{"v":13,"d":"The decision boundary on the blocktime duration used to determine whether difficulty should go up or not"},"epochDuration":{"v":30000,"d":"Duration between proof-of-work epochs"},"timebombPeriod":{"v":100000,"d":"Exponential difficulty timebomb period"},"minerReward":{"v":"5000000000000000000","d":"the amount a miner get rewarded for mining a block"}},"casper":{},"sharding":{}}')},"+3/a":function(t,e,n){"use strict";var r=n("ANfw"),i=n("LAvi"),s=n("wER2").errors,o=n("F/us"),a=n("f9gT").interfaceIds;function c(t){this.registry=t}c.prototype.method=function(t,e,n,r,i){return{call:this.call.bind({ensName:t,methodName:e,methodArguments:n,callback:i,parent:this,outputFormatter:r}),send:this.send.bind({ensName:t,methodName:e,methodArguments:n,callback:i,parent:this})}},c.prototype.call=function(t){var e=this,n=new r,i=this.parent.prepareArguments(this.ensName,this.methodArguments),s=this.outputFormatter||null;return this.parent.registry.getResolver(this.ensName).then(async function(r){await e.parent.checkInterfaceSupport(r,e.methodName),e.parent.handleCall(n,r.methods[e.methodName],i,s,t)}).catch(function(e){o.isFunction(t)?t(e,null):n.reject(e)}),n.eventEmitter},c.prototype.send=function(t,e){var n=this,i=new r,s=this.parent.prepareArguments(this.ensName,this.methodArguments);return this.parent.registry.getResolver(this.ensName).then(async function(r){await n.parent.checkInterfaceSupport(r,n.methodName),n.parent.handleSend(i,r.methods[n.methodName],s,t,e)}).catch(function(t){o.isFunction(e)?e(t,null):i.reject(t)}),i.eventEmitter},c.prototype.handleCall=function(t,e,n,r,i){return e.apply(this,n).call().then(function(e){r&&(e=r(e)),o.isFunction(i)?i(e,e):t.resolve(e)}).catch(function(e){o.isFunction(i)?i(e,null):t.reject(e)}),t},c.prototype.handleSend=function(t,e,n,r,i){return e.apply(this,n).send(r).on("sending",function(){t.eventEmitter.emit("sending")}).on("sent",function(){t.eventEmitter.emit("sent")}).on("transactionHash",function(e){t.eventEmitter.emit("transactionHash",e)}).on("confirmation",function(e,n){t.eventEmitter.emit("confirmation",e,n)}).on("receipt",function(e){t.eventEmitter.emit("receipt",e),t.resolve(e),o.isFunction(i)&&i(e,e)}).on("error",function(e){t.eventEmitter.emit("error",e),o.isFunction(i)?i(e,null):t.reject(e)}),t},c.prototype.prepareArguments=function(t,e){var n=i.hash(t);return e.length>0?(e.unshift(n),e):[n]},c.prototype.checkInterfaceSupport=async function(t,e){if(a[e]){var n=!1;try{n=await t.methods.supportsInterface(a[e]).call()}catch(r){console.warn('Could not verify interface of resolver contract at "'+t.options.address+'". ')}if(!n)throw s.ResolverMethodMissingError(t.options.address,e)}},t.exports=c},"+DxB":function(t,e){t.exports=function(){throw new Error("Readable.from is not available in the browser")}},"+aAF":function(t,e){t.exports=function(t,e,n){var r=e.toLowerCase();t[e]||t[r]||(t[e]=n)}},"+eF9":function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0});var s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e}(Error);e.SecurityError=s;var o=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e}(Error);e.InvalidStateError=o;var a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e}(Error);e.NetworkError=a;var c=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e}(Error);e.SyntaxError=c},"+kVI":function(t,e){t.exports=function t(e,n){var r,i=0,s=0,o=n=n||0,a=e.length;do{if(o>=a)throw t.bytes=0,new RangeError("Could not decode varint");r=e[o++],i+=s<28?(127&r)<<s:(127&r)*Math.pow(2,s),s+=7}while(r>=128);return t.bytes=o-n,i}},"+qE3":function(t,e,n){"use strict";var r,i="object"==typeof Reflect?Reflect:null,s=i&&"function"==typeof i.apply?i.apply:function(t,e,n){return Function.prototype.apply.call(t,e,n)};r=i&&"function"==typeof i.ownKeys?i.ownKeys:Object.getOwnPropertySymbols?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:function(t){return Object.getOwnPropertyNames(t)};var o=Number.isNaN||function(t){return t!=t};function a(){a.init.call(this)}t.exports=a,t.exports.once=function(t,e){return new Promise(function(n,r){function i(n){t.removeListener(e,s),r(n)}function s(){"function"==typeof t.removeListener&&t.removeListener("error",i),n([].slice.call(arguments))}g(t,e,s,{once:!0}),"error"!==e&&function(t,e,n){"function"==typeof t.on&&g(t,"error",e,{once:!0})}(t,i)})},a.EventEmitter=a,a.prototype._events=void 0,a.prototype._eventsCount=0,a.prototype._maxListeners=void 0;var c=10;function l(t){if("function"!=typeof t)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof t)}function u(t){return void 0===t._maxListeners?a.defaultMaxListeners:t._maxListeners}function h(t,e,n,r){var i,s,o;if(l(n),void 0===(s=t._events)?(s=t._events=Object.create(null),t._eventsCount=0):(void 0!==s.newListener&&(t.emit("newListener",e,n.listener?n.listener:n),s=t._events),o=s[e]),void 0===o)o=s[e]=n,++t._eventsCount;else if("function"==typeof o?o=s[e]=r?[n,o]:[o,n]:r?o.unshift(n):o.push(n),(i=u(t))>0&&o.length>i&&!o.warned){o.warned=!0;var a=new Error("Possible EventEmitter memory leak detected. "+o.length+" "+String(e)+" listeners added. Use emitter.setMaxListeners() to increase limit");a.name="MaxListenersExceededWarning",a.emitter=t,a.type=e,a.count=o.length,console&&console.warn&&console.warn(a)}return t}function d(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function f(t,e,n){var r={fired:!1,wrapFn:void 0,target:t,type:e,listener:n},i=d.bind(r);return i.listener=n,r.wrapFn=i,i}function p(t,e,n){var r=t._events;if(void 0===r)return[];var i=r[e];return void 0===i?[]:"function"==typeof i?n?[i.listener||i]:[i]:n?function(t){for(var e=new Array(t.length),n=0;n<e.length;++n)e[n]=t[n].listener||t[n];return e}(i):b(i,i.length)}function m(t){var e=this._events;if(void 0!==e){var n=e[t];if("function"==typeof n)return 1;if(void 0!==n)return n.length}return 0}function b(t,e){for(var n=new Array(e),r=0;r<e;++r)n[r]=t[r];return n}function g(t,e,n,r){if("function"==typeof t.on)r.once?t.once(e,n):t.on(e,n);else{if("function"!=typeof t.addEventListener)throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof t);t.addEventListener(e,function i(s){r.once&&t.removeEventListener(e,i),n(s)})}}Object.defineProperty(a,"defaultMaxListeners",{enumerable:!0,get:function(){return c},set:function(t){if("number"!=typeof t||t<0||o(t))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+t+".");c=t}}),a.init=function(){void 0!==this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},a.prototype.setMaxListeners=function(t){if("number"!=typeof t||t<0||o(t))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+t+".");return this._maxListeners=t,this},a.prototype.getMaxListeners=function(){return u(this)},a.prototype.emit=function(t){for(var e=[],n=1;n<arguments.length;n++)e.push(arguments[n]);var r="error"===t,i=this._events;if(void 0!==i)r=r&&void 0===i.error;else if(!r)return!1;if(r){var o;if(e.length>0&&(o=e[0]),o instanceof Error)throw o;var a=new Error("Unhandled error."+(o?" ("+o.message+")":""));throw a.context=o,a}var c=i[t];if(void 0===c)return!1;if("function"==typeof c)s(c,this,e);else{var l=c.length,u=b(c,l);for(n=0;n<l;++n)s(u[n],this,e)}return!0},a.prototype.on=a.prototype.addListener=function(t,e){return h(this,t,e,!1)},a.prototype.prependListener=function(t,e){return h(this,t,e,!0)},a.prototype.once=function(t,e){return l(e),this.on(t,f(this,t,e)),this},a.prototype.prependOnceListener=function(t,e){return l(e),this.prependListener(t,f(this,t,e)),this},a.prototype.off=a.prototype.removeListener=function(t,e){var n,r,i,s,o;if(l(e),void 0===(r=this._events))return this;if(void 0===(n=r[t]))return this;if(n===e||n.listener===e)0==--this._eventsCount?this._events=Object.create(null):(delete r[t],r.removeListener&&this.emit("removeListener",t,n.listener||e));else if("function"!=typeof n){for(i=-1,s=n.length-1;s>=0;s--)if(n[s]===e||n[s].listener===e){o=n[s].listener,i=s;break}if(i<0)return this;0===i?n.shift():function(t,e){for(;e+1<t.length;e++)t[e]=t[e+1];t.pop()}(n,i),1===n.length&&(r[t]=n[0]),void 0!==r.removeListener&&this.emit("removeListener",t,o||e)}return this},a.prototype.removeAllListeners=function(t){var e,n,r;if(void 0===(n=this._events))return this;if(void 0===n.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==n[t]&&(0==--this._eventsCount?this._events=Object.create(null):delete n[t]),this;if(0===arguments.length){var i,s=Object.keys(n);for(r=0;r<s.length;++r)"removeListener"!==(i=s[r])&&this.removeAllListeners(i);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(e=n[t]))this.removeListener(t,e);else if(void 0!==e)for(r=e.length-1;r>=0;r--)this.removeListener(t,e[r]);return this},a.prototype.listeners=function(t){return p(this,t,!0)},a.prototype.rawListeners=function(t){return p(this,t,!1)},a.listenerCount=function(t,e){return"function"==typeof t.listenerCount?t.listenerCount(e):m.call(t,e)},a.prototype.listenerCount=m,a.prototype.eventNames=function(){return this._eventsCount>0?r(this._events):[]}},"+yf8":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});const r=n("lquK"),i=n("n9fh");e.default={keyword:["maxLength","minLength"],type:"string",schemaType:"number",$data:!0,error:{message:({keyword:t,schemaCode:e})=>r.str`should NOT have ${"maxLength"===t?"more":"fewer"} than ${e} characters`,params:({schemaCode:t})=>r._`{limit: ${t}}`},code(t){const{keyword:e,data:n,schemaCode:s,it:o}=t,a="maxLength"===e?r.operators.GT:r.operators.LT;let c;if(!1===o.opts.unicode)c=r._`${n}.length`;else{const e=t.gen.scopeValue("func",{ref:i.default,code:r._`require("ajv/dist/compile/ucs2length").default`});c=r._`${e}(${n})`}t.fail$data(r._`${c} ${a} ${s}`)}}},"/0YK":function(t,e,n){"use strict";t.exports=function(t){return{encode:e=>function(t,e){const n=t.byteLength,r=new Uint8Array(t),i=e.indexOf("=")===e.length-1;i&&(e=e.substring(0,e.length-1));let s=0,o=0,a="";for(let c=0;c<n;c++)for(o=o<<8|r[c],s+=8;s>=5;)a+=e[o>>>s-5&31],s-=5;if(s>0&&(a+=e[o<<5-s&31]),i)for(;a.length%8!=0;)a+="=";return a}("string"==typeof e?Uint8Array.from(e):e,t),decode(e){for(const n of e)if(t.indexOf(n)<0)throw new Error("invalid base32 character");return function(t,e){const n=(t=t.replace(new RegExp("=","g"),"")).length;let r=0,i=0,s=0;const o=new Uint8Array(5*n/8|0);for(let a=0;a<n;a++)i=i<<5|e.indexOf(t[a]),r+=5,r>=8&&(o[s++]=i>>>r-8&255,r-=8);return o.buffer}(e,t)}}}},"/4IM":function(t,e,n){"use strict";var r=n("YQG3");t.exports=r},"/7J2":function(t,e,n){"use strict";n.d(e,"a",function(){return h});let r=!1,i=!1;const s={debug:1,default:2,info:2,warning:3,error:4,off:5};let o=s.default,a=null;const c=function(){try{const t=[];if(["NFD","NFC","NFKD","NFKC"].forEach(e=>{try{if("test"!=="test".normalize(e))throw new Error("bad normalize")}catch(n){t.push(e)}}),t.length)throw new Error("missing "+t.join(", "));if(String.fromCharCode(233).normalize("NFD")!==String.fromCharCode(101,769))throw new Error("broken implementation")}catch(t){return t.message}return null}();var l,u;!function(t){t.DEBUG="DEBUG",t.INFO="INFO",t.WARNING="WARNING",t.ERROR="ERROR",t.OFF="OFF"}(l||(l={})),function(t){t.UNKNOWN_ERROR="UNKNOWN_ERROR",t.NOT_IMPLEMENTED="NOT_IMPLEMENTED",t.UNSUPPORTED_OPERATION="UNSUPPORTED_OPERATION",t.NETWORK_ERROR="NETWORK_ERROR",t.SERVER_ERROR="SERVER_ERROR",t.TIMEOUT="TIMEOUT",t.BUFFER_OVERRUN="BUFFER_OVERRUN",t.NUMERIC_FAULT="NUMERIC_FAULT",t.MISSING_NEW="MISSING_NEW",t.INVALID_ARGUMENT="INVALID_ARGUMENT",t.MISSING_ARGUMENT="MISSING_ARGUMENT",t.UNEXPECTED_ARGUMENT="UNEXPECTED_ARGUMENT",t.CALL_EXCEPTION="CALL_EXCEPTION",t.INSUFFICIENT_FUNDS="INSUFFICIENT_FUNDS",t.NONCE_EXPIRED="NONCE_EXPIRED",t.REPLACEMENT_UNDERPRICED="REPLACEMENT_UNDERPRICED",t.UNPREDICTABLE_GAS_LIMIT="UNPREDICTABLE_GAS_LIMIT"}(u||(u={}));class h{constructor(t){Object.defineProperty(this,"version",{enumerable:!0,value:t,writable:!1})}_log(t,e){const n=t.toLowerCase();null==s[n]&&this.throwArgumentError("invalid log level name","logLevel",t),o>s[n]||console.log.apply(console,e)}debug(...t){this._log(h.levels.DEBUG,t)}info(...t){this._log(h.levels.INFO,t)}warn(...t){this._log(h.levels.WARNING,t)}makeError(t,e,n){if(i)return this.makeError("censored error",e,{});e||(e=h.errors.UNKNOWN_ERROR),n||(n={});const r=[];Object.keys(n).forEach(t=>{try{r.push(t+"="+JSON.stringify(n[t]))}catch(o){r.push(t+"="+JSON.stringify(n[t].toString()))}}),r.push(`code=${e}`),r.push(`version=${this.version}`);const s=t;r.length&&(t+=" ("+r.join(", ")+")");const o=new Error(t);return o.reason=s,o.code=e,Object.keys(n).forEach(function(t){o[t]=n[t]}),o}throwError(t,e,n){throw this.makeError(t,e,n)}throwArgumentError(t,e,n){return this.throwError(t,h.errors.INVALID_ARGUMENT,{argument:e,value:n})}assert(t,e,n,r){t||this.throwError(e,n,r)}assertArgument(t,e,n,r){t||this.throwArgumentError(e,n,r)}checkNormalize(t){null==t&&(t="platform missing String.prototype.normalize"),c&&this.throwError("platform missing String.prototype.normalize",h.errors.UNSUPPORTED_OPERATION,{operation:"String.prototype.normalize",form:c})}checkSafeUint53(t,e){"number"==typeof t&&(null==e&&(e="value not safe"),(t<0||t>=9007199254740991)&&this.throwError(e,h.errors.NUMERIC_FAULT,{operation:"checkSafeInteger",fault:"out-of-safe-range",value:t}),t%1&&this.throwError(e,h.errors.NUMERIC_FAULT,{operation:"checkSafeInteger",fault:"non-integer",value:t}))}checkArgumentCount(t,e,n){n=n?": "+n:"",t<e&&this.throwError("missing argument"+n,h.errors.MISSING_ARGUMENT,{count:t,expectedCount:e}),t>e&&this.throwError("too many arguments"+n,h.errors.UNEXPECTED_ARGUMENT,{count:t,expectedCount:e})}checkNew(t,e){t!==Object&&null!=t||this.throwError("missing new",h.errors.MISSING_NEW,{name:e.name})}checkAbstract(t,e){t===e?this.throwError("cannot instantiate abstract class "+JSON.stringify(e.name)+" directly; use a sub-class",h.errors.UNSUPPORTED_OPERATION,{name:t.name,operation:"new"}):t!==Object&&null!=t||this.throwError("missing new",h.errors.MISSING_NEW,{name:e.name})}static globalLogger(){return a||(a=new h("logger/5.1.0")),a}static setCensorship(t,e){if(!t&&e&&this.globalLogger().throwError("cannot permanently disable censorship",h.errors.UNSUPPORTED_OPERATION,{operation:"setCensorship"}),r){if(!t)return;this.globalLogger().throwError("error censorship permanent",h.errors.UNSUPPORTED_OPERATION,{operation:"setCensorship"})}i=!!t,r=!!e}static setLogLevel(t){const e=s[t.toLowerCase()];null!=e?o=e:h.globalLogger().warn("invalid log level - "+t)}static from(t){return new h(t)}}h.errors=u,h.levels=l},"/ab2":function(t,e,n){var r=n("iUdu"),i=n("QihY"),s=n("6F8h");e.createCipher=e.Cipher=r.createCipher,e.createCipheriv=e.Cipheriv=r.createCipheriv,e.createDecipher=e.Decipher=i.createDecipher,e.createDecipheriv=e.Decipheriv=i.createDecipheriv,e.listCiphers=e.getCiphers=function(){return Object.keys(s)}},"/ayr":function(t,e,n){var r;function i(t){this.rand=t}if(t.exports=function(t){return r||(r=new i(null)),r.generate(t)},t.exports.Rand=i,i.prototype.generate=function(t){return this._rand(t)},i.prototype._rand=function(t){if(this.rand.getBytes)return this.rand.getBytes(t);for(var e=new Uint8Array(t),n=0;n<e.length;n++)e[n]=this.rand.getByte();return e},"object"==typeof self)self.crypto&&self.crypto.getRandomValues?i.prototype._rand=function(t){var e=new Uint8Array(t);return self.crypto.getRandomValues(e),e}:self.msCrypto&&self.msCrypto.getRandomValues?i.prototype._rand=function(t){var e=new Uint8Array(t);return self.msCrypto.getRandomValues(e),e}:"object"==typeof window&&(i.prototype._rand=function(){throw new Error("Not implemented yet")});else try{var s=n(6);if("function"!=typeof s.randomBytes)throw new Error("Not supported");i.prototype._rand=function(t){return s.randomBytes(t)}}catch(o){}},0:function(t,e,n){t.exports=n("zUnb")},"05rV":function(t,e){t.exports=function(t,e){if(e){e=(e=e.trim().replace(/^(\?|#|&)/,""))?"?"+e:e;var n=t.split(/[\?\#]/)[0];e&&/\:\/\/[^\/]*$/.test(n)&&(n+="/");var r=t.match(/(\#.*)$/);t=n+e,r&&(t+=r[0])}return t}},"0FX9":function(t,e,n){var r=n("Z92M"),i=n("qmMu"),s=n("QUaw"),o=n("QAZZ");function a(t,e,n,s,o){var a=[].slice.call(arguments,1),c=a.length,l="function"==typeof a[c-1];if(!l&&!r())throw new Error("Callback required as last argument");if(!l){if(c<1)throw new Error("Too few arguments provided");return 1===c?(n=e,e=s=void 0):2!==c||e.getContext||(s=n,n=e,e=void 0),new Promise(function(r,o){try{var a=i.create(n,s);r(t(a,e,s))}catch(c){o(c)}})}if(c<2)throw new Error("Too few arguments provided");2===c?(o=n,n=e,e=s=void 0):3===c&&(e.getContext&&void 0===o?(o=s,s=void 0):(o=s,s=n,n=e,e=void 0));try{var u=i.create(n,s);o(null,t(u,e,s))}catch(h){o(h)}}e.create=i.create,e.toCanvas=a.bind(null,s.render),e.toDataURL=a.bind(null,s.renderToDataURL),e.toString=a.bind(null,function(t,e,n){return o.render(t,n)})},"0ROu":function(t,e,n){"use strict";var r={};function i(t,e,n){n||(n=Error);var i=function(t){var n,r;function i(n,r,i){return t.call(this,function(t,n,r){return"string"==typeof e?e:e(t,n,r)}(n,r,i))||this}return r=t,(n=i).prototype=Object.create(r.prototype),n.prototype.constructor=n,n.__proto__=r,i}(n);i.prototype.name=n.name,i.prototype.code=t,r[t]=i}function s(t,e){if(Array.isArray(t)){var n=t.length;return t=t.map(function(t){return String(t)}),n>2?"one of ".concat(e," ").concat(t.slice(0,n-1).join(", "),", or ")+t[n-1]:2===n?"one of ".concat(e," ").concat(t[0]," or ").concat(t[1]):"of ".concat(e," ").concat(t[0])}return"of ".concat(e," ").concat(String(t))}i("ERR_INVALID_OPT_VALUE",function(t,e){return'The value "'+e+'" is invalid for option "'+t+'"'},TypeError),i("ERR_INVALID_ARG_TYPE",function(t,e,n){var r,i,o,a;if("string"==typeof e&&"not "===e.substr(0,"not ".length)?(r="must not be",e=e.replace(/^not /,"")):r="must be",o=t,(void 0===a||a>o.length)&&(a=o.length)," argument"===o.substring(a-" argument".length,a))i="The ".concat(t," ").concat(r," ").concat(s(e,"type"));else{var c=function(t,e,n){return"number"!=typeof n&&(n=0),!(n+".".length>t.length)&&-1!==t.indexOf(".",n)}(t)?"property":"argument";i='The "'.concat(t,'" ').concat(c," ").concat(r," ").concat(s(e,"type"))}return i+". Received type ".concat(typeof n)},TypeError),i("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),i("ERR_METHOD_NOT_IMPLEMENTED",function(t){return"The "+t+" method is not implemented"}),i("ERR_STREAM_PREMATURE_CLOSE","Premature close"),i("ERR_STREAM_DESTROYED",function(t){return"Cannot call "+t+" after a stream was destroyed"}),i("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),i("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),i("ERR_STREAM_WRITE_AFTER_END","write after end"),i("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),i("ERR_UNKNOWN_ENCODING",function(t){return"Unknown encoding: "+t},TypeError),i("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),t.exports.codes=r},"0XuU":function(t,e,n){t.exports=n("43KI").Transform},"0cit":function(t,e,n){"use strict";const r=n("P7XM");function i(t){this._reporterState={obj:null,path:[],options:t||{},errors:[]}}function s(t,e){this.path=t,this.rethrow(e)}e.Reporter=i,i.prototype.isError=function(t){return t instanceof s},i.prototype.save=function(){const t=this._reporterState;return{obj:t.obj,pathLen:t.path.length}},i.prototype.restore=function(t){const e=this._reporterState;e.obj=t.obj,e.path=e.path.slice(0,t.pathLen)},i.prototype.enterKey=function(t){return this._reporterState.path.push(t)},i.prototype.exitKey=function(t){const e=this._reporterState;e.path=e.path.slice(0,t-1)},i.prototype.leaveKey=function(t,e,n){const r=this._reporterState;this.exitKey(t),null!==r.obj&&(r.obj[e]=n)},i.prototype.path=function(){return this._reporterState.path.join("/")},i.prototype.enterObject=function(){const t=this._reporterState,e=t.obj;return t.obj={},e},i.prototype.leaveObject=function(t){const e=this._reporterState,n=e.obj;return e.obj=t,n},i.prototype.error=function(t){let e;const n=this._reporterState,r=t instanceof s;if(e=r?t:new s(n.path.map(function(t){return"["+JSON.stringify(t)+"]"}).join(""),t.message||t,t.stack),!n.options.partial)throw e;return r||n.errors.push(e),e},i.prototype.wrapResult=function(t){const 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(e){this.stack=e.stack}return this}},1:function(t,e){},"1CSz":function(t,e,n){"use strict";var r=n("P7XM"),i=n("hwdV").Buffer,s=n("ZDAU"),o=i.alloc(128);function a(t,e){s.call(this,"digest"),"string"==typeof e&&(e=i.from(e)),this._alg=t,this._key=e,e.length>64?e=t(e):e.length<64&&(e=i.concat([e,o],64));for(var n=this._ipad=i.allocUnsafe(64),r=this._opad=i.allocUnsafe(64),a=0;a<64;a++)n[a]=54^e[a],r[a]=92^e[a];this._hash=[n]}r(a,s),a.prototype._update=function(t){this._hash.push(t)},a.prototype._final=function(){var t=this._alg(i.concat(this._hash));return this._alg(i.concat([this._opad,t]))},t.exports=a},"1IWx":function(t,e,n){t.exports=i;var r=n("+qE3").EventEmitter;function i(){r.call(this)}n("P7XM")(i,r),i.Readable=n("43KI"),i.Writable=n("LGOv"),i.Duplex=n("CWBI"),i.Transform=n("0XuU"),i.PassThrough=n("wq4j"),i.Stream=i,i.prototype.pipe=function(t,e){var n=this;function i(e){t.writable&&!1===t.write(e)&&n.pause&&n.pause()}function s(){n.readable&&n.resume&&n.resume()}n.on("data",i),t.on("drain",s),t._isStdio||e&&!1===e.end||(n.on("end",a),n.on("close",c));var o=!1;function a(){o||(o=!0,t.end())}function c(){o||(o=!0,"function"==typeof t.destroy&&t.destroy())}function l(t){if(u(),0===r.listenerCount(this,"error"))throw t}function u(){n.removeListener("data",i),t.removeListener("drain",s),n.removeListener("end",a),n.removeListener("close",c),n.removeListener("error",l),t.removeListener("error",l),n.removeListener("end",u),n.removeListener("close",u),t.removeListener("close",u)}return n.on("error",l),t.on("error",l),n.on("end",u),n.on("close",u),t.on("close",u),t.emit("pipe",n),t}},"1gqn":function(t,e){t.exports=function(t){return t&&"object"==typeof t&&"function"==typeof t.copy&&"function"==typeof t.fill&&"function"==typeof t.readUInt8}},"1mU8":function(t){t.exports=JSON.parse('{"name":"constantinople","comment":"Postponed hardfork including EIP-1283 (SSTORE gas metering changes)","eip":{"url":"https://eips.ethereum.org/EIPS/eip-1013","status":"Final"},"gasConfig":{},"gasPrices":{"netSstoreNoopGas":{"v":200,"d":"Once per SSTORE operation if the value doesn\'t change"},"netSstoreInitGas":{"v":20000,"d":"Once per SSTORE operation from clean zero"},"netSstoreCleanGas":{"v":5000,"d":"Once per SSTORE operation from clean non-zero"},"netSstoreDirtyGas":{"v":200,"d":"Once per SSTORE operation from dirty"},"netSstoreClearRefund":{"v":15000,"d":"Once per SSTORE operation for clearing an originally existing storage slot"},"netSstoreResetRefund":{"v":4800,"d":"Once per SSTORE operation for resetting to the original non-zero value"},"netSstoreResetClearRefund":{"v":19800,"d":"Once per SSTORE operation for resetting to the original zero value"}},"vm":{},"pow":{"minerReward":{"v":"2000000000000000000","d":"The amount a miner gets rewarded for mining a block"}},"casper":{},"sharding":{}}')},"1sBl":function(t,e,n){var r=n("e/Dd").getSymbolSize;e.getRowColCoords=function(t){if(1===t)return[];for(var e=Math.floor(t/7)+2,n=r(t),i=145===n?26:2*Math.ceil((n-13)/(2*e-2)),s=[n-7],o=1;o<e-1;o++)s[o]=s[o-1]-i;return s.push(6),s.reverse()},e.getPositions=function(t){for(var n=[],r=e.getRowColCoords(t),i=r.length,s=0;s<i;s++)for(var o=0;o<i;o++)0===s&&0===o||0===s&&o===i-1||s===i-1&&0===o||n.push([r[s],r[o]]);return n}},"1w4i":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"}')},2:function(t,e){},"26+Y":function(t,e,n){var r,i;r=[n("GYWy"),n("q+ts")],void 0===(i=(function(t,e){return function(t,e){function n(n,r,i){for(var s=[],o=t.ucs2.decode(n),a=0;a<o.length;a++){var c=o[a],l=t.ucs2.encode([o[a]]),u=e.mapChar(c),h=u>>23,d=u>>21&3,f=e.mapStr.substr(u>>5&65535,31&u);if(0===d||r&&1&h)throw new Error("Illegal char "+l);1===d?s.push(f):2===d?s.push(i?f:l):3===d&&s.push(l)}return s.join("").normalize("NFC")}function r(e,r,s){void 0===s&&(s=!1);var o=n(e,s,r).split(".");return(o=o.map(function(e){return e.startsWith("xn--")?i(e=t.decode(e.substring(4)),s,!1):i(e,s,r),e})).join(".")}function i(t,r,i){if("-"===t[2]&&"-"===t[3])throw new Error("Failed to validate "+t);if(t.startsWith("-")||t.endsWith("-"))throw new Error("Failed to validate "+t);if(t.includes("."))throw new Error("Failed to validate "+t);if(n(t,r,i)!==t)throw new Error("Failed to validate "+t);var s=t.codePointAt(0);if(e.mapChar(s)&2<<23)throw new Error("Label contains illegal character: "+s)}return{toUnicode:function(t,e){return void 0===e&&(e={}),r(t,!1,"useStd3ASCII"in e&&e.useStd3ASCII)},toAscii:function(e,n){void 0===n&&(n={});var i,s="verifyDnsLength"in n&&n.verifyDnsLength,o=r(e,!("transitional"in n)||n.transitional,"useStd3ASCII"in n&&n.useStd3ASCII).split(".").map(t.toASCII),a=o.join(".");if(s){if(a.length<1||a.length>253)throw new Error("DNS name has wrong length: "+a);for(i=0;i<o.length;i++){var c=o[i];if(c.length<1||c.length>63)throw new Error("DNS label has wrong length: "+c)}}return a}}}(t,e)}).apply(e,r))||(t.exports=i)},"2HNl":function(t,e){const n=(t,e)=>{let n=[];for(var r=0;r<t;++r)n.push(e(r));return n};t.exports={generate:n,replicate:(t,e)=>n(t,()=>e),concat:(t,e)=>t.concat(e),flatten:t=>{let e=[];for(let n=0,r=t.length;n<r;++n)for(let i=0,s=t[n].length;i<s;++i)e.push(t[n][i]);return e},chunksOf:(t,e)=>{let n=[];for(let r=0,i=e.length;r<i;r+=t)n.push(e.slice(r,r+t));return n}}},"2M7+":function(t,e,n){(function(t){const r=n("xElV"),i=n("NU6t"),s=t=>{let e=t.slice(0,2),n=t.slice(2),r="";return r="0x"===e?n:t,i.fromHexString(r)},o={swarm:t=>{const e=i.encode(s(t),"keccak-256");return new r(1,"swarm-manifest",e).buffer},ipfs:t=>{const e=i.fromB58String(t);return new r(1,"dag-pb",e).buffer},utf8:e=>t.from(e,"utf8")},a={hexMultiHash:t=>{const e=new r(t);return i.decode(e.multihash).digest.toString("hex")},b58MultiHash:t=>{const e=new r(t);return i.toB58String(e.multihash)},utf8:t=>t.toString("utf8")},c={"swarm-ns":{encode:o.swarm,decode:a.hexMultiHash},"ipfs-ns":{encode:o.ipfs,decode:a.b58MultiHash},"ipns-ns":{encode:o.ipfs,decode:a.b58MultiHash},default:{encode:o.utf8,decode:a.utf8}};e.hexStringToBuffer=s,e.profiles=c}).call(this,n("HDXh").Buffer)},"2QA8":function(t,e,n){"use strict";n.d(e,"a",function(){return r});const r=(()=>"function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random())()},"2Tiy":function(t,e,n){var r=n("HDXh").Buffer;t.exports=function(t){if(t instanceof Uint8Array){if(0===t.byteOffset&&t.byteLength===t.buffer.byteLength)return t.buffer;if("function"==typeof t.buffer.slice)return t.buffer.slice(t.byteOffset,t.byteOffset+t.byteLength)}if(r.isBuffer(t)){for(var e=new Uint8Array(t.length),n=t.length,i=0;i<n;i++)e[i]=t[i];return e.buffer}throw new Error("Argument must be a Buffer")}},"2YU9":function(t,e){t.exports={encode:t=>{const e=t=>{return(e=t.toString(16)).length%2==0?e:"0"+e;var e},n=(t,n)=>t<56?e(n+t):e(n+e(t).length/2+55)+e(t),r=t=>{if("string"==typeof t){const e=t.slice(2);return(2!=e.length||e>="80"?n(e.length/2,128):"")+e}{const e=t.map(r).join("");return n(e.length/2,192)+e}};return"0x"+r(t)},decode:t=>{let e=2;const n=()=>{if(e>=t.length)throw"";const n=t.slice(e,e+2);return n<"80"?(e+=2,"0x"+n):n<"c0"?i():s()},r=()=>{const n=parseInt(t.slice(e,e+=2),16)%64;return n<56?n:parseInt(t.slice(e,e+=2*(n-55)),16)},i=()=>{const n=r();return"0x"+t.slice(e,e+=2*n)},s=()=>{const t=2*r()+e;let i=[];for(;e<t;)i.push(n());return i};try{return n()}catch(o){return[]}}}},"2fFW":function(t,e,n){"use strict";n.d(e,"a",function(){return i});let r=!1;const i={Promise:void 0,set useDeprecatedSynchronousErrorHandling(t){if(t){const t=new Error;console.warn("DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \n"+t.stack)}else r&&console.log("RxJS: Back to a better error behavior. Thank you. <3");r=t},get useDeprecatedSynchronousErrorHandling(){return r}}},"2j6C":function(t,e){function n(t,e){if(!t)throw new Error(e||"Assertion failed")}t.exports=n,n.equal=function(t,e,n){if(t!=e)throw new Error(n||"Assertion failed: "+t+" != "+e)}},3:function(t,e){},"3BRs":function(t,e,n){"use strict";(function(e,r,i){var s=n("lm0R");function o(t){var e=this;this.next=null,this.entry=null,this.finish=function(){!function(t,e,n){var r=t.entry;for(t.entry=null;r;){var i=r.callback;e.pendingcb--,i(void 0),r=r.next}e.corkedRequestsFree?e.corkedRequestsFree.next=t:e.corkedRequestsFree=t}(e,t)}}t.exports=y;var a,c=!e.browser&&["v0.10","v0.9."].indexOf(e.version.slice(0,5))>-1?r:s.nextTick;y.WritableState=g;var l=Object.create(n("Onz0"));l.inherits=n("P7XM");var u,h={deprecate:n("t9FE")},d=n("QpuX"),f=n("qPBE").Buffer,p=i.Uint8Array||function(){},m=n("RoFp");function b(){}function g(t,e){a=a||n("sZro");var r=e instanceof a;this.objectMode=!!(t=t||{}).objectMode,r&&(this.objectMode=this.objectMode||!!t.writableObjectMode);var i=t.highWaterMark,l=t.writableHighWaterMark;this.highWaterMark=i||0===i?i:r&&(l||0===l)?l:this.objectMode?16:16384,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1,this.decodeStrings=!(!1===t.decodeStrings),this.defaultEncoding=t.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(t){!function(t,e){var n=t._writableState,r=n.sync,i=n.writecb;if(function(t){t.writing=!1,t.writecb=null,t.length-=t.writelen,t.writelen=0}(n),e)!function(t,e,n,r,i){--e.pendingcb,n?(s.nextTick(i,r),s.nextTick(S,t,e),t._writableState.errorEmitted=!0,t.emit("error",r)):(i(r),t._writableState.errorEmitted=!0,t.emit("error",r),S(t,e))}(t,n,r,e,i);else{var o=k(n);o||n.corked||n.bufferProcessing||!n.bufferedRequest||w(t,n),r?c(_,t,n,o,i):_(t,n,o,i)}}(e,t)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new o(this)}function y(t){if(a=a||n("sZro"),!(u.call(y,this)||this instanceof a))return new y(t);this._writableState=new g(t,this),this.writable=!0,t&&("function"==typeof t.write&&(this._write=t.write),"function"==typeof t.writev&&(this._writev=t.writev),"function"==typeof t.destroy&&(this._destroy=t.destroy),"function"==typeof t.final&&(this._final=t.final)),d.call(this)}function v(t,e,n,r,i,s,o){e.writelen=r,e.writecb=o,e.writing=!0,e.sync=!0,n?t._writev(i,e.onwrite):t._write(i,s,e.onwrite),e.sync=!1}function _(t,e,n,r){n||function(t,e){0===e.length&&e.needDrain&&(e.needDrain=!1,t.emit("drain"))}(t,e),e.pendingcb--,r(),S(t,e)}function w(t,e){e.bufferProcessing=!0;var n=e.bufferedRequest;if(t._writev&&n&&n.next){var r=new Array(e.bufferedRequestCount),i=e.corkedRequestsFree;i.entry=n;for(var s=0,a=!0;n;)r[s]=n,n.isBuf||(a=!1),n=n.next,s+=1;r.allBuffers=a,v(t,e,!0,e.length,r,"",i.finish),e.pendingcb++,e.lastBufferedRequest=null,i.next?(e.corkedRequestsFree=i.next,i.next=null):e.corkedRequestsFree=new o(e),e.bufferedRequestCount=0}else{for(;n;){var c=n.chunk;if(v(t,e,!1,e.objectMode?1:c.length,c,n.encoding,n.callback),n=n.next,e.bufferedRequestCount--,e.writing)break}null===n&&(e.lastBufferedRequest=null)}e.bufferedRequest=n,e.bufferProcessing=!1}function k(t){return t.ending&&0===t.length&&null===t.bufferedRequest&&!t.finished&&!t.writing}function x(t,e){t._final(function(n){e.pendingcb--,n&&t.emit("error",n),e.prefinished=!0,t.emit("prefinish"),S(t,e)})}function S(t,e){var n=k(e);return n&&(function(t,e){e.prefinished||e.finalCalled||("function"==typeof t._final?(e.pendingcb++,e.finalCalled=!0,s.nextTick(x,t,e)):(e.prefinished=!0,t.emit("prefinish")))}(t,e),0===e.pendingcb&&(e.finished=!0,t.emit("finish"))),n}l.inherits(y,d),g.prototype.getBuffer=function(){for(var t=this.bufferedRequest,e=[];t;)e.push(t),t=t.next;return e},function(){try{Object.defineProperty(g.prototype,"buffer",{get:h.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(t){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(u=Function.prototype[Symbol.hasInstance],Object.defineProperty(y,Symbol.hasInstance,{value:function(t){return!!u.call(this,t)||this===y&&t&&t._writableState instanceof g}})):u=function(t){return t instanceof this},y.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},y.prototype.write=function(t,e,n){var r,i=this._writableState,o=!1,a=!i.objectMode&&(f.isBuffer(r=t)||r instanceof p);return a&&!f.isBuffer(t)&&(t=function(t){return f.from(t)}(t)),"function"==typeof e&&(n=e,e=null),a?e="buffer":e||(e=i.defaultEncoding),"function"!=typeof n&&(n=b),i.ended?function(t,e){var n=new Error("write after end");t.emit("error",n),s.nextTick(e,n)}(this,n):(a||function(t,e,n,r){var i=!0,o=!1;return null===n?o=new TypeError("May not write null values to stream"):"string"==typeof n||void 0===n||e.objectMode||(o=new TypeError("Invalid non-string/buffer chunk")),o&&(t.emit("error",o),s.nextTick(r,o),i=!1),i}(this,i,t,n))&&(i.pendingcb++,o=function(t,e,n,r,i,s){if(!n){var o=function(t,e,n){return t.objectMode||!1===t.decodeStrings||"string"!=typeof e||(e=f.from(e,n)),e}(e,r,i);r!==o&&(n=!0,i="buffer",r=o)}var a=e.objectMode?1:r.length;e.length+=a;var c=e.length<e.highWaterMark;if(c||(e.needDrain=!0),e.writing||e.corked){var l=e.lastBufferedRequest;e.lastBufferedRequest={chunk:r,encoding:i,isBuf:n,callback:s,next:null},l?l.next=e.lastBufferedRequest:e.bufferedRequest=e.lastBufferedRequest,e.bufferedRequestCount+=1}else v(t,e,!1,a,r,i,s);return c}(this,i,a,t,e,n)),o},y.prototype.cork=function(){this._writableState.corked++},y.prototype.uncork=function(){var t=this._writableState;t.corked&&(t.corked--,t.writing||t.corked||t.finished||t.bufferProcessing||!t.bufferedRequest||w(this,t))},y.prototype.setDefaultEncoding=function(t){if("string"==typeof t&&(t=t.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((t+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+t);return this._writableState.defaultEncoding=t,this},Object.defineProperty(y.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),y.prototype._write=function(t,e,n){n(new Error("_write() is not implemented"))},y.prototype._writev=null,y.prototype.end=function(t,e,n){var r=this._writableState;"function"==typeof t?(n=t,t=null,e=null):"function"==typeof e&&(n=e,e=null),null!=t&&this.write(t,e),r.corked&&(r.corked=1,this.uncork()),r.ending||r.finished||function(t,e,n){e.ending=!0,S(t,e),n&&(e.finished?s.nextTick(n):t.once("finish",n)),e.ended=!0,t.writable=!1}(this,r,n)},Object.defineProperty(y.prototype,"destroyed",{get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(t){this._writableState&&(this._writableState.destroyed=t)}}),y.prototype.destroy=m.destroy,y.prototype._undestroy=m.undestroy,y.prototype._destroy=function(t,e){this.end(),e(t)}}).call(this,n("8oxB"),n("URgk").setImmediate,n("yLpj"))},"3DHm":function(t,e,n){var r=n("Voyk");t.exports={decode:function(t){var e=null,n=null,i=null;if(t&&t.error)return{protocolType:null,decoded:t.error};if(t)try{e=r.decode(t);var s=r.getCodec(t);"ipfs-ns"===s?n="ipfs":"swarm-ns"===s?n="bzz":"onion"===s?n="onion":"onion3"===s?n="onion3":e=t}catch(o){i=o.message}return{protocolType:n,decoded:e,error:i}},encode:function(t){var e,n,i=!1;if(t){var s=t.match(/^(ipfs|bzz|onion|onion3):\/\/(.*)/)||t.match(/\/(ipfs)\/(.*)/);s&&(n=s[1],e=s[2]);try{if("ipfs"===n)e.length>=4&&(i="0x"+r.fromIpfs(e));else if("bzz"===n)e.length>=4&&(i="0x"+r.fromSwarm(e));else if("onion"===n)16===e.length&&(i="0x"+r.encode("onion",e));else{if("onion3"!==n)throw new Error("Could not encode content hash: unsupported content type");56===e.length&&(i="0x"+r.encode("onion3",e))}}catch(o){throw o}}return i}}},"3GA+":function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0});var s=n("tnHP"),o=n("HDXh"),a=function(t){function e(e,n){void 0===e&&(e={}),void 0===n&&(n={});var r=t.call(this,e,n)||this;return Object.defineProperty(r,"from",{enumerable:!0,configurable:!0,get:function(){return r.getSenderAddress()},set:function(t){t&&(r._from=s.toBuffer(t))}}),e.from&&(r.from=s.toBuffer(e.from)),r}return i(e,t),e.prototype.hash=function(e){if(void 0===e&&(e=!0),e&&this._from&&""!==this._from.toString("hex")){var n=o.Buffer.concat([this._from,this._from.slice(0,12)]);this.sign(n)}return t.prototype.hash.call(this,e)},e}(n("Zh/5").default);e.default=a},"3X7Y":function(t,e,n){var r=n("u/Db");function i(t){this.mode=r.NUMERIC,this.data=t.toString()}i.getBitsLength=function(t){return 10*Math.floor(t/3)+(t%3?t%3*3+1:0)},i.prototype.getLength=function(){return this.data.length},i.prototype.getBitsLength=function(){return i.getBitsLength(this.data.length)},i.prototype.write=function(t){var e,n,r;for(e=0;e+3<=this.data.length;e+=3)n=this.data.substr(e,3),r=parseInt(n,10),t.put(r,10);var i=this.data.length-e;i>0&&(n=this.data.substr(e),r=parseInt(n,10),t.put(r,3*i+1))},t.exports=i},"3snx":function(t,e,n){"use strict";const{Buffer:r}=n("HDXh");t.exports=function(t){const e=t.indexOf("=")>-1,n=t.indexOf("-")>-1&&t.indexOf("_")>-1;return{encode(t){let i="";i="string"==typeof t?r.from(t).toString("base64"):t.toString("base64"),n&&(i=i.replace(/\+/g,"-").replace(/\//g,"_"));const s=i.indexOf("=");return s>0&&!e&&(i=i.substring(0,s)),i},decode(e){for(const n of e)if(t.indexOf(n)<0)throw new Error("invalid base64 character");return r.from(e,"base64")}}}},4:function(t,e){},4218:function(t,e,n){"use strict";n.d(e,"a",function(){return h}),n.d(e,"c",function(){return b}),n.d(e,"b",function(){return g});var r=n("OZ/i"),i=n.n(r),s=n("VJ7P"),o=n("/7J2"),a=i.a.BN;const c=new o.a("bignumber/5.1.1"),l={};let u=!1;class h{constructor(t,e){c.checkNew(new.target,h),t!==l&&c.throwError("cannot call constructor directly; use BigNumber.from",o.a.errors.UNSUPPORTED_OPERATION,{operation:"new (BigNumber)"}),this._hex=e,this._isBigNumber=!0,Object.freeze(this)}fromTwos(t){return f(p(this).fromTwos(t))}toTwos(t){return f(p(this).toTwos(t))}abs(){return"-"===this._hex[0]?h.from(this._hex.substring(1)):this}add(t){return f(p(this).add(p(t)))}sub(t){return f(p(this).sub(p(t)))}div(t){return h.from(t).isZero()&&m("division by zero","div"),f(p(this).div(p(t)))}mul(t){return f(p(this).mul(p(t)))}mod(t){const e=p(t);return e.isNeg()&&m("cannot modulo negative values","mod"),f(p(this).umod(e))}pow(t){const e=p(t);return e.isNeg()&&m("cannot raise to negative values","pow"),f(p(this).pow(e))}and(t){const e=p(t);return(this.isNegative()||e.isNeg())&&m("cannot 'and' negative values","and"),f(p(this).and(e))}or(t){const e=p(t);return(this.isNegative()||e.isNeg())&&m("cannot 'or' negative values","or"),f(p(this).or(e))}xor(t){const e=p(t);return(this.isNegative()||e.isNeg())&&m("cannot 'xor' negative values","xor"),f(p(this).xor(e))}mask(t){return(this.isNegative()||t<0)&&m("cannot mask negative values","mask"),f(p(this).maskn(t))}shl(t){return(this.isNegative()||t<0)&&m("cannot shift negative values","shl"),f(p(this).shln(t))}shr(t){return(this.isNegative()||t<0)&&m("cannot shift negative values","shr"),f(p(this).shrn(t))}eq(t){return p(this).eq(p(t))}lt(t){return p(this).lt(p(t))}lte(t){return p(this).lte(p(t))}gt(t){return p(this).gt(p(t))}gte(t){return p(this).gte(p(t))}isNegative(){return"-"===this._hex[0]}isZero(){return p(this).isZero()}toNumber(){try{return p(this).toNumber()}catch(t){m("overflow","toNumber",this.toString())}return null}toBigInt(){try{return BigInt(this.toString())}catch(t){}return c.throwError("this platform does not support BigInt",o.a.errors.UNSUPPORTED_OPERATION,{value:this.toString()})}toString(){return arguments.length>0&&(10===arguments[0]?u||(u=!0,c.warn("BigNumber.toString does not accept any parameters; base-10 is assumed")):c.throwError(16===arguments[0]?"BigNumber.toString does not accept any parameters; use bigNumber.toHexString()":"BigNumber.toString does not accept parameters",o.a.errors.UNEXPECTED_ARGUMENT,{})),p(this).toString(10)}toHexString(){return this._hex}toJSON(t){return{type:"BigNumber",hex:this.toHexString()}}static from(t){if(t instanceof h)return t;if("string"==typeof t)return t.match(/^-?0x[0-9a-f]+$/i)?new h(l,d(t)):t.match(/^-?[0-9]+$/)?new h(l,d(new a(t))):c.throwArgumentError("invalid BigNumber string","value",t);if("number"==typeof t)return t%1&&m("underflow","BigNumber.from",t),(t>=9007199254740991||t<=-9007199254740991)&&m("overflow","BigNumber.from",t),h.from(String(t));const e=t;if("bigint"==typeof e)return h.from(e.toString());if(Object(s.h)(e))return h.from(Object(s.g)(e));if(e)if(e.toHexString){const t=e.toHexString();if("string"==typeof t)return h.from(t)}else{let t=e._hex;if(null==t&&"BigNumber"===e.type&&(t=e.hex),"string"==typeof t&&(Object(s.j)(t)||"-"===t[0]&&Object(s.j)(t.substring(1))))return h.from(t)}return c.throwArgumentError("invalid BigNumber value","value",t)}static isBigNumber(t){return!(!t||!t._isBigNumber)}}function d(t){if("string"!=typeof t)return d(t.toString(16));if("-"===t[0])return"-"===(t=t.substring(1))[0]&&c.throwArgumentError("invalid hex","value",t),"0x00"===(t=d(t))?t:"-"+t;if("0x"!==t.substring(0,2)&&(t="0x"+t),"0x"===t)return"0x00";for(t.length%2&&(t="0x0"+t.substring(2));t.length>4&&"0x00"===t.substring(0,4);)t="0x"+t.substring(4);return t}function f(t){return h.from(d(t))}function p(t){const e=h.from(t).toHexString();return new a("-"===e[0]?"-"+e.substring(3):e.substring(2),16)}function m(t,e,n){const r={fault:t,operation:e};return null!=n&&(r.value=n),c.throwError(t,o.a.errors.NUMERIC_FAULT,r)}function b(t){return new a(t,36).toString(16)}function g(t){return new a(t,16).toString(36)}},"43KI":function(t,e,n){(e=t.exports=n("rXFu")).Stream=e,e.Readable=e,e.Writable=n("3BRs"),e.Duplex=n("sZro"),e.Transform=n("J78i"),e.PassThrough=n("eA/Y")},"49sm":function(t,e){var n={}.toString;t.exports=Array.isArray||function(t){return"[object Array]"==n.call(t)}},"4HPa":function(t,e,n){(function(e){const{Transform:r}=n("1IWx");t.exports=t=>class n extends r{constructor(e,n,r,i,s){super(s),this._rate=e,this._capacity=n,this._delimitedSuffix=r,this._hashBitLength=i,this._options=s,this._state=new t,this._state.initialize(e,n),this._finalized=!1}_transform(t,e,n){let r=null;try{this.update(t,e)}catch(i){r=i}n(r)}_flush(t){let e=null;try{this.push(this.digest())}catch(n){e=n}t(e)}update(t,n){if(!e.isBuffer(t)&&"string"!=typeof t)throw new TypeError("Data must be a string or a buffer");if(this._finalized)throw new Error("Digest already called");return e.isBuffer(t)||(t=e.from(t,n)),this._state.absorb(t),this}digest(t){if(this._finalized)throw new Error("Digest already called");this._finalized=!0,this._delimitedSuffix&&this._state.absorbLastFewBits(this._delimitedSuffix);let e=this._state.squeeze(this._hashBitLength/8);return void 0!==t&&(e=e.toString(t)),this._resetState(),e}_resetState(){return this._state.initialize(this._rate,this._capacity),this}_clone(){const t=new n(this._rate,this._capacity,this._delimitedSuffix,this._hashBitLength,this._options);return this._state.copy(t._state),t._finalized=this._finalized,t}}}).call(this,n("HDXh").Buffer)},"4Hv8":function(t,e,n){var r=n("WnY+"),i=n("tcrS"),s=n("afKu"),o=n("hwdV").Buffer,a=n("fSpj"),c=n("n53Y"),l=n("i+bA"),u=o.alloc(128),h={md5:16,sha1:20,sha224:28,sha256:32,sha384:48,sha512:64,rmd160:20,ripemd160:20};function d(t,e,n){var a=function(t){return"rmd160"===t||"ripemd160"===t?function(t){return(new i).update(t).digest()}:"md5"===t?r:function(e){return s(t).update(e).digest()}}(t),c="sha512"===t||"sha384"===t?128:64;e.length>c?e=a(e):e.length<c&&(e=o.concat([e,u],c));for(var l=o.allocUnsafe(c+h[t]),d=o.allocUnsafe(c+h[t]),f=0;f<c;f++)l[f]=54^e[f],d[f]=92^e[f];var p=o.allocUnsafe(c+n+4);l.copy(p,0,0,c),this.ipad1=p,this.ipad2=l,this.opad=d,this.alg=t,this.blocksize=c,this.hash=a,this.size=h[t]}d.prototype.run=function(t,e){return t.copy(e,this.blocksize),this.hash(e).copy(this.opad,this.blocksize),this.hash(this.opad)},t.exports=function(t,e,n,r,i){a(n,r);var s=new d(i=i||"sha1",t=l(t,c,"Password"),(e=l(e,c,"Salt")).length),u=o.allocUnsafe(r),f=o.allocUnsafe(e.length+4);e.copy(f,0,0,e.length);for(var p=0,m=h[i],b=Math.ceil(r/m),g=1;g<=b;g++){f.writeUInt32BE(g,e.length);for(var y=s.run(f,s.ipad1),v=y,_=1;_<n;_++){v=s.run(v,s.ipad2);for(var w=0;w<