@synthr/js
Version:
The smart contracts which make up the Synthr system. (synthr.io)
10 lines • 15 MB
JavaScript
!function(e,a){"object"==typeof exports&&"object"==typeof module?module.exports=a():"function"==typeof define&&define.amd?define([],a):"object"==typeof exports?exports.synthetix=a():e.synthetix=a()}(window,(function(){return function(e){var a={};function t(n){if(a[n])return a[n].exports;var b=a[n]={i:n,l:!1,exports:{}};return e[n].call(b.exports,b,b.exports,t),b.l=!0,b.exports}return t.m=e,t.c=a,t.d=function(e,a,n){t.o(e,a)||Object.defineProperty(e,a,{enumerable:!0,get:n})},t.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},t.t=function(e,a){if(1&a&&(e=t(e)),8&a)return e;if(4&a&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(t.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&a&&"string"!=typeof e)for(var b in e)t.d(n,b,function(a){return e[a]}.bind(null,b));return n},t.n=function(e){var a=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(a,"a",a),a},t.o=function(e,a){return Object.prototype.hasOwnProperty.call(e,a)},t.p="",t(t.s=73)}([function(e,a,t){"use strict";(function(e){
/*!
* The buffer module from node.js, for the browser.
*
* @author Feross Aboukhadijeh <http://feross.org>
* @license MIT
*/
var n=t(76),b=t(77),f=t(78);function d(){return i.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function s(e,a){if(d()<a)throw new RangeError("Invalid typed array length");return i.TYPED_ARRAY_SUPPORT?(e=new Uint8Array(a)).__proto__=i.prototype:(null===e&&(e=new i(a)),e.length=a),e}function i(e,a,t){if(!(i.TYPED_ARRAY_SUPPORT||this instanceof i))return new i(e,a,t);if("number"==typeof e){if("string"==typeof a)throw new Error("If encoding is specified then the first argument must be a string");return y(this,e)}return p(this,e,a,t)}function p(e,a,t,n){if("number"==typeof a)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&a instanceof ArrayBuffer?function(e,a,t,n){if(a.byteLength,t<0||a.byteLength<t)throw new RangeError("'offset' is out of bounds");if(a.byteLength<t+(n||0))throw new RangeError("'length' is out of bounds");a=void 0===t&&void 0===n?new Uint8Array(a):void 0===n?new Uint8Array(a,t):new Uint8Array(a,t,n);i.TYPED_ARRAY_SUPPORT?(e=a).__proto__=i.prototype:e=r(e,a);return e}(e,a,t,n):"string"==typeof a?function(e,a,t){"string"==typeof t&&""!==t||(t="utf8");if(!i.isEncoding(t))throw new TypeError('"encoding" must be a valid string encoding');var n=0|l(a,t),b=(e=s(e,n)).write(a,t);b!==n&&(e=e.slice(0,b));return e}(e,a,t):function(e,a){if(i.isBuffer(a)){var t=0|c(a.length);return 0===(e=s(e,t)).length||a.copy(e,0,0,t),e}if(a){if("undefined"!=typeof ArrayBuffer&&a.buffer instanceof ArrayBuffer||"length"in a)return"number"!=typeof a.length||(n=a.length)!=n?s(e,0):r(e,a);if("Buffer"===a.type&&f(a.data))return r(e,a.data)}var n;throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(e,a)}function u(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 y(e,a){if(u(a),e=s(e,a<0?0:0|c(a)),!i.TYPED_ARRAY_SUPPORT)for(var t=0;t<a;++t)e[t]=0;return e}function r(e,a){var t=a.length<0?0:0|c(a.length);e=s(e,t);for(var n=0;n<t;n+=1)e[n]=255&a[n];return e}function c(e){if(e>=d())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+d().toString(16)+" bytes");return 0|e}function l(e,a){if(i.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 t=e.length;if(0===t)return 0;for(var n=!1;;)switch(a){case"ascii":case"latin1":case"binary":return t;case"utf8":case"utf-8":case void 0:return U(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*t;case"hex":return t>>>1;case"base64":return V(e).length;default:if(n)return U(e).length;a=(""+a).toLowerCase(),n=!0}}function o(e,a,t){var n=!1;if((void 0===a||a<0)&&(a=0),a>this.length)return"";if((void 0===t||t>this.length)&&(t=this.length),t<=0)return"";if((t>>>=0)<=(a>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return _(this,a,t);case"utf8":case"utf-8":return E(this,a,t);case"ascii":return S(this,a,t);case"latin1":case"binary":return D(this,a,t);case"base64":return C(this,a,t);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return k(this,a,t);default:if(n)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),n=!0}}function m(e,a,t){var n=e[a];e[a]=e[t],e[t]=n}function T(e,a,t,n,b){if(0===e.length)return-1;if("string"==typeof t?(n=t,t=0):t>2147483647?t=2147483647:t<-2147483648&&(t=-2147483648),t=+t,isNaN(t)&&(t=b?0:e.length-1),t<0&&(t=e.length+t),t>=e.length){if(b)return-1;t=e.length-1}else if(t<0){if(!b)return-1;t=0}if("string"==typeof a&&(a=i.from(a,n)),i.isBuffer(a))return 0===a.length?-1:w(e,a,t,n,b);if("number"==typeof a)return a&=255,i.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?b?Uint8Array.prototype.indexOf.call(e,a,t):Uint8Array.prototype.lastIndexOf.call(e,a,t):w(e,[a],t,n,b);throw new TypeError("val must be string, number or Buffer")}function w(e,a,t,n,b){var f,d=1,s=e.length,i=a.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(e.length<2||a.length<2)return-1;d=2,s/=2,i/=2,t/=2}function p(e,a){return 1===d?e[a]:e.readUInt16BE(a*d)}if(b){var u=-1;for(f=t;f<s;f++)if(p(e,f)===p(a,-1===u?0:f-u)){if(-1===u&&(u=f),f-u+1===i)return u*d}else-1!==u&&(f-=f-u),u=-1}else for(t+i>s&&(t=s-i),f=t;f>=0;f--){for(var y=!0,r=0;r<i;r++)if(p(e,f+r)!==p(a,r)){y=!1;break}if(y)return f}return-1}function h(e,a,t,n){t=Number(t)||0;var b=e.length-t;n?(n=Number(n))>b&&(n=b):n=b;var f=a.length;if(f%2!=0)throw new TypeError("Invalid hex string");n>f/2&&(n=f/2);for(var d=0;d<n;++d){var s=parseInt(a.substr(2*d,2),16);if(isNaN(s))return d;e[t+d]=s}return d}function v(e,a,t,n){return z(U(a,e.length-t),e,t,n)}function x(e,a,t,n){return z(function(e){for(var a=[],t=0;t<e.length;++t)a.push(255&e.charCodeAt(t));return a}(a),e,t,n)}function M(e,a,t,n){return x(e,a,t,n)}function g(e,a,t,n){return z(V(a),e,t,n)}function A(e,a,t,n){return z(function(e,a){for(var t,n,b,f=[],d=0;d<e.length&&!((a-=2)<0);++d)t=e.charCodeAt(d),n=t>>8,b=t%256,f.push(b),f.push(n);return f}(a,e.length-t),e,t,n)}function C(e,a,t){return 0===a&&t===e.length?n.fromByteArray(e):n.fromByteArray(e.slice(a,t))}function E(e,a,t){t=Math.min(e.length,t);for(var n=[],b=a;b<t;){var f,d,s,i,p=e[b],u=null,y=p>239?4:p>223?3:p>191?2:1;if(b+y<=t)switch(y){case 1:p<128&&(u=p);break;case 2:128==(192&(f=e[b+1]))&&(i=(31&p)<<6|63&f)>127&&(u=i);break;case 3:f=e[b+1],d=e[b+2],128==(192&f)&&128==(192&d)&&(i=(15&p)<<12|(63&f)<<6|63&d)>2047&&(i<55296||i>57343)&&(u=i);break;case 4:f=e[b+1],d=e[b+2],s=e[b+3],128==(192&f)&&128==(192&d)&&128==(192&s)&&(i=(15&p)<<18|(63&f)<<12|(63&d)<<6|63&s)>65535&&i<1114112&&(u=i)}null===u?(u=65533,y=1):u>65535&&(u-=65536,n.push(u>>>10&1023|55296),u=56320|1023&u),n.push(u),b+=y}return function(e){var a=e.length;if(a<=4096)return String.fromCharCode.apply(String,e);var t="",n=0;for(;n<a;)t+=String.fromCharCode.apply(String,e.slice(n,n+=4096));return t}(n)}a.Buffer=i,a.SlowBuffer=function(e){+e!=e&&(e=0);return i.alloc(+e)},a.INSPECT_MAX_BYTES=50,i.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}}(),a.kMaxLength=d(),i.poolSize=8192,i._augment=function(e){return e.__proto__=i.prototype,e},i.from=function(e,a,t){return p(null,e,a,t)},i.TYPED_ARRAY_SUPPORT&&(i.prototype.__proto__=Uint8Array.prototype,i.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&i[Symbol.species]===i&&Object.defineProperty(i,Symbol.species,{value:null,configurable:!0})),i.alloc=function(e,a,t){return function(e,a,t,n){return u(a),a<=0?s(e,a):void 0!==t?"string"==typeof n?s(e,a).fill(t,n):s(e,a).fill(t):s(e,a)}(null,e,a,t)},i.allocUnsafe=function(e){return y(null,e)},i.allocUnsafeSlow=function(e){return y(null,e)},i.isBuffer=function(e){return!(null==e||!e._isBuffer)},i.compare=function(e,a){if(!i.isBuffer(e)||!i.isBuffer(a))throw new TypeError("Arguments must be Buffers");if(e===a)return 0;for(var t=e.length,n=a.length,b=0,f=Math.min(t,n);b<f;++b)if(e[b]!==a[b]){t=e[b],n=a[b];break}return t<n?-1:n<t?1:0},i.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}},i.concat=function(e,a){if(!f(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return i.alloc(0);var t;if(void 0===a)for(a=0,t=0;t<e.length;++t)a+=e[t].length;var n=i.allocUnsafe(a),b=0;for(t=0;t<e.length;++t){var d=e[t];if(!i.isBuffer(d))throw new TypeError('"list" argument must be an Array of Buffers');d.copy(n,b),b+=d.length}return n},i.byteLength=l,i.prototype._isBuffer=!0,i.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 a=0;a<e;a+=2)m(this,a,a+1);return this},i.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 a=0;a<e;a+=4)m(this,a,a+3),m(this,a+1,a+2);return this},i.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 a=0;a<e;a+=8)m(this,a,a+7),m(this,a+1,a+6),m(this,a+2,a+5),m(this,a+3,a+4);return this},i.prototype.toString=function(){var e=0|this.length;return 0===e?"":0===arguments.length?E(this,0,e):o.apply(this,arguments)},i.prototype.equals=function(e){if(!i.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===i.compare(this,e)},i.prototype.inspect=function(){var e="",t=a.INSPECT_MAX_BYTES;return this.length>0&&(e=this.toString("hex",0,t).match(/.{2}/g).join(" "),this.length>t&&(e+=" ... ")),"<Buffer "+e+">"},i.prototype.compare=function(e,a,t,n,b){if(!i.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(void 0===a&&(a=0),void 0===t&&(t=e?e.length:0),void 0===n&&(n=0),void 0===b&&(b=this.length),a<0||t>e.length||n<0||b>this.length)throw new RangeError("out of range index");if(n>=b&&a>=t)return 0;if(n>=b)return-1;if(a>=t)return 1;if(this===e)return 0;for(var f=(b>>>=0)-(n>>>=0),d=(t>>>=0)-(a>>>=0),s=Math.min(f,d),p=this.slice(n,b),u=e.slice(a,t),y=0;y<s;++y)if(p[y]!==u[y]){f=p[y],d=u[y];break}return f<d?-1:d<f?1:0},i.prototype.includes=function(e,a,t){return-1!==this.indexOf(e,a,t)},i.prototype.indexOf=function(e,a,t){return T(this,e,a,t,!0)},i.prototype.lastIndexOf=function(e,a,t){return T(this,e,a,t,!1)},i.prototype.write=function(e,a,t,n){if(void 0===a)n="utf8",t=this.length,a=0;else if(void 0===t&&"string"==typeof a)n=a,t=this.length,a=0;else{if(!isFinite(a))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");a|=0,isFinite(t)?(t|=0,void 0===n&&(n="utf8")):(n=t,t=void 0)}var b=this.length-a;if((void 0===t||t>b)&&(t=b),e.length>0&&(t<0||a<0)||a>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var f=!1;;)switch(n){case"hex":return h(this,e,a,t);case"utf8":case"utf-8":return v(this,e,a,t);case"ascii":return x(this,e,a,t);case"latin1":case"binary":return M(this,e,a,t);case"base64":return g(this,e,a,t);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return A(this,e,a,t);default:if(f)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),f=!0}},i.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function S(e,a,t){var n="";t=Math.min(e.length,t);for(var b=a;b<t;++b)n+=String.fromCharCode(127&e[b]);return n}function D(e,a,t){var n="";t=Math.min(e.length,t);for(var b=a;b<t;++b)n+=String.fromCharCode(e[b]);return n}function _(e,a,t){var n=e.length;(!a||a<0)&&(a=0),(!t||t<0||t>n)&&(t=n);for(var b="",f=a;f<t;++f)b+=L(e[f]);return b}function k(e,a,t){for(var n=e.slice(a,t),b="",f=0;f<n.length;f+=2)b+=String.fromCharCode(n[f]+256*n[f+1]);return b}function F(e,a,t){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(e+a>t)throw new RangeError("Trying to access beyond buffer length")}function R(e,a,t,n,b,f){if(!i.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(a>b||a<f)throw new RangeError('"value" argument is out of bounds');if(t+n>e.length)throw new RangeError("Index out of range")}function B(e,a,t,n){a<0&&(a=65535+a+1);for(var b=0,f=Math.min(e.length-t,2);b<f;++b)e[t+b]=(a&255<<8*(n?b:1-b))>>>8*(n?b:1-b)}function O(e,a,t,n){a<0&&(a=4294967295+a+1);for(var b=0,f=Math.min(e.length-t,4);b<f;++b)e[t+b]=a>>>8*(n?b:3-b)&255}function I(e,a,t,n,b,f){if(t+n>e.length)throw new RangeError("Index out of range");if(t<0)throw new RangeError("Index out of range")}function N(e,a,t,n,f){return f||I(e,0,t,4),b.write(e,a,t,n,23,4),t+4}function P(e,a,t,n,f){return f||I(e,0,t,8),b.write(e,a,t,n,52,8),t+8}i.prototype.slice=function(e,a){var t,n=this.length;if((e=~~e)<0?(e+=n)<0&&(e=0):e>n&&(e=n),(a=void 0===a?n:~~a)<0?(a+=n)<0&&(a=0):a>n&&(a=n),a<e&&(a=e),i.TYPED_ARRAY_SUPPORT)(t=this.subarray(e,a)).__proto__=i.prototype;else{var b=a-e;t=new i(b,void 0);for(var f=0;f<b;++f)t[f]=this[f+e]}return t},i.prototype.readUIntLE=function(e,a,t){e|=0,a|=0,t||F(e,a,this.length);for(var n=this[e],b=1,f=0;++f<a&&(b*=256);)n+=this[e+f]*b;return n},i.prototype.readUIntBE=function(e,a,t){e|=0,a|=0,t||F(e,a,this.length);for(var n=this[e+--a],b=1;a>0&&(b*=256);)n+=this[e+--a]*b;return n},i.prototype.readUInt8=function(e,a){return a||F(e,1,this.length),this[e]},i.prototype.readUInt16LE=function(e,a){return a||F(e,2,this.length),this[e]|this[e+1]<<8},i.prototype.readUInt16BE=function(e,a){return a||F(e,2,this.length),this[e]<<8|this[e+1]},i.prototype.readUInt32LE=function(e,a){return a||F(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},i.prototype.readUInt32BE=function(e,a){return a||F(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},i.prototype.readIntLE=function(e,a,t){e|=0,a|=0,t||F(e,a,this.length);for(var n=this[e],b=1,f=0;++f<a&&(b*=256);)n+=this[e+f]*b;return n>=(b*=128)&&(n-=Math.pow(2,8*a)),n},i.prototype.readIntBE=function(e,a,t){e|=0,a|=0,t||F(e,a,this.length);for(var n=a,b=1,f=this[e+--n];n>0&&(b*=256);)f+=this[e+--n]*b;return f>=(b*=128)&&(f-=Math.pow(2,8*a)),f},i.prototype.readInt8=function(e,a){return a||F(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},i.prototype.readInt16LE=function(e,a){a||F(e,2,this.length);var t=this[e]|this[e+1]<<8;return 32768&t?4294901760|t:t},i.prototype.readInt16BE=function(e,a){a||F(e,2,this.length);var t=this[e+1]|this[e]<<8;return 32768&t?4294901760|t:t},i.prototype.readInt32LE=function(e,a){return a||F(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},i.prototype.readInt32BE=function(e,a){return a||F(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},i.prototype.readFloatLE=function(e,a){return a||F(e,4,this.length),b.read(this,e,!0,23,4)},i.prototype.readFloatBE=function(e,a){return a||F(e,4,this.length),b.read(this,e,!1,23,4)},i.prototype.readDoubleLE=function(e,a){return a||F(e,8,this.length),b.read(this,e,!0,52,8)},i.prototype.readDoubleBE=function(e,a){return a||F(e,8,this.length),b.read(this,e,!1,52,8)},i.prototype.writeUIntLE=function(e,a,t,n){(e=+e,a|=0,t|=0,n)||R(this,e,a,t,Math.pow(2,8*t)-1,0);var b=1,f=0;for(this[a]=255&e;++f<t&&(b*=256);)this[a+f]=e/b&255;return a+t},i.prototype.writeUIntBE=function(e,a,t,n){(e=+e,a|=0,t|=0,n)||R(this,e,a,t,Math.pow(2,8*t)-1,0);var b=t-1,f=1;for(this[a+b]=255&e;--b>=0&&(f*=256);)this[a+b]=e/f&255;return a+t},i.prototype.writeUInt8=function(e,a,t){return e=+e,a|=0,t||R(this,e,a,1,255,0),i.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[a]=255&e,a+1},i.prototype.writeUInt16LE=function(e,a,t){return e=+e,a|=0,t||R(this,e,a,2,65535,0),i.TYPED_ARRAY_SUPPORT?(this[a]=255&e,this[a+1]=e>>>8):B(this,e,a,!0),a+2},i.prototype.writeUInt16BE=function(e,a,t){return e=+e,a|=0,t||R(this,e,a,2,65535,0),i.TYPED_ARRAY_SUPPORT?(this[a]=e>>>8,this[a+1]=255&e):B(this,e,a,!1),a+2},i.prototype.writeUInt32LE=function(e,a,t){return e=+e,a|=0,t||R(this,e,a,4,4294967295,0),i.TYPED_ARRAY_SUPPORT?(this[a+3]=e>>>24,this[a+2]=e>>>16,this[a+1]=e>>>8,this[a]=255&e):O(this,e,a,!0),a+4},i.prototype.writeUInt32BE=function(e,a,t){return e=+e,a|=0,t||R(this,e,a,4,4294967295,0),i.TYPED_ARRAY_SUPPORT?(this[a]=e>>>24,this[a+1]=e>>>16,this[a+2]=e>>>8,this[a+3]=255&e):O(this,e,a,!1),a+4},i.prototype.writeIntLE=function(e,a,t,n){if(e=+e,a|=0,!n){var b=Math.pow(2,8*t-1);R(this,e,a,t,b-1,-b)}var f=0,d=1,s=0;for(this[a]=255&e;++f<t&&(d*=256);)e<0&&0===s&&0!==this[a+f-1]&&(s=1),this[a+f]=(e/d>>0)-s&255;return a+t},i.prototype.writeIntBE=function(e,a,t,n){if(e=+e,a|=0,!n){var b=Math.pow(2,8*t-1);R(this,e,a,t,b-1,-b)}var f=t-1,d=1,s=0;for(this[a+f]=255&e;--f>=0&&(d*=256);)e<0&&0===s&&0!==this[a+f+1]&&(s=1),this[a+f]=(e/d>>0)-s&255;return a+t},i.prototype.writeInt8=function(e,a,t){return e=+e,a|=0,t||R(this,e,a,1,127,-128),i.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[a]=255&e,a+1},i.prototype.writeInt16LE=function(e,a,t){return e=+e,a|=0,t||R(this,e,a,2,32767,-32768),i.TYPED_ARRAY_SUPPORT?(this[a]=255&e,this[a+1]=e>>>8):B(this,e,a,!0),a+2},i.prototype.writeInt16BE=function(e,a,t){return e=+e,a|=0,t||R(this,e,a,2,32767,-32768),i.TYPED_ARRAY_SUPPORT?(this[a]=e>>>8,this[a+1]=255&e):B(this,e,a,!1),a+2},i.prototype.writeInt32LE=function(e,a,t){return e=+e,a|=0,t||R(this,e,a,4,2147483647,-2147483648),i.TYPED_ARRAY_SUPPORT?(this[a]=255&e,this[a+1]=e>>>8,this[a+2]=e>>>16,this[a+3]=e>>>24):O(this,e,a,!0),a+4},i.prototype.writeInt32BE=function(e,a,t){return e=+e,a|=0,t||R(this,e,a,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),i.TYPED_ARRAY_SUPPORT?(this[a]=e>>>24,this[a+1]=e>>>16,this[a+2]=e>>>8,this[a+3]=255&e):O(this,e,a,!1),a+4},i.prototype.writeFloatLE=function(e,a,t){return N(this,e,a,!0,t)},i.prototype.writeFloatBE=function(e,a,t){return N(this,e,a,!1,t)},i.prototype.writeDoubleLE=function(e,a,t){return P(this,e,a,!0,t)},i.prototype.writeDoubleBE=function(e,a,t){return P(this,e,a,!1,t)},i.prototype.copy=function(e,a,t,n){if(t||(t=0),n||0===n||(n=this.length),a>=e.length&&(a=e.length),a||(a=0),n>0&&n<t&&(n=t),n===t)return 0;if(0===e.length||0===this.length)return 0;if(a<0)throw new RangeError("targetStart out of bounds");if(t<0||t>=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-a<n-t&&(n=e.length-a+t);var b,f=n-t;if(this===e&&t<a&&a<n)for(b=f-1;b>=0;--b)e[b+a]=this[b+t];else if(f<1e3||!i.TYPED_ARRAY_SUPPORT)for(b=0;b<f;++b)e[b+a]=this[b+t];else Uint8Array.prototype.set.call(e,this.subarray(t,t+f),a);return f},i.prototype.fill=function(e,a,t,n){if("string"==typeof e){if("string"==typeof a?(n=a,a=0,t=this.length):"string"==typeof t&&(n=t,t=this.length),1===e.length){var b=e.charCodeAt(0);b<256&&(e=b)}if(void 0!==n&&"string"!=typeof n)throw new TypeError("encoding must be a string");if("string"==typeof n&&!i.isEncoding(n))throw new TypeError("Unknown encoding: "+n)}else"number"==typeof e&&(e&=255);if(a<0||this.length<a||this.length<t)throw new RangeError("Out of range index");if(t<=a)return this;var f;if(a>>>=0,t=void 0===t?this.length:t>>>0,e||(e=0),"number"==typeof e)for(f=a;f<t;++f)this[f]=e;else{var d=i.isBuffer(e)?e:U(new i(e,n).toString()),s=d.length;for(f=0;f<t-a;++f)this[f+a]=d[f%s]}return this};var K=/[^+\/0-9A-Za-z-_]/g;function L(e){return e<16?"0"+e.toString(16):e.toString(16)}function U(e,a){var t;a=a||1/0;for(var n=e.length,b=null,f=[],d=0;d<n;++d){if((t=e.charCodeAt(d))>55295&&t<57344){if(!b){if(t>56319){(a-=3)>-1&&f.push(239,191,189);continue}if(d+1===n){(a-=3)>-1&&f.push(239,191,189);continue}b=t;continue}if(t<56320){(a-=3)>-1&&f.push(239,191,189),b=t;continue}t=65536+(b-55296<<10|t-56320)}else b&&(a-=3)>-1&&f.push(239,191,189);if(b=null,t<128){if((a-=1)<0)break;f.push(t)}else if(t<2048){if((a-=2)<0)break;f.push(t>>6|192,63&t|128)}else if(t<65536){if((a-=3)<0)break;f.push(t>>12|224,t>>6&63|128,63&t|128)}else{if(!(t<1114112))throw new Error("Invalid code point");if((a-=4)<0)break;f.push(t>>18|240,t>>12&63|128,t>>6&63|128,63&t|128)}}return f}function V(e){return n.toByteArray(function(e){if((e=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}(e).replace(K,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function z(e,a,t,n){for(var b=0;b<n&&!(b+t>=a.length||b>=e.length);++b)a[b+t]=e[b];return b}}).call(this,t(2))},function(e,a){"function"==typeof Object.create?e.exports=function(e,a){a&&(e.super_=a,e.prototype=Object.create(a.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:e.exports=function(e,a){if(a){e.super_=a;var t=function(){};t.prototype=a.prototype,e.prototype=new t,e.prototype.constructor=e}}},function(e,a){var t;t=function(){return this}();try{t=t||new Function("return this")()}catch(e){"object"==typeof window&&(t=window)}e.exports=t},function(e,a){var t,n,b=e.exports={};function f(){throw new Error("setTimeout has not been defined")}function d(){throw new Error("clearTimeout has not been defined")}function s(e){if(t===setTimeout)return setTimeout(e,0);if((t===f||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(a){try{return t.call(null,e,0)}catch(a){return t.call(this,e,0)}}}!function(){try{t="function"==typeof setTimeout?setTimeout:f}catch(e){t=f}try{n="function"==typeof clearTimeout?clearTimeout:d}catch(e){n=d}}();var i,p=[],u=!1,y=-1;function r(){u&&i&&(u=!1,i.length?p=i.concat(p):y=-1,p.length&&c())}function c(){if(!u){var e=s(r);u=!0;for(var a=p.length;a;){for(i=p,p=[];++y<a;)i&&i[y].run();y=-1,a=p.length}i=null,u=!1,function(e){if(n===clearTimeout)return clearTimeout(e);if((n===d||!n)&&clearTimeout)return n=clearTimeout,clearTimeout(e);try{n(e)}catch(a){try{return n.call(null,e)}catch(a){return n.call(this,e)}}}(e)}}function l(e,a){this.fun=e,this.array=a}function o(){}b.nextTick=function(e){var a=new Array(arguments.length-1);if(arguments.length>1)for(var t=1;t<arguments.length;t++)a[t-1]=arguments[t];p.push(new l(e,a)),1!==p.length||u||s(c)},l.prototype.run=function(){this.fun.apply(null,this.array)},b.title="browser",b.browser=!0,b.env={},b.argv=[],b.version="",b.versions={},b.on=o,b.addListener=o,b.once=o,b.off=o,b.removeListener=o,b.removeAllListeners=o,b.emit=o,b.prependListener=o,b.prependOnceListener=o,b.listeners=function(e){return[]},b.binding=function(e){throw new Error("process.binding is not supported")},b.cwd=function(){return"/"},b.chdir=function(e){throw new Error("process.chdir is not supported")},b.umask=function(){return 0}},function(e,a,t){"use strict";var n=a,b=t(9),f=t(10),d=t(51);n.assert=f,n.toArray=d.toArray,n.zero2=d.zero2,n.toHex=d.toHex,n.encode=d.encode,n.getNAF=function(e,a,t){var n=new Array(Math.max(e.bitLength(),t)+1);n.fill(0);for(var b=1<<a+1,f=e.clone(),d=0;d<n.length;d++){var s,i=f.andln(b-1);f.isOdd()?(s=i>(b>>1)-1?(b>>1)-i:i,f.isubn(s)):s=0,n[d]=s,f.iushrn(1)}return n},n.getJSF=function(e,a){var t=[[],[]];e=e.clone(),a=a.clone();for(var n,b=0,f=0;e.cmpn(-b)>0||a.cmpn(-f)>0;){var d,s,i=e.andln(3)+b&3,p=a.andln(3)+f&3;3===i&&(i=-1),3===p&&(p=-1),d=0==(1&i)?0:3!==(n=e.andln(7)+b&7)&&5!==n||2!==p?i:-i,t[0].push(d),s=0==(1&p)?0:3!==(n=a.andln(7)+f&7)&&5!==n||2!==i?p:-p,t[1].push(s),2*b===d+1&&(b=1-b),2*f===s+1&&(f=1-f),e.iushrn(1),a.iushrn(1)}return t},n.cachedProperty=function(e,a,t){var n="_"+a;e.prototype[a]=function(){return void 0!==this[n]?this[n]:this[n]=t.call(this)}},n.parseBytes=function(e){return"string"==typeof e?n.toArray(e,"hex"):e},n.intFromLE=function(e){return new b(e,"hex","le")}},function(e,a,t){
/*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */
var n=t(0),b=n.Buffer;function f(e,a){for(var t in e)a[t]=e[t]}function d(e,a,t){return b(e,a,t)}b.from&&b.alloc&&b.allocUnsafe&&b.allocUnsafeSlow?e.exports=n:(f(n,a),a.Buffer=d),d.prototype=Object.create(b.prototype),f(b,d),d.from=function(e,a,t){if("number"==typeof e)throw new TypeError("Argument must not be a number");return b(e,a,t)},d.alloc=function(e,a,t){if("number"!=typeof e)throw new TypeError("Argument must be a number");var n=b(e);return void 0!==a?"string"==typeof t?n.fill(a,t):n.fill(a):n.fill(0),n},d.allocUnsafe=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return b(e)},d.allocUnsafeSlow=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return n.SlowBuffer(e)}},function(e,a,t){"use strict";var n=t(10),b=t(1);function f(e,a){return 55296==(64512&e.charCodeAt(a))&&(!(a<0||a+1>=e.length)&&56320==(64512&e.charCodeAt(a+1)))}function d(e){return(e>>>24|e>>>8&65280|e<<8&16711680|(255&e)<<24)>>>0}function s(e){return 1===e.length?"0"+e:e}function i(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}a.inherits=b,a.toArray=function(e,a){if(Array.isArray(e))return e.slice();if(!e)return[];var t=[];if("string"==typeof e)if(a){if("hex"===a)for((e=e.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(e="0"+e),b=0;b<e.length;b+=2)t.push(parseInt(e[b]+e[b+1],16))}else for(var n=0,b=0;b<e.length;b++){var d=e.charCodeAt(b);d<128?t[n++]=d:d<2048?(t[n++]=d>>6|192,t[n++]=63&d|128):f(e,b)?(d=65536+((1023&d)<<10)+(1023&e.charCodeAt(++b)),t[n++]=d>>18|240,t[n++]=d>>12&63|128,t[n++]=d>>6&63|128,t[n++]=63&d|128):(t[n++]=d>>12|224,t[n++]=d>>6&63|128,t[n++]=63&d|128)}else for(b=0;b<e.length;b++)t[b]=0|e[b];return t},a.toHex=function(e){for(var a="",t=0;t<e.length;t++)a+=s(e[t].toString(16));return a},a.htonl=d,a.toHex32=function(e,a){for(var t="",n=0;n<e.length;n++){var b=e[n];"little"===a&&(b=d(b)),t+=i(b.toString(16))}return t},a.zero2=s,a.zero8=i,a.join32=function(e,a,t,b){var f=t-a;n(f%4==0);for(var d=new Array(f/4),s=0,i=a;s<d.length;s++,i+=4){var p;p="big"===b?e[i]<<24|e[i+1]<<16|e[i+2]<<8|e[i+3]:e[i+3]<<24|e[i+2]<<16|e[i+1]<<8|e[i],d[s]=p>>>0}return d},a.split32=function(e,a){for(var t=new Array(4*e.length),n=0,b=0;n<e.length;n++,b+=4){var f=e[n];"big"===a?(t[b]=f>>>24,t[b+1]=f>>>16&255,t[b+2]=f>>>8&255,t[b+3]=255&f):(t[b+3]=f>>>24,t[b+2]=f>>>16&255,t[b+1]=f>>>8&255,t[b]=255&f)}return t},a.rotr32=function(e,a){return e>>>a|e<<32-a},a.rotl32=function(e,a){return e<<a|e>>>32-a},a.sum32=function(e,a){return e+a>>>0},a.sum32_3=function(e,a,t){return e+a+t>>>0},a.sum32_4=function(e,a,t,n){return e+a+t+n>>>0},a.sum32_5=function(e,a,t,n,b){return e+a+t+n+b>>>0},a.sum64=function(e,a,t,n){var b=e[a],f=n+e[a+1]>>>0,d=(f<n?1:0)+t+b;e[a]=d>>>0,e[a+1]=f},a.sum64_hi=function(e,a,t,n){return(a+n>>>0<a?1:0)+e+t>>>0},a.sum64_lo=function(e,a,t,n){return a+n>>>0},a.sum64_4_hi=function(e,a,t,n,b,f,d,s){var i=0,p=a;return i+=(p=p+n>>>0)<a?1:0,i+=(p=p+f>>>0)<f?1:0,e+t+b+d+(i+=(p=p+s>>>0)<s?1:0)>>>0},a.sum64_4_lo=function(e,a,t,n,b,f,d,s){return a+n+f+s>>>0},a.sum64_5_hi=function(e,a,t,n,b,f,d,s,i,p){var u=0,y=a;return u+=(y=y+n>>>0)<a?1:0,u+=(y=y+f>>>0)<f?1:0,u+=(y=y+s>>>0)<s?1:0,e+t+b+d+i+(u+=(y=y+p>>>0)<p?1:0)>>>0},a.sum64_5_lo=function(e,a,t,n,b,f,d,s,i,p){return a+n+f+s+p>>>0},a.rotr64_hi=function(e,a,t){return(a<<32-t|e>>>t)>>>0},a.rotr64_lo=function(e,a,t){return(e<<32-t|a>>>t)>>>0},a.shr64_hi=function(e,a,t){return e>>>t},a.shr64_lo=function(e,a,t){return(e<<32-t|a>>>t)>>>0}},function(e,a){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,a,t){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,a,t,n){void 0===n&&(n=t),Object.defineProperty(e,n,{enumerable:!0,get:function(){return a[t]}})}:function(e,a,t,n){void 0===n&&(n=t),e[n]=a[t]}),b=this&&this.__setModuleDefault||(Object.create?function(e,a){Object.defineProperty(e,"default",{enumerable:!0,value:a})}:function(e,a){e.default=a}),f=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var a={};if(null!=e)for(var t in e)"default"!==t&&Object.prototype.hasOwnProperty.call(e,t)&&n(a,e,t);return b(a,e),a},d=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(a,"__esModule",{value:!0}),a.rlp=a.BN=void 0;var s=d(t(92));a.BN=s.default;var i=f(t(94));a.rlp=i},function(e,a,t){(function(e){!function(e,a){"use strict";function n(e,a){if(!e)throw new Error(a||"Assertion failed")}function b(e,a){e.super_=a;var t=function(){};t.prototype=a.prototype,e.prototype=new t,e.prototype.constructor=e}function f(e,a,t){if(f.isBN(e))return e;this.negative=0,this.words=null,this.length=0,this.red=null,null!==e&&("le"!==a&&"be"!==a||(t=a,a=10),this._init(e||0,a||10,t||"be"))}var d;"object"==typeof e?e.exports=f:a.BN=f,f.BN=f,f.wordSize=26;try{d="undefined"!=typeof window&&void 0!==window.Buffer?window.Buffer:t(105).Buffer}catch(e){}function s(e,a){var t=e.charCodeAt(a);return t>=65&&t<=70?t-55:t>=97&&t<=102?t-87:t-48&15}function i(e,a,t){var n=s(e,t);return t-1>=a&&(n|=s(e,t-1)<<4),n}function p(e,a,t,n){for(var b=0,f=Math.min(e.length,t),d=a;d<f;d++){var s=e.charCodeAt(d)-48;b*=n,b+=s>=49?s-49+10:s>=17?s-17+10:s}return b}f.isBN=function(e){return e instanceof f||null!==e&&"object"==typeof e&&e.constructor.wordSize===f.wordSize&&Array.isArray(e.words)},f.max=function(e,a){return e.cmp(a)>0?e:a},f.min=function(e,a){return e.cmp(a)<0?e:a},f.prototype._init=function(e,a,t){if("number"==typeof e)return this._initNumber(e,a,t);if("object"==typeof e)return this._initArray(e,a,t);"hex"===a&&(a=16),n(a===(0|a)&&a>=2&&a<=36);var b=0;"-"===(e=e.toString().replace(/\s+/g,""))[0]&&(b++,this.negative=1),b<e.length&&(16===a?this._parseHex(e,b,t):(this._parseBase(e,a,b),"le"===t&&this._initArray(this.toArray(),a,t)))},f.prototype._initNumber=function(e,a,t){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"===t&&this._initArray(this.toArray(),a,t)},f.prototype._initArray=function(e,a,t){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 b=0;b<this.length;b++)this.words[b]=0;var f,d,s=0;if("be"===t)for(b=e.length-1,f=0;b>=0;b-=3)d=e[b]|e[b-1]<<8|e[b-2]<<16,this.words[f]|=d<<s&67108863,this.words[f+1]=d>>>26-s&67108863,(s+=24)>=26&&(s-=26,f++);else if("le"===t)for(b=0,f=0;b<e.length;b+=3)d=e[b]|e[b+1]<<8|e[b+2]<<16,this.words[f]|=d<<s&67108863,this.words[f+1]=d>>>26-s&67108863,(s+=24)>=26&&(s-=26,f++);return this.strip()},f.prototype._parseHex=function(e,a,t){this.length=Math.ceil((e.length-a)/6),this.words=new Array(this.length);for(var n=0;n<this.length;n++)this.words[n]=0;var b,f=0,d=0;if("be"===t)for(n=e.length-1;n>=a;n-=2)b=i(e,a,n)<<f,this.words[d]|=67108863&b,f>=18?(f-=18,d+=1,this.words[d]|=b>>>26):f+=8;else for(n=(e.length-a)%2==0?a+1:a;n<e.length;n+=2)b=i(e,a,n)<<f,this.words[d]|=67108863&b,f>=18?(f-=18,d+=1,this.words[d]|=b>>>26):f+=8;this.strip()},f.prototype._parseBase=function(e,a,t){this.words=[0],this.length=1;for(var n=0,b=1;b<=67108863;b*=a)n++;n--,b=b/a|0;for(var f=e.length-t,d=f%n,s=Math.min(f,f-d)+t,i=0,u=t;u<s;u+=n)i=p(e,u,u+n,a),this.imuln(b),this.words[0]+i<67108864?this.words[0]+=i:this._iaddn(i);if(0!==d){var y=1;for(i=p(e,u,e.length,a),u=0;u<d;u++)y*=a;this.imuln(y),this.words[0]+i<67108864?this.words[0]+=i:this._iaddn(i)}this.strip()},f.prototype.copy=function(e){e.words=new Array(this.length);for(var a=0;a<this.length;a++)e.words[a]=this.words[a];e.length=this.length,e.negative=this.negative,e.red=this.red},f.prototype.clone=function(){var e=new f(null);return this.copy(e),e},f.prototype._expand=function(e){for(;this.length<e;)this.words[this.length++]=0;return this},f.prototype.strip=function(){for(;this.length>1&&0===this.words[this.length-1];)this.length--;return this._normSign()},f.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},f.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"],y=[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],r=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function c(e,a,t){t.negative=a.negative^e.negative;var n=e.length+a.length|0;t.length=n,n=n-1|0;var b=0|e.words[0],f=0|a.words[0],d=b*f,s=67108863&d,i=d/67108864|0;t.words[0]=s;for(var p=1;p<n;p++){for(var u=i>>>26,y=67108863&i,r=Math.min(p,a.length-1),c=Math.max(0,p-e.length+1);c<=r;c++){var l=p-c|0;u+=(d=(b=0|e.words[l])*(f=0|a.words[c])+y)/67108864|0,y=67108863&d}t.words[p]=0|y,i=0|u}return 0!==i?t.words[p]=0|i:t.length--,t.strip()}f.prototype.toString=function(e,a){var t;if(a=0|a||1,16===(e=e||10)||"hex"===e){t="";for(var b=0,f=0,d=0;d<this.length;d++){var s=this.words[d],i=(16777215&(s<<b|f)).toString(16);t=0!==(f=s>>>24-b&16777215)||d!==this.length-1?u[6-i.length]+i+t:i+t,(b+=2)>=26&&(b-=26,d--)}for(0!==f&&(t=f.toString(16)+t);t.length%a!=0;)t="0"+t;return 0!==this.negative&&(t="-"+t),t}if(e===(0|e)&&e>=2&&e<=36){var p=y[e],c=r[e];t="";var l=this.clone();for(l.negative=0;!l.isZero();){var o=l.modn(c).toString(e);t=(l=l.idivn(c)).isZero()?o+t:u[p-o.length]+o+t}for(this.isZero()&&(t="0"+t);t.length%a!=0;)t="0"+t;return 0!==this.negative&&(t="-"+t),t}n(!1,"Base should be between 2 and 36")},f.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},f.prototype.toJSON=function(){return this.toString(16)},f.prototype.toBuffer=function(e,a){return n(void 0!==d),this.toArrayLike(d,e,a)},f.prototype.toArray=function(e,a){return this.toArrayLike(Array,e,a)},f.prototype.toArrayLike=function(e,a,t){var b=this.byteLength(),f=t||Math.max(1,b);n(b<=f,"byte array longer than desired length"),n(f>0,"Requested array length <= 0"),this.strip();var d,s,i="le"===a,p=new e(f),u=this.clone();if(i){for(s=0;!u.isZero();s++)d=u.andln(255),u.iushrn(8),p[s]=d;for(;s<f;s++)p[s]=0}else{for(s=0;s<f-b;s++)p[s]=0;for(s=0;!u.isZero();s++)d=u.andln(255),u.iushrn(8),p[f-s-1]=d}return p},Math.clz32?f.prototype._countBits=function(e){return 32-Math.clz32(e)}:f.prototype._countBits=function(e){var a=e,t=0;return a>=4096&&(t+=13,a>>>=13),a>=64&&(t+=7,a>>>=7),a>=8&&(t+=4,a>>>=4),a>=2&&(t+=2,a>>>=2),t+a},f.prototype._zeroBits=function(e){if(0===e)return 26;var a=e,t=0;return 0==(8191&a)&&(t+=13,a>>>=13),0==(127&a)&&(t+=7,a>>>=7),0==(15&a)&&(t+=4,a>>>=4),0==(3&a)&&(t+=2,a>>>=2),0==(1&a)&&t++,t},f.prototype.bitLength=function(){var e=this.words[this.length-1],a=this._countBits(e);return 26*(this.length-1)+a},f.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,a=0;a<this.length;a++){var t=this._zeroBits(this.words[a]);if(e+=t,26!==t)break}return e},f.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},f.prototype.toTwos=function(e){return 0!==this.negative?this.abs().inotn(e).iaddn(1):this.clone()},f.prototype.fromTwos=function(e){return this.testn(e-1)?this.notn(e).iaddn(1).ineg():this.clone()},f.prototype.isNeg=function(){return 0!==this.negative},f.prototype.neg=function(){return this.clone().ineg()},f.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},f.prototype.iuor=function(e){for(;this.length<e.length;)this.words[this.length++]=0;for(var a=0;a<e.length;a++)this.words[a]=this.words[a]|e.words[a];return this.strip()},f.prototype.ior=function(e){return n(0==(this.negative|e.negative)),this.iuor(e)},f.prototype.or=function(e){return this.length>e.length?this.clone().ior(e):e.clone().ior(this)},f.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},f.prototype.iuand=function(e){var a;a=this.length>e.length?e:this;for(var t=0;t<a.length;t++)this.words[t]=this.words[t]&e.words[t];return this.length=a.length,this.strip()},f.prototype.iand=function(e){return n(0==(this.negative|e.negative)),this.iuand(e)},f.prototype.and=function(e){return this.length>e.length?this.clone().iand(e):e.clone().iand(this)},f.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},f.prototype.iuxor=function(e){var a,t;this.length>e.length?(a=this,t=e):(a=e,t=this);for(var n=0;n<t.length;n++)this.words[n]=a.words[n]^t.words[n];if(this!==a)for(;n<a.length;n++)this.words[n]=a.words[n];return this.length=a.length,this.strip()},f.prototype.ixor=function(e){return n(0==(this.negative|e.negative)),this.iuxor(e)},f.prototype.xor=function(e){return this.length>e.length?this.clone().ixor(e):e.clone().ixor(this)},f.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},f.prototype.inotn=function(e){n("number"==typeof e&&e>=0);var a=0|Math.ceil(e/26),t=e%26;this._expand(a),t>0&&a--;for(var b=0;b<a;b++)this.words[b]=67108863&~this.words[b];return t>0&&(this.words[b]=~this.words[b]&67108863>>26-t),this.strip()},f.prototype.notn=function(e){return this.clone().inotn(e)},f.prototype.setn=function(e,a){n("number"==typeof e&&e>=0);var t=e/26|0,b=e%26;return this._expand(t+1),this.words[t]=a?this.words[t]|1<<b:this.words[t]&~(1<<b),this.strip()},f.prototype.iadd=function(e){var a,t,n;if(0!==this.negative&&0===e.negative)return this.negative=0,a=this.isub(e),this.negative^=1,this._normSign();if(0===this.negative&&0!==e.negative)return e.negative=0,a=this.isub(e),e.negative=1,a._normSign();this.length>e.length?(t=this,n=e):(t=e,n=this);for(var b=0,f=0;f<n.length;f++)a=(0|t.words[f])+(0|n.words[f])+b,this.words[f]=67108863&a,b=a>>>26;for(;0!==b&&f<t.length;f++)a=(0|t.words[f])+b,this.words[f]=67108863&a,b=a>>>26;if(this.length=t.length,0!==b)this.words[this.length]=b,this.length++;else if(t!==this)for(;f<t.length;f++)this.words[f]=t.words[f];return this},f.prototype.add=function(e){var a;return 0!==e.negative&&0===this.negative?(e.negative=0,a=this.sub(e),e.negative^=1,a):0===e.negative&&0!==this.negative?(this.negative=0,a=e.sub(this),this.negative=1,a):this.length>e.length?this.clone().iadd(e):e.clone().iadd(this)},f.prototype.isub=function(e){if(0!==e.negative){e.negative=0;var a=this.iadd(e);return e.negative=1,a._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(e),this.negative=1,this._normSign();var t,n,b=this.cmp(e);if(0===b)return this.negative=0,this.length=1,this.words[0]=0,this;b>0?(t=this,n=e):(t=e,n=this);for(var f=0,d=0;d<n.length;d++)f=(a=(0|t.words[d])-(0|n.words[d])+f)>>26,this.words[d]=67108863&a;for(;0!==f&&d<t.length;d++)f=(a=(0|t.words[d])+f)>>26,this.words[d]=67108863&a;if(0===f&&d<t.length&&t!==this)for(;d<t.length;d++)this.words[d]=t.words[d];return this.length=Math.max(this.length,d),t!==this&&(this.negative=1),this.strip()},f.prototype.sub=function(e){return this.clone().isub(e)};var l=function(e,a,t){var n,b,f,d=e.words,s=a.words,i=t.words,p=0,u=0|d[0],y=8191&u,r=u>>>13,c=0|d[1],l=8191&c,o=c>>>13,m=0|d[2],T=8191&m,w=m>>>13,h=0|d[3],v=8191&h,x=h>>>13,M=0|d[4],g=8191&M,A=M>>>13,C=0|d[5],E=8191&C,S=C>>>13,D=0|d[6],_=8191&D,k=D>>>13,F=0|d[7],R=8191&F,B=F>>>13,O=0|d[8],I=8191&O,N=O>>>13,P=0|d[9],K=8191&P,L=P>>>13,U=0|s[0],V=8191&U,z=U>>>13,q=0|s[1],W=8191&q,H=q>>>13,Q=0|s[2],X=8191&Q,Z=Q>>>13,j=0|s[3],G=8191&j,$=j>>>13,Y=0|s[4],J=8191&Y,ee=Y>>>13,ae=0|s[5],te=8191&ae,ne=ae>>>13,be=0|s[6],fe=8191&be,de=be>>>13,se=0|s[7],ie=8191&se,pe=se>>>13,ue=0|s[8],ye=8191&ue,re=ue>>>13,ce=0|s[9],le=8191&ce,oe=ce>>>13;t.negative=e.negative^a.negative,t.length=19;var me=(p+(n=Math.imul(y,V))|0)+((8191&(b=(b=Math.imul(y,z))+Math.imul(r,V)|0))<<13)|0;p=((f=Math.imul(r,z))+(b>>>13)|0)+(me>>>26)|0,me&=67108863,n=Math.imul(l,V),b=(b=Math.imul(l,z))+Math.imul(o,V)|0,f=Math.imul(o,z);var Te=(p+(n=n+Math.imul(y,W)|0)|0)+((8191&(b=(b=b+Math.imul(y,H)|0)+Math.imul(r,W)|0))<<13)|0;p=((f=f+Math.imul(r,H)|0)+(b>>>13)|0)+(Te>>>26)|0,Te&=67108863,n=Math.imul(T,V),b=(b=Math.imul(T,z))+Math.imul(w,V)|0,f=Math.imul(w,z),n=n+Math.imul(l,W)|0,b=(b=b+Math.imul(l,H)|0)+Math.imul(o,W)|0,f=f+Math.imul(o,H)|0;var we=(p+(n=n+Math.imul(y,X)|0)|0)+((8191&(b=(b=b+Math.imul(y,Z)|0)+Math.imul(r,X)|0))<<13)|0;p=((f=f+Math.imul(r,Z)|0)+(b>>>13)|0)+(we>>>26)|0,we&=67108863,n=Math.imul(v,V),b=(b=Math.imul(v,z))+Math.imul(x,V)|0,f=Math.imul(x,z),n=n+Math.imul(T,W)|0,b=(b=b+Math.imul(T,H)|0)+Math.imul(w,W)|0,f=f+Math.imul(w,H)|0,n=n+Math.imul(l,X)|0,b=(b=b+Math.imul(l,Z)|0)+Math.imul(o,X)|0,f=f+Math.imul(o,Z)|0;var he=(p+(n=n+Math.imul(y,G)|0)|0)+((8191&(b=(b=b+Math.imul(y,$)|0)+Math.imul(r,G)|0))<<13)|0;p=((f=f+Math.imul(r,$)|0)+(b>>>13)|0)+(he>>>26)|0,he&=67108863,n=Math.imul(g,V),b=(b=Math.imul(g,z))+Math.imul(A,V)|0,f=Math.imul(A,z),n=n+Math.imul(v,W)|0,b=(b=b+Math.imul(v,H)|0)+Math.imul(x,W)|0,f=f+Math.imul(x,H)|0,n=n+Math.imul(T,X)|0,b=(b=b+Math.imul(T,Z)|0)+Math.imul(w,X)|0,f=f+Math.imul(w,Z)|0,n=n+Math.imul(l,G)|0,b=(b=b+Math.imul(l,$)|0)+Math.imul(o,G)|0,f=f+Math.imul(o,$)|0;var ve=(p+(n=n+Math.imul(y,J)|0)|0)+((8191&(b=(b=b+Math.imul(y,ee)|0)+Math.imul(r,J)|0))<<13)|0;p=((f=f+Math.imul(r,ee)|0)+(b>>>13)|0)+(ve>>>26)|0,ve&=67108863,n=Math.imul(E,V),b=(b=Math.imul(E,z))+Math.imul(S,V)|0,f=Math.imul(S,z),n=n+Math.imul(g,W)|0,b=(b=b+Math.imul(g,H)|0)+Math.imul(A,W)|0,f=f+Math.imul(A,H)|0,n=n+Math.imul(v,X)|0,b=(b=b+Math.imul(v,Z)|0)+Math.imul(x,X)|0,f=f+Math.imul(x,Z)|0,n=n+Math.imul(T,G)|0,b=(b=b+Math.imul(T,$)|0)+Math.imul(w,G)|0,f=f+Math.imul(w,$)|0,n=n+Math.imul(l,J)|0,b=(b=b+Math.imul(l,ee)|0)+Math.imul(o,J)|0,f=f+Math.imul(o,ee)|0;var xe=(p+(n=n+Math.imul(y,te)|0)|0)+((8191&(b=(b=b+Math.imul(y,ne)|0)+Math.imul(r,te)|0))<<13)|0;p=((f=f+Math.imul(r,ne)|0)+(b>>>13)|0)+(xe>>>26)|0,xe&=67108863,n=Math.imul(_,V),b=(b=Math.imul(_,z))+Math.imul(k,V)|0,f=Math.imul(k,z),n=n+Math.imul(E,W)|0,b=(b=b+Math.imul(E,H)|0)+Math.imul(S,W)|0,f=f+Math.imul(S,H)|0,n=n+Math.imul(g,X)|0,b=(b=b+Math.imul(g,Z)|0)+Math.imul(A,X)|0,f=f+Math.imul(A,Z)|0,n=n+Math.imul(v,G)|0,b=(b=b+Math.imul(v,$)|0)+Math.imul(x,G)|0,f=f+Math.imul(x,$)|0,n=n+Math.imul(T,J)|0,b=(b=b+Math.imul(T,ee)|0)+Math.imul(w,J)|0,f=f+Math.imul(w,ee)|0,n=n+Math.imul(l,te)|0,b=(b=b+Math.imul(l,ne)|0)+Math.imul(o,te)|0,f=f+Math.imul(o,ne)|0;var Me=(p+(n=n+Math.imul(y,fe)|0)|0)+((8191&(b=(b=b+Math.imul(y,de)|0)+Math.imul(r,fe)|0))<<13)|0;p=((f=f+Math.imul(r,de)|0)+(b>>>13)|0)+(Me>>>26)|0,Me&=67108863,n=Math.imul(R,V),b=(b=Math.imul(R,z))+Math.imul(B,V)|0,f=Math.imul(B,z),n=n+Math.imul(_,W)|0,b=(b=b+Math.imul(_,H)|0)+Math.imul(k,W)|0,f=f+Math.imul(k,H)|0,n=n+Math.imul(E,X)|0,b=(b=b+Math.imul(E,Z)|0)+Math.imul(S,X)|0,f=f+Math.imul(S,Z)|0,n=n+Math.imul(g,G)|0,b=(b=b+Math.imul(g,$)|0)+Math.imul(A,G)|0,f=f+Math.imul(A,$)|0,n=n+Math.imul(v,J)|0,b=(b=b+Math.imul(v,ee)|0)+Math.imul(x,J)|0,f=f+Math.imul(x,ee)|0,n=n+Math.imul(T,te)|0,b=(b=b+Math.imul(T,ne)|0)+Math.imul(w,te)|0,f=f+Math.imul(w,ne)|0,n=n+Math.imul(l,fe)|0,b=(b=b+Math.imul(l,de)|0)+Math.imul(o,fe)|0,f=f+Math.imul(o,de)|0;var ge=(p+(n=n+Math.imul(y,ie)|0)|0)+((8191&(b=(b=b+Math.imul(y,pe)|0)+Math.imul(r,ie)|0))<<13)|0;p=((f=f+Math.imul(r,pe)|0)+(b>>>13)|0)+(ge>>>26)|0,ge&=67108863,n=Math.imul(I,V),b=(b=Math.imul(I,z))+Math.imul(N,V)|0,f=Math.imul(N,z),n=n+Math.imul(R,W)|0,b=(b=b+Math.imul(R,H)|0)+Math.imul(B,W)|0,f=f+Math.imul(B,H)|0,n=n+Math.imul(_,X)|0,b=(b=b+Math.imul(_,Z)|0)+Math.imul(k,X)|0,f=f+Math.imul(k,Z)|0,n=n+Math.imul(E,G)|0,b=(b=b+Math.imul(E,$)|0)+Math.imul(S,G)|0,f=f+Math.imul(S,$)|0,n=n+Math.imul(g,J)|0,b=(b=b+Math.imul(g,ee)|0)+Math.imul(A,J)|0,f=f+Math.imul(A,ee)|0,n=n+Math.imul(v,te)|0,b=(b=b+Math.imul(v,ne)|0)+Math.imul(x,te)|0,f=f+Math.imul(x,ne)|0,n=n+Math.imul(T,fe)|0,b=(b=b+Math.imul(T,de)|0)+Math.imul(w,fe)|0,f=f+Math.imul(w,de)|0,n=n+Math.imul(l,ie)|0,b=(b=b+Math.imul(l,pe)|0)+Math.imul(o,ie)|0,f=f+Math.imul(o,pe)|0;var Ae=(p+(n=n+Math.imul(y,ye)|0)|0)+((8191&(b=(b=b+Math.imul(y,re)|0)+Math.imul(r,ye)|0))<<13)|0;p=((f=f+Math.imul(r,re)|0)+(b>>>13)|0)+(Ae>>>26)|0,Ae&=67108863,n=Math.imul(K,V),b=(b=Math.imul(K,z))+Math.imul(L,V)|0,f=Math.imul(L,z),n=n+Math.imul(I,W)|0,b=(b=b+Math.imul(I,H)|0)+Math.imul(N,W)|0,f=f+Math.imul(N,H)|0,n=n+Math.imul(R,X)|0,b=(b=b+Math.imul(R,Z)|0)+Math.imul(B,X)|0,f=f+Math.imul(B,Z)|0,n=n+Math.imul(_,G)|0,b=(b=b+Math.imul(_,$)|0)+Math.imul(k,G)|0,f=f+Math.imul(k,$)|0,n=n+Math.imul(E,J)|0,b=(b=b+Math.imul(E,ee)|0)+Math.imul(S,J)|0,f=f+Math.imul(S,ee)|0,n=n+Math.imul(g,te)|0,b=(b=b+Math.imul(g,ne)|0)+Math.imul(A,te)|0,f=f+Math.imul(A,ne)|0,n=n+Math.imul(v,fe)|0,b=(b=b+Math.imul(v,de)|0)+Math.imul(x,fe)|0,f=f+Math.imul(x,de)|0,n=n+Math.imul(T,ie)|0,b=(b=b+Math.imul(T,pe)|0)+Math.imul(w,ie)|0,f=f+Math.imul(w,pe)|0,n=n+Math.imul(l,ye)|0,b=(b=b+Math.imul(l,re)|0)+Math.imul(o,ye)|0,f=f+Math.imul(o,re)|0;var Ce=(p+(n=n+Math.imul(y,le)|0)|0)+((8191&(b=(b=b+Math.imul(y,oe)|0)+Math.imul(r,le)|0))<<13)|0;p=((f=f+Math.imul(r,oe)|0)+(b>>>13)|0)+(Ce>>>26)|0,Ce&=67108863,n=Math.imul(K,W),b=(b=Math.imul(K,H))+Math.imul(L,W)|0,f=Math.imul(L,H),n=n+Math.imul(I,X)|0,b=(b=b+Math.imul(I,Z)|0)+Math.imul(N,X)|0,f=f+Math.imul(N,Z)|0,n=n+Math.imul(R,G)|0,b=(b=b+Math.imul(R,$)|0)+Math.imul(B,G)|0,f=f+Math.imul(B,$)|0,n=n+Math.imul(_,J)|0,b=(b=b+Math.imul(_,ee)|0)+Math.imul(k,J)|0,f=f+Math.imul(k,ee)|0,n=n+Math.imul(E,te)|0,b=(b=b+Math.imul(E,ne)|0)+Math.imul(S,te)|0,f=f+Math.imul(S,ne)|0,n=n+Math.imul(g,fe)|0,b=(b=b+Math.imul(g,de)|0)+Math.imul(A,fe)|0,f=f+Math.imul(A,de)|0,n=n+Math.imul(v,ie)|0,b=(b=b+Math.imul(v,pe)|0)+Math.imul(x,ie)|0,f=f+Math.imul(x,pe)|0,n=n+Math.imul(T,ye)|0,b=(b=b+Math.imul(T,re)|0)+Math.imul(w,ye)|0,f=f+Math.imul(w,re)|0;var Ee=(p+(n=n+Math.imul(l,le)|0)|0)+((8191&(b=(b=b+Math.imul(l,oe)|0)+Math.imul(o,le)|0))<<13)|0;p=((f=f+Math.imul(o,oe)|0)+(b>>>13)|0)+(Ee>>>26)|0,Ee&=67108863,n=Math.imul(K,X),b=(b=Math.imul(K,Z))+Math.imul(L,X)|0,f=Math.imul(L,Z),n=n+Math.imul(I,G)|0,b=(b=b+Math.imul(I,$)|0)+Math.imul(N,G)|0,f=f+Math.imul(N,$)|0,n=n+Math.imul(R,J)|0,b=(b=b+Math.imul(R,ee)|0)+Math.imul(B,J)|0,f=f+Math.imul(B,ee)|0,n=n+Math.imul(_,te)|0,b=(b=b+Math.imul(_,ne)|0)+Math.imul(k,te)|0,f=f+Math.imul(k,ne)|0,n=n+Math.imul(E,fe)|0,b=(b=b+Math.imul(E,de)|0)+Math.imul(S,fe)|0,f=f+Math.imul(S,de)|0,n=n+Math.imul(g,ie)|0,b=(b=b+Math.imul(g,pe)|0)+Math.imul(A,ie)|0,f=f+Math.imul(A,pe)|0,n=n+Math.imul(v,ye)|0,b=(b=b+Math.imul(v,re)|0)+Math.imul(x,ye)|0,f=f+Math.imul(x,re)|0;var Se=(p+(n=n+Math.imul(T,le)|0)|0)+((8191&(b=(b=b+Math.imul(T,oe)|0)+Math.imul(w,le)|0))<<13)|0;p=((f=f+Math.imul(w,oe)|0)+(b>>>13)|0)+(Se>>>26)|0,Se&=67108863,n=Math.imul(K,G),b=(b=Math.imul(K,$))+Math.imul(L,G)|0,f=Math.imul(L,$),n=n+Math.imul(I,J)|0,b=(b=b+Math.imul(I,ee)|0)+Math.imul(N,J)|0,f=f+Math.imul(N,ee)|0,n=n+Math.imul(R,te)|0,b=(b=b+Math.imul(R,ne)|0)+Math.imul(B,te)|0,f=f+Math.imul(B,ne)|0,n=n+Math.imul(_,fe)|0,b=(b=b+Math.imul(_,de)|0)+Math.imul(k,fe)|0,f=f+Math.imul(k,de)|0,n=n+Math.imul(E,ie)|0,b=(b=b+Math.imul(E,pe)|0)+Math.imul(S,ie)|0,f=f+Math.imul(S,pe)|0,n=n+Math.imul(g,ye)|0,b=(b=b+Math.imul(g,re)|0)+Math.imul(A,ye)|0,f=f+Math.imul(A,re)|0;var De=(p+(n=n+Math.imul(v,le)|0)|0)+((8191&(b=(b=b+Math.imul(v,oe)|0)+Math.imul(x,le)|0))<<13)|0;p=((f=f+Math.imul(x,oe)|0)+(b>>>13)|0)+(De>>>26)|0,De&=67108863,n=Math.imul(K,J),b=(b=Math.imul(K,ee))+Math.imul(L,J)|0,f=Math.imul(L,ee),n=n+Math.imul(I,te)|0,b=(b=b+Math.imul(I,ne)|0)+Math.imul(N,te)|0,f=f+Math.imul(N,ne)|0,n=n+Math.imul(R,fe)|0,b=(b=b+Math.imul(R,de)|0)+Math.imul(B,fe)|0,f=f+Math.imul(B,de)|0,n=n+Math.imul(_,ie)|0,b=(b=b+Math.imul(_,pe)|0)+Math.imul(k,ie)|0,f=f+Math.imul(k,pe)|0,n=n+Math.imul(E,ye)|0,b=(b=b+Math.imul(E,re)|0)+Math.imul(S,ye)|0,f=f+Math.imul(S,re)|0;var _e=(p+(n=n+Math.imul(g,le)|0)|0)+((8191&(b=(b=b+Math.imul(g,oe)|0)+Math.imul(A,le)|0))<<13)|0;p=((f=f+Math.imul(A,oe)|0)+(b>>>13)|0)+(_e>>>26)|0,_e&=67108863,n=Math.imul(K,te),b=(b=Math.imul(K,ne))+Math.imul(L,te)|0,f=Math.imul(L,ne),n=n+Math.imul(I,fe)|0,b=(b=b+Math.imul(I,de)|0)+Math.imul(N,fe)|0,f=f+Math.imul(N,de)|0,n=n+Math.imul(R,ie)|0,b=(b=b+Math.imul(R,pe)|0)+Math.imul(B,ie)|0,f=f+Math.imul(B,pe)|0,n=n+Math.imul(_,ye)|0,b=(b=b+Math.imul(_,re)|0)+Math.imul(k,ye)|0,f=f+Math.imul(k,re)|0;var ke=(p+(n=n+Math.imul(E,le)|0)|0)+((8191&(b=(b=b+Math.imul(E,oe)|0)+Math.imul(S,le)|0))<<13)|0;p=((f=f+Math.imul(S,oe)|0)+(b>>>13)|0)+(ke>>>26)|0,ke&=67108863,n=Math.imul(K,fe),b=(b=Math.imul(K,de))+Math.imul(L,fe)|0,f=Math.imul(L,de),n=n+Math.imul(I,ie)|0,b=(b=b+Math.imul(I,pe)|0)+Math.imul(N,ie)|0,f=f+Math.imul(N,pe)|0,n=n+Math.imul(R,ye)|0,b=(b=b+Math.imul(R,re)|0)+Math.imul(B,ye)|0,f=f+Math.imul(B,re)|0;var Fe=(p+(n=n+Math.imul(_,le)|0)|0)+((8191&(b=(b=b+Math.imul(_,oe)|0)+Math.imul(k,le)|0))<<13)|0;p=((f=f+Math.imul(k,oe)|0)+(b>>>13)|0)+(Fe>>>26)|0,Fe&=67108863,n=Math.imul(