!function(n){var t={};function e(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return n[r].call(i.exports,i,i.exports,e),i.l=!0,i.exports}e.m=n,e.c=t,e.d=function(n,t,r){e.o(n,t)||Object.defineProperty(n,t,{enumerable:!0,get:r})},e.r=function(n){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(n,"__esModule",{value:!0})},e.t=function(n,t){if(1&t&&(n=e(n)),8&t)return n;if(4&t&&"object"==typeof n&&n&&n.__esModule)return n;var r=Object.create(null);if(e.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:n}),2&t&&"string"!=typeof n)for(var i in n)e.d(r,i,function(t){return n[t]}.bind(null,i));return r},e.n=function(n){var t=n&&n.__esModule?function(){return n.default}:function(){return n};return e.d(t,"a",t),t},e.o=function(n,t){return Object.prototype.hasOwnProperty.call(n,t)},e.p="",e(e.s=518)}([function(n,t,e){"use strict";n.exports=e(185)},function(n,t){n.exports=function(n,t,e){return t in n?Object.defineProperty(n,t,{value:e,enumerable:!0,configurable:!0,writable:!0}):n[t]=e,n}},function(n,t,e){ /*! safe-buffer. MIT License. Feross Aboukhadijeh */ var r=e(10),i=r.Buffer;function a(n,t){for(var e in n)t[e]=n[e]}function o(n,t,e){return i(n,t,e)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?n.exports=r:(a(r,t),t.Buffer=o),o.prototype=Object.create(i.prototype),a(i,o),o.from=function(n,t,e){if("number"==typeof n)throw new TypeError("Argument must not be a number");return i(n,t,e)},o.alloc=function(n,t,e){if("number"!=typeof n)throw new TypeError("Argument must be a number");var r=i(n);return void 0!==t?"string"==typeof e?r.fill(t,e):r.fill(t):r.fill(0),r},o.allocUnsafe=function(n){if("number"!=typeof n)throw new TypeError("Argument must be a number");return i(n)},o.allocUnsafeSlow=function(n){if("number"!=typeof n)throw new TypeError("Argument must be a number");return r.SlowBuffer(n)}},function(n,t){"function"==typeof Object.create?n.exports=function(n,t){t&&(n.super_=t,n.prototype=Object.create(t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}))}:n.exports=function(n,t){if(t){n.super_=t;var e=function(){};e.prototype=t.prototype,n.prototype=new e,n.prototype.constructor=n}}},function(n,t,e){"use strict";e.d(t,"a",(function(){return a}));var r=e(7);function i(n,t){var e=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable}))),e.push.apply(e,r)}return e}function a(n){for(var t=1;t1)for(var e=1;e * @license MIT */ var r=e(401),i=e(402),a=e(403);function o(){return s.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function l(n,t){if(o()=o())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+o().toString(16)+" bytes");return 0|n}function p(n,t){if(s.isBuffer(n))return n.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(n)||n instanceof ArrayBuffer))return n.byteLength;"string"!=typeof n&&(n=""+n);var e=n.length;if(0===e)return 0;for(var r=!1;;)switch(t){case"ascii":case"latin1":case"binary":return e;case"utf8":case"utf-8":case void 0:return U(n).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*e;case"hex":return e>>>1;case"base64":return q(n).length;default:if(r)return U(n).length;t=(""+t).toLowerCase(),r=!0}}function m(n,t,e){var r=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===e||e>this.length)&&(e=this.length),e<=0)return"";if((e>>>=0)<=(t>>>=0))return"";for(n||(n="utf8");;)switch(n){case"hex":return A(this,t,e);case"utf8":case"utf-8":return E(this,t,e);case"ascii":return O(this,t,e);case"latin1":case"binary":return T(this,t,e);case"base64":return S(this,t,e);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return C(this,t,e);default:if(r)throw new TypeError("Unknown encoding: "+n);n=(n+"").toLowerCase(),r=!0}}function g(n,t,e){var r=n[t];n[t]=n[e],n[e]=r}function b(n,t,e,r,i){if(0===n.length)return-1;if("string"==typeof e?(r=e,e=0):e>2147483647?e=2147483647:e<-2147483648&&(e=-2147483648),e=+e,isNaN(e)&&(e=i?0:n.length-1),e<0&&(e=n.length+e),e>=n.length){if(i)return-1;e=n.length-1}else if(e<0){if(!i)return-1;e=0}if("string"==typeof t&&(t=s.from(t,r)),s.isBuffer(t))return 0===t.length?-1:v(n,t,e,r,i);if("number"==typeof t)return t&=255,s.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(n,t,e):Uint8Array.prototype.lastIndexOf.call(n,t,e):v(n,[t],e,r,i);throw new TypeError("val must be string, number or Buffer")}function v(n,t,e,r,i){var a,o=1,l=n.length,s=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(n.length<2||t.length<2)return-1;o=2,l/=2,s/=2,e/=2}function u(n,t){return 1===o?n[t]:n.readUInt16BE(t*o)}if(i){var c=-1;for(a=e;al&&(e=l-s),a=e;a>=0;a--){for(var d=!0,f=0;fi&&(r=i):r=i;var a=t.length;if(a%2!=0)throw new TypeError("Invalid hex string");r>a/2&&(r=a/2);for(var o=0;o>8,i=e%256,a.push(i),a.push(r);return a}(t,n.length-e),n,e,r)}function S(n,t,e){return 0===t&&e===n.length?r.fromByteArray(n):r.fromByteArray(n.slice(t,e))}function E(n,t,e){e=Math.min(n.length,e);for(var r=[],i=t;i239?4:u>223?3:u>191?2:1;if(i+d<=e)switch(d){case 1:u<128&&(c=u);break;case 2:128==(192&(a=n[i+1]))&&(s=(31&u)<<6|63&a)>127&&(c=s);break;case 3:a=n[i+1],o=n[i+2],128==(192&a)&&128==(192&o)&&(s=(15&u)<<12|(63&a)<<6|63&o)>2047&&(s<55296||s>57343)&&(c=s);break;case 4:a=n[i+1],o=n[i+2],l=n[i+3],128==(192&a)&&128==(192&o)&&128==(192&l)&&(s=(15&u)<<18|(63&a)<<12|(63&o)<<6|63&l)>65535&&s<1114112&&(c=s)}null===c?(c=65533,d=1):c>65535&&(c-=65536,r.push(c>>>10&1023|55296),c=56320|1023&c),r.push(c),i+=d}return function(n){var t=n.length;if(t<=4096)return String.fromCharCode.apply(String,n);var e="",r=0;for(;r0&&(n=this.toString("hex",0,e).match(/.{2}/g).join(" "),this.length>e&&(n+=" ... ")),""},s.prototype.compare=function(n,t,e,r,i){if(!s.isBuffer(n))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===e&&(e=n?n.length:0),void 0===r&&(r=0),void 0===i&&(i=this.length),t<0||e>n.length||r<0||i>this.length)throw new RangeError("out of range index");if(r>=i&&t>=e)return 0;if(r>=i)return-1;if(t>=e)return 1;if(this===n)return 0;for(var a=(i>>>=0)-(r>>>=0),o=(e>>>=0)-(t>>>=0),l=Math.min(a,o),u=this.slice(r,i),c=n.slice(t,e),d=0;di)&&(e=i),n.length>0&&(e<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var a=!1;;)switch(r){case"hex":return y(this,n,t,e);case"utf8":case"utf-8":return w(this,n,t,e);case"ascii":return x(this,n,t,e);case"latin1":case"binary":return k(this,n,t,e);case"base64":return M(this,n,t,e);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return _(this,n,t,e);default:if(a)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),a=!0}},s.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function O(n,t,e){var r="";e=Math.min(n.length,e);for(var i=t;ir)&&(e=r);for(var i="",a=t;ae)throw new RangeError("Trying to access beyond buffer length")}function z(n,t,e,r,i,a){if(!s.isBuffer(n))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||tn.length)throw new RangeError("Index out of range")}function P(n,t,e,r){t<0&&(t=65535+t+1);for(var i=0,a=Math.min(n.length-e,2);i>>8*(r?i:1-i)}function R(n,t,e,r){t<0&&(t=4294967295+t+1);for(var i=0,a=Math.min(n.length-e,4);i>>8*(r?i:3-i)&255}function I(n,t,e,r,i,a){if(e+r>n.length)throw new RangeError("Index out of range");if(e<0)throw new RangeError("Index out of range")}function D(n,t,e,r,a){return a||I(n,0,e,4),i.write(n,t,e,r,23,4),e+4}function N(n,t,e,r,a){return a||I(n,0,e,8),i.write(n,t,e,r,52,8),e+8}s.prototype.slice=function(n,t){var e,r=this.length;if((n=~~n)<0?(n+=r)<0&&(n=0):n>r&&(n=r),(t=void 0===t?r:~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),t0&&(i*=256);)r+=this[n+--t]*i;return r},s.prototype.readUInt8=function(n,t){return t||j(n,1,this.length),this[n]},s.prototype.readUInt16LE=function(n,t){return t||j(n,2,this.length),this[n]|this[n+1]<<8},s.prototype.readUInt16BE=function(n,t){return t||j(n,2,this.length),this[n]<<8|this[n+1]},s.prototype.readUInt32LE=function(n,t){return t||j(n,4,this.length),(this[n]|this[n+1]<<8|this[n+2]<<16)+16777216*this[n+3]},s.prototype.readUInt32BE=function(n,t){return t||j(n,4,this.length),16777216*this[n]+(this[n+1]<<16|this[n+2]<<8|this[n+3])},s.prototype.readIntLE=function(n,t,e){n|=0,t|=0,e||j(n,t,this.length);for(var r=this[n],i=1,a=0;++a=(i*=128)&&(r-=Math.pow(2,8*t)),r},s.prototype.readIntBE=function(n,t,e){n|=0,t|=0,e||j(n,t,this.length);for(var r=t,i=1,a=this[n+--r];r>0&&(i*=256);)a+=this[n+--r]*i;return a>=(i*=128)&&(a-=Math.pow(2,8*t)),a},s.prototype.readInt8=function(n,t){return t||j(n,1,this.length),128&this[n]?-1*(255-this[n]+1):this[n]},s.prototype.readInt16LE=function(n,t){t||j(n,2,this.length);var e=this[n]|this[n+1]<<8;return 32768&e?4294901760|e:e},s.prototype.readInt16BE=function(n,t){t||j(n,2,this.length);var e=this[n+1]|this[n]<<8;return 32768&e?4294901760|e:e},s.prototype.readInt32LE=function(n,t){return t||j(n,4,this.length),this[n]|this[n+1]<<8|this[n+2]<<16|this[n+3]<<24},s.prototype.readInt32BE=function(n,t){return t||j(n,4,this.length),this[n]<<24|this[n+1]<<16|this[n+2]<<8|this[n+3]},s.prototype.readFloatLE=function(n,t){return t||j(n,4,this.length),i.read(this,n,!0,23,4)},s.prototype.readFloatBE=function(n,t){return t||j(n,4,this.length),i.read(this,n,!1,23,4)},s.prototype.readDoubleLE=function(n,t){return t||j(n,8,this.length),i.read(this,n,!0,52,8)},s.prototype.readDoubleBE=function(n,t){return t||j(n,8,this.length),i.read(this,n,!1,52,8)},s.prototype.writeUIntLE=function(n,t,e,r){(n=+n,t|=0,e|=0,r)||z(this,n,t,e,Math.pow(2,8*e)-1,0);var i=1,a=0;for(this[t]=255&n;++a=0&&(a*=256);)this[t+i]=n/a&255;return t+e},s.prototype.writeUInt8=function(n,t,e){return n=+n,t|=0,e||z(this,n,t,1,255,0),s.TYPED_ARRAY_SUPPORT||(n=Math.floor(n)),this[t]=255&n,t+1},s.prototype.writeUInt16LE=function(n,t,e){return n=+n,t|=0,e||z(this,n,t,2,65535,0),s.TYPED_ARRAY_SUPPORT?(this[t]=255&n,this[t+1]=n>>>8):P(this,n,t,!0),t+2},s.prototype.writeUInt16BE=function(n,t,e){return n=+n,t|=0,e||z(this,n,t,2,65535,0),s.TYPED_ARRAY_SUPPORT?(this[t]=n>>>8,this[t+1]=255&n):P(this,n,t,!1),t+2},s.prototype.writeUInt32LE=function(n,t,e){return n=+n,t|=0,e||z(this,n,t,4,4294967295,0),s.TYPED_ARRAY_SUPPORT?(this[t+3]=n>>>24,this[t+2]=n>>>16,this[t+1]=n>>>8,this[t]=255&n):R(this,n,t,!0),t+4},s.prototype.writeUInt32BE=function(n,t,e){return n=+n,t|=0,e||z(this,n,t,4,4294967295,0),s.TYPED_ARRAY_SUPPORT?(this[t]=n>>>24,this[t+1]=n>>>16,this[t+2]=n>>>8,this[t+3]=255&n):R(this,n,t,!1),t+4},s.prototype.writeIntLE=function(n,t,e,r){if(n=+n,t|=0,!r){var i=Math.pow(2,8*e-1);z(this,n,t,e,i-1,-i)}var a=0,o=1,l=0;for(this[t]=255&n;++a>0)-l&255;return t+e},s.prototype.writeIntBE=function(n,t,e,r){if(n=+n,t|=0,!r){var i=Math.pow(2,8*e-1);z(this,n,t,e,i-1,-i)}var a=e-1,o=1,l=0;for(this[t+a]=255&n;--a>=0&&(o*=256);)n<0&&0===l&&0!==this[t+a+1]&&(l=1),this[t+a]=(n/o>>0)-l&255;return t+e},s.prototype.writeInt8=function(n,t,e){return n=+n,t|=0,e||z(this,n,t,1,127,-128),s.TYPED_ARRAY_SUPPORT||(n=Math.floor(n)),n<0&&(n=255+n+1),this[t]=255&n,t+1},s.prototype.writeInt16LE=function(n,t,e){return n=+n,t|=0,e||z(this,n,t,2,32767,-32768),s.TYPED_ARRAY_SUPPORT?(this[t]=255&n,this[t+1]=n>>>8):P(this,n,t,!0),t+2},s.prototype.writeInt16BE=function(n,t,e){return n=+n,t|=0,e||z(this,n,t,2,32767,-32768),s.TYPED_ARRAY_SUPPORT?(this[t]=n>>>8,this[t+1]=255&n):P(this,n,t,!1),t+2},s.prototype.writeInt32LE=function(n,t,e){return n=+n,t|=0,e||z(this,n,t,4,2147483647,-2147483648),s.TYPED_ARRAY_SUPPORT?(this[t]=255&n,this[t+1]=n>>>8,this[t+2]=n>>>16,this[t+3]=n>>>24):R(this,n,t,!0),t+4},s.prototype.writeInt32BE=function(n,t,e){return n=+n,t|=0,e||z(this,n,t,4,2147483647,-2147483648),n<0&&(n=4294967295+n+1),s.TYPED_ARRAY_SUPPORT?(this[t]=n>>>24,this[t+1]=n>>>16,this[t+2]=n>>>8,this[t+3]=255&n):R(this,n,t,!1),t+4},s.prototype.writeFloatLE=function(n,t,e){return D(this,n,t,!0,e)},s.prototype.writeFloatBE=function(n,t,e){return D(this,n,t,!1,e)},s.prototype.writeDoubleLE=function(n,t,e){return N(this,n,t,!0,e)},s.prototype.writeDoubleBE=function(n,t,e){return N(this,n,t,!1,e)},s.prototype.copy=function(n,t,e,r){if(e||(e=0),r||0===r||(r=this.length),t>=n.length&&(t=n.length),t||(t=0),r>0&&r=this.length)throw new RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),n.length-t=0;--i)n[i+t]=this[i+e];else if(a<1e3||!s.TYPED_ARRAY_SUPPORT)for(i=0;i>>=0,e=void 0===e?this.length:e>>>0,n||(n=0),"number"==typeof n)for(a=t;a55295&&e<57344){if(!i){if(e>56319){(t-=3)>-1&&a.push(239,191,189);continue}if(o+1===r){(t-=3)>-1&&a.push(239,191,189);continue}i=e;continue}if(e<56320){(t-=3)>-1&&a.push(239,191,189),i=e;continue}e=65536+(i-55296<<10|e-56320)}else i&&(t-=3)>-1&&a.push(239,191,189);if(i=null,e<128){if((t-=1)<0)break;a.push(e)}else if(e<2048){if((t-=2)<0)break;a.push(e>>6|192,63&e|128)}else if(e<65536){if((t-=3)<0)break;a.push(e>>12|224,e>>6&63|128,63&e|128)}else{if(!(e<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;a.push(e>>18|240,e>>12&63|128,e>>6&63|128,63&e|128)}}return a}function q(n){return r.toByteArray(function(n){if((n=function(n){return n.trim?n.trim():n.replace(/^\s+|\s+$/g,"")}(n).replace(B,"")).length<2)return"";for(;n.length%4!=0;)n+="=";return n}(n))}function F(n,t,e,r){for(var i=0;i=t.length||i>=n.length);++i)t[i+e]=n[i];return i}}).call(this,e(12))},function(n,t,e){"use strict";e.d(t,"a",(function(){return o}));var r=e(172);var i=e(173),a=e(174);function o(n,t){return Object(r.a)(n)||function(n,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(n)){var e=[],r=!0,i=!1,a=void 0;try{for(var o,l=n[Symbol.iterator]();!(r=(o=l.next()).done)&&(e.push(o.value),!t||e.length!==t);r=!0);}catch(n){i=!0,a=n}finally{try{r||null==l.return||l.return()}finally{if(i)throw a}}return e}}(n,t)||Object(i.a)(n,t)||Object(a.a)()}},function(n,t){var e;e=function(){return this}();try{e=e||new Function("return this")()}catch(n){"object"==typeof window&&(e=window)}n.exports=e},function(n,t,e){"use strict";function r(n,t){n.prototype=Object.create(t.prototype),n.prototype.constructor=n,n.__proto__=t}e.d(t,"a",(function(){return r}))},function(n,t){function e(n,t){if(!n)throw new Error(t||"Assertion failed")}n.exports=e,e.equal=function(n,t,e){if(n!=t)throw new Error(e||"Assertion failed: "+n+" != "+t)}},function(n,t,e){"use strict";var r=t,i=e(29),a=e(14),o=e(149);r.assert=a,r.toArray=o.toArray,r.zero2=o.zero2,r.toHex=o.toHex,r.encode=o.encode,r.getNAF=function(n,t,e){var r=new Array(Math.max(n.bitLength(),e)+1);r.fill(0);for(var i=1<(i>>1)-1?(i>>1)-s:s,a.isubn(l)):l=0,r[o]=l,a.iushrn(1)}return r},r.getJSF=function(n,t){var e=[[],[]];n=n.clone(),t=t.clone();for(var r=0,i=0;n.cmpn(-r)>0||t.cmpn(-i)>0;){var a,o,l,s=n.andln(3)+r&3,u=t.andln(3)+i&3;if(3===s&&(s=-1),3===u&&(u=-1),0==(1&s))a=0;else a=3!==(l=n.andln(7)+r&7)&&5!==l||2!==u?s:-s;if(e[0].push(a),0==(1&u))o=0;else o=3!==(l=t.andln(7)+i&7)&&5!==l||2!==s?u:-u;e[1].push(o),2*r===a+1&&(r=1-r),2*i===o+1&&(i=1-i),n.iushrn(1),t.iushrn(1)}return e},r.cachedProperty=function(n,t,e){var r="_"+t;n.prototype[t]=function(){return void 0!==this[r]?this[r]:this[r]=e.call(this)}},r.parseBytes=function(n){return"string"==typeof n?r.toArray(n,"hex"):n},r.intFromLE=function(n){return new i(n,"hex","le")}},function(n,t){n.exports=function(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function")}},,function(n,t,e){"use strict";t.a=function(n,t){for(var e=Object.assign({},n),r=0;r=n.length)&&56320==(64512&n.charCodeAt(t+1)))}function o(n){return(n>>>24|n>>>8&65280|n<<8&16711680|(255&n)<<24)>>>0}function l(n){return 1===n.length?"0"+n:n}function s(n){return 7===n.length?"0"+n:6===n.length?"00"+n:5===n.length?"000"+n:4===n.length?"0000"+n:3===n.length?"00000"+n:2===n.length?"000000"+n:1===n.length?"0000000"+n:n}t.inherits=i,t.toArray=function(n,t){if(Array.isArray(n))return n.slice();if(!n)return[];var e=[];if("string"==typeof n)if(t){if("hex"===t)for((n=n.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(n="0"+n),i=0;i>6|192,e[r++]=63&o|128):a(n,i)?(o=65536+((1023&o)<<10)+(1023&n.charCodeAt(++i)),e[r++]=o>>18|240,e[r++]=o>>12&63|128,e[r++]=o>>6&63|128,e[r++]=63&o|128):(e[r++]=o>>12|224,e[r++]=o>>6&63|128,e[r++]=63&o|128)}else for(i=0;i>>0}return o},t.split32=function(n,t){for(var e=new Array(4*n.length),r=0,i=0;r>>24,e[i+1]=a>>>16&255,e[i+2]=a>>>8&255,e[i+3]=255&a):(e[i+3]=a>>>24,e[i+2]=a>>>16&255,e[i+1]=a>>>8&255,e[i]=255&a)}return e},t.rotr32=function(n,t){return n>>>t|n<<32-t},t.rotl32=function(n,t){return n<>>32-t},t.sum32=function(n,t){return n+t>>>0},t.sum32_3=function(n,t,e){return n+t+e>>>0},t.sum32_4=function(n,t,e,r){return n+t+e+r>>>0},t.sum32_5=function(n,t,e,r,i){return n+t+e+r+i>>>0},t.sum64=function(n,t,e,r){var i=n[t],a=r+n[t+1]>>>0,o=(a>>0,n[t+1]=a},t.sum64_hi=function(n,t,e,r){return(t+r>>>0>>0},t.sum64_lo=function(n,t,e,r){return t+r>>>0},t.sum64_4_hi=function(n,t,e,r,i,a,o,l){var s=0,u=t;return s+=(u=u+r>>>0)>>0)>>0)>>0},t.sum64_4_lo=function(n,t,e,r,i,a,o,l){return t+r+a+l>>>0},t.sum64_5_hi=function(n,t,e,r,i,a,o,l,s,u){var c=0,d=t;return c+=(d=d+r>>>0)>>0)>>0)>>0)>>0},t.sum64_5_lo=function(n,t,e,r,i,a,o,l,s,u){return t+r+a+l+u>>>0},t.rotr64_hi=function(n,t,e){return(t<<32-e|n>>>e)>>>0},t.rotr64_lo=function(n,t,e){return(n<<32-e|t>>>e)>>>0},t.shr64_hi=function(n,t,e){return n>>>e},t.shr64_lo=function(n,t,e){return(n<<32-e|t>>>e)>>>0}},function(n,t){function e(n,t){for(var e=0;e=49&&o<=54?o-49+10:o>=17&&o<=22?o-17+10:15&o}return r}function s(n,t,e,r){for(var i=0,a=Math.min(n.length,e),o=t;o=49?l-49+10:l>=17?l-17+10:l}return i}a.isBN=function(n){return n instanceof a||null!==n&&"object"==typeof n&&n.constructor.wordSize===a.wordSize&&Array.isArray(n.words)},a.max=function(n,t){return n.cmp(t)>0?n:t},a.min=function(n,t){return n.cmp(t)<0?n:t},a.prototype._init=function(n,t,e){if("number"==typeof n)return this._initNumber(n,t,e);if("object"==typeof n)return this._initArray(n,t,e);"hex"===t&&(t=16),r(t===(0|t)&&t>=2&&t<=36);var i=0;"-"===(n=n.toString().replace(/\s+/g,""))[0]&&i++,16===t?this._parseHex(n,i):this._parseBase(n,t,i),"-"===n[0]&&(this.negative=1),this.strip(),"le"===e&&this._initArray(this.toArray(),t,e)},a.prototype._initNumber=function(n,t,e){n<0&&(this.negative=1,n=-n),n<67108864?(this.words=[67108863&n],this.length=1):n<4503599627370496?(this.words=[67108863&n,n/67108864&67108863],this.length=2):(r(n<9007199254740992),this.words=[67108863&n,n/67108864&67108863,1],this.length=3),"le"===e&&this._initArray(this.toArray(),t,e)},a.prototype._initArray=function(n,t,e){if(r("number"==typeof n.length),n.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(n.length/3),this.words=new Array(this.length);for(var i=0;i=0;i-=3)o=n[i]|n[i-1]<<8|n[i-2]<<16,this.words[a]|=o<>>26-l&67108863,(l+=24)>=26&&(l-=26,a++);else if("le"===e)for(i=0,a=0;i>>26-l&67108863,(l+=24)>=26&&(l-=26,a++);return this.strip()},a.prototype._parseHex=function(n,t){this.length=Math.ceil((n.length-t)/6),this.words=new Array(this.length);for(var e=0;e=t;e-=6)i=l(n,e,e+6),this.words[r]|=i<>>26-a&4194303,(a+=24)>=26&&(a-=26,r++);e+6!==t&&(i=l(n,t,e+6),this.words[r]|=i<>>26-a&4194303),this.strip()},a.prototype._parseBase=function(n,t,e){this.words=[0],this.length=1;for(var r=0,i=1;i<=67108863;i*=t)r++;r--,i=i/t|0;for(var a=n.length-e,o=a%r,l=Math.min(a,a-o)+e,u=0,c=e;c1&&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?""};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],d=[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 f(n,t,e){e.negative=t.negative^n.negative;var r=n.length+t.length|0;e.length=r,r=r-1|0;var i=0|n.words[0],a=0|t.words[0],o=i*a,l=67108863&o,s=o/67108864|0;e.words[0]=l;for(var u=1;u>>26,d=67108863&s,f=Math.min(u,t.length-1),h=Math.max(0,u-n.length+1);h<=f;h++){var p=u-h|0;c+=(o=(i=0|n.words[p])*(a=0|t.words[h])+d)/67108864|0,d=67108863&o}e.words[u]=0|d,s=0|c}return 0!==s?e.words[u]=0|s:e.length--,e.strip()}a.prototype.toString=function(n,t){var e;if(t=0|t||1,16===(n=n||10)||"hex"===n){e="";for(var i=0,a=0,o=0;o>>24-i&16777215)||o!==this.length-1?u[6-s.length]+s+e:s+e,(i+=2)>=26&&(i-=26,o--)}for(0!==a&&(e=a.toString(16)+e);e.length%t!=0;)e="0"+e;return 0!==this.negative&&(e="-"+e),e}if(n===(0|n)&&n>=2&&n<=36){var f=c[n],h=d[n];e="";var p=this.clone();for(p.negative=0;!p.isZero();){var m=p.modn(h).toString(n);e=(p=p.idivn(h)).isZero()?m+e:u[f-m.length]+m+e}for(this.isZero()&&(e="0"+e);e.length%t!=0;)e="0"+e;return 0!==this.negative&&(e="-"+e),e}r(!1,"Base should be between 2 and 36")},a.prototype.toNumber=function(){var n=this.words[0];return 2===this.length?n+=67108864*this.words[1]:3===this.length&&1===this.words[2]?n+=4503599627370496+67108864*this.words[1]:this.length>2&&r(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-n:n},a.prototype.toJSON=function(){return this.toString(16)},a.prototype.toBuffer=function(n,t){return r(void 0!==o),this.toArrayLike(o,n,t)},a.prototype.toArray=function(n,t){return this.toArrayLike(Array,n,t)},a.prototype.toArrayLike=function(n,t,e){var i=this.byteLength(),a=e||Math.max(1,i);r(i<=a,"byte array longer than desired length"),r(a>0,"Requested array length <= 0"),this.strip();var o,l,s="le"===t,u=new n(a),c=this.clone();if(s){for(l=0;!c.isZero();l++)o=c.andln(255),c.iushrn(8),u[l]=o;for(;l=4096&&(e+=13,t>>>=13),t>=64&&(e+=7,t>>>=7),t>=8&&(e+=4,t>>>=4),t>=2&&(e+=2,t>>>=2),e+t},a.prototype._zeroBits=function(n){if(0===n)return 26;var t=n,e=0;return 0==(8191&t)&&(e+=13,t>>>=13),0==(127&t)&&(e+=7,t>>>=7),0==(15&t)&&(e+=4,t>>>=4),0==(3&t)&&(e+=2,t>>>=2),0==(1&t)&&e++,e},a.prototype.bitLength=function(){var n=this.words[this.length-1],t=this._countBits(n);return 26*(this.length-1)+t},a.prototype.zeroBits=function(){if(this.isZero())return 0;for(var n=0,t=0;tn.length?this.clone().ior(n):n.clone().ior(this)},a.prototype.uor=function(n){return this.length>n.length?this.clone().iuor(n):n.clone().iuor(this)},a.prototype.iuand=function(n){var t;t=this.length>n.length?n:this;for(var e=0;en.length?this.clone().iand(n):n.clone().iand(this)},a.prototype.uand=function(n){return this.length>n.length?this.clone().iuand(n):n.clone().iuand(this)},a.prototype.iuxor=function(n){var t,e;this.length>n.length?(t=this,e=n):(t=n,e=this);for(var r=0;rn.length?this.clone().ixor(n):n.clone().ixor(this)},a.prototype.uxor=function(n){return this.length>n.length?this.clone().iuxor(n):n.clone().iuxor(this)},a.prototype.inotn=function(n){r("number"==typeof n&&n>=0);var t=0|Math.ceil(n/26),e=n%26;this._expand(t),e>0&&t--;for(var i=0;i0&&(this.words[i]=~this.words[i]&67108863>>26-e),this.strip()},a.prototype.notn=function(n){return this.clone().inotn(n)},a.prototype.setn=function(n,t){r("number"==typeof n&&n>=0);var e=n/26|0,i=n%26;return this._expand(e+1),this.words[e]=t?this.words[e]|1<n.length?(e=this,r=n):(e=n,r=this);for(var i=0,a=0;a>>26;for(;0!==i&&a>>26;if(this.length=e.length,0!==i)this.words[this.length]=i,this.length++;else if(e!==this)for(;an.length?this.clone().iadd(n):n.clone().iadd(this)},a.prototype.isub=function(n){if(0!==n.negative){n.negative=0;var t=this.iadd(n);return n.negative=1,t._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(n),this.negative=1,this._normSign();var e,r,i=this.cmp(n);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;i>0?(e=this,r=n):(e=n,r=this);for(var a=0,o=0;o>26,this.words[o]=67108863&t;for(;0!==a&&o>26,this.words[o]=67108863&t;if(0===a&&o>>13,h=0|o[1],p=8191&h,m=h>>>13,g=0|o[2],b=8191&g,v=g>>>13,y=0|o[3],w=8191&y,x=y>>>13,k=0|o[4],M=8191&k,_=k>>>13,S=0|o[5],E=8191&S,O=S>>>13,T=0|o[6],A=8191&T,C=T>>>13,j=0|o[7],z=8191&j,P=j>>>13,R=0|o[8],I=8191&R,D=R>>>13,N=0|o[9],B=8191&N,L=N>>>13,U=0|l[0],q=8191&U,F=U>>>13,H=0|l[1],W=8191&H,Y=H>>>13,Z=0|l[2],V=8191&Z,$=Z>>>13,K=0|l[3],X=8191&K,G=K>>>13,Q=0|l[4],J=8191&Q,nn=Q>>>13,tn=0|l[5],en=8191&tn,rn=tn>>>13,an=0|l[6],on=8191&an,ln=an>>>13,sn=0|l[7],un=8191&sn,cn=sn>>>13,dn=0|l[8],fn=8191&dn,hn=dn>>>13,pn=0|l[9],mn=8191&pn,gn=pn>>>13;e.negative=n.negative^t.negative,e.length=19;var bn=(u+(r=Math.imul(d,q))|0)+((8191&(i=(i=Math.imul(d,F))+Math.imul(f,q)|0))<<13)|0;u=((a=Math.imul(f,F))+(i>>>13)|0)+(bn>>>26)|0,bn&=67108863,r=Math.imul(p,q),i=(i=Math.imul(p,F))+Math.imul(m,q)|0,a=Math.imul(m,F);var vn=(u+(r=r+Math.imul(d,W)|0)|0)+((8191&(i=(i=i+Math.imul(d,Y)|0)+Math.imul(f,W)|0))<<13)|0;u=((a=a+Math.imul(f,Y)|0)+(i>>>13)|0)+(vn>>>26)|0,vn&=67108863,r=Math.imul(b,q),i=(i=Math.imul(b,F))+Math.imul(v,q)|0,a=Math.imul(v,F),r=r+Math.imul(p,W)|0,i=(i=i+Math.imul(p,Y)|0)+Math.imul(m,W)|0,a=a+Math.imul(m,Y)|0;var yn=(u+(r=r+Math.imul(d,V)|0)|0)+((8191&(i=(i=i+Math.imul(d,$)|0)+Math.imul(f,V)|0))<<13)|0;u=((a=a+Math.imul(f,$)|0)+(i>>>13)|0)+(yn>>>26)|0,yn&=67108863,r=Math.imul(w,q),i=(i=Math.imul(w,F))+Math.imul(x,q)|0,a=Math.imul(x,F),r=r+Math.imul(b,W)|0,i=(i=i+Math.imul(b,Y)|0)+Math.imul(v,W)|0,a=a+Math.imul(v,Y)|0,r=r+Math.imul(p,V)|0,i=(i=i+Math.imul(p,$)|0)+Math.imul(m,V)|0,a=a+Math.imul(m,$)|0;var wn=(u+(r=r+Math.imul(d,X)|0)|0)+((8191&(i=(i=i+Math.imul(d,G)|0)+Math.imul(f,X)|0))<<13)|0;u=((a=a+Math.imul(f,G)|0)+(i>>>13)|0)+(wn>>>26)|0,wn&=67108863,r=Math.imul(M,q),i=(i=Math.imul(M,F))+Math.imul(_,q)|0,a=Math.imul(_,F),r=r+Math.imul(w,W)|0,i=(i=i+Math.imul(w,Y)|0)+Math.imul(x,W)|0,a=a+Math.imul(x,Y)|0,r=r+Math.imul(b,V)|0,i=(i=i+Math.imul(b,$)|0)+Math.imul(v,V)|0,a=a+Math.imul(v,$)|0,r=r+Math.imul(p,X)|0,i=(i=i+Math.imul(p,G)|0)+Math.imul(m,X)|0,a=a+Math.imul(m,G)|0;var xn=(u+(r=r+Math.imul(d,J)|0)|0)+((8191&(i=(i=i+Math.imul(d,nn)|0)+Math.imul(f,J)|0))<<13)|0;u=((a=a+Math.imul(f,nn)|0)+(i>>>13)|0)+(xn>>>26)|0,xn&=67108863,r=Math.imul(E,q),i=(i=Math.imul(E,F))+Math.imul(O,q)|0,a=Math.imul(O,F),r=r+Math.imul(M,W)|0,i=(i=i+Math.imul(M,Y)|0)+Math.imul(_,W)|0,a=a+Math.imul(_,Y)|0,r=r+Math.imul(w,V)|0,i=(i=i+Math.imul(w,$)|0)+Math.imul(x,V)|0,a=a+Math.imul(x,$)|0,r=r+Math.imul(b,X)|0,i=(i=i+Math.imul(b,G)|0)+Math.imul(v,X)|0,a=a+Math.imul(v,G)|0,r=r+Math.imul(p,J)|0,i=(i=i+Math.imul(p,nn)|0)+Math.imul(m,J)|0,a=a+Math.imul(m,nn)|0;var kn=(u+(r=r+Math.imul(d,en)|0)|0)+((8191&(i=(i=i+Math.imul(d,rn)|0)+Math.imul(f,en)|0))<<13)|0;u=((a=a+Math.imul(f,rn)|0)+(i>>>13)|0)+(kn>>>26)|0,kn&=67108863,r=Math.imul(A,q),i=(i=Math.imul(A,F))+Math.imul(C,q)|0,a=Math.imul(C,F),r=r+Math.imul(E,W)|0,i=(i=i+Math.imul(E,Y)|0)+Math.imul(O,W)|0,a=a+Math.imul(O,Y)|0,r=r+Math.imul(M,V)|0,i=(i=i+Math.imul(M,$)|0)+Math.imul(_,V)|0,a=a+Math.imul(_,$)|0,r=r+Math.imul(w,X)|0,i=(i=i+Math.imul(w,G)|0)+Math.imul(x,X)|0,a=a+Math.imul(x,G)|0,r=r+Math.imul(b,J)|0,i=(i=i+Math.imul(b,nn)|0)+Math.imul(v,J)|0,a=a+Math.imul(v,nn)|0,r=r+Math.imul(p,en)|0,i=(i=i+Math.imul(p,rn)|0)+Math.imul(m,en)|0,a=a+Math.imul(m,rn)|0;var Mn=(u+(r=r+Math.imul(d,on)|0)|0)+((8191&(i=(i=i+Math.imul(d,ln)|0)+Math.imul(f,on)|0))<<13)|0;u=((a=a+Math.imul(f,ln)|0)+(i>>>13)|0)+(Mn>>>26)|0,Mn&=67108863,r=Math.imul(z,q),i=(i=Math.imul(z,F))+Math.imul(P,q)|0,a=Math.imul(P,F),r=r+Math.imul(A,W)|0,i=(i=i+Math.imul(A,Y)|0)+Math.imul(C,W)|0,a=a+Math.imul(C,Y)|0,r=r+Math.imul(E,V)|0,i=(i=i+Math.imul(E,$)|0)+Math.imul(O,V)|0,a=a+Math.imul(O,$)|0,r=r+Math.imul(M,X)|0,i=(i=i+Math.imul(M,G)|0)+Math.imul(_,X)|0,a=a+Math.imul(_,G)|0,r=r+Math.imul(w,J)|0,i=(i=i+Math.imul(w,nn)|0)+Math.imul(x,J)|0,a=a+Math.imul(x,nn)|0,r=r+Math.imul(b,en)|0,i=(i=i+Math.imul(b,rn)|0)+Math.imul(v,en)|0,a=a+Math.imul(v,rn)|0,r=r+Math.imul(p,on)|0,i=(i=i+Math.imul(p,ln)|0)+Math.imul(m,on)|0,a=a+Math.imul(m,ln)|0;var _n=(u+(r=r+Math.imul(d,un)|0)|0)+((8191&(i=(i=i+Math.imul(d,cn)|0)+Math.imul(f,un)|0))<<13)|0;u=((a=a+Math.imul(f,cn)|0)+(i>>>13)|0)+(_n>>>26)|0,_n&=67108863,r=Math.imul(I,q),i=(i=Math.imul(I,F))+Math.imul(D,q)|0,a=Math.imul(D,F),r=r+Math.imul(z,W)|0,i=(i=i+Math.imul(z,Y)|0)+Math.imul(P,W)|0,a=a+Math.imul(P,Y)|0,r=r+Math.imul(A,V)|0,i=(i=i+Math.imul(A,$)|0)+Math.imul(C,V)|0,a=a+Math.imul(C,$)|0,r=r+Math.imul(E,X)|0,i=(i=i+Math.imul(E,G)|0)+Math.imul(O,X)|0,a=a+Math.imul(O,G)|0,r=r+Math.imul(M,J)|0,i=(i=i+Math.imul(M,nn)|0)+Math.imul(_,J)|0,a=a+Math.imul(_,nn)|0,r=r+Math.imul(w,en)|0,i=(i=i+Math.imul(w,rn)|0)+Math.imul(x,en)|0,a=a+Math.imul(x,rn)|0,r=r+Math.imul(b,on)|0,i=(i=i+Math.imul(b,ln)|0)+Math.imul(v,on)|0,a=a+Math.imul(v,ln)|0,r=r+Math.imul(p,un)|0,i=(i=i+Math.imul(p,cn)|0)+Math.imul(m,un)|0,a=a+Math.imul(m,cn)|0;var Sn=(u+(r=r+Math.imul(d,fn)|0)|0)+((8191&(i=(i=i+Math.imul(d,hn)|0)+Math.imul(f,fn)|0))<<13)|0;u=((a=a+Math.imul(f,hn)|0)+(i>>>13)|0)+(Sn>>>26)|0,Sn&=67108863,r=Math.imul(B,q),i=(i=Math.imul(B,F))+Math.imul(L,q)|0,a=Math.imul(L,F),r=r+Math.imul(I,W)|0,i=(i=i+Math.imul(I,Y)|0)+Math.imul(D,W)|0,a=a+Math.imul(D,Y)|0,r=r+Math.imul(z,V)|0,i=(i=i+Math.imul(z,$)|0)+Math.imul(P,V)|0,a=a+Math.imul(P,$)|0,r=r+Math.imul(A,X)|0,i=(i=i+Math.imul(A,G)|0)+Math.imul(C,X)|0,a=a+Math.imul(C,G)|0,r=r+Math.imul(E,J)|0,i=(i=i+Math.imul(E,nn)|0)+Math.imul(O,J)|0,a=a+Math.imul(O,nn)|0,r=r+Math.imul(M,en)|0,i=(i=i+Math.imul(M,rn)|0)+Math.imul(_,en)|0,a=a+Math.imul(_,rn)|0,r=r+Math.imul(w,on)|0,i=(i=i+Math.imul(w,ln)|0)+Math.imul(x,on)|0,a=a+Math.imul(x,ln)|0,r=r+Math.imul(b,un)|0,i=(i=i+Math.imul(b,cn)|0)+Math.imul(v,un)|0,a=a+Math.imul(v,cn)|0,r=r+Math.imul(p,fn)|0,i=(i=i+Math.imul(p,hn)|0)+Math.imul(m,fn)|0,a=a+Math.imul(m,hn)|0;var En=(u+(r=r+Math.imul(d,mn)|0)|0)+((8191&(i=(i=i+Math.imul(d,gn)|0)+Math.imul(f,mn)|0))<<13)|0;u=((a=a+Math.imul(f,gn)|0)+(i>>>13)|0)+(En>>>26)|0,En&=67108863,r=Math.imul(B,W),i=(i=Math.imul(B,Y))+Math.imul(L,W)|0,a=Math.imul(L,Y),r=r+Math.imul(I,V)|0,i=(i=i+Math.imul(I,$)|0)+Math.imul(D,V)|0,a=a+Math.imul(D,$)|0,r=r+Math.imul(z,X)|0,i=(i=i+Math.imul(z,G)|0)+Math.imul(P,X)|0,a=a+Math.imul(P,G)|0,r=r+Math.imul(A,J)|0,i=(i=i+Math.imul(A,nn)|0)+Math.imul(C,J)|0,a=a+Math.imul(C,nn)|0,r=r+Math.imul(E,en)|0,i=(i=i+Math.imul(E,rn)|0)+Math.imul(O,en)|0,a=a+Math.imul(O,rn)|0,r=r+Math.imul(M,on)|0,i=(i=i+Math.imul(M,ln)|0)+Math.imul(_,on)|0,a=a+Math.imul(_,ln)|0,r=r+Math.imul(w,un)|0,i=(i=i+Math.imul(w,cn)|0)+Math.imul(x,un)|0,a=a+Math.imul(x,cn)|0,r=r+Math.imul(b,fn)|0,i=(i=i+Math.imul(b,hn)|0)+Math.imul(v,fn)|0,a=a+Math.imul(v,hn)|0;var On=(u+(r=r+Math.imul(p,mn)|0)|0)+((8191&(i=(i=i+Math.imul(p,gn)|0)+Math.imul(m,mn)|0))<<13)|0;u=((a=a+Math.imul(m,gn)|0)+(i>>>13)|0)+(On>>>26)|0,On&=67108863,r=Math.imul(B,V),i=(i=Math.imul(B,$))+Math.imul(L,V)|0,a=Math.imul(L,$),r=r+Math.imul(I,X)|0,i=(i=i+Math.imul(I,G)|0)+Math.imul(D,X)|0,a=a+Math.imul(D,G)|0,r=r+Math.imul(z,J)|0,i=(i=i+Math.imul(z,nn)|0)+Math.imul(P,J)|0,a=a+Math.imul(P,nn)|0,r=r+Math.imul(A,en)|0,i=(i=i+Math.imul(A,rn)|0)+Math.imul(C,en)|0,a=a+Math.imul(C,rn)|0,r=r+Math.imul(E,on)|0,i=(i=i+Math.imul(E,ln)|0)+Math.imul(O,on)|0,a=a+Math.imul(O,ln)|0,r=r+Math.imul(M,un)|0,i=(i=i+Math.imul(M,cn)|0)+Math.imul(_,un)|0,a=a+Math.imul(_,cn)|0,r=r+Math.imul(w,fn)|0,i=(i=i+Math.imul(w,hn)|0)+Math.imul(x,fn)|0,a=a+Math.imul(x,hn)|0;var Tn=(u+(r=r+Math.imul(b,mn)|0)|0)+((8191&(i=(i=i+Math.imul(b,gn)|0)+Math.imul(v,mn)|0))<<13)|0;u=((a=a+Math.imul(v,gn)|0)+(i>>>13)|0)+(Tn>>>26)|0,Tn&=67108863,r=Math.imul(B,X),i=(i=Math.imul(B,G))+Math.imul(L,X)|0,a=Math.imul(L,G),r=r+Math.imul(I,J)|0,i=(i=i+Math.imul(I,nn)|0)+Math.imul(D,J)|0,a=a+Math.imul(D,nn)|0,r=r+Math.imul(z,en)|0,i=(i=i+Math.imul(z,rn)|0)+Math.imul(P,en)|0,a=a+Math.imul(P,rn)|0,r=r+Math.imul(A,on)|0,i=(i=i+Math.imul(A,ln)|0)+Math.imul(C,on)|0,a=a+Math.imul(C,ln)|0,r=r+Math.imul(E,un)|0,i=(i=i+Math.imul(E,cn)|0)+Math.imul(O,un)|0,a=a+Math.imul(O,cn)|0,r=r+Math.imul(M,fn)|0,i=(i=i+Math.imul(M,hn)|0)+Math.imul(_,fn)|0,a=a+Math.imul(_,hn)|0;var An=(u+(r=r+Math.imul(w,mn)|0)|0)+((8191&(i=(i=i+Math.imul(w,gn)|0)+Math.imul(x,mn)|0))<<13)|0;u=((a=a+Math.imul(x,gn)|0)+(i>>>13)|0)+(An>>>26)|0,An&=67108863,r=Math.imul(B,J),i=(i=Math.imul(B,nn))+Math.imul(L,J)|0,a=Math.imul(L,nn),r=r+Math.imul(I,en)|0,i=(i=i+Math.imul(I,rn)|0)+Math.imul(D,en)|0,a=a+Math.imul(D,rn)|0,r=r+Math.imul(z,on)|0,i=(i=i+Math.imul(z,ln)|0)+Math.imul(P,on)|0,a=a+Math.imul(P,ln)|0,r=r+Math.imul(A,un)|0,i=(i=i+Math.imul(A,cn)|0)+Math.imul(C,un)|0,a=a+Math.imul(C,cn)|0,r=r+Math.imul(E,fn)|0,i=(i=i+Math.imul(E,hn)|0)+Math.imul(O,fn)|0,a=a+Math.imul(O,hn)|0;var Cn=(u+(r=r+Math.imul(M,mn)|0)|0)+((8191&(i=(i=i+Math.imul(M,gn)|0)+Math.imul(_,mn)|0))<<13)|0;u=((a=a+Math.imul(_,gn)|0)+(i>>>13)|0)+(Cn>>>26)|0,Cn&=67108863,r=Math.imul(B,en),i=(i=Math.imul(B,rn))+Math.imul(L,en)|0,a=Math.imul(L,rn),r=r+Math.imul(I,on)|0,i=(i=i+Math.imul(I,ln)|0)+Math.imul(D,on)|0,a=a+Math.imul(D,ln)|0,r=r+Math.imul(z,un)|0,i=(i=i+Math.imul(z,cn)|0)+Math.imul(P,un)|0,a=a+Math.imul(P,cn)|0,r=r+Math.imul(A,fn)|0,i=(i=i+Math.imul(A,hn)|0)+Math.imul(C,fn)|0,a=a+Math.imul(C,hn)|0;var jn=(u+(r=r+Math.imul(E,mn)|0)|0)+((8191&(i=(i=i+Math.imul(E,gn)|0)+Math.imul(O,mn)|0))<<13)|0;u=((a=a+Math.imul(O,gn)|0)+(i>>>13)|0)+(jn>>>26)|0,jn&=67108863,r=Math.imul(B,on),i=(i=Math.imul(B,ln))+Math.imul(L,on)|0,a=Math.imul(L,ln),r=r+Math.imul(I,un)|0,i=(i=i+Math.imul(I,cn)|0)+Math.imul(D,un)|0,a=a+Math.imul(D,cn)|0,r=r+Math.imul(z,fn)|0,i=(i=i+Math.imul(z,hn)|0)+Math.imul(P,fn)|0,a=a+Math.imul(P,hn)|0;var zn=(u+(r=r+Math.imul(A,mn)|0)|0)+((8191&(i=(i=i+Math.imul(A,gn)|0)+Math.imul(C,mn)|0))<<13)|0;u=((a=a+Math.imul(C,gn)|0)+(i>>>13)|0)+(zn>>>26)|0,zn&=67108863,r=Math.imul(B,un),i=(i=Math.imul(B,cn))+Math.imul(L,un)|0,a=Math.imul(L,cn),r=r+Math.imul(I,fn)|0,i=(i=i+Math.imul(I,hn)|0)+Math.imul(D,fn)|0,a=a+Math.imul(D,hn)|0;var Pn=(u+(r=r+Math.imul(z,mn)|0)|0)+((8191&(i=(i=i+Math.imul(z,gn)|0)+Math.imul(P,mn)|0))<<13)|0;u=((a=a+Math.imul(P,gn)|0)+(i>>>13)|0)+(Pn>>>26)|0,Pn&=67108863,r=Math.imul(B,fn),i=(i=Math.imul(B,hn))+Math.imul(L,fn)|0,a=Math.imul(L,hn);var Rn=(u+(r=r+Math.imul(I,mn)|0)|0)+((8191&(i=(i=i+Math.imul(I,gn)|0)+Math.imul(D,mn)|0))<<13)|0;u=((a=a+Math.imul(D,gn)|0)+(i>>>13)|0)+(Rn>>>26)|0,Rn&=67108863;var In=(u+(r=Math.imul(B,mn))|0)+((8191&(i=(i=Math.imul(B,gn))+Math.imul(L,mn)|0))<<13)|0;return u=((a=Math.imul(L,gn))+(i>>>13)|0)+(In>>>26)|0,In&=67108863,s[0]=bn,s[1]=vn,s[2]=yn,s[3]=wn,s[4]=xn,s[5]=kn,s[6]=Mn,s[7]=_n,s[8]=Sn,s[9]=En,s[10]=On,s[11]=Tn,s[12]=An,s[13]=Cn,s[14]=jn,s[15]=zn,s[16]=Pn,s[17]=Rn,s[18]=In,0!==u&&(s[19]=u,e.length++),e};function p(n,t,e){return(new m).mulp(n,t,e)}function m(n,t){this.x=n,this.y=t}Math.imul||(h=f),a.prototype.mulTo=function(n,t){var e=this.length+n.length;return 10===this.length&&10===n.length?h(this,n,t):e<63?f(this,n,t):e<1024?function(n,t,e){e.negative=t.negative^n.negative,e.length=n.length+t.length;for(var r=0,i=0,a=0;a>>26)|0)>>>26,o&=67108863}e.words[a]=l,r=o,o=i}return 0!==r?e.words[a]=r:e.length--,e.strip()}(this,n,t):p(this,n,t)},m.prototype.makeRBT=function(n){for(var t=new Array(n),e=a.prototype._countBits(n)-1,r=0;r>=1;return r},m.prototype.permute=function(n,t,e,r,i,a){for(var o=0;o>>=1)i++;return 1<>>=13,e[2*o+1]=8191&a,a>>>=13;for(o=2*t;o>=26,t+=i/67108864|0,t+=a>>>26,this.words[e]=67108863&a}return 0!==t&&(this.words[e]=t,this.length++),this},a.prototype.muln=function(n){return this.clone().imuln(n)},a.prototype.sqr=function(){return this.mul(this)},a.prototype.isqr=function(){return this.imul(this.clone())},a.prototype.pow=function(n){var t=function(n){for(var t=new Array(n.bitLength()),e=0;e>>i}return t}(n);if(0===t.length)return new a(1);for(var e=this,r=0;r=0);var t,e=n%26,i=(n-e)/26,a=67108863>>>26-e<<26-e;if(0!==e){var o=0;for(t=0;t>>26-e}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=0),i=t?(t-t%26)/26:0;var a=n%26,o=Math.min((n-a)/26,this.length),l=67108863^67108863>>>a<o)for(this.length-=o,u=0;u=0&&(0!==c||u>=i);u--){var d=0|this.words[u];this.words[u]=c<<26-a|d>>>a,c=d&l}return s&&0!==c&&(s.words[s.length++]=c),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},a.prototype.ishrn=function(n,t,e){return r(0===this.negative),this.iushrn(n,t,e)},a.prototype.shln=function(n){return this.clone().ishln(n)},a.prototype.ushln=function(n){return this.clone().iushln(n)},a.prototype.shrn=function(n){return this.clone().ishrn(n)},a.prototype.ushrn=function(n){return this.clone().iushrn(n)},a.prototype.testn=function(n){r("number"==typeof n&&n>=0);var t=n%26,e=(n-t)/26,i=1<=0);var t=n%26,e=(n-t)/26;if(r(0===this.negative,"imaskn works only with positive numbers"),this.length<=e)return this;if(0!==t&&e++,this.length=Math.min(e,this.length),0!==t){var i=67108863^67108863>>>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(n){if(r("number"==typeof n),r(n<67108864),n<0)return this.iaddn(-n);if(0!==this.negative)return this.negative=0,this.iaddn(n),this.negative=1,this;if(this.words[0]-=n,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var t=0;t>26)-(s/67108864|0),this.words[i+e]=67108863&a}for(;i>26,this.words[i+e]=67108863&a;if(0===l)return this.strip();for(r(-1===l),l=0,i=0;i>26,this.words[i]=67108863&a;return this.negative=1,this.strip()},a.prototype._wordDiv=function(n,t){var e=(this.length,n.length),r=this.clone(),i=n,o=0|i.words[i.length-1];0!==(e=26-this._countBits(o))&&(i=i.ushln(e),r.iushln(e),o=0|i.words[i.length-1]);var l,s=r.length-i.length;if("mod"!==t){(l=new a(null)).length=s+1,l.words=new Array(l.length);for(var u=0;u=0;d--){var f=67108864*(0|r.words[i.length+d])+(0|r.words[i.length+d-1]);for(f=Math.min(f/o|0,67108863),r._ishlnsubmul(i,f,d);0!==r.negative;)f--,r.negative=0,r._ishlnsubmul(i,1,d),r.isZero()||(r.negative^=1);l&&(l.words[d]=f)}return l&&l.strip(),r.strip(),"div"!==t&&0!==e&&r.iushrn(e),{div:l||null,mod:r}},a.prototype.divmod=function(n,t,e){return r(!n.isZero()),this.isZero()?{div:new a(0),mod:new a(0)}:0!==this.negative&&0===n.negative?(l=this.neg().divmod(n,t),"mod"!==t&&(i=l.div.neg()),"div"!==t&&(o=l.mod.neg(),e&&0!==o.negative&&o.iadd(n)),{div:i,mod:o}):0===this.negative&&0!==n.negative?(l=this.divmod(n.neg(),t),"mod"!==t&&(i=l.div.neg()),{div:i,mod:l.mod}):0!=(this.negative&n.negative)?(l=this.neg().divmod(n.neg(),t),"div"!==t&&(o=l.mod.neg(),e&&0!==o.negative&&o.isub(n)),{div:l.div,mod:o}):n.length>this.length||this.cmp(n)<0?{div:new a(0),mod:this}:1===n.length?"div"===t?{div:this.divn(n.words[0]),mod:null}:"mod"===t?{div:null,mod:new a(this.modn(n.words[0]))}:{div:this.divn(n.words[0]),mod:new a(this.modn(n.words[0]))}:this._wordDiv(n,t);var i,o,l},a.prototype.div=function(n){return this.divmod(n,"div",!1).div},a.prototype.mod=function(n){return this.divmod(n,"mod",!1).mod},a.prototype.umod=function(n){return this.divmod(n,"mod",!0).mod},a.prototype.divRound=function(n){var t=this.divmod(n);if(t.mod.isZero())return t.div;var e=0!==t.div.negative?t.mod.isub(n):t.mod,r=n.ushrn(1),i=n.andln(1),a=e.cmp(r);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(n){r(n<=67108863);for(var t=(1<<26)%n,e=0,i=this.length-1;i>=0;i--)e=(t*e+(0|this.words[i]))%n;return e},a.prototype.idivn=function(n){r(n<=67108863);for(var t=0,e=this.length-1;e>=0;e--){var i=(0|this.words[e])+67108864*t;this.words[e]=i/n|0,t=i%n}return this.strip()},a.prototype.divn=function(n){return this.clone().idivn(n)},a.prototype.egcd=function(n){r(0===n.negative),r(!n.isZero());var t=this,e=n.clone();t=0!==t.negative?t.umod(n):t.clone();for(var i=new a(1),o=new a(0),l=new a(0),s=new a(1),u=0;t.isEven()&&e.isEven();)t.iushrn(1),e.iushrn(1),++u;for(var c=e.clone(),d=t.clone();!t.isZero();){for(var f=0,h=1;0==(t.words[0]&h)&&f<26;++f,h<<=1);if(f>0)for(t.iushrn(f);f-- >0;)(i.isOdd()||o.isOdd())&&(i.iadd(c),o.isub(d)),i.iushrn(1),o.iushrn(1);for(var p=0,m=1;0==(e.words[0]&m)&&p<26;++p,m<<=1);if(p>0)for(e.iushrn(p);p-- >0;)(l.isOdd()||s.isOdd())&&(l.iadd(c),s.isub(d)),l.iushrn(1),s.iushrn(1);t.cmp(e)>=0?(t.isub(e),i.isub(l),o.isub(s)):(e.isub(t),l.isub(i),s.isub(o))}return{a:l,b:s,gcd:e.iushln(u)}},a.prototype._invmp=function(n){r(0===n.negative),r(!n.isZero());var t=this,e=n.clone();t=0!==t.negative?t.umod(n):t.clone();for(var i,o=new a(1),l=new a(0),s=e.clone();t.cmpn(1)>0&&e.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(s),o.iushrn(1);for(var d=0,f=1;0==(e.words[0]&f)&&d<26;++d,f<<=1);if(d>0)for(e.iushrn(d);d-- >0;)l.isOdd()&&l.iadd(s),l.iushrn(1);t.cmp(e)>=0?(t.isub(e),o.isub(l)):(e.isub(t),l.isub(o))}return(i=0===t.cmpn(1)?o:l).cmpn(0)<0&&i.iadd(n),i},a.prototype.gcd=function(n){if(this.isZero())return n.abs();if(n.isZero())return this.abs();var t=this.clone(),e=n.clone();t.negative=0,e.negative=0;for(var r=0;t.isEven()&&e.isEven();r++)t.iushrn(1),e.iushrn(1);for(;;){for(;t.isEven();)t.iushrn(1);for(;e.isEven();)e.iushrn(1);var i=t.cmp(e);if(i<0){var a=t;t=e,e=a}else if(0===i||0===e.cmpn(1))break;t.isub(e)}return e.iushln(r)},a.prototype.invm=function(n){return this.egcd(n).a.umod(n)},a.prototype.isEven=function(){return 0==(1&this.words[0])},a.prototype.isOdd=function(){return 1==(1&this.words[0])},a.prototype.andln=function(n){return this.words[0]&n},a.prototype.bincn=function(n){r("number"==typeof n);var t=n%26,e=(n-t)/26,i=1<>>26,l&=67108863,this.words[o]=l}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(n){var t,e=n<0;if(0!==this.negative&&!e)return-1;if(0===this.negative&&e)return 1;if(this.strip(),this.length>1)t=1;else{e&&(n=-n),r(n<=67108863,"Number is too big");var i=0|this.words[0];t=i===n?0:in.length)return 1;if(this.length=0;e--){var r=0|this.words[e],i=0|n.words[e];if(r!==i){ri&&(t=1);break}}return t},a.prototype.gtn=function(n){return 1===this.cmpn(n)},a.prototype.gt=function(n){return 1===this.cmp(n)},a.prototype.gten=function(n){return this.cmpn(n)>=0},a.prototype.gte=function(n){return this.cmp(n)>=0},a.prototype.ltn=function(n){return-1===this.cmpn(n)},a.prototype.lt=function(n){return-1===this.cmp(n)},a.prototype.lten=function(n){return this.cmpn(n)<=0},a.prototype.lte=function(n){return this.cmp(n)<=0},a.prototype.eqn=function(n){return 0===this.cmpn(n)},a.prototype.eq=function(n){return 0===this.cmp(n)},a.red=function(n){return new k(n)},a.prototype.toRed=function(n){return r(!this.red,"Already a number in reduction context"),r(0===this.negative,"red works only with positives"),n.convertTo(this)._forceRed(n)},a.prototype.fromRed=function(){return r(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},a.prototype._forceRed=function(n){return this.red=n,this},a.prototype.forceRed=function(n){return r(!this.red,"Already a number in reduction context"),this._forceRed(n)},a.prototype.redAdd=function(n){return r(this.red,"redAdd works only with red numbers"),this.red.add(this,n)},a.prototype.redIAdd=function(n){return r(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,n)},a.prototype.redSub=function(n){return r(this.red,"redSub works only with red numbers"),this.red.sub(this,n)},a.prototype.redISub=function(n){return r(this.red,"redISub works only with red numbers"),this.red.isub(this,n)},a.prototype.redShl=function(n){return r(this.red,"redShl works only with red numbers"),this.red.shl(this,n)},a.prototype.redMul=function(n){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,n),this.red.mul(this,n)},a.prototype.redIMul=function(n){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,n),this.red.imul(this,n)},a.prototype.redSqr=function(){return r(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},a.prototype.redISqr=function(){return r(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},a.prototype.redSqrt=function(){return r(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},a.prototype.redInvm=function(){return r(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},a.prototype.redNeg=function(){return r(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},a.prototype.redPow=function(n){return r(this.red&&!n.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,n)};var g={k256:null,p224:null,p192:null,p25519:null};function b(n,t){this.name=n,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 v(){b.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function y(){b.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function w(){b.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function x(){b.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function k(n){if("string"==typeof n){var t=a._prime(n);this.m=t.p,this.prime=t}else r(n.gtn(1),"modulus must be greater than 1"),this.m=n,this.prime=null}function M(n){k.call(this,n),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)}b.prototype._tmp=function(){var n=new a(null);return n.words=new Array(Math.ceil(this.n/13)),n},b.prototype.ireduce=function(n){var t,e=n;do{this.split(e,this.tmp),t=(e=(e=this.imulK(e)).iadd(this.tmp)).bitLength()}while(t>this.n);var r=t0?e.isub(this.p):void 0!==e.strip?e.strip():e._strip(),e},b.prototype.split=function(n,t){n.iushrn(this.n,0,t)},b.prototype.imulK=function(n){return n.imul(this.k)},i(v,b),v.prototype.split=function(n,t){for(var e=Math.min(n.length,9),r=0;r>>22,i=a}i>>>=22,n.words[r-10]=i,0===i&&n.length>10?n.length-=10:n.length-=9},v.prototype.imulK=function(n){n.words[n.length]=0,n.words[n.length+1]=0,n.length+=2;for(var t=0,e=0;e>>=26,n.words[e]=i,t=r}return 0!==t&&(n.words[n.length++]=t),n},a._prime=function(n){if(g[n])return g[n];var t;if("k256"===n)t=new v;else if("p224"===n)t=new y;else if("p192"===n)t=new w;else{if("p25519"!==n)throw new Error("Unknown prime "+n);t=new x}return g[n]=t,t},k.prototype._verify1=function(n){r(0===n.negative,"red works only with positives"),r(n.red,"red works only with red numbers")},k.prototype._verify2=function(n,t){r(0==(n.negative|t.negative),"red works only with positives"),r(n.red&&n.red===t.red,"red works only with red numbers")},k.prototype.imod=function(n){return this.prime?this.prime.ireduce(n)._forceRed(this):n.umod(this.m)._forceRed(this)},k.prototype.neg=function(n){return n.isZero()?n.clone():this.m.sub(n)._forceRed(this)},k.prototype.add=function(n,t){this._verify2(n,t);var e=n.add(t);return e.cmp(this.m)>=0&&e.isub(this.m),e._forceRed(this)},k.prototype.iadd=function(n,t){this._verify2(n,t);var e=n.iadd(t);return e.cmp(this.m)>=0&&e.isub(this.m),e},k.prototype.sub=function(n,t){this._verify2(n,t);var e=n.sub(t);return e.cmpn(0)<0&&e.iadd(this.m),e._forceRed(this)},k.prototype.isub=function(n,t){this._verify2(n,t);var e=n.isub(t);return e.cmpn(0)<0&&e.iadd(this.m),e},k.prototype.shl=function(n,t){return this._verify1(n),this.imod(n.ushln(t))},k.prototype.imul=function(n,t){return this._verify2(n,t),this.imod(n.imul(t))},k.prototype.mul=function(n,t){return this._verify2(n,t),this.imod(n.mul(t))},k.prototype.isqr=function(n){return this.imul(n,n.clone())},k.prototype.sqr=function(n){return this.mul(n,n)},k.prototype.sqrt=function(n){if(n.isZero())return n.clone();var t=this.m.andln(3);if(r(t%2==1),3===t){var e=this.m.add(new a(1)).iushrn(2);return this.pow(n,e)}for(var i=this.m.subn(1),o=0;!i.isZero()&&0===i.andln(1);)o++,i.iushrn(1);r(!i.isZero());var l=new a(1).toRed(this),s=l.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(s);)c.redIAdd(s);for(var d=this.pow(c,i),f=this.pow(n,i.addn(1).iushrn(1)),h=this.pow(n,i),p=o;0!==h.cmp(l);){for(var m=h,g=0;0!==m.cmp(l);g++)m=m.redSqr();r(g=0;r--){for(var u=t.words[r],c=s-1;c>=0;c--){var d=u>>c&1;i!==e[0]&&(i=this.sqr(i)),0!==d||0!==o?(o<<=1,o|=d,(4===++l||0===r&&0===c)&&(i=this.mul(i,e[o]),l=0,o=0)):l=0}s=26}return i},k.prototype.convertTo=function(n){var t=n.umod(this.m);return t===n?t.clone():t},k.prototype.convertFrom=function(n){var t=n.clone();return t.red=null,t},a.mont=function(n){return new M(n)},i(M,k),M.prototype.convertTo=function(n){return this.imod(n.ushln(this.shift))},M.prototype.convertFrom=function(n){var t=this.imod(n.mul(this.rinv));return t.red=null,t},M.prototype.imul=function(n,t){if(n.isZero()||t.isZero())return n.words[0]=0,n.length=1,n;var e=n.imul(t),r=e.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=e.isub(r).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)},M.prototype.mul=function(n,t){if(n.isZero()||t.isZero())return new a(0)._forceRed(this);var e=n.mul(t),r=e.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=e.isub(r).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)},M.prototype.invm=function(n){return this.imod(n._invmp(this.m).mul(this.r2))._forceRed(this)}}(n,this)}).call(this,e(27)(n))},function(n,t,e){"use strict";function r(n){return(r=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)})(n)}e.d(t,"a",(function(){return r}))},function(n,t,e){"use strict";function r(n,t){if(null==n)return{};var e,r,i={},a=Object.keys(n);for(r=0;r=0||(i[e]=n[e]);return i}e.d(t,"a",(function(){return r}))},function(n,t,e){var r=e(2).Buffer,i=e(60).Transform,a=e(52).StringDecoder;function o(n){i.call(this),this.hashMode="string"==typeof n,this.hashMode?this[n]=this._finalOrDigest:this.final=this._finalOrDigest,this._final&&(this.__final=this._final,this._final=null),this._decoder=null,this._encoding=null}e(3)(o,i),o.prototype.update=function(n,t,e){"string"==typeof n&&(n=r.from(n,t));var i=this._update(n);return this.hashMode?this:(e&&(i=this._toString(i,e)),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(n,t,e){var r;try{this.hashMode?this._update(n):this.push(this._update(n))}catch(n){r=n}finally{e(r)}},o.prototype._flush=function(n){var t;try{this.push(this.__final())}catch(n){t=n}n(t)},o.prototype._finalOrDigest=function(n){var t=this.__final()||r.alloc(0);return n&&(t=this._toString(t,n,!0)),t},o.prototype._toString=function(n,t,e){if(this._decoder||(this._decoder=new a(t),this._encoding=t),this._encoding!==t)throw new Error("can't switch encodings");var r=this._decoder.write(n);return e&&(r+=this._decoder.end()),r},n.exports=o},function(n,t,e){"use strict";var r=this&&this.__createBinding||(Object.create?function(n,t,e,r){void 0===r&&(r=e),Object.defineProperty(n,r,{enumerable:!0,get:function(){return t[e]}})}:function(n,t,e,r){void 0===r&&(r=e),n[r]=t[e]}),i=this&&this.__exportStar||function(n,t){for(var e in n)"default"===e||t.hasOwnProperty(e)||r(t,n,e)};Object.defineProperty(t,"__esModule",{value:!0}),i(e(220),t),i(e(227),t),i(e(249),t),i(e(254),t),i(e(267),t),i(e(274),t),i(e(300),t),i(e(321),t),i(e(328),t),i(e(336),t),i(e(350),t),i(e(110),t),i(e(359),t),i(e(369),t),i(e(377),t),i(e(385),t),i(e(390),t),i(e(398),t)},function(n,t,e){"use strict";var r={};function i(n,t){0}function a(n,t,e){t||r[e]||(n(!1,e),r[e]=!0)}t.a=function(n,t){a(i,n,t)}},function(n,t,e){var r=e(45);function i(){if("function"!=typeof WeakMap)return null;var n=new WeakMap;return i=function(){return n},n}n.exports=function(n){if(n&&n.__esModule)return n;if(null===n||"object"!==r(n)&&"function"!=typeof n)return{default:n};var t=i();if(t&&t.has(n))return t.get(n);var e={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in n)if(Object.prototype.hasOwnProperty.call(n,o)){var l=a?Object.getOwnPropertyDescriptor(n,o):null;l&&(l.get||l.set)?Object.defineProperty(e,o,l):e[o]=n[o]}return e.default=n,t&&t.set(n,e),e}},function(n,t,e){"use strict";var r=e(61),i=Object.keys||function(n){var t=[];for(var e in n)t.push(e);return t};n.exports=d;var a=Object.create(e(51));a.inherits=e(3);var o=e(115),l=e(79);a.inherits(d,o);for(var s=i(l.prototype),u=0;u=0||Object.prototype.propertyIsEnumerable.call(n,e)&&(a[e]=n[e])}return a}},function(n,t,e){"use strict";(function(t,r){var i=e(2).Buffer,a=t.crypto||t.msCrypto;a&&a.getRandomValues?n.exports=function(n,t){if(n>4294967295)throw new RangeError("requested too many random bytes");var e=i.allocUnsafe(n);if(n>0)if(n>65536)for(var o=0;o2?"one of ".concat(t," ").concat(n.slice(0,e-1).join(", "),", or ")+n[e-1]:2===e?"one of ".concat(t," ").concat(n[0]," or ").concat(n[1]):"of ".concat(t," ").concat(n[0])}return"of ".concat(t," ").concat(String(n))}i("ERR_INVALID_OPT_VALUE",(function(n,t){return'The value "'+t+'" is invalid for option "'+n+'"'}),TypeError),i("ERR_INVALID_ARG_TYPE",(function(n,t,e){var r,i,o,l;if("string"==typeof t&&(i="not ",t.substr(!o||o<0?0:+o,i.length)===i)?(r="must not be",t=t.replace(/^not /,"")):r="must be",function(n,t,e){return(void 0===e||e>n.length)&&(e=n.length),n.substring(e-t.length,e)===t}(n," argument"))l="The ".concat(n," ").concat(r," ").concat(a(t,"type"));else{var s=function(n,t,e){return"number"!=typeof e&&(e=0),!(e+t.length>n.length)&&-1!==n.indexOf(t,e)}(n,".")?"property":"argument";l='The "'.concat(n,'" ').concat(s," ").concat(r," ").concat(a(t,"type"))}return l+=". Received type ".concat(typeof e)}),TypeError),i("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),i("ERR_METHOD_NOT_IMPLEMENTED",(function(n){return"The "+n+" method is not implemented"})),i("ERR_STREAM_PREMATURE_CLOSE","Premature close"),i("ERR_STREAM_DESTROYED",(function(n){return"Cannot call "+n+" after a stream was destroyed"})),i("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),i("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),i("ERR_STREAM_WRITE_AFTER_END","write after end"),i("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),i("ERR_UNKNOWN_ENCODING",(function(n){return"Unknown encoding: "+n}),TypeError),i("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),n.exports.codes=r},function(n,t,e){"use strict";(function(t){var r=Object.keys||function(n){var t=[];for(var e in n)t.push(e);return t};n.exports=u;var i=e(123),a=e(127);e(3)(u,i);for(var o=r(a.prototype),l=0;l=this._finalSize&&(this._update(this._block),this._block.fill(0));var e=8*this._len;if(e<=4294967295)this._block.writeUInt32BE(e,this._blockSize-4);else{var r=(4294967295&e)>>>0,i=(e-r)/4294967296;this._block.writeUInt32BE(i,this._blockSize-8),this._block.writeUInt32BE(r,this._blockSize-4)}this._update(this._block);var a=this._hash();return n?a.toString(n):a},i.prototype._update=function(){throw new Error("_update must be implemented by subclass")},n.exports=i},function(n,t){function e(t){return"function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?n.exports=e=function(n){return typeof n}:n.exports=e=function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},e(t)}n.exports=e},function(n,t,e){"use strict";n.exports=e(207)},function(n,t,e){"use strict";e.d(t,"a",(function(){return a}));var r=e(19),i=e(175);function a(n,t){return!t||"object"!==Object(r.a)(t)&&"function"!=typeof t?Object(i.a)(n):t}},function(n,t,e){"use strict";e.d(t,"a",(function(){return a}));var r=e(30);var i=e(47);function a(n){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(n){return!1}}();return function(){var e,a=Object(r.a)(n);if(t){var o=Object(r.a)(this).constructor;e=Reflect.construct(a,arguments,o)}else e=a.apply(this,arguments);return Object(i.a)(this,e)}}},function(n,t,e){"use strict";var r=e(35),i=e(28);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=i(e(37)),o=i(e(1)),l=i(e(107)),s=r(e(0)),u=i(e(5)),c=i(e(108)),d=e(206),f=e(75);(0,d.setTwoToneColor)("#1890ff");var h=s.forwardRef((function(n,t){var e=n.className,r=n.icon,i=n.spin,d=n.rotate,h=n.tabIndex,p=n.onClick,m=n.twoToneColor,g=(0,l.default)(n,["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"]),b=(0,u.default)("anticon",(0,o.default)({},"anticon-".concat(r.name),Boolean(r.name)),e),v=(0,u.default)({"anticon-spin":!!i||"loading"===r.name}),y=h;void 0===y&&p&&(y=-1);var w=d?{msTransform:"rotate(".concat(d,"deg)"),transform:"rotate(".concat(d,"deg)")}:void 0,x=(0,f.normalizeTwoToneColors)(m),k=(0,a.default)(x,2),M=k[0],_=k[1];return s.createElement("span",Object.assign({role:"img","aria-label":r.name},g,{ref:t,tabIndex:y,onClick:p,className:b}),s.createElement(c.default,{className:v,icon:r,primaryColor:M,secondaryColor:_,style:w}))}));h.displayName="AntdIcon",h.getTwoToneColor=d.getTwoToneColor,h.setTwoToneColor=d.setTwoToneColor;var p=h;t.default=p},function(n,t,e){"use strict";var r,i="object"==typeof Reflect?Reflect:null,a=i&&"function"==typeof i.apply?i.apply:function(n,t,e){return Function.prototype.apply.call(n,t,e)};r=i&&"function"==typeof i.ownKeys?i.ownKeys:Object.getOwnPropertySymbols?function(n){return Object.getOwnPropertyNames(n).concat(Object.getOwnPropertySymbols(n))}:function(n){return Object.getOwnPropertyNames(n)};var o=Number.isNaN||function(n){return n!=n};function l(){l.init.call(this)}n.exports=l,n.exports.once=function(n,t){return new Promise((function(e,r){function i(){void 0!==a&&n.removeListener("error",a),e([].slice.call(arguments))}var a;"error"!==t&&(a=function(e){n.removeListener(t,i),r(e)},n.once("error",a)),n.once(t,i)}))},l.EventEmitter=l,l.prototype._events=void 0,l.prototype._eventsCount=0,l.prototype._maxListeners=void 0;var s=10;function u(n){if("function"!=typeof n)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof n)}function c(n){return void 0===n._maxListeners?l.defaultMaxListeners:n._maxListeners}function d(n,t,e,r){var i,a,o,l;if(u(e),void 0===(a=n._events)?(a=n._events=Object.create(null),n._eventsCount=0):(void 0!==a.newListener&&(n.emit("newListener",t,e.listener?e.listener:e),a=n._events),o=a[t]),void 0===o)o=a[t]=e,++n._eventsCount;else if("function"==typeof o?o=a[t]=r?[e,o]:[o,e]:r?o.unshift(e):o.push(e),(i=c(n))>0&&o.length>i&&!o.warned){o.warned=!0;var s=new Error("Possible EventEmitter memory leak detected. "+o.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");s.name="MaxListenersExceededWarning",s.emitter=n,s.type=t,s.count=o.length,l=s,console&&console.warn&&console.warn(l)}return n}function f(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function h(n,t,e){var r={fired:!1,wrapFn:void 0,target:n,type:t,listener:e},i=f.bind(r);return i.listener=e,r.wrapFn=i,i}function p(n,t,e){var r=n._events;if(void 0===r)return[];var i=r[t];return void 0===i?[]:"function"==typeof i?e?[i.listener||i]:[i]:e?function(n){for(var t=new Array(n.length),e=0;e0&&(o=t[0]),o instanceof Error)throw o;var l=new Error("Unhandled error."+(o?" ("+o.message+")":""));throw l.context=o,l}var s=i[n];if(void 0===s)return!1;if("function"==typeof s)a(s,this,t);else{var u=s.length,c=g(s,u);for(e=0;e=0;a--)if(e[a]===t||e[a].listener===t){o=e[a].listener,i=a;break}if(i<0)return this;0===i?e.shift():function(n,t){for(;t+1=0;r--)this.removeListener(n,t[r]);return this},l.prototype.listeners=function(n){return p(this,n,!0)},l.prototype.rawListeners=function(n){return p(this,n,!1)},l.listenerCount=function(n,t){return"function"==typeof n.listenerCount?n.listenerCount(t):m.call(n,t)},l.prototype.listenerCount=m,l.prototype.eventNames=function(){return this._eventsCount>0?r(this._events):[]}},function(n,t,e){(function(n){function e(n){return Object.prototype.toString.call(n)}t.isArray=function(n){return Array.isArray?Array.isArray(n):"[object Array]"===e(n)},t.isBoolean=function(n){return"boolean"==typeof n},t.isNull=function(n){return null===n},t.isNullOrUndefined=function(n){return null==n},t.isNumber=function(n){return"number"==typeof n},t.isString=function(n){return"string"==typeof n},t.isSymbol=function(n){return"symbol"==typeof n},t.isUndefined=function(n){return void 0===n},t.isRegExp=function(n){return"[object RegExp]"===e(n)},t.isObject=function(n){return"object"==typeof n&&null!==n},t.isDate=function(n){return"[object Date]"===e(n)},t.isError=function(n){return"[object Error]"===e(n)||n instanceof Error},t.isFunction=function(n){return"function"==typeof n},t.isPrimitive=function(n){return null===n||"boolean"==typeof n||"number"==typeof n||"string"==typeof n||"symbol"==typeof n||void 0===n},t.isBuffer=n.isBuffer}).call(this,e(10).Buffer)},function(n,t,e){"use strict";var r=e(2).Buffer,i=r.isEncoding||function(n){switch((n=""+n)&&n.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(n){var t;switch(this.encoding=function(n){var t=function(n){if(!n)return"utf8";for(var t;;)switch(n){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 n;default:if(t)return;n=(""+n).toLowerCase(),t=!0}}(n);if("string"!=typeof t&&(r.isEncoding===i||!i(n)))throw new Error("Unknown encoding: "+n);return t||n}(n),this.encoding){case"utf16le":this.text=s,this.end=u,t=4;break;case"utf8":this.fillLast=l,t=4;break;case"base64":this.text=c,this.end=d,t=3;break;default:return this.write=f,void(this.end=h)}this.lastNeed=0,this.lastTotal=0,this.lastChar=r.allocUnsafe(t)}function o(n){return n<=127?0:n>>5==6?2:n>>4==14?3:n>>3==30?4:n>>6==2?-1:-2}function l(n){var t=this.lastTotal-this.lastNeed,e=function(n,t,e){if(128!=(192&t[0]))return n.lastNeed=0,"�";if(n.lastNeed>1&&t.length>1){if(128!=(192&t[1]))return n.lastNeed=1,"�";if(n.lastNeed>2&&t.length>2&&128!=(192&t[2]))return n.lastNeed=2,"�"}}(this,n);return void 0!==e?e:this.lastNeed<=n.length?(n.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(n.copy(this.lastChar,t,0,n.length),void(this.lastNeed-=n.length))}function s(n,t){if((n.length-t)%2==0){var e=n.toString("utf16le",t);if(e){var r=e.charCodeAt(e.length-1);if(r>=55296&&r<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=n[n.length-2],this.lastChar[1]=n[n.length-1],e.slice(0,-1)}return e}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=n[n.length-1],n.toString("utf16le",t,n.length-1)}function u(n){var t=n&&n.length?this.write(n):"";if(this.lastNeed){var e=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,e)}return t}function c(n,t){var e=(n.length-t)%3;return 0===e?n.toString("base64",t):(this.lastNeed=3-e,this.lastTotal=3,1===e?this.lastChar[0]=n[n.length-1]:(this.lastChar[0]=n[n.length-2],this.lastChar[1]=n[n.length-1]),n.toString("base64",t,n.length-e))}function d(n){var t=n&&n.length?this.write(n):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function f(n){return n.toString(this.encoding)}function h(n){return n&&n.length?this.write(n):""}t.StringDecoder=a,a.prototype.write=function(n){if(0===n.length)return"";var t,e;if(this.lastNeed){if(void 0===(t=this.fillLast(n)))return"";e=this.lastNeed,this.lastNeed=0}else e=0;return e=0)return i>0&&(n.lastNeed=i-1),i;if(--r=0)return i>0&&(n.lastNeed=i-2),i;if(--r=0)return i>0&&(2===i?i=0:n.lastNeed=i-3),i;return 0}(this,n,t);if(!this.lastNeed)return n.toString("utf8",t);this.lastTotal=e;var r=n.length-(e-this.lastNeed);return n.copy(this.lastChar,0,r),n.toString("utf8",t,r)},a.prototype.fillLast=function(n){if(this.lastNeed<=n.length)return n.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);n.copy(this.lastChar,this.lastTotal-this.lastNeed,0,n.length),this.lastNeed-=n.length}},function(n,t,e){"use strict";var r=e(3),i=e(80),a=e(82),o=e(83),l=e(32);function s(n){l.call(this,"digest"),this._hash=n}r(s,l),s.prototype._update=function(n){this._hash.update(n)},s.prototype._final=function(){return this._hash.digest()},n.exports=function(n){return"md5"===(n=n.toLowerCase())?new i:"rmd160"===n||"ripemd160"===n?new a:new s(o(n))}},function(n,t,e){(function(t){n.exports=function(n,e){for(var r=Math.min(n.length,e.length),i=new t(r),a=0;a=this._delta8){var e=(n=this.pending).length%this._delta8;this.pending=n.slice(n.length-e,n.length),0===this.pending.length&&(this.pending=null),n=r.join32(n,0,n.length-e,this.endian);for(var i=0;i>>24&255,r[i++]=n>>>16&255,r[i++]=n>>>8&255,r[i++]=255&n}else for(r[i++]=255&n,r[i++]=n>>>8&255,r[i++]=n>>>16&255,r[i++]=n>>>24&255,r[i++]=0,r[i++]=0,r[i++]=0,r[i++]=0,a=8;a=a)return n;switch(n){case"%s":return String(r[e++]);case"%d":return Number(r[e++]);case"%j":try{return JSON.stringify(r[e++])}catch(n){return"[Circular]"}default:return n}})),s=r[e];e=3&&(r.depth=arguments[2]),arguments.length>=4&&(r.colors=arguments[3]),p(e)?r.showHidden=e:e&&t._extend(r,e),v(r.showHidden)&&(r.showHidden=!1),v(r.depth)&&(r.depth=2),v(r.colors)&&(r.colors=!1),v(r.customInspect)&&(r.customInspect=!0),r.colors&&(r.stylize=s),c(r,n,r.depth)}function s(n,t){var e=l.styles[t];return e?"["+l.colors[e][0]+"m"+n+"["+l.colors[e][1]+"m":n}function u(n,t){return n}function c(n,e,r){if(n.customInspect&&e&&M(e.inspect)&&e.inspect!==t.inspect&&(!e.constructor||e.constructor.prototype!==e)){var i=e.inspect(r,n);return b(i)||(i=c(n,i,r)),i}var a=function(n,t){if(v(t))return n.stylize("undefined","undefined");if(b(t)){var e="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return n.stylize(e,"string")}if(g(t))return n.stylize(""+t,"number");if(p(t))return n.stylize(""+t,"boolean");if(m(t))return n.stylize("null","null")}(n,e);if(a)return a;var o=Object.keys(e),l=function(n){var t={};return n.forEach((function(n,e){t[n]=!0})),t}(o);if(n.showHidden&&(o=Object.getOwnPropertyNames(e)),k(e)&&(o.indexOf("message")>=0||o.indexOf("description")>=0))return d(e);if(0===o.length){if(M(e)){var s=e.name?": "+e.name:"";return n.stylize("[Function"+s+"]","special")}if(y(e))return n.stylize(RegExp.prototype.toString.call(e),"regexp");if(x(e))return n.stylize(Date.prototype.toString.call(e),"date");if(k(e))return d(e)}var u,w="",_=!1,S=["{","}"];(h(e)&&(_=!0,S=["[","]"]),M(e))&&(w=" [Function"+(e.name?": "+e.name:"")+"]");return y(e)&&(w=" "+RegExp.prototype.toString.call(e)),x(e)&&(w=" "+Date.prototype.toUTCString.call(e)),k(e)&&(w=" "+d(e)),0!==o.length||_&&0!=e.length?r<0?y(e)?n.stylize(RegExp.prototype.toString.call(e),"regexp"):n.stylize("[Object]","special"):(n.seen.push(e),u=_?function(n,t,e,r,i){for(var a=[],o=0,l=t.length;o=0&&0,n+t.replace(/\u001b\[\d\d?m/g,"").length+1}),0)>60)return e[0]+(""===t?"":t+"\n ")+" "+n.join(",\n ")+" "+e[1];return e[0]+t+" "+n.join(", ")+" "+e[1]}(u,w,S)):S[0]+w+S[1]}function d(n){return"["+Error.prototype.toString.call(n)+"]"}function f(n,t,e,r,i,a){var o,l,s;if((s=Object.getOwnPropertyDescriptor(t,i)||{value:t[i]}).get?l=s.set?n.stylize("[Getter/Setter]","special"):n.stylize("[Getter]","special"):s.set&&(l=n.stylize("[Setter]","special")),T(r,i)||(o="["+i+"]"),l||(n.seen.indexOf(s.value)<0?(l=m(e)?c(n,s.value,null):c(n,s.value,e-1)).indexOf("\n")>-1&&(l=a?l.split("\n").map((function(n){return" "+n})).join("\n").substr(2):"\n"+l.split("\n").map((function(n){return" "+n})).join("\n")):l=n.stylize("[Circular]","special")),v(o)){if(a&&i.match(/^\d+$/))return l;(o=JSON.stringify(""+i)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(o=o.substr(1,o.length-2),o=n.stylize(o,"name")):(o=o.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),o=n.stylize(o,"string"))}return o+": "+l}function h(n){return Array.isArray(n)}function p(n){return"boolean"==typeof n}function m(n){return null===n}function g(n){return"number"==typeof n}function b(n){return"string"==typeof n}function v(n){return void 0===n}function y(n){return w(n)&&"[object RegExp]"===_(n)}function w(n){return"object"==typeof n&&null!==n}function x(n){return w(n)&&"[object Date]"===_(n)}function k(n){return w(n)&&("[object Error]"===_(n)||n instanceof Error)}function M(n){return"function"==typeof n}function _(n){return Object.prototype.toString.call(n)}function S(n){return n<10?"0"+n.toString(10):n.toString(10)}t.debuglog=function(e){if(v(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=l,l.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]},l.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=m,t.isNullOrUndefined=function(n){return null==n},t.isNumber=g,t.isString=b,t.isSymbol=function(n){return"symbol"==typeof n},t.isUndefined=v,t.isRegExp=y,t.isObject=w,t.isDate=x,t.isError=k,t.isFunction=M,t.isPrimitive=function(n){return null===n||"boolean"==typeof n||"number"==typeof n||"string"==typeof n||"symbol"==typeof n||void 0===n},t.isBuffer=e(415);var E=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function O(){var n=new Date,t=[S(n.getHours()),S(n.getMinutes()),S(n.getSeconds())].join(":");return[n.getDate(),E[n.getMonth()],t].join(" ")}function T(n,t){return Object.prototype.hasOwnProperty.call(n,t)}t.log=function(){console.log("%s - %s",O(),t.format.apply(t,arguments))},t.inherits=e(416),t._extend=function(n,t){if(!t||!w(t))return n;for(var e=Object.keys(t),r=e.length;r--;)n[e[r]]=t[e[r]];return n};var A="undefined"!=typeof Symbol?Symbol("util.promisify.custom"):void 0;function C(n,t){if(!n){var e=new Error("Promise was rejected with a falsy value");e.reason=n,n=e}return t(n)}t.promisify=function(n){if("function"!=typeof n)throw new TypeError('The "original" argument must be of type Function');if(A&&n[A]){var t;if("function"!=typeof(t=n[A]))throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(t,A,{value:t,enumerable:!1,writable:!1,configurable:!0}),t}function t(){for(var t,e,r=new Promise((function(n,r){t=n,e=r})),i=[],a=0;a>>24]^c[p>>>16&255]^d[m>>>8&255]^f[255&g]^t[b++],o=u[p>>>24]^c[m>>>16&255]^d[g>>>8&255]^f[255&h]^t[b++],l=u[m>>>24]^c[g>>>16&255]^d[h>>>8&255]^f[255&p]^t[b++],s=u[g>>>24]^c[h>>>16&255]^d[p>>>8&255]^f[255&m]^t[b++],h=a,p=o,m=l,g=s;return a=(r[h>>>24]<<24|r[p>>>16&255]<<16|r[m>>>8&255]<<8|r[255&g])^t[b++],o=(r[p>>>24]<<24|r[m>>>16&255]<<16|r[g>>>8&255]<<8|r[255&h])^t[b++],l=(r[m>>>24]<<24|r[g>>>16&255]<<16|r[h>>>8&255]<<8|r[255&p])^t[b++],s=(r[g>>>24]<<24|r[h>>>16&255]<<16|r[p>>>8&255]<<8|r[255&m])^t[b++],[a>>>=0,o>>>=0,l>>>=0,s>>>=0]}var l=[0,1,2,4,8,16,32,64,128,27,54],s=function(){for(var n=new Array(256),t=0;t<256;t++)n[t]=t<128?t<<1:t<<1^283;for(var e=[],r=[],i=[[],[],[],[]],a=[[],[],[],[]],o=0,l=0,s=0;s<256;++s){var u=l^l<<1^l<<2^l<<3^l<<4;u=u>>>8^255&u^99,e[o]=u,r[u]=o;var c=n[o],d=n[c],f=n[d],h=257*n[u]^16843008*u;i[0][o]=h<<24|h>>>8,i[1][o]=h<<16|h>>>16,i[2][o]=h<<8|h>>>24,i[3][o]=h,h=16843009*f^65537*d^257*c^16843008*o,a[0][u]=h<<24|h>>>8,a[1][u]=h<<16|h>>>16,a[2][u]=h<<8|h>>>24,a[3][u]=h,0===o?o=l=1:(o=c^n[n[n[f^c]]],l^=n[n[l]])}return{SBOX:e,INV_SBOX:r,SUB_MIX:i,INV_SUB_MIX:a}}();function u(n){this._key=i(n),this._reset()}u.blockSize=16,u.keySize=32,u.prototype.blockSize=u.blockSize,u.prototype.keySize=u.keySize,u.prototype._reset=function(){for(var n=this._key,t=n.length,e=t+6,r=4*(e+1),i=[],a=0;a>>24,o=s.SBOX[o>>>24]<<24|s.SBOX[o>>>16&255]<<16|s.SBOX[o>>>8&255]<<8|s.SBOX[255&o],o^=l[a/t|0]<<24):t>6&&a%t==4&&(o=s.SBOX[o>>>24]<<24|s.SBOX[o>>>16&255]<<16|s.SBOX[o>>>8&255]<<8|s.SBOX[255&o]),i[a]=i[a-t]^o}for(var u=[],c=0;c>>24]]^s.INV_SUB_MIX[1][s.SBOX[f>>>16&255]]^s.INV_SUB_MIX[2][s.SBOX[f>>>8&255]]^s.INV_SUB_MIX[3][s.SBOX[255&f]]}this._nRounds=e,this._keySchedule=i,this._invKeySchedule=u},u.prototype.encryptBlockRaw=function(n){return o(n=i(n),this._keySchedule,s.SUB_MIX,s.SBOX,this._nRounds)},u.prototype.encryptBlock=function(n){var t=this.encryptBlockRaw(n),e=r.allocUnsafe(16);return e.writeUInt32BE(t[0],0),e.writeUInt32BE(t[1],4),e.writeUInt32BE(t[2],8),e.writeUInt32BE(t[3],12),e},u.prototype.decryptBlock=function(n){var t=(n=i(n))[1];n[1]=n[3],n[3]=t;var e=o(n,this._invKeySchedule,s.INV_SUB_MIX,s.INV_SBOX,this._nRounds),a=r.allocUnsafe(16);return a.writeUInt32BE(e[0],0),a.writeUInt32BE(e[3],4),a.writeUInt32BE(e[2],8),a.writeUInt32BE(e[1],12),a},u.prototype.scrub=function(){a(this._keySchedule),a(this._invKeySchedule),a(this._key)},n.exports.AES=u},function(n,t,e){var r=e(2).Buffer,i=e(80);n.exports=function(n,t,e,a){if(r.isBuffer(n)||(n=r.from(n,"binary")),t&&(r.isBuffer(t)||(t=r.from(t,"binary")),8!==t.length))throw new RangeError("salt should be Buffer with 8 byte length");for(var o=e/8,l=r.alloc(o),s=r.alloc(a||0),u=r.alloc(0);o>0||a>0;){var c=new i;c.update(u),c.update(n),t&&c.update(t),u=c.digest();var d=0;if(o>0){var f=l.length-o;d=Math.min(o,u.length),u.copy(l,f,0,d),o-=d}if(d0){var h=s.length-a,p=Math.min(a,u.length-d);u.copy(s,h,d,d+p),a-=p}}return u.fill(0),{key:l,iv:s}}},function(n,t,e){"use strict";var r=e(29),i=e(15),a=i.getNAF,o=i.getJSF,l=i.assert;function s(n,t){this.type=n,this.p=new r(t.p,16),this.red=t.prime?r.red(t.prime):r.mont(this.p),this.zero=new r(0).toRed(this.red),this.one=new r(1).toRed(this.red),this.two=new r(2).toRed(this.red),this.n=t.n&&new r(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),this._bitLength=this.n?this.n.bitLength():0;var e=this.n&&this.p.div(this.n);!e||e.cmpn(100)>0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}function u(n,t){this.curve=n,this.type=t,this.precomputed=null}n.exports=s,s.prototype.point=function(){throw new Error("Not implemented")},s.prototype.validate=function(){throw new Error("Not implemented")},s.prototype._fixedNafMul=function(n,t){l(n.precomputed);var e=n._getDoubles(),r=a(t,1,this._bitLength),i=(1<=s;t--)u=(u<<1)+r[t];o.push(u)}for(var c=this.jpoint(null,null,null),d=this.jpoint(null,null,null),f=i;f>0;f--){for(s=0;s=0;u--){for(t=0;u>=0&&0===o[u];u--)t++;if(u>=0&&t++,s=s.dblp(t),u<0)break;var c=o[u];l(0!==c),s="affine"===n.type?c>0?s.mixedAdd(i[c-1>>1]):s.mixedAdd(i[-c-1>>1].neg()):c>0?s.add(i[c-1>>1]):s.add(i[-c-1>>1].neg())}return"affine"===n.type?s.toP():s},s.prototype._wnafMulAdd=function(n,t,e,r,i){for(var l=this._wnafT1,s=this._wnafT2,u=this._wnafT3,c=0,d=0;d=1;d-=2){var h=d-1,p=d;if(1===l[h]&&1===l[p]){var m=[t[h],null,null,t[p]];0===t[h].y.cmp(t[p].y)?(m[1]=t[h].add(t[p]),m[2]=t[h].toJ().mixedAdd(t[p].neg())):0===t[h].y.cmp(t[p].y.redNeg())?(m[1]=t[h].toJ().mixedAdd(t[p]),m[2]=t[h].add(t[p].neg())):(m[1]=t[h].toJ().mixedAdd(t[p]),m[2]=t[h].toJ().mixedAdd(t[p].neg()));var g=[-3,-1,-5,-7,0,7,5,1,3],b=o(e[h],e[p]);c=Math.max(b[0].length,c),u[h]=new Array(c),u[p]=new Array(c);for(var v=0;v=0;d--){for(var M=0;d>=0;){var _=!0;for(v=0;v=0&&M++,x=x.dblp(M),d<0)break;for(v=0;v0?S=s[v][E-1>>1]:E<0&&(S=s[v][-E-1>>1].neg()),x="affine"===S.type?x.mixedAdd(S):x.add(S))}}for(d=0;d=Math.ceil((n.bitLength()+1)/t.step)},u.prototype._getDoubles=function(n,t){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var e=[this],r=this,i=0;i * Copyright OpenJS Foundation and other contributors * Released under MIT license * Based on Underscore.js 1.8.3 * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors */(function(){var a="Expected a function",o="__lodash_placeholder__",l=[["ary",128],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",32],["partialRight",64],["rearg",256]],s="[object Arguments]",u="[object Array]",c="[object Boolean]",d="[object Date]",f="[object Error]",h="[object Function]",p="[object GeneratorFunction]",m="[object Map]",g="[object Number]",b="[object Object]",v="[object RegExp]",y="[object Set]",w="[object String]",x="[object Symbol]",k="[object WeakMap]",M="[object ArrayBuffer]",_="[object DataView]",S="[object Float32Array]",E="[object Float64Array]",O="[object Int8Array]",T="[object Int16Array]",A="[object Int32Array]",C="[object Uint8Array]",j="[object Uint16Array]",z="[object Uint32Array]",P=/\b__p \+= '';/g,R=/\b(__p \+=) '' \+/g,I=/(__e\(.*?\)|\b__t\)) \+\n'';/g,D=/&(?:amp|lt|gt|quot|#39);/g,N=/[&<>"']/g,B=RegExp(D.source),L=RegExp(N.source),U=/<%-([\s\S]+?)%>/g,q=/<%([\s\S]+?)%>/g,F=/<%=([\s\S]+?)%>/g,H=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,W=/^\w*$/,Y=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Z=/[\\^$.*+?()[\]{}|]/g,V=RegExp(Z.source),$=/^\s+|\s+$/g,K=/^\s+/,X=/\s+$/,G=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Q=/\{\n\/\* \[wrapped with (.+)\] \*/,J=/,? & /,nn=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,tn=/\\(\\)?/g,en=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,rn=/\w*$/,an=/^[-+]0x[0-9a-f]+$/i,on=/^0b[01]+$/i,ln=/^\[object .+?Constructor\]$/,sn=/^0o[0-7]+$/i,un=/^(?:0|[1-9]\d*)$/,cn=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,dn=/($^)/,fn=/['\n\r\u2028\u2029\\]/g,hn="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",pn="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",mn="[\\ud800-\\udfff]",gn="["+pn+"]",bn="["+hn+"]",vn="\\d+",yn="[\\u2700-\\u27bf]",wn="[a-z\\xdf-\\xf6\\xf8-\\xff]",xn="[^\\ud800-\\udfff"+pn+vn+"\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde]",kn="\\ud83c[\\udffb-\\udfff]",Mn="[^\\ud800-\\udfff]",_n="(?:\\ud83c[\\udde6-\\uddff]){2}",Sn="[\\ud800-\\udbff][\\udc00-\\udfff]",En="[A-Z\\xc0-\\xd6\\xd8-\\xde]",On="(?:"+wn+"|"+xn+")",Tn="(?:"+En+"|"+xn+")",An="(?:"+bn+"|"+kn+")"+"?",Cn="[\\ufe0e\\ufe0f]?"+An+("(?:\\u200d(?:"+[Mn,_n,Sn].join("|")+")[\\ufe0e\\ufe0f]?"+An+")*"),jn="(?:"+[yn,_n,Sn].join("|")+")"+Cn,zn="(?:"+[Mn+bn+"?",bn,_n,Sn,mn].join("|")+")",Pn=RegExp("['’]","g"),Rn=RegExp(bn,"g"),In=RegExp(kn+"(?="+kn+")|"+zn+Cn,"g"),Dn=RegExp([En+"?"+wn+"+(?:['’](?:d|ll|m|re|s|t|ve))?(?="+[gn,En,"$"].join("|")+")",Tn+"+(?:['’](?:D|LL|M|RE|S|T|VE))?(?="+[gn,En+On,"$"].join("|")+")",En+"?"+On+"+(?:['’](?:d|ll|m|re|s|t|ve))?",En+"+(?:['’](?:D|LL|M|RE|S|T|VE))?","\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",vn,jn].join("|"),"g"),Nn=RegExp("[\\u200d\\ud800-\\udfff"+hn+"\\ufe0e\\ufe0f]"),Bn=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Ln=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],Un=-1,qn={};qn[S]=qn[E]=qn[O]=qn[T]=qn[A]=qn[C]=qn["[object Uint8ClampedArray]"]=qn[j]=qn[z]=!0,qn[s]=qn[u]=qn[M]=qn[c]=qn[_]=qn[d]=qn[f]=qn[h]=qn[m]=qn[g]=qn[b]=qn[v]=qn[y]=qn[w]=qn[k]=!1;var Fn={};Fn[s]=Fn[u]=Fn[M]=Fn[_]=Fn[c]=Fn[d]=Fn[S]=Fn[E]=Fn[O]=Fn[T]=Fn[A]=Fn[m]=Fn[g]=Fn[b]=Fn[v]=Fn[y]=Fn[w]=Fn[x]=Fn[C]=Fn["[object Uint8ClampedArray]"]=Fn[j]=Fn[z]=!0,Fn[f]=Fn[h]=Fn[k]=!1;var Hn={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Wn=parseFloat,Yn=parseInt,Zn="object"==typeof n&&n&&n.Object===Object&&n,Vn="object"==typeof self&&self&&self.Object===Object&&self,$n=Zn||Vn||Function("return this")(),Kn=t&&!t.nodeType&&t,Xn=Kn&&"object"==typeof r&&r&&!r.nodeType&&r,Gn=Xn&&Xn.exports===Kn,Qn=Gn&&Zn.process,Jn=function(){try{var n=Xn&&Xn.require&&Xn.require("util").types;return n||Qn&&Qn.binding&&Qn.binding("util")}catch(n){}}(),nt=Jn&&Jn.isArrayBuffer,tt=Jn&&Jn.isDate,et=Jn&&Jn.isMap,rt=Jn&&Jn.isRegExp,it=Jn&&Jn.isSet,at=Jn&&Jn.isTypedArray;function ot(n,t,e){switch(e.length){case 0:return n.call(t);case 1:return n.call(t,e[0]);case 2:return n.call(t,e[0],e[1]);case 3:return n.call(t,e[0],e[1],e[2])}return n.apply(t,e)}function lt(n,t,e,r){for(var i=-1,a=null==n?0:n.length;++i-1}function ht(n,t,e){for(var r=-1,i=null==n?0:n.length;++r-1;);return e}function It(n,t){for(var e=n.length;e--&&kt(t,n[e],0)>-1;);return e}function Dt(n,t){for(var e=n.length,r=0;e--;)n[e]===t&&++r;return r}var Nt=Ot({"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"s"}),Bt=Ot({"&":"&","<":"<",">":">",'"':""","'":"'"});function Lt(n){return"\\"+Hn[n]}function Ut(n){return Nn.test(n)}function qt(n){var t=-1,e=Array(n.size);return n.forEach((function(n,r){e[++t]=[r,n]})),e}function Ft(n,t){return function(e){return n(t(e))}}function Ht(n,t){for(var e=-1,r=n.length,i=0,a=[];++e",""":'"',"'":"'"});var Kt=function n(t){var e,r=(t=null==t?$n:Kt.defaults($n.Object(),t,Kt.pick($n,Ln))).Array,i=t.Date,hn=t.Error,pn=t.Function,mn=t.Math,gn=t.Object,bn=t.RegExp,vn=t.String,yn=t.TypeError,wn=r.prototype,xn=pn.prototype,kn=gn.prototype,Mn=t["__core-js_shared__"],_n=xn.toString,Sn=kn.hasOwnProperty,En=0,On=(e=/[^.]+$/.exec(Mn&&Mn.keys&&Mn.keys.IE_PROTO||""))?"Symbol(src)_1."+e:"",Tn=kn.toString,An=_n.call(gn),Cn=$n._,jn=bn("^"+_n.call(Sn).replace(Z,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),zn=Gn?t.Buffer:void 0,In=t.Symbol,Nn=t.Uint8Array,Hn=zn?zn.allocUnsafe:void 0,Zn=Ft(gn.getPrototypeOf,gn),Vn=gn.create,Kn=kn.propertyIsEnumerable,Xn=wn.splice,Qn=In?In.isConcatSpreadable:void 0,Jn=In?In.iterator:void 0,yt=In?In.toStringTag:void 0,Ot=function(){try{var n=Ji(gn,"defineProperty");return n({},"",{}),n}catch(n){}}(),Xt=t.clearTimeout!==$n.clearTimeout&&t.clearTimeout,Gt=i&&i.now!==$n.Date.now&&i.now,Qt=t.setTimeout!==$n.setTimeout&&t.setTimeout,Jt=mn.ceil,ne=mn.floor,te=gn.getOwnPropertySymbols,ee=zn?zn.isBuffer:void 0,re=t.isFinite,ie=wn.join,ae=Ft(gn.keys,gn),oe=mn.max,le=mn.min,se=i.now,ue=t.parseInt,ce=mn.random,de=wn.reverse,fe=Ji(t,"DataView"),he=Ji(t,"Map"),pe=Ji(t,"Promise"),me=Ji(t,"Set"),ge=Ji(t,"WeakMap"),be=Ji(gn,"create"),ve=ge&&new ge,ye={},we=Ea(fe),xe=Ea(he),ke=Ea(pe),Me=Ea(me),_e=Ea(ge),Se=In?In.prototype:void 0,Ee=Se?Se.valueOf:void 0,Oe=Se?Se.toString:void 0;function Te(n){if(Wo(n)&&!Po(n)&&!(n instanceof ze)){if(n instanceof je)return n;if(Sn.call(n,"__wrapped__"))return Oa(n)}return new je(n)}var Ae=function(){function n(){}return function(t){if(!Ho(t))return{};if(Vn)return Vn(t);n.prototype=t;var e=new n;return n.prototype=void 0,e}}();function Ce(){}function je(n,t){this.__wrapped__=n,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=void 0}function ze(n){this.__wrapped__=n,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=4294967295,this.__views__=[]}function Pe(n){var t=-1,e=null==n?0:n.length;for(this.clear();++t=t?n:t)),n}function Xe(n,t,e,r,i,a){var o,l=1&t,u=2&t,f=4&t;if(e&&(o=i?e(n,r,i,a):e(n)),void 0!==o)return o;if(!Ho(n))return n;var k=Po(n);if(k){if(o=function(n){var t=n.length,e=new n.constructor(t);t&&"string"==typeof n[0]&&Sn.call(n,"index")&&(e.index=n.index,e.input=n.input);return e}(n),!l)return bi(n,o)}else{var P=ea(n),R=P==h||P==p;if(No(n))return di(n,l);if(P==b||P==s||R&&!i){if(o=u||R?{}:ia(n),!l)return u?function(n,t){return vi(n,ta(n),t)}(n,function(n,t){return n&&vi(t,xl(t),n)}(o,n)):function(n,t){return vi(n,na(n),t)}(n,Ze(o,n))}else{if(!Fn[P])return i?n:{};o=function(n,t,e){var r=n.constructor;switch(t){case M:return fi(n);case c:case d:return new r(+n);case _:return function(n,t){var e=t?fi(n.buffer):n.buffer;return new n.constructor(e,n.byteOffset,n.byteLength)}(n,e);case S:case E:case O:case T:case A:case C:case"[object Uint8ClampedArray]":case j:case z:return hi(n,e);case m:return new r;case g:case w:return new r(n);case v:return function(n){var t=new n.constructor(n.source,rn.exec(n));return t.lastIndex=n.lastIndex,t}(n);case y:return new r;case x:return i=n,Ee?gn(Ee.call(i)):{}}var i}(n,P,l)}}a||(a=new Ne);var I=a.get(n);if(I)return I;a.set(n,o),Ko(n)?n.forEach((function(r){o.add(Xe(r,t,e,r,n,a))})):Yo(n)&&n.forEach((function(r,i){o.set(i,Xe(r,t,e,i,n,a))}));var D=k?void 0:(f?u?Zi:Yi:u?xl:wl)(n);return st(D||n,(function(r,i){D&&(r=n[i=r]),He(o,i,Xe(r,t,e,i,n,a))})),o}function Ge(n,t,e){var r=e.length;if(null==n)return!r;for(n=gn(n);r--;){var i=e[r],a=t[i],o=n[i];if(void 0===o&&!(i in n)||!a(o))return!1}return!0}function Qe(n,t,e){if("function"!=typeof n)throw new yn(a);return ya((function(){n.apply(void 0,e)}),t)}function Je(n,t,e,r){var i=-1,a=ft,o=!0,l=n.length,s=[],u=t.length;if(!l)return s;e&&(t=pt(t,jt(e))),r?(a=ht,o=!1):t.length>=200&&(a=Pt,o=!1,t=new De(t));n:for(;++i-1},Re.prototype.set=function(n,t){var e=this.__data__,r=We(e,n);return r<0?(++this.size,e.push([n,t])):e[r][1]=t,this},Ie.prototype.clear=function(){this.size=0,this.__data__={hash:new Pe,map:new(he||Re),string:new Pe}},Ie.prototype.delete=function(n){var t=Gi(this,n).delete(n);return this.size-=t?1:0,t},Ie.prototype.get=function(n){return Gi(this,n).get(n)},Ie.prototype.has=function(n){return Gi(this,n).has(n)},Ie.prototype.set=function(n,t){var e=Gi(this,n),r=e.size;return e.set(n,t),this.size+=e.size==r?0:1,this},De.prototype.add=De.prototype.push=function(n){return this.__data__.set(n,"__lodash_hash_undefined__"),this},De.prototype.has=function(n){return this.__data__.has(n)},Ne.prototype.clear=function(){this.__data__=new Re,this.size=0},Ne.prototype.delete=function(n){var t=this.__data__,e=t.delete(n);return this.size=t.size,e},Ne.prototype.get=function(n){return this.__data__.get(n)},Ne.prototype.has=function(n){return this.__data__.has(n)},Ne.prototype.set=function(n,t){var e=this.__data__;if(e instanceof Re){var r=e.__data__;if(!he||r.length<199)return r.push([n,t]),this.size=++e.size,this;e=this.__data__=new Ie(r)}return e.set(n,t),this.size=e.size,this};var nr=xi(sr),tr=xi(ur,!0);function er(n,t){var e=!0;return nr(n,(function(n,r,i){return e=!!t(n,r,i)})),e}function rr(n,t,e){for(var r=-1,i=n.length;++r0&&e(l)?t>1?ar(l,t-1,e,r,i):mt(i,l):r||(i[i.length]=l)}return i}var or=ki(),lr=ki(!0);function sr(n,t){return n&&or(n,t,wl)}function ur(n,t){return n&&lr(n,t,wl)}function cr(n,t){return dt(t,(function(t){return Uo(n[t])}))}function dr(n,t){for(var e=0,r=(t=li(t,n)).length;null!=n&&et}function mr(n,t){return null!=n&&Sn.call(n,t)}function gr(n,t){return null!=n&&t in gn(n)}function br(n,t,e){for(var i=e?ht:ft,a=n[0].length,o=n.length,l=o,s=r(o),u=1/0,c=[];l--;){var d=n[l];l&&t&&(d=pt(d,jt(t))),u=le(d.length,u),s[l]=!e&&(t||a>=120&&d.length>=120)?new De(l&&d):void 0}d=n[0];var f=-1,h=s[0];n:for(;++f=l)return s;var u=e[r];return s*("desc"==u?-1:1)}}return n.index-t.index}(n,t,e)}))}function Pr(n,t,e){for(var r=-1,i=t.length,a={};++r-1;)l!==n&&Xn.call(l,s,1),Xn.call(n,s,1);return n}function Ir(n,t){for(var e=n?t.length:0,r=e-1;e--;){var i=t[e];if(e==r||i!==a){var a=i;oa(i)?Xn.call(n,i,1):Jr(n,i)}}return n}function Dr(n,t){return n+ne(ce()*(t-n+1))}function Nr(n,t){var e="";if(!n||t<1||t>9007199254740991)return e;do{t%2&&(e+=n),(t=ne(t/2))&&(n+=n)}while(t);return e}function Br(n,t){return wa(pa(n,t,Zl),n+"")}function Lr(n){return Le(Al(n))}function Ur(n,t){var e=Al(n);return Ma(e,Ke(t,0,e.length))}function qr(n,t,e,r){if(!Ho(n))return n;for(var i=-1,a=(t=li(t,n)).length,o=a-1,l=n;null!=l&&++ia?0:a+t),(e=e>a?a:e)<0&&(e+=a),a=t>e?0:e-t>>>0,t>>>=0;for(var o=r(a);++i>>1,o=n[a];null!==o&&!Go(o)&&(e?o<=t:o=200){var u=t?null:Ni(n);if(u)return Wt(u);o=!1,i=Pt,s=new De}else s=t?[]:l;n:for(;++r=r?n:Yr(n,t,e)}var ci=Xt||function(n){return $n.clearTimeout(n)};function di(n,t){if(t)return n.slice();var e=n.length,r=Hn?Hn(e):new n.constructor(e);return n.copy(r),r}function fi(n){var t=new n.constructor(n.byteLength);return new Nn(t).set(new Nn(n)),t}function hi(n,t){var e=t?fi(n.buffer):n.buffer;return new n.constructor(e,n.byteOffset,n.length)}function pi(n,t){if(n!==t){var e=void 0!==n,r=null===n,i=n==n,a=Go(n),o=void 0!==t,l=null===t,s=t==t,u=Go(t);if(!l&&!u&&!a&&n>t||a&&o&&s&&!l&&!u||r&&o&&s||!e&&s||!i)return 1;if(!r&&!a&&!u&&n1?e[i-1]:void 0,o=i>2?e[2]:void 0;for(a=n.length>3&&"function"==typeof a?(i--,a):void 0,o&&la(e[0],e[1],o)&&(a=i<3?void 0:a,i=1),t=gn(t);++r-1?i[a?t[o]:o]:void 0}}function Oi(n){return Wi((function(t){var e=t.length,r=e,i=je.prototype.thru;for(n&&t.reverse();r--;){var o=t[r];if("function"!=typeof o)throw new yn(a);if(i&&!l&&"wrapper"==$i(o))var l=new je([],!0)}for(r=l?r:e;++r1&&y.reverse(),d&&ul))return!1;var u=a.get(n),c=a.get(t);if(u&&c)return u==t&&c==n;var d=-1,f=!0,h=2&e?new De:void 0;for(a.set(n,t),a.set(t,n);++d-1&&n%1==0&&n1?"& ":"")+t[r],t=t.join(e>2?", ":" "),n.replace(G,"{\n/* [wrapped with "+t+"] */\n")}(r,function(n,t){return st(l,(function(e){var r="_."+e[0];t&e[1]&&!ft(n,r)&&n.push(r)})),n.sort()}(function(n){var t=n.match(Q);return t?t[1].split(J):[]}(r),e)))}function ka(n){var t=0,e=0;return function(){var r=se(),i=16-(r-e);if(e=r,i>0){if(++t>=800)return arguments[0]}else t=0;return n.apply(void 0,arguments)}}function Ma(n,t){var e=-1,r=n.length,i=r-1;for(t=void 0===t?r:t;++e1?n[t-1]:void 0;return e="function"==typeof e?(n.pop(),e):void 0,Va(n,e)}));function no(n){var t=Te(n);return t.__chain__=!0,t}function to(n,t){return t(n)}var eo=Wi((function(n){var t=n.length,e=t?n[0]:0,r=this.__wrapped__,i=function(t){return $e(t,n)};return!(t>1||this.__actions__.length)&&r instanceof ze&&oa(e)?((r=r.slice(e,+e+(t?1:0))).__actions__.push({func:to,args:[i],thisArg:void 0}),new je(r,this.__chain__).thru((function(n){return t&&!n.length&&n.push(void 0),n}))):this.thru(i)}));var ro=yi((function(n,t,e){Sn.call(n,e)?++n[e]:Ve(n,e,1)}));var io=Ei(ja),ao=Ei(za);function oo(n,t){return(Po(n)?st:nr)(n,Xi(t,3))}function lo(n,t){return(Po(n)?ut:tr)(n,Xi(t,3))}var so=yi((function(n,t,e){Sn.call(n,e)?n[e].push(t):Ve(n,e,[t])}));var uo=Br((function(n,t,e){var i=-1,a="function"==typeof t,o=Io(n)?r(n.length):[];return nr(n,(function(n){o[++i]=a?ot(t,n,e):vr(n,t,e)})),o})),co=yi((function(n,t,e){Ve(n,e,t)}));function fo(n,t){return(Po(n)?pt:Or)(n,Xi(t,3))}var ho=yi((function(n,t,e){n[e?0:1].push(t)}),(function(){return[[],[]]}));var po=Br((function(n,t){if(null==n)return[];var e=t.length;return e>1&&la(n,t[0],t[1])?t=[]:e>2&&la(t[0],t[1],t[2])&&(t=[t[0]]),zr(n,ar(t,1),[])})),mo=Gt||function(){return $n.Date.now()};function go(n,t,e){return t=e?void 0:t,Li(n,128,void 0,void 0,void 0,void 0,t=n&&null==t?n.length:t)}function bo(n,t){var e;if("function"!=typeof t)throw new yn(a);return n=rl(n),function(){return--n>0&&(e=t.apply(this,arguments)),n<=1&&(t=void 0),e}}var vo=Br((function(n,t,e){var r=1;if(e.length){var i=Ht(e,Ki(vo));r|=32}return Li(n,r,t,e,i)})),yo=Br((function(n,t,e){var r=3;if(e.length){var i=Ht(e,Ki(yo));r|=32}return Li(t,r,n,e,i)}));function wo(n,t,e){var r,i,o,l,s,u,c=0,d=!1,f=!1,h=!0;if("function"!=typeof n)throw new yn(a);function p(t){var e=r,a=i;return r=i=void 0,c=t,l=n.apply(a,e)}function m(n){return c=n,s=ya(b,t),d?p(n):l}function g(n){var e=n-u;return void 0===u||e>=t||e<0||f&&n-c>=o}function b(){var n=mo();if(g(n))return v(n);s=ya(b,function(n){var e=t-(n-u);return f?le(e,o-(n-c)):e}(n))}function v(n){return s=void 0,h&&r?p(n):(r=i=void 0,l)}function y(){var n=mo(),e=g(n);if(r=arguments,i=this,u=n,e){if(void 0===s)return m(u);if(f)return ci(s),s=ya(b,t),p(u)}return void 0===s&&(s=ya(b,t)),l}return t=al(t)||0,Ho(e)&&(d=!!e.leading,o=(f="maxWait"in e)?oe(al(e.maxWait)||0,t):o,h="trailing"in e?!!e.trailing:h),y.cancel=function(){void 0!==s&&ci(s),c=0,r=u=i=s=void 0},y.flush=function(){return void 0===s?l:v(mo())},y}var xo=Br((function(n,t){return Qe(n,1,t)})),ko=Br((function(n,t,e){return Qe(n,al(t)||0,e)}));function Mo(n,t){if("function"!=typeof n||null!=t&&"function"!=typeof t)throw new yn(a);var e=function(){var r=arguments,i=t?t.apply(this,r):r[0],a=e.cache;if(a.has(i))return a.get(i);var o=n.apply(this,r);return e.cache=a.set(i,o)||a,o};return e.cache=new(Mo.Cache||Ie),e}function _o(n){if("function"!=typeof n)throw new yn(a);return function(){var t=arguments;switch(t.length){case 0:return!n.call(this);case 1:return!n.call(this,t[0]);case 2:return!n.call(this,t[0],t[1]);case 3:return!n.call(this,t[0],t[1],t[2])}return!n.apply(this,t)}}Mo.Cache=Ie;var So=si((function(n,t){var e=(t=1==t.length&&Po(t[0])?pt(t[0],jt(Xi())):pt(ar(t,1),jt(Xi()))).length;return Br((function(r){for(var i=-1,a=le(r.length,e);++i=t})),zo=yr(function(){return arguments}())?yr:function(n){return Wo(n)&&Sn.call(n,"callee")&&!Kn.call(n,"callee")},Po=r.isArray,Ro=nt?jt(nt):function(n){return Wo(n)&&hr(n)==M};function Io(n){return null!=n&&Fo(n.length)&&!Uo(n)}function Do(n){return Wo(n)&&Io(n)}var No=ee||as,Bo=tt?jt(tt):function(n){return Wo(n)&&hr(n)==d};function Lo(n){if(!Wo(n))return!1;var t=hr(n);return t==f||"[object DOMException]"==t||"string"==typeof n.message&&"string"==typeof n.name&&!Vo(n)}function Uo(n){if(!Ho(n))return!1;var t=hr(n);return t==h||t==p||"[object AsyncFunction]"==t||"[object Proxy]"==t}function qo(n){return"number"==typeof n&&n==rl(n)}function Fo(n){return"number"==typeof n&&n>-1&&n%1==0&&n<=9007199254740991}function Ho(n){var t=typeof n;return null!=n&&("object"==t||"function"==t)}function Wo(n){return null!=n&&"object"==typeof n}var Yo=et?jt(et):function(n){return Wo(n)&&ea(n)==m};function Zo(n){return"number"==typeof n||Wo(n)&&hr(n)==g}function Vo(n){if(!Wo(n)||hr(n)!=b)return!1;var t=Zn(n);if(null===t)return!0;var e=Sn.call(t,"constructor")&&t.constructor;return"function"==typeof e&&e instanceof e&&_n.call(e)==An}var $o=rt?jt(rt):function(n){return Wo(n)&&hr(n)==v};var Ko=it?jt(it):function(n){return Wo(n)&&ea(n)==y};function Xo(n){return"string"==typeof n||!Po(n)&&Wo(n)&&hr(n)==w}function Go(n){return"symbol"==typeof n||Wo(n)&&hr(n)==x}var Qo=at?jt(at):function(n){return Wo(n)&&Fo(n.length)&&!!qn[hr(n)]};var Jo=Ri(Er),nl=Ri((function(n,t){return n<=t}));function tl(n){if(!n)return[];if(Io(n))return Xo(n)?Vt(n):bi(n);if(Jn&&n[Jn])return function(n){for(var t,e=[];!(t=n.next()).done;)e.push(t.value);return e}(n[Jn]());var t=ea(n);return(t==m?qt:t==y?Wt:Al)(n)}function el(n){return n?(n=al(n))===1/0||n===-1/0?17976931348623157e292*(n<0?-1:1):n==n?n:0:0===n?n:0}function rl(n){var t=el(n),e=t%1;return t==t?e?t-e:t:0}function il(n){return n?Ke(rl(n),0,4294967295):0}function al(n){if("number"==typeof n)return n;if(Go(n))return NaN;if(Ho(n)){var t="function"==typeof n.valueOf?n.valueOf():n;n=Ho(t)?t+"":t}if("string"!=typeof n)return 0===n?n:+n;n=n.replace($,"");var e=on.test(n);return e||sn.test(n)?Yn(n.slice(2),e?2:8):an.test(n)?NaN:+n}function ol(n){return vi(n,xl(n))}function ll(n){return null==n?"":Gr(n)}var sl=wi((function(n,t){if(da(t)||Io(t))vi(t,wl(t),n);else for(var e in t)Sn.call(t,e)&&He(n,e,t[e])})),ul=wi((function(n,t){vi(t,xl(t),n)})),cl=wi((function(n,t,e,r){vi(t,xl(t),n,r)})),dl=wi((function(n,t,e,r){vi(t,wl(t),n,r)})),fl=Wi($e);var hl=Br((function(n,t){n=gn(n);var e=-1,r=t.length,i=r>2?t[2]:void 0;for(i&&la(t[0],t[1],i)&&(r=1);++e1),t})),vi(n,Zi(n),e),r&&(e=Xe(e,7,Fi));for(var i=t.length;i--;)Jr(e,t[i]);return e}));var Sl=Wi((function(n,t){return null==n?{}:function(n,t){return Pr(n,t,(function(t,e){return gl(n,e)}))}(n,t)}));function El(n,t){if(null==n)return{};var e=pt(Zi(n),(function(n){return[n]}));return t=Xi(t),Pr(n,e,(function(n,e){return t(n,e[0])}))}var Ol=Bi(wl),Tl=Bi(xl);function Al(n){return null==n?[]:zt(n,wl(n))}var Cl=_i((function(n,t,e){return t=t.toLowerCase(),n+(e?jl(t):t)}));function jl(n){return Ll(ll(n).toLowerCase())}function zl(n){return(n=ll(n))&&n.replace(cn,Nt).replace(Rn,"")}var Pl=_i((function(n,t,e){return n+(e?"-":"")+t.toLowerCase()})),Rl=_i((function(n,t,e){return n+(e?" ":"")+t.toLowerCase()})),Il=Mi("toLowerCase");var Dl=_i((function(n,t,e){return n+(e?"_":"")+t.toLowerCase()}));var Nl=_i((function(n,t,e){return n+(e?" ":"")+Ll(t)}));var Bl=_i((function(n,t,e){return n+(e?" ":"")+t.toUpperCase()})),Ll=Mi("toUpperCase");function Ul(n,t,e){return n=ll(n),void 0===(t=e?void 0:t)?function(n){return Bn.test(n)}(n)?function(n){return n.match(Dn)||[]}(n):function(n){return n.match(nn)||[]}(n):n.match(t)||[]}var ql=Br((function(n,t){try{return ot(n,void 0,t)}catch(n){return Lo(n)?n:new hn(n)}})),Fl=Wi((function(n,t){return st(t,(function(t){t=Sa(t),Ve(n,t,vo(n[t],n))})),n}));function Hl(n){return function(){return n}}var Wl=Oi(),Yl=Oi(!0);function Zl(n){return n}function Vl(n){return Mr("function"==typeof n?n:Xe(n,1))}var $l=Br((function(n,t){return function(e){return vr(e,n,t)}})),Kl=Br((function(n,t){return function(e){return vr(n,e,t)}}));function Xl(n,t,e){var r=wl(t),i=cr(t,r);null!=e||Ho(t)&&(i.length||!r.length)||(e=t,t=n,n=this,i=cr(t,wl(t)));var a=!(Ho(e)&&"chain"in e&&!e.chain),o=Uo(n);return st(i,(function(e){var r=t[e];n[e]=r,o&&(n.prototype[e]=function(){var t=this.__chain__;if(a||t){var e=n(this.__wrapped__),i=e.__actions__=bi(this.__actions__);return i.push({func:r,args:arguments,thisArg:n}),e.__chain__=t,e}return r.apply(n,mt([this.value()],arguments))})})),n}function Gl(){}var Ql=ji(pt),Jl=ji(ct),ns=ji(vt);function ts(n){return sa(n)?Et(Sa(n)):function(n){return function(t){return dr(t,n)}}(n)}var es=Pi(),rs=Pi(!0);function is(){return[]}function as(){return!1}var os=Ci((function(n,t){return n+t}),0),ls=Di("ceil"),ss=Ci((function(n,t){return n/t}),1),us=Di("floor");var cs,ds=Ci((function(n,t){return n*t}),1),fs=Di("round"),hs=Ci((function(n,t){return n-t}),0);return Te.after=function(n,t){if("function"!=typeof t)throw new yn(a);return n=rl(n),function(){if(--n<1)return t.apply(this,arguments)}},Te.ary=go,Te.assign=sl,Te.assignIn=ul,Te.assignInWith=cl,Te.assignWith=dl,Te.at=fl,Te.before=bo,Te.bind=vo,Te.bindAll=Fl,Te.bindKey=yo,Te.castArray=function(){if(!arguments.length)return[];var n=arguments[0];return Po(n)?n:[n]},Te.chain=no,Te.chunk=function(n,t,e){t=(e?la(n,t,e):void 0===t)?1:oe(rl(t),0);var i=null==n?0:n.length;if(!i||t<1)return[];for(var a=0,o=0,l=r(Jt(i/t));ai?0:i+e),(r=void 0===r||r>i?i:rl(r))<0&&(r+=i),r=e>r?0:il(r);e>>0)?(n=ll(n))&&("string"==typeof t||null!=t&&!$o(t))&&!(t=Gr(t))&&Ut(n)?ui(Vt(n),0,e):n.split(t,e):[]},Te.spread=function(n,t){if("function"!=typeof n)throw new yn(a);return t=null==t?0:oe(rl(t),0),Br((function(e){var r=e[t],i=ui(e,0,t);return r&&mt(i,r),ot(n,this,i)}))},Te.tail=function(n){var t=null==n?0:n.length;return t?Yr(n,1,t):[]},Te.take=function(n,t,e){return n&&n.length?Yr(n,0,(t=e||void 0===t?1:rl(t))<0?0:t):[]},Te.takeRight=function(n,t,e){var r=null==n?0:n.length;return r?Yr(n,(t=r-(t=e||void 0===t?1:rl(t)))<0?0:t,r):[]},Te.takeRightWhile=function(n,t){return n&&n.length?ti(n,Xi(t,3),!1,!0):[]},Te.takeWhile=function(n,t){return n&&n.length?ti(n,Xi(t,3)):[]},Te.tap=function(n,t){return t(n),n},Te.throttle=function(n,t,e){var r=!0,i=!0;if("function"!=typeof n)throw new yn(a);return Ho(e)&&(r="leading"in e?!!e.leading:r,i="trailing"in e?!!e.trailing:i),wo(n,t,{leading:r,maxWait:t,trailing:i})},Te.thru=to,Te.toArray=tl,Te.toPairs=Ol,Te.toPairsIn=Tl,Te.toPath=function(n){return Po(n)?pt(n,Sa):Go(n)?[n]:bi(_a(ll(n)))},Te.toPlainObject=ol,Te.transform=function(n,t,e){var r=Po(n),i=r||No(n)||Qo(n);if(t=Xi(t,4),null==e){var a=n&&n.constructor;e=i?r?new a:[]:Ho(n)&&Uo(a)?Ae(Zn(n)):{}}return(i?st:sr)(n,(function(n,r,i){return t(e,n,r,i)})),e},Te.unary=function(n){return go(n,1)},Te.union=Ha,Te.unionBy=Wa,Te.unionWith=Ya,Te.uniq=function(n){return n&&n.length?Qr(n):[]},Te.uniqBy=function(n,t){return n&&n.length?Qr(n,Xi(t,2)):[]},Te.uniqWith=function(n,t){return t="function"==typeof t?t:void 0,n&&n.length?Qr(n,void 0,t):[]},Te.unset=function(n,t){return null==n||Jr(n,t)},Te.unzip=Za,Te.unzipWith=Va,Te.update=function(n,t,e){return null==n?n:ni(n,t,oi(e))},Te.updateWith=function(n,t,e,r){return r="function"==typeof r?r:void 0,null==n?n:ni(n,t,oi(e),r)},Te.values=Al,Te.valuesIn=function(n){return null==n?[]:zt(n,xl(n))},Te.without=$a,Te.words=Ul,Te.wrap=function(n,t){return Eo(oi(t),n)},Te.xor=Ka,Te.xorBy=Xa,Te.xorWith=Ga,Te.zip=Qa,Te.zipObject=function(n,t){return ii(n||[],t||[],He)},Te.zipObjectDeep=function(n,t){return ii(n||[],t||[],qr)},Te.zipWith=Ja,Te.entries=Ol,Te.entriesIn=Tl,Te.extend=ul,Te.extendWith=cl,Xl(Te,Te),Te.add=os,Te.attempt=ql,Te.camelCase=Cl,Te.capitalize=jl,Te.ceil=ls,Te.clamp=function(n,t,e){return void 0===e&&(e=t,t=void 0),void 0!==e&&(e=(e=al(e))==e?e:0),void 0!==t&&(t=(t=al(t))==t?t:0),Ke(al(n),t,e)},Te.clone=function(n){return Xe(n,4)},Te.cloneDeep=function(n){return Xe(n,5)},Te.cloneDeepWith=function(n,t){return Xe(n,5,t="function"==typeof t?t:void 0)},Te.cloneWith=function(n,t){return Xe(n,4,t="function"==typeof t?t:void 0)},Te.conformsTo=function(n,t){return null==t||Ge(n,t,wl(t))},Te.deburr=zl,Te.defaultTo=function(n,t){return null==n||n!=n?t:n},Te.divide=ss,Te.endsWith=function(n,t,e){n=ll(n),t=Gr(t);var r=n.length,i=e=void 0===e?r:Ke(rl(e),0,r);return(e-=t.length)>=0&&n.slice(e,i)==t},Te.eq=Ao,Te.escape=function(n){return(n=ll(n))&&L.test(n)?n.replace(N,Bt):n},Te.escapeRegExp=function(n){return(n=ll(n))&&V.test(n)?n.replace(Z,"\\$&"):n},Te.every=function(n,t,e){var r=Po(n)?ct:er;return e&&la(n,t,e)&&(t=void 0),r(n,Xi(t,3))},Te.find=io,Te.findIndex=ja,Te.findKey=function(n,t){return wt(n,Xi(t,3),sr)},Te.findLast=ao,Te.findLastIndex=za,Te.findLastKey=function(n,t){return wt(n,Xi(t,3),ur)},Te.floor=us,Te.forEach=oo,Te.forEachRight=lo,Te.forIn=function(n,t){return null==n?n:or(n,Xi(t,3),xl)},Te.forInRight=function(n,t){return null==n?n:lr(n,Xi(t,3),xl)},Te.forOwn=function(n,t){return n&&sr(n,Xi(t,3))},Te.forOwnRight=function(n,t){return n&&ur(n,Xi(t,3))},Te.get=ml,Te.gt=Co,Te.gte=jo,Te.has=function(n,t){return null!=n&&ra(n,t,mr)},Te.hasIn=gl,Te.head=Ra,Te.identity=Zl,Te.includes=function(n,t,e,r){n=Io(n)?n:Al(n),e=e&&!r?rl(e):0;var i=n.length;return e<0&&(e=oe(i+e,0)),Xo(n)?e<=i&&n.indexOf(t,e)>-1:!!i&&kt(n,t,e)>-1},Te.indexOf=function(n,t,e){var r=null==n?0:n.length;if(!r)return-1;var i=null==e?0:rl(e);return i<0&&(i=oe(r+i,0)),kt(n,t,i)},Te.inRange=function(n,t,e){return t=el(t),void 0===e?(e=t,t=0):e=el(e),function(n,t,e){return n>=le(t,e)&&n=-9007199254740991&&n<=9007199254740991},Te.isSet=Ko,Te.isString=Xo,Te.isSymbol=Go,Te.isTypedArray=Qo,Te.isUndefined=function(n){return void 0===n},Te.isWeakMap=function(n){return Wo(n)&&ea(n)==k},Te.isWeakSet=function(n){return Wo(n)&&"[object WeakSet]"==hr(n)},Te.join=function(n,t){return null==n?"":ie.call(n,t)},Te.kebabCase=Pl,Te.last=Ba,Te.lastIndexOf=function(n,t,e){var r=null==n?0:n.length;if(!r)return-1;var i=r;return void 0!==e&&(i=(i=rl(e))<0?oe(r+i,0):le(i,r-1)),t==t?function(n,t,e){for(var r=e+1;r--;)if(n[r]===t)return r;return r}(n,t,i):xt(n,_t,i,!0)},Te.lowerCase=Rl,Te.lowerFirst=Il,Te.lt=Jo,Te.lte=nl,Te.max=function(n){return n&&n.length?rr(n,Zl,pr):void 0},Te.maxBy=function(n,t){return n&&n.length?rr(n,Xi(t,2),pr):void 0},Te.mean=function(n){return St(n,Zl)},Te.meanBy=function(n,t){return St(n,Xi(t,2))},Te.min=function(n){return n&&n.length?rr(n,Zl,Er):void 0},Te.minBy=function(n,t){return n&&n.length?rr(n,Xi(t,2),Er):void 0},Te.stubArray=is,Te.stubFalse=as,Te.stubObject=function(){return{}},Te.stubString=function(){return""},Te.stubTrue=function(){return!0},Te.multiply=ds,Te.nth=function(n,t){return n&&n.length?jr(n,rl(t)):void 0},Te.noConflict=function(){return $n._===this&&($n._=Cn),this},Te.noop=Gl,Te.now=mo,Te.pad=function(n,t,e){n=ll(n);var r=(t=rl(t))?Zt(n):0;if(!t||r>=t)return n;var i=(t-r)/2;return zi(ne(i),e)+n+zi(Jt(i),e)},Te.padEnd=function(n,t,e){n=ll(n);var r=(t=rl(t))?Zt(n):0;return t&&rt){var r=n;n=t,t=r}if(e||n%1||t%1){var i=ce();return le(n+i*(t-n+Wn("1e-"+((i+"").length-1))),t)}return Dr(n,t)},Te.reduce=function(n,t,e){var r=Po(n)?gt:Tt,i=arguments.length<3;return r(n,Xi(t,4),e,i,nr)},Te.reduceRight=function(n,t,e){var r=Po(n)?bt:Tt,i=arguments.length<3;return r(n,Xi(t,4),e,i,tr)},Te.repeat=function(n,t,e){return t=(e?la(n,t,e):void 0===t)?1:rl(t),Nr(ll(n),t)},Te.replace=function(){var n=arguments,t=ll(n[0]);return n.length<3?t:t.replace(n[1],n[2])},Te.result=function(n,t,e){var r=-1,i=(t=li(t,n)).length;for(i||(i=1,n=void 0);++r9007199254740991)return[];var e=4294967295,r=le(n,4294967295);n-=4294967295;for(var i=Ct(r,t=Xi(t));++e=a)return n;var l=e-Zt(r);if(l<1)return r;var s=o?ui(o,0,l).join(""):n.slice(0,l);if(void 0===i)return s+r;if(o&&(l+=s.length-l),$o(i)){if(n.slice(l).search(i)){var u,c=s;for(i.global||(i=bn(i.source,ll(rn.exec(i))+"g")),i.lastIndex=0;u=i.exec(c);)var d=u.index;s=s.slice(0,void 0===d?l:d)}}else if(n.indexOf(Gr(i),l)!=l){var f=s.lastIndexOf(i);f>-1&&(s=s.slice(0,f))}return s+r},Te.unescape=function(n){return(n=ll(n))&&B.test(n)?n.replace(D,$t):n},Te.uniqueId=function(n){var t=++En;return ll(n)+t},Te.upperCase=Bl,Te.upperFirst=Ll,Te.each=oo,Te.eachRight=lo,Te.first=Ra,Xl(Te,(cs={},sr(Te,(function(n,t){Sn.call(Te.prototype,t)||(cs[t]=n)})),cs),{chain:!1}),Te.VERSION="4.17.20",st(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(n){Te[n].placeholder=Te})),st(["drop","take"],(function(n,t){ze.prototype[n]=function(e){e=void 0===e?1:oe(rl(e),0);var r=this.__filtered__&&!t?new ze(this):this.clone();return r.__filtered__?r.__takeCount__=le(e,r.__takeCount__):r.__views__.push({size:le(e,4294967295),type:n+(r.__dir__<0?"Right":"")}),r},ze.prototype[n+"Right"]=function(t){return this.reverse()[n](t).reverse()}})),st(["filter","map","takeWhile"],(function(n,t){var e=t+1,r=1==e||3==e;ze.prototype[n]=function(n){var t=this.clone();return t.__iteratees__.push({iteratee:Xi(n,3),type:e}),t.__filtered__=t.__filtered__||r,t}})),st(["head","last"],(function(n,t){var e="take"+(t?"Right":"");ze.prototype[n]=function(){return this[e](1).value()[0]}})),st(["initial","tail"],(function(n,t){var e="drop"+(t?"":"Right");ze.prototype[n]=function(){return this.__filtered__?new ze(this):this[e](1)}})),ze.prototype.compact=function(){return this.filter(Zl)},ze.prototype.find=function(n){return this.filter(n).head()},ze.prototype.findLast=function(n){return this.reverse().find(n)},ze.prototype.invokeMap=Br((function(n,t){return"function"==typeof n?new ze(this):this.map((function(e){return vr(e,n,t)}))})),ze.prototype.reject=function(n){return this.filter(_o(Xi(n)))},ze.prototype.slice=function(n,t){n=rl(n);var e=this;return e.__filtered__&&(n>0||t<0)?new ze(e):(n<0?e=e.takeRight(-n):n&&(e=e.drop(n)),void 0!==t&&(e=(t=rl(t))<0?e.dropRight(-t):e.take(t-n)),e)},ze.prototype.takeRightWhile=function(n){return this.reverse().takeWhile(n).reverse()},ze.prototype.toArray=function(){return this.take(4294967295)},sr(ze.prototype,(function(n,t){var e=/^(?:filter|find|map|reject)|While$/.test(t),r=/^(?:head|last)$/.test(t),i=Te[r?"take"+("last"==t?"Right":""):t],a=r||/^find/.test(t);i&&(Te.prototype[t]=function(){var t=this.__wrapped__,o=r?[1]:arguments,l=t instanceof ze,s=o[0],u=l||Po(t),c=function(n){var t=i.apply(Te,mt([n],o));return r&&d?t[0]:t};u&&e&&"function"==typeof s&&1!=s.length&&(l=u=!1);var d=this.__chain__,f=!!this.__actions__.length,h=a&&!d,p=l&&!f;if(!a&&u){t=p?t:new ze(this);var m=n.apply(t,o);return m.__actions__.push({func:to,args:[c],thisArg:void 0}),new je(m,d)}return h&&p?n.apply(this,o):(m=this.thru(c),h?r?m.value()[0]:m.value():m)})})),st(["pop","push","shift","sort","splice","unshift"],(function(n){var t=wn[n],e=/^(?:push|sort|unshift)$/.test(n)?"tap":"thru",r=/^(?:pop|shift)$/.test(n);Te.prototype[n]=function(){var n=arguments;if(r&&!this.__chain__){var i=this.value();return t.apply(Po(i)?i:[],n)}return this[e]((function(e){return t.apply(Po(e)?e:[],n)}))}})),sr(ze.prototype,(function(n,t){var e=Te[t];if(e){var r=e.name+"";Sn.call(ye,r)||(ye[r]=[]),ye[r].push({name:t,func:e})}})),ye[Ti(void 0,2).name]=[{name:"wrapper",func:void 0}],ze.prototype.clone=function(){var n=new ze(this.__wrapped__);return n.__actions__=bi(this.__actions__),n.__dir__=this.__dir__,n.__filtered__=this.__filtered__,n.__iteratees__=bi(this.__iteratees__),n.__takeCount__=this.__takeCount__,n.__views__=bi(this.__views__),n},ze.prototype.reverse=function(){if(this.__filtered__){var n=new ze(this);n.__dir__=-1,n.__filtered__=!0}else(n=this.clone()).__dir__*=-1;return n},ze.prototype.value=function(){var n=this.__wrapped__.value(),t=this.__dir__,e=Po(n),r=t<0,i=e?n.length:0,a=function(n,t,e){var r=-1,i=e.length;for(;++r=this.__values__.length;return{done:n,value:n?void 0:this.__values__[this.__index__++]}},Te.prototype.plant=function(n){for(var t,e=this;e instanceof Ce;){var r=Oa(e);r.__index__=0,r.__values__=void 0,t?i.__wrapped__=r:t=r;var i=r;e=e.__wrapped__}return i.__wrapped__=n,t},Te.prototype.reverse=function(){var n=this.__wrapped__;if(n instanceof ze){var t=n;return this.__actions__.length&&(t=new ze(this)),(t=t.reverse()).__actions__.push({func:to,args:[Fa],thisArg:void 0}),new je(t,this.__chain__)}return this.thru(Fa)},Te.prototype.toJSON=Te.prototype.valueOf=Te.prototype.value=function(){return ei(this.__wrapped__,this.__actions__)},Te.prototype.first=Te.prototype.head,Jn&&(Te.prototype[Jn]=function(){return this}),Te}();$n._=Kt,void 0===(i=function(){return Kt}.call(t,e,t,r))||(r.exports=i)}).call(this)}).call(this,e(12),e(27)(n))},function(n,t){n.exports=function(n){if(void 0===n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}},function(n,t,e){"use strict";e.d(t,"a",(function(){return a}));var r=e(38),i=e.n(r);function a(n){return n instanceof HTMLElement?n:i.a.findDOMNode(n)}},function(n,t,e){(function(t){for(var r=e(212),i="undefined"==typeof window?t:window,a=["moz","webkit"],o="AnimationFrame",l=i["request"+o],s=i["cancel"+o]||i["cancelRequest"+o],u=0;!l&&u0&&void 0!==arguments[0]?arguments[0]:{};return Object.keys(n).reduce((function(t,e){var r=n[e];switch(e){case"class":t.className=r,delete t.class;break;default:t[e]=r}return t}),{})}t.svgBaseProps={width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",focusable:"false"};var f="\n.anticon {\n display: inline-block;\n color: inherit;\n font-style: normal;\n line-height: 0;\n text-align: center;\n text-transform: none;\n vertical-align: -0.125em;\n text-rendering: optimizeLegibility;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n}\n\n.anticon > * {\n line-height: 1;\n}\n\n.anticon svg {\n display: inline-block;\n}\n\n.anticon::before {\n display: none;\n}\n\n.anticon .anticon-icon {\n display: block;\n}\n\n.anticon[tabindex] {\n cursor: pointer;\n}\n\n.anticon-spin::before,\n.anticon-spin {\n display: inline-block;\n -webkit-animation: loadingCircle 1s infinite linear;\n animation: loadingCircle 1s infinite linear;\n}\n\n@-webkit-keyframes loadingCircle {\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n\n@keyframes loadingCircle {\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n";t.iconStyles=f;var h=!1;t.useInsertStyles=function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:f;(0,s.useEffect)((function(){h||((0,c.insertCss)(n,{prepend:!0}),h=!0)}),[])}},function(n,t,e){var r=e(400),i=e(500);t.ALGORITHMS=["HS256","HS384","HS512","RS256","RS384","RS512","PS256","PS384","PS512","ES256","ES384","ES512"],t.sign=r.sign,t.verify=i.verify,t.decode=i.decode,t.isValid=i.isValid,t.createSign=function(n){return new r(n)},t.createVerify=function(n){return new i(n)}},function(n,t,e){(t=n.exports=e(115)).Stream=t,t.Readable=t,t.Writable=e(79),t.Duplex=e(36),t.Transform=e(119),t.PassThrough=e(410)},function(n,t,e){var r=e(10),i=r.Buffer;function a(n,t){for(var e in n)t[e]=n[e]}function o(n,t,e){return i(n,t,e)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?n.exports=r:(a(r,t),t.Buffer=o),a(i,o),o.from=function(n,t,e){if("number"==typeof n)throw new TypeError("Argument must not be a number");return i(n,t,e)},o.alloc=function(n,t,e){if("number"!=typeof n)throw new TypeError("Argument must be a number");var r=i(n);return void 0!==t?"string"==typeof e?r.fill(t,e):r.fill(t):r.fill(0),r},o.allocUnsafe=function(n){if("number"!=typeof n)throw new TypeError("Argument must be a number");return i(n)},o.allocUnsafeSlow=function(n){if("number"!=typeof n)throw new TypeError("Argument must be a number");return r.SlowBuffer(n)}},function(n,t,e){"use strict";(function(t,r,i){var a=e(61);function o(n){var t=this;this.next=null,this.entry=null,this.finish=function(){!function(n,t,e){var r=n.entry;n.entry=null;for(;r;){var i=r.callback;t.pendingcb--,i(e),r=r.next}t.corkedRequestsFree?t.corkedRequestsFree.next=n:t.corkedRequestsFree=n}(t,n)}}n.exports=v;var l,s=!t.browser&&["v0.10","v0.9."].indexOf(t.version.slice(0,5))>-1?r:a.nextTick;v.WritableState=b;var u=Object.create(e(51));u.inherits=e(3);var c={deprecate:e(118)},d=e(116),f=e(78).Buffer,h=i.Uint8Array||function(){};var p,m=e(117);function g(){}function b(n,t){l=l||e(36),n=n||{};var r=t instanceof l;this.objectMode=!!n.objectMode,r&&(this.objectMode=this.objectMode||!!n.writableObjectMode);var i=n.highWaterMark,u=n.writableHighWaterMark,c=this.objectMode?16:16384;this.highWaterMark=i||0===i?i:r&&(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 d=!1===n.decodeStrings;this.decodeStrings=!d,this.defaultEncoding=n.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(n){!function(n,t){var e=n._writableState,r=e.sync,i=e.writecb;if(function(n){n.writing=!1,n.writecb=null,n.length-=n.writelen,n.writelen=0}(e),t)!function(n,t,e,r,i){--t.pendingcb,e?(a.nextTick(i,r),a.nextTick(_,n,t),n._writableState.errorEmitted=!0,n.emit("error",r)):(i(r),n._writableState.errorEmitted=!0,n.emit("error",r),_(n,t))}(n,e,r,t,i);else{var o=k(e);o||e.corked||e.bufferProcessing||!e.bufferedRequest||x(n,e),r?s(w,n,e,o,i):w(n,e,o,i)}}(t,n)},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 v(n){if(l=l||e(36),!(p.call(v,this)||this instanceof l))return new v(n);this._writableState=new b(n,this),this.writable=!0,n&&("function"==typeof n.write&&(this._write=n.write),"function"==typeof n.writev&&(this._writev=n.writev),"function"==typeof n.destroy&&(this._destroy=n.destroy),"function"==typeof n.final&&(this._final=n.final)),d.call(this)}function y(n,t,e,r,i,a,o){t.writelen=r,t.writecb=o,t.writing=!0,t.sync=!0,e?n._writev(i,t.onwrite):n._write(i,a,t.onwrite),t.sync=!1}function w(n,t,e,r){e||function(n,t){0===t.length&&t.needDrain&&(t.needDrain=!1,n.emit("drain"))}(n,t),t.pendingcb--,r(),_(n,t)}function x(n,t){t.bufferProcessing=!0;var e=t.bufferedRequest;if(n._writev&&e&&e.next){var r=t.bufferedRequestCount,i=new Array(r),a=t.corkedRequestsFree;a.entry=e;for(var l=0,s=!0;e;)i[l]=e,e.isBuf||(s=!1),e=e.next,l+=1;i.allBuffers=s,y(n,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(;e;){var u=e.chunk,c=e.encoding,d=e.callback;if(y(n,t,!1,t.objectMode?1:u.length,u,c,d),e=e.next,t.bufferedRequestCount--,t.writing)break}null===e&&(t.lastBufferedRequest=null)}t.bufferedRequest=e,t.bufferProcessing=!1}function k(n){return n.ending&&0===n.length&&null===n.bufferedRequest&&!n.finished&&!n.writing}function M(n,t){n._final((function(e){t.pendingcb--,e&&n.emit("error",e),t.prefinished=!0,n.emit("prefinish"),_(n,t)}))}function _(n,t){var e=k(t);return e&&(!function(n,t){t.prefinished||t.finalCalled||("function"==typeof n._final?(t.pendingcb++,t.finalCalled=!0,a.nextTick(M,n,t)):(t.prefinished=!0,n.emit("prefinish")))}(n,t),0===t.pendingcb&&(t.finished=!0,n.emit("finish"))),e}u.inherits(v,d),b.prototype.getBuffer=function(){for(var n=this.bufferedRequest,t=[];n;)t.push(n),n=n.next;return t},function(){try{Object.defineProperty(b.prototype,"buffer",{get:c.deprecate((function(){return this.getBuffer()}),"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(n){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(p=Function.prototype[Symbol.hasInstance],Object.defineProperty(v,Symbol.hasInstance,{value:function(n){return!!p.call(this,n)||this===v&&(n&&n._writableState instanceof b)}})):p=function(n){return n instanceof this},v.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},v.prototype.write=function(n,t,e){var r,i=this._writableState,o=!1,l=!i.objectMode&&(r=n,f.isBuffer(r)||r instanceof h);return l&&!f.isBuffer(n)&&(n=function(n){return f.from(n)}(n)),"function"==typeof t&&(e=t,t=null),l?t="buffer":t||(t=i.defaultEncoding),"function"!=typeof e&&(e=g),i.ended?function(n,t){var e=new Error("write after end");n.emit("error",e),a.nextTick(t,e)}(this,e):(l||function(n,t,e,r){var i=!0,o=!1;return null===e?o=new TypeError("May not write null values to stream"):"string"==typeof e||void 0===e||t.objectMode||(o=new TypeError("Invalid non-string/buffer chunk")),o&&(n.emit("error",o),a.nextTick(r,o),i=!1),i}(this,i,n,e))&&(i.pendingcb++,o=function(n,t,e,r,i,a){if(!e){var o=function(n,t,e){n.objectMode||!1===n.decodeStrings||"string"!=typeof t||(t=f.from(t,e));return t}(t,r,i);r!==o&&(e=!0,i="buffer",r=o)}var l=t.objectMode?1:r.length;t.length+=l;var s=t.length-1))throw new TypeError("Unknown encoding: "+n);return this._writableState.defaultEncoding=n,this},Object.defineProperty(v.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),v.prototype._write=function(n,t,e){e(new Error("_write() is not implemented"))},v.prototype._writev=null,v.prototype.end=function(n,t,e){var r=this._writableState;"function"==typeof n?(e=n,n=null,t=null):"function"==typeof t&&(e=t,t=null),null!=n&&this.write(n,t),r.corked&&(r.corked=1,this.uncork()),r.ending||r.finished||function(n,t,e){t.ending=!0,_(n,t),e&&(t.finished?a.nextTick(e):n.once("finish",e));t.ended=!0,n.writable=!1}(this,r,e)},Object.defineProperty(v.prototype,"destroyed",{get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(n){this._writableState&&(this._writableState.destroyed=n)}}),v.prototype.destroy=m.destroy,v.prototype._undestroy=m.undestroy,v.prototype._destroy=function(n,t){this.end(),t(n)}}).call(this,e(8),e(408).setImmediate,e(12))},function(n,t,e){"use strict";var r=e(3),i=e(121),a=e(2).Buffer,o=new Array(16);function l(){i.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878}function s(n,t){return n<>>32-t}function u(n,t,e,r,i,a,o){return s(n+(t&e|~t&r)+i+a|0,o)+t|0}function c(n,t,e,r,i,a,o){return s(n+(t&r|e&~r)+i+a|0,o)+t|0}function d(n,t,e,r,i,a,o){return s(n+(t^e^r)+i+a|0,o)+t|0}function f(n,t,e,r,i,a,o){return s(n+(e^(t|~r))+i+a|0,o)+t|0}r(l,i),l.prototype._update=function(){for(var n=o,t=0;t<16;++t)n[t]=this._block.readInt32LE(4*t);var e=this._a,r=this._b,i=this._c,a=this._d;e=u(e,r,i,a,n[0],3614090360,7),a=u(a,e,r,i,n[1],3905402710,12),i=u(i,a,e,r,n[2],606105819,17),r=u(r,i,a,e,n[3],3250441966,22),e=u(e,r,i,a,n[4],4118548399,7),a=u(a,e,r,i,n[5],1200080426,12),i=u(i,a,e,r,n[6],2821735955,17),r=u(r,i,a,e,n[7],4249261313,22),e=u(e,r,i,a,n[8],1770035416,7),a=u(a,e,r,i,n[9],2336552879,12),i=u(i,a,e,r,n[10],4294925233,17),r=u(r,i,a,e,n[11],2304563134,22),e=u(e,r,i,a,n[12],1804603682,7),a=u(a,e,r,i,n[13],4254626195,12),i=u(i,a,e,r,n[14],2792965006,17),e=c(e,r=u(r,i,a,e,n[15],1236535329,22),i,a,n[1],4129170786,5),a=c(a,e,r,i,n[6],3225465664,9),i=c(i,a,e,r,n[11],643717713,14),r=c(r,i,a,e,n[0],3921069994,20),e=c(e,r,i,a,n[5],3593408605,5),a=c(a,e,r,i,n[10],38016083,9),i=c(i,a,e,r,n[15],3634488961,14),r=c(r,i,a,e,n[4],3889429448,20),e=c(e,r,i,a,n[9],568446438,5),a=c(a,e,r,i,n[14],3275163606,9),i=c(i,a,e,r,n[3],4107603335,14),r=c(r,i,a,e,n[8],1163531501,20),e=c(e,r,i,a,n[13],2850285829,5),a=c(a,e,r,i,n[2],4243563512,9),i=c(i,a,e,r,n[7],1735328473,14),e=d(e,r=c(r,i,a,e,n[12],2368359562,20),i,a,n[5],4294588738,4),a=d(a,e,r,i,n[8],2272392833,11),i=d(i,a,e,r,n[11],1839030562,16),r=d(r,i,a,e,n[14],4259657740,23),e=d(e,r,i,a,n[1],2763975236,4),a=d(a,e,r,i,n[4],1272893353,11),i=d(i,a,e,r,n[7],4139469664,16),r=d(r,i,a,e,n[10],3200236656,23),e=d(e,r,i,a,n[13],681279174,4),a=d(a,e,r,i,n[0],3936430074,11),i=d(i,a,e,r,n[3],3572445317,16),r=d(r,i,a,e,n[6],76029189,23),e=d(e,r,i,a,n[9],3654602809,4),a=d(a,e,r,i,n[12],3873151461,11),i=d(i,a,e,r,n[15],530742520,16),e=f(e,r=d(r,i,a,e,n[2],3299628645,23),i,a,n[0],4096336452,6),a=f(a,e,r,i,n[7],1126891415,10),i=f(i,a,e,r,n[14],2878612391,15),r=f(r,i,a,e,n[5],4237533241,21),e=f(e,r,i,a,n[12],1700485571,6),a=f(a,e,r,i,n[3],2399980690,10),i=f(i,a,e,r,n[10],4293915773,15),r=f(r,i,a,e,n[1],2240044497,21),e=f(e,r,i,a,n[8],1873313359,6),a=f(a,e,r,i,n[15],4264355552,10),i=f(i,a,e,r,n[6],2734768916,15),r=f(r,i,a,e,n[13],1309151649,21),e=f(e,r,i,a,n[4],4149444226,6),a=f(a,e,r,i,n[11],3174756917,10),i=f(i,a,e,r,n[2],718787259,15),r=f(r,i,a,e,n[9],3951481745,21),this._a=this._a+e|0,this._b=this._b+r|0,this._c=this._c+i|0,this._d=this._d+a|0},l.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 n=a.allocUnsafe(16);return n.writeInt32LE(this._a,0),n.writeInt32LE(this._b,4),n.writeInt32LE(this._c,8),n.writeInt32LE(this._d,12),n},n.exports=l},function(n,t,e){"use strict";var r=e(42).codes.ERR_STREAM_PREMATURE_CLOSE;function i(){}n.exports=function n(t,e,a){if("function"==typeof e)return n(t,null,e);e||(e={}),a=function(n){var t=!1;return function(){if(!t){t=!0;for(var e=arguments.length,r=new Array(e),i=0;i>>32-t}function m(n,t,e,r,i,a,o,l){return p(n+(t^e^r)+a+o|0,l)+i|0}function g(n,t,e,r,i,a,o,l){return p(n+(t&e|~t&r)+a+o|0,l)+i|0}function b(n,t,e,r,i,a,o,l){return p(n+((t|~e)^r)+a+o|0,l)+i|0}function v(n,t,e,r,i,a,o,l){return p(n+(t&r|e&~r)+a+o|0,l)+i|0}function y(n,t,e,r,i,a,o,l){return p(n+(t^(e|~r))+a+o|0,l)+i|0}i(h,a),h.prototype._update=function(){for(var n=o,t=0;t<16;++t)n[t]=this._block.readInt32LE(4*t);for(var e=0|this._a,r=0|this._b,i=0|this._c,a=0|this._d,h=0|this._e,w=0|this._a,x=0|this._b,k=0|this._c,M=0|this._d,_=0|this._e,S=0;S<80;S+=1){var E,O;S<16?(E=m(e,r,i,a,h,n[l[S]],d[0],u[S]),O=y(w,x,k,M,_,n[s[S]],f[0],c[S])):S<32?(E=g(e,r,i,a,h,n[l[S]],d[1],u[S]),O=v(w,x,k,M,_,n[s[S]],f[1],c[S])):S<48?(E=b(e,r,i,a,h,n[l[S]],d[2],u[S]),O=b(w,x,k,M,_,n[s[S]],f[2],c[S])):S<64?(E=v(e,r,i,a,h,n[l[S]],d[3],u[S]),O=g(w,x,k,M,_,n[s[S]],f[3],c[S])):(E=y(e,r,i,a,h,n[l[S]],d[4],u[S]),O=m(w,x,k,M,_,n[s[S]],f[4],c[S])),e=h,h=a,a=p(i,10),i=r,r=E,w=_,_=M,M=p(k,10),k=x,x=O}var T=this._b+i+M|0;this._b=this._c+a+_|0,this._c=this._d+h+w|0,this._d=this._e+e+x|0,this._e=this._a+r+k|0,this._a=T},h.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 n=r.alloc?r.alloc(20):new r(20);return n.writeInt32LE(this._a,0),n.writeInt32LE(this._b,4),n.writeInt32LE(this._c,8),n.writeInt32LE(this._d,12),n.writeInt32LE(this._e,16),n},n.exports=h},function(n,t,e){(t=n.exports=function(n){n=n.toLowerCase();var e=t[n];if(!e)throw new Error(n+" is not supported (we accept pull requests)");return new e}).sha=e(426),t.sha1=e(427),t.sha224=e(428),t.sha256=e(129),t.sha384=e(429),t.sha512=e(130)},function(n,t,e){"use strict";var r=e(14);function i(n){this.options=n,this.type=this.options.type,this.blockSize=8,this._init(),this.buffer=new Array(this.blockSize),this.bufferOff=0}n.exports=i,i.prototype._init=function(){},i.prototype.update=function(n){return 0===n.length?[]:"decrypt"===this.type?this._updateDecrypt(n):this._updateEncrypt(n)},i.prototype._buffer=function(n,t){for(var e=Math.min(this.buffer.length-this.bufferOff,n.length-t),r=0;r0;r--)t+=this._buffer(n,t),e+=this._flushBuffer(i,e);return t+=this._buffer(n,t),i},i.prototype.final=function(n){var t,e;return n&&(t=this.update(n)),e="encrypt"===this.type?this._finalEncrypt():this._finalDecrypt(),t?t.concat(e):e},i.prototype._pad=function(n,t){if(0===t)return!1;for(;t=0||!e.umod(n.prime1)||!e.umod(n.prime2);)e=new r(i(t));return e}n.exports=a,a.getr=o}).call(this,e(10).Buffer)},function(n,t,e){"use strict";var r=t;r.version=e(459).version,r.utils=e(15),r.rand=e(87),r.curve=e(150),r.curves=e(90),r.ec=e(471),r.eddsa=e(475)},function(n,t,e){"use strict";var r,i=t,a=e(91),o=e(150),l=e(15).assert;function s(n){"short"===n.type?this.curve=new o.short(n):"edwards"===n.type?this.curve=new o.edwards(n):this.curve=new o.mont(n),this.g=this.curve.g,this.n=this.curve.n,this.hash=n.hash,l(this.g.validate(),"Invalid curve"),l(this.g.mul(this.n).isInfinity(),"Invalid curve, G*N != O")}function u(n,t){Object.defineProperty(i,n,{configurable:!0,enumerable:!0,get:function(){var e=new s(t);return Object.defineProperty(i,n,{configurable:!0,enumerable:!0,value:e}),e}})}i.PresetCurve=s,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{r=e(470)}catch(n){r=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",r]})},function(n,t,e){var r=t;r.utils=e(20),r.common=e(55),r.sha=e(464),r.ripemd=e(468),r.hmac=e(469),r.sha1=r.sha.sha1,r.sha256=r.sha.sha256,r.sha224=r.sha.sha224,r.sha384=r.sha.sha384,r.sha512=r.sha.sha512,r.ripemd160=r.ripemd.ripemd160},function(n,t,e){"use strict";(function(t){var r,i=e(10),a=i.Buffer,o={};for(r in i)i.hasOwnProperty(r)&&"SlowBuffer"!==r&&"Buffer"!==r&&(o[r]=i[r]);var l=o.Buffer={};for(r in a)a.hasOwnProperty(r)&&"allocUnsafe"!==r&&"allocUnsafeSlow"!==r&&(l[r]=a[r]);if(o.Buffer.prototype=a.prototype,l.from&&l.from!==Uint8Array.from||(l.from=function(n,t,e){if("number"==typeof n)throw new TypeError('The "value" argument must not be of type number. Received type '+typeof n);if(n&&void 0===n.length)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof n);return a(n,t,e)}),l.alloc||(l.alloc=function(n,t,e){if("number"!=typeof n)throw new TypeError('The "size" argument must be of type number. Received type '+typeof n);if(n<0||n>=2*(1<<30))throw new RangeError('The value "'+n+'" is invalid for option "size"');var r=a(n);return t&&0!==t.length?"string"==typeof e?r.fill(t,e):r.fill(t):r.fill(0),r}),!o.kStringMaxLength)try{o.kStringMaxLength=t.binding("buffer").kStringMaxLength}catch(n){}o.constants||(o.constants={MAX_LENGTH:o.kMaxLength},o.kStringMaxLength&&(o.constants.MAX_STRING_LENGTH=o.kStringMaxLength)),n.exports=o}).call(this,e(8))},function(n,t,e){"use strict";const r=e(94).Reporter,i=e(56).EncoderBuffer,a=e(56).DecoderBuffer,o=e(14),l=["seq","seqof","set","setof","objid","bool","gentime","utctime","null_","enum","int","objDesc","bitstr","bmpstr","charstr","genstr","graphstr","ia5str","iso646str","numstr","octstr","printstr","t61str","unistr","utf8str","videostr"],s=["key","obj","use","optional","explicit","implicit","def","choice","any","contains"].concat(l);function u(n,t,e){const r={};this._baseState=r,r.name=e,r.enc=n,r.parent=t||null,r.children=null,r.tag=null,r.args=null,r.reverseArgs=null,r.choice=null,r.optional=!1,r.any=!1,r.obj=!1,r.use=null,r.useDecoder=null,r.key=null,r.default=null,r.explicit=null,r.implicit=null,r.contains=null,r.parent||(r.children=[],this._wrap())}n.exports=u;const c=["enc","parent","children","tag","args","reverseArgs","choice","optional","any","obj","use","alteredUse","key","default","explicit","implicit","contains"];u.prototype.clone=function(){const n=this._baseState,t={};c.forEach((function(e){t[e]=n[e]}));const e=new this.constructor(t.parent);return e._baseState=t,e},u.prototype._wrap=function(){const n=this._baseState;s.forEach((function(t){this[t]=function(){const e=new this.constructor(this);return n.children.push(e),e[t].apply(e,arguments)}}),this)},u.prototype._init=function(n){const t=this._baseState;o(null===t.parent),n.call(this),t.children=t.children.filter((function(n){return n._baseState.parent===this}),this),o.equal(t.children.length,1,"Root node can have only one child")},u.prototype._useArgs=function(n){const t=this._baseState,e=n.filter((function(n){return n instanceof this.constructor}),this);n=n.filter((function(n){return!(n instanceof this.constructor)}),this),0!==e.length&&(o(null===t.children),t.children=e,e.forEach((function(n){n._baseState.parent=this}),this)),0!==n.length&&(o(null===t.args),t.args=n,t.reverseArgs=n.map((function(n){if("object"!=typeof n||n.constructor!==Object)return n;const t={};return Object.keys(n).forEach((function(e){e==(0|e)&&(e|=0);const r=n[e];t[r]=e})),t})))},["_peekTag","_decodeTag","_use","_decodeStr","_decodeObjid","_decodeTime","_decodeNull","_decodeInt","_decodeBool","_decodeList","_encodeComposite","_encodeStr","_encodeObjid","_encodeTime","_encodeNull","_encodeInt","_encodeBool"].forEach((function(n){u.prototype[n]=function(){const t=this._baseState;throw new Error(n+" not implemented for encoding: "+t.enc)}})),l.forEach((function(n){u.prototype[n]=function(){const t=this._baseState,e=Array.prototype.slice.call(arguments);return o(null===t.tag),t.tag=n,this._useArgs(e),this}})),u.prototype.use=function(n){o(n);const t=this._baseState;return o(null===t.use),t.use=n,this},u.prototype.optional=function(){return this._baseState.optional=!0,this},u.prototype.def=function(n){const t=this._baseState;return o(null===t.default),t.default=n,t.optional=!0,this},u.prototype.explicit=function(n){const t=this._baseState;return o(null===t.explicit&&null===t.implicit),t.explicit=n,this},u.prototype.implicit=function(n){const t=this._baseState;return o(null===t.explicit&&null===t.implicit),t.implicit=n,this},u.prototype.obj=function(){const n=this._baseState,t=Array.prototype.slice.call(arguments);return n.obj=!0,0!==t.length&&this._useArgs(t),this},u.prototype.key=function(n){const t=this._baseState;return o(null===t.key),t.key=n,this},u.prototype.any=function(){return this._baseState.any=!0,this},u.prototype.choice=function(n){const t=this._baseState;return o(null===t.choice),t.choice=n,this._useArgs(Object.keys(n).map((function(t){return n[t]}))),this},u.prototype.contains=function(n){const t=this._baseState;return o(null===t.use),t.contains=n,this},u.prototype._decode=function(n,t){const e=this._baseState;if(null===e.parent)return n.wrapResult(e.children[0]._decode(n,t));let r,i=e.default,o=!0,l=null;if(null!==e.key&&(l=n.enterKey(e.key)),e.optional){let r=null;if(null!==e.explicit?r=e.explicit:null!==e.implicit?r=e.implicit:null!==e.tag&&(r=e.tag),null!==r||e.any){if(o=this._peekTag(n,r,e.any),n.isError(o))return o}else{const r=n.save();try{null===e.choice?this._decodeGeneric(e.tag,n,t):this._decodeChoice(n,t),o=!0}catch(n){o=!1}n.restore(r)}}if(e.obj&&o&&(r=n.enterObject()),o){if(null!==e.explicit){const t=this._decodeTag(n,e.explicit);if(n.isError(t))return t;n=t}const r=n.offset;if(null===e.use&&null===e.choice){let t;e.any&&(t=n.save());const r=this._decodeTag(n,null!==e.implicit?e.implicit:e.tag,e.any);if(n.isError(r))return r;e.any?i=n.raw(t):n=r}if(t&&t.track&&null!==e.tag&&t.track(n.path(),r,n.length,"tagged"),t&&t.track&&null!==e.tag&&t.track(n.path(),n.offset,n.length,"content"),e.any||(i=null===e.choice?this._decodeGeneric(e.tag,n,t):this._decodeChoice(n,t)),n.isError(i))return i;if(e.any||null!==e.choice||null===e.children||e.children.forEach((function(e){e._decode(n,t)})),e.contains&&("octstr"===e.tag||"bitstr"===e.tag)){const r=new a(i);i=this._getUse(e.contains,n._reporterState.obj)._decode(r,t)}}return e.obj&&o&&(i=n.leaveObject(r)),null===e.key||null===i&&!0!==o?null!==l&&n.exitKey(l):n.leaveKey(l,e.key,i),i},u.prototype._decodeGeneric=function(n,t,e){const r=this._baseState;return"seq"===n||"set"===n?null:"seqof"===n||"setof"===n?this._decodeList(t,n,r.args[0],e):/str$/.test(n)?this._decodeStr(t,n,e):"objid"===n&&r.args?this._decodeObjid(t,r.args[0],r.args[1],e):"objid"===n?this._decodeObjid(t,null,null,e):"gentime"===n||"utctime"===n?this._decodeTime(t,n,e):"null_"===n?this._decodeNull(t,e):"bool"===n?this._decodeBool(t,e):"objDesc"===n?this._decodeStr(t,n,e):"int"===n||"enum"===n?this._decodeInt(t,r.args&&r.args[0],e):null!==r.use?this._getUse(r.use,t._reporterState.obj)._decode(t,e):t.error("unknown tag: "+n)},u.prototype._getUse=function(n,t){const e=this._baseState;return e.useDecoder=this._use(n,t),o(null===e.useDecoder._baseState.parent),e.useDecoder=e.useDecoder._baseState.children[0],e.implicit!==e.useDecoder._baseState.implicit&&(e.useDecoder=e.useDecoder.clone(),e.useDecoder._baseState.implicit=e.implicit),e.useDecoder},u.prototype._decodeChoice=function(n,t){const e=this._baseState;let r=null,i=!1;return Object.keys(e.choice).some((function(a){const o=n.save(),l=e.choice[a];try{const e=l._decode(n,t);if(n.isError(e))return!1;r={type:a,value:e},i=!0}catch(t){return n.restore(o),!1}return!0}),this),i?r:n.error("Choice not matched")},u.prototype._createEncoderBuffer=function(n){return new i(n,this.reporter)},u.prototype._encode=function(n,t,e){const r=this._baseState;if(null!==r.default&&r.default===n)return;const i=this._encodeValue(n,t,e);return void 0===i||this._skipDefault(i,t,e)?void 0:i},u.prototype._encodeValue=function(n,t,e){const i=this._baseState;if(null===i.parent)return i.children[0]._encode(n,t||new r);let a=null;if(this.reporter=t,i.optional&&void 0===n){if(null===i.default)return;n=i.default}let o=null,l=!1;if(i.any)a=this._createEncoderBuffer(n);else if(i.choice)a=this._encodeChoice(n,t);else if(i.contains)o=this._getUse(i.contains,e)._encode(n,t),l=!0;else if(i.children)o=i.children.map((function(e){if("null_"===e._baseState.tag)return e._encode(null,t,n);if(null===e._baseState.key)return t.error("Child should have a key");const r=t.enterKey(e._baseState.key);if("object"!=typeof n)return t.error("Child expected, but input is not object");const i=e._encode(n[e._baseState.key],t,n);return t.leaveKey(r),i}),this).filter((function(n){return n})),o=this._createEncoderBuffer(o);else if("seqof"===i.tag||"setof"===i.tag){if(!i.args||1!==i.args.length)return t.error("Too many args for : "+i.tag);if(!Array.isArray(n))return t.error("seqof/setof, but data is not Array");const e=this.clone();e._baseState.implicit=null,o=this._createEncoderBuffer(n.map((function(e){const r=this._baseState;return this._getUse(r.args[0],n)._encode(e,t)}),e))}else null!==i.use?a=this._getUse(i.use,e)._encode(n,t):(o=this._encodePrimitive(i.tag,n),l=!0);if(!i.any&&null===i.choice){const n=null!==i.implicit?i.implicit:i.tag,e=null===i.implicit?"universal":"context";null===n?null===i.use&&t.error("Tag could be omitted only for .use()"):null===i.use&&(a=this._encodeComposite(n,l,e,o))}return null!==i.explicit&&(a=this._encodeComposite(i.explicit,!1,"context",a)),a},u.prototype._encodeChoice=function(n,t){const e=this._baseState,r=e.choice[n.type];return r||o(!1,n.type+" not found in "+JSON.stringify(Object.keys(e.choice))),r._encode(n.value,t)},u.prototype._encodePrimitive=function(n,t){const e=this._baseState;if(/str$/.test(n))return this._encodeStr(t,n);if("objid"===n&&e.args)return this._encodeObjid(t,e.reverseArgs[0],e.args[1]);if("objid"===n)return this._encodeObjid(t,null,null);if("gentime"===n||"utctime"===n)return this._encodeTime(t,n);if("null_"===n)return this._encodeNull();if("int"===n||"enum"===n)return this._encodeInt(t,e.args&&e.reverseArgs[0]);if("bool"===n)return this._encodeBool(t);if("objDesc"===n)return this._encodeStr(t,n);throw new Error("Unsupported tag: "+n)},u.prototype._isNumstr=function(n){return/^[0-9 ]*$/.test(n)},u.prototype._isPrintstr=function(n){return/^[A-Za-z0-9 '()+,-./:=?]*$/.test(n)}},function(n,t,e){"use strict";const r=e(3);function i(n){this._reporterState={obj:null,path:[],options:n||{},errors:[]}}function a(n,t){this.path=n,this.rethrow(t)}t.Reporter=i,i.prototype.isError=function(n){return n instanceof a},i.prototype.save=function(){const n=this._reporterState;return{obj:n.obj,pathLen:n.path.length}},i.prototype.restore=function(n){const t=this._reporterState;t.obj=n.obj,t.path=t.path.slice(0,n.pathLen)},i.prototype.enterKey=function(n){return this._reporterState.path.push(n)},i.prototype.exitKey=function(n){const t=this._reporterState;t.path=t.path.slice(0,n-1)},i.prototype.leaveKey=function(n,t,e){const r=this._reporterState;this.exitKey(n),null!==r.obj&&(r.obj[t]=e)},i.prototype.path=function(){return this._reporterState.path.join("/")},i.prototype.enterObject=function(){const n=this._reporterState,t=n.obj;return n.obj={},t},i.prototype.leaveObject=function(n){const t=this._reporterState,e=t.obj;return t.obj=n,e},i.prototype.error=function(n){let t;const e=this._reporterState,r=n instanceof a;if(t=r?n:new a(e.path.map((function(n){return"["+JSON.stringify(n)+"]"})).join(""),n.message||n,n.stack),!e.options.partial)throw t;return r||e.errors.push(t),t},i.prototype.wrapResult=function(n){const t=this._reporterState;return t.options.partial?{result:this.isError(n)?null:n,errors:t.errors}:n},r(a,Error),a.prototype.rethrow=function(n){if(this.message=n+" at: "+(this.path||"(shallow)"),Error.captureStackTrace&&Error.captureStackTrace(this,a),!this.stack)try{throw new Error(this.message)}catch(n){this.stack=n.stack}return this}},function(n,t,e){"use strict";function r(n){const t={};return Object.keys(n).forEach((function(e){(0|e)==e&&(e|=0);const r=n[e];t[r]=e})),t}t.tagClass={0:"universal",1:"application",2:"context",3:"private"},t.tagClassByName=r(t.tagClass),t.tag={0:"end",1:"bool",2:"int",3:"bitstr",4:"octstr",5:"null_",6:"objid",7:"objDesc",8:"external",9:"real",10:"enum",11:"embed",12:"utf8str",13:"relativeOid",16:"seq",17:"set",18:"numstr",19:"printstr",20:"t61str",21:"videostr",22:"ia5str",23:"utctime",24:"gentime",25:"graphstr",26:"iso646str",27:"genstr",28:"unistr",29:"charstr",30:"bmpstr"},t.tagByName=r(t.tag)},function(n,t,e){(function(n){!function(n,t){"use strict";function r(n,t){if(!n)throw new Error(t||"Assertion failed")}function i(n,t){n.super_=t;var e=function(){};e.prototype=t.prototype,n.prototype=new e,n.prototype.constructor=n}function a(n,t,e){if(a.isBN(n))return n;this.negative=0,this.words=null,this.length=0,this.red=null,null!==n&&("le"!==t&&"be"!==t||(e=t,t=10),this._init(n||0,t||10,e||"be"))}var o;"object"==typeof n?n.exports=a:t.BN=a,a.BN=a,a.wordSize=26;try{o=e(495).Buffer}catch(n){}function l(n,t,e){for(var r=0,i=Math.min(n.length,e),a=t;a=49&&o<=54?o-49+10:o>=17&&o<=22?o-17+10:15&o}return r}function s(n,t,e,r){for(var i=0,a=Math.min(n.length,e),o=t;o=49?l-49+10:l>=17?l-17+10:l}return i}a.isBN=function(n){return n instanceof a||null!==n&&"object"==typeof n&&n.constructor.wordSize===a.wordSize&&Array.isArray(n.words)},a.max=function(n,t){return n.cmp(t)>0?n:t},a.min=function(n,t){return n.cmp(t)<0?n:t},a.prototype._init=function(n,t,e){if("number"==typeof n)return this._initNumber(n,t,e);if("object"==typeof n)return this._initArray(n,t,e);"hex"===t&&(t=16),r(t===(0|t)&&t>=2&&t<=36);var i=0;"-"===(n=n.toString().replace(/\s+/g,""))[0]&&i++,16===t?this._parseHex(n,i):this._parseBase(n,t,i),"-"===n[0]&&(this.negative=1),this.strip(),"le"===e&&this._initArray(this.toArray(),t,e)},a.prototype._initNumber=function(n,t,e){n<0&&(this.negative=1,n=-n),n<67108864?(this.words=[67108863&n],this.length=1):n<4503599627370496?(this.words=[67108863&n,n/67108864&67108863],this.length=2):(r(n<9007199254740992),this.words=[67108863&n,n/67108864&67108863,1],this.length=3),"le"===e&&this._initArray(this.toArray(),t,e)},a.prototype._initArray=function(n,t,e){if(r("number"==typeof n.length),n.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(n.length/3),this.words=new Array(this.length);for(var i=0;i=0;i-=3)o=n[i]|n[i-1]<<8|n[i-2]<<16,this.words[a]|=o<>>26-l&67108863,(l+=24)>=26&&(l-=26,a++);else if("le"===e)for(i=0,a=0;i>>26-l&67108863,(l+=24)>=26&&(l-=26,a++);return this.strip()},a.prototype._parseHex=function(n,t){this.length=Math.ceil((n.length-t)/6),this.words=new Array(this.length);for(var e=0;e=t;e-=6)i=l(n,e,e+6),this.words[r]|=i<>>26-a&4194303,(a+=24)>=26&&(a-=26,r++);e+6!==t&&(i=l(n,t,e+6),this.words[r]|=i<>>26-a&4194303),this.strip()},a.prototype._parseBase=function(n,t,e){this.words=[0],this.length=1;for(var r=0,i=1;i<=67108863;i*=t)r++;r--,i=i/t|0;for(var a=n.length-e,o=a%r,l=Math.min(a,a-o)+e,u=0,c=e;c1&&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?""};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],d=[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 f(n,t,e){e.negative=t.negative^n.negative;var r=n.length+t.length|0;e.length=r,r=r-1|0;var i=0|n.words[0],a=0|t.words[0],o=i*a,l=67108863&o,s=o/67108864|0;e.words[0]=l;for(var u=1;u>>26,d=67108863&s,f=Math.min(u,t.length-1),h=Math.max(0,u-n.length+1);h<=f;h++){var p=u-h|0;c+=(o=(i=0|n.words[p])*(a=0|t.words[h])+d)/67108864|0,d=67108863&o}e.words[u]=0|d,s=0|c}return 0!==s?e.words[u]=0|s:e.length--,e.strip()}a.prototype.toString=function(n,t){var e;if(t=0|t||1,16===(n=n||10)||"hex"===n){e="";for(var i=0,a=0,o=0;o>>24-i&16777215)||o!==this.length-1?u[6-s.length]+s+e:s+e,(i+=2)>=26&&(i-=26,o--)}for(0!==a&&(e=a.toString(16)+e);e.length%t!=0;)e="0"+e;return 0!==this.negative&&(e="-"+e),e}if(n===(0|n)&&n>=2&&n<=36){var f=c[n],h=d[n];e="";var p=this.clone();for(p.negative=0;!p.isZero();){var m=p.modn(h).toString(n);e=(p=p.idivn(h)).isZero()?m+e:u[f-m.length]+m+e}for(this.isZero()&&(e="0"+e);e.length%t!=0;)e="0"+e;return 0!==this.negative&&(e="-"+e),e}r(!1,"Base should be between 2 and 36")},a.prototype.toNumber=function(){var n=this.words[0];return 2===this.length?n+=67108864*this.words[1]:3===this.length&&1===this.words[2]?n+=4503599627370496+67108864*this.words[1]:this.length>2&&r(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-n:n},a.prototype.toJSON=function(){return this.toString(16)},a.prototype.toBuffer=function(n,t){return r(void 0!==o),this.toArrayLike(o,n,t)},a.prototype.toArray=function(n,t){return this.toArrayLike(Array,n,t)},a.prototype.toArrayLike=function(n,t,e){var i=this.byteLength(),a=e||Math.max(1,i);r(i<=a,"byte array longer than desired length"),r(a>0,"Requested array length <= 0"),this.strip();var o,l,s="le"===t,u=new n(a),c=this.clone();if(s){for(l=0;!c.isZero();l++)o=c.andln(255),c.iushrn(8),u[l]=o;for(;l=4096&&(e+=13,t>>>=13),t>=64&&(e+=7,t>>>=7),t>=8&&(e+=4,t>>>=4),t>=2&&(e+=2,t>>>=2),e+t},a.prototype._zeroBits=function(n){if(0===n)return 26;var t=n,e=0;return 0==(8191&t)&&(e+=13,t>>>=13),0==(127&t)&&(e+=7,t>>>=7),0==(15&t)&&(e+=4,t>>>=4),0==(3&t)&&(e+=2,t>>>=2),0==(1&t)&&e++,e},a.prototype.bitLength=function(){var n=this.words[this.length-1],t=this._countBits(n);return 26*(this.length-1)+t},a.prototype.zeroBits=function(){if(this.isZero())return 0;for(var n=0,t=0;tn.length?this.clone().ior(n):n.clone().ior(this)},a.prototype.uor=function(n){return this.length>n.length?this.clone().iuor(n):n.clone().iuor(this)},a.prototype.iuand=function(n){var t;t=this.length>n.length?n:this;for(var e=0;en.length?this.clone().iand(n):n.clone().iand(this)},a.prototype.uand=function(n){return this.length>n.length?this.clone().iuand(n):n.clone().iuand(this)},a.prototype.iuxor=function(n){var t,e;this.length>n.length?(t=this,e=n):(t=n,e=this);for(var r=0;rn.length?this.clone().ixor(n):n.clone().ixor(this)},a.prototype.uxor=function(n){return this.length>n.length?this.clone().iuxor(n):n.clone().iuxor(this)},a.prototype.inotn=function(n){r("number"==typeof n&&n>=0);var t=0|Math.ceil(n/26),e=n%26;this._expand(t),e>0&&t--;for(var i=0;i0&&(this.words[i]=~this.words[i]&67108863>>26-e),this.strip()},a.prototype.notn=function(n){return this.clone().inotn(n)},a.prototype.setn=function(n,t){r("number"==typeof n&&n>=0);var e=n/26|0,i=n%26;return this._expand(e+1),this.words[e]=t?this.words[e]|1<n.length?(e=this,r=n):(e=n,r=this);for(var i=0,a=0;a>>26;for(;0!==i&&a>>26;if(this.length=e.length,0!==i)this.words[this.length]=i,this.length++;else if(e!==this)for(;an.length?this.clone().iadd(n):n.clone().iadd(this)},a.prototype.isub=function(n){if(0!==n.negative){n.negative=0;var t=this.iadd(n);return n.negative=1,t._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(n),this.negative=1,this._normSign();var e,r,i=this.cmp(n);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;i>0?(e=this,r=n):(e=n,r=this);for(var a=0,o=0;o>26,this.words[o]=67108863&t;for(;0!==a&&o>26,this.words[o]=67108863&t;if(0===a&&o>>13,h=0|o[1],p=8191&h,m=h>>>13,g=0|o[2],b=8191&g,v=g>>>13,y=0|o[3],w=8191&y,x=y>>>13,k=0|o[4],M=8191&k,_=k>>>13,S=0|o[5],E=8191&S,O=S>>>13,T=0|o[6],A=8191&T,C=T>>>13,j=0|o[7],z=8191&j,P=j>>>13,R=0|o[8],I=8191&R,D=R>>>13,N=0|o[9],B=8191&N,L=N>>>13,U=0|l[0],q=8191&U,F=U>>>13,H=0|l[1],W=8191&H,Y=H>>>13,Z=0|l[2],V=8191&Z,$=Z>>>13,K=0|l[3],X=8191&K,G=K>>>13,Q=0|l[4],J=8191&Q,nn=Q>>>13,tn=0|l[5],en=8191&tn,rn=tn>>>13,an=0|l[6],on=8191&an,ln=an>>>13,sn=0|l[7],un=8191&sn,cn=sn>>>13,dn=0|l[8],fn=8191&dn,hn=dn>>>13,pn=0|l[9],mn=8191&pn,gn=pn>>>13;e.negative=n.negative^t.negative,e.length=19;var bn=(u+(r=Math.imul(d,q))|0)+((8191&(i=(i=Math.imul(d,F))+Math.imul(f,q)|0))<<13)|0;u=((a=Math.imul(f,F))+(i>>>13)|0)+(bn>>>26)|0,bn&=67108863,r=Math.imul(p,q),i=(i=Math.imul(p,F))+Math.imul(m,q)|0,a=Math.imul(m,F);var vn=(u+(r=r+Math.imul(d,W)|0)|0)+((8191&(i=(i=i+Math.imul(d,Y)|0)+Math.imul(f,W)|0))<<13)|0;u=((a=a+Math.imul(f,Y)|0)+(i>>>13)|0)+(vn>>>26)|0,vn&=67108863,r=Math.imul(b,q),i=(i=Math.imul(b,F))+Math.imul(v,q)|0,a=Math.imul(v,F),r=r+Math.imul(p,W)|0,i=(i=i+Math.imul(p,Y)|0)+Math.imul(m,W)|0,a=a+Math.imul(m,Y)|0;var yn=(u+(r=r+Math.imul(d,V)|0)|0)+((8191&(i=(i=i+Math.imul(d,$)|0)+Math.imul(f,V)|0))<<13)|0;u=((a=a+Math.imul(f,$)|0)+(i>>>13)|0)+(yn>>>26)|0,yn&=67108863,r=Math.imul(w,q),i=(i=Math.imul(w,F))+Math.imul(x,q)|0,a=Math.imul(x,F),r=r+Math.imul(b,W)|0,i=(i=i+Math.imul(b,Y)|0)+Math.imul(v,W)|0,a=a+Math.imul(v,Y)|0,r=r+Math.imul(p,V)|0,i=(i=i+Math.imul(p,$)|0)+Math.imul(m,V)|0,a=a+Math.imul(m,$)|0;var wn=(u+(r=r+Math.imul(d,X)|0)|0)+((8191&(i=(i=i+Math.imul(d,G)|0)+Math.imul(f,X)|0))<<13)|0;u=((a=a+Math.imul(f,G)|0)+(i>>>13)|0)+(wn>>>26)|0,wn&=67108863,r=Math.imul(M,q),i=(i=Math.imul(M,F))+Math.imul(_,q)|0,a=Math.imul(_,F),r=r+Math.imul(w,W)|0,i=(i=i+Math.imul(w,Y)|0)+Math.imul(x,W)|0,a=a+Math.imul(x,Y)|0,r=r+Math.imul(b,V)|0,i=(i=i+Math.imul(b,$)|0)+Math.imul(v,V)|0,a=a+Math.imul(v,$)|0,r=r+Math.imul(p,X)|0,i=(i=i+Math.imul(p,G)|0)+Math.imul(m,X)|0,a=a+Math.imul(m,G)|0;var xn=(u+(r=r+Math.imul(d,J)|0)|0)+((8191&(i=(i=i+Math.imul(d,nn)|0)+Math.imul(f,J)|0))<<13)|0;u=((a=a+Math.imul(f,nn)|0)+(i>>>13)|0)+(xn>>>26)|0,xn&=67108863,r=Math.imul(E,q),i=(i=Math.imul(E,F))+Math.imul(O,q)|0,a=Math.imul(O,F),r=r+Math.imul(M,W)|0,i=(i=i+Math.imul(M,Y)|0)+Math.imul(_,W)|0,a=a+Math.imul(_,Y)|0,r=r+Math.imul(w,V)|0,i=(i=i+Math.imul(w,$)|0)+Math.imul(x,V)|0,a=a+Math.imul(x,$)|0,r=r+Math.imul(b,X)|0,i=(i=i+Math.imul(b,G)|0)+Math.imul(v,X)|0,a=a+Math.imul(v,G)|0,r=r+Math.imul(p,J)|0,i=(i=i+Math.imul(p,nn)|0)+Math.imul(m,J)|0,a=a+Math.imul(m,nn)|0;var kn=(u+(r=r+Math.imul(d,en)|0)|0)+((8191&(i=(i=i+Math.imul(d,rn)|0)+Math.imul(f,en)|0))<<13)|0;u=((a=a+Math.imul(f,rn)|0)+(i>>>13)|0)+(kn>>>26)|0,kn&=67108863,r=Math.imul(A,q),i=(i=Math.imul(A,F))+Math.imul(C,q)|0,a=Math.imul(C,F),r=r+Math.imul(E,W)|0,i=(i=i+Math.imul(E,Y)|0)+Math.imul(O,W)|0,a=a+Math.imul(O,Y)|0,r=r+Math.imul(M,V)|0,i=(i=i+Math.imul(M,$)|0)+Math.imul(_,V)|0,a=a+Math.imul(_,$)|0,r=r+Math.imul(w,X)|0,i=(i=i+Math.imul(w,G)|0)+Math.imul(x,X)|0,a=a+Math.imul(x,G)|0,r=r+Math.imul(b,J)|0,i=(i=i+Math.imul(b,nn)|0)+Math.imul(v,J)|0,a=a+Math.imul(v,nn)|0,r=r+Math.imul(p,en)|0,i=(i=i+Math.imul(p,rn)|0)+Math.imul(m,en)|0,a=a+Math.imul(m,rn)|0;var Mn=(u+(r=r+Math.imul(d,on)|0)|0)+((8191&(i=(i=i+Math.imul(d,ln)|0)+Math.imul(f,on)|0))<<13)|0;u=((a=a+Math.imul(f,ln)|0)+(i>>>13)|0)+(Mn>>>26)|0,Mn&=67108863,r=Math.imul(z,q),i=(i=Math.imul(z,F))+Math.imul(P,q)|0,a=Math.imul(P,F),r=r+Math.imul(A,W)|0,i=(i=i+Math.imul(A,Y)|0)+Math.imul(C,W)|0,a=a+Math.imul(C,Y)|0,r=r+Math.imul(E,V)|0,i=(i=i+Math.imul(E,$)|0)+Math.imul(O,V)|0,a=a+Math.imul(O,$)|0,r=r+Math.imul(M,X)|0,i=(i=i+Math.imul(M,G)|0)+Math.imul(_,X)|0,a=a+Math.imul(_,G)|0,r=r+Math.imul(w,J)|0,i=(i=i+Math.imul(w,nn)|0)+Math.imul(x,J)|0,a=a+Math.imul(x,nn)|0,r=r+Math.imul(b,en)|0,i=(i=i+Math.imul(b,rn)|0)+Math.imul(v,en)|0,a=a+Math.imul(v,rn)|0,r=r+Math.imul(p,on)|0,i=(i=i+Math.imul(p,ln)|0)+Math.imul(m,on)|0,a=a+Math.imul(m,ln)|0;var _n=(u+(r=r+Math.imul(d,un)|0)|0)+((8191&(i=(i=i+Math.imul(d,cn)|0)+Math.imul(f,un)|0))<<13)|0;u=((a=a+Math.imul(f,cn)|0)+(i>>>13)|0)+(_n>>>26)|0,_n&=67108863,r=Math.imul(I,q),i=(i=Math.imul(I,F))+Math.imul(D,q)|0,a=Math.imul(D,F),r=r+Math.imul(z,W)|0,i=(i=i+Math.imul(z,Y)|0)+Math.imul(P,W)|0,a=a+Math.imul(P,Y)|0,r=r+Math.imul(A,V)|0,i=(i=i+Math.imul(A,$)|0)+Math.imul(C,V)|0,a=a+Math.imul(C,$)|0,r=r+Math.imul(E,X)|0,i=(i=i+Math.imul(E,G)|0)+Math.imul(O,X)|0,a=a+Math.imul(O,G)|0,r=r+Math.imul(M,J)|0,i=(i=i+Math.imul(M,nn)|0)+Math.imul(_,J)|0,a=a+Math.imul(_,nn)|0,r=r+Math.imul(w,en)|0,i=(i=i+Math.imul(w,rn)|0)+Math.imul(x,en)|0,a=a+Math.imul(x,rn)|0,r=r+Math.imul(b,on)|0,i=(i=i+Math.imul(b,ln)|0)+Math.imul(v,on)|0,a=a+Math.imul(v,ln)|0,r=r+Math.imul(p,un)|0,i=(i=i+Math.imul(p,cn)|0)+Math.imul(m,un)|0,a=a+Math.imul(m,cn)|0;var Sn=(u+(r=r+Math.imul(d,fn)|0)|0)+((8191&(i=(i=i+Math.imul(d,hn)|0)+Math.imul(f,fn)|0))<<13)|0;u=((a=a+Math.imul(f,hn)|0)+(i>>>13)|0)+(Sn>>>26)|0,Sn&=67108863,r=Math.imul(B,q),i=(i=Math.imul(B,F))+Math.imul(L,q)|0,a=Math.imul(L,F),r=r+Math.imul(I,W)|0,i=(i=i+Math.imul(I,Y)|0)+Math.imul(D,W)|0,a=a+Math.imul(D,Y)|0,r=r+Math.imul(z,V)|0,i=(i=i+Math.imul(z,$)|0)+Math.imul(P,V)|0,a=a+Math.imul(P,$)|0,r=r+Math.imul(A,X)|0,i=(i=i+Math.imul(A,G)|0)+Math.imul(C,X)|0,a=a+Math.imul(C,G)|0,r=r+Math.imul(E,J)|0,i=(i=i+Math.imul(E,nn)|0)+Math.imul(O,J)|0,a=a+Math.imul(O,nn)|0,r=r+Math.imul(M,en)|0,i=(i=i+Math.imul(M,rn)|0)+Math.imul(_,en)|0,a=a+Math.imul(_,rn)|0,r=r+Math.imul(w,on)|0,i=(i=i+Math.imul(w,ln)|0)+Math.imul(x,on)|0,a=a+Math.imul(x,ln)|0,r=r+Math.imul(b,un)|0,i=(i=i+Math.imul(b,cn)|0)+Math.imul(v,un)|0,a=a+Math.imul(v,cn)|0,r=r+Math.imul(p,fn)|0,i=(i=i+Math.imul(p,hn)|0)+Math.imul(m,fn)|0,a=a+Math.imul(m,hn)|0;var En=(u+(r=r+Math.imul(d,mn)|0)|0)+((8191&(i=(i=i+Math.imul(d,gn)|0)+Math.imul(f,mn)|0))<<13)|0;u=((a=a+Math.imul(f,gn)|0)+(i>>>13)|0)+(En>>>26)|0,En&=67108863,r=Math.imul(B,W),i=(i=Math.imul(B,Y))+Math.imul(L,W)|0,a=Math.imul(L,Y),r=r+Math.imul(I,V)|0,i=(i=i+Math.imul(I,$)|0)+Math.imul(D,V)|0,a=a+Math.imul(D,$)|0,r=r+Math.imul(z,X)|0,i=(i=i+Math.imul(z,G)|0)+Math.imul(P,X)|0,a=a+Math.imul(P,G)|0,r=r+Math.imul(A,J)|0,i=(i=i+Math.imul(A,nn)|0)+Math.imul(C,J)|0,a=a+Math.imul(C,nn)|0,r=r+Math.imul(E,en)|0,i=(i=i+Math.imul(E,rn)|0)+Math.imul(O,en)|0,a=a+Math.imul(O,rn)|0,r=r+Math.imul(M,on)|0,i=(i=i+Math.imul(M,ln)|0)+Math.imul(_,on)|0,a=a+Math.imul(_,ln)|0,r=r+Math.imul(w,un)|0,i=(i=i+Math.imul(w,cn)|0)+Math.imul(x,un)|0,a=a+Math.imul(x,cn)|0,r=r+Math.imul(b,fn)|0,i=(i=i+Math.imul(b,hn)|0)+Math.imul(v,fn)|0,a=a+Math.imul(v,hn)|0;var On=(u+(r=r+Math.imul(p,mn)|0)|0)+((8191&(i=(i=i+Math.imul(p,gn)|0)+Math.imul(m,mn)|0))<<13)|0;u=((a=a+Math.imul(m,gn)|0)+(i>>>13)|0)+(On>>>26)|0,On&=67108863,r=Math.imul(B,V),i=(i=Math.imul(B,$))+Math.imul(L,V)|0,a=Math.imul(L,$),r=r+Math.imul(I,X)|0,i=(i=i+Math.imul(I,G)|0)+Math.imul(D,X)|0,a=a+Math.imul(D,G)|0,r=r+Math.imul(z,J)|0,i=(i=i+Math.imul(z,nn)|0)+Math.imul(P,J)|0,a=a+Math.imul(P,nn)|0,r=r+Math.imul(A,en)|0,i=(i=i+Math.imul(A,rn)|0)+Math.imul(C,en)|0,a=a+Math.imul(C,rn)|0,r=r+Math.imul(E,on)|0,i=(i=i+Math.imul(E,ln)|0)+Math.imul(O,on)|0,a=a+Math.imul(O,ln)|0,r=r+Math.imul(M,un)|0,i=(i=i+Math.imul(M,cn)|0)+Math.imul(_,un)|0,a=a+Math.imul(_,cn)|0,r=r+Math.imul(w,fn)|0,i=(i=i+Math.imul(w,hn)|0)+Math.imul(x,fn)|0,a=a+Math.imul(x,hn)|0;var Tn=(u+(r=r+Math.imul(b,mn)|0)|0)+((8191&(i=(i=i+Math.imul(b,gn)|0)+Math.imul(v,mn)|0))<<13)|0;u=((a=a+Math.imul(v,gn)|0)+(i>>>13)|0)+(Tn>>>26)|0,Tn&=67108863,r=Math.imul(B,X),i=(i=Math.imul(B,G))+Math.imul(L,X)|0,a=Math.imul(L,G),r=r+Math.imul(I,J)|0,i=(i=i+Math.imul(I,nn)|0)+Math.imul(D,J)|0,a=a+Math.imul(D,nn)|0,r=r+Math.imul(z,en)|0,i=(i=i+Math.imul(z,rn)|0)+Math.imul(P,en)|0,a=a+Math.imul(P,rn)|0,r=r+Math.imul(A,on)|0,i=(i=i+Math.imul(A,ln)|0)+Math.imul(C,on)|0,a=a+Math.imul(C,ln)|0,r=r+Math.imul(E,un)|0,i=(i=i+Math.imul(E,cn)|0)+Math.imul(O,un)|0,a=a+Math.imul(O,cn)|0,r=r+Math.imul(M,fn)|0,i=(i=i+Math.imul(M,hn)|0)+Math.imul(_,fn)|0,a=a+Math.imul(_,hn)|0;var An=(u+(r=r+Math.imul(w,mn)|0)|0)+((8191&(i=(i=i+Math.imul(w,gn)|0)+Math.imul(x,mn)|0))<<13)|0;u=((a=a+Math.imul(x,gn)|0)+(i>>>13)|0)+(An>>>26)|0,An&=67108863,r=Math.imul(B,J),i=(i=Math.imul(B,nn))+Math.imul(L,J)|0,a=Math.imul(L,nn),r=r+Math.imul(I,en)|0,i=(i=i+Math.imul(I,rn)|0)+Math.imul(D,en)|0,a=a+Math.imul(D,rn)|0,r=r+Math.imul(z,on)|0,i=(i=i+Math.imul(z,ln)|0)+Math.imul(P,on)|0,a=a+Math.imul(P,ln)|0,r=r+Math.imul(A,un)|0,i=(i=i+Math.imul(A,cn)|0)+Math.imul(C,un)|0,a=a+Math.imul(C,cn)|0,r=r+Math.imul(E,fn)|0,i=(i=i+Math.imul(E,hn)|0)+Math.imul(O,fn)|0,a=a+Math.imul(O,hn)|0;var Cn=(u+(r=r+Math.imul(M,mn)|0)|0)+((8191&(i=(i=i+Math.imul(M,gn)|0)+Math.imul(_,mn)|0))<<13)|0;u=((a=a+Math.imul(_,gn)|0)+(i>>>13)|0)+(Cn>>>26)|0,Cn&=67108863,r=Math.imul(B,en),i=(i=Math.imul(B,rn))+Math.imul(L,en)|0,a=Math.imul(L,rn),r=r+Math.imul(I,on)|0,i=(i=i+Math.imul(I,ln)|0)+Math.imul(D,on)|0,a=a+Math.imul(D,ln)|0,r=r+Math.imul(z,un)|0,i=(i=i+Math.imul(z,cn)|0)+Math.imul(P,un)|0,a=a+Math.imul(P,cn)|0,r=r+Math.imul(A,fn)|0,i=(i=i+Math.imul(A,hn)|0)+Math.imul(C,fn)|0,a=a+Math.imul(C,hn)|0;var jn=(u+(r=r+Math.imul(E,mn)|0)|0)+((8191&(i=(i=i+Math.imul(E,gn)|0)+Math.imul(O,mn)|0))<<13)|0;u=((a=a+Math.imul(O,gn)|0)+(i>>>13)|0)+(jn>>>26)|0,jn&=67108863,r=Math.imul(B,on),i=(i=Math.imul(B,ln))+Math.imul(L,on)|0,a=Math.imul(L,ln),r=r+Math.imul(I,un)|0,i=(i=i+Math.imul(I,cn)|0)+Math.imul(D,un)|0,a=a+Math.imul(D,cn)|0,r=r+Math.imul(z,fn)|0,i=(i=i+Math.imul(z,hn)|0)+Math.imul(P,fn)|0,a=a+Math.imul(P,hn)|0;var zn=(u+(r=r+Math.imul(A,mn)|0)|0)+((8191&(i=(i=i+Math.imul(A,gn)|0)+Math.imul(C,mn)|0))<<13)|0;u=((a=a+Math.imul(C,gn)|0)+(i>>>13)|0)+(zn>>>26)|0,zn&=67108863,r=Math.imul(B,un),i=(i=Math.imul(B,cn))+Math.imul(L,un)|0,a=Math.imul(L,cn),r=r+Math.imul(I,fn)|0,i=(i=i+Math.imul(I,hn)|0)+Math.imul(D,fn)|0,a=a+Math.imul(D,hn)|0;var Pn=(u+(r=r+Math.imul(z,mn)|0)|0)+((8191&(i=(i=i+Math.imul(z,gn)|0)+Math.imul(P,mn)|0))<<13)|0;u=((a=a+Math.imul(P,gn)|0)+(i>>>13)|0)+(Pn>>>26)|0,Pn&=67108863,r=Math.imul(B,fn),i=(i=Math.imul(B,hn))+Math.imul(L,fn)|0,a=Math.imul(L,hn);var Rn=(u+(r=r+Math.imul(I,mn)|0)|0)+((8191&(i=(i=i+Math.imul(I,gn)|0)+Math.imul(D,mn)|0))<<13)|0;u=((a=a+Math.imul(D,gn)|0)+(i>>>13)|0)+(Rn>>>26)|0,Rn&=67108863;var In=(u+(r=Math.imul(B,mn))|0)+((8191&(i=(i=Math.imul(B,gn))+Math.imul(L,mn)|0))<<13)|0;return u=((a=Math.imul(L,gn))+(i>>>13)|0)+(In>>>26)|0,In&=67108863,s[0]=bn,s[1]=vn,s[2]=yn,s[3]=wn,s[4]=xn,s[5]=kn,s[6]=Mn,s[7]=_n,s[8]=Sn,s[9]=En,s[10]=On,s[11]=Tn,s[12]=An,s[13]=Cn,s[14]=jn,s[15]=zn,s[16]=Pn,s[17]=Rn,s[18]=In,0!==u&&(s[19]=u,e.length++),e};function p(n,t,e){return(new m).mulp(n,t,e)}function m(n,t){this.x=n,this.y=t}Math.imul||(h=f),a.prototype.mulTo=function(n,t){var e=this.length+n.length;return 10===this.length&&10===n.length?h(this,n,t):e<63?f(this,n,t):e<1024?function(n,t,e){e.negative=t.negative^n.negative,e.length=n.length+t.length;for(var r=0,i=0,a=0;a>>26)|0)>>>26,o&=67108863}e.words[a]=l,r=o,o=i}return 0!==r?e.words[a]=r:e.length--,e.strip()}(this,n,t):p(this,n,t)},m.prototype.makeRBT=function(n){for(var t=new Array(n),e=a.prototype._countBits(n)-1,r=0;r>=1;return r},m.prototype.permute=function(n,t,e,r,i,a){for(var o=0;o>>=1)i++;return 1<>>=13,e[2*o+1]=8191&a,a>>>=13;for(o=2*t;o>=26,t+=i/67108864|0,t+=a>>>26,this.words[e]=67108863&a}return 0!==t&&(this.words[e]=t,this.length++),this},a.prototype.muln=function(n){return this.clone().imuln(n)},a.prototype.sqr=function(){return this.mul(this)},a.prototype.isqr=function(){return this.imul(this.clone())},a.prototype.pow=function(n){var t=function(n){for(var t=new Array(n.bitLength()),e=0;e>>i}return t}(n);if(0===t.length)return new a(1);for(var e=this,r=0;r=0);var t,e=n%26,i=(n-e)/26,a=67108863>>>26-e<<26-e;if(0!==e){var o=0;for(t=0;t>>26-e}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=0),i=t?(t-t%26)/26:0;var a=n%26,o=Math.min((n-a)/26,this.length),l=67108863^67108863>>>a<o)for(this.length-=o,u=0;u=0&&(0!==c||u>=i);u--){var d=0|this.words[u];this.words[u]=c<<26-a|d>>>a,c=d&l}return s&&0!==c&&(s.words[s.length++]=c),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},a.prototype.ishrn=function(n,t,e){return r(0===this.negative),this.iushrn(n,t,e)},a.prototype.shln=function(n){return this.clone().ishln(n)},a.prototype.ushln=function(n){return this.clone().iushln(n)},a.prototype.shrn=function(n){return this.clone().ishrn(n)},a.prototype.ushrn=function(n){return this.clone().iushrn(n)},a.prototype.testn=function(n){r("number"==typeof n&&n>=0);var t=n%26,e=(n-t)/26,i=1<=0);var t=n%26,e=(n-t)/26;if(r(0===this.negative,"imaskn works only with positive numbers"),this.length<=e)return this;if(0!==t&&e++,this.length=Math.min(e,this.length),0!==t){var i=67108863^67108863>>>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(n){if(r("number"==typeof n),r(n<67108864),n<0)return this.iaddn(-n);if(0!==this.negative)return this.negative=0,this.iaddn(n),this.negative=1,this;if(this.words[0]-=n,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var t=0;t>26)-(s/67108864|0),this.words[i+e]=67108863&a}for(;i>26,this.words[i+e]=67108863&a;if(0===l)return this.strip();for(r(-1===l),l=0,i=0;i>26,this.words[i]=67108863&a;return this.negative=1,this.strip()},a.prototype._wordDiv=function(n,t){var e=(this.length,n.length),r=this.clone(),i=n,o=0|i.words[i.length-1];0!==(e=26-this._countBits(o))&&(i=i.ushln(e),r.iushln(e),o=0|i.words[i.length-1]);var l,s=r.length-i.length;if("mod"!==t){(l=new a(null)).length=s+1,l.words=new Array(l.length);for(var u=0;u=0;d--){var f=67108864*(0|r.words[i.length+d])+(0|r.words[i.length+d-1]);for(f=Math.min(f/o|0,67108863),r._ishlnsubmul(i,f,d);0!==r.negative;)f--,r.negative=0,r._ishlnsubmul(i,1,d),r.isZero()||(r.negative^=1);l&&(l.words[d]=f)}return l&&l.strip(),r.strip(),"div"!==t&&0!==e&&r.iushrn(e),{div:l||null,mod:r}},a.prototype.divmod=function(n,t,e){return r(!n.isZero()),this.isZero()?{div:new a(0),mod:new a(0)}:0!==this.negative&&0===n.negative?(l=this.neg().divmod(n,t),"mod"!==t&&(i=l.div.neg()),"div"!==t&&(o=l.mod.neg(),e&&0!==o.negative&&o.iadd(n)),{div:i,mod:o}):0===this.negative&&0!==n.negative?(l=this.divmod(n.neg(),t),"mod"!==t&&(i=l.div.neg()),{div:i,mod:l.mod}):0!=(this.negative&n.negative)?(l=this.neg().divmod(n.neg(),t),"div"!==t&&(o=l.mod.neg(),e&&0!==o.negative&&o.isub(n)),{div:l.div,mod:o}):n.length>this.length||this.cmp(n)<0?{div:new a(0),mod:this}:1===n.length?"div"===t?{div:this.divn(n.words[0]),mod:null}:"mod"===t?{div:null,mod:new a(this.modn(n.words[0]))}:{div:this.divn(n.words[0]),mod:new a(this.modn(n.words[0]))}:this._wordDiv(n,t);var i,o,l},a.prototype.div=function(n){return this.divmod(n,"div",!1).div},a.prototype.mod=function(n){return this.divmod(n,"mod",!1).mod},a.prototype.umod=function(n){return this.divmod(n,"mod",!0).mod},a.prototype.divRound=function(n){var t=this.divmod(n);if(t.mod.isZero())return t.div;var e=0!==t.div.negative?t.mod.isub(n):t.mod,r=n.ushrn(1),i=n.andln(1),a=e.cmp(r);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(n){r(n<=67108863);for(var t=(1<<26)%n,e=0,i=this.length-1;i>=0;i--)e=(t*e+(0|this.words[i]))%n;return e},a.prototype.idivn=function(n){r(n<=67108863);for(var t=0,e=this.length-1;e>=0;e--){var i=(0|this.words[e])+67108864*t;this.words[e]=i/n|0,t=i%n}return this.strip()},a.prototype.divn=function(n){return this.clone().idivn(n)},a.prototype.egcd=function(n){r(0===n.negative),r(!n.isZero());var t=this,e=n.clone();t=0!==t.negative?t.umod(n):t.clone();for(var i=new a(1),o=new a(0),l=new a(0),s=new a(1),u=0;t.isEven()&&e.isEven();)t.iushrn(1),e.iushrn(1),++u;for(var c=e.clone(),d=t.clone();!t.isZero();){for(var f=0,h=1;0==(t.words[0]&h)&&f<26;++f,h<<=1);if(f>0)for(t.iushrn(f);f-- >0;)(i.isOdd()||o.isOdd())&&(i.iadd(c),o.isub(d)),i.iushrn(1),o.iushrn(1);for(var p=0,m=1;0==(e.words[0]&m)&&p<26;++p,m<<=1);if(p>0)for(e.iushrn(p);p-- >0;)(l.isOdd()||s.isOdd())&&(l.iadd(c),s.isub(d)),l.iushrn(1),s.iushrn(1);t.cmp(e)>=0?(t.isub(e),i.isub(l),o.isub(s)):(e.isub(t),l.isub(i),s.isub(o))}return{a:l,b:s,gcd:e.iushln(u)}},a.prototype._invmp=function(n){r(0===n.negative),r(!n.isZero());var t=this,e=n.clone();t=0!==t.negative?t.umod(n):t.clone();for(var i,o=new a(1),l=new a(0),s=e.clone();t.cmpn(1)>0&&e.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(s),o.iushrn(1);for(var d=0,f=1;0==(e.words[0]&f)&&d<26;++d,f<<=1);if(d>0)for(e.iushrn(d);d-- >0;)l.isOdd()&&l.iadd(s),l.iushrn(1);t.cmp(e)>=0?(t.isub(e),o.isub(l)):(e.isub(t),l.isub(o))}return(i=0===t.cmpn(1)?o:l).cmpn(0)<0&&i.iadd(n),i},a.prototype.gcd=function(n){if(this.isZero())return n.abs();if(n.isZero())return this.abs();var t=this.clone(),e=n.clone();t.negative=0,e.negative=0;for(var r=0;t.isEven()&&e.isEven();r++)t.iushrn(1),e.iushrn(1);for(;;){for(;t.isEven();)t.iushrn(1);for(;e.isEven();)e.iushrn(1);var i=t.cmp(e);if(i<0){var a=t;t=e,e=a}else if(0===i||0===e.cmpn(1))break;t.isub(e)}return e.iushln(r)},a.prototype.invm=function(n){return this.egcd(n).a.umod(n)},a.prototype.isEven=function(){return 0==(1&this.words[0])},a.prototype.isOdd=function(){return 1==(1&this.words[0])},a.prototype.andln=function(n){return this.words[0]&n},a.prototype.bincn=function(n){r("number"==typeof n);var t=n%26,e=(n-t)/26,i=1<>>26,l&=67108863,this.words[o]=l}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(n){var t,e=n<0;if(0!==this.negative&&!e)return-1;if(0===this.negative&&e)return 1;if(this.strip(),this.length>1)t=1;else{e&&(n=-n),r(n<=67108863,"Number is too big");var i=0|this.words[0];t=i===n?0:in.length)return 1;if(this.length=0;e--){var r=0|this.words[e],i=0|n.words[e];if(r!==i){ri&&(t=1);break}}return t},a.prototype.gtn=function(n){return 1===this.cmpn(n)},a.prototype.gt=function(n){return 1===this.cmp(n)},a.prototype.gten=function(n){return this.cmpn(n)>=0},a.prototype.gte=function(n){return this.cmp(n)>=0},a.prototype.ltn=function(n){return-1===this.cmpn(n)},a.prototype.lt=function(n){return-1===this.cmp(n)},a.prototype.lten=function(n){return this.cmpn(n)<=0},a.prototype.lte=function(n){return this.cmp(n)<=0},a.prototype.eqn=function(n){return 0===this.cmpn(n)},a.prototype.eq=function(n){return 0===this.cmp(n)},a.red=function(n){return new k(n)},a.prototype.toRed=function(n){return r(!this.red,"Already a number in reduction context"),r(0===this.negative,"red works only with positives"),n.convertTo(this)._forceRed(n)},a.prototype.fromRed=function(){return r(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},a.prototype._forceRed=function(n){return this.red=n,this},a.prototype.forceRed=function(n){return r(!this.red,"Already a number in reduction context"),this._forceRed(n)},a.prototype.redAdd=function(n){return r(this.red,"redAdd works only with red numbers"),this.red.add(this,n)},a.prototype.redIAdd=function(n){return r(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,n)},a.prototype.redSub=function(n){return r(this.red,"redSub works only with red numbers"),this.red.sub(this,n)},a.prototype.redISub=function(n){return r(this.red,"redISub works only with red numbers"),this.red.isub(this,n)},a.prototype.redShl=function(n){return r(this.red,"redShl works only with red numbers"),this.red.shl(this,n)},a.prototype.redMul=function(n){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,n),this.red.mul(this,n)},a.prototype.redIMul=function(n){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,n),this.red.imul(this,n)},a.prototype.redSqr=function(){return r(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},a.prototype.redISqr=function(){return r(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},a.prototype.redSqrt=function(){return r(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},a.prototype.redInvm=function(){return r(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},a.prototype.redNeg=function(){return r(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},a.prototype.redPow=function(n){return r(this.red&&!n.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,n)};var g={k256:null,p224:null,p192:null,p25519:null};function b(n,t){this.name=n,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 v(){b.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function y(){b.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function w(){b.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function x(){b.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function k(n){if("string"==typeof n){var t=a._prime(n);this.m=t.p,this.prime=t}else r(n.gtn(1),"modulus must be greater than 1"),this.m=n,this.prime=null}function M(n){k.call(this,n),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)}b.prototype._tmp=function(){var n=new a(null);return n.words=new Array(Math.ceil(this.n/13)),n},b.prototype.ireduce=function(n){var t,e=n;do{this.split(e,this.tmp),t=(e=(e=this.imulK(e)).iadd(this.tmp)).bitLength()}while(t>this.n);var r=t0?e.isub(this.p):void 0!==e.strip?e.strip():e._strip(),e},b.prototype.split=function(n,t){n.iushrn(this.n,0,t)},b.prototype.imulK=function(n){return n.imul(this.k)},i(v,b),v.prototype.split=function(n,t){for(var e=Math.min(n.length,9),r=0;r>>22,i=a}i>>>=22,n.words[r-10]=i,0===i&&n.length>10?n.length-=10:n.length-=9},v.prototype.imulK=function(n){n.words[n.length]=0,n.words[n.length+1]=0,n.length+=2;for(var t=0,e=0;e>>=26,n.words[e]=i,t=r}return 0!==t&&(n.words[n.length++]=t),n},a._prime=function(n){if(g[n])return g[n];var t;if("k256"===n)t=new v;else if("p224"===n)t=new y;else if("p192"===n)t=new w;else{if("p25519"!==n)throw new Error("Unknown prime "+n);t=new x}return g[n]=t,t},k.prototype._verify1=function(n){r(0===n.negative,"red works only with positives"),r(n.red,"red works only with red numbers")},k.prototype._verify2=function(n,t){r(0==(n.negative|t.negative),"red works only with positives"),r(n.red&&n.red===t.red,"red works only with red numbers")},k.prototype.imod=function(n){return this.prime?this.prime.ireduce(n)._forceRed(this):n.umod(this.m)._forceRed(this)},k.prototype.neg=function(n){return n.isZero()?n.clone():this.m.sub(n)._forceRed(this)},k.prototype.add=function(n,t){this._verify2(n,t);var e=n.add(t);return e.cmp(this.m)>=0&&e.isub(this.m),e._forceRed(this)},k.prototype.iadd=function(n,t){this._verify2(n,t);var e=n.iadd(t);return e.cmp(this.m)>=0&&e.isub(this.m),e},k.prototype.sub=function(n,t){this._verify2(n,t);var e=n.sub(t);return e.cmpn(0)<0&&e.iadd(this.m),e._forceRed(this)},k.prototype.isub=function(n,t){this._verify2(n,t);var e=n.isub(t);return e.cmpn(0)<0&&e.iadd(this.m),e},k.prototype.shl=function(n,t){return this._verify1(n),this.imod(n.ushln(t))},k.prototype.imul=function(n,t){return this._verify2(n,t),this.imod(n.imul(t))},k.prototype.mul=function(n,t){return this._verify2(n,t),this.imod(n.mul(t))},k.prototype.isqr=function(n){return this.imul(n,n.clone())},k.prototype.sqr=function(n){return this.mul(n,n)},k.prototype.sqrt=function(n){if(n.isZero())return n.clone();var t=this.m.andln(3);if(r(t%2==1),3===t){var e=this.m.add(new a(1)).iushrn(2);return this.pow(n,e)}for(var i=this.m.subn(1),o=0;!i.isZero()&&0===i.andln(1);)o++,i.iushrn(1);r(!i.isZero());var l=new a(1).toRed(this),s=l.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(s);)c.redIAdd(s);for(var d=this.pow(c,i),f=this.pow(n,i.addn(1).iushrn(1)),h=this.pow(n,i),p=o;0!==h.cmp(l);){for(var m=h,g=0;0!==m.cmp(l);g++)m=m.redSqr();r(g=0;r--){for(var u=t.words[r],c=s-1;c>=0;c--){var d=u>>c&1;i!==e[0]&&(i=this.sqr(i)),0!==d||0!==o?(o<<=1,o|=d,(4===++l||0===r&&0===c)&&(i=this.mul(i,e[o]),l=0,o=0)):l=0}s=26}return i},k.prototype.convertTo=function(n){var t=n.umod(this.m);return t===n?t.clone():t},k.prototype.convertFrom=function(n){var t=n.clone();return t.red=null,t},a.mont=function(n){return new M(n)},i(M,k),M.prototype.convertTo=function(n){return this.imod(n.ushln(this.shift))},M.prototype.convertFrom=function(n){var t=this.imod(n.mul(this.rinv));return t.red=null,t},M.prototype.imul=function(n,t){if(n.isZero()||t.isZero())return n.words[0]=0,n.length=1,n;var e=n.imul(t),r=e.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=e.isub(r).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)},M.prototype.mul=function(n,t){if(n.isZero()||t.isZero())return new a(0)._forceRed(this);var e=n.mul(t),r=e.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=e.isub(r).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)},M.prototype.invm=function(n){return this.imod(n._invmp(this.m).mul(this.r2))._forceRed(this)}}(n,this)}).call(this,e(27)(n))},function(n,t,e){"use strict";var r=this&&this.__importDefault||function(n){return n&&n.__esModule?n:{default:n}};Object.defineProperty(t,"__esModule",{value:!0});var i=r(e(203));t.generate=i.default;var a={red:"#F5222D",volcano:"#FA541C",orange:"#FA8C16",gold:"#FAAD14",yellow:"#FADB14",lime:"#A0D911",green:"#52C41A",cyan:"#13C2C2",blue:"#1890FF",geekblue:"#2F54EB",purple:"#722ED1",magenta:"#EB2F96",grey:"#666666"};t.presetPrimaryColors=a;var o={};t.presetPalettes=o,Object.keys(a).forEach((function(n){o[n]=i.default(a[n]),o[n].primary=o[n][5]}));var l=o.red;t.red=l;var s=o.volcano;t.volcano=s;var u=o.gold;t.gold=u;var c=o.orange;t.orange=c;var d=o.yellow;t.yellow=d;var f=o.lime;t.lime=f;var h=o.green;t.green=h;var p=o.cyan;t.cyan=p;var m=o.blue;t.blue=m;var g=o.geekblue;t.geekblue=g;var b=o.purple;t.purple=b;var v=o.magenta;t.magenta=v;var y=o.grey;t.grey=y},function(n,t){var e=[],r=[];function i(n,t){if(t=t||{},void 0===n)throw new Error("insert-css: You need to provide a CSS string. Usage: insertCss(cssString[, options]).");var i,a=!0===t.prepend?"prepend":"append",o=void 0!==t.container?t.container:document.querySelector("head"),l=e.indexOf(o);return-1===l&&(l=e.push(o)-1,r[l]={}),void 0!==r[l]&&void 0!==r[l][a]?i=r[l][a]:(i=r[l][a]=function(){var n=document.createElement("style");return n.setAttribute("type","text/css"),n}(),"prepend"===a?o.insertBefore(i,o.childNodes[0]):o.appendChild(i)),65279===n.charCodeAt(0)&&(n=n.substr(1,n.length)),i.styleSheet?i.styleSheet.cssText+=n:i.textContent+=n,i}n.exports=i,n.exports.insertCss=i},function(n,t,e){"use strict";function r(n,t){(null==t||t>n.length)&&(t=n.length);for(var e=0,r=new Array(t);en.length)&&(t=n.length);for(var e=0,r=new Array(t);e=0||Object.prototype.propertyIsEnumerable.call(n,e)&&(a[e]=n[e])}return a}},function(n,t,e){"use strict";var r=e(28);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=r(e(107)),a=r(e(109)),o=e(75),l={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};var s=function(n){var t=n.icon,e=n.className,r=n.onClick,s=n.style,u=n.primaryColor,c=n.secondaryColor,d=(0,i.default)(n,["icon","className","onClick","style","primaryColor","secondaryColor"]),f=l;if(u&&(f={primaryColor:u,secondaryColor:c||(0,o.getSecondaryColor)(u)}),(0,o.useInsertStyles)(),(0,o.warning)((0,o.isIconDefinition)(t),"icon should be icon definiton, but got ".concat(t)),!(0,o.isIconDefinition)(t))return null;var h=t;return h&&"function"==typeof h.icon&&(h=(0,a.default)((0,a.default)({},h),{},{icon:h.icon(f.primaryColor,f.secondaryColor)})),(0,o.generate)(h.icon,"svg-".concat(h.name),(0,a.default)({className:e,onClick:r,style:s,"data-icon":h.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},d))};s.displayName="IconReact",s.getTwoToneColors=function(){return(0,a.default)({},l)},s.setTwoToneColors=function(n){var t=n.primaryColor,e=n.secondaryColor;l.primaryColor=t,l.secondaryColor=e||(0,o.getSecondaryColor)(t),l.calculated=!!e};var u=s;t.default=u},function(n,t,e){var r=e(1);function i(n,t){var e=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable}))),e.push.apply(e,r)}return e}n.exports=function(n){for(var t=1;t0?("string"==typeof t||o.objectMode||Object.getPrototypeOf(t)===u.prototype||(t=function(n){return u.from(n)}(t)),r?o.endEmitted?n.emit("error",new Error("stream.unshift() after end event")):x(n,o,t,!0):o.ended?n.emit("error",new Error("stream.push() after EOF")):(o.reading=!1,o.decoder&&!e?(t=o.decoder.write(t),o.objectMode||0!==t.length?x(n,o,t,!1):S(n,o)):x(n,o,t,!1))):r||(o.reading=!1));return function(n){return!n.ended&&(n.needReadable||n.lengtht.highWaterMark&&(t.highWaterMark=function(n){return n>=8388608?n=8388608:(n--,n|=n>>>1,n|=n>>>2,n|=n>>>4,n|=n>>>8,n|=n>>>16,n++),n}(n)),n<=t.length?n:t.ended?t.length:(t.needReadable=!0,0))}function M(n){var t=n._readableState;t.needReadable=!1,t.emittedReadable||(h("emitReadable",t.flowing),t.emittedReadable=!0,t.sync?i.nextTick(_,n):_(n))}function _(n){h("emit readable"),n.emit("readable"),A(n)}function S(n,t){t.readingMore||(t.readingMore=!0,i.nextTick(E,n,t))}function E(n,t){for(var e=t.length;!t.reading&&!t.flowing&&!t.ended&&t.length=t.length?(e=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.head.data:t.buffer.concat(t.length),t.buffer.clear()):e=function(n,t,e){var r;na.length?a.length:n;if(o===a.length?i+=a:i+=a.slice(0,n),0===(n-=o)){o===a.length?(++r,e.next?t.head=e.next:t.head=t.tail=null):(t.head=e,e.data=a.slice(o));break}++r}return t.length-=r,i}(n,t):function(n,t){var e=u.allocUnsafe(n),r=t.head,i=1;r.data.copy(e),n-=r.data.length;for(;r=r.next;){var a=r.data,o=n>a.length?a.length:n;if(a.copy(e,e.length-n,0,o),0===(n-=o)){o===a.length?(++i,r.next?t.head=r.next:t.head=t.tail=null):(t.head=r,r.data=a.slice(o));break}++i}return t.length-=i,e}(n,t);return r}(n,t.buffer,t.decoder),e);var e}function j(n){var t=n._readableState;if(t.length>0)throw new Error('"endReadable()" called on non-empty stream');t.endEmitted||(t.ended=!0,i.nextTick(z,t,n))}function z(n,t){n.endEmitted||0!==n.length||(n.endEmitted=!0,t.readable=!1,t.emit("end"))}function P(n,t){for(var e=0,r=n.length;e=t.highWaterMark||t.ended))return h("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?j(this):M(this),null;if(0===(n=k(n,t))&&t.ended)return 0===t.length&&j(this),null;var r,i=t.needReadable;return h("need readable",i),(0===t.length||t.length-n0?C(n,t):null)?(t.needReadable=!0,n=0):t.length-=n,0===t.length&&(t.ended||(t.needReadable=!0),e!==n&&t.ended&&j(this)),null!==r&&this.emit("data",r),r},y.prototype._read=function(n){this.emit("error",new Error("_read() is not implemented"))},y.prototype.pipe=function(n,t){var e=this,a=this._readableState;switch(a.pipesCount){case 0:a.pipes=n;break;case 1:a.pipes=[a.pipes,n];break;default:a.pipes.push(n)}a.pipesCount+=1,h("pipe count=%d opts=%j",a.pipesCount,t);var s=(!t||!1!==t.end)&&n!==r.stdout&&n!==r.stderr?c:y;function u(t,r){h("onunpipe"),t===e&&r&&!1===r.hasUnpiped&&(r.hasUnpiped=!0,h("cleanup"),n.removeListener("close",b),n.removeListener("finish",v),n.removeListener("drain",d),n.removeListener("error",g),n.removeListener("unpipe",u),e.removeListener("end",c),e.removeListener("end",y),e.removeListener("data",m),f=!0,!a.awaitDrain||n._writableState&&!n._writableState.needDrain||d())}function c(){h("onend"),n.end()}a.endEmitted?i.nextTick(s):e.once("end",s),n.on("unpipe",u);var d=function(n){return function(){var t=n._readableState;h("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&l(n,"data")&&(t.flowing=!0,A(n))}}(e);n.on("drain",d);var f=!1;var p=!1;function m(t){h("ondata"),p=!1,!1!==n.write(t)||p||((1===a.pipesCount&&a.pipes===n||a.pipesCount>1&&-1!==P(a.pipes,n))&&!f&&(h("false write response, pause",e._readableState.awaitDrain),e._readableState.awaitDrain++,p=!0),e.pause())}function g(t){h("onerror",t),y(),n.removeListener("error",g),0===l(n,"error")&&n.emit("error",t)}function b(){n.removeListener("finish",v),y()}function v(){h("onfinish"),n.removeListener("close",b),y()}function y(){h("unpipe"),e.unpipe(n)}return e.on("data",m),function(n,t,e){if("function"==typeof n.prependListener)return n.prependListener(t,e);n._events&&n._events[t]?o(n._events[t])?n._events[t].unshift(e):n._events[t]=[e,n._events[t]]:n.on(t,e)}(n,"error",g),n.once("close",b),n.once("finish",v),n.emit("pipe",e),a.flowing||(h("pipe resume"),e.resume()),n},y.prototype.unpipe=function(n){var t=this._readableState,e={hasUnpiped:!1};if(0===t.pipesCount)return this;if(1===t.pipesCount)return n&&n!==t.pipes||(n||(n=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,n&&n.emit("unpipe",this,e)),this;if(!n){var r=t.pipes,i=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var a=0;a=this._blockSize;){for(var a=this._blockOffset;a0;++o)this._length[o]+=l,(l=this._length[o]/4294967296|0)>0&&(this._length[o]-=4294967296*l);return this},a.prototype._update=function(){throw new Error("_update is not implemented")},a.prototype.digest=function(n){if(this._finalized)throw new Error("Digest already called");this._finalized=!0;var t=this._digest();void 0!==n&&(t=t.toString(n)),this._block.fill(0),this._blockOffset=0;for(var e=0;e<4;++e)this._length[e]=0;return t},a.prototype._digest=function(){throw new Error("_digest is not implemented")},n.exports=a},function(n,t,e){(t=n.exports=e(123)).Stream=t,t.Readable=t,t.Writable=e(127),t.Duplex=e(43),t.Transform=e(128),t.PassThrough=e(424),t.finished=e(81),t.pipeline=e(425)},function(n,t,e){"use strict";(function(t,r){var i;n.exports=S,S.ReadableState=_;e(50).EventEmitter;var a=function(n,t){return n.listeners(t).length},o=e(124),l=e(10).Buffer,s=t.Uint8Array||function(){};var u,c=e(419);u=c&&c.debuglog?c.debuglog("stream"):function(){};var d,f,h,p=e(420),m=e(125),g=e(126).getHighWaterMark,b=e(42).codes,v=b.ERR_INVALID_ARG_TYPE,y=b.ERR_STREAM_PUSH_AFTER_EOF,w=b.ERR_METHOD_NOT_IMPLEMENTED,x=b.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;e(3)(S,o);var k=m.errorOrDestroy,M=["error","close","destroy","pause","resume"];function _(n,t,r){i=i||e(43),n=n||{},"boolean"!=typeof r&&(r=t instanceof i),this.objectMode=!!n.objectMode,r&&(this.objectMode=this.objectMode||!!n.readableObjectMode),this.highWaterMark=g(this,n,"readableHighWaterMark",r),this.buffer=new p,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.paused=!0,this.emitClose=!1!==n.emitClose,this.autoDestroy=!!n.autoDestroy,this.destroyed=!1,this.defaultEncoding=n.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,n.encoding&&(d||(d=e(52).StringDecoder),this.decoder=new d(n.encoding),this.encoding=n.encoding)}function S(n){if(i=i||e(43),!(this instanceof S))return new S(n);var t=this instanceof i;this._readableState=new _(n,this,t),this.readable=!0,n&&("function"==typeof n.read&&(this._read=n.read),"function"==typeof n.destroy&&(this._destroy=n.destroy)),o.call(this)}function E(n,t,e,r,i){u("readableAddChunk",t);var a,o=n._readableState;if(null===t)o.reading=!1,function(n,t){if(u("onEofChunk"),t.ended)return;if(t.decoder){var e=t.decoder.end();e&&e.length&&(t.buffer.push(e),t.length+=t.objectMode?1:e.length)}t.ended=!0,t.sync?A(n):(t.needReadable=!1,t.emittedReadable||(t.emittedReadable=!0,C(n)))}(n,o);else if(i||(a=function(n,t){var e;r=t,l.isBuffer(r)||r instanceof s||"string"==typeof t||void 0===t||n.objectMode||(e=new v("chunk",["string","Buffer","Uint8Array"],t));var r;return e}(o,t)),a)k(n,a);else if(o.objectMode||t&&t.length>0)if("string"==typeof t||o.objectMode||Object.getPrototypeOf(t)===l.prototype||(t=function(n){return l.from(n)}(t)),r)o.endEmitted?k(n,new x):O(n,o,t,!0);else if(o.ended)k(n,new y);else{if(o.destroyed)return!1;o.reading=!1,o.decoder&&!e?(t=o.decoder.write(t),o.objectMode||0!==t.length?O(n,o,t,!1):j(n,o)):O(n,o,t,!1)}else r||(o.reading=!1,j(n,o));return!o.ended&&(o.lengtht.highWaterMark&&(t.highWaterMark=function(n){return n>=1073741824?n=1073741824:(n--,n|=n>>>1,n|=n>>>2,n|=n>>>4,n|=n>>>8,n|=n>>>16,n++),n}(n)),n<=t.length?n:t.ended?t.length:(t.needReadable=!0,0))}function A(n){var t=n._readableState;u("emitReadable",t.needReadable,t.emittedReadable),t.needReadable=!1,t.emittedReadable||(u("emitReadable",t.flowing),t.emittedReadable=!0,r.nextTick(C,n))}function C(n){var t=n._readableState;u("emitReadable_",t.destroyed,t.length,t.ended),t.destroyed||!t.length&&!t.ended||(n.emit("readable"),t.emittedReadable=!1),t.needReadable=!t.flowing&&!t.ended&&t.length<=t.highWaterMark,D(n)}function j(n,t){t.readingMore||(t.readingMore=!0,r.nextTick(z,n,t))}function z(n,t){for(;!t.reading&&!t.ended&&(t.length0,t.resumeScheduled&&!t.paused?t.flowing=!0:n.listenerCount("data")>0&&n.resume()}function R(n){u("readable nexttick read 0"),n.read(0)}function I(n,t){u("resume",t.reading),t.reading||n.read(0),t.resumeScheduled=!1,n.emit("resume"),D(n),t.flowing&&!t.reading&&n.read(0)}function D(n){var t=n._readableState;for(u("flow",t.flowing);t.flowing&&null!==n.read(););}function N(n,t){return 0===t.length?null:(t.objectMode?e=t.buffer.shift():!n||n>=t.length?(e=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.first():t.buffer.concat(t.length),t.buffer.clear()):e=t.buffer.consume(n,t.decoder),e);var e}function B(n){var t=n._readableState;u("endReadable",t.endEmitted),t.endEmitted||(t.ended=!0,r.nextTick(L,t,n))}function L(n,t){if(u("endReadableNT",n.endEmitted,n.length),!n.endEmitted&&0===n.length&&(n.endEmitted=!0,t.readable=!1,t.emit("end"),n.autoDestroy)){var e=t._writableState;(!e||e.autoDestroy&&e.finished)&&t.destroy()}}function U(n,t){for(var e=0,r=n.length;e=t.highWaterMark:t.length>0)||t.ended))return u("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?B(this):A(this),null;if(0===(n=T(n,t))&&t.ended)return 0===t.length&&B(this),null;var r,i=t.needReadable;return u("need readable",i),(0===t.length||t.length-n0?N(n,t):null)?(t.needReadable=t.length<=t.highWaterMark,n=0):(t.length-=n,t.awaitDrain=0),0===t.length&&(t.ended||(t.needReadable=!0),e!==n&&t.ended&&B(this)),null!==r&&this.emit("data",r),r},S.prototype._read=function(n){k(this,new w("_read()"))},S.prototype.pipe=function(n,t){var e=this,i=this._readableState;switch(i.pipesCount){case 0:i.pipes=n;break;case 1:i.pipes=[i.pipes,n];break;default:i.pipes.push(n)}i.pipesCount+=1,u("pipe count=%d opts=%j",i.pipesCount,t);var o=(!t||!1!==t.end)&&n!==r.stdout&&n!==r.stderr?s:g;function l(t,r){u("onunpipe"),t===e&&r&&!1===r.hasUnpiped&&(r.hasUnpiped=!0,u("cleanup"),n.removeListener("close",p),n.removeListener("finish",m),n.removeListener("drain",c),n.removeListener("error",h),n.removeListener("unpipe",l),e.removeListener("end",s),e.removeListener("end",g),e.removeListener("data",f),d=!0,!i.awaitDrain||n._writableState&&!n._writableState.needDrain||c())}function s(){u("onend"),n.end()}i.endEmitted?r.nextTick(o):e.once("end",o),n.on("unpipe",l);var c=function(n){return function(){var t=n._readableState;u("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&a(n,"data")&&(t.flowing=!0,D(n))}}(e);n.on("drain",c);var d=!1;function f(t){u("ondata");var r=n.write(t);u("dest.write",r),!1===r&&((1===i.pipesCount&&i.pipes===n||i.pipesCount>1&&-1!==U(i.pipes,n))&&!d&&(u("false write response, pause",i.awaitDrain),i.awaitDrain++),e.pause())}function h(t){u("onerror",t),g(),n.removeListener("error",h),0===a(n,"error")&&k(n,t)}function p(){n.removeListener("finish",m),g()}function m(){u("onfinish"),n.removeListener("close",p),g()}function g(){u("unpipe"),e.unpipe(n)}return e.on("data",f),function(n,t,e){if("function"==typeof n.prependListener)return n.prependListener(t,e);n._events&&n._events[t]?Array.isArray(n._events[t])?n._events[t].unshift(e):n._events[t]=[e,n._events[t]]:n.on(t,e)}(n,"error",h),n.once("close",p),n.once("finish",m),n.emit("pipe",e),i.flowing||(u("pipe resume"),e.resume()),n},S.prototype.unpipe=function(n){var t=this._readableState,e={hasUnpiped:!1};if(0===t.pipesCount)return this;if(1===t.pipesCount)return n&&n!==t.pipes||(n||(n=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,n&&n.emit("unpipe",this,e)),this;if(!n){var r=t.pipes,i=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var a=0;a0,!1!==i.flowing&&this.resume()):"readable"===n&&(i.endEmitted||i.readableListening||(i.readableListening=i.needReadable=!0,i.flowing=!1,i.emittedReadable=!1,u("on readable",i.length,i.reading),i.length?A(this):i.reading||r.nextTick(R,this))),e},S.prototype.addListener=S.prototype.on,S.prototype.removeListener=function(n,t){var e=o.prototype.removeListener.call(this,n,t);return"readable"===n&&r.nextTick(P,this),e},S.prototype.removeAllListeners=function(n){var t=o.prototype.removeAllListeners.apply(this,arguments);return"readable"!==n&&void 0!==n||r.nextTick(P,this),t},S.prototype.resume=function(){var n=this._readableState;return n.flowing||(u("resume"),n.flowing=!n.readableListening,function(n,t){t.resumeScheduled||(t.resumeScheduled=!0,r.nextTick(I,n,t))}(this,n)),n.paused=!1,this},S.prototype.pause=function(){return u("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(u("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},S.prototype.wrap=function(n){var t=this,e=this._readableState,r=!1;for(var i in n.on("end",(function(){if(u("wrapped end"),e.decoder&&!e.ended){var n=e.decoder.end();n&&n.length&&t.push(n)}t.push(null)})),n.on("data",(function(i){(u("wrapped data"),e.decoder&&(i=e.decoder.write(i)),e.objectMode&&null==i)||(e.objectMode||i&&i.length)&&(t.push(i)||(r=!0,n.pause()))})),n)void 0===this[i]&&"function"==typeof n[i]&&(this[i]=function(t){return function(){return n[t].apply(n,arguments)}}(i));for(var a=0;a-1))throw new x(n);return this._writableState.defaultEncoding=n,this},Object.defineProperty(S.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(S.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),S.prototype._write=function(n,t,e){e(new m("_write()"))},S.prototype._writev=null,S.prototype.end=function(n,t,e){var i=this._writableState;return"function"==typeof n?(e=n,n=null,t=null):"function"==typeof t&&(e=t,t=null),null!=n&&this.write(n,t),i.corked&&(i.corked=1,this.uncork()),i.ending||function(n,t,e){t.ending=!0,j(n,t),e&&(t.finished?r.nextTick(e):n.once("finish",e));t.ended=!0,n.writable=!1}(this,i,e),this},Object.defineProperty(S.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(S.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(n){this._writableState&&(this._writableState.destroyed=n)}}),S.prototype.destroy=d.destroy,S.prototype._undestroy=d.undestroy,S.prototype._destroy=function(n,t){t(n)}}).call(this,e(12),e(8))},function(n,t,e){"use strict";n.exports=c;var r=e(42).codes,i=r.ERR_METHOD_NOT_IMPLEMENTED,a=r.ERR_MULTIPLE_CALLBACK,o=r.ERR_TRANSFORM_ALREADY_TRANSFORMING,l=r.ERR_TRANSFORM_WITH_LENGTH_0,s=e(43);function u(n,t){var e=this._transformState;e.transforming=!1;var r=e.writecb;if(null===r)return this.emit("error",new a);e.writechunk=null,e.writecb=null,null!=t&&this.push(t),r(n);var i=this._readableState;i.reading=!1,(i.needReadable||i.length>>2|n<<30)^(n>>>13|n<<19)^(n>>>22|n<<10)}function f(n){return(n>>>6|n<<26)^(n>>>11|n<<21)^(n>>>25|n<<7)}function h(n){return(n>>>7|n<<25)^(n>>>18|n<<14)^n>>>3}r(s,i),s.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},s.prototype._update=function(n){for(var t,e=this._w,r=0|this._a,i=0|this._b,a=0|this._c,l=0|this._d,s=0|this._e,p=0|this._f,m=0|this._g,g=0|this._h,b=0;b<16;++b)e[b]=n.readInt32BE(4*b);for(;b<64;++b)e[b]=0|(((t=e[b-2])>>>17|t<<15)^(t>>>19|t<<13)^t>>>10)+e[b-7]+h(e[b-15])+e[b-16];for(var v=0;v<64;++v){var y=g+f(s)+u(s,p,m)+o[v]+e[v]|0,w=d(r)+c(r,i,a)|0;g=m,m=p,p=s,s=l+y|0,l=a,a=i,i=r,r=y+w|0}this._a=r+this._a|0,this._b=i+this._b|0,this._c=a+this._c|0,this._d=l+this._d|0,this._e=s+this._e|0,this._f=p+this._f|0,this._g=m+this._g|0,this._h=g+this._h|0},s.prototype._hash=function(){var n=a.allocUnsafe(32);return n.writeInt32BE(this._a,0),n.writeInt32BE(this._b,4),n.writeInt32BE(this._c,8),n.writeInt32BE(this._d,12),n.writeInt32BE(this._e,16),n.writeInt32BE(this._f,20),n.writeInt32BE(this._g,24),n.writeInt32BE(this._h,28),n},n.exports=s},function(n,t,e){var r=e(3),i=e(44),a=e(2).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],l=new Array(160);function s(){this.init(),this._w=l,i.call(this,128,112)}function u(n,t,e){return e^n&(t^e)}function c(n,t,e){return n&t|e&(n|t)}function d(n,t){return(n>>>28|t<<4)^(t>>>2|n<<30)^(t>>>7|n<<25)}function f(n,t){return(n>>>14|t<<18)^(n>>>18|t<<14)^(t>>>9|n<<23)}function h(n,t){return(n>>>1|t<<31)^(n>>>8|t<<24)^n>>>7}function p(n,t){return(n>>>1|t<<31)^(n>>>8|t<<24)^(n>>>7|t<<25)}function m(n,t){return(n>>>19|t<<13)^(t>>>29|n<<3)^n>>>6}function g(n,t){return(n>>>19|t<<13)^(t>>>29|n<<3)^(n>>>6|t<<26)}function b(n,t){return n>>>0>>0?1:0}r(s,i),s.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},s.prototype._update=function(n){for(var t=this._w,e=0|this._ah,r=0|this._bh,i=0|this._ch,a=0|this._dh,l=0|this._eh,s=0|this._fh,v=0|this._gh,y=0|this._hh,w=0|this._al,x=0|this._bl,k=0|this._cl,M=0|this._dl,_=0|this._el,S=0|this._fl,E=0|this._gl,O=0|this._hl,T=0;T<32;T+=2)t[T]=n.readInt32BE(4*T),t[T+1]=n.readInt32BE(4*T+4);for(;T<160;T+=2){var A=t[T-30],C=t[T-30+1],j=h(A,C),z=p(C,A),P=m(A=t[T-4],C=t[T-4+1]),R=g(C,A),I=t[T-14],D=t[T-14+1],N=t[T-32],B=t[T-32+1],L=z+D|0,U=j+I+b(L,z)|0;U=(U=U+P+b(L=L+R|0,R)|0)+N+b(L=L+B|0,B)|0,t[T]=U,t[T+1]=L}for(var q=0;q<160;q+=2){U=t[q],L=t[q+1];var F=c(e,r,i),H=c(w,x,k),W=d(e,w),Y=d(w,e),Z=f(l,_),V=f(_,l),$=o[q],K=o[q+1],X=u(l,s,v),G=u(_,S,E),Q=O+V|0,J=y+Z+b(Q,O)|0;J=(J=(J=J+X+b(Q=Q+G|0,G)|0)+$+b(Q=Q+K|0,K)|0)+U+b(Q=Q+L|0,L)|0;var nn=Y+H|0,tn=W+F+b(nn,Y)|0;y=v,O=E,v=s,E=S,s=l,S=_,l=a+J+b(_=M+Q|0,M)|0,a=i,M=k,i=r,k=x,r=e,x=w,e=J+tn+b(w=Q+nn|0,Q)|0}this._al=this._al+w|0,this._bl=this._bl+x|0,this._cl=this._cl+k|0,this._dl=this._dl+M|0,this._el=this._el+_|0,this._fl=this._fl+S|0,this._gl=this._gl+E|0,this._hl=this._hl+O|0,this._ah=this._ah+e+b(this._al,w)|0,this._bh=this._bh+r+b(this._bl,x)|0,this._ch=this._ch+i+b(this._cl,k)|0,this._dh=this._dh+a+b(this._dl,M)|0,this._eh=this._eh+l+b(this._el,_)|0,this._fh=this._fh+s+b(this._fl,S)|0,this._gh=this._gh+v+b(this._gl,E)|0,this._hh=this._hh+y+b(this._hl,O)|0},s.prototype._hash=function(){var n=a.allocUnsafe(64);function t(t,e,r){n.writeInt32BE(t,r),n.writeInt32BE(e,r+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),n},n.exports=s},function(n,t,e){"use strict";var r=e(3),i=e(430),a=e(32),o=e(2).Buffer,l=e(132),s=e(82),u=e(83),c=o.alloc(128);function d(n,t){a.call(this,"digest"),"string"==typeof t&&(t=o.from(t));var e="sha512"===n||"sha384"===n?128:64;(this._alg=n,this._key=t,t.length>e)?t=("rmd160"===n?new s:u(n)).update(t).digest():t.lengthe||t!=t)throw new TypeError("Bad key length")}},function(n,t,e){(function(t){var e;if(t.browser)e="utf-8";else if(t.version){e=parseInt(t.version.split(".")[0].slice(1),10)>=6?"utf-8":"binary"}else e="utf-8";n.exports=e}).call(this,e(8))},function(n,t,e){var r=e(132),i=e(82),a=e(83),o=e(2).Buffer,l=e(135),s=e(136),u=e(138),c=o.alloc(128),d={md5:16,sha1:20,sha224:28,sha256:32,sha384:48,sha512:64,rmd160:20,ripemd160:20};function f(n,t,e){var l=function(n){function t(t){return a(n).update(t).digest()}return"rmd160"===n||"ripemd160"===n?function(n){return(new i).update(n).digest()}:"md5"===n?r:t}(n),s="sha512"===n||"sha384"===n?128:64;t.length>s?t=l(t):t.length>>0},t.writeUInt32BE=function(n,t,e){n[0+e]=t>>>24,n[1+e]=t>>>16&255,n[2+e]=t>>>8&255,n[3+e]=255&t},t.ip=function(n,t,e,r){for(var i=0,a=0,o=6;o>=0;o-=2){for(var l=0;l<=24;l+=8)i<<=1,i|=t>>>l+o&1;for(l=0;l<=24;l+=8)i<<=1,i|=n>>>l+o&1}for(o=6;o>=0;o-=2){for(l=1;l<=25;l+=8)a<<=1,a|=t>>>l+o&1;for(l=1;l<=25;l+=8)a<<=1,a|=n>>>l+o&1}e[r+0]=i>>>0,e[r+1]=a>>>0},t.rip=function(n,t,e,r){for(var i=0,a=0,o=0;o<4;o++)for(var l=24;l>=0;l-=8)i<<=1,i|=t>>>l+o&1,i<<=1,i|=n>>>l+o&1;for(o=4;o<8;o++)for(l=24;l>=0;l-=8)a<<=1,a|=t>>>l+o&1,a<<=1,a|=n>>>l+o&1;e[r+0]=i>>>0,e[r+1]=a>>>0},t.pc1=function(n,t,e,r){for(var i=0,a=0,o=7;o>=5;o--){for(var l=0;l<=24;l+=8)i<<=1,i|=t>>l+o&1;for(l=0;l<=24;l+=8)i<<=1,i|=n>>l+o&1}for(l=0;l<=24;l+=8)i<<=1,i|=t>>l+o&1;for(o=1;o<=3;o++){for(l=0;l<=24;l+=8)a<<=1,a|=t>>l+o&1;for(l=0;l<=24;l+=8)a<<=1,a|=n>>l+o&1}for(l=0;l<=24;l+=8)a<<=1,a|=n>>l+o&1;e[r+0]=i>>>0,e[r+1]=a>>>0},t.r28shl=function(n,t){return n<>>28-t};var r=[14,11,17,4,27,23,25,0,13,22,7,18,5,9,16,24,2,20,12,21,1,8,15,26,15,4,25,19,9,1,26,16,5,11,23,8,12,7,17,0,22,3,10,14,6,20,27,24];t.pc2=function(n,t,e,i){for(var a=0,o=0,l=r.length>>>1,s=0;s>>r[s]&1;for(s=l;s>>r[s]&1;e[i+0]=a>>>0,e[i+1]=o>>>0},t.expand=function(n,t,e){var r=0,i=0;r=(1&n)<<5|n>>>27;for(var a=23;a>=15;a-=4)r<<=6,r|=n>>>a&63;for(a=11;a>=3;a-=4)i|=n>>>a&63,i<<=6;i|=(31&n)<<1|n>>>31,t[e+0]=r>>>0,t[e+1]=i>>>0};var i=[14,0,4,15,13,7,1,4,2,14,15,2,11,13,8,1,3,10,10,6,6,12,12,11,5,9,9,5,0,3,7,8,4,15,1,12,14,8,8,2,13,4,6,9,2,1,11,7,15,5,12,11,9,3,7,14,3,10,10,0,5,6,0,13,15,3,1,13,8,4,14,7,6,15,11,2,3,8,4,14,9,12,7,0,2,1,13,10,12,6,0,9,5,11,10,5,0,13,14,8,7,10,11,1,10,3,4,15,13,4,1,2,5,11,8,6,12,7,6,12,9,0,3,5,2,14,15,9,10,13,0,7,9,0,14,9,6,3,3,4,15,6,5,10,1,2,13,8,12,5,7,14,11,12,4,11,2,15,8,1,13,1,6,10,4,13,9,0,8,6,15,9,3,8,0,7,11,4,1,15,2,14,12,3,5,11,10,5,14,2,7,12,7,13,13,8,14,11,3,5,0,6,6,15,9,0,10,3,1,4,2,7,8,2,5,12,11,1,12,10,4,14,15,9,10,3,6,15,9,0,0,6,12,10,11,1,7,13,13,8,15,9,1,4,3,5,14,11,5,12,2,7,8,2,4,14,2,14,12,11,4,2,1,12,7,4,10,7,11,13,6,1,8,5,5,0,3,15,15,10,13,3,0,9,14,8,9,6,4,11,2,8,1,12,11,7,10,1,13,14,7,2,8,13,15,6,9,15,12,0,5,9,6,10,3,4,0,5,14,3,12,10,1,15,10,4,15,2,9,7,2,12,6,9,8,5,0,6,13,1,3,13,4,14,14,0,7,11,5,3,11,8,9,4,14,3,15,2,5,12,2,9,8,5,12,15,3,10,7,11,0,14,4,1,10,7,1,6,13,0,11,8,6,13,4,13,11,0,2,11,14,7,15,4,0,9,8,1,13,10,3,14,12,3,9,5,7,12,5,2,10,15,6,8,1,6,1,6,4,11,11,13,13,8,12,1,3,4,7,10,14,7,10,9,15,5,6,0,8,15,0,14,5,2,9,3,2,12,13,1,2,15,8,13,4,8,6,10,15,3,11,7,1,4,10,12,9,5,3,6,14,11,5,0,0,14,12,9,7,2,7,2,11,1,4,14,1,7,9,4,12,10,14,8,2,13,0,15,6,12,10,9,13,0,15,3,3,5,5,6,8,11];t.substitute=function(n,t){for(var e=0,r=0;r<4;r++){e<<=4,e|=i[64*r+(n>>>18-6*r&63)]}for(r=0;r<4;r++){e<<=4,e|=i[256+64*r+(t>>>18-6*r&63)]}return e>>>0};var a=[16,25,12,11,3,20,4,15,31,17,9,6,27,14,1,22,30,24,8,18,0,5,29,23,13,19,2,26,10,21,28,7];t.permute=function(n){for(var t=0,e=0;e>>a[e]&1;return t>>>0},t.padSplit=function(n,t,e){for(var r=n.toString(2);r.length>>1];e=a.r28shl(e,l),i=a.r28shl(i,l),a.pc2(e,i,n.keys,o)}},s.prototype._update=function(n,t,e,r){var i=this._desState,o=a.readUInt32BE(n,t),l=a.readUInt32BE(n,t+4);a.ip(o,l,i.tmp,0),o=i.tmp[0],l=i.tmp[1],"encrypt"===this.type?this._encrypt(i,o,l,i.tmp,0):this._decrypt(i,o,l,i.tmp,0),o=i.tmp[0],l=i.tmp[1],a.writeUInt32BE(e,o,r),a.writeUInt32BE(e,l,r+4)},s.prototype._pad=function(n,t){for(var e=n.length-t,r=t;r>>0,o=f}a.rip(l,o,r,i)},s.prototype._decrypt=function(n,t,e,r,i){for(var o=e,l=t,s=n.keys.length-2;s>=0;s-=2){var u=n.keys[s],c=n.keys[s+1];a.expand(o,n.tmp,0),u^=n.tmp[0],c^=n.tmp[1];var d=a.substitute(u,c),f=o;o=(l^a.permute(d))>>>0,l=f}a.rip(o,l,r,i)}},function(n,t,e){var r=e(54),i=e(2).Buffer,a=e(142);function o(n){var t=n._cipher.encryptBlockRaw(n._prev);return a(n._prev),t}t.encrypt=function(n,t){var e=Math.ceil(t.length/16),a=n._cache.length;n._cache=i.concat([n._cache,i.allocUnsafe(16*e)]);for(var l=0;ln;)e.ishrn(1);if(e.isEven()&&e.iadd(l),e.testn(1)||e.iadd(s),t.cmp(s)){if(!t.cmp(u))for(;e.mod(c).cmp(d);)e.iadd(h)}else for(;e.mod(a).cmp(f);)e.iadd(h);if(g(p=e.shrn(1))&&g(e)&&b(p)&&b(e)&&o.test(p)&&o.test(e))return e}}},function(n,t,e){(function(n){!function(n,t){"use strict";function r(n,t){if(!n)throw new Error(t||"Assertion failed")}function i(n,t){n.super_=t;var e=function(){};e.prototype=t.prototype,n.prototype=new e,n.prototype.constructor=n}function a(n,t,e){if(a.isBN(n))return n;this.negative=0,this.words=null,this.length=0,this.red=null,null!==n&&("le"!==t&&"be"!==t||(e=t,t=10),this._init(n||0,t||10,e||"be"))}var o;"object"==typeof n?n.exports=a:t.BN=a,a.BN=a,a.wordSize=26;try{o=e(449).Buffer}catch(n){}function l(n,t,e){for(var r=0,i=Math.min(n.length,e),a=t;a=49&&o<=54?o-49+10:o>=17&&o<=22?o-17+10:15&o}return r}function s(n,t,e,r){for(var i=0,a=Math.min(n.length,e),o=t;o=49?l-49+10:l>=17?l-17+10:l}return i}a.isBN=function(n){return n instanceof a||null!==n&&"object"==typeof n&&n.constructor.wordSize===a.wordSize&&Array.isArray(n.words)},a.max=function(n,t){return n.cmp(t)>0?n:t},a.min=function(n,t){return n.cmp(t)<0?n:t},a.prototype._init=function(n,t,e){if("number"==typeof n)return this._initNumber(n,t,e);if("object"==typeof n)return this._initArray(n,t,e);"hex"===t&&(t=16),r(t===(0|t)&&t>=2&&t<=36);var i=0;"-"===(n=n.toString().replace(/\s+/g,""))[0]&&i++,16===t?this._parseHex(n,i):this._parseBase(n,t,i),"-"===n[0]&&(this.negative=1),this.strip(),"le"===e&&this._initArray(this.toArray(),t,e)},a.prototype._initNumber=function(n,t,e){n<0&&(this.negative=1,n=-n),n<67108864?(this.words=[67108863&n],this.length=1):n<4503599627370496?(this.words=[67108863&n,n/67108864&67108863],this.length=2):(r(n<9007199254740992),this.words=[67108863&n,n/67108864&67108863,1],this.length=3),"le"===e&&this._initArray(this.toArray(),t,e)},a.prototype._initArray=function(n,t,e){if(r("number"==typeof n.length),n.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(n.length/3),this.words=new Array(this.length);for(var i=0;i=0;i-=3)o=n[i]|n[i-1]<<8|n[i-2]<<16,this.words[a]|=o<>>26-l&67108863,(l+=24)>=26&&(l-=26,a++);else if("le"===e)for(i=0,a=0;i>>26-l&67108863,(l+=24)>=26&&(l-=26,a++);return this.strip()},a.prototype._parseHex=function(n,t){this.length=Math.ceil((n.length-t)/6),this.words=new Array(this.length);for(var e=0;e=t;e-=6)i=l(n,e,e+6),this.words[r]|=i<>>26-a&4194303,(a+=24)>=26&&(a-=26,r++);e+6!==t&&(i=l(n,t,e+6),this.words[r]|=i<>>26-a&4194303),this.strip()},a.prototype._parseBase=function(n,t,e){this.words=[0],this.length=1;for(var r=0,i=1;i<=67108863;i*=t)r++;r--,i=i/t|0;for(var a=n.length-e,o=a%r,l=Math.min(a,a-o)+e,u=0,c=e;c1&&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?""};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],d=[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 f(n,t,e){e.negative=t.negative^n.negative;var r=n.length+t.length|0;e.length=r,r=r-1|0;var i=0|n.words[0],a=0|t.words[0],o=i*a,l=67108863&o,s=o/67108864|0;e.words[0]=l;for(var u=1;u>>26,d=67108863&s,f=Math.min(u,t.length-1),h=Math.max(0,u-n.length+1);h<=f;h++){var p=u-h|0;c+=(o=(i=0|n.words[p])*(a=0|t.words[h])+d)/67108864|0,d=67108863&o}e.words[u]=0|d,s=0|c}return 0!==s?e.words[u]=0|s:e.length--,e.strip()}a.prototype.toString=function(n,t){var e;if(t=0|t||1,16===(n=n||10)||"hex"===n){e="";for(var i=0,a=0,o=0;o>>24-i&16777215)||o!==this.length-1?u[6-s.length]+s+e:s+e,(i+=2)>=26&&(i-=26,o--)}for(0!==a&&(e=a.toString(16)+e);e.length%t!=0;)e="0"+e;return 0!==this.negative&&(e="-"+e),e}if(n===(0|n)&&n>=2&&n<=36){var f=c[n],h=d[n];e="";var p=this.clone();for(p.negative=0;!p.isZero();){var m=p.modn(h).toString(n);e=(p=p.idivn(h)).isZero()?m+e:u[f-m.length]+m+e}for(this.isZero()&&(e="0"+e);e.length%t!=0;)e="0"+e;return 0!==this.negative&&(e="-"+e),e}r(!1,"Base should be between 2 and 36")},a.prototype.toNumber=function(){var n=this.words[0];return 2===this.length?n+=67108864*this.words[1]:3===this.length&&1===this.words[2]?n+=4503599627370496+67108864*this.words[1]:this.length>2&&r(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-n:n},a.prototype.toJSON=function(){return this.toString(16)},a.prototype.toBuffer=function(n,t){return r(void 0!==o),this.toArrayLike(o,n,t)},a.prototype.toArray=function(n,t){return this.toArrayLike(Array,n,t)},a.prototype.toArrayLike=function(n,t,e){var i=this.byteLength(),a=e||Math.max(1,i);r(i<=a,"byte array longer than desired length"),r(a>0,"Requested array length <= 0"),this.strip();var o,l,s="le"===t,u=new n(a),c=this.clone();if(s){for(l=0;!c.isZero();l++)o=c.andln(255),c.iushrn(8),u[l]=o;for(;l=4096&&(e+=13,t>>>=13),t>=64&&(e+=7,t>>>=7),t>=8&&(e+=4,t>>>=4),t>=2&&(e+=2,t>>>=2),e+t},a.prototype._zeroBits=function(n){if(0===n)return 26;var t=n,e=0;return 0==(8191&t)&&(e+=13,t>>>=13),0==(127&t)&&(e+=7,t>>>=7),0==(15&t)&&(e+=4,t>>>=4),0==(3&t)&&(e+=2,t>>>=2),0==(1&t)&&e++,e},a.prototype.bitLength=function(){var n=this.words[this.length-1],t=this._countBits(n);return 26*(this.length-1)+t},a.prototype.zeroBits=function(){if(this.isZero())return 0;for(var n=0,t=0;tn.length?this.clone().ior(n):n.clone().ior(this)},a.prototype.uor=function(n){return this.length>n.length?this.clone().iuor(n):n.clone().iuor(this)},a.prototype.iuand=function(n){var t;t=this.length>n.length?n:this;for(var e=0;en.length?this.clone().iand(n):n.clone().iand(this)},a.prototype.uand=function(n){return this.length>n.length?this.clone().iuand(n):n.clone().iuand(this)},a.prototype.iuxor=function(n){var t,e;this.length>n.length?(t=this,e=n):(t=n,e=this);for(var r=0;rn.length?this.clone().ixor(n):n.clone().ixor(this)},a.prototype.uxor=function(n){return this.length>n.length?this.clone().iuxor(n):n.clone().iuxor(this)},a.prototype.inotn=function(n){r("number"==typeof n&&n>=0);var t=0|Math.ceil(n/26),e=n%26;this._expand(t),e>0&&t--;for(var i=0;i0&&(this.words[i]=~this.words[i]&67108863>>26-e),this.strip()},a.prototype.notn=function(n){return this.clone().inotn(n)},a.prototype.setn=function(n,t){r("number"==typeof n&&n>=0);var e=n/26|0,i=n%26;return this._expand(e+1),this.words[e]=t?this.words[e]|1<n.length?(e=this,r=n):(e=n,r=this);for(var i=0,a=0;a>>26;for(;0!==i&&a>>26;if(this.length=e.length,0!==i)this.words[this.length]=i,this.length++;else if(e!==this)for(;an.length?this.clone().iadd(n):n.clone().iadd(this)},a.prototype.isub=function(n){if(0!==n.negative){n.negative=0;var t=this.iadd(n);return n.negative=1,t._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(n),this.negative=1,this._normSign();var e,r,i=this.cmp(n);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;i>0?(e=this,r=n):(e=n,r=this);for(var a=0,o=0;o>26,this.words[o]=67108863&t;for(;0!==a&&o>26,this.words[o]=67108863&t;if(0===a&&o>>13,h=0|o[1],p=8191&h,m=h>>>13,g=0|o[2],b=8191&g,v=g>>>13,y=0|o[3],w=8191&y,x=y>>>13,k=0|o[4],M=8191&k,_=k>>>13,S=0|o[5],E=8191&S,O=S>>>13,T=0|o[6],A=8191&T,C=T>>>13,j=0|o[7],z=8191&j,P=j>>>13,R=0|o[8],I=8191&R,D=R>>>13,N=0|o[9],B=8191&N,L=N>>>13,U=0|l[0],q=8191&U,F=U>>>13,H=0|l[1],W=8191&H,Y=H>>>13,Z=0|l[2],V=8191&Z,$=Z>>>13,K=0|l[3],X=8191&K,G=K>>>13,Q=0|l[4],J=8191&Q,nn=Q>>>13,tn=0|l[5],en=8191&tn,rn=tn>>>13,an=0|l[6],on=8191&an,ln=an>>>13,sn=0|l[7],un=8191&sn,cn=sn>>>13,dn=0|l[8],fn=8191&dn,hn=dn>>>13,pn=0|l[9],mn=8191&pn,gn=pn>>>13;e.negative=n.negative^t.negative,e.length=19;var bn=(u+(r=Math.imul(d,q))|0)+((8191&(i=(i=Math.imul(d,F))+Math.imul(f,q)|0))<<13)|0;u=((a=Math.imul(f,F))+(i>>>13)|0)+(bn>>>26)|0,bn&=67108863,r=Math.imul(p,q),i=(i=Math.imul(p,F))+Math.imul(m,q)|0,a=Math.imul(m,F);var vn=(u+(r=r+Math.imul(d,W)|0)|0)+((8191&(i=(i=i+Math.imul(d,Y)|0)+Math.imul(f,W)|0))<<13)|0;u=((a=a+Math.imul(f,Y)|0)+(i>>>13)|0)+(vn>>>26)|0,vn&=67108863,r=Math.imul(b,q),i=(i=Math.imul(b,F))+Math.imul(v,q)|0,a=Math.imul(v,F),r=r+Math.imul(p,W)|0,i=(i=i+Math.imul(p,Y)|0)+Math.imul(m,W)|0,a=a+Math.imul(m,Y)|0;var yn=(u+(r=r+Math.imul(d,V)|0)|0)+((8191&(i=(i=i+Math.imul(d,$)|0)+Math.imul(f,V)|0))<<13)|0;u=((a=a+Math.imul(f,$)|0)+(i>>>13)|0)+(yn>>>26)|0,yn&=67108863,r=Math.imul(w,q),i=(i=Math.imul(w,F))+Math.imul(x,q)|0,a=Math.imul(x,F),r=r+Math.imul(b,W)|0,i=(i=i+Math.imul(b,Y)|0)+Math.imul(v,W)|0,a=a+Math.imul(v,Y)|0,r=r+Math.imul(p,V)|0,i=(i=i+Math.imul(p,$)|0)+Math.imul(m,V)|0,a=a+Math.imul(m,$)|0;var wn=(u+(r=r+Math.imul(d,X)|0)|0)+((8191&(i=(i=i+Math.imul(d,G)|0)+Math.imul(f,X)|0))<<13)|0;u=((a=a+Math.imul(f,G)|0)+(i>>>13)|0)+(wn>>>26)|0,wn&=67108863,r=Math.imul(M,q),i=(i=Math.imul(M,F))+Math.imul(_,q)|0,a=Math.imul(_,F),r=r+Math.imul(w,W)|0,i=(i=i+Math.imul(w,Y)|0)+Math.imul(x,W)|0,a=a+Math.imul(x,Y)|0,r=r+Math.imul(b,V)|0,i=(i=i+Math.imul(b,$)|0)+Math.imul(v,V)|0,a=a+Math.imul(v,$)|0,r=r+Math.imul(p,X)|0,i=(i=i+Math.imul(p,G)|0)+Math.imul(m,X)|0,a=a+Math.imul(m,G)|0;var xn=(u+(r=r+Math.imul(d,J)|0)|0)+((8191&(i=(i=i+Math.imul(d,nn)|0)+Math.imul(f,J)|0))<<13)|0;u=((a=a+Math.imul(f,nn)|0)+(i>>>13)|0)+(xn>>>26)|0,xn&=67108863,r=Math.imul(E,q),i=(i=Math.imul(E,F))+Math.imul(O,q)|0,a=Math.imul(O,F),r=r+Math.imul(M,W)|0,i=(i=i+Math.imul(M,Y)|0)+Math.imul(_,W)|0,a=a+Math.imul(_,Y)|0,r=r+Math.imul(w,V)|0,i=(i=i+Math.imul(w,$)|0)+Math.imul(x,V)|0,a=a+Math.imul(x,$)|0,r=r+Math.imul(b,X)|0,i=(i=i+Math.imul(b,G)|0)+Math.imul(v,X)|0,a=a+Math.imul(v,G)|0,r=r+Math.imul(p,J)|0,i=(i=i+Math.imul(p,nn)|0)+Math.imul(m,J)|0,a=a+Math.imul(m,nn)|0;var kn=(u+(r=r+Math.imul(d,en)|0)|0)+((8191&(i=(i=i+Math.imul(d,rn)|0)+Math.imul(f,en)|0))<<13)|0;u=((a=a+Math.imul(f,rn)|0)+(i>>>13)|0)+(kn>>>26)|0,kn&=67108863,r=Math.imul(A,q),i=(i=Math.imul(A,F))+Math.imul(C,q)|0,a=Math.imul(C,F),r=r+Math.imul(E,W)|0,i=(i=i+Math.imul(E,Y)|0)+Math.imul(O,W)|0,a=a+Math.imul(O,Y)|0,r=r+Math.imul(M,V)|0,i=(i=i+Math.imul(M,$)|0)+Math.imul(_,V)|0,a=a+Math.imul(_,$)|0,r=r+Math.imul(w,X)|0,i=(i=i+Math.imul(w,G)|0)+Math.imul(x,X)|0,a=a+Math.imul(x,G)|0,r=r+Math.imul(b,J)|0,i=(i=i+Math.imul(b,nn)|0)+Math.imul(v,J)|0,a=a+Math.imul(v,nn)|0,r=r+Math.imul(p,en)|0,i=(i=i+Math.imul(p,rn)|0)+Math.imul(m,en)|0,a=a+Math.imul(m,rn)|0;var Mn=(u+(r=r+Math.imul(d,on)|0)|0)+((8191&(i=(i=i+Math.imul(d,ln)|0)+Math.imul(f,on)|0))<<13)|0;u=((a=a+Math.imul(f,ln)|0)+(i>>>13)|0)+(Mn>>>26)|0,Mn&=67108863,r=Math.imul(z,q),i=(i=Math.imul(z,F))+Math.imul(P,q)|0,a=Math.imul(P,F),r=r+Math.imul(A,W)|0,i=(i=i+Math.imul(A,Y)|0)+Math.imul(C,W)|0,a=a+Math.imul(C,Y)|0,r=r+Math.imul(E,V)|0,i=(i=i+Math.imul(E,$)|0)+Math.imul(O,V)|0,a=a+Math.imul(O,$)|0,r=r+Math.imul(M,X)|0,i=(i=i+Math.imul(M,G)|0)+Math.imul(_,X)|0,a=a+Math.imul(_,G)|0,r=r+Math.imul(w,J)|0,i=(i=i+Math.imul(w,nn)|0)+Math.imul(x,J)|0,a=a+Math.imul(x,nn)|0,r=r+Math.imul(b,en)|0,i=(i=i+Math.imul(b,rn)|0)+Math.imul(v,en)|0,a=a+Math.imul(v,rn)|0,r=r+Math.imul(p,on)|0,i=(i=i+Math.imul(p,ln)|0)+Math.imul(m,on)|0,a=a+Math.imul(m,ln)|0;var _n=(u+(r=r+Math.imul(d,un)|0)|0)+((8191&(i=(i=i+Math.imul(d,cn)|0)+Math.imul(f,un)|0))<<13)|0;u=((a=a+Math.imul(f,cn)|0)+(i>>>13)|0)+(_n>>>26)|0,_n&=67108863,r=Math.imul(I,q),i=(i=Math.imul(I,F))+Math.imul(D,q)|0,a=Math.imul(D,F),r=r+Math.imul(z,W)|0,i=(i=i+Math.imul(z,Y)|0)+Math.imul(P,W)|0,a=a+Math.imul(P,Y)|0,r=r+Math.imul(A,V)|0,i=(i=i+Math.imul(A,$)|0)+Math.imul(C,V)|0,a=a+Math.imul(C,$)|0,r=r+Math.imul(E,X)|0,i=(i=i+Math.imul(E,G)|0)+Math.imul(O,X)|0,a=a+Math.imul(O,G)|0,r=r+Math.imul(M,J)|0,i=(i=i+Math.imul(M,nn)|0)+Math.imul(_,J)|0,a=a+Math.imul(_,nn)|0,r=r+Math.imul(w,en)|0,i=(i=i+Math.imul(w,rn)|0)+Math.imul(x,en)|0,a=a+Math.imul(x,rn)|0,r=r+Math.imul(b,on)|0,i=(i=i+Math.imul(b,ln)|0)+Math.imul(v,on)|0,a=a+Math.imul(v,ln)|0,r=r+Math.imul(p,un)|0,i=(i=i+Math.imul(p,cn)|0)+Math.imul(m,un)|0,a=a+Math.imul(m,cn)|0;var Sn=(u+(r=r+Math.imul(d,fn)|0)|0)+((8191&(i=(i=i+Math.imul(d,hn)|0)+Math.imul(f,fn)|0))<<13)|0;u=((a=a+Math.imul(f,hn)|0)+(i>>>13)|0)+(Sn>>>26)|0,Sn&=67108863,r=Math.imul(B,q),i=(i=Math.imul(B,F))+Math.imul(L,q)|0,a=Math.imul(L,F),r=r+Math.imul(I,W)|0,i=(i=i+Math.imul(I,Y)|0)+Math.imul(D,W)|0,a=a+Math.imul(D,Y)|0,r=r+Math.imul(z,V)|0,i=(i=i+Math.imul(z,$)|0)+Math.imul(P,V)|0,a=a+Math.imul(P,$)|0,r=r+Math.imul(A,X)|0,i=(i=i+Math.imul(A,G)|0)+Math.imul(C,X)|0,a=a+Math.imul(C,G)|0,r=r+Math.imul(E,J)|0,i=(i=i+Math.imul(E,nn)|0)+Math.imul(O,J)|0,a=a+Math.imul(O,nn)|0,r=r+Math.imul(M,en)|0,i=(i=i+Math.imul(M,rn)|0)+Math.imul(_,en)|0,a=a+Math.imul(_,rn)|0,r=r+Math.imul(w,on)|0,i=(i=i+Math.imul(w,ln)|0)+Math.imul(x,on)|0,a=a+Math.imul(x,ln)|0,r=r+Math.imul(b,un)|0,i=(i=i+Math.imul(b,cn)|0)+Math.imul(v,un)|0,a=a+Math.imul(v,cn)|0,r=r+Math.imul(p,fn)|0,i=(i=i+Math.imul(p,hn)|0)+Math.imul(m,fn)|0,a=a+Math.imul(m,hn)|0;var En=(u+(r=r+Math.imul(d,mn)|0)|0)+((8191&(i=(i=i+Math.imul(d,gn)|0)+Math.imul(f,mn)|0))<<13)|0;u=((a=a+Math.imul(f,gn)|0)+(i>>>13)|0)+(En>>>26)|0,En&=67108863,r=Math.imul(B,W),i=(i=Math.imul(B,Y))+Math.imul(L,W)|0,a=Math.imul(L,Y),r=r+Math.imul(I,V)|0,i=(i=i+Math.imul(I,$)|0)+Math.imul(D,V)|0,a=a+Math.imul(D,$)|0,r=r+Math.imul(z,X)|0,i=(i=i+Math.imul(z,G)|0)+Math.imul(P,X)|0,a=a+Math.imul(P,G)|0,r=r+Math.imul(A,J)|0,i=(i=i+Math.imul(A,nn)|0)+Math.imul(C,J)|0,a=a+Math.imul(C,nn)|0,r=r+Math.imul(E,en)|0,i=(i=i+Math.imul(E,rn)|0)+Math.imul(O,en)|0,a=a+Math.imul(O,rn)|0,r=r+Math.imul(M,on)|0,i=(i=i+Math.imul(M,ln)|0)+Math.imul(_,on)|0,a=a+Math.imul(_,ln)|0,r=r+Math.imul(w,un)|0,i=(i=i+Math.imul(w,cn)|0)+Math.imul(x,un)|0,a=a+Math.imul(x,cn)|0,r=r+Math.imul(b,fn)|0,i=(i=i+Math.imul(b,hn)|0)+Math.imul(v,fn)|0,a=a+Math.imul(v,hn)|0;var On=(u+(r=r+Math.imul(p,mn)|0)|0)+((8191&(i=(i=i+Math.imul(p,gn)|0)+Math.imul(m,mn)|0))<<13)|0;u=((a=a+Math.imul(m,gn)|0)+(i>>>13)|0)+(On>>>26)|0,On&=67108863,r=Math.imul(B,V),i=(i=Math.imul(B,$))+Math.imul(L,V)|0,a=Math.imul(L,$),r=r+Math.imul(I,X)|0,i=(i=i+Math.imul(I,G)|0)+Math.imul(D,X)|0,a=a+Math.imul(D,G)|0,r=r+Math.imul(z,J)|0,i=(i=i+Math.imul(z,nn)|0)+Math.imul(P,J)|0,a=a+Math.imul(P,nn)|0,r=r+Math.imul(A,en)|0,i=(i=i+Math.imul(A,rn)|0)+Math.imul(C,en)|0,a=a+Math.imul(C,rn)|0,r=r+Math.imul(E,on)|0,i=(i=i+Math.imul(E,ln)|0)+Math.imul(O,on)|0,a=a+Math.imul(O,ln)|0,r=r+Math.imul(M,un)|0,i=(i=i+Math.imul(M,cn)|0)+Math.imul(_,un)|0,a=a+Math.imul(_,cn)|0,r=r+Math.imul(w,fn)|0,i=(i=i+Math.imul(w,hn)|0)+Math.imul(x,fn)|0,a=a+Math.imul(x,hn)|0;var Tn=(u+(r=r+Math.imul(b,mn)|0)|0)+((8191&(i=(i=i+Math.imul(b,gn)|0)+Math.imul(v,mn)|0))<<13)|0;u=((a=a+Math.imul(v,gn)|0)+(i>>>13)|0)+(Tn>>>26)|0,Tn&=67108863,r=Math.imul(B,X),i=(i=Math.imul(B,G))+Math.imul(L,X)|0,a=Math.imul(L,G),r=r+Math.imul(I,J)|0,i=(i=i+Math.imul(I,nn)|0)+Math.imul(D,J)|0,a=a+Math.imul(D,nn)|0,r=r+Math.imul(z,en)|0,i=(i=i+Math.imul(z,rn)|0)+Math.imul(P,en)|0,a=a+Math.imul(P,rn)|0,r=r+Math.imul(A,on)|0,i=(i=i+Math.imul(A,ln)|0)+Math.imul(C,on)|0,a=a+Math.imul(C,ln)|0,r=r+Math.imul(E,un)|0,i=(i=i+Math.imul(E,cn)|0)+Math.imul(O,un)|0,a=a+Math.imul(O,cn)|0,r=r+Math.imul(M,fn)|0,i=(i=i+Math.imul(M,hn)|0)+Math.imul(_,fn)|0,a=a+Math.imul(_,hn)|0;var An=(u+(r=r+Math.imul(w,mn)|0)|0)+((8191&(i=(i=i+Math.imul(w,gn)|0)+Math.imul(x,mn)|0))<<13)|0;u=((a=a+Math.imul(x,gn)|0)+(i>>>13)|0)+(An>>>26)|0,An&=67108863,r=Math.imul(B,J),i=(i=Math.imul(B,nn))+Math.imul(L,J)|0,a=Math.imul(L,nn),r=r+Math.imul(I,en)|0,i=(i=i+Math.imul(I,rn)|0)+Math.imul(D,en)|0,a=a+Math.imul(D,rn)|0,r=r+Math.imul(z,on)|0,i=(i=i+Math.imul(z,ln)|0)+Math.imul(P,on)|0,a=a+Math.imul(P,ln)|0,r=r+Math.imul(A,un)|0,i=(i=i+Math.imul(A,cn)|0)+Math.imul(C,un)|0,a=a+Math.imul(C,cn)|0,r=r+Math.imul(E,fn)|0,i=(i=i+Math.imul(E,hn)|0)+Math.imul(O,fn)|0,a=a+Math.imul(O,hn)|0;var Cn=(u+(r=r+Math.imul(M,mn)|0)|0)+((8191&(i=(i=i+Math.imul(M,gn)|0)+Math.imul(_,mn)|0))<<13)|0;u=((a=a+Math.imul(_,gn)|0)+(i>>>13)|0)+(Cn>>>26)|0,Cn&=67108863,r=Math.imul(B,en),i=(i=Math.imul(B,rn))+Math.imul(L,en)|0,a=Math.imul(L,rn),r=r+Math.imul(I,on)|0,i=(i=i+Math.imul(I,ln)|0)+Math.imul(D,on)|0,a=a+Math.imul(D,ln)|0,r=r+Math.imul(z,un)|0,i=(i=i+Math.imul(z,cn)|0)+Math.imul(P,un)|0,a=a+Math.imul(P,cn)|0,r=r+Math.imul(A,fn)|0,i=(i=i+Math.imul(A,hn)|0)+Math.imul(C,fn)|0,a=a+Math.imul(C,hn)|0;var jn=(u+(r=r+Math.imul(E,mn)|0)|0)+((8191&(i=(i=i+Math.imul(E,gn)|0)+Math.imul(O,mn)|0))<<13)|0;u=((a=a+Math.imul(O,gn)|0)+(i>>>13)|0)+(jn>>>26)|0,jn&=67108863,r=Math.imul(B,on),i=(i=Math.imul(B,ln))+Math.imul(L,on)|0,a=Math.imul(L,ln),r=r+Math.imul(I,un)|0,i=(i=i+Math.imul(I,cn)|0)+Math.imul(D,un)|0,a=a+Math.imul(D,cn)|0,r=r+Math.imul(z,fn)|0,i=(i=i+Math.imul(z,hn)|0)+Math.imul(P,fn)|0,a=a+Math.imul(P,hn)|0;var zn=(u+(r=r+Math.imul(A,mn)|0)|0)+((8191&(i=(i=i+Math.imul(A,gn)|0)+Math.imul(C,mn)|0))<<13)|0;u=((a=a+Math.imul(C,gn)|0)+(i>>>13)|0)+(zn>>>26)|0,zn&=67108863,r=Math.imul(B,un),i=(i=Math.imul(B,cn))+Math.imul(L,un)|0,a=Math.imul(L,cn),r=r+Math.imul(I,fn)|0,i=(i=i+Math.imul(I,hn)|0)+Math.imul(D,fn)|0,a=a+Math.imul(D,hn)|0;var Pn=(u+(r=r+Math.imul(z,mn)|0)|0)+((8191&(i=(i=i+Math.imul(z,gn)|0)+Math.imul(P,mn)|0))<<13)|0;u=((a=a+Math.imul(P,gn)|0)+(i>>>13)|0)+(Pn>>>26)|0,Pn&=67108863,r=Math.imul(B,fn),i=(i=Math.imul(B,hn))+Math.imul(L,fn)|0,a=Math.imul(L,hn);var Rn=(u+(r=r+Math.imul(I,mn)|0)|0)+((8191&(i=(i=i+Math.imul(I,gn)|0)+Math.imul(D,mn)|0))<<13)|0;u=((a=a+Math.imul(D,gn)|0)+(i>>>13)|0)+(Rn>>>26)|0,Rn&=67108863;var In=(u+(r=Math.imul(B,mn))|0)+((8191&(i=(i=Math.imul(B,gn))+Math.imul(L,mn)|0))<<13)|0;return u=((a=Math.imul(L,gn))+(i>>>13)|0)+(In>>>26)|0,In&=67108863,s[0]=bn,s[1]=vn,s[2]=yn,s[3]=wn,s[4]=xn,s[5]=kn,s[6]=Mn,s[7]=_n,s[8]=Sn,s[9]=En,s[10]=On,s[11]=Tn,s[12]=An,s[13]=Cn,s[14]=jn,s[15]=zn,s[16]=Pn,s[17]=Rn,s[18]=In,0!==u&&(s[19]=u,e.length++),e};function p(n,t,e){return(new m).mulp(n,t,e)}function m(n,t){this.x=n,this.y=t}Math.imul||(h=f),a.prototype.mulTo=function(n,t){var e=this.length+n.length;return 10===this.length&&10===n.length?h(this,n,t):e<63?f(this,n,t):e<1024?function(n,t,e){e.negative=t.negative^n.negative,e.length=n.length+t.length;for(var r=0,i=0,a=0;a>>26)|0)>>>26,o&=67108863}e.words[a]=l,r=o,o=i}return 0!==r?e.words[a]=r:e.length--,e.strip()}(this,n,t):p(this,n,t)},m.prototype.makeRBT=function(n){for(var t=new Array(n),e=a.prototype._countBits(n)-1,r=0;r>=1;return r},m.prototype.permute=function(n,t,e,r,i,a){for(var o=0;o>>=1)i++;return 1<>>=13,e[2*o+1]=8191&a,a>>>=13;for(o=2*t;o>=26,t+=i/67108864|0,t+=a>>>26,this.words[e]=67108863&a}return 0!==t&&(this.words[e]=t,this.length++),this},a.prototype.muln=function(n){return this.clone().imuln(n)},a.prototype.sqr=function(){return this.mul(this)},a.prototype.isqr=function(){return this.imul(this.clone())},a.prototype.pow=function(n){var t=function(n){for(var t=new Array(n.bitLength()),e=0;e>>i}return t}(n);if(0===t.length)return new a(1);for(var e=this,r=0;r=0);var t,e=n%26,i=(n-e)/26,a=67108863>>>26-e<<26-e;if(0!==e){var o=0;for(t=0;t>>26-e}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=0),i=t?(t-t%26)/26:0;var a=n%26,o=Math.min((n-a)/26,this.length),l=67108863^67108863>>>a<o)for(this.length-=o,u=0;u=0&&(0!==c||u>=i);u--){var d=0|this.words[u];this.words[u]=c<<26-a|d>>>a,c=d&l}return s&&0!==c&&(s.words[s.length++]=c),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},a.prototype.ishrn=function(n,t,e){return r(0===this.negative),this.iushrn(n,t,e)},a.prototype.shln=function(n){return this.clone().ishln(n)},a.prototype.ushln=function(n){return this.clone().iushln(n)},a.prototype.shrn=function(n){return this.clone().ishrn(n)},a.prototype.ushrn=function(n){return this.clone().iushrn(n)},a.prototype.testn=function(n){r("number"==typeof n&&n>=0);var t=n%26,e=(n-t)/26,i=1<=0);var t=n%26,e=(n-t)/26;if(r(0===this.negative,"imaskn works only with positive numbers"),this.length<=e)return this;if(0!==t&&e++,this.length=Math.min(e,this.length),0!==t){var i=67108863^67108863>>>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(n){if(r("number"==typeof n),r(n<67108864),n<0)return this.iaddn(-n);if(0!==this.negative)return this.negative=0,this.iaddn(n),this.negative=1,this;if(this.words[0]-=n,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var t=0;t>26)-(s/67108864|0),this.words[i+e]=67108863&a}for(;i>26,this.words[i+e]=67108863&a;if(0===l)return this.strip();for(r(-1===l),l=0,i=0;i>26,this.words[i]=67108863&a;return this.negative=1,this.strip()},a.prototype._wordDiv=function(n,t){var e=(this.length,n.length),r=this.clone(),i=n,o=0|i.words[i.length-1];0!==(e=26-this._countBits(o))&&(i=i.ushln(e),r.iushln(e),o=0|i.words[i.length-1]);var l,s=r.length-i.length;if("mod"!==t){(l=new a(null)).length=s+1,l.words=new Array(l.length);for(var u=0;u=0;d--){var f=67108864*(0|r.words[i.length+d])+(0|r.words[i.length+d-1]);for(f=Math.min(f/o|0,67108863),r._ishlnsubmul(i,f,d);0!==r.negative;)f--,r.negative=0,r._ishlnsubmul(i,1,d),r.isZero()||(r.negative^=1);l&&(l.words[d]=f)}return l&&l.strip(),r.strip(),"div"!==t&&0!==e&&r.iushrn(e),{div:l||null,mod:r}},a.prototype.divmod=function(n,t,e){return r(!n.isZero()),this.isZero()?{div:new a(0),mod:new a(0)}:0!==this.negative&&0===n.negative?(l=this.neg().divmod(n,t),"mod"!==t&&(i=l.div.neg()),"div"!==t&&(o=l.mod.neg(),e&&0!==o.negative&&o.iadd(n)),{div:i,mod:o}):0===this.negative&&0!==n.negative?(l=this.divmod(n.neg(),t),"mod"!==t&&(i=l.div.neg()),{div:i,mod:l.mod}):0!=(this.negative&n.negative)?(l=this.neg().divmod(n.neg(),t),"div"!==t&&(o=l.mod.neg(),e&&0!==o.negative&&o.isub(n)),{div:l.div,mod:o}):n.length>this.length||this.cmp(n)<0?{div:new a(0),mod:this}:1===n.length?"div"===t?{div:this.divn(n.words[0]),mod:null}:"mod"===t?{div:null,mod:new a(this.modn(n.words[0]))}:{div:this.divn(n.words[0]),mod:new a(this.modn(n.words[0]))}:this._wordDiv(n,t);var i,o,l},a.prototype.div=function(n){return this.divmod(n,"div",!1).div},a.prototype.mod=function(n){return this.divmod(n,"mod",!1).mod},a.prototype.umod=function(n){return this.divmod(n,"mod",!0).mod},a.prototype.divRound=function(n){var t=this.divmod(n);if(t.mod.isZero())return t.div;var e=0!==t.div.negative?t.mod.isub(n):t.mod,r=n.ushrn(1),i=n.andln(1),a=e.cmp(r);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(n){r(n<=67108863);for(var t=(1<<26)%n,e=0,i=this.length-1;i>=0;i--)e=(t*e+(0|this.words[i]))%n;return e},a.prototype.idivn=function(n){r(n<=67108863);for(var t=0,e=this.length-1;e>=0;e--){var i=(0|this.words[e])+67108864*t;this.words[e]=i/n|0,t=i%n}return this.strip()},a.prototype.divn=function(n){return this.clone().idivn(n)},a.prototype.egcd=function(n){r(0===n.negative),r(!n.isZero());var t=this,e=n.clone();t=0!==t.negative?t.umod(n):t.clone();for(var i=new a(1),o=new a(0),l=new a(0),s=new a(1),u=0;t.isEven()&&e.isEven();)t.iushrn(1),e.iushrn(1),++u;for(var c=e.clone(),d=t.clone();!t.isZero();){for(var f=0,h=1;0==(t.words[0]&h)&&f<26;++f,h<<=1);if(f>0)for(t.iushrn(f);f-- >0;)(i.isOdd()||o.isOdd())&&(i.iadd(c),o.isub(d)),i.iushrn(1),o.iushrn(1);for(var p=0,m=1;0==(e.words[0]&m)&&p<26;++p,m<<=1);if(p>0)for(e.iushrn(p);p-- >0;)(l.isOdd()||s.isOdd())&&(l.iadd(c),s.isub(d)),l.iushrn(1),s.iushrn(1);t.cmp(e)>=0?(t.isub(e),i.isub(l),o.isub(s)):(e.isub(t),l.isub(i),s.isub(o))}return{a:l,b:s,gcd:e.iushln(u)}},a.prototype._invmp=function(n){r(0===n.negative),r(!n.isZero());var t=this,e=n.clone();t=0!==t.negative?t.umod(n):t.clone();for(var i,o=new a(1),l=new a(0),s=e.clone();t.cmpn(1)>0&&e.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(s),o.iushrn(1);for(var d=0,f=1;0==(e.words[0]&f)&&d<26;++d,f<<=1);if(d>0)for(e.iushrn(d);d-- >0;)l.isOdd()&&l.iadd(s),l.iushrn(1);t.cmp(e)>=0?(t.isub(e),o.isub(l)):(e.isub(t),l.isub(o))}return(i=0===t.cmpn(1)?o:l).cmpn(0)<0&&i.iadd(n),i},a.prototype.gcd=function(n){if(this.isZero())return n.abs();if(n.isZero())return this.abs();var t=this.clone(),e=n.clone();t.negative=0,e.negative=0;for(var r=0;t.isEven()&&e.isEven();r++)t.iushrn(1),e.iushrn(1);for(;;){for(;t.isEven();)t.iushrn(1);for(;e.isEven();)e.iushrn(1);var i=t.cmp(e);if(i<0){var a=t;t=e,e=a}else if(0===i||0===e.cmpn(1))break;t.isub(e)}return e.iushln(r)},a.prototype.invm=function(n){return this.egcd(n).a.umod(n)},a.prototype.isEven=function(){return 0==(1&this.words[0])},a.prototype.isOdd=function(){return 1==(1&this.words[0])},a.prototype.andln=function(n){return this.words[0]&n},a.prototype.bincn=function(n){r("number"==typeof n);var t=n%26,e=(n-t)/26,i=1<>>26,l&=67108863,this.words[o]=l}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(n){var t,e=n<0;if(0!==this.negative&&!e)return-1;if(0===this.negative&&e)return 1;if(this.strip(),this.length>1)t=1;else{e&&(n=-n),r(n<=67108863,"Number is too big");var i=0|this.words[0];t=i===n?0:in.length)return 1;if(this.length=0;e--){var r=0|this.words[e],i=0|n.words[e];if(r!==i){ri&&(t=1);break}}return t},a.prototype.gtn=function(n){return 1===this.cmpn(n)},a.prototype.gt=function(n){return 1===this.cmp(n)},a.prototype.gten=function(n){return this.cmpn(n)>=0},a.prototype.gte=function(n){return this.cmp(n)>=0},a.prototype.ltn=function(n){return-1===this.cmpn(n)},a.prototype.lt=function(n){return-1===this.cmp(n)},a.prototype.lten=function(n){return this.cmpn(n)<=0},a.prototype.lte=function(n){return this.cmp(n)<=0},a.prototype.eqn=function(n){return 0===this.cmpn(n)},a.prototype.eq=function(n){return 0===this.cmp(n)},a.red=function(n){return new k(n)},a.prototype.toRed=function(n){return r(!this.red,"Already a number in reduction context"),r(0===this.negative,"red works only with positives"),n.convertTo(this)._forceRed(n)},a.prototype.fromRed=function(){return r(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},a.prototype._forceRed=function(n){return this.red=n,this},a.prototype.forceRed=function(n){return r(!this.red,"Already a number in reduction context"),this._forceRed(n)},a.prototype.redAdd=function(n){return r(this.red,"redAdd works only with red numbers"),this.red.add(this,n)},a.prototype.redIAdd=function(n){return r(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,n)},a.prototype.redSub=function(n){return r(this.red,"redSub works only with red numbers"),this.red.sub(this,n)},a.prototype.redISub=function(n){return r(this.red,"redISub works only with red numbers"),this.red.isub(this,n)},a.prototype.redShl=function(n){return r(this.red,"redShl works only with red numbers"),this.red.shl(this,n)},a.prototype.redMul=function(n){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,n),this.red.mul(this,n)},a.prototype.redIMul=function(n){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,n),this.red.imul(this,n)},a.prototype.redSqr=function(){return r(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},a.prototype.redISqr=function(){return r(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},a.prototype.redSqrt=function(){return r(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},a.prototype.redInvm=function(){return r(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},a.prototype.redNeg=function(){return r(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},a.prototype.redPow=function(n){return r(this.red&&!n.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,n)};var g={k256:null,p224:null,p192:null,p25519:null};function b(n,t){this.name=n,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 v(){b.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function y(){b.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function w(){b.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function x(){b.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function k(n){if("string"==typeof n){var t=a._prime(n);this.m=t.p,this.prime=t}else r(n.gtn(1),"modulus must be greater than 1"),this.m=n,this.prime=null}function M(n){k.call(this,n),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)}b.prototype._tmp=function(){var n=new a(null);return n.words=new Array(Math.ceil(this.n/13)),n},b.prototype.ireduce=function(n){var t,e=n;do{this.split(e,this.tmp),t=(e=(e=this.imulK(e)).iadd(this.tmp)).bitLength()}while(t>this.n);var r=t0?e.isub(this.p):void 0!==e.strip?e.strip():e._strip(),e},b.prototype.split=function(n,t){n.iushrn(this.n,0,t)},b.prototype.imulK=function(n){return n.imul(this.k)},i(v,b),v.prototype.split=function(n,t){for(var e=Math.min(n.length,9),r=0;r>>22,i=a}i>>>=22,n.words[r-10]=i,0===i&&n.length>10?n.length-=10:n.length-=9},v.prototype.imulK=function(n){n.words[n.length]=0,n.words[n.length+1]=0,n.length+=2;for(var t=0,e=0;e>>=26,n.words[e]=i,t=r}return 0!==t&&(n.words[n.length++]=t),n},a._prime=function(n){if(g[n])return g[n];var t;if("k256"===n)t=new v;else if("p224"===n)t=new y;else if("p192"===n)t=new w;else{if("p25519"!==n)throw new Error("Unknown prime "+n);t=new x}return g[n]=t,t},k.prototype._verify1=function(n){r(0===n.negative,"red works only with positives"),r(n.red,"red works only with red numbers")},k.prototype._verify2=function(n,t){r(0==(n.negative|t.negative),"red works only with positives"),r(n.red&&n.red===t.red,"red works only with red numbers")},k.prototype.imod=function(n){return this.prime?this.prime.ireduce(n)._forceRed(this):n.umod(this.m)._forceRed(this)},k.prototype.neg=function(n){return n.isZero()?n.clone():this.m.sub(n)._forceRed(this)},k.prototype.add=function(n,t){this._verify2(n,t);var e=n.add(t);return e.cmp(this.m)>=0&&e.isub(this.m),e._forceRed(this)},k.prototype.iadd=function(n,t){this._verify2(n,t);var e=n.iadd(t);return e.cmp(this.m)>=0&&e.isub(this.m),e},k.prototype.sub=function(n,t){this._verify2(n,t);var e=n.sub(t);return e.cmpn(0)<0&&e.iadd(this.m),e._forceRed(this)},k.prototype.isub=function(n,t){this._verify2(n,t);var e=n.isub(t);return e.cmpn(0)<0&&e.iadd(this.m),e},k.prototype.shl=function(n,t){return this._verify1(n),this.imod(n.ushln(t))},k.prototype.imul=function(n,t){return this._verify2(n,t),this.imod(n.imul(t))},k.prototype.mul=function(n,t){return this._verify2(n,t),this.imod(n.mul(t))},k.prototype.isqr=function(n){return this.imul(n,n.clone())},k.prototype.sqr=function(n){return this.mul(n,n)},k.prototype.sqrt=function(n){if(n.isZero())return n.clone();var t=this.m.andln(3);if(r(t%2==1),3===t){var e=this.m.add(new a(1)).iushrn(2);return this.pow(n,e)}for(var i=this.m.subn(1),o=0;!i.isZero()&&0===i.andln(1);)o++,i.iushrn(1);r(!i.isZero());var l=new a(1).toRed(this),s=l.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(s);)c.redIAdd(s);for(var d=this.pow(c,i),f=this.pow(n,i.addn(1).iushrn(1)),h=this.pow(n,i),p=o;0!==h.cmp(l);){for(var m=h,g=0;0!==m.cmp(l);g++)m=m.redSqr();r(g=0;r--){for(var u=t.words[r],c=s-1;c>=0;c--){var d=u>>c&1;i!==e[0]&&(i=this.sqr(i)),0!==d||0!==o?(o<<=1,o|=d,(4===++l||0===r&&0===c)&&(i=this.mul(i,e[o]),l=0,o=0)):l=0}s=26}return i},k.prototype.convertTo=function(n){var t=n.umod(this.m);return t===n?t.clone():t},k.prototype.convertFrom=function(n){var t=n.clone();return t.red=null,t},a.mont=function(n){return new M(n)},i(M,k),M.prototype.convertTo=function(n){return this.imod(n.ushln(this.shift))},M.prototype.convertFrom=function(n){var t=this.imod(n.mul(this.rinv));return t.red=null,t},M.prototype.imul=function(n,t){if(n.isZero()||t.isZero())return n.words[0]=0,n.length=1,n;var e=n.imul(t),r=e.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=e.isub(r).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)},M.prototype.mul=function(n,t){if(n.isZero()||t.isZero())return new a(0)._forceRed(this);var e=n.mul(t),r=e.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=e.isub(r).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)},M.prototype.invm=function(n){return this.imod(n._invmp(this.m).mul(this.r2))._forceRed(this)}}(n,this)}).call(this,e(27)(n))},function(n,t,e){var r=e(450),i=e(87);function a(n){this.rand=n||new i.Rand}n.exports=a,a.create=function(n){return new a(n)},a.prototype._randbelow=function(n){var t=n.bitLength(),e=Math.ceil(t/8);do{var i=new r(this.rand.generate(e))}while(i.cmp(n)>=0);return i},a.prototype._randrange=function(n,t){var e=t.sub(n);return n.add(this._randbelow(e))},a.prototype.test=function(n,t,e){var i=n.bitLength(),a=r.mont(n),o=new r(1).toRed(a);t||(t=Math.max(1,i/48|0));for(var l=n.subn(1),s=0;!l.testn(s);s++);for(var u=n.shrn(s),c=l.toRed(a);t>0;t--){var d=this._randrange(new r(2),l);e&&e(d);var f=d.toRed(a).redPow(u);if(0!==f.cmp(o)&&0!==f.cmp(c)){for(var h=1;h0;t--){var c=this._randrange(new r(2),o),d=n.gcd(c);if(0!==d.cmpn(1))return d;var f=c.toRed(i).redPow(s);if(0!==f.cmp(a)&&0!==f.cmp(u)){for(var h=1;h>8,o=255&i;a?e.push(a,o):e.push(o)}return e},r.zero2=i,r.toHex=a,r.encode=function(n,t){return"hex"===t?a(n):n}},function(n,t,e){"use strict";var r=t;r.base=e(65),r.short=e(461),r.mont=e(462),r.edwards=e(463)},function(n,t,e){"use strict";var r=e(20).rotr32;function i(n,t,e){return n&t^~n&e}function a(n,t,e){return n&t^n&e^t&e}function o(n,t,e){return n^t^e}t.ft_1=function(n,t,e,r){return 0===n?i(t,e,r):1===n||3===n?o(t,e,r):2===n?a(t,e,r):void 0},t.ch32=i,t.maj32=a,t.p32=o,t.s0_256=function(n){return r(n,2)^r(n,13)^r(n,22)},t.s1_256=function(n){return r(n,6)^r(n,11)^r(n,25)},t.g0_256=function(n){return r(n,7)^r(n,18)^n>>>3},t.g1_256=function(n){return r(n,17)^r(n,19)^n>>>10}},function(n,t,e){"use strict";var r=e(20),i=e(55),a=e(151),o=e(14),l=r.sum32,s=r.sum32_4,u=r.sum32_5,c=a.ch32,d=a.maj32,f=a.s0_256,h=a.s1_256,p=a.g0_256,m=a.g1_256,g=i.BlockHash,b=[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 v(){if(!(this instanceof v))return new v;g.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=b,this.W=new Array(64)}r.inherits(v,g),n.exports=v,v.blockSize=512,v.outSize=256,v.hmacStrength=192,v.padLength=64,v.prototype._update=function(n,t){for(var e=this.W,r=0;r<16;r++)e[r]=n[t+r];for(;r=49&&u<=54?u-49+10:u>=17&&u<=22?u-17+10:u,o|=s}return r(!(240&o),"Invalid character in "+n),i}function s(n,t,e,i){for(var a=0,o=0,l=Math.min(n.length,e),s=t;s=49?u-49+10:u>=17?u-17+10:u,r(u>=0&&o0?n:t},a.min=function(n,t){return n.cmp(t)<0?n:t},a.prototype._init=function(n,t,e){if("number"==typeof n)return this._initNumber(n,t,e);if("object"==typeof n)return this._initArray(n,t,e);"hex"===t&&(t=16),r(t===(0|t)&&t>=2&&t<=36);var i=0;"-"===(n=n.toString().replace(/\s+/g,""))[0]&&i++,16===t?this._parseHex(n,i):this._parseBase(n,t,i),"-"===n[0]&&(this.negative=1),this._strip(),"le"===e&&this._initArray(this.toArray(),t,e)},a.prototype._initNumber=function(n,t,e){n<0&&(this.negative=1,n=-n),n<67108864?(this.words=[67108863&n],this.length=1):n<4503599627370496?(this.words=[67108863&n,n/67108864&67108863],this.length=2):(r(n<9007199254740992),this.words=[67108863&n,n/67108864&67108863,1],this.length=3),"le"===e&&this._initArray(this.toArray(),t,e)},a.prototype._initArray=function(n,t,e){if(r("number"==typeof n.length),n.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(n.length/3),this.words=new Array(this.length);for(var i=0;i=0;i-=3)o=n[i]|n[i-1]<<8|n[i-2]<<16,this.words[a]|=o<>>26-l&67108863,(l+=24)>=26&&(l-=26,a++);else if("le"===e)for(i=0,a=0;i>>26-l&67108863,(l+=24)>=26&&(l-=26,a++);return this._strip()},a.prototype._parseHex=function(n,t){this.length=Math.ceil((n.length-t)/6),this.words=new Array(this.length);for(var e=0;e=t;e-=6)i=l(n,e,e+6),this.words[r]|=i<>>26-a&4194303,(a+=24)>=26&&(a-=26,r++);e+6!==t&&(i=l(n,t,e+6),this.words[r]|=i<>>26-a&4194303),this._strip()},a.prototype._parseBase=function(n,t,e){this.words=[0],this.length=1;for(var r=0,i=1;i<=67108863;i*=t)r++;r--,i=i/t|0;for(var a=n.length-e,o=a%r,l=Math.min(a,a-o)+e,u=0,c=e;c1&&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},"undefined"!=typeof Symbol&&"function"==typeof Symbol.for)try{a.prototype[Symbol.for("nodejs.util.inspect.custom")]=c}catch(n){a.prototype.inspect=c}else a.prototype.inspect=c;function c(){return(this.red?""}var d=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],f=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],h=[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];a.prototype.toString=function(n,t){var e;if(t=0|t||1,16===(n=n||10)||"hex"===n){e="";for(var i=0,a=0,o=0;o>>24-i&16777215)||o!==this.length-1?d[6-s.length]+s+e:s+e,(i+=2)>=26&&(i-=26,o--)}for(0!==a&&(e=a.toString(16)+e);e.length%t!=0;)e="0"+e;return 0!==this.negative&&(e="-"+e),e}if(n===(0|n)&&n>=2&&n<=36){var u=f[n],c=h[n];e="";var p=this.clone();for(p.negative=0;!p.isZero();){var m=p.modrn(c).toString(n);e=(p=p.idivn(c)).isZero()?m+e:d[u-m.length]+m+e}for(this.isZero()&&(e="0"+e);e.length%t!=0;)e="0"+e;return 0!==this.negative&&(e="-"+e),e}r(!1,"Base should be between 2 and 36")},a.prototype.toNumber=function(){var n=this.words[0];return 2===this.length?n+=67108864*this.words[1]:3===this.length&&1===this.words[2]?n+=4503599627370496+67108864*this.words[1]:this.length>2&&r(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-n:n},a.prototype.toJSON=function(){return this.toString(16,2)},o&&(a.prototype.toBuffer=function(n,t){return this.toArrayLike(o,n,t)}),a.prototype.toArray=function(n,t){return this.toArrayLike(Array,n,t)};function p(n,t,e){e.negative=t.negative^n.negative;var r=n.length+t.length|0;e.length=r,r=r-1|0;var i=0|n.words[0],a=0|t.words[0],o=i*a,l=67108863&o,s=o/67108864|0;e.words[0]=l;for(var u=1;u>>26,d=67108863&s,f=Math.min(u,t.length-1),h=Math.max(0,u-n.length+1);h<=f;h++){var p=u-h|0;c+=(o=(i=0|n.words[p])*(a=0|t.words[h])+d)/67108864|0,d=67108863&o}e.words[u]=0|d,s=0|c}return 0!==s?e.words[u]=0|s:e.length--,e._strip()}a.prototype.toArrayLike=function(n,t,e){this._strip();var i=this.byteLength(),a=e||Math.max(1,i);r(i<=a,"byte array longer than desired length"),r(a>0,"Requested array length <= 0");var o=function(n,t){return n.allocUnsafe?n.allocUnsafe(t):new n(t)}(n,a);return this["_toArrayLike"+("le"===t?"LE":"BE")](o,i),o},a.prototype._toArrayLikeLE=function(n,t){for(var e=0,r=0,i=0,a=0;i>8&255),e>16&255),6===a?(e>24&255),r=0,a=0):(r=o>>>24,a+=2)}if(e=0&&(n[e--]=o>>8&255),e>=0&&(n[e--]=o>>16&255),6===a?(e>=0&&(n[e--]=o>>24&255),r=0,a=0):(r=o>>>24,a+=2)}if(e>=0)for(n[e--]=r;e>=0;)n[e--]=0},Math.clz32?a.prototype._countBits=function(n){return 32-Math.clz32(n)}:a.prototype._countBits=function(n){var t=n,e=0;return t>=4096&&(e+=13,t>>>=13),t>=64&&(e+=7,t>>>=7),t>=8&&(e+=4,t>>>=4),t>=2&&(e+=2,t>>>=2),e+t},a.prototype._zeroBits=function(n){if(0===n)return 26;var t=n,e=0;return 0==(8191&t)&&(e+=13,t>>>=13),0==(127&t)&&(e+=7,t>>>=7),0==(15&t)&&(e+=4,t>>>=4),0==(3&t)&&(e+=2,t>>>=2),0==(1&t)&&e++,e},a.prototype.bitLength=function(){var n=this.words[this.length-1],t=this._countBits(n);return 26*(this.length-1)+t},a.prototype.zeroBits=function(){if(this.isZero())return 0;for(var n=0,t=0;tn.length?this.clone().ior(n):n.clone().ior(this)},a.prototype.uor=function(n){return this.length>n.length?this.clone().iuor(n):n.clone().iuor(this)},a.prototype.iuand=function(n){var t;t=this.length>n.length?n:this;for(var e=0;en.length?this.clone().iand(n):n.clone().iand(this)},a.prototype.uand=function(n){return this.length>n.length?this.clone().iuand(n):n.clone().iuand(this)},a.prototype.iuxor=function(n){var t,e;this.length>n.length?(t=this,e=n):(t=n,e=this);for(var r=0;rn.length?this.clone().ixor(n):n.clone().ixor(this)},a.prototype.uxor=function(n){return this.length>n.length?this.clone().iuxor(n):n.clone().iuxor(this)},a.prototype.inotn=function(n){r("number"==typeof n&&n>=0);var t=0|Math.ceil(n/26),e=n%26;this._expand(t),e>0&&t--;for(var i=0;i0&&(this.words[i]=~this.words[i]&67108863>>26-e),this._strip()},a.prototype.notn=function(n){return this.clone().inotn(n)},a.prototype.setn=function(n,t){r("number"==typeof n&&n>=0);var e=n/26|0,i=n%26;return this._expand(e+1),this.words[e]=t?this.words[e]|1<n.length?(e=this,r=n):(e=n,r=this);for(var i=0,a=0;a>>26;for(;0!==i&&a>>26;if(this.length=e.length,0!==i)this.words[this.length]=i,this.length++;else if(e!==this)for(;an.length?this.clone().iadd(n):n.clone().iadd(this)},a.prototype.isub=function(n){if(0!==n.negative){n.negative=0;var t=this.iadd(n);return n.negative=1,t._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(n),this.negative=1,this._normSign();var e,r,i=this.cmp(n);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;i>0?(e=this,r=n):(e=n,r=this);for(var a=0,o=0;o>26,this.words[o]=67108863&t;for(;0!==a&&o>26,this.words[o]=67108863&t;if(0===a&&o>>13,h=0|o[1],p=8191&h,m=h>>>13,g=0|o[2],b=8191&g,v=g>>>13,y=0|o[3],w=8191&y,x=y>>>13,k=0|o[4],M=8191&k,_=k>>>13,S=0|o[5],E=8191&S,O=S>>>13,T=0|o[6],A=8191&T,C=T>>>13,j=0|o[7],z=8191&j,P=j>>>13,R=0|o[8],I=8191&R,D=R>>>13,N=0|o[9],B=8191&N,L=N>>>13,U=0|l[0],q=8191&U,F=U>>>13,H=0|l[1],W=8191&H,Y=H>>>13,Z=0|l[2],V=8191&Z,$=Z>>>13,K=0|l[3],X=8191&K,G=K>>>13,Q=0|l[4],J=8191&Q,nn=Q>>>13,tn=0|l[5],en=8191&tn,rn=tn>>>13,an=0|l[6],on=8191&an,ln=an>>>13,sn=0|l[7],un=8191&sn,cn=sn>>>13,dn=0|l[8],fn=8191&dn,hn=dn>>>13,pn=0|l[9],mn=8191&pn,gn=pn>>>13;e.negative=n.negative^t.negative,e.length=19;var bn=(u+(r=Math.imul(d,q))|0)+((8191&(i=(i=Math.imul(d,F))+Math.imul(f,q)|0))<<13)|0;u=((a=Math.imul(f,F))+(i>>>13)|0)+(bn>>>26)|0,bn&=67108863,r=Math.imul(p,q),i=(i=Math.imul(p,F))+Math.imul(m,q)|0,a=Math.imul(m,F);var vn=(u+(r=r+Math.imul(d,W)|0)|0)+((8191&(i=(i=i+Math.imul(d,Y)|0)+Math.imul(f,W)|0))<<13)|0;u=((a=a+Math.imul(f,Y)|0)+(i>>>13)|0)+(vn>>>26)|0,vn&=67108863,r=Math.imul(b,q),i=(i=Math.imul(b,F))+Math.imul(v,q)|0,a=Math.imul(v,F),r=r+Math.imul(p,W)|0,i=(i=i+Math.imul(p,Y)|0)+Math.imul(m,W)|0,a=a+Math.imul(m,Y)|0;var yn=(u+(r=r+Math.imul(d,V)|0)|0)+((8191&(i=(i=i+Math.imul(d,$)|0)+Math.imul(f,V)|0))<<13)|0;u=((a=a+Math.imul(f,$)|0)+(i>>>13)|0)+(yn>>>26)|0,yn&=67108863,r=Math.imul(w,q),i=(i=Math.imul(w,F))+Math.imul(x,q)|0,a=Math.imul(x,F),r=r+Math.imul(b,W)|0,i=(i=i+Math.imul(b,Y)|0)+Math.imul(v,W)|0,a=a+Math.imul(v,Y)|0,r=r+Math.imul(p,V)|0,i=(i=i+Math.imul(p,$)|0)+Math.imul(m,V)|0,a=a+Math.imul(m,$)|0;var wn=(u+(r=r+Math.imul(d,X)|0)|0)+((8191&(i=(i=i+Math.imul(d,G)|0)+Math.imul(f,X)|0))<<13)|0;u=((a=a+Math.imul(f,G)|0)+(i>>>13)|0)+(wn>>>26)|0,wn&=67108863,r=Math.imul(M,q),i=(i=Math.imul(M,F))+Math.imul(_,q)|0,a=Math.imul(_,F),r=r+Math.imul(w,W)|0,i=(i=i+Math.imul(w,Y)|0)+Math.imul(x,W)|0,a=a+Math.imul(x,Y)|0,r=r+Math.imul(b,V)|0,i=(i=i+Math.imul(b,$)|0)+Math.imul(v,V)|0,a=a+Math.imul(v,$)|0,r=r+Math.imul(p,X)|0,i=(i=i+Math.imul(p,G)|0)+Math.imul(m,X)|0,a=a+Math.imul(m,G)|0;var xn=(u+(r=r+Math.imul(d,J)|0)|0)+((8191&(i=(i=i+Math.imul(d,nn)|0)+Math.imul(f,J)|0))<<13)|0;u=((a=a+Math.imul(f,nn)|0)+(i>>>13)|0)+(xn>>>26)|0,xn&=67108863,r=Math.imul(E,q),i=(i=Math.imul(E,F))+Math.imul(O,q)|0,a=Math.imul(O,F),r=r+Math.imul(M,W)|0,i=(i=i+Math.imul(M,Y)|0)+Math.imul(_,W)|0,a=a+Math.imul(_,Y)|0,r=r+Math.imul(w,V)|0,i=(i=i+Math.imul(w,$)|0)+Math.imul(x,V)|0,a=a+Math.imul(x,$)|0,r=r+Math.imul(b,X)|0,i=(i=i+Math.imul(b,G)|0)+Math.imul(v,X)|0,a=a+Math.imul(v,G)|0,r=r+Math.imul(p,J)|0,i=(i=i+Math.imul(p,nn)|0)+Math.imul(m,J)|0,a=a+Math.imul(m,nn)|0;var kn=(u+(r=r+Math.imul(d,en)|0)|0)+((8191&(i=(i=i+Math.imul(d,rn)|0)+Math.imul(f,en)|0))<<13)|0;u=((a=a+Math.imul(f,rn)|0)+(i>>>13)|0)+(kn>>>26)|0,kn&=67108863,r=Math.imul(A,q),i=(i=Math.imul(A,F))+Math.imul(C,q)|0,a=Math.imul(C,F),r=r+Math.imul(E,W)|0,i=(i=i+Math.imul(E,Y)|0)+Math.imul(O,W)|0,a=a+Math.imul(O,Y)|0,r=r+Math.imul(M,V)|0,i=(i=i+Math.imul(M,$)|0)+Math.imul(_,V)|0,a=a+Math.imul(_,$)|0,r=r+Math.imul(w,X)|0,i=(i=i+Math.imul(w,G)|0)+Math.imul(x,X)|0,a=a+Math.imul(x,G)|0,r=r+Math.imul(b,J)|0,i=(i=i+Math.imul(b,nn)|0)+Math.imul(v,J)|0,a=a+Math.imul(v,nn)|0,r=r+Math.imul(p,en)|0,i=(i=i+Math.imul(p,rn)|0)+Math.imul(m,en)|0,a=a+Math.imul(m,rn)|0;var Mn=(u+(r=r+Math.imul(d,on)|0)|0)+((8191&(i=(i=i+Math.imul(d,ln)|0)+Math.imul(f,on)|0))<<13)|0;u=((a=a+Math.imul(f,ln)|0)+(i>>>13)|0)+(Mn>>>26)|0,Mn&=67108863,r=Math.imul(z,q),i=(i=Math.imul(z,F))+Math.imul(P,q)|0,a=Math.imul(P,F),r=r+Math.imul(A,W)|0,i=(i=i+Math.imul(A,Y)|0)+Math.imul(C,W)|0,a=a+Math.imul(C,Y)|0,r=r+Math.imul(E,V)|0,i=(i=i+Math.imul(E,$)|0)+Math.imul(O,V)|0,a=a+Math.imul(O,$)|0,r=r+Math.imul(M,X)|0,i=(i=i+Math.imul(M,G)|0)+Math.imul(_,X)|0,a=a+Math.imul(_,G)|0,r=r+Math.imul(w,J)|0,i=(i=i+Math.imul(w,nn)|0)+Math.imul(x,J)|0,a=a+Math.imul(x,nn)|0,r=r+Math.imul(b,en)|0,i=(i=i+Math.imul(b,rn)|0)+Math.imul(v,en)|0,a=a+Math.imul(v,rn)|0,r=r+Math.imul(p,on)|0,i=(i=i+Math.imul(p,ln)|0)+Math.imul(m,on)|0,a=a+Math.imul(m,ln)|0;var _n=(u+(r=r+Math.imul(d,un)|0)|0)+((8191&(i=(i=i+Math.imul(d,cn)|0)+Math.imul(f,un)|0))<<13)|0;u=((a=a+Math.imul(f,cn)|0)+(i>>>13)|0)+(_n>>>26)|0,_n&=67108863,r=Math.imul(I,q),i=(i=Math.imul(I,F))+Math.imul(D,q)|0,a=Math.imul(D,F),r=r+Math.imul(z,W)|0,i=(i=i+Math.imul(z,Y)|0)+Math.imul(P,W)|0,a=a+Math.imul(P,Y)|0,r=r+Math.imul(A,V)|0,i=(i=i+Math.imul(A,$)|0)+Math.imul(C,V)|0,a=a+Math.imul(C,$)|0,r=r+Math.imul(E,X)|0,i=(i=i+Math.imul(E,G)|0)+Math.imul(O,X)|0,a=a+Math.imul(O,G)|0,r=r+Math.imul(M,J)|0,i=(i=i+Math.imul(M,nn)|0)+Math.imul(_,J)|0,a=a+Math.imul(_,nn)|0,r=r+Math.imul(w,en)|0,i=(i=i+Math.imul(w,rn)|0)+Math.imul(x,en)|0,a=a+Math.imul(x,rn)|0,r=r+Math.imul(b,on)|0,i=(i=i+Math.imul(b,ln)|0)+Math.imul(v,on)|0,a=a+Math.imul(v,ln)|0,r=r+Math.imul(p,un)|0,i=(i=i+Math.imul(p,cn)|0)+Math.imul(m,un)|0,a=a+Math.imul(m,cn)|0;var Sn=(u+(r=r+Math.imul(d,fn)|0)|0)+((8191&(i=(i=i+Math.imul(d,hn)|0)+Math.imul(f,fn)|0))<<13)|0;u=((a=a+Math.imul(f,hn)|0)+(i>>>13)|0)+(Sn>>>26)|0,Sn&=67108863,r=Math.imul(B,q),i=(i=Math.imul(B,F))+Math.imul(L,q)|0,a=Math.imul(L,F),r=r+Math.imul(I,W)|0,i=(i=i+Math.imul(I,Y)|0)+Math.imul(D,W)|0,a=a+Math.imul(D,Y)|0,r=r+Math.imul(z,V)|0,i=(i=i+Math.imul(z,$)|0)+Math.imul(P,V)|0,a=a+Math.imul(P,$)|0,r=r+Math.imul(A,X)|0,i=(i=i+Math.imul(A,G)|0)+Math.imul(C,X)|0,a=a+Math.imul(C,G)|0,r=r+Math.imul(E,J)|0,i=(i=i+Math.imul(E,nn)|0)+Math.imul(O,J)|0,a=a+Math.imul(O,nn)|0,r=r+Math.imul(M,en)|0,i=(i=i+Math.imul(M,rn)|0)+Math.imul(_,en)|0,a=a+Math.imul(_,rn)|0,r=r+Math.imul(w,on)|0,i=(i=i+Math.imul(w,ln)|0)+Math.imul(x,on)|0,a=a+Math.imul(x,ln)|0,r=r+Math.imul(b,un)|0,i=(i=i+Math.imul(b,cn)|0)+Math.imul(v,un)|0,a=a+Math.imul(v,cn)|0,r=r+Math.imul(p,fn)|0,i=(i=i+Math.imul(p,hn)|0)+Math.imul(m,fn)|0,a=a+Math.imul(m,hn)|0;var En=(u+(r=r+Math.imul(d,mn)|0)|0)+((8191&(i=(i=i+Math.imul(d,gn)|0)+Math.imul(f,mn)|0))<<13)|0;u=((a=a+Math.imul(f,gn)|0)+(i>>>13)|0)+(En>>>26)|0,En&=67108863,r=Math.imul(B,W),i=(i=Math.imul(B,Y))+Math.imul(L,W)|0,a=Math.imul(L,Y),r=r+Math.imul(I,V)|0,i=(i=i+Math.imul(I,$)|0)+Math.imul(D,V)|0,a=a+Math.imul(D,$)|0,r=r+Math.imul(z,X)|0,i=(i=i+Math.imul(z,G)|0)+Math.imul(P,X)|0,a=a+Math.imul(P,G)|0,r=r+Math.imul(A,J)|0,i=(i=i+Math.imul(A,nn)|0)+Math.imul(C,J)|0,a=a+Math.imul(C,nn)|0,r=r+Math.imul(E,en)|0,i=(i=i+Math.imul(E,rn)|0)+Math.imul(O,en)|0,a=a+Math.imul(O,rn)|0,r=r+Math.imul(M,on)|0,i=(i=i+Math.imul(M,ln)|0)+Math.imul(_,on)|0,a=a+Math.imul(_,ln)|0,r=r+Math.imul(w,un)|0,i=(i=i+Math.imul(w,cn)|0)+Math.imul(x,un)|0,a=a+Math.imul(x,cn)|0,r=r+Math.imul(b,fn)|0,i=(i=i+Math.imul(b,hn)|0)+Math.imul(v,fn)|0,a=a+Math.imul(v,hn)|0;var On=(u+(r=r+Math.imul(p,mn)|0)|0)+((8191&(i=(i=i+Math.imul(p,gn)|0)+Math.imul(m,mn)|0))<<13)|0;u=((a=a+Math.imul(m,gn)|0)+(i>>>13)|0)+(On>>>26)|0,On&=67108863,r=Math.imul(B,V),i=(i=Math.imul(B,$))+Math.imul(L,V)|0,a=Math.imul(L,$),r=r+Math.imul(I,X)|0,i=(i=i+Math.imul(I,G)|0)+Math.imul(D,X)|0,a=a+Math.imul(D,G)|0,r=r+Math.imul(z,J)|0,i=(i=i+Math.imul(z,nn)|0)+Math.imul(P,J)|0,a=a+Math.imul(P,nn)|0,r=r+Math.imul(A,en)|0,i=(i=i+Math.imul(A,rn)|0)+Math.imul(C,en)|0,a=a+Math.imul(C,rn)|0,r=r+Math.imul(E,on)|0,i=(i=i+Math.imul(E,ln)|0)+Math.imul(O,on)|0,a=a+Math.imul(O,ln)|0,r=r+Math.imul(M,un)|0,i=(i=i+Math.imul(M,cn)|0)+Math.imul(_,un)|0,a=a+Math.imul(_,cn)|0,r=r+Math.imul(w,fn)|0,i=(i=i+Math.imul(w,hn)|0)+Math.imul(x,fn)|0,a=a+Math.imul(x,hn)|0;var Tn=(u+(r=r+Math.imul(b,mn)|0)|0)+((8191&(i=(i=i+Math.imul(b,gn)|0)+Math.imul(v,mn)|0))<<13)|0;u=((a=a+Math.imul(v,gn)|0)+(i>>>13)|0)+(Tn>>>26)|0,Tn&=67108863,r=Math.imul(B,X),i=(i=Math.imul(B,G))+Math.imul(L,X)|0,a=Math.imul(L,G),r=r+Math.imul(I,J)|0,i=(i=i+Math.imul(I,nn)|0)+Math.imul(D,J)|0,a=a+Math.imul(D,nn)|0,r=r+Math.imul(z,en)|0,i=(i=i+Math.imul(z,rn)|0)+Math.imul(P,en)|0,a=a+Math.imul(P,rn)|0,r=r+Math.imul(A,on)|0,i=(i=i+Math.imul(A,ln)|0)+Math.imul(C,on)|0,a=a+Math.imul(C,ln)|0,r=r+Math.imul(E,un)|0,i=(i=i+Math.imul(E,cn)|0)+Math.imul(O,un)|0,a=a+Math.imul(O,cn)|0,r=r+Math.imul(M,fn)|0,i=(i=i+Math.imul(M,hn)|0)+Math.imul(_,fn)|0,a=a+Math.imul(_,hn)|0;var An=(u+(r=r+Math.imul(w,mn)|0)|0)+((8191&(i=(i=i+Math.imul(w,gn)|0)+Math.imul(x,mn)|0))<<13)|0;u=((a=a+Math.imul(x,gn)|0)+(i>>>13)|0)+(An>>>26)|0,An&=67108863,r=Math.imul(B,J),i=(i=Math.imul(B,nn))+Math.imul(L,J)|0,a=Math.imul(L,nn),r=r+Math.imul(I,en)|0,i=(i=i+Math.imul(I,rn)|0)+Math.imul(D,en)|0,a=a+Math.imul(D,rn)|0,r=r+Math.imul(z,on)|0,i=(i=i+Math.imul(z,ln)|0)+Math.imul(P,on)|0,a=a+Math.imul(P,ln)|0,r=r+Math.imul(A,un)|0,i=(i=i+Math.imul(A,cn)|0)+Math.imul(C,un)|0,a=a+Math.imul(C,cn)|0,r=r+Math.imul(E,fn)|0,i=(i=i+Math.imul(E,hn)|0)+Math.imul(O,fn)|0,a=a+Math.imul(O,hn)|0;var Cn=(u+(r=r+Math.imul(M,mn)|0)|0)+((8191&(i=(i=i+Math.imul(M,gn)|0)+Math.imul(_,mn)|0))<<13)|0;u=((a=a+Math.imul(_,gn)|0)+(i>>>13)|0)+(Cn>>>26)|0,Cn&=67108863,r=Math.imul(B,en),i=(i=Math.imul(B,rn))+Math.imul(L,en)|0,a=Math.imul(L,rn),r=r+Math.imul(I,on)|0,i=(i=i+Math.imul(I,ln)|0)+Math.imul(D,on)|0,a=a+Math.imul(D,ln)|0,r=r+Math.imul(z,un)|0,i=(i=i+Math.imul(z,cn)|0)+Math.imul(P,un)|0,a=a+Math.imul(P,cn)|0,r=r+Math.imul(A,fn)|0,i=(i=i+Math.imul(A,hn)|0)+Math.imul(C,fn)|0,a=a+Math.imul(C,hn)|0;var jn=(u+(r=r+Math.imul(E,mn)|0)|0)+((8191&(i=(i=i+Math.imul(E,gn)|0)+Math.imul(O,mn)|0))<<13)|0;u=((a=a+Math.imul(O,gn)|0)+(i>>>13)|0)+(jn>>>26)|0,jn&=67108863,r=Math.imul(B,on),i=(i=Math.imul(B,ln))+Math.imul(L,on)|0,a=Math.imul(L,ln),r=r+Math.imul(I,un)|0,i=(i=i+Math.imul(I,cn)|0)+Math.imul(D,un)|0,a=a+Math.imul(D,cn)|0,r=r+Math.imul(z,fn)|0,i=(i=i+Math.imul(z,hn)|0)+Math.imul(P,fn)|0,a=a+Math.imul(P,hn)|0;var zn=(u+(r=r+Math.imul(A,mn)|0)|0)+((8191&(i=(i=i+Math.imul(A,gn)|0)+Math.imul(C,mn)|0))<<13)|0;u=((a=a+Math.imul(C,gn)|0)+(i>>>13)|0)+(zn>>>26)|0,zn&=67108863,r=Math.imul(B,un),i=(i=Math.imul(B,cn))+Math.imul(L,un)|0,a=Math.imul(L,cn),r=r+Math.imul(I,fn)|0,i=(i=i+Math.imul(I,hn)|0)+Math.imul(D,fn)|0,a=a+Math.imul(D,hn)|0;var Pn=(u+(r=r+Math.imul(z,mn)|0)|0)+((8191&(i=(i=i+Math.imul(z,gn)|0)+Math.imul(P,mn)|0))<<13)|0;u=((a=a+Math.imul(P,gn)|0)+(i>>>13)|0)+(Pn>>>26)|0,Pn&=67108863,r=Math.imul(B,fn),i=(i=Math.imul(B,hn))+Math.imul(L,fn)|0,a=Math.imul(L,hn);var Rn=(u+(r=r+Math.imul(I,mn)|0)|0)+((8191&(i=(i=i+Math.imul(I,gn)|0)+Math.imul(D,mn)|0))<<13)|0;u=((a=a+Math.imul(D,gn)|0)+(i>>>13)|0)+(Rn>>>26)|0,Rn&=67108863;var In=(u+(r=Math.imul(B,mn))|0)+((8191&(i=(i=Math.imul(B,gn))+Math.imul(L,mn)|0))<<13)|0;return u=((a=Math.imul(L,gn))+(i>>>13)|0)+(In>>>26)|0,In&=67108863,s[0]=bn,s[1]=vn,s[2]=yn,s[3]=wn,s[4]=xn,s[5]=kn,s[6]=Mn,s[7]=_n,s[8]=Sn,s[9]=En,s[10]=On,s[11]=Tn,s[12]=An,s[13]=Cn,s[14]=jn,s[15]=zn,s[16]=Pn,s[17]=Rn,s[18]=In,0!==u&&(s[19]=u,e.length++),e};function g(n,t,e){e.negative=t.negative^n.negative,e.length=n.length+t.length;for(var r=0,i=0,a=0;a>>26)|0)>>>26,o&=67108863}e.words[a]=l,r=o,o=i}return 0!==r?e.words[a]=r:e.length--,e._strip()}function b(n,t,e){return g(n,t,e)}function v(n,t){this.x=n,this.y=t}Math.imul||(m=p),a.prototype.mulTo=function(n,t){var e=this.length+n.length;return 10===this.length&&10===n.length?m(this,n,t):e<63?p(this,n,t):e<1024?g(this,n,t):b(this,n,t)},v.prototype.makeRBT=function(n){for(var t=new Array(n),e=a.prototype._countBits(n)-1,r=0;r>=1;return r},v.prototype.permute=function(n,t,e,r,i,a){for(var o=0;o>>=1)i++;return 1<>>=13,e[2*o+1]=8191&a,a>>>=13;for(o=2*t;o>=26,e+=a/67108864|0,e+=o>>>26,this.words[i]=67108863&o}return 0!==e&&(this.words[i]=e,this.length++),t?this.ineg():this},a.prototype.muln=function(n){return this.clone().imuln(n)},a.prototype.sqr=function(){return this.mul(this)},a.prototype.isqr=function(){return this.imul(this.clone())},a.prototype.pow=function(n){var t=function(n){for(var t=new Array(n.bitLength()),e=0;e>>i&1}return t}(n);if(0===t.length)return new a(1);for(var e=this,r=0;r=0);var t,e=n%26,i=(n-e)/26,a=67108863>>>26-e<<26-e;if(0!==e){var o=0;for(t=0;t>>26-e}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=0),i=t?(t-t%26)/26:0;var a=n%26,o=Math.min((n-a)/26,this.length),l=67108863^67108863>>>a<o)for(this.length-=o,u=0;u=0&&(0!==c||u>=i);u--){var d=0|this.words[u];this.words[u]=c<<26-a|d>>>a,c=d&l}return s&&0!==c&&(s.words[s.length++]=c),0===this.length&&(this.words[0]=0,this.length=1),this._strip()},a.prototype.ishrn=function(n,t,e){return r(0===this.negative),this.iushrn(n,t,e)},a.prototype.shln=function(n){return this.clone().ishln(n)},a.prototype.ushln=function(n){return this.clone().iushln(n)},a.prototype.shrn=function(n){return this.clone().ishrn(n)},a.prototype.ushrn=function(n){return this.clone().iushrn(n)},a.prototype.testn=function(n){r("number"==typeof n&&n>=0);var t=n%26,e=(n-t)/26,i=1<=0);var t=n%26,e=(n-t)/26;if(r(0===this.negative,"imaskn works only with positive numbers"),this.length<=e)return this;if(0!==t&&e++,this.length=Math.min(e,this.length),0!==t){var i=67108863^67108863>>>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(n){if(r("number"==typeof n),r(n<67108864),n<0)return this.iaddn(-n);if(0!==this.negative)return this.negative=0,this.iaddn(n),this.negative=1,this;if(this.words[0]-=n,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var t=0;t>26)-(s/67108864|0),this.words[i+e]=67108863&a}for(;i>26,this.words[i+e]=67108863&a;if(0===l)return this._strip();for(r(-1===l),l=0,i=0;i>26,this.words[i]=67108863&a;return this.negative=1,this._strip()},a.prototype._wordDiv=function(n,t){var e=(this.length,n.length),r=this.clone(),i=n,o=0|i.words[i.length-1];0!==(e=26-this._countBits(o))&&(i=i.ushln(e),r.iushln(e),o=0|i.words[i.length-1]);var l,s=r.length-i.length;if("mod"!==t){(l=new a(null)).length=s+1,l.words=new Array(l.length);for(var u=0;u=0;d--){var f=67108864*(0|r.words[i.length+d])+(0|r.words[i.length+d-1]);for(f=Math.min(f/o|0,67108863),r._ishlnsubmul(i,f,d);0!==r.negative;)f--,r.negative=0,r._ishlnsubmul(i,1,d),r.isZero()||(r.negative^=1);l&&(l.words[d]=f)}return l&&l._strip(),r._strip(),"div"!==t&&0!==e&&r.iushrn(e),{div:l||null,mod:r}},a.prototype.divmod=function(n,t,e){return r(!n.isZero()),this.isZero()?{div:new a(0),mod:new a(0)}:0!==this.negative&&0===n.negative?(l=this.neg().divmod(n,t),"mod"!==t&&(i=l.div.neg()),"div"!==t&&(o=l.mod.neg(),e&&0!==o.negative&&o.iadd(n)),{div:i,mod:o}):0===this.negative&&0!==n.negative?(l=this.divmod(n.neg(),t),"mod"!==t&&(i=l.div.neg()),{div:i,mod:l.mod}):0!=(this.negative&n.negative)?(l=this.neg().divmod(n.neg(),t),"div"!==t&&(o=l.mod.neg(),e&&0!==o.negative&&o.isub(n)),{div:l.div,mod:o}):n.length>this.length||this.cmp(n)<0?{div:new a(0),mod:this}:1===n.length?"div"===t?{div:this.divn(n.words[0]),mod:null}:"mod"===t?{div:null,mod:new a(this.modrn(n.words[0]))}:{div:this.divn(n.words[0]),mod:new a(this.modrn(n.words[0]))}:this._wordDiv(n,t);var i,o,l},a.prototype.div=function(n){return this.divmod(n,"div",!1).div},a.prototype.mod=function(n){return this.divmod(n,"mod",!1).mod},a.prototype.umod=function(n){return this.divmod(n,"mod",!0).mod},a.prototype.divRound=function(n){var t=this.divmod(n);if(t.mod.isZero())return t.div;var e=0!==t.div.negative?t.mod.isub(n):t.mod,r=n.ushrn(1),i=n.andln(1),a=e.cmp(r);return a<0||1===i&&0===a?t.div:0!==t.div.negative?t.div.isubn(1):t.div.iaddn(1)},a.prototype.modrn=function(n){var t=n<0;t&&(n=-n),r(n<=67108863);for(var e=(1<<26)%n,i=0,a=this.length-1;a>=0;a--)i=(e*i+(0|this.words[a]))%n;return t?-i:i},a.prototype.modn=function(n){return this.modrn(n)},a.prototype.idivn=function(n){var t=n<0;t&&(n=-n),r(n<=67108863);for(var e=0,i=this.length-1;i>=0;i--){var a=(0|this.words[i])+67108864*e;this.words[i]=a/n|0,e=a%n}return this._strip(),t?this.ineg():this},a.prototype.divn=function(n){return this.clone().idivn(n)},a.prototype.egcd=function(n){r(0===n.negative),r(!n.isZero());var t=this,e=n.clone();t=0!==t.negative?t.umod(n):t.clone();for(var i=new a(1),o=new a(0),l=new a(0),s=new a(1),u=0;t.isEven()&&e.isEven();)t.iushrn(1),e.iushrn(1),++u;for(var c=e.clone(),d=t.clone();!t.isZero();){for(var f=0,h=1;0==(t.words[0]&h)&&f<26;++f,h<<=1);if(f>0)for(t.iushrn(f);f-- >0;)(i.isOdd()||o.isOdd())&&(i.iadd(c),o.isub(d)),i.iushrn(1),o.iushrn(1);for(var p=0,m=1;0==(e.words[0]&m)&&p<26;++p,m<<=1);if(p>0)for(e.iushrn(p);p-- >0;)(l.isOdd()||s.isOdd())&&(l.iadd(c),s.isub(d)),l.iushrn(1),s.iushrn(1);t.cmp(e)>=0?(t.isub(e),i.isub(l),o.isub(s)):(e.isub(t),l.isub(i),s.isub(o))}return{a:l,b:s,gcd:e.iushln(u)}},a.prototype._invmp=function(n){r(0===n.negative),r(!n.isZero());var t=this,e=n.clone();t=0!==t.negative?t.umod(n):t.clone();for(var i,o=new a(1),l=new a(0),s=e.clone();t.cmpn(1)>0&&e.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(s),o.iushrn(1);for(var d=0,f=1;0==(e.words[0]&f)&&d<26;++d,f<<=1);if(d>0)for(e.iushrn(d);d-- >0;)l.isOdd()&&l.iadd(s),l.iushrn(1);t.cmp(e)>=0?(t.isub(e),o.isub(l)):(e.isub(t),l.isub(o))}return(i=0===t.cmpn(1)?o:l).cmpn(0)<0&&i.iadd(n),i},a.prototype.gcd=function(n){if(this.isZero())return n.abs();if(n.isZero())return this.abs();var t=this.clone(),e=n.clone();t.negative=0,e.negative=0;for(var r=0;t.isEven()&&e.isEven();r++)t.iushrn(1),e.iushrn(1);for(;;){for(;t.isEven();)t.iushrn(1);for(;e.isEven();)e.iushrn(1);var i=t.cmp(e);if(i<0){var a=t;t=e,e=a}else if(0===i||0===e.cmpn(1))break;t.isub(e)}return e.iushln(r)},a.prototype.invm=function(n){return this.egcd(n).a.umod(n)},a.prototype.isEven=function(){return 0==(1&this.words[0])},a.prototype.isOdd=function(){return 1==(1&this.words[0])},a.prototype.andln=function(n){return this.words[0]&n},a.prototype.bincn=function(n){r("number"==typeof n);var t=n%26,e=(n-t)/26,i=1<>>26,l&=67108863,this.words[o]=l}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(n){var t,e=n<0;if(0!==this.negative&&!e)return-1;if(0===this.negative&&e)return 1;if(this._strip(),this.length>1)t=1;else{e&&(n=-n),r(n<=67108863,"Number is too big");var i=0|this.words[0];t=i===n?0:in.length)return 1;if(this.length=0;e--){var r=0|this.words[e],i=0|n.words[e];if(r!==i){ri&&(t=1);break}}return t},a.prototype.gtn=function(n){return 1===this.cmpn(n)},a.prototype.gt=function(n){return 1===this.cmp(n)},a.prototype.gten=function(n){return this.cmpn(n)>=0},a.prototype.gte=function(n){return this.cmp(n)>=0},a.prototype.ltn=function(n){return-1===this.cmpn(n)},a.prototype.lt=function(n){return-1===this.cmp(n)},a.prototype.lten=function(n){return this.cmpn(n)<=0},a.prototype.lte=function(n){return this.cmp(n)<=0},a.prototype.eqn=function(n){return 0===this.cmpn(n)},a.prototype.eq=function(n){return 0===this.cmp(n)},a.red=function(n){return new S(n)},a.prototype.toRed=function(n){return r(!this.red,"Already a number in reduction context"),r(0===this.negative,"red works only with positives"),n.convertTo(this)._forceRed(n)},a.prototype.fromRed=function(){return r(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},a.prototype._forceRed=function(n){return this.red=n,this},a.prototype.forceRed=function(n){return r(!this.red,"Already a number in reduction context"),this._forceRed(n)},a.prototype.redAdd=function(n){return r(this.red,"redAdd works only with red numbers"),this.red.add(this,n)},a.prototype.redIAdd=function(n){return r(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,n)},a.prototype.redSub=function(n){return r(this.red,"redSub works only with red numbers"),this.red.sub(this,n)},a.prototype.redISub=function(n){return r(this.red,"redISub works only with red numbers"),this.red.isub(this,n)},a.prototype.redShl=function(n){return r(this.red,"redShl works only with red numbers"),this.red.shl(this,n)},a.prototype.redMul=function(n){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,n),this.red.mul(this,n)},a.prototype.redIMul=function(n){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,n),this.red.imul(this,n)},a.prototype.redSqr=function(){return r(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},a.prototype.redISqr=function(){return r(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},a.prototype.redSqrt=function(){return r(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},a.prototype.redInvm=function(){return r(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},a.prototype.redNeg=function(){return r(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},a.prototype.redPow=function(n){return r(this.red&&!n.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,n)};var y={k256:null,p224:null,p192:null,p25519:null};function w(n,t){this.name=n,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 x(){w.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function k(){w.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function M(){w.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function _(){w.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function S(n){if("string"==typeof n){var t=a._prime(n);this.m=t.p,this.prime=t}else r(n.gtn(1),"modulus must be greater than 1"),this.m=n,this.prime=null}function E(n){S.call(this,n),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)}w.prototype._tmp=function(){var n=new a(null);return n.words=new Array(Math.ceil(this.n/13)),n},w.prototype.ireduce=function(n){var t,e=n;do{this.split(e,this.tmp),t=(e=(e=this.imulK(e)).iadd(this.tmp)).bitLength()}while(t>this.n);var r=t0?e.isub(this.p):void 0!==e.strip?e.strip():e._strip(),e},w.prototype.split=function(n,t){n.iushrn(this.n,0,t)},w.prototype.imulK=function(n){return n.imul(this.k)},i(x,w),x.prototype.split=function(n,t){for(var e=Math.min(n.length,9),r=0;r>>22,i=a}i>>>=22,n.words[r-10]=i,0===i&&n.length>10?n.length-=10:n.length-=9},x.prototype.imulK=function(n){n.words[n.length]=0,n.words[n.length+1]=0,n.length+=2;for(var t=0,e=0;e>>=26,n.words[e]=i,t=r}return 0!==t&&(n.words[n.length++]=t),n},a._prime=function(n){if(y[n])return y[n];var t;if("k256"===n)t=new x;else if("p224"===n)t=new k;else if("p192"===n)t=new M;else{if("p25519"!==n)throw new Error("Unknown prime "+n);t=new _}return y[n]=t,t},S.prototype._verify1=function(n){r(0===n.negative,"red works only with positives"),r(n.red,"red works only with red numbers")},S.prototype._verify2=function(n,t){r(0==(n.negative|t.negative),"red works only with positives"),r(n.red&&n.red===t.red,"red works only with red numbers")},S.prototype.imod=function(n){return this.prime?this.prime.ireduce(n)._forceRed(this):(u(n,n.umod(this.m)._forceRed(this)),n)},S.prototype.neg=function(n){return n.isZero()?n.clone():this.m.sub(n)._forceRed(this)},S.prototype.add=function(n,t){this._verify2(n,t);var e=n.add(t);return e.cmp(this.m)>=0&&e.isub(this.m),e._forceRed(this)},S.prototype.iadd=function(n,t){this._verify2(n,t);var e=n.iadd(t);return e.cmp(this.m)>=0&&e.isub(this.m),e},S.prototype.sub=function(n,t){this._verify2(n,t);var e=n.sub(t);return e.cmpn(0)<0&&e.iadd(this.m),e._forceRed(this)},S.prototype.isub=function(n,t){this._verify2(n,t);var e=n.isub(t);return e.cmpn(0)<0&&e.iadd(this.m),e},S.prototype.shl=function(n,t){return this._verify1(n),this.imod(n.ushln(t))},S.prototype.imul=function(n,t){return this._verify2(n,t),this.imod(n.imul(t))},S.prototype.mul=function(n,t){return this._verify2(n,t),this.imod(n.mul(t))},S.prototype.isqr=function(n){return this.imul(n,n.clone())},S.prototype.sqr=function(n){return this.mul(n,n)},S.prototype.sqrt=function(n){if(n.isZero())return n.clone();var t=this.m.andln(3);if(r(t%2==1),3===t){var e=this.m.add(new a(1)).iushrn(2);return this.pow(n,e)}for(var i=this.m.subn(1),o=0;!i.isZero()&&0===i.andln(1);)o++,i.iushrn(1);r(!i.isZero());var l=new a(1).toRed(this),s=l.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(s);)c.redIAdd(s);for(var d=this.pow(c,i),f=this.pow(n,i.addn(1).iushrn(1)),h=this.pow(n,i),p=o;0!==h.cmp(l);){for(var m=h,g=0;0!==m.cmp(l);g++)m=m.redSqr();r(g=0;r--){for(var u=t.words[r],c=s-1;c>=0;c--){var d=u>>c&1;i!==e[0]&&(i=this.sqr(i)),0!==d||0!==o?(o<<=1,o|=d,(4===++l||0===r&&0===c)&&(i=this.mul(i,e[o]),l=0,o=0)):l=0}s=26}return i},S.prototype.convertTo=function(n){var t=n.umod(this.m);return t===n?t.clone():t},S.prototype.convertFrom=function(n){var t=n.clone();return t.red=null,t},a.mont=function(n){return new E(n)},i(E,S),E.prototype.convertTo=function(n){return this.imod(n.ushln(this.shift))},E.prototype.convertFrom=function(n){var t=this.imod(n.mul(this.rinv));return t.red=null,t},E.prototype.imul=function(n,t){if(n.isZero()||t.isZero())return n.words[0]=0,n.length=1,n;var e=n.imul(t),r=e.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=e.isub(r).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)},E.prototype.mul=function(n,t){if(n.isZero()||t.isZero())return new a(0)._forceRed(this);var e=n.mul(t),r=e.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=e.isub(r).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)},E.prototype.invm=function(n){return this.imod(n._invmp(this.m).mul(this.r2))._forceRed(this)}}(n,this)}).call(this,e(27)(n))},function(n,t,e){"use strict";const r=t;r.bignum=e(156),r.define=e(481).define,r.base=e(484),r.constants=e(485),r.decoders=e(159),r.encoders=e(157)},function(n,t,e){(function(n){!function(n,t){"use strict";function r(n,t){if(!n)throw new Error(t||"Assertion failed")}function i(n,t){n.super_=t;var e=function(){};e.prototype=t.prototype,n.prototype=new e,n.prototype.constructor=n}function a(n,t,e){if(a.isBN(n))return n;this.negative=0,this.words=null,this.length=0,this.red=null,null!==n&&("le"!==t&&"be"!==t||(e=t,t=10),this._init(n||0,t||10,e||"be"))}var o;"object"==typeof n?n.exports=a:t.BN=a,a.BN=a,a.wordSize=26;try{o=e(480).Buffer}catch(n){}function l(n,t,e){for(var r=0,i=Math.min(n.length,e),a=t;a=49&&o<=54?o-49+10:o>=17&&o<=22?o-17+10:15&o}return r}function s(n,t,e,r){for(var i=0,a=Math.min(n.length,e),o=t;o=49?l-49+10:l>=17?l-17+10:l}return i}a.isBN=function(n){return n instanceof a||null!==n&&"object"==typeof n&&n.constructor.wordSize===a.wordSize&&Array.isArray(n.words)},a.max=function(n,t){return n.cmp(t)>0?n:t},a.min=function(n,t){return n.cmp(t)<0?n:t},a.prototype._init=function(n,t,e){if("number"==typeof n)return this._initNumber(n,t,e);if("object"==typeof n)return this._initArray(n,t,e);"hex"===t&&(t=16),r(t===(0|t)&&t>=2&&t<=36);var i=0;"-"===(n=n.toString().replace(/\s+/g,""))[0]&&i++,16===t?this._parseHex(n,i):this._parseBase(n,t,i),"-"===n[0]&&(this.negative=1),this.strip(),"le"===e&&this._initArray(this.toArray(),t,e)},a.prototype._initNumber=function(n,t,e){n<0&&(this.negative=1,n=-n),n<67108864?(this.words=[67108863&n],this.length=1):n<4503599627370496?(this.words=[67108863&n,n/67108864&67108863],this.length=2):(r(n<9007199254740992),this.words=[67108863&n,n/67108864&67108863,1],this.length=3),"le"===e&&this._initArray(this.toArray(),t,e)},a.prototype._initArray=function(n,t,e){if(r("number"==typeof n.length),n.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(n.length/3),this.words=new Array(this.length);for(var i=0;i=0;i-=3)o=n[i]|n[i-1]<<8|n[i-2]<<16,this.words[a]|=o<>>26-l&67108863,(l+=24)>=26&&(l-=26,a++);else if("le"===e)for(i=0,a=0;i>>26-l&67108863,(l+=24)>=26&&(l-=26,a++);return this.strip()},a.prototype._parseHex=function(n,t){this.length=Math.ceil((n.length-t)/6),this.words=new Array(this.length);for(var e=0;e=t;e-=6)i=l(n,e,e+6),this.words[r]|=i<>>26-a&4194303,(a+=24)>=26&&(a-=26,r++);e+6!==t&&(i=l(n,t,e+6),this.words[r]|=i<>>26-a&4194303),this.strip()},a.prototype._parseBase=function(n,t,e){this.words=[0],this.length=1;for(var r=0,i=1;i<=67108863;i*=t)r++;r--,i=i/t|0;for(var a=n.length-e,o=a%r,l=Math.min(a,a-o)+e,u=0,c=e;c1&&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?""};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],d=[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 f(n,t,e){e.negative=t.negative^n.negative;var r=n.length+t.length|0;e.length=r,r=r-1|0;var i=0|n.words[0],a=0|t.words[0],o=i*a,l=67108863&o,s=o/67108864|0;e.words[0]=l;for(var u=1;u>>26,d=67108863&s,f=Math.min(u,t.length-1),h=Math.max(0,u-n.length+1);h<=f;h++){var p=u-h|0;c+=(o=(i=0|n.words[p])*(a=0|t.words[h])+d)/67108864|0,d=67108863&o}e.words[u]=0|d,s=0|c}return 0!==s?e.words[u]=0|s:e.length--,e.strip()}a.prototype.toString=function(n,t){var e;if(t=0|t||1,16===(n=n||10)||"hex"===n){e="";for(var i=0,a=0,o=0;o>>24-i&16777215)||o!==this.length-1?u[6-s.length]+s+e:s+e,(i+=2)>=26&&(i-=26,o--)}for(0!==a&&(e=a.toString(16)+e);e.length%t!=0;)e="0"+e;return 0!==this.negative&&(e="-"+e),e}if(n===(0|n)&&n>=2&&n<=36){var f=c[n],h=d[n];e="";var p=this.clone();for(p.negative=0;!p.isZero();){var m=p.modn(h).toString(n);e=(p=p.idivn(h)).isZero()?m+e:u[f-m.length]+m+e}for(this.isZero()&&(e="0"+e);e.length%t!=0;)e="0"+e;return 0!==this.negative&&(e="-"+e),e}r(!1,"Base should be between 2 and 36")},a.prototype.toNumber=function(){var n=this.words[0];return 2===this.length?n+=67108864*this.words[1]:3===this.length&&1===this.words[2]?n+=4503599627370496+67108864*this.words[1]:this.length>2&&r(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-n:n},a.prototype.toJSON=function(){return this.toString(16)},a.prototype.toBuffer=function(n,t){return r(void 0!==o),this.toArrayLike(o,n,t)},a.prototype.toArray=function(n,t){return this.toArrayLike(Array,n,t)},a.prototype.toArrayLike=function(n,t,e){var i=this.byteLength(),a=e||Math.max(1,i);r(i<=a,"byte array longer than desired length"),r(a>0,"Requested array length <= 0"),this.strip();var o,l,s="le"===t,u=new n(a),c=this.clone();if(s){for(l=0;!c.isZero();l++)o=c.andln(255),c.iushrn(8),u[l]=o;for(;l=4096&&(e+=13,t>>>=13),t>=64&&(e+=7,t>>>=7),t>=8&&(e+=4,t>>>=4),t>=2&&(e+=2,t>>>=2),e+t},a.prototype._zeroBits=function(n){if(0===n)return 26;var t=n,e=0;return 0==(8191&t)&&(e+=13,t>>>=13),0==(127&t)&&(e+=7,t>>>=7),0==(15&t)&&(e+=4,t>>>=4),0==(3&t)&&(e+=2,t>>>=2),0==(1&t)&&e++,e},a.prototype.bitLength=function(){var n=this.words[this.length-1],t=this._countBits(n);return 26*(this.length-1)+t},a.prototype.zeroBits=function(){if(this.isZero())return 0;for(var n=0,t=0;tn.length?this.clone().ior(n):n.clone().ior(this)},a.prototype.uor=function(n){return this.length>n.length?this.clone().iuor(n):n.clone().iuor(this)},a.prototype.iuand=function(n){var t;t=this.length>n.length?n:this;for(var e=0;en.length?this.clone().iand(n):n.clone().iand(this)},a.prototype.uand=function(n){return this.length>n.length?this.clone().iuand(n):n.clone().iuand(this)},a.prototype.iuxor=function(n){var t,e;this.length>n.length?(t=this,e=n):(t=n,e=this);for(var r=0;rn.length?this.clone().ixor(n):n.clone().ixor(this)},a.prototype.uxor=function(n){return this.length>n.length?this.clone().iuxor(n):n.clone().iuxor(this)},a.prototype.inotn=function(n){r("number"==typeof n&&n>=0);var t=0|Math.ceil(n/26),e=n%26;this._expand(t),e>0&&t--;for(var i=0;i0&&(this.words[i]=~this.words[i]&67108863>>26-e),this.strip()},a.prototype.notn=function(n){return this.clone().inotn(n)},a.prototype.setn=function(n,t){r("number"==typeof n&&n>=0);var e=n/26|0,i=n%26;return this._expand(e+1),this.words[e]=t?this.words[e]|1<n.length?(e=this,r=n):(e=n,r=this);for(var i=0,a=0;a>>26;for(;0!==i&&a>>26;if(this.length=e.length,0!==i)this.words[this.length]=i,this.length++;else if(e!==this)for(;an.length?this.clone().iadd(n):n.clone().iadd(this)},a.prototype.isub=function(n){if(0!==n.negative){n.negative=0;var t=this.iadd(n);return n.negative=1,t._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(n),this.negative=1,this._normSign();var e,r,i=this.cmp(n);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;i>0?(e=this,r=n):(e=n,r=this);for(var a=0,o=0;o>26,this.words[o]=67108863&t;for(;0!==a&&o>26,this.words[o]=67108863&t;if(0===a&&o>>13,h=0|o[1],p=8191&h,m=h>>>13,g=0|o[2],b=8191&g,v=g>>>13,y=0|o[3],w=8191&y,x=y>>>13,k=0|o[4],M=8191&k,_=k>>>13,S=0|o[5],E=8191&S,O=S>>>13,T=0|o[6],A=8191&T,C=T>>>13,j=0|o[7],z=8191&j,P=j>>>13,R=0|o[8],I=8191&R,D=R>>>13,N=0|o[9],B=8191&N,L=N>>>13,U=0|l[0],q=8191&U,F=U>>>13,H=0|l[1],W=8191&H,Y=H>>>13,Z=0|l[2],V=8191&Z,$=Z>>>13,K=0|l[3],X=8191&K,G=K>>>13,Q=0|l[4],J=8191&Q,nn=Q>>>13,tn=0|l[5],en=8191&tn,rn=tn>>>13,an=0|l[6],on=8191&an,ln=an>>>13,sn=0|l[7],un=8191&sn,cn=sn>>>13,dn=0|l[8],fn=8191&dn,hn=dn>>>13,pn=0|l[9],mn=8191&pn,gn=pn>>>13;e.negative=n.negative^t.negative,e.length=19;var bn=(u+(r=Math.imul(d,q))|0)+((8191&(i=(i=Math.imul(d,F))+Math.imul(f,q)|0))<<13)|0;u=((a=Math.imul(f,F))+(i>>>13)|0)+(bn>>>26)|0,bn&=67108863,r=Math.imul(p,q),i=(i=Math.imul(p,F))+Math.imul(m,q)|0,a=Math.imul(m,F);var vn=(u+(r=r+Math.imul(d,W)|0)|0)+((8191&(i=(i=i+Math.imul(d,Y)|0)+Math.imul(f,W)|0))<<13)|0;u=((a=a+Math.imul(f,Y)|0)+(i>>>13)|0)+(vn>>>26)|0,vn&=67108863,r=Math.imul(b,q),i=(i=Math.imul(b,F))+Math.imul(v,q)|0,a=Math.imul(v,F),r=r+Math.imul(p,W)|0,i=(i=i+Math.imul(p,Y)|0)+Math.imul(m,W)|0,a=a+Math.imul(m,Y)|0;var yn=(u+(r=r+Math.imul(d,V)|0)|0)+((8191&(i=(i=i+Math.imul(d,$)|0)+Math.imul(f,V)|0))<<13)|0;u=((a=a+Math.imul(f,$)|0)+(i>>>13)|0)+(yn>>>26)|0,yn&=67108863,r=Math.imul(w,q),i=(i=Math.imul(w,F))+Math.imul(x,q)|0,a=Math.imul(x,F),r=r+Math.imul(b,W)|0,i=(i=i+Math.imul(b,Y)|0)+Math.imul(v,W)|0,a=a+Math.imul(v,Y)|0,r=r+Math.imul(p,V)|0,i=(i=i+Math.imul(p,$)|0)+Math.imul(m,V)|0,a=a+Math.imul(m,$)|0;var wn=(u+(r=r+Math.imul(d,X)|0)|0)+((8191&(i=(i=i+Math.imul(d,G)|0)+Math.imul(f,X)|0))<<13)|0;u=((a=a+Math.imul(f,G)|0)+(i>>>13)|0)+(wn>>>26)|0,wn&=67108863,r=Math.imul(M,q),i=(i=Math.imul(M,F))+Math.imul(_,q)|0,a=Math.imul(_,F),r=r+Math.imul(w,W)|0,i=(i=i+Math.imul(w,Y)|0)+Math.imul(x,W)|0,a=a+Math.imul(x,Y)|0,r=r+Math.imul(b,V)|0,i=(i=i+Math.imul(b,$)|0)+Math.imul(v,V)|0,a=a+Math.imul(v,$)|0,r=r+Math.imul(p,X)|0,i=(i=i+Math.imul(p,G)|0)+Math.imul(m,X)|0,a=a+Math.imul(m,G)|0;var xn=(u+(r=r+Math.imul(d,J)|0)|0)+((8191&(i=(i=i+Math.imul(d,nn)|0)+Math.imul(f,J)|0))<<13)|0;u=((a=a+Math.imul(f,nn)|0)+(i>>>13)|0)+(xn>>>26)|0,xn&=67108863,r=Math.imul(E,q),i=(i=Math.imul(E,F))+Math.imul(O,q)|0,a=Math.imul(O,F),r=r+Math.imul(M,W)|0,i=(i=i+Math.imul(M,Y)|0)+Math.imul(_,W)|0,a=a+Math.imul(_,Y)|0,r=r+Math.imul(w,V)|0,i=(i=i+Math.imul(w,$)|0)+Math.imul(x,V)|0,a=a+Math.imul(x,$)|0,r=r+Math.imul(b,X)|0,i=(i=i+Math.imul(b,G)|0)+Math.imul(v,X)|0,a=a+Math.imul(v,G)|0,r=r+Math.imul(p,J)|0,i=(i=i+Math.imul(p,nn)|0)+Math.imul(m,J)|0,a=a+Math.imul(m,nn)|0;var kn=(u+(r=r+Math.imul(d,en)|0)|0)+((8191&(i=(i=i+Math.imul(d,rn)|0)+Math.imul(f,en)|0))<<13)|0;u=((a=a+Math.imul(f,rn)|0)+(i>>>13)|0)+(kn>>>26)|0,kn&=67108863,r=Math.imul(A,q),i=(i=Math.imul(A,F))+Math.imul(C,q)|0,a=Math.imul(C,F),r=r+Math.imul(E,W)|0,i=(i=i+Math.imul(E,Y)|0)+Math.imul(O,W)|0,a=a+Math.imul(O,Y)|0,r=r+Math.imul(M,V)|0,i=(i=i+Math.imul(M,$)|0)+Math.imul(_,V)|0,a=a+Math.imul(_,$)|0,r=r+Math.imul(w,X)|0,i=(i=i+Math.imul(w,G)|0)+Math.imul(x,X)|0,a=a+Math.imul(x,G)|0,r=r+Math.imul(b,J)|0,i=(i=i+Math.imul(b,nn)|0)+Math.imul(v,J)|0,a=a+Math.imul(v,nn)|0,r=r+Math.imul(p,en)|0,i=(i=i+Math.imul(p,rn)|0)+Math.imul(m,en)|0,a=a+Math.imul(m,rn)|0;var Mn=(u+(r=r+Math.imul(d,on)|0)|0)+((8191&(i=(i=i+Math.imul(d,ln)|0)+Math.imul(f,on)|0))<<13)|0;u=((a=a+Math.imul(f,ln)|0)+(i>>>13)|0)+(Mn>>>26)|0,Mn&=67108863,r=Math.imul(z,q),i=(i=Math.imul(z,F))+Math.imul(P,q)|0,a=Math.imul(P,F),r=r+Math.imul(A,W)|0,i=(i=i+Math.imul(A,Y)|0)+Math.imul(C,W)|0,a=a+Math.imul(C,Y)|0,r=r+Math.imul(E,V)|0,i=(i=i+Math.imul(E,$)|0)+Math.imul(O,V)|0,a=a+Math.imul(O,$)|0,r=r+Math.imul(M,X)|0,i=(i=i+Math.imul(M,G)|0)+Math.imul(_,X)|0,a=a+Math.imul(_,G)|0,r=r+Math.imul(w,J)|0,i=(i=i+Math.imul(w,nn)|0)+Math.imul(x,J)|0,a=a+Math.imul(x,nn)|0,r=r+Math.imul(b,en)|0,i=(i=i+Math.imul(b,rn)|0)+Math.imul(v,en)|0,a=a+Math.imul(v,rn)|0,r=r+Math.imul(p,on)|0,i=(i=i+Math.imul(p,ln)|0)+Math.imul(m,on)|0,a=a+Math.imul(m,ln)|0;var _n=(u+(r=r+Math.imul(d,un)|0)|0)+((8191&(i=(i=i+Math.imul(d,cn)|0)+Math.imul(f,un)|0))<<13)|0;u=((a=a+Math.imul(f,cn)|0)+(i>>>13)|0)+(_n>>>26)|0,_n&=67108863,r=Math.imul(I,q),i=(i=Math.imul(I,F))+Math.imul(D,q)|0,a=Math.imul(D,F),r=r+Math.imul(z,W)|0,i=(i=i+Math.imul(z,Y)|0)+Math.imul(P,W)|0,a=a+Math.imul(P,Y)|0,r=r+Math.imul(A,V)|0,i=(i=i+Math.imul(A,$)|0)+Math.imul(C,V)|0,a=a+Math.imul(C,$)|0,r=r+Math.imul(E,X)|0,i=(i=i+Math.imul(E,G)|0)+Math.imul(O,X)|0,a=a+Math.imul(O,G)|0,r=r+Math.imul(M,J)|0,i=(i=i+Math.imul(M,nn)|0)+Math.imul(_,J)|0,a=a+Math.imul(_,nn)|0,r=r+Math.imul(w,en)|0,i=(i=i+Math.imul(w,rn)|0)+Math.imul(x,en)|0,a=a+Math.imul(x,rn)|0,r=r+Math.imul(b,on)|0,i=(i=i+Math.imul(b,ln)|0)+Math.imul(v,on)|0,a=a+Math.imul(v,ln)|0,r=r+Math.imul(p,un)|0,i=(i=i+Math.imul(p,cn)|0)+Math.imul(m,un)|0,a=a+Math.imul(m,cn)|0;var Sn=(u+(r=r+Math.imul(d,fn)|0)|0)+((8191&(i=(i=i+Math.imul(d,hn)|0)+Math.imul(f,fn)|0))<<13)|0;u=((a=a+Math.imul(f,hn)|0)+(i>>>13)|0)+(Sn>>>26)|0,Sn&=67108863,r=Math.imul(B,q),i=(i=Math.imul(B,F))+Math.imul(L,q)|0,a=Math.imul(L,F),r=r+Math.imul(I,W)|0,i=(i=i+Math.imul(I,Y)|0)+Math.imul(D,W)|0,a=a+Math.imul(D,Y)|0,r=r+Math.imul(z,V)|0,i=(i=i+Math.imul(z,$)|0)+Math.imul(P,V)|0,a=a+Math.imul(P,$)|0,r=r+Math.imul(A,X)|0,i=(i=i+Math.imul(A,G)|0)+Math.imul(C,X)|0,a=a+Math.imul(C,G)|0,r=r+Math.imul(E,J)|0,i=(i=i+Math.imul(E,nn)|0)+Math.imul(O,J)|0,a=a+Math.imul(O,nn)|0,r=r+Math.imul(M,en)|0,i=(i=i+Math.imul(M,rn)|0)+Math.imul(_,en)|0,a=a+Math.imul(_,rn)|0,r=r+Math.imul(w,on)|0,i=(i=i+Math.imul(w,ln)|0)+Math.imul(x,on)|0,a=a+Math.imul(x,ln)|0,r=r+Math.imul(b,un)|0,i=(i=i+Math.imul(b,cn)|0)+Math.imul(v,un)|0,a=a+Math.imul(v,cn)|0,r=r+Math.imul(p,fn)|0,i=(i=i+Math.imul(p,hn)|0)+Math.imul(m,fn)|0,a=a+Math.imul(m,hn)|0;var En=(u+(r=r+Math.imul(d,mn)|0)|0)+((8191&(i=(i=i+Math.imul(d,gn)|0)+Math.imul(f,mn)|0))<<13)|0;u=((a=a+Math.imul(f,gn)|0)+(i>>>13)|0)+(En>>>26)|0,En&=67108863,r=Math.imul(B,W),i=(i=Math.imul(B,Y))+Math.imul(L,W)|0,a=Math.imul(L,Y),r=r+Math.imul(I,V)|0,i=(i=i+Math.imul(I,$)|0)+Math.imul(D,V)|0,a=a+Math.imul(D,$)|0,r=r+Math.imul(z,X)|0,i=(i=i+Math.imul(z,G)|0)+Math.imul(P,X)|0,a=a+Math.imul(P,G)|0,r=r+Math.imul(A,J)|0,i=(i=i+Math.imul(A,nn)|0)+Math.imul(C,J)|0,a=a+Math.imul(C,nn)|0,r=r+Math.imul(E,en)|0,i=(i=i+Math.imul(E,rn)|0)+Math.imul(O,en)|0,a=a+Math.imul(O,rn)|0,r=r+Math.imul(M,on)|0,i=(i=i+Math.imul(M,ln)|0)+Math.imul(_,on)|0,a=a+Math.imul(_,ln)|0,r=r+Math.imul(w,un)|0,i=(i=i+Math.imul(w,cn)|0)+Math.imul(x,un)|0,a=a+Math.imul(x,cn)|0,r=r+Math.imul(b,fn)|0,i=(i=i+Math.imul(b,hn)|0)+Math.imul(v,fn)|0,a=a+Math.imul(v,hn)|0;var On=(u+(r=r+Math.imul(p,mn)|0)|0)+((8191&(i=(i=i+Math.imul(p,gn)|0)+Math.imul(m,mn)|0))<<13)|0;u=((a=a+Math.imul(m,gn)|0)+(i>>>13)|0)+(On>>>26)|0,On&=67108863,r=Math.imul(B,V),i=(i=Math.imul(B,$))+Math.imul(L,V)|0,a=Math.imul(L,$),r=r+Math.imul(I,X)|0,i=(i=i+Math.imul(I,G)|0)+Math.imul(D,X)|0,a=a+Math.imul(D,G)|0,r=r+Math.imul(z,J)|0,i=(i=i+Math.imul(z,nn)|0)+Math.imul(P,J)|0,a=a+Math.imul(P,nn)|0,r=r+Math.imul(A,en)|0,i=(i=i+Math.imul(A,rn)|0)+Math.imul(C,en)|0,a=a+Math.imul(C,rn)|0,r=r+Math.imul(E,on)|0,i=(i=i+Math.imul(E,ln)|0)+Math.imul(O,on)|0,a=a+Math.imul(O,ln)|0,r=r+Math.imul(M,un)|0,i=(i=i+Math.imul(M,cn)|0)+Math.imul(_,un)|0,a=a+Math.imul(_,cn)|0,r=r+Math.imul(w,fn)|0,i=(i=i+Math.imul(w,hn)|0)+Math.imul(x,fn)|0,a=a+Math.imul(x,hn)|0;var Tn=(u+(r=r+Math.imul(b,mn)|0)|0)+((8191&(i=(i=i+Math.imul(b,gn)|0)+Math.imul(v,mn)|0))<<13)|0;u=((a=a+Math.imul(v,gn)|0)+(i>>>13)|0)+(Tn>>>26)|0,Tn&=67108863,r=Math.imul(B,X),i=(i=Math.imul(B,G))+Math.imul(L,X)|0,a=Math.imul(L,G),r=r+Math.imul(I,J)|0,i=(i=i+Math.imul(I,nn)|0)+Math.imul(D,J)|0,a=a+Math.imul(D,nn)|0,r=r+Math.imul(z,en)|0,i=(i=i+Math.imul(z,rn)|0)+Math.imul(P,en)|0,a=a+Math.imul(P,rn)|0,r=r+Math.imul(A,on)|0,i=(i=i+Math.imul(A,ln)|0)+Math.imul(C,on)|0,a=a+Math.imul(C,ln)|0,r=r+Math.imul(E,un)|0,i=(i=i+Math.imul(E,cn)|0)+Math.imul(O,un)|0,a=a+Math.imul(O,cn)|0,r=r+Math.imul(M,fn)|0,i=(i=i+Math.imul(M,hn)|0)+Math.imul(_,fn)|0,a=a+Math.imul(_,hn)|0;var An=(u+(r=r+Math.imul(w,mn)|0)|0)+((8191&(i=(i=i+Math.imul(w,gn)|0)+Math.imul(x,mn)|0))<<13)|0;u=((a=a+Math.imul(x,gn)|0)+(i>>>13)|0)+(An>>>26)|0,An&=67108863,r=Math.imul(B,J),i=(i=Math.imul(B,nn))+Math.imul(L,J)|0,a=Math.imul(L,nn),r=r+Math.imul(I,en)|0,i=(i=i+Math.imul(I,rn)|0)+Math.imul(D,en)|0,a=a+Math.imul(D,rn)|0,r=r+Math.imul(z,on)|0,i=(i=i+Math.imul(z,ln)|0)+Math.imul(P,on)|0,a=a+Math.imul(P,ln)|0,r=r+Math.imul(A,un)|0,i=(i=i+Math.imul(A,cn)|0)+Math.imul(C,un)|0,a=a+Math.imul(C,cn)|0,r=r+Math.imul(E,fn)|0,i=(i=i+Math.imul(E,hn)|0)+Math.imul(O,fn)|0,a=a+Math.imul(O,hn)|0;var Cn=(u+(r=r+Math.imul(M,mn)|0)|0)+((8191&(i=(i=i+Math.imul(M,gn)|0)+Math.imul(_,mn)|0))<<13)|0;u=((a=a+Math.imul(_,gn)|0)+(i>>>13)|0)+(Cn>>>26)|0,Cn&=67108863,r=Math.imul(B,en),i=(i=Math.imul(B,rn))+Math.imul(L,en)|0,a=Math.imul(L,rn),r=r+Math.imul(I,on)|0,i=(i=i+Math.imul(I,ln)|0)+Math.imul(D,on)|0,a=a+Math.imul(D,ln)|0,r=r+Math.imul(z,un)|0,i=(i=i+Math.imul(z,cn)|0)+Math.imul(P,un)|0,a=a+Math.imul(P,cn)|0,r=r+Math.imul(A,fn)|0,i=(i=i+Math.imul(A,hn)|0)+Math.imul(C,fn)|0,a=a+Math.imul(C,hn)|0;var jn=(u+(r=r+Math.imul(E,mn)|0)|0)+((8191&(i=(i=i+Math.imul(E,gn)|0)+Math.imul(O,mn)|0))<<13)|0;u=((a=a+Math.imul(O,gn)|0)+(i>>>13)|0)+(jn>>>26)|0,jn&=67108863,r=Math.imul(B,on),i=(i=Math.imul(B,ln))+Math.imul(L,on)|0,a=Math.imul(L,ln),r=r+Math.imul(I,un)|0,i=(i=i+Math.imul(I,cn)|0)+Math.imul(D,un)|0,a=a+Math.imul(D,cn)|0,r=r+Math.imul(z,fn)|0,i=(i=i+Math.imul(z,hn)|0)+Math.imul(P,fn)|0,a=a+Math.imul(P,hn)|0;var zn=(u+(r=r+Math.imul(A,mn)|0)|0)+((8191&(i=(i=i+Math.imul(A,gn)|0)+Math.imul(C,mn)|0))<<13)|0;u=((a=a+Math.imul(C,gn)|0)+(i>>>13)|0)+(zn>>>26)|0,zn&=67108863,r=Math.imul(B,un),i=(i=Math.imul(B,cn))+Math.imul(L,un)|0,a=Math.imul(L,cn),r=r+Math.imul(I,fn)|0,i=(i=i+Math.imul(I,hn)|0)+Math.imul(D,fn)|0,a=a+Math.imul(D,hn)|0;var Pn=(u+(r=r+Math.imul(z,mn)|0)|0)+((8191&(i=(i=i+Math.imul(z,gn)|0)+Math.imul(P,mn)|0))<<13)|0;u=((a=a+Math.imul(P,gn)|0)+(i>>>13)|0)+(Pn>>>26)|0,Pn&=67108863,r=Math.imul(B,fn),i=(i=Math.imul(B,hn))+Math.imul(L,fn)|0,a=Math.imul(L,hn);var Rn=(u+(r=r+Math.imul(I,mn)|0)|0)+((8191&(i=(i=i+Math.imul(I,gn)|0)+Math.imul(D,mn)|0))<<13)|0;u=((a=a+Math.imul(D,gn)|0)+(i>>>13)|0)+(Rn>>>26)|0,Rn&=67108863;var In=(u+(r=Math.imul(B,mn))|0)+((8191&(i=(i=Math.imul(B,gn))+Math.imul(L,mn)|0))<<13)|0;return u=((a=Math.imul(L,gn))+(i>>>13)|0)+(In>>>26)|0,In&=67108863,s[0]=bn,s[1]=vn,s[2]=yn,s[3]=wn,s[4]=xn,s[5]=kn,s[6]=Mn,s[7]=_n,s[8]=Sn,s[9]=En,s[10]=On,s[11]=Tn,s[12]=An,s[13]=Cn,s[14]=jn,s[15]=zn,s[16]=Pn,s[17]=Rn,s[18]=In,0!==u&&(s[19]=u,e.length++),e};function p(n,t,e){return(new m).mulp(n,t,e)}function m(n,t){this.x=n,this.y=t}Math.imul||(h=f),a.prototype.mulTo=function(n,t){var e=this.length+n.length;return 10===this.length&&10===n.length?h(this,n,t):e<63?f(this,n,t):e<1024?function(n,t,e){e.negative=t.negative^n.negative,e.length=n.length+t.length;for(var r=0,i=0,a=0;a>>26)|0)>>>26,o&=67108863}e.words[a]=l,r=o,o=i}return 0!==r?e.words[a]=r:e.length--,e.strip()}(this,n,t):p(this,n,t)},m.prototype.makeRBT=function(n){for(var t=new Array(n),e=a.prototype._countBits(n)-1,r=0;r>=1;return r},m.prototype.permute=function(n,t,e,r,i,a){for(var o=0;o>>=1)i++;return 1<>>=13,e[2*o+1]=8191&a,a>>>=13;for(o=2*t;o>=26,t+=i/67108864|0,t+=a>>>26,this.words[e]=67108863&a}return 0!==t&&(this.words[e]=t,this.length++),this},a.prototype.muln=function(n){return this.clone().imuln(n)},a.prototype.sqr=function(){return this.mul(this)},a.prototype.isqr=function(){return this.imul(this.clone())},a.prototype.pow=function(n){var t=function(n){for(var t=new Array(n.bitLength()),e=0;e>>i}return t}(n);if(0===t.length)return new a(1);for(var e=this,r=0;r=0);var t,e=n%26,i=(n-e)/26,a=67108863>>>26-e<<26-e;if(0!==e){var o=0;for(t=0;t>>26-e}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=0),i=t?(t-t%26)/26:0;var a=n%26,o=Math.min((n-a)/26,this.length),l=67108863^67108863>>>a<o)for(this.length-=o,u=0;u=0&&(0!==c||u>=i);u--){var d=0|this.words[u];this.words[u]=c<<26-a|d>>>a,c=d&l}return s&&0!==c&&(s.words[s.length++]=c),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},a.prototype.ishrn=function(n,t,e){return r(0===this.negative),this.iushrn(n,t,e)},a.prototype.shln=function(n){return this.clone().ishln(n)},a.prototype.ushln=function(n){return this.clone().iushln(n)},a.prototype.shrn=function(n){return this.clone().ishrn(n)},a.prototype.ushrn=function(n){return this.clone().iushrn(n)},a.prototype.testn=function(n){r("number"==typeof n&&n>=0);var t=n%26,e=(n-t)/26,i=1<=0);var t=n%26,e=(n-t)/26;if(r(0===this.negative,"imaskn works only with positive numbers"),this.length<=e)return this;if(0!==t&&e++,this.length=Math.min(e,this.length),0!==t){var i=67108863^67108863>>>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(n){if(r("number"==typeof n),r(n<67108864),n<0)return this.iaddn(-n);if(0!==this.negative)return this.negative=0,this.iaddn(n),this.negative=1,this;if(this.words[0]-=n,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var t=0;t>26)-(s/67108864|0),this.words[i+e]=67108863&a}for(;i>26,this.words[i+e]=67108863&a;if(0===l)return this.strip();for(r(-1===l),l=0,i=0;i>26,this.words[i]=67108863&a;return this.negative=1,this.strip()},a.prototype._wordDiv=function(n,t){var e=(this.length,n.length),r=this.clone(),i=n,o=0|i.words[i.length-1];0!==(e=26-this._countBits(o))&&(i=i.ushln(e),r.iushln(e),o=0|i.words[i.length-1]);var l,s=r.length-i.length;if("mod"!==t){(l=new a(null)).length=s+1,l.words=new Array(l.length);for(var u=0;u=0;d--){var f=67108864*(0|r.words[i.length+d])+(0|r.words[i.length+d-1]);for(f=Math.min(f/o|0,67108863),r._ishlnsubmul(i,f,d);0!==r.negative;)f--,r.negative=0,r._ishlnsubmul(i,1,d),r.isZero()||(r.negative^=1);l&&(l.words[d]=f)}return l&&l.strip(),r.strip(),"div"!==t&&0!==e&&r.iushrn(e),{div:l||null,mod:r}},a.prototype.divmod=function(n,t,e){return r(!n.isZero()),this.isZero()?{div:new a(0),mod:new a(0)}:0!==this.negative&&0===n.negative?(l=this.neg().divmod(n,t),"mod"!==t&&(i=l.div.neg()),"div"!==t&&(o=l.mod.neg(),e&&0!==o.negative&&o.iadd(n)),{div:i,mod:o}):0===this.negative&&0!==n.negative?(l=this.divmod(n.neg(),t),"mod"!==t&&(i=l.div.neg()),{div:i,mod:l.mod}):0!=(this.negative&n.negative)?(l=this.neg().divmod(n.neg(),t),"div"!==t&&(o=l.mod.neg(),e&&0!==o.negative&&o.isub(n)),{div:l.div,mod:o}):n.length>this.length||this.cmp(n)<0?{div:new a(0),mod:this}:1===n.length?"div"===t?{div:this.divn(n.words[0]),mod:null}:"mod"===t?{div:null,mod:new a(this.modn(n.words[0]))}:{div:this.divn(n.words[0]),mod:new a(this.modn(n.words[0]))}:this._wordDiv(n,t);var i,o,l},a.prototype.div=function(n){return this.divmod(n,"div",!1).div},a.prototype.mod=function(n){return this.divmod(n,"mod",!1).mod},a.prototype.umod=function(n){return this.divmod(n,"mod",!0).mod},a.prototype.divRound=function(n){var t=this.divmod(n);if(t.mod.isZero())return t.div;var e=0!==t.div.negative?t.mod.isub(n):t.mod,r=n.ushrn(1),i=n.andln(1),a=e.cmp(r);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(n){r(n<=67108863);for(var t=(1<<26)%n,e=0,i=this.length-1;i>=0;i--)e=(t*e+(0|this.words[i]))%n;return e},a.prototype.idivn=function(n){r(n<=67108863);for(var t=0,e=this.length-1;e>=0;e--){var i=(0|this.words[e])+67108864*t;this.words[e]=i/n|0,t=i%n}return this.strip()},a.prototype.divn=function(n){return this.clone().idivn(n)},a.prototype.egcd=function(n){r(0===n.negative),r(!n.isZero());var t=this,e=n.clone();t=0!==t.negative?t.umod(n):t.clone();for(var i=new a(1),o=new a(0),l=new a(0),s=new a(1),u=0;t.isEven()&&e.isEven();)t.iushrn(1),e.iushrn(1),++u;for(var c=e.clone(),d=t.clone();!t.isZero();){for(var f=0,h=1;0==(t.words[0]&h)&&f<26;++f,h<<=1);if(f>0)for(t.iushrn(f);f-- >0;)(i.isOdd()||o.isOdd())&&(i.iadd(c),o.isub(d)),i.iushrn(1),o.iushrn(1);for(var p=0,m=1;0==(e.words[0]&m)&&p<26;++p,m<<=1);if(p>0)for(e.iushrn(p);p-- >0;)(l.isOdd()||s.isOdd())&&(l.iadd(c),s.isub(d)),l.iushrn(1),s.iushrn(1);t.cmp(e)>=0?(t.isub(e),i.isub(l),o.isub(s)):(e.isub(t),l.isub(i),s.isub(o))}return{a:l,b:s,gcd:e.iushln(u)}},a.prototype._invmp=function(n){r(0===n.negative),r(!n.isZero());var t=this,e=n.clone();t=0!==t.negative?t.umod(n):t.clone();for(var i,o=new a(1),l=new a(0),s=e.clone();t.cmpn(1)>0&&e.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(s),o.iushrn(1);for(var d=0,f=1;0==(e.words[0]&f)&&d<26;++d,f<<=1);if(d>0)for(e.iushrn(d);d-- >0;)l.isOdd()&&l.iadd(s),l.iushrn(1);t.cmp(e)>=0?(t.isub(e),o.isub(l)):(e.isub(t),l.isub(o))}return(i=0===t.cmpn(1)?o:l).cmpn(0)<0&&i.iadd(n),i},a.prototype.gcd=function(n){if(this.isZero())return n.abs();if(n.isZero())return this.abs();var t=this.clone(),e=n.clone();t.negative=0,e.negative=0;for(var r=0;t.isEven()&&e.isEven();r++)t.iushrn(1),e.iushrn(1);for(;;){for(;t.isEven();)t.iushrn(1);for(;e.isEven();)e.iushrn(1);var i=t.cmp(e);if(i<0){var a=t;t=e,e=a}else if(0===i||0===e.cmpn(1))break;t.isub(e)}return e.iushln(r)},a.prototype.invm=function(n){return this.egcd(n).a.umod(n)},a.prototype.isEven=function(){return 0==(1&this.words[0])},a.prototype.isOdd=function(){return 1==(1&this.words[0])},a.prototype.andln=function(n){return this.words[0]&n},a.prototype.bincn=function(n){r("number"==typeof n);var t=n%26,e=(n-t)/26,i=1<>>26,l&=67108863,this.words[o]=l}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(n){var t,e=n<0;if(0!==this.negative&&!e)return-1;if(0===this.negative&&e)return 1;if(this.strip(),this.length>1)t=1;else{e&&(n=-n),r(n<=67108863,"Number is too big");var i=0|this.words[0];t=i===n?0:in.length)return 1;if(this.length=0;e--){var r=0|this.words[e],i=0|n.words[e];if(r!==i){ri&&(t=1);break}}return t},a.prototype.gtn=function(n){return 1===this.cmpn(n)},a.prototype.gt=function(n){return 1===this.cmp(n)},a.prototype.gten=function(n){return this.cmpn(n)>=0},a.prototype.gte=function(n){return this.cmp(n)>=0},a.prototype.ltn=function(n){return-1===this.cmpn(n)},a.prototype.lt=function(n){return-1===this.cmp(n)},a.prototype.lten=function(n){return this.cmpn(n)<=0},a.prototype.lte=function(n){return this.cmp(n)<=0},a.prototype.eqn=function(n){return 0===this.cmpn(n)},a.prototype.eq=function(n){return 0===this.cmp(n)},a.red=function(n){return new k(n)},a.prototype.toRed=function(n){return r(!this.red,"Already a number in reduction context"),r(0===this.negative,"red works only with positives"),n.convertTo(this)._forceRed(n)},a.prototype.fromRed=function(){return r(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},a.prototype._forceRed=function(n){return this.red=n,this},a.prototype.forceRed=function(n){return r(!this.red,"Already a number in reduction context"),this._forceRed(n)},a.prototype.redAdd=function(n){return r(this.red,"redAdd works only with red numbers"),this.red.add(this,n)},a.prototype.redIAdd=function(n){return r(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,n)},a.prototype.redSub=function(n){return r(this.red,"redSub works only with red numbers"),this.red.sub(this,n)},a.prototype.redISub=function(n){return r(this.red,"redISub works only with red numbers"),this.red.isub(this,n)},a.prototype.redShl=function(n){return r(this.red,"redShl works only with red numbers"),this.red.shl(this,n)},a.prototype.redMul=function(n){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,n),this.red.mul(this,n)},a.prototype.redIMul=function(n){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,n),this.red.imul(this,n)},a.prototype.redSqr=function(){return r(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},a.prototype.redISqr=function(){return r(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},a.prototype.redSqrt=function(){return r(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},a.prototype.redInvm=function(){return r(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},a.prototype.redNeg=function(){return r(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},a.prototype.redPow=function(n){return r(this.red&&!n.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,n)};var g={k256:null,p224:null,p192:null,p25519:null};function b(n,t){this.name=n,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 v(){b.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function y(){b.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function w(){b.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function x(){b.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function k(n){if("string"==typeof n){var t=a._prime(n);this.m=t.p,this.prime=t}else r(n.gtn(1),"modulus must be greater than 1"),this.m=n,this.prime=null}function M(n){k.call(this,n),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)}b.prototype._tmp=function(){var n=new a(null);return n.words=new Array(Math.ceil(this.n/13)),n},b.prototype.ireduce=function(n){var t,e=n;do{this.split(e,this.tmp),t=(e=(e=this.imulK(e)).iadd(this.tmp)).bitLength()}while(t>this.n);var r=t0?e.isub(this.p):void 0!==e.strip?e.strip():e._strip(),e},b.prototype.split=function(n,t){n.iushrn(this.n,0,t)},b.prototype.imulK=function(n){return n.imul(this.k)},i(v,b),v.prototype.split=function(n,t){for(var e=Math.min(n.length,9),r=0;r>>22,i=a}i>>>=22,n.words[r-10]=i,0===i&&n.length>10?n.length-=10:n.length-=9},v.prototype.imulK=function(n){n.words[n.length]=0,n.words[n.length+1]=0,n.length+=2;for(var t=0,e=0;e>>=26,n.words[e]=i,t=r}return 0!==t&&(n.words[n.length++]=t),n},a._prime=function(n){if(g[n])return g[n];var t;if("k256"===n)t=new v;else if("p224"===n)t=new y;else if("p192"===n)t=new w;else{if("p25519"!==n)throw new Error("Unknown prime "+n);t=new x}return g[n]=t,t},k.prototype._verify1=function(n){r(0===n.negative,"red works only with positives"),r(n.red,"red works only with red numbers")},k.prototype._verify2=function(n,t){r(0==(n.negative|t.negative),"red works only with positives"),r(n.red&&n.red===t.red,"red works only with red numbers")},k.prototype.imod=function(n){return this.prime?this.prime.ireduce(n)._forceRed(this):n.umod(this.m)._forceRed(this)},k.prototype.neg=function(n){return n.isZero()?n.clone():this.m.sub(n)._forceRed(this)},k.prototype.add=function(n,t){this._verify2(n,t);var e=n.add(t);return e.cmp(this.m)>=0&&e.isub(this.m),e._forceRed(this)},k.prototype.iadd=function(n,t){this._verify2(n,t);var e=n.iadd(t);return e.cmp(this.m)>=0&&e.isub(this.m),e},k.prototype.sub=function(n,t){this._verify2(n,t);var e=n.sub(t);return e.cmpn(0)<0&&e.iadd(this.m),e._forceRed(this)},k.prototype.isub=function(n,t){this._verify2(n,t);var e=n.isub(t);return e.cmpn(0)<0&&e.iadd(this.m),e},k.prototype.shl=function(n,t){return this._verify1(n),this.imod(n.ushln(t))},k.prototype.imul=function(n,t){return this._verify2(n,t),this.imod(n.imul(t))},k.prototype.mul=function(n,t){return this._verify2(n,t),this.imod(n.mul(t))},k.prototype.isqr=function(n){return this.imul(n,n.clone())},k.prototype.sqr=function(n){return this.mul(n,n)},k.prototype.sqrt=function(n){if(n.isZero())return n.clone();var t=this.m.andln(3);if(r(t%2==1),3===t){var e=this.m.add(new a(1)).iushrn(2);return this.pow(n,e)}for(var i=this.m.subn(1),o=0;!i.isZero()&&0===i.andln(1);)o++,i.iushrn(1);r(!i.isZero());var l=new a(1).toRed(this),s=l.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(s);)c.redIAdd(s);for(var d=this.pow(c,i),f=this.pow(n,i.addn(1).iushrn(1)),h=this.pow(n,i),p=o;0!==h.cmp(l);){for(var m=h,g=0;0!==m.cmp(l);g++)m=m.redSqr();r(g=0;r--){for(var u=t.words[r],c=s-1;c>=0;c--){var d=u>>c&1;i!==e[0]&&(i=this.sqr(i)),0!==d||0!==o?(o<<=1,o|=d,(4===++l||0===r&&0===c)&&(i=this.mul(i,e[o]),l=0,o=0)):l=0}s=26}return i},k.prototype.convertTo=function(n){var t=n.umod(this.m);return t===n?t.clone():t},k.prototype.convertFrom=function(n){var t=n.clone();return t.red=null,t},a.mont=function(n){return new M(n)},i(M,k),M.prototype.convertTo=function(n){return this.imod(n.ushln(this.shift))},M.prototype.convertFrom=function(n){var t=this.imod(n.mul(this.rinv));return t.red=null,t},M.prototype.imul=function(n,t){if(n.isZero()||t.isZero())return n.words[0]=0,n.length=1,n;var e=n.imul(t),r=e.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=e.isub(r).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)},M.prototype.mul=function(n,t){if(n.isZero()||t.isZero())return new a(0)._forceRed(this);var e=n.mul(t),r=e.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=e.isub(r).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)},M.prototype.invm=function(n){return this.imod(n._invmp(this.m).mul(this.r2))._forceRed(this)}}(n,this)}).call(this,e(27)(n))},function(n,t,e){"use strict";const r=t;r.der=e(158),r.pem=e(482)},function(n,t,e){"use strict";const r=e(3),i=e(92).Buffer,a=e(93),o=e(95);function l(n){this.enc="der",this.name=n.name,this.entity=n,this.tree=new s,this.tree._init(n.body)}function s(n){a.call(this,"der",n)}function u(n){return n<10?"0"+n:n}n.exports=l,l.prototype.encode=function(n,t){return this.tree._encode(n,t).join()},r(s,a),s.prototype._encodeComposite=function(n,t,e,r){const a=function(n,t,e,r){let i;"seqof"===n?n="seq":"setof"===n&&(n="set");if(o.tagByName.hasOwnProperty(n))i=o.tagByName[n];else{if("number"!=typeof n||(0|n)!==n)return r.error("Unknown tag: "+n);i=n}if(i>=31)return r.error("Multi-octet tag encoding unsupported");t||(i|=32);return i|=o.tagClassByName[e||"universal"]<<6,i}(n,t,e,this.reporter);if(r.length<128){const n=i.alloc(2);return n[0]=a,n[1]=r.length,this._createEncoderBuffer([n,r])}let l=1;for(let n=r.length;n>=256;n>>=8)l++;const s=i.alloc(2+l);s[0]=a,s[1]=128|l;for(let n=1+l,t=r.length;t>0;n--,t>>=8)s[n]=255&t;return this._createEncoderBuffer([s,r])},s.prototype._encodeStr=function(n,t){if("bitstr"===t)return this._createEncoderBuffer([0|n.unused,n.data]);if("bmpstr"===t){const t=i.alloc(2*n.length);for(let e=0;e=40)return this.reporter.error("Second objid identifier OOB");n.splice(0,2,40*n[0]+n[1])}let r=0;for(let t=0;t=128;e>>=7)r++}const a=i.alloc(r);let o=a.length-1;for(let t=n.length-1;t>=0;t--){let e=n[t];for(a[o--]=127&e;(e>>=7)>0;)a[o--]=128|127&e}return this._createEncoderBuffer(a)},s.prototype._encodeTime=function(n,t){let e;const r=new Date(n);return"gentime"===t?e=[u(r.getUTCFullYear()),u(r.getUTCMonth()+1),u(r.getUTCDate()),u(r.getUTCHours()),u(r.getUTCMinutes()),u(r.getUTCSeconds()),"Z"].join(""):"utctime"===t?e=[u(r.getUTCFullYear()%100),u(r.getUTCMonth()+1),u(r.getUTCDate()),u(r.getUTCHours()),u(r.getUTCMinutes()),u(r.getUTCSeconds()),"Z"].join(""):this.reporter.error("Encoding "+t+" time is not supported yet"),this._encodeStr(e,"octstr")},s.prototype._encodeNull=function(){return this._createEncoderBuffer("")},s.prototype._encodeInt=function(n,t){if("string"==typeof n){if(!t)return this.reporter.error("String int or enum given, but no values map");if(!t.hasOwnProperty(n))return this.reporter.error("Values map doesn't contain: "+JSON.stringify(n));n=t[n]}if("number"!=typeof n&&!i.isBuffer(n)){const t=n.toArray();!n.sign&&128&t[0]&&t.unshift(0),n=i.from(t)}if(i.isBuffer(n)){let t=n.length;0===n.length&&t++;const e=i.alloc(t);return n.copy(e),0===n.length&&(e[0]=0),this._createEncoderBuffer(e)}if(n<128)return this._createEncoderBuffer(n);if(n<256)return this._createEncoderBuffer([0,n]);let e=1;for(let t=n;t>=256;t>>=8)e++;const r=new Array(e);for(let t=r.length-1;t>=0;t--)r[t]=255&n,n>>=8;return 128&r[0]&&r.unshift(0),this._createEncoderBuffer(i.from(r))},s.prototype._encodeBool=function(n){return this._createEncoderBuffer(n?255:0)},s.prototype._use=function(n,t){return"function"==typeof n&&(n=n(t)),n._getEncoder("der").tree},s.prototype._skipDefault=function(n,t,e){const r=this._baseState;let i;if(null===r.default)return!1;const a=n.join();if(void 0===r.defaultBuffer&&(r.defaultBuffer=this._encodeValue(r.default,t,e).join()),a.length!==r.defaultBuffer.length)return!1;for(i=0;i>6],i=0==(32&e);if(31==(31&e)){let r=e;for(e=0;128==(128&r);){if(r=n.readUInt8(t),n.isError(r))return r;e<<=7,e|=127&r}}else e&=31;return{cls:r,primitive:i,tag:e,tagStr:l.tag[e]}}function d(n,t,e){let r=n.readUInt8(e);if(n.isError(r))return r;if(!t&&128===r)return null;if(0==(128&r))return r;const i=127&r;if(i>4)return n.error("length octect is too long");r=0;for(let t=0;t=8.0.0")}).call(this,e(8))},function(n,t,e){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=(r=e(197))&&r.__esModule?r:{default:r};t.default=i,n.exports=i},function(n,t,e){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=(r=e(208))&&r.__esModule?r:{default:r};t.default=i,n.exports=i},function(n,t,e){"use strict";function r(n){if(Array.isArray(n))return n}e.d(t,"a",(function(){return r}))},function(n,t,e){"use strict";e.d(t,"a",(function(){return i}));var r=e(99);function i(n,t){if(n){if("string"==typeof n)return Object(r.a)(n,t);var e=Object.prototype.toString.call(n).slice(8,-1);return"Object"===e&&n.constructor&&(e=n.constructor.name),"Map"===e||"Set"===e?Array.from(n):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?Object(r.a)(n,t):void 0}}},function(n,t,e){"use strict";function r(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}e.d(t,"a",(function(){return r}))},function(n,t,e){"use strict";function r(n){if(void 0===n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}e.d(t,"a",(function(){return r}))},function(n,t,e){var r=e(213),i=e(214),a=e(105),o=e(215);n.exports=function(n){return r(n)||i(n)||a(n)||o()}},function(n,t,e){"use strict";var r=e(4),i=e(24),a=e(25),o=e(26),l=e(48),s=e(0),u=e(70),c=e(178),d=e(34),f=e(39),h=e(179),p=function(n){Object(o.a)(e,n);var t=Object(l.a)(e);function e(){var n;return Object(i.a)(this,e),(n=t.apply(this,arguments)).resizeObserver=null,n.childNode=null,n.currentElement=null,n.state={width:0,height:0,offsetHeight:0,offsetWidth:0},n.onResize=function(t){var e=n.props.onResize,i=t[0].target,a=i.getBoundingClientRect(),o=a.width,l=a.height,s=i.offsetWidth,u=i.offsetHeight,c=Math.floor(o),d=Math.floor(l);if(n.state.width!==c||n.state.height!==d||n.state.offsetWidth!==s||n.state.offsetHeight!==u){var f={width:c,height:d,offsetWidth:s,offsetHeight:u};n.setState(f),e&&Promise.resolve().then((function(){e(Object(r.a)(Object(r.a)({},f),{},{offsetWidth:s,offsetHeight:u}))}))}},n.setChildNode=function(t){n.childNode=t},n}return Object(a.a)(e,[{key:"componentDidMount",value:function(){this.onComponentUpdated()}},{key:"componentDidUpdate",value:function(){this.onComponentUpdated()}},{key:"componentWillUnmount",value:function(){this.destroyObserver()}},{key:"onComponentUpdated",value:function(){if(this.props.disabled)this.destroyObserver();else{var n=Object(u.a)(this.childNode||this);n!==this.currentElement&&(this.destroyObserver(),this.currentElement=n),!this.resizeObserver&&n&&(this.resizeObserver=new h.a(this.onResize),this.resizeObserver.observe(n))}}},{key:"destroyObserver",value:function(){this.resizeObserver&&(this.resizeObserver.disconnect(),this.resizeObserver=null)}},{key:"render",value:function(){var n=this.props.children,t=Object(c.a)(n);if(t.length>1)Object(d.a)(!1,"Find more than one child node with `children` in ResizeObserver. Will only observe first one.");else if(0===t.length)return Object(d.a)(!1,"`children` of ResizeObserver is empty. Nothing is in observe."),null;var e=t[0];if(s.isValidElement(e)&&Object(f.c)(e)){var r=e.ref;t[0]=s.cloneElement(e,{ref:Object(f.a)(r,this.setChildNode)})}return 1===t.length?t[0]:t.map((function(n,t){return!s.isValidElement(n)||"key"in n&&null!==n.key?n:s.cloneElement(n,{key:"".concat("rc-observer-key","-").concat(t)})}))}}]),e}(s.Component);p.displayName="ResizeObserver",t.a=p},function(n,t,e){"use strict";e.d(t,"a",(function(){return o}));var r=e(0),i=e.n(r),a=e(46);function o(n){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},e=[];return i.a.Children.forEach(n,(function(n){(null!=n||t.keepEmpty)&&(Array.isArray(n)?e=e.concat(o(n)):Object(a.isFragment)(n)&&n.props?e=e.concat(o(n.props.children,t)):e.push(n))})),e}},function(n,t,e){"use strict";(function(n){var e=function(){if("undefined"!=typeof Map)return Map;function n(n,t){var e=-1;return n.some((function(n,r){return n[0]===t&&(e=r,!0)})),e}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(t){var e=n(this.__entries__,t),r=this.__entries__[e];return r&&r[1]},t.prototype.set=function(t,e){var r=n(this.__entries__,t);~r?this.__entries__[r][1]=e:this.__entries__.push([t,e])},t.prototype.delete=function(t){var e=this.__entries__,r=n(e,t);~r&&e.splice(r,1)},t.prototype.has=function(t){return!!~n(this.__entries__,t)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(n,t){void 0===t&&(t=null);for(var e=0,r=this.__entries__;e0},n.prototype.connect_=function(){r&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),l?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},n.prototype.disconnect_=function(){r&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},n.prototype.onTransitionEnd_=function(n){var t=n.propertyName,e=void 0===t?"":t;o.some((function(n){return!!~e.indexOf(n)}))&&this.refresh()},n.getInstance=function(){return this.instance_||(this.instance_=new n),this.instance_},n.instance_=null,n}(),u=function(n,t){for(var e=0,r=Object.keys(t);e0},n}(),x="undefined"!=typeof WeakMap?new WeakMap:new e,k=function n(t){if(!(this instanceof n))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var e=s.getInstance(),r=new w(t,e,this);x.set(this,r)};["observe","unobserve","disconnect"].forEach((function(n){k.prototype[n]=function(){var t;return(t=x.get(this))[n].apply(t,arguments)}}));var M=void 0!==i.ResizeObserver?i.ResizeObserver:k;t.a=M}).call(this,e(12))},function(n,t,e){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=(r=e(216))&&r.__esModule?r:{default:r};t.default=i,n.exports=i},function(n,t,e){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=(r=e(218))&&r.__esModule?r:{default:r};t.default=i,n.exports=i},function(n,t,e){"use strict";var r=e(46),i={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},a={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},o={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},l={};function s(n){return r.isMemo(n)?o:l[n.$$typeof]||i}l[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},l[r.Memo]=o;var u=Object.defineProperty,c=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,f=Object.getOwnPropertyDescriptor,h=Object.getPrototypeOf,p=Object.prototype;n.exports=function n(t,e,r){if("string"!=typeof e){if(p){var i=h(e);i&&i!==p&&n(t,i,r)}var o=c(e);d&&(o=o.concat(d(e)));for(var l=s(t),m=s(e),g=0;g1&&void 0!==arguments[1]?arguments[1]:2;t();var a=Object(C.a)((function(){i<=1?r({isCanceled:function(){return a!==n.current}}):e(r,i-1)}));n.current=a},t]}(),s=Object(a.a)(o,2),u=s[0],c=s[1];return A((function(){if("none"!==r&&"end"!==r){var t=j.indexOf(r),e=j[t+1],a=n(r);!1===a?i(e):u((function(n){function t(){n.isCanceled()||i(e)}!0===a?t():Promise.resolve(a).then(t)}))}}),[r]),l.useEffect((function(){return function(){c()}}),[]),[function(){i("prepare")},r]};function R(n,t,e,o){var s=o.motionEnter,u=void 0===s||s,c=o.motionAppear,d=void 0===c||c,f=o.motionLeave,h=void 0===f||f,p=o.motionDeadline,m=o.motionLeaveImmediately,g=o.onAppearPrepare,b=o.onEnterPrepare,v=o.onLeavePrepare,y=o.onAppearStart,w=o.onEnterStart,x=o.onLeaveStart,k=o.onAppearActive,M=o.onEnterActive,_=o.onLeaveActive,O=o.onAppearEnd,C=o.onEnterEnd,j=o.onLeaveEnd,R=o.onVisibleChanged,I=T(),D=Object(a.a)(I,2),N=D[0],B=D[1],L=T("none"),U=Object(a.a)(L,2),q=U[0],F=U[1],H=T(null),W=Object(a.a)(H,2),Y=W[0],Z=W[1],V=Object(l.useRef)(!1),$=Object(l.useRef)(null),K=Object(l.useRef)(!1),X=Object(l.useRef)(null);function G(){return e()||X.current}var Q=Object(l.useRef)(!1);function J(n){var t,e=G();n&&!n.deadline&&n.target!==e||("appear"===q&&Q.current?t=null==O?void 0:O(e,n):"enter"===q&&Q.current?t=null==C?void 0:C(e,n):"leave"===q&&Q.current&&(t=null==j?void 0:j(e,n)),!1===t||K.current||(F("none"),Z(null)))}var nn=function(n){var t=Object(l.useRef)(),e=Object(l.useRef)(n);e.current=n;var r=l.useCallback((function(n){e.current(n)}),[]);function i(n){n&&(n.removeEventListener(E,r),n.removeEventListener(S,r))}return l.useEffect((function(){return function(){i(t.current)}}),[]),[function(n){t.current&&t.current!==n&&i(t.current),n&&n!==t.current&&(n.addEventListener(E,r),n.addEventListener(S,r),t.current=n)},i]}(J),tn=Object(a.a)(nn,1)[0],en=l.useMemo((function(){var n,t,e;switch(q){case"appear":return n={},Object(r.a)(n,"prepare",g),Object(r.a)(n,"start",y),Object(r.a)(n,"active",k),n;case"enter":return t={},Object(r.a)(t,"prepare",b),Object(r.a)(t,"start",w),Object(r.a)(t,"active",M),t;case"leave":return e={},Object(r.a)(e,"prepare",v),Object(r.a)(e,"start",x),Object(r.a)(e,"active",_),e;default:return{}}}),[q]),rn=P((function(n){if("prepare"===n){var t=en.prepare;return!!t&&t(G())}var e;ln in en&&Z((null===(e=en[ln])||void 0===e?void 0:e.call(en,G(),null))||null);return"active"===ln&&(tn(G()),p>0&&(clearTimeout($.current),$.current=setTimeout((function(){J({deadline:!0})}),p))),!0})),an=Object(a.a)(rn,2),on=an[0],ln=an[1],sn=z(ln);Q.current=sn,A((function(){if(B(t),n){var e,r=V.current;V.current=!0,!r&&t&&d&&(e="appear"),r&&t&&u&&(e="enter"),(r&&!t&&h||!r&&m&&!t&&h)&&(e="leave"),e&&(F(e),on())}}),[t]),Object(l.useEffect)((function(){("appear"===q&&!d||"enter"===q&&!u||"leave"===q&&!h)&&F("none")}),[d,u,h]),Object(l.useEffect)((function(){return function(){clearTimeout($.current),K.current=!0}}),[]),Object(l.useEffect)((function(){void 0!==N&&"none"===q&&(null==R||R(N))}),[N,q]);var un=Y;return en.prepare&&"start"===ln&&(un=Object(i.a)({transition:"none"},un)),[q,ln,un,null!=N?N:t]}var I=e(24),D=e(25),N=e(26),B=e(48),L=function(n){Object(N.a)(e,n);var t=Object(B.a)(e);function e(){return Object(I.a)(this,e),t.apply(this,arguments)}return Object(D.a)(e,[{key:"render",value:function(){return this.props.children}}]),e}(l.Component);var U=function(n){var t=n;function e(n){return!(!n.motionName||!t)}"object"===Object(o.a)(n)&&(t=n.transitionSupport);var c=l.forwardRef((function(n,t){var o=n.visible,c=void 0===o||o,f=n.removeOnLeave,h=void 0===f||f,p=n.forceRender,m=n.children,g=n.motionName,b=n.leavedClassName,v=n.eventProps,y=e(n),w=Object(l.useRef)(),x=Object(l.useRef)();var k=R(y,c,(function(){try{return Object(s.a)(w.current||x.current)}catch(n){return null}}),n),M=Object(a.a)(k,4),_=M[0],S=M[1],E=M[2],T=M[3],A=Object(l.useRef)(t);A.current=t;var C,j=l.useCallback((function(n){w.current=n,Object(u.b)(A.current,n)}),[]);if(m)if("none"!==_&&e(n)){var P,I;"prepare"===S?I="prepare":z(S)?I="active":"start"===S&&(I="start"),C=m(Object(i.a)(Object(i.a)({},v),{},{className:d()(O(g,_),(P={},Object(r.a)(P,O(g,"".concat(_,"-").concat(I)),I),Object(r.a)(P,g,"string"==typeof g),P)),style:E}),j)}else C=T?m(Object(i.a)({},v),j):h?p?m(Object(i.a)(Object(i.a)({},v),{},{style:{display:"none"}}),j):null:m(Object(i.a)(Object(i.a)({},v),{},{className:b}),j);else C=null;return l.createElement(L,{ref:x},C)}));return c.displayName="CSSMotion",c}(_),q=e(40);function F(n){var t;return t=n&&"object"===Object(o.a)(n)&&"key"in n?n:{key:n},Object(i.a)(Object(i.a)({},t),{},{key:String(t.key)})}function H(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return n.map(F)}function W(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],e=[],r=0,a=t.length,o=H(n),l=H(t);o.forEach((function(n){for(var t=!1,o=r;o1}));return u.forEach((function(n){(e=e.filter((function(t){var e=t.key,r=t.status;return e!==n||"remove"!==r}))).forEach((function(t){t.key===n&&(t.status="keep")}))})),e}var Y=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];(function(n){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:U,e=function(n){Object(N.a)(r,n);var e=Object(B.a)(r);function r(){var n;return Object(I.a)(this,r),(n=e.apply(this,arguments)).state={keyEntities:[]},n.removeKey=function(t){n.setState((function(n){return{keyEntities:n.keyEntities.map((function(n){return n.key!==t?n:Object(i.a)(Object(i.a)({},n),{},{status:"removed"})}))}}))},n}return Object(D.a)(r,[{key:"render",value:function(){var n=this,e=this.state.keyEntities,r=this.props,i=r.component,a=r.children,o=r.onVisibleChanged,s=Object(q.a)(r,["component","children","onVisibleChanged"]),u=i||l.Fragment,c={};return Y.forEach((function(n){c[n]=s[n],delete s[n]})),delete s.keys,l.createElement(u,Object.assign({},s),e.map((function(e){var r=e.status,i=Object(q.a)(e,["status"]),s="add"===r||"keep"===r;return l.createElement(t,Object.assign({},c,{key:i.key,visible:s,eventProps:i,onVisibleChanged:function(t){null==o||o(t,{key:i.key}),t||n.removeKey(i.key)}}),a)})))}}],[{key:"getDerivedStateFromProps",value:function(n,t){var e=n.keys,r=t.keyEntities,i=H(e);return{keyEntities:W(r,i).filter((function(n){var t=r.find((function(t){var e=t.key;return n.key===e}));return!t||"removed"!==t.status||"remove"!==n.status}))}}}]),r}(l.Component);e.defaultProps={component:"div"}})(_),t.a=U},function(n,t,e){"use strict";var r,i,a=e(24),o=e(25),l=e(26),s=e(47),u=e(30),c=e(0),d=e(7),f=e(177),h=e(18),p=e(5),m=e.n(p),g="\n min-height:0 !important;\n max-height:none !important;\n height:0 !important;\n visibility:hidden !important;\n overflow:hidden !important;\n position:absolute !important;\n z-index:-1000 !important;\n top:0 !important;\n right:0 !important\n",b=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","font-variant","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing"],v={};function y(n){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],e=n.getAttribute("id")||n.getAttribute("data-reactid")||n.getAttribute("name");if(t&&v[e])return v[e];var r=window.getComputedStyle(n),i=r.getPropertyValue("box-sizing")||r.getPropertyValue("-moz-box-sizing")||r.getPropertyValue("-webkit-box-sizing"),a=parseFloat(r.getPropertyValue("padding-bottom"))+parseFloat(r.getPropertyValue("padding-top")),o=parseFloat(r.getPropertyValue("border-bottom-width"))+parseFloat(r.getPropertyValue("border-top-width")),l=b.map((function(n){return"".concat(n,":").concat(r.getPropertyValue(n))})).join(";"),s={sizingStyle:l,paddingSize:a,borderSize:o,boxSizing:i};return t&&e&&(v[e]=s),s}function w(n,t){var e=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable}))),e.push.apply(e,r)}return e}function x(n){for(var t=1;t1&&void 0!==arguments[1]&&arguments[1],e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;r||((r=document.createElement("textarea")).setAttribute("tab-index","-1"),r.setAttribute("aria-hidden","true"),document.body.appendChild(r)),n.getAttribute("wrap")?r.setAttribute("wrap",n.getAttribute("wrap")):r.removeAttribute("wrap");var a=y(n,t),o=a.paddingSize,l=a.borderSize,s=a.boxSizing,u=a.sizingStyle;r.setAttribute("style","".concat(u,";").concat(g)),r.value=n.value||n.placeholder||"";var c,d=Number.MIN_SAFE_INTEGER,f=Number.MAX_SAFE_INTEGER,h=r.scrollHeight;if("border-box"===s?h+=l:"content-box"===s&&(h-=o),null!==e||null!==i){r.value=" ";var p=r.scrollHeight-o;null!==e&&(d=p*e,"border-box"===s&&(d=d+o+l),h=Math.max(d,h)),null!==i&&(f=p*i,"border-box"===s&&(f=f+o+l),c=h>f?"":"hidden",h=Math.min(f,h))}return{height:h,minHeight:d,maxHeight:f,overflowY:c}}(o.textArea,!1,t,e);o.setState({textareaStyles:a,resizeStatus:i.RESIZING},(function(){cancelAnimationFrame(o.resizeFrameId),o.resizeFrameId=requestAnimationFrame((function(){o.setState({resizeStatus:i.RESIZED},(function(){o.resizeFrameId=requestAnimationFrame((function(){o.setState({resizeStatus:i.NONE}),o.fixFirefoxAutoScroll()}))}))}))}))}},o.renderTextArea=function(){var n=o.props,t=n.prefixCls,e=void 0===t?"rc-textarea":t,r=n.autoSize,a=n.onResize,l=n.className,s=n.disabled,u=o.state,p=u.textareaStyles,g=u.resizeStatus,b=Object(h.a)(o.props,["prefixCls","onPressEnter","autoSize","defaultValue","onResize"]),v=m()(e,l,Object(d.a)({},"".concat(e,"-disabled"),s));"value"in b&&(b.value=b.value||"");var y=x(x(x({},o.props.style),p),g===i.RESIZING?{overflowX:"hidden",overflowY:"hidden"}:null);return c.createElement(f.a,{onResize:o.handleResize,disabled:!(r||a)},c.createElement("textarea",Object.assign({},b,{className:v,style:y,ref:o.saveTextArea})))},o.state={textareaStyles:{},resizeStatus:i.NONE},o}return Object(o.a)(e,[{key:"componentDidMount",value:function(){this.resizeTextarea()}},{key:"componentDidUpdate",value:function(n){n.value!==this.props.value&&this.resizeTextarea()}},{key:"componentWillUnmount",value:function(){cancelAnimationFrame(this.nextFrameActionId),cancelAnimationFrame(this.resizeFrameId)}},{key:"fixFirefoxAutoScroll",value:function(){try{if(document.activeElement===this.textArea){var n=this.textArea.selectionStart,t=this.textArea.selectionEnd;this.textArea.setSelectionRange(n,t)}}catch(n){}}},{key:"render",value:function(){return this.renderTextArea()}}]),e}(c.Component);function _(n){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(n){return!1}}();return function(){var e,r=Object(u.a)(n);if(t){var i=Object(u.a)(this).constructor;e=Reflect.construct(r,arguments,i)}else e=r.apply(this,arguments);return Object(s.a)(this,e)}}var S=function(n){Object(l.a)(e,n);var t=_(e);function e(n){var r;Object(a.a)(this,e),(r=t.call(this,n)).focus=function(){r.resizableTextArea.textArea.focus()},r.saveTextArea=function(n){r.resizableTextArea=n},r.handleChange=function(n){var t=r.props.onChange;r.setValue(n.target.value,(function(){r.resizableTextArea.resizeTextarea()})),t&&t(n)},r.handleKeyDown=function(n){var t=r.props,e=t.onPressEnter,i=t.onKeyDown;13===n.keyCode&&e&&e(n),i&&i(n)};var i=void 0===n.value||null===n.value?n.defaultValue:n.value;return r.state={value:i},r}return Object(o.a)(e,[{key:"setValue",value:function(n,t){"value"in this.props||this.setState({value:n},t)}},{key:"blur",value:function(){this.resizableTextArea.textArea.blur()}},{key:"render",value:function(){return c.createElement(M,Object.assign({},this.props,{value:this.state.value,onKeyDown:this.handleKeyDown,onChange:this.handleChange,ref:this.saveTextArea}))}}],[{key:"getDerivedStateFromProps",value:function(n){return"value"in n?{value:n.value}:null}}]),e}(c.Component);t.a=S},function(n,t,e){"use strict"; /** @license React v16.14.0 * react.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var r=e(104),i="function"==typeof Symbol&&Symbol.for,a=i?Symbol.for("react.element"):60103,o=i?Symbol.for("react.portal"):60106,l=i?Symbol.for("react.fragment"):60107,s=i?Symbol.for("react.strict_mode"):60108,u=i?Symbol.for("react.profiler"):60114,c=i?Symbol.for("react.provider"):60109,d=i?Symbol.for("react.context"):60110,f=i?Symbol.for("react.forward_ref"):60112,h=i?Symbol.for("react.suspense"):60113,p=i?Symbol.for("react.memo"):60115,m=i?Symbol.for("react.lazy"):60116,g="function"==typeof Symbol&&Symbol.iterator;function b(n){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+n,e=1;eC.length&&C.push(n)}function P(n,t,e){return null==n?0:function n(t,e,r,i){var l=typeof t;"undefined"!==l&&"boolean"!==l||(t=null);var s=!1;if(null===t)s=!0;else switch(l){case"string":case"number":s=!0;break;case"object":switch(t.$$typeof){case a:case o:s=!0}}if(s)return r(i,t,""===e?"."+R(t,0):e),1;if(s=0,e=""===e?".":e+":",Array.isArray(t))for(var u=0;u