text: !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.Neon=t():e.Neon=t()}(window,function(){return function(e){var t={};function r(n){if(t[n])return t[n].exports;var i=t[n]={i:n,l:!1,exports:{}};return e[n].call(i.exports,i,i.exports,r),i.l=!0,i.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:n})},r.r=function(e){Object.defineProperty(e,"__esModule",{value:!0})},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=187)}([function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Fixed8=t.sha256=t.hash256=t.hash160=t.StringStream=t.ensureHex=t.isHex=t.reverseHex=t.reverseArray=t.hexXor=t.num2VarInt=t.fixed82num=t.num2fixed8=t.num2hexstring=t.int2hex=t.hexstring2str=t.str2hexstring=t.ab2hexstring=t.hexstring2ab=t.str2ab=t.ab2str=void 0;var n=f(r(59)),i=f(r(58)),a=f(r(117)),o=f(r(116)),s=f(r(33));function f(e){return e&&e.__esModule?e:{default:e}}function u(e,t){return!t||"object"!==p(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function c(e,t,r){null===e&&(e=Function.prototype);var n=Object.getOwnPropertyDescriptor(e,t);if(void 0===n){var i=Object.getPrototypeOf(e);return null===i?void 0:c(i,t,r)}if("value"in n)return n.value;var a=n.get;return void 0!==a?a.call(r):void 0}function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function d(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function h(e,t,r){return t&&d(e.prototype,t),r&&d(e,r),e}function p(e){return(p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var b=function(e){return String.fromCharCode.apply(null,new Uint8Array(e))};t.ab2str=b;var v=function(e){if("string"!=typeof e)throw new Error("str2ab expects a string");for(var t=new Uint8Array(e.length),r=0,n=e.length;r<n;r++)t[r]=e.charCodeAt(r);return t};t.str2ab=v;var m=function(e){if(k(e),!e.length)return new Uint8Array;for(var t=e.length/2,r=new Uint8Array(t),n=0;n<t;n++)r[n]=parseInt(e.substring(0,2),16),e=e.substring(2);return r};t.hexstring2ab=m;var g=function(e){if("object"!==p(e))throw new Error("ab2hexstring expects an array");for(var t="",r=0;r<e.length;r++){var n=e[r].toString(16);t+=n=0===n.length?"00":1===n.length?"0"+n:n}return t};t.ab2hexstring=g;t.str2hexstring=function(e){return g(v(e))};t.hexstring2str=function(e){return b(m(e))};t.int2hex=function(e){if("number"!=typeof e)throw new Error("int2hex expects a number");var t=e.toString(16);return t.length%2?"0"+t:t};var y=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if("number"!=typeof e)throw new Error("num must be numeric");if(e<0)throw new RangeError("num is unsigned (>= 0)");if(t%1!=0)throw new Error("size must be a whole integer");if(!Number.isSafeInteger(e))throw new RangeError("num (".concat(e,") must be a safe integer"));t*=2;var n=e.toString(16);return n=n.length%t==0?n:("0".repeat(t)+n).substring(n.length),r&&(n=w(n)),n};t.num2hexstring=y;t.num2fixed8=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:8;if("number"!=typeof e)throw new Error("num must be numeric");if(t%1!=0)throw new Error("size must be a whole integer");return new A(e.toFixed(8)).toReverseHex().slice(0,2*t)};t.fixed82num=function(e){return k(e),""===e?0:A.fromReverseHex(e).toNumber()};t.num2VarInt=function(e){return e<253?y(e):e<=65535?"fd"+y(e,2,!0):e<=4294967295?"fe"+y(e,4,!0):"ff"+y(e,8,!0)};t.hexXor=function(e,t){if(k(e),k(t),e.length!==t.length)throw new Error("strings are disparate lengths");for(var r=[],n=0;n<e.length;n+=2)r.push(parseInt(e.substr(n,2),16)^parseInt(t.substr(n,2),16));return g(r)};t.reverseArray=function(e){if("object"!==p(e)||!e.length)throw new Error("reverseArray expects an array");for(var t=new Uint8Array(e.length),r=0;r<e.length;r++)t[r]=e[e.length-1-r];return t};var w=function(e){k(e);for(var t="",r=e.length-2;r>=0;r-=2)t+=e.substr(r,2);return t};t.reverseHex=w;var _=/^([0-9A-Fa-f]{2})*$/,S=function(e){try{return _.test(e)}catch(e){return!1}};t.isHex=S;var k=function(e){if(!S(e))throw new Error("Expected a hexstring but got ".concat(e))};t.ensureHex=k;var x=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";l(this,e),this.str=t,this.pter=0}return h(e,[{key:"isEmpty",value:function(){return this.pter>=this.str.length}},{key:"peek",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;return this.isEmpty()?"":this.substr(this.ptr,2*e)}},{key:"read",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;if(this.isEmpty())throw new Error;var t=this.str.substr(this.pter,2*e);return this.pter+=2*e,t}},{key:"readVarBytes",value:function(){return this.read(this.readVarInt())}},{key:"readVarInt",value:function(){var e=parseInt(this.read(1),16);return 253===e?e=parseInt(w(this.read(2)),16):254===e?e=parseInt(w(this.read(4)),16):255===e&&(e=parseInt(w(this.read(8)),16)),e}},{key:"reset",value:function(){this.pter=0}}]),e}();t.StringStream=x;t.hash160=function(e){if("string"!=typeof e)throw new Error("reverseHex expects a string");if(e.length%2!=0)throw new Error("Incorrect Length: ".concat(e));var t=n.default.parse(e),r=(0,i.default)(t);return(0,a.default)(r).toString()};t.hash256=function(e){if("string"!=typeof e)throw new Error("reverseHex expects a string");if(e.length%2!=0)throw new Error("Incorrect Length: ".concat(e));var t=n.default.parse(e),r=(0,i.default)(t);return(0,i.default)(r).toString()};t.sha256=function(e){if("string"!=typeof e)throw new Error("reverseHex expects a string");if(e.length%2!=0)throw new Error("Incorrect Length: ".concat(e));var t=n.default.parse(e);return(0,i.default)(t).toString()};var A=function(e){function t(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0;return l(this,t),"number"==typeof e&&(e=e.toFixed(8)),u(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,r))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,o.default),h(t,[{key:"toHex",value:function(){var e=this.times(1e8).round(0).toString(16);return"0".repeat(16-e.length)+e}},{key:"toReverseHex",value:function(){return w(this.toHex())}},{key:s.default.inspect.custom,value:function(e,t){return this.toFixed(8)}},{key:"ceil",value:function(){return new t(c(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"ceil",this).call(this))}},{key:"floor",value:function(){return new t(c(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"floor",this).call(this))}},{key:"round",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return new t(c(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"round",this).call(this,e,r))}},{key:"div",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return this.dividedBy(e,t)}},{key:"dividedBy",value:function(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return new t(c(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"dividedBy",this).call(this,e,r))}},{key:"mul",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return this.times(e,t)}},{key:"times",value:function(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return new t(c(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"times",this).call(this,e,r))}},{key:"add",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return this.plus(e,t)}},{key:"plus",value:function(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return new t(c(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"plus",this).call(this,e,r))}},{key:"sub",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return this.minus(e,t)}},{key:"minus",value:function(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return new t(c(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"minus",this).call(this,e,r))}}],[{key:"fromHex",value:function(e){return new t(e,16).div(1e8)}},{key:"fromReverseHex",value:function(e){return this.fromHex(w(e))}}]),t}();t.Fixed8=A},function(e,t){"function"==typeof Object.create?e.exports=function(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}:e.exports=function(e,t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.logger=t.default=void 0;var n=a(r(95)),i=a(r(94));function a(e){return e&&e.__esModule?e:{default:e}}n.default.setDefaultLevel("silent"),n.default.setAll=function(e){Object.keys(n.default.getLoggers()).map(function(t){n.default.getLogger(t).setLevel(e)})};var o=function(e,t){var r=(new Date).toUTCString();e=e.toUpperCase();var n=t;return"[".concat(r,"] (").concat(n,") ").concat(e,": ")};t.default=function(e){var t=n.default.getLogger(e);return i.default.apply(t,{format:o}),t};var s=n.default;t.logger=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TX_VERSION=t.RPC_VERSION=t.NEP_FLAG=t.NEP_HEADER=t.NEO_NETWORK=t.DEFAULT_ACCOUNT_CONTRACT=t.DEFAULT_WALLET=t.DEFAULT_SYSFEE=t.DEFAULT_SCRYPT=t.DEFAULT_REQ=t.DEFAULT_RPC=t.CONTRACTS=t.ASSET_ID=t.ASSETS=t.ADDR_VERSION=void 0;t.ADDR_VERSION="17";t.ASSETS={NEO:"NEO",c56f33fc6ecfcd0c225c4ab356fee59390af8560be0e930faebe74a6daff7c9b:"NEO",GAS:"GAS","602c79718b16e442de58778e148d0b1084e3b2dffd5de6b7b16cee7969282de7":"GAS"};t.ASSET_ID={NEO:"c56f33fc6ecfcd0c225c4ab356fee59390af8560be0e930faebe74a6daff7c9b",GAS:"602c79718b16e442de58778e148d0b1084e3b2dffd5de6b7b16cee7969282de7"};t.CONTRACTS={RPX:"ecc6b20d3ccac1ee9ef109af5a7cdb85706b1df9",TEST_RPX:"5b7074e873973a6ed3708862f219a6fbf4d1c411",TEST_LWTF:"d7678dd97c000be3f33e9362e673101bac4ca654",TEST_NXT:"0b6c1f919e95fe61c17a7612aebfaf4fda3a2214",TEST_RHTT4:"f9572c5b119a6b5775a6af07f1cef5d310038f55"};t.DEFAULT_RPC={MAIN:"https://seed1.neo.org:10331",TEST:"https://seed1.neo.org:20331"};t.DEFAULT_REQ={jsonrpc:"2.0",method:"getblockcount",params:[],id:1234};t.DEFAULT_SCRYPT={cost:16384,blockSize:8,parallel:8,size:64};t.DEFAULT_SYSFEE={enrollmentTransaction:1e3,issueTransaction:500,publishTransaction:500,registerTransaction:1e4};t.DEFAULT_WALLET={name:"myWallet",version:"1.0",scrypt:{},accounts:[],extra:null};t.DEFAULT_ACCOUNT_CONTRACT={script:"",parameters:[{name:"signature",type:"Signature"}],deployed:!1};t.NEO_NETWORK={MAIN:"MainNet",TEST:"TestNet"};t.NEP_HEADER="0142";t.NEP_FLAG="e0";t.RPC_VERSION="2.3.2";t.TX_VERSION={CLAIM:0,CONTRACT:0,INVOCATION:1}},function(e,t,r){var n=r(5),i=n.Buffer;function a(e,t){for(var r in e)t[r]=e[r]}function o(e,t,r){return i(e,t,r)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?e.exports=n:(a(n,t),t.Buffer=o),a(i,o),o.from=function(e,t,r){if("number"==typeof e)throw new TypeError("Argument must not be a number");return i(e,t,r)},o.alloc=function(e,t,r){if("number"!=typeof e)throw new TypeError("Argument must be a number");var n=i(e);return void 0!==t?"string"==typeof r?n.fill(t,r):n.fill(t):n.fill(0),n},o.allocUnsafe=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return i(e)},o.allocUnsafeSlow=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return n.SlowBuffer(e)}},function(e,t,r){"use strict";(function(e){
  /*!
   * The buffer module from node.js, for the browser.
   *
   * @author   Feross Aboukhadijeh <feross@feross.org> <http://feross.org>
   * @license  MIT
   */
  var n=r(167),i=r(166),a=r(73);function o(){return f.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function s(e,t){if(o()<t)throw new RangeError("Invalid typed array length");return f.TYPED_ARRAY_SUPPORT?(e=new Uint8Array(t)).__proto__=f.prototype:(null===e&&(e=new f(t)),e.length=t),e}function f(e,t,r){if(!(f.TYPED_ARRAY_SUPPORT||this instanceof f))return new f(e,t,r);if("number"==typeof e){if("string"==typeof t)throw new Error("If encoding is specified then the first argument must be a string");return l(this,e)}return u(this,e,t,r)}function u(e,t,r,n){if("number"==typeof t)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer?function(e,t,r,n){if(t.byteLength,r<0||t.byteLength<r)throw new RangeError("'offset' is out of bounds");if(t.byteLength<r+(n||0))throw new RangeError("'length' is out of bounds");t=void 0===r&&void 0===n?new Uint8Array(t):void 0===n?new Uint8Array(t,r):new Uint8Array(t,r,n);f.TYPED_ARRAY_SUPPORT?(e=t).__proto__=f.prototype:e=d(e,t);return e}(e,t,r,n):"string"==typeof t?function(e,t,r){"string"==typeof r&&""!==r||(r="utf8");if(!f.isEncoding(r))throw new TypeError('"encoding" must be a valid string encoding');var n=0|p(t,r),i=(e=s(e,n)).write(t,r);i!==n&&(e=e.slice(0,i));return e}(e,t,r):function(e,t){if(f.isBuffer(t)){var r=0|h(t.length);return 0===(e=s(e,r)).length?e:(t.copy(e,0,0,r),e)}if(t){if("undefined"!=typeof ArrayBuffer&&t.buffer instanceof ArrayBuffer||"length"in t)return"number"!=typeof t.length||(n=t.length)!=n?s(e,0):d(e,t);if("Buffer"===t.type&&a(t.data))return d(e,t.data)}var n;throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(e,t)}function c(e){if("number"!=typeof e)throw new TypeError('"size" argument must be a number');if(e<0)throw new RangeError('"size" argument must not be negative')}function l(e,t){if(c(t),e=s(e,t<0?0:0|h(t)),!f.TYPED_ARRAY_SUPPORT)for(var r=0;r<t;++r)e[r]=0;return e}function d(e,t){var r=t.length<0?0:0|h(t.length);e=s(e,r);for(var n=0;n<r;n+=1)e[n]=255&t[n];return e}function h(e){if(e>=o())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+o().toString(16)+" bytes");return 0|e}function p(e,t){if(f.isBuffer(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var r=e.length;if(0===r)return 0;for(var n=!1;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":case void 0:return H(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return U(e).length;default:if(n)return H(e).length;t=(""+t).toLowerCase(),n=!0}}function b(e,t,r){var n=e[t];e[t]=e[r],e[r]=n}function v(e,t,r,n,i){if(0===e.length)return-1;if("string"==typeof r?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,isNaN(r)&&(r=i?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(i)return-1;r=e.length-1}else if(r<0){if(!i)return-1;r=0}if("string"==typeof t&&(t=f.from(t,n)),f.isBuffer(t))return 0===t.length?-1:m(e,t,r,n,i);if("number"==typeof t)return t&=255,f.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):m(e,[t],r,n,i);throw new TypeError("val must be string, number or Buffer")}function m(e,t,r,n,i){var a,o=1,s=e.length,f=t.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(e.length<2||t.length<2)return-1;o=2,s/=2,f/=2,r/=2}function u(e,t){return 1===o?e[t]:e.readUInt16BE(t*o)}if(i){var c=-1;for(a=r;a<s;a++)if(u(e,a)===u(t,-1===c?0:a-c)){if(-1===c&&(c=a),a-c+1===f)return c*o}else-1!==c&&(a-=a-c),c=-1}else for(r+f>s&&(r=s-f),a=r;a>=0;a--){for(var l=!0,d=0;d<f;d++)if(u(e,a+d)!==u(t,d)){l=!1;break}if(l)return a}return-1}function g(e,t,r,n){r=Number(r)||0;var i=e.length-r;n?(n=Number(n))>i&&(n=i):n=i;var a=t.length;if(a%2!=0)throw new TypeError("Invalid hex string");n>a/2&&(n=a/2);for(var o=0;o<n;++o){var s=parseInt(t.substr(2*o,2),16);if(isNaN(s))return o;e[r+o]=s}return o}function y(e,t,r,n){return D(H(t,e.length-r),e,r,n)}function w(e,t,r,n){return D(function(e){for(var t=[],r=0;r<e.length;++r)t.push(255&e.charCodeAt(r));return t}(t),e,r,n)}function _(e,t,r,n){return w(e,t,r,n)}function S(e,t,r,n){return D(U(t),e,r,n)}function k(e,t,r,n){return D(function(e,t){for(var r,n,i,a=[],o=0;o<e.length&&!((t-=2)<0);++o)r=e.charCodeAt(o),n=r>>8,i=r%256,a.push(i),a.push(n);return a}(t,e.length-r),e,r,n)}function x(e,t,r){return 0===t&&r===e.length?n.fromByteArray(e):n.fromByteArray(e.slice(t,r))}function A(e,t,r){r=Math.min(e.length,r);for(var n=[],i=t;i<r;){var a,o,s,f,u=e[i],c=null,l=u>239?4:u>223?3:u>191?2:1;if(i+l<=r)switch(l){case 1:u<128&&(c=u);break;case 2:128==(192&(a=e[i+1]))&&(f=(31&u)<<6|63&a)>127&&(c=f);break;case 3:a=e[i+1],o=e[i+2],128==(192&a)&&128==(192&o)&&(f=(15&u)<<12|(63&a)<<6|63&o)>2047&&(f<55296||f>57343)&&(c=f);break;case 4:a=e[i+1],o=e[i+2],s=e[i+3],128==(192&a)&&128==(192&o)&&128==(192&s)&&(f=(15&u)<<18|(63&a)<<12|(63&o)<<6|63&s)>65535&&f<1114112&&(c=f)}null===c?(c=65533,l=1):c>65535&&(c-=65536,n.push(c>>>10&1023|55296),c=56320|1023&c),n.push(c),i+=l}return function(e){var t=e.length;if(t<=M)return String.fromCharCode.apply(String,e);var r="",n=0;for(;n<t;)r+=String.fromCharCode.apply(String,e.slice(n,n+=M));return r}(n)}t.Buffer=f,t.SlowBuffer=function(e){+e!=e&&(e=0);return f.alloc(+e)},t.INSPECT_MAX_BYTES=50,f.TYPED_ARRAY_SUPPORT=void 0!==e.TYPED_ARRAY_SUPPORT?e.TYPED_ARRAY_SUPPORT:function(){try{var e=new Uint8Array(1);return e.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===e.foo()&&"function"==typeof e.subarray&&0===e.subarray(1,1).byteLength}catch(e){return!1}}(),t.kMaxLength=o(),f.poolSize=8192,f._augment=function(e){return e.__proto__=f.prototype,e},f.from=function(e,t,r){return u(null,e,t,r)},f.TYPED_ARRAY_SUPPORT&&(f.prototype.__proto__=Uint8Array.prototype,f.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&f[Symbol.species]===f&&Object.defineProperty(f,Symbol.species,{value:null,configurable:!0})),f.alloc=function(e,t,r){return function(e,t,r,n){return c(t),t<=0?s(e,t):void 0!==r?"string"==typeof n?s(e,t).fill(r,n):s(e,t).fill(r):s(e,t)}(null,e,t,r)},f.allocUnsafe=function(e){return l(null,e)},f.allocUnsafeSlow=function(e){return l(null,e)},f.isBuffer=function(e){return!(null==e||!e._isBuffer)},f.compare=function(e,t){if(!f.isBuffer(e)||!f.isBuffer(t))throw new TypeError("Arguments must be Buffers");if(e===t)return 0;for(var r=e.length,n=t.length,i=0,a=Math.min(r,n);i<a;++i)if(e[i]!==t[i]){r=e[i],n=t[i];break}return r<n?-1:n<r?1:0},f.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},f.concat=function(e,t){if(!a(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return f.alloc(0);var r;if(void 0===t)for(t=0,r=0;r<e.length;++r)t+=e[r].length;var n=f.allocUnsafe(t),i=0;for(r=0;r<e.length;++r){var o=e[r];if(!f.isBuffer(o))throw new TypeError('"list" argument must be an Array of Buffers');o.copy(n,i),i+=o.length}return n},f.byteLength=p,f.prototype._isBuffer=!0,f.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)b(this,t,t+1);return this},f.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)b(this,t,t+3),b(this,t+1,t+2);return this},f.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)b(this,t,t+7),b(this,t+1,t+6),b(this,t+2,t+5),b(this,t+3,t+4);return this},f.prototype.toString=function(){var e=0|this.length;return 0===e?"":0===arguments.length?A(this,0,e):function(e,t,r){var n=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return"";if((r>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return I(this,t,r);case"utf8":case"utf-8":return A(this,t,r);case"ascii":return E(this,t,r);case"latin1":case"binary":return T(this,t,r);case"base64":return x(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return P(this,t,r);default:if(n)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),n=!0}}.apply(this,arguments)},f.prototype.equals=function(e){if(!f.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===f.compare(this,e)},f.prototype.inspect=function(){var e="",r=t.INSPECT_MAX_BYTES;return this.length>0&&(e=this.toString("hex",0,r).match(/.{2}/g).join(" "),this.length>r&&(e+=" ... ")),"<Buffer "+e+">"},f.prototype.compare=function(e,t,r,n,i){if(!f.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===r&&(r=e?e.length:0),void 0===n&&(n=0),void 0===i&&(i=this.length),t<0||r>e.length||n<0||i>this.length)throw new RangeError("out of range index");if(n>=i&&t>=r)return 0;if(n>=i)return-1;if(t>=r)return 1;if(t>>>=0,r>>>=0,n>>>=0,i>>>=0,this===e)return 0;for(var a=i-n,o=r-t,s=Math.min(a,o),u=this.slice(n,i),c=e.slice(t,r),l=0;l<s;++l)if(u[l]!==c[l]){a=u[l],o=c[l];break}return a<o?-1:o<a?1:0},f.prototype.includes=function(e,t,r){return-1!==this.indexOf(e,t,r)},f.prototype.indexOf=function(e,t,r){return v(this,e,t,r,!0)},f.prototype.lastIndexOf=function(e,t,r){return v(this,e,t,r,!1)},f.prototype.write=function(e,t,r,n){if(void 0===t)n="utf8",r=this.length,t=0;else if(void 0===r&&"string"==typeof t)n=t,r=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t|=0,isFinite(r)?(r|=0,void 0===n&&(n="utf8")):(n=r,r=void 0)}var i=this.length-t;if((void 0===r||r>i)&&(r=i),e.length>0&&(r<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var a=!1;;)switch(n){case"hex":return g(this,e,t,r);case"utf8":case"utf-8":return y(this,e,t,r);case"ascii":return w(this,e,t,r);case"latin1":case"binary":return _(this,e,t,r);case"base64":return S(this,e,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return k(this,e,t,r);default:if(a)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),a=!0}},f.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var M=4096;function E(e,t,r){var n="";r=Math.min(e.length,r);for(var i=t;i<r;++i)n+=String.fromCharCode(127&e[i]);return n}function T(e,t,r){var n="";r=Math.min(e.length,r);for(var i=t;i<r;++i)n+=String.fromCharCode(e[i]);return n}function I(e,t,r){var n=e.length;(!t||t<0)&&(t=0),(!r||r<0||r>n)&&(r=n);for(var i="",a=t;a<r;++a)i+=z(e[a]);return i}function P(e,t,r){for(var n=e.slice(t,r),i="",a=0;a<n.length;a+=2)i+=String.fromCharCode(n[a]+256*n[a+1]);return i}function O(e,t,r){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(e+t>r)throw new RangeError("Trying to access beyond buffer length")}function R(e,t,r,n,i,a){if(!f.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||t<a)throw new RangeError('"value" argument is out of bounds');if(r+n>e.length)throw new RangeError("Index out of range")}function C(e,t,r,n){t<0&&(t=65535+t+1);for(var i=0,a=Math.min(e.length-r,2);i<a;++i)e[r+i]=(t&255<<8*(n?i:1-i))>>>8*(n?i:1-i)}function j(e,t,r,n){t<0&&(t=4294967295+t+1);for(var i=0,a=Math.min(e.length-r,4);i<a;++i)e[r+i]=t>>>8*(n?i:3-i)&255}function B(e,t,r,n,i,a){if(r+n>e.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function N(e,t,r,n,a){return a||B(e,0,r,4),i.write(e,t,r,n,23,4),r+4}function F(e,t,r,n,a){return a||B(e,0,r,8),i.write(e,t,r,n,52,8),r+8}f.prototype.slice=function(e,t){var r,n=this.length;if(e=~~e,t=void 0===t?n:~~t,e<0?(e+=n)<0&&(e=0):e>n&&(e=n),t<0?(t+=n)<0&&(t=0):t>n&&(t=n),t<e&&(t=e),f.TYPED_ARRAY_SUPPORT)(r=this.subarray(e,t)).__proto__=f.prototype;else{var i=t-e;r=new f(i,void 0);for(var a=0;a<i;++a)r[a]=this[a+e]}return r},f.prototype.readUIntLE=function(e,t,r){e|=0,t|=0,r||O(e,t,this.length);for(var n=this[e],i=1,a=0;++a<t&&(i*=256);)n+=this[e+a]*i;return n},f.prototype.readUIntBE=function(e,t,r){e|=0,t|=0,r||O(e,t,this.length);for(var n=this[e+--t],i=1;t>0&&(i*=256);)n+=this[e+--t]*i;return n},f.prototype.readUInt8=function(e,t){return t||O(e,1,this.length),this[e]},f.prototype.readUInt16LE=function(e,t){return t||O(e,2,this.length),this[e]|this[e+1]<<8},f.prototype.readUInt16BE=function(e,t){return t||O(e,2,this.length),this[e]<<8|this[e+1]},f.prototype.readUInt32LE=function(e,t){return t||O(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},f.prototype.readUInt32BE=function(e,t){return t||O(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},f.prototype.readIntLE=function(e,t,r){e|=0,t|=0,r||O(e,t,this.length);for(var n=this[e],i=1,a=0;++a<t&&(i*=256);)n+=this[e+a]*i;return n>=(i*=128)&&(n-=Math.pow(2,8*t)),n},f.prototype.readIntBE=function(e,t,r){e|=0,t|=0,r||O(e,t,this.length);for(var n=t,i=1,a=this[e+--n];n>0&&(i*=256);)a+=this[e+--n]*i;return a>=(i*=128)&&(a-=Math.pow(2,8*t)),a},f.prototype.readInt8=function(e,t){return t||O(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},f.prototype.readInt16LE=function(e,t){t||O(e,2,this.length);var r=this[e]|this[e+1]<<8;return 32768&r?4294901760|r:r},f.prototype.readInt16BE=function(e,t){t||O(e,2,this.length);var r=this[e+1]|this[e]<<8;return 32768&r?4294901760|r:r},f.prototype.readInt32LE=function(e,t){return t||O(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},f.prototype.readInt32BE=function(e,t){return t||O(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},f.prototype.readFloatLE=function(e,t){return t||O(e,4,this.length),i.read(this,e,!0,23,4)},f.prototype.readFloatBE=function(e,t){return t||O(e,4,this.length),i.read(this,e,!1,23,4)},f.prototype.readDoubleLE=function(e,t){return t||O(e,8,this.length),i.read(this,e,!0,52,8)},f.prototype.readDoubleBE=function(e,t){return t||O(e,8,this.length),i.read(this,e,!1,52,8)},f.prototype.writeUIntLE=function(e,t,r,n){(e=+e,t|=0,r|=0,n)||R(this,e,t,r,Math.pow(2,8*r)-1,0);var i=1,a=0;for(this[t]=255&e;++a<r&&(i*=256);)this[t+a]=e/i&255;return t+r},f.prototype.writeUIntBE=function(e,t,r,n){(e=+e,t|=0,r|=0,n)||R(this,e,t,r,Math.pow(2,8*r)-1,0);var i=r-1,a=1;for(this[t+i]=255&e;--i>=0&&(a*=256);)this[t+i]=e/a&255;return t+r},f.prototype.writeUInt8=function(e,t,r){return e=+e,t|=0,r||R(this,e,t,1,255,0),f.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},f.prototype.writeUInt16LE=function(e,t,r){return e=+e,t|=0,r||R(this,e,t,2,65535,0),f.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):C(this,e,t,!0),t+2},f.prototype.writeUInt16BE=function(e,t,r){return e=+e,t|=0,r||R(this,e,t,2,65535,0),f.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):C(this,e,t,!1),t+2},f.prototype.writeUInt32LE=function(e,t,r){return e=+e,t|=0,r||R(this,e,t,4,4294967295,0),f.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):j(this,e,t,!0),t+4},f.prototype.writeUInt32BE=function(e,t,r){return e=+e,t|=0,r||R(this,e,t,4,4294967295,0),f.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):j(this,e,t,!1),t+4},f.prototype.writeIntLE=function(e,t,r,n){if(e=+e,t|=0,!n){var i=Math.pow(2,8*r-1);R(this,e,t,r,i-1,-i)}var a=0,o=1,s=0;for(this[t]=255&e;++a<r&&(o*=256);)e<0&&0===s&&0!==this[t+a-1]&&(s=1),this[t+a]=(e/o>>0)-s&255;return t+r},f.prototype.writeIntBE=function(e,t,r,n){if(e=+e,t|=0,!n){var i=Math.pow(2,8*r-1);R(this,e,t,r,i-1,-i)}var a=r-1,o=1,s=0;for(this[t+a]=255&e;--a>=0&&(o*=256);)e<0&&0===s&&0!==this[t+a+1]&&(s=1),this[t+a]=(e/o>>0)-s&255;return t+r},f.prototype.writeInt8=function(e,t,r){return e=+e,t|=0,r||R(this,e,t,1,127,-128),f.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},f.prototype.writeInt16LE=function(e,t,r){return e=+e,t|=0,r||R(this,e,t,2,32767,-32768),f.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):C(this,e,t,!0),t+2},f.prototype.writeInt16BE=function(e,t,r){return e=+e,t|=0,r||R(this,e,t,2,32767,-32768),f.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):C(this,e,t,!1),t+2},f.prototype.writeInt32LE=function(e,t,r){return e=+e,t|=0,r||R(this,e,t,4,2147483647,-2147483648),f.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):j(this,e,t,!0),t+4},f.prototype.writeInt32BE=function(e,t,r){return e=+e,t|=0,r||R(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),f.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):j(this,e,t,!1),t+4},f.prototype.writeFloatLE=function(e,t,r){return N(this,e,t,!0,r)},f.prototype.writeFloatBE=function(e,t,r){return N(this,e,t,!1,r)},f.prototype.writeDoubleLE=function(e,t,r){return F(this,e,t,!0,r)},f.prototype.writeDoubleBE=function(e,t,r){return F(this,e,t,!1,r)},f.prototype.copy=function(e,t,r,n){if(r||(r=0),n||0===n||(n=this.length),t>=e.length&&(t=e.length),t||(t=0),n>0&&n<r&&(n=r),n===r)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(r<0||r>=this.length)throw new RangeError("sourceStart out of bounds");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),e.length-t<n-r&&(n=e.length-t+r);var i,a=n-r;if(this===e&&r<t&&t<n)for(i=a-1;i>=0;--i)e[i+t]=this[i+r];else if(a<1e3||!f.TYPED_ARRAY_SUPPORT)for(i=0;i<a;++i)e[i+t]=this[i+r];else Uint8Array.prototype.set.call(e,this.subarray(r,r+a),t);return a},f.prototype.fill=function(e,t,r,n){if("string"==typeof e){if("string"==typeof t?(n=t,t=0,r=this.length):"string"==typeof r&&(n=r,r=this.length),1===e.length){var i=e.charCodeAt(0);i<256&&(e=i)}if(void 0!==n&&"string"!=typeof n)throw new TypeError("encoding must be a string");if("string"==typeof n&&!f.isEncoding(n))throw new TypeError("Unknown encoding: "+n)}else"number"==typeof e&&(e&=255);if(t<0||this.length<t||this.length<r)throw new RangeError("Out of range index");if(r<=t)return this;var a;if(t>>>=0,r=void 0===r?this.length:r>>>0,e||(e=0),"number"==typeof e)for(a=t;a<r;++a)this[a]=e;else{var o=f.isBuffer(e)?e:H(new f(e,n).toString()),s=o.length;for(a=0;a<r-t;++a)this[a+t]=o[a%s]}return this};var L=/[^+\/0-9A-Za-z-_]/g;function z(e){return e<16?"0"+e.toString(16):e.toString(16)}function H(e,t){var r;t=t||1/0;for(var n=e.length,i=null,a=[],o=0;o<n;++o){if((r=e.charCodeAt(o))>55295&&r<57344){if(!i){if(r>56319){(t-=3)>-1&&a.push(239,191,189);continue}if(o+1===n){(t-=3)>-1&&a.push(239,191,189);continue}i=r;continue}if(r<56320){(t-=3)>-1&&a.push(239,191,189),i=r;continue}r=65536+(i-55296<<10|r-56320)}else i&&(t-=3)>-1&&a.push(239,191,189);if(i=null,r<128){if((t-=1)<0)break;a.push(r)}else if(r<2048){if((t-=2)<0)break;a.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;a.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;a.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return a}function U(e){return n.toByteArray(function(e){if((e=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}(e).replace(L,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function D(e,t,r,n){for(var i=0;i<n&&!(i+r>=t.length||i>=e.length);++i)t[i+r]=e[i];return i}}).call(this,r(15))},function(e,t,r){var n;e.exports=(n=n||function(e,t){var r=Object.create||function(){function e(){}return function(t){var r;return e.prototype=t,r=new e,e.prototype=null,r}}(),n={},i=n.lib={},a=i.Base={extend:function(e){var t=r(this);return e&&t.mixIn(e),t.hasOwnProperty("init")&&this.init!==t.init||(t.init=function(){t.$super.init.apply(this,arguments)}),t.init.prototype=t,t.$super=this,t},create:function(){var e=this.extend();return e.init.apply(e,arguments),e},init:function(){},mixIn:function(e){for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t]);e.hasOwnProperty("toString")&&(this.toString=e.toString)},clone:function(){return this.init.prototype.extend(this)}},o=i.WordArray=a.extend({init:function(e,t){e=this.words=e||[],this.sigBytes=void 0!=t?t:4*e.length},toString:function(e){return(e||f).stringify(this)},concat:function(e){var t=this.words,r=e.words,n=this.sigBytes,i=e.sigBytes;if(this.clamp(),n%4)for(var a=0;a<i;a++){var o=r[a>>>2]>>>24-a%4*8&255;t[n+a>>>2]|=o<<24-(n+a)%4*8}else for(var a=0;a<i;a+=4)t[n+a>>>2]=r[a>>>2];return this.sigBytes+=i,this},clamp:function(){var t=this.words,r=this.sigBytes;t[r>>>2]&=4294967295<<32-r%4*8,t.length=e.ceil(r/4)},clone:function(){var e=a.clone.call(this);return e.words=this.words.slice(0),e},random:function(t){for(var r,n=[],i=function(t){var t=t,r=987654321,n=4294967295;return function(){var i=((r=36969*(65535&r)+(r>>16)&n)<<16)+(t=18e3*(65535&t)+(t>>16)&n)&n;return i/=4294967296,(i+=.5)*(e.random()>.5?1:-1)}},a=0;a<t;a+=4){var s=i(4294967296*(r||e.random()));r=987654071*s(),n.push(4294967296*s()|0)}return new o.init(n,t)}}),s=n.enc={},f=s.Hex={stringify:function(e){for(var t=e.words,r=e.sigBytes,n=[],i=0;i<r;i++){var a=t[i>>>2]>>>24-i%4*8&255;n.push((a>>>4).toString(16)),n.push((15&a).toString(16))}return n.join("")},parse:function(e){for(var t=e.length,r=[],n=0;n<t;n+=2)r[n>>>3]|=parseInt(e.substr(n,2),16)<<24-n%8*4;return new o.init(r,t/2)}},u=s.Latin1={stringify:function(e){for(var t=e.words,r=e.sigBytes,n=[],i=0;i<r;i++){var a=t[i>>>2]>>>24-i%4*8&255;n.push(String.fromCharCode(a))}return n.join("")},parse:function(e){for(var t=e.length,r=[],n=0;n<t;n++)r[n>>>2]|=(255&e.charCodeAt(n))<<24-n%4*8;return new o.init(r,t)}},c=s.Utf8={stringify:function(e){try{return decodeURIComponent(escape(u.stringify(e)))}catch(e){throw new Error("Malformed UTF-8 data")}},parse:function(e){return u.parse(unescape(encodeURIComponent(e)))}},l=i.BufferedBlockAlgorithm=a.extend({reset:function(){this._data=new o.init,this._nDataBytes=0},_append:function(e){"string"==typeof e&&(e=c.parse(e)),this._data.concat(e),this._nDataBytes+=e.sigBytes},_process:function(t){var r=this._data,n=r.words,i=r.sigBytes,a=this.blockSize,s=4*a,f=i/s,u=(f=t?e.ceil(f):e.max((0|f)-this._minBufferSize,0))*a,c=e.min(4*u,i);if(u){for(var l=0;l<u;l+=a)this._doProcessBlock(n,l);var d=n.splice(0,u);r.sigBytes-=c}return new o.init(d,c)},clone:function(){var e=a.clone.call(this);return e._data=this._data.clone(),e},_minBufferSize:0}),d=(i.Hasher=l.extend({cfg:a.extend(),init:function(e){this.cfg=this.cfg.extend(e),this.reset()},reset:function(){l.reset.call(this),this._doReset()},update:function(e){return this._append(e),this._process(),this},finalize:function(e){e&&this._append(e);var t=this._doFinalize();return t},blockSize:16,_createHelper:function(e){return function(t,r){return new e.init(r).finalize(t)}},_createHmacHelper:function(e){return function(t,r){return new d.HMAC.init(e,r).finalize(t)}}}),n.algo={});return n}(Math),n)},function(e,t,r){"use strict";var n=t;n.version=r(141).version,n.utils=r(140),n.rand=r(138),n.curve=r(24),n.curves=r(132),n.ec=r(124),n.eddsa=r(120)},function(e,t,r){"use strict";var n=r(78),i=r(184),a=Object.prototype.toString;function o(e){return"[object Array]"===a.call(e)}function s(e){return null!==e&&"object"==typeof e}function f(e){return"[object Function]"===a.call(e)}function u(e,t){if(null!==e&&void 0!==e)if("object"!=typeof e&&(e=[e]),o(e))for(var r=0,n=e.length;r<n;r++)t.call(null,e[r],r,e);else for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.call(null,e[i],i,e)}e.exports={isArray:o,isArrayBuffer:function(e){return"[object ArrayBuffer]"===a.call(e)},isBuffer:i,isFormData:function(e){return"undefined"!=typeof FormData&&e instanceof FormData},isArrayBufferView:function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&e.buffer instanceof ArrayBuffer},isString:function(e){return"string"==typeof e},isNumber:function(e){return"number"==typeof e},isObject:s,isUndefined:function(e){return void 0===e},isDate:function(e){return"[object Date]"===a.call(e)},isFile:function(e){return"[object File]"===a.call(e)},isBlob:function(e){return"[object Blob]"===a.call(e)},isFunction:f,isStream:function(e){return s(e)&&f(e.pipe)},isURLSearchParams:function(e){return"undefined"!=typeof URLSearchParams&&e instanceof URLSearchParams},isStandardBrowserEnv:function(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product)&&"undefined"!=typeof window&&"undefined"!=typeof document},forEach:u,merge:function e(){var t={};function r(r,n){"object"==typeof t[n]&&"object"==typeof r?t[n]=e(t[n],r):t[n]=r}for(var n=0,i=arguments.length;n<i;n++)u(arguments[n],r);return t},extend:function(e,t,r){return u(t,function(t,i){e[i]=r&&"function"==typeof t?n(t,r):t}),e},trim:function(e){return e.replace(/^\s*/,"").replace(/\s*$/,"")}}},function(e,t){var r,n,i=e.exports={};function a(){throw new Error("setTimeout has not been defined")}function o(){throw new Error("clearTimeout has not been defined")}function s(e){if(r===setTimeout)return setTimeout(e,0);if((r===a||!r)&&setTimeout)return r=setTimeout,setTimeout(e,0);try{return r(e,0)}catch(t){try{return r.call(null,e,0)}catch(t){return r.call(this,e,0)}}}!function(){try{r="function"==typeof setTimeout?setTimeout:a}catch(e){r=a}try{n="function"==typeof clearTimeout?clearTimeout:o}catch(e){n=o}}();var f,u=[],c=!1,l=-1;function d(){c&&f&&(c=!1,f.length?u=f.concat(u):l=-1,u.length&&h())}function h(){if(!c){var e=s(d);c=!0;for(var t=u.length;t;){for(f=u,u=[];++l<t;)f&&f[l].run();l=-1,t=u.length}f=null,c=!1,function(e){if(n===clearTimeout)return clearTimeout(e);if((n===o||!n)&&clearTimeout)return n=clearTimeout,clearTimeout(e);try{n(e)}catch(t){try{return n.call(null,e)}catch(t){return n.call(this,e)}}}(e)}}function p(e,t){this.fun=e,this.array=t}function b(){}i.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];u.push(new p(e,t)),1!==u.length||c||s(h)},p.prototype.run=function(){this.fun.apply(null,this.array)},i.title="browser",i.browser=!0,i.env={},i.argv=[],i.version="",i.versions={},i.on=b,i.addListener=b,i.once=b,i.off=b,i.removeListener=b,i.removeAllListeners=b,i.emit=b,i.prependListener=b,i.prependOnceListener=b,i.listeners=function(e){return[]},i.binding=function(e){throw new Error("process.binding is not supported")},i.cwd=function(){return"/"},i.chdir=function(e){throw new Error("process.chdir is not supported")},i.umask=function(){return 0}},function(e,t,r){"use strict";var n=r(13),i=r(1);function a(e){return(e>>>24|e>>>8&65280|e<<8&16711680|(255&e)<<24)>>>0}function o(e){return 1===e.length?"0"+e:e}function s(e){return 7===e.length?"0"+e:6===e.length?"00"+e:5===e.length?"000"+e:4===e.length?"0000"+e:3===e.length?"00000"+e:2===e.length?"000000"+e:1===e.length?"0000000"+e:e}t.inherits=i,t.toArray=function(e,t){if(Array.isArray(e))return e.slice();if(!e)return[];var r=[];if("string"==typeof e)if(t){if("hex"===t)for((e=e.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(e="0"+e),n=0;n<e.length;n+=2)r.push(parseInt(e[n]+e[n+1],16))}else for(var n=0;n<e.length;n++){var i=e.charCodeAt(n),a=i>>8,o=255&i;a?r.push(a,o):r.push(o)}else for(n=0;n<e.length;n++)r[n]=0|e[n];return r},t.toHex=function(e){for(var t="",r=0;r<e.length;r++)t+=o(e[r].toString(16));return t},t.htonl=a,t.toHex32=function(e,t){for(var r="",n=0;n<e.length;n++){var i=e[n];"little"===t&&(i=a(i)),r+=s(i.toString(16))}return r},t.zero2=o,t.zero8=s,t.join32=function(e,t,r,i){var a=r-t;n(a%4==0);for(var o=new Array(a/4),s=0,f=t;s<o.length;s++,f+=4){var u;u="big"===i?e[f]<<24|e[f+1]<<16|e[f+2]<<8|e[f+3]:e[f+3]<<24|e[f+2]<<16|e[f+1]<<8|e[f],o[s]=u>>>0}return o},t.split32=function(e,t){for(var r=new Array(4*e.length),n=0,i=0;n<e.length;n++,i+=4){var a=e[n];"big"===t?(r[i]=a>>>24,r[i+1]=a>>>16&255,r[i+2]=a>>>8&255,r[i+3]=255&a):(r[i+3]=a>>>24,r[i+2]=a>>>16&255,r[i+1]=a>>>8&255,r[i]=255&a)}return r},t.rotr32=function(e,t){return e>>>t|e<<32-t},t.rotl32=function(e,t){return e<<t|e>>>32-t},t.sum32=function(e,t){return e+t>>>0},t.sum32_3=function(e,t,r){return e+t+r>>>0},t.sum32_4=function(e,t,r,n){return e+t+r+n>>>0},t.sum32_5=function(e,t,r,n,i){return e+t+r+n+i>>>0},t.sum64=function(e,t,r,n){var i=e[t],a=n+e[t+1]>>>0,o=(a<n?1:0)+r+i;e[t]=o>>>0,e[t+1]=a},t.sum64_hi=function(e,t,r,n){return(t+n>>>0<t?1:0)+e+r>>>0},t.sum64_lo=function(e,t,r,n){return t+n>>>0},t.sum64_4_hi=function(e,t,r,n,i,a,o,s){var f=0,u=t;return f+=(u=u+n>>>0)<t?1:0,f+=(u=u+a>>>0)<a?1:0,e+r+i+o+(f+=(u=u+s>>>0)<s?1:0)>>>0},t.sum64_4_lo=function(e,t,r,n,i,a,o,s){return t+n+a+s>>>0},t.sum64_5_hi=function(e,t,r,n,i,a,o,s,f,u){var c=0,l=t;return c+=(l=l+n>>>0)<t?1:0,c+=(l=l+a>>>0)<a?1:0,c+=(l=l+s>>>0)<s?1:0,e+r+i+o+f+(c+=(l=l+u>>>0)<u?1:0)>>>0},t.sum64_5_lo=function(e,t,r,n,i,a,o,s,f,u){return t+n+a+s+u>>>0},t.rotr64_hi=function(e,t,r){return(t<<32-r|e>>>r)>>>0},t.rotr64_lo=function(e,t,r){return(e<<32-r|t>>>r)>>>0},t.shr64_hi=function(e,t,r){return e>>>r},t.shr64_lo=function(e,t,r){return(e<<32-r|t>>>r)>>>0}},function(e,t,r){(function(e){!function(e,t){"use strict";function n(e,t){if(!e)throw new Error(t||"Assertion failed")}function i(e,t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}function a(e,t,r){if(a.isBN(e))return e;this.negative=0,this.words=null,this.length=0,this.red=null,null!==e&&("le"!==t&&"be"!==t||(r=t,t=10),this._init(e||0,t||10,r||"be"))}var o;"object"==typeof e?e.exports=a:t.BN=a,a.BN=a,a.wordSize=26;try{o=r(139).Buffer}catch(e){}function s(e,t,r){for(var n=0,i=Math.min(e.length,r),a=t;a<i;a++){var o=e.charCodeAt(a)-48;n<<=4,n|=o>=49&&o<=54?o-49+10:o>=17&&o<=22?o-17+10:15&o}return n}function f(e,t,r,n){for(var i=0,a=Math.min(e.length,r),o=t;o<a;o++){var s=e.charCodeAt(o)-48;i*=n,i+=s>=49?s-49+10:s>=17?s-17+10:s}return i}a.isBN=function(e){return e instanceof a||null!==e&&"object"==typeof e&&e.constructor.wordSize===a.wordSize&&Array.isArray(e.words)},a.max=function(e,t){return e.cmp(t)>0?e:t},a.min=function(e,t){return e.cmp(t)<0?e:t},a.prototype._init=function(e,t,r){if("number"==typeof e)return this._initNumber(e,t,r);if("object"==typeof e)return this._initArray(e,t,r);"hex"===t&&(t=16),n(t===(0|t)&&t>=2&&t<=36);var i=0;"-"===(e=e.toString().replace(/\s+/g,""))[0]&&i++,16===t?this._parseHex(e,i):this._parseBase(e,t,i),"-"===e[0]&&(this.negative=1),this.strip(),"le"===r&&this._initArray(this.toArray(),t,r)},a.prototype._initNumber=function(e,t,r){e<0&&(this.negative=1,e=-e),e<67108864?(this.words=[67108863&e],this.length=1):e<4503599627370496?(this.words=[67108863&e,e/67108864&67108863],this.length=2):(n(e<9007199254740992),this.words=[67108863&e,e/67108864&67108863,1],this.length=3),"le"===r&&this._initArray(this.toArray(),t,r)},a.prototype._initArray=function(e,t,r){if(n("number"==typeof e.length),e.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(e.length/3),this.words=new Array(this.length);for(var i=0;i<this.length;i++)this.words[i]=0;var a,o,s=0;if("be"===r)for(i=e.length-1,a=0;i>=0;i-=3)o=e[i]|e[i-1]<<8|e[i-2]<<16,this.words[a]|=o<<s&67108863,this.words[a+1]=o>>>26-s&67108863,(s+=24)>=26&&(s-=26,a++);else if("le"===r)for(i=0,a=0;i<e.length;i+=3)o=e[i]|e[i+1]<<8|e[i+2]<<16,this.words[a]|=o<<s&67108863,this.words[a+1]=o>>>26-s&67108863,(s+=24)>=26&&(s-=26,a++);return this.strip()},a.prototype._parseHex=function(e,t){this.length=Math.ceil((e.length-t)/6),this.words=new Array(this.length);for(var r=0;r<this.length;r++)this.words[r]=0;var n,i,a=0;for(r=e.length-6,n=0;r>=t;r-=6)i=s(e,r,r+6),this.words[n]|=i<<a&67108863,this.words[n+1]|=i>>>26-a&4194303,(a+=24)>=26&&(a-=26,n++);r+6!==t&&(i=s(e,t,r+6),this.words[n]|=i<<a&67108863,this.words[n+1]|=i>>>26-a&4194303),this.strip()},a.prototype._parseBase=function(e,t,r){this.words=[0],this.length=1;for(var n=0,i=1;i<=67108863;i*=t)n++;n--,i=i/t|0;for(var a=e.length-r,o=a%n,s=Math.min(a,a-o)+r,u=0,c=r;c<s;c+=n)u=f(e,c,c+n,t),this.imuln(i),this.words[0]+u<67108864?this.words[0]+=u:this._iaddn(u);if(0!==o){var l=1;for(u=f(e,c,e.length,t),c=0;c<o;c++)l*=t;this.imuln(l),this.words[0]+u<67108864?this.words[0]+=u:this._iaddn(u)}},a.prototype.copy=function(e){e.words=new Array(this.length);for(var t=0;t<this.length;t++)e.words[t]=this.words[t];e.length=this.length,e.negative=this.negative,e.red=this.red},a.prototype.clone=function(){var e=new a(null);return this.copy(e),e},a.prototype._expand=function(e){for(;this.length<e;)this.words[this.length++]=0;return this},a.prototype.strip=function(){for(;this.length>1&&0===this.words[this.length-1];)this.length--;return this._normSign()},a.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},a.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};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"],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],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 d(e,t,r){r.negative=t.negative^e.negative;var n=e.length+t.length|0;r.length=n,n=n-1|0;var i=0|e.words[0],a=0|t.words[0],o=i*a,s=67108863&o,f=o/67108864|0;r.words[0]=s;for(var u=1;u<n;u++){for(var c=f>>>26,l=67108863&f,d=Math.min(u,t.length-1),h=Math.max(0,u-e.length+1);h<=d;h++){var p=u-h|0;c+=(o=(i=0|e.words[p])*(a=0|t.words[h])+l)/67108864|0,l=67108863&o}r.words[u]=0|l,f=0|c}return 0!==f?r.words[u]=0|f:r.length--,r.strip()}a.prototype.toString=function(e,t){var r;if(e=e||10,t=0|t||1,16===e||"hex"===e){r="";for(var i=0,a=0,o=0;o<this.length;o++){var s=this.words[o],f=(16777215&(s<<i|a)).toString(16);r=0!==(a=s>>>24-i&16777215)||o!==this.length-1?u[6-f.length]+f+r:f+r,(i+=2)>=26&&(i-=26,o--)}for(0!==a&&(r=a.toString(16)+r);r.length%t!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}if(e===(0|e)&&e>=2&&e<=36){var d=c[e],h=l[e];r="";var p=this.clone();for(p.negative=0;!p.isZero();){var b=p.modn(h).toString(e);r=(p=p.idivn(h)).isZero()?b+r:u[d-b.length]+b+r}for(this.isZero()&&(r="0"+r);r.length%t!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}n(!1,"Base should be between 2 and 36")},a.prototype.toNumber=function(){var e=this.words[0];return 2===this.length?e+=67108864*this.words[1]:3===this.length&&1===this.words[2]?e+=4503599627370496+67108864*this.words[1]:this.length>2&&n(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-e:e},a.prototype.toJSON=function(){return this.toString(16)},a.prototype.toBuffer=function(e,t){return n(void 0!==o),this.toArrayLike(o,e,t)},a.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)},a.prototype.toArrayLike=function(e,t,r){var i=this.byteLength(),a=r||Math.max(1,i);n(i<=a,"byte array longer than desired length"),n(a>0,"Requested array length <= 0"),this.strip();var o,s,f="le"===t,u=new e(a),c=this.clone();if(f){for(s=0;!c.isZero();s++)o=c.andln(255),c.iushrn(8),u[s]=o;for(;s<a;s++)u[s]=0}else{for(s=0;s<a-i;s++)u[s]=0;for(s=0;!c.isZero();s++)o=c.andln(255),c.iushrn(8),u[a-s-1]=o}return u},Math.clz32?a.prototype._countBits=function(e){return 32-Math.clz32(e)}:a.prototype._countBits=function(e){var t=e,r=0;return t>=4096&&(r+=13,t>>>=13),t>=64&&(r+=7,t>>>=7),t>=8&&(r+=4,t>>>=4),t>=2&&(r+=2,t>>>=2),r+t},a.prototype._zeroBits=function(e){if(0===e)return 26;var t=e,r=0;return 0==(8191&t)&&(r+=13,t>>>=13),0==(127&t)&&(r+=7,t>>>=7),0==(15&t)&&(r+=4,t>>>=4),0==(3&t)&&(r+=2,t>>>=2),0==(1&t)&&r++,r},a.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._countBits(e);return 26*(this.length-1)+t},a.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,t=0;t<this.length;t++){var r=this._zeroBits(this.words[t]);if(e+=r,26!==r)break}return e},a.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},a.prototype.toTwos=function(e){return 0!==this.negative?this.abs().inotn(e).iaddn(1):this.clone()},a.prototype.fromTwos=function(e){return this.testn(e-1)?this.notn(e).iaddn(1).ineg():this.clone()},a.prototype.isNeg=function(){return 0!==this.negative},a.prototype.neg=function(){return this.clone().ineg()},a.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},a.prototype.iuor=function(e){for(;this.length<e.length;)this.words[this.length++]=0;for(var t=0;t<e.length;t++)this.words[t]=this.words[t]|e.words[t];return this.strip()},a.prototype.ior=function(e){return n(0==(this.negative|e.negative)),this.iuor(e)},a.prototype.or=function(e){return this.length>e.length?this.clone().ior(e):e.clone().ior(this)},a.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},a.prototype.iuand=function(e){var t;t=this.length>e.length?e:this;for(var r=0;r<t.length;r++)this.words[r]=this.words[r]&e.words[r];return this.length=t.length,this.strip()},a.prototype.iand=function(e){return n(0==(this.negative|e.negative)),this.iuand(e)},a.prototype.and=function(e){return this.length>e.length?this.clone().iand(e):e.clone().iand(this)},a.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},a.prototype.iuxor=function(e){var t,r;this.length>e.length?(t=this,r=e):(t=e,r=this);for(var n=0;n<r.length;n++)this.words[n]=t.words[n]^r.words[n];if(this!==t)for(;n<t.length;n++)this.words[n]=t.words[n];return this.length=t.length,this.strip()},a.prototype.ixor=function(e){return n(0==(this.negative|e.negative)),this.iuxor(e)},a.prototype.xor=function(e){return this.length>e.length?this.clone().ixor(e):e.clone().ixor(this)},a.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},a.prototype.inotn=function(e){n("number"==typeof e&&e>=0);var t=0|Math.ceil(e/26),r=e%26;this._expand(t),r>0&&t--;for(var i=0;i<t;i++)this.words[i]=67108863&~this.words[i];return r>0&&(this.words[i]=~this.words[i]&67108863>>26-r),this.strip()},a.prototype.notn=function(e){return this.clone().inotn(e)},a.prototype.setn=function(e,t){n("number"==typeof e&&e>=0);var r=e/26|0,i=e%26;return this._expand(r+1),this.words[r]=t?this.words[r]|1<<i:this.words[r]&~(1<<i),this.strip()},a.prototype.iadd=function(e){var t,r,n;if(0!==this.negative&&0===e.negative)return this.negative=0,t=this.isub(e),this.negative^=1,this._normSign();if(0===this.negative&&0!==e.negative)return e.negative=0,t=this.isub(e),e.negative=1,t._normSign();this.length>e.length?(r=this,n=e):(r=e,n=this);for(var i=0,a=0;a<n.length;a++)t=(0|r.words[a])+(0|n.words[a])+i,this.words[a]=67108863&t,i=t>>>26;for(;0!==i&&a<r.length;a++)t=(0|r.words[a])+i,this.words[a]=67108863&t,i=t>>>26;if(this.length=r.length,0!==i)this.words[this.length]=i,this.length++;else if(r!==this)for(;a<r.length;a++)this.words[a]=r.words[a];return this},a.prototype.add=function(e){var t;return 0!==e.negative&&0===this.negative?(e.negative=0,t=this.sub(e),e.negative^=1,t):0===e.negative&&0!==this.negative?(this.negative=0,t=e.sub(this),this.negative=1,t):this.length>e.length?this.clone().iadd(e):e.clone().iadd(this)},a.prototype.isub=function(e){if(0!==e.negative){e.negative=0;var t=this.iadd(e);return e.negative=1,t._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(e),this.negative=1,this._normSign();var r,n,i=this.cmp(e);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;i>0?(r=this,n=e):(r=e,n=this);for(var a=0,o=0;o<n.length;o++)a=(t=(0|r.words[o])-(0|n.words[o])+a)>>26,this.words[o]=67108863&t;for(;0!==a&&o<r.length;o++)a=(t=(0|r.words[o])+a)>>26,this.words[o]=67108863&t;if(0===a&&o<r.length&&r!==this)for(;o<r.length;o++)this.words[o]=r.words[o];return this.length=Math.max(this.length,o),r!==this&&(this.negative=1),this.strip()},a.prototype.sub=function(e){return this.clone().isub(e)};var h=function(e,t,r){var n,i,a,o=e.words,s=t.words,f=r.words,u=0,c=0|o[0],l=8191&c,d=c>>>13,h=0|o[1],p=8191&h,b=h>>>13,v=0|o[2],m=8191&v,g=v>>>13,y=0|o[3],w=8191&y,_=y>>>13,S=0|o[4],k=8191&S,x=S>>>13,A=0|o[5],M=8191&A,E=A>>>13,T=0|o[6],I=8191&T,P=T>>>13,O=0|o[7],R=8191&O,C=O>>>13,j=0|o[8],B=8191&j,N=j>>>13,F=0|o[9],L=8191&F,z=F>>>13,H=0|s[0],U=8191&H,D=H>>>13,q=0|s[1],Y=8191&q,K=q>>>13,V=0|s[2],W=8191&V,X=V>>>13,Z=0|s[3],G=8191&Z,Q=Z>>>13,$=0|s[4],J=8191&$,ee=$>>>13,te=0|s[5],re=8191&te,ne=te>>>13,ie=0|s[6],ae=8191&ie,oe=ie>>>13,se=0|s[7],fe=8191&se,ue=se>>>13,ce=0|s[8],le=8191&ce,de=ce>>>13,he=0|s[9],pe=8191&he,be=he>>>13;r.negative=e.negative^t.negative,r.length=19;var ve=(u+(n=Math.imul(l,U))|0)+((8191&(i=(i=Math.imul(l,D))+Math.imul(d,U)|0))<<13)|0;u=((a=Math.imul(d,D))+(i>>>13)|0)+(ve>>>26)|0,ve&=67108863,n=Math.imul(p,U),i=(i=Math.imul(p,D))+Math.imul(b,U)|0,a=Math.imul(b,D);var me=(u+(n=n+Math.imul(l,Y)|0)|0)+((8191&(i=(i=i+Math.imul(l,K)|0)+Math.imul(d,Y)|0))<<13)|0;u=((a=a+Math.imul(d,K)|0)+(i>>>13)|0)+(me>>>26)|0,me&=67108863,n=Math.imul(m,U),i=(i=Math.imul(m,D))+Math.imul(g,U)|0,a=Math.imul(g,D),n=n+Math.imul(p,Y)|0,i=(i=i+Math.imul(p,K)|0)+Math.imul(b,Y)|0,a=a+Math.imul(b,K)|0;var ge=(u+(n=n+Math.imul(l,W)|0)|0)+((8191&(i=(i=i+Math.imul(l,X)|0)+Math.imul(d,W)|0))<<13)|0;u=((a=a+Math.imul(d,X)|0)+(i>>>13)|0)+(ge>>>26)|0,ge&=67108863,n=Math.imul(w,U),i=(i=Math.imul(w,D))+Math.imul(_,U)|0,a=Math.imul(_,D),n=n+Math.imul(m,Y)|0,i=(i=i+Math.imul(m,K)|0)+Math.imul(g,Y)|0,a=a+Math.imul(g,K)|0,n=n+Math.imul(p,W)|0,i=(i=i+Math.imul(p,X)|0)+Math.imul(b,W)|0,a=a+Math.imul(b,X)|0;var ye=(u+(n=n+Math.imul(l,G)|0)|0)+((8191&(i=(i=i+Math.imul(l,Q)|0)+Math.imul(d,G)|0))<<13)|0;u=((a=a+Math.imul(d,Q)|0)+(i>>>13)|0)+(ye>>>26)|0,ye&=67108863,n=Math.imul(k,U),i=(i=Math.imul(k,D))+Math.imul(x,U)|0,a=Math.imul(x,D),n=n+Math.imul(w,Y)|0,i=(i=i+Math.imul(w,K)|0)+Math.imul(_,Y)|0,a=a+Math.imul(_,K)|0,n=n+Math.imul(m,W)|0,i=(i=i+Math.imul(m,X)|0)+Math.imul(g,W)|0,a=a+Math.imul(g,X)|0,n=n+Math.imul(p,G)|0,i=(i=i+Math.imul(p,Q)|0)+Math.imul(b,G)|0,a=a+Math.imul(b,Q)|0;var we=(u+(n=n+Math.imul(l,J)|0)|0)+((8191&(i=(i=i+Math.imul(l,ee)|0)+Math.imul(d,J)|0))<<13)|0;u=((a=a+Math.imul(d,ee)|0)+(i>>>13)|0)+(we>>>26)|0,we&=67108863,n=Math.imul(M,U),i=(i=Math.imul(M,D))+Math.imul(E,U)|0,a=Math.imul(E,D),n=n+Math.imul(k,Y)|0,i=(i=i+Math.imul(k,K)|0)+Math.imul(x,Y)|0,a=a+Math.imul(x,K)|0,n=n+Math.imul(w,W)|0,i=(i=i+Math.imul(w,X)|0)+Math.imul(_,W)|0,a=a+Math.imul(_,X)|0,n=n+Math.imul(m,G)|0,i=(i=i+Math.imul(m,Q)|0)+Math.imul(g,G)|0,a=a+Math.imul(g,Q)|0,n=n+Math.imul(p,J)|0,i=(i=i+Math.imul(p,ee)|0)+Math.imul(b,J)|0,a=a+Math.imul(b,ee)|0;var _e=(u+(n=n+Math.imul(l,re)|0)|0)+((8191&(i=(i=i+Math.imul(l,ne)|0)+Math.imul(d,re)|0))<<13)|0;u=((a=a+Math.imul(d,ne)|0)+(i>>>13)|0)+(_e>>>26)|0,_e&=67108863,n=Math.imul(I,U),i=(i=Math.imul(I,D))+Math.imul(P,U)|0,a=Math.imul(P,D),n=n+Math.imul(M,Y)|0,i=(i=i+Math.imul(M,K)|0)+Math.imul(E,Y)|0,a=a+Math.imul(E,K)|0,n=n+Math.imul(k,W)|0,i=(i=i+Math.imul(k,X)|0)+Math.imul(x,W)|0,a=a+Math.imul(x,X)|0,n=n+Math.imul(w,G)|0,i=(i=i+Math.imul(w,Q)|0)+Math.imul(_,G)|0,a=a+Math.imul(_,Q)|0,n=n+Math.imul(m,J)|0,i=(i=i+Math.imul(m,ee)|0)+Math.imul(g,J)|0,a=a+Math.imul(g,ee)|0,n=n+Math.imul(p,re)|0,i=(i=i+Math.imul(p,ne)|0)+Math.imul(b,re)|0,a=a+Math.imul(b,ne)|0;var Se=(u+(n=n+Math.imul(l,ae)|0)|0)+((8191&(i=(i=i+Math.imul(l,oe)|0)+Math.imul(d,ae)|0))<<13)|0;u=((a=a+Math.imul(d,oe)|0)+(i>>>13)|0)+(Se>>>26)|0,Se&=67108863,n=Math.imul(R,U),i=(i=Math.imul(R,D))+Math.imul(C,U)|0,a=Math.imul(C,D),n=n+Math.imul(I,Y)|0,i=(i=i+Math.imul(I,K)|0)+Math.imul(P,Y)|0,a=a+Math.imul(P,K)|0,n=n+Math.imul(M,W)|0,i=(i=i+Math.imul(M,X)|0)+Math.imul(E,W)|0,a=a+Math.imul(E,X)|0,n=n+Math.imul(k,G)|0,i=(i=i+Math.imul(k,Q)|0)+Math.imul(x,G)|0,a=a+Math.imul(x,Q)|0,n=n+Math.imul(w,J)|0,i=(i=i+Math.imul(w,ee)|0)+Math.imul(_,J)|0,a=a+Math.imul(_,ee)|0,n=n+Math.imul(m,re)|0,i=(i=i+Math.imul(m,ne)|0)+Math.imul(g,re)|0,a=a+Math.imul(g,ne)|0,n=n+Math.imul(p,ae)|0,i=(i=i+Math.imul(p,oe)|0)+Math.imul(b,ae)|0,a=a+Math.imul(b,oe)|0;var ke=(u+(n=n+Math.imul(l,fe)|0)|0)+((8191&(i=(i=i+Math.imul(l,ue)|0)+Math.imul(d,fe)|0))<<13)|0;u=((a=a+Math.imul(d,ue)|0)+(i>>>13)|0)+(ke>>>26)|0,ke&=67108863,n=Math.imul(B,U),i=(i=Math.imul(B,D))+Math.imul(N,U)|0,a=Math.imul(N,D),n=n+Math.imul(R,Y)|0,i=(i=i+Math.imul(R,K)|0)+Math.imul(C,Y)|0,a=a+Math.imul(C,K)|0,n=n+Math.imul(I,W)|0,i=(i=i+Math.imul(I,X)|0)+Math.imul(P,W)|0,a=a+Math.imul(P,X)|0,n=n+Math.imul(M,G)|0,i=(i=i+Math.imul(M,Q)|0)+Math.imul(E,G)|0,a=a+Math.imul(E,Q)|0,n=n+Math.imul(k,J)|0,i=(i=i+Math.imul(k,ee)|0)+Math.imul(x,J)|0,a=a+Math.imul(x,ee)|0,n=n+Math.imul(w,re)|0,i=(i=i+Math.imul(w,ne)|0)+Math.imul(_,re)|0,a=a+Math.imul(_,ne)|0,n=n+Math.imul(m,ae)|0,i=(i=i+Math.imul(m,oe)|0)+Math.imul(g,ae)|0,a=a+Math.imul(g,oe)|0,n=n+Math.imul(p,fe)|0,i=(i=i+Math.imul(p,ue)|0)+Math.imul(b,fe)|0,a=a+Math.imul(b,ue)|0;var xe=(u+(n=n+Math.imul(l,le)|0)|0)+((8191&(i=(i=i+Math.imul(l,de)|0)+Math.imul(d,le)|0))<<13)|0;u=((a=a+Math.imul(d,de)|0)+(i>>>13)|0)+(xe>>>26)|0,xe&=67108863,n=Math.imul(L,U),i=(i=Math.imul(L,D))+Math.imul(z,U)|0,a=Math.imul(z,D),n=n+Math.imul(B,Y)|0,i=(i=i+Math.imul(B,K)|0)+Math.imul(N,Y)|0,a=a+Math.imul(N,K)|0,n=n+Math.imul(R,W)|0,i=(i=i+Math.imul(R,X)|0)+Math.imul(C,W)|0,a=a+Math.imul(C,X)|0,n=n+Math.imul(I,G)|0,i=(i=i+Math.imul(I,Q)|0)+Math.imul(P,G)|0,a=a+Math.imul(P,Q)|0,n=n+Math.imul(M,J)|0,i=(i=i+Math.imul(M,ee)|0)+Math.imul(E,J)|0,a=a+Math.imul(E,ee)|0,n=n+Math.imul(k,re)|0,i=(i=i+Math.imul(k,ne)|0)+Math.imul(x,re)|0,a=a+Math.imul(x,ne)|0,n=n+Math.imul(w,ae)|0,i=(i=i+Math.imul(w,oe)|0)+Math.imul(_,ae)|0,a=a+Math.imul(_,oe)|0,n=n+Math.imul(m,fe)|0,i=(i=i+Math.imul(m,ue)|0)+Math.imul(g,fe)|0,a=a+Math.imul(g,ue)|0,n=n+Math.imul(p,le)|0,i=(i=i+Math.imul(p,de)|0)+Math.imul(b,le)|0,a=a+Math.imul(b,de)|0;var Ae=(u+(n=n+Math.imul(l,pe)|0)|0)+((8191&(i=(i=i+Math.imul(l,be)|0)+Math.imul(d,pe)|0))<<13)|0;u=((a=a+Math.imul(d,be)|0)+(i>>>13)|0)+(Ae>>>26)|0,Ae&=67108863,n=Math.imul(L,Y),i=(i=Math.imul(L,K))+Math.imul(z,Y)|0,a=Math.imul(z,K),n=n+Math.imul(B,W)|0,i=(i=i+Math.imul(B,X)|0)+Math.imul(N,W)|0,a=a+Math.imul(N,X)|0,n=n+Math.imul(R,G)|0,i=(i=i+Math.imul(R,Q)|0)+Math.imul(C,G)|0,a=a+Math.imul(C,Q)|0,n=n+Math.imul(I,J)|0,i=(i=i+Math.imul(I,ee)|0)+Math.imul(P,J)|0,a=a+Math.imul(P,ee)|0,n=n+Math.imul(M,re)|0,i=(i=i+Math.imul(M,ne)|0)+Math.imul(E,re)|0,a=a+Math.imul(E,ne)|0,n=n+Math.imul(k,ae)|0,i=(i=i+Math.imul(k,oe)|0)+Math.imul(x,ae)|0,a=a+Math.imul(x,oe)|0,n=n+Math.imul(w,fe)|0,i=(i=i+Math.imul(w,ue)|0)+Math.imul(_,fe)|0,a=a+Math.imul(_,ue)|0,n=n+Math.imul(m,le)|0,i=(i=i+Math.imul(m,de)|0)+Math.imul(g,le)|0,a=a+Math.imul(g,de)|0;var Me=(u+(n=n+Math.imul(p,pe)|0)|0)+((8191&(i=(i=i+Math.imul(p,be)|0)+Math.imul(b,pe)|0))<<13)|0;u=((a=a+Math.imul(b,be)|0)+(i>>>13)|0)+(Me>>>26)|0,Me&=67108863,n=Math.imul(L,W),i=(i=Math.imul(L,X))+Math.imul(z,W)|0,a=Math.imul(z,X),n=n+Math.imul(B,G)|0,i=(i=i+Math.imul(B,Q)|0)+Math.imul(N,G)|0,a=a+Math.imul(N,Q)|0,n=n+Math.imul(R,J)|0,i=(i=i+Math.imul(R,ee)|0)+Math.imul(C,J)|0,a=a+Math.imul(C,ee)|0,n=n+Math.imul(I,re)|0,i=(i=i+Math.imul(I,ne)|0)+Math.imul(P,re)|0,a=a+Math.imul(P,ne)|0,n=n+Math.imul(M,ae)|0,i=(i=i+Math.imul(M,oe)|0)+Math.imul(E,ae)|0,a=a+Math.imul(E,oe)|0,n=n+Math.imul(k,fe)|0,i=(i=i+Math.imul(k,ue)|0)+Math.imul(x,fe)|0,a=a+Math.imul(x,ue)|0,n=n+Math.imul(w,le)|0,i=(i=i+Math.imul(w,de)|0)+Math.imul(_,le)|0,a=a+Math.imul(_,de)|0;var Ee=(u+(n=n+Math.imul(m,pe)|0)|0)+((8191&(i=(i=i+Math.imul(m,be)|0)+Math.imul(g,pe)|0))<<13)|0;u=((a=a+Math.imul(g,be)|0)+(i>>>13)|0)+(Ee>>>26)|0,Ee&=67108863,n=Math.imul(L,G),i=(i=Math.imul(L,Q))+Math.imul(z,G)|0,a=Math.imul(z,Q),n=n+Math.imul(B,J)|0,i=(i=i+Math.imul(B,ee)|0)+Math.imul(N,J)|0,a=a+Math.imul(N,ee)|0,n=n+Math.imul(R,re)|0,i=(i=i+Math.imul(R,ne)|0)+Math.imul(C,re)|0,a=a+Math.imul(C,ne)|0,n=n+Math.imul(I,ae)|0,i=(i=i+Math.imul(I,oe)|0)+Math.imul(P,ae)|0,a=a+Math.imul(P,oe)|0,n=n+Math.imul(M,fe)|0,i=(i=i+Math.imul(M,ue)|0)+Math.imul(E,fe)|0,a=a+Math.imul(E,ue)|0,n=n+Math.imul(k,le)|0,i=(i=i+Math.imul(k,de)|0)+Math.imul(x,le)|0,a=a+Math.imul(x,de)|0;var Te=(u+(n=n+Math.imul(w,pe)|0)|0)+((8191&(i=(i=i+Math.imul(w,be)|0)+Math.imul(_,pe)|0))<<13)|0;u=((a=a+Math.imul(_,be)|0)+(i>>>13)|0)+(Te>>>26)|0,Te&=67108863,n=Math.imul(L,J),i=(i=Math.imul(L,ee))+Math.imul(z,J)|0,a=Math.imul(z,ee),n=n+Math.imul(B,re)|0,i=(i=i+Math.imul(B,ne)|0)+Math.imul(N,re)|0,a=a+Math.imul(N,ne)|0,n=n+Math.imul(R,ae)|0,i=(i=i+Math.imul(R,oe)|0)+Math.imul(C,ae)|0,a=a+Math.imul(C,oe)|0,n=n+Math.imul(I,fe)|0,i=(i=i+Math.imul(I,ue)|0)+Math.imul(P,fe)|0,a=a+Math.imul(P,ue)|0,n=n+Math.imul(M,le)|0,i=(i=i+Math.imul(M,de)|0)+Math.imul(E,le)|0,a=a+Math.imul(E,de)|0;var Ie=(u+(n=n+Math.imul(k,pe)|0)|0)+((8191&(i=(i=i+Math.imul(k,be)|0)+Math.imul(x,pe)|0))<<13)|0;u=((a=a+Math.imul(x,be)|0)+(i>>>13)|0)+(Ie>>>26)|0,Ie&=67108863,n=Math.imul(L,re),i=(i=Math.imul(L,ne))+Math.imul(z,re)|0,a=Math.imul(z,ne),n=n+Math.imul(B,ae)|0,i=(i=i+Math.imul(B,oe)|0)+Math.imul(N,ae)|0,a=a+Math.imul(N,oe)|0,n=n+Math.imul(R,fe)|0,i=(i=i+Math.imul(R,ue)|0)+Math.imul(C,fe)|0,a=a+Math.imul(C,ue)|0,n=n+Math.imul(I,le)|0,i=(i=i+Math.imul(I,de)|0)+Math.imul(P,le)|0,a=a+Math.imul(P,de)|0;var Pe=(u+(n=n+Math.imul(M,pe)|0)|0)+((8191&(i=(i=i+Math.imul(M,be)|0)+Math.imul(E,pe)|0))<<13)|0;u=((a=a+Math.imul(E,be)|0)+(i>>>13)|0)+(Pe>>>26)|0,Pe&=67108863,n=Math.imul(L,ae),i=(i=Math.imul(L,oe))+Math.imul(z,ae)|0,a=Math.imul(z,oe),n=n+Math.imul(B,fe)|0,i=(i=i+Math.imul(B,ue)|0)+Math.imul(N,fe)|0,a=a+Math.imul(N,ue)|0,n=n+Math.imul(R,le)|0,i=(i=i+Math.imul(R,de)|0)+Math.imul(C,le)|0,a=a+Math.imul(C,de)|0;var Oe=(u+(n=n+Math.imul(I,pe)|0)|0)+((8191&(i=(i=i+Math.imul(I,be)|0)+Math.imul(P,pe)|0))<<13)|0;u=((a=a+Math.imul(P,be)|0)+(i>>>13)|0)+(Oe>>>26)|0,Oe&=67108863,n=Math.imul(L,fe),i=(i=Math.imul(L,ue))+Math.imul(z,fe)|0,a=Math.imul(z,ue),n=n+Math.imul(B,le)|0,i=(i=i+Math.imul(B,de)|0)+Math.imul(N,le)|0,a=a+Math.imul(N,de)|0;var Re=(u+(n=n+Math.imul(R,pe)|0)|0)+((8191&(i=(i=i+Math.imul(R,be)|0)+Math.imul(C,pe)|0))<<13)|0;u=((a=a+Math.imul(C,be)|0)+(i>>>13)|0)+(Re>>>26)|0,Re&=67108863,n=Math.imul(L,le),i=(i=Math.imul(L,de))+Math.imul(z,le)|0,a=Math.imul(z,de);var Ce=(u+(n=n+Math.imul(B,pe)|0)|0)+((8191&(i=(i=i+Math.imul(B,be)|0)+Math.imul(N,pe)|0))<<13)|0;u=((a=a+Math.imul(N,be)|0)+(i>>>13)|0)+(Ce>>>26)|0,Ce&=67108863;var je=(u+(n=Math.imul(L,pe))|0)+((8191&(i=(i=Math.imul(L,be))+Math.imul(z,pe)|0))<<13)|0;return u=((a=Math.imul(z,be))+(i>>>13)|0)+(je>>>26)|0,je&=67108863,f[0]=ve,f[1]=me,f[2]=ge,f[3]=ye,f[4]=we,f[5]=_e,f[6]=Se,f[7]=ke,f[8]=xe,f[9]=Ae,f[10]=Me,f[11]=Ee,f[12]=Te,f[13]=Ie,f[14]=Pe,f[15]=Oe,f[16]=Re,f[17]=Ce,f[18]=je,0!==u&&(f[19]=u,r.length++),r};function p(e,t,r){return(new b).mulp(e,t,r)}function b(e,t){this.x=e,this.y=t}Math.imul||(h=d),a.prototype.mulTo=function(e,t){var r=this.length+e.length;return 10===this.length&&10===e.length?h(this,e,t):r<63?d(this,e,t):r<1024?function(e,t,r){r.negative=t.negative^e.negative,r.length=e.length+t.length;for(var n=0,i=0,a=0;a<r.length-1;a++){var o=i;i=0;for(var s=67108863&n,f=Math.min(a,t.length-1),u=Math.max(0,a-e.length+1);u<=f;u++){var c=a-u,l=(0|e.words[c])*(0|t.words[u]),d=67108863&l;s=67108863&(d=d+s|0),i+=(o=(o=o+(l/67108864|0)|0)+(d>>>26)|0)>>>26,o&=67108863}r.words[a]=s,n=o,o=i}return 0!==n?r.words[a]=n:r.length--,r.strip()}(this,e,t):p(this,e,t)},b.prototype.makeRBT=function(e){for(var t=new Array(e),r=a.prototype._countBits(e)-1,n=0;n<e;n++)t[n]=this.revBin(n,r,e);return t},b.prototype.revBin=function(e,t,r){if(0===e||e===r-1)return e;for(var n=0,i=0;i<t;i++)n|=(1&e)<<t-i-1,e>>=1;return n},b.prototype.permute=function(e,t,r,n,i,a){for(var o=0;o<a;o++)n[o]=t[e[o]],i[o]=r[e[o]]},b.prototype.transform=function(e,t,r,n,i,a){this.permute(a,e,t,r,n,i);for(var o=1;o<i;o<<=1)for(var s=o<<1,f=Math.cos(2*Math.PI/s),u=Math.sin(2*Math.PI/s),c=0;c<i;c+=s)for(var l=f,d=u,h=0;h<o;h++){var p=r[c+h],b=n[c+h],v=r[c+h+o],m=n[c+h+o],g=l*v-d*m;m=l*m+d*v,v=g,r[c+h]=p+v,n[c+h]=b+m,r[c+h+o]=p-v,n[c+h+o]=b-m,h!==s&&(g=f*l-u*d,d=f*d+u*l,l=g)}},b.prototype.guessLen13b=function(e,t){var r=1|Math.max(t,e),n=1&r,i=0;for(r=r/2|0;r;r>>>=1)i++;return 1<<i+1+n},b.prototype.conjugate=function(e,t,r){if(!(r<=1))for(var n=0;n<r/2;n++){var i=e[n];e[n]=e[r-n-1],e[r-n-1]=i,i=t[n],t[n]=-t[r-n-1],t[r-n-1]=-i}},b.prototype.normalize13b=function(e,t){for(var r=0,n=0;n<t/2;n++){var i=8192*Math.round(e[2*n+1]/t)+Math.round(e[2*n]/t)+r;e[n]=67108863&i,r=i<67108864?0:i/67108864|0}return e},b.prototype.convert13b=function(e,t,r,i){for(var a=0,o=0;o<t;o++)a+=0|e[o],r[2*o]=8191&a,a>>>=13,r[2*o+1]=8191&a,a>>>=13;for(o=2*t;o<i;++o)r[o]=0;n(0===a),n(0==(-8192&a))},b.prototype.stub=function(e){for(var t=new Array(e),r=0;r<e;r++)t[r]=0;return t},b.prototype.mulp=function(e,t,r){var n=2*this.guessLen13b(e.length,t.length),i=this.makeRBT(n),a=this.stub(n),o=new Array(n),s=new Array(n),f=new Array(n),u=new Array(n),c=new Array(n),l=new Array(n),d=r.words;d.length=n,this.convert13b(e.words,e.length,o,n),this.convert13b(t.words,t.length,u,n),this.transform(o,a,s,f,n,i),this.transform(u,a,c,l,n,i);for(var h=0;h<n;h++){var p=s[h]*c[h]-f[h]*l[h];f[h]=s[h]*l[h]+f[h]*c[h],s[h]=p}return this.conjugate(s,f,n),this.transform(s,f,d,a,n,i),this.conjugate(d,a,n),this.normalize13b(d,n),r.negative=e.negative^t.negative,r.length=e.length+t.length,r.strip()},a.prototype.mul=function(e){var t=new a(null);return t.words=new Array(this.length+e.length),this.mulTo(e,t)},a.prototype.mulf=function(e){var t=new a(null);return t.words=new Array(this.length+e.length),p(this,e,t)},a.prototype.imul=function(e){return this.clone().mulTo(e,this)},a.prototype.imuln=function(e){n("number"==typeof e),n(e<67108864);for(var t=0,r=0;r<this.length;r++){var i=(0|this.words[r])*e,a=(67108863&i)+(67108863&t);t>>=26,t+=i/67108864|0,t+=a>>>26,this.words[r]=67108863&a}return 0!==t&&(this.words[r]=t,this.length++),this},a.prototype.muln=function(e){return this.clone().imuln(e)},a.prototype.sqr=function(){return this.mul(this)},a.prototype.isqr=function(){return this.imul(this.clone())},a.prototype.pow=function(e){var t=function(e){for(var t=new Array(e.bitLength()),r=0;r<t.length;r++){var n=r/26|0,i=r%26;t[r]=(e.words[n]&1<<i)>>>i}return t}(e);if(0===t.length)return new a(1);for(var r=this,n=0;n<t.length&&0===t[n];n++,r=r.sqr());if(++n<t.length)for(var i=r.sqr();n<t.length;n++,i=i.sqr())0!==t[n]&&(r=r.mul(i));return r},a.prototype.iushln=function(e){n("number"==typeof e&&e>=0);var t,r=e%26,i=(e-r)/26,a=67108863>>>26-r<<26-r;if(0!==r){var o=0;for(t=0;t<this.length;t++){var s=this.words[t]&a,f=(0|this.words[t])-s<<r;this.words[t]=f|o,o=s>>>26-r}o&&(this.words[t]=o,this.length++)}if(0!==i){for(t=this.length-1;t>=0;t--)this.words[t+i]=this.words[t];for(t=0;t<i;t++)this.words[t]=0;this.length+=i}return this.strip()},a.prototype.ishln=function(e){return n(0===this.negative),this.iushln(e)},a.prototype.iushrn=function(e,t,r){var i;n("number"==typeof e&&e>=0),i=t?(t-t%26)/26:0;var a=e%26,o=Math.min((e-a)/26,this.length),s=67108863^67108863>>>a<<a,f=r;if(i-=o,i=Math.max(0,i),f){for(var u=0;u<o;u++)f.words[u]=this.words[u];f.length=o}if(0===o);else if(this.length>o)for(this.length-=o,u=0;u<this.length;u++)this.words[u]=this.words[u+o];else this.words[0]=0,this.length=1;var c=0;for(u=this.length-1;u>=0&&(0!==c||u>=i);u--){var l=0|this.words[u];this.words[u]=c<<26-a|l>>>a,c=l&s}return f&&0!==c&&(f.words[f.length++]=c),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},a.prototype.ishrn=function(e,t,r){return n(0===this.negative),this.iushrn(e,t,r)},a.prototype.shln=function(e){return this.clone().ishln(e)},a.prototype.ushln=function(e){return this.clone().iushln(e)},a.prototype.shrn=function(e){return this.clone().ishrn(e)},a.prototype.ushrn=function(e){return this.clone().iushrn(e)},a.prototype.testn=function(e){n("number"==typeof e&&e>=0);var t=e%26,r=(e-t)/26,i=1<<t;return!(this.length<=r)&&!!(this.words[r]&i)},a.prototype.imaskn=function(e){n("number"==typeof e&&e>=0);var t=e%26,r=(e-t)/26;if(n(0===this.negative,"imaskn works only with positive numbers"),this.length<=r)return this;if(0!==t&&r++,this.length=Math.min(r,this.length),0!==t){var i=67108863^67108863>>>t<<t;this.words[this.length-1]&=i}return this.strip()},a.prototype.maskn=function(e){return this.clone().imaskn(e)},a.prototype.iaddn=function(e){return n("number"==typeof e),n(e<67108864),e<0?this.isubn(-e):0!==this.negative?1===this.length&&(0|this.words[0])<e?(this.words[0]=e-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(e),this.negative=1,this):this._iaddn(e)},a.prototype._iaddn=function(e){this.words[0]+=e;for(var t=0;t<this.length&&this.words[t]>=67108864;t++)this.words[t]-=67108864,t===this.length-1?this.words[t+1]=1:this.words[t+1]++;return this.length=Math.max(this.length,t+1),this},a.prototype.isubn=function(e){if(n("number"==typeof e),n(e<67108864),e<0)return this.iaddn(-e);if(0!==this.negative)return this.negative=0,this.iaddn(e),this.negative=1,this;if(this.words[0]-=e,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var t=0;t<this.length&&this.words[t]<0;t++)this.words[t]+=67108864,this.words[t+1]-=1;return this.strip()},a.prototype.addn=function(e){return this.clone().iaddn(e)},a.prototype.subn=function(e){return this.clone().isubn(e)},a.prototype.iabs=function(){return this.negative=0,this},a.prototype.abs=function(){return this.clone().iabs()},a.prototype._ishlnsubmul=function(e,t,r){var i,a,o=e.length+r;this._expand(o);var s=0;for(i=0;i<e.length;i++){a=(0|this.words[i+r])+s;var f=(0|e.words[i])*t;s=((a-=67108863&f)>>26)-(f/67108864|0),this.words[i+r]=67108863&a}for(;i<this.length-r;i++)s=(a=(0|this.words[i+r])+s)>>26,this.words[i+r]=67108863&a;if(0===s)return this.strip();for(n(-1===s),s=0,i=0;i<this.length;i++)s=(a=-(0|this.words[i])+s)>>26,this.words[i]=67108863&a;return this.negative=1,this.strip()},a.prototype._wordDiv=function(e,t){var r=(this.length,e.length),n=this.clone(),i=e,o=0|i.words[i.length-1];0!==(r=26-this._countBits(o))&&(i=i.ushln(r),n.iushln(r),o=0|i.words[i.length-1]);var s,f=n.length-i.length;if("mod"!==t){(s=new a(null)).length=f+1,s.words=new Array(s.length);for(var u=0;u<s.length;u++)s.words[u]=0}var c=n.clone()._ishlnsubmul(i,1,f);0===c.negative&&(n=c,s&&(s.words[f]=1));for(var l=f-1;l>=0;l--){var d=67108864*(0|n.words[i.length+l])+(0|n.words[i.length+l-1]);for(d=Math.min(d/o|0,67108863),n._ishlnsubmul(i,d,l);0!==n.negative;)d--,n.negative=0,n._ishlnsubmul(i,1,l),n.isZero()||(n.negative^=1);s&&(s.words[l]=d)}return s&&s.strip(),n.strip(),"div"!==t&&0!==r&&n.iushrn(r),{div:s||null,mod:n}},a.prototype.divmod=function(e,t,r){return n(!e.isZero()),this.isZero()?{div:new a(0),mod:new a(0)}:0!==this.negative&&0===e.negative?(s=this.neg().divmod(e,t),"mod"!==t&&(i=s.div.neg()),"div"!==t&&(o=s.mod.neg(),r&&0!==o.negative&&o.iadd(e)),{div:i,mod:o}):0===this.negative&&0!==e.negative?(s=this.divmod(e.neg(),t),"mod"!==t&&(i=s.div.neg()),{div:i,mod:s.mod}):0!=(this.negative&e.negative)?(s=this.neg().divmod(e.neg(),t),"div"!==t&&(o=s.mod.neg(),r&&0!==o.negative&&o.isub(e)),{div:s.div,mod:o}):e.length>this.length||this.cmp(e)<0?{div:new a(0),mod:this}:1===e.length?"div"===t?{div:this.divn(e.words[0]),mod:null}:"mod"===t?{div:null,mod:new a(this.modn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new a(this.modn(e.words[0]))}:this._wordDiv(e,t);var i,o,s},a.prototype.div=function(e){return this.divmod(e,"div",!1).div},a.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},a.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},a.prototype.divRound=function(e){var t=this.divmod(e);if(t.mod.isZero())return t.div;var r=0!==t.div.negative?t.mod.isub(e):t.mod,n=e.ushrn(1),i=e.andln(1),a=r.cmp(n);return a<0||1===i&&0===a?t.div:0!==t.div.negative?t.div.isubn(1):t.div.iaddn(1)},a.prototype.modn=function(e){n(e<=67108863);for(var t=(1<<26)%e,r=0,i=this.length-1;i>=0;i--)r=(t*r+(0|this.words[i]))%e;return r},a.prototype.idivn=function(e){n(e<=67108863);for(var t=0,r=this.length-1;r>=0;r--){var i=(0|this.words[r])+67108864*t;this.words[r]=i/e|0,t=i%e}return this.strip()},a.prototype.divn=function(e){return this.clone().idivn(e)},a.prototype.egcd=function(e){n(0===e.negative),n(!e.isZero());var t=this,r=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var i=new a(1),o=new a(0),s=new a(0),f=new a(1),u=0;t.isEven()&&r.isEven();)t.iushrn(1),r.iushrn(1),++u;for(var c=r.clone(),l=t.clone();!t.isZero();){for(var d=0,h=1;0==(t.words[0]&h)&&d<26;++d,h<<=1);if(d>0)for(t.iushrn(d);d-- >0;)(i.isOdd()||o.isOdd())&&(i.iadd(c),o.isub(l)),i.iushrn(1),o.iushrn(1);for(var p=0,b=1;0==(r.words[0]&b)&&p<26;++p,b<<=1);if(p>0)for(r.iushrn(p);p-- >0;)(s.isOdd()||f.isOdd())&&(s.iadd(c),f.isub(l)),s.iushrn(1),f.iushrn(1);t.cmp(r)>=0?(t.isub(r),i.isub(s),o.isub(f)):(r.isub(t),s.isub(i),f.isub(o))}return{a:s,b:f,gcd:r.iushln(u)}},a.prototype._invmp=function(e){n(0===e.negative),n(!e.isZero());var t=this,r=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var i,o=new a(1),s=new a(0),f=r.clone();t.cmpn(1)>0&&r.cmpn(1)>0;){for(var u=0,c=1;0==(t.words[0]&c)&&u<26;++u,c<<=1);if(u>0)for(t.iushrn(u);u-- >0;)o.isOdd()&&o.iadd(f),o.iushrn(1);for(var l=0,d=1;0==(r.words[0]&d)&&l<26;++l,d<<=1);if(l>0)for(r.iushrn(l);l-- >0;)s.isOdd()&&s.iadd(f),s.iushrn(1);t.cmp(r)>=0?(t.isub(r),o.isub(s)):(r.isub(t),s.isub(o))}return(i=0===t.cmpn(1)?o:s).cmpn(0)<0&&i.iadd(e),i},a.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var t=this.clone(),r=e.clone();t.negative=0,r.negative=0;for(var n=0;t.isEven()&&r.isEven();n++)t.iushrn(1),r.iushrn(1);for(;;){for(;t.isEven();)t.iushrn(1);for(;r.isEven();)r.iushrn(1);var i=t.cmp(r);if(i<0){var a=t;t=r,r=a}else if(0===i||0===r.cmpn(1))break;t.isub(r)}return r.iushln(n)},a.prototype.invm=function(e){return this.egcd(e).a.umod(e)},a.prototype.isEven=function(){return 0==(1&this.words[0])},a.prototype.isOdd=function(){return 1==(1&this.words[0])},a.prototype.andln=function(e){return this.words[0]&e},a.prototype.bincn=function(e){n("number"==typeof e);var t=e%26,r=(e-t)/26,i=1<<t;if(this.length<=r)return this._expand(r+1),this.words[r]|=i,this;for(var a=i,o=r;0!==a&&o<this.length;o++){var s=0|this.words[o];a=(s+=a)>>>26,s&=67108863,this.words[o]=s}return 0!==a&&(this.words[o]=a,this.length++),this},a.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},a.prototype.cmpn=function(e){var t,r=e<0;if(0!==this.negative&&!r)return-1;if(0===this.negative&&r)return 1;if(this.strip(),this.length>1)t=1;else{r&&(e=-e),n(e<=67108863,"Number is too big");var i=0|this.words[0];t=i===e?0:i<e?-1:1}return 0!==this.negative?0|-t:t},a.prototype.cmp=function(e){if(0!==this.negative&&0===e.negative)return-1;if(0===this.negative&&0!==e.negative)return 1;var t=this.ucmp(e);return 0!==this.negative?0|-t:t},a.prototype.ucmp=function(e){if(this.length>e.length)return 1;if(this.length<e.length)return-1;for(var t=0,r=this.length-1;r>=0;r--){var n=0|this.words[r],i=0|e.words[r];if(n!==i){n<i?t=-1:n>i&&(t=1);break}}return t},a.prototype.gtn=function(e){return 1===this.cmpn(e)},a.prototype.gt=function(e){return 1===this.cmp(e)},a.prototype.gten=function(e){return this.cmpn(e)>=0},a.prototype.gte=function(e){return this.cmp(e)>=0},a.prototype.ltn=function(e){return-1===this.cmpn(e)},a.prototype.lt=function(e){return-1===this.cmp(e)},a.prototype.lten=function(e){return this.cmpn(e)<=0},a.prototype.lte=function(e){return this.cmp(e)<=0},a.prototype.eqn=function(e){return 0===this.cmpn(e)},a.prototype.eq=function(e){return 0===this.cmp(e)},a.red=function(e){return new S(e)},a.prototype.toRed=function(e){return n(!this.red,"Already a number in reduction context"),n(0===this.negative,"red works only with positives"),e.convertTo(this)._forceRed(e)},a.prototype.fromRed=function(){return n(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},a.prototype._forceRed=function(e){return this.red=e,this},a.prototype.forceRed=function(e){return n(!this.red,"Already a number in reduction context"),this._forceRed(e)},a.prototype.redAdd=function(e){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},a.prototype.redIAdd=function(e){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},a.prototype.redSub=function(e){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},a.prototype.redISub=function(e){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},a.prototype.redShl=function(e){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},a.prototype.redMul=function(e){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},a.prototype.redIMul=function(e){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},a.prototype.redSqr=function(){return n(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},a.prototype.redISqr=function(){return n(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},a.prototype.redSqrt=function(){return n(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},a.prototype.redInvm=function(){return n(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},a.prototype.redNeg=function(){return n(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},a.prototype.redPow=function(e){return n(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var v={k256:null,p224:null,p192:null,p25519:null};function m(e,t){this.name=e,this.p=new a(t,16),this.n=this.p.bitLength(),this.k=new a(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function g(){m.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function y(){m.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function w(){m.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function _(){m.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function S(e){if("string"==typeof e){var t=a._prime(e);this.m=t.p,this.prime=t}else n(e.gtn(1),"modulus must be greater than 1"),this.m=e,this.prime=null}function k(e){S.call(this,e),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new a(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)}m.prototype._tmp=function(){var e=new a(null);return e.words=new Array(Math.ceil(this.n/13)),e},m.prototype.ireduce=function(e){var t,r=e;do{this.split(r,this.tmp),t=(r=(r=this.imulK(r)).iadd(this.tmp)).bitLength()}while(t>this.n);var n=t<this.n?-1:r.ucmp(this.p);return 0===n?(r.words[0]=0,r.length=1):n>0?r.isub(this.p):r.strip(),r},m.prototype.split=function(e,t){e.iushrn(this.n,0,t)},m.prototype.imulK=function(e){return e.imul(this.k)},i(g,m),g.prototype.split=function(e,t){for(var r=Math.min(e.length,9),n=0;n<r;n++)t.words[n]=e.words[n];if(t.length=r,e.length<=9)return e.words[0]=0,void(e.length=1);var i=e.words[9];for(t.words[t.length++]=4194303&i,n=10;n<e.length;n++){var a=0|e.words[n];e.words[n-10]=(4194303&a)<<4|i>>>22,i=a}i>>>=22,e.words[n-10]=i,0===i&&e.length>10?e.length-=10:e.length-=9},g.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var t=0,r=0;r<e.length;r++){var n=0|e.words[r];t+=977*n,e.words[r]=67108863&t,t=64*n+(t/67108864|0)}return 0===e.words[e.length-1]&&(e.length--,0===e.words[e.length-1]&&e.length--),e},i(y,m),i(w,m),i(_,m),_.prototype.imulK=function(e){for(var t=0,r=0;r<e.length;r++){var n=19*(0|e.words[r])+t,i=67108863&n;n>>>=26,e.words[r]=i,t=n}return 0!==t&&(e.words[e.length++]=t),e},a._prime=function(e){if(v[e])return v[e];var t;if("k256"===e)t=new g;else if("p224"===e)t=new y;else if("p192"===e)t=new w;else{if("p25519"!==e)throw new Error("Unknown prime "+e);t=new _}return v[e]=t,t},S.prototype._verify1=function(e){n(0===e.negative,"red works only with positives"),n(e.red,"red works only with red numbers")},S.prototype._verify2=function(e,t){n(0==(e.negative|t.negative),"red works only with positives"),n(e.red&&e.red===t.red,"red works only with red numbers")},S.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):e.umod(this.m)._forceRed(this)},S.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},S.prototype.add=function(e,t){this._verify2(e,t);var r=e.add(t);return r.cmp(this.m)>=0&&r.isub(this.m),r._forceRed(this)},S.prototype.iadd=function(e,t){this._verify2(e,t);var r=e.iadd(t);return r.cmp(this.m)>=0&&r.isub(this.m),r},S.prototype.sub=function(e,t){this._verify2(e,t);var r=e.sub(t);return r.cmpn(0)<0&&r.iadd(this.m),r._forceRed(this)},S.prototype.isub=function(e,t){this._verify2(e,t);var r=e.isub(t);return r.cmpn(0)<0&&r.iadd(this.m),r},S.prototype.shl=function(e,t){return this._verify1(e),this.imod(e.ushln(t))},S.prototype.imul=function(e,t){return this._verify2(e,t),this.imod(e.imul(t))},S.prototype.mul=function(e,t){return this._verify2(e,t),this.imod(e.mul(t))},S.prototype.isqr=function(e){return this.imul(e,e.clone())},S.prototype.sqr=function(e){return this.mul(e,e)},S.prototype.sqrt=function(e){if(e.isZero())return e.clone();var t=this.m.andln(3);if(n(t%2==1),3===t){var r=this.m.add(new a(1)).iushrn(2);return this.pow(e,r)}for(var i=this.m.subn(1),o=0;!i.isZero()&&0===i.andln(1);)o++,i.iushrn(1);n(!i.isZero());var s=new a(1).toRed(this),f=s.redNeg(),u=this.m.subn(1).iushrn(1),c=this.m.bitLength();for(c=new a(2*c*c).toRed(this);0!==this.pow(c,u).cmp(f);)c.redIAdd(f);for(var l=this.pow(c,i),d=this.pow(e,i.addn(1).iushrn(1)),h=this.pow(e,i),p=o;0!==h.cmp(s);){for(var b=h,v=0;0!==b.cmp(s);v++)b=b.redSqr();n(v<p);var m=this.pow(l,new a(1).iushln(p-v-1));d=d.redMul(m),l=m.redSqr(),h=h.redMul(l),p=v}return d},S.prototype.invm=function(e){var t=e._invmp(this.m);return 0!==t.negative?(t.negative=0,this.imod(t).redNeg()):this.imod(t)},S.prototype.pow=function(e,t){if(t.isZero())return new a(1).toRed(this);if(0===t.cmpn(1))return e.clone();var r=new Array(16);r[0]=new a(1).toRed(this),r[1]=e;for(var n=2;n<r.length;n++)r[n]=this.mul(r[n-1],e);var i=r[0],o=0,s=0,f=t.bitLength()%26;for(0===f&&(f=26),n=t.length-1;n>=0;n--){for(var u=t.words[n],c=f-1;c>=0;c--){var l=u>>c&1;i!==r[0]&&(i=this.sqr(i)),0!==l||0!==o?(o<<=1,o|=l,(4===++s||0===n&&0===c)&&(i=this.mul(i,r[o]),s=0,o=0)):s=0}f=26}return i},S.prototype.convertTo=function(e){var t=e.umod(this.m);return t===e?t.clone():t},S.prototype.convertFrom=function(e){var t=e.clone();return t.red=null,t},a.mont=function(e){return new k(e)},i(k,S),k.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},k.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},k.prototype.imul=function(e,t){if(e.isZero()||t.isZero())return e.words[0]=0,e.length=1,e;var r=e.imul(t),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),a=i;return i.cmp(this.m)>=0?a=i.isub(this.m):i.cmpn(0)<0&&(a=i.iadd(this.m)),a._forceRed(this)},k.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new a(0)._forceRed(this);var r=e.mul(t),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),o=i;return i.cmp(this.m)>=0?o=i.isub(this.m):i.cmpn(0)<0&&(o=i.iadd(this.m)),o._forceRed(this)},k.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}}(void 0===e||e,this)}).call(this,r(64)(e))},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n={Account:!0,Balance:!0,Wallet:!0,Claims:!0,AssetBalance:!0,Coin:!0,ClaimItem:!0};Object.defineProperty(t,"Account",{enumerable:!0,get:function(){return f.default}}),Object.defineProperty(t,"Balance",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(t,"Wallet",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(t,"Claims",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(t,"AssetBalance",{enumerable:!0,get:function(){return d.default}}),Object.defineProperty(t,"Coin",{enumerable:!0,get:function(){return h.default}}),Object.defineProperty(t,"ClaimItem",{enumerable:!0,get:function(){return p.ClaimItem}}),t.default=void 0;var i=v(r(26));Object.keys(i).forEach(function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||Object.defineProperty(t,e,{enumerable:!0,get:function(){return i[e]}}))});var a=v(r(32));Object.keys(a).forEach(function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||Object.defineProperty(t,e,{enumerable:!0,get:function(){return a[e]}}))});var o=v(r(57));Object.keys(o).forEach(function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||Object.defineProperty(t,e,{enumerable:!0,get:function(){return o[e]}}))});var s=v(r(93));Object.keys(s).forEach(function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||Object.defineProperty(t,e,{enumerable:!0,get:function(){return s[e]}}))});var f=b(r(30)),u=b(r(92)),c=b(r(83)),l=b(r(82)),d=b(r(54)),h=b(r(53)),p=r(45);function b(e){return e&&e.__esModule?e:{default:e}}function v(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){var n=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,r):{};n.get||n.set?Object.defineProperty(t,r,n):t[r]=e[r]}return t.default=e,t}var m={create:{account:function(e){return new f.default(e)},privateKey:i.generatePrivateKey,signature:i.generateSignature,wallet:function(e){return new c.default(e)}},is:{address:a.isAddress,publicKey:a.isPublicKey,encryptedKey:a.isNEP2,privateKey:a.isPrivateKey,wif:a.isWIF},encrypt:{privateKey:o.encrypt},decrypt:{privateKey:o.decrypt},get:{privateKeyFromWIF:i.getPrivateKeyFromWIF,WIFFromPrivateKey:i.getWIFFromPrivateKey,publicKeyFromPrivateKey:i.getPublicKeyFromPrivateKey,scriptHashFromPublicKey:i.getScriptHashFromPublicKey,addressFromScriptHash:i.getAddressFromScriptHash,scriptHashFromAddress:i.getScriptHashFromAddress},sign:{message:s.signMessage},verify:{message:s.verifyMessage}};t.default=m},function(e,t){function r(e,t){if(!e)throw new Error(t||"Assertion failed")}e.exports=r,r.equal=function(e,t,r){if(e!=t)throw new Error(r||"Assertion failed: "+e+" != "+t)}},function(e,t,r){"use strict";var n=r(25),i=Object.keys||function(e){var t=[];for(var r in e)t.push(r);return t};e.exports=l;var a=r(21);a.inherits=r(1);var o=r(70),s=r(38);a.inherits(l,o);for(var f=i(s.prototype),u=0;u<f.length;u++){var c=f[u];l.prototype[c]||(l.prototype[c]=s.prototype[c])}function l(e){if(!(this instanceof l))return new l(e);o.call(this,e),s.call(this,e),e&&!1===e.readable&&(this.readable=!1),e&&!1===e.writable&&(this.writable=!1),this.allowHalfOpen=!0,e&&!1===e.allowHalfOpen&&(this.allowHalfOpen=!1),this.once("end",d)}function d(){this.allowHalfOpen||this._writableState.ended||n.nextTick(h,this)}function h(e){e.end()}Object.defineProperty(l.prototype,"destroyed",{get:function(){return void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed&&this._writableState.destroyed)},set:function(e){void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed=e,this._writableState.destroyed=e)}}),l.prototype._destroy=function(e,t){this.push(null),this.end(),n.nextTick(t,e)}},function(e,t){var r;r=function(){return this}();try{r=r||Function("return this")()||(0,eval)("this")}catch(e){"object"==typeof window&&(r=window)}e.exports=r},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n={Transaction:!0,calculationStrategy:!0,TxAttrUsage:!0};Object.defineProperty(t,"Transaction",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(t,"TxAttrUsage",{enumerable:!0,get:function(){return u.default}}),t.calculationStrategy=t.default=void 0;var i=l(r(91)),a=c(r(49));Object.keys(a).forEach(function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||Object.defineProperty(t,e,{enumerable:!0,get:function(){return a[e]}}))});var o=c(r(23));Object.keys(o).forEach(function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||Object.defineProperty(t,e,{enumerable:!0,get:function(){return o[e]}}))});var s=c(r(28));Object.keys(s).forEach(function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||Object.defineProperty(t,e,{enumerable:!0,get:function(){return s[e]}}))});var f=c(r(47));t.calculationStrategy=f;var u=l(r(50));function c(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){var n=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,r):{};n.get||n.set?Object.defineProperty(t,r,n):t[r]=e[r]}return t.default=e,t}function l(e){return e&&e.__esModule?e:{default:e}}var d={create:{tx:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return new(Function.prototype.bind.apply(i.default,[null].concat(t)))},claimTx:i.default.createClaimTx,contractTx:i.default.createContractTx,invocationTx:i.default.createInvocationTx},serialize:{attribute:o.serializeTransactionAttribute,input:o.serializeTransactionInput,output:o.serializeTransactionOutput,script:o.serializeWitness,exclusiveData:s.serializeExclusive,tx:a.serializeTransaction},deserialize:{attribute:o.deserializeTransactionAttribute,input:o.deserializeTransactionInput,output:o.deserializeTransactionOutput,script:o.deserializeWitness,exclusiveData:s.deserializeExclusive,tx:a.deserializeTransaction},get:{transactionHash:a.getTransactionHash},sign:{transaction:a.signTransaction}};t.default=d},function(e,t,r){var n=r(4).Buffer;function i(e,t){this._block=n.alloc(e),this._finalSize=t,this._blockSize=e,this._len=0}i.prototype.update=function(e,t){"string"==typeof e&&(t=t||"utf8",e=n.from(e,t));for(var r=this._block,i=this._blockSize,a=e.length,o=this._len,s=0;s<a;){for(var f=o%i,u=Math.min(a-s,i-f),c=0;c<u;c++)r[f+c]=e[s+c];s+=u,(o+=u)%i==0&&this._update(r)}return this._len+=a,this},i.prototype.digest=function(e){var t=this._len%this._blockSize;this._block[t]=128,this._block.fill(0,t+1),t>=this._finalSize&&(this._update(this._block),this._block.fill(0));var r=8*this._len;if(r<=4294967295)this._block.writeUInt32BE(r,this._blockSize-4);else{var n=(4294967295&r)>>>0,i=(r-n)/4294967296;this._block.writeUInt32BE(i,this._blockSize-8),this._block.writeUInt32BE(n,this._blockSize-4)}this._update(this._block);var a=this._hash();return e?a.toString(e):a},i.prototype._update=function(){throw new Error("_update must be implemented by subclass")},e.exports=i},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n={RPCClient:!0,Query:!0,queryRPC:!0,Network:!0};Object.defineProperty(t,"RPCClient",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(t,"Query",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(t,"queryRPC",{enumerable:!0,get:function(){return a.queryRPC}}),Object.defineProperty(t,"Network",{enumerable:!0,get:function(){return o.default}}),t.default=void 0;var i=f(r(86)),a=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){var n=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,r):{};n.get||n.set?Object.defineProperty(t,r,n):t[r]=e[r]}return t.default=e,t}(r(46)),o=f(r(48)),s=r(84);function f(e){return e&&e.__esModule?e:{default:e}}Object.keys(s).forEach(function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||Object.defineProperty(t,e,{enumerable:!0,get:function(){return s[e]}}))});var u={create:{rpcClient:function(e){return new i.default(e)},query:function(e){return new a.default(e)}}};t.default=u},function(e,t){},function(e,t,r){"use strict";var n=r(10),i=r(13);function a(){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}t.BlockHash=a,a.prototype.update=function(e,t){if(e=n.toArray(e,t),this.pending?this.pending=this.pending.concat(e):this.pending=e,this.pendingTotal+=e.length,this.pending.length>=this._delta8){var r=(e=this.pending).length%this._delta8;this.pending=e.slice(e.length-r,e.length),0===this.pending.length&&(this.pending=null),e=n.join32(e,0,e.length-r,this.endian);for(var i=0;i<e.length;i+=this._delta32)this._update(e,i,i+this._delta32)}return this},a.prototype.digest=function(e){return this.update(this._pad()),i(null===this.pending),this._digest(e)},a.prototype._pad=function(){var e=this.pendingTotal,t=this._delta8,r=t-(e+this.padLength)%t,n=new Array(r+this.padLength);n[0]=128;for(var i=1;i<r;i++)n[i]=0;if(e<<=3,"big"===this.endian){for(var a=8;a<this.padLength;a++)n[i++]=0;n[i++]=0,n[i++]=0,n[i++]=0,n[i++]=0,n[i++]=e>>>24&255,n[i++]=e>>>16&255,n[i++]=e>>>8&255,n[i++]=255&e}else for(n[i++]=255&e,n[i++]=e>>>8&255,n[i++]=e>>>16&255,n[i++]=e>>>24&255,n[i++]=0,n[i++]=0,n[i++]=0,n[i++]=0,a=8;a<this.padLength;a++)n[i++]=0;return n}},function(e,t,r){(function(e){function r(e){return Object.prototype.toString.call(e)}t.isArray=function(e){return Array.isArray?Array.isArray(e):"[object Array]"===r(e)},t.isBoolean=function(e){return"boolean"==typeof e},t.isNull=function(e){return null===e},t.isNullOrUndefined=function(e){return null==e},t.isNumber=function(e){return"number"==typeof e},t.isString=function(e){return"string"==typeof e},t.isSymbol=function(e){return"symbol"==typeof e},t.isUndefined=function(e){return void 0===e},t.isRegExp=function(e){return"[object RegExp]"===r(e)},t.isObject=function(e){return"object"==typeof e&&null!==e},t.isDate=function(e){return"[object Date]"===r(e)},t.isError=function(e){return"[object Error]"===r(e)||e instanceof Error},t.isFunction=function(e){return"function"==typeof e},t.isPrimitive=function(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e},t.isBuffer=e.isBuffer}).call(this,r(5).Buffer)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.removeNetwork=t.addNetwork=t.defaultCalculationStrategy=t.httpsOnly=t.networks=void 0;var n=o(r(88)),i=o(r(48)),a=r(47);function o(e){return e&&e.__esModule?e:{default:e}}var s={};t.networks=s,Object.keys(n.default).map(function(e){s[e]=i.default.import(n.default[e])});t.httpsOnly=!1;var f=a.balancedApproach;t.defaultCalculationStrategy=f;var u=function(e){return!(arguments.length>1&&void 0!==arguments[1]&&arguments[1]&&s[e.name])&&(s[e.name]=e,!0)};t.addNetwork=u;var c=function(e){return!!s[e]&&(delete s[e],!0)};t.removeNetwork=c;var l={add:{network:function(e,t){return u(e,t)}},remove:{network:function(e){return c(e)}}};t.default=l},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.deserializeWitness=t.serializeWitness=t.deserializeTransactionAttribute=t.serializeTransactionAttribute=t.createTransactionOutput=t.deserializeTransactionOutput=t.serializeTransactionOutput=t.TransactionOutput=t.deserializeTransactionInput=t.serializeTransactionInput=void 0;var n=r(0),i=r(12),a=r(3);t.serializeTransactionInput=function(e){return(0,n.reverseHex)(e.prevHash)+(0,n.reverseHex)((0,n.num2hexstring)(e.prevIndex,2))};t.deserializeTransactionInput=function(e){return{prevHash:(0,n.reverseHex)(e.read(32)),prevIndex:parseInt((0,n.reverseHex)(e.read(2)),16)}};t.TransactionOutput=function(e){return{assetId:e.assetId,value:new n.Fixed8(e.value),scriptHash:e.scriptHash}};t.serializeTransactionOutput=function(e){var t=new n.Fixed8(e.value).toReverseHex();return(0,n.reverseHex)(e.assetId)+t+(0,n.reverseHex)(e.scriptHash)};t.deserializeTransactionOutput=function(e){return{assetId:(0,n.reverseHex)(e.read(32)),value:n.Fixed8.fromReverseHex(e.read(8)),scriptHash:(0,n.reverseHex)(e.read(20))}};t.createTransactionOutput=function(e,t,r){var o=a.ASSET_ID[e],s=(0,i.getScriptHashFromAddress)(r);return{assetId:o,value:new n.Fixed8(t),scriptHash:s}};t.serializeTransactionAttribute=function(e){if(e.data.length>65535)throw new Error;var t=(0,n.num2hexstring)(e.usage);return 129===e.usage?t+=(0,n.num2hexstring)(e.data.length/2):(144===e.usage||e.usage>=240)&&(t+=(0,n.num2VarInt)(e.data.length/2)),2===e.usage||3===e.usage?t+=e.data.substr(2,64):t+=e.data,t};t.deserializeTransactionAttribute=function(e){var t={usage:parseInt(e.read(1),16)};if(0===t.usage||48===t.usage||t.usage>=161&&t.usage<=175)t.data=e.read(32);else if(2===t.usage||3===t.usage)t.data=(0,n.num2hexstring)(t.usage)+e.read(32);else if(32===t.usage)t.data=e.read(20);else if(129===t.usage)t.data=e.read(parseInt(e.read(1),16));else{if(!(144===t.usage||t.usage>=240))throw new Error;t.data=e.readVarBytes()}return t};t.serializeWitness=function(e){var t=(0,n.num2VarInt)(e.invocationScript.length/2),r=(0,n.num2VarInt)(e.verificationScript.length/2);return t+e.invocationScript+r+e.verificationScript};t.deserializeWitness=function(e){return{invocationScript:e.readVarBytes(),verificationScript:e.readVarBytes()}}},function(e,t,r){"use strict";var n=t;n.base=r(136),n.short=r(135),n.mont=r(134),n.edwards=r(133)},function(e,t,r){"use strict";(function(t){!t.version||0===t.version.indexOf("v0.")||0===t.version.indexOf("v1.")&&0!==t.version.indexOf("v1.8.")?e.exports={nextTick:function(e,r,n,i){if("function"!=typeof e)throw new TypeError('"callback" argument must be a function');var a,o,s=arguments.length;switch(s){case 0:case 1:return t.nextTick(e);case 2:return t.nextTick(function(){e.call(null,r)});case 3:return t.nextTick(function(){e.call(null,r,n)});case 4:return t.nextTick(function(){e.call(null,r,n,i)});default:for(a=new Array(s-1),o=0;o<a.length;)a[o++]=arguments[o];return t.nextTick(function(){e.apply(null,a)})}}}:e.exports=t}).call(this,r(9))},function(e,t,r){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.generateRandomArray=t.generatePrivateKey=t.generateSignature=t.getScriptHashFromAddress=t.getAddressFromScriptHash=t.getScriptHashFromPublicKey=t.getVerificationScriptFromPublicKey=t.getPublicKeyFromPrivateKey=t.getWIFFromPrivateKey=t.getPrivateKeyFromWIF=t.getPublicKeyUnencoded=t.getPublicKeyEncoded=void 0;var n=u(r(165)),i=r(7),a=u(r(35)),o=r(0),s=r(3),f=u(r(113));function u(e){return e&&e.__esModule?e:{default:e}}var c=new i.ec("p256"),l=function(e){var t=(0,o.hexstring2ab)(e);return t[64]%2==1?"03"+(0,o.ab2hexstring)(t.slice(1,33)):"02"+(0,o.ab2hexstring)(t.slice(1,33))};t.getPublicKeyEncoded=l;t.getPublicKeyUnencoded=function(e){return c.keyFromPublic(e,"hex").getPublic().encode("hex")};t.getPrivateKeyFromWIF=function(e){return(0,o.ab2hexstring)(n.default.decode(e,128).privateKey)};t.getWIFFromPrivateKey=function(t){return n.default.encode(128,e.from(t,"hex"),!0)};t.getPublicKeyFromPrivateKey=function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=new i.ec("p256").keyFromPrivate(e,"hex").getPublic().encode("hex");return t?parseInt(r.substr(128,2),16)%2==1?"03"+r.substr(2,64):"02"+r.substr(2,64):r};var d=function(e){return"21"+e+"ac"};t.getVerificationScriptFromPublicKey=d;t.getScriptHashFromPublicKey=function(e){"04"===e.substring(0,2)&&(e=l(e));var t=d(e);return(0,o.reverseHex)((0,o.hash160)(t))};t.getAddressFromScriptHash=function(t){t=(0,o.reverseHex)(t);var r=(0,o.hash256)(s.ADDR_VERSION+t).substr(0,8);return a.default.encode(e.from(s.ADDR_VERSION+t+r,"hex"))};t.getScriptHashFromAddress=function(e){var t=(0,o.ab2hexstring)(a.default.decode(e));return(0,o.reverseHex)(t.substr(2,40))};t.generateSignature=function(t,r){var n=(0,o.sha256)(t),a=e.from(n,"hex"),s=new i.ec("p256").sign(a,r,null);return e.concat([s.r.toArrayLike(e,"be",32),s.s.toArrayLike(e,"be",32)]).toString("hex")};t.generatePrivateKey=function(){return(0,o.ab2hexstring)((0,f.default)(32))};t.generateRandomArray=function(e){return(0,f.default)(e)}}).call(this,r(5).Buffer)},function(e,t,r){e.exports=r(185)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getExclusive=t.deserializeExclusive=t.serializeExclusive=void 0;var n=r(0),i=r(23),a={2:function(e){if(2!==e.type)throw new Error;var t=(0,n.num2VarInt)(e.claims.length),r=!0,a=!1,o=void 0;try{for(var s,f=e.claims[Symbol.iterator]();!(r=(s=f.next()).done);r=!0){var u=s.value;t+=(0,i.serializeTransactionInput)(u)}}catch(e){a=!0,o=e}finally{try{r||null==f.return||f.return()}finally{if(a)throw o}}return t},128:function(e){if(128!==e.type)throw new Error;return""},209:function(e){if(209!==e.type)throw new Error;var t=(0,n.num2VarInt)(e.script.length/2);return t+=e.script,e.version>=1&&(t+=(0,n.num2fixed8)(e.gas)),t}};t.serializeExclusive=a;var o={2:function(e){for(var t={claims:[]},r=e.readVarInt(),n=0;n<r;n++)t.claims.push((0,i.deserializeTransactionInput)(e));return t},128:function(e){return{}},209:function(e){return{script:e.readVarBytes(),gas:parseInt(e.str.substr(2,2),16)>=1?(0,n.fixed82num)(e.read(8)):0}}};t.deserializeExclusive=o;var s={2:function(e){return Object.assign({claims:[]},{claims:e.claims})},128:function(e){return{}},209:function(e){return{script:e.script||"",gas:e.gas||0}}};t.getExclusive=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n={OpCode:!0,ScriptBuilder:!0,ContractParam:!0};Object.defineProperty(t,"OpCode",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(t,"ScriptBuilder",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(t,"ContractParam",{enumerable:!0,get:function(){return o.default}}),t.default=void 0;var i=f(r(52)),a=f(r(51)),o=f(r(90)),s=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){var n=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,r):{};n.get||n.set?Object.defineProperty(t,r,n):t[r]=e[r]}return t.default=e,t}(r(89));function f(e){return e&&e.__esModule?e:{default:e}}Object.keys(s).forEach(function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||Object.defineProperty(t,e,{enumerable:!0,get:function(){return s[e]}}))});var u={create:{contractParam:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return new(Function.prototype.bind.apply(o.default,[null].concat(t)))},script:s.createScript,scriptBuilder:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return new(Function.prototype.bind.apply(a.default,[null].concat(t)))},deployScript:function(){return s.generateDeployScript.apply(s,arguments)}}};t.default=u},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){var n=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,r):{};n.get||n.set?Object.defineProperty(t,r,n):t[r]=e[r]}return t.default=e,t}(r(26)),i=r(32),a=r(57),o=r(3),s=f(r(33));function f(e){return e&&e.__esModule?e:{default:e}}function u(e){return(u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function c(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var l=(0,f(r(2)).default)("wallet"),d=function(){function e(t){if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.extra=null,this.isDefault=!1,this.lock=!1,this.contract=Object.assign({},o.DEFAULT_ACCOUNT_CONTRACT),t)if("object"===u(t))this._encrypted=t.key,this._address=t.address,this.label=t.label||"",this.extra=t.extra,this.isDefault=t.isDefault||!1,this.lock=t.lock||!1,this.contract=t.contract||Object.assign({},o.DEFAULT_ACCOUNT_CONTRACT);else if((0,i.isPrivateKey)(t))this._privateKey=t;else if((0,i.isPublicKey)(t,!1))this._publicKey=n.getPublicKeyEncoded(t);else if((0,i.isPublicKey)(t,!0))this._publicKey=t;else if((0,i.isScriptHash)(t))this._scriptHash=t;else if((0,i.isAddress)(t))this._address=t;else if((0,i.isWIF)(t))this._privateKey=n.getPrivateKeyFromWIF(t),this._WIF=t;else{if(!(0,i.isNEP2)(t))throw new ReferenceError("Invalid input: ".concat(t));this._encrypted=t}else this._privateKey=n.generatePrivateKey();if(!this.label)try{this.label=this.address}catch(e){this.label=""}this._updateContractScript()}var t,r,f;return t=e,(r=[{key:s.default.inspect.custom,value:function(e,t){return"[Account: ".concat(this.label,"]")}},{key:"_updateContractScript",value:function(){try{if(""===this.contract.script){var e=this.publicKey;this.contract.script=n.getVerificationScriptFromPublicKey(e),l.debug("Updated ContractScript for Account: ".concat(this.label))}}catch(e){}}},{key:"getPublicKey",value:function(){if(!(arguments.length>0&&void 0!==arguments[0])||arguments[0])return this.publicKey;var e=this.publicKey;return n.getPublicKeyUnencoded(e)}},{key:"encrypt",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0;return this._encrypted=(0,a.encrypt)(this.privateKey,e,t),this}},{key:"decrypt",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0;return this._WIF=(0,a.decrypt)(this.encrypted,e,t),this._updateContractScript(),this}},{key:"export",value:function(){var e=null;if(this._privateKey&&!this._encrypted)throw new Error("Encrypt private key first!");return this._encrypted&&(e=this._encrypted),{address:this.address,label:this.label,isDefault:this.isDefault,lock:this.lock,key:e,contract:this.contract,extra:this.extra}}},{key:Symbol.toStringTag,get:function(){return"Account"}},{key:"encrypted",get:function(){if(this._encrypted)return this._encrypted;throw new Error("No encrypted key found")}},{key:"WIF",get:function(){return this._WIF?this._WIF:(this._WIF=n.getWIFFromPrivateKey(this._privateKey),this._WIF)}},{key:"privateKey",get:function(){if(this._privateKey)return this._privateKey;if(this._WIF)return this._privateKey=n.getPrivateKeyFromWIF(this._WIF),this._privateKey;throw this._encrypted?new ReferenceError("Private Key encrypted!"):new ReferenceError("No Private Key provided!")}},{key:"publicKey",get:function(){return this._publicKey?this._publicKey:(this._publicKey=n.getPublicKeyFromPrivateKey(this.privateKey),this._publicKey)}},{key:"scriptHash",get:function(){return this._scriptHash?this._scriptHash:this._address?(this._scriptHash=n.getScriptHashFromAddress(this.address),this._scriptHash):(this._scriptHash=n.getScriptHashFromPublicKey(this.publicKey),this._scriptHash)}},{key:"address",get:function(){return this._address?this._address:(this._address=n.getAddressFromScriptHash(this.scriptHash),this._address)}}])&&c(t.prototype,r),f&&c(t,f),e}();t.default=d},function(e,t,r){var n;e.exports=(n=r(6),r(56),void(n.lib.Cipher||function(e){var t=n,r=t.lib,i=r.Base,a=r.WordArray,o=r.BufferedBlockAlgorithm,s=t.enc,f=(s.Utf8,s.Base64),u=t.algo,c=u.EvpKDF,l=r.Cipher=o.extend({cfg:i.extend(),createEncryptor:function(e,t){return this.create(this._ENC_XFORM_MODE,e,t)},createDecryptor:function(e,t){return this.create(this._DEC_XFORM_MODE,e,t)},init:function(e,t,r){this.cfg=this.cfg.extend(r),this._xformMode=e,this._key=t,this.reset()},reset:function(){o.reset.call(this),this._doReset()},process:function(e){return this._append(e),this._process()},finalize:function(e){e&&this._append(e);var t=this._doFinalize();return t},keySize:4,ivSize:4,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(){function e(e){return"string"==typeof e?k:w}return function(t){return{encrypt:function(r,n,i){return e(n).encrypt(t,r,n,i)},decrypt:function(r,n,i){return e(n).decrypt(t,r,n,i)}}}}()}),d=(r.StreamCipher=l.extend({_doFinalize:function(){var e=this._process(!0);return e},blockSize:1}),t.mode={}),h=r.BlockCipherMode=i.extend({createEncryptor:function(e,t){return this.Encryptor.create(e,t)},createDecryptor:function(e,t){return this.Decryptor.create(e,t)},init:function(e,t){this._cipher=e,this._iv=t}}),p=d.CBC=function(){var t=h.extend();function r(t,r,n){var i=this._iv;if(i){var a=i;this._iv=e}else var a=this._prevBlock;for(var o=0;o<n;o++)t[r+o]^=a[o]}return t.Encryptor=t.extend({processBlock:function(e,t){var n=this._cipher,i=n.blockSize;r.call(this,e,t,i),n.encryptBlock(e,t),this._prevBlock=e.slice(t,t+i)}}),t.Decryptor=t.extend({processBlock:function(e,t){var n=this._cipher,i=n.blockSize,a=e.slice(t,t+i);n.decryptBlock(e,t),r.call(this,e,t,i),this._prevBlock=a}}),t}(),b=t.pad={},v=b.Pkcs7={pad:function(e,t){for(var r=4*t,n=r-e.sigBytes%r,i=n<<24|n<<16|n<<8|n,o=[],s=0;s<n;s+=4)o.push(i);var f=a.create(o,n);e.concat(f)},unpad:function(e){var t=255&e.words[e.sigBytes-1>>>2];e.sigBytes-=t}},m=(r.BlockCipher=l.extend({cfg:l.cfg.extend({mode:p,padding:v}),reset:function(){l.reset.call(this);var e=this.cfg,t=e.iv,r=e.mode;if(this._xformMode==this._ENC_XFORM_MODE)var n=r.createEncryptor;else{var n=r.createDecryptor;this._minBufferSize=1}this._mode&&this._mode.__creator==n?this._mode.init(this,t&&t.words):(this._mode=n.call(r,this,t&&t.words),this._mode.__creator=n)},_doProcessBlock:function(e,t){this._mode.processBlock(e,t)},_doFinalize:function(){var e=this.cfg.padding;if(this._xformMode==this._ENC_XFORM_MODE){e.pad(this._data,this.blockSize);var t=this._process(!0)}else{var t=this._process(!0);e.unpad(t)}return t},blockSize:4}),r.CipherParams=i.extend({init:function(e){this.mixIn(e)},toString:function(e){return(e||this.formatter).stringify(this)}})),g=t.format={},y=g.OpenSSL={stringify:function(e){var t=e.ciphertext,r=e.salt;if(r)var n=a.create([1398893684,1701076831]).concat(r).concat(t);else var n=t;return n.toString(f)},parse:function(e){var t=f.parse(e),r=t.words;if(1398893684==r[0]&&1701076831==r[1]){var n=a.create(r.slice(2,4));r.splice(0,4),t.sigBytes-=16}return m.create({ciphertext:t,salt:n})}},w=r.SerializableCipher=i.extend({cfg:i.extend({format:y}),encrypt:function(e,t,r,n){n=this.cfg.extend(n);var i=e.createEncryptor(r,n),a=i.finalize(t),o=i.cfg;return m.create({ciphertext:a,key:r,iv:o.iv,algorithm:e,mode:o.mode,padding:o.padding,blockSize:e.blockSize,formatter:n.format})},decrypt:function(e,t,r,n){n=this.cfg.extend(n),t=this._parse(t,n.format);var i=e.createDecryptor(r,n).finalize(t.ciphertext);return i},_parse:function(e,t){return"string"==typeof e?t.parse(e,this):e}}),_=t.kdf={},S=_.OpenSSL={execute:function(e,t,r,n){n||(n=a.random(8));var i=c.create({keySize:t+r}).compute(e,n),o=a.create(i.words.slice(t),4*r);return i.sigBytes=4*t,m.create({key:i,iv:o,salt:n})}},k=r.PasswordBasedCipher=w.extend({cfg:w.cfg.extend({kdf:S}),encrypt:function(e,t,r,n){var i=(n=this.cfg.extend(n)).kdf.execute(r,e.keySize,e.ivSize);n.iv=i.iv;var a=w.encrypt.call(this,e,t,i.key,n);return a.mixIn(i),a},decrypt:function(e,t,r,n){n=this.cfg.extend(n),t=this._parse(t,n.format);var i=n.kdf.execute(r,e.keySize,e.ivSize,t.salt);n.iv=i.iv;var a=w.decrypt.call(this,e,t,i.key,n);return a}})}()))},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isAddress=t.isScriptHash=t.isPublicKey=t.isPrivateKey=t.isWIF=t.isNEP2=void 0;var n,i=(n=r(35))&&n.__esModule?n:{default:n},a=r(0),o=r(26);t.isNEP2=function(e){try{if(58!==e.length)return!1;var t=(0,a.ab2hexstring)(i.default.decode(e));return!!t&&86===t.length&&"01"===t.substr(0,2)&&"42"===t.substr(2,2)&&"e0"===t.substr(4,2)}catch(e){return!1}};t.isWIF=function(e){try{if(52!==e.length)return!1;var t=(0,a.ab2hexstring)(i.default.decode(e));return(0,a.hash256)(t.substr(0,t.length-8)).substr(0,8)===t.substr(t.length-8,8)}catch(e){return!1}};t.isPrivateKey=function(e){return/^[0-9A-Fa-f]{64}$/.test(e)};t.isPublicKey=function(e,t){try{var r;switch(e.substr(0,2)){case"04":if(!0===t)return!1;r=(0,o.getPublicKeyEncoded)(e);break;case"02":case"03":if(!1===t)return!1;r=e;break;default:return!1}var n=(0,o.getPublicKeyUnencoded)(r),i=parseInt(n.substr(n.length-2,2),16);if("02"===r.substr(0,2)&&i%2==0)return!0;if("03"===r.substr(0,2)&&i%2==1)return!0}catch(e){}return!1};t.isScriptHash=function(e){return(0,a.isHex)(e)&&40===e.length};t.isAddress=function(e){try{var t=(0,a.ab2hexstring)(i.default.decode(e));if((0,a.hash256)(t.slice(0,42)).substr(0,8)!==t.substr(42,8))return!1;var r=(0,a.reverseHex)(t.slice(2,42));return(0,o.getAddressFromScriptHash)(r)===e}catch(e){return!1}}},function(e,t,r){(function(e,n){var i=/%[sdj%]/g;t.format=function(e){if(!m(e)){for(var t=[],r=0;r<arguments.length;r++)t.push(s(arguments[r]));return t.join(" ")}r=1;for(var n=arguments,a=n.length,o=String(e).replace(i,function(e){if("%%"===e)return"%";if(r>=a)return e;switch(e){case"%s":return String(n[r++]);case"%d":return Number(n[r++]);case"%j":try{return JSON.stringify(n[r++])}catch(e){return"[Circular]"}default:return e}}),f=n[r];r<a;f=n[++r])b(f)||!w(f)?o+=" "+f:o+=" "+s(f);return o},t.deprecate=function(r,i){if(g(e.process))return function(){return t.deprecate(r,i).apply(this,arguments)};if(!0===n.noDeprecation)return r;var a=!1;return function(){if(!a){if(n.throwDeprecation)throw new Error(i);n.traceDeprecation?console.trace(i):console.error(i),a=!0}return r.apply(this,arguments)}};var a,o={};function s(e,r){var n={seen:[],stylize:u};return arguments.length>=3&&(n.depth=arguments[2]),arguments.length>=4&&(n.colors=arguments[3]),p(r)?n.showHidden=r:r&&t._extend(n,r),g(n.showHidden)&&(n.showHidden=!1),g(n.depth)&&(n.depth=2),g(n.colors)&&(n.colors=!1),g(n.customInspect)&&(n.customInspect=!0),n.colors&&(n.stylize=f),c(n,e,n.depth)}function f(e,t){var r=s.styles[t];return r?"["+s.colors[r][0]+"m"+e+"["+s.colors[r][1]+"m":e}function u(e,t){return e}function c(e,r,n){if(e.customInspect&&r&&k(r.inspect)&&r.inspect!==t.inspect&&(!r.constructor||r.constructor.prototype!==r)){var i=r.inspect(n,e);return m(i)||(i=c(e,i,n)),i}var a=function(e,t){if(g(t))return e.stylize("undefined","undefined");if(m(t)){var r="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(r,"string")}if(v(t))return e.stylize(""+t,"number");if(p(t))return e.stylize(""+t,"boolean");if(b(t))return e.stylize("null","null")}(e,r);if(a)return a;var o=Object.keys(r),s=function(e){var t={};return e.forEach(function(e,r){t[e]=!0}),t}(o);if(e.showHidden&&(o=Object.getOwnPropertyNames(r)),S(r)&&(o.indexOf("message")>=0||o.indexOf("description")>=0))return l(r);if(0===o.length){if(k(r)){var f=r.name?": "+r.name:"";return e.stylize("[Function"+f+"]","special")}if(y(r))return e.stylize(RegExp.prototype.toString.call(r),"regexp");if(_(r))return e.stylize(Date.prototype.toString.call(r),"date");if(S(r))return l(r)}var u,w="",x=!1,A=["{","}"];(h(r)&&(x=!0,A=["[","]"]),k(r))&&(w=" [Function"+(r.name?": "+r.name:"")+"]");return y(r)&&(w=" "+RegExp.prototype.toString.call(r)),_(r)&&(w=" "+Date.prototype.toUTCString.call(r)),S(r)&&(w=" "+l(r)),0!==o.length||x&&0!=r.length?n<0?y(r)?e.stylize(RegExp.prototype.toString.call(r),"regexp"):e.stylize("[Object]","special"):(e.seen.push(r),u=x?function(e,t,r,n,i){for(var a=[],o=0,s=t.length;o<s;++o)E(t,String(o))?a.push(d(e,t,r,n,String(o),!0)):a.push("");return i.forEach(function(i){i.match(/^\d+$/)||a.push(d(e,t,r,n,i,!0))}),a}(e,r,n,s,o):o.map(function(t){return d(e,r,n,s,t,x)}),e.seen.pop(),function(e,t,r){if(e.reduce(function(e,t){return 0,t.indexOf("\n")>=0&&0,e+t.replace(/\u001b\[\d\d?m/g,"").length+1},0)>60)return r[0]+(""===t?"":t+"\n ")+" "+e.join(",\n  ")+" "+r[1];return r[0]+t+" "+e.join(", ")+" "+r[1]}(u,w,A)):A[0]+w+A[1]}function l(e){return"["+Error.prototype.toString.call(e)+"]"}function d(e,t,r,n,i,a){var o,s,f;if((f=Object.getOwnPropertyDescriptor(t,i)||{value:t[i]}).get?s=f.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):f.set&&(s=e.stylize("[Setter]","special")),E(n,i)||(o="["+i+"]"),s||(e.seen.indexOf(f.value)<0?(s=b(r)?c(e,f.value,null):c(e,f.value,r-1)).indexOf("\n")>-1&&(s=a?s.split("\n").map(function(e){return"  "+e}).join("\n").substr(2):"\n"+s.split("\n").map(function(e){return"   "+e}).join("\n")):s=e.stylize("[Circular]","special")),g(o)){if(a&&i.match(/^\d+$/))return s;(o=JSON.stringify(""+i)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(o=o.substr(1,o.length-2),o=e.stylize(o,"name")):(o=o.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),o=e.stylize(o,"string"))}return o+": "+s}function h(e){return Array.isArray(e)}function p(e){return"boolean"==typeof e}function b(e){return null===e}function v(e){return"number"==typeof e}function m(e){return"string"==typeof e}function g(e){return void 0===e}function y(e){return w(e)&&"[object RegExp]"===x(e)}function w(e){return"object"==typeof e&&null!==e}function _(e){return w(e)&&"[object Date]"===x(e)}function S(e){return w(e)&&("[object Error]"===x(e)||e instanceof Error)}function k(e){return"function"==typeof e}function x(e){return Object.prototype.toString.call(e)}function A(e){return e<10?"0"+e.toString(10):e.toString(10)}t.debuglog=function(e){if(g(a)&&(a=n.env.NODE_DEBUG||""),e=e.toUpperCase(),!o[e])if(new RegExp("\\b"+e+"\\b","i").test(a)){var r=n.pid;o[e]=function(){var n=t.format.apply(t,arguments);console.error("%s %d: %s",e,r,n)}}else o[e]=function(){};return o[e]},t.inspect=s,s.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},s.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},t.isArray=h,t.isBoolean=p,t.isNull=b,t.isNullOrUndefined=function(e){return null==e},t.isNumber=v,t.isString=m,t.isSymbol=function(e){return"symbol"==typeof e},t.isUndefined=g,t.isRegExp=y,t.isObject=w,t.isDate=_,t.isError=S,t.isFunction=k,t.isPrimitive=function(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e},t.isBuffer=r(115);var M=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function E(e,t){return Object.prototype.hasOwnProperty.call(e,t)}t.log=function(){var e,r;console.log("%s - %s",(e=new Date,r=[A(e.getHours()),A(e.getMinutes()),A(e.getSeconds())].join(":"),[e.getDate(),M[e.getMonth()],r].join(" ")),t.format.apply(t,arguments))},t.inherits=r(114),t._extend=function(e,t){if(!t||!w(t))return e;for(var r=Object.keys(t),n=r.length;n--;)e[r[n]]=t[r[n]];return e}}).call(this,r(15),r(9))},function(e,t,r){var n=t;n.utils=r(10),n.common=r(20),n.sha=r(131),n.ripemd=r(127),n.hmac=r(126),n.sha1=n.sha.sha1,n.sha256=n.sha.sha256,n.sha224=n.sha.sha224,n.sha384=n.sha.sha384,n.sha512=n.sha.sha512,n.ripemd160=n.ripemd.ripemd160},function(e,t,r){var n=r(142);e.exports=n("123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz")},function(e,t,r){"use strict";var n=r(4).Buffer,i=n.isEncoding||function(e){switch((e=""+e)&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function a(e){var t;switch(this.encoding=function(e){var t=function(e){if(!e)return"utf8";for(var t;;)switch(e){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return e;default:if(t)return;e=(""+e).toLowerCase(),t=!0}}(e);if("string"!=typeof t&&(n.isEncoding===i||!i(e)))throw new Error("Unknown encoding: "+e);return t||e}(e),this.encoding){case"utf16le":this.text=f,this.end=u,t=4;break;case"utf8":this.fillLast=s,t=4;break;case"base64":this.text=c,this.end=l,t=3;break;default:return this.write=d,void(this.end=h)}this.lastNeed=0,this.lastTotal=0,this.lastChar=n.allocUnsafe(t)}function o(e){return e<=127?0:e>>5==6?2:e>>4==14?3:e>>3==30?4:-1}function s(e){var t=this.lastTotal-this.lastNeed,r=function(e,t,r){if(128!=(192&t[0]))return e.lastNeed=0,"�".repeat(r);if(e.lastNeed>1&&t.length>1){if(128!=(192&t[1]))return e.lastNeed=1,"�".repeat(r+1);if(e.lastNeed>2&&t.length>2&&128!=(192&t[2]))return e.lastNeed=2,"�".repeat(r+2)}}(this,e,t);return void 0!==r?r:this.lastNeed<=e.length?(e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(e.copy(this.lastChar,t,0,e.length),void(this.lastNeed-=e.length))}function f(e,t){if((e.length-t)%2==0){var r=e.toString("utf16le",t);if(r){var n=r.charCodeAt(r.length-1);if(n>=55296&&n<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],r.slice(0,-1)}return r}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function u(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var r=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,r)}return t}function c(e,t){var r=(e.length-t)%3;return 0===r?e.toString("base64",t):(this.lastNeed=3-r,this.lastTotal=3,1===r?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-r))}function l(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function d(e){return e.toString(this.encoding)}function h(e){return e&&e.length?this.write(e):""}t.StringDecoder=a,a.prototype.write=function(e){if(0===e.length)return"";var t,r;if(this.lastNeed){if(void 0===(t=this.fillLast(e)))return"";r=this.lastNeed,this.lastNeed=0}else r=0;return r<e.length?t?t+this.text(e,r):this.text(e,r):t||""},a.prototype.end=function(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+"�".repeat(this.lastTotal-this.lastNeed):t},a.prototype.text=function(e,t){var r=function(e,t,r){var n=t.length-1;if(n<r)return 0;var i=o(t[n]);if(i>=0)return i>0&&(e.lastNeed=i-1),i;if(--n<r)return 0;if((i=o(t[n]))>=0)return i>0&&(e.lastNeed=i-2),i;if(--n<r)return 0;if((i=o(t[n]))>=0)return i>0&&(2===i?i=0:e.lastNeed=i-3),i;return 0}(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=r;var n=e.length-(r-this.lastNeed);return e.copy(this.lastChar,0,n),e.toString("utf8",t,n)},a.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length}},function(e,t,r){(function(e){var n=Function.prototype.apply;function i(e,t){this._id=e,this._clearFn=t}t.setTimeout=function(){return new i(n.call(setTimeout,window,arguments),clearTimeout)},t.setInterval=function(){return new i(n.call(setInterval,window,arguments),clearInterval)},t.clearTimeout=t.clearInterval=function(e){e&&e.close()},i.prototype.unref=i.prototype.ref=function(){},i.prototype.close=function(){this._clearFn.call(window,this._id)},t.enroll=function(e,t){clearTimeout(e._idleTimeoutId),e._idleTimeout=t},t.unenroll=function(e){clearTimeout(e._idleTimeoutId),e._idleTimeout=-1},t._unrefActive=t.active=function(e){clearTimeout(e._idleTimeoutId);var t=e._idleTimeout;t>=0&&(e._idleTimeoutId=setTimeout(function(){e._onTimeout&&e._onTimeout()},t))},r(156),t.setImmediate="undefined"!=typeof self&&self.setImmediate||void 0!==e&&e.setImmediate||this&&this.setImmediate,t.clearImmediate="undefined"!=typeof self&&self.clearImmediate||void 0!==e&&e.clearImmediate||this&&this.clearImmediate}).call(this,r(15))},function(e,t,r){"use strict";(function(t,n,i){var a=r(25);function o(e){var t=this;this.next=null,this.entry=null,this.finish=function(){!function(e,t,r){var n=e.entry;e.entry=null;for(;n;){var i=n.callback;t.pendingcb--,i(r),n=n.next}t.corkedRequestsFree?t.corkedRequestsFree.next=e:t.corkedRequestsFree=e}(t,e)}}e.exports=g;var s,f=!t.browser&&["v0.10","v0.9."].indexOf(t.version.slice(0,5))>-1?n:a.nextTick;g.WritableState=m;var u=r(21);u.inherits=r(1);var c={deprecate:r(155)},l=r(69),d=r(4).Buffer,h=i.Uint8Array||function(){};var p,b=r(68);function v(){}function m(e,t){s=s||r(14),e=e||{};var n=t instanceof s;this.objectMode=!!e.objectMode,n&&(this.objectMode=this.objectMode||!!e.writableObjectMode);var i=e.highWaterMark,u=e.writableHighWaterMark,c=this.objectMode?16:16384;this.highWaterMark=i||0===i?i:n&&(u||0===u)?u:c,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var l=!1===e.decodeStrings;this.decodeStrings=!l,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){!function(e,t){var r=e._writableState,n=r.sync,i=r.writecb;if(function(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}(r),t)!function(e,t,r,n,i){--t.pendingcb,r?(a.nextTick(i,n),a.nextTick(x,e,t),e._writableState.errorEmitted=!0,e.emit("error",n)):(i(n),e._writableState.errorEmitted=!0,e.emit("error",n),x(e,t))}(e,r,n,t,i);else{var o=S(r);o||r.corked||r.bufferProcessing||!r.bufferedRequest||_(e,r),n?f(w,e,r,o,i):w(e,r,o,i)}}(t,e)},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 g(e){if(s=s||r(14),!(p.call(g,this)||this instanceof s))return new g(e);this._writableState=new m(e,this),this.writable=!0,e&&("function"==typeof e.write&&(this._write=e.write),"function"==typeof e.writev&&(this._writev=e.writev),"function"==typeof e.destroy&&(this._destroy=e.destroy),"function"==typeof e.final&&(this._final=e.final)),l.call(this)}function y(e,t,r,n,i,a,o){t.writelen=n,t.writecb=o,t.writing=!0,t.sync=!0,r?e._writev(i,t.onwrite):e._write(i,a,t.onwrite),t.sync=!1}function w(e,t,r,n){r||function(e,t){0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}(e,t),t.pendingcb--,n(),x(e,t)}function _(e,t){t.bufferProcessing=!0;var r=t.bufferedRequest;if(e._writev&&r&&r.next){var n=t.bufferedRequestCount,i=new Array(n),a=t.corkedRequestsFree;a.entry=r;for(var s=0,f=!0;r;)i[s]=r,r.isBuf||(f=!1),r=r.next,s+=1;i.allBuffers=f,y(e,t,!0,t.length,i,"",a.finish),t.pendingcb++,t.lastBufferedRequest=null,a.next?(t.corkedRequestsFree=a.next,a.next=null):t.corkedRequestsFree=new o(t),t.bufferedRequestCount=0}else{for(;r;){var u=r.chunk,c=r.encoding,l=r.callback;if(y(e,t,!1,t.objectMode?1:u.length,u,c,l),r=r.next,t.bufferedRequestCount--,t.writing)break}null===r&&(t.lastBufferedRequest=null)}t.bufferedRequest=r,t.bufferProcessing=!1}function S(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function k(e,t){e._final(function(r){t.pendingcb--,r&&e.emit("error",r),t.prefinished=!0,e.emit("prefinish"),x(e,t)})}function x(e,t){var r=S(t);return r&&(!function(e,t){t.prefinished||t.finalCalled||("function"==typeof e._final?(t.pendingcb++,t.finalCalled=!0,a.nextTick(k,e,t)):(t.prefinished=!0,e.emit("prefinish")))}(e,t),0===t.pendingcb&&(t.finished=!0,e.emit("finish"))),r}u.inherits(g,l),m.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},function(){try{Object.defineProperty(m.prototype,"buffer",{get:c.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(e){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(p=Function.prototype[Symbol.hasInstance],Object.defineProperty(g,Symbol.hasInstance,{value:function(e){return!!p.call(this,e)||this===g&&(e&&e._writableState instanceof m)}})):p=function(e){return e instanceof this},g.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},g.prototype.write=function(e,t,r){var n,i=this._writableState,o=!1,s=!i.objectMode&&(n=e,d.isBuffer(n)||n instanceof h);return s&&!d.isBuffer(e)&&(e=function(e){return d.from(e)}(e)),"function"==typeof t&&(r=t,t=null),s?t="buffer":t||(t=i.defaultEncoding),"function"!=typeof r&&(r=v),i.ended?function(e,t){var r=new Error("write after end");e.emit("error",r),a.nextTick(t,r)}(this,r):(s||function(e,t,r,n){var i=!0,o=!1;return null===r?o=new TypeError("May not write null values to stream"):"string"==typeof r||void 0===r||t.objectMode||(o=new TypeError("Invalid non-string/buffer chunk")),o&&(e.emit("error",o),a.nextTick(n,o),i=!1),i}(this,i,e,r))&&(i.pendingcb++,o=function(e,t,r,n,i,a){if(!r){var o=function(e,t,r){e.objectMode||!1===e.decodeStrings||"string"!=typeof t||(t=d.from(t,r));return t}(t,n,i);n!==o&&(r=!0,i="buffer",n=o)}var s=t.objectMode?1:n.length;t.length+=s;var f=t.length<t.highWaterMark;f||(t.needDrain=!0);if(t.writing||t.corked){var u=t.lastBufferedRequest;t.lastBufferedRequest={chunk:n,encoding:i,isBuf:r,callback:a,next:null},u?u.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1}else y(e,t,!1,s,n,i,a);return f}(this,i,s,e,t,r)),o},g.prototype.cork=function(){this._writableState.corked++},g.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,e.writing||e.corked||e.finished||e.bufferProcessing||!e.bufferedRequest||_(this,e))},g.prototype.setDefaultEncoding=function(e){if("string"==typeof e&&(e=e.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((e+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+e);return this._writableState.defaultEncoding=e,this},g.prototype._write=function(e,t,r){r(new Error("_write() is not implemented"))},g.prototype._writev=null,g.prototype.end=function(e,t,r){var n=this._writableState;"function"==typeof e?(r=e,e=null,t=null):"function"==typeof t&&(r=t,t=null),null!==e&&void 0!==e&&this.write(e,t),n.corked&&(n.corked=1,this.uncork()),n.ending||n.finished||function(e,t,r){t.ending=!0,x(e,t),r&&(t.finished?a.nextTick(r):e.once("finish",r));t.ended=!0,e.writable=!1}(this,n,r)},Object.defineProperty(g.prototype,"destroyed",{get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),g.prototype.destroy=b.destroy,g.prototype._undestroy=b.undestroy,g.prototype._destroy=function(e,t){this.end(),t(e)}}).call(this,r(9),r(37).setImmediate,r(15))},function(e,t,r){(t=e.exports=r(70)).Stream=t,t.Readable=t,t.Writable=r(38),t.Duplex=r(14),t.Transform=r(67),t.PassThrough=r(154)},function(e,t){function r(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0}function n(e){return"function"==typeof e}function i(e){return"object"==typeof e&&null!==e}function a(e){return void 0===e}e.exports=r,r.EventEmitter=r,r.prototype._events=void 0,r.prototype._maxListeners=void 0,r.defaultMaxListeners=10,r.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||isNaN(e))throw TypeError("n must be a positive number");return this._maxListeners=e,this},r.prototype.emit=function(e){var t,r,o,s,f,u;if(this._events||(this._events={}),"error"===e&&(!this._events.error||i(this._events.error)&&!this._events.error.length)){if((t=arguments[1])instanceof Error)throw t;var c=new Error('Uncaught, unspecified "error" event. ('+t+")");throw c.context=t,c}if(a(r=this._events[e]))return!1;if(n(r))switch(arguments.length){case 1:r.call(this);break;case 2:r.call(this,arguments[1]);break;case 3:r.call(this,arguments[1],arguments[2]);break;default:s=Array.prototype.slice.call(arguments,1),r.apply(this,s)}else if(i(r))for(s=Array.prototype.slice.call(arguments,1),o=(u=r.slice()).length,f=0;f<o;f++)u[f].apply(this,s);return!0},r.prototype.addListener=function(e,t){var o;if(!n(t))throw TypeError("listener must be a function");return this._events||(this._events={}),this._events.newListener&&this.emit("newListener",e,n(t.listener)?t.listener:t),this._events[e]?i(this._events[e])?this._events[e].push(t):this._events[e]=[this._events[e],t]:this._events[e]=t,i(this._events[e])&&!this._events[e].warned&&(o=a(this._maxListeners)?r.defaultMaxListeners:this._maxListeners)&&o>0&&this._events[e].length>o&&(this._events[e].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[e].length),"function"==typeof console.trace&&console.trace()),this},r.prototype.on=r.prototype.addListener,r.prototype.once=function(e,t){if(!n(t))throw TypeError("listener must be a function");var r=!1;function i(){this.removeListener(e,i),r||(r=!0,t.apply(this,arguments))}return i.listener=t,this.on(e,i),this},r.prototype.removeListener=function(e,t){var r,a,o,s;if(!n(t))throw TypeError("listener must be a function");if(!this._events||!this._events[e])return this;if(o=(r=this._events[e]).length,a=-1,r===t||n(r.listener)&&r.listener===t)delete this._events[e],this._events.removeListener&&this.emit("removeListener",e,t);else if(i(r)){for(s=o;s-- >0;)if(r[s]===t||r[s].listener&&r[s].listener===t){a=s;break}if(a<0)return this;1===r.length?(r.length=0,delete this._events[e]):r.splice(a,1),this._events.removeListener&&this.emit("removeListener",e,t)}return this},r.prototype.removeAllListeners=function(e){var t,r;if(!this._events)return this;if(!this._events.removeListener)return 0===arguments.length?this._events={}:this._events[e]&&delete this._events[e],this;if(0===arguments.length){for(t in this._events)"removeListener"!==t&&this.removeAllListeners(t);return this.removeAllListeners("removeListener"),this._events={},this}if(n(r=this._events[e]))this.removeListener(e,r);else if(r)for(;r.length;)this.removeListener(e,r[r.length-1]);return delete this._events[e],this},r.prototype.listeners=function(e){return this._events&&this._events[e]?n(this._events[e])?[this._events[e]]:this._events[e].slice():[]},r.prototype.listenerCount=function(e){if(this._events){var t=this._events[e];if(n(t))return 1;if(t)return t.length}return 0},r.listenerCount=function(e,t){return e.listenerCount(t)}},function(e,t,r){"use strict";(function(t){var n=r(8),i=r(182),a={"Content-Type":"application/x-www-form-urlencoded"};function o(e,t){!n.isUndefined(e)&&n.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}var s,f={adapter:("undefined"!=typeof XMLHttpRequest?s=r(77):void 0!==t&&(s=r(77)),s),transformRequest:[function(e,t){return i(t,"Content-Type"),n.isFormData(e)||n.isArrayBuffer(e)||n.isBuffer(e)||n.isStream(e)||n.isFile(e)||n.isBlob(e)?e:n.isArrayBufferView(e)?e.buffer:n.isURLSearchParams(e)?(o(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString()):n.isObject(e)?(o(t,"application/json;charset=utf-8"),JSON.stringify(e)):e}],transformResponse:[function(e){if("string"==typeof e)try{e=JSON.parse(e)}catch(e){}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,validateStatus:function(e){return e>=200&&e<300}};f.headers={common:{Accept:"application/json, text/plain, */*"}},n.forEach(["delete","get","head"],function(e){f.headers[e]={}}),n.forEach(["post","put","patch"],function(e){f.headers[e]=n.merge(a)}),e.exports=f}).call(this,r(9))},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.doSendAsset=t.doMintTokens=t.doClaimAllGas=t.getWalletDBHeight=t.getTransactionHistory=t.getRPCEndpoint=t.getMaxClaimAmount=t.getClaims=t.getBalance=t.getAPIEndpoint=t.name=void 0;var n=c(r(27)),i=r(12),a=r(16),o=r(18),s=r(3),f=r(0),u=r(22);function c(e){return e&&e.__esModule?e:{default:e}}var l=(0,c(r(2)).default)("api");t.name="neonDB";var d=function(e){return u.networks[e]?u.networks[e].extra.neonDB:e};t.getAPIEndpoint=d;var h=function(e,t){var r=d(e);return n.default.get(r+"/v2/address/balance/"+t).then(function(r){var n=new i.Balance({net:e,address:r.data.address});return Object.keys(r.data).map(function(e){"net"!==e&&"address"!==e&&n.addAsset(e,r.data[e])}),l.info("Retrieved Balance for ".concat(t," from neonDB ").concat(e)),n})};t.getBalance=h;var p=function(e,t){var r=d(e);return n.default.get(r+"/v2/address/claims/"+t).then(function(r){var n=r.data;return n.claims=n.claims.map(function(e){return{claim:new f.Fixed8(e.claim).div(1e8),index:e.index,txid:e.txid,start:new f.Fixed8(e.start),end:new f.Fixed8(e.end),value:e.value}}),l.info("Retrieved Claims for ".concat(t," from neonDB ").concat(e)),new i.Claims(n)})};t.getClaims=p;t.getMaxClaimAmount=function(e,t){var r=d(e);return n.default.get(r+"/v2/address/claims/"+t).then(function(r){return l.info("Retrieved maximum amount of gas claimable after spending all NEO for ".concat(t," from neonDB ").concat(e)),new f.Fixed8(r.data.total_claim+r.data.total_unspent_claim).div(1e8)})};var b=function(e){var t=d(e);return n.default.get(t+"/v2/network/nodes").then(function(e){var t=e.data.nodes.filter(function(e){return e.status}),r=0,n=[],i=!0,a=!1,o=void 0;try{for(var s,f=t[Symbol.iterator]();!(i=(s=f.next()).done);i=!0){var c=s.value;u.httpsOnly&&!c.url.includes("https://")||(c.block_height>r?(r=c.block_height,n=[c]):c.block_height===r&&n.push(c))}}catch(e){a=!0,o=e}finally{try{i||null==f.return||f.return()}finally{if(a)throw o}}if(0===n.length)throw new Error("No eligible nodes found!");return n[Math.floor(Math.random()*n.length)].url})};t.getRPCEndpoint=b;t.getTransactionHistory=function(e,t){var r=d(e);return n.default.get(r+"/v2/address/history/"+t).then(function(r){return l.info("Retrieved History for ".concat(t," from neonDB ").concat(e)),r.data.history.map(function(e){return{change:{NEO:new f.Fixed8(e.NEO||0),GAS:new f.Fixed8(e.GAS||0)},blockHeight:new f.Fixed8(e.block_index),txid:e.txid}})})};t.getWalletDBHeight=function(e){var t=d(e);return n.default.get(t+"/v2/block/height").then(function(e){return parseInt(e.data.block_height)})};t.doClaimAllGas=function(e,t,r){l.warn("doClaimAllGas will be deprecated in favor of claimGas");var n,s,f=new i.Account(t),u=b(e),c=p(e,f.address);return Promise.all([u,c]).then(function(e){s=e[0];var t=e[1];if(0===t.length)throw new Error("No claimable gas!");var n=a.Transaction.createClaimTx(f.publicKey,t);return r?r(n,f.publicKey):n.sign(f.privateKey)}).then(function(e){return n=e,o.Query.sendRawTransaction(n).execute(s)}).then(function(e){return!0===e.result?e.txid=n:l.error("Transaction failed: ".concat(n.serialize())),e})};t.doMintTokens=function(e,t,r,n,u,c){l.warn("doMintTokens will be deprecated in favor of doInvoke");var d,p,v=new i.Account(r),m=[{assetId:s.ASSET_ID.NEO,value:n,scriptHash:t}],g={operation:"mintTokens",scriptHash:t,args:[]},y=b(e),w=h(e,v.address);return Promise.all([y,w]).then(function(e){p=e[0];var r=e[1],n=[{data:(0,f.reverseHex)(t),usage:a.TxAttrUsage.Script}],i=a.Transaction.createInvocationTx(r,m,g,u,{attributes:n});return c?c(i,v.publicKey):i.sign(v.privateKey)}).then(function(e){return d=e,o.Query.getContractState(t).execute(p)}).then(function(e){var t={invocationScript:"0000",verificationScript:e.result.script};return d.scripts.unshift(t),o.Query.sendRawTransaction(d).execute(p)}).then(function(e){return!0===e.result?e.txid=d.hash:l.error("Transaction failed: ".concat(d.serialize())),e})};t.doSendAsset=function(e,t,r,n,f){l.warn("doSendAsset will be deprecated in favor of sendAsset");var u,c,d=new i.Account(r),p=new i.Account(t),v=b(e),m=h(e,d.address),g=Object.keys(n).map(function(e){return{assetId:s.ASSET_ID[e],value:n[e],scriptHash:p.scriptHash}});return Promise.all([v,m]).then(function(e){c=e[0];var t=e[1],r=a.Transaction.createContractTx(t,g);return f?f(r,d.publicKey):r.sign(d.privateKey)}).then(function(e){return u=e,o.Query.sendRawTransaction(u).execute(c)}).then(function(e){return!0===e.result?e.txid=u.hash:l.error("Transaction failed: ".concat(u.serialize())),e})}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.loadBalance=t.setSwitchFreeze=t.setApiSwitch=void 0;var n,i=o(r(42)),a=o(r(44));function o(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){var n=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,r):{};n.get||n.set?Object.defineProperty(t,r,n):t[r]=e[r]}return t.default=e,t}var s=(0,((n=r(2))&&n.__esModule?n:{default:n}).default)("api"),f=0,u=!1;t.setApiSwitch=function(e){e>=0&&e<=1&&(f=e)};t.setSwitchFreeze=function(e){u=!!e,s.info("core/setSwitchFreeze API switch is frozen: ".concat(u))};var c=function(){!u&&f>0&&(f-=.2,s.info("core API Switch increasing weight towards neoscan"))},l=function(){!u&&f<1&&(f+=.2,s.info("core API Switch increasing weight towards neonDB"))};t.loadBalance=function(e,t){return Math.random()>f?e(t,a).then(function(e){return c(),e}).catch(function(){return l(),e(t,i)}):e(t,i).then(function(e){return l(),e}).catch(function(){return c(),e(t,a)})}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getTransactionHistory=t.getWalletDBHeight=t.getMaxClaimAmount=t.getClaims=t.getBalance=t.getRPCEndpoint=t.getAPIEndpoint=t.name=void 0;var n=f(r(27)),i=r(12),a=r(3),o=r(0),s=r(22);function f(e){return e&&e.__esModule?e:{default:e}}var u=(0,f(r(2)).default)("api");t.name="neoscan";var c=function(e){return s.networks[e]?s.networks[e].extra.neoscan:e};t.getAPIEndpoint=c;t.getRPCEndpoint=function(e){var t=c(e);return n.default.get(t+"/v1/get_all_nodes").then(function(t){var r=t.data,n=0,i=[],a=!0,o=!1,f=void 0;try{for(var c,l=r[Symbol.iterator]();!(a=(c=l.next()).done);a=!0){var d=c.value;s.httpsOnly&&!d.url.includes("https://")||(d.height>n?(n=d.height,i=[d]):d.height===n&&i.push(d))}}catch(e){o=!0,f=e}finally{try{a||null==l.return||l.return()}finally{if(o)throw f}}if(0===i.length)throw new Error("No eligible nodes found!");var h=i[Math.floor(Math.random()*i.length)].url;return u.info("Best node from neoscan ".concat(e,": ").concat(h)),h})};t.getBalance=function(e,t){var r=c(e);return n.default.get(r+"/v1/get_balance/"+t).then(function(r){if(r.data.address!==t&&null===r.data.balance)return new i.Balance({address:r.data.address});var n=new i.Balance({address:r.data.address,net:e});return r.data.balance.map(function(e){n.addAsset(e.asset,{balance:e.amount,unspent:l(e.unspent)})}),u.info("Retrieved Balance for ".concat(t," from neoscan ").concat(e)),n})};t.getClaims=function(e,t){var r=c(e);return n.default.get(r+"/v1/get_claimable/"+t).then(function(r){if(r.address!==t&&null===r.data.claimable)return new i.Claims({address:r.data.address});var n=d(r.data.claimable);return u.info("Retrieved Balance for ".concat(t," from neoscan ").concat(e)),new i.Claims({net:e,address:r.data.address,claims:n})})};t.getMaxClaimAmount=function(e,t){var r=c(e);return n.default.get(r+"/v1/get_claimable/"+t).then(function(r){return u.info("Retrieved maximum amount of gas claimable after spending all NEO for ".concat(t," from neoscan ").concat(e)),new o.Fixed8(r.data.unclaimed||0)})};var l=function(e){return e.map(function(e){return{index:e.n,txid:e.txid,value:e.value}})},d=function(e){return e.map(function(e){return{start:new o.Fixed8(e.start_height),end:new o.Fixed8(e.end_height),index:e.n,claim:new o.Fixed8(e.unclaimed),txid:e.txid,value:e.value}})};t.getWalletDBHeight=function(e){var t=c(e);return n.default.get(t+"/v1/get_height").then(function(e){return parseInt(e.data.height)})};t.getTransactionHistory=function(e,t){var r=c(e);return n.default.get(r+"/v1/get_address_neon/"+t).then(function(r){return u.info("Retrieved History for ".concat(t," from neoscan ").concat(e)),h(r.data.txids)})};var h=function(e){var t=[],r=e.length-1;return e.forEach(function(n,i){var s,f,u,c;if(i!==r){var l=e[i+1],d=p(n.balance),h=p(l.balance);s={NEO:new o.Fixed8(d.NEO||0).minus(h.NEO||0),GAS:new o.Fixed8(d.GAS||0).minus(h.GAS||0)}}else{var b=n.asset_moved===a.ASSET_ID.NEO?"NEO":"GAS";f={},u=b,c=new o.Fixed8(n.amount_moved),u in f?Object.defineProperty(f,u,{value:c,enumerable:!0,configurable:!0,writable:!0}):f[u]=c,s=f}t.push({txid:n.txid,blockHeight:n.block_height,change:s})}),t},p=function(e){return e.reduce(function(e,t){return e[t.asset]=new o.Fixed8(t.amount),e},{})}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.exportClaimItem=t.ClaimItem=void 0;var n=r(0);t.ClaimItem=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{claim:e.claim?new n.Fixed8(e.claim):new n.Fixed8(0),txid:e.txid||"",index:e.index||0,value:e.value||0,start:e.start?new n.Fixed8(e.start):null,end:e.end?new n.Fixed8(e.end):null}};t.exportClaimItem=function(e){return{claim:e.claim.toNumber(),txid:e.txid,index:e.index,value:e.value,start:e.start?e.start.toNumber():null,end:e.end?e.end.toNumber():null}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.queryRPC=t.default=void 0;var n=o(r(27)),i=r(16),a=r(3);function o(e){return e&&e.__esModule?e:{default:e}}function s(e){return(s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function f(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var u=(0,o(r(2)).default)("rpc"),c=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.req=Object.assign({},a.DEFAULT_REQ,t),this.completed=!1,this.parse=null}var t,r,n;return t=e,r=[{key:"parseWith",value:function(e){return this.parse=e,this}},{key:"execute",value:function(e){var t=this;if(this.completed)throw new Error("This request has been sent");return l(e,this.req).then(function(e){if(t.res=e,t.completed=!0,e.error)throw new Error(e.error.message);return t.parse?(u.info("Query[".concat(t.req.method,"] successful")),t.parse(e)):e})}},{key:Symbol.toStringTag,get:function(){return"Query"}}],n=[{key:"getAccountState",value:function(t){return new e({method:"getaccountstate",params:[t]})}},{key:"getAssetState",value:function(t){return new e({method:"getassetstate",params:[t]})}},{key:"getBlock",value:function(t){return new e({method:"getblock",params:[t,arguments.length>1&&void 0!==arguments[1]?arguments[1]:1]})}},{key:"getBlockHash",value:function(t){return new e({method:"getblockhash",params:[t]})}},{key:"getBestBlockHash",value:function(){return new e({method:"getbestblockhash"})}},{key:"getBlockCount",value:function(){return new e({method:"getblockcount"})}},{key:"getBlockSysFee",value:function(t){return new e({method:"getblocksysfee",params:[t]})}},{key:"getConnectionCount",value:function(){return new e({method:"getconnectioncount"})}},{key:"getContractState",value:function(t){return new e({method:"getcontractstate",params:[t]})}},{key:"getPeers",value:function(){return new e({method:"getpeers"})}},{key:"getRawMemPool",value:function(){return new e({method:"getrawmempool"})}},{key:"getRawTransaction",value:function(t){return new e({method:"getrawtransaction",params:[t,arguments.length>1&&void 0!==arguments[1]?arguments[1]:1]})}},{key:"getStorage",value:function(t,r){return new e({method:"getstorage",params:[t,r]})}},{key:"getTxOut",value:function(t,r){return new e({method:"gettxout",params:[t,r]})}},{key:"getVersion",value:function(){return new e({method:"getversion"})}},{key:"invoke",value:function(t){for(var r=arguments.length,n=new Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];return new e({method:"invoke",params:[t,n]})}},{key:"invokeFunction",value:function(t,r){for(var n=arguments.length,i=new Array(n>2?n-2:0),a=2;a<n;a++)i[a-2]=arguments[a];return new e({method:"invokefunction",params:[t,r,i]})}},{key:"invokeScript",value:function(t){return new e({method:"invokescript",params:[t]})}},{key:"sendRawTransaction",value:function(t){return new e({method:"sendrawtransaction",params:["object"===s(t)?(0,i.serializeTransaction)(t):t]})}},{key:"submitBlock",value:function(t){return new e({method:"submitblock",params:[t]})}},{key:"validateAddress",value:function(t){return new e({method:"validateaddress",params:[t]})}}],r&&f(t.prototype,r),n&&f(t,n),e}();t.default=c;var l=function(e,t){var r=n.default.create({headers:{"Content-Type":"application/json"}}),i=Object.assign({},a.DEFAULT_REQ,t);return r.post(e,i).then(function(e){return e.data})};t.queryRPC=l},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.balancedApproach=t.biggestFirst=t.smallestFirst=void 0;var n=r(0);t.smallestFirst=function(e,t){return e.unspent.sort(function(e,t){return e.value.sub(t.value).toNumber()}),i(t,e.unspent)};t.biggestFirst=function(e,t){return e.unspent.sort(function(e,t){return t.value.sub(e.value).toNumber()}),i(t,e.unspent)};t.balancedApproach=function(e,t){e.unspent.sort(function(e,t){return e.value.sub(t.value).toNumber()});var r=e.unspent.filter(function(e){return e.value.lte(t)});if(0===r.length)return[e.unspent[0]];var n=r.findIndex(function(e){return t.eq(e.value)});if(n>=0)return[r[n]];var a=e.unspent.slice(r.length),o=[];r.length>0&&o.push(r.pop());var s=t.minus(o.length>0?o[0].value:0),f=i(s,r.concat(a));return o.concat(f)};var i=function(e,t){for(var r=0,i=new n.Fixed8(0);i.lt(e);){if((r+=1)>t.length)throw new Error("Insufficient assets! Reached end of unspent coins! ".concat(t.length));i=i.add(t[r-1].value)}return t.slice(0,r)}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=a(r(87)),i=a(r(19));function a(e){return e&&e.__esModule?e:{default:e}}function o(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var s=(0,a(r(2)).default)("protocol"),f=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.name=t.Name||t.name||r||"RandomNet",r&&(this.name=r);var i=t.protocol||t.ProtocolConfiguration||{};this.protocol=new n.default(i),this.nodes=t.Nodes||t.nodes||[],this.extra=t.ExtraConfiguration||t.extra||{}}var t,r,a;return t=e,a=[{key:"import",value:function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return new e("string"==typeof jsonString?JSON.parse(t):t,r)}},{key:"readFile",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return s.info("Importing Network file from ".concat(e)),this.import(i.default.readFileSync(e,"utf8"),t)}}],(r=[{key:"export",value:function(){return arguments.length>0&&void 0!==arguments[0]&&arguments[0]?JSON.stringify({ProtocolConfiguration:this.protocol.export()}):{Name:this.name,ProtocolConfiguration:this.protocol.export(),ExtraConfiguration:this.extra,Nodes:this.nodes}}},{key:"writeFile",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return i.default.writeFile(e,this.export(t),function(e){if(e)throw e;return s.info("Network file written!"),!0})}},{key:"update",value:function(){return this}}])&&o(t.prototype,r),a&&o(t,a),e}();t.default=f},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getTransactionHash=t.signTransaction=t.deserializeTransaction=t.serializeTransaction=t.calculateInputs=void 0;var n,i=r(0),a=r(12),o=r(28),s=r(3),f=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){var n=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,r):{};n.get||n.set?Object.defineProperty(t,r,n):t[r]=e[r]}return t.default=e,t}(r(23)),u=r(22);var c=(0,((n=r(2))&&n.__esModule?n:{default:n}).default)("tx");t.calculateInputs=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;null===t&&(t=[]),null===n&&(n=u.defaultCalculationStrategy);var o=t.reduce(function(e,t){return e[t.assetId]?e[t.assetId]=e[t.assetId].add(t.value):e[t.assetId]=t.value,e},{});return(r=new i.Fixed8(r)).gt(0)&&(o[s.ASSET_ID.GAS]?o[s.ASSET_ID.GAS]=o[s.ASSET_ID.GAS].add(r):o[s.ASSET_ID.GAS]=r),Object.keys(o).map(function(t){var r=o[t],i=s.ASSETS[t];if(-1===e.assetSymbols.indexOf(i))throw new Error("This balance does not contain any ".concat(i,"!"));var f=e.assets[i];if(f.balance.lt(r))throw new Error("Insufficient ".concat(s.ASSETS[t],"! Need ").concat(r.toString()," but only found ").concat(f.balance.toString()));return l((0,a.AssetBalance)(f),r,t,e.address,n)}).reduce(function(e,t){return{inputs:e.inputs.concat(t.inputs),change:e.change.concat(t.change)}},{inputs:[],change:[]})};var l=function(e,t,r,n,o){var s=o(e,t),f=s.reduce(function(e,t){return e.add(t.value)},new i.Fixed8(0)),u=[];return f.gt(t)&&u.push({assetId:r,value:f.sub(t),scriptHash:(0,a.getScriptHashFromAddress)(n)}),{inputs:s.map(function(e){return{prevHash:e.txid,prevIndex:e.index}}),change:u}},d=function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r="";r+=(0,i.num2hexstring)(e.type),r+=(0,i.num2hexstring)(e.version),r+=o.serializeExclusive[e.type](e),r+=(0,i.num2VarInt)(e.attributes.length);var n=!0,a=!1,s=void 0;try{for(var u,c=e.attributes[Symbol.iterator]();!(n=(u=c.next()).done);n=!0){var l=u.value;r+=f.serializeTransactionAttribute(l)}}catch(e){a=!0,s=e}finally{try{n||null==c.return||c.return()}finally{if(a)throw s}}r+=(0,i.num2VarInt)(e.inputs.length);var d=!0,h=!1,p=void 0;try{for(var b,v=e.inputs[Symbol.iterator]();!(d=(b=v.next()).done);d=!0){var m=b.value;r+=f.serializeTransactionInput(m)}}catch(e){h=!0,p=e}finally{try{d||null==v.return||v.return()}finally{if(h)throw p}}r+=(0,i.num2VarInt)(e.outputs.length);var g=!0,y=!1,w=void 0;try{for(var _,S=e.outputs[Symbol.iterator]();!(g=(_=S.next()).done);g=!0){var k=_.value;r+=f.serializeTransactionOutput(k)}}catch(e){y=!0,w=e}finally{try{g||null==S.return||S.return()}finally{if(y)throw w}}if(t&&e.scripts&&e.scripts.length>0){r+=(0,i.num2VarInt)(e.scripts.length);var x=!0,A=!1,M=void 0;try{for(var E,T=e.scripts[Symbol.iterator]();!(x=(E=T.next()).done);x=!0){var I=E.value;r+=f.serializeWitness(I)}}catch(e){A=!0,M=e}finally{try{x||null==T.return||T.return()}finally{if(A)throw M}}}return r};t.serializeTransaction=d;t.deserializeTransaction=function(e){var t=new i.StringStream(e),r={};r.type=parseInt(t.read(1),16),r.version=parseInt(t.read(1),16);var n=o.deserializeExclusive[r.type](t);r.attributes=[],r.inputs=[],r.outputs=[],r.scripts=[];for(var a=t.readVarInt(),s=0;s<a;s++)r.attributes.push(f.deserializeTransactionAttribute(t));for(var u=t.readVarInt(),c=0;c<u;c++)r.inputs.push(f.deserializeTransactionInput(t));for(var l=t.readVarInt(),d=0;d<l;d++)r.outputs.push(f.deserializeTransactionOutput(t));if(!t.isEmpty())for(var h=t.readVarInt(),p=0;p<h;p++)r.scripts.push(f.deserializeWitness(t));return Object.assign(r,n)};t.signTransaction=function(e,t){if(!(0,a.isPrivateKey)(t))throw new Error("Key provided does not look like a private key!");var r=new a.Account(t),n={invocationScript:"40"+(0,a.generateSignature)(d(e,!1),t),verificationScript:(0,a.getVerificationScriptFromPublicKey)((0,a.getPublicKeyFromPrivateKey)(t))};return e.scripts?e.scripts.push(n):e.scripts=[n],c.info("Signed tx ".concat(e.hash," with Account[").concat(r.address,"]")),e};t.getTransactionHash=function(e){return(0,i.reverseHex)((0,i.hash256)(d(e,!1)))}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n={ContractHash:0,ECDH02:2,ECDH03:3,Script:32,Vote:48,DescriptionUrl:129,Description:144,Hash1:161,Hash2:162,Hash3:163,Hash4:164,Hash5:165,Hash6:166,Hash7:167,Hash8:168,Hash9:169,Hash10:170,Hash11:171,Hash12:172,Hash13:173,Hash14:174,Hash15:175,Remark:240,Remark1:241,Remark2:242,Remark3:243,Remark4:244,Remark5:245,Remark6:246,Remark7:247,Remark8:248,Remark9:249,Remark10:250,Remark11:251,Remark12:252,Remark13:253,Remark14:254,Remark15:255};t.default=n},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n,i=r(0),a=(n=r(52))&&n.__esModule?n:{default:n};function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function s(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function f(e,t){return!t||"object"!==o(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}var u=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),f(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}var r,n,u;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,i.StringStream),r=t,(n=[{key:"_emitAppCall",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if((0,i.ensureHex)(e),40!==e.length)throw new Error("ScriptHash should be 20 bytes long!");return this.emit(t?a.default.TAILCALL:a.default.APPCALL,(0,i.reverseHex)(e))}},{key:"_emitArray",value:function(e){for(var t=e.length-1;t>=0;t--)this.emitPush(e[t]);return this.emitPush(e.length).emit(a.default.PACK)}},{key:"_emitString",value:function(e){(0,i.ensureHex)(e);var t=e.length/2;if(t<=a.default.PUSHBYTES75)this.str+=(0,i.num2hexstring)(t),this.str+=e;else if(t<256)this.emit(a.default.PUSHDATA1),this.str+=(0,i.num2hexstring)(t),this.str+=e;else if(t<65536)this.emit(a.default.PUSHDATA2),this.str+=(0,i.num2hexstring)(t,2,!0),this.str+=e;else{if(!(t<4294967296))throw new Error("String too big to emit!");this.emit(a.default.PUSHDATA4),this.str+=(0,i.num2hexstring)(t,4,!0),this.str+=e}return this}},{key:"_emitNum",value:function(e){if(-1===e)return this.emit(a.default.PUSHM1);if(0===e)return this.emit(a.default.PUSH0);if(e>0&&e<=16)return this.emit(a.default.PUSH1-1+e);var t=(0,i.int2hex)(e);return this.emitPush((0,i.reverseHex)("0".repeat(16-t.length)+t))}},{key:"_emitParam",value:function(e){if(!e.type)throw new Error("No type available!");if(!c(e.value))throw new Error("Invalid value provided!");switch(e.type){case"String":return this._emitString((0,i.str2hexstring)(e.value));case"Boolean":return this.emit(e.value?a.default.PUSHT:a.default.PUSHF);case"Integer":return this._emitNum(e.value);case"ByteArray":return this._emitString(e.value);case"Array":return this._emitArray(e.value);case"Hash160":return this._emitString((0,i.reverseHex)(e.value))}}},{key:"emit",value:function(e,t){return this.str+=(0,i.num2hexstring)(e),t&&(this.str+=t),this}},{key:"emitAppCall",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0,n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(this.emitPush(r),t){for(var a="",o=0;o<t.length;o++)a+=(0,i.num2hexstring)(t.charCodeAt(o));this.emitPush(a)}return this._emitAppCall(e,n),this}},{key:"emitSysCall",value:function(e){if(void 0===e||""===e)throw new Error("Invalid SysCall API");var t=(0,i.ab2hexstring)((0,i.str2ab)(e)),r=(0,i.int2hex)(t.length/2);if(2!==r.length)throw new Error("Invalid length for SysCall API");var n=r+t;return this.emit(a.default.SYSCALL,n)}},{key:"emitPush",value:function(e){if(null==e)return this.emitPush(!1);switch(o(e)){case"boolean":return this.emit(e?a.default.PUSHT:a.default.PUSHF);case"string":return this._emitString(e);case"number":return this._emitNum(e);case"object":return Array.isArray(e)?this._emitArray(e):this._emitParam(e);case"undefined":return this.emitPush(!1);default:throw new Error}}},{key:"toScriptParams",value:function(){this.reset();for(var e=[];!this.isEmpty();)e.push(l(this));return e}}])&&s(r.prototype,n),u&&s(r,u),t}(),c=function(e){return!!e||(0===e||""===e)},l=function(e){for(var t={scriptHash:"",args:[]};!e.isEmpty();){var r=e.read(),n=parseInt(r,16);switch(!0){case 0===n:t.args.unshift(0);break;case n<75:t.args.unshift(e.read(n));break;case n>=81&&n<=96:t.args.unshift(n-80);break;case 193===n:for(var a=t.args.shift(),o=[],s=0;s<a;s++)o.unshift(t.args.shift());t.args.unshift(o);break;case 103===n:return t.scriptHash=(0,i.reverseHex)(e.read(20)),t.useTailCall=!1,t;case 105===n:return t.scriptHash=(0,i.reverseHex)(e.read(20)),t.useTailCall=!0,t;default:throw new Error("Encounter unknown byte: ".concat(r))}}return t},d=u;t.default=d},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n={PUSH0:0,PUSHF:0,PUSHBYTES1:1,PUSHBYTES75:75,PUSHDATA1:76,PUSHDATA2:77,PUSHDATA4:78,PUSHM1:79,PUSH1:81,PUSHT:81,PUSH2:82,PUSH3:83,PUSH4:84,PUSH5:85,PUSH6:86,PUSH7:87,PUSH8:88,PUSH9:89,PUSH10:90,PUSH11:91,PUSH12:92,PUSH13:93,PUSH14:94,PUSH15:95,PUSH16:96,NOP:97,JMP:98,JMPIF:99,JMPIFNOT:100,CALL:101,RET:102,APPCALL:103,SYSCALL:104,TAILCALL:105,DUPFROMALTSTACK:106,TOALTSTACK:107,FROMALTSTACK:108,XDROP:109,XSWAP:114,XTUCK:115,DEPTH:116,DROP:117,DUP:118,NIP:119,OVER:120,PICK:121,ROLL:122,ROT:123,SWAP:124,TUCK:125,CAT:126,SUBSTR:127,LEFT:128,RIGHT:129,SIZE:130,INVERT:131,AND:132,OR:133,XOR:134,EQUAL:135,INC:139,DEC:140,SIGN:141,NEGATE:143,ABS:144,NOT:145,NZ:146,ADD:147,SUB:148,MUL:149,DIV:150,MOD:151,SHL:152,SHR:153,BOOLAND:154,BOOLOR:155,NUMEQUAL:156,NUMNOTEQUAL:158,LT:159,GT:160,LTE:161,GTE:162,MIN:163,MAX:164,WITHIN:165,SHA1:167,SHA256:168,HASH160:169,HASH256:170,CHECKSIG:172,CHECKMULTISIG:174,ARRAYSIZE:192,PACK:193,UNPACK:194,PICKITEM:195,SETITEM:196,NEWARRAY:197,NEWSTRUCT:198,APPEND:200,REVERSE:201,THROW:240,THROWIFNOT:241};t.default=n},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r(0);t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{index:e.index||0,txid:e.txid||"",value:e.value?new n.Fixed8(e.value):new n.Fixed8(0)}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n,i=r(0),a=(n=r(53))&&n.__esModule?n:{default:n};t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.balance,r=e.unspent,n=e.spent,o=e.unconfirmed;return{balance:t?new i.Fixed8(t):new i.Fixed8(0),unspent:r?r.map(function(e){return(0,a.default)(e)}):[],spent:n?n.map(function(e){return(0,a.default)(e)}):[],unconfirmed:o?o.map(function(e){return(0,a.default)(e)}):[]}}},function(e,t,r){(function(t){function r(e){return"function"==typeof e?t("","utf8"):e instanceof t?e:new t("string"==typeof e?e:String(e||""),"utf8")}function n(e){return"number"!=typeof e?null:(e=Math.round(e))<1?null:e>256?null:e}e.exports=function(e,t,i,a){return{password:r(e),salt:r(t),options:function(e){return{maxmem:function(e){if("number"!=typeof e)return null;for(var t=4;t<=2048;t*=2){var r=1048576*t;if(r>e)return null;if(r==e)return r}return null}((e=null!==e&&"object"==typeof e?e:{}).maxmem)||33554432,cost:function(e){if("number"!=typeof e)return null;for(var t=8;t<=64;t++){var r=Math.pow(2,t);if(r>e)return null;if(r==e)return r}return null}(e.cost)||Math.pow(2,14),blockSize:n(e.blockSize)||8,parallel:n(e.parallel)||1,size:(t=e.size,("number"!=typeof t?null:(t=Math.round(t))<1?null:t>2048?null:t)||64)};var t}(i),callback:function(e){return"function"==typeof e?e:null}(arguments[arguments.length-1])}}}).call(this,r(5).Buffer)},function(e,t,r){var n,i,a,o,s,f,u,c;e.exports=(n=r(6),r(107),r(106),a=(i=n).lib,o=a.Base,s=a.WordArray,f=i.algo,u=f.MD5,c=f.EvpKDF=o.extend({cfg:o.extend({keySize:4,hasher:u,iterations:1}),init:function(e){this.cfg=this.cfg.extend(e)},compute:function(e,t){for(var r=this.cfg,n=r.hasher.create(),i=s.create(),a=i.words,o=r.keySize,f=r.iterations;a.length<o;){u&&n.update(u);var u=n.update(e).finalize(t);n.reset();for(var c=1;c<f;c++)u=n.finalize(u),n.reset();i.concat(u)}return i.sigBytes=4*o,i}}),i.EvpKDF=function(e,t,r){return c.create(r).compute(e,t)},n.EvpKDF)},function(e,t,r){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.decryptAsync=t.decrypt=t.encryptAsync=t.encrypt=void 0;var n=v(r(72)),i=v(r(111)),a=v(r(59)),o=v(r(58)),s=v(r(110)),f=v(r(105)),u=v(r(104)),c=v(r(103)),l=v(r(96)),d=v(r(30)),h=r(0),p=r(3),b=v(r(2));function v(e){return e&&e.__esModule?e:{default:e}}var m={Latin1:i.default,Hex:a.default},g={mode:f.default,padding:u.default},y=(0,b.default)("wallet");y.warn("ScryptParams will be changing to use n,r,p in place of cost, blockSize, parallel. New standard will be preferred. DEFAULT_SCRYPT will use new standard upon major version bump.");t.encrypt=function(t,r){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:p.DEFAULT_SCRYPT;y.warn("This method will be replaced by encryptAsync in the next major version bump");var a={cost:(i=w(i)).n,blockSize:i.r,parallel:i.p},f=new d.default(t),u=(0,o.default)((0,o.default)(m.Latin1.parse(f.address))).toString().slice(0,8),l=c.default.hashSync(e.from(r.normalize("NFC"),"utf8"),e.from(u,"hex"),a).toString("hex"),b=l.slice(0,64),v=l.slice(64),_=(0,h.hexXor)(f.privateKey,b),S=s.default.encrypt(m.Hex.parse(_),m.Hex.parse(v),g),k=p.NEP_HEADER+p.NEP_FLAG+u+S.ciphertext.toString(),x=n.default.encode(e.from(k,"hex"));return y.info("Successfully encrypted key to ".concat(x)),x};t.encryptAsync=function(t,r){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:p.DEFAULT_SCRYPT;return y.warn("This method will be renamed to encrypt in the next major version bump"),new Promise(function(a,f){var u=i=w(i),c=u.n,b=u.r,v=u.p,_=new d.default(t),S=(0,o.default)((0,o.default)(m.Latin1.parse(_.address))).toString().slice(0,8);(0,l.default)(e.from(r.normalize("NFC"),"utf8"),e.from(S,"hex"),c,b,v,64,function(t,r,i){if(null!=t)f(t);else if(i){var o=e.from(i).toString("hex"),u=o.slice(0,64),c=o.slice(64),l=(0,h.hexXor)(_.privateKey,u),d=s.default.encrypt(m.Hex.parse(l),m.Hex.parse(c),g),b=p.NEP_HEADER+p.NEP_FLAG+S+d.ciphertext.toString(),v=n.default.encode(e.from(b,"hex"));y.info("Successfully encrypted key to ".concat(v)),a(v)}})})};t.decrypt=function(t,r){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:p.DEFAULT_SCRYPT;y.warn("This method will be replaced by decryptAsync in the next major version bump");var a={cost:(i=w(i)).n,blockSize:i.r,parallel:i.p},f=(0,h.ab2hexstring)(n.default.decode(t)),u=f.substr(6,8),l=f.substr(-64),b=c.default.hashSync(e.from(r.normalize("NFC"),"utf8"),e.from(u,"hex"),a).toString("hex"),v=b.slice(0,64),_=b.slice(64),S={ciphertext:m.Hex.parse(l),salt:""},k=s.default.decrypt(S,m.Hex.parse(_),g),x=(0,h.hexXor)(k.toString(),v),A=new d.default(x);if(u!==(0,o.default)((0,o.default)(m.Latin1.parse(A.address))).toString().slice(0,8))throw new Error("Wrong Password!");return y.info("Successfully decrypted ".concat(t)),A.WIF};t.decryptAsync=function(t,r){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:p.DEFAULT_SCRYPT;return y.warn("This method will be renamed to decrypt in the next major version bump"),new Promise(function(a,f){var u=i=w(i),c=u.n,p=u.r,b=u.p,v=(0,h.ab2hexstring)(n.default.decode(t)),_=v.substr(6,8),S=v.substr(-64);(0,l.default)(e.from(r.normalize("NFC"),"utf8"),e.from(_,"hex"),c,p,b,64,function(r,n,i){if(null!=r)f(r);else if(i){var u=e.from(i).toString("hex"),c=u.slice(0,64),l=u.slice(64),p={ciphertext:m.Hex.parse(S),salt:""},b=s.default.decrypt(p,m.Hex.parse(l),g),v=(0,h.hexXor)(b.toString(),c),w=new d.default(v),k=(0,o.default)((0,o.default)(m.Latin1.parse(w.address))).toString().slice(0,8);_!==k&&f(new Error("Wrong Password or scrypt parameters!")),y.info("Successfully decrypted ".concat(t)),a(w.WIF)}})})};var w=function(e){var t=Object.assign({},p.DEFAULT_SCRYPT,e);return{n:t.n||t.cost,r:t.r||t.blockSize,p:t.p||t.parallel}}}).call(this,r(5).Buffer)},function(e,t,r){var n;e.exports=(n=r(6),function(e){var t=n,r=t.lib,i=r.WordArray,a=r.Hasher,o=t.algo,s=[],f=[];!function(){function t(t){for(var r=e.sqrt(t),n=2;n<=r;n++)if(!(t%n))return!1;return!0}function r(e){return 4294967296*(e-(0|e))|0}for(var n=2,i=0;i<64;)t(n)&&(i<8&&(s[i]=r(e.pow(n,.5))),f[i]=r(e.pow(n,1/3)),i++),n++}();var u=[],c=o.SHA256=a.extend({_doReset:function(){this._hash=new i.init(s.slice(0))},_doProcessBlock:function(e,t){for(var r=this._hash.words,n=r[0],i=r[1],a=r[2],o=r[3],s=r[4],c=r[5],l=r[6],d=r[7],h=0;h<64;h++){if(h<16)u[h]=0|e[t+h];else{var p=u[h-15],b=(p<<25|p>>>7)^(p<<14|p>>>18)^p>>>3,v=u[h-2],m=(v<<15|v>>>17)^(v<<13|v>>>19)^v>>>10;u[h]=b+u[h-7]+m+u[h-16]}var g=n&i^n&a^i&a,y=(n<<30|n>>>2)^(n<<19|n>>>13)^(n<<10|n>>>22),w=d+((s<<26|s>>>6)^(s<<21|s>>>11)^(s<<7|s>>>25))+(s&c^~s&l)+f[h]+u[h];d=l,l=c,c=s,s=o+w|0,o=a,a=i,i=n,n=w+(y+g)|0}r[0]=r[0]+n|0,r[1]=r[1]+i|0,r[2]=r[2]+a|0,r[3]=r[3]+o|0,r[4]=r[4]+s|0,r[5]=r[5]+c|0,r[6]=r[6]+l|0,r[7]=r[7]+d|0},_doFinalize:function(){var t=this._data,r=t.words,n=8*this._nDataBytes,i=8*t.sigBytes;return r[i>>>5]|=128<<24-i%32,r[14+(i+64>>>9<<4)]=e.floor(n/4294967296),r[15+(i+64>>>9<<4)]=n,t.sigBytes=4*r.length,this._process(),this._hash},clone:function(){var e=a.clone.call(this);return e._hash=this._hash.clone(),e}});t.SHA256=a._createHelper(c),t.HmacSHA256=a._createHmacHelper(c)}(Math),n.SHA256)},function(e,t,r){var n;e.exports=(n=r(6),n.enc.Hex)},function(e,t,r){"use strict";var n=r(10),i=r(20),a=r(13),o=n.rotr64_hi,s=n.rotr64_lo,f=n.shr64_hi,u=n.shr64_lo,c=n.sum64,l=n.sum64_hi,d=n.sum64_lo,h=n.sum64_4_hi,p=n.sum64_4_lo,b=n.sum64_5_hi,v=n.sum64_5_lo,m=i.BlockHash,g=[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];function y(){if(!(this instanceof y))return new y;m.call(this),this.h=[1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209],this.k=g,this.W=new Array(160)}function w(e,t,r,n,i){var a=e&r^~e&i;return a<0&&(a+=4294967296),a}function _(e,t,r,n,i,a){var o=t&n^~t&a;return o<0&&(o+=4294967296),o}function S(e,t,r,n,i){var a=e&r^e&i^r&i;return a<0&&(a+=4294967296),a}function k(e,t,r,n,i,a){var o=t&n^t&a^n&a;return o<0&&(o+=4294967296),o}function x(e,t){var r=o(e,t,28)^o(t,e,2)^o(t,e,7);return r<0&&(r+=4294967296),r}function A(e,t){var r=s(e,t,28)^s(t,e,2)^s(t,e,7);return r<0&&(r+=4294967296),r}function M(e,t){var r=o(e,t,14)^o(e,t,18)^o(t,e,9);return r<0&&(r+=4294967296),r}function E(e,t){var r=s(e,t,14)^s(e,t,18)^s(t,e,9);return r<0&&(r+=4294967296),r}function T(e,t){var r=o(e,t,1)^o(e,t,8)^f(e,t,7);return r<0&&(r+=4294967296),r}function I(e,t){var r=s(e,t,1)^s(e,t,8)^u(e,t,7);return r<0&&(r+=4294967296),r}function P(e,t){var r=o(e,t,19)^o(t,e,29)^f(e,t,6);return r<0&&(r+=4294967296),r}function O(e,t){var r=s(e,t,19)^s(t,e,29)^u(e,t,6);return r<0&&(r+=4294967296),r}n.inherits(y,m),e.exports=y,y.blockSize=1024,y.outSize=512,y.hmacStrength=192,y.padLength=128,y.prototype._prepareBlock=function(e,t){for(var r=this.W,n=0;n<32;n++)r[n]=e[t+n];for(;n<r.length;n+=2){var i=P(r[n-4],r[n-3]),a=O(r[n-4],r[n-3]),o=r[n-14],s=r[n-13],f=T(r[n-30],r[n-29]),u=I(r[n-30],r[n-29]),c=r[n-32],l=r[n-31];r[n]=h(i,a,o,s,f,u,c,l),r[n+1]=p(i,a,o,s,f,u,c,l)}},y.prototype._update=function(e,t){this._prepareBlock(e,t);var r=this.W,n=this.h[0],i=this.h[1],o=this.h[2],s=this.h[3],f=this.h[4],u=this.h[5],h=this.h[6],p=this.h[7],m=this.h[8],g=this.h[9],y=this.h[10],T=this.h[11],I=this.h[12],P=this.h[13],O=this.h[14],R=this.h[15];a(this.k.length===r.length);for(var C=0;C<r.length;C+=2){var j=O,B=R,N=M(m,g),F=E(m,g),L=w(m,g,y,T,I),z=_(m,g,y,T,I,P),H=this.k[C],U=this.k[C+1],D=r[C],q=r[C+1],Y=b(j,B,N,F,L,z,H,U,D,q),K=v(j,B,N,F,L,z,H,U,D,q);j=x(n,i),B=A(n,i),N=S(n,i,o,s,f),F=k(n,i,o,s,f,u);var V=l(j,B,N,F),W=d(j,B,N,F);O=I,R=P,I=y,P=T,y=m,T=g,m=l(h,p,Y,K),g=d(p,p,Y,K),h=f,p=u,f=o,u=s,o=n,s=i,n=l(Y,K,V,W),i=d(Y,K,V,W)}c(this.h,0,n,i),c(this.h,2,o,s),c(this.h,4,f,u),c(this.h,6,h,p),c(this.h,8,m,g),c(this.h,10,y,T),c(this.h,12,I,P),c(this.h,14,O,R)},y.prototype._digest=function(e){return"hex"===e?n.toHex32(this.h,"big"):n.split32(this.h,"big")}},function(e,t,r){"use strict";var n=r(10),i=r(20),a=r(62),o=r(13),s=n.sum32,f=n.sum32_4,u=n.sum32_5,c=a.ch32,l=a.maj32,d=a.s0_256,h=a.s1_256,p=a.g0_256,b=a.g1_256,v=i.BlockHash,m=[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];function g(){if(!(this instanceof g))return new g;v.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=m,this.W=new Array(64)}n.inherits(g,v),e.exports=g,g.blockSize=512,g.outSize=256,g.hmacStrength=192,g.padLength=64,g.prototype._update=function(e,t){for(var r=this.W,n=0;n<16;n++)r[n]=e[t+n];for(;n<r.length;n++)r[n]=f(b(r[n-2]),r[n-7],p(r[n-15]),r[n-16]);var i=this.h[0],a=this.h[1],v=this.h[2],m=this.h[3],g=this.h[4],y=this.h[5],w=this.h[6],_=this.h[7];for(o(this.k.length===r.length),n=0;n<r.length;n++){var S=u(_,h(g),c(g,y,w),this.k[n],r[n]),k=s(d(i),l(i,a,v));_=w,w=y,y=g,g=s(m,S),m=v,v=a,a=i,i=s(S,k)}this.h[0]=s(this.h[0],i),this.h[1]=s(this.h[1],a),this.h[2]=s(this.h[2],v),this.h[3]=s(this.h[3],m),this.h[4]=s(this.h[4],g),this.h[5]=s(this.h[5],y),this.h[6]=s(this.h[6],w),this.h[7]=s(this.h[7],_)},g.prototype._digest=function(e){return"hex"===e?n.toHex32(this.h,"big"):n.split32(this.h,"big")}},function(e,t,r){"use strict";var n=r(10).rotr32;function i(e,t,r){return e&t^~e&r}function a(e,t,r){return e&t^e&r^t&r}function o(e,t,r){return e^t^r}t.ft_1=function(e,t,r,n){return 0===e?i(t,r,n):1===e||3===e?o(t,r,n):2===e?a(t,r,n):void 0},t.ch32=i,t.maj32=a,t.p32=o,t.s0_256=function(e){return n(e,2)^n(e,13)^n(e,22)},t.s1_256=function(e){return n(e,6)^n(e,11)^n(e,25)},t.g0_256=function(e){return n(e,7)^n(e,18)^e>>>3},t.g1_256=function(e){return n(e,17)^n(e,19)^e>>>10}},function(e,t,r){"use strict";var n=t;function i(e){return 1===e.length?"0"+e:e}function a(e){for(var t="",r=0;r<e.length;r++)t+=i(e[r].toString(16));return t}n.toArray=function(e,t){if(Array.isArray(e))return e.slice();if(!e)return[];var r=[];if("string"!=typeof e){for(var n=0;n<e.length;n++)r[n]=0|e[n];return r}if("hex"===t)for((e=e.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(e="0"+e),n=0;n<e.length;n+=2)r.push(parseInt(e[n]+e[n+1],16));else for(n=0;n<e.length;n++){var i=e.charCodeAt(n),a=i>>8,o=255&i;a?r.push(a,o):r.push(o)}return r},n.zero2=i,n.toHex=a,n.encode=function(e,t){return"hex"===t?a(e):e}},function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},function(e,t,r){var n=r(1),i=r(17),a=r(4).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],s=new Array(160);function f(){this.init(),this._w=s,i.call(this,128,112)}function u(e,t,r){return r^e&(t^r)}function c(e,t,r){return e&t|r&(e|t)}function l(e,t){return(e>>>28|t<<4)^(t>>>2|e<<30)^(t>>>7|e<<25)}function d(e,t){return(e>>>14|t<<18)^(e>>>18|t<<14)^(t>>>9|e<<23)}function h(e,t){return(e>>>1|t<<31)^(e>>>8|t<<24)^e>>>7}function p(e,t){return(e>>>1|t<<31)^(e>>>8|t<<24)^(e>>>7|t<<25)}function b(e,t){return(e>>>19|t<<13)^(t>>>29|e<<3)^e>>>6}function v(e,t){return(e>>>19|t<<13)^(t>>>29|e<<3)^(e>>>6|t<<26)}function m(e,t){return e>>>0<t>>>0?1:0}n(f,i),f.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},f.prototype._update=function(e){for(var t=this._w,r=0|this._ah,n=0|this._bh,i=0|this._ch,a=0|this._dh,s=0|this._eh,f=0|this._fh,g=0|this._gh,y=0|this._hh,w=0|this._al,_=0|this._bl,S=0|this._cl,k=0|this._dl,x=0|this._el,A=0|this._fl,M=0|this._gl,E=0|this._hl,T=0;T<32;T+=2)t[T]=e.readInt32BE(4*T),t[T+1]=e.readInt32BE(4*T+4);for(;T<160;T+=2){var I=t[T-30],P=t[T-30+1],O=h(I,P),R=p(P,I),C=b(I=t[T-4],P=t[T-4+1]),j=v(P,I),B=t[T-14],N=t[T-14+1],F=t[T-32],L=t[T-32+1],z=R+N|0,H=O+B+m(z,R)|0;H=(H=H+C+m(z=z+j|0,j)|0)+F+m(z=z+L|0,L)|0,t[T]=H,t[T+1]=z}for(var U=0;U<160;U+=2){H=t[U],z=t[U+1];var D=c(r,n,i),q=c(w,_,S),Y=l(r,w),K=l(w,r),V=d(s,x),W=d(x,s),X=o[U],Z=o[U+1],G=u(s,f,g),Q=u(x,A,M),$=E+W|0,J=y+V+m($,E)|0;J=(J=(J=J+G+m($=$+Q|0,Q)|0)+X+m($=$+Z|0,Z)|0)+H+m($=$+z|0,z)|0;var ee=K+q|0,te=Y+D+m(ee,K)|0;y=g,E=M,g=f,M=A,f=s,A=x,s=a+J+m(x=k+$|0,k)|0,a=i,k=S,i=n,S=_,n=r,_=w,r=J+te+m(w=$+ee|0,$)|0}this._al=this._al+w|0,this._bl=this._bl+_|0,this._cl=this._cl+S|0,this._dl=this._dl+k|0,this._el=this._el+x|0,this._fl=this._fl+A|0,this._gl=this._gl+M|0,this._hl=this._hl+E|0,this._ah=this._ah+r+m(this._al,w)|0,this._bh=this._bh+n+m(this._bl,_)|0,this._ch=this._ch+i+m(this._cl,S)|0,this._dh=this._dh+a+m(this._dl,k)|0,this._eh=this._eh+s+m(this._el,x)|0,this._fh=this._fh+f+m(this._fl,A)|0,this._gh=this._gh+g+m(this._gl,M)|0,this._hh=this._hh+y+m(this._hl,E)|0},f.prototype._hash=function(){var e=a.allocUnsafe(64);function t(t,r,n){e.writeInt32BE(t,n),e.writeInt32BE(r,n+4)}return t(this._ah,this._al,0),t(this._bh,this._bl,8),t(this._ch,this._cl,16),t(this._dh,this._dl,24),t(this._eh,this._el,32),t(this._fh,this._fl,40),t(this._gh,this._gl,48),t(this._hh,this._hl,56),e},e.exports=f},function(e,t,r){var n=r(1),i=r(17),a=r(4).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],s=new Array(64);function f(){this.init(),this._w=s,i.call(this,64,56)}function u(e,t,r){return r^e&(t^r)}function c(e,t,r){return e&t|r&(e|t)}function l(e){return(e>>>2|e<<30)^(e>>>13|e<<19)^(e>>>22|e<<10)}function d(e){return(e>>>6|e<<26)^(e>>>11|e<<21)^(e>>>25|e<<7)}function h(e){return(e>>>7|e<<25)^(e>>>18|e<<14)^e>>>3}n(f,i),f.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},f.prototype._update=function(e){for(var t,r=this._w,n=0|this._a,i=0|this._b,a=0|this._c,s=0|this._d,f=0|this._e,p=0|this._f,b=0|this._g,v=0|this._h,m=0;m<16;++m)r[m]=e.readInt32BE(4*m);for(;m<64;++m)r[m]=0|(((t=r[m-2])>>>17|t<<15)^(t>>>19|t<<13)^t>>>10)+r[m-7]+h(r[m-15])+r[m-16];for(var g=0;g<64;++g){var y=v+d(f)+u(f,p,b)+o[g]+r[g]|0,w=l(n)+c(n,i,a)|0;v=b,b=p,p=f,f=s+y|0,s=a,a=i,i=n,n=y+w|0}this._a=n+this._a|0,this._b=i+this._b|0,this._c=a+this._c|0,this._d=s+this._d|0,this._e=f+this._e|0,this._f=p+this._f|0,this._g=b+this._g|0,this._h=v+this._h|0},f.prototype._hash=function(){var e=a.allocUnsafe(32);return e.writeInt32BE(this._a,0),e.writeInt32BE(this._b,4),e.writeInt32BE(this._c,8),e.writeInt32BE(this._d,12),e.writeInt32BE(this._e,16),e.writeInt32BE(this._f,20),e.writeInt32BE(this._g,24),e.writeInt32BE(this._h,28),e},e.exports=f},function(e,t,r){"use strict";e.exports=a;var n=r(14),i=r(21);function a(e){if(!(this instanceof a))return new a(e);n.call(this,e),this._transformState={afterTransform:function(e,t){var r=this._transformState;r.transforming=!1;var n=r.writecb;if(!n)return this.emit("error",new Error("write callback called multiple times"));r.writechunk=null,r.writecb=null,null!=t&&this.push(t),n(e);var i=this._readableState;i.reading=!1,(i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,e&&("function"==typeof e.transform&&(this._transform=e.transform),"function"==typeof e.flush&&(this._flush=e.flush)),this.on("prefinish",o)}function o(){var e=this;"function"==typeof this._flush?this._flush(function(t,r){s(e,t,r)}):s(this,null,null)}function s(e,t,r){if(t)return e.emit("error",t);if(null!=r&&e.push(r),e._writableState.length)throw new Error("Calling transform done when ws.length != 0");if(e._transformState.transforming)throw new Error("Calling transform done when still transforming");return e.push(null)}i.inherits=r(1),i.inherits(a,n),a.prototype.push=function(e,t){return this._transformState.needTransform=!1,n.prototype.push.call(this,e,t)},a.prototype._transform=function(e,t,r){throw new Error("_transform() is not implemented")},a.prototype._write=function(e,t,r){var n=this._transformState;if(n.writecb=r,n.writechunk=e,n.writeencoding=t,!n.transforming){var i=this._readableState;(n.needTransform||i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}},a.prototype._read=function(e){var t=this._transformState;null!==t.writechunk&&t.writecb&&!t.transforming?(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform)):t.needTransform=!0},a.prototype._destroy=function(e,t){var r=this;n.prototype._destroy.call(this,e,function(e){t(e),r.emit("close")})}},function(e,t,r){"use strict";var n=r(25);function i(e,t){e.emit("error",t)}e.exports={destroy:function(e,t){var r=this,a=this._readableState&&this._readableState.destroyed,o=this._writableState&&this._writableState.destroyed;return a||o?(t?t(e):!e||this._writableState&&this._writableState.errorEmitted||n.nextTick(i,this,e),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,function(e){!t&&e?(n.nextTick(i,r,e),r._writableState&&(r._writableState.errorEmitted=!0)):t&&t(e)}),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.finished=!1,this._writableState.errorEmitted=!1)}}},function(e,t,r){e.exports=r(40).EventEmitter},function(e,t,r){"use strict";(function(t,n){var i=r(25);e.exports=y;var a,o=r(73);y.ReadableState=g;r(40).EventEmitter;var s=function(e,t){return e.listeners(t).length},f=r(69),u=r(4).Buffer,c=t.Uint8Array||function(){};var l=r(21);l.inherits=r(1);var d=r(159),h=void 0;h=d&&d.debuglog?d.debuglog("stream"):function(){};var p,b=r(158),v=r(68);l.inherits(y,f);var m=["error","close","destroy","pause","resume"];function g(e,t){a=a||r(14),e=e||{};var n=t instanceof a;this.objectMode=!!e.objectMode,n&&(this.objectMode=this.objectMode||!!e.readableObjectMode);var i=e.highWaterMark,o=e.readableHighWaterMark,s=this.objectMode?16:16384;this.highWaterMark=i||0===i?i:n&&(o||0===o)?o:s,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new b,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(p||(p=r(36).StringDecoder),this.decoder=new p(e.encoding),this.encoding=e.encoding)}function y(e){if(a=a||r(14),!(this instanceof y))return new y(e);this._readableState=new g(e,this),this.readable=!0,e&&("function"==typeof e.read&&(this._read=e.read),"function"==typeof e.destroy&&(this._destroy=e.destroy)),f.call(this)}function w(e,t,r,n,i){var a,o=e._readableState;null===t?(o.reading=!1,function(e,t){if(t.ended)return;if(t.decoder){var r=t.decoder.end();r&&r.length&&(t.buffer.push(r),t.length+=t.objectMode?1:r.length)}t.ended=!0,x(e)}(e,o)):(i||(a=function(e,t){var r;n=t,u.isBuffer(n)||n instanceof c||"string"==typeof t||void 0===t||e.objectMode||(r=new TypeError("Invalid non-string/buffer chunk"));var n;return r}(o,t)),a?e.emit("error",a):o.objectMode||t&&t.length>0?("string"==typeof t||o.objectMode||Object.getPrototypeOf(t)===u.prototype||(t=function(e){return u.from(e)}(t)),n?o.endEmitted?e.emit("error",new Error("stream.unshift() after end event")):_(e,o,t,!0):o.ended?e.emit("error",new Error("stream.push() after EOF")):(o.reading=!1,o.decoder&&!r?(t=o.decoder.write(t),o.objectMode||0!==t.length?_(e,o,t,!1):M(e,o)):_(e,o,t,!1))):n||(o.reading=!1));return function(e){return!e.ended&&(e.needReadable||e.length<e.highWaterMark||0===e.length)}(o)}function _(e,t,r,n){t.flowing&&0===t.length&&!t.sync?(e.emit("data",r),e.read(0)):(t.length+=t.objectMode?1:r.length,n?t.buffer.unshift(r):t.buffer.push(r),t.needReadable&&x(e)),M(e,t)}Object.defineProperty(y.prototype,"destroyed",{get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e)}}),y.prototype.destroy=v.destroy,y.prototype._undestroy=v.undestroy,y.prototype._destroy=function(e,t){this.push(null),t(e)},y.prototype.push=function(e,t){var r,n=this._readableState;return n.objectMode?r=!0:"string"==typeof e&&((t=t||n.defaultEncoding)!==n.encoding&&(e=u.from(e,t),t=""),r=!0),w(this,e,t,!1,r)},y.prototype.unshift=function(e){return w(this,e,null,!0,!1)},y.prototype.isPaused=function(){return!1===this._readableState.flowing},y.prototype.setEncoding=function(e){return p||(p=r(36).StringDecoder),this._readableState.decoder=new p(e),this._readableState.encoding=e,this};var S=8388608;function k(e,t){return e<=0||0===t.length&&t.ended?0:t.objectMode?1:e!=e?t.flowing&&t.length?t.buffer.head.data.length:t.length:(e>t.highWaterMark&&(t.highWaterMark=function(e){return e>=S?e=S:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}function x(e){var t=e._readableState;t.needReadable=!1,t.emittedReadable||(h("emitReadable",t.flowing),t.emittedReadable=!0,t.sync?i.nextTick(A,e):A(e))}function A(e){h("emit readable"),e.emit("readable"),P(e)}function M(e,t){t.readingMore||(t.readingMore=!0,i.nextTick(E,e,t))}function E(e,t){for(var r=t.length;!t.reading&&!t.flowing&&!t.ended&&t.length<t.highWaterMark&&(h("maybeReadMore read 0"),e.read(0),r!==t.length);)r=t.length;t.readingMore=!1}function T(e){h("readable nexttick read 0"),e.read(0)}function I(e,t){t.reading||(h("resume read 0"),e.read(0)),t.resumeScheduled=!1,t.awaitDrain=0,e.emit("resume"),P(e),t.flowing&&!t.reading&&e.read(0)}function P(e){var t=e._readableState;for(h("flow",t.flowing);t.flowing&&null!==e.read(););}function O(e,t){return 0===t.length?null:(t.objectMode?r=t.buffer.shift():!e||e>=t.length?(r=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.head.data:t.buffer.concat(t.length),t.buffer.clear()):r=function(e,t,r){var n;e<t.head.data.length?(n=t.head.data.slice(0,e),t.head.data=t.head.data.slice(e)):n=e===t.head.data.length?t.shift():r?function(e,t){var r=t.head,n=1,i=r.data;e-=i.length;for(;r=r.next;){var a=r.data,o=e>a.length?a.length:e;if(o===a.length?i+=a:i+=a.slice(0,e),0===(e-=o)){o===a.length?(++n,r.next?t.head=r.next:t.head=t.tail=null):(t.head=r,r.data=a.slice(o));break}++n}return t.length-=n,i}(e,t):function(e,t){var r=u.allocUnsafe(e),n=t.head,i=1;n.data.copy(r),e-=n.data.length;for(;n=n.next;){var a=n.data,o=e>a.length?a.length:e;if(a.copy(r,r.length-e,0,o),0===(e-=o)){o===a.length?(++i,n.next?t.head=n.next:t.head=t.tail=null):(t.head=n,n.data=a.slice(o));break}++i}return t.length-=i,r}(e,t);return n}(e,t.buffer,t.decoder),r);var r}function R(e){var t=e._readableState;if(t.length>0)throw new Error('"endReadable()" called on non-empty stream');t.endEmitted||(t.ended=!0,i.nextTick(C,t,e))}function C(e,t){e.endEmitted||0!==e.length||(e.endEmitted=!0,t.readable=!1,t.emit("end"))}function j(e,t){for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return-1}y.prototype.read=function(e){h("read",e),e=parseInt(e,10);var t=this._readableState,r=e;if(0!==e&&(t.emittedReadable=!1),0===e&&t.needReadable&&(t.length>=t.highWaterMark||t.ended))return h("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?R(this):x(this),null;if(0===(e=k(e,t))&&t.ended)return 0===t.length&&R(this),null;var n,i=t.needReadable;return h("need readable",i),(0===t.length||t.length-e<t.highWaterMark)&&h("length less than watermark",i=!0),t.ended||t.reading?h("reading or ended",i=!1):i&&(h("do read"),t.reading=!0,t.sync=!0,0===t.length&&(t.needReadable=!0),this._read(t.highWaterMark),t.sync=!1,t.reading||(e=k(r,t))),null===(n=e>0?O(e,t):null)?(t.needReadable=!0,e=0):t.length-=e,0===t.length&&(t.ended||(t.needReadable=!0),r!==e&&t.ended&&R(this)),null!==n&&this.emit("data",n),n},y.prototype._read=function(e){this.emit("error",new Error("_read() is not implemented"))},y.prototype.pipe=function(e,t){var r=this,a=this._readableState;switch(a.pipesCount){case 0:a.pipes=e;break;case 1:a.pipes=[a.pipes,e];break;default:a.pipes.push(e)}a.pipesCount+=1,h("pipe count=%d opts=%j",a.pipesCount,t);var f=(!t||!1!==t.end)&&e!==n.stdout&&e!==n.stderr?c:y;function u(t,n){h("onunpipe"),t===r&&n&&!1===n.hasUnpiped&&(n.hasUnpiped=!0,h("cleanup"),e.removeListener("close",m),e.removeListener("finish",g),e.removeListener("drain",l),e.removeListener("error",v),e.removeListener("unpipe",u),r.removeListener("end",c),r.removeListener("end",y),r.removeListener("data",b),d=!0,!a.awaitDrain||e._writableState&&!e._writableState.needDrain||l())}function c(){h("onend"),e.end()}a.endEmitted?i.nextTick(f):r.once("end",f),e.on("unpipe",u);var l=function(e){return function(){var t=e._readableState;h("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&s(e,"data")&&(t.flowing=!0,P(e))}}(r);e.on("drain",l);var d=!1;var p=!1;function b(t){h("ondata"),p=!1,!1!==e.write(t)||p||((1===a.pipesCount&&a.pipes===e||a.pipesCount>1&&-1!==j(a.pipes,e))&&!d&&(h("false write response, pause",r._readableState.awaitDrain),r._readableState.awaitDrain++,p=!0),r.pause())}function v(t){h("onerror",t),y(),e.removeListener("error",v),0===s(e,"error")&&e.emit("error",t)}function m(){e.removeListener("finish",g),y()}function g(){h("onfinish"),e.removeListener("close",m),y()}function y(){h("unpipe"),r.unpipe(e)}return r.on("data",b),function(e,t,r){if("function"==typeof e.prependListener)return e.prependListener(t,r);e._events&&e._events[t]?o(e._events[t])?e._events[t].unshift(r):e._events[t]=[r,e._events[t]]:e.on(t,r)}(e,"error",v),e.once("close",m),e.once("finish",g),e.emit("pipe",r),a.flowing||(h("pipe resume"),r.resume()),e},y.prototype.unpipe=function(e){var t=this._readableState,r={hasUnpiped:!1};if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes?this:(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,r),this);if(!e){var n=t.pipes,i=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var a=0;a<i;a++)n[a].emit("unpipe",this,r);return this}var o=j(t.pipes,e);return-1===o?this:(t.pipes.splice(o,1),t.pipesCount-=1,1===t.pipesCount&&(t.pipes=t.pipes[0]),e.emit("unpipe",this,r),this)},y.prototype.on=function(e,t){var r=f.prototype.on.call(this,e,t);if("data"===e)!1!==this._readableState.flowing&&this.resume();else if("readable"===e){var n=this._readableState;n.endEmitted||n.readableListening||(n.readableListening=n.needReadable=!0,n.emittedReadable=!1,n.reading?n.length&&x(this):i.nextTick(T,this))}return r},y.prototype.addListener=y.prototype.on,y.prototype.resume=function(){var e=this._readableState;return e.flowing||(h("resume"),e.flowing=!0,function(e,t){t.resumeScheduled||(t.resumeScheduled=!0,i.nextTick(I,e,t))}(this,e)),this},y.prototype.pause=function(){return h("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(h("pause"),this._readableState.flowing=!1,this.emit("pause")),this},y.prototype.wrap=function(e){var t=this,r=this._readableState,n=!1;for(var i in e.on("end",function(){if(h("wrapped end"),r.decoder&&!r.ended){var e=r.decoder.end();e&&e.length&&t.push(e)}t.push(null)}),e.on("data",function(i){(h("wrapped data"),r.decoder&&(i=r.decoder.write(i)),!r.objectMode||null!==i&&void 0!==i)&&((r.objectMode||i&&i.length)&&(t.push(i)||(n=!0,e.pause())))}),e)void 0===this[i]&&"function"==typeof e[i]&&(this[i]=function(t){return function(){return e[t].apply(e,arguments)}}(i));for(var a=0;a<m.length;a++)e.on(m[a],this.emit.bind(this,m[a]));return this._read=function(t){h("wrapped _read",t),n&&(n=!1,e.resume())},this},y._fromList=O}).call(this,r(15),r(9))},function(e,t,r){e.exports=i;var n=r(40).EventEmitter;function i(){n.call(this)}r(1)(i,n),i.Readable=r(39),i.Writable=r(153),i.Duplex=r(152),i.Transform=r(151),i.PassThrough=r(150),i.Stream=i,i.prototype.pipe=function(e,t){var r=this;function i(t){e.writable&&!1===e.write(t)&&r.pause&&r.pause()}function a(){r.readable&&r.resume&&r.resume()}r.on("data",i),e.on("drain",a),e._isStdio||t&&!1===t.end||(r.on("end",s),r.on("close",f));var o=!1;function s(){o||(o=!0,e.end())}function f(){o||(o=!0,"function"==typeof e.destroy&&e.destroy())}function u(e){if(c(),0===n.listenerCount(this,"error"))throw e}function c(){r.removeListener("data",i),e.removeListener("drain",a),r.removeListener("end",s),r.removeListener("close",f),r.removeListener("error",u),e.removeListener("error",u),r.removeListener("end",c),r.removeListener("close",c),e.removeListener("close",c)}return r.on("error",u),e.on("error",u),r.on("end",c),r.on("close",c),e.on("close",c),e.emit("pipe",r),e}},function(e,t,r){"use strict";var n=r(164),i=r(143);e.exports=i(function(e){var t=n("sha256").update(e).digest();return n("sha256").update(t).digest()})},function(e,t){var r={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==r.call(e)}},function(e,t,r){"use strict";function n(e){this.message=e}n.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},n.prototype.__CANCEL__=!0,e.exports=n},function(e,t,r){"use strict";e.exports=function(e){return!(!e||!e.__CANCEL__)}},function(e,t,r){"use strict";var n=r(180);e.exports=function(e,t,r,i,a){var o=new Error(e);return n(o,t,r,i,a)}},function(e,t,r){"use strict";var n=r(8),i=r(181),a=r(179),o=r(178),s=r(177),f=r(76),u="undefined"!=typeof window&&window.btoa&&window.btoa.bind(window)||r(176);e.exports=function(e){return new Promise(function(t,c){var l=e.data,d=e.headers;n.isFormData(l)&&delete d["Content-Type"];var h=new XMLHttpRequest,p="onreadystatechange",b=!1;if("undefined"==typeof window||!window.XDomainRequest||"withCredentials"in h||s(e.url)||(h=new window.XDomainRequest,p="onload",b=!0,h.onprogress=function(){},h.ontimeout=function(){}),e.auth){var v=e.auth.username||"",m=e.auth.password||"";d.Authorization="Basic "+u(v+":"+m)}if(h.open(e.method.toUpperCase(),a(e.url,e.params,e.paramsSerializer),!0),h.timeout=e.timeout,h[p]=function(){if(h&&(4===h.readyState||b)&&(0!==h.status||h.responseURL&&0===h.responseURL.indexOf("file:"))){var r="getAllResponseHeaders"in h?o(h.getAllResponseHeaders()):null,n={data:e.responseType&&"text"!==e.responseType?h.response:h.responseText,status:1223===h.status?204:h.status,statusText:1223===h.status?"No Content":h.statusText,headers:r,config:e,request:h};i(t,c,n),h=null}},h.onerror=function(){c(f("Network Error",e,null,h)),h=null},h.ontimeout=function(){c(f("timeout of "+e.timeout+"ms exceeded",e,"ECONNABORTED",h)),h=null},n.isStandardBrowserEnv()){var g=r(175),y=(e.withCredentials||s(e.url))&&e.xsrfCookieName?g.read(e.xsrfCookieName):void 0;y&&(d[e.xsrfHeaderName]=y)}if("setRequestHeader"in h&&n.forEach(d,function(e,t){void 0===l&&"content-type"===t.toLowerCase()?delete d[t]:h.setRequestHeader(t,e)}),e.withCredentials&&(h.withCredentials=!0),e.responseType)try{h.responseType=e.responseType}catch(t){if("json"!==e.responseType)throw t}"function"==typeof e.onDownloadProgress&&h.addEventListener("progress",e.onDownloadProgress),"function"==typeof e.onUploadProgress&&h.upload&&h.upload.addEventListener("progress",e.onUploadProgress),e.cancelToken&&e.cancelToken.promise.then(function(e){h&&(h.abort(),c(e),h=null)}),void 0===l&&(l=null),h.send(l)})}},function(e,t,r){"use strict";e.exports=function(e,t){return function(){for(var r=new Array(arguments.length),n=0;n<r.length;n++)r[n]=arguments[n];return e.apply(t,r)}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getMaxClaimAmountFrom=t.getWalletDBHeightFrom=t.getTransactionHistoryFrom=t.getRPCEndpointFrom=t.getClaimsFrom=t.getBalanceFrom=t.makeIntent=t.sendTx=t.signTx=t.createTx=t.fillKeys=t.fillBalance=t.fillUrl=t.doInvoke=t.claimGas=t.sendAsset=void 0;var n,i=r(12),a=r(3),o=r(18),s=r(16),f=r(0),u=r(43);function c(e){return(c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var l=(0,((n=r(2))&&n.__esModule?n:{default:n}).default)("api");t.sendAsset=function(e){return d(e).then(p).then(h).then(function(e){return b(e,"contract")}).then(function(e){return w(e)}).then(function(e){return v(e)}).then(function(e){return _(e)}).then(function(e){return m(e)}).catch(function(t){var r={net:e.net,address:e.address,intents:e.intents,balance:e.balance,tx:e.tx};throw l.error("sendAsset failed with: ".concat(t.message,". Dumping config"),r),t})};t.claimGas=function(e){return d(e).then(p).then(function(t){return(0,u.loadBalance)(x,e)}).then(function(e){return b(e,"claim")}).then(function(e){return v(e)}).then(function(e){return m(e)}).catch(function(t){var r={net:e.net,address:e.address,intents:e.intents,claims:e.claims,tx:e.tx};throw l.error("claimGas failed with ".concat(t.message,". Dumping config"),r),t})};t.doInvoke=function(e){return d(e).then(p).then(h).then(function(e){return b(e,"invocation")}).then(function(e){return w(e)}).then(function(e){return g(e)}).then(function(e){return v(e)}).then(function(e){return y(e)}).then(function(e){return _(e)}).then(function(e){return m(e)}).catch(function(t){var r={net:e.net,address:e.address,intents:e.intents,balance:e.balance,script:e.script,gas:e.gas,tx:e.tx};throw l.error("doInvoke failed with ".concat(t.message,". Dumping config"),r),t})};var d=function(e){return e.url?Promise.resolve(e):(0,u.loadBalance)(A,e).then(function(t){return Object.assign(e,{url:t})})};t.fillUrl=d;var h=function(e){return e.balance?Promise.resolve(e):(0,u.loadBalance)(k,e)};t.fillBalance=h;var p=function(e){return e.account&&(e.address||(e.address=e.account.address),e.privateKey||e.signingFunction||(e.privateKey=e.account.privateKey),!e.publicKey&&e.signingFunction&&(e.publicKey=e.account.publicKey)),Promise.resolve(e)};t.fillKeys=p;var b=function(e,t){if(e.tx)return e;var r;switch("string"==typeof t&&(t=t.toLowerCase()),t){case"claim":case 2:S(e,"claims"),r=s.Transaction.createClaimTx(e.address,e.claims);break;case"contract":case 128:S(e,"balance","intents"),r=s.Transaction.createContractTx(e.balance,e.intents,e.override);break;case"invocation":case 209:S(e,"balance","gas","script"),e.intents||(e.intents=[]),r=s.Transaction.createInvocationTx(e.balance,e.intents,e.script,e.gas,e.override);break;default:return Promise.reject(new Error("Tx Type not found: ".concat(t)))}return Promise.resolve(Object.assign(e,{tx:r}))};t.createTx=b;var v=function(e){var t;if(S(e,"tx"),e.signingFunction){var r=new i.Account(e.publicKey);t=e.signingFunction(e.tx,r.publicKey).then(function(e){return"string"==typeof e&&(e=s.Transaction.deserialize(e)),e})}else{if(!e.privateKey)return Promise.reject(new Error("Needs privateKey or signingFunction to sign!"));var n=new i.Account(e.privateKey);if(e.address!==n.address&&!e.sendingFromSmartContract)return Promise.reject(new Error("Private Key and Balance address does not match!"));t=Promise.resolve(e.tx.sign(n.privateKey))}return t.then(function(t){return Object.assign(e,{tx:t})})};t.signTx=v;var m=function(e){return S(e,"tx","url"),o.Query.sendRawTransaction(e.tx).execute(e.url).then(function(t){if(!0===t.result)t.txid=e.tx.hash,e.balance&&e.balance.applyTx(e.tx,!1);else{var r={net:e.net,address:e.address,intents:e.intents,balance:e.balance,claims:e.claims,script:e.script,gas:e.gas,tx:e.tx};l.error("Transaction failed for ".concat(e.address,": ").concat(e.tx.serialize()),r)}return Object.assign(e,{response:t})})};t.sendTx=m;t.makeIntent=function(e,t){var r=new i.Account(t);return Object.keys(e).map(function(t){return(0,s.TransactionOutput)({assetId:a.ASSET_ID[t],value:e[t],scriptHash:r.scriptHash})})};var g=function(e){return e.override||(e.override={}),"object"===c(e.script)&&"mintTokens"===e.script.operation&&e.script.scriptHash&&e.tx.addAttribute(s.TxAttrUsage.Script,(0,f.reverseHex)(e.script.scriptHash)),Promise.resolve(e)},y=function(e){return"object"===c(e.script)&&"mintTokens"===e.script.operation&&e.script.scriptHash?o.Query.getContractState(e.script.scriptHash).execute(e.url).then(function(t){var r=t.result.parameters,n={invocationScript:"00".repeat(r.length),verificationScript:""},a=new i.Account(e.address);return parseInt(e.script.scriptHash,16)>parseInt(a.scriptHash,16)?e.tx.scripts.push(n):e.tx.scripts.unshift(n),e}):Promise.resolve(e)},w=function(e){if(e.override||(e.override={}),e.sendingFromSmartContract){var t=e.privateKey?new i.Account(e.privateKey):new i.Account(e.publicKey);e.tx.addAttribute(s.TxAttrUsage.Script,(0,f.reverseHex)(t.scriptHash))}return Promise.resolve(e)},_=function(e){if(e.sendingFromSmartContract){var t=(0,i.getScriptHashFromAddress)(e.address);return o.Query.getContractState(t).execute(e.url).then(function(r){var n=r.result.parameters,a={invocationScript:"00".repeat(n.length),verificationScript:""},o=e.privateKey?new i.Account(e.privateKey):new i.Account(e.publicKey);return parseInt(t,16)>parseInt(o.scriptHash,16)?e.tx.scripts.push(a):e.tx.scripts.unshift(a),e})}return Promise.resolve(e)},S=function(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];for(var i=0;i<r.length;i++){var a=r[i];if(!e.hasOwnProperty(a))throw new ReferenceError("Property not found: ".concat(a))}},k=function(e,t){return new Promise(function(r){if(S(e,"net","address"),!t.getBalance||!t.getRPCEndpoint)throw new Error("Invalid type. Is this an API object?");r()}).then(function(){var r=e.net,n=e.address;return t.getBalance(r,n)}).then(function(t){return Object.assign(e,{balance:t})})};t.getBalanceFrom=k;var x=function(e,t){return new Promise(function(r){if(S(e,"net","address"),!t.getBalance||!t.getRPCEndpoint)throw new Error("Invalid type. Is this an API object?");r()}).then(function(){var r=e.net,n=e.address;return t.getClaims(r,n)}).then(function(t){return Object.assign(e,{claims:t})})};t.getClaimsFrom=x;var A=function(e,t){return new Promise(function(r){if(S(e,"net"),!t.getRPCEndpoint)throw new Error("Invalid type. Is this an API object?");r()}).then(function(){var r=e.net;return t.getRPCEndpoint(r)})};t.getRPCEndpointFrom=A;t.getTransactionHistoryFrom=function(e,t){return new Promise(function(r){if(S(e,"net","address"),!t.getTransactionHistory)throw new Error("Invalid type. Is this an API object?");r()}).then(function(){var r=e.address,n=e.net;return t.getTransactionHistory(n,r)})};t.getWalletDBHeightFrom=function(e,t){return new Promise(function(r){if(S(e,"net"),!t.getWalletDBHeight)throw new Error("Invalid type. Is this an API object?");r()}).then(function(){var r=e.net;return t.getWalletDBHeight(r)})};t.getMaxClaimAmountFrom=function(e,t){return new Promise(function(r){if(S(e,"net","address"),!t.getMaxClaimAmount)throw new Error("Invalid type. Is this an API object?");r()}).then(function(){var r=e.net,n=e.address;return t.getMaxClaimAmount(r,n)})}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.doTransferToken=t.getToken=t.getTokenBalance=t.getTokenInfo=void 0;var n,i=r(29),a=r(12),o=r(18),s=r(0),f=r(42),u=r(16),c=r(3);var l=(0,((n=r(2))&&n.__esModule?n:{default:n}).default)("api"),d=function(e){return""===e?0:parseInt(e,10)},h=function(e){return e?parseInt((0,s.reverseHex)(e),16):0},p=(0,o.VMZip)(s.hexstring2str,s.hexstring2str,d,h),b=(0,o.VMZip)(s.hexstring2str,s.hexstring2str,d,h,h);t.getTokenInfo=function(e,t){var r=new i.ScriptBuilder;r.emitAppCall(t,"name").emitAppCall(t,"symbol").emitAppCall(t,"decimals").emitAppCall(t,"totalSupply");var n=r.str;return o.Query.invokeScript(n,!1).parseWith(p).execute(e).then(function(e){return{name:e[0],symbol:e[1],decimals:e[2],totalSupply:e[3]/Math.pow(10,e[2])}}).catch(function(e){throw l.error("getTokenInfo failed with : ".concat(e.message)),e})};t.getTokenBalance=function(e,t,r){var n=(0,s.reverseHex)((0,a.getScriptHashFromAddress)(r)),f=(new i.ScriptBuilder).emitAppCall(t,"decimals").emitAppCall(t,"balanceOf",[n]).str;return o.Query.invokeScript(f,!1).execute(e).then(function(e){try{var t=d(e.result.stack[0].value);return h(e.result.stack[1].value)/Math.pow(10,t)}catch(e){return 0}}).catch(function(e){throw l.error("getTokenBalance failed with : ".concat(e.message)),e})};t.getToken=function(e,t,r){var n=r?b:p,f=new i.ScriptBuilder;if(f.emitAppCall(t,"name").emitAppCall(t,"symbol").emitAppCall(t,"decimals").emitAppCall(t,"totalSupply"),r){var u=(0,s.reverseHex)((0,a.getScriptHashFromAddress)(r));f.emitAppCall(t,"balanceOf",[u])}var c=f.str;return o.Query.invokeScript(c,!1).parseWith(n).execute(e).then(function(e){return{name:e[0],symbol:e[1],decimals:e[2],totalSupply:e[3]/Math.pow(10,e[2]),balance:5===e.length?e[4]/Math.pow(10,e[2]):null}}).catch(function(e){throw l.error("getToken failed with : ".concat(e.message)),e})};t.doTransferToken=function(e,t,r,n,i){var d=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0,h=arguments.length>6&&void 0!==arguments[6]?arguments[6]:null;l.warn("doTransferToken will be deprecated in favor of doInvoke");var p,b,v=new a.Account(r),m=(0,f.getRPCEndpoint)(e),g=(0,f.getBalance)(e,v.address);return Promise.all([m,g]).then(function(e){b=e[0];var r=e[1],o=(0,a.getScriptHashFromAddress)(v.address),f=(0,s.reverseHex)((0,a.getScriptHashFromAddress)(n)),l=[{assetId:c.ASSET_ID.GAS,value:1e-8,scriptHash:o}],p={scriptHash:t,operation:"transfer",args:[(0,s.reverseHex)(o),f,i]},m=u.Transaction.createInvocationTx(r,l,p,d,{version:1});return h?h(m,v.publicKey):m.sign(v.privateKey)}).then(function(e){return p=e,o.Query.sendRawTransaction(p).execute(b)}).then(function(e){return!0===e.result&&(e.txid=p.hash),e})}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getPrices=t.getPrice=void 0;var n=i(r(27));function i(e){return e&&e.__esModule?e:{default:e}}function a(e){return function(e){if(Array.isArray(e)){for(var t=0,r=new Array(e.length);t<e.length;t++)r[t]=e[t];return r}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}var o=(0,i(r(2)).default)("api"),s=["aud","brl","cad","chf","clp","cny","czk","dkk","eur","gbp","hkd","huf","idr","ils","inr","jpy","krw","mxn","myr","nok","nzd","php","pkr","pln","rub","sek","sgd","thb","try","twd","usd","zar"];t.getPrice=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"NEO",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"usd";return o.warn("This is deprecated in favor of getPrices. There is a known bug for NEP5 tokens with this function."),f("https://api.coinmarketcap.com/v1/ticker/".concat(e.toLowerCase(),"/"),t).then(function(t){var r=t[e.toUpperCase()];if(r)return r;throw new Error("Something went wrong with the CoinMarketCap API!")}).catch(function(e){throw o.error(e.message),e})};function f(e,t){return t=t.toLowerCase(),s.includes(t)?n.default.get("".concat(e,"?limit=0&convert=").concat(t)).then(function(e){var r=e.data;if(r.error)throw new Error(r.error);return function(e,t){var r={};return e.forEach(function(e){r[e.symbol]=parseFloat(e["price_".concat(t.toLowerCase())])}),r}(r,t)}):Promise.reject(new ReferenceError("".concat(t," is not one of the accepted currencies!")))}t.getPrices=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["NEO"];return f("https://api.coinmarketcap.com/v1/ticker/",arguments.length>1&&void 0!==arguments[1]?arguments[1]:"usd").then(function(t){e=e.map(function(e){return e.toUpperCase()});var r=function(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];return Object.assign.apply(Object,[{}].concat(a(r.map(function(t){return function(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}({},t,e[t])}))))}.apply(void 0,[t].concat(a(e)));if(e.some(function(e){return!r[e]}))throw new Error("None of the coin symbols are supported by CoinMarketCap!");return r}).catch(function(e){throw o.error(e.message),e})}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n,i=r(45),a=(n=r(33))&&n.__esModule?n:{default:n};function o(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var s=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.address=t.address||"",this.net=t.net||"NoNet",this.claims=t.claims?t.claims.map(function(e){return(0,i.ClaimItem)(e)}):[]}var t,r,n;return t=e,(r=[{key:a.default.inspect.custom,value:function(e,t){var r=this.claims.map(function(e){return"".concat(e.txid," <").concat(e.index,">: ").concat(e.claim.toString())});return"[Claims(".concat(this.net,"): ").concat(this.address,"]\n").concat(JSON.stringify(r,null,2))}},{key:"export",value:function(){return{address:this.address,net:this.net,claims:this.claims.map(i.exportClaimItem)}}},{key:"slice",value:function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0;return new e({address:this.address,net:this.net,claims:this.claims.slice(t,r)})}},{key:Symbol.toStringTag,get:function(){return"Claims"}}])&&o(t.prototype,r),n&&o(t,n),e}();t.default=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=o(r(19)),i=o(r(30)),a=r(3);function o(e){return e&&e.__esModule?e:{default:e}}function s(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var f=(0,o(r(2)).default)("wallet"),u=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:a.DEFAULT_WALLET,r=t.name,n=void 0===r?"myWallet":r,i=t.version,o=void 0===i?a.DEFAULT_WALLET.version:i,s=t.scrypt,u=void 0===s?a.DEFAULT_SCRYPT:s,c=t.accounts,l=void 0===c?[]:c,d=t.extra,h=void 0===d?null:d;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.name=n,this.version=o,this.scrypt={n:u.n||u.cost,r:u.r||u.blockSize,p:u.p||u.parallel},this.accounts=[];var p=!0,b=!1,v=void 0;try{for(var m,g=l[Symbol.iterator]();!(p=(m=g.next()).done);p=!0){var y=m.value;this.addAccount(y)}}catch(e){b=!0,v=e}finally{try{p||null==g.return||g.return()}finally{if(b)throw v}}this.extra=h,f.info("New Wallet created: ".concat(this.name))}var t,r,o;return t=e,r=[{key:"addAccount",value:function(e){var t=this.accounts.length;e instanceof i.default||(e=new i.default(e)),this.accounts.push(e);try{var r=e.address;f.info("Added Account: ".concat(r," to Wallet ").concat(this.name))}catch(e){f.warn("Encrypted account added to Wallet ".concat(this.name,". You will not be able to export this wallet without first decrypting this account"))}return t}},{key:"decrypt",value:function(e,t){if(e<0)throw new Error("Index cannot be negative!");if(e>=this.accounts.length)throw new Error("Index cannot larger than Accounts array!");try{return this.accounts[e].decrypt(t,this.scrypt),!0}catch(e){return!1}}},{key:"decryptAll",value:function(e){var t=this,r=[];return this.accounts.map(function(n,i){r.push(t.decrypt(i,e))}),f.info("decryptAll for Wallet ".concat(this.name,": ").concat(r.reduce(function(e,t){return t+(e?"1":"0")},""))),r}},{key:"encrypt",value:function(e,t){if(e<0)throw new Error("Index cannot be negative!");if(e>=this.accounts.length)throw new Error("Index cannot larger than Accounts array!");try{return this.accounts[e].encrypt(t,this.scrypt),!0}catch(e){return!1}}},{key:"encryptAll",value:function(e){var t=this,r=[];return this.accounts.map(function(n,i){r.push(t.encrypt(i,e))}),f.info("decryptAll for Wallet ".concat(this.name,": ").concat(r.reduce(function(e,t){return t+(e?"1":"0")},""))),r}},{key:"export",value:function(){return{name:this.name,version:this.version,scrypt:this.scrypt,accounts:this.accounts.map(function(e){return e.export()}),extra:this.extra}}},{key:"setDefault",value:function(e){for(var t=0;t<this.accounts.length;t++)this.accounts[t].isDefault=t===e;f.info("Set Account: ".concat(this.accounts[e]," as default for Wallet ").concat(this.name))}},{key:"writeFile",value:function(e){return f.info("Exporting wallet file to: ".concat(e)),n.default.writeFile(e,JSON.stringify(this.export()),function(e){if(e)throw e;return f.info("Wallet file written!"),!0})}},{key:Symbol.toStringTag,get:function(){return"Wallet"}},{key:"defaultAccount",get:function(){if(0===this.accounts.length)throw new Error("No accounts available in this Wallet!");var e=!0,t=!1,r=void 0;try{for(var n,i=this.accounts[Symbol.iterator]();!(e=(n=i.next()).done);e=!0){var a=n.value;if(a.isDefault)return a}}catch(e){t=!0,r=e}finally{try{e||null==i.return||i.return()}finally{if(t)throw r}}var o=!0,s=!1,f=void 0;try{for(var u,c=this.accounts[Symbol.iterator]();!(o=(u=c.next()).done);o=!0){var l=u.value;if(l._privateKey||l._WIF)return l}}catch(e){s=!0,f=e}finally{try{o||null==c.return||c.return()}finally{if(s)throw f}}var d=!0,h=!1,p=void 0;try{for(var b,v=this.accounts[Symbol.iterator]();!(d=(b=v.next()).done);d=!0){var m=b.value;if(m.encrypted)return m}}catch(e){h=!0,p=e}finally{try{d||null==v.return||v.return()}finally{if(h)throw p}}return this.accounts[0]}}],o=[{key:"import",value:function(t){return new e(JSON.parse(t))}},{key:"readFile",value:function(e){return f.info("Importing wallet from file: ".concat(e)),this.import(n.default.readFileSync(e,"utf8"))}}],r&&s(t.prototype,r),o&&s(t,o),e}();t.default=u},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.VMZip=t.VMExtractor=t.VMParser=void 0;var n=r(0);t.VMParser=function(e){return e.result.stack.map(function(e){switch(e.type){case"ByteArray":return(0,n.ab2str)((0,n.hexstring2ab)(e.value));case"Integer":return parseInt(e.value,10);default:throw Error("Unknown type: ".concat(e.type))}})};t.VMExtractor=function(e){return e.result.stack.map(function(e){return e.value})};t.VMZip=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return function(e){var r=e.result.stack;if(r.length!==t.length)throw new RangeError("Invalid results length! Expected ".concat(t.length," but got ").concat(r.length));return r.map(function(e,r){return t[r](e.value)})}}},function(e,t,r){(function(r){var n;t=e.exports=X,n="object"==typeof r&&r.env&&r.env.NODE_DEBUG&&/\bsemver\b/i.test(r.env.NODE_DEBUG)?function(){var e=Array.prototype.slice.call(arguments,0);e.unshift("SEMVER"),console.log.apply(console,e)}:function(){},t.SEMVER_SPEC_VERSION="2.0.0";var i=256,a=Number.MAX_SAFE_INTEGER||9007199254740991,o=t.re=[],s=t.src=[],f=0,u=f++;s[u]="0|[1-9]\\d*";var c=f++;s[c]="[0-9]+";var l=f++;s[l]="\\d*[a-zA-Z-][a-zA-Z0-9-]*";var d=f++;s[d]="("+s[u]+")\\.("+s[u]+")\\.("+s[u]+")";var h=f++;s[h]="("+s[c]+")\\.("+s[c]+")\\.("+s[c]+")";var p=f++;s[p]="(?:"+s[u]+"|"+s[l]+")";var b=f++;s[b]="(?:"+s[c]+"|"+s[l]+")";var v=f++;s[v]="(?:-("+s[p]+"(?:\\."+s[p]+")*))";var m=f++;s[m]="(?:-?("+s[b]+"(?:\\."+s[b]+")*))";var g=f++;s[g]="[0-9A-Za-z-]+";var y=f++;s[y]="(?:\\+("+s[g]+"(?:\\."+s[g]+")*))";var w=f++,_="v?"+s[d]+s[v]+"?"+s[y]+"?";s[w]="^"+_+"$";var S="[v=\\s]*"+s[h]+s[m]+"?"+s[y]+"?",k=f++;s[k]="^"+S+"$";var x=f++;s[x]="((?:<|>)?=?)";var A=f++;s[A]=s[c]+"|x|X|\\*";var M=f++;s[M]=s[u]+"|x|X|\\*";var E=f++;s[E]="[v=\\s]*("+s[M]+")(?:\\.("+s[M]+")(?:\\.("+s[M]+")(?:"+s[v]+")?"+s[y]+"?)?)?";var T=f++;s[T]="[v=\\s]*("+s[A]+")(?:\\.("+s[A]+")(?:\\.("+s[A]+")(?:"+s[m]+")?"+s[y]+"?)?)?";var I=f++;s[I]="^"+s[x]+"\\s*"+s[E]+"$";var P=f++;s[P]="^"+s[x]+"\\s*"+s[T]+"$";var O=f++;s[O]="(?:^|[^\\d])(\\d{1,16})(?:\\.(\\d{1,16}))?(?:\\.(\\d{1,16}))?(?:$|[^\\d])";var R=f++;s[R]="(?:~>?)";var C=f++;s[C]="(\\s*)"+s[R]+"\\s+",o[C]=new RegExp(s[C],"g");var j=f++;s[j]="^"+s[R]+s[E]+"$";var B=f++;s[B]="^"+s[R]+s[T]+"$";var N=f++;s[N]="(?:\\^)";var F=f++;s[F]="(\\s*)"+s[N]+"\\s+",o[F]=new RegExp(s[F],"g");var L=f++;s[L]="^"+s[N]+s[E]+"$";var z=f++;s[z]="^"+s[N]+s[T]+"$";var H=f++;s[H]="^"+s[x]+"\\s*("+S+")$|^$";var U=f++;s[U]="^"+s[x]+"\\s*("+_+")$|^$";var D=f++;s[D]="(\\s*)"+s[x]+"\\s*("+S+"|"+s[E]+")",o[D]=new RegExp(s[D],"g");var q=f++;s[q]="^\\s*("+s[E]+")\\s+-\\s+("+s[E]+")\\s*$";var Y=f++;s[Y]="^\\s*("+s[T]+")\\s+-\\s+("+s[T]+")\\s*$";var K=f++;s[K]="(<|>)?=?\\s*\\*";for(var V=0;V<f;V++)n(V,s[V]),o[V]||(o[V]=new RegExp(s[V]));function W(e,t){if(e instanceof X)return e;if("string"!=typeof e)return null;if(e.length>i)return null;if(!(t?o[k]:o[w]).test(e))return null;try{return new X(e,t)}catch(e){return null}}function X(e,t){if(e instanceof X){if(e.loose===t)return e;e=e.version}else if("string"!=typeof e)throw new TypeError("Invalid Version: "+e);if(e.length>i)throw new TypeError("version is longer than "+i+" characters");if(!(this instanceof X))return new X(e,t);n("SemVer",e,t),this.loose=t;var r=e.trim().match(t?o[k]:o[w]);if(!r)throw new TypeError("Invalid Version: "+e);if(this.raw=e,this.major=+r[1],this.minor=+r[2],this.patch=+r[3],this.major>a||this.major<0)throw new TypeError("Invalid major version");if(this.minor>a||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>a||this.patch<0)throw new TypeError("Invalid patch version");r[4]?this.prerelease=r[4].split(".").map(function(e){if(/^[0-9]+$/.test(e)){var t=+e;if(t>=0&&t<a)return t}return e}):this.prerelease=[],this.build=r[5]?r[5].split("."):[],this.format()}t.parse=W,t.valid=function(e,t){var r=W(e,t);return r?r.version:null},t.clean=function(e,t){var r=W(e.trim().replace(/^[=v]+/,""),t);return r?r.version:null},t.SemVer=X,X.prototype.format=function(){return this.version=this.major+"."+this.minor+"."+this.patch,this.prerelease.length&&(this.version+="-"+this.prerelease.join(".")),this.version},X.prototype.toString=function(){return this.version},X.prototype.compare=function(e){return n("SemVer.compare",this.version,this.loose,e),e instanceof X||(e=new X(e,this.loose)),this.compareMain(e)||this.comparePre(e)},X.prototype.compareMain=function(e){return e instanceof X||(e=new X(e,this.loose)),G(this.major,e.major)||G(this.minor,e.minor)||G(this.patch,e.patch)},X.prototype.comparePre=function(e){if(e instanceof X||(e=new X(e,this.loose)),this.prerelease.length&&!e.prerelease.length)return-1;if(!this.prerelease.length&&e.prerelease.length)return 1;if(!this.prerelease.length&&!e.prerelease.length)return 0;var t=0;do{var r=this.prerelease[t],i=e.prerelease[t];if(n("prerelease compare",t,r,i),void 0===r&&void 0===i)return 0;if(void 0===i)return 1;if(void 0===r)return-1;if(r!==i)return G(r,i)}while(++t)},X.prototype.inc=function(e,t){switch(e){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",t);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",t);break;case"prepatch":this.prerelease.length=0,this.inc("patch",t),this.inc("pre",t);break;case"prerelease":0===this.prerelease.length&&this.inc("patch",t),this.inc("pre",t);break;case"major":0===this.minor&&0===this.patch&&0!==this.prerelease.length||this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":0===this.patch&&0!==this.prerelease.length||this.minor++,this.patch=0,this.prerelease=[];break;case"patch":0===this.prerelease.length&&this.patch++,this.prerelease=[];break;case"pre":if(0===this.prerelease.length)this.prerelease=[0];else{for(var r=this.prerelease.length;--r>=0;)"number"==typeof this.prerelease[r]&&(this.prerelease[r]++,r=-2);-1===r&&this.prerelease.push(0)}t&&(this.prerelease[0]===t?isNaN(this.prerelease[1])&&(this.prerelease=[t,0]):this.prerelease=[t,0]);break;default:throw new Error("invalid increment argument: "+e)}return this.format(),this.raw=this.version,this},t.inc=function(e,t,r,n){"string"==typeof r&&(n=r,r=void 0);try{return new X(e,r).inc(t,n).version}catch(e){return null}},t.diff=function(e,t){if(ee(e,t))return null;var r=W(e),n=W(t);if(r.prerelease.length||n.prerelease.length){for(var i in r)if(("major"===i||"minor"===i||"patch"===i)&&r[i]!==n[i])return"pre"+i;return"prerelease"}for(var i in r)if(("major"===i||"minor"===i||"patch"===i)&&r[i]!==n[i])return i},t.compareIdentifiers=G;var Z=/^[0-9]+$/;function G(e,t){var r=Z.test(e),n=Z.test(t);return r&&n&&(e=+e,t=+t),r&&!n?-1:n&&!r?1:e<t?-1:e>t?1:0}function Q(e,t,r){return new X(e,r).compare(new X(t,r))}function $(e,t,r){return Q(e,t,r)>0}function J(e,t,r){return Q(e,t,r)<0}function ee(e,t,r){return 0===Q(e,t,r)}function te(e,t,r){return 0!==Q(e,t,r)}function re(e,t,r){return Q(e,t,r)>=0}function ne(e,t,r){return Q(e,t,r)<=0}function ie(e,t,r,n){var i;switch(t){case"===":"object"==typeof e&&(e=e.version),"object"==typeof r&&(r=r.version),i=e===r;break;case"!==":"object"==typeof e&&(e=e.version),"object"==typeof r&&(r=r.version),i=e!==r;break;case"":case"=":case"==":i=ee(e,r,n);break;case"!=":i=te(e,r,n);break;case">":i=$(e,r,n);break;case">=":i=re(e,r,n);break;case"<":i=J(e,r,n);break;case"<=":i=ne(e,r,n);break;default:throw new TypeError("Invalid operator: "+t)}return i}function ae(e,t){if(e instanceof ae){if(e.loose===t)return e;e=e.value}if(!(this instanceof ae))return new ae(e,t);n("comparator",e,t),this.loose=t,this.parse(e),this.semver===oe?this.value="":this.value=this.operator+this.semver.version,n("comp",this)}t.rcompareIdentifiers=function(e,t){return G(t,e)},t.major=function(e,t){return new X(e,t).major},t.minor=function(e,t){return new X(e,t).minor},t.patch=function(e,t){return new X(e,t).patch},t.compare=Q,t.compareLoose=function(e,t){return Q(e,t,!0)},t.rcompare=function(e,t,r){return Q(t,e,r)},t.sort=function(e,r){return e.sort(function(e,n){return t.compare(e,n,r)})},t.rsort=function(e,r){return e.sort(function(e,n){return t.rcompare(e,n,r)})},t.gt=$,t.lt=J,t.eq=ee,t.neq=te,t.gte=re,t.lte=ne,t.cmp=ie,t.Comparator=ae;var oe={};function se(e,t){if(e instanceof se)return e.loose===t?e:new se(e.raw,t);if(e instanceof ae)return new se(e.value,t);if(!(this instanceof se))return new se(e,t);if(this.loose=t,this.raw=e,this.set=e.split(/\s*\|\|\s*/).map(function(e){return this.parseRange(e.trim())},this).filter(function(e){return e.length}),!this.set.length)throw new TypeError("Invalid SemVer Range: "+e);this.format()}function fe(e){return!e||"x"===e.toLowerCase()||"*"===e}function ue(e,t,r,n,i,a,o,s,f,u,c,l,d){return((t=fe(r)?"":fe(n)?">="+r+".0.0":fe(i)?">="+r+"."+n+".0":">="+t)+" "+(s=fe(f)?"":fe(u)?"<"+(+f+1)+".0.0":fe(c)?"<"+f+"."+(+u+1)+".0":l?"<="+f+"."+u+"."+c+"-"+l:"<="+s)).trim()}function ce(e,t){for(var r=0;r<e.length;r++)if(!e[r].test(t))return!1;if(t.prerelease.length){for(r=0;r<e.length;r++)if(n(e[r].semver),e[r].semver!==oe&&e[r].semver.prerelease.length>0){var i=e[r].semver;if(i.major===t.major&&i.minor===t.minor&&i.patch===t.patch)return!0}return!1}return!0}function le(e,t,r){try{t=new se(t,r)}catch(e){return!1}return t.test(e)}function de(e,t,r,n){var i,a,o,s,f;switch(e=new X(e,n),t=new se(t,n),r){case">":i=$,a=ne,o=J,s=">",f=">=";break;case"<":i=J,a=re,o=$,s="<",f="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(le(e,t,n))return!1;for(var u=0;u<t.set.length;++u){var c=null,l=null;if(t.set[u].forEach(function(e){e.semver===oe&&(e=new ae(">=0.0.0")),c=c||e,l=l||e,i(e.semver,c.semver,n)?c=e:o(e.semver,l.semver,n)&&(l=e)}),c.operator===s||c.operator===f)return!1;if((!l.operator||l.operator===s)&&a(e,l.semver))return!1;if(l.operator===f&&o(e,l.semver))return!1}return!0}ae.prototype.parse=function(e){var t=this.loose?o[H]:o[U],r=e.match(t);if(!r)throw new TypeError("Invalid comparator: "+e);this.operator=r[1],"="===this.operator&&(this.operator=""),r[2]?this.semver=new X(r[2],this.loose):this.semver=oe},ae.prototype.toString=function(){return this.value},ae.prototype.test=function(e){return n("Comparator.test",e,this.loose),this.semver===oe||("string"==typeof e&&(e=new X(e,this.loose)),ie(e,this.operator,this.semver,this.loose))},ae.prototype.intersects=function(e,t){if(!(e instanceof ae))throw new TypeError("a Comparator is required");var r;if(""===this.operator)return r=new se(e.value,t),le(this.value,r,t);if(""===e.operator)return r=new se(this.value,t),le(e.semver,r,t);var n=!(">="!==this.operator&&">"!==this.operator||">="!==e.operator&&">"!==e.operator),i=!("<="!==this.operator&&"<"!==this.operator||"<="!==e.operator&&"<"!==e.operator),a=this.semver.version===e.semver.version,o=!(">="!==this.operator&&"<="!==this.operator||">="!==e.operator&&"<="!==e.operator),s=ie(this.semver,"<",e.semver,t)&&(">="===this.operator||">"===this.operator)&&("<="===e.operator||"<"===e.operator),f=ie(this.semver,">",e.semver,t)&&("<="===this.operator||"<"===this.operator)&&(">="===e.operator||">"===e.operator);return n||i||a&&o||s||f},t.Range=se,se.prototype.format=function(){return this.range=this.set.map(function(e){return e.join(" ").trim()}).join("||").trim(),this.range},se.prototype.toString=function(){return this.range},se.prototype.parseRange=function(e){var t=this.loose;e=e.trim(),n("range",e,t);var r=t?o[Y]:o[q];e=e.replace(r,ue),n("hyphen replace",e),e=e.replace(o[D],"$1$2$3"),n("comparator trim",e,o[D]),e=(e=(e=e.replace(o[C],"$1~")).replace(o[F],"$1^")).split(/\s+/).join(" ");var i=t?o[H]:o[U],a=e.split(" ").map(function(e){return function(e,t){return n("comp",e),e=function(e,t){return e.trim().split(/\s+/).map(function(e){return function(e,t){n("caret",e,t);var r=t?o[z]:o[L];return e.replace(r,function(t,r,i,a,o){var s;return n("caret",e,t,r,i,a,o),fe(r)?s="":fe(i)?s=">="+r+".0.0 <"+(+r+1)+".0.0":fe(a)?s="0"===r?">="+r+"."+i+".0 <"+r+"."+(+i+1)+".0":">="+r+"."+i+".0 <"+(+r+1)+".0.0":o?(n("replaceCaret pr",o),"-"!==o.charAt(0)&&(o="-"+o),s="0"===r?"0"===i?">="+r+"."+i+"."+a+o+" <"+r+"."+i+"."+(+a+1):">="+r+"."+i+"."+a+o+" <"+r+"."+(+i+1)+".0":">="+r+"."+i+"."+a+o+" <"+(+r+1)+".0.0"):(n("no pr"),s="0"===r?"0"===i?">="+r+"."+i+"."+a+" <"+r+"."+i+"."+(+a+1):">="+r+"."+i+"."+a+" <"+r+"."+(+i+1)+".0":">="+r+"."+i+"."+a+" <"+(+r+1)+".0.0"),n("caret return",s),s})}(e,t)}).join(" ")}(e,t),n("caret",e),e=function(e,t){return e.trim().split(/\s+/).map(function(e){return function(e,t){var r=t?o[B]:o[j];return e.replace(r,function(t,r,i,a,o){var s;return n("tilde",e,t,r,i,a,o),fe(r)?s="":fe(i)?s=">="+r+".0.0 <"+(+r+1)+".0.0":fe(a)?s=">="+r+"."+i+".0 <"+r+"."+(+i+1)+".0":o?(n("replaceTilde pr",o),"-"!==o.charAt(0)&&(o="-"+o),s=">="+r+"."+i+"."+a+o+" <"+r+"."+(+i+1)+".0"):s=">="+r+"."+i+"."+a+" <"+r+"."+(+i+1)+".0",n("tilde return",s),s})}(e,t)}).join(" ")}(e,t),n("tildes",e),e=function(e,t){return n("replaceXRanges",e,t),e.split(/\s+/).map(function(e){return function(e,t){e=e.trim();var r=t?o[P]:o[I];return e.replace(r,function(t,r,i,a,o,s){n("xRange",e,t,r,i,a,o,s);var f=fe(i),u=f||fe(a),c=u||fe(o),l=c;return"="===r&&l&&(r=""),f?t=">"===r||"<"===r?"<0.0.0":"*":r&&l?(u&&(a=0),c&&(o=0),">"===r?(r=">=",u?(i=+i+1,a=0,o=0):c&&(a=+a+1,o=0)):"<="===r&&(r="<",u?i=+i+1:a=+a+1),t=r+i+"."+a+"."+o):u?t=">="+i+".0.0 <"+(+i+1)+".0.0":c&&(t=">="+i+"."+a+".0 <"+i+"."+(+a+1)+".0"),n("xRange return",t),t})}(e,t)}).join(" ")}(e,t),n("xrange",e),e=function(e,t){return n("replaceStars",e,t),e.trim().replace(o[K],"")}(e,t),n("stars",e),e}(e,t)}).join(" ").split(/\s+/);return this.loose&&(a=a.filter(function(e){return!!e.match(i)})),a=a.map(function(e){return new ae(e,t)})},se.prototype.intersects=function(e,t){if(!(e instanceof se))throw new TypeError("a Range is required");return this.set.some(function(r){return r.every(function(r){return e.set.some(function(e){return e.every(function(e){return r.intersects(e,t)})})})})},t.toComparators=function(e,t){return new se(e,t).set.map(function(e){return e.map(function(e){return e.value}).join(" ").trim().split(" ")})},se.prototype.test=function(e){if(!e)return!1;"string"==typeof e&&(e=new X(e,this.loose));for(var t=0;t<this.set.length;t++)if(ce(this.set[t],e))return!0;return!1},t.satisfies=le,t.maxSatisfying=function(e,t,r){var n=null,i=null;try{var a=new se(t,r)}catch(e){return null}return e.forEach(function(e){a.test(e)&&(n&&-1!==i.compare(e)||(i=new X(n=e,r)))}),n},t.minSatisfying=function(e,t,r){var n=null,i=null;try{var a=new se(t,r)}catch(e){return null}return e.forEach(function(e){a.test(e)&&(n&&1!==i.compare(e)||(i=new X(n=e,r)))}),n},t.validRange=function(e,t){try{return new se(e,t).range||"*"}catch(e){return null}},t.ltr=function(e,t,r){return de(e,t,"<",r)},t.gtr=function(e,t,r){return de(e,t,">",r)},t.outside=de,t.prerelease=function(e,t){var r=W(e,t);return r&&r.prerelease.length?r.prerelease:null},t.intersects=function(e,t,r){return e=new se(e,r),t=new se(t,r),e.intersects(t)},t.coerce=function(e){if(e instanceof X)return e;if("string"!=typeof e)return null;var t=e.match(o[O]);return null==t?null:W((t[1]||"0")+"."+(t[2]||"0")+"."+(t[3]||"0"))}}).call(this,r(9))},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=s(r(46)),i=r(12),a=s(r(85)),o=r(3);function s(e){return e&&e.__esModule?e:{default:e}}function f(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var u=(0,s(r(2)).default)("rpc"),c=/NEO:(\d+\.\d+\.\d+)/,l=function(){function e(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.RPC_VERSION;if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),t===o.NEO_NETWORK.MAIN?this.net=o.DEFAULT_RPC.MAIN:t===o.NEO_NETWORK.TEST?this.net=o.DEFAULT_RPC.TEST:this.net=t,this.history=[],this.version="",!a.default.valid(r))throw new Error("Invalid Version: ".concat(r));this.version=a.default.clean(r)}var t,r,s;return t=e,(r=[{key:"execute",value:function(e){return this.history.push(e),u.info("RPC: ".concat(this.net," executing Query[").concat(e.req.method,"]")),e.execute(this.net)}},{key:"query",value:function(e){var t=new n.default(e);return this.execute(t)}},{key:"getAccountState",value:function(e){if(!(0,i.isAddress)(e))throw new Error("Invalid address given: ".concat(e));return this.execute(n.default.getAccountState(e)).then(function(e){return e.result})}},{key:"getAssetState",value:function(e){return this.execute(n.default.getAssetState(e)).then(function(e){return e.result})}},{key:"getBlock",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return this.execute(n.default.getBlock(e,t)).then(function(e){return e.result})}},{key:"getBlockHash",value:function(e){return this.execute(n.default.getBlockHash(e)).then(function(e){return e.result})}},{key:"getBestBlockHash",value:function(){return this.execute(n.default.getBestBlockHash()).then(function(e){return e.result})}},{key:"getBlockCount",value:function(){return this.execute(n.default.getBlockCount()).then(function(e){return e.result})}},{key:"getBlockSysFee",value:function(e){return this.execute(n.default.getBlockSysFee(e)).then(function(e){return e.result})}},{key:"getConnectionCount",value:function(){return this.execute(n.default.getConnectionCount()).then(function(e){return e.result})}},{key:"getContractState",value:function(e){return this.execute(n.default.getContractState(e)).then(function(e){return e.result})}},{key:"getPeers",value:function(){return this.execute(n.default.getPeers()).then(function(e){return e.result})}},{key:"getRawMemPool",value:function(){return this.execute(n.default.getRawMemPool()).then(function(e){return e.result})}},{key:"getRawTransaction",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return this.execute(n.default.getRawTransaction(e,t)).then(function(e){return e.result})}},{key:"getStorage",value:function(e,t){return this.execute(n.default.getStorage(e,t)).then(function(e){return e.result})}},{key:"getTxOut",value:function(e,t){return this.execute(n.default.getTxOut(e,t)).then(function(e){return e.result})}},{key:"getVersion",value:function(){var e=this;return this.execute(n.default.getVersion()).then(function(t){var r=t.result.useragent.match(c)[1];return e.version=a.default.clean(r),e.version}).catch(function(t){if(t.message.includes("Method not found"))return e.version=o.RPC_VERSION,e.version;throw t})}},{key:"invoke",value:function(e,t){return a.default.lt(this.version,"2.3.3")?Promise.reject(new Error("This method is not implemented for this version")):this.execute(n.default.invoke(e,t)).then(function(e){return e.result})}},{key:"invokeFunction",value:function(e,t,r){return a.default.lt(this.version,"2.3.3")?Promise.reject(new Error("This method is not implemented for this version")):this.execute(n.default.invokeFunction(e,t,r)).then(function(e){return e.result})}},{key:"invokeScript",value:function(e){return a.default.lt(this.version,"2.3.3")?Promise.reject(new Error("This method is not implemented for this version")):this.execute(n.default.invokeScript(e)).then(function(e){return e.result})}},{key:"sendRawTransaction",value:function(e){return this.execute(n.default.sendRawTransaction(e)).then(function(e){return e.result})}},{key:"submitBlock",value:function(e){return this.execute(n.default.submitBlock(e)).then(function(e){return e.result})}},{key:"validateAddress",value:function(e){return this.execute(n.default.validateAddress(e)).then(function(e){return e.result.isvalid})}},{key:Symbol.toStringTag,get:function(){return"RPC Client"}}])&&f(t.prototype,r),s&&f(t,s),e}();t.default=l},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r(3),i=a(r(19));function a(e){return e&&e.__esModule?e:{default:e}}function o(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var s=(0,a(r(2)).default)("protocol"),f=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.magic=t.magic||t.Magic||0,this.addressVersion=t.addressVersion||t.AddressVersion||23,this.standbyValidators=t.standbyValidators||t.StandbyValidators||[],this.seedList=t.seedList||t.SeedList||[],this.systemFee=t.systemFee||t.SystemFee||n.DEFAULT_SYSFEE}var t,r,a;return t=e,a=[{key:"import",value:function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n="string"==typeof t?JSON.parse(t):t;return new e(Object.assign(n,{extra:n.extra||n.Extra,name:n.name||n.Name||r}))}},{key:"readFile",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return s.info("Importing protocol file from ".concat(e)),this.import(i.default.readFileSync(e,"utf8"),t)}}],(r=[{key:"writeFile",value:function(e){return i.default.writeFile(e,this.export(),function(e){if(e)throw e;return console.log("Protocol file written!"),!0})}},{key:"export",value:function(){return{Magic:this.magic,AddressVersion:this.addressVersion,StandbyValidators:this.standbyValidators,SeedList:this.seedList,SystemFee:this.systemFee}}}])&&o(t.prototype,r),a&&o(t,a),e}();t.default=f},function(e){e.exports={MainNet:{Name:"MainNet",ProtocolConfiguration:{Magic:7630401,AddressVersion:23,StandbyValidators:["03b209fd4f53a7170ea4444e0cb0a6bb6a53c2bd016926989cf85f9b0fba17a70c","02df48f60e8f3e01c48ff40b9b7f1310d7a8b2a193188befe1c2e3df740e895093","03b8d9d5771d8f513aa0869b9cc8d50986403b78c6da36890638c3d46a5adce04a","02ca0e27697b9c248f6f16e085fd0061e26f44da85b58ee835c110caa5ec3ba554","024c7b7fb6c310fccf1ba33b082519d82964ea93868d676662d4a59ad548df0e7d","02aaec38470f6aad0042c6e877cfd8087d2676b0f516fddd362801b9bd3936399e","02486fd15702c4490a26703112a5cc1d0923fd697a33406bd5a1c00e0013b09a70"],SeedList:["seed1.neo.org:10333","seed2.neo.org:10333","seed3.neo.org:10333","seed4.neo.org:10333","seed5.neo.org:10333"],SystemFee:{EnrollmentTransaction:1e3,IssueTransaction:500,PublishTransaction:500,RegisterTransaction:1e4}},ExtraConfiguration:{neonDB:"http://api.wallet.cityofzion.io",neoscan:"https://api.neoscan.io/api/main_net"}},TestNet:{Name:"TestNet",ProtocolConfiguration:{Magic:1953787457,AddressVersion:23,StandbyValidators:["0327da12b5c40200e9f65569476bbff2218da4f32548ff43b6387ec1416a231ee8","026ce35b29147ad09e4afe4ec4a7319095f08198fa8babbe3c56e970b143528d22","0209e7fd41dfb5c2f8dc72eb30358ac100ea8c72da18847befe06eade68cebfcb9","039dafd8571a641058ccc832c5e2111ea39b09c0bde36050914384f7a48bce9bf9","038dddc06ce687677a53d54f096d2591ba2302068cf123c1f2d75c2dddc5425579","02d02b1873a0863cd042cc717da31cea0d7cf9db32b74d4c72c01b0011503e2e22","034ff5ceeac41acf22cd5ed2da17a6df4dd8358fcb2bfb1a43208ad0feaab2746b"],SeedList:["seed1.neo.org:20333","seed2.neo.org:20333","seed3.neo.org:20333","seed4.neo.org:20333","seed5.neo.org:20333"],SystemFee:{EnrollmentTransaction:10,IssueTransaction:5,PublishTransaction:5,RegisterTransaction:100}},ExtraConfiguration:{neonDB:"http://testnet-api.wallet.cityofzion.io",neoscan:"https://neoscan-testnet.io/api/test_net"}},CozNet:{Name:"CozNet",ProtocolConfiguration:{Magic:1010102,AddressVersion:23,StandbyValidators:["032d9e51c7d48b0f5cc63d63deb89767685832cf69eb7113900290f217ae0504ee","022a5b7ccf03166a95e1750f0c350c734c34fe7aac66622eecdb5a529d2e69b1df","03c478d43271c297696ee3ab5a7946ee60287015c7dca6cba867819c7f271bc4ea","0393ef777d01fb60eef1da3474b975c6a393b464bcfe588e2ad7dbc4dbdfa2c244"],SeedList:["188.68.34.29:10330","188.68.34.29:10332","188.68.34.29:10334","188.68.34.29:10336"],SystemFee:{EnrollmentTransaction:1e3,IssueTransaction:500,PublishTransaction:500,RegisterTransaction:1e4}},ExtraConfiguration:{neoscan:"https://coz.neoscan-testnet.io/"}}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.generateDeployScript=t.createScript=void 0;var n,i=r(0),a=(n=r(51))&&n.__esModule?n:{default:n};t.createScript=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];1===t.length&&Array.isArray(t[0])&&(t=t[0]);var n=new a.default,i=!0,o=!1,s=void 0;try{for(var f,u=t[Symbol.iterator]();!(i=(f=u.next()).done);i=!0){var c=f.value;if(!c.scriptHash)throw new Error("No scriptHash found!");var l=Object.assign({operation:null,args:void 0,useTailCall:!1},c),d=l.scriptHash,h=l.operation,p=l.args,b=l.useTailCall;n.emitAppCall(d,h,p,b)}}catch(e){o=!0,s=e}finally{try{i||null==u.return||u.return()}finally{if(o)throw s}}return n.str};t.generateDeployScript=function(e){var t=e.script,r=e.name,n=e.version,o=e.author,s=e.email,f=e.description,u=e.needsStorage,c=void 0!==u&&u,l=e.returnType,d=void 0===l?"ff":l,h=e.parameterList,p=void 0===h?void 0:h,b=new a.default;return b.emitPush((0,i.str2hexstring)(f)).emitPush((0,i.str2hexstring)(s)).emitPush((0,i.str2hexstring)(o)).emitPush((0,i.str2hexstring)(n)).emitPush((0,i.str2hexstring)(r)).emitPush(c).emitPush(d).emitPush(p).emitPush(t).emitSysCall("Neo.Contract.Create"),b}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r(0),i=r(12);function a(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var o=function(){function e(t,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.type=t,this.value=r}var t,r,o;return t=e,r=[{key:Symbol.toStringTag,get:function(){return{type:this.type,value:this.value}}}],o=[{key:"string",value:function(t){return new e("String",t)}},{key:"boolean",value:function(t){return new e("Boolean",!!t)}},{key:"hash160",value:function(t){if("string"!=typeof t)throw new Error("Input should be string!");if((0,i.isAddress)(t)&&(t=(0,i.getScriptHashFromAddress)(t)),40!==t.length)throw new Error("Input should be 40 characters long!");return new e("Hash160",t)}},{key:"integer",value:function(t){return new e("Integer",Math.round(parseInt(t,10)))}},{key:"byteArray",value:function(t,r){if(r&&(r=r.toLowerCase()),"address"===r)return new e("ByteArray",(0,n.reverseHex)((0,i.getScriptHashFromAddress)(t)));if("fixed8"===r){var a=8;if(1==(arguments.length<=2?0:arguments.length-2)&&(a=arguments.length<=2?void 0:arguments[2]),!isFinite(t))throw new Error("Input should be number!");var o=new n.Fixed8(Math.pow(10,8-a)),s=new n.Fixed8(t);if(!s.times(Math.pow(10,a)).mod(1).isZero())throw new Error("wrong precision: expected ".concat(a));return new e("ByteArray",(t=s.div(o)).toReverseHex().slice(0,16))}return new e("ByteArray",t)}},{key:"array",value:function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return new e("Array",r)}}],r&&a(t.prototype,r),o&&a(t,o),e}();t.default=o},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r(12),i=r(3),a=r(29),o=r(0),s=d(r(50)),f=l(r(23)),u=l(r(49)),c=l(r(28));function l(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){var n=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,r):{};n.get||n.set?Object.defineProperty(t,r,n):t[r]=e[r]}return t.default=e,t}function d(e){return e&&e.__esModule?e:{default:e}}function h(e){return(h="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function p(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var b=(0,d(r(2)).default)("tx"),v=function(){function e(){var t=this,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.type=r.type||128,this.version=r.version||i.TX_VERSION.CONTRACT,this.attributes=r.attributes||[],this.inputs=r.inputs||[],this.outputs=r.outputs?r.outputs.map(function(e){return f.TransactionOutput(e)}):[],this.scripts=r.scripts||[];var n=c.getExclusive[this.type](r);Object.keys(n).map(function(e){t[e]=n[e]})}var t,r,l;return t=e,r=[{key:"addOutput",value:function(e,t,r){if(3===arguments.length)this.outputs.push(f.createTransactionOutput(e,t,r));else{if("object"!==h(arguments[0]))throw new Error("Invalid input given! Give either 1 or 3 arguments!");this.outputs.push(arguments[0])}return this}},{key:"addAttribute",value:function(e,t){if("string"!=typeof t)throw new TypeError("data should be formatted as string!");return this.attributes.push({usage:e,data:t}),this}},{key:"addRemark",value:function(e){var t=(0,o.str2hexstring)(e);return this.addAttribute(s.default.Remark,t)}},{key:"calculate",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=u.calculateInputs(e,this.outputs,this.gas,t),n=r.inputs,i=r.change;return this.inputs=n,this.outputs=this.outputs.concat(i),e.applyTx(this),b.info("Calculated the inputs required for Transaction with Balance: ".concat(e.address)),this}},{key:"serialize",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return u.serializeTransaction(this,e)}},{key:"serializeExclusiveData",value:function(){return c.serializeExclusive[this.type](this)}},{key:"sign",value:function(e){return"string"==typeof e&&(e=new n.Account(e)),u.signTransaction(this,e.privateKey),b.info("Signed Transaction with Account: ".concat(e.label)),this}},{key:Symbol.toStringTag,get:function(){return"Transaction"}},{key:"exclusiveData",get:function(){return c.getExclusive[this.type](this)}},{key:"hash",get:function(){return u.getTransactionHash(this)}}],l=[{key:"createClaimTx",value:function(t,r){var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(0===r.claims.length)throw new Error("Useless transaction! There is no claims!");var s=new n.Account(t),f=Object.assign({type:2,version:i.TX_VERSION.CLAIM},a),u=new o.Fixed8(0);f.claims=r.claims.slice(0,255).map(function(e){return u=u.add(e.claim),{prevHash:e.txid,prevIndex:e.index}}),f.outputs=[{assetId:i.ASSET_ID.GAS,value:u,scriptHash:s.scriptHash}];var c=new e(Object.assign(f,a));return b.info("New ClaimTransaction for ".concat(s.address)),c}},{key:"createContractTx",value:function(t,r){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(null===r)throw new Error("Useless transaction! You are not sending anything!");var a=new e(Object.assign({type:128,version:i.TX_VERSION.CONTRACT,outputs:r},n)).calculate(t);return b.info("New ContractTransaction for ".concat(t.address)),a}},{key:"createInvocationTx",value:function(t,r,n){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};null===r&&(r=[]);var f=new e(Object.assign({type:209,version:i.TX_VERSION.INVOCATION,outputs:r,script:"string"==typeof n?n:(0,a.createScript)(n),gas:o},s)).calculate(t);return b.info("New InvocationTransaction for ".concat(t.address)),f}},{key:"deserialize",value:function(t){var r=u.deserializeTransaction(t),n=c.getExclusive[r.type](r);return new e(Object.assign(r,n))}}],r&&p(t.prototype,r),l&&p(t,l),e}();t.default=v},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n,i=(n=r(54))&&n.__esModule?n:{default:n},a=r(16),o=r(3),s=r(0),f=r(18);function u(e){return(u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function c(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var l=function(){function e(){var t=this,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.address=r.address||"",this.net=r.net||"NoNet",this.assetSymbols=r.assetSymbols?r.assetSymbols:[],this.assets={},r.assets&&Object.keys(r.assets).map(function(e){"object"===u(r.assets[e])&&t.addAsset(e,r.assets[e])}),this.tokenSymbols=r.tokenSymbols?r.tokenSymbols:[],this.tokens=r.tokens?r.tokens:{}}var t,r,n;return t=e,r=[{key:"addAsset",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(0,i.default)();e=e.toUpperCase(),this.assetSymbols.push(e);var r=(0,i.default)(t);return this.assets[e]=r,this}},{key:"addToken",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return e=e.toUpperCase(),this.tokenSymbols.push(e),this.tokens[e]=new s.Fixed8(t),this}},{key:"applyTx",value:function(e){var t=this,r=arguments.length>1&&void 0!==arguments[1]&&arguments[1];e=e instanceof a.Transaction?e:a.Transaction.deserialize(e);var n=this.assetSymbols,i=!0,s=!1,f=void 0;try{for(var u,c=function(){var e=u.value,r=function(t){return t.txid===e.prevHash&&t.index===e.prevIndex},i=!0,a=!1,o=void 0;try{for(var s,f=n[Symbol.iterator]();!(i=(s=f.next()).done);i=!0){var c=s.value,l=t.assets[c],d=l.unspent.findIndex(r);if(d>=0){var h=l.unspent.splice(d,1);l.spent=l.spent.concat(h);break}}}catch(e){a=!0,o=e}finally{try{i||null==f.return||f.return()}finally{if(a)throw o}}},l=e.inputs[Symbol.iterator]();!(i=(u=l.next()).done);i=!0)c()}catch(e){s=!0,f=e}finally{try{i||null==l.return||l.return()}finally{if(s)throw f}}for(var d=e.hash,h=function(n){var i=e.outputs[n],a=o.ASSETS[i.assetId],s=t.assets[a];s||t.addAsset(a);var f={index:n,txid:d,value:i.value};if(r){var u=s.unconfirmed.findIndex(function(e){return e.txid===f.txid&&e.index===f.index});u>=0&&s.unconfirmed.splice(u,1),s.balance=s.balance.add(i.value),s.unspent||(s.unspent=[]),s.unspent.push(f)}else s.unconfirmed||(s.unconfirmed=[]),s.unconfirmed.push(f);t.assets[a]=s},p=0;p<e.outputs.length;p++)h(p);return this}},{key:"confirm",value:function(){var e=!0,t=!1,r=void 0;try{for(var n,i=this.assetSymbols[Symbol.iterator]();!(e=(n=i.next()).done);e=!0){var a=n.value,o=this.assets[a];o.unspent=o.unspent.concat(o.unconfirmed),o.unconfirmed=[]}}catch(e){t=!0,r=e}finally{try{e||null==i.return||i.return()}finally{if(t)throw r}}return this}},{key:"export",value:function(){return{net:this.net,address:this.address,assetSymbols:this.assetSymbols,assets:b(this.assets),tokenSymbols:this.tokenSymbols,tokens:this.tokens}}},{key:"verifyAssets",value:function(e){var t=this,r=[],n=this.assetSymbols;return n.map(function(n){var i=t.assets[n];r.push(d(e,i))}),Promise.all(r).then(function(e){return n.map(function(r,n){t.assets[r]=e[n]}),t})}},{key:Symbol.toStringTag,get:function(){return"Balance"}}],n=[{key:"import",value:function(t){return new e(JSON.parse(t))}}],r&&c(t.prototype,r),n&&c(t,n),e}(),d=function(e,t){var r={balance:new s.Fixed8(0),spent:[],unspent:[],unconfirmed:[]};return h(e,t.unspent).then(function(e){return e.map(function(e,n){var i=t.unspent[n];e?(0!==e.value.cmp(i.value)&&(i.value=e.value),r.unspent.push(i),r.balance=r.balance.add(i.value)):r.spent.push(i)}),r})},h=function(e,t){var r=[],n=!0,i=!1,a=void 0;try{for(var o,u=function(){var t=o.value,n=f.Query.getTxOut(t.txid,t.index).execute(e).then(function(e){var r=e.result;return r?{txid:t.txid,index:r.n,assetId:r.asset,value:new s.Fixed8(r.value)}:null});r.push(n)},c=t[Symbol.iterator]();!(n=(o=c.next()).done);n=!0)u()}catch(e){i=!0,a=e}finally{try{n||null==c.return||c.return()}finally{if(i)throw a}}return Promise.all(r)},p=l;t.default=p;var b=function(e){var t={};return Object.keys(e).map(function(r){var n=e[r],i={balance:n.balance.toNumber(),spent:n.spent.map(function(e){return v(e)}),unspent:n.unspent.map(function(e){return v(e)}),unconfirmed:n.unconfirmed.map(function(e){return v(e)})};t[r]=i}),t},v=function(e){return{index:e.index,txid:e.txid,value:e.value.toNumber()}}},function(e,t,r){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.verifyMessage=t.signMessage=void 0;var n,i=(n=r(11))&&n.__esModule?n:{default:n},a=r(7),o=r(26),s=r(0),f=r(32);t.signMessage=function(e,t){if(!(0,f.isPrivateKey)(t)&&!(0,f.isWIF)(t))throw new Error("Invalid private key or WIF");(0,f.isWIF)(t)&&(t=(0,o.getPrivateKeyFromWIF)(t));var r=(0,s.str2hexstring)(e);return(0,o.generateSignature)(r,t)};t.verifyMessage=function(t,r,n){if(!(0,s.isHex)(r))throw new Error("Invalid signature format expected hex");if(!(0,f.isPublicKey)(n))throw new Error("Invalid public key");(0,f.isPublicKey)({key:n,encoded:!0})||(n=(0,o.getPublicKeyUnencoded)(n));var u,c,l=new a.ec("p256"),d=(u=r,c=e.from(u,"hex"),{r:new i.default(c.slice(0,32).toString("hex"),16,"be"),s:new i.default(c.slice(32).toString("hex"),16,"be")}),h=(0,s.str2hexstring)(t),p=(0,s.sha256)(h);return l.verify(p,d,n,"hex")}}).call(this,r(5).Buffer)},function(e,t,r){var n,i;void 0===(i="function"==typeof(n=function(e){"use strict";var t,r,n={template:"[%t] %l:",levelFormatter:function(e){return e.toUpperCase()},nameFormatter:function(e){return e||"root"},timestampFormatter:function(e){return e.toTimeString().replace(/.*(\d{2}:\d{2}:\d{2}).*/,"$1")},format:void 0},i={},a={reg:function(e){if(!e||!e.getLogger)throw new TypeError("Argument is not a root logger");t=e},apply:function(e,r){if(!e||!e.setLevel)throw new TypeError("Argument is not a logger");var a=e.methodFactory,o=e.name||"",s=i[o]||i[""]||n;return i[o]||(e.methodFactory=function(e,t,r){var n=a(e,t,r),s=i[r]||i[""],f=-1!==s.template.indexOf("%t"),u=-1!==s.template.indexOf("%l"),c=-1!==s.template.indexOf("%n");return function(){for(var t="",a=arguments.length,l=Array(a),d=0;d<a;d++)l[d]=arguments[d];if(o||!i[r]){var h=s.timestampFormatter(new Date),p=s.levelFormatter(e),b=s.nameFormatter(r);s.format?t+=s.format(p,b,h):(t+=s.template,f&&(t=t.replace(/%t/,h)),u&&(t=t.replace(/%l/,p)),c&&(t=t.replace(/%n/,b))),l.length&&"string"==typeof l[0]?l[0]=t+" "+l[0]:l.unshift(t)}n.apply(void 0,l)}}),(r=r||{}).template&&(r.format=void 0),i[o]=function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(t in arguments[r])Object.prototype.hasOwnProperty.call(arguments[r],t)&&(e[t]=arguments[r][t]);return e}({},s,r),e.setLevel(e.getLevel()),t||e.warn("It is necessary to call the function reg() of loglevel-plugin-prefix before calling apply. From the next release, it will throw an error. See more: https://github.com/kutuluk/loglevel-plugin-prefix/blob/master/README.md"),e}};return e&&(r=e.prefix,a.noConflict=function(){return e.prefix===a&&(e.prefix=r),a}),a})?n.call(t,r,t,e):n)||(e.exports=i)},function(e,t,r){var n,i;!function(a,o){"use strict";void 0===(i="function"==typeof(n=function(){var e=function(){},t="undefined",r=["trace","debug","info","warn","error"];function n(e,t){var r=e[t];if("function"==typeof r.bind)return r.bind(e);try{return Function.prototype.bind.call(r,e)}catch(t){return function(){return Function.prototype.apply.apply(r,[e,arguments])}}}function i(t,n){for(var i=0;i<r.length;i++){var a=r[i];this[a]=i<t?e:this.methodFactory(a,t,n)}this.log=this.debug}function a(r,a,o){return function(r){"debug"===r&&(r="log");return typeof console!==t&&(void 0!==console[r]?n(console,r):void 0!==console.log?n(console,"log"):e)}(r)||function(e,r,n){return function(){typeof console!==t&&(i.call(this,r,n),this[e].apply(this,arguments))}}.apply(this,arguments)}function o(e,n,o){var s,f=this,u="loglevel";function c(){var e;if(typeof window!==t){try{e=window.localStorage[u]}catch(e){}if(typeof e===t)try{var r=window.document.cookie,n=r.indexOf(encodeURIComponent(u)+"=");-1!==n&&(e=/^([^;]+)/.exec(r.slice(n))[1])}catch(e){}return void 0===f.levels[e]&&(e=void 0),e}}e&&(u+=":"+e),f.name=e,f.levels={TRACE:0,DEBUG:1,INFO:2,WARN:3,ERROR:4,SILENT:5},f.methodFactory=o||a,f.getLevel=function(){return s},f.setLevel=function(n,a){if("string"==typeof n&&void 0!==f.levels[n.toUpperCase()]&&(n=f.levels[n.toUpperCase()]),!("number"==typeof n&&n>=0&&n<=f.levels.SILENT))throw"log.setLevel() called with invalid level: "+n;if(s=n,!1!==a&&function(e){var n=(r[e]||"silent").toUpperCase();if(typeof window===t)return;try{return void(window.localStorage[u]=n)}catch(e){}try{window.document.cookie=encodeURIComponent(u)+"="+n+";"}catch(e){}}(n),i.call(f,n,e),typeof console===t&&n<f.levels.SILENT)return"No console available for logging"},f.setDefaultLevel=function(e){c()||f.setLevel(e,!1)},f.enableAll=function(e){f.setLevel(f.levels.TRACE,e)},f.disableAll=function(e){f.setLevel(f.levels.SILENT,e)};var l=c();null==l&&(l=null==n?"WARN":n),f.setLevel(l,!1)}var s=new o,f={};s.getLogger=function(e){if("string"!=typeof e||""===e)throw new TypeError("You must supply a name when creating a logger.");var t=f[e];return t||(t=f[e]=new o(e,s.getLevel(),s.methodFactory)),t};var u=typeof window!==t?window.log:void 0;return s.noConflict=function(){return typeof window!==t&&window.log===s&&(window.log=u),s},s.getLoggers=function(){return f},s})?n.call(t,r,t,e):n)||(e.exports=i)}()},function(e,t,r){"use strict";(function(t){!function(r){var n=2147483647;function i(e){var t=[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],r=1779033703,n=3144134277,i=1013904242,a=2773480762,o=1359893119,s=2600822924,f=528734635,u=1541459225,c=new Array(64);function l(e){for(var l=0,d=e.length;d>=64;){var h,p,b,v,m,g=r,y=n,w=i,_=a,S=o,k=s,x=f,A=u;for(p=0;p<16;p++)b=l+4*p,c[p]=(255&e[b])<<24|(255&e[b+1])<<16|(255&e[b+2])<<8|255&e[b+3];for(p=16;p<64;p++)v=((h=c[p-2])>>>17|h<<15)^(h>>>19|h<<13)^h>>>10,m=((h=c[p-15])>>>7|h<<25)^(h>>>18|h<<14)^h>>>3,c[p]=(v+c[p-7]|0)+(m+c[p-16]|0)|0;for(p=0;p<64;p++)v=(((S>>>6|S<<26)^(S>>>11|S<<21)^(S>>>25|S<<7))+(S&k^~S&x)|0)+(A+(t[p]+c[p]|0)|0)|0,m=((g>>>2|g<<30)^(g>>>13|g<<19)^(g>>>22|g<<10))+(g&y^g&w^y&w)|0,A=x,x=k,k=S,S=_+v|0,_=w,w=y,y=g,g=v+m|0;r=r+g|0,n=n+y|0,i=i+w|0,a=a+_|0,o=o+S|0,s=s+k|0,f=f+x|0,u=u+A|0,l+=64,d-=64}}l(e);var d,h=e.length%64,p=e.length/536870912|0,b=e.length<<3,v=h<56?56:120,m=e.slice(e.length-h,e.length);for(m.push(128),d=h+1;d<v;d++)m.push(0);return m.push(p>>>24&255),m.push(p>>>16&255),m.push(p>>>8&255),m.push(p>>>0&255),m.push(b>>>24&255),m.push(b>>>16&255),m.push(b>>>8&255),m.push(b>>>0&255),l(m),[r>>>24&255,r>>>16&255,r>>>8&255,r>>>0&255,n>>>24&255,n>>>16&255,n>>>8&255,n>>>0&255,i>>>24&255,i>>>16&255,i>>>8&255,i>>>0&255,a>>>24&255,a>>>16&255,a>>>8&255,a>>>0&255,o>>>24&255,o>>>16&255,o>>>8&255,o>>>0&255,s>>>24&255,s>>>16&255,s>>>8&255,s>>>0&255,f>>>24&255,f>>>16&255,f>>>8&255,f>>>0&255,u>>>24&255,u>>>16&255,u>>>8&255,u>>>0&255]}function a(e,t,r){var n;e=e.length<=64?e:i(e);var a=64+t.length+4,o=new Array(a),s=new Array(64),f=[];for(n=0;n<64;n++)o[n]=54;for(n=0;n<e.length;n++)o[n]^=e[n];for(n=0;n<t.length;n++)o[64+n]=t[n];for(n=a-4;n<a;n++)o[n]=0;for(n=0;n<64;n++)s[n]=92;for(n=0;n<e.length;n++)s[n]^=e[n];function u(){for(var e=a-1;e>=a-4;e--){if(o[e]++,o[e]<=255)return;o[e]=0}}for(;r>=32;)u(),f=f.concat(i(s.concat(i(o)))),r-=32;return r>0&&(u(),f=f.concat(i(s.concat(i(o))).slice(0,r))),f}function o(e,t,r,n,i){var a;for(c(e,16*(2*r-1),i,0,16),a=0;a<2*r;a++)u(e,16*a,i,16),f(i,n),c(i,0,e,t+16*a,16);for(a=0;a<r;a++)c(e,t+2*a*16,e,16*a,16);for(a=0;a<r;a++)c(e,t+16*(2*a+1),e,16*(a+r),16)}function s(e,t){return e<<t|e>>>32-t}function f(e,t){c(e,0,t,0,16);for(var r=8;r>0;r-=2)t[4]^=s(t[0]+t[12],7),t[8]^=s(t[4]+t[0],9),t[12]^=s(t[8]+t[4],13),t[0]^=s(t[12]+t[8],18),t[9]^=s(t[5]+t[1],7),t[13]^=s(t[9]+t[5],9),t[1]^=s(t[13]+t[9],13),t[5]^=s(t[1]+t[13],18),t[14]^=s(t[10]+t[6],7),t[2]^=s(t[14]+t[10],9),t[6]^=s(t[2]+t[14],13),t[10]^=s(t[6]+t[2],18),t[3]^=s(t[15]+t[11],7),t[7]^=s(t[3]+t[15],9),t[11]^=s(t[7]+t[3],13),t[15]^=s(t[11]+t[7],18),t[1]^=s(t[0]+t[3],7),t[2]^=s(t[1]+t[0],9),t[3]^=s(t[2]+t[1],13),t[0]^=s(t[3]+t[2],18),t[6]^=s(t[5]+t[4],7),t[7]^=s(t[6]+t[5],9),t[4]^=s(t[7]+t[6],13),t[5]^=s(t[4]+t[7],18),t[11]^=s(t[10]+t[9],7),t[8]^=s(t[11]+t[10],9),t[9]^=s(t[8]+t[11],13),t[10]^=s(t[9]+t[8],18),t[12]^=s(t[15]+t[14],7),t[13]^=s(t[12]+t[15],9),t[14]^=s(t[13]+t[12],13),t[15]^=s(t[14]+t[13],18);for(r=0;r<16;++r)e[r]+=t[r]}function u(e,t,r,n){for(var i=0;i<n;i++)r[i]^=e[t+i]}function c(e,t,r,n,i){for(;i--;)r[n++]=e[t++]}function l(e){if(!e||"number"!=typeof e.length)return!1;for(var t=0;t<e.length;t++){if("number"!=typeof e[t])return!1;var r=parseInt(e[t]);if(r!=e[t]||r<0||r>=256)return!1}return!0}function d(e,t){var r=parseInt(e);if(e!=r)throw new Error("invalid "+t);return r}e.exports=function(e,r,i,s,f,h,p){if(!p)throw new Error("missing callback");if(i=d(i,"N"),s=d(s,"r"),f=d(f,"p"),h=d(h,"dkLen"),0===i||0!=(i&i-1))throw new Error("N must be power of 2");if(i>n/128/s)throw new Error("N too large");if(s>n/128/f)throw new Error("r too large");if(!l(e))throw new Error("password must be an array or buffer");if(!l(r))throw new Error("salt must be an array or buffer");for(var b=a(e,r,128*f*s),v=new Uint32Array(32*f*s),m=0;m<v.length;m++){var g=4*m;v[m]=(255&b[g+3])<<24|(255&b[g+2])<<16|(255&b[g+1])<<8|(255&b[g+0])<<0}var y,w,_=new Uint32Array(64*s),S=new Uint32Array(32*s*i),k=32*s,x=new Uint32Array(16),A=new Uint32Array(16),M=f*i*2,E=0,T=null,I=!1,P=0,O=0,R=parseInt(1e3/s),C=void 0!==t?t:setTimeout,j=function(){if(I)return p(new Error("cancelled"),E/M);switch(P){case 0:c(v,w=32*O*s,_,0,k),P=1,y=0;case 1:(r=i-y)>R&&(r=R);for(var t=0;t<r;t++)c(_,0,S,(y+t)*k,k),o(_,k,s,x,A);if(y+=r,E+=r,(n=parseInt(1e3*E/M))!==T){if(I=p(null,E/M))break;T=n}if(y<i)break;y=0,P=2;case 2:var r,n;for((r=i-y)>R&&(r=R),t=0;t<r;t++){var l=_[16*(2*s-1)]&i-1;u(S,l*k,_,k),o(_,k,s,x,A)}if(y+=r,E+=r,(n=parseInt(1e3*E/M))!==T){if(I=p(null,E/M))break;T=n}if(y<i)break;if(c(_,0,v,w,k),++O<f){P=0;break}for(b=[],t=0;t<v.length;t++)b.push(v[t]>>0&255),b.push(v[t]>>8&255),b.push(v[t]>>16&255),b.push(v[t]>>24&255);var d=a(e,b,h);return p(null,1,d)}C(j)};j()}}()}).call(this,r(37).setImmediate)},function(e,t,r){(function(e){function r(e,t){for(var r=0,n=e.length-1;n>=0;n--){var i=e[n];"."===i?e.splice(n,1):".."===i?(e.splice(n,1),r++):r&&(e.splice(n,1),r--)}if(t)for(;r--;r)e.unshift("..");return e}var n=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/,i=function(e){return n.exec(e).slice(1)};function a(e,t){if(e.filter)return e.filter(t);for(var r=[],n=0;n<e.length;n++)t(e[n],n,e)&&r.push(e[n]);return r}t.resolve=function(){for(var t="",n=!1,i=arguments.length-1;i>=-1&&!n;i--){var o=i>=0?arguments[i]:e.cwd();if("string"!=typeof o)throw new TypeError("Arguments to path.resolve must be strings");o&&(t=o+"/"+t,n="/"===o.charAt(0))}return t=r(a(t.split("/"),function(e){return!!e}),!n).join("/"),(n?"/":"")+t||"."},t.normalize=function(e){var n=t.isAbsolute(e),i="/"===o(e,-1);return(e=r(a(e.split("/"),function(e){return!!e}),!n).join("/"))||n||(e="."),e&&i&&(e+="/"),(n?"/":"")+e},t.isAbsolute=function(e){return"/"===e.charAt(0)},t.join=function(){var e=Array.prototype.slice.call(arguments,0);return t.normalize(a(e,function(e,t){if("string"!=typeof e)throw new TypeError("Arguments to path.join must be strings");return e}).join("/"))},t.relative=function(e,r){function n(e){for(var t=0;t<e.length&&""===e[t];t++);for(var r=e.length-1;r>=0&&""===e[r];r--);return t>r?[]:e.slice(t,r-t+1)}e=t.resolve(e).substr(1),r=t.resolve(r).substr(1);for(var i=n(e.split("/")),a=n(r.split("/")),o=Math.min(i.length,a.length),s=o,f=0;f<o;f++)if(i[f]!==a[f]){s=f;break}var u=[];for(f=s;f<i.length;f++)u.push("..");return(u=u.concat(a.slice(s))).join("/")},t.sep="/",t.delimiter=":",t.dirname=function(e){var t=i(e),r=t[0],n=t[1];return r||n?(n&&(n=n.substr(0,n.length-1)),r+n):"."},t.basename=function(e,t){var r=i(e)[2];return t&&r.substr(-1*t.length)===t&&(r=r.substr(0,r.length-t.length)),r},t.extname=function(e){return i(e)[3]};var o="b"==="ab".substr(-1)?function(e,t,r){return e.substr(t,r)}:function(e,t,r){return t<0&&(t=e.length+t),e.substr(t,r)}}).call(this,r(9))},function(module,exports,__webpack_require__){(function(process,__dirname,module){module.exports=function(requested_total_memory){var Module={TOTAL_MEMORY:requested_total_memory||33554432},scrypt_raw=Module;function g(e){throw e}var k=void 0,l=!0,m=null,p=!1,q,s;function aa(){return function(){}}s||(s=eval("(function() { try { return Module || {} } catch(e) { return {} } })()"));var ba={},t;for(t in s)s.hasOwnProperty(t)&&(ba[t]=s[t]);var ca="object"==typeof process&&!0,da="object"==typeof window,ea="function"==typeof importScripts,fa=!da&&!ca&&!ea,oa;if(ca){s.print=function(e){process.stdout.write(e+"\n")},s.printErr=function(e){process.stderr.write(e+"\n")};var ga=__webpack_require__(19),ha=__webpack_require__(97);s.read=function(e,t){e=ha.normalize(e);var r=ga.readFileSync(e);return!r&&e!=ha.resolve(e)&&(e=path.join(__dirname,"..","src",e),r=ga.readFileSync(e)),r&&!t&&(r=r.toString()),r},s.readBinary=function(e){return s.read(e,l)},s.load=function(e){ia(read(e))},s.arguments=process.argv.slice(2),module.ee=s}else fa?(s.print=print,"undefined"!=typeof printErr&&(s.printErr=printErr),s.read=read,s.readBinary=function(e){return read(e,"binary")},"undefined"!=typeof scriptArgs?s.arguments=scriptArgs:void 0!==arguments&&(s.arguments=arguments),this.Module=s):da||ea?(s.read=function(e){var t=new XMLHttpRequest;return t.open("GET",e,p),t.send(m),t.responseText},void 0!==arguments&&(s.arguments=arguments),da?(s.print=function(e){console.log(e)},s.printErr=function(e){console.log(e)},this.Module=s):ea&&(s.print=aa(),s.load=importScripts)):g("Unknown runtime environment. Where are we?");function ia(e){eval.call(m,e)}for(t in"undefined"==!s.load&&s.read&&(s.load=function(e){ia(s.read(e))}),s.print||(s.print=aa()),s.printErr||(s.printErr=s.print),s.arguments||(s.arguments=[]),s.print=s.print,s.P=s.printErr,s.preRun=[],s.postRun=[],ba)ba.hasOwnProperty(t)&&(s[t]=ba[t]);function ja(){return u}function ka(e){u=e}function la(e){if(1==ma)return 1;var t={"%i1":1,"%i8":1,"%i16":2,"%i32":4,"%i64":8,"%float":4,"%double":8}["%"+e];return t||("*"==e.charAt(e.length-1)?t=ma:"i"==e[0]&&(w(0==(e=parseInt(e.substr(1)))%8),t=e/8)),t}function na(e,t,r){r&&r.length?(r.splice||(r=Array.prototype.slice.call(r)),r.splice(0,0,t),s["dynCall_"+e].apply(m,r)):s["dynCall_"+e].call(m,t)}function pa(){var e=[],t=0;this.oa=function(r){if(r&=255,t&&(e.push(r),t--),0==e.length)return 128>r?String.fromCharCode(r):(e.push(r),t=191<r&&224>r?1:2,"");if(0<t)return"";r=e[0];var n=e[1],i=e[2];r=191<r&&224>r?String.fromCharCode((31&r)<<6|63&n):String.fromCharCode((15&r)<<12|(63&n)<<6|63&i);return e.length=0,r},this.yb=function(e){e=unescape(encodeURIComponent(e));for(var t=[],r=0;r<e.length;r++)t.push(e.charCodeAt(r));return t}}function qa(e){var t=u;return u=(u=u+e|0)+7>>3<<3,t}function ra(e){var t=sa;return sa=(sa=sa+e|0)+7>>3<<3,t}function ua(e){var t=z;return(z=(z=z+e|0)+7>>3<<3)>=va&&wa("Cannot enlarge memory arrays in asm.js. Either (1) compile with -s TOTAL_MEMORY=X with X higher than the current value, or (2) set Module.TOTAL_MEMORY before the program runs."),t}function xa(e,t){return Math.ceil(e/(t||8))*(t||8)}var ma=4,ya={},za=p,Aa;function w(e,t){e||wa("Assertion failed: "+t)}function Ca(a){try{var b=s["_"+a];b||(b=eval("_"+a))}catch(e){}return w(b,"Cannot call unknown function "+a+" (perhaps LLVM optimizations or closure removed it?)"),b}function Ba(e,t,r,n){var i=0,a=0;n=n?n.map(function(e){return function(e,t){if("string"==t){if(e===m||e===k||0===e)return 0;i||(i=ja());var r=qa(e.length+1);return Da(e,r),r}return"array"==t?(i||(i=ja()),Ea(e,r=qa(e.length)),r):e}(e,r[a++])}):[];return e=e.apply(m,n),"string"==t?t=Fa(e):(w("array"!=t),t=e),i&&ka(i),t}function Ga(e,t,r){switch("*"===(r=r||"i8").charAt(r.length-1)&&(r="i32"),r){case"i1":case"i8":A[e]=t;break;case"i16":Ha[e>>1]=t;break;case"i32":B[e>>2]=t;break;case"i64":Aa=[t>>>0,(0|Math.min(+Math.floor(t/4294967296),4294967295))>>>0],B[e>>2]=Aa[0],B[e+4>>2]=Aa[1];break;case"float":Ia[e>>2]=t;break;case"double":Ja[e>>3]=t;break;default:wa("invalid type for setValue: "+r)}}s.ccall=function(e,t,r,n){return Ba(Ca(e),t,r,n)},s.cwrap=function(e,t,r){var n=Ca(e);return function(){return Ba(n,t,r,Array.prototype.slice.call(arguments))}},s.setValue=Ga,s.getValue=function(e,t){switch("*"===(t=t||"i8").charAt(t.length-1)&&(t="i32"),t){case"i1":case"i8":return A[e];case"i16":return Ha[e>>1];case"i32":case"i64":return B[e>>2];case"float":return Ia[e>>2];case"double":return Ja[e>>3];default:wa("invalid type for setValue: "+t)}return m};var Ka=0,La=1,E=2,Na=4;function F(e,t,r,n){var i,a;"number"==typeof e?(i=l,a=e):(i=p,a=e.length);var o="string"==typeof t?t:m;r=r==Na?n:[Oa,qa,ra,ua][r===k?E:r](Math.max(a,o?1:t.length));if(i){for(n=r,w(0==(3&r)),e=r+(-4&a);n<e;n+=4)B[n>>2]=0;for(e=r+a;n<e;)A[0|n++]=0;return r}if("i8"===o)return e.subarray||e.slice?G.set(e,r):G.set(new Uint8Array(e),r),r;var s,f;for(n=0;n<a;){var u=e[n];"function"==typeof u&&(u=ya.fe(u)),0===(i=o||t[n])?n++:("i64"==i&&(i="i32"),Ga(r+n,u,i),f!==i&&(s=la(i),f=i),n+=s)}return r}function Fa(e,t){for(var r,n=p,i=0;;){if(128<=(r=G[e+i|0]))n=l;else if(0==r&&!t)break;if(i++,t&&i==t)break}t||(t=i);var a="";if(!n){for(;0<t;)r=String.fromCharCode.apply(String,G.subarray(e,e+Math.min(t,1024))),a=a?a+r:r,e+=1024,t-=1024;return a}for(n=new pa,i=0;i<t;i++)r=G[e+i|0],a+=n.oa(r);return a}s.ALLOC_NORMAL=Ka,s.ALLOC_STACK=La,s.ALLOC_STATIC=E,s.ALLOC_DYNAMIC=3,s.ALLOC_NONE=Na,s.allocate=F,s.Pointer_stringify=Fa;var A,G,Ha,Pa,B,Qa,Ia,Ja,Ra=0,sa=0,Sa=0,u=0,Ta=0,Ua=0,z=0,va=s.TOTAL_MEMORY||33554432;w(!!(Int32Array&&Float64Array&&new Int32Array(1).subarray&&new Int32Array(1).set),"Cannot fallback to non-typed array case: Code is too specialized");var I=new ArrayBuffer(va);function Va(e){for(;0<e.length;){var t=e.shift();if("function"==typeof t)t();else{var r=t.V;"number"==typeof r?t.ha===k?na("v",r):na("vi",r,[t.ha]):r(t.ha===k?m:t.ha)}}}A=new Int8Array(I),Ha=new Int16Array(I),B=new Int32Array(I),G=new Uint8Array(I),Pa=new Uint16Array(I),Qa=new Uint32Array(I),Ia=new Float32Array(I),Ja=new Float64Array(I),B[0]=255,w(255===G[0]&&0===G[3],"Typed arrays 2 must be run on a little-endian system"),s.HEAP=k,s.HEAP8=A,s.HEAP16=Ha,s.HEAP32=B,s.HEAPU8=G,s.HEAPU16=Pa,s.HEAPU32=Qa,s.HEAPF32=Ia,s.HEAPF64=Ja;var Wa=[],Xa=[],Ya=[],Za=[],$a=[],ab=p;function bb(e){Wa.unshift(e)}function cb(e){$a.unshift(e)}function J(e,t,r){return e=(new pa).yb(e),r&&(e.length=r),t||e.push(0),e}function Da(e,t,r){for(e=J(e,r),r=0;r<e.length;)A[t+r|0]=e[r],r+=1}function Ea(e,t){for(var r=0;r<e.length;r++)A[t+r|0]=e[r]}function db(e,t){return 0<=e?e:32>=t?2*Math.abs(1<<t-1)+e:Math.pow(2,t)+e}function eb(e,t){if(0>=e)return e;var r=32>=t?Math.abs(1<<t-1):Math.pow(2,t-1);return e>=r&&(32>=t||e>r)&&(e=-2*r+e),e}s.addOnPreRun=s.Vd=bb,s.addOnInit=s.Sd=function(e){Xa.unshift(e)},s.addOnPreMain=s.Ud=function(e){Ya.unshift(e)},s.addOnExit=s.Rd=function(e){Za.unshift(e)},s.addOnPostRun=s.Td=cb,s.intArrayFromString=J,s.intArrayToString=function(e){for(var t=[],r=0;r<e.length;r++){var n=e[r];255<n&&(n&=255),t.push(String.fromCharCode(n))}return t.join("")},s.writeStringToMemory=Da,s.writeArrayToMemory=Ea,Math.imul||(Math.imul=function(e,t){var r=65535&e,n=65535&t;return r*n+((e>>>16)*n+r*(t>>>16)<<16)|0}),Math.ie=Math.imul;var L=0,fb={},gb=p,hb=m,nb,ob,pb;function ib(e){L++,s.monitorRunDependencies&&s.monitorRunDependencies(L),e?(w(!fb[e]),fb[e]=1):s.P("warning: run dependency added without ID")}function jb(e){L--,s.monitorRunDependencies&&s.monitorRunDependencies(L),e?(w(fb[e]),delete fb[e]):s.P("warning: run dependency removed without ID"),0==L&&(hb!==m&&(clearInterval(hb),hb=m),!gb&&kb&&lb())}s.addRunDependency=ib,s.removeRunDependency=jb,s.preloadedImages={},s.preloadedAudios={},Ra=8,sa=Ra+1312,Xa.push({V:function(){mb()}}),nb=nb=F([0,0,0,0,0,0,0,0],"i8",E),ob=ob=F([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],"i8",E),pb=pb=F([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],"i8",E),F([111,112,116,105,111,110,32,114,101,113,117,105,114,101,115,32,97,110,32,97,114,103,117,109,101,110,116,32,45,45,32,37,115,0,0,0,0,0,0,0,111,112,116,105,111,110,32,114,101,113,117,105,114,101,115,32,97,110,32,97,114,103,117,109,101,110,116,32,45,45,32,37,99,0,0,0,0,0,0,0,0,0,0,0,0,0,36,64,0,0,0,0,0,0,89,64,0,0,0,0,0,136,195,64,0,0,0,0,132,215,151,65,0,128,224,55,121,195,65,67,23,110,5,181,181,184,147,70,245,249,63,233,3,79,56,77,50,29,48,249,72,119,130,90,60,191,115,127,221,79,21,117,56,3,0,0,0,0,0,0,63,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,255,255,255,255,0,0,0,0,255,255,255,255,0,0,0,0,111,112,116,105,111,110,32,100,111,101,115,110,39,116,32,116,97,107,101,32,97,110,32,97,114,103,117,109,101,110,116,32,45,45,32,37,46,42,115,0,117,110,107,110,111,119,110,32,111,112,116,105,111,110,32,45,45,32,37,115,0,0,0,0,117,110,107,110,111,119,110,32,111,112,116,105,111,110,32,45,45,32,37,99,0,0,0,0,255,255,255,255,0,0,0,0,97,109,98,105,103,117,111,117,115,32,111,112,116,105,111,110,32,45,45,32,37,46,42,115,0,0,0,0,0,0,0,0,37,115,58,32,0,0,0,0,80,79,83,73,88,76,89,95,67,79,82,82,69,67,84,0,115,116,100,58,58,98,97,100,95,97,108,108,111,99,0,0,37,115,58,32,0,0,0,0,37,115,10,0,0,0,0,0,37,115,10,0,0,0,0,0,105,110,32,117,115,101,32,98,121,116,101,115,32,32,32,32,32,61,32,37,49,48,108,117,10,0,0,0,0,0,0,0,37,115,58,32,0,0,0,0,37,115,58,32,0,0,0,0,98,97,100,95,97,114,114,97,121,95,110,101,119,95,108,101,110,103,116,104,0,0,0,0,58,32,0,0,0,0,0,0,58,32,0,0,0,0,0,0,115,121,115,116,101,109,32,98,121,116,101,115,32,32,32,32,32,61,32,37,49,48,108,117,10,0,0,0,0,0,0,0,109,97,120,32,115,121,115,116,101,109,32,98,121,116,101,115,32,61,32,37,49,48,108,117,10,0,0,0,0,0,0,0,0,0,0,0,176,2,0,0,6,0,0,0,10,0,0,0,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,192,2,0,0,6,0,0,0,4,0,0,0,4,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,83,116,57,101,120,99,101,112,116,105,111,110,0,0,0,0,83,116,57,98,97,100,95,97,108,108,111,99,0,0,0,0,83,116,50,48,98,97,100,95,97,114,114,97,121,95,110,101,119,95,108,101,110,103,116,104,0,0,0,0,0,0,0,0,0,0,0,0,104,2,0,0,0,0,0,0,120,2,0,0,168,2,0,0,0,0,0,0,0,0,0,0,136,2,0,0,176,2,0,0,0,0,0,0,128,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],"i8",Na,8);var qb=xa(F(12,"i8",E),8);w(0==qb%8);var rb=0;function M(e){return B[rb>>2]=e}s._memcpy=sb,s._memset=tb;var N={L:1,ca:2,Bd:3,sc:4,I:5,za:6,Jb:7,Sc:8,$:9,Zb:10,ua:11,Ld:11,$a:12,Ya:13,kc:14,ed:15,Wb:16,va:17,Md:18,wa:19,gd:20,aa:21,A:22,Mc:23,Za:24,ld:25,Id:26,lc:27,ad:28,da:29,yd:30,Fc:31,rd:32,hc:33,ab:34,Wc:35,pc:36,$b:37,vc:38,wc:39,xc:40,Ec:41,Jd:42,Qc:43,uc:44,ec:45,Tc:46,Pb:50,Sb:51,Nd:52,Oc:53,Tb:54,Ub:55,fc:56,Vb:57,cd:60,Rc:61,Fd:62,bd:63,Xc:64,Yc:65,xd:66,Uc:67,Mb:68,Cd:69,ac:70,td:71,Hc:74,yc:75,ic:76,Rb:77,mc:79,md:80,Qb:81,wd:82,zc:83,Ac:84,Dc:85,Cc:86,Bc:87,dd:88,Nc:89,ya:90,Ic:91,ba:92,nd:95,qd:96,dc:104,Pc:105,Nb:106,vd:107,jd:108,Zc:109,zd:110,cc:111,Kb:112,bc:113,Lc:114,Jc:115,Gd:116,nc:117,oc:118,rc:119,Ob:120,gc:121,Gc:122,ud:123,Ad:124,Lb:125,Kc:126,tc:127,fd:128,Hd:129,sd:130,Kd:131,jc:132,Dd:133,kd:134,Vc:135,$c:136,Yb:137,qc:138,od:139,Xb:140,hd:141,pd:142,Ed:143},ub={0:"Success",1:"Not super-user",2:"No such file or directory",3:"No such process",4:"Interrupted system call",5:"I/O error",6:"No such device or address",7:"Arg list too long",8:"Exec format error",9:"Bad file number",10:"No children",11:"No more processes",12:"Not enough core",13:"Permission denied",14:"Bad address",15:"Block device required",16:"Mount device busy",17:"File exists",18:"Cross-device link",19:"No such device",20:"Not a directory",21:"Is a directory",22:"Invalid argument",23:"Too many open files in system",24:"Too many open files",25:"Not a typewriter",26:"Text file busy",27:"File too large",28:"No space left on device",29:"Illegal seek",30:"Read only file system",31:"Too many links",32:"Broken pipe",33:"Math arg out of domain of func",34:"Math result not representable",35:"No message of desired type",36:"Identifier removed",37:"Channel number out of range",38:"Level 2 not synchronized",39:"Level 3 halted",40:"Level 3 reset",41:"Link number out of range",42:"Protocol driver not attached",43:"No CSI structure available",44:"Level 2 halted",45:"Deadlock condition",46:"No record locks available",50:"Invalid exchange",51:"Invalid request descriptor",52:"Exchange full",53:"No anode",54:"Invalid request code",55:"Invalid slot",56:"File locking deadlock error",57:"Bad font file fmt",60:"Device not a stream",61:"No data (for no delay io)",62:"Timer expired",63:"Out of streams resources",64:"Machine is not on the network",65:"Package not installed",66:"The object is remote",67:"The link has been severed",68:"Advertise error",69:"Srmount error",70:"Communication error on send",71:"Protocol error",74:"Multihop attempted",75:"Inode is remote (not really error)",76:"Cross mount point (not really error)",77:"Trying to read unreadable message",79:"Inappropriate file type or format",80:"Given log. name not unique",81:"f.d. invalid for this operation",82:"Remote address changed",83:"Can\t access a needed shared lib",84:"Accessing a corrupted shared lib",85:".lib section in a.out corrupted",86:"Attempting to link in too many libs",87:"Attempting to exec a shared library",88:"Function not implemented",89:"No more files",90:"Directory not empty",91:"File or path name too long",92:"Too many symbolic links",95:"Operation not supported on transport endpoint",96:"Protocol family not supported",104:"Connection reset by peer",105:"No buffer space available",106:"Address family not supported by protocol family",107:"Protocol wrong type for socket",108:"Socket operation on non-socket",109:"Protocol not available",110:"Can't send after socket shutdown",111:"Connection refused",112:"Address already in use",113:"Connection aborted",114:"Network is unreachable",115:"Network interface is not configured",116:"Connection timed out",117:"Host is down",118:"Host is unreachable",119:"Connection already in progress",120:"Socket already connected",121:"Destination address required",122:"Message too long",123:"Unknown protocol",124:"Socket type not supported",125:"Address not available",126:"ENETRESET",127:"Socket is already connected",128:"Socket is not connected",129:"TOOMANYREFS",130:"EPROCLIM",131:"EUSERS",132:"EDQUOT",133:"ESTALE",134:"Not supported",135:"No medium (in tape drive)",136:"No such host or network path",137:"Filename exists with different case",138:"EILSEQ",139:"Value too large for defined data type",140:"Operation canceled",141:"State not recoverable",142:"Previous owner died",143:"Streams pipe error"};function vb(e,t,r){var n=O(e,{parent:l}).d,i=xb(n,e="/"===e?"/":wb(e)[2]);return i&&g(new Q(i)),n.l.Ta||g(new Q(N.L)),n.l.Ta(n,e,t,r)}function yb(e,t){return vb(e,t=4095&t|32768,0)}function zb(e,t){return vb(e,t=1023&t|16384,0)}function Ab(e,t,r){return vb(e,8192|t,r)}function Bb(e,t){var r=O(t,{parent:l}).d,n="/"===t?"/":wb(t)[2],i=xb(r,n);return i&&g(new Q(i)),r.l.Wa||g(new Q(N.L)),r.l.Wa(r,n,e)}function Cb(e,t){var r;(r="string"==typeof e?O(e,{N:l}).d:e).l.Y||g(new Q(N.L)),r.l.Y(r,{mode:4095&t|-4096&r.mode,timestamp:Date.now()})}function Db(e,t){var r,n,i;e=Eb(e);"string"==typeof t?void 0===(n=Fb[t])&&g(Error("Unknown file open mode: "+t)):n=t,r=512&(t=n)?4095&r|32768:0;try{var a=O(e,{N:!(65536&t)});i=a.d,e=a.path}catch(e){}512&t&&(i?2048&t&&g(new Q(N.va)):i=vb(e,r,0)),i||g(new Q(N.ca)),8192==(61440&i.mode)&&(t&=-1025),i?40960==(61440&i.mode)?r=N.ba:16384==(61440&i.mode)&&(0!=(3&t)||1024&t)?r=N.aa:(r=["r","w","rw"][3&t],1024&t&&(r+="w"),r=Gb(i,r)):r=N.ca,r&&g(new Q(r)),1024&t&&((r="string"==typeof(r=i)?O(r,{N:l}).d:r).l.Y||g(new Q(N.L)),16384==(61440&r.mode)&&g(new Q(N.aa)),32768!=(61440&r.mode)&&g(new Q(N.A)),(a=Gb(r,"w"))&&g(new Q(a)),r.l.Y(r,{size:0,timestamp:Date.now()}));var o,s={path:e,d:i,M:t,seekable:l,position:0,e:i.e,Gb:[],error:p};e:{for(i=k||4096,r=k||1;r<=i;r++)if(!R[r]){o=r;break e}g(new Q(N.Za))}return s.s=o,Object.defineProperty(s,"object",{get:function(){return s.d},set:function(e){s.d=e}}),Object.defineProperty(s,"isRead",{get:function(){return 1!=(3&s.M)}}),Object.defineProperty(s,"isWrite",{get:function(){return 0!=(3&s.M)}}),Object.defineProperty(s,"isAppend",{get:function(){return 8&s.M}}),R[o]=s,s.e.open&&s.e.open(s),s}function Hb(e){try{e.e.close&&e.e.close(e)}catch(e){g(e)}finally{R[e.s]=m}}function Ib(e,t,r,n,i){(0>n||0>i)&&g(new Q(N.A)),0==(3&e.M)&&g(new Q(N.$)),16384==(61440&e.d.mode)&&g(new Q(N.aa)),e.e.write||g(new Q(N.A));var a=l;return void 0===i?(i=e.position,a=p):e.seekable||g(new Q(N.da)),8&e.M&&((!e.seekable||!e.e.na)&&g(new Q(N.da)),e.e.na(e,0,2)),t=e.e.write(e,t,r,n,i),a||(e.position+=t),t}function wb(e){return/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/.exec(e).slice(1)}function Jb(e,t){for(var r=0,n=e.length-1;0<=n;n--){var i=e[n];"."===i?e.splice(n,1):".."===i?(e.splice(n,1),r++):r&&(e.splice(n,1),r--)}if(t)for(;r--;r)e.unshift("..");return e}function Eb(e){var t="/"===e.charAt(0),r="/"===e.substr(-1);return!(e=Jb(e.split("/").filter(function(e){return!!e}),!t).join("/"))&&!t&&(e="."),e&&r&&(e+="/"),(t?"/":"")+e}function S(){return Eb(Array.prototype.slice.call(arguments,0).filter(function(e){return"string"!=typeof e&&g(new TypeError("Arguments to path.join must be strings")),e}).join("/"))}function Kb(){for(var e="",t=p,r=arguments.length-1;-1<=r&&!t;r--){var n=0<=r?arguments[r]:"/";"string"!=typeof n&&g(new TypeError("Arguments to path.resolve must be strings")),n&&(e=n+"/"+e,t="/"===n.charAt(0))}return e=Jb(e.split("/").filter(function(e){return!!e}),!t).join("/"),(t?"/":"")+e||"."}var Lb=[];function Mb(e,t){Lb[e]={input:[],H:[],O:t},Nb[e]={e:Ob}}var Ob={open:function(e){Pb||(Pb=new pa);var t=Lb[e.d.X];t||g(new Q(N.wa)),e.q=t,e.seekable=p},close:function(e){e.q.H.length&&e.q.O.W(e.q,10)},Q:function(e,t,r,n){(!e.q||!e.q.O.Na)&&g(new Q(N.za));for(var i=0,a=0;a<n;a++){var o;try{o=e.q.O.Na(e.q)}catch(e){g(new Q(N.I))}if(o===k&&0===i&&g(new Q(N.ua)),o===m||o===k)break;i++,t[r+a]=o}return i&&(e.d.timestamp=Date.now()),i},write:function(e,t,r,n){(!e.q||!e.q.O.W)&&g(new Q(N.za));for(var i=0;i<n;i++)try{e.q.O.W(e.q,t[r+i])}catch(e){g(new Q(N.I))}return n&&(e.d.timestamp=Date.now()),i}},Pb,T={z:function(){return T.ka(m,"/",16895,0)},ka:function(e,t,r,n){return(24576==(61440&r)||4096==(61440&r))&&g(new Q(N.L)),(r=Qb(e,t,r,n)).l=T.l,16384==(61440&r.mode)?(r.e=T.e,r.g={}):32768==(61440&r.mode)?(r.e=T.e,r.g=[]):40960==(61440&r.mode)?r.e=T.e:8192==(61440&r.mode)&&(r.e=Rb),r.timestamp=Date.now(),e&&(e.g[t]=r),r},l:{ge:function(e){var t={};return t.ce=8192==(61440&e.mode)?e.id:1,t.je=e.id,t.mode=e.mode,t.pe=1,t.uid=0,t.he=0,t.X=e.X,t.size=16384==(61440&e.mode)?4096:32768==(61440&e.mode)?e.g.length:40960==(61440&e.mode)?e.link.length:0,t.Yd=new Date(e.timestamp),t.oe=new Date(e.timestamp),t.ae=new Date(e.timestamp),t.ib=4096,t.Zd=Math.ceil(t.size/t.ib),t},Y:function(e,t){if(t.mode!==k&&(e.mode=t.mode),t.timestamp!==k&&(e.timestamp=t.timestamp),t.size!==k){var r=e.g;if(t.size<r.length)r.length=t.size;else for(;t.size>r.length;)r.push(0)}},tb:function(){g(new Q(N.ca))},Ta:function(e,t,r,n){return T.ka(e,t,r,n)},rename:function(e,t,r){if(16384==(61440&e.mode)){var n;try{n=Sb(t,r)}catch(e){}if(n)for(var i in n.g)g(new Q(N.ya))}delete e.parent.g[e.name],e.name=r,t.g[r]=e},ze:function(e,t){delete e.g[t]},ve:function(e,t){var r,n=Sb(e,t);for(r in n.g)g(new Q(N.ya));delete e.g[t]},Wa:function(e,t,r){return(e=T.ka(e,t,41471,0)).link=r,e},Va:function(e){return 40960!=(61440&e.mode)&&g(new Q(N.A)),e.link}},e:{open:function(e){if(16384==(61440&e.d.mode)){var t,r=[".",".."];for(t in e.d.g)e.d.g.hasOwnProperty(t)&&r.push(t);e.lb=r}},Q:function(e,t,r,n,i){if(e=e.d.g,n=Math.min(e.length-i,n),e.subarray)t.set(e.subarray(i,i+n),r);else for(var a=0;a<n;a++)t[r+a]=e[i+a];return n},write:function(e,t,r,n,i){for(var a=e.d.g;a.length<i;)a.push(0);for(var o=0;o<n;o++)a[i+o]=t[r+o];return e.d.timestamp=Date.now(),n},na:function(e,t,r){return 1===r?t+=e.position:2===r&&32768==(61440&e.d.mode)&&(t+=e.d.g.length),0>t&&g(new Q(N.A)),e.Gb=[],e.position=t},ue:function(e){return e.lb},Wd:function(e,t,r){for(e=e.d.g,t+=r;t>e.length;)e.push(0)},ne:function(e,t,r,n,i,a,o){return 32768!=(61440&e.d.mode)&&g(new Q(N.wa)),e=e.d.g,2&o?((0<i||i+n<e.length)&&(e=e.subarray?e.subarray(i,i+n):Array.prototype.slice.call(e,i,i+n)),i=l,(n=Oa(n))||g(new Q(N.$a)),t.set(e,n)):(w(e.buffer===t||e.buffer===t.buffer),i=p,n=e.byteOffset),{te:n,Xd:i}}}},Tb=F(1,"i32*",E),Ub=F(1,"i32*",E);nb=F(1,"i32*",E);var Vb=m,Nb=[m],R=[m],Wb=1,Xb=[,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,],Yb=l;function Q(e){for(var t in this.mb=e,N)if(N[t]===e){this.code=t;break}this.message=ub[e]}function Zb(e){e instanceof Q||g(e+" : "+Error().stack),M(e.mb)}function $b(e,t){for(var r=0,n=0;n<t.length;n++)r=(r<<5)-r+t.charCodeAt(n)|0;return(e+r)%Xb.length}function Sb(e,t){var r=Gb(e,"x");for(r&&g(new Q(r)),r=Xb[$b(e.id,t)];r;r=r.wb)if(r.parent.id===e.id&&r.name===t)return r;return e.l.tb(e,t)}function Qb(e,t,r,n){var i={id:Wb++,name:t,mode:r,l:{},e:{},X:n,parent:m,z:m};return e||(e=i),i.parent=e,i.z=e.z,Object.defineProperty(i,"read",{get:function(){return 365==(365&i.mode)},set:function(e){e?i.mode|=365:i.mode&=-366}}),Object.defineProperty(i,"write",{get:function(){return 146==(146&i.mode)},set:function(e){e?i.mode|=146:i.mode&=-147}}),e=$b(i.parent.id,i.name),i.wb=Xb[e],Xb[e]=i}function O(e,t){e=Kb("/",e),8<(t=t||{pa:0}).pa&&g(new Q(N.ba));for(var r=Jb(e.split("/").filter(function(e){return!!e}),p),n=Vb,i="/",a=0;a<r.length;a++){var o=a===r.length-1;if(o&&t.parent)break;if(n=Sb(n,r[a]),i=S(i,r[a]),n.ub&&(n=n.z.root),!o||t.N)for(o=0;40960==(61440&n.mode);){(n=O(i,{N:p}).d).l.Va||g(new Q(N.A));n=n.l.Va(n);var s=Kb,f=(i=(f=wb(i))[0],f[1]);i||f?(f&&(f=f.substr(0,f.length-1)),i+=f):i=".",n=O(i=s(i,n),{pa:t.pa}).d,40<o++&&g(new Q(N.ba))}}return{path:i,d:n}}function ac(e){for(var t;;){if(e===e.parent)return t?S(e.z.Ua,t):e.z.Ua;t=t?S(e.name,t):e.name,e=e.parent}}var Fb={r:0,rs:8192,"r+":2,w:1537,wx:3585,xw:3585,"w+":1538,"wx+":3586,"xw+":3586,a:521,ax:2569,xa:2569,"a+":522,"ax+":2570,"xa+":2570};function Gb(e,t){return Yb?0:(-1===t.indexOf("r")||292&e.mode)&&(-1===t.indexOf("w")||146&e.mode)&&(-1===t.indexOf("x")||73&e.mode)?0:N.Ya}function xb(e,t){try{return Sb(e,t),N.va}catch(e){}return Gb(e,"wx")}var Rb={open:function(e){e.e=Nb[e.d.X].e,e.e.open&&e.e.open(e)},na:function(){g(new Q(N.da))}},bc;function cc(e,t){var r=0;return e&&(r|=365),t&&(r|=146),r}function dc(e,t,r,n,i){if(i=yb(e=S("string"==typeof e?e:ac(e),t),n=cc(n,i)),r){if("string"==typeof r){t=Array(r.length);for(var a=0,o=r.length;a<o;++a)t[a]=r.charCodeAt(a);r=t}Cb(e,146|n),Ib(t=Db(e,"w"),r,0,r.length,0),Hb(t),Cb(e,n)}return i}function ec(e,t,r,n){return e=S("string"==typeof e?e:ac(e),t),ec.Sa||(ec.Sa=64),t=ec.Sa++<<8|0,Nb[t]={e:{open:function(e){e.seekable=p},close:function(){n&&n.buffer&&n.buffer.length&&n(10)},Q:function(e,t,n,i){for(var a=0,o=0;o<i;o++){var s;try{s=r()}catch(e){g(new Q(N.I))}if(s===k&&0===a&&g(new Q(N.ua)),s===m||s===k)break;a++,t[n+o]=s}return a&&(e.d.timestamp=Date.now()),a},write:function(e,t,r,i){for(var a=0;a<i;a++)try{n(t[r+a])}catch(e){g(new Q(N.I))}return i&&(e.d.timestamp=Date.now()),a}}},Ab(e,r&&n?511:r?219:365,t)}function fc(e,t,r){return(e=R[e])?(e.sender(G.subarray(t,t+r)),r):-1}function gc(e,t,r){var n=R[e];if(!n)return M(N.$),-1;if(n&&"socket"in n)return fc(e,t,r);try{return Ib(n,A,t,r)}catch(e){return Zb(e),-1}}function hc(e,t,r,n){return 0==(r*=t)?0:-1==(e=gc(n,e,r))?((t=R[n])&&(t.error=l),0):Math.floor(e/t)}function jc(e){return 0>e||0===e&&-1/0==1/e}function kc(e,t){function r(e){var r;return"double"===e?r=Ja[t+o>>3]:"i64"==e?(r=[B[t+o>>2],B[t+(o+8)>>2]],o+=8):(e="i32",r=B[t+o>>2]),o+=Math.max(Math.max(la(e),ma),8),r}for(var n,i,a=e,o=0,s=[];;){var f=a;if(0===(n=A[a]))break;if(i=A[a+1|0],37==n){var u=p,c=p,d=p,h=p;e:for(;;){switch(i){case 43:u=l;break;case 45:c=l;break;case 35:d=l;break;case 48:if(h)break e;h=l;break;default:break e}i=A[++a+1|0]}var b=0;if(42==i)b=r("i32"),i=A[++a+1|0];else for(;48<=i&&57>=i;)b=10*b+(i-48),i=A[++a+1|0];var v,g=p;if(46==i){var y=0;g=l;if(42==(i=A[++a+1|0]))y=r("i32"),a++;else for(;!(48>(i=A[a+1|0])||57<i);)y=10*y+(i-48),a++;i=A[a+1|0]}else y=6;switch(String.fromCharCode(i)){case"h":104==(i=A[a+2|0])?(a++,v=1):v=2;break;case"l":108==(i=A[a+2|0])?(a++,v=8):v=4;break;case"L":case"q":case"j":v=8;break;case"z":case"t":case"I":v=4;break;default:v=m}switch(v&&a++,i=A[a+1|0],String.fromCharCode(i)){case"d":case"i":case"u":case"o":case"x":case"X":case"p":f=100==i||105==i;var w,_=n=r("i"+8*(v=v||4));8==v&&(n=117==i?+(n[0]>>>0)+4294967296*+(n[1]>>>0):+(n[0]>>>0)+4294967296*+(0|n[1])),4>=v&&(n=(f?eb:db)(n&Math.pow(256,v)-1,8*v));var S=Math.abs(n);f="";if(100==i||105==i)w=8==v&&lc?lc.stringify(_[0],_[1],m):eb(n,8*v).toString(10);else if(117==i)w=8==v&&lc?lc.stringify(_[0],_[1],l):db(n,8*v).toString(10),n=Math.abs(n);else if(111==i)w=(d?"0":"")+S.toString(8);else if(120==i||88==i){if(f=d&&0!=n?"0x":"",8==v&&lc)if(_[1]){for(w=(_[1]>>>0).toString(16),d=(_[0]>>>0).toString(16);8>d.length;)d="0"+d;w+=d}else w=(_[0]>>>0).toString(16);else if(0>n){for(n=-n,w=(S-1).toString(16),_=[],d=0;d<w.length;d++)_.push((15-parseInt(w[d],16)).toString(16));for(w=_.join("");w.length<2*v;)w="f"+w}else w=S.toString(16);88==i&&(f=f.toUpperCase(),w=w.toUpperCase())}else 112==i&&(0===S?w="(nil)":(f="0x",w=S.toString(16)));if(g)for(;w.length<y;)w="0"+w;for(u&&(f=0>n?"-"+f:"+"+f);f.length+w.length<b;)c?w+=" ":h?w="0"+w:f=" "+f;(w=f+w).split("").forEach(function(e){s.push(e.charCodeAt(0))});break;case"f":case"F":case"e":case"E":case"g":case"G":if(n=r("double"),isNaN(n))w="nan",h=p;else if(isFinite(n)){if(g=p,v=Math.min(y,20),103!=i&&71!=i||(g=l,(y=y||1)>(v=parseInt(n.toExponential(v).split("e")[1],10))&&-4<=v?(i=(103==i?"f":"F").charCodeAt(0),y-=v+1):(i=(103==i?"e":"E").charCodeAt(0),y--),v=Math.min(y,20)),101==i||69==i?(w=n.toExponential(v),/[eE][-+]\d$/.test(w)&&(w=w.slice(0,-1)+"0"+w.slice(-1))):102!=i&&70!=i||(w=n.toFixed(v),0===n&&jc(n)&&(w="-"+w)),f=w.split("e"),g&&!d)for(;1<f[0].length&&-1!=f[0].indexOf(".")&&("0"==f[0].slice(-1)||"."==f[0].slice(-1));)f[0]=f[0].slice(0,-1);else for(d&&-1==w.indexOf(".")&&(f[0]+=".");y>v++;)f[0]+="0";w=f[0]+(1<f.length?"e"+f[1]:""),69==i&&(w=w.toUpperCase()),u&&0<=n&&(w="+"+w)}else w=(0>n?"-":"")+"inf",h=p;for(;w.length<b;)w=c?w+" ":!h||"-"!=w[0]&&"+"!=w[0]?(h?"0":" ")+w:w[0]+"0"+w.slice(1);97>i&&(w=w.toUpperCase()),w.split("").forEach(function(e){s.push(e.charCodeAt(0))});break;case"s":if(h=(u=r("i8*"))?ic(u):6,g&&(h=Math.min(h,y)),!c)for(;h<b--;)s.push(32);if(u)for(d=0;d<h;d++)s.push(G[0|u++]);else s=s.concat(J("(null)".substr(0,h),l));if(c)for(;h<b--;)s.push(32);break;case"c":for(c&&s.push(r("i8"));0<--b;)s.push(32);c||s.push(r("i8"));break;case"n":c=r("i32*"),B[c>>2]=s.length;break;case"%":s.push(n);break;default:for(d=f;d<a+2;d++)s.push(A[d])}a+=2}else s.push(n),a+=1}return s}function mc(e,t,r){return r=kc(t,r),t=ja(),e=hc(F(r,"i8",La),1,r.length,e),ka(t),e}function nc(e){nc.ia||(z=z+4095>>12<<12,nc.ia=l,w(ua),nc.hb=ua,ua=function(){wa("cannot dynamically allocate, sbrk now has control")});var t=z;return 0!=e&&nc.hb(e),t}function U(){return B[U.m>>2]}function oc(){return!!oc.ta}function pc(e){var t=p;try{e==__ZTIi&&(t=l)}catch(e){}try{e==__ZTIj&&(t=l)}catch(e){}try{e==__ZTIl&&(t=l)}catch(e){}try{e==__ZTIm&&(t=l)}catch(e){}try{e==__ZTIx&&(t=l)}catch(e){}try{e==__ZTIy&&(t=l)}catch(e){}try{e==__ZTIf&&(t=l)}catch(e){}try{e==__ZTId&&(t=l)}catch(e){}try{e==__ZTIe&&(t=l)}catch(e){}try{e==__ZTIc&&(t=l)}catch(e){}try{e==__ZTIa&&(t=l)}catch(e){}try{e==__ZTIh&&(t=l)}catch(e){}try{e==__ZTIs&&(t=l)}catch(e){}try{e==__ZTIt&&(t=l)}catch(e){}return t}function qc(e,t,r){if(0==r)return p;if(0==t||t==e)return l;switch(pc(t)?t:B[B[t>>2]-8>>2]){case 0:return 0==B[B[e>>2]-8>>2]?qc(B[e+8>>2],B[t+8>>2],r):p;case 1:return p;case 2:return qc(e,B[t+8>>2],r);default:return p}}function rc(e,t,r){if(!rc.sb){try{B[__ZTVN10__cxxabiv119__pointer_type_infoE>>2]=0}catch(e){}try{B[pb>>2]=1}catch(e){}try{B[ob>>2]=2}catch(e){}rc.sb=l}B[U.m>>2]=e,B[U.m+4>>2]=t,B[U.m+8>>2]=r,"uncaught_exception"in oc?oc.ta++:oc.ta=1,g(e+" - Exception catching is disabled, this exception cannot be caught. Compile with -s DISABLE_EXCEPTION_CATCHING=0 or DISABLE_EXCEPTION_CATCHING=2 to catch.")}function sc(e){try{return tc(e)}catch(e){}}function uc(){if(uc.Bb)uc.Bb=p;else{V.setThrew(0),B[U.m+4>>2]=0;var e=B[U.m>>2],t=B[U.m+8>>2];t&&(na("vi",t,[e]),B[U.m+8>>2]=0),e&&(sc(e),B[U.m>>2]=0)}}s._strlen=ic;var vc=F(1,"i32*",E);function wc(e){var t,r;wc.ia?(r=B[vc>>2],t=B[r>>2]):(wc.ia=l,W.USER="root",W.PATH="/",W.PWD="/",W.HOME="/home/emscripten",W.LANG="en_US.UTF-8",W._="./this.program",t=F(1024,"i8",E),r=F(256,"i8*",E),B[r>>2]=t,B[vc>>2]=r);var n,i=[],a=0;for(n in e)if("string"==typeof e[n]){var o=n+"="+e[n];i.push(o),a+=o.length}for(1024<a&&g(Error("Environment size exceeded TOTAL_ENV_SIZE!")),e=0;e<i.length;e++){for(o=i[e],a=0;a<o.length;a++)A[t+a|0]=o.charCodeAt(a);A[t+a|0]=0,B[r+4*e>>2]=t,t+=o.length+1}B[r+4*i.length>>2]=0}var W={};function xc(e){return 0===e?0:(e=Fa(e),W.hasOwnProperty(e)?(xc.J&&tc(xc.J),xc.J=F(J(W[e]),"i8",Ka),xc.J):0)}function yc(e,t,r){if(e in ub){if(ub[e].length>r-1)return M(N.ab);for(e=ub[e],r=0;r<e.length;r++)A[t+r|0]=e.charCodeAt(r);return A[t+r|0]=0}return M(N.A)}function zc(e){return zc.buffer||(zc.buffer=Oa(256)),yc(e,zc.buffer,256),zc.buffer}function Ac(e){s.exit(e)}function Bc(e,t){var r=db(255&e);return A[0|Bc.J]=r,-1==gc(t,Bc.J,1)?((r=R[t])&&(r.error=l),-1):r}var Cc=p,Dc=p,Ec=p,Fc=p,Gc=k,Hc=k;function Ic(e){return{jpg:"image/jpeg",jpeg:"image/jpeg",png:"image/png",bmp:"image/bmp",ogg:"audio/ogg",wav:"audio/wav",mp3:"audio/mpeg"}[e.substr(e.lastIndexOf(".")+1)]}var Jc=[];function Kc(){var e=s.canvas;Jc.forEach(function(t){t(e.width,e.height)})}function Lc(){var e=s.canvas;this.Ib=e.width,this.Hb=e.height,e.width=screen.width,e.height=screen.height,"undefined"!=typeof SDL&&(e=Qa[SDL.screen+0*ma>>2],B[SDL.screen+0*ma>>2]=8388608|e),Kc()}function Mc(){var e=s.canvas;e.width=this.Ib,e.height=this.Hb,"undefined"!=typeof SDL&&(e=Qa[SDL.screen+0*ma>>2],B[SDL.screen+0*ma>>2]=-8388609&e),Kc()}var Nc,Oc,Pc,Qc,rb=ra(4);B[rb>>2]=0;var Vb=Qb(m,"/",16895,0),Rc=T,Sc={type:Rc,se:{},Ua:"/",root:m},Tc;Tc=O("/",{N:p});var Uc=Rc.z(Sc);Uc.z=Sc,Sc.root=Uc,Tc&&(Tc.d.z=Sc,Tc.d.ub=l,Vb=Sc.root),zb("/tmp",511),zb("/dev",511),Nb[259]={e:{Q:function(){return 0},write:function(){return 0}}},Ab("/dev/null",438,259),Mb(1280,{Na:function(e){if(!e.input.length){var t=m;if(ca){if(process.Eb.be)return;t=process.Eb.Q()}else"undefined"!=typeof window&&"function"==typeof window.prompt?(t=window.prompt("Input: "))!==m&&(t+="\n"):"function"==typeof readline&&((t=readline())!==m&&(t+="\n"));if(!t)return m;e.input=J(t,l)}return e.input.shift()},W:function(e,t){t===m||10===t?(s.print(e.H.join("")),e.H=[]):e.H.push(Pb.oa(t))}}),Mb(1536,{W:function(e,t){t===m||10===t?(s.printErr(e.H.join("")),e.H=[]):e.H.push(Pb.oa(t))}}),Ab("/dev/tty",438,1280),Ab("/dev/tty1",438,1536),zb("/dev/shm",511),zb("/dev/shm/tmp",511),Xa.unshift({V:function(){if(!s.noFSInit&&!bc){w(!bc,"FS.init was previously called. If you want to initialize later with custom parameters, remove any earlier calls (note that one is automatically added to the generated code)"),bc=l,s.stdin=s.stdin,s.stdout=s.stdout,s.stderr=s.stderr,s.stdin?ec("/dev","stdin",s.stdin):Bb("/dev/tty","/dev/stdin"),s.stdout?ec("/dev","stdout",m,s.stdout):Bb("/dev/tty","/dev/stdout"),s.stderr?ec("/dev","stderr",m,s.stderr):Bb("/dev/tty1","/dev/stderr");var e=Db("/dev/stdin","r");B[Tb>>2]=e.s,w(1===e.s,"invalid handle for stdin ("+e.s+")"),e=Db("/dev/stdout","w"),B[Ub>>2]=e.s,w(2===e.s,"invalid handle for stdout ("+e.s+")"),e=Db("/dev/stderr","w"),B[nb>>2]=e.s,w(3===e.s,"invalid handle for stderr ("+e.s+")")}}}),Ya.push({V:function(){Yb=p}}),Za.push({V:function(){bc=p;for(var e=0;e<R.length;e++){var t=R[e];t&&Hb(t)}}}),s.FS_createFolder=function(e,t,r,n){return zb(e=S("string"==typeof e?e:ac(e),t),cc(r,n))},s.FS_createPath=function(e,t){e="string"==typeof e?e:ac(e);for(var r=t.split("/").reverse();r.length;){var n=r.pop();if(n){var i=S(e,n);try{zb(i,511)}catch(e){}e=i}}return i},s.FS_createDataFile=dc,s.FS_createPreloadedFile=function(e,t,r,n,i,a,o,f){function u(){Ec=document.pointerLockElement===d||document.mozPointerLockElement===d||document.webkitPointerLockElement===d}function c(r){function u(r){f||dc(e,t,r,n,i),a&&a(),jb("cp "+h)}var c=p;s.preloadPlugins.forEach(function(e){!c&&e.canHandle(h)&&(e.handle(r,h,u,function(){o&&o(),jb("cp "+h)}),c=l)}),c||u(r)}if(s.preloadPlugins||(s.preloadPlugins=[]),!Nc&&!ea){Nc=l;try{new Blob,Oc=l}catch(e){Oc=p,console.log("warning: no blob constructor, cannot create blobs with mimetypes")}Pc="undefined"!=typeof MozBlobBuilder?MozBlobBuilder:"undefined"!=typeof WebKitBlobBuilder?WebKitBlobBuilder:Oc?m:console.log("warning: no BlobBuilder"),Qc="undefined"!=typeof window?window.URL?window.URL:window.webkitURL:console.log("warning: cannot create object URLs"),s.preloadPlugins.push({canHandle:function(e){return!s.re&&/\.(jpg|jpeg|png|bmp)$/i.test(e)},handle:function(e,t,r,n){var i=m;if(Oc)try{(i=new Blob([e],{type:Ic(t)})).size!==e.length&&(i=new Blob([new Uint8Array(e).buffer],{type:Ic(t)}))}catch(e){var a="Blob constructor present but fails: "+e+"; falling back to blob builder";oa||(oa={}),oa[a]||(oa[a]=1,s.P(a))}i||((i=new Pc).append(new Uint8Array(e).buffer),i=i.getBlob());var o=Qc.createObjectURL(i),f=new Image;f.onload=function(){w(f.complete,"Image "+t+" could not be decoded");var n=document.createElement("canvas");n.width=f.width,n.height=f.height,n.getContext("2d").drawImage(f,0,0),s.preloadedImages[t]=n,Qc.revokeObjectURL(o),r&&r(e)},f.onerror=function(){console.log("Image "+o+" could not be decoded"),n&&n()},f.src=o}}),s.preloadPlugins.push({canHandle:function(e){return!s.qe&&e.substr(-4)in{".ogg":1,".wav":1,".mp3":1}},handle:function(e,t,r,n){function i(n){o||(o=l,s.preloadedAudios[t]=n,r&&r(e))}function a(){o||(o=l,s.preloadedAudios[t]=new Audio,n&&n())}var o=p;if(!Oc)return a();try{var f=new Blob([e],{type:Ic(t)})}catch(e){return a()}f=Qc.createObjectURL(f);var u=new Audio;u.addEventListener("canplaythrough",function(){i(u)},p),u.onerror=function(){if(!o){console.log("warning: browser could not fully decode audio "+t+", trying slower base64 approach");for(var r="",n=0,a=0,s=0;s<e.length;s++)for(n=n<<8|e[s],a+=8;6<=a;){var f=n>>a-6&63;a=a-6,r=r+"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"[f]}2==a?(r+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"[(3&n)<<4],r+="=="):4==a&&(r+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"[(15&n)<<2],r+="="),u.src="data:audio/x-"+t.substr(-3)+";base64,"+r,i(u)}},u.src=f,setTimeout(function(){za||i(u)},1e4)}});var d=s.canvas;d.qa=d.requestPointerLock||d.mozRequestPointerLock||d.webkitRequestPointerLock,d.La=document.exitPointerLock||document.mozExitPointerLock||document.webkitExitPointerLock||aa(),d.La=d.La.bind(document),document.addEventListener("pointerlockchange",u,p),document.addEventListener("mozpointerlockchange",u,p),document.addEventListener("webkitpointerlockchange",u,p),s.elementPointerLock&&d.addEventListener("click",function(e){!Ec&&d.qa&&(d.qa(),e.preventDefault())},p)}var h,b=S.apply(m,[e,t]);if("/"==b[0]&&(b=b.substr(1)),ib("cp "+(h=b)),"string"==typeof r){var v=o,y=function(){v?v():g('Loading data file "'+r+'" failed.')},_=new XMLHttpRequest;_.open("GET",r,l),_.responseType="arraybuffer",_.onload=function(){if(200==_.status||0==_.status&&_.response){var e=_.response;w(e,'Loading data file "'+r+'" failed (no arrayBuffer).'),c(e=new Uint8Array(e)),jb("al "+r)}else y()},_.onerror=y,_.send(m),ib("al "+r)}else c(r)},s.FS_createLazyFile=function(e,t,r,n,i){var a,o;"undefined"!=typeof XMLHttpRequest?(ea||g("Cannot do synchronous binary XHRs outside webworkers in modern browsers. Use --embed-file or --preload-file in emcc"),(a=function(){this.ma=p,this.T=[]}).prototype.get=function(e){if(!(e>this.length-1||0>e)){var t=e%this.S;return this.pb(Math.floor(e/this.S))[t]}},a.prototype.Cb=function(e){this.pb=e},a.prototype.Fa=function(){var e=new XMLHttpRequest;e.open("HEAD",r,p),e.send(m),200<=e.status&&300>e.status||304===e.status||g(Error("Couldn't load "+r+". Status: "+e.status));var t,n=Number(e.getResponseHeader("Content-length")),i=1048576;(t=e.getResponseHeader("Accept-Ranges"))&&"bytes"===t||(i=n);var a=this;a.Cb(function(e){var t=e*i,o=(e+1)*i-1;o=Math.min(o,n-1);if(void 0===a.T[e]){var s=a.T;t>o&&g(Error("invalid range ("+t+", "+o+") or no bytes requested!")),o>n-1&&g(Error("only "+n+" bytes available! programmer error!"));var f=new XMLHttpRequest;f.open("GET",r,p),n!==i&&f.setRequestHeader("Range","bytes="+t+"-"+o),"undefined"!=typeof Uint8Array&&(f.responseType="arraybuffer"),f.overrideMimeType&&f.overrideMimeType("text/plain; charset=x-user-defined"),f.send(m),200<=f.status&&300>f.status||304===f.status||g(Error("Couldn't load "+r+". Status: "+f.status)),t=f.response!==k?new Uint8Array(f.response||[]):J(f.responseText||"",l),s[e]=t}return void 0===a.T[e]&&g(Error("doXHR failed!")),a.T[e]}),this.gb=n,this.fb=i,this.ma=l},a=new a,Object.defineProperty(a,"length",{get:function(){return this.ma||this.Fa(),this.gb}}),Object.defineProperty(a,"chunkSize",{get:function(){return this.ma||this.Fa(),this.fb}}),o=k):(o=r,a=k);var f;e=S("string"==typeof e?e:ac(e),t);f=yb(e,cc(n,i)),a?f.g=a:o&&(f.g=m,f.url=o);var u={};return Object.keys(f.e).forEach(function(e){var t=f.e[e];u[e]=function(){var e;if(f.ke||f.le||f.link||f.g)e=l;else{if(e=l,"undefined"!=typeof XMLHttpRequest&&g(Error("Lazy loading should have been performed (contents set) in createLazyFile, but it was not. Lazy loading only works in web workers. Use --embed-file or --preload-file in emcc on the main thread.")),s.read)try{f.g=J(s.read(f.url),l)}catch(t){e=p}else g(Error("Cannot load without read() or XMLHttpRequest."));e||M(N.I)}return e||g(new Q(N.I)),t.apply(m,arguments)}}),u.Q=function(e,t,r,n,i){if(e=e.d.g,n=Math.min(e.length-i,n),e.slice)for(var a=0;a<n;a++)t[r+a]=e[i+a];else for(a=0;a<n;a++)t[r+a]=e.get(i+a);return n},f.e=u,f},s.FS_createLink=function(e,t,r){return Bb(r,e=S("string"==typeof e?e:ac(e),t))},s.FS_createDevice=ec,U.m=F(12,"void*",E),wc(W),Bc.J=F([0],"i8",E),s.requestFullScreen=function(e,t){function r(){Dc=p,(document.webkitFullScreenElement||document.webkitFullscreenElement||document.mozFullScreenElement||document.mozFullscreenElement||document.fullScreenElement||document.fullscreenElement)===n?(n.Ga=document.cancelFullScreen||document.mozCancelFullScreen||document.webkitCancelFullScreen,n.Ga=n.Ga.bind(document),Gc&&n.qa(),Dc=l,Hc&&Lc()):Hc&&Mc(),s.onFullScreen&&s.onFullScreen(Dc)}Hc=t,void 0===(Gc=e)&&(Gc=l),void 0===Hc&&(Hc=p);var n=s.canvas;Fc||(Fc=l,document.addEventListener("fullscreenchange",r,p),document.addEventListener("mozfullscreenchange",r,p),document.addEventListener("webkitfullscreenchange",r,p)),n.Ab=n.requestFullScreen||n.mozRequestFullScreen||(n.webkitRequestFullScreen?function(){n.webkitRequestFullScreen(Element.ALLOW_KEYBOARD_INPUT)}:m),n.Ab()},s.requestAnimationFrame=function(e){window.requestAnimationFrame||(window.requestAnimationFrame=window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||window.msRequestAnimationFrame||window.oRequestAnimationFrame||window.setTimeout),window.requestAnimationFrame(e)},s.pauseMainLoop=aa(),s.resumeMainLoop=function(){Cc&&(Cc=p,m())},s.getUserMedia=function(){window.Ma||(window.Ma=navigator.getUserMedia||navigator.mozGetUserMedia),window.Ma(k)},Sa=u=xa(sa),Ta=Sa+5242880,Ua=z=xa(Ta),w(Ua<va);var Vc=F([8,7,6,6,5,5,5,5,4,4,4,4,4,4,4,4,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],"i8",3),Wc=F([8,0,1,0,2,0,1,0,3,0,1,0,2,0,1,0,4,0,1,0,2,0,1,0,3,0,1,0,2,0,1,0,5,0,1,0,2,0,1,0,3,0,1,0,2,0,1,0,4,0,1,0,2,0,1,0,3,0,1,0,2,0,1,0,6,0,1,0,2,0,1,0,3,0,1,0,2,0,1,0,4,0,1,0,2,0,1,0,3,0,1,0,2,0,1,0,5,0,1,0,2,0,1,0,3,0,1,0,2,0,1,0,4,0,1,0,2,0,1,0,3,0,1,0,2,0,1,0,7,0,1,0,2,0,1,0,3,0,1,0,2,0,1,0,4,0,1,0,2,0,1,0,3,0,1,0,2,0,1,0,5,0,1,0,2,0,1,0,3,0,1,0,2,0,1,0,4,0,1,0,2,0,1,0,3,0,1,0,2,0,1,0,6,0,1,0,2,0,1,0,3,0,1,0,2,0,1,0,4,0,1,0,2,0,1,0,3,0,1,0,2,0,1,0,5,0,1,0,2,0,1,0,3,0,1,0,2,0,1,0,4,0,1,0,2,0,1,0,3,0,1,0,2,0,1,0],"i8",3),Xc=Math.min,V=function(e,t,r){"use asm";var n=new e.Int8Array(r);var i=new e.Int16Array(r);var a=new e.Int32Array(r);var o=new e.Uint8Array(r);var s=new e.Uint16Array(r);var f=new e.Uint32Array(r);var u=new e.Float32Array(r);var c=new e.Float64Array(r);var l=t.STACKTOP|0;var d=t.STACK_MAX|0;var h=t.tempDoublePtr|0;var p=t.ABORT|0;var b=t.cttz_i8|0;var v=t.ctlz_i8|0;var m=t._stderr|0;var g=t.__ZTVN10__cxxabiv120__si_class_type_infoE|0;var y=t.__ZTVN10__cxxabiv117__class_type_infoE|0;var w=t.___progname|0;var _=+t.NaN;var S=+t.Infinity;var k=0;var x=0;var A=0;var M=0;var E=0,T=0,I=0,P=0,O=0.0,R=0,C=0,j=0,B=0.0;var N=0;var F=0;var L=0;var z=0;var H=0;var U=0;var D=0;var q=0;var Y=0;var K=0;var V=e.Math.floor;var W=e.Math.abs;var X=e.Math.sqrt;var Z=e.Math.pow;var G=e.Math.cos;var Q=e.Math.sin;var $=e.Math.tan;var J=e.Math.acos;var ee=e.Math.asin;var te=e.Math.atan;var re=e.Math.atan2;var ne=e.Math.exp;var ie=e.Math.log;var ae=e.Math.ceil;var oe=e.Math.imul;var se=t.abort;var fe=t.assert;var ue=t.asmPrintInt;var ce=t.asmPrintFloat;var le=t.min;var de=t.invoke_vi;var he=t.invoke_vii;var pe=t.invoke_ii;var be=t.invoke_viii;var ve=t.invoke_v;var me=t.invoke_iii;var ge=t._strncmp;var ye=t._llvm_va_end;var we=t._sysconf;var _e=t.___cxa_throw;var Se=t._strerror;var ke=t._abort;var xe=t._fprintf;var Ae=t._llvm_eh_exception;var Me=t.___cxa_free_exception;var Ee=t._fflush;var Te=t.___buildEnvironment;var Ie=t.__reallyNegative;var Pe=t._strchr;var Oe=t._fputc;var Re=t.___setErrNo;var Ce=t._fwrite;var je=t._send;var Be=t._write;var Ne=t._exit;var Fe=t.___cxa_find_matching_catch;var Le=t.___cxa_allocate_exception;var ze=t._isspace;var He=t.__formatString;var Ue=t.___resumeException;var De=t._llvm_uadd_with_overflow_i32;var qe=t.___cxa_does_inherit;var Ye=t._getenv;var Ke=t._vfprintf;var Ve=t.___cxa_begin_catch;var We=t.__ZSt18uncaught_exceptionv;var Xe=t._pwrite;var Ze=t.___cxa_call_unexpected;var Ge=t._sbrk;var Qe=t._strerror_r;var $e=t.___errno_location;var Je=t.___gxx_personality_v0;var et=t.___cxa_is_number_type;var tt=t._time;var rt=t.__exit;var nt=t.___cxa_end_catch;function it(e){e=e|0;var t=0;t=l;l=l+e|0;l=l+7>>3<<3;return t|0}function at(){return l|0}function ot(e){e=e|0;l=e}function st(e,t){e=e|0;t=t|0;if((k|0)==0){k=e;x=t}}function ft(e){e=e|0;n[h]=n[e];n[h+1|0]=n[e+1|0];n[h+2|0]=n[e+2|0];n[h+3|0]=n[e+3|0]}function ut(e){e=e|0;n[h]=n[e];n[h+1|0]=n[e+1|0];n[h+2|0]=n[e+2|0];n[h+3|0]=n[e+3|0];n[h+4|0]=n[e+4|0];n[h+5|0]=n[e+5|0];n[h+6|0]=n[e+6|0];n[h+7|0]=n[e+7|0]}function ct(e){e=e|0;N=e}function lt(e){e=e|0;F=e}function dt(e){e=e|0;L=e}function ht(e){e=e|0;z=e}function pt(e){e=e|0;H=e}function bt(e){e=e|0;U=e}function vt(e){e=e|0;D=e}function mt(e){e=e|0;q=e}function gt(e){e=e|0;Y=e}function yt(e){e=e|0;K=e}function wt(){a[170]=y+8;a[172]=g+8;a[176]=g+8}function _t(e,t,r){e=e|0;t=t|0;r=r|0;var i=0;if((r|0)==0){return}else{i=0}do{n[e+i|0]=n[t+i|0]|0;i=i+1|0}while(i>>>0<r>>>0);return}function St(e,t,r){e=e|0;t=t|0;r=r|0;var i=0,a=0;if((r|0)==0){return}else{i=0}do{a=e+i|0;n[a]=n[a]^n[t+i|0];i=i+1|0}while(i>>>0<r>>>0);return}function kt(e){e=e|0;var t=0,r=0,n=0,i=0;t=o[e+1|0]|0;r=o[e+2|0]|0;n=o[e+3|0]|0;i=rn(t<<8|0>>>24|(o[e]|0)|(r<<16|0>>>16)|(n<<24|0>>>8)|(0<<8|0>>>24),0<<8|t>>>24|(0<<16|r>>>16)|(0<<24|n>>>8)|(o[e+4|0]|0)|((o[e+5|0]|0)<<8|0>>>24),0<<16|0>>>16,(o[e+6|0]|0)<<16|0>>>16)|0;n=rn(i,N,0<<24|0>>>8,(o[e+7|0]|0)<<24|0>>>8)|0;return(N=N,n)|0}function xt(e){e=e|0;return(o[e+1|0]|0)<<8|(o[e]|0)|(o[e+2|0]|0)<<16|(o[e+3|0]|0)<<24|0}function At(e,t){e=e|0;t=t|0;n[e]=t&255;n[e+1|0]=t>>>8&255;n[e+2|0]=t>>>16&255;n[e+3|0]=t>>>24&255;return}function Mt(e){e=e|0;a[e+36>>2]=0;a[e+32>>2]=0;a[e>>2]=1779033703;a[e+4>>2]=-1150833019;a[e+8>>2]=1013904242;a[e+12>>2]=-1521486534;a[e+16>>2]=1359893119;a[e+20>>2]=-1694144372;a[e+24>>2]=528734635;a[e+28>>2]=1541459225;return}function Et(e,t,r,n,i,o,s,f,u,c){e=e|0;t=t|0;r=r|0;n=n|0;i=i|0;o=o|0;s=s|0;f=f|0;u=u|0;c=c|0;var l=0,d=0,h=0,p=0,b=0,v=0,m=0,g=0;l=hn(f,0,s,0)|0;d=N;h=0;if(d>>>0>h>>>0|d>>>0==h>>>0&l>>>0>1073741823>>>0){a[($e()|0)>>2]=27;p=-1;return p|0}l=rn(i,o,-1,-1)|0;if((l&i|0)!=0|(N&o|0)!=0|(i|0)==0&(o|0)==0){a[($e()|0)>>2]=22;p=-1;return p|0}do{if(!((33554431/(f>>>0)|0)>>>0<s>>>0|s>>>0>16777215)){l=0;if(l>>>0<o>>>0|l>>>0==o>>>0&(33554431/(s>>>0)|0)>>>0<i>>>0){break}l=s<<7;h=Yt(oe(l,f)|0)|0;if((h|0)==0){p=-1;return p|0}d=Yt(s<<8)|0;do{if((d|0)!=0){b=hn(l,0,i,o)|0;v=Yt(b)|0;if((v|0)==0){Kt(d);break}b=oe(f<<7,s)|0;Dt(e,t,r,n,1,0,h,b);if((f|0)!=0){m=s<<7;g=0;do{Tt(h+(oe(m,g)|0)|0,s,i,o,v,d);g=g+1|0}while(g>>>0<f>>>0)}Dt(e,t,h,b,1,0,u,c);Kt(v);Kt(d);Kt(h);p=0;return p|0}}while(0);Kt(h);p=-1;return p|0}}while(0);a[($e()|0)>>2]=12;p=-1;return p|0}function Tt(e,t,r,n,i,a){e=e|0;t=t|0;r=r|0;n=n|0;i=i|0;a=a|0;var o=0,s=0,f=0,u=0,c=0,l=0,d=0,h=0,p=0,b=0;o=t<<7;s=a+o|0;_t(a,e,o);if((r|0)==0&(n|0)==0){_t(e,a,o);return}f=o;u=0;c=0;l=0;do{d=hn(l,c,f,u)|0;_t(i+d|0,a,o);It(a,s,t);l=rn(l,c,1,0)|0;c=N}while(c>>>0<n>>>0|c>>>0==n>>>0&l>>>0<r>>>0);if((r|0)==0&(n|0)==0){_t(e,a,o);return}l=rn(r,n,-1,-1)|0;c=N;u=o;f=0;d=0;h=0;do{p=Pt(a,t)|0;b=hn(p&l,N&c,u,f)|0;St(a,i+b|0,o);It(a,s,t);h=rn(h,d,1,0)|0;d=N}while(d>>>0<n>>>0|d>>>0==n>>>0&h>>>0<r>>>0);_t(e,a,o);return}function It(e,t,r){e=e|0;t=t|0;r=r|0;var n=0,i=0,a=0,o=0,s=0,f=0,u=0;n=l;l=l+64|0;i=n|0;a=r<<1;_t(i,e+((r<<7)-64)|0,64);if((a|0)!=0){o=0;do{s=o<<6;St(i,e+s|0,64);Ot(i);_t(t+s|0,i,64);o=o+1|0}while(o>>>0<a>>>0)}if((r|0)==0){l=n;return}else{f=0}do{_t(e+(f<<6)|0,t+(f<<7)|0,64);f=f+1|0}while(f>>>0<r>>>0);if((r|0)==0){l=n;return}else{u=0}do{_t(e+(u+r<<6)|0,t+(u<<7|64)|0,64);u=u+1|0}while(u>>>0<r>>>0);l=n;return}function Pt(e,t){e=e|0;t=t|0;var r=0;r=kt(e+((t<<7)-64)|0)|0;return(N=N,r)|0}function Ot(e){e=e|0;var t=0,r=0,n=0,i=0,o=0,s=0,f=0,u=0,c=0,d=0,h=0,p=0,b=0,v=0,m=0,g=0,y=0,w=0,_=0,S=0,k=0,x=0,A=0,M=0,E=0,T=0,I=0,P=0,O=0,R=0,C=0,j=0,B=0,N=0,F=0,L=0,z=0,H=0,U=0,D=0,q=0,Y=0,K=0,V=0,W=0,X=0,Z=0,G=0,Q=0,$=0,J=0,ee=0,te=0;t=l;l=l+128|0;r=t|0;n=t+64|0;i=0;do{a[r+(i<<2)>>2]=xt(e+(i<<2)|0)|0;i=i+1|0}while(i>>>0<16);i=r;o=n;Jr(o|0,i|0,64)|0;i=n|0;o=n+48|0;s=n+16|0;f=n+32|0;u=n+20|0;c=n+4|0;d=n+36|0;h=n+52|0;p=n+40|0;b=n+24|0;v=n+56|0;m=n+8|0;g=n+60|0;y=n+44|0;w=n+12|0;_=n+28|0;S=0;k=a[i>>2]|0;x=a[o>>2]|0;A=a[s>>2]|0;M=a[f>>2]|0;E=a[u>>2]|0;T=a[c>>2]|0;I=a[d>>2]|0;P=a[h>>2]|0;O=a[p>>2]|0;R=a[b>>2]|0;C=a[v>>2]|0;j=a[m>>2]|0;B=a[g>>2]|0;N=a[y>>2]|0;F=a[w>>2]|0;L=a[_>>2]|0;do{z=x+k|0;H=(z<<7|z>>>25)^A;z=H+k|0;U=(z<<9|z>>>23)^M;z=U+H|0;D=(z<<13|z>>>19)^x;z=D+U|0;q=(z<<18|z>>>14)^k;z=T+E|0;Y=(z<<7|z>>>25)^I;z=Y+E|0;K=(z<<9|z>>>23)^P;z=K+Y|0;V=(z<<13|z>>>19)^T;z=V+K|0;W=(z<<18|z>>>14)^E;z=R+O|0;X=(z<<7|z>>>25)^C;z=X+O|0;Z=(z<<9|z>>>23)^j;z=Z+X|0;G=(z<<13|z>>>19)^R;z=G+Z|0;Q=(z<<18|z>>>14)^O;z=N+B|0;$=(z<<7|z>>>25)^F;z=$+B|0;J=(z<<9|z>>>23)^L;z=J+$|0;ee=(z<<13|z>>>19)^N;z=ee+J|0;te=(z<<18|z>>>14)^B;z=$+q|0;T=(z<<7|z>>>25)^V;V=T+q|0;j=(V<<9|V>>>23)^Z;Z=j+T|0;F=(Z<<13|Z>>>19)^$;$=F+j|0;k=($<<18|$>>>14)^q;q=H+W|0;R=(q<<7|q>>>25)^G;G=R+W|0;L=(G<<9|G>>>23)^J;J=L+R|0;A=(J<<13|J>>>19)^H;H=A+L|0;E=(H<<18|H>>>14)^W;W=Y+Q|0;N=(W<<7|W>>>25)^ee;ee=N+Q|0;M=(ee<<9|ee>>>23)^U;U=M+N|0;I=(U<<13|U>>>19)^Y;Y=I+M|0;O=(Y<<18|Y>>>14)^Q;Q=X+te|0;x=(Q<<7|Q>>>25)^D;D=x+te|0;P=(D<<9|D>>>23)^K;K=P+x|0;C=(K<<13|K>>>19)^X;X=C+P|0;B=(X<<18|X>>>14)^te;S=S+2|0}while(S>>>0<8);a[i>>2]=k;a[o>>2]=x;a[s>>2]=A;a[f>>2]=M;a[u>>2]=E;a[c>>2]=T;a[d>>2]=I;a[h>>2]=P;a[p>>2]=O;a[b>>2]=R;a[v>>2]=C;a[m>>2]=j;a[g>>2]=B;a[y>>2]=N;a[w>>2]=F;a[_>>2]=L;L=r|0;a[L>>2]=(a[L>>2]|0)+(a[n>>2]|0);L=r+4|0;a[L>>2]=(a[L>>2]|0)+(a[n+4>>2]|0);L=r+8|0;a[L>>2]=(a[L>>2]|0)+(a[n+8>>2]|0);L=r+12|0;a[L>>2]=(a[L>>2]|0)+(a[n+12>>2]|0);L=r+16|0;a[L>>2]=(a[L>>2]|0)+(a[n+16>>2]|0);L=r+20|0;a[L>>2]=(a[L>>2]|0)+(a[n+20>>2]|0);L=r+24|0;a[L>>2]=(a[L>>2]|0)+(a[n+24>>2]|0);L=r+28|0;a[L>>2]=(a[L>>2]|0)+(a[n+28>>2]|0);L=r+32|0;a[L>>2]=(a[L>>2]|0)+(a[n+32>>2]|0);L=r+36|0;a[L>>2]=(a[L>>2]|0)+(a[n+36>>2]|0);L=r+40|0;a[L>>2]=(a[L>>2]|0)+(a[n+40>>2]|0);L=r+44|0;a[L>>2]=(a[L>>2]|0)+(a[n+44>>2]|0);L=r+48|0;a[L>>2]=(a[L>>2]|0)+(a[n+48>>2]|0);L=r+52|0;a[L>>2]=(a[L>>2]|0)+(a[n+52>>2]|0);L=r+56|0;a[L>>2]=(a[L>>2]|0)+(a[n+56>>2]|0);L=r+60|0;a[L>>2]=(a[L>>2]|0)+(a[n+60>>2]|0);n=0;do{At(e+(n<<2)|0,a[r+(n<<2)>>2]|0);n=n+1|0}while(n>>>0<16);l=t;return}function Rt(e,t,r){e=e|0;t=t|0;r=r|0;var n=0,i=0,o=0,s=0,f=0,u=0,c=0;n=e+32|0;i=e+36|0;o=a[i>>2]|0;s=o>>>3&63;f=De(o|0,r<<3|0)|0;a[i>>2]=f;if(N){f=n|0;a[f>>2]=(a[f>>2]|0)+1}f=n|0;a[f>>2]=(a[f>>2]|0)+(r>>>29);f=64-s|0;n=e+40+s|0;if(f>>>0>r>>>0){Jr(n|0,t|0,r)|0;return}Jr(n|0,t|0,f)|0;n=e|0;s=e+40|0;Ct(n,s);e=t+f|0;t=r-f|0;if(t>>>0>63){f=t;r=e;while(1){Ct(n,r);i=r+64|0;o=f-64|0;if(o>>>0>63){f=o;r=i}else{u=o;c=i;break}}}else{u=t;c=e}Jr(s|0,c|0,u)|0;return}function Ct(e,t){e=e|0;t=t|0;var r=0,n=0,i=0,o=0,s=0,f=0,u=0,c=0,d=0,h=0,p=0,b=0,v=0,m=0,g=0;r=l;l=l+288|0;n=r|0;i=r+256|0;o=n|0;qt(o,t);t=16;do{s=a[n+(t-2<<2)>>2]|0;f=a[n+(t-15<<2)>>2]|0;a[n+(t<<2)>>2]=(a[n+(t-16<<2)>>2]|0)+(a[n+(t-7<<2)>>2]|0)+((s>>>19|s<<13)^s>>>10^(s>>>17|s<<15))+((f>>>18|f<<14)^f>>>3^(f>>>7|f<<25));t=t+1|0}while((t|0)<64);t=i;f=e;Jr(t|0,f|0,32)|0;f=i+28|0;t=i+16|0;s=a[t>>2]|0;u=i+20|0;c=i+24|0;d=a[c>>2]|0;h=(a[f>>2]|0)+1116352408+(a[o>>2]|0)+((s>>>6|s<<26)^(s>>>11|s<<21)^(s>>>25|s<<7))+((d^a[u>>2])&s^d)|0;d=i|0;s=a[d>>2]|0;o=i+4|0;p=a[o>>2]|0;b=i+8|0;v=a[b>>2]|0;m=i+12|0;a[m>>2]=(a[m>>2]|0)+h;g=((s>>>2|s<<30)^(s>>>13|s<<19)^(s>>>22|s<<10))+h+((v|p)&s|v&p)|0;a[f>>2]=g;p=a[m>>2]|0;v=a[u>>2]|0;s=(a[c>>2]|0)+1899447441+(a[n+4>>2]|0)+((p>>>6|p<<26)^(p>>>11|p<<21)^(p>>>25|p<<7))+((v^a[t>>2])&p^v)|0;v=a[d>>2]|0;p=a[o>>2]|0;a[b>>2]=(a[b>>2]|0)+s;h=s+((g>>>2|g<<30)^(g>>>13|g<<19)^(g>>>22|g<<10))+((p|v)&g|p&v)|0;a[c>>2]=h;v=a[b>>2]|0;p=a[t>>2]|0;g=(a[u>>2]|0)-1245643825+(a[n+8>>2]|0)+((v>>>6|v<<26)^(v>>>11|v<<21)^(v>>>25|v<<7))+((p^a[m>>2])&v^p)|0;p=a[f>>2]|0;v=a[d>>2]|0;a[o>>2]=(a[o>>2]|0)+g;s=g+((h>>>2|h<<30)^(h>>>13|h<<19)^(h>>>22|h<<10))+((v|p)&h|v&p)|0;a[u>>2]=s;p=a[o>>2]|0;v=a[m>>2]|0;h=(a[t>>2]|0)-373957723+(a[n+12>>2]|0)+((p>>>6|p<<26)^(p>>>11|p<<21)^(p>>>25|p<<7))+((v^a[b>>2])&p^v)|0;v=a[c>>2]|0;p=a[f>>2]|0;a[d>>2]=(a[d>>2]|0)+h;g=h+((s>>>2|s<<30)^(s>>>13|s<<19)^(s>>>22|s<<10))+((p|v)&s|p&v)|0;a[t>>2]=g;v=a[d>>2]|0;p=a[b>>2]|0;s=(a[m>>2]|0)+961987163+(a[n+16>>2]|0)+((v>>>6|v<<26)^(v>>>11|v<<21)^(v>>>25|v<<7))+((p^a[o>>2])&v^p)|0;p=a[u>>2]|0;v=a[c>>2]|0;a[f>>2]=(a[f>>2]|0)+s;h=s+((g>>>2|g<<30)^(g>>>13|g<<19)^(g>>>22|g<<10))+((v|p)&g|v&p)|0;a[m>>2]=h;p=a[f>>2]|0;v=a[o>>2]|0;g=(a[b>>2]|0)+1508970993+(a[n+20>>2]|0)+((p>>>6|p<<26)^(p>>>11|p<<21)^(p>>>25|p<<7))+((v^a[d>>2])&p^v)|0;v=a[t>>2]|0;p=a[u>>2]|0;a[c>>2]=(a[c>>2]|0)+g;s=g+((h>>>2|h<<30)^(h>>>13|h<<19)^(h>>>22|h<<10))+((p|v)&h|p&v)|0;a[b>>2]=s;v=a[c>>2]|0;p=a[d>>2]|0;h=(a[o>>2]|0)-1841331548+(a[n+24>>2]|0)+((v>>>6|v<<26)^(v>>>11|v<<21)^(v>>>25|v<<7))+((p^a[f>>2])&v^p)|0;p=a[m>>2]|0;v=a[t>>2]|0;a[u>>2]=(a[u>>2]|0)+h;g=h+((s>>>2|s<<30)^(s>>>13|s<<19)^(s>>>22|s<<10))+((v|p)&s|v&p)|0;a[o>>2]=g;p=a[u>>2]|0;v=a[f>>2]|0;s=(a[d>>2]|0)-1424204075+(a[n+28>>2]|0)+((p>>>6|p<<26)^(p>>>11|p<<21)^(p>>>25|p<<7))+((v^a[c>>2])&p^v)|0;v=a[b>>2]|0;p=a[m>>2]|0;a[t>>2]=(a[t>>2]|0)+s;h=s+((g>>>2|g<<30)^(g>>>13|g<<19)^(g>>>22|g<<10))+((p|v)&g|p&v)|0;a[d>>2]=h;v=a[t>>2]|0;p=a[c>>2]|0;g=(a[f>>2]|0)-670586216+(a[n+32>>2]|0)+((v>>>6|v<<26)^(v>>>11|v<<21)^(v>>>25|v<<7))+((p^a[u>>2])&v^p)|0;p=a[o>>2]|0;v=a[b>>2]|0;a[m>>2]=(a[m>>2]|0)+g;s=g+((h>>>2|h<<30)^(h>>>13|h<<19)^(h>>>22|h<<10))+((v|p)&h|v&p)|0;a[f>>2]=s;p=a[m>>2]|0;v=a[u>>2]|0;h=(a[c>>2]|0)+310598401+(a[n+36>>2]|0)+((p>>>6|p<<26)^(p>>>11|p<<21)^(p>>>25|p<<7))+((v^a[t>>2])&p^v)|0;v=a[d>>2]|0;p=a[o>>2]|0;a[b>>2]=(a[b>>2]|0)+h;g=h+((s>>>2|s<<30)^(s>>>13|s<<19)^(s>>>22|s<<10))+((p|v)&s|p&v)|0;a[c>>2]=g;v=a[b>>2]|0;p=a[t>>2]|0;s=(a[u>>2]|0)+607225278+(a[n+40>>2]|0)+((v>>>6|v<<26)^(v>>>11|v<<21)^(v>>>25|v<<7))+((p^a[m>>2])&v^p)|0;p=a[f>>2]|0;v=a[d>>2]|0;a[o>>2]=(a[o>>2]|0)+s;h=s+((g>>>2|g<<30)^(g>>>13|g<<19)^(g>>>22|g<<10))+((v|p)&g|v&p)|0;a[u>>2]=h;p=a[o>>2]|0;v=a[m>>2]|0;g=(a[t>>2]|0)+1426881987+(a[n+44>>2]|0)+((p>>>6|p<<26)^(p>>>11|p<<21)^(p>>>25|p<<7))+((v^a[b>>2])&p^v)|0;v=a[c>>2]|0;p=a[f>>2]|0;a[d>>2]=(a[d>>2]|0)+g;s=g+((h>>>2|h<<30)^(h>>>13|h<<19)^(h>>>22|h<<10))+((p|v)&h|p&v)|0;a[t>>2]=s;v=a[d>>2]|0;p=a[b>>2]|0;h=(a[m>>2]|0)+1925078388+(a[n+48>>2]|0)+((v>>>6|v<<26)^(v>>>11|v<<21)^(v>>>25|v<<7))+((p^a[o>>2])&v^p)|0;p=a[u>>2]|0;v=a[c>>2]|0;a[f>>2]=(a[f>>2]|0)+h;g=h+((s>>>2|s<<30)^(s>>>13|s<<19)^(s>>>22|s<<10))+((v|p)&s|v&p)|0;a[m>>2]=g;p=a[f>>2]|0;v=a[o>>2]|0;s=(a[b>>2]|0)-2132889090+(a[n+52>>2]|0)+((p>>>6|p<<26)^(p>>>11|p<<21)^(p>>>25|p<<7))+((v^a[d>>2])&p^v)|0;v=a[t>>2]|0;p=a[u>>2]|0;a[c>>2]=(a[c>>2]|0)+s;h=s+((g>>>2|g<<30)^(g>>>13|g<<19)^(g>>>22|g<<10))+((p|v)&g|p&v)|0;a[b>>2]=h;v=a[c>>2]|0;p=a[d>>2]|0;g=(a[o>>2]|0)-1680079193+(a[n+56>>2]|0)+((v>>>6|v<<26)^(v>>>11|v<<21)^(v>>>25|v<<7))+((p^a[f>>2])&v^p)|0;p=a[m>>2]|0;v=a[t>>2]|0;a[u>>2]=(a[u>>2]|0)+g;s=g+((h>>>2|h<<30)^(h>>>13|h<<19)^(h>>>22|h<<10))+((v|p)&h|v&p)|0;a[o>>2]=s;p=a[u>>2]|0;v=a[f>>2]|0;h=(a[d>>2]|0)-1046744716+(a[n+60>>2]|0)+((p>>>6|p<<26)^(p>>>11|p<<21)^(p>>>25|p<<7))+((v^a[c>>2])&p^v)|0;v=a[b>>2]|0;p=a[m>>2]|0;a[t>>2]=(a[t>>2]|0)+h;g=h+((s>>>2|s<<30)^(s>>>13|s<<19)^(s>>>22|s<<10))+((p|v)&s|p&v)|0;a[d>>2]=g;v=a[t>>2]|0;p=a[c>>2]|0;s=(a[f>>2]|0)-459576895+(a[n+64>>2]|0)+((v>>>6|v<<26)^(v>>>11|v<<21)^(v>>>25|v<<7))+((p^a[u>>2])&v^p)|0;p=a[o>>2]|0;v=a[b>>2]|0;a[m>>2]=(a[m>>2]|0)+s;h=s+((g>>>2|g<<30)^(g>>>13|g<<19)^(g>>>22|g<<10))+((v|p)&g|v&p)|0;a[f>>2]=h;p=a[m>>2]|0;v=a[u>>2]|0;g=(a[c>>2]|0)-272742522+(a[n+68>>2]|0)+((p>>>6|p<<26)^(p>>>11|p<<21)^(p>>>25|p<<7))+((v^a[t>>2])&p^v)|0;v=a[d>>2]|0;p=a[o>>2]|0;a[b>>2]=(a[b>>2]|0)+g;s=g+((h>>>2|h<<30)^(h>>>13|h<<19)^(h>>>22|h<<10))+((p|v)&h|p&v)|0;a[c>>2]=s;v=a[b>>2]|0;p=a[t>>2]|0;h=(a[u>>2]|0)+264347078+(a[n+72>>2]|0)+((v>>>6|v<<26)^(v>>>11|v<<21)^(v>>>25|v<<7))+((p^a[m>>2])&v^p)|0;p=a[f>>2]|0;v=a[d>>2]|0;a[o>>2]=(a[o>>2]|0)+h;g=h+((s>>>2|s<<30)^(s>>>13|s<<19)^(s>>>22|s<<10))+((v|p)&s|v&p)|0;a[u>>2]=g;p=a[o>>2]|0;v=a[m>>2]|0;s=(a[t>>2]|0)+604807628+(a[n+76>>2]|0)+((p>>>6|p<<26)^(p>>>11|p<<21)^(p>>>25|p<<7))+((v^a[b>>2])&p^v)|0;v=a[c>>2]|0;p=a[f>>2]|0;a[d>>2]=(a[d>>2]|0)+s;h=s+((g>>>2|g<<30)^(g>>>13|g<<19)^(g>>>22|g<<10))+((p|v)&g|p&v)|0;a[t>>2]=h;v=a[d>>2]|0;p=a[b>>2]|0;g=(a[m>>2]|0)+770255983+(a[n+80>>2]|0)+((v>>>6|v<<26)^(v>>>11|v<<21)^(v>>>25|v<<7))+((p^a[o>>2])&v^p)|0;p=a[u>>2]|0;v=a[c>>2]|0;a[f>>2]=(a[f>>2]|0)+g;s=g+((h>>>2|h<<30)^(h>>>13|h<<19)^(h>>>22|h<<10))+((v|p)&h|v&p)|0;a[m>>2]=s;p=a[f>>2]|0;v=a[o>>2]|0;h=(a[b>>2]|0)+1249150122+(a[n+84>>2]|0)+((p>>>6|p<<26)^(p>>>11|p<<21)^(p>>>25|p<<7))+((v^a[d>>2])&p^v)|0;v=a[t>>2]|0;p=a[u>>2]|0;a[c>>2]=(a[c>>2]|0)+h;g=h+((s>>>2|s<<30)^(s>>>13|s<<19)^(s>>>22|s<<10))+((p|v)&s|p&v)|0;a[b>>2]=g;v=a[c>>2]|0;p=a[d>>2]|0;s=(a[o>>2]|0)+1555081692+(a[n+88>>2]|0)+((v>>>6|v<<26)^(v>>>11|v<<21)^(v>>>25|v<<7))+((p^a[f>>2])&v^p)|0;p=a[m>>2]|0;v=a[t>>2]|0;a[u>>2]=(a[u>>2]|0)+s;h=s+((g>>>2|g<<30)^(g>>>13|g<<19)^(g>>>22|g<<10))+((v|p)&g|v&p)|0;a[o>>2]=h;p=a[u>>2]|0;v=a[f>>2]|0;g=(a[d>>2]|0)+1996064986+(a[n+92>>2]|0)+((p>>>6|p<<26)^(p>>>11|p<<21)^(p>>>25|p<<7))+((v^a[c>>2])&p^v)|0;v=a[b>>2]|0;p=a[m>>2]|0;a[t>>2]=(a[t>>2]|0)+g;s=g+((h>>>2|h<<30)^(h>>>13|h<<19)^(h>>>22|h<<10))+((p|v)&h|p&v)|0;a[d>>2]=s;v=a[t>>2]|0;p=a[c>>2]|0;h=(a[f>>2]|0)-1740746414+(a[n+96>>2]|0)+((v>>>6|v<<26)^(v>>>11|v<<21)^(v>>>25|v<<7))+((p^a[u>>2])&v^p)|0;p=a[o>>2]|0;v=a[b>>2]|0;a[m>>2]=(a[m>>2]|0)+h;g=h+((s>>>2|s<<30)^(s>>>13|s<<19)^(s>>>22|s<<10))+((v|p)&s|v&p)|0;a[f>>2]=g;p=a[m>>2]|0;v=a[u>>2]|0;s=(a[c>>2]|0)-1473132947+(a[n+100>>2]|0)+((p>>>6|p<<26)^(p>>>11|p<<21)^(p>>>25|p<<7))+((v^a[t>>2])&p^v)|0;v=a[d>>2]|0;p=a[o>>2]|0;a[b>>2]=(a[b>>2]|0)+s;h=s+((g>>>2|g<<30)^(g>>>13|g<<19)^(g>>>22|g<<10))+((p|v)&g|p&v)|0;a[c>>2]=h;v=a[b>>2]|0;p=a[t>>2]|0;g=(a[u>>2]|0)-1341970488+(a[n+104>>2]|0)+((v>>>6|v<<26)^(v>>>11|v<<21)^(v>>>25|v<<7))+((p^a[m>>2])&v^p)|0;p=a[f>>2]|0;v=a[d>>2]|0;a[o>>2]=(a[o>>2]|0)+g;s=g+((h>>>2|h<<30)^(h>>>13|h<<19)^(h>>>22|h<<10))+((v|p)&h|v&p)|0;a[u>>2]=s;p=a[o>>2]|0;v=a[m>>2]|0;h=(a[t>>2]|0)-1084653625+(a[n+108>>2]|0)+((p>>>6|p<<26)^(p>>>11|p<<21)^(p>>>25|p<<7))+((v^a[b>>2])&p^v)|0;v=a[c>>2]|0;p=a[f>>2]|0;a[d>>2]=(a[d>>2]|0)+h;g=h+((s>>>2|s<<30)^(s>>>13|s<<19)^(s>>>22|s<<10))+((p|v)&s|p&v)|0;a[t>>2]=g;v=a[d>>2]|0;p=a[b>>2]|0;s=(a[m>>2]|0)-958395405+(a[n+112>>2]|0)+((v>>>6|v<<26)^(v>>>11|v<<21)^(v>>>25|v<<7))+((p^a[o>>2])&v^p)|0;p=a[u>>2]|0;v=a[c>>2]|0;a[f>>2]=(a[f>>2]|0)+s;h=s+((g>>>2|g<<30)^(g>>>13|g<<19)^(g>>>22|g<<10))+((v|p)&g|v&p)|0;a[m>>2]=h;p=a[f>>2]|0;v=a[o>>2]|0;g=(a[b>>2]|0)-710438585+(a[n+116>>2]|0)+((p>>>6|p<<26)^(p>>>11|p<<21)^(p>>>25|p<<7))+((v^a[d>>2])&p^v)|0;v=a[t>>2]|0;p=a[u>>2]|0;a[c>>2]=(a[c>>2]|0)+g;s=g+((h>>>2|h<<30)^(h>>>13|h<<19)^(h>>>22|h<<10))+((p|v)&h|p&v)|0;a[b>>2]=s;v=a[c>>2]|0;p=a[d>>2]|0;h=(a[o>>2]|0)+113926993+(a[n+120>>2]|0)+((v>>>6|v<<26)^(v>>>11|v<<21)^(v>>>25|v<<7))+((p^a[f>>2])&v^p)|0;p=a[m>>2]|0;v=a[t>>2]|0;a[u>>2]=(a[u>>2]|0)+h;g=h+((s>>>2|s<<30)^(s>>>13|s<<19)^(s>>>22|s<<10))+((v|p)&s|v&p)|0;a[o>>2]=g;p=a[u>>2]|0;v=a[f>>2]|0;s=(a[d>>2]|0)+338241895+(a[n+124>>2]|0)+((p>>>6|p<<26)^(p>>>11|p<<21)^(p>>>25|p<<7))+((v^a[c>>2])&p^v)|0;v=a[b>>2]|0;p=a[m>>2]|0;a[t>>2]=(a[t>>2]|0)+s;h=s+((g>>>2|g<<30)^(g>>>13|g<<19)^(g>>>22|g<<10))+((p|v)&g|p&v)|0;a[d>>2]=h;v=a[t>>2]|0;p=a[c>>2]|0;g=(a[f>>2]|0)+666307205+(a[n+128>>2]|0)+((v>>>6|v<<26)^(v>>>11|v<<21)^(v>>>25|v<<7))+((p^a[u>>2])&v^p)|0;p=a[o>>2]|0;v=a[b>>2]|0;a[m>>2]=(a[m>>2]|0)+g;s=g+((h>>>2|h<<30)^(h>>>13|h<<19)^(h>>>22|h<<10))+((v|p)&h|v&p)|0;a[f>>2]=s;p=a[m>>2]|0;v=a[u>>2]|0;h=(a[c>>2]|0)+773529912+(a[n+132>>2]|0)+((p>>>6|p<<26)^(p>>>11|p<<21)^(p>>>25|p<<7))+((v^a[t>>2])&p^v)|0;v=a[d>>2]|0;p=a[o>>2]|0;a[b>>2]=(a[b>>2]|0)+h;g=h+((s>>>2|s<<30)^(s>>>13|s<<19)^(s>>>22|s<<10))+((p|v)&s|p&v)|0;a[c>>2]=g;v=a[b>>2]|0;p=a[t>>2]|0;s=(a[u>>2]|0)+1294757372+(a[n+136>>2]|0)+((v>>>6|v<<26)^(v>>>11|v<<21)^(v>>>25|v<<7))+((p^a[m>>2])&v^p)|0;p=a[f>>2]|0;v=a[d>>2]|0;a[o>>2]=(a[o>>2]|0)+s;h=s+((g>>>2|g<<30)^(g>>>13|g<<19)^(g>>>22|g<<10))+((v|p)&g|v&p)|0;a[u>>2]=h;p=a[o>>2]|0;v=a[m>>2]|0;g=(a[t>>2]|0)+1396182291+(a[n+140>>2]|0)+((p>>>6|p<<26)^(p>>>11|p<<21)^(p>>>25|p<<7))+((v^a[b>>2])&p^v)|0;v=a[c>>2]|0;p=a[f>>2]|0;a[d>>2]=(a[d>>2]|0)+g;s=g+((h>>>2|h<<30)^(h>>>13|h<<19)^(h>>>22|h<<10))+((p|v)&h|p&v)|0;a[t>>2]=s;v=a[d>>2]|0;p=a[b>>2]|0;h=(a[m>>2]|0)+1695183700+(a[n+144>>2]|0)+((v>>>6|v<<26)^(v>>>11|v<<21)^(v>>>25|v<<7))+((p^a[o>>2])&v^p)|0;p=a[u>>2]|0;v=a[c>>2]|0;a[f>>2]=(a[f>>2]|0)+h;g=h+((s>>>2|s<<30)^(s>>>13|s<<19)^(s>>>22|s<<10))+((v|p)&s|v&p)|0;a[m>>2]=g;p=a[f>>2]|0;v=a[o>>2]|0;s=(a[b>>2]|0)+1986661051+(a[n+148>>2]|0)+((p>>>6|p<<26)^(p>>>11|p<<21)^(p>>>25|p<<7))+((v^a[d>>2])&p^v)|0;v=a[t>>2]|0;p=a[u>>2]|0;a[c>>2]=(a[c>>2]|0)+s;h=s+((g>>>2|g<<30)^(g>>>13|g<<19)^(g>>>22|g<<10))+((p|v)&g|p&v)|0;a[b>>2]=h;v=a[c>>2]|0;p=a[d>>2]|0;g=(a[o>>2]|0)-2117940946+(a[n+152>>2]|0)+((v>>>6|v<<26)^(v>>>11|v<<21)^(v>>>25|v<<7))+((p^a[f>>2])&v^p)|0;p=a[m>>2]|0;v=a[t>>2]|0;a[u>>2]=(a[u>>2]|0)+g;s=g+((h>>>2|h<<30)^(h>>>13|h<<19)^(h>>>22|h<<10))+((v|p)&h|v&p)|0;a[o>>2]=s;p=a[u>>2]|0;v=a[f>>2]|0;h=(a[d>>2]|0)-1838011259+(a[n+156>>2]|0)+((p>>>6|p<<26)^(p>>>11|p<<21)^(p>>>25|p<<7))+((v^a[c>>2])&p^v)|0;v=a[b>>2]|0;p=a[m>>2]|0;a[t>>2]=(a[t>>2]|0)+h;g=h+((s>>>2|s<<30)^(s>>>13|s<<19)^(s>>>22|s<<10))+((p|v)&s|p&v)|0;a[d>>2]=g;v=a[t>>2]|0;p=a[c>>2]|0;s=(a[f>>2]|0)-1564481375+(a[n+160>>2]|0)+((v>>>6|v<<26)^(v>>>11|v<<21)^(v>>>25|v<<7))+((p^a[u>>2])&v^p)|0;p=a[o>>2]|0;v=a[b>>2]|0;a[m>>2]=(a[m>>2]|0)+s;h=s+((g>>>2|g<<30)^(g>>>13|g<<19)^(g>>>22|g<<10))+((v|p)&g|v&p)|0;a[f>>2]=h;p=a[m>>2]|0;v=a[u>>2]|0;g=(a[c>>2]|0)-1474664885+(a[n+164>>2]|0)+((p>>>6|p<<26)^(p>>>11|p<<21)^(p>>>25|p<<7))+((v^a[t>>2])&p^v)|0;v=a[d>>2]|0;p=a[o>>2]|0;a[b>>2]=(a[b>>2]|0)+g;s=g+((h>>>2|h<<30)^(h>>>13|h<<19)^(h>>>22|h<<10))+((p|v)&h|p&v)|0;a[c>>2]=s;v=a[b>>2]|0;p=a[t>>2]|0;h=(a[u>>2]|0)-1035236496+(a[n+168>>2]|0)+((v>>>6|v<<26)^(v>>>11|v<<21)^(v>>>25|v<<7))+((p^a[m>>2])&v^p)|0;p=a[f>>2]|0;v=a[d>>2]|0;a[o>>2]=(a[o>>2]|0)+h;g=h+((s>>>2|s<<30)^(s>>>13|s<<19)^(s>>>22|s<<10))+((v|p)&s|v&p)|0;a[u>>2]=g;p=a[o>>2]|0;v=a[m>>2]|0;s=(a[t>>2]|0)-949202525+(a[n+172>>2]|0)+((p>>>6|p<<26)^(p>>>11|p<<21)^(p>>>25|p<<7))+((v^a[b>>2])&p^v)|0;v=a[c>>2]|0;p=a[f>>2]|0;a[d>>2]=(a[d>>2]|0)+s;h=s+((g>>>2|g<<30)^(g>>>13|g<<19)^(g>>>22|g<<10))+((p|v)&g|p&v)|0;a[t>>2]=h;v=a[d>>2]|0;p=a[b>>2]|0;g=(a[m>>2]|0)-778901479+(a[n+176>>2]|0)+((v>>>6|v<<26)^(v>>>11|v<<21)^(v>>>25|v<<7))+((p^a[o>>2])&v^p)|0;p=a[u>>2]|0;v=a[c>>2]|0;a[f>>2]=(a[f>>2]|0)+g;s=g+((h>>>2|h<<30)^(h>>>13|h<<19)^(h>>>22|h<<10))+((v|p)&h|v&p)|0;a[m>>2]=s;p=a[f>>2]|0;v=a[o>>2]|0;h=(a[b>>2]|0)-694614492+(a[n+180>>2]|0)+((p>>>6|p<<26)^(p>>>11|p<<21)^(p>>>25|p<<7))+((v^a[d>>2])&p^v)|0;v=a[t>>2]|0;p=a[u>>2]|0;a[c>>2]=(a[c>>2]|0)+h;g=h+((s>>>2|s<<30)^(s>>>13|s<<19)^(s>>>22|s<<10))+((p|v)&s|p&v)|0;a[b>>2]=g;v=a[c>>2]|0;p=a[d>>2]|0;s=(a[o>>2]|0)-200395387+(a[n+184>>2]|0)+((v>>>6|v<<26)^(v>>>11|v<<21)^(v>>>25|v<<7))+((p^a[f>>2])&v^p)|0;p=a[m>>2]|0;v=a[t>>2]|0;a[u>>2]=(a[u>>2]|0)+s;h=s+((g>>>2|g<<30)^(g>>>13|g<<19)^(g>>>22|g<<10))+((v|p)&g|v&p)|0;a[o>>2]=h;p=a[u>>2]|0;v=a[f>>2]|0;g=(a[d>>2]|0)+275423344+(a[n+188>>2]|0)+((p>>>6|p<<26)^(p>>>11|p<<21)^(p>>>25|p<<7))+((v^a[c>>2])&p^v)|0;v=a[b>>2]|0;p=a[m>>2]|0;a[t>>2]=(a[t>>2]|0)+g;s=g+((h>>>2|h<<30)^(h>>>13|h<<19)^(h>>>22|h<<10))+((p|v)&h|p&v)|0;a[d>>2]=s;v=a[t>>2]|0;p=a[c>>2]|0;h=(a[f>>2]|0)+430227734+(a[n+192>>2]|0)+((v>>>6|v<<26)^(v>>>11|v<<21)^(v>>>25|v<<7))+((p^a[u>>2])&v^p)|0;p=a[o>>2]|0;v=a[b>>2]|0;a[m>>2]=(a[m>>2]|0)+h;g=h+((s>>>2|s<<30)^(s>>>13|s<<19)^(s>>>22|s<<10))+((v|p)&s|v&p)|0;a[f>>2]=g;p=a[m>>2]|0;v=a[u>>2]|0;s=(a[c>>2]|0)+506948616+(a[n+196>>2]|0)+((p>>>6|p<<26)^(p>>>11|p<<21)^(p>>>25|p<<7))+((v^a[t>>2])&p^v)|0;v=a[d>>2]|0;p=a[o>>2]|0;a[b>>2]=(a[b>>2]|0)+s;h=s+((g>>>2|g<<30)^(g>>>13|g<<19)^(g>>>22|g<<10))+((p|v)&g|p&v)|0;a[c>>2]=h;v=a[b>>2]|0;p=a[t>>2]|0;g=(a[u>>2]|0)+659060556+(a[n+200>>2]|0)+((v>>>6|v<<26)^(v>>>11|v<<21)^(v>>>25|v<<7))+((p^a[m>>2])&v^p)|0;p=a[f>>2]|0;v=a[d>>2]|0;a[o>>2]=(a[o>>2]|0)+g;s=g+((h>>>2|h<<30)^(h>>>13|h<<19)^(h>>>22|h<<10))+((v|p)&h|v&p)|0;a[u>>2]=s;p=a[o>>2]|0;v=a[m>>2]|0;h=(a[t>>2]|0)+883997877+(a[n+204>>2]|0)+((p>>>6|p<<26)^(p>>>11|p<<21)^(p>>>25|p<<7))+((v^a[b>>2])&p^v)|0;v=a[c>>2]|0;p=a[f>>2]|0;a[d>>2]=(a[d>>2]|0)+h;g=h+((s>>>2|s<<30)^(s>>>13|s<<19)^(s>>>22|s<<10))+((p|v)&s|p&v)|0;a[t>>2]=g;v=a[d>>2]|0;p=a[b>>2]|0;s=(a[m>>2]|0)+958139571+(a[n+208>>2]|0)+((v>>>6|v<<26)^(v>>>11|v<<21)^(v>>>25|v<<7))+((p^a[o>>2])&v^p)|0;p=a[u>>2]|0;v=a[c>>2]|0;a[f>>2]=(a[f>>2]|0)+s;h=s+((g>>>2|g<<30)^(g>>>13|g<<19)^(g>>>22|g<<10))+((v|p)&g|v&p)|0;a[m>>2]=h;p=a[f>>2]|0;v=a[o>>2]|0;g=(a[b>>2]|0)+1322822218+(a[n+212>>2]|0)+((p>>>6|p<<26)^(p>>>11|p<<21)^(p>>>25|p<<7))+((v^a[d>>2])&p^v)|0;v=a[t>>2]|0;p=a[u>>2]|0;a[c>>2]=(a[c>>2]|0)+g;s=g+((h>>>2|h<<30)^(h>>>13|h<<19)^(h>>>22|h<<10))+((p|v)&h|p&v)|0;a[b>>2]=s;v=a[c>>2]|0;p=a[d>>2]|0;h=(a[o>>2]|0)+1537002063+(a[n+216>>2]|0)+((v>>>6|v<<26)^(v>>>11|v<<21)^(v>>>25|v<<7))+((p^a[f>>2])&v^p)|0;p=a[m>>2]|0;v=a[t>>2]|0;a[u>>2]=(a[u>>2]|0)+h;g=h+((s>>>2|s<<30)^(s>>>13|s<<19)^(s>>>22|s<<10))+((v|p)&s|v&p)|0;a[o>>2]=g;p=a[u>>2]|0;v=a[f>>2]|0;s=(a[d>>2]|0)+1747873779+(a[n+220>>2]|0)+((p>>>6|p<<26)^(p>>>11|p<<21)^(p>>>25|p<<7))+((v^a[c>>2])&p^v)|0;v=a[b>>2]|0;p=a[m>>2]|0;a[t>>2]=(a[t>>2]|0)+s;h=s+((g>>>2|g<<30)^(g>>>13|g<<19)^(g>>>22|g<<10))+((p|v)&g|p&v)|0;a[d>>2]=h;v=a[t>>2]|0;p=a[c>>2]|0;g=(a[f>>2]|0)+1955562222+(a[n+224>>2]|0)+((v>>>6|v<<26)^(v>>>11|v<<21)^(v>>>25|v<<7))+((p^a[u>>2])&v^p)|0;p=a[o>>2]|0;v=a[b>>2]|0;a[m>>2]=(a[m>>2]|0)+g;s=g+((h>>>2|h<<30)^(h>>>13|h<<19)^(h>>>22|h<<10))+((v|p)&h|v&p)|0;a[f>>2]=s;p=a[m>>2]|0;v=a[u>>2]|0;h=(a[c>>2]|0)+2024104815+(a[n+228>>2]|0)+((p>>>6|p<<26)^(p>>>11|p<<21)^(p>>>25|p<<7))+((v^a[t>>2])&p^v)|0;v=a[d>>2]|0;p=a[o>>2]|0;a[b>>2]=(a[b>>2]|0)+h;g=h+((s>>>2|s<<30)^(s>>>13|s<<19)^(s>>>22|s<<10))+((p|v)&s|p&v)|0;a[c>>2]=g;v=a[b>>2]|0;p=a[t>>2]|0;s=(a[u>>2]|0)-2067236844+(a[n+232>>2]|0)+((v>>>6|v<<26)^(v>>>11|v<<21)^(v>>>25|v<<7))+((p^a[m>>2])&v^p)|0;p=a[f>>2]|0;v=a[d>>2]|0;a[o>>2]=(a[o>>2]|0)+s;h=s+((g>>>2|g<<30)^(g>>>13|g<<19)^(g>>>22|g<<10))+((v|p)&g|v&p)|0;a[u>>2]=h;p=a[o>>2]|0;v=a[m>>2]|0;g=(a[t>>2]|0)-1933114872+(a[n+236>>2]|0)+((p>>>6|p<<26)^(p>>>11|p<<21)^(p>>>25|p<<7))+((v^a[b>>2])&p^v)|0;v=a[c>>2]|0;p=a[f>>2]|0;a[d>>2]=(a[d>>2]|0)+g;s=g+((h>>>2|h<<30)^(h>>>13|h<<19)^(h>>>22|h<<10))+((p|v)&h|p&v)|0;a[t>>2]=s;v=a[d>>2]|0;p=a[b>>2]|0;h=(a[m>>2]|0)-1866530822+(a[n+240>>2]|0)+((v>>>6|v<<26)^(v>>>11|v<<21)^(v>>>25|v<<7))+((p^a[o>>2])&v^p)|0;p=a[u>>2]|0;v=a[c>>2]|0;a[f>>2]=(a[f>>2]|0)+h;g=h+((s>>>2|s<<30)^(s>>>13|s<<19)^(s>>>22|s<<10))+((v|p)&s|v&p)|0;a[m>>2]=g;p=a[f>>2]|0;v=a[o>>2]|0;s=(a[b>>2]|0)-1538233109+(a[n+244>>2]|0)+((p>>>6|p<<26)^(p>>>11|p<<21)^(p>>>25|p<<7))+((v^a[d>>2])&p^v)|0;v=a[t>>2]|0;p=a[u>>2]|0;a[c>>2]=(a[c>>2]|0)+s;h=s+((g>>>2|g<<30)^(g>>>13|g<<19)^(g>>>22|g<<10))+((p|v)&g|p&v)|0;a[b>>2]=h;v=a[c>>2]|0;p=a[d>>2]|0;g=(a[o>>2]|0)-1090935817+(a[n+248>>2]|0)+((v>>>6|v<<26)^(v>>>11|v<<21)^(v>>>25|v<<7))+((p^a[f>>2])&v^p)|0;p=a[m>>2]|0;v=a[t>>2]|0;a[u>>2]=(a[u>>2]|0)+g;s=g+((h>>>2|h<<30)^(h>>>13|h<<19)^(h>>>22|h<<10))+((v|p)&h|v&p)|0;a[o>>2]=s;o=a[u>>2]|0;u=a[f>>2]|0;f=(a[d>>2]|0)-965641998+(a[n+252>>2]|0)+((o>>>6|o<<26)^(o>>>11|o<<21)^(o>>>25|o<<7))+((u^a[c>>2])&o^u)|0;u=a[b>>2]|0;b=a[m>>2]|0;a[t>>2]=(a[t>>2]|0)+f;t=f+((s>>>2|s<<30)^(s>>>13|s<<19)^(s>>>22|s<<10))+((b|u)&s|b&u)|0;a[d>>2]=t;a[e>>2]=(a[e>>2]|0)+t;t=e+4|0;a[t>>2]=(a[t>>2]|0)+(a[i+4>>2]|0);t=e+8|0;a[t>>2]=(a[t>>2]|0)+(a[i+8>>2]|0);t=e+12|0;a[t>>2]=(a[t>>2]|0)+(a[i+12>>2]|0);t=e+16|0;a[t>>2]=(a[t>>2]|0)+(a[i+16>>2]|0);t=e+20|0;a[t>>2]=(a[t>>2]|0)+(a[i+20>>2]|0);t=e+24|0;a[t>>2]=(a[t>>2]|0)+(a[i+24>>2]|0);t=e+28|0;a[t>>2]=(a[t>>2]|0)+(a[i+28>>2]|0);l=r;return}function jt(e,t){e=e|0;t=t|0;n[e+3|0]=t&255;n[e+2|0]=t>>>8&255;n[e+1|0]=t>>>16&255;n[e]=t>>>24&255;return}function Bt(e){e=e|0;return(o[e+2|0]|0)<<8|(o[e+3|0]|0)|(o[e+1|0]|0)<<16|(o[e]|0)<<24|0}function Nt(e,t){e=e|0;t=t|0;Ft(t);Lt(e,t|0,32);en(t|0,0,104);return}function Ft(e){e=e|0;var t=0,r=0,n=0;t=l;l=l+8|0;r=t|0;Lt(r,e+32|0,8);n=(a[e+36>>2]|0)>>>3&63;Rt(e,720,(n>>>0<56?56:120)-n|0);Rt(e,r,8);l=t;return}function Lt(e,t,r){e=e|0;t=t|0;r=r|0;var n=0,i=0;n=r>>>2;if((n|0)==0){return}else{i=0}do{jt(e+(i<<2)|0,a[t+(i<<2)>>2]|0);i=i+1|0}while(i>>>0<n>>>0);return}function zt(e,t,r){e=e|0;t=t|0;r=r|0;var i=0,a=0,o=0,s=0,f=0,u=0,c=0;i=l;l=l+96|0;a=i|0;if(r>>>0>64){o=e|0;Mt(o);Rt(o,t,r);s=i+64|0;Nt(s,o);f=s;u=32}else{f=t;u=r}r=e|0;Mt(r);t=a|0;en(t|0,54,64);if((u|0)!=0){s=0;do{o=a+s|0;n[o]=n[o]^n[f+s|0];s=s+1|0}while(s>>>0<u>>>0)}Rt(r,t,64);r=e+104|0;Mt(r);en(t|0,92,64);if((u|0)==0){Rt(r,t,64);l=i;return}else{c=0}do{e=a+c|0;n[e]=n[e]^n[f+c|0];c=c+1|0}while(c>>>0<u>>>0);Rt(r,t,64);l=i;return}function Ht(e,t,r){e=e|0;t=t|0;r=r|0;Rt(e|0,t,r);return}function Ut(e,t){e=e|0;t=t|0;var r=0,n=0,i=0;r=l;l=l+32|0;n=r|0;Nt(n,t|0);i=t+104|0;Rt(i,n,32);Nt(e,i);l=r;return}function Dt(e,t,r,i,a,o,s,f){e=e|0;t=t|0;r=r|0;i=i|0;a=a|0;o=o|0;s=s|0;f=f|0;var u=0,c=0,d=0,h=0,p=0,b=0,v=0,m=0,g=0,y=0,w=0,_=0,S=0,k=0;u=l;l=l+488|0;c=u|0;d=u+208|0;h=u+424|0;p=u+456|0;zt(c,e,t);Ht(c,r,i);if((f|0)==0){l=u;return}i=u+416|0;r=d;b=c;c=h|0;v=p|0;m=0;g=o>>>0<m>>>0|o>>>0==m>>>0&a>>>0<2>>>0;m=0;y=0;do{m=m+1|0;jt(i,m);Jr(r|0,b|0,208)|0;Ht(d,i,4);Ut(c,d);Jr(v|0,c|0,32)|0;if(!g){w=0;_=2;do{zt(d,e,t);Ht(d,c,32);Ut(c,d);S=0;do{k=p+S|0;n[k]=n[k]^n[h+S|0];S=S+1|0}while((S|0)<32);_=rn(_,w,1,0)|0;w=N}while(!(w>>>0>o>>>0|w>>>0==o>>>0&_>>>0>a>>>0))}_=f-y|0;w=_>>>0>32?32:_;_=s+y|0;Jr(_|0,v|0,w)|0;y=m<<5}while(y>>>0<f>>>0);l=u;return}function qt(e,t){e=e|0;t=t|0;var r=0;r=0;do{a[e+(r<<2)>>2]=Bt(t+(r<<2)|0)|0;r=r+1|0}while(r>>>0<16);return}function Yt(e){e=e|0;var t=0,r=0,n=0,i=0,o=0,s=0,f=0,u=0,c=0,l=0,d=0,h=0,p=0,b=0,v=0,m=0,g=0,y=0,w=0,_=0,S=0,k=0,x=0,A=0,M=0,E=0,T=0,I=0,P=0,O=0,R=0,C=0,j=0,B=0,N=0,F=0,L=0,z=0,H=0,U=0,D=0,q=0,Y=0,K=0,V=0,W=0,X=0,Z=0,G=0,Q=0,$=0,J=0,ee=0,te=0,re=0,ne=0,ie=0,ae=0,oe=0,se=0,fe=0,ue=0,ce=0,le=0,de=0,he=0,pe=0,be=0,ve=0,me=0,ge=0,ye=0,_e=0,Se=0,xe=0,Ae=0,Me=0,Ee=0,Te=0,Ie=0,Pe=0,Oe=0,Re=0,Ce=0,je=0;do{if(e>>>0<245){if(e>>>0<11){t=16}else{t=e+11&-8}r=t>>>3;n=a[208]|0;i=n>>>(r>>>0);if((i&3|0)!=0){o=(i&1^1)+r|0;s=o<<1;f=872+(s<<2)|0;u=872+(s+2<<2)|0;s=a[u>>2]|0;c=s+8|0;l=a[c>>2]|0;do{if((f|0)==(l|0)){a[208]=n&~(1<<o)}else{if(l>>>0<(a[212]|0)>>>0){ke();return 0}d=l+12|0;if((a[d>>2]|0)==(s|0)){a[d>>2]=f;a[u>>2]=l;break}else{ke();return 0}}}while(0);l=o<<3;a[s+4>>2]=l|3;u=s+(l|4)|0;a[u>>2]=a[u>>2]|1;h=c;return h|0}if(t>>>0<=(a[210]|0)>>>0){p=t;break}if((i|0)!=0){u=2<<r;l=i<<r&(u|-u);u=(l&-l)-1|0;l=u>>>12&16;f=u>>>(l>>>0);u=f>>>5&8;d=f>>>(u>>>0);f=d>>>2&4;b=d>>>(f>>>0);d=b>>>1&2;v=b>>>(d>>>0);b=v>>>1&1;m=(u|l|f|d|b)+(v>>>(b>>>0))|0;b=m<<1;v=872+(b<<2)|0;d=872+(b+2<<2)|0;b=a[d>>2]|0;f=b+8|0;l=a[f>>2]|0;do{if((v|0)==(l|0)){a[208]=n&~(1<<m)}else{if(l>>>0<(a[212]|0)>>>0){ke();return 0}u=l+12|0;if((a[u>>2]|0)==(b|0)){a[u>>2]=v;a[d>>2]=l;break}else{ke();return 0}}}while(0);l=m<<3;d=l-t|0;a[b+4>>2]=t|3;v=b;n=v+t|0;a[v+(t|4)>>2]=d|1;a[v+l>>2]=d;l=a[210]|0;if((l|0)!=0){v=a[213]|0;r=l>>>3;l=r<<1;i=872+(l<<2)|0;c=a[208]|0;s=1<<r;do{if((c&s|0)==0){a[208]=c|s;g=i;y=872+(l+2<<2)|0}else{r=872+(l+2<<2)|0;o=a[r>>2]|0;if(o>>>0>=(a[212]|0)>>>0){g=o;y=r;break}ke();return 0}}while(0);a[y>>2]=v;a[g+12>>2]=v;a[v+8>>2]=g;a[v+12>>2]=i}a[210]=d;a[213]=n;h=f;return h|0}l=a[209]|0;if((l|0)==0){p=t;break}s=(l&-l)-1|0;l=s>>>12&16;c=s>>>(l>>>0);s=c>>>5&8;b=c>>>(s>>>0);c=b>>>2&4;m=b>>>(c>>>0);b=m>>>1&2;r=m>>>(b>>>0);m=r>>>1&1;o=a[1136+((s|l|c|b|m)+(r>>>(m>>>0))<<2)>>2]|0;m=o;r=o;b=(a[o+4>>2]&-8)-t|0;while(1){o=a[m+16>>2]|0;if((o|0)==0){c=a[m+20>>2]|0;if((c|0)==0){break}else{w=c}}else{w=o}o=(a[w+4>>2]&-8)-t|0;c=o>>>0<b>>>0;m=w;r=c?w:r;b=c?o:b}m=r;f=a[212]|0;if(m>>>0<f>>>0){ke();return 0}n=m+t|0;d=n;if(m>>>0>=n>>>0){ke();return 0}n=a[r+24>>2]|0;i=a[r+12>>2]|0;do{if((i|0)==(r|0)){v=r+20|0;o=a[v>>2]|0;if((o|0)==0){c=r+16|0;l=a[c>>2]|0;if((l|0)==0){_=0;break}else{S=l;k=c}}else{S=o;k=v}while(1){v=S+20|0;o=a[v>>2]|0;if((o|0)!=0){S=o;k=v;continue}v=S+16|0;o=a[v>>2]|0;if((o|0)==0){break}else{S=o;k=v}}if(k>>>0<f>>>0){ke();return 0}else{a[k>>2]=0;_=S;break}}else{v=a[r+8>>2]|0;if(v>>>0<f>>>0){ke();return 0}o=v+12|0;if((a[o>>2]|0)!=(r|0)){ke();return 0}c=i+8|0;if((a[c>>2]|0)==(r|0)){a[o>>2]=i;a[c>>2]=v;_=i;break}else{ke();return 0}}}while(0);e:do{if((n|0)!=0){i=r+28|0;f=1136+(a[i>>2]<<2)|0;do{if((r|0)==(a[f>>2]|0)){a[f>>2]=_;if((_|0)!=0){break}a[209]=a[209]&~(1<<a[i>>2]);break e}else{if(n>>>0<(a[212]|0)>>>0){ke();return 0}v=n+16|0;if((a[v>>2]|0)==(r|0)){a[v>>2]=_}else{a[n+20>>2]=_}if((_|0)==0){break e}}}while(0);if(_>>>0<(a[212]|0)>>>0){ke();return 0}a[_+24>>2]=n;i=a[r+16>>2]|0;do{if((i|0)!=0){if(i>>>0<(a[212]|0)>>>0){ke();return 0}else{a[_+16>>2]=i;a[i+24>>2]=_;break}}}while(0);i=a[r+20>>2]|0;if((i|0)==0){break}if(i>>>0<(a[212]|0)>>>0){ke();return 0}else{a[_+20>>2]=i;a[i+24>>2]=_;break}}}while(0);if(b>>>0<16){n=b+t|0;a[r+4>>2]=n|3;i=m+(n+4)|0;a[i>>2]=a[i>>2]|1}else{a[r+4>>2]=t|3;a[m+(t|4)>>2]=b|1;a[m+(b+t)>>2]=b;i=a[210]|0;if((i|0)!=0){n=a[213]|0;f=i>>>3;i=f<<1;v=872+(i<<2)|0;c=a[208]|0;o=1<<f;do{if((c&o|0)==0){a[208]=c|o;x=v;A=872+(i+2<<2)|0}else{f=872+(i+2<<2)|0;l=a[f>>2]|0;if(l>>>0>=(a[212]|0)>>>0){x=l;A=f;break}ke();return 0}}while(0);a[A>>2]=n;a[x+12>>2]=n;a[n+8>>2]=x;a[n+12>>2]=v}a[210]=b;a[213]=d}i=r+8|0;if((i|0)==0){p=t;break}else{h=i}return h|0}else{if(e>>>0>4294967231){p=-1;break}i=e+11|0;o=i&-8;c=a[209]|0;if((c|0)==0){p=o;break}m=-o|0;f=i>>>8;do{if((f|0)==0){M=0}else{if(o>>>0>16777215){M=31;break}i=(f+1048320|0)>>>16&8;l=f<<i;s=(l+520192|0)>>>16&4;u=l<<s;l=(u+245760|0)>>>16&2;E=14-(s|i|l)+(u<<l>>>15)|0;M=o>>>((E+7|0)>>>0)&1|E<<1}}while(0);f=a[1136+(M<<2)>>2]|0;e:do{if((f|0)==0){T=0;I=m;P=0}else{if((M|0)==31){O=0}else{O=25-(M>>>1)|0}r=0;d=m;b=f;v=o<<O;n=0;while(1){E=a[b+4>>2]&-8;l=E-o|0;if(l>>>0<d>>>0){if((E|0)==(o|0)){T=b;I=l;P=b;break e}else{R=b;C=l}}else{R=r;C=d}l=a[b+20>>2]|0;E=a[b+16+(v>>>31<<2)>>2]|0;u=(l|0)==0|(l|0)==(E|0)?n:l;if((E|0)==0){T=R;I=C;P=u;break}else{r=R;d=C;b=E;v=v<<1;n=u}}}}while(0);if((P|0)==0&(T|0)==0){f=2<<M;m=c&(f|-f);if((m|0)==0){p=o;break}f=(m&-m)-1|0;m=f>>>12&16;n=f>>>(m>>>0);f=n>>>5&8;v=n>>>(f>>>0);n=v>>>2&4;b=v>>>(n>>>0);v=b>>>1&2;d=b>>>(v>>>0);b=d>>>1&1;j=a[1136+((f|m|n|v|b)+(d>>>(b>>>0))<<2)>>2]|0}else{j=P}if((j|0)==0){B=I;N=T}else{b=j;d=I;v=T;while(1){n=(a[b+4>>2]&-8)-o|0;m=n>>>0<d>>>0;f=m?n:d;n=m?b:v;m=a[b+16>>2]|0;if((m|0)!=0){b=m;d=f;v=n;continue}m=a[b+20>>2]|0;if((m|0)==0){B=f;N=n;break}else{b=m;d=f;v=n}}}if((N|0)==0){p=o;break}if(B>>>0>=((a[210]|0)-o|0)>>>0){p=o;break}v=N;d=a[212]|0;if(v>>>0<d>>>0){ke();return 0}b=v+o|0;c=b;if(v>>>0>=b>>>0){ke();return 0}n=a[N+24>>2]|0;f=a[N+12>>2]|0;do{if((f|0)==(N|0)){m=N+20|0;r=a[m>>2]|0;if((r|0)==0){u=N+16|0;E=a[u>>2]|0;if((E|0)==0){F=0;break}else{L=E;z=u}}else{L=r;z=m}while(1){m=L+20|0;r=a[m>>2]|0;if((r|0)!=0){L=r;z=m;continue}m=L+16|0;r=a[m>>2]|0;if((r|0)==0){break}else{L=r;z=m}}if(z>>>0<d>>>0){ke();return 0}else{a[z>>2]=0;F=L;break}}else{m=a[N+8>>2]|0;if(m>>>0<d>>>0){ke();return 0}r=m+12|0;if((a[r>>2]|0)!=(N|0)){ke();return 0}u=f+8|0;if((a[u>>2]|0)==(N|0)){a[r>>2]=f;a[u>>2]=m;F=f;break}else{ke();return 0}}}while(0);e:do{if((n|0)!=0){f=N+28|0;d=1136+(a[f>>2]<<2)|0;do{if((N|0)==(a[d>>2]|0)){a[d>>2]=F;if((F|0)!=0){break}a[209]=a[209]&~(1<<a[f>>2]);break e}else{if(n>>>0<(a[212]|0)>>>0){ke();return 0}m=n+16|0;if((a[m>>2]|0)==(N|0)){a[m>>2]=F}else{a[n+20>>2]=F}if((F|0)==0){break e}}}while(0);if(F>>>0<(a[212]|0)>>>0){ke();return 0}a[F+24>>2]=n;f=a[N+16>>2]|0;do{if((f|0)!=0){if(f>>>0<(a[212]|0)>>>0){ke();return 0}else{a[F+16>>2]=f;a[f+24>>2]=F;break}}}while(0);f=a[N+20>>2]|0;if((f|0)==0){break}if(f>>>0<(a[212]|0)>>>0){ke();return 0}else{a[F+20>>2]=f;a[f+24>>2]=F;break}}}while(0);do{if(B>>>0<16){n=B+o|0;a[N+4>>2]=n|3;f=v+(n+4)|0;a[f>>2]=a[f>>2]|1}else{a[N+4>>2]=o|3;a[v+(o|4)>>2]=B|1;a[v+(B+o)>>2]=B;f=B>>>3;if(B>>>0<256){n=f<<1;d=872+(n<<2)|0;m=a[208]|0;u=1<<f;do{if((m&u|0)==0){a[208]=m|u;H=d;U=872+(n+2<<2)|0}else{f=872+(n+2<<2)|0;r=a[f>>2]|0;if(r>>>0>=(a[212]|0)>>>0){H=r;U=f;break}ke();return 0}}while(0);a[U>>2]=c;a[H+12>>2]=c;a[v+(o+8)>>2]=H;a[v+(o+12)>>2]=d;break}n=b;u=B>>>8;do{if((u|0)==0){D=0}else{if(B>>>0>16777215){D=31;break}m=(u+1048320|0)>>>16&8;f=u<<m;r=(f+520192|0)>>>16&4;E=f<<r;f=(E+245760|0)>>>16&2;l=14-(r|m|f)+(E<<f>>>15)|0;D=B>>>((l+7|0)>>>0)&1|l<<1}}while(0);u=1136+(D<<2)|0;a[v+(o+28)>>2]=D;a[v+(o+20)>>2]=0;a[v+(o+16)>>2]=0;d=a[209]|0;l=1<<D;if((d&l|0)==0){a[209]=d|l;a[u>>2]=n;a[v+(o+24)>>2]=u;a[v+(o+12)>>2]=n;a[v+(o+8)>>2]=n;break}if((D|0)==31){q=0}else{q=25-(D>>>1)|0}l=B<<q;d=a[u>>2]|0;while(1){if((a[d+4>>2]&-8|0)==(B|0)){break}Y=d+16+(l>>>31<<2)|0;u=a[Y>>2]|0;if((u|0)==0){K=262;break}else{l=l<<1;d=u}}if((K|0)==262){if(Y>>>0<(a[212]|0)>>>0){ke();return 0}else{a[Y>>2]=n;a[v+(o+24)>>2]=d;a[v+(o+12)>>2]=n;a[v+(o+8)>>2]=n;break}}l=d+8|0;u=a[l>>2]|0;f=a[212]|0;if(d>>>0<f>>>0){ke();return 0}if(u>>>0<f>>>0){ke();return 0}else{a[u+12>>2]=n;a[l>>2]=n;a[v+(o+8)>>2]=u;a[v+(o+12)>>2]=d;a[v+(o+24)>>2]=0;break}}}while(0);v=N+8|0;if((v|0)==0){p=o;break}else{h=v}return h|0}}while(0);N=a[210]|0;if(p>>>0<=N>>>0){Y=N-p|0;B=a[213]|0;if(Y>>>0>15){q=B;a[213]=q+p;a[210]=Y;a[q+(p+4)>>2]=Y|1;a[q+N>>2]=Y;a[B+4>>2]=p|3}else{a[210]=0;a[213]=0;a[B+4>>2]=N|3;Y=B+(N+4)|0;a[Y>>2]=a[Y>>2]|1}h=B+8|0;return h|0}B=a[211]|0;if(p>>>0<B>>>0){Y=B-p|0;a[211]=Y;B=a[214]|0;N=B;a[214]=N+p;a[N+(p+4)>>2]=Y|1;a[B+4>>2]=p|3;h=B+8|0;return h|0}do{if((a[200]|0)==0){B=we(8)|0;if((B-1&B|0)==0){a[202]=B;a[201]=B;a[203]=-1;a[204]=2097152;a[205]=0;a[319]=0;a[200]=(tt(0)|0)&-16^1431655768;break}else{ke();return 0}}}while(0);B=p+48|0;Y=a[202]|0;N=p+47|0;q=Y+N|0;D=-Y|0;Y=q&D;if(Y>>>0<=p>>>0){h=0;return h|0}H=a[318]|0;do{if((H|0)!=0){U=a[316]|0;F=U+Y|0;if(F>>>0<=U>>>0|F>>>0>H>>>0){h=0}else{break}return h|0}}while(0);e:do{if((a[319]&4|0)==0){H=a[214]|0;t:do{if((H|0)==0){K=292}else{F=H;U=1280;while(1){V=U|0;L=a[V>>2]|0;if(L>>>0<=F>>>0){W=U+4|0;if((L+(a[W>>2]|0)|0)>>>0>F>>>0){break}}L=a[U+8>>2]|0;if((L|0)==0){K=292;break t}else{U=L}}if((U|0)==0){K=292;break}F=q-(a[211]|0)&D;if(F>>>0>=2147483647){X=0;break}d=Ge(F|0)|0;n=(d|0)==((a[V>>2]|0)+(a[W>>2]|0)|0);Z=n?d:-1;G=n?F:0;Q=d;$=F;K=301}}while(0);do{if((K|0)==292){H=Ge(0)|0;if((H|0)==-1){X=0;break}o=H;F=a[201]|0;d=F-1|0;if((d&o|0)==0){J=Y}else{J=Y-o+(d+o&-F)|0}F=a[316]|0;o=F+J|0;if(!(J>>>0>p>>>0&J>>>0<2147483647)){X=0;break}d=a[318]|0;if((d|0)!=0){if(o>>>0<=F>>>0|o>>>0>d>>>0){X=0;break}}d=Ge(J|0)|0;o=(d|0)==(H|0);Z=o?H:-1;G=o?J:0;Q=d;$=J;K=301}}while(0);t:do{if((K|0)==301){d=-$|0;if((Z|0)!=-1){ee=G;te=Z;K=312;break e}do{if((Q|0)!=-1&$>>>0<2147483647&$>>>0<B>>>0){o=a[202]|0;H=N-$+o&-o;if(H>>>0>=2147483647){re=$;break}if((Ge(H|0)|0)==-1){Ge(d|0)|0;X=G;break t}else{re=H+$|0;break}}else{re=$}}while(0);if((Q|0)==-1){X=G}else{ee=re;te=Q;K=312;break e}}}while(0);a[319]=a[319]|4;ne=X;K=309}else{ne=0;K=309}}while(0);do{if((K|0)==309){if(Y>>>0>=2147483647){break}X=Ge(Y|0)|0;Q=Ge(0)|0;if(!((Q|0)!=-1&(X|0)!=-1&X>>>0<Q>>>0)){break}re=Q-X|0;Q=re>>>0>(p+40|0)>>>0;G=Q?X:-1;if((G|0)!=-1){ee=Q?re:ne;te=G;K=312}}}while(0);do{if((K|0)==312){ne=(a[316]|0)+ee|0;a[316]=ne;if(ne>>>0>(a[317]|0)>>>0){a[317]=ne}ne=a[214]|0;e:do{if((ne|0)==0){Y=a[212]|0;if((Y|0)==0|te>>>0<Y>>>0){a[212]=te}a[320]=te;a[321]=ee;a[323]=0;a[217]=a[200];a[216]=-1;Y=0;do{G=Y<<1;re=872+(G<<2)|0;a[872+(G+3<<2)>>2]=re;a[872+(G+2<<2)>>2]=re;Y=Y+1|0}while(Y>>>0<32);Y=te+8|0;if((Y&7|0)==0){ie=0}else{ie=-Y&7}Y=ee-40-ie|0;a[214]=te+ie;a[211]=Y;a[te+(ie+4)>>2]=Y|1;a[te+(ee-36)>>2]=40;a[215]=a[204]}else{Y=1280;while(1){ae=a[Y>>2]|0;oe=Y+4|0;se=a[oe>>2]|0;if((te|0)==(ae+se|0)){K=324;break}re=a[Y+8>>2]|0;if((re|0)==0){break}else{Y=re}}do{if((K|0)==324){if((a[Y+12>>2]&8|0)!=0){break}re=ne;if(!(re>>>0>=ae>>>0&re>>>0<te>>>0)){break}a[oe>>2]=se+ee;re=a[214]|0;G=(a[211]|0)+ee|0;Q=re;X=re+8|0;if((X&7|0)==0){fe=0}else{fe=-X&7}X=G-fe|0;a[214]=Q+fe;a[211]=X;a[Q+(fe+4)>>2]=X|1;a[Q+(G+4)>>2]=40;a[215]=a[204];break e}}while(0);if(te>>>0<(a[212]|0)>>>0){a[212]=te}Y=te+ee|0;G=1280;while(1){ue=G|0;if((a[ue>>2]|0)==(Y|0)){K=334;break}Q=a[G+8>>2]|0;if((Q|0)==0){break}else{G=Q}}do{if((K|0)==334){if((a[G+12>>2]&8|0)!=0){break}a[ue>>2]=te;Y=G+4|0;a[Y>>2]=(a[Y>>2]|0)+ee;Y=te+8|0;if((Y&7|0)==0){ce=0}else{ce=-Y&7}Y=te+(ee+8)|0;if((Y&7|0)==0){le=0}else{le=-Y&7}Y=te+(le+ee)|0;Q=Y;X=ce+p|0;re=te+X|0;$=re;N=Y-(te+ce)-p|0;a[te+(ce+4)>>2]=p|3;do{if((Q|0)==(a[214]|0)){B=(a[211]|0)+N|0;a[211]=B;a[214]=$;a[te+(X+4)>>2]=B|1}else{if((Q|0)==(a[213]|0)){B=(a[210]|0)+N|0;a[210]=B;a[213]=$;a[te+(X+4)>>2]=B|1;a[te+(B+X)>>2]=B;break}B=ee+4|0;Z=a[te+(B+le)>>2]|0;if((Z&3|0)==1){J=Z&-8;W=Z>>>3;t:do{if(Z>>>0<256){V=a[te+((le|8)+ee)>>2]|0;D=a[te+(ee+12+le)>>2]|0;q=872+(W<<1<<2)|0;do{if((V|0)!=(q|0)){if(V>>>0<(a[212]|0)>>>0){ke();return 0}if((a[V+12>>2]|0)==(Q|0)){break}ke();return 0}}while(0);if((D|0)==(V|0)){a[208]=a[208]&~(1<<W);break}do{if((D|0)==(q|0)){de=D+8|0}else{if(D>>>0<(a[212]|0)>>>0){ke();return 0}d=D+8|0;if((a[d>>2]|0)==(Q|0)){de=d;break}ke();return 0}}while(0);a[V+12>>2]=D;a[de>>2]=V}else{q=Y;d=a[te+((le|24)+ee)>>2]|0;U=a[te+(ee+12+le)>>2]|0;do{if((U|0)==(q|0)){H=le|16;o=te+(B+H)|0;F=a[o>>2]|0;if((F|0)==0){n=te+(H+ee)|0;H=a[n>>2]|0;if((H|0)==0){he=0;break}else{pe=H;be=n}}else{pe=F;be=o}while(1){o=pe+20|0;F=a[o>>2]|0;if((F|0)!=0){pe=F;be=o;continue}o=pe+16|0;F=a[o>>2]|0;if((F|0)==0){break}else{pe=F;be=o}}if(be>>>0<(a[212]|0)>>>0){ke();return 0}else{a[be>>2]=0;he=pe;break}}else{o=a[te+((le|8)+ee)>>2]|0;if(o>>>0<(a[212]|0)>>>0){ke();return 0}F=o+12|0;if((a[F>>2]|0)!=(q|0)){ke();return 0}n=U+8|0;if((a[n>>2]|0)==(q|0)){a[F>>2]=U;a[n>>2]=o;he=U;break}else{ke();return 0}}}while(0);if((d|0)==0){break}U=te+(ee+28+le)|0;V=1136+(a[U>>2]<<2)|0;do{if((q|0)==(a[V>>2]|0)){a[V>>2]=he;if((he|0)!=0){break}a[209]=a[209]&~(1<<a[U>>2]);break t}else{if(d>>>0<(a[212]|0)>>>0){ke();return 0}D=d+16|0;if((a[D>>2]|0)==(q|0)){a[D>>2]=he}else{a[d+20>>2]=he}if((he|0)==0){break t}}}while(0);if(he>>>0<(a[212]|0)>>>0){ke();return 0}a[he+24>>2]=d;q=le|16;U=a[te+(q+ee)>>2]|0;do{if((U|0)!=0){if(U>>>0<(a[212]|0)>>>0){ke();return 0}else{a[he+16>>2]=U;a[U+24>>2]=he;break}}}while(0);U=a[te+(B+q)>>2]|0;if((U|0)==0){break}if(U>>>0<(a[212]|0)>>>0){ke();return 0}else{a[he+20>>2]=U;a[U+24>>2]=he;break}}}while(0);ve=te+((J|le)+ee)|0;me=J+N|0}else{ve=Q;me=N}B=ve+4|0;a[B>>2]=a[B>>2]&-2;a[te+(X+4)>>2]=me|1;a[te+(me+X)>>2]=me;B=me>>>3;if(me>>>0<256){W=B<<1;Z=872+(W<<2)|0;U=a[208]|0;d=1<<B;do{if((U&d|0)==0){a[208]=U|d;ge=Z;ye=872+(W+2<<2)|0}else{B=872+(W+2<<2)|0;V=a[B>>2]|0;if(V>>>0>=(a[212]|0)>>>0){ge=V;ye=B;break}ke();return 0}}while(0);a[ye>>2]=$;a[ge+12>>2]=$;a[te+(X+8)>>2]=ge;a[te+(X+12)>>2]=Z;break}W=re;d=me>>>8;do{if((d|0)==0){_e=0}else{if(me>>>0>16777215){_e=31;break}U=(d+1048320|0)>>>16&8;J=d<<U;B=(J+520192|0)>>>16&4;V=J<<B;J=(V+245760|0)>>>16&2;D=14-(B|U|J)+(V<<J>>>15)|0;_e=me>>>((D+7|0)>>>0)&1|D<<1}}while(0);d=1136+(_e<<2)|0;a[te+(X+28)>>2]=_e;a[te+(X+20)>>2]=0;a[te+(X+16)>>2]=0;Z=a[209]|0;D=1<<_e;if((Z&D|0)==0){a[209]=Z|D;a[d>>2]=W;a[te+(X+24)>>2]=d;a[te+(X+12)>>2]=W;a[te+(X+8)>>2]=W;break}if((_e|0)==31){Se=0}else{Se=25-(_e>>>1)|0}D=me<<Se;Z=a[d>>2]|0;while(1){if((a[Z+4>>2]&-8|0)==(me|0)){break}xe=Z+16+(D>>>31<<2)|0;d=a[xe>>2]|0;if((d|0)==0){K=407;break}else{D=D<<1;Z=d}}if((K|0)==407){if(xe>>>0<(a[212]|0)>>>0){ke();return 0}else{a[xe>>2]=W;a[te+(X+24)>>2]=Z;a[te+(X+12)>>2]=W;a[te+(X+8)>>2]=W;break}}D=Z+8|0;d=a[D>>2]|0;J=a[212]|0;if(Z>>>0<J>>>0){ke();return 0}if(d>>>0<J>>>0){ke();return 0}else{a[d+12>>2]=W;a[D>>2]=W;a[te+(X+8)>>2]=d;a[te+(X+12)>>2]=Z;a[te+(X+24)>>2]=0;break}}}while(0);h=te+(ce|8)|0;return h|0}}while(0);G=ne;X=1280;while(1){Ae=a[X>>2]|0;if(Ae>>>0<=G>>>0){Me=a[X+4>>2]|0;Ee=Ae+Me|0;if(Ee>>>0>G>>>0){break}}X=a[X+8>>2]|0}X=Ae+(Me-39)|0;if((X&7|0)==0){Te=0}else{Te=-X&7}X=Ae+(Me-47+Te)|0;re=X>>>0<(ne+16|0)>>>0?G:X;X=re+8|0;$=te+8|0;if(($&7|0)==0){Ie=0}else{Ie=-$&7}$=ee-40-Ie|0;a[214]=te+Ie;a[211]=$;a[te+(Ie+4)>>2]=$|1;a[te+(ee-36)>>2]=40;a[215]=a[204];a[re+4>>2]=27;a[X>>2]=a[320];a[X+4>>2]=a[1284>>2];a[X+8>>2]=a[1288>>2];a[X+12>>2]=a[1292>>2];a[320]=te;a[321]=ee;a[323]=0;a[322]=X;X=re+28|0;a[X>>2]=7;if((re+32|0)>>>0<Ee>>>0){$=X;while(1){X=$+4|0;a[X>>2]=7;if(($+8|0)>>>0<Ee>>>0){$=X}else{break}}}if((re|0)==(G|0)){break}$=re-ne|0;X=G+($+4)|0;a[X>>2]=a[X>>2]&-2;a[ne+4>>2]=$|1;a[G+$>>2]=$;X=$>>>3;if($>>>0<256){N=X<<1;Q=872+(N<<2)|0;Y=a[208]|0;d=1<<X;do{if((Y&d|0)==0){a[208]=Y|d;Pe=Q;Oe=872+(N+2<<2)|0}else{X=872+(N+2<<2)|0;D=a[X>>2]|0;if(D>>>0>=(a[212]|0)>>>0){Pe=D;Oe=X;break}ke();return 0}}while(0);a[Oe>>2]=ne;a[Pe+12>>2]=ne;a[ne+8>>2]=Pe;a[ne+12>>2]=Q;break}N=ne;d=$>>>8;do{if((d|0)==0){Re=0}else{if($>>>0>16777215){Re=31;break}Y=(d+1048320|0)>>>16&8;G=d<<Y;re=(G+520192|0)>>>16&4;X=G<<re;G=(X+245760|0)>>>16&2;D=14-(re|Y|G)+(X<<G>>>15)|0;Re=$>>>((D+7|0)>>>0)&1|D<<1}}while(0);d=1136+(Re<<2)|0;a[ne+28>>2]=Re;a[ne+20>>2]=0;a[ne+16>>2]=0;Q=a[209]|0;D=1<<Re;if((Q&D|0)==0){a[209]=Q|D;a[d>>2]=N;a[ne+24>>2]=d;a[ne+12>>2]=ne;a[ne+8>>2]=ne;break}if((Re|0)==31){Ce=0}else{Ce=25-(Re>>>1)|0}D=$<<Ce;Q=a[d>>2]|0;while(1){if((a[Q+4>>2]&-8|0)==($|0)){break}je=Q+16+(D>>>31<<2)|0;d=a[je>>2]|0;if((d|0)==0){K=442;break}else{D=D<<1;Q=d}}if((K|0)==442){if(je>>>0<(a[212]|0)>>>0){ke();return 0}else{a[je>>2]=N;a[ne+24>>2]=Q;a[ne+12>>2]=ne;a[ne+8>>2]=ne;break}}D=Q+8|0;$=a[D>>2]|0;d=a[212]|0;if(Q>>>0<d>>>0){ke();return 0}if($>>>0<d>>>0){ke();return 0}else{a[$+12>>2]=N;a[D>>2]=N;a[ne+8>>2]=$;a[ne+12>>2]=Q;a[ne+24>>2]=0;break}}}while(0);ne=a[211]|0;if(ne>>>0<=p>>>0){break}$=ne-p|0;a[211]=$;ne=a[214]|0;D=ne;a[214]=D+p;a[D+(p+4)>>2]=$|1;a[ne+4>>2]=p|3;h=ne+8|0;return h|0}}while(0);a[($e()|0)>>2]=12;h=0;return h|0}function Kt(e){e=e|0;var t=0,r=0,n=0,i=0,o=0,s=0,f=0,u=0,c=0,l=0,d=0,h=0,p=0,b=0,v=0,m=0,g=0,y=0,w=0,_=0,S=0,k=0,x=0,A=0,M=0,E=0,T=0,I=0,P=0,O=0,R=0,C=0,j=0,B=0,N=0,F=0,L=0,z=0,H=0;if((e|0)==0){return}t=e-8|0;r=t;n=a[212]|0;if(t>>>0<n>>>0){ke()}i=a[e-4>>2]|0;o=i&3;if((o|0)==1){ke()}s=i&-8;f=e+(s-8)|0;u=f;e:do{if((i&1|0)==0){c=a[t>>2]|0;if((o|0)==0){return}l=-8-c|0;d=e+l|0;h=d;p=c+s|0;if(d>>>0<n>>>0){ke()}if((h|0)==(a[213]|0)){b=e+(s-4)|0;if((a[b>>2]&3|0)!=3){v=h;m=p;break}a[210]=p;a[b>>2]=a[b>>2]&-2;a[e+(l+4)>>2]=p|1;a[f>>2]=p;return}b=c>>>3;if(c>>>0<256){c=a[e+(l+8)>>2]|0;g=a[e+(l+12)>>2]|0;y=872+(b<<1<<2)|0;do{if((c|0)!=(y|0)){if(c>>>0<n>>>0){ke()}if((a[c+12>>2]|0)==(h|0)){break}ke()}}while(0);if((g|0)==(c|0)){a[208]=a[208]&~(1<<b);v=h;m=p;break}do{if((g|0)==(y|0)){w=g+8|0}else{if(g>>>0<n>>>0){ke()}_=g+8|0;if((a[_>>2]|0)==(h|0)){w=_;break}ke()}}while(0);a[c+12>>2]=g;a[w>>2]=c;v=h;m=p;break}y=d;b=a[e+(l+24)>>2]|0;_=a[e+(l+12)>>2]|0;do{if((_|0)==(y|0)){S=e+(l+20)|0;k=a[S>>2]|0;if((k|0)==0){x=e+(l+16)|0;A=a[x>>2]|0;if((A|0)==0){M=0;break}else{E=A;T=x}}else{E=k;T=S}while(1){S=E+20|0;k=a[S>>2]|0;if((k|0)!=0){E=k;T=S;continue}S=E+16|0;k=a[S>>2]|0;if((k|0)==0){break}else{E=k;T=S}}if(T>>>0<n>>>0){ke()}else{a[T>>2]=0;M=E;break}}else{S=a[e+(l+8)>>2]|0;if(S>>>0<n>>>0){ke()}k=S+12|0;if((a[k>>2]|0)!=(y|0)){ke()}x=_+8|0;if((a[x>>2]|0)==(y|0)){a[k>>2]=_;a[x>>2]=S;M=_;break}else{ke()}}}while(0);if((b|0)==0){v=h;m=p;break}_=e+(l+28)|0;d=1136+(a[_>>2]<<2)|0;do{if((y|0)==(a[d>>2]|0)){a[d>>2]=M;if((M|0)!=0){break}a[209]=a[209]&~(1<<a[_>>2]);v=h;m=p;break e}else{if(b>>>0<(a[212]|0)>>>0){ke()}c=b+16|0;if((a[c>>2]|0)==(y|0)){a[c>>2]=M}else{a[b+20>>2]=M}if((M|0)==0){v=h;m=p;break e}}}while(0);if(M>>>0<(a[212]|0)>>>0){ke()}a[M+24>>2]=b;y=a[e+(l+16)>>2]|0;do{if((y|0)!=0){if(y>>>0<(a[212]|0)>>>0){ke()}else{a[M+16>>2]=y;a[y+24>>2]=M;break}}}while(0);y=a[e+(l+20)>>2]|0;if((y|0)==0){v=h;m=p;break}if(y>>>0<(a[212]|0)>>>0){ke()}else{a[M+20>>2]=y;a[y+24>>2]=M;v=h;m=p;break}}else{v=r;m=s}}while(0);r=v;if(r>>>0>=f>>>0){ke()}M=e+(s-4)|0;n=a[M>>2]|0;if((n&1|0)==0){ke()}do{if((n&2|0)==0){if((u|0)==(a[214]|0)){E=(a[211]|0)+m|0;a[211]=E;a[214]=v;a[v+4>>2]=E|1;if((v|0)==(a[213]|0)){a[213]=0;a[210]=0}if(E>>>0<=(a[215]|0)>>>0){return}Qt(0)|0;return}if((u|0)==(a[213]|0)){E=(a[210]|0)+m|0;a[210]=E;a[213]=v;a[v+4>>2]=E|1;a[r+E>>2]=E;return}E=(n&-8)+m|0;T=n>>>3;e:do{if(n>>>0<256){w=a[e+s>>2]|0;o=a[e+(s|4)>>2]|0;t=872+(T<<1<<2)|0;do{if((w|0)!=(t|0)){if(w>>>0<(a[212]|0)>>>0){ke()}if((a[w+12>>2]|0)==(u|0)){break}ke()}}while(0);if((o|0)==(w|0)){a[208]=a[208]&~(1<<T);break}do{if((o|0)==(t|0)){I=o+8|0}else{if(o>>>0<(a[212]|0)>>>0){ke()}i=o+8|0;if((a[i>>2]|0)==(u|0)){I=i;break}ke()}}while(0);a[w+12>>2]=o;a[I>>2]=w}else{t=f;i=a[e+(s+16)>>2]|0;y=a[e+(s|4)>>2]|0;do{if((y|0)==(t|0)){b=e+(s+12)|0;_=a[b>>2]|0;if((_|0)==0){d=e+(s+8)|0;c=a[d>>2]|0;if((c|0)==0){P=0;break}else{O=c;R=d}}else{O=_;R=b}while(1){b=O+20|0;_=a[b>>2]|0;if((_|0)!=0){O=_;R=b;continue}b=O+16|0;_=a[b>>2]|0;if((_|0)==0){break}else{O=_;R=b}}if(R>>>0<(a[212]|0)>>>0){ke()}else{a[R>>2]=0;P=O;break}}else{b=a[e+s>>2]|0;if(b>>>0<(a[212]|0)>>>0){ke()}_=b+12|0;if((a[_>>2]|0)!=(t|0)){ke()}d=y+8|0;if((a[d>>2]|0)==(t|0)){a[_>>2]=y;a[d>>2]=b;P=y;break}else{ke()}}}while(0);if((i|0)==0){break}y=e+(s+20)|0;w=1136+(a[y>>2]<<2)|0;do{if((t|0)==(a[w>>2]|0)){a[w>>2]=P;if((P|0)!=0){break}a[209]=a[209]&~(1<<a[y>>2]);break e}else{if(i>>>0<(a[212]|0)>>>0){ke()}o=i+16|0;if((a[o>>2]|0)==(t|0)){a[o>>2]=P}else{a[i+20>>2]=P}if((P|0)==0){break e}}}while(0);if(P>>>0<(a[212]|0)>>>0){ke()}a[P+24>>2]=i;t=a[e+(s+8)>>2]|0;do{if((t|0)!=0){if(t>>>0<(a[212]|0)>>>0){ke()}else{a[P+16>>2]=t;a[t+24>>2]=P;break}}}while(0);t=a[e+(s+12)>>2]|0;if((t|0)==0){break}if(t>>>0<(a[212]|0)>>>0){ke()}else{a[P+20>>2]=t;a[t+24>>2]=P;break}}}while(0);a[v+4>>2]=E|1;a[r+E>>2]=E;if((v|0)!=(a[213]|0)){C=E;break}a[210]=E;return}else{a[M>>2]=n&-2;a[v+4>>2]=m|1;a[r+m>>2]=m;C=m}}while(0);m=C>>>3;if(C>>>0<256){r=m<<1;n=872+(r<<2)|0;M=a[208]|0;P=1<<m;do{if((M&P|0)==0){a[208]=M|P;j=n;B=872+(r+2<<2)|0}else{m=872+(r+2<<2)|0;s=a[m>>2]|0;if(s>>>0>=(a[212]|0)>>>0){j=s;B=m;break}ke()}}while(0);a[B>>2]=v;a[j+12>>2]=v;a[v+8>>2]=j;a[v+12>>2]=n;return}n=v;j=C>>>8;do{if((j|0)==0){N=0}else{if(C>>>0>16777215){N=31;break}B=(j+1048320|0)>>>16&8;r=j<<B;P=(r+520192|0)>>>16&4;M=r<<P;r=(M+245760|0)>>>16&2;m=14-(P|B|r)+(M<<r>>>15)|0;N=C>>>((m+7|0)>>>0)&1|m<<1}}while(0);j=1136+(N<<2)|0;a[v+28>>2]=N;a[v+20>>2]=0;a[v+16>>2]=0;m=a[209]|0;r=1<<N;do{if((m&r|0)==0){a[209]=m|r;a[j>>2]=n;a[v+24>>2]=j;a[v+12>>2]=v;a[v+8>>2]=v}else{if((N|0)==31){F=0}else{F=25-(N>>>1)|0}M=C<<F;B=a[j>>2]|0;while(1){if((a[B+4>>2]&-8|0)==(C|0)){break}L=B+16+(M>>>31<<2)|0;P=a[L>>2]|0;if((P|0)==0){z=621;break}else{M=M<<1;B=P}}if((z|0)==621){if(L>>>0<(a[212]|0)>>>0){ke()}else{a[L>>2]=n;a[v+24>>2]=B;a[v+12>>2]=v;a[v+8>>2]=v;break}}M=B+8|0;E=a[M>>2]|0;P=a[212]|0;if(B>>>0<P>>>0){ke()}if(E>>>0<P>>>0){ke()}else{a[E+12>>2]=n;a[M>>2]=n;a[v+8>>2]=E;a[v+12>>2]=B;a[v+24>>2]=0;break}}}while(0);v=(a[216]|0)-1|0;a[216]=v;if((v|0)==0){H=1288}else{return}while(1){v=a[H>>2]|0;if((v|0)==0){break}else{H=v+8|0}}a[216]=-1;return}function Vt(e,t){e=e|0;t=t|0;var r=0,n=0;do{if((e|0)==0){r=0}else{n=oe(t,e)|0;if((t|e)>>>0<=65535){r=n;break}r=((n>>>0)/(e>>>0)|0|0)==(t|0)?n:-1}}while(0);t=Yt(r)|0;if((t|0)==0){return t|0}if((a[t-4>>2]&3|0)==0){return t|0}en(t|0,0,r|0);return t|0}function Wt(e,t){e=e|0;t=t|0;var r=0,n=0,i=0,o=0;if((e|0)==0){r=Yt(t)|0;return r|0}if(t>>>0>4294967231){a[($e()|0)>>2]=12;r=0;return r|0}if(t>>>0<11){n=16}else{n=t+11&-8}i=$t(e-8|0,n)|0;if((i|0)!=0){r=i+8|0;return r|0}i=Yt(t)|0;if((i|0)==0){r=0;return r|0}n=a[e-4>>2]|0;o=(n&-8)-((n&3|0)==0?8:4)|0;n=o>>>0<t>>>0?o:t;Jr(i|0,e|0,n)|0;Kt(e);r=i;return r|0}function Xt(e,t){e=e|0;t=t|0;var r=0;if((e|0)==0){return 0}if(t>>>0>4294967231){a[($e()|0)>>2]=12;return 0}if(t>>>0<11){r=16}else{r=t+11&-8}t=e-8|0;return(($t(t,r)|0)==(t|0)?e:0)|0}function Zt(e,t){e=e|0;t=t|0;var r=0;if(e>>>0<9){r=Yt(t)|0;return r|0}else{r=Gt(e,t)|0;return r|0}return 0}function Gt(e,t){e=e|0;t=t|0;var r=0,n=0,i=0,o=0,s=0,f=0,u=0,c=0,l=0,d=0,h=0,p=0;r=e>>>0<16?16:e;if((r-1&r|0)==0){n=r}else{e=16;while(1){if(e>>>0<r>>>0){e=e<<1}else{n=e;break}}}if((-64-n|0)>>>0<=t>>>0){a[($e()|0)>>2]=12;i=0;return i|0}if(t>>>0<11){o=16}else{o=t+11&-8}t=Yt(n+12+o|0)|0;if((t|0)==0){i=0;return i|0}e=t-8|0;r=e;s=n-1|0;do{if((t&s|0)==0){f=r}else{u=t+s&-n;c=u-8|0;l=e;if((c-l|0)>>>0>15){d=c}else{d=u+(n-8)|0}u=d;c=d-l|0;l=t-4|0;h=a[l>>2]|0;p=(h&-8)-c|0;if((h&3|0)==0){a[d>>2]=(a[e>>2]|0)+c;a[d+4>>2]=p;f=u;break}else{h=d+4|0;a[h>>2]=p|a[h>>2]&1|2;h=d+(p+4)|0;a[h>>2]=a[h>>2]|1;a[l>>2]=c|a[l>>2]&1|2;l=t+(c-4)|0;a[l>>2]=a[l>>2]|1;vr(r,c);f=u;break}}}while(0);r=f+4|0;t=a[r>>2]|0;do{if((t&3|0)!=0){d=t&-8;if(d>>>0<=(o+16|0)>>>0){break}e=d-o|0;n=f;a[r>>2]=o|t&1|2;a[n+(o|4)>>2]=e|3;s=n+(d|4)|0;a[s>>2]=a[s>>2]|1;vr(n+o|0,e)}}while(0);i=f+8|0;return i|0}function Qt(e){e=e|0;var t=0,r=0,n=0,i=0,o=0,s=0,f=0,u=0,c=0,l=0,d=0,h=0,p=0;do{if((a[200]|0)==0){t=we(8)|0;if((t-1&t|0)==0){a[202]=t;a[201]=t;a[203]=-1;a[204]=2097152;a[205]=0;a[319]=0;a[200]=(tt(0)|0)&-16^1431655768;break}else{ke();return 0}}}while(0);if(e>>>0>=4294967232){r=0;return r|0}t=a[214]|0;if((t|0)==0){r=0;return r|0}n=a[211]|0;do{if(n>>>0>(e+40|0)>>>0){i=a[202]|0;o=oe((((-40-e-1+n+i|0)>>>0)/(i>>>0)|0)-1|0,i)|0;s=t;f=1280;while(1){u=a[f>>2]|0;if(u>>>0<=s>>>0){if((u+(a[f+4>>2]|0)|0)>>>0>s>>>0){c=f;break}}u=a[f+8>>2]|0;if((u|0)==0){c=0;break}else{f=u}}if((a[c+12>>2]&8|0)!=0){break}f=Ge(0)|0;s=c+4|0;if((f|0)!=((a[c>>2]|0)+(a[s>>2]|0)|0)){break}u=Ge(-(o>>>0>2147483646?-2147483648-i|0:o)|0)|0;l=Ge(0)|0;if(!((u|0)!=-1&l>>>0<f>>>0)){break}u=f-l|0;if((f|0)==(l|0)){break}a[s>>2]=(a[s>>2]|0)-u;a[316]=(a[316]|0)-u;s=a[214]|0;d=(a[211]|0)-u|0;u=s;h=s+8|0;if((h&7|0)==0){p=0}else{p=-h&7}h=d-p|0;a[214]=u+p;a[211]=h;a[u+(p+4)>>2]=h|1;a[u+(d+4)>>2]=40;a[215]=a[204];r=(f|0)!=(l|0)|0;return r|0}}while(0);if((a[211]|0)>>>0<=(a[215]|0)>>>0){r=0;return r|0}a[215]=-1;r=0;return r|0}function $t(e,t){e=e|0;t=t|0;var r=0,n=0,i=0,o=0,s=0,f=0,u=0,c=0,l=0,d=0,h=0,p=0,b=0,v=0,m=0,g=0,y=0,w=0,_=0,S=0,k=0,x=0,A=0,M=0;r=e+4|0;n=a[r>>2]|0;i=n&-8;o=e;s=o+i|0;f=s;u=a[212]|0;if(o>>>0<u>>>0){ke();return 0}c=n&3;if(!((c|0)!=1&o>>>0<s>>>0)){ke();return 0}l=o+(i|4)|0;d=a[l>>2]|0;if((d&1|0)==0){ke();return 0}if((c|0)==0){if(t>>>0<256){h=0;return h|0}do{if(i>>>0>=(t+4|0)>>>0){if((i-t|0)>>>0>a[202]<<1>>>0){break}else{h=e}return h|0}}while(0);h=0;return h|0}if(i>>>0>=t>>>0){c=i-t|0;if(c>>>0<=15){h=e;return h|0}a[r>>2]=n&1|t|2;a[o+(t+4)>>2]=c|3;a[l>>2]=a[l>>2]|1;vr(o+t|0,c);h=e;return h|0}if((f|0)==(a[214]|0)){c=(a[211]|0)+i|0;if(c>>>0<=t>>>0){h=0;return h|0}l=c-t|0;a[r>>2]=n&1|t|2;a[o+(t+4)>>2]=l|1;a[214]=o+t;a[211]=l;h=e;return h|0}if((f|0)==(a[213]|0)){l=(a[210]|0)+i|0;if(l>>>0<t>>>0){h=0;return h|0}c=l-t|0;if(c>>>0>15){a[r>>2]=n&1|t|2;a[o+(t+4)>>2]=c|1;a[o+l>>2]=c;p=o+(l+4)|0;a[p>>2]=a[p>>2]&-2;b=o+t|0;v=c}else{a[r>>2]=n&1|l|2;n=o+(l+4)|0;a[n>>2]=a[n>>2]|1;b=0;v=0}a[210]=v;a[213]=b;h=e;return h|0}if((d&2|0)!=0){h=0;return h|0}b=(d&-8)+i|0;if(b>>>0<t>>>0){h=0;return h|0}v=b-t|0;n=d>>>3;e:do{if(d>>>0<256){l=a[o+(i+8)>>2]|0;c=a[o+(i+12)>>2]|0;p=872+(n<<1<<2)|0;do{if((l|0)!=(p|0)){if(l>>>0<u>>>0){ke();return 0}if((a[l+12>>2]|0)==(f|0)){break}ke();return 0}}while(0);if((c|0)==(l|0)){a[208]=a[208]&~(1<<n);break}do{if((c|0)==(p|0)){m=c+8|0}else{if(c>>>0<u>>>0){ke();return 0}g=c+8|0;if((a[g>>2]|0)==(f|0)){m=g;break}ke();return 0}}while(0);a[l+12>>2]=c;a[m>>2]=l}else{p=s;g=a[o+(i+24)>>2]|0;y=a[o+(i+12)>>2]|0;do{if((y|0)==(p|0)){w=o+(i+20)|0;_=a[w>>2]|0;if((_|0)==0){S=o+(i+16)|0;k=a[S>>2]|0;if((k|0)==0){x=0;break}else{A=k;M=S}}else{A=_;M=w}while(1){w=A+20|0;_=a[w>>2]|0;if((_|0)!=0){A=_;M=w;continue}w=A+16|0;_=a[w>>2]|0;if((_|0)==0){break}else{A=_;M=w}}if(M>>>0<u>>>0){ke();return 0}else{a[M>>2]=0;x=A;break}}else{w=a[o+(i+8)>>2]|0;if(w>>>0<u>>>0){ke();return 0}_=w+12|0;if((a[_>>2]|0)!=(p|0)){ke();return 0}S=y+8|0;if((a[S>>2]|0)==(p|0)){a[_>>2]=y;a[S>>2]=w;x=y;break}else{ke();return 0}}}while(0);if((g|0)==0){break}y=o+(i+28)|0;l=1136+(a[y>>2]<<2)|0;do{if((p|0)==(a[l>>2]|0)){a[l>>2]=x;if((x|0)!=0){break}a[209]=a[209]&~(1<<a[y>>2]);break e}else{if(g>>>0<(a[212]|0)>>>0){ke();return 0}c=g+16|0;if((a[c>>2]|0)==(p|0)){a[c>>2]=x}else{a[g+20>>2]=x}if((x|0)==0){break e}}}while(0);if(x>>>0<(a[212]|0)>>>0){ke();return 0}a[x+24>>2]=g;p=a[o+(i+16)>>2]|0;do{if((p|0)!=0){if(p>>>0<(a[212]|0)>>>0){ke();return 0}else{a[x+16>>2]=p;a[p+24>>2]=x;break}}}while(0);p=a[o+(i+20)>>2]|0;if((p|0)==0){break}if(p>>>0<(a[212]|0)>>>0){ke();return 0}else{a[x+20>>2]=p;a[p+24>>2]=x;break}}}while(0);if(v>>>0<16){a[r>>2]=b|a[r>>2]&1|2;x=o+(b|4)|0;a[x>>2]=a[x>>2]|1;h=e;return h|0}else{a[r>>2]=a[r>>2]&1|t|2;a[o+(t+4)>>2]=v|3;r=o+(b|4)|0;a[r>>2]=a[r>>2]|1;vr(o+t|0,v);h=e;return h|0}return 0}function Jt(){return a[316]|0}function er(){return a[317]|0}function tr(){var e=0;e=a[318]|0;return((e|0)==0?-1:e)|0}function rr(e){e=e|0;var t=0,r=0;if((e|0)==-1){t=0}else{r=a[202]|0;t=e-1+r&-r}a[318]=t;return t|0}function nr(e){e=e|0;var t=0,r=0,n=0;do{if((e|0)==0){t=0}else{r=a[e-4>>2]|0;n=r&3;if((n|0)==1){t=0;break}t=(r&-8)-((n|0)==0?8:4)|0}}while(0);return t|0}function ir(e,t,r){e=e|0;t=t|0;r=r|0;var n=0,i=0,o=0;do{if((t|0)==8){n=Yt(r)|0}else{i=t>>>2;if((t&3|0)!=0|(i|0)==0){o=22;return o|0}if((i+1073741823&i|0)!=0){o=22;return o|0}if((-64-t|0)>>>0<r>>>0){o=12;return o|0}else{n=Gt(t>>>0<16?16:t,r)|0;break}}}while(0);if((n|0)==0){o=12;return o|0}a[e>>2]=n;o=0;return o|0}function ar(e,t,r){e=e|0;t=t|0;r=r|0;var n=0,i=0;n=l;l=l+8|0;i=n|0;a[i>>2]=t;t=ur(e,i,3,r)|0;l=n;return t|0}function or(e,t,r){e=e|0;t=t|0;r=r|0;return ur(e,t,0,r)|0}function sr(e){e=e|0;var t=0,r=0,n=0;if((a[200]|0)!=0){t=a[201]|0;r=Zt(t,e)|0;return r|0}n=we(8)|0;if((n-1&n|0)!=0){ke();return 0}a[202]=n;a[201]=n;a[203]=-1;a[204]=2097152;a[205]=0;a[319]=0;a[200]=(tt(0)|0)&-16^1431655768;t=a[201]|0;r=Zt(t,e)|0;return r|0}function fr(e){e=e|0;var t=0;do{if((a[200]|0)==0){t=we(8)|0;if((t-1&t|0)==0){a[202]=t;a[201]=t;a[203]=-1;a[204]=2097152;a[205]=0;a[319]=0;a[200]=(tt(0)|0)&-16^1431655768;break}else{ke();return 0}}}while(0);t=a[201]|0;return Zt(t,e-1+t&-t)|0}function ur(e,t,r,n){e=e|0;t=t|0;r=r|0;n=n|0;var i=0,o=0,s=0,f=0,u=0,c=0,l=0,d=0,h=0,p=0,b=0,v=0,m=0,g=0,y=0,w=0,_=0,S=0,k=0;do{if((a[200]|0)==0){i=we(8)|0;if((i-1&i|0)==0){a[202]=i;a[201]=i;a[203]=-1;a[204]=2097152;a[205]=0;a[319]=0;a[200]=(tt(0)|0)&-16^1431655768;break}else{ke();return 0}}}while(0);i=(e|0)==0;do{if((n|0)==0){if(i){o=Yt(0)|0;return o|0}else{s=e<<2;if(s>>>0<11){f=0;u=16;break}f=0;u=s+11&-8;break}}else{if(i){o=n}else{f=n;u=0;break}return o|0}}while(0);do{if((r&1|0)==0){if(i){c=0;l=0;break}else{d=0;h=0}while(1){n=a[t+(h<<2)>>2]|0;if(n>>>0<11){p=16}else{p=n+11&-8}n=p+d|0;s=h+1|0;if((s|0)==(e|0)){c=0;l=n;break}else{d=n;h=s}}}else{s=a[t>>2]|0;if(s>>>0<11){b=16}else{b=s+11&-8}c=b;l=oe(b,e)|0}}while(0);b=Yt(u-4+l|0)|0;if((b|0)==0){o=0;return o|0}h=b-8|0;d=a[b-4>>2]&-8;if((r&2|0)!=0){en(b|0,0,-4-u+d|0)}if((f|0)==0){a[b+(l-4)>>2]=d-l|3;v=b+l|0;m=l}else{v=f;m=d}a[v>>2]=b;b=e-1|0;e:do{if((b|0)==0){g=h;y=m}else{if((c|0)==0){w=h;_=m;S=0}else{e=h;d=m;f=0;while(1){l=d-c|0;a[e+4>>2]=c|3;u=e+c|0;r=f+1|0;a[v+(r<<2)>>2]=e+(c+8);if((r|0)==(b|0)){g=u;y=l;break e}else{e=u;d=l;f=r}}}while(1){f=a[t+(S<<2)>>2]|0;if(f>>>0<11){k=16}else{k=f+11&-8}f=_-k|0;a[w+4>>2]=k|3;d=w+k|0;e=S+1|0;a[v+(e<<2)>>2]=w+(k+8);if((e|0)==(b|0)){g=d;y=f;break}else{w=d;_=f;S=e}}}}while(0);a[g+4>>2]=y|3;o=v;return o|0}function cr(e,t){e=e|0;t=t|0;var r=0,n=0,i=0,o=0,s=0,f=0,u=0,c=0,l=0,d=0,h=0,p=0,b=0;r=e+(t<<2)|0;e:do{if((t|0)!=0){n=e;t:while(1){i=a[n>>2]|0;r:do{if((i|0)==0){o=n+4|0}else{s=i-8|0;f=s;u=i-4|0;c=a[u>>2]&-8;a[n>>2]=0;if(s>>>0<(a[212]|0)>>>0){l=935;break t}s=a[u>>2]|0;if((s&3|0)==1){l=936;break t}d=n+4|0;h=s-8&-8;do{if((d|0)!=(r|0)){if((a[d>>2]|0)!=(i+(h+8)|0)){break}p=(a[i+(h|4)>>2]&-8)+c|0;a[u>>2]=s&1|p|2;b=i+(p-4)|0;a[b>>2]=a[b>>2]|1;a[d>>2]=i;o=d;break r}}while(0);vr(f,c);o=d}}while(0);if((o|0)==(r|0)){break e}else{n=o}}if((l|0)==935){ke();return 0}else if((l|0)==936){ke();return 0}}}while(0);if((a[211]|0)>>>0<=(a[215]|0)>>>0){return 0}Qt(0)|0;return 0}function lr(e){e=e|0;var t=0,r=0;if((a[200]|0)!=0){t=Qt(e)|0;return t|0}r=we(8)|0;if((r-1&r|0)!=0){ke();return 0}a[202]=r;a[201]=r;a[203]=-1;a[204]=2097152;a[205]=0;a[319]=0;a[200]=(tt(0)|0)&-16^1431655768;t=Qt(e)|0;return t|0}function dr(e){e=e|0;var t=0,r=0,n=0,i=0,o=0,s=0,f=0,u=0,c=0,l=0,d=0,h=0,p=0,b=0,v=0,m=0,g=0,y=0,w=0,_=0,S=0,k=0,x=0,A=0,M=0,E=0,T=0,I=0;do{if((a[200]|0)==0){t=we(8)|0;if((t-1&t|0)==0){a[202]=t;a[201]=t;a[203]=-1;a[204]=2097152;a[205]=0;a[319]=0;a[200]=(tt(0)|0)&-16^1431655768;break}else{ke()}}}while(0);t=a[214]|0;if((t|0)==0){r=0;n=0;i=0;o=0;s=0;f=0;u=0}else{c=a[211]|0;l=c+40|0;d=1;h=l;p=l;l=1280;while(1){b=a[l>>2]|0;v=b+8|0;if((v&7|0)==0){m=0}else{m=-v&7}v=b+(a[l+4>>2]|0)|0;g=d;y=h;w=p;_=b+m|0;while(1){if(_>>>0>=v>>>0|(_|0)==(t|0)){S=g;k=y;x=w;break}A=a[_+4>>2]|0;if((A|0)==7){S=g;k=y;x=w;break}M=A&-8;E=M+w|0;if((A&3|0)==1){T=M+y|0;I=g+1|0}else{T=y;I=g}A=_+M|0;if(A>>>0<b>>>0){S=I;k=T;x=E;break}else{g=I;y=T;w=E;_=A}}_=a[l+8>>2]|0;if((_|0)==0){break}else{d=S;h=k;p=x;l=_}}l=a[316]|0;r=c;n=x;i=S;o=l-x|0;s=a[317]|0;f=l-k|0;u=k}a[e>>2]=n;a[e+4>>2]=i;i=e+8|0;a[i>>2]=0;a[i+4>>2]=0;a[e+16>>2]=o;a[e+20>>2]=s;a[e+24>>2]=0;a[e+28>>2]=f;a[e+32>>2]=u;a[e+36>>2]=r;return}function hr(){var e=0,t=0,r=0,n=0,i=0,o=0,s=0,f=0,u=0,c=0,d=0,h=0,p=0,b=0,v=0,g=0,y=0,w=0;e=l;do{if((a[200]|0)==0){t=we(8)|0;if((t-1&t|0)==0){a[202]=t;a[201]=t;a[203]=-1;a[204]=2097152;a[205]=0;a[319]=0;a[200]=(tt(0)|0)&-16^1431655768;break}else{ke()}}}while(0);t=a[214]|0;if((t|0)==0){r=0;n=0;i=0}else{o=a[317]|0;s=a[316]|0;f=s-40-(a[211]|0)|0;u=1280;while(1){c=a[u>>2]|0;d=c+8|0;if((d&7|0)==0){h=0}else{h=-d&7}d=c+(a[u+4>>2]|0)|0;p=f;b=c+h|0;while(1){if(b>>>0>=d>>>0|(b|0)==(t|0)){v=p;break}g=a[b+4>>2]|0;if((g|0)==7){v=p;break}y=g&-8;w=p-((g&3|0)==1?y:0)|0;g=b+y|0;if(g>>>0<c>>>0){v=w;break}else{p=w;b=g}}b=a[u+8>>2]|0;if((b|0)==0){r=v;n=s;i=o;break}else{f=v;u=b}}}xe(a[m>>2]|0,520,(E=l,l=l+8|0,a[E>>2]=i,E)|0)|0;xe(a[m>>2]|0,488,(E=l,l=l+8|0,a[E>>2]=n,E)|0)|0;xe(a[m>>2]|0,400,(E=l,l=l+8|0,a[E>>2]=r,E)|0)|0;l=e;return}function pr(e,t){e=e|0;t=t|0;var r=0,n=0;do{if((a[200]|0)==0){r=we(8)|0;if((r-1&r|0)==0){a[202]=r;a[201]=r;a[203]=-1;a[204]=2097152;a[205]=0;a[319]=0;a[200]=(tt(0)|0)&-16^1431655768;break}else{ke();return 0}}}while(0);if((e|0)==(-1|0)){a[204]=t;n=1;return n|0}else if((e|0)==(-2|0)){if((a[201]|0)>>>0>t>>>0){n=0;return n|0}if((t-1&t|0)!=0){n=0;return n|0}a[202]=t;n=1;return n|0}else if((e|0)==(-3|0)){a[203]=t;n=1;return n|0}else{n=0;return n|0}return 0}function br(){return(j=a[328]|0,a[328]=j+0,j)|0}function vr(e,t){e=e|0;t=t|0;var r=0,n=0,i=0,o=0,s=0,f=0,u=0,c=0,l=0,d=0,h=0,p=0,b=0,v=0,m=0,g=0,y=0,w=0,_=0,S=0,k=0,x=0,A=0,M=0,E=0,T=0,I=0,P=0,O=0,R=0,C=0,j=0,B=0,N=0,F=0;r=e;n=r+t|0;i=n;o=a[e+4>>2]|0;e:do{if((o&1|0)==0){s=a[e>>2]|0;if((o&3|0)==0){return}f=r+(-s|0)|0;u=f;c=s+t|0;l=a[212]|0;if(f>>>0<l>>>0){ke()}if((u|0)==(a[213]|0)){d=r+(t+4)|0;if((a[d>>2]&3|0)!=3){h=u;p=c;break}a[210]=c;a[d>>2]=a[d>>2]&-2;a[r+(4-s)>>2]=c|1;a[n>>2]=c;return}d=s>>>3;if(s>>>0<256){b=a[r+(8-s)>>2]|0;v=a[r+(12-s)>>2]|0;m=872+(d<<1<<2)|0;do{if((b|0)!=(m|0)){if(b>>>0<l>>>0){ke()}if((a[b+12>>2]|0)==(u|0)){break}ke()}}while(0);if((v|0)==(b|0)){a[208]=a[208]&~(1<<d);h=u;p=c;break}do{if((v|0)==(m|0)){g=v+8|0}else{if(v>>>0<l>>>0){ke()}y=v+8|0;if((a[y>>2]|0)==(u|0)){g=y;break}ke()}}while(0);a[b+12>>2]=v;a[g>>2]=b;h=u;p=c;break}m=f;d=a[r+(24-s)>>2]|0;y=a[r+(12-s)>>2]|0;do{if((y|0)==(m|0)){w=16-s|0;_=r+(w+4)|0;S=a[_>>2]|0;if((S|0)==0){k=r+w|0;w=a[k>>2]|0;if((w|0)==0){x=0;break}else{A=w;M=k}}else{A=S;M=_}while(1){_=A+20|0;S=a[_>>2]|0;if((S|0)!=0){A=S;M=_;continue}_=A+16|0;S=a[_>>2]|0;if((S|0)==0){break}else{A=S;M=_}}if(M>>>0<l>>>0){ke()}else{a[M>>2]=0;x=A;break}}else{_=a[r+(8-s)>>2]|0;if(_>>>0<l>>>0){ke()}S=_+12|0;if((a[S>>2]|0)!=(m|0)){ke()}k=y+8|0;if((a[k>>2]|0)==(m|0)){a[S>>2]=y;a[k>>2]=_;x=y;break}else{ke()}}}while(0);if((d|0)==0){h=u;p=c;break}y=r+(28-s)|0;l=1136+(a[y>>2]<<2)|0;do{if((m|0)==(a[l>>2]|0)){a[l>>2]=x;if((x|0)!=0){break}a[209]=a[209]&~(1<<a[y>>2]);h=u;p=c;break e}else{if(d>>>0<(a[212]|0)>>>0){ke()}f=d+16|0;if((a[f>>2]|0)==(m|0)){a[f>>2]=x}else{a[d+20>>2]=x}if((x|0)==0){h=u;p=c;break e}}}while(0);if(x>>>0<(a[212]|0)>>>0){ke()}a[x+24>>2]=d;m=16-s|0;y=a[r+m>>2]|0;do{if((y|0)!=0){if(y>>>0<(a[212]|0)>>>0){ke()}else{a[x+16>>2]=y;a[y+24>>2]=x;break}}}while(0);y=a[r+(m+4)>>2]|0;if((y|0)==0){h=u;p=c;break}if(y>>>0<(a[212]|0)>>>0){ke()}else{a[x+20>>2]=y;a[y+24>>2]=x;h=u;p=c;break}}else{h=e;p=t}}while(0);e=a[212]|0;if(n>>>0<e>>>0){ke()}x=r+(t+4)|0;A=a[x>>2]|0;do{if((A&2|0)==0){if((i|0)==(a[214]|0)){M=(a[211]|0)+p|0;a[211]=M;a[214]=h;a[h+4>>2]=M|1;if((h|0)!=(a[213]|0)){return}a[213]=0;a[210]=0;return}if((i|0)==(a[213]|0)){M=(a[210]|0)+p|0;a[210]=M;a[213]=h;a[h+4>>2]=M|1;a[h+M>>2]=M;return}M=(A&-8)+p|0;g=A>>>3;e:do{if(A>>>0<256){o=a[r+(t+8)>>2]|0;y=a[r+(t+12)>>2]|0;s=872+(g<<1<<2)|0;do{if((o|0)!=(s|0)){if(o>>>0<e>>>0){ke()}if((a[o+12>>2]|0)==(i|0)){break}ke()}}while(0);if((y|0)==(o|0)){a[208]=a[208]&~(1<<g);break}do{if((y|0)==(s|0)){E=y+8|0}else{if(y>>>0<e>>>0){ke()}d=y+8|0;if((a[d>>2]|0)==(i|0)){E=d;break}ke()}}while(0);a[o+12>>2]=y;a[E>>2]=o}else{s=n;d=a[r+(t+24)>>2]|0;l=a[r+(t+12)>>2]|0;do{if((l|0)==(s|0)){f=r+(t+20)|0;b=a[f>>2]|0;if((b|0)==0){v=r+(t+16)|0;_=a[v>>2]|0;if((_|0)==0){T=0;break}else{I=_;P=v}}else{I=b;P=f}while(1){f=I+20|0;b=a[f>>2]|0;if((b|0)!=0){I=b;P=f;continue}f=I+16|0;b=a[f>>2]|0;if((b|0)==0){break}else{I=b;P=f}}if(P>>>0<e>>>0){ke()}else{a[P>>2]=0;T=I;break}}else{f=a[r+(t+8)>>2]|0;if(f>>>0<e>>>0){ke()}b=f+12|0;if((a[b>>2]|0)!=(s|0)){ke()}v=l+8|0;if((a[v>>2]|0)==(s|0)){a[b>>2]=l;a[v>>2]=f;T=l;break}else{ke()}}}while(0);if((d|0)==0){break}l=r+(t+28)|0;o=1136+(a[l>>2]<<2)|0;do{if((s|0)==(a[o>>2]|0)){a[o>>2]=T;if((T|0)!=0){break}a[209]=a[209]&~(1<<a[l>>2]);break e}else{if(d>>>0<(a[212]|0)>>>0){ke()}y=d+16|0;if((a[y>>2]|0)==(s|0)){a[y>>2]=T}else{a[d+20>>2]=T}if((T|0)==0){break e}}}while(0);if(T>>>0<(a[212]|0)>>>0){ke()}a[T+24>>2]=d;s=a[r+(t+16)>>2]|0;do{if((s|0)!=0){if(s>>>0<(a[212]|0)>>>0){ke()}else{a[T+16>>2]=s;a[s+24>>2]=T;break}}}while(0);s=a[r+(t+20)>>2]|0;if((s|0)==0){break}if(s>>>0<(a[212]|0)>>>0){ke()}else{a[T+20>>2]=s;a[s+24>>2]=T;break}}}while(0);a[h+4>>2]=M|1;a[h+M>>2]=M;if((h|0)!=(a[213]|0)){O=M;break}a[210]=M;return}else{a[x>>2]=A&-2;a[h+4>>2]=p|1;a[h+p>>2]=p;O=p}}while(0);p=O>>>3;if(O>>>0<256){A=p<<1;x=872+(A<<2)|0;T=a[208]|0;t=1<<p;do{if((T&t|0)==0){a[208]=T|t;R=x;C=872+(A+2<<2)|0}else{p=872+(A+2<<2)|0;r=a[p>>2]|0;if(r>>>0>=(a[212]|0)>>>0){R=r;C=p;break}ke()}}while(0);a[C>>2]=h;a[R+12>>2]=h;a[h+8>>2]=R;a[h+12>>2]=x;return}x=h;R=O>>>8;do{if((R|0)==0){j=0}else{if(O>>>0>16777215){j=31;break}C=(R+1048320|0)>>>16&8;A=R<<C;t=(A+520192|0)>>>16&4;T=A<<t;A=(T+245760|0)>>>16&2;p=14-(t|C|A)+(T<<A>>>15)|0;j=O>>>((p+7|0)>>>0)&1|p<<1}}while(0);R=1136+(j<<2)|0;a[h+28>>2]=j;a[h+20>>2]=0;a[h+16>>2]=0;p=a[209]|0;A=1<<j;if((p&A|0)==0){a[209]=p|A;a[R>>2]=x;a[h+24>>2]=R;a[h+12>>2]=h;a[h+8>>2]=h;return}if((j|0)==31){B=0}else{B=25-(j>>>1)|0}j=O<<B;B=a[R>>2]|0;while(1){if((a[B+4>>2]&-8|0)==(O|0)){break}N=B+16+(j>>>31<<2)|0;R=a[N>>2]|0;if((R|0)==0){F=1120;break}else{j=j<<1;B=R}}if((F|0)==1120){if(N>>>0<(a[212]|0)>>>0){ke()}a[N>>2]=x;a[h+24>>2]=B;a[h+12>>2]=h;a[h+8>>2]=h;return}N=B+8|0;F=a[N>>2]|0;j=a[212]|0;if(B>>>0<j>>>0){ke()}if(F>>>0<j>>>0){ke()}a[F+12>>2]=x;a[N>>2]=x;a[h+8>>2]=F;a[h+12>>2]=B;a[h+24>>2]=0;return}function mr(e){e=e|0;var t=0,r=0,n=0;t=(e|0)==0?1:e;while(1){r=Yt(t)|0;if((r|0)!=0){n=1164;break}e=(j=a[328]|0,a[328]=j+0,j);if((e|0)==0){break}Cn[e&1]()}if((n|0)==1164){return r|0}r=Le(4)|0;a[r>>2]=560;_e(r|0,688,6);return 0}function gr(e,t){e=e|0;t=t|0;return mr(e)|0}function yr(e){e=e|0;return}function wr(e){e=e|0;return 360|0}function _r(e){e=e|0;return 448|0}function Sr(e){e=e|0;return(j=a[328]|0,a[328]=e,j)|0}function kr(e){e=e|0;a[e>>2]=560;return}function xr(e){e=e|0;a[e>>2]=592;return}function Ar(e){e=e|0;if((e|0)!=0){Kt(e)}return}function Mr(e,t){e=e|0;t=t|0;Ar(e);return}function Er(e){e=e|0;Ar(e);return}function Tr(e,t){e=e|0;t=t|0;Er(e);return}function Ir(e){e=e|0;Ar(e);return}function Pr(e){e=e|0;Ar(e);return}function Or(e,t,r){e=e|0;t=t|0;r=r|0;return Rr(e,t,r,0,0,0)|0}function Rr(e,t,r,i,o,s){e=e|0;t=t|0;r=r|0;i=i|0;o=o|0;s=s|0;var f=0,u=0,c=0,d=0,h=0,p=0,b=0,v=0,m=0,g=0,y=0,w=0,_=0,S=0,k=0,x=0,A=0,M=0,T=0,I=0,P=0,O=0,R=0,C=0,j=0,B=0,N=0,F=0,L=0,z=0,H=0,U=0,D=0,q=0,Y=0,K=0,V=0,W=0,X=0,Z=0,G=0,Q=0,$=0,J=0,ee=0,te=0,re=0,ne=0;f=l;if((r|0)==0){u=-1;l=f;return u|0}c=a[44]|0;if((c|0)==0){a[196]=1;a[44]=1;d=1;h=1;p=1190}else{b=a[196]|0;v=a[74]|0;if((v|0)==-1|(b|0)!=0){d=b;h=c;p=1190}else{m=v;g=b;y=c}}if((p|0)==1190){c=(Ye(344)|0)!=0|0;a[74]=c;m=c;g=d;y=h}h=n[r]|0;if(h<<24>>24==45){w=s|2;p=1194}else{d=(m|0)!=0|h<<24>>24==43?s&-2:s;if(h<<24>>24==43){w=d;p=1194}else{_=r;S=d}}if((p|0)==1194){_=r+1|0;S=w}a[198]=0;if((g|0)==0){k=y;p=1198}else{a[50]=-1;a[48]=-1;x=y;A=g;p=1197}while(1){if((p|0)==1197){p=0;if((A|0)==0){k=x;p=1198;continue}else{M=x}}else if((p|0)==1198){p=0;g=a[40]|0;if((n[g]|0)==0){M=k}else{T=g;I=k;break}}a[196]=0;if((M|0)>=(e|0)){p=1200;break}P=t+(M<<2)|0;O=a[P>>2]|0;a[40]=O;if((n[O]|0)==45){R=O+1|0;C=n[R]|0;if(C<<24>>24!=0){p=1232;break}if((Pe(_|0,45)|0)!=0){p=1232;break}}a[40]=824;if((S&2|0)!=0){p=1217;break}if((S&1|0)==0){u=-1;p=1298;break}g=a[48]|0;do{if((g|0)==-1){a[48]=M;j=M;B=0}else{y=a[50]|0;if((y|0)==-1){j=M;B=0;break}w=y-g|0;r=M-y|0;d=(w|0)%(r|0)|0;if((d|0)==0){N=r}else{h=r;s=d;while(1){d=(h|0)%(s|0)|0;if((d|0)==0){N=s;break}else{h=s;s=d}}}s=(M-g|0)/(N|0)|0;do{if((N|0)>0){h=-w|0;if((s|0)>0){F=0}else{L=M;z=y;H=g;U=0;break}do{d=F+y|0;m=t+(d<<2)|0;c=0;b=d;d=a[m>>2]|0;while(1){v=((b|0)<(y|0)?r:h)+b|0;D=t+(v<<2)|0;q=a[D>>2]|0;a[D>>2]=d;a[m>>2]=q;D=c+1|0;if((D|0)<(s|0)){c=D;b=v;d=q}else{break}}F=F+1|0}while((F|0)<(N|0));L=a[44]|0;z=a[50]|0;H=a[48]|0;U=a[196]|0}else{L=M;z=y;H=g;U=0}}while(0);a[48]=L-z+H;a[50]=-1;j=L;B=U}}while(0);g=j+1|0;a[44]=g;x=g;A=B;p=1197}do{if((p|0)==1298){l=f;return u|0}else if((p|0)==1232){B=a[48]|0;A=a[50]|0;if((B|0)!=-1&(A|0)==-1){a[50]=M;Y=n[R]|0;K=M}else{Y=C;K=A}if(Y<<24>>24==0){T=O;I=M;break}a[40]=R;if((n[R]|0)!=45){T=R;I=M;break}if((n[O+2|0]|0)!=0){T=R;I=M;break}A=M+1|0;a[44]=A;a[40]=824;if((K|0)!=-1){x=K-B|0;j=A-K|0;U=(x|0)%(j|0)|0;if((U|0)==0){V=j}else{L=j;H=U;while(1){U=(L|0)%(H|0)|0;if((U|0)==0){V=H;break}else{L=H;H=U}}}H=(A-B|0)/(V|0)|0;do{if((V|0)>0){L=-x|0;if((H|0)>0){W=0}else{X=K;Z=B;G=A;break}do{U=W+K|0;z=t+(U<<2)|0;N=0;F=U;U=a[z>>2]|0;while(1){k=((F|0)<(K|0)?j:L)+F|0;g=t+(k<<2)|0;y=a[g>>2]|0;a[g>>2]=U;a[z>>2]=y;g=N+1|0;if((g|0)<(H|0)){N=g;F=k;U=y}else{break}}W=W+1|0}while((W|0)<(V|0));X=a[50]|0;Z=a[48]|0;G=a[44]|0}else{X=K;Z=B;G=A}}while(0);a[44]=Z-X+G}a[50]=-1;a[48]=-1;u=-1;l=f;return u|0}else if((p|0)==1200){a[40]=824;A=a[50]|0;B=a[48]|0;do{if((A|0)==-1){if((B|0)==-1){break}a[44]=B}else{H=A-B|0;j=M-A|0;x=(H|0)%(j|0)|0;if((x|0)==0){Q=j}else{L=j;U=x;while(1){x=(L|0)%(U|0)|0;if((x|0)==0){Q=U;break}else{L=U;U=x}}}U=(M-B|0)/(Q|0)|0;do{if((Q|0)>0){L=-H|0;if((U|0)>0){$=0}else{J=A;ee=B;te=M;break}do{x=$+A|0;F=t+(x<<2)|0;N=0;z=x;x=a[F>>2]|0;while(1){y=((z|0)<(A|0)?j:L)+z|0;k=t+(y<<2)|0;g=a[k>>2]|0;a[k>>2]=x;a[F>>2]=g;k=N+1|0;if((k|0)<(U|0)){N=k;z=y;x=g}else{break}}$=$+1|0}while(($|0)<(Q|0));J=a[50]|0;ee=a[48]|0;te=a[44]|0}else{J=A;ee=B;te=M}}while(0);a[44]=ee-J+te}}while(0);a[50]=-1;a[48]=-1;u=-1;l=f;return u|0}else if((p|0)==1217){a[44]=M+1;a[198]=a[P>>2];u=1;l=f;return u|0}}while(0);P=(i|0)!=0;e:do{if(P){if((T|0)==(a[t+(I<<2)>>2]|0)){re=T;break}M=n[T]|0;do{if(M<<24>>24==45){a[40]=T+1;ne=0}else{if((S&4|0)==0){re=T;break e}if(M<<24>>24==58){ne=0;break}ne=(Pe(_|0,M<<24>>24|0)|0)!=0|0}}while(0);M=Lr(t,_,i,o,ne)|0;if((M|0)==-1){re=a[40]|0;break}a[40]=824;u=M;l=f;return u|0}else{re=T}}while(0);T=re+1|0;a[40]=T;ne=n[re]|0;re=ne<<24>>24;if((ne<<24>>24|0)==45){if((n[T]|0)==0){p=1260}}else if((ne<<24>>24|0)==58){p=1263}else{p=1260}do{if((p|0)==1260){S=Pe(_|0,re|0)|0;if((S|0)==0){if(ne<<24>>24!=45){p=1263;break}if((n[T]|0)==0){u=-1}else{break}l=f;return u|0}I=n[S+1|0]|0;if(P&ne<<24>>24==87&I<<24>>24==59){do{if((n[T]|0)==0){M=(a[44]|0)+1|0;a[44]=M;if((M|0)<(e|0)){a[40]=a[t+(M<<2)>>2];break}a[40]=824;do{if((a[46]|0)!=0){if((n[_]|0)==58){break}Hr(48,(E=l,l=l+8|0,a[E>>2]=re,E)|0)}}while(0);a[42]=re;u=(n[_]|0)==58?58:63;l=f;return u|0}}while(0);M=Lr(t,_,i,o,0)|0;a[40]=824;u=M;l=f;return u|0}if(I<<24>>24!=58){if((n[T]|0)!=0){u=re;l=f;return u|0}a[44]=(a[44]|0)+1;u=re;l=f;return u|0}a[198]=0;do{if((n[T]|0)==0){if((n[S+2|0]|0)==58){break}M=(a[44]|0)+1|0;a[44]=M;if((M|0)<(e|0)){a[198]=a[t+(M<<2)>>2];break}a[40]=824;do{if((a[46]|0)!=0){if((n[_]|0)==58){break}Hr(48,(E=l,l=l+8|0,a[E>>2]=re,E)|0)}}while(0);a[42]=re;u=(n[_]|0)==58?58:63;l=f;return u|0}else{a[198]=T}}while(0);a[40]=824;a[44]=(a[44]|0)+1;u=re;l=f;return u|0}}while(0);do{if((p|0)==1263){if((n[T]|0)!=0){break}a[44]=(a[44]|0)+1}}while(0);do{if((a[46]|0)!=0){if((n[_]|0)==58){break}Hr(272,(E=l,l=l+8|0,a[E>>2]=re,E)|0)}}while(0);a[42]=re;u=63;l=f;return u|0}function Cr(e,t,r,n,i){e=e|0;t=t|0;r=r|0;n=n|0;i=i|0;return Rr(e,t,r,n,i,1)|0}function jr(e,t,r,n,i){e=e|0;t=t|0;r=r|0;n=n|0;i=i|0;return Rr(e,t,r,n,i,5)|0}function Br(e){e=e|0;return mr(e)|0}function Nr(e,t){e=e|0;t=t|0;return Br(e)|0}function Fr(){var e=0;e=Le(4)|0;a[e>>2]=560;_e(e|0,688,6)}function Lr(e,t,r,i,o){e=e|0;t=t|0;r=r|0;i=i|0;o=o|0;var s=0,f=0,u=0,c=0,d=0,h=0,p=0,b=0,v=0,m=0,g=0,y=0,w=0,_=0,S=0,k=0,x=0;s=l;f=a[40]|0;u=a[44]|0;c=u+1|0;a[44]=c;d=Pe(f|0,61)|0;if((d|0)==0){h=tn(f|0)|0;p=0}else{h=d-f|0;p=d+1|0}d=a[r>>2]|0;e:do{if((d|0)!=0){t:do{if((o|0)!=0&(h|0)==1){b=0;v=d;while(1){if((n[f]|0)==(n[v]|0)){if((tn(v|0)|0)==1){m=b;break t}}b=b+1|0;v=a[r+(b<<4)>>2]|0;if((v|0)==0){break e}}}else{v=0;b=-1;g=d;while(1){if((ge(f|0,g|0,h|0)|0)==0){if((tn(g|0)|0)==(h|0)){m=v;break t}if((b|0)==-1){y=v}else{break}}else{y=b}w=v+1|0;_=a[r+(w<<4)>>2]|0;if((_|0)==0){m=y;break t}else{v=w;b=y;g=_}}do{if((a[46]|0)!=0){if((n[t]|0)==58){break}Hr(304,(E=l,l=l+16|0,a[E>>2]=h,a[E+8>>2]=f,E)|0)}}while(0);a[42]=0;S=63;l=s;return S|0}}while(0);if((m|0)==-1){break}g=r+(m<<4)+4|0;b=a[g>>2]|0;v=(p|0)==0;if(!((b|0)!=0|v)){do{if((a[46]|0)!=0){if((n[t]|0)==58){break}Hr(208,(E=l,l=l+16|0,a[E>>2]=h,a[E+8>>2]=f,E)|0)}}while(0);if((a[r+(m<<4)+8>>2]|0)==0){k=a[r+(m<<4)+12>>2]|0}else{k=0}a[42]=k;S=(n[t]|0)==58?58:63;l=s;return S|0}do{if((b-1|0)>>>0<2){if(!v){a[198]=p;break}if((b|0)!=1){break}a[44]=u+2;a[198]=a[e+(c<<2)>>2]}}while(0);if(!((a[g>>2]|0)==1&(a[198]|0)==0)){if((i|0)!=0){a[i>>2]=m}b=a[r+(m<<4)+8>>2]|0;v=a[r+(m<<4)+12>>2]|0;if((b|0)==0){S=v;l=s;return S|0}a[b>>2]=v;S=0;l=s;return S|0}do{if((a[46]|0)!=0){if((n[t]|0)==58){break}Hr(8,(E=l,l=l+8|0,a[E>>2]=f,E)|0)}}while(0);if((a[r+(m<<4)+8>>2]|0)==0){x=a[r+(m<<4)+12>>2]|0}else{x=0}a[42]=x;a[44]=(a[44]|0)-1;S=(n[t]|0)==58?58:63;l=s;return S|0}}while(0);if((o|0)!=0){a[44]=u;S=-1;l=s;return S|0}do{if((a[46]|0)!=0){if((n[t]|0)==58){break}Hr(248,(E=l,l=l+8|0,a[E>>2]=f,E)|0)}}while(0);a[42]=0;S=63;l=s;return S|0}function zr(e,t){e=e|0;t=t|0;var r=0,n=0,i=0;r=l;l=l+16|0;n=r|0;i=n;a[i>>2]=t;a[i+4>>2]=0;Ur(e,n|0);l=r;return}function Hr(e,t){e=e|0;t=t|0;var r=0,n=0,i=0;r=l;l=l+16|0;n=r|0;i=n;a[i>>2]=t;a[i+4>>2]=0;Dr(e,n|0);l=r;return}function Ur(e,t){e=e|0;t=t|0;var r=0,n=0,i=0;r=l;n=a[($e()|0)>>2]|0;i=a[w>>2]|0;xe(a[m>>2]|0,432,(E=l,l=l+8|0,a[E>>2]=i,E)|0)|0;if((e|0)!=0){i=a[m>>2]|0;Ke(i|0,e|0,t|0)|0;t=a[m>>2]|0;Ce(472,2,1,t|0)|0}t=a[m>>2]|0;e=Se(n|0)|0;xe(t|0,384,(E=l,l=l+8|0,a[E>>2]=e,E)|0)|0;l=r;return}function Dr(e,t){e=e|0;t=t|0;var r=0,n=0;r=l;n=a[w>>2]|0;xe(a[m>>2]|0,376,(E=l,l=l+8|0,a[E>>2]=n,E)|0)|0;if((e|0)!=0){n=a[m>>2]|0;Ke(n|0,e|0,t|0)|0}Oe(10,a[m>>2]|0)|0;l=r;return}function qr(e,t){e=e|0;t=t|0;var r=0,i=0,o=0,s=0,f=0,u=0,l=0,d=0,h=0,p=0,b=0,v=0.0,m=0,g=0,y=0,w=0,_=0.0,S=0,k=0,x=0,A=0.0,M=0.0,E=0,T=0,I=0,P=0.0,O=0,R=0,C=0,j=0,B=0,N=0,F=0,L=0,z=0.0,H=0,U=0,D=0.0,q=0.0,Y=0.0;r=e;while(1){i=r+1|0;if((ze(n[r]|0)|0)==0){break}else{r=i}}o=n[r]|0;if((o<<24>>24|0)==45){s=i;f=1}else if((o<<24>>24|0)==43){s=i;f=0}else{s=r;f=0}r=-1;i=0;o=s;while(1){u=n[o]|0;if(((u<<24>>24)-48|0)>>>0<10){l=r}else{if(u<<24>>24!=46|(r|0)>-1){break}else{l=i}}r=l;i=i+1|0;o=o+1|0}l=o+(-i|0)|0;s=(r|0)<0;d=((s^1)<<31>>31)+i|0;h=(d|0)>18;p=(h?-18:-d|0)+(s?i:r)|0;r=h?18:d;do{if((r|0)==0){b=e;v=0.0}else{if((r|0)>9){d=l;h=r;i=0;while(1){s=n[d]|0;m=d+1|0;if(s<<24>>24==46){g=n[m]|0;y=d+2|0}else{g=s;y=m}w=(i*10|0)-48+(g<<24>>24)|0;m=h-1|0;if((m|0)>9){d=y;h=m;i=w}else{break}}_=+(w|0)*1.0e9;S=9;k=y;x=1393}else{if((r|0)>0){_=0.0;S=r;k=l;x=1393}else{A=0.0;M=0.0}}if((x|0)==1393){i=k;h=S;d=0;while(1){m=n[i]|0;s=i+1|0;if(m<<24>>24==46){E=n[s]|0;T=i+2|0}else{E=m;T=s}I=(d*10|0)-48+(E<<24>>24)|0;s=h-1|0;if((s|0)>0){i=T;h=s;d=I}else{break}}A=+(I|0);M=_}P=M+A;do{if((u<<24>>24|0)==69|(u<<24>>24|0)==101){d=o+1|0;h=n[d]|0;if((h<<24>>24|0)==43){O=o+2|0;R=0}else if((h<<24>>24|0)==45){O=o+2|0;R=1}else{O=d;R=0}d=n[O]|0;if(((d<<24>>24)-48|0)>>>0<10){C=O;j=0;B=d}else{N=0;F=O;L=R;break}while(1){d=(j*10|0)-48+(B<<24>>24)|0;h=C+1|0;i=n[h]|0;if(((i<<24>>24)-48|0)>>>0<10){C=h;j=d;B=i}else{N=d;F=h;L=R;break}}}else{N=0;F=o;L=0}}while(0);h=p+((L|0)==0?N:-N|0)|0;d=(h|0)<0?-h|0:h;if((d|0)>511){a[($e()|0)>>2]=34;z=1.0;H=88;U=511;x=1410}else{if((d|0)==0){D=1.0}else{z=1.0;H=88;U=d;x=1410}}if((x|0)==1410){while(1){x=0;if((U&1|0)==0){q=z}else{q=z*+c[H>>3]}d=U>>1;if((d|0)==0){D=q;break}else{z=q;H=H+8|0;U=d;x=1410}}}if((h|0)>-1){b=F;v=P*D;break}else{b=F;v=P/D;break}}}while(0);if((t|0)!=0){a[t>>2]=b}if((f|0)==0){Y=v;return+Y}Y=-0.0-v;return+Y}function Yr(e,t){e=e|0;t=t|0;return+ +qr(e,t)}function Kr(e,t){e=e|0;t=t|0;return+ +qr(e,t)}function Vr(e,t,r){e=e|0;t=t|0;r=r|0;return+ +qr(e,t)}function Wr(e,t,r){e=e|0;t=t|0;r=r|0;return+ +qr(e,t)}function Xr(e){e=e|0;return+ +qr(e,0)}function Zr(e,t,r){e=e|0;t=t|0;r=r|0;var n=0,i=0;n=l;l=l+16|0;i=n|0;n=i;a[n>>2]=r;a[n+4>>2]=0;Qr(e,t,i|0)}function Gr(e,t,r){e=e|0;t=t|0;r=r|0;var n=0,i=0;n=l;l=l+16|0;i=n|0;n=i;a[n>>2]=r;a[n+4>>2]=0;$r(e,t,i|0)}function Qr(e,t,r){e=e|0;t=t|0;r=r|0;var n=0,i=0;n=a[($e()|0)>>2]|0;i=a[w>>2]|0;xe(a[m>>2]|0,336,(E=l,l=l+8|0,a[E>>2]=i,E)|0)|0;if((t|0)!=0){i=a[m>>2]|0;Ke(i|0,t|0,r|0)|0;r=a[m>>2]|0;Ce(480,2,1,r|0)|0}r=a[m>>2]|0;t=Se(n|0)|0;xe(r|0,392,(E=l,l=l+8|0,a[E>>2]=t,E)|0)|0;Ne(e|0)}function $r(e,t,r){e=e|0;t=t|0;r=r|0;var n=0;n=a[w>>2]|0;xe(a[m>>2]|0,440,(E=l,l=l+8|0,a[E>>2]=n,E)|0)|0;if((t|0)!=0){n=a[m>>2]|0;Ke(n|0,t|0,r|0)|0}Oe(10,a[m>>2]|0)|0;Ne(e|0)}function Jr(e,t,r){e=e|0;t=t|0;r=r|0;var i=0;i=e|0;if((e&3)==(t&3)){while(e&3){if((r|0)==0)return i|0;n[e]=n[t]|0;e=e+1|0;t=t+1|0;r=r-1|0}while((r|0)>=4){a[e>>2]=a[t>>2];e=e+4|0;t=t+4|0;r=r-4|0}}while((r|0)>0){n[e]=n[t]|0;e=e+1|0;t=t+1|0;r=r-1|0}return i|0}function en(e,t,r){e=e|0;t=t|0;r=r|0;var i=0,o=0,s=0;i=e+r|0;if((r|0)>=20){t=t&255;r=e&3;o=t|t<<8|t<<16|t<<24;s=i&~3;if(r){r=e+4-r|0;while((e|0)<(r|0)){n[e]=t;e=e+1|0}}while((e|0)<(s|0)){a[e>>2]=o;e=e+4|0}}while((e|0)<(i|0)){n[e]=t;e=e+1|0}}function tn(e){e=e|0;var t=0;t=e;while(n[t]|0){t=t+1|0}return t-e|0}function rn(e,t,r,n){e=e|0;t=t|0;r=r|0;n=n|0;var i=0;i=e+r>>>0;return(N=t+n+(i>>>0<e>>>0|0)>>>0,i|0)|0}function nn(e,t,r,n){e=e|0;t=t|0;r=r|0;n=n|0;var i=0;i=t-n>>>0;i=t-n-(r>>>0>e>>>0|0)>>>0;return(N=i,e-r>>>0|0)|0}function an(e,t,r){e=e|0;t=t|0;r=r|0;if((r|0)<32){N=t<<r|(e&(1<<r)-1<<32-r)>>>32-r;return e<<r}N=e<<r-32;return 0}function on(e,t,r){e=e|0;t=t|0;r=r|0;if((r|0)<32){N=t>>>r;return e>>>r|(t&(1<<r)-1)<<32-r}N=0;return t>>>r-32|0}function sn(e,t,r){e=e|0;t=t|0;r=r|0;if((r|0)<32){N=t>>r;return e>>>r|(t&(1<<r)-1)<<32-r}N=(t|0)<0?-1:0;return t>>r-32|0}function fn(e){e=e|0;var t=0;t=n[v+(e>>>24)|0]|0;if((t|0)<8)return t|0;t=n[v+(e>>16&255)|0]|0;if((t|0)<8)return t+8|0;t=n[v+(e>>8&255)|0]|0;if((t|0)<8)return t+16|0;return(n[v+(e&255)|0]|0)+24|0}function un(e){e=e|0;var t=0;t=n[b+(e&255)|0]|0;if((t|0)<8)return t|0;t=n[b+(e>>8&255)|0]|0;if((t|0)<8)return t+8|0;t=n[b+(e>>16&255)|0]|0;if((t|0)<8)return t+16|0;return(n[b+(e>>>24)|0]|0)+24|0}function cn(e,t){e=e|0;t=t|0;var r=0,n=0,i=0,a=0;r=e&65535;n=t&65535;i=oe(n,r)|0;a=e>>>16;e=(i>>>16)+(oe(n,a)|0)|0;n=t>>>16;t=oe(n,r)|0;return(N=(e>>>16)+(oe(n,a)|0)+(((e&65535)+t|0)>>>16)|0,e+t<<16|i&65535|0)|0}function ln(e,t,r,n){e=e|0;t=t|0;r=r|0;n=n|0;var i=0,a=0,o=0,s=0,f=0;i=t>>31|((t|0)<0?-1:0)<<1;a=((t|0)<0?-1:0)>>31|((t|0)<0?-1:0)<<1;o=n>>31|((n|0)<0?-1:0)<<1;s=((n|0)<0?-1:0)>>31|((n|0)<0?-1:0)<<1;f=nn(i^e,a^t,i,a)|0;t=N;e=o^i;i=s^a;a=nn((vn(f,t,nn(o^r,s^n,o,s)|0,N,0)|0)^e,N^i,e,i)|0;return(N=N,a)|0}function dn(e,t,r,n){e=e|0;t=t|0;r=r|0;n=n|0;var i=0,o=0,s=0,f=0,u=0,c=0,d=0;i=l;l=l+8|0;o=i|0;s=t>>31|((t|0)<0?-1:0)<<1;f=((t|0)<0?-1:0)>>31|((t|0)<0?-1:0)<<1;u=n>>31|((n|0)<0?-1:0)<<1;c=((n|0)<0?-1:0)>>31|((n|0)<0?-1:0)<<1;d=nn(s^e,f^t,s,f)|0;t=N;e=nn(u^r,c^n,u,c)|0;vn(d,t,e,N,o)|0;e=nn(a[o>>2]^s,a[o+4>>2]^f,s,f)|0;f=N;l=i;return(N=f,e)|0}function hn(e,t,r,n){e=e|0;t=t|0;r=r|0;n=n|0;var i=0,a=0;i=e;e=r;r=cn(i,e)|0;a=N;return(N=(oe(t,e)|0)+(oe(n,i)|0)+a|a&0,r|0|0)|0}function pn(e,t,r,n){e=e|0;t=t|0;r=r|0;n=n|0;var i=0;i=vn(e,t,r,n,0)|0;return(N=N,i)|0}function bn(e,t,r,n){e=e|0;t=t|0;r=r|0;n=n|0;var i=0,o=0;i=l;l=l+8|0;o=i|0;vn(e,t,r,n,o)|0;l=i;return(N=a[o+4>>2]|0,a[o>>2]|0)|0}function vn(e,t,r,n,i){e=e|0;t=t|0;r=r|0;n=n|0;i=i|0;var o=0,s=0,f=0,u=0,c=0,l=0,d=0,h=0,p=0,b=0,v=0,m=0,g=0,y=0,w=0,_=0,S=0,k=0,x=0,A=0,M=0,E=0,T=0,I=0,P=0,O=0,R=0,C=0,j=0,B=0,F=0,L=0;o=e;s=t;f=s;u=r;c=n;l=c;if((f|0)==0){d=(i|0)!=0;if((l|0)==0){if(d){a[i>>2]=(o>>>0)%(u>>>0);a[i+4>>2]=0}h=0;p=(o>>>0)/(u>>>0)>>>0;return(N=h,p)|0}else{if(!d){h=0;p=0;return(N=h,p)|0}a[i>>2]=e|0;a[i+4>>2]=t&0;h=0;p=0;return(N=h,p)|0}}d=(l|0)==0;do{if((u|0)==0){if(d){if((i|0)!=0){a[i>>2]=(f>>>0)%(u>>>0);a[i+4>>2]=0}h=0;p=(f>>>0)/(u>>>0)>>>0;return(N=h,p)|0}if((o|0)==0){if((i|0)!=0){a[i>>2]=0;a[i+4>>2]=(f>>>0)%(l>>>0)}h=0;p=(f>>>0)/(l>>>0)>>>0;return(N=h,p)|0}b=l-1|0;if((b&l|0)==0){if((i|0)!=0){a[i>>2]=e|0;a[i+4>>2]=b&f|t&0}h=0;p=f>>>((un(l|0)|0)>>>0);return(N=h,p)|0}b=(fn(l|0)|0)-(fn(f|0)|0)|0;if(b>>>0<=30){v=b+1|0;m=31-b|0;g=v;y=f<<m|o>>>(v>>>0);w=f>>>(v>>>0);_=0;S=o<<m;break}if((i|0)==0){h=0;p=0;return(N=h,p)|0}a[i>>2]=e|0;a[i+4>>2]=s|t&0;h=0;p=0;return(N=h,p)|0}else{if(!d){m=(fn(l|0)|0)-(fn(f|0)|0)|0;if(m>>>0<=31){v=m+1|0;b=31-m|0;k=m-31>>31;g=v;y=o>>>(v>>>0)&k|f<<b;w=f>>>(v>>>0)&k;_=0;S=o<<b;break}if((i|0)==0){h=0;p=0;return(N=h,p)|0}a[i>>2]=e|0;a[i+4>>2]=s|t&0;h=0;p=0;return(N=h,p)|0}b=u-1|0;if((b&u|0)!=0){k=(fn(u|0)|0)+33-(fn(f|0)|0)|0;v=64-k|0;m=32-k|0;x=m>>31;A=k-32|0;M=A>>31;g=k;y=m-1>>31&f>>>(A>>>0)|(f<<m|o>>>(k>>>0))&M;w=M&f>>>(k>>>0);_=o<<v&x;S=(f<<v|o>>>(A>>>0))&x|o<<m&k-33>>31;break}if((i|0)!=0){a[i>>2]=b&o;a[i+4>>2]=0}if((u|0)==1){h=s|t&0;p=e|0|0;return(N=h,p)|0}else{b=un(u|0)|0;h=f>>>(b>>>0)|0;p=f<<32-b|o>>>(b>>>0)|0;return(N=h,p)|0}}}while(0);if((g|0)==0){E=S;T=_;I=w;P=y;O=0;R=0}else{o=r|0|0;r=c|n&0;n=rn(o,r,-1,-1)|0;c=N;f=S;S=_;_=w;w=y;y=g;g=0;while(1){C=S>>>31|f<<1;j=g|S<<1;u=w<<1|f>>>31|0;e=w>>>31|_<<1|0;nn(n,c,u,e)|0;t=N;s=t>>31|((t|0)<0?-1:0)<<1;B=s&1;F=nn(u,e,s&o,(((t|0)<0?-1:0)>>31|((t|0)<0?-1:0)<<1)&r)|0;L=N;t=y-1|0;if((t|0)==0){break}else{f=C;S=j;_=L;w=F;y=t;g=B}}E=C;T=j;I=L;P=F;O=0;R=B}B=T;T=0;if((i|0)!=0){a[i>>2]=P;a[i+4>>2]=I}h=(B|0)>>>31|(E|T)<<1|(T<<1|B>>>31)&0|O;p=(B<<1|0>>>31)&-2|R;return(N=h,p)|0}function mn(e,t){e=e|0;t=t|0;In[e&15](t|0)}function gn(e,t,r){e=e|0;t=t|0;r=r|0;Pn[e&15](t|0,r|0)}function yn(e,t){e=e|0;t=t|0;return On[e&7](t|0)|0}function wn(e,t,r,n){e=e|0;t=t|0;r=r|0;n=n|0;Rn[e&15](t|0,r|0,n|0)}function _n(e){e=e|0;Cn[e&1]()}function Sn(e,t,r){e=e|0;t=t|0;r=r|0;return jn[e&1](t|0,r|0)|0}function kn(e){e=e|0;se(0)}function xn(e,t){e=e|0;t=t|0;se(1)}function An(e){e=e|0;se(2);return 0}function Mn(e,t,r){e=e|0;t=t|0;r=r|0;se(3)}function En(){se(4)}function Tn(e,t){e=e|0;t=t|0;se(5);return 0}var In=[kn,kn,xr,kn,Pr,kn,yr,kn,kr,kn,Ir,kn,kn,kn,kn,kn];var Pn=[xn,xn,zr,xn,Ur,xn,Hr,xn,Dr,xn,xn,xn,xn,xn,xn,xn];var On=[An,An,wr,An,_r,An,An,An];var Rn=[Mn,Mn,$r,Mn,Qr,Mn,Zr,Mn,Gr,Mn,Mn,Mn,Mn,Mn,Mn,Mn];var Cn=[En,En];var jn=[Tn,Tn];return{_crypto_scrypt:Et,_strlen:tn,_free:Kt,_realloc:Wt,_memset:en,_malloc:Yt,_memcpy:Jr,_calloc:Vt,runPostSets:wt,stackAlloc:it,stackSave:at,stackRestore:ot,setThrew:st,setTempRet0:ct,setTempRet1:lt,setTempRet2:dt,setTempRet3:ht,setTempRet4:pt,setTempRet5:bt,setTempRet6:vt,setTempRet7:mt,setTempRet8:gt,setTempRet9:yt,dynCall_vi:mn,dynCall_vii:gn,dynCall_ii:yn,dynCall_viii:wn,dynCall_v:_n,dynCall_iii:Sn}}({Math:Math,Int8Array:Int8Array,Int16Array:Int16Array,Int32Array:Int32Array,Uint8Array:Uint8Array,Uint16Array:Uint16Array,Uint32Array:Uint32Array,Float32Array:Float32Array,Float64Array:Float64Array},{abort:wa,assert:w,asmPrintInt:function(e,t){s.print("int "+e+","+t)},asmPrintFloat:function(e,t){s.print("float "+e+","+t)},min:Xc,invoke_vi:function(e,t){try{s.dynCall_vi(e,t)}catch(e){"number"!=typeof e&&"longjmp"!==e&&g(e),V.setThrew(1,0)}},invoke_vii:function(e,t,r){try{s.dynCall_vii(e,t,r)}catch(e){"number"!=typeof e&&"longjmp"!==e&&g(e),V.setThrew(1,0)}},invoke_ii:function(e,t){try{return s.dynCall_ii(e,t)}catch(e){"number"!=typeof e&&"longjmp"!==e&&g(e),V.setThrew(1,0)}},invoke_viii:function(e,t,r,n){try{s.dynCall_viii(e,t,r,n)}catch(e){"number"!=typeof e&&"longjmp"!==e&&g(e),V.setThrew(1,0)}},invoke_v:function(e){try{s.dynCall_v(e)}catch(e){"number"!=typeof e&&"longjmp"!==e&&g(e),V.setThrew(1,0)}},invoke_iii:function(e,t,r){try{return s.dynCall_iii(e,t,r)}catch(e){"number"!=typeof e&&"longjmp"!==e&&g(e),V.setThrew(1,0)}},_strncmp:function(e,t,r){for(var n=0;n<r;){var i=G[e+n|0],a=G[t+n|0];if(i==a&&0==i)break;if(0==i)return-1;if(0==a)return 1;if(i!=a)return i>a?1:-1;n++}return 0},_llvm_va_end:aa(),_sysconf:function(e){switch(e){case 8:return 4096;case 54:case 56:case 21:case 61:case 63:case 22:case 67:case 23:case 24:case 25:case 26:case 27:case 69:case 28:case 101:case 70:case 71:case 29:case 30:case 199:case 75:case 76:case 32:case 43:case 44:case 80:case 46:case 47:case 45:case 48:case 49:case 42:case 82:case 33:case 7:case 108:case 109:case 107:case 112:case 119:case 121:return 200809;case 13:case 104:case 94:case 95:case 34:case 35:case 77:case 81:case 83:case 84:case 85:case 86:case 87:case 88:case 89:case 90:case 91:case 94:case 95:case 110:case 111:case 113:case 114:case 115:case 116:case 117:case 118:case 120:case 40:case 16:case 79:case 19:return-1;case 92:case 93:case 5:case 72:case 6:case 74:case 92:case 93:case 96:case 97:case 98:case 99:case 102:case 103:case 105:return 1;case 38:case 66:case 50:case 51:case 4:return 1024;case 15:case 64:case 41:return 32;case 55:case 37:case 17:return 2147483647;case 18:case 1:return 47839;case 59:case 57:return 99;case 68:case 58:return 2048;case 0:return 2097152;case 3:return 65536;case 14:return 32768;case 73:return 32767;case 39:return 16384;case 60:return 1e3;case 106:return 700;case 52:return 256;case 62:return 255;case 2:return 100;case 65:return 64;case 36:return 20;case 100:return 16;case 20:return 6;case 53:return 4;case 10:return 1}return M(N.A),-1},___cxa_throw:rc,_strerror:zc,_abort:function(){s.abort()},_fprintf:mc,_llvm_eh_exception:U,___cxa_free_exception:sc,_fflush:aa(),___buildEnvironment:wc,__reallyNegative:jc,_strchr:function(e,t){e--;do{var r=A[++e];if(r==t)return e}while(r);return 0},_fputc:Bc,___setErrNo:M,_fwrite:hc,_send:fc,_write:gc,_exit:function(e){Ac(e)},___cxa_find_matching_catch:function(e,t){-1==e&&(e=B[U.m>>2]),-1==t&&(t=B[U.m+4>>2]);var r=Array.prototype.slice.call(arguments,2);0!=t&&!pc(t)&&0==B[B[t>>2]-8>>2]&&(e=B[e>>2]);for(var n=0;n<r.length;n++)if(qc(r[n],t,e))return 0|(V.setTempRet0(r[n]),e);return 0|(V.setTempRet0(t),e)},___cxa_allocate_exception:function(e){return Oa(e)},_isspace:function(e){return 32==e||9<=e&&13>=e},__formatString:kc,___resumeException:function(e){0==B[U.m>>2]&&(B[U.m>>2]=e),g(e+" - Exception catching is disabled, this exception cannot be caught. Compile with -s DISABLE_EXCEPTION_CATCHING=0 or DISABLE_EXCEPTION_CATCHING=2 to catch.")},_llvm_uadd_with_overflow_i32:function(e,t){return e>>>=0,t>>>=0,0|(V.setTempRet0(4294967295<e+t),e+t>>>0)},___cxa_does_inherit:qc,_getenv:xc,_vfprintf:function(e,t,r){return mc(e,t,B[r>>2])},___cxa_begin_catch:function(e){return oc.ta--,e},__ZSt18uncaught_exceptionv:oc,_pwrite:function(e,t,r,n){if(!(e=R[e]))return M(N.$),-1;try{return Ib(e,A,t,r,n)}catch(e){return Zb(e),-1}},___cxa_call_unexpected:function(e){s.P("Unexpected exception thrown, this is not properly supported - aborting"),za=l,g(e)},_sbrk:nc,_strerror_r:yc,___errno_location:function(){return rb},___gxx_personality_v0:aa(),___cxa_is_number_type:pc,_time:function(e){var t=Math.floor(Date.now()/1e3);return e&&(B[e>>2]=t),t},__exit:Ac,___cxa_end_catch:uc,STACKTOP:u,STACK_MAX:Ta,tempDoublePtr:qb,ABORT:za,cttz_i8:Wc,ctlz_i8:Vc,NaN:NaN,Infinity:1/0,_stderr:nb,__ZTVN10__cxxabiv120__si_class_type_infoE:ob,__ZTVN10__cxxabiv117__class_type_infoE:pb,___progname:k},I);s._crypto_scrypt=V._crypto_scrypt;var ic=s._strlen=V._strlen,tc=s._free=V._free;s._realloc=V._realloc;var tb=s._memset=V._memset,Oa=s._malloc=V._malloc,sb=s._memcpy=V._memcpy;s._calloc=V._calloc;var mb=s.runPostSets=V.runPostSets;s.dynCall_vi=V.dynCall_vi,s.dynCall_vii=V.dynCall_vii,s.dynCall_ii=V.dynCall_ii,s.dynCall_viii=V.dynCall_viii,s.dynCall_v=V.dynCall_v,s.dynCall_iii=V.dynCall_iii;var qa=function(e){return V.stackAlloc(e)},ja=function(){return V.stackSave()},ka=function(e){V.stackRestore(e)},lc;function X(e,t){e!=m&&("number"==typeof e?this.p(e):t==m&&"string"!=typeof e?this.k(e,256):this.k(e,t))}function Yc(){return new X(m)}function Zc(e,t){var r=$c[e.charCodeAt(t)];return r==m?-1:r}function ad(e){var t=Yc();return t.D(e),t}function Y(e,t){this.h=0|e,this.j=0|t}Y.Ca={},Y.D=function(e){if(-128<=e&&128>e){var t=Y.Ca[e];if(t)return t}return t=new Y(0|e,0>e?-1:0),-128<=e&&128>e&&(Y.Ca[e]=t),t},Y.p=function(e){return isNaN(e)||!isFinite(e)?Y.ZERO:e<=-Y.Ea?Y.MIN_VALUE:e+1>=Y.Ea?Y.MAX_VALUE:0>e?Y.p(-e).i():new Y(e%Y.B|0,e/Y.B|0)},Y.v=function(e,t){return new Y(e,t)},Y.k=function(e,t){0==e.length&&g(Error("number format error: empty string"));var r=t||10;if((2>r||36<r)&&g(Error("radix out of range: "+r)),"-"==e.charAt(0))return Y.k(e.substring(1),r).i();0<=e.indexOf("-")&&g(Error('number format error: interior "-" character: '+e));for(var n=Y.p(Math.pow(r,8)),i=Y.ZERO,a=0;a<e.length;a+=8){var o=Math.min(8,e.length-a),s=parseInt(e.substring(a,a+o),r);8>o?(o=Y.p(Math.pow(r,o)),i=i.multiply(o).add(Y.p(s))):i=(i=i.multiply(n)).add(Y.p(s))}return i},Y.ea=65536,Y.Od=16777216,Y.B=Y.ea*Y.ea,Y.Pd=Y.B/2,Y.Qd=Y.B*Y.ea,Y.eb=Y.B*Y.B,Y.Ea=Y.eb/2,Y.ZERO=Y.D(0),Y.ONE=Y.D(1),Y.Da=Y.D(-1),Y.MAX_VALUE=Y.v(-1,2147483647),Y.MIN_VALUE=Y.v(0,-2147483648),Y.cb=Y.D(16777216),q=Y.prototype,q.Z=function(){return this.j*Y.B+this.ob()},q.toString=function(e){if((2>(e=e||10)||36<e)&&g(Error("radix out of range: "+e)),this.G())return"0";if(this.n()){if(this.o(Y.MIN_VALUE)){var t=Y.p(e);t=(r=this.F(t)).multiply(t).R(this);return r.toString(e)+t.h.toString(e)}return"-"+this.i().toString(e)}for(var r=Y.p(Math.pow(e,6)),n=(t=this,"");;){var i=t.F(r),a=t.R(i.multiply(r)).h.toString(e);if((t=i).G())return a+n;for(;6>a.length;)a="0"+a;n=""+a+n}},q.ob=function(){return 0<=this.h?this.h:Y.B+this.h},q.G=function(){return 0==this.j&&0==this.h},q.n=function(){return 0>this.j},q.Pa=function(){return 1==(1&this.h)},q.o=function(e){return this.j==e.j&&this.h==e.h},q.Ra=function(){return 0>this.ja(Y.cb)},q.qb=function(e){return 0<this.ja(e)},q.rb=function(e){return 0<=this.ja(e)},q.ja=function(e){if(this.o(e))return 0;var t=this.n(),r=e.n();return t&&!r?-1:!t&&r?1:this.R(e).n()?-1:1},q.i=function(){return this.o(Y.MIN_VALUE)?Y.MIN_VALUE:this.xb().add(Y.ONE)},q.add=function(e){var t,r=this.j>>>16,n=65535&this.j,i=this.h>>>16,a=e.j>>>16,o=65535&e.j,s=e.h>>>16;return e=0+((t=(65535&this.h)+(65535&e.h)+0)>>>16),i=0+((e+=i+s)>>>16),n=(n=0+((i+=n+o)>>>16))+(r+a)&65535,Y.v((65535&e)<<16|65535&t,n<<16|65535&i)},q.R=function(e){return this.add(e.i())},q.multiply=function(e){if(this.G()||e.G())return Y.ZERO;if(this.o(Y.MIN_VALUE))return e.Pa()?Y.MIN_VALUE:Y.ZERO;if(e.o(Y.MIN_VALUE))return this.Pa()?Y.MIN_VALUE:Y.ZERO;if(this.n())return e.n()?this.i().multiply(e.i()):this.i().multiply(e).i();if(e.n())return this.multiply(e.i()).i();if(this.Ra()&&e.Ra())return Y.p(this.Z()*e.Z());var t,r,n,i,a=this.j>>>16,o=65535&this.j,s=this.h>>>16,f=65535&this.h,u=e.j>>>16,c=65535&e.j,l=e.h>>>16;return n=0+((i=0+f*(e=65535&e.h))>>>16),r=0+((n+=s*e)>>>16),r+=(n=(65535&n)+f*l)>>>16,n&=65535,t=0+((r+=o*e)>>>16),t+=(r=(65535&r)+s*l)>>>16,r&=65535,t+=(r+=f*c)>>>16,r&=65535,t=t+(a*e+o*l+s*c+f*u)&65535,Y.v(n<<16|65535&i,t<<16|r)},q.F=function(e){if(e.G()&&g(Error("division by zero")),this.G())return Y.ZERO;if(this.o(Y.MIN_VALUE)){if(e.o(Y.ONE)||e.o(Y.Da))return Y.MIN_VALUE;if(e.o(Y.MIN_VALUE))return Y.ONE;if((n=this.Db().F(e).shiftLeft(1)).o(Y.ZERO))return e.n()?Y.ONE:Y.Da;var t=this.R(e.multiply(n));return n.add(t.F(e))}if(e.o(Y.MIN_VALUE))return Y.ZERO;if(this.n())return e.n()?this.i().F(e.i()):this.i().F(e).i();if(e.n())return this.F(e.i()).i();var r=Y.ZERO;for(t=this;t.rb(e);){for(var n=Math.max(1,Math.floor(t.Z()/e.Z())),i=48>=(i=Math.ceil(Math.log(n)/Math.LN2))?1:Math.pow(2,i-48),a=Y.p(n),o=a.multiply(e);o.n()||o.qb(t);)n-=i,o=(a=Y.p(n)).multiply(e);a.G()&&(a=Y.ONE),r=r.add(a),t=t.R(o)}return r},q.xb=function(){return Y.v(~this.h,~this.j)},q.shiftLeft=function(e){if(0==(e&=63))return this;var t=this.h;return 32>e?Y.v(t<<e,this.j<<e|t>>>32-e):Y.v(0,t<<e-32)},q.Db=function(){var e=this.j;return Y.v(this.h>>>1|e<<31,e>>1)},q=X.prototype,q.ga=function(e,t,r,n){for(var i=0,a=0;0<=--n;){var o=e*this[i++]+t[r]+a;a=Math.floor(o/67108864);t[r++]=67108863&o}return a},q.f=26,q.u=67108863,q.K=67108864,q.bb=Math.pow(2,52),q.Aa=26,q.Ba=0;var $c=[],bd,Z;for(bd=48,Z=0;9>=Z;++Z)$c[bd++]=Z;for(bd=97,Z=10;36>Z;++Z)$c[bd++]=Z;for(bd=65,Z=10;36>Z;++Z)$c[bd++]=Z;q=X.prototype,q.copyTo=function(e){for(var t=this.b-1;0<=t;--t)e[t]=this[t];e.b=this.b,e.c=this.c},q.D=function(e){this.b=1,this.c=0>e?-1:0,0<e?this[0]=e:-1>e?this[0]=e+DV:this.b=0},q.k=function(e,t){var r;if(16==t)r=4;else if(8==t)r=3;else if(256==t)r=8;else if(2==t)r=1;else if(32==t)r=5;else{if(4!=t)return void this.nb(e,t);r=2}this.c=this.b=0;for(var n=e.length,i=p,a=0;0<=--n;){var o=8==r?255&e[n]:Zc(e,n);0>o?"-"==e.charAt(n)&&(i=l):(i=p,0==a?this[this.b++]=o:a+r>this.f?(this[this.b-1]|=(o&(1<<this.f-a)-1)<<a,this[this.b++]=o>>this.f-a):this[this.b-1]|=o<<a,(a+=r)>=this.f&&(a-=this.f))}8==r&&0!=(128&e[0])&&(this.c=-1,0<a&&(this[this.b-1]|=(1<<this.f-a)-1<<a)),this.C(),i&&X.ZERO.t(this,this)},q.C=function(){for(var e=this.c&this.u;0<this.b&&this[this.b-1]==e;)--this.b},q.la=function(e,t){var r;for(r=this.b-1;0<=r;--r)t[r+e]=this[r];for(r=e-1;0<=r;--r)t[r]=0;t.b=this.b+e,t.c=this.c},q.jb=function(e,t){for(var r=e;r<this.b;++r)t[r-e]=this[r];t.b=Math.max(this.b-e,0),t.c=this.c},q.Qa=function(e,t){var r,n=e%this.f,i=this.f-n,a=(1<<i)-1,o=Math.floor(e/this.f),s=this.c<<n&this.u;for(r=this.b-1;0<=r;--r)t[r+o+1]=this[r]>>i|s,s=(this[r]&a)<<n;for(r=o-1;0<=r;--r)t[r]=0;t[o]=s,t.b=this.b+o+1,t.c=this.c,t.C()},q.zb=function(e,t){t.c=this.c;var r=Math.floor(e/this.f);if(r>=this.b)t.b=0;else{var n=e%this.f,i=this.f-n,a=(1<<n)-1;t[0]=this[r]>>n;for(var o=r+1;o<this.b;++o)t[o-r-1]|=(this[o]&a)<<i,t[o-r]=this[o]>>n;0<n&&(t[this.b-r-1]|=(this.c&a)<<i),t.b=this.b-r,t.C()}},q.t=function(e,t){for(var r=0,n=0,i=Math.min(e.b,this.b);r<i;)n+=this[r]-e[r],t[r++]=n&this.u,n>>=this.f;if(e.b<this.b){for(n-=e.c;r<this.b;)n+=this[r],t[r++]=n&this.u,n>>=this.f;n+=this.c}else{for(n+=this.c;r<e.b;)n-=e[r],t[r++]=n&this.u,n>>=this.f;n-=e.c}t.c=0>n?-1:0,-1>n?t[r++]=this.K+n:0<n&&(t[r++]=n),t.b=r,t.C()},q.vb=function(e){var t=$.Xa,r=this.abs(),n=t.abs(),i=r.b;for(e.b=i+n.b;0<=--i;)e[i]=0;for(i=0;i<n.b;++i)e[i+r.b]=r.ga(n[i],e,i,r.b);e.c=0,e.C(),this.c!=t.c&&X.ZERO.t(e,e)},q.Ja=function(e,t,r){var n=e.abs();if(!(0>=n.b)){var i=this.abs();if(i.b<n.b)t!=m&&t.D(0),r!=m&&this.copyTo(r);else{r==m&&(r=Yc());var a,o=Yc(),s=this.c,f=(e=e.c,n[n.b-1]),u=1;if(0!=(a=f>>>16)&&(f=a,u+=16),0!=(a=f>>8)&&(f=a,u+=8),0!=(a=f>>4)&&(f=a,u+=4),0!=(a=f>>2)&&(f=a,u+=2),0!=f>>1&&(u+=1),0<(f=this.f-u)?(n.Qa(f,o),i.Qa(f,r)):(n.copyTo(o),i.copyTo(r)),0!=(i=o[(n=o.b)-1])){a=i*(1<<this.Aa)+(1<n?o[n-2]>>this.Ba:0),u=this.bb/a,a=(1<<this.Aa)/a;var c=1<<this.Ba,l=r.b,d=l-n,h=t==m?Yc():t;for(o.la(d,h),0<=r.U(h)&&(r[r.b++]=1,r.t(h,r)),X.ONE.la(n,h),h.t(o,o);o.b<n;)o[o.b++]=0;for(;0<=--d;){var p=r[--l]==i?this.u:Math.floor(r[l]*u+(r[l-1]+c)*a);if((r[l]+=o.ga(p,r,d,n))<p)for(o.la(d,h),r.t(h,r);r[l]<--p;)r.t(h,r)}t!=m&&(r.jb(n,t),s!=e&&X.ZERO.t(t,t)),r.b=n,r.C(),0<f&&r.zb(f,r),0>s&&X.ZERO.t(r,r)}}}},q.toString=function(e){if(0>this.c)return"-"+this.i().toString(e);if(16==e)e=4;else if(8==e)e=3;else if(2==e)e=1;else if(32==e)e=5;else{if(4!=e)return this.Fb(e);e=2}var t,r=(1<<e)-1,n=p,i="",a=this.b,o=this.f-a*this.f%e;if(0<a--)for(o<this.f&&0<(t=this[a]>>o)&&(n=l,i="0123456789abcdefghijklmnopqrstuvwxyz".charAt(t));0<=a;)o<e?(t=(this[a]&(1<<o)-1)<<e-o,t|=this[--a]>>(o+=this.f-e)):(t=this[a]>>(o-=e)&r,0>=o&&(o+=this.f,--a)),0<t&&(n=l),n&&(i+="0123456789abcdefghijklmnopqrstuvwxyz".charAt(t));return n?i:"0"},q.i=function(){var e=Yc();return X.ZERO.t(this,e),e},q.abs=function(){return 0>this.c?this.i():this},q.U=function(e){if(0!=(t=this.c-e.c))return t;var t,r=this.b;if(0!=(t=r-e.b))return 0>this.c?-t:t;for(;0<=--r;)if(0!=(t=this[r]-e[r]))return t;return 0},X.ZERO=ad(0),X.ONE=ad(1),q=X.prototype,q.nb=function(e,t){this.D(0),t==m&&(t=10);for(var r=this.S(t),n=Math.pow(t,r),i=p,a=0,o=0,s=0;s<e.length;++s){var f=Zc(e,s);0>f?"-"==e.charAt(s)&&0==this.ra()&&(i=l):(o=t*o+f,++a>=r&&(this.Ia(n),this.Ha(o),o=a=0))}0<a&&(this.Ia(Math.pow(t,a)),this.Ha(o)),i&&X.ZERO.t(this,this)},q.S=function(e){return Math.floor(Math.LN2*this.f/Math.log(e))},q.ra=function(){return 0>this.c?-1:0>=this.b||1==this.b&&0>=this[0]?0:1},q.Ia=function(e){this[this.b]=this.ga(e-1,this,0,this.b),++this.b,this.C()},q.Ha=function(e){var t=0;if(0!=e){for(;this.b<=t;)this[this.b++]=0;for(this[t]+=e;this[t]>=this.K;)this[t]-=this.K,++t>=this.b&&(this[this.b++]=0),++this[t]}},q.Fb=function(e){if(e==m&&(e=10),0==this.ra()||2>e||36<e)return"0";var t=this.S(e),r=ad(t=Math.pow(e,t)),n=Yc(),i=Yc(),a="";for(this.Ja(r,n,i);0<n.ra();)a=(t+i.Oa()).toString(e).substr(1)+a,n.Ja(r,n,i);return i.Oa().toString(e)+a},q.Oa=function(){if(0>this.c){if(1==this.b)return this[0]-this.K;if(0==this.b)return-1}else{if(1==this.b)return this[0];if(0==this.b)return 0}return(this[1]&(1<<32-this.f)-1)<<this.f|this[0]},q.fa=function(e,t){for(var r=0,n=0,i=Math.min(e.b,this.b);r<i;)n+=this[r]+e[r],t[r++]=n&this.u,n>>=this.f;if(e.b<this.b){for(n+=e.c;r<this.b;)n+=this[r],t[r++]=n&this.u,n>>=this.f;n+=this.c}else{for(n+=this.c;r<e.b;)n+=e[r],t[r++]=n&this.u,n>>=this.f;n+=e.c}t.c=0>n?-1:0,0<n?t[r++]=n:-1>n&&(t[r++]=this.K+n),t.b=r,t.C()};var $={abs:function(e,t){var r=(r=new Y(e,t)).n()?r.i():r;B[qb>>2]=r.h,B[qb+4>>2]=r.j},Ka:function(){$.kb||($.kb=l,$.Xa=new X,$.Xa.k("4294967296",10),$.sa=new X,$.sa.k("18446744073709551616",10),$.xe=new X,$.ye=new X)},me:function(e,t){var r=new X;r.k(t.toString(),10);var n=new X;r.vb(n),(r=new X).k(e.toString(),10);var i=new X;return r.fa(n,i),i},stringify:function(e,t,r){return e=new Y(e,t).toString(),r&&"-"==e[0]&&($.Ka(),(r=new X).k(e,10),e=new X,$.sa.fa(r,e),e=e.toString(10)),e},k:function(e,t,r,n,i){$.Ka();var a=new X;a.k(e,t),(e=new X).k(r,10),(r=new X).k(n,10),i&&0>a.U(X.ZERO)&&(n=new X,a.fa($.sa,n),a=n),n=p,0>a.U(e)?(a=e,n=l):0<a.U(r)&&(a=r,n=l),a=Y.k(a.toString()),B[qb>>2]=a.h,B[qb+4>>2]=a.j,n&&g("range error")}},cd,dd;function lb(e){function t(){if(ab||(ab=l,Va(Xa)),Va(Ya),gb=l,s._main&&kb&&s.callMain(e),s.postRun)for("function"==typeof s.postRun&&(s.postRun=[s.postRun]);s.postRun.length;)cb(s.postRun.shift());Va($a)}if(e=e||s.arguments,0<L)s.P("run() called, but dependencies remain, so not running");else{if(s.preRun)for("function"==typeof s.preRun&&(s.preRun=[s.preRun]);s.preRun.length;)bb(s.preRun.shift());Va(Wa),0<L||(s.setStatus?(s.setStatus("Running..."),setTimeout(function(){setTimeout(function(){s.setStatus("")},1),za||t()},1)):t())}}function ed(e){za=l,u=cd,Va(Za),dd&&g({type:"ExitStatus",value:e})}function wa(e){e&&s.print(e),za=l,g("abort() at "+Error().stack)}if(lc=$,s.callMain=s.$d=function(e){function t(){for(var e=0;3>e;e++)i.push(0)}w(0==L,"cannot call main when async dependencies remain! (listen on __ATMAIN__)"),w(0==Wa.length,"cannot call main when preRun functions remain to be called"),e=e||[],ab||(ab=l,Va(Xa));var r,n=e.length+1,i=[F(J("/bin/this.program"),"i8",Ka)];t();for(var a=0;a<n-1;a+=1)i.push(F(J(e[a]),"i8",Ka)),t();i.push(0),i=F(i,"i32",Ka),cd=u,dd=l;try{r=s._main(n,i,0)}catch(e){if(e&&"object"==typeof e&&"ExitStatus"==e.type)return s.print("Exit Status: "+e.value),e.value;"SimulateInfiniteLoop"==e?s.noExitRuntime=l:g(e)}finally{dd=p}s.noExitRuntime||ed(r)},s.run=s.we=lb,s.exit=s.de=ed,s.abort=s.abort=wa,s.preInit)for("function"==typeof s.preInit&&(s.preInit=[s.preInit]);0<s.preInit.length;)s.preInit.pop()();var kb=l;s.noInitialRun&&(kb=p),lb();var scrypt=function(){var e={};function t(e){for(var t=new Uint8Array(e.length),r=0;r<e.length;r++){var n=e.charCodeAt(r);if((255&n)!==n)throw{message:"Cannot encode string in Latin1",str:e};t[r]=255&n}return t}function r(e){for(var t=[],r=0;r<e.length;r++)t.push(String.fromCharCode(e[r]));return t.join("")}function n(e,t){var r=t||0,n=scrypt_raw._malloc(e.length+r);scrypt_raw.HEAPU8.set(e,n+r);for(var i=n;i<n+r;i++)scrypt_raw.HEAPU8[i]=0;return n}function i(e){this.length=e,this.address=scrypt_raw._malloc(e)}return i.prototype.extractBytes=function(e){var t=function(e,t){var r=new Uint8Array(t);return r.set(scrypt_raw.HEAPU8.subarray(e,e+t)),r}(this.address+(e||0),this.length-(e||0));return scrypt_raw._free(this.address),this.address=null,t},e.encode_utf8=function(e){return t(unescape(encodeURIComponent(e)))},e.encode_latin1=t,e.decode_utf8=function(e){return decodeURIComponent(escape(r(e)))},e.decode_latin1=r,e.to_hex=function(e){for(var t=[],r=0;r<e.length;r++)t.push("0123456789abcdef"[e[r]>>4&15]),t.push("0123456789abcdef"[15&e[r]]);return t.join("")},e.crypto_scrypt=function(e,t,r,a,o,s){var f=new i(s),u=n(e),c=n(t);return function(e,t){if(0!==t)throw{message:"scrypt_raw."+e+" signalled an error"}}("_crypto_scrypt",scrypt_raw._crypto_scrypt(u,e.length,c,t.length,r,0,a,o,f.address,f.length)),function(e){for(var t=0;t<e.length;t++)scrypt_raw._free(e[t])}([u,c]),f.extractBytes()},e}();return scrypt}}).call(this,__webpack_require__(9),"/",__webpack_require__(64)(module))},function(e,t,r){(function(t){var n=r(98),i=r(55);e.exports=function(e,r,a){for(var o=i.apply(null,arguments),s=n(o.options.maxmem),f=Array.prototype.slice.apply(o.password),u=(r=Array.prototype.slice.apply(o.salt),s.crypto_scrypt(f,r,o.options.cost,o.options.blockSize,o.options.parallel,o.options.size)),c=new t(u.length),l=0;l<u.length;l++)c[l]=u[l];return c}}).call(this,r(5).Buffer)},function(e,t){t.endianness=function(){return"LE"},t.hostname=function(){return"undefined"!=typeof location?location.hostname:""},t.loadavg=function(){return[]},t.uptime=function(){return 0},t.freemem=function(){return Number.MAX_VALUE},t.totalmem=function(){return Number.MAX_VALUE},t.cpus=function(){return[]},t.type=function(){return"Browser"},t.release=function(){return"undefined"!=typeof navigator?navigator.appVersion:""},t.networkInterfaces=t.getNetworkInterfaces=function(){return{}},t.arch=function(){return"javascript"},t.platform=function(){return"browser"},t.tmpdir=t.tmpDir=function(){return"/tmp"},t.EOL="\n",t.homedir=function(){return"/"}},function(e,t,r){(function(e){t.Pool=function(t){var r={},n=t.idleTimeoutMillis||3e4,i=t.reapIntervalMillis||1e3,a=!("refreshIdle"in t)||t.refreshIdle,o=[],s=new function(e){var t,r,n={},i=null;for(e=Math.max(0|+e,1),t=[],r=0;r<e;r+=1)t.push([]);return n.size=function(){var r;if(null===i)for(i=0,r=0;r<e;r+=1)i+=t[r].length;return i},n.enqueue=function(r,n){var a;i=null,(n=n&&0|+n||0)&&(a=n,(n<0||n>=e)&&(n=e-1,console.error("invalid priority: "+a+" must be between 0 and "+n))),t[n].push(r)},n.dequeue=function(e){var r,n=null,a=t.length;for(i=null,r=0;r<a;r+=1)if(t[r].length){n=t[r].shift();break}return n},n}(t.priorityRange||1),f=0,u=!1,c=null,l=!1,d=t.log?function(e,r){"function"==typeof t.log?t.log(e,r):console.log(r.toUpperCase()+" pool "+t.name+" - "+e)}:function(){};function h(){var e,n,i,s,c=[],l=(new Date).getTime();for(u=!1,e=0,n=o.length;e<n&&(a||f-t.min>c.length);e+=1)l>=(s=o[e].timeout)&&(d("removeIdle() destroying obj - now:"+l+" timeout:"+s,"verbose"),c.push(o[e].obj));for(e=0,i=c.length;e<i;e+=1)r.destroy(c[e]);(n=o.length)>0?(d("availableObjects.length="+n,"verbose"),p()):d("removeIdle() all objects removed","verbose")}function p(){u||(u=!0,c=setTimeout(h,i))}function b(){var e=null,n=s.size();if(d("dispense() clients="+n+" available="+o.length,"info"),n>0){for(;o.length>0;){if(d("dispense() - reusing obj","verbose"),e=o[0],t.validate(e.obj))return o.shift(),s.dequeue()(null,e.obj);r.destroy(e.obj)}f<t.max&&v()}}function v(){d("createResource() - creating obj - count="+(f+=1)+" min="+t.min+" max="+t.max,"verbose"),t.create(function(){var t,n,i=s.dequeue();arguments.length>1?(t=arguments[0],n=arguments[1]):(t=arguments[0]instanceof Error?arguments[0]:null,n=arguments[0]instanceof Error?null:arguments[0]),t?(f-=1,i&&i(t,n),e.nextTick(function(){b()})):i?i(t,n):r.release(n)})}function m(){var e,r;if(!l&&f<t.min)for(r=t.min-f,e=0;e<r;e++)v()}return t.validate=t.validate||function(){return!0},t.max=parseInt(t.max,10),t.min=parseInt(t.min,10),t.max=Math.max(isNaN(t.max)?1:t.max,1),t.min=Math.min(isNaN(t.min)?0:t.min,t.max-1),r.destroy=function(e){f-=1,o=o.filter(function(t){return t.obj!==e}),t.destroy(e),m()},r.acquire=function(e,r){if(l)throw new Error("pool is draining and cannot accept work");return s.enqueue(e,r),b(),f<t.max},r.borrow=function(e,t){d("borrow() is deprecated. use acquire() instead","warn"),r.acquire(e,t)},r.release=function(e){if(o.some(function(t){return t.obj===e}))d("release called twice for the same resource: "+(new Error).stack,"error");else{var t={obj:e,timeout:(new Date).getTime()+n};o.push(t),d("timeout: "+t.timeout,"verbose"),b(),p()}},r.returnToPool=function(e){d("returnToPool() is deprecated. use release() instead","warn"),r.release(e)},r.drain=function(e){d("draining","info"),l=!0;var t=function(){s.size()>0?setTimeout(t,100):o.length!=f?setTimeout(t,100):e&&e()};t()},r.destroyAllNow=function(e){d("force destroying all objects","info");var t=o;o=[];for(var n=t.shift();null!==n&&void 0!==n;)r.destroy(n.obj),n=t.shift();u=!1,clearTimeout(c),e&&e()},r.pooled=function(e,t){return function(){var n=arguments,i=n[n.length-1],a="function"==typeof i;r.acquire(function(t,o){if(t)a&&i(t);else{var s=[o].concat(Array.prototype.slice.call(n,0,a?-1:void 0));s.push(function(){r.release(o),a&&i.apply(null,arguments)}),e.apply(null,s)}},t)}},r.getPoolSize=function(){return f},r.getName=function(){return t.name},r.availableObjectsCount=function(){return o.length},r.waitingClientsCount=function(){return s.size()},m(),r}}).call(this,r(9))},function(e,t,r){(function(t,n,i){var a=r(55),o=r(19).fork,s=r(101),f=r(100).cpus().length,u=u=new s.Pool({name:"scrypt-worker",create:function(e){var r=o(t+"/scrypt-async-worker.js");r.controlledExit=!1,r.on("exit",function(){r.controlledExit||n(u.destroy.bind(u,r))}),e(r)},destroy:function(e){try{e.controlledExit=!0,e.disconnect()}catch(e){}},max:Math.max(2,f-1),min:0,idleTimeoutMillis:15e3,log:!1});e.exports=function(e,t,r,n){var o=a.apply(null,arguments),s=o.callback||function(){};delete o.callback,o.password=o.password.toString("base64"),o.salt=o.salt.toString("base64");new Date;u.acquire(function(e,t){if(e)return u.release(t),s(e);t.once("message",function(e){new Date;u.release(t),e.error&&s(e.error),s(null,new i(e.data,"base64"))}),t.send(o)})}}).call(this,"/",r(37).setImmediate,r(5).Buffer)},function(e,t,r){e.exports={hash:r(102),hashSync:r(99)}},function(e,t,r){var n;e.exports=(n=r(6),r(31),n.pad.NoPadding={pad:function(){},unpad:function(){}},n.pad.NoPadding)},function(e,t,r){var n,i;e.exports=(n=r(6),r(31),n.mode.ECB=((i=n.lib.BlockCipherMode.extend()).Encryptor=i.extend({processBlock:function(e,t){this._cipher.encryptBlock(e,t)}}),i.Decryptor=i.extend({processBlock:function(e,t){this._cipher.decryptBlock(e,t)}}),i),n.mode.ECB)},function(e,t,r){var n,i,a,o,s,f,u;e.exports=(n=r(6),a=(i=n).lib,o=a.Base,s=i.enc,f=s.Utf8,u=i.algo,void(u.HMAC=o.extend({init:function(e,t){e=this._hasher=new e.init,"string"==typeof t&&(t=f.parse(t));var r=e.blockSize,n=4*r;t.sigBytes>n&&(t=e.finalize(t)),t.clamp();for(var i=this._oKey=t.clone(),a=this._iKey=t.clone(),o=i.words,s=a.words,u=0;u<r;u++)o[u]^=1549556828,s[u]^=909522486;i.sigBytes=a.sigBytes=n,this.reset()},reset:function(){var e=this._hasher;e.reset(),e.update(this._iKey)},update:function(e){return this._hasher.update(e),this},finalize:function(e){var t=this._hasher,r=t.finalize(e);t.reset();var n=t.finalize(this._oKey.clone().concat(r));return n}})))},function(e,t,r){var n,i,a,o,s,f,u;e.exports=(n=r(6),a=(i=n).lib,o=a.WordArray,s=a.Hasher,f=[],u=i.algo.SHA1=s.extend({_doReset:function(){this._hash=new o.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(e,t){for(var r=this._hash.words,n=r[0],i=r[1],a=r[2],o=r[3],s=r[4],u=0;u<80;u++){if(u<16)f[u]=0|e[t+u];else{var c=f[u-3]^f[u-8]^f[u-14]^f[u-16];f[u]=c<<1|c>>>31}var l=(n<<5|n>>>27)+s+f[u];l+=u<20?1518500249+(i&a|~i&o):u<40?1859775393+(i^a^o):u<60?(i&a|i&o|a&o)-1894007588:(i^a^o)-899497514,s=o,o=a,a=i<<30|i>>>2,i=n,n=l}r[0]=r[0]+n|0,r[1]=r[1]+i|0,r[2]=r[2]+a|0,r[3]=r[3]+o|0,r[4]=r[4]+s|0},_doFinalize:function(){var e=this._data,t=e.words,r=8*this._nDataBytes,n=8*e.sigBytes;return t[n>>>5]|=128<<24-n%32,t[14+(n+64>>>9<<4)]=Math.floor(r/4294967296),t[15+(n+64>>>9<<4)]=r,e.sigBytes=4*t.length,this._process(),this._hash},clone:function(){var e=s.clone.call(this);return e._hash=this._hash.clone(),e}}),i.SHA1=s._createHelper(u),i.HmacSHA1=s._createHmacHelper(u),n.SHA1)},function(e,t,r){var n;e.exports=(n=r(6),function(e){var t=n,r=t.lib,i=r.WordArray,a=r.Hasher,o=t.algo,s=[];!function(){for(var t=0;t<64;t++)s[t]=4294967296*e.abs(e.sin(t+1))|0}();var f=o.MD5=a.extend({_doReset:function(){this._hash=new i.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(e,t){for(var r=0;r<16;r++){var n=t+r,i=e[n];e[n]=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8)}var a=this._hash.words,o=e[t+0],f=e[t+1],h=e[t+2],p=e[t+3],b=e[t+4],v=e[t+5],m=e[t+6],g=e[t+7],y=e[t+8],w=e[t+9],_=e[t+10],S=e[t+11],k=e[t+12],x=e[t+13],A=e[t+14],M=e[t+15],E=a[0],T=a[1],I=a[2],P=a[3];T=d(T=d(T=d(T=d(T=l(T=l(T=l(T=l(T=c(T=c(T=c(T=c(T=u(T=u(T=u(T=u(T,I=u(I,P=u(P,E=u(E,T,I,P,o,7,s[0]),T,I,f,12,s[1]),E,T,h,17,s[2]),P,E,p,22,s[3]),I=u(I,P=u(P,E=u(E,T,I,P,b,7,s[4]),T,I,v,12,s[5]),E,T,m,17,s[6]),P,E,g,22,s[7]),I=u(I,P=u(P,E=u(E,T,I,P,y,7,s[8]),T,I,w,12,s[9]),E,T,_,17,s[10]),P,E,S,22,s[11]),I=u(I,P=u(P,E=u(E,T,I,P,k,7,s[12]),T,I,x,12,s[13]),E,T,A,17,s[14]),P,E,M,22,s[15]),I=c(I,P=c(P,E=c(E,T,I,P,f,5,s[16]),T,I,m,9,s[17]),E,T,S,14,s[18]),P,E,o,20,s[19]),I=c(I,P=c(P,E=c(E,T,I,P,v,5,s[20]),T,I,_,9,s[21]),E,T,M,14,s[22]),P,E,b,20,s[23]),I=c(I,P=c(P,E=c(E,T,I,P,w,5,s[24]),T,I,A,9,s[25]),E,T,p,14,s[26]),P,E,y,20,s[27]),I=c(I,P=c(P,E=c(E,T,I,P,x,5,s[28]),T,I,h,9,s[29]),E,T,g,14,s[30]),P,E,k,20,s[31]),I=l(I,P=l(P,E=l(E,T,I,P,v,4,s[32]),T,I,y,11,s[33]),E,T,S,16,s[34]),P,E,A,23,s[35]),I=l(I,P=l(P,E=l(E,T,I,P,f,4,s[36]),T,I,b,11,s[37]),E,T,g,16,s[38]),P,E,_,23,s[39]),I=l(I,P=l(P,E=l(E,T,I,P,x,4,s[40]),T,I,o,11,s[41]),E,T,p,16,s[42]),P,E,m,23,s[43]),I=l(I,P=l(P,E=l(E,T,I,P,w,4,s[44]),T,I,k,11,s[45]),E,T,M,16,s[46]),P,E,h,23,s[47]),I=d(I,P=d(P,E=d(E,T,I,P,o,6,s[48]),T,I,g,10,s[49]),E,T,A,15,s[50]),P,E,v,21,s[51]),I=d(I,P=d(P,E=d(E,T,I,P,k,6,s[52]),T,I,p,10,s[53]),E,T,_,15,s[54]),P,E,f,21,s[55]),I=d(I,P=d(P,E=d(E,T,I,P,y,6,s[56]),T,I,M,10,s[57]),E,T,m,15,s[58]),P,E,x,21,s[59]),I=d(I,P=d(P,E=d(E,T,I,P,b,6,s[60]),T,I,S,10,s[61]),E,T,h,15,s[62]),P,E,w,21,s[63]),a[0]=a[0]+E|0,a[1]=a[1]+T|0,a[2]=a[2]+I|0,a[3]=a[3]+P|0},_doFinalize:function(){var t=this._data,r=t.words,n=8*this._nDataBytes,i=8*t.sigBytes;r[i>>>5]|=128<<24-i%32;var a=e.floor(n/4294967296),o=n;r[15+(i+64>>>9<<4)]=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),r[14+(i+64>>>9<<4)]=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8),t.sigBytes=4*(r.length+1),this._process();for(var s=this._hash,f=s.words,u=0;u<4;u++){var c=f[u];f[u]=16711935&(c<<8|c>>>24)|4278255360&(c<<24|c>>>8)}return s},clone:function(){var e=a.clone.call(this);return e._hash=this._hash.clone(),e}});function u(e,t,r,n,i,a,o){var s=e+(t&r|~t&n)+i+o;return(s<<a|s>>>32-a)+t}function c(e,t,r,n,i,a,o){var s=e+(t&n|r&~n)+i+o;return(s<<a|s>>>32-a)+t}function l(e,t,r,n,i,a,o){var s=e+(t^r^n)+i+o;return(s<<a|s>>>32-a)+t}function d(e,t,r,n,i,a,o){var s=e+(r^(t|~n))+i+o;return(s<<a|s>>>32-a)+t}t.MD5=a._createHelper(f),t.HmacMD5=a._createHmacHelper(f)}(Math),n.MD5)},function(e,t,r){var n,i,a;e.exports=(n=r(6),a=(i=n).lib.WordArray,i.enc.Base64={stringify:function(e){var t=e.words,r=e.sigBytes,n=this._map;e.clamp();for(var i=[],a=0;a<r;a+=3)for(var o=(t[a>>>2]>>>24-a%4*8&255)<<16|(t[a+1>>>2]>>>24-(a+1)%4*8&255)<<8|t[a+2>>>2]>>>24-(a+2)%4*8&255,s=0;s<4&&a+.75*s<r;s++)i.push(n.charAt(o>>>6*(3-s)&63));var f=n.charAt(64);if(f)for(;i.length%4;)i.push(f);return i.join("")},parse:function(e){var t=e.length,r=this._map,n=this._reverseMap;if(!n){n=this._reverseMap=[];for(var i=0;i<r.length;i++)n[r.charCodeAt(i)]=i}var o=r.charAt(64);if(o){var s=e.indexOf(o);-1!==s&&(t=s)}return function(e,t,r){for(var n=[],i=0,o=0;o<t;o++)if(o%4){var s=r[e.charCodeAt(o-1)]<<o%4*2,f=r[e.charCodeAt(o)]>>>6-o%4*2;n[i>>>2]|=(s|f)<<24-i%4*8,i++}return a.create(n,i)}(e,t,n)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="},n.enc.Base64)},function(e,t,r){var n;e.exports=(n=r(6),r(109),r(108),r(56),r(31),function(){var e=n,t=e.lib.BlockCipher,r=e.algo,i=[],a=[],o=[],s=[],f=[],u=[],c=[],l=[],d=[],h=[];!function(){for(var e=[],t=0;t<256;t++)e[t]=t<128?t<<1:t<<1^283;var r=0,n=0;for(t=0;t<256;t++){var p=n^n<<1^n<<2^n<<3^n<<4;p=p>>>8^255&p^99,i[r]=p,a[p]=r;var b=e[r],v=e[b],m=e[v],g=257*e[p]^16843008*p;o[r]=g<<24|g>>>8,s[r]=g<<16|g>>>16,f[r]=g<<8|g>>>24,u[r]=g,g=16843009*m^65537*v^257*b^16843008*r,c[p]=g<<24|g>>>8,l[p]=g<<16|g>>>16,d[p]=g<<8|g>>>24,h[p]=g,r?(r=b^e[e[e[m^b]]],n^=e[e[n]]):r=n=1}}();var p=[0,1,2,4,8,16,32,64,128,27,54],b=r.AES=t.extend({_doReset:function(){if(!this._nRounds||this._keyPriorReset!==this._key){for(var e=this._keyPriorReset=this._key,t=e.words,r=e.sigBytes/4,n=4*((this._nRounds=r+6)+1),a=this._keySchedule=[],o=0;o<n;o++)if(o<r)a[o]=t[o];else{var s=a[o-1];o%r?r>6&&o%r==4&&(s=i[s>>>24]<<24|i[s>>>16&255]<<16|i[s>>>8&255]<<8|i[255&s]):(s=i[(s=s<<8|s>>>24)>>>24]<<24|i[s>>>16&255]<<16|i[s>>>8&255]<<8|i[255&s],s^=p[o/r|0]<<24),a[o]=a[o-r]^s}for(var f=this._invKeySchedule=[],u=0;u<n;u++)o=n-u,s=u%4?a[o]:a[o-4],f[u]=u<4||o<=4?s:c[i[s>>>24]]^l[i[s>>>16&255]]^d[i[s>>>8&255]]^h[i[255&s]]}},encryptBlock:function(e,t){this._doCryptBlock(e,t,this._keySchedule,o,s,f,u,i)},decryptBlock:function(e,t){var r=e[t+1];e[t+1]=e[t+3],e[t+3]=r,this._doCryptBlock(e,t,this._invKeySchedule,c,l,d,h,a),r=e[t+1],e[t+1]=e[t+3],e[t+3]=r},_doCryptBlock:function(e,t,r,n,i,a,o,s){for(var f=this._nRounds,u=e[t]^r[0],c=e[t+1]^r[1],l=e[t+2]^r[2],d=e[t+3]^r[3],h=4,p=1;p<f;p++){var b=n[u>>>24]^i[c>>>16&255]^a[l>>>8&255]^o[255&d]^r[h++],v=n[c>>>24]^i[l>>>16&255]^a[d>>>8&255]^o[255&u]^r[h++],m=n[l>>>24]^i[d>>>16&255]^a[u>>>8&255]^o[255&c]^r[h++],g=n[d>>>24]^i[u>>>16&255]^a[c>>>8&255]^o[255&l]^r[h++];u=b,c=v,l=m,d=g}b=(s[u>>>24]<<24|s[c>>>16&255]<<16|s[l>>>8&255]<<8|s[255&d])^r[h++],v=(s[c>>>24]<<24|s[l>>>16&255]<<16|s[d>>>8&255]<<8|s[255&u])^r[h++],m=(s[l>>>24]<<24|s[d>>>16&255]<<16|s[u>>>8&255]<<8|s[255&c])^r[h++],g=(s[d>>>24]<<24|s[u>>>16&255]<<16|s[c>>>8&255]<<8|s[255&l])^r[h++],e[t]=b,e[t+1]=v,e[t+2]=m,e[t+3]=g},keySize:8});e.AES=t._createHelper(b)}(),n.AES)},function(e,t,r){var n;e.exports=(n=r(6),n.enc.Latin1)},function(e,t){},function(e,t,r){(function(n,i){var a;!function(o){"use strict";function s(e,t){if(t=t||{type:"Array"},void 0!==n&&"number"==typeof n.pid)return function(e,t){var n=r(112).randomBytes(e);switch(t.type){case"Array":return[].slice.call(n);case"Buffer":return n;case"Uint8Array":for(var i=new Uint8Array(e),a=0;a<e;++a)i[a]=n.readUInt8(a);return i;default:throw new Error(t.type+" is unsupported.")}}(e,t);if(!(window.crypto||window.msCrypto))throw new Error("Your browser does not support window.crypto.");return function(e,t){var r=new Uint8Array(e);switch((window.crypto||window.msCrypto).getRandomValues(r),t.type){case"Array":return[].slice.call(r);case"Buffer":try{new i(1)}catch(e){throw new Error("Buffer not supported in this environment. Use Node.js or Browserify for browser support.")}return new i(r);case"Uint8Array":return r;default:throw new Error(t.type+" is unsupported.")}}(e,t)}void 0===(a=function(){return s}.apply(t,[]))||(e.exports=a),s.randomArray=function(e){return s(e,{type:"Array"})},s.randomUint8Array=function(e){return s(e,{type:"Uint8Array"})},s.randomBuffer=function(e){return s(e,{type:"Buffer"})}}()}).call(this,r(9),r(5).Buffer)},function(e,t){"function"==typeof Object.create?e.exports=function(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}:e.exports=function(e,t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}},function(e,t){e.exports=function(e){return e&&"object"==typeof e&&"function"==typeof e.copy&&"function"==typeof e.fill&&"function"==typeof e.readUInt8}},function(e,t,r){var n;/*! bignumber.js v5.0.0 https://github.com/MikeMcl/bignumber.js/LICENCE */!function(i){"use strict";var a,o=/^-?(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,s=Math.ceil,f=Math.floor,u=" not a boolean or binary digit",c="rounding mode",l="number type has more than 15 significant digits",d="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ$_",h=1e14,p=14,b=9007199254740991,v=[1,10,100,1e3,1e4,1e5,1e6,1e7,1e8,1e9,1e10,1e11,1e12,1e13],m=1e7,g=1e9;function y(e){var t=0|e;return e>0||e===t?t:t-1}function w(e){for(var t,r,n=1,i=e.length,a=e[0]+"";n<i;){for(t=e[n++]+"",r=p-t.length;r--;t="0"+t);a+=t}for(i=a.length;48===a.charCodeAt(--i););return a.slice(0,i+1||1)}function _(e,t){var r,n,i=e.c,a=t.c,o=e.s,s=t.s,f=e.e,u=t.e;if(!o||!s)return null;if(r=i&&!i[0],n=a&&!a[0],r||n)return r?n?0:-s:o;if(o!=s)return o;if(r=o<0,n=f==u,!i||!a)return n?0:!i^r?1:-1;if(!n)return f>u^r?1:-1;for(s=(f=i.length)<(u=a.length)?f:u,o=0;o<s;o++)if(i[o]!=a[o])return i[o]>a[o]^r?1:-1;return f==u?0:f>u^r?1:-1}function S(e,t,r){return(e=E(e))>=t&&e<=r}function k(e){return"[object Array]"==Object.prototype.toString.call(e)}function x(e,t,r){for(var n,i,a=[0],o=0,s=e.length;o<s;){for(i=a.length;i--;a[i]*=t);for(a[n=0]+=d.indexOf(e.charAt(o++));n<a.length;n++)a[n]>r-1&&(null==a[n+1]&&(a[n+1]=0),a[n+1]+=a[n]/r|0,a[n]%=r)}return a.reverse()}function A(e,t){return(e.length>1?e.charAt(0)+"."+e.slice(1):e)+(t<0?"e":"e+")+t}function M(e,t){var r,n;if(t<0){for(n="0.";++t;n+="0");e=n+e}else if(++t>(r=e.length)){for(n="0",t-=r;--t;n+="0");e+=n}else t<r&&(e=e.slice(0,t)+"."+e.slice(t));return e}function E(e){return(e=parseFloat(e))<0?s(e):f(e)}(a=function e(t){var r,n,i,a,T,I,P,O,R=0,C=W.prototype,j=new W(1),B=20,N=4,F=-7,L=21,z=-1e7,H=1e7,U=!0,D=Q,q=!1,Y=1,K=0,V={decimalSeparator:".",groupSeparator:",",groupSize:3,secondaryGroupSize:0,fractionGroupSeparator:" ",fractionGroupSize:0};function W(e,t){var r,i,a,s,u,c,h=this;if(!(h instanceof W))return new W(e,t);if(null!=t&&D(t,2,64,R,"base")){if(c=e+"",10==(t|=0))return ee(h=new W(e instanceof W?e:c),B+h.e+1,N);if((s="number"==typeof e)&&0*e!=0||!new RegExp("^-?"+(r="["+d.slice(0,t)+"]+")+"(?:\\."+r+")?$",t<37?"i":"").test(c))return n(h,c,s,t);s?(h.s=1/e<0?(c=c.slice(1),-1):1,U&&c.replace(/^0\.0*|\./,"").length>15&&J(R,l,e),s=!1):h.s=45===c.charCodeAt(0)?(c=c.slice(1),-1):1,c=X(c,10,t,h.s)}else{if(e instanceof W)return h.s=e.s,h.e=e.e,h.c=(e=e.c)?e.slice():e,void(R=0);if((s="number"==typeof e)&&0*e==0){if(h.s=1/e<0?(e=-e,-1):1,e===~~e){for(i=0,a=e;a>=10;a/=10,i++);return h.e=i,h.c=[e],void(R=0)}c=e+""}else{if(!o.test(c=e+""))return n(h,c,s);h.s=45===c.charCodeAt(0)?(c=c.slice(1),-1):1}}for((i=c.indexOf("."))>-1&&(c=c.replace(".","")),(a=c.search(/e/i))>0?(i<0&&(i=a),i+=+c.slice(a+1),c=c.substring(0,a)):i<0&&(i=c.length),a=0;48===c.charCodeAt(a);a++);for(u=c.length;48===c.charCodeAt(--u););if(c=c.slice(a,u+1))if(u=c.length,s&&U&&u>15&&(e>b||e!==f(e))&&J(R,l,h.s*e),(i=i-a-1)>H)h.c=h.e=null;else if(i<z)h.c=[h.e=0];else{if(h.e=i,h.c=[],a=(i+1)%p,i<0&&(a+=p),a<u){for(a&&h.c.push(+c.slice(0,a)),u-=p;a<u;)h.c.push(+c.slice(a,a+=p));c=c.slice(a),a=p-c.length}else a-=u;for(;a--;c+="0");h.c.push(+c)}else h.c=[h.e=0];R=0}function X(e,t,n,i){var a,o,s,f,u,c,l,h=e.indexOf("."),p=B,b=N;for(n<37&&(e=e.toLowerCase()),h>=0&&(s=K,K=0,e=e.replace(".",""),u=(l=new W(n)).pow(e.length-h),K=s,l.c=x(M(w(u.c),u.e),10,t),l.e=l.c.length),o=s=(c=x(e,n,t)).length;0==c[--s];c.pop());if(!c[0])return"0";if(h<0?--o:(u.c=c,u.e=o,u.s=i,c=(u=r(u,l,p,b,t)).c,f=u.r,o=u.e),h=c[a=o+p+1],s=t/2,f=f||a<0||null!=c[a+1],f=b<4?(null!=h||f)&&(0==b||b==(u.s<0?3:2)):h>s||h==s&&(4==b||f||6==b&&1&c[a-1]||b==(u.s<0?8:7)),a<1||!c[0])e=f?M("1",-p):"0";else{if(c.length=a,f)for(--t;++c[--a]>t;)c[a]=0,a||(++o,c=[1].concat(c));for(s=c.length;!c[--s];);for(h=0,e="";h<=s;e+=d.charAt(c[h++]));e=M(e,o)}return e}function Z(e,t,r,n){var i,a,o,s,f;if(r=null!=r&&D(r,0,8,n,c)?0|r:N,!e.c)return e.toString();if(i=e.c[0],o=e.e,null==t)f=w(e.c),f=19==n||24==n&&o<=F?A(f,o):M(f,o);else if(a=(e=ee(new W(e),t,r)).e,s=(f=w(e.c)).length,19==n||24==n&&(t<=a||a<=F)){for(;s<t;f+="0",s++);f=A(f,a)}else if(t-=o,f=M(f,a),a+1>s){if(--t>0)for(f+=".";t--;f+="0");}else if((t+=a-s)>0)for(a+1==s&&(f+=".");t--;f+="0");return e.s<0&&i?"-"+f:f}function G(e,t){var r,n,i=0;for(k(e[0])&&(e=e[0]),r=new W(e[0]);++i<e.length;){if(!(n=new W(e[i])).s){r=n;break}t.call(r,n)&&(r=n)}return r}function Q(e,t,r,n,i){return(e<t||e>r||e!=E(e))&&J(n,(i||"decimal places")+(e<t||e>r?" out of range":" not an integer"),e),!0}function $(e,t,r){for(var n=1,i=t.length;!t[--i];t.pop());for(i=t[0];i>=10;i/=10,n++);return(r=n+r*p-1)>H?e.c=e.e=null:r<z?e.c=[e.e=0]:(e.e=r,e.c=t),e}function J(e,t,r){var n=new Error(["new BigNumber","cmp","config","div","divToInt","eq","gt","gte","lt","lte","minus","mod","plus","precision","random","round","shift","times","toDigits","toExponential","toFixed","toFormat","toFraction","pow","toPrecision","toString","BigNumber"][e]+"() "+t+": "+r);throw n.name="BigNumber Error",R=0,n}function ee(e,t,r,n){var i,a,o,u,c,l,d,b=e.c,m=v;if(b){e:{for(i=1,u=b[0];u>=10;u/=10,i++);if((a=t-i)<0)a+=p,o=t,d=(c=b[l=0])/m[i-o-1]%10|0;else if((l=s((a+1)/p))>=b.length){if(!n)break e;for(;b.length<=l;b.push(0));c=d=0,i=1,o=(a%=p)-p+1}else{for(c=u=b[l],i=1;u>=10;u/=10,i++);d=(o=(a%=p)-p+i)<0?0:c/m[i-o-1]%10|0}if(n=n||t<0||null!=b[l+1]||(o<0?c:c%m[i-o-1]),n=r<4?(d||n)&&(0==r||r==(e.s<0?3:2)):d>5||5==d&&(4==r||n||6==r&&(a>0?o>0?c/m[i-o]:0:b[l-1])%10&1||r==(e.s<0?8:7)),t<1||!b[0])return b.length=0,n?(t-=e.e+1,b[0]=m[(p-t%p)%p],e.e=-t||0):b[0]=e.e=0,e;if(0==a?(b.length=l,u=1,l--):(b.length=l+1,u=m[p-a],b[l]=o>0?f(c/m[i-o]%m[o])*u:0),n)for(;;){if(0==l){for(a=1,o=b[0];o>=10;o/=10,a++);for(o=b[0]+=u,u=1;o>=10;o/=10,u++);a!=u&&(e.e++,b[0]==h&&(b[0]=1));break}if(b[l]+=u,b[l]!=h)break;b[l--]=0,u=1}for(a=b.length;0===b[--a];b.pop());}e.e>H?e.c=e.e=null:e.e<z&&(e.c=[e.e=0])}return e}return W.another=e,W.ROUND_UP=0,W.ROUND_DOWN=1,W.ROUND_CEIL=2,W.ROUND_FLOOR=3,W.ROUND_HALF_UP=4,W.ROUND_HALF_DOWN=5,W.ROUND_HALF_EVEN=6,W.ROUND_HALF_CEIL=7,W.ROUND_HALF_FLOOR=8,W.EUCLID=9,W.config=W.set=function(){var e,t,r=0,n={},i=arguments,a=i[0],o=a&&"object"==typeof a?function(){if(a.hasOwnProperty(t))return null!=(e=a[t])}:function(){if(i.length>r)return null!=(e=i[r++])};return o(t="DECIMAL_PLACES")&&D(e,0,g,2,t)&&(B=0|e),n[t]=B,o(t="ROUNDING_MODE")&&D(e,0,8,2,t)&&(N=0|e),n[t]=N,o(t="EXPONENTIAL_AT")&&(k(e)?D(e[0],-g,0,2,t)&&D(e[1],0,g,2,t)&&(F=0|e[0],L=0|e[1]):D(e,-g,g,2,t)&&(F=-(L=0|(e<0?-e:e)))),n[t]=[F,L],o(t="RANGE")&&(k(e)?D(e[0],-g,-1,2,t)&&D(e[1],1,g,2,t)&&(z=0|e[0],H=0|e[1]):D(e,-g,g,2,t)&&(0|e?z=-(H=0|(e<0?-e:e)):U&&J(2,t+" cannot be zero",e))),n[t]=[z,H],o(t="ERRORS")&&(e===!!e||1===e||0===e?(R=0,D=(U=!!e)?Q:S):U&&J(2,t+u,e)),n[t]=U,o(t="CRYPTO")&&(!0===e||!1===e||1===e||0===e?e?!(e="undefined"==typeof crypto)&&crypto&&(crypto.getRandomValues||crypto.randomBytes)?q=!0:U?J(2,"crypto unavailable",e?void 0:crypto):q=!1:q=!1:U&&J(2,t+u,e)),n[t]=q,o(t="MODULO_MODE")&&D(e,0,9,2,t)&&(Y=0|e),n[t]=Y,o(t="POW_PRECISION")&&D(e,0,g,2,t)&&(K=0|e),n[t]=K,o(t="FORMAT")&&("object"==typeof e?V=e:U&&J(2,t+" not an object",e)),n[t]=V,n},W.max=function(){return G(arguments,C.lt)},W.min=function(){return G(arguments,C.gt)},W.random=(i=9007199254740992*Math.random()&2097151?function(){return f(9007199254740992*Math.random())}:function(){return 8388608*(1073741824*Math.random()|0)+(8388608*Math.random()|0)},function(e){var t,r,n,a,o,u=0,c=[],l=new W(j);if(e=null!=e&&D(e,0,g,14)?0|e:B,a=s(e/p),q)if(crypto.getRandomValues){for(t=crypto.getRandomValues(new Uint32Array(a*=2));u<a;)(o=131072*t[u]+(t[u+1]>>>11))>=9e15?(r=crypto.getRandomValues(new Uint32Array(2)),t[u]=r[0],t[u+1]=r[1]):(c.push(o%1e14),u+=2);u=a/2}else if(crypto.randomBytes){for(t=crypto.randomBytes(a*=7);u<a;)(o=281474976710656*(31&t[u])+1099511627776*t[u+1]+4294967296*t[u+2]+16777216*t[u+3]+(t[u+4]<<16)+(t[u+5]<<8)+t[u+6])>=9e15?crypto.randomBytes(7).copy(t,u):(c.push(o%1e14),u+=7);u=a/7}else q=!1,U&&J(14,"crypto unavailable",crypto);if(!q)for(;u<a;)(o=i())<9e15&&(c[u++]=o%1e14);for(a=c[--u],e%=p,a&&e&&(o=v[p-e],c[u]=f(a/o)*o);0===c[u];c.pop(),u--);if(u<0)c=[n=0];else{for(n=-1;0===c[0];c.splice(0,1),n-=p);for(u=1,o=c[0];o>=10;o/=10,u++);u<p&&(n-=p-u)}return l.e=n,l.c=c,l}),r=function(){function e(e,t,r){var n,i,a,o,s=0,f=e.length,u=t%m,c=t/m|0;for(e=e.slice();f--;)s=((i=u*(a=e[f]%m)+(n=c*a+(o=e[f]/m|0)*u)%m*m+s)/r|0)+(n/m|0)+c*o,e[f]=i%r;return s&&(e=[s].concat(e)),e}function t(e,t,r,n){var i,a;if(r!=n)a=r>n?1:-1;else for(i=a=0;i<r;i++)if(e[i]!=t[i]){a=e[i]>t[i]?1:-1;break}return a}function r(e,t,r,n){for(var i=0;r--;)e[r]-=i,i=e[r]<t[r]?1:0,e[r]=i*n+e[r]-t[r];for(;!e[0]&&e.length>1;e.splice(0,1));}return function(n,i,a,o,s){var u,c,l,d,b,v,m,g,w,_,S,k,x,A,M,E,T,I=n.s==i.s?1:-1,P=n.c,O=i.c;if(!(P&&P[0]&&O&&O[0]))return new W(n.s&&i.s&&(P?!O||P[0]!=O[0]:O)?P&&0==P[0]||!O?0*I:I/0:NaN);for(w=(g=new W(I)).c=[],I=a+(c=n.e-i.e)+1,s||(s=h,c=y(n.e/p)-y(i.e/p),I=I/p|0),l=0;O[l]==(P[l]||0);l++);if(O[l]>(P[l]||0)&&c--,I<0)w.push(1),d=!0;else{for(A=P.length,E=O.length,l=0,I+=2,(b=f(s/(O[0]+1)))>1&&(O=e(O,b,s),P=e(P,b,s),E=O.length,A=P.length),x=E,S=(_=P.slice(0,E)).length;S<E;_[S++]=0);T=O.slice(),T=[0].concat(T),M=O[0],O[1]>=s/2&&M++;do{if(b=0,(u=t(O,_,E,S))<0){if(k=_[0],E!=S&&(k=k*s+(_[1]||0)),(b=f(k/M))>1)for(b>=s&&(b=s-1),m=(v=e(O,b,s)).length,S=_.length;1==t(v,_,m,S);)b--,r(v,E<m?T:O,m,s),m=v.length,u=1;else 0==b&&(u=b=1),m=(v=O.slice()).length;if(m<S&&(v=[0].concat(v)),r(_,v,S,s),S=_.length,-1==u)for(;t(O,_,E,S)<1;)b++,r(_,E<S?T:O,S,s),S=_.length}else 0===u&&(b++,_=[0]);w[l++]=b,_[0]?_[S++]=P[x]||0:(_=[P[x]],S=1)}while((x++<A||null!=_[0])&&I--);d=null!=_[0],w[0]||w.splice(0,1)}if(s==h){for(l=1,I=w[0];I>=10;I/=10,l++);ee(g,a+(g.e=l+c*p-1)+1,o,d)}else g.e=c,g.r=+d;return g}}(),a=/^(-?)0([xbo])(?=\w[\w.]*$)/i,T=/^([^.]+)\.$/,I=/^\.([^.]+)$/,P=/^-?(Infinity|NaN)$/,O=/^\s*\+(?=[\w.])|^\s+|\s+$/g,n=function(e,t,r,n){var i,o=r?t:t.replace(O,"");if(P.test(o))e.s=isNaN(o)?null:o<0?-1:1;else{if(!r&&(o=o.replace(a,function(e,t,r){return i="x"==(r=r.toLowerCase())?16:"b"==r?2:8,n&&n!=i?e:t}),n&&(i=n,o=o.replace(T,"$1").replace(I,"0.$1")),t!=o))return new W(o,i);U&&J(R,"not a"+(n?" base "+n:"")+" number",t),e.s=null}e.c=e.e=null,R=0},C.absoluteValue=C.abs=function(){var e=new W(this);return e.s<0&&(e.s=1),e},C.ceil=function(){return ee(new W(this),this.e+1,2)},C.comparedTo=C.cmp=function(e,t){return R=1,_(this,new W(e,t))},C.decimalPlaces=C.dp=function(){var e,t,r=this.c;if(!r)return null;if(e=((t=r.length-1)-y(this.e/p))*p,t=r[t])for(;t%10==0;t/=10,e--);return e<0&&(e=0),e},C.dividedBy=C.div=function(e,t){return R=3,r(this,new W(e,t),B,N)},C.dividedToIntegerBy=C.divToInt=function(e,t){return R=4,r(this,new W(e,t),0,1)},C.equals=C.eq=function(e,t){return R=5,0===_(this,new W(e,t))},C.floor=function(){return ee(new W(this),this.e+1,3)},C.greaterThan=C.gt=function(e,t){return R=6,_(this,new W(e,t))>0},C.greaterThanOrEqualTo=C.gte=function(e,t){return R=7,1===(t=_(this,new W(e,t)))||0===t},C.isFinite=function(){return!!this.c},C.isInteger=C.isInt=function(){return!!this.c&&y(this.e/p)>this.c.length-2},C.isNaN=function(){return!this.s},C.isNegative=C.isNeg=function(){return this.s<0},C.isZero=function(){return!!this.c&&0==this.c[0]},C.lessThan=C.lt=function(e,t){return R=8,_(this,new W(e,t))<0},C.lessThanOrEqualTo=C.lte=function(e,t){return R=9,-1===(t=_(this,new W(e,t)))||0===t},C.minus=C.sub=function(e,t){var r,n,i,a,o=this,s=o.s;if(R=10,t=(e=new W(e,t)).s,!s||!t)return new W(NaN);if(s!=t)return e.s=-t,o.plus(e);var f=o.e/p,u=e.e/p,c=o.c,l=e.c;if(!f||!u){if(!c||!l)return c?(e.s=-t,e):new W(l?o:NaN);if(!c[0]||!l[0])return l[0]?(e.s=-t,e):new W(c[0]?o:3==N?-0:0)}if(f=y(f),u=y(u),c=c.slice(),s=f-u){for((a=s<0)?(s=-s,i=c):(u=f,i=l),i.reverse(),t=s;t--;i.push(0));i.reverse()}else for(n=(a=(s=c.length)<(t=l.length))?s:t,s=t=0;t<n;t++)if(c[t]!=l[t]){a=c[t]<l[t];break}if(a&&(i=c,c=l,l=i,e.s=-e.s),(t=(n=l.length)-(r=c.length))>0)for(;t--;c[r++]=0);for(t=h-1;n>s;){if(c[--n]<l[n]){for(r=n;r&&!c[--r];c[r]=t);--c[r],c[n]+=h}c[n]-=l[n]}for(;0==c[0];c.splice(0,1),--u);return c[0]?$(e,c,u):(e.s=3==N?-1:1,e.c=[e.e=0],e)},C.modulo=C.mod=function(e,t){var n,i,a=this;return R=11,e=new W(e,t),!a.c||!e.s||e.c&&!e.c[0]?new W(NaN):!e.c||a.c&&!a.c[0]?new W(a):(9==Y?(i=e.s,e.s=1,n=r(a,e,0,3),e.s=i,n.s*=i):n=r(a,e,0,Y),a.minus(n.times(e)))},C.negated=C.neg=function(){var e=new W(this);return e.s=-e.s||null,e},C.plus=C.add=function(e,t){var r,n=this,i=n.s;if(R=12,t=(e=new W(e,t)).s,!i||!t)return new W(NaN);if(i!=t)return e.s=-t,n.minus(e);var a=n.e/p,o=e.e/p,s=n.c,f=e.c;if(!a||!o){if(!s||!f)return new W(i/0);if(!s[0]||!f[0])return f[0]?e:new W(s[0]?n:0*i)}if(a=y(a),o=y(o),s=s.slice(),i=a-o){for(i>0?(o=a,r=f):(i=-i,r=s),r.reverse();i--;r.push(0));r.reverse()}for((i=s.length)-(t=f.length)<0&&(r=f,f=s,s=r,t=i),i=0;t;)i=(s[--t]=s[t]+f[t]+i)/h|0,s[t]=h===s[t]?0:s[t]%h;return i&&(s=[i].concat(s),++o),$(e,s,o)},C.precision=C.sd=function(e){var t,r,n=this,i=n.c;if(null!=e&&e!==!!e&&1!==e&&0!==e&&(U&&J(13,"argument"+u,e),e!=!!e&&(e=null)),!i)return null;if(t=(r=i.length-1)*p+1,r=i[r]){for(;r%10==0;r/=10,t--);for(r=i[0];r>=10;r/=10,t++);}return e&&n.e+1>t&&(t=n.e+1),t},C.round=function(e,t){var r=new W(this);return(null==e||D(e,0,g,15))&&ee(r,~~e+this.e+1,null!=t&&D(t,0,8,15,c)?0|t:N),r},C.shift=function(e){var t=this;return D(e,-b,b,16,"argument")?t.times("1e"+E(e)):new W(t.c&&t.c[0]&&(e<-b||e>b)?t.s*(e<0?0:1/0):t)},C.squareRoot=C.sqrt=function(){var e,t,n,i,a,o=this,s=o.c,f=o.s,u=o.e,c=B+4,l=new W("0.5");if(1!==f||!s||!s[0])return new W(!f||f<0&&(!s||s[0])?NaN:s?o:1/0);if(0==(f=Math.sqrt(+o))||f==1/0?(((t=w(s)).length+u)%2==0&&(t+="0"),f=Math.sqrt(t),u=y((u+1)/2)-(u<0||u%2),n=new W(t=f==1/0?"1e"+u:(t=f.toExponential()).slice(0,t.indexOf("e")+1)+u)):n=new W(f+""),n.c[0])for((f=(u=n.e)+c)<3&&(f=0);;)if(a=n,n=l.times(a.plus(r(o,a,c,1))),w(a.c).slice(0,f)===(t=w(n.c)).slice(0,f)){if(n.e<u&&--f,"9999"!=(t=t.slice(f-3,f+1))&&(i||"4999"!=t)){+t&&(+t.slice(1)||"5"!=t.charAt(0))||(ee(n,n.e+B+2,1),e=!n.times(n).eq(o));break}if(!i&&(ee(a,a.e+B+2,0),a.times(a).eq(o))){n=a;break}c+=4,f+=4,i=1}return ee(n,n.e+B+1,N,e)},C.times=C.mul=function(e,t){var r,n,i,a,o,s,f,u,c,l,d,b,v,g,w,_=this,S=_.c,k=(R=17,e=new W(e,t)).c;if(!(S&&k&&S[0]&&k[0]))return!_.s||!e.s||S&&!S[0]&&!k||k&&!k[0]&&!S?e.c=e.e=e.s=null:(e.s*=_.s,S&&k?(e.c=[0],e.e=0):e.c=e.e=null),e;for(n=y(_.e/p)+y(e.e/p),e.s*=_.s,(f=S.length)<(l=k.length)&&(v=S,S=k,k=v,i=f,f=l,l=i),i=f+l,v=[];i--;v.push(0));for(g=h,w=m,i=l;--i>=0;){for(r=0,d=k[i]%w,b=k[i]/w|0,a=i+(o=f);a>i;)r=((u=d*(u=S[--o]%w)+(s=b*u+(c=S[o]/w|0)*d)%w*w+v[a]+r)/g|0)+(s/w|0)+b*c,v[a--]=u%g;v[a]=r}return r?++n:v.splice(0,1),$(e,v,n)},C.toDigits=function(e,t){var r=new W(this);return e=null!=e&&D(e,1,g,18,"precision")?0|e:null,t=null!=t&&D(t,0,8,18,c)?0|t:N,e?ee(r,e,t):r},C.toExponential=function(e,t){return Z(this,null!=e&&D(e,0,g,19)?1+~~e:null,t,19)},C.toFixed=function(e,t){return Z(this,null!=e&&D(e,0,g,20)?~~e+this.e+1:null,t,20)},C.toFormat=function(e,t){var r=Z(this,null!=e&&D(e,0,g,21)?~~e+this.e+1:null,t,21);if(this.c){var n,i=r.split("."),a=+V.groupSize,o=+V.secondaryGroupSize,s=V.groupSeparator,f=i[0],u=i[1],c=this.s<0,l=c?f.slice(1):f,d=l.length;if(o&&(n=a,a=o,o=n,d-=n),a>0&&d>0){for(n=d%a||a,f=l.substr(0,n);n<d;n+=a)f+=s+l.substr(n,a);o>0&&(f+=s+l.slice(n)),c&&(f="-"+f)}r=u?f+V.decimalSeparator+((o=+V.fractionGroupSize)?u.replace(new RegExp("\\d{"+o+"}\\B","g"),"$&"+V.fractionGroupSeparator):u):f}return r},C.toFraction=function(e){var t,n,i,a,o,s,f,u,c,l=U,d=this,h=d.c,b=new W(j),m=n=new W(j),g=f=new W(j);if(null!=e&&(U=!1,s=new W(e),U=l,(l=s.isInt())&&!s.lt(j)||(U&&J(22,"max denominator "+(l?"out of range":"not an integer"),e),e=!l&&s.c&&ee(s,s.e+1,1).gte(j)?s:null)),!h)return d.toString();for(c=w(h),a=b.e=c.length-d.e-1,b.c[0]=v[(o=a%p)<0?p+o:o],e=!e||s.cmp(b)>0?a>0?b:m:s,o=H,H=1/0,s=new W(c),f.c[0]=0;u=r(s,b,0,1),1!=(i=n.plus(u.times(g))).cmp(e);)n=g,g=i,m=f.plus(u.times(i=m)),f=i,b=s.minus(u.times(i=b)),s=i;return i=r(e.minus(n),g,0,1),f=f.plus(i.times(m)),n=n.plus(i.times(g)),f.s=m.s=d.s,t=r(m,g,a*=2,N).minus(d).abs().cmp(r(f,n,a,N).minus(d).abs())<1?[m.toString(),g.toString()]:[f.toString(),n.toString()],H=o,t},C.toNumber=function(){return+this},C.toPower=C.pow=function(e,t){var r,n,i,a=f(e<0?-e:+e),o=this;if(null!=t&&(R=23,t=new W(t)),!D(e,-b,b,23,"exponent")&&(!isFinite(e)||a>b&&(e/=0)||parseFloat(e)!=e&&!(e=NaN))||0==e)return r=Math.pow(+o,e),new W(t?r%t:r);for(t?e>1&&o.gt(j)&&o.isInt()&&t.gt(j)&&t.isInt()?o=o.mod(t):(i=t,t=null):K&&(r=s(K/p+2)),n=new W(j);;){if(a%2){if(!(n=n.times(o)).c)break;r?n.c.length>r&&(n.c.length=r):t&&(n=n.mod(t))}if(!(a=f(a/2)))break;o=o.times(o),r?o.c&&o.c.length>r&&(o.c.length=r):t&&(o=o.mod(t))}return t?n:(e<0&&(n=j.div(n)),i?n.mod(i):r?ee(n,K,N):n)},C.toPrecision=function(e,t){return Z(this,null!=e&&D(e,1,g,24,"precision")?0|e:null,t,24)},C.toString=function(e){var t,r=this,n=r.s,i=r.e;return null===i?n?(t="Infinity",n<0&&(t="-"+t)):t="NaN":(t=w(r.c),t=null!=e&&D(e,2,64,25,"base")?X(M(t,i),0|e,10,n):i<=F||i>=L?A(t,i):M(t,i),n<0&&r.c[0]&&(t="-"+t)),t},C.truncated=C.trunc=function(){return ee(new W(this),this.e+1,1)},C.valueOf=C.toJSON=function(){var e,t=this,r=t.e;return null===r?t.toString():(e=w(t.c),e=r<=F||r>=L?A(e,r):M(e,r),t.s<0?"-"+e:e)},C.isBigNumber=!0,null!=t&&W.config(t),W}()).default=a.BigNumber=a,void 0===(n=function(){return a}.call(t,r,t,e))||(e.exports=n)}()},function(e,t,r){var n;e.exports=(n=r(6),
  /** @preserve
  	(c) 2012 by Cédric Mesnil. All rights reserved.
  
  	Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
  
  	    - Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
  	    - Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
  
  	THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  	*/
  function(e){var t=n,r=t.lib,i=r.WordArray,a=r.Hasher,o=t.algo,s=i.create([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]),f=i.create([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]),u=i.create([11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6]),c=i.create([8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]),l=i.create([0,1518500249,1859775393,2400959708,2840853838]),d=i.create([1352829926,1548603684,1836072691,2053994217,0]),h=o.RIPEMD160=a.extend({_doReset:function(){this._hash=i.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(e,t){for(var r=0;r<16;r++){var n=t+r,i=e[n];e[n]=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8)}var a,o,h,w,_,S,k,x,A,M,E,T=this._hash.words,I=l.words,P=d.words,O=s.words,R=f.words,C=u.words,j=c.words;for(S=a=T[0],k=o=T[1],x=h=T[2],A=w=T[3],M=_=T[4],r=0;r<80;r+=1)E=a+e[t+O[r]]|0,E+=r<16?p(o,h,w)+I[0]:r<32?b(o,h,w)+I[1]:r<48?v(o,h,w)+I[2]:r<64?m(o,h,w)+I[3]:g(o,h,w)+I[4],E=(E=y(E|=0,C[r]))+_|0,a=_,_=w,w=y(h,10),h=o,o=E,E=S+e[t+R[r]]|0,E+=r<16?g(k,x,A)+P[0]:r<32?m(k,x,A)+P[1]:r<48?v(k,x,A)+P[2]:r<64?b(k,x,A)+P[3]:p(k,x,A)+P[4],E=(E=y(E|=0,j[r]))+M|0,S=M,M=A,A=y(x,10),x=k,k=E;E=T[1]+h+A|0,T[1]=T[2]+w+M|0,T[2]=T[3]+_+S|0,T[3]=T[4]+a+k|0,T[4]=T[0]+o+x|0,T[0]=E},_doFinalize:function(){var e=this._data,t=e.words,r=8*this._nDataBytes,n=8*e.sigBytes;t[n>>>5]|=128<<24-n%32,t[14+(n+64>>>9<<4)]=16711935&(r<<8|r>>>24)|4278255360&(r<<24|r>>>8),e.sigBytes=4*(t.length+1),this._process();for(var i=this._hash,a=i.words,o=0;o<5;o++){var s=a[o];a[o]=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8)}return i},clone:function(){var e=a.clone.call(this);return e._hash=this._hash.clone(),e}});function p(e,t,r){return e^t^r}function b(e,t,r){return e&t|~e&r}function v(e,t,r){return(e|~t)^r}function m(e,t,r){return e&r|t&~r}function g(e,t,r){return e^(t|~r)}function y(e,t){return e<<t|e>>>32-t}t.RIPEMD160=a._createHelper(h),t.HmacRIPEMD160=a._createHmacHelper(h)}(Math),n.RIPEMD160)},function(e,t,r){"use strict";var n=r(11),i=r(7).utils,a=i.assert,o=i.cachedProperty,s=i.parseBytes;function f(e,t){this.eddsa=e,"object"!=typeof t&&(t=s(t)),Array.isArray(t)&&(t={R:t.slice(0,e.encodingLength),S:t.slice(e.encodingLength)}),a(t.R&&t.S,"Signature without R or S"),e.isPoint(t.R)&&(this._R=t.R),t.S instanceof n&&(this._S=t.S),this._Rencoded=Array.isArray(t.R)?t.R:t.Rencoded,this._Sencoded=Array.isArray(t.S)?t.S:t.Sencoded}o(f,"S",function(){return this.eddsa.decodeInt(this.Sencoded())}),o(f,"R",function(){return this.eddsa.decodePoint(this.Rencoded())}),o(f,"Rencoded",function(){return this.eddsa.encodePoint(this.R())}),o(f,"Sencoded",function(){return this.eddsa.encodeInt(this.S())}),f.prototype.toBytes=function(){return this.Rencoded().concat(this.Sencoded())},f.prototype.toHex=function(){return i.encode(this.toBytes(),"hex").toUpperCase()},e.exports=f},function(e,t,r){"use strict";var n=r(7).utils,i=n.assert,a=n.parseBytes,o=n.cachedProperty;function s(e,t){this.eddsa=e,this._secret=a(t.secret),e.isPoint(t.pub)?this._pub=t.pub:this._pubBytes=a(t.pub)}s.fromPublic=function(e,t){return t instanceof s?t:new s(e,{pub:t})},s.fromSecret=function(e,t){return t instanceof s?t:new s(e,{secret:t})},s.prototype.secret=function(){return this._secret},o(s,"pubBytes",function(){return this.eddsa.encodePoint(this.pub())}),o(s,"pub",function(){return this._pubBytes?this.eddsa.decodePoint(this._pubBytes):this.eddsa.g.mul(this.priv())}),o(s,"privBytes",function(){var e=this.eddsa,t=this.hash(),r=e.encodingLength-1,n=t.slice(0,e.encodingLength);return n[0]&=248,n[r]&=127,n[r]|=64,n}),o(s,"priv",function(){return this.eddsa.decodeInt(this.privBytes())}),o(s,"hash",function(){return this.eddsa.hash().update(this.secret()).digest()}),o(s,"messagePrefix",function(){return this.hash().slice(this.eddsa.encodingLength)}),s.prototype.sign=function(e){return i(this._secret,"KeyPair can only verify"),this.eddsa.sign(e,this)},s.prototype.verify=function(e,t){return this.eddsa.verify(e,t,this)},s.prototype.getSecret=function(e){return i(this._secret,"KeyPair is public only"),n.encode(this.secret(),e)},s.prototype.getPublic=function(e){return n.encode(this.pubBytes(),e)},e.exports=s},function(e,t,r){"use strict";var n=r(34),i=r(7),a=i.utils,o=a.assert,s=a.parseBytes,f=r(119),u=r(118);function c(e){if(o("ed25519"===e,"only tested with ed25519 so far"),!(this instanceof c))return new c(e);e=i.curves[e].curve;this.curve=e,this.g=e.g,this.g.precompute(e.n.bitLength()+1),this.pointClass=e.point().constructor,this.encodingLength=Math.ceil(e.n.bitLength()/8),this.hash=n.sha512}e.exports=c,c.prototype.sign=function(e,t){e=s(e);var r=this.keyFromSecret(t),n=this.hashInt(r.messagePrefix(),e),i=this.g.mul(n),a=this.encodePoint(i),o=this.hashInt(a,r.pubBytes(),e).mul(r.priv()),f=n.add(o).umod(this.curve.n);return this.makeSignature({R:i,S:f,Rencoded:a})},c.prototype.verify=function(e,t,r){e=s(e),t=this.makeSignature(t);var n=this.keyFromPublic(r),i=this.hashInt(t.Rencoded(),n.pubBytes(),e),a=this.g.mul(t.S());return t.R().add(n.pub().mul(i)).eq(a)},c.prototype.hashInt=function(){for(var e=this.hash(),t=0;t<arguments.length;t++)e.update(arguments[t]);return a.intFromLE(e.digest()).umod(this.curve.n)},c.prototype.keyFromPublic=function(e){return f.fromPublic(this,e)},c.prototype.keyFromSecret=function(e){return f.fromSecret(this,e)},c.prototype.makeSignature=function(e){return e instanceof u?e:new u(this,e)},c.prototype.encodePoint=function(e){var t=e.getY().toArray("le",this.encodingLength);return t[this.encodingLength-1]|=e.getX().isOdd()?128:0,t},c.prototype.decodePoint=function(e){var t=(e=a.parseBytes(e)).length-1,r=e.slice(0,t).concat(-129&e[t]),n=0!=(128&e[t]),i=a.intFromLE(r);return this.curve.pointFromY(i,n)},c.prototype.encodeInt=function(e){return e.toArray("le",this.encodingLength)},c.prototype.decodeInt=function(e){return a.intFromLE(e)},c.prototype.isPoint=function(e){return e instanceof this.pointClass}},function(e,t,r){"use strict";var n=r(11),i=r(7).utils,a=i.assert;function o(e,t){if(e instanceof o)return e;this._importDER(e,t)||(a(e.r&&e.s,"Signature without r or s"),this.r=new n(e.r,16),this.s=new n(e.s,16),void 0===e.recoveryParam?this.recoveryParam=null:this.recoveryParam=e.recoveryParam)}function s(e,t){var r=e[t.place++];if(!(128&r))return r;for(var n=15&r,i=0,a=0,o=t.place;a<n;a++,o++)i<<=8,i|=e[o];return t.place=o,i}function f(e){for(var t=0,r=e.length-1;!e[t]&&!(128&e[t+1])&&t<r;)t++;return 0===t?e:e.slice(t)}function u(e,t){if(t<128)e.push(t);else{var r=1+(Math.log(t)/Math.LN2>>>3);for(e.push(128|r);--r;)e.push(t>>>(r<<3)&255);e.push(t)}}e.exports=o,o.prototype._importDER=function(e,t){e=i.toArray(e,t);var r=new function(){this.place=0};if(48!==e[r.place++])return!1;if(s(e,r)+r.place!==e.length)return!1;if(2!==e[r.place++])return!1;var a=s(e,r),o=e.slice(r.place,a+r.place);if(r.place+=a,2!==e[r.place++])return!1;var f=s(e,r);if(e.length!==f+r.place)return!1;var u=e.slice(r.place,f+r.place);return 0===o[0]&&128&o[1]&&(o=o.slice(1)),0===u[0]&&128&u[1]&&(u=u.slice(1)),this.r=new n(o),this.s=new n(u),this.recoveryParam=null,!0},o.prototype.toDER=function(e){var t=this.r.toArray(),r=this.s.toArray();for(128&t[0]&&(t=[0].concat(t)),128&r[0]&&(r=[0].concat(r)),t=f(t),r=f(r);!(r[0]||128&r[1]);)r=r.slice(1);var n=[2];u(n,t.length),(n=n.concat(t)).push(2),u(n,r.length);var a=n.concat(r),o=[48];return u(o,a.length),o=o.concat(a),i.encode(o,e)}},function(e,t,r){"use strict";var n=r(11),i=r(7).utils.assert;function a(e,t){this.ec=e,this.priv=null,this.pub=null,t.priv&&this._importPrivate(t.priv,t.privEnc),t.pub&&this._importPublic(t.pub,t.pubEnc)}e.exports=a,a.fromPublic=function(e,t,r){return t instanceof a?t:new a(e,{pub:t,pubEnc:r})},a.fromPrivate=function(e,t,r){return t instanceof a?t:new a(e,{priv:t,privEnc:r})},a.prototype.validate=function(){var e=this.getPublic();return e.isInfinity()?{result:!1,reason:"Invalid public key"}:e.validate()?e.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"}},a.prototype.getPublic=function(e,t){return"string"==typeof e&&(t=e,e=null),this.pub||(this.pub=this.ec.g.mul(this.priv)),t?this.pub.encode(t,e):this.pub},a.prototype.getPrivate=function(e){return"hex"===e?this.priv.toString(16,2):this.priv},a.prototype._importPrivate=function(e,t){this.priv=new n(e,t||16),this.priv=this.priv.umod(this.ec.curve.n)},a.prototype._importPublic=function(e,t){if(e.x||e.y)return"mont"===this.ec.curve.type?i(e.x,"Need x coordinate"):"short"!==this.ec.curve.type&&"edwards"!==this.ec.curve.type||i(e.x&&e.y,"Need both x and y coordinate"),void(this.pub=this.ec.curve.point(e.x,e.y));this.pub=this.ec.curve.decodePoint(e,t)},a.prototype.derive=function(e){return e.mul(this.priv).getX()},a.prototype.sign=function(e,t,r){return this.ec.sign(e,this,t,r)},a.prototype.verify=function(e,t){return this.ec.verify(e,t,this)},a.prototype.inspect=function(){return"<Key priv: "+(this.priv&&this.priv.toString(16,2))+" pub: "+(this.pub&&this.pub.inspect())+" >"}},function(e,t,r){"use strict";var n=r(34),i=r(63),a=r(13);function o(e){if(!(this instanceof o))return new o(e);this.hash=e.hash,this.predResist=!!e.predResist,this.outLen=this.hash.outSize,this.minEntropy=e.minEntropy||this.hash.hmacStrength,this._reseed=null,this.reseedInterval=null,this.K=null,this.V=null;var t=i.toArray(e.entropy,e.entropyEnc||"hex"),r=i.toArray(e.nonce,e.nonceEnc||"hex"),n=i.toArray(e.pers,e.persEnc||"hex");a(t.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(t,r,n)}e.exports=o,o.prototype._init=function(e,t,r){var n=e.concat(t).concat(r);this.K=new Array(this.outLen/8),this.V=new Array(this.outLen/8);for(var i=0;i<this.V.length;i++)this.K[i]=0,this.V[i]=1;this._update(n),this._reseed=1,this.reseedInterval=281474976710656},o.prototype._hmac=function(){return new n.hmac(this.hash,this.K)},o.prototype._update=function(e){var t=this._hmac().update(this.V).update([0]);e&&(t=t.update(e)),this.K=t.digest(),this.V=this._hmac().update(this.V).digest(),e&&(this.K=this._hmac().update(this.V).update([1]).update(e).digest(),this.V=this._hmac().update(this.V).digest())},o.prototype.reseed=function(e,t,r,n){"string"!=typeof t&&(n=r,r=t,t=null),e=i.toArray(e,t),r=i.toArray(r,n),a(e.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(e.concat(r||[])),this._reseed=1},o.prototype.generate=function(e,t,r,n){if(this._reseed>this.reseedInterval)throw new Error("Reseed is required");"string"!=typeof t&&(n=r,r=t,t=null),r&&(r=i.toArray(r,n||"hex"),this._update(r));for(var a=[];a.length<e;)this.V=this._hmac().update(this.V).digest(),a=a.concat(this.V);var o=a.slice(0,e);return this._update(r),this._reseed++,i.encode(o,t)}},function(e,t,r){"use strict";var n=r(11),i=r(123),a=r(7),o=a.utils.assert,s=r(122),f=r(121);function u(e){if(!(this instanceof u))return new u(e);"string"==typeof e&&(o(a.curves.hasOwnProperty(e),"Unknown curve "+e),e=a.curves[e]),e instanceof a.curves.PresetCurve&&(e={curve:e}),this.curve=e.curve.curve,this.n=this.curve.n,this.nh=this.n.ushrn(1),this.g=this.curve.g,this.g=e.curve.g,this.g.precompute(e.curve.n.bitLength()+1),this.hash=e.hash||e.curve.hash}e.exports=u,u.prototype.keyPair=function(e){return new s(this,e)},u.prototype.keyFromPrivate=function(e,t){return s.fromPrivate(this,e,t)},u.prototype.keyFromPublic=function(e,t){return s.fromPublic(this,e,t)},u.prototype.genKeyPair=function(e){e||(e={});for(var t=new i({hash:this.hash,pers:e.pers,persEnc:e.persEnc||"utf8",entropy:e.entropy||a.rand(this.hash.hmacStrength),entropyEnc:e.entropy&&e.entropyEnc||"utf8",nonce:this.n.toArray()}),r=this.n.byteLength(),o=this.n.sub(new n(2));;){var s=new n(t.generate(r));if(!(s.cmp(o)>0))return s.iaddn(1),this.keyFromPrivate(s)}},u.prototype._truncateToN=function(e,t){var r=8*e.byteLength()-this.n.bitLength();return r>0&&(e=e.ushrn(r)),!t&&e.cmp(this.n)>=0?e.sub(this.n):e},u.prototype.sign=function(e,t,r,a){"object"==typeof r&&(a=r,r=null),a||(a={}),t=this.keyFromPrivate(t,r),e=this._truncateToN(new n(e,16));for(var o=this.n.byteLength(),s=t.getPrivate().toArray("be",o),u=e.toArray("be",o),c=new i({hash:this.hash,entropy:s,nonce:u,pers:a.pers,persEnc:a.persEnc||"utf8"}),l=this.n.sub(new n(1)),d=0;;d++){var h=a.k?a.k(d):new n(c.generate(this.n.byteLength()));if(!((h=this._truncateToN(h,!0)).cmpn(1)<=0||h.cmp(l)>=0)){var p=this.g.mul(h);if(!p.isInfinity()){var b=p.getX(),v=b.umod(this.n);if(0!==v.cmpn(0)){var m=h.invm(this.n).mul(v.mul(t.getPrivate()).iadd(e));if(0!==(m=m.umod(this.n)).cmpn(0)){var g=(p.getY().isOdd()?1:0)|(0!==b.cmp(v)?2:0);return a.canonical&&m.cmp(this.nh)>0&&(m=this.n.sub(m),g^=1),new f({r:v,s:m,recoveryParam:g})}}}}}},u.prototype.verify=function(e,t,r,i){e=this._truncateToN(new n(e,16)),r=this.keyFromPublic(r,i);var a=(t=new f(t,"hex")).r,o=t.s;if(a.cmpn(1)<0||a.cmp(this.n)>=0)return!1;if(o.cmpn(1)<0||o.cmp(this.n)>=0)return!1;var s,u=o.invm(this.n),c=u.mul(e).umod(this.n),l=u.mul(a).umod(this.n);return this.curve._maxwellTrick?!(s=this.g.jmulAdd(c,r.getPublic(),l)).isInfinity()&&s.eqXToP(a):!(s=this.g.mulAdd(c,r.getPublic(),l)).isInfinity()&&0===s.getX().umod(this.n).cmp(a)},u.prototype.recoverPubKey=function(e,t,r,i){o((3&r)===r,"The recovery param is more than two bits"),t=new f(t,i);var a=this.n,s=new n(e),u=t.r,c=t.s,l=1&r,d=r>>1;if(u.cmp(this.curve.p.umod(this.curve.n))>=0&&d)throw new Error("Unable to find sencond key candinate");u=d?this.curve.pointFromX(u.add(this.curve.n),l):this.curve.pointFromX(u,l);var h=t.r.invm(a),p=a.sub(s).mul(h).umod(a),b=c.mul(h).umod(a);return this.g.mulAdd(p,u,b)},u.prototype.getKeyRecoveryParam=function(e,t,r,n){if(null!==(t=new f(t,n)).recoveryParam)return t.recoveryParam;for(var i=0;i<4;i++){var a;try{a=this.recoverPubKey(e,t,i)}catch(e){continue}if(a.eq(r))return i}throw new Error("Unable to find valid recovery factor")}},function(e,t){e.exports={doubles:{step:4,points:[["e60fce93b59e9ec53011aabc21c23e97b2a31369b87a5ae9c44ee89e2a6dec0a","f7e3507399e595929db99f34f57937101296891e44d23f0be1f32cce69616821"],["8282263212c609d9ea2a6e3e172de238d8c39cabd5ac1ca10646e23fd5f51508","11f8a8098557dfe45e8256e830b60ace62d613ac2f7b17bed31b6eaff6e26caf"],["175e159f728b865a72f99cc6c6fc846de0b93833fd2222ed73fce5b551e5b739","d3506e0d9e3c79eba4ef97a51ff71f5eacb5955add24345c6efa6ffee9fed695"],["363d90d447b00c9c99ceac05b6262ee053441c7e55552ffe526bad8f83ff4640","4e273adfc732221953b445397f3363145b9a89008199ecb62003c7f3bee9de9"],["8b4b5f165df3c2be8c6244b5b745638843e4a781a15bcd1b69f79a55dffdf80c","4aad0a6f68d308b4b3fbd7813ab0da04f9e336546162ee56b3eff0c65fd4fd36"],["723cbaa6e5db996d6bf771c00bd548c7b700dbffa6c0e77bcb6115925232fcda","96e867b5595cc498a921137488824d6e2660a0653779494801dc069d9eb39f5f"],["eebfa4d493bebf98ba5feec812c2d3b50947961237a919839a533eca0e7dd7fa","5d9a8ca3970ef0f269ee7edaf178089d9ae4cdc3a711f712ddfd4fdae1de8999"],["100f44da696e71672791d0a09b7bde459f1215a29b3c03bfefd7835b39a48db0","cdd9e13192a00b772ec8f3300c090666b7ff4a18ff5195ac0fbd5cd62bc65a09"],["e1031be262c7ed1b1dc9227a4a04c017a77f8d4464f3b3852c8acde6e534fd2d","9d7061928940405e6bb6a4176597535af292dd419e1ced79a44f18f29456a00d"],["feea6cae46d55b530ac2839f143bd7ec5cf8b266a41d6af52d5e688d9094696d","e57c6b6c97dce1bab06e4e12bf3ecd5c981c8957cc41442d3155debf18090088"],["da67a91d91049cdcb367be4be6ffca3cfeed657d808583de33fa978bc1ec6cb1","9bacaa35481642bc41f463f7ec9780e5dec7adc508f740a17e9ea8e27a68be1d"],["53904faa0b334cdda6e000935ef22151ec08d0f7bb11069f57545ccc1a37b7c0","5bc087d0bc80106d88c9eccac20d3c1c13999981e14434699dcb096b022771c8"],["8e7bcd0bd35983a7719cca7764ca906779b53a043a9b8bcaeff959f43ad86047","10b7770b2a3da4b3940310420ca9514579e88e2e47fd68b3ea10047e8460372a"],["385eed34c1cdff21e6d0818689b81bde71a7f4f18397e6690a841e1599c43862","283bebc3e8ea23f56701de19e9ebf4576b304eec2086dc8cc0458fe5542e5453"],["6f9d9b803ecf191637c73a4413dfa180fddf84a5947fbc9c606ed86c3fac3a7","7c80c68e603059ba69b8e2a30e45c4d47ea4dd2f5c281002d86890603a842160"],["3322d401243c4e2582a2147c104d6ecbf774d163db0f5e5313b7e0e742d0e6bd","56e70797e9664ef5bfb019bc4ddaf9b72805f63ea2873af624f3a2e96c28b2a0"],["85672c7d2de0b7da2bd1770d89665868741b3f9af7643397721d74d28134ab83","7c481b9b5b43b2eb6374049bfa62c2e5e77f17fcc5298f44c8e3094f790313a6"],["948bf809b1988a46b06c9f1919413b10f9226c60f668832ffd959af60c82a0a","53a562856dcb6646dc6b74c5d1c3418c6d4dff08c97cd2bed4cb7f88d8c8e589"],["6260ce7f461801c34f067ce0f02873a8f1b0e44dfc69752accecd819f38fd8e8","bc2da82b6fa5b571a7f09049776a1ef7ecd292238051c198c1a84e95b2b4ae17"],["e5037de0afc1d8d43d8348414bbf4103043ec8f575bfdc432953cc8d2037fa2d","4571534baa94d3b5f9f98d09fb990bddbd5f5b03ec481f10e0e5dc841d755bda"],["e06372b0f4a207adf5ea905e8f1771b4e7e8dbd1c6a6c5b725866a0ae4fce725","7a908974bce18cfe12a27bb2ad5a488cd7484a7787104870b27034f94eee31dd"],["213c7a715cd5d45358d0bbf9dc0ce02204b10bdde2a3f58540ad6908d0559754","4b6dad0b5ae462507013ad06245ba190bb4850f5f36a7eeddff2c27534b458f2"],["4e7c272a7af4b34e8dbb9352a5419a87e2838c70adc62cddf0cc3a3b08fbd53c","17749c766c9d0b18e16fd09f6def681b530b9614bff7dd33e0b3941817dcaae6"],["fea74e3dbe778b1b10f238ad61686aa5c76e3db2be43057632427e2840fb27b6","6e0568db9b0b13297cf674deccb6af93126b596b973f7b77701d3db7f23cb96f"],["76e64113f677cf0e10a2570d599968d31544e179b760432952c02a4417bdde39","c90ddf8dee4e95cf577066d70681f0d35e2a33d2b56d2032b4b1752d1901ac01"],["c738c56b03b2abe1e8281baa743f8f9a8f7cc643df26cbee3ab150242bcbb891","893fb578951ad2537f718f2eacbfbbbb82314eef7880cfe917e735d9699a84c3"],["d895626548b65b81e264c7637c972877d1d72e5f3a925014372e9f6588f6c14b","febfaa38f2bc7eae728ec60818c340eb03428d632bb067e179363ed75d7d991f"],["b8da94032a957518eb0f6433571e8761ceffc73693e84edd49150a564f676e03","2804dfa44805a1e4d7c99cc9762808b092cc584d95ff3b511488e4e74efdf6e7"],["e80fea14441fb33a7d8adab9475d7fab2019effb5156a792f1a11778e3c0df5d","eed1de7f638e00771e89768ca3ca94472d155e80af322ea9fcb4291b6ac9ec78"],["a301697bdfcd704313ba48e51d567543f2a182031efd6915ddc07bbcc4e16070","7370f91cfb67e4f5081809fa25d40f9b1735dbf7c0a11a130c0d1a041e177ea1"],["90ad85b389d6b936463f9d0512678de208cc330b11307fffab7ac63e3fb04ed4","e507a3620a38261affdcbd9427222b839aefabe1582894d991d4d48cb6ef150"],["8f68b9d2f63b5f339239c1ad981f162ee88c5678723ea3351b7b444c9ec4c0da","662a9f2dba063986de1d90c2b6be215dbbea2cfe95510bfdf23cbf79501fff82"],["e4f3fb0176af85d65ff99ff9198c36091f48e86503681e3e6686fd5053231e11","1e63633ad0ef4f1c1661a6d0ea02b7286cc7e74ec951d1c9822c38576feb73bc"],["8c00fa9b18ebf331eb961537a45a4266c7034f2f0d4e1d0716fb6eae20eae29e","efa47267fea521a1a9dc343a3736c974c2fadafa81e36c54e7d2a4c66702414b"],["e7a26ce69dd4829f3e10cec0a9e98ed3143d084f308b92c0997fddfc60cb3e41","2a758e300fa7984b471b006a1aafbb18d0a6b2c0420e83e20e8a9421cf2cfd51"],["b6459e0ee3662ec8d23540c223bcbdc571cbcb967d79424f3cf29eb3de6b80ef","67c876d06f3e06de1dadf16e5661db3c4b3ae6d48e35b2ff30bf0b61a71ba45"],["d68a80c8280bb840793234aa118f06231d6f1fc67e73c5a5deda0f5b496943e8","db8ba9fff4b586d00c4b1f9177b0e28b5b0e7b8f7845295a294c84266b133120"],["324aed7df65c804252dc0270907a30b09612aeb973449cea4095980fc28d3d5d","648a365774b61f2ff130c0c35aec1f4f19213b0c7e332843967224af96ab7c84"],["4df9c14919cde61f6d51dfdbe5fee5dceec4143ba8d1ca888e8bd373fd054c96","35ec51092d8728050974c23a1d85d4b5d506cdc288490192ebac06cad10d5d"],["9c3919a84a474870faed8a9c1cc66021523489054d7f0308cbfc99c8ac1f98cd","ddb84f0f4a4ddd57584f044bf260e641905326f76c64c8e6be7e5e03d4fc599d"],["6057170b1dd12fdf8de05f281d8e06bb91e1493a8b91d4cc5a21382120a959e5","9a1af0b26a6a4807add9a2daf71df262465152bc3ee24c65e899be932385a2a8"],["a576df8e23a08411421439a4518da31880cef0fba7d4df12b1a6973eecb94266","40a6bf20e76640b2c92b97afe58cd82c432e10a7f514d9f3ee8be11ae1b28ec8"],["7778a78c28dec3e30a05fe9629de8c38bb30d1f5cf9a3a208f763889be58ad71","34626d9ab5a5b22ff7098e12f2ff580087b38411ff24ac563b513fc1fd9f43ac"],["928955ee637a84463729fd30e7afd2ed5f96274e5ad7e5cb09eda9c06d903ac","c25621003d3f42a827b78a13093a95eeac3d26efa8a8d83fc5180e935bcd091f"],["85d0fef3ec6db109399064f3a0e3b2855645b4a907ad354527aae75163d82751","1f03648413a38c0be29d496e582cf5663e8751e96877331582c237a24eb1f962"],["ff2b0dce97eece97c1c9b6041798b85dfdfb6d8882da20308f5404824526087e","493d13fef524ba188af4c4dc54d07936c7b7ed6fb90e2ceb2c951e01f0c29907"],["827fbbe4b1e880ea9ed2b2e6301b212b57f1ee148cd6dd28780e5e2cf856e241","c60f9c923c727b0b71bef2c67d1d12687ff7a63186903166d605b68baec293ec"],["eaa649f21f51bdbae7be4ae34ce6e5217a58fdce7f47f9aa7f3b58fa2120e2b3","be3279ed5bbbb03ac69a80f89879aa5a01a6b965f13f7e59d47a5305ba5ad93d"],["e4a42d43c5cf169d9391df6decf42ee541b6d8f0c9a137401e23632dda34d24f","4d9f92e716d1c73526fc99ccfb8ad34ce886eedfa8d8e4f13a7f7131deba9414"],["1ec80fef360cbdd954160fadab352b6b92b53576a88fea4947173b9d4300bf19","aeefe93756b5340d2f3a4958a7abbf5e0146e77f6295a07b671cdc1cc107cefd"],["146a778c04670c2f91b00af4680dfa8bce3490717d58ba889ddb5928366642be","b318e0ec3354028add669827f9d4b2870aaa971d2f7e5ed1d0b297483d83efd0"],["fa50c0f61d22e5f07e3acebb1aa07b128d0012209a28b9776d76a8793180eef9","6b84c6922397eba9b72cd2872281a68a5e683293a57a213b38cd8d7d3f4f2811"],["da1d61d0ca721a11b1a5bf6b7d88e8421a288ab5d5bba5220e53d32b5f067ec2","8157f55a7c99306c79c0766161c91e2966a73899d279b48a655fba0f1ad836f1"],["a8e282ff0c9706907215ff98e8fd416615311de0446f1e062a73b0610d064e13","7f97355b8db81c09abfb7f3c5b2515888b679a3e50dd6bd6cef7c73111f4cc0c"],["174a53b9c9a285872d39e56e6913cab15d59b1fa512508c022f382de8319497c","ccc9dc37abfc9c1657b4155f2c47f9e6646b3a1d8cb9854383da13ac079afa73"],["959396981943785c3d3e57edf5018cdbe039e730e4918b3d884fdff09475b7ba","2e7e552888c331dd8ba0386a4b9cd6849c653f64c8709385e9b8abf87524f2fd"],["d2a63a50ae401e56d645a1153b109a8fcca0a43d561fba2dbb51340c9d82b151","e82d86fb6443fcb7565aee58b2948220a70f750af484ca52d4142174dcf89405"],["64587e2335471eb890ee7896d7cfdc866bacbdbd3839317b3436f9b45617e073","d99fcdd5bf6902e2ae96dd6447c299a185b90a39133aeab358299e5e9faf6589"],["8481bde0e4e4d885b3a546d3e549de042f0aa6cea250e7fd358d6c86dd45e458","38ee7b8cba5404dd84a25bf39cecb2ca900a79c42b262e556d64b1b59779057e"],["13464a57a78102aa62b6979ae817f4637ffcfed3c4b1ce30bcd6303f6caf666b","69be159004614580ef7e433453ccb0ca48f300a81d0942e13f495a907f6ecc27"],["bc4a9df5b713fe2e9aef430bcc1dc97a0cd9ccede2f28588cada3a0d2d83f366","d3a81ca6e785c06383937adf4b798caa6e8a9fbfa547b16d758d666581f33c1"],["8c28a97bf8298bc0d23d8c749452a32e694b65e30a9472a3954ab30fe5324caa","40a30463a3305193378fedf31f7cc0eb7ae784f0451cb9459e71dc73cbef9482"],["8ea9666139527a8c1dd94ce4f071fd23c8b350c5a4bb33748c4ba111faccae0","620efabbc8ee2782e24e7c0cfb95c5d735b783be9cf0f8e955af34a30e62b945"],["dd3625faef5ba06074669716bbd3788d89bdde815959968092f76cc4eb9a9787","7a188fa3520e30d461da2501045731ca941461982883395937f68d00c644a573"],["f710d79d9eb962297e4f6232b40e8f7feb2bc63814614d692c12de752408221e","ea98e67232d3b3295d3b535532115ccac8612c721851617526ae47a9c77bfc82"]]},naf:{wnd:7,points:[["f9308a019258c31049344f85f89d5229b531c845836f99b08601f113bce036f9","388f7b0f632de8140fe337e62a37f3566500a99934c2231b6cb9fd7584b8e672"],["2f8bde4d1a07209355b4a7250a5c5128e88b84bddc619ab7cba8d569b240efe4","d8ac222636e5e3d6d4dba9dda6c9c426f788271bab0d6840dca87d3aa6ac62d6"],["5cbdf0646e5db4eaa398f365f2ea7a0e3d419b7e0330e39ce92bddedcac4f9bc","6aebca40ba255960a3178d6d861a54dba813d0b813fde7b5a5082628087264da"],["acd484e2f0c7f65309ad178a9f559abde09796974c57e714c35f110dfc27ccbe","cc338921b0a7d9fd64380971763b61e9add888a4375f8e0f05cc262ac64f9c37"],["774ae7f858a9411e5ef4246b70c65aac5649980be5c17891bbec17895da008cb","d984a032eb6b5e190243dd56d7b7b365372db1e2dff9d6a8301d74c9c953c61b"],["f28773c2d975288bc7d1d205c3748651b075fbc6610e58cddeeddf8f19405aa8","ab0902e8d880a89758212eb65cdaf473a1a06da521fa91f29b5cb52db03ed81"],["d7924d4f7d43ea965a465ae3095ff41131e5946f3c85f79e44adbcf8e27e080e","581e2872a86c72a683842ec228cc6defea40af2bd896d3a5c504dc9ff6a26b58"],["defdea4cdb677750a420fee807eacf21eb9898ae79b9768766e4faa04a2d4a34","4211ab0694635168e997b0ead2a93daeced1f4a04a95c0f6cfb199f69e56eb77"],["2b4ea0a797a443d293ef5cff444f4979f06acfebd7e86d277475656138385b6c","85e89bc037945d93b343083b5a1c86131a01f60c50269763b570c854e5c09b7a"],["352bbf4a4cdd12564f93fa332ce333301d9ad40271f8107181340aef25be59d5","321eb4075348f534d59c18259dda3e1f4a1b3b2e71b1039c67bd3d8bcf81998c"],["2fa2104d6b38d11b0230010559879124e42ab8dfeff5ff29dc9cdadd4ecacc3f","2de1068295dd865b64569335bd5dd80181d70ecfc882648423ba76b532b7d67"],["9248279b09b4d68dab21a9b066edda83263c3d84e09572e269ca0cd7f5453714","73016f7bf234aade5d1aa71bdea2b1ff3fc0de2a887912ffe54a32ce97cb3402"],["daed4f2be3a8bf278e70132fb0beb7522f570e144bf615c07e996d443dee8729","a69dce4a7d6c98e8d4a1aca87ef8d7003f83c230f3afa726ab40e52290be1c55"],["c44d12c7065d812e8acf28d7cbb19f9011ecd9e9fdf281b0e6a3b5e87d22e7db","2119a460ce326cdc76c45926c982fdac0e106e861edf61c5a039063f0e0e6482"],["6a245bf6dc698504c89a20cfded60853152b695336c28063b61c65cbd269e6b4","e022cf42c2bd4a708b3f5126f16a24ad8b33ba48d0423b6efd5e6348100d8a82"],["1697ffa6fd9de627c077e3d2fe541084ce13300b0bec1146f95ae57f0d0bd6a5","b9c398f186806f5d27561506e4557433a2cf15009e498ae7adee9d63d01b2396"],["605bdb019981718b986d0f07e834cb0d9deb8360ffb7f61df982345ef27a7479","2972d2de4f8d20681a78d93ec96fe23c26bfae84fb14db43b01e1e9056b8c49"],["62d14dab4150bf497402fdc45a215e10dcb01c354959b10cfe31c7e9d87ff33d","80fc06bd8cc5b01098088a1950eed0db01aa132967ab472235f5642483b25eaf"],["80c60ad0040f27dade5b4b06c408e56b2c50e9f56b9b8b425e555c2f86308b6f","1c38303f1cc5c30f26e66bad7fe72f70a65eed4cbe7024eb1aa01f56430bd57a"],["7a9375ad6167ad54aa74c6348cc54d344cc5dc9487d847049d5eabb0fa03c8fb","d0e3fa9eca8726909559e0d79269046bdc59ea10c70ce2b02d499ec224dc7f7"],["d528ecd9b696b54c907a9ed045447a79bb408ec39b68df504bb51f459bc3ffc9","eecf41253136e5f99966f21881fd656ebc4345405c520dbc063465b521409933"],["49370a4b5f43412ea25f514e8ecdad05266115e4a7ecb1387231808f8b45963","758f3f41afd6ed428b3081b0512fd62a54c3f3afbb5b6764b653052a12949c9a"],["77f230936ee88cbbd73df930d64702ef881d811e0e1498e2f1c13eb1fc345d74","958ef42a7886b6400a08266e9ba1b37896c95330d97077cbbe8eb3c7671c60d6"],["f2dac991cc4ce4b9ea44887e5c7c0bce58c80074ab9d4dbaeb28531b7739f530","e0dedc9b3b2f8dad4da1f32dec2531df9eb5fbeb0598e4fd1a117dba703a3c37"],["463b3d9f662621fb1b4be8fbbe2520125a216cdfc9dae3debcba4850c690d45b","5ed430d78c296c3543114306dd8622d7c622e27c970a1de31cb377b01af7307e"],["f16f804244e46e2a09232d4aff3b59976b98fac14328a2d1a32496b49998f247","cedabd9b82203f7e13d206fcdf4e33d92a6c53c26e5cce26d6579962c4e31df6"],["caf754272dc84563b0352b7a14311af55d245315ace27c65369e15f7151d41d1","cb474660ef35f5f2a41b643fa5e460575f4fa9b7962232a5c32f908318a04476"],["2600ca4b282cb986f85d0f1709979d8b44a09c07cb86d7c124497bc86f082120","4119b88753c15bd6a693b03fcddbb45d5ac6be74ab5f0ef44b0be9475a7e4b40"],["7635ca72d7e8432c338ec53cd12220bc01c48685e24f7dc8c602a7746998e435","91b649609489d613d1d5e590f78e6d74ecfc061d57048bad9e76f302c5b9c61"],["754e3239f325570cdbbf4a87deee8a66b7f2b33479d468fbc1a50743bf56cc18","673fb86e5bda30fb3cd0ed304ea49a023ee33d0197a695d0c5d98093c536683"],["e3e6bd1071a1e96aff57859c82d570f0330800661d1c952f9fe2694691d9b9e8","59c9e0bba394e76f40c0aa58379a3cb6a5a2283993e90c4167002af4920e37f5"],["186b483d056a033826ae73d88f732985c4ccb1f32ba35f4b4cc47fdcf04aa6eb","3b952d32c67cf77e2e17446e204180ab21fb8090895138b4a4a797f86e80888b"],["df9d70a6b9876ce544c98561f4be4f725442e6d2b737d9c91a8321724ce0963f","55eb2dafd84d6ccd5f862b785dc39d4ab157222720ef9da217b8c45cf2ba2417"],["5edd5cc23c51e87a497ca815d5dce0f8ab52554f849ed8995de64c5f34ce7143","efae9c8dbc14130661e8cec030c89ad0c13c66c0d17a2905cdc706ab7399a868"],["290798c2b6476830da12fe02287e9e777aa3fba1c355b17a722d362f84614fba","e38da76dcd440621988d00bcf79af25d5b29c094db2a23146d003afd41943e7a"],["af3c423a95d9f5b3054754efa150ac39cd29552fe360257362dfdecef4053b45","f98a3fd831eb2b749a93b0e6f35cfb40c8cd5aa667a15581bc2feded498fd9c6"],["766dbb24d134e745cccaa28c99bf274906bb66b26dcf98df8d2fed50d884249a","744b1152eacbe5e38dcc887980da38b897584a65fa06cedd2c924f97cbac5996"],["59dbf46f8c94759ba21277c33784f41645f7b44f6c596a58ce92e666191abe3e","c534ad44175fbc300f4ea6ce648309a042ce739a7919798cd85e216c4a307f6e"],["f13ada95103c4537305e691e74e9a4a8dd647e711a95e73cb62dc6018cfd87b8","e13817b44ee14de663bf4bc808341f326949e21a6a75c2570778419bdaf5733d"],["7754b4fa0e8aced06d4167a2c59cca4cda1869c06ebadfb6488550015a88522c","30e93e864e669d82224b967c3020b8fa8d1e4e350b6cbcc537a48b57841163a2"],["948dcadf5990e048aa3874d46abef9d701858f95de8041d2a6828c99e2262519","e491a42537f6e597d5d28a3224b1bc25df9154efbd2ef1d2cbba2cae5347d57e"],["7962414450c76c1689c7b48f8202ec37fb224cf5ac0bfa1570328a8a3d7c77ab","100b610ec4ffb4760d5c1fc133ef6f6b12507a051f04ac5760afa5b29db83437"],["3514087834964b54b15b160644d915485a16977225b8847bb0dd085137ec47ca","ef0afbb2056205448e1652c48e8127fc6039e77c15c2378b7e7d15a0de293311"],["d3cc30ad6b483e4bc79ce2c9dd8bc54993e947eb8df787b442943d3f7b527eaf","8b378a22d827278d89c5e9be8f9508ae3c2ad46290358630afb34db04eede0a4"],["1624d84780732860ce1c78fcbfefe08b2b29823db913f6493975ba0ff4847610","68651cf9b6da903e0914448c6cd9d4ca896878f5282be4c8cc06e2a404078575"],["733ce80da955a8a26902c95633e62a985192474b5af207da6df7b4fd5fc61cd4","f5435a2bd2badf7d485a4d8b8db9fcce3e1ef8e0201e4578c54673bc1dc5ea1d"],["15d9441254945064cf1a1c33bbd3b49f8966c5092171e699ef258dfab81c045c","d56eb30b69463e7234f5137b73b84177434800bacebfc685fc37bbe9efe4070d"],["a1d0fcf2ec9de675b612136e5ce70d271c21417c9d2b8aaaac138599d0717940","edd77f50bcb5a3cab2e90737309667f2641462a54070f3d519212d39c197a629"],["e22fbe15c0af8ccc5780c0735f84dbe9a790badee8245c06c7ca37331cb36980","a855babad5cd60c88b430a69f53a1a7a38289154964799be43d06d77d31da06"],["311091dd9860e8e20ee13473c1155f5f69635e394704eaa74009452246cfa9b3","66db656f87d1f04fffd1f04788c06830871ec5a64feee685bd80f0b1286d8374"],["34c1fd04d301be89b31c0442d3e6ac24883928b45a9340781867d4232ec2dbdf","9414685e97b1b5954bd46f730174136d57f1ceeb487443dc5321857ba73abee"],["f219ea5d6b54701c1c14de5b557eb42a8d13f3abbcd08affcc2a5e6b049b8d63","4cb95957e83d40b0f73af4544cccf6b1f4b08d3c07b27fb8d8c2962a400766d1"],["d7b8740f74a8fbaab1f683db8f45de26543a5490bca627087236912469a0b448","fa77968128d9c92ee1010f337ad4717eff15db5ed3c049b3411e0315eaa4593b"],["32d31c222f8f6f0ef86f7c98d3a3335ead5bcd32abdd94289fe4d3091aa824bf","5f3032f5892156e39ccd3d7915b9e1da2e6dac9e6f26e961118d14b8462e1661"],["7461f371914ab32671045a155d9831ea8793d77cd59592c4340f86cbc18347b5","8ec0ba238b96bec0cbdddcae0aa442542eee1ff50c986ea6b39847b3cc092ff6"],["ee079adb1df1860074356a25aa38206a6d716b2c3e67453d287698bad7b2b2d6","8dc2412aafe3be5c4c5f37e0ecc5f9f6a446989af04c4e25ebaac479ec1c8c1e"],["16ec93e447ec83f0467b18302ee620f7e65de331874c9dc72bfd8616ba9da6b5","5e4631150e62fb40d0e8c2a7ca5804a39d58186a50e497139626778e25b0674d"],["eaa5f980c245f6f038978290afa70b6bd8855897f98b6aa485b96065d537bd99","f65f5d3e292c2e0819a528391c994624d784869d7e6ea67fb18041024edc07dc"],["78c9407544ac132692ee1910a02439958ae04877151342ea96c4b6b35a49f51","f3e0319169eb9b85d5404795539a5e68fa1fbd583c064d2462b675f194a3ddb4"],["494f4be219a1a77016dcd838431aea0001cdc8ae7a6fc688726578d9702857a5","42242a969283a5f339ba7f075e36ba2af925ce30d767ed6e55f4b031880d562c"],["a598a8030da6d86c6bc7f2f5144ea549d28211ea58faa70ebf4c1e665c1fe9b5","204b5d6f84822c307e4b4a7140737aec23fc63b65b35f86a10026dbd2d864e6b"],["c41916365abb2b5d09192f5f2dbeafec208f020f12570a184dbadc3e58595997","4f14351d0087efa49d245b328984989d5caf9450f34bfc0ed16e96b58fa9913"],["841d6063a586fa475a724604da03bc5b92a2e0d2e0a36acfe4c73a5514742881","73867f59c0659e81904f9a1c7543698e62562d6744c169ce7a36de01a8d6154"],["5e95bb399a6971d376026947f89bde2f282b33810928be4ded112ac4d70e20d5","39f23f366809085beebfc71181313775a99c9aed7d8ba38b161384c746012865"],["36e4641a53948fd476c39f8a99fd974e5ec07564b5315d8bf99471bca0ef2f66","d2424b1b1abe4eb8164227b085c9aa9456ea13493fd563e06fd51cf5694c78fc"],["336581ea7bfbbb290c191a2f507a41cf5643842170e914faeab27c2c579f726","ead12168595fe1be99252129b6e56b3391f7ab1410cd1e0ef3dcdcabd2fda224"],["8ab89816dadfd6b6a1f2634fcf00ec8403781025ed6890c4849742706bd43ede","6fdcef09f2f6d0a044e654aef624136f503d459c3e89845858a47a9129cdd24e"],["1e33f1a746c9c5778133344d9299fcaa20b0938e8acff2544bb40284b8c5fb94","60660257dd11b3aa9c8ed618d24edff2306d320f1d03010e33a7d2057f3b3b6"],["85b7c1dcb3cec1b7ee7f30ded79dd20a0ed1f4cc18cbcfcfa410361fd8f08f31","3d98a9cdd026dd43f39048f25a8847f4fcafad1895d7a633c6fed3c35e999511"],["29df9fbd8d9e46509275f4b125d6d45d7fbe9a3b878a7af872a2800661ac5f51","b4c4fe99c775a606e2d8862179139ffda61dc861c019e55cd2876eb2a27d84b"],["a0b1cae06b0a847a3fea6e671aaf8adfdfe58ca2f768105c8082b2e449fce252","ae434102edde0958ec4b19d917a6a28e6b72da1834aff0e650f049503a296cf2"],["4e8ceafb9b3e9a136dc7ff67e840295b499dfb3b2133e4ba113f2e4c0e121e5","cf2174118c8b6d7a4b48f6d534ce5c79422c086a63460502b827ce62a326683c"],["d24a44e047e19b6f5afb81c7ca2f69080a5076689a010919f42725c2b789a33b","6fb8d5591b466f8fc63db50f1c0f1c69013f996887b8244d2cdec417afea8fa3"],["ea01606a7a6c9cdd249fdfcfacb99584001edd28abbab77b5104e98e8e3b35d4","322af4908c7312b0cfbfe369f7a7b3cdb7d4494bc2823700cfd652188a3ea98d"],["af8addbf2b661c8a6c6328655eb96651252007d8c5ea31be4ad196de8ce2131f","6749e67c029b85f52a034eafd096836b2520818680e26ac8f3dfbcdb71749700"],["e3ae1974566ca06cc516d47e0fb165a674a3dabcfca15e722f0e3450f45889","2aeabe7e4531510116217f07bf4d07300de97e4874f81f533420a72eeb0bd6a4"],["591ee355313d99721cf6993ffed1e3e301993ff3ed258802075ea8ced397e246","b0ea558a113c30bea60fc4775460c7901ff0b053d25ca2bdeee98f1a4be5d196"],["11396d55fda54c49f19aa97318d8da61fa8584e47b084945077cf03255b52984","998c74a8cd45ac01289d5833a7beb4744ff536b01b257be4c5767bea93ea57a4"],["3c5d2a1ba39c5a1790000738c9e0c40b8dcdfd5468754b6405540157e017aa7a","b2284279995a34e2f9d4de7396fc18b80f9b8b9fdd270f6661f79ca4c81bd257"],["cc8704b8a60a0defa3a99a7299f2e9c3fbc395afb04ac078425ef8a1793cc030","bdd46039feed17881d1e0862db347f8cf395b74fc4bcdc4e940b74e3ac1f1b13"],["c533e4f7ea8555aacd9777ac5cad29b97dd4defccc53ee7ea204119b2889b197","6f0a256bc5efdf429a2fb6242f1a43a2d9b925bb4a4b3a26bb8e0f45eb596096"],["c14f8f2ccb27d6f109f6d08d03cc96a69ba8c34eec07bbcf566d48e33da6593","c359d6923bb398f7fd4473e16fe1c28475b740dd098075e6c0e8649113dc3a38"],["a6cbc3046bc6a450bac24789fa17115a4c9739ed75f8f21ce441f72e0b90e6ef","21ae7f4680e889bb130619e2c0f95a360ceb573c70603139862afd617fa9b9f"],["347d6d9a02c48927ebfb86c1359b1caf130a3c0267d11ce6344b39f99d43cc38","60ea7f61a353524d1c987f6ecec92f086d565ab687870cb12689ff1e31c74448"],["da6545d2181db8d983f7dcb375ef5866d47c67b1bf31c8cf855ef7437b72656a","49b96715ab6878a79e78f07ce5680c5d6673051b4935bd897fea824b77dc208a"],["c40747cc9d012cb1a13b8148309c6de7ec25d6945d657146b9d5994b8feb1111","5ca560753be2a12fc6de6caf2cb489565db936156b9514e1bb5e83037e0fa2d4"],["4e42c8ec82c99798ccf3a610be870e78338c7f713348bd34c8203ef4037f3502","7571d74ee5e0fb92a7a8b33a07783341a5492144cc54bcc40a94473693606437"],["3775ab7089bc6af823aba2e1af70b236d251cadb0c86743287522a1b3b0dedea","be52d107bcfa09d8bcb9736a828cfa7fac8db17bf7a76a2c42ad961409018cf7"],["cee31cbf7e34ec379d94fb814d3d775ad954595d1314ba8846959e3e82f74e26","8fd64a14c06b589c26b947ae2bcf6bfa0149ef0be14ed4d80f448a01c43b1c6d"],["b4f9eaea09b6917619f6ea6a4eb5464efddb58fd45b1ebefcdc1a01d08b47986","39e5c9925b5a54b07433a4f18c61726f8bb131c012ca542eb24a8ac07200682a"],["d4263dfc3d2df923a0179a48966d30ce84e2515afc3dccc1b77907792ebcc60e","62dfaf07a0f78feb30e30d6295853ce189e127760ad6cf7fae164e122a208d54"],["48457524820fa65a4f8d35eb6930857c0032acc0a4a2de422233eeda897612c4","25a748ab367979d98733c38a1fa1c2e7dc6cc07db2d60a9ae7a76aaa49bd0f77"],["dfeeef1881101f2cb11644f3a2afdfc2045e19919152923f367a1767c11cceda","ecfb7056cf1de042f9420bab396793c0c390bde74b4bbdff16a83ae09a9a7517"],["6d7ef6b17543f8373c573f44e1f389835d89bcbc6062ced36c82df83b8fae859","cd450ec335438986dfefa10c57fea9bcc521a0959b2d80bbf74b190dca712d10"],["e75605d59102a5a2684500d3b991f2e3f3c88b93225547035af25af66e04541f","f5c54754a8f71ee540b9b48728473e314f729ac5308b06938360990e2bfad125"],["eb98660f4c4dfaa06a2be453d5020bc99a0c2e60abe388457dd43fefb1ed620c","6cb9a8876d9cb8520609af3add26cd20a0a7cd8a9411131ce85f44100099223e"],["13e87b027d8514d35939f2e6892b19922154596941888336dc3563e3b8dba942","fef5a3c68059a6dec5d624114bf1e91aac2b9da568d6abeb2570d55646b8adf1"],["ee163026e9fd6fe017c38f06a5be6fc125424b371ce2708e7bf4491691e5764a","1acb250f255dd61c43d94ccc670d0f58f49ae3fa15b96623e5430da0ad6c62b2"],["b268f5ef9ad51e4d78de3a750c2dc89b1e626d43505867999932e5db33af3d80","5f310d4b3c99b9ebb19f77d41c1dee018cf0d34fd4191614003e945a1216e423"],["ff07f3118a9df035e9fad85eb6c7bfe42b02f01ca99ceea3bf7ffdba93c4750d","438136d603e858a3a5c440c38eccbaddc1d2942114e2eddd4740d098ced1f0d8"],["8d8b9855c7c052a34146fd20ffb658bea4b9f69e0d825ebec16e8c3ce2b526a1","cdb559eedc2d79f926baf44fb84ea4d44bcf50fee51d7ceb30e2e7f463036758"],["52db0b5384dfbf05bfa9d472d7ae26dfe4b851ceca91b1eba54263180da32b63","c3b997d050ee5d423ebaf66a6db9f57b3180c902875679de924b69d84a7b375"],["e62f9490d3d51da6395efd24e80919cc7d0f29c3f3fa48c6fff543becbd43352","6d89ad7ba4876b0b22c2ca280c682862f342c8591f1daf5170e07bfd9ccafa7d"],["7f30ea2476b399b4957509c88f77d0191afa2ff5cb7b14fd6d8e7d65aaab1193","ca5ef7d4b231c94c3b15389a5f6311e9daff7bb67b103e9880ef4bff637acaec"],["5098ff1e1d9f14fb46a210fada6c903fef0fb7b4a1dd1d9ac60a0361800b7a00","9731141d81fc8f8084d37c6e7542006b3ee1b40d60dfe5362a5b132fd17ddc0"],["32b78c7de9ee512a72895be6b9cbefa6e2f3c4ccce445c96b9f2c81e2778ad58","ee1849f513df71e32efc3896ee28260c73bb80547ae2275ba497237794c8753c"],["e2cb74fddc8e9fbcd076eef2a7c72b0ce37d50f08269dfc074b581550547a4f7","d3aa2ed71c9dd2247a62df062736eb0baddea9e36122d2be8641abcb005cc4a4"],["8438447566d4d7bedadc299496ab357426009a35f235cb141be0d99cd10ae3a8","c4e1020916980a4da5d01ac5e6ad330734ef0d7906631c4f2390426b2edd791f"],["4162d488b89402039b584c6fc6c308870587d9c46f660b878ab65c82c711d67e","67163e903236289f776f22c25fb8a3afc1732f2b84b4e95dbda47ae5a0852649"],["3fad3fa84caf0f34f0f89bfd2dcf54fc175d767aec3e50684f3ba4a4bf5f683d","cd1bc7cb6cc407bb2f0ca647c718a730cf71872e7d0d2a53fa20efcdfe61826"],["674f2600a3007a00568c1a7ce05d0816c1fb84bf1370798f1c69532faeb1a86b","299d21f9413f33b3edf43b257004580b70db57da0b182259e09eecc69e0d38a5"],["d32f4da54ade74abb81b815ad1fb3b263d82d6c692714bcff87d29bd5ee9f08f","f9429e738b8e53b968e99016c059707782e14f4535359d582fc416910b3eea87"],["30e4e670435385556e593657135845d36fbb6931f72b08cb1ed954f1e3ce3ff6","462f9bce619898638499350113bbc9b10a878d35da70740dc695a559eb88db7b"],["be2062003c51cc3004682904330e4dee7f3dcd10b01e580bf1971b04d4cad297","62188bc49d61e5428573d48a74e1c655b1c61090905682a0d5558ed72dccb9bc"],["93144423ace3451ed29e0fb9ac2af211cb6e84a601df5993c419859fff5df04a","7c10dfb164c3425f5c71a3f9d7992038f1065224f72bb9d1d902a6d13037b47c"],["b015f8044f5fcbdcf21ca26d6c34fb8197829205c7b7d2a7cb66418c157b112c","ab8c1e086d04e813744a655b2df8d5f83b3cdc6faa3088c1d3aea1454e3a1d5f"],["d5e9e1da649d97d89e4868117a465a3a4f8a18de57a140d36b3f2af341a21b52","4cb04437f391ed73111a13cc1d4dd0db1693465c2240480d8955e8592f27447a"],["d3ae41047dd7ca065dbf8ed77b992439983005cd72e16d6f996a5316d36966bb","bd1aeb21ad22ebb22a10f0303417c6d964f8cdd7df0aca614b10dc14d125ac46"],["463e2763d885f958fc66cdd22800f0a487197d0a82e377b49f80af87c897b065","bfefacdb0e5d0fd7df3a311a94de062b26b80c61fbc97508b79992671ef7ca7f"],["7985fdfd127c0567c6f53ec1bb63ec3158e597c40bfe747c83cddfc910641917","603c12daf3d9862ef2b25fe1de289aed24ed291e0ec6708703a5bd567f32ed03"],["74a1ad6b5f76e39db2dd249410eac7f99e74c59cb83d2d0ed5ff1543da7703e9","cc6157ef18c9c63cd6193d83631bbea0093e0968942e8c33d5737fd790e0db08"],["30682a50703375f602d416664ba19b7fc9bab42c72747463a71d0896b22f6da3","553e04f6b018b4fa6c8f39e7f311d3176290d0e0f19ca73f17714d9977a22ff8"],["9e2158f0d7c0d5f26c3791efefa79597654e7a2b2464f52b1ee6c1347769ef57","712fcdd1b9053f09003a3481fa7762e9ffd7c8ef35a38509e2fbf2629008373"],["176e26989a43c9cfeba4029c202538c28172e566e3c4fce7322857f3be327d66","ed8cc9d04b29eb877d270b4878dc43c19aefd31f4eee09ee7b47834c1fa4b1c3"],["75d46efea3771e6e68abb89a13ad747ecf1892393dfc4f1b7004788c50374da8","9852390a99507679fd0b86fd2b39a868d7efc22151346e1a3ca4726586a6bed8"],["809a20c67d64900ffb698c4c825f6d5f2310fb0451c869345b7319f645605721","9e994980d9917e22b76b061927fa04143d096ccc54963e6a5ebfa5f3f8e286c1"],["1b38903a43f7f114ed4500b4eac7083fdefece1cf29c63528d563446f972c180","4036edc931a60ae889353f77fd53de4a2708b26b6f5da72ad3394119daf408f9"]]}}},function(e,t,r){"use strict";var n=r(10),i=r(13);function a(e,t,r){if(!(this instanceof a))return new a(e,t,r);this.Hash=e,this.blockSize=e.blockSize/8,this.outSize=e.outSize/8,this.inner=null,this.outer=null,this._init(n.toArray(t,r))}e.exports=a,a.prototype._init=function(e){e.length>this.blockSize&&(e=(new this.Hash).update(e).digest()),i(e.length<=this.blockSize);for(var t=e.length;t<this.blockSize;t++)e.push(0);for(t=0;t<e.length;t++)e[t]^=54;for(this.inner=(new this.Hash).update(e),t=0;t<e.length;t++)e[t]^=106;this.outer=(new this.Hash).update(e)},a.prototype.update=function(e,t){return this.inner.update(e,t),this},a.prototype.digest=function(e){return this.outer.update(this.inner.digest()),this.outer.digest(e)}},function(e,t,r){"use strict";var n=r(10),i=r(20),a=n.rotl32,o=n.sum32,s=n.sum32_3,f=n.sum32_4,u=i.BlockHash;function c(){if(!(this instanceof c))return new c;u.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.endian="little"}function l(e,t,r,n){return e<=15?t^r^n:e<=31?t&r|~t&n:e<=47?(t|~r)^n:e<=63?t&n|r&~n:t^(r|~n)}function d(e){return e<=15?0:e<=31?1518500249:e<=47?1859775393:e<=63?2400959708:2840853838}function h(e){return e<=15?1352829926:e<=31?1548603684:e<=47?1836072691:e<=63?2053994217:0}n.inherits(c,u),t.ripemd160=c,c.blockSize=512,c.outSize=160,c.hmacStrength=192,c.padLength=64,c.prototype._update=function(e,t){for(var r=this.h[0],n=this.h[1],i=this.h[2],u=this.h[3],c=this.h[4],g=r,y=n,w=i,_=u,S=c,k=0;k<80;k++){var x=o(a(f(r,l(k,n,i,u),e[p[k]+t],d(k)),v[k]),c);r=c,c=u,u=a(i,10),i=n,n=x,x=o(a(f(g,l(79-k,y,w,_),e[b[k]+t],h(k)),m[k]),S),g=S,S=_,_=a(w,10),w=y,y=x}x=s(this.h[1],i,_),this.h[1]=s(this.h[2],u,S),this.h[2]=s(this.h[3],c,g),this.h[3]=s(this.h[4],r,y),this.h[4]=s(this.h[0],n,w),this.h[0]=x},c.prototype._digest=function(e){return"hex"===e?n.toHex32(this.h,"little"):n.split32(this.h,"little")};var p=[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],b=[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],v=[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],m=[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]},function(e,t,r){"use strict";var n=r(10),i=r(60);function a(){if(!(this instanceof a))return new a;i.call(this),this.h=[3418070365,3238371032,1654270250,914150663,2438529370,812702999,355462360,4144912697,1731405415,4290775857,2394180231,1750603025,3675008525,1694076839,1203062813,3204075428]}n.inherits(a,i),e.exports=a,a.blockSize=1024,a.outSize=384,a.hmacStrength=192,a.padLength=128,a.prototype._digest=function(e){return"hex"===e?n.toHex32(this.h.slice(0,12),"big"):n.split32(this.h.slice(0,12),"big")}},function(e,t,r){"use strict";var n=r(10),i=r(61);function a(){if(!(this instanceof a))return new a;i.call(this),this.h=[3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428]}n.inherits(a,i),e.exports=a,a.blockSize=512,a.outSize=224,a.hmacStrength=192,a.padLength=64,a.prototype._digest=function(e){return"hex"===e?n.toHex32(this.h.slice(0,7),"big"):n.split32(this.h.slice(0,7),"big")}},function(e,t,r){"use strict";var n=r(10),i=r(20),a=r(62),o=n.rotl32,s=n.sum32,f=n.sum32_5,u=a.ft_1,c=i.BlockHash,l=[1518500249,1859775393,2400959708,3395469782];function d(){if(!(this instanceof d))return new d;c.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80)}n.inherits(d,c),e.exports=d,d.blockSize=512,d.outSize=160,d.hmacStrength=80,d.padLength=64,d.prototype._update=function(e,t){for(var r=this.W,n=0;n<16;n++)r[n]=e[t+n];for(;n<r.length;n++)r[n]=o(r[n-3]^r[n-8]^r[n-14]^r[n-16],1);var i=this.h[0],a=this.h[1],c=this.h[2],d=this.h[3],h=this.h[4];for(n=0;n<r.length;n++){var p=~~(n/20),b=f(o(i,5),u(p,a,c,d),h,r[n],l[p]);h=d,d=c,c=o(a,30),a=i,i=b}this.h[0]=s(this.h[0],i),this.h[1]=s(this.h[1],a),this.h[2]=s(this.h[2],c),this.h[3]=s(this.h[3],d),this.h[4]=s(this.h[4],h)},d.prototype._digest=function(e){return"hex"===e?n.toHex32(this.h,"big"):n.split32(this.h,"big")}},function(e,t,r){"use strict";t.sha1=r(130),t.sha224=r(129),t.sha256=r(61),t.sha384=r(128),t.sha512=r(60)},function(e,t,r){"use strict";var n,i=t,a=r(34),o=r(7),s=o.utils.assert;function f(e){"short"===e.type?this.curve=new o.curve.short(e):"edwards"===e.type?this.curve=new o.curve.edwards(e):this.curve=new o.curve.mont(e),this.g=this.curve.g,this.n=this.curve.n,this.hash=e.hash,s(this.g.validate(),"Invalid curve"),s(this.g.mul(this.n).isInfinity(),"Invalid curve, G*N != O")}function u(e,t){Object.defineProperty(i,e,{configurable:!0,enumerable:!0,get:function(){var r=new f(t);return Object.defineProperty(i,e,{configurable:!0,enumerable:!0,value:r}),r}})}i.PresetCurve=f,u("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:a.sha256,gRed:!1,g:["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012","07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]}),u("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:a.sha256,gRed:!1,g:["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21","bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"]}),u("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:a.sha256,gRed:!1,g:["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296","4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]}),u("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:a.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"]}),u("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:a.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"]}),u("curve25519",{type:"mont",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"76d06",b:"1",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:a.sha256,gRed:!1,g:["9"]}),u("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:a.sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});try{n=r(125)}catch(e){n=void 0}u("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:a.sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"},{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",n]})},function(e,t,r){"use strict";var n=r(24),i=r(7),a=r(11),o=r(1),s=n.base,f=i.utils.assert;function u(e){this.twisted=1!=(0|e.a),this.mOneA=this.twisted&&-1==(0|e.a),this.extended=this.mOneA,s.call(this,"edwards",e),this.a=new a(e.a,16).umod(this.red.m),this.a=this.a.toRed(this.red),this.c=new a(e.c,16).toRed(this.red),this.c2=this.c.redSqr(),this.d=new a(e.d,16).toRed(this.red),this.dd=this.d.redAdd(this.d),f(!this.twisted||0===this.c.fromRed().cmpn(1)),this.oneC=1==(0|e.c)}function c(e,t,r,n,i){s.BasePoint.call(this,e,"projective"),null===t&&null===r&&null===n?(this.x=this.curve.zero,this.y=this.curve.one,this.z=this.curve.one,this.t=this.curve.zero,this.zOne=!0):(this.x=new a(t,16),this.y=new a(r,16),this.z=n?new a(n,16):this.curve.one,this.t=i&&new a(i,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.t&&!this.t.red&&(this.t=this.t.toRed(this.curve.red)),this.zOne=this.z===this.curve.one,this.curve.extended&&!this.t&&(this.t=this.x.redMul(this.y),this.zOne||(this.t=this.t.redMul(this.z.redInvm()))))}o(u,s),e.exports=u,u.prototype._mulA=function(e){return this.mOneA?e.redNeg():this.a.redMul(e)},u.prototype._mulC=function(e){return this.oneC?e:this.c.redMul(e)},u.prototype.jpoint=function(e,t,r,n){return this.point(e,t,r,n)},u.prototype.pointFromX=function(e,t){(e=new a(e,16)).red||(e=e.toRed(this.red));var r=e.redSqr(),n=this.c2.redSub(this.a.redMul(r)),i=this.one.redSub(this.c2.redMul(this.d).redMul(r)),o=n.redMul(i.redInvm()),s=o.redSqrt();if(0!==s.redSqr().redSub(o).cmp(this.zero))throw new Error("invalid point");var f=s.fromRed().isOdd();return(t&&!f||!t&&f)&&(s=s.redNeg()),this.point(e,s)},u.prototype.pointFromY=function(e,t){(e=new a(e,16)).red||(e=e.toRed(this.red));var r=e.redSqr(),n=r.redSub(this.one),i=r.redMul(this.d).redAdd(this.one),o=n.redMul(i.redInvm());if(0===o.cmp(this.zero)){if(t)throw new Error("invalid point");return this.point(this.zero,e)}var s=o.redSqrt();if(0!==s.redSqr().redSub(o).cmp(this.zero))throw new Error("invalid point");return s.isOdd()!==t&&(s=s.redNeg()),this.point(s,e)},u.prototype.validate=function(e){if(e.isInfinity())return!0;e.normalize();var t=e.x.redSqr(),r=e.y.redSqr(),n=t.redMul(this.a).redAdd(r),i=this.c2.redMul(this.one.redAdd(this.d.redMul(t).redMul(r)));return 0===n.cmp(i)},o(c,s.BasePoint),u.prototype.pointFromJSON=function(e){return c.fromJSON(this,e)},u.prototype.point=function(e,t,r,n){return new c(this,e,t,r,n)},c.fromJSON=function(e,t){return new c(e,t[0],t[1],t[2])},c.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" y: "+this.y.fromRed().toString(16,2)+" z: "+this.z.fromRed().toString(16,2)+">"},c.prototype.isInfinity=function(){return 0===this.x.cmpn(0)&&0===this.y.cmp(this.z)},c.prototype._extDbl=function(){var e=this.x.redSqr(),t=this.y.redSqr(),r=this.z.redSqr();r=r.redIAdd(r);var n=this.curve._mulA(e),i=this.x.redAdd(this.y).redSqr().redISub(e).redISub(t),a=n.redAdd(t),o=a.redSub(r),s=n.redSub(t),f=i.redMul(o),u=a.redMul(s),c=i.redMul(s),l=o.redMul(a);return this.curve.point(f,u,l,c)},c.prototype._projDbl=function(){var e,t,r,n=this.x.redAdd(this.y).redSqr(),i=this.x.redSqr(),a=this.y.redSqr();if(this.curve.twisted){var o=(u=this.curve._mulA(i)).redAdd(a);if(this.zOne)e=n.redSub(i).redSub(a).redMul(o.redSub(this.curve.two)),t=o.redMul(u.redSub(a)),r=o.redSqr().redSub(o).redSub(o);else{var s=this.z.redSqr(),f=o.redSub(s).redISub(s);e=n.redSub(i).redISub(a).redMul(f),t=o.redMul(u.redSub(a)),r=o.redMul(f)}}else{var u=i.redAdd(a);s=this.curve._mulC(this.c.redMul(this.z)).redSqr(),f=u.redSub(s).redSub(s);e=this.curve._mulC(n.redISub(u)).redMul(f),t=this.curve._mulC(u).redMul(i.redISub(a)),r=u.redMul(f)}return this.curve.point(e,t,r)},c.prototype.dbl=function(){return this.isInfinity()?this:this.curve.extended?this._extDbl():this._projDbl()},c.prototype._extAdd=function(e){var t=this.y.redSub(this.x).redMul(e.y.redSub(e.x)),r=this.y.redAdd(this.x).redMul(e.y.redAdd(e.x)),n=this.t.redMul(this.curve.dd).redMul(e.t),i=this.z.redMul(e.z.redAdd(e.z)),a=r.redSub(t),o=i.redSub(n),s=i.redAdd(n),f=r.redAdd(t),u=a.redMul(o),c=s.redMul(f),l=a.redMul(f),d=o.redMul(s);return this.curve.point(u,c,d,l)},c.prototype._projAdd=function(e){var t,r,n=this.z.redMul(e.z),i=n.redSqr(),a=this.x.redMul(e.x),o=this.y.redMul(e.y),s=this.curve.d.redMul(a).redMul(o),f=i.redSub(s),u=i.redAdd(s),c=this.x.redAdd(this.y).redMul(e.x.redAdd(e.y)).redISub(a).redISub(o),l=n.redMul(f).redMul(c);return this.curve.twisted?(t=n.redMul(u).redMul(o.redSub(this.curve._mulA(a))),r=f.redMul(u)):(t=n.redMul(u).redMul(o.redSub(a)),r=this.curve._mulC(f).redMul(u)),this.curve.point(l,t,r)},c.prototype.add=function(e){return this.isInfinity()?e:e.isInfinity()?this:this.curve.extended?this._extAdd(e):this._projAdd(e)},c.prototype.mul=function(e){return this._hasDoubles(e)?this.curve._fixedNafMul(this,e):this.curve._wnafMul(this,e)},c.prototype.mulAdd=function(e,t,r){return this.curve._wnafMulAdd(1,[this,t],[e,r],2,!1)},c.prototype.jmulAdd=function(e,t,r){return this.curve._wnafMulAdd(1,[this,t],[e,r],2,!0)},c.prototype.normalize=function(){if(this.zOne)return this;var e=this.z.redInvm();return this.x=this.x.redMul(e),this.y=this.y.redMul(e),this.t&&(this.t=this.t.redMul(e)),this.z=this.curve.one,this.zOne=!0,this},c.prototype.neg=function(){return this.curve.point(this.x.redNeg(),this.y,this.z,this.t&&this.t.redNeg())},c.prototype.getX=function(){return this.normalize(),this.x.fromRed()},c.prototype.getY=function(){return this.normalize(),this.y.fromRed()},c.prototype.eq=function(e){return this===e||0===this.getX().cmp(e.getX())&&0===this.getY().cmp(e.getY())},c.prototype.eqXToP=function(e){var t=e.toRed(this.curve.red).redMul(this.z);if(0===this.x.cmp(t))return!0;for(var r=e.clone(),n=this.curve.redN.redMul(this.z);;){if(r.iadd(this.curve.n),r.cmp(this.curve.p)>=0)return!1;if(t.redIAdd(n),0===this.x.cmp(t))return!0}return!1},c.prototype.toP=c.prototype.normalize,c.prototype.mixedAdd=c.prototype.add},function(e,t,r){"use strict";var n=r(24),i=r(11),a=r(1),o=n.base,s=r(7).utils;function f(e){o.call(this,"mont",e),this.a=new i(e.a,16).toRed(this.red),this.b=new i(e.b,16).toRed(this.red),this.i4=new i(4).toRed(this.red).redInvm(),this.two=new i(2).toRed(this.red),this.a24=this.i4.redMul(this.a.redAdd(this.two))}function u(e,t,r){o.BasePoint.call(this,e,"projective"),null===t&&null===r?(this.x=this.curve.one,this.z=this.curve.zero):(this.x=new i(t,16),this.z=new i(r,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)))}a(f,o),e.exports=f,f.prototype.validate=function(e){var t=e.normalize().x,r=t.redSqr(),n=r.redMul(t).redAdd(r.redMul(this.a)).redAdd(t);return 0===n.redSqrt().redSqr().cmp(n)},a(u,o.BasePoint),f.prototype.decodePoint=function(e,t){return this.point(s.toArray(e,t),1)},f.prototype.point=function(e,t){return new u(this,e,t)},f.prototype.pointFromJSON=function(e){return u.fromJSON(this,e)},u.prototype.precompute=function(){},u.prototype._encode=function(){return this.getX().toArray("be",this.curve.p.byteLength())},u.fromJSON=function(e,t){return new u(e,t[0],t[1]||e.one)},u.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" z: "+this.z.fromRed().toString(16,2)+">"},u.prototype.isInfinity=function(){return 0===this.z.cmpn(0)},u.prototype.dbl=function(){var e=this.x.redAdd(this.z).redSqr(),t=this.x.redSub(this.z).redSqr(),r=e.redSub(t),n=e.redMul(t),i=r.redMul(t.redAdd(this.curve.a24.redMul(r)));return this.curve.point(n,i)},u.prototype.add=function(){throw new Error("Not supported on Montgomery curve")},u.prototype.diffAdd=function(e,t){var r=this.x.redAdd(this.z),n=this.x.redSub(this.z),i=e.x.redAdd(e.z),a=e.x.redSub(e.z).redMul(r),o=i.redMul(n),s=t.z.redMul(a.redAdd(o).redSqr()),f=t.x.redMul(a.redISub(o).redSqr());return this.curve.point(s,f)},u.prototype.mul=function(e){for(var t=e.clone(),r=this,n=this.curve.point(null,null),i=[];0!==t.cmpn(0);t.iushrn(1))i.push(t.andln(1));for(var a=i.length-1;a>=0;a--)0===i[a]?(r=r.diffAdd(n,this),n=n.dbl()):(n=r.diffAdd(n,this),r=r.dbl());return n},u.prototype.mulAdd=function(){throw new Error("Not supported on Montgomery curve")},u.prototype.jumlAdd=function(){throw new Error("Not supported on Montgomery curve")},u.prototype.eq=function(e){return 0===this.getX().cmp(e.getX())},u.prototype.normalize=function(){return this.x=this.x.redMul(this.z.redInvm()),this.z=this.curve.one,this},u.prototype.getX=function(){return this.normalize(),this.x.fromRed()}},function(e,t,r){"use strict";var n=r(24),i=r(7),a=r(11),o=r(1),s=n.base,f=i.utils.assert;function u(e){s.call(this,"short",e),this.a=new a(e.a,16).toRed(this.red),this.b=new a(e.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(e),this._endoWnafT1=new Array(4),this._endoWnafT2=new Array(4)}function c(e,t,r,n){s.BasePoint.call(this,e,"affine"),null===t&&null===r?(this.x=null,this.y=null,this.inf=!0):(this.x=new a(t,16),this.y=new a(r,16),n&&(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 l(e,t,r,n){s.BasePoint.call(this,e,"jacobian"),null===t&&null===r&&null===n?(this.x=this.curve.one,this.y=this.curve.one,this.z=new a(0)):(this.x=new a(t,16),this.y=new a(r,16),this.z=new a(n,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}o(u,s),e.exports=u,u.prototype._getEndomorphism=function(e){if(this.zeroA&&this.g&&this.n&&1===this.p.modn(3)){var t,r;if(e.beta)t=new a(e.beta,16).toRed(this.red);else{var n=this._getEndoRoots(this.p);t=(t=n[0].cmp(n[1])<0?n[0]:n[1]).toRed(this.red)}if(e.lambda)r=new a(e.lambda,16);else{var i=this._getEndoRoots(this.n);0===this.g.mul(i[0]).x.cmp(this.g.x.redMul(t))?r=i[0]:(r=i[1],f(0===this.g.mul(r).x.cmp(this.g.x.redMul(t))))}return{beta:t,lambda:r,basis:e.basis?e.basis.map(function(e){return{a:new a(e.a,16),b:new a(e.b,16)}}):this._getEndoBasis(r)}}},u.prototype._getEndoRoots=function(e){var t=e===this.p?this.red:a.mont(e),r=new a(2).toRed(t).redInvm(),n=r.redNeg(),i=new a(3).toRed(t).redNeg().redSqrt().redMul(r);return[n.redAdd(i).fromRed(),n.redSub(i).fromRed()]},u.prototype._getEndoBasis=function(e){for(var t,r,n,i,o,s,f,u,c,l=this.n.ushrn(Math.floor(this.n.bitLength()/2)),d=e,h=this.n.clone(),p=new a(1),b=new a(0),v=new a(0),m=new a(1),g=0;0!==d.cmpn(0);){var y=h.div(d);u=h.sub(y.mul(d)),c=v.sub(y.mul(p));var w=m.sub(y.mul(b));if(!n&&u.cmp(l)<0)t=f.neg(),r=p,n=u.neg(),i=c;else if(n&&2==++g)break;f=u,h=d,d=u,v=p,p=c,m=b,b=w}o=u.neg(),s=c;var _=n.sqr().add(i.sqr());return o.sqr().add(s.sqr()).cmp(_)>=0&&(o=t,s=r),n.negative&&(n=n.neg(),i=i.neg()),o.negative&&(o=o.neg(),s=s.neg()),[{a:n,b:i},{a:o,b:s}]},u.prototype._endoSplit=function(e){var t=this.endo.basis,r=t[0],n=t[1],i=n.b.mul(e).divRound(this.n),a=r.b.neg().mul(e).divRound(this.n),o=i.mul(r.a),s=a.mul(n.a),f=i.mul(r.b),u=a.mul(n.b);return{k1:e.sub(o).sub(s),k2:f.add(u).neg()}},u.prototype.pointFromX=function(e,t){(e=new a(e,16)).red||(e=e.toRed(this.red));var r=e.redSqr().redMul(e).redIAdd(e.redMul(this.a)).redIAdd(this.b),n=r.redSqrt();if(0!==n.redSqr().redSub(r).cmp(this.zero))throw new Error("invalid point");var i=n.fromRed().isOdd();return(t&&!i||!t&&i)&&(n=n.redNeg()),this.point(e,n)},u.prototype.validate=function(e){if(e.inf)return!0;var t=e.x,r=e.y,n=this.a.redMul(t),i=t.redSqr().redMul(t).redIAdd(n).redIAdd(this.b);return 0===r.redSqr().redISub(i).cmpn(0)},u.prototype._endoWnafMulAdd=function(e,t,r){for(var n=this._endoWnafT1,i=this._endoWnafT2,a=0;a<e.length;a++){var o=this._endoSplit(t[a]),s=e[a],f=s._getBeta();o.k1.negative&&(o.k1.ineg(),s=s.neg(!0)),o.k2.negative&&(o.k2.ineg(),f=f.neg(!0)),n[2*a]=s,n[2*a+1]=f,i[2*a]=o.k1,i[2*a+1]=o.k2}for(var u=this._wnafMulAdd(1,n,i,2*a,r),c=0;c<2*a;c++)n[c]=null,i[c]=null;return u},o(c,s.BasePoint),u.prototype.point=function(e,t,r){return new c(this,e,t,r)},u.prototype.pointFromJSON=function(e,t){return c.fromJSON(this,e,t)},c.prototype._getBeta=function(){if(this.curve.endo){var e=this.precomputed;if(e&&e.beta)return e.beta;var t=this.curve.point(this.x.redMul(this.curve.endo.beta),this.y);if(e){var r=this.curve,n=function(e){return r.point(e.x.redMul(r.endo.beta),e.y)};e.beta=t,t.precomputed={beta:null,naf:e.naf&&{wnd:e.naf.wnd,points:e.naf.points.map(n)},doubles:e.doubles&&{step:e.doubles.step,points:e.doubles.points.map(n)}}}return t}},c.prototype.toJSON=function(){return this.precomputed?[this.x,this.y,this.precomputed&&{doubles:this.precomputed.doubles&&{step:this.precomputed.doubles.step,points:this.precomputed.doubles.points.slice(1)},naf:this.precomputed.naf&&{wnd:this.precomputed.naf.wnd,points:this.precomputed.naf.points.slice(1)}}]:[this.x,this.y]},c.fromJSON=function(e,t,r){"string"==typeof t&&(t=JSON.parse(t));var n=e.point(t[0],t[1],r);if(!t[2])return n;function i(t){return e.point(t[0],t[1],r)}var a=t[2];return n.precomputed={beta:null,doubles:a.doubles&&{step:a.doubles.step,points:[n].concat(a.doubles.points.map(i))},naf:a.naf&&{wnd:a.naf.wnd,points:[n].concat(a.naf.points.map(i))}},n},c.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" y: "+this.y.fromRed().toString(16,2)+">"},c.prototype.isInfinity=function(){return this.inf},c.prototype.add=function(e){if(this.inf)return e;if(e.inf)return this;if(this.eq(e))return this.dbl();if(this.neg().eq(e))return this.curve.point(null,null);if(0===this.x.cmp(e.x))return this.curve.point(null,null);var t=this.y.redSub(e.y);0!==t.cmpn(0)&&(t=t.redMul(this.x.redSub(e.x).redInvm()));var r=t.redSqr().redISub(this.x).redISub(e.x),n=t.redMul(this.x.redSub(r)).redISub(this.y);return this.curve.point(r,n)},c.prototype.dbl=function(){if(this.inf)return this;var e=this.y.redAdd(this.y);if(0===e.cmpn(0))return this.curve.point(null,null);var t=this.curve.a,r=this.x.redSqr(),n=e.redInvm(),i=r.redAdd(r).redIAdd(r).redIAdd(t).redMul(n),a=i.redSqr().redISub(this.x.redAdd(this.x)),o=i.redMul(this.x.redSub(a)).redISub(this.y);return this.curve.point(a,o)},c.prototype.getX=function(){return this.x.fromRed()},c.prototype.getY=function(){return this.y.fromRed()},c.prototype.mul=function(e){return e=new a(e,16),this._hasDoubles(e)?this.curve._fixedNafMul(this,e):this.curve.endo?this.curve._endoWnafMulAdd([this],[e]):this.curve._wnafMul(this,e)},c.prototype.mulAdd=function(e,t,r){var n=[this,t],i=[e,r];return this.curve.endo?this.curve._endoWnafMulAdd(n,i):this.curve._wnafMulAdd(1,n,i,2)},c.prototype.jmulAdd=function(e,t,r){var n=[this,t],i=[e,r];return this.curve.endo?this.curve._endoWnafMulAdd(n,i,!0):this.curve._wnafMulAdd(1,n,i,2,!0)},c.prototype.eq=function(e){return this===e||this.inf===e.inf&&(this.inf||0===this.x.cmp(e.x)&&0===this.y.cmp(e.y))},c.prototype.neg=function(e){if(this.inf)return this;var t=this.curve.point(this.x,this.y.redNeg());if(e&&this.precomputed){var r=this.precomputed,n=function(e){return e.neg()};t.precomputed={naf:r.naf&&{wnd:r.naf.wnd,points:r.naf.points.map(n)},doubles:r.doubles&&{step:r.doubles.step,points:r.doubles.points.map(n)}}}return t},c.prototype.toJ=function(){return this.inf?this.curve.jpoint(null,null,null):this.curve.jpoint(this.x,this.y,this.curve.one)},o(l,s.BasePoint),u.prototype.jpoint=function(e,t,r){return new l(this,e,t,r)},l.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var e=this.z.redInvm(),t=e.redSqr(),r=this.x.redMul(t),n=this.y.redMul(t).redMul(e);return this.curve.point(r,n)},l.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)},l.prototype.add=function(e){if(this.isInfinity())return e;if(e.isInfinity())return this;var t=e.z.redSqr(),r=this.z.redSqr(),n=this.x.redMul(t),i=e.x.redMul(r),a=this.y.redMul(t.redMul(e.z)),o=e.y.redMul(r.redMul(this.z)),s=n.redSub(i),f=a.redSub(o);if(0===s.cmpn(0))return 0!==f.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var u=s.redSqr(),c=u.redMul(s),l=n.redMul(u),d=f.redSqr().redIAdd(c).redISub(l).redISub(l),h=f.redMul(l.redISub(d)).redISub(a.redMul(c)),p=this.z.redMul(e.z).redMul(s);return this.curve.jpoint(d,h,p)},l.prototype.mixedAdd=function(e){if(this.isInfinity())return e.toJ();if(e.isInfinity())return this;var t=this.z.redSqr(),r=this.x,n=e.x.redMul(t),i=this.y,a=e.y.redMul(t).redMul(this.z),o=r.redSub(n),s=i.redSub(a);if(0===o.cmpn(0))return 0!==s.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var f=o.redSqr(),u=f.redMul(o),c=r.redMul(f),l=s.redSqr().redIAdd(u).redISub(c).redISub(c),d=s.redMul(c.redISub(l)).redISub(i.redMul(u)),h=this.z.redMul(o);return this.curve.jpoint(l,d,h)},l.prototype.dblp=function(e){if(0===e)return this;if(this.isInfinity())return this;if(!e)return this.dbl();if(this.curve.zeroA||this.curve.threeA){for(var t=this,r=0;r<e;r++)t=t.dbl();return t}var n=this.curve.a,i=this.curve.tinv,a=this.x,o=this.y,s=this.z,f=s.redSqr().redSqr(),u=o.redAdd(o);for(r=0;r<e;r++){var c=a.redSqr(),l=u.redSqr(),d=l.redSqr(),h=c.redAdd(c).redIAdd(c).redIAdd(n.redMul(f)),p=a.redMul(l),b=h.redSqr().redISub(p.redAdd(p)),v=p.redISub(b),m=h.redMul(v);m=m.redIAdd(m).redISub(d);var g=u.redMul(s);r+1<e&&(f=f.redMul(d)),a=b,s=g,u=m}return this.curve.jpoint(a,u.redMul(i),s)},l.prototype.dbl=function(){return this.isInfinity()?this:this.curve.zeroA?this._zeroDbl():this.curve.threeA?this._threeDbl():this._dbl()},l.prototype._zeroDbl=function(){var e,t,r;if(this.zOne){var n=this.x.redSqr(),i=this.y.redSqr(),a=i.redSqr(),o=this.x.redAdd(i).redSqr().redISub(n).redISub(a);o=o.redIAdd(o);var s=n.redAdd(n).redIAdd(n),f=s.redSqr().redISub(o).redISub(o),u=a.redIAdd(a);u=(u=u.redIAdd(u)).redIAdd(u),e=f,t=s.redMul(o.redISub(f)).redISub(u),r=this.y.redAdd(this.y)}else{var c=this.x.redSqr(),l=this.y.redSqr(),d=l.redSqr(),h=this.x.redAdd(l).redSqr().redISub(c).redISub(d);h=h.redIAdd(h);var p=c.redAdd(c).redIAdd(c),b=p.redSqr(),v=d.redIAdd(d);v=(v=v.redIAdd(v)).redIAdd(v),e=b.redISub(h).redISub(h),t=p.redMul(h.redISub(e)).redISub(v),r=(r=this.y.redMul(this.z)).redIAdd(r)}return this.curve.jpoint(e,t,r)},l.prototype._threeDbl=function(){var e,t,r;if(this.zOne){var n=this.x.redSqr(),i=this.y.redSqr(),a=i.redSqr(),o=this.x.redAdd(i).redSqr().redISub(n).redISub(a);o=o.redIAdd(o);var s=n.redAdd(n).redIAdd(n).redIAdd(this.curve.a),f=s.redSqr().redISub(o).redISub(o);e=f;var u=a.redIAdd(a);u=(u=u.redIAdd(u)).redIAdd(u),t=s.redMul(o.redISub(f)).redISub(u),r=this.y.redAdd(this.y)}else{var c=this.z.redSqr(),l=this.y.redSqr(),d=this.x.redMul(l),h=this.x.redSub(c).redMul(this.x.redAdd(c));h=h.redAdd(h).redIAdd(h);var p=d.redIAdd(d),b=(p=p.redIAdd(p)).redAdd(p);e=h.redSqr().redISub(b),r=this.y.redAdd(this.z).redSqr().redISub(l).redISub(c);var v=l.redSqr();v=(v=(v=v.redIAdd(v)).redIAdd(v)).redIAdd(v),t=h.redMul(p.redISub(e)).redISub(v)}return this.curve.jpoint(e,t,r)},l.prototype._dbl=function(){var e=this.curve.a,t=this.x,r=this.y,n=this.z,i=n.redSqr().redSqr(),a=t.redSqr(),o=r.redSqr(),s=a.redAdd(a).redIAdd(a).redIAdd(e.redMul(i)),f=t.redAdd(t),u=(f=f.redIAdd(f)).redMul(o),c=s.redSqr().redISub(u.redAdd(u)),l=u.redISub(c),d=o.redSqr();d=(d=(d=d.redIAdd(d)).redIAdd(d)).redIAdd(d);var h=s.redMul(l).redISub(d),p=r.redAdd(r).redMul(n);return this.curve.jpoint(c,h,p)},l.prototype.trpl=function(){if(!this.curve.zeroA)return this.dbl().add(this);var e=this.x.redSqr(),t=this.y.redSqr(),r=this.z.redSqr(),n=t.redSqr(),i=e.redAdd(e).redIAdd(e),a=i.redSqr(),o=this.x.redAdd(t).redSqr().redISub(e).redISub(n),s=(o=(o=(o=o.redIAdd(o)).redAdd(o).redIAdd(o)).redISub(a)).redSqr(),f=n.redIAdd(n);f=(f=(f=f.redIAdd(f)).redIAdd(f)).redIAdd(f);var u=i.redIAdd(o).redSqr().redISub(a).redISub(s).redISub(f),c=t.redMul(u);c=(c=c.redIAdd(c)).redIAdd(c);var l=this.x.redMul(s).redISub(c);l=(l=l.redIAdd(l)).redIAdd(l);var d=this.y.redMul(u.redMul(f.redISub(u)).redISub(o.redMul(s)));d=(d=(d=d.redIAdd(d)).redIAdd(d)).redIAdd(d);var h=this.z.redAdd(o).redSqr().redISub(r).redISub(s);return this.curve.jpoint(l,d,h)},l.prototype.mul=function(e,t){return e=new a(e,t),this.curve._wnafMul(this,e)},l.prototype.eq=function(e){if("affine"===e.type)return this.eq(e.toJ());if(this===e)return!0;var t=this.z.redSqr(),r=e.z.redSqr();if(0!==this.x.redMul(r).redISub(e.x.redMul(t)).cmpn(0))return!1;var n=t.redMul(this.z),i=r.redMul(e.z);return 0===this.y.redMul(i).redISub(e.y.redMul(n)).cmpn(0)},l.prototype.eqXToP=function(e){var t=this.z.redSqr(),r=e.toRed(this.curve.red).redMul(t);if(0===this.x.cmp(r))return!0;for(var n=e.clone(),i=this.curve.redN.redMul(t);;){if(n.iadd(this.curve.n),n.cmp(this.curve.p)>=0)return!1;if(r.redIAdd(i),0===this.x.cmp(r))return!0}return!1},l.prototype.inspect=function(){return this.isInfinity()?"<EC JPoint Infinity>":"<EC JPoint x: "+this.x.toString(16,2)+" y: "+this.y.toString(16,2)+" z: "+this.z.toString(16,2)+">"},l.prototype.isInfinity=function(){return 0===this.z.cmpn(0)}},function(e,t,r){"use strict";var n=r(11),i=r(7).utils,a=i.getNAF,o=i.getJSF,s=i.assert;function f(e,t){this.type=e,this.p=new n(t.p,16),this.red=t.prime?n.red(t.prime):n.mont(this.p),this.zero=new n(0).toRed(this.red),this.one=new n(1).toRed(this.red),this.two=new n(2).toRed(this.red),this.n=t.n&&new n(t.n,16),this.g=t.g&&this.pointFromJSON(t.g,t.gRed),this._wnafT1=new Array(4),this._wnafT2=new Array(4),this._wnafT3=new Array(4),this._wnafT4=new Array(4);var r=this.n&&this.p.div(this.n);!r||r.cmpn(100)>0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}function u(e,t){this.curve=e,this.type=t,this.precomputed=null}e.exports=f,f.prototype.point=function(){throw new Error("Not implemented")},f.prototype.validate=function(){throw new Error("Not implemented")},f.prototype._fixedNafMul=function(e,t){s(e.precomputed);var r=e._getDoubles(),n=a(t,1),i=(1<<r.step+1)-(r.step%2==0?2:1);i/=3;for(var o=[],f=0;f<n.length;f+=r.step){var u=0;for(t=f+r.step-1;t>=f;t--)u=(u<<1)+n[t];o.push(u)}for(var c=this.jpoint(null,null,null),l=this.jpoint(null,null,null),d=i;d>0;d--){for(f=0;f<o.length;f++){(u=o[f])===d?l=l.mixedAdd(r.points[f]):u===-d&&(l=l.mixedAdd(r.points[f].neg()))}c=c.add(l)}return c.toP()},f.prototype._wnafMul=function(e,t){var r=4,n=e._getNAFPoints(r);r=n.wnd;for(var i=n.points,o=a(t,r),f=this.jpoint(null,null,null),u=o.length-1;u>=0;u--){for(t=0;u>=0&&0===o[u];u--)t++;if(u>=0&&t++,f=f.dblp(t),u<0)break;var c=o[u];s(0!==c),f="affine"===e.type?c>0?f.mixedAdd(i[c-1>>1]):f.mixedAdd(i[-c-1>>1].neg()):c>0?f.add(i[c-1>>1]):f.add(i[-c-1>>1].neg())}return"affine"===e.type?f.toP():f},f.prototype._wnafMulAdd=function(e,t,r,n,i){for(var s=this._wnafT1,f=this._wnafT2,u=this._wnafT3,c=0,l=0;l<n;l++){var d=(A=t[l])._getNAFPoints(e);s[l]=d.wnd,f[l]=d.points}for(l=n-1;l>=1;l-=2){var h=l-1,p=l;if(1===s[h]&&1===s[p]){var b=[t[h],null,null,t[p]];0===t[h].y.cmp(t[p].y)?(b[1]=t[h].add(t[p]),b[2]=t[h].toJ().mixedAdd(t[p].neg())):0===t[h].y.cmp(t[p].y.redNeg())?(b[1]=t[h].toJ().mixedAdd(t[p]),b[2]=t[h].add(t[p].neg())):(b[1]=t[h].toJ().mixedAdd(t[p]),b[2]=t[h].toJ().mixedAdd(t[p].neg()));var v=[-3,-1,-5,-7,0,7,5,1,3],m=o(r[h],r[p]);c=Math.max(m[0].length,c),u[h]=new Array(c),u[p]=new Array(c);for(var g=0;g<c;g++){var y=0|m[0][g],w=0|m[1][g];u[h][g]=v[3*(y+1)+(w+1)],u[p][g]=0,f[h]=b}}else u[h]=a(r[h],s[h]),u[p]=a(r[p],s[p]),c=Math.max(u[h].length,c),c=Math.max(u[p].length,c)}var _=this.jpoint(null,null,null),S=this._wnafT4;for(l=c;l>=0;l--){for(var k=0;l>=0;){var x=!0;for(g=0;g<n;g++)S[g]=0|u[g][l],0!==S[g]&&(x=!1);if(!x)break;k++,l--}if(l>=0&&k++,_=_.dblp(k),l<0)break;for(g=0;g<n;g++){var A,M=S[g];0!==M&&(M>0?A=f[g][M-1>>1]:M<0&&(A=f[g][-M-1>>1].neg()),_="affine"===A.type?_.mixedAdd(A):_.add(A))}}for(l=0;l<n;l++)f[l]=null;return i?_:_.toP()},f.BasePoint=u,u.prototype.eq=function(){throw new Error("Not implemented")},u.prototype.validate=function(){return this.curve.validate(this)},f.prototype.decodePoint=function(e,t){e=i.toArray(e,t);var r=this.p.byteLength();if((4===e[0]||6===e[0]||7===e[0])&&e.length-1==2*r)return 6===e[0]?s(e[e.length-1]%2==0):7===e[0]&&s(e[e.length-1]%2==1),this.point(e.slice(1,1+r),e.slice(1+r,1+2*r));if((2===e[0]||3===e[0])&&e.length-1===r)return this.pointFromX(e.slice(1,1+r),3===e[0]);throw new Error("Unknown point format")},u.prototype.encodeCompressed=function(e){return this.encode(e,!0)},u.prototype._encode=function(e){var t=this.curve.p.byteLength(),r=this.getX().toArray("be",t);return e?[this.getY().isEven()?2:3].concat(r):[4].concat(r,this.getY().toArray("be",t))},u.prototype.encode=function(e,t){return i.encode(this._encode(t),e)},u.prototype.precompute=function(e){if(this.precomputed)return this;var t={doubles:null,naf:null,beta:null};return t.naf=this._getNAFPoints(8),t.doubles=this._getDoubles(4,e),t.beta=this._getBeta(),this.precomputed=t,this},u.prototype._hasDoubles=function(e){if(!this.precomputed)return!1;var t=this.precomputed.doubles;return!!t&&t.points.length>=Math.ceil((e.bitLength()+1)/t.step)},u.prototype._getDoubles=function(e,t){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var r=[this],n=this,i=0;i<t;i+=e){for(var a=0;a<e;a++)n=n.dbl();r.push(n)}return{step:e,points:r}},u.prototype._getNAFPoints=function(e){if(this.precomputed&&this.precomputed.naf)return this.precomputed.naf;for(var t=[this],r=(1<<e)-1,n=1===r?null:this.dbl(),i=1;i<r;i++)t[i]=t[i-1].add(n);return{wnd:e,points:t}},u.prototype._getBeta=function(){return null},u.prototype.dblp=function(e){for(var t=this,r=0;r<e;r++)t=t.dbl();return t}},function(e,t){},function(e,t,r){var n;function i(e){this.rand=e}if(e.exports=function(e){return n||(n=new i(null)),n.generate(e)},e.exports.Rand=i,i.prototype.generate=function(e){return this._rand(e)},i.prototype._rand=function(e){if(this.rand.getBytes)return this.rand.getBytes(e);for(var t=new Uint8Array(e),r=0;r<t.length;r++)t[r]=this.rand.getByte();return t},"object"==typeof self)self.crypto&&self.crypto.getRandomValues?i.prototype._rand=function(e){var t=new Uint8Array(e);return self.crypto.getRandomValues(t),t}:self.msCrypto&&self.msCrypto.getRandomValues?i.prototype._rand=function(e){var t=new Uint8Array(e);return self.msCrypto.getRandomValues(t),t}:"object"==typeof window&&(i.prototype._rand=function(){throw new Error("Not implemented yet")});else try{var a=r(137);if("function"!=typeof a.randomBytes)throw new Error("Not supported");i.prototype._rand=function(e){return a.randomBytes(e)}}catch(e){}},function(e,t){},function(e,t,r){"use strict";var n=t,i=r(11),a=r(13),o=r(63);n.assert=a,n.toArray=o.toArray,n.zero2=o.zero2,n.toHex=o.toHex,n.encode=o.encode,n.getNAF=function(e,t){for(var r=[],n=1<<t+1,i=e.clone();i.cmpn(1)>=0;){var a;if(i.isOdd()){var o=i.andln(n-1);a=o>(n>>1)-1?(n>>1)-o:o,i.isubn(a)}else a=0;r.push(a);for(var s=0!==i.cmpn(0)&&0===i.andln(n-1)?t+1:1,f=1;f<s;f++)r.push(0);i.iushrn(s)}return r},n.getJSF=function(e,t){var r=[[],[]];e=e.clone(),t=t.clone();for(var n=0,i=0;e.cmpn(-n)>0||t.cmpn(-i)>0;){var a,o,s,f=e.andln(3)+n&3,u=t.andln(3)+i&3;3===f&&(f=-1),3===u&&(u=-1),a=0==(1&f)?0:3!=(s=e.andln(7)+n&7)&&5!==s||2!==u?f:-f,r[0].push(a),o=0==(1&u)?0:3!=(s=t.andln(7)+i&7)&&5!==s||2!==f?u:-u,r[1].push(o),2*n===a+1&&(n=1-n),2*i===o+1&&(i=1-i),e.iushrn(1),t.iushrn(1)}return r},n.cachedProperty=function(e,t,r){var n="_"+t;e.prototype[t]=function(){return void 0!==this[n]?this[n]:this[n]=r.call(this)}},n.parseBytes=function(e){return"string"==typeof e?n.toArray(e,"hex"):e},n.intFromLE=function(e){return new i(e,"hex","le")}},function(e){e.exports={name:"elliptic",version:"6.4.0",description:"EC cryptography",main:"lib/elliptic.js",files:["lib"],scripts:{jscs:"jscs benchmarks/*.js lib/*.js lib/**/*.js lib/**/**/*.js test/index.js",jshint:"jscs benchmarks/*.js lib/*.js lib/**/*.js lib/**/**/*.js test/index.js",lint:"npm run jscs && npm run jshint",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 <fedor@indutny.com>",license:"MIT",bugs:{url:"https://github.com/indutny/elliptic/issues"},homepage:"https://github.com/indutny/elliptic",devDependencies:{brfs:"^1.4.3",coveralls:"^2.11.3",grunt:"^0.4.5","grunt-browserify":"^5.0.0","grunt-cli":"^1.2.0","grunt-contrib-connect":"^1.0.0","grunt-contrib-copy":"^1.0.0","grunt-contrib-uglify":"^1.0.1","grunt-mocha-istanbul":"^3.0.1","grunt-saucelabs":"^8.6.2",istanbul:"^0.4.2",jscs:"^2.9.0",jshint:"^2.6.0",mocha:"^2.1.0"},dependencies:{"bn.js":"^4.4.0",brorand:"^1.0.1","hash.js":"^1.0.0","hmac-drbg":"^1.0.0",inherits:"^2.0.1","minimalistic-assert":"^1.0.0","minimalistic-crypto-utils":"^1.0.0"},_resolved:"https://registry.npmjs.org/elliptic/-/elliptic-6.4.0.tgz",_integrity:"sha1-ysmvh2LIWDYYcAPI3+GT5eLq5d8=",_from:"elliptic@6.4.0"}},function(e,t,r){var n=r(4).Buffer;e.exports=function(e){for(var t={},r=e.length,i=e.charAt(0),a=0;a<e.length;a++){var o=e.charAt(a);if(void 0!==t[o])throw new TypeError(o+" is ambiguous");t[o]=a}function s(e){if("string"!=typeof e)throw new TypeError("Expected String");if(0===e.length)return n.allocUnsafe(0);for(var a=[0],o=0;o<e.length;o++){var s=t[e[o]];if(void 0===s)return;for(var f=0,u=s;f<a.length;++f)u+=a[f]*r,a[f]=255&u,u>>=8;for(;u>0;)a.push(255&u),u>>=8}for(var c=0;e[c]===i&&c<e.length-1;++c)a.push(0);return n.from(a.reverse())}return{encode:function(t){if(0===t.length)return"";for(var n=[0],a=0;a<t.length;++a){for(var o=0,s=t[a];o<n.length;++o)s+=n[o]<<8,n[o]=s%r,s=s/r|0;for(;s>0;)n.push(s%r),s=s/r|0}for(var f="",u=0;0===t[u]&&u<t.length-1;++u)f+=i;for(var c=n.length-1;c>=0;--c)f+=e[n[c]];return f},decodeUnsafe:s,decode:function(e){var t=s(e);if(t)return t;throw new Error("Non-base"+r+" character")}}}},function(e,t,r){"use strict";var n=r(35),i=r(4).Buffer;e.exports=function(e){function t(t){var r=t.slice(0,-4),n=t.slice(-4),i=e(r);if(!(n[0]^i[0]|n[1]^i[1]|n[2]^i[2]|n[3]^i[3]))return r}return{encode:function(t){var r=e(t);return n.encode(i.concat([t,r],t.length+4))},decode:function(e){var r=t(n.decode(e));if(!r)throw new Error("Invalid checksum");return r},decodeUnsafe:function(e){var r=n.decodeUnsafe(e);if(r)return t(r)}}}},function(e,t,r){var n=r(4).Buffer,i=r(71).Transform,a=r(36).StringDecoder;function o(e){i.call(this),this.hashMode="string"==typeof e,this.hashMode?this[e]=this._finalOrDigest:this.final=this._finalOrDigest,this._final&&(this.__final=this._final,this._final=null),this._decoder=null,this._encoding=null}r(1)(o,i),o.prototype.update=function(e,t,r){"string"==typeof e&&(e=n.from(e,t));var i=this._update(e);return this.hashMode?this:(r&&(i=this._toString(i,r)),i)},o.prototype.setAutoPadding=function(){},o.prototype.getAuthTag=function(){throw new Error("trying to get auth tag in unsupported state")},o.prototype.setAuthTag=function(){throw new Error("trying to set auth tag in unsupported state")},o.prototype.setAAD=function(){throw new Error("trying to set aad in unsupported state")},o.prototype._transform=function(e,t,r){var n;try{this.hashMode?this._update(e):this.push(this._update(e))}catch(e){n=e}finally{r(n)}},o.prototype._flush=function(e){var t;try{this.push(this.__final())}catch(e){t=e}e(t)},o.prototype._finalOrDigest=function(e){var t=this.__final()||n.alloc(0);return e&&(t=this._toString(t,e,!0)),t},o.prototype._toString=function(e,t,r){if(this._decoder||(this._decoder=new a(t),this._encoding=t),this._encoding!==t)throw new Error("can't switch encodings");var n=this._decoder.write(e);return r&&(n+=this._decoder.end()),n},e.exports=o},function(e,t,r){var n=r(1),i=r(65),a=r(17),o=r(4).Buffer,s=new Array(160);function f(){this.init(),this._w=s,a.call(this,128,112)}n(f,i),f.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},f.prototype._hash=function(){var e=o.allocUnsafe(48);function t(t,r,n){e.writeInt32BE(t,n),e.writeInt32BE(r,n+4)}return t(this._ah,this._al,0),t(this._bh,this._bl,8),t(this._ch,this._cl,16),t(this._dh,this._dl,24),t(this._eh,this._el,32),t(this._fh,this._fl,40),e},e.exports=f},function(e,t,r){var n=r(1),i=r(66),a=r(17),o=r(4).Buffer,s=new Array(64);function f(){this.init(),this._w=s,a.call(this,64,56)}n(f,i),f.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},f.prototype._hash=function(){var e=o.allocUnsafe(28);return e.writeInt32BE(this._a,0),e.writeInt32BE(this._b,4),e.writeInt32BE(this._c,8),e.writeInt32BE(this._d,12),e.writeInt32BE(this._e,16),e.writeInt32BE(this._f,20),e.writeInt32BE(this._g,24),e},e.exports=f},function(e,t,r){var n=r(1),i=r(17),a=r(4).Buffer,o=[1518500249,1859775393,-1894007588,-899497514],s=new Array(80);function f(){this.init(),this._w=s,i.call(this,64,56)}function u(e){return e<<5|e>>>27}function c(e){return e<<30|e>>>2}function l(e,t,r,n){return 0===e?t&r|~t&n:2===e?t&r|t&n|r&n:t^r^n}n(f,i),f.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},f.prototype._update=function(e){for(var t,r=this._w,n=0|this._a,i=0|this._b,a=0|this._c,s=0|this._d,f=0|this._e,d=0;d<16;++d)r[d]=e.readInt32BE(4*d);for(;d<80;++d)r[d]=(t=r[d-3]^r[d-8]^r[d-14]^r[d-16])<<1|t>>>31;for(var h=0;h<80;++h){var p=~~(h/20),b=u(n)+l(p,i,a,s)+f+r[h]+o[p]|0;f=s,s=a,a=c(i),i=n,n=b}this._a=n+this._a|0,this._b=i+this._b|0,this._c=a+this._c|0,this._d=s+this._d|0,this._e=f+this._e|0},f.prototype._hash=function(){var e=a.allocUnsafe(20);return e.writeInt32BE(0|this._a,0),e.writeInt32BE(0|this._b,4),e.writeInt32BE(0|this._c,8),e.writeInt32BE(0|this._d,12),e.writeInt32BE(0|this._e,16),e},e.exports=f},function(e,t,r){var n=r(1),i=r(17),a=r(4).Buffer,o=[1518500249,1859775393,-1894007588,-899497514],s=new Array(80);function f(){this.init(),this._w=s,i.call(this,64,56)}function u(e){return e<<30|e>>>2}function c(e,t,r,n){return 0===e?t&r|~t&n:2===e?t&r|t&n|r&n:t^r^n}n(f,i),f.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},f.prototype._update=function(e){for(var t,r=this._w,n=0|this._a,i=0|this._b,a=0|this._c,s=0|this._d,f=0|this._e,l=0;l<16;++l)r[l]=e.readInt32BE(4*l);for(;l<80;++l)r[l]=r[l-3]^r[l-8]^r[l-14]^r[l-16];for(var d=0;d<80;++d){var h=~~(d/20),p=0|((t=n)<<5|t>>>27)+c(h,i,a,s)+f+r[d]+o[h];f=s,s=a,a=u(i),i=n,n=p}this._a=n+this._a|0,this._b=i+this._b|0,this._c=a+this._c|0,this._d=s+this._d|0,this._e=f+this._e|0},f.prototype._hash=function(){var e=a.allocUnsafe(20);return e.writeInt32BE(0|this._a,0),e.writeInt32BE(0|this._b,4),e.writeInt32BE(0|this._c,8),e.writeInt32BE(0|this._d,12),e.writeInt32BE(0|this._e,16),e},e.exports=f},function(e,t,r){(t=e.exports=function(e){e=e.toLowerCase();var r=t[e];if(!r)throw new Error(e+" is not supported (we accept pull requests)");return new r}).sha=r(148),t.sha1=r(147),t.sha224=r(146),t.sha256=r(66),t.sha384=r(145),t.sha512=r(65)},function(e,t,r){e.exports=r(39).PassThrough},function(e,t,r){e.exports=r(39).Transform},function(e,t,r){e.exports=r(14)},function(e,t,r){e.exports=r(38)},function(e,t,r){"use strict";e.exports=a;var n=r(67),i=r(21);function a(e){if(!(this instanceof a))return new a(e);n.call(this,e)}i.inherits=r(1),i.inherits(a,n),a.prototype._transform=function(e,t,r){r(null,e)}},function(e,t,r){(function(t){function r(e){try{if(!t.localStorage)return!1}catch(e){return!1}var r=t.localStorage[e];return null!=r&&"true"===String(r).toLowerCase()}e.exports=function(e,t){if(r("noDeprecation"))return e;var n=!1;return function(){if(!n){if(r("throwDeprecation"))throw new Error(t);r("traceDeprecation")?console.trace(t):console.warn(t),n=!0}return e.apply(this,arguments)}}}).call(this,r(15))},function(e,t,r){(function(e,t){!function(e,r){"use strict";if(!e.setImmediate){var n,i,a,o,s,f=1,u={},c=!1,l=e.document,d=Object.getPrototypeOf&&Object.getPrototypeOf(e);d=d&&d.setTimeout?d:e,"[object process]"==={}.toString.call(e.process)?n=function(e){t.nextTick(function(){p(e)})}:!function(){if(e.postMessage&&!e.importScripts){var t=!0,r=e.onmessage;return e.onmessage=function(){t=!1},e.postMessage("","*"),e.onmessage=r,t}}()?e.MessageChannel?((a=new MessageChannel).port1.onmessage=function(e){p(e.data)},n=function(e){a.port2.postMessage(e)}):l&&"onreadystatechange"in l.createElement("script")?(i=l.documentElement,n=function(e){var t=l.createElement("script");t.onreadystatechange=function(){p(e),t.onreadystatechange=null,i.removeChild(t),t=null},i.appendChild(t)}):n=function(e){setTimeout(p,0,e)}:(o="setImmediate$"+Math.random()+"$",s=function(t){t.source===e&&"string"==typeof t.data&&0===t.data.indexOf(o)&&p(+t.data.slice(o.length))},e.addEventListener?e.addEventListener("message",s,!1):e.attachEvent("onmessage",s),n=function(t){e.postMessage(o+t,"*")}),d.setImmediate=function(e){"function"!=typeof e&&(e=new Function(""+e));for(var t=new Array(arguments.length-1),r=0;r<t.length;r++)t[r]=arguments[r+1];var i={callback:e,args:t};return u[f]=i,n(f),f++},d.clearImmediate=h}function h(e){delete u[e]}function p(e){if(c)setTimeout(p,0,e);else{var t=u[e];if(t){c=!0;try{!function(e){var t=e.callback,n=e.args;switch(n.length){case 0:t();break;case 1:t(n[0]);break;case 2:t(n[0],n[1]);break;case 3:t(n[0],n[1],n[2]);break;default:t.apply(r,n)}}(t)}finally{h(e),c=!1}}}}}("undefined"==typeof self?void 0===e?this:e:self)}).call(this,r(15),r(9))},function(e,t){},function(e,t,r){"use strict";var n=r(4).Buffer,i=r(157);e.exports=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.head=null,this.tail=null,this.length=0}return e.prototype.push=function(e){var t={data:e,next:null};this.length>0?this.tail.next=t:this.head=t,this.tail=t,++this.length},e.prototype.unshift=function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length},e.prototype.shift=function(){if(0!==this.length){var e=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}},e.prototype.clear=function(){this.head=this.tail=null,this.length=0},e.prototype.join=function(e){if(0===this.length)return"";for(var t=this.head,r=""+t.data;t=t.next;)r+=e+t.data;return r},e.prototype.concat=function(e){if(0===this.length)return n.alloc(0);if(1===this.length)return this.head.data;for(var t,r,i,a=n.allocUnsafe(e>>>0),o=this.head,s=0;o;)t=o.data,r=a,i=s,t.copy(r,i),s+=o.data.length,o=o.next;return a},e}(),i&&i.inspect&&i.inspect.custom&&(e.exports.prototype[i.inspect.custom]=function(){var e=i.inspect({length:this.length});return this.constructor.name+" "+e})},function(e,t){},function(e,t,r){"use strict";(function(t){var n=r(71).Transform;function i(e){n.call(this),this._block=new t(e),this._blockSize=e,this._blockOffset=0,this._length=[0,0,0,0],this._finalized=!1}r(1)(i,n),i.prototype._transform=function(e,r,n){var i=null;try{"buffer"!==r&&(e=new t(e,r)),this.update(e)}catch(e){i=e}n(i)},i.prototype._flush=function(e){var t=null;try{this.push(this._digest())}catch(e){t=e}e(t)},i.prototype.update=function(e,r){if(!t.isBuffer(e)&&"string"!=typeof e)throw new TypeError("Data must be a string or a buffer");if(this._finalized)throw new Error("Digest already called");t.isBuffer(e)||(e=new t(e,r||"binary"));for(var n=this._block,i=0;this._blockOffset+e.length-i>=this._blockSize;){for(var a=this._blockOffset;a<this._blockSize;)n[a++]=e[i++];this._update(),this._blockOffset=0}for(;i<e.length;)n[this._blockOffset++]=e[i++];for(var o=0,s=8*e.length;s>0;++o)this._length[o]+=s,(s=this._length[o]/4294967296|0)>0&&(this._length[o]-=4294967296*s);return this},i.prototype._update=function(e){throw new Error("_update is not implemented")},i.prototype.digest=function(e){if(this._finalized)throw new Error("Digest already called");this._finalized=!0;var t=this._digest();return void 0!==e&&(t=t.toString(e)),t},i.prototype._digest=function(){throw new Error("_digest is not implemented")},e.exports=i}).call(this,r(5).Buffer)},function(e,t,r){"use strict";(function(t){var n=r(1),i=r(160);function a(){i.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520}function o(e,t){return e<<t|e>>>32-t}function s(e,t,r,n,i,a,s,f){return o(e+(t^r^n)+a+s|0,f)+i|0}function f(e,t,r,n,i,a,s,f){return o(e+(t&r|~t&n)+a+s|0,f)+i|0}function u(e,t,r,n,i,a,s,f){return o(e+((t|~r)^n)+a+s|0,f)+i|0}function c(e,t,r,n,i,a,s,f){return o(e+(t&n|r&~n)+a+s|0,f)+i|0}function l(e,t,r,n,i,a,s,f){return o(e+(t^(r|~n))+a+s|0,f)+i|0}n(a,i),a.prototype._update=function(){for(var e=new Array(16),t=0;t<16;++t)e[t]=this._block.readInt32LE(4*t);var r=this._a,n=this._b,i=this._c,a=this._d,d=this._e;d=s(d,r=s(r,n,i,a,d,e[0],0,11),n,i=o(i,10),a,e[1],0,14),n=s(n=o(n,10),i=s(i,a=s(a,d,r,n,i,e[2],0,15),d,r=o(r,10),n,e[3],0,12),a,d=o(d,10),r,e[4],0,5),a=s(a=o(a,10),d=s(d,r=s(r,n,i,a,d,e[5],0,8),n,i=o(i,10),a,e[6],0,7),r,n=o(n,10),i,e[7],0,9),r=s(r=o(r,10),n=s(n,i=s(i,a,d,r,n,e[8],0,11),a,d=o(d,10),r,e[9],0,13),i,a=o(a,10),d,e[10],0,14),i=s(i=o(i,10),a=s(a,d=s(d,r,n,i,a,e[11],0,15),r,n=o(n,10),i,e[12],0,6),d,r=o(r,10),n,e[13],0,7),d=f(d=o(d,10),r=s(r,n=s(n,i,a,d,r,e[14],0,9),i,a=o(a,10),d,e[15],0,8),n,i=o(i,10),a,e[7],1518500249,7),n=f(n=o(n,10),i=f(i,a=f(a,d,r,n,i,e[4],1518500249,6),d,r=o(r,10),n,e[13],1518500249,8),a,d=o(d,10),r,e[1],1518500249,13),a=f(a=o(a,10),d=f(d,r=f(r,n,i,a,d,e[10],1518500249,11),n,i=o(i,10),a,e[6],1518500249,9),r,n=o(n,10),i,e[15],1518500249,7),r=f(r=o(r,10),n=f(n,i=f(i,a,d,r,n,e[3],1518500249,15),a,d=o(d,10),r,e[12],1518500249,7),i,a=o(a,10),d,e[0],1518500249,12),i=f(i=o(i,10),a=f(a,d=f(d,r,n,i,a,e[9],1518500249,15),r,n=o(n,10),i,e[5],1518500249,9),d,r=o(r,10),n,e[2],1518500249,11),d=f(d=o(d,10),r=f(r,n=f(n,i,a,d,r,e[14],1518500249,7),i,a=o(a,10),d,e[11],1518500249,13),n,i=o(i,10),a,e[8],1518500249,12),n=u(n=o(n,10),i=u(i,a=u(a,d,r,n,i,e[3],1859775393,11),d,r=o(r,10),n,e[10],1859775393,13),a,d=o(d,10),r,e[14],1859775393,6),a=u(a=o(a,10),d=u(d,r=u(r,n,i,a,d,e[4],1859775393,7),n,i=o(i,10),a,e[9],1859775393,14),r,n=o(n,10),i,e[15],1859775393,9),r=u(r=o(r,10),n=u(n,i=u(i,a,d,r,n,e[8],1859775393,13),a,d=o(d,10),r,e[1],1859775393,15),i,a=o(a,10),d,e[2],1859775393,14),i=u(i=o(i,10),a=u(a,d=u(d,r,n,i,a,e[7],1859775393,8),r,n=o(n,10),i,e[0],1859775393,13),d,r=o(r,10),n,e[6],1859775393,6),d=u(d=o(d,10),r=u(r,n=u(n,i,a,d,r,e[13],1859775393,5),i,a=o(a,10),d,e[11],1859775393,12),n,i=o(i,10),a,e[5],1859775393,7),n=c(n=o(n,10),i=c(i,a=u(a,d,r,n,i,e[12],1859775393,5),d,r=o(r,10),n,e[1],2400959708,11),a,d=o(d,10),r,e[9],2400959708,12),a=c(a=o(a,10),d=c(d,r=c(r,n,i,a,d,e[11],2400959708,14),n,i=o(i,10),a,e[10],2400959708,15),r,n=o(n,10),i,e[0],2400959708,14),r=c(r=o(r,10),n=c(n,i=c(i,a,d,r,n,e[8],2400959708,15),a,d=o(d,10),r,e[12],2400959708,9),i,a=o(a,10),d,e[4],2400959708,8),i=c(i=o(i,10),a=c(a,d=c(d,r,n,i,a,e[13],2400959708,9),r,n=o(n,10),i,e[3],2400959708,14),d,r=o(r,10),n,e[7],2400959708,5),d=c(d=o(d,10),r=c(r,n=c(n,i,a,d,r,e[15],2400959708,6),i,a=o(a,10),d,e[14],2400959708,8),n,i=o(i,10),a,e[5],2400959708,6),n=l(n=o(n,10),i=c(i,a=c(a,d,r,n,i,e[6],2400959708,5),d,r=o(r,10),n,e[2],2400959708,12),a,d=o(d,10),r,e[4],2840853838,9),a=l(a=o(a,10),d=l(d,r=l(r,n,i,a,d,e[0],2840853838,15),n,i=o(i,10),a,e[5],2840853838,5),r,n=o(n,10),i,e[9],2840853838,11),r=l(r=o(r,10),n=l(n,i=l(i,a,d,r,n,e[7],2840853838,6),a,d=o(d,10),r,e[12],2840853838,8),i,a=o(a,10),d,e[2],2840853838,13),i=l(i=o(i,10),a=l(a,d=l(d,r,n,i,a,e[10],2840853838,12),r,n=o(n,10),i,e[14],2840853838,5),d,r=o(r,10),n,e[1],2840853838,12),d=l(d=o(d,10),r=l(r,n=l(n,i,a,d,r,e[3],2840853838,13),i,a=o(a,10),d,e[8],2840853838,14),n,i=o(i,10),a,e[11],2840853838,11),n=l(n=o(n,10),i=l(i,a=l(a,d,r,n,i,e[6],2840853838,8),d,r=o(r,10),n,e[15],2840853838,5),a,d=o(d,10),r,e[13],2840853838,6),a=o(a,10);var h=this._a,p=this._b,b=this._c,v=this._d,m=this._e;m=l(m,h=l(h,p,b,v,m,e[5],1352829926,8),p,b=o(b,10),v,e[14],1352829926,9),p=l(p=o(p,10),b=l(b,v=l(v,m,h,p,b,e[7],1352829926,9),m,h=o(h,10),p,e[0],1352829926,11),v,m=o(m,10),h,e[9],1352829926,13),v=l(v=o(v,10),m=l(m,h=l(h,p,b,v,m,e[2],1352829926,15),p,b=o(b,10),v,e[11],1352829926,15),h,p=o(p,10),b,e[4],1352829926,5),h=l(h=o(h,10),p=l(p,b=l(b,v,m,h,p,e[13],1352829926,7),v,m=o(m,10),h,e[6],1352829926,7),b,v=o(v,10),m,e[15],1352829926,8),b=l(b=o(b,10),v=l(v,m=l(m,h,p,b,v,e[8],1352829926,11),h,p=o(p,10),b,e[1],1352829926,14),m,h=o(h,10),p,e[10],1352829926,14),m=c(m=o(m,10),h=l(h,p=l(p,b,v,m,h,e[3],1352829926,12),b,v=o(v,10),m,e[12],1352829926,6),p,b=o(b,10),v,e[6],1548603684,9),p=c(p=o(p,10),b=c(b,v=c(v,m,h,p,b,e[11],1548603684,13),m,h=o(h,10),p,e[3],1548603684,15),v,m=o(m,10),h,e[7],1548603684,7),v=c(v=o(v,10),m=c(m,h=c(h,p,b,v,m,e[0],1548603684,12),p,b=o(b,10),v,e[13],1548603684,8),h,p=o(p,10),b,e[5],1548603684,9),h=c(h=o(h,10),p=c(p,b=c(b,v,m,h,p,e[10],1548603684,11),v,m=o(m,10),h,e[14],1548603684,7),b,v=o(v,10),m,e[15],1548603684,7),b=c(b=o(b,10),v=c(v,m=c(m,h,p,b,v,e[8],1548603684,12),h,p=o(p,10),b,e[12],1548603684,7),m,h=o(h,10),p,e[4],1548603684,6),m=c(m=o(m,10),h=c(h,p=c(p,b,v,m,h,e[9],1548603684,15),b,v=o(v,10),m,e[1],1548603684,13),p,b=o(b,10),v,e[2],1548603684,11),p=u(p=o(p,10),b=u(b,v=u(v,m,h,p,b,e[15],1836072691,9),m,h=o(h,10),p,e[5],1836072691,7),v,m=o(m,10),h,e[1],1836072691,15),v=u(v=o(v,10),m=u(m,h=u(h,p,b,v,m,e[3],1836072691,11),p,b=o(b,10),v,e[7],1836072691,8),h,p=o(p,10),b,e[14],1836072691,6),h=u(h=o(h,10),p=u(p,b=u(b,v,m,h,p,e[6],1836072691,6),v,m=o(m,10),h,e[9],1836072691,14),b,v=o(v,10),m,e[11],1836072691,12),b=u(b=o(b,10),v=u(v,m=u(m,h,p,b,v,e[8],1836072691,13),h,p=o(p,10),b,e[12],1836072691,5),m,h=o(h,10),p,e[2],1836072691,14),m=u(m=o(m,10),h=u(h,p=u(p,b,v,m,h,e[10],1836072691,13),b,v=o(v,10),m,e[0],1836072691,13),p,b=o(b,10),v,e[4],1836072691,7),p=f(p=o(p,10),b=f(b,v=u(v,m,h,p,b,e[13],1836072691,5),m,h=o(h,10),p,e[8],2053994217,15),v,m=o(m,10),h,e[6],2053994217,5),v=f(v=o(v,10),m=f(m,h=f(h,p,b,v,m,e[4],2053994217,8),p,b=o(b,10),v,e[1],2053994217,11),h,p=o(p,10),b,e[3],2053994217,14),h=f(h=o(h,10),p=f(p,b=f(b,v,m,h,p,e[11],2053994217,14),v,m=o(m,10),h,e[15],2053994217,6),b,v=o(v,10),m,e[0],2053994217,14),b=f(b=o(b,10),v=f(v,m=f(m,h,p,b,v,e[5],2053994217,6),h,p=o(p,10),b,e[12],2053994217,9),m,h=o(h,10),p,e[2],2053994217,12),m=f(m=o(m,10),h=f(h,p=f(p,b,v,m,h,e[13],2053994217,9),b,v=o(v,10),m,e[9],2053994217,12),p,b=o(b,10),v,e[7],2053994217,5),p=s(p=o(p,10),b=f(b,v=f(v,m,h,p,b,e[10],2053994217,15),m,h=o(h,10),p,e[14],2053994217,8),v,m=o(m,10),h,e[12],0,8),v=s(v=o(v,10),m=s(m,h=s(h,p,b,v,m,e[15],0,5),p,b=o(b,10),v,e[10],0,12),h,p=o(p,10),b,e[4],0,9),h=s(h=o(h,10),p=s(p,b=s(b,v,m,h,p,e[1],0,12),v,m=o(m,10),h,e[5],0,5),b,v=o(v,10),m,e[8],0,14),b=s(b=o(b,10),v=s(v,m=s(m,h,p,b,v,e[7],0,6),h,p=o(p,10),b,e[6],0,8),m,h=o(h,10),p,e[2],0,13),m=s(m=o(m,10),h=s(h,p=s(p,b,v,m,h,e[13],0,6),b,v=o(v,10),m,e[14],0,5),p,b=o(b,10),v,e[0],0,15),p=s(p=o(p,10),b=s(b,v=s(v,m,h,p,b,e[3],0,13),m,h=o(h,10),p,e[9],0,11),v,m=o(m,10),h,e[11],0,11),v=o(v,10);var g=this._b+i+v|0;this._b=this._c+a+m|0,this._c=this._d+d+h|0,this._d=this._e+r+p|0,this._e=this._a+n+b|0,this._a=g},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 e=new t(20);return e.writeInt32LE(this._a,0),e.writeInt32LE(this._b,4),e.writeInt32LE(this._c,8),e.writeInt32LE(this._d,12),e.writeInt32LE(this._e,16),e},e.exports=a}).call(this,r(5).Buffer)},function(e,t,r){"use strict";(function(t){var r=4,n=new t(r);n.fill(0);e.exports=function(e,i){var a=i(function(e){if(e.length%r!=0){var i=e.length+(r-e.length%r);e=t.concat([e,n],i)}for(var a=new Array(e.length>>>2),o=0,s=0;o<e.length;o+=r,s++)a[s]=e.readInt32LE(o);return a}(e),8*e.length);e=new t(16);for(var o=0;o<a.length;o++)e.writeInt32LE(a[o],o<<2,!0);return e}}).call(this,r(5).Buffer)},function(e,t,r){"use strict";var n=r(162);function i(e,t){e[t>>5]|=128<<t%32,e[14+(t+64>>>9<<4)]=t;for(var r=1732584193,n=-271733879,i=-1732584194,a=271733878,l=0;l<e.length;l+=16){var d=r,h=n,p=i,b=a;n=u(n=u(n=u(n=u(n=f(n=f(n=f(n=f(n=s(n=s(n=s(n=s(n=o(n=o(n=o(n=o(n,i=o(i,a=o(a,r=o(r,n,i,a,e[l+0],7,-680876936),n,i,e[l+1],12,-389564586),r,n,e[l+2],17,606105819),a,r,e[l+3],22,-1044525330),i=o(i,a=o(a,r=o(r,n,i,a,e[l+4],7,-176418897),n,i,e[l+5],12,1200080426),r,n,e[l+6],17,-1473231341),a,r,e[l+7],22,-45705983),i=o(i,a=o(a,r=o(r,n,i,a,e[l+8],7,1770035416),n,i,e[l+9],12,-1958414417),r,n,e[l+10],17,-42063),a,r,e[l+11],22,-1990404162),i=o(i,a=o(a,r=o(r,n,i,a,e[l+12],7,1804603682),n,i,e[l+13],12,-40341101),r,n,e[l+14],17,-1502002290),a,r,e[l+15],22,1236535329),i=s(i,a=s(a,r=s(r,n,i,a,e[l+1],5,-165796510),n,i,e[l+6],9,-1069501632),r,n,e[l+11],14,643717713),a,r,e[l+0],20,-373897302),i=s(i,a=s(a,r=s(r,n,i,a,e[l+5],5,-701558691),n,i,e[l+10],9,38016083),r,n,e[l+15],14,-660478335),a,r,e[l+4],20,-405537848),i=s(i,a=s(a,r=s(r,n,i,a,e[l+9],5,568446438),n,i,e[l+14],9,-1019803690),r,n,e[l+3],14,-187363961),a,r,e[l+8],20,1163531501),i=s(i,a=s(a,r=s(r,n,i,a,e[l+13],5,-1444681467),n,i,e[l+2],9,-51403784),r,n,e[l+7],14,1735328473),a,r,e[l+12],20,-1926607734),i=f(i,a=f(a,r=f(r,n,i,a,e[l+5],4,-378558),n,i,e[l+8],11,-2022574463),r,n,e[l+11],16,1839030562),a,r,e[l+14],23,-35309556),i=f(i,a=f(a,r=f(r,n,i,a,e[l+1],4,-1530992060),n,i,e[l+4],11,1272893353),r,n,e[l+7],16,-155497632),a,r,e[l+10],23,-1094730640),i=f(i,a=f(a,r=f(r,n,i,a,e[l+13],4,681279174),n,i,e[l+0],11,-358537222),r,n,e[l+3],16,-722521979),a,r,e[l+6],23,76029189),i=f(i,a=f(a,r=f(r,n,i,a,e[l+9],4,-640364487),n,i,e[l+12],11,-421815835),r,n,e[l+15],16,530742520),a,r,e[l+2],23,-995338651),i=u(i,a=u(a,r=u(r,n,i,a,e[l+0],6,-198630844),n,i,e[l+7],10,1126891415),r,n,e[l+14],15,-1416354905),a,r,e[l+5],21,-57434055),i=u(i,a=u(a,r=u(r,n,i,a,e[l+12],6,1700485571),n,i,e[l+3],10,-1894986606),r,n,e[l+10],15,-1051523),a,r,e[l+1],21,-2054922799),i=u(i,a=u(a,r=u(r,n,i,a,e[l+8],6,1873313359),n,i,e[l+15],10,-30611744),r,n,e[l+6],15,-1560198380),a,r,e[l+13],21,1309151649),i=u(i,a=u(a,r=u(r,n,i,a,e[l+4],6,-145523070),n,i,e[l+11],10,-1120210379),r,n,e[l+2],15,718787259),a,r,e[l+9],21,-343485551),r=c(r,d),n=c(n,h),i=c(i,p),a=c(a,b)}return[r,n,i,a]}function a(e,t,r,n,i,a){return c((o=c(c(t,e),c(n,a)))<<(s=i)|o>>>32-s,r);var o,s}function o(e,t,r,n,i,o,s){return a(t&r|~t&n,e,t,i,o,s)}function s(e,t,r,n,i,o,s){return a(t&n|r&~n,e,t,i,o,s)}function f(e,t,r,n,i,o,s){return a(t^r^n,e,t,i,o,s)}function u(e,t,r,n,i,o,s){return a(r^(t|~n),e,t,i,o,s)}function c(e,t){var r=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(r>>16)<<16|65535&r}e.exports=function(e){return n(e,i)}},function(e,t,r){"use strict";(function(t){var n=r(1),i=r(163),a=r(161),o=r(149),s=r(144);function f(e){s.call(this,"digest"),this._hash=e,this.buffers=[]}function u(e){s.call(this,"digest"),this._hash=e}n(f,s),f.prototype._update=function(e){this.buffers.push(e)},f.prototype._final=function(){var e=t.concat(this.buffers),r=this._hash(e);return this.buffers=null,r},n(u,s),u.prototype._update=function(e){this._hash.update(e)},u.prototype._final=function(){return this._hash.digest()},e.exports=function(e){return"md5"===(e=e.toLowerCase())?new f(i):new u("rmd160"===e||"ripemd160"===e?new a:o(e))}}).call(this,r(5).Buffer)},function(e,t,r){(function(t){var n=r(72);function i(e,t){if(void 0!==t&&e[0]!==t)throw new Error("Invalid network version");if(33===e.length)return{version:e[0],privateKey:e.slice(1,33),compressed:!1};if(34!==e.length)throw new Error("Invalid WIF length");if(1!==e[33])throw new Error("Invalid compression flag");return{version:e[0],privateKey:e.slice(1,33),compressed:!0}}function a(e,r,n){var i=new t(n?34:33);return i.writeUInt8(e,0),r.copy(i,1),n&&(i[33]=1),i}e.exports={decode:function(e,t){return i(n.decode(e),t)},decodeRaw:i,encode:function(e,t,r){return"number"==typeof e?n.encode(a(e,t,r)):n.encode(a(e.version,e.privateKey,e.compressed))},encodeRaw:a}}).call(this,r(5).Buffer)},function(e,t){t.read=function(e,t,r,n,i){var a,o,s=8*i-n-1,f=(1<<s)-1,u=f>>1,c=-7,l=r?i-1:0,d=r?-1:1,h=e[t+l];for(l+=d,a=h&(1<<-c)-1,h>>=-c,c+=s;c>0;a=256*a+e[t+l],l+=d,c-=8);for(o=a&(1<<-c)-1,a>>=-c,c+=n;c>0;o=256*o+e[t+l],l+=d,c-=8);if(0===a)a=1-u;else{if(a===f)return o?NaN:1/0*(h?-1:1);o+=Math.pow(2,n),a-=u}return(h?-1:1)*o*Math.pow(2,a-n)},t.write=function(e,t,r,n,i,a){var o,s,f,u=8*a-i-1,c=(1<<u)-1,l=c>>1,d=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,h=n?0:a-1,p=n?1:-1,b=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,o=c):(o=Math.floor(Math.log(t)/Math.LN2),t*(f=Math.pow(2,-o))<1&&(o--,f*=2),(t+=o+l>=1?d/f:d*Math.pow(2,1-l))*f>=2&&(o++,f/=2),o+l>=c?(s=0,o=c):o+l>=1?(s=(t*f-1)*Math.pow(2,i),o+=l):(s=t*Math.pow(2,l-1)*Math.pow(2,i),o=0));i>=8;e[r+h]=255&s,h+=p,s/=256,i-=8);for(o=o<<i|s,u+=i;u>0;e[r+h]=255&o,h+=p,o/=256,u-=8);e[r+h-p]|=128*b}},function(e,t,r){"use strict";t.byteLength=function(e){return 3*e.length/4-u(e)},t.toByteArray=function(e){var t,r,n,o,s,f=e.length;o=u(e),s=new a(3*f/4-o),r=o>0?f-4:f;var c=0;for(t=0;t<r;t+=4)n=i[e.charCodeAt(t)]<<18|i[e.charCodeAt(t+1)]<<12|i[e.charCodeAt(t+2)]<<6|i[e.charCodeAt(t+3)],s[c++]=n>>16&255,s[c++]=n>>8&255,s[c++]=255&n;2===o?(n=i[e.charCodeAt(t)]<<2|i[e.charCodeAt(t+1)]>>4,s[c++]=255&n):1===o&&(n=i[e.charCodeAt(t)]<<10|i[e.charCodeAt(t+1)]<<4|i[e.charCodeAt(t+2)]>>2,s[c++]=n>>8&255,s[c++]=255&n);return s},t.fromByteArray=function(e){for(var t,r=e.length,i=r%3,a="",o=[],s=0,f=r-i;s<f;s+=16383)o.push(c(e,s,s+16383>f?f:s+16383));1===i?(t=e[r-1],a+=n[t>>2],a+=n[t<<4&63],a+="=="):2===i&&(t=(e[r-2]<<8)+e[r-1],a+=n[t>>10],a+=n[t>>4&63],a+=n[t<<2&63],a+="=");return o.push(a),o.join("")};for(var n=[],i=[],a="undefined"!=typeof Uint8Array?Uint8Array:Array,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0,f=o.length;s<f;++s)n[s]=o[s],i[o.charCodeAt(s)]=s;function u(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");return"="===e[t-2]?2:"="===e[t-1]?1:0}function c(e,t,r){for(var i,a,o=[],s=t;s<r;s+=3)i=(e[s]<<16&16711680)+(e[s+1]<<8&65280)+(255&e[s+2]),o.push(n[(a=i)>>18&63]+n[a>>12&63]+n[a>>6&63]+n[63&a]);return o.join("")}i["-".charCodeAt(0)]=62,i["_".charCodeAt(0)]=63},function(e,t,r){"use strict";e.exports=function(e){return function(t){return e.apply(null,t)}}},function(e,t,r){"use strict";var n=r(74);function i(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");var t;this.promise=new Promise(function(e){t=e});var r=this;e(function(e){r.reason||(r.reason=new n(e),t(r.reason))})}i.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},i.source=function(){var e;return{token:new i(function(t){e=t}),cancel:e}},e.exports=i},function(e,t,r){"use strict";e.exports=function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}},function(e,t,r){"use strict";e.exports=function(e){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(e)}},function(e,t,r){"use strict";var n=r(8);e.exports=function(e,t,r){return n.forEach(r,function(r){e=r(e,t)}),e}},function(e,t,r){"use strict";var n=r(8),i=r(172),a=r(75),o=r(41),s=r(171),f=r(170);function u(e){e.cancelToken&&e.cancelToken.throwIfRequested()}e.exports=function(e){return u(e),e.baseURL&&!s(e.url)&&(e.url=f(e.baseURL,e.url)),e.headers=e.headers||{},e.data=i(e.data,e.headers,e.transformRequest),e.headers=n.merge(e.headers.common||{},e.headers[e.method]||{},e.headers||{}),n.forEach(["delete","get","head","post","put","patch","common"],function(t){delete e.headers[t]}),(e.adapter||o.adapter)(e).then(function(t){return u(e),t.data=i(t.data,t.headers,e.transformResponse),t},function(t){return a(t)||(u(e),t&&t.response&&(t.response.data=i(t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)})}},function(e,t,r){"use strict";var n=r(8);function i(){this.handlers=[]}i.prototype.use=function(e,t){return this.handlers.push({fulfilled:e,rejected:t}),this.handlers.length-1},i.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},i.prototype.forEach=function(e){n.forEach(this.handlers,function(t){null!==t&&e(t)})},e.exports=i},function(e,t,r){"use strict";var n=r(8);e.exports=n.isStandardBrowserEnv()?{write:function(e,t,r,i,a,o){var s=[];s.push(e+"="+encodeURIComponent(t)),n.isNumber(r)&&s.push("expires="+new Date(r).toGMTString()),n.isString(i)&&s.push("path="+i),n.isString(a)&&s.push("domain="+a),!0===o&&s.push("secure"),document.cookie=s.join("; ")},read:function(e){var t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}}},function(e,t,r){"use strict";var n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";function i(){this.message="String contains an invalid character"}i.prototype=new Error,i.prototype.code=5,i.prototype.name="InvalidCharacterError",e.exports=function(e){for(var t,r,a=String(e),o="",s=0,f=n;a.charAt(0|s)||(f="=",s%1);o+=f.charAt(63&t>>8-s%1*8)){if((r=a.charCodeAt(s+=.75))>255)throw new i;t=t<<8|r}return o}},function(e,t,r){"use strict";var n=r(8);e.exports=n.isStandardBrowserEnv()?function(){var e,t=/(msie|trident)/i.test(navigator.userAgent),r=document.createElement("a");function i(e){var n=e;return t&&(r.setAttribute("href",n),n=r.href),r.setAttribute("href",n),{href:r.href,protocol:r.protocol?r.protocol.replace(/:$/,""):"",host:r.host,search:r.search?r.search.replace(/^\?/,""):"",hash:r.hash?r.hash.replace(/^#/,""):"",hostname:r.hostname,port:r.port,pathname:"/"===r.pathname.charAt(0)?r.pathname:"/"+r.pathname}}return e=i(window.location.href),function(t){var r=n.isString(t)?i(t):t;return r.protocol===e.protocol&&r.host===e.host}}():function(){return!0}},function(e,t,r){"use strict";var n=r(8),i=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];e.exports=function(e){var t,r,a,o={};return e?(n.forEach(e.split("\n"),function(e){if(a=e.indexOf(":"),t=n.trim(e.substr(0,a)).toLowerCase(),r=n.trim(e.substr(a+1)),t){if(o[t]&&i.indexOf(t)>=0)return;o[t]="set-cookie"===t?(o[t]?o[t]:[]).concat([r]):o[t]?o[t]+", "+r:r}}),o):o}},function(e,t,r){"use strict";var n=r(8);function i(e){return encodeURIComponent(e).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}e.exports=function(e,t,r){if(!t)return e;var a;if(r)a=r(t);else if(n.isURLSearchParams(t))a=t.toString();else{var o=[];n.forEach(t,function(e,t){null!==e&&void 0!==e&&(n.isArray(e)?t+="[]":e=[e],n.forEach(e,function(e){n.isDate(e)?e=e.toISOString():n.isObject(e)&&(e=JSON.stringify(e)),o.push(i(t)+"="+i(e))}))}),a=o.join("&")}return a&&(e+=(-1===e.indexOf("?")?"?":"&")+a),e}},function(e,t,r){"use strict";e.exports=function(e,t,r,n,i){return e.config=t,r&&(e.code=r),e.request=n,e.response=i,e}},function(e,t,r){"use strict";var n=r(76);e.exports=function(e,t,r){var i=r.config.validateStatus;r.status&&i&&!i(r.status)?t(n("Request failed with status code "+r.status,r.config,null,r.request,r)):e(r)}},function(e,t,r){"use strict";var n=r(8);e.exports=function(e,t){n.forEach(e,function(r,n){n!==t&&n.toUpperCase()===t.toUpperCase()&&(e[t]=r,delete e[n])})}},function(e,t,r){"use strict";var n=r(41),i=r(8),a=r(174),o=r(173);function s(e){this.defaults=e,this.interceptors={request:new a,response:new a}}s.prototype.request=function(e){"string"==typeof e&&(e=i.merge({url:arguments[0]},arguments[1])),(e=i.merge(n,{method:"get"},this.defaults,e)).method=e.method.toLowerCase();var t=[o,void 0],r=Promise.resolve(e);for(this.interceptors.request.forEach(function(e){t.unshift(e.fulfilled,e.rejected)}),this.interceptors.response.forEach(function(e){t.push(e.fulfilled,e.rejected)});t.length;)r=r.then(t.shift(),t.shift());return r},i.forEach(["delete","get","head","options"],function(e){s.prototype[e]=function(t,r){return this.request(i.merge(r||{},{method:e,url:t}))}}),i.forEach(["post","put","patch"],function(e){s.prototype[e]=function(t,r,n){return this.request(i.merge(n||{},{method:e,url:t,data:r}))}}),e.exports=s},function(e,t){function r(e){return!!e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}
  /*!
   * Determine if an object is a Buffer
   *
   * @author   Feross Aboukhadijeh <https://feross.org>
   * @license  MIT
   */
  e.exports=function(e){return null!=e&&(r(e)||function(e){return"function"==typeof e.readFloatLE&&"function"==typeof e.slice&&r(e.slice(0,0))}(e)||!!e._isBuffer)}},function(e,t,r){"use strict";var n=r(8),i=r(78),a=r(183),o=r(41);function s(e){var t=new a(e),r=i(a.prototype.request,t);return n.extend(r,a.prototype,t),n.extend(r,t),r}var f=s(o);f.Axios=a,f.create=function(e){return s(n.merge(o,e))},f.Cancel=r(74),f.CancelToken=r(169),f.isCancel=r(75),f.all=function(e){return Promise.all(e)},f.spread=r(168),e.exports=f,e.exports.default=f},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n={neonDB:!0,cmc:!0,nep5:!0,neoscan:!0};t.neoscan=t.nep5=t.cmc=t.neonDB=t.default=void 0;var i=c(r(42));t.neonDB=i;var a=c(r(81));t.cmc=a;var o=c(r(80));t.nep5=o;var s=c(r(44));t.neoscan=s;var f=c(r(79));Object.keys(f).forEach(function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||Object.defineProperty(t,e,{enumerable:!0,get:function(){return f[e]}}))});var u=r(43);function c(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){var n=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,r):{};n.get||n.set?Object.defineProperty(t,r,n):t[r]=e[r]}return t.default=e,t}Object.keys(u).forEach(function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||Object.defineProperty(t,e,{enumerable:!0,get:function(){return u[e]}}))});var l={get:{price:a.getPrice,prices:a.getPrices,balance:i.getBalance,claims:i.getClaims,transactionHistory:i.getTransactionHistory,tokenBalance:o.getTokenBalance,tokenInfo:o.getTokenInfo,token:o.getToken},do:{sendAsset:i.doSendAsset,claimAllGas:i.doClaimAllGas,mintTokens:i.doMintTokens},sendAsset:function(e){return f.sendAsset(e)},claimGas:function(e){return f.claimGas(e)},doInvoke:function(e){return f.doInvoke(e)}};t.default=l},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.logging=t.settings=t.u=t.wallet=t.tx=t.sc=t.CONST=t.rpc=t.api=t.default=void 0;var n=d(r(186));t.api=n;var i=d(r(18));t.rpc=i;var a=d(r(3));t.CONST=a;var o=d(r(29));t.sc=o;var s=d(r(16));t.tx=s;var f=d(r(12));t.wallet=f;var u=d(r(0));t.u=u;var c=d(r(22));t.settings=c;var l=d(r(2));function d(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){var n=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,r):{};n.get||n.set?Object.defineProperty(t,r,n):t[r]=e[r]}return t.default=e,t}t.logging=l;var h=[o.default,s.default,f.default,n.default,i.default,c.default].reduce(function(e,t){return Object.keys(t).map(function(r){e[r]?Object.assign(e[r],t[r]):e[r]=t[r]}),e},{CONST:a,u:u});t.default=h}])});