1var _____WB$wombat$assign$function_____=function(name){return (self._wb_wombat && self._wb_wombat.local_init && self._wb_wombat.local_init(name))||self[name];};if(!self.__WB_pmw){self.__WB_pmw=function(obj){this.__WB_source=obj;return this;}}{ 2let window = _____WB$wombat$assign$function_____("window"); 3let self = _____WB$wombat$assign$function_____("self"); 4let document = _____WB$wombat$assign$function_____("document"); 5let location = _____WB$wombat$assign$function_____("location"); 6let top = _____WB$wombat$assign$function_____("top"); 7let parent = _____WB$wombat$assign$function_____("parent"); 8let frames = _____WB$wombat$assign$function_____("frames"); 9let opens = _____WB$wombat$assign$function_____("opens"); 10/*! For license information please see LICENSES */ 11(window.webpackJsonp=window.webpackJsonp||[]).push([[40],[function(t,e,r){"use strict";r.r(e),r.d(e,"__extends",(function(){return o})),r.d(e,"__assign",(function(){return h})),r.d(e,"__rest",(function(){return c})),r.d(e,"__decorate",(function(){return f})),r.d(e,"__param",(function(){return l})),r.d(e,"__metadata",(function(){return d})),r.d(e,"__awaiter",(function(){return m})),r.d(e,"__generator",(function(){return v})),r.d(e,"__createBinding",(function(){return y})),r.d(e,"__exportStar",(function(){return w})),r.d(e,"__values",(function(){return M})),r.d(e,"__read",(function(){return _})),r.d(e,"__spread",(function(){return S})),r.d(e,"__spreadArrays",(function(){return A})),r.d(e,"__await",(function(){return x})),r.d(e,"__asyncGenerator",(function(){return k})),r.d(e,"__asyncDelegator",(function(){return E})),r.d(e,"__asyncValues",(function(){return C}
vendor: 6,201 bytes, line 11
11)),r.d(e,"__makeTemplateObject",(function(){return R})),r.d(e,"__importStar",(function(){return I})),r.d(e,"__importDefault",(function(){return P})),r.d(e,"__classPrivateFieldGet",(function(){return T})),r.d(e,"__classPrivateFieldSet",(function(){return O}));var n=function(t,b){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,b){t.__proto__=b}||function(t,b){for(var p in b)b.hasOwnProperty(p)&&(t[p]=b[p])})(t,b)};function o(t,b){function e(){this.constructor=t}n(t,b),t.prototype=null===b?Object.create(b):(e.prototype=b.prototype,new e)}var h=function(){return(h=Object.assign||function(t){for(var s,i=1,e=arguments.length;i<e;i++)for(var p in s=arguments[i])Object.prototype.hasOwnProperty.call(s,p)&&(t[p]=s[p]);return t}).apply(this,arguments)};function c(s,t){var e={};for(var p in s)Object.prototype.hasOwnProperty.call(s,p)&&t.indexOf(p)<0&&(e[p]=s[p]);if(null!=s&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(p=Object.getOwnPropertySymbols(s);i<p.length;i++)t.indexOf(p[i])<0&&Object.prototype.propertyIsEnumerable.call(s,p[i])&&(e[p[i]]=s[p[i]])}return e}function f(t,e,r,desc){var n,o=arguments.length,h=o<3?e:null===desc?desc=Object.getOwnPropertyDescriptor(e,r):desc;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)h=Reflect.decorate(t,e,r,desc);else for(var i=t.length-1;i>=0;i--)(n=t[i])&&(h=(o<3?n(h):o>3?n(e,r,h):n(e,r))||h);return o>3&&h&&Object.defineProperty(e,r,h),h}function l(t,e){return function(r,n){e(r,n,t)}}function d(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)}function m(t,e,r,n){return new(r||(r=Promise))((function(o,h){function c(t){try{l(n.next(t))}catch(t){h(t)}}function f(t){try{l(n.throw(t))}catch(t){h(t)}}function l(t){var e;t.done?o(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(c,f)}l((n=n.apply(t,e||[])).next())}))}function v(t,body){var e,r,n,g,o={label:0,sent:function(){if(1&n[0])throw n[1];return n[1]},trys:[],ops:[]};return g={next:h(0),throw:h(1),return:h(2)},"function"==typeof Symbol&&(g[Symbol.iterator]=function(){return this}),g;function h(h){return function(c){return function(h){if(e)throw new TypeError("Generator is already executing.");for(;o;)try{if(e=1,r&&(n=2&h[0]?r.return:h[0]?r.throw||((n=r.return)&&n.call(r),0):r.next)&&!(n=n.call(r,h[1])).done)return n;switch(r=0,n&&(h=[2&h[0],n.value]),h[0]){case 0:case 1:n=h;break;case 4:return o.label++,{value:h[1],done:!1};case 5:o.label++,r=h[1],h=[0];continue;case 7:h=o.ops.pop(),o.trys.pop();continue;default:if(!(n=o.trys,(n=n.length>0&&n[n.length-1])||6!==h[0]&&2!==h[0])){o=0;continue}if(3===h[0]&&(!n||h[1]>n[0]&&h[1]<n[3])){o.label=h[1];break}if(6===h[0]&&o.label<n[1]){o.label=n[1],n=h;break}if(n&&o.label<n[2]){o.label=n[2],o.ops.push(h);break}n[2]&&o.ops.pop(),o.trys.pop();continue}h=body.call(t,o)}catch(t){h=[6,t],r=0}finally{e=n=0}if(5&h[0])throw h[1];return{value:h[0]?h[1]:void 0,done:!0}}([h,c])}}}function y(t,e,r,n){void 0===n&&(n=r),t[n]=e[r]}function w(t,e){for(var p in t)"default"===p||e.hasOwnProperty(p)||(e[p]=t[p])}function M(t){var s="function"==typeof Symbol&&Symbol.iterator,e=s&&t[s],i=0;if(e)return e.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&i>=t.length&&(t=void 0),{value:t&&t[i++],done:!t}}};throw new TypeError(s?"Object is not iterable.":"Symbol.iterator is not defined.")}function _(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,o,i=r.call(t),h=[];try{for(;(void 0===e||e-- >0)&&!(n=i.next()).done;)h.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return h}function S(){for(var t=[],i=0;i<arguments.length;i++)t=t.concat(_(arguments[i]));return t}function A(){for(var s=0,i=0,t=arguments.length;i<t;i++)s+=arguments[i].length;var e=Array(s),r=0;for(i=0;i<t;i++)for(var a=arguments[i],n=0,o=a.length;n<o;n++,r++)e[r]=a[n];return e}function x(t){return this instanceof x?(this.v=t,this):new x(t)}function k(t,e,r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var i,g=r.apply(t,e||[]),q=[];return i={},n("next"),n("throw"),n("return"),i[Symbol.asyncIterator]=function(){return this},i;function n(t){g[t]&&(i[t]=function(e){return new Promise((function(a,b){q.push([t,e,a,b])>1||o(t,e)}))})}function o(t,e){try{(r=g[t](e)).value instanceof x?Promise.resolve(r.value.v).then(h,c):f(q[0][2],r)}catch(t){f(q[0][3],t)}var r}function h(t){o("next",t)}function c(t){o("throw",t)}function f(t,e){t(e),q.shift(),q.length&&o(q[0][0],q[0][1])}}function E(t){var i,p;return i={},e("next"),e("throw",(function(t){throw t})),e("return"),i[Symbol.iterator]=function(){return this},i;function e(e,r){i[e]=t[e]?function(n){return(p=!p)?{value:x(t[e](n)),done:"return"===e}:r?r(n):n}:r}}function C(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var i,e=t[Symbol.asyncIterator];return e?e.call(t):(t=M(t),i={},r("next"),r("throw"),r("return"),i[Symbol.asyncIterator]=function(){return this},i);function r(e){i[e]=t[e]&&function(r){return new Promise((function(n,o){(function(t,e,r,n){Promise.resolve(n).then((function(e){t({value:e,done:r})}),e)})(n,o,(r=t[e](r)).done,r.value)}))}}}function R(t,e){return Object.defineProperty?Object.defineProperty(t,"raw",{value:e}):t.raw=e,t}function I(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var r in t)Object.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e.default=t,e}function P(t){return t&&t.__esModule?t:{default:t}}function T(t,e){if(!e.has(t))throw new TypeError("attempted to get private field on non-instance");return e.get(t)}function O(t,e,r){if(!e.has(t))throw new TypeError("attempted to set private field on non-instance");return e.set(t,r),r}},,,,,function(t,e,r){"use strict";(function(t){var n=r(399),o=r(400),h=r(230);function c(){return l.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function f(t,e){if(c()<e)throw new RangeError("Invalid typed array length");return l.TYPED_ARRAY_SUPPORT?(t=new Uint8Array(e)).__proto__=l.prototype:(null===t&&(t=new l(e)),t.length=e),t}function l(t,e,r){if(!(l.TYPED_ARRAY_SUPPORT||this instanceof l))return new l(t,e,r);
vendor: 12,053 bytes, line 11
11if("number"==typeof t){if("string"==typeof e)throw new Error("If encoding is specified then the first argument must be a string");return v(this,t)}return d(this,t,e,r)}function d(t,e,r,n){if("number"==typeof e)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&e instanceof ArrayBuffer?function(t,e,r,n){if(e.byteLength,r<0||e.byteLength<r)throw new RangeError("'offset' is out of bounds");if(e.byteLength<r+(n||0))throw new RangeError("'length' is out of bounds");e=void 0===r&&void 0===n?new Uint8Array(e):void 0===n?new Uint8Array(e,r):new Uint8Array(e,r,n);l.TYPED_ARRAY_SUPPORT?(t=e).__proto__=l.prototype:t=y(t,e);return t}(t,e,r,n):"string"==typeof e?function(t,e,r){"string"==typeof r&&""!==r||(r="utf8");if(!l.isEncoding(r))throw new TypeError('"encoding" must be a valid string encoding');var n=0|M(e,r),o=(t=f(t,n)).write(e,r);o!==n&&(t=t.slice(0,o));return t}(t,e,r):function(t,e){if(l.isBuffer(e)){var r=0|w(e.length);return 0===(t=f(t,r)).length||e.copy(t,0,0,r),t}if(e){if("undefined"!=typeof ArrayBuffer&&e.buffer instanceof ArrayBuffer||"length"in e)return"number"!=typeof e.length||(n=e.length)!=n?f(t,0):y(t,e);if("Buffer"===e.type&&h(e.data))return y(t,e.data)}var n;throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(t,e)}function m(t){if("number"!=typeof t)throw new TypeError('"size" argument must be a number');if(t<0)throw new RangeError('"size" argument must not be negative')}function v(t,e){if(m(e),t=f(t,e<0?0:0|w(e)),!l.TYPED_ARRAY_SUPPORT)for(var i=0;i<e;++i)t[i]=0;return t}function y(t,e){var r=e.length<0?0:0|w(e.length);t=f(t,r);for(var i=0;i<r;i+=1)t[i]=255&e[i];return t}function w(t){if(t>=c())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+c().toString(16)+" bytes");return 0|t}function M(t,e){if(l.isBuffer(t))return t.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(t)||t instanceof ArrayBuffer))return t.byteLength;"string"!=typeof t&&(t=""+t);var r=t.length;if(0===r)return 0;for(var n=!1;;)switch(e){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":case void 0:return G(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return J(t).length;default:if(n)return G(t).length;e=(""+e).toLowerCase(),n=!0}}function _(t,e,r){var n=!1;if((void 0===e||e<0)&&(e=0),e>this.length)return"";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return"";if((r>>>=0)<=(e>>>=0))return"";for(t||(t="utf8");;)switch(t){case"hex":return B(this,e,r);case"utf8":case"utf-8":return O(this,e,r);case"ascii":return j(this,e,r);case"latin1":case"binary":return U(this,e,r);case"base64":return T(this,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return D(this,e,r);default:if(n)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),n=!0}}function S(b,t,e){var i=b[t];b[t]=b[e],b[e]=i}function A(t,e,r,n,o){if(0===t.length)return-1;if("string"==typeof r?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,isNaN(r)&&(r=o?0:t.length-1),r<0&&(r=t.length+r),r>=t.length){if(o)return-1;r=t.length-1}else if(r<0){if(!o)return-1;r=0}if("string"==typeof e&&(e=l.from(e,n)),l.isBuffer(e))return 0===e.length?-1:x(t,e,r,n,o);if("number"==typeof e)return e&=255,l.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?o?Uint8Array.prototype.indexOf.call(t,e,r):Uint8Array.prototype.lastIndexOf.call(t,e,r):x(t,[e],r,n,o);throw new TypeError("val must be string, number or Buffer")}function x(t,e,r,n,o){var i,h=1,c=t.length,f=e.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(t.length<2||e.length<2)return-1;h=2,c/=2,f/=2,r/=2}function l(t,i){return 1===h?t[i]:t.readUInt16BE(i*h)}if(o){var d=-1;for(i=r;i<c;i++)if(l(t,i)===l(e,-1===d?0:i-d)){if(-1===d&&(d=i),i-d+1===f)return d*h}else-1!==d&&(i-=i-d),d=-1}else for(r+f>c&&(r=c-f),i=r;i>=0;i--){for(var m=!0,v=0;v<f;v++)if(l(t,i+v)!==l(e,v)){m=!1;break}if(m)return i}return-1}function k(t,e,r,n){r=Number(r)||0;var o=t.length-r;n?(n=Number(n))>o&&(n=o):n=o;var h=e.length;if(h%2!=0)throw new TypeError("Invalid hex string");n>h/2&&(n=h/2);for(var i=0;i<n;++i){var c=parseInt(e.substr(2*i,2),16);if(isNaN(c))return i;t[r+i]=c}return i}function E(t,e,r,n){return Y(G(e,t.length-r),t,r,n)}function C(t,e,r,n){return Y(function(t){for(var e=[],i=0;i<t.length;++i)e.push(255&t.charCodeAt(i));return e}(e),t,r,n)}function R(t,e,r,n){return C(t,e,r,n)}function I(t,e,r,n){return Y(J(e),t,r,n)}function P(t,e,r,n){return Y(function(t,e){for(var r,n,o,h=[],i=0;i<t.length&&!((e-=2)<0);++i)r=t.charCodeAt(i),n=r>>8,o=r%256,h.push(o),h.push(n);return h}(e,t.length-r),t,r,n)}function T(t,e,r){return 0===e&&r===t.length?n.fromByteArray(t):n.fromByteArray(t.slice(e,r))}function O(t,e,r){r=Math.min(t.length,r);for(var n=[],i=e;i<r;){var o,h,c,f,l=t[i],d=null,m=l>239?4:l>223?3:l>191?2:1;if(i+m<=r)switch(m){case 1:l<128&&(d=l);break;case 2:128==(192&(o=t[i+1]))&&(f=(31&l)<<6|63&o)>127&&(d=f);break;case 3:o=t[i+1],h=t[i+2],128==(192&o)&&128==(192&h)&&(f=(15&l)<<12|(63&o)<<6|63&h)>2047&&(f<55296||f>57343)&&(d=f);break;case 4:o=t[i+1],h=t[i+2],c=t[i+3],128==(192&o)&&128==(192&h)&&128==(192&c)&&(f=(15&l)<<18|(63&o)<<12|(63&h)<<6|63&c)>65535&&f<1114112&&(d=f)}null===d?(d=65533,m=1):d>65535&&(d-=65536,n.push(d>>>10&1023|55296),d=56320|1023&d),n.push(d),i+=m}return function(t){var e=t.length;if(e<=4096)return String.fromCharCode.apply(String,t);var r="",i=0;for(;i<e;)r+=String.fromCharCode.apply(String,t.slice(i,i+=4096));return r}(n)}e.Buffer=l,e.SlowBuffer=function(t){+t!=t&&(t=0);return l.alloc(+t)},e.INSPECT_MAX_BYTES=50,l.TYPED_ARRAY_SUPPORT=void 0!==t.TYPED_ARRAY_SUPPORT?t.TYPED_ARRAY_SUPPORT:function(){try{var t=new Uint8Array(1);return t.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===t.foo()&&"function"==typeof t.subarray&&0===t.subarray(1,1).byteLength}catch(t){return!1}}(),e.kMaxLength=c(),l.poolSize=8192,l._augment=function(t){return t.__proto__=l.prototype,t},l.from=function(t,e,r){return d(null,t,e,r)},l.TYPED_ARRAY_SUPPORT&&(l.prototype.__proto__=Uint8Array.prototype,l.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&l[Symbol.species]===l&&Object.defineProperty(l,Symbol.species,{value:null,configurable:!0})),l.alloc=function(t,e,r){return function(t,e,r,n){return m(e),e<=0?f(t,e):void 0!==r?"string"==typeof n?f(t,e).fill(r,n):f(t,e).fill(r):f(t,e)}(null,t,e,r)},l.allocUnsafe=function(t){return v(null,t)},l.allocUnsafeSlow=function(t){return v(null,t)},l.isBuffer=function(b){return!(null==b||!b._isBuffer)},l.compare=function(a,b){if(!l.isBuffer(a)||!l.isBuffer(b))throw new TypeError("Arguments must be Buffers");if(a===b)return 0;for(var t=a.length,e=b.length,i=0,r=Math.min(t,e);i<r;++i)if(a[i]!==b[i]){t=a[i],e=b[i];break}return t<e?-1:e<t?1:0},l.isEncoding=function(t){switch(String(t).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},l.concat=function(t,e){if(!h(t))throw new TypeError('"list" argument must be an Array of Buffers');if(0===t.length)return l.alloc(0);var i;if(void 0===e)for(e=0,i=0;i<t.length;++i)e+=t[i].length;var r=l.allocUnsafe(e),n=0;for(i=0;i<t.length;++i){var o=t[i];if(!l.isBuffer(o))throw new TypeError('"list" argument must be an Array of Buffers');o.copy(r,n),n+=o.length}return r},l.byteLength=M,l.prototype._isBuffer=!0,l.prototype.swap16=function(){var t=this.length;if(t%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var i=0;i<t;i+=2)S(this,i,i+1);return this},l.prototype.swap32=function(){var t=this.length;if(t%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var i=0;i<t;i+=4)S(this,i,i+3),S(this,i+1,i+2);return this},l.prototype.swap64=function(){var t=this.length;if(t%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var i=0;i<t;i+=8)S(this,i,i+7),S(this,i+1,i+6),S(this,i+2,i+5),S(this,i+3,i+4);return this},l.prototype.toString=function(){var t=0|this.length;return 0===t?"":0===arguments.length?O(this,0,t):_.apply(this,arguments)},l.prototype.equals=function(b){if(!l.isBuffer(b))throw new TypeError("Argument must be a Buffer");return this===b||0===l.compare(this,b)},l.prototype.inspect=function(){var t="",r=e.INSPECT_MAX_BYTES;return this.length>0&&(t=this.toString("hex",0,r).match(/.{2}/g).join(" "),this.length>r&&(t+=" ... ")),"<Buffer "+t+">"},l.prototype.compare=function(t,e,r,n,o){if(!l.isBuffer(t))throw new TypeError("Argument must be a Buffer");if(void 0===e&&(e=0),void 0===r&&(r=t?t.length:0),void 0===n&&(n=0),void 0===o&&(o=this.length),e<0||r>t.length||n<0||o>this.length)throw new RangeError("out of range index");if(n>=o&&e>=r)return 0;if(n>=o)return-1;if(e>=r)return 1;if(this===t)return 0;for(var h=(o>>>=0)-(n>>>=0),c=(r>>>=0)-(e>>>=0),f=Math.min(h,c),d=this.slice(n,o),m=t.slice(e,r),i=0;i<f;++i)if(d[i]!==m[i]){h=d[i],c=m[i];break}return h<c?-1:c<h?1:0},l.prototype.includes=function(t,e,r){return-1!==this.indexOf(t,e,r)},l.prototype.indexOf=function(t,e,r){return A(this,t,e,r,!0)},l.prototype.lastIndexOf=function(t,e,r){return A(this,t,e,r,!1)},l.prototype.write=function(t,e,r,n){if(void 0===e)n="utf8",r=this.length,e=0;else if(void 0===r&&"string"==typeof e)n=e,r=this.length,e=0;else{if(!isFinite(e))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");e|=0,isFinite(r)?(r|=0,void 0===n&&(n="utf8")):(n=r,r=void 0)}var o=this.length-e;if((void 0===r||r>o)&&(r=o),t.length>0&&(r<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var h=!1;;)switch(n){case"hex":return k(this,t,e,r);case"utf8":case"utf-8":return E(this,t,e,r);case"ascii":return C(this,t,e,r);case"latin1":case"binary":return R(this,t,e,r);case"base64":return I(this,t,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return P(this,t,e,r);default:if(h)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),h=!0}},l.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function j(t,e,r){var n="";r=Math.min(t.length,r);for(var i=e;i<r;++i)n+=String.fromCharCode(127&t[i]);return n}function U(t,e,r){var n="";r=Math.min(t.length,r);for(var i=e;i<r;++i)n+=String.fromCharCode(t[i]);return n}function B(t,e,r){var n=t.length;(!e||e<0)&&(e=0),(!r||r<0||r>n)&&(r=n);for(var o="",i=e;i<r;++i)o+=W(t[i]);return o}function D(t,e,r){for(var n=t.slice(e,r),o="",i=0;i<n.length;i+=2)o+=String.fromCharCode(n[i]+256*n[i+1]);return o}function F(t,e,r){if(t%1!=0||t<0)throw new RangeError("offset is not uint");if(t+e>r)throw new RangeError("Trying to access beyond buffer length")}function L(t,e,r,n,o,h){if(!l.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>o||e<h)throw new RangeError('"value" argument is out of bounds');if(r+n>t.length)throw new RangeError("Index out of range")}function N(t,e,r,n){e<0&&(e=65535+e+1);for(var i=0,o=Math.min(t.length-r,2);i<o;++i)t[r+i]=(e&255<<8*(n?i:1-i))>>>8*(n?i:1-i)}function H(t,e,r,n){e<0&&(e=4294967295+e+1);for(var i=0,o=Math.min(t.length-r,4);i<o;++i)t[r+i]=e>>>8*(n?i:3-i)&255}function z(t,e,r,n,o,h){if(r+n>t.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function V(t,e,r,n,h){return h||z(t,0,r,4),o.write(t,e,r,n,23,4),r+4}function K(t,e,r,n,h){return h||z(t,0,r,8),o.write(t,e,r,n,52,8),r+8}l.prototype.slice=function(t,e){var r,n=this.length;if((t=~~t)<0?(t+=n)<0&&(t=0):t>n&&(t=n),(e=void 0===e?n:~~e)<0?(e+=n)<0&&(e=0):e>n&&(e=n),e<t&&(e=t),l.TYPED_ARRAY_SUPPORT)(r=this.subarray(t,e)).__proto__=l.prototype;else{var o=e-t;r=new l(o,void 0);for(var i=0;i<o;++i)r[i]=this[i+t]}return r},l.prototype.readUIntLE=function(t,e,r){t|=0,e|=0,r||F(t,e,this.length);for(var n=this[t],o=1,i=0;
vendor: 4,089 bytes, line 11
11++i<e&&(o*=256);)n+=this[t+i]*o;return n},l.prototype.readUIntBE=function(t,e,r){t|=0,e|=0,r||F(t,e,this.length);for(var n=this[t+--e],o=1;e>0&&(o*=256);)n+=this[t+--e]*o;return n},l.prototype.readUInt8=function(t,e){return e||F(t,1,this.length),this[t]},l.prototype.readUInt16LE=function(t,e){return e||F(t,2,this.length),this[t]|this[t+1]<<8},l.prototype.readUInt16BE=function(t,e){return e||F(t,2,this.length),this[t]<<8|this[t+1]},l.prototype.readUInt32LE=function(t,e){return e||F(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},l.prototype.readUInt32BE=function(t,e){return e||F(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},l.prototype.readIntLE=function(t,e,r){t|=0,e|=0,r||F(t,e,this.length);for(var n=this[t],o=1,i=0;++i<e&&(o*=256);)n+=this[t+i]*o;return n>=(o*=128)&&(n-=Math.pow(2,8*e)),n},l.prototype.readIntBE=function(t,e,r){t|=0,e|=0,r||F(t,e,this.length);for(var i=e,n=1,o=this[t+--i];i>0&&(n*=256);)o+=this[t+--i]*n;return o>=(n*=128)&&(o-=Math.pow(2,8*e)),o},l.prototype.readInt8=function(t,e){return e||F(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},l.prototype.readInt16LE=function(t,e){e||F(t,2,this.length);var r=this[t]|this[t+1]<<8;return 32768&r?4294901760|r:r},l.prototype.readInt16BE=function(t,e){e||F(t,2,this.length);var r=this[t+1]|this[t]<<8;return 32768&r?4294901760|r:r},l.prototype.readInt32LE=function(t,e){return e||F(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},l.prototype.readInt32BE=function(t,e){return e||F(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},l.prototype.readFloatLE=function(t,e){return e||F(t,4,this.length),o.read(this,t,!0,23,4)},l.prototype.readFloatBE=function(t,e){return e||F(t,4,this.length),o.read(this,t,!1,23,4)},l.prototype.readDoubleLE=function(t,e){return e||F(t,8,this.length),o.read(this,t,!0,52,8)},l.prototype.readDoubleBE=function(t,e){return e||F(t,8,this.length),o.read(this,t,!1,52,8)},l.prototype.writeUIntLE=function(t,e,r,n){(t=+t,e|=0,r|=0,n)||L(this,t,e,r,Math.pow(2,8*r)-1,0);var o=1,i=0;for(this[e]=255&t;++i<r&&(o*=256);)this[e+i]=t/o&255;return e+r},l.prototype.writeUIntBE=function(t,e,r,n){(t=+t,e|=0,r|=0,n)||L(this,t,e,r,Math.pow(2,8*r)-1,0);var i=r-1,o=1;for(this[e+i]=255&t;--i>=0&&(o*=256);)this[e+i]=t/o&255;return e+r},l.prototype.writeUInt8=function(t,e,r){return t=+t,e|=0,r||L(this,t,e,1,255,0),l.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),this[e]=255&t,e+1},l.prototype.writeUInt16LE=function(t,e,r){return t=+t,e|=0,r||L(this,t,e,2,65535,0),l.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):N(this,t,e,!0),e+2},l.prototype.writeUInt16BE=function(t,e,r){return t=+t,e|=0,r||L(this,t,e,2,65535,0),l.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):N(this,t,e,!1),e+2},l.prototype.writeUInt32LE=function(t,e,r){return t=+t,e|=0,r||L(this,t,e,4,4294967295,0),l.TYPED_ARRAY_SUPPORT?(this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t):H(this,t,e,!0),e+4},l.prototype.writeUInt32BE=function(t,e,r){return t=+t,e|=0,r||L(this,t,e,4,4294967295,0),l.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):H(this,t,e,!1),e+4},l.prototype.writeIntLE=function(t,e,r,n){if(t=+t,e|=0,!n){var o=Math.pow(2,8*r-1);L(this,t,e,r,o-1,-o)}var i=0,h=1,sub=0;for(this[e]=255&t;++i<r&&(h*=256);)t<0&&0===sub&&0!==this[e+i-1]&&(sub=1),this[e+i]=(t/h>>0)-sub&255;return e+r},l.prototype.writeIntBE=function(t,e,r,n){if(t=+t,e|=0,!n){var o=Math.pow(2,8*r-1);L(this,t,e,r,o-1,-o)}var i=r-1,h=1,sub=0;for(this[e+i]=255&t;--i>=0&&(h*=256);)t<0&&0===sub&&0!==this[e+i+1]&&(sub=1),this[e+i]=(t/h>>0)-sub&255;return e+r},l.prototype.writeInt8=function(t,e,r){return t=+t,e|=0,r||L(this,t,e,1,127,-128),l.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),t<0&&(t=255+t+1),this[e]=255&t,e+1},l.prototype.writeInt16LE=function(t,e,r){return t=+t,e|=0,r||L(this,t,e,2,32767,-32768),l.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):N(this,t,e,!0),e+2},l.prototype.writeInt16BE=function(t,e,r){return t=+t,e|=0,r||L(this,t,e,2,32767,-32768),l.TYPED_ARRAY_SUPPORT?(this[e]=t>>>
vendor: 4,327 bytes, line 11
118,this[e+1]=255&t):N(this,t,e,!1),e+2},l.prototype.writeInt32LE=function(t,e,r){return t=+t,e|=0,r||L(this,t,e,4,2147483647,-2147483648),l.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24):H(this,t,e,!0),e+4},l.prototype.writeInt32BE=function(t,e,r){return t=+t,e|=0,r||L(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),l.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):H(this,t,e,!1),e+4},l.prototype.writeFloatLE=function(t,e,r){return V(this,t,e,!0,r)},l.prototype.writeFloatBE=function(t,e,r){return V(this,t,e,!1,r)},l.prototype.writeDoubleLE=function(t,e,r){return K(this,t,e,!0,r)},l.prototype.writeDoubleBE=function(t,e,r){return K(this,t,e,!1,r)},l.prototype.copy=function(t,e,r,n){if(r||(r=0),n||0===n||(n=this.length),e>=t.length&&(e=t.length),e||(e=0),n>0&&n<r&&(n=r),n===r)return 0;if(0===t.length||0===this.length)return 0;if(e<0)throw new RangeError("targetStart out of bounds");if(r<0||r>=this.length)throw new RangeError("sourceStart out of bounds");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),t.length-e<n-r&&(n=t.length-e+r);var i,o=n-r;if(this===t&&r<e&&e<n)for(i=o-1;i>=0;--i)t[i+e]=this[i+r];else if(o<1e3||!l.TYPED_ARRAY_SUPPORT)for(i=0;i<o;++i)t[i+e]=this[i+r];else Uint8Array.prototype.set.call(t,this.subarray(r,r+o),e);return o},l.prototype.fill=function(t,e,r,n){if("string"==typeof t){if("string"==typeof e?(n=e,e=0,r=this.length):"string"==typeof r&&(n=r,r=this.length),1===t.length){var code=t.charCodeAt(0);code<256&&(t=code)}if(void 0!==n&&"string"!=typeof n)throw new TypeError("encoding must be a string");if("string"==typeof n&&!l.isEncoding(n))throw new TypeError("Unknown encoding: "+n)}else"number"==typeof t&&(t&=255);if(e<0||this.length<e||this.length<r)throw new RangeError("Out of range index");if(r<=e)return this;var i;if(e>>>=0,r=void 0===r?this.length:r>>>0,t||(t=0),"number"==typeof t)for(i=e;i<r;++i)this[i]=t;else{var o=l.isBuffer(t)?t:G(new l(t,n).toString()),h=o.length;for(i=0;i<r-e;++i)this[i+e]=o[i%h]}return this};var Z=/[^+\/0-9A-Za-z-_]/g;function W(t){return t<16?"0"+t.toString(16):t.toString(16)}function G(t,e){var r;e=e||1/0;for(var n=t.length,o=null,h=[],i=0;i<n;++i){if((r=t.charCodeAt(i))>55295&&r<57344){if(!o){if(r>56319){(e-=3)>-1&&h.push(239,191,189);continue}if(i+1===n){(e-=3)>-1&&h.push(239,191,189);continue}o=r;continue}if(r<56320){(e-=3)>-1&&h.push(239,191,189),o=r;continue}r=65536+(o-55296<<10|r-56320)}else o&&(e-=3)>-1&&h.push(239,191,189);if(o=null,r<128){if((e-=1)<0)break;h.push(r)}else if(r<2048){if((e-=2)<0)break;h.push(r>>6|192,63&r|128)}else if(r<65536){if((e-=3)<0)break;h.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error("Invalid code point");if((e-=4)<0)break;h.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return h}function J(t){return n.toByteArray(function(t){if((t=function(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}(t).replace(Z,"")).length<2)return"";for(;t.length%4!=0;)t+="=";return t}(t))}function Y(t,e,r,n){for(var i=0;i<n&&!(i+r>=e.length||i>=t.length);++i)e[i+r]=t[i];return i}}).call(this,r(18))},function(t,e){"function"==typeof Object.create?t.exports=function(t,e){e&&(t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:t.exports=function(t,e){if(e){t.super_=e;var r=function(){};r.prototype=e.prototype,t.prototype=new r,t.prototype.constructor=t}}},function(t,e,r){var n=r(5),o=n.Buffer;function h(t,e){for(var r in t)e[r]=t[r]}function c(t,e,r){return o(t,e,r)}o.from&&o.alloc&&o.allocUnsafe&&o.allocUnsafeSlow?t.exports=n:(h(n,e),e.Buffer=c),h(o,c),c.from=function(t,e,r){if("number"==typeof t)throw new TypeError("Argument must not be a number");return o(t,e,r)},c.alloc=function(t,e,r){if("number"!=typeof t)throw new TypeError("Argument must be a number");var n=o(t);return void 0!==e?"string"==typeof r?n.fill(e,r):n.fill(e):n.fill(0),n},c.allocUnsafe=function(t){if("number"!=typeof t)throw new TypeError("Argument must be a number");return o(t)},c.allocUnsafeSlow=function(t){if("number"!=typeof t)throw new TypeError("Argument must be a number");return n.SlowBuffer(t)}},,,,,,,,function(t,e,r){"use strict";r.d(e,"a",(function(){return n})),r.d(e,"b",(function(){return o}
11)),r.d(e,"c",(function(){return h})),r.d(e,"d",(function(){return c})),r.d(e,"e",(function(){return f})),r.d(e,"f",(function(){return l})),r.d(e,"g",(function(){return d})),r.d(e,"h",(function(){return m})),r.d(e,"i",(function(){return v})),r.d(e,"j",(function(){return y})),r.d(e,"k",(function(){return w})),r.d(e,"l",(function(){return M})),r.d(e,"m",(function(){return _})),r.d(e,"n",(function(){return S})),r.d(e,"o",(function(){return A})),r.d(e,"p",(function(){return x})),r.d(e,"q",(function(){return k})),r.d(e,"r",(function(){return E})),r.d(e,"s",(function(){return C})),r.d(e,"t",(function(){return R})),r.d(e,"u",(function(){return I})),r.d(e,"v",(function(){return P})),r.d(e,"w",(function(){return T})),r.d(e,"x",(function(){return O})),r.d(e,"y",(function(){return j})),r.d(e,"z",(function(){return U})),r.d(e,"A",(function(){return B})),r.d(e,"B",(function(){return D})),r.d(e,"C",(function(){return F})),r.d(e,"D",(function(){return L})),r.d(e,"E",(function(){return N}));var n="M12,19.2C9.5,19.2 7.29,17.92 6,16C6.03,14 10,12.9 12,12.9C14,12.9 17.97,14 18,16C16.71,17.92 14.5,19.2 12,19.2M12,5A3,3 0 0,1 15,8A3,3 0 0,1 12,11A3,3 0 0,1 9,8A3,3 0 0,1 12,5M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12C22,6.47 17.5,2 12,2Z",o="M12,15C12.81,15 13.5,14.7 14.11,14.11C14.7,13.5 15,12.81 15,12C15,11.19 14.7,10.5 14.11,9.89C13.5,9.3 12.81,9 12,9C11.19,9 10.5,9.3 9.89,9.89C9.3,10.5 9,11.19 9,12C9,12.81 9.3,13.5 9.89,14.11C10.5,14.7 11.19,15 12,15M12,2C14.75,2 17.1,3 19.05,4.95C21,6.9 22,9.25 22,12V13.45C22,14.45 21.65,15.3 21,16C20.3,16.67 19.5,17 18.5,17C17.3,17 16.31,16.5 15.56,15.5C14.56,16.5 13.38,17 12,17C10.63,17 9.45,16.5 8.46,15.54C7.5,14.55 7,13.38 7,12C7,10.63 7.5,9.45 8.46,8.46C9.45,7.5 10.63,7 12,7C13.38,7 14.55,7.5 15.54,8.46C16.5,9.45 17,10.63 17,12V13.45C17,13.86 17.16,14.22 17.46,14.53C17.76,14.84 18.11,15 18.5,15C18.92,15 19.27,14.84 19.57,14.53C19.87,14.22 20,13.86 20,13.45V12C20,9.81 19.23,7.93 17.65,6.35C16.07,4.77 14.19,4 12,4C9.81,4 7.93,4.77 6.35,6.35C4.77,7.93 4,9.81 4,12C4,14.19 4.77,16.07 6.35,17.65C7.93,19.23 9.81,20 12,20H17V22H12C9.25,22 6.9,21 4.95,19.05C3,17.1 2,14.75 2,12C2,9.25 3,6.9 4.95,4.95C6.9,3 9.25,2 12,2Z",h="M19,19H5V8H19M19,3H18V1H16V3H8V1H6V3H5C3.89,3 3,3.9 3,5V19A2,2 0 0,0 5,21H19A2,2 0 0,0 21,19V5A2,2 0 0,0 19,3M16.53,11.06L15.47,10L10.59,14.88L8.47,12.76L7.41,13.82L10.59,17L16.53,11.06Z",c="M17,18C15.89,18 15,18.89 15,20A2,2 0 0,0 17,22A2,2 0 0,0 19,20C19,18.89 18.1,18 17,18M1,2V4H3L6.6,11.59L5.24,14.04C5.09,14.32 5,14.65 5,15A2,2 0 0,0 7,17H19V15H7.42A0.25,0.25 0 0,1 7.17,14.75C7.17,14.7 7.18,14.66 7.2,14.63L8.1,13H15.55C16.3,13 16.96,12.58 17.3,11.97L20.88,5.5C20.95,5.34 21,5.17 21,5A1,1 0 0,0 20,4H5.21L4.27,2M7,18C5.89,18 5,18.89 5,20A2,2 0 0,0 7,22A2,2 0 0,0 9,20C9,18.89 8.1,18 7,18Z",f="M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z",l="M7.41,8.58L12,13.17L16.59,8.58L18,10L12,16L6,10L7.41,8.58Z",d="M8.59,16.58L13.17,12L8.59,7.41L10,6L16,12L10,18L8.59,16.58Z",m="M7.41,15.41L12,10.83L16.59,15.41L18,14L12,8L6,14L7.41,15.41Z",v="M19,6.41L17.59,5L12,10.59L6.41,5L5,6.41L10.59,12L5,17.59L6.41,19L12,13.41L17.59,19L19,17.59L13.41,12L19,6.41Z",y="M22,24L16.75,19L17.38,21H4.5A2.5,2.5 0 0,1 2,18.5V3.5A2.5,2.5 0 0,1 4.5,1H19.5A2.5,2.5 0 0,1 22,3.5V24M12,6.8C9.32,6.8 7.44,7.95 7.44,7.95C8.47,7.03 10.27,6.5 10.27,6.5L10.1,6.33C8.41,6.36 6.88,7.53 6.88,7.53C5.16,11.12 5.27,14.22 5.27,14.22C6.67,16.03 8.75,15.9 8.75,15.9L9.46,15C8.21,14.73 7.42,13.62 7.42,13.62C7.42,13.62 9.3,14.9 12,14.9C14.7,14.9 16.58,13.62 16.58,13.62C16.58,13.62 15.79,14.73 14.54,15L15.25,15.9C15.25,15.9 17.33,16.03 18.73,14.22C18.73,14.22 18.84,11.12 17.12,7.53C17.12,7.53 15.59,6.36 13.9,6.33L13.73,6.5C13.73,6.5 15.53,7.03 16.56,7.95C16.56,7.95 14.68,6.8 12,6.8M9.93,10.59C10.58,10.59 11.11,11.16 11.1,11.86C11.1,12.55 10.58,13.13 9.93,13.13C9.29,13.13 8.77,12.55 8.77,11.86C8.77,11.16 9.28,10.59 9.93,10.59M14.1,10.59C14.75,10.59 15.27,11.16 15.27,11.86C15.27,12.55 14.75,13.13 14.1,13.13C13.46,13.13 12.94,12.55 12.94,11.86C12.94,11.16 13.45,10.59 14.1,10.59Z",w="M5,20H19V18H5M19,9H15V3H9V9H5L12,16L19,9Z",M="M12 2.04C6.5 2.04 2 6.53 2 12.06C2 17.06 5.66 21.21 10.44 21.96V14.96H7.9V12.06H10.44V9.85C10.44 7.34 11.93 5.96 14.22 5.96C15.31 5.96 16.45 6.15 16.45 6.15V8.62H15.19C13.95 8.62 13.56 9.39 13.56 10.18V12.06H16.34L15.89 14.96H13.56V21.96A10 10 0 0 0 22 12.06C22 6.53 17.5 2.04 12 2.04Z",_="M11,18H13V16H11V18M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20,12C20,16.41 16.41,20 12,20M12,6A4,4 0 0,0 8,10H10A2,2 0 0,1 12,8A2,2 0 0,1 14,10C14,12 11,11.75 11,15H13C13,12.75 16,12.5 16,10A4,4 0 0,0 12,6Z",S="M7.8,2H16.2C19.4,2 22,4.6 22,7.8V16.2A5.8,5.8 0 0,1 16.2,22H7.8C4.6,22 2,19.4 2,16.2V7.8A5.8,5.8 0 0,1 7.8,2M7.6,4A3.6,3.6 0 0,0 4,7.6V16.4C4,18.39 5.61,20 7.6,20H16.4A3.6,3.6 0 0,0 20,16.4V7.6C20,5.61 18.39,4 16.4,4H7.6M17.25,5.5A1.25,1.25 0 0,1 18.5,6.75A1.25,1.25 0 0,1 17.25,8A1.25,1.25 0 0,1 16,6.75A1.25,1.25 0 0,1 17.25,5.5M12,7A5,5 0 0,1 17,12A5,5 0 0,1 12,17A5,5 0 0,1 7,12A5,5 0 0,1 12,7M12,9A3,3 0 0,0 9,12A3,3 0 0,0 12,15A3,3 0 0,0 15,12A3,3 0 0,0 12,9Z",A="M19 3A2 2 0 0 1 21 5V19A2 2 0 0 1 19 21H5A2 2
110 0 1 3 19V5A2 2 0 0 1 5 3H19M18.5 18.5V13.2A3.26 3.26 0 0 0 15.24 9.94C14.39 9.94 13.4 10.46 12.92 11.24V10.13H10.13V18.5H12.92V13.57C12.92 12.8 13.54 12.17 14.31 12.17A1.4 1.4 0 0 1 15.71 13.57V18.5H18.5M6.88 8.56A1.68 1.68 0 0 0 8.56 6.88C8.56 5.95 7.81 5.19 6.88 5.19A1.69 1.69 0 0 0 5.19 6.88C5.19 7.81 5.95 8.56 6.88 8.56M8.27 18.5V10.13H5.5V18.5H8.27Z",x="M9.5,3A6.5,6.5 0 0,1 16,9.5C16,11.11 15.41,12.59 14.44,13.73L14.71,14H15.5L20.5,19L19,20.5L14,15.5V14.71L13.73,14.44C12.59,15.41 11.11,16 9.5,16A6.5,6.5 0 0,1 3,9.5A6.5,6.5 0 0,1 9.5,3M9.5,5C7,5 5,7 5,9.5C5,12 7,14 9.5,14C12,14 14,12 14,9.5C14,7 12,5 9.5,5Z",k="M3,6H21V8H3V6M3,11H21V13H3V11M3,16H21V18H3V16Z",E="M14,3V5H17.59L7.76,14.83L9.17,16.24L19,6.41V10H21V3M19,19H5V5H12V3H5C3.89,3 3,3.9 3,5V19A2,2 0 0,0 5,21H19A2,2 0 0,0 21,19V12H19V19Z",C="M21,16.5C21,16.88 20.79,17.21 20.47,17.38L12.57,21.82C12.41,21.94 12.21,22 12,22C11.79,22 11.59,21.94 11.43,21.82L3.53,17.38C3.21,17.21 3,16.88 3,16.5V7.5C3,7.12 3.21,6.79 3.53,6.62L11.43,2.18C11.59,2.06 11.79,2 12,2C12.21,2 12.41,2.06 12.57,2.18L20.47,6.62C20.79,6.79 21,7.12 21,7.5V16.5M12,4.15L10.11,5.22L16,8.61L17.96,7.5L12,4.15M6.04,7.5L12,10.85L13.96,9.75L8.08,6.35L6.04,7.5M5,15.91L11,19.29V12.58L5,9.21V15.91M19,15.91V9.21L13,12.58V19.29L19,15.91Z",R="M9.04,21.54C10,21.83 10.97,22 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2A10,10 0 0,0 2,12C2,16.25 4.67,19.9 8.44,21.34C8.35,20.56 8.26,19.27 8.44,18.38L9.59,13.44C9.59,13.44 9.3,12.86 9.3,11.94C9.3,10.56 10.16,9.53 11.14,9.53C12,9.53 12.4,10.16 12.4,10.97C12.4,11.83 11.83,13.06 11.54,14.24C11.37,15.22 12.06,16.08 13.06,16.08C14.84,16.08 16.22,14.18 16.22,11.5C16.22,9.1 14.5,7.46 12.03,7.46C9.21,7.46 7.55,9.56 7.55,11.77C7.55,12.63 7.83,13.5 8.29,14.07C8.38,14.13 8.38,14.21 8.35,14.36L8.06,15.45C8.06,15.62 7.95,15.68 7.78,15.56C6.5,15 5.76,13.18 5.76,11.71C5.76,8.55 8,5.68 12.32,5.68C15.76,5.68 18.44,8.15 18.44,11.43C18.44,14.87 16.31,17.63 13.26,17.63C12.29,17.63 11.34,17.11 11,16.5L10.33,18.87C10.1,19.73 9.47,20.88 9.04,21.57V21.54Z",I="M19,12C19,15.86 15.86,19 12,19C8.14,19 5,15.86 5,12C5,8.14 8.14,5 12,5C15.86,5 19,8.14 19,12Z",P="M14.5 15.41C14.58 15.5 14.58 15.69 14.5 15.8C13.77 16.5 12.41 16.56 12 16.56C11.61 16.56 10.25 16.5 9.54 15.8C9.44 15.69 9.44 15.5 9.54 15.41C9.65 15.31 9.82 15.31 9.92 15.41C10.38 15.87 11.33 16 12 16C12.69 16 13.66 15.87 14.1 15.41C14.21 15.31 14.38 15.31 14.5 15.41M10.75 13.04C10.75 12.47 10.28 12 9.71 12C9.14 12 8.67 12.47 8.67 13.04C8.67 13.61 9.14 14.09 9.71 14.08C10.28 14.08 10.75 13.61 10.75 13.04M14.29 12C13.72 12 13.25 12.5 13.25 13.05S13.72 14.09 14.29 14.09C14.86 14.09 15.33 13.61 15.33 13.05C15.33 12.5 14.86 12 14.29 12M22 12C22 17.5 17.5 22 12 22S2 17.5 2 12C2 6.5 6.5 2 12 2S22 6.5 22 12M18.67 12C18.67 11.19 18 10.54 17.22 10.54C16.82 10.54 16.46 10.7 16.2 10.95C15.2 10.23 13.83 9.77 12.3 9.71L12.97 6.58L15.14 7.05C15.16 7.6 15.62 8.04 16.18 8.04C16.75 8.04 17.22 7.57 17.22 7C17.22 6.43 16.75 5.96 16.18 5.96C15.77 5.96 15.41 6.2 15.25 6.55L12.82 6.03C12.75 6 12.68 6.03 12.63 6.07C12.57 6.11 12.54 6.17 12.53 6.24L11.79 9.72C10.24 9.77 8.84 10.23 7.82 10.96C7.56 10.71 7.2 10.56 6.81 10.56C6 10.56 5.35 11.21 5.35 12C5.35 12.61 5.71 13.11 6.21 13.34C6.19 13.5 6.18 13.62 6.18 13.78C6.18 16 8.79 17.85 12 17.85C15.23 17.85 17.85 16.03 17.85 13.78C17.85 13.64 17.84 13.5 17.81 13.34C18.31 13.11 18.67 12.6 18.67 12Z",T="M17.65,6.35C16.2,4.9 14.21,4 12,4A8,8 0 0,0 4,12A8,8 0 0,0 12,20C15.73,20 18.84,17.45 19.73,14H17.65C16.83,16.33 14.61,18 12,18A6,6 0 0,1 6,12A6,6 0 0,1 12,6C13.66,6 15.14,6.69 16.22,7.78L13,11H20V4L17.65,6.35Z",O="M21,11C21,16.55 17.16,21.74 12,23C6.84,21.74 3,16.55 3,11V5L12,1L21,5V11M12,21C15.75,20 19,15.54 19,11.22V6.3L12,3.18L5,6.3V11.22C5,15.54 8.25,20 12,21M10,17L6,13L7.41,11.59L10,14.17L16.59,7.58L18,9",j="M21.93 16.56C21.79 16.18 21.5 16 21.22 15.81C21.17 15.78 21.11 15.75 21.07 15.73C21 15.68 20.89 15.64 20.8 15.59C19.86 15.09 19.12 14.46 18.61 13.72C18.47 13.5 18.35 13.29 18.24 13.06C18.2 12.93 18.2 12.86 18.23 12.8C18.26 12.75 18.3 12.7 18.35 12.67C18.5 12.56 18.68 12.46 18.79 12.38C19 12.25 19.15 12.15 19.25 12.08C19.64 11.81 19.91 11.5 20.08 11.2C20.32 10.75 20.35 10.22 20.16 9.75C19.91 9.08
1119.27 8.66 18.5 8.66C18.34 8.66 18.18 8.68 18 8.71C18 8.72 17.94 8.73 17.9 8.74C17.9 8.28 17.89 7.8 17.85 7.32C17.71 5.64 17.12 4.76 16.5 4.06C16.11 3.62 15.65 3.24 15.14 2.95C14.21 2.42 13.15 2.15 12 2.15S9.8 2.42 8.87 2.95C8.35 3.24 7.89 3.62 7.5 4.06C6.88 4.76 6.3 5.64 6.15 7.32C6.11 7.8 6.1 8.28 6.11 8.74C6.06 8.73 6 8.72 6 8.71C5.82 8.68 5.66 8.66 5.5 8.66C4.73 8.66 4.09 9.08 3.84 9.75C3.65 10.22 3.68 10.75 3.92 11.2C4.09 11.5 4.36 11.81 4.75 12.08C4.85 12.15 5 12.25 5.21 12.39L5.63 12.66C5.69 12.7 5.73 12.75 5.77 12.8C5.8 12.87 5.8 12.94 5.75 13.07C5.65 13.3 5.53 13.5 5.39 13.72C4.89 14.45 4.18 15.07 3.27 15.56C2.78 15.82 2.28 16 2.07 16.56C1.91 17 2 17.5 2.42 17.91C2.57 18.06 2.74 18.19 2.93 18.29C3.33 18.5 3.75 18.68 4.18 18.79C4.27 18.82 4.36 18.85 4.43 18.91C4.58 19.03 4.56 19.23 4.76 19.5C4.86 19.66 5 19.79 5.13 19.89C5.54 20.18 6 20.19 6.5 20.21C6.94 20.23 7.44 20.25 8 20.44C8.26 20.5 8.5 20.67 8.79 20.85C9.5 21.27 10.42 21.85 12 21.85C13.57 21.85 14.5 21.27 15.22 20.84C15.5 20.67 15.75 20.5 16 20.44C16.55 20.25 17.06 20.23 17.5 20.21C18 20.2 18.46 20.18 18.87 19.89C19.04 19.77 19.18 19.61 19.29 19.43C19.43 19.19 19.43 19 19.56 18.91C19.63 18.86 19.71 18.82 19.8 18.8C20.24 18.68 20.66 18.5 21.06 18.29C21.27 18.18 21.45 18.04 21.6 17.87L21.61 17.87C22 17.46 22.08 17 21.93 16.56M20.53 17.31C19.67 17.78 19.1 17.73 18.66 18C18.5 18.12 18.45 18.28 18.42 18.44C18.41 18.5 18.4 18.58 18.39 18.64C18.37 18.78 18.34 18.9 18.24 18.97C17.9 19.2 16.91 18.95 15.63 19.37C14.57 19.72 13.9 20.73 12 20.73C10.1 20.73 9.45 19.73 8.37 19.37C7.1 18.95 6.1 19.2 5.77 18.97C5.5 18.78 5.72 18.26 5.34 18C4.9 17.73 4.33 17.78 3.5 17.31C3.19 17.15 3.14 17 3.18 16.93C3.22 16.84 3.34 16.77 3.42 16.73C5.07 15.94 6 14.91 6.47 14.1C6.91 13.38 7 12.83 7.03 12.75C7.06 12.54 7.09 12.38 6.86 12.17C6.64 11.96 5.66 11.36 5.39 11.17C4.93 10.85 4.74 10.54 4.88 10.15L4.88 10.15V10.15C5 9.88 5.23 9.78 5.5 9.78C5.58 9.78 5.66 9.79 5.74 9.81C6.24 9.91 6.72 10.16 7 10.23C7.03 10.24 7.06 10.24 7.1 10.24C7.19 10.24 7.24 10.21 7.27 10.15C7.28 10.11 7.29 10.06 7.29 10C7.25 9.46 7.18 8.41 7.26 7.42C7.3 7 7.37 6.64 7.46 6.33C7.66 5.65 8 5.2 8.34 4.79C8.59 4.5 9.75 3.27 12 3.27C13.85 3.27 14.96 4.11 15.44 4.56C15.54 4.66 15.62 4.74 15.66 4.79C16.04 5.23 16.38 5.71 16.58 6.47C16.65 6.74 16.71 7.06 16.74 7.42C16.82 8.4 16.75 9.46 16.71 10C16.71 10.04 16.71 10.08 16.72 10.11C16.73 10.2 16.79 10.24 16.9 10.24C16.94 10.24 16.97 10.24 17 10.23C17.28 10.16 17.76 9.91 18.26 9.8C18.34 9.79 18.42 9.78 18.5 9.78C18.75 9.78 19 9.87 19.1 10.1L19.11 10.14L19.12 10.14L19.12 10.15C19.27 10.53 19.07 10.85 18.62 11.16C18.35 11.35 17.36 11.96 17.14 12.16C16.91 12.38 16.94 12.54 16.97 12.75C17 12.85 17.18 13.8 18.08 14.86C18.63 15.5 19.42 16.17 20.58 16.73C20.65 16.76 20.74 16.81 20.79 16.87C20.82 16.92 20.84 16.96 20.83 17C20.82 17.1 20.73 17.2 20.53 17.31Z",U="M18.36 9L18.96 12H5.04L5.64 9H18.36M20 4H4V6H20V4M20 7H4L3 12V14H4V20H14V14H18V20H20V14H21V12L20 7M6 18V14H12V18H6Z",B="M18 18.5C18.83 18.5 19.5 17.83 19.5 17C19.5 16.17 18.83 15.5 18 15.5C17.17 15.5 16.5 16.17 16.5 17C16.5 17.83 17.17 18.5 18 18.5M19.5 9.5H17V12H21.46L19.5 9.5M6 18.5C6.83 18.5 7.5 17.83 7.5 17C7.5 16.17 6.83 15.5 6 15.5C5.17 15.5 4.5 16.17 4.5 17C4.5 17.83 5.17 18.5 6 18.5M20 8L23 12V17H21C21 18.66 19.66 20 18 20C16.34 20 15 18.66 15 17H9C9 18.66 7.66 20 6 20C4.34 20 3 18.66 3 17H1V6C1 4.89 1.89 4 3 4H17V8H20M3 6V15H3.76C4.31 14.39 5.11 14 6 14C6.89 14 7.69 14.39 8.24 15H15V6H3M5 10.5L6.5 9L8 10.5L11.5 7L13 8.5L8 13.5L5 10.5Z",D="M3,17V19H9V17H3M3,5V7H13V5H3M13,21V19H21V17H13V15H11V21H13M7,9V11H3V13H7V15H9V9H7M21,13V11H11V13H21M15,9H17V7H21V5H17V3H15V9Z",F="M22.46,6C21.69,6.35 20.86,6.58 20,6.69C20.88,6.16 21.56,5.32 21.88,4.31C21.05,4.81 20.13,5.16 19.16,5.36C18.37,4.5 17.26,4 16,4C13.65,4 11.73,5.92 11.73,8.29C11.73,8.63 11.77,8.96 11.84,9.27C8.28,9.09 5.11,7.38 3,4.79C2.63,5.42 2.42,6.16 2.42,6.94C2.42,8.43 3.17,9.75 4.33,10.5C3.62,10.5 2.96,10.3 2.38,10C2.38,10 2.38,10 2.38,10.03C2.38,12.11 3.86,13.85 5.82,14.24C5.46,14.34 5.08,14.39 4.69,14.39C4.42,14.39 4.15,14.36 3.89,14.31C4.43,16 6,17.26 7.89,17.29C6.43,18.45 4.58,19.13 2.56,19.13C2.22,19.13 1.88,19.11 1.54,19.07C3.44,20.29 5.7,21 8.12,21C16,21 20.33,14.46 20.33,8.79C20.33,8.6 20.33,8.42 20.32,8.23C21.16,7.63 21.88,6.87 22.46,6Z",L="M22,7.42C21.91,9.37 20.55,12.04 17.92,15.44C15.2,19 12.9,20.75 11,20.75C9.85,20.75 8.86,19.67 8.05,17.5C7.5,15.54 7,13.56 6.44,11.58C5.84,9.42 5.2,8.34 4.5,8.34C4.36,8.34 3.84,8.66 2.94,9.29L2,8.07C3,7.2 3.96,6.33 4.92,5.46C6.24,4.32 7.23,3.72 7.88,3.66C9.44,3.5 10.4,4.58 10.76,6.86C11.15,9.33 11.42,10.86 11.57,11.46C12,13.5 12.5,14.5 13.05,14.5C13.47,14.5 14.1,13.86 14.94,12.53C15.78,11.21 16.23,10.2 16.29,9.5C16.41,8.36 15.96,7.79 14.94,7.79C14.46,7.79 13.97,7.9 13.46,8.12C14.44,4.89 16.32,3.32 19.09,3.41C21.15,3.47 22.12,4.81 22,7.42Z",N="M10,15L15.19,12L10,9V15M21.56,7.17C21.69,7.64 21.78,8.27 21.84,9.07C21.91,9.87 21.94,10.56 21.94,11.16L22,12C22,14.19 21.84,15.8 21.56,16.83C21.31,17.73 20.73,18.31 19.83,18.56C19.36,18.69 18.5,18.78 17.18,18.84C15.88,18.91 14.69,18.94 13.59,18.94L12,19C7.81,19 5.2,18.84 4.17,18.56C3.27,18.31 2.69,17.73 2.44,16.83C2.31,16.36 2.22,15.73 2.16,14.93C2.09,14.13 2.06,13.44 2.06,12.84L2,12C2,9.8
111 2.16,8.2 2.44,7.17C2.69,6.27 3.27,5.69 4.17,5.44C4.64,5.31 5.5,5.22 6.82,5.16C8.12,5.09 9.31,5.06 10.41,5.06L12,5C16.19,5 18.8,5.16 19.83,5.44C20.73,5.69 21.31,6.27 21.56,7.17Z"},,,,,,,,function(t,e,r){"use strict";r.d(e,"b",(function(){return n})),r.d(e,"a",(function(){return h}));var n=function(){function t(t){this.statusCode=t.statusCode,this.headers=t.headers||{},this.body=t.body}return t.isInstance=function(t){if(!t)return!1;var e=t;return"number"==typeof e.statusCode&&"object"==typeof e.headers},t}(),o=r(0),h=function(){function t(t){this.method=t.method||"GET",this.hostname=t.hostname||"localhost",this.port=t.port,this.query=t.query||{},this.headers=t.headers||{},this.body=t.body,this.protocol=t.protocol?":"!==t.protocol.substr(-1)?t.protocol+":":t.protocol:"https:",this.path=t.path?"/"!==t.path.charAt(0)?"/"+t.path:t.path:"/"}return t.isInstance=function(t){if(!t)return!1;var e=t;return"method"in e&&"protocol"in e&&"hostname"in e&&"path"in e&&"object"==typeof e.query&&"object"==typeof e.headers},t.prototype.clone=function(){var e,r=new t(Object(o.__assign)(Object(o.__assign)({},this),{headers:Object(o.__assign)({},this.headers)}));return r.query&&(r.query=(e=r.query,Object.keys(e).reduce((function(t,r){var n,param=e[r];return Object(o.__assign)(Object(o.__assign)({},t),((n={})[r]=Array.isArray(param)?Object(o.__spread)(param):param,n))}),{}))),r},t}()},,,,,function(t,e,r){var n;t.exports=(n=n||function(t,e){var r=Object.create||function(){function t(){}return function(e){var r;return t.prototype=e,r=new t,t.prototype=null,r}}(),n={},o=n.lib={},h=o.Base={extend:function(t){var e=r(this);return t&&e.mixIn(t),e.hasOwnProperty("init")&&this.init!==e.init||(e.init=function(){e.$super.init.apply(this,arguments)}),e.init.prototype=e,e.$super=this,e},create:function(){var t=this.extend();return t.init.apply(t,arguments),t},init:function(){},mixIn:function(t){for(var e in t)t.hasOwnProperty(e)&&(this[e]=t[e]);t.hasOwnProperty("toString")&&(this.toString=t.toString)},clone:function(){return this.init.prototype.extend(this)}},c=o.WordArray=h.extend({init:function(t,e){t=this.words=t||[],this.sigBytes=null!=e?e:4*t.length},toString:function(t){return(t||l).stringify(this)},concat:function(t){var e=this.words,r=t.words,n=this.sigBytes,o=t.sigBytes;if(this.clamp(),n%4)for(var i=0;i<o;i++){var h=r[i>>>2]>>>24-i%4*8&255;e[n+i>>>2]|=h<<24-(n+i)%4*8}else for(i=0;i<o;i+=4)e[n+i>>>2]=r[i>>>2];return this.sigBytes+=o,this},clamp:function(){var e=this.words,r=this.sigBytes;e[r>>>2]&=4294967295<<32-r%4*8,e.length=t.ceil(r/4)},clone:function(){var t=h.clone.call(this);return t.words=this.words.slice(0),t},random:function(e){for(var r,n=[],o=function(e){e=e;var r=987654321,mask=4294967295;return function(){var n=((r=36969*(65535&r)+(r>>16)&mask)<<16)+(e=18e3*(65535&e)+(e>>16)&mask)&mask;return n/=4294967296,(n+=.5)*(t.random()>.5?1:-1)}},i=0;i<e;i+=4){var h=o(4294967296*(r||t.random()));r=987654071*h(),n.push(4294967296*h()|0)}return new c.init(n,e)}}),f=n.enc={},l=f.Hex={stringify:function(t){for(var e=t.words,r=t.sigBytes,n=[],i=0;i<r;i++){var o=e[i>>>2]>>>24-i%4*8&255;n.push((o>>>4).toString(16)),n.push((15&o).toString(16))}return n.join("")},parse:function(t){for(var e=t.length,r=[],i=0;i<e;i+=2)r[i>>>3]|=parseInt(t.substr(i,2),16)<<24-i%8*4;return new c.init(r,e/2)}},d=f.Latin1={stringify:function(t){for(var e=t.words,r=t.sigBytes,n=[],i=0;i<r;i++){var o=e[i>>>2]>>>24-i%4*8&255;n.push(String.fromCharCode(o))}return n.join("")},parse:function(t){for(var e=t.length,r=[],i=0;i<e;i++)r[i>>>2]|=(255&t.charCodeAt(i))<<24-i%4*8;return new c.init(r,e)}},m=f.Utf8={stringify:function(t){try{return decodeURIComponent(escape(d.stringify(t)))}catch(t){throw new Error("Malformed UTF-8 data")}},parse:function(t){return d.parse(unescape(encodeURIComponent(t)))}},v=o.BufferedBlockAlgorithm=h.extend({reset:function(){this._data=new c.init,this._nDataBytes=0},_append:function(data){"string"==typeof data&&(data=m.parse(data)),this._data.concat(data),this._nDataBytes+=data.sigBytes},_process:function(e){var data=this._data,r=data.words,n=data.sigBytes,o=this.blockSize,h=n/(4*o),f=(h=e?t.ceil(h):t.max((0|h)-this._minBufferSize,0))*o,l=t.min(4*f,n);if(f){for(var d=0;d<f;d+=o)this._doProcessBlock(r,d);var m=r.splice(0,f);data.sigBytes-=l}return new c.init(m,l)},clone:function(){var t=h.clone.call(this);return t._data=this._data.clone(),t},_minBufferSize:0}),y=(o.Hasher=v.extend({cfg:h.extend(),init:function(t){this.cfg=this.cfg.extend(t),this.reset()},reset:function(){v.reset.call(this),this._doReset()},update:function(t){return this._append(t),this._process(),this},finalize:function(t){return t&&this._append(t),this._doFinalize()},blockSize:16,_createHelper:function(t){return function(e,r){return new t.init(r).finalize(e)}},_createHmacHelper:function(t){return function(e,r){return new y.HMAC.init(t,r).finalize(e)}}}),n.algo={});return n}(Math),n)},,,,,,,,,,,,function(t,e){function r(t,e){if(!t)throw new Error(e||"Assertion failed")}t.exports=r,r.equal=function(t,e,r){if(t!=e)throw new Error(r||"Assertion failed: "+t+" != "+e)}},function(t,e,r){"use strict";var n=e,o=r(46),h=r(40),c=r(265);
11n.assert=h,n.toArray=c.toArray,n.zero2=c.zero2,n.toHex=c.toHex,n.encode=c.encode,n.getNAF=function(t,e,r){var n=new Array(Math.max(t.bitLength(),r)+1);n.fill(0);for(var o=1<<e+1,h=t.clone(),i=0;i<n.length;i++){var c,f=h.andln(o-1);h.isOdd()?(c=f>(o>>1)-1?(o>>1)-f:f,h.isubn(c)):c=0,n[i]=c,h.iushrn(1)}return n},n.getJSF=function(t,e){var r=[[],[]];t=t.clone(),e=e.clone();for(var n=0,o=0;t.cmpn(-n)>0||e.cmpn(-o)>0;){var h,c,f,l=t.andln(3)+n&3,d=e.andln(3)+o&3;if(3===l&&(l=-1),3===d&&(d=-1),0==(1&l))h=0;else h=3!==(f=t.andln(7)+n&7)&&5!==f||2!==d?l:-l;if(r[0].push(h),0==(1&d))c=0;else c=3!==(f=e.andln(7)+o&7)&&5!==f||2!==l?d:-d;r[1].push(c),2*n===h+1&&(n=1-n),2*o===c+1&&(o=1-o),t.iushrn(1),e.iushrn(1)}return r},n.cachedProperty=function(t,e,r){var n="_"+e;t.prototype[e]=function(){return void 0!==this[n]?this[n]:this[n]=r.call(this)}},n.parseBytes=function(t){return"string"==typeof t?n.toArray(t,"hex"):t},n.intFromLE=function(t){return new o(t,"hex","le")}},function(t,e,r){"use strict";var n=r(40),o=r(6);function h(t,i){return 55296==(64512&t.charCodeAt(i))&&(!(i<0||i+1>=t.length)&&56320==(64512&t.charCodeAt(i+1)))}function c(t){return(t>>>24|t>>>8&65280|t<<8&16711680|(255&t)<<24)>>>0}function f(t){return 1===t.length?"0"+t:t}function l(t){return 7===t.length?"0"+t:6===t.length?"00"+t:5===t.length?"000"+t:4===t.length?"0000"+t:3===t.length?"00000"+t:2===t.length?"000000"+t:1===t.length?"0000000"+t:t}e.inherits=o,e.toArray=function(t,e){if(Array.isArray(t))return t.slice();if(!t)return[];var r=[];if("string"==typeof t)if(e){if("hex"===e)for((t=t.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(t="0"+t),i=0;i<t.length;i+=2)r.push(parseInt(t[i]+t[i+1],16))}else for(var p=0,i=0;i<t.length;i++){var n=t.charCodeAt(i);n<128?r[p++]=n:n<2048?(r[p++]=n>>6|192,r[p++]=63&n|128):h(t,i)?(n=65536+((1023&n)<<10)+(1023&t.charCodeAt(++i)),r[p++]=n>>18|240,r[p++]=n>>12&63|128,r[p++]=n>>6&63|128,r[p++]=63&n|128):(r[p++]=n>>12|224,r[p++]=n>>6&63|128,r[p++]=63&n|128)}else for(i=0;i<t.length;i++)r[i]=0|t[i];return r},e.toHex=function(t){for(var e="",i=0;i<t.length;i++)e+=f(t[i].toString(16));return e},e.htonl=c,e.toHex32=function(t,e){for(var r="",i=0;i<t.length;i++){var n=t[i];"little"===e&&(n=c(n)),r+=l(n.toString(16))}return r},e.zero2=f,e.zero8=l,e.join32=function(t,e,r,o){var h=r-e;n(h%4==0);for(var c=new Array(h/4),i=0,f=e;i<c.length;i++,f+=4){var l;l="big"===o?t[f]<<24|t[f+1]<<16|t[f+2]<<8|t[f+3]:t[f+3]<<24|t[f+2]<<16|t[f+1]<<8|t[f],c[i]=l>>>0}return c},e.split32=function(t,e){for(var r=new Array(4*t.length),i=0,n=0;i<t.length;i++,n+=4){var o=t[i];"big"===e?(r[n]=o>>>24,r[n+1]=o>>>16&255,r[n+2]=o>>>8&255,r[n+3]=255&o):(r[n+3]=o>>>24,r[n+2]=o>>>16&255,r[n+1]=o>>>8&255,r[n]=255&o)}return r},e.rotr32=function(t,b){return t>>>b|t<<32-b},e.rotl32=function(t,b){return t<<b|t>>>32-b},e.sum32=function(a,b){return a+b>>>0},e.sum32_3=function(a,b,t){return a+b+t>>>0},e.sum32_4=function(a,b,t,e){return a+b+t+e>>>0},e.sum32_5=function(a,b,t,e,r){return a+b+t+e+r>>>0},e.sum64=function(t,e,r,n){var o=t[e],h=n+t[e+1]>>>0,c=(h<n?1:0)+r+o;t[e]=c>>>0,t[e+1]=h},e.sum64_hi=function(t,e,r,n){return(e+n>>>0<e?1:0)+t+r>>>0},e.sum64_lo=function(t,e,r,n){return e+n>>>0},e.sum64_4_hi=function(t,e,r,n,o,h,c,dl){var f=0,l=e;return f+=(l=l+n>>>0)<e?1:0,f+=(l=l+h>>>0)<h?1:0,t+r+o+c+(f+=(l=l+dl>>>0)<dl?1:0)>>>0},e.sum64_4_lo=function(t,e,r,n,o,h,c,dl){return e+n+h+dl>>>0},e.sum64_5_hi=function(t,e,r,n,o,h,c,dl,f,l){var d=0,m=e;return d+=(m=m+n>>>0)<e?1:0,d+=(m=m+h>>>0)<h?1:0,d+=(m=m+dl>>>0)<dl?1:0,t+r+o+c+f+(d+=(m=m+l>>>0)<l?1:0)>>>0},e.sum64_5_lo=function(t,e,r,n,o,h,c,dl,f,l){return e+n+h+dl+l>>>0},e.rotr64_hi=function(t,e,r){return(e<<32-r|t>>>r)>>>0},e.rotr64_lo=function(t,e,r){return(t<<32-r|e>>>r)>>>0},e.shr64_hi=function(t,e,r){return t>>>r},e.shr64_lo=function(t,e,r){return(t<<32-r|e>>>r)>>>0}},function(t,e,r){"use strict";(function(t){r.d(e,"c",(function(){return m})),r.d(e,"b",(function(){return y})),r.d(e,"a",(function(){return S}));var n=[{type:"text/plain",ext:"txt"},{type:"text/html",ext:"html"},{type:"text/javascript",ext:"js"},{type:"text/css",ext:"css"},{type:"text/csv",ext:"csv"},{type:"text/yaml",ext:"yml"},{type:"text/yaml",ext:"yaml"},{type:"text/calendar",ext:"ics"},{type:"text/calendar",ext:"ical"},{type:"image/apng",ext:"apng"},{type:"image/bmp",ext:"bmp"},{type:"image/gif",ext:"gif"},{type:"image/x-icon",ext:"ico"},{type:"image/x-icon",ext:"cur"},{type:"image/jpeg",ext:"jpg"},{type:"image/jpeg",ext:"jpeg"},{type:"image/jpeg",ext:"jfif"},{type:"image/jpeg",ext:"pjp"},{type:"image/jpeg",ext:"pjpeg"},{type:"image/png",ext:"png"},{type:"image/svg+xml",ext:"svg"},{type:"image/tiff",ext:"tif"},{type:"image/tiff",ext:"tiff"},{type:"image/webp",ext:"webp"},{type:"application/json",ext:"json"},{type:"application/xml",ext:"xml"},{type:"application/x-sh",ext:"sh"},{type:"application/zip",ext:"zip"},{type:"application/x-rar-compressed",ext:"rar"},{type:"application/x-tar",ext:"tar"},{type:"application/x-bzip",ext:"bz"},{type:"application/x-bzip2",ext:"bz2"},{type:"application/pdf",ext:"pdf"},{type:"application/java-archive",ext:"jar"},{type:"application/msword",ext:"doc"},{type:"application/vnd.ms-excel",ext:"xls"},{type:"application/vnd.ms-excel",ext:"xlsx"},{type:"message/rfc822",ext:"eml"}],o=function(t){return void 0===t&&(t={}),0===Object.keys(t).length},h=function(t,e,r){if(!t||!t.sort)return!1;var n=r&&"desc"===r?-1:1;return t.sort((function(a,b){var t=a[e],r=b[e];return void 0===r?void 0===t?0:1*n:void 0===t||t<r?-1*n:t>r?1*n:0})),!0},c=function(t,e){var r=Object.assign({},t);return e&&("string"==typeof e?delete r[e]:e.forEach((function(t){delete r[t]}))),r},f=function(t,e){void 0===e&&(e="application/octet-stream");var r=t.toLowerCase(),o=n.filter((function(t){return r.endsWith("."+t.ext)}));return o.length>0?o[0].type:e},l=function(t){var e=t.toLowerCase();return!!e.startsWith("text/")||("application/json"===e||"application/xml"===e||"application/sh"===e)},d=function(){for(var t="",e="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ",i=32;i>0;i-=1)t+=e[Math.floor(Math.random()*e.length)];return t},m=function(t){if(t.isResolved)return t;var e=!0,r=!1,n=!1,o=t.then((function(data){return n=!0,e=!1,data}),(function(t){throw r=!0,e=!1,t}));return o.isFullfilled=function(){return n},o.isPending=function(){return e},o.isRejected=function(){return r},o},v=function(){if("undefined"==typeof self)return!1;var t=self;return void 0!==t.WorkerGlobalScope&&self instanceof t.WorkerGlobalScope},y=function(){return{isBrowser:"undefined"!=typeof window&&void 0!==window.document,isNode:void 0!==t&&null!=t.versions&&null!=t.versions.node}},w=function(t,e,r){if(void 0===e&&(e=[]),void 0===r&&(r=[]),!_(t))return t;var n={};for(var o in t){if(t.hasOwnProperty(o))n[e.includes(o)?o:o[0].toLowerCase()+o.slice(1)]=r.includes(o)?t[o]:w(t[o],e,r)}return n},M=function(t,e,r){if(void 0===e&&(e=[]),void 0===r&&(r=[]),!_(t))return t;var n={};for(var o in t){if(t.hasOwnProperty(o))n[e.includes(o)?o:o[0].toUpperCase()+o.slice(1)]=r.includes(o)?t[o]:M(t[o],e,r)}return n},_=function(t){return!(!(t instanceof Object)||t instanceof Array||t instanceof Function||t instanceof Number||t instanceof String||t instanceof Boolean)},S=function(){function t(){}return t.isEmpty=o,t.sortByField=h,t.objectLessAttributes=c,t.filenameToContentType=f,t.isTextFile=l,t.generateRandomString=d,t.makeQuerablePromise=m,t.isWebWorker=v,t.browserOrNode=y,t.transferKeyToLowerCase=w,t.transferKeyToUpperCase=M,t.isStrictObject=_,t}()}).call(this,r(33))},function(t,e,r){"use strict";var n=r(492),o=r(493);function h(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}e.parse=k,e.resolve=function(source,t){return k(source,!1,!0).resolve(t)},e.resolveObject=function(source,t){return source?k(source,!1,!0).resolveObject(t):t},e.format=function(t){o.isString(t)&&(t=k(t));return t instanceof h?t.format():h.prototype.format.call(t)},e.Url=h;
vendor: 11,522 bytes, line 11
11var c=/^([a-z0-9.+-]+:)/i,f=/:[0-9]*$/,l=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,d=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n","\t"]),m=["'"].concat(d),v=["%","/","?",";","#"].concat(m),y=["/","?","#"],w=/^[+a-z0-9A-Z_-]{0,63}$/,M=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,_={javascript:!0,"javascript:":!0},S={javascript:!0,"javascript:":!0},A={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},x=r(494);function k(t,e,r){if(t&&o.isObject(t)&&t instanceof h)return t;var u=new h;return u.parse(t,e,r),u}h.prototype.parse=function(t,e,r){if(!o.isString(t))throw new TypeError("Parameter 'url' must be a string, not "+typeof t);var h=t.indexOf("?"),f=-1!==h&&h<t.indexOf("#")?"?":"#",d=t.split(f);d[0]=d[0].replace(/\\/g,"/");var k=t=d.join(f);if(k=k.trim(),!r&&1===t.split("#").length){var E=l.exec(k);if(E)return this.path=k,this.href=k,this.pathname=E[1],E[2]?(this.search=E[2],this.query=e?x.parse(this.search.substr(1)):this.search.substr(1)):e&&(this.search="",this.query={}),this}var C=c.exec(k);if(C){var R=(C=C[0]).toLowerCase();this.protocol=R,k=k.substr(C.length)}if(r||C||k.match(/^\/\/[^@\/]+@[^@\/]+/)){var I="//"===k.substr(0,2);!I||C&&S[C]||(k=k.substr(2),this.slashes=!0)}if(!S[C]&&(I||C&&!A[C])){for(var P,T,O=-1,i=0;i<y.length;i++){-1!==(j=k.indexOf(y[i]))&&(-1===O||j<O)&&(O=j)}-1!==(T=-1===O?k.lastIndexOf("@"):k.lastIndexOf("@",O))&&(P=k.slice(0,T),k=k.slice(T+1),this.auth=decodeURIComponent(P)),O=-1;for(i=0;i<v.length;i++){var j;-1!==(j=k.indexOf(v[i]))&&(-1===O||j<O)&&(O=j)}-1===O&&(O=k.length),this.host=k.slice(0,O),k=k.slice(O),this.parseHost(),this.hostname=this.hostname||"";var U="["===this.hostname[0]&&"]"===this.hostname[this.hostname.length-1];if(!U)for(var B=this.hostname.split(/\./),D=(i=0,B.length);i<D;i++){var F=B[i];if(F&&!F.match(w)){for(var L="",N=0,H=F.length;N<H;N++)F.charCodeAt(N)>127?L+="x":L+=F[N];if(!L.match(w)){var z=B.slice(0,i),V=B.slice(i+1),K=F.match(M);K&&(z.push(K[1]),V.unshift(K[2])),V.length&&(k="/"+V.join(".")+k),this.hostname=z.join(".");break}}}this.hostname.length>255?this.hostname="":this.hostname=this.hostname.toLowerCase(),U||(this.hostname=n.toASCII(this.hostname));var p=this.port?":"+this.port:"",Z=this.hostname||"";this.host=Z+p,this.href+=this.host,U&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==k[0]&&(k="/"+k))}if(!_[R])for(i=0,D=m.length;i<D;i++){var W=m[i];if(-1!==k.indexOf(W)){var G=encodeURIComponent(W);G===W&&(G=escape(W)),k=k.split(W).join(G)}}var J=k.indexOf("#");-1!==J&&(this.hash=k.substr(J),k=k.slice(0,J));var Y=k.indexOf("?");if(-1!==Y?(this.search=k.substr(Y),this.query=k.substr(Y+1),e&&(this.query=x.parse(this.query)),k=k.slice(0,Y)):e&&(this.search="",this.query={}),k&&(this.pathname=k),A[R]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){p=this.pathname||"";var s=this.search||"";this.path=p+s}return this.href=this.format(),this},h.prototype.format=function(){var t=this.auth||"";t&&(t=(t=encodeURIComponent(t)).replace(/%3A/i,":"),t+="@");var e=this.protocol||"",r=this.pathname||"",n=this.hash||"",h=!1,c="";this.host?h=t+this.host:this.hostname&&(h=t+(-1===this.hostname.indexOf(":")?this.hostname:"["+this.hostname+"]"),this.port&&(h+=":"+this.port)),this.query&&o.isObject(this.query)&&Object.keys(this.query).length&&(c=x.stringify(this.query));var f=this.search||c&&"?"+c||"";return e&&":"!==e.substr(-1)&&(e+=":"),this.slashes||(!e||A[e])&&!1!==h?(h="//"+(h||""),r&&"/"!==r.charAt(0)&&(r="/"+r)):h||(h=""),n&&"#"!==n.charAt(0)&&(n="#"+n),f&&"?"!==f.charAt(0)&&(f="?"+f),e+h+(r=r.replace(/[?#]/g,(function(t){return encodeURIComponent(t)})))+(f=f.replace("#","%23"))+n},h.prototype.resolve=function(t){return this.resolveObject(k(t,!1,!0)).format()},h.prototype.resolveObject=function(t){if(o.isString(t)){var e=new h;e.parse(t,!1,!0),t=e}for(var r=new h,n=Object.keys(this),c=0;c<n.length;c++){var f=n[c];r[f]=this[f]}if(r.hash=t.hash,""===t.href)return r.href=r.format(),r;if(t.slashes&&!t.protocol){for(var l=Object.keys(t),d=0;d<l.length;d++){var m=l[d];"protocol"!==m&&(r[m]=t[m])}return A[r.protocol]&&r.hostname&&!r.pathname&&(r.path=r.pathname="/"),r.href=r.format(),r}if(t.protocol&&t.protocol!==r.protocol){if(!A[t.protocol]){for(var v=Object.keys(t),y=0;y<v.length;y++){var w=v[y];r[w]=t[w]}return r.href=r.format(),r}if(r.protocol=t.protocol,t.host||S[t.protocol])r.pathname=t.pathname;else{for(var M=(t.pathname||"").split("/");M.length&&!(t.host=M.shift()););t.host||(t.host=""),t.hostname||(t.hostname=""),""!==M[0]&&M.unshift(""),M.length<2&&M.unshift(""),r.pathname=M.join("/")}if(r.search=t.search,r.query=t.query,r.host=t.host||"",r.auth=t.auth,r.hostname=t.hostname||t.host,r.port=t.port,r.pathname||r.search){var p=r.pathname||"",s=r.search||"";r.path=p+s}return r.slashes=r.slashes||t.slashes,r.href=r.format(),r}var _=r.pathname&&"/"===r.pathname.charAt(0),x=t.host||t.pathname&&"/"===t.pathname.charAt(0),k=x||_||r.host&&t.pathname,E=k,C=r.pathname&&r.pathname.split("/")||[],R=(M=t.pathname&&t.pathname.split("/")||[],r.protocol&&!A[r.protocol]);if(R&&(r.hostname="",r.port=null,r.host&&(""===C[0]?C[0]=r.host:C.unshift(r.host)),r.host="",t.protocol&&(t.hostname=null,t.port=null,t.host&&(""===M[0]?M[0]=t.host:M.unshift(t.host)),t.host=null),k=k&&(""===M[0]||""===C[0])),x)r.host=t.host||""===t.host?t.host:r.host,r.hostname=t.hostname||""===t.hostname?t.hostname:r.hostname,r.search=t.search,r.query=t.query,C=M;else if(M.length)C||(C=[]),C.pop(),C=C.concat(M),r.search=t.search,r.query=t.query;else if(!o.isNullOrUndefined(t.search)){if(R)r.hostname=r.host=C.shift(),(O=!!(r.host&&r.host.indexOf("@")>0)&&r.host.split("@"))&&(r.auth=O.shift(),r.host=r.hostname=O.shift());return r.search=t.search,r.query=t.query,o.isNull(r.pathname)&&o.isNull(r.search)||(r.path=(r.pathname?r.pathname:"")+(r.search?r.search:"")),r.href=r.format(),r}if(!C.length)return r.pathname=null,r.search?r.path="/"+r.search:r.path=null,r.href=r.format(),r;for(var I=C.slice(-1)[0],P=(r.host||t.host||C.length>1)&&("."===I||".."===I)||""===I,T=0,i=C.length;i>=0;i--)"."===(I=C[i])?C.splice(i,1):".."===I?(C.splice(i,1),T++):T&&(C.splice(i,1),T--);if(!k&&!E)for(;T--;T)C.unshift("..");!k||""===C[0]||C[0]&&"/"===C[0].charAt(0)||C.unshift(""),P&&"/"!==C.join("/").substr(-1)&&C.push("");var O,j=""===C[0]||C[0]&&"/"===C[0].charAt(0);R&&(r.hostname=r.host=j?"":C.length?C.shift():"",(O=!!(r.host&&r.host.indexOf("@")>0)&&r.host.split("@"))&&(r.auth=O.shift(),r.host=r.hostname=O.shift()));return(k=k||r.host&&C.length)&&!j&&C.unshift(""),C.length?r.pathname=C.join("/"):(r.pathname=null,r.path=null),o.isNull(r.pathname)&&o.isNull(r.search)||(r.path=(r.pathname?r.pathname:"")+(r.search?r.search:"")),r.auth=t.auth||r.auth,r.slashes=r.slashes||t.slashes,r.href=r.format(),r},h.prototype.parseHost=function(){var t=this.host,e=f.exec(t);e&&(":"!==(e=e[0])&&(this.port=e.substr(1)),t=t.substr(0,t.length-e.length)),t&&(this.hostname=t)}},,function(t,e,r){(function(t){!function(t,e){"use strict";function n(t,e){if(!t)throw new Error(e||"Assertion failed")}function o(t,e){t.super_=e;var r=function(){};r.prototype=e.prototype,t.prototype=new r,t.prototype.constructor=t}function h(t,base,e){if(h.isBN(t))return t;this.negative=0,this.words=null,this.length=0,this.red=null,null!==t&&("le"!==base&&"be"!==base||(e=base,base=10),this._init(t||0,base||10,e||"be"))}var c;"object"==typeof t?t.exports=h:e.BN=h,h.BN=h,h.wordSize=26;try{c=r(454).Buffer}catch(t){}function f(t,e,r){for(var n=0,o=Math.min(t.length,r),i=e;i<o;i++){var h=t.charCodeAt(i)-48;n<<=4,n|=h>=49&&h<=54?h-49+10:h>=17&&h<=22?h-17+10:15&h}return n}function l(t,e,r,n){for(var o=0,h=Math.min(t.length,r),i=e;i<h;i++){var c=t.charCodeAt(i)-48;o*=n,o+=c>=49?c-49+10:c>=17?c-17+10:c}return o}h.isBN=function(t){return t instanceof h||null!==t&&"object"==typeof t&&t.constructor.wordSize===h.wordSize&&Array.isArray(t.words)},h.max=function(t,e){return t.cmp(e)>0?t:e},h.min=function(t,e){return t.cmp(e)<0?t:e},h.prototype._init=function(t,base,e){if("number"==typeof t)return this._initNumber(t,base,e);if("object"==typeof t)return this._initArray(t,base,e);"hex"===base&&(base=16),n(base===(0|base)&&base>=2&&base<=36);var r=0;"-"===(t=t.toString().replace(/\s+/g,""))[0]&&r++,16===base?this._parseHex(t,r):this._parseBase(t,base,r),"-"===t[0]&&(this.negative=1),this.strip(),"le"===e&&this._initArray(this.toArray(),base,e)},h.prototype._initNumber=function(t,base,e){t<0&&(this.negative=1,t=-t),t<67108864?(this.words=[67108863&t],this.length=1):t<4503599627370496?(this.words=[67108863&t,t/67108864&67108863],this.length=2):(n(t<9007199254740992),this.words=[67108863&t,t/67108864&67108863,1],this.length=3),"le"===e&&this._initArray(this.toArray(),base,e)},h.prototype._initArray=function(t,base,e){if(n("number"==typeof t.length),t.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(t.length/3),this.words=new Array(this.length);for(var i=0;i<this.length;i++)this.words[i]=0;var r,o,h=0;if("be"===e)for(i=t.length-1,r=0;i>=0;i-=3)o=t[i]|t[i-1]<<8|t[i-2]<<16,this.words[r]|=o<<h&67108863,this.words[r+1]=o>>>26-h&67108863,(h+=24)>=26&&(h-=26,r++);else if("le"===e)for(i=0,r=0;i<t.length;i+=3)o=t[i]|t[i+1]<<8|t[i+2]<<16,this.words[r]|=o<<h&67108863,this.words[r+1]=o>>>26-h&67108863,(h+=24)>=26&&(h-=26,r++);return this.strip()},h.prototype._parseHex=function(t,e){this.length=Math.ceil((t.length-e)/6),this.words=new Array(this.length);for(var i=0;i<this.length;i++)this.words[i]=0;var r,n,o=0;for(i=t.length-6,r=0;i>=e;i-=6)n=f(t,i,i+6),this.words[r]|=n<<o&67108863,this.words[r+1]|=n>>>26-o&4194303,(o+=24)>=26&&(o-=26,r++);i+6!==e&&(n=f(t,e,i+6),this.words[r]|=n<<o&67108863,this.words[r+1]|=n>>>26-o&4194303),this.strip()},h.prototype._parseBase=function(t,base,e){this.words=[0],this.length=1;for(var r=0,n=1;n<=67108863;n*=base)r++;r--,n=n/base|0;for(var o=t.length-e,h=o%r,c=Math.min(o,o-h)+e,f=0,i=e;i<c;i+=r)f=l(t,i,i+r,base),this.imuln(n),this.words[0]+f<67108864?this.words[0]+=f:this._iaddn(f);if(0!==h){var d=1;for(f=l(t,i,t.length,base),i=0;i<h;i++)d*=base;this.imuln(d),this.words[0]+f<67108864?this.words[0]+=f:this._iaddn(f)}},h.prototype.copy=function(t){t.words=new Array(this.length);for(var i=0;i<this.length;i++)t.words[i]=this.words[i];t.length=this.length,t.negative=this.negative,t.red=this.red},h.prototype.clone=function(){var t=new h(null);return this.copy(t),t},h.prototype._expand=function(t){for(;this.length<t;)this.words[this.length++]=0;return this},h.prototype.strip=function(){for(;this.length>1&&0===this.words[this.length-1];)this.length--;return this._normSign()},h.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},h.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};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"],m=[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],v=[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,143489
vendor: 34,272 bytes, line 11
1107,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function y(t,e,r){r.negative=e.negative^t.negative;var n=t.length+e.length|0;r.length=n,n=n-1|0;var a=0|t.words[0],b=0|e.words[0],o=a*b,h=67108863&o,c=o/67108864|0;r.words[0]=h;for(var f=1;f<n;f++){for(var l=c>>>26,d=67108863&c,m=Math.min(f,e.length-1),v=Math.max(0,f-t.length+1);v<=m;v++){var i=f-v|0;l+=(o=(a=0|t.words[i])*(b=0|e.words[v])+d)/67108864|0,d=67108863&o}r.words[f]=0|d,c=0|l}return 0!==c?r.words[f]=0|c:r.length--,r.strip()}h.prototype.toString=function(base,t){var e;if(t=0|t||1,16===(base=base||10)||"hex"===base){e="";for(var r=0,o=0,i=0;i<this.length;i++){var h=this.words[i],c=(16777215&(h<<r|o)).toString(16);e=0!==(o=h>>>24-r&16777215)||i!==this.length-1?d[6-c.length]+c+e:c+e,(r+=2)>=26&&(r-=26,i--)}for(0!==o&&(e=o.toString(16)+e);e.length%t!=0;)e="0"+e;return 0!==this.negative&&(e="-"+e),e}if(base===(0|base)&&base>=2&&base<=36){var f=m[base],l=v[base];e="";var y=this.clone();for(y.negative=0;!y.isZero();){var w=y.modn(l).toString(base);e=(y=y.idivn(l)).isZero()?w+e:d[f-w.length]+w+e}for(this.isZero()&&(e="0"+e);e.length%t!=0;)e="0"+e;return 0!==this.negative&&(e="-"+e),e}n(!1,"Base should be between 2 and 36")},h.prototype.toNumber=function(){var t=this.words[0];return 2===this.length?t+=67108864*this.words[1]:3===this.length&&1===this.words[2]?t+=4503599627370496+67108864*this.words[1]:this.length>2&&n(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-t:t},h.prototype.toJSON=function(){return this.toString(16)},h.prototype.toBuffer=function(t,e){return n(void 0!==c),this.toArrayLike(c,t,e)},h.prototype.toArray=function(t,e){return this.toArrayLike(Array,t,e)},h.prototype.toArrayLike=function(t,e,r){var o=this.byteLength(),h=r||Math.max(1,o);n(o<=h,"byte array longer than desired length"),n(h>0,"Requested array length <= 0"),this.strip();var b,i,c="le"===e,f=new t(h),q=this.clone();if(c){for(i=0;!q.isZero();i++)b=q.andln(255),q.iushrn(8),f[i]=b;for(;i<h;i++)f[i]=0}else{for(i=0;i<h-o;i++)f[i]=0;for(i=0;!q.isZero();i++)b=q.andln(255),q.iushrn(8),f[h-i-1]=b}return f},Math.clz32?h.prototype._countBits=function(t){return 32-Math.clz32(t)}:h.prototype._countBits=function(t){var e=t,r=0;return e>=4096&&(r+=13,e>>>=13),e>=64&&(r+=7,e>>>=7),e>=8&&(r+=4,e>>>=4),e>=2&&(r+=2,e>>>=2),r+e},h.prototype._zeroBits=function(t){if(0===t)return 26;var e=t,r=0;return 0==(8191&e)&&(r+=13,e>>>=13),0==(127&e)&&(r+=7,e>>>=7),0==(15&e)&&(r+=4,e>>>=4),0==(3&e)&&(r+=2,e>>>=2),0==(1&e)&&r++,r},h.prototype.bitLength=function(){var t=this.words[this.length-1],e=this._countBits(t);return 26*(this.length-1)+e},h.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,i=0;i<this.length;i++){var b=this._zeroBits(this.words[i]);if(t+=b,26!==b)break}return t},h.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},h.prototype.toTwos=function(t){return 0!==this.negative?this.abs().inotn(t).iaddn(1):this.clone()},h.prototype.fromTwos=function(t){return this.testn(t-1)?this.notn(t).iaddn(1).ineg():this.clone()},h.prototype.isNeg=function(){return 0!==this.negative},h.prototype.neg=function(){return this.clone().ineg()},h.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},h.prototype.iuor=function(t){for(;this.length<t.length;)this.words[this.length++]=0;for(var i=0;i<t.length;i++)this.words[i]=this.words[i]|t.words[i];return this.strip()},h.prototype.ior=function(t){return n(0==(this.negative|t.negative)),this.iuor(t)},h.prototype.or=function(t){return this.length>t.length?this.clone().ior(t):t.clone().ior(this)},h.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},h.prototype.iuand=function(t){var b;b=this.length>t.length?t:this;for(var i=0;i<b.length;i++)this.words[i]=this.words[i]&t.words[i];return this.length=b.length,this.strip()},h.prototype.iand=function(t){return n(0==(this.negative|t.negative)),this.iuand(t)},h.prototype.and=function(t){return this.length>t.length?this.clone().iand(t):t.clone().iand(this)},h.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},h.prototype.iuxor=function(t){var a,b;this.length>t.length?(a=this,b=t):(a=t,b=this);for(var i=0;i<b.length;i++)this.words[i]=a.words[i]^b.words[i];if(this!==a)for(;i<a.length;i++)this.words[i]=a.words[i];return this.length=a.length,this.strip()},h.prototype.ixor=function(t){return n(0==(this.negative|t.negative)),this.iuxor(t)},h.prototype.xor=function(t){return this.length>t.length?this.clone().ixor(t):t.clone().ixor(this)},h.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},h.prototype.inotn=function(t){n("number"==typeof t&&t>=0);var e=0|Math.ceil(t/26),r=t%26;this._expand(e),r>0&&e--;for(var i=0;i<e;i++)this.words[i]=67108863&~this.words[i];return r>0&&(this.words[i]=~this.words[i]&67108863>>26-r),this.strip()},h.prototype.notn=function(t){return this.clone().inotn(t)},h.prototype.setn=function(t,e){n("number"==typeof t&&t>=0);var r=t/26|0,o=t%26;return this._expand(r+1),this.words[r]=e?this.words[r]|1<<o:this.words[r]&~(1<<o),this.strip()},h.prototype.iadd=function(t){var e,a,b;if(0!==this.negative&&0===t.negative)return this.negative=0,e=this.isub(t),this.negative^=1,this._normSign();if(0===this.negative&&0!==t.negative)return t.negative=0,e=this.isub(t),t.negative=1,e._normSign();this.length>t.length?(a=this,b=t):(a=t,b=this);for(var r=0,i=0;i<b.length;i++)e=(0|a.words[i])+(0|b.words[i])+r,this.words[i]=67108863&e,r=e>>>26;for(;0!==r&&i<a.length;i++)e=(0|a.words[i])+r,this.words[i]=67108863&e,r=e>>>26;if(this.length=a.length,0!==r)this.words[this.length]=r,this.length++;else if(a!==this)for(;i<a.length;i++)this.words[i]=a.words[i];return this},h.prototype.add=function(t){var e;return 0!==t.negative&&0===this.negative?(t.negative=0,e=this.sub(t),t.negative^=1,e):0===t.negative&&0!==this.negative?(this.negative=0,e=t.sub(this),this.negative=1,e):this.length>t.length?this.clone().iadd(t):t.clone().iadd(this)},h.prototype.isub=function(t){if(0!==t.negative){t.negative=0;var e=this.iadd(t);return t.negative=1,e._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(t),this.negative=1,this._normSign();var a,b,r=this.cmp(t);if(0===r)return this.negative=0,this.length=1,this.words[0]=0,this;r>0?(a=this,b=t):(a=t,b=this);for(var n=0,i=0;i<b.length;i++)n=(e=(0|a.words[i])-(0|b.words[i])+n)>>26,this.words[i]=67108863&e;for(;0!==n&&i<a.length;i++)n=(e=(0|a.words[i])+n)>>26,this.words[i]=67108863&e;if(0===n&&i<a.length&&a!==this)for(;i<a.length;i++)this.words[i]=a.words[i];return this.length=Math.max(this.length,i),a!==this&&(this.negative=1),this.strip()},h.prototype.sub=function(t){return this.clone().isub(t)};var w=function(t,e,r){var n,o,h,a=t.words,b=e.words,c=r.words,f=0,l=0|a[0],d=8191&l,m=l>>>13,v=0|a[1],y=8191&v,w=v>>>13,M=0|a[2],_=8191&M,S=M>>>13,A=0|a[3],x=8191&A,k=A>>>13,E=0|a[4],C=8191&E,R=E>>>13,I=0|a[5],P=8191&I,T=I>>>13,O=0|a[6],j=8191&O,U=O>>>13,B=0|a[7],D=8191&B,F=B>>>13,L=0|a[8],N=8191&L,H=L>>>13,z=0|a[9],V=8191&z,K=z>>>13,Z=0|b[0],W=8191&Z,G=Z>>>13,J=0|b[1],Y=8191&J,Q=J>>>13,X=0|b[2],$=8191&X,tt=X>>>13,et=0|b[3],it=8191&et,nt=et>>>13,ot=0|b[4],st=8191&ot,at=ot>>>13,ut=0|b[5],ht=8191&ut,ct=ut>>>13,ft=0|b[6],lt=8191&ft,pt=ft>>>13,mt=0|b[7],gt=8191&mt,vt=mt>>>13,yt=0|b[8],bt=8191&yt,wt=yt>>>13,Mt=0|b[9],_t=8191&Mt,St=Mt>>>13;r.negative=t.negative^e.negative,r.length=19;var At=(f+(n=Math.imul(d,W))|0)+((8191&(o=(o=Math.imul(d,G))+Math.imul(m,W)|0))<<13)|0;f=((h=Math.imul(m,G))+(o>>>13)|0)+(At>>>26)|0,At&=67108863,n=Math.imul(y,W),o=(o=Math.imul(y,G))+Math.imul(w,W)|0,h=Math.imul(w,G);var xt=(f+(n=n+Math.imul(d,Y)|0)|0)+((8191&(o=(o=o+Math.imul(d,Q)|0)+Math.imul(m,Y)|0))<<13)|0;f=((h=h+Math.imul(m,Q)|0)+(o>>>13)|0)+(xt>>>26)|0,xt&=67108863,n=Math.imul(_,W),o=(o=Math.imul(_,G))+Math.imul(S,W)|0,h=Math.imul(S,G),n=n+Math.imul(y,Y)|0,o=(o=o+Math.imul(y,Q)|0)+Math.imul(w,Y)|0,h=h+Math.imul(w,Q)|0;var kt=(f+(n=n+Math.imul(d,$)|0)|0)+((8191&(o=(o=o+Math.imul(d,tt)|0)+Math.imul(m,$)|0))<<13)|0;f=((h=h+Math.imul(m,tt)|0)+(o>>>13)|0)+(kt>>>26)|0,kt&=67108863,n=Math.imul(x,W),o=(o=Math.imul(x,G))+Math.imul(k,W)|0,h=Math.imul(k,G),n=n+Math.imul(_,Y)|0,o=(o=o+Math.imul(_,Q)|0)+Math.imul(S,Y)|0,h=h+Math.imul(S,Q)|0,n=n+Math.imul(y,$)|0,o=(o=o+Math.imul(y,tt)|0)+Math.imul(w,$)|0,h=h+Math.imul(w,tt)|0;var Et=(f+(n=n+Math.imul(d,it)|0)|0)+((8191&(o=(o=o+Math.imul(d,nt)|0)+Math.imul(m,it)|0))<<13)|0;f=((h=h+Math.imul(m,nt)|0)+(o>>>13)|0)+(Et>>>26)|0,Et&=67108863,n=Math.imul(C,W),o=(o=Math.imul(C,G))+Math.imul(R,W)|0,h=Math.imul(R,G),n=n+Math.imul(x,Y)|0,o=(o=o+Math.imul(x,Q)|0)+Math.imul(k,Y)|0,h=h+Math.imul(k,Q)|0,n=n+Math.imul(_,$)|0,o=(o=o+Math.imul(_,tt)|0)+Math.imul(S,$)|0,h=h+Math.imul(S,tt)|0,n=n+Math.imul(y,it)|0,o=(o=o+Math.imul(y,nt)|0)+Math.imul(w,it)|0,h=h+Math.imul(w,nt)|0;var Ct=(f+(n=n+Math.imul(d,st)|0)|0)+((8191&(o=(o=o+Math.imul(d,at)|0)+Math.imul(m,st)|0))<<13)|0;f=((h=h+Math.imul(m,at)|0)+(o>>>13)|0)+(Ct>>>26)|0,Ct&=67108863,n=Math.imul(P,W),o=(o=Math.imul(P,G))+Math.imul(T,W)|0,h=Math.imul(T,G),n=n+Math.imul(C,Y)|0,o=(o=o+Math.imul(C,Q)|0)+Math.imul(R,Y)|0,h=h+Math.imul(R,Q)|0,n=n+Math.imul(x,$)|0,o=(o=o+Math.imul(x,tt)|0)+Math.imul(k,$)|0,h=h+Math.imul(k,tt)|0,n=n+Math.imul(_,it)|0,o=(o=o+Math.imul(_,nt)|0)+Math.imul(S,it)|0,h=h+Math.imul(S,nt)|0,n=n+Math.imul(y,st)|0,o=(o=o+Math.imul(y,at)|0)+Math.imul(w,st)|0,h=h+Math.imul(w,at)|0;var Rt=(f+(n=n+Math.imul(d,ht)|0)|0)+((8191&(o=(o=o+Math.imul(d,ct)|0)+Math.imul(m,ht)|0))<<13)|0;f=((h=h+Math.imul(m,ct)|0)+(o>>>13)|0)+(Rt>>>26)|0,Rt&=67108863,n=Math.imul(j,W),o=(o=Math.imul(j,G))+Math.imul(U,W)|0,h=Math.imul(U,G),n=n+Math.imul(P,Y)|0,o=(o=o+Math.imul(P,Q)|0)+Math.imul(T,Y)|0,h=h+Math.imul(T,Q)|0,n=n+Math.imul(C,$)|0,o=(o=o+Math.imul(C,tt)|0)+Math.imul(R,$)|0,h=h+Math.imul(R,tt)|0,n=n+Math.imul(x,it)|0,o=(o=o+Math.imul(x,nt)|0)+Math.imul(k,it)|0,h=h+Math.imul(k,nt)|0,n=n+Math.imul(_,st)|0,o=(o=o+Math.imul(_,at)|0)+Math.imul(S,st)|0,h=h+Math.imul(S,at)|0,n=n+Math.imul(y,ht)|0,o=(o=o+Math.imul(y,ct)|0)+Math.imul(w,ht)|0,h=h+Math.imul(w,ct)|0;var It=(f+(n=n+Math.imul(d,lt)|0)|0)+((8191&(o=(o=o+Math.imul(d,pt)|0)+Math.imul(m,lt)|0))<<13)|0;f=((h=h+Math.imul(m,pt)|0)+(o>>>13)|0)+(It>>>26)|0,It&=67108863,n=Math.imul(D,W),o=(o=Math.imul(D,G))+Math.imul(F,W)|0,h=Math.imul(F,G),n=n+Math.imul(j,Y)|0,o=(o=o+Math.imul(j,Q)|0)+Math.imul(U,Y)|0,h=h+Math.imul(U,Q)|0,n=n+Math.imul(P,$)|0,o=(o=o+Math.imul(P,tt)|0)+Math.imul(T,$)|0,h=h+Math.imul(T,tt)|0,n=n+Math.imul(C,it)|0,o=(o=o+Math.imul(C,nt)|0)+Math.imul(R,it)|0,h=h+Math.imul(R,nt)|0,n=n+Math.imul(x,st)|0,o=(o=o+Math.imul(x,at)|0)+Math.imul(k,st)|0,h=h+Math.imul(k,at)|0,n=n+Math.imul(_,ht)|0,o=(o=o+Math.imul(_,ct)|0)+Math.imul(S,ht)|0,h=h+Math.imul(S,ct)|0,n=n+Math.imul(y,lt)|0,o=(o=o+Math.imul(y,pt)|0)+Math.imul(w,lt)|0,h=h+Math.imul(w,pt)|0;var Pt=(f+(n=n+Math.imul(d,gt)|0)|0)+((8191&(o=(o=o+Math.imul(d,vt)|0)+Math.imul(m,gt)|0))<<13)|0;f=((h=h+Math.imul(m,vt)|0)+(o>>>13)|0)+(Pt>>>26)|0,Pt&=67108863,n=Math.imul(N,W),o=(o=Math.imul(N,G))+Math.imul(H,W)|0,h=Math.imul(H,G),n=n+Math.imul(D,Y)|0,o=(o=o+Math.imul(D,Q)|0)+Math.imul(F,Y)|0,h=h+Math.imul(F,Q)|0,n=n+Math.imul(j,$)|0,o=(o=o+Math.imul(j,tt)|0)+Math.imul(U,$)|0,h=h+Math.imul(U,tt)|0,n=n+Math.imul(P,it)|0,o=(o=o+Math.imul(P,nt)|0)+Math.imul(T,it)|0,h=h+Math.imul(T,nt)|0,n=n+Math.imul(C,st)|0,o=(o=o+Math.imul(C,at)|0)+Math.imul(R,st)|0,h=h+Math.imul(R,at)|0,n=n+Math.imul(x,ht)|0,o=(o=o+Math.imul(x,ct)|0)+Math.imul(k,ht)|0,h=h+Math.imul(k,ct)|0,n=n+Math.imul(_,lt)|0,o=(o=o+Math.imul(_,pt)|0)+Math.imul(S,lt)|0,h=h+Math.imul(S,pt)|0,n=n+Math.imul(y,gt)|0,o=(o=o+Math.imul(y,vt)|0)+Math.imul(w,gt)|0,h=h+Math.imul(w,vt)|0;var Tt=(f+(n=n+Math.imul(d,bt)|0)|0)+((8191&(o=(o=o+Math.imul(d,wt)|0)+Math.imul(m,bt)|0))<<13)|0;f=((h=h+Math.imul(m,wt)|0)+(o>>>13)|0)+(Tt>>>26)|0,Tt&=67108863,n=Math.imul(V,W),o=(o=Math.imul(V,G))+Math.imul(K,W)|0,h=Math.imul(K,G),n=n+Math.imul(N,Y)|0,o=(o=o+Math.imul(N,Q)|0)+Math.imul(H,Y)|0,h=h+Math.imul(H,Q)|0,n=n+Math.imul(D,$)|0,o=(o=o+Math.imul(D,tt)|0)+Math.imul(F,$)|0,h=h+Math.imul(F,tt)|0,n=n+Math.imul(j,it)|0,o=(o=o+Math.imul(j,nt)|0)+Math.imul(U,it)|0,h=h+Math.imul(U,nt)|0,n=n+Math.imul(P,st)|0,o=(o=o+Math.imul(P,at)|0)+Math.imul(T,st)|0,h=h+Math.imul(T,at)|0,n=n+Math.imul(C,ht)|0,o=(o=o+Math.imul(C,ct)|0)+Math.imul(R,ht)|0,h=h+Math.imul(R,ct)|0,n=n+Math.imul(x,lt)|0,o=(o=o+Math.imul(x,pt)|0)+Math.imul(k,lt)|0,h=h+Math.imul(k,pt)|0,n=n+Math.imul(_,gt)|0,o=(o=o+Math.imul(_,vt)|0)+Math.imul(S,gt)|0,h=h+Math.imul(S,vt)|0,n=n+Math.imul(y,bt)|0,o=(o=o+Math.imul(y,wt)|0)+Math.imul(w,bt)|0,h=h+Math.imul(w,wt)|0;var Ot=(f+(n=n+Math.imul(d,_t)|0)|0)+((8191&(o=(o=o+Math.imul(d,St)|0)+Math.imul(m,_t)|0))<<13)|0;f=((h=h+Math.imul(m,St)|0)+(o>>>13)|0)+(Ot>>>26)|0,Ot&=67108863,n=Math.imul(V,Y),o=(o=Math.imul(V,Q))+Math.imul(K,Y)|0,h=Math.imul(K,Q),n=n+Math.imul(N,$)|0,o=(o=o+Math.imul(N,tt)|0)+Math.imul(H,$)|0,h=h+Math.imul(H,tt)|0,n=n+Math.imul(D,it)|0,o=(o=o+Math.imul(D,nt)|0)+Math.imul(F,it)|0,h=h+Math.imul(F,nt)|0,n=n+Math.imul(j,st)|0,o=(o=o+Math.imul(j,at)|0)+Math.imul(U,st)|0,h=h+Math.imul(U,at)|0,n=n+Math.imul(P,ht)|0,o=(o=o+Math.imul(P,ct)|0)+Math.imul(T,ht)|0,h=h+Math.imul(T,ct)|0,n=n+Math.imul(C,lt)|0,o=(o=o+Math.imul(C,pt)|0)+Math.imul(R,lt)|0,h=h+Math.imul(R,pt)|0,n=n+Math.imul(x,gt)|0,o=(o=o+Math.imul(x,vt)|0)+Math.imul(k,gt)|0,h=h+Math.imul(k,vt)|0,n=n+Math.imul(_,bt)|0,o=(o=o+Math.imul(_,wt)|0)+Math.imul(S,bt)|0,h=h+Math.imul(S,wt)|0;var jt=(f+(n=n+Math.imul(y,_t)|0)|0)+((8191&(o=(o=o+Math.imul(y,St)|0)+Math.imul(w,_t)|0))<<13)|0;f=((h=h+Math.imul(w,St)|0)+(o>>>13)|0)+(jt>>>26)|0,jt&=67108863,n=Math.imul(V,$),o=(o=Math.imul(V,tt))+Math.imul(K,$)|0,h=Math.imul(K,tt),n=n+Math.imul(N,it)|0,o=(o=o+Math.imul(N,nt)|0)+Math.imul(H,it)|0,h=h+Math.imul(H,nt)|0,n=n+Math.imul(D,st)|0,o=(o=o+Math.imul(D,at)|0)+Math.imul(F,st)|0,h=h+Math.imul(F,at)|0,n=n+Math.imul(j,ht)|0,o=(o=o+Math.imul(j,ct)|0)+Math.imul(U,ht)|0,h=h+Math.imul(U,ct)|0,n=n+Math.imul(P,lt)|0,o=(o=o+Math.imul(P,pt)|0)+Math.imul(T,lt)|0,h=h+Math.imul(T,pt)|0,n=n+Math.imul(C,gt)|0,o=(o=o+Math.imul(C,vt)|0)+Math.imul(R,gt)|0,h=h+Math.imul(R,vt)|0,n=n+Math.imul(x,bt)|0,o=(o=o+Math.imul(x,wt)|0)+Math.imul(k,bt)|0,h=h+Math.imul(k,wt)|0;var Ut=(f+(n=n+Math.imul(_,_t)|0)|0)+((8191&(o=(o=o+Math.imul(_,St)|0)+Math.imul(S,_t)|0))<<13)|0;f=((h=h+Math.imul(S,St)|0)+(o>>>13)|0)+(Ut>>>26)|0,Ut&=67108863,n=Math.imul(V,it),o=(o=Math.imul(V,nt))+Math.imul(K,it)|0,h=Math.imul(K,nt),n=n+Math.imul(N,st)|0,o=(o=o+Math.imul(N,at)|0)+Math.imul(H,st)|0,h=h+Math.imul(H,at)|0,n=n+Math.imul(D,ht)|0,o=(o=o+Math.imul(D,ct)|0)+Math.imul(F,ht)|0,h=h+Math.imul(F,ct)|0,n=n+Math.imul(j,lt)|0,o=(o=o+Math.imul(j,pt)|0)+Math.imul(U,lt)|0,h=h+Math.imul(U,pt)|0,n=n+Math.imul(P,gt)|0,o=(o=o+Math.imul(P,vt)|0)+Math.imul(T,gt)|0,h=h+Math.imul(T,vt)|0,n=n+Math.imul(C,bt)|0,o=(o=o+Math.imul(C,wt)|0)+Math.imul(R,bt)|0,h=h+Math.imul(R,wt)|0;var Bt=(f+(n=n+Math.imul(x,_t)|0)|0)+((8191&(o=(o=o+Math.imul(x,St)|0)+Math.imul(k,_t)|0))<<13)|0;f=((h=h+Math.imul(k,St)|0)+(o>>>13)|0)+(Bt>>>26)|0,Bt&=67108863,n=Math.imul(V,st),o=(o=Math.imul(V,at))+Math.imul(K,st)|0,h=Math.imul(K,at),n=n+Math.imul(N,ht)|0,o=(o=o+Math.imul(N,ct)|0)+Math.imul(H,ht)|0,h=h+Math.imul(H,ct)|0,n=n+Math.imul(D,lt)|0,o=(o=o+Math.imul(D,pt)|0)+Math.imul(F,lt)|0,h=h+Math.imul(F,pt)|0,n=n+Math.imul(j,gt)|0,o=(o=o+Math.imul(j,vt)|0)+Math.imul(U,gt)|0,h=h+Math.imul(U,vt)|0,n=n+Math.imul(P,bt)|0,o=(o=o+Math.imul(P,wt)|0)+Math.imul(T,bt)|0,h=h+Math.imul(T,wt)|0;var Dt=(f+(n=n+Math.imul(C,_t)|0)|0)+((8191&(o=(o=o+Math.imul(C,St)|0)+Math.imul(R,_t)|0))<<13)|0;f=((h=h+Math.imul(R,St)|0)+(o>>>13)|0)+(Dt>>>26)|0,Dt&=67108863,n=Math.imul(V,ht),o=(o=Math.imul(V,ct))+Math.imul(K,ht)|0,h=Math.imul(K,ct),n=n+Math.imul(N,lt)|0,o=(o=o+Math.imul(N,pt)|0)+Math.imul(H,lt)|0,h=h+Math.imul(H,pt)|0,n=n+Math.imul(D,gt)|0,o=(o=o+Math.imul(D,vt)|0)+Math.imul(F,gt)|0,h=h+Math.imul(F,vt)|0,n=n+Math.imul(j,bt)|0,o=(o=o+Math.imul(j,wt)|0)+Math.imul(U,bt)|0,h=h+Math.imul(U,wt)|0;var Ft=(f+(n=n+Math.imul(P,_t)|0)|0)+((8191&(o=(o=o+Math.imul(P,St)|0)+Math.imul(T,_t)|0))<<13)|0;f=((h=h+Math.imul(T,St)|0)+(o>>>13)|0)+(Ft>>>26)|0,Ft&=67108863,n=Math.imul(V,lt),o=(o=Math.imul(V,pt))+Math.imul(K,lt)|0,h=Math.imul(K,pt),n=n+Math.imul(N,gt)|0,o=(o=o+Math.imul(N,vt)|0)+Math.imul(H,gt)|0,h=h+Math.imul(H,vt)|0,n=n+Math.imul(D,bt)|0,o=(o=o+Math.imul(D,wt)|0)+Math.imul(F,bt)|0,h=h+Math.imul(F,wt)|0;var Lt=(f+(n=n+Math.imul(j,_t)|0)|0)+((8191&(o=(o=o+Math.imul(j,St)|0)+Math.imul(U,_t)|0))<<13)|0;f=((h=h+Math.imul(U,St)|0)+(o>>>13)|0)+(Lt>>>26)|0,Lt&=67108863,n=Math.imul(V,gt),o=(o=Math.imul(V,vt))+Math.imul(K,gt)|0,h=Math.imul(K,vt),n=n+Math.imul(N,bt)|0,o=(o=o+Math.imul(N,wt)|0)+Math.imul(H,bt)|0,h=h+Math.imul(H,wt)|0;var Nt=(f+(n=n+Math.imul(D,_t)|0)|0)+((8191&(o=(o=o+Math.imul(D,St)|0)+Math.imul(F,_t)|0))<<13)|0;f=((h=h+Math.imul(F,St)|0)+(o>>>13)|0)+(Nt>>>26)|0,Nt&=67108863,n=Math.imul(V,bt),o=(o=Math.imul(V,wt))+Math.imul(K,bt)|0,h=Math.imul(K,wt);var qt=(f+(n=n+Math.imul(N,_t)|0)|0)+((8191&(o=(o=o+Math.imul(N,St)|0)+Math.imul(H,_t)|0))<<13)|0;f=((h=h+Math.imul(H,St)|0)+(o>>>13)|0)+(qt>>>26)|0,qt&=67108863;var Ht=(f+(n=Math.imul(V,_t))|0)+((8191&(o=(o=Math.imul(V,St))+Math.imul(K,_t)|0))<<13)|0;return f=((h=Math.imul(K,St))+(o>>>13)|0)+(Ht>>>26)|0,Ht&=67108863,c[0]=At,c[1]=xt,c[2]=kt,c[3]=Et,c[4]=Ct,c[5]=Rt,c[6]=It,c[7]=Pt,c[8]=Tt,c[9]=Ot,c[10]=jt,c[11]=Ut,c[12]=Bt,c[13]=Dt,c[14]=Ft,c[15]=Lt,c[16]=Nt,c[17]=qt,c[18]=Ht,0!==f&&(c[19]=f,r.length++),r};function M(t,e,r){return(new _).mulp(t,e,r)}function _(t,e){this.x=t,this.y=e}Math.imul||(w=y),h.prototype.mulTo=function(t,e){var r=this.length+t.length;return 10===this.length&&10===t.length?w(this,t,e):r<63?y(this,t,e):r<1024?function(t,e,r){r.negative=e.negative^t.negative,r.length=t.length+e.length;for(var n=0,o=0,h=0;h<r.length-1;h++){var c=o;o=0;for(var f=67108863&n,l=Math.min(h,e.length-1),d=Math.max(0,h-t.length+1);d<=l;d++){var i=h-d,m=(0|t.words[i])*(0|e.words[d]),v=67108863&m;f=67108863&(v=v+f|0),o+=(c=(c=c+(m/67108864|0)|0)+(v>>>26)|0)>>>26,c&=67108863}r.words[h]=f,n=c,c=o}return 0!==n?r.words[h]=n:r.length--,r.strip()}(this,t,e):M(this,t,e)},_.prototype.makeRBT=function(t){for(var e=new Array(t),r=h.prototype._countBits(t)-1,i=0;i<t;i++)e[i]=this.revBin(i,r,t);return e},_.prototype.revBin=function(t,e,r){if(0===t||t===r-1)return t;for(var n=0,i=0;i<e;i++)n|=(1&t)<<e-i-1,t>>=1;return n},_.prototype.permute=function(t,e,r,n,o,h){for(var i=0;i<h;i++)n[i]=e[t[i]],o[i]=r[t[i]]},_.prototype.transform=function(t,e,r,n,o,h){this.permute(h,t,e,r,n,o);for(var s=1;s<o;s<<=1)for(var c=s<<1,f=Math.cos(2*Math.PI/c),l=Math.sin(2*Math.PI/c),p=0;p<o;p+=c)for(var d=f,m=l,v=0;v<s;v++){var y=r[p+v],w=n[p+v],M=r[p+v+s],_=n[p+v+s],S=d*M-m*_;_=d*_+m*M,M=S,r[p+v]=y+M,n[p+v]=w+_,r[p+v+s]=y-M,n[p+v+s]=w-_,v!==c&&(S=f*d-l*m,m=f*m+l*d,d=S)}},_.prototype.guessLen13b=function(t,e){var r=1|Math.max(e,t),n=1&r,i=0;for(r=r/2|0;r;r>>>=1)i++;return 1<<i+1+n},_.prototype.conjugate=function(t,e,r){if(!(r<=1))for(var i=0;i<r/2;i++){var n=t[i];t[i]=t[r-i-1],t[r-i-1]=n,n=e[i],e[i]=-e[r-i-1],e[r-i-1]=-n}},_.prototype.normalize13b=function(t,e){for(var r=0,i=0;i<e/2;i++){var n=8192*Math.round(t[2*i+1]/e)+Math.round(t[2*i]/e)+r;t[i]=67108863&n,r=n<67108864?0:n/67108864|0}return t},_.prototype.convert13b=function(t,e,r,o){for(var h=0,i=0;i<e;i++)h+=0|t[i],r[2*i]=8191&h,h>>>=13,r[2*i+1]=8191&h,h>>>=13;for(i=2*e;i<o;++i)r[i]=0;n(0===h),n(0==(-8192&h))},_.prototype.stub=function(t){for(var e=new Array(t),i=0;i<t;i++)e[i]=0;return e},_.prototype.mulp=function(t,e,r){var n=2*this.guessLen13b(t.length,e.length),o=this.makeRBT(n),h=this.stub(n),c=new Array(n),f=new Array(n),l=new Array(n),d=new Array(n),m=new Array(n),v=new Array(n),y=r.words;y.length=n,this.convert13b(t.words,t.length,c,n),this.convert13b(e.words,e.length,d,n),this.transform(c,h,f,l,n,o),this.transform(d,h,m,v,n,o);for(var i=0;i<n;i++){var w=f[i]*m[i]-l[i]*v[i];l[i]=f[i]*v[i]+l[i]*m[i],f[i]=w}return this.conjugate(f,l,n),this.transform(f,l,y,h,n,o),this.conjugate(y,h,n),this.normalize13b(y,n),r.negative=t.negative^e.negative,r.length=t.length+e.length,r.strip()},h.prototype.mul=function(t){var e=new h(null);return e.words=new Array(this.length+t.length),this.mulTo(t,e)},h.prototype.mulf=function(t){var e=new h(null);return e.words=new Array(this.length+t.length),M(this,t,e)},h.prototype.imul=function(t){return this.clone().mulTo(t,this)},h.prototype.imuln=function(t){n("number"==typeof t),n(t<67108864);for(var e=0,i=0;i<this.length;i++){var r=(0|this.words[i])*t,o=(67108863&r)+(67108863&e);e>>=26,e+=r/67108864|0,e+=o>>>26,this.words[i]=67108863&o}return 0!==e&&(this.words[i]=e,this.length++),this},h.prototype.muln=function(t){return this.clone().imuln(t)},h.prototype.sqr=function(){return this.mul(this)},h.prototype.isqr=function(){return this.imul(this.clone())},h.prototype.pow=function(t){var e=function(t){for(var e=new Array(t.bitLength()),r=0;r<e.length;r++){var n=r/26|0,o=r%26;e[r]=(t.words[n]&1<<o)>>>o}return e}(t);if(0===e.length)return new h(1);for(var r=this,i=0;i<e.length&&0===e[i];i++,r=r.sqr());if(++i<e.length)for(var q=r.sqr();i<e.length;i++,q=q.sqr())0!==e[i]&&(r=r.mul(q));return r},h.prototype.iushln=function(t){n("number"==typeof t&&t>=0);var i,e=t%26,s=(t-e)/26,r=67108863>>>26-e<<26-e;if(0!==e){var o=0;for(i=0;i<this.length;i++){var h=this.words[i]&r,c=(0|this.words[i])-h<<e;this.words[i]=c|o,o=h>>>26-e}o&&(this.words[i]=o,this.length++)}if(0!==s){for(i=this.length-1;i>=0;i--)this.words[i+s]=this.words[i];for(i=0;i<s;i++)this.words[i]=0;this.length+=s}return this.strip()},h.prototype.ishln=function(t){return n(0===this.negative),this.iushln(t)},h.prototype.iushrn=function(t,e,r){var o;n("number"==typeof t&&t>=0),o=e?(e-e%26)/26:0;var h=t%26,s=Math.min((t-h)/26,this.length),mask=67108863^67108863>>>h<<h,c=r;if(o-=s,o=Math.max(0,o),c){for(var i=0;i<s;i++)c.words[i]=this.words[i];c.length=s}if(0===s);else if(this.length>s)for(this.length-=s,i=0;i<this.length;i++)this.words[i]=this.words[i+s];else this.words[0]=0,this.length=1;var f=0;for(i=this.length-1;i>=0&&(0!==f||i>=o);i--){var l=0|this.words[i];this.words[i]=f<<26-h|l>>>h,f=l&mask}return c&&0!==f&&(c.words[c.length++]=f),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},h.prototype.ishrn=function(t,e,r){return n(0===this.negative),this.iushrn(t,e,r)},h.prototype.shln=function(t){return this.clone().ishln(t)},h.prototype.ushln=function(t){return this.clone().iushln(t)},h.prototype.shrn=function(t){return this.clone().ishrn(t)},h.prototype.ushrn=function(t){return this.clone().iushrn(t)},h.prototype.testn=function(t){n("number"==typeof t&&t>=0);var e=t%26,s=(t-e)/26,q=1<<e;return!(this.length<=s)&&!!(this.words[s]&q)},h.prototype.imaskn=function(t){n("number"==typeof t&&t>=0);var e=t%26,s=(t-e)/26;if(n(0===this.negative,"imaskn works only with positive numbers"),this.length<=s)return this;if(0!==e&&s++,this.length=Math.min(s,this.length),0!==e){var mask=67108863^67108863>>>e<<e;this.words[this.length-1]&=mask}return this.strip()},h.prototype.maskn=function(t){return this.clone().imaskn(t)},h.prototype.iaddn=function(t){return n("number"==typeof t),n(t<67108864),t<0?this.isubn(-t):0!==this.negative?1===this.length&&(0|this.words[0])<t?(this.words[0]=t-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(t),this.negative=1,this):this._iaddn(t)},h.prototype._iaddn=function(t){this.words[0]+=t;for(var i=0;i<this.length&&this.words[i]>=67108864;i++)this.words[i]-=67108864,i===this.length-1?this.words[i+1]=1:this.words[i+1]++;return this.length=Math.max(this.length,i+1),this},h.prototype.isubn=function(t){if(n("number"==typeof t),n(t<67108864),t<0)return this.iaddn(-t);if(0!==this.negative)return this.negative=0,this.iaddn(t),this.negative=1,this;if(this.words[0]-=t,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var i=0;i<this.length&&this.words[i]<0;i++)this.words[i]+=67108864,this.words[i+1]-=1;return this.strip()},h.prototype.addn=function(t){return this.clone().iaddn(t)},h.prototype.subn=function(t){return this.clone().isubn(t)},h.prototype.iabs=function(){return this.negative=0,this},h.prototype.abs=function(){return this.clone().iabs()},h.prototype._ishlnsubmul=function(t,e,r){var i,o,h=t.length+r;this._expand(h);var c=0;for(i=0;i<t.length;i++){o=(0|this.words[i+r])+c;var f=(0|t.words[i])*e;c=((o-=67108863&f)>>26)-(f/67108864|0),this.words[i+r]=67108863&o}for(;i<this.length-r;i++)c=(o=(0|this.words[i+r])+c)>>26,this.words[i+r]=67108863&o;if(0===c)return this.strip();for(n(-1===c),c=0,i=0;i<this.length;i++)c=(o=-(0|this.words[i])+c)>>26,this.words[i]=67108863&o;return this.negative=1,this.strip()},h.prototype._wordDiv=function(t,e){var r=(this.length,t.length),a=this.clone(),b=t,n=0|b.words[b.length-1];0!==(r=26-this._countBits(n))&&(b=b.ushln(r),a.iushln(r),n=0|b.words[b.length-1]);var q,o=a.length-b.length;if("mod"!==e){(q=new h(null)).length=o+1,q.words=new Array(q.length);for(var i=0;i<q.length;i++)q.words[i]=0}var c=a.clone()._ishlnsubmul(b,1,o);0===c.negative&&(a=c,q&&(q.words[o]=1));for(var f=o-1;f>=0;f--){var l=67108864*(0|a.words[b.length+f])+(0|a.words[b.length+f-1]);for(l=Math.min(l/n|0,67108863),a._ishlnsubmul(b,l,f);0!==a.negative;)l--,a.negative=0,a._ishlnsubmul(b,1,f),a.isZero()||(a.negative^=1);q&&(q.words[f]=l)}return q&&q.strip(),a.strip(),"div"!==e&&0!==r&&a.iushrn(r),{div:q||null,mod:a}},h.prototype.divmod=function(t,e,r){return n(!t.isZero()),this.isZero()?{div:new h(0),mod:new h(0)}:0!==this.negative&&0===t.negative?(c=this.neg().divmod(t,e),"mod"!==e&&(div=c.div.neg()),"div"!==e&&(o=c.mod.neg(),r&&0!==o.negative&&o.iadd(t)),{div:div,mod:o}):0===this.negative&&0!==t.negative?(c=this.divmod(t.neg(),e),"mod"!==e&&(div=c.div.neg()),{div:div,mod:c.mod}):0!=(this.negative&t.negative)?(c=this.neg().divmod(t.neg(),e),"div"!==e&&(o=c.mod.neg(),r&&0!==o.negative&&o.isub(t)),{div:c.div,mod:o}):t.length>this.length||this.cmp(t)<0?{div:new h(0),mod:this}:1===t.length?"div"===e?{div:this.divn(t.words[0]),mod:null}:"mod"===e?{div:null,mod:new h(this.modn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new h(this.modn(t.words[0]))}:this._wordDiv(t,e);var div,o,c},h.prototype.div=function(t){return this.divmod(t,"div",!1).div},h.prototype.mod=function(t){return this.divmod(t,"mod",!1).mod},h.prototype.umod=function(t){return this.divmod(t,"mod",!0).mod},h.prototype.divRound=function(t){var e=this.divmod(t);if(e.mod.isZero())return e.div;var r=0!==e.div.negative?e.mod.isub(t):e.mod,n=t.ushrn(1),o=t.andln(1),h=r.cmp(n);return h<0||1===o&&0===h?e.div:0!==e.div.negative?e.div.isubn(1):e.div.iaddn(1)},h.prototype.modn=function(t){n(t<=67108863);for(var p=(1<<26)%t,e=0,i=this.length-1;i>=0;i--)e=(p*e+(0|this.words[i]))%t;return e},h.prototype.idivn=function(t){n(t<=67108863);for(var e=0,i=this.length-1;i>=0;i--){var r=(0|this.words[i])+67108864*e;this.words[i]=r/t|0,e=r%t}return this.strip()},h.prototype.divn=function(t){return this.clone().idivn(t)},h.prototype.egcd=function(p){n(0===p.negative),n(!p.isZero());var t=this,e=p.clone();t=0!==t.negative?t.umod(p):t.clone();for(var r=new h(1),o=new h(0),c=new h(0),f=new h(1),g=0;t.isEven()&&e.isEven();)t.iushrn(1),e.iushrn(1),++g;for(var l=e.clone(),d=t.clone();!t.isZero();){for(var i=0,m=1;0==(t.words[0]&m)&&i<26;++i,m<<=1);if(i>0)for(t.iushrn(i);i-- >0;)(r.isOdd()||o.isOdd())&&(r.iadd(l),o.isub(d)),r.iushrn(1),o.iushrn(1);for(var v=0,y=1;0==(e.words[0]&y)&&v<26;++v,y<<=1);if(v>0)for(e.iushrn(v);v-- >0;)(c.isOdd()||f.isOdd())&&(c.iadd(l),f.isub(d)),c.iushrn(1),f.iushrn(1);t.cmp(e)>=0?(t.isub(e),r.isub(c),o.isub(f)):(e.isub(t),c.isub(r),f.isub(o))}return{a:c,b:f,gcd:e.iushln(g)}},h.prototype._invmp=function(p){n(0===p.negative),n(!p.isZero());var a=this,b=p.clone();a=0!==a.negative?a.umod(p):a.clone();for(var t,e=new h(1),r=new h(0),o=b.clone();a.cmpn(1)>0&&b.cmpn(1)>0;){for(var i=0,c=1;0==(a.words[0]&c)&&i<26;++i,c<<=1);if(i>0)for(a.iushrn(i);i-- >0;)e.isOdd()&&e.iadd(o),e.iushrn(1);for(var f=0,l=1;0==(b.words[0]&l)&&f<26;++f,l<<=1);if(f>0)for(b.iushrn(f);f-- >0;)r.isOdd()&&r.iadd(o),r.iushrn(1);a.cmp(b)>=0?(a.isub(b),e.isub(r)):(b.isub(a),r.isub(e))}return(t=0===a.cmpn(1)?e:r).cmpn(0)<0&&t.iadd(p),t},h.prototype.gcd=function(t){if(this.isZero())return t.abs();if(t.isZero())return this.abs();var a=this.clone(),b=t.clone();a.negative=0,b.negative=0;for(var e=0;a.isEven()&&b.isEven();e++)a.iushrn(1),b.iushrn(1);for(;;){for(;a.isEven();)a.iushrn(1);for(;b.isEven();)b.iushrn(1);var r=a.cmp(b);if(r<0){var n=a;a=b,b=n}else if(0===r||0===b.cmpn(1))break;a.isub(b)}return b.iushln(e)},h.prototype.invm=function(t){return this.egcd(t).a.umod(t)},h.prototype.isEven=function(){return 0==(1&this.words[0])},h.prototype.isOdd=function(){return 1==(1&this.words[0])},h.prototype.andln=function(t){return this.words[0]&t},h.prototype.bincn=function(t){n("number"==typeof t);var e=t%26,s=(t-e)/26,q=1<<e;if(this.length<=s)return this._expand(s+1),this.words[s]|=q,this;for(var r=q,i=s;0!==r&&i<this.length;i++){var o=0|this.words[i];r=(o+=r)>>>26,o&=67108863,this.words[i]=o}return 0!==r&&(this.words[i]=r,this.length++),this},h.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},h.prototype.cmpn=function(t){var e,r=t<0;if(0!==this.negative&&!r)return-1;if(0===this.negative&&r)return 1;if(this.strip(),this.length>1)e=1;else{r&&(t=-t),n(t<=67108863,"Number is too big");var o=0|this.words[0];e=o===t?0:o<t?-1:1}return 0!==this.negative?0|-e:e},h.prototype.cmp=function(t){if(0!==this.negative&&0===t.negative)return-1;if(0===this.negative&&0!==t.negative)return 1;var e=this.ucmp(t);return 0!==this.negative?0|-e:e},h.prototype.ucmp=function(t){if(this.length>t.length)return 1;if(this.length<t.length)return-1;for(var e=0,i=this.length-1;i>=0;i--){var a=0|this.words[i],b=0|t.words[i];if(a!==b){a<b?e=-1:a>b&&(e=1);break}}return e},h.prototype.gtn=function(t){return 1===this.cmpn(t)},h.prototype.gt=function(t){return 1===this.cmp(t)},h.prototype.gten=function(t){return this.cmpn(t)>=0},h.prototype.gte=function(t){return this.cmp(t)>=0},h.prototype.ltn=function(t){return-1===this.cmpn(t)},h.prototype.lt=function(t){return-1===this.cmp(t)},h.prototype.lten=function(t){return this.cmpn(t)<=0},h.prototype.lte=function(t){return this.cmp(t)<=0},h.prototype.eqn=function(t){return 0===this.cmpn(t)},h.prototype.eq=function(t){return 0===this.cmp(t)},h.red=function(t){return new R(t)},h.prototype.toRed=function(t){return n(!this.red,"Already a number in reduction context"),n(0===this.negative,"red works only with positives"),t.convertTo(this)._forceRed(t)},h.prototype.fromRed=function(){return n(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},h.prototype._forceRed=function(t){return this.red=t,this},h.prototype.forceRed=function(t){return n(!this.red,"Already a number in reduction context"),this._forceRed(t)},h.prototype.redAdd=function(t){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,t)},h.prototype.redIAdd=function(t){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,t)},h.prototype.redSub=function(t){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,t)},h.prototype.redISub=function(t){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,t)},h.prototype.redShl=function(t){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,t)},h.prototype.redMul=function(t){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.mul(this,t)},h.prototype.redIMul=function(t){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.imul(this,t)},h.prototype.redSqr=function(){return n(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},h.prototype.redISqr=function(){return n(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},h.prototype.redSqrt=function(){return n(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},h.prototype.redInvm=function(){return n(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},h.prototype.redNeg=function(){return n(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},h.prototype.redPow=function(t){return n(this.red&&!t.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,t)};var S={k256:null,p224:null,p192:null,p25519:null};function A(t,p){this.name=t,this.p=new h(p,16),this.n=this.p.bitLength(),this.k=new h(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function x(){A.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function k(){A.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function E(){A.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function C(){A.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function R(t){if("string"==typeof t){var e=h._prime(t);this.m=e.p,this.prime=e}else n(t.gtn(1),"modulus must be greater than 1"),this.m=t,this.prime=null}function I(t){R.call(this,t),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new h(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)}A.prototype._tmp=function(){var t=new h(null);return t.words=new Array(Math.ceil(this.n/13)),t},A.prototype.ireduce=function(t){var e,r=t;do{this.split(r,this.tmp),e=(r=(r=this.imulK(r)).iadd(this.tmp)).bitLength()}while(e>this.n);var n=e<this.n?-1:r.ucmp(this.p);return 0===n?(r.words[0]=0,r.length=1):n>0?r.isub(this.p):void 0!==r.strip?r.strip():r._strip(),r},A.prototype.split=function(input,t){input.iushrn(this.n,0,t)},A.prototype.imulK=function(t){return t.imul(this.k)},o(x,A),x.prototype.split=function(input,output){for(var t=Math.min(input.length,9),i=0;i<t;i++)output.words[i]=input.words[i];if(output.length=t,input.length<=9)return input.words[0]=0,void(in
vendor: 14,570 bytes, line 11
11put.length=1);var e=input.words[9];for(output.words[output.length++]=4194303&e,i=10;i<input.length;i++){var r=0|input.words[i];input.words[i-10]=(4194303&r)<<4|e>>>22,e=r}e>>>=22,input.words[i-10]=e,0===e&&input.length>10?input.length-=10:input.length-=9},x.prototype.imulK=function(t){t.words[t.length]=0,t.words[t.length+1]=0,t.length+=2;for(var e=0,i=0;i<t.length;i++){var r=0|t.words[i];e+=977*r,t.words[i]=67108863&e,e=64*r+(e/67108864|0)}return 0===t.words[t.length-1]&&(t.length--,0===t.words[t.length-1]&&t.length--),t},o(k,A),o(E,A),o(C,A),C.prototype.imulK=function(t){for(var e=0,i=0;i<t.length;i++){var r=19*(0|t.words[i])+e,n=67108863&r;r>>>=26,t.words[i]=n,e=r}return 0!==e&&(t.words[t.length++]=e),t},h._prime=function(t){if(S[t])return S[t];var e;if("k256"===t)e=new x;else if("p224"===t)e=new k;else if("p192"===t)e=new E;else{if("p25519"!==t)throw new Error("Unknown prime "+t);e=new C}return S[t]=e,e},R.prototype._verify1=function(a){n(0===a.negative,"red works only with positives"),n(a.red,"red works only with red numbers")},R.prototype._verify2=function(a,b){n(0==(a.negative|b.negative),"red works only with positives"),n(a.red&&a.red===b.red,"red works only with red numbers")},R.prototype.imod=function(a){return this.prime?this.prime.ireduce(a)._forceRed(this):a.umod(this.m)._forceRed(this)},R.prototype.neg=function(a){return a.isZero()?a.clone():this.m.sub(a)._forceRed(this)},R.prototype.add=function(a,b){this._verify2(a,b);var t=a.add(b);return t.cmp(this.m)>=0&&t.isub(this.m),t._forceRed(this)},R.prototype.iadd=function(a,b){this._verify2(a,b);var t=a.iadd(b);return t.cmp(this.m)>=0&&t.isub(this.m),t},R.prototype.sub=function(a,b){this._verify2(a,b);var t=a.sub(b);return t.cmpn(0)<0&&t.iadd(this.m),t._forceRed(this)},R.prototype.isub=function(a,b){this._verify2(a,b);var t=a.isub(b);return t.cmpn(0)<0&&t.iadd(this.m),t},R.prototype.shl=function(a,t){return this._verify1(a),this.imod(a.ushln(t))},R.prototype.imul=function(a,b){return this._verify2(a,b),this.imod(a.imul(b))},R.prototype.mul=function(a,b){return this._verify2(a,b),this.imod(a.mul(b))},R.prototype.isqr=function(a){return this.imul(a,a.clone())},R.prototype.sqr=function(a){return this.mul(a,a)},R.prototype.sqrt=function(a){if(a.isZero())return a.clone();var t=this.m.andln(3);if(n(t%2==1),3===t){var e=this.m.add(new h(1)).iushrn(2);return this.pow(a,e)}for(var q=this.m.subn(1),s=0;!q.isZero()&&0===q.andln(1);)s++,q.iushrn(1);n(!q.isZero());var r=new h(1).toRed(this),o=r.redNeg(),c=this.m.subn(1).iushrn(1),f=this.m.bitLength();for(f=new h(2*f*f).toRed(this);0!==this.pow(f,c).cmp(o);)f.redIAdd(o);for(var l=this.pow(f,q),d=this.pow(a,q.addn(1).iushrn(1)),m=this.pow(a,q),v=s;0!==m.cmp(r);){for(var y=m,i=0;0!==y.cmp(r);i++)y=y.redSqr();n(i<v);var b=this.pow(l,new h(1).iushln(v-i-1));d=d.redMul(b),l=b.redSqr(),m=m.redMul(l),v=i}return d},R.prototype.invm=function(a){var t=a._invmp(this.m);return 0!==t.negative?(t.negative=0,this.imod(t).redNeg()):this.imod(t)},R.prototype.pow=function(a,t){if(t.isZero())return new h(1).toRed(this);if(0===t.cmpn(1))return a.clone();var e=new Array(16);e[0]=new h(1).toRed(this),e[1]=a;for(var i=2;i<e.length;i++)e[i]=this.mul(e[i-1],a);var r=e[0],n=0,o=0,c=t.bitLength()%26;for(0===c&&(c=26),i=t.length-1;i>=0;i--){for(var f=t.words[i],l=c-1;l>=0;l--){var d=f>>l&1;r!==e[0]&&(r=this.sqr(r)),0!==d||0!==n?(n<<=1,n|=d,(4===++o||0===i&&0===l)&&(r=this.mul(r,e[n]),o=0,n=0)):o=0}c=26}return r},R.prototype.convertTo=function(t){var e=t.umod(this.m);return e===t?e.clone():e},R.prototype.convertFrom=function(t){var e=t.clone();return e.red=null,e},h.mont=function(t){return new I(t)},o(I,R),I.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},I.prototype.convertFrom=function(t){var e=this.imod(t.mul(this.rinv));return e.red=null,e},I.prototype.imul=function(a,b){if(a.isZero()||b.isZero())return a.words[0]=0,a.length=1,a;var t=a.imul(b),e=t.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),u=t.isub(e).iushrn(this.shift),r=u;return u.cmp(this.m)>=0?r=u.isub(this.m):u.cmpn(0)<0&&(r=u.iadd(this.m)),r._forceRed(this)},I.prototype.mul=function(a,b){if(a.isZero()||b.isZero())return new h(0)._forceRed(this);var t=a.mul(b),e=t.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),u=t.isub(e).iushrn(this.shift),r=u;return u.cmp(this.m)>=0?r=u.isub(this.m):u.cmpn(0)<0&&(r=u.iadd(this.m)),r._forceRed(this)},I.prototype.invm=function(a){return this.imod(a._invmp(this.m).mul(this.r2))._forceRed(this)}}(t,this)}).call(this,r(57)(t))},function(t,e,r){"use strict";r.d(e,"a",(function(){return n}));var n=function(t){return encodeURIComponent(t).replace(/[!'()*]/g,o)},o=function(t){return"%"+t.charCodeAt(0).toString(16).toUpperCase()}},,,,,,,,,function(t,e,r){var n=r(7).Buffer,o=r(416).Transform,h=r(93).StringDecoder;function c(t){o.call(this),this.hashMode="string"==typeof t,this.hashMode?this[t]=this._finalOrDigest:this.final=this._finalOrDigest,this._final&&(this.__final=this._final,this._final=null),this._decoder=null,this._encoding=null}r(6)(c,o),c.prototype.update=function(data,t,e){"string"==typeof data&&(data=n.from(data,t));var r=this._update(data);return this.hashMode?this:(e&&(r=this._toString(r,e)),r)},c.prototype.setAutoPadding=function(){},c.prototype.getAuthTag=function(){throw new Error("trying to get auth tag in unsupported state")},c.prototype.setAuthTag=function(){throw new Error("trying to set auth tag in unsupported state")},c.prototype.setAAD=function(){throw new Error("trying to set aad in unsupported state")},c.prototype._transform=function(data,t,e){var r;try{this.hashMode?this._update(data):this.push(this._update(data))}catch(t){r=t}finally{e(r)}},c.prototype._flush=function(t){var e;try{this.push(this.__final())}catch(t){e=t}t(e)},c.prototype._finalOrDigest=function(t){var e=this.__final()||n.alloc(0);return t&&(e=this._toString(e,t,!0)),e},c.prototype._toString=function(t,e,r){if(this._decoder||(this._decoder=new h(e),this._encoding=e),this._encoding!==e)throw new Error("can't switch encodings");var n=this._decoder.write(t);return r&&(n+=this._decoder.end()),n},t.exports=c},,,,,,function(t,e,r){"use strict";var n,o="object"==typeof Reflect?Reflect:null,h=o&&"function"==typeof o.apply?o.apply:function(t,e,r){return Function.prototype.apply.call(t,e,r)};n=o&&"function"==typeof o.ownKeys?o.ownKeys:Object.getOwnPropertySymbols?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:function(t){return Object.getOwnPropertyNames(t)};var c=Number.isNaN||function(t){return t!=t};function f(){f.init.call(this)}t.exports=f,t.exports.once=function(t,e){return new Promise((function(r,n){function o(){void 0!==h&&t.removeListener("error",h),r([].slice.call(arguments))}var h;"error"!==e&&(h=function(r){t.removeListener(e,o),n(r)},t.once("error",h)),t.once(e,o)}))},f.EventEmitter=f,f.prototype._events=void 0,f.prototype._eventsCount=0,f.prototype._maxListeners=void 0;var l=10;function d(t){if("function"!=typeof t)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof t)}function m(t){return void 0===t._maxListeners?f.defaultMaxListeners:t._maxListeners}function v(t,e,r,n){var o,h,c,f;if(d(r),void 0===(h=t._events)?(h=t._events=Object.create(null),t._eventsCount=0):(void 0!==h.newListener&&(t.emit("newListener",e,r.listener?r.listener:r),h=t._events),c=h[e]),void 0===c)c=h[e]=r,++t._eventsCount;else if("function"==typeof c?c=h[e]=n?[r,c]:[c,r]:n?c.unshift(r):c.push(r),(o=m(t))>0&&c.length>o&&!c.warned){c.warned=!0;var l=new Error("Possible EventEmitter memory leak detected. "+c.length+" "+String(e)+" listeners added. Use emitter.setMaxListeners() to increase limit");l.name="MaxListenersExceededWarning",l.emitter=t,l.type=e,l.count=c.length,f=l,console&&console.warn&&console.warn(f)}return t}function y(){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 w(t,e,r){var n={fired:!1,wrapFn:void 0,target:t,type:e,listener:r},o=y.bind(n);return o.listener=r,n.wrapFn=o,o}function M(t,e,r){var n=t._events;if(void 0===n)return[];var o=n[e];return void 0===o?[]:"function"==typeof o?r?[o.listener||o]:[o]:r?function(t){for(var e=new Array(t.length),i=0;i<e.length;++i)e[i]=t[i].listener||t[i];return e}(o):S(o,o.length)}function _(t){var e=this._events;if(void 0!==e){var r=e[t];if("function"==typeof r)return 1;if(void 0!==r)return r.length}return 0}function S(t,e){for(var r=new Array(e),i=0;i<e;++i)r[i]=t[i];return r}Object.defineProperty(f,"defaultMaxListeners",{enumerable:!0,get:function(){return l},set:function(t){if("number"!=typeof t||t<0||c(t))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+t+".");l=t}}),f.init=function(){void 0!==this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},f.prototype.setMaxListeners=function(t){if("number"!=typeof t||t<0||c(t))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+t+".");return this._maxListeners=t,this},f.prototype.getMaxListeners=function(){return m(this)},f.prototype.emit=function(t){for(var e=[],i=1;i<arguments.length;i++)e.push(arguments[i]);var r="error"===t,n=this._events;if(void 0!==n)r=r&&void 0===n.error;else if(!r)return!1;if(r){var o;if(e.length>0&&(o=e[0]),o instanceof Error)throw o;var c=new Error("Unhandled error."+(o?" ("+o.message+")":""));throw c.context=o,c}var f=n[t];if(void 0===f)return!1;if("function"==typeof f)h(f,this,e);else{var l=f.length,d=S(f,l);for(i=0;i<l;++i)h(d[i],this,e)}return!0},f.prototype.addListener=function(t,e){return v(this,t,e,!1)},f.prototype.on=f.prototype.addListener,f.prototype.prependListener=function(t,e){return v(this,t,e,!0)},f.prototype.once=function(t,e){return d(e),this.on(t,w(this,t,e)),this},f.prototype.prependOnceListener=function(t,e){return d(e),this.prependListener(t,w(this,t,e)),this},f.prototype.removeListener=function(t,e){var r,n,o,i,h;if(d(e),void 0===(n=this._events))return this;if(void 0===(r=n[t]))return this;if(r===e||r.listener===e)0==--this._eventsCount?this._events=Object.create(null):(delete n[t],n.removeListener&&this.emit("removeListener",t,r.listener||e));else if("function"!=typeof r){for(o=-1,i=r.length-1;i>=0;i--)if(r[i]===e||r[i].listener===e){h=r[i].listener,o=i;break}if(o<0)return this;0===o?r.shift():function(t,e){for(;e+1<t.length;e++)t[e]=t[e+1];t.pop()}(r,o),1===r.length&&(n[t]=r[0]),void 0!==n.removeListener&&this.emit("removeListener",t,h||e)}return this},f.prototype.off=f.prototype.removeListener,f.prototype.removeAllListeners=function(t){var e,r,i;if(void 0===(r=this._events))return this;if(void 0===r.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==r[t]&&(0==--this._eventsCount?this._events=Object.create(null):delete r[t]),this;if(0===arguments.length){var n,o=Object.keys(r);for(i=0;i<o.length;++i)"removeListener"!==(n=o[i])&&this.removeAllListeners(n);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(e=r[t]))this.removeListener(t,e);else if(void 0!==e)for(i=e.length-1;i>=0;i--)this.removeListener(t,e[i]);return this},f.prototype.listeners=function(t){return M(this,t,!0)},f.prototype.rawListeners=function(t){return M(this,t,!1)},f.listenerCount=function(t,e){return"function"==typeof t.listenerCount?t.listenerCount(e):_.call(t,e)},f.prototype.listenerCount=_,f.prototype.eventNames=function(){return this._eventsCount>0?n(this._events):[]}},function(t,e,r){"use strict";var n=r(123),o=Object.keys||function(t){var e=[];for(var r in t)e.push(r);return e};t.exports=v;var h=Object.create(r(94));h.inherits=r(6);var c=r(243),f=r(162);h.inherits(v,c);for(var l=o(f.prototype),d=0;d<l.length;d++){var m=l[d];v.prototype[m]||(v.prototype[m]=f.prototype[m])}function v(t){if(!(this instanceof v))return new v(t);c.call(this,t),f.call(this,t),t&&!1===t.readable&&(this.readable=!1),t&&!1===t.writable&&(this.writable=!1),this.allowHalfOpen=!0,t&&!1===t.allowHalfOpen&&(this.allowHalfOpen=!1),this.once("end",y)}function y(){this.allowHalfOpen||this._writableState.ended||n.nextTick(w,this)}function w(t){t.end()}Object.defineProperty(v.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(v.prototype,"destroyed",{get:function(){return void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed&&this._writableState.destroyed)},set:function(t){void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed=t,this._writableState.destroyed=t)}}),v.prototype._destroy=function(t,e){this.push(null),this.end(),n.nextTick(e,t)}},function(t,e,r){"use strict";r.d(e,"a",(function(){return c}));for(var n={},o={},i=0;i<256;i++){var h=i.toString(16).toLowerCase();1===h.length&&(h="0"+h),n[i]=h,o[h]=i}function c(t){for(var e="",i=0;i<t.byteLength;i++)e+=n[t[i]];return e}},,,,,function(t,e,r){"use strict";(function(e,n){var o=r(7).Buffer,h=e.crypto||e.msCrypto;h&&h.getRandomValues?t.exports=function(t,e){if(t>4294967295)throw new RangeError("requested too many random bytes");var r=o.allocUnsafe(t);if(t>0)if(t>65536)for(var c=0;c<t;c+=65536)h.getRandomValues(r.slice(c,c+65536));else h.getRandomValues(r);if("function"==typeof e)return n.nextTick((function(){e(null,r)}));return r}:t.exports=function(){throw new Error("Secure random number generation is not supported by this browser.\nUse Chrome, Firefox or Internet Explorer 11")}}).call(this,r(18),r(33))},function(t,e,r){"use strict";var n={};function o(code,t,e){e||(e=Error);var r=function(e){var r,n;function o(r,n,o){return e.call(this,function(e,r,n){return"string"==typeof t?t:t(e,r,n)}(r,n,o))||this}return n=e,(r=o).prototype=Object.create(n.prototype),r.prototype.constructor=r,r.__proto__=n,o}(e);r.prototype.name=e.name,r.prototype.code=code,n[code]=r}function h(t,e){if(Array.isArray(t)){var r=t.length;return t=t.map((function(i){return String(i)})),r>2?"one of ".concat(e," ").concat(t.slice(0,r-1).join(", "),", or ")+t[r-1]:2===r?"one of ".concat(e," ").concat(t[0]," or ").concat(t[1]):"of ".concat(e," ").concat(t[0])}return"of ".concat(e," ").concat(String(t))}o("ERR_INVALID_OPT_VALUE",(function(t,e){return'The value "'+e+'" is invali
11d for option "'+t+'"'}),TypeError),o("ERR_INVALID_ARG_TYPE",(function(t,e,r){var n,o,c,f;if("string"==typeof e&&(o="not ",e.substr(!c||c<0?0:+c,o.length)===o)?(n="must not be",e=e.replace(/^not /,"")):n="must be",function(t,e,r){return(void 0===r||r>t.length)&&(r=t.length),t.substring(r-e.length,r)===e}(t," argument"))f="The ".concat(t," ").concat(n," ").concat(h(e,"type"));else{var l=function(t,e,r){return"number"!=typeof r&&(r=0),!(r+e.length>t.length)&&-1!==t.indexOf(e,r)}(t,".")?"property":"argument";f='The "'.concat(t,'" ').concat(l," ").concat(n," ").concat(h(e,"type"))}return f+=". Received type ".concat(typeof r)}),TypeError),o("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),o("ERR_METHOD_NOT_IMPLEMENTED",(function(t){return"The "+t+" method is not implemented"})),o("ERR_STREAM_PREMATURE_CLOSE","Premature close"),o("ERR_STREAM_DESTROYED",(function(t){return"Cannot call "+t+" after a stream was destroyed"})),o("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),o("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),o("ERR_STREAM_WRITE_AFTER_END","write after end"),o("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),o("ERR_UNKNOWN_ENCODING",(function(t){return"Unknown encoding: "+t}),TypeError),o("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),t.exports.codes=n},function(t,e,r){"use strict";(function(e){var n=Object.keys||function(t){var e=[];for(var r in t)e.push(r);return e};t.exports=d;var o=r(234),h=r(238);r(6)(d,o);for(var c=n(h.prototype),f=0;f<c.length;f++){var l=c[f];d.prototype[l]||(d.prototype[l]=h.prototype[l])}function d(t){if(!(this instanceof d))return new d(t);o.call(this,t),h.call(this,t),this.allowHalfOpen=!0,t&&(!1===t.readable&&(this.readable=!1),!1===t.writable&&(this.writable=!1),!1===t.allowHalfOpen&&(this.allowHalfOpen=!1,this.once("end",m)))}function m(){this._writableState.ended||e.nextTick(v,this)}function v(t){t.end()}Object.defineProperty(d.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(d.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(d.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(d.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed&&this._writableState.destroyed)},set:function(t){void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed=t,this._writableState.destroyed=t)}})}).call(this,r(33))},function(t,e,r){var n=r(7).Buffer;function o(t,e){this._block=n.alloc(t),this._finalSize=e,this._blockSize=t,this._len=0}o.prototype.update=function(data,t){"string"==typeof data&&(t=t||"utf8",data=n.from(data,t));for(var e=this._block,r=this._blockSize,o=data.length,h=this._len,c=0;c<o;){for(var f=h%r,l=Math.min(o-c,r-f),i=0;i<l;i++)e[f+i]=data[c+i];c+=l,(h+=l)%r==0&&this._update(e)}return this._len+=o,this},o.prototype.digest=function(t){var e=this._len%this._blockSize;this._block[e]=128,this._block.fill(0,e+1),e>=this._finalSize&&(this._update(this._block),this._block.fill(0));var r=8*this._len;if(r<=4294967295)this._block.writeUInt32BE(r,this._blockSize-4);else{var n=(4294967295&r)>>>0,o=(r-n)/4294967296;this._block.writeUInt32BE(o,this._blockSize-8),this._block.writeUInt32BE(n,this._blockSize-4)}this._update(this._block);var h=this._hash();return t?h.toString(t):h},o.prototype._update=function(){throw new Error("_update must be implemented by subclass")},t.exports=o},function(t,e,r){"use strict";r.r(e),r.d(e,"fromUtf8",(function(){return n})),r.d(e,"toUtf8",(function(){return o}));var n=function(input){return"function"==typeof TextEncoder?function(input){return(new TextEncoder).encode(input)}(input):function(input){for(var t=[],i=0,e=input.length;i<e;i++){var r=input.charCodeAt(i);if(r<128)t.push(r);else if(r<2048)t.push(r>>6|192,63&r|128);else if(i+1<input.length&&55296==(64512&r)&&56320==(64512&input.charCodeAt(i+1))){var n=65536+((1023&r)<<10)+(1023&input.charCodeAt(++i));t.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}else t.push(r>>12|224,r>>6&63|128,63&r|128)}return Uint8Array.from(t)}(input)},o=function(input){return"function"==typeof TextDecoder?function(input){return new TextDecoder("utf-8").decode(input)}(input):function(input){for(var t="",i=0,e=input.length;i<e;i++){var r=input[i];if(r<128)t+=String.fromCharCode(r);else if(192<=r&&r<224){var n=input[++i];t+=String.fromCharCode((31&r)<<6|63&n)}else if(240<=r&&r<365){var o="%"+[r,input[++i],input[++i],input[++i]].map((function(t){return t.toString(16)})).join("%");t+=decodeURIComponent(o)}
11else t+=String.fromCharCode((15&r)<<12|(63&input[++i])<<6|63&input[++i])}return t}(input)}},function(t,e,r){var n;t.exports=(n=r(28),r(98),r(401),n.HmacSHA256)},,function(t,e,r){"use strict";var n={name:"NoSsr",functional:!0,props:{placeholder:String,placeholderTag:{type:String,default:"div"}},render:function(t,e){var r=e.parent,n=e.slots,o=e.props,h=n(),c=h.default;void 0===c&&(c=[]);var f=h.placeholder;return r._isMounted?c:(r.$once("hook:mounted",(function(){r.$forceUpdate()})),o.placeholderTag&&(o.placeholder||f)?t(o.placeholderTag,{class:["no-ssr-placeholder"]},o.placeholder||f):c.length>0?c.map((function(){return t(!1)})):t(!1))}};t.exports=n},function(t,e,r){"use strict";r.d(e,"a",(function(){return c}));var n=function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,o,i=r.call(t),h=[];try{for(;(void 0===e||e-- >0)&&!(n=i.next()).done;)h.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return h},o=function(){for(var t=[],i=0;i<arguments.length;i++)t=t.concat(n(arguments[i]));return t},h={VERBOSE:1,DEBUG:2,INFO:3,WARN:4,ERROR:5},c=function(){function t(t,e){void 0===e&&(e="WARN"),this.name=t,this.level=e}return t.prototype._padding=function(t){return t<10?"0"+t:""+t},t.prototype._ts=function(){var dt=new Date;return[this._padding(dt.getMinutes()),this._padding(dt.getSeconds())].join(":")+"."+dt.getMilliseconds()},t.prototype._log=function(e){for(var r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];var o=this.level;t.LOG_LEVEL&&(o=t.LOG_LEVEL),"undefined"!=typeof window&&window.LOG_LEVEL&&(o=window.LOG_LEVEL);var c=h[o],f=h[e];if(f>=c){var l=console.log.bind(console);"ERROR"===e&&console.error&&(l=console.error.bind(console)),"WARN"===e&&console.warn&&(l=console.warn.bind(console));var d="["+e+"] "+this._ts()+" "+this.name;if(1===r.length&&"string"==typeof r[0])l(d+" - "+r[0]);else if(1===r.length)l(d,r[0]);else if("string"==typeof r[0]){var m=r.slice(1);1===m.length&&(m=m[0]),l(d+" - "+r[0],m)}else l(d,r)}},t.prototype.log=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];this._log.apply(this,o(["INFO"],t))},t.prototype.info=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];this._log.apply(this,o(["INFO"],t))},t.prototype.warn=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];this._log.apply(this,o(["WARN"],t))},t.prototype.error=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];this._log.apply(this,o(["ERROR"],t))},t.prototype.debug=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];this._log.apply(this,o(["DEBUG"],t))},t.prototype.verbose=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];this._log.apply(this,o(["VERBOSE"],t))},t.LOG_LEVEL=null,t}()},,,function(t,e,r){"use strict";t.exports=function(t){var e=[];return e.toString=function(){return this.map((function(e){var content=function(t,e){var content=t[1]||"",r=t[3];if(!r)return content;if(e&&"function"==typeof btoa){var n=(h=r,c=btoa(unescape(encodeURIComponent(JSON.stringify(h)))),data="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(c),"/*# ".concat(data," */")),o=r.sources.map((function(source){return"/*# sourceURL=".concat(r.sourceRoot||"").concat(source," */")}));return[content].concat(o).concat([n]).join("\n")}var h,c,data;return[content].join("\n")}(e,t);return e[2]?"@media ".concat(e[2]," {").concat(content,"}"):content})).join("")},e.i=function(t,r,n){"string"==typeof t&&(t=[[null,t,""]]);var o={};if(n)for(var i=0;i<this.length;i++){var h=this[i][0];null!=h&&(o[h]=!0)}for(var c=0;c<t.length;c++){var f=[].concat(t[c]);n&&o[f[0]]||(r&&(f[2]?f[2]="".concat(r," and ").concat(f[2]):f[2]=r),e.push(f))}},e}},function(t,e,r){"use strict";function n(t,e){for(var r=[],n={},i=0;i<e.length;i++){var o=e[i],h=o[0],c={id:t+":"+i,css:o[1],media:o[2],sourceMap:o[3]};n[h]?n[h].parts.push(c):r.push(n[h]={id:h,parts:[c]})}return r}r.r(e),r.d(e,"default",(function(){return y}));var o="undefined"!=typeof document;if("undefined"!=typeof DEBUG&&DEBUG&&!o)throw new Error("vue-style-loader cannot be used in a non-browser environment. Use { target: 'node' } in your Webpack config to indicate a server-rendering environment.");var h={},head=o&&(document.head||document.getElementsByTagName("head")[0]),c=null,f=0,l=!1,d=function(){},m=null,v="undefined"!=typeof navigator&&/msie [6-9]\b/.test(navigator.userAgent.toLowerCase());function y(t,e,r,o){l=r,m=o||{};var c=n(t,e);return w(c),function(e){for(var r=[],i=0;i<c.length;i++){var o=c[i];(f=h[o.id]).refs--,r.push(f)}e?w(c=n(t,e)):c=[];for(i=0;i<r.length;i++){var f;if(0===(f=r[i]).refs){for(var l=0;l<f.parts.length;l++)f.parts[l]();delete h[f.id]}}}}function w(t){for(var i=0;i<t.length;i++){var e=t[i],r=h[e.id];if(r){r.refs++;for(var n=0;n<r.parts.length;n++)r.parts[n](e.parts[n]);for(;n<e.parts.length;n++)r.parts.push(_(e.parts[n]));r.parts.length>e.parts.length&&(r.parts.length=e.parts.length)}else{var o=[];for(n=0;n<e.parts.length;n++)o.push(_(e.parts[n]));h[e.id]={id:e.id,refs:1,parts:o}}}}function M(){var t=document.createElement("style");return t.type="text/css",head.appendChild(t),t}function _(t){var e,r,n=document.querySelector('style[data-vue-ssr-id~="'+t.i
11d+'"]');if(n){if(l)return d;n.parentNode.removeChild(n)}if(v){var o=f++;n=c||(c=M()),e=x.bind(null,n,o,!1),r=x.bind(null,n,o,!0)}else n=M(),e=k.bind(null,n),r=function(){n.parentNode.removeChild(n)};return e(t),function(n){if(n){if(n.css===t.css&&n.media===t.media&&n.sourceMap===t.sourceMap)return;e(t=n)}else r()}}var S,A=(S=[],function(t,e){return S[t]=e,S.filter(Boolean).join("\n")});function x(t,e,r,n){var o=r?"":n.css;if(t.styleSheet)t.styleSheet.cssText=A(e,o);else{var h=document.createTextNode(o),c=t.childNodes;c[e]&&t.removeChild(c[e]),c.length?t.insertBefore(h,c[e]):t.appendChild(h)}}function k(t,e){var r=e.css,n=e.media,o=e.sourceMap;if(n&&t.setAttribute("media",n),m.ssrId&&t.setAttribute("data-vue-ssr-id",e.id),o&&(r+="\n/*# sourceURL="+o.sources[0]+" */",r+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(o))))+" */"),t.styleSheet)t.styleSheet.cssText=r;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(r))}}},,,,,,,,,,,function(t,e,r){"use strict";var n=r(6),o=r(157),h=r(159),c=r(160),f=r(56);function l(t){f.call(this,"digest"),this._hash=t}n(l,f),l.prototype._update=function(data){this._hash.update(data)},l.prototype._final=function(){return this._hash.digest()},t.exports=function(t){return"md5"===(t=t.toLowerCase())?new o:"rmd160"===t||"ripemd160"===t?new h:new l(c(t))}},function(t,e,r){"use strict";var n=r(407).Buffer,o=n.isEncoding||function(t){switch((t=""+t)&&t.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 h(t){var e;switch(this.encoding=function(t){var e=function(t){if(!t)return"utf8";for(var e;;)switch(t){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 t;default:if(e)return;t=(""+t).toLowerCase(),e=!0}}(t);if("string"!=typeof e&&(n.isEncoding===o||!o(t)))throw new Error("Unknown encoding: "+t);return e||t}(t),this.encoding){case"utf16le":this.text=l,this.end=d,e=4;break;case"utf8":this.fillLast=f,e=4;break;case"base64":this.text=m,this.end=v,e=3;break;default:return this.write=y,void(this.end=w)}this.lastNeed=0,this.lastTotal=0,this.lastChar=n.allocUnsafe(e)}function c(t){return t<=127?0:t>>5==6?2:t>>4==14?3:t>>3==30?4:t>>6==2?-1:-2}function f(t){var p=this.lastTotal-this.lastNeed,e=function(t,e,p){if(128!=(192&e[0]))return t.lastNeed=0,"�";if(t.lastNeed>1&&e.length>1){if(128!=(192&e[1]))return t.lastNeed=1,"�";if(t.lastNeed>2&&e.length>2&&128!=(192&e[2]))return t.lastNeed=2,"�"}}(this,t);return void 0!==e?e:this.lastNeed<=t.length?(t.copy(this.lastChar,p,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(t.copy(this.lastChar,p,0,t.length),void(this.lastNeed-=t.length))}function l(t,i){if((t.length-i)%2==0){var e=t.toString("utf16le",i);if(e){var r=e.charCodeAt(e.length-1);if(r>=55296&&r<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1],e.slice(0,-1)}return e}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=t[t.length-1],t.toString("utf16le",i,t.length-1)}function d(t){var e=t&&t.length?this.write(t):"";if(this.lastNeed){var r=this.lastTotal-this.lastNeed;return e+this.lastChar.toString("utf16le",0,r)}return e}function m(t,i){var e=(t.length-i)%3;return 0===e?t.toString("base64",i):(this.lastNeed=3-e,this.lastTotal=3,1===e?this.lastChar[0]=t[t.length-1]:(this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1]),t.toString("base64",i,t.length-e))}function v(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+this.lastChar.toString("base64",0,3-this.lastNeed):e}function y(t){return t.toString(this.encoding)}function w(t){return t&&t.length?this.write(t):""}e.StringDecoder=h,h.prototype.write=function(t){if(0===t.length)return"";var e,i;if(this.lastNeed){if(void 0===(e=this.fillLast(t)))return"";i=this.lastNeed,this.lastNeed=0}else i=0;return i<t.length?e?e+this.text(t,i):this.text(t,i):e||""},h.prototype.end=function(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+"�":e}
11,h.prototype.text=function(t,i){var e=function(t,e,i){var r=e.length-1;if(r<i)return 0;var n=c(e[r]);if(n>=0)return n>0&&(t.lastNeed=n-1),n;if(--r<i||-2===n)return 0;if((n=c(e[r]))>=0)return n>0&&(t.lastNeed=n-2),n;if(--r<i||-2===n)return 0;if((n=c(e[r]))>=0)return n>0&&(2===n?n=0:t.lastNeed=n-3),n;return 0}(this,t,i);if(!this.lastNeed)return t.toString("utf8",i);this.lastTotal=e;var r=t.length-(e-this.lastNeed);return t.copy(this.lastChar,0,r),t.toString("utf8",i,r)},h.prototype.fillLast=function(t){if(this.lastNeed<=t.length)return t.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);t.copy(this.lastChar,this.lastTotal-this.lastNeed,0,t.length),this.lastNeed-=t.length}},function(t,e,r){(function(t){function r(t){return Object.prototype.toString.call(t)}e.isArray=function(t){return Array.isArray?Array.isArray(t):"[object Array]"===r(t)},e.isBoolean=function(t){return"boolean"==typeof t},e.isNull=function(t){return null===t},e.isNullOrUndefined=function(t){return null==t},e.isNumber=function(t){return"number"==typeof t},e.isString=function(t){return"string"==typeof t},e.isSymbol=function(t){return"symbol"==typeof t},e.isUndefined=function(t){return void 0===t},e.isRegExp=function(t){return"[object RegExp]"===r(t)},e.isObject=function(t){return"object"==typeof t&&null!==t},e.isDate=function(t){return"[object Date]"===r(t)},e.isError=function(t){return"[object Error]"===r(t)||t instanceof Error},e.isFunction=function(t){return"function"==typeof t},e.isPrimitive=function(t){return null===t||"boolean"==typeof t||"number"==typeof t||"string"==typeof t||"symbol"==typeof t||void 0===t},e.isBuffer=t.isBuffer}).call(this,r(5).Buffer)},function(t,e,r){(function(e){t.exports=function(a,b){for(var t=Math.min(a.length,b.length),r=new e(t),i=0;i<t;++i)r[i]=a[i]^b[i];return r}}).call(this,r(5).Buffer)},function(t,e,r){"use strict";var n=r(42),o=r(40);function h(){this.pending=null,this.pendingTotal=0,this.blockSize=this.constructor.blockSize,this.outSize=this.constructor.outSize,this.hmacStrength=this.constructor.hmacStrength,this.padLength=this.constructor.padLength/8,this.endian="big",this._delta8=this.blockSize/8,this._delta32=this.blockSize/32}e.BlockHash=h,h.prototype.update=function(t,e){if(t=n.toArray(t,e),this.pending?this.pending=this.pending.concat(t):this.pending=t,this.pendingTotal+=t.length,this.pending.length>=this._delta8){var r=(t=this.pending).length%this._delta8;this.pending=t.slice(t.length-r,t.length),0===this.pending.length&&(this.pending=null),t=n.join32(t,0,t.length-r,this.endian);for(var i=0;i<t.length;i+=this._delta32)this._update(t,i,i+this._delta32)}return this},h.prototype.digest=function(t){return this.update(this._pad()),o(null===this.pending),this._digest(t)},h.prototype._pad=function(){var t=this.pendingTotal,e=this._delta8,r=e-(t+this.padLength)%e,n=new Array(r+this.padLength);n[0]=128;for(var i=1;i<r;i++)n[i]=0;if(t<<=3,"big"===this.endian){for(var o=8;o<this.padLength;o++)n[i++]=0;n[i++]=0,n[i++]=0,n[i++]=0,n[i++]=0,n[i++]=t>>>24&255,n[i++]=t>>>16&255,n[i++]=t>>>8&255,n[i++]=255&t}else for(n[i++]=255&t,n[i++]=t>>>8&255,n[i++]=t>>>16&255,n[i++]=t>>>24&255,n[i++]=0,n[i++]=0,n[i++]=0,n[i++]=0,o=8;o<this.padLength;o++)n[i++]=0;return n}},function(t,e,r){"use strict";const n=r(6),o=r(175).Reporter,h=r(173).Buffer;function c(base,t){o.call(this,t),h.isBuffer(base)?(this.base=base,this.offset=0,this.length=base.length):this.error("Input not Buffer")}function f(t,e){if(Array.isArray(t))this.length=0,this.value=t.map((function(t){return f.isEncoderBuffer(t)||(t=new f(t,e)),this.length+=t.length,t}),this);else if("number"==typeof t){if(!(0<=t&&t<=255))return e.error("non-byte EncoderBuffer value");this.value=t,this.length=1}else if("string"==typeof t)this.value=t,this.length=h.byteLength(t);else{if(!h.isBuffer(t))return e.error("Unsupported type: "+typeof t);this.value=t,this.length=t.length}}n(c,o),e.DecoderBuffer=c,c.isDecoderBuffer=function(data){if(data instanceof c)return!0;return"object"==typeof data&&h.isBuffer(data.base)&&"DecoderBuffer"===data.constructor.name&&"number"==typeof data.offset&&"number"==typeof data.length&&"function"==typeof data.save&&"function"==typeof data.restore&&"function"==typeof data.isEmpty&&"function"==typeof data.readUInt8&&"function"==typeof data.skip&&"function"==typeof data.raw},c.prototype.save=function(){return{offset:this.offset,reporter:o.prototype.save.call(this)}},c.prototype.restore=function(t){const e=new c(this.base);return e.offset=t.offset,e.length=this.offset,this.offset=t.offset,o.prototype.restore.call(this,t.reporter),e},c.prototype.isEmpty=function(){return this.offset===this.length},c.prototype.readUInt8=function(t){return this.offset+1<=this.length?this.base.readUInt8(this.offset++,!0):this.error(t||"DecoderBuffer overrun")},c.prototype.skip=function(t,e){if(!(this.offset+t<=this.length))return this.error(e||"DecoderBuffer overrun");const r=new c(this.base);return r._reporterState=this._reporterState,r.offset=this.offset,r.length=this.offset+t,this.offset+=t,r},c.prototype.raw=function(t){return this.base.slice(t?t.offset:this.offset,this.length)},e.EncoderBuffer=f,f.isEncoderBuffer=function(data){if(data instanceof f)return!0;return"object"==typeof data&&"EncoderBuffer"===data.constructor.name&&"number"==typeof data.length&&"function"==typeof data.join},f.prototype.join=function(t,e){return t||(t=h.alloc(this.length)),e||(e=0),0===this.length||(Array.isArray(this.value)?this.value.forEach((function(r){r.join(t,e),e+=r.length})):("number"==typeof this.value?t[e]=this.value:"string"==typeof this.value?t.write(this.value,e):h.isBuffer(this.value)&&this.value.copy(t,e),e+=this.length)),t}},function(t,e,r){var n;t.exports=(n=r(28),function(t){var e=n,r=e.lib,o=r.WordArray,h=r.Hasher,c=e.algo,f=[],l=[];!function(){function e(e){for(var r=t.sqrt(e),n=2;n<=r;n++)if(!(e%n))return!1;return!0}function r(t){return 4294967296*(t-(0|t))|0}for(var n=2,o=0;o<64;)e(n)&&(o<8&&(f[o]=r(t.pow(n,.5))),l[o]=r(t.pow(n,1/3)),o++),n++}();var d=[],m=c.SHA256=h.extend({_doReset:function(){this._hash=new o.init(f.slice(0))},_doProcessBlock:function(t,e){for(var r=this._hash.words,a=r[0],b=r[1],n=r[2],o=r[3],h=r[4],c=r[5],g=r[6],f=r[7],i=0;i<64;i++){if(i<16)d[i]=0|t[e+i];else{var m=d[i-15],v=(m<<25|m>>>7)^(m<<14|m>>>18)^m>>>3,y=d[i-2],w=(y<<15|y>>>17)^(y<<13|y>>>19)^y>>>10;d[i]=v+d[i-7]+w+d[i-16]}var M=a&b^a&n^b&n,_=(a<<30|a>>>2)^(a<<19|a>>>13)^(a<<10|a>>>22),S=f+((h<<26|h>>>6)^(h<<21|h>>>11)^(h<<7|h>>>25))+(h&c^~h&g)+l[i]+d[i];f=g,g=c,c=h,h=o+S|0,o=n,n=b,b=a,a=S+(_+M)|0}r[0]=r[0]+a|0,r[1]=r[1]+b|0,r[2]=r[2]+n|0,r[3]=r[3]+o|0,r[4]=r[4]+h|0,r[5]=r[5]+c|0,r[6]=r[6]+g|0,r[7]=r[7]+f|0},_doFinalize:function(){var data=this._data,e=data.words,r=8*this._nDataBytes,n=8*data.sigBytes;return e[n>>>5]|=128<<24-n%32,e[14+(n+64>>>9<<4)]=t.floor(r/4294967296),e[15+(n+64>>>9<<4)]=r,data.sigBytes=4*e.length,this._process(),this._hash},clone:function(){var t=h.clone.call(this);return t._hash=this._hash.clone(),t}});e.SHA256=h._createHelper(m),e.HmacSHA256=h._createHmacHelper(m)}(Math),n.SHA256)},,,function(t,e,r){var n,o,h;t.exports=(h=r(28),o=(n=h).lib.WordArray,n.enc.Base64={stringify:function(t){var e=t.words,r=t.sigBytes,map=this._map;t.clamp();for(var n=[],i=0;i<r;i+=3)for(var o=(e[i>>>2]>>>24-i%4*8&255)<<16|(e[i+1>>>2]>>>24-(i+1)%4*8&255)<<8|e[i+2>>>2]>>>24-(i+2)%4*8&255,h=0;h<4&&i+.75*h<r;h++)n.push(map.charAt(o>>>6*(3-h)&63));var c=map.charAt(64);if(c)for(;n.length%4;)n.push(c);return n.join("")},parse:function(t){var e=t.length,map=this._map,r=this._reverseMap;if(!r){r=this._reverseMap=[];for(var n=0;n<map.length;
11n++)r[map.charCodeAt(n)]=n}var h=map.charAt(64);if(h){var c=t.indexOf(h);-1!==c&&(e=c)}return function(t,e,r){for(var n=[],h=0,i=0;i<e;i++)if(i%4){var c=r[t.charCodeAt(i-1)]<<i%4*2,f=r[t.charCodeAt(i)]>>>6-i%4*2;n[h>>>2]|=(c|f)<<24-h%4*8,h++}return o.create(n,h)}(t,e,r)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="},h.enc.Base64)},,,,,,,,,,,,,,,,,,,,,function(t,e,r){"use strict";t.exports=function(t,e){if(Array.isArray(t))for(var i=0;i<t.length;i++)if(e(t[i]))return t[i]}},function(t,e,r){"use strict";(function(e){void 0===e||!e.version||0===e.version.indexOf("v0.")||0===e.version.indexOf("v1.")&&0!==e.version.indexOf("v1.8.")?t.exports={nextTick:function(t,r,n,o){if("function"!=typeof t)throw new TypeError('"callback" argument must be a function');var h,i,c=arguments.length;switch(c){case 0:case 1:return e.nextTick(t);case 2:return e.nextTick((function(){t.call(null,r)}));case 3:return e.nextTick((function(){t.call(null,r,n)}));case 4:return e.nextTick((function(){t.call(null,r,n,o)}));default:for(h=new Array(c-1),i=0;i<h.length;)h[i++]=arguments[i];return e.nextTick((function(){t.apply(null,h)}))}}}:t.exports=e}).call(this,r(33))},function(t,e,r){var n=r(7).Buffer;function o(t){n.isBuffer(t)||(t=n.from(t));for(var e=t.length/4|0,r=new Array(e),i=0;i<e;i++)r[i]=t.readUInt32BE(4*i);return r}function h(t){for(;0<t.length;t++)t[0]=0}function c(t,e,r,n,o){for(var h,c,f,l,d=r[0],m=r[1],v=r[2],y=r[3],w=t[0]^e[0],M=t[1]^e[1],_=t[2]^e[2],S=t[3]^e[3],A=4,x=1;x<o;x++)h=d[w>>>24]^m[M>>>16&255]^v[_>>>8&255]^y[255&S]^e[A++],c=d[M>>>24]^m[_>>>16&255]^v[S>>>8&255]^y[255&w]^e[A++],f=d[_>>>24]^m[S>>>16&255]^v[w>>>8&255]^y[255&M]^e[A++],l=d[S>>>24]^m[w>>>16&255]^v[M>>>8&255]^y[255&_]^e[A++],w=h,M=c,_=f,S=l;return h=(n[w>>>24]<<24|n[M>>>16&255]<<16|n[_>>>8&255]<<8|n[255&S])^e[A++],c=(n[M>>>24]<<24|n[_>>>16&255]<<16|n[S>>>8&255]<<8|n[255&w])^e[A++],f=(n[_>>>24]<<24|n[S>>>16&255]<<16|n[w>>>8&255]<<8|n[255&M])^e[A++],l=(n[S>>>24]<<24|n[w>>>16&255]<<16|n[M>>>8&255]<<8|n[255&_])^e[A++],[h>>>=0,c>>>=0,f>>>=0,l>>>=0]}var f=[0,1,2,4,8,16,32,64,128,27,54],l=function(){for(var t=new Array(256),e=0;e<256;e++)t[e]=e<128?e<<1:e<<1^283;for(var r=[],n=[],o=[[],[],[],[]],h=[[],[],[],[]],c=0,f=0,i=0;i<256;++i){var l=f^f<<1^f<<2^f<<3^f<<4;l=l>>>8^255&l^99,r[c]=l,n[l]=c;var d=t[c],m=t[d],v=t[m],y=257*t[l]^16843008*l;o[0][c]=y<<24|y>>>8,o[1][c]=y<<16|y>>>16,o[2][c]=y<<8|y>>>24,o[3][c]=y,y=16843009*v^65537*m^257*d^16843008*c,h[0][l]=y<<24|y>>>8,h[1][l]=y<<16|y>>>16,h[2][l]=y<<8|y>>>24,h[3][l]=y,0===c?c=f=1:(c=d^t[t[t[v^d]]],f^=t[t[f]])}return{SBOX:r,INV_SBOX:n,SUB_MIX:o,INV_SUB_MIX:h}}();function d(t){this._key=o(t),this._reset()}d.blockSize=16,d.keySize=32,d.prototype.blockSize=d.blockSize,d.prototype.keySize=d.keySize,d.prototype._reset=function(){for(var t=this._key,e=t.length,r=e+6,n=4*(r+1),o=[],h=0;h<e;h++)o[h]=t[h];for(h=e;h<n;h++){var c=o[h-1];h%e==0?(c=c<<8|c>>>24,c=l.SBOX[c>>>24]<<24|l.SBOX[c>>>16&255]<<16|l.SBOX[c>>>8&255]<<8|l.SBOX[255&c],c^=f[h/e|0]<<24):e>6&&h%e==4&&(c=l.SBOX[c>>>24]<<24|l.SBOX[c>>>16&255]<<16|l.SBOX[c>>>8&255]<<8|l.SBOX[255&c]),o[h]=o[h-e]^c}for(var d=[],m=0;m<n;m++){var v=n-m,y=o[v-(m%4?0:4)];d[m]=m<4||v<=4?y:l.INV_SUB_MIX[0][l.SBOX[y>>>24]]^l.INV_SUB_MIX[1][l.SBOX[y>>>16&255]]^l.INV_SUB_MIX[2][l.SBOX[y>>>8&255]]^l.INV_SUB_MIX[3][l.SBOX[255&y]]}this._nRounds=r,this._keySchedule=o,this._invKeySchedule=d},d.prototype.encryptBlockRaw=function(t){return c(t=o(t),this._keySchedule,l.SUB_MIX,l.SBOX,this._nRounds)},d.prototype.encryptBlock=function(t){var e=this.encryptBlockRaw(t),r=n.allocUnsafe(16);return r.writeUInt32BE(e[0],0),r.writeUInt32BE(e[1],4),r.writeUInt32BE(e[2],8),r.writeUInt32BE(e[3],12),r},d.prototype.decryptBlock=function(t){var e=(t=o(t))[1];t[1]=t[3],t[3]=e;var r=c(t,this._invKeySchedule,l.INV_SUB_MIX,l.INV_SBOX,this._nRounds),h=n.allocUnsafe(16);return h.writeUInt32BE(r[0],0),h.writeUInt32BE(r[3],4),h.writeUInt32BE(r[2],8),h.writeUInt32BE(r[1],12),h},d.prototype.scrub=function(){h(this._keySchedule),h(this._invKeySchedule),h(this._key)},t.exports.AES=d},function(t,e,r){var n=r(7).Buffer,o=r(157);t.exports=function(t,e,r,h){if(n.isBuffer(t)||(t=n.from(t,"binary")),e&&(n.isBuffer(e)||(e=n.from(e,"binary")),8!==e.length))throw new RangeError("salt should be Buffer with 8 byte length");for(var c=r/8,f=n.alloc(c),l=n.alloc(h||0),d=n.alloc(0);c>0||h>0;){var m=new o;m.update(d),m.update(t),e&&m.update(e),d=m.digest();var v=0;if(c>0){var y=f.length-c;v=Math.min(c,d.length),d.copy(f,y,0,v),c-=v}if(v<d.length&&h>0){var w=l.length-h,M=Math.min(h,d.length-v);d.copy(l,w,v,v+M),h-=M}}return d.fill(0),{key:f,iv:l}}},function(t,e,r){"use strict";var n=r(46),o=r(41),h=o.getNAF,c=o.getJSF,f=o.assert;function l(t,e){this.type=t,this.p=new n(e.p,16),this.red=e.prime?n.red(e.prime):n.mont(this.p),this.zero=new n(0).toRed(this.red),this.one=new n(1).toRed(this.red),this.two=new n(2).toRed(this.red),this.n=e.n&&new n(e.n,16),this.g=e.g&&this.pointFromJSON(e.g,e.gRed),this._wnafT1=new Array(4),this._wnafT2=new Array(4),this._wnafT3=new Array(4),this._wnafT4=new Array(4),this._bitLength=this.n?this.n.bitLength():0;var r=this.n&&this.p.div(this.n);!r||r.cmpn(100)>0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}
vendor: 1,327 bytes, line 11
11function d(t,e){this.curve=t,this.type=e,this.precomputed=null}t.exports=l,l.prototype.point=function(){throw new Error("Not implemented")},l.prototype.validate=function(){throw new Error("Not implemented")},l.prototype._fixedNafMul=function(p,t){f(p.precomputed);var e=p._getDoubles(),r=h(t,1,this._bitLength),n=(1<<e.step+1)-(e.step%2==0?2:1);n/=3;for(var o=[],c=0;c<r.length;c+=e.step){var l=0;for(t=c+e.step-1;t>=c;t--)l=(l<<1)+r[t];o.push(l)}for(var a=this.jpoint(null,null,null),b=this.jpoint(null,null,null),i=n;i>0;i--){for(c=0;c<o.length;c++){(l=o[c])===i?b=b.mixedAdd(e.points[c]):l===-i&&(b=b.mixedAdd(e.points[c].neg()))}a=a.add(b)}return a.toP()},l.prototype._wnafMul=function(p,t){var e=4,r=p._getNAFPoints(e);e=r.wnd;for(var n=r.points,o=h(t,e,this._bitLength),c=this.jpoint(null,null,null),i=o.length-1;i>=0;i--){for(t=0;i>=0&&0===o[i];i--)t++;if(i>=0&&t++,c=c.dblp(t),i<0)break;var l=o[i];f(0!==l),c="affine"===p.type?l>0?c.mixedAdd(n[l-1>>1]):c.mixedAdd(n[-l-1>>1].neg()):l>0?c.add(n[l-1>>1]):c.add(n[-l-1>>1].neg())}return"affine"===p.type?c.toP():c},l.prototype._wnafMulAdd=function(t,e,r,n,o){for(var f=this._wnafT1,l=this._wnafT2,d=this._wnafT3,m=0,i=0;i<n;i++){var v=(p=e[i])._getNAFPoints(t);f[i]=v.wnd,l[i]=v.points}for(i=n-1;i>=1;i-=2){var a=i-1,b=i;if(1===f[a]&&1===f[b]){var y=[e[a],null,null,e[b]];
110===e[a].y.cmp(e[b].y)?(y[1]=e[a].add(e[b]),y[2]=e[a].toJ().mixedAdd(e[b].neg())):0===e[a].y.cmp(e[b].y.redNeg())?(y[1]=e[a].toJ().mixedAdd(e[b]),y[2]=e[a].add(e[b].neg())):(y[1]=e[a].toJ().mixedAdd(e[b]),y[2]=e[a].toJ().mixedAdd(e[b].neg()));var w=[-3,-1,-5,-7,0,7,5,1,3],M=c(r[a],r[b]);m=Math.max(M[0].length,m),d[a]=new Array(m),d[b]=new Array(m);for(var _=0;_<m;_++){var S=0|M[0][_],A=0|M[1][_];d[a][_]=w[3*(S+1)+(A+1)],d[b][_]=0,l[a]=y}}else d[a]=h(r[a],f[a],this._bitLength),d[b]=h(r[b],f[b],this._bitLength),m=Math.max(d[a].length,m),m=Math.max(d[b].length,m)}var x=this.jpoint(null,null,null),k=this._wnafT4;for(i=m;i>=0;i--){for(var E=0;i>=0;){var C=!0;for(_=0;_<n;_++)k[_]=0|d[_][i],0!==k[_]&&(C=!1);if(!C)break;E++,i--}if(i>=0&&E++,x=x.dblp(E),i<0)break;for(_=0;_<n;_++){var p,R=k[_];0!==R&&(R>0?p=l[_][R-1>>1]:R<0&&(p=l[_][-R-1>>1].neg()),x="affine"===p.type?x.mixedAdd(p):x.add(p))}}for(i=0;i<n;i++)l[i]=null;return o?x:x.toP()},l.BasePoint=d,d.prototype.eq=function(){throw new Error("Not implemented")},d.prototype.validate=function(){return this.curve.validate(this)},l.prototype.decodePoint=function(t,e){t=o.toArray(t,e);var r=this.p.byteLength();if((4===t[0]||6===t[0]||7===t[0])&&t.length-1==2*r)return 6===t[0]?f(t[t.length-1]%2==0):7===t[0]&&f(t[t.length-1]%2==1),this.point(t.slice(1,1+r),t.slice(1+r,1+2*r));if((2===t[0]||3===t[0])&&t.length-1===r)return this.pointFromX(t.slice(1,1+r),3===t[0]);throw new Error("Unknown point format")},d.prototype.encodeCompressed=function(t){return this.encode(t,!0)},d.prototype._encode=function(t){var e=this.curve.p.byteLength(),r=this.getX().toArray("be",e);return t?[this.getY().isEven()?2:3].concat(r):[4].concat(r,this.getY().toArray("be",e))},d.prototype.encode=function(t,e){return o.encode(this._encode(e),t)},d.prototype.precompute=function(t){if(this.precomputed)return this;var e={doubles:null,naf:null,beta:null};return e.naf=this._getNAFPoints(8),e.doubles=this._getDoubles(4,t),e.beta=this._getBeta(),this.precomputed=e,this},d.prototype._hasDoubles=function(t){if(!this.precomputed)return!1;var e=this.precomputed.doubles;return!!e&&e.points.length>=Math.ceil((t.bitLength()+1)/e.step)},d.prototype._getDoubles=function(t,e){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var r=[this],n=this,i=0;i<e;i+=t){for(var o=0;o<t;o++)n=n.dbl();r.push(n)}return{step:t,points:r}},d.prototype._getNAFPoints=function(t){if(this.precomputed&&this.precomputed.naf)return this.precomputed.naf;for(var e=[this],r=(1<<t)-1,n=1===r?null:this.dbl(),i=1;i<r;i++)e[i]=e[i-1].add(n);return{wnd:t,points:e}},d.prototype._getBeta=function(){return null},d.prototype.dblp=function(t){for(var e=this,i=0;i<t;i++)e=e.dbl();return e}},function(t,e,r){var n=r(472),o=r(480),h=r(481),c=r(164),f=r(250),l=r(7).Buffer;function d(t){var e;"object"!=typeof t||l.isBuffer(t)||(e=t.passphrase,t=t.key),"string"==typeof t&&(t=l.from(t));var r,d,m=h(t,e),v=m.tag,data=m.data;switch(v){case"CERTIFICATE":d=n.certificate.decode(data,"der").tbsCertificate.subjectPublicKeyInfo;case"PUBLIC KEY":switch(d||(d=n.PublicKey.decode(data,"der")),r=d.algorithm.algorithm.join(".")){case"1.2.840.113549.1.1.1":return n.RSAPublicKey.decode(d.subjectPublicKey.data,"der");case"1.2.840.10045.2.1":return d.subjectPrivateKey=d.subjectPublicKey,{type:"ec",data:d};case"1.2.840.10040.4.1":return d.algorithm.params.pub_key=n.DSAparam.decode(d.subjectPublicKey.data,"der"),{type:"dsa",data:d.algorithm.params};default:throw new Error("unknown key id "+r)}case"ENCRYPTED PRIVATE KEY":data=function(data,t){var e=data.algorithm.decrypt.kde.kdeparams.salt,r=parseInt(data.algorithm.decrypt.kde.kdeparams.iters.toString(),10),n=o[data.algorithm.decrypt.cipher.algo.join(".")],h=data.algorithm.decrypt.cipher.iv,d=data.subjectPrivateKey,m=parseInt(n.split("-")[1],10)/8,v=f.pbkdf2Sync(t,e,r,m,"sha1"),y=c.createDecipheriv(n,v,h),w=[];return w.push(y.update(d)),w.push(y.final()),l.concat(w)}(data=n.EncryptedPrivateKey.decode(data,"der"),e);case"PRIVATE KEY":switch(r=(d=n.PrivateKey.decode(data,"der")).algorithm.algorithm.join(".")){case"1.2.840.113549.1.1.1":return n.RSAPrivateKey.decode(d.subjectPrivateKey,"der");case"1.2.840.10045.2.1":return{curve:d.algorithm.curve,privateKey:n.ECPrivateKey.decode(d.subjectPrivateKey,"der").privateKey};case"1.2.840.10040.4.1":return d.algorithm.params.priv_key=n.DSAparam.decode(d.subjectPrivateKey,"der"),{type:"dsa",params:d.algorithm.params};default:throw new Error("unknown key id "+r)}case"RSA PUBLIC KEY":return n.RSAPublicKey.decode(data,"der");case"RSA PRIVATE KEY":return n.RSAPrivateKey.decode(data,"der");case"DSA PRIVATE KEY":return{type:"dsa",params:n.DSAPrivateKey.decode(data,"der")};case"EC PRIVATE KEY":return{curve:(data=n.ECPrivateKey.decode(data,"der")).parameters.value,privateKey:data.privateKey};default:throw new Error("unknown key type "+v)}}t.exports=d,d.signature=n.signature},,,function(t,e,r){"use strict";r.r(e),e.default=function(t,e){return e=e||{},new Promise((function(r,n){var s=new XMLHttpRequest,o=[],u=[],i={},a=function(){return{ok:2==(s.status/100|0),statusText:s.statusText,status:s.status,url:s.responseURL,text:function(){return Promise.resolve(s.responseText)},json:function(){return Promise.resolve(s.responseText).then(JSON.parse)},blob:function(){return Promise.resolve(new Blob([s.response]))},clone:a,headers:{keys:function(){return o},entries:function(){return u},get:function(t){return i[t.toLowerCase()]},has:function(t){return t.toLowerCase()in i}}}};for(var h in s.open(e.method||"get",t,!0),s.onload=function(){s.getAllResponseHeaders().replace(/^(.*?):[^\S\n]*([\s\S]*?)$/gm,(function(t,e,r){o.push(e=e.toLowerCase()),u.push([e,r]),i[e]=i[e]?i[e]+","+r:r})),r(a())},s.onerror=n,s.withCredentials="include"==e.credentials,e.headers)s.setRequestHeader(h,e.headers[h]);s.send(e.body||null)}))}},,,,,,,,,,,,,,,,,,,,,,,,function(t,e,r){"use strict";function n(t){return"function"==typeof t||Array.isArray(t)||"[object Object]"===Object.prototype.toString.call(t)}function o(t,source){if(t===source)return t;for(var e in source)if(Object.prototype.hasOwnProperty.call(source,e)){var r=source[e],h=t[e];void 0!==h&&void 0===r||(n(h)&&n(r)?t[e]=o(h,r):t[e]="object"==typeof(c=r)&&null!==c?o(Array.isArray(c)?[]:{},c):c)}var c;return t}t.exports=function(t){n(t)||(t={});for(var i=1,e=arguments.length;i<e;i++){var source=arguments[i];n(source)&&o(t,source)}return t}},function(t,e,r){"use strict";
vendor: 12,247 bytes, line 11
11t.exports=function(){var t=Array.prototype.slice.call(arguments);return t.reduceRight((function(t,source){return Object.keys(Object(source)).forEach((function(e){void 0!==source[e]&&(void 0!==t[e]&&delete t[e],t[e]=source[e])})),t}),{})}},function(t,e,r){"use strict";t.exports=function(t){return t&&Object.keys(t).length>0}},function(t,e,r){"use strict";var n=r(6),o=r(232),h=r(7).Buffer,c=new Array(16);function f(){o.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878}function l(t,e){return t<<e|t>>>32-e}function d(a,b,t,e,r,n,s){return l(a+(b&t|~b&e)+r+n|0,s)+b|0}function m(a,b,t,e,r,n,s){return l(a+(b&e|t&~e)+r+n|0,s)+b|0}function v(a,b,t,e,r,n,s){return l(a+(b^t^e)+r+n|0,s)+b|0}function y(a,b,t,e,r,n,s){return l(a+(t^(b|~e))+r+n|0,s)+b|0}n(f,o),f.prototype._update=function(){for(var t=c,i=0;i<16;++i)t[i]=this._block.readInt32LE(4*i);var a=this._a,b=this._b,e=this._c,r=this._d;a=d(a,b,e,r,t[0],3614090360,7),r=d(r,a,b,e,t[1],3905402710,12),e=d(e,r,a,b,t[2],606105819,17),b=d(b,e,r,a,t[3],3250441966,22),a=d(a,b,e,r,t[4],4118548399,7),r=d(r,a,b,e,t[5],1200080426,12),e=d(e,r,a,b,t[6],2821735955,17),b=d(b,e,r,a,t[7],4249261313,22),a=d(a,b,e,r,t[8],1770035416,7),r=d(r,a,b,e,t[9],2336552879,12),e=d(e,r,a,b,t[10],4294925233,17),b=d(b,e,r,a,t[11],2304563134,22),a=d(a,b,e,r,t[12],1804603682,7),r=d(r,a,b,e,t[13],4254626195,12),e=d(e,r,a,b,t[14],2792965006,17),a=m(a,b=d(b,e,r,a,t[15],1236535329,22),e,r,t[1],4129170786,5),r=m(r,a,b,e,t[6],3225465664,9),e=m(e,r,a,b,t[11],643717713,14),b=m(b,e,r,a,t[0],3921069994,20),a=m(a,b,e,r,t[5],3593408605,5),r=m(r,a,b,e,t[10],38016083,9),e=m(e,r,a,b,t[15],3634488961,14),b=m(b,e,r,a,t[4],3889429448,20),a=m(a,b,e,r,t[9],568446438,5),r=m(r,a,b,e,t[14],3275163606,9),e=m(e,r,a,b,t[3],4107603335,14),b=m(b,e,r,a,t[8],1163531501,20),a=m(a,b,e,r,t[13],2850285829,5),r=m(r,a,b,e,t[2],4243563512,9),e=m(e,r,a,b,t[7],1735328473,14),a=v(a,b=m(b,e,r,a,t[12],2368359562,20),e,r,t[5],4294588738,4),r=v(r,a,b,e,t[8],2272392833,11),e=v(e,r,a,b,t[11],1839030562,16),b=v(b,e,r,a,t[14],4259657740,23),a=v(a,b,e,r,t[1],2763975236,4),r=v(r,a,b,e,t[4],1272893353,11),e=v(e,r,a,b,t[7],4139469664,16),b=v(b,e,r,a,t[10],3200236656,23),a=v(a,b,e,r,t[13],681279174,4),r=v(r,a,b,e,t[0],3936430074,11),e=v(e,r,a,b,t[3],3572445317,16),b=v(b,e,r,a,t[6],76029189,23),a=v(a,b,e,r,t[9],3654602809,4),r=v(r,a,b,e,t[12],3873151461,11),e=v(e,r,a,b,t[15],530742520,16),a=y(a,b=v(b,e,r,a,t[2],3299628645,23),e,r,t[0],4096336452,6),r=y(r,a,b,e,t[7],1126891415,10),e=y(e,r,a,b,t[14],2878612391,15),b=y(b,e,r,a,t[5],4237533241,21),a=y(a,b,e,r,t[12],1700485571,6),r=y(r,a,b,e,t[3],2399980690,10),e=y(e,r,a,b,t[10],4293915773,15),b=y(b,e,r,a,t[1],2240044497,21),a=y(a,b,e,r,t[8],1873313359,6),r=y(r,a,b,e,t[15],4264355552,10),e=y(e,r,a,b,t[6],2734768916,15),b=y(b,e,r,a,t[13],1309151649,21),a=y(a,b,e,r,t[4],4149444226,6),r=y(r,a,b,e,t[11],3174756917,10),e=y(e,r,a,b,t[2],718787259,15),b=y(b,e,r,a,t[9],3951481745,21),this._a=this._a+a|0,this._b=this._b+b|0,this._c=this._c+e|0,this._d=this._d+r|0},f.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var t=h.allocUnsafe(16);return t.writeInt32LE(this._a,0),t.writeInt32LE(this._b,4),t.writeInt32LE(this._c,8),t.writeInt32LE(this._d,12),t},t.exports=f},function(t,e,r){"use strict";var n=r(70).codes.ERR_STREAM_PREMATURE_CLOSE;function o(){}t.exports=function t(e,r,h){if("function"==typeof r)return t(e,null,r);r||(r={}),h=function(t){var e=!1;return function(){if(!e){e=!0;for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];t.apply(this,n)}}}(h||o);var c=r.readable||!1!==r.readable&&e.readable,f=r.writable||!1!==r.writable&&e.writable,l=function(){e.writable||m()},d=e._writableState&&e._writableState.finished,m=function(){f=!1,d=!0,c||h.call(e)},v=e._readableState&&e._readableState.endEmitted,y=function(){c=!1,v=!0,f||h.call(e)},w=function(t){h.call(e,t)},M=function(){var t;return c&&!v?(e._readableState&&e._readableState.ended||(t=new n),h.call(e,t)):f&&!d?(e._writableState&&e._writableState.ended||(t=new n),h.call(e,t)):void 0},_=function(){e.req.on("finish",m)};return!function(t){return t.setHeader&&"function"==typeof t.abort}(e)?f&&!e._writableState&&(e.on("end",l),e.on("close",l)):(e.on("complete",m),e.on("abort",M),e.req?_():e.on("request",_)),e.on("end",y),e.on("finish",m),!1!==r.error&&e.on("error",w),e.on("close",M),function(){e.removeListener("complete",m),e.removeListener("abort",M),e.removeListener("request",_),e.req&&e.req.removeListener("finish",m),e.removeListener("end",l),e.removeListener("close",l),e.removeListener("finish",m),e.removeListener("end",y),e.removeListener("error",w),e.removeListener("close",M)}}},function(t,e,r){"use strict";var n=r(5).Buffer,o=r(6),h=r(232),c=new Array(16),f=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],l=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],d=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],m=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11],v=[0,1518500249,1859775393,2400959708,2840853838],hr=[1352829926,1548603684,1836072691,2053994217,0];function y(){h.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520}function w(t,e){return t<<e|t>>>32-e}function M(a,b,t,e,r,n,o,s){return w(a+(b^t^e)+n+o|0,s)+r|0}function _(a,b,t,e,r,n,o,s){return w(a+(b&t|~b&e)+n+o|0,s)+r|0}function S(a,b,t,e,r,n,o,s){return w(a+((b|~t)^e)+n+o|0,s)+r|0}function A(a,b,t,e,r,n,o,s){return w(a+(b&e|t&~e)+n+o|0,s)+r|0}function x(a,b,t,e,r,n,o,s){return w(a+(b^(t|~e))+n+o|0,s)+r|0}o(y,h),y.prototype._update=function(){for(var t=c,e=0;e<16;++e)t[e]=this._block.readInt32LE(4*e);for(var r=0|this._a,n=0|this._b,o=0|this._c,dl=0|this._d,h=0|this._e,y=0|this._a,br=0|this._b,k=0|this._c,E=0|this._d,C=0|this._e,i=0;i<80;i+=1){var R,tr;i<16?(R=M(r,n,o,dl,h,t[f[i]],v[0],d[i]),tr=x(y,br,k,E,C,t[l[i]],hr[0],m[i])):i<32?(R=_(r,n,o,dl,h,t[f[i]],v[1],d[i]),tr=A(y,br,k,E,C,t[l[i]],hr[1],m[i])):i<48?(R=S(r,n,o,dl,h,t[f[i]],v[2],d[i]),tr=S(y,br,k,E,C,t[l[i]],hr[2],m[i])):i<64?(R=A(r,n,o,dl,h,t[f[i]],v[3],d[i]),tr=_(y,br,k,E,C,t[l[i]],hr[3],m[i])):(R=x(r,n,o,dl,h,t[f[i]],v[4],d[i]),tr=M(y,br,k,E,C,t[l[i]],hr[4],m[i])),r=h,h=dl,dl=w(o,10),o=n,n=R,y=C,C=E,E=w(k,10),k=br,br=tr}var I=this._b+o+E|0;this._b=this._c+dl+C|0,this._c=this._d+h+y|0,this._d=this._e+r+br|0,this._e=this._a+n+k|0,this._a=I},y.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var t=n.alloc?n.alloc(20):new n(20);return t.writeInt32LE(this._a,0),t.writeInt32LE(this._b,4),t.writeInt32LE(this._c,8),t.writeInt32LE(this._d,12),t.writeInt32LE(this._e,16),t},t.exports=y},function(t,e,r){(e=t.exports=function(t){t=t.toLowerCase();var r=e[t];if(!r)throw new Error(t+" is not supported (we accept pull requests)");return new r}).sha=r(412),e.sha1=r(413),e.sha224=r(414),e.sha256=r(241),e.sha384=r(415),e.sha512=r(242)},function(t,e,r){(e=t.exports=r(243)).Stream=e,e.Readable=e,e.Writable=r(162),e.Duplex=r(63),e.Transform=r(246),e.PassThrough=r(420)},function(t,e,r){"use strict";(function(e){var n=r(123);function o(t){var e=this;this.next=null,this.entry=null,this.finish=function(){!function(t,e,r){var n=t.entry;t.entry=null;for(;n;){var o=n.callback;e.pendingcb--,o(r),n=n.next}e.corkedRequestsFree?e.corkedRequestsFree.next=t:e.corkedRequestsFree=t}(e,t)}}t.exports=S;var h,c=n.nextTick;S.WritableState=_;var f=Object.create(r(94));f.inherits=r(6);var l={deprecate:r(239)},d=r(244),m=r(7).Buffer,v=e.Uint8Array||function(){};var y,w=r(245);function M(){}function _(t,e){h=h||r(63),t=t||{};var f=e instanceof h;this.objectMode=!!t.objectMode,f&&(this.objectMode=this.objectMode||!!t.writableObjectMode);var l=t.highWaterMark,d=t.writableHighWaterMark,m=this.objectMode?16:16384;this.highWaterMark=l||0===l?l:f&&(d||0===d)?d:m,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 v=!1===t.decodeStrings;this.decodeStrings=!v,this.defaultEncoding=t.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(t){!function(t,e){var r=t._writableState,o=r.sync,h=r.writecb;if(function(t){t.writing=!1,t.writecb=null,t.length-=t.writelen,t.writelen=0}(r),e)!function(t,e,r,o,h){--e.pendingcb,r?(n.nextTick(h,o),n.nextTick(R,t,e),t._writableState.errorEmitted=!0,t.emit("error",o)):(h(o),t._writableState.errorEmitted=!0,t.emit("error",o),R(t,e))}(t,r,o,e,h);else{var f=E(r);f||r.corked||r.bufferProcessing||!r.bufferedRequest||k(t,r),o?c(x,t,r,f,h):x(t,r,f,h)}}(e,t)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new o(this)}function S(t){if(h=h||r(63),!(y.call(S,this)||this instanceof h))return new S(t);this._writableState=new _(t,this),this.writable=!0,t&&("function"==typeof t.write&&(this._write=t.write),"function"==typeof t.writev&&(this._writev=t.writev),"function"==typeof t.destroy&&(this._destroy=t.destroy),"function"==typeof t.final&&(this._final=t.final)),d.call(this)}function A(t,e,r,n,o,h,c){e.writelen=n,e.writecb=c,e.writing=!0,e.sync=!0,r?t._writev(o,e.onwrite):t._write(o,h,e.onwrite),e.sync=!1}function x(t,e,r,n){r||function(t,e){0===e.length&&e.needDrain&&(e.needDrain=!1,t.emit("drain"))}(t,e),e.pendingcb--,n(),R(t,e)}function k(t,e){e.bufferProcessing=!0;var r=e.bufferedRequest;if(t._writev&&r&&r.next){var n=e.bufferedRequestCount,h=new Array(n),c=e.corkedRequestsFree;c.entry=r;for(var f=0,l=!0;r;)h[f]=r,r.isBuf||(l=!1),r=r.next,f+=1;h.allBuffers=l,A(t,e,!0,e.length,h,"",c.finish),e.pendingcb++,e.lastBufferedRequest=null,c.next?(e.corkedRequestsFree=c.next,c.next=null):e.corkedRequestsFree=new o(e),e.bufferedRequestCount=0}else{for(;r;){var d=r.chunk,m=r.encoding,v=r.callback;if(A(t,e,!1,e.objectMode?1:d.length,d,m,v),r=r.next,e.bufferedRequestCount--,e.writing)break}null===r&&(e.lastBufferedRequest=null)}e.bufferedRequest=r,e.bufferProcessing=!1}function E(t){return t.ending&&0===t.length&&null===t.bufferedRequest&&!t.finished&&!t.writing}function C(t,e){t._final((function(r){e.pendingcb--,r&&t.emit("error",r),e.prefinished=!0,t.emit("prefinish"),R(t,e)}))}function R(t,e){var r=E(e);return r&&(!function(t,e){e.prefinished||e.finalCalled||("function"==typeof t._final?(e.pendingcb++,e.finalCalled=!0,n.nextTick(C,t,e)):(e.prefinished=!0,t.emit("prefinish")))}(t,e),0===e.pendingcb&&(e.finished=!0,t.emit("finish"))),r}f.inherits(S,d),_.prototype.getBuffer=function(){for(var t=this.bufferedRequest,e=[];t;)e.push(t),t=t.next;return e},function(){try{Object.defineProperty(_.prototype,"buffer",{get:l.deprecate((function(){return this.getBuffer()}),"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(t){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(y=Function.prototype[Symbol.hasInstance],Object.defineProperty(S,Symbol.hasInstance,{value:function(object){return!!y.call(this,object)||this===S&&(object&&object._writableState instanceof _)}}
vendor: 4,754 bytes, line 11
11)):y=function(object){return object instanceof this},S.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},S.prototype.write=function(t,e,r){var o,h=this._writableState,c=!1,f=!h.objectMode&&(o=t,m.isBuffer(o)||o instanceof v);return f&&!m.isBuffer(t)&&(t=function(t){return m.from(t)}(t)),"function"==typeof e&&(r=e,e=null),f?e="buffer":e||(e=h.defaultEncoding),"function"!=typeof r&&(r=M),h.ended?function(t,e){var r=new Error("write after end");t.emit("error",r),n.nextTick(e,r)}(this,r):(f||function(t,e,r,o){var h=!0,c=!1;return null===r?c=new TypeError("May not write null values to stream"):"string"==typeof r||void 0===r||e.objectMode||(c=new TypeError("Invalid non-string/buffer chunk")),c&&(t.emit("error",c),n.nextTick(o,c),h=!1),h}(this,h,t,r))&&(h.pendingcb++,c=function(t,e,r,n,o,h){if(!r){var c=function(t,e,r){t.objectMode||!1===t.decodeStrings||"string"!=typeof e||(e=m.from(e,r));return e}(e,n,o);n!==c&&(r=!0,o="buffer",n=c)}var f=e.objectMode?1:n.length;e.length+=f;var l=e.length<e.highWaterMark;l||(e.needDrain=!0);if(e.writing||e.corked){var d=e.lastBufferedRequest;e.lastBufferedRequest={chunk:n,encoding:o,isBuf:r,callback:h,next:null},d?d.next=e.lastBufferedRequest:e.bufferedRequest=e.lastBufferedRequest,e.bufferedRequestCount+=1}else A(t,e,!1,f,n,o,h);return l}(this,h,f,t,e,r)),c},S.prototype.cork=function(){this._writableState.corked++},S.prototype.uncork=function(){var t=this._writableState;t.corked&&(t.corked--,t.writing||t.corked||t.finished||t.bufferProcessing||!t.bufferedRequest||k(this,t))},S.prototype.setDefaultEncoding=function(t){if("string"==typeof t&&(t=t.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((t+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+t);return this._writableState.defaultEncoding=t,this},Object.defineProperty(S.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),S.prototype._write=function(t,e,r){r(new Error("_write() is not implemented"))},S.prototype._writev=null,S.prototype.end=function(t,e,r){var o=this._writableState;"function"==typeof t?(r=t,t=null,e=null):"function"==typeof e&&(r=e,e=null),null!=t&&this.write(t,e),o.corked&&(o.corked=1,this.uncork()),o.ending||o.finished||function(t,e,r){e.ending=!0,R(t,e),r&&(e.finished?n.nextTick(r):t.once("finish",r));e.ended=!0,t.writable=!1}(this,o,r)},Object.defineProperty(S.prototype,"destroyed",{get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(t){this._writableState&&(this._writableState.destroyed=t)}}),S.prototype.destroy=w.destroy,S.prototype._undestroy=w.undestroy,S.prototype._destroy=function(t,e){this.end(),e(t)}}).call(this,r(18))},function(t,e,r){"use strict";var n=r(40);function o(t){this.options=t,this.type=this.options.type,this.blockSize=8,this._init(),this.buffer=new Array(this.blockSize),this.bufferOff=0}t.exports=o,o.prototype._init=function(){},o.prototype.update=function(data){return 0===data.length?[]:"decrypt"===this.type?this._updateDecrypt(data):this._updateEncrypt(data)},o.prototype._buffer=function(data,t){for(var e=Math.min(this.buffer.length-this.bufferOff,data.length-t),i=0;i<e;i++)this.buffer[this.bufferOff+i]=data[t+i];return this.bufferOff+=e,e},o.prototype._flushBuffer=function(t,e){return this._update(this.buffer,0,t,e),this.bufferOff=0,this.blockSize},o.prototype._updateEncrypt=function(data){var t=0,e=0,r=(this.bufferOff+data.length)/this.blockSize|0,n=new Array(r*this.blockSize);0!==this.bufferOff&&(t+=this._buffer(data,t),this.bufferOff===this.buffer.length&&(e+=this._flushBuffer(n,e)));for(var o=data.length-(data.length-t)%this.blockSize;t<o;t+=this.blockSize)this._update(data,t,n,e),e+=this.blockSize;for(;t<data.length;t++,this.bufferOff++)this.buffer[this.bufferOff]=data[t];return n},o.prototype._updateDecrypt=function(data){for(var t=0,e=0,r=Math.ceil((this.bufferOff+data.length)/this.blockSize)-1,n=new Array(r*this.blockSize);r>0;r--)t+=this._buffer(data,t),e+=this._flushBuffer(n,e);return t+=this._buffer(data,t),n},o.prototype.final=function(t){var e,r;return t&&(e=this.update(t)),r="encrypt"===this.type?this._finalEncrypt():this._finalDecrypt(),e?e.concat(r):r},o.prototype._pad=function(t,e){if(0===e)return!1;for(;e<t.length;)t[e++]=0;return!0},o.prototype._finalEncrypt=function(){if(!this._pad(this.buffer,this.bufferOff))return[];var t=new Array(this.blockSize);return this._update(this.buffer,0,t,0),t},o.prototype._unpad=function(t){return t},o.prototype._finalDecrypt=function(){n.equal(this.bufferOff,this.blockSize,"Not enough data to decrypt");var t=new Array(this.blockSize);return this._flushBuffer(t,0),this._unpad(t)}}
vendor: 7,717 bytes, line 11
11,function(t,e,r){var n=r(433),o=r(441),h=r(259);e.createCipher=e.Cipher=n.createCipher,e.createCipheriv=e.Cipheriv=n.createCipheriv,e.createDecipher=e.Decipher=o.createDecipher,e.createDecipheriv=e.Decipheriv=o.createDecipheriv,e.listCiphers=e.getCiphers=function(){return Object.keys(h)}},function(t,e,r){var n={ECB:r(434),CBC:r(435),CFB:r(436),CFB8:r(437),CFB1:r(438),OFB:r(439),CTR:r(257),GCM:r(257)},o=r(259);for(var h in o)o[h].module=n[o[h].mode];t.exports=o},function(t,e,r){var n;function o(t){this.rand=t}if(t.exports=function(t){return n||(n=new o(null)),n.generate(t)},t.exports.Rand=o,o.prototype.generate=function(t){return this._rand(t)},o.prototype._rand=function(t){if(this.rand.getBytes)return this.rand.getBytes(t);for(var e=new Uint8Array(t),i=0;i<e.length;i++)e[i]=this.rand.getByte();return e},"object"==typeof self)self.crypto&&self.crypto.getRandomValues?o.prototype._rand=function(t){var e=new Uint8Array(t);return self.crypto.getRandomValues(e),e}:self.msCrypto&&self.msCrypto.getRandomValues?o.prototype._rand=function(t){var e=new Uint8Array(t);return self.msCrypto.getRandomValues(e),e}:"object"==typeof window&&(o.prototype._rand=function(){throw new Error("Not implemented yet")});else try{var h=r(447);if("function"!=typeof h.randomBytes)throw new Error("Not supported");o.prototype._rand=function(t){return h.randomBytes(t)}}catch(t){}},function(t,e,r){var n=r(5),o=n.Buffer;function h(t,e){for(var r in t)e[r]=t[r]}function c(t,e,r){return o(t,e,r)}o.from&&o.alloc&&o.allocUnsafe&&o.allocUnsafeSlow?t.exports=n:(h(n,e),e.Buffer=c),c.prototype=Object.create(o.prototype),h(o,c),c.from=function(t,e,r){if("number"==typeof t)throw new TypeError("Argument must not be a number");return o(t,e,r)},c.alloc=function(t,e,r){if("number"!=typeof t)throw new TypeError("Argument must be a number");var n=o(t);return void 0!==e?"string"==typeof r?n.fill(e,r):n.fill(e):n.fill(0),n},c.allocUnsafe=function(t){if("number"!=typeof t)throw new TypeError("Argument must be a number");return o(t)},c.allocUnsafeSlow=function(t){if("number"!=typeof t)throw new TypeError("Argument must be a number");return n.SlowBuffer(t)}},function(t,e,r){(function(e){var n=r(169),o=r(69);function h(t){var e,r=t.modulus.byteLength();do{e=new n(o(r))}while(e.cmp(t.modulus)>=0||!e.umod(t.prime1)||!e.umod(t.prime2));return e}function c(t,r){var o=function(t){var e=h(t);return{blinder:e.toRed(n.mont(t.modulus)).redPow(new n(t.publicExponent)).fromRed(),unblinder:e.invm(t.modulus)}}(r),c=r.modulus.byteLength(),f=new n(t).mul(o.blinder).umod(r.modulus),l=f.toRed(n.mont(r.prime1)),d=f.toRed(n.mont(r.prime2)),m=r.coefficient,p=r.prime1,q=r.prime2,v=l.redPow(r.exponent1).fromRed(),y=d.redPow(r.exponent2).fromRed(),w=v.isub(y).imul(m).umod(p).imul(q);return y.iadd(w).imul(o.unblinder).umod(r.modulus).toArrayLike(e,"be",c)}c.getr=h,t.exports=c}).call(this,r(5).Buffer)},function(t,e,r){(function(t){!function(t,e){"use strict";function n(t,e){if(!t)throw new Error(e||"Assertion failed")}function o(t,e){t.super_=e;var r=function(){};r.prototype=e.prototype,t.prototype=new r,t.prototype.constructor=t}function h(t,base,e){if(h.isBN(t))return t;this.negative=0,this.words=null,this.length=0,this.red=null,null!==t&&("le"!==base&&"be"!==base||(e=base,base=10),this._init(t||0,base||10,e||"be"))}var c;"object"==typeof t?t.exports=h:e.BN=h,h.BN=h,h.wordSize=26;try{c=r(452).Buffer}catch(t){}function f(t,e,r){for(var o=0,h=Math.min(t.length,r),c=0,i=e;i<h;i++){var b,f=t.charCodeAt(i)-48;o<<=4,o|=b=f>=49&&f<=54?f-49+10:f>=17&&f<=22?f-17+10:f,c|=b}return n(!(240&c),"Invalid character in "+t),o}function l(t,e,r,o){for(var h=0,b=0,c=Math.min(t.length,r),i=e;i<c;i++){var f=t.charCodeAt(i)-48;h*=o,b=f>=49?f-49+10:f>=17?f-17+10:f,n(f>=0&&b<o,"Invalid character"),h+=b}return h}function d(t,e){t.words=e.words,t.length=e.length,t.negative=e.negative,t.red=e.red}if(h.isBN=function(t){return t instanceof h||null!==t&&"object"==typeof t&&t.constructor.wordSize===h.wordSize&&Array.isArray(t.words)},h.max=function(t,e){return t.cmp(e)>0?t:e},h.min=function(t,e){return t.cmp(e)<0?t:e},h.prototype._init=function(t,base,e){if("number"==typeof t)return this._initNumber(t,base,e);if("object"==typeof t)return this._initArray(t,base,e);"hex"===base&&(base=16),n(base===(0|base)&&base>=2&&base<=36);var r=0;"-"===(t=t.toString().replace(/\s+/g,""))[0]&&r++,16===base?this._parseHex(t,r):this._parseBase(t,base,r),"-"===t[0]&&(this.negative=1),this._strip(),"le"===e&&this._initArray(this.toArray(),base,e)},h.prototype._initNumber=function(t,base,e){t<0&&(this.negative=1,t=-t),t<67108864?(this.words=[67108863&t],this.length=1):t<4503599627370496?(this.words=[67108863&t,t/67108864&67108863],this.length=2):(n(t<9007199254740992),this.words=[67108863&t,t/67108864&67108863,1],this.length=3),"le"===e&&this._initArray(this.toArray(),base,e)},h.prototype._initArray=function(t,base,e){if(n("number"==typeof t.length),t.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(t.length/3),this.words=new Array(this.length);for(var i=0;i<this.length;i++)this.words[i]=0;var r,o,h=0;if("be"===e)for(i=t.length-1,r=0;i>=0;i-=3)o=t[i]|t[i-1]<<8|t[i-2]<<16,this.words[r]|=o<<h&67108863,this.words[r+1]=o>>>26-h&67108863,(h+=24)>=26&&(h-=26,r++);else if("le"===e)for(i=0,r=0;i<t.length;i+=3)o=t[i]|t[i+1]<<8|t[i+2]<<16,this.words[r]|=o<<h&67108863,this.words[r+1]=o>>>26-h&67108863,(h+=24)>=26&&(h-=26,r++);return this._strip()},h.prototype._parseHex=function(t,e){this.length=Math.ceil((t.length-e)/6),this.words=new Array(this.length);for(var i=0;i<this.length;i++)this.words[i]=0;var r,n,o=0;for(i=t.length-6,r=0;i>=e;i-=6)n=f(t,i,i+6),this.words[r]|=n<<o&67108863,this.words[r+1]|=n>>>26-o&4194303,(o+=24)>=26&&(o-=26,r++);i+6!==e&&(n=f(t,e,i+6),this.words[r]|=n<<o&67108863,this.words[r+1]|=n>>>26-o&4194303),this._strip()},h.prototype._parseBase=function(t,base,e){this.words=[0],this.length=1;for(var r=0,n=1;n<=67108863;n*=base)r++;r--,n=n/base|0;for(var o=t.length-e,h=o%r,c=Math.min(o,o-h)+e,f=0,i=e;i<c;i+=r)f=l(t,i,i+r,base),this.imuln(n),this.words[0]+f<67108864?this.words[0]+=f:this._iaddn(f);if(0!==h){var d=1;for(f=l(t,i,t.length,base),i=0;i<h;i++)d*=base;this.imuln(d),this.words[0]+f<67108864?this.words[0]+=f:this._iaddn(f)}},h.prototype.copy=function(t){t.words=new Array(this.length);for(var i=0;i<this.length;i++)t.words[i]=this.words[i];t.length=this.length,t.negative=this.negative,t.red=this.red},h.prototype._move=function(t){d(t,this)},h.prototype.clone=function(){var t=new h(null);return this.copy(t),t},h.prototype._expand=function(t){for(;this.length<t;)this.words[this.length++]=0;return this},h.prototype._strip=function(){for(;this.length>1&&0===this.words[this.length-1];)this.length--;return this._normSign()},h.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},"undefined"!=typeof Symbol&&"function"==typeof Symbol.for)try{h.prototype[Symbol.for("nodejs.util.inspect.custom")]=m}catch(t){h.prototype.inspect=m}else h.prototype.inspect=m;function m(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"}var v=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],y=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],w=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16
vendor: 34,989 bytes, line 11
11777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];h.prototype.toString=function(base,t){var e;if(t=0|t||1,16===(base=base||10)||"hex"===base){e="";for(var r=0,o=0,i=0;i<this.length;i++){var h=this.words[i],c=(16777215&(h<<r|o)).toString(16);e=0!==(o=h>>>24-r&16777215)||i!==this.length-1?v[6-c.length]+c+e:c+e,(r+=2)>=26&&(r-=26,i--)}for(0!==o&&(e=o.toString(16)+e);e.length%t!=0;)e="0"+e;return 0!==this.negative&&(e="-"+e),e}if(base===(0|base)&&base>=2&&base<=36){var f=y[base],l=w[base];e="";var d=this.clone();for(d.negative=0;!d.isZero();){var m=d.modrn(l).toString(base);e=(d=d.idivn(l)).isZero()?m+e:v[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}n(!1,"Base should be between 2 and 36")},h.prototype.toNumber=function(){var t=this.words[0];return 2===this.length?t+=67108864*this.words[1]:3===this.length&&1===this.words[2]?t+=4503599627370496+67108864*this.words[1]:this.length>2&&n(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-t:t},h.prototype.toJSON=function(){return this.toString(16,2)},c&&(h.prototype.toBuffer=function(t,e){return this.toArrayLike(c,t,e)}),h.prototype.toArray=function(t,e){return this.toArrayLike(Array,t,e)};function M(t,e,r){r.negative=e.negative^t.negative;var n=t.length+e.length|0;r.length=n,n=n-1|0;var a=0|t.words[0],b=0|e.words[0],o=a*b,h=67108863&o,c=o/67108864|0;r.words[0]=h;for(var f=1;f<n;f++){for(var l=c>>>26,d=67108863&c,m=Math.min(f,e.length-1),v=Math.max(0,f-t.length+1);v<=m;v++){var i=f-v|0;l+=(o=(a=0|t.words[i])*(b=0|e.words[v])+d)/67108864|0,d=67108863&o}r.words[f]=0|d,c=0|l}return 0!==c?r.words[f]=0|c:r.length--,r._strip()}h.prototype.toArrayLike=function(t,e,r){this._strip();var o=this.byteLength(),h=r||Math.max(1,o);n(o<=h,"byte array longer than desired length"),n(h>0,"Requested array length <= 0");var c=function(t,e){return t.allocUnsafe?t.allocUnsafe(e):new t(e)}(t,h);return this["_toArrayLike"+("le"===e?"LE":"BE")](c,o),c},h.prototype._toArrayLikeLE=function(t,e){for(var r=0,n=0,i=0,o=0;i<this.length;i++){var h=this.words[i]<<o|n;t[r++]=255&h,r<t.length&&(t[r++]=h>>8&255),r<t.length&&(t[r++]=h>>16&255),6===o?(r<t.length&&(t[r++]=h>>24&255),n=0,o=0):(n=h>>>24,o+=2)}if(r<t.length)for(t[r++]=n;r<t.length;)t[r++]=0},h.prototype._toArrayLikeBE=function(t,e){for(var r=t.length-1,n=0,i=0,o=0;i<this.length;i++){var h=this.words[i]<<o|n;t[r--]=255&h,r>=0&&(t[r--]=h>>8&255),r>=0&&(t[r--]=h>>16&255),6===o?(r>=0&&(t[r--]=h>>24&255),n=0,o=0):(n=h>>>24,o+=2)}if(r>=0)for(t[r--]=n;r>=0;)t[r--]=0},Math.clz32?h.prototype._countBits=function(t){return 32-Math.clz32(t)}:h.prototype._countBits=function(t){var e=t,r=0;return e>=4096&&(r+=13,e>>>=13),e>=64&&(r+=7,e>>>=7),e>=8&&(r+=4,e>>>=4),e>=2&&(r+=2,e>>>=2),r+e},h.prototype._zeroBits=function(t){if(0===t)return 26;var e=t,r=0;return 0==(8191&e)&&(r+=13,e>>>=13),0==(127&e)&&(r+=7,e>>>=7),0==(15&e)&&(r+=4,e>>>=4),0==(3&e)&&(r+=2,e>>>=2),0==(1&e)&&r++,r},h.prototype.bitLength=function(){var t=this.words[this.length-1],e=this._countBits(t);return 26*(this.length-1)+e},h.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,i=0;i<this.length;i++){var b=this._zeroBits(this.words[i]);if(t+=b,26!==b)break}return t},h.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},h.prototype.toTwos=function(t){return 0!==this.negative?this.abs().inotn(t).iaddn(1):this.clone()},h.prototype.fromTwos=function(t){return this.testn(t-1)?this.notn(t).iaddn(1).ineg():this.clone()},h.prototype.isNeg=function(){return 0!==this.negative},h.prototype.neg=function(){return this.clone().ineg()},h.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},h.prototype.iuor=function(t){for(;this.length<t.length;)this.words[this.length++]=0;for(var i=0;i<t.length;i++)this.words[i]=this.words[i]|t.words[i];return this._strip()},h.prototype.ior=function(t){return n(0==(this.negative|t.negative)),this.iuor(t)},h.prototype.or=function(t){return this.length>t.length?this.clone().ior(t):t.clone().ior(this)},h.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},h.prototype.iuand=function(t){var b;b=this.length>t.length?t:this;for(var i=0;i<b.length;i++)this.words[i]=this.words[i]&t.words[i];return this.length=b.length,this._strip()},h.prototype.iand=function(t){return n(0==(this.negative|t.negative)),this.iuand(t)},h.prototype.and=function(t){return this.length>t.length?this.clone().iand(t):t.clone().iand(this)},h.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},h.prototype.iuxor=function(t){var a,b;this.length>t.length?(a=this,b=t):(a=t,b=this);for(var i=0;i<b.length;i++)this.words[i]=a.words[i]^b.words[i];if(this!==a)for(;i<a.length;i++)this.words[i]=a.words[i];return this.length=a.length,this._strip()},h.prototype.ixor=function(t){return n(0==(this.negative|t.negative)),this.iuxor(t)},h.prototype.xor=function(t){return this.length>t.length?this.clone().ixor(t):t.clone().ixor(this)},h.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},h.prototype.inotn=function(t){n("number"==typeof t&&t>=0);var e=0|Math.ceil(t/26),r=t%26;this._expand(e),r>0&&e--;for(var i=0;i<e;i++)this.words[i]=67108863&~this.words[i];return r>0&&(this.words[i]=~this.words[i]&67108863>>26-r),this._strip()},h.prototype.notn=function(t){return this.clone().inotn(t)},h.prototype.setn=function(t,e){n("number"==typeof t&&t>=0);var r=t/26|0,o=t%26;return this._expand(r+1),this.words[r]=e?this.words[r]|1<<o:this.words[r]&~(1<<o),this._strip()},h.prototype.iadd=function(t){var e,a,b;if(0!==this.negative&&0===t.negative)return this.negative=0,e=this.isub(t),this.negative^=1,this._normSign();if(0===this.negative&&0!==t.negative)return t.negative=0,e=this.isub(t),t.negative=1,e._normSign();this.length>t.length?(a=this,b=t):(a=t,b=this);for(var r=0,i=0;i<b.length;i++)e=(0|a.words[i])+(0|b.words[i])+r,this.words[i]=67108863&e,r=e>>>26;for(;0!==r&&i<a.length;i++)e=(0|a.words[i])+r,this.words[i]=67108863&e,r=e>>>26;if(this.length=a.length,0!==r)this.words[this.length]=r,this.length++;else if(a!==this)for(;i<a.length;i++)this.words[i]=a.words[i];return this},h.prototype.add=function(t){var e;return 0!==t.negative&&0===this.negative?(t.negative=0,e=this.sub(t),t.negative^=1,e):0===t.negative&&0!==this.negative?(this.negative=0,e=t.sub(this),this.negative=1,e):this.length>t.length?this.clone().iadd(t):t.clone().iadd(this)},h.prototype.isub=function(t){if(0!==t.negative){t.negative=0;var e=this.iadd(t);return t.negative=1,e._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(t),this.negative=1,this._normSign();var a,b,r=this.cmp(t);if(0===r)return this.negative=0,this.length=1,this.words[0]=0,this;r>0?(a=this,b=t):(a=t,b=this);for(var n=0,i=0;i<b.length;i++)n=(e=(0|a.words[i])-(0|b.words[i])+n)>>26,this.words[i]=67108863&e;for(;0!==n&&i<a.length;i++)n=(e=(0|a.words[i])+n)>>26,this.words[i]=67108863&e;if(0===n&&i<a.length&&a!==this)for(;i<a.length;i++)this.words[i]=a.words[i];return this.length=Math.max(this.length,i),a!==this&&(this.negative=1),this._strip()},h.prototype.sub=function(t){return this.clone().isub(t)};var _=function(t,e,r){var n,o,h,a=t.words,b=e.words,c=r.words,f=0,l=0|a[0],d=8191&l,m=l>>>13,v=0|a[1],y=8191&v,w=v>>>13,M=0|a[2],_=8191&M,S=M>>>13,A=0|a[3],x=8191&A,k=A>>>13,E=0|a[4],C=8191&E,R=E>>>13,I=0|a[5],P=8191&I,T=I>>>13,O=0|a[6],j=8191&O,U=O>>>13,B=0|a[7],D=8191&B,F=B>>>13,L=0|a[8],N=8191&L,H=L>>>13,z=0|a[9],V=8191&z,K=z>>>13,Z=0|b[0],W=8191&Z,G=Z>>>13,J=0|b[1],Y=8191&J,Q=J>>>13,X=0|b[2],$=8191&X,tt=X>>>13,et=0|b[3],it=8191&et,nt=et>>>13,ot=0|b[4],st=8191&ot,at=ot>>>13,ut=0|b[5],ht=8191&ut,ct=ut>>>13,ft=0|b[6],lt=8191&ft,pt=ft>>>13,mt=0|b[7],gt=8191&mt,vt=mt>>>13,yt=0|b[8],bt=8191&yt,wt=yt>>>13,Mt=0|b[9],_t=8191&Mt,St=Mt>>>13;r.negative=t.negative^e.negative,r.length=19;var At=(f+(n=Math.imul(d,W))|0)+((8191&(o=(o=Math.imul(d,G))+Math.imul(m,W)|0))<<13)|0;f=((h=Math.imul(m,G))+(o>>>13)|0)+(At>>>26)|0,At&=67108863,n=Math.imul(y,W),o=(o=Math.imul(y,G))+Math.imul(w,W)|0,h=Math.imul(w,G);var xt=(f+(n=n+Math.imul(d,Y)|0)|0)+((8191&(o=(o=o+Math.imul(d,Q)|0)+Math.imul(m,Y)|0))<<13)|0;f=((h=h+Math.imul(m,Q)|0)+(o>>>13)|0)+(xt>>>26)|0,xt&=67108863,n=Math.imul(_,W),o=(o=Math.imul(_,G))+Math.imul(S,W)|0,h=Math.imul(S,G),n=n+Math.imul(y,Y)|0,o=(o=o+Math.imul(y,Q)|0)+Math.imul(w,Y)|0,h=h+Math.imul(w,Q)|0;var kt=(f+(n=n+Math.imul(d,$)|0)|0)+((8191&(o=(o=o+Math.imul(d,tt)|0)+Math.imul(m,$)|0))<<13)|0;f=((h=h+Math.imul(m,tt)|0)+(o>>>13)|0)+(kt>>>26)|0,kt&=67108863,n=Math.imul(x,W),o=(o=Math.imul(x,G))+Math.imul(k,W)|0,h=Math.imul(k,G),n=n+Math.imul(_,Y)|0,o=(o=o+Math.imul(_,Q)|0)+Math.imul(S,Y)|0,h=h+Math.imul(S,Q)|0,n=n+Math.imul(y,$)|0,o=(o=o+Math.imul(y,tt)|0)+Math.imul(w,$)|0,h=h+Math.imul(w,tt)|0;var Et=(f+(n=n+Math.imul(d,it)|0)|0)+((8191&(o=(o=o+Math.imul(d,nt)|0)+Math.imul(m,it)|0))<<13)|0;f=((h=h+Math.imul(m,nt)|0)+(o>>>13)|0)+(Et>>>26)|0,Et&=67108863,n=Math.imul(C,W),o=(o=Math.imul(C,G))+Math.imul(R,W)|0,h=Math.imul(R,G),n=n+Math.imul(x,Y)|0,o=(o=o+Math.imul(x,Q)|0)+Math.imul(k,Y)|0,h=h+Math.imul(k,Q)|0,n=n+Math.imul(_,$)|0,o=(o=o+Math.imul(_,tt)|0)+Math.imul(S,$)|0,h=h+Math.imul(S,tt)|0,n=n+Math.imul(y,it)|0,o=(o=o+Math.imul(y,nt)|0)+Math.imul(w,it)|0,h=h+Math.imul(w,nt)|0;var Ct=(f+(n=n+Math.imul(d,st)|0)|0)+((8191&(o=(o=o+Math.imul(d,at)|0)+Math.imul(m,st)|0))<<13)|0;f=((h=h+Math.imul(m,at)|0)+(o>>>13)|0)+(Ct>>>26)|0,Ct&=67108863,n=Math.imul(P,W),o=(o=Math.imul(P,G))+Math.imul(T,W)|0,h=Math.imul(T,G),n=n+Math.imul(C,Y)|0,o=(o=o+Math.imul(C,Q)|0)+Math.imul(R,Y)|0,h=h+Math.imul(R,Q)|0,n=n+Math.imul(x,$)|0,o=(o=o+Math.imul(x,tt)|0)+Math.imul(k,$)|0,h=h+Math.imul(k,tt)|0,n=n+Math.imul(_,it)|0,o=(o=o+Math.imul(_,nt)|0)+Math.imul(S,it)|0,h=h+Math.imul(S,nt)|0,n=n+Math.imul(y,st)|0,o=(o=o+Math.imul(y,at)|0)+Math.imul(w,st)|0,h=h+Math.imul(w,at)|0;var Rt=(f+(n=n+Math.imul(d,ht)|0)|0)+((8191&(o=(o=o+Math.imul(d,ct)|0)+Math.imul(m,ht)|0))<<13)|0;f=((h=h+Math.imul(m,ct)|0)+(o>>>13)|0)+(Rt>>>26)|0,Rt&=67108863,n=Math.imul(j,W),o=(o=Math.imul(j,G))+Math.imul(U,W)|0,h=Math.imul(U,G),n=n+Math.imul(P,Y)|0,o=(o=o+Math.imul(P,Q)|0)+Math.imul(T,Y)|0,h=h+Math.imul(T,Q)|0,n=n+Math.imul(C,$)|0,o=(o=o+Math.imul(C,tt)|0)+Math.imul(R,$)|0,h=h+Math.imul(R,tt)|0,n=n+Math.imul(x,it)|0,o=(o=o+Math.imul(x,nt)|0)+Math.imul(k,it)|0,h=h+Math.imul(k,nt)|0,n=n+Math.imul(_,st)|0,o=(o=o+Math.imul(_,at)|0)+Math.imul(S,st)|0,h=h+Math.imul(S,at)|0,n=n+Math.imul(y,ht)|0,o=(o=o+Math.imul(y,ct)|0)+Math.imul(w,ht)|0,h=h+Math.imul(w,ct)|0;var It=(f+(n=n+Math.imul(d,lt)|0)|0)+((8191&(o=(o=o+Math.imul(d,pt)|0)+Math.imul(m,lt)|0))<<13)|0;f=((h=h+Math.imul(m,pt)|0)+(o>>>13)|0)+(It>>>26)|0,It&=67108863,n=Math.imul(D,W),o=(o=Math.imul(D,G))+Math.imul(F,W)|0,h=Math.imul(F,G),n=n+Math.imul(j,Y)|0,o=(o=o+Math.imul(j,Q)|0)+Math.imul(U,Y)|0,h=h+Math.imul(U,Q)|0,n=n+Math.imul(P,$)|0,o=(o=o+Math.imul(P,tt)|0)+Math.imul(T,$)|0,h=h+Math.imul(T,tt)|0,n=n+Math.imul(C,it)|0,o=(o=o+Math.imul(C,nt)|0)+Math.imul(R,it)|0,h=h+Math.imul(R,nt)|0,n=n+Math.imul(x,st)|0,o=(o=o+Math.imul(x,at)|0)+Math.imul(k,st)|0,h=h+Math.imul(k,at)|0,n=n+Math.imul(_,ht)|0,o=(o=o+Math.imul(_,ct)|0)+Math.imul(S,ht)|0,h=h+Math.imul(S,ct)|0,n=n+Math.imul(y,lt)|0,o=(o=o+Math.imul(y,pt)|0)+Math.imul(w,lt)|0,h=h+Math.imul(w,pt)|0;var Pt=(f+(n=n+Math.imul(d,gt)|0)|0)+((8191&(o=(o=o+Math.imul(d,vt)|0)+Math.imul(m,gt)|0))<<13)|0;f=((h=h+Math.imul(m,vt)|0)+(o>>>13)|0)+(Pt>>>26)|0,Pt&=67108863,n=Math.imul(N,W),o=(o=Math.imul(N,G))+Math.imul(H,W)|0,h=Math.imul(H,G),n=n+Math.imul(D,Y)|0,o=(o=o+Math.imul(D,Q)|0)+Math.imul(F,Y)|0,h=h+Math.imul(F,Q)|0,n=n+Math.imul(j,$)|0,o=(o=o+Math.imul(j,tt)|0)+Math.imul(U,$)|0,h=h+Math.imul(U,tt)|0,n=n+Math.imul(P,it)|0,o=(o=o+Math.imul(P,nt)|0)+Math.imul(T,it)|0,h=h+Math.imul(T,nt)|0,n=n+Math.imul(C,st)|0,o=(o=o+Math.imul(C,at)|0)+Math.imul(R,st)|0,h=h+Math.imul(R,at)|0,n=n+Math.imul(x,ht)|0,o=(o=o+Math.imul(x,ct)|0)+Math.imul(k,ht)|0,h=h+Math.imul(k,ct)|0,n=n+Math.imul(_,lt)|0,o=(o=o+Math.imul(_,pt)|0)+Math.imul(S,lt)|0,h=h+Math.imul(S,pt)|0,n=n+Math.imul(y,gt)|0,o=(o=o+Math.imul(y,vt)|0)+Math.imul(w,gt)|0,h=h+Math.imul(w,vt)|0;var Tt=(f+(n=n+Math.imul(d,bt)|0)|0)+((8191&(o=(o=o+Math.imul(d,wt)|0)+Math.imul(m,bt)|0))<<13)|0;f=((h=h+Math.imul(m,wt)|0)+(o>>>13)|0)+(Tt>>>26)|0,Tt&=67108863,n=Math.imul(V,W),o=(o=Math.imul(V,G))+Math.imul(K,W)|0,h=Math.imul(K,G),n=n+Math.imul(N,Y)|0,o=(o=o+Math.imul(N,Q)|0)+Math.imul(H,Y)|0,h=h+Math.imul(H,Q)|0,n=n+Math.imul(D,$)|0,o=(o=o+Math.imul(D,tt)|0)+Math.imul(F,$)|0,h=h+Math.imul(F,tt)|0,n=n+Math.imul(j,it)|0,o=(o=o+Math.imul(j,nt)|0)+Math.imul(U,it)|0,h=h+Math.imul(U,nt)|0,n=n+Math.imul(P,st)|0,o=(o=o+Math.imul(P,at)|0)+Math.imul(T,st)|0,h=h+Math.imul(T,at)|0,n=n+Math.imul(C,ht)|0,o=(o=o+Math.imul(C,ct)|0)+Math.imul(R,ht)|0,h=h+Math.imul(R,ct)|0,n=n+Math.imul(x,lt)|0,o=(o=o+Math.imul(x,pt)|0)+Math.imul(k,lt)|0,h=h+Math.imul(k,pt)|0,n=n+Math.imul(_,gt)|0,o=(o=o+Math.imul(_,vt)|0)+Math.imul(S,gt)|0,h=h+Math.imul(S,vt)|0,n=n+Math.imul(y,bt)|0,o=(o=o+Math.imul(y,wt)|0)+Math.imul(w,bt)|0,h=h+Math.imul(w,wt)|0;var Ot=(f+(n=n+Math.imul(d,_t)|0)|0)+((8191&(o=(o=o+Math.imul(d,St)|0)+Math.imul(m,_t)|0))<<13)|0;f=((h=h+Math.imul(m,St)|0)+(o>>>13)|0)+(Ot>>>26)|0,Ot&=67108863,n=Math.imul(V,Y),o=(o=Math.imul(V,Q))+Math.imul(K,Y)|0,h=Math.imul(K,Q),n=n+Math.imul(N,$)|0,o=(o=o+Math.imul(N,tt)|0)+Math.imul(H,$)|0,h=h+Math.imul(H,tt)|0,n=n+Math.imul(D,it)|0,o=(o=o+Math.imul(D,nt)|0)+Math.imul(F,it)|0,h=h+Math.imul(F,nt)|0,n=n+Math.imul(j,st)|0,o=(o=o+Math.imul(j,at)|0)+Math.imul(U,st)|0,h=h+Math.imul(U,at)|0,n=n+Math.imul(P,ht)|0,o=(o=o+Math.imul(P,ct)|0)+Math.imul(T,ht)|0,h=h+Math.imul(T,ct)|0,n=n+Math.imul(C,lt)|0,o=(o=o+Math.imul(C,pt)|0)+Math.imul(R,lt)|0,h=h+Math.imul(R,pt)|0,n=n+Math.imul(x,gt)|0,o=(o=o+Math.imul(x,vt)|0)+Math.imul(k,gt)|0,h=h+Math.imul(k,vt)|0,n=n+Math.imul(_,bt)|0,o=(o=o+Math.imul(_,wt)|0)+Math.imul(S,bt)|0,h=h+Math.imul(S,wt)|0;var jt=(f+(n=n+Math.imul(y,_t)|0)|0)+((8191&(o=(o=o+Math.imul(y,St)|0)+Math.imul(w,_t)|0))<<13)|0;f=((h=h+Math.imul(w,St)|0)+(o>>>13)|0)+(jt>>>26)|0,jt&=67108863,n=Math.imul(V,$),o=(o=Math.imul(V,tt))+Math.imul(K,$)|0,h=Math.imul(K,tt),n=n+Math.imul(N,it)|0,o=(o=o+Math.imul(N,nt)|0)+Math.imul(H,it)|0,h=h+Math.imul(H,nt)|0,n=n+Math.imul(D,st)|0,o=(o=o+Math.imul(D,at)|0)+Math.imul(F,st)|0,h=h+Math.imul(F,at)|0,n=n+Math.imul(j,ht)|0,o=(o=o+Math.imul(j,ct)|0)+Math.imul(U,ht)|0,h=h+Math.imul(U,ct)|0,n=n+Math.imul(P,lt)|0,o=(o=o+Math.imul(P,pt)|0)+Math.imul(T,lt)|0,h=h+Math.imul(T,pt)|0,n=n+Math.imul(C,gt)|0,o=(o=o+Math.imul(C,vt)|0)+Math.imul(R,gt)|0,h=h+Math.imul(R,vt)|0,n=n+Math.imul(x,bt)|0,o=(o=o+Math.imul(x,wt)|0)+Math.imul(k,bt)|0,h=h+Math.imul(k,wt)|0;var Ut=(f+(n=n+Math.imul(_,_t)|0)|0)+((8191&(o=(o=o+Math.imul(_,St)|0)+Math.imul(S,_t)|0))<<13)|0;f=((h=h+Math.imul(S,St)|0)+(o>>>13)|0)+(Ut>>>26)|0,Ut&=67108863,n=Math.imul(V,it),o=(o=Math.imul(V,nt))+Math.imul(K,it)|0,h=Math.imul(K,nt),n=n+Math.imul(N,st)|0,o=(o=o+Math.imul(N,at)|0)+Math.imul(H,st)|0,h=h+Math.imul(H,at)|0,n=n+Math.imul(D,ht)|0,o=(o=o+Math.imul(D,ct)|0)+Math.imul(F,ht)|0,h=h+Math.imul(F,ct)|0,n=n+Math.imul(j,lt)|0,o=(o=o+Math.imul(j,pt)|0)+Math.imul(U,lt)|0,h=h+Math.imul(U,pt)|0,n=n+Math.imul(P,gt)|0,o=(o=o+Math.imul(P,vt)|0)+Math.imul(T,gt)|0,h=h+Math.imul(T,vt)|0,n=n+Math.imul(C,bt)|0,o=(o=o+Math.imul(C,wt)|0)+Math.imul(R,bt)|0,h=h+Math.imul(R,wt)|0;var Bt=(f+(n=n+Math.imul(x,_t)|0)|0)+((8191&(o=(o=o+Math.imul(x,St)|0)+Math.imul(k,_t)|0))<<13)|0;f=((h=h+Math.imul(k,St)|0)+(o>>>13)|0)+(Bt>>>26)|0,Bt&=67108863,n=Math.imul(V,st),o=(o=Math.imul(V,at))+Math.imul(K,st)|0,h=Math.imul(K,at),n=n+Math.imul(N,ht)|0,o=(o=o+Math.imul(N,ct)|0)+Math.imul(H,ht)|0,h=h+Math.imul(H,ct)|0,n=n+Math.imul(D,lt)|0,o=(o=o+Math.imul(D,pt)|0)+Math.imul(F,lt)|0,h=h+Math.imul(F,pt)|0,n=n+Math.imul(j,gt)|0,o=(o=o+Math.imul(j,vt)|0)+Math.imul(U,gt)|0,h=h+Math.imul(U,vt)|0,n=n+Math.imul(P,bt)|0,o=(o=o+Math.imul(P,wt)|0)+Math.imul(T,bt)|0,h=h+Math.imul(T,wt)|0;var Dt=(f+(n=n+Math.imul(C,_t)|0)|0)+((8191&(o=(o=o+Math.imul(C,St)|0)+Math.imul(R,_t)|0))<<13)|0;f=((h=h+Math.imul(R,St)|0)+(o>>>13)|0)+(Dt>>>26)|0,Dt&=67108863,n=Math.imul(V,ht),o=(o=Math.imul(V,ct))+Math.imul(K,ht)|0,h=Math.imul(K,ct),n=n+Math.imul(N,lt)|0,o=(o=o+Math.imul(N,pt)|0)+Math.imul(H,lt)|0,h=h+Math.imul(H,pt)|0,n=n+Math.imul(D,gt)|0,o=(o=o+Math.imul(D,vt)|0)+Math.imul(F,gt)|0,h=h+Math.imul(F,vt)|0,n=n+Math.imul(j,bt)|0,o=(o=o+Math.imul(j,wt)|0)+Math.imul(U,bt)|0,h=h+Math.imul(U,wt)|0;var Ft=(f+(n=n+Math.imul(P,_t)|0)|0)+((8191&(o=(o=o+Math.imul(P,St)|0)+Math.imul(T,_t)|0))<<13)|0;f=((h=h+Math.imul(T,St)|0)+(o>>>13)|0)+(Ft>>>26)|0,Ft&=67108863,n=Math.imul(V,lt),o=(o=Math.imul(V,pt))+Math.imul(K,lt)|0,h=Math.imul(K,pt),n=n+Math.imul(N,gt)|0,o=(o=o+Math.imul(N,vt)|0)+Math.imul(H,gt)|0,h=h+Math.imul(H,vt)|0,n=n+Math.imul(D,bt)|0,o=(o=o+Math.imul(D,wt)|0)+Math.imul(F,bt)|0,h=h+Math.imul(F,wt)|0;var Lt=(f+(n=n+Math.imul(j,_t)|0)|0)+((8191&(o=(o=o+Math.imul(j,St)|0)+Math.imul(U,_t)|0))<<13)|0;f=((h=h+Math.imul(U,St)|0)+(o>>>13)|0)+(Lt>>>26)|0,Lt&=67108863,n=Math.imul(V,gt),o=(o=Math.imul(V,vt))+Math.imul(K,gt)|0,h=Math.imul(K,vt),n=n+Math.imul(N,bt)|0,o=(o=o+Math.imul(N,wt)|0)+Math.imul(H,bt)|0,h=h+Math.imul(H,wt)|0;var Nt=(f+(n=n+Math.imul(D,_t)|0)|0)+((8191&(o=(o=o+Math.imul(D,St)|0)+Math.imul(F,_t)|0))<<13)|0;f=((h=h+Math.imul(F,St)|0)+(o>>>13)|0)+(Nt>>>26)|0,Nt&=67108863,n=Math.imul(V,bt),o=(o=Math.imul(V,wt))+Math.imul(K,bt)|0,h=Math.imul(K,wt);var qt=(f+(n=n+Math.imul(N,_t)|0)|0)+((8191&(o=(o=o+Math.imul(N,St)|0)+Math.imul(H,_t)|0))<<13)|0;f=((h=h+Math.imul(H,St)|0)+(o>>>13)|0)+(qt>>>26)|0,qt&=67108863;var Ht=(f+(n=Math.imul(V,_t))|0)+((8191&(o=(o=Math.imul(V,St))+Math.imul(K,_t)|0))<<13)|0;return f=((h=Math.imul(K,St))+(o>>>13)|0)+(Ht>>>26)|0,Ht&=67108863,c[0]=At,c[1]=xt,c[2]=kt,c[3]=Et,c[4]=Ct,c[5]=Rt,c[6]=It,c[7]=Pt,c[8]=Tt,c[9]=Ot,c[10]=jt,c[11]=Ut,c[12]=Bt,c[13]=Dt,c[14]=Ft,c[15]=Lt,c[16]=Nt,c[17]=qt,c[18]=Ht,0!==f&&(c[19]=f,r.length++),r};function S(t,e,r){r.negative=e.negative^t.negative,r.length=t.length+e.length;for(var n=0,o=0,h=0;h<r.length-1;h++){var c=o;o=0;for(var f=67108863&n,l=Math.min(h,e.length-1),d=Math.max(0,h-t.length+1);d<=l;d++){var i=h-d,m=(0|t.words[i])*(0|e.words[d]),v=67108863&m;f=67108863&(v=v+f|0),o+=(c=(c=c+(m/67108864|0)|0)+(v>>>26)|0)>>>26,c&=67108863}r.words[h]=f,n=c,c=o}return 0!==n?r.words[h]=n:r.length--,r._strip()}function A(t,e,r){return S(t,e,r)}function x(t,e){this.x=t,this.y=e}Math.imul||(_=M),h.prototype.mulTo=function(t,e){var r=this.length+t.length;return 10===this.length&&10===t.length?_(this,t,e):r<63?M(this,t,e):r<1024?S(this,t,e):A(this,t,e)},x.prototype.makeRBT=function(t){for(var e=new Array(t),r=h.prototype._countBits(t)-1,i=0;i<t;i++)e[i]=this.revBin(i,r,t);return e},x.prototype.revBin=function(t,e,r){if(0===t||t===r-1)return t;for(var n=0,i=0;i<e;i++)n|=(1&t)<<e-i-1,t>>=1;return n},x.prototype.permute=function(t,e,r,n,o,h){for(var i=0;i<h;i++)n[i]=e[t[i]],o[i]=r[t[i]]},x.prototype.transform=function(t,e,r,n,o,h){this.permute(h,t,e,r,n,o);for(var s=1;s<o;s<<=1)for(var c=s<<1,f=Math.cos(2*Math.PI/c),l=Math.sin(2*Math.PI/c),p=0;p<o;p+=c)for(var d=f,m=l,v=0;v<s;v++){var y=r[p+v],w=n[p+v],M=r[p+v+s],_=n[p+v+s],S=d*M-m*_;_=d*_+m*M,M=S,r[p+v]=y+M,n[p+v]=w+_,r[p+v+s]=y-M,n[p+v+s]=w-_,v!==c&&(S=f*d-l*m,m=f*m+l*d,d=S)}},x.prototype.guessLen13b=function(t,e){var r=1|Math.max(e,t),n=1&r,i=0;for(r=r/2|0;r;r>>>=1)i++;return 1<<i+1+n},x.prototype.conjugate=function(t,e,r){if(!(r<=1))for(var i=0;i<r/2;i++){var n=t[i];t[i]=t[r-i-1],t[r-i-1]=n,n=e[i],e[i]=-e[r-i-1],e[r-i-1]=-n}},x.prototype.normalize13b=function(t,e){for(var r=0,i=0;i<e/2;i++){var n=8192*Math.round(t[2*i+1]/e)+Math.round(t[2*i]/e)+r;t[i]=67108863&n,r=n<67108864?0:n/67108864|0}return t},x.prototype.convert13b=function(t,e,r,o){for(var h=0,i=0;i<e;i++)h+=0|t[i],r[2*i]=8191&h,h>>>=13,r[2*i+1]=8191&h,h>>>=13;for(i=2*e;i<o;++i)r[i]=0;n(0===h),n(0==(-8192&h))},x.prototype.stub=function(t){for(var e=new Array(t),i=0;i<t;i++)e[i]=0;return e},x.prototype.mulp=function(t,e,r){var n=2*this.guessLen13b(t.length,e.length),o=this.makeRBT(n),h=this.stub(n),c=new Array(n),f=new Array(n),l=new Array(n),d=new Array(n),m=new Array(n),v=new Array(n),y=r.words;y.length=n,this.convert13b(t.words,t.length,c,n),this.convert13b(e.words,e.length,d,n),this.transform(c,h,f,l,n,o),this.transform(d,h,m,v,n,o);for(var i=0;i<n;i++){var w=f[i]*m[i]-l[i]*v[i];l[i]=f[i]*v[i]+l[i]*m[i],f[i]=w}return this.conjugate(f,l,n),this.transform(f,l,y,h,n,o),this.conjugate(y,h,n),this.normalize13b(y,n),r.negative=t.negative^e.negative,r.length=t.length+e.length,r._strip()},h.prototype.mul=function(t){var e=new h(null);return e.words=new Array(this.length+t.length),this.mulTo(t,e)},h.prototype.mulf=function(t){var e=new h(null);return e.words=new Array(this.length+t.length),A(this,t,e)},h.prototype.imul=function(t){return this.clone().mulTo(t,this)},h.prototype.imuln=function(t){var e=t<0;e&&(t=-t),n("number"==typeof t),n(t<67108864);for(var r=0,i=0;i<this.length;i++){var o=(0|this.words[i])*t,h=(67108863&o)+(67108863&r);r>>=26,r+=o/67108864|0,r+=h>>>26,this.words[i]=67108863&h}return 0!==r&&(this.words[i]=r,this.length++),e?this.ineg():this},h.prototype.muln=function(t){return this.clone().imuln(t)},h.prototype.sqr=function(){return this.mul(this)},h.prototype.isqr=function(){return this.imul(this.clone())},h.prototype.pow=function(t){var e=function(t){for(var e=new Array(t.bitLength()),r=0;r<e.length;r++){var n=r/26|0,o=r%26;e[r]=t.words[n]>>>o&1}return e}(t);if(0===e.length)return new h(1);for(var r=this,i=0;i<e.length&&0===e[i];i++,r=r.sqr());if(++i<e.length)for(var q=r.sqr();i<e.length;i++,q=q.sqr())0!==e[i]&&(r=r.mul(q));return r},h.prototype.iushln=function(t){n("number"==typeof t&&t>=0);var i,e=t%26,s=(t-e)/26,r=67108863>>>26-e<<26-e;if(0!==e){var o=0;for(i=0;i<this.length;i++){var h=this.words[i]&r,c=(0|this.words[i])-h<<e;this.words[i]=c|o,o=h>>>26-e}o&&(this.words[i]=o,this.length++)}if(0!==s){for(i=this.length-1;i>=0;i--)this.words[i+s]=this.words[i];for(i=0;i<s;i++)this.words[i]=0;this.length+=s}return this._strip()},h.prototype.ishln=function(t){return n(0===this.negative),this.iushln(t)},h.prototype.iushrn=function(t,e,r){var o;n("number"==typeof t&&t>=0),o=e?(e-e%26)/26:0;var h=t%26,s=Math.min((t-h)/26,this.length),mask=67108863^67108863>>>h<<h,c=r;if(o-=s,o=Math.max(0,o),c){for(var i=0;i<s;i++)c.words[i]=this.words[i];c.length=s}if(0===s);else if(this.length>s)for(this.length-=s,i=0;i<this.length;i++)this.words[i]=this.words[i+s];else this.words[0]=0,this.length=1;var f=0;for(i=this.length-1;i>=0&&(0!==f||i>=o);i--){var l=0|this.words[i];this.words[i]=f<<26-h|l>>>h,f=l&mask}return c&&0!==f&&(c.words[c.length++]=f),0===this.length&&(this.words[0]=0,this.length=1),this._strip()},h.prototype.ishrn=function(t,e,r){return n(0===this.negative),this.iushrn(t,e,r)},h.prototype.shln=function(t){return this.clone().ishln(t)},h.prototype.ushln=function(t){return this.clone().iushln(t)},h.prototype.shrn=function(t){return this.clone().ishrn(t)},h.prototype.ushrn=function(t){return this.clone().iushrn(t)},h.prototype.testn=function(t){n("number"==typeof t&&t>=0);var e=t%26,s=(t-e)/26,q=1<<e;return!(this.length<=s)&&!!(this.words[s]&q)},h.prototype.imaskn=function(t){n("number"==typeof t&&t>=0);var e=t%26,s=(t-e)/26;if(n(0===this.negative,"imaskn works only with positive numbers"),this.length<=s)return this;if(0!==e&&s++,this.length=Math.min(s,this.length),0!==e){var mask=67108863^67108863>>>e<<e;this.words[this.length-1]&=mask}return this._strip()},h.prototype.maskn=function(t){return this.clone().imaskn(t)},h.prototype.iaddn=function(t){return n("number"==typeof t),n(t<67108864),t<0?this.isubn(-t):0!==this.negative?1===this.length&&(0|this.words[0])<=t?(this.words[0]=t-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(t),this.negative=1,this):this._iaddn(t)},h.prototype._iaddn=function(t){this.words[0]+=t;for(var i=0;i<this.length&&this.words[i]>=67108864;i++)this.words[i]-=67108864,i===this.length-1?this.words[i+1]=1:this.words[i+1]++;return this.length=Math.max(this.length,i+1),this},h.prototype.isubn=function(t){if(n("number"==typeof t),n(t<67108864),t<0)return this.iaddn(-t);if(0!==this.negative)return this.negative=0,this.iaddn(t),this.negative=1,this;if(this.words[0]-=t,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var i=0;i<this.length&&this.words[i]<0;i++)this.words[i]+=67108864,this.words[i+1]-=1;return this._strip()},h.prototype.addn=function(t){return this.clone().iaddn(t)},h.prototype.subn=function(t){return this.clone().isubn(t)},h.prototype.iabs=function(){return this.negative=0,this},h.prototype.abs=function(){return this.clone().iabs()},h.prototype._ishlnsubmul=function(t,e,r){var i,o,h=t.length+r;this._expand(h);var c=0;for(i=0;i<t.length;i++){o=(0|this.words[i+r])+c;var f=(0|t.words[i])*e;c=((o-=67108863&f)>>26)-(f/67108864|0),this.words[i+r]=67108863&o}for(;i<this.length-r;i++)c=(o=(0|this.words[i+r])+c)>>26,this.words[i+r]=67108863&o;if(0===c)return this._strip();for(n(-1===c),c=0,i=0;i<this.length;i++)c=(o=-(0|this.words[i])+c)>>26,this.words[i]=67108863&o;return this.negative=1,this._strip()},h.prototype._wordDiv=function(t,e){var r=(this.length,t.length),a=this.clone(),b=t,n=0|b.words[b.length-1];0!==(r=26-this._countBits(n))&&(b=b.ushln(r),a.iushln(r),n=0|b.words[b.length-1]);var q,o=a.length-b.length;if("mod"!==e){(q=new h(null)).length=o+1,q.words=new Array(q.length);for(var i=0;i<q.length;i++)q.words[i]=0}var c=a.clone()._ishlnsubmul(b,1,o);0===c.negative&&(a=c,q&&(q.words[o]=1));for(var f=o-1;f>=0;f--){var l=67108864*(0|a.words[b.length+f])+(0|a.words[b.length+f-1]);for(l=Math.min(l/n|0,67108863),a._ishlnsubmul(b,l,f);0!==a.negative;)l--,a.negative=0,a._ishlnsubmul(b,1,f),a.isZero()||(a.negative^=1);q&&(q.words[f]=l)}return q&&q._strip(),a._strip(),"div"!==e&&0!==r&&a.iushrn(r),{div:q||null,mod:a}},h.prototype.divmod=function(t,e,r){return n(!t.isZero()),this.isZero()?{div:new h(0),mod:new h(0)}:0!==this.negative&&0===t.negative?(c=this.neg().divmod(t,e),"mod"!==e&&(div=c.div.neg()),"div"!==e&&(o=c.mod.neg(),r&&0!==o.negative&&o.iadd(t)),{div:div,mod:o}):0===this.negative&&0!==t.negative?(c=this.divmod(t.neg(),e),"mod"!==e&&(div=c.div.neg()),{div:div,mod:c.mod}):0!=(this.negative&t.negative)?(c=this.neg().divmod(t.neg(),e),"div"!==e&&(o=c.mod.neg(),r&&0!==o.negative&&o.isub(t)),{div:c.div,mod:o}):t.length>this.length||this.cmp(t)<0?{div:new h(0),mod:this}:1===t.length?"div"===e?{div:this.divn(t.words[0]),mod:null}:"mod"===e?{div:null,mod:new h(this.modrn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new h(this.modrn(t.words[0]))}:this._wordDiv(t,e);var div,o,c},h.prototype.div=function(t){return this.divmod(t,"div",!1).div},h.prototype.mod=function(t){return this.divmod(t,"mod",!1).mod},h.prototype.umod=function(t){return this.divmod(t,"mod",!0).mod},h.prototype.divRound=function(t){var e=this.divmod(t);if(e.mod.isZero())return e.div;var r=0!==e.div.negative?e.mod.isub(t):e.mod,n=t.ushrn(1),o=t.andln(1),h=r.cmp(n);return h<0||1===o&&0===h?e.div:0!==e.div.negative?e.div.isubn(1):e.div.iaddn(1)},h.prototype.modrn=function(t){var e=t<0;e&&(t=-t),n(t<=67108863);for(var p=(1<<26)%t,r=0,i=this.length-1;i>=0;i--)r=(p*r+(0|this.words[i]))%t;return e?-r:r},h.prototype.modn=function(t){return this.modrn(t)},h.prototype.idivn=function(t){var e=t<0;e&&(t=-t),n(t<=67108863);for(var r=0,i=this.length-1;i>=0;i--){var o=(0|this.words[i])+67108864*r;this.words[i]=o/t|0,r=o%t}return this._strip(),e?this.ineg():this},h.prototype.divn=function(t){return this.clone().idivn(t)},h.prototype.egcd=function(p){n(0===p.negative),n(!p.isZero());var t=this,e=p.clone();t=0!==t.negative?t.umod(p):t.clone();for(var r=new h(1),o=new h(0),c=new h(0),f=new h(1),g=0;t.isEven()&&e.isEven();)t.iushrn(1),e.iushrn(1),++g;for(var l=e.clone(),d=t.clone();!t.isZero();){for(var i=0,m=1;0==(t.words[0]&m)&&i<26;++i,m<<=1);if(i>0)for(t.iushrn(i);i-- >0;)(r.isOdd()||o.isOdd())&&(r.iadd(l),o.isub(d)),r.iushrn(1),o.iushrn(1);for(var v=0,y=1;0==(e.words[0]&y)&&v<26;++v,y<<=1);if(v>0)for(e.iushrn(v);v-- >0;)(c.isOdd()||f.isOdd())&&(c.iadd(l),f.isub(d)),c.iushrn(1),f.iushrn(1);t.cmp(e)>=0?(t.isub(e),r.isub(c),o.isub(f)):(e.isub(t),c.isub(r),f.isub(o))}return{a:c,b:f,gcd:e.iushln(g)}},h.prototype._invmp=function(p){n(0===p.negative),n(!p.isZero());var a=this,b=p.clone();a=0!==a.negative?a.umod(p):a.clone();for(var t,e=new h(1),r=new h(0),o=b.clone();a.cmpn(1)>0&&b.cmpn(1)>0;){for(var i=0,c=1;0==(a.words[0]&c)&&i<26;++i,c<<=1);if(i>0)for(a.iushrn(i);i-- >0;)e.isOdd()&&e.iadd(o),e.iushrn(1);for(var f=0,l=1;0==(b.words[0]&l)&&f<26;++f,l<<=1);if(f>0)for(b.iushrn(f);f-- >0;)r.isOdd()&&r.iadd(o),r.iushrn(1);a.cmp(b)>=0?(a.isub(b),e.isub(r)):(b.isub(a),r.isub(e))}return(t=0===a.cmpn(1)?e:r).cmpn(0)<0&&t.iadd(p),t},h.prototype.gcd=function(t){if(this.isZero())return t.abs();if(t.isZero())return this.abs();var a=this.clone(),b=t.clone();a.negative=0,b.negative=0;for(var e=0;a.isEven()&&b.isEven();e++)a.iushrn(1),b.iushrn(1);for(;;){for(;a.isEven();)a.iushrn(1);for(;b.isEven();)b.iushrn(1);var r=a.cmp(b);if(r<0){var n=a;a=b,b=n}else if(0===r||0===b.cmpn(1))break;a.isub(b)}return b.iushln(e)},h.prototype.invm=function(t){return this.egcd(t).a.umod(t)},h.prototype.isEven=function(){return 0==(1&this.words[0])},h.prototype.isOdd=function(){return 1==(1&this.words[0])},h.prototype.andln=function(t){return this.words[0]&t},h.prototype.bincn=function(t){n("number"==typeof t);var e=t%26,s=(t-e)/26,q=1<<e;if(this.length<=s)return this._expand(s+1),this.words[s]|=q,this;for(var r=q,i=s;0!==r&&i<this.length;i++){var o=0|this.words[i];r=(o+=r)>>>26,o&=67108863,this.words[i]=o}return 0!==r&&(this.words[i]=r,this.length++),this},h.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},h.prototype.cmpn=function(t){var e,r=t<0;if(0!==this.negative&&!r)return-1;if(0===this.negative&&r)return 1;if(this._strip(),this.length>1)e=1;else{r&&(t=-t),n(t<=67108863,"Number is too big");var o=0|this.words[0];e=o===t?0:o<t?-1:1}return 0!==this.negative?0|-e:e},h.prototype.cmp=function(t){if(0!==this.negative&&0===t.negative)return-1;if(0===this.negative&&0!==t.negative)return 1;var e=this.ucmp(t);return 0!==this.negative?0|-e:e},h.prototype.ucmp=function(t){if(this.length>t.length)return 1;if(this.length<t.length)return-1;for(var e=0,i=this.length-1;i>=0;i--){var a=0|this.words[i],b=0|t.words[i];if(a!==b){a<b?e=-1:a>b&&(e=1);break}}return e},h.prototype.gtn=function(t){return 1===this.cmpn(t)},h.prototype.gt=function(t){return 1===this.cmp(t)},h.prototype.gten=function(t){return this.cmpn(t)>=0},h.prototype.gte=function(t){return this.cmp(t)>=0},h.prototype.ltn=function(t){return-1===this.cmpn(t)},h.prototype.lt=function(t){return-1===this.cmp(t)},h.prototype.lten=function(t){return this.cmpn(t)<=0},h.prototype.lte=function(t){return this.cmp(t)<=0},h.prototype.eqn=function(t){return 0===this.cmpn(t)},h.prototype.eq=function(t){return 0===this.cmp(t)},h.red=function(t){return new T(t)},h.prototype.toRed=function(t){return n(!this.red,"Already a number in reduction context"),n(0===this.negative,"red works only with positives"),t.convertTo(this)._forceRed(t)},h.prototype.fromRed=function(){return n(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},h.prototype._forceRed=function(t){return this.red=t,this},h.prototype.forceRed=function(t){return n(!this.red,"Already a number in reduction context"),this._forceRed(t)},h.prototype.redAdd=function(t){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,t)},h.prototype.redIAdd=function(t){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,t)},h.prototype.redSub=function(t){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,t)},h.prototype.redISub=function(t){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,t)},h.prototype.redShl=function(t){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,t)},h.prototype.redMul=function(t){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.mul(this,t)},h.prototype.redIMul=function(t){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.imul(this,t)},h.prototype.redSqr=function(){return n(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},h.prototype.redISqr=function(){return n(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},h.prototype.redSqrt=function(){return n(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},h.prototype.redInvm=function(){return n(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},h.prototype.redNeg=function(){return n(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},h.prototype.redPow=function(t){return n(this.red&&!t.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,t)};var k={k256:null,p224:null,p192:null,p25519:null};function E(t,p){this.name=t,this.p=new h(p,16),this.n=this.p.bitLength(),this.k=new h(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function C(){E.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function R(){E.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function I(){E.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function P(){E.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function T(t){if("string"==typeof t){var e=h._prime(t);this.m=e.p,this.prime=e}else n(t.gtn(1),"modulus must be greater than 1"),this.m=t,this.prime=null}function O(t){T.call(this,t),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new h(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)}E.prototype._tmp=function(){var t=new h(null);return t.words=new Array(Math.ceil(this.n/13)),t},E.prototype.ireduce=function(t){var e,r=t;do{this.split(r,this.tmp),e=(r=(r=this.imulK(r)).iadd(this.tmp)).bitLength()}while(e>this.n);var n=e<this.n?-1:r.ucmp(this.p);return 0===n?(r.words[0]=0,r.length=1):n>0?r.isub(this.p):void 0!==r.strip?r.strip():r._strip(),r},E.prototype.split=function(input,t){input.iushrn(this.n,0,t)},E.prototype.imulK=function(t){return t.imul(this.k)},o(C,E),C.prototype.split=function(input,output){for(var t=Math.min(input.length,9),i=0;i<t;i++)output.words[i]=input.words[i];if(output.length=t,input.length<=9)return input.words[0]=0,void(in
vendor: 9,515 bytes, line 11
11put.length=1);var e=input.words[9];for(output.words[output.length++]=4194303&e,i=10;i<input.length;i++){var r=0|input.words[i];input.words[i-10]=(4194303&r)<<4|e>>>22,e=r}e>>>=22,input.words[i-10]=e,0===e&&input.length>10?input.length-=10:input.length-=9},C.prototype.imulK=function(t){t.words[t.length]=0,t.words[t.length+1]=0,t.length+=2;for(var e=0,i=0;i<t.length;i++){var r=0|t.words[i];e+=977*r,t.words[i]=67108863&e,e=64*r+(e/67108864|0)}return 0===t.words[t.length-1]&&(t.length--,0===t.words[t.length-1]&&t.length--),t},o(R,E),o(I,E),o(P,E),P.prototype.imulK=function(t){for(var e=0,i=0;i<t.length;i++){var r=19*(0|t.words[i])+e,n=67108863&r;r>>>=26,t.words[i]=n,e=r}return 0!==e&&(t.words[t.length++]=e),t},h._prime=function(t){if(k[t])return k[t];var e;if("k256"===t)e=new C;else if("p224"===t)e=new R;else if("p192"===t)e=new I;else{if("p25519"!==t)throw new Error("Unknown prime "+t);e=new P}return k[t]=e,e},T.prototype._verify1=function(a){n(0===a.negative,"red works only with positives"),n(a.red,"red works only with red numbers")},T.prototype._verify2=function(a,b){n(0==(a.negative|b.negative),"red works only with positives"),n(a.red&&a.red===b.red,"red works only with red numbers")},T.prototype.imod=function(a){return this.prime?this.prime.ireduce(a)._forceRed(this):(d(a,a.umod(this.m)._forceRed(this)),a)},T.prototype.neg=function(a){return a.isZero()?a.clone():this.m.sub(a)._forceRed(this)},T.prototype.add=function(a,b){this._verify2(a,b);var t=a.add(b);return t.cmp(this.m)>=0&&t.isub(this.m),t._forceRed(this)},T.prototype.iadd=function(a,b){this._verify2(a,b);var t=a.iadd(b);return t.cmp(this.m)>=0&&t.isub(this.m),t},T.prototype.sub=function(a,b){this._verify2(a,b);var t=a.sub(b);return t.cmpn(0)<0&&t.iadd(this.m),t._forceRed(this)},T.prototype.isub=function(a,b){this._verify2(a,b);var t=a.isub(b);return t.cmpn(0)<0&&t.iadd(this.m),t},T.prototype.shl=function(a,t){return this._verify1(a),this.imod(a.ushln(t))},T.prototype.imul=function(a,b){return this._verify2(a,b),this.imod(a.imul(b))},T.prototype.mul=function(a,b){return this._verify2(a,b),this.imod(a.mul(b))},T.prototype.isqr=function(a){return this.imul(a,a.clone())},T.prototype.sqr=function(a){return this.mul(a,a)},T.prototype.sqrt=function(a){if(a.isZero())return a.clone();var t=this.m.andln(3);if(n(t%2==1),3===t){var e=this.m.add(new h(1)).iushrn(2);return this.pow(a,e)}for(var q=this.m.subn(1),s=0;!q.isZero()&&0===q.andln(1);)s++,q.iushrn(1);n(!q.isZero());var r=new h(1).toRed(this),o=r.redNeg(),c=this.m.subn(1).iushrn(1),f=this.m.bitLength();for(f=new h(2*f*f).toRed(this);0!==this.pow(f,c).cmp(o);)f.redIAdd(o);for(var l=this.pow(f,q),d=this.pow(a,q.addn(1).iushrn(1)),m=this.pow(a,q),v=s;0!==m.cmp(r);){for(var y=m,i=0;0!==y.cmp(r);i++)y=y.redSqr();n(i<v);var b=this.pow(l,new h(1).iushln(v-i-1));d=d.redMul(b),l=b.redSqr(),m=m.redMul(l),v=i}return d},T.prototype.invm=function(a){var t=a._invmp(this.m);return 0!==t.negative?(t.negative=0,this.imod(t).redNeg()):this.imod(t)},T.prototype.pow=function(a,t){if(t.isZero())return new h(1).toRed(this);if(0===t.cmpn(1))return a.clone();var e=new Array(16);e[0]=new h(1).toRed(this),e[1]=a;for(var i=2;i<e.length;i++)e[i]=this.mul(e[i-1],a);var r=e[0],n=0,o=0,c=t.bitLength()%26;for(0===c&&(c=26),i=t.length-1;i>=0;i--){for(var f=t.words[i],l=c-1;l>=0;l--){var d=f>>l&1;r!==e[0]&&(r=this.sqr(r)),0!==d||0!==n?(n<<=1,n|=d,(4===++o||0===i&&0===l)&&(r=this.mul(r,e[n]),o=0,n=0)):o=0}c=26}return r},T.prototype.convertTo=function(t){var e=t.umod(this.m);return e===t?e.clone():e},T.prototype.convertFrom=function(t){var e=t.clone();return e.red=null,e},h.mont=function(t){return new O(t)},o(O,T),O.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},O.prototype.convertFrom=function(t){var e=this.imod(t.mul(this.rinv));return e.red=null,e},O.prototype.imul=function(a,b){if(a.isZero()||b.isZero())return a.words[0]=0,a.length=1,a;var t=a.imul(b),e=t.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),u=t.isub(e).iushrn(this.shift),r=u;return u.cmp(this.m)>=0?r=u.isub(this.m):u.cmpn(0)<0&&(r=u.iadd(this.m)),r._forceRed(this)},O.prototype.mul=function(a,b){if(a.isZero()||b.isZero())return new h(0)._forceRed(this);var t=a.mul(b),e=t.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),u=t.isub(e).iushrn(this.shift),r=u;return u.cmp(this.m)>=0?r=u.isub(this.m):u.cmpn(0)<0&&(r=u.iadd(this.m)),r._forceRed(this)},O.prototype.invm=function(a){return this.imod(a._invmp(this.m).mul(this.r2))._forceRed(this)}}(t,this)}).call(this,r(57)(t))},function(t,e,r){"use strict";var n=e;n.version=r(453).version,n.utils=r(41),n.rand=r(166),n.curve=r(266),n.curves=r(171),n.ec=r(465),n.eddsa=r(469)},function(t,e,r){"use strict";var pre,n=e,o=r(172),h=r(266),c=r(41).assert;function f(t){"short"===t.type?this.curve=new h.short(t):"edwards"===t.type?this.curve=new h.edwards(t):this.curve=new h.mont(t),this.g=this.curve.g,this.n=this.curve.n,this.hash=t.hash,c(this.g.validate(),"Invalid curve"),c(this.g.mul(this.n).isInfinity(),"Invalid curve, G*N != O")}function l(t,e){Object.defineProperty(n,t,{configurable:!0,enumerable:!0,get:function(){var r=new f(e);return Object.defineProperty(n,t,{configurable:!0,enumerable:!0,value:r}),r}})}n.PresetCurve=f,l("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:o.sha256,gRed:!1,g:["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012","07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]}),l("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:o.sha256,gRed:!1,g:["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21","bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"]}),l("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:o.sha256,gRed:!1,g:["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296","4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]}),l("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:o.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"]}),l("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:o.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"]}),l("curve25519",{type:"mont",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"76d06",b:"1",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:o.sha256,gRed:!1,g:["9"]}),l("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:o.sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});try{pre=r(464)}catch(t){pre=void 0}l("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:o.sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"}
vendor: 5,531 bytes, line 11
11,{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",pre]})},function(t,e,r){var n=e;n.utils=r(42),n.common=r(96),n.sha=r(458),n.ripemd=r(462),n.hmac=r(463),n.sha1=n.sha.sha1,n.sha256=n.sha.sha256,n.sha224=n.sha.sha224,n.sha384=n.sha.sha384,n.sha512=n.sha.sha512,n.ripemd160=n.ripemd.ripemd160},function(t,e,r){"use strict";(function(e){var n,o=r(5),h=o.Buffer,c={};for(n in o)o.hasOwnProperty(n)&&"SlowBuffer"!==n&&"Buffer"!==n&&(c[n]=o[n]);var f=c.Buffer={};for(n in h)h.hasOwnProperty(n)&&"allocUnsafe"!==n&&"allocUnsafeSlow"!==n&&(f[n]=h[n]);if(c.Buffer.prototype=h.prototype,f.from&&f.from!==Uint8Array.from||(f.from=function(t,e,r){if("number"==typeof t)throw new TypeError('The "value" argument must not be of type number. Received type '+typeof t);if(t&&void 0===t.length)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t);return h(t,e,r)}),f.alloc||(f.alloc=function(t,e,r){if("number"!=typeof t)throw new TypeError('The "size" argument must be of type number. Received type '+typeof t);if(t<0||t>=2*(1<<30))throw new RangeError('The value "'+t+'" is invalid for option "size"');var n=h(t);return e&&0!==e.length?"string"==typeof r?n.fill(e,r):n.fill(e):n.fill(0),n}),!c.kStringMaxLength)try{c.kStringMaxLength=e.binding("buffer").kStringMaxLength}catch(t){}c.constants||(c.constants={MAX_LENGTH:c.kMaxLength},c.kStringMaxLength&&(c.constants.MAX_STRING_LENGTH=c.kStringMaxLength)),t.exports=c}).call(this,r(33))},function(t,e,r){"use strict";const n=r(175).Reporter,o=r(97).EncoderBuffer,h=r(97).DecoderBuffer,c=r(40),f=["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"],l=["key","obj","use","optional","explicit","implicit","def","choice","any","contains"].concat(f);function d(t,e,r){const n={};this._baseState=n,n.name=r,n.enc=t,n.parent=e||null,n.children=null,n.tag=null,n.args=null,n.reverseArgs=null,n.choice=null,n.optional=!1,n.any=!1,n.obj=!1,n.use=null,n.useDecoder=null,n.key=null,n.default=null,n.explicit=null,n.implicit=null,n.contains=null,n.parent||(n.children=[],this._wrap())}t.exports=d;const m=["enc","parent","children","tag","args","reverseArgs","choice","optional","any","obj","use","alteredUse","key","default","explicit","implicit","contains"];d.prototype.clone=function(){const t=this._baseState,e={};m.forEach((function(r){e[r]=t[r]}));const r=new this.constructor(e.parent);return r._baseState=e,r},d.prototype._wrap=function(){const t=this._baseState;l.forEach((function(e){this[e]=function(){const r=new this.constructor(this);return t.children.push(r),r[e].apply(r,arguments)}}),this)},d.prototype._init=function(body){const t=this._baseState;c(null===t.parent),body.call(this),t.children=t.children.filter((function(t){return t._baseState.parent===this}),this),c.equal(t.children.length,1,"Root node can have only one child")},d.prototype._useArgs=function(t){const e=this._baseState,r=t.filter((function(t){return t instanceof this.constructor}),this);t=t.filter((function(t){return!(t instanceof this.constructor)}),this),0!==r.length&&(c(null===e.children),e.children=r,r.forEach((function(t){t._baseState.parent=this}),this)),0!==t.length&&(c(null===e.args),e.args=t,e.reverseArgs=t.map((function(t){if("object"!=typeof t||t.constructor!==Object)return t;const e={};return Object.keys(t).forEach((function(r){r==(0|r)&&(r|=0);const n=t[r];e[n]=r})),e})))},["_peekTag","_decodeTag","_use","_decodeStr","_decodeObjid","_decodeTime","_decodeNull","_decodeInt","_decodeBool","_decodeList","_encodeComposite","_encodeStr","_encodeObjid","_encodeTime","_encodeNull","_encodeInt","_encodeBool"].forEach((function(t){d.prototype[t]=function(){const e=this._baseState;throw new Error(t+" not implemented for encoding: "+e.enc)}})),f.forEach((function(t){d.prototype[t]=function(){const e=this._baseState,r=Array.prototype.slice.call(arguments);return c(null===e.tag),e.tag=t,this._useArgs(r),this}})),d.prototype.use=function(t){c(t);const e=this._baseState;return c(null===e.use),e.use=t,this},d.prototype.optional=function(){return this._baseState.optional=!0,this},d.prototype.def=function(t){const e=this._baseState;return c(null===e.default),e.default=t,e.optional=!0,this},d.prototype.explicit=function(t){const e=this._baseState;return c(null===e.explicit&&null===e.implicit),e.explicit=t,this},d.prototype.implicit=function(t){const e=this._baseState;return c(null===e.explicit&&null===e.implicit),e.implicit=t,this},d.prototype.obj=function(){const t=this._baseState,e=Array.prototype.slice.call(arguments);return t.obj=!0,0!==e.length&&this._useArgs(e),this},d.prototype.key=function(t){const e=this._baseState;return c(null===e.key),e.key=t,this},d.prototype.any=function(){return this._baseState.any=!0,this},d.prototype.choice=function(t){const e=this._baseState;return c(null===e.choice),e.choice=t,this._useArgs(Object.keys(t).map((function(e){return t[e]}))),this},d.prototype.contains=function(t){const e=this._baseState;return c(null===e.use),e.contains=t,this},d.prototype._decode=function(input,t){const e=this._baseState;if(null===e.parent)return input.wrapResult(e.children[0]._decode(input,t));let r,n=e.default,o=!0,c=null;
vendor: 8,180 bytes, line 11
11if(null!==e.key&&(c=input.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(input,r,e.any),input.isError(o))return o}else{const r=input.save();try{null===e.choice?this._decodeGeneric(e.tag,input,t):this._decodeChoice(input,t),o=!0}catch(t){o=!1}input.restore(r)}}if(e.obj&&o&&(r=input.enterObject()),o){if(null!==e.explicit){const t=this._decodeTag(input,e.explicit);if(input.isError(t))return t;input=t}const r=input.offset;if(null===e.use&&null===e.choice){let t;e.any&&(t=input.save());const body=this._decodeTag(input,null!==e.implicit?e.implicit:e.tag,e.any);if(input.isError(body))return body;e.any?n=input.raw(t):input=body}if(t&&t.track&&null!==e.tag&&t.track(input.path(),r,input.length,"tagged"),t&&t.track&&null!==e.tag&&t.track(input.path(),input.offset,input.length,"content"),e.any||(n=null===e.choice?this._decodeGeneric(e.tag,input,t):this._decodeChoice(input,t)),input.isError(n))return n;if(e.any||null!==e.choice||null===e.children||e.children.forEach((function(e){e._decode(input,t)})),e.contains&&("octstr"===e.tag||"bitstr"===e.tag)){const data=new h(n);n=this._getUse(e.contains,input._reporterState.obj)._decode(data,t)}}return e.obj&&o&&(n=input.leaveObject(r)),null===e.key||null===n&&!0!==o?null!==c&&input.exitKey(c):input.leaveKey(c,e.key,n),n},d.prototype._decodeGeneric=function(t,input,e){const r=this._baseState;return"seq"===t||"set"===t?null:"seqof"===t||"setof"===t?this._decodeList(input,t,r.args[0],e):/str$/.test(t)?this._decodeStr(input,t,e):"objid"===t&&r.args?this._decodeObjid(input,r.args[0],r.args[1],e):"objid"===t?this._decodeObjid(input,null,null,e):"gentime"===t||"utctime"===t?this._decodeTime(input,t,e):"null_"===t?this._decodeNull(input,e):"bool"===t?this._decodeBool(input,e):"objDesc"===t?this._decodeStr(input,t,e):"int"===t||"enum"===t?this._decodeInt(input,r.args&&r.args[0],e):null!==r.use?this._getUse(r.use,input._reporterState.obj)._decode(input,e):input.error("unknown tag: "+t)},d.prototype._getUse=function(t,e){const r=this._baseState;return r.useDecoder=this._use(t,e),c(null===r.useDecoder._baseState.parent),r.useDecoder=r.useDecoder._baseState.children[0],r.implicit!==r.useDecoder._baseState.implicit&&(r.useDecoder=r.useDecoder.clone(),r.useDecoder._baseState.implicit=r.implicit),r.useDecoder},d.prototype._decodeChoice=function(input,t){const e=this._baseState;let r=null,n=!1;return Object.keys(e.choice).some((function(o){const h=input.save(),c=e.choice[o];try{const e=c._decode(input,t);if(input.isError(e))return!1;r={type:o,value:e},n=!0}catch(t){return input.restore(h),!1}return!0}),this),n?r:input.error("Choice not matched")},d.prototype._createEncoderBuffer=function(data){return new o(data,this.reporter)},d.prototype._encode=function(data,t,e){const r=this._baseState;if(null!==r.default&&r.default===data)return;const n=this._encodeValue(data,t,e);return void 0===n||this._skipDefault(n,t,e)?void 0:n},d.prototype._encodeValue=function(data,t,e){const r=this._baseState;if(null===r.parent)return r.children[0]._encode(data,t||new n);let o=null;if(this.reporter=t,r.optional&&void 0===data){if(null===r.default)return;data=r.default}let content=null,h=!1;if(r.any)o=this._createEncoderBuffer(data);else if(r.choice)o=this._encodeChoice(data,t);else if(r.contains)content=this._getUse(r.contains,e)._encode(data,t),h=!0;else if(r.children)content=r.children.map((function(e){if("null_"===e._baseState.tag)return e._encode(null,t,data);if(null===e._baseState.key)return t.error("Child should have a key");const r=t.enterKey(e._baseState.key);if("object"!=typeof data)return t.error("Child expected, but input is not object");const n=e._encode(data[e._baseState.key],t,data);return t.leaveKey(r),n}),this).filter((function(t){return t})),content=this._createEncoderBuffer(content);else if("seqof"===r.tag||"setof"===r.tag){if(!r.args||1!==r.args.length)return t.error("Too many args for : "+r.tag);if(!Array.isArray(data))return t.error("seqof/setof, but data is not Array");const e=this.clone();e._baseState.implicit=null,content=this._createEncoderBuffer(data.map((function(e){const r=this._baseState;return this._getUse(r.args[0],data)._encode(e,t)}),e))}else null!==r.use?o=this._getUse(r.use,e)._encode(data,t):(content=this._encodePrimitive(r.tag,data),h=!0);if(!r.any&&null===r.choice){const e=null!==r.implicit?r.implicit:r.tag,n=null===r.implicit?"universal":"context";null===e?null===r.use&&t.error("Tag could be omitted only for .use()"):null===r.use&&(o=this._encodeComposite(e,h,n,content))}return null!==r.explicit&&(o=this._encodeComposite(r.explicit,!1,"context",o)),o},d.prototype._encodeChoice=function(data,t){const e=this._baseState,r=e.choice[data.type];return r||c(!1,data.type+" not found in "+JSON.stringify(Object.keys(e.choice))),r._encode(data.value,t)},d.prototype._encodePrimitive=function(t,data){const e=this._baseState;if(/str$/.test(t))return this._encodeStr(data,t);if("objid"===t&&e.args)return this._encodeObjid(data,e.reverseArgs[0],e.args[1]);if("objid"===t)return this._encodeObjid(data,null,null);if("gentime"===t||"utctime"===t)return this._encodeTime(data,t);if("null_"===t)return this._encodeNull();if("int"===t||"enum"===t)return this._encodeInt(data,e.args&&e.reverseArgs[0]);if("bool"===t)return this._encodeBool(data);if("objDesc"===t)return this._encodeStr(data,t);throw new Error("Unsupported tag: "+t)},d.prototype._isNumstr=function(t){return/^[0-9 ]*$/.test(t)},d.prototype._isPrintstr=function(t){return/^[A-Za-z0-9 '()+,-./:=?]*$/.test(t)}},function(t,e,r){"use strict";const n=r(6);function o(t){this._reporterState={obj:null,path:[],options:t||{},errors:[]}}function h(path,t){this.path=path,this.rethrow(t)}e.Reporter=o,o.prototype.isError=function(t){return t instanceof h},o.prototype.save=function(){const t=this._reporterState;return{obj:t.obj,pathLen:t.path.length}},o.prototype.restore=function(data){const t=this._reporterState;t.obj=data.obj,t.path=t.path.slice(0,data.pathLen)},o.prototype.enterKey=function(t){return this._reporterState.path.push(t)},o.prototype.exitKey=function(t){const e=this._reporterState;e.path=e.path.slice(0,t-1)},o.prototype.leaveKey=function(t,e,r){const n=this._reporterState;this.exitKey(t),null!==n.obj&&(n.obj[e]=r)},o.prototype.path=function(){return this._reporterState.path.join("/")},o.prototype.enterObject=function(){const t=this._reporterState,e=t.obj;return t.obj={},e},o.prototype.leaveObject=function(t){const e=this._reporterState,r=e.obj;return e.obj=t,r},o.prototype.error=function(t){let e;const r=this._reporterState,n=t instanceof h;if(e=n?t:new h(r.path.map((function(t){return"["+JSON.stringify(t)+"]"})).join(""),t.message||t,t.stack),!r.options.partial)throw e;return n||r.errors.push(e),e},o.prototype.wrapResult=function(t){const e=this._reporterState;return e.options.partial?{result:this.isError(t)?null:t,errors:e.errors}:t},n(h,Error),h.prototype.rethrow=function(t){if(this.message=t+" at: "+(this.path||"(shallow)"),Error.captureStackTrace&&Error.captureStackTrace(this,h),!this.stack)try{throw new Error(this.message)}catch(t){this.stack=t.stack}return this}},function(t,e,r){"use strict";function n(map){const t={};return Object.keys(map).forEach((function(e){(0|e)==e&&(e|=0);const r=map[e];t[r]=e})),t}e.tagClass={0:"universal",1:"application",2:"context",3:"private"},e.tagClassByName=n(e.tagClass),e.tag={0:"end",1:"bool",2:"int",3:"bitstr",4:"octstr",5:"null_",6:"objid",7:"objDesc",8:"external",9:"real",10:"enum",11:"embed",12:"utf8str",13:"relativeOid",16:"seq",17:"set",18:"numstr",19:"printstr",20:"t61str",21:"videostr",22:"ia5str",23:"utctime",24:"gentime",25:"graphstr",26:"iso646str",27:"genstr",28:"unistr",29:"charstr",30:"bmpstr"},e.tagByName=n(e.tag)},function(t,e,r){(function(t){!function(t,e){"use strict";function n(t,e){if(!t)throw new Error(e||"Assertion failed")}function o(t,e){t.super_=e;var r=function(){};r.prototype=e.prototype,t.prototype=new r,t.prototype.constructor=t}function h(t,base,e){if(h.isBN(t))return t;this.negative=0,this.words=null,this.length=0,this.red=null,null!==t&&("le"!==base&&"be"!==base||(e=base,base
vendor: 4,177 bytes, line 11
11=10),this._init(t||0,base||10,e||"be"))}var c;"object"==typeof t?t.exports=h:e.BN=h,h.BN=h,h.wordSize=26;try{c=r(488).Buffer}catch(t){}function f(t,e,r){for(var n=0,o=Math.min(t.length,r),i=e;i<o;i++){var h=t.charCodeAt(i)-48;n<<=4,n|=h>=49&&h<=54?h-49+10:h>=17&&h<=22?h-17+10:15&h}return n}function l(t,e,r,n){for(var o=0,h=Math.min(t.length,r),i=e;i<h;i++){var c=t.charCodeAt(i)-48;o*=n,o+=c>=49?c-49+10:c>=17?c-17+10:c}return o}h.isBN=function(t){return t instanceof h||null!==t&&"object"==typeof t&&t.constructor.wordSize===h.wordSize&&Array.isArray(t.words)},h.max=function(t,e){return t.cmp(e)>0?t:e},h.min=function(t,e){return t.cmp(e)<0?t:e},h.prototype._init=function(t,base,e){if("number"==typeof t)return this._initNumber(t,base,e);if("object"==typeof t)return this._initArray(t,base,e);"hex"===base&&(base=16),n(base===(0|base)&&base>=2&&base<=36);var r=0;"-"===(t=t.toString().replace(/\s+/g,""))[0]&&r++,16===base?this._parseHex(t,r):this._parseBase(t,base,r),"-"===t[0]&&(this.negative=1),this.strip(),"le"===e&&this._initArray(this.toArray(),base,e)},h.prototype._initNumber=function(t,base,e){t<0&&(this.negative=1,t=-t),t<67108864?(this.words=[67108863&t],this.length=1):t<4503599627370496?(this.words=[67108863&t,t/67108864&67108863],this.length=2):(n(t<9007199254740992),this.words=[67108863&t,t/67108864&67108863,1],this.length=3),"le"===e&&this._initArray(this.toArray(),base,e)},h.prototype._initArray=function(t,base,e){if(n("number"==typeof t.length),t.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(t.length/3),this.words=new Array(this.length);for(var i=0;i<this.length;i++)this.words[i]=0;var r,o,h=0;if("be"===e)for(i=t.length-1,r=0;i>=0;i-=3)o=t[i]|t[i-1]<<8|t[i-2]<<16,this.words[r]|=o<<h&67108863,this.words[r+1]=o>>>26-h&67108863,(h+=24)>=26&&(h-=26,r++);else if("le"===e)for(i=0,r=0;i<t.length;i+=3)o=t[i]|t[i+1]<<8|t[i+2]<<16,this.words[r]|=o<<h&67108863,this.words[r+1]=o>>>26-h&67108863,(h+=24)>=26&&(h-=26,r++);return this.strip()},h.prototype._parseHex=function(t,e){this.length=Math.ceil((t.length-e)/6),this.words=new Array(this.length);for(var i=0;i<this.length;i++)this.words[i]=0;var r,n,o=0;for(i=t.length-6,r=0;i>=e;i-=6)n=f(t,i,i+6),this.words[r]|=n<<o&67108863,this.words[r+1]|=n>>>26-o&4194303,(o+=24)>=26&&(o-=26,r++);i+6!==e&&(n=f(t,e,i+6),this.words[r]|=n<<o&67108863,this.words[r+1]|=n>>>26-o&4194303),this.strip()},h.prototype._parseBase=function(t,base,e){this.words=[0],this.length=1;for(var r=0,n=1;n<=67108863;n*=base)r++;r--,n=n/base|0;for(var o=t.length-e,h=o%r,c=Math.min(o,o-h)+e,f=0,i=e;i<c;i+=r)f=l(t,i,i+r,base),this.imuln(n),this.words[0]+f<67108864?this.words[0]+=f:this._iaddn(f);if(0!==h){var d=1;for(f=l(t,i,t.length,base),i=0;i<h;i++)d*=base;this.imuln(d),this.words[0]+f<67108864?this.words[0]+=f:this._iaddn(f)}},h.prototype.copy=function(t){t.words=new Array(this.length);for(var i=0;i<this.length;i++)t.words[i]=this.words[i];t.length=this.length,t.negative=this.negative,t.red=this.red},h.prototype.clone=function(){var t=new h(null);return this.copy(t),t},h.prototype._expand=function(t){for(;this.length<t;)this.words[this.length++]=0;return this},h.prototype.strip=function(){for(;this.length>1&&0===this.words[this.length-1];)this.length--;return this._normSign()},h.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},h.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};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"],m=[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],v=[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,143489
vendor: 34,272 bytes, line 11
1107,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function y(t,e,r){r.negative=e.negative^t.negative;var n=t.length+e.length|0;r.length=n,n=n-1|0;var a=0|t.words[0],b=0|e.words[0],o=a*b,h=67108863&o,c=o/67108864|0;r.words[0]=h;for(var f=1;f<n;f++){for(var l=c>>>26,d=67108863&c,m=Math.min(f,e.length-1),v=Math.max(0,f-t.length+1);v<=m;v++){var i=f-v|0;l+=(o=(a=0|t.words[i])*(b=0|e.words[v])+d)/67108864|0,d=67108863&o}r.words[f]=0|d,c=0|l}return 0!==c?r.words[f]=0|c:r.length--,r.strip()}h.prototype.toString=function(base,t){var e;if(t=0|t||1,16===(base=base||10)||"hex"===base){e="";for(var r=0,o=0,i=0;i<this.length;i++){var h=this.words[i],c=(16777215&(h<<r|o)).toString(16);e=0!==(o=h>>>24-r&16777215)||i!==this.length-1?d[6-c.length]+c+e:c+e,(r+=2)>=26&&(r-=26,i--)}for(0!==o&&(e=o.toString(16)+e);e.length%t!=0;)e="0"+e;return 0!==this.negative&&(e="-"+e),e}if(base===(0|base)&&base>=2&&base<=36){var f=m[base],l=v[base];e="";var y=this.clone();for(y.negative=0;!y.isZero();){var w=y.modn(l).toString(base);e=(y=y.idivn(l)).isZero()?w+e:d[f-w.length]+w+e}for(this.isZero()&&(e="0"+e);e.length%t!=0;)e="0"+e;return 0!==this.negative&&(e="-"+e),e}n(!1,"Base should be between 2 and 36")},h.prototype.toNumber=function(){var t=this.words[0];return 2===this.length?t+=67108864*this.words[1]:3===this.length&&1===this.words[2]?t+=4503599627370496+67108864*this.words[1]:this.length>2&&n(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-t:t},h.prototype.toJSON=function(){return this.toString(16)},h.prototype.toBuffer=function(t,e){return n(void 0!==c),this.toArrayLike(c,t,e)},h.prototype.toArray=function(t,e){return this.toArrayLike(Array,t,e)},h.prototype.toArrayLike=function(t,e,r){var o=this.byteLength(),h=r||Math.max(1,o);n(o<=h,"byte array longer than desired length"),n(h>0,"Requested array length <= 0"),this.strip();var b,i,c="le"===e,f=new t(h),q=this.clone();if(c){for(i=0;!q.isZero();i++)b=q.andln(255),q.iushrn(8),f[i]=b;for(;i<h;i++)f[i]=0}else{for(i=0;i<h-o;i++)f[i]=0;for(i=0;!q.isZero();i++)b=q.andln(255),q.iushrn(8),f[h-i-1]=b}return f},Math.clz32?h.prototype._countBits=function(t){return 32-Math.clz32(t)}:h.prototype._countBits=function(t){var e=t,r=0;return e>=4096&&(r+=13,e>>>=13),e>=64&&(r+=7,e>>>=7),e>=8&&(r+=4,e>>>=4),e>=2&&(r+=2,e>>>=2),r+e},h.prototype._zeroBits=function(t){if(0===t)return 26;var e=t,r=0;return 0==(8191&e)&&(r+=13,e>>>=13),0==(127&e)&&(r+=7,e>>>=7),0==(15&e)&&(r+=4,e>>>=4),0==(3&e)&&(r+=2,e>>>=2),0==(1&e)&&r++,r},h.prototype.bitLength=function(){var t=this.words[this.length-1],e=this._countBits(t);return 26*(this.length-1)+e},h.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,i=0;i<this.length;i++){var b=this._zeroBits(this.words[i]);if(t+=b,26!==b)break}return t},h.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},h.prototype.toTwos=function(t){return 0!==this.negative?this.abs().inotn(t).iaddn(1):this.clone()},h.prototype.fromTwos=function(t){return this.testn(t-1)?this.notn(t).iaddn(1).ineg():this.clone()},h.prototype.isNeg=function(){return 0!==this.negative},h.prototype.neg=function(){return this.clone().ineg()},h.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},h.prototype.iuor=function(t){for(;this.length<t.length;)this.words[this.length++]=0;for(var i=0;i<t.length;i++)this.words[i]=this.words[i]|t.words[i];return this.strip()},h.prototype.ior=function(t){return n(0==(this.negative|t.negative)),this.iuor(t)},h.prototype.or=function(t){return this.length>t.length?this.clone().ior(t):t.clone().ior(this)},h.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},h.prototype.iuand=function(t){var b;b=this.length>t.length?t:this;for(var i=0;i<b.length;i++)this.words[i]=this.words[i]&t.words[i];return this.length=b.length,this.strip()},h.prototype.iand=function(t){return n(0==(this.negative|t.negative)),this.iuand(t)},h.prototype.and=function(t){return this.length>t.length?this.clone().iand(t):t.clone().iand(this)},h.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},h.prototype.iuxor=function(t){var a,b;this.length>t.length?(a=this,b=t):(a=t,b=this);for(var i=0;i<b.length;i++)this.words[i]=a.words[i]^b.words[i];if(this!==a)for(;i<a.length;i++)this.words[i]=a.words[i];return this.length=a.length,this.strip()},h.prototype.ixor=function(t){return n(0==(this.negative|t.negative)),this.iuxor(t)},h.prototype.xor=function(t){return this.length>t.length?this.clone().ixor(t):t.clone().ixor(this)},h.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},h.prototype.inotn=function(t){n("number"==typeof t&&t>=0);var e=0|Math.ceil(t/26),r=t%26;this._expand(e),r>0&&e--;for(var i=0;i<e;i++)this.words[i]=67108863&~this.words[i];return r>0&&(this.words[i]=~this.words[i]&67108863>>26-r),this.strip()},h.prototype.notn=function(t){return this.clone().inotn(t)},h.prototype.setn=function(t,e){n("number"==typeof t&&t>=0);var r=t/26|0,o=t%26;return this._expand(r+1),this.words[r]=e?this.words[r]|1<<o:this.words[r]&~(1<<o),this.strip()},h.prototype.iadd=function(t){var e,a,b;if(0!==this.negative&&0===t.negative)return this.negative=0,e=this.isub(t),this.negative^=1,this._normSign();if(0===this.negative&&0!==t.negative)return t.negative=0,e=this.isub(t),t.negative=1,e._normSign();this.length>t.length?(a=this,b=t):(a=t,b=this);for(var r=0,i=0;i<b.length;i++)e=(0|a.words[i])+(0|b.words[i])+r,this.words[i]=67108863&e,r=e>>>26;for(;0!==r&&i<a.length;i++)e=(0|a.words[i])+r,this.words[i]=67108863&e,r=e>>>26;if(this.length=a.length,0!==r)this.words[this.length]=r,this.length++;else if(a!==this)for(;i<a.length;i++)this.words[i]=a.words[i];return this},h.prototype.add=function(t){var e;return 0!==t.negative&&0===this.negative?(t.negative=0,e=this.sub(t),t.negative^=1,e):0===t.negative&&0!==this.negative?(this.negative=0,e=t.sub(this),this.negative=1,e):this.length>t.length?this.clone().iadd(t):t.clone().iadd(this)},h.prototype.isub=function(t){if(0!==t.negative){t.negative=0;var e=this.iadd(t);return t.negative=1,e._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(t),this.negative=1,this._normSign();var a,b,r=this.cmp(t);if(0===r)return this.negative=0,this.length=1,this.words[0]=0,this;r>0?(a=this,b=t):(a=t,b=this);for(var n=0,i=0;i<b.length;i++)n=(e=(0|a.words[i])-(0|b.words[i])+n)>>26,this.words[i]=67108863&e;for(;0!==n&&i<a.length;i++)n=(e=(0|a.words[i])+n)>>26,this.words[i]=67108863&e;if(0===n&&i<a.length&&a!==this)for(;i<a.length;i++)this.words[i]=a.words[i];return this.length=Math.max(this.length,i),a!==this&&(this.negative=1),this.strip()},h.prototype.sub=function(t){return this.clone().isub(t)};var w=function(t,e,r){var n,o,h,a=t.words,b=e.words,c=r.words,f=0,l=0|a[0],d=8191&l,m=l>>>13,v=0|a[1],y=8191&v,w=v>>>13,M=0|a[2],_=8191&M,S=M>>>13,A=0|a[3],x=8191&A,k=A>>>13,E=0|a[4],C=8191&E,R=E>>>13,I=0|a[5],P=8191&I,T=I>>>13,O=0|a[6],j=8191&O,U=O>>>13,B=0|a[7],D=8191&B,F=B>>>13,L=0|a[8],N=8191&L,H=L>>>13,z=0|a[9],V=8191&z,K=z>>>13,Z=0|b[0],W=8191&Z,G=Z>>>13,J=0|b[1],Y=8191&J,Q=J>>>13,X=0|b[2],$=8191&X,tt=X>>>13,et=0|b[3],it=8191&et,nt=et>>>13,ot=0|b[4],st=8191&ot,at=ot>>>13,ut=0|b[5],ht=8191&ut,ct=ut>>>13,ft=0|b[6],lt=8191&ft,pt=ft>>>13,mt=0|b[7],gt=8191&mt,vt=mt>>>13,yt=0|b[8],bt=8191&yt,wt=yt>>>13,Mt=0|b[9],_t=8191&Mt,St=Mt>>>13;r.negative=t.negative^e.negative,r.length=19;var At=(f+(n=Math.imul(d,W))|0)+((8191&(o=(o=Math.imul(d,G))+Math.imul(m,W)|0))<<13)|0;f=((h=Math.imul(m,G))+(o>>>13)|0)+(At>>>26)|0,At&=67108863,n=Math.imul(y,W),o=(o=Math.imul(y,G))+Math.imul(w,W)|0,h=Math.imul(w,G);var xt=(f+(n=n+Math.imul(d,Y)|0)|0)+((8191&(o=(o=o+Math.imul(d,Q)|0)+Math.imul(m,Y)|0))<<13)|0;f=((h=h+Math.imul(m,Q)|0)+(o>>>13)|0)+(xt>>>26)|0,xt&=67108863,n=Math.imul(_,W),o=(o=Math.imul(_,G))+Math.imul(S,W)|0,h=Math.imul(S,G),n=n+Math.imul(y,Y)|0,o=(o=o+Math.imul(y,Q)|0)+Math.imul(w,Y)|0,h=h+Math.imul(w,Q)|0;var kt=(f+(n=n+Math.imul(d,$)|0)|0)+((8191&(o=(o=o+Math.imul(d,tt)|0)+Math.imul(m,$)|0))<<13)|0;f=((h=h+Math.imul(m,tt)|0)+(o>>>13)|0)+(kt>>>26)|0,kt&=67108863,n=Math.imul(x,W),o=(o=Math.imul(x,G))+Math.imul(k,W)|0,h=Math.imul(k,G),n=n+Math.imul(_,Y)|0,o=(o=o+Math.imul(_,Q)|0)+Math.imul(S,Y)|0,h=h+Math.imul(S,Q)|0,n=n+Math.imul(y,$)|0,o=(o=o+Math.imul(y,tt)|0)+Math.imul(w,$)|0,h=h+Math.imul(w,tt)|0;var Et=(f+(n=n+Math.imul(d,it)|0)|0)+((8191&(o=(o=o+Math.imul(d,nt)|0)+Math.imul(m,it)|0))<<13)|0;f=((h=h+Math.imul(m,nt)|0)+(o>>>13)|0)+(Et>>>26)|0,Et&=67108863,n=Math.imul(C,W),o=(o=Math.imul(C,G))+Math.imul(R,W)|0,h=Math.imul(R,G),n=n+Math.imul(x,Y)|0,o=(o=o+Math.imul(x,Q)|0)+Math.imul(k,Y)|0,h=h+Math.imul(k,Q)|0,n=n+Math.imul(_,$)|0,o=(o=o+Math.imul(_,tt)|0)+Math.imul(S,$)|0,h=h+Math.imul(S,tt)|0,n=n+Math.imul(y,it)|0,o=(o=o+Math.imul(y,nt)|0)+Math.imul(w,it)|0,h=h+Math.imul(w,nt)|0;var Ct=(f+(n=n+Math.imul(d,st)|0)|0)+((8191&(o=(o=o+Math.imul(d,at)|0)+Math.imul(m,st)|0))<<13)|0;f=((h=h+Math.imul(m,at)|0)+(o>>>13)|0)+(Ct>>>26)|0,Ct&=67108863,n=Math.imul(P,W),o=(o=Math.imul(P,G))+Math.imul(T,W)|0,h=Math.imul(T,G),n=n+Math.imul(C,Y)|0,o=(o=o+Math.imul(C,Q)|0)+Math.imul(R,Y)|0,h=h+Math.imul(R,Q)|0,n=n+Math.imul(x,$)|0,o=(o=o+Math.imul(x,tt)|0)+Math.imul(k,$)|0,h=h+Math.imul(k,tt)|0,n=n+Math.imul(_,it)|0,o=(o=o+Math.imul(_,nt)|0)+Math.imul(S,it)|0,h=h+Math.imul(S,nt)|0,n=n+Math.imul(y,st)|0,o=(o=o+Math.imul(y,at)|0)+Math.imul(w,st)|0,h=h+Math.imul(w,at)|0;var Rt=(f+(n=n+Math.imul(d,ht)|0)|0)+((8191&(o=(o=o+Math.imul(d,ct)|0)+Math.imul(m,ht)|0))<<13)|0;f=((h=h+Math.imul(m,ct)|0)+(o>>>13)|0)+(Rt>>>26)|0,Rt&=67108863,n=Math.imul(j,W),o=(o=Math.imul(j,G))+Math.imul(U,W)|0,h=Math.imul(U,G),n=n+Math.imul(P,Y)|0,o=(o=o+Math.imul(P,Q)|0)+Math.imul(T,Y)|0,h=h+Math.imul(T,Q)|0,n=n+Math.imul(C,$)|0,o=(o=o+Math.imul(C,tt)|0)+Math.imul(R,$)|0,h=h+Math.imul(R,tt)|0,n=n+Math.imul(x,it)|0,o=(o=o+Math.imul(x,nt)|0)+Math.imul(k,it)|0,h=h+Math.imul(k,nt)|0,n=n+Math.imul(_,st)|0,o=(o=o+Math.imul(_,at)|0)+Math.imul(S,st)|0,h=h+Math.imul(S,at)|0,n=n+Math.imul(y,ht)|0,o=(o=o+Math.imul(y,ct)|0)+Math.imul(w,ht)|0,h=h+Math.imul(w,ct)|0;var It=(f+(n=n+Math.imul(d,lt)|0)|0)+((8191&(o=(o=o+Math.imul(d,pt)|0)+Math.imul(m,lt)|0))<<13)|0;f=((h=h+Math.imul(m,pt)|0)+(o>>>13)|0)+(It>>>26)|0,It&=67108863,n=Math.imul(D,W),o=(o=Math.imul(D,G))+Math.imul(F,W)|0,h=Math.imul(F,G),n=n+Math.imul(j,Y)|0,o=(o=o+Math.imul(j,Q)|0)+Math.imul(U,Y)|0,h=h+Math.imul(U,Q)|0,n=n+Math.imul(P,$)|0,o=(o=o+Math.imul(P,tt)|0)+Math.imul(T,$)|0,h=h+Math.imul(T,tt)|0,n=n+Math.imul(C,it)|0,o=(o=o+Math.imul(C,nt)|0)+Math.imul(R,it)|0,h=h+Math.imul(R,nt)|0,n=n+Math.imul(x,st)|0,o=(o=o+Math.imul(x,at)|0)+Math.imul(k,st)|0,h=h+Math.imul(k,at)|0,n=n+Math.imul(_,ht)|0,o=(o=o+Math.imul(_,ct)|0)+Math.imul(S,ht)|0,h=h+Math.imul(S,ct)|0,n=n+Math.imul(y,lt)|0,o=(o=o+Math.imul(y,pt)|0)+Math.imul(w,lt)|0,h=h+Math.imul(w,pt)|0;var Pt=(f+(n=n+Math.imul(d,gt)|0)|0)+((8191&(o=(o=o+Math.imul(d,vt)|0)+Math.imul(m,gt)|0))<<13)|0;f=((h=h+Math.imul(m,vt)|0)+(o>>>13)|0)+(Pt>>>26)|0,Pt&=67108863,n=Math.imul(N,W),o=(o=Math.imul(N,G))+Math.imul(H,W)|0,h=Math.imul(H,G),n=n+Math.imul(D,Y)|0,o=(o=o+Math.imul(D,Q)|0)+Math.imul(F,Y)|0,h=h+Math.imul(F,Q)|0,n=n+Math.imul(j,$)|0,o=(o=o+Math.imul(j,tt)|0)+Math.imul(U,$)|0,h=h+Math.imul(U,tt)|0,n=n+Math.imul(P,it)|0,o=(o=o+Math.imul(P,nt)|0)+Math.imul(T,it)|0,h=h+Math.imul(T,nt)|0,n=n+Math.imul(C,st)|0,o=(o=o+Math.imul(C,at)|0)+Math.imul(R,st)|0,h=h+Math.imul(R,at)|0,n=n+Math.imul(x,ht)|0,o=(o=o+Math.imul(x,ct)|0)+Math.imul(k,ht)|0,h=h+Math.imul(k,ct)|0,n=n+Math.imul(_,lt)|0,o=(o=o+Math.imul(_,pt)|0)+Math.imul(S,lt)|0,h=h+Math.imul(S,pt)|0,n=n+Math.imul(y,gt)|0,o=(o=o+Math.imul(y,vt)|0)+Math.imul(w,gt)|0,h=h+Math.imul(w,vt)|0;var Tt=(f+(n=n+Math.imul(d,bt)|0)|0)+((8191&(o=(o=o+Math.imul(d,wt)|0)+Math.imul(m,bt)|0))<<13)|0;f=((h=h+Math.imul(m,wt)|0)+(o>>>13)|0)+(Tt>>>26)|0,Tt&=67108863,n=Math.imul(V,W),o=(o=Math.imul(V,G))+Math.imul(K,W)|0,h=Math.imul(K,G),n=n+Math.imul(N,Y)|0,o=(o=o+Math.imul(N,Q)|0)+Math.imul(H,Y)|0,h=h+Math.imul(H,Q)|0,n=n+Math.imul(D,$)|0,o=(o=o+Math.imul(D,tt)|0)+Math.imul(F,$)|0,h=h+Math.imul(F,tt)|0,n=n+Math.imul(j,it)|0,o=(o=o+Math.imul(j,nt)|0)+Math.imul(U,it)|0,h=h+Math.imul(U,nt)|0,n=n+Math.imul(P,st)|0,o=(o=o+Math.imul(P,at)|0)+Math.imul(T,st)|0,h=h+Math.imul(T,at)|0,n=n+Math.imul(C,ht)|0,o=(o=o+Math.imul(C,ct)|0)+Math.imul(R,ht)|0,h=h+Math.imul(R,ct)|0,n=n+Math.imul(x,lt)|0,o=(o=o+Math.imul(x,pt)|0)+Math.imul(k,lt)|0,h=h+Math.imul(k,pt)|0,n=n+Math.imul(_,gt)|0,o=(o=o+Math.imul(_,vt)|0)+Math.imul(S,gt)|0,h=h+Math.imul(S,vt)|0,n=n+Math.imul(y,bt)|0,o=(o=o+Math.imul(y,wt)|0)+Math.imul(w,bt)|0,h=h+Math.imul(w,wt)|0;var Ot=(f+(n=n+Math.imul(d,_t)|0)|0)+((8191&(o=(o=o+Math.imul(d,St)|0)+Math.imul(m,_t)|0))<<13)|0;f=((h=h+Math.imul(m,St)|0)+(o>>>13)|0)+(Ot>>>26)|0,Ot&=67108863,n=Math.imul(V,Y),o=(o=Math.imul(V,Q))+Math.imul(K,Y)|0,h=Math.imul(K,Q),n=n+Math.imul(N,$)|0,o=(o=o+Math.imul(N,tt)|0)+Math.imul(H,$)|0,h=h+Math.imul(H,tt)|0,n=n+Math.imul(D,it)|0,o=(o=o+Math.imul(D,nt)|0)+Math.imul(F,it)|0,h=h+Math.imul(F,nt)|0,n=n+Math.imul(j,st)|0,o=(o=o+Math.imul(j,at)|0)+Math.imul(U,st)|0,h=h+Math.imul(U,at)|0,n=n+Math.imul(P,ht)|0,o=(o=o+Math.imul(P,ct)|0)+Math.imul(T,ht)|0,h=h+Math.imul(T,ct)|0,n=n+Math.imul(C,lt)|0,o=(o=o+Math.imul(C,pt)|0)+Math.imul(R,lt)|0,h=h+Math.imul(R,pt)|0,n=n+Math.imul(x,gt)|0,o=(o=o+Math.imul(x,vt)|0)+Math.imul(k,gt)|0,h=h+Math.imul(k,vt)|0,n=n+Math.imul(_,bt)|0,o=(o=o+Math.imul(_,wt)|0)+Math.imul(S,bt)|0,h=h+Math.imul(S,wt)|0;var jt=(f+(n=n+Math.imul(y,_t)|0)|0)+((8191&(o=(o=o+Math.imul(y,St)|0)+Math.imul(w,_t)|0))<<13)|0;f=((h=h+Math.imul(w,St)|0)+(o>>>13)|0)+(jt>>>26)|0,jt&=67108863,n=Math.imul(V,$),o=(o=Math.imul(V,tt))+Math.imul(K,$)|0,h=Math.imul(K,tt),n=n+Math.imul(N,it)|0,o=(o=o+Math.imul(N,nt)|0)+Math.imul(H,it)|0,h=h+Math.imul(H,nt)|0,n=n+Math.imul(D,st)|0,o=(o=o+Math.imul(D,at)|0)+Math.imul(F,st)|0,h=h+Math.imul(F,at)|0,n=n+Math.imul(j,ht)|0,o=(o=o+Math.imul(j,ct)|0)+Math.imul(U,ht)|0,h=h+Math.imul(U,ct)|0,n=n+Math.imul(P,lt)|0,o=(o=o+Math.imul(P,pt)|0)+Math.imul(T,lt)|0,h=h+Math.imul(T,pt)|0,n=n+Math.imul(C,gt)|0,o=(o=o+Math.imul(C,vt)|0)+Math.imul(R,gt)|0,h=h+Math.imul(R,vt)|0,n=n+Math.imul(x,bt)|0,o=(o=o+Math.imul(x,wt)|0)+Math.imul(k,bt)|0,h=h+Math.imul(k,wt)|0;var Ut=(f+(n=n+Math.imul(_,_t)|0)|0)+((8191&(o=(o=o+Math.imul(_,St)|0)+Math.imul(S,_t)|0))<<13)|0;f=((h=h+Math.imul(S,St)|0)+(o>>>13)|0)+(Ut>>>26)|0,Ut&=67108863,n=Math.imul(V,it),o=(o=Math.imul(V,nt))+Math.imul(K,it)|0,h=Math.imul(K,nt),n=n+Math.imul(N,st)|0,o=(o=o+Math.imul(N,at)|0)+Math.imul(H,st)|0,h=h+Math.imul(H,at)|0,n=n+Math.imul(D,ht)|0,o=(o=o+Math.imul(D,ct)|0)+Math.imul(F,ht)|0,h=h+Math.imul(F,ct)|0,n=n+Math.imul(j,lt)|0,o=(o=o+Math.imul(j,pt)|0)+Math.imul(U,lt)|0,h=h+Math.imul(U,pt)|0,n=n+Math.imul(P,gt)|0,o=(o=o+Math.imul(P,vt)|0)+Math.imul(T,gt)|0,h=h+Math.imul(T,vt)|0,n=n+Math.imul(C,bt)|0,o=(o=o+Math.imul(C,wt)|0)+Math.imul(R,bt)|0,h=h+Math.imul(R,wt)|0;var Bt=(f+(n=n+Math.imul(x,_t)|0)|0)+((8191&(o=(o=o+Math.imul(x,St)|0)+Math.imul(k,_t)|0))<<13)|0;f=((h=h+Math.imul(k,St)|0)+(o>>>13)|0)+(Bt>>>26)|0,Bt&=67108863,n=Math.imul(V,st),o=(o=Math.imul(V,at))+Math.imul(K,st)|0,h=Math.imul(K,at),n=n+Math.imul(N,ht)|0,o=(o=o+Math.imul(N,ct)|0)+Math.imul(H,ht)|0,h=h+Math.imul(H,ct)|0,n=n+Math.imul(D,lt)|0,o=(o=o+Math.imul(D,pt)|0)+Math.imul(F,lt)|0,h=h+Math.imul(F,pt)|0,n=n+Math.imul(j,gt)|0,o=(o=o+Math.imul(j,vt)|0)+Math.imul(U,gt)|0,h=h+Math.imul(U,vt)|0,n=n+Math.imul(P,bt)|0,o=(o=o+Math.imul(P,wt)|0)+Math.imul(T,bt)|0,h=h+Math.imul(T,wt)|0;var Dt=(f+(n=n+Math.imul(C,_t)|0)|0)+((8191&(o=(o=o+Math.imul(C,St)|0)+Math.imul(R,_t)|0))<<13)|0;f=((h=h+Math.imul(R,St)|0)+(o>>>13)|0)+(Dt>>>26)|0,Dt&=67108863,n=Math.imul(V,ht),o=(o=Math.imul(V,ct))+Math.imul(K,ht)|0,h=Math.imul(K,ct),n=n+Math.imul(N,lt)|0,o=(o=o+Math.imul(N,pt)|0)+Math.imul(H,lt)|0,h=h+Math.imul(H,pt)|0,n=n+Math.imul(D,gt)|0,o=(o=o+Math.imul(D,vt)|0)+Math.imul(F,gt)|0,h=h+Math.imul(F,vt)|0,n=n+Math.imul(j,bt)|0,o=(o=o+Math.imul(j,wt)|0)+Math.imul(U,bt)|0,h=h+Math.imul(U,wt)|0;var Ft=(f+(n=n+Math.imul(P,_t)|0)|0)+((8191&(o=(o=o+Math.imul(P,St)|0)+Math.imul(T,_t)|0))<<13)|0;f=((h=h+Math.imul(T,St)|0)+(o>>>13)|0)+(Ft>>>26)|0,Ft&=67108863,n=Math.imul(V,lt),o=(o=Math.imul(V,pt))+Math.imul(K,lt)|0,h=Math.imul(K,pt),n=n+Math.imul(N,gt)|0,o=(o=o+Math.imul(N,vt)|0)+Math.imul(H,gt)|0,h=h+Math.imul(H,vt)|0,n=n+Math.imul(D,bt)|0,o=(o=o+Math.imul(D,wt)|0)+Math.imul(F,bt)|0,h=h+Math.imul(F,wt)|0;var Lt=(f+(n=n+Math.imul(j,_t)|0)|0)+((8191&(o=(o=o+Math.imul(j,St)|0)+Math.imul(U,_t)|0))<<13)|0;f=((h=h+Math.imul(U,St)|0)+(o>>>13)|0)+(Lt>>>26)|0,Lt&=67108863,n=Math.imul(V,gt),o=(o=Math.imul(V,vt))+Math.imul(K,gt)|0,h=Math.imul(K,vt),n=n+Math.imul(N,bt)|0,o=(o=o+Math.imul(N,wt)|0)+Math.imul(H,bt)|0,h=h+Math.imul(H,wt)|0;var Nt=(f+(n=n+Math.imul(D,_t)|0)|0)+((8191&(o=(o=o+Math.imul(D,St)|0)+Math.imul(F,_t)|0))<<13)|0;f=((h=h+Math.imul(F,St)|0)+(o>>>13)|0)+(Nt>>>26)|0,Nt&=67108863,n=Math.imul(V,bt),o=(o=Math.imul(V,wt))+Math.imul(K,bt)|0,h=Math.imul(K,wt);var qt=(f+(n=n+Math.imul(N,_t)|0)|0)+((8191&(o=(o=o+Math.imul(N,St)|0)+Math.imul(H,_t)|0))<<13)|0;f=((h=h+Math.imul(H,St)|0)+(o>>>13)|0)+(qt>>>26)|0,qt&=67108863;var Ht=(f+(n=Math.imul(V,_t))|0)+((8191&(o=(o=Math.imul(V,St))+Math.imul(K,_t)|0))<<13)|0;return f=((h=Math.imul(K,St))+(o>>>13)|0)+(Ht>>>26)|0,Ht&=67108863,c[0]=At,c[1]=xt,c[2]=kt,c[3]=Et,c[4]=Ct,c[5]=Rt,c[6]=It,c[7]=Pt,c[8]=Tt,c[9]=Ot,c[10]=jt,c[11]=Ut,c[12]=Bt,c[13]=Dt,c[14]=Ft,c[15]=Lt,c[16]=Nt,c[17]=qt,c[18]=Ht,0!==f&&(c[19]=f,r.length++),r};function M(t,e,r){return(new _).mulp(t,e,r)}function _(t,e){this.x=t,this.y=e}Math.imul||(w=y),h.prototype.mulTo=function(t,e){var r=this.length+t.length;return 10===this.length&&10===t.length?w(this,t,e):r<63?y(this,t,e):r<1024?function(t,e,r){r.negative=e.negative^t.negative,r.length=t.length+e.length;for(var n=0,o=0,h=0;h<r.length-1;h++){var c=o;o=0;for(var f=67108863&n,l=Math.min(h,e.length-1),d=Math.max(0,h-t.length+1);d<=l;d++){var i=h-d,m=(0|t.words[i])*(0|e.words[d]),v=67108863&m;f=67108863&(v=v+f|0),o+=(c=(c=c+(m/67108864|0)|0)+(v>>>26)|0)>>>26,c&=67108863}r.words[h]=f,n=c,c=o}return 0!==n?r.words[h]=n:r.length--,r.strip()}(this,t,e):M(this,t,e)},_.prototype.makeRBT=function(t){for(var e=new Array(t),r=h.prototype._countBits(t)-1,i=0;i<t;i++)e[i]=this.revBin(i,r,t);return e},_.prototype.revBin=function(t,e,r){if(0===t||t===r-1)return t;for(var n=0,i=0;i<e;i++)n|=(1&t)<<e-i-1,t>>=1;return n},_.prototype.permute=function(t,e,r,n,o,h){for(var i=0;i<h;i++)n[i]=e[t[i]],o[i]=r[t[i]]},_.prototype.transform=function(t,e,r,n,o,h){this.permute(h,t,e,r,n,o);for(var s=1;s<o;s<<=1)for(var c=s<<1,f=Math.cos(2*Math.PI/c),l=Math.sin(2*Math.PI/c),p=0;p<o;p+=c)for(var d=f,m=l,v=0;v<s;v++){var y=r[p+v],w=n[p+v],M=r[p+v+s],_=n[p+v+s],S=d*M-m*_;_=d*_+m*M,M=S,r[p+v]=y+M,n[p+v]=w+_,r[p+v+s]=y-M,n[p+v+s]=w-_,v!==c&&(S=f*d-l*m,m=f*m+l*d,d=S)}},_.prototype.guessLen13b=function(t,e){var r=1|Math.max(e,t),n=1&r,i=0;for(r=r/2|0;r;r>>>=1)i++;return 1<<i+1+n},_.prototype.conjugate=function(t,e,r){if(!(r<=1))for(var i=0;i<r/2;i++){var n=t[i];t[i]=t[r-i-1],t[r-i-1]=n,n=e[i],e[i]=-e[r-i-1],e[r-i-1]=-n}},_.prototype.normalize13b=function(t,e){for(var r=0,i=0;i<e/2;i++){var n=8192*Math.round(t[2*i+1]/e)+Math.round(t[2*i]/e)+r;t[i]=67108863&n,r=n<67108864?0:n/67108864|0}return t},_.prototype.convert13b=function(t,e,r,o){for(var h=0,i=0;i<e;i++)h+=0|t[i],r[2*i]=8191&h,h>>>=13,r[2*i+1]=8191&h,h>>>=13;for(i=2*e;i<o;++i)r[i]=0;n(0===h),n(0==(-8192&h))},_.prototype.stub=function(t){for(var e=new Array(t),i=0;i<t;i++)e[i]=0;return e},_.prototype.mulp=function(t,e,r){var n=2*this.guessLen13b(t.length,e.length),o=this.makeRBT(n),h=this.stub(n),c=new Array(n),f=new Array(n),l=new Array(n),d=new Array(n),m=new Array(n),v=new Array(n),y=r.words;y.length=n,this.convert13b(t.words,t.length,c,n),this.convert13b(e.words,e.length,d,n),this.transform(c,h,f,l,n,o),this.transform(d,h,m,v,n,o);for(var i=0;i<n;i++){var w=f[i]*m[i]-l[i]*v[i];l[i]=f[i]*v[i]+l[i]*m[i],f[i]=w}return this.conjugate(f,l,n),this.transform(f,l,y,h,n,o),this.conjugate(y,h,n),this.normalize13b(y,n),r.negative=t.negative^e.negative,r.length=t.length+e.length,r.strip()},h.prototype.mul=function(t){var e=new h(null);return e.words=new Array(this.length+t.length),this.mulTo(t,e)},h.prototype.mulf=function(t){var e=new h(null);return e.words=new Array(this.length+t.length),M(this,t,e)},h.prototype.imul=function(t){return this.clone().mulTo(t,this)},h.prototype.imuln=function(t){n("number"==typeof t),n(t<67108864);for(var e=0,i=0;i<this.length;i++){var r=(0|this.words[i])*t,o=(67108863&r)+(67108863&e);e>>=26,e+=r/67108864|0,e+=o>>>26,this.words[i]=67108863&o}return 0!==e&&(this.words[i]=e,this.length++),this},h.prototype.muln=function(t){return this.clone().imuln(t)},h.prototype.sqr=function(){return this.mul(this)},h.prototype.isqr=function(){return this.imul(this.clone())},h.prototype.pow=function(t){var e=function(t){for(var e=new Array(t.bitLength()),r=0;r<e.length;r++){var n=r/26|0,o=r%26;e[r]=(t.words[n]&1<<o)>>>o}return e}(t);if(0===e.length)return new h(1);for(var r=this,i=0;i<e.length&&0===e[i];i++,r=r.sqr());if(++i<e.length)for(var q=r.sqr();i<e.length;i++,q=q.sqr())0!==e[i]&&(r=r.mul(q));return r},h.prototype.iushln=function(t){n("number"==typeof t&&t>=0);var i,e=t%26,s=(t-e)/26,r=67108863>>>26-e<<26-e;if(0!==e){var o=0;for(i=0;i<this.length;i++){var h=this.words[i]&r,c=(0|this.words[i])-h<<e;this.words[i]=c|o,o=h>>>26-e}o&&(this.words[i]=o,this.length++)}if(0!==s){for(i=this.length-1;i>=0;i--)this.words[i+s]=this.words[i];for(i=0;i<s;i++)this.words[i]=0;this.length+=s}return this.strip()},h.prototype.ishln=function(t){return n(0===this.negative),this.iushln(t)},h.prototype.iushrn=function(t,e,r){var o;n("number"==typeof t&&t>=0),o=e?(e-e%26)/26:0;var h=t%26,s=Math.min((t-h)/26,this.length),mask=67108863^67108863>>>h<<h,c=r;if(o-=s,o=Math.max(0,o),c){for(var i=0;i<s;i++)c.words[i]=this.words[i];c.length=s}if(0===s);else if(this.length>s)for(this.length-=s,i=0;i<this.length;i++)this.words[i]=this.words[i+s];else this.words[0]=0,this.length=1;var f=0;for(i=this.length-1;i>=0&&(0!==f||i>=o);i--){var l=0|this.words[i];this.words[i]=f<<26-h|l>>>h,f=l&mask}return c&&0!==f&&(c.words[c.length++]=f),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},h.prototype.ishrn=function(t,e,r){return n(0===this.negative),this.iushrn(t,e,r)},h.prototype.shln=function(t){return this.clone().ishln(t)},h.prototype.ushln=function(t){return this.clone().iushln(t)},h.prototype.shrn=function(t){return this.clone().ishrn(t)},h.prototype.ushrn=function(t){return this.clone().iushrn(t)},h.prototype.testn=function(t){n("number"==typeof t&&t>=0);var e=t%26,s=(t-e)/26,q=1<<e;return!(this.length<=s)&&!!(this.words[s]&q)},h.prototype.imaskn=function(t){n("number"==typeof t&&t>=0);var e=t%26,s=(t-e)/26;if(n(0===this.negative,"imaskn works only with positive numbers"),this.length<=s)return this;if(0!==e&&s++,this.length=Math.min(s,this.length),0!==e){var mask=67108863^67108863>>>e<<e;this.words[this.length-1]&=mask}return this.strip()},h.prototype.maskn=function(t){return this.clone().imaskn(t)},h.prototype.iaddn=function(t){return n("number"==typeof t),n(t<67108864),t<0?this.isubn(-t):0!==this.negative?1===this.length&&(0|this.words[0])<t?(this.words[0]=t-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(t),this.negative=1,this):this._iaddn(t)},h.prototype._iaddn=function(t){this.words[0]+=t;for(var i=0;i<this.length&&this.words[i]>=67108864;i++)this.words[i]-=67108864,i===this.length-1?this.words[i+1]=1:this.words[i+1]++;return this.length=Math.max(this.length,i+1),this},h.prototype.isubn=function(t){if(n("number"==typeof t),n(t<67108864),t<0)return this.iaddn(-t);if(0!==this.negative)return this.negative=0,this.iaddn(t),this.negative=1,this;if(this.words[0]-=t,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var i=0;i<this.length&&this.words[i]<0;i++)this.words[i]+=67108864,this.words[i+1]-=1;return this.strip()},h.prototype.addn=function(t){return this.clone().iaddn(t)},h.prototype.subn=function(t){return this.clone().isubn(t)},h.prototype.iabs=function(){return this.negative=0,this},h.prototype.abs=function(){return this.clone().iabs()},h.prototype._ishlnsubmul=function(t,e,r){var i,o,h=t.length+r;this._expand(h);var c=0;for(i=0;i<t.length;i++){o=(0|this.words[i+r])+c;var f=(0|t.words[i])*e;c=((o-=67108863&f)>>26)-(f/67108864|0),this.words[i+r]=67108863&o}for(;i<this.length-r;i++)c=(o=(0|this.words[i+r])+c)>>26,this.words[i+r]=67108863&o;if(0===c)return this.strip();for(n(-1===c),c=0,i=0;i<this.length;i++)c=(o=-(0|this.words[i])+c)>>26,this.words[i]=67108863&o;return this.negative=1,this.strip()},h.prototype._wordDiv=function(t,e){var r=(this.length,t.length),a=this.clone(),b=t,n=0|b.words[b.length-1];0!==(r=26-this._countBits(n))&&(b=b.ushln(r),a.iushln(r),n=0|b.words[b.length-1]);var q,o=a.length-b.length;if("mod"!==e){(q=new h(null)).length=o+1,q.words=new Array(q.length);for(var i=0;i<q.length;i++)q.words[i]=0}var c=a.clone()._ishlnsubmul(b,1,o);0===c.negative&&(a=c,q&&(q.words[o]=1));for(var f=o-1;f>=0;f--){var l=67108864*(0|a.words[b.length+f])+(0|a.words[b.length+f-1]);for(l=Math.min(l/n|0,67108863),a._ishlnsubmul(b,l,f);0!==a.negative;)l--,a.negative=0,a._ishlnsubmul(b,1,f),a.isZero()||(a.negative^=1);q&&(q.words[f]=l)}return q&&q.strip(),a.strip(),"div"!==e&&0!==r&&a.iushrn(r),{div:q||null,mod:a}},h.prototype.divmod=function(t,e,r){return n(!t.isZero()),this.isZero()?{div:new h(0),mod:new h(0)}:0!==this.negative&&0===t.negative?(c=this.neg().divmod(t,e),"mod"!==e&&(div=c.div.neg()),"div"!==e&&(o=c.mod.neg(),r&&0!==o.negative&&o.iadd(t)),{div:div,mod:o}):0===this.negative&&0!==t.negative?(c=this.divmod(t.neg(),e),"mod"!==e&&(div=c.div.neg()),{div:div,mod:c.mod}):0!=(this.negative&t.negative)?(c=this.neg().divmod(t.neg(),e),"div"!==e&&(o=c.mod.neg(),r&&0!==o.negative&&o.isub(t)),{div:c.div,mod:o}):t.length>this.length||this.cmp(t)<0?{div:new h(0),mod:this}:1===t.length?"div"===e?{div:this.divn(t.words[0]),mod:null}:"mod"===e?{div:null,mod:new h(this.modn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new h(this.modn(t.words[0]))}:this._wordDiv(t,e);var div,o,c},h.prototype.div=function(t){return this.divmod(t,"div",!1).div},h.prototype.mod=function(t){return this.divmod(t,"mod",!1).mod},h.prototype.umod=function(t){return this.divmod(t,"mod",!0).mod},h.prototype.divRound=function(t){var e=this.divmod(t);if(e.mod.isZero())return e.div;var r=0!==e.div.negative?e.mod.isub(t):e.mod,n=t.ushrn(1),o=t.andln(1),h=r.cmp(n);return h<0||1===o&&0===h?e.div:0!==e.div.negative?e.div.isubn(1):e.div.iaddn(1)},h.prototype.modn=function(t){n(t<=67108863);for(var p=(1<<26)%t,e=0,i=this.length-1;i>=0;i--)e=(p*e+(0|this.words[i]))%t;return e},h.prototype.idivn=function(t){n(t<=67108863);for(var e=0,i=this.length-1;i>=0;i--){var r=(0|this.words[i])+67108864*e;this.words[i]=r/t|0,e=r%t}return this.strip()},h.prototype.divn=function(t){return this.clone().idivn(t)},h.prototype.egcd=function(p){n(0===p.negative),n(!p.isZero());var t=this,e=p.clone();t=0!==t.negative?t.umod(p):t.clone();for(var r=new h(1),o=new h(0),c=new h(0),f=new h(1),g=0;t.isEven()&&e.isEven();)t.iushrn(1),e.iushrn(1),++g;for(var l=e.clone(),d=t.clone();!t.isZero();){for(var i=0,m=1;0==(t.words[0]&m)&&i<26;++i,m<<=1);if(i>0)for(t.iushrn(i);i-- >0;)(r.isOdd()||o.isOdd())&&(r.iadd(l),o.isub(d)),r.iushrn(1),o.iushrn(1);for(var v=0,y=1;0==(e.words[0]&y)&&v<26;++v,y<<=1);if(v>0)for(e.iushrn(v);v-- >0;)(c.isOdd()||f.isOdd())&&(c.iadd(l),f.isub(d)),c.iushrn(1),f.iushrn(1);t.cmp(e)>=0?(t.isub(e),r.isub(c),o.isub(f)):(e.isub(t),c.isub(r),f.isub(o))}return{a:c,b:f,gcd:e.iushln(g)}},h.prototype._invmp=function(p){n(0===p.negative),n(!p.isZero());var a=this,b=p.clone();a=0!==a.negative?a.umod(p):a.clone();for(var t,e=new h(1),r=new h(0),o=b.clone();a.cmpn(1)>0&&b.cmpn(1)>0;){for(var i=0,c=1;0==(a.words[0]&c)&&i<26;++i,c<<=1);if(i>0)for(a.iushrn(i);i-- >0;)e.isOdd()&&e.iadd(o),e.iushrn(1);for(var f=0,l=1;0==(b.words[0]&l)&&f<26;++f,l<<=1);if(f>0)for(b.iushrn(f);f-- >0;)r.isOdd()&&r.iadd(o),r.iushrn(1);a.cmp(b)>=0?(a.isub(b),e.isub(r)):(b.isub(a),r.isub(e))}return(t=0===a.cmpn(1)?e:r).cmpn(0)<0&&t.iadd(p),t},h.prototype.gcd=function(t){if(this.isZero())return t.abs();if(t.isZero())return this.abs();var a=this.clone(),b=t.clone();a.negative=0,b.negative=0;for(var e=0;a.isEven()&&b.isEven();e++)a.iushrn(1),b.iushrn(1);for(;;){for(;a.isEven();)a.iushrn(1);for(;b.isEven();)b.iushrn(1);var r=a.cmp(b);if(r<0){var n=a;a=b,b=n}else if(0===r||0===b.cmpn(1))break;a.isub(b)}return b.iushln(e)},h.prototype.invm=function(t){return this.egcd(t).a.umod(t)},h.prototype.isEven=function(){return 0==(1&this.words[0])},h.prototype.isOdd=function(){return 1==(1&this.words[0])},h.prototype.andln=function(t){return this.words[0]&t},h.prototype.bincn=function(t){n("number"==typeof t);var e=t%26,s=(t-e)/26,q=1<<e;if(this.length<=s)return this._expand(s+1),this.words[s]|=q,this;for(var r=q,i=s;0!==r&&i<this.length;i++){var o=0|this.words[i];r=(o+=r)>>>26,o&=67108863,this.words[i]=o}return 0!==r&&(this.words[i]=r,this.length++),this},h.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},h.prototype.cmpn=function(t){var e,r=t<0;if(0!==this.negative&&!r)return-1;if(0===this.negative&&r)return 1;if(this.strip(),this.length>1)e=1;else{r&&(t=-t),n(t<=67108863,"Number is too big");var o=0|this.words[0];e=o===t?0:o<t?-1:1}return 0!==this.negative?0|-e:e},h.prototype.cmp=function(t){if(0!==this.negative&&0===t.negative)return-1;if(0===this.negative&&0!==t.negative)return 1;var e=this.ucmp(t);return 0!==this.negative?0|-e:e},h.prototype.ucmp=function(t){if(this.length>t.length)return 1;if(this.length<t.length)return-1;for(var e=0,i=this.length-1;i>=0;i--){var a=0|this.words[i],b=0|t.words[i];if(a!==b){a<b?e=-1:a>b&&(e=1);break}}return e},h.prototype.gtn=function(t){return 1===this.cmpn(t)},h.prototype.gt=function(t){return 1===this.cmp(t)},h.prototype.gten=function(t){return this.cmpn(t)>=0},h.prototype.gte=function(t){return this.cmp(t)>=0},h.prototype.ltn=function(t){return-1===this.cmpn(t)},h.prototype.lt=function(t){return-1===this.cmp(t)},h.prototype.lten=function(t){return this.cmpn(t)<=0},h.prototype.lte=function(t){return this.cmp(t)<=0},h.prototype.eqn=function(t){return 0===this.cmpn(t)},h.prototype.eq=function(t){return 0===this.cmp(t)},h.red=function(t){return new R(t)},h.prototype.toRed=function(t){return n(!this.red,"Already a number in reduction context"),n(0===this.negative,"red works only with positives"),t.convertTo(this)._forceRed(t)},h.prototype.fromRed=function(){return n(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},h.prototype._forceRed=function(t){return this.red=t,this},h.prototype.forceRed=function(t){return n(!this.red,"Already a number in reduction context"),this._forceRed(t)},h.prototype.redAdd=function(t){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,t)},h.prototype.redIAdd=function(t){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,t)},h.prototype.redSub=function(t){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,t)},h.prototype.redISub=function(t){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,t)},h.prototype.redShl=function(t){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,t)},h.prototype.redMul=function(t){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.mul(this,t)},h.prototype.redIMul=function(t){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.imul(this,t)},h.prototype.redSqr=function(){return n(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},h.prototype.redISqr=function(){return n(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},h.prototype.redSqrt=function(){return n(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},h.prototype.redInvm=function(){return n(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},h.prototype.redNeg=function(){return n(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},h.prototype.redPow=function(t){return n(this.red&&!t.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,t)};var S={k256:null,p224:null,p192:null,p25519:null};function A(t,p){this.name=t,this.p=new h(p,16),this.n=this.p.bitLength(),this.k=new h(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function x(){A.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function k(){A.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function E(){A.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function C(){A.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function R(t){if("string"==typeof t){var e=h._prime(t);this.m=e.p,this.prime=e}else n(t.gtn(1),"modulus must be greater than 1"),this.m=t,this.prime=null}function I(t){R.call(this,t),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new h(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)}A.prototype._tmp=function(){var t=new h(null);return t.words=new Array(Math.ceil(this.n/13)),t},A.prototype.ireduce=function(t){var e,r=t;do{this.split(r,this.tmp),e=(r=(r=this.imulK(r)).iadd(this.tmp)).bitLength()}while(e>this.n);var n=e<this.n?-1:r.ucmp(this.p);return 0===n?(r.words[0]=0,r.length=1):n>0?r.isub(this.p):void 0!==r.strip?r.strip():r._strip(),r},A.prototype.split=function(input,t){input.iushrn(this.n,0,t)},A.prototype.imulK=function(t){return t.imul(this.k)},o(x,A),x.prototype.split=function(input,output){for(var t=Math.min(input.length,9),i=0;i<t;i++)output.words[i]=input.words[i];if(output.length=t,input.length<=9)return input.words[0]=0,void(in
vendor: 4,607 bytes, line 11
11put.length=1);var e=input.words[9];for(output.words[output.length++]=4194303&e,i=10;i<input.length;i++){var r=0|input.words[i];input.words[i-10]=(4194303&r)<<4|e>>>22,e=r}e>>>=22,input.words[i-10]=e,0===e&&input.length>10?input.length-=10:input.length-=9},x.prototype.imulK=function(t){t.words[t.length]=0,t.words[t.length+1]=0,t.length+=2;for(var e=0,i=0;i<t.length;i++){var r=0|t.words[i];e+=977*r,t.words[i]=67108863&e,e=64*r+(e/67108864|0)}return 0===t.words[t.length-1]&&(t.length--,0===t.words[t.length-1]&&t.length--),t},o(k,A),o(E,A),o(C,A),C.prototype.imulK=function(t){for(var e=0,i=0;i<t.length;i++){var r=19*(0|t.words[i])+e,n=67108863&r;r>>>=26,t.words[i]=n,e=r}return 0!==e&&(t.words[t.length++]=e),t},h._prime=function(t){if(S[t])return S[t];var e;if("k256"===t)e=new x;else if("p224"===t)e=new k;else if("p192"===t)e=new E;else{if("p25519"!==t)throw new Error("Unknown prime "+t);e=new C}return S[t]=e,e},R.prototype._verify1=function(a){n(0===a.negative,"red works only with positives"),n(a.red,"red works only with red numbers")},R.prototype._verify2=function(a,b){n(0==(a.negative|b.negative),"red works only with positives"),n(a.red&&a.red===b.red,"red works only with red numbers")},R.prototype.imod=function(a){return this.prime?this.prime.ireduce(a)._forceRed(this):a.umod(this.m)._forceRed(this)},R.prototype.neg=function(a){return a.isZero()?a.clone():this.m.sub(a)._forceRed(this)},R.prototype.add=function(a,b){this._verify2(a,b);var t=a.add(b);return t.cmp(this.m)>=0&&t.isub(this.m),t._forceRed(this)},R.prototype.iadd=function(a,b){this._verify2(a,b);var t=a.iadd(b);return t.cmp(this.m)>=0&&t.isub(this.m),t},R.prototype.sub=function(a,b){this._verify2(a,b);var t=a.sub(b);return t.cmpn(0)<0&&t.iadd(this.m),t._forceRed(this)},R.prototype.isub=function(a,b){this._verify2(a,b);var t=a.isub(b);return t.cmpn(0)<0&&t.iadd(this.m),t},R.prototype.shl=function(a,t){return this._verify1(a),this.imod(a.ushln(t))},R.prototype.imul=function(a,b){return this._verify2(a,b),this.imod(a.imul(b))},R.prototype.mul=function(a,b){return this._verify2(a,b),this.imod(a.mul(b))},R.prototype.isqr=function(a){return this.imul(a,a.clone())},R.prototype.sqr=function(a){return this.mul(a,a)},R.prototype.sqrt=function(a){if(a.isZero())return a.clone();var t=this.m.andln(3);if(n(t%2==1),3===t){var e=this.m.add(new h(1)).iushrn(2);return this.pow(a,e)}for(var q=this.m.subn(1),s=0;!q.isZero()&&0===q.andln(1);)s++,q.iushrn(1);n(!q.isZero());var r=new h(1).toRed(this),o=r.redNeg(),c=this.m.subn(1).iushrn(1),f=this.m.bitLength();for(f=new h(2*f*f).toRed(this);0!==this.pow(f,c).cmp(o);)f.redIAdd(o);for(var l=this.pow(f,q),d=this.pow(a,q.addn(1).iushrn(1)),m=this.pow(a,q),v=s;0!==m.cmp(r);){for(var y=m,i=0;0!==y.cmp(r);i++)y=y.redSqr();n(i<v);var b=this.pow(l,new h(1).iushln(v-i-1));d=d.redMul(b),l=b.redSqr(),m=m.redMul(l),v=i}return d},R.prototype.invm=function(a){var t=a._invmp(this.m);return 0!==t.negative?(t.negative=0,this.imod(t).redNeg()):this.imod(t)},R.prototype.pow=function(a,t){if(t.isZero())return new h(1).toRed(this);if(0===t.cmpn(1))return a.clone();var e=new Array(16);e[0]=new h(1).toRed(this),e[1]=a;for(var i=2;i<e.length;i++)e[i]=this.mul(e[i-1],a);var r=e[0],n=0,o=0,c=t.bitLength()%26;for(0===c&&(c=26),i=t.length-1;i>=0;i--){for(var f=t.words[i],l=c-1;l>=0;l--){var d=f>>l&1;r!==e[0]&&(r=this.sqr(r)),0!==d||0!==n?(n<<=1,n|=d,(4===++o||0===i&&0===l)&&(r=this.mul(r,e[n]),o=0,n=0)):o=0}c=26}return r},R.prototype.convertTo=function(t){var e=t.umod(this.m);return e===t?e.clone():e},R.prototype.convertFrom=function(t){var e=t.clone();return e.red=null,e},h.mont=function(t){return new I(t)},o(I,R),I.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},I.prototype.convertFrom=function(t){var e=this.imod(t.mul(this.rinv));return e.red=null,e},I.prototype.imul=function(a,b){if(a.isZero()||b.isZero())return a.words[0]=0,a.length=1,a;var t=a.imul(b),e=t.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),u=t.isub(e).iushrn(this.shift),r=u;return u.cmp(this.m)>=0?r=u.isub(this.m):u.cmpn(0)<0&&(r=u.iadd(this.m)),r._forceRed(this)},I.prototype.mul=function(a,b){if(a.isZero()||b.isZero())return new h(0)._forceRed(this);var t=a.mul(b),e=t.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),u=t.isub(e).iushrn(this.shift),r=u;return u.cmp(this.m)>=0?r=u.isub(this.m):u.cmpn(0)<0&&(r=u.iadd(this.m)),r._forceRed(this)},I.prototype.invm=function(a){return this.imod(a._invmp(this.m).mul(this.r2))._forceRed(this)}}(t,this)}).call(this,r(57)(t))},function(t,e,r){"use strict";r.r(e),r.d(e,"locateWindow",(function(){return o}
11));var n={};function o(){return"undefined"!=typeof window?window:"undefined"!=typeof self?self:n}},,function(t,e,r){"use strict";var n={name:"ClientOnly",functional:!0,props:{placeholder:String,placeholderTag:{type:String,default:"div"}},render:function(t,e){var r=e.parent,n=e.slots,o=e.props,h=n(),c=h.default;void 0===c&&(c=[]);var f=h.placeholder;return r._isMounted?c:(r.$once("hook:mounted",(function(){r.$forceUpdate()})),o.placeholderTag&&(o.placeholder||f)?t(o.placeholderTag,{class:["client-only-placeholder"]},o.placeholder||f):c.length>0?c.map((function(){return t(!1)})):t(!1))}};t.exports=n},function(t,e,r){"use strict";r.d(e,"a",(function(){return c}));var n=r(77),o=function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,o,i=r.call(t),h=[];try{for(;(void 0===e||e-- >0)&&!(n=i.next()).done;)h.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return h},h=new n.a("Amplify"),c=new(function(){function t(){this._components=[],this._config={},this._modules={},this.Auth=null,this.Analytics=null,this.API=null,this.Credentials=null,this.Storage=null,this.I18n=null,this.Cache=null,this.PubSub=null,this.Interactions=null,this.Pushnotification=null,this.UI=null,this.XR=null,this.Predictions=null,this.DataStore=null,this.Logger=n.a,this.ServiceWorker=null}return t.prototype.register=function(t){h.debug("component registered in amplify",t),this._components.push(t),"function"==typeof t.getModuleName?(this._modules[t.getModuleName()]=t,this[t.getModuleName()]=t):h.debug("no getModuleName method for component",t),t.configure(this._config)},t.prototype.configure=function(t){var e=this;return t?(this._config=Object.assign(this._config,t),h.debug("amplify config",this._config),Object.entries(this._modules).forEach((function(t){var r=o(t,2),n=(r[0],r[1]);Object.keys(n).forEach((function(t){e._modules[t]&&(n[t]=e._modules[t])}))})),this._components.map((function(t){t.configure(e._config)})),this._config):this._config},t.prototype.addPluggable=function(t){t&&t.getCategory&&"function"==typeof t.getCategory&&this._components.map((function(e){e.addPluggable&&"function"==typeof e.addPluggable&&e.addPluggable(t)}))},t}())},function(t){t.exports=JSON.parse('{"name":"@aws-sdk/client-cognito-identity","description":"AWS SDK for JavaScript Cognito Identity Client for Node.js, Browser and React Native","version":"1.0.0-rc.4","scripts":{"clean":"npm run remove-definitions && npm run remove-dist","build-documentation":"npm run clean && typedoc ./","prepublishOnly":"yarn build","pretest":"yarn build:cjs","remove-definitions":"rimraf ./types","remove-dist":"rimraf ./dist","remove-documentation":"rimraf ./docs","test:unit":"mocha **/cjs/**/*.spec.js","test:e2e":"mocha **/cjs/**/*.ispec.js && karma start karma.conf.js","test":"yarn test:unit","build:cjs":"tsc -p tsconfig.json","build:es":"tsc -p tsconfig.es.json","build":"yarn build:cjs && yarn build:es"},"main":"./dist/cjs/index.js","types":"./types/index.d.ts","module":"./dist/es/index.js","browser":{"./runtimeConfig":"./runtimeConfig.browser"},"react-native":{"./runtimeConfig":"./runtimeConfig.native"},"sideEffects":false,"dependencies":{"@aws-crypto/sha256-browser":"^1.0.0","@aws-crypto/sha256-js":"^1.0.0","@aws-sdk/config-resolver":"1.0.0-rc.3","@aws-sdk/credential-provider-node":"1.0.0-rc.3","@aws-sdk/fetch-http-handler":"1.0.0-rc.3","@aws-sdk/hash-node":"1.0.0-rc.3","@aws-sdk/invalid-dependency":"1.0.0-rc.3","@aws-sdk/middleware-content-length":"1.0.0-rc.3","@aws-sdk/middleware-host-header":"1.0.0-rc.3","@aws-sdk/middleware-logger":"1.0.0-rc.4","@aws-sdk/middleware-retry":"1.0.0-rc.4","@aws-sdk/middleware-serde":"1.0.0-rc.3","@aws-sdk/middleware-signing":"1.0.0-rc.3","@aws-sdk/middleware-stack":"1.0.0-rc.4","@aws-sdk/middleware-user-agent":"1.0.0-rc.3","@aws-sdk/node-config-provider":"1.0.0-rc.3","@aws-sdk/node-http-handler":"1.0.0-rc.3","@aws-sdk/protocol-http":"1.0.0-rc.3","@aws-sdk/smithy-client":"1.0.0-rc.4","@aws-sdk/types":"1.0.0-rc.3","@aws-sdk/url-parser-browser":"1.0.0-rc.3","@aws-sdk/url-parser-node":"1.0.0-rc.3","@aws-sdk/util-base64-browser":"1.0.0-rc.3","@aws-sdk/util-base64-node":"1.0.0-rc.3","@aws-sdk/util-body-length-browser":"1.0.0-rc.3","@aws-sdk/util-body-length-node":"1.0.0-rc.3","@aws-sdk/util-user-agent-browser":"1.0.0-rc.3","@aws-sdk/util-user-agent-node":"1.0.0-rc.3","@aws-sdk/util-utf8-browser":"1.0.0-rc.3","@aws-sdk/util-utf8-node":"1.0.0-rc.3","tslib":"^2.0.0"},"devDependencies":{"@aws-sdk/client-documentation-generator":"1.0.0-rc.3","@aws-sdk/client-iam":"1.0.0-rc.4","@types/chai":"^4.2.11","@types/mocha":"^7.0.2","@types/node":"^12.7.5","jest":"^26.1.0","rimraf":"^3.0.0","typedoc":"^0.17.8","typescript":"~4.0.2"},"engines":{"node":">=10.0.0"},"author":{"name":"AWS SDK for JavaScript Team","url":"https://aws.amazon.com/javascript/"},"license":"Apache-2.0","homepage":"https://github.com/aws/aws-sdk-js-v3/tree/master/clients/client-cognito-identity","repository":{"type":"git","url":"https://github.com/aws/aws-sdk-js-v3.git","directory":"clients/client-cognito-identity"}}')},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(t,e,r){"use strict";
vendor: 19,122 bytes, line 11
11var n=r(154),o=r(155),h=r(358),c=r(122),f=r(359),l=r(213),d=r(156),m=r(360),v=r(361);function y(a,b){return Array.isArray(a)&&Array.isArray(b)?a.length===b.length&&a.every((function(t,i){return y(b[i],t)})):a===b}function w(t){var e=t?w._parseNumbers(t):{};void 0===e.userToken||m(e.userToken)||console.warn("[algoliasearch-helper] The `userToken` parameter is invalid. This can lead to wrong analytics.\n - Format: [a-zA-Z0-9_-]{1,64}"),this.facets=e.facets||[],this.disjunctiveFacets=e.disjunctiveFacets||[],this.hierarchicalFacets=e.hierarchicalFacets||[],this.facetsRefinements=e.facetsRefinements||{},this.facetsExcludes=e.facetsExcludes||{},this.disjunctiveFacetsRefinements=e.disjunctiveFacetsRefinements||{},this.numericRefinements=e.numericRefinements||{},this.tagRefinements=e.tagRefinements||[],this.hierarchicalFacetsRefinements=e.hierarchicalFacetsRefinements||{};var r=this;Object.keys(e).forEach((function(t){var n=-1!==w.PARAMETERS.indexOf(t),o=void 0!==e[t];!n&&o&&(r[t]=e[t])}))}w.PARAMETERS=Object.keys(new w),w._parseNumbers=function(t){if(t instanceof w)return t;var e={};if(["aroundPrecision","aroundRadius","getRankingInfo","minWordSizefor2Typos","minWordSizefor1Typo","page","maxValuesPerFacet","distinct","minimumAroundRadius","hitsPerPage","minProximity"].forEach((function(r){var n=t[r];if("string"==typeof n){var o=parseFloat(n);e[r]=isNaN(o)?n:o}})),Array.isArray(t.insideBoundingBox)&&(e.insideBoundingBox=t.insideBoundingBox.map((function(t){return Array.isArray(t)?t.map((function(t){return parseFloat(t)})):t}))),t.numericRefinements){var r={};Object.keys(t.numericRefinements).forEach((function(e){var n=t.numericRefinements[e]||{};r[e]={},Object.keys(n).forEach((function(t){var o=n[t].map((function(t){return Array.isArray(t)?t.map((function(t){return"string"==typeof t?parseFloat(t):t})):"string"==typeof t?parseFloat(t):t}));r[e][t]=o}))})),e.numericRefinements=r}return n({},t,e)},w.make=function(t){var e=new w(t);return(t.hierarchicalFacets||[]).forEach((function(t){if(t.rootPath){var r=e.getHierarchicalRefinement(t.name);r.length>0&&0!==r[0].indexOf(t.rootPath)&&(e=e.clearRefinements(t.name)),0===(r=e.getHierarchicalRefinement(t.name)).length&&(e=e.toggleHierarchicalFacetRefinement(t.name,t.rootPath))}})),e},w.validate=function(t,e){var r=e||{};return t.tagFilters&&r.tagRefinements&&r.tagRefinements.length>0?new Error("[Tags] Cannot switch from the managed tag API to the advanced API. It is probably an error, if it is really what you want, you should first clear the tags with clearTags method."):t.tagRefinements.length>0&&r.tagFilters?new Error("[Tags] Cannot switch from the advanced tag API to the managed API. It is probably an error, if it is not, you should first clear the tags with clearTags method."):t.numericFilters&&r.numericRefinements&&d(r.numericRefinements)?new Error("[Numeric filters] Can't switch from the advanced to the managed API. It is probably an error, if this is really what you want, you have to first clear the numeric filters."):d(t.numericRefinements)&&r.numericFilters?new Error("[Numeric filters] Can't switch from the managed API to the advanced. It is probably an error, if this is really what you want, you have to first clear the numeric filters."):null},w.prototype={constructor:w,clearRefinements:function(t){var e={numericRefinements:this._clearNumericRefinements(t),facetsRefinements:v.clearRefinement(this.facetsRefinements,t,"conjunctiveFacet"),facetsExcludes:v.clearRefinement(this.facetsExcludes,t,"exclude"),disjunctiveFacetsRefinements:v.clearRefinement(this.disjunctiveFacetsRefinements,t,"disjunctiveFacet"),hierarchicalFacetsRefinements:v.clearRefinement(this.hierarchicalFacetsRefinements,t,"hierarchicalFacet")};return e.numericRefinements===this.numericRefinements&&e.facetsRefinements===this.facetsRefinements&&e.facetsExcludes===this.facetsExcludes&&e.disjunctiveFacetsRefinements===this.disjunctiveFacetsRefinements&&e.hierarchicalFacetsRefinements===this.hierarchicalFacetsRefinements?this:this.setQueryParameters(e)},clearTags:function(){return void 0===this.tagFilters&&0===this.tagRefinements.length?this:this.setQueryParameters({tagFilters:void 0,tagRefinements:[]})},setIndex:function(t){return t===this.index?this:this.setQueryParameters({index:t})},setQuery:function(t){return t===this.query?this:this.setQueryParameters({query:t})},setPage:function(t){return t===this.page?this:this.setQueryParameters({page:t})},setFacets:function(t){return this.setQueryParameters({facets:t})},setDisjunctiveFacets:function(t){return this.setQueryParameters({disjunctiveFacets:t})},setHitsPerPage:function(t){return this.hitsPerPage===t?this:this.setQueryParameters({hitsPerPage:t})},setTypoTolerance:function(t){return this.typoTolerance===t?this:this.setQueryParameters({typoTolerance:t})},addNumericRefinement:function(t,e,r){var o=f(r);if(this.isNumericRefined(t,e,o))return this;var h=n({},this.numericRefinements);return h[t]=n({},h[t]),h[t][e]?(h[t][e]=h[t][e].slice(),h[t][e].push(o)):h[t][e]=[o],this.setQueryParameters({numericRefinements:h})},getConjunctiveRefinements:function(t){return this.isConjunctiveFacet(t)&&this.facetsRefinements[t]||[]},getDisjunctiveRefinements:function(t){return this.isDisjunctiveFacet(t)&&this.disjunctiveFacetsRefinements[t]||[]},getHierarchicalRefinement:function(t){return this.hierarchicalFacetsRefinements[t]||[]},getExcludeRefinements:function(t){return this.isConjunctiveFacet(t)&&this.facetsExcludes[t]||[]},removeNumericRefinement:function(t,e,r){return void 0!==r?this.isNumericRefined(t,e,r)?this.setQueryParameters({numericRefinements:this._clearNumericRefinements((function(n,o){return o===t&&n.op===e&&y(n.val,f(r))}))}):this:void 0!==e?this.isNumericRefined(t,e)?this.setQueryParameters({numericRefinements:this._clearNumericRefinements((function(r,n){return n===t&&r.op===e}))}):this:this.isNumericRefined(t)?this.setQueryParameters({numericRefinements:this._clearNumericRefinements((function(e,r){return r===t}))}):this},getNumericRefinements:function(t){return this.numericRefinements[t]||{}},getNumericRefinement:function(t,e){return this.numericRefinements[t]&&this.numericRefinements[t][e]},_clearNumericRefinements:function(t){if(void 0===t)return d(this.numericRefinements)?{}:this.numericRefinements;if("string"==typeof t)return l(this.numericRefinements,[t]);if("function"==typeof t){var e=!1,r=this.numericRefinements,n=Object.keys(r).reduce((function(n,o){var h=r[o],c={};return h=h||{},Object.keys(h).forEach((function(r){var n=h[r]||[],f=[];n.forEach((function(e){t({val:e,op:r},o,"numeric")||f.push(e)})),f.length!==n.length&&(e=!0),c[r]=f})),n[o]=c,n}),{});return e?n:this.numericRefinements}},addFacet:function(t){return this.isConjunctiveFacet(t)?this:this.setQueryParameters({facets:this.facets.concat([t])})},addDisjunctiveFacet:function(t){return this.isDisjunctiveFacet(t)?this:this.setQueryParameters({disjunctiveFacets:this.disjunctiveFacets.concat([t])})},addHierarchicalFacet:function(t){if(this.isHierarchicalFacet(t.name))throw new Error("Cannot declare two hierarchical facets with the same name: `"+t.name+"`");return this.setQueryParameters({hierarchicalFacets:this.hierarchicalFacets.concat([t])})},addFacetRefinement:function(t,e){if(!this.isConjunctiveFacet(t))throw new Error(t+" is not defined in the facets attribute of the helper configuration");return v.isRefined(this.facetsRefinements,t,e)?this:this.setQueryParameters({facetsRefinements:v.addRefinement(this.facetsRefinements,t,e)})},addExcludeRefinement:function(t,e){if(!this.isConjunctiveFacet(t))throw new Error(t+" is not defined in the facets attribute of the helper configuration");return v.isRefined(this.facetsExcludes,t,e)?this:this.setQueryParameters({facetsExcludes:v.addRefinement(this.facetsExcludes,t,e)})},addDisjunctiveFacetRefinement:function(t,e){if(!this.isDisjunctiveFacet(t))throw new Error(t+" is not defined in the disjunctiveFacets attribute of the helper configuration");return v.isRefined(this.disjunctiveFacetsRefinements,t,e)?this:this.setQueryParameters({disjunctiveFacetsRefinements:v.addRefinement(this.disjunctiveFacetsRefinements,t,e)})},addTagRefinement:function(t){if(this.isTagRefined(t))return this;var e={tagRefinements:this.tagRefinements.concat(t)};return this.setQueryParameters(e)},removeFacet:function(t){return this.isConjunctiveFacet(t)?this.clearRefinements(t).setQueryParameters({facets:this.facets.filter((function(e){return e!==t}))}):this},removeDisjunctiveFacet:function(t){return this.isDisjunctiveFacet(t)?this.clearRefinements(t).setQueryParameters({disjunctiveFacets:this.disjunctiveFacets.filter((function(e){return e!==t}))}):this},removeHierarchicalFacet:function(t){return this.isHierarchicalFacet(t)?this.clearRefinements(t).setQueryParameters({hierarchicalFacets:this.hierarchicalFacets.filter((function(e){return e.name!==t}))}):this},removeFacetRefinement:function(t,e){if(!this.isConjunctiveFacet(t))throw new Error(t+" is not defined in the facets attribute of the helper configuration");return v.isRefined(this.facetsRefinements,t,e)?this.setQueryParameters({facetsRefinements:v.removeRefinement(this.facetsRefinements,t,e)}):this},removeExcludeRefinement:function(t,e){if(!this.isConjunctiveFacet(t))throw new Error(t+" is not defined in the facets attribute of the helper configuration");return v.isRefined(this.facetsExcludes,t,e)?this.setQueryParameters({facetsExcludes:v.removeRefinement(this.facetsExcludes,t,e)}):this},removeDisjunctiveFacetRefinement:function(t,e){if(!this.isDisjunctiveFacet(t))throw new Error(t+" is not defined in the disjunctiveFacets attribute of the helper configuration");return v.isRefined(this.disjunctiveFacetsRefinements,t,e)?this.setQueryParameters({disjunctiveFacetsRefinements:v.removeRefinement(this.disjunctiveFacetsRefinements,t,e)}):this},removeTagRefinement:function(t){if(!this.isTagRefined(t))return this;var e={tagRefinements:this.tagRefinements.filter((function(e){return e!==t}))};return this.setQueryParameters(e)},toggleRefinement:function(t,e){return this.toggleFacetRefinement(t,e)},toggleFacetRefinement:function(t,e){if(this.isHierarchicalFacet(t))return this.toggleHierarchicalFacetRefinement(t,e);if(this.isConjunctiveFacet(t))return this.toggleConjunctiveFacetRefinement(t,e);if(this.isDisjunctiveFacet(t))return this.toggleDisjunctiveFacetRefinement(t,e);throw new Error("Cannot refine the undeclared facet "+t+"; it should be added to the helper options facets, disjunctiveFacets or hierarchicalFacets")},toggleConjunctiveFacetRefinement:function(t,e){if(!this.isConjunctiveFacet(t))throw new Error(t+" is not defined in the facets attribute of the helper configuration");return this.setQueryParameters({facetsRefinements:v.toggleRefinement(this.facetsRefinements,t,e)})},toggleExcludeFacetRefinement:function(t,e){if(!this.isConjunctiveFacet(t))throw new Error(t+" is not defined in the facets attribute of the helper configuration");return this.setQueryParameters({facetsExcludes:v.toggleRefinement(this.facetsExcludes,t,e)})},toggleDisjunctiveFacetRefinement:function(t,e){if(!this.isDisjunctiveFacet(t))throw new Error(t+" is not defined in the disjunctiveFacets attribute of the helper configuration");return this.setQueryParameters({disjunctiveFacetsRefinements:v.toggleRefinement(this.disjunctiveFacetsRefinements,t,e)})},toggleHierarchicalFacetRefinement:function(t,e){if(!this.isHierarchicalFacet(t))throw new Error(t+" is not defined in the hierarchicalFacets attribute of the helper configuration");var r=this._getHierarchicalFacetSeparator(this.getHierarchicalFacetByName(t)),n={};return void 0!==this.hierarchicalFacetsRefinements[t]&&this.hierarchicalFacetsRefinements[t].length>0&&(this.hierarchicalFacetsRefinements[t][0]===e||0===this.hierarchicalFacetsRefinements[t][0].indexOf(e+r))?-1===e.indexOf(r)?n[t]=[]:n[t]=[e.slice(0,e.lastIndexOf(r))]:n[t]=[e],this.setQueryParameters({hierarchicalFacetsRefinements:o({},n,this.hierarchicalFacetsRefinements)})},addHierarchicalFacetRefinement:function(t,path){if(this.isHierarchicalFacetRefined(t))throw new Error(t+" is already refined.");if(!this.isHierarchicalFacet(t))throw new Error(t+" is not defined in the hierarchicalFacets attribute of the helper configuration.");var e={};return e[t]=[path],this.setQueryParameters({hierarchicalFacetsRefinements:o({},e,this.hierarchicalFacetsRefinements)})},removeHierarchicalFacetRefinement:function(t){if(!this.isHierarchicalFacetRefined(t))return this;var e={};return e[t]=[],this.setQueryParameters({hierarchicalFacetsRefinements:o({},e,this.hierarchicalFacetsRefinements)})},toggleTagRefinement:function(t){return this.isTagRefined(t)?this.removeTagRefinement(t):this.addTagRefinement(t)},isDisjunctiveFacet:function(t){return this.disjunctiveFacets.indexOf(t)>-1},isHierarchicalFacet:function(t){return void 0!==this.getHierarchicalFacetByName(t)},isConjunctiveFacet:function(t){return this.facets.indexOf(t)>-1},isFacetRefined:function(t,e){return!!this.isConjunctiveFacet(t)&&v.isRefined(this.facetsRefinements,t,e)},isExcludeRefined:function(t,e){return!!this.isConjunctiveFacet(t)&&v.isRefined(this.facetsExcludes,t,e)},isDisjunctiveFacetRefined:function(t,e){return!!this.isDisjunctiveFacet(t)&&v.isRefined(this.disjunctiveFacetsRefinements,t,e)},isHierarchicalFacetRefined:function(t,e){if(!this.isHierarchicalFacet(t))return!1;var r=this.getHierarchicalRefinement(t);return e?-1!==r.indexOf(e):r.length>0},isNumericRefined:function(t,e,r){if(void 0===r&&void 0===e)return!!this.numericRefinements[t];var n=this.numericRefinements[t]&&void 0!==this.numericRefinements[t][e];if(void 0===r||!n)return n;var o,h,l=f(r),d=void 0!==(o=this.numericRefinements[t][e],h=l,c(o,(function(t){return y(t,h)})));return n&&d},isTagRefined:function(t){return-1!==this.tagRefinements.indexOf(t)},getRefinedDisjunctiveFacets:function(){var t=this,e=h(Object.keys(this.numericRefinements).filter((function(e){return Object.keys(t.numericRefinements[e]).length>0})),this.disjunctiveFacets);return Object.keys(this.disjunctiveFacetsRefinements).filter((function(e){return t.disjunctiveFacetsRefinements[e].length>0})).concat(e).concat(this.getRefinedHierarchicalFacets())},getRefinedHierarchicalFacets:function(){var t=this;return h(this.hierarchicalFacets.map((function(t){return t.name})),Object.keys(this.hierarchicalFacetsRefinements).filter((function(e){return t.hierarchicalFacetsRefinements[e].length>0})))},getUnrefinedDisjunctiveFacets:function(){var t=this.getRefinedDisjunctiveFacets();return this.disjunctiveFacets.filter((function(e){return-1===t.indexOf(e)}))},managedParameters:["index","facets","disjunctiveFacets","facetsRefinements","facetsExcludes","disjunctiveFacetsRefinements","numericRefinements","tagRefinements","hierarchicalFacets","hierarchicalFacetsRefinements"],getQueryParams:function(){var t=this.managedParameters,e={},r=this;return Object.keys(this).forEach((function(n){var o=r[n];-1===t.indexOf(n)&&void 0!==o&&(e[n]=o)})),e},setQueryParameter:function(t,e){if(this[t]===e)return this;var r={};return r[t]=e,this.setQueryParameters(r)},setQueryParameters:function(t){if(!t)return this;var e=w.validate(this,t);if(e)throw e;var r=this,n=w._parseNumbers(t),o=Object.keys(this).reduce((function(t,e){return t[e]=r[e],t}),{}),h=Object.keys(n).reduce((function(t,e){var r=void 0!==t[e],o=void 0!==n[e];return r&&!o?l(t,[e]):(o&&(t[e]=n[e]),t)}),o);return new this.constructor(h)},resetPage:function(){return void 0===this.page?this:this.setPage(0)},_getHierarchicalFacetSortBy:function(t){return t.sortBy||["isRefined:desc","name:asc"]},_getHierarchicalFacetSeparator:function(t){return t.separator||" > "},_getHierarchicalRootPath:function(t){return t.rootPath||null},_getHierarchicalShowParentLevel:function(t){return"boolean"!=typeof t.showParentLevel||t.showParentLevel},getHierarchicalFacetByName:function(t){return c(this.hierarchicalFacets,(function(e){return e.name===t}))},getHierarchicalFacetBreadcrumb:function(t){if(!this.isHierarchicalFacet(t))return[];var e=this.getHierarchicalRefinement(t)[0];if(!e)return[];var r=this._getHierarchicalFacetSeparator(this.getHierarchicalFacetByName(t));return e.split(r).map((function(t){return t.trim()}))},toString:function(){return JSON.stringify(this,null,2)}},t.exports=w},function(t,e,r){"use strict";t.exports=function(source,t){if(null===source)return{};var e,i,r={},n=Object.keys(source);for(i=0;i<n.length;i++)e=n[i],t.indexOf(e)>=0||(r[e]=source[e]);return r}},function(t,e,r){"use strict";var n=r(154),o=r(155),h=r(215),c=r(362),f=r(122),l=r(363),d=r(216),m=r(364);function v(t){var e={};return t.forEach((function(t,r){e[t]=r})),e}function y(t,e,r){e&&e[r]&&(t.stats=e[r])}function w(t,e){var r=e[0];this._rawResults=e;var h=this;Object.keys(r).forEach((function(t){h[t]=r[t]})),this.processingTimeMS=e.reduce((function(t,e){return void 0===e.processingTimeMS?t:t+e.processingTimeMS}),0),this.disjunctiveFacets=[],this.hierarchicalFacets=t.hierarchicalFacets.map((function(){return[]})),this.facets=[];var d=t.getRefinedDisjunctiveFacets(),w=v(t.facets),M=v(t.disjunctiveFacets),_=1,S=r.facets||{};Object.keys(S).forEach((function(e){var n,o,c=S[e],d=(n=t.hierarchicalFacets,o=e,f(n,(function(t){return(t.attributes||[]).indexOf(o)>-1})));if(d){var m=d.attributes.indexOf(e),v=l(t.hierarchicalFacets,(function(t){return t.name===d.name}));h.hierarchicalFacets[v][m]={attribute:e,data:c,exhaustive:r.exhaustiveFacetsCount}}else{var _,A=-1!==t.disjunctiveFacets.indexOf(e),x=-1!==t.facets.indexOf(e);A&&(_=M[e],h.disjunctiveFacets[_]={name:e,data:c,exhaustive:r.exhaustiveFacetsCount},y(h.disjunctiveFacets[_],r.facets_stats,e)),x&&(_=w[e],h.facets[_]={name:e,data:c,exhaustive:r.exhaustiveFacetsCount},y(h.facets[_],r.facets_stats,e))}})),this.hierarchicalFacets=c(this.hierarchicalFacets),d.forEach((function(c){var f=e[_],d=f&&f.facets?f.facets:{},m=t.getHierarchicalFacetByName(c);Object.keys(d).forEach((function(e){var c,v=d[e];if(m){c=l(t.hierarchicalFacets,(function(t){return t.name===m.name}));var w=l(h.hierarchicalFacets[c],(function(t){return t.attribute===e}));if(-1===w)return;h.hierarchicalFacets[c][w].data=n({},h.hierarchicalFacets[c][w].data,v)}else{c=M[e];var _=r.facets&&r.facets[e]||{};h.disjunctiveFacets[c]={name:e,data:o({},v,_),exhaustive:f.exhaustiveFacetsCount},y(h.disjunctiveFacets[c],f.facets_stats,e),t.disjunctiveFacetsRefinements[e]&&t.disjunctiveFacetsRefinements[e].forEach((function(r){!h.disjunctiveFacets[c].data[r]&&t.disjunctiveFacetsRefinements[e].indexOf(r)>-1&&(h.disjunctiveFacets[c].data[r]=0)}))}})),_++})),t.getRefinedHierarchicalFacets().forEach((function(r){var n=t.getHierarchicalFacetByName(r),c=t._getHierarchicalFacetSeparator(n),f=t.getHierarchicalRefinement(r);if(!(0===f.length||f[0].split(c).length<2)){var d=e[_],m=d&&d.facets?d.facets:{};Object.keys(m).forEach((function(e){var r=m[e],d=l(t.hierarchicalFacets,(function(t){return t.name===n.name})),v=l(h.hierarchicalFacets[d],(function(t){return t.attribute===e}));if(-1!==v){var y={};if(f.length>0){var w=f[0].split(c)[0];y[w]=h.hierarchicalFacets[d][v].data[w]}h.hierarchicalFacets[d][v].data=o(y,r,h.hierarchicalFacets[d][v].data)}})),_++}}
11)),Object.keys(t.facetsExcludes).forEach((function(e){var n=t.facetsExcludes[e],o=w[e];h.facets[o]={name:e,data:r.facets[e],exhaustive:r.exhaustiveFacetsCount},n.forEach((function(t){h.facets[o]=h.facets[o]||{name:e},h.facets[o].data=h.facets[o].data||{},h.facets[o].data[t]=0}))})),this.hierarchicalFacets=this.hierarchicalFacets.map(m(t)),this.facets=c(this.facets),this.disjunctiveFacets=c(this.disjunctiveFacets),this._state=t}function M(t,e){if(!e.data||0===e.data.length)return e;var r=e.data.map((function(e){return M(t,e)})),o=t(r);return n({},e,{data:o})}function _(t,e){var data=f(t,(function(t){return t.name===e}));return data&&data.stats}function S(t,e,r,n,o){var h=f(o,(function(t){return t.name===r})),c=h&&h.data&&h.data[n]?h.data[n]:0,l=h&&h.exhaustive||!1;return{type:e,attributeName:r,name:n,count:c,exhaustive:l}}w.prototype.getFacetByName=function(t){function e(e){return e.name===t}return f(this.facets,e)||f(this.disjunctiveFacets,e)||f(this.hierarchicalFacets,e)},w.DEFAULT_SORT=["isRefined:desc","count:desc","name:asc"],w.prototype.getFacetValues=function(t,e){var r=function(t,e){function r(t){return t.name===e}if(t._state.isConjunctiveFacet(e)){var n=f(t.facets,r);return n?Object.keys(n.data).map((function(r){return{name:r,count:n.data[r],isRefined:t._state.isFacetRefined(e,r),isExcluded:t._state.isExcludeRefined(e,r)}})):[]}if(t._state.isDisjunctiveFacet(e)){var o=f(t.disjunctiveFacets,r);return o?Object.keys(o.data).map((function(r){return{name:r,count:o.data[r],isRefined:t._state.isDisjunctiveFacetRefined(e,r)}})):[]}if(t._state.isHierarchicalFacet(e))return f(t.hierarchicalFacets,r)}(this,t);if(r){var n=o({},e,{sortBy:w.DEFAULT_SORT});if(Array.isArray(n.sortBy)){var c=d(n.sortBy,w.DEFAULT_SORT);return Array.isArray(r)?h(r,c[0],c[1]):M((function(t){return h(t,c[0],c[1])}),r)}if("function"==typeof n.sortBy)return Array.isArray(r)?r.sort(n.sortBy):M((function(data){return function(t,data){return data.sort(t)}(n.sortBy,data)}),r);throw new Error("options.sortBy is optional but if defined it must be either an array of string (predicates) or a sorting function")}},w.prototype.getFacetStats=function(t){return this._state.isConjunctiveFacet(t)?_(this.facets,t):this._state.isDisjunctiveFacet(t)?_(this.disjunctiveFacets,t):void 0},w.prototype.getRefinements=function(){var t=this._state,e=this,r=[];return Object.keys(t.facetsRefinements).forEach((function(n){t.facetsRefinements[n].forEac
11h((function(o){r.push(S(t,"facet",n,o,e.facets))}))})),Object.keys(t.facetsExcludes).forEach((function(n){t.facetsExcludes[n].forEach((function(o){r.push(S(t,"exclude",n,o,e.facets))}))})),Object.keys(t.disjunctiveFacetsRefinements).forEach((function(n){t.disjunctiveFacetsRefinements[n].forEach((function(o){r.push(S(t,"disjunctive",n,o,e.disjunctiveFacets))}))})),Object.keys(t.hierarchicalFacetsRefinements).forEach((function(n){t.hierarchicalFacetsRefinements[n].forEach((function(o){r.push(function(t,e,r,n){var o=t.getHierarchicalFacetByName(e),h=t._getHierarchicalFacetSeparator(o),c=r.split(h),l=f(n,(function(t){return t.name===e})),d=c.reduce((function(t,e){var r=t&&f(t.data,(function(t){return t.name===e}));return void 0!==r?r:t}),l),m=d&&d.count||0,v=d&&d.exhaustive||!1,path=d&&d.path||"";return{type:"hierarchical",attributeName:e,name:path,count:m,exhaustive:v}}(t,n,o,e.hierarchicalFacets))}))})),Object.keys(t.numericRefinements).forEach((function(e){var n=t.numericRefinements[e];Object.keys(n).forEach((function(t){n[t].forEach((function(n){r.push({type:"numeric",attributeName:e,name:n,numericValue:n,operator:t})}))}))})),t.tagRefinements.forEach((function(t){r.push({type:"tag",attributeName:"_tags",name:t})})),r},t.exports=w},function(t,e,r){"use strict";function n(t,e){if(t!==e){var r=void 0!==t,n=null===t,o=void 0!==e,h=null===e;if(!h&&t>e||n&&o||!r)return 1;if(!n&&t<e||h&&r||!o)return-1}return 0}t.exports=function(t,e,r){if(!Array.isArray(t))return[];Array.isArray(r)||(r=[]);var o=t.map((function(t,r){return{criteria:e.map((function(e){return t[e]})),index:r,value:t}}));return o.sort((function(object,t){for(var e=-1;++e<object.criteria.length;){var o=n(object.criteria[e],t.criteria[e]);if(o)return e>=r.length?o:"desc"===r[e]?-o:o}return object.index-t.index})),o.map((function(t){return t.value}))}},function(t,e,r){"use strict";var n=r(122);t.exports=function(t,e){var r=(e||[]).map((function(t){return t.split(":")}));return t.reduce((function(t,e){var o=e.split(":"),h=n(r,(function(t){return t[0]===o[0]}));return o.length>1||!h?(t[0].push(o[0]),t[1].push(o[1]),t):(t[0].push(h[0]),t[1].push(h[1]),t)}),[[],[]])}},function(t,e,r){"use strict";t.exports=function(t,e){t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}})}},function(t,e,r){"use strict";t.exports="3.3.4"},,,,,,,,,,,,function(t,e){var r={}.toString;t.exports=Array.isArray||function(t){return"[object Array]"==r.call(t)}},function(t,e,r){var n;t.exports=(n=r(28),function(){if("function"==typeof ArrayBuffer){var t=n.lib.WordArray,e=t.init;(t.init=function(t){if(t instanceof ArrayBuffer&&(t=new Uint8Array(t)),(t instanceof Int8Array||"undefined"!=typeof Uint8ClampedArray&&t instanceof Uint8ClampedArray||t instanceof Int16Array||t instanceof Uint16Array||t instanceof Int32Array||t instanceof Uint32Array||t instanceof Float32Array||t instanceof Float64Array)&&(t=new Uint8Array(t.buffer,t.byteOffset,t.byteLength)),t instanceof Uint8Array){for(var r=t.byteLength,n=[],i=0;i<r;i++)n[i>>>2]|=t[i]<<24-i%4*8;e.call(this,n,r)}else e.apply(this,arguments)}).prototype=t}}(),n.lib.WordArray)},function(t,e,r){"use strict";var n=r(403).Buffer,o=r(233).Transform;function h(t){o.call(this),this._block=n.allocUnsafe(t),this._blockSize=t,this._blockOffset=0,this._length=[0,0,0,0],this._finalized=!1}r(6)(h,o),h.prototype._transform=function(t,e,r){var n=null;try{this.update(t,e)}catch(t){n=t}r(n)},h.prototype._flush=function(t){var e=null;try{this.push(this.digest())}catch(t){e=t}t(e)},h.prototype.update=function(data,t){if(function(t,e){if(!n.isBuffer(t)&&"string"!=typeof t)throw new TypeError(e+" must be a string or a buffer")}(data,"Data"),this._finalized)throw new Error("Digest already called");n.isBuffer(data)||(data=n.from(data,t));for(var e=this._block,r=0;this._blockOffset+data.length-r>=this._blockSize;){for(var i=this._blockOffset;i<this._blockSize;)e[i++]=data[r++];this._update(),this._blockOffset=0}for(;r<data.length;)e[this._blockOffset++]=data[r++];for(var o=0,h=8*data.length;h>0;++o)this._length[o]+=h,(h=this._length[o]/4294967296|0)>0&&(this._length[o]-=4294967296*h);return this},h.prototype._update=function(){throw new Error("_update is not implemented")},h.prototype.digest=function(t){if(this._finalized)throw new Error("Digest already called");this._finalized=!0;var e=this._digest();void 0!==t&&(e=e.toString(t)),this._block.fill(0),this._blockOffset=0;for(var i=0;i<4;++i)this._length[i]=0;return e},h.prototype._digest=function(){throw new Error("_digest is not implemented")},t.exports=h},function(t,e,r){(e=t.exports=r(234)).Stream=e,e.Readable=e,e.Writable=r(238),e.Duplex=r(71),e.Transform=r(240),e.PassThrough=r(410),e.finished=r(158),e.pipeline=r(411)},function(t,e,r){"use strict";(function(e,n){var o;t.exports=T,T.ReadableState=P;r(62).EventEmitter;var h=function(t,e){return t.listeners(e).length},c=r(235),f=r(5).Buffer,l=e.Uint8Array||function(){};var d,m=r(404);d=m&&m.debuglog?m.debuglog("stream"):function(){};var v,y,w,M=r(405),_=r(236),S=r(237).getHighWaterMark,A=r(70).codes,x=A.ERR_INVALID_ARG_TYPE,k=A.ERR_STREAM_PUSH_AFTER_EOF,E=A.ERR_METHOD_NOT_IMPLEMENT
vendor: 20,937 bytes, line 11
11ED,C=A.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;r(6)(T,c);var R=_.errorOrDestroy,I=["error","close","destroy","pause","resume"];function P(t,e,n){o=o||r(71),t=t||{},"boolean"!=typeof n&&(n=e instanceof o),this.objectMode=!!t.objectMode,n&&(this.objectMode=this.objectMode||!!t.readableObjectMode),this.highWaterMark=S(this,t,"readableHighWaterMark",n),this.buffer=new M,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!==t.emitClose,this.autoDestroy=!!t.autoDestroy,this.destroyed=!1,this.defaultEncoding=t.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,t.encoding&&(v||(v=r(93).StringDecoder),this.decoder=new v(t.encoding),this.encoding=t.encoding)}function T(t){if(o=o||r(71),!(this instanceof T))return new T(t);var e=this instanceof o;this._readableState=new P(t,this,e),this.readable=!0,t&&("function"==typeof t.read&&(this._read=t.read),"function"==typeof t.destroy&&(this._destroy=t.destroy)),c.call(this)}function O(t,e,r,n,o){d("readableAddChunk",e);var h,c=t._readableState;if(null===e)c.reading=!1,function(t,e){if(d("onEofChunk"),e.ended)return;if(e.decoder){var r=e.decoder.end();r&&r.length&&(e.buffer.push(r),e.length+=e.objectMode?1:r.length)}e.ended=!0,e.sync?B(t):(e.needReadable=!1,e.emittedReadable||(e.emittedReadable=!0,D(t)))}(t,c);else if(o||(h=function(t,e){var r;n=e,f.isBuffer(n)||n instanceof l||"string"==typeof e||void 0===e||t.objectMode||(r=new x("chunk",["string","Buffer","Uint8Array"],e));var n;return r}(c,e)),h)R(t,h);else if(c.objectMode||e&&e.length>0)if("string"==typeof e||c.objectMode||Object.getPrototypeOf(e)===f.prototype||(e=function(t){return f.from(t)}(e)),n)c.endEmitted?R(t,new C):j(t,c,e,!0);else if(c.ended)R(t,new k);else{if(c.destroyed)return!1;c.reading=!1,c.decoder&&!r?(e=c.decoder.write(e),c.objectMode||0!==e.length?j(t,c,e,!1):F(t,c)):j(t,c,e,!1)}else n||(c.reading=!1,F(t,c));return!c.ended&&(c.length<c.highWaterMark||0===c.length)}function j(t,e,r,n){e.flowing&&0===e.length&&!e.sync?(e.awaitDrain=0,t.emit("data",r)):(e.length+=e.objectMode?1:r.length,n?e.buffer.unshift(r):e.buffer.push(r),e.needReadable&&B(t)),F(t,e)}Object.defineProperty(T.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(t){this._readableState&&(this._readableState.destroyed=t)}}),T.prototype.destroy=_.destroy,T.prototype._undestroy=_.undestroy,T.prototype._destroy=function(t,e){e(t)},T.prototype.push=function(t,e){var r,n=this._readableState;return n.objectMode?r=!0:"string"==typeof t&&((e=e||n.defaultEncoding)!==n.encoding&&(t=f.from(t,e),e=""),r=!0),O(this,t,e,!1,r)},T.prototype.unshift=function(t){return O(this,t,null,!0,!1)},T.prototype.isPaused=function(){return!1===this._readableState.flowing},T.prototype.setEncoding=function(t){v||(v=r(93).StringDecoder);var e=new v(t);this._readableState.decoder=e,this._readableState.encoding=this._readableState.decoder.encoding;for(var p=this._readableState.buffer.head,content="";null!==p;)content+=e.write(p.data),p=p.next;return this._readableState.buffer.clear(),""!==content&&this._readableState.buffer.push(content),this._readableState.length=content.length,this};function U(t,e){return t<=0||0===e.length&&e.ended?0:e.objectMode?1:t!=t?e.flowing&&e.length?e.buffer.head.data.length:e.length:(t>e.highWaterMark&&(e.highWaterMark=function(t){return t>=1073741824?t=1073741824:(t--,t|=t>>>1,t|=t>>>2,t|=t>>>4,t|=t>>>8,t|=t>>>16,t++),t}(t)),t<=e.length?t:e.ended?e.length:(e.needReadable=!0,0))}function B(t){var e=t._readableState;d("emitReadable",e.needReadable,e.emittedReadable),e.needReadable=!1,e.emittedReadable||(d("emitReadable",e.flowing),e.emittedReadable=!0,n.nextTick(D,t))}function D(t){var e=t._readableState;d("emitReadable_",e.destroyed,e.length,e.ended),e.destroyed||!e.length&&!e.ended||(t.emit("readable"),e.emittedReadable=!1),e.needReadable=!e.flowing&&!e.ended&&e.length<=e.highWaterMark,V(t)}function F(t,e){e.readingMore||(e.readingMore=!0,n.nextTick(L,t,e))}function L(t,e){for(;!e.reading&&!e.ended&&(e.length<e.highWaterMark||e.flowing&&0===e.length);){var r=e.length;if(d("maybeReadMore read 0"),t.read(0),r===e.length)break}e.readingMore=!1}function N(t){var e=t._readableState;e.readableListening=t.listenerCount("readable")>0,e.resumeScheduled&&!e.paused?e.flowing=!0:t.listenerCount("data")>0&&t.resume()}function H(t){d("readable nexttick read 0"),t.read(0)}function z(t,e){d("resume",e.reading),e.reading||t.read(0),e.resumeScheduled=!1,t.emit("resume"),V(t),e.flowing&&!e.reading&&t.read(0)}function V(t){var e=t._readableState;for(d("flow",e.flowing);e.flowing&&null!==t.read(););}function K(t,e){return 0===e.length?null:(e.objectMode?r=e.buffer.shift():!t||t>=e.length?(r=e.decoder?e.buffer.join(""):1===e.buffer.length?e.buffer.first():e.buffer.concat(e.length),e.buffer.clear()):r=e.buffer.consume(t,e.decoder),r);var r}function Z(t){var e=t._readableState;d("endReadable",e.endEmitted),e.endEmitted||(e.ended=!0,n.nextTick(W,e,t))}function W(t,e){if(d("endReadableNT",t.endEmitted,t.length),!t.endEmitted&&0===t.length&&(t.endEmitted=!0,e.readable=!1,e.emit("end"),t.autoDestroy)){var r=e._writableState;(!r||r.autoDestroy&&r.finished)&&e.destroy()}}function G(t,e){for(var i=0,r=t.length;i<r;i++)if(t[i]===e)return i;return-1}T.prototype.read=function(t){d("read",t),t=parseInt(t,10);var e=this._readableState,r=t;if(0!==t&&(e.emittedReadable=!1),0===t&&e.needReadable&&((0!==e.highWaterMark?e.length>=e.highWaterMark:e.length>0)||e.ended))return d("read: emitReadable",e.length,e.ended),0===e.length&&e.ended?Z(this):B(this),null;if(0===(t=U(t,e))&&e.ended)return 0===e.length&&Z(this),null;var n,o=e.needReadable;return d("need readable",o),(0===e.length||e.length-t<e.highWaterMark)&&d("length less than watermark",o=!0),e.ended||e.reading?d("reading or ended",o=!1):o&&(d("do read"),e.reading=!0,e.sync=!0,0===e.length&&(e.needReadable=!0),this._read(e.highWaterMark),e.sync=!1,e.reading||(t=U(r,e))),null===(n=t>0?K(t,e):null)?(e.needReadable=e.length<=e.highWaterMark,t=0):(e.length-=t,e.awaitDrain=0),0===e.length&&(e.ended||(e.needReadable=!0),r!==t&&e.ended&&Z(this)),null!==n&&this.emit("data",n),n},T.prototype._read=function(t){R(this,new E("_read()"))},T.prototype.pipe=function(t,e){var r=this,o=this._readableState;switch(o.pipesCount){case 0:o.pipes=t;break;case 1:o.pipes=[o.pipes,t];break;default:o.pipes.push(t)}o.pipesCount+=1,d("pipe count=%d opts=%j",o.pipesCount,e);var c=(!e||!1!==e.end)&&t!==n.stdout&&t!==n.stderr?l:S;function f(e,n){d("onunpipe"),e===r&&n&&!1===n.hasUnpiped&&(n.hasUnpiped=!0,d("cleanup"),t.removeListener("close",M),t.removeListener("finish",_),t.removeListener("drain",m),t.removeListener("error",w),t.removeListener("unpipe",f),r.removeListener("end",l),r.removeListener("end",S),r.removeListener("data",y),v=!0,!o.awaitDrain||t._writableState&&!t._writableState.needDrain||m())}function l(){d("onend"),t.end()}o.endEmitted?n.nextTick(c):r.once("end",c),t.on("unpipe",f);var m=function(t){return function(){var e=t._readableState;d("pipeOnDrain",e.awaitDrain),e.awaitDrain&&e.awaitDrain--,0===e.awaitDrain&&h(t,"data")&&(e.flowing=!0,V(t))}}(r);t.on("drain",m);var v=!1;function y(e){d("ondata");var n=t.write(e);d("dest.write",n),!1===n&&((1===o.pipesCount&&o.pipes===t||o.pipesCount>1&&-1!==G(o.pipes,t))&&!v&&(d("false write response, pause",o.awaitDrain),o.awaitDrain++),r.pause())}function w(e){d("onerror",e),S(),t.removeListener("error",w),0===h(t,"error")&&R(t,e)}function M(){t.removeListener("finish",_),S()}function _(){d("onfinish"),t.removeListener("close",M),S()}function S(){d("unpipe"),r.unpipe(t)}return r.on("data",y),function(t,e,r){if("function"==typeof t.prependListener)return t.prependListener(e,r);t._events&&t._events[e]?Array.isArray(t._events[e])?t._events[e].unshift(r):t._events[e]=[r,t._events[e]]:t.on(e,r)}(t,"error",w),t.once("close",M),t.once("finish",_),t.emit("pipe",r),o.flowing||(d("pipe resume"),r.resume()),t},T.prototype.unpipe=function(t){var e=this._readableState,r={hasUnpiped:!1};if(0===e.pipesCount)return this;if(1===e.pipesCount)return t&&t!==e.pipes||(t||(t=e.pipes),e.pipes=null,e.pipesCount=0,e.flowing=!1,t&&t.emit("unpipe",this,r)),this;if(!t){var n=e.pipes,o=e.pipesCount;e.pipes=null,e.pipesCount=0,e.flowing=!1;for(var i=0;i<o;i++)n[i].emit("unpipe",this,{hasUnpiped:!1});return this}var h=G(e.pipes,t);return-1===h||(e.pipes.splice(h,1),e.pipesCount-=1,1===e.pipesCount&&(e.pipes=e.pipes[0]),t.emit("unpipe",this,r)),this},T.prototype.on=function(t,e){var r=c.prototype.on.call(this,t,e),o=this._readableState;return"data"===t?(o.readableListening=this.listenerCount("readable")>0,!1!==o.flowing&&this.resume()):"readable"===t&&(o.endEmitted||o.readableListening||(o.readableListening=o.needReadable=!0,o.flowing=!1,o.emittedReadable=!1,d("on readable",o.length,o.reading),o.length?B(this):o.reading||n.nextTick(H,this))),r},T.prototype.addListener=T.prototype.on,T.prototype.removeListener=function(t,e){var r=c.prototype.removeListener.call(this,t,e);return"readable"===t&&n.nextTick(N,this),r},T.prototype.removeAllListeners=function(t){var e=c.prototype.removeAllListeners.apply(this,arguments);return"readable"!==t&&void 0!==t||n.nextTick(N,this),e},T.prototype.resume=function(){var t=this._readableState;return t.flowing||(d("resume"),t.flowing=!t.readableListening,function(t,e){e.resumeScheduled||(e.resumeScheduled=!0,n.nextTick(z,t,e))}(this,t)),t.paused=!1,this},T.prototype.pause=function(){return d("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(d("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},T.prototype.wrap=function(t){var e=this,r=this._readableState,n=!1;for(var i in t.on("end",(function(){if(d("wrapped end"),r.decoder&&!r.ended){var t=r.decoder.end();t&&t.length&&e.push(t)}e.push(null)})),t.on("data",(function(o){(d("wrapped data"),r.decoder&&(o=r.decoder.write(o)),r.objectMode&&null==o)||(r.objectMode||o&&o.length)&&(e.push(o)||(n=!0,t.pause()))})),t)void 0===this[i]&&"function"==typeof t[i]&&(this[i]=function(e){return function(){return t[e].apply(t,arguments)}}(i));for(var o=0;o<I.length;o++)t.on(I[o],this.emit.bind(this,I[o]));return this._read=function(e){d("wrapped _read",e),n&&(n=!1,t.resume())},this},"function"==typeof Symbol&&(T.prototype[Symbol.asyncIterator]=function(){return void 0===y&&(y=r(408)),y(this)}),Object.defineProperty(T.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(T.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(T.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(t){this._readableState&&(this._readableState.flowing=t)}}),T._fromList=K,Object.defineProperty(T.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}}),"function"==typeof Symbol&&(T.from=function(t,e){return void 0===w&&(w=r(409)),w(T,t,e)})}).call(this,r(18),r(33))},function(t,e,r){t.exports=r(62).EventEmitter},function(t,e,r){"use strict";(function(e){function r(t,e){o(t,e),n(t)}function n(t){t._writableState&&!t._writableState.emitClose||t._readableState&&!t._readableState.emitClose||t.emit("close")}function o(t,e){t.emit("error",e)}t.exports={destroy:function(t,h){var c=this,f=this._readableState&&this._readableState.destroyed,l=this._writableState&&this._writableState.destroyed;return f||l?(h?h(t):t&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,e.nextTick(o,this,t)):e.nextTick(o,this,t)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(t||null,(function(t){!h&&t?c._writableState?c._writableState.errorEmitted?e.nextTick(n,c):(c._writableState.errorEmitted=!0,e.nextTick(r,c,t)):e.nextTick(r,c,t):h?(e.nextTick(n,c),h(t)):e.nextTick(n,c)})),this)},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)},errorOrDestroy:function(t,e){var r=t._readableState,n=t._writableState;r&&r.autoDestroy||n&&n.autoDestroy?t.destroy(e):t.emit("error",e)}}}).call(this,r(33))},function(t,e,r){"use strict";var n=r(70).codes.ERR_INVALID_OPT_VALUE;t.exports={getHighWaterMark:function(t,e,r,o){var h=function(t,e,r){return null!=t.highWaterMark?t.highWaterMark:e?t[r]:null}(e,o,r);if(null!=h){if(!isFinite(h)||Math.floor(h)!==h||h<0)throw new n(o?r:"highWaterMark",h);return Math.floor(h)}return t.objectMode?16:16384}}},function(t,e,r){"use strict";(function(e,n){function o(t){var e=this;this.next=null,this.entry=null,this.finish=function(){!function(t,e,r){var n=t.entry;t.entry=null;for(;n;){var o=n.callback;e.pendingcb--,o(r),n=n.next}e.corkedRequestsFree.next=t}(e,t)}}var h;t.exports=T,T.WritableState=P;var c={deprecate:r(239)},f=r(235),l=r(5).Buffer,d=e.Uint8Array||function(){};var m,v=r(236),y=r(237).getHighWaterMark,w=r(70).codes,M=w.ERR_INVALID_ARG_TYPE,_=w.ERR_METHOD_NOT_IMPLEMENTED,S=w.ERR_MULTIPLE_CALLBACK,A=w.ERR_STREAM_CANNOT_PIPE,x=w.ERR_STREAM_DESTROYED,k=w.ERR_STREAM_NULL_VALUES,E=w.ERR_STREAM_WRITE_AFTER_END,C=w.ERR_UNKNOWN_ENCODING,R=v.errorOrDestroy;function I(){}function P(t,e,c){h=h||r(71),t=t||{},"boolean"!=typeof c&&(c=e instanceof h),this.objectMode=!!t.objectMode,c&&(this.objectMode=this.objectMode||!!t.writableObjectMode),this.highWaterMark=y(this,t,"writableHighWaterMark",c),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var f=!1===t.decodeStrings;this.decodeStrings=!f,this.defaultEncoding=t.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(t){!function(t,e){var r=t._writableState,o=r.sync,h=r.writecb;if("function"!=typeof h)throw new S;if(function(t){t.writing=!1,t.writecb=null,t.length-=t.writelen,t.writelen=0}(r),e)!function(t,e,r,o,h){--e.pendingcb,r?(n.nextTick(h,o),n.nextTick(F,t,e),t._writableState.errorEmitted=!0,R(t,o)):(h(o),t._writableState.errorEmitted=!0,R(t,o),F(t,e))}(t,r,o,e,h);else{var c=B(r)||t.destroyed;c||r.corked||r.bufferProcessing||!r.bufferedRequest||U(t,r),o?n.nextTick(j,t,r,c,h):j(t,r,c,h)}}(e,t)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!1!==t.emitClose,this.autoDestroy=!!t.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new o(this)}function T(t){var e=this instanceof(h=h||r(71));if(!e&&!m.call(T,this))return new T(t);this._writableState=new P(t,this,e),this.writable=!0,t&&("function"==typeof t.write&&(this._write=t.write),"function"==typeof t.writev&&(this._writev=t.writev),"function"==typeof t.destroy&&(this._destroy=t.destroy),"function"==typeof t.final&&(this._final=t.final)),f.call(this)}function O(t,e,r,n,o,h,c){e.writelen=n,e.writecb=c,e.writing=!0,e.sync=!0,e.destroyed?e.onwrite(new x("write")):r?t._writev(o,e.onwrite):t._write(o,h,e.onwrite),e.sync=!1}function j(t,e,r,n){r||function(t,e){0===e.length&&e.needDrain&&(e.needDrain=!1,t.emit("drain"))}(t,e),e.pendingcb--,n(),F(t,e)}function U(t,e){e.bufferProcessing=!0;var r=e.bufferedRequest;if(t._writev&&r&&r.next){var n=e.bufferedRequestCount,h=new Array(n),c=e.corkedRequestsFree;c.entry=r;for(var f=0,l=!0;r;)h[f]=r,r.isBuf||(l=!1),r=r.next,f+=1;h.allBuffers=l,O(t,e,!0,e.length,h,"",c.finish),e.pendingcb++,e.lastBufferedRequest=null,c.next?(e.corkedRequestsFree=c.next,c.next=null):e.corkedRequestsFree=new o(e),e.bufferedRequestCount=0}else{for(;r;){var d=r.chunk,m=r.encoding,v=r.callback;if(O(t,e,!1,e.objectMode?1:d.length,d,m,v),r=r.next,e.bufferedRequestCount--,e.writing)break}null===r&&(e.lastBufferedRequest=null)}e.bufferedRequest=r,e.bufferProcessing=!1}function B(t){return t.ending&&0===t.length&&null===t.bufferedRequest&&!t.finished&&!t.writing}function D(t,e){t._final((function(r){e.pendingcb--,r&&R(t,r),e.prefinished=!0,t.emit("prefinish"),F(t,e)}))}function F(t,e){var r=B(e);if(r&&(function(t,e){e.prefinished||e.finalCalled||("function"!=typeof t._final||e.destroyed?(e.prefinished=!0,t.emit("prefinish")):(e.pendingcb++,e.finalCalled=!0,n.nextTick(D,t,e)))}(t,e),0===e.pendingcb&&(e.finished=!0,t.emit("finish"),e.autoDestroy))){var o=t._readableState;(!o||o.autoDestroy&&o.endEmitted)&&t.destroy()}return r}r(6)(T,f),P.prototype.getBuffer=function(){for(var t=this.bufferedRequest,e=[];t;)e.push(t),t=t.next;return e},function(){try{Object.defineProperty(P.prototype,"buffer",{get:c.deprecate((function(){return this.getBuffer()}),"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(t){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(m=Function.prototype[Symbol.hasInstance],Object.defineProperty(T,Symbol.hasInstance,{value:function(object){return!!m.call(this,object)||this===T&&(object&&object._writableState instanceof P)}})):m=function(object){return object instanceof this},T.prototype.pipe=function(){R(this,new A)},T.prototype.write=function(t,e,r){var o,h=this._writableState,c=!1,f=!h.objectMode&&(o=t,l.isBuffer(o)||o instanceof d);return f&&!l.isBuffer(t)&&(t=function(t){return l.from(t)}(t)),"function"==typeof e&&(r=e,e=null),f?e="buffer":e||(e=h.defaultEncoding),"function"!=typeof r&&(r=I),h.ending?function(t,e){var r=new E;R(t,r),n.nextTick(e,r)}(this,r):(f||function(t,e,r,o){var h;return null===r?h=new k:"string"==typeof r||e.objectMode||(h=new M("chunk",["string","Buffer"],r)),!h||(R(t,h),n.nextTick(o,h),!1)}(this,h,t,r))&&(h.pendingcb++,c=function(t,e,r,n,o,h){if(!r){var c=function(t,e,r){t.objectMode||!1===t.decodeStrings||"string"!=typeof e||(e=l.from(e,r));return e}(e,n,o);n!==c&&(r=!0,o="buffer",n=c)}var f=e.objectMode?1:n.length;e.length+=f;var d=e.length<e.highWaterMark;d||(e.needDrain=!0);if(e.writing||e.corked){var m=e.lastBufferedRequest;e.lastBufferedRequest={chunk:n,encoding:o,isBuf:r,callback:h,next:null},m?m.next=e.lastBufferedRequest:e.bufferedRequest=e.lastBufferedRequest,e.bufferedRequestCount+=1}else O(t,e,!1,f,n,o,h);return d}(this,h,f,t,e,r)),c},T.prototype.cork=function(){this._writableState.corked++},T.prototype.uncork=function(){var t=this._writableState;t.corked&&(t.corked--,t.writing||t.corked||t.bufferProcessing||!t.bufferedRequest||U(this,t))},T.prototype.setDefaultEncoding=function(t){if("string"==typeof t&&(t=t.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((t+"").toLowerCase())>-1))throw new C(t);return this._writableState.defaultEncoding=t,this},Object.defineProperty(T.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(T.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),T.prototype._write=function(t,e,r){r(new _("_write()"))},T.prototype._writev=null,T.prototype.end=function(t,e,r){var o=this._writableState;return"function"==typeof t?(r=t,t=null,e=null):"function"==typeof e&&(r=e,e=null),null!=t&&this.write(t,e),o.corked&&(o.corked=1,this.uncork()),o.ending||function(t,e,r){e.ending=!0,F(t,e),r&&(e.finished?n.nextTick(r):t.once("finish",r));e.ended=!0,t.writable=!1}(this,o,r),this},Object.defineProperty(T.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(T.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(t){this._writableState&&(this._writableState.destroyed=t)}}),T.prototype.destroy=v.destroy,T.prototype._undestroy=v.undestroy,T.prototype._destroy=function(t,e){e(t)}}).call(this,r(18),r(33))},function(t,e,r){(function(e){function r(t){try{if(!e.localStorage)return!1}catch(t){return!1}var r=e.localStorage[t];return null!=r&&"true"===String(r).toLowerCase()}t.exports=function(t,e){if(r("noDeprecation"))return t;var n=!1;return function(){if(!n){if(r("throwDeprecation"))throw new Error(e);r("traceDeprecation")?console.trace(e):console.warn(e),n=!0}return t.apply(this,arguments)}}}).call(this,r(18))},function(t,e,r){"use strict";t.exports=m;
vendor: 5,206 bytes, line 11
11var n=r(70).codes,o=n.ERR_METHOD_NOT_IMPLEMENTED,h=n.ERR_MULTIPLE_CALLBACK,c=n.ERR_TRANSFORM_ALREADY_TRANSFORMING,f=n.ERR_TRANSFORM_WITH_LENGTH_0,l=r(71);function d(t,data){var e=this._transformState;e.transforming=!1;var r=e.writecb;if(null===r)return this.emit("error",new h);e.writechunk=null,e.writecb=null,null!=data&&this.push(data),r(t);var n=this._readableState;n.reading=!1,(n.needReadable||n.length<n.highWaterMark)&&this._read(n.highWaterMark)}function m(t){if(!(this instanceof m))return new m(t);l.call(this,t),this._transformState={afterTransform:d.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,t&&("function"==typeof t.transform&&(this._transform=t.transform),"function"==typeof t.flush&&(this._flush=t.flush)),this.on("prefinish",v)}function v(){var t=this;"function"!=typeof this._flush||this._readableState.destroyed?y(this,null,null):this._flush((function(e,data){y(t,e,data)}))}function y(t,e,data){if(e)return t.emit("error",e);if(null!=data&&t.push(data),t._writableState.length)throw new f;if(t._transformState.transforming)throw new c;return t.push(null)}r(6)(m,l),m.prototype.push=function(t,e){return this._transformState.needTransform=!1,l.prototype.push.call(this,t,e)},m.prototype._transform=function(t,e,r){r(new o("_transform()"))},m.prototype._write=function(t,e,r){var n=this._transformState;if(n.writecb=r,n.writechunk=t,n.writeencoding=e,!n.transforming){var o=this._readableState;(n.needTransform||o.needReadable||o.length<o.highWaterMark)&&this._read(o.highWaterMark)}},m.prototype._read=function(t){var e=this._transformState;null===e.writechunk||e.transforming?e.needTransform=!0:(e.transforming=!0,this._transform(e.writechunk,e.writeencoding,e.afterTransform))},m.prototype._destroy=function(t,e){l.prototype._destroy.call(this,t,(function(t){e(t)}))}},function(t,e,r){var n=r(6),o=r(72),h=r(7).Buffer,c=[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],f=new Array(64);function l(){this.init(),this._w=f,o.call(this,64,56)}function d(t,e,r){return r^t&(e^r)}function m(t,e,r){return t&e|r&(t|e)}function v(t){return(t>>>2|t<<30)^(t>>>13|t<<19)^(t>>>22|t<<10)}function y(t){return(t>>>6|t<<26)^(t>>>11|t<<21)^(t>>>25|t<<7)}function w(t){return(t>>>7|t<<25)^(t>>>18|t<<14)^t>>>3}n(l,o),l.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},l.prototype._update=function(t){for(var e,r=this._w,a=0|this._a,b=0|this._b,n=0|this._c,o=0|this._d,h=0|this._e,f=0|this._f,g=0|this._g,l=0|this._h,i=0;i<16;++i)r[i]=t.readInt32BE(4*i);for(;i<64;++i)r[i]=0|(((e=r[i-2])>>>17|e<<15)^(e>>>19|e<<13)^e>>>10)+r[i-7]+w(r[i-15])+r[i-16];for(var M=0;M<64;++M){var _=l+y(h)+d(h,f,g)+c[M]+r[M]|0,S=v(a)+m(a,b,n)|0;l=g,g=f,f=h,h=o+_|0,o=n,n=b,b=a,a=_+S|0}this._a=a+this._a|0,this._b=b+this._b|0,this._c=n+this._c|0,this._d=o+this._d|0,this._e=h+this._e|0,this._f=f+this._f|0,this._g=g+this._g|0,this._h=l+this._h|0},l.prototype._hash=function(){var t=h.allocUnsafe(32);return t.writeInt32BE(this._a,0),t.writeInt32BE(this._b,4),t.writeInt32BE(this._c,8),t.writeInt32BE(this._d,12),t.writeInt32BE(this._e,16),t.writeInt32BE(this._f,20),t.writeInt32BE(this._g,24),t.writeInt32BE(this._h,28),t},t.exports=l},function(t,e,r){var n=r(6),o=r(72),h=r(7).Buffer,c=[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,
vendor: 8,228 bytes, line 11
111322822218,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],f=new Array(160);function l(){this.init(),this._w=f,o.call(this,128,112)}function d(t,e,r){return r^t&(e^r)}function m(t,e,r){return t&e|r&(t|e)}function v(t,e){return(t>>>28|e<<4)^(e>>>2|t<<30)^(e>>>7|t<<25)}function y(t,e){return(t>>>14|e<<18)^(t>>>18|e<<14)^(e>>>9|t<<23)}function w(t,e){return(t>>>1|e<<31)^(t>>>8|e<<24)^t>>>7}function M(t,e){return(t>>>1|e<<31)^(t>>>8|e<<24)^(t>>>7|e<<25)}function _(t,e){return(t>>>19|e<<13)^(e>>>29|t<<3)^t>>>6}function S(t,e){return(t>>>19|e<<13)^(e>>>29|t<<3)^(t>>>6|e<<26)}function A(a,b){return a>>>0<b>>>0?1:0}n(l,o),l.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},l.prototype._update=function(t){for(var e=this._w,r=0|this._ah,n=0|this._bh,o=0|this._ch,h=0|this._dh,f=0|this._eh,l=0|this._fh,x=0|this._gh,k=0|this._hh,E=0|this._al,C=0|this._bl,R=0|this._cl,dl=0|this._dl,I=0|this._el,P=0|this._fl,T=0|this._gl,O=0|this._hl,i=0;i<32;i+=2)e[i]=t.readInt32BE(4*i),e[i+1]=t.readInt32BE(4*i+4);for(;i<160;i+=2){var j=e[i-30],U=e[i-30+1],B=w(j,U),D=M(U,j),F=_(j=e[i-4],U=e[i-4+1]),L=S(U,j),N=e[i-14],H=e[i-14+1],z=e[i-32],V=e[i-32+1],K=D+H|0,Z=B+N+A(K,D)|0;Z=(Z=Z+F+A(K=K+L|0,L)|0)+z+A(K=K+V|0,V)|0,e[i]=Z,e[i+1]=K}for(var W=0;W<160;W+=2){Z=e[W],K=e[W+1];var G=m(r,n,o),J=m(E,C,R),Y=v(r,E),Q=v(E,r),X=y(f,I),$=y(I,f),tt=c[W],et=c[W+1],it=d(f,l,x),nt=d(I,P,T),ot=O+$|0,st=k+X+A(ot,O)|0;st=(st=(st=st+it+A(ot=ot+nt|0,nt)|0)+tt+A(ot=ot+et|0,et)|0)+Z+A(ot=ot+K|0,K)|0;var at=Q+J|0,ut=Y+G+A(at,Q)|0;k=x,O=T,x=l,T=P,l=f,P=I,f=h+st+A(I=dl+ot|0,dl)|0,h=o,dl=R,o=n,R=C,n=r,C=E,r=st+ut+A(E=ot+at|0,ot)|0}this._al=this._al+E|0,this._bl=this._bl+C|0,this._cl=this._cl+R|0,this._dl=this._dl+dl|0,this._el=this._el+I|0,this._fl=this._fl+P|0,this._gl=this._gl+T|0,this._hl=this._hl+O|0,this._ah=this._ah+r+A(this._al,E)|0,this._bh=this._bh+n+A(this._bl,C)|0,this._ch=this._ch+o+A(this._cl,R)|0,this._dh=this._dh+h+A(this._dl,dl)|0,this._eh=this._eh+f+A(this._el,I)|0,this._fh=this._fh+l+A(this._fl,P)|0,this._gh=this._gh+x+A(this._gl,T)|0,this._hh=this._hh+k+A(this._hl,O)|0},l.prototype._hash=function(){var t=h.allocUnsafe(64);function e(e,r,n){t.writeInt32BE(e,n),t.writeInt32BE(r,n+4)}return e(this._ah,this._al,0),e(this._bh,this._bl,8),e(this._ch,this._cl,16),e(this._dh,this._dl,24),e(this._eh,this._el,32),e(this._fh,this._fl,40),e(this._gh,this._gl,48),e(this._hh,this._hl,56),t},t.exports=l},function(t,e,r){"use strict";(function(e,n){var o=r(123);t.exports=k;var h,c=r(230);k.ReadableState=x;r(62).EventEmitter;var f=function(t,e){return t.listeners(e).length},l=r(244),d=r(7).Buffer,m=e.Uint8Array||function(){};var v=Object.create(r(94));v.inherits=r(6);var y=r(417),w=void 0;w=y&&y.debuglog?y.debuglog("stream"):function(){};var M,_=r(418),S=r(245);v.inherits(k,l);var A=["error","close","destroy","pause","resume"];function x(t,e){t=t||{};var n=e instanceof(h=h||r(63));this.objectMode=!!t.objectMode,n&&(this.objectMode=this.objectMode||!!t.readableObjectMode);var o=t.highWaterMark,c=t.readableHighWaterMark,f=this.objectMode?16:16384;this.highWaterMark=o||0===o?o:n&&(c||0===c)?c:f,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new _,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.destroyed=!1,this.defaultEncoding=t.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,t.encoding&&(M||(M=r(93).StringDecoder),this.decoder=new M(t.encoding),this.encoding=t.encoding)}function k(t){if(h=h||r(63),!(this instanceof k))return new k(t);this._readableState=new x(t,this),this.readable=!0,t&&("function"==typeof t.read&&(this._read=t.read),"function"==typeof t.destroy&&(this._destroy=t.destroy)),l.call(this)}function E(t,e,r,n,o){var h,c=t._readableState;null===e?(c.reading=!1,function(t,e){if(e.ended)return;if(e.decoder){var r=e.decoder.end();r&&r.length&&(e.buffer.push(r),e.length+=e.objectMode?1:r.length)}e.ended=!0,I(t)}(t,c)):(o||(h=function(t,e){var r;n=e,d.isBuffer(n)||n instanceof m||"string"==typeof e||void 0===e||t.objectMode||(r=new TypeError("Invalid non-string/buffer chunk"));var n;return r}(c,e)),h?t.emit("error",h):c.objectMode||e&&e.length>0?("string"==typeof e||c.objectMode||Object.getPrototypeOf(e)===d.prototype||(e=function(t){return d.from(t)}(e)),n?c.endEmitted?t.emit("error",new Error("stream.unshift() after end event")):C(t,c,e,!0):c.ended?t.emit("error",new Error("stream.push() after EOF")):(c.reading=!1,c.decoder&&!r?(e=c.decoder.write(e),c.objectMode||0!==e.length?C(t,c,e,!1):T(t,c)):C(t,c,e,!1))):n||(c.reading=!1));return function(t){return!t.ended&&(t.needReadable||t.length<t.highWaterMark||0===t.length)}(c)}function C(t,e,r,n){e.flowing&&0===e.length&&!e.sync?(t.emit("data",r),t.read(0)):(e.length+=e.objectMode?1:r.length,n?e.buffer.unshift(r):e.buffer.push(r),e.needReadable&&I(t)),T(t,e)}Object.defineProperty(k.prototype,"destroyed",{get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(t){this._readableState&&(this._readableState.destroyed=t)}}),k.prototype.destroy=S.destroy,k.prototype._undestroy=S.undestroy,k.prototype._destroy=function(t,e){this.push(null),e(t)},k.prototype.push=function(t,e){var r,n=this._readableState;return n.objectMode?r=!0:"string"==typeof t&&((e=e||n.defaultEncoding)!==n.encoding&&(t=d.from(t,e),e=""),r=!0),E(this,t,e,!1,r)},k.prototype.unshift=function(t){return E(this,t,null,!0,!1)},k.prototype.isPaused=function(){return!1===this._readableState.flowing},k.prototype.setEncoding=function(t){return M||(M=r(93).StringDecoder),this._readableState.decoder=new M(t),this._readableState.encoding=t,this};function R(t,e){return t<=0||0===e.length&&e.ended?0:e.objectMode?1:t!=t?e.flowing&&e.length?e.buffer.head.data.length:e.length:(t>e.highWaterMark&&(e.highWaterMark=function(t){return t>=8388608?t=8388608:(t--,t|=t>>>1,t|=t>>>2,t|=t>>>4,t|=t>>>8,t|=t>>>16,t++),t}(t)),t<=e.length?t:e.ended?e.length:(e.needReadable=!0,0))}function I(t){var e=t._readableState;e.needReadable=!1,e.emittedReadable||(w("emitReadable",e.flowing),e.emittedReadable=!0,e.sync?o.nextTick(P,t):P(t))}function P(t){w("emit readable"),t.emit("readable"),B(t)}function T(t,e){e.readingMore||(e.readingMore=!0,o.nextTick(O,t,e))}function O(t,e){for(var r=e.length;!e.reading&&!e.flowing&&!e.ended&&e.length<e.highWaterMark&&(w("maybeReadMore read 0"),t.read(0),r!==e.length);)r=e.length;e.readingMore=!1}function j(t){w("readable nexttick read 0"),t.read(0)}function U(t,e){e.reading||(w("resume read 0"),t.read(0)),e.resumeScheduled=!1,e.awaitDrain=0,t.emit("resume"),B(t),e.flowing&&!e.reading&&t.read(0)}function B(t){var e=t._readableState;for(w("flow",e.flowing);e.flowing&&null!==t.read(););}function D(t,e){return 0===e.length?null:(e.objectMode?r=e.buffer.shift():!t||t>=e.length?(r=e.decoder?e.buffer.join(""):1===e.buffer.length?e.buffer.head.data:e.buffer.concat(e.length),e.buffer.clear()):r=function(t,e,r){var n;t<e.head.data.length?(n=e.head.data.slice(0,t),e.head.data=e.head.data.slice(t)):n=t===e.head.data.length?e.shift():r?function(t,e){var p=e.head,r=1,n=p.data;t-=n.length;for(;p=p.next;){var o=p.data,h=t>o.length?o.length:t;if(h===o.length?n+=o:n+=o.slice(0,t),0===(t-=h)){h===o.length?(++r,p.next?e.head=p.next:e.head=e.tail
vendor: 4,648 bytes, line 11
11=null):(e.head=p,p.data=o.slice(h));break}++r}return e.length-=r,n}(t,e):function(t,e){var r=d.allocUnsafe(t),p=e.head,n=1;p.data.copy(r),t-=p.data.length;for(;p=p.next;){var o=p.data,h=t>o.length?o.length:t;if(o.copy(r,r.length-t,0,h),0===(t-=h)){h===o.length?(++n,p.next?e.head=p.next:e.head=e.tail=null):(e.head=p,p.data=o.slice(h));break}++n}return e.length-=n,r}(t,e);return n}(t,e.buffer,e.decoder),r);var r}function F(t){var e=t._readableState;if(e.length>0)throw new Error('"endReadable()" called on non-empty stream');e.endEmitted||(e.ended=!0,o.nextTick(L,e,t))}function L(t,e){t.endEmitted||0!==t.length||(t.endEmitted=!0,e.readable=!1,e.emit("end"))}function N(t,e){for(var i=0,r=t.length;i<r;i++)if(t[i]===e)return i;return-1}k.prototype.read=function(t){w("read",t),t=parseInt(t,10);var e=this._readableState,r=t;if(0!==t&&(e.emittedReadable=!1),0===t&&e.needReadable&&(e.length>=e.highWaterMark||e.ended))return w("read: emitReadable",e.length,e.ended),0===e.length&&e.ended?F(this):I(this),null;if(0===(t=R(t,e))&&e.ended)return 0===e.length&&F(this),null;var n,o=e.needReadable;return w("need readable",o),(0===e.length||e.length-t<e.highWaterMark)&&w("length less than watermark",o=!0),e.ended||e.reading?w("reading or ended",o=!1):o&&(w("do read"),e.reading=!0,e.sync=!0,0===e.length&&(e.needReadable=!0),this._read(e.highWaterMark),e.sync=!1,e.reading||(t=R(r,e))),null===(n=t>0?D(t,e):null)?(e.needReadable=!0,t=0):e.length-=t,0===e.length&&(e.ended||(e.needReadable=!0),r!==t&&e.ended&&F(this)),null!==n&&this.emit("data",n),n},k.prototype._read=function(t){this.emit("error",new Error("_read() is not implemented"))},k.prototype.pipe=function(t,e){var r=this,h=this._readableState;switch(h.pipesCount){case 0:h.pipes=t;break;case 1:h.pipes=[h.pipes,t];break;default:h.pipes.push(t)}h.pipesCount+=1,w("pipe count=%d opts=%j",h.pipesCount,e);var l=(!e||!1!==e.end)&&t!==n.stdout&&t!==n.stderr?m:k;function d(e,n){w("onunpipe"),e===r&&n&&!1===n.hasUnpiped&&(n.hasUnpiped=!0,w("cleanup"),t.removeListener("close",A),t.removeListener("finish",x),t.removeListener("drain",v),t.removeListener("error",S),t.removeListener("unpipe",d),r.removeListener("end",m),r.removeListener("end",k),r.removeListener("data",_),y=!0,!h.awaitDrain||t._writableState&&!t._writableState.needDrain||v())}function m(){w("onend"),t.end()}h.endEmitted?o.nextTick(l):r.once("end",l),t.on("unpipe",d);var v=function(t){return function(){var e=t._readableState;w("pipeOnDrain",e.awaitDrain),e.awaitDrain&&e.awaitDrain--,0===e.awaitDrain&&f(t,"data")&&(e.flowing=!0,B(t))}}(r);t.on("drain",v);var y=!1;var M=!1;function _(e){w("ondata"),M=!1,!1!==t.write(e)||M||((1===h.pipesCount&&h.pipes===t||h.pipesCount>1&&-1!==N(h.pipes,t))&&!y&&(w("false write response, pause",r._readableState.awaitDrain),r._readableState.awaitDrain++,M=!0),r.pause())}function S(e){w("onerror",e),k(),t.removeListener("error",S),0===f(t,"error")&&t.emit("error",e)}function A(){t.removeListener("finish",x),k()}function x(){w("onfinish"),t.removeListener("close",A),k()}function k(){w("unpipe"),r.unpipe(t)}return r.on("data",_),function(t,e,r){if("function"==typeof t.prependListener)return t.prependListener(e,r);t._events&&t._events[e]?c(t._events[e])?t._events[e].unshift(r):t._events[e]=[r,t._events[e]]:t.on(e,r)}(t,"error",S),t.once("close",A),t.once("finish",x),t.emit("pipe",r),h.flowing||(w("pipe resume"),r.resume()),t},k.prototype.unpipe=function(t){var e=this._readableState,r={hasUnpiped:!1};if(0===e.pipesCount)return this;if(1===e.pipesCount)return t&&t!==e.pipes||(t||(t=e.pipes),e.pipes=null,e.pipesCount=0,e.flowing=!1,t&&t.emit("unpipe",this,r)),this;if(!t){var n=e.pipes,o=e.pipesCount;e.pipes=null,e.pipesCount=0,e.flowing=!1;for(var i=0;i<o;i++)n[i].emit("unpipe",this,r);return this}var h=N(e.pipes,t);return-1===h||(e.pipes.splice(h,1),e.pipesCount-=1,1===e.pipesCount&&(e.pipes=e.pipes[0]),t.emit("unpipe",this,r)),this},k.prototype.on=function(t,e){var r=l.prototype.on.call(this,t,e);if("data"===t)!1!==this._readableState.flowing&&this.resume();else if("readable"===t){var n=this._readableState;n.endEmitted||n.readableListening||(n.readableListening=n.needReadable=!0,n.emittedReadable=!1,n.reading?n.length&&I(this):o.nextTick(j,this))}return r},k.prototype.addListener=k.prototype.on,k.prototype.resume=function(){var t=this._readableState;return t.flowing||(w("resume"),t.flowing=!0,function(t,e){e.resumeScheduled||(e.resumeScheduled=!0,o.nextTick(U,t,e))}(this,t)),this},k.prototype.pause=function(){return w("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(w("pause"),this._readableState.flowing=!1,this.emit
vendor: 7,135 bytes, line 11
11("pause")),this},k.prototype.wrap=function(t){var e=this,r=this._readableState,n=!1;for(var i in t.on("end",(function(){if(w("wrapped end"),r.decoder&&!r.ended){var t=r.decoder.end();t&&t.length&&e.push(t)}e.push(null)})),t.on("data",(function(o){(w("wrapped data"),r.decoder&&(o=r.decoder.write(o)),r.objectMode&&null==o)||(r.objectMode||o&&o.length)&&(e.push(o)||(n=!0,t.pause()))})),t)void 0===this[i]&&"function"==typeof t[i]&&(this[i]=function(e){return function(){return t[e].apply(t,arguments)}}(i));for(var o=0;o<A.length;o++)t.on(A[o],this.emit.bind(this,A[o]));return this._read=function(e){w("wrapped _read",e),n&&(n=!1,t.resume())},this},Object.defineProperty(k.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),k._fromList=D}).call(this,r(18),r(33))},function(t,e,r){t.exports=r(62).EventEmitter},function(t,e,r){"use strict";var n=r(123);function o(t,e){t.emit("error",e)}t.exports={destroy:function(t,e){var r=this,h=this._readableState&&this._readableState.destroyed,c=this._writableState&&this._writableState.destroyed;return h||c?(e?e(t):!t||this._writableState&&this._writableState.errorEmitted||n.nextTick(o,this,t),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(t||null,(function(t){!e&&t?(n.nextTick(o,r,t),r._writableState&&(r._writableState.errorEmitted=!0)):e&&e(t)})),this)},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}}},function(t,e,r){"use strict";t.exports=c;var n=r(63),o=Object.create(r(94));function h(t,data){var e=this._transformState;e.transforming=!1;var r=e.writecb;if(!r)return this.emit("error",new Error("write callback called multiple times"));e.writechunk=null,e.writecb=null,null!=data&&this.push(data),r(t);var n=this._readableState;n.reading=!1,(n.needReadable||n.length<n.highWaterMark)&&this._read(n.highWaterMark)}function c(t){if(!(this instanceof c))return new c(t);n.call(this,t),this._transformState={afterTransform:h.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,t&&("function"==typeof t.transform&&(this._transform=t.transform),"function"==typeof t.flush&&(this._flush=t.flush)),this.on("prefinish",f)}function f(){var t=this;"function"==typeof this._flush?this._flush((function(e,data){l(t,e,data)})):l(this,null,null)}function l(t,e,data){if(e)return t.emit("error",e);if(null!=data&&t.push(data),t._writableState.length)throw new Error("Calling transform done when ws.length != 0");if(t._transformState.transforming)throw new Error("Calling transform done when still transforming");return t.push(null)}o.inherits=r(6),o.inherits(c,n),c.prototype.push=function(t,e){return this._transformState.needTransform=!1,n.prototype.push.call(this,t,e)},c.prototype._transform=function(t,e,r){throw new Error("_transform() is not implemented")},c.prototype._write=function(t,e,r){var n=this._transformState;if(n.writecb=r,n.writechunk=t,n.writeencoding=e,!n.transforming){var o=this._readableState;(n.needTransform||o.needReadable||o.length<o.highWaterMark)&&this._read(o.highWaterMark)}},c.prototype._read=function(t){var e=this._transformState;null!==e.writechunk&&e.writecb&&!e.transforming?(e.transforming=!0,this._transform(e.writechunk,e.writeencoding,e.afterTransform)):e.needTransform=!0},c.prototype._destroy=function(t,e){var r=this;n.prototype._destroy.call(this,t,(function(t){e(t),r.emit("close")}))}},function(t,e,r){"use strict";var n=r(6),o=r(425),h=r(56),c=r(7).Buffer,f=r(248),l=r(159),d=r(160),m=c.alloc(128);function v(t,e){h.call(this,"digest"),"string"==typeof e&&(e=c.from(e));var r="sha512"===t||"sha384"===t?128:64;(this._alg=t,this._key=e,e.length>r)?e=("rmd160"===t?new l:d(t)).update(e).digest():e.length<r&&(e=c.concat([e,m],r));for(var n=this._ipad=c.allocUnsafe(r),o=this._opad=c.allocUnsafe(r),i=0;i<r;i++)n[i]=54^e[i],o[i]=92^e[i];this._hash="rmd160"===t?new l:d(t),this._hash.update(n)}n(v,h),v.prototype._update=function(data){this._hash.update(data)},v.prototype._final=function(){var t=this._hash.digest();return("rmd160"===this._alg?new l:d(this._alg)).update(this._opad).update(t).digest()},t.exports=function(t,e){return"rmd160"===(t=t.toLowerCase())||"ripemd160"===t?new v("rmd160",e):"md5"===t?new o(f,e):new v(t,e)}},function(t,e,r){var n=r(157);t.exports=function(t){return(new n).update(t).digest()}},function(t){t.exports=JSON.parse('{"sha224WithRSAEncryption":{"sign":"rsa","hash":"sha224","id":"302d300d06096086480165030402040500041c"},"RSA-SHA224":{"sign":"ecdsa/rsa","hash":"sha224","id":"302d300d06096086480165030402040500041c"},"sha256WithRSAEncryption":{"sign":"rsa","hash":"sha256","id":"3031300d060960864801650304020105000420"},"RSA-SHA256":{"sign":"ecdsa/rsa","hash":"sha256","id":"3031300d060960864801650304020105000420"},"sha384WithRSAEncryption":{"sign":"rsa","hash":"sha384","id":"3041300d060960864801650304020205000430"},"RSA-SHA384":{"sign":"ecdsa/rsa","hash":"sha384","id":"3041300d060960864801650304020205000430"},"sha512WithRSAEncryption":{"sign":"rsa","hash":"sha512","id":"3051300d060960864801650304020305000440"},"RSA-SHA512":{"sign":"ecdsa/rsa","hash":"sha512","id":"3051300d060960864801650304020305000440"},"RSA-SHA1":{"sign":"rsa","hash":"sha1","id":"3021300906052b0e03021a05000414"},"ecdsa-with-SHA1":{"sign":"ecdsa","hash":"sha1","id":""},"sha256":{"sign":"ecdsa","hash":"sha256","id":""},"sha224":{"sign":"ecdsa","hash":"sha224","id":""},"sha384":{"sign":"ecdsa","hash":"sha384","id":""},"sha512":{"sign":"ecdsa","hash":"sha512","id":""},"DSA-SHA":{"sign":"dsa","hash":"sha1","id":""},"DSA-SHA1":{"sign":"dsa","hash":"sha1","id":""},"DSA":{"sign":"dsa","hash":"sha1","id":""},"DSA-WITH-SHA224":{"sign":"dsa","hash":"sha224","id":""},"DSA-SHA224":{"sign":"dsa","hash":"sha224","id":""},"DSA-WITH-SHA256":{"sign":"dsa","hash":"sha256","id":""},"DSA-SHA256":{"sign":"dsa","hash":"sha256","id":""},"DSA-WITH-SHA384":{"sign":"dsa","hash":"sha384","id":""},"DSA-SHA384":{"sign":"dsa","hash":"sha384","id":""},"DSA-WITH-SHA512":{"sign":"dsa","hash":"sha512","id":""},"DSA-SHA512":{"sign":"dsa","hash":"sha512","id":""},"DSA-RIPEMD160":{"sign":"dsa","hash":"rmd160","id":""},"ripemd160WithRSA":{"sign":"rsa","hash":"rmd160","id":"3021300906052b2403020105000414"},"RSA-RIPEMD160":{"sign":"rsa","hash":"rmd160","id":"3021300906052b2403020105000414"},"md5WithRSAEncryption":{"sign":"rsa","hash":"md5","id":"3020300c06082a864886f70d020505000410"},"RSA-MD5":{"sign":"rsa","hash":"md5","id":"3020300c06082a864886f70d020505000410"}}')},function(t,e,r){e.pbkdf2=r(427),e.pbkdf2Sync=r(253)},function(t,e){var r=Math.pow(2,30)-1;t.exports=function(t,e){if("number"!=typeof t)throw new TypeError("Iterations not a number");if(t<0)throw new TypeError("Bad iterations");
vendor: 5,645 bytes, line 11
11if("number"!=typeof e)throw new TypeError("Key length not a number");if(e<0||e>r||e!=e)throw new TypeError("Bad key length")}},function(t,e,r){var n;n="utf-8",t.exports=n},function(t,e,r){var n=r(248),o=r(159),h=r(160),c=r(7).Buffer,f=r(251),l=r(252),d=r(254),m=c.alloc(128),v={md5:16,sha1:20,sha224:28,sha256:32,sha384:48,sha512:64,rmd160:20,ripemd160:20};function y(t,e,r){var f=function(t){function e(data){return h(t).update(data).digest()}return"rmd160"===t||"ripemd160"===t?function(data){return(new o).update(data).digest()}:"md5"===t?n:e}(t),l="sha512"===t||"sha384"===t?128:64;e.length>l?e=f(e):e.length<l&&(e=c.concat([e,m],l));for(var d=c.allocUnsafe(l+v[t]),y=c.allocUnsafe(l+v[t]),i=0;i<l;i++)d[i]=54^e[i],y[i]=92^e[i];var w=c.allocUnsafe(l+r+4);d.copy(w,0,0,l),this.ipad1=w,this.ipad2=d,this.opad=y,this.alg=t,this.blocksize=l,this.hash=f,this.size=v[t]}y.prototype.run=function(data,t){return data.copy(t,this.blocksize),this.hash(t).copy(this.opad,this.blocksize),this.hash(this.opad)},t.exports=function(t,e,r,n,o){f(r,n);var h=new y(o=o||"sha1",t=d(t,l,"Password"),(e=d(e,l,"Salt")).length),m=c.allocUnsafe(n),w=c.allocUnsafe(e.length+4);e.copy(w,0,0,e.length);for(var M=0,_=v[o],S=Math.ceil(n/_),i=1;i<=S;i++){w.writeUInt32BE(i,e.length);for(var A=h.run(w,h.ipad1),x=A,k=1;k<r;k++){x=h.run(x,h.ipad2);for(var E=0;E<_;E++)A[E]^=x[E]}A.copy(m,M),M+=_}return m}},function(t,e,r){var n=r(7).Buffer;t.exports=function(t,e,r){if(n.isBuffer(t))return t;if("string"==typeof t)return n.from(t,e);if(ArrayBuffer.isView(t))return n.from(t.buffer);throw new TypeError(r+" must be a string, a Buffer, a typed array or a DataView")}},function(t,e,r){"use strict";e.readUInt32BE=function(t,e){return(t[0+e]<<24|t[1+e]<<16|t[2+e]<<8|t[3+e])>>>0},e.writeUInt32BE=function(t,e,r){t[0+r]=e>>>24,t[1+r]=e>>>16&255,t[2+r]=e>>>8&255,t[3+r]=255&e},e.ip=function(t,e,r,n){for(var o=0,h=0,i=6;i>=0;i-=2){for(var c=0;c<=24;c+=8)o<<=1,o|=e>>>c+i&1;for(c=0;c<=24;c+=8)o<<=1,o|=t>>>c+i&1}for(i=6;i>=0;i-=2){for(c=1;c<=25;c+=8)h<<=1,h|=e>>>c+i&1;for(c=1;c<=25;c+=8)h<<=1,h|=t>>>c+i&1}r[n+0]=o>>>0,r[n+1]=h>>>0},e.rip=function(t,e,r,n){for(var o=0,h=0,i=0;i<4;i++)for(var c=24;c>=0;c-=8)o<<=1,o|=e>>>c+i&1,o<<=1,o|=t>>>c+i&1;for(i=4;i<8;i++)for(c=24;c>=0;c-=8)h<<=1,h|=e>>>c+i&1,h<<=1,h|=t>>>c+i&1;r[n+0]=o>>>0,r[n+1]=h>>>0},e.pc1=function(t,e,r,n){for(var o=0,h=0,i=7;i>=5;i--){for(var c=0;c<=24;c+=8)o<<=1,o|=e>>c+i&1;for(c=0;c<=24;c+=8)o<<=1,o|=t>>c+i&1}for(c=0;c<=24;c+=8)o<<=1,o|=e>>c+i&1;for(i=1;i<=3;i++){for(c=0;c<=24;c+=8)h<<=1,h|=e>>c+i&1;for(c=0;c<=24;c+=8)h<<=1,h|=t>>c+i&1}for(c=0;c<=24;c+=8)h<<=1,h|=t>>c+i&1;r[n+0]=o>>>0,r[n+1]=h>>>0},e.r28shl=function(t,e){return t<<e&268435455|t>>>28-e};var n=[14,11,17,4,27,23,25,0,13,22,7,18,5,9,16,24,2,20,12,21,1,8,15,26,15,4,25,19,9,1,26,16,5,11,23,8,12,7,17,0,22,3,10,14,6,20,27,24];e.pc2=function(t,e,r,o){for(var h=0,c=0,f=n.length>>>1,i=0;i<f;i++)h<<=1,h|=t>>>n[i]&1;for(i=f;i<n.length;i++)c<<=1,c|=e>>>n[i]&1;r[o+0]=h>>>0,r[o+1]=c>>>0},e.expand=function(t,e,r){var n=0,o=0;n=(1&t)<<5|t>>>27;for(var i=23;i>=15;i-=4)n<<=6,n|=t>>>i&63;for(i=11;i>=3;i-=4)o|=t>>>i&63,o<<=6;o|=(31&t)<<1|t>>>31,e[r+0]=n>>>0,e[r+1]=o>>>0};var o=[14,0,4,15,13,7,1,4,2,14,15,2,11,13,8,1,3,10,10,6,6,12,12,11,5,9,9,5,0,3,7,8,4,15,1,12,14,8,8,2,13,4,6,9,2,1,11,7,15,5,12,11,9,3,7,14,3,10,10,0,5,6,0,13,15,3,1,13,8,4,14,7,6,15,11,2,3,8,4,14,9,12,7,0,2,1,13,10,12,6,0,9,5,11,10,5,0,13,14,8,7,10,11,1,10,3,4,15,13,4,1,2,5,11,8,6,12,7,6,12,9,0,3,5,2,14,15,9,10,13,0,7,9,0,14,9,6,3,3,4,15,6,5,10,1,2,13,8,12,5,7,14,11,12,4,11,2,15,8,1,13,1,6,10,4,13,9,0,8,6,15,9,3,8,0,7,11,4,1,15,2,14,12,3,5,11,10,5,14,2,7,12,7,13,13,8,14,11,3,5,0,6,6,15,9,0,10,3,1,4,2,7,8,2,5,12,11,1,12,10,4,14,15,9,10,3,6,15,9,0,0,6,12,10,11,1,7,13,13,8,15,9,1,4,3,5,14,11,5,12,2,7,8,2,4,14,2,14,12,11,4,2,1,12,7,4,10,7,11,13,6,1,8,5,5,0,3,15,15,10,13,3,0,9,14,8,9,6,4,11,2,8,1,12,11,7,10,1,13,14,7,2,8,13,15,6,9,15,12,0,5,9,6,10,3,4,0,5,14,3,12,10,1,15,10,4,15,2,9,7,2,12,6,9,8,5,0,6,13,1,3,13,4,14,14,0,7,11,5,3,11,8,9,4,14,3,15,2,5,12,2,9,8,5,12,15,3,10,7,11,0,14,4,1,10,7,1,6,13,0,11,8,6,13,4,13,11,0,2,11,14,7,15,4,0,9,8,1,13,10,3,14,12,3,9,5,7,12,5,2,10,15,6,8,1,6,1,6,4,11,11,13,13,8,12,1,3,4,7,10,14,7,10,9,15,5,6,0,8,15,0,14,5,2,9,3,2,12,13,1,2,15,8,13,4,8,6,10,15,3,11,7,1,4,10,12,9,5,3,6,14,11,5,0,0,14,12,9,7,2,7,2,11,1,4,14,1,7,9,4,12,10,14,8,2,13,0,15,6,12,10,9,13,0,15,3,3,5,5,6,8,11];e.substitute=function(t,e){for(var r=0,i=0;i<4;i++){r<<=4,r|=o[64*i+(t>>>18-6*i&63)]}for(i=0;i<4;i++){r<<=4,r|=o[256+64*i+(e>>>18-6*i&63)]}return r>>>0};var h=[16,25,12,11,3,20,4,15,31,17,9,6,27,14,1,22,30,24,8,18,0,5,29,23,13,19,2,26,10,21,28,7];e.permute=function(t){for(var e=0,i=0;i<h.length;i++)e<<=1,e|=t>>>h[i]&1;return e>>>0},e.padSplit=function(t,e,r){for(var n=t.toString(2);n.length<e;)n="0"+n;for(var o=[],i=0;i<e;i+=r)o.push(n.slice(i,i+r));return o.join(" ")}},function(t,e,r){"use strict";var n=r(40),o=r(6),h=r(255),c=r(163);function f(){this.tmp=new Array(2),this.keys=null}function l(t){c.call(this,t);var e=new f;this._desState=e,this.deriveKeys(e,t.key)}o(l,c),t.exports=l,l.create=function(t){return new l(t)};var d=[1,1,2,2,2,2,2,2,1,2,2,2,2,2,2,1];l.prototype.deriveKeys=function(t,e){t.keys=new Array(32),n.equal(e.length,this.blockSize,"Invalid key length");var r=h.readUInt32BE(e,0),o=h.readUInt32BE(e,4);h.pc1(r,o,t.tmp,0),r=t.tmp[0],o=t.tmp[1];for(var i=0;i<t.keys.length;i+=2){var c=d[i>>>1];r=h.r28shl(r,c),o=h.r28shl(o,c),h.pc2(r,o,t.keys,i)}},l.prototype._update=function(t,e,r,n){var o=this._desState,c=h.readUInt32BE(t,e),f=h.readUInt32BE(t,e+4);h.ip(c,f,o.tmp,0),c=o.tmp[0],f=o.tmp[1],"encrypt"===this.type?this._encrypt
vendor: 6,186 bytes, line 11
11(o,c,f,o.tmp,0):this._decrypt(o,c,f,o.tmp,0),c=o.tmp[0],f=o.tmp[1],h.writeUInt32BE(r,c,n),h.writeUInt32BE(r,f,n+4)},l.prototype._pad=function(t,e){for(var r=t.length-e,i=e;i<t.length;i++)t[i]=r;return!0},l.prototype._unpad=function(t){for(var e=t[t.length-1],i=t.length-e;i<t.length;i++)n.equal(t[i],e);return t.slice(0,t.length-e)},l.prototype._encrypt=function(t,e,r,n,o){for(var c=e,f=r,i=0;i<t.keys.length;i+=2){var l=t.keys[i],d=t.keys[i+1];h.expand(f,t.tmp,0),l^=t.tmp[0],d^=t.tmp[1];var s=h.substitute(l,d),m=f;f=(c^h.permute(s))>>>0,c=m}h.rip(f,c,n,o)},l.prototype._decrypt=function(t,e,r,n,o){for(var c=r,f=e,i=t.keys.length-2;i>=0;i-=2){var l=t.keys[i],d=t.keys[i+1];h.expand(c,t.tmp,0),l^=t.tmp[0],d^=t.tmp[1];var s=h.substitute(l,d),m=c;c=(f^h.permute(s))>>>0,f=m}h.rip(c,f,n,o)}},function(t,e,r){var n=r(95),o=r(7).Buffer,h=r(258);function c(t){var e=t._cipher.encryptBlockRaw(t._prev);return h(t._prev),e}e.encrypt=function(t,e){var r=Math.ceil(e.length/16),h=t._cache.length;t._cache=o.concat([t._cache,o.allocUnsafe(16*r)]);for(var i=0;i<r;i++){var f=c(t),l=h+16*i;t._cache.writeUInt32BE(f[0],l+0),t._cache.writeUInt32BE(f[1],l+4),t._cache.writeUInt32BE(f[2],l+8),t._cache.writeUInt32BE(f[3],l+12)}var d=t._cache.slice(0,e.length);return t._cache=t._cache.slice(e.length),n(e,d)}},function(t,e){t.exports=function(t){for(var e,r=t.length;r--;){if(255!==(e=t.readUInt8(r))){e++,t.writeUInt8(e,r);break}t.writeUInt8(0,r)}}},function(t){t.exports=JSON.parse('{"aes-128-ecb":{"cipher":"AES","key":128,"iv":0,"mode":"ECB","type":"block"},"aes-192-ecb":{"cipher":"AES","key":192,"iv":0,"mode":"ECB","type":"block"},"aes-256-ecb":{"cipher":"AES","key":256,"iv":0,"mode":"ECB","type":"block"},"aes-128-cbc":{"cipher":"AES","key":128,"iv":16,"mode":"CBC","type":"block"},"aes-192-cbc":{"cipher":"AES","key":192,"iv":16,"mode":"CBC","type":"block"},"aes-256-cbc":{"cipher":"AES","key":256,"iv":16,"mode":"CBC","type":"block"},"aes128":{"cipher":"AES","key":128,"iv":16,"mode":"CBC","type":"block"},"aes192":{"cipher":"AES","key":192,"iv":16,"mode":"CBC","type":"block"},"aes256":{"cipher":"AES","key":256,"iv":16,"mode":"CBC","type":"block"},"aes-128-cfb":{"cipher":"AES","key":128,"iv":16,"mode":"CFB","type":"stream"},"aes-192-cfb":{"cipher":"AES","key":192,"iv":16,"mode":"CFB","type":"stream"},"aes-256-cfb":{"cipher":"AES","key":256,"iv":16,"mode":"CFB","type":"stream"},"aes-128-cfb8":{"cipher":"AES","key":128,"iv":16,"mode":"CFB8","type":"stream"},"aes-192-cfb8":{"cipher":"AES","key":192,"iv":16,"mode":"CFB8","type":"stream"},"aes-256-cfb8":{"cipher":"AES","key":256,"iv":16,"mode":"CFB8","type":"stream"},"aes-128-cfb1":{"cipher":"AES","key":128,"iv":16,"mode":"CFB1","type":"stream"},"aes-192-cfb1":{"cipher":"AES","key":192,"iv":16,"mode":"CFB1","type":"stream"},"aes-256-cfb1":{"cipher":"AES","key":256,"iv":16,"mode":"CFB1","type":"stream"},"aes-128-ofb":{"cipher":"AES","key":128,"iv":16,"mode":"OFB","type":"stream"},"aes-192-ofb":{"cipher":"AES","key":192,"iv":16,"mode":"OFB","type":"stream"},"aes-256-ofb":{"cipher":"AES","key":256,"iv":16,"mode":"OFB","type":"stream"},"aes-128-ctr":{"cipher":"AES","key":128,"iv":16,"mode":"CTR","type":"stream"},"aes-192-ctr":{"cipher":"AES","key":192,"iv":16,"mode":"CTR","type":"stream"},"aes-256-ctr":{"cipher":"AES","key":256,"iv":16,"mode":"CTR","type":"stream"},"aes-128-gcm":{"cipher":"AES","key":128,"iv":12,"mode":"GCM","type":"auth"},"aes-192-gcm":{"cipher":"AES","key":192,"iv":12,"mode":"GCM","type":"auth"},"aes-256-gcm":{"cipher":"AES","key":256,"iv":12,"mode":"GCM","type":"auth"}}')},function(t,e,r){var n=r(124),o=r(7).Buffer,h=r(56),c=r(6),f=r(440),l=r(95),d=r(258);function m(t,e,r,c){h.call(this);var l=o.alloc(4,0);this._cipher=new n.AES(e);var m=this._cipher.encryptBlock(l);this._ghash=new f(m),r=function(t,e,r){if(12===e.length)return t._finID=o.concat([e,o.from([0,0,0,1])]),o.concat([e,o.from([0,0,0,2])]);var n=new f(r),h=e.length,c=h%16;n.update(e),c&&(c=16-c,n.update(o.alloc(c,0))),n.update(o.alloc(8,0));var l=8*h,m=o.alloc(8);m.writeUIntBE(l,0,8),n.update(m),t._finID=n.state;var v=o.from(t._finID);return d(v),v}(this,r,m),this._prev=o.from(r),this._cache=o.allocUnsafe(0),this._secCache=o.allocUnsafe(0),this._decrypt=c,this._alen=0,this._len=0,this._mode=t,this._authTag=null,this._called=!1}c(m,h),m.prototype._update=function(t){if(!this._called&&this._alen){var e=16-this._alen%16;e<16&&(e=o.alloc(e,0),this._ghash.update(e))}this._called=!0;var r=this._mode.encrypt(this,t);return this._decrypt?this._ghash.update(t):this._ghash.update(r),this._len+=t.length,r},m.prototype._final=function(){if(this._decrypt&&!this._authTag)throw new Error("Unsupported state or unable to authenticate data");var t=l(this._ghash.final(8*this._alen,8*this._len),this._cipher.encryptBlock(this._finID));if(this._decrypt&&function(a,b){var t=0;a.length!==b.length&&t++;for(var e=Math.min(a.length,b.length),i=0;i<e;++i)t+=a[i]^b[i];return t}(t,this._authTag))throw new Error("Unsupported state or unable to authenticate data");this._authTag=t,this._cipher.scrub()},m.prototype.getAuthTag=function(){if(this._decrypt||!o.isBuffer(this._authTag))throw new Error("Attempting to get auth tag in unsupported state");return this._authTag},m.prototype.setAuthTag=function(t){if(!this._decrypt)throw new Error("Attempting to set auth tag in unsupported state");this._authTag=t},m.prototype.setAAD=function(t){if(this._called)throw new Error("Attempting to set AAD in unsupported state");this._ghash.update(t),this._alen+=t.length},t.exports=m},function(t,e,r){var n=r(124),o=r(7).Buffer,h=r(56);function c(t,e,r,c){h.call(this),this._cipher=new n.AES(e),this._prev=o.from(r),this._cache=o.allocUnsafe(0),this._secCache=o.allocUnsafe(0),this._decrypt=c,this._mode=t}r(6)(c,h),c.prototype._update=function(t){return this._mode.encrypt(this,t,this._decrypt)},c.prototype._final=function(){this._cipher.scrub()},t.exports=c},function(t,e,r){var n=r(69);t.exports=x,x.simpleSieve=S,x.fermatTest=A;var o=r(263),h=new o(24),c=new(r(264)),f=new o(1),l=new o(2),d=new o(5),m=(new o(16),new o(8),new o(10)),v=new o(3),y=(new o(7),new o(11)),w=new o(4),M=(new o(12),null);function _(){if(null!==M)return M;var t=[];t[0]=2;
vendor: 1,075 bytes, line 11
11for(var i=1,e=3;e<1048576;e+=2){for(var r=Math.ceil(Math.sqrt(e)),n=0;n<i&&t[n]<=r&&e%t[n]!=0;n++);i!==n&&t[n]<=r||(t[i++]=e)}return M=t,t}function S(p){for(var t=_(),i=0;i<t.length;i++)if(0===p.modn(t[i]))return 0===p.cmpn(t[i]);return!0}function A(p){var t=o.mont(p);return 0===l.toRed(t).redPow(p.subn(1)).fromRed().cmpn(1)}function x(t,e){if(t<16)return new o(2===e||5===e?[140,123]:[140,39]);var r,M;for(e=new o(e);;){for(r=new o(n(Math.ceil(t/8)));r.bitLength()>t;)r.ishrn(1);if(r.isEven()&&r.iadd(f),r.testn(1)||r.iadd(l),e.cmp(l)){if(!e.cmp(d))for(;r.mod(m).cmp(v);)r.iadd(w)}else for(;r.mod(h).cmp(y);)r.iadd(w);if(S(M=r.shrn(1))&&S(r)&&A(M)&&A(r)&&c.test(M)&&c.test(r))return r}}},function(t,e,r){(function(t){!function(t,e){"use strict";function n(t,e){if(!t)throw new Error(e||"Assertion failed")}function o(t,e){t.super_=e;var r=function(){};r.prototype=e.prototype,t.prototype=new r,t.prototype.constructor=t}function h(t,base,e){if(h.isBN(t))return t;this.negative=0,this.words=null,this.length=0,this.red=null,null!==t&&("le"!==base&&"be"!==base||(e=base,base
vendor: 4,177 bytes, line 11
11=10),this._init(t||0,base||10,e||"be"))}var c;"object"==typeof t?t.exports=h:e.BN=h,h.BN=h,h.wordSize=26;try{c=r(444).Buffer}catch(t){}function f(t,e,r){for(var n=0,o=Math.min(t.length,r),i=e;i<o;i++){var h=t.charCodeAt(i)-48;n<<=4,n|=h>=49&&h<=54?h-49+10:h>=17&&h<=22?h-17+10:15&h}return n}function l(t,e,r,n){for(var o=0,h=Math.min(t.length,r),i=e;i<h;i++){var c=t.charCodeAt(i)-48;o*=n,o+=c>=49?c-49+10:c>=17?c-17+10:c}return o}h.isBN=function(t){return t instanceof h||null!==t&&"object"==typeof t&&t.constructor.wordSize===h.wordSize&&Array.isArray(t.words)},h.max=function(t,e){return t.cmp(e)>0?t:e},h.min=function(t,e){return t.cmp(e)<0?t:e},h.prototype._init=function(t,base,e){if("number"==typeof t)return this._initNumber(t,base,e);if("object"==typeof t)return this._initArray(t,base,e);"hex"===base&&(base=16),n(base===(0|base)&&base>=2&&base<=36);var r=0;"-"===(t=t.toString().replace(/\s+/g,""))[0]&&r++,16===base?this._parseHex(t,r):this._parseBase(t,base,r),"-"===t[0]&&(this.negative=1),this.strip(),"le"===e&&this._initArray(this.toArray(),base,e)},h.prototype._initNumber=function(t,base,e){t<0&&(this.negative=1,t=-t),t<67108864?(this.words=[67108863&t],this.length=1):t<4503599627370496?(this.words=[67108863&t,t/67108864&67108863],this.length=2):(n(t<9007199254740992),this.words=[67108863&t,t/67108864&67108863,1],this.length=3),"le"===e&&this._initArray(this.toArray(),base,e)},h.prototype._initArray=function(t,base,e){if(n("number"==typeof t.length),t.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(t.length/3),this.words=new Array(this.length);for(var i=0;i<this.length;i++)this.words[i]=0;var r,o,h=0;if("be"===e)for(i=t.length-1,r=0;i>=0;i-=3)o=t[i]|t[i-1]<<8|t[i-2]<<16,this.words[r]|=o<<h&67108863,this.words[r+1]=o>>>26-h&67108863,(h+=24)>=26&&(h-=26,r++);else if("le"===e)for(i=0,r=0;i<t.length;i+=3)o=t[i]|t[i+1]<<8|t[i+2]<<16,this.words[r]|=o<<h&67108863,this.words[r+1]=o>>>26-h&67108863,(h+=24)>=26&&(h-=26,r++);return this.strip()},h.prototype._parseHex=function(t,e){this.length=Math.ceil((t.length-e)/6),this.words=new Array(this.length);for(var i=0;i<this.length;i++)this.words[i]=0;var r,n,o=0;for(i=t.length-6,r=0;i>=e;i-=6)n=f(t,i,i+6),this.words[r]|=n<<o&67108863,this.words[r+1]|=n>>>26-o&4194303,(o+=24)>=26&&(o-=26,r++);i+6!==e&&(n=f(t,e,i+6),this.words[r]|=n<<o&67108863,this.words[r+1]|=n>>>26-o&4194303),this.strip()},h.prototype._parseBase=function(t,base,e){this.words=[0],this.length=1;for(var r=0,n=1;n<=67108863;n*=base)r++;r--,n=n/base|0;for(var o=t.length-e,h=o%r,c=Math.min(o,o-h)+e,f=0,i=e;i<c;i+=r)f=l(t,i,i+r,base),this.imuln(n),this.words[0]+f<67108864?this.words[0]+=f:this._iaddn(f);if(0!==h){var d=1;for(f=l(t,i,t.length,base),i=0;i<h;i++)d*=base;this.imuln(d),this.words[0]+f<67108864?this.words[0]+=f:this._iaddn(f)}},h.prototype.copy=function(t){t.words=new Array(this.length);for(var i=0;i<this.length;i++)t.words[i]=this.words[i];t.length=this.length,t.negative=this.negative,t.red=this.red},h.prototype.clone=function(){var t=new h(null);return this.copy(t),t},h.prototype._expand=function(t){for(;this.length<t;)this.words[this.length++]=0;return this},h.prototype.strip=function(){for(;this.length>1&&0===this.words[this.length-1];)this.length--;return this._normSign()},h.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},h.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};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"],m=[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],v=[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,143489
vendor: 34,272 bytes, line 11
1107,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function y(t,e,r){r.negative=e.negative^t.negative;var n=t.length+e.length|0;r.length=n,n=n-1|0;var a=0|t.words[0],b=0|e.words[0],o=a*b,h=67108863&o,c=o/67108864|0;r.words[0]=h;for(var f=1;f<n;f++){for(var l=c>>>26,d=67108863&c,m=Math.min(f,e.length-1),v=Math.max(0,f-t.length+1);v<=m;v++){var i=f-v|0;l+=(o=(a=0|t.words[i])*(b=0|e.words[v])+d)/67108864|0,d=67108863&o}r.words[f]=0|d,c=0|l}return 0!==c?r.words[f]=0|c:r.length--,r.strip()}h.prototype.toString=function(base,t){var e;if(t=0|t||1,16===(base=base||10)||"hex"===base){e="";for(var r=0,o=0,i=0;i<this.length;i++){var h=this.words[i],c=(16777215&(h<<r|o)).toString(16);e=0!==(o=h>>>24-r&16777215)||i!==this.length-1?d[6-c.length]+c+e:c+e,(r+=2)>=26&&(r-=26,i--)}for(0!==o&&(e=o.toString(16)+e);e.length%t!=0;)e="0"+e;return 0!==this.negative&&(e="-"+e),e}if(base===(0|base)&&base>=2&&base<=36){var f=m[base],l=v[base];e="";var y=this.clone();for(y.negative=0;!y.isZero();){var w=y.modn(l).toString(base);e=(y=y.idivn(l)).isZero()?w+e:d[f-w.length]+w+e}for(this.isZero()&&(e="0"+e);e.length%t!=0;)e="0"+e;return 0!==this.negative&&(e="-"+e),e}n(!1,"Base should be between 2 and 36")},h.prototype.toNumber=function(){var t=this.words[0];return 2===this.length?t+=67108864*this.words[1]:3===this.length&&1===this.words[2]?t+=4503599627370496+67108864*this.words[1]:this.length>2&&n(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-t:t},h.prototype.toJSON=function(){return this.toString(16)},h.prototype.toBuffer=function(t,e){return n(void 0!==c),this.toArrayLike(c,t,e)},h.prototype.toArray=function(t,e){return this.toArrayLike(Array,t,e)},h.prototype.toArrayLike=function(t,e,r){var o=this.byteLength(),h=r||Math.max(1,o);n(o<=h,"byte array longer than desired length"),n(h>0,"Requested array length <= 0"),this.strip();var b,i,c="le"===e,f=new t(h),q=this.clone();if(c){for(i=0;!q.isZero();i++)b=q.andln(255),q.iushrn(8),f[i]=b;for(;i<h;i++)f[i]=0}else{for(i=0;i<h-o;i++)f[i]=0;for(i=0;!q.isZero();i++)b=q.andln(255),q.iushrn(8),f[h-i-1]=b}return f},Math.clz32?h.prototype._countBits=function(t){return 32-Math.clz32(t)}:h.prototype._countBits=function(t){var e=t,r=0;return e>=4096&&(r+=13,e>>>=13),e>=64&&(r+=7,e>>>=7),e>=8&&(r+=4,e>>>=4),e>=2&&(r+=2,e>>>=2),r+e},h.prototype._zeroBits=function(t){if(0===t)return 26;var e=t,r=0;return 0==(8191&e)&&(r+=13,e>>>=13),0==(127&e)&&(r+=7,e>>>=7),0==(15&e)&&(r+=4,e>>>=4),0==(3&e)&&(r+=2,e>>>=2),0==(1&e)&&r++,r},h.prototype.bitLength=function(){var t=this.words[this.length-1],e=this._countBits(t);return 26*(this.length-1)+e},h.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,i=0;i<this.length;i++){var b=this._zeroBits(this.words[i]);if(t+=b,26!==b)break}return t},h.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},h.prototype.toTwos=function(t){return 0!==this.negative?this.abs().inotn(t).iaddn(1):this.clone()},h.prototype.fromTwos=function(t){return this.testn(t-1)?this.notn(t).iaddn(1).ineg():this.clone()},h.prototype.isNeg=function(){return 0!==this.negative},h.prototype.neg=function(){return this.clone().ineg()},h.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},h.prototype.iuor=function(t){for(;this.length<t.length;)this.words[this.length++]=0;for(var i=0;i<t.length;i++)this.words[i]=this.words[i]|t.words[i];return this.strip()},h.prototype.ior=function(t){return n(0==(this.negative|t.negative)),this.iuor(t)},h.prototype.or=function(t){return this.length>t.length?this.clone().ior(t):t.clone().ior(this)},h.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},h.prototype.iuand=function(t){var b;b=this.length>t.length?t:this;for(var i=0;i<b.length;i++)this.words[i]=this.words[i]&t.words[i];return this.length=b.length,this.strip()},h.prototype.iand=function(t){return n(0==(this.negative|t.negative)),this.iuand(t)},h.prototype.and=function(t){return this.length>t.length?this.clone().iand(t):t.clone().iand(this)},h.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},h.prototype.iuxor=function(t){var a,b;this.length>t.length?(a=this,b=t):(a=t,b=this);for(var i=0;i<b.length;i++)this.words[i]=a.words[i]^b.words[i];if(this!==a)for(;i<a.length;i++)this.words[i]=a.words[i];return this.length=a.length,this.strip()},h.prototype.ixor=function(t){return n(0==(this.negative|t.negative)),this.iuxor(t)},h.prototype.xor=function(t){return this.length>t.length?this.clone().ixor(t):t.clone().ixor(this)},h.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},h.prototype.inotn=function(t){n("number"==typeof t&&t>=0);var e=0|Math.ceil(t/26),r=t%26;this._expand(e),r>0&&e--;for(var i=0;i<e;i++)this.words[i]=67108863&~this.words[i];return r>0&&(this.words[i]=~this.words[i]&67108863>>26-r),this.strip()},h.prototype.notn=function(t){return this.clone().inotn(t)},h.prototype.setn=function(t,e){n("number"==typeof t&&t>=0);var r=t/26|0,o=t%26;return this._expand(r+1),this.words[r]=e?this.words[r]|1<<o:this.words[r]&~(1<<o),this.strip()},h.prototype.iadd=function(t){var e,a,b;if(0!==this.negative&&0===t.negative)return this.negative=0,e=this.isub(t),this.negative^=1,this._normSign();if(0===this.negative&&0!==t.negative)return t.negative=0,e=this.isub(t),t.negative=1,e._normSign();this.length>t.length?(a=this,b=t):(a=t,b=this);for(var r=0,i=0;i<b.length;i++)e=(0|a.words[i])+(0|b.words[i])+r,this.words[i]=67108863&e,r=e>>>26;for(;0!==r&&i<a.length;i++)e=(0|a.words[i])+r,this.words[i]=67108863&e,r=e>>>26;if(this.length=a.length,0!==r)this.words[this.length]=r,this.length++;else if(a!==this)for(;i<a.length;i++)this.words[i]=a.words[i];return this},h.prototype.add=function(t){var e;return 0!==t.negative&&0===this.negative?(t.negative=0,e=this.sub(t),t.negative^=1,e):0===t.negative&&0!==this.negative?(this.negative=0,e=t.sub(this),this.negative=1,e):this.length>t.length?this.clone().iadd(t):t.clone().iadd(this)},h.prototype.isub=function(t){if(0!==t.negative){t.negative=0;var e=this.iadd(t);return t.negative=1,e._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(t),this.negative=1,this._normSign();var a,b,r=this.cmp(t);if(0===r)return this.negative=0,this.length=1,this.words[0]=0,this;r>0?(a=this,b=t):(a=t,b=this);for(var n=0,i=0;i<b.length;i++)n=(e=(0|a.words[i])-(0|b.words[i])+n)>>26,this.words[i]=67108863&e;for(;0!==n&&i<a.length;i++)n=(e=(0|a.words[i])+n)>>26,this.words[i]=67108863&e;if(0===n&&i<a.length&&a!==this)for(;i<a.length;i++)this.words[i]=a.words[i];return this.length=Math.max(this.length,i),a!==this&&(this.negative=1),this.strip()},h.prototype.sub=function(t){return this.clone().isub(t)};var w=function(t,e,r){var n,o,h,a=t.words,b=e.words,c=r.words,f=0,l=0|a[0],d=8191&l,m=l>>>13,v=0|a[1],y=8191&v,w=v>>>13,M=0|a[2],_=8191&M,S=M>>>13,A=0|a[3],x=8191&A,k=A>>>13,E=0|a[4],C=8191&E,R=E>>>13,I=0|a[5],P=8191&I,T=I>>>13,O=0|a[6],j=8191&O,U=O>>>13,B=0|a[7],D=8191&B,F=B>>>13,L=0|a[8],N=8191&L,H=L>>>13,z=0|a[9],V=8191&z,K=z>>>13,Z=0|b[0],W=8191&Z,G=Z>>>13,J=0|b[1],Y=8191&J,Q=J>>>13,X=0|b[2],$=8191&X,tt=X>>>13,et=0|b[3],it=8191&et,nt=et>>>13,ot=0|b[4],st=8191&ot,at=ot>>>13,ut=0|b[5],ht=8191&ut,ct=ut>>>13,ft=0|b[6],lt=8191&ft,pt=ft>>>13,mt=0|b[7],gt=8191&mt,vt=mt>>>13,yt=0|b[8],bt=8191&yt,wt=yt>>>13,Mt=0|b[9],_t=8191&Mt,St=Mt>>>13;r.negative=t.negative^e.negative,r.length=19;var At=(f+(n=Math.imul(d,W))|0)+((8191&(o=(o=Math.imul(d,G))+Math.imul(m,W)|0))<<13)|0;f=((h=Math.imul(m,G))+(o>>>13)|0)+(At>>>26)|0,At&=67108863,n=Math.imul(y,W),o=(o=Math.imul(y,G))+Math.imul(w,W)|0,h=Math.imul(w,G);var xt=(f+(n=n+Math.imul(d,Y)|0)|0)+((8191&(o=(o=o+Math.imul(d,Q)|0)+Math.imul(m,Y)|0))<<13)|0;f=((h=h+Math.imul(m,Q)|0)+(o>>>13)|0)+(xt>>>26)|0,xt&=67108863,n=Math.imul(_,W),o=(o=Math.imul(_,G))+Math.imul(S,W)|0,h=Math.imul(S,G),n=n+Math.imul(y,Y)|0,o=(o=o+Math.imul(y,Q)|0)+Math.imul(w,Y)|0,h=h+Math.imul(w,Q)|0;var kt=(f+(n=n+Math.imul(d,$)|0)|0)+((8191&(o=(o=o+Math.imul(d,tt)|0)+Math.imul(m,$)|0))<<13)|0;f=((h=h+Math.imul(m,tt)|0)+(o>>>13)|0)+(kt>>>26)|0,kt&=67108863,n=Math.imul(x,W),o=(o=Math.imul(x,G))+Math.imul(k,W)|0,h=Math.imul(k,G),n=n+Math.imul(_,Y)|0,o=(o=o+Math.imul(_,Q)|0)+Math.imul(S,Y)|0,h=h+Math.imul(S,Q)|0,n=n+Math.imul(y,$)|0,o=(o=o+Math.imul(y,tt)|0)+Math.imul(w,$)|0,h=h+Math.imul(w,tt)|0;var Et=(f+(n=n+Math.imul(d,it)|0)|0)+((8191&(o=(o=o+Math.imul(d,nt)|0)+Math.imul(m,it)|0))<<13)|0;f=((h=h+Math.imul(m,nt)|0)+(o>>>13)|0)+(Et>>>26)|0,Et&=67108863,n=Math.imul(C,W),o=(o=Math.imul(C,G))+Math.imul(R,W)|0,h=Math.imul(R,G),n=n+Math.imul(x,Y)|0,o=(o=o+Math.imul(x,Q)|0)+Math.imul(k,Y)|0,h=h+Math.imul(k,Q)|0,n=n+Math.imul(_,$)|0,o=(o=o+Math.imul(_,tt)|0)+Math.imul(S,$)|0,h=h+Math.imul(S,tt)|0,n=n+Math.imul(y,it)|0,o=(o=o+Math.imul(y,nt)|0)+Math.imul(w,it)|0,h=h+Math.imul(w,nt)|0;var Ct=(f+(n=n+Math.imul(d,st)|0)|0)+((8191&(o=(o=o+Math.imul(d,at)|0)+Math.imul(m,st)|0))<<13)|0;f=((h=h+Math.imul(m,at)|0)+(o>>>13)|0)+(Ct>>>26)|0,Ct&=67108863,n=Math.imul(P,W),o=(o=Math.imul(P,G))+Math.imul(T,W)|0,h=Math.imul(T,G),n=n+Math.imul(C,Y)|0,o=(o=o+Math.imul(C,Q)|0)+Math.imul(R,Y)|0,h=h+Math.imul(R,Q)|0,n=n+Math.imul(x,$)|0,o=(o=o+Math.imul(x,tt)|0)+Math.imul(k,$)|0,h=h+Math.imul(k,tt)|0,n=n+Math.imul(_,it)|0,o=(o=o+Math.imul(_,nt)|0)+Math.imul(S,it)|0,h=h+Math.imul(S,nt)|0,n=n+Math.imul(y,st)|0,o=(o=o+Math.imul(y,at)|0)+Math.imul(w,st)|0,h=h+Math.imul(w,at)|0;var Rt=(f+(n=n+Math.imul(d,ht)|0)|0)+((8191&(o=(o=o+Math.imul(d,ct)|0)+Math.imul(m,ht)|0))<<13)|0;f=((h=h+Math.imul(m,ct)|0)+(o>>>13)|0)+(Rt>>>26)|0,Rt&=67108863,n=Math.imul(j,W),o=(o=Math.imul(j,G))+Math.imul(U,W)|0,h=Math.imul(U,G),n=n+Math.imul(P,Y)|0,o=(o=o+Math.imul(P,Q)|0)+Math.imul(T,Y)|0,h=h+Math.imul(T,Q)|0,n=n+Math.imul(C,$)|0,o=(o=o+Math.imul(C,tt)|0)+Math.imul(R,$)|0,h=h+Math.imul(R,tt)|0,n=n+Math.imul(x,it)|0,o=(o=o+Math.imul(x,nt)|0)+Math.imul(k,it)|0,h=h+Math.imul(k,nt)|0,n=n+Math.imul(_,st)|0,o=(o=o+Math.imul(_,at)|0)+Math.imul(S,st)|0,h=h+Math.imul(S,at)|0,n=n+Math.imul(y,ht)|0,o=(o=o+Math.imul(y,ct)|0)+Math.imul(w,ht)|0,h=h+Math.imul(w,ct)|0;var It=(f+(n=n+Math.imul(d,lt)|0)|0)+((8191&(o=(o=o+Math.imul(d,pt)|0)+Math.imul(m,lt)|0))<<13)|0;f=((h=h+Math.imul(m,pt)|0)+(o>>>13)|0)+(It>>>26)|0,It&=67108863,n=Math.imul(D,W),o=(o=Math.imul(D,G))+Math.imul(F,W)|0,h=Math.imul(F,G),n=n+Math.imul(j,Y)|0,o=(o=o+Math.imul(j,Q)|0)+Math.imul(U,Y)|0,h=h+Math.imul(U,Q)|0,n=n+Math.imul(P,$)|0,o=(o=o+Math.imul(P,tt)|0)+Math.imul(T,$)|0,h=h+Math.imul(T,tt)|0,n=n+Math.imul(C,it)|0,o=(o=o+Math.imul(C,nt)|0)+Math.imul(R,it)|0,h=h+Math.imul(R,nt)|0,n=n+Math.imul(x,st)|0,o=(o=o+Math.imul(x,at)|0)+Math.imul(k,st)|0,h=h+Math.imul(k,at)|0,n=n+Math.imul(_,ht)|0,o=(o=o+Math.imul(_,ct)|0)+Math.imul(S,ht)|0,h=h+Math.imul(S,ct)|0,n=n+Math.imul(y,lt)|0,o=(o=o+Math.imul(y,pt)|0)+Math.imul(w,lt)|0,h=h+Math.imul(w,pt)|0;var Pt=(f+(n=n+Math.imul(d,gt)|0)|0)+((8191&(o=(o=o+Math.imul(d,vt)|0)+Math.imul(m,gt)|0))<<13)|0;f=((h=h+Math.imul(m,vt)|0)+(o>>>13)|0)+(Pt>>>26)|0,Pt&=67108863,n=Math.imul(N,W),o=(o=Math.imul(N,G))+Math.imul(H,W)|0,h=Math.imul(H,G),n=n+Math.imul(D,Y)|0,o=(o=o+Math.imul(D,Q)|0)+Math.imul(F,Y)|0,h=h+Math.imul(F,Q)|0,n=n+Math.imul(j,$)|0,o=(o=o+Math.imul(j,tt)|0)+Math.imul(U,$)|0,h=h+Math.imul(U,tt)|0,n=n+Math.imul(P,it)|0,o=(o=o+Math.imul(P,nt)|0)+Math.imul(T,it)|0,h=h+Math.imul(T,nt)|0,n=n+Math.imul(C,st)|0,o=(o=o+Math.imul(C,at)|0)+Math.imul(R,st)|0,h=h+Math.imul(R,at)|0,n=n+Math.imul(x,ht)|0,o=(o=o+Math.imul(x,ct)|0)+Math.imul(k,ht)|0,h=h+Math.imul(k,ct)|0,n=n+Math.imul(_,lt)|0,o=(o=o+Math.imul(_,pt)|0)+Math.imul(S,lt)|0,h=h+Math.imul(S,pt)|0,n=n+Math.imul(y,gt)|0,o=(o=o+Math.imul(y,vt)|0)+Math.imul(w,gt)|0,h=h+Math.imul(w,vt)|0;var Tt=(f+(n=n+Math.imul(d,bt)|0)|0)+((8191&(o=(o=o+Math.imul(d,wt)|0)+Math.imul(m,bt)|0))<<13)|0;f=((h=h+Math.imul(m,wt)|0)+(o>>>13)|0)+(Tt>>>26)|0,Tt&=67108863,n=Math.imul(V,W),o=(o=Math.imul(V,G))+Math.imul(K,W)|0,h=Math.imul(K,G),n=n+Math.imul(N,Y)|0,o=(o=o+Math.imul(N,Q)|0)+Math.imul(H,Y)|0,h=h+Math.imul(H,Q)|0,n=n+Math.imul(D,$)|0,o=(o=o+Math.imul(D,tt)|0)+Math.imul(F,$)|0,h=h+Math.imul(F,tt)|0,n=n+Math.imul(j,it)|0,o=(o=o+Math.imul(j,nt)|0)+Math.imul(U,it)|0,h=h+Math.imul(U,nt)|0,n=n+Math.imul(P,st)|0,o=(o=o+Math.imul(P,at)|0)+Math.imul(T,st)|0,h=h+Math.imul(T,at)|0,n=n+Math.imul(C,ht)|0,o=(o=o+Math.imul(C,ct)|0)+Math.imul(R,ht)|0,h=h+Math.imul(R,ct)|0,n=n+Math.imul(x,lt)|0,o=(o=o+Math.imul(x,pt)|0)+Math.imul(k,lt)|0,h=h+Math.imul(k,pt)|0,n=n+Math.imul(_,gt)|0,o=(o=o+Math.imul(_,vt)|0)+Math.imul(S,gt)|0,h=h+Math.imul(S,vt)|0,n=n+Math.imul(y,bt)|0,o=(o=o+Math.imul(y,wt)|0)+Math.imul(w,bt)|0,h=h+Math.imul(w,wt)|0;var Ot=(f+(n=n+Math.imul(d,_t)|0)|0)+((8191&(o=(o=o+Math.imul(d,St)|0)+Math.imul(m,_t)|0))<<13)|0;f=((h=h+Math.imul(m,St)|0)+(o>>>13)|0)+(Ot>>>26)|0,Ot&=67108863,n=Math.imul(V,Y),o=(o=Math.imul(V,Q))+Math.imul(K,Y)|0,h=Math.imul(K,Q),n=n+Math.imul(N,$)|0,o=(o=o+Math.imul(N,tt)|0)+Math.imul(H,$)|0,h=h+Math.imul(H,tt)|0,n=n+Math.imul(D,it)|0,o=(o=o+Math.imul(D,nt)|0)+Math.imul(F,it)|0,h=h+Math.imul(F,nt)|0,n=n+Math.imul(j,st)|0,o=(o=o+Math.imul(j,at)|0)+Math.imul(U,st)|0,h=h+Math.imul(U,at)|0,n=n+Math.imul(P,ht)|0,o=(o=o+Math.imul(P,ct)|0)+Math.imul(T,ht)|0,h=h+Math.imul(T,ct)|0,n=n+Math.imul(C,lt)|0,o=(o=o+Math.imul(C,pt)|0)+Math.imul(R,lt)|0,h=h+Math.imul(R,pt)|0,n=n+Math.imul(x,gt)|0,o=(o=o+Math.imul(x,vt)|0)+Math.imul(k,gt)|0,h=h+Math.imul(k,vt)|0,n=n+Math.imul(_,bt)|0,o=(o=o+Math.imul(_,wt)|0)+Math.imul(S,bt)|0,h=h+Math.imul(S,wt)|0;var jt=(f+(n=n+Math.imul(y,_t)|0)|0)+((8191&(o=(o=o+Math.imul(y,St)|0)+Math.imul(w,_t)|0))<<13)|0;f=((h=h+Math.imul(w,St)|0)+(o>>>13)|0)+(jt>>>26)|0,jt&=67108863,n=Math.imul(V,$),o=(o=Math.imul(V,tt))+Math.imul(K,$)|0,h=Math.imul(K,tt),n=n+Math.imul(N,it)|0,o=(o=o+Math.imul(N,nt)|0)+Math.imul(H,it)|0,h=h+Math.imul(H,nt)|0,n=n+Math.imul(D,st)|0,o=(o=o+Math.imul(D,at)|0)+Math.imul(F,st)|0,h=h+Math.imul(F,at)|0,n=n+Math.imul(j,ht)|0,o=(o=o+Math.imul(j,ct)|0)+Math.imul(U,ht)|0,h=h+Math.imul(U,ct)|0,n=n+Math.imul(P,lt)|0,o=(o=o+Math.imul(P,pt)|0)+Math.imul(T,lt)|0,h=h+Math.imul(T,pt)|0,n=n+Math.imul(C,gt)|0,o=(o=o+Math.imul(C,vt)|0)+Math.imul(R,gt)|0,h=h+Math.imul(R,vt)|0,n=n+Math.imul(x,bt)|0,o=(o=o+Math.imul(x,wt)|0)+Math.imul(k,bt)|0,h=h+Math.imul(k,wt)|0;var Ut=(f+(n=n+Math.imul(_,_t)|0)|0)+((8191&(o=(o=o+Math.imul(_,St)|0)+Math.imul(S,_t)|0))<<13)|0;f=((h=h+Math.imul(S,St)|0)+(o>>>13)|0)+(Ut>>>26)|0,Ut&=67108863,n=Math.imul(V,it),o=(o=Math.imul(V,nt))+Math.imul(K,it)|0,h=Math.imul(K,nt),n=n+Math.imul(N,st)|0,o=(o=o+Math.imul(N,at)|0)+Math.imul(H,st)|0,h=h+Math.imul(H,at)|0,n=n+Math.imul(D,ht)|0,o=(o=o+Math.imul(D,ct)|0)+Math.imul(F,ht)|0,h=h+Math.imul(F,ct)|0,n=n+Math.imul(j,lt)|0,o=(o=o+Math.imul(j,pt)|0)+Math.imul(U,lt)|0,h=h+Math.imul(U,pt)|0,n=n+Math.imul(P,gt)|0,o=(o=o+Math.imul(P,vt)|0)+Math.imul(T,gt)|0,h=h+Math.imul(T,vt)|0,n=n+Math.imul(C,bt)|0,o=(o=o+Math.imul(C,wt)|0)+Math.imul(R,bt)|0,h=h+Math.imul(R,wt)|0;var Bt=(f+(n=n+Math.imul(x,_t)|0)|0)+((8191&(o=(o=o+Math.imul(x,St)|0)+Math.imul(k,_t)|0))<<13)|0;f=((h=h+Math.imul(k,St)|0)+(o>>>13)|0)+(Bt>>>26)|0,Bt&=67108863,n=Math.imul(V,st),o=(o=Math.imul(V,at))+Math.imul(K,st)|0,h=Math.imul(K,at),n=n+Math.imul(N,ht)|0,o=(o=o+Math.imul(N,ct)|0)+Math.imul(H,ht)|0,h=h+Math.imul(H,ct)|0,n=n+Math.imul(D,lt)|0,o=(o=o+Math.imul(D,pt)|0)+Math.imul(F,lt)|0,h=h+Math.imul(F,pt)|0,n=n+Math.imul(j,gt)|0,o=(o=o+Math.imul(j,vt)|0)+Math.imul(U,gt)|0,h=h+Math.imul(U,vt)|0,n=n+Math.imul(P,bt)|0,o=(o=o+Math.imul(P,wt)|0)+Math.imul(T,bt)|0,h=h+Math.imul(T,wt)|0;var Dt=(f+(n=n+Math.imul(C,_t)|0)|0)+((8191&(o=(o=o+Math.imul(C,St)|0)+Math.imul(R,_t)|0))<<13)|0;f=((h=h+Math.imul(R,St)|0)+(o>>>13)|0)+(Dt>>>26)|0,Dt&=67108863,n=Math.imul(V,ht),o=(o=Math.imul(V,ct))+Math.imul(K,ht)|0,h=Math.imul(K,ct),n=n+Math.imul(N,lt)|0,o=(o=o+Math.imul(N,pt)|0)+Math.imul(H,lt)|0,h=h+Math.imul(H,pt)|0,n=n+Math.imul(D,gt)|0,o=(o=o+Math.imul(D,vt)|0)+Math.imul(F,gt)|0,h=h+Math.imul(F,vt)|0,n=n+Math.imul(j,bt)|0,o=(o=o+Math.imul(j,wt)|0)+Math.imul(U,bt)|0,h=h+Math.imul(U,wt)|0;var Ft=(f+(n=n+Math.imul(P,_t)|0)|0)+((8191&(o=(o=o+Math.imul(P,St)|0)+Math.imul(T,_t)|0))<<13)|0;f=((h=h+Math.imul(T,St)|0)+(o>>>13)|0)+(Ft>>>26)|0,Ft&=67108863,n=Math.imul(V,lt),o=(o=Math.imul(V,pt))+Math.imul(K,lt)|0,h=Math.imul(K,pt),n=n+Math.imul(N,gt)|0,o=(o=o+Math.imul(N,vt)|0)+Math.imul(H,gt)|0,h=h+Math.imul(H,vt)|0,n=n+Math.imul(D,bt)|0,o=(o=o+Math.imul(D,wt)|0)+Math.imul(F,bt)|0,h=h+Math.imul(F,wt)|0;var Lt=(f+(n=n+Math.imul(j,_t)|0)|0)+((8191&(o=(o=o+Math.imul(j,St)|0)+Math.imul(U,_t)|0))<<13)|0;f=((h=h+Math.imul(U,St)|0)+(o>>>13)|0)+(Lt>>>26)|0,Lt&=67108863,n=Math.imul(V,gt),o=(o=Math.imul(V,vt))+Math.imul(K,gt)|0,h=Math.imul(K,vt),n=n+Math.imul(N,bt)|0,o=(o=o+Math.imul(N,wt)|0)+Math.imul(H,bt)|0,h=h+Math.imul(H,wt)|0;var Nt=(f+(n=n+Math.imul(D,_t)|0)|0)+((8191&(o=(o=o+Math.imul(D,St)|0)+Math.imul(F,_t)|0))<<13)|0;f=((h=h+Math.imul(F,St)|0)+(o>>>13)|0)+(Nt>>>26)|0,Nt&=67108863,n=Math.imul(V,bt),o=(o=Math.imul(V,wt))+Math.imul(K,bt)|0,h=Math.imul(K,wt);var qt=(f+(n=n+Math.imul(N,_t)|0)|0)+((8191&(o=(o=o+Math.imul(N,St)|0)+Math.imul(H,_t)|0))<<13)|0;f=((h=h+Math.imul(H,St)|0)+(o>>>13)|0)+(qt>>>26)|0,qt&=67108863;var Ht=(f+(n=Math.imul(V,_t))|0)+((8191&(o=(o=Math.imul(V,St))+Math.imul(K,_t)|0))<<13)|0;return f=((h=Math.imul(K,St))+(o>>>13)|0)+(Ht>>>26)|0,Ht&=67108863,c[0]=At,c[1]=xt,c[2]=kt,c[3]=Et,c[4]=Ct,c[5]=Rt,c[6]=It,c[7]=Pt,c[8]=Tt,c[9]=Ot,c[10]=jt,c[11]=Ut,c[12]=Bt,c[13]=Dt,c[14]=Ft,c[15]=Lt,c[16]=Nt,c[17]=qt,c[18]=Ht,0!==f&&(c[19]=f,r.length++),r};function M(t,e,r){return(new _).mulp(t,e,r)}function _(t,e){this.x=t,this.y=e}Math.imul||(w=y),h.prototype.mulTo=function(t,e){var r=this.length+t.length;return 10===this.length&&10===t.length?w(this,t,e):r<63?y(this,t,e):r<1024?function(t,e,r){r.negative=e.negative^t.negative,r.length=t.length+e.length;for(var n=0,o=0,h=0;h<r.length-1;h++){var c=o;o=0;for(var f=67108863&n,l=Math.min(h,e.length-1),d=Math.max(0,h-t.length+1);d<=l;d++){var i=h-d,m=(0|t.words[i])*(0|e.words[d]),v=67108863&m;f=67108863&(v=v+f|0),o+=(c=(c=c+(m/67108864|0)|0)+(v>>>26)|0)>>>26,c&=67108863}r.words[h]=f,n=c,c=o}return 0!==n?r.words[h]=n:r.length--,r.strip()}(this,t,e):M(this,t,e)},_.prototype.makeRBT=function(t){for(var e=new Array(t),r=h.prototype._countBits(t)-1,i=0;i<t;i++)e[i]=this.revBin(i,r,t);return e},_.prototype.revBin=function(t,e,r){if(0===t||t===r-1)return t;for(var n=0,i=0;i<e;i++)n|=(1&t)<<e-i-1,t>>=1;return n},_.prototype.permute=function(t,e,r,n,o,h){for(var i=0;i<h;i++)n[i]=e[t[i]],o[i]=r[t[i]]},_.prototype.transform=function(t,e,r,n,o,h){this.permute(h,t,e,r,n,o);for(var s=1;s<o;s<<=1)for(var c=s<<1,f=Math.cos(2*Math.PI/c),l=Math.sin(2*Math.PI/c),p=0;p<o;p+=c)for(var d=f,m=l,v=0;v<s;v++){var y=r[p+v],w=n[p+v],M=r[p+v+s],_=n[p+v+s],S=d*M-m*_;_=d*_+m*M,M=S,r[p+v]=y+M,n[p+v]=w+_,r[p+v+s]=y-M,n[p+v+s]=w-_,v!==c&&(S=f*d-l*m,m=f*m+l*d,d=S)}},_.prototype.guessLen13b=function(t,e){var r=1|Math.max(e,t),n=1&r,i=0;for(r=r/2|0;r;r>>>=1)i++;return 1<<i+1+n},_.prototype.conjugate=function(t,e,r){if(!(r<=1))for(var i=0;i<r/2;i++){var n=t[i];t[i]=t[r-i-1],t[r-i-1]=n,n=e[i],e[i]=-e[r-i-1],e[r-i-1]=-n}},_.prototype.normalize13b=function(t,e){for(var r=0,i=0;i<e/2;i++){var n=8192*Math.round(t[2*i+1]/e)+Math.round(t[2*i]/e)+r;t[i]=67108863&n,r=n<67108864?0:n/67108864|0}return t},_.prototype.convert13b=function(t,e,r,o){for(var h=0,i=0;i<e;i++)h+=0|t[i],r[2*i]=8191&h,h>>>=13,r[2*i+1]=8191&h,h>>>=13;for(i=2*e;i<o;++i)r[i]=0;n(0===h),n(0==(-8192&h))},_.prototype.stub=function(t){for(var e=new Array(t),i=0;i<t;i++)e[i]=0;return e},_.prototype.mulp=function(t,e,r){var n=2*this.guessLen13b(t.length,e.length),o=this.makeRBT(n),h=this.stub(n),c=new Array(n),f=new Array(n),l=new Array(n),d=new Array(n),m=new Array(n),v=new Array(n),y=r.words;y.length=n,this.convert13b(t.words,t.length,c,n),this.convert13b(e.words,e.length,d,n),this.transform(c,h,f,l,n,o),this.transform(d,h,m,v,n,o);for(var i=0;i<n;i++){var w=f[i]*m[i]-l[i]*v[i];l[i]=f[i]*v[i]+l[i]*m[i],f[i]=w}return this.conjugate(f,l,n),this.transform(f,l,y,h,n,o),this.conjugate(y,h,n),this.normalize13b(y,n),r.negative=t.negative^e.negative,r.length=t.length+e.length,r.strip()},h.prototype.mul=function(t){var e=new h(null);return e.words=new Array(this.length+t.length),this.mulTo(t,e)},h.prototype.mulf=function(t){var e=new h(null);return e.words=new Array(this.length+t.length),M(this,t,e)},h.prototype.imul=function(t){return this.clone().mulTo(t,this)},h.prototype.imuln=function(t){n("number"==typeof t),n(t<67108864);for(var e=0,i=0;i<this.length;i++){var r=(0|this.words[i])*t,o=(67108863&r)+(67108863&e);e>>=26,e+=r/67108864|0,e+=o>>>26,this.words[i]=67108863&o}return 0!==e&&(this.words[i]=e,this.length++),this},h.prototype.muln=function(t){return this.clone().imuln(t)},h.prototype.sqr=function(){return this.mul(this)},h.prototype.isqr=function(){return this.imul(this.clone())},h.prototype.pow=function(t){var e=function(t){for(var e=new Array(t.bitLength()),r=0;r<e.length;r++){var n=r/26|0,o=r%26;e[r]=(t.words[n]&1<<o)>>>o}return e}(t);if(0===e.length)return new h(1);for(var r=this,i=0;i<e.length&&0===e[i];i++,r=r.sqr());if(++i<e.length)for(var q=r.sqr();i<e.length;i++,q=q.sqr())0!==e[i]&&(r=r.mul(q));return r},h.prototype.iushln=function(t){n("number"==typeof t&&t>=0);var i,e=t%26,s=(t-e)/26,r=67108863>>>26-e<<26-e;if(0!==e){var o=0;for(i=0;i<this.length;i++){var h=this.words[i]&r,c=(0|this.words[i])-h<<e;this.words[i]=c|o,o=h>>>26-e}o&&(this.words[i]=o,this.length++)}if(0!==s){for(i=this.length-1;i>=0;i--)this.words[i+s]=this.words[i];for(i=0;i<s;i++)this.words[i]=0;this.length+=s}return this.strip()},h.prototype.ishln=function(t){return n(0===this.negative),this.iushln(t)},h.prototype.iushrn=function(t,e,r){var o;n("number"==typeof t&&t>=0),o=e?(e-e%26)/26:0;var h=t%26,s=Math.min((t-h)/26,this.length),mask=67108863^67108863>>>h<<h,c=r;if(o-=s,o=Math.max(0,o),c){for(var i=0;i<s;i++)c.words[i]=this.words[i];c.length=s}if(0===s);else if(this.length>s)for(this.length-=s,i=0;i<this.length;i++)this.words[i]=this.words[i+s];else this.words[0]=0,this.length=1;var f=0;for(i=this.length-1;i>=0&&(0!==f||i>=o);i--){var l=0|this.words[i];this.words[i]=f<<26-h|l>>>h,f=l&mask}return c&&0!==f&&(c.words[c.length++]=f),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},h.prototype.ishrn=function(t,e,r){return n(0===this.negative),this.iushrn(t,e,r)},h.prototype.shln=function(t){return this.clone().ishln(t)},h.prototype.ushln=function(t){return this.clone().iushln(t)},h.prototype.shrn=function(t){return this.clone().ishrn(t)},h.prototype.ushrn=function(t){return this.clone().iushrn(t)},h.prototype.testn=function(t){n("number"==typeof t&&t>=0);var e=t%26,s=(t-e)/26,q=1<<e;return!(this.length<=s)&&!!(this.words[s]&q)},h.prototype.imaskn=function(t){n("number"==typeof t&&t>=0);var e=t%26,s=(t-e)/26;if(n(0===this.negative,"imaskn works only with positive numbers"),this.length<=s)return this;if(0!==e&&s++,this.length=Math.min(s,this.length),0!==e){var mask=67108863^67108863>>>e<<e;this.words[this.length-1]&=mask}return this.strip()},h.prototype.maskn=function(t){return this.clone().imaskn(t)},h.prototype.iaddn=function(t){return n("number"==typeof t),n(t<67108864),t<0?this.isubn(-t):0!==this.negative?1===this.length&&(0|this.words[0])<t?(this.words[0]=t-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(t),this.negative=1,this):this._iaddn(t)},h.prototype._iaddn=function(t){this.words[0]+=t;for(var i=0;i<this.length&&this.words[i]>=67108864;i++)this.words[i]-=67108864,i===this.length-1?this.words[i+1]=1:this.words[i+1]++;return this.length=Math.max(this.length,i+1),this},h.prototype.isubn=function(t){if(n("number"==typeof t),n(t<67108864),t<0)return this.iaddn(-t);if(0!==this.negative)return this.negative=0,this.iaddn(t),this.negative=1,this;if(this.words[0]-=t,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var i=0;i<this.length&&this.words[i]<0;i++)this.words[i]+=67108864,this.words[i+1]-=1;return this.strip()},h.prototype.addn=function(t){return this.clone().iaddn(t)},h.prototype.subn=function(t){return this.clone().isubn(t)},h.prototype.iabs=function(){return this.negative=0,this},h.prototype.abs=function(){return this.clone().iabs()},h.prototype._ishlnsubmul=function(t,e,r){var i,o,h=t.length+r;this._expand(h);var c=0;for(i=0;i<t.length;i++){o=(0|this.words[i+r])+c;var f=(0|t.words[i])*e;c=((o-=67108863&f)>>26)-(f/67108864|0),this.words[i+r]=67108863&o}for(;i<this.length-r;i++)c=(o=(0|this.words[i+r])+c)>>26,this.words[i+r]=67108863&o;if(0===c)return this.strip();for(n(-1===c),c=0,i=0;i<this.length;i++)c=(o=-(0|this.words[i])+c)>>26,this.words[i]=67108863&o;return this.negative=1,this.strip()},h.prototype._wordDiv=function(t,e){var r=(this.length,t.length),a=this.clone(),b=t,n=0|b.words[b.length-1];0!==(r=26-this._countBits(n))&&(b=b.ushln(r),a.iushln(r),n=0|b.words[b.length-1]);var q,o=a.length-b.length;if("mod"!==e){(q=new h(null)).length=o+1,q.words=new Array(q.length);for(var i=0;i<q.length;i++)q.words[i]=0}var c=a.clone()._ishlnsubmul(b,1,o);0===c.negative&&(a=c,q&&(q.words[o]=1));for(var f=o-1;f>=0;f--){var l=67108864*(0|a.words[b.length+f])+(0|a.words[b.length+f-1]);for(l=Math.min(l/n|0,67108863),a._ishlnsubmul(b,l,f);0!==a.negative;)l--,a.negative=0,a._ishlnsubmul(b,1,f),a.isZero()||(a.negative^=1);q&&(q.words[f]=l)}return q&&q.strip(),a.strip(),"div"!==e&&0!==r&&a.iushrn(r),{div:q||null,mod:a}},h.prototype.divmod=function(t,e,r){return n(!t.isZero()),this.isZero()?{div:new h(0),mod:new h(0)}:0!==this.negative&&0===t.negative?(c=this.neg().divmod(t,e),"mod"!==e&&(div=c.div.neg()),"div"!==e&&(o=c.mod.neg(),r&&0!==o.negative&&o.iadd(t)),{div:div,mod:o}):0===this.negative&&0!==t.negative?(c=this.divmod(t.neg(),e),"mod"!==e&&(div=c.div.neg()),{div:div,mod:c.mod}):0!=(this.negative&t.negative)?(c=this.neg().divmod(t.neg(),e),"div"!==e&&(o=c.mod.neg(),r&&0!==o.negative&&o.isub(t)),{div:c.div,mod:o}):t.length>this.length||this.cmp(t)<0?{div:new h(0),mod:this}:1===t.length?"div"===e?{div:this.divn(t.words[0]),mod:null}:"mod"===e?{div:null,mod:new h(this.modn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new h(this.modn(t.words[0]))}:this._wordDiv(t,e);var div,o,c},h.prototype.div=function(t){return this.divmod(t,"div",!1).div},h.prototype.mod=function(t){return this.divmod(t,"mod",!1).mod},h.prototype.umod=function(t){return this.divmod(t,"mod",!0).mod},h.prototype.divRound=function(t){var e=this.divmod(t);if(e.mod.isZero())return e.div;var r=0!==e.div.negative?e.mod.isub(t):e.mod,n=t.ushrn(1),o=t.andln(1),h=r.cmp(n);return h<0||1===o&&0===h?e.div:0!==e.div.negative?e.div.isubn(1):e.div.iaddn(1)},h.prototype.modn=function(t){n(t<=67108863);for(var p=(1<<26)%t,e=0,i=this.length-1;i>=0;i--)e=(p*e+(0|this.words[i]))%t;return e},h.prototype.idivn=function(t){n(t<=67108863);for(var e=0,i=this.length-1;i>=0;i--){var r=(0|this.words[i])+67108864*e;this.words[i]=r/t|0,e=r%t}return this.strip()},h.prototype.divn=function(t){return this.clone().idivn(t)},h.prototype.egcd=function(p){n(0===p.negative),n(!p.isZero());var t=this,e=p.clone();t=0!==t.negative?t.umod(p):t.clone();for(var r=new h(1),o=new h(0),c=new h(0),f=new h(1),g=0;t.isEven()&&e.isEven();)t.iushrn(1),e.iushrn(1),++g;for(var l=e.clone(),d=t.clone();!t.isZero();){for(var i=0,m=1;0==(t.words[0]&m)&&i<26;++i,m<<=1);if(i>0)for(t.iushrn(i);i-- >0;)(r.isOdd()||o.isOdd())&&(r.iadd(l),o.isub(d)),r.iushrn(1),o.iushrn(1);for(var v=0,y=1;0==(e.words[0]&y)&&v<26;++v,y<<=1);if(v>0)for(e.iushrn(v);v-- >0;)(c.isOdd()||f.isOdd())&&(c.iadd(l),f.isub(d)),c.iushrn(1),f.iushrn(1);t.cmp(e)>=0?(t.isub(e),r.isub(c),o.isub(f)):(e.isub(t),c.isub(r),f.isub(o))}return{a:c,b:f,gcd:e.iushln(g)}},h.prototype._invmp=function(p){n(0===p.negative),n(!p.isZero());var a=this,b=p.clone();a=0!==a.negative?a.umod(p):a.clone();for(var t,e=new h(1),r=new h(0),o=b.clone();a.cmpn(1)>0&&b.cmpn(1)>0;){for(var i=0,c=1;0==(a.words[0]&c)&&i<26;++i,c<<=1);if(i>0)for(a.iushrn(i);i-- >0;)e.isOdd()&&e.iadd(o),e.iushrn(1);for(var f=0,l=1;0==(b.words[0]&l)&&f<26;++f,l<<=1);if(f>0)for(b.iushrn(f);f-- >0;)r.isOdd()&&r.iadd(o),r.iushrn(1);a.cmp(b)>=0?(a.isub(b),e.isub(r)):(b.isub(a),r.isub(e))}return(t=0===a.cmpn(1)?e:r).cmpn(0)<0&&t.iadd(p),t},h.prototype.gcd=function(t){if(this.isZero())return t.abs();if(t.isZero())return this.abs();var a=this.clone(),b=t.clone();a.negative=0,b.negative=0;for(var e=0;a.isEven()&&b.isEven();e++)a.iushrn(1),b.iushrn(1);for(;;){for(;a.isEven();)a.iushrn(1);for(;b.isEven();)b.iushrn(1);var r=a.cmp(b);if(r<0){var n=a;a=b,b=n}else if(0===r||0===b.cmpn(1))break;a.isub(b)}return b.iushln(e)},h.prototype.invm=function(t){return this.egcd(t).a.umod(t)},h.prototype.isEven=function(){return 0==(1&this.words[0])},h.prototype.isOdd=function(){return 1==(1&this.words[0])},h.prototype.andln=function(t){return this.words[0]&t},h.prototype.bincn=function(t){n("number"==typeof t);var e=t%26,s=(t-e)/26,q=1<<e;if(this.length<=s)return this._expand(s+1),this.words[s]|=q,this;for(var r=q,i=s;0!==r&&i<this.length;i++){var o=0|this.words[i];r=(o+=r)>>>26,o&=67108863,this.words[i]=o}return 0!==r&&(this.words[i]=r,this.length++),this},h.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},h.prototype.cmpn=function(t){var e,r=t<0;if(0!==this.negative&&!r)return-1;if(0===this.negative&&r)return 1;if(this.strip(),this.length>1)e=1;else{r&&(t=-t),n(t<=67108863,"Number is too big");var o=0|this.words[0];e=o===t?0:o<t?-1:1}return 0!==this.negative?0|-e:e},h.prototype.cmp=function(t){if(0!==this.negative&&0===t.negative)return-1;if(0===this.negative&&0!==t.negative)return 1;var e=this.ucmp(t);return 0!==this.negative?0|-e:e},h.prototype.ucmp=function(t){if(this.length>t.length)return 1;if(this.length<t.length)return-1;for(var e=0,i=this.length-1;i>=0;i--){var a=0|this.words[i],b=0|t.words[i];if(a!==b){a<b?e=-1:a>b&&(e=1);break}}return e},h.prototype.gtn=function(t){return 1===this.cmpn(t)},h.prototype.gt=function(t){return 1===this.cmp(t)},h.prototype.gten=function(t){return this.cmpn(t)>=0},h.prototype.gte=function(t){return this.cmp(t)>=0},h.prototype.ltn=function(t){return-1===this.cmpn(t)},h.prototype.lt=function(t){return-1===this.cmp(t)},h.prototype.lten=function(t){return this.cmpn(t)<=0},h.prototype.lte=function(t){return this.cmp(t)<=0},h.prototype.eqn=function(t){return 0===this.cmpn(t)},h.prototype.eq=function(t){return 0===this.cmp(t)},h.red=function(t){return new R(t)},h.prototype.toRed=function(t){return n(!this.red,"Already a number in reduction context"),n(0===this.negative,"red works only with positives"),t.convertTo(this)._forceRed(t)},h.prototype.fromRed=function(){return n(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},h.prototype._forceRed=function(t){return this.red=t,this},h.prototype.forceRed=function(t){return n(!this.red,"Already a number in reduction context"),this._forceRed(t)},h.prototype.redAdd=function(t){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,t)},h.prototype.redIAdd=function(t){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,t)},h.prototype.redSub=function(t){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,t)},h.prototype.redISub=function(t){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,t)},h.prototype.redShl=function(t){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,t)},h.prototype.redMul=function(t){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.mul(this,t)},h.prototype.redIMul=function(t){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.imul(this,t)},h.prototype.redSqr=function(){return n(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},h.prototype.redISqr=function(){return n(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},h.prototype.redSqrt=function(){return n(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},h.prototype.redInvm=function(){return n(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},h.prototype.redNeg=function(){return n(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},h.prototype.redPow=function(t){return n(this.red&&!t.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,t)};var S={k256:null,p224:null,p192:null,p25519:null};function A(t,p){this.name=t,this.p=new h(p,16),this.n=this.p.bitLength(),this.k=new h(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function x(){A.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function k(){A.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function E(){A.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function C(){A.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function R(t){if("string"==typeof t){var e=h._prime(t);this.m=e.p,this.prime=e}else n(t.gtn(1),"modulus must be greater than 1"),this.m=t,this.prime=null}function I(t){R.call(this,t),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new h(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)}A.prototype._tmp=function(){var t=new h(null);return t.words=new Array(Math.ceil(this.n/13)),t},A.prototype.ireduce=function(t){var e,r=t;do{this.split(r,this.tmp),e=(r=(r=this.imulK(r)).iadd(this.tmp)).bitLength()}while(e>this.n);var n=e<this.n?-1:r.ucmp(this.p);return 0===n?(r.words[0]=0,r.length=1):n>0?r.isub(this.p):void 0!==r.strip?r.strip():r._strip(),r},A.prototype.split=function(input,t){input.iushrn(this.n,0,t)},A.prototype.imulK=function(t){return t.imul(this.k)},o(x,A),x.prototype.split=function(input,output){for(var t=Math.min(input.length,9),i=0;i<t;i++)output.words[i]=input.words[i];if(output.length=t,input.length<=9)return input.words[0]=0,void(in
vendor: 8,209 bytes, line 11
11put.length=1);var e=input.words[9];for(output.words[output.length++]=4194303&e,i=10;i<input.length;i++){var r=0|input.words[i];input.words[i-10]=(4194303&r)<<4|e>>>22,e=r}e>>>=22,input.words[i-10]=e,0===e&&input.length>10?input.length-=10:input.length-=9},x.prototype.imulK=function(t){t.words[t.length]=0,t.words[t.length+1]=0,t.length+=2;for(var e=0,i=0;i<t.length;i++){var r=0|t.words[i];e+=977*r,t.words[i]=67108863&e,e=64*r+(e/67108864|0)}return 0===t.words[t.length-1]&&(t.length--,0===t.words[t.length-1]&&t.length--),t},o(k,A),o(E,A),o(C,A),C.prototype.imulK=function(t){for(var e=0,i=0;i<t.length;i++){var r=19*(0|t.words[i])+e,n=67108863&r;r>>>=26,t.words[i]=n,e=r}return 0!==e&&(t.words[t.length++]=e),t},h._prime=function(t){if(S[t])return S[t];var e;if("k256"===t)e=new x;else if("p224"===t)e=new k;else if("p192"===t)e=new E;else{if("p25519"!==t)throw new Error("Unknown prime "+t);e=new C}return S[t]=e,e},R.prototype._verify1=function(a){n(0===a.negative,"red works only with positives"),n(a.red,"red works only with red numbers")},R.prototype._verify2=function(a,b){n(0==(a.negative|b.negative),"red works only with positives"),n(a.red&&a.red===b.red,"red works only with red numbers")},R.prototype.imod=function(a){return this.prime?this.prime.ireduce(a)._forceRed(this):a.umod(this.m)._forceRed(this)},R.prototype.neg=function(a){return a.isZero()?a.clone():this.m.sub(a)._forceRed(this)},R.prototype.add=function(a,b){this._verify2(a,b);var t=a.add(b);return t.cmp(this.m)>=0&&t.isub(this.m),t._forceRed(this)},R.prototype.iadd=function(a,b){this._verify2(a,b);var t=a.iadd(b);return t.cmp(this.m)>=0&&t.isub(this.m),t},R.prototype.sub=function(a,b){this._verify2(a,b);var t=a.sub(b);return t.cmpn(0)<0&&t.iadd(this.m),t._forceRed(this)},R.prototype.isub=function(a,b){this._verify2(a,b);var t=a.isub(b);return t.cmpn(0)<0&&t.iadd(this.m),t},R.prototype.shl=function(a,t){return this._verify1(a),this.imod(a.ushln(t))},R.prototype.imul=function(a,b){return this._verify2(a,b),this.imod(a.imul(b))},R.prototype.mul=function(a,b){return this._verify2(a,b),this.imod(a.mul(b))},R.prototype.isqr=function(a){return this.imul(a,a.clone())},R.prototype.sqr=function(a){return this.mul(a,a)},R.prototype.sqrt=function(a){if(a.isZero())return a.clone();var t=this.m.andln(3);if(n(t%2==1),3===t){var e=this.m.add(new h(1)).iushrn(2);return this.pow(a,e)}for(var q=this.m.subn(1),s=0;!q.isZero()&&0===q.andln(1);)s++,q.iushrn(1);n(!q.isZero());var r=new h(1).toRed(this),o=r.redNeg(),c=this.m.subn(1).iushrn(1),f=this.m.bitLength();for(f=new h(2*f*f).toRed(this);0!==this.pow(f,c).cmp(o);)f.redIAdd(o);for(var l=this.pow(f,q),d=this.pow(a,q.addn(1).iushrn(1)),m=this.pow(a,q),v=s;0!==m.cmp(r);){for(var y=m,i=0;0!==y.cmp(r);i++)y=y.redSqr();n(i<v);var b=this.pow(l,new h(1).iushln(v-i-1));d=d.redMul(b),l=b.redSqr(),m=m.redMul(l),v=i}return d},R.prototype.invm=function(a){var t=a._invmp(this.m);return 0!==t.negative?(t.negative=0,this.imod(t).redNeg()):this.imod(t)},R.prototype.pow=function(a,t){if(t.isZero())return new h(1).toRed(this);if(0===t.cmpn(1))return a.clone();var e=new Array(16);e[0]=new h(1).toRed(this),e[1]=a;for(var i=2;i<e.length;i++)e[i]=this.mul(e[i-1],a);var r=e[0],n=0,o=0,c=t.bitLength()%26;for(0===c&&(c=26),i=t.length-1;i>=0;i--){for(var f=t.words[i],l=c-1;l>=0;l--){var d=f>>l&1;r!==e[0]&&(r=this.sqr(r)),0!==d||0!==n?(n<<=1,n|=d,(4===++o||0===i&&0===l)&&(r=this.mul(r,e[n]),o=0,n=0)):o=0}c=26}return r},R.prototype.convertTo=function(t){var e=t.umod(this.m);return e===t?e.clone():e},R.prototype.convertFrom=function(t){var e=t.clone();return e.red=null,e},h.mont=function(t){return new I(t)},o(I,R),I.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},I.prototype.convertFrom=function(t){var e=this.imod(t.mul(this.rinv));return e.red=null,e},I.prototype.imul=function(a,b){if(a.isZero()||b.isZero())return a.words[0]=0,a.length=1,a;var t=a.imul(b),e=t.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),u=t.isub(e).iushrn(this.shift),r=u;return u.cmp(this.m)>=0?r=u.isub(this.m):u.cmpn(0)<0&&(r=u.iadd(this.m)),r._forceRed(this)},I.prototype.mul=function(a,b){if(a.isZero()||b.isZero())return new h(0)._forceRed(this);var t=a.mul(b),e=t.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),u=t.isub(e).iushrn(this.shift),r=u;return u.cmp(this.m)>=0?r=u.isub(this.m):u.cmpn(0)<0&&(r=u.iadd(this.m)),r._forceRed(this)},I.prototype.invm=function(a){return this.imod(a._invmp(this.m).mul(this.r2))._forceRed(this)}}(t,this)}).call(this,r(57)(t))},function(t,e,r){var n=r(445),o=r(166);function h(t){this.rand=t||new o.Rand}t.exports=h,h.create=function(t){return new h(t)},h.prototype._randbelow=function(t){var e=t.bitLength(),r=Math.ceil(e/8);do{var a=new n(this.rand.generate(r))}while(a.cmp(t)>=0);return a},h.prototype._randrange=function(t,e){var r=e.sub(t);return t.add(this._randbelow(r))},h.prototype.test=function(t,e,r){var o=t.bitLength(),h=n.mont(t),c=new n(1).toRed(h);e||(e=Math.max(1,o/48|0));for(var f=t.subn(1),s=0;!f.testn(s);s++);for(var l=t.shrn(s),d=f.toRed(h);e>0;e--){var a=this._randrange(new n(2),f);r&&r(a);var m=a.toRed(h).redPow(l);if(0!==m.cmp(c)&&0!==m.cmp(d)){for(var i=1;i<s;i++){if(0===(m=m.redSqr()).cmp(c))return!1;if(0===m.cmp(d))break}if(i===s)return!1}}return!0},h.prototype.getDivisor=function(t,e){var r=t.bitLength(),o=n.mont(t),h=new n(1).toRed(o);e||(e=Math.max(1,r/48|0));for(var c=t.subn(1),s=0;!c.testn(s);s++);for(var f=t.shrn(s),l=c.toRed(o);e>0;e--){var a=this._randrange(new n(2),c),g=t.gcd(a);if(0!==g.cmpn(1))return g;var d=a.toRed(o).redPow(f);if(0!==d.cmp(h)&&0!==d.cmp(l)){for(var i=1;i<s;i++){if(0===(d=d.redSqr()).cmp(h))return d.fromRed().subn(1).gcd(t);if(0===d.cmp(l))break}if(i===s)return(d=d.redSqr()).fromRed().subn(1).gcd(t)}}return!1}},function(t,e,r){"use strict";var n=e;function o(t){return 1===t.length?"0"+t:t}function h(t){for(var e="",i=0;i<t.length;i++)e+=o(t[i].toString(16));return e}n.toArray=function(t,e){if(Array.isArray(t))return t.slice();if(!t)return[];var r=[];if("string"!=typeof t){for(var i=0;i<t.length;i++)r[i]=0|t[i];return r}if("hex"===e){(t=t.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(t="0"+t);for(i=0;i<t.length;i+=2)r.push(parseInt(t[i]+t[i+1],16))}else for(i=0;i<t.length;i++){var n=t.charCodeAt(i),o=n>>8,h=255&n;o?r.push(o,h):r.push(h)}return r},n.zero2=o,n.toHex=h,n.encode=function(t,e){return"hex"===e?h(t):t}},function(t,e,r){"use strict";var n=e;n.base=r(126),n.short=r(455),n.mont=r(456),n.edwards=r(457)},function(t,e,r){"use strict";var n=r(42).rotr32;function o(t,e,r){return t&e^~t&r}function h(t,e,r){return t&e^t&r^e&r}function c(t,e,r){return t^e^r}e.ft_1=function(s,t,e,r){return 0===s?o(t,e,r):1===s||3===s?c(t,e,r):2===s?h(t,e,r):void 0},e.ch32=o,e.maj32=h,e.p32=c,e.s0_256=function(t){return n(t,2)^n(t,13)^n(t,22)},e.s1_256=function(t){return n(t,6)^n(t,11)^n(t,25)},e.g0_256=function(t){return n(t,7)^n(t,18)^t>>>3},e.g1_256=function(t){return n(t,17)^n(t,19)^t>>>10}},function(t,e,r){"use strict";var n=r(42),o=r(96),h=r(267),c=r(40),f=n.sum32,l=n.sum32_4,d=n.sum32_5,m=h.ch32,v=h.maj32,y=h.s0_256,w=h.s1_256,M=h.g0_256,_=h.g1_256,S=o.BlockHash,A=[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 x(){if(!(this instanceof x))return new x;S.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=A,this.W=new Array(64)}n.inherits(x,S),t.exports=x,x.blockSize=512,x.outSize=256,x.hmacStrength=192,x.padLength=64,x.prototype._update=function(t,e){for(var r=this.W,i=0;i<16;i++)r[i]=t[e+i];for(;i<r.length;
vendor: 2,437 bytes, line 11
11i++)r[i]=l(_(r[i-2]),r[i-7],M(r[i-15]),r[i-16]);var a=this.h[0],b=this.h[1],n=this.h[2],o=this.h[3],h=this.h[4],S=this.h[5],g=this.h[6],A=this.h[7];for(c(this.k.length===r.length),i=0;i<r.length;i++){var x=d(A,w(h),m(h,S,g),this.k[i],r[i]),k=f(y(a),v(a,b,n));A=g,g=S,S=h,h=f(o,x),o=n,n=b,b=a,a=f(x,k)}this.h[0]=f(this.h[0],a),this.h[1]=f(this.h[1],b),this.h[2]=f(this.h[2],n),this.h[3]=f(this.h[3],o),this.h[4]=f(this.h[4],h),this.h[5]=f(this.h[5],S),this.h[6]=f(this.h[6],g),this.h[7]=f(this.h[7],A)},x.prototype._digest=function(t){return"hex"===t?n.toHex32(this.h,"big"):n.split32(this.h,"big")}},function(t,e,r){"use strict";var n=r(42),o=r(96),h=r(40),c=n.rotr64_hi,f=n.rotr64_lo,l=n.shr64_hi,d=n.shr64_lo,m=n.sum64,v=n.sum64_hi,y=n.sum64_lo,w=n.sum64_4_hi,M=n.sum64_4_lo,_=n.sum64_5_hi,S=n.sum64_5_lo,A=o.BlockHash,x=[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,
vendor: 3,108 bytes, line 11
111126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591];function k(){if(!(this instanceof k))return new k;A.call(this),this.h=[1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209],this.k=x,this.W=new Array(160)}function E(t,e,r,n,o){var h=t&r^~t&o;return h<0&&(h+=4294967296),h}function C(t,e,r,n,o,h){var c=e&n^~e&h;return c<0&&(c+=4294967296),c}function R(t,e,r,n,o){var h=t&r^t&o^r&o;return h<0&&(h+=4294967296),h}function I(t,e,r,n,o,h){var c=e&n^e&h^n&h;return c<0&&(c+=4294967296),c}function P(t,e){var r=c(t,e,28)^c(e,t,2)^c(e,t,7);return r<0&&(r+=4294967296),r}function T(t,e){var r=f(t,e,28)^f(e,t,2)^f(e,t,7);return r<0&&(r+=4294967296),r}function O(t,e){var r=c(t,e,14)^c(t,e,18)^c(e,t,9);return r<0&&(r+=4294967296),r}function j(t,e){var r=f(t,e,14)^f(t,e,18)^f(e,t,9);return r<0&&(r+=4294967296),r}function U(t,e){var r=c(t,e,1)^c(t,e,8)^l(t,e,7);return r<0&&(r+=4294967296),r}function B(t,e){var r=f(t,e,1)^f(t,e,8)^d(t,e,7);return r<0&&(r+=4294967296),r}function D(t,e){var r=c(t,e,19)^c(e,t,29)^l(t,e,6);return r<0&&(r+=4294967296),r}function F(t,e){var r=f(t,e,19)^f(e,t,29)^d(t,e,6);return r<0&&(r+=4294967296),r}n.inherits(k,A),t.exports=k,k.blockSize=1024,k.outSize=512,k.hmacStrength=192,k.padLength=128,k.prototype._prepareBlock=function(t,e){for(var r=this.W,i=0;i<32;i++)r[i]=t[e+i];for(;i<r.length;i+=2){var n=D(r[i-4],r[i-3]),o=F(r[i-4],r[i-3]),h=r[i-14],c=r[i-13],f=U(r[i-30],r[i-29]),l=B(r[i-30],r[i-29]),d=r[i-32],m=r[i-31];r[i]=w(n,o,h,c,f,l,d,m),r[i+1]=M(n,o,h,c,f,l,d,m)}},k.prototype._update=function(t,e){this._prepareBlock(t,e);var r=this.W,n=this.h[0],o=this.h[1],c=this.h[2],f=this.h[3],l=this.h[4],d=this.h[5],w=this.h[6],dl=this.h[7],M=this.h[8],A=this.h[9],x=this.h[10],k=this.h[11],U=this.h[12],B=this.h[13],D=this.h[14],F=this.h[15];h(this.k.length===r.length);for(var i=0;i<r.length;i+=2){var L=D,N=F,H=O(M,A),z=j(M,A),V=E(M,A,x,k,U),K=C(M,A,x,k,U,B),Z=this.k[i],W=this.k[i+1],G=r[i],J=r[i+1],Y=_(L,N,H,z,V,K,Z,W,G,J),Q=S(L,N,H,z,V,K,Z,W,G,J);L=P(n,o),N=T(n,o),H=R(n,o,c,f,l),z=I(n,o,c,f,l,d);var X=v(L,N,H,z),$=y(L,N,H,z);D=U,F=B,U=x,B=k,x=M,k=A,M=v(w,dl,Y,Q),A=y(dl,dl,Y,Q),w=l,dl=d,l=c,d=f,c=n,f=o,n=v(Y,Q,X,$),o=y(Y,Q,X,$)}m(this.h,0,n,o),m(this.h,2,c,f),m(this.h,4,l,d),m(this.h,6,w,dl),m(this.h,8,M,A),m(this.h,10,x,k),m(this.h,12,U,B),m(this.h,14,D,F)},k.prototype._digest=function(t){return"hex"===t?n.toHex32(this.h,"big"):n.split32(this.h,"big")}},function(t,e,r){"use strict";const n=e;n.bignum=r(271),n.define=r(474).define,n.base=r(477),n.constants=r(478),n.decoders=r(274),n.encoders=r(272)},function(t,e,r){(function(t){!function(t,e){"use strict";function n(t,e){if(!t)throw new Error(e||"Assertion failed")}function o(t,e){t.super_=e;var r=function(){};r.prototype=e.prototype,t.prototype=new r,t.prototype.constructor=t}function h(t,base,e){if(h.isBN(t))return t;this.negative=0,this.words=null,this.length=0,this.red=null,null!==t&&("le"!==base&&"be"!==base||(e=base,base
vendor: 4,177 bytes, line 11
11=10),this._init(t||0,base||10,e||"be"))}var c;"object"==typeof t?t.exports=h:e.BN=h,h.BN=h,h.wordSize=26;try{c=r(473).Buffer}catch(t){}function f(t,e,r){for(var n=0,o=Math.min(t.length,r),i=e;i<o;i++){var h=t.charCodeAt(i)-48;n<<=4,n|=h>=49&&h<=54?h-49+10:h>=17&&h<=22?h-17+10:15&h}return n}function l(t,e,r,n){for(var o=0,h=Math.min(t.length,r),i=e;i<h;i++){var c=t.charCodeAt(i)-48;o*=n,o+=c>=49?c-49+10:c>=17?c-17+10:c}return o}h.isBN=function(t){return t instanceof h||null!==t&&"object"==typeof t&&t.constructor.wordSize===h.wordSize&&Array.isArray(t.words)},h.max=function(t,e){return t.cmp(e)>0?t:e},h.min=function(t,e){return t.cmp(e)<0?t:e},h.prototype._init=function(t,base,e){if("number"==typeof t)return this._initNumber(t,base,e);if("object"==typeof t)return this._initArray(t,base,e);"hex"===base&&(base=16),n(base===(0|base)&&base>=2&&base<=36);var r=0;"-"===(t=t.toString().replace(/\s+/g,""))[0]&&r++,16===base?this._parseHex(t,r):this._parseBase(t,base,r),"-"===t[0]&&(this.negative=1),this.strip(),"le"===e&&this._initArray(this.toArray(),base,e)},h.prototype._initNumber=function(t,base,e){t<0&&(this.negative=1,t=-t),t<67108864?(this.words=[67108863&t],this.length=1):t<4503599627370496?(this.words=[67108863&t,t/67108864&67108863],this.length=2):(n(t<9007199254740992),this.words=[67108863&t,t/67108864&67108863,1],this.length=3),"le"===e&&this._initArray(this.toArray(),base,e)},h.prototype._initArray=function(t,base,e){if(n("number"==typeof t.length),t.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(t.length/3),this.words=new Array(this.length);for(var i=0;i<this.length;i++)this.words[i]=0;var r,o,h=0;if("be"===e)for(i=t.length-1,r=0;i>=0;i-=3)o=t[i]|t[i-1]<<8|t[i-2]<<16,this.words[r]|=o<<h&67108863,this.words[r+1]=o>>>26-h&67108863,(h+=24)>=26&&(h-=26,r++);else if("le"===e)for(i=0,r=0;i<t.length;i+=3)o=t[i]|t[i+1]<<8|t[i+2]<<16,this.words[r]|=o<<h&67108863,this.words[r+1]=o>>>26-h&67108863,(h+=24)>=26&&(h-=26,r++);return this.strip()},h.prototype._parseHex=function(t,e){this.length=Math.ceil((t.length-e)/6),this.words=new Array(this.length);for(var i=0;i<this.length;i++)this.words[i]=0;var r,n,o=0;for(i=t.length-6,r=0;i>=e;i-=6)n=f(t,i,i+6),this.words[r]|=n<<o&67108863,this.words[r+1]|=n>>>26-o&4194303,(o+=24)>=26&&(o-=26,r++);i+6!==e&&(n=f(t,e,i+6),this.words[r]|=n<<o&67108863,this.words[r+1]|=n>>>26-o&4194303),this.strip()},h.prototype._parseBase=function(t,base,e){this.words=[0],this.length=1;for(var r=0,n=1;n<=67108863;n*=base)r++;r--,n=n/base|0;for(var o=t.length-e,h=o%r,c=Math.min(o,o-h)+e,f=0,i=e;i<c;i+=r)f=l(t,i,i+r,base),this.imuln(n),this.words[0]+f<67108864?this.words[0]+=f:this._iaddn(f);if(0!==h){var d=1;for(f=l(t,i,t.length,base),i=0;i<h;i++)d*=base;this.imuln(d),this.words[0]+f<67108864?this.words[0]+=f:this._iaddn(f)}},h.prototype.copy=function(t){t.words=new Array(this.length);for(var i=0;i<this.length;i++)t.words[i]=this.words[i];t.length=this.length,t.negative=this.negative,t.red=this.red},h.prototype.clone=function(){var t=new h(null);return this.copy(t),t},h.prototype._expand=function(t){for(;this.length<t;)this.words[this.length++]=0;return this},h.prototype.strip=function(){for(;this.length>1&&0===this.words[this.length-1];)this.length--;return this._normSign()},h.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},h.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};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"],m=[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],v=[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,143489
vendor: 34,272 bytes, line 11
1107,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function y(t,e,r){r.negative=e.negative^t.negative;var n=t.length+e.length|0;r.length=n,n=n-1|0;var a=0|t.words[0],b=0|e.words[0],o=a*b,h=67108863&o,c=o/67108864|0;r.words[0]=h;for(var f=1;f<n;f++){for(var l=c>>>26,d=67108863&c,m=Math.min(f,e.length-1),v=Math.max(0,f-t.length+1);v<=m;v++){var i=f-v|0;l+=(o=(a=0|t.words[i])*(b=0|e.words[v])+d)/67108864|0,d=67108863&o}r.words[f]=0|d,c=0|l}return 0!==c?r.words[f]=0|c:r.length--,r.strip()}h.prototype.toString=function(base,t){var e;if(t=0|t||1,16===(base=base||10)||"hex"===base){e="";for(var r=0,o=0,i=0;i<this.length;i++){var h=this.words[i],c=(16777215&(h<<r|o)).toString(16);e=0!==(o=h>>>24-r&16777215)||i!==this.length-1?d[6-c.length]+c+e:c+e,(r+=2)>=26&&(r-=26,i--)}for(0!==o&&(e=o.toString(16)+e);e.length%t!=0;)e="0"+e;return 0!==this.negative&&(e="-"+e),e}if(base===(0|base)&&base>=2&&base<=36){var f=m[base],l=v[base];e="";var y=this.clone();for(y.negative=0;!y.isZero();){var w=y.modn(l).toString(base);e=(y=y.idivn(l)).isZero()?w+e:d[f-w.length]+w+e}for(this.isZero()&&(e="0"+e);e.length%t!=0;)e="0"+e;return 0!==this.negative&&(e="-"+e),e}n(!1,"Base should be between 2 and 36")},h.prototype.toNumber=function(){var t=this.words[0];return 2===this.length?t+=67108864*this.words[1]:3===this.length&&1===this.words[2]?t+=4503599627370496+67108864*this.words[1]:this.length>2&&n(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-t:t},h.prototype.toJSON=function(){return this.toString(16)},h.prototype.toBuffer=function(t,e){return n(void 0!==c),this.toArrayLike(c,t,e)},h.prototype.toArray=function(t,e){return this.toArrayLike(Array,t,e)},h.prototype.toArrayLike=function(t,e,r){var o=this.byteLength(),h=r||Math.max(1,o);n(o<=h,"byte array longer than desired length"),n(h>0,"Requested array length <= 0"),this.strip();var b,i,c="le"===e,f=new t(h),q=this.clone();if(c){for(i=0;!q.isZero();i++)b=q.andln(255),q.iushrn(8),f[i]=b;for(;i<h;i++)f[i]=0}else{for(i=0;i<h-o;i++)f[i]=0;for(i=0;!q.isZero();i++)b=q.andln(255),q.iushrn(8),f[h-i-1]=b}return f},Math.clz32?h.prototype._countBits=function(t){return 32-Math.clz32(t)}:h.prototype._countBits=function(t){var e=t,r=0;return e>=4096&&(r+=13,e>>>=13),e>=64&&(r+=7,e>>>=7),e>=8&&(r+=4,e>>>=4),e>=2&&(r+=2,e>>>=2),r+e},h.prototype._zeroBits=function(t){if(0===t)return 26;var e=t,r=0;return 0==(8191&e)&&(r+=13,e>>>=13),0==(127&e)&&(r+=7,e>>>=7),0==(15&e)&&(r+=4,e>>>=4),0==(3&e)&&(r+=2,e>>>=2),0==(1&e)&&r++,r},h.prototype.bitLength=function(){var t=this.words[this.length-1],e=this._countBits(t);return 26*(this.length-1)+e},h.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,i=0;i<this.length;i++){var b=this._zeroBits(this.words[i]);if(t+=b,26!==b)break}return t},h.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},h.prototype.toTwos=function(t){return 0!==this.negative?this.abs().inotn(t).iaddn(1):this.clone()},h.prototype.fromTwos=function(t){return this.testn(t-1)?this.notn(t).iaddn(1).ineg():this.clone()},h.prototype.isNeg=function(){return 0!==this.negative},h.prototype.neg=function(){return this.clone().ineg()},h.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},h.prototype.iuor=function(t){for(;this.length<t.length;)this.words[this.length++]=0;for(var i=0;i<t.length;i++)this.words[i]=this.words[i]|t.words[i];return this.strip()},h.prototype.ior=function(t){return n(0==(this.negative|t.negative)),this.iuor(t)},h.prototype.or=function(t){return this.length>t.length?this.clone().ior(t):t.clone().ior(this)},h.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},h.prototype.iuand=function(t){var b;b=this.length>t.length?t:this;for(var i=0;i<b.length;i++)this.words[i]=this.words[i]&t.words[i];return this.length=b.length,this.strip()},h.prototype.iand=function(t){return n(0==(this.negative|t.negative)),this.iuand(t)},h.prototype.and=function(t){return this.length>t.length?this.clone().iand(t):t.clone().iand(this)},h.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},h.prototype.iuxor=function(t){var a,b;this.length>t.length?(a=this,b=t):(a=t,b=this);for(var i=0;i<b.length;i++)this.words[i]=a.words[i]^b.words[i];if(this!==a)for(;i<a.length;i++)this.words[i]=a.words[i];return this.length=a.length,this.strip()},h.prototype.ixor=function(t){return n(0==(this.negative|t.negative)),this.iuxor(t)},h.prototype.xor=function(t){return this.length>t.length?this.clone().ixor(t):t.clone().ixor(this)},h.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},h.prototype.inotn=function(t){n("number"==typeof t&&t>=0);var e=0|Math.ceil(t/26),r=t%26;this._expand(e),r>0&&e--;for(var i=0;i<e;i++)this.words[i]=67108863&~this.words[i];return r>0&&(this.words[i]=~this.words[i]&67108863>>26-r),this.strip()},h.prototype.notn=function(t){return this.clone().inotn(t)},h.prototype.setn=function(t,e){n("number"==typeof t&&t>=0);var r=t/26|0,o=t%26;return this._expand(r+1),this.words[r]=e?this.words[r]|1<<o:this.words[r]&~(1<<o),this.strip()},h.prototype.iadd=function(t){var e,a,b;if(0!==this.negative&&0===t.negative)return this.negative=0,e=this.isub(t),this.negative^=1,this._normSign();if(0===this.negative&&0!==t.negative)return t.negative=0,e=this.isub(t),t.negative=1,e._normSign();this.length>t.length?(a=this,b=t):(a=t,b=this);for(var r=0,i=0;i<b.length;i++)e=(0|a.words[i])+(0|b.words[i])+r,this.words[i]=67108863&e,r=e>>>26;for(;0!==r&&i<a.length;i++)e=(0|a.words[i])+r,this.words[i]=67108863&e,r=e>>>26;if(this.length=a.length,0!==r)this.words[this.length]=r,this.length++;else if(a!==this)for(;i<a.length;i++)this.words[i]=a.words[i];return this},h.prototype.add=function(t){var e;return 0!==t.negative&&0===this.negative?(t.negative=0,e=this.sub(t),t.negative^=1,e):0===t.negative&&0!==this.negative?(this.negative=0,e=t.sub(this),this.negative=1,e):this.length>t.length?this.clone().iadd(t):t.clone().iadd(this)},h.prototype.isub=function(t){if(0!==t.negative){t.negative=0;var e=this.iadd(t);return t.negative=1,e._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(t),this.negative=1,this._normSign();var a,b,r=this.cmp(t);if(0===r)return this.negative=0,this.length=1,this.words[0]=0,this;r>0?(a=this,b=t):(a=t,b=this);for(var n=0,i=0;i<b.length;i++)n=(e=(0|a.words[i])-(0|b.words[i])+n)>>26,this.words[i]=67108863&e;for(;0!==n&&i<a.length;i++)n=(e=(0|a.words[i])+n)>>26,this.words[i]=67108863&e;if(0===n&&i<a.length&&a!==this)for(;i<a.length;i++)this.words[i]=a.words[i];return this.length=Math.max(this.length,i),a!==this&&(this.negative=1),this.strip()},h.prototype.sub=function(t){return this.clone().isub(t)};var w=function(t,e,r){var n,o,h,a=t.words,b=e.words,c=r.words,f=0,l=0|a[0],d=8191&l,m=l>>>13,v=0|a[1],y=8191&v,w=v>>>13,M=0|a[2],_=8191&M,S=M>>>13,A=0|a[3],x=8191&A,k=A>>>13,E=0|a[4],C=8191&E,R=E>>>13,I=0|a[5],P=8191&I,T=I>>>13,O=0|a[6],j=8191&O,U=O>>>13,B=0|a[7],D=8191&B,F=B>>>13,L=0|a[8],N=8191&L,H=L>>>13,z=0|a[9],V=8191&z,K=z>>>13,Z=0|b[0],W=8191&Z,G=Z>>>13,J=0|b[1],Y=8191&J,Q=J>>>13,X=0|b[2],$=8191&X,tt=X>>>13,et=0|b[3],it=8191&et,nt=et>>>13,ot=0|b[4],st=8191&ot,at=ot>>>13,ut=0|b[5],ht=8191&ut,ct=ut>>>13,ft=0|b[6],lt=8191&ft,pt=ft>>>13,mt=0|b[7],gt=8191&mt,vt=mt>>>13,yt=0|b[8],bt=8191&yt,wt=yt>>>13,Mt=0|b[9],_t=8191&Mt,St=Mt>>>13;r.negative=t.negative^e.negative,r.length=19;var At=(f+(n=Math.imul(d,W))|0)+((8191&(o=(o=Math.imul(d,G))+Math.imul(m,W)|0))<<13)|0;f=((h=Math.imul(m,G))+(o>>>13)|0)+(At>>>26)|0,At&=67108863,n=Math.imul(y,W),o=(o=Math.imul(y,G))+Math.imul(w,W)|0,h=Math.imul(w,G);var xt=(f+(n=n+Math.imul(d,Y)|0)|0)+((8191&(o=(o=o+Math.imul(d,Q)|0)+Math.imul(m,Y)|0))<<13)|0;f=((h=h+Math.imul(m,Q)|0)+(o>>>13)|0)+(xt>>>26)|0,xt&=67108863,n=Math.imul(_,W),o=(o=Math.imul(_,G))+Math.imul(S,W)|0,h=Math.imul(S,G),n=n+Math.imul(y,Y)|0,o=(o=o+Math.imul(y,Q)|0)+Math.imul(w,Y)|0,h=h+Math.imul(w,Q)|0;var kt=(f+(n=n+Math.imul(d,$)|0)|0)+((8191&(o=(o=o+Math.imul(d,tt)|0)+Math.imul(m,$)|0))<<13)|0;f=((h=h+Math.imul(m,tt)|0)+(o>>>13)|0)+(kt>>>26)|0,kt&=67108863,n=Math.imul(x,W),o=(o=Math.imul(x,G))+Math.imul(k,W)|0,h=Math.imul(k,G),n=n+Math.imul(_,Y)|0,o=(o=o+Math.imul(_,Q)|0)+Math.imul(S,Y)|0,h=h+Math.imul(S,Q)|0,n=n+Math.imul(y,$)|0,o=(o=o+Math.imul(y,tt)|0)+Math.imul(w,$)|0,h=h+Math.imul(w,tt)|0;var Et=(f+(n=n+Math.imul(d,it)|0)|0)+((8191&(o=(o=o+Math.imul(d,nt)|0)+Math.imul(m,it)|0))<<13)|0;f=((h=h+Math.imul(m,nt)|0)+(o>>>13)|0)+(Et>>>26)|0,Et&=67108863,n=Math.imul(C,W),o=(o=Math.imul(C,G))+Math.imul(R,W)|0,h=Math.imul(R,G),n=n+Math.imul(x,Y)|0,o=(o=o+Math.imul(x,Q)|0)+Math.imul(k,Y)|0,h=h+Math.imul(k,Q)|0,n=n+Math.imul(_,$)|0,o=(o=o+Math.imul(_,tt)|0)+Math.imul(S,$)|0,h=h+Math.imul(S,tt)|0,n=n+Math.imul(y,it)|0,o=(o=o+Math.imul(y,nt)|0)+Math.imul(w,it)|0,h=h+Math.imul(w,nt)|0;var Ct=(f+(n=n+Math.imul(d,st)|0)|0)+((8191&(o=(o=o+Math.imul(d,at)|0)+Math.imul(m,st)|0))<<13)|0;f=((h=h+Math.imul(m,at)|0)+(o>>>13)|0)+(Ct>>>26)|0,Ct&=67108863,n=Math.imul(P,W),o=(o=Math.imul(P,G))+Math.imul(T,W)|0,h=Math.imul(T,G),n=n+Math.imul(C,Y)|0,o=(o=o+Math.imul(C,Q)|0)+Math.imul(R,Y)|0,h=h+Math.imul(R,Q)|0,n=n+Math.imul(x,$)|0,o=(o=o+Math.imul(x,tt)|0)+Math.imul(k,$)|0,h=h+Math.imul(k,tt)|0,n=n+Math.imul(_,it)|0,o=(o=o+Math.imul(_,nt)|0)+Math.imul(S,it)|0,h=h+Math.imul(S,nt)|0,n=n+Math.imul(y,st)|0,o=(o=o+Math.imul(y,at)|0)+Math.imul(w,st)|0,h=h+Math.imul(w,at)|0;var Rt=(f+(n=n+Math.imul(d,ht)|0)|0)+((8191&(o=(o=o+Math.imul(d,ct)|0)+Math.imul(m,ht)|0))<<13)|0;f=((h=h+Math.imul(m,ct)|0)+(o>>>13)|0)+(Rt>>>26)|0,Rt&=67108863,n=Math.imul(j,W),o=(o=Math.imul(j,G))+Math.imul(U,W)|0,h=Math.imul(U,G),n=n+Math.imul(P,Y)|0,o=(o=o+Math.imul(P,Q)|0)+Math.imul(T,Y)|0,h=h+Math.imul(T,Q)|0,n=n+Math.imul(C,$)|0,o=(o=o+Math.imul(C,tt)|0)+Math.imul(R,$)|0,h=h+Math.imul(R,tt)|0,n=n+Math.imul(x,it)|0,o=(o=o+Math.imul(x,nt)|0)+Math.imul(k,it)|0,h=h+Math.imul(k,nt)|0,n=n+Math.imul(_,st)|0,o=(o=o+Math.imul(_,at)|0)+Math.imul(S,st)|0,h=h+Math.imul(S,at)|0,n=n+Math.imul(y,ht)|0,o=(o=o+Math.imul(y,ct)|0)+Math.imul(w,ht)|0,h=h+Math.imul(w,ct)|0;var It=(f+(n=n+Math.imul(d,lt)|0)|0)+((8191&(o=(o=o+Math.imul(d,pt)|0)+Math.imul(m,lt)|0))<<13)|0;f=((h=h+Math.imul(m,pt)|0)+(o>>>13)|0)+(It>>>26)|0,It&=67108863,n=Math.imul(D,W),o=(o=Math.imul(D,G))+Math.imul(F,W)|0,h=Math.imul(F,G),n=n+Math.imul(j,Y)|0,o=(o=o+Math.imul(j,Q)|0)+Math.imul(U,Y)|0,h=h+Math.imul(U,Q)|0,n=n+Math.imul(P,$)|0,o=(o=o+Math.imul(P,tt)|0)+Math.imul(T,$)|0,h=h+Math.imul(T,tt)|0,n=n+Math.imul(C,it)|0,o=(o=o+Math.imul(C,nt)|0)+Math.imul(R,it)|0,h=h+Math.imul(R,nt)|0,n=n+Math.imul(x,st)|0,o=(o=o+Math.imul(x,at)|0)+Math.imul(k,st)|0,h=h+Math.imul(k,at)|0,n=n+Math.imul(_,ht)|0,o=(o=o+Math.imul(_,ct)|0)+Math.imul(S,ht)|0,h=h+Math.imul(S,ct)|0,n=n+Math.imul(y,lt)|0,o=(o=o+Math.imul(y,pt)|0)+Math.imul(w,lt)|0,h=h+Math.imul(w,pt)|0;var Pt=(f+(n=n+Math.imul(d,gt)|0)|0)+((8191&(o=(o=o+Math.imul(d,vt)|0)+Math.imul(m,gt)|0))<<13)|0;f=((h=h+Math.imul(m,vt)|0)+(o>>>13)|0)+(Pt>>>26)|0,Pt&=67108863,n=Math.imul(N,W),o=(o=Math.imul(N,G))+Math.imul(H,W)|0,h=Math.imul(H,G),n=n+Math.imul(D,Y)|0,o=(o=o+Math.imul(D,Q)|0)+Math.imul(F,Y)|0,h=h+Math.imul(F,Q)|0,n=n+Math.imul(j,$)|0,o=(o=o+Math.imul(j,tt)|0)+Math.imul(U,$)|0,h=h+Math.imul(U,tt)|0,n=n+Math.imul(P,it)|0,o=(o=o+Math.imul(P,nt)|0)+Math.imul(T,it)|0,h=h+Math.imul(T,nt)|0,n=n+Math.imul(C,st)|0,o=(o=o+Math.imul(C,at)|0)+Math.imul(R,st)|0,h=h+Math.imul(R,at)|0,n=n+Math.imul(x,ht)|0,o=(o=o+Math.imul(x,ct)|0)+Math.imul(k,ht)|0,h=h+Math.imul(k,ct)|0,n=n+Math.imul(_,lt)|0,o=(o=o+Math.imul(_,pt)|0)+Math.imul(S,lt)|0,h=h+Math.imul(S,pt)|0,n=n+Math.imul(y,gt)|0,o=(o=o+Math.imul(y,vt)|0)+Math.imul(w,gt)|0,h=h+Math.imul(w,vt)|0;var Tt=(f+(n=n+Math.imul(d,bt)|0)|0)+((8191&(o=(o=o+Math.imul(d,wt)|0)+Math.imul(m,bt)|0))<<13)|0;f=((h=h+Math.imul(m,wt)|0)+(o>>>13)|0)+(Tt>>>26)|0,Tt&=67108863,n=Math.imul(V,W),o=(o=Math.imul(V,G))+Math.imul(K,W)|0,h=Math.imul(K,G),n=n+Math.imul(N,Y)|0,o=(o=o+Math.imul(N,Q)|0)+Math.imul(H,Y)|0,h=h+Math.imul(H,Q)|0,n=n+Math.imul(D,$)|0,o=(o=o+Math.imul(D,tt)|0)+Math.imul(F,$)|0,h=h+Math.imul(F,tt)|0,n=n+Math.imul(j,it)|0,o=(o=o+Math.imul(j,nt)|0)+Math.imul(U,it)|0,h=h+Math.imul(U,nt)|0,n=n+Math.imul(P,st)|0,o=(o=o+Math.imul(P,at)|0)+Math.imul(T,st)|0,h=h+Math.imul(T,at)|0,n=n+Math.imul(C,ht)|0,o=(o=o+Math.imul(C,ct)|0)+Math.imul(R,ht)|0,h=h+Math.imul(R,ct)|0,n=n+Math.imul(x,lt)|0,o=(o=o+Math.imul(x,pt)|0)+Math.imul(k,lt)|0,h=h+Math.imul(k,pt)|0,n=n+Math.imul(_,gt)|0,o=(o=o+Math.imul(_,vt)|0)+Math.imul(S,gt)|0,h=h+Math.imul(S,vt)|0,n=n+Math.imul(y,bt)|0,o=(o=o+Math.imul(y,wt)|0)+Math.imul(w,bt)|0,h=h+Math.imul(w,wt)|0;var Ot=(f+(n=n+Math.imul(d,_t)|0)|0)+((8191&(o=(o=o+Math.imul(d,St)|0)+Math.imul(m,_t)|0))<<13)|0;f=((h=h+Math.imul(m,St)|0)+(o>>>13)|0)+(Ot>>>26)|0,Ot&=67108863,n=Math.imul(V,Y),o=(o=Math.imul(V,Q))+Math.imul(K,Y)|0,h=Math.imul(K,Q),n=n+Math.imul(N,$)|0,o=(o=o+Math.imul(N,tt)|0)+Math.imul(H,$)|0,h=h+Math.imul(H,tt)|0,n=n+Math.imul(D,it)|0,o=(o=o+Math.imul(D,nt)|0)+Math.imul(F,it)|0,h=h+Math.imul(F,nt)|0,n=n+Math.imul(j,st)|0,o=(o=o+Math.imul(j,at)|0)+Math.imul(U,st)|0,h=h+Math.imul(U,at)|0,n=n+Math.imul(P,ht)|0,o=(o=o+Math.imul(P,ct)|0)+Math.imul(T,ht)|0,h=h+Math.imul(T,ct)|0,n=n+Math.imul(C,lt)|0,o=(o=o+Math.imul(C,pt)|0)+Math.imul(R,lt)|0,h=h+Math.imul(R,pt)|0,n=n+Math.imul(x,gt)|0,o=(o=o+Math.imul(x,vt)|0)+Math.imul(k,gt)|0,h=h+Math.imul(k,vt)|0,n=n+Math.imul(_,bt)|0,o=(o=o+Math.imul(_,wt)|0)+Math.imul(S,bt)|0,h=h+Math.imul(S,wt)|0;var jt=(f+(n=n+Math.imul(y,_t)|0)|0)+((8191&(o=(o=o+Math.imul(y,St)|0)+Math.imul(w,_t)|0))<<13)|0;f=((h=h+Math.imul(w,St)|0)+(o>>>13)|0)+(jt>>>26)|0,jt&=67108863,n=Math.imul(V,$),o=(o=Math.imul(V,tt))+Math.imul(K,$)|0,h=Math.imul(K,tt),n=n+Math.imul(N,it)|0,o=(o=o+Math.imul(N,nt)|0)+Math.imul(H,it)|0,h=h+Math.imul(H,nt)|0,n=n+Math.imul(D,st)|0,o=(o=o+Math.imul(D,at)|0)+Math.imul(F,st)|0,h=h+Math.imul(F,at)|0,n=n+Math.imul(j,ht)|0,o=(o=o+Math.imul(j,ct)|0)+Math.imul(U,ht)|0,h=h+Math.imul(U,ct)|0,n=n+Math.imul(P,lt)|0,o=(o=o+Math.imul(P,pt)|0)+Math.imul(T,lt)|0,h=h+Math.imul(T,pt)|0,n=n+Math.imul(C,gt)|0,o=(o=o+Math.imul(C,vt)|0)+Math.imul(R,gt)|0,h=h+Math.imul(R,vt)|0,n=n+Math.imul(x,bt)|0,o=(o=o+Math.imul(x,wt)|0)+Math.imul(k,bt)|0,h=h+Math.imul(k,wt)|0;var Ut=(f+(n=n+Math.imul(_,_t)|0)|0)+((8191&(o=(o=o+Math.imul(_,St)|0)+Math.imul(S,_t)|0))<<13)|0;f=((h=h+Math.imul(S,St)|0)+(o>>>13)|0)+(Ut>>>26)|0,Ut&=67108863,n=Math.imul(V,it),o=(o=Math.imul(V,nt))+Math.imul(K,it)|0,h=Math.imul(K,nt),n=n+Math.imul(N,st)|0,o=(o=o+Math.imul(N,at)|0)+Math.imul(H,st)|0,h=h+Math.imul(H,at)|0,n=n+Math.imul(D,ht)|0,o=(o=o+Math.imul(D,ct)|0)+Math.imul(F,ht)|0,h=h+Math.imul(F,ct)|0,n=n+Math.imul(j,lt)|0,o=(o=o+Math.imul(j,pt)|0)+Math.imul(U,lt)|0,h=h+Math.imul(U,pt)|0,n=n+Math.imul(P,gt)|0,o=(o=o+Math.imul(P,vt)|0)+Math.imul(T,gt)|0,h=h+Math.imul(T,vt)|0,n=n+Math.imul(C,bt)|0,o=(o=o+Math.imul(C,wt)|0)+Math.imul(R,bt)|0,h=h+Math.imul(R,wt)|0;var Bt=(f+(n=n+Math.imul(x,_t)|0)|0)+((8191&(o=(o=o+Math.imul(x,St)|0)+Math.imul(k,_t)|0))<<13)|0;f=((h=h+Math.imul(k,St)|0)+(o>>>13)|0)+(Bt>>>26)|0,Bt&=67108863,n=Math.imul(V,st),o=(o=Math.imul(V,at))+Math.imul(K,st)|0,h=Math.imul(K,at),n=n+Math.imul(N,ht)|0,o=(o=o+Math.imul(N,ct)|0)+Math.imul(H,ht)|0,h=h+Math.imul(H,ct)|0,n=n+Math.imul(D,lt)|0,o=(o=o+Math.imul(D,pt)|0)+Math.imul(F,lt)|0,h=h+Math.imul(F,pt)|0,n=n+Math.imul(j,gt)|0,o=(o=o+Math.imul(j,vt)|0)+Math.imul(U,gt)|0,h=h+Math.imul(U,vt)|0,n=n+Math.imul(P,bt)|0,o=(o=o+Math.imul(P,wt)|0)+Math.imul(T,bt)|0,h=h+Math.imul(T,wt)|0;var Dt=(f+(n=n+Math.imul(C,_t)|0)|0)+((8191&(o=(o=o+Math.imul(C,St)|0)+Math.imul(R,_t)|0))<<13)|0;f=((h=h+Math.imul(R,St)|0)+(o>>>13)|0)+(Dt>>>26)|0,Dt&=67108863,n=Math.imul(V,ht),o=(o=Math.imul(V,ct))+Math.imul(K,ht)|0,h=Math.imul(K,ct),n=n+Math.imul(N,lt)|0,o=(o=o+Math.imul(N,pt)|0)+Math.imul(H,lt)|0,h=h+Math.imul(H,pt)|0,n=n+Math.imul(D,gt)|0,o=(o=o+Math.imul(D,vt)|0)+Math.imul(F,gt)|0,h=h+Math.imul(F,vt)|0,n=n+Math.imul(j,bt)|0,o=(o=o+Math.imul(j,wt)|0)+Math.imul(U,bt)|0,h=h+Math.imul(U,wt)|0;var Ft=(f+(n=n+Math.imul(P,_t)|0)|0)+((8191&(o=(o=o+Math.imul(P,St)|0)+Math.imul(T,_t)|0))<<13)|0;f=((h=h+Math.imul(T,St)|0)+(o>>>13)|0)+(Ft>>>26)|0,Ft&=67108863,n=Math.imul(V,lt),o=(o=Math.imul(V,pt))+Math.imul(K,lt)|0,h=Math.imul(K,pt),n=n+Math.imul(N,gt)|0,o=(o=o+Math.imul(N,vt)|0)+Math.imul(H,gt)|0,h=h+Math.imul(H,vt)|0,n=n+Math.imul(D,bt)|0,o=(o=o+Math.imul(D,wt)|0)+Math.imul(F,bt)|0,h=h+Math.imul(F,wt)|0;var Lt=(f+(n=n+Math.imul(j,_t)|0)|0)+((8191&(o=(o=o+Math.imul(j,St)|0)+Math.imul(U,_t)|0))<<13)|0;f=((h=h+Math.imul(U,St)|0)+(o>>>13)|0)+(Lt>>>26)|0,Lt&=67108863,n=Math.imul(V,gt),o=(o=Math.imul(V,vt))+Math.imul(K,gt)|0,h=Math.imul(K,vt),n=n+Math.imul(N,bt)|0,o=(o=o+Math.imul(N,wt)|0)+Math.imul(H,bt)|0,h=h+Math.imul(H,wt)|0;var Nt=(f+(n=n+Math.imul(D,_t)|0)|0)+((8191&(o=(o=o+Math.imul(D,St)|0)+Math.imul(F,_t)|0))<<13)|0;f=((h=h+Math.imul(F,St)|0)+(o>>>13)|0)+(Nt>>>26)|0,Nt&=67108863,n=Math.imul(V,bt),o=(o=Math.imul(V,wt))+Math.imul(K,bt)|0,h=Math.imul(K,wt);var qt=(f+(n=n+Math.imul(N,_t)|0)|0)+((8191&(o=(o=o+Math.imul(N,St)|0)+Math.imul(H,_t)|0))<<13)|0;f=((h=h+Math.imul(H,St)|0)+(o>>>13)|0)+(qt>>>26)|0,qt&=67108863;var Ht=(f+(n=Math.imul(V,_t))|0)+((8191&(o=(o=Math.imul(V,St))+Math.imul(K,_t)|0))<<13)|0;return f=((h=Math.imul(K,St))+(o>>>13)|0)+(Ht>>>26)|0,Ht&=67108863,c[0]=At,c[1]=xt,c[2]=kt,c[3]=Et,c[4]=Ct,c[5]=Rt,c[6]=It,c[7]=Pt,c[8]=Tt,c[9]=Ot,c[10]=jt,c[11]=Ut,c[12]=Bt,c[13]=Dt,c[14]=Ft,c[15]=Lt,c[16]=Nt,c[17]=qt,c[18]=Ht,0!==f&&(c[19]=f,r.length++),r};function M(t,e,r){return(new _).mulp(t,e,r)}function _(t,e){this.x=t,this.y=e}Math.imul||(w=y),h.prototype.mulTo=function(t,e){var r=this.length+t.length;return 10===this.length&&10===t.length?w(this,t,e):r<63?y(this,t,e):r<1024?function(t,e,r){r.negative=e.negative^t.negative,r.length=t.length+e.length;for(var n=0,o=0,h=0;h<r.length-1;h++){var c=o;o=0;for(var f=67108863&n,l=Math.min(h,e.length-1),d=Math.max(0,h-t.length+1);d<=l;d++){var i=h-d,m=(0|t.words[i])*(0|e.words[d]),v=67108863&m;f=67108863&(v=v+f|0),o+=(c=(c=c+(m/67108864|0)|0)+(v>>>26)|0)>>>26,c&=67108863}r.words[h]=f,n=c,c=o}return 0!==n?r.words[h]=n:r.length--,r.strip()}(this,t,e):M(this,t,e)},_.prototype.makeRBT=function(t){for(var e=new Array(t),r=h.prototype._countBits(t)-1,i=0;i<t;i++)e[i]=this.revBin(i,r,t);return e},_.prototype.revBin=function(t,e,r){if(0===t||t===r-1)return t;for(var n=0,i=0;i<e;i++)n|=(1&t)<<e-i-1,t>>=1;return n},_.prototype.permute=function(t,e,r,n,o,h){for(var i=0;i<h;i++)n[i]=e[t[i]],o[i]=r[t[i]]},_.prototype.transform=function(t,e,r,n,o,h){this.permute(h,t,e,r,n,o);for(var s=1;s<o;s<<=1)for(var c=s<<1,f=Math.cos(2*Math.PI/c),l=Math.sin(2*Math.PI/c),p=0;p<o;p+=c)for(var d=f,m=l,v=0;v<s;v++){var y=r[p+v],w=n[p+v],M=r[p+v+s],_=n[p+v+s],S=d*M-m*_;_=d*_+m*M,M=S,r[p+v]=y+M,n[p+v]=w+_,r[p+v+s]=y-M,n[p+v+s]=w-_,v!==c&&(S=f*d-l*m,m=f*m+l*d,d=S)}},_.prototype.guessLen13b=function(t,e){var r=1|Math.max(e,t),n=1&r,i=0;for(r=r/2|0;r;r>>>=1)i++;return 1<<i+1+n},_.prototype.conjugate=function(t,e,r){if(!(r<=1))for(var i=0;i<r/2;i++){var n=t[i];t[i]=t[r-i-1],t[r-i-1]=n,n=e[i],e[i]=-e[r-i-1],e[r-i-1]=-n}},_.prototype.normalize13b=function(t,e){for(var r=0,i=0;i<e/2;i++){var n=8192*Math.round(t[2*i+1]/e)+Math.round(t[2*i]/e)+r;t[i]=67108863&n,r=n<67108864?0:n/67108864|0}return t},_.prototype.convert13b=function(t,e,r,o){for(var h=0,i=0;i<e;i++)h+=0|t[i],r[2*i]=8191&h,h>>>=13,r[2*i+1]=8191&h,h>>>=13;for(i=2*e;i<o;++i)r[i]=0;n(0===h),n(0==(-8192&h))},_.prototype.stub=function(t){for(var e=new Array(t),i=0;i<t;i++)e[i]=0;return e},_.prototype.mulp=function(t,e,r){var n=2*this.guessLen13b(t.length,e.length),o=this.makeRBT(n),h=this.stub(n),c=new Array(n),f=new Array(n),l=new Array(n),d=new Array(n),m=new Array(n),v=new Array(n),y=r.words;y.length=n,this.convert13b(t.words,t.length,c,n),this.convert13b(e.words,e.length,d,n),this.transform(c,h,f,l,n,o),this.transform(d,h,m,v,n,o);for(var i=0;i<n;i++){var w=f[i]*m[i]-l[i]*v[i];l[i]=f[i]*v[i]+l[i]*m[i],f[i]=w}return this.conjugate(f,l,n),this.transform(f,l,y,h,n,o),this.conjugate(y,h,n),this.normalize13b(y,n),r.negative=t.negative^e.negative,r.length=t.length+e.length,r.strip()},h.prototype.mul=function(t){var e=new h(null);return e.words=new Array(this.length+t.length),this.mulTo(t,e)},h.prototype.mulf=function(t){var e=new h(null);return e.words=new Array(this.length+t.length),M(this,t,e)},h.prototype.imul=function(t){return this.clone().mulTo(t,this)},h.prototype.imuln=function(t){n("number"==typeof t),n(t<67108864);for(var e=0,i=0;i<this.length;i++){var r=(0|this.words[i])*t,o=(67108863&r)+(67108863&e);e>>=26,e+=r/67108864|0,e+=o>>>26,this.words[i]=67108863&o}return 0!==e&&(this.words[i]=e,this.length++),this},h.prototype.muln=function(t){return this.clone().imuln(t)},h.prototype.sqr=function(){return this.mul(this)},h.prototype.isqr=function(){return this.imul(this.clone())},h.prototype.pow=function(t){var e=function(t){for(var e=new Array(t.bitLength()),r=0;r<e.length;r++){var n=r/26|0,o=r%26;e[r]=(t.words[n]&1<<o)>>>o}return e}(t);if(0===e.length)return new h(1);for(var r=this,i=0;i<e.length&&0===e[i];i++,r=r.sqr());if(++i<e.length)for(var q=r.sqr();i<e.length;i++,q=q.sqr())0!==e[i]&&(r=r.mul(q));return r},h.prototype.iushln=function(t){n("number"==typeof t&&t>=0);var i,e=t%26,s=(t-e)/26,r=67108863>>>26-e<<26-e;if(0!==e){var o=0;for(i=0;i<this.length;i++){var h=this.words[i]&r,c=(0|this.words[i])-h<<e;this.words[i]=c|o,o=h>>>26-e}o&&(this.words[i]=o,this.length++)}if(0!==s){for(i=this.length-1;i>=0;i--)this.words[i+s]=this.words[i];for(i=0;i<s;i++)this.words[i]=0;this.length+=s}return this.strip()},h.prototype.ishln=function(t){return n(0===this.negative),this.iushln(t)},h.prototype.iushrn=function(t,e,r){var o;n("number"==typeof t&&t>=0),o=e?(e-e%26)/26:0;var h=t%26,s=Math.min((t-h)/26,this.length),mask=67108863^67108863>>>h<<h,c=r;if(o-=s,o=Math.max(0,o),c){for(var i=0;i<s;i++)c.words[i]=this.words[i];c.length=s}if(0===s);else if(this.length>s)for(this.length-=s,i=0;i<this.length;i++)this.words[i]=this.words[i+s];else this.words[0]=0,this.length=1;var f=0;for(i=this.length-1;i>=0&&(0!==f||i>=o);i--){var l=0|this.words[i];this.words[i]=f<<26-h|l>>>h,f=l&mask}return c&&0!==f&&(c.words[c.length++]=f),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},h.prototype.ishrn=function(t,e,r){return n(0===this.negative),this.iushrn(t,e,r)},h.prototype.shln=function(t){return this.clone().ishln(t)},h.prototype.ushln=function(t){return this.clone().iushln(t)},h.prototype.shrn=function(t){return this.clone().ishrn(t)},h.prototype.ushrn=function(t){return this.clone().iushrn(t)},h.prototype.testn=function(t){n("number"==typeof t&&t>=0);var e=t%26,s=(t-e)/26,q=1<<e;return!(this.length<=s)&&!!(this.words[s]&q)},h.prototype.imaskn=function(t){n("number"==typeof t&&t>=0);var e=t%26,s=(t-e)/26;if(n(0===this.negative,"imaskn works only with positive numbers"),this.length<=s)return this;if(0!==e&&s++,this.length=Math.min(s,this.length),0!==e){var mask=67108863^67108863>>>e<<e;this.words[this.length-1]&=mask}return this.strip()},h.prototype.maskn=function(t){return this.clone().imaskn(t)},h.prototype.iaddn=function(t){return n("number"==typeof t),n(t<67108864),t<0?this.isubn(-t):0!==this.negative?1===this.length&&(0|this.words[0])<t?(this.words[0]=t-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(t),this.negative=1,this):this._iaddn(t)},h.prototype._iaddn=function(t){this.words[0]+=t;for(var i=0;i<this.length&&this.words[i]>=67108864;i++)this.words[i]-=67108864,i===this.length-1?this.words[i+1]=1:this.words[i+1]++;return this.length=Math.max(this.length,i+1),this},h.prototype.isubn=function(t){if(n("number"==typeof t),n(t<67108864),t<0)return this.iaddn(-t);if(0!==this.negative)return this.negative=0,this.iaddn(t),this.negative=1,this;if(this.words[0]-=t,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var i=0;i<this.length&&this.words[i]<0;i++)this.words[i]+=67108864,this.words[i+1]-=1;return this.strip()},h.prototype.addn=function(t){return this.clone().iaddn(t)},h.prototype.subn=function(t){return this.clone().isubn(t)},h.prototype.iabs=function(){return this.negative=0,this},h.prototype.abs=function(){return this.clone().iabs()},h.prototype._ishlnsubmul=function(t,e,r){var i,o,h=t.length+r;this._expand(h);var c=0;for(i=0;i<t.length;i++){o=(0|this.words[i+r])+c;var f=(0|t.words[i])*e;c=((o-=67108863&f)>>26)-(f/67108864|0),this.words[i+r]=67108863&o}for(;i<this.length-r;i++)c=(o=(0|this.words[i+r])+c)>>26,this.words[i+r]=67108863&o;if(0===c)return this.strip();for(n(-1===c),c=0,i=0;i<this.length;i++)c=(o=-(0|this.words[i])+c)>>26,this.words[i]=67108863&o;return this.negative=1,this.strip()},h.prototype._wordDiv=function(t,e){var r=(this.length,t.length),a=this.clone(),b=t,n=0|b.words[b.length-1];0!==(r=26-this._countBits(n))&&(b=b.ushln(r),a.iushln(r),n=0|b.words[b.length-1]);var q,o=a.length-b.length;if("mod"!==e){(q=new h(null)).length=o+1,q.words=new Array(q.length);for(var i=0;i<q.length;i++)q.words[i]=0}var c=a.clone()._ishlnsubmul(b,1,o);0===c.negative&&(a=c,q&&(q.words[o]=1));for(var f=o-1;f>=0;f--){var l=67108864*(0|a.words[b.length+f])+(0|a.words[b.length+f-1]);for(l=Math.min(l/n|0,67108863),a._ishlnsubmul(b,l,f);0!==a.negative;)l--,a.negative=0,a._ishlnsubmul(b,1,f),a.isZero()||(a.negative^=1);q&&(q.words[f]=l)}return q&&q.strip(),a.strip(),"div"!==e&&0!==r&&a.iushrn(r),{div:q||null,mod:a}},h.prototype.divmod=function(t,e,r){return n(!t.isZero()),this.isZero()?{div:new h(0),mod:new h(0)}:0!==this.negative&&0===t.negative?(c=this.neg().divmod(t,e),"mod"!==e&&(div=c.div.neg()),"div"!==e&&(o=c.mod.neg(),r&&0!==o.negative&&o.iadd(t)),{div:div,mod:o}):0===this.negative&&0!==t.negative?(c=this.divmod(t.neg(),e),"mod"!==e&&(div=c.div.neg()),{div:div,mod:c.mod}):0!=(this.negative&t.negative)?(c=this.neg().divmod(t.neg(),e),"div"!==e&&(o=c.mod.neg(),r&&0!==o.negative&&o.isub(t)),{div:c.div,mod:o}):t.length>this.length||this.cmp(t)<0?{div:new h(0),mod:this}:1===t.length?"div"===e?{div:this.divn(t.words[0]),mod:null}:"mod"===e?{div:null,mod:new h(this.modn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new h(this.modn(t.words[0]))}:this._wordDiv(t,e);var div,o,c},h.prototype.div=function(t){return this.divmod(t,"div",!1).div},h.prototype.mod=function(t){return this.divmod(t,"mod",!1).mod},h.prototype.umod=function(t){return this.divmod(t,"mod",!0).mod},h.prototype.divRound=function(t){var e=this.divmod(t);if(e.mod.isZero())return e.div;var r=0!==e.div.negative?e.mod.isub(t):e.mod,n=t.ushrn(1),o=t.andln(1),h=r.cmp(n);return h<0||1===o&&0===h?e.div:0!==e.div.negative?e.div.isubn(1):e.div.iaddn(1)},h.prototype.modn=function(t){n(t<=67108863);for(var p=(1<<26)%t,e=0,i=this.length-1;i>=0;i--)e=(p*e+(0|this.words[i]))%t;return e},h.prototype.idivn=function(t){n(t<=67108863);for(var e=0,i=this.length-1;i>=0;i--){var r=(0|this.words[i])+67108864*e;this.words[i]=r/t|0,e=r%t}return this.strip()},h.prototype.divn=function(t){return this.clone().idivn(t)},h.prototype.egcd=function(p){n(0===p.negative),n(!p.isZero());var t=this,e=p.clone();t=0!==t.negative?t.umod(p):t.clone();for(var r=new h(1),o=new h(0),c=new h(0),f=new h(1),g=0;t.isEven()&&e.isEven();)t.iushrn(1),e.iushrn(1),++g;for(var l=e.clone(),d=t.clone();!t.isZero();){for(var i=0,m=1;0==(t.words[0]&m)&&i<26;++i,m<<=1);if(i>0)for(t.iushrn(i);i-- >0;)(r.isOdd()||o.isOdd())&&(r.iadd(l),o.isub(d)),r.iushrn(1),o.iushrn(1);for(var v=0,y=1;0==(e.words[0]&y)&&v<26;++v,y<<=1);if(v>0)for(e.iushrn(v);v-- >0;)(c.isOdd()||f.isOdd())&&(c.iadd(l),f.isub(d)),c.iushrn(1),f.iushrn(1);t.cmp(e)>=0?(t.isub(e),r.isub(c),o.isub(f)):(e.isub(t),c.isub(r),f.isub(o))}return{a:c,b:f,gcd:e.iushln(g)}},h.prototype._invmp=function(p){n(0===p.negative),n(!p.isZero());var a=this,b=p.clone();a=0!==a.negative?a.umod(p):a.clone();for(var t,e=new h(1),r=new h(0),o=b.clone();a.cmpn(1)>0&&b.cmpn(1)>0;){for(var i=0,c=1;0==(a.words[0]&c)&&i<26;++i,c<<=1);if(i>0)for(a.iushrn(i);i-- >0;)e.isOdd()&&e.iadd(o),e.iushrn(1);for(var f=0,l=1;0==(b.words[0]&l)&&f<26;++f,l<<=1);if(f>0)for(b.iushrn(f);f-- >0;)r.isOdd()&&r.iadd(o),r.iushrn(1);a.cmp(b)>=0?(a.isub(b),e.isub(r)):(b.isub(a),r.isub(e))}return(t=0===a.cmpn(1)?e:r).cmpn(0)<0&&t.iadd(p),t},h.prototype.gcd=function(t){if(this.isZero())return t.abs();if(t.isZero())return this.abs();var a=this.clone(),b=t.clone();a.negative=0,b.negative=0;for(var e=0;a.isEven()&&b.isEven();e++)a.iushrn(1),b.iushrn(1);for(;;){for(;a.isEven();)a.iushrn(1);for(;b.isEven();)b.iushrn(1);var r=a.cmp(b);if(r<0){var n=a;a=b,b=n}else if(0===r||0===b.cmpn(1))break;a.isub(b)}return b.iushln(e)},h.prototype.invm=function(t){return this.egcd(t).a.umod(t)},h.prototype.isEven=function(){return 0==(1&this.words[0])},h.prototype.isOdd=function(){return 1==(1&this.words[0])},h.prototype.andln=function(t){return this.words[0]&t},h.prototype.bincn=function(t){n("number"==typeof t);var e=t%26,s=(t-e)/26,q=1<<e;if(this.length<=s)return this._expand(s+1),this.words[s]|=q,this;for(var r=q,i=s;0!==r&&i<this.length;i++){var o=0|this.words[i];r=(o+=r)>>>26,o&=67108863,this.words[i]=o}return 0!==r&&(this.words[i]=r,this.length++),this},h.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},h.prototype.cmpn=function(t){var e,r=t<0;if(0!==this.negative&&!r)return-1;if(0===this.negative&&r)return 1;if(this.strip(),this.length>1)e=1;else{r&&(t=-t),n(t<=67108863,"Number is too big");var o=0|this.words[0];e=o===t?0:o<t?-1:1}return 0!==this.negative?0|-e:e},h.prototype.cmp=function(t){if(0!==this.negative&&0===t.negative)return-1;if(0===this.negative&&0!==t.negative)return 1;var e=this.ucmp(t);return 0!==this.negative?0|-e:e},h.prototype.ucmp=function(t){if(this.length>t.length)return 1;if(this.length<t.length)return-1;for(var e=0,i=this.length-1;i>=0;i--){var a=0|this.words[i],b=0|t.words[i];if(a!==b){a<b?e=-1:a>b&&(e=1);break}}return e},h.prototype.gtn=function(t){return 1===this.cmpn(t)},h.prototype.gt=function(t){return 1===this.cmp(t)},h.prototype.gten=function(t){return this.cmpn(t)>=0},h.prototype.gte=function(t){return this.cmp(t)>=0},h.prototype.ltn=function(t){return-1===this.cmpn(t)},h.prototype.lt=function(t){return-1===this.cmp(t)},h.prototype.lten=function(t){return this.cmpn(t)<=0},h.prototype.lte=function(t){return this.cmp(t)<=0},h.prototype.eqn=function(t){return 0===this.cmpn(t)},h.prototype.eq=function(t){return 0===this.cmp(t)},h.red=function(t){return new R(t)},h.prototype.toRed=function(t){return n(!this.red,"Already a number in reduction context"),n(0===this.negative,"red works only with positives"),t.convertTo(this)._forceRed(t)},h.prototype.fromRed=function(){return n(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},h.prototype._forceRed=function(t){return this.red=t,this},h.prototype.forceRed=function(t){return n(!this.red,"Already a number in reduction context"),this._forceRed(t)},h.prototype.redAdd=function(t){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,t)},h.prototype.redIAdd=function(t){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,t)},h.prototype.redSub=function(t){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,t)},h.prototype.redISub=function(t){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,t)},h.prototype.redShl=function(t){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,t)},h.prototype.redMul=function(t){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.mul(this,t)},h.prototype.redIMul=function(t){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.imul(this,t)},h.prototype.redSqr=function(){return n(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},h.prototype.redISqr=function(){return n(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},h.prototype.redSqrt=function(){return n(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},h.prototype.redInvm=function(){return n(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},h.prototype.redNeg=function(){return n(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},h.prototype.redPow=function(t){return n(this.red&&!t.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,t)};var S={k256:null,p224:null,p192:null,p25519:null};function A(t,p){this.name=t,this.p=new h(p,16),this.n=this.p.bitLength(),this.k=new h(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function x(){A.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function k(){A.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function E(){A.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function C(){A.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function R(t){if("string"==typeof t){var e=h._prime(t);this.m=e.p,this.prime=e}else n(t.gtn(1),"modulus must be greater than 1"),this.m=t,this.prime=null}function I(t){R.call(this,t),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new h(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)}A.prototype._tmp=function(){var t=new h(null);return t.words=new Array(Math.ceil(this.n/13)),t},A.prototype.ireduce=function(t){var e,r=t;do{this.split(r,this.tmp),e=(r=(r=this.imulK(r)).iadd(this.tmp)).bitLength()}while(e>this.n);var n=e<this.n?-1:r.ucmp(this.p);return 0===n?(r.words[0]=0,r.length=1):n>0?r.isub(this.p):void 0!==r.strip?r.strip():r._strip(),r},A.prototype.split=function(input,t){input.iushrn(this.n,0,t)},A.prototype.imulK=function(t){return t.imul(this.k)},o(x,A),x.prototype.split=function(input,output){for(var t=Math.min(input.length,9),i=0;i<t;i++)output.words[i]=input.words[i];if(output.length=t,input.length<=9)return input.words[0]=0,void(in
vendor: 4,914 bytes, line 11
11put.length=1);var e=input.words[9];for(output.words[output.length++]=4194303&e,i=10;i<input.length;i++){var r=0|input.words[i];input.words[i-10]=(4194303&r)<<4|e>>>22,e=r}e>>>=22,input.words[i-10]=e,0===e&&input.length>10?input.length-=10:input.length-=9},x.prototype.imulK=function(t){t.words[t.length]=0,t.words[t.length+1]=0,t.length+=2;for(var e=0,i=0;i<t.length;i++){var r=0|t.words[i];e+=977*r,t.words[i]=67108863&e,e=64*r+(e/67108864|0)}return 0===t.words[t.length-1]&&(t.length--,0===t.words[t.length-1]&&t.length--),t},o(k,A),o(E,A),o(C,A),C.prototype.imulK=function(t){for(var e=0,i=0;i<t.length;i++){var r=19*(0|t.words[i])+e,n=67108863&r;r>>>=26,t.words[i]=n,e=r}return 0!==e&&(t.words[t.length++]=e),t},h._prime=function(t){if(S[t])return S[t];var e;if("k256"===t)e=new x;else if("p224"===t)e=new k;else if("p192"===t)e=new E;else{if("p25519"!==t)throw new Error("Unknown prime "+t);e=new C}return S[t]=e,e},R.prototype._verify1=function(a){n(0===a.negative,"red works only with positives"),n(a.red,"red works only with red numbers")},R.prototype._verify2=function(a,b){n(0==(a.negative|b.negative),"red works only with positives"),n(a.red&&a.red===b.red,"red works only with red numbers")},R.prototype.imod=function(a){return this.prime?this.prime.ireduce(a)._forceRed(this):a.umod(this.m)._forceRed(this)},R.prototype.neg=function(a){return a.isZero()?a.clone():this.m.sub(a)._forceRed(this)},R.prototype.add=function(a,b){this._verify2(a,b);var t=a.add(b);return t.cmp(this.m)>=0&&t.isub(this.m),t._forceRed(this)},R.prototype.iadd=function(a,b){this._verify2(a,b);var t=a.iadd(b);return t.cmp(this.m)>=0&&t.isub(this.m),t},R.prototype.sub=function(a,b){this._verify2(a,b);var t=a.sub(b);return t.cmpn(0)<0&&t.iadd(this.m),t._forceRed(this)},R.prototype.isub=function(a,b){this._verify2(a,b);var t=a.isub(b);return t.cmpn(0)<0&&t.iadd(this.m),t},R.prototype.shl=function(a,t){return this._verify1(a),this.imod(a.ushln(t))},R.prototype.imul=function(a,b){return this._verify2(a,b),this.imod(a.imul(b))},R.prototype.mul=function(a,b){return this._verify2(a,b),this.imod(a.mul(b))},R.prototype.isqr=function(a){return this.imul(a,a.clone())},R.prototype.sqr=function(a){return this.mul(a,a)},R.prototype.sqrt=function(a){if(a.isZero())return a.clone();var t=this.m.andln(3);if(n(t%2==1),3===t){var e=this.m.add(new h(1)).iushrn(2);return this.pow(a,e)}for(var q=this.m.subn(1),s=0;!q.isZero()&&0===q.andln(1);)s++,q.iushrn(1);n(!q.isZero());var r=new h(1).toRed(this),o=r.redNeg(),c=this.m.subn(1).iushrn(1),f=this.m.bitLength();for(f=new h(2*f*f).toRed(this);0!==this.pow(f,c).cmp(o);)f.redIAdd(o);for(var l=this.pow(f,q),d=this.pow(a,q.addn(1).iushrn(1)),m=this.pow(a,q),v=s;0!==m.cmp(r);){for(var y=m,i=0;0!==y.cmp(r);i++)y=y.redSqr();n(i<v);var b=this.pow(l,new h(1).iushln(v-i-1));d=d.redMul(b),l=b.redSqr(),m=m.redMul(l),v=i}return d},R.prototype.invm=function(a){var t=a._invmp(this.m);return 0!==t.negative?(t.negative=0,this.imod(t).redNeg()):this.imod(t)},R.prototype.pow=function(a,t){if(t.isZero())return new h(1).toRed(this);if(0===t.cmpn(1))return a.clone();var e=new Array(16);e[0]=new h(1).toRed(this),e[1]=a;for(var i=2;i<e.length;i++)e[i]=this.mul(e[i-1],a);var r=e[0],n=0,o=0,c=t.bitLength()%26;for(0===c&&(c=26),i=t.length-1;i>=0;i--){for(var f=t.words[i],l=c-1;l>=0;l--){var d=f>>l&1;r!==e[0]&&(r=this.sqr(r)),0!==d||0!==n?(n<<=1,n|=d,(4===++o||0===i&&0===l)&&(r=this.mul(r,e[n]),o=0,n=0)):o=0}c=26}return r},R.prototype.convertTo=function(t){var e=t.umod(this.m);return e===t?e.clone():e},R.prototype.convertFrom=function(t){var e=t.clone();return e.red=null,e},h.mont=function(t){return new I(t)},o(I,R),I.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},I.prototype.convertFrom=function(t){var e=this.imod(t.mul(this.rinv));return e.red=null,e},I.prototype.imul=function(a,b){if(a.isZero()||b.isZero())return a.words[0]=0,a.length=1,a;var t=a.imul(b),e=t.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),u=t.isub(e).iushrn(this.shift),r=u;return u.cmp(this.m)>=0?r=u.isub(this.m):u.cmpn(0)<0&&(r=u.iadd(this.m)),r._forceRed(this)},I.prototype.mul=function(a,b){if(a.isZero()||b.isZero())return new h(0)._forceRed(this);var t=a.mul(b),e=t.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),u=t.isub(e).iushrn(this.shift),r=u;return u.cmp(this.m)>=0?r=u.isub(this.m):u.cmpn(0)<0&&(r=u.iadd(this.m)),r._forceRed(this)},I.prototype.invm=function(a){return this.imod(a._invmp(this.m).mul(this.r2))._forceRed(this)}}(t,this)}).call(this,r(57)(t))},function(t,e,r){"use strict";const n=e;n.der=r(273),n.pem=r(475)},function(t,e,r){"use strict";const n=r(6),o=r(173).Buffer,h=r(174),c=r(176);function f(t){this.enc="der",this.name=t.name,this.entity=t,this.tree=new l,this.tree._init(t.body)}function l(t){h.call(this,"der",t)}function d(t){return t<10?"0"+t:t}t.exports=f,f.prototype.encode=function(data,t){return this.tree._encode(d
vendor: 6,100 bytes, line 11
11ata,t).join()},n(l,h),l.prototype._encodeComposite=function(t,e,r,content){const n=function(t,e,r,n){let o;"seqof"===t?t="seq":"setof"===t&&(t="set");if(c.tagByName.hasOwnProperty(t))o=c.tagByName[t];else{if("number"!=typeof t||(0|t)!==t)return n.error("Unknown tag: "+t);o=t}if(o>=31)return n.error("Multi-octet tag encoding unsupported");e||(o|=32);return o|=c.tagClassByName[r||"universal"]<<6,o}(t,e,r,this.reporter);if(content.length<128){const header=o.alloc(2);return header[0]=n,header[1]=content.length,this._createEncoderBuffer([header,content])}let h=1;for(let i=content.length;i>=256;i>>=8)h++;const header=o.alloc(2+h);header[0]=n,header[1]=128|h;for(let i=1+h,t=content.length;t>0;i--,t>>=8)header[i]=255&t;return this._createEncoderBuffer([header,content])},l.prototype._encodeStr=function(t,e){if("bitstr"===e)return this._createEncoderBuffer([0|t.unused,t.data]);if("bmpstr"===e){const e=o.alloc(2*t.length);for(let i=0;i<t.length;i++)e.writeUInt16BE(t.charCodeAt(i),2*i);return this._createEncoderBuffer(e)}return"numstr"===e?this._isNumstr(t)?this._createEncoderBuffer(t):this.reporter.error("Encoding of string type: numstr supports only digits and space"):"printstr"===e?this._isPrintstr(t)?this._createEncoderBuffer(t):this.reporter.error("Encoding of string type: printstr supports only latin upper and lower case letters, digits, space, apostrophe, left and rigth parenthesis, plus sign, comma, hyphen, dot, slash, colon, equal sign, question mark"):/str$/.test(e)||"objDesc"===e?this._createEncoderBuffer(t):this.reporter.error("Encoding of string type: "+e+" unsupported")},l.prototype._encodeObjid=function(t,e,r){if("string"==typeof t){if(!e)return this.reporter.error("string objid given, but no values map found");if(!e.hasOwnProperty(t))return this.reporter.error("objid not found in values map");t=e[t].split(/[\s.]+/g);for(let i=0;i<t.length;i++)t[i]|=0}else if(Array.isArray(t)){t=t.slice();for(let i=0;i<t.length;i++)t[i]|=0}if(!Array.isArray(t))return this.reporter.error("objid() should be either array or string, got: "+JSON.stringify(t));if(!r){if(t[1]>=40)return this.reporter.error("Second objid identifier OOB");t.splice(0,2,40*t[0]+t[1])}let n=0;for(let i=0;i<t.length;i++){let e=t[i];for(n++;e>=128;e>>=7)n++}const h=o.alloc(n);let c=h.length-1;for(let i=t.length-1;i>=0;i--){let e=t[i];for(h[c--]=127&e;(e>>=7)>0;)h[c--]=128|127&e}return this._createEncoderBuffer(h)},l.prototype._encodeTime=function(time,t){let e;const r=new Date(time);return"gentime"===t?e=[d(r.getUTCFullYear()),d(r.getUTCMonth()+1),d(r.getUTCDate()),d(r.getUTCHours()),d(r.getUTCMinutes()),d(r.getUTCSeconds()),"Z"].join(""):"utctime"===t?e=[d(r.getUTCFullYear()%100),d(r.getUTCMonth()+1),d(r.getUTCDate()),d(r.getUTCHours()),d(r.getUTCMinutes()),d(r.getUTCSeconds()),"Z"].join(""):this.reporter.error("Encoding "+t+" time is not supported yet"),this._encodeStr(e,"octstr")},l.prototype._encodeNull=function(){return this._createEncoderBuffer("")},l.prototype._encodeInt=function(t,e){if("string"==typeof t){if(!e)return this.reporter.error("String int or enum given, but no values map");if(!e.hasOwnProperty(t))return this.reporter.error("Values map doesn't contain: "+JSON.stringify(t));t=e[t]}if("number"!=typeof t&&!o.isBuffer(t)){const e=t.toArray();!t.sign&&128&e[0]&&e.unshift(0),t=o.from(e)}if(o.isBuffer(t)){let e=t.length;0===t.length&&e++;const r=o.alloc(e);return t.copy(r),0===t.length&&(r[0]=0),this._createEncoderBuffer(r)}if(t<128)return this._createEncoderBuffer(t);if(t<256)return this._createEncoderBuffer([0,t]);let r=1;for(let i=t;i>=256;i>>=8)r++;const n=new Array(r);for(let i=n.length-1;i>=0;i--)n[i]=255&t,t>>=8;return 128&n[0]&&n.unshift(0),this._createEncoderBuffer(o.from(n))},l.prototype._encodeBool=function(t){return this._createEncoderBuffer(t?255:0)},l.prototype._use=function(t,e){return"function"==typeof t&&(t=t(e)),t._getEncoder("der").tree},l.prototype._skipDefault=function(t,e,r){const n=this._baseState;let i;if(null===n.default)return!1;const data=t.join();if(void 0===n.defaultBuffer&&(n.defaultBuffer=this._encodeValue(n.default,e,r).join()),data.length!==n.defaultBuffer.length)return!1;for(i=0;i<data.length;i++)if(data[i]!==n.defaultBuffer[i])return!1;return!0}},function(t,e,r){"use strict";const n=e;n.der=r(275),n.pem=r(476)},function(t,e,r){"use strict";const n=r(6),o=r(271),h=r(97).DecoderBuffer,c=r(174),f=r(176);function l(t){this.enc="der",this.name=t.name,this.entity=t,this.tree=new d,this.tree._init(t.body)}function d(t){c.call(this,"der",t)}function m(t,e){let r=t.readUInt8(e);if(t.isError(r))return r;const n=f.tagClass[r>>6],o=0==(32&r);if(31==(31&r)){let n=r;for(r=0;128==(128&n);){if(n=t.readUInt8(e),t.isError(n))return n;r<<=7,r|=127&n}}else r&=31;return{cls:n,primitive:o,tag:r,tagStr:f.tag[r]}}function v(t,e,r){let n=t.readUInt8(r);if(t.isError(n))return n;if(!e&&128===n)return null;if(0==(128&n))return n;const o=127&n;if(o>4)return t.error("length octect is too long");n=0;for(let i=0;i<o;i++){n<<=8;const e=t.readUInt8(r);if(t.isError(e))return e;n|=e}return n}t.exports=l,l.prototype.decode=function(data,t){return h.isDecoderBuffer(data)||(data=new h(data,t)),this.tree._decode(data,t)},n(d,c),d.prototype._peekTag=function(t,e,r){if(t.isEmpty())return!1;const n=t.save(),o=m(t,'Failed to peek tag: "'+e+'"');return t.isError(o)?o:(t.restore(n),o.tag===e||o.tagStr===e||o.tagStr+"of"===e||r)},d.prototype._decodeTag=function(t,e,r){const n=m(t,'Failed to decode tag of "'+e+'"');if(t.isError(n))return n;let o=v(t,n.primitive,'Failed to get length of "'+e+'"');if(t.isError(o))return o;if(!r&&n.tag!==e&&n.tagStr!==e&&n.tagStr+"of"!==e)return t.error('Failed to match tag: "'+e+'"');if(n.primitive||null!==o)return t.skip(o,'Failed to match body of: "'+e+'"');const h=t.save(),c=this._skipUntilEnd(t,'Failed to skip indefinite length body: "'+this.tag+'"');return t.isError(c)?c:(o=t.offset-h.offset,t.restore(h),t.skip(o,'Failed to match body of: "'+e+'"'))},d.prototype._skipUntilEnd=function(t,e){for(;;){const r=m(t,e);if(t.isError(r))return r;const n=v(t,r.primitive,e);if(t.isError(n))return n;let o;
11if(o=r.primitive||null!==n?t.skip(n):this._skipUntilEnd(t,e),t.isError(o))return o;if("end"===r.tagStr)break}},d.prototype._decodeList=function(t,e,r,n){const o=[];for(;!t.isEmpty();){const e=this._peekTag(t,"end");if(t.isError(e))return e;const h=r.decode(t,"der",n);if(t.isError(h)&&e)break;o.push(h)}return o},d.prototype._decodeStr=function(t,e){if("bitstr"===e){const e=t.readUInt8();return t.isError(e)?e:{unused:e,data:t.raw()}}if("bmpstr"===e){const e=t.raw();if(e.length%2==1)return t.error("Decoding of string type: bmpstr length mismatch");let r="";for(let i=0;i<e.length/2;i++)r+=String.fromCharCode(e.readUInt16BE(2*i));return r}if("numstr"===e){const e=t.raw().toString("ascii");return this._isNumstr(e)?e:t.error("Decoding of string type: numstr unsupported characters")}if("octstr"===e)return t.raw();if("objDesc"===e)return t.raw();if("printstr"===e){const e=t.raw().toString("ascii");return this._isPrintstr(e)?e:t.error("Decoding of string type: printstr unsupported characters")}return/str$/.test(e)?t.raw().toString():t.error("Decoding of string type: "+e+" unsupported")},d.prototype._decodeObjid=function(t,e,r){let n;const o=[];let h=0,c=0;for(;!t.isEmpty();)c=t.readUInt8(),h<<=7,h|=127&c,0==(128&c)&&(o.push(h),h=0);128&c&&o.push(h);const f=o[0]/40|0,l=o[0]%40;if(n=r?o:[f,l].concat(o.slice(1)),e){let t=e[n.join(" ")];void 0===t&&(t=e[n.join(".")]),void 0!==t&&(n=t)}return n},d.prototype._decodeTime=function(t,e){const r=t.raw().toString();let n,o,h,c,f,l;if("gentime"===e)n=0|r.slice(0,4),o=0|r.slice(4,6),h=0|r.slice(6,8),c=0|r.slice(8,10),f=0|r.slice(10,12),l=0|r.slice(12,14);else{if("utctime"!==e)return t.error("Decoding "+e+" time is not supported yet");n=0|r.slice(0,2),o=0|r.slice(2,4),h=0|r.slice(4,6),c=0|r.slice(6,8),f=0|r.slice(8,10),l=0|r.slice(10,12),n=n<70?2e3+n:1900+n}return Date.UTC(n,o-1,h,c,f,l,0)},d.prototype._decodeNull=function(){return null},d.prototype._decodeBool=function(t){const e=t.readUInt8();return t.isError(e)?e:0!==e},d.prototype._decodeInt=function(t,e){const r=t.raw();let n=new o(r);return e&&(n=e[n.toString(10)]||n),n},d.prototype._use=function(t,e){return"function"==typeof t&&(t=t(e)),t._getDecoder("der").tree}},function(t){t.exports=JSON.parse('{"1.3.132.0.10":"secp256k1","1.3.132.0.33":"p224","1.2.840.10045.3.1.1":"p192","1.2.840.10045.3.1.7":"p256","1.3.132.0.34":"p384","1.3.132.0.35":"p521"}')},function(t,e,r){var n=r(92),o=r(7).Buffer;function h(t){var e=o.allocUnsafe(4);return e.writeUInt32BE(t,0),e}t.exports=function(t,e){for(var r,c=o.alloc(0),i=0;c.length<e;)r=h(i++),c=o.concat([c,n("sha1").update(t).update(r).digest()]);return c.slice(0,e)}},function(t,e){t.exports=function(a,b){for(var t=a.length,i=-1;++i<t;)a[i]^=b[i];return a}},function(t,e,r){var n=r(177),o=r(7).Buffer;t.exports=function(t,e){return o.from(t.toRed(n.mont(e.modulus)).redPow(new n(e.publicExponent)).fromRed().toArray())}},function(t,e){var r="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof window.msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto);if(r){var n=new Uint8Array(16);t.exports=function(){return r(n),n}}else{var o=new Array(16);t.exports=function(){for(var t,i=0;i<16;i++)0==(3&i)&&(t=4294967296*Math.random()),o[i]=t>>>((3&i)<<3)&255;return o}}},function(t,e){for(var r=[],i=0;i<256;++i)r[i]=(i+256).toString(16).substr(1);t.exports=function(t,e){var i=e||0,n=r;return[n[t[i++]],n[t[i++]],n[t[i++]],n[t[i++]],"-",n[t[i++]],n[t[i++]],"-",n[t[i++]],n[t[i++]],"-",n[t[i++]],n[t[i++]],"-",n[t[i++]],n[t[i++]],n[t[i++]],n[t[i++]],n[t[i++]],n[t[i++]]].join("")}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Sha256=void 0;var n=r(283),o=r(284),h=r(73),c=r(178),f=function(){function t(t){t?(this.operation=function(t){return new Promise((function(e,r){var n=c.locateWindow().msCrypto.subtle.importKey("raw",l(t),o.SHA_256_HMAC_ALGO,!1,["sign"]);n.oncomplete=function(){n.result&&e(n.result),r("ImportKey completed without importing key.")},n.onerror=function(){r("ImportKey failed to import key.")}}))}(t).then((function(t){return c.locateWindow().msCrypto.subtle.sign(o.SHA_256_HMAC_ALGO,t)})),this.operation.catch((function(){}
11))):this.operation=Promise.resolve(c.locateWindow().msCrypto.subtle.digest("SHA-256"))}return t.prototype.update=function(t){var e=this;n.isEmptyData(t)||(this.operation=this.operation.then((function(r){return r.onerror=function(){e.operation=Promise.reject(new Error("Error encountered updating hash"))},r.process(l(t)),r})),this.operation.catch((function(){})))},t.prototype.digest=function(){return this.operation.then((function(t){return new Promise((function(e,r){t.onerror=function(){r("Error encountered finalizing hash")},t.oncomplete=function(){t.result&&e(new Uint8Array(t.result)),r("Error encountered finalizing hash")},t.finish()}))}))},t}();function l(data){return"string"==typeof data?h.fromUtf8(data):ArrayBuffer.isView(data)?new Uint8Array(data.buffer,data.byteOffset,data.byteLength/Uint8Array.BYTES_PER_ELEMENT):new Uint8Array(data)}e.Sha256=f},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.isEmptyData=void 0,e.isEmptyData=function(data){return"string"==typeof data?0===data.length:0===data.byteLength}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.EMPTY_DATA_SHA_256=e.SHA_256_HMAC_ALGO=e.SHA_256_HASH=void 0,e.SHA_256_HASH={name:"SHA-256"},e.SHA_256_HMAC_ALGO={name:"HMAC",hash:e.SHA_256_HASH},e.EMPTY_DATA_SHA_256=new Uint8Array([227,176,196,66,152,252,28,20,154,251,244,200,153,111,185,36,39,174,65,228,100,155,147,76,164,149,153,27,120,82,184,85])},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Sha256=void 0;var n=r(73),o=r(283),h=r(284),c=r(178),f=function(){function t(t){this.toHash=new Uint8Array(0),void 0!==t&&(this.key=new Promise((function(e,r){c.locateWindow().crypto.subtle.importKey("raw",l(t),h.SHA_256_HMAC_ALGO,!1,["sign"]).then(e,r)})),this.key.catch((function(){})))}return t.prototype.update=function(data){if(!o.isEmptyData(data)){var t=l(data),e=new Uint8Array(this.toHash.byteLength+t.byteLength);e.set(this.toHash,0),e.set(t,this.toHash.byteLength),this.toHash=e}},t.prototype.digest=function(){var t=this;return this.key?this.key.then((function(e){return c.locateWindow().crypto.subtle.sign(h.SHA_256_HMAC_ALGO,e,t.toHash).then((function(data){return new Uint8Array(data)}))})):o.isEmptyData(this.toHash)?Promise.resolve(h.EMPTY_DATA_SHA_256):Promise.resolve().then((function(){return c.locateWindow().crypto.subtle.digest(h.SHA_256_HASH,t.toHash)})).then((function(data){return Promise.resolve(new Uint8Array(data))}))},t}();function l(data){return"string"==typeof data?n.fromUtf8(data):ArrayBuffer.isView(data)?new Uint8Array(data.buffer,data.byteOffset,data.byteLength/Uint8Array.BYTES_PER_ELEMENT):new Uint8Array(data)}e.Sha256=f},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.MAX_HASHABLE_LENGTH=e.INIT=e.KEY=e.DIGEST_LENGTH=e.BLOCK_SIZE=void 0,e.BLOCK_SIZE=64,e.DIGEST_LENGTH=32,e.KEY=new Uint32Array([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]),e.INIT=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],e.MAX_HASHABLE_LENGTH=Math.pow(2,53)-1},,,,,function(t,e,r){"use strict";var n=function(t){return function(t){return!!t&&"object"==typeof t}(t)&&!function(t){var e=Object.prototype.toString.call(t);return"[object RegExp]"===e||"[object Date]"===e||function(t){return t.$$typeof===o}(t)}(t)};var o="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function h(t,e){return!1!==e.clone&&e.isMergeableObject(t)?m((r=t,Array.isArray(r)?[]:{}),t,e):t;var r}function c(t,source,e){return t.concat(source).map((function(element){return h(element,e)}))}function f(t){return Object.keys(t).concat(function(t){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(t).filter((function(symbol){return t.propertyIsEnumerable(symbol)})):[]}(t))}function l(object,t){try{return t in object}catch(t){return!1}}function d(t,source,e){var r={};return e.isMergeableObject(t)&&f(t).forEach((function(n){r[n]=h(t[n],e)})),f(source).forEach((function(n){(function(t,e){return l(t,e)&&!(Object.hasOwnProperty.call(t,e)&&Object.propertyIsEnumerable.call(t,e))})(t,n)||(l(t,n)&&e.isMergeableObject(source[n])?r[n]=function(t,e){if(!e.customMerge)return m;var r=e.customMerge(t);return"function"==typeof r?r:m}(n,e)(t[n],source[n],e):r[n]=h(source[n],e))})),r}function m(t,source,e){(e=e||{}).arrayMerge=e.arrayMerge||c,e.isMergeableObject=e.isMergeableObject||n,e.cloneUnlessOtherwiseSpecified=h;var r=Array.isArray(source);return r===Array.isArray(t)?r?e.arrayMerge(t,source,e):d(t,source,e):h(source,e)}m.all=function(t,e){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce((function(t,r){return m(t,r,e)}),{})};var v=m;
vendor: 10,215 bytes, line 11
11t.exports=v},function(t,e,r){"use strict";var n=r(357),o=r(212),h=r(214);function c(t,e,r){return new n(t,e,r)}c.version=r(218),c.AlgoliaSearchHelper=n,c.SearchParameters=o,c.SearchResults=h,t.exports=c},function(t,e,r){t.exports=function(){"use strict";function t(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function e(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function r(r){for(var n=1;n<arguments.length;n++){var o=null!=arguments[n]?arguments[n]:{};n%2?e(Object(o),!0).forEach((function(e){t(r,e,o[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(o)):e(Object(o)).forEach((function(t){Object.defineProperty(r,t,Object.getOwnPropertyDescriptor(o,t))}))}return r}function n(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t)){var r=[],n=!0,o=!1,a=void 0;try{for(var u,i=t[Symbol.iterator]();!(n=(u=i.next()).done)&&(r.push(u.value),!e||r.length!==e);n=!0);}catch(t){o=!0,a=t}finally{try{n||null==i.return||i.return()}finally{if(o)throw a}}return r}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function a(t){return function(t){if(Array.isArray(t)){for(var e=0,r=new Array(t.length);e<t.length;e++)r[e]=t[e];return r}}(t)||function(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function u(t){var e,r="algoliasearch-client-js-".concat(t.key),o=function(){return void 0===e&&(e=t.localStorage||window.localStorage),e},a=function(){return JSON.parse(o().getItem(r)||"{}")};return{get:function(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{miss:function(){return Promise.resolve()}};return Promise.resolve().then((function(){var r=JSON.stringify(t),n=a()[r];return Promise.all([n||e(),void 0!==n])})).then((function(t){var e=n(t,2),o=e[0],a=e[1];return Promise.all([o,a||r.miss(o)])})).then((function(t){return n(t,1)[0]}))},set:function(t,e){return Promise.resolve().then((function(){var n=a();return n[JSON.stringify(t)]=e,o().setItem(r,JSON.stringify(n)),e}))},delete:function(t){return Promise.resolve().then((function(){var e=a();delete e[JSON.stringify(t)],o().setItem(r,JSON.stringify(e))}))},clear:function(){return Promise.resolve().then((function(){o().removeItem(r)}))}}}function i(t){var e=a(t.caches),r=e.shift();return void 0===r?{get:function(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{miss:function(){return Promise.resolve()}},o=e();return o.then((function(t){return Promise.all([t,r.miss(t)])})).then((function(t){return n(t,1)[0]}))},set:function(t,e){return Promise.resolve(e)},delete:function(t){return Promise.resolve()},clear:function(){return Promise.resolve()}}:{get:function(t,n){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{miss:function(){return Promise.resolve()}};return r.get(t,n,o).catch((function(){return i({caches:e}).get(t,n,o)}))},set:function(t,n){return r.set(t,n).catch((function(){return i({caches:e}).set(t,n)}))},delete:function(t){return r.delete(t).catch((function(){return i({caches:e}).delete(t)}))},clear:function(){return r.clear().catch((function(){return i({caches:e}).clear()}))}}}function s(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{serializable:!0},e={};return{get:function(r,n){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{miss:function(){return Promise.resolve()}},a=JSON.stringify(r);if(a in e)return Promise.resolve(t.serializable?JSON.parse(e[a]):e[a]);var u=n(),i=o&&o.miss||function(){return Promise.resolve()};return u.then((function(t){return i(t)})).then((function(){return u}))},set:function(r,n){return e[JSON.stringify(r)]=t.serializable?JSON.stringify(n):n,Promise.resolve(n)},delete:function(t){return delete e[JSON.stringify(t)],Promise.resolve()},clear:function(){return e={},Promise.resolve()}}}function o(t){for(var e=t.length-1;e>0;e--){var r=Math.floor(Math.random()*(e+1)),n=t[e];t[e]=t[r],t[r]=n}return t}function h(t,e){return e?(Object.keys(e).forEach((function(r){t[r]=e[r](t)})),t):t}function c(t){for(var e=arguments.length,r=new Array(e>1?e-1:0),n=1;n<e;n++)r[n-1]=arguments[n];var o=0;return t.replace(/%s/g,(function(){return encodeURIComponent(r[o++])}))}var f=0,l=1;function d(t,e){var r=t||{},n=r.data||{};return Object.keys(r).forEach((function(t){-1===["timeout","headers","queryParameters","data","cacheable"].indexOf(t)&&(n[t]=r[t])})),{data:Object.entries(n).length>0?n:void 0,timeout:r.timeout||e,headers:r.headers||{},queryParameters:r.queryParameters||{},cacheable:r.cacheable}}var m={Read:1,Write:2,Any:3};function g(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return r(r({},t),{},{status:e,lastUpdate:Date.now()})}function b(t){return"string"==typeof t?{protocol:"https",url:t,accept:m.Any}:{protocol:t.protocol||"https",url:t.url,accept:t.accept||m.Any}}var v="POST";function y(t,e,n,o){var u=[],i=function(t,e){if("GET"!==t.method&&(void 0!==t.data||void 0!==e.data)){var n=Array.isArray(t.data)?t.data:r(r({},t.data),e.data);return JSON.stringify(n)}}(n,o),s=function(t,e){var n=r(r({},t.headers),e.headers),o={};return Object.keys(n).forEach((function(t){var e=n[t];o[t.toLowerCase()]=e})),o}(t,o),h=n.method,c="GET"!==n.method?{}:r(r({},n.data),o.data),f=r(r(r({"x-algolia-agent":t.userAgent.value},t.queryParameters),c),o.queryParameters),l=0,d=function e(r,a){var c=r.pop();if(void 0===c)throw{name:"RetryError",message:"Unreachable hosts - your application id may be incorrect. If the error persists, contact [email protected].",transporterStackTrace:S(u)};var d={data:i,headers:s,method:h,url:M(c,n.path,f),connectTimeout:a(l,t.timeouts.connect),responseTimeout:a(l,o.timeout)},m=function(t){var e={request:d,response:t,host:c,triesLeft:r.length};return u.push(e),e},p={onSucess:function(t){return function(t){try{return JSON.parse(t.content)}catch(e){throw function(t,e){return{name:"DeserializationError",message:t,response:e}}(e.message,t)}}(t)},onRetry:function(n){var o=m(n);return n.isTimedOut&&l++,Promise.all([t.logger.info("Retryable failure",A(o)),t.hostsCache.set(c,g(c,n.isTimedOut?3:2))]).then((function(){return e(r,a)}))},onFail:function(t){throw m(t),function(t,e){var r=t.content,n=t.status,o=r;try{o=JSON.parse(r).message}catch(t){}return function(t,e,r){return{name:"ApiError",message:t,status:e,transporterStackTrace:r}}(o,n,e)}(t,S(u))}};return t.requester.send(d).then((function(t){return function(t,e){return function(t){var e=t.status;return t.isTimedOut||function(t){var e=t.isTimedOut,r=t.status;return!e&&0==~~r}(t)||2!=~~(e/100)&&4!=~~(e/100)}(t)?e.onRetry(t):2==~~(t.status/100)?e.onSucess(t):e.onFail(t)}(t,p)}))};return function(t,e){return Promise.all(e.map((function(e){return t.get(e,(function(){return Promise.resolve(g(e))}))}))).then((function(t){var r=t.filter((function(t){return function(t){return 1===t.status||Date.now()-t.lastUpdate>12e4}(t)})),n=t.filter((function(t){return function(t){return 3===t.status&&Date.now()-t.lastUpdate<=12e4}(t)})),o=[].concat(a(r),a(n));return{getTimeout:function(t,e){return(0===n.length&&0===t?1:n.length+3+t)*e},statelessHosts:o.length>0?o.map((function(t){return b(t)})):e}}))}(t.hostsCache,e).then((function(t){return d(a(t.statelessHosts).reverse(),t.getTimeout)}))}function w(t){var e={value:"Algolia for JavaScript (".concat(t,")"),add:function(t){var r="; ".concat(t.segment).concat(void 0!==t.version?" (".concat(t.version,")"):"");return-1===e.value.indexOf(r)&&(e.value="".concat(e.value).concat(r)),e}};return e}function M(t,e,r){var n=_(r),o="".concat(t.protocol,"://").concat(t.url,"/").concat("/"===e.charAt(0)?e.substr(1):e);return n.length&&(o+="?".concat(n)),o}function _(t){return Object.keys(t).map((function(e){return c("%s=%s",e,(r=t[e],"[object Object]"===Object.prototype.toString.call(r)||"[object Array]"===Object.prototype.toString.call(r)?JSON.stringify(t[e]):t[e]));var r})).join("&")}function S(t){return t.map((function(t){return A(t)}))}function A(t){var e=t.request.headers["x-algolia-api-key"]?{"x-algolia-api-key":"*****"}:{};return r(r({},t),{},{request:r(r({},t.request),{},{headers:r(r({},t.request.headers),e)})})}var x=function(t){var e=t.appId,c=function(t,e,r){var n={"x-algolia-api-key":r,"x-algolia-application-id":e};return{headers:function(){return t===l?n:{}},queryParameters:function(){return t===f?n:{}}}}(void 0!==t.authMode?t.authMode:l,e,t.apiKey),a=function(t){var e=t.hostsCache,r=t.logger,o=t.requester,a=t.requestsCache,u=t.responsesCache,i=t.timeouts,s=t.userAgent,h=t.hosts,c=t.queryParameters,f={hostsCache:e,logger:r,requester:o,requestsCache:a,responsesCache:u,timeouts:i,userAgent:s,headers:t.headers,queryParameters:c,hosts:h.map((function(t){return b(t)})),read:function(t,e){var r=d(e,f.timeouts.read),o=function(){return y(f,f.hosts.filter((function(t){return 0!=(t.accept&m.Read)})),t,r)};if(!0!==(void 0!==r.cacheable?r.cacheable:t.cacheable))return o();var a={request:t,mappedRequestOptions:r,transporter:{queryParameters:f.queryParameters,headers:f.headers}};return f.responsesCache.get(a,(function(){return f.requestsCache.get(a,(function(){return f.requestsCache.set(a,o()).then((function(t){return Promise.all([f.requestsCache.delete(a),t])}),(function(t){return Promise.all([f.requestsCache.delete(a),Promise.reject(t)])})).then((function(t){var e=n(t,2);return e[0],e[1]}))}))}),{miss:function(t){return f.responsesCache.set(a,t)}})},write:function(t,e){return y(f,f.hosts.filter((function(t){return 0!=(t.accept&m.Write)})),t,d(e,f.timeouts.write))}};return f}(r(r({hosts:[{url:"".concat(e,"-dsn.algolia.net"),accept:m.Read},{url:"".concat(e,".algolia.net"),accept:m.Write}].concat(o([{url:"".concat(e,"-1.algolianet.com")},{url:"".concat(e,"-2.algolianet.com")},{url:"".concat(e,"-3.algolianet.com")}]))},t),{},{headers:r(r(r({}
11,c.headers()),{"content-type":"application/x-www-form-urlencoded"}),t.headers),queryParameters:r(r({},c.queryParameters()),t.queryParameters)}));return h({transporter:a,appId:e,addAlgoliaAgent:function(t,e){a.userAgent.add({segment:t,version:e})},clearCache:function(){return Promise.all([a.requestsCache.clear(),a.responsesCache.clear()]).then((function(){}))}},t.methods)},k=function(t){return function(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={transporter:t.transporter,appId:t.appId,indexName:e};return h(n,r.methods)}},E=function(t){return function(e,n){var o=e.map((function(t){return r(r({},t),{},{params:_(t.params||{})})}));return t.transporter.read({method:v,path:"1/indexes/*/queries",data:{requests:o},cacheable:!0},n)}},C=function(t){return function(e,n){return Promise.all(e.map((function(e){var a=e.params,u=a.facetName,i=a.facetQuery,s=function(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r,n,o={},a=Object.keys(t);for(n=0;n<a.length;n++)r=a[n],e.indexOf(r)>=0||(o[r]=t[r]);return o}(t,e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(n=0;n<a.length;n++)r=a[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}(a,["facetName","facetQuery"]);return k(t)(e.indexName,{methods:{searchForFacetValues:P}}).searchForFacetValues(u,i,r(r({},n),s))})))}},R=function(t){return function(e,r,n){return t.transporter.read({method:v,path:c("1/answers/%s/prediction",t.indexName),data:{query:e,queryLanguages:r},cacheable:!0},n)}},I=function(t){return function(e,r){return t.transporter.read({method:v,path:c("1/indexes/%s/query",t.indexName),data:{query:e},cacheable:!0},r)}},P=function(t){return function(e,r,n){return t.transporter.read({method:v,path:c("1/indexes/%s/facets/%s/query",t.indexName,e),data:{facetQuery:r},cacheable:!0},n)}};function T(t,e,n){var a={appId:t,apiKey:e,timeouts:{connect:1,read:2,write:30},requester:{send:function(t){return new Promise((function(e){var r=new XMLHttpRequest;r.open(t.method,t.url,!0),Object.keys(t.headers).forEach((function(e){return r.setRequestHeader(e,t.headers[e])}));var n,o=function(t,n){return setTimeout((function(){r.abort(),e({status:0,content:n,isTimedOut:!0})}),1e3*t)},a=o(t.connectTimeout,"Connection timeout");r.onreadystatechange=function(){r.readyState>r.OPENED&&void 0===n&&(clearTimeout(a),n=o(t.responseTimeout,"Socket timeout"))},r.onerror=function(){0===r.status&&(clearTimeout(a),clearTimeout(n),e({content:r.responseText||"Network request failed",status:r.status,isTimedOut:!1}))},r.onload=function(){clearTimeout(a),clearTimeout(n),e({content:r.responseText,status:r.status,isTimedOut:!1})},r.send(t.data)}))}},logger:{debug:function(t,e){return Promise.resolve()},info:function(t,e){return Promise.resolve()},error:function(t,e){return console.error(t,e),Promise.resolve()}},responsesCache:s(),requestsCache:s({serializable:!1}),hostsCache:i({caches:[u({key:"".concat("4.8.3","-").concat(t)}),s()]}),userAgent:w("4.8.3").add({segment:"Browser",version:"lite"}),authMode:f};return x(r(r(r({},a),n),{},{methods:{search:E,searchForFacetValues:C,multipleQueries:E,multipleSearchForFacetValues:C,initIndex:function(t){return function(e){return k(t)(e,{methods:{search:I,searchForFacetValues:P,findAnswers:R}})}}}}))}return T.version="4.8.3",T}()},function(t,e,r){"use strict";function n(t){this.message=t}n.prototype=new Error,n.prototype.name="InvalidCharacterError";var o="undefined"!=typeof window&&window.atob&&window.atob.bind(window)||function(t){var e=String(t).replace(/=+$/,"");if(e.length%4==1)throw new n("'atob' failed: The string to be decoded is not correctly encoded.");for(var r,o,a=0,i=0,h="";o=e.charAt(i++);~o&&(r=a%4?64*r+o:o,a++%4)?h+=String.fromCharCode(255&r>>(-2*a&6)):0)o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(o);return h};function h(t){var e=t.replace(/-/g,"+").replace(/_/g,"/");switch(e.length%4){case 0:break;case 2:e+="==";break;case 3:e+="=";break;default:throw"Illegal base64url string!"}try{return function(t){return decodeURIComponent(o(t).replace(/(.)/g,(function(t,e){var r=e.charCodeAt(0).toString(16).toUpperCase();return r.length<2&&(r="0"+r),"%"+r})))}(e)}catch(t){return o(e)}}function c(t){this.message=t}c.prototype=new Error,c.prototype.name="InvalidTokenError",e.a=function(t,e){if("string"!=typeof t)throw new c("Invalid token specified");var r=!0===(e=e||{}).header?0:1;try{return JSON.parse(h(t.split(".")[r]))}catch(t){throw new c("Invalid token specified: "+t.message)}}},function(t,e,r){"use strict";function n(t){return null!==t&&"object"==typeof t}function o(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:".",h=arguments.length>3?arguments[3]:void 0;if(!n(e))return o(t,{},r,h);var c=Object.assign({},e);for(var f in t)if("__proto__"!==f&&"constructor"!==f){var l=t[f];null!==l&&(h&&h(c,f,l,r)||(Array.isArray(l)&&Array.isArray(c[f])?c[f]=c[f].concat(l):n(l)&&n(c[f])?c[f]=o(l,c[f],(r?"".concat(r,"."):"")+f.toString(),h):c[f]=l))}return c}function h(t){return function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return r.reduce((function(p,e){return o(p,e,"",t)}),{})}}var c=h();c.fn=h((function(t,e,r,n){if(void 0!==t[e]&&"function"==typeof r)return t[e]=r(t[e]),!0})),c.arrayFn=h((function(t,e,r,n){if(Array.isArray(t[e])&&"function"==typeof r)return t[e]=r(t[e]),!0})),c.extend=h,t.exports=c},,function(t,e,r){"use strict";(function(t){var n;if(r.d(e,"a",(function(){return o}
11)),"undefined"!=typeof window&&window.crypto&&(n=window.crypto),!n&&"undefined"!=typeof window&&window.msCrypto&&(n=window.msCrypto),!n&&void 0!==t&&t.crypto&&(n=t.crypto),!n)try{n=r(402)}catch(t){}function o(){if(n){if("function"==typeof n.getRandomValues)try{return n.getRandomValues(new Uint32Array(1))[0]}catch(t){}if("function"==typeof n.randomBytes)try{return n.randomBytes(4).readInt32LE()}catch(t){}}throw new Error("Native crypto module could not be used to get secure random number.")}}).call(this,r(18))},function(t,e,r){"use strict";r.d(e,"a",(function(){return h}));var n={},o=function(){function t(){}return t.setItem=function(t,e){return n[t]=e,n[t]},t.getItem=function(t){return Object.prototype.hasOwnProperty.call(n,t)?n[t]:void 0},t.removeItem=function(t){return delete n[t]},t.clear=function(){return n={}},t}(),h=function(){function t(){try{this.storageWindow=window.localStorage,this.storageWindow.setItem("aws.amplify.test-ls",1),this.storageWindow.removeItem("aws.amplify.test-ls")}catch(t){this.storageWindow=o}}return t.prototype.getStorage=function(){return this.storageWindow},t}()},function(t,e,r){var n=r(497),o=r(498),h=o;h.v1=n,h.v4=o,t.exports=h},function(t,e,r){"use strict";r.d(e,"a",(function(){return n}));var n=function(t){return"function"==typeof ArrayBuffer&&t instanceof ArrayBuffer||"[object ArrayBuffer]"===Object.prototype.toString.call(t)}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),r(0).__exportStar(r(499),e);var n=r(282);Object.defineProperty(e,"Ie11Sha256",{enumerable:!0,get:function(){return n.Sha256}});var o=r(285);Object.defineProperty(e,"WebCryptoSha256",{enumerable:!0,get:function(){return o.Sha256}})},function(t,e,r){"use strict";r.d(e,"a",(function(){return h}));var n=r(0),o=r(47);function h(t){var e,r,h=[];try{for(var c=Object(n.__values)(Object.keys(t).sort()),f=c.next();!f.done;f=c.next()){var l=f.value,d=t[l];if(l=Object(o.a)(l),Array.isArray(d))for(var i=0,m=d.length;i<m;i++)h.push(l+"="+Object(o.a)(d[i]));else{var v=l;(d||"string"==typeof d)&&(v+="="+Object(o.a)(d)),h.push(v)}}}catch(t){e={error:t}}finally{try{f&&!f.done&&(r=c.return)&&r.call(c)}finally{if(e)throw e.error}}return h.join("&")}},function(t,e,r){"use strict";r.d(e,"a",(function(){return o}));var n=r(0);function o(t){var e,r,o={};if(t=t.replace(/^\?/,""))try{for(var h=Object(n.__values)(t.split("&")),c=h.next();!c.done;c=h.next()){var f=c.value,l=Object(n.__read)(f.split("="),2),d=l[0],m=l[1],v=void 0===m?null:m;d=decodeURIComponent(d),v&&(v=decodeURIComponent(v)),d in o?Array.isArray(o[d])?o[d].push(v):o[d]=[o[d],v]:o[d]=v}}catch(t){e={error:t}}finally{try{c&&!c.done&&(r=h.return)&&r.call(h)}finally{if(e)throw e.error}}return o}},,function(t,e,r){"use strict";r.d(e,"a",(function(){return P}));var n=r(0),o="X-Amz-Date".toLowerCase(),h=["authorization",o,"date"],c="X-Amz-Signature".toLowerCase(),f="X-Amz-Security-Token".toLowerCase(),l={authorization:!0,"cache-control":!0,connection:!0,expect:!0,from:!0,"keep-alive":!0,"max-forwards":!0,pragma:!0,referer:!0,te:!0,trailer:!0,"transfer-encoding":!0,upgrade:!0,"user-agent":!0,"x-amzn-trace-id":!0},d=/^proxy-/,m=/^sec-/,v="AWS4-HMAC-SHA256-PAYLOAD",y={},w=[];function M(t,e,r){return t+"/"+e+"/"+r+"/aws4_request"}var _=r(64);function S(t,e,r){var o,h,c=t.headers,f={};try{for(var v=Object(n.__values)(Object.keys(c).sort()),y=v.next();!y.done;y=v.next()){var w=y.value,M=w.toLowerCase();(M in l||(null==e?void 0:e.has(M))||d.test(M)||m.test(M))&&(!r||r&&!r.has(M))||(f[M]=c[w].trim().replace(/\s+/g," "))}}catch(t){o={error:t}}finally{try{y&&!y.done&&(h=v.return)&&h.call(v)}finally{if(o)throw o.error}}return f}var A=r(47);var x=r(300);function k(t,e){var r=t.headers,body=t.body;return Object(n.__awaiter)(this,void 0,void 0,(function(){var t,o,h,c,f,l,d;return Object(n.__generator)(this,(function(m){switch(m.label){case 0:try{for(t=Object(n.__values)(Object.keys(r)),o=t.next();!o.done;o=t.next())if("x-amz-content-sha256"===(h=o.value).toLowerCase())return[2,r[h]]}catch(t){l={error:t}}finally{try{o&&!o.done&&(d=t.return)&&d.call(t)}finally{if(l)throw l.error}}return null!=body?[3,1]:[2,"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"];case 1:return"string"==typeof body||ArrayBuffer.isView(body)||Object(x.a)(body)?((c=new e).update(body),f=_.a,[4,c.digest()]):[3,3];case 2:return[2,f.apply(void 0,[m.sent()])];case 3:return[2,"UNSIGNED-PAYLOAD"]}}))}))}
11function E(t){var e=t.headers,r=t.query,o=Object(n.__rest)(t,["headers","query"]);return Object(n.__assign)(Object(n.__assign)({},o),{headers:Object(n.__assign)({},e),query:r?C(r):void 0})}function C(t){return Object.keys(t).reduce((function(e,r){var o,param=t[r];return Object(n.__assign)(Object(n.__assign)({},e),((o={})[r]=Array.isArray(param)?Object(n.__spread)(param):param,o))}),{})}function R(t){var e,r;t="function"==typeof t.clone?t.clone():E(t);try{for(var o=Object(n.__values)(Object.keys(t.headers)),c=o.next();!c.done;c=o.next()){var f=c.value;h.indexOf(f.toLowerCase())>-1&&delete t.headers[f]}}catch(t){e={error:t}}finally{try{c&&!c.done&&(r=o.return)&&r.call(o)}finally{if(e)throw e.error}}return t}function I(time){return function(time){if("number"==typeof time)return new Date(1e3*time);if("string"==typeof time)return Number(time)?new Date(1e3*Number(time)):new Date(time);return time}(time).toISOString().replace(/\.\d{3}Z$/,"Z")}var P=function(){function t(t){var e=t.applyChecksum,r=t.credentials,n=t.region,o=t.service,h=t.sha256,c=t.uriEscapePath,f=void 0===c||c;this.service=o,this.sha256=h,this.uriEscapePath=f,this.applyChecksum="boolean"!=typeof e||e,this.regionProvider=j(n),this.credentialProvider=U(r)}return t.prototype.presign=function(t,e){return void 0===e&&(e={}),Object(n.__awaiter)(this,void 0,void 0,(function(){var r,o,h,c,f,l,d,m,v,y,w,_,A,x,C,I,P,j,U,B,D,F,L;return Object(n.__generator)(this,(function(N){switch(N.label){case 0:return r=e.signingDate,o=void 0===r?new Date:r,h=e.expiresIn,c=void 0===h?3600:h,f=e.unsignableHeaders,l=e.signableHeaders,d=e.signingRegion,m=e.signingService,[4,this.credentialProvider()];case 1:return v=N.sent(),null==d?[3,2]:(w=d,[3,4]);case 2:return[4,this.regionProvider()];case 3:w=N.sent(),N.label=4;case 4:return y=w,_=T(o),A=_.longDate,x=_.shortDate,c>604800?[2,Promise.reject("Signature version 4 presigned URLs must have an expiration date less than one week in the future")]:(C=M(x,y,null!=m?m:this.service),I=function(t){var e,r,o="function"==typeof t.clone?t.clone():E(t),h=o.headers,c=o.query,f=void 0===c?{}:c;try{for(var l=Object(n.__values)(Object.keys(h)),d=l.next();!d.done;d=l.next()){var m=d.value;"x-amz-"===m.toLowerCase().substr(0,6)&&(f[m]=h[m],delete h[m])}}catch(t){e={error:t}}finally{try{d&&!d.done&&(r=l.return)&&r.call(l)}finally{if(e)throw e.error}}return Object(n.__assign)(Object(n.__assign)({},t),{headers:h,query:f})}(R(t)),v.sessionToken&&(I.query["X-Amz-Security-Token"]=v.sessionToken),I.query["X-Amz-Algorithm"]="AWS4-HMAC-SHA256",I.query["X-Amz-Credential"]=v.accessKeyId+"/"+C,I.query["X-Amz-Date"]=A,I.query["X-Amz-Expires"]=c.toString(10),P=S(I,f,l),I.query["X-Amz-SignedHeaders"]=O(P),j=I.query,U="X-Amz-Signature",B=this.getSignature,D=[A,C,this.get
11SigningKey(v,y,x,m)],F=this.createCanonicalRequest,L=[I,P],[4,k(t,this.sha256)]);case 5:return[4,B.apply(this,D.concat([F.apply(this,L.concat([N.sent()]))]))];case 6:return j[U]=N.sent(),[2,I]}}))}))},t.prototype.sign=function(t,e){return Object(n.__awaiter)(this,void 0,void 0,(function(){return Object(n.__generator)(this,(function(r){return"string"==typeof t?[2,this.signString(t,e)]:t.headers&&t.payload?[2,this.signEvent(t,e)]:[2,this.signRequest(t,e)]}))}))},t.prototype.signEvent=function(t,e){var r=t.headers,o=t.payload,h=e.signingDate,c=void 0===h?new Date:h,f=e.priorSignature,l=e.signingRegion,d=e.signingService;return Object(n.__awaiter)(this,void 0,void 0,(function(){var t,e,h,m,y,w,S,A,x,E,C;return Object(n.__generator)(this,(function(n){switch(n.label){case 0:return null==l?[3,1]:(e=l,[3,3]);case 1:return[4,this.regionProvider()];case 2:e=n.sent(),n.label=3;case 3:return t=e,h=T(c),m=h.shortDate,y=h.longDate,w=M(m,t,null!=d?d:this.service),[4,k({headers:{},body:o},this.sha256)];case 4:return S=n.sent(),(A=new this.sha256).update(r),E=_.a,[4,A.digest()];case 5:return x=E.apply(void 0,[n.sent()]),C=[v,y,w,f,x,S].join("\n"),[2,this.signString(C,{signingDate:c,signingRegion:t,signingService:d})]}}))}))},t.prototype.signString=function(t,e){var r=void 0===e?{}:e,o=r.signingDate,h=void 0===o?new Date:o,c=r.signingRegion,f=r.signingService;return Object(n.__awaiter)(this,void 0,void 0,(function(){var e,r,o,l,d,m,v,y;return Object(n.__generator)(this,(function(n){switch(n.label){case 0:return[4,this.credentialProvider()];case 1:return e=n.sent(),null==c?[3,2]:(o=c,[3,4]);case 2:return[4,this.regionProvider()];case 3:o=n.sent(),n.label=4;case 4:return r=o,l=T(h).shortDate,v=(m=this.sha256).bind,[4,this.getSigningKey(e,r,l,f)];case 5:return(d=new(v.apply(m,[void 0,n.sent()]))).update(t),y=_.a,[4,d.digest()];case 6:return[2,y.apply(void 0,[n.sent()])]}}))}))},t.prototype.signRequest=function(t,e){var r=void 0===e?{}:e,h=r.signingDate,c=void 0===h?new Date:h,l=r.signableHeaders,d=r.unsignableHeaders,m=r.signingRegion,v=r.signingService;return Object(n.__awaiter)(this,void 0,void 0,(function(){var e,r,h,y,w,_,A,x,E,C,I;return Object(n.__generator)(this,(function(P){switch(P.label){case 0:return[4,this.credentialProvider()];case 1:return e=P.sent(),null==m?[3,2]:(h=m,[3,4]);case 2:return[4,this.regionProvider()];case 3:h=P.sent(),P.label=4;case 4:return r=h,y=R(t),w=T(c),_=w.longDate,A=w.shortDate,x=M(A,r,null!=v?v:this.service),y.headers[o]=_,e.sessionToken&&(y.headers[f]=e.sessionToken),[4,k(y,this.sha256)];case 5:return E=P.sent(),!function(t,e){var r,o;t=t.toLowerCase();try{for(var h=Object(n.__values)(Object.keys(e)),c=h.next();!c.done;c=h.next()){if(t===c.value.toLowerCase())return!0}}catch(t){r={error:t}}finally{try{c&&!c.done&&(o=h.return)&&o.call(h)}finally{if(r)throw r.error}}return!1}("x-amz-content-sha256",y.headers)&&this.applyChecksum&&(y.headers["x-amz-content-sha256"]=E),C=S(y,d,l),[4,this.getSignature(_,x,this.getSigningKey(e,r,A,v),this.createCanonicalRequest(y,C,E))];case 6:return I=P.sent(),y.headers.authorization="AWS4-HMAC-SHA256 Credential="+e.accessKeyId+"/"+x+", SignedHeaders="+O(C)+", Signature="+I,[2,y]}}))}))},t.prototype.createCanonicalRequest=function(t,e,r){var o=Object.keys(e).sort();return t.method+"\n"+this.getCanonicalPath(t)+"\n"+function(t){var e,r,o=t.query,h=void 0===o?{}:o,f=[],l={},d=function(t){if(t.toLowerCase()===c)return"continue";f.push(t);var e=h[t];"string"==typeof e?l[t]=Object(A.a)(t)+"="+Object(A.a)(e):Array.isArray(e)&&(l[t]=e.slice(0).sort().reduce((function(e,r){return e.concat([Object(A.a)(t)+"="+Object(A.a)(r)])}),[]).join("&"))};try{for(var m=Object(n.__values)(Object.keys(h).sort()),v=m.next();!v.done;v=m.next()){d(v.value)}}catch(t){e={error:t}}finally{try{v&&!v.done&&(r=m.return)&&r.call(m)}finally{if(e)throw e.error}}return f.map((function(t){return l[t]})).filter((function(t){return t})).join("&")}(t)+"\n"+o.map((function(t){return t+":"+e[t]})).join("\n")+"\n\n"+o.join(";")+"\n"+r},t.prototype.createStringToSign=function(t,e,r){return Object(n.__awaiter)(this,void 0,void 0,(function(){var o,h;return Object(n.__generator)(this,(function(n){switch(n.label){case 0:return(o=new this.sha256).update(r),[4,o.digest()];case 1:return h=n.sent(),[2,"AWS4-HMAC-SHA256\n"+t+"\n"+e+"\n"+Object(_.a)(h)]}}))}))},t.prototype.getCanonicalPath=function(t){var path=t.path;return this.uriEscapePath?"/"+encodeURIComponent(path.replace(/^\//,"")).replace(/%2F/g,"/"):path},t.prototype.getSignature=function(t,e,r,o){return Object(n.__awaiter)(this,void 0,void 0,(function(){var h,c,f,l,d;return Object(n.__generator)(this,(function(n){switch(n.label){case 0:return[4,this.createStringToSign(t,e,o)];case 1:return h=n.sent(),l=(f=this.sha256).bind,[4,r];case 2:return(c=new(l.apply(f,[void 0,n.sent()]))).update(h),d=_.a,[4,c.digest()];case 3:return[2,d.apply(void 0,[n.sent()])]}}))}))},t.prototype.getSigningKey=function(t,e,r,o){return function(t,e,r,o,h){var c=r+":"+o+":"+h+":"+e.accessKeyId+":"+e.sessionToken;if(c in y)return y[c];for(w.push(c);w.length>50;)delete y[w.shift()];return y[c]=new Promise((function(f,l){var d,m,v=Promise.resolve("AWS4"+e.secretAccessKey),w=function(e){(v=v.then((function(r){return data=e,(n=new t(r)).update(data),n.digest();var data,n}))).catch((function(){}))};try{for(var M=Object(n.__values)([r,o,h,"aws4_request"]),_=M.next();!_.done;_=M.next()){w(_.value)}}catch(t){d={error:t}}finally{try{_&&!_.done&&(m=M.return)&&m.call(M)}finally{if(d)throw d.error}}v.then(f,(function(t){delete y[c],l(t)}))}
11))}(this.sha256,t,r,e,o||this.service)},t}(),T=function(t){var e=I(t).replace(/[\-:]/g,"");return{longDate:e,shortDate:e.substr(0,8)}},O=function(t){return Object.keys(t).sort().join(";")},j=function(t){if("string"==typeof t){var e=Promise.resolve(t);return function(){return e}}return t},U=function(t){if("object"==typeof t){var e=Promise.resolve(t);return function(){return e}}return t}},,,,,,,,,,,,,,function(t,e,r){(function(t){t.installComponents=function(component,t){var e="function"==typeof component.exports?component.exports.extendOptions:component.options;for(var i in"function"==typeof component.exports&&(e.components=component.exports.options.components),e.components=e.components||{},t)e.components[i]=e.components[i]||t[i];e.functional&&function(component,t){if(component.exports._functionalComponents)return;component.exports._functionalComponents=!0;var e=component.exports.render;component.exports.render=function(r,n){return e(r,Object.assign({},n,{_c:function(e,a,b){return n._c(t[e]||e,a,b)}}))}}(component,e.components)}}).call(this,r(18))},,,,,,,,,,,,,,,,,,,,,,,,,,,,function(t,e,r){var content=r(348);"string"==typeof content&&(content=[[t.i,content,""]]),content.locals&&(t.exports=content.locals);(0,r(81).default)("0211d3d2",content,!0,{sourceMap:!1})},function(t,e,r){(e=r(80)(!1)).push([t.i,"/*! modern-normalize v1.0.0 | MIT License | https://github.com/sindresorhus/modern-normalize */:root{-moz-tab-size:4;-o-tab-size:4;tab-size:4}html{line-height:1.15;-webkit-text-size-adjust:100%}body{margin:0;font-family:system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,Cantarell,Noto Sans,sans-serif,\"Segoe UI\",Helvetica,Arial,\"Apple Color Emoji\",\"Segoe UI Emoji\"}hr{height:0;color:inherit}abbr[title]{-webkit-text-decoration:underline dotted;text-decoration:underline dotted}b,strong{font-weight:bolder}code,kbd,pre,samp{font-family:ui-monospace,SFMono-Regular,Consolas,\"Liberation Mono\",Menlo,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;line-height:1.15;margin:0}button,select{text-transform:none}[type=button],[type=submit],button{-webkit-appearance:button}legend{padding:0}progress{vertical-align:baseline}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}summary{display:list-item}blockquote,dd,dl,figure,h1,h2,h3,h4,h5,h6,hr,p,pre{margin:0}button{background-color:transparent;background-image:none}button:focus{outline:1px dotted;outline:5px auto -webkit-focus-ring-color}fieldset,ol,ul{margin:0;padding:0}ol,ul{list-style:none}html{font-family:ui-sans-serif,system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,Cantarell,Noto Sans,sans-serif,BlinkMacSystemFont,\"Segoe UI\",\"Helvetica Neue\",Arial,\"Noto Sans\",\"Apple Color Emoji\",\"Segoe UI Emoji\",\"Segoe UI Symbol\",\"Noto Color Emoji\";line-height:1.5}body{font-family:inherit;line-height:inherit}*,:after,:before{box-sizing:border-box;border:0 solid #e5e7eb}hr{border-top-width:1px}img{border-style:solid}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{color:#9ca3af}input:-ms-input-placeholder,textarea:-ms-input-placeholder{color:#9ca3af}input::placeholder,textarea::placeholder{color:#9ca3af}
11[role=button],button{cursor:pointer}table{border-collapse:collapse}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}button,input,optgroup,select,textarea{padding:0;line-height:inherit;color:inherit}code,kbd,pre,samp{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,\"Liberation Mono\",\"Courier New\",monospace}audio,canvas,embed,iframe,img,object,svg,video{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[type=date],[type=email],[type=month],[type=number],[type=password],[type=search],[type=tel],[type=text],[type=time],[type=url],select,textarea{-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:#fff;border-color:#6b7280;border-width:1px;border-radius:0;padding:.5rem .75rem;font-size:1rem;line-height:1.5rem}[type=date]:focus,[type=email]:focus,[type=month]:focus,[type=number]:focus,[type=password]:focus,[type=search]:focus,[type=tel]:focus,[type=text]:focus,[type=time]:focus,[type=url]:focus,select:focus,textarea:focus{outline:2px solid transparent;outline-offset:2px;--tw-ring-inset:var(--tw-empty,/*!*/ /*!*/);--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:#2563eb;--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),0 0 transparent;box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-sha
11dow,0 0 transparent);border-color:#2563eb}input::-moz-placeholder,textarea::-moz-placeholder{color:#6b7280;opacity:1}input:-ms-input-placeholder,textarea:-ms-input-placeholder{color:#6b7280;opacity:1}input::placeholder,textarea::placeholder{color:#6b7280;opacity:1}select{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3E%3Cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3E%3C/svg%3E\");background-position:right .5rem center;background-repeat:no-repeat;background-size:1.5em 1.5em;padding-right:2.5rem;-webkit-print-color-adjust:exact;color-adjust:exact}[type=checkbox],[type=radio]{-webkit-appearance:none;-moz-appearance:none;appearance:none;padding:0;-webkit-print-color-adjust:exact;color-adjust:exact;display:inline-block;vertical-align:middle;background-origin:border-box;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;flex-shrink:0;height:1rem;width:1rem;color:#2563eb;background-color:#fff;border-color:#6b7280;border-width:1px}[type=checkbox]{border-radius:0}[type=radio]{border-radius:100%}[type=checkbox]:focus,[type=radio]:focus{outline:2px solid transparent;outline-offset:2px;--tw-ring-inset:var(--tw-empty,/*!*/ /*!*/);--tw-ring-offset-width:2px;--tw-ring-offset-color:#fff;--tw-ring-color:#2563eb;--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),0 0 transparent;box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-sha
11dow,0 0 transparent)}[type=checkbox]:checked,[type=radio]:checked{border-color:transparent;background-color:currentColor;background-size:100% 100%;background-position:50%;background-repeat:no-repeat}[type=checkbox]:checked{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg viewBox='0 0 16 16' fill='%23fff' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12.207 4.793a1 1 0 010 1.414l-5 5a1 1 0 01-1.414 0l-2-2a1 1 0 011.414-1.414L6.5 9.086l4.293-4.293a1 1 0 011.414 0z'/%3E%3C/svg%3E\")}[type=radio]:checked{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg viewBox='0 0 16 16' fill='%23fff' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='8' cy='8' r='3'/%3E%3C/svg%3E\")}[type=checkbox]:checked:focus,[type=checkbox]:checked:hover,[type=radio]:checked:focus,[type=radio]:checked:hover{border-color:transparent;background-color:currentColor}[type=checkbox]:indeterminate{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 16 16'%3E%3Cpath stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M4 8h8'/%3E%3C/svg%3E\");border-color:transparent;background-color:currentColor;background-size:100% 100%;background-position:50%;background-repeat:no-repeat}[type=checkbox]:indeterminate:focus,[type=checkbox]:indeterminate:hover{border-color:transparent;background-color:currentColor}[type=file]{background:unset;border-color:inherit;border-width:0;border-radius:0;padding:0;font-size:unset;line-height:inherit}[type=file]:focus{outline:1px auto -webkit-focus-ring-color}.container{width:100%}@media (min-width:640px){.container{max-width:640px}}@media (min-width:768px){.container{max-width:768px}}@media (min-width:1024px){.container{max-width:1024px}}@media (min-width:1280px){.container{max-width:1280px}}@media (min-width:1536px){.container{max-width:1536px}}.aspect-w-1,.aspect-w-2{position:relative;padding-bottom:calc(var(--tw-aspect-h)/var(--tw-aspect-w)*100%)}.aspect-w-1>*,.aspect-w-2>*{position:absolute;height:100%;width:100%;top:0;right:0;bottom:0;left:0}.aspect-w-1{--tw-aspect-w:1}.aspect-w-2{--tw-aspect-w:2}.aspect-h-1{--tw-aspect-h:1}.space-y-1>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-top:calc(0.25rem*(1 - var(--tw-space-y-reverse)));margin-bottom:calc(0.25rem*var(--tw-space-y-reverse))}.space-x-1>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-right:calc(0.25rem*var(--tw-space-x-reverse));margin-left:calc(0.25rem*(1 - var(--tw-space-x-reverse)))}.space-y-2>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-top:calc(0.5rem*(1 - var(--tw-space-y-reverse)));margin-bottom:calc(0.5rem*var(--tw-space-y-reverse))}.space-x-2>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-right:calc(0.5rem*var(--tw-space-x-reverse));margin-left:calc(0.5rem*(1 - var(--tw-space-x-reverse)))}.space-y-4>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-top:calc(1rem*(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1rem*var(--tw-space-y-reverse))}.space-x-4>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-right:calc(1rem*var(--tw-space-x-reverse));margin-left:calc(1rem*(1 - var(--tw-space-x-reverse)))}.space-y-5>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-top:calc(1.25rem*(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1.25rem*var(--tw-space-y-reverse))}.space-y-6>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-top:calc(1.5rem*(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1.5rem*var(--tw-space-y-reverse))}.space-x-6>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-right:calc(1.5rem*var(--tw-space-x-reverse));margin-left:calc(1.5rem*(1 - var(--tw-space-x-reverse)))}.space-y-8>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-top:calc(2rem*(1 - var(--tw-space-y-reverse)));margin-bottom:calc(2rem*var(--tw-space-y-reverse))}.space-x-8>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-right:calc(2rem*var(--tw-space-x-reverse));margin-left:calc(2rem*(1 - var(--tw-space-x-reverse)))}.-space-y-px>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-top:calc(-1px*(1 - var(--tw-space-y-reverse)));margin-bottom:calc(-1px*var(--tw-space-y-reverse))}.-space-x-px>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-right:calc(-1px*var(--tw-space-x-reverse));margin-left:calc(-1px*(1 - var(--tw-space-x-reverse)))}.divide-y>:not([hidden])~:not([hidden]){--tw-divide-y-reverse:0;border-top-width:calc(1px*(1 - var(--tw-divide-y-reverse)));border-bottom-width:calc(1px*var(--tw-divide-y-reverse))}.divide-gray-100>:not([hidden])~:not([hidden]){--tw-divide-opacity:1;border-color:rgba(243,244,246,var(--tw-divide-opacity))}.divide-gray-200>:not([hidden])~:not([hidden]){--tw-divide-opacity:1;border-color:rgba(229,231,235,var(--tw-divide-opacity))}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}.bg-transparent{background-color:transparent}.bg-current{background-color:currentColor}.bg-black{--tw-bg-opacity:1;background-color:rgba(0,0,0,var(--tw-bg-opacity))}.bg-white{--tw-bg-opacity:1;background-color:rgba(255,255,255,var(--tw-bg-opacity))}.bg-gray-50{--tw-bg-opacity:1;background-color:rgba(249,250,251,var(--tw-bg-opacity))}.bg-gray-100{--tw-bg-opacity:1;background-color:rgba(243,244,246,var(--tw-bg-opacity))}.bg-gray-200{--tw-bg-opacity:1;background-color:rgba(229,231,235,var(--tw-bg-opacity))}.bg-gray-300{--tw-bg-opacity:1;background-color:rgba(209,213,219,var(--tw-bg-opacity))}.bg-gray-800{--tw-bg-opacity:1;background-color:rgba(31,41,55,var(--tw-bg-opacity))}.bg-gray-900{--tw-bg-opacity:1;background-color:rgba(17,24,39,var(--tw-bg-opacity))}.bg-red-50{--tw-bg-opacity:1;background-color:rgba(254,242,242,var(--tw-bg-opacity))}.bg-red-100{--tw-bg-opacity:1;background-color:rgba(254,226,226,var(--tw-bg-opacity))}.bg-green-50{--tw-bg-opacity:1;background-color:rgba(236,253,245,var(--tw-bg-opacity))}.bg-green-100{--tw-bg-opacity:1;background-color:rgba(209,250,229,var(--tw-bg-opacity))}.bg-blue-50{--tw-bg-opacity:1;background-color:rgba(239,246,255,var(--tw-bg-opacity))}.bg-blue-100{--tw-bg-opacity:1;background-color:rgba(219,234,254,var(--tw-bg-opacity))}.bg-primary{background-color:var(--v-primary-base)}.hover\\:bg-gray-50:hover{--tw-bg-opacity:1;background-color:rgba(249,250,251,var(--tw-bg-opacity))}.hover\\:bg-gray-100:hover{--tw-bg-opacity:1;background-color:rgba(243,244,246,var(--tw-bg-opacity))}.hover\\:bg-primary:hover{background-color:var(--v-primary-base)}.focus\\:bg-gray-100:focus{--tw-bg-opacity:1;background-color:rgba(243,244,246,var(--tw-bg-opacity))}.bg-none{background-image:none}.bg-gradient-to-t{background-image:linear-gradient(0deg,var(--tw-gradient-stops))}.from-gray-900{--tw-gradient-from:#111827;--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to,rgba(17,24,39,0))}.to-transparent{--tw-gradient-to:transparent}.bg-opacity-50{--tw-bg-opacity:0.5}.border-transparent{border-color:transparent}.border-gray-200{--tw-border-opacity:1;border-color:rgba(229,231,235,var(--tw-border-opacity))}.border-gray-300{--tw-border-opacity:1;border-color:rgba(209,213,219,var(--tw-border-opacity))}.border-gray-400{--tw-border-opacity:1;border-color:rgba(156,163,175,var(--tw-border-opacity))}.border-red-500{--tw-border-opacity:1;border-color:rgba(239,68,68,var(--tw-border-opacity))}.border-indigo-500{--tw-border-opacity:1;border-color:rgba(99,102,241,var(--tw-border-opacity))}.border-primary{border-color:var(--v-primary-base)}.hover\\:border-gray-300:hover{--tw-border-opacity:1;border-color:rgba(209,213,219,var(--tw-border-opacity))}.focus\\:border-red-500:focus{--tw-border-opacity:1;border-color:rgba(239,68,68,var(--tw-border-opacity))}.focus\\:border-primary:focus{border-color:var(--v-primary-base)}.border-opacity-30{--tw-border-opacity:0.3}.rounded-none{border-radius:0}.rounded-sm{border-radius:.125rem}.rounded{border-radius:.25rem}.rounded-md{border-radius:.375rem}.rounded-lg{border-radius:.5rem}.rounded-full{border-radius:9999px}
11.rounded-t-md{border-top-left-radius:.375rem}.rounded-r-md,.rounded-t-md{border-top-right-radius:.375rem}.rounded-b-md,.rounded-r-md{border-bottom-right-radius:.375rem}.rounded-b-md,.rounded-l-md{border-bottom-left-radius:.375rem}.rounded-l-md{border-top-left-radius:.375rem}.rounded-t-xl{border-top-left-radius:.75rem;border-top-right-radius:.75rem}.rounded-b-xl{border-bottom-right-radius:.75rem;border-bottom-left-radius:.75rem}.rounded-br-md{border-bottom-right-radius:.375rem}.rounded-bl-md{border-bottom-left-radius:.375rem}.border-dashed{border-style:dashed}.border-none{border-style:none}.border-2{border-width:2px}.border{border-width:1px}.border-b-2{border-bottom-width:2px}.border-l-4{border-left-width:4px}.border-t{border-top-width:1px}.border-b{border-bottom-width:1px}.cursor-auto{cursor:auto}.cursor-default{cursor:default}.cursor-pointer{cursor:pointer}.block{display:block}.inline-block{display:inline-block}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.table{display:table}.grid{display:grid}.hidden{display:none}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.flex-nowrap{flex-wrap:nowrap}.items-start{align-items:flex-start}.items-end{align-items:flex-end}.items-center{align-items:center}.items-baseline{align-items:baseline}.items-stretch{align-items:stretch}.justify-start{justify-content:flex-start}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.flex-1{flex:1 1 0%}.flex-grow{flex-grow:1}.flex-shrink-0{flex-shrink:0}.flex-shrink{flex-shrink:1}.order-1{order:1}.order-2{order:2}.order-3{order:3}.order-4{order:4}.order-5{order:5}.font-light{font-weight:300}.font-normal{font-weight:400}.font-medium{font-weight:500}.font-semibold{font-weight:600}.font-bold{font-weight:700}.font-extrabold{font-weight:800}.h-1{height:.25rem}.h-4{height:1rem}.h-5{height:1.25rem}.h-6{height:1.5rem}.h-8{height:2rem}.h-9{height:2.25rem}.h-10{height:2.5rem}.h-11{height:2.75rem}.h-12{height:3rem}.h-14{height:3.5rem}.h-16{height:4rem}.h-24{height:6rem}.h-40{height:10rem}.h-80{height:20rem}.h-full{height:100%}.h-screen{height:100vh}.text-xs{font-size:.75rem;line-height:1rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-base{font-size:1rem;line-height:1.5rem}.text-lg{font-size:1.125rem}.text-lg,.text-xl{line-height:1.75rem}.text-xl{font-size:1.25rem}.text-2xl{font-size:1.5rem;line-height:2rem}.text-3xl{font-size:1.875rem;line-height:2.25rem}.text-4xl{font-size:2.25rem;line-height:2.5rem}.text-5xl{font-size:3rem;line-height:1}.leading-4{line-height:1rem}.leading-5{line-height:1.25rem}.leading-6{line-height:1.5rem}.leading-7{line-height:1.75rem}.leading-tight{line-height:1.25}.list-disc{list-style-type:disc}.m-1{margin:.25rem}.m-2{margin:.5rem}.m-3{margin:.75rem}.m-auto{margin:auto}.my-1{margin-top:.25rem;margin-bottom:.25rem}.my-2{margin-top:.5rem;margin-bottom:.5rem}.my-3{margin-top:.75rem;margin-bottom:.75rem}.my-4{margin-top:1rem;margin-bottom:1rem}.mx-auto{margin-left:auto;margin-right:auto}.-my-2{margin-top:-.5rem;margin-bottom:-.5rem}.mb-0{margin-bottom:0}.mt-1{margin-top:.25rem}.mr-1{margin-right:.25rem}.mb-1{margin-bottom:.25rem}.ml-1{margin-left:.25rem}.mt-2{margin-top:.5rem}.mr-2{margin-right:.5rem}.mb-2{margin-bottom:.5rem}.ml-2{margin-left:.5rem}.mt-3{margin-top:.75rem}.mb-3{margin-bottom:.75rem}.ml-3{margin-left:.75rem}.mt-4{margin-top:1rem}.mb-4{margin-bottom:1rem}.ml-4{margin-left:1rem}.mt-5{margin-top:1.25rem}.mb-5{margin-bottom:1.25rem}.ml-5{margin-left:1.25rem}.mt-6{margin-top:1.5rem}.mb-6{margin-bottom:1.5rem}.mt-7{margin-top:1.75rem}.ml-auto{margin-left:auto}.mr-1\\.5{margin-right:.375rem}.-ml-1{margin-left:-.25rem}.-mr-2{margin-right:-.5rem}.-ml-2{margin-left:-.5rem}.-mb-px{margin-bottom:-1px}.-ml-px{margin-left:-1px}.max-h-screen{max-height:100vh}.max-w-xs{max-width:20rem}.max-w-sm{max-width:24rem}.max-w-lg{max-width:32rem}.max-w-xl{max-width:36rem}.max-w-2xl{max-width:42rem}.max-w-6xl{max-width:72rem}.max-w-full{max-width:100%}.min-h-screen{min-height:100vh}.min-w-0{min-width:0}.min-w-full{min-width:100%}.object-contain{-o-object-fit:contain;object-fit:contain}.object-cover{-o-object-fit:cover;object-fit:cover}.opacity-0{opacity:0}
11.opacity-5{opacity:.05}.opacity-10{opacity:.1}.opacity-25{opacity:.25}.opacity-50{opacity:.5}.opacity-60{opacity:.6}.opacity-75{opacity:.75}.opacity-80{opacity:.8}.opacity-100{opacity:1}.group:hover .group-hover\\:opacity-25{opacity:.25}.hover\\:opacity-75:hover{opacity:.75}.focus\\:opacity-100:focus,.hover\\:opacity-100:hover{opacity:1}.focus-within\\:outline-none[focus-within],.outline-none{outline:2px solid transparent;outline-offset:2px}.focus-within\\:outline-none:focus-within{outline:2px solid transparent;outline-offset:2px}.focus\\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overflow-x-auto{overflow-x:auto}.overflow-y-auto{overflow-y:auto}.p-1{padding:.25rem}.p-2{padding:.5rem}.p-3{padding:.75rem}.p-4{padding:1rem}.p-5{padding:1.25rem}.p-6{padding:1.5rem}.p-8{padding:2rem}.p-14{padding:3.5rem}.py-0{padding-top:0;padding-bottom:0}.py-1{padding-top:.25rem;padding-bottom:.25rem}.px-1{padding-left:.25rem;padding-right:.25rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.px-2{padding-left:.5rem;padding-right:.5rem}.py-3{padding-top:.75rem;padding-bottom:.75rem}.px-3{padding-left:.75rem;padding-right:.75rem}.py-4{padding-top:1rem;padding-bottom:1rem}.px-4{padding-left:1rem;padding-right:1rem}.py-5{padding-top:1.25rem;padding-bottom:1.25rem}.px-5{padding-left:1.25rem;padding-right:1.25rem}.py-6{padding-top:1.5rem;padding-bottom:1.5rem}.px-6{padding-left:1.5rem;padding-right:1.5rem}.py-8{padding-top:2rem;padding-bottom:2rem}.py-10{padding-top:2.5rem;padding-bottom:2.5rem}.px-10{padding-left:2.5rem;padding-right:2.5rem}.py-16{padding-top:4rem;padding-bottom:4rem}.px-16{padding-left:4rem;padding-right:4rem}.py-20{padding-top:5rem;padding-bottom:5rem}.py-px{padding-top:1px;padding-bottom:1px}.py-0\\.5{padding-top:.125rem;padding-bottom:.125rem}.px-2\\.5{padding-left:.625rem;padding-right:.625rem}.pt-0{padding-top:0}.pt-1{padding-top:.25rem}.pb-1{padding-bottom:.25rem}.pl-1{padding-left:.25rem}.pt-2{padding-top:.5rem}.pr-2{padding-right:.5rem}.pb-2{padding-bottom:.5rem}.pt-3{padding-top:.75rem}.pl-3{padding-left:.75rem}.pt-4{padding-top:1rem}.pb-4{padding-bottom:1rem}.pl-4{padding-left:1rem}.pt-5{padding-top:1.25rem}.pt-6{padding-top:1.5rem}.pb-6{padding-bottom:1.5rem}.pl-7{padding-left:1.75rem}.pt-8{padding-top:2rem}.pb-8{padding-bottom:2rem}.pl-10{padding-left:2.5rem}.pt-0\\.5{padding-top:.125rem}.pointer-events-none{pointer-events:none}.pointer-events-auto{pointer-events:auto}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.sticky{position:-webkit-sticky;position:sticky}.inset-0{top:0;right:0;bottom:0;left:0}.-inset-1\\/2{top:-50%;right:-50%;bottom:-50%;left:-50%}.inset-y-0{top:0;bottom:0}.inset-y-1\\/2{top:50%;bottom:50%}.top-0{top:0}.right-0{right:0}.bottom-0{bottom:0}.left-0{left:0}.right-1{right:.25rem}.top-2{top:.5rem}.right-2{right:.5rem}.right-5{right:1.25rem}.left-5{left:1.25rem}.bottom-6{bottom:1.5rem}.left-6{left:1.5rem}.top-0\\.5{top:.125rem}.right-2\\.5{right:.625rem}.-top-8{top:-2rem}.-left-8{left:-2rem}.top-1\\/2{top:50%}.top-1\\/4{top:25%}*{--tw-shadow:0 0 transparent}.shadow-sm{--tw-shadow:0 1px 2px 0 rgba(0,0,0,0.05)}.shadow,.shadow-sm{box-shadow:0 0 transparent,0 0 transparent,var(--tw-sha
11dow);box-shadow:var(--tw-ring-offset-shadow,0 0 transparent),var(--tw-ring-shadow,0 0 transparent),var(--tw-shadow)}.shadow{--tw-shadow:0 1px 3px 0 rgba(0,0,0,0.1),0 1px 2px 0 rgba(0,0,0,0.06)}.shadow-md{--tw-shadow:0 4px 6px -1px rgba(0,0,0,0.1),0 2px 4px -1px rgba(0,0,0,0.06)}.shadow-lg,.shadow-md{box-shadow:0 0 transparent,0 0 transparent,var(--tw-shadow);box-shadow:var(--tw-ring-offset-shadow,0 0 transparent),var(--tw-ring-shadow,0 0 transparent),var(--tw-shadow)}.shadow-lg{--tw-shadow:0 10px 15px -3px rgba(0,0,0,0.1),0 4px 6px -2px rgba(0,0,0,0.05)}.shadow-xl{--tw-shadow:0 20px 25px -5px rgba(0,0,0,0.1),0 10px 10px -5px rgba(0,0,0,0.04);box-shadow:0 0 transparent,0 0 transparent,var(--tw-shadow);box-shadow:var(--tw-ring-offset-shadow,0 0 transparent),var(--tw-ring-shadow,0 0 transparent),var(--tw-shadow)}*{--tw-ring-inset:var(--tw-empty,/*!*/ /*!*/);--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,0.5);--tw-ring-offset-shadow:0 0 transparent;--tw-ring-shadow:0 0 transparent}.ring-1{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),0 0 transparent;box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-sha
11dow,0 0 transparent)}.focus-within\\:ring-2[focus-within],.ring-2{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),0 0 transparent;box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 transparent)}.focus-within\\:ring-2:focus-within{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),0 0 transparent;box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 transparent)}.focus\\:ring-0:focus{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(var(--tw-ring-offset-width)) var(--tw-ring-color)}.focus\\:ring-0:focus,.focus\\:ring-1:focus{box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),0 0 transparent;box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-sha
11dow,0 0 transparent)}.focus\\:ring-1:focus{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color)}.focus\\:ring-2:focus{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),0 0 transparent;box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 transparent)}.focus-within\\:ring-offset-2[focus-within]{--tw-ring-offset-width:2px}.focus-within\\:ring-offset-2:focus-within{--tw-ring-offset-width:2px}.focus\\:ring-offset-2:focus{--tw-ring-offset-width:2px}.ring-transparent{--tw-ring-color:transparent}.ring-black{--tw-ring-opacity:1;--tw-ring-color:rgba(0,0,0,var(--tw-ring-opacity))}.ring-gray-200{--tw-ring-opacity:1;--tw-ring-color:rgba(229,231,235,var(--tw-ring-opacity))}.ring-red-500{--tw-ring-opacity:1;--tw-ring-color:rgba(239,68,68,var(--tw-ring-opacity))}.focus-within\\:ring-primary[focus-within],.ring-primary{--tw-ring-color:var(--v-primary-base)}.focus-within\\:ring-primary:focus-within{--tw-ring-color:var(--v-primary-base)}.focus\\:ring-transparent:focus{--tw-ring-color:transparent}.focus\\:ring-red-500:focus{--tw-ring-opacity:1;--tw-ring-color:rgba(239,68,68,var(--tw-ring-opacity))}.focus\\:ring-primary:focus{--tw-ring-color:var(--v-primary-base)}.ring-opacity-5{--tw-ring-opacity:0.05}.fill-current{fill:currentColor}.text-left{text-align:left}.text-center{text-align:center}.text-right{text-align:right}.text-current{color:currentColor}.text-black{--tw-text-opacity:1;color:rgba(0,0,0,var(--tw-text-opacity))}.text-white{--tw-text-opacity:1;color:rgba(255,255,255,var(--tw-text-opacity))}.text-gray-300{--tw-text-opacity:1;color:rgba(209,213,219,var(--tw-text-opacity))}.text-gray-400{--tw-text-opacity:1;color:rgba(156,163,175,var(--tw-text-opacity))}.text-gray-500{--tw-text-opacity:1;color:rgba(107,114,128,var(--tw-text-opacity))}.text-gray-600{--tw-text-opacity:1;color:rgba(75,85,99,var(--tw-text-opacity))}.text-gray-700{--tw-text-opacity:1;color:rgba(55,65,81,var(--tw-text-opacity))}.text-gray-800{--tw-text-opacity:1;color:rgba(31,41,55,var(--tw-text-opacity))}.text-gray-900{--tw-text-opacity:1;color:rgba(17,24,39,var(--tw-text-opacity))}.text-red-400{--tw-text-opacity:1;color:rgba(248,113,113,var(--tw-text-opacity))}.text-red-500{--tw-text-opacity:1;color:rgba(239,68,68,var(--tw-text-opacity))}.text-red-600{--tw-text-opacity:1;color:rgba(220,38,38,var(--tw-text-opacity))}.text-green-400{--tw-text-opacity:1;color:rgba(52,211,153,var(--tw-text-opacity))}.text-green-500{--tw-text-opacity:1;color:rgba(16,185,129,var(--tw-text-opacity))}.text-green-600{--tw-text-opacity:1;color:rgba(5,150,105,var(--tw-text-opacity))}.text-blue-400{--tw-text-opacity:1;color:rgba(96,165,250,var(--tw-text-opacity))}.text-blue-500{--tw-text-opacity:1;color:rgba(59,130,246,var(--tw-text-opacity))}.text-blue-600{--tw-text-opacity:1;color:rgba(37,99,235,var(--tw-text-opacity))}.text-indigo-600{--tw-text-opacity:1;color:rgba(79,70,229,var(--tw-text-opacity))}.text-primary{color:var(--v-primary-base)}.group:hover .group-hover\\:text-gray-400{--tw-text-opacity:1;color:rgba(156,163,175,var(--tw-text-opacity))}.group:hover .group-hover\\:text-gray-700{--tw-text-opacity:1;color:rgba(55,65,81,var(--tw-text-opacity))}.group:hover .group-hover\\:text-primary{color:var(--v-primary-base)}.hover\\:text-gray-500:hover{--tw-text-opacity:1;color:rgba(107,114,128,var(--tw-text-opacity))}.hover\\:text-gray-700:hover{--tw-text-opacity:1;color:rgba(55,65,81,var(--tw-text-opacity))}.hover\\:text-gray-900:hover{--tw-text-opacity:1;color:rgba(17,24,39,var(--tw-text-opacity))}.hover\\:text-primary:hover{color:var(--v-primary-base)}.focus\\:text-gray-900:focus{--tw-text-opacity:1;color:rgba(17,24,39,var(--tw-text-opacity))}.truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.uppercase{text-transform:uppercase}.underline{text-decoration:underline}.line-through{text-decoration:line-through}.hover\\:underline:hover{text-decoration:underline}.tracking-wide{letter-spacing:.025em}.tracking-wider{letter-spacing:.05em}.select-none{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.align-middle{vertical-align:middle}.align-bottom{vertical-align:bottom}.whitespace-nowrap{white-space:nowrap}.whitespace-pre-line{white-space:pre-line}.whitespace-pre-wrap{white-space:pre-wrap}.break-words{word-wrap:break-word}.w-0{width:0}.w-4{width:1rem}.w-5{width:1.25rem}.w-6{width:1.5rem}.w-8{width:2rem}.w-10{width:2.5rem}.w-12{width:3rem}.w-14{width:3.5rem}.w-16{width:4rem}.w-40{width:10rem}.w-60{width:15rem}.w-80{width:20rem}.w-1\\/2{width:50%}.w-3\\/4{width:75%}.w-full{width:100%}.z-10{z-index:10}.z-20{z-index:20}.z-30{z-index:30}.z-40{z-index:40}.z-50{z-index:50}.focus-within\\:z-10[focus-within]{z-index:10}.focus-within\\:z-10:focus-within{z-index:10}.focus\\:z-10:focus{z-index:10}.gap-2{grid-gap:.5rem;gap:.5rem}.gap-3{grid-gap:.75rem;gap:.75rem}.gap-4{grid-gap:1rem;gap:1rem}.gap-6{grid-gap:1.5rem;gap:1.5rem}.gap-8{grid-gap:2rem;gap:2rem}.gap-x-4{grid-column-gap:1rem;-moz-column-gap:1rem;column-gap:1rem}.gap-y-8{grid-row-gap:2rem;row-gap:2rem}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.grid-cols-6{grid-template-columns:repeat(6,minmax(0,1fr))}.grid-cols-12{grid-template-columns:repeat(12,minmax(0,1fr))}.col-span-1{grid-column:span 1/span 1}.col-span-3{grid-column:span 3/span 3}.col-span-6{grid-column:span 6/span 6}.col-span-12{grid-column:span 12/span 12}.transform{--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;transform:translateX(var(--tw-translate-x)) translateY(var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.origin-top-right{transform-origin:top right}.scale-95{--tw-scale-x:.95;--tw-scale-y:.95}.scale-100{--tw-scale-x:1;--tw-scale-y:1}.scale-105{--tw-scale-x:1.05;--tw-scale-y:1.05}.scale-110{--tw-scale-x:1.1;--tw-scale-y:1.1}.rotate-90{--tw-rotate:90deg}.translate-x-1\\/2{--tw-translate-x:50%}.-translate-x-1\\/2{--tw-translate-x:-50%}.translate-y-0{--tw-translate-y:0px}.translate-y-2{--tw-translate-y:0.5rem}.-translate-y-1{--tw-translate-y:-0.25rem}.-translate-y-full{--tw-translate-y:-100%}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition{transition-property:background-color,border-color,color,fill,stroke,opacity,box-shadow,transform;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-colors{transition-property:background-color,border-color,color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-opacity{transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}
11.transition-shadow{transition-property:box-shadow;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-transform{transition-property:transform;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.ease-in{transition-timing-function:cubic-bezier(.4,0,1,1)}.ease-out{transition-timing-function:cubic-bezier(0,0,.2,1)}.ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}.duration-75{transition-duration:75ms}.duration-100{transition-duration:.1s}.duration-150{transition-duration:.15s}.duration-200{transition-duration:.2s}.duration-300{transition-duration:.3s}.duration-500{transition-duration:.5s}.delay-100{transition-delay:.1s}@-webkit-keyframes spin{to{transform:rotate(1turn)}}@keyframes spin{to{transform:rotate(1turn)}}@-webkit-keyframes ping{75%,to{transform:scale(2);opacity:0}}@keyframes ping{75%,to{transform:scale(2);opacity:0}}@-webkit-keyframes pulse{50%{opacity:.5}}@keyframes pulse{50%{opacity:.5}}@-webkit-keyframes bounce{0%,to{transform:translateY(-25%);-webkit-animation-timing-function:cubic-bezier(.8,0,1,1);animation-timing-function:cubic-bezier(.8,0,1,1)}50%{transform:none;-webkit-animation-timing-function:cubic-bezier(0,0,.2,1);animation-timing-function:cubic-bezier(0,0,.2,1)}}@keyframes bounce{0%,to{transform:translateY(-25%);-webkit-animation-timing-function:cubic-bezier(.8,0,1,1);animation-timing-function:cubic-bezier(.8,0,1,1)}50%{transform:none;-webkit-animation-timing-function:cubic-bezier(0,0,.2,1);animation-timing-function:cubic-bezier(0,0,.2,1)}}.animate-spin{-webkit-animation:spin 1s linear infinite;animation:spin 1s linear infinite}.animate-ping{-webkit-animation:ping 1s cubic-bezier(0,0,.2,1) infinite;animation:ping 1s cubic-bezier(0,0,.2,1) infinite}.animate-pulse{-webkit-animation:pulse 2s cubic-bezier(.4,0,.6,1) infinite;animation:pulse 2s cubic-bezier(.4,0,.6,1) infinite}@media (min-width:640px){.sm\\:rounded-lg{border-radius:.5rem}.sm\\:block{display:block}.sm\\:grid{display:grid}.sm\\:items-start{align-items:flex-start}.sm\\:items-baseline{align-items:baseline}.sm\\:text-sm{font-size:.875rem;line-height:1.25rem}.sm\\:my-5{margin-top:1.25rem;margin-bottom:1.25rem}.sm\\:my-8{margin-top:2rem;margin-bottom:2rem}.sm\\:mx-auto{margin-left:auto;margin-right:auto}.sm\\:-mx-6{margin-left:-1.5rem;margin-right:-1.5rem}.sm\\:mt-0{margin-top:0}.sm\\:mt-px{margin-top:1px}.sm\\:max-w-xs{max-width:20rem}.sm\\:max-w-md{max-width:28rem}.sm\\:max-w-lg{max-width:32rem}.sm\\:max-w-xl{max-width:36rem}.sm\\:p-0{padding:0}.sm\\:p-6{padding:1.5rem}.sm\\:px-6{padding-left:1.5rem;padding-right:1.5rem}.sm\\:px-10{padding-left:2.5rem;padding-right:2.5rem}.sm\\:pt-2{padding-top:.5rem}.sm\\:pt-5{padding-top:1.25rem}.sm\\:text-gray-700{--tw-text-opacity:1;color:rgba(55,65,81,var(--tw-text-opacity))}.sm\\:align-middle{vertical-align:middle}.sm\\:w-full{width:100%}.sm\\:gap-4{grid-gap:1rem;gap:1rem}.sm\\:gap-6{grid-gap:1.5rem;gap:1.5rem}.sm\\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.sm\\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.sm\\:col-span-1{grid-column:span 1/span 1}.sm\\:col-span-2{grid-column:span 2/span 2}.sm\\:col-span-4{grid-column:span 4/span 4}.sm\\:translate-x-0{--tw-translate-x:0px}.sm\\:translate-x-2{--tw-translate-x:0.5rem}.sm\\:translate-y-0{--tw-translate-y:0px}}@media (min-width:768px){.md\\:space-y-0>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-top:calc(0px*(1 - var(--tw-space-y-reverse)));margin-bottom:calc(0px*var(--tw-space-y-reverse))}.md\\:space-x-8>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-right:calc(2rem*var(--tw-space-x-reverse));margin-left:calc(2rem*(1 - var(--tw-space-x-reverse)))}.md\\:border-l-0{border-left-width:0}.md\\:border-t-4{border-top-width:4px}.md\\:flex{display:flex}.md\\:grid{display:grid}.md\\:hidden{display:none}.md\\:flex-1{flex:1 1 0%}.md\\:text-5xl{font-size:3rem;line-height:1}.md\\:text-6xl{font-size:3.75rem;line-height:1}.md\\:max-w-md{max-width:28rem}.md\\:max-w-3\\/4{max-width:75%}.md\\:p-4{padding:1rem}.md\\:p-6{padding:1.5rem}.md\\:p-8{padding:2rem}.md\\:p-10{padding:2.5rem}.md\\:px-0{padding-left:0;padding-right:0}.md\\:px-6{padding-left:1.5rem;padding-right:1.5rem}.md\\:pb-0{padding-bottom:0}.md\\:pl-0{padding-left:0}.md\\:pt-4{padding-top:1rem}.md\\:pb-6{padding-bottom:1.5rem}.md\\:pt-10{padding-top:2.5rem}.md\\:right-20{right:5rem}.md\\:left-20{left:5rem}.md\\:w-1\\/2{width:50%}.md\\:w-9\\/12{width:75%}.md\\:w-10\\/12{width:83.333333%}.md\\:gap-6{grid-gap:1.5rem;gap:1.5rem}.md\\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.md\\:col-span-2{grid-column:span 2/span 2}.md\\:col-span-3{grid-column:span 3/span 3}}@media (min-width:1024px){.lg\\:space-x-4>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-right:calc(1rem*var(--tw-space-x-reverse));margin-left:calc(1rem*(1 - var(--tw-space-x-reverse)))}.lg\\:divide-y>:not([hidden])~:not([hidden]){--tw-divide-y-reverse:0;border-top-width:calc(1px*(1 - var(--tw-divide-y-reverse)));border-bottom-width:calc(1px*var(--tw-divide-y-reverse))}.lg\\:divide-gray-200>:not([hidden])~:not([hidden]){--tw-divide-opacity:1;border-color:rgba(229,231,235,var(--tw-divide-opacity))}.lg\\:bg-white{--tw-bg-opacity:1;background-color:rgba(255,255,255,var(--tw-bg-opacity))}
11.lg\\:rounded-md{border-radius:.375rem}.lg\\:rounded-xl{border-radius:.75rem}.lg\\:block{display:block}.lg\\:flex{display:flex}.lg\\:grid{display:grid}.lg\\:hidden{display:none}.lg\\:flex-col{flex-direction:column}.lg\\:items-center{align-items:center}.lg\\:justify-start{justify-content:flex-start}.lg\\:justify-center{justify-content:center}.lg\\:justify-between{justify-content:space-between}.lg\\:flex-grow{flex-grow:1}.lg\\:flex-shrink-0{flex-shrink:0}.lg\\:order-1{order:1}.lg\\:order-2{order:2}.lg\\:text-6xl{font-size:3.75rem;line-height:1}.lg\\:text-7xl{font-size:4.5rem;line-height:1}.lg\\:-mx-8{margin-left:-2rem;margin-right:-2rem}.lg\\:mt-0{margin-top:0}.lg\\:mb-0{margin-bottom:0}.lg\\:mb-4{margin-bottom:1rem}.lg\\:ml-4{margin-left:1rem}.lg\\:mb-5{margin-bottom:1.25rem}.lg\\:-ml-24{margin-left:-6rem}.lg\\:max-w-xs{max-width:20rem}.lg\\:max-w-md{max-width:28rem}.lg\\:max-w-lg{max-width:32rem}.lg\\:max-w-1\\/2{max-width:50%}.lg\\:p-5{padding:1.25rem}.lg\\:p-6{padding:1.5rem}.lg\\:p-10{padding:2.5rem}.lg\\:px-0{padding-left:0;padding-right:0}.lg\\:px-6{padding-left:1.5rem;padding-right:1.5rem}.lg\\:px-8{padding-left:2rem;padding-right:2rem}.lg\\:py-10{padding-top:2.5rem;padding-bottom:2.5rem}.lg\\:py-12{padding-top:3rem;padding-bottom:3rem}.lg\\:px-12{padding-left:3rem;padding-right:3rem}.lg\\:pt-0{padding-top:0}.lg\\:pb-0{padding-bottom:0}.lg\\:pl-4{padding-left:1rem}.lg\\:pb-5{padding-bottom:1.25rem}.lg\\:pr-6{padding-right:1.5rem}.lg\\:pt-8{padding-top:2rem}.lg\\:pb-10{padding-bottom:2.5rem}.lg\\:sticky{position:-webkit-sticky;position:sticky}.lg\\:top-6{top:1.5rem}.lg\\:top-32{top:8rem}.lg\\:right-48{right:12rem}.lg\\:left-48{left:12rem}.lg\\:shadow-lg{--tw-shadow:0 10px 15px -3px rgba(0,0,0,0.1),0 4px 6px -2px rgba(0,0,0,0.05)}.lg\\:shadow-lg,.lg\\:shadow-xl{box-shadow:0 0 transparent,0 0 transparent,var(--tw-sha
11dow);box-shadow:var(--tw-ring-offset-shadow,0 0 transparent),var(--tw-ring-shadow,0 0 transparent),var(--tw-shadow)}.lg\\:shadow-xl{--tw-shadow:0 20px 25px -5px rgba(0,0,0,0.1),0 10px 10px -5px rgba(0,0,0,0.04)}.lg\\:shadow-none{--tw-shadow:0 0 transparent;box-shadow:0 0 transparent,0 0 transparent,var(--tw-shadow);box-shadow:var(--tw-ring-offset-shadow,0 0 transparent),var(--tw-ring-shadow,0 0 transparent),var(--tw-shadow)}.lg\\:w-14{width:3.5rem}.lg\\:w-1\\/2{width:50%}.lg\\:w-9\\/12{width:75%}.lg\\:gap-8{grid-gap:2rem;gap:2rem}.lg\\:gap-x-6{grid-column-gap:1.5rem;-moz-column-gap:1.5rem;column-gap:1.5rem}.lg\\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.lg\\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.lg\\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.lg\\:grid-cols-12{grid-template-columns:repeat(12,minmax(0,1fr))}.lg\\:col-span-1{grid-column:span 1/span 1}.lg\\:col-span-2{grid-column:span 2/span 2}.lg\\:col-span-3{grid-column:span 3/span 3}.lg\\:col-span-4{grid-column:span 4/span 4}.lg\\:col-span-5{grid-column:span 5/span 5}.lg\\:col-span-6{grid-column:span 6/span 6}.lg\\:col-span-7{grid-column:span 7/span 7}.lg\\:col-span-8{grid-column:span 8/span 8}.lg\\:col-span-9{grid-column:span 9/span 9}.lg\\:col-span-12{grid-column:span 12/span 12}.lg\\:row-span-2{grid-row:span 2/span 2}}@media (min-width:1280px){.xl\\:-ml-32{margin-left:-8rem}.xl\\:max-w-xl{max-width:36rem}.xl\\:p-24{padding:6rem}.xl\\:w-10\\/12{width:83.333333%}.xl\\:col-span-5{grid-column:span 5/span 5}.xl\\:col-span-7{grid-column:span 7/span 7}}",""]),t.exports=e},,,,,,,,,function(t,e,r){"use strict";var n=r(212),o=r(214),h=r(365),c=r(366),f=r(62),l=r(217),d=r(156),m=r(218);function v(t,e,r){"function"==typeof t.addAlgoliaAgent&&t.addAlgoliaAgent("JS Helper ("+m+")"),this.setClient(t);var o=r||{};o.index=e,this.state=n.make(o),this.lastResults=null,this._queryId=0,this._lastQueryIdReceived=-1,this.derivedHelpers=[],this._currentNbQueries=0}function y(t){if(t<0)throw new Error("Page requested below 0.");return this._change({state:this.state.setPage(t),isPageReset:!1}),this}function w(){return this.state.page}l(v,f.EventEmitter),v.prototype.search=function(){return this._search({onlyWithDerivedHelpers:!1}),this},v.prototype.searchOnlyWithDerivedHelpers=function(){return this._search({onlyWithDerivedHelpers:!0}),this},v.prototype.getQuery=function(){var t=this.state;return c._getHitsSearchParams(t)},v.prototype.searchOnce=function(t,e){var r=t?this.state.setQueryParameters(t):this.state,n=c._getQueries(r.index,r),h=this;if(this._currentNbQueries++,this.emit("searchOnce",{state:r}),!e)return this.client.search(n).then((function(content){return h._currentNbQueries--,0===h._currentNbQueries&&h.emit("searchQueueEmpty"),{content:new o(r,content.results),state:r,_originalResponse:content}}),(function(t){throw h._currentNbQueries--,0===h._currentNbQueries&&h.emit("searchQueueEmpty"),t}));this.client.search(n).then((function(content){h._currentNbQueries--,0===h._currentNbQueries&&h.emit("searchQueueEmpty"),e(null,new o(r,content.results),r)})).catch((function(t){h._currentNbQueries--,0===h._currentNbQueries&&h.emit("searchQueueEmpty"),e(t,null,r)}))},v.prototype.searchForFacetValues=function(t,e,r,n){var o="function"==typeof this.client.searchForFacetValues;if(!o&&"function"!=typeof this.client.initIndex)throw new Error("search for facet values (searchable) was called, but this client does not have a function client.searchForFacetValues or client.initIndex(index).searchForFacetValues");var h=this.state.setQueryParameters(n||{}),f=h.isDisjunctiveFacet(t),l=c.getSearchForFacetQuery(t,e,r,h);this._currentNbQueries++;var d=this;return this.emit("searchForFacetValues",{state:h,facet:t,query:e}),(o?this.client.searchForFacetValues([{indexName:h.index,params:l}]):this.client.initIndex(h.index).searchForFacetValues(l)).then((function(content){return d._currentNbQueries--,0===d._currentNbQueries&&d.emit("searchQueueEmpty"),(content=Array.isArray(content)?content[0]:content).facetHits.forEach((function(e){e.isRefined=f?h.isDisjunctiveFacetRefined(t,e.value):h.isFacetRefined(t,e.value)})),content}),(function(t){throw d._currentNbQueries--,0===d._currentNbQueries&&d.emit("searchQueueEmpty"),t}))},v.prototype.setQuery=function(q){return this._change({state:this.state.resetPage().setQuery(q),isPageReset:!0}),this},v.prototype.clearRefinements=function(t){return this._change({state:this.state.resetPage().clearRefinements(t),isPageReset:!0}),this},v.prototype.clearTags=function(){return this._change({state:this.state.resetPage().clearTags(),isPageReset:!0}),this},v.prototype.addDisjunctiveFacetRefinement=function(t,e){return this._change({state:this.state.resetPage().addDisjunctiveFacetRefinement(t,e),isPageReset:!0}),this},v.prototype.addDisjunctiveRefine=function(){return this.addDisjunctiveFacetRefinement.apply(this,arguments)},v.prototype.addHierarchicalFacetRefinement=function(t,e){return this._change({state:this.state.resetPage().addHierarchicalFacetRefinement(t,e),isPageReset:!0}),this},v.prototype.addNumericRefinement=function(t,e,r){return this._change({state:this.state.resetPage().addNumericRefinement(t,e,r),isPageReset:!0}),this},v.prototype.addFacetRefinement=function(t,e){return this._change({state:this.state.resetPage().addFacetRefinement(t,e),isPageReset:!0}),this},v.prototype.addRefine=function(){return this.addFacetRefinement.apply(this,arguments)},v.prototype.addFacetExclusion=function(t,e){return this._change({state:this.state.resetPage().addExcludeRefinement(t,e),isPageReset:!0}),this},v.prototype.addExclude=function(){return this.addFacetExclusion.apply(this,arguments)},v.prototype.addTag=function(t){return this._change({state:this.state.resetPage().addTagRefinement(t),isPageReset:!0}),this},v.prototype.removeNumericRefinement=function(t,e,r){return this._change({state:this.state.resetPage().removeNumericRefinement(t,e,r),isPageReset:!0}),this},v.prototype.removeDisjunctiveFacetRefinement=function(t,e){return this._change({state:this.state.resetPage().removeDisjunctiveFacetRefinement(t,e),isPageReset:!0}),this},v.prototype.removeDisjunctiveRefine=function(){return this.removeDisjunctiveFacetRefinement.apply(this,arguments)},v.prototype.removeHierarchicalFacetRefinement=function(t){return this._change({state:this.state.resetPage().removeHierarchicalFacetRefinement(t),isPageReset:!0}),this},v.prototype.removeFacetRefinement=function(t,e){return this._change({state:this.state.resetPage().removeFacetRefinement(t,e),isPageReset:!0}),this},v.prototype.removeRefine=function(){return this.removeFacetRefinement.apply(this,arguments)},v.prototype.removeFacetExclusion=function(t,e){return this._change({state:this.state.resetPage().removeExcludeRefinement(t,e),isPageReset:!0}),this},v.prototype.removeExclude=function(){return this.removeFacetExclusion.apply(this,arguments)},v.prototype.removeTag=function(t){return this._change({state:this.state.resetPage().removeTagRefinement(t),isPageReset:!0}),this},v.prototype.toggleFacetExclusion=function(t,e){return this._change({state:this.state.resetPage().toggleExcludeFacetRefinement(t,e),isPageReset:!0}),this},v.prototype.toggleExclude=function(){return this.toggleFacetExclusion.apply(this,arguments)},v.prototype.toggleRefinement=function(t,e){return this.toggleFacetRefinement(t,e)},v.prototype.toggleFacetRefinement=function(t,e){return this._change({state:this.state.resetPage().toggleFacetRefinement(t,e),isPageReset:!0}),this},v.prototype.toggleRefine=function(){return this.toggleFacetRefinement.apply(this,arguments)},v.prototype.toggleTag=function(t){return this._change({state:this.state.resetPage().toggleTagRefinement(t),isPageReset:!0}),this},v.prototype.nextPage=function(){var t=this.state.page||0;return this.setPage(t+1)},v.prototype.previousPage=function(){var t=this.state.page||0;return this.setPage(t-1)},v.prototype.setCurrentPage=y,v.prototype.setPage=y,v.prototype.setIndex=function(t){return this._change({state:this.state.resetPage().setIndex(t),isPageReset:!0}),this},v.prototype.setQueryParameter=function(t,e){return this._change({state:this.state.resetPage().setQueryParameter(t,e),isPageReset:!0}),this},v.prototype.setState=function(t){return this._change({state:n.make(t),isPageReset:!1}),this},v.prototype.overrideStateWithoutTriggeringChangeEvent=function(t){return this.state=new n(t),this}
vendor: 4,138 bytes, line 11
11,v.prototype.hasRefinements=function(t){return!!d(this.state.getNumericRefinements(t))||(this.state.isConjunctiveFacet(t)?this.state.isFacetRefined(t):this.state.isDisjunctiveFacet(t)?this.state.isDisjunctiveFacetRefined(t):!!this.state.isHierarchicalFacet(t)&&this.state.isHierarchicalFacetRefined(t))},v.prototype.isExcluded=function(t,e){return this.state.isExcludeRefined(t,e)},v.prototype.isDisjunctiveRefined=function(t,e){return this.state.isDisjunctiveFacetRefined(t,e)},v.prototype.hasTag=function(t){return this.state.isTagRefined(t)},v.prototype.isTagRefined=function(){return this.hasTagRefinements.apply(this,arguments)},v.prototype.getIndex=function(){return this.state.index},v.prototype.getCurrentPage=w,v.prototype.getPage=w,v.prototype.getTags=function(){return this.state.tagRefinements},v.prototype.getRefinements=function(t){var e=[];if(this.state.isConjunctiveFacet(t))this.state.getConjunctiveRefinements(t).forEach((function(t){e.push({value:t,type:"conjunctive"})})),this.state.getExcludeRefinements(t).forEach((function(t){e.push({value:t,type:"exclude"})}));else if(this.state.isDisjunctiveFacet(t)){this.state.getDisjunctiveRefinements(t).forEach((function(t){e.push({value:t,type:"disjunctive"})}))}var r=this.state.getNumericRefinements(t);return Object.keys(r).forEach((function(t){var n=r[t];e.push({value:n,operator:t,type:"numeric"})})),e},v.prototype.getNumericRefinement=function(t,e){return this.state.getNumericRefinement(t,e)},v.prototype.getHierarchicalFacetBreadcrumb=function(t){return this.state.getHierarchicalFacetBreadcrumb(t)},v.prototype._search=function(t){var e=this.state,r=[],n=[];t.onlyWithDerivedHelpers||(n=c._getQueries(e.index,e),r.push({state:e,queriesCount:n.length,helper:this}),this.emit("search",{state:e,results:this.lastResults}));var o=this.derivedHelpers.map((function(t){var n=t.getModifiedState(e),o=c._getQueries(n.index,n);return r.push({state:n,queriesCount:o.length,helper:t}),t.emit("search",{state:n,results:t.lastResults}),o})),h=Array.prototype.concat.apply(n,o),f=this._queryId++;this._currentNbQueries++;try{this.client.search(h).then(this._dispatchAlgoliaResponse.bind(this,r,f)).catch(this._dispatchAlgoliaError.bind(this,f))}catch(t){this.emit("error",{error:t})}},v.prototype._dispatchAlgoliaResponse=function(t,e,content){if(!(e<this._lastQueryIdReceived)){this._currentNbQueries-=e-this._lastQueryIdReceived,this._lastQueryIdReceived=e,0===this._currentNbQueries&&this.emit("searchQueueEmpty");var r=content.results.slice();t.forEach((function(s){var t=s.state,e=s.queriesCount,n=s.helper,h=r.splice(0,e),c=n.lastResults=new o(t,h);n.emit("result",{results:c,state:t})}))}},v.prototype._dispatchAlgoliaError=function(t,e){t<this._lastQueryIdReceived||(this._currentNbQueries-=t-this._lastQueryIdReceived,this._lastQueryIdReceived=t,this.emit("error",{error:e}),0===this._currentNbQueries&&this.emit("searchQueueEmpty"))},v.prototype.containsRefinement=function(t,e,r,n){return t||0!==e.length||0!==r.length||0!==n.length},v.prototype._hasDisjunctiveRefinements=function(t){return this.state.disjunctiveRefinements[t]&&this.state.disjunctiveRefinements[t].length>0},v.prototype._change=function(t){var e=t.state,r=t.isPageReset;e!==this.state&&(this.state=e,this.emit("change",{state:this.state,results:this.lastResults,isPageReset:r}))},v.prototype.clearCache=function(){return this.client.clearCache&&this.client.clearCache(),this},v.prototype.setClient=function(t){return this.client===t||("function"==typeof t.addAlgoliaAgent&&t.addAlgoliaAgent("JS Helper ("+m+")"),this.client=t),this},v.prototype.getClient=function(){return this.client},v.prototype.derive=function(t){var e=new h(this,t);return this.derivedHelpers.push(e),e},v.prototype.detachDerivedHelper=function(t){var e=this.derivedHelpers.indexOf(t);if(-1===e)throw new Error("Derived helper already detached");this.derivedHelpers.splice(e,1)},v.prototype.hasPendingRequests=function(){return this._currentNbQueries>0},t.exports=v},function(t,e,r){"use strict";t.exports=function(t,e){return t.filter((function(r,n){return e.indexOf(r)>-1&&t.indexOf(r)===n}))}},function(t,e,r){"use strict";
11t.exports=function t(e){if("number"==typeof e)return e;if("string"==typeof e)return parseFloat(e);if(Array.isArray(e))return e.map(t);throw new Error("The value should be a number, a parsable string or an array of those.")}},function(t,e,r){"use strict";t.exports=function(t){return null!==t&&/^[a-zA-Z0-9_-]{1,64}$/.test(t)}},function(t,e,r){"use strict";var n=r(155),o=r(213),h=r(156),c={addRefinement:function(t,e,r){if(c.isRefined(t,e,r))return t;var o=""+r,h=t[e]?t[e].concat(o):[o],f={};return f[e]=h,n({},f,t)},removeRefinement:function(t,e,r){if(void 0===r)return c.clearRefinement(t,(function(t,r){return e===r}));var n=""+r;return c.clearRefinement(t,(function(t,r){return e===r&&n===t}))},toggleRefinement:function(t,e,r){if(void 0===r)throw new Error("toggleRefinement should be used with a value");return c.isRefined(t,e,r)?c.removeRefinement(t,e,r):c.addRefinement(t,e,r)},clearRefinement:function(t,e,r){if(void 0===e)return h(t)?{}:t;if("string"==typeof e)return o(t,[e]);if("function"==typeof e){var n=!1,c=Object.keys(t).reduce((function(o,h){var c=t[h]||[],f=c.filter((function(t){return!e(t,h,r)}));return f.length!==c.length&&(n=!0),o[h]=f,o}),{});return n?c:t}},isRefined:function(t,e,r){var n=!!t[e]&&t[e].length>0;if(void 0===r||!n)return n;var o=""+r;return-1!==t[e].indexOf(o)}};t.exports=c},function(t,e,r){"use strict";t.exports=function(t){return Array.isArray(t)?t.filter(Boolean):[]}},function(t,e,r){"use strict";t.exports=function(t,e){if(!Array.isArray(t))return-1;for(var i=0;i<t.length;i++)if(e(t[i]))return i;return-1}},function(t,e,r){"use strict";t.exports=function(t){return function(e,r){var c=t.hierarchicalFacets[r],f=t.hierarchicalFacetsRefinements[c.name]&&t.hierarchicalFacetsRefinements[c.name][0]||"",l=t._getHierarchicalFacetSeparator(c),d=t._getHierarchicalRootPath(c),m=t._getHierarchicalShowParentLevel(c),v=h(t._getHierarchicalFacetSortBy(c)),y=e.every((function(t){return t.exhaustive})),w=function(t,e,r,h,c){return function(f,l,d){var m=f;if(d>0){var v=0;for(m=f;v<d;){var data=m&&Array.isArray(m.data)?m.data:[];m=o(data,(function(t){return t.isRefined})),v++}}if(m){var y=Object.keys(l.data).map((function(t){return[t,l.data[t]]})).filter((function(t){return function(t,e,r,n,o,h){if(o&&(0!==t.indexOf(o)||o===t))return!1;return!o&&-1===t.indexOf(n)||o&&t.split(n).length-o.split(n).length==1||-1===t.indexOf(n)&&-1===r.indexOf(n)||0===r.indexOf(t)||0===t.indexOf(e+n)&&(h||0===t.indexOf(r))}(t[0],m.path||r,c,e,r,h)}));m.data=n(y.map((function(t){var r=t[0];return function(t,e,r,n,o){var h=e.split(r);return{name:h[h.length-1].trim(),path:e,count:t,isRefined:n===e||0===n.indexOf(e+r),exhaustive:o,data:null}}(t[1],r,e,c,l.exhaustive)})),t[0],t[1])}return f}}(v,l,d,m,f),M=e;return d&&(M=e.slice(d.split(l).length)),M.reduce(w,{name:t.hierarchicalFacets[r].name,count:null,isRefined:!0,path:null,exhaustive:y,data:null})}};var n=r(215),o=r(122),h=r(216)},function(t,e,r){"use strict";var n=r(62);function o(t,e){this.main=t,this.fn=e,this.lastResults=null}r(217)(o,n.EventEmitter),o.prototype.detach=function(){this.removeAllListeners(),this.main.detachDerivedHelper(this)},o.prototype.getModifiedState=function(t){return this.fn(t)},t.exports=o},function(t,e,r){"use strict";var n=r(154),o={_getQueries:function(t,e){var r=[];return r.push({indexName:t,params:o._getHitsSearchParams(e)}),e.getRefinedDisjunctiveFacets().forEach((function(n){r.push({indexName:t,params:o._getDisjunctiveFacetSearchParams(e,n)})})),e.getRefinedHierarchicalFacets().forEach((function(n){var h=e.getHierarchicalFacetByName(n),c=e.getHierarchicalRefinement(n),f=e._getHierarchicalFacetSeparator(h);c.length>0&&c[0].split(f).length>1&&r.push({indexName:t,params:o._getDisjunctiveFacetSearchParams(e,n,!0)})})),r},_getHitsSearchParams:function(t){var e=t.facets.concat(t.disjunctiveFacets).concat(o._getHitsHierarchicalFacetsAttributes(t)),r=o._getFacetFilters(t),h=o._getNumericFilters(t),c={facets:e,tagFilters:o._getTagFilters(t)};return r.length>0&&(c.facetFilters=r),h.length>0&&(c.numericFilters=h),n({},t.getQueryParams(),c)},_getDisjunctiveFacetSearchParams:function(t,e,r){var h=o._getFacetFilters(t,e,r),c=o._getNumericFilters(t,e),f={hitsPerPage:1,page:0,attributesToRetrieve:[],attributesToHighlight:[],attributesToSnippet:[],tagFilters:o._getTagFilters(t),analytics:!1,clickAnalytics:!1},l=t.getHierarchicalFacetByName(e);return f.facets=l?o._getDisjunctiveHierarchicalFacetAttribute(t,l,r):e,c.length>0&&(f.numericFilters=c),h.length>0&&(f.facetFilters=h),n({},t.getQueryParams(),f)},_getNumericFilters:function(t,e){if(t.numericFilters)return t.numericFilters;var r=[];
11return Object.keys(t.numericRefinements).forEach((function(n){var o=t.numericRefinements[n]||{};Object.keys(o).forEach((function(t){var h=o[t]||[];e!==n&&h.forEach((function(e){if(Array.isArray(e)){var o=e.map((function(e){return n+t+e}));r.push(o)}else r.push(n+t+e)}))}))})),r},_getTagFilters:function(t){return t.tagFilters?t.tagFilters:t.tagRefinements.join(",")},_getFacetFilters:function(t,e,r){var n=[],o=t.facetsRefinements||{};Object.keys(o).forEach((function(t){(o[t]||[]).forEach((function(e){n.push(t+":"+e)}))}));var h=t.facetsExcludes||{};Object.keys(h).forEach((function(t){(h[t]||[]).forEach((function(e){n.push(t+":-"+e)}))}));var c=t.disjunctiveFacetsRefinements||{};Object.keys(c).forEach((function(t){var r=c[t]||[];if(t!==e&&r&&0!==r.length){var o=[];r.forEach((function(e){o.push(t+":"+e)})),n.push(o)}}));var f=t.hierarchicalFacetsRefinements||{};return Object.keys(f).forEach((function(o){var h=(f[o]||[])[0];if(void 0!==h){var c,l,d=t.getHierarchicalFacetByName(o),m=t._getHierarchicalFacetSeparator(d),v=t._getHierarchicalRootPath(d);if(e===o){if(-1===h.indexOf(m)||!v&&!0===r||v&&v.split(m).length===h.split(m).length)return;v?(l=v.split(m).length-1,h=v):(l=h.split(m).length-2,h=h.slice(0,h.lastIndexOf(m))),c=d.attributes[l]}else l=h.split(m).length-1,c=d.attributes[l];c&&n.push([c+":"+h])}})),n},_getHitsHierarchicalFacetsAttributes:function(t){return t.hierarchicalFacets.reduce((function(e,r){var n=t.getHierarchicalRefinement(r.name)[0];if(!n)return e.push(r.attributes[0]),e;var o=t._getHierarchicalFacetSeparator(r),h=n.split(o).length,c=r.attributes.slice(0,h+1);return e.concat(c)}),[])},_getDisjunctiveHierarchicalFacetAttribute:function(t,e,r){var n=t._getHierarchicalFacetSeparator(e);if(!0===r){var o=t._getHierarchicalRootPath(e),h=0;return o&&(h=o.split(n).length),[e.attributes[h]]}var c=(t.getHierarchicalRefinement(e.name)[0]||"").split(n).length-1;return e.attributes.slice(0,c+1)},getSearchForFacetQuery:function(t,e,r,h){var c=h.isDisjunctiveFacet(t)?h.clearRefinements(t):h,f={facetQuery:e,facetName:t};return"number"==typeof r&&(f.maxFacetHits=r),n({},o._getHitsSearchParams(c),f)}};t.exports=o},function(t,e){!function(){"use strict";if("object"==typeof window)if("IntersectionObserver"in window&&"IntersectionObserverEntry"in window&&"intersectionRatio"in window.IntersectionObserverEntry.prototype)"isIntersecting"in window.IntersectionObserverEntry.prototype||Object.defineProperty(window.IntersectionObserverEntry.prototype,"isIntersecting",{get:function(){return this.intersectionRatio>0}});else{var t=function(t){for(var e=window.document,r=o(e);r;)r=o(e=r.ownerDocument);return e}(),e=[],r=null,n=null;c.prototype.THROTTLE_TIMEOUT=100,c.prototype.POLL_INTERVAL=null,c.prototype.USE_MUTATION_OBSERVER=!0,c._setupCrossOriginUpdater=function(){return r||(r=function(t,r){n=t&&r?v(t,r):{top:0,bottom:0,left:0,right:0,width:0,height:0},e.forEach((function(t){t._checkForIntersections()}))}),r},c._resetCrossOriginUpdater=function(){r=null,n=null},c.prototype.observe=function(t){if(!this._observationTargets.some((function(e){return e.element==t}))){if(!t||1!=t.nodeType)throw new Error("target must be an Element");this._registerInstance(),this._observationTargets.push({element:t,entry:null}),this._monitorIntersections(t.ownerDocument),this._checkForIntersections()}},c.prototype.unobserve=function(t){this._observationTargets=this._observationTargets.filter((function(e){return e.element!=t})),this._unmonitorIntersections(t.ownerDocument),0==this._observationTargets.length&&this._unregisterInstance()},c.prototype.disconnect=function(){this._observationTargets=[],this._unmonitorAllIntersections(),this._unregisterInstance()},c.prototype.takeRecords=function(){var t=this._queuedEntries.slice();return this._queuedEntries=[],t},c.prototype._initThresholds=function(t){var e=t||[0];return Array.isArray(e)||(e=[e]),e.sort().filter((function(t,i,a){if("number"!=typeof t||isNaN(t)||t<0||t>1)throw new Error("threshold must be a number between 0 and 1 inclusively");return t!==a[i-1]}))},c.prototype._parseRootMargin=function(t){var e=(t||"0px").split(/\s+/).map((function(t){var e=/^(-?\d*\.?\d+)(px|%)$/.exec(t);if(!e)throw new Error("rootMargin must be specified in pixels or percent");return{value:parseFloat(e[1]),unit:e[2]}}));return e[1]=e[1]||e[0],e[2]=e[2]||e[0],e[3]=e[3]||e[1],e},c.prototype._monitorIntersections=function(e){var r=e.defaultView;if(r&&-1==this._monitoringDocuments.indexOf(e)){var n=this._checkForIntersections,h=null,c=null;this.POLL_INTERVAL?h=r.setInterval(n,this.POLL_INTERVAL):(f(r,"resize",n,!0),f(e,"scroll",n,!0),this.USE_MUTATION_OBSERVER&&"MutationObserver"in r&&(c=new r.MutationObserver(n)).observe(e,{attributes:!0,childList:!0,characterData:!0,subtree:!0})),this._monitoringDocuments.push(e),this._monitoringUnsubscribes.push((function(){var t=e.defaultView;t&&(h&&t.clearInterval(h),l(t,"resize",n,!0)),l(e,"scroll",n,!0),c&&c.disconnect()}));var d=this.root&&(this.root.ownerDocument||this.root)||t;if(e!=d){var m=o(e);m&&this._monitorIntersections(m.ownerDocument)}}},c.prototype._unmonitorIntersections=function(e){var r=this._monitoringDocuments.indexOf(e);if(-1!=r){var n=this.root&&(this.root.ownerDocument||this.root)||t;if(!this._observationTargets.some((function(t){var r=t.element.ownerDocument;if(r==e)return!0;for(;r&&r!=n;){var h=o(r);if((r=h&&h.ownerDocument)==e)return!0}return!1}))){var h=this._monitoringUnsubscribes[r];if(this._monitoringDocuments.splice(r,1),this._monitoringUnsubscribes.splice(r,1),h(),e!=n){var c=o(e);c&&this._unmonitorIntersections(c.ownerDocument)}}}},c.prototype._unmonitorAllIntersections=function(){var t=this._monitoringUnsubscribes.slice(0);this._monitoringDocuments.length=0,this._monitoringUnsubscribes.length=0;for(var i=0;i<t.length;i++)t[i]()},c.prototype._checkForIntersections=function(){if(this.root||!r||n){var t=this._rootIsInDom(),e=t?this._getRootRect():{top:0,bottom:0,left:0,right:0,width:0,height:0};
vendor: 4,525 bytes, line 11
11this._observationTargets.forEach((function(n){var o=n.element,c=d(o),f=this._rootContainsTarget(o),l=n.entry,m=t&&f&&this._computeTargetAndRootIntersection(o,c,e),v=null;this._rootContainsTarget(o)?r&&!this.root||(v=e):v={top:0,bottom:0,left:0,right:0,width:0,height:0};var y=n.entry=new h({time:window.performance&&performance.now&&performance.now(),target:o,boundingClientRect:c,rootBounds:v,intersectionRect:m});l?t&&f?this._hasCrossedThreshold(l,y)&&this._queuedEntries.push(y):l&&l.isIntersecting&&this._queuedEntries.push(y):this._queuedEntries.push(y)}),this),this._queuedEntries.length&&this._callback(this.takeRecords(),this)}},c.prototype._computeTargetAndRootIntersection=function(e,o,h){if("none"!=window.getComputedStyle(e).display){for(var c,f,l,m,y,M,_,S,A=o,x=w(e),k=!1;!k&&x;){var E=null,C=1==x.nodeType?window.getComputedStyle(x):{};if("none"==C.display)return null;if(x==this.root||9==x.nodeType)if(k=!0,x==this.root||x==t)r&&!this.root?!n||0==n.width&&0==n.height?(x=null,E=null,A=null):E=n:E=h;else{var R=w(x),I=R&&d(R),P=R&&this._computeTargetAndRootIntersection(R,I,h);I&&P?(x=R,E=v(I,P)):(x=null,A=null)}else{var T=x.ownerDocument;x!=T.body&&x!=T.documentElement&&"visible"!=C.overflow&&(E=d(x))}if(E&&(c=E,f=A,l=void 0,m=void 0,y=void 0,M=void 0,_=void 0,S=void 0,l=Math.max(c.top,f.top),m=Math.min(c.bottom,f.bottom),y=Math.max(c.left,f.left),M=Math.min(c.right,f.right),S=m-l,A=(_=M-y)>=0&&S>=0&&{top:l,bottom:m,left:y,right:M,width:_,height:S}||null),!A)break;x=x&&w(x)}return A}},c.prototype._getRootRect=function(){var e;if(this.root&&!M(this.root))e=d(this.root);else{var r=M(this.root)?this.root:t,html=r.documentElement,body=r.body;e={top:0,left:0,right:html.clientWidth||body.clientWidth,width:html.clientWidth||body.clientWidth,bottom:html.clientHeight||body.clientHeight,height:html.clientHeight||body.clientHeight}}return this._expandRectByRootMargin(e)},c.prototype._expandRectByRootMargin=function(rect){var t=this._rootMarginValues.map((function(t,i){return"px"==t.unit?t.value:t.value*(i%2?rect.width:rect.height)/100})),e={top:rect.top-t[0],right:rect.right+t[1],bottom:rect.bottom+t[2],left:rect.left-t[3]};return e.width=e.right-e.left,e.height=e.bottom-e.top,e},c.prototype._hasCrossedThreshold=function(t,e){var r=t&&t.isIntersecting?t.intersectionRatio||0:-1,n=e.isIntersecting?e.intersectionRatio||0:-1;if(r!==n)for(var i=0;i<this.thresholds.length;i++){var o=this.thresholds[i];if(o==r||o==n||o<r!=o<n)return!0}},c.prototype._rootIsInDom=function(){return!this.root||y(t,this.root)},c.prototype._rootContainsTarget=function(e){var r=this.root&&(this.root.ownerDocument||this.root)||t;return y(r,e)&&(!this.root||r==e.ownerDocument)},c.prototype._registerInstance=function(){e.indexOf(this)<0&&e.push(this)},c.prototype._unregisterInstance=function(){var t=e.indexOf(this);-1!=t&&e.splice(t,1)},window.IntersectionObserver=c,window.IntersectionObserverEntry=h}function o(t){try{return t.defaultView&&t.defaultView.frameElement||null}catch(t){return null}}function h(t){this.time=t.time,this.target=t.target,this.rootBounds=m(t.rootBounds),this.boundingClientRect=m(t.boundingClientRect),this.intersectionRect=m(t.intersectionRect||{top:0,bottom:0,left:0,right:0,width:0,height:0}),this.isIntersecting=!!t.intersectionRect;var e=this.boundingClientRect,r=e.width*e.height,n=this.intersectionRect,o=n.width*n.height;this.intersectionRatio=r?Number((o/r).toFixed(4)):this.isIntersecting?1:0}function c(t,e){var r,n,o,h=e||{};if("function"!=typeof t)throw new Error("callback must be a function");if(h.root&&1!=h.root.nodeType&&9!=h.root.nodeType)throw new Error("root must be a Document or Element");this._checkForIntersections=(r=this._checkForIntersections.bind(this),n=this.THROTTLE_TIMEOUT,o=null,function(){o||(o=setTimeout((function(){r(),o=null}),n))}),this._callback=t,this._observationTargets=[],this._queuedEntries=[],this._rootMarginValues=this._parseRootMargin(h.rootMargin),this.thresholds=this._initThresholds(h.threshold),this.root=h.root||null,this.rootMargin=this._rootMarginValues.map((function(t){return t.value+t.unit})).join(" "),this._monitoringDocuments=[],this._monitoringUnsubscribes=[]}function f(t,e,r,n){"function"==typeof t.addEventListener?t.addEventListener(e,r,n||!1):"function"==typeof t.attachEvent&&t.attachEvent("on"+e,r)}function l(t,e,r,n){"function"==typeof t.removeEventListener?t.removeEventListener(e,r,n||!1):"function"==typeof t.detatchEvent&&t.detatchEvent("on"+e,r)}function d(t){var rect;try{rect=t.getBoundingClientRect()}catch(t){}
11return rect?(rect.width&&rect.height||(rect={top:rect.top,right:rect.right,bottom:rect.bottom,left:rect.left,width:rect.right-rect.left,height:rect.bottom-rect.top}),rect):{top:0,bottom:0,left:0,right:0,width:0,height:0}}function m(rect){return!rect||"x"in rect?rect:{top:rect.top,y:rect.top,bottom:rect.bottom,left:rect.left,x:rect.left,right:rect.right,width:rect.width,height:rect.height}}function v(t,e){var r=e.top-t.top,n=e.left-t.left;return{top:r,left:n,height:e.height,width:e.width,bottom:r+e.height,right:n+e.width}}function y(t,e){for(var r=e;r;){if(r==t)return!0;r=w(r)}return!1}function w(e){var r=e.parentNode;return 9==e.nodeType&&e!=t?o(e):(r&&r.assignedSlot&&(r=r.assignedSlot.parentNode),r&&11==r.nodeType&&r.host?r.host:r)}function M(t){return t&&9===t.nodeType}}()},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(t,e,r){"use strict";e.byteLength=function(t){var e=f(t),r=e[0],n=e[1];return 3*(r+n)/4-n},e.toByteArray=function(t){var e,i,r=f(t),n=r[0],c=r[1],l=new h(function(t,e,r){return 3*(e+r)/4-r}(0,n,c)),d=0,m=c>0?n-4:n;for(i=0;i<m;i+=4)e=o[t.charCodeAt(i)]<<18|o[t.charCodeAt(i+1)]<<12|o[t.charCodeAt(i+2)]<<6|o[t.charCodeAt(i+3)],l[d++]=e>>16&255,l[d++]=e>>8&255,l[d++]=255&e;2===c&&(e=o[t.charCodeAt(i)]<<2|o[t.charCodeAt(i+1)]>>4,l[d++]=255&e);1===c&&(e=o[t.charCodeAt(i)]<<10|o[t.charCodeAt(i+1)]<<4|o[t.charCodeAt(i+2)]>>2,l[d++]=e>>8&255,l[d++]=255&e);return l},e.fromByteArray=function(t){for(var e,r=t.length,o=r%3,h=[],i=0,c=r-o;i<c;i+=16383)h.push(l(t,i,i+16383>c?c:i+16383));1===o?(e=t[r-1],h.push(n[e>>2]+n[e<<4&63]+"==")):2===o&&(e=(t[r-2]<<8)+t[r-1],h.push(n[e>>10]+n[e>>4&63]+n[e<<2&63]+"="));return h.join("")};for(var n=[],o=[],h="undefined"!=typeof Uint8Array?Uint8Array:Array,code="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",i=0,c=code.length;i<c;++i)n[i]=code[i],o[code.charCodeAt(i)]=i;function f(t){var e=t.length;if(e%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var r=t.indexOf("=");return-1===r&&(r=e),[r,r===e?0:4-r%4]}function l(t,e,r){for(var o,h,output=[],i=e;i<r;i+=3)o=(t[i]<<16&16711680)+(t[i+1]<<8&65280)+(255&t[i+2]),output.push(n[(h=o)>>18&63]+n[h>>12&63]+n[h>>6&63]+n[63&h]);return output.join("")}o["-".charCodeAt(0)]=62,o["_".charCodeAt(0)]=63},function(t,e){e.read=function(t,e,r,n,o){var h,c,f=8*o-n-1,l=(1<<f)-1,d=l>>1,m=-7,i=r?o-1:0,v=r?-1:1,s=t[e+i];for(i+=v,h=s&(1<<-m)-1,s>>=-m,m+=f;m>0;h=256*h+t[e+i],i+=v,m-=8);for(c=h&(1<<-m)-1,h>>=-m,m+=n;m>0;c=256*c+t[e+i],i+=v,m-=8);if(0===h)h=1-d;else{if(h===l)return c?NaN:1/0*(s?-1:1);c+=Math.pow(2,n),h-=d}return(s?-1:1)*c*Math.pow(2,h-n)},e.write=function(t,e,r,n,o,h){var c,f,l,d=8*h-o-1,m=(1<<d)-1,v=m>>1,rt=23===o?Math.pow(2,-24)-Math.pow(2,-77):0,i=n?0:h-1,y=n?1:-1,s=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(f=isNaN(e)?1:0,c=m):(c=Math.floor(Math.log(e)/Math.LN2),e*(l=Math.pow(2,-c))<1&&(c--,l*=2),(e+=c+v>=1?rt/l:rt*Math.pow(2,1-v))*l>=2&&(c++,l/=2),c+v>=m?(f=0,c=m):c+v>=1?(f=(e*l-1)*Math.pow(2,o),c+=v):(f=e*Math.pow(2,v-1)*Math.pow(2,o),c=0));o>=8;t[r+i]=255&f,i+=y,f/=256,o-=8);for(c=c<<o|f,d+=o;d>0;t[r+i]=255&c,i+=y,c/=256,d-=8);t[r+i-y]|=128*s}},function(t,e,r){var n,o,h,c;t.exports=(n=r(28),h=(o=n).lib.Base,c=o.enc.Utf8,void(o.algo.HMAC=h.extend({init:function(t,e){t=this._hasher=new t.init,"string"==typeof e&&(e=c.parse(e));var r=t.blockSize,n=4*r;e.sigBytes>n&&(e=t.finalize(e)),e.clamp();for(var o=this._oKey=e.clone(),h=this._iKey=e.clone(),f=o.words,l=h.words,i=0;i<r;i++)f[i]^=1549556828,l[i]^=909522486;o.sigBytes=h.sigBytes=n,this.reset()},reset:function(){var t=this._hasher;t.reset(),t.update(this._iKey)},update:function(t){return this._hasher.update(t),this},finalize:function(t){var e=this._hasher,r=e.finalize(t);return e.reset(),e.finalize(this._oKey.clone().concat(r))}})))},function(t,e,r){"use strict";e.randomBytes=e.rng=e.pseudoRandomBytes=e.prng=r(69),e.createHash=e.Hash=r(92),e.createHmac=e.Hmac=r(247);var n=r(426),o=Object.keys(n),h=["sha1","sha224","sha256","sha384","sha512","md5","rmd160"].concat(o);e.getHashes=function(){return h};var p=r(250);e.pbkdf2=p.pbkdf2,e.pbkdf2Sync=p.pbkdf2Sync;var c=r(428);e.Cipher=c.Cipher,e.createCipher=c.createCipher,e.Cipheriv=c.Cipheriv,e.createCipheriv=c.createCipheriv,e.Decipher=c.Decipher,e.createDecipher=c.createDecipher,e.Decipheriv=c.Decipheriv,e.createDecipheriv=c.createDecipheriv,e.getCiphers=c.getCiphers,e.listCiphers=c.listCiphers;var f=r(443);e.DiffieHellmanGroup=f.DiffieHellmanGroup,e.createDiffieHellmanGroup=f.createDiffieHellmanGroup,e.getDiffieHellman=f.getDiffieHellman,e.createDiffieHellman=f.createDiffieHellman,e.DiffieHellman=f.DiffieHellman;var l=r(450);e.createSign=l.createSign,e.Sign=l.Sign,e.createVerify=l.createVerify,e.Verify=l.Verify,e.createECDH=r(483);var d=r(486);e.publicEncrypt=d.publicEncrypt,e.privateEncrypt=d.privateEncrypt,e.publicDecrypt=d.publicDecrypt,e.privateDecrypt=d.privateDecrypt;var m=r(490);e.randomFill=m.randomFill,e.randomFillSync=m.randomFillSync,e.createCredentials=function(){throw new Error(["sorry, createCredentials is not implemented yet","we accept pull requests","https://github.com/crypto-browserify/crypto-browserify"].join("\n"))},e.constants={DH_CHECK_P_NOT_SAFE_PRIME:2,DH_CHECK_P_NOT_PRIME:1,DH_UNABLE_TO_CHECK_GENERATOR:4,DH_NOT_SUITABLE_GENERATOR:8,NPN_ENABLED:1,ALPN_ENABLED:1,RSA_PKCS1_PADDING:1,RSA_SSLV23_PADDING:2,RSA_NO_PADDING:3,RSA_PKCS1_OAEP_PADDING:4,RSA_X931_PADDING:5,RSA_PKCS1_PSS_PADDING:6,POINT_CONVERSION_COMPRESSED:2,POINT_CONVERSION_UNCOMPRESSED:4,POINT_CONVERSION_HYBRID:6}},function(t,e,r){var n=r(5),o=n.Buffer;function h(t,e){for(var r in t)e[r]=t[r]}function c(t,e,r){return o(t,e,r)}o.from&&o.alloc&&o.allocUnsafe&&o.allocUnsafeSlow?t.exports=n:(h(n,e),e.Buffer=c),c.prototype=Object.create(o.prototype),h(o,c),c.from=function(t,e,r){if("number"==typeof t)throw new TypeError("Argument must not be a number");return o(t,e,r)},c.alloc=function(t,e,r){if("number"!=typeof t)throw new TypeError("Argument must be a number");var n=o(t);return void 0!==e?"string"==typeof r?n.fill(e,r):n.fill(e):n.fill(0),n},c.allocUnsafe=function(t){if("number"!=typeof t)throw new TypeError("Argument must be a number");return o(t)},c.allocUnsafeSlow=function(t){if("number"!=typeof t)throw new TypeError("Argument must be a number");return n.SlowBuffer(t)}},,function(t,e,r){"use strict";function n(object,t){var e=Object.keys(object);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(object);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(object,t).enumerable}))),e.push.apply(e,r)}return e}function o(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function h(t,e){for(var i=0;i<e.length;i++){var r=e[i];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var c=r(5).Buffer,f=r(406).inspect,l=f&&f.custom||"inspect";
vendor: 9,131 bytes, line 11
11t.exports=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.head=null,this.tail=null,this.length=0}var e,r,d;return e=t,(r=[{key:"push",value:function(t){var e={data:t,next:null};this.length>0?this.tail.next=e:this.head=e,this.tail=e,++this.length}},{key:"unshift",value:function(t){var e={data:t,next:this.head};0===this.length&&(this.tail=e),this.head=e,++this.length}},{key:"shift",value:function(){if(0!==this.length){var t=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,t}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(s){if(0===this.length)return"";for(var p=this.head,t=""+p.data;p=p.next;)t+=s+p.data;return t}},{key:"concat",value:function(t){if(0===this.length)return c.alloc(0);for(var e,r,n,o=c.allocUnsafe(t>>>0),p=this.head,i=0;p;)e=p.data,r=o,n=i,c.prototype.copy.call(e,r,n),i+=p.data.length,p=p.next;return o}},{key:"consume",value:function(t,e){var r;return t<this.head.data.length?(r=this.head.data.slice(0,t),this.head.data=this.head.data.slice(t)):r=t===this.head.data.length?this.shift():e?this._getString(t):this._getBuffer(t),r}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(t){var p=this.head,e=1,r=p.data;for(t-=r.length;p=p.next;){var n=p.data,o=t>n.length?n.length:t;if(o===n.length?r+=n:r+=n.slice(0,t),0==(t-=o)){o===n.length?(++e,p.next?this.head=p.next:this.head=this.tail=null):(this.head=p,p.data=n.slice(o));break}++e}return this.length-=e,r}},{key:"_getBuffer",value:function(t){var e=c.allocUnsafe(t),p=this.head,r=1;for(p.data.copy(e),t-=p.data.length;p=p.next;){var n=p.data,o=t>n.length?n.length:t;if(n.copy(e,e.length-t,0,o),0==(t-=o)){o===n.length?(++r,p.next?this.head=p.next:this.head=this.tail=null):(this.head=p,p.data=n.slice(o));break}++r}return this.length-=r,e}},{key:l,value:function(t,e){return f(this,function(t){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{};i%2?n(Object(source),!0).forEach((function(e){o(t,e,source[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(source)):n(Object(source)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(source,e))}))}return t}({},e,{depth:0,customInspect:!1}))}}])&&h(e.prototype,r),d&&h(e,d),t}()},,function(t,e,r){var n=r(5),o=n.Buffer;function h(t,e){for(var r in t)e[r]=t[r]}function c(t,e,r){return o(t,e,r)}o.from&&o.alloc&&o.allocUnsafe&&o.allocUnsafeSlow?t.exports=n:(h(n,e),e.Buffer=c),c.prototype=Object.create(o.prototype),h(o,c),c.from=function(t,e,r){if("number"==typeof t)throw new TypeError("Argument must not be a number");return o(t,e,r)},c.alloc=function(t,e,r){if("number"!=typeof t)throw new TypeError("Argument must be a number");var n=o(t);return void 0!==e?"string"==typeof r?n.fill(e,r):n.fill(e):n.fill(0),n},c.allocUnsafe=function(t){if("number"!=typeof t)throw new TypeError("Argument must be a number");return o(t)},c.allocUnsafeSlow=function(t){if("number"!=typeof t)throw new TypeError("Argument must be a number");return n.SlowBuffer(t)}},function(t,e,r){"use strict";(function(e){var n;function o(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var h=r(158),c=Symbol("lastResolve"),f=Symbol("lastReject"),l=Symbol("error"),d=Symbol("ended"),m=Symbol("lastPromise"),v=Symbol("handlePromise"),y=Symbol("stream");function w(t,e){return{value:t,done:e}}function M(t){var e=t[c];if(null!==e){var data=t[y].read();null!==data&&(t[m]=null,t[c]=null,t[f]=null,e(w(data,!1)))}}function _(t){e.nextTick(M,t)}var S=Object.getPrototypeOf((function(){})),A=Object.setPrototypeOf((o(n={get stream(){return this[y]},next:function(){var t=this,r=this[l];if(null!==r)return Promise.reject(r);if(this[d])return Promise.resolve(w(void 0,!0));if(this[y].destroyed)return new Promise((function(r,n){e.nextTick((function(){t[l]?n(t[l]):r(w(void 0,!0))}))}));var n,o=this[m];if(o)n=new Promise(function(t,e){return function(r,n){t.then((function(){e[d]?r(w(void 0,!0)):e[v](r,n)}),n)}}(o,this));else{var data=this[y].read();if(null!==data)return Promise.resolve(w(data,!1));n=new Promise(this[v])}return this[m]=n,n}},Symbol.asyncIterator,(function(){return this})),o(n,"return",(function(){var t=this;return new Promise((function(e,r){t[y].destroy(null,(function(t){t?r(t):e(w(void 0,!0))}))}))})),n),S);t.exports=function(t){var e,r=Object.create(A,(o(e={},y,{value:t,writable:!0}),o(e,c,{value:null,writable:!0}),o(e,f,{value:null,writable:!0}),o(e,l,{value:null,writable:!0}),o(e,d,{value:t._readableState.endEmitted,writable:!0}),o(e,v,{value:function(t,e){var data=r[y].read();data?(r[m]=null,r[c]=null,r[f]=null,t(w(data,!1))):(r[c]=t,r[f]=e)},writable:!0}),e));return r[m]=null,h(t,(function(t){if(t&&"ERR_STREAM_PREMATURE_CLOSE"!==t.code){var e=r[f];return null!==e&&(r[m]=null,r[c]=null,r[f]=null,e(t)),void(r[l]=t)}var n=r[c];null!==n&&(r[m]=null,r[c]=null,r[f]=null,n(w(void 0,!0))),r[d]=!0})),t.on("readable",_.bind(null,r)),r}}).call(this,r(33))},function(t,e){t.exports=function(){throw new Error("Readable.from is not available in the browser")}},function(t,e,r){"use strict";t.exports=o;var n=r(240);function o(t){if(!(this instanceof o))return new o(t);n.call(this,t)}r(6)(o,n),o.prototype._transform=function(t,e,r){r(null,t)}},function(t,e,r){"use strict";var n;var o=r(70).codes,h=o.ERR_MISSING_ARGS,c=o.ERR_STREAM_DESTROYED;function f(t){if(t)throw t}function l(t,e,o,h){h=function(t){var e=!1;return function(){e||(e=!0,t.apply(void 0,arguments))}}(h);var f=!1;t.on("close",(function(){f=!0})),void 0===n&&(n=r(158)),n(t,{readable:e,writable:o},(function(t){if(t)return h(t);f=!0,h()}));var l=!1;return function(e){if(!f&&!l)return l=!0,function(t){return t.setHeader&&"function"==typeof t.abort}(t)?t.abort():"function"==typeof t.destroy?t.destroy():void h(e||new c("pipe"))}}function d(t){t()}function m(t,e){return t.pipe(e)}function v(t){return t.length?"function"!=typeof t[t.length-1]?f:t.pop():f}t.exports=function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];var n,o=v(e);if(Array.isArray(e[0])&&(e=e[0]),e.length<2)throw new h("streams");var c=e.map((function(t,i){var r=i<e.length-1;return l(t,r,i>0,(function(t){n||(n=t),t&&c.forEach(d),r||(c.forEach(d),o(n))}))}));return e.reduce(m)}},function(t,e,r){var n=r(6),o=r(72),h=r(7).Buffer,c=[1518500249,1859775393,-1894007588,-899497514],f=new Array(80);function l(){this.init(),this._w=f,o.call(this,64,56)}function d(t){return t<<30|t>>>2}function m(s,b,t,e){return 0===s?b&t|~b&e:2===s?b&t|b&e|t&e:b^t^e}n(l,o),l.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},l.prototype._update=function(t){for(var e,r=this._w,a=0|this._a,b=0|this._b,n=0|this._c,o=0|this._d,h=0|this._e,i=0;i<16;++i)r[i]=t.readInt32BE(4*i);for(;i<80;++i)r[i]=r[i-3]^r[i-8]^r[i-14]^r[i-16];for(var f=0;f<80;++f){var s=~~(f/20),l=0|((e=a)<<5|e>>>27)+m(s,b,n,o)+h+r[f]+c[s];h=o,o=n,n=d(b),b=a,a=l}this._a=a+this._a|0,this._b=b+this._b|0,this._c=n+this._c|0,this._d=o+this._d|0,this._e=h+this._e|0},l.prototype._hash=function(){var t=h.allocUnsafe(20);return t.writeInt32BE(0|this._a,0),t.writeInt32BE(0|this._b,4),t.writeInt32BE(0|this._c,8),t.writeInt32BE(0|this._d,12),t.writeInt32BE(0|this._e,16),t},t.exports=l},function(t,e,r){var n=r(6),o=r(72),h=r(7).Buffer,c=[1518500249,1859775393,-1894007588,-899497514],f=new Array(80);function l(){this.init(),this._w=f,o.call(this,64,56)}function d(t){return t<<5|t>>>27}function m(t){return t<<30|t>>>2}function v(s,b,t,e){return 0===s?b&t|~b&e:2===s?b&t|b&e|t&e:b^t^e}n(l,o),l.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},l.prototype._update=function(t){for(var e,r=this._w,a=0|this._a,b=0|this._b,n=0|this._c,o=0|this._d,h=0|this._e,i=0;i<16;++i)r[i]=t.readInt32BE(4*i);for(;i<80;++i)r[i]=(e=r[i-3]^r[i-8]^r[i-14]^r[i-16])<<1|e>>>31;for(var f=0;f<80;++f){var s=~~(f/20),l=d(a)+v(s,b,n,o)+h+r[f]+c[s]|0;h=o,o=n,n=m(b),b=a,a=l}this._a=a+this._a|0,this._b=b+this._b|0,this._c=n+this._c|0,this._d=o+this._d|0,this._e=h+this._e|0},l.prototype._hash=function(){var t=h.allocUnsafe(20);return t.writeInt32BE(0|this._a,0),t.writeInt32BE(0|this._b,4),t.writeInt32BE(0|this._c,8),t.writeInt32BE(0|this._d,12),t.writeInt32BE(0|this._e,16),t},t.exports=l},function(t,e,r){var n=r(6),o=r(241),h=r(72),c=r(7).Buffer,f=new Array(64);function l(){this.init(),this._w=f,h.call(this,64,56)}n(l,o),l.prototype.init=function(){return this._a=3238371032,this._b=914150663,this._c=812702999,this._d=4144912697,this._e=4290775857,this._f=1750603025,this._g=1694076839,this._h=3204075428,this},l.prototype._hash=function(){var t=c.allocUnsafe(28);return t.writeInt32BE(this._a,0),t.writeInt32BE(this._b,4),t.writeInt32BE(this._c,8),t.writeInt32BE(this._d,12),t.writeInt32BE(this._e,16),t.writeInt32BE(this._f,20),t.writeInt32BE(this._g,24),t}
vendor: 9,898 bytes, line 11
11,t.exports=l},function(t,e,r){var n=r(6),o=r(242),h=r(72),c=r(7).Buffer,f=new Array(160);function l(){this.init(),this._w=f,h.call(this,128,112)}n(l,o),l.prototype.init=function(){return this._ah=3418070365,this._bh=1654270250,this._ch=2438529370,this._dh=355462360,this._eh=1731405415,this._fh=2394180231,this._gh=3675008525,this._hh=1203062813,this._al=3238371032,this._bl=914150663,this._cl=812702999,this._dl=4144912697,this._el=4290775857,this._fl=1750603025,this._gl=1694076839,this._hl=3204075428,this},l.prototype._hash=function(){var t=c.allocUnsafe(48);function e(e,r,n){t.writeInt32BE(e,n),t.writeInt32BE(r,n+4)}return e(this._ah,this._al,0),e(this._bh,this._bl,8),e(this._ch,this._cl,16),e(this._dh,this._dl,24),e(this._eh,this._el,32),e(this._fh,this._fl,40),t},t.exports=l},function(t,e,r){t.exports=o;var n=r(62).EventEmitter;function o(){n.call(this)}r(6)(o,n),o.Readable=r(161),o.Writable=r(421),o.Duplex=r(422),o.Transform=r(423),o.PassThrough=r(424),o.Stream=o,o.prototype.pipe=function(t,e){var source=this;function r(e){t.writable&&!1===t.write(e)&&source.pause&&source.pause()}function o(){source.readable&&source.resume&&source.resume()}source.on("data",r),t.on("drain",o),t._isStdio||e&&!1===e.end||(source.on("end",c),source.on("close",f));var h=!1;function c(){h||(h=!0,t.end())}function f(){h||(h=!0,"function"==typeof t.destroy&&t.destroy())}function l(t){if(d(),0===n.listenerCount(this,"error"))throw t}function d(){source.removeListener("data",r),t.removeListener("drain",o),source.removeListener("end",c),source.removeListener("close",f),source.removeListener("error",l),t.removeListener("error",l),source.removeListener("end",d),source.removeListener("close",d),t.removeListener("close",d)}return source.on("error",l),t.on("error",l),source.on("end",d),source.on("close",d),t.on("close",d),t.emit("pipe",source),t}},,function(t,e,r){"use strict";var n=r(7).Buffer,o=r(419);t.exports=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.head=null,this.tail=null,this.length=0}return t.prototype.push=function(t){var e={data:t,next:null};this.length>0?this.tail.next=e:this.head=e,this.tail=e,++this.length},t.prototype.unshift=function(t){var e={data:t,next:this.head};0===this.length&&(this.tail=e),this.head=e,++this.length},t.prototype.shift=function(){if(0!==this.length){var t=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,t}},t.prototype.clear=function(){this.head=this.tail=null,this.length=0},t.prototype.join=function(s){if(0===this.length)return"";for(var p=this.head,t=""+p.data;p=p.next;)t+=s+p.data;return t},t.prototype.concat=function(t){if(0===this.length)return n.alloc(0);if(1===this.length)return this.head.data;for(var e,r,o,h=n.allocUnsafe(t>>>0),p=this.head,i=0;p;)e=p.data,r=h,o=i,e.copy(r,o),i+=p.data.length,p=p.next;return h},t}(),o&&o.inspect&&o.inspect.custom&&(t.exports.prototype[o.inspect.custom]=function(){var t=o.inspect({length:this.length});return this.constructor.name+" "+t})},,function(t,e,r){"use strict";t.exports=h;var n=r(246),o=Object.create(r(94));function h(t){if(!(this instanceof h))return new h(t);n.call(this,t)}o.inherits=r(6),o.inherits(h,n),h.prototype._transform=function(t,e,r){r(null,t)}},function(t,e,r){t.exports=r(162)},function(t,e,r){t.exports=r(63)},function(t,e,r){t.exports=r(161).Transform},function(t,e,r){t.exports=r(161).PassThrough},function(t,e,r){"use strict";var n=r(6),o=r(7).Buffer,h=r(56),c=o.alloc(128);function f(t,e){h.call(this,"digest"),"string"==typeof e&&(e=o.from(e)),this._alg=t,this._key=e,e.length>64?e=t(e):e.length<64&&(e=o.concat([e,c],64));for(var r=this._ipad=o.allocUnsafe(64),n=this._opad=o.allocUnsafe(64),i=0;i<64;i++)r[i]=54^e[i],n[i]=92^e[i];this._hash=[r]}n(f,h),f.prototype._update=function(data){this._hash.push(data)},f.prototype._final=function(){var t=this._alg(o.concat(this._hash));return this._alg(o.concat([this._opad,t]))},t.exports=f},function(t,e,r){t.exports=r(249)},function(t,e,r){(function(e,n){var o,h=r(7).Buffer,c=r(251),f=r(252),l=r(253),d=r(254),m=e.crypto&&e.crypto.subtle,v={sha:"SHA-1","sha-1":"SHA-1",sha1:"SHA-1",sha256:"SHA-256","sha-256":"SHA-256",sha384:"SHA-384","sha-384":"SHA-384","sha-512":"SHA-512",sha512:"SHA-512"},y=[];function w(t,e,r,n,o){return m.importKey("raw",t,{name:"PBKDF2"},!1,["deriveBits"]).then((function(t){return m.deriveBits({name:"PBKDF2",salt:e,iterations:r,hash:{name:o}},t,n<<3)})).then((function(t){return h.from(t)}))}t.exports=function(t,r,M,_,S,A){"function"==typeof S&&(A=S,S=void 0);var x=v[(S=S||"sha1").toLowerCase()];if(!x||"function"!=typeof e.Promise)return n.nextTick((function(){var e;try{e=l(t,r,M,_,S)}catch(t){return A(t)}A(null,e)}));if(c(M,_),t=d(t,f,"Password"),r=d(r,f,"Salt"),"function"!=typeof A)throw new Error("No callback provided to pbkdf2");!function(t,e){t.then((function(t){n.nextTick((function(){e(null,t)}))}),(function(t){n.nextTick((function(){e(t)}))}))}(function(t){if(e.process&&!e.process.browser)return Promise.resolve(!1);if(!m||!m.importKey||!m.deriveBits)return Promise.resolve(!1);if(void 0!==y[t])return y[t];var r=w(o=o||h.alloc(8),o,10,128,t).then((function(){return!0})).catch((function(){return!1}));return y[t]=r,r}(x).then((function(e){return e?w(t,r,M,_,x):l(t,r,M,_,S)})),A)}}).call(this,r(18),r(33))},function(t,e,r){var n=r(429),o=r(164),h=r(165),c=r(442),f=r(125);function l(t,e,r){if(t=t.toLowerCase(),h[t])return o.createCipheriv(t,e,r);if(c[t])return new n({key:e,iv:r,mode:t});throw new TypeError("invalid suite type")}function d(t,e,r){if(t=t.toLowerCase(),h[t])return o.createDecipheriv(t,e,r);if(c[t])return new n({key:e,iv:r,mode:t,decrypt:!0});throw new TypeError("invalid suite type")}e.createCipher=e.Cipher=function(t,e){var r,n;if(t=t.toLowerCase(),h[t])r=h[t].key,n=h[t].iv;else{if(!c[t])throw new TypeError("invalid suite type");r=8*c[t].key,n=c[t].iv}var o=f(e,!1,r,n);return l(t,o.key,o.iv)},e.createCipheriv=e.Cipheriv=l,e.createDecipher=e.Decipher=function(t,e){var r,n;if(t=t.toLowerCase(),h[t])r=h[t].key,n=h[t].iv;else{if(!c[t])throw new TypeError("invalid suite type");r=8*c[t].key,n=c[t].iv}var o=f(e,!1,r,n);return d(t,o.key,o.iv)},e.createDecipheriv=e.Decipheriv=d,e.listCiphers=e.getCiphers=function(){return Object.keys(c).concat(o.getCiphers())}},function(t,e,r){var n=r(56),o=r(430),h=r(6),c=r(7).Buffer,f={"des-ede3-cbc":o.CBC.instantiate(o.EDE),"des-ede3":o.EDE,"des-ede-cbc":o.CBC.instantiate(o.EDE),"des-ede":o.EDE,"des-cbc":o.CBC.instantiate(o.DES),"des-ecb":o.DES};function l(t){n.call(this);var e,r=t.mode.toLowerCase(),o=f[r];e=t.decrypt?"decrypt":"encrypt";var h=t.key;c.isBuffer(h)||(h=c.from(h)),"des-ede"!==r&&"des-ede-cbc"!==r||(h=c.concat([h,h.slice(0,8)]));var l=t.iv;c.isBuffer(l)||(l=c.from(l)),this._des=o.create({key:h,iv:l,type:e})}f.des=f["des-cbc"],f.des3=f["des-ede3-cbc"],t.exports=l,h(l,n),l.prototype._update=function(data){return c.from(this._des.update(data))},l.prototype._final=function(){return c.from(this._des.final())}},function(t,e,r){"use strict";e.utils=r(255),e.Cipher=r(163),e.DES=r(256),e.CBC=r(431),e.EDE=r(432)},function(t,e,r){"use strict";var n=r(40),o=r(6),h={};function c(t){n.equal(t.length,8,"Invalid IV length"),this.iv=new Array(8);for(var i=0;i<this.iv.length;i++)this.iv[i]=t[i]}e.instantiate=function(t){function e(e){t.call(this,e),this._cbcInit()}o(e,t);for(var r=Object.keys(h),i=0;i<r.length;i++){var n=r[i];e.prototype[n]=h[n]}return e.create=function(t){return new e(t)},e},h._cbcInit=function(){var t=new c(this.options.iv);this._cbcState=t},h._update=function(t,e,r,n){var o=this._cbcState,h=this.constructor.super_.prototype,c=o.iv;if("encrypt"===this.type){for(var i=0;i<this.blockSize;i++)c[i]^=t[e+i];h._update.call(this,c,0,r,n);for(i=0;i<this.blockSize;i++)c[i]=r[n+i]}else{h._update.call(this,t,e,r,n);for(i=0;i<this.blockSize;i++)r[n+i]^=c[i];for(i=0;i<this.blockSize;i++)c[i]=t[e+i]}}},function(t,e,r){"use strict";var n=r(40),o=r(6),h=r(163),c=r(256);function f(t,e){n.equal(e.length,24,"Invalid key length");var r=e.slice(0,8),o=e.slice(8,16),h=e.slice(16,24);this.ciphers="encrypt"===t?[c.create({type:"encrypt",key:r}),c.create({type:"decrypt",key:o}),c.create({type:"encrypt",key:h})]:[c.create({type:"decrypt",key:h}),c.create({type:"encrypt",key:o}),c.create({type:"decrypt",key:r})]}function l(t){h.call(this,t);var e=new f(this.type,this.options.key);this._edeState=e}o(l,h),t.exports=l,l.create=function(t){return new l(t)},l.prototype._update=function(t,e,r,n){var o=this._edeState;o.ciphers[0]._update(t,e,r,n),o.ciphers[1]._update(r,n,r,n),o.ciphers[2]._update(r,n,r,n)},l.prototype._pad=c.prototype._pad,l.prototype._unpad=c.prototype._unpad},function(t,e,r){var n=r(165),o=r(260),h=r(7).Buffer,c=r(261),f=r(56),l=r(124),d=r(125);function m(t,e,r){f.call(this),this._cache=new y,this._cipher=new l.AES(e),this._prev=h.from(r),this._mode=t,this._autopadding=!0}r(6)(m,f),m.prototype._update=function(data){var t,e;this._cache.add(data);for(var r=[];t=this._cache.get();)e=this._mode.encrypt(this,t),r.push(e);return h.concat(r)};var v=h.alloc(16,16);function y(){this.cache=h.allocUnsafe(0)}function w(t,e,r){var f=n[t.toLowerCase()];if(!f)throw new TypeError("invalid suite type");if("string"==typeof e&&(e=h.from(e)),e.length!==f.key/8)throw new TypeError("invalid key length "+e.length);if("string"==typeof r&&(r=h.from(r)),"GCM"!==f.mode&&r.length!==f.iv)throw new TypeError("invalid iv length "+r.length);return"stream"===f.type?new c(f.module,e,r):"auth"===f.type?new o(f.module,e,r):new m(f.module,e,r)}m.prototype._final=function(){var t=this._cache.flush();if(this._autopadding)return t=this._mode.encrypt(this,t),this._cipher.scrub(),t;if(!t.equals(v))throw this._cipher.scrub(),new Error("data not multiple of block length")},m.prototype.setAutoPadding=function(t){return this._autopadding=!!t,this}
vendor: 6,014 bytes, line 11
11,y.prototype.add=function(data){this.cache=h.concat([this.cache,data])},y.prototype.get=function(){if(this.cache.length>15){var t=this.cache.slice(0,16);return this.cache=this.cache.slice(16),t}return null},y.prototype.flush=function(){for(var t=16-this.cache.length,e=h.allocUnsafe(t),i=-1;++i<t;)e.writeUInt8(t,i);return h.concat([this.cache,e])},e.createCipheriv=w,e.createCipher=function(t,e){var r=n[t.toLowerCase()];if(!r)throw new TypeError("invalid suite type");var o=d(e,!1,r.key,r.iv);return w(t,o.key,o.iv)}},function(t,e){e.encrypt=function(t,e){return t._cipher.encryptBlock(e)},e.decrypt=function(t,e){return t._cipher.decryptBlock(e)}},function(t,e,r){var n=r(95);e.encrypt=function(t,e){var data=n(e,t._prev);return t._prev=t._cipher.encryptBlock(data),t._prev},e.decrypt=function(t,e){var r=t._prev;t._prev=e;var o=t._cipher.decryptBlock(e);return n(o,r)}},function(t,e,r){var n=r(7).Buffer,o=r(95);function h(t,data,e){var r=data.length,h=o(data,t._cache);return t._cache=t._cache.slice(r),t._prev=n.concat([t._prev,e?data:h]),h}e.encrypt=function(t,data,e){for(var r,o=n.allocUnsafe(0);data.length;){if(0===t._cache.length&&(t._cache=t._cipher.encryptBlock(t._prev),t._prev=n.allocUnsafe(0)),!(t._cache.length<=data.length)){o=n.concat([o,h(t,data,e)]);break}r=t._cache.length,o=n.concat([o,h(t,data.slice(0,r),e)]),data=data.slice(r)}return o}},function(t,e,r){var n=r(7).Buffer;function o(t,e,r){var o=t._cipher.encryptBlock(t._prev)[0]^e;return t._prev=n.concat([t._prev.slice(1),n.from([r?e:o])]),o}e.encrypt=function(t,e,r){for(var h=e.length,c=n.allocUnsafe(h),i=-1;++i<h;)c[i]=o(t,e[i],r);return c}},function(t,e,r){var n=r(7).Buffer;function o(t,e,r){for(var n,o,i=-1,c=0;++i<8;)n=e&1<<7-i?128:0,c+=(128&(o=t._cipher.encryptBlock(t._prev)[0]^n))>>i%8,t._prev=h(t._prev,r?n:o);return c}function h(t,e){var r=t.length,i=-1,o=n.allocUnsafe(t.length);for(t=n.concat([t,n.from([e])]);++i<r;)o[i]=t[i]<<1|t[i+1]>>7;return o}e.encrypt=function(t,e,r){for(var h=e.length,c=n.allocUnsafe(h),i=-1;++i<h;)c[i]=o(t,e[i],r);return c}},function(t,e,r){(function(t){var n=r(95);function o(t){return t._prev=t._cipher.encryptBlock(t._prev),t._prev}e.encrypt=function(e,r){for(;e._cache.length<r.length;)e._cache=t.concat([e._cache,o(e)]);var h=e._cache.slice(0,r.length);return e._cache=e._cache.slice(r.length),n(r,h)}}).call(this,r(5).Buffer)},function(t,e,r){var n=r(7).Buffer,o=n.alloc(16,0);function h(t){var e=n.allocUnsafe(16);return e.writeUInt32BE(t[0]>>>0,0),e.writeUInt32BE(t[1]>>>0,4),e.writeUInt32BE(t[2]>>>0,8),e.writeUInt32BE(t[3]>>>0,12),e}function c(t){this.h=t,this.state=n.alloc(16,0),this.cache=n.allocUnsafe(0)}c.prototype.ghash=function(t){for(var i=-1;++i<t.length;)this.state[i]^=t[i];this._multiply()},c.prototype._multiply=function(){for(var t,e,r,n=[(t=this.h).readUInt32BE(0),t.readUInt32BE(4),t.readUInt32BE(8),t.readUInt32BE(12)],o=[0,0,0,0],i=-1;++i<128;){for(0!=(this.state[~~(i/8)]&1<<7-i%8)&&(o[0]^=n[0],o[1]^=n[1],o[2]^=n[2],o[3]^=n[3]),r=0!=(1&n[3]),e=3;e>0;e--)n[e]=n[e]>>>1|(1&n[e-1])<<31;n[0]=n[0]>>>1,r&&(n[0]=n[0]^225<<24)}this.state=h(o)},c.prototype.update=function(t){var e;for(this.cache=n.concat([this.cache,t]);this.cache.length>=16;)e=this.cache.slice(0,16),this.cache=this.cache.slice(16),this.ghash(e)},c.prototype.final=function(t,e){return this.cache.length&&this.ghash(n.concat([this.cache,o],16)),this.ghash(h([0,t,0,e])),this.state},t.exports=c},function(t,e,r){var n=r(260),o=r(7).Buffer,h=r(165),c=r(261),f=r(56),l=r(124),d=r(125);function m(t,e,r){f.call(this),this._cache=new v,this._last=void 0,this._cipher=new l.AES(e),this._prev=o.from(r),this._mode=t,this._autopadding=!0}function v(){this.cache=o.allocUnsafe(0)}function y(t,e,r){var f=h[t.toLowerCase()];if(!f)throw new TypeError("invalid suite type");if("string"==typeof r&&(r=o.from(r)),"GCM"!==f.mode&&r.length!==f.iv)throw new TypeError("invalid iv length "+r.length);if("string"==typeof e&&(e=o.from(e)),e.length!==f.key/8)throw new TypeError("invalid key length "+e.length);return"stream"===f.type?new c(f.module,e,r,!0):"auth"===f.type?new n(f.module,e,r,!0):new m(f.module,e,r)}r(6)(m,f),m.prototype._update=function(data){var t,e;this._cache.add(data);for(var r=[];t=this._cache.get(this._autopadding);)e=this._mode.decrypt(this,t),r.push(e);return o.concat(r)},m.prototype._final=function(){var t=this._cache.flush();if(this._autopadding)return function(t){var e=t[15];if(e<1||e>16)throw new Error("unable to decrypt data");var i=-1;for(;++i<e;)if(t[i+(16-e)]!==e)throw new Error("unable to decrypt data");if(16===e)return;return t.slice(0,16-e)}(this._mode.decrypt(this,t));if(t)throw new Error("data not multiple of block length")},m.prototype.setAutoPadding=function(t){return this._autopadding=!!t,this},v.prototype.add=function(data){this.cache=o.concat([this.cache,data])},v.prototype.get=function(t){var e;if(t){if(this.cache.length>16)return e=this.cache.slice(0,16),this.cache=this.cache.slice(16),e}else if(this.cache.length>=16)return e=this.cache.slice(0,16),this.cache=this.cache.slice(16),e;return null},v.prototype.flush=function(){if(this.cache.length)return this.cache},e.createDecipher=function(t,e){var r=h[t.toLowerCase()];if(!r)throw new TypeError("invalid suite type");var n=d(e,!1,r.key,r.iv);return y(t,n.key,n.iv)},e.createDecipheriv=y},function(t,e){e["des-ecb"]={key:8,iv:0},e["des-cbc"]=e.des={key:8,iv:8},e["des-ede3-cbc"]=e.des3={key:24,iv:8},e["des-ede3"]={key:24,iv:0},e["des-ede-cbc"]={key:16,iv:8},e["des-ede"]={key:16,iv:0}},function(t,e,r){(function(t){var n=r(262),o=r(448),h=r(449);var c={binary:!0,hex:!0,base64:!0};e.DiffieHellmanGroup=e.createDiffieHellmanGroup=e.getDiffieHellman=function(e){var r=new t(o[e].prime,"hex"),n=new t(o[e].gen,"hex");return new h(r,n)},e.createDiffieHellman=e.DiffieHellman=function e(r,o,f,l){return t.isBuffer(o)||void 0===c[o]?e(r,"binary",o,f):(o=o||"binary",l=l||"binary",f=f||new t([2]),t.isBuffer(f)||(f=new t(f,l)),"number"==typeof r?new h(n(r,f),f,!0):(t.isBuffer(r)||(r=new t(r,o)),new h(r,f,!0))
vendor: 4,497 bytes, line 11
11)}}).call(this,r(5).Buffer)},,function(t,e,r){(function(t){!function(t,e){"use strict";function n(t,e){if(!t)throw new Error(e||"Assertion failed")}function o(t,e){t.super_=e;var r=function(){};r.prototype=e.prototype,t.prototype=new r,t.prototype.constructor=t}function h(t,base,e){if(h.isBN(t))return t;this.negative=0,this.words=null,this.length=0,this.red=null,null!==t&&("le"!==base&&"be"!==base||(e=base,base=10),this._init(t||0,base||10,e||"be"))}var c;"object"==typeof t?t.exports=h:e.BN=h,h.BN=h,h.wordSize=26;try{c=r(446).Buffer}catch(t){}function f(t,e,r){for(var n=0,o=Math.min(t.length,r),i=e;i<o;i++){var h=t.charCodeAt(i)-48;n<<=4,n|=h>=49&&h<=54?h-49+10:h>=17&&h<=22?h-17+10:15&h}return n}function l(t,e,r,n){for(var o=0,h=Math.min(t.length,r),i=e;i<h;i++){var c=t.charCodeAt(i)-48;o*=n,o+=c>=49?c-49+10:c>=17?c-17+10:c}return o}h.isBN=function(t){return t instanceof h||null!==t&&"object"==typeof t&&t.constructor.wordSize===h.wordSize&&Array.isArray(t.words)},h.max=function(t,e){return t.cmp(e)>0?t:e},h.min=function(t,e){return t.cmp(e)<0?t:e},h.prototype._init=function(t,base,e){if("number"==typeof t)return this._initNumber(t,base,e);if("object"==typeof t)return this._initArray(t,base,e);"hex"===base&&(base=16),n(base===(0|base)&&base>=2&&base<=36);var r=0;"-"===(t=t.toString().replace(/\s+/g,""))[0]&&r++,16===base?this._parseHex(t,r):this._parseBase(t,base,r),"-"===t[0]&&(this.negative=1),this.strip(),"le"===e&&this._initArray(this.toArray(),base,e)},h.prototype._initNumber=function(t,base,e){t<0&&(this.negative=1,t=-t),t<67108864?(this.words=[67108863&t],this.length=1):t<4503599627370496?(this.words=[67108863&t,t/67108864&67108863],this.length=2):(n(t<9007199254740992),this.words=[67108863&t,t/67108864&67108863,1],this.length=3),"le"===e&&this._initArray(this.toArray(),base,e)},h.prototype._initArray=function(t,base,e){if(n("number"==typeof t.length),t.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(t.length/3),this.words=new Array(this.length);for(var i=0;i<this.length;i++)this.words[i]=0;var r,o,h=0;if("be"===e)for(i=t.length-1,r=0;i>=0;i-=3)o=t[i]|t[i-1]<<8|t[i-2]<<16,this.words[r]|=o<<h&67108863,this.words[r+1]=o>>>26-h&67108863,(h+=24)>=26&&(h-=26,r++);else if("le"===e)for(i=0,r=0;i<t.length;i+=3)o=t[i]|t[i+1]<<8|t[i+2]<<16,this.words[r]|=o<<h&67108863,this.words[r+1]=o>>>26-h&67108863,(h+=24)>=26&&(h-=26,r++);return this.strip()},h.prototype._parseHex=function(t,e){this.length=Math.ceil((t.length-e)/6),this.words=new Array(this.length);for(var i=0;i<this.length;i++)this.words[i]=0;var r,n,o=0;for(i=t.length-6,r=0;i>=e;i-=6)n=f(t,i,i+6),this.words[r]|=n<<o&67108863,this.words[r+1]|=n>>>26-o&4194303,(o+=24)>=26&&(o-=26,r++);i+6!==e&&(n=f(t,e,i+6),this.words[r]|=n<<o&67108863,this.words[r+1]|=n>>>26-o&4194303),this.strip()},h.prototype._parseBase=function(t,base,e){this.words=[0],this.length=1;for(var r=0,n=1;n<=67108863;n*=base)r++;r--,n=n/base|0;for(var o=t.length-e,h=o%r,c=Math.min(o,o-h)+e,f=0,i=e;i<c;i+=r)f=l(t,i,i+r,base),this.imuln(n),this.words[0]+f<67108864?this.words[0]+=f:this._iaddn(f);if(0!==h){var d=1;for(f=l(t,i,t.length,base),i=0;i<h;i++)d*=base;this.imuln(d),this.words[0]+f<67108864?this.words[0]+=f:this._iaddn(f)}},h.prototype.copy=function(t){t.words=new Array(this.length);for(var i=0;i<this.length;i++)t.words[i]=this.words[i];t.length=this.length,t.negative=this.negative,t.red=this.red},h.prototype.clone=function(){var t=new h(null);return this.copy(t),t},h.prototype._expand=function(t){for(;this.length<t;)this.words[this.length++]=0;return this},h.prototype.strip=function(){for(;this.length>1&&0===this.words[this.length-1];)this.length--;return this._normSign()},h.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},h.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};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"],m=[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],v=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16
vendor: 34,366 bytes, line 11
11777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function y(t,e,r){r.negative=e.negative^t.negative;var n=t.length+e.length|0;r.length=n,n=n-1|0;var a=0|t.words[0],b=0|e.words[0],o=a*b,h=67108863&o,c=o/67108864|0;r.words[0]=h;for(var f=1;f<n;f++){for(var l=c>>>26,d=67108863&c,m=Math.min(f,e.length-1),v=Math.max(0,f-t.length+1);v<=m;v++){var i=f-v|0;l+=(o=(a=0|t.words[i])*(b=0|e.words[v])+d)/67108864|0,d=67108863&o}r.words[f]=0|d,c=0|l}return 0!==c?r.words[f]=0|c:r.length--,r.strip()}h.prototype.toString=function(base,t){var e;if(t=0|t||1,16===(base=base||10)||"hex"===base){e="";for(var r=0,o=0,i=0;i<this.length;i++){var h=this.words[i],c=(16777215&(h<<r|o)).toString(16);e=0!==(o=h>>>24-r&16777215)||i!==this.length-1?d[6-c.length]+c+e:c+e,(r+=2)>=26&&(r-=26,i--)}for(0!==o&&(e=o.toString(16)+e);e.length%t!=0;)e="0"+e;return 0!==this.negative&&(e="-"+e),e}if(base===(0|base)&&base>=2&&base<=36){var f=m[base],l=v[base];e="";var y=this.clone();for(y.negative=0;!y.isZero();){var w=y.modn(l).toString(base);e=(y=y.idivn(l)).isZero()?w+e:d[f-w.length]+w+e}for(this.isZero()&&(e="0"+e);e.length%t!=0;)e="0"+e;return 0!==this.negative&&(e="-"+e),e}n(!1,"Base should be between 2 and 36")},h.prototype.toNumber=function(){var t=this.words[0];return 2===this.length?t+=67108864*this.words[1]:3===this.length&&1===this.words[2]?t+=4503599627370496+67108864*this.words[1]:this.length>2&&n(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-t:t},h.prototype.toJSON=function(){return this.toString(16)},h.prototype.toBuffer=function(t,e){return n(void 0!==c),this.toArrayLike(c,t,e)},h.prototype.toArray=function(t,e){return this.toArrayLike(Array,t,e)},h.prototype.toArrayLike=function(t,e,r){var o=this.byteLength(),h=r||Math.max(1,o);n(o<=h,"byte array longer than desired length"),n(h>0,"Requested array length <= 0"),this.strip();var b,i,c="le"===e,f=new t(h),q=this.clone();if(c){for(i=0;!q.isZero();i++)b=q.andln(255),q.iushrn(8),f[i]=b;for(;i<h;i++)f[i]=0}else{for(i=0;i<h-o;i++)f[i]=0;for(i=0;!q.isZero();i++)b=q.andln(255),q.iushrn(8),f[h-i-1]=b}return f},Math.clz32?h.prototype._countBits=function(t){return 32-Math.clz32(t)}:h.prototype._countBits=function(t){var e=t,r=0;return e>=4096&&(r+=13,e>>>=13),e>=64&&(r+=7,e>>>=7),e>=8&&(r+=4,e>>>=4),e>=2&&(r+=2,e>>>=2),r+e},h.prototype._zeroBits=function(t){if(0===t)return 26;var e=t,r=0;return 0==(8191&e)&&(r+=13,e>>>=13),0==(127&e)&&(r+=7,e>>>=7),0==(15&e)&&(r+=4,e>>>=4),0==(3&e)&&(r+=2,e>>>=2),0==(1&e)&&r++,r},h.prototype.bitLength=function(){var t=this.words[this.length-1],e=this._countBits(t);return 26*(this.length-1)+e},h.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,i=0;i<this.length;i++){var b=this._zeroBits(this.words[i]);if(t+=b,26!==b)break}return t},h.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},h.prototype.toTwos=function(t){return 0!==this.negative?this.abs().inotn(t).iaddn(1):this.clone()},h.prototype.fromTwos=function(t){return this.testn(t-1)?this.notn(t).iaddn(1).ineg():this.clone()},h.prototype.isNeg=function(){return 0!==this.negative},h.prototype.neg=function(){return this.clone().ineg()},h.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},h.prototype.iuor=function(t){for(;this.length<t.length;)this.words[this.length++]=0;for(var i=0;i<t.length;i++)this.words[i]=this.words[i]|t.words[i];return this.strip()},h.prototype.ior=function(t){return n(0==(this.negative|t.negative)),this.iuor(t)},h.prototype.or=function(t){return this.length>t.length?this.clone().ior(t):t.clone().ior(this)},h.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},h.prototype.iuand=function(t){var b;b=this.length>t.length?t:this;for(var i=0;i<b.length;i++)this.words[i]=this.words[i]&t.words[i];return this.length=b.length,this.strip()},h.prototype.iand=function(t){return n(0==(this.negative|t.negative)),this.iuand(t)},h.prototype.and=function(t){return this.length>t.length?this.clone().iand(t):t.clone().iand(this)},h.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},h.prototype.iuxor=function(t){var a,b;this.length>t.length?(a=this,b=t):(a=t,b=this);for(var i=0;i<b.length;i++)this.words[i]=a.words[i]^b.words[i];if(this!==a)for(;i<a.length;i++)this.words[i]=a.words[i];return this.length=a.length,this.strip()},h.prototype.ixor=function(t){return n(0==(this.negative|t.negative)),this.iuxor(t)},h.prototype.xor=function(t){return this.length>t.length?this.clone().ixor(t):t.clone().ixor(this)},h.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},h.prototype.inotn=function(t){n("number"==typeof t&&t>=0);var e=0|Math.ceil(t/26),r=t%26;this._expand(e),r>0&&e--;for(var i=0;i<e;i++)this.words[i]=67108863&~this.words[i];return r>0&&(this.words[i]=~this.words[i]&67108863>>26-r),this.strip()},h.prototype.notn=function(t){return this.clone().inotn(t)},h.prototype.setn=function(t,e){n("number"==typeof t&&t>=0);var r=t/26|0,o=t%26;return this._expand(r+1),this.words[r]=e?this.words[r]|1<<o:this.words[r]&~(1<<o),this.strip()},h.prototype.iadd=function(t){var e,a,b;if(0!==this.negative&&0===t.negative)return this.negative=0,e=this.isub(t),this.negative^=1,this._normSign();if(0===this.negative&&0!==t.negative)return t.negative=0,e=this.isub(t),t.negative=1,e._normSign();this.length>t.length?(a=this,b=t):(a=t,b=this);for(var r=0,i=0;i<b.length;i++)e=(0|a.words[i])+(0|b.words[i])+r,this.words[i]=67108863&e,r=e>>>26;for(;0!==r&&i<a.length;i++)e=(0|a.words[i])+r,this.words[i]=67108863&e,r=e>>>26;if(this.length=a.length,0!==r)this.words[this.length]=r,this.length++;else if(a!==this)for(;i<a.length;i++)this.words[i]=a.words[i];return this},h.prototype.add=function(t){var e;return 0!==t.negative&&0===this.negative?(t.negative=0,e=this.sub(t),t.negative^=1,e):0===t.negative&&0!==this.negative?(this.negative=0,e=t.sub(this),this.negative=1,e):this.length>t.length?this.clone().iadd(t):t.clone().iadd(this)},h.prototype.isub=function(t){if(0!==t.negative){t.negative=0;var e=this.iadd(t);return t.negative=1,e._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(t),this.negative=1,this._normSign();var a,b,r=this.cmp(t);if(0===r)return this.negative=0,this.length=1,this.words[0]=0,this;r>0?(a=this,b=t):(a=t,b=this);for(var n=0,i=0;i<b.length;i++)n=(e=(0|a.words[i])-(0|b.words[i])+n)>>26,this.words[i]=67108863&e;for(;0!==n&&i<a.length;i++)n=(e=(0|a.words[i])+n)>>26,this.words[i]=67108863&e;if(0===n&&i<a.length&&a!==this)for(;i<a.length;i++)this.words[i]=a.words[i];return this.length=Math.max(this.length,i),a!==this&&(this.negative=1),this.strip()},h.prototype.sub=function(t){return this.clone().isub(t)};var w=function(t,e,r){var n,o,h,a=t.words,b=e.words,c=r.words,f=0,l=0|a[0],d=8191&l,m=l>>>13,v=0|a[1],y=8191&v,w=v>>>13,M=0|a[2],_=8191&M,S=M>>>13,A=0|a[3],x=8191&A,k=A>>>13,E=0|a[4],C=8191&E,R=E>>>13,I=0|a[5],P=8191&I,T=I>>>13,O=0|a[6],j=8191&O,U=O>>>13,B=0|a[7],D=8191&B,F=B>>>13,L=0|a[8],N=8191&L,H=L>>>13,z=0|a[9],V=8191&z,K=z>>>13,Z=0|b[0],W=8191&Z,G=Z>>>13,J=0|b[1],Y=8191&J,Q=J>>>13,X=0|b[2],$=8191&X,tt=X>>>13,et=0|b[3],it=8191&et,nt=et>>>13,ot=0|b[4],st=8191&ot,at=ot>>>13,ut=0|b[5],ht=8191&ut,ct=ut>>>13,ft=0|b[6],lt=8191&ft,pt=ft>>>13,mt=0|b[7],gt=8191&mt,vt=mt>>>13,yt=0|b[8],bt=8191&yt,wt=yt>>>13,Mt=0|b[9],_t=8191&Mt,St=Mt>>>13;r.negative=t.negative^e.negative,r.length=19;var At=(f+(n=Math.imul(d,W))|0)+((8191&(o=(o=Math.imul(d,G))+Math.imul(m,W)|0))<<13)|0;f=((h=Math.imul(m,G))+(o>>>13)|0)+(At>>>26)|0,At&=67108863,n=Math.imul(y,W),o=(o=Math.imul(y,G))+Math.imul(w,W)|0,h=Math.imul(w,G);var xt=(f+(n=n+Math.imul(d,Y)|0)|0)+((8191&(o=(o=o+Math.imul(d,Q)|0)+Math.imul(m,Y)|0))<<13)|0;f=((h=h+Math.imul(m,Q)|0)+(o>>>13)|0)+(xt>>>26)|0,xt&=67108863,n=Math.imul(_,W),o=(o=Math.imul(_,G))+Math.imul(S,W)|0,h=Math.imul(S,G),n=n+Math.imul(y,Y)|0,o=(o=o+Math.imul(y,Q)|0)+Math.imul(w,Y)|0,h=h+Math.imul(w,Q)|0;var kt=(f+(n=n+Math.imul(d,$)|0)|0)+((8191&(o=(o=o+Math.imul(d,tt)|0)+Math.imul(m,$)|0))<<13)|0;f=((h=h+Math.imul(m,tt)|0)+(o>>>13)|0)+(kt>>>26)|0,kt&=67108863,n=Math.imul(x,W),o=(o=Math.imul(x,G))+Math.imul(k,W)|0,h=Math.imul(k,G),n=n+Math.imul(_,Y)|0,o=(o=o+Math.imul(_,Q)|0)+Math.imul(S,Y)|0,h=h+Math.imul(S,Q)|0,n=n+Math.imul(y,$)|0,o=(o=o+Math.imul(y,tt)|0)+Math.imul(w,$)|0,h=h+Math.imul(w,tt)|0;var Et=(f+(n=n+Math.imul(d,it)|0)|0)+((8191&(o=(o=o+Math.imul(d,nt)|0)+Math.imul(m,it)|0))<<13)|0;f=((h=h+Math.imul(m,nt)|0)+(o>>>13)|0)+(Et>>>26)|0,Et&=67108863,n=Math.imul(C,W),o=(o=Math.imul(C,G))+Math.imul(R,W)|0,h=Math.imul(R,G),n=n+Math.imul(x,Y)|0,o=(o=o+Math.imul(x,Q)|0)+Math.imul(k,Y)|0,h=h+Math.imul(k,Q)|0,n=n+Math.imul(_,$)|0,o=(o=o+Math.imul(_,tt)|0)+Math.imul(S,$)|0,h=h+Math.imul(S,tt)|0,n=n+Math.imul(y,it)|0,o=(o=o+Math.imul(y,nt)|0)+Math.imul(w,it)|0,h=h+Math.imul(w,nt)|0;var Ct=(f+(n=n+Math.imul(d,st)|0)|0)+((8191&(o=(o=o+Math.imul(d,at)|0)+Math.imul(m,st)|0))<<13)|0;f=((h=h+Math.imul(m,at)|0)+(o>>>13)|0)+(Ct>>>26)|0,Ct&=67108863,n=Math.imul(P,W),o=(o=Math.imul(P,G))+Math.imul(T,W)|0,h=Math.imul(T,G),n=n+Math.imul(C,Y)|0,o=(o=o+Math.imul(C,Q)|0)+Math.imul(R,Y)|0,h=h+Math.imul(R,Q)|0,n=n+Math.imul(x,$)|0,o=(o=o+Math.imul(x,tt)|0)+Math.imul(k,$)|0,h=h+Math.imul(k,tt)|0,n=n+Math.imul(_,it)|0,o=(o=o+Math.imul(_,nt)|0)+Math.imul(S,it)|0,h=h+Math.imul(S,nt)|0,n=n+Math.imul(y,st)|0,o=(o=o+Math.imul(y,at)|0)+Math.imul(w,st)|0,h=h+Math.imul(w,at)|0;var Rt=(f+(n=n+Math.imul(d,ht)|0)|0)+((8191&(o=(o=o+Math.imul(d,ct)|0)+Math.imul(m,ht)|0))<<13)|0;f=((h=h+Math.imul(m,ct)|0)+(o>>>13)|0)+(Rt>>>26)|0,Rt&=67108863,n=Math.imul(j,W),o=(o=Math.imul(j,G))+Math.imul(U,W)|0,h=Math.imul(U,G),n=n+Math.imul(P,Y)|0,o=(o=o+Math.imul(P,Q)|0)+Math.imul(T,Y)|0,h=h+Math.imul(T,Q)|0,n=n+Math.imul(C,$)|0,o=(o=o+Math.imul(C,tt)|0)+Math.imul(R,$)|0,h=h+Math.imul(R,tt)|0,n=n+Math.imul(x,it)|0,o=(o=o+Math.imul(x,nt)|0)+Math.imul(k,it)|0,h=h+Math.imul(k,nt)|0,n=n+Math.imul(_,st)|0,o=(o=o+Math.imul(_,at)|0)+Math.imul(S,st)|0,h=h+Math.imul(S,at)|0,n=n+Math.imul(y,ht)|0,o=(o=o+Math.imul(y,ct)|0)+Math.imul(w,ht)|0,h=h+Math.imul(w,ct)|0;var It=(f+(n=n+Math.imul(d,lt)|0)|0)+((8191&(o=(o=o+Math.imul(d,pt)|0)+Math.imul(m,lt)|0))<<13)|0;f=((h=h+Math.imul(m,pt)|0)+(o>>>13)|0)+(It>>>26)|0,It&=67108863,n=Math.imul(D,W),o=(o=Math.imul(D,G))+Math.imul(F,W)|0,h=Math.imul(F,G),n=n+Math.imul(j,Y)|0,o=(o=o+Math.imul(j,Q)|0)+Math.imul(U,Y)|0,h=h+Math.imul(U,Q)|0,n=n+Math.imul(P,$)|0,o=(o=o+Math.imul(P,tt)|0)+Math.imul(T,$)|0,h=h+Math.imul(T,tt)|0,n=n+Math.imul(C,it)|0,o=(o=o+Math.imul(C,nt)|0)+Math.imul(R,it)|0,h=h+Math.imul(R,nt)|0,n=n+Math.imul(x,st)|0,o=(o=o+Math.imul(x,at)|0)+Math.imul(k,st)|0,h=h+Math.imul(k,at)|0,n=n+Math.imul(_,ht)|0,o=(o=o+Math.imul(_,ct)|0)+Math.imul(S,ht)|0,h=h+Math.imul(S,ct)|0,n=n+Math.imul(y,lt)|0,o=(o=o+Math.imul(y,pt)|0)+Math.imul(w,lt)|0,h=h+Math.imul(w,pt)|0;var Pt=(f+(n=n+Math.imul(d,gt)|0)|0)+((8191&(o=(o=o+Math.imul(d,vt)|0)+Math.imul(m,gt)|0))<<13)|0;f=((h=h+Math.imul(m,vt)|0)+(o>>>13)|0)+(Pt>>>26)|0,Pt&=67108863,n=Math.imul(N,W),o=(o=Math.imul(N,G))+Math.imul(H,W)|0,h=Math.imul(H,G),n=n+Math.imul(D,Y)|0,o=(o=o+Math.imul(D,Q)|0)+Math.imul(F,Y)|0,h=h+Math.imul(F,Q)|0,n=n+Math.imul(j,$)|0,o=(o=o+Math.imul(j,tt)|0)+Math.imul(U,$)|0,h=h+Math.imul(U,tt)|0,n=n+Math.imul(P,it)|0,o=(o=o+Math.imul(P,nt)|0)+Math.imul(T,it)|0,h=h+Math.imul(T,nt)|0,n=n+Math.imul(C,st)|0,o=(o=o+Math.imul(C,at)|0)+Math.imul(R,st)|0,h=h+Math.imul(R,at)|0,n=n+Math.imul(x,ht)|0,o=(o=o+Math.imul(x,ct)|0)+Math.imul(k,ht)|0,h=h+Math.imul(k,ct)|0,n=n+Math.imul(_,lt)|0,o=(o=o+Math.imul(_,pt)|0)+Math.imul(S,lt)|0,h=h+Math.imul(S,pt)|0,n=n+Math.imul(y,gt)|0,o=(o=o+Math.imul(y,vt)|0)+Math.imul(w,gt)|0,h=h+Math.imul(w,vt)|0;var Tt=(f+(n=n+Math.imul(d,bt)|0)|0)+((8191&(o=(o=o+Math.imul(d,wt)|0)+Math.imul(m,bt)|0))<<13)|0;f=((h=h+Math.imul(m,wt)|0)+(o>>>13)|0)+(Tt>>>26)|0,Tt&=67108863,n=Math.imul(V,W),o=(o=Math.imul(V,G))+Math.imul(K,W)|0,h=Math.imul(K,G),n=n+Math.imul(N,Y)|0,o=(o=o+Math.imul(N,Q)|0)+Math.imul(H,Y)|0,h=h+Math.imul(H,Q)|0,n=n+Math.imul(D,$)|0,o=(o=o+Math.imul(D,tt)|0)+Math.imul(F,$)|0,h=h+Math.imul(F,tt)|0,n=n+Math.imul(j,it)|0,o=(o=o+Math.imul(j,nt)|0)+Math.imul(U,it)|0,h=h+Math.imul(U,nt)|0,n=n+Math.imul(P,st)|0,o=(o=o+Math.imul(P,at)|0)+Math.imul(T,st)|0,h=h+Math.imul(T,at)|0,n=n+Math.imul(C,ht)|0,o=(o=o+Math.imul(C,ct)|0)+Math.imul(R,ht)|0,h=h+Math.imul(R,ct)|0,n=n+Math.imul(x,lt)|0,o=(o=o+Math.imul(x,pt)|0)+Math.imul(k,lt)|0,h=h+Math.imul(k,pt)|0,n=n+Math.imul(_,gt)|0,o=(o=o+Math.imul(_,vt)|0)+Math.imul(S,gt)|0,h=h+Math.imul(S,vt)|0,n=n+Math.imul(y,bt)|0,o=(o=o+Math.imul(y,wt)|0)+Math.imul(w,bt)|0,h=h+Math.imul(w,wt)|0;var Ot=(f+(n=n+Math.imul(d,_t)|0)|0)+((8191&(o=(o=o+Math.imul(d,St)|0)+Math.imul(m,_t)|0))<<13)|0;f=((h=h+Math.imul(m,St)|0)+(o>>>13)|0)+(Ot>>>26)|0,Ot&=67108863,n=Math.imul(V,Y),o=(o=Math.imul(V,Q))+Math.imul(K,Y)|0,h=Math.imul(K,Q),n=n+Math.imul(N,$)|0,o=(o=o+Math.imul(N,tt)|0)+Math.imul(H,$)|0,h=h+Math.imul(H,tt)|0,n=n+Math.imul(D,it)|0,o=(o=o+Math.imul(D,nt)|0)+Math.imul(F,it)|0,h=h+Math.imul(F,nt)|0,n=n+Math.imul(j,st)|0,o=(o=o+Math.imul(j,at)|0)+Math.imul(U,st)|0,h=h+Math.imul(U,at)|0,n=n+Math.imul(P,ht)|0,o=(o=o+Math.imul(P,ct)|0)+Math.imul(T,ht)|0,h=h+Math.imul(T,ct)|0,n=n+Math.imul(C,lt)|0,o=(o=o+Math.imul(C,pt)|0)+Math.imul(R,lt)|0,h=h+Math.imul(R,pt)|0,n=n+Math.imul(x,gt)|0,o=(o=o+Math.imul(x,vt)|0)+Math.imul(k,gt)|0,h=h+Math.imul(k,vt)|0,n=n+Math.imul(_,bt)|0,o=(o=o+Math.imul(_,wt)|0)+Math.imul(S,bt)|0,h=h+Math.imul(S,wt)|0;var jt=(f+(n=n+Math.imul(y,_t)|0)|0)+((8191&(o=(o=o+Math.imul(y,St)|0)+Math.imul(w,_t)|0))<<13)|0;f=((h=h+Math.imul(w,St)|0)+(o>>>13)|0)+(jt>>>26)|0,jt&=67108863,n=Math.imul(V,$),o=(o=Math.imul(V,tt))+Math.imul(K,$)|0,h=Math.imul(K,tt),n=n+Math.imul(N,it)|0,o=(o=o+Math.imul(N,nt)|0)+Math.imul(H,it)|0,h=h+Math.imul(H,nt)|0,n=n+Math.imul(D,st)|0,o=(o=o+Math.imul(D,at)|0)+Math.imul(F,st)|0,h=h+Math.imul(F,at)|0,n=n+Math.imul(j,ht)|0,o=(o=o+Math.imul(j,ct)|0)+Math.imul(U,ht)|0,h=h+Math.imul(U,ct)|0,n=n+Math.imul(P,lt)|0,o=(o=o+Math.imul(P,pt)|0)+Math.imul(T,lt)|0,h=h+Math.imul(T,pt)|0,n=n+Math.imul(C,gt)|0,o=(o=o+Math.imul(C,vt)|0)+Math.imul(R,gt)|0,h=h+Math.imul(R,vt)|0,n=n+Math.imul(x,bt)|0,o=(o=o+Math.imul(x,wt)|0)+Math.imul(k,bt)|0,h=h+Math.imul(k,wt)|0;var Ut=(f+(n=n+Math.imul(_,_t)|0)|0)+((8191&(o=(o=o+Math.imul(_,St)|0)+Math.imul(S,_t)|0))<<13)|0;f=((h=h+Math.imul(S,St)|0)+(o>>>13)|0)+(Ut>>>26)|0,Ut&=67108863,n=Math.imul(V,it),o=(o=Math.imul(V,nt))+Math.imul(K,it)|0,h=Math.imul(K,nt),n=n+Math.imul(N,st)|0,o=(o=o+Math.imul(N,at)|0)+Math.imul(H,st)|0,h=h+Math.imul(H,at)|0,n=n+Math.imul(D,ht)|0,o=(o=o+Math.imul(D,ct)|0)+Math.imul(F,ht)|0,h=h+Math.imul(F,ct)|0,n=n+Math.imul(j,lt)|0,o=(o=o+Math.imul(j,pt)|0)+Math.imul(U,lt)|0,h=h+Math.imul(U,pt)|0,n=n+Math.imul(P,gt)|0,o=(o=o+Math.imul(P,vt)|0)+Math.imul(T,gt)|0,h=h+Math.imul(T,vt)|0,n=n+Math.imul(C,bt)|0,o=(o=o+Math.imul(C,wt)|0)+Math.imul(R,bt)|0,h=h+Math.imul(R,wt)|0;var Bt=(f+(n=n+Math.imul(x,_t)|0)|0)+((8191&(o=(o=o+Math.imul(x,St)|0)+Math.imul(k,_t)|0))<<13)|0;f=((h=h+Math.imul(k,St)|0)+(o>>>13)|0)+(Bt>>>26)|0,Bt&=67108863,n=Math.imul(V,st),o=(o=Math.imul(V,at))+Math.imul(K,st)|0,h=Math.imul(K,at),n=n+Math.imul(N,ht)|0,o=(o=o+Math.imul(N,ct)|0)+Math.imul(H,ht)|0,h=h+Math.imul(H,ct)|0,n=n+Math.imul(D,lt)|0,o=(o=o+Math.imul(D,pt)|0)+Math.imul(F,lt)|0,h=h+Math.imul(F,pt)|0,n=n+Math.imul(j,gt)|0,o=(o=o+Math.imul(j,vt)|0)+Math.imul(U,gt)|0,h=h+Math.imul(U,vt)|0,n=n+Math.imul(P,bt)|0,o=(o=o+Math.imul(P,wt)|0)+Math.imul(T,bt)|0,h=h+Math.imul(T,wt)|0;var Dt=(f+(n=n+Math.imul(C,_t)|0)|0)+((8191&(o=(o=o+Math.imul(C,St)|0)+Math.imul(R,_t)|0))<<13)|0;f=((h=h+Math.imul(R,St)|0)+(o>>>13)|0)+(Dt>>>26)|0,Dt&=67108863,n=Math.imul(V,ht),o=(o=Math.imul(V,ct))+Math.imul(K,ht)|0,h=Math.imul(K,ct),n=n+Math.imul(N,lt)|0,o=(o=o+Math.imul(N,pt)|0)+Math.imul(H,lt)|0,h=h+Math.imul(H,pt)|0,n=n+Math.imul(D,gt)|0,o=(o=o+Math.imul(D,vt)|0)+Math.imul(F,gt)|0,h=h+Math.imul(F,vt)|0,n=n+Math.imul(j,bt)|0,o=(o=o+Math.imul(j,wt)|0)+Math.imul(U,bt)|0,h=h+Math.imul(U,wt)|0;var Ft=(f+(n=n+Math.imul(P,_t)|0)|0)+((8191&(o=(o=o+Math.imul(P,St)|0)+Math.imul(T,_t)|0))<<13)|0;f=((h=h+Math.imul(T,St)|0)+(o>>>13)|0)+(Ft>>>26)|0,Ft&=67108863,n=Math.imul(V,lt),o=(o=Math.imul(V,pt))+Math.imul(K,lt)|0,h=Math.imul(K,pt),n=n+Math.imul(N,gt)|0,o=(o=o+Math.imul(N,vt)|0)+Math.imul(H,gt)|0,h=h+Math.imul(H,vt)|0,n=n+Math.imul(D,bt)|0,o=(o=o+Math.imul(D,wt)|0)+Math.imul(F,bt)|0,h=h+Math.imul(F,wt)|0;var Lt=(f+(n=n+Math.imul(j,_t)|0)|0)+((8191&(o=(o=o+Math.imul(j,St)|0)+Math.imul(U,_t)|0))<<13)|0;f=((h=h+Math.imul(U,St)|0)+(o>>>13)|0)+(Lt>>>26)|0,Lt&=67108863,n=Math.imul(V,gt),o=(o=Math.imul(V,vt))+Math.imul(K,gt)|0,h=Math.imul(K,vt),n=n+Math.imul(N,bt)|0,o=(o=o+Math.imul(N,wt)|0)+Math.imul(H,bt)|0,h=h+Math.imul(H,wt)|0;var Nt=(f+(n=n+Math.imul(D,_t)|0)|0)+((8191&(o=(o=o+Math.imul(D,St)|0)+Math.imul(F,_t)|0))<<13)|0;f=((h=h+Math.imul(F,St)|0)+(o>>>13)|0)+(Nt>>>26)|0,Nt&=67108863,n=Math.imul(V,bt),o=(o=Math.imul(V,wt))+Math.imul(K,bt)|0,h=Math.imul(K,wt);var qt=(f+(n=n+Math.imul(N,_t)|0)|0)+((8191&(o=(o=o+Math.imul(N,St)|0)+Math.imul(H,_t)|0))<<13)|0;f=((h=h+Math.imul(H,St)|0)+(o>>>13)|0)+(qt>>>26)|0,qt&=67108863;var Ht=(f+(n=Math.imul(V,_t))|0)+((8191&(o=(o=Math.imul(V,St))+Math.imul(K,_t)|0))<<13)|0;return f=((h=Math.imul(K,St))+(o>>>13)|0)+(Ht>>>26)|0,Ht&=67108863,c[0]=At,c[1]=xt,c[2]=kt,c[3]=Et,c[4]=Ct,c[5]=Rt,c[6]=It,c[7]=Pt,c[8]=Tt,c[9]=Ot,c[10]=jt,c[11]=Ut,c[12]=Bt,c[13]=Dt,c[14]=Ft,c[15]=Lt,c[16]=Nt,c[17]=qt,c[18]=Ht,0!==f&&(c[19]=f,r.length++),r};function M(t,e,r){return(new _).mulp(t,e,r)}function _(t,e){this.x=t,this.y=e}Math.imul||(w=y),h.prototype.mulTo=function(t,e){var r=this.length+t.length;return 10===this.length&&10===t.length?w(this,t,e):r<63?y(this,t,e):r<1024?function(t,e,r){r.negative=e.negative^t.negative,r.length=t.length+e.length;for(var n=0,o=0,h=0;h<r.length-1;h++){var c=o;o=0;for(var f=67108863&n,l=Math.min(h,e.length-1),d=Math.max(0,h-t.length+1);d<=l;d++){var i=h-d,m=(0|t.words[i])*(0|e.words[d]),v=67108863&m;f=67108863&(v=v+f|0),o+=(c=(c=c+(m/67108864|0)|0)+(v>>>26)|0)>>>26,c&=67108863}r.words[h]=f,n=c,c=o}return 0!==n?r.words[h]=n:r.length--,r.strip()}(this,t,e):M(this,t,e)},_.prototype.makeRBT=function(t){for(var e=new Array(t),r=h.prototype._countBits(t)-1,i=0;i<t;i++)e[i]=this.revBin(i,r,t);return e},_.prototype.revBin=function(t,e,r){if(0===t||t===r-1)return t;for(var n=0,i=0;i<e;i++)n|=(1&t)<<e-i-1,t>>=1;return n},_.prototype.permute=function(t,e,r,n,o,h){for(var i=0;i<h;i++)n[i]=e[t[i]],o[i]=r[t[i]]},_.prototype.transform=function(t,e,r,n,o,h){this.permute(h,t,e,r,n,o);for(var s=1;s<o;s<<=1)for(var c=s<<1,f=Math.cos(2*Math.PI/c),l=Math.sin(2*Math.PI/c),p=0;p<o;p+=c)for(var d=f,m=l,v=0;v<s;v++){var y=r[p+v],w=n[p+v],M=r[p+v+s],_=n[p+v+s],S=d*M-m*_;_=d*_+m*M,M=S,r[p+v]=y+M,n[p+v]=w+_,r[p+v+s]=y-M,n[p+v+s]=w-_,v!==c&&(S=f*d-l*m,m=f*m+l*d,d=S)}},_.prototype.guessLen13b=function(t,e){var r=1|Math.max(e,t),n=1&r,i=0;for(r=r/2|0;r;r>>>=1)i++;return 1<<i+1+n},_.prototype.conjugate=function(t,e,r){if(!(r<=1))for(var i=0;i<r/2;i++){var n=t[i];t[i]=t[r-i-1],t[r-i-1]=n,n=e[i],e[i]=-e[r-i-1],e[r-i-1]=-n}},_.prototype.normalize13b=function(t,e){for(var r=0,i=0;i<e/2;i++){var n=8192*Math.round(t[2*i+1]/e)+Math.round(t[2*i]/e)+r;t[i]=67108863&n,r=n<67108864?0:n/67108864|0}return t},_.prototype.convert13b=function(t,e,r,o){for(var h=0,i=0;i<e;i++)h+=0|t[i],r[2*i]=8191&h,h>>>=13,r[2*i+1]=8191&h,h>>>=13;for(i=2*e;i<o;++i)r[i]=0;n(0===h),n(0==(-8192&h))},_.prototype.stub=function(t){for(var e=new Array(t),i=0;i<t;i++)e[i]=0;return e},_.prototype.mulp=function(t,e,r){var n=2*this.guessLen13b(t.length,e.length),o=this.makeRBT(n),h=this.stub(n),c=new Array(n),f=new Array(n),l=new Array(n),d=new Array(n),m=new Array(n),v=new Array(n),y=r.words;y.length=n,this.convert13b(t.words,t.length,c,n),this.convert13b(e.words,e.length,d,n),this.transform(c,h,f,l,n,o),this.transform(d,h,m,v,n,o);for(var i=0;i<n;i++){var w=f[i]*m[i]-l[i]*v[i];l[i]=f[i]*v[i]+l[i]*m[i],f[i]=w}return this.conjugate(f,l,n),this.transform(f,l,y,h,n,o),this.conjugate(y,h,n),this.normalize13b(y,n),r.negative=t.negative^e.negative,r.length=t.length+e.length,r.strip()},h.prototype.mul=function(t){var e=new h(null);return e.words=new Array(this.length+t.length),this.mulTo(t,e)},h.prototype.mulf=function(t){var e=new h(null);return e.words=new Array(this.length+t.length),M(this,t,e)},h.prototype.imul=function(t){return this.clone().mulTo(t,this)},h.prototype.imuln=function(t){n("number"==typeof t),n(t<67108864);for(var e=0,i=0;i<this.length;i++){var r=(0|this.words[i])*t,o=(67108863&r)+(67108863&e);e>>=26,e+=r/67108864|0,e+=o>>>26,this.words[i]=67108863&o}return 0!==e&&(this.words[i]=e,this.length++),this},h.prototype.muln=function(t){return this.clone().imuln(t)},h.prototype.sqr=function(){return this.mul(this)},h.prototype.isqr=function(){return this.imul(this.clone())},h.prototype.pow=function(t){var e=function(t){for(var e=new Array(t.bitLength()),r=0;r<e.length;r++){var n=r/26|0,o=r%26;e[r]=(t.words[n]&1<<o)>>>o}return e}(t);if(0===e.length)return new h(1);for(var r=this,i=0;i<e.length&&0===e[i];i++,r=r.sqr());if(++i<e.length)for(var q=r.sqr();i<e.length;i++,q=q.sqr())0!==e[i]&&(r=r.mul(q));return r},h.prototype.iushln=function(t){n("number"==typeof t&&t>=0);var i,e=t%26,s=(t-e)/26,r=67108863>>>26-e<<26-e;if(0!==e){var o=0;for(i=0;i<this.length;i++){var h=this.words[i]&r,c=(0|this.words[i])-h<<e;this.words[i]=c|o,o=h>>>26-e}o&&(this.words[i]=o,this.length++)}if(0!==s){for(i=this.length-1;i>=0;i--)this.words[i+s]=this.words[i];for(i=0;i<s;i++)this.words[i]=0;this.length+=s}return this.strip()},h.prototype.ishln=function(t){return n(0===this.negative),this.iushln(t)},h.prototype.iushrn=function(t,e,r){var o;n("number"==typeof t&&t>=0),o=e?(e-e%26)/26:0;var h=t%26,s=Math.min((t-h)/26,this.length),mask=67108863^67108863>>>h<<h,c=r;if(o-=s,o=Math.max(0,o),c){for(var i=0;i<s;i++)c.words[i]=this.words[i];c.length=s}if(0===s);else if(this.length>s)for(this.length-=s,i=0;i<this.length;i++)this.words[i]=this.words[i+s];else this.words[0]=0,this.length=1;var f=0;for(i=this.length-1;i>=0&&(0!==f||i>=o);i--){var l=0|this.words[i];this.words[i]=f<<26-h|l>>>h,f=l&mask}return c&&0!==f&&(c.words[c.length++]=f),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},h.prototype.ishrn=function(t,e,r){return n(0===this.negative),this.iushrn(t,e,r)},h.prototype.shln=function(t){return this.clone().ishln(t)},h.prototype.ushln=function(t){return this.clone().iushln(t)},h.prototype.shrn=function(t){return this.clone().ishrn(t)},h.prototype.ushrn=function(t){return this.clone().iushrn(t)},h.prototype.testn=function(t){n("number"==typeof t&&t>=0);var e=t%26,s=(t-e)/26,q=1<<e;return!(this.length<=s)&&!!(this.words[s]&q)},h.prototype.imaskn=function(t){n("number"==typeof t&&t>=0);var e=t%26,s=(t-e)/26;if(n(0===this.negative,"imaskn works only with positive numbers"),this.length<=s)return this;if(0!==e&&s++,this.length=Math.min(s,this.length),0!==e){var mask=67108863^67108863>>>e<<e;this.words[this.length-1]&=mask}return this.strip()},h.prototype.maskn=function(t){return this.clone().imaskn(t)},h.prototype.iaddn=function(t){return n("number"==typeof t),n(t<67108864),t<0?this.isubn(-t):0!==this.negative?1===this.length&&(0|this.words[0])<t?(this.words[0]=t-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(t),this.negative=1,this):this._iaddn(t)},h.prototype._iaddn=function(t){this.words[0]+=t;for(var i=0;i<this.length&&this.words[i]>=67108864;i++)this.words[i]-=67108864,i===this.length-1?this.words[i+1]=1:this.words[i+1]++;return this.length=Math.max(this.length,i+1),this},h.prototype.isubn=function(t){if(n("number"==typeof t),n(t<67108864),t<0)return this.iaddn(-t);if(0!==this.negative)return this.negative=0,this.iaddn(t),this.negative=1,this;if(this.words[0]-=t,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var i=0;i<this.length&&this.words[i]<0;i++)this.words[i]+=67108864,this.words[i+1]-=1;return this.strip()},h.prototype.addn=function(t){return this.clone().iaddn(t)},h.prototype.subn=function(t){return this.clone().isubn(t)},h.prototype.iabs=function(){return this.negative=0,this},h.prototype.abs=function(){return this.clone().iabs()},h.prototype._ishlnsubmul=function(t,e,r){var i,o,h=t.length+r;this._expand(h);var c=0;for(i=0;i<t.length;i++){o=(0|this.words[i+r])+c;var f=(0|t.words[i])*e;c=((o-=67108863&f)>>26)-(f/67108864|0),this.words[i+r]=67108863&o}for(;i<this.length-r;i++)c=(o=(0|this.words[i+r])+c)>>26,this.words[i+r]=67108863&o;if(0===c)return this.strip();for(n(-1===c),c=0,i=0;i<this.length;i++)c=(o=-(0|this.words[i])+c)>>26,this.words[i]=67108863&o;return this.negative=1,this.strip()},h.prototype._wordDiv=function(t,e){var r=(this.length,t.length),a=this.clone(),b=t,n=0|b.words[b.length-1];0!==(r=26-this._countBits(n))&&(b=b.ushln(r),a.iushln(r),n=0|b.words[b.length-1]);var q,o=a.length-b.length;if("mod"!==e){(q=new h(null)).length=o+1,q.words=new Array(q.length);for(var i=0;i<q.length;i++)q.words[i]=0}var c=a.clone()._ishlnsubmul(b,1,o);0===c.negative&&(a=c,q&&(q.words[o]=1));for(var f=o-1;f>=0;f--){var l=67108864*(0|a.words[b.length+f])+(0|a.words[b.length+f-1]);for(l=Math.min(l/n|0,67108863),a._ishlnsubmul(b,l,f);0!==a.negative;)l--,a.negative=0,a._ishlnsubmul(b,1,f),a.isZero()||(a.negative^=1);q&&(q.words[f]=l)}return q&&q.strip(),a.strip(),"div"!==e&&0!==r&&a.iushrn(r),{div:q||null,mod:a}},h.prototype.divmod=function(t,e,r){return n(!t.isZero()),this.isZero()?{div:new h(0),mod:new h(0)}:0!==this.negative&&0===t.negative?(c=this.neg().divmod(t,e),"mod"!==e&&(div=c.div.neg()),"div"!==e&&(o=c.mod.neg(),r&&0!==o.negative&&o.iadd(t)),{div:div,mod:o}):0===this.negative&&0!==t.negative?(c=this.divmod(t.neg(),e),"mod"!==e&&(div=c.div.neg()),{div:div,mod:c.mod}):0!=(this.negative&t.negative)?(c=this.neg().divmod(t.neg(),e),"div"!==e&&(o=c.mod.neg(),r&&0!==o.negative&&o.isub(t)),{div:c.div,mod:o}):t.length>this.length||this.cmp(t)<0?{div:new h(0),mod:this}:1===t.length?"div"===e?{div:this.divn(t.words[0]),mod:null}:"mod"===e?{div:null,mod:new h(this.modn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new h(this.modn(t.words[0]))}:this._wordDiv(t,e);var div,o,c},h.prototype.div=function(t){return this.divmod(t,"div",!1).div},h.prototype.mod=function(t){return this.divmod(t,"mod",!1).mod},h.prototype.umod=function(t){return this.divmod(t,"mod",!0).mod},h.prototype.divRound=function(t){var e=this.divmod(t);if(e.mod.isZero())return e.div;var r=0!==e.div.negative?e.mod.isub(t):e.mod,n=t.ushrn(1),o=t.andln(1),h=r.cmp(n);return h<0||1===o&&0===h?e.div:0!==e.div.negative?e.div.isubn(1):e.div.iaddn(1)},h.prototype.modn=function(t){n(t<=67108863);for(var p=(1<<26)%t,e=0,i=this.length-1;i>=0;i--)e=(p*e+(0|this.words[i]))%t;return e},h.prototype.idivn=function(t){n(t<=67108863);for(var e=0,i=this.length-1;i>=0;i--){var r=(0|this.words[i])+67108864*e;this.words[i]=r/t|0,e=r%t}return this.strip()},h.prototype.divn=function(t){return this.clone().idivn(t)},h.prototype.egcd=function(p){n(0===p.negative),n(!p.isZero());var t=this,e=p.clone();t=0!==t.negative?t.umod(p):t.clone();for(var r=new h(1),o=new h(0),c=new h(0),f=new h(1),g=0;t.isEven()&&e.isEven();)t.iushrn(1),e.iushrn(1),++g;for(var l=e.clone(),d=t.clone();!t.isZero();){for(var i=0,m=1;0==(t.words[0]&m)&&i<26;++i,m<<=1);if(i>0)for(t.iushrn(i);i-- >0;)(r.isOdd()||o.isOdd())&&(r.iadd(l),o.isub(d)),r.iushrn(1),o.iushrn(1);for(var v=0,y=1;0==(e.words[0]&y)&&v<26;++v,y<<=1);if(v>0)for(e.iushrn(v);v-- >0;)(c.isOdd()||f.isOdd())&&(c.iadd(l),f.isub(d)),c.iushrn(1),f.iushrn(1);t.cmp(e)>=0?(t.isub(e),r.isub(c),o.isub(f)):(e.isub(t),c.isub(r),f.isub(o))}return{a:c,b:f,gcd:e.iushln(g)}},h.prototype._invmp=function(p){n(0===p.negative),n(!p.isZero());var a=this,b=p.clone();a=0!==a.negative?a.umod(p):a.clone();for(var t,e=new h(1),r=new h(0),o=b.clone();a.cmpn(1)>0&&b.cmpn(1)>0;){for(var i=0,c=1;0==(a.words[0]&c)&&i<26;++i,c<<=1);if(i>0)for(a.iushrn(i);i-- >0;)e.isOdd()&&e.iadd(o),e.iushrn(1);for(var f=0,l=1;0==(b.words[0]&l)&&f<26;++f,l<<=1);if(f>0)for(b.iushrn(f);f-- >0;)r.isOdd()&&r.iadd(o),r.iushrn(1);a.cmp(b)>=0?(a.isub(b),e.isub(r)):(b.isub(a),r.isub(e))}return(t=0===a.cmpn(1)?e:r).cmpn(0)<0&&t.iadd(p),t},h.prototype.gcd=function(t){if(this.isZero())return t.abs();if(t.isZero())return this.abs();var a=this.clone(),b=t.clone();a.negative=0,b.negative=0;for(var e=0;a.isEven()&&b.isEven();e++)a.iushrn(1),b.iushrn(1);for(;;){for(;a.isEven();)a.iushrn(1);for(;b.isEven();)b.iushrn(1);var r=a.cmp(b);if(r<0){var n=a;a=b,b=n}else if(0===r||0===b.cmpn(1))break;a.isub(b)}return b.iushln(e)},h.prototype.invm=function(t){return this.egcd(t).a.umod(t)},h.prototype.isEven=function(){return 0==(1&this.words[0])},h.prototype.isOdd=function(){return 1==(1&this.words[0])},h.prototype.andln=function(t){return this.words[0]&t},h.prototype.bincn=function(t){n("number"==typeof t);var e=t%26,s=(t-e)/26,q=1<<e;if(this.length<=s)return this._expand(s+1),this.words[s]|=q,this;for(var r=q,i=s;0!==r&&i<this.length;i++){var o=0|this.words[i];r=(o+=r)>>>26,o&=67108863,this.words[i]=o}return 0!==r&&(this.words[i]=r,this.length++),this},h.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},h.prototype.cmpn=function(t){var e,r=t<0;if(0!==this.negative&&!r)return-1;if(0===this.negative&&r)return 1;if(this.strip(),this.length>1)e=1;else{r&&(t=-t),n(t<=67108863,"Number is too big");var o=0|this.words[0];e=o===t?0:o<t?-1:1}return 0!==this.negative?0|-e:e},h.prototype.cmp=function(t){if(0!==this.negative&&0===t.negative)return-1;if(0===this.negative&&0!==t.negative)return 1;var e=this.ucmp(t);return 0!==this.negative?0|-e:e},h.prototype.ucmp=function(t){if(this.length>t.length)return 1;if(this.length<t.length)return-1;for(var e=0,i=this.length-1;i>=0;i--){var a=0|this.words[i],b=0|t.words[i];if(a!==b){a<b?e=-1:a>b&&(e=1);break}}return e},h.prototype.gtn=function(t){return 1===this.cmpn(t)},h.prototype.gt=function(t){return 1===this.cmp(t)},h.prototype.gten=function(t){return this.cmpn(t)>=0},h.prototype.gte=function(t){return this.cmp(t)>=0},h.prototype.ltn=function(t){return-1===this.cmpn(t)},h.prototype.lt=function(t){return-1===this.cmp(t)},h.prototype.lten=function(t){return this.cmpn(t)<=0},h.prototype.lte=function(t){return this.cmp(t)<=0},h.prototype.eqn=function(t){return 0===this.cmpn(t)},h.prototype.eq=function(t){return 0===this.cmp(t)},h.red=function(t){return new R(t)},h.prototype.toRed=function(t){return n(!this.red,"Already a number in reduction context"),n(0===this.negative,"red works only with positives"),t.convertTo(this)._forceRed(t)},h.prototype.fromRed=function(){return n(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},h.prototype._forceRed=function(t){return this.red=t,this},h.prototype.forceRed=function(t){return n(!this.red,"Already a number in reduction context"),this._forceRed(t)},h.prototype.redAdd=function(t){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,t)},h.prototype.redIAdd=function(t){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,t)},h.prototype.redSub=function(t){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,t)},h.prototype.redISub=function(t){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,t)},h.prototype.redShl=function(t){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,t)},h.prototype.redMul=function(t){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.mul(this,t)},h.prototype.redIMul=function(t){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.imul(this,t)},h.prototype.redSqr=function(){return n(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},h.prototype.redISqr=function(){return n(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},h.prototype.redSqrt=function(){return n(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},h.prototype.redInvm=function(){return n(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},h.prototype.redNeg=function(){return n(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},h.prototype.redPow=function(t){return n(this.red&&!t.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,t)};var S={k256:null,p224:null,p192:null,p25519:null};function A(t,p){this.name=t,this.p=new h(p,16),this.n=this.p.bitLength(),this.k=new h(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function x(){A.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function k(){A.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function E(){A.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function C(){A.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function R(t){if("string"==typeof t){var e=h._prime(t);this.m=e.p,this.prime=e}else n(t.gtn(1),"modulus must be greater than 1"),this.m=t,this.prime=null}function I(t){R.call(this,t),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new h(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)}A.prototype._tmp=function(){var t=new h(null);return t.words=new Array(Math.ceil(this.n/13)),t},A.prototype.ireduce=function(t){var e,r=t;do{this.split(r,this.tmp),e=(r=(r=this.imulK(r)).iadd(this.tmp)).bitLength()}while(e>this.n);var n=e<this.n?-1:r.ucmp(this.p);return 0===n?(r.words[0]=0,r.length=1):n>0?r.isub(this.p):void 0!==r.strip?r.strip():r._strip(),r},A.prototype.split=function(input,t){input.iushrn(this.n,0,t)},A.prototype.imulK=function(t){return t.imul(this.k)},o(x,A),x.prototype.split=function(input,output){for(var t=Math.min(input.length,9),i=0;i<t;i++)output.words[i]=input.words[i];if(output.length=t,input.length<=9)return input.words[0]=0,void(in
vendor: 9,259 bytes, line 11
11put.length=1);var e=input.words[9];for(output.words[output.length++]=4194303&e,i=10;i<input.length;i++){var r=0|input.words[i];input.words[i-10]=(4194303&r)<<4|e>>>22,e=r}e>>>=22,input.words[i-10]=e,0===e&&input.length>10?input.length-=10:input.length-=9},x.prototype.imulK=function(t){t.words[t.length]=0,t.words[t.length+1]=0,t.length+=2;for(var e=0,i=0;i<t.length;i++){var r=0|t.words[i];e+=977*r,t.words[i]=67108863&e,e=64*r+(e/67108864|0)}return 0===t.words[t.length-1]&&(t.length--,0===t.words[t.length-1]&&t.length--),t},o(k,A),o(E,A),o(C,A),C.prototype.imulK=function(t){for(var e=0,i=0;i<t.length;i++){var r=19*(0|t.words[i])+e,n=67108863&r;r>>>=26,t.words[i]=n,e=r}return 0!==e&&(t.words[t.length++]=e),t},h._prime=function(t){if(S[t])return S[t];var e;if("k256"===t)e=new x;else if("p224"===t)e=new k;else if("p192"===t)e=new E;else{if("p25519"!==t)throw new Error("Unknown prime "+t);e=new C}return S[t]=e,e},R.prototype._verify1=function(a){n(0===a.negative,"red works only with positives"),n(a.red,"red works only with red numbers")},R.prototype._verify2=function(a,b){n(0==(a.negative|b.negative),"red works only with positives"),n(a.red&&a.red===b.red,"red works only with red numbers")},R.prototype.imod=function(a){return this.prime?this.prime.ireduce(a)._forceRed(this):a.umod(this.m)._forceRed(this)},R.prototype.neg=function(a){return a.isZero()?a.clone():this.m.sub(a)._forceRed(this)},R.prototype.add=function(a,b){this._verify2(a,b);var t=a.add(b);return t.cmp(this.m)>=0&&t.isub(this.m),t._forceRed(this)},R.prototype.iadd=function(a,b){this._verify2(a,b);var t=a.iadd(b);return t.cmp(this.m)>=0&&t.isub(this.m),t},R.prototype.sub=function(a,b){this._verify2(a,b);var t=a.sub(b);return t.cmpn(0)<0&&t.iadd(this.m),t._forceRed(this)},R.prototype.isub=function(a,b){this._verify2(a,b);var t=a.isub(b);return t.cmpn(0)<0&&t.iadd(this.m),t},R.prototype.shl=function(a,t){return this._verify1(a),this.imod(a.ushln(t))},R.prototype.imul=function(a,b){return this._verify2(a,b),this.imod(a.imul(b))},R.prototype.mul=function(a,b){return this._verify2(a,b),this.imod(a.mul(b))},R.prototype.isqr=function(a){return this.imul(a,a.clone())},R.prototype.sqr=function(a){return this.mul(a,a)},R.prototype.sqrt=function(a){if(a.isZero())return a.clone();var t=this.m.andln(3);if(n(t%2==1),3===t){var e=this.m.add(new h(1)).iushrn(2);return this.pow(a,e)}for(var q=this.m.subn(1),s=0;!q.isZero()&&0===q.andln(1);)s++,q.iushrn(1);n(!q.isZero());var r=new h(1).toRed(this),o=r.redNeg(),c=this.m.subn(1).iushrn(1),f=this.m.bitLength();for(f=new h(2*f*f).toRed(this);0!==this.pow(f,c).cmp(o);)f.redIAdd(o);for(var l=this.pow(f,q),d=this.pow(a,q.addn(1).iushrn(1)),m=this.pow(a,q),v=s;0!==m.cmp(r);){for(var y=m,i=0;0!==y.cmp(r);i++)y=y.redSqr();n(i<v);var b=this.pow(l,new h(1).iushln(v-i-1));d=d.redMul(b),l=b.redSqr(),m=m.redMul(l),v=i}return d},R.prototype.invm=function(a){var t=a._invmp(this.m);return 0!==t.negative?(t.negative=0,this.imod(t).redNeg()):this.imod(t)},R.prototype.pow=function(a,t){if(t.isZero())return new h(1).toRed(this);if(0===t.cmpn(1))return a.clone();var e=new Array(16);e[0]=new h(1).toRed(this),e[1]=a;for(var i=2;i<e.length;i++)e[i]=this.mul(e[i-1],a);var r=e[0],n=0,o=0,c=t.bitLength()%26;for(0===c&&(c=26),i=t.length-1;i>=0;i--){for(var f=t.words[i],l=c-1;l>=0;l--){var d=f>>l&1;r!==e[0]&&(r=this.sqr(r)),0!==d||0!==n?(n<<=1,n|=d,(4===++o||0===i&&0===l)&&(r=this.mul(r,e[n]),o=0,n=0)):o=0}c=26}return r},R.prototype.convertTo=function(t){var e=t.umod(this.m);return e===t?e.clone():e},R.prototype.convertFrom=function(t){var e=t.clone();return e.red=null,e},h.mont=function(t){return new I(t)},o(I,R),I.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},I.prototype.convertFrom=function(t){var e=this.imod(t.mul(this.rinv));return e.red=null,e},I.prototype.imul=function(a,b){if(a.isZero()||b.isZero())return a.words[0]=0,a.length=1,a;var t=a.imul(b),e=t.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),u=t.isub(e).iushrn(this.shift),r=u;return u.cmp(this.m)>=0?r=u.isub(this.m):u.cmpn(0)<0&&(r=u.iadd(this.m)),r._forceRed(this)},I.prototype.mul=function(a,b){if(a.isZero()||b.isZero())return new h(0)._forceRed(this);var t=a.mul(b),e=t.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),u=t.isub(e).iushrn(this.shift),r=u;return u.cmp(this.m)>=0?r=u.isub(this.m):u.cmpn(0)<0&&(r=u.iadd(this.m)),r._forceRed(this)},I.prototype.invm=function(a){return this.imod(a._invmp(this.m).mul(this.r2))._forceRed(this)}}(t,this)}).call(this,r(57)(t))},,,function(t){t.exports=JSON.parse('{"modp1":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a63a3620ffffffffffffffff"},"modp2":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece65381ffffffffffffffff"},"modp5":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca237327ffffffffffffffff"},"modp14":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aacaa68ffffffffffffffff"},"modp15":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a93ad2caffffffffffffffff"},"modp16":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c934063199ffffffffffffffff"},"modp17":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd4
1107b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dcc4024ffffffffffffffff"},"modp18":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dbe115974a3926f12fee5e438777cb6a932df8cd8bec4d073b931ba3bc832b68d9dd300741fa7bf8afc47ed2576f6936ba424663aab639c5ae4f5683423b4742bf1c978238f16cbe39d652de3fdb8befc848ad922222e04a4037c0713eb57a81a23f0c73473fc646cea306b4bcbc8862f8385ddfa9d4b7fa2c087e879683303ed5bdd3a062b3cf5b3a278a66d2a13f83f44f82ddf310ee074ab6a364597e899a0255dc164f31cc50846851df9ab48195ded7ea1b1d510bd7ee74d73faf36bc31ecfa268359046f4eb879f924009438b481c6cd7889a002ed5ee382bc9190da6fc026e479558e4475677e9aa9e3050e2765694dfc81f56e880b96e7160c980dd98edd3dfffffffffffffffff"}}')},function(t,e,r){(function(e){var n=r(263),o=new(r(264)),h=new n(24),c=new n(11),f=new n(10),l=new n(3),d=new n(7),m=r(262),v=r(69);function y(t,r){return r=r||"utf8",e.isBuffer(t)||(t=new e(t,r)),this._pub=new n(t),this}function w(t,r){return r=r||"utf8",e.isBuffer(t)||(t=new e(t,r)),this._priv=new n(t),this}t.exports=_;var M={};function _(t,e,r){this.setGenerator(e),this.__prime=new n(t),this._prime=n.mont(this.__prime),this._primeLen=t.length,this._pub=void 0,this._priv=void 0,this._primeCode=void 0,r?(this.setPublicKey=y,this.setPrivateKey=w):this._primeCode=8}function S(t,r){var n=new e(t.toArray());return r?n.toString(r):n}Object.defineProperty(_.prototype,"verifyError",{enumerable:!0,get:function(){return"number"!=typeof this._primeCode&&(this._primeCode=function(t,e){var r=e.toString("hex"),n=[r,t.toString(16)].join("_");if(n in M)return M[n];var v,y=0;if(t.isEven()||!m.simpleSieve||!m.fermatTest(t)||!o.test(t))return y+=1,y+="02"===r||"05"===r?8:4,M[n]=y,y;switch(o.test(t.shrn(1))||(y+=2),r){case"02":t.mod(h).cmp(c)&&(y+=8);break;case"05":(v=t.mod(f)).cmp(l)&&v.cmp(d)&&(y+=8);break;default:y+=4}return M[n]=y,y}(this.__prime,this.__gen)),this._primeCode}}),_.prototype.generateKeys=function(){return this._priv||(this._priv=new n(v(this._primeLen))),this._pub=this._gen.toRed(this._prime).redPow(this._priv).fromRed(),this.getPublicKey()},_.prototype.computeSecret=function(t){var r=(t=(t=new n(t)).toRed(this._prime)).redPow(this._priv).fromRed(),o=new e(r.toArray()),h=this.getPrime();if(o.length<h.length){var c=new e(h.length-o.length);c.fill(0),o=e.concat([c,o])}return o},_.prototype.getPublicKey=function(t){return S(this._pub,t)},_.prototype.getPrivateKey=function(t){return S(this._priv,t)},_.prototype.getPrime=function(t){return S(this.__prime,t)},_.prototype.getGenerator=function(t){return S(this._gen,t)},_.prototype.setGenerator=function(t,r){return r=r||"utf8",e.isBuffer(t)||(t=new e(t,r)),this.__gen=t,this._gen=new n(t),this}}).call(this,r(5).Buffer)},function(t,e,r){var n=r(167).Buffer,o=r(92),h=r(233),c=r(6),f=r(451),l=r(482),d=r
vendor: 4,193 bytes, line 11
11(249);function m(t){h.Writable.call(this);var data=d[t];if(!data)throw new Error("Unknown message digest");this._hashType=data.hash,this._hash=o(data.hash),this._tag=data.id,this._signType=data.sign}function v(t){h.Writable.call(this);var data=d[t];if(!data)throw new Error("Unknown message digest");this._hash=o(data.hash),this._tag=data.id,this._signType=data.sign}function y(t){return new m(t)}function w(t){return new v(t)}Object.keys(d).forEach((function(t){d[t].id=n.from(d[t].id,"hex"),d[t.toLowerCase()]=d[t]})),c(m,h.Writable),m.prototype._write=function(data,t,e){this._hash.update(data),e()},m.prototype.update=function(data,t){return"string"==typeof data&&(data=n.from(data,t)),this._hash.update(data),this},m.prototype.sign=function(t,e){this.end();var r=this._hash.digest(),n=f(r,t,this._hashType,this._signType,this._tag);return e?n.toString(e):n},c(v,h.Writable),v.prototype._write=function(data,t,e){this._hash.update(data),e()},v.prototype.update=function(data,t){return"string"==typeof data&&(data=n.from(data,t)),this._hash.update(data),this},v.prototype.verify=function(t,e,r){"string"==typeof e&&(e=n.from(e,r)),this.end();var o=this._hash.digest();return l(e,o,t,this._signType,this._tag)},t.exports={Sign:y,Verify:w,createSign:y,createVerify:w}},function(t,e,r){var n=r(167).Buffer,o=r(247),h=r(168),c=r(170).ec,f=r(169),l=r(127),d=r(276);function m(t,q,e,r){if((t=n.from(t.toArray())).length<q.byteLength()){var h=n.alloc(q.byteLength()-t.length);t=n.concat([h,t])}var c=e.length,f=function(t,q){t=(t=v(t,q)).mod(q);var e=n.from(t.toArray());if(e.length<q.byteLength()){var r=n.alloc(q.byteLength()-e.length);e=n.concat([r,e])}return e}(e,q),l=n.alloc(c);l.fill(1);var d=n.alloc(c);return d=o(r,d).update(l).update(n.from([0])).update(t).update(f).digest(),l=o(r,d).update(l).digest(),{k:d=o(r,d).update(l).update(n.from([1])).update(t).update(f).digest(),v:l=o(r,d).update(l).digest()}}function v(t,q){var e=new f(t),r=(t.length<<3)-q.bitLength();return r>0&&e.ishrn(r),e}function y(q,t,e){var r,h;do{for(r=n.alloc(0);8*r.length<q.bitLength();)t.v=o(e,t.k).update(t.v).digest(),r=n.concat([r,t.v]);h=v(r,q),t.k=o(e,t.k).update(t.v).update(n.from([0])).digest(),t.v=o(e,t.k).update(t.v).digest()}while(-1!==h.cmp(q));return h}function w(g,t,p,q){return g.toRed(f.mont(p)).redPow(t).fromRed().mod(q)}t.exports=function(t,e,r,o,M){var _=l(e);if(_.curve){if("ecdsa"!==o&&"ecdsa/rsa"!==o)throw new Error("wrong private key type");return function(t,e){var r=d[e.curve.join(".")];if(!r)throw new Error("unknown curve "+e.curve.join("."));var o=new c(r).keyFromPrivate(e.privateKey).sign(t);return n.from(o.toDER())}(t,_)}if("dsa"===_.type){if("dsa"!==o)throw new Error("wrong private key type");return function(t,e,r){var o,h=e.params.priv_key,p=e.params.p,q=e.params.q,g=e.params.g,c=new f(0),l=v(t,q).mod(q),s=!1,d=m(h,q,t,r);for(;!1===s;)o=y(q,d,r),c=w(g,o,p,q),0===(s=o.invm(q).imul(l.add(h.mul(c))).mod(q)).cmpn(0)&&(s=!1,c=new f(0));return function(t,s){t=t.toArray(),s=s.toArray(),128&t[0]&&(t=[0].concat(t));128&s[0]&&(s=[0].concat(s));var e=[48,t.length+s.length+4,2,t.length];return e=e.concat(t,[2,s.length],s),n.from(e)}(c,s)}(t,_,r)}if("rsa"!==o&&"ecdsa/rsa"!==o)throw new Error("wrong private key type");t=n.concat([M,t]);for(var S=_.modulus.byteLength(),A=[0,1];t.length+A.length+1<S;)A.push(255);A.push(0);for(var i=-1;++i<t.length;)A.push(t[i]);return h(A,_)},t.exports.getKey=m,t.exports.makeKey=y},,function(t){t.exports=JSON.parse('{"_args":[["[email protected]","/shop-frontend"]],"_from":"[email protected]","_id":"[email protected]","_inBundle":false,"_integrity":"sha512-IMqzv5wNQf+E6aHeIqATs0tOLeOTwj1QKbRcS3jBbYkl5oLAserA8yJTT7/VyHUYG91PRmPyeQDObKLPpeS4dw==","_location":"/elliptic","_phantomChildren":{},"_requested":{"type":"version","registry":true,"raw":"[email protected]","name":"elliptic","escapedName":"elliptic","rawSpec":"6.5.3","saveSpec":null,"fetchSpec":"6.5.3"},"_requiredBy":["/browserify-sign","/create-ecdh"],"_resolved":"https://registry.npmjs.org/elliptic/-/elliptic-6.5.3.tgz","_spec":"6.5.3","_where":"/shop-frontend","author":{"name":"Fedor Indutny","email":"[email protected]"},"bugs":{"url":"https://github.com/indutny/elliptic/issues"}
11,"dependencies":{"bn.js":"^4.4.0","brorand":"^1.0.1","hash.js":"^1.0.0","hmac-drbg":"^1.0.0","inherits":"^2.0.1","minimalistic-assert":"^1.0.0","minimalistic-crypto-utils":"^1.0.0"},"description":"EC cryptography","devDependencies":{"brfs":"^1.4.3","coveralls":"^3.0.8","grunt":"^1.0.4","grunt-browserify":"^5.0.0","grunt-cli":"^1.2.0","grunt-contrib-connect":"^1.0.0","grunt-contrib-copy":"^1.0.0","grunt-contrib-uglify":"^1.0.1","grunt-mocha-istanbul":"^3.0.1","grunt-saucelabs":"^9.0.1","istanbul":"^0.4.2","jscs":"^3.0.7","jshint":"^2.10.3","mocha":"^6.2.2"},"files":["lib"],"homepage":"https://github.com/indutny/elliptic","keywords":["EC","Elliptic","curve","Cryptography"],"license":"MIT","main":"lib/elliptic.js","name":"elliptic","repository":{"type":"git","url":"git+ssh://[email protected]/indutny/elliptic.git"},"scripts":{"jscs":"jscs benchmarks/*.js lib/*.js lib/**/*.js lib/**/**/*.js test/index.js","jshint":"jscs benchmarks/*.js lib/*.js lib/**/*.js lib/**/**/*.js test/index.js","lint":"npm run jscs && npm run jshint","test":"npm run lint && npm run unit","unit":"istanbul test _mocha --reporter=spec test/index.js","version":"grunt dist && git add dist/"},"version":"6.5.3"}')},,function(t,e,r){"use strict";var n=r(41),o=r(46),h=r(6),c=r(126),f=n.assert;function l(t){c.call(this,"short",t),this.a=new o(t.a,16).toRed(this.red),this.b=new o(t.b,16).toRed(this.red),this.tinv=this.two.redInvm(),this.zeroA=0===this.a.fromRed().cmpn(0),this.threeA=0===this.a.fromRed().sub(this.p).cmpn(-3),this.endo=this._getEndomorphism(t),this._endoWnafT1=new Array(4),this._endoWnafT2=new Array(4)}function d(t,e,r,n){c.BasePoint.call(this,t,"affine"),null===e&&null===r?(this.x=null,this.y=null,this.inf=!0):(this.x=new o(e,16),this.y=new o(r,16),n&&(this.x.forceRed(this.curve.red),this.y.forceRed(this.curve.red)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.inf=!1)}function m(t,e,r,n){c.BasePoint.call(this,t,"jacobian"),null===e&&null===r&&null===n?(this.x=this.curve.one,this.y=this.curve.one,this.z=new o(0)):(this.x=new o(e,16),this.y=new o(r,16),this.z=new o(n,16)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.zOne=this.z===this.curve.one}h(l,c),t.exports=l,l.prototype._getEndomorphism=function(t){if(this.zeroA&&this.g&&this.n&&1===this.p.modn(3)){var e,r;if(t.beta)e=new o(t.beta,16).toRed(this.red);else{var n=this._getEndoRoots(this.p);e=(e=n[0].cmp(n[1])<0?n[0]:n[1]).toRed(this.red)}if(t.lambda)r=new o(t.lambda,16);else{var h=this._getEndoRoots(this.n);0===this.g.mul(h[0]).x.cmp(this.g.x.redMul(e))?r=h[0]:(r=h[1],f(0===this.g.mul(r).x.cmp(this.g.x.redMul(e))))}return{beta:e,lambda:r,basis:t.basis?t.basis.map((function(t){return{a:new o(t.a,16),b:new o(t.b,16)}})):this._getEndoBasis(r)}}},l.prototype._getEndoRoots=function(t){var e=t===this.p?this.red:o.mont(t),r=new o(2).toRed(e).redInvm(),n=r.redNeg(),s=new o(3).toRed(e).redNeg().redSqrt().redMul(r);return[n.redAdd(s).fromRed(),n.redSub(s).fromRed()]},l.prototype._getEndoBasis=function(t){for(var e,r,n,h,c,f,l,d,m,v=this.n.ushrn(Math.floor(this.n.bitLength()/2)),u=t,y=this.n.clone(),w=new o(1),M=new o(0),_=new o(0),S=new o(1),i=0;0!==u.cmpn(0);){var q=y.div(u);d=y.sub(q.mul(u)),m=_.sub(q.mul(w));var A=S.sub(q.mul(M));if(!n&&d.cmp(v)<0)e=l.neg(),r=w,n=d.neg(),h=m;else if(n&&2==++i)break;l=d,y=u,u=d,_=w,w=m,S=M,M=A}c=d.neg(),f=m;var x=n.sqr().add(h.sqr());return c.sqr().add(f.sqr()).cmp(x)>=0&&(c=e,f=r),n.negative&&(n=n.neg(),h=h.neg()),c.negative&&(c=c.neg(),f=f.neg()),[{a:n,b:h},{a:c,b:f}]},l.prototype._endoSplit=function(t){var e=this.endo.basis,r=e[0],n=e[1],o=n.b.mul(t).divRound(this.n),h=r.b.neg().mul(t).divRound(this.n),c=o.mul(r.a),f=h.mul(n.a),l=o.mul(r.b),d=h.mul(n.b);return{k1:t.sub(c).sub(f),k2:l.add(d).neg()}},l.prototype.pointFromX=function(t,e){(t=new o(t,16)).red||(t=t.toRed(this.red));var r=t.redSqr().redMul(t).redIAdd(t.redMul(this.a)).redIAdd(this.b),n=r.redSqrt();if(0!==n.redSqr().redSub(r).cmp(this.zero))throw new Error("invalid point");var h=n.fromRed().isOdd();return(e&&!h||!e&&h)&&(n=n.redNeg()),this.point(t,n)},l.prototype.validate=function(t){if(t.inf)return!0;var e=t.x,r=t.y,n=this.a.redMul(e),o=e.redSqr().redMul(e).redIAdd(n).redIAdd(this.b);return 0===r.redSqr().redISub(o).cmpn(0)},l.prototype._endoWnafMulAdd=function(t,e,r){for(var n=this._endoWnafT1,o=this._endoWnafT2,i=0;i<t.length;i++){var h=this._endoSplit(e[i]),p=t[i],c=p._getBeta();h.k1.negative&&(h.k1.ineg(),p=p.neg(!0)),h.k2.negative&&(h.k2.ineg(),c=c.neg(!0)),n[2*i]=p,n[2*i+1]=c,o[2*i]=h.k1,o[2*i+1]=h.k2}for(var f=this._wnafMulAdd(1,n,o,2*i,r),l=0;l<2*i;l++)n[l]=null,o[l]=null;return f},h(d,c.BasePoint),l.prototype.point=function(t,e,r){return new d(this,t,e,r)},l.prototype.pointFromJSON=function(t,e){return d.fromJSON(this,t,e)},d.prototype._getBeta=function(){if(this.curve.endo){var pre=this.prec
vendor: 2,883 bytes, line 11
11omputed;if(pre&&pre.beta)return pre.beta;var t=this.curve.point(this.x.redMul(this.curve.endo.beta),this.y);if(pre){var e=this.curve,r=function(p){return e.point(p.x.redMul(e.endo.beta),p.y)};pre.beta=t,t.precomputed={beta:null,naf:pre.naf&&{wnd:pre.naf.wnd,points:pre.naf.points.map(r)},doubles:pre.doubles&&{step:pre.doubles.step,points:pre.doubles.points.map(r)}}}return t}},d.prototype.toJSON=function(){return this.precomputed?[this.x,this.y,this.precomputed&&{doubles:this.precomputed.doubles&&{step:this.precomputed.doubles.step,points:this.precomputed.doubles.points.slice(1)},naf:this.precomputed.naf&&{wnd:this.precomputed.naf.wnd,points:this.precomputed.naf.points.slice(1)}}]:[this.x,this.y]},d.fromJSON=function(t,e,r){"string"==typeof e&&(e=JSON.parse(e));var n=t.point(e[0],e[1],r);if(!e[2])return n;function o(e){return t.point(e[0],e[1],r)}var pre=e[2];return n.precomputed={beta:null,doubles:pre.doubles&&{step:pre.doubles.step,points:[n].concat(pre.doubles.points.map(o))},naf:pre.naf&&{wnd:pre.naf.wnd,points:[n].concat(pre.naf.points.map(o))}},n},d.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" y: "+this.y.fromRed().toString(16,2)+">"},d.prototype.isInfinity=function(){return this.inf},d.prototype.add=function(p){if(this.inf)return p;if(p.inf)return this;if(this.eq(p))return this.dbl();if(this.neg().eq(p))return this.curve.point(null,null);if(0===this.x.cmp(p.x))return this.curve.point(null,null);var t=this.y.redSub(p.y);0!==t.cmpn(0)&&(t=t.redMul(this.x.redSub(p.x).redInvm()));var e=t.redSqr().redISub(this.x).redISub(p.x),r=t.redMul(this.x.redSub(e)).redISub(this.y);return this.curve.point(e,r)},d.prototype.dbl=function(){if(this.inf)return this;var t=this.y.redAdd(this.y);if(0===t.cmpn(0))return this.curve.point(null,null);var a=this.curve.a,e=this.x.redSqr(),r=t.redInvm(),n=e.redAdd(e).redIAdd(e).redIAdd(a).redMul(r),o=n.redSqr().redISub(this.x.redAdd(this.x)),h=n.redMul(this.x.redSub(o)).redISub(this.y);return this.curve.point(o,h)},d.prototype.getX=function(){return this.x.fromRed()},d.prototype.getY=function(){return this.y.fromRed()},d.prototype.mul=function(t){return t=new o(t,16),this.isInfinity()?this:this._hasDoubles(t)?this.curve._fixedNafMul(this,t):this.curve.endo?this.curve._endoWnafMulAdd([this],[t]):this.curve._wnafMul(this,t)},d.prototype.mulAdd=function(t,e,r){var n=[this,e],o=[t,r];return this.curve.endo?this.curve._endoWnafMulAdd(n,o):this.curve._wnafMulAdd(1,n,o,2)},d.prototype.jmulAdd=function(t,e,r){var n=[this,e],o=[t,r];return this.curve.endo?this.curve._endoWnafMulAdd(n,o,!0):this.curve._wnafMulAdd(1,n,o,2,!0)},d.prototype.eq=function(p){return this===p||this.inf===p.inf&&(this.inf||0===this.x.cmp(p.x)&&0===this.y.cmp(p.y))},d.prototype.neg=function(t){if(this.inf)return this;var e=this.curve.point(this.x,this.y.redNeg());
vendor: 4,433 bytes, line 11
11if(t&&this.precomputed){var pre=this.precomputed,r=function(p){return p.neg()};e.precomputed={naf:pre.naf&&{wnd:pre.naf.wnd,points:pre.naf.points.map(r)},doubles:pre.doubles&&{step:pre.doubles.step,points:pre.doubles.points.map(r)}}}return e},d.prototype.toJ=function(){return this.inf?this.curve.jpoint(null,null,null):this.curve.jpoint(this.x,this.y,this.curve.one)},h(m,c.BasePoint),l.prototype.jpoint=function(t,e,r){return new m(this,t,e,r)},m.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var t=this.z.redInvm(),e=t.redSqr(),r=this.x.redMul(e),n=this.y.redMul(e).redMul(t);return this.curve.point(r,n)},m.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)},m.prototype.add=function(p){if(this.isInfinity())return p;if(p.isInfinity())return this;var t=p.z.redSqr(),e=this.z.redSqr(),r=this.x.redMul(t),n=p.x.redMul(e),o=this.y.redMul(t.redMul(p.z)),h=p.y.redMul(e.redMul(this.z)),c=r.redSub(n),f=o.redSub(h);if(0===c.cmpn(0))return 0!==f.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var h2=c.redSqr(),h3=h2.redMul(c),l=r.redMul(h2),d=f.redSqr().redIAdd(h3).redISub(l).redISub(l),m=f.redMul(l.redISub(d)).redISub(o.redMul(h3)),v=this.z.redMul(p.z).redMul(c);return this.curve.jpoint(d,m,v)},m.prototype.mixedAdd=function(p){if(this.isInfinity())return p.toJ();if(p.isInfinity())return this;var t=this.z.redSqr(),e=this.x,r=p.x.redMul(t),n=this.y,o=p.y.redMul(t).redMul(this.z),h=e.redSub(r),c=n.redSub(o);if(0===h.cmpn(0))return 0!==c.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var h2=h.redSqr(),h3=h2.redMul(h),f=e.redMul(h2),l=c.redSqr().redIAdd(h3).redISub(f).redISub(f),d=c.redMul(f.redISub(l)).redISub(n.redMul(h3)),m=this.z.redMul(h);return this.curve.jpoint(l,d,m)},m.prototype.dblp=function(t){if(0===t)return this;if(this.isInfinity())return this;if(!t)return this.dbl();if(this.curve.zeroA||this.curve.threeA){for(var e=this,i=0;i<t;i++)e=e.dbl();return e}var a=this.curve.a,r=this.curve.tinv,n=this.x,o=this.y,h=this.z,c=h.redSqr().redSqr(),f=o.redAdd(o);for(i=0;i<t;i++){var l=n.redSqr(),d=f.redSqr(),m=d.redSqr(),v=l.redAdd(l).redIAdd(l).redIAdd(a.redMul(c)),y=n.redMul(d),w=v.redSqr().redISub(y.redAdd(y)),M=y.redISub(w),_=v.redMul(M);_=_.redIAdd(_).redISub(m);var S=f.redMul(h);i+1<t&&(c=c.redMul(m)),n=w,h=S,f=_}return this.curve.jpoint(n,f.redMul(r),h)},m.prototype.dbl=function(){return this.isInfinity()?this:this.curve.zeroA?this._zeroDbl():this.curve.threeA?this._threeDbl():this._dbl()},m.prototype._zeroDbl=function(){var t,e,r;if(this.zOne){var n=this.x.redSqr(),o=this.y.redSqr(),h=o.redSqr(),s=this.x.redAdd(o).redSqr().redISub(n).redISub(h);s=s.redIAdd(s);var c=n.redAdd(n).redIAdd(n),f=c.redSqr().redISub(s).redISub(s),l=h.redIAdd(h);l=(l=l.redIAdd(l)).redIAdd(l),t=f,e=c.redMul(s.redISub(f)).redISub(l),r=this.y.redAdd(this.y)}else{var a=this.x.redSqr(),b=this.y.redSqr(),d=b.redSqr(),m=this.x.redAdd(b).redSqr().redISub(a).redISub(d);m=m.redIAdd(m);var v=a.redAdd(a).redIAdd(a),y=v.redSqr(),w=d.redIAdd(d);w=(w=w.redIAdd(w)).redIAdd(w),t=y.redISub(m).redISub(m),e=v.redMul(m.redISub(t)).redISub(w),r=(r=this.y.redMul(this.z)).redIAdd(r)}return this.curve.jpoint(t,e,r)},m.prototype._threeDbl=function(){var t,e,r;if(this.zOne){var n=this.x.redSqr(),o=this.y.redSqr(),h=o.redSqr(),s=this.x.redAdd(o).redSqr().redISub(n).redISub(h);s=s.redIAdd(s);var c=n.redAdd(n).redIAdd(n).redIAdd(this.curve.a),f=c.redSqr().redISub(s).redISub(s);t=f;var l=h.redIAdd(h);l=(l=l.redIAdd(l)).redIAdd(l),e=c.redMul(s.redISub(f)).redISub(l),r=this.y.redAdd(this.y)}else{var d=this.z.redSqr(),m=this.y.redSqr(),v=this.x.redMul(m),y=this.x.redSub(d).redMul(this.x.redAdd(d));y=y.redAdd(y).redIAdd(y);var w=v.redIAdd(v),M=(w=w.redIAdd(w)).redAdd(w);t=y.redSqr().redISub(M),r=this.y.redAdd(this.z).redSqr().redISub(m).redISub(d);var _=m.redSqr();_=(_=(_=_.redIAdd(_)).redIAdd(_)).redIAdd(_),e=y.redMul(w.redISub(t)).redISub(_)}return this.curve.jpoint(t,e,r)},m.prototype._dbl=function(){var a=this.curve.a,t=this.x,e=this.y,r=this.z,n=r.redSqr().redSqr(),o=t.redSqr(),h=e.redSqr(),c=o.redAdd(o).redIAdd(o).redIAdd(a.redMul(n)),f=t.redAdd(t),l=(f=f.redIAdd(f)).redMul(h),d=c.redSqr().redISub(l.redAdd(l)),m=l.redISub(d),v=h.redSqr();v=(v=(v=v.redIAdd(v)).redIAdd(v)).redIAdd(v);var y=c.redMul(m).redISub(v),w=e.redAdd(e).redMul(r);return this.curve.jpoint(d,y,w)},m.prototype.trpl=function(){if(!this.curve.zeroA)return this.dbl().add(this);
vendor: 5,211 bytes, line 11
11var t=this.x.redSqr(),e=this.y.redSqr(),r=this.z.redSqr(),n=e.redSqr(),o=t.redAdd(t).redIAdd(t),h=o.redSqr(),c=this.x.redAdd(e).redSqr().redISub(t).redISub(n),f=(c=(c=(c=c.redIAdd(c)).redAdd(c).redIAdd(c)).redISub(h)).redSqr(),l=n.redIAdd(n);l=(l=(l=l.redIAdd(l)).redIAdd(l)).redIAdd(l);var u=o.redIAdd(c).redSqr().redISub(h).redISub(f).redISub(l),d=e.redMul(u);d=(d=d.redIAdd(d)).redIAdd(d);var m=this.x.redMul(f).redISub(d);m=(m=m.redIAdd(m)).redIAdd(m);var v=this.y.redMul(u.redMul(l.redISub(u)).redISub(c.redMul(f)));v=(v=(v=v.redIAdd(v)).redIAdd(v)).redIAdd(v);var y=this.z.redAdd(c).redSqr().redISub(r).redISub(f);return this.curve.jpoint(m,v,y)},m.prototype.mul=function(t,e){return t=new o(t,e),this.curve._wnafMul(this,t)},m.prototype.eq=function(p){if("affine"===p.type)return this.eq(p.toJ());if(this===p)return!0;var t=this.z.redSqr(),e=p.z.redSqr();if(0!==this.x.redMul(e).redISub(p.x.redMul(t)).cmpn(0))return!1;var r=t.redMul(this.z),n=e.redMul(p.z);return 0===this.y.redMul(n).redISub(p.y.redMul(r)).cmpn(0)},m.prototype.eqXToP=function(t){var e=this.z.redSqr(),r=t.toRed(this.curve.red).redMul(e);if(0===this.x.cmp(r))return!0;for(var n=t.clone(),o=this.curve.redN.redMul(e);;){if(n.iadd(this.curve.n),n.cmp(this.curve.p)>=0)return!1;if(r.redIAdd(o),0===this.x.cmp(r))return!0}},m.prototype.inspect=function(){return this.isInfinity()?"<EC JPoint Infinity>":"<EC JPoint x: "+this.x.toString(16,2)+" y: "+this.y.toString(16,2)+" z: "+this.z.toString(16,2)+">"},m.prototype.isInfinity=function(){return 0===this.z.cmpn(0)}},function(t,e,r){"use strict";var n=r(46),o=r(6),h=r(126),c=r(41);function f(t){h.call(this,"mont",t),this.a=new n(t.a,16).toRed(this.red),this.b=new n(t.b,16).toRed(this.red),this.i4=new n(4).toRed(this.red).redInvm(),this.two=new n(2).toRed(this.red),this.a24=this.i4.redMul(this.a.redAdd(this.two))}function l(t,e,r){h.BasePoint.call(this,t,"projective"),null===e&&null===r?(this.x=this.curve.one,this.z=this.curve.zero):(this.x=new n(e,16),this.z=new n(r,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)))}o(f,h),t.exports=f,f.prototype.validate=function(t){var e=t.normalize().x,r=e.redSqr(),n=r.redMul(e).redAdd(r.redMul(this.a)).redAdd(e);return 0===n.redSqrt().redSqr().cmp(n)},o(l,h.BasePoint),f.prototype.decodePoint=function(t,e){return this.point(c.toArray(t,e),1)},f.prototype.point=function(t,e){return new l(this,t,e)},f.prototype.pointFromJSON=function(t){return l.fromJSON(this,t)},l.prototype.precompute=function(){},l.prototype._encode=function(){return this.getX().toArray("be",this.curve.p.byteLength())},l.fromJSON=function(t,e){return new l(t,e[0],e[1]||t.one)},l.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" z: "+this.z.fromRed().toString(16,2)+">"},l.prototype.isInfinity=function(){return 0===this.z.cmpn(0)},l.prototype.dbl=function(){var t=this.x.redAdd(this.z).redSqr(),e=this.x.redSub(this.z).redSqr(),r=t.redSub(e),n=t.redMul(e),o=r.redMul(e.redAdd(this.curve.a24.redMul(r)));return this.curve.point(n,o)},l.prototype.add=function(){throw new Error("Not supported on Montgomery curve")},l.prototype.diffAdd=function(p,t){var a=this.x.redAdd(this.z),b=this.x.redSub(this.z),e=p.x.redAdd(p.z),r=p.x.redSub(p.z).redMul(a),n=e.redMul(b),o=t.z.redMul(r.redAdd(n).redSqr()),h=t.x.redMul(r.redISub(n).redSqr());return this.curve.point(o,h)},l.prototype.mul=function(t){for(var e=t.clone(),a=this,b=this.curve.point(null,null),r=[];0!==e.cmpn(0);e.iushrn(1))r.push(e.andln(1));for(var i=r.length-1;i>=0;i--)0===r[i]?(a=a.diffAdd(b,this),b=b.dbl()):(b=a.diffAdd(b,this),a=a.dbl());return b},l.prototype.mulAdd=function(){throw new Error("Not supported on Montgomery curve")},l.prototype.jumlAdd=function(){throw new Error("Not supported on Montgomery curve")},l.prototype.eq=function(t){return 0===this.getX().cmp(t.getX())},l.prototype.normalize=function(){return this.x=this.x.redMul(this.z.redInvm()),this.z=this.curve.one,this},l.prototype.getX=function(){return this.normalize(),this.x.fromRed()}},function(t,e,r){"use strict";var n=r(41),o=r(46),h=r(6),c=r(126),f=n.assert;function l(t){this.twisted=1!=(0|t.a),this.mOneA=this.twisted&&-1==(0|t.a),this.extended=this.mOneA,c.call(this,"edwards",t),this.a=new o(t.a,16).umod(this.red.m),this.a=this.a.toRed(this.red),this.c=new o(t.c,16).toRed(this.red),this.c2=this.c.redSqr(),this.d=new o(t.d,16).toRed(this.red),this.dd=this.d.redAdd(this.d),f(!this.twisted||0===this.c.fromRed().cmpn(1)),this.oneC=1==(0|t.c)}function d(t,e,r,n,h){c.BasePoint.call(this,t,"projective"),null===e&&null===r&&null===n?(this.x=this.curve.zero,this.y=this.curve.one,this.z=this.curve.one,this.t=this.curve.zero,this.zOne=!0):(this.x=new o(e,16),this.y=new o(r,16),this.z=n?new o(n,16):this.curve.one,this.t=h&&new o(h,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.t&&!this.t.red&&(this.t=this.t.toRed(this.curve.red)),this.zOne=this.z===this.curve.one,this.curve.extended&&!this.t&&(this.t=this.x.redMul(this.y),this.zOne||(this.t=this.t.redMul(this.z.redInvm()))))}
vendor: 5,436 bytes, line 11
11h(l,c),t.exports=l,l.prototype._mulA=function(t){return this.mOneA?t.redNeg():this.a.redMul(t)},l.prototype._mulC=function(t){return this.oneC?t:this.c.redMul(t)},l.prototype.jpoint=function(t,e,r,n){return this.point(t,e,r,n)},l.prototype.pointFromX=function(t,e){(t=new o(t,16)).red||(t=t.toRed(this.red));var r=t.redSqr(),n=this.c2.redSub(this.a.redMul(r)),h=this.one.redSub(this.c2.redMul(this.d).redMul(r)),c=n.redMul(h.redInvm()),f=c.redSqrt();if(0!==f.redSqr().redSub(c).cmp(this.zero))throw new Error("invalid point");var l=f.fromRed().isOdd();return(e&&!l||!e&&l)&&(f=f.redNeg()),this.point(t,f)},l.prototype.pointFromY=function(t,e){(t=new o(t,16)).red||(t=t.toRed(this.red));var r=t.redSqr(),n=r.redSub(this.c2),h=r.redMul(this.d).redMul(this.c2).redSub(this.a),c=n.redMul(h.redInvm());if(0===c.cmp(this.zero)){if(e)throw new Error("invalid point");return this.point(this.zero,t)}var f=c.redSqrt();if(0!==f.redSqr().redSub(c).cmp(this.zero))throw new Error("invalid point");return f.fromRed().isOdd()!==e&&(f=f.redNeg()),this.point(f,t)},l.prototype.validate=function(t){if(t.isInfinity())return!0;t.normalize();var e=t.x.redSqr(),r=t.y.redSqr(),n=e.redMul(this.a).redAdd(r),o=this.c2.redMul(this.one.redAdd(this.d.redMul(e).redMul(r)));return 0===n.cmp(o)},h(d,c.BasePoint),l.prototype.pointFromJSON=function(t){return d.fromJSON(this,t)},l.prototype.point=function(t,e,r,n){return new d(this,t,e,r,n)},d.fromJSON=function(t,e){return new d(t,e[0],e[1],e[2])},d.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" y: "+this.y.fromRed().toString(16,2)+" z: "+this.z.fromRed().toString(16,2)+">"},d.prototype.isInfinity=function(){return 0===this.x.cmpn(0)&&(0===this.y.cmp(this.z)||this.zOne&&0===this.y.cmp(this.curve.c))},d.prototype._extDbl=function(){var a=this.x.redSqr(),b=this.y.redSqr(),t=this.z.redSqr();t=t.redIAdd(t);var e=this.curve._mulA(a),r=this.x.redAdd(this.y).redSqr().redISub(a).redISub(b),g=e.redAdd(b),n=g.redSub(t),o=e.redSub(b),h=r.redMul(n),c=g.redMul(o),f=r.redMul(o),l=n.redMul(g);return this.curve.point(h,c,l,f)},d.prototype._projDbl=function(){var t,e,r,b=this.x.redAdd(this.y).redSqr(),n=this.x.redSqr(),o=this.y.redSqr();if(this.curve.twisted){var h=(l=this.curve._mulA(n)).redAdd(o);if(this.zOne)t=b.redSub(n).redSub(o).redMul(h.redSub(this.curve.two)),e=h.redMul(l.redSub(o)),r=h.redSqr().redSub(h).redSub(h);else{var c=this.z.redSqr(),f=h.redSub(c).redISub(c);t=b.redSub(n).redISub(o).redMul(f),e=h.redMul(l.redSub(o)),r=h.redMul(f)}}else{var l=n.redAdd(o);c=this.curve._mulC(this.z).redSqr(),f=l.redSub(c).redSub(c);t=this.curve._mulC(b.redISub(l)).redMul(f),e=this.curve._mulC(l).redMul(n.redISub(o)),r=l.redMul(f)}return this.curve.point(t,e,r)},d.prototype.dbl=function(){return this.isInfinity()?this:this.curve.extended?this._extDbl():this._projDbl()},d.prototype._extAdd=function(p){var a=this.y.redSub(this.x).redMul(p.y.redSub(p.x)),b=this.y.redAdd(this.x).redMul(p.y.redAdd(p.x)),t=this.t.redMul(this.curve.dd).redMul(p.t),e=this.z.redMul(p.z.redAdd(p.z)),r=b.redSub(a),n=e.redSub(t),g=e.redAdd(t),o=b.redAdd(a),h=r.redMul(n),c=g.redMul(o),f=r.redMul(o),l=n.redMul(g);return this.curve.point(h,c,l,f)},d.prototype._projAdd=function(p){var t,e,a=this.z.redMul(p.z),b=a.redSqr(),r=this.x.redMul(p.x),n=this.y.redMul(p.y),o=this.curve.d.redMul(r).redMul(n),h=b.redSub(o),g=b.redAdd(o),c=this.x.redAdd(this.y).redMul(p.x.redAdd(p.y)).redISub(r).redISub(n),f=a.redMul(h).redMul(c);return this.curve.twisted?(t=a.redMul(g).redMul(n.redSub(this.curve._mulA(r))),e=h.redMul(g)):(t=a.redMul(g).redMul(n.redSub(r)),e=this.curve._mulC(h).redMul(g)),this.curve.point(f,t,e)},d.prototype.add=function(p){return this.isInfinity()?p:p.isInfinity()?this:this.curve.extended?this._extAdd(p):this._projAdd(p)},d.prototype.mul=function(t){return this._hasDoubles(t)?this.curve._fixedNafMul(this,t):this.curve._wnafMul(this,t)},d.prototype.mulAdd=function(t,p,e){return this.curve._wnafMulAdd(1,[this,p],[t,e],2,!1)},d.prototype.jmulAdd=function(t,p,e){return this.curve._wnafMulAdd(1,[this,p],[t,e],2,!0)},d.prototype.normalize=function(){if(this.zOne)return this;var t=this.z.redInvm();return this.x=this.x.redMul(t),this.y=this.y.redMul(t),this.t&&(this.t=this.t.redMul(t)),this.z=this.curve.one,this.zOne=!0,this},d.prototype.neg=function(){return this.curve.point(this.x.redNeg(),this.y,this.z,this.t&&this.t.redNeg())},d.prototype.getX=function(){return this.normalize(),this.x.fromRed()},d.prototype.getY=function(){return this.normalize(),this.y.fromRed()},d.prototype.eq=function(t){return this===t||0===this.getX().cmp(t.getX())&&0===this.getY().cmp(t.getY())},d.prototype.eqXToP=function(t){var e=t.toRed(this.curve.red).redMul(this.z);if(0===this.x.cmp(e))return!0;for(var r=t.clone(),n=this.curve.redN.redMul(this.z);;){if(r.iadd(this.curve.n),r.cmp(this.curve.p)>=0)return!1;if(e.redIAdd(n),0===this.x.cmp(e))return!0}},d.prototype.toP=d.prototype.normalize,d.prototype.mixedAdd=d.prototype.add},function(t,e,r){"use strict";e.sha1=r(459),e.sha224=r(460),e.sha256=r(268),e.sha384=r(461),e.sha512=r(269)},function(t,e,r){"use strict";var n=r(42),o=r(96),h=r(267),c=n.rotl32,f=n.sum32,l=n.sum32_5,d=h.ft_1,m=o.BlockHash,v=[1518500249,1859775393,2400959708,3395469782];function y(){if(!(this instanceof y))return new y;m.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80)}
vendor: 4,245 bytes, line 11
11n.inherits(y,m),t.exports=y,y.blockSize=512,y.outSize=160,y.hmacStrength=80,y.padLength=64,y.prototype._update=function(t,e){for(var r=this.W,i=0;i<16;i++)r[i]=t[e+i];for(;i<r.length;i++)r[i]=c(r[i-3]^r[i-8]^r[i-14]^r[i-16],1);var a=this.h[0],b=this.h[1],n=this.h[2],o=this.h[3],h=this.h[4];for(i=0;i<r.length;i++){var s=~~(i/20),m=l(c(a,5),d(s,b,n,o),h,r[i],v[s]);h=o,o=n,n=c(b,30),b=a,a=m}this.h[0]=f(this.h[0],a),this.h[1]=f(this.h[1],b),this.h[2]=f(this.h[2],n),this.h[3]=f(this.h[3],o),this.h[4]=f(this.h[4],h)},y.prototype._digest=function(t){return"hex"===t?n.toHex32(this.h,"big"):n.split32(this.h,"big")}},function(t,e,r){"use strict";var n=r(42),o=r(268);function h(){if(!(this instanceof h))return new h;o.call(this),this.h=[3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428]}n.inherits(h,o),t.exports=h,h.blockSize=512,h.outSize=224,h.hmacStrength=192,h.padLength=64,h.prototype._digest=function(t){return"hex"===t?n.toHex32(this.h.slice(0,7),"big"):n.split32(this.h.slice(0,7),"big")}},function(t,e,r){"use strict";var n=r(42),o=r(269);function h(){if(!(this instanceof h))return new h;o.call(this),this.h=[3418070365,3238371032,1654270250,914150663,2438529370,812702999,355462360,4144912697,1731405415,4290775857,2394180231,1750603025,3675008525,1694076839,1203062813,3204075428]}n.inherits(h,o),t.exports=h,h.blockSize=1024,h.outSize=384,h.hmacStrength=192,h.padLength=128,h.prototype._digest=function(t){return"hex"===t?n.toHex32(this.h.slice(0,12),"big"):n.split32(this.h.slice(0,12),"big")}},function(t,e,r){"use strict";var n=r(42),o=r(96),h=n.rotl32,c=n.sum32,f=n.sum32_3,l=n.sum32_4,d=o.BlockHash;function m(){if(!(this instanceof m))return new m;d.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.endian="little"}function v(t,e,r,n){return t<=15?e^r^n:t<=31?e&r|~e&n:t<=47?(e|~r)^n:t<=63?e&n|r&~n:e^(r|~n)}function y(t){return t<=15?0:t<=31?1518500249:t<=47?1859775393:t<=63?2400959708:2840853838}function w(t){return t<=15?1352829926:t<=31?1548603684:t<=47?1836072691:t<=63?2053994217:0}n.inherits(m,d),e.ripemd160=m,m.blockSize=512,m.outSize=160,m.hmacStrength=192,m.padLength=64,m.prototype._update=function(t,e){for(var r=this.h[0],n=this.h[1],o=this.h[2],d=this.h[3],m=this.h[4],A=r,x=n,k=o,E=d,C=m,R=0;R<80;R++){var I=c(h(l(r,v(R,n,o,d),t[M[R]+e],y(R)),s[R]),m);r=m,m=d,d=h(o,10),o=n,n=I,I=c(h(l(A,v(79-R,x,k,E),t[_[R]+e],w(R)),S[R]),C),A=C,C=E,E=h(k,10),k=x,x=I}I=f(this.h[1],o,E),this.h[1]=f(this.h[2],d,C),this.h[2]=f(this.h[3],m,A),this.h[3]=f(this.h[4],r,x),this.h[4]=f(this.h[0],n,k),this.h[0]=I},m.prototype._digest=function(t){return"hex"===t?n.toHex32(this.h,"little"):n.split32(this.h,"little")};var M=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],_=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],s=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],S=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]},function(t,e,r){"use strict";var n=r(42),o=r(40);function h(t,e,r){if(!(this instanceof h))return new h(t,e,r);this.Hash=t,this.blockSize=t.blockSize/8,this.outSize=t.outSize/8,this.inner=null,this.outer=null,this._init(n.toArray(e,r))}t.exports=h,h.prototype._init=function(t){t.length>this.blockSize&&(t=(new this.Hash).update(t).digest()),o(t.length<=this.blockSize);for(var i=t.length;i<this.blockSize;i++)t.push(0);for(i=0;i<t.length;i++)t[i]^=54;for(this.inner=(new this.Hash).update(t),i=0;i<t.length;i++)t[i]^=106;this.outer=(new this.Hash).update(t)},h.prototype.update=function(t,e){return this.inner.update(t,e),this},h.prototype.digest=function(t){return this.outer.update(this.inner.digest()),this.outer.digest(t)}},function(t,e){t
vendor: 26,137 bytes, line 11
11.exports={doubles:{step:4,points:[["e60fce93b59e9ec53011aabc21c23e97b2a31369b87a5ae9c44ee89e2a6dec0a","f7e3507399e595929db99f34f57937101296891e44d23f0be1f32cce69616821"],["8282263212c609d9ea2a6e3e172de238d8c39cabd5ac1ca10646e23fd5f51508","11f8a8098557dfe45e8256e830b60ace62d613ac2f7b17bed31b6eaff6e26caf"],["175e159f728b865a72f99cc6c6fc846de0b93833fd2222ed73fce5b551e5b739","d3506e0d9e3c79eba4ef97a51ff71f5eacb5955add24345c6efa6ffee9fed695"],["363d90d447b00c9c99ceac05b6262ee053441c7e55552ffe526bad8f83ff4640","4e273adfc732221953b445397f3363145b9a89008199ecb62003c7f3bee9de9"],["8b4b5f165df3c2be8c6244b5b745638843e4a781a15bcd1b69f79a55dffdf80c","4aad0a6f68d308b4b3fbd7813ab0da04f9e336546162ee56b3eff0c65fd4fd36"],["723cbaa6e5db996d6bf771c00bd548c7b700dbffa6c0e77bcb6115925232fcda","96e867b5595cc498a921137488824d6e2660a0653779494801dc069d9eb39f5f"],["eebfa4d493bebf98ba5feec812c2d3b50947961237a919839a533eca0e7dd7fa","5d9a8ca3970ef0f269ee7edaf178089d9ae4cdc3a711f712ddfd4fdae1de8999"],["100f44da696e71672791d0a09b7bde459f1215a29b3c03bfefd7835b39a48db0","cdd9e13192a00b772ec8f3300c090666b7ff4a18ff5195ac0fbd5cd62bc65a09"],["e1031be262c7ed1b1dc9227a4a04c017a77f8d4464f3b3852c8acde6e534fd2d","9d7061928940405e6bb6a4176597535af292dd419e1ced79a44f18f29456a00d"],["feea6cae46d55b530ac2839f143bd7ec5cf8b266a41d6af52d5e688d9094696d","e57c6b6c97dce1bab06e4e12bf3ecd5c981c8957cc41442d3155debf18090088"],["da67a91d91049cdcb367be4be6ffca3cfeed657d808583de33fa978bc1ec6cb1","9bacaa35481642bc41f463f7ec9780e5dec7adc508f740a17e9ea8e27a68be1d"],["53904faa0b334cdda6e000935ef22151ec08d0f7bb11069f57545ccc1a37b7c0","5bc087d0bc80106d88c9eccac20d3c1c13999981e14434699dcb096b022771c8"],["8e7bcd0bd35983a7719cca7764ca906779b53a043a9b8bcaeff959f43ad86047","10b7770b2a3da4b3940310420ca9514579e88e2e47fd68b3ea10047e8460372a"],["385eed34c1cdff21e6d0818689b81bde71a7f4f18397e6690a841e1599c43862","283bebc3e8ea23f56701de19e9ebf4576b304eec2086dc8cc0458fe5542e5453"],["6f9d9b803ecf191637c73a4413dfa180fddf84a5947fbc9c606ed86c3fac3a7","7c80c68e603059ba69b8e2a30e45c4d47ea4dd2f5c281002d86890603a842160"],["3322d401243c4e2582a2147c104d6ecbf774d163db0f5e5313b7e0e742d0e6bd","56e70797e9664ef5bfb019bc4ddaf9b72805f63ea2873af624f3a2e96c28b2a0"],["85672c7d2de0b7da2bd1770d89665868741b3f9af7643397721d74d28134ab83","7c481b9b5b43b2eb6374049bfa62c2e5e77f17fcc5298f44c8e3094f790313a6"],["948bf809b1988a46b06c9f1919413b10f9226c60f668832ffd959af60c82a0a","53a562856dcb6646dc6b74c5d1c3418c6d4dff08c97cd2bed4cb7f88d8c8e589"],["6260ce7f461801c34f067ce0f02873a8f1b0e44dfc69752accecd819f38fd8e8","bc2da82b6fa5b571a7f09049776a1ef7ecd292238051c198c1a84e95b2b4ae17"],["e5037de0afc1d8d43d8348414bbf4103043ec8f575bfdc432953cc8d2037fa2d","4571534baa94d3b5f9f98d09fb990bddbd5f5b03ec481f10e0e5dc841d755bda"],["e06372b0f4a207adf5ea905e8f1771b4e7e8dbd1c6a6c5b725866a0ae4fce725","7a908974bce18cfe12a27bb2ad5a488cd7484a7787104870b27034f94eee31dd"],["213c7a715cd5d45358d0bbf9dc0ce02204b10bdde2a3f58540ad6908d0559754","4b6dad0b5ae462507013ad06245ba190bb4850f5f36a7eeddff2c27534b458f2"],["4e7c272a7af4b34e8dbb9352a5419a87e2838c70adc62cddf0cc3a3b08fbd53c","17749c766c9d0b18e16fd09f6def681b530b9614bff7dd33e0b3941817dcaae6"],["fea74e3dbe778b1b10f238ad61686aa5c76e3db2be43057632427e2840fb27b6","6e0568db9b0b13297cf674deccb6af93126b596b973f7b77701d3db7f23cb96f"],["76e64113f677cf0e10a2570d599968d31544e179b760432952c02a4417bdde39","c90ddf8dee4e95cf577066d70681f0d35e2a33d2b56d2032b4b1752d1901ac01"],["c738c56b03b2abe1e8281baa743f8f9a8f7cc643df26cbee3ab150242bcbb891","893fb578951ad2537f718f2eacbfbbbb82314eef7880cfe917e735d9699a84c3"],["d895626548b65b81e264c7637c972877d1d72e5f3a925014372e9f6588f6c14b","febfaa38f2bc7eae728ec60818c340eb03428d632bb067e179363ed75d7d991f"],["b8da94032a957518eb0f6433571e8761ceffc73693e84edd49150a564f676e03","2804dfa44805a1e4d7c99cc9762808b092cc584d95ff3b511488e4e74efdf6e7"],["e80fea14441fb33a7d8adab9475d7fab2019effb5156a792f1a11778e3c0df5d","eed1de7f638e00771e89768ca3ca94472d155e80af322ea9fcb4291b6ac9ec78"],["a301697bdfcd704313ba48e51d567543f2a182031efd6915ddc07bbcc4e16070","7370f91cfb67e4f5081809fa25d40f9b1735dbf7c0a11a130c0d1a041e177ea1"],["90ad85b389d6b936463f9d0512678de208cc330b11307fffab7ac63e3fb04ed4","e507a3620a38261affdcbd9427222b839aefabe1582894d991d4d48cb6ef150"],["8f68b9d2f63b5f339239c1ad981f162ee88c5678723ea3351b7b444c9ec4c0da","662a9f2dba063986de1d90c2b6be215dbbea2cfe95510bfdf23cbf79501fff82"],["e4f3fb0176af85d65ff99ff9198c36091f48e86503681e3e6686fd5053231e11","1e63633ad0ef4f1c1661a6d0ea02b7286cc7e74ec951d1c9822c38576feb73bc"],["8c00fa9b18ebf331eb961537a45a4266c7034f2f0d4e1d0716fb6eae20eae29e","efa47267fea521a1a9dc343a3736c974c2fadafa81e36c54e7d2a4c66702414b"],["e7a26ce69dd4829f3e10cec0a9e98ed3143d084f308b92c0997fddfc60cb3e41","2a758e300fa7984b471b006a1aafbb18d0a6b2c0420e83e20e8a9421cf2cfd51"],["b6459e0ee3662ec8d23540c223bcbdc571cbcb967d79424f3cf29eb3de6b80ef","67c876d06f3e06de1dadf16e5661db3c4b3ae6d48e35b2ff30bf0b61a71ba45"],["d68a80c8280bb840793234aa118f06231d6f1fc67e73c5a5deda0f5b496943e8","db8ba9fff4b586d00c4b1f9177b0e28b5b0e7b8f7845295a294c84266b133120"],["324aed7df65c804252dc0270907a30b09612aeb973449cea4095980fc28d3d5d","648a365774b61f2ff130c0c35aec1f4f19213b0c7e332843967224af96ab7c84"],["4df9c14919cde61f6d51dfdbe5fee5dceec4143ba8d1ca888e8bd373fd054c96","35ec51092d8728050974c23a1d85d4b5d506cdc288490192ebac06cad10d5d"],["9c3919a84a474870faed8a9c1cc66021523489054d7f0308cbfc99c8ac1f98cd","ddb84f0f4a4ddd57584f044bf260e641905326f76c64c8e6be7e5e03d4fc599d"],["6057170b1dd12fdf8de05f281d8e06bb91e1493a8b91d4cc5a21382120a959e5","9a1af0b26a6a4807add9a2daf71df262465152bc3ee24c65e899be932385a2a8"],["a576df8e23a08411421439a4518da31880cef0fba7d4df12b1a6973eecb94266","40a6bf20e76640b2c92b97afe58cd82c432e10a7f514d9f3ee8be11ae1b28ec8"],["7778a78c28dec3e30a05fe9629de8c38bb30d1f5cf9a3a208f763889be58ad71","34626d9ab5a5b22ff7098e12f2ff580087b38411ff24ac563b513fc1fd9f43ac"],["928955ee637a84463729fd30e7afd2ed5f96274e5ad7e5cb09eda9c06d903ac","c25621003d3f42a827b78a13093a95eeac3d26efa8a8d83fc5180e935bcd091f"],["85d0fef3ec6db109399064f3a0e3b2855645b4a907ad354527aae75163d82751","1f03648413a38c0be29d496e582cf5663e8751e96877331582c237a24eb1f962"],["ff2b0dce97eece97c1c9b6041798b85dfdfb6d8882da20308f5404824526087e","493d13fef524ba188af4c4dc54d07936c7b7ed6fb90e2ceb2c951e01f0c29907"],["827fbbe4b1e880ea9ed2b2e6301b212b57f1ee148cd6dd28780e5e2cf856e241","c60f9c923c727b0b71bef2c67d1d12687ff7a63186903166d605b68baec293ec"],["eaa649f21f51bdbae7be4ae34ce6e5217a58fdce7f47f9aa7f3b58fa2120e2b3","be3279ed5bbbb03ac69a80f89879aa5a01a6b965f13f7e59d47a5305ba5ad93d"],["e4a42d43c5cf169d9391df6decf42ee541b6d8f0c9a137401e23632dda34d24f","4d9f92e716d1c73526fc99ccfb8ad34ce886eedfa8d8e4f13a7f7131deba9414"],["1ec80fef360cbdd954160fadab352b6b92b53576a88fea4947173b9d4300bf19","aeefe93756b5340d2f3a4958a7abbf5e0146e77f6295a07b671cdc1cc107cefd"],["146a778c04670c2f91b00af4680dfa8bce3490717d58ba889ddb5928366642be","b318e0ec3354028add669827f9d4b2870aaa971d2f7e5ed1d0b297483d83efd0"],["fa50c0f61d22e5f07e3acebb1aa07b128d0012209a28b9776d76a8793180eef9","6b84c6922397eba9b72cd2872281a68a5e683293a57a213b38cd8d7d3f4f2811"],["da1d61d0ca721a11b1a5bf6b7d88e8421a288ab5d5bba5220e53d32b5f067ec2","8157f55a7c99306c79c0766161c91e2966a73899d279b48a655fba0f1ad836f1"],["a8e282ff0c9706907215ff98e8fd416615311de0446f1e062a73b0610d064e13","7f97355b8db81c09abfb7f3c5b2515888b679a3e50dd6bd6cef7c73111f4cc0c"],["174a53b9c9a285872d39e56e6913cab15d59b1fa512508c022f382de8319497c","ccc9dc37abfc9c1657b4155f2c47f9e6646b3a1d8cb9854383da13ac079afa73"],["959396981943785c3d3e57edf5018cdbe039e730e4918b3d884fdff09475b7ba","2e7e552888c331dd8ba0386a4b9cd6849c653f64c8709385e9b8abf87524f2fd"],["d2a63a50ae401e56d645a1153b109a8fcca0a43d561fba2dbb51340c9d82b151","e82d86fb6443fcb7565aee58b2948220a70f750af484ca52d4142174dcf89405"],["64587e2335471eb890ee7896d7cfdc866bacbdbd3839317b3436f9b45617e073","d99fcdd5bf6902e2ae96dd6447c299a185b90a39133aeab358299e5e9faf6589"],["8481bde0e4e4d885b3a546d3e549de042f0aa6cea250e7fd358d6c86dd45e458","38ee7b8cba5404dd84a25bf39cecb2ca900a79c42b262e556d64b1b59779057e"],["13464a57a78102aa62b6979ae817f4637ffcfed3c4b1ce30bcd6303f6caf666b","69be159004614580ef7e433453ccb0ca48f300a81d0942e13f495a907f6ecc27"],["bc4a9df5b713fe2e9aef430bcc1dc97a0cd9ccede2f28588cada3a0d2d83f366","d3a81ca6e785c06383937adf4b798caa6e8a9fbfa547b16d758d666581f33c1"],["8c28a97bf8298bc0d23d8c749452a32e694b65e30a9472a3954ab30fe5324caa","40a30463a3305193378fedf31f7cc0eb7ae784f0451cb9459e71dc73cbef9482"],["8ea9666139527a8c1dd94ce4f071fd23c8b350c5a4bb33748c4ba111faccae0","620efabbc8ee2782e24e7c0cfb95c5d735b783be9cf0f8e955af34a30e62b945"],["dd3625faef5ba06074669716bbd3788d89bdde815959968092f76cc4eb9a9787","7a188fa3520e30d461da2501045731ca941461982883395937f68d00c644a573"],["f710d79d9eb962297e4f6232b40e8f7feb2bc63814614d692c12de752408221e","ea98e67232d3b3295d3b535532115ccac8612c721851617526ae47a9c77bfc82"]]},naf:{wnd:7,points:[["f9308a019258c31049344f85f89d5229b531c845836f99b08601f113bce036f9","388f7b0f632de8140fe337e62a37f3566500a99934c2231b6cb9fd7584b8e672"],["2f8bde4d1a07209355b4a7250a5c5128e88b84bddc619ab7cba8d569b240efe4","d8ac222636e5e3d6d4dba9dda6c9c426f788271bab0d6840dca87d3aa6ac62d6"],["5cbdf0646e5db4eaa398f365f2ea7a0e3d419b7e0330e39ce92bddedcac4f9bc","6aebca40ba255960a3178d6d861a54dba813d0b813fde7b5a5082628087264da"],["acd484e2f0c7f65309ad178a9f559abde09796974c57e714c35f110dfc27ccbe","cc338921b0a7d9fd64380971763b61e9add888a4375f8e0f05cc262ac64f9c37"],["774ae7f858a9411e5ef4246b70c65aac5649980be5c17891bbec17895da008cb","d984a032eb6b5e190243dd56d7b7b365372db1e2dff9d6a8301d74c9c953c61b"],["f28773c2d975288bc7d1d205c3748651b075fbc6610e58cddeeddf8f19405aa8","ab0902e8d880a89758212eb65cdaf473a1a06da521fa91f29b5cb52db03ed81"],["d7924d4f7d43ea965a465ae3095ff41131e5946f3c85f79e44adbcf8e27e080e","581e2872a86c72a683842ec228cc6defea40af2bd896d3a5c504dc9ff6a26b58"],["defdea4cdb677750a420fee807eacf21eb9898ae79b9768766e4faa04a2d4a34","4211ab0694635168e997b0ead2a93daeced1f4a04a95c0f6cfb199f69e56eb77"],["2b4ea0a797a443d293ef5cff444f4979f06acfebd7e86d277475656138385b6c","85e89bc037945d93b343083b5a1c86131a01f60c50269763b570c854e5c09b7a"],["352bbf4a4cdd12564f93fa332ce333301d9ad40271f8107181340aef25be59d5","321eb4075348f534d59c18259dda3e1f4a1b3b2e71b1039c67bd3d8bcf81998c"],["2fa2104d6b38d11b0230010559879124e42ab8dfeff5ff29dc9cdadd4ecacc3f","2de1068295dd865b64569335bd5dd80181d70ecfc882648423ba76b532b7d67"],["9248279b09b4d68dab21a9b066edda83263c3d84e09572e269ca0cd7f5453714","73016f7bf234aade5d1aa71bdea2b1ff3fc0de2a887912ffe54a32ce97cb3402"],["daed4f2be3a8bf278e70132fb0beb7522f570e144bf615c07e996d443dee8729","a69dce4a7d6c98e8d4a1aca87ef8d7003f83c230f3afa726ab40e52290be1c55"],["c44d12c7065d812e8acf28d7cbb19f9011ecd9e9fdf281b0e6a3b5e87d22e7db","2119a460ce326cdc76c45926c982fdac0e106e861edf61c5a039063f0e0e6482"],["6a245bf6dc698504c89a20cfded60853152b695336c28063b61c65cbd269e6b4","e022cf42c2bd4a708b3f5126f16a24ad8b33ba48d0423b6efd5e6348100d8a82"],["1697ffa6fd9de627c077e3d2fe541084ce13300b0bec1146f95ae57f0d0bd6a5","b9c398f186806f5d27561506e4557433a2cf15009e498ae7adee9d63d01b2396"],["605bdb019981718b986d0f07e834cb0d9deb8360ffb7f61df982345ef27a7479","2972d2de4f8d20681a78d93ec96fe23c26bfae84fb14db43b01e1e9056b8c49"],["62d14dab4150bf497402fdc45a215e10dcb01c354959b10cfe31c7e9d87ff33d","80fc06bd8cc5b01098088a1950eed0db01aa132967ab472235f5642483b25eaf"],["80c60ad0040f27dade5b4b06c408e56b2c50e9f56b9b8b425e555c2f86308b6f","1c38303f1cc5c30f26e66bad7fe72f70a65eed4cbe7024eb1aa01f56430bd57a"],["7a9375ad6167ad54aa74c6348cc54d344cc5dc9487d847049d5eabb0fa03c8fb","d0e3fa9eca8726909559e0d79269046bdc59ea10c70ce2b02d499ec224dc7f7"],["d528ecd9b696b54c907a9ed045447a79bb408ec39b68df504bb51f459bc3ffc9","eecf41253136e5f99966f21881fd656ebc4345405c520dbc063465b521409933"],["49370a4b5f43412ea25f514e8ecdad05266115e4a7ecb1387231808f8b45963","758f3f41afd6ed428b3081b0512fd62a54c3f3afbb5b6764b653052a12949c9a"],["77f230936ee88cbbd73df930d64702ef881d811e0e1498e2f1c13eb1fc345d74","958ef42a7886b6400a08266e9ba1b37896c95330d97077cbbe8eb3c7671c60d6"],["f2dac991cc4ce4b9ea44887e5c7c0bce58c80074ab9d4dbaeb28531b7739f530","e0dedc9b3b2f8dad4da1f32dec2531df9eb5fbeb0598e4fd1a117dba703a3c37"],["463b3d9f662621fb1b4be8fbbe2520125a216cdfc9dae3debcba4850c690d45b","5ed430d78c296c3543114306dd8622d7c622e27c970a1de31cb377b01af7307e"],["f16f804244e46e2a09232d4aff3b59976b98fac14328a2d1a32496b49998f247","cedabd9b82203f7e13d206fcdf4e33d92a6c53c26e5cce26d6579962c4e31df6"],["caf754272dc84563b0352b7a14311af55d245315ace27c65369e15f7151d41d1","cb474660ef35f5f2a41b643fa5e460575f4fa9b7962232a5c32f908318a04476"],["2600ca4b282cb986f85d0f1709979d8b44a09c07cb86d7c124497bc86f082120","4119b88753c15bd6a693b03fcddbb45d5ac6be74ab5f0ef44b0be9475a7e4b40"],["7635ca72d7e8432c338ec53cd12220bc01c48685e24f7dc8c602a7746998e435","91b649609489d613d1d5e590f78e6d74ecfc061d57048bad9e76f302c5b9c61"],["754e3239f325570cdbbf4a87deee8a66b7f2b33479d468fbc1a50743bf56cc18","673fb86e5bda30fb3cd0ed304ea49a023ee33d0197a695d0c5d98093c536683"],["e3e6bd1071a1e96aff57859c82d570f0330800661d1c952f9fe2694691d9b9e8","59c9e0bba394e76f40c0aa58379a3cb6a5a2283993e90c4167002af4920e37f5"],["186b483d056a033826ae73d88f732985c4ccb1f32ba35f4b4cc47fdcf04aa6eb","3b952d32c67cf77e2e17446e204180ab21fb8090895138b4a4a797f86e80888b"],["df9d70a6b9876ce544c98561f4be4f725442e6d2b737d9c91a8321724ce0963f","55eb2dafd84d6ccd5f862b785dc39d4ab157222720ef9da217b8c45cf2ba2417"],["5edd5cc23c51e87a497ca815d5dce0f8ab52554f849ed8995de64c5f34ce7143","efae9c8dbc14130661e8cec030c89ad0c13c66c0d17a2905cdc706ab7399a868"],["290798c2b6476830da12fe02287e9e777aa3fba1c355b17a722d362f84614fba","e38da76dcd440621988d00bcf79af25d5b29c094db2a23146d003afd41943e7a"],["af3c423a95d9f5b3054754efa150ac39cd29552fe360257362dfdecef4053b45","f98a3fd831eb2b749a93b0e6f35cfb40c8cd5aa667a15581bc2feded498fd9c6"],["766dbb24d134e745cccaa28c99bf274906bb66b26dcf98df8d2fed50d884249a","744b1152eacbe5e38dcc887980da38b897584a65fa06cedd2c924f97cbac5996"],["59dbf46f8c94759ba21277c33784f41645f7b44f6c596a58ce92e666191abe3e","c534ad44175fbc300f4ea6ce648309a042ce739a7919798cd85e216c4a307f6e"],["f13ada95103c4537305e691e74e9a4a8dd647e711a95e73cb62dc6018cfd87b8","e13817b44ee14de663bf4bc808341f326949e21a6a75c2570778419bdaf5733d"],["7754b4fa0e8aced06d4167a2c59cca4cda1869c06ebadfb6488550015a88522c","30e93e864e669d82224b967c3020b8fa8d1e4e350b6cbcc537a48b57841163a2"],["948dcadf5990e048aa3874d46abef9d701858f95de8041d2a6828c99e2262519","e491a42537f6e597d5d28a3224b1bc25df9154efbd2ef1d2cbba2cae5347d57e"],["7962414450c76c1689c7b48f8202ec37fb224cf5ac0bfa1570328a8a3d7c77ab","100b610ec4ffb4760d5c1fc133ef6f6b12507a051f04ac5760afa5b29db83437"],["3514087834964b54b15b160644d915485a16977225b8847bb0dd085137ec47ca","ef0afbb2056205448e1652c48e8127fc6039e77c15c2378b7e7d15a0de293311"],["d3cc30ad6b483e4bc79ce2c9dd8bc54993e947eb8df787b442943d3f7b527eaf","8b378a22d827278d89c5e9be8f9508ae3c2ad46290358630afb34db04eede0a4"],["1624d84780732860ce1c78fcbfefe08b2b29823db913f6493975ba0ff4847610","68651cf9b6da903e0914448c6cd9d4ca896878f5282be4c8cc06e2a404078575"],["733ce80da955a8a26902c95633e62a985192474b5af207da6df7b4fd5fc61cd4","f5435a2bd2badf7d485a4d8b8db9fcce3e1ef8e0201e4578c54673bc1dc5ea1d"],["15d9441254945064cf1a1c33bbd3b49f8966c5092171e699ef258dfab81c045c","d56eb30b69463e7234f5137b73b84177434800bacebfc685fc37bbe9efe4070d"],["a1d0fcf2ec9de675b612136e5ce70d271c21417c9d2b8aaaac138599d0717940","edd77f50bcb5a3cab2e90737309667f2641462a54070f3d519212d39c197a629"],["e22fbe15c0af8ccc5780c0735f84dbe9a790badee8245c06c7ca37331cb36980","a855babad5cd60c88b430a69f53a1a7a38289154964799be43d06d77d31da06"],["311091dd9860e8e20ee13473c1155f5f69635e394704eaa74009452246cfa9b3","66db656f87d1f04fffd1f04788c06830871ec5a64feee685bd80f0b1286d8374"],["34c1fd04d301be89b31c0442d3e6ac24883928b45a9340781867d4232ec2dbdf","9414685e97b1b5954bd46f730174136d57f1ceeb487443dc5321857ba73abee"],["f219ea5d6b54701c1c14de5b557eb42a8d13f3abbcd08affcc2a5e6b049b8d63","4cb95957e83d40b0f73af4544cccf6b1f4b08d3c07b27fb8d8c2962a400766d1"],["d7b8740f74a8fbaab1f683db8f45de26543a5490bca627087236912469a0b448","fa77968128d9c92ee1010f337ad4717eff15db5ed3c049b3411e0315eaa4593b"],["32d31c222f8f6f0ef86f7c98d3a3335ead5bcd32abdd94289fe4d3091aa824bf","5f3032f5892156e39ccd3d7915b9e1da2e6dac9e6f26e961118d14b8462e1661"],["7461f371914ab32671045a155d9831ea8793d77cd59592c4340f86cbc18347b5","8ec0ba238b96bec0cbdddcae0aa442542eee1ff50c986ea6b39847b3cc092ff6"],["ee079adb1df1860074356a25aa38206a6d716b2c3e67453d287698bad7b2b2d6","8dc2412aafe3be5c4c5f37e0ecc5f9f6a446989af04c4e25ebaac479ec1c8c1e"],["16ec93e447ec83f0467b18302ee620f7e65de331874c9dc72bfd8616ba9da6b5","5e4631150e62fb40d0e8c2a7ca5804a39d58186a50e497139626778e25b0674d"],["eaa5f980c245f6f038978290afa70b6bd8855897f98b6aa485b96065d537bd99","f65f5d3e292c2e0819a528391c994624d784869d7e6ea67fb18041024edc07dc"],["78c9407544ac132692ee1910a02439958ae04877151342ea96c4b6b35a49f51","f3e0319169eb9b85d5404795539a5e68fa1fbd583c064d2462b675f194a3ddb4"],["494f4be219a1a77016dcd838431aea0001cdc8ae7a6fc688726578d9702857a5","42242a969283a5f339ba7f075e36ba2af925ce30d767ed6e55f4b031880d562c"],["a598a8030da6d86c6bc7f2f5144ea549d28211ea58faa70ebf4c1e665c1fe9b5","204b5d6f84822c307e4b4a7140737aec23fc63b65b35f86a10026dbd2d864e6b"],["c41916365abb2b5d09192f5f2dbeafec208f020f12570a184dbadc3e58595997","4f14351d0087efa49d245b328984989d5caf9450f34bfc0ed16e96b58fa9913"],["841d6063a586fa475a724604da03bc5b92a2e0d2e0a36acfe4c73a5514742881","73867f59c0659e81904f9a1c7543698e62562d6744c169ce7a36de01a8d6154"],["5e95bb399a6971d376026947f89bde2f282b33810928be4ded112ac4d70e20d5","39f23f366809085beebfc71181313775a99c9aed7d8ba38b161384c746012865"],["36e4641a53948fd476c39f8a99fd974e5ec07564b5315d8bf99471bca0ef2f66","d2424b1b1abe4eb8164227b085c9aa9456ea13493fd563e06fd51cf5694c78fc"],["336581ea7bfbbb290c191a2f507a41cf5643842170e914faeab27c2c579f726","ead12168595fe1be99252129b6e56b3391f7ab1410cd1e0ef3dcdcabd2fda224"],["8ab89816dadfd6b6a1f2634fcf00ec8403781025ed6890c4849742706bd43ede","6fdcef09f2f6d0a044e654aef624136f503d459c3e89845858a47a9129cdd24e"],["1e33f1a746c9c5778133344d9299fcaa20b0938e8acff2544bb40284b8c5fb94","60660257dd11b3aa9c8ed618d24edff2306d320f1d03010e33a7d2057f3b3b6"],["85b7c1dcb3cec1b7ee7f30ded79dd20a0ed1f4cc18cbcfcfa410361fd8f08f31","3d98a9cdd026dd43f39048f25a8847f4fcafad1895d7a633c6fed3c35e999511"],["29df9fbd8d9e46509275f4b125d6d45d7fbe9a3b878a7af872a2800661ac5f51","b4c4fe99c775a606e2d8862179139ffda61dc861c019e55cd2876eb2a27d84b"],["a0b1cae06b0a847a3fea6e671aaf8adfdfe58ca2f768105c8082b2e449fce252","ae434102edde0958ec4b19d917a6a28e6b72da1834aff0e650f049503a296cf2"],["4e8ceafb9b3e9a136dc7ff67e840295b499dfb3b2133e4ba113f2e4c0e121e5","cf2174118c8b6d7a4b48f6d534ce5c79422c086a63460502b827ce62a326683c"],["d24a44e047e19b6f5afb81c7ca2f69080a5076689a010919f42725c2b789a33b","6fb8d5591b466f8fc63db50f1c0f1c69013f996887b8244d2cdec417afea8fa3"],["ea01606a7a6c9cdd249fdfcfacb99584001edd28abbab77b5104e98e8e3b35d4","322af4908c7312b0cfbfe369f7a7b3cdb7d4494bc2823700cfd652188a3ea98d"],["af8addbf2b661c8a6c6328655eb96651252007d8c5ea31be4ad196de8ce2131f","6749e67c029b85f52a034eafd096836b2520818680e26ac8f3dfbcdb71749700"],["e3ae1974566ca06cc516d47e0fb165a674a3dabcfca15e722f0e3450f45889","2aeabe7e4531510116217f07bf4d07300de97e4874f81f533420a72eeb0bd6a4"],["591ee355313d99721cf6993ffed1e3e301993ff3ed258802075ea8ced397e246","b0ea558a113c30bea60fc4775460c7901ff0b053d25ca2bdeee98f1a4be5d196"],["11396d55fda54c49f19aa97318d8da61fa8584e47b084945077cf03255b52984","998c74a8cd45ac01289d5833a7beb4744ff536b01b257be4c5767bea93ea57a4"],["3c5d2a1ba39c5a1790000738c9e0c40b8dcdfd5468754b6405540157e017aa7a","b2284279995a34e2f9d4de7396fc18b80f9b8b9fdd270f6661f79ca4c81bd257"],["cc8704b8a60a0defa3a99a7299f2e9c3fbc395afb04ac078425ef8a1793cc030","bdd46039feed17881d1e0862db347f8cf395b74fc4bcdc4e940b74e3ac1f1b13"],["c533e4f7ea8555aacd9777ac5cad29b97dd4defccc53ee7ea204119b2889b197","6f0a256bc5efdf429a2fb6242f1a43a2d9b925bb4a4b3a26bb8e0f45eb596096"],["c14f8f2ccb27d6f109f6d08d03cc96a69ba8c34eec07bbcf566d48e33da6593","c359d6923bb398f7fd4473e16fe1c28475b740dd098075e6c0e8649113dc3a38"],["a6cbc3046bc6a450bac24789fa17115a4c9739ed75f8f21ce441f72e0b90e6ef","21ae7f4680e889bb130619e2c0f95a360ceb573c70603139862afd617fa9b9f"],["347d6d9a02c48927ebfb86c1359b1caf130a3c0267d11ce6344b39f99d43cc38","60ea7f61a353524d1c987f6ecec92f086d565ab687870cb12689ff1e31c74448"],["da6545d2181db8d983f7dcb375ef5866d47c67b1bf31c8cf855ef7437b72656a","49b96715ab6878a79e78f07ce5680c5d6673051b4935bd897fea824b77dc208a"],["c40747cc9d012cb1a13b8148309c6de7ec25d6945d657146b9d5994b8feb1111","5ca560753be2a12fc6de6caf2cb489565db936156b9514e1bb5e83037e0fa2d4"],["4e42c8ec82c99798ccf3a610be870e78338c7f713348bd34c8203ef4037f3502","7571d74ee5e0fb92a7a8b33a07783341a5492144cc54bcc40a94473693606437"],["3775ab7089bc6af823aba2e1af70b236d251cadb0c86743287522a1b3b0dedea","be52d107bcfa09d8bcb9736a828cfa7fac8db17bf7a76a2c42ad961409018cf7"],["cee31cbf7e34ec379d94fb814d3d775ad954595d1314ba8846959e3e82f74e26","8fd64a14c06b589c26b947ae2bcf6bfa0149ef0be14ed4d80f448a01c43b1c6d"],["b4f9eaea09b6917619f6ea6a4eb5464efddb58fd45b1ebefcdc1a01d08b47986","39e5c9925b5a54b07433a4f18c61726f8bb131c012ca542eb24a8ac07200682a"],["d4263dfc3d2df923a0179a48966d30ce84e2515afc3dccc1b77907792ebcc60e","62dfaf07a0f78feb30e30d6295853ce189e127760ad6cf7fae164e122a208d54"],["48457524820fa65a4f8d35eb6930857c0032acc0a4a2de422233eeda897612c4","25a748ab367979d98733c38a1fa1c2e7dc6cc07db2d60a9ae7a76aaa49bd0f77"],["dfeeef1881101f2cb11644f3a2afdfc2045e19919152923f367a1767c11cceda","ecfb7056cf1de042f9420bab396793c0c390bde74b4bbdff16a83ae09a9a7517"],["6d7ef6b17543f8373c573f44e1f389835d89bcbc6062ced36c82df83b8fae859","cd450ec335438986dfefa10c57fea9bcc521a0959b2d80bbf74b190dca712d10"],["e75605d59102a5a2684500d3b991f2e3f3c88b93225547035af25af66e04541f","f5c54754a8f71ee540b9b48728473e314f729ac5308b06938360990e2bfad125"],["eb98660f4c4dfaa06a2be453d5020bc99a0c2e60abe388457dd43fefb1ed620c","6cb9a8876d9cb8520609af3add26cd20a0a7cd8a9411131ce85f44100099223e"],["13e87b027d8514d35939f2e6892b19922154596941888336dc3563e3b8dba942","fef5a3c68059a6dec5d624114bf1e91aac2b9da568d6abeb2570d55646b8adf1"],["ee163026e9fd6fe017c38f06a5be6fc125424b371ce2708e7bf4491691e5764a","1acb250f255dd61c43d94ccc670d0f58f49ae3fa15b96623e5430da0ad6c62b2"],["b268f5ef9ad51e4d78de3a750c2dc89b1e626d43505867999932e5db33af3d80","5f310d4b3c99b9ebb19f77d41c1dee018cf0d34fd4191614003e945a1216e423"],["ff07f3118a9df035e9fad85eb6c7bfe42b02f01ca99ceea3bf7ffdba93c4750d","438136d603e858a3a5c440c38eccbaddc1d2942114e2eddd4740d098ced1f0d8"],["8d8b9855c7c052a34146fd20ffb658bea4b9f69e0d825ebec16e8c3ce2b526a1","cdb559eedc2d79f926baf44fb84ea4d44bcf50fee51d7ceb30e2e7f463036758"],["52db0b5384dfbf05bfa9d472d7ae26dfe4b851ceca91b1eba54263180da32b63","c3b997d050ee5d423ebaf66a6db9f57b3180c902875679de924b69d84a7b375"],["e62f9490d3d51da6395efd24e80919cc7d0f29c3f3fa48c6fff543becbd43352","6d89ad7ba4876b0b22c2ca280c682862f342c8591f1daf5170e07bfd9ccafa7d"],["7f30ea2476b399b4957509c88f77d0191afa2ff5cb7b14fd6d8e7d65aaab1193","ca5ef7d4b231c94c3b15389a5f6311e9daff7bb67b103e9880ef4bff637acaec"],["5098ff1e1d9f14fb46a210fada6c903fef0fb7b4a1dd1d9ac60a0361800b7a00","9731141d81fc8f8084d37c6e7542006b3ee1b40d60dfe5362a5b132fd17ddc0"],["32b78c7de9ee512a72895be6b9cbefa6e2f3c4ccce445c96b9f2c81e2778ad58","ee1849f513df71e32efc3896ee28260c73bb80547ae2275ba497237794c8753c"],["e2cb74fddc8e9fbcd076eef2a7c72b0ce37d50f08269dfc074b581550547a4f7","d3aa2ed71c9dd2247a62df062736eb0baddea9e36122d2be8641abcb005cc4a4"],["8438447566d4d7bedadc299496ab357426009a35f235cb141be0d99cd10ae3a8","c4e1020916980a4da5d01ac5e6ad330734ef0d7906631c4f2390426b2edd791f"],["4162d488b89402039b584c6fc6c308870587d9c46f660b878ab65c82c711d67e","67163e903236289f776f22c25fb8a3afc1732f2b84b4e95dbda47ae5a0852649"],["3fad3fa84caf0f34f0f89bfd2dcf54fc175d767aec3e50684f3ba4a4bf5f683d","cd1bc7cb6cc407bb2f0ca647c718a730cf71872e7d0d2a53fa20efcdfe61826"],["674f2600a3007a00568c1a7ce05d0816c1fb84bf1370798f1c69532faeb1a86b","299d21f9413f33b3edf43b257004580b70db57da0b182259e09eecc69e0d38a5"],["d32f4da54ade74abb81b815ad1fb3b263d82d6c692714bcff87d29bd5ee9f08f","f9429e738b8e53b968e99016c059707782e14f4535359d582fc416910b3eea87"],["30e4e670435385556e593657135845d36fbb6931f72b08cb1ed954f1e3ce3ff6","462f9bce619898638499350113bbc9b10a878d35da70740dc695a559eb88db7b"],["be2062003c51cc3004682904330e4dee7f3dcd10b01e580bf1971b04d4cad297","62188bc49d61e5428573d48a74e1c655b1c61090905682a0d5558ed72dccb9bc"],["93144423ace3451ed29e0fb9ac2af211cb6e84a601df5993c419859fff5df04a","7c10dfb164c3425f5c71a3f9d7992038f1065224f72bb9d1d902a6d13037b47c"],["b015f8044f5fcbdcf21ca26d6c34fb8197829205c7b7d2a7cb66418c157b112c","ab8c1e086d04e813744a655b2df8d5f83b3cdc6faa3088c1d3aea1454e3a1d5f"],["d5e9e1da649d97d89e4868117a465a3a4f8a18de57a140d36b3f2af341a21b52","4cb04437f391ed73111a13cc1d4dd0db1693465c2240480d8955e8592f27447a"],["d3ae41047dd7ca065dbf8ed77b992439983005cd72e16d6f996a5316d36966bb","bd1aeb21ad22ebb22a10f0303417c6d964f8cdd7df0aca614b10dc14d125ac46"],["463e2763d885f958fc66cdd22800f0a487197d0a82e377b49f80af87c897b065","bfefacdb0e5d0fd7df3a311a94de062b26b80c61fbc97508b79992671ef7ca7f"],["7985fdfd127c0567c6f53ec1bb63ec3158e597c40bfe747c83cddfc910641917","603c12daf3d9862ef2b25fe1de289aed24ed291e0ec6708703a5bd567f32ed03"],["74a1ad6b5f76e39db2dd249410eac7f99e74c59cb83d2d0ed5ff1543da7703e9","cc6157ef18c9c63cd6193d83631bbea0093e0968942e8c33d5737fd790e0db08"],["30682a50703375f602d416664ba19b7fc9bab42c72747463a71d0896b22f6da3","553e04f6b018b4fa6c8f39e7f311d3176290d0e0f19ca73f17714d9977a22ff8"],["9e2158f0d7c0d5f26c3791efefa79597654e7a2b2464f52b1ee6c1347769ef57","712fcdd1b9053f09003a3481fa7762e9ffd7c8ef35a38509e2fbf2629008373"],["176e26989a43c9cfeba4029c202538c28172e566e3c4fce7322857f3be327d66","ed8cc9d04b29eb877d270b4878dc43c19aefd31f4eee09ee7b47834c1fa4b1c3"],["75d46efea3771e6e68abb89a13ad747ecf1892393dfc4f1b7004788c50374da8","9852390a99507679fd0b86fd2b39a868d7efc22151346e1a3ca4726586a6bed8"],["809a20c67d64900ffb698c4c825f6d5f2310fb0451c869345b7319f645605721","9e994980d9917e22b76b061927fa04143d096ccc54963e6a5ebfa5f3f8e286c1"],["1b38903a43f7f114ed4500b4eac7083fdefece1cf29c63528d563446f972c180","4036edc931a60ae889353f77fd53de4a2708b26b6f5da72ad3394119daf408f9"]]}}},
vendor: 4,195 bytes, line 11
11function(t,e,r){"use strict";var n=r(46),o=r(466),h=r(41),c=r(171),f=r(166),l=h.assert,d=r(467),m=r(468);function v(t){if(!(this instanceof v))return new v(t);"string"==typeof t&&(l(c.hasOwnProperty(t),"Unknown curve "+t),t=c[t]),t instanceof c.PresetCurve&&(t={curve:t}),this.curve=t.curve.curve,this.n=this.curve.n,this.nh=this.n.ushrn(1),this.g=this.curve.g,this.g=t.curve.g,this.g.precompute(t.curve.n.bitLength()+1),this.hash=t.hash||t.curve.hash}t.exports=v,v.prototype.keyPair=function(t){return new d(this,t)},v.prototype.keyFromPrivate=function(t,e){return d.fromPrivate(this,t,e)},v.prototype.keyFromPublic=function(t,e){return d.fromPublic(this,t,e)},v.prototype.genKeyPair=function(t){t||(t={});for(var e=new o({hash:this.hash,pers:t.pers,persEnc:t.persEnc||"utf8",entropy:t.entropy||f(this.hash.hmacStrength),entropyEnc:t.entropy&&t.entropyEnc||"utf8",nonce:this.n.toArray()}),r=this.n.byteLength(),h=this.n.sub(new n(2));;){var c=new n(e.generate(r));if(!(c.cmp(h)>0))return c.iaddn(1),this.keyFromPrivate(c)}},v.prototype._truncateToN=function(t,e){var r=8*t.byteLength()-this.n.bitLength();return r>0&&(t=t.ushrn(r)),!e&&t.cmp(this.n)>=0?t.sub(this.n):t},v.prototype.sign=function(t,e,r,h){"object"==typeof r&&(h=r,r=null),h||(h={}),e=this.keyFromPrivate(e,r),t=this._truncateToN(new n(t,16));for(var c=this.n.byteLength(),f=e.getPrivate().toArray("be",c),l=t.toArray("be",c),d=new o({hash:this.hash,entropy:f,nonce:l,pers:h.pers,persEnc:h.persEnc||"utf8"}),v=this.n.sub(new n(1)),y=0;;y++){var w=h.k?h.k(y):new n(d.generate(this.n.byteLength()));if(!((w=this._truncateToN(w,!0)).cmpn(1)<=0||w.cmp(v)>=0)){var M=this.g.mul(w);if(!M.isInfinity()){var _=M.getX(),S=_.umod(this.n);if(0!==S.cmpn(0)){var s=w.invm(this.n).mul(S.mul(e.getPrivate()).iadd(t));if(0!==(s=s.umod(this.n)).cmpn(0)){var A=(M.getY().isOdd()?1:0)|(0!==_.cmp(S)?2:0);return h.canonical&&s.cmp(this.nh)>0&&(s=this.n.sub(s),A^=1),new m({r:S,s:s,recoveryParam:A})}}}}}},v.prototype.verify=function(t,e,r,o){t=this._truncateToN(new n(t,16)),r=this.keyFromPublic(r,o);var h=(e=new m(e,"hex")).r,s=e.s;if(h.cmpn(1)<0||h.cmp(this.n)>=0)return!1;if(s.cmpn(1)<0||s.cmp(this.n)>=0)return!1;var p,c=s.invm(this.n),f=c.mul(t).umod(this.n),l=c.mul(h).umod(this.n);return this.curve._maxwellTrick?!(p=this.g.jmulAdd(f,r.getPublic(),l)).isInfinity()&&p.eqXToP(h):!(p=this.g.mulAdd(f,r.getPublic(),l)).isInfinity()&&0===p.getX().umod(this.n).cmp(h)},v.prototype.recoverPubKey=function(t,e,r,o){l((3&r)===r,"The recovery param is more than two bits"),e=new m(e,o);var h=this.n,c=new n(t),f=e.r,s=e.s,d=1&r,v=r>>1;if(f.cmp(this.curve.p.umod(this.curve.n))>=0&&v)throw new Error("Unable to find sencond key candinate");f=v?this.curve.pointFromX(f.add(this.curve.n),d):this.curve.pointFromX(f,d);var y=e.r.invm(h),w=h.sub(c).mul(y).umod(h),M=s.mul(y).umod(h);return this.g.mulAdd(w,f,M)},v.prototype.getKeyRecoveryParam=function(t,e,r,n){if(null!==(e=new m(e,n)).recoveryParam)return e.recoveryParam;for(var i=0;i<4;i++){var o;try{o=this.recoverPubKey(t,e,i)}catch(t){continue}if(o.eq(r))return i}throw new Error("Unable to find valid recovery factor")}},function(t,e,r){"use strict";var n=r(172),o=r(265),h=r(40);function c(t){if(!(this instanceof c))return new c(t);this.hash=t.hash,this.predResist=!!t.predResist,this.outLen=this.hash.outSize,this.minEntropy=t.minEntropy||this.hash.hmacStrength,this._reseed=null,this.reseedInterval=null,this.K=null,this.V=null;var e=o.toArray(t.entropy,t.entropyEnc||"hex"),r=o.toArray(t.nonce,t.nonceEnc||"hex"),n=o.toArray(t.pers,t.persEnc||"hex");h(e.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(e,r,n)}t.exports=c,c.prototype._init=function(t,e,r){var n=t.concat(e).concat(r);this.K=new Array(this.outLen/8),this.V=new Array(this.outLen/8);for(var i=0;i<this.V.length;i++)this.K[i]=0,this.V[i]=1;this._update(n),this._reseed=1,this.reseedInterval=281474976710656},c.prototype._hmac=function(){return new n.hmac(this.hash,this.K)},c.prototype._update=function(t){var e=this._hmac().update(this.V).update([0]);t&&(e=e.update(t)),this.K=e.digest(),this.V=this._hmac().update(this.V).digest(),t&&(this.K=this._hmac().update(this.V).update([
vendor: 11,003 bytes, line 11
111]).update(t).digest(),this.V=this._hmac().update(this.V).digest())},c.prototype.reseed=function(t,e,r,n){"string"!=typeof e&&(n=r,r=e,e=null),t=o.toArray(t,e),r=o.toArray(r,n),h(t.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(t.concat(r||[])),this._reseed=1},c.prototype.generate=function(t,e,r,n){if(this._reseed>this.reseedInterval)throw new Error("Reseed is required");"string"!=typeof e&&(n=r,r=e,e=null),r&&(r=o.toArray(r,n||"hex"),this._update(r));for(var h=[];h.length<t;)this.V=this._hmac().update(this.V).digest(),h=h.concat(this.V);var c=h.slice(0,t);return this._update(r),this._reseed++,o.encode(c,e)}},function(t,e,r){"use strict";var n=r(46),o=r(41).assert;function h(t,e){this.ec=t,this.priv=null,this.pub=null,e.priv&&this._importPrivate(e.priv,e.privEnc),e.pub&&this._importPublic(e.pub,e.pubEnc)}t.exports=h,h.fromPublic=function(t,e,r){return e instanceof h?e:new h(t,{pub:e,pubEnc:r})},h.fromPrivate=function(t,e,r){return e instanceof h?e:new h(t,{priv:e,privEnc:r})},h.prototype.validate=function(){var t=this.getPublic();return t.isInfinity()?{result:!1,reason:"Invalid public key"}:t.validate()?t.mul(this.ec.curve.n).isInfinity()?{result:!0,reason:null}:{result:!1,reason:"Public key * N != O"}:{result:!1,reason:"Public key is not a point"}},h.prototype.getPublic=function(t,e){return"string"==typeof t&&(e=t,t=null),this.pub||(this.pub=this.ec.g.mul(this.priv)),e?this.pub.encode(e,t):this.pub},h.prototype.getPrivate=function(t){return"hex"===t?this.priv.toString(16,2):this.priv},h.prototype._importPrivate=function(t,e){this.priv=new n(t,e||16),this.priv=this.priv.umod(this.ec.curve.n)},h.prototype._importPublic=function(t,e){if(t.x||t.y)return"mont"===this.ec.curve.type?o(t.x,"Need x coordinate"):"short"!==this.ec.curve.type&&"edwards"!==this.ec.curve.type||o(t.x&&t.y,"Need both x and y coordinate"),void(this.pub=this.ec.curve.point(t.x,t.y));this.pub=this.ec.curve.decodePoint(t,e)},h.prototype.derive=function(t){return t.mul(this.priv).getX()},h.prototype.sign=function(t,e,r){return this.ec.sign(t,this,e,r)},h.prototype.verify=function(t,e){return this.ec.verify(t,e,this)},h.prototype.inspect=function(){return"<Key priv: "+(this.priv&&this.priv.toString(16,2))+" pub: "+(this.pub&&this.pub.inspect())+" >"}},function(t,e,r){"use strict";var n=r(46),o=r(41),h=o.assert;function c(t,e){if(t instanceof c)return t;this._importDER(t,e)||(h(t.r&&t.s,"Signature without r or s"),this.r=new n(t.r,16),this.s=new n(t.s,16),void 0===t.recoveryParam?this.recoveryParam=null:this.recoveryParam=t.recoveryParam)}function f(){this.place=0}function l(t,p){var e=t[p.place++];if(!(128&e))return e;var r=15&e;if(0===r||r>4)return!1;for(var n=0,i=0,o=p.place;i<r;i++,o++)n<<=8,n|=t[o],n>>>=0;return!(n<=127)&&(p.place=o,n)}function d(t){for(var i=0,e=t.length-1;!t[i]&&!(128&t[i+1])&&i<e;)i++;return 0===i?t:t.slice(i)}function m(t,e){if(e<128)t.push(e);else{var r=1+(Math.log(e)/Math.LN2>>>3);for(t.push(128|r);--r;)t.push(e>>>(r<<3)&255);t.push(e)}}t.exports=c,c.prototype._importDER=function(data,t){data=o.toArray(data,t);var p=new f;if(48!==data[p.place++])return!1;var e=l(data,p);if(!1===e)return!1;if(e+p.place!==data.length)return!1;if(2!==data[p.place++])return!1;var r=l(data,p);if(!1===r)return!1;var h=data.slice(p.place,r+p.place);if(p.place+=r,2!==data[p.place++])return!1;var c=l(data,p);if(!1===c)return!1;if(data.length!==c+p.place)return!1;var s=data.slice(p.place,c+p.place);if(0===h[0]){if(!(128&h[1]))return!1;h=h.slice(1)}if(0===s[0]){if(!(128&s[1]))return!1;s=s.slice(1)}return this.r=new n(h),this.s=new n(s),this.recoveryParam=null,!0},c.prototype.toDER=function(t){var e=this.r.toArray(),s=this.s.toArray();for(128&e[0]&&(e=[0].concat(e)),128&s[0]&&(s=[0].concat(s)),e=d(e),s=d(s);!(s[0]||128&s[1]);)s=s.slice(1);var r=[2];m(r,e.length),(r=r.concat(e)).push(2),m(r,s.length);var n=r.concat(s),h=[48];return m(h,n.length),h=h.concat(n),o.encode(h,t)}},function(t,e,r){"use strict";var n=r(172),o=r(171),h=r(41),c=h.assert,f=h.parseBytes,l=r(470),d=r(471);function m(t){if(c("ed25519"===t,"only tested with ed25519 so far"),!(this instanceof m))return new m(t);t=o[t].curve;this.curve=t,this.g=t.g,this.g.precompute(t.n.bitLength()+1),this.pointClass=t.point().constructor,this.encodingLength=Math.ceil(t.n.bitLength()/8),this.hash=n.sha512}t.exports=m,m.prototype.sign=function(t,e){t=f(t);var r=this.keyFromSecret(e),n=this.hashInt(r.messagePrefix(),t),o=this.g.mul(n),h=this.encodePoint(o),c=this.hashInt(h,r.pubBytes(),t).mul(r.priv()),l=n.add(c).umod(this.curve.n);return this.makeSignature({R:o,S:l,Rencoded:h})},m.prototype.verify=function(t,e,r){t=f(t),e=this.makeSignature(e);var n=this.keyFromPublic(r),o=this.hashInt(e.Rencoded(),n.pubBytes(),t),h=this.g.mul(e.S());return e.R().add(n.pub().mul(o)).eq(h)},m.prototype.hashInt=function(){for(var t=this.hash(),i=0;i<arguments.length;i++)t.update(arguments[i]);return h.intFromLE(t.digest()).umod(this.curve.n)},m.prototype.keyFromPublic=function(t){return l.fromPublic(this,t)},m.prototype.keyFromSecret=function(t){return l.fromSecret(this,t)},m.prototype.makeSignature=function(t){return t instanceof d?t:new d(this,t)},m.prototype.encodePoint=function(t){var e=t.getY().toArray("le",this.encodingLength);return e[this.encodingLength-1]|=t.getX().isOdd()?128:0,e},m.prototype.decodePoint=function(t){var e=(t=h.parseBytes(t)).length-1,r=t.slice(0,e).concat(-129&t[e]),n=0!=(128&t[e]),o=h.intFromLE(r);return this.curve.pointFromY(o,n)},m.prototype.encodeInt=function(t){return t.toArray("le",this.encodingLength)},m.prototype.decodeInt=function(t){return h.intFromLE(t)},m.prototype.isPoint=function(t){return t instanceof this.pointClass}},function(t,e,r){"use strict";var n=r(41),o=n.assert,h=n.parseBytes,c=n.cachedProperty;function f(t,e){this.eddsa=t,this._secret=h(e.secret),t.isPoint(e.pub)?this._pub=e.pub:this._pubBytes=h(e.pub)}f.fromPublic=function(t,e){return e instanceof f?e:new f(t,{pub:e})},f.fromSecret=function(t,e){return e instanceof f?e:new f(t,{secret:e})},f.prototype.secret=function(){return this._secret},c(f,"pubBytes",(function(){return this.eddsa.encodePoint(this.pub())})),c(f,"pub",(function(){return this._pubBytes?this.eddsa.decodePoint(this._pubBytes):this.eddsa.g.mul(this.priv())})),c(f,"privBytes",(function(){var t=this.eddsa,e=this.hash(),r=t.encodingLength-1,a=e.slice(0,t.encodingLength);return a[0]&=248,a[r]&=127,a[r]|=64,a})),c(f,"priv",(function(){return this.eddsa.decodeInt(this.privBytes())})),c(f,"hash",(function(){return this.eddsa.hash().update(this.secret()).digest()})),c(f,"messagePrefix",(function(){return this.hash().slice(this.eddsa.encodingLength)})),f.prototype.sign=function(t){return o(this._secret,"KeyPair can only verify"),this.eddsa.sign(t,this)},f.prototype.verify=function(t,e){return this.eddsa.verify(t,e,this)},f.prototype.getSecret=function(t){return o(this._secret,"KeyPair is public only"),n.encode(this.secret(),t)},f.prototype.getPublic=function(t){return n.encode(this.pubBytes(),t)},t.exports=f},function(t,e,r){"use strict";var n=r(46),o=r(41),h=o.assert,c=o.cachedProperty,f=o.parseBytes;function l(t,e){this.eddsa=t,"object"!=typeof e&&(e=f(e)),Array.isArray(e)&&(e={R:e.slice(0,t.encodingLength),S:e.slice(t.encodingLength)}),h(e.R&&e.S,"Signature without R or S"),t.isPoint(e.R)&&(this._R=e.R),e.S instanceof n&&(this._S=e.S),this._Rencoded=Array.isArray(e.R)?e.R:e.Rencoded,this._Sencoded=Array.isArray(e.S)?e.S:e.Sencoded}c(l,"S",(function(){return this.eddsa.decodeInt(this.Sencoded())})),c(l,"R",(function(){return this.eddsa.decodePoint(this.Rencoded())})),c(l,"Rencoded",(function(){return this.eddsa.encodePoint(this.R())})),c(l,"Sencoded",(function(){return this.eddsa.encodeInt(this.S())})),l.prototype.toBytes=function(){return this.Rencoded().concat(this.Sencoded())},l.prototype.toHex=function(){return o.encode(this.toBytes(),"hex").toUpperCase()},t.exports=l},function(t,e,r){"use strict";var n=r(270);e.certificate=r(479);var o=n.define("RSAPrivateKey",(function(){this.seq().obj(this.key("version").int(),this.key("modulus").int(),this.key("publicExponent").int(),this.key("privateExponent").int(),this.key("prime1").int(),this.key("prime2").int(),this.key("exponent1").int(),this.key("exponent2").int(),this.key("coefficient").int())}));e.RSAPrivateKey=o;var h=n.define("RSAPublicKey",(function(){this.seq().obj(this.key("modulus").int(),this.key("publicExponent").int())}));e.RSAPublicKey=h;var c=n.define("SubjectPublicKeyInfo",(function(){this.seq().obj(this.key("algorithm").use(f),this.key("subjectPublicKey").bitstr())}));e.PublicKey=c;var f=n.define("AlgorithmIdentifier",(function(){this.seq().obj(this.key("algorithm").objid(),this.key("none").null_().optional(),this.key("curve").objid().optional(),this.key("params").seq().obj(this.key("p").int(),this.key("q").int(),this.key("g").int()).optional())})),l=n.define("PrivateKeyInfo",(function(){this.seq().obj(this.key("version").int(),this.key("algorithm").use(f),this.key("subjectPrivateKey").octstr())}));e.PrivateKey=l;var d=n.define("EncryptedPrivateKeyInfo",(function(){this.seq().obj(this.key("algorithm").seq().obj(this.key("id").objid(),this.key("decrypt").seq().obj(this.key("kde").seq().obj(this.key("id").objid(),this.key("kdeparams").seq().obj(this.key("salt").octstr(),this.key("iters").int())),this.key("cipher").seq().obj(this.key("algo").objid(),this.key("iv").octstr()))),this.key("subjectPrivateKey").octstr())}));e.EncryptedPrivateKey=d;var m=n.define("DSAPrivateKey",(function(){this.seq().obj(this.key("version").int(),this.key("p").int(),this.key("q").int(),this.key("g").int(),this.key("pub_key").int(),this.key("priv_key").int())}));e.DSAPrivateKey=m,e.DSAparam=n.define("DSAparam",(function(){this.int()}));var v=n.define("ECPrivateKey",(function(){this.seq().obj(this.key("version").int(),this.key("privateKey").octstr(),this.key("parameters").optional().explicit(0).use(y),this.key("publicKey").optional().explicit(1).bitstr())}));e.ECPrivateKey=v;var y=n.define("ECParameters",(function(){this.choice({namedCurve:this.objid()})}));e.signature=n.define("signature",(function(){this.seq().obj(this.key("r").int(),this.key("s").int())}))},,function(t,e,r){"use strict";const n=r(272),o=r(274),h=r(6);function c(t,body){this.name=t,this.body=body,this.decoders={},this.encoders={}}e.define=function(t,body){return new c(t,body)},c.prototype._createNamed=function(t){const e=this.name;function r(t){this._initNamed(t,e)}return h(r,t),r.prototype._initNamed=function(e,r){t.call(this,e,r)},new r(this)},c.prototype._getDecoder=function(t){return t=t||"der",this.decoders.hasOwnProperty(t)||(this.decoders[t]=this._createNamed(o[t])),this.decoders[t]},c.prototype.decode=function(data,t,e){return this._getDecoder(t).decode(data,e)},c.prototype._getEncoder=function(t){return t=t||"der",this.encoders.hasOwnProperty(t)||(this.encoders[t]=this._createNamed(n[t])),this.encoders[t]},c.prototype.encode=function(data,t,e){return this._getEncoder(t).encode(d
vendor: 7,603 bytes, line 11
11ata,e)}},function(t,e,r){"use strict";const n=r(6),o=r(273);function h(t){o.call(this,t),this.enc="pem"}n(h,o),t.exports=h,h.prototype.encode=function(data,t){const p=o.prototype.encode.call(this,data).toString("base64"),e=["-----BEGIN "+t.label+"-----"];for(let i=0;i<p.length;i+=64)e.push(p.slice(i,i+64));return e.push("-----END "+t.label+"-----"),e.join("\n")}},function(t,e,r){"use strict";const n=r(6),o=r(173).Buffer,h=r(275);function c(t){h.call(this,t),this.enc="pem"}n(c,h),t.exports=c,c.prototype.decode=function(data,t){const e=data.toString().split(/[\r\n]+/g),label=t.label.toUpperCase(),r=/^-----(BEGIN|END) ([^-]+)-----$/;let n=-1,c=-1;for(let i=0;i<e.length;i++){const t=e[i].match(r);if(null!==t&&t[2]===label){if(-1!==n){if("END"!==t[1])break;c=i;break}if("BEGIN"!==t[1])break;n=i}}if(-1===n||-1===c)throw new Error("PEM section not found for: "+label);const f=e.slice(n+1,c).join("");f.replace(/[^a-z0-9+/=]+/gi,"");const input=o.from(f,"base64");return h.prototype.decode.call(this,input,t)}},function(t,e,r){"use strict";const base=e;base.Reporter=r(175).Reporter,base.DecoderBuffer=r(97).DecoderBuffer,base.EncoderBuffer=r(97).EncoderBuffer,base.Node=r(174)},function(t,e,r){"use strict";const n=e;n._reverse=function(map){const t={};return Object.keys(map).forEach((function(e){(0|e)==e&&(e|=0);const r=map[e];t[r]=e})),t},n.der=r(176)},function(t,e,r){"use strict";var n=r(270),o=n.define("Time",(function(){this.choice({utcTime:this.utctime(),generalTime:this.gentime()})})),h=n.define("AttributeTypeValue",(function(){this.seq().obj(this.key("type").objid(),this.key("value").any())})),c=n.define("AlgorithmIdentifier",(function(){this.seq().obj(this.key("algorithm").objid(),this.key("parameters").optional(),this.key("curve").objid().optional())})),f=n.define("SubjectPublicKeyInfo",(function(){this.seq().obj(this.key("algorithm").use(c),this.key("subjectPublicKey").bitstr())})),l=n.define("RelativeDistinguishedName",(function(){this.setof(h)})),d=n.define("RDNSequence",(function(){this.seqof(l)})),m=n.define("Name",(function(){this.choice({rdnSequence:this.use(d)})})),v=n.define("Validity",(function(){this.seq().obj(this.key("notBefore").use(o),this.key("notAfter").use(o))})),y=n.define("Extension",(function(){this.seq().obj(this.key("extnID").objid(),this.key("critical").bool().def(!1),this.key("extnValue").octstr())})),w=n.define("TBSCertificate",(function(){this.seq().obj(this.key("version").explicit(0).int().optional(),this.key("serialNumber").int(),this.key("signature").use(c),this.key("issuer").use(m),this.key("validity").use(v),this.key("subject").use(m),this.key("subjectPublicKeyInfo").use(f),this.key("issuerUniqueID").implicit(1).bitstr().optional(),this.key("subjectUniqueID").implicit(2).bitstr().optional(),this.key("extensions").explicit(3).seqof(y).optional())})),M=n.define("X509Certificate",(function(){this.seq().obj(this.key("tbsCertificate").use(w),this.key("signatureAlgorithm").use(c),this.key("signatureValue").bitstr())}));t.exports=M},function(t){t.exports=JSON.parse('{"2.16.840.1.101.3.4.1.1":"aes-128-ecb","2.16.840.1.101.3.4.1.2":"aes-128-cbc","2.16.840.1.101.3.4.1.3":"aes-128-ofb","2.16.840.1.101.3.4.1.4":"aes-128-cfb","2.16.840.1.101.3.4.1.21":"aes-192-ecb","2.16.840.1.101.3.4.1.22":"aes-192-cbc","2.16.840.1.101.3.4.1.23":"aes-192-ofb","2.16.840.1.101.3.4.1.24":"aes-192-cfb","2.16.840.1.101.3.4.1.41":"aes-256-ecb","2.16.840.1.101.3.4.1.42":"aes-256-cbc","2.16.840.1.101.3.4.1.43":"aes-256-ofb","2.16.840.1.101.3.4.1.44":"aes-256-cfb"}')},function(t,e,r){var n=/Proc-Type: 4,ENCRYPTED[\n\r]+DEK-Info: AES-((?:128)|(?:192)|(?:256))-CBC,([0-9A-H]+)[\n\r]+([0-9A-z\n\r+/=]+)[\n\r]+/m,o=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----/m,h=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----([0-9A-z\n\r+/=]+)-----END \1-----$/m,c=r(125),f=r(164),l=r(7).Buffer;t.exports=function(t,e){var r,d=t.toString(),m=d.match(n);if(m){var v="aes"+m[1],y=l.from(m[2],"hex"),w=l.from(m[3].replace(/[\r\n]/g,""),"base64"),M=c(e,y.slice(0,8),parseInt(m[1],10)).key,_=[],S=f.createDecipheriv(v,M,y);_.push(S.update(w)),_.push(S.final()),r=l.concat(_)}else{var A=d.match(h);r=l.from(A[2].replace(/[\r\n]/g,""),"base64")}return{tag:d.match(o)[1],data:r}}},function(t,e,r){var n=r(167).Buffer,o=r(169),h=r(170).ec,c=r(127),f=r(276);function l(b,q){if(b.cmpn(0)<=0)throw new Error("invalid sig");if(b.cmp(q)>=q)throw new Error("invalid sig")}t.exports=function(t,e,r,d,m){var v=c(r);if("ec"===v.type){if("ecdsa"!==d&&"ecdsa/rsa"!==d)throw new Error("wrong public key type");return function(t,e,r){var n=f[r.data.algorithm.curve.join(".")];if(!n)throw new Error("unknown curve "+r.data.algorithm.curve.join("."));var o=new h(n),c=r.data.subjectPrivateKey.data;return o.verify(e,t,c)}(t,e,v)}if("dsa"===v.type){if("dsa"!==d)throw new Error("wrong public key type");return function(t,e,r){var p=r.data.p,q=r.data.q,g=r.data.g,n=r.data.pub_key,h=c.signature.decode(t,"der"),s=h.s,f=h.r;l(s,q),l(f,q);var d=o.mont(p),m=s.invm(q);return 0===g.toRed(d).redPow(new o(e).mul(m).mod(q)).fromRed().mul(n.toRed(d).redPow(f.mul(m).mod(q)).fromRed()).mod(p).mod(q).cmp(f)}(t,e,v)}if("rsa"!==d&&"ecdsa/rsa"!==d)throw new Error("wrong public key type");e=n.concat([m,e]);for(var y=v.modulus.byteLength(),w=[1],M=0;e.length+w.length+2<y;)w.push(255),M++;w.push(0);for(var i=-1;++i<e.length;)w.push(e[i]);w=n.from(w);var _=o.mont(v.modulus);t=(t=new o(t).toRed(_)).redPow(new o(v.publicExponent)),t=n.from(t.fromRed().toArray());var S=M<8?1:0;for(y=Math.min(t.length,w.length),t.length!==w.length&&(S=1),i=-1;++i<y;)S|=t[i]^w[i];return 0===S}},function(t,e,r){(function(e){var n=r(170),o=r(484);t.exports=function(t){return new c(t)};var h={secp256k1:{name:"secp256k1",byteLength:32},secp224r1:{name:"p224",byteLength:28},prime256v1:{name:"p256",byteLength:32},prime192v1:{name:"p192",byteLength:24},ed25519:{name:"ed25519",byteLength:32},secp384r1:{name:"p384",byteLength:48},secp521r1:{name:"p521",byteLength:66}};function c(t){this.curveType=h[t],this.curveType||(this.curveType={name:t}),this.curve=new n.ec(this.curveType.name),this.keys=void 0}function f(t,r,n){Array.isArray(t)||(t=t.toArray());var o=new e(t);if(n&&o.length<n){var h=new e(n-o.length);h.fill(0),o=e.concat([h,o])}return r?o.toString(r):o}h.p224=h.secp224r1,h.p256=h.secp256r1=h.prime256v1,h.p192=h.secp192r1=h.prime192v1,h.p384=h.secp384r1,h.p521=h.secp521r1,c.prototype.generateKeys=function(t,e){return this.keys=this.curve.genKeyPair(),this.getPublicKey(t,e)},c.prototype.computeSecret=function(t,r,n){return r=r||"utf8",e.isBuffer(t)||(t=new e(t,r)),f(this.curve.keyFromPublic(t).getPublic().mul(this.keys.getPrivate()).getX(),n,this.curveType.byteLength)},c.prototype.getPublicKey=function(t,e){var r=this.keys.getPublic("compressed"===e,!0);return"hybrid"===e&&(r[r.length-1]%2?r[0]=7:r[0]=6),f(r,t)},c.prototype.getPrivateKey=function(t){return f(this.keys.getPrivate(),t)},c.prototype.setPublicKey=function(t,r){return r=r||"utf8",e.isBuffer(t)||(t=new e(t,r)),this.keys._importPublic(t),this},c.prototype.setPrivateKey=function(t,r){r=r||"utf8",e.isBuffer(t)||(t=new e(t,r));var n=new o(t);return n=n.toString(16),this.keys=this.curve.genKeyPair(),this.keys._importPrivate(n),this}}).call(this,r(5).Buffer)},function(t,e,r){(function(t){!function(t,e){"use strict";function n(t,e){if(!t)throw new Error(e||"Assertion failed")}function o(t,e){t.super_=e;var r=function(){};r.prototype=e.prototype,t.prototype=new r,t.prototype.constructor=t}function h(t,base,e){if(h.isBN(t))return t;this.negative=0,this.words=null,this.length=0,this.red=null,null!==t&&("le"!==base&&"be"!==base||(e=base,base
vendor: 4,177 bytes, line 11
11=10),this._init(t||0,base||10,e||"be"))}var c;"object"==typeof t?t.exports=h:e.BN=h,h.BN=h,h.wordSize=26;try{c=r(485).Buffer}catch(t){}function f(t,e,r){for(var n=0,o=Math.min(t.length,r),i=e;i<o;i++){var h=t.charCodeAt(i)-48;n<<=4,n|=h>=49&&h<=54?h-49+10:h>=17&&h<=22?h-17+10:15&h}return n}function l(t,e,r,n){for(var o=0,h=Math.min(t.length,r),i=e;i<h;i++){var c=t.charCodeAt(i)-48;o*=n,o+=c>=49?c-49+10:c>=17?c-17+10:c}return o}h.isBN=function(t){return t instanceof h||null!==t&&"object"==typeof t&&t.constructor.wordSize===h.wordSize&&Array.isArray(t.words)},h.max=function(t,e){return t.cmp(e)>0?t:e},h.min=function(t,e){return t.cmp(e)<0?t:e},h.prototype._init=function(t,base,e){if("number"==typeof t)return this._initNumber(t,base,e);if("object"==typeof t)return this._initArray(t,base,e);"hex"===base&&(base=16),n(base===(0|base)&&base>=2&&base<=36);var r=0;"-"===(t=t.toString().replace(/\s+/g,""))[0]&&r++,16===base?this._parseHex(t,r):this._parseBase(t,base,r),"-"===t[0]&&(this.negative=1),this.strip(),"le"===e&&this._initArray(this.toArray(),base,e)},h.prototype._initNumber=function(t,base,e){t<0&&(this.negative=1,t=-t),t<67108864?(this.words=[67108863&t],this.length=1):t<4503599627370496?(this.words=[67108863&t,t/67108864&67108863],this.length=2):(n(t<9007199254740992),this.words=[67108863&t,t/67108864&67108863,1],this.length=3),"le"===e&&this._initArray(this.toArray(),base,e)},h.prototype._initArray=function(t,base,e){if(n("number"==typeof t.length),t.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(t.length/3),this.words=new Array(this.length);for(var i=0;i<this.length;i++)this.words[i]=0;var r,o,h=0;if("be"===e)for(i=t.length-1,r=0;i>=0;i-=3)o=t[i]|t[i-1]<<8|t[i-2]<<16,this.words[r]|=o<<h&67108863,this.words[r+1]=o>>>26-h&67108863,(h+=24)>=26&&(h-=26,r++);else if("le"===e)for(i=0,r=0;i<t.length;i+=3)o=t[i]|t[i+1]<<8|t[i+2]<<16,this.words[r]|=o<<h&67108863,this.words[r+1]=o>>>26-h&67108863,(h+=24)>=26&&(h-=26,r++);return this.strip()},h.prototype._parseHex=function(t,e){this.length=Math.ceil((t.length-e)/6),this.words=new Array(this.length);for(var i=0;i<this.length;i++)this.words[i]=0;var r,n,o=0;for(i=t.length-6,r=0;i>=e;i-=6)n=f(t,i,i+6),this.words[r]|=n<<o&67108863,this.words[r+1]|=n>>>26-o&4194303,(o+=24)>=26&&(o-=26,r++);i+6!==e&&(n=f(t,e,i+6),this.words[r]|=n<<o&67108863,this.words[r+1]|=n>>>26-o&4194303),this.strip()},h.prototype._parseBase=function(t,base,e){this.words=[0],this.length=1;for(var r=0,n=1;n<=67108863;n*=base)r++;r--,n=n/base|0;for(var o=t.length-e,h=o%r,c=Math.min(o,o-h)+e,f=0,i=e;i<c;i+=r)f=l(t,i,i+r,base),this.imuln(n),this.words[0]+f<67108864?this.words[0]+=f:this._iaddn(f);if(0!==h){var d=1;for(f=l(t,i,t.length,base),i=0;i<h;i++)d*=base;this.imuln(d),this.words[0]+f<67108864?this.words[0]+=f:this._iaddn(f)}},h.prototype.copy=function(t){t.words=new Array(this.length);for(var i=0;i<this.length;i++)t.words[i]=this.words[i];t.length=this.length,t.negative=this.negative,t.red=this.red},h.prototype.clone=function(){var t=new h(null);return this.copy(t),t},h.prototype._expand=function(t){for(;this.length<t;)this.words[this.length++]=0;return this},h.prototype.strip=function(){for(;this.length>1&&0===this.words[this.length-1];)this.length--;return this._normSign()},h.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},h.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};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"],m=[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],v=[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,143489
vendor: 34,272 bytes, line 11
1107,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function y(t,e,r){r.negative=e.negative^t.negative;var n=t.length+e.length|0;r.length=n,n=n-1|0;var a=0|t.words[0],b=0|e.words[0],o=a*b,h=67108863&o,c=o/67108864|0;r.words[0]=h;for(var f=1;f<n;f++){for(var l=c>>>26,d=67108863&c,m=Math.min(f,e.length-1),v=Math.max(0,f-t.length+1);v<=m;v++){var i=f-v|0;l+=(o=(a=0|t.words[i])*(b=0|e.words[v])+d)/67108864|0,d=67108863&o}r.words[f]=0|d,c=0|l}return 0!==c?r.words[f]=0|c:r.length--,r.strip()}h.prototype.toString=function(base,t){var e;if(t=0|t||1,16===(base=base||10)||"hex"===base){e="";for(var r=0,o=0,i=0;i<this.length;i++){var h=this.words[i],c=(16777215&(h<<r|o)).toString(16);e=0!==(o=h>>>24-r&16777215)||i!==this.length-1?d[6-c.length]+c+e:c+e,(r+=2)>=26&&(r-=26,i--)}for(0!==o&&(e=o.toString(16)+e);e.length%t!=0;)e="0"+e;return 0!==this.negative&&(e="-"+e),e}if(base===(0|base)&&base>=2&&base<=36){var f=m[base],l=v[base];e="";var y=this.clone();for(y.negative=0;!y.isZero();){var w=y.modn(l).toString(base);e=(y=y.idivn(l)).isZero()?w+e:d[f-w.length]+w+e}for(this.isZero()&&(e="0"+e);e.length%t!=0;)e="0"+e;return 0!==this.negative&&(e="-"+e),e}n(!1,"Base should be between 2 and 36")},h.prototype.toNumber=function(){var t=this.words[0];return 2===this.length?t+=67108864*this.words[1]:3===this.length&&1===this.words[2]?t+=4503599627370496+67108864*this.words[1]:this.length>2&&n(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-t:t},h.prototype.toJSON=function(){return this.toString(16)},h.prototype.toBuffer=function(t,e){return n(void 0!==c),this.toArrayLike(c,t,e)},h.prototype.toArray=function(t,e){return this.toArrayLike(Array,t,e)},h.prototype.toArrayLike=function(t,e,r){var o=this.byteLength(),h=r||Math.max(1,o);n(o<=h,"byte array longer than desired length"),n(h>0,"Requested array length <= 0"),this.strip();var b,i,c="le"===e,f=new t(h),q=this.clone();if(c){for(i=0;!q.isZero();i++)b=q.andln(255),q.iushrn(8),f[i]=b;for(;i<h;i++)f[i]=0}else{for(i=0;i<h-o;i++)f[i]=0;for(i=0;!q.isZero();i++)b=q.andln(255),q.iushrn(8),f[h-i-1]=b}return f},Math.clz32?h.prototype._countBits=function(t){return 32-Math.clz32(t)}:h.prototype._countBits=function(t){var e=t,r=0;return e>=4096&&(r+=13,e>>>=13),e>=64&&(r+=7,e>>>=7),e>=8&&(r+=4,e>>>=4),e>=2&&(r+=2,e>>>=2),r+e},h.prototype._zeroBits=function(t){if(0===t)return 26;var e=t,r=0;return 0==(8191&e)&&(r+=13,e>>>=13),0==(127&e)&&(r+=7,e>>>=7),0==(15&e)&&(r+=4,e>>>=4),0==(3&e)&&(r+=2,e>>>=2),0==(1&e)&&r++,r},h.prototype.bitLength=function(){var t=this.words[this.length-1],e=this._countBits(t);return 26*(this.length-1)+e},h.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,i=0;i<this.length;i++){var b=this._zeroBits(this.words[i]);if(t+=b,26!==b)break}return t},h.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},h.prototype.toTwos=function(t){return 0!==this.negative?this.abs().inotn(t).iaddn(1):this.clone()},h.prototype.fromTwos=function(t){return this.testn(t-1)?this.notn(t).iaddn(1).ineg():this.clone()},h.prototype.isNeg=function(){return 0!==this.negative},h.prototype.neg=function(){return this.clone().ineg()},h.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},h.prototype.iuor=function(t){for(;this.length<t.length;)this.words[this.length++]=0;for(var i=0;i<t.length;i++)this.words[i]=this.words[i]|t.words[i];return this.strip()},h.prototype.ior=function(t){return n(0==(this.negative|t.negative)),this.iuor(t)},h.prototype.or=function(t){return this.length>t.length?this.clone().ior(t):t.clone().ior(this)},h.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},h.prototype.iuand=function(t){var b;b=this.length>t.length?t:this;for(var i=0;i<b.length;i++)this.words[i]=this.words[i]&t.words[i];return this.length=b.length,this.strip()},h.prototype.iand=function(t){return n(0==(this.negative|t.negative)),this.iuand(t)},h.prototype.and=function(t){return this.length>t.length?this.clone().iand(t):t.clone().iand(this)},h.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},h.prototype.iuxor=function(t){var a,b;this.length>t.length?(a=this,b=t):(a=t,b=this);for(var i=0;i<b.length;i++)this.words[i]=a.words[i]^b.words[i];if(this!==a)for(;i<a.length;i++)this.words[i]=a.words[i];return this.length=a.length,this.strip()},h.prototype.ixor=function(t){return n(0==(this.negative|t.negative)),this.iuxor(t)},h.prototype.xor=function(t){return this.length>t.length?this.clone().ixor(t):t.clone().ixor(this)},h.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},h.prototype.inotn=function(t){n("number"==typeof t&&t>=0);var e=0|Math.ceil(t/26),r=t%26;this._expand(e),r>0&&e--;for(var i=0;i<e;i++)this.words[i]=67108863&~this.words[i];return r>0&&(this.words[i]=~this.words[i]&67108863>>26-r),this.strip()},h.prototype.notn=function(t){return this.clone().inotn(t)},h.prototype.setn=function(t,e){n("number"==typeof t&&t>=0);var r=t/26|0,o=t%26;return this._expand(r+1),this.words[r]=e?this.words[r]|1<<o:this.words[r]&~(1<<o),this.strip()},h.prototype.iadd=function(t){var e,a,b;if(0!==this.negative&&0===t.negative)return this.negative=0,e=this.isub(t),this.negative^=1,this._normSign();if(0===this.negative&&0!==t.negative)return t.negative=0,e=this.isub(t),t.negative=1,e._normSign();this.length>t.length?(a=this,b=t):(a=t,b=this);for(var r=0,i=0;i<b.length;i++)e=(0|a.words[i])+(0|b.words[i])+r,this.words[i]=67108863&e,r=e>>>26;for(;0!==r&&i<a.length;i++)e=(0|a.words[i])+r,this.words[i]=67108863&e,r=e>>>26;if(this.length=a.length,0!==r)this.words[this.length]=r,this.length++;else if(a!==this)for(;i<a.length;i++)this.words[i]=a.words[i];return this},h.prototype.add=function(t){var e;return 0!==t.negative&&0===this.negative?(t.negative=0,e=this.sub(t),t.negative^=1,e):0===t.negative&&0!==this.negative?(this.negative=0,e=t.sub(this),this.negative=1,e):this.length>t.length?this.clone().iadd(t):t.clone().iadd(this)},h.prototype.isub=function(t){if(0!==t.negative){t.negative=0;var e=this.iadd(t);return t.negative=1,e._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(t),this.negative=1,this._normSign();var a,b,r=this.cmp(t);if(0===r)return this.negative=0,this.length=1,this.words[0]=0,this;r>0?(a=this,b=t):(a=t,b=this);for(var n=0,i=0;i<b.length;i++)n=(e=(0|a.words[i])-(0|b.words[i])+n)>>26,this.words[i]=67108863&e;for(;0!==n&&i<a.length;i++)n=(e=(0|a.words[i])+n)>>26,this.words[i]=67108863&e;if(0===n&&i<a.length&&a!==this)for(;i<a.length;i++)this.words[i]=a.words[i];return this.length=Math.max(this.length,i),a!==this&&(this.negative=1),this.strip()},h.prototype.sub=function(t){return this.clone().isub(t)};var w=function(t,e,r){var n,o,h,a=t.words,b=e.words,c=r.words,f=0,l=0|a[0],d=8191&l,m=l>>>13,v=0|a[1],y=8191&v,w=v>>>13,M=0|a[2],_=8191&M,S=M>>>13,A=0|a[3],x=8191&A,k=A>>>13,E=0|a[4],C=8191&E,R=E>>>13,I=0|a[5],P=8191&I,T=I>>>13,O=0|a[6],j=8191&O,U=O>>>13,B=0|a[7],D=8191&B,F=B>>>13,L=0|a[8],N=8191&L,H=L>>>13,z=0|a[9],V=8191&z,K=z>>>13,Z=0|b[0],W=8191&Z,G=Z>>>13,J=0|b[1],Y=8191&J,Q=J>>>13,X=0|b[2],$=8191&X,tt=X>>>13,et=0|b[3],it=8191&et,nt=et>>>13,ot=0|b[4],st=8191&ot,at=ot>>>13,ut=0|b[5],ht=8191&ut,ct=ut>>>13,ft=0|b[6],lt=8191&ft,pt=ft>>>13,mt=0|b[7],gt=8191&mt,vt=mt>>>13,yt=0|b[8],bt=8191&yt,wt=yt>>>13,Mt=0|b[9],_t=8191&Mt,St=Mt>>>13;r.negative=t.negative^e.negative,r.length=19;var At=(f+(n=Math.imul(d,W))|0)+((8191&(o=(o=Math.imul(d,G))+Math.imul(m,W)|0))<<13)|0;f=((h=Math.imul(m,G))+(o>>>13)|0)+(At>>>26)|0,At&=67108863,n=Math.imul(y,W),o=(o=Math.imul(y,G))+Math.imul(w,W)|0,h=Math.imul(w,G);var xt=(f+(n=n+Math.imul(d,Y)|0)|0)+((8191&(o=(o=o+Math.imul(d,Q)|0)+Math.imul(m,Y)|0))<<13)|0;f=((h=h+Math.imul(m,Q)|0)+(o>>>13)|0)+(xt>>>26)|0,xt&=67108863,n=Math.imul(_,W),o=(o=Math.imul(_,G))+Math.imul(S,W)|0,h=Math.imul(S,G),n=n+Math.imul(y,Y)|0,o=(o=o+Math.imul(y,Q)|0)+Math.imul(w,Y)|0,h=h+Math.imul(w,Q)|0;var kt=(f+(n=n+Math.imul(d,$)|0)|0)+((8191&(o=(o=o+Math.imul(d,tt)|0)+Math.imul(m,$)|0))<<13)|0;f=((h=h+Math.imul(m,tt)|0)+(o>>>13)|0)+(kt>>>26)|0,kt&=67108863,n=Math.imul(x,W),o=(o=Math.imul(x,G))+Math.imul(k,W)|0,h=Math.imul(k,G),n=n+Math.imul(_,Y)|0,o=(o=o+Math.imul(_,Q)|0)+Math.imul(S,Y)|0,h=h+Math.imul(S,Q)|0,n=n+Math.imul(y,$)|0,o=(o=o+Math.imul(y,tt)|0)+Math.imul(w,$)|0,h=h+Math.imul(w,tt)|0;var Et=(f+(n=n+Math.imul(d,it)|0)|0)+((8191&(o=(o=o+Math.imul(d,nt)|0)+Math.imul(m,it)|0))<<13)|0;f=((h=h+Math.imul(m,nt)|0)+(o>>>13)|0)+(Et>>>26)|0,Et&=67108863,n=Math.imul(C,W),o=(o=Math.imul(C,G))+Math.imul(R,W)|0,h=Math.imul(R,G),n=n+Math.imul(x,Y)|0,o=(o=o+Math.imul(x,Q)|0)+Math.imul(k,Y)|0,h=h+Math.imul(k,Q)|0,n=n+Math.imul(_,$)|0,o=(o=o+Math.imul(_,tt)|0)+Math.imul(S,$)|0,h=h+Math.imul(S,tt)|0,n=n+Math.imul(y,it)|0,o=(o=o+Math.imul(y,nt)|0)+Math.imul(w,it)|0,h=h+Math.imul(w,nt)|0;var Ct=(f+(n=n+Math.imul(d,st)|0)|0)+((8191&(o=(o=o+Math.imul(d,at)|0)+Math.imul(m,st)|0))<<13)|0;f=((h=h+Math.imul(m,at)|0)+(o>>>13)|0)+(Ct>>>26)|0,Ct&=67108863,n=Math.imul(P,W),o=(o=Math.imul(P,G))+Math.imul(T,W)|0,h=Math.imul(T,G),n=n+Math.imul(C,Y)|0,o=(o=o+Math.imul(C,Q)|0)+Math.imul(R,Y)|0,h=h+Math.imul(R,Q)|0,n=n+Math.imul(x,$)|0,o=(o=o+Math.imul(x,tt)|0)+Math.imul(k,$)|0,h=h+Math.imul(k,tt)|0,n=n+Math.imul(_,it)|0,o=(o=o+Math.imul(_,nt)|0)+Math.imul(S,it)|0,h=h+Math.imul(S,nt)|0,n=n+Math.imul(y,st)|0,o=(o=o+Math.imul(y,at)|0)+Math.imul(w,st)|0,h=h+Math.imul(w,at)|0;var Rt=(f+(n=n+Math.imul(d,ht)|0)|0)+((8191&(o=(o=o+Math.imul(d,ct)|0)+Math.imul(m,ht)|0))<<13)|0;f=((h=h+Math.imul(m,ct)|0)+(o>>>13)|0)+(Rt>>>26)|0,Rt&=67108863,n=Math.imul(j,W),o=(o=Math.imul(j,G))+Math.imul(U,W)|0,h=Math.imul(U,G),n=n+Math.imul(P,Y)|0,o=(o=o+Math.imul(P,Q)|0)+Math.imul(T,Y)|0,h=h+Math.imul(T,Q)|0,n=n+Math.imul(C,$)|0,o=(o=o+Math.imul(C,tt)|0)+Math.imul(R,$)|0,h=h+Math.imul(R,tt)|0,n=n+Math.imul(x,it)|0,o=(o=o+Math.imul(x,nt)|0)+Math.imul(k,it)|0,h=h+Math.imul(k,nt)|0,n=n+Math.imul(_,st)|0,o=(o=o+Math.imul(_,at)|0)+Math.imul(S,st)|0,h=h+Math.imul(S,at)|0,n=n+Math.imul(y,ht)|0,o=(o=o+Math.imul(y,ct)|0)+Math.imul(w,ht)|0,h=h+Math.imul(w,ct)|0;var It=(f+(n=n+Math.imul(d,lt)|0)|0)+((8191&(o=(o=o+Math.imul(d,pt)|0)+Math.imul(m,lt)|0))<<13)|0;f=((h=h+Math.imul(m,pt)|0)+(o>>>13)|0)+(It>>>26)|0,It&=67108863,n=Math.imul(D,W),o=(o=Math.imul(D,G))+Math.imul(F,W)|0,h=Math.imul(F,G),n=n+Math.imul(j,Y)|0,o=(o=o+Math.imul(j,Q)|0)+Math.imul(U,Y)|0,h=h+Math.imul(U,Q)|0,n=n+Math.imul(P,$)|0,o=(o=o+Math.imul(P,tt)|0)+Math.imul(T,$)|0,h=h+Math.imul(T,tt)|0,n=n+Math.imul(C,it)|0,o=(o=o+Math.imul(C,nt)|0)+Math.imul(R,it)|0,h=h+Math.imul(R,nt)|0,n=n+Math.imul(x,st)|0,o=(o=o+Math.imul(x,at)|0)+Math.imul(k,st)|0,h=h+Math.imul(k,at)|0,n=n+Math.imul(_,ht)|0,o=(o=o+Math.imul(_,ct)|0)+Math.imul(S,ht)|0,h=h+Math.imul(S,ct)|0,n=n+Math.imul(y,lt)|0,o=(o=o+Math.imul(y,pt)|0)+Math.imul(w,lt)|0,h=h+Math.imul(w,pt)|0;var Pt=(f+(n=n+Math.imul(d,gt)|0)|0)+((8191&(o=(o=o+Math.imul(d,vt)|0)+Math.imul(m,gt)|0))<<13)|0;f=((h=h+Math.imul(m,vt)|0)+(o>>>13)|0)+(Pt>>>26)|0,Pt&=67108863,n=Math.imul(N,W),o=(o=Math.imul(N,G))+Math.imul(H,W)|0,h=Math.imul(H,G),n=n+Math.imul(D,Y)|0,o=(o=o+Math.imul(D,Q)|0)+Math.imul(F,Y)|0,h=h+Math.imul(F,Q)|0,n=n+Math.imul(j,$)|0,o=(o=o+Math.imul(j,tt)|0)+Math.imul(U,$)|0,h=h+Math.imul(U,tt)|0,n=n+Math.imul(P,it)|0,o=(o=o+Math.imul(P,nt)|0)+Math.imul(T,it)|0,h=h+Math.imul(T,nt)|0,n=n+Math.imul(C,st)|0,o=(o=o+Math.imul(C,at)|0)+Math.imul(R,st)|0,h=h+Math.imul(R,at)|0,n=n+Math.imul(x,ht)|0,o=(o=o+Math.imul(x,ct)|0)+Math.imul(k,ht)|0,h=h+Math.imul(k,ct)|0,n=n+Math.imul(_,lt)|0,o=(o=o+Math.imul(_,pt)|0)+Math.imul(S,lt)|0,h=h+Math.imul(S,pt)|0,n=n+Math.imul(y,gt)|0,o=(o=o+Math.imul(y,vt)|0)+Math.imul(w,gt)|0,h=h+Math.imul(w,vt)|0;var Tt=(f+(n=n+Math.imul(d,bt)|0)|0)+((8191&(o=(o=o+Math.imul(d,wt)|0)+Math.imul(m,bt)|0))<<13)|0;f=((h=h+Math.imul(m,wt)|0)+(o>>>13)|0)+(Tt>>>26)|0,Tt&=67108863,n=Math.imul(V,W),o=(o=Math.imul(V,G))+Math.imul(K,W)|0,h=Math.imul(K,G),n=n+Math.imul(N,Y)|0,o=(o=o+Math.imul(N,Q)|0)+Math.imul(H,Y)|0,h=h+Math.imul(H,Q)|0,n=n+Math.imul(D,$)|0,o=(o=o+Math.imul(D,tt)|0)+Math.imul(F,$)|0,h=h+Math.imul(F,tt)|0,n=n+Math.imul(j,it)|0,o=(o=o+Math.imul(j,nt)|0)+Math.imul(U,it)|0,h=h+Math.imul(U,nt)|0,n=n+Math.imul(P,st)|0,o=(o=o+Math.imul(P,at)|0)+Math.imul(T,st)|0,h=h+Math.imul(T,at)|0,n=n+Math.imul(C,ht)|0,o=(o=o+Math.imul(C,ct)|0)+Math.imul(R,ht)|0,h=h+Math.imul(R,ct)|0,n=n+Math.imul(x,lt)|0,o=(o=o+Math.imul(x,pt)|0)+Math.imul(k,lt)|0,h=h+Math.imul(k,pt)|0,n=n+Math.imul(_,gt)|0,o=(o=o+Math.imul(_,vt)|0)+Math.imul(S,gt)|0,h=h+Math.imul(S,vt)|0,n=n+Math.imul(y,bt)|0,o=(o=o+Math.imul(y,wt)|0)+Math.imul(w,bt)|0,h=h+Math.imul(w,wt)|0;var Ot=(f+(n=n+Math.imul(d,_t)|0)|0)+((8191&(o=(o=o+Math.imul(d,St)|0)+Math.imul(m,_t)|0))<<13)|0;f=((h=h+Math.imul(m,St)|0)+(o>>>13)|0)+(Ot>>>26)|0,Ot&=67108863,n=Math.imul(V,Y),o=(o=Math.imul(V,Q))+Math.imul(K,Y)|0,h=Math.imul(K,Q),n=n+Math.imul(N,$)|0,o=(o=o+Math.imul(N,tt)|0)+Math.imul(H,$)|0,h=h+Math.imul(H,tt)|0,n=n+Math.imul(D,it)|0,o=(o=o+Math.imul(D,nt)|0)+Math.imul(F,it)|0,h=h+Math.imul(F,nt)|0,n=n+Math.imul(j,st)|0,o=(o=o+Math.imul(j,at)|0)+Math.imul(U,st)|0,h=h+Math.imul(U,at)|0,n=n+Math.imul(P,ht)|0,o=(o=o+Math.imul(P,ct)|0)+Math.imul(T,ht)|0,h=h+Math.imul(T,ct)|0,n=n+Math.imul(C,lt)|0,o=(o=o+Math.imul(C,pt)|0)+Math.imul(R,lt)|0,h=h+Math.imul(R,pt)|0,n=n+Math.imul(x,gt)|0,o=(o=o+Math.imul(x,vt)|0)+Math.imul(k,gt)|0,h=h+Math.imul(k,vt)|0,n=n+Math.imul(_,bt)|0,o=(o=o+Math.imul(_,wt)|0)+Math.imul(S,bt)|0,h=h+Math.imul(S,wt)|0;var jt=(f+(n=n+Math.imul(y,_t)|0)|0)+((8191&(o=(o=o+Math.imul(y,St)|0)+Math.imul(w,_t)|0))<<13)|0;f=((h=h+Math.imul(w,St)|0)+(o>>>13)|0)+(jt>>>26)|0,jt&=67108863,n=Math.imul(V,$),o=(o=Math.imul(V,tt))+Math.imul(K,$)|0,h=Math.imul(K,tt),n=n+Math.imul(N,it)|0,o=(o=o+Math.imul(N,nt)|0)+Math.imul(H,it)|0,h=h+Math.imul(H,nt)|0,n=n+Math.imul(D,st)|0,o=(o=o+Math.imul(D,at)|0)+Math.imul(F,st)|0,h=h+Math.imul(F,at)|0,n=n+Math.imul(j,ht)|0,o=(o=o+Math.imul(j,ct)|0)+Math.imul(U,ht)|0,h=h+Math.imul(U,ct)|0,n=n+Math.imul(P,lt)|0,o=(o=o+Math.imul(P,pt)|0)+Math.imul(T,lt)|0,h=h+Math.imul(T,pt)|0,n=n+Math.imul(C,gt)|0,o=(o=o+Math.imul(C,vt)|0)+Math.imul(R,gt)|0,h=h+Math.imul(R,vt)|0,n=n+Math.imul(x,bt)|0,o=(o=o+Math.imul(x,wt)|0)+Math.imul(k,bt)|0,h=h+Math.imul(k,wt)|0;var Ut=(f+(n=n+Math.imul(_,_t)|0)|0)+((8191&(o=(o=o+Math.imul(_,St)|0)+Math.imul(S,_t)|0))<<13)|0;f=((h=h+Math.imul(S,St)|0)+(o>>>13)|0)+(Ut>>>26)|0,Ut&=67108863,n=Math.imul(V,it),o=(o=Math.imul(V,nt))+Math.imul(K,it)|0,h=Math.imul(K,nt),n=n+Math.imul(N,st)|0,o=(o=o+Math.imul(N,at)|0)+Math.imul(H,st)|0,h=h+Math.imul(H,at)|0,n=n+Math.imul(D,ht)|0,o=(o=o+Math.imul(D,ct)|0)+Math.imul(F,ht)|0,h=h+Math.imul(F,ct)|0,n=n+Math.imul(j,lt)|0,o=(o=o+Math.imul(j,pt)|0)+Math.imul(U,lt)|0,h=h+Math.imul(U,pt)|0,n=n+Math.imul(P,gt)|0,o=(o=o+Math.imul(P,vt)|0)+Math.imul(T,gt)|0,h=h+Math.imul(T,vt)|0,n=n+Math.imul(C,bt)|0,o=(o=o+Math.imul(C,wt)|0)+Math.imul(R,bt)|0,h=h+Math.imul(R,wt)|0;var Bt=(f+(n=n+Math.imul(x,_t)|0)|0)+((8191&(o=(o=o+Math.imul(x,St)|0)+Math.imul(k,_t)|0))<<13)|0;f=((h=h+Math.imul(k,St)|0)+(o>>>13)|0)+(Bt>>>26)|0,Bt&=67108863,n=Math.imul(V,st),o=(o=Math.imul(V,at))+Math.imul(K,st)|0,h=Math.imul(K,at),n=n+Math.imul(N,ht)|0,o=(o=o+Math.imul(N,ct)|0)+Math.imul(H,ht)|0,h=h+Math.imul(H,ct)|0,n=n+Math.imul(D,lt)|0,o=(o=o+Math.imul(D,pt)|0)+Math.imul(F,lt)|0,h=h+Math.imul(F,pt)|0,n=n+Math.imul(j,gt)|0,o=(o=o+Math.imul(j,vt)|0)+Math.imul(U,gt)|0,h=h+Math.imul(U,vt)|0,n=n+Math.imul(P,bt)|0,o=(o=o+Math.imul(P,wt)|0)+Math.imul(T,bt)|0,h=h+Math.imul(T,wt)|0;var Dt=(f+(n=n+Math.imul(C,_t)|0)|0)+((8191&(o=(o=o+Math.imul(C,St)|0)+Math.imul(R,_t)|0))<<13)|0;f=((h=h+Math.imul(R,St)|0)+(o>>>13)|0)+(Dt>>>26)|0,Dt&=67108863,n=Math.imul(V,ht),o=(o=Math.imul(V,ct))+Math.imul(K,ht)|0,h=Math.imul(K,ct),n=n+Math.imul(N,lt)|0,o=(o=o+Math.imul(N,pt)|0)+Math.imul(H,lt)|0,h=h+Math.imul(H,pt)|0,n=n+Math.imul(D,gt)|0,o=(o=o+Math.imul(D,vt)|0)+Math.imul(F,gt)|0,h=h+Math.imul(F,vt)|0,n=n+Math.imul(j,bt)|0,o=(o=o+Math.imul(j,wt)|0)+Math.imul(U,bt)|0,h=h+Math.imul(U,wt)|0;var Ft=(f+(n=n+Math.imul(P,_t)|0)|0)+((8191&(o=(o=o+Math.imul(P,St)|0)+Math.imul(T,_t)|0))<<13)|0;f=((h=h+Math.imul(T,St)|0)+(o>>>13)|0)+(Ft>>>26)|0,Ft&=67108863,n=Math.imul(V,lt),o=(o=Math.imul(V,pt))+Math.imul(K,lt)|0,h=Math.imul(K,pt),n=n+Math.imul(N,gt)|0,o=(o=o+Math.imul(N,vt)|0)+Math.imul(H,gt)|0,h=h+Math.imul(H,vt)|0,n=n+Math.imul(D,bt)|0,o=(o=o+Math.imul(D,wt)|0)+Math.imul(F,bt)|0,h=h+Math.imul(F,wt)|0;var Lt=(f+(n=n+Math.imul(j,_t)|0)|0)+((8191&(o=(o=o+Math.imul(j,St)|0)+Math.imul(U,_t)|0))<<13)|0;f=((h=h+Math.imul(U,St)|0)+(o>>>13)|0)+(Lt>>>26)|0,Lt&=67108863,n=Math.imul(V,gt),o=(o=Math.imul(V,vt))+Math.imul(K,gt)|0,h=Math.imul(K,vt),n=n+Math.imul(N,bt)|0,o=(o=o+Math.imul(N,wt)|0)+Math.imul(H,bt)|0,h=h+Math.imul(H,wt)|0;var Nt=(f+(n=n+Math.imul(D,_t)|0)|0)+((8191&(o=(o=o+Math.imul(D,St)|0)+Math.imul(F,_t)|0))<<13)|0;f=((h=h+Math.imul(F,St)|0)+(o>>>13)|0)+(Nt>>>26)|0,Nt&=67108863,n=Math.imul(V,bt),o=(o=Math.imul(V,wt))+Math.imul(K,bt)|0,h=Math.imul(K,wt);var qt=(f+(n=n+Math.imul(N,_t)|0)|0)+((8191&(o=(o=o+Math.imul(N,St)|0)+Math.imul(H,_t)|0))<<13)|0;f=((h=h+Math.imul(H,St)|0)+(o>>>13)|0)+(qt>>>26)|0,qt&=67108863;var Ht=(f+(n=Math.imul(V,_t))|0)+((8191&(o=(o=Math.imul(V,St))+Math.imul(K,_t)|0))<<13)|0;return f=((h=Math.imul(K,St))+(o>>>13)|0)+(Ht>>>26)|0,Ht&=67108863,c[0]=At,c[1]=xt,c[2]=kt,c[3]=Et,c[4]=Ct,c[5]=Rt,c[6]=It,c[7]=Pt,c[8]=Tt,c[9]=Ot,c[10]=jt,c[11]=Ut,c[12]=Bt,c[13]=Dt,c[14]=Ft,c[15]=Lt,c[16]=Nt,c[17]=qt,c[18]=Ht,0!==f&&(c[19]=f,r.length++),r};function M(t,e,r){return(new _).mulp(t,e,r)}function _(t,e){this.x=t,this.y=e}Math.imul||(w=y),h.prototype.mulTo=function(t,e){var r=this.length+t.length;return 10===this.length&&10===t.length?w(this,t,e):r<63?y(this,t,e):r<1024?function(t,e,r){r.negative=e.negative^t.negative,r.length=t.length+e.length;for(var n=0,o=0,h=0;h<r.length-1;h++){var c=o;o=0;for(var f=67108863&n,l=Math.min(h,e.length-1),d=Math.max(0,h-t.length+1);d<=l;d++){var i=h-d,m=(0|t.words[i])*(0|e.words[d]),v=67108863&m;f=67108863&(v=v+f|0),o+=(c=(c=c+(m/67108864|0)|0)+(v>>>26)|0)>>>26,c&=67108863}r.words[h]=f,n=c,c=o}return 0!==n?r.words[h]=n:r.length--,r.strip()}(this,t,e):M(this,t,e)},_.prototype.makeRBT=function(t){for(var e=new Array(t),r=h.prototype._countBits(t)-1,i=0;i<t;i++)e[i]=this.revBin(i,r,t);return e},_.prototype.revBin=function(t,e,r){if(0===t||t===r-1)return t;for(var n=0,i=0;i<e;i++)n|=(1&t)<<e-i-1,t>>=1;return n},_.prototype.permute=function(t,e,r,n,o,h){for(var i=0;i<h;i++)n[i]=e[t[i]],o[i]=r[t[i]]},_.prototype.transform=function(t,e,r,n,o,h){this.permute(h,t,e,r,n,o);for(var s=1;s<o;s<<=1)for(var c=s<<1,f=Math.cos(2*Math.PI/c),l=Math.sin(2*Math.PI/c),p=0;p<o;p+=c)for(var d=f,m=l,v=0;v<s;v++){var y=r[p+v],w=n[p+v],M=r[p+v+s],_=n[p+v+s],S=d*M-m*_;_=d*_+m*M,M=S,r[p+v]=y+M,n[p+v]=w+_,r[p+v+s]=y-M,n[p+v+s]=w-_,v!==c&&(S=f*d-l*m,m=f*m+l*d,d=S)}},_.prototype.guessLen13b=function(t,e){var r=1|Math.max(e,t),n=1&r,i=0;for(r=r/2|0;r;r>>>=1)i++;return 1<<i+1+n},_.prototype.conjugate=function(t,e,r){if(!(r<=1))for(var i=0;i<r/2;i++){var n=t[i];t[i]=t[r-i-1],t[r-i-1]=n,n=e[i],e[i]=-e[r-i-1],e[r-i-1]=-n}},_.prototype.normalize13b=function(t,e){for(var r=0,i=0;i<e/2;i++){var n=8192*Math.round(t[2*i+1]/e)+Math.round(t[2*i]/e)+r;t[i]=67108863&n,r=n<67108864?0:n/67108864|0}return t},_.prototype.convert13b=function(t,e,r,o){for(var h=0,i=0;i<e;i++)h+=0|t[i],r[2*i]=8191&h,h>>>=13,r[2*i+1]=8191&h,h>>>=13;for(i=2*e;i<o;++i)r[i]=0;n(0===h),n(0==(-8192&h))},_.prototype.stub=function(t){for(var e=new Array(t),i=0;i<t;i++)e[i]=0;return e},_.prototype.mulp=function(t,e,r){var n=2*this.guessLen13b(t.length,e.length),o=this.makeRBT(n),h=this.stub(n),c=new Array(n),f=new Array(n),l=new Array(n),d=new Array(n),m=new Array(n),v=new Array(n),y=r.words;y.length=n,this.convert13b(t.words,t.length,c,n),this.convert13b(e.words,e.length,d,n),this.transform(c,h,f,l,n,o),this.transform(d,h,m,v,n,o);for(var i=0;i<n;i++){var w=f[i]*m[i]-l[i]*v[i];l[i]=f[i]*v[i]+l[i]*m[i],f[i]=w}return this.conjugate(f,l,n),this.transform(f,l,y,h,n,o),this.conjugate(y,h,n),this.normalize13b(y,n),r.negative=t.negative^e.negative,r.length=t.length+e.length,r.strip()},h.prototype.mul=function(t){var e=new h(null);return e.words=new Array(this.length+t.length),this.mulTo(t,e)},h.prototype.mulf=function(t){var e=new h(null);return e.words=new Array(this.length+t.length),M(this,t,e)},h.prototype.imul=function(t){return this.clone().mulTo(t,this)},h.prototype.imuln=function(t){n("number"==typeof t),n(t<67108864);for(var e=0,i=0;i<this.length;i++){var r=(0|this.words[i])*t,o=(67108863&r)+(67108863&e);e>>=26,e+=r/67108864|0,e+=o>>>26,this.words[i]=67108863&o}return 0!==e&&(this.words[i]=e,this.length++),this},h.prototype.muln=function(t){return this.clone().imuln(t)},h.prototype.sqr=function(){return this.mul(this)},h.prototype.isqr=function(){return this.imul(this.clone())},h.prototype.pow=function(t){var e=function(t){for(var e=new Array(t.bitLength()),r=0;r<e.length;r++){var n=r/26|0,o=r%26;e[r]=(t.words[n]&1<<o)>>>o}return e}(t);if(0===e.length)return new h(1);for(var r=this,i=0;i<e.length&&0===e[i];i++,r=r.sqr());if(++i<e.length)for(var q=r.sqr();i<e.length;i++,q=q.sqr())0!==e[i]&&(r=r.mul(q));return r},h.prototype.iushln=function(t){n("number"==typeof t&&t>=0);var i,e=t%26,s=(t-e)/26,r=67108863>>>26-e<<26-e;if(0!==e){var o=0;for(i=0;i<this.length;i++){var h=this.words[i]&r,c=(0|this.words[i])-h<<e;this.words[i]=c|o,o=h>>>26-e}o&&(this.words[i]=o,this.length++)}if(0!==s){for(i=this.length-1;i>=0;i--)this.words[i+s]=this.words[i];for(i=0;i<s;i++)this.words[i]=0;this.length+=s}return this.strip()},h.prototype.ishln=function(t){return n(0===this.negative),this.iushln(t)},h.prototype.iushrn=function(t,e,r){var o;n("number"==typeof t&&t>=0),o=e?(e-e%26)/26:0;var h=t%26,s=Math.min((t-h)/26,this.length),mask=67108863^67108863>>>h<<h,c=r;if(o-=s,o=Math.max(0,o),c){for(var i=0;i<s;i++)c.words[i]=this.words[i];c.length=s}if(0===s);else if(this.length>s)for(this.length-=s,i=0;i<this.length;i++)this.words[i]=this.words[i+s];else this.words[0]=0,this.length=1;var f=0;for(i=this.length-1;i>=0&&(0!==f||i>=o);i--){var l=0|this.words[i];this.words[i]=f<<26-h|l>>>h,f=l&mask}return c&&0!==f&&(c.words[c.length++]=f),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},h.prototype.ishrn=function(t,e,r){return n(0===this.negative),this.iushrn(t,e,r)},h.prototype.shln=function(t){return this.clone().ishln(t)},h.prototype.ushln=function(t){return this.clone().iushln(t)},h.prototype.shrn=function(t){return this.clone().ishrn(t)},h.prototype.ushrn=function(t){return this.clone().iushrn(t)},h.prototype.testn=function(t){n("number"==typeof t&&t>=0);var e=t%26,s=(t-e)/26,q=1<<e;return!(this.length<=s)&&!!(this.words[s]&q)},h.prototype.imaskn=function(t){n("number"==typeof t&&t>=0);var e=t%26,s=(t-e)/26;if(n(0===this.negative,"imaskn works only with positive numbers"),this.length<=s)return this;if(0!==e&&s++,this.length=Math.min(s,this.length),0!==e){var mask=67108863^67108863>>>e<<e;this.words[this.length-1]&=mask}return this.strip()},h.prototype.maskn=function(t){return this.clone().imaskn(t)},h.prototype.iaddn=function(t){return n("number"==typeof t),n(t<67108864),t<0?this.isubn(-t):0!==this.negative?1===this.length&&(0|this.words[0])<t?(this.words[0]=t-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(t),this.negative=1,this):this._iaddn(t)},h.prototype._iaddn=function(t){this.words[0]+=t;for(var i=0;i<this.length&&this.words[i]>=67108864;i++)this.words[i]-=67108864,i===this.length-1?this.words[i+1]=1:this.words[i+1]++;return this.length=Math.max(this.length,i+1),this},h.prototype.isubn=function(t){if(n("number"==typeof t),n(t<67108864),t<0)return this.iaddn(-t);if(0!==this.negative)return this.negative=0,this.iaddn(t),this.negative=1,this;if(this.words[0]-=t,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var i=0;i<this.length&&this.words[i]<0;i++)this.words[i]+=67108864,this.words[i+1]-=1;return this.strip()},h.prototype.addn=function(t){return this.clone().iaddn(t)},h.prototype.subn=function(t){return this.clone().isubn(t)},h.prototype.iabs=function(){return this.negative=0,this},h.prototype.abs=function(){return this.clone().iabs()},h.prototype._ishlnsubmul=function(t,e,r){var i,o,h=t.length+r;this._expand(h);var c=0;for(i=0;i<t.length;i++){o=(0|this.words[i+r])+c;var f=(0|t.words[i])*e;c=((o-=67108863&f)>>26)-(f/67108864|0),this.words[i+r]=67108863&o}for(;i<this.length-r;i++)c=(o=(0|this.words[i+r])+c)>>26,this.words[i+r]=67108863&o;if(0===c)return this.strip();for(n(-1===c),c=0,i=0;i<this.length;i++)c=(o=-(0|this.words[i])+c)>>26,this.words[i]=67108863&o;return this.negative=1,this.strip()},h.prototype._wordDiv=function(t,e){var r=(this.length,t.length),a=this.clone(),b=t,n=0|b.words[b.length-1];0!==(r=26-this._countBits(n))&&(b=b.ushln(r),a.iushln(r),n=0|b.words[b.length-1]);var q,o=a.length-b.length;if("mod"!==e){(q=new h(null)).length=o+1,q.words=new Array(q.length);for(var i=0;i<q.length;i++)q.words[i]=0}var c=a.clone()._ishlnsubmul(b,1,o);0===c.negative&&(a=c,q&&(q.words[o]=1));for(var f=o-1;f>=0;f--){var l=67108864*(0|a.words[b.length+f])+(0|a.words[b.length+f-1]);for(l=Math.min(l/n|0,67108863),a._ishlnsubmul(b,l,f);0!==a.negative;)l--,a.negative=0,a._ishlnsubmul(b,1,f),a.isZero()||(a.negative^=1);q&&(q.words[f]=l)}return q&&q.strip(),a.strip(),"div"!==e&&0!==r&&a.iushrn(r),{div:q||null,mod:a}},h.prototype.divmod=function(t,e,r){return n(!t.isZero()),this.isZero()?{div:new h(0),mod:new h(0)}:0!==this.negative&&0===t.negative?(c=this.neg().divmod(t,e),"mod"!==e&&(div=c.div.neg()),"div"!==e&&(o=c.mod.neg(),r&&0!==o.negative&&o.iadd(t)),{div:div,mod:o}):0===this.negative&&0!==t.negative?(c=this.divmod(t.neg(),e),"mod"!==e&&(div=c.div.neg()),{div:div,mod:c.mod}):0!=(this.negative&t.negative)?(c=this.neg().divmod(t.neg(),e),"div"!==e&&(o=c.mod.neg(),r&&0!==o.negative&&o.isub(t)),{div:c.div,mod:o}):t.length>this.length||this.cmp(t)<0?{div:new h(0),mod:this}:1===t.length?"div"===e?{div:this.divn(t.words[0]),mod:null}:"mod"===e?{div:null,mod:new h(this.modn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new h(this.modn(t.words[0]))}:this._wordDiv(t,e);var div,o,c},h.prototype.div=function(t){return this.divmod(t,"div",!1).div},h.prototype.mod=function(t){return this.divmod(t,"mod",!1).mod},h.prototype.umod=function(t){return this.divmod(t,"mod",!0).mod},h.prototype.divRound=function(t){var e=this.divmod(t);if(e.mod.isZero())return e.div;var r=0!==e.div.negative?e.mod.isub(t):e.mod,n=t.ushrn(1),o=t.andln(1),h=r.cmp(n);return h<0||1===o&&0===h?e.div:0!==e.div.negative?e.div.isubn(1):e.div.iaddn(1)},h.prototype.modn=function(t){n(t<=67108863);for(var p=(1<<26)%t,e=0,i=this.length-1;i>=0;i--)e=(p*e+(0|this.words[i]))%t;return e},h.prototype.idivn=function(t){n(t<=67108863);for(var e=0,i=this.length-1;i>=0;i--){var r=(0|this.words[i])+67108864*e;this.words[i]=r/t|0,e=r%t}return this.strip()},h.prototype.divn=function(t){return this.clone().idivn(t)},h.prototype.egcd=function(p){n(0===p.negative),n(!p.isZero());var t=this,e=p.clone();t=0!==t.negative?t.umod(p):t.clone();for(var r=new h(1),o=new h(0),c=new h(0),f=new h(1),g=0;t.isEven()&&e.isEven();)t.iushrn(1),e.iushrn(1),++g;for(var l=e.clone(),d=t.clone();!t.isZero();){for(var i=0,m=1;0==(t.words[0]&m)&&i<26;++i,m<<=1);if(i>0)for(t.iushrn(i);i-- >0;)(r.isOdd()||o.isOdd())&&(r.iadd(l),o.isub(d)),r.iushrn(1),o.iushrn(1);for(var v=0,y=1;0==(e.words[0]&y)&&v<26;++v,y<<=1);if(v>0)for(e.iushrn(v);v-- >0;)(c.isOdd()||f.isOdd())&&(c.iadd(l),f.isub(d)),c.iushrn(1),f.iushrn(1);t.cmp(e)>=0?(t.isub(e),r.isub(c),o.isub(f)):(e.isub(t),c.isub(r),f.isub(o))}return{a:c,b:f,gcd:e.iushln(g)}},h.prototype._invmp=function(p){n(0===p.negative),n(!p.isZero());var a=this,b=p.clone();a=0!==a.negative?a.umod(p):a.clone();for(var t,e=new h(1),r=new h(0),o=b.clone();a.cmpn(1)>0&&b.cmpn(1)>0;){for(var i=0,c=1;0==(a.words[0]&c)&&i<26;++i,c<<=1);if(i>0)for(a.iushrn(i);i-- >0;)e.isOdd()&&e.iadd(o),e.iushrn(1);for(var f=0,l=1;0==(b.words[0]&l)&&f<26;++f,l<<=1);if(f>0)for(b.iushrn(f);f-- >0;)r.isOdd()&&r.iadd(o),r.iushrn(1);a.cmp(b)>=0?(a.isub(b),e.isub(r)):(b.isub(a),r.isub(e))}return(t=0===a.cmpn(1)?e:r).cmpn(0)<0&&t.iadd(p),t},h.prototype.gcd=function(t){if(this.isZero())return t.abs();if(t.isZero())return this.abs();var a=this.clone(),b=t.clone();a.negative=0,b.negative=0;for(var e=0;a.isEven()&&b.isEven();e++)a.iushrn(1),b.iushrn(1);for(;;){for(;a.isEven();)a.iushrn(1);for(;b.isEven();)b.iushrn(1);var r=a.cmp(b);if(r<0){var n=a;a=b,b=n}else if(0===r||0===b.cmpn(1))break;a.isub(b)}return b.iushln(e)},h.prototype.invm=function(t){return this.egcd(t).a.umod(t)},h.prototype.isEven=function(){return 0==(1&this.words[0])},h.prototype.isOdd=function(){return 1==(1&this.words[0])},h.prototype.andln=function(t){return this.words[0]&t},h.prototype.bincn=function(t){n("number"==typeof t);var e=t%26,s=(t-e)/26,q=1<<e;if(this.length<=s)return this._expand(s+1),this.words[s]|=q,this;for(var r=q,i=s;0!==r&&i<this.length;i++){var o=0|this.words[i];r=(o+=r)>>>26,o&=67108863,this.words[i]=o}return 0!==r&&(this.words[i]=r,this.length++),this},h.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},h.prototype.cmpn=function(t){var e,r=t<0;if(0!==this.negative&&!r)return-1;if(0===this.negative&&r)return 1;if(this.strip(),this.length>1)e=1;else{r&&(t=-t),n(t<=67108863,"Number is too big");var o=0|this.words[0];e=o===t?0:o<t?-1:1}return 0!==this.negative?0|-e:e},h.prototype.cmp=function(t){if(0!==this.negative&&0===t.negative)return-1;if(0===this.negative&&0!==t.negative)return 1;var e=this.ucmp(t);return 0!==this.negative?0|-e:e},h.prototype.ucmp=function(t){if(this.length>t.length)return 1;if(this.length<t.length)return-1;for(var e=0,i=this.length-1;i>=0;i--){var a=0|this.words[i],b=0|t.words[i];if(a!==b){a<b?e=-1:a>b&&(e=1);break}}return e},h.prototype.gtn=function(t){return 1===this.cmpn(t)},h.prototype.gt=function(t){return 1===this.cmp(t)},h.prototype.gten=function(t){return this.cmpn(t)>=0},h.prototype.gte=function(t){return this.cmp(t)>=0},h.prototype.ltn=function(t){return-1===this.cmpn(t)},h.prototype.lt=function(t){return-1===this.cmp(t)},h.prototype.lten=function(t){return this.cmpn(t)<=0},h.prototype.lte=function(t){return this.cmp(t)<=0},h.prototype.eqn=function(t){return 0===this.cmpn(t)},h.prototype.eq=function(t){return 0===this.cmp(t)},h.red=function(t){return new R(t)},h.prototype.toRed=function(t){return n(!this.red,"Already a number in reduction context"),n(0===this.negative,"red works only with positives"),t.convertTo(this)._forceRed(t)},h.prototype.fromRed=function(){return n(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},h.prototype._forceRed=function(t){return this.red=t,this},h.prototype.forceRed=function(t){return n(!this.red,"Already a number in reduction context"),this._forceRed(t)},h.prototype.redAdd=function(t){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,t)},h.prototype.redIAdd=function(t){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,t)},h.prototype.redSub=function(t){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,t)},h.prototype.redISub=function(t){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,t)},h.prototype.redShl=function(t){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,t)},h.prototype.redMul=function(t){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.mul(this,t)},h.prototype.redIMul=function(t){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.imul(this,t)},h.prototype.redSqr=function(){return n(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},h.prototype.redISqr=function(){return n(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},h.prototype.redSqrt=function(){return n(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},h.prototype.redInvm=function(){return n(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},h.prototype.redNeg=function(){return n(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},h.prototype.redPow=function(t){return n(this.red&&!t.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,t)};var S={k256:null,p224:null,p192:null,p25519:null};function A(t,p){this.name=t,this.p=new h(p,16),this.n=this.p.bitLength(),this.k=new h(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function x(){A.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function k(){A.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function E(){A.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function C(){A.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function R(t){if("string"==typeof t){var e=h._prime(t);this.m=e.p,this.prime=e}else n(t.gtn(1),"modulus must be greater than 1"),this.m=t,this.prime=null}function I(t){R.call(this,t),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new h(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)}A.prototype._tmp=function(){var t=new h(null);return t.words=new Array(Math.ceil(this.n/13)),t},A.prototype.ireduce=function(t){var e,r=t;do{this.split(r,this.tmp),e=(r=(r=this.imulK(r)).iadd(this.tmp)).bitLength()}while(e>this.n);var n=e<this.n?-1:r.ucmp(this.p);return 0===n?(r.words[0]=0,r.length=1):n>0?r.isub(this.p):void 0!==r.strip?r.strip():r._strip(),r},A.prototype.split=function(input,t){input.iushrn(this.n,0,t)},A.prototype.imulK=function(t){return t.imul(this.k)},o(x,A),x.prototype.split=function(input,output){for(var t=Math.min(input.length,9),i=0;i<t;i++)output.words[i]=input.words[i];if(output.length=t,input.length<=9)return input.words[0]=0,void(in
vendor: 6,212 bytes, line 11
11put.length=1);var e=input.words[9];for(output.words[output.length++]=4194303&e,i=10;i<input.length;i++){var r=0|input.words[i];input.words[i-10]=(4194303&r)<<4|e>>>22,e=r}e>>>=22,input.words[i-10]=e,0===e&&input.length>10?input.length-=10:input.length-=9},x.prototype.imulK=function(t){t.words[t.length]=0,t.words[t.length+1]=0,t.length+=2;for(var e=0,i=0;i<t.length;i++){var r=0|t.words[i];e+=977*r,t.words[i]=67108863&e,e=64*r+(e/67108864|0)}return 0===t.words[t.length-1]&&(t.length--,0===t.words[t.length-1]&&t.length--),t},o(k,A),o(E,A),o(C,A),C.prototype.imulK=function(t){for(var e=0,i=0;i<t.length;i++){var r=19*(0|t.words[i])+e,n=67108863&r;r>>>=26,t.words[i]=n,e=r}return 0!==e&&(t.words[t.length++]=e),t},h._prime=function(t){if(S[t])return S[t];var e;if("k256"===t)e=new x;else if("p224"===t)e=new k;else if("p192"===t)e=new E;else{if("p25519"!==t)throw new Error("Unknown prime "+t);e=new C}return S[t]=e,e},R.prototype._verify1=function(a){n(0===a.negative,"red works only with positives"),n(a.red,"red works only with red numbers")},R.prototype._verify2=function(a,b){n(0==(a.negative|b.negative),"red works only with positives"),n(a.red&&a.red===b.red,"red works only with red numbers")},R.prototype.imod=function(a){return this.prime?this.prime.ireduce(a)._forceRed(this):a.umod(this.m)._forceRed(this)},R.prototype.neg=function(a){return a.isZero()?a.clone():this.m.sub(a)._forceRed(this)},R.prototype.add=function(a,b){this._verify2(a,b);var t=a.add(b);return t.cmp(this.m)>=0&&t.isub(this.m),t._forceRed(this)},R.prototype.iadd=function(a,b){this._verify2(a,b);var t=a.iadd(b);return t.cmp(this.m)>=0&&t.isub(this.m),t},R.prototype.sub=function(a,b){this._verify2(a,b);var t=a.sub(b);return t.cmpn(0)<0&&t.iadd(this.m),t._forceRed(this)},R.prototype.isub=function(a,b){this._verify2(a,b);var t=a.isub(b);return t.cmpn(0)<0&&t.iadd(this.m),t},R.prototype.shl=function(a,t){return this._verify1(a),this.imod(a.ushln(t))},R.prototype.imul=function(a,b){return this._verify2(a,b),this.imod(a.imul(b))},R.prototype.mul=function(a,b){return this._verify2(a,b),this.imod(a.mul(b))},R.prototype.isqr=function(a){return this.imul(a,a.clone())},R.prototype.sqr=function(a){return this.mul(a,a)},R.prototype.sqrt=function(a){if(a.isZero())return a.clone();var t=this.m.andln(3);if(n(t%2==1),3===t){var e=this.m.add(new h(1)).iushrn(2);return this.pow(a,e)}for(var q=this.m.subn(1),s=0;!q.isZero()&&0===q.andln(1);)s++,q.iushrn(1);n(!q.isZero());var r=new h(1).toRed(this),o=r.redNeg(),c=this.m.subn(1).iushrn(1),f=this.m.bitLength();for(f=new h(2*f*f).toRed(this);0!==this.pow(f,c).cmp(o);)f.redIAdd(o);for(var l=this.pow(f,q),d=this.pow(a,q.addn(1).iushrn(1)),m=this.pow(a,q),v=s;0!==m.cmp(r);){for(var y=m,i=0;0!==y.cmp(r);i++)y=y.redSqr();n(i<v);var b=this.pow(l,new h(1).iushln(v-i-1));d=d.redMul(b),l=b.redSqr(),m=m.redMul(l),v=i}return d},R.prototype.invm=function(a){var t=a._invmp(this.m);return 0!==t.negative?(t.negative=0,this.imod(t).redNeg()):this.imod(t)},R.prototype.pow=function(a,t){if(t.isZero())return new h(1).toRed(this);if(0===t.cmpn(1))return a.clone();var e=new Array(16);e[0]=new h(1).toRed(this),e[1]=a;for(var i=2;i<e.length;i++)e[i]=this.mul(e[i-1],a);var r=e[0],n=0,o=0,c=t.bitLength()%26;for(0===c&&(c=26),i=t.length-1;i>=0;i--){for(var f=t.words[i],l=c-1;l>=0;l--){var d=f>>l&1;r!==e[0]&&(r=this.sqr(r)),0!==d||0!==n?(n<<=1,n|=d,(4===++o||0===i&&0===l)&&(r=this.mul(r,e[n]),o=0,n=0)):o=0}c=26}return r},R.prototype.convertTo=function(t){var e=t.umod(this.m);return e===t?e.clone():e},R.prototype.convertFrom=function(t){var e=t.clone();return e.red=null,e},h.mont=function(t){return new I(t)},o(I,R),I.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},I.prototype.convertFrom=function(t){var e=this.imod(t.mul(this.rinv));return e.red=null,e},I.prototype.imul=function(a,b){if(a.isZero()||b.isZero())return a.words[0]=0,a.length=1,a;var t=a.imul(b),e=t.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),u=t.isub(e).iushrn(this.shift),r=u;return u.cmp(this.m)>=0?r=u.isub(this.m):u.cmpn(0)<0&&(r=u.iadd(this.m)),r._forceRed(this)},I.prototype.mul=function(a,b){if(a.isZero()||b.isZero())return new h(0)._forceRed(this);var t=a.mul(b),e=t.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),u=t.isub(e).iushrn(this.shift),r=u;return u.cmp(this.m)>=0?r=u.isub(this.m):u.cmpn(0)<0&&(r=u.iadd(this.m)),r._forceRed(this)},I.prototype.invm=function(a){return this.imod(a._invmp(this.m).mul(this.r2))._forceRed(this)}}(t,this)}).call(this,r(57)(t))},,function(t,e,r){e.publicEncrypt=r(487),e.privateDecrypt=r(489),e.privateEncrypt=function(t,r){return e.publicEncrypt(t,r,!0)},e.publicDecrypt=function(t,r){return e.privateDecrypt(t,r,!0)}},function(t,e,r){var n=r(127),o=r(69),h=r(92),c=r(277),f=r(278),l=r(177),d=r(279),m=r(168),v=r(7).Buffer;t.exports=function(t,e,r){var y;y=t.padding?t.padding:r?1:4;var w,M=n(t);if(4===y)w=function(t,e){var r=t.modulus.byteLength(),n=e.length,d=h("sha1").update(v.alloc(0)).digest(),m=d.length,y=2*m;if(n>r-y-2)throw new Error("message too long");var w=v.alloc(r-n-y-2),M=r-m-1,_=o(m),S=f(v.concat([d,w,v.alloc(1,1),e],M),c(_,M)),A=f(_,c(S,m));return new l(v.concat([v.alloc(1),A,S],r))}(M,e);else if(1===y)w=function(t,e,r){var n,h=e.length,c=t.modulus.byteLength();if(h>c-11)throw new Error("message too long");n=r?v.alloc(c-h-3,255):function(t){var e,r=v.allocUnsafe(t),i=0,n=o(2*t),h=0;for(;i<t;)h===n.length&&(n=o(2*t),h=0),(e=n[h++])&&(r[i++]=e);return r}(c-h-3);return new l(v.concat([v.from([0,r?1:2]),n,v.alloc(1),e],c))}(M,e,r);else{if(3!==y)throw new Error("unknown padding");if((w=new l(e)).cmp(M.modulus)>=0)throw new Error("data too long for modulus")}return r?m(w,M):d(w,M)}},,function(t,e,r){var n=r(127),o=r(277),h=r(278),c=r(177),f=r(168),l=r(92),d=r(279),m=r(7).Buffer;t.exports=function(t,e,r){var v;v=t.padding?t.padding:r?1:4;var y,w=n(t),M=w.modulus.byteLength();if(e.length>M||new c(e).cmp(w.modulus)>=0)throw new Error("decryption error");y=r?d(new c(e),w):f(e,w);var _=m.alloc(M-y.length);if(y=m.concat([_,y],M),4===v)return function(t,e){var r=t.modulus.byteLength(),n=l("sha1").update(m.alloc(0)).digest(),c=n.length;if(0!==e[0])throw new Error("decryption error");
11var f=e.slice(1,c+1),d=e.slice(c+1),v=h(f,o(d,c)),y=h(d,o(v,r-c-1));if(function(a,b){a=m.from(a),b=m.from(b);var t=0,e=a.length;a.length!==b.length&&(t++,e=Math.min(a.length,b.length));var i=-1;for(;++i<e;)t+=a[i]^b[i];return t}(n,y.slice(0,c)))throw new Error("decryption error");var i=c;for(;0===y[i];)i++;if(1!==y[i++])throw new Error("decryption error");return y.slice(i)}(w,y);if(1===v)return function(t,e,r){var n=e.slice(0,2),i=2,o=0;for(;0!==e[i++];)if(i>=e.length){o++;break}var h=e.slice(2,i-1);("0002"!==n.toString("hex")&&!r||"0001"!==n.toString("hex")&&r)&&o++;h.length<8&&o++;if(o)throw new Error("decryption error");return e.slice(i)}(0,y,r);if(3===v)return y;throw new Error("unknown padding")}},function(t,e,r){"use strict";(function(t,n){function o(){throw new Error("secure random number generation not supported by this browser\nuse chrome, FireFox or Internet Explorer 11")}var h=r(7),c=(r(69),h.Buffer),f=h.kMaxLength,l=t.crypto||t.msCrypto,d=Math.pow(2,32)-1;function m(t,e){if("number"!=typeof t||t!=t)throw new TypeError("offset must be a number");if(t>d||t<0)throw new TypeError("offset must be a uint32");if(t>f||t>e)throw new RangeError("offset out of range")}function v(t,e,r){if("number"!=typeof t||t!=t)throw new TypeError("size must be a number");if(t>d||t<0)throw new TypeError("size must be a uint32");if(t+e>r||t>f)throw new RangeError("buffer too small")}function y(t,e,r,o){var h=t.buffer,c=new Uint8Array(h,e,r);return l.getRandomValues(c),o?void n.nextTick((function(){o(null,t)})):t}l&&l.getRandomValues?(e.randomFill=function(e,r,n,o){if(!(c.isBuffer(e)||e instanceof t.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');if("function"==typeof r)o=r,r=0,n=e.length;else if("function"==typeof n)o=n,n=e.length-r;else if("function"!=typeof o)throw new TypeError('"cb" argument must be a function');return m(r,e.length),v(n,r,e.length),y(e,r,n,o)},e.randomFillSync=function(e,r,n){void 0===r&&(r=0);if(!(c.isBuffer(e)||e instanceof t.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');m(r,e.length),void 0===n&&(n=e.length-r);return v(n,r,e.length),y(e,r,n)}):(e.randomFill=o,e.randomFillSync=o)}).call(this,r(18),r(33))},function(t,e,r){t.exports=self.fetch||(self.fetch=r(130).default||r(130))},function(t,e,r){(function(t,n){var o;!function(h){e&&e.nodeType,t&&t.nodeType;var c="object"==typeof n&&n;c.global!==c&&c.window!==c&&c.self;var f,l=2147483647,d=/^xn--/,m=/[^\x20-\x7E]/,v=/[\x2E\u3002\uFF0E\uFF61]/g,y={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},w=Math.floor,M=String.fromCharCode;function _(t){throw new RangeError(y[t])}function map(t,e){for(var r=t.length,n=[];r--;)n[r]=e(t[r]);return n}function S(t,e){var r=t.split("@"),n="";return r.length>1&&(n=r[0]+"@",t=r[1]),n+map((t=t.replace(v,".")).split("."),e).join(".")}function A(t){for(var e,r,output=[],n=0,o=t.length;n<o;)(e=t.charCodeAt(n++))>=55296&&e<=56319&&n<o?56320==(64512&(r=t.charCodeAt(n++)))?output.push(((1023&e)<<10)+(1023&r)+65536):(output.push(e),n--):output.push(e);return output}function x(t){return map(t,(function(t){var output="";return t>65535&&(output+=M((t-=65536)>>>10&1023|55296),t=56320|1023&t),output+=M(t)})).join("")}function k(t,e){return t+22+75*(t<26)-((0!=e)<<5)}function E(t,e,r){var n=0;for(t=r?w(t/700):t>>1,t+=w(t/e);t>455;n+=36)t=w(t/35);return w(n+36*t/(t+38))}function C(input){var t,e,r,n,o,h,c,f,d,m,v,output=[],y=input.length,i=0,M=128,S=72;for((e=input.lastIndexOf("-"))<0&&(e=0),r=0;r<e;++r)input.charCodeAt(r)>=128&&_("not-basic"),output.push(input.charCodeAt(r));for(n=e>0?e+1:0;n<y;){for(o=i,h=1,c=36;n>=y&&_("invalid-input"),((f=(v=input.charCodeAt(n++))-48<10?v-22:v-65<26?v-65:v-97<26?v-97:36)>=36||f>w((l-i)/h))&&_("overflow"),i+=f*h,!(f<(d=c<=S?1:c>=S+26?26:c-S));c+=36)h>w(l/(m=36-d))&&_("overflow"),h*=m;S=E(i-o,t=output.length+1,0==o),w(i/t)>l-M&&_("overflow"),M+=w(i/t),i%=t,output.splice(i++,0,M)}return x(output)}function R(input){var t,e,r,n,o,h,c,q,f,d,m,v,y,S,x,output=[];for(v=(input=A(input)).length,t=128,e=0,o=72,h=0;h<v;++h)(m=input[h])<128&&output.push(M(m));for(r=n=output.length,n&&output.push("-");r<v;){for(c=l,h=0;h<v;++h)(m=input[h])>=t&&m<c&&(c=m);for(c-t>w((l-e)/(y=r+1))&&_("overflow"),e+=(c-t)*y,t=c,h=0;h<v;++h)if((m=input[h])<t&&++e>l&&_("overflow"),m==t){for(q=e,f=36;!(q<(d=f<=o?1:f>=o+26?26:f-o));f+=36)x=q-d,S=36-d,output.push(M(k(d+x%S,0))),q=w(x/S);output.push(M(k(q,0))),o=E(e,y,r==n),e=0,++r}++e,++t}return output.join("")}f={version:"1.4.1",ucs2:{decode:A,encode:x},decode:C,encode:R,toASCII:function(input){return S(input,(function(t){return m.test(t)?"xn--"+R(t):t}))},toUnicode:function(input){return S(input,(function(t){return d.test(t)?C(t.slice(4).toLowerCase()):t}))}},void 0===(o=function(){return f}.call(e,r,e,t))||(t.exports=o)}()}).call(this,r(57)(t),r(18))},function(t,e,r){"use strict";
11t.exports={isString:function(t){return"string"==typeof t},isObject:function(t){return"object"==typeof t&&null!==t},isNull:function(t){return null===t},isNullOrUndefined:function(t){return null==t}}},function(t,e,r){"use strict";e.decode=e.parse=r(495),e.encode=e.stringify=r(496)},function(t,e,r){"use strict";function n(t,e){return Object.prototype.hasOwnProperty.call(t,e)}t.exports=function(t,e,r,h){e=e||"&",r=r||"=";var c={};if("string"!=typeof t||0===t.length)return c;var f=/\+/g;t=t.split(e);var l=1e3;h&&"number"==typeof h.maxKeys&&(l=h.maxKeys);var d=t.length;l>0&&d>l&&(d=l);for(var i=0;i<d;++i){var m,v,y,w,M=t[i].replace(f,"%20"),_=M.indexOf(r);_>=0?(m=M.substr(0,_),v=M.substr(_+1)):(m=M,v=""),y=decodeURIComponent(m),w=decodeURIComponent(v),n(c,y)?o(c[y])?c[y].push(w):c[y]=[c[y],w]:c[y]=w}return c};var o=Array.isArray||function(t){return"[object Array]"===Object.prototype.toString.call(t)}},function(t,e,r){"use strict";var n=function(t){switch(typeof t){case"string":return t;case"boolean":return t?"true":"false";case"number":return isFinite(t)?t:"";default:return""}};t.exports=function(t,e,r,c){return e=e||"&",r=r||"=",null===t&&(t=void 0),"object"==typeof t?map(h(t),(function(h){var c=encodeURIComponent(n(h))+r;return o(t[h])?map(t[h],(function(t){return c+encodeURIComponent(n(t))})).join(e):c+encodeURIComponent(n(t[h]))})).join(e):c?encodeURIComponent(n(c))+r+encodeURIComponent(n(t)):""};var o=Array.isArray||function(t){return"[object Array]"===Object.prototype.toString.call(t)};function map(t,e){if(t.map)return t.map(e);for(var r=[],i=0;i<t.length;i++)r.push(e(t[i],i));return r}var h=Object.keys||function(t){var e=[];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.push(r);return e}},function(t,e,r){var n,o,h=r(280),c=r(281),f=0,l=0;t.exports=function(t,e,r){var i=e&&r||0,b=e||[],d=(t=t||{}).node||n,m=void 0!==t.clockseq?t.clockseq:o;if(null==d||null==m){var v=h();null==d&&(d=n=[1|v[0],v[1],v[2],v[3],v[4],v[5]]),null==m&&(m=o=16383&(v[6]<<8|v[7]))}var y=void 0!==t.msecs?t.msecs:(new Date).getTime(),w=void 0!==t.nsecs?t.nsecs:l+1,dt=y-f+(w-l)/1e4;if(dt<0&&void 0===t.clockseq&&(m=m+1&16383),(dt<0||y>f)&&void 0===t.nsecs&&(w=0),w>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");f=y,l=w,o=m;var M=(1e4*(268435455&(y+=122192928e5))+w)%4294967296;b[i++]=M>>>24&255,b[i++]=M>>>16&255,b[i++]=M>>>8&255,b[i++]=255&M;var _=y/4294967296*1e4&268435455;b[i++]=_>>>8&255,b[i++]=255&_,b[i++]=_>>>24&15|16,b[i++]=_>>>16&255,b[i++]=m>>>8|128,b[i++]=255&m;for(var S=0;S<6;++S)b[i+S]=d[S];return e||c(b)}},function(t,e,r){var n=r(280),o=r(281);t.exports=function(t,e,r){var i=e&&r||0;"string"==typeof t&&(e="binary"===t?new Array(16):null,t=null);var h=(t=t||{}).random||(t.rng||n)();if(h[6]=15&h[6]|64,h[8]=63&h[8]|128,e)for(var c=0;c<16;++c)e[i+c]=h[c];return e||o(h)}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Sha256=void 0;var n=r(282),o=r(285),h=r(500),c=r(503),f=r(505),l=r(178),d=function(){function t(t){c.supportsWebCrypto(l.locateWindow())?this.hash=new o.Sha256(t):f.isMsWindow(l.locateWindow())?this.hash=new n.Sha256(t):this.hash=new h.Sha256(t)}return t.prototype.update=function(data,t){this.hash.update(data,t)},t.prototype.digest=function(){return this.hash.digest()},t}();e.Sha256=d},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),r(0).__exportStar(r(501),e)},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Sha256=void 0;var n=r(0),o=r(286),h=r(502),c=r(73),f=function(){function t(t){if(this.hash=new h.RawSha256,t){this.outer=new h.RawSha256;var e=function(t){var input=l(t);if(input.byteLength>o.BLOCK_SIZE){var e=new h.RawSha256;e.update(input),input=e.digest()}var r=new Uint8Array(o.BLOCK_SIZE);return r.set(input),r}(t),r=new Uint8Array(o.BLOCK_SIZE);r.set(e);for(var i=0;i<o.BLOCK_SIZE;i++)e[i]^=54,r[i]^=92;this.hash.update(e),this.outer.update(r);for(i=0;i<e.byteLength;i++)e[i]=0}}return t.prototype.update=function(t){if(!function(data){if("string"==typeof data)return 0===data.length;return 0===data.byteLength}(t)&&!this.error)try{this.hash.update(l(t))}catch(t){this.error=t}},t.prototype.digestSync=function(){if(this.error)throw this.error;return this.outer?(this.outer.finished||this.outer.update(this.hash.digest()),this.outer.digest()):this.hash.digest()},t.prototype.digest=function(){return n.__awaiter(this,void 0,void 0,(function(){return n.__generator(this,(function(t){return[2,this.digestSync()]}))}))},t}();function l(data){return"string"==typeof data?c.fromUtf8(data):ArrayBuffer.isView(data)?new Uint8Array(data.buffer,data.byteOffset,data.byteLength/Uint8Array.BYTES_PER_ELEMENT):new Uint8Array(data)}e.Sha256=f},function(t,e,r){"use strict";
11Object.defineProperty(e,"__esModule",{value:!0}),e.RawSha256=void 0;var n=r(286),o=function(){function t(){this.state=Int32Array.from(n.INIT),this.temp=new Int32Array(64),this.buffer=new Uint8Array(64),this.bufferLength=0,this.bytesHashed=0,this.finished=!1}return t.prototype.update=function(data){if(this.finished)throw new Error("Attempted to update an already finished hash.");var t=0,e=data.byteLength;if(this.bytesHashed+=e,8*this.bytesHashed>n.MAX_HASHABLE_LENGTH)throw new Error("Cannot hash more than 2^53 - 1 bits");for(;e>0;)this.buffer[this.bufferLength++]=data[t++],e--,this.bufferLength===n.BLOCK_SIZE&&(this.hashBuffer(),this.bufferLength=0)},t.prototype.digest=function(){if(!this.finished){var t=8*this.bytesHashed,e=new DataView(this.buffer.buffer,this.buffer.byteOffset,this.buffer.byteLength),r=this.bufferLength;if(e.setUint8(this.bufferLength++,128),r%n.BLOCK_SIZE>=n.BLOCK_SIZE-8){for(var i=this.bufferLength;i<n.BLOCK_SIZE;i++)e.setUint8(i,0);this.hashBuffer(),this.bufferLength=0}for(i=this.bufferLength;i<n.BLOCK_SIZE-8;i++)e.setUint8(i,0);e.setUint32(n.BLOCK_SIZE-8,Math.floor(t/4294967296),!0),e.setUint32(n.BLOCK_SIZE-4,t),this.hashBuffer(),this.finished=!0}var o=new Uint8Array(n.DIGEST_LENGTH);for(i=0;i<8;i++)o[4*i]=this.state[i]>>>24&255,o[4*i+1]=this.state[i]>>>16&255,o[4*i+2]=this.state[i]>>>8&255,o[4*i+3]=this.state[i]>>>0&255;return o},t.prototype.hashBuffer=function(){for(var t=this.buffer,e=this.state,r=e[0],o=e[1],h=e[2],c=e[3],f=e[4],l=e[5],d=e[6],m=e[7],i=0;i<n.BLOCK_SIZE;i++){if(i<16)this.temp[i]=(255&t[4*i])<<24|(255&t[4*i+1])<<16|(255&t[4*i+2])<<8|255&t[4*i+3];else{var u=this.temp[i-2],v=(u>>>17|u<<15)^(u>>>19|u<<13)^u>>>10,y=((u=this.temp[i-15])>>>7|u<<25)^(u>>>18|u<<14)^u>>>3;this.temp[i]=(v+this.temp[i-7]|0)+(y+this.temp[i-16]|0)}var w=(((f>>>6|f<<26)^(f>>>11|f<<21)^(f>>>25|f<<7))+(f&l^~f&d)|0)+(m+(n.KEY[i]+this.temp[i]|0)|0)|0,M=((r>>>2|r<<30)^(r>>>13|r<<19)^(r>>>22|r<<10))+(r&o^r&h^o&h)|0;m=d,d=l,l=f,f=c+w|0,c=h,h=o,o=r,r=w+M|0}e[0]+=r,e[1]+=o,e[2]+=h,e[3]+=c,e[4]+=f,e[5]+=l,e[6]+=d,e[7]+=m},t}();e.RawSha256=o},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),r(0).__exportStar(r(504),e)},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.supportsZeroByteGCM=e.supportsSubtleCrypto=e.supportsSecureRandom=e.supportsWebCrypto=void 0;var n=r(0),o=["decrypt","digest","encrypt","exportKey","generateKey","importKey","sign","verify"];function h(t){return"object"==typeof t&&"object"==typeof t.crypto&&"function"==typeof t.crypto.getRandomValues}function c(t){return t&&o.every((function(e){return"function"==typeof t[e]}))}e.supportsWebCrypto=function(t){return!(!h(t)||"object"!=typeof t.crypto.subtle)&&c(t.crypto.subtle)},e.supportsSecureRandom=h,e.supportsSubtleCrypto=c,e.supportsZeroByteGCM=function(t){return n.__awaiter(this,void 0,void 0,(function(){var e;return n.__generator(this,(function(r){switch(r.label){case 0:if(!c(t))return[2,!1];r.label=1;case 1:return r.trys.push([1,4,,5]),[4,t.generateKey({name:"AES-GCM",length:128},!1,["encrypt"])];case 2:return e=r.sent(),[4,t.encrypt({name:"AES-GCM",iv:new Uint8Array(Array(12)),additionalData:new Uint8Array(Array(16)),tagLength:128},e,new Uint8Array(0))];case 3:return[2,16===r.sent().byteLength];case 4:return r.sent(),[2,!1];case 5:return[2]}}
11))}))}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(0);n.__exportStar(r(506),e),n.__exportStar(r(507),e),n.__exportStar(r(508),e),n.__exportStar(r(509),e),n.__exportStar(r(510),e)},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0})},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0})},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0})},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0})},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.isMsWindow=void 0;var n=["decrypt","digest","encrypt","exportKey","generateKey","importKey","sign","verify"];e.isMsWindow=function(t){if(function(t){return"MSInputMethodContext"in t&&"msCrypto"in t}(t)&&void 0!==t.msCrypto.subtle){var e=t.msCrypto,r=e.getRandomValues,o=e.subtle;return n.map((function(t){return o[t]})).concat(r).every((function(t){return"function"==typeof t}))}return!1}},,,,,,,,,,,,,,function(t,e,r){"use strict";r.d(e,"a",(function(){return d}));var n=r(77),o=function(){return(o=Object.assign||function(t){for(var s,i=1,e=arguments.length;i<e;i++)for(var p in s=arguments[i])Object.prototype.hasOwnProperty.call(s,p)&&(t[p]=s[p]);return t}).apply(this,arguments)},h=function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,o,i=r.call(t),h=[];try{for(;(void 0===e||e-- >0)&&!(n=i.next()).done;)h.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return h},c=function(){for(var t=[],i=0;i<arguments.length;i++)t=t.concat(h(arguments[i]));return t},f=new n.a("Hub"),l="undefined"!=typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("amplify_default"):"@@amplify_default";var d=new(function(){function t(t){this.listeners=[],this.patterns=[],this.protectedChannels=["core","auth","api","analytics","interactions","pubsub","storage","xr"],this.name=t}return t.prototype.remove=function(t,e){if(t instanceof RegExp){var r=this.patterns.find((function(e){return e.pattern.source===t.source}));if(!r)return void f.warn("No listeners for "+t);this.patterns=c(this.patterns.filter((function(t){return t!==r})))}else{var n=this.listeners[t];if(!n)return void f.warn("No listeners for "+t);this.listeners[t]=c(n.filter((function(t){return t.callback!==e})))}},t.prototype.dispatch=function(t,e,source,r){(void 0===source&&(source=""),this.protectedChannels.indexOf(t)>-1)&&(r===l||f.warn("WARNING: "+t+" is protected and dispatching on it can have unintended consequences"));var n={channel:t,payload:o({},e),source:source,patternInfo:[]};try{this._toListeners(n)}catch(t){f.error(t)}},t.prototype.listen=function(t,e,r){var n,o=this;if(void 0===r&&(r="noname"),function(t){return void 0!==t.onHubCapsule}(e))f.warn("WARNING onHubCapsule is Deprecated. Please pass in a callback."),n=e.onHubCapsule.bind(e);else{if("function"!=typeof e)throw new Error("No callback supplied to Hub");n=e}if(t instanceof RegExp)this.patterns.push({pattern:t,callback:n});else{var h=this.listeners[t];h||(h=[],this.listeners[t]=h),h.push({name:r,callback:n})}return function(){o.remove(t,n)}},t.prototype._toListeners=function(t){var e=t.channel,r=t.payload,n=this.listeners[e];if(n&&n.forEach((function(n){f.debug("Dispatching to "+e+" with ",r);try{n.callback(t)}catch(t){f.error(t)}})),this.patterns.length>0){if(!r.message)return void f.warn("Cannot perform pattern matching without a message
11key");var c=r.message;this.patterns.forEach((function(pattern){var e=c.match(pattern.pattern);if(e){var r=h(e).slice(1),n=o(o({},t),{patternInfo:r});try{pattern.callback(n)}catch(t){f.error(t)}}}))}},t}())("__default__")},function(t,e,r){"use strict";r.d(e,"a",(function(){return h}));var n=new(r(77).a)("Parser"),o=function(t){var e,r={};if(t.aws_mobile_analytics_app_id){var o={AWSPinpoint:{appId:t.aws_mobile_analytics_app_id,region:t.aws_mobile_analytics_app_region}};r.Analytics=o}return(t.aws_cognito_identity_pool_id||t.aws_user_pools_id)&&(r.Auth={userPoolId:t.aws_user_pools_id,userPoolWebClientId:t.aws_user_pools_web_client_id,region:t.aws_cognito_region,identityPoolId:t.aws_cognito_identity_pool_id,identityPoolRegion:t.aws_cognito_region,mandatorySignIn:"enable"===t.aws_mandatory_sign_in}),e=t.aws_user_files_s3_bucket?{AWSS3:{bucket:t.aws_user_files_s3_bucket,region:t.aws_user_files_s3_bucket_region,dangerouslyConnectToHttpEndpointForTesting:t.aws_user_files_s3_dangerously_connect_to_http_endpoint_for_testing}}:t?t.Storage||t:{},r.Analytics=Object.assign({},r.Analytics,t.Analytics),r.Auth=Object.assign({},r.Auth,t.Auth),r.Storage=Object.assign({},e),n.debug("parse config",t,"to amplifyconfig",r),r},h=function(){function t(){}return t.parseMobilehubConfig=o,t}()},function(t,e,r){"use strict";r.d(e,"a",(function(){return Zr}));var n=r(77),o=r(298),h=r(43),c=function(){var t=function(e,b){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,b){t.__proto__=b}||function(t,b){for(var p in b)b.hasOwnProperty(p)&&(t[p]=b[p])})(e,b)};return function(e,b){function r(){this.constructor=e}t(e,b),e.prototype=null===b?Object.create(b):(r.prototype=b.prototype,new r)}}(),f=function(t,e,r,n){return new(r||(r=Promise))((function(o,h){function c(t){try{l(n.next(t))}catch(t){h(t)}}function f(t){try{l(n.throw(t))}catch(t){h(t)}}function l(t){var e;t.done?o(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(c,f)}l((n=n.apply(t,e||[])).next())}))},l=function(t,body){var e,r,n,g,o={label:0,sent:function(){if(1&n[0])throw n[1];return n[1]},trys:[],ops:[]};return g={next:h(0),throw:h(1),return:h(2)},"function"==typeof Symbol&&(g[Symbol.iterator]=function(){return this}),g;function h(h){return function(c){return function(h){if(e)throw new TypeError("Generator is already executing.");for(;o;)try{if(e=1,r&&(n=2&h[0]?r.return:h[0]?r.throw||((n=r.return)&&n.call(r),0):r.next)&&!(n=n.call(r,h[1])).done)return n;switch(r=0,n&&(h=[2&h[0],n.value]),h[0]){case 0:case 1:n=h;break;case 4:return o.label++,{value:h[1],done:!1};case 5:o.label++,r=h[1],h=[0];continue;case 7:h=o.ops.pop(),o.trys.pop();continue;default:if(!(n=o.trys,(n=n.length>0&&n[n.length-1])||6!==h[0]&&2!==h[0])){o=0;continue}if(3===h[0]&&(!n||h[1]>n[0]&&h[1]<n[3])){o.label=h[1];break}if(6===h[0]&&o.label<n[1]){o.label=n[1],n=h;break}if(n&&o.label<n[2]){o.label=n[2],o.ops.push(h);break}n[2]&&o.ops.pop(),o.trys.pop();continue}h=body.call(t,o)}catch(t){h=[6,t],r=0}finally{e=n=0}if(5&h[0])throw h[1];return{value:h[0]?h[1]:void 0,done:!0}}([h,c])}}},d=function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,o,i=r.call(t),h=[];try{for(;(void 0===e||e-- >0)&&!(n=i.next()).done;)h.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return h},m=function(){for(var t=[],i=0;i<arguments.length;i++)t=t.concat(d(arguments[i]));return t},v=new n.a("Util"),y=function(t){function e(e){var r=t.call(this,e)||this;return r.nonRetryable=!0,r}return c(e,t),e}(Error);var w=function(t,e,r){return void 0===r&&(r=3e5),function t(e,r,n,o){return void 0===o&&(o=1),f(this,void 0,void 0,(function(){var h,c;return l(this,(function(f){switch(f.label){case 0:if("function"!=typeof e)throw Error("functionToRetry must be a function");v.debug(e.name+" attempt #"+o+" with this vars: "+JSON.stringify(r)),f.label=1;case 1:return f.trys.push([1,3,,8]),[4,e.apply(void 0,m(r))];case 2:return[2,f.sent()];case 3:if(h=f.sent(),v.debug("error on "+e.name,h),(l=h)&&l.nonRetryable)throw v.debug(e.name+" non retryable error",h),h;return c=n(o,r,h),v.debug(e.name+" retrying in "+c+" ms"),!1===c?[3,6]:[4,new Promise((function(t){return setTimeout(t,c)}))];case 4:return f.sent(),[4,t(e,r,n,o+1)];case 5:return[2,f.sent()];case 6:throw h;case 7:return[3,8];case 8:return[2]}var l}))}))}(t,e,function(t){return function(e){var r=100*Math.pow(2,e)+100*Math.random();return!(r>t)&&r}}(r))},M=function(t,e,r,n){return new(r||(r=Promise))((function(o,h){function c(t){try{l(n.next(t))}catch(t){h(t)}}function f(t){try{l(n.throw(t))}catch(t){h(t)}}function l(t){var e;t.done?o(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(c,f)}l((n=n.apply(t,e||[])).next())}))},_=function(t,body){var e,r,n,g,o={label:0,sent:function(){if(1&n[0])throw n[1];return n[1]},trys:[],ops:[]};return g={next:h(0),throw:h(1),return:h(2)},"function"==typeof Symbol&&(g[Symbol.iterator]=function(){return this}),g;function h(h){return function(c){return function(h){if(e)throw new TypeError("Generator is already executing.");for(;o;)try{if(e=1,r&&(n=2&h[0]?r.return:h[0]?r.throw||((n=r.return)&&n.call(r),0):r.next)&&!(n=n.call(r,h[1])).done)return n;switch(r=0,n&&(h=[2&h[0],n.value]),h[0]){case 0:case 1:n=h;break;case 4:return o.label++,{value:h[1],done:!1};case 5:o.label++,r=h[1],h=[0];continue;case 7:h=o.ops.pop(),o.trys.pop();continue;default:if(!(n=o.trys,(n=n.length>0&&n[n.length-1])||6!==h[0]&&2!==h[0])){o=0;continue}
11if(3===h[0]&&(!n||h[1]>n[0]&&h[1]<n[3])){o.label=h[1];break}if(6===h[0]&&o.label<n[1]){o.label=n[1],n=h;break}if(n&&o.label<n[2]){o.label=n[2],o.ops.push(h);break}n[2]&&o.ops.pop(),o.trys.pop();continue}h=body.call(t,o)}catch(t){h=[6,t],r=0}finally{e=n=0}if(5&h[0])throw h[1];return{value:h[0]?h[1]:void 0,done:!0}}([h,c])}}},S=new n.a("CognitoCredentials"),A=new Promise((function(t,e){return Object(h.b)().isBrowser?(window.gapi&&window.gapi.auth2?window.gapi.auth2:null)?(S.debug("google api already loaded"),t()):void setTimeout((function(){return t()}),2e3):(S.debug("not in the browser, directly resolved"),t())})),x=function(){function t(){this.initialized=!1,this.refreshGoogleToken=this.refreshGoogleToken.bind(this),this._refreshGoogleTokenImpl=this._refreshGoogleTokenImpl.bind(this)}return t.prototype.refreshGoogleToken=function(){return M(this,void 0,void 0,(function(){return _(this,(function(t){switch(t.label){case 0:return this.initialized?[3,2]:(S.debug("need to wait for the Google SDK loaded"),[4,A]);case 1:t.sent(),this.initialized=!0,S.debug("finish waiting"),t.label=2;case 2:return[2,this._refreshGoogleTokenImpl()]}}))}))},t.prototype._refreshGoogleTokenImpl=function(){var t=null;return Object(h.b)().isBrowser&&(t=window.gapi&&window.gapi.auth2?window.gapi.auth2:null),t?new Promise((function(e,r){t.getAuthInstance().then((function(t){t||(S.debug("google Auth undefined"),r(new y("google Auth undefined")));var n=t.currentUser.get();n.isSignedIn()?(S.debug("refreshing the google access token"),n.reloadAuthResponse().then((function(t){var r=t.id_token,n=t.expires_at;e({token:r,expires_at:n})}
11)).catch((function(t){t&&"network_error"===t.error?r("Network error reloading google auth response"):r(new y("Failed to reload google auth response"))}))):r(new y("User is not signed in with Google"))})).catch((function(t){S.debug("Failed to refresh google token",t),r(new y("Failed to refresh google token"))}))})):(S.debug("no gapi auth2 available"),Promise.reject("no gapi auth2 available"))},t}(),k=function(t,e,r,n){return new(r||(r=Promise))((function(o,h){function c(t){try{l(n.next(t))}catch(t){h(t)}}function f(t){try{l(n.throw(t))}catch(t){h(t)}}function l(t){var e;t.done?o(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(c,f)}l((n=n.apply(t,e||[])).next())}))},E=function(t,body){var e,r,n,g,o={label:0,sent:function(){if(1&n[0])throw n[1];return n[1]},trys:[],ops:[]};return g={next:h(0),throw:h(1),return:h(2)},"function"==typeof Symbol&&(g[Symbol.iterator]=function(){return this}),g;function h(h){return function(c){return function(h){if(e)throw new TypeError("Generator is already executing.");for(;o;)try{if(e=1,r&&(n=2&h[0]?r.return:h[0]?r.throw||((n=r.return)&&n.call(r),0):r.next)&&!(n=n.call(r,h[1])).done)return n;switch(r=0,n&&(h=[2&h[0],n.value]),h[0]){case 0:case 1:n=h;break;case 4:return o.label++,{value:h[1],done:!1};case 5:o.label++,r=h[1],h=[0];continue;case 7:h=o.ops.pop(),o.trys.pop();continue;default:if(!(n=o.trys,(n=n.length>0&&n[n.length-1])||6!==h[0]&&2!==h[0])){o=0;continue}if(3===h[0]&&(!n||h[1]>n[0]&&h[1]<n[3])){o.label=h[1];break}if(6===h[0]&&o.label<n[1]){o.label=n[1],n=h;break}if(n&&o.label<n[2]){o.label=n[2],o.ops.push(h);break}n[2]&&o.ops.pop(),o.trys.pop();continue}h=body.call(t,o)}catch(t){h=[6,t],r=0}finally{e=n=0}if(5&h[0])throw h[1];return{value:h[0]?h[1]:void 0,done:!0}}([h,c])}}},C=new n.a("CognitoCredentials"),R=new Promise((function(t,e){return Object(h.b)().isBrowser?window.FB?(C.debug("FB SDK already loaded"),t()):void setTimeout((function(){return t()}),2e3):(C.debug("not in the browser, directly resolved"),t())})),I=function(){function t(){this.initialized=!1,this.refreshFacebookToken=this.refreshFacebookToken.bind(this),this._refreshFacebookTokenImpl=this._refreshFacebookTokenImpl.bind(this)}return t.prototype.refreshFacebookToken=function(){return k(this,void 0,void 0,(function(){return E(this,(function(t){switch(t.label){case 0:return this.initialized?[3,2]:(C.debug("need to wait for the Facebook SDK loaded"),[4,R]);case 1:t.sent(),this.initialized=!0,C.debug("finish waiting"),t.label=2;case 2:return[2,this._refreshFacebookTokenImpl()]}}))}))},t.prototype._refreshFacebookTokenImpl=function(){var t=null;if(Object(h.b)().isBrowser&&(t=window.FB),!t){return C.debug("no fb sdk available"),Promise.reject(new y("no fb sdk available"))}return new Promise((function(e,r){t.getLoginStatus((function(t){if(t&&t.authResponse){var n=t.authResponse,o=n.accessToken,h=1e3*n.expiresIn+(new Date).getTime();if(!o){c="the jwtToken is undefined";C.debug(c),r(new y(c))}e({token:o,expires_at:h})}else{var c="no response from facebook when refreshing the jwt token";C.debug(c),r(new y(c))}}),{scope:"public_profile,email"})}))},t}(),P=new x,T=new I,O={userAgent:"aws-amplify/3.8.7 js",product:"",navigator:null,isReactNative:!1};if("undefined"!=typeof navigator&&navigator.product)switch(O.product=navigator.product||"",O.navigator=navigator||null,navigator.product){case"ReactNative":O.userAgent="aws-amplify/3.8.7 react-native",O.isReactNative=!0;break;default:O.userAgent="aws-amplify/3.8.7 js",O.isReactNative=!1}var j=function(){return O.userAgent},U=r(181),B=r(0),D=function(t,b){return(D=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,b){t.__proto__=b}||function(t,b){for(var p in b)Object.prototype.hasOwnProperty.call(b,p)&&(t[p]=b[p])})(t,b)};function F(t,b){function e(){this.constructor=t}D(t,b),t.prototype=null===b?Object.create(b):(e.prototype=b.prototype,new e)}var L=function(){return(L=Object.assign||function(t){for(var s,i=1,e=arguments.length;i<e;i++)for(var p in s=arguments[i])Object.prototype.hasOwnProperty.call(s,p)&&(t[p]=s[p]);return t}).apply(this,arguments)};function N(t,e,r,n){return new(r||(r=Promise))((function(o,h){function c(t){try{l(n.next(t))}catch(t){h(t)}}function f(t){try{l(n.throw(t))}catch(t){h(t)}}function l(t){var e;t.done?o(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(c,f)}l((n=n.apply(t,e||[])).next())}))}function H(t,body){var e,r,n,g,o={label:0,sent:function(){if(1&n[0])throw n[1];return n[1]},trys:[],ops:[]};return g={next:h(0),throw:h(1),return:h(2)},"function"==typeof Symbol&&(g[Symbol.iterator]=function(){return this}),g;function h(h){return function(c){return function(h){if(e)throw new TypeError("Generator is already executing.");for(;o;)try{if(e=1,r&&(n=2&h[0]?r.return:h[0]?r.throw||((n=r.return)&&n.call(r),0):r.next)&&!(n=n.call(r,h[1])).done)return n;switch(r=0,n&&(h=[2&h[0],n.value]),h[0]){case 0:case 1:n=h;break;case 4:return o.label++,{value:h[1],done:!1};case 5:o.label++,r=h[1],h=[0];continue;case 7:h=o.ops.pop(),o.trys.pop();continue;default:if(!(n=o.trys,(n=n.length>0&&n[n.length-1])||6!==h[0]&&2!==h[0])){o=0;continue}
11if(3===h[0]&&(!n||h[1]>n[0]&&h[1]<n[3])){o.label=h[1];break}if(6===h[0]&&o.label<n[1]){o.label=n[1],n=h;break}if(n&&o.label<n[2]){o.label=n[2],o.ops.push(h);break}n[2]&&o.ops.pop(),o.trys.pop();continue}h=body.call(t,o)}catch(t){h=[6,t],r=0}finally{e=n=0}if(5&h[0])throw h[1];return{value:h[0]?h[1]:void 0,done:!0}}([h,c])}}}Object.create;function z(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,o,i=r.call(t),h=[];try{for(;(void 0===e||e-- >0)&&!(n=i.next()).done;)h.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return h}var V,K,Z,W,G,J,Y,Q,X,$,tt,et,it,nt,ot,st,at,ut,ht,ct,ft,lt,pt,mt,gt,vt,yt,bt,wt,Mt,_t,St,At,xt,kt,Et,Ct,Rt,It,Pt,Tt,Ot,jt,Ut,Bt,Dt,Ft,Lt,Nt,qt,Ht,zt,Vt,Kt,Zt,Wt,Gt;Object.create;!function(t){t.AUTHENTICATED_ROLE="AuthenticatedRole",t.DENY="Deny"}(V||(V={})),(K||(K={})).filterSensitiveLog=function(t){return L({},t)},(Z||(Z={})).filterSensitiveLog=function(t){return L({},t)},(W||(W={})).filterSensitiveLog=function(t){return L({},t)},(G||(G={})).filterSensitiveLog=function(t){return L({},t)},(J||(J={})).filterSensitiveLog=function(t){return L({},t)},(Y||(Y={})).filterSensitiveLog=function(t){return L({},t)},(Q||(Q={})).filterSensitiveLog=function(t){return L({},t)},(X||(X={})).filterSensitiveLog=function(t){return L({},t)},($||($={})).filterSensitiveLog=function(t){return L({},t)},(tt||(tt={})).filterSensitiveLog=function(t){return L({},t)},function(t){t.ACCESS_DENIED="AccessDenied",t.INTERNAL_SERVER_ERROR="InternalServerError"}(et||(et={})),(it||(it={})).filterSensitiveLog=function(t){return L({},t)},(nt||(nt={})).filterSensitiveLog=function(t){return L({},t)},(ot||(ot={})).filterSensitiveLog=function(t){return L({},t)},(st||(st={})).filterSensitiveLog=function(t){return L({},t)},(at||(at={})).filterSensitiveLog=function(t){return L({},t)},(ut||(ut={})).filterSensitiveLog=function(t){return L({},t)},(ht||(ht={})).filterSensitiveLog=function(t){return L({},t)},(ct||(ct={})).filterSensitiveLog=function(t){return L({},t)},(ft||(ft={})).filterSensitiveLog=function(t){return L({},t)},(lt||(lt={})).filterSensitiveLog=function(t){return L({},t)},(pt||(pt={})).filterSensitiveLog=function(t){return L({},t)},(mt||(mt={})).filterSensitiveLog=function(t){return L({},t)},(gt||(gt={})).filterSensitiveLog=function(t){return L({},t)},(vt||(vt={})).filterSensitiveLog=function(t){return L({},t)},(yt||(yt={})).filterSensitiveLog=function(t){return L({},t)},function(t){t.CONTAINS="Contains",t.EQUALS="Equals",t.NOT_EQUAL="NotEqual",t.STARTS_WITH="StartsWith"}(bt||(bt={})),(wt||(wt={})).filterSensitiveLog=function(t){return L({},t)},(Mt||(Mt={})).filterSensitiveLog=function(t){return L({},t)},function(t){t.RULES="Rules",t.TOKEN="Token"}(_t||(_t={})),(St||(St={})).filterSensitiveLog=function(t){return L({},t)},(At||(At={})).filterSensitiveLog=function(t){return L({},t)},(xt||(xt={})).filterSensitiveLog=function(t){return L({},t)},(kt||(kt={})).filterSensitiveLog=function(t){return L({},t)},(Et||(Et={})).filterSensitiveLog=function(t){return L({},t)},(Ct||(Ct={})).filterSensitiveLog=function(t){return L({},t)},(Rt||(Rt={})).filterSensitiveLog=function(t){return L({},t)},(It||(It={})).filterSensitiveLog=function(t){return L({},t)},(Pt||(Pt={})).filterSensitiveLog=function(t){return L({},t)},(Tt||(Tt={})).filterSensitiveLog=function(t){return L({},t)},(Ot||(Ot={})).filterSensitiveLog=function(t){return L({},t)},(jt||(jt={})).filterSensitiveLog=function(t){return L({},t)},(Ut||(Ut={})).filterSensitiveLog=function(t){return L({},t)},(Bt||(Bt={})).filterSensitiveLog=function(t){return L({},t)},(Dt||(Dt={})).filterSensitiveLog=function(t){return L({},t)},(Ft||(Ft={})).filterSensitiveLog=function(t){return L({},t)},(Lt||(Lt={})).filterSensitiveLog=function(t){return L({},t)},(Nt||(Nt={})).filterSensitiveLog=function(t){return L({},t)},(qt||(qt={})).filterSensitiveLog=function(t){return L({},t)},(Ht||(Ht={})).filterSensitiveLog=function(t){return L({},t)},(zt||(zt={})).filterSensitiveLog=function(t){return L({},t)},(Vt||(Vt={})).filterSensitiveLog=function(t){return L({},t)},(Kt||(Kt={})).filterSensitiveLog=function(t){return L({},t)},(Zt||(Zt={})).filterSensitiveLog=function(t){return L({},t)},(Wt||(Wt={})).filterSensitiveLog=function(t){return L({},t)},(Gt||(Gt={})).filterSensitiveLog=function(t){return L({},t)};var Jt=r(23),Yt=function(output,t){return N(void 0,void 0,void 0,(function(){var e,r,n,o,h,c,f,l,d,m,v,y,w,M,_,S;return H(this,(function(A){switch(A.label){case 0:return r=[L({},output)],S={},[4,xe(output.body,t)];case 1:switch(e=L.apply(void 0,r.concat([(S.body=A.sent(),S)])),o="UnknownError",h=e.body.__type.split("#"),o=void 0===h[1]?h[0]:h[1],o){case"ExternalServiceException":case"com.amazonaws.cognitoidentity#ExternalServiceException":return[3,2];case"InternalErrorException":case"com.amazonaws.cognitoidentity#InternalErrorException":return[3,4];case"InvalidIdentityPoolConfigurationException":case"com.amazonaws.cognitoidentity#InvalidIdentityPoolConfigurationException":return[3,6];case"InvalidParameterException":case"com.amazonaws.cognitoidentity#InvalidParameterException":return[3,8];case"NotAuthorizedException":case"com.amazonaws.cognitoidentity#NotAuthorizedException":return[3,10];case"ResourceConflictException":case"com.amazonaws.cognitoidentity#ResourceConflictException":return[3,12];case"ResourceNotFoundException":case"com.amazonaws.cognitoidentity#ResourceNotFoundException":return[3,14];case"TooManyRequestsException":case"com.amazonaws.cognitoidentity#TooManyRequestsException":return[3,16
11]}return[3,18];case 2:return c=[{}],[4,Xt(e,t)];case 3:return n=L.apply(void 0,[L.apply(void 0,c.concat([A.sent()])),{name:o,$metadata:_e(output)}]),[3,19];case 4:return f=[{}],[4,$t(e,t)];case 5:return n=L.apply(void 0,[L.apply(void 0,f.concat([A.sent()])),{name:o,$metadata:_e(output)}]),[3,19];case 6:return l=[{}],[4,te(e,t)];case 7:return n=L.apply(void 0,[L.apply(void 0,l.concat([A.sent()])),{name:o,$metadata:_e(output)}]),[3,19];case 8:return d=[{}],[4,ee(e,t)];case 9:return n=L.apply(void 0,[L.apply(void 0,d.concat([A.sent()])),{name:o,$metadata:_e(output)}]),[3,19];case 10:return m=[{}],[4,ie(e,t)];case 11:return n=L.apply(void 0,[L.apply(void 0,m.concat([A.sent()])),{name:o,$metadata:_e(output)}]),[3,19];case 12:return v=[{}],[4,ne(e,t)];case 13:return n=L.apply(void 0,[L.apply(void 0,v.concat([A.sent()])),{name:o,$metadata:_e(output)}]),[3,19];case 14:return y=[{}],[4,oe(e,t)];case 15:return n=L.apply(void 0,[L.apply(void 0,y.concat([A.sent()])),{name:o,$metadata:_e(output)}]),[3,19];case 16:return w=[{}],[4,se(e,t)];case 17:return n=L.apply(void 0,[L.apply(void 0,w.concat([A.sent()])),{name:o,$metadata:_e(output)}]),[3,19];case 18:M=e.body,o=M.code||M.Code||o,n=L(L({},M),{name:""+o,message:M.message||M.Message||o,$fault:"client",$metadata:_e(output)}),A.label=19;case 19:return _=n.message||n.Message||o,n.message=_,delete n.Message,[2,Promise.reject(Object.assign(new Error(_),n))]}}))}))},Qt=function(output,t){return N(void 0,void 0,void 0,(function(){var e,r,n,o,h,c,f,l,d,m,v,y,w,M,_,S;return H(this,(function(A){switch(A.label){case 0:return r=[L({},output)],S={},[4,xe(output.body,t)];case 1:switch(e=L.apply(void 0,r.concat([(S.body=A.sent(),S)])),o="UnknownError",h=e.body.__type.split("#"),o=void 0===h[1]?h[0]:h[1],o){case"ExternalServiceException":case"com.amazonaws.cognitoidentity#ExternalServiceException":return[3,2];case"InternalErrorException":case"com.amazonaws.cognitoidentity#InternalErrorException":return[3,4];case"InvalidParameterException":case"com.amazonaws.cognitoidentity#InvalidParameterException":return[3,6];case"LimitExceededException":case"com.amazonaws.cognitoidentity#LimitExceededException":return[3,8];case"NotAuthorizedException":case"com.amazonaws.cognitoidentity#NotAuthorizedException":return[3,10];case"ResourceConflictException":case"com.amazonaws.cognitoidentity#ResourceConflictException":return[3,12];case"ResourceNotFoundException":case"com.amazonaws.cognitoidentity#ResourceNotFoundException":return[3,14];case"TooManyRequestsException":case"com.amazonaws.cognitoidentity#TooManyRequestsException":return[3,16]}return[3,18];case 2:return c=[{}],[4,Xt(e,t)];case 3:return n=L.apply(void 0,[L.apply(void 0,c.concat([A.sent()])),{name:o,$metadata:_e(output)}]),[3,19];case 4:return f=[{}],[4,$t(e,t)];case 5:return n=L.apply(void 0,[L.apply(void 0,f.concat([A.sent()])),{name:o,$metadata:_e(output)}]),[3,19];case 6:return l=[{}],[4,ee(e,t)];case 7:return n=L.apply(void 0,[L.apply(void 0,l.concat([A.sent()])),{name:o,$metadata:_e(output)}]),[3,19];case 8:return d=[{}],[4,re(e,t)];case 9:return n=L.apply(void 0,[L.apply(void 0,d.concat([A.sent()])),{name:o,$metadata:_e(output)}]),[3,19];case 10:return m=[{}],[4,ie(e,t)];case 11:return n=L.apply(void 0,[L.apply(void 0,m.concat([A.sent()])),{name:o,$metadata:_e(output)}]),[3,19];case 12:return v=[{}],[4,ne(e,t)];case 13:return n=L.apply(void 0,[L.apply(void 0,v.concat([A.sent()])),{name:o,$metadata:_e(output)}]),[3,19];case 14:return y=[{}],[4,oe(e,t)];case 15:return n=L.apply(void 0,[L.apply(void 0,y.concat([A.sent()])),{name:o,$metadata:_e(output)}]),[3,19];case 16:return w=[{}],[4,se(e,t)];case 17:return n=L.apply(void 0,[L.apply(void 0,w.concat([A.sent()])),{name:o,$metadata:_e(output)}]),[3,19];case 18:M=e.body,o=M.code||M.Code||o,n=L(L({},M),{name:""+o,message:M.message||M.Message||o,$fault:"client",$metadata:_e(output)}),A.label=19;case 19:return _=n.message||n.Message||o,n.message=_,delete n.Message,[2,Promise.reject(Object.assign(new Error(_),n))]}}))}))},Xt=function(t,e){return N(void 0,void 0,void 0,(function(){var body,r;return H(this,(function(n){return body=t.body,r=fe(body,e),[2,L({name:"ExternalServiceException",$fault:"client",$metadata:_e(t)},r)]}))}))},$t=function(t,e){return N(void 0,void 0,void 0,(function(){var body,r;return H(this,(function(n){return body=t.body,r=pe(body,e),[2,L({name:"InternalErrorException",$fault:"server",$metadata:_e(t)},r)]}))}))},te=function(t,e){return N(void 0,void 0,void 0,(function(){var body,r;return H(this,(function(n){return body=t.body,r=me(body,e),[2,L({name:"InvalidIdentityPoolConfigurationException",$fault:"client",$metadata:_e(t)},r)]}))}))},ee=function(t,e){return N(void 0,void 0,void 0,(function(){var body,r;return H(this,(function(n){return body=t.body,r=ge(body,e),[2,L({name:"InvalidParameterException",$fault:"client",$metadata:_e(t)},r)]}))}))},re=function(t,e){return N(void 0,void 0,void 0,(function(){var body,r;return H(this,(function(n){return body=t.body,r=ve(body,e),[2,L({name:"LimitExceededException",$fault:"client",$metadata:_e(t)},r)]}))}))},ie=function(t,e){return N(void 0,void 0,void 0,(function(){var body,r;return H(this,(function(n){return body=t.body,r=ye(body,e),[2,L({name:"NotAuthorizedException",$fault:"client",$metadata:_e(t)},r)]}))}))},ne=function(t,e){return N(void 0,void 0,void 0,(function(){var body,r;return H(this,(function(n){return body=t.body,r=be(body,e),[2,L({name:"ResourceConflictException",$fault:"client",$metadata:_e(t)},r)]}))}))},oe=function(t,e){return N(void 0,void 0,void 0,(function(){var body,r;return H(this,(function(n){return body=t.body,r=we(body,e),[2,L({name:"ResourceNotFoundException",$fault:"client",$metadata:_e(t)},r)]}))}))},se=function(t,e){return N(void 0,void 0,void 0,(function(){var body,r;return H(this,(function(n){return body=t.body,r=Me(body,e),[2,L({name:"TooManyRequestsException",$fault:"client",$metadata:_e(t)},r)]}))}))},ae=function(input,t){return L(L(L({},void 0!==input.CustomRoleArn&&{CustomRoleArn:input.CustomRoleArn}),void 0!==input.IdentityId&&{IdentityId:input.IdentityId}),void 0!==input.Logins&&{Logins:he(input.Logins,t)})},ue=function(input,t){return L(L(L({},void 0!==input.AccountId&&{AccountId:input.AccountId}),void 0!==input.IdentityPoolId&&{IdentityPoolId:input.IdentityPoolId}),void 0!==input.Logins&&{Logins:he(input.Logins,t)})},he=function(input,t){return Object.entries(input).reduce((function(t,e){var r,n=z(e,2),o=n[0],h=n[1];return L(L({},t),((r={})[o]=h,r))}),{})},ce=function(output,t){return{AccessKeyId:void 0!==output.AccessKeyId&&null!==output.AccessKeyId?output.AccessKeyId:void 0,Expiration:void 0!==output.Expiration&&null!==output.Expiration?new Date(Math.round(1e3*output.Expiration)):void 0,SecretKey:void 0!==output.SecretKey&&null!==output.SecretKey?output.SecretKey:void 0,SessionToken:void 0!==output.SessionToken&&null!==output.SessionToken?output.SessionToken:void 0}},fe=function(output,t){return{message:void 0!==output.message&&null!==output.message?output.message:void 0}},le=function(output,t){return{Credentials:void 0!==output.Credentials&&null!==output.Credentials?ce(output.Credentials):void 0,IdentityId:void 0!==output.IdentityId&&null!==output.IdentityId?output.IdentityId:void 0}},de=function(output,t){return{IdentityId:void 0!==output.IdentityId&&null!==output.IdentityId?output.IdentityId:void 0}}
11,pe=function(output,t){return{message:void 0!==output.message&&null!==output.message?output.message:void 0}},me=function(output,t){return{message:void 0!==output.message&&null!==output.message?output.message:void 0}},ge=function(output,t){return{message:void 0!==output.message&&null!==output.message?output.message:void 0}},ve=function(output,t){return{message:void 0!==output.message&&null!==output.message?output.message:void 0}},ye=function(output,t){return{message:void 0!==output.message&&null!==output.message?output.message:void 0}},be=function(output,t){return{message:void 0!==output.message&&null!==output.message?output.message:void 0}},we=function(output,t){return{message:void 0!==output.message&&null!==output.message?output.message:void 0}},Me=function(output,t){return{message:void 0!==output.message&&null!==output.message?output.message:void 0}},_e=function(output){return{httpStatusCode:output.statusCode,httpHeaders:output.headers,requestId:output.headers["x-amzn-requestid"]}},Se=function(t,e){return void 0===t&&(t=new Uint8Array),t instanceof Uint8Array?Promise.resolve(t):e.streamCollector(t)||Promise.resolve(new Uint8Array)},Ae=function(t,e,path,r,body){return N(void 0,void 0,void 0,(function(){var n,o,h,c,f,l;return H(this,(function(d){switch(d.label){case 0:return[4,t.endpoint()];case 1:return n=d.sent(),o=n.hostname,h=n.protocol,c=void 0===h?"https":h,f=n.port,l={protocol:c,hostname:o,port:f,method:"POST",path:path,headers:e},void 0!==r&&(l.hostname=r),void 0!==body&&(l.body=body),[2,new Jt.a(l)]}}))}))},xe=function(t,e){return function(t,e){return Se(t,e).then((function(body){return e.utf8Encoder(body)}))}(t,e).then((function(t){return t.length?JSON.parse(t):{}}))},ke={name:"deserializerMiddleware",step:"deserialize",tags:["DESERIALIZER"]},Ee={name:"serializerMiddleware",step:"serialize",tags:["SERIALIZER"]};function Ce(t,e,r){return{applyToStack:function(n){n.add(function(t,e){return function(r,n){return function(o){return Object(B.__awaiter)(void 0,void 0,void 0,(function(){var h,c,f,l,d;return Object(B.__generator)(this,(function(m){switch(m.label){case 0:return h=n.logger,c=n.outputFilterSensitiveLog,[4,r(o)];case 1:return f=m.sent().response,"function"==typeof(null==h?void 0:h.debug)&&h.debug({httpResponse:f}),[4,e(f,t)];case 2:return l=m.sent(),l.$metadata,d=Object(B.__rest)(l,["$metadata"]),"function"==typeof(null==h?void 0:h.info)&&h.info({output:c(d)}),[2,{response:f,output:l}]}}))}))}}}(t,r),ke),n.add(function(t,e){return function(r,n){return function(o){return Object(B.__awaiter)(void 0,void 0,void 0,(function(){var h,c,f;return Object(B.__generator)(this,(function(l){switch(l.label){case 0:return h=n.logger,c=n.inputFilterSensitiveLog,"function"==typeof(null==h?void 0:h.info)&&h.info({input:c(o.input)}),[4,e(o.input,t)];case 1:return f=l.sent(),"function"==typeof(null==h?void 0:h.debug)&&h.debug({httpRequest:f}),[2,r(Object(B.__assign)(Object(B.__assign)({},o),{request:f}))]}}))}))}}}(t,e),Ee)}}}var Re=function(){var t=[],e=[],r=new Set,n=function(r){return t.forEach((function(t){r.add(t.middleware,Object(B.__assign)({},t))})),e.forEach((function(t){r.addRelativeTo(t.middleware,Object(B.__assign)({},t))})),r},o=function(t){var e=[];return t.before.forEach((function(t){0===t.before.length&&0===t.after.length?e.push(t):e.push.apply(e,Object(B.__spread)(o(t)))})),e.push(t),t.after.reverse().forEach((function(t){0===t.before.length&&0===t.after.length?e.push(t):e.push.apply(e,Object(B.__spread)(o(t)))})),e},h=function(){var r,n=[],h=[],c={};return t.forEach((function(t){var e=Object(B.__assign)(Object(B.__assign)({},t),{before:[],after:[]});e.name&&(c[e.name]=e),n.push(e)})),e.forEach((function(t){var e=Object(B.__assign)(Object(B.__assign)({},t),{before:[],after:[]});e.name&&(c[e.name]=e),h.push(e)})),h.forEach((function(t){if(t.toMiddleware){var e=c[t.toMiddleware];if(void 0===e)throw new Error(t.toMiddleware+" is not found when adding "+(t.name||"anonymous")+" middleware "+t.relation+" "+t.toMiddleware);"after"===t.relation&&e.after.push(t),"before"===t.relation&&e.before.push(t)}})),(r=n,r.sort((function(a,b){return Ie[b.step]-Ie[a.step]||Pe[b.priority||"normal"]-Pe[a.priority||"normal"]}))).map(o).reduce((function(t,e){return t.push.apply(t,Object(B.__spread)(e)),t}),[]).map((function(t){return t.middleware}))},c={add:function(e,n){void 0===n&&(n={});var o=n.name,h=Object(B.__assign)({step:"initialize",priority:"normal",middleware:e},n);if(o){if(r.has(o))throw new Error("Duplicate middleware name '"+o+"'");r.add(o)}t.push(h)},addRelativeTo:function(t,n){var o=n.name,h=Object(B.__assign)({middleware:t},n);if(o){if(r.has(o))throw new Error("Duplicated middleware name '"+o+"'");r.add(o)}e.push(h)},clone:function(){return n(Re())},use:function(t){t.applyToStack(c)},remove:function(n){return"string"==typeof n?function(n){var o=!1,h=function(t){return!t.name||t.name!==n||(o=!0,r.delete(n),!1)};return t=t.filter(h),e=e.filter(h),o}(n):function(n){var o=!1,h=function(t){return t.middleware!==n||(o=!0,t.name&&r.delete(t.name),!1)};return t=t.filter(h),e=e.filter(h),o}(n)},removeByTag:function(n){var o=!1,h=function(t){var e=t.tags,h=t.name;return!e||!e.includes(n)||(h&&r.delete(h),o=!0,!1)};return t=t.filter(h),e=e.filter(h),o},concat:function(t){var e=n(Re());return e.use(t),e},applyToStack:n,resolve:function(t,e){var r,n;try{for(var o=Object(B.__values)(h().reverse()),c=o.next();!c.done;c=o.next()){t=(0,c.value)(t,e)}}catch(t){r={error:t}}finally{try{c&&!c.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}return t}};return c},Ie={initialize:5,serialize:4,build:3,finalizeRequest:2,deserialize:1},Pe={high:3,normal:2,low:1},Te=function(){function t(t){this.middlewareStack=Re(),this.config=t}return t.prototype.send=function(t,e,r){var n="function"!=typeof e?e:void 0,o="function"==typeof e?e:r,h=t.resolveMiddleware(this.middlewareStack,this.config,n);if(!o)return h(t).then((function(t){return t.output}));h(t).then((function(t){return o(null,t.output)}),(function(t){return o(t)})).catch((function(){}))},t.prototype.destroy=function(){this.config.requestHandler.destroy&&this.config.requestHandler.destroy()},t}(),Oe=function(){this.middlewareStack=Re()};var je=function(){var t=Object.getPrototypeOf(this).constructor,e=Function.bind.apply(String,Object(B.__spread)([null],arguments)),r=new e;return Object.setPrototypeOf(r,t.prototype),r};je.prototype=Object.create(String.prototype,{constructor:{value:je,enumerable:!1,writable:!0,configurable:!0}}),Object.setPrototypeOf(je,String);!function(t){function e(){return null!==t&&t.apply(this,arguments)||this}Object(B.__extends)(e,t),e.prototype.deserializeJSON=function(){return JSON.parse(t.prototype.toString.call(this))},e.prototype.toJSON=function(){return t.prototype.toString.call(this)},e.fromObject=function(object){return object instanceof e?object:new e(object instanceof String||"string"==typeof object?object:JSON.stringify(object))}}(je);var Ue=function(t){function e(input){var e=t.call(this)||this;return e.input=input,e}return F(e,t),e.prototype.resolveMiddleware=function(t,e,r){this.middlewareStack.use(Ce(e,this.serialize,this.deserialize));var n=t.concat(this.middlewareStack),o=e.logger,h={logger:o,clientName:"CognitoIdentityClient",commandName:"GetCredentialsForIdentityCommand",inputFilterSensitiveLog:ft.filterSensitiveLog,outputFilterSensitiveLog:pt.filterSensitiveLog};"function"==typeof o.info&&o.info({clientName:"CognitoIdentityClient",commandName:"GetCredentialsForIdentityCommand"});var c=e.requestHandler;return n.resolve((function(t){return c.handle(t.request,r||{})}),h)},e.prototype.serialize=function(input,t){return function(input,t){return N(void 0,void 0,void 0,(function(){var e,body;return H(this,(function(r){return e={"Content-Type":"application/x-amz-json-1.1","X-Amz-Target":"AWSCognitoIdentityService.GetCredentialsForIdentity"},body=JSON.stringify(ae(input,t)),[2,Ae(t,e,"/",void 0,body)]}))}))}(input,t)},e.prototype.deserialize=function(output,t){return function(output,t){return N(void 0,void 0,void 0,(function(){var data,e,r;return H(this,(function(n){switch(n.label){case 0:return output.statusCode>=300?[2,Yt(output,t)]:[4,xe(output.body,t)];case 1:return data=n.sent(),{},e=le(data,t),r=L({$metadata:_e(output)},e),[2,Promise.resolve(r)]}}))}))}(output,t)},e}(Oe),Be=function(t){function e(e,r){void 0===r&&(r=!0);var n=t.call(this,e)||this;return n.tryNextLink=r,n}return Object(B.__extends)(e,t),e}(Error);function De(t){return Promise.all(Object.keys(t).reduce((function(e,r){var n=t[r];return"string"==typeof n?e.push([r,n]):e.push(n().then((function(t){return[r,t]}))),e}),[])).then((function(t){return t.reduce((function(t,e){var r=Object(B.__read)(e,2),n=r[0],o=r[1];return t[n]=o,t}),{})}))}function Fe(t){var e=this;return function(){return Object(B.__awaiter)(e,void 0,void 0,(function(){var e,r,n,o,h,c,f,l,d,m,v,y,w;return Object(B.__generator)(this,(function(M){switch(M.label){case 0:return m=(d=t.client).send,v=Ue.bind,w={CustomRoleArn:t.customRoleArn,IdentityId:t.
11identityId},t.logins?[4,De(t.logins)]:[3,2];case 1:return y=M.sent(),[3,3];case 2:y=void 0,M.label=3;case 3:return[4,m.apply(d,[new(v.apply(Ue,[void 0,(w.Logins=y,w)]))])];case 4:return e=M.sent().Credentials,r=void 0===e?function(){throw new Be("Response from Amazon Cognito contained no credentials")}():e,n=r.AccessKeyId,o=void 0===n?function(){throw new Be("Response from Amazon Cognito contained no access key ID")}():n,h=r.Expiration,c=r.SecretKey,f=void 0===c?function(){throw new Be("Response from Amazon Cognito contained no secret key")}():c,l=r.SessionToken,[2,{identityId:t.identityId,accessKeyId:o,secretAccessKey:f,sessionToken:l,expiration:h}]}}))}))}}var Le=function(t){function e(input){var e=t.call(this)||this;return e.input=input,e}return F(e,t),e.prototype.resolveMiddleware=function(t,e,r){this.middlewareStack.use(Ce(e,this.serialize,this.deserialize));var n=t.concat(this.middlewareStack),o=e.logger,h={logger:o,clientName:"CognitoIdentityClient",commandName:"GetIdCommand",inputFilterSensitiveLog:gt.filterSensitiveLog,outputFilterSensitiveLog:vt.filterSensitiveLog};"function"==typeof o.info&&o.info({clientName:"CognitoIdentityClient",commandName:"GetIdCommand"});var c=e.requestHandler;return n.resolve((function(t){return c.handle(t.request,r||{})}),h)},e.prototype.serialize=function(input,t){return function(input,t){return N(void 0,void 0,void 0,(function(){var e,body;return H(this,(function(r){return e={"Content-Type":"application/x-amz-json-1.1","X-Amz-Target":"AWSCognitoIdentityService.GetId"},body=JSON.stringify(ue(input,t)),[2,Ae(t,e,"/",void 0,body)]}))}))}(input,t)},e.prototype.deserialize=function(output,t){return function(output,t){return N(void 0,void 0,void 0,(function(){var data,e,r;return H(this,(function(n){switch(n.label){case 0:return output.statusCode>=300?[2,Qt(output,t)]:[4,xe(output.body,t)];case 1:return data=n.sent(),{},e=de(data,t),r=L({$metadata:_e(output)},e),[2,Promise.resolve(r)]}}))}))}(output,t)},e}(Oe),Ne=function(){function t(t){void 0===t&&(t="aws:cognito-identity-ids"),this.dbName=t}return t.prototype.getItem=function(t){return this.withObjectStore("readonly",(function(e){var r=e.get(t);return new Promise((function(t){r.onerror=function(){return t(null)},r.onsuccess=function(){return t(r.result?r.result.value:null)}}))})).catch((function(){return null}))},t.prototype.removeItem=function(t){return this.withObjectStore("readwrite",(function(e){var r=e.delete(t);return new Promise((function(t,e){r.onerror=function(){return e(r.error)},r.onsuccess=function(){return t()}}))}))},t.prototype.setItem=function(t,e){return this.withObjectStore("readwrite",(function(r){var n=r.put({id:t,value:e});return new Promise((function(t,e){n.onerror=function(){return e(n.error)},n.onsuccess=function(){return t()}}))}))},t.prototype.getDb=function(){var t=self.indexedDB.open(this.dbName,1);return new Promise((function(e,r){t.onsuccess=function(){e(t.result)},t.onerror=function(){r(t.error)},t.onblocked=function(){r(new Error("Unable to access DB"))},t.onupgradeneeded=function(){var e=t.result;e.onerror=function(){r(new Error("Failed to create object store"))},e.createObjectStore("IdentityIds",{keyPath:"id"})}}))},t.prototype.withObjectStore=function(t,e){return this.getDb().then((function(r){var n=r.transaction("IdentityIds",t);return n.oncomplete=function(){return r.close()},new Promise((function(t,r){n.onerror=function(){return r(n.error)},t(e(n.objectStore("IdentityIds")))})).catch((function(t){throw r.close(),t}))}))},t}(),qe=new(function(){function t(t){void 0===t&&(t={}),this.store=t}return t.prototype.getItem=function(t){return t in this.store?this.store[t]:null},t.prototype.removeItem=function(t){delete this.store[t]},t.prototype.setItem=function(t,e){this.store[t]=e},t}());function He(t){var e=this,r=t.accountId,n=t.cache,o=void 0===n?"object"==typeof self&&self.indexedDB?new Ne:"object"==typeof window&&window.localStorage?window.localStorage:qe:n,h=t.client,c=t.customRoleArn,f=t.identityPoolId,l=t.logins,d=t.userIdentifier,m=void 0===d?l&&0!==Object.keys(l).length?void 0:"ANONYMOUS":d,v=m?"aws:cognito-identity-credentials:"+f+":"+m:void 0,y=function(){return Object(B.__awaiter)(e,void 0,void 0,(function(){var t,e,n,d,m,w,M,_,S;return Object(B.__generator)(this,(function(A){switch(A.label){case 0:return(e=v)?[4,o.getItem(v)]:[3,2];case 1:e=A.sent(),A.label=2;case 2:return(t=e)?[3,7]:(w=(m=h).send,M=Le.bind,S={AccountId:r,IdentityPoolId:f},l?[4,De(l)]:[3,4]);case 3:return _=A.sent(),[3,5];case 4:_=void 0,A.label=5;case 5:return[4,w.apply(m,[new(M.apply(Le,[void 0,(S.Logins=_,S)]))])];case 6:n=A.sent().IdentityId,d=void 0===n?function(){throw new Be("Response from Amazon Cognito contained no identity ID")}():n,t=d,v&&Promise.resolve(o.setItem(v,t)).catch((function(){})),A.label=7;case 7:return[2,(y=Fe({client:h,customRoleArn:c,logins:l,identityId:t}))()]}}))}))};return function(){return y().catch((function(t){return Object(B.__awaiter)(e,void 0,void 0,(function(){return Object(B.__generator)(this,(function(e){throw v&&Promise.resolve(o.removeItem(v)).catch((function(){})),t}))}))}))}}var ze=r(182),Ve=r(301),Ke=r(302);for(var Ze=function(){function t(t){void 0===t&&(t={}),this.httpOptions=t}return t.prototype.destroy=function(){},t.prototype.handle=function(t,e){var r=null==e?void 0:e.abortSignal,n=this.httpOptions.requestTimeout;if(null==r?void 0:r.aborted){var o=new Error("Request aborted");return o.name="AbortError",Promise.reject(o)}var path=t.path;if(t.query){var h=Object(Ke.a)(t.query);h&&(path+="?"+h)}var c=t.port,f=t.protocol+"//"+t.hostname+(c?":"+c:"")+path,l={body:t.body,headers:new Headers(t.headers),method:t.method};"undefined"!=typeof AbortController&&(l.signal=r);
11var d,m=new Request(f,l),v=[fetch(m).then((function(t){var e,r,n=t.headers,o={};try{for(var h=Object(B.__values)(n.entries()),c=h.next();!c.done;c=h.next()){var f=c.value;o[f[0]]=f[1]}}catch(t){e={error:t}}finally{try{c&&!c.done&&(r=h.return)&&r.call(h)}finally{if(e)throw e.error}}return void 0!==t.body?{response:new Jt.b({headers:o,statusCode:t.status,body:t.body})}:t.blob().then((function(body){return{response:new Jt.b({headers:o,statusCode:t.status,body:body})}}))})),(d=n,void 0===d&&(d=0),new Promise((function(t,e){d&&setTimeout((function(){var t=new Error("Request did not complete within "+d+" ms");t.name="TimeoutError",e(t)}),d)})))];return r&&v.push(new Promise((function(t,e){r.onabort=function(){var t=new Error("Request aborted");t.name="AbortError",e(t)}}))),Promise.race(v)},t}(),We={},Ge=new Array(64),i=0,Je="A".charCodeAt(0),Ye="Z".charCodeAt(0);i+Je<=Ye;i++){var Qe=String.fromCharCode(i+Je);We[Qe]=i,Ge[i]=Qe}for(i=0,Je="a".charCodeAt(0),Ye="z".charCodeAt(0);i+Je<=Ye;i++){Qe=String.fromCharCode(i+Je);var Xe=i+26;We[Qe]=Xe,Ge[Xe]=Qe}for(i=0;i<10;i++){We[i.toString(10)]=i+52;Qe=i.toString(10),Xe=i+52;We[Qe]=Xe,Ge[Xe]=Qe}We["+"]=62,Ge[62]="+",We["/"]=63,Ge[63]="/";function $e(input){var t=input.length/4*3;"=="===input.substr(-2)?t-=2:"="===input.substr(-1)&&t--;for(var e=new ArrayBuffer(t),r=new DataView(e),i=0;i<input.length;i+=4){for(var n=0,o=0,h=i,c=i+3;h<=c;h++)"="!==input[h]?(n|=We[input[h]]<<6*(c-h),o+=6):n>>=6;var f=i/4*3;n>>=o%8;for(var l=Math.floor(o/8),d=0;d<l;d++){var m=8*(l-d-1);r.setUint8(f+d,(n&255<<m)>>m)}}return new Uint8Array(e)}function er(t){return new Promise((function(e,r){var n=new FileReader;n.onloadend=function(){var t;if(2!==n.readyState)return r(new Error("Reader aborted too early"));var o=null!==(t=n.result)&&void 0!==t?t:"",h=o.indexOf(","),c=h>-1?h+1:o.length;e(o.substring(c))},n.onabort=function(){return r(new Error("Read aborted"))},n.onerror=function(){return r(n.error)},n.readAsDataURL(t)}))}var rr={name:"retryMiddleware",tags:["RETRY"],step:"finalizeRequest",priority:"high"},ir=function(t){return{applyToStack:function(e){e.add(function(t){return function(e){return function(r){return Object(B.__awaiter)(void 0,void 0,void 0,(function(){return Object(B.__generator)(this,(function(n){return[2,t.retryStrategy.retry(e,r)]}))}))}}}(t),rr)}}},nr=["AuthFailure","InvalidSignatureException","RequestExpired","RequestInTheFuture","RequestTimeTooSkewed","SignatureDoesNotMatch"],or=["Throttling","ThrottlingException","ThrottledException","RequestThrottledException","TooManyRequestsException","ProvisionedThroughputExceededException","TransactionInProgressException","RequestLimitExceeded","BandwidthLimitExceeded","LimitExceededException","RequestThrottled","SlowDown","PriorRequestNotComplete","EC2ThrottledException"],sr=["AbortError","TimeoutError","RequestTimeout","RequestTimeoutException"],ar=[500,502,503,504],ur=function(t){var e;return or.includes(t.name)||1==(null===(e=t.$retryable)||void 0===e?void 0:e.throttling)},cr=r(299),fr=function(t,e){return Math.floor(Math.min(2e4,Math.random()*Math.pow(2,e)*t))},lr=function(t){return!!t&&(function(t){return void 0!==t.$retryable}(t)||function(t){return nr.includes(t.name)}(t)||ur(t)||function(t){var e;return sr.includes(t.name)||ar.includes((null===(e=t.$metadata)||void 0===e?void 0:e.httpStatusCode)||0)}(t))},dr=function(){function t(t,e){var r,n,o,h,c,f,l,d;this.maxAttemptsProvider=t,this.retryDecider=null!==(r=null==e?void 0:e.retryDecider)&&void 0!==r?r:lr,this.delayDecider=null!==(n=null==e?void 0:e.delayDecider)&&void 0!==n?n:fr,this.retryQuota=null!==(o=null==e?void 0:e.retryQuota)&&void 0!==o?o:(c=h=500,f=h,l=function(t){return"TimeoutError"===t.name?10:5},d=function(t){return l(t)<=f},Object.freeze({hasRetryTokens:d,retrieveRetryTokens:function(t){if(!d(t))throw new Error("No retry token available");var e=l(t);return f-=e,e},releaseRetryTokens:function(t){f+=null!=t?t:1,f=Math.min(f,c)}}))}return t.prototype.shouldRetry=function(t,e,r){return e<r&&this.retryDecider(t)&&this.retryQuota.hasRetryTokens(t)},t.prototype.getMaxAttempts=function(){return Object(B.__awaiter)(this,void 0,void 0,(function(){var t;return Object(B.__generator)(this,(function(e){switch(e.label){case 0:return e.trys.push([0,2,,3]),[4,this.maxAttemptsProvi
11der()];case 1:return t=e.sent(),[3,3];case 2:return e.sent(),t=3,[3,3];case 3:return[2,t]}}))}))},t.prototype.retry=function(t,e){return Object(B.__awaiter)(this,void 0,void 0,(function(){var r,n,o,h,c,f,l,d;return Object(B.__generator)(this,(function(m){switch(m.label){case 0:return n=0,o=0,[4,this.getMaxAttempts()];case 1:h=m.sent(),c=e.request,Jt.a.isInstance(c)&&(c.headers["amz-sdk-invocation-id"]=Object(cr.v4)()),f=function(){var f,d,output,m,v;return Object(B.__generator)(this,(function(y){switch(y.label){case 0:return y.trys.push([0,2,,5]),Jt.a.isInstance(c)&&(c.headers["amz-sdk-request"]="attempt="+(n+1)+"; max="+h),[4,t(e)];case 1:return f=y.sent(),d=f.response,output=f.output,l.retryQuota.releaseRetryTokens(r),output.$metadata.attempts=n+1,output.$metadata.totalRetryDelay=o,[2,{value:{response:d,output:output}}];case 2:return m=y.sent(),n++,l.shouldRetry(m,n,h)?(r=l.retryQuota.retrieveRetryTokens(m),v=l.delayDecider(ur(m)?500:100,n),o+=v,[4,new Promise((function(t){return setTimeout(t,v)}))]):[3,4];case 3:return y.sent(),[2,"continue"];case 4:throw m.$metadata||(m.$metadata={}),m.$metadata.attempts=n,m.$metadata.totalRetryDelay=o,m;case 5:return[2]}}
11))},l=this,m.label=2;case 2:return[5,f()];case 3:return"object"==typeof(d=m.sent())?[2,d.value]:[3,2];case 4:return[2]}}))}))},t}(),pr=function(t){if(void 0===t&&(t=3),"number"==typeof t){var e=Promise.resolve(t);return function(){return e}}return t},mr=r(303);var gr,vr,yr,wr=r(73),Mr="cognito-identity.{region}.amazonaws.com",_r=new Set(["ap-east-1","ap-northeast-1","ap-northeast-2","ap-south-1","ap-southeast-1","ap-southeast-2","ca-central-1","eu-central-1","eu-north-1","eu-west-1","eu-west-2","eu-west-3","me-south-1","sa-east-1","us-east-1","us-east-2","us-west-1","us-west-2"]),Sr=new Set(["cn-north-1","cn-northwest-1"]),Ar=new Set(["us-iso-east-1"]),xr=new Set(["us-isob-east-1"]),kr=new Set(["us-gov-east-1","us-gov-west-1"]),Er=L(L({},{apiVersion:"2014-06-30",disableHostPrefix:!1,logger:{},regionInfoProvider:function(t,e){var r=void 0;switch(t){case"ap-northeast-1":r={hostname:"cognito-identity.ap-northeast-1.amazonaws.com",partition:"aws"};break;case"ap-northeast-2":r={hostname:"cognito-identity.ap-northeast-2.amazonaws.com",partition:"aws"};break;case"ap-south-1":r={hostname:"cognito-identity.ap-south-1.amazonaws.com",partition:"aws"};break;case"ap-southeast-1":r={hostname:"cognito-identity.ap-southeast-1.amazonaws.com",partition:"aws"};break;case"ap-southeast-2":r={hostname:"cognito-identity.ap-southeast-2.amazonaws.com",partition:"aws"};break;case"ca-central-1":r={hostname:"cognito-identity.ca-central-1.amazonaws.com",partition:"aws"};break;case"cn-north-1":r={hostname:"cognito-identity.cn-north-1.amazonaws.com.cn",partition:"aws-cn"};break;case"eu-central-1":r={hostname:"cognito-identity.eu-central-1.amazonaws.com",partition:"aws"};break;case"eu-west-1":r={hostname:"cognito-identity.eu-west-1.amazonaws.com",partition:"aws"};break;case"eu-west-2":r={hostname:"cognito-identity.eu-west-2.amazonaws.com",partition:"aws"};break;case"us-east-1":r={hostname:"cognito-identity.us-east-1.amazonaws.com",partition:"aws"};break;case"us-east-2":r={hostname:"cognito-identity.us-east-2.amazonaws.com",partition:"aws"};break;case"us-west-2":r={hostname:"cognito-identity.us-west-2.amazonaws.com",partition:"aws"};break;default:_r.has(t)&&(r={hostname:Mr.replace("{region}",t),partition:"aws"}),Sr.has(t)&&(r={hostname:"cognito-identity.{region}.amazonaws.com.cn".replace("{region}",t),partition:"aws-cn"}),Ar.has(t)&&(r={hostname:"cognito-identity.{region}.c2s.ic.gov".replace("{region}",t),partition:"aws-iso"}),xr.has(t)&&(r={hostname:"cognito-identity.{region}.sc2s.sgov.gov".replace("{region}",t),partition:"aws-iso-b"}),kr.has(t)&&(r={hostname:"cognito-identity.{region}.amazonaws.com".replace("{region}",t),partition:"aws-us-gov"}),void 0===r&&(r={hostname:Mr.replace("{region}",t),partition:"aws"})}return Promise.resolve(r)},signingName:"cognito-identity"}),{runtime:"browser",base64Decoder:$e,base64Encoder:function(input){for(var t="",i=0;i<input.length;i+=3){for(var e=0,r=0,n=i,o=Math.min(i+3,input.length);n<o;n++)e|=input[n]<<8*(o-n-1),r+=8;var h=Math.ceil(r/6);e<<=6*h-r;for(var c=1;c<=h;c++){var f=6*(h-c);t+=Ge[(e&63<<f)>>f]}t+="==".slice(0,4-h)}return t},bodyLengthChecker:function(body){if("string"==typeof body){for(var t=body.length,i=t-1;i>=0;i--){var code=body.charCodeAt(i);code>127&&code<=2047?t++:code>2047&&code<=65535&&(t+=2)}return t}return"number"==typeof body.byteLength?body.byteLength:"number"==typeof body.size?body.size:void 0},credentialDefaultProvider:function(){},defaultUserAgent:(vr=ze.name,yr=ze.version,"aws-sdk-js-v3-"+vr+"/"+yr+" "+("undefined"!=typeof navigator&&"string"==typeof navigator.userAgent?navigator.userAgent:"")),maxAttempts:3,region:(gr="Region is missing",function(){throw new Error(gr)}),requestHandler:new Ze,sha256:Ve.Sha256,streamCollector:function(t){return"function"==typeof Blob&&t instanceof Blob?function(t){return Object(B.__awaiter)(this,void 0,void 0,(function(){var e,r;return Object(B.__generator)(this,(function(n){switch(n.label){case 0:return[4,er(t)];case 1:return e=n.sent(),r=$e(e),[2,new Uint8Array(r)]}}))}))}(t):function(t){return Object(B.__awaiter)(this,void 0,void 0,(function(){var e,r,n,o,h,c,f;return Object(B.__generator)(this,(function(l){switch(l.label){case 0:e=new Uint8Array(0),r=t.getReader(),n=!1,l.label=1;case 1:return n?[3,3]:[4,r.read()];case 2:return o=l.sent(),h=o.done,(c=o.value)&&(f=e,(e=new Uint8Array(f.length+c.length)).set(f),e.set(c,f.length)),n=h,[3,1];case 3:return[2,e]}}))}))}(t)},urlParser:function(t){var e,r=new URL(t),n=r.hostname,o=r.pathname,h=r.port,c=r.protocol,f=r.search;return f&&(e=Object(mr.a)(f)),{hostname:n,port:h?parseInt(h):void 0,protocol:c,path:o,query:e}},utf8Decoder:wr.fromUtf8,utf8Encoder:wr.toUtf8}),Cr=function(input){var t=input.endpoint,e=input.urlParser;if("string"==typeof t){var r=Promise.resolve(e(t));return function(){return r}}if("object"==typeof t){var n=Promise.resolve(t);return function(){return n}}return t},Rr=function(input){return Object(B.__awaiter)(void 0,void 0,void 0,(function(){var t,e,r,n,o;return Object(B.__generator)(this,(function(h){switch(h.label){case 0:return t=input.tls,e=void 0===t||t,[4,input.region()];case 1:if(r=h.sent(),!new RegExp(/^([a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9-]{0,61}[a-zA-Z0-9])$/).test(r))throw new Error("Invalid region in client config");return[4,input.regionInfoProvider(r)];case 2:if(!(n=(null!==(o=h.sent())&&void 0!==o?o:{}).hostname))throw new Error("Cannot resolve hostname from client config");return[2,input.urlParser((e?"https:":"http:")+"//"+n)]}}))}))},Ir=function(t){if("string"==typeof t){var e=Promise.resolve(t);return function(){return e}}return t};var Pr={step:"build",tags:["SET_CONTENT_LENGTH","CONTENT_LENGTH"],name:"contentLengthMiddleware"},Tr=function(t){return{applyToStack:function(e){e.add(function(t){var e=this;return function(r){return function(n){return Object(B.__awaiter)(e,void 0,void 0,(function(){var e,body,o,h,c;return Object(B.__generator)(this,(function(f){return e=n.request,Jt.a.isInstance(e)&&(body=e.body,o=e.headers,body&&-1===Object.keys(o).map((function(t){return t.toLowerCase()})).indexOf("content-length")&&void 0!==(h=t(body))&&(e.headers=Object(B.__assign)(Object(B.__assign)({},e.headers),((c={})["content-length"]=String(h),c)))),[2,r(Object(B.__assign)(Object(B.__assign)({},n),{request:e}))]}))}))}}}(t.bodyLengthChecker),Pr)}}};var Or={name:"hostHeaderMiddleware",step:"build",priority:"low",tags:["HOST"]},jr=function(t){return{applyToStack:function(e){e.add(function(t){return function(e){return function(r){return Object(B.__awaiter)(void 0,void 0,void 0,(function(){var n,o;return Object(B.__generator)(this,(function(h){return Jt.a.isInstance(r.request)?(n=r.request,o=(t.requestHandler.metadata||{}).handlerProtocol,(void 0===o?"":o).indexOf("h2")>=0&&!n.headers[":authority"]?(delete n.headers.host,n.headers[":authority"]=""):n.headers.host||(n.headers.host=n.hostname),[2,e(r)]):[2,e(r)]}))}))}}}(t),Or)}}},Ur={name:"loggerMiddleware",tags:["LOGGER"],step:"initialize"},Br=function(t){return{applyToStack:function(t){t.add((function(t,e){return function(r){return Object(B.__awaiter)(void 0,void 0,void 0,(function(){var n,o,h,c;return Object(B.__generator)(this,(function(f){switch(f.label){case 0:return n=e.logger,[4,t(r)];case 1:return o=f.sent(),n?(h=o.response,"function"==typeof n.info&&n.info({metadata:{statusCode:h.statusCode,requestId:null!==(c=h.headers["x-amzn-requestid"])&&void 0!==c?c:h.headers["x-amzn-request-id"],extendedRequestId:h.headers["x-amz-id-2"],cfId:h.headers["x-amz-cf-id"]}}),[2,o]):[2,o]}}))}))}}),Ur)}}},Dr=r(305);function Fr(input){if("object"==typeof input){var t=Promise.resolve(input);return function(){return t}}return input}var Lr={name:"getUserAgentMiddleware",step:"build",tags:["SET_USER_AGENT","USER_AGENT"]},Nr=function(t){return{applyToStack:function(e){var r;e.add((r=t,function(t){return function(e){var n=e.request;if(!Jt.a.isInstance(n))return t(e);var o=n.headers,h="node"===r.runtime?"user-agent":"x-amz-user-agent";return o[h]?o[h]+=" "+r.defaultUserAgent:o[h]=""+r.defaultUserAgent,r.customUserAgent&&(o[h]+=" "+r.customUserAgent),t(Object(B.__assign)(Object(B.__assign)({},e),{request:n}))}}),Lr)}}},qr=function(t){function e(e){var input,r,n=this,o=function(input){if(!input.region)throw new Error("Region is missing");return Object(B.__assign)(Object(B.__assign)({},input),{region:Ir(input.region)})}(L(L({},Er),e)),h=function(input){var t=pr(input.maxAttempts);return Object(B.__assign)(Object(B.__assign)({},input),{maxAttempts:t,retryStrategy:input.retryStrategy||new dr
11(t)})}(function(input){var t,e=this,r=Fr(input.credentials||input.credentialDefaultProvider(input)),n=input.signingEscapePath,o=void 0===n||n,h=input.systemClockOffset,c=void 0===h?input.systemClockOffset||0:h,f=input.sha256;return t=input.signer?Fr(input.signer):function(){return Fr(input.region)().then((function(t){return Object(B.__awaiter)(e,void 0,void 0,(function(){return Object(B.__generator)(this,(function(e){switch(e.label){case 0:return[4,input.regionInfoProvider(t)];case 1:return[2,[e.sent()||{},t]]}}))}))})).then((function(t){var e=Object(B.__read)(t,2),n=e[0],h=e[1],c=n.signingRegion,l=void 0===c?input.signingRegion:c,d=n.signingService,m=void 0===d?input.signingName:d;return input.signingRegion=input.signingRegion||l||h,input.signingName=input.signingName||m,new Dr.a({credentials:r,region:input.signingRegion,service:input.signingName,sha256:f,uriEscapePath:o})}))},Object(B.__assign)(Object(B.__assign)({},input),{systemClockOffset:c,signingEscapePath:o,credentials:r,signer:t})}((input=o,Object(B.__assign)(Object(B.__assign)({},input),{tls:null===(r=input.tls)||void 0===r||r,endpoint:input.endpoint?Cr(input):function(){return Rr(input)},isCustomEndpoint:!!input.endpoint}))));return(n=t.call(this,h)||this).config=h,n.middlewareStack.use(ir(n.config)),n.middlewareStack.use(Nr(n.config)),n.middlewareStack.use(Tr(n.config)),n.middlewareStack.use(jr(n.config)),n.middlewareStack.use(Br(n.config)),n}return F(e,t),e.prototype.destroy=function(){t.prototype.destroy.call(this)},e}(Te),Hr=function(){return(Hr=Object.assign||function(t){for(var s,i=1,e=arguments.length;i<e;i++)for(var p in s=arguments[i])Object.prototype.hasOwnProperty.call(s,p)&&(t[p]=s[p]);return t}).apply(this,arguments)},zr=function(t,e,r,n){return new(r||(r=Promise))((function(o,h){function c(t){try{l(n.next(t))}catch(t){h(t)}}function f(t){try{l(n.throw(t))}catch(t){h(t)}}function l(t){var e;t.done?o(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(c,f)}l((n=n.apply(t,e||[])).next())}))},Vr=function(t,body){var e,r,n,g,o={label:0,sent:function(){if(1&n[0])throw n[1];return n[1]},trys:[],ops:[]};return g={next:h(0),throw:h(1),return:h(2)},"function"==typeof Symbol&&(g[Symbol.iterator]=function(){return this}),g;function h(h){return function(c){return function(h){if(e)throw new TypeError("Generator is already executing.");for(;o;)try{if(e=1,r&&(n=2&h[0]?r.return:h[0]?r.throw||((n=r.return)&&n.call(r),0):r.next)&&!(n=n.call(r,h[1])).done)return n;switch(r=0,n&&(h=[2&h[0],n.value]),h[0]){case 0:case 1:n=h;break;case 4:return o.label++,{value:h[1],done:!1};case 5:o.label++,r=h[1],h=[0];continue;case 7:h=o.ops.pop(),o.trys.pop();continue;default:if(!(n=o.trys,(n=n.length>0&&n[n.length-1])||6!==h[0]&&2!==h[0])){o=0;continue}if(3===h[0]&&(!n||h[1]>n[0]&&h[1]<n[3])){o.label=h[1];break}if(6===h[0]&&o.label<n[1]){o.label=n[1],n=h;break}if(n&&o.label<n[2]){o.label=n[2],o.ops.push(h);break}n[2]&&o.ops.pop(),o.trys.pop();continue}h=body.call(t,o)}catch(t){h=[6,t],r=0}finally{e=n=0}if(5&h[0])throw h[1];return{value:h[0]?h[1]:void 0,done:!0}}([h,c])}}},Kr=new n.a("Credentials"),Zr=new(function(){function t(t){this._gettingCredPromise=null,this._refreshHandlers={},this.Auth=void 0,this.configure(t),this._refreshHandlers.google=P.refreshGoogleToken,this._refreshHandlers.facebook=T.refreshFacebookToken}return t.prototype.getModuleName=function(){return"Credentials"},t.prototype.getCredSource=function(){return this._credentials_source},t.prototype.configure=function(t){if(!t)return this._config||{};this._config=Object.assign({},this._config,t);var e=this._config.refreshHandlers;return e&&(this._refreshHandlers=Hr(Hr({},this._refreshHandlers),e)),this._storage=this._config.storage,this._storage||(this._storage=(new o.a).getStorage()),this._storageSync=Promise.resolve(),"function"==typeof this._storage.sync&&(this._storageSync=this._storage.sync()),this._config},t.prototype.get=function(){return Kr.debug("getting credentials"),this._pickupCredentials()},t.prototype._pickupCredentials=function(){return Kr.debug("picking up credentials"),this._gettingCredPromise&&this._gettingCredPromise.isPending()?Kr.debug("getting old cred promise"):(Kr.debug("getting new cred promise"),this._gettingCredPromise=Object(h.c)(this._keepAlive())),this._gettingCredPromise},t.prototype._keepAlive=function(){return zr(this,void 0,void 0,(function(){var t,e,r,n,o,h,c;return Vr(this,(function(f){switch(f.label){case 0:if(Kr.debug("checking if credentials exists and not expired"),(t=this._credentials)&&!this._isExpired(t)&&!this._isPastTTL())return Kr.debug("credentials not changed and not expired, directly return"),[2,Promise.resolve(t)];if(Kr.debug("need to get a new credential or refresh the existing one"),e=this.Auth,!(r=void 0===e?U.a.Auth:e)||"function"!=typeof r.currentUserCredentials)return[2,Promise.reject("No Auth module registered in Amplify")];if(this._isExpired(t)||!this._isPastTTL())return[3,6];Kr.debug("ttl has passed but token is not yet expired"),f.label=1;case 1:return f.trys.push([1,5,,6]),[4,r.currentUserPoolUser()];case 2:return n=f.sent(),[4,r.currentSession()];case 3:return o=f.sent(),h=o.refreshToken,[4,new Promise((function(t,e){n.refreshSession(h,(function(r,data){return r?e(r):t(data)}))}))];case 4:return f.sent(),[3,6];case 5:return c=f.sent(),Kr.debug("Error attempting to refreshing the session",c),[3,6];case 6:return[2,r.currentUserCredentials()]}}))}))},t.prototype.refreshFederatedToken=function(t){Kr.debug("Getting federated credentials");var e=t.provider,r=t.user,n=t.token,o=t.identity_id,h=t.expires_at;h=1970===new Date(h).getFullYear()?1e3*h:h;return Kr.debug("checking if federated jwt token expired"),h>(new Date).getTime()?(Kr.debug("token not expired"),this._setCredentialsFromFederation({provider:e,token:n,user:r,identity_id:o,expires_at:h})):this._refreshHandlers[e]&&"function"==typeof this._refreshHandlers[e]?(Kr.debug("getting refreshed jwt token from federation provider"),this._providerRefreshWithRetry({refreshHandler:this._refreshHandlers[e],provider:e,user:r})):(Kr.debug("no refresh handler for provider:",e),this.clear(),Promise.reject("no refresh handler for provider"))},t.prototype._providerRefreshWithRetry=function(t){var e=this,r=t.refreshHandler,n=t.provider,o=t.user;return w(r,[],1e4).then((function(data){return Kr.debug("refresh federated token sucessfully",data),e._setCredentialsFromFederation({provider:n,token:data.token,user:o,identity_id:data.identity_id,expires_at:data.expires_at})})).catch((function(t){return"string"==typeof t&&0===t.toLowerCase().lastIndexOf("network error",t.length)||e.clear(),Kr.debug("refresh federated token failed",t),Promise.reject("refreshing federation token failed: "+t)}))},t.prototype._isExpired=function(t){if(!t)return Kr.debug("no credentials for expiration check"),!0;Kr.debug("are these credentials expired?",t);var e=Date.now();return t.expiration.getTime()<=e},t.prototype._isPastTTL=function(){return this._nextCredentialsRefresh<=Date.now()},t.prototype._setCredentialsForGuest=function(){return zr(this,void 0,void 0,(function(){var t,e,r,n,o,h,c,f=this;return Vr(this,(function(l){switch(l.label){case 0:if(Kr.debug("setting credentials for guest"),t=this._config,e=t.identityPoolId,r=t.region,t.mandatorySignIn)return[2,Promise.reject("cannot get guest credentials when mandatory signin enabled")];if(!e)return Kr.debug("No Cognito Identity pool provided for unauthenticated access"),[2,Promise.reject("No Cognito Identity pool provided for unauthenticated access")];if(!r)return Kr.debug("region is not configured for getting the credentials"),[2,Promise.reject("region is not configured for getting the credentials")];n=void 0,l.label=1;case 1:return l.trys.push([1,3,,4]),[4,this._storageSync];case 2:return l.sent(),n=this._storage.getItem("CognitoIdentityId-"+e),this._identityId=n,[3,4];case 3:return o=l.sent(),Kr.debug("Failed to get the cached identityId",o),[3,4];
11case 4:return h=new qr({region:r,customUserAgent:j()}),c=void 0,c=n?Fe({identityId:n,client:h})():function(){return zr(f,void 0,void 0,(function(){var t;return Vr(this,(function(r){switch(r.label){case 0:return[4,h.send(new Le({IdentityPoolId:e}))];case 1:return t=r.sent().IdentityId,this._identityId=t,[2,Fe({client:h,identityId:t})()]}}))}))}().catch((function(t){return zr(f,void 0,void 0,(function(){return Vr(this,(function(e){throw t}))}))})),[2,this._loadCredentials(c,"guest",!1,null).then((function(t){return t})).catch((function(t){return zr(f,void 0,void 0,(function(){var r=this;return Vr(this,(function(o){return"ResourceNotFoundException"===t.name&&t.message==="Identity '"+n+"' not found."?(Kr.debug("Failed to load guest credentials"),this._storage.removeItem("CognitoIdentityId-"+e),c=function(){return zr(r,void 0,void 0,(function(){var t;return Vr(this,(function(r){switch(r.label){case 0:return[4,h.send(new Le({IdentityPoolId:e}))];case 1:return t=r.sent().IdentityId,this._identityId=t,[2,Fe({client:h,identityId:t})()]}}))}))}().catch((function(t){return zr(r,void 0,void 0,(function(){return Vr(this,(function(e){throw t}))}))})),[2,this._loadCredentials(c,"guest",!1,null)]):[2,t]}))}))}))]}}))}))},t.prototype._setCredentialsFromFederation=function(t){var e=t.provider,r=t.token,n=t.identity_id,o={google:"accounts.google.com",facebook:"graph.facebook.com",amazon:"www.amazon.com",developer:"cognito-identity.amazonaws.com"}[e]||e;if(!o)return Promise.reject("You must specify a federated provider");var h={};h[o]=r;var c=this._config,f=c.identityPoolId,l=c.region;if(!f)return Kr.debug("No Cognito Federated Identity pool provided"),Promise.reject("No Cognito Federated Identity pool provided");if(!l)return Kr.debug("region is not configured for getting the credentials"),Promise.reject("region is not configured for getting the credentials");var d=new qr({region:l,customUserAgent:j()}),m=void 0;n?m=Fe({identityId:n,logins:h,client:d})():m=He({logins:h,identityPoolId:f,client:d})();return this._loadCredentials(m,"federated",!0,t)},t.prototype._setCredentialsFromSession=function(t){var e=this;Kr.debug("set credentials from session");var r=t.getIdToken().getJwtToken(),n=this._config,o=n.region,h=n.userPoolId,c=n.identityPoolId;if(!c)return Kr.debug("No Cognito Federated Identity pool provided"),Promise.reject("No Cognito Federated Identity pool provided");if(!o)return Kr.debug("region is not configured for getting the credentials"),Promise.reject("region is not configured for getting the credentials");var f={};f["cognito-idp."+o+".amazonaws.com/"+h]=r;var l=new qr({region:o,customUserAgent:j()}),d=zr(e,void 0,void 0,(function(){var t;return Vr(this,(function(e){switch(e.label){case 0:return[4,l.send(new Le({IdentityPoolId:c,Logins:f}))];case 1:return t=e.sent().IdentityId,this._identityId=t,[2,Fe({client:l,logins:f,identityId:t})()]}}))})).catch((function(t){return zr(e,void 0,void 0,(function(){return Vr(this,(function(e){throw t}))}))}));return this._loadCredentials(d,"userPool",!0,null)},t.prototype._loadCredentials=function(t,source,e,r){var n=this,o=this,h=this._config.identityPoolId;return new Promise((function(c,f){t.then((function(t){return zr(n,void 0,void 0,(function(){var n,f,l,d,m,v;return Vr(this,(function(y){switch(y.label){case 0:if(Kr.debug("Load credentials successfully",t),this._identityId&&!t.identityId&&(t.identityId=this._identityId),o._credentials=t,o._credentials.authenticated=e,o._credentials_source=source,o._nextCredentialsRefresh=(new Date).getTime()+3e6,"federated"===source){n=Object.assign({id:this._credentials.identityId},r.user),f=r.provider,l=r.token,d=r.expires_at,m=r.identity_id;try{this._storage.setItem("aws-amplify-federatedInfo",JSON.stringify({provider:f,token:l,user:n,expires_at:d,identity_id:m}))}catch(t){Kr.debug("Failed to put federated info into auth storage",t)}}if("guest"!==source)return[3,4];y.label=1;case 1:return y.trys.push([1,3,,4]),[4,this._storageSync];case 2:return y.sent(),this._storage.setItem("CognitoIdentityId-"+h,t.identityId),[3,4];case 3:return v=y.sent(),Kr.debug("Failed to cache identityId",v),[3,4];case 4:return c(o._credentials),[2]}}))}))})).catch((function(e){if(e)return Kr.debug("Failed to load credentials",t),Kr.debug("Error loading credentials",e),void f(e)}))}))},t.prototype.set=function(t,source){return"session"===source?this._setCredentialsFromSession(t):"federation"===source?this._setCredentialsFromFederation(t):"guest"===source?this._setCredentialsForGuest():(Kr.debug("no source specified for setting credentials"),Promise.reject("invalid source"))},t.prototype.clear=function(){return zr(this,void 0,void 0,(function(){return Vr(this,(function(t){return this._credentials=null,this._credentials_source=null,Kr.debug("removing aws-amplify-federatedInfo from storage"),this._storage.removeItem("aws-amplify-federatedInfo"),[2]}))}
11))},t.prototype.shear=function(t){return{accessKeyId:t.accessKeyId,sessionToken:t.sessionToken,secretAccessKey:t.secretAccessKey,identityId:t.identityId,authenticated:t.authenticated}},t}())(null);U.a.register(Zr)},function(t,e,r){"use strict";var n,o;function h(t){return t&&!!["provider"].find((function(e){return t.hasOwnProperty(e)}))}function c(t){return void 0!==t.redirectSignIn}r.d(e,"a",(function(){return $t})),function(t){t.Cognito="COGNITO",t.Google="Google",t.Facebook="Facebook",t.Amazon="LoginWithAmazon",t.Apple="SignInWithApple"}(n||(n={})),function(t){t.NoConfig="noConfig",t.MissingAuthConfig="missingAuthConfig",t.EmptyUsername="emptyUsername",t.InvalidUsername="invalidUsername",t.EmptyPassword="emptyPassword",t.EmptyCode="emptyCode",t.SignUpError="signUpError",t.NoMFA="noMFA",t.InvalidMFA="invalidMFA",t.EmptyChallengeResponse="emptyChallengeResponse",t.NoUserSession="noUserSession",t.Default="default"}(o||(o={}));var f=r(77),l=r(524),d=r(526),m=r(525),v=r(75);function y(t,e){void 0===e&&(e={});var r=function(t){if(t&&"j"===t[0]&&":"===t[1])return t.substr(2);return t}(t);if(function(t,e){return void 0===e&&(e=!t||"{"!==t[0]&&"["!==t[0]&&'"'!==t[0]),!e}(r,e.doNotParse))try{return JSON.parse(r)}catch(t){}return t}var w=function(){return(w=Object.assign||function(t){for(var s,i=1,e=arguments.length;i<e;i++)for(var p in s=arguments[i])Object.prototype.hasOwnProperty.call(s,p)&&(t[p]=s[p]);return t}).apply(this,arguments)},M=function(){function t(t,e){var r=this;this.changeListeners=[],this.HAS_DOCUMENT_COOKIE=!1,this.cookies=function(t,e){return"string"==typeof t?v.parse(t,e):"object"==typeof t&&null!==t?t:{}}(t,e),new Promise((function(){r.HAS_DOCUMENT_COOKIE="object"==typeof document&&"string"==typeof document.cookie})).catch((function(){}))}return t.prototype._updateBrowserValues=function(t){this.HAS_DOCUMENT_COOKIE&&(this.cookies=v.parse(document.cookie,t))},t.prototype._emitChange=function(t){for(var i=0;i<this.changeListeners.length;++i)this.changeListeners[i](t)},t.prototype.get=function(t,e,r){return void 0===e&&(e={}),this._updateBrowserValues(r),y(this.cookies[t],e)},t.prototype.getAll=function(t,e){void 0===t&&(t={}),this._updateBrowserValues(e);var r={};for(var n in this.cookies)r[n]=y(this.cookies[n],t);return r},t.prototype.set=function(t,e,r){var n;"object"==typeof e&&(e=JSON.stringify(e)),this.cookies=w(w({},this.cookies),((n={})[t]=e,n)),this.HAS_DOCUMENT_COOKIE&&(document.cookie=v.serialize(t,e,r)),this._emitChange({name:t,value:e,options:r})},t.prototype.remove=function(t,e){var r=e=w(w({},e),{expires:new Date(1970,1,1,0,0,1),maxAge:0});this.cookies=w({},this.cookies),delete this.cookies[t],this.HAS_DOCUMENT_COOKIE&&(document.cookie=v.serialize(t,"",r)),this._emitChange({name:t,value:void 0,options:e})},t.prototype.addChangeListener=function(t){this.changeListeners.push(t)},t.prototype.removeChangeListener=function(t){var e=this.changeListeners.indexOf(t);e>=0&&this.changeListeners.splice(e,1)},t}(),_=r(43),S=Object(_.b)().isBrowser,A=function(){function t(t){void 0===t&&(t={}),this.cookies=new M,this.store=S?window.localStorage:Object.create(null),this.cookies=t.req?new M(t.req.headers.cookie):new M,Object.assign(this.store,this.cookies.getAll())}return Object.defineProperty(t.prototype,"length",{get:function(){return Object.entries(this.store).length},enumerable:!0,configurable:!0}),t.prototype.clear=function(){var t=this;Array.from(new Array(this.length)).map((function(e,i){return t.key(i)})).forEach((function(e){return t.removeItem(e)}))},t.prototype.getItem=function(t){return this.getLocalItem(t)},t.prototype.getLocalItem=function(t){return Object.prototype.hasOwnProperty.call(this.store,t)?this.store[t]:null},t.prototype.getUniversalItem=function(t){return this.cookies.get(t)},t.prototype.key=function(t){return Object.keys(this.store)[t]},t.prototype.removeItem=function(t){this.removeLocalItem(t),this.removeUniversalItem(t)},t.prototype.removeLocalItem=function(t){delete this.store[t]},t.prototype.removeUniversalItem=function(t){this.cookies.remove(t,{path:"/"})},t.prototype.setItem=function(t,e){switch(this.setLocalItem(t,e),t.split(".").pop()){case"LastAuthUser":case"accessToken":case"idToken":this.setUniversalItem(t,e)}},t.prototype.setLocalItem=function(t,e){this.store[t]=e},t.prototype.setUniversalItem=function(t,e){this.cookies.set(t,e,{path:"/",sameSite:!0,secure:"localhost"!==window.location.hostname})},t}(),x=r(298);var k=r(181),E=function(){function t(data){var t=data||{},e=t.ValidationData,r=t.Username,n=t.Password,o=t.AuthParameters,h=t.ClientMetadata;this.validationData=e||{},this.authParameters=o||{},this.clientMetadata=h||{},this.username=r,this.password=n}var e=t.prototype;return e.getUsername=function(){return this.username},e.getPassword=function(){return this.password},e.getValidationData=function(){return this.validationData},e.getAuthParameters=function(){return this.authParameters},e.getClientMetadata=function(){return this.clientMetadata},t}(),C=r(5),R=r(28),I=r.n(R),P=(r(231),r(98)),T=r.n(P),O=r(74),j=r.n(O),U=r(297);var B,D=function(){function t(t,e){t=this.words=t||[],this.sigBytes=null!=e?e:4*t.length}var e=t.prototype;return e.random=function(e){for(var r=[],i=0;i<e;i+=4)r.push(Object(U.a)());return new t(r,e)},e.toString=function(){return function(t){for(var e=t.words,r=t.sigBytes,n=[],i=0;i<r;i++){var o=e[i>>>2]>>>24-i%4*8&255;n.push((o>>>4).toString(16)),n.push((15&o).toString(16))}return n.join("")}(this)},t}(),F=L;function L(a,b){null!=a&&this.fromString(a,b)}function N(){return new L(null)}var H="undefined"!=typeof navigator;H&&"Microsoft Internet Explorer"==navigator.appName?(L.prototype.am=function(i,t,e,r,n,o){for(var h=32767&t,c=t>>15;--o>=0;){var f=32767&this[i],l=this[i++]>>15,d=c*f+l*h;n=((f=h*f+((32767&d)<<15)+e[r]+(1073741823&n))>>>30)+(d>>>15)+c*l+(n>>>30),e[r++]=1073741823&f}return n},B=30):H&&"Netscape"!=navigator.appName?(L.prototype.am=function(i,t,e,r,n,o){for(;--o>=0;){var h=t*this[i++]+e[r]+n;n=Math.floor(h/67108864),e[r++]=67108863&h}return n},B=26):(L.prototype.am=function(i,t,e,r,n,o){for(var h=16383&t,c=t>>14;--o>=0;){var f=16383&this[i],l=this[i++]>>14,d=c*f+l*h;n=((f=h*f+((16383&d)<<14)+e[r]+n)>>28)+(d>>14)+c*l,e[r++]=268435455&f}return n},B=28),L.prototype.DB=B,L.prototype.DM=(1<<B)-1,L.prototype.DV=1<<B;L.prototype.FV=Math.pow(2,52),L.prototype.F1=52-B,L.prototype.F2=2*B-52;var z,V,K=new Array;for(z="0".charCodeAt(0),V=0;V<=9;++V)K[z++]=V;for(z="a".charCodeAt(0),V=10;V<36;++V)K[z++]=V;for(z="A".charCodeAt(0),V=10;V<36;++V)K[z++]=V;function Z(t){return"0123456789abcdefghijklmnopqrstuvwxyz".charAt(t)}
vendor: 4,372 bytes, line 11
11function W(s,i){var t=K[s.charCodeAt(i)];return null==t?-1:t}function G(i){var t=N();return t.fromInt(i),t}function J(t){var e,r=1;return 0!=(e=t>>>16)&&(t=e,r+=16),0!=(e=t>>8)&&(t=e,r+=8),0!=(e=t>>4)&&(t=e,r+=4),0!=(e=t>>2)&&(t=e,r+=2),0!=(e=t>>1)&&(t=e,r+=1),r}function Y(t){this.m=t,this.mp=t.invDigit(),this.mpl=32767&this.mp,this.mph=this.mp>>15,this.um=(1<<t.DB-15)-1,this.mt2=2*t.t}Y.prototype.convert=function(t){var e=N();return t.abs().dlShiftTo(this.m.t,e),e.divRemTo(this.m,null,e),t.s<0&&e.compareTo(L.ZERO)>0&&this.m.subTo(e,e),e},Y.prototype.revert=function(t){var e=N();return t.copyTo(e),this.reduce(e),e},Y.prototype.reduce=function(t){for(;t.t<=this.mt2;)t[t.t++]=0;for(var i=0;i<this.m.t;++i){var e=32767&t[i],r=e*this.mpl+((e*this.mph+(t[i]>>15)*this.mpl&this.um)<<15)&t.DM;for(t[e=i+this.m.t]+=this.m.am(0,r,t,i,0,this.m.t);t[e]>=t.DV;)t[e]-=t.DV,t[++e]++}t.clamp(),t.drShiftTo(this.m.t,t),t.compareTo(this.m)>=0&&t.subTo(this.m,t)},Y.prototype.mulTo=function(t,e,r){t.multiplyTo(e,r),this.reduce(r)},Y.prototype.sqrTo=function(t,e){t.squareTo(e),this.reduce(e)},L.prototype.copyTo=function(t){for(var i=this.t-1;i>=0;--i)t[i]=this[i];t.t=this.t,t.s=this.s},L.prototype.fromInt=function(t){this.t=1,this.s=t<0?-1:0,t>0?this[0]=t:t<-1?this[0]=t+this.DV:this.t=0},L.prototype.fromString=function(s,b){var t;if(16==b)t=4;else if(8==b)t=3;else if(2==b)t=1;else if(32==b)t=5;else{if(4!=b)throw new Error("Only radix 2, 4, 8, 16, 32 are supported");t=2}this.t=0,this.s=0;for(var i=s.length,e=!1,r=0;--i>=0;){var n=W(s,i);n<0?"-"==s.charAt(i)&&(e=!0):(e=!1,0==r?this[this.t++]=n:r+t>this.DB?(this[this.t-1]|=(n&(1<<this.DB-r)-1)<<r,this[this.t++]=n>>this.DB-r):this[this.t-1]|=n<<r,(r+=t)>=this.DB&&(r-=this.DB))}this.clamp(),e&&L.ZERO.subTo(this,this)},L.prototype.clamp=function(){for(var t=this.s&this.DM;this.t>0&&this[this.t-1]==t;)--this.t},L.prototype.dlShiftTo=function(t,e){var i;for(i=this.t-1;i>=0;--i)e[i+t]=this[i];for(i=t-1;i>=0;--i)e[i]=0;e.t=this.t+t,e.s=this.s},L.prototype.drShiftTo=function(t,e){for(var i=t;i<this.t;++i)e[i-t]=this[i];e.t=Math.max(this.t-t,0),e.s=this.s},L.prototype.lShiftTo=function(t,e){var i,r=t%this.DB,n=this.DB-r,o=(1<<n)-1,h=Math.floor(t/this.DB),c=this.s<<r&this.DM;for(i=this.t-1;i>=0;--i)e[i+h+1]=this[i]>>n|c,c=(this[i]&o)<<r;for(i=h-1;i>=0;--i)e[i]=0;e[h]=c,e.t=this.t+h+1,e.s=this.s,e.clamp()},L.prototype.rShiftTo=function(t,e){e.s=this.s;var r=Math.floor(t/this.DB);if(r>=this.t)e.t=0;else{var n=t%this.DB,o=this.DB-n,h=(1<<n)-1;e[0]=this[r]>>n;for(var i=r+1;i<this.t;++i)e[i-r-1]|=(this[i]&h)<<o,e[i-r]=this[i]>>n;n>0&&(e[this.t-r-1]|=(this.s&h)<<o),e.t=this.t-r,e.clamp()}},L.prototype.subTo=function(a,t){for(var i=0,e=0,r=Math.min(a.t,this.t);i<r;)e+=this[i]-a[i],t[i++]=e&this.DM,e>>=this.DB;if(a.t<this.t){for(e-=a.s;i<this.t;)e+=this[i],t[i++]=e&this.DM,e>>=this.DB;e+=this.s}else{for(e+=this.s;i<a.t;)e-=a[i],t[i++]=e&this.DM,e>>=this.DB;e-=a.s}t.s=e<0?-1:0,e<-1?t[i++]=this.DV+e:e>0&&(t[i++]=e),t.t=i,t.clamp()},L.prototype.multiplyTo=function(a,t){var e=this.abs(),r=a.abs(),i=e.t;for(t.t=i+r.t;--i>=0;)t[i]=0;for(i=0;i<r.t;++i)t[i+e.t]=e.am(0,r[i],t,i,0,e.t);t.s=0,t.clamp(),this.s!=a.s&&L.ZERO.subTo(t,t)},L.prototype.squareTo=function(t){for(var e=this.abs(),i=t.t=2*e.t;--i>=0;)t[i]=0;for(i=0;i<e.t-1;++i){var r=e.am(i,e[i],t,2*i,0,1);(t[i+e.t]+=e.am(i+1,2*e[i],t,2*i+1,r,e.t-i-1))>=e.DV&&(t[i+e.t]-=e.DV,t[i+e.t+1]=1)}t.t>0&&(t[t.t-1]+=e.am(i,e[i],t,2*i,0,1)),t.s=0,t.clamp()},L.prototype.divRemTo=function(t,q,e){var r=t.abs();if(!(r.t<=0)){var n=this.abs();if(n.t<r.t)return null!=q&&q.fromInt(0),void(null!=e&&this.copyTo(e));null==e&&(e=N());var o=N(),h=this.s,c=t.s,f=this.DB-J(r[r.t-1]);f>0?(r.lShiftTo(f,o),n.lShiftTo(f,e)):(r.copyTo(o),n.copyTo(e));var l=o.t,d=o[l-1];if(0!=d){var m=d*(1<<this.F1)+(l>1?o[l-2]>>this.F2:0),v=this.FV/m,y=(1<<this.F1)/m,w=1<<this.F2,i=e.t,M=i-l,_=null==q?N():q;for(o.dlShiftTo(M,_),e.compareTo(_)>=0&&(e[e.t++]=1,e.subTo(_,e)),L.ONE.dlShiftTo(l,_),_.subTo(o,o);o.t<l;)o[o.t++]=0;for(;--M>=0;){var S=e[--i]==d?this.DM:Math.floor(e[i]*v+(e[i-1]+w)*y);if((e[i]+=o.am(0,S,e,M,0,l))<S)for(o.dlShiftTo(M,_),e.subTo(_,e);e[i]<--S;)e.subTo(_,e)}null!=q&&(e.drShiftTo(l,q),h!=c&&L.ZERO.subTo(q,q)),e.t=l,e.clamp(),f>0&&e.rShiftTo(f,e),h<0&&L.ZERO.subTo(e,e)}}},L.prototype.invDigit=function(){if(this.t<1)return 0;var t=this[0];if(0==(1&t))return 0;var e=3&t;
11return(e=(e=(e=(e=e*(2-(15&t)*e)&15)*(2-(255&t)*e)&255)*(2-((65535&t)*e&65535))&65535)*(2-t*e%this.DV)%this.DV)>0?this.DV-e:-e},L.prototype.addTo=function(a,t){for(var i=0,e=0,r=Math.min(a.t,this.t);i<r;)e+=this[i]+a[i],t[i++]=e&this.DM,e>>=this.DB;if(a.t<this.t){for(e+=a.s;i<this.t;)e+=this[i],t[i++]=e&this.DM,e>>=this.DB;e+=this.s}else{for(e+=this.s;i<a.t;)e+=a[i],t[i++]=e&this.DM,e>>=this.DB;e+=a.s}t.s=e<0?-1:0,e>0?t[i++]=e:e<-1&&(t[i++]=this.DV+e),t.t=i,t.clamp()},L.prototype.toString=function(b){if(this.s<0)return"-"+this.negate().toString(b);var t;if(16==b)t=4;else if(8==b)t=3;else if(2==b)t=1;else if(32==b)t=5;else{if(4!=b)throw new Error("Only radix 2, 4, 8, 16, 32 are supported");t=2}var e,r=(1<<t)-1,n=!1,o="",i=this.t,p=this.DB-i*this.DB%t;if(i-- >0)for(p<this.DB&&(e=this[i]>>p)>0&&(n=!0,o=Z(e));i>=0;)p<t?(e=(this[i]&(1<<p)-1)<<t-p,e|=this[--i]>>(p+=this.DB-t)):(e=this[i]>>(p-=t)&r,p<=0&&(p+=this.DB,--i)),e>0&&(n=!0),n&&(o+=Z(e));return n?o:"0"},L.prototype.negate=function(){var t=N();return L.ZERO.subTo(this,t),t},L.prototype.abs=function(){return this.s<0?this.negate():this},L.prototype.compareTo=function(a){var t=this.s-a.s;if(0!=t)return t;var i=this.t;if(0!=(t=i-a.t))return this.s<0?-t:t;for(;--i>=0;)if(0!=(t=this[i]-a[i]))return t;return 0},L.prototype.bitLength=function(){return this.t<=0?0:this.DB*(this.t-1)+J(this[this.t-1]^this.s&this.DM)},L.prototype.mod=function(a){var t=N();return this.abs().divRemTo(a,null,t),this.s<0&&t.compareTo(L.ZERO)>0&&a.subTo(t,t),t},L.prototype.equals=function(a){return 0==this.compareTo(a)},L.prototype.add=function(a){var t=N();return this.addTo(a,t),t},L.prototype.subtract=function(a){var t=N();return this.subTo(a,t),t},L.prototype.multiply=function(a){var t=N();return this.multiplyTo(a,t),t},L.prototype.divide=function(a){var t=N();return this.divRemTo(a,t,null),t},L.prototype.modPow=function(t,e,r){var n,i=t.bitLength(),o=G(1),h=new Y(e);if(i<=0)return o;n=i<18?1:i<48?3:i<144?4:i<768?5:6;var g=new Array,c=3,f=n-1,l=(1<<n)-1;if(g[1]=h.convert(this),n>1){var d=N();for(h.sqrTo(g[1],d);c<=l;)g[c]=N(),h.mulTo(d,g[c-2],g[c]),c+=2}var m,v,y=t.t-1,w=!0,M=N();for(i=J(t[y])-1;y>=0;){for(i>=f?m=t[y]>>i-f&l:(m=(t[y]&(1<<i+1)-1)<<f-i,y>0&&(m|=t[y-1]>>this.DB+i-f)),c=n;0==(1&m);)m>>=1,--c;if((i-=c)<0&&(i+=this.DB,--y),w)g[m].copyTo(o),w=!1;else{for(;c>1;)h.sqrTo(o,M),h.sqrTo(M,o),c-=2;c>0?h.sqrTo(o,M):(v=o,o=M,M=v),h.mulTo(M,g[m],o)}for(;y>=0&&0==(t[y]&1<<i);)h.sqrTo(o,M),v=o,o=M,M=v,--i<0&&(i=this.DB-1,--y)}var _=h.revert(o);return r(null,_),_},L.ZERO=G(0),L.ONE=G(1);var Q=function(t){return C.Buffer.from((new D).random(t).toString(),"hex")},X=function(){function t(t){this.N=new F("FFFFFFFFFFFFFFFFC90FDAA22168C234C4C6628B80DC1CD129024E088A67CC74020BBEA63B139B22514A08798E3404DDEF9519B3CD3A431B302B0A6DF25F14374FE1356D6D51C245E485B576625E7EC6F44C42E9A637ED6B0BFF5CB6F406B7EDEE386BFB5A899FA5AE9F24117C4B1FE649286651ECE45B3DC2007CB8A163BF0598DA48361C55D39A69163FA8FD24CF5F83655D23DCA3AD961C62F356208552BB9ED529077096966D670C354E4ABC9804F1746C08CA18217C32905E462E36CE3BE39E772C180E86039B2783A2EC07A28FB5C55DF06F4C52C9DE2BCBF6955817183995497CEA956AE515D2261898FA051015728E5A8AAAC42DAD33170D04507A33A85521ABDF1CBA64ECFB850458DBEF0A8AEA71575D060C7DB3970F85A6E1E4C7ABF5AE8CDB0933D71E8C94E04A25619DCEE3D2261AD2EE6BF12FFA06D98A0864D87602733EC86A64521F2B18177B200CBBE117577A615D6C770988C0BAD946E208E24FA074E5AB3143DB5BFCE0FD108E4B82D120A93AD2CAFFFFFFFFFFFFFFFF",16),this.g=new F("2",16),this.k=new F(this.hexHash("00"+this.N.toString(16)+"0"+this.g.toString(16)),16),this.smallAValue=this.generateRandomSmallA(),this.getLargeAValue((function(){})),this.infoBits=C.Buffer.from("Caldera Derived Key","utf8"),this.poolName=t}var e=t.prototype;return e.getSmallAValue=function(){return this.smallAValue},e.getLargeAValue=function(t){var e=this;this.largeAValue?t(null,this.largeAValue):this.calculateA(this.smallAValue,(function(r,n){r&&t(r,null),e.largeAValue=n,t(null,e.largeAValue)}))},e.generateRandomSmallA=function(){var t=Q(128).toString("hex");return new F(t,16).mod(this.N)},e.generateRandomString=function(){return Q(40).toString("base64")},e.getRandomPassword=function(){return this.randomPassword},e.getSaltDevices=function(){return this.SaltToHashDevices},e.getVerifierDevices=function(){return this.verifierDevices},e.generateHashDevice=function(t,e,r){var n=this;this.randomPassword=this.generateRandomString();var o=""+t+e+":"+this.randomPassword,h=this.hash(o),c=Q(16).toString("hex");this.SaltToHashDevices=this.padHex(new F(c,16)),this.g.modPow(new F(this.hexHash(this.SaltToHashDevices+h),16),this.N,(function(t,e){t&&r(t,null),n.verifierDevices=n.padHex(e),r(null,null)}))},e.calculateA=function(a,t){var e=this;this.g.modPow(a,this.N,(function(r,n){r&&t(r,null),n.mod(e.N).equals(F.ZERO)&&t(new Error("Illegal paramater. A mod N cannot be 0."),null),t(null,n)}))},e.calculateU=function(t,e){return this.UHexHash=this.hexHash(this.padHex(t)+this.padHex(e)),new F(this.UHexHash,16)},e.hash=function(t){var e=t instanceof C.Buffer?I.a.lib.WordArray.create(t):t,r=T()(e).toString();return new Array(64-r.length).join("0")+r},e.hexHash=function(t){return this.hash(C.Buffer.from(t,"hex"))},e.computehkdf=function(t,e){var r=I.a.lib.WordArray.create(C.Buffer.concat([this.infoBits,C.Buffer.from(String.fromCharCode(1),"utf8")])),n=t instanceof C.Buffer?I.a.lib.WordArray.create(t):t,o=e instanceof C.Buffer?I.a.lib.WordArray.create(e):e,h=j()(n,o),c=j()(r,h);return C.Buffer.from(c.toString(),"hex").slice(0,16)},e.getPasswordAuthenticationKey=function(t,e,r,n,o){var h=this;if(r.mod(this.N).equals(F.ZERO))throw new Error("B cannot be zero.");if(this.UValue=this.calculateU(this.largeAValue,r),this.UValue.equals(F.ZERO))throw new Error("U cannot be zero.");var c=""+this.poolName+t+":"+e,f=this.hash(c),l=new F(this.hexHash(this.padHex(n)+f),16);this.calculateS(l,r,(function(t,e){t&&o(t,null);var r=h.computehkdf(C.Buffer.from(h.padHex(e),"hex"),C.Buffer.from(h.padHex(h.UValue.toString(16)),"hex"));o(null,r)}
11))},e.calculateS=function(t,e,r){var n=this;this.g.modPow(t,this.N,(function(o,h){o&&r(o,null),e.subtract(n.k.multiply(h)).modPow(n.smallAValue.add(n.UValue.multiply(t)),n.N,(function(t,e){t&&r(t,null),r(null,e.mod(n.N))}))}))},e.getNewPasswordRequiredChallengeUserAttributePrefix=function(){return"userAttributes."},e.padHex=function(t){var e=t.toString(16);return e.length%2==1?e="0"+e:-1!=="89ABCDEFabcdef".indexOf(e[0])&&(e="00"+e),e},t}(),$=function(){function t(t){this.jwtToken=t||"",this.payload=this.decodePayload()}var e=t.prototype;return e.getJwtToken=function(){return this.jwtToken},e.getExpiration=function(){return this.payload.exp},e.getIssuedAt=function(){return this.payload.iat},e.decodePayload=function(){var t=this.jwtToken.split(".")[1];try{return JSON.parse(C.Buffer.from(t,"base64").toString("utf8"))}catch(t){return{}}},t}();var tt=function(t){var e,r;function n(e){var r=(void 0===e?{}:e).AccessToken;return t.call(this,r||"")||this}return r=t,(e=n).prototype=Object.create(r.prototype),e.prototype.constructor=e,e.__proto__=r,n}($);var et=function(t){var e,r;function n(e){var r=(void 0===e?{}:e).IdToken;return t.call(this,r||"")||this}return r=t,(e=n).prototype=Object.create(r.prototype),e.prototype.constructor=e,e.__proto__=r,n}($),it=function(){function t(t){var e=(void 0===t?{}:t).RefreshToken;this.token=e||""}return t.prototype.getToken=function(){return this.token},t}(),nt=r(101),ot=r.n(nt),st=function(){function t(t){var e=void 0===t?{}:t,r=e.IdToken,n=e.RefreshToken,o=e.AccessToken,h=e.ClockDrift;if(null==o||null==r)throw new Error("Id token and Access Token must be present.");this.idToken=r,this.refreshToken=n,this.accessToken=o,this.clockDrift=void 0===h?this.calculateClockDrift():h}var e=t.prototype;return e.getIdToken=function(){return this.idToken},e.getRefreshToken=function(){return this.refreshToken},e.getAccessToken=function(){return this.accessToken},e.getClockDrift=function(){return this.clockDrift},e.calculateClockDrift=function(){return Math.floor(new Date/1e3)-Math.min(this.accessToken.getIssuedAt(),this.idToken.getIssuedAt())},e.isValid=function(){var t=Math.floor(new Date/1e3)-this.clockDrift;return t<this.accessToken.getExpiration()&&t<this.idToken.getExpiration()},t}(),at=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],ut=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],ht=function(){function t(){}return t.prototype.getNowString=function(){var t=new Date,e=ut[t.getUTCDay()],r=at[t.getUTCMonth()],n=t.getUTCDate(),o=t.getUTCHours();o<10&&(o="0"+o);var h=t.getUTCMinutes();h<10&&(h="0"+h);var c=t.getUTCSeconds();return c<10&&(c="0"+c),e+" "+r+" "+n+" "+o+":"+h+":"+c+" UTC "+t.getUTCFullYear()},t}(),ct=function(){function t(t){var e=void 0===t?{}:t,r=e.Name,n=e.Value;this.Name=r||"",this.Value=n||""}var e=t.prototype;return e.getValue=function(){return this.Value},e.setValue=function(t){return this.Value=t,this},e.getName=function(){return this.Name},e.setName=function(t){return this.Name=t,this},e.toString=function(){return JSON.stringify(this)},e.toJSON=function(){return{Name:this.Name,Value:this.Value}},t}(),ft={},lt=function(){function t(){}return t.setItem=function(t,e){return ft[t]=e,ft[t]},t.getItem=function(t){return Object.prototype.hasOwnProperty.call(ft,t)?ft[t]:void 0},t.removeItem=function(t){return delete ft[t]},t.clear=function(){return ft={}},t}(),pt=function(){function t(){try{this.storageWindow=window.localStorage,this.storageWindow.setItem("aws.cognito.test-ls",1),this.storageWindow.removeItem("aws.cognito.test-ls")}catch(t){this.storageWindow=lt}}return t.prototype.getStorage=function(){return this.storageWindow},t}(),mt="undefined"!=typeof navigator?navigator.userAgent:"nodejs",gt=function(){function t(data){if(null==data||null==data.Username||null==data.Pool)throw new Error("Username and Pool information are required.");this.username=data.Username||"",this.pool=data.Pool,this.Session=null,this.client=data.Pool.client,this.signInUserSession=null,this.authenticationFlowType="USER_SRP_AUTH",this.storage=data.Storage||(new pt).getStorage(),this.keyPrefix="CognitoIdentityServiceProvider."+this.pool.getClientId(),this.userDataKey=this.keyPrefix+"."+this.username+".userData"}var e=t.prototype;return e.setSignInUserSession=function(t){this.clearCachedUserData(),this.signInUserSession=t,this.cacheTokens()},e.getSignInUserSession=function(){return this.signInUserSession},e.getUsername=function(){return this.username},e.getAuthenticationFlowType=function(){return this.authenticationFlowType},e.setAuthenticationFlowType=function(t){this.authenticationFlowType=t},e.initiateAuth=function(t,e){var r=this,n=t.getAuthParameters();n.USERNAME=this.username;var o=0!==Object.keys(t.getValidationData()).length?t.getValidationData():t.getClientMetadata(),h={AuthFlow:"CUSTOM_AUTH",ClientId:this.pool.getClientId(),AuthParameters:n,ClientMetadata:o};this.getUserContextData()&&(h.UserContextData=this.getUserContextData()),this.client.request("InitiateAuth",h,(function(t,data){if(t)return e.onFailure(t);var n=data.ChallengeName,o=data.ChallengeParameters;return"CUSTOM_CHALLENGE"===n?(r.Session=data.Session,e.customChallenge(o)):(r.signInUserSession=r.getCognitoUserSession(data.AuthenticationResult),r.cacheTokens(),e.onSuccess(r.signInUserSession))}))},e.authenticateUser=function(t,e){return"USER_PASSWORD_AUTH"===this.authenticationFlowType?this.authenticateUserPlainUsernamePassword(t,e):"USER_SRP_AUTH"===this.authenticationFlowType||"CUSTOM_AUTH"===this.authenticationFlowType?this.authenticateUserDefaultAuth(t,e):e.onFailure(new Error("Authentication flow type is invali
11d."))},e.authenticateUserDefaultAuth=function(t,e){var r,n,o=this,h=new X(this.pool.getUserPoolId().split("_")[1]),c=new ht,f={};null!=this.deviceKey&&(f.DEVICE_KEY=this.deviceKey),f.USERNAME=this.username,h.getLargeAValue((function(l,d){l&&e.onFailure(l),f.SRP_A=d.toString(16),"CUSTOM_AUTH"===o.authenticationFlowType&&(f.CHALLENGE_NAME="SRP_A");var m=0!==Object.keys(t.getValidationData()).length?t.getValidationData():t.getClientMetadata(),v={AuthFlow:o.authenticationFlowType,ClientId:o.pool.getClientId(),AuthParameters:f,ClientMetadata:m};o.getUserContextData(o.username)&&(v.UserContextData=o.getUserContextData(o.username)),o.client.request("InitiateAuth",v,(function(f,data){if(f)return e.onFailure(f);var l=data.ChallengeParameters;o.username=l.USER_ID_FOR_SRP,r=new F(l.SRP_B,16),n=new F(l.SALT,16),o.getCachedDeviceKeyAndPassword(),h.getPasswordAuthenticationKey(o.username,t.getPassword(),r,n,(function(t,r){t&&e.onFailure(t);var n=c.getNowString(),f=I.a.lib.WordArray.create(C.Buffer.concat([C.Buffer.from(o.pool.getUserPoolId().split("_")[1],"utf8"),C.Buffer.from(o.username,"utf8"),C.Buffer.from(l.SECRET_BLOCK,"base64"),C.Buffer.from(n,"utf8")])),d=I.a.lib.WordArray.create(r),v=ot.a.stringify(j()(f,d)),y={};y.USERNAME=o.username,y.PASSWORD_CLAIM_SECRET_BLOCK=l.SECRET_BLOCK,y.TIMESTAMP=n,y.PASSWORD_CLAIM_SIGNATURE=v,null!=o.deviceKey&&(y.DEVICE_KEY=o.deviceKey);var w={ChallengeName:"PASSWORD_VERIFIER",ClientId:o.pool.getClientId(),ChallengeResponses:y,Session:data.Session,ClientMetadata:m};o.getUserContextData()&&(w.UserContextData=o.getUserContextData()),function t(e,r){return o.client.request("RespondToAuthChallenge",e,(function(n,h){return n&&"ResourceNotFoundException"===n.code&&-1!==n.message.toLowerCase().indexOf("device")?(y.DEVICE_KEY=null,o.deviceKey=null,o.randomPassword=null,o.deviceGroupKey=null,o.clearCachedDeviceKeyAndPassword(),t(e,r)):r(n,h)}))}(w,(function(t,r){return t?e.onFailure(t):o.authenticateUserInternal(r,h,e)}))}))}))}))},e.authenticateUserPlainUsernamePassword=function(t,e){var r=this,n={};if(n.USERNAME=this.username,n.PASSWORD=t.getPassword(),n.PASSWORD){var o=new X(this.pool.getUserPoolId().split("_")[1]);this.getCachedDeviceKeyAndPassword(),null!=this.deviceKey&&(n.DEVICE_KEY=this.deviceKey);var h=0!==Object.keys(t.getValidationData()).length?t.getValidationData():t.getClientMetadata(),c={AuthFlow:"USER_PASSWORD_AUTH",ClientId:this.pool.getClientId(),AuthParameters:n,ClientMetadata:h};this.getUserContextData(this.username)&&(c.UserContextData=this.getUserContextData(this.username)),this.client.request("InitiateAuth",c,(function(t,n){return t?e.onFailure(t):r.authenticateUserInternal(n,o,e)}))}else e.onFailure(new Error("PASSWORD parameter is required"))},e.authenticateUserInternal=function(t,e,r){var n=this,o=t.ChallengeName,h=t.ChallengeParameters;if("SMS_MFA"===o)return this.Session=t.Session,r.mfaRequired(o,h);if("SELECT_MFA_TYPE"===o)return this.Session=t.Session,r.selectMFAType(o,h);if("MFA_SETUP"===o)return this.Session=t.Session,r.mfaSetup(o,h);if("SOFTWARE_TOKEN_MFA"===o)return this.Session=t.Session,r.totpRequired(o,h);if("CUSTOM_CHALLENGE"===o)return this.Session=t.Session,r.customChallenge(h);if("NEW_PASSWORD_REQUIRED"===o){this.Session=t.Session;var c=null,f=null,l=[],d=e.getNewPasswordRequiredChallengeUserAttributePrefix();if(h&&(c=JSON.parse(t.ChallengeParameters.userAttributes),f=JSON.parse(t.ChallengeParameters.requiredAttributes)),f)for(var i=0;i<f.length;i++)l[i]=f[i].substr(d.length);return r.newPasswordRequired(c,l)}if("DEVICE_SRP_AUTH"!==o){this.signInUserSession=this.getCognitoUserSession(t.AuthenticationResult),this.challengeName=o,this.cacheTokens();var m=t.AuthenticationResult.NewDeviceMetadata;if(null==m)return r.onSuccess(this.signInUserSession);e.generateHashDevice(t.AuthenticationResult.NewDeviceMetadata.DeviceGroupKey,t.AuthenticationResult.NewDeviceMetadata.DeviceKey,(function(o){if(o)return r.onFailure(o);var h={Salt:C.Buffer.from(e.getSaltDevices(),"hex").toString("base64"),PasswordVerifier:C.Buffer.from(e.getVerifierDevices(),"hex").toString("base64")};n.verifierDevices=h.PasswordVerifier,n.deviceGroupKey=m.DeviceGroupKey,n.randomPassword=e.getRandomPassword(),n.client.request("ConfirmDevice",{DeviceKey:m.DeviceKey,AccessToken:n.signInUserSession.getAccessToken().getJwtToken(),DeviceSecretVerifierConfig:h,DeviceName:mt},(function(e,o){return e?r.onFailure(e):(n.deviceKey=t.AuthenticationResult.
11NewDeviceMetadata.DeviceKey,n.cacheDeviceKeyAndPassword(),!0===o.UserConfirmationNecessary?r.onSuccess(n.signInUserSession,o.UserConfirmationNecessary):r.onSuccess(n.signInUserSession))}))}))}else this.getDeviceResponse(r)},e.completeNewPasswordChallenge=function(t,e,r,n){var o=this;if(!t)return r.onFailure(new Error("New password is required."));var h=new X(this.pool.getUserPoolId().split("_")[1]),c=h.getNewPasswordRequiredChallengeUserAttributePrefix(),f={};e&&Object.keys(e).forEach((function(t){f[c+t]=e[t]})),f.NEW_PASSWORD=t,f.USERNAME=this.username;var l={ChallengeName:"NEW_PASSWORD_REQUIRED",ClientId:this.pool.getClientId(),ChallengeResponses:f,Session:this.Session,ClientMetadata:n};this.getUserContextData()&&(l.UserContextData=this.getUserContextData()),this.client.request("RespondToAuthChallenge",l,(function(t,e){return t?r.onFailure(t):o.authenticateUserInternal(e,h,r)}))},e.getDeviceResponse=function(t,e){var r=this,n=new X(this.deviceGroupKey),o=new ht,h={};h.USERNAME=this.username,h.DEVICE_KEY=this.deviceKey,n.getLargeAValue((function(c,f){c&&t.onFailure(c),h.SRP_A=f.toString(16);var l={ChallengeName:"DEVICE_SRP_AUTH",ClientId:r.pool.getClientId(),ChallengeResponses:h,ClientMetadata:e};r.getUserContextData()&&(l.UserContextData=r.getUserContextData()),r.client.request("RespondToAuthChallenge",l,(function(e,data){if(e)return t.onFailure(e);var h=data.ChallengeParameters,c=new F(h.SRP_B,16),f=new F(h.SALT,16);n.getPasswordAuthenticationKey(r.deviceKey,r.randomPassword,c,f,(function(e,n){if(e)return t.onFailure(e);var c=o.getNowString(),f=I.a.lib.WordArray.create(C.Buffer.concat([C.Buffer.from(r.deviceGroupKey,"utf8"),C.Buffer.from(r.deviceKey,"utf8"),C.Buffer.from(h.SECRET_BLOCK,"base64"),C.Buffer.from(c,"utf8")])),l=I.a.lib.WordArray.create(n),d=ot.a.stringify(j()(f,l)),m={};m.USERNAME=r.username,m.PASSWORD_CLAIM_SECRET_BLOCK=h.SECRET_BLOCK,m.TIMESTAMP=c,m.PASSWORD_CLAIM_SIGNATURE=d,m.DEVICE_KEY=r.deviceKey;var v={ChallengeName:"DEVICE_PASSWORD_VERIFIER",ClientId:r.pool.getClientId(),ChallengeResponses:m,Session:data.Session};r.getUserContextData()&&(v.UserContextData=r.getUserContextData()),r.client.request("RespondToAuthChallenge",v,(function(e,n){return e?t.onFailure(e):(r.signInUserSession=r.getCognitoUserSession(n.AuthenticationResult),r.cacheTokens(),t.onSuccess(r.signInUserSession))}))}))}))}))},e.confirmRegistration=function(t,e,r,n){var o={ClientId:this.pool.getClientId(),ConfirmationCode:t,Username:this.username,ForceAliasCreation:e,ClientMetadata:n};this.getUserContextData()&&(o.UserContextData=this.getUserContextData()),this.client.request("ConfirmSignUp",o,(function(t){return t?r(t,null):r(null,"SUCCESS")}))},e.sendCustomChallengeAnswer=function(t,e,r){var n=this,o={};o.USERNAME=this.username,o.ANSWER=t;var h=new X(this.pool.getUserPoolId().split("_")[1]);this.getCachedDeviceKeyAndPassword(),null!=this.deviceKey&&(o.DEVICE_KEY=this.deviceKey);var c={ChallengeName:"CUSTOM_CHALLENGE",ChallengeResponses:o,ClientId:this.pool.getClientId(),Session:this.Session,ClientMetadata:r};this.getUserContextData()&&(c.UserContextData=this.getUserContextData()),this.client.request("RespondToAuthChallenge",c,(function(t,data){return t?e.onFailure(t):n.authenticateUserInternal(data,h,e)}))},e.sendMFACode=function(t,e,r,n){var o=this,h={};h.USERNAME=this.username,h.SMS_MFA_CODE=t;var c=r||"SMS_MFA";"SOFTWARE_TOKEN_MFA"===c&&(h.SOFTWARE_TOKEN_MFA_CODE=t),null!=this.deviceKey&&(h.DEVICE_KEY=this.deviceKey);var f={ChallengeName:c,ChallengeResponses:h,ClientId:this.pool.getClientId(),Session:this.Session,ClientMetadata:n};this.getUserContextData()&&(f.UserContextData=this.getUserContextData()),this.client.request("RespondToAuthChallenge",f,(function(t,r){if(t)return e.onFailure(t);if("DEVICE_SRP_AUTH"!==r.ChallengeName){if(o.signInUserSession=o.getCognitoUserSession(r.AuthenticationResult),o.cacheTokens(),null==r.AuthenticationResult.NewDeviceMetadata)return e.onSuccess(o.signInUserSession);var n=new X(o.pool.getUserPoolId().split("_")[1]);n.generateHashDevice(r.AuthenticationResult.NewDeviceMetadata.DeviceGroupKey,r.AuthenticationResult.
11NewDeviceMetadata.DeviceKey,(function(t){if(t)return e.onFailure(t);var h={Salt:C.Buffer.from(n.getSaltDevices(),"hex").toString("base64"),PasswordVerifier:C.Buffer.from(n.getVerifierDevices(),"hex").toString("base64")};o.verifierDevices=h.PasswordVerifier,o.deviceGroupKey=r.AuthenticationResult.NewDeviceMetadata.DeviceGroupKey,o.randomPassword=n.getRandomPassword(),o.client.request("ConfirmDevice",{DeviceKey:r.AuthenticationResult.NewDeviceMetadata.DeviceKey,AccessToken:o.signInUserSession.getAccessToken().getJwtToken(),DeviceSecretVerifierConfig:h,DeviceName:mt},(function(t,n){return t?e.onFailure(t):(o.deviceKey=r.AuthenticationResult.NewDeviceMetadata.DeviceKey,o.cacheDeviceKeyAndPassword(),!0===n.UserConfirmationNecessary?e.onSuccess(o.signInUserSession,n.UserConfirmationNecessary):e.onSuccess(o.signInUserSession))}))}))}else o.getDeviceResponse(e)}))},e.changePassword=function(t,e,r,n){if(null==this.signInUserSession||!this.signInUserSession.isValid())return r(new Error("User is not authenticated"),null);this.client.request("ChangePassword",{PreviousPassword:t,ProposedPassword:e,AccessToken:this.signInUserSession.getAccessToken().getJwtToken(),ClientMetadata:n},(function(t){return t?r(t,null):r(null,"SUCCESS")}))},e.enableMFA=function(t){if(null==this.signInUserSession||!this.signInUserSession.isValid())return t(new Error("User is not authenticated"),null);var e=[];e.push({DeliveryMedium:"SMS",AttributeName:"phone_number"}),this.client.request("SetUserSettings",{MFAOptions:e,AccessToken:this.signInUserSession.getAccessToken().getJwtToken()},(function(e){return e?t(e,null):t(null,"SUCCESS")}))},e.setUserMfaPreference=function(t,e,r){if(null==this.signInUserSession||!this.signInUserSession.isValid())return r(new Error("User is not authenticated"),null);this.client.request("SetUserMFAPreference",{SMSMfaSettings:t,SoftwareTokenMfaSettings:e,AccessToken:this.signInUserSession.getAccessToken().getJwtToken()},(function(t){return t?r(t,null):r(null,"SUCCESS")}))},e.disableMFA=function(t){if(null==this.signInUserSession||!this.signInUserSession.isValid())return t(new Error("User is not authenticated"),null);this.client.request("SetUserSettings",{MFAOptions:[],AccessToken:this.signInUserSession.getAccessToken().getJwtToken()},(function(e){return e?t(e,null):t(null,"SUCCESS")}))},e.deleteUser=function(t,e){var r=this;if(null==this.signInUserSession||!this.signInUserSession.isValid())return t(new Error("User is not authenticated"),null);this.client.request("DeleteUser",{AccessToken:this.signInUserSession.getAccessToken().getJwtToken(),ClientMetadata:e},(function(e){return e?t(e,null):(r.clearCachedUser(),t(null,"SUCCESS"))}))},e.updateAttributes=function(t,e,r){var n=this;if(null==this.signInUserSession||!this.signInUserSession.isValid())return e(new Error("User is not authenticated"),null);this.client.request("UpdateUserAttributes",{AccessToken:this.signInUserSession.getAccessToken().getJwtToken(),UserAttributes:t,ClientMetadata:r},(function(t){return t?e(t,null):n.getUserData((function(){return e(null,"SUCCESS")}),{bypassCache:!0})}))},e.getUserAttributes=function(t){if(null==this.signInUserSession||!this.signInUserSession.isValid())return t(new Error("User is not authenticated"),null);this.client.request("GetUser",{AccessToken:this.signInUserSession.getAccessToken().getJwtToken()},(function(e,r){if(e)return t(e,null);for(var n=[],i=0;i<r.UserAttributes.length;i++){var o={Name:r.UserAttributes[i].Name,Value:r.UserAttributes[i].Value},h=new ct(o);n.push(h)}return t(null,n)}))},e.getMFAOptions=function(t){if(null==this.signInUserSession||!this.signInUserSession.isValid())return t(new Error("User is not authenticated"),null);this.client.request("GetUser",{AccessToken:this.signInUserSession.getAccessToken().getJwtToken()},(function(e,r){return e?t(e,null):t(null,r.MFAOptions)}))},e.createGetUserRequest=function(){return this.client.promisifyRequest("GetUser",{AccessToken:this.signInUserSession.getAccessToken().getJwtToken()})},e.refreshSessionIfPossible=function(){var t=this;return new Promise((function(e){var r=t.signInUserSession.getRefreshToken();r&&r.getToken()?t.refreshSession(r,e):e()}))},e.getUserData=function(t,e){var r=this;if(null==this.signInUserSession||!this.signInUserSession.isValid())return this.clearCachedUserData(),t(new Error("User is not authenticated"),null);
11var n=this.getUserDataFromCache();if(n)if(this.isFetchUserDataAndTokenRequired(e))this.fetchUserData().then((function(data){return r.refreshSessionIfPossible().then((function(){return data}))})).then((function(data){return t(null,data)})).catch(t);else try{return void t(null,JSON.parse(n))}catch(e){return this.clearCachedUserData(),void t(e,null)}else this.fetchUserData().then((function(data){t(null,data)})).catch(t)},e.getUserDataFromCache=function(){return this.storage.getItem(this.userDataKey)},e.isFetchUserDataAndTokenRequired=function(t){var e=(t||{}).bypassCache;return void 0!==e&&e},e.fetchUserData=function(){var t=this;return this.createGetUserRequest().then((function(data){return t.cacheUserData(data),data}))},e.deleteAttributes=function(t,e){if(null==this.signInUserSession||!this.signInUserSession.isValid())return e(new Error("User is not authenticated"),null);this.client.request("DeleteUserAttributes",{UserAttributeNames:t,AccessToken:this.signInUserSession.getAccessToken().getJwtToken()},(function(t){return t?e(t,null):e(null,"SUCCESS")}))},e.resendConfirmationCode=function(t,e){var r={ClientId:this.pool.getClientId(),Username:this.username,ClientMetadata:e};this.client.request("ResendConfirmationCode",r,(function(e,r){return e?t(e,null):t(null,r)}))},e.getSession=function(t){if(null==this.username)return t(new Error("Username is null. Cannot retrieve a new session"),null);if(null!=this.signInUserSession&&this.signInUserSession.isValid())return t(null,this.signInUserSession);var e="CognitoIdentityServiceProvider."+this.pool.getClientId()+"."+this.username,r=e+".idToken",n=e+".accessToken",o=e+".refreshToken",h=e+".clockDrift";if(this.storage.getItem(r)){var c=new et({IdToken:this.storage.getItem(r)}),f=new tt({AccessToken:this.storage.getItem(n)}),l=new it({RefreshToken:this.storage.getItem(o)}),d=parseInt(this.storage.getItem(h),0)||0,m=new st({IdToken:c,AccessToken:f,RefreshToken:l,ClockDrift:d});if(m.isValid())return this.signInUserSession=m,t(null,this.signInUserSession);if(!l.getToken())return t(new Error("Cannot retrieve a new session. Please authenticate."),null);this.refreshSession(l,t)}else t(new Error("Local storage is missing an ID Token, Please authenticate"),null)},e.refreshSession=function(t,e,r){var n=this,o=this.pool.wrapRefreshSessionCallback?this.pool.wrapRefreshSessionCallback(e):e,h={};h.REFRESH_TOKEN=t.getToken();var c="CognitoIdentityServiceProvider."+this.pool.getClientId(),f=c+".LastAuthUser";if(this.storage.getItem(f)){this.username=this.storage.getItem(f);var l=c+"."+this.username+".deviceKey";this.deviceKey=this.storage.getItem(l),h.DEVICE_KEY=this.deviceKey}var d={ClientId:this.pool.getClientId(),AuthFlow:"REFRESH_TOKEN_AUTH",AuthParameters:h,ClientMetadata:r};this.getUserContextData()&&(d.UserContextData=this.getUserContextData()),this.client.request("InitiateAuth",d,(function(e,r){if(e)return"NotAuthorizedException"===e.code&&n.clearCachedUser(),o(e,null);if(r){var h=r.AuthenticationResult;return Object.prototype.hasOwnProperty.call(h,"RefreshToken")||(h.RefreshToken=t.getToken()),n.signInUserSession=n.getCognitoUserSession(h),n.cacheTokens(),o(null,n.signInUserSession)}}))},e.cacheTokens=function(){var t="CognitoIdentityServiceProvider."+this.pool.getClientId(),e=t+"."+this.username+".idToken",r=t+"."+this.username+".accessToken",n=t+"."+this.username+".refreshToken",o=t+"."+this.username+".clockDrift",h=t+".LastAuthUser";this.storage.setItem(e,this.signInUserSession.getIdToken().getJwtToken()),this.storage.setItem(r,this.signInUserSession.getAccessToken().getJwtToken()),this.storage.setItem(n,this.signInUserSession.getRefreshToken().getToken()),this.storage.setItem(o,""+this.signInUserSession.getClockDrift()),this.storage.setItem(h,this.username)},e.cacheUserData=function(t){this.storage.setItem(this.userDataKey,JSON.stringify(t))},e.clearCachedUserData=function(){this.storage.removeItem(this.userDataKey)},e.clearCachedUser=function(){this.clearCachedTokens(),this.clearCachedUserData()},e.cacheDeviceKeyAndPassword=function(){var t="CognitoIdentityServiceProvider."+this.pool.getClientId()+"."+this.username,e=t+".deviceKey",r=t+".randomPasswordKey",n=t+".deviceGroupKey";this.storage.setItem(e,this.deviceKey),this.storage.setItem(r,this.randomPassword),this.storage.setItem(n,this.deviceGroupKey)},e.getCachedDeviceKeyAndPassword=function(){var t="CognitoIdentityServiceProvider."+this.pool.getClientId()+"."+this.username,e=t+".deviceKey",r=t+".randomPasswordKey",n=t+".deviceGroupKey";this.storage.getItem(e)&&(this.deviceKey=this.storage.getItem(e),this.randomPassword=this.storage.getItem(r),this.deviceGroupKey=this.storage.getItem(n))},e.clearCachedDeviceKeyAndPassword=function(){var t="CognitoIdentityServiceProvider."+this.pool.getClientId()+"."+this.username,e=t+".deviceKey",r=t+".randomPasswordKey",n=t+".deviceGroupKey";this.storage.removeItem(e),this.storage.removeItem(r),this.storage.removeItem(n)},e.clearCachedTokens=function(){var t="CognitoIdentityServiceProvider."+this.pool.getClientId(),e=t+"."+this.username+".idToken",r=t+"."+this.username+".accessToken",n=t+"."+this.username+".refreshToken",o=t+".LastAuthUser",h=t+"."+this.username+".clockDrift";this.storage.removeItem(e),this.storage.removeItem(r),this.storage.removeItem(n),this.storage.removeItem(o),this.storage.removeItem(h)},e.getCognitoUserSession=function(t){var e=new et(t),r=new tt(t),n=new it(t);return new st({IdToken:e,AccessToken:r,RefreshToken:n})},e.forgotPassword=function(t,e){var r={ClientId:this.pool.getClientId(),Username:this.username,ClientMetadata:e};this.getUserContextData()&&(r.UserContextData=this.getUserContextData()),this.client.request("ForgotPassword",r,(function(e,data){return e?t.onFailure(e):"function"==typeof t.inputVerificationCode?t.inputVerificationCode(data):t.onSuccess(data)}))},e.confirmPassword=function(t,e,r,n){var o={ClientId:this.pool.getClientId(),Username:this.username,ConfirmationCode:t,Password:e,ClientMetadata:n};this.getUserContextData()&&(o.UserContextData=this.getUserContextData()),this.client.request("ConfirmForgotPassword",o,(function(t){return t?r.onFailure(t):r.onSuccess()}))},e.getAttributeVerificationCode=function(t,e,r){if(null==this.signInUserSession||!this.signInUserSession.isValid())return e.onFailure(new Error("User is not authenticated"));this.client.request("GetUserAttributeVerificationCode",{AttributeName:t,AccessToken:this.signInUserSession.getAccessToken().getJwtToken(),ClientMetadata:r},(function(t,data){return t?e.onFailure(t):"function"==typeof e.inputVerificationCode?e.inputVerificationCode(data):e.onSuccess()}))},e.verifyAttribute=function(t,e,r){if(null==this.signInUserSession||!this.signInUserSession.isValid())return r.onFailure(new Error("User is not authenticated"));this.client.request("VerifyUserAttribute",{AttributeName:t,Code:e,AccessToken:this.signInUserSession.getAccessToken().getJwtToken()},(function(t){return t?r.onFailure(t):r.onSuccess("SUCCESS")}))},e.getDevice=function(t){if(null==this.signInUserSession||!this.signInUserSession.isValid())return t.onFailure(new Error("User is not authenticated"));this.client.request("GetDevice",{AccessToken:this.signInUserSession.getAccessToken().getJwtToken(),DeviceKey:this.deviceKey},(function(e,data){return e?t.onFailure(e):t.onSuccess(data)}))},e.forgetSpecificDevice=function(t,e){if(null==this.signInUserSession||!this.signInUserSession.isValid())return e.onFailure(new Error("User is not authenticated"));this.client.request("ForgetDevice",{AccessToken:this.signInUserSession.getAccessToken().getJwtToken(),DeviceKey:t},(function(t){return t?e.onFailure(t):e.onSuccess("SUCCESS")}))},e.forgetDevice=function(t){var e=this;this.forgetSpecificDevice(this.deviceKey,{onFailure:t.onFailure,onSuccess:function(r){return e.deviceKey=null,e.deviceGroupKey=null,e.randomPassword=null,e.clearCachedDeviceKeyAndPassword(),t.onSuccess(r)}})},e.setDeviceStatusRemembered=function(t){if(null==this.signInUserSession||!this.signInUserSession.isValid())return t.onFailure(new Error("User is not authenticated"));this.client.request("UpdateDeviceStatus",{AccessToken:this.signInUserSession.getAccessToken().getJwtToken(),DeviceKey:this.deviceKey,DeviceRememberedStatus:"remembered"},(function(e){return e?t.onFailure(e):t.onSuccess("SUCCESS")}))},e.setDeviceStatusNotRemembered=function(t){if(null==this.signInUserSession||!this.signInUserSession.isValid())return t.onFailure(new Error("User is not authenticated"));this.client.request("UpdateDeviceStatus",{AccessToken:this.signInUserSession.getAccessToken().getJwtToken(),DeviceKey:this.deviceKey,DeviceRememberedStatus:"not_remembered"},(function(e){return e?t.onFailure(e):t.onSuccess("SUCCESS")}))},e.listDevices=function(t,e,r){if(null==this.signInUserSession||!this.signInUserSession.isValid())return r.onFailure(new Error("User is not authenticated"));var n={AccessToken:this.signInUserSession.getAccessToken().getJwtToken(),Limit:t};e&&(n.PaginationToken=e),this.client.request("ListDevices",n,(function(t,data){return t?r.onFailure(t):r.onSuccess(data)}))},e.globalSignOut=function(t){var e=this;if(null==this.signInUserSession||!this.signInUserSession.isValid())return t.onFailure(new Error("User is not authenticated"));this.client.request("GlobalSignOut",{AccessToken:this.signInUserSession.getAccessToken().getJwtToken()},(function(r){return r?t.onFailure(r):(e.clearCachedUser(),t.onSuccess("SUCCESS"))}))},e.signOut=function(){this.signInUserSession=null,this.clearCachedUser()},e.sendMFASelectionAnswer=function(t,e){var r=this,n={};n.USERNAME=this.username,n.ANSWER=t;var o={ChallengeName:"SELECT_MFA_TYPE",ChallengeResponses:n,ClientId:this.pool.getClientId(),Session:this.Session};this.getUserContextData()&&(o.UserContextData=this.getUserContextData()),this.client.request("RespondToAuthChallenge",o,(function(n,data){return n?e.onFailure(n):(r.Session=data.Session,"SMS_MFA"===t?e.mfaRequired(data.ChallengeName,data.ChallengeParameters):"SOFTWARE_TOKEN_MFA"===t?e.totpRequired(data.ChallengeName,data.ChallengeParameters):void 0)}))},e.getUserContextData=function(){return this.pool.getUserContextData(this.username)},e.associateSoftwareToken=function(t){var e=this;null!=this.signInUserSession&&this.signInUserSession.isValid()?this.client.request("AssociateSoftwareToken",{AccessToken:this.signInUserSession.getAccessToken().getJwtToken()},(function(e,data){return e?t.onFailure(e):t.associateSecretCode(data.SecretCode)})):this.client.request("AssociateSoftwareToken",{Session:this.Session},(function(r,data){return r?t.onFailure(r):(e.Session=data.Session,t.associateSecretCode(data.SecretCode))}))},e.verifySoftwareToken=function(t,e,r){var n=this;null!=this.signInUserSession&&this.signInUserSession.isValid()?this.client.request("VerifySoftwareToken",{AccessToken:this.signInUserSession.getAccessToken().getJwtToken(),UserCode:t,FriendlyDeviceName:e},(function(t,data){return t?r.onFailure(t):r.onSuccess(data)})):this.client.request("VerifySoftwareToken",{Session:this.Session,UserCode:t,FriendlyDeviceName:e},(function(t,data){if(t)return r.onFailure(t);n.Session=data.Session;var e={};e.USERNAME=n.username;var o={ChallengeName:"MFA_SETUP",ClientId:n.pool.getClientId(),ChallengeResponses:e,Session:n.Session};n.getUserContextData()&&(o.UserContextData=n.getUserContextData()),n.client.request("RespondToAuthChallenge",o,(function(t,e){return t?r.onFailure(t):(n.signInUserSession=n.getCognitoUserSession(e.AuthenticationResult),n.cacheTokens(),r.onSuccess(n.signInUserSession))}))}))},t}();r(491);function vt(){}vt.prototype.userAgent="aws-amplify/0.1.x js";var yt=vt;function bt(t){var e="function"==typeof Map?new Map:void 0;return(bt=function(t){if(null===t||(r=t,-1===Function.toString.call(r).indexOf("[native code]")))return t;var r;if("function"!=typeof t)throw new TypeError("Super expression must either be null or a function");if(void 0!==e){if(e.has(t))return e.get(t);e.set(t,n)}function n(){return wt(t,arguments,St(this).constructor)}return n.prototype=Object.create(t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),_t(n,t)})(t)}function wt(t,e,r){return(wt=Mt()?Reflect.construct:function(t,e,r){var a=[null];a.push.apply(a,e);var n=new(Function.bind.apply(t,a));return r&&_t(n,r.prototype),n}).apply(null,arguments)}function Mt(){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(t){return!1}}function _t(t,p){return(_t=Object.setPrototypeOf||function(t,p){return t.__proto__=p,t})(t,p)}function St(t){return(St=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var At,xt=function(t){var e,r;function n(e,code,r,n){var o;return(o=t.call(this,e)||this).code=code,o.name=r,o.statusCode=n,o}return r=t,(e=n).prototype=Object.create(r.prototype),e.prototype.constructor=e,e.__proto__=r,n}(bt(Error)),kt=function(){function t(t,e,r){this.endpoint=e||"https://cognito-idp."+t+".amazonaws.com/";var n=(r||{}).credentials;this.fetchOptions=n?{credentials:n}:{}}var e=t.prototype;return e.promisifyRequest=function(t,e){var r=this;return new Promise((function(n,o){r.request(t,e,(function(t,data){t?o(new xt(t.message,t.code,t.name,t.statusCode)):n(data)}))}))},e.request=function(t,e,r){var n,o={"Content-Type":"application/x-amz-json-1.1","X-Amz-Target":"AWSCognitoIdentityProvi
11derService."+t,"X-Amz-User-Agent":yt.prototype.userAgent},h=Object.assign({},this.fetchOptions,{headers:o,method:"POST",mode:"cors",cache:"no-cache",body:JSON.stringify(e)});fetch(this.endpoint,h).then((function(t){return n=t,t}),(function(t){if(t instanceof TypeError)throw new Error("Network error");throw t})).then((function(t){return t.json().catch((function(){return{}}))})).then((function(data){if(n.ok)return r(null,data);data;var code=(data.__type||data.code).split("#").pop(),t={code:code,name:code,message:data.message||data.Message||null};return r(t)})).catch((function(t){if(!(n&&n.headers&&n.headers.get("x-amzn-errortype"))){if(t instanceof Error&&"Network error"===t.message){var e={code:"NetworkError",name:t.name,message:t.message};return r(e)}return r(t)}try{var code=n.headers.get("x-amzn-errortype").split(":")[0],o={code:code,name:code,statusCode:n.status,message:n.status?n.status.toString():null};return r(o)}catch(e){return r(t)}}))},t}(),Et=function(){function t(data,t){var e=data||{},r=e.UserPoolId,n=e.ClientId,o=e.endpoint,h=e.fetchOptions,c=e.AdvancedSecurityDataCollectionFlag;if(!r||!n)throw new Error("Both UserPoolId and ClientId are required.");if(!/^[\w-]+_.+$/.test(r))throw new Error("Invalid UserPoolId format.");var f=r.split("_")[0];this.userPoolId=r,this.clientId=n,this.client=new kt(f,o,h),this.advancedSecurityDataCollectionFlag=!1!==c,this.storage=data.Storage||(new pt).getStorage(),t&&(this.wrapRefreshSessionCallback=t)}var e=t.prototype;return e.getUserPoolId=function(){return this.userPoolId},e.getClientId=function(){return this.clientId},e.signUp=function(t,e,r,n,o,h){var c=this,f={ClientId:this.clientId,Username:t,Password:e,UserAttributes:r,ValidationData:n,ClientMetadata:h};this.getUserContextData(t)&&(f.UserContextData=this.getUserContextData(t)),this.client.request("SignUp",f,(function(e,data){if(e)return o(e,null);var r={Username:t,Pool:c,Storage:c.storage},n={user:new gt(r),userConfirmed:data.UserConfirmed,userSub:data.UserSub,codeDeliveryDetails:data.CodeDeliveryDetails};return o(null,n)}))},e.getCurrentUser=function(){var t="CognitoIdentityServiceProvider."+this.clientId+".LastAuthUser",e=this.storage.getItem(t);if(e){var r={Username:e,Pool:this,Storage:this.storage};return new gt(r)}return null},e.getUserContextData=function(t){if("undefined"!=typeof AmazonCognitoAdvancedSecurityData){var e=AmazonCognitoAdvancedSecurityData;if(this.advancedSecurityDataCollectionFlag){var r=e.getData(t,this.userPoolId,this.clientId);if(r)return{EncodedData:r}}return{}}},t}(),Ct=r(65),Rt=function(){function t(data){if(!data.domain)throw new Error("The domain of cookieStorage can not be undefined.");if(this.domain=data.domain,data.path?this.path=data.path:this.path="/",Object.prototype.hasOwnProperty.call(data,"expires")?this.expires=data.expires:this.expires=365,Object.prototype.hasOwnProperty.call(data,"secure")?this.secure=data.secure:this.secure=!0,Object.prototype.hasOwnProperty.call(data,"sameSite")){if(!["strict","lax","none"].includes(data.sameSite))throw new Error('The sameSite value of cookieStorage must be "lax", "strict" or "none".');if("none"===data.sameSite&&!this.secure)throw new Error("sameSite = None requires the Secure attribute in latest browser versions.");this.sameSite=data.sameSite}else this.sameSite=null}var e=t.prototype;return e.setItem=function(t,e){var r={path:this.path,expires:this.expires,domain:this.domain,secure:this.secure};return this.sameSite&&(r.sameSite=this.sameSite),Ct.set(t,e,r),Ct.get(t)},e.getItem=function(t){return Ct.get(t)},e.removeItem=function(t){var e={path:this.path,expires:this.expires,domain:this.domain,secure:this.secure};return this.sameSite&&(e.sameSite=this.sameSite),Ct.remove(t,e)},e.clear=function(){var t,e=Ct.get();for(t=0;t<e.length;++t)Ct.remove(e[t]);return{}},t}(),It=r(44),Pt=function(t){var e=window.open(t,"_self");return e?Promise.resolve(e):Promise.reject()},Tt=function(){return(Tt=Object.assign||function(t){for(var s,i=1,e=arguments.length;i<e;i++)for(var p in s=arguments[i])Object.prototype.hasOwnProperty.call(s,p)&&(t[p]=s[p]);return t}).apply(this,arguments)},Ot=function(t,e,r,n){return new(r||(r=Promise))((function(o,h){function c(t){try{l(n.next(t))}catch(t){h(t)}}function f(t){try{l(n.throw(t))}catch(t){h(t)}}function l(t){var e;t.done?o(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(c,f)}l((n=n.apply(t,e||[])).next())}))},jt=function(t,body){var e,r,n,g,o={label:0,sent:function(){if(1&n[0])throw n[1];return n[1]},trys:[],ops:[]};return g={next:h(0),throw:h(1),return:h(2)},"function"==typeof Symbol&&(g[Symbol.iterator]=function(){return this}),g;function h(h){return function(c){return function(h){if(e)throw new TypeError("Generator is already executing.");for(;o;)try{if(e=1,r&&(n=2&h[0]?r.return:h[0]?r.throw||((n=r.return)&&n.call(r),0):r.next)&&!(n=n.call(r,h[1])).done)return n;switch(r=0,n&&(h=[2&h[0],n.value]),h[0]){case 0:case 1:n=h;break;case 4:return o.label++,{value:h[1],done:!1};case 5:o.label++,r=h[1],h=[0];continue;case 7:h=o.ops.pop(),o.trys.pop();continue;default:if(!(n=o.trys,(n=n.length>0&&n[n.length-1])||6!==h[0]&&2!==h[0])){o=0;continue}
11if(3===h[0]&&(!n||h[1]>n[0]&&h[1]<n[3])){o.label=h[1];break}if(6===h[0]&&o.label<n[1]){o.label=n[1],n=h;break}if(n&&o.label<n[2]){o.label=n[2],o.ops.push(h);break}n[2]&&o.ops.pop(),o.trys.pop();continue}h=body.call(t,o)}catch(t){h=[6,t],r=0}finally{e=n=0}if(5&h[0])throw h[1];return{value:h[0]?h[1]:void 0,done:!0}}([h,c])}}},Ut=function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,o,i=r.call(t),h=[];try{for(;(void 0===e||e-- >0)&&!(n=i.next()).done;)h.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return h},Bt="undefined"!=typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("amplify_default"):"@@amplify_default",Dt=function(t,data,e){l.a.dispatch("auth",{event:t,data:data,message:e},"Auth",Bt)},Ft=new f.a("OAuth"),Lt=function(){function t(t){var e=t.config,r=t.cognitoClientId,n=t.scopes,o=void 0===n?[]:n;if(this._urlOpener=e.urlOpener||Pt,this._config=e,this._cognitoClientId=r,!this.isValidScopes(o))throw Error("scopes must be a String Array");this._scopes=o}return t.prototype.isValidScopes=function(t){return Array.isArray(t)&&t.every((function(t){return"string"==typeof t}))},t.prototype.oauthSignIn=function(t,e,r,o,h,c){void 0===t&&(t="code"),void 0===h&&(h=n.Cognito);var f=this._generateState(32),l=c?f+"-"+c.split("").map((function(t){return t.charCodeAt(0).toString(16).padStart(2,"0")})).join(""):f;!function(t){window.sessionStorage.setItem("oauth_state",t)}(l);var d,m=this._generateRandom(128);d=m,window.sessionStorage.setItem("ouath_pkce_key",d);var v=this._generateChallenge(m),y=this._scopes.join(" "),w="https://"+e+"/oauth2/authorize?"+Object.entries(Tt(Tt({redirect_uri:r,response_type:t,client_id:o,identity_provider:h,scope:y,state:l},"code"===t?{code_challenge:v}:{}),"code"===t?{code_challenge_method:"S256"}:{})).map((function(t){var e=Ut(t,2),r=e[0],n=e[1];return encodeURIComponent(r)+"="+encodeURIComponent(n)})).join("&");Ft.debug("Redirecting to "+w),this._urlOpener(w,r)},t.prototype._handleCodeFlow=function(t){return Ot(this,void 0,void 0,(function(){var code,e,r,n,o,h,body,f,l,d,m,v;return jt(this,(function(y){switch(y.label){case 0:return(code=(Object(It.parse)(t).query||"").split("&").map((function(t){return t.split("=")})).reduce((function(t,e){var r,n=Ut(e,2),o=n[0],h=n[1];return Tt(Tt({},t),((r={})[o]=h,r))}),{code:void 0}).code)&&Object(It.parse)(t).pathname===Object(It.parse)(this._config.redirectSignIn).pathname?(e="https://"+this._config.domain+"/oauth2/token",Dt("codeFlow",{},"Retrieving tokens from "+e),r=c(this._config)?this._cognitoClientId:this._config.clientID,n=c(this._config)?this._config.redirectSignIn:this._config.redirectUri,w=window.sessionStorage.getItem("ouath_pkce_key"),window.sessionStorage.removeItem("ouath_pkce_key"),h=Tt({grant_type:"authorization_code",code:code,client_id:r,redirect_uri:n},(o=w)?{code_verifier:o}:{}),Ft.debug("Calling token endpoint: "+e+" with",h),body=Object.entries(h).map((function(t){var e=Ut(t,2),r=e[0],n=e[1];return encodeURIComponent(r)+"="+encodeURIComponent(n)})).join("&"),[4,fetch(e,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:body})]):[2];case 1:return[4,y.sent().json()];case 2:if(f=y.sent(),l=f.access_token,d=f.refresh_token,m=f.id_token,v=f.error)throw new Error(v);return[2,{accessToken:l,refreshToken:d,idToken:m}]}var w}))}))},t.prototype._handleImplicitFlow=function(t){return Ot(this,void 0,void 0,(function(){var e,r,n;return jt(this,(function(o){return e=(Object(It.parse)(t).hash||"#").substr(1).split("&").map((function(t){return t.split("=")})).reduce((function(t,e){var r,n=Ut(e,2),o=n[0],h=n[1];return Tt(Tt({},t),((r={})[o]=h,r))}),{id_token:void 0,access_token:void 0}),r=e.id_token,n=e.access_token,Dt("implicitFlow",{},"Got tokens from "+t),Ft.debug("Retrieving implicit tokens from "+t+" with"),[2,{accessToken:n,idToken:r,refreshToken:null}]}))}))},t.prototype.handleAuthResponse=function(t){return Ot(this,void 0,void 0,(function(){var e,r,n,o,h,c,f;return jt(this,(function(l){switch(l.label){case 0:if(l.trys.push([0,5,,6]),e=t?Tt(Tt({},(Object(It.parse)(t).hash||"#").substr(1).split("&").map((function(t){return t.split("=")})).reduce((function(t,e){var r=Ut(e,2),n=r[0],o=r[1];return t[n]=o,t}),{})),(Object(It.parse)(t).query||"").split("&").map((function(t){return t.split("=")})).reduce((function(t,e){var r=Ut(e,2),n=r[0],o=r[1];return t[n]=o,t}),{})):{},r=e.error,n=e.error_description,r)throw new Error(n);
11return o=this._validateState(e),Ft.debug("Starting "+this._config.responseType+" flow with "+t),"code"!==this._config.responseType?[3,2]:(h=[{}],[4,this._handleCodeFlow(t)]);case 1:return[2,Tt.apply(void 0,[Tt.apply(void 0,h.concat([l.sent()])),{state:o}])];case 2:return c=[{}],[4,this._handleImplicitFlow(t)];case 3:return[2,Tt.apply(void 0,[Tt.apply(void 0,c.concat([l.sent()])),{state:o}])];case 4:return[3,6];case 5:throw f=l.sent(),Ft.error("Error handling auth response.",f),f;case 6:return[2]}}))}))},t.prototype._validateState=function(t){if(t){var e,r=(e=window.sessionStorage.getItem("oauth_state"),window.sessionStorage.removeItem("oauth_state"),e),n=t.state;if(r&&r!==n)throw new Error("Invalid state in OAuth flow");return n}},t.prototype.signOut=function(){return Ot(this,void 0,void 0,(function(){var t,e,r;return jt(this,(function(n){return t="https://"+this._config.domain+"/logout?",e=c(this._config)?this._cognitoClientId:this._config.oauth.clientID,r=c(this._config)?this._config.redirectSignOut:this._config.returnTo,t+=Object.entries({client_id:e,logout_uri:encodeURIComponent(r)}).map((function(t){var e=Ut(t,2);return e[0]+"="+e[1]})).join("&"),Dt("oAuthSignOut",{oAuth:"signOut"},"Signing out from "+t),Ft.debug("Signing out from "+t),[2,this._urlOpener(t)]}))}))},t.prototype._generateState=function(t){for(var e="",i=t,r="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";i>0;--i)e+=r[Math.round(Math.random()*(r.length-1))];return e},t.prototype._generateChallenge=function(code){return this._base64URL(T()(code))},t.prototype._base64URL=function(t){return t.toString(ot.a).replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_")},t.prototype._generateRandom=function(t){var e=new Uint8Array(t);if("undefined"!=typeof window&&window.crypto)window.crypto.getRandomValues(e);else for(var i=0;i<t;i+=1)e[i]=Math.random()*"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-._~".length|0;return this._bufferToString(e)},t.prototype._bufferToString=function(t){for(var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",r=[],i=0;i<t.byteLength;i+=1){var n=t[i]%e.length;r.push(e[n])}return r.join("")},t}();!function(t){t.DEFAULT_MSG="Authentication Error",t.EMPTY_USERNAME="Username cannot be empty",t.INVALID_USERNAME="The username should either be a string or one of the sign in types",t.EMPTY_PASSWORD="Password cannot be empty",t.EMPTY_CODE="Confirmation code cannot be empty",t.SIGN_UP_ERROR="Error creating account",t.NO_MFA="No valid MFA method provided",t.INVALID_MFA="Invalid MFA type",t.EMPTY_CHALLENGE="Challenge response cannot be empty",t.NO_USER_SESSION="Failed to get the session because the user is empty"}(At||(At={}));var Nt,qt=(Nt=function(t,b){return(Nt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,b){t.__proto__=b}||function(t,b){for(var p in b)b.hasOwnProperty(p)&&(t[p]=b[p])})(t,b)},function(t,b){function e(){this.constructor=t}Nt(t,b),t.prototype=null===b?Object.create(b):(e.prototype=b.prototype,new e)}),Ht=new f.a("AuthError"),zt=function(t){function e(r){var n=this,o=Kt[r],h=o.message,c=o.log;return(n=t.call(this,h)||this).constructor=e,Object.setPrototypeOf(n,e.prototype),n.name="AuthError",n.log=c||h,Ht.error(n.log),n}return qt(e,t),e}(Error),Vt=function(t){function e(r){var n=t.call(this,r)||this;return n.constructor=e,Object.setPrototypeOf(n,e.prototype),n.name="NoUserPoolError",n}return qt(e,t),e}(zt),Kt={noConfig:{message:At.DEFAULT_MSG,log:"\n Error: Amplify has not been configured correctly.\n This error is typically caused by one of the following scenarios:\n\n 1. Make sure you're passing the awsconfig object to Amplify.configure() in your app's entry point\n See https://aws-amplify.github.io/docs/js/authentication#configure-your-app for more information\n \n 2. There might be multiple conflicting versions of aws-amplify or amplify packages in your node_modules.\n Try deleting your node_modules folder and reinstalling the dependencies with `yarn install`\n "},missingAuthConfig:{message:At.DEFAULT_MSG,log:"\n Error: Amplify has not been configured correctly. \n The configuration object is missing required auth properties. \n Did you run `amplify push` after adding auth via `amplify add auth`?\n See https://aws-amplify.github.io/docs/js/authentication#amplify-project-setup for more information\n "},emptyUsername:{message:At.EMPTY_USERNAME}
11,invalidUsername:{message:At.INVALID_USERNAME},emptyPassword:{message:At.EMPTY_PASSWORD},emptyCode:{message:At.EMPTY_CODE},signUpError:{message:At.SIGN_UP_ERROR,log:"The first parameter should either be non-null string or object"},noMFA:{message:At.NO_MFA},invalidMFA:{message:At.INVALID_MFA},emptyChallengeResponse:{message:At.EMPTY_CHALLENGE},noUserSession:{message:At.NO_USER_SESSION},default:{message:At.DEFAULT_MSG}},Zt=function(){return(Zt=Object.assign||function(t){for(var s,i=1,e=arguments.length;i<e;i++)for(var p in s=arguments[i])Object.prototype.hasOwnProperty.call(s,p)&&(t[p]=s[p]);return t}).apply(this,arguments)},Wt=function(t,e,r,n){return new(r||(r=Promise))((function(o,h){function c(t){try{l(n.next(t))}catch(t){h(t)}}function f(t){try{l(n.throw(t))}catch(t){h(t)}}function l(t){var e;t.done?o(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(c,f)}l((n=n.apply(t,e||[])).next())}))},Gt=function(t,body){var e,r,n,g,o={label:0,sent:function(){if(1&n[0])throw n[1];return n[1]},trys:[],ops:[]};return g={next:h(0),throw:h(1),return:h(2)},"function"==typeof Symbol&&(g[Symbol.iterator]=function(){return this}),g;function h(h){return function(c){return function(h){if(e)throw new TypeError("Generator is already executing.");for(;o;)try{if(e=1,r&&(n=2&h[0]?r.return:h[0]?r.throw||((n=r.return)&&n.call(r),0):r.next)&&!(n=n.call(r,h[1])).done)return n;switch(r=0,n&&(h=[2&h[0],n.value]),h[0]){case 0:case 1:n=h;break;case 4:return o.label++,{value:h[1],done:!1};case 5:o.label++,r=h[1],h=[0];continue;case 7:h=o.ops.pop(),o.trys.pop();continue;default:if(!(n=o.trys,(n=n.length>0&&n[n.length-1])||6!==h[0]&&2!==h[0])){o=0;continue}if(3===h[0]&&(!n||h[1]>n[0]&&h[1]<n[3])){o.label=h[1];break}if(6===h[0]&&o.label<n[1]){o.label=n[1],n=h;break}if(n&&o.label<n[2]){o.label=n[2],o.ops.push(h);break}n[2]&&o.ops.pop(),o.trys.pop();continue}h=body.call(t,o)}catch(t){h=[6,t],r=0}finally{e=n=0}if(5&h[0])throw h[1];return{value:h[0]?h[1]:void 0,done:!0}}([h,c])}}},Jt=function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,o,i=r.call(t),h=[];try{for(;(void 0===e||e-- >0)&&!(n=i.next()).done;)h.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return h},Yt=new f.a("AuthClass"),Qt="undefined"!=typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("amplify_default"):"@@amplify_default",Xt=function(t,data,e){l.a.dispatch("auth",{event:t,data:data,message:e},"Auth",Qt)},$t=new(function(){function t(t){var e=this;this.userPool=null,this.user=null,this.oAuthFlowInProgress=!1,this.Credentials=d.a,this.wrapRefreshSessionCallback=function(t){return function(e,data){return data?Xt("tokenRefresh",void 0,"New token retrieved"):Xt("tokenRefresh_failure",e,"Failed to retrieve new token"),t(e,data)}},this.configure(t),this.currentCredentials=this.currentCredentials.bind(this),this.currentUserCredentials=this.currentUserCredentials.bind(this),l.a.listen("auth",(function(t){switch(t.payload.event){case"signIn":e._storage.setItem("amplify-signin-with-hostedUI","false");break;case"signOut":e._storage.removeItem("amplify-signin-with-hostedUI");break;case"cognitoHostedUI":e._storage.setItem("amplify-signin-with-hostedUI","true")}}))}return t.prototype.getModuleName=function(){return"Auth"},t.prototype.configure=function(t){var e=this;if(!t)return this._config||{};Yt.debug("configure Auth");var r=Object.assign({},this._config,m.a.parseMobilehubConfig(t).Auth,t);this._config=r;var n=this._config,o=n.userPoolId,h=n.userPoolWebClientId,f=n.cookieStorage,l=n.oauth,d=n.region,v=n.identityPoolId,y=n.mandatorySignIn,w=n.refreshHandlers,M=n.identityPoolRegion,S=n.clientMetadata,k=n.endpoint;if(this._config.storage){if(!this._isValidAuthStorage(this._config.storage))throw Yt.error("The storage in the Auth config is not valid!"),new Error("Empty storage object");this._storage=this._config.storage}else this._storage=f?new Rt(f):t.ssr?new A:(new x.a).getStorage();if(this._storageSync=Promise.resolve(),"function"==typeof this._storage.sync&&(this._storageSync=this._storage.sync()),o){var E={UserPoolId:o,ClientId:h,endpoint:k};E.Storage=this._storage,this.userPool=new Et(E,this.wrapRefreshSessionCallback)}this.Credentials.configure({mandatorySignIn:y,region:M||d,userPoolId:o,identityPoolId:v,refreshHandlers:w,storage:this._storage});
11var C=l?c(this._config.oauth)?l:l.awsCognito:void 0;if(C){var R=Object.assign({cognitoClientId:h,UserPoolId:o,domain:C.domain,scopes:C.scope,redirectSignIn:C.redirectSignIn,redirectSignOut:C.redirectSignOut,responseType:C.responseType,Storage:this._storage,urlOpener:C.urlOpener,clientMetadata:S},C.options);this._oAuthHandler=new Lt({scopes:R.scopes,config:R,cognitoClientId:R.cognitoClientId});var I={};!function(t){if(_.a.browserOrNode().isBrowser&&window.location)t({url:window.location.href});else if(!_.a.browserOrNode().isNode)throw new Error("Not supported")}((function(t){var r=t.url;I[r]||(I[r]=!0,e._handleAuthResponse(r))}))}return Xt("configured",null,"The Auth category has been configured successfully"),this._config},t.prototype.signUp=function(t){for(var e=this,r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];if(!this.userPool)return this.rejectNoUserPool();var h,c=null,f=null,l=[],d=null;if(t&&"string"==typeof t){c=t,f=r?r[0]:null;var m=r?r[1]:null,v=r?r[2]:null;m&&l.push({Name:"email",Value:m}),v&&l.push({Name:"phone_number",Value:v})}else{if(!t||"object"!=typeof t)return this.rejectAuthError(o.SignUpError);c=t.username,f=t.password,t&&t.clientMetadata?h=t.clientMetadata:this._config.clientMetadata&&(h=this._config.clientMetadata);var y=t.attributes;y&&Object.keys(y).map((function(t){var e={Name:t,Value:y[t]};l.push(e)})),d=t.validationData||null}return c?f?(Yt.debug("signUp attrs:",l),Yt.debug("signUp validation data:",d),new Promise((function(t,r){e.userPool.signUp(c,f,l,d,(function(e,data){e?(Xt("signUp_failure",e,c+" failed to signup"),r(e)):(Xt("signUp",data,c+" has signed up successfully"),t(data))}),h)}))):this.rejectAuthError(o.EmptyPassword):this.rejectAuthError(o.EmptyUsername)}
11,t.prototype.confirmSignUp=function(t,code,e){if(!this.userPool)return this.rejectNoUserPool();if(!t)return this.rejectAuthError(o.EmptyUsername);if(!code)return this.rejectAuthError(o.EmptyCode);var r,n=this.createCognitoUser(t),h=!e||"boolean"!=typeof e.forceAliasCreation||e.forceAliasCreation;return e&&e.clientMetadata?r=e.clientMetadata:this._config.clientMetadata&&(r=this._config.clientMetadata),new Promise((function(t,e){n.confirmRegistration(code,h,(function(r,data){r?e(r):t(data)}),r)}))},t.prototype.resendSignUp=function(t,e){if(void 0===e&&(e=this._config.clientMetadata),!this.userPool)return this.rejectNoUserPool();if(!t)return this.rejectAuthError(o.EmptyUsername);var r=this.createCognitoUser(t);return new Promise((function(t,n){r.resendConfirmationCode((function(e,data){e?n(e):t(data)}),e)}))},t.prototype.signIn=function(t,e,r){if(void 0===r&&(r=this._config.clientMetadata),!this.userPool)return this.rejectNoUserPool();var n=null,h=null,c={};if("string"==typeof t)n=t,h=e;else{if(!t.username)return this.rejectAuthError(o.InvalidUsername);void 0!==e&&Yt.warn("The password should be defined under the first parameter object!"),n=t.username,h=t.password,c=t.validationData}if(!n)return this.rejectAuthError(o.EmptyUsername);var f=new E({Username:n,Password:h,ValidationData:c,ClientMetadata:r});return h?this.signInWithPassword(f):this.signInWithoutPassword(f)},t.prototype.authCallbacks=function(t,e,r){var n=this,o=this;return{onSuccess:function(h){return Wt(n,void 0,void 0,(function(){var n,c,f,l;return Gt(this,(function(d){switch(d.label){case 0:Yt.debug(h),delete t.challengeName,delete t.challengeParam,d.label=1;case 1:return d.trys.push([1,4,5,9]),[4,this.Credentials.clear()];case 2:return d.sent(),[4,this.Credentials.set(h,"session")];case 3:return n=d.sent(),Yt.debug("succeed to get cognito credentials",n),[3,9];case 4:return c=d.sent(),Yt.debug("cannot get cognito credentials",c),[3,9];case 5:return d.trys.push([5,7,,8]),[4,this.currentUserPoolUser()];case 6:return f=d.sent(),o.user=f,Xt("signIn",f,"A user "+t.getUsername()+" has been signed in"),e(f),[3,8];case 7:return l=d.sent(),Yt.error("Failed to get the signed in user",l),r(l),[3,8];case 8:return[7];case 9:return[2]}}
11))}))},onFailure:function(e){Yt.debug("signIn failure",e),Xt("signIn_failure",e,t.getUsername()+" failed to signin"),r(e)},customChallenge:function(r){Yt.debug("signIn custom challenge answer required"),t.challengeName="CUSTOM_CHALLENGE",t.challengeParam=r,e(t)},mfaRequired:function(r,n){Yt.debug("signIn MFA required"),t.challengeName=r,t.challengeParam=n,e(t)},mfaSetup:function(r,n){Yt.debug("signIn mfa setup",r),t.challengeName=r,t.challengeParam=n,e(t)},newPasswordRequired:function(r,n){Yt.debug("signIn new password"),t.challengeName="NEW_PASSWORD_REQUIRED",t.challengeParam={userAttributes:r,requiredAttributes:n},e(t)},totpRequired:function(r,n){Yt.debug("signIn totpRequired"),t.challengeName=r,t.challengeParam=n,e(t)},selectMFAType:function(r,n){Yt.debug("signIn selectMFAType",r),t.challengeName=r,t.challengeParam=n,e(t)}}},t.prototype.signInWithPassword=function(t){var e=this;if(this.pendingSignIn)throw new Error("Pending sign-in attempt already in progress");var r=this.createCognitoUser(t.getUsername());return this.pendingSignIn=new Promise((function(n,o){r.authenticateUser(t,e.authCallbacks(r,(function(t){e.pendingSignIn=null,n(t)}),(function(t){e.pendingSignIn=null,o(t)})))})),this.pendingSignIn},t.prototype.signInWithoutPassword=function(t){var e=this,r=this.createCognitoUser(t.getUsername());return r.setAuthenticationFlowType("CUSTOM_AUTH"),new Promise((function(n,o){r.initiateAuth(t,e.authCallbacks(r,n,o))}))},t.prototype.getMFAOptions=function(t){return new Promise((function(e,r){t.getMFAOptions((function(t,n){if(t)return Yt.debug("get MFA Options failed",t),void r(t);Yt.debug("get MFA options success",n),e(n)}))}))},t.prototype.getPreferredMFA=function(t,e){var r=this;return new Promise((function(n,o){var h=!!e&&e.bypassCache;t.getUserData((function(t,data){if(t)return Yt.debug("getting preferred mfa failed",t),void o(t);var e=r._getMfaTypeFromUserData(data);return e?void n(e):void o("invalid MFA Type")}),{bypassCache:h})}))},t.prototype._getMfaTypeFromUserData=function(data){var t=null,e=data.PreferredMfaSetting;if(e)t=e;else{var r=data.UserMFASettingList;if(r)0===r.length?t="NOMFA":Yt.debug("invalid case for getPreferredMFA",data);else t=data.MFAOptions?"SMS_MFA":"NOMFA"}return t},t.prototype._getUserData=function(t,e){return new Promise((function(r,n){t.getUserData((function(t,data){return t?(Yt.debug("getting user data failed",t),void n(t)):void r(data)}),e)}))},t.prototype.setPreferredMFA=function(t,e){return Wt(this,void 0,void 0,(function(){var r,n,h,c,f;return Gt(this,(function(l){switch(l.label){case 0:return[4,this._getUserData(t,{bypassCache:!0})];case 1:switch(r=l.sent(),n=null,h=null,e){case"TOTP":return[3,2];case"SMS":return[3,3];case"NOMFA":return[3,4]}return[3,6];case 2:return h={PreferredMfa:!0,Enabled:!0},[3,7];case 3:return n={PreferredMfa:!0,Enabled:!0},[3,7];case 4:return c=r.UserMFASettingList,[4,this._getMfaTypeFromUserData(r)];case 5:if("NOMFA"===(f=l.sent()))return[2,Promise.resolve("No change for mfa type")];if("SMS_MFA"===f)n={PreferredMfa:!1,Enabled:!1};else{if("SOFTWARE_TOKEN_MFA"!==f)return[2,this.rejectAuthError(o.InvalidMFA)];h={PreferredMfa:!1,Enabled:!1}}return c&&0!==c.length&&c.forEach((function(t){"SMS_MFA"===t?n={PreferredMfa:!1,Enabled:!1}:"SOFTWARE_TOKEN_MFA"===t&&(h={PreferredMfa:!1,Enabled:!1})})),[3,7];case 6:return Yt.debug("no validmfa method provided"),[2,this.rejectAuthError(o.NoMFA)];case 7:return this,[2,new Promise((function(e,r){t.setUserMfaPreference(n,h,(function(n,o){if(n)return Yt.debug("Set user mfa preference error",n),r(n);Yt.debug("Set user mfa success",o),Yt.debug("Caching the latest user data into local"),t.getUserData((function(t,data){return t?(Yt.debug("getting user data failed",t),r(t)):e(o)}),{bypassCache:!0})}))}))]}}))}))},t.prototype.disableSMS=function(t){return new Promise((function(e,r){t.disableMFA((function(t,data){if(t)return Yt.debug("disable mfa failed",t),void r(t);Yt.debug("disable mfa succeed",data),e(data)}))}))},t.prototype.enableSMS=function(t){return new Promise((function(e,r){t.enableMFA((function(t,data){if(t)return Yt.debug("enable mfa failed",t),void r(t);Yt.debug("enable mfa succeed",data),e(data)}))}))},t.prototype.setupTOTP=function(t){return new Promise((function(e,r){t.associateSoftwareToken({onFailure:function(t){Yt.debug("associateSoftwareToken failed",t),r(t)},associateSecretCode:function(t){Yt.debug("associateSoftwareToken sucess",t),e(t)}})}))},t.prototype.verifyTotpToken=function(t,e){return Yt.debug("verfication totp token",t,e),new Promise((function(r,n){t.verifySoftwareToken(e,"My TOTP device",{onFailure:function(t){Yt.debug("verifyTotpToken failed",t),n(t)},onSuccess:function(data){Xt("signIn",t,"A user "+t.getUsername()+" has been signed in"),Yt.debug("verifyTotpToken success",data),r(data)}})}))},t.prototype.confirmSignIn=function(t,code,e,r){var n=this;if(void 0===r&&(r=this._config.clientMetadata),!code)return this.rejectAuthError(o.EmptyCode);var h=this;return new Promise((function(o,c){t.sendMFACode(code,{onSuccess:function(e){return Wt(n,void 0,void 0,(function(){var r,n;return Gt(this,(function(c){switch(c.label){case 0:Yt.debug(e),c.label=1;case 1:return c.trys.push([1,4,5,6]),[4,this.Credentials.clear()];case 2:return c.sent(),[4,this.Credentials.set(e,"session")];case 3:return r=c.sent(),Yt.debug("succeed to get cognito credentials",r),[3,6];case 4:return n=c.sent(),Yt.debug("cannot get cognito credentials",n),[3,6];
11case 5:return h.user=t,Xt("signIn",t,"A user "+t.getUsername()+" has been signed in"),o(t),[7];case 6:return[2]}}))}))},onFailure:function(t){Yt.debug("confirm signIn failure",t),c(t)}},e,r)}))},t.prototype.completeNewPassword=function(t,e,r,n){var h=this;if(void 0===r&&(r={}),void 0===n&&(n=this._config.clientMetadata),!e)return this.rejectAuthError(o.EmptyPassword);var c=this;return new Promise((function(o,f){t.completeNewPasswordChallenge(e,r,{onSuccess:function(e){return Wt(h,void 0,void 0,(function(){var r,n;return Gt(this,(function(h){switch(h.label){case 0:Yt.debug(e),h.label=1;case 1:return h.trys.push([1,4,5,6]),[4,this.Credentials.clear()];case 2:return h.sent(),[4,this.Credentials.set(e,"session")];case 3:return r=h.sent(),Yt.debug("succeed to get cognito credentials",r),[3,6];case 4:return n=h.sent(),Yt.debug("cannot get cognito credentials",n),[3,6];case 5:return c.user=t,Xt("signIn",t,"A user "+t.getUsername()+" has been signed in"),o(t),[7];case 6:return[2]}}))}))},onFailure:function(t){Yt.debug("completeNewPassword failure",t),Xt("completeNewPassword_failure",t,h.user+" failed to complete the new password flow"),f(t)},mfaRequired:function(e,r){Yt.debug("signIn MFA required"),t.challengeName=e,t.challengeParam=r,o(t)},mfaSetup:function(e,r){Yt.debug("signIn mfa setup",e),t.challengeName=e,t.challengeParam=r,o(t)},totpRequired:function(e,r){Yt.debug("signIn mfa setup",e),t.challengeName=e,t.challengeParam=r,o(t)}},n)}))},t.prototype.sendCustomChallengeAnswer=function(t,e,r){var n=this;if(void 0===r&&(r=this._config.clientMetadata),!this.userPool)return this.rejectNoUserPool();if(!e)return this.rejectAuthError(o.EmptyChallengeResponse);return new Promise((function(o,h){t.sendCustomChallengeAnswer(e,n.authCallbacks(t,o,h),r)}))},t.prototype.updateUserAttributes=function(t,e,r){void 0===r&&(r=this._config.clientMetadata);var n=[],o=this;return new Promise((function(h,c){o.userSession(t).then((function(o){for(var f in e)if("sub"!==f&&f.indexOf("_verified")<0){var l={Name:f,Value:e[f]};n.push(l)}t.updateAttributes(n,(function(t,e){return t?c(t):h(e)}),r)}))}))},t.prototype.userAttributes=function(t){var e=this;return new Promise((function(r,n){e.userSession(t).then((function(e){t.getUserAttributes((function(t,e){t?n(t):r(e)}))}))}))},t.prototype.verifiedContact=function(t){var e=this;return this.userAttributes(t).then((function(t){var r=e.attributesToObject(t),n={},o={};return r.email&&(r.email_verified?o.email=r.email:n.email=r.email),r.phone_number&&(r.phone_number_verified?o.phone_number=r.phone_number:n.phone_number=r.phone_number),{verified:o,unverified:n}}))},t.prototype.currentUserPoolUser=function(t){var e=this;return this.userPool?new Promise((function(r,n){e._storageSync.then((function(){return Wt(e,void 0,void 0,(function(){var e,o=this;return Gt(this,(function(h){switch(h.label){case 0:return this.isOAuthInProgress()?(Yt.debug("OAuth signIn in progress, waiting for resolution..."),[4,new Promise((function(t){var e=setTimeout((function(){Yt.debug("OAuth signIn in progress timeout"),l.a.remove("auth",r),t()}),1e4);function r(n){var o=n.payload.event;"cognitoHostedUI"!==o&&"cognitoHostedUI_failure"!==o||(Yt.debug("OAuth signIn resolved: "+o),clearTimeout(e),l.a.remove("auth",r),t())}l.a.listen("auth",r)}))]):[3,2];case 1:h.sent(),h.label=2;case 2:return(e=this.userPool.getCurrentUser())?(e.getSession((function(h,c){return Wt(o,void 0,void 0,(function(){var o,f,l=this;return Gt(this,(function(d){switch(d.label){case 0:return h?(Yt.debug("Failed to get the user session",h),n(h),[2]):(o=!!t&&t.bypassCache)?[4,this.Credentials.clear()]:[3,2];case 1:d.sent(),d.label=2;case 2:return f=c.getAccessToken().decodePayload().scope,(void 0===f?"":f).split(" ").includes("aws.cognito.signin.user.admin")?(e.getUserData((function(t,data){if(t)return Yt.debug("getting user data failed",t),void("User is disabled."===t.message||"User does not exist."===t.message||"Access Token has been revoked"===t.message?n(t):r(e));for(var o=data.PreferredMfaSetting||"NOMFA",h=[],i=0;i<data.UserAttributes.length;i++){var c={Name:data.UserAttributes[i].Name,Value:data.UserAttributes[i].Value},f=new ct(c);h.push(f)}var d=l.attributesToObject(h);return Object.assign(e,{attributes:d,preferredMFA:o}),r(e)}),{bypassCache:o}),[2]):(Yt.debug("Unable to get the user data because the aws.cognito.signin.user.admin is not in the scopes of the access token"),[2,r(e)])}}))}))})),[2]):(Yt.debug("Failed to get user from user pool"),n("No current user"),[2])}}))}))})).catch((function(t){return Yt.debug("Failed to sync cache info into memory",t),n(t)}))})):this.rejectNoUserPool()},t.prototype.isOAuthInProgress=function(){return this.oAuthFlowInProgress},t.prototype.currentAuthenticatedUser=function(t){return Wt(this,void 0,void 0,(function(){var e,r,n,o,h;return Gt(this,(function(c){switch(c.label){case 0:Yt.debug("getting current authenticated user"),e=null,c.label=1;case 1:return c.trys.push([1,3,,4]),[4,this._storageSync];case 2:return c.sent(),[3,4];case 3:throw r=c.sent(),Yt.debug("Failed to sync cache info into memory",r),r;case 4:try{(n=JSON.parse(this._storage.getItem("aws-amplify-federatedInfo")))&&(e=Zt(Zt({},n.user),{token:n.token}
11))}catch(t){Yt.debug("cannot load federated user from auth storage")}return e?(this.user=e,Yt.debug("get current authenticated federated user",this.user),[2,this.user]):[3,5];case 5:Yt.debug("get current authenticated userpool user"),o=null,c.label=6;case 6:return c.trys.push([6,8,,9]),[4,this.currentUserPoolUser(t)];case 7:return o=c.sent(),[3,9];case 8:return"No userPool"===(h=c.sent())&&Yt.error("Cannot get the current user because the user pool is missing. Please make sure the Auth module is configured with a valid Cognito User Pool ID"),Yt.debug("The user is not authenticated by the error",h),[2,Promise.reject("The user is not authenticated")];case 9:return this.user=o,[2,this.user]}}))}))},t.prototype.currentSession=function(){var t=this;return Yt.debug("Getting current session"),this.userPool?new Promise((function(e,r){t.currentUserPoolUser().then((function(n){t.userSession(n).then((function(t){e(t)})).catch((function(t){Yt.debug("Failed to get the current session",t),r(t)}))})).catch((function(t){Yt.debug("Failed to get the current user",t),r(t)}))})):Promise.reject()},t.prototype.userSession=function(t){return t?new Promise((function(e,r){Yt.debug("Getting the session from this user:",t),t.getSession((function(n,o){return n?(Yt.debug("Failed to get the session from user",t),void r(n)):(Yt.debug("Succeed to get the user session",o),void e(o))}))})):(Yt.debug("the user is null"),this.rejectAuthError(o.NoUserSession))},t.prototype.currentUserCredentials=function(){return Wt(this,void 0,void 0,(function(){var t,e,r=this;return Gt(this,(function(n){switch(n.label){case 0:Yt.debug("Getting current user credentials"),n.label=1;case 1:return n.trys.push([1,3,,4]),[4,this._storageSync];case 2:return n.sent(),[3,4];case 3:throw t=n.sent(),Yt.debug("Failed to sync cache info into memory",t),t;case 4:e=null;try{e=JSON.parse(this._storage.getItem("aws-amplify-federatedInfo"))}catch(t){Yt.debug("failed to get or parse item aws-amplify-federatedInfo",t)}return e?[2,this.Credentials.refreshFederatedToken(e)]:[2,this.currentSession().then((function(t){return Yt.debug("getting session success",t),r.Credentials.set(t,"session")})).catch((function(t){return Yt.debug("getting session failed",t),r.Credentials.set(null,"guest")}))]}}))}))},t.prototype.currentCredentials=function(){return Yt.debug("getting current credentials"),this.Credentials.get()},t.prototype.verifyUserAttribute=function(t,e,r){return void 0===r&&(r=this._config.clientMetadata),new Promise((function(n,o){t.getAttributeVerificationCode(e,{onSuccess:function(){return n()},onFailure:function(t){return o(t)}},r)}))},t.prototype.verifyUserAttributeSubmit=function(t,e,code){return code?new Promise((function(r,n){t.verifyAttribute(e,code,{onSuccess:function(data){r(data)},onFailure:function(t){n(t)}})})):this.rejectAuthError(o.EmptyCode)},t.prototype.verifyCurrentUserAttribute=function(t){var e=this;return e.currentUserPoolUser().then((function(r){return e.verifyUserAttribute(r,t)}))},t.prototype.verifyCurrentUserAttributeSubmit=function(t,code){var e=this;return e.currentUserPoolUser().then((function(r){return e.verifyUserAttributeSubmit(r,t,code)}))},t.prototype.cognitoIdentitySignOut=function(t,e){return Wt(this,void 0,void 0,(function(){var r,n,o=this;return Gt(this,(function(h){switch(h.label){case 0:return h.trys.push([0,2,,3]),[4,this._storageSync];case 1:return h.sent(),[3,3];case 2:throw r=h.sent(),Yt.debug("Failed to sync cache info into memory",r),r;case 3:return n=this._oAuthHandler&&"true"===this._storage.getItem("amplify-signin-with-hostedUI"),[2,new Promise((function(r,h){if(t&&t.global)Yt.debug("user global sign out",e),e.getSession((function(t,c){if(t)return Yt.debug("failed to get the user session",t),h(t);e.globalSignOut({onSuccess:function(data){if(Yt.debug("global sign out success"),!n)return r();o.oAuthSignOutRedirect(r,h)},onFailure:function(t){return Yt.debug("global sign out failed",t),h(t)}})}));else{if(Yt.debug("user sign out",e),e.signOut(),!n)return r();o.oAuthSignOutRedirect(r,h)}}))]}}))}))},t.prototype.oAuthSignOutRedirect=function(t,e){_.a.browserOrNode().isBrowser?this.oAuthSignOutRedirectOrReject(e):this.oAuthSignOutAndResolve(t)},t.prototype.oAuthSignOutAndResolve=function(t){this._oAuthHandler.signOut(),t()},t.prototype.oAuthSignOutRedirectOrReject=function(t){this._oAuthHandler.signOut(),setTimeout((function(){return t("Signout timeout fail")}),3e3)},t.prototype.signOut=function(t){return Wt(this,void 0,void 0,(function(){var e;return Gt(this,(function(r){switch(r.label){case 0:return r.trys.push([0,2,,3]),[4,this.cleanCachedItems()];case 1:return r.sent(),[3,3];case 2:return r.sent(),Yt.debug("failed to clear cached items"),[3,3];case 3:return this.userPool?(e=this.userPool.getCurrentUser())?[4,this.cognitoIdentitySignOut(t,e)]:[3,5]:[3,7];case 4:return r.sent(),[3,6];case 5:Yt.debug("no current Cognito user"),r.label=6;case 6:return[3,8];case 7:Yt.debug("no Congito User pool"),r.label=8;case 8:return Xt("signOut",this.user,"A user has been signed out"),this.user=null,[2]}}))}))},t.prototype.cleanCachedItems=function(){return Wt(this,void 0,void 0,(function(){return Gt(this,(function(t){switch(t.label){case 0:return[4,this.Credentials.clear()];case 1:return t.sent(),[2]}}))}))},t.prototype.changePassword=function(t,e,r,n){var o=this;return void 0===n&&(n=this._config.clientMetadata),new Promise((function(h,c){o.userSession(t).then((function(o){t.changePassword(e,r,(function(t,data){return t?(Yt.debug("change password failure",t),c(t)):h(data)}),n)}))}))},t.prototype.forgotPassword=function(t,e){if(void 0===e&&(e=this._config.clientMetadata),!this.userPool)return this.rejectNoUserPool();if(!t)return this.rejectAuthError(o.EmptyUsername);var r=this.createCognitoUser(t);return new Promise((function(n,o){r.forgotPassword({onSuccess:function(){n()},onFailure:function(e){Yt.debug("forgot password failure",e),Xt("forgotPassword_failure",e,t+" forgotPassword failed"),o(e)},inputVerificationCode:function(data){Xt("forgotPassword",r,t+" has initiated forgot password flow"),n(data)}},e)}))},t.prototype.forgotPasswordSubmit=function(t,code,e,r){if(void 0===r&&(r=this._config.clientMetadata),!this.userPool)return this.rejectNoUserPool();if(!t)return this.rejectAuthError(o.EmptyUsername);if(!code)return this.rejectAuthError(o.EmptyCode);if(!e)return this.rejectAuthError(o.EmptyPassword);var n=this.createCognitoUser(t);return new Promise((function(o,h){n.confirmPassword(code,e,{onSuccess:function(){Xt("forgotPasswordSubmit",n,t+" forgotPasswordSubmit successful"),o()},onFailure:function(e){Xt("forgotPasswordSubmit_failure",e,t+" forgotPasswordSubmit failed"),h(e)}},r)}))},t.prototype.currentUserInfo=function(){return Wt(this,void 0,void 0,(function(){var source,t,e,r,n,o,h;return Gt(this,(function(c){switch(c.label){case 0:return(source=this.Credentials.getCredSource())&&"aws"!==source&&"userPool"!==source?[3,9]:[4,this.currentUserPoolUser().catch((function(t){return Yt.debug(t)}))];case 1:if(!(h=c.sent()))return[2,null];c.label=2;case 2:return c.trys.push([2,8,,9]),[4,this.userAttributes(h)];case 3:t=c.sent(),e=this.attributesToObject(t),r=null,c.label=4;case 4:return c.trys.push([4,6,,7]),[4,this.currentCredentials()];case 5:return r=c.sent(),[3,7];case 6:return n=c.sent(),Yt.debug("Failed to retrieve credentials while getting current user info",n),[3,7];case 7:return[2,{id:r?r.identityId:void 0,username:h.getUsername(),attributes:e}];case 8:return o=c.sent(),Yt.debug("currentUserInfo error",o),[2,{}];case 9:return"federated"===source?[2,(h=this.user)||{}]:[2]}}))}))},t.prototype.federatedSignIn=function(t,e,r){return Wt(this,void 0,void 0,(function(){var o,f,l,d,m,v,y,w,M,_,S;return Gt(this,(function(A){switch(A.label){case 0:if(!this._config.identityPoolId&&!this._config.userPoolId)throw new Error("Federation requires either a User Pool or Identity Pool in config");if(void 0===t&&this._config.identityPoolId&&!this._config.userPoolId)throw new Error("Federation with Identity Pools requires tokens passed as arguments");return h(t)||(x=t)&&["customProvider"].find((function(t){return x.hasOwnProperty(t)}))||function(t){return t&&!!["customState"].find((function(e){return t.hasOwnProperty(e)}))}(t)||void 0===t?(o=t||{provider:n.Cognito},m=h(o)?o.provider:o.customProvider,h(o),f=o.customState,this._config.userPoolId&&(l=c(this._config.oauth)?this._config.userPoolWebClientId:this._config.oauth.clientID,d=c(this._config.oauth)?this._config.oauth.redirectSignIn:this._config.oauth.redirectUri,this._oAuthHandler.oauthSignIn(this._config.oauth.responseType,this._config.oauth.domain,d,l,m,f)),[3,4]):[3,1];case 1:m=t;try{(v=JSON.stringify(JSON.parse(this._storage.getItem("aws-amplify-federatedInfo")).user))&&Yt.warn("There is already a signed in user: "+v+" in your app.\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tYou should not call Auth.federatedSignIn method again as it may cause unexpected behavior.")}catch(t){}return y=e.token,w=e.identity_id,M=e.expires_at,[4,this.Credentials.set({provider:m,token:y,identity_id:w,user:r,expires_at:M},"federation")];case 2:return _=A.sent(),[4,this.currentAuthenticatedUser()];case 3:return S=A.sent(),Xt("signIn",S,"A user "+S.username+" has been signed in"),Yt.debug("federated sign in credentials",_),[2,_];case 4:return[2]}var x}))}
11))},t.prototype._handleAuthResponse=function(t){return Wt(this,void 0,void 0,(function(){var e,r,n,o,h,c,f,l,d,m,v,y,w,M;return Gt(this,(function(S){switch(S.label){case 0:if(this.oAuthFlowInProgress)return Yt.debug("Skipping URL "+t+" current flow in progress"),[2];S.label=1;case 1:if(S.trys.push([1,,8,9]),this.oAuthFlowInProgress=!0,!this._config.userPoolId)throw new Error("OAuth responses require a User Pool defined in config");if(Xt("parsingCallbackUrl",{url:t},"The callback url is being parsed"),e=t||(_.a.browserOrNode().isBrowser?window.location.href:""),r=!!(Object(It.parse)(e).query||"").split("&").map((function(t){return t.split("=")})).find((function(t){var e=Jt(t,1)[0];return"code"===e||"error"===e})),n=!!(Object(It.parse)(e).hash||"#").substr(1).split("&").map((function(t){return t.split("=")})).find((function(t){var e=Jt(t,1)[0];return"access_token"===e||"error"===e})),!r&&!n)return[3,7];this._storage.setItem("amplify-redirected-from-hosted-ui","true"),S.label=2;case 2:return S.trys.push([2,6,,7]),[4,this._oAuthHandler.handleAuthResponse(e)];case 3:return o=S.sent(),h=o.accessToken,c=o.idToken,f=o.refreshToken,l=o.state,d=new st({IdToken:new et({IdToken:c}),RefreshToken:new it({RefreshToken:f}),AccessToken:new tt({AccessToken:h})}),m=void 0,this._config.identityPoolId?[4,this.Credentials.set(d,"session")]:[3,5];case 4:m=S.sent(),Yt.debug("AWS credentials",m),S.label=5;case 5:return v=/-/.test(l),(y=this.createCognitoUser(d.getIdToken().decodePayload()["cognito:username"])).setSignInUserSession(d),window&&void 0!==window.history&&window.history.propertyIsEnumerable({},null,this._config.oauth.redirectSignIn),Xt("signIn",y,"A user "+y.getUsername()+" has been signed in"),Xt("cognitoHostedUI",y,"A user "+y.getUsername()+" has been signed in via Cognito Hosted UI"),v&&(w=l.split("-").splice(1).join("-"),Xt("customOAuthState",w.match(/.{2}/g).map((function(t){return String.fromCharCode(parseInt(t,16))})).join(""),"State for user "+y.getUsername())),[2,m];case 6:return M=S.sent(),Yt.debug("Error in cognito hosted auth response",M),Xt("signIn_failure",M,"The OAuth response flow failed"),Xt("cognitoHostedUI_failure",M,"A failure occurred when returning to the Cognito Hosted UI"),Xt("customState_failure",M,"A failure occurred when returning state"),[3,7];case 7:return[3,9];case 8:return this.oAuthFlowInProgress=!1,[7];case 9:return[2]}}
11))}))},t.prototype.essentialCredentials=function(t){return{accessKeyId:t.accessKeyId,sessionToken:t.sessionToken,secretAccessKey:t.secretAccessKey,identityId:t.identityId,authenticated:t.authenticated}},t.prototype.attributesToObject=function(t){var e={};return t&&t.map((function(t){"email_verified"===t.Name||"phone_number_verified"===t.Name?e[t.Name]="true"===t.Value||!0===t.Value:e[t.Name]=t.Value})),e},t.prototype.createCognitoUser=function(t){var e={Username:t,Pool:this.userPool};e.Storage=this._storage;var r=this._config.authenticationFlowType,n=new gt(e);return r&&n.setAuthenticationFlowType(r),n},t.prototype._isValidAuthStorage=function(t){return!!t&&"function"==typeof t.getItem&&"function"==typeof t.setItem&&"function"==typeof t.removeItem&&"function"==typeof t.clear},t.prototype.noUserPoolErrorHandler=function(t){return!t||t.userPoolId&&t.identityPoolId?o.NoConfig:o.MissingAuthConfig},t.prototype.rejectAuthError=function(t){return Promise.reject(new zt(t))},t.prototype.rejectNoUserPool=function(){var t=this.noUserPoolErrorHandler(this._config);return Promise.reject(new Vt(t))},t}())(null);k.a.register($t)}]]); 12}
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.