text: (function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var t;t="undefined"==typeof window?"undefined"==typeof global?"undefined"==typeof self?this:self:global:window,t.algosdk=e()}})(function(){var _Mathround=Math.round,_NumberisInteger=Number.isInteger,_NumberisNaN=Number.isNaN,_Stringprototype=String.prototype,_Numberprototype=Number.prototype,_Mathmin=Math.min,_Mathpow=Math.pow,_Mathmax=Math.max,_Mathlog=Math.log,_NumberisSafeInteger=Number.isSafeInteger,_Mathabs=Math.abs,_Mathfloor=Math.floor,_StringfromCharCode=String.fromCharCode,define,module,exports;return function(){function s(l,e,r){function t(d,n){if(!e[d]){if(!l[d]){var i="function"==typeof require&&require;if(!n&&i)return i(d,!0);if(o)return o(d,!0);var u=new Error("Cannot find module '"+d+"'");throw u.code="MODULE_NOT_FOUND",u}var a=e[d]={exports:{}};l[d][0].call(a.exports,function(e){var r=l[d][1][e];return t(r||e)},a,a.exports,s,l,e,r)}return e[d].exports}for(var o="function"==typeof require&&require,a=0;a<r.length;a++)t(r[a]);return t}return s}()({1:[function(e,r,o){(function(ee){!function(a,t){"object"==typeof o&&"object"==typeof r?r.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof o?o.MessagePack=t():a.MessagePack=t()}(this,function(){return function(o){function a(e){if(t[e])return t[e].exports;var r=t[e]={i:e,l:!1,exports:{}};return o[e].call(r.exports,r,r.exports,a),r.l=!0,r.exports}var t={};return a.m=o,a.c=t,a.d=function(r,t,e){a.o(r,t)||Object.defineProperty(r,t,{enumerable:!0,get:e})},a.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},a.t=function(r,o){if(1&o&&(r=a(r)),8&o)return r;if(4&o&&"object"==typeof r&&r&&r.__esModule)return r;var e=Object.create(null);if(a.r(e),Object.defineProperty(e,"default",{enumerable:!0,value:r}),2&o&&"string"!=typeof r)for(var n in r)a.d(e,n,function(t){return r[t]}.bind(null,n));return e},a.n=function(r){var t=r&&r.__esModule?function(){return r.default}:function(){return r};return a.d(t,"a",t),t},a.o=function(r,t){return Object.prototype.hasOwnProperty.call(r,t)},a.p="",a(a.s=0)}([function(te,t,e){"use strict";var $=Number.MAX_SAFE_INTEGER;function re(a){for(var t=a.length,e=0,s=0,l;s<t;)if(l=a.charCodeAt(s++),0==(4294967168&l))e++;else if(0==(4294965248&l))e+=2;else{if(55296<=l&&56319>=l&&s<t){var d=a.charCodeAt(s);56320==(64512&d)&&(++s,l=((1023&l)<<10)+(1023&d)+65536)}e+=0==(4294901760&l)?3:4}return e}function s(i,t,e){for(var r=t,l=r+e,o=[],s="",d;r<l;){if(d=i[r++],0==(128&d))o.push(d);else if(192==(224&d)){var p=63&i[r++];o.push((31&d)<<6|p)}else if(224==(240&d)){p=63&i[r++];var g=63&i[r++];o.push((31&d)<<12|p<<6|g)}else if(240==(248&d)){var y=(7&d)<<18|(p=63&i[r++])<<12|(g=63&i[r++])<<6|63&i[r++];65535<y&&(y-=65536,o.push(55296|1023&y>>>10),y=56320|1023&y),o.push(y)}else o.push(d);4096<=o.length&&(s+=_StringfromCharCode.apply(String,ne(o)),o.length=0)}return 0<o.length&&(s+=_StringfromCharCode.apply(String,ne(o))),s}function oe(o,t,e){var r=_Mathfloor(e/4294967296);o.setUint32(t,r),o.setUint32(t+4,e)}function d(a,t){var e=Number.MIN_SAFE_INTEGER,s=a.getInt32(t),r=a.getUint32(t+4),n=s<_Mathfloor(e/4294967296)||s===_Mathfloor(e/4294967296)&&0===r,i=s>_Mathfloor($/4294967296);return n||i?BigInt(s)*BigInt(4294967296)+BigInt(r):4294967296*s+r}function r(o){var t=o.sec,e=o.nsec;if(0<=t&&0<=e&&17179869183>=t){if(0===e&&4294967295>=t){var r=new Uint8Array(4);return(a=new DataView(r.buffer)).setUint32(0,t),r}return r=new Uint8Array(8),(a=new DataView(r.buffer)).setUint32(0,e<<2|3&t/4294967296),a.setUint32(4,4294967295&t),r}var a;return r=new Uint8Array(12),(a=new DataView(r.buffer)).setUint32(0,e),oe(a,4,t),r}function y(o){var t=o.getTime(),e=_Mathfloor(t/1e3),r=1e6*(t-1e3*e),a=_Mathfloor(r/1e9);return{sec:e+a,nsec:r-1e9*a}}function g(e){return e instanceof Date?r(y(e)):null}function v(o){var t=new DataView(o.buffer,o.byteOffset,o.byteLength);switch(o.byteLength){case 4:return{sec:t.getUint32(0),nsec:0};case 8:var e=t.getUint32(0);return{sec:4294967296*(3&e)+t.getUint32(4),nsec:e>>>2};case 12:return{sec:d(t,4),nsec:t.getUint32(0)};default:throw new Error("Unrecognized data size for timestamp: "+o.length);}}function U(r){var t=v(r);return new Date(1e3*t.sec+t.nsec/1e6)}function m(e){return e instanceof Uint8Array?e:ArrayBuffer.isView(e)?new Uint8Array(e.buffer,e.byteOffset,e.byteLength):e instanceof ArrayBuffer?new Uint8Array(e):Uint8Array.from(e)}function B(r,t){return void 0===t&&(t=w),new S(t.extensionCodec,t.context,t.maxDepth,t.initialBufferSize,t.sortKeys,t.forceFloat32,t.ignoreUndefined,t.forceIntegerToFloat).encode(r)}function T(e){return(0>e?"-":"")+"0x"+_Mathabs(e).toString(16).padStart(2,"0")}function L(r,t){return void 0===t&&(t=O),new F(t.extensionCodec,t.context,t.maxStrLength,t.maxBinLength,t.maxArrayLength,t.maxMapLength,t.maxExtLength).decode(r)}function V(e){if(null==e)throw new Error("Assertion Failure: value must not be null nor undefined")}function X(e){return null==e[Symbol.asyncIterator]?function(a){return G(this,arguments,function(){var t,s,l,d;return R(this,function(e){switch(e.label){case 0:t=a.getReader(),e.label=1;case 1:e.trys.push([1,,9,10]),e.label=2;case 2:return[4,K(t.read())];case 3:return s=e.sent(),l=s.done,d=s.value,l?[4,K(void 0)]:[3,5];case 4:return[2,e.sent()];case 5:return V(d),[4,K(d)];case 6:return[4,e.sent()];case 7:return e.sent(),[3,2];case 8:return[3,10];case 9:return t.releaseLock(),[7];case 10:return[2];}})})}(e):e}function q(o,t){return void 0===t&&(t=O),H(this,void 0,void 0,function(){var e;return W(this,function(r){return e=X(o),[2,new F(t.extensionCodec,t.context,t.maxStrLength,t.maxBinLength,t.maxArrayLength,t.maxMapLength,t.maxExtLength).decodeAsync(e)]})})}function Y(o,t){void 0===t&&(t=O);var a=X(o);return new F(t.extensionCodec,t.context,t.maxStrLength,t.maxBinLength,t.maxArrayLength,t.maxMapLength,t.maxExtLength).decodeArrayStream(a)}function Z(o,t){void 0===t&&(t=O);var a=X(o);return new F(t.extensionCodec,t.context,t.maxStrLength,t.maxBinLength,t.maxArrayLength,t.maxMapLength,t.maxExtLength).decodeStream(a)}e.r(t),e.d(t,"encode",function(){return B}),e.d(t,"decode",function(){return L}),e.d(t,"decodeAsync",function(){return q}),e.d(t,"decodeArrayStream",function(){return Y}),e.d(t,"decodeStream",function(){return Z}),e.d(t,"Decoder",function(){return F}),e.d(t,"Encoder",function(){return S}),e.d(t,"ExtensionCodec",function(){return f}),e.d(t,"ExtData",function(){return l}),e.d(t,"EXT_TIMESTAMP",function(){return p}),e.d(t,"encodeDateToTimeSpec",function(){return y}),e.d(t,"encodeTimeSpecToTimestamp",function(){return r}),e.d(t,"decodeTimestampToTimeSpec",function(){return v}),e.d(t,"encodeTimestampExtension",function(){return g}),e.d(t,"decodeTimestampExtension",function(){return U});var ae=function(a,t){var l="function"==typeof Symbol&&a[Symbol.iterator];if(!l)return a;var d=l.call(a),o=[],s,p;try{for(;(void 0===t||0<t--)&&!(s=d.next()).done;)o.push(s.value)}catch(e){p={error:e}}finally{try{s&&!s.done&&(l=d.return)&&l.call(d)}finally{if(p)throw p.error}}return o},ne=function(){for(var r=[],o=0;o<arguments.length;o++)r=r.concat(ae(arguments[o]));return r},se="undefined"!=typeof ee&&"undefined"!=typeof TextEncoder&&"undefined"!=typeof TextDecoder,o=se?new TextEncoder:void 0,a="undefined"==typeof ee?0:200,n=(null==o?void 0:o.encodeInto)?function(a,t,e){o.encodeInto(a,t.subarray(e))}:function(a,t,e){t.set(o.encode(a),e)},i=se?new TextDecoder:null,u="undefined"==typeof ee?0:200,l=function(r,t){this.type=r,this.data=t},p=-1,h={type:p,encode:g,decode:U},f=function(){function e(){this.builtInEncoders=[],this.builtInDecoders=[],this.encoders=[],this.decoders=[],this.register(h)}return e.prototype.register=function(o){var t=o.type,e=o.encode,r=o.decode;if(0<=t)this.encoders[t]=e,this.decoders[t]=r;else{var a=1+t;this.builtInEncoders[a]=e,this.builtInDecoders[a]=r}},e.prototype.tryToEncode=function(o,t){for(var e=0;e<this.builtInEncoders.length;e++)if(null!=(a=this.builtInEncoders[e])&&null!=(s=a(o,t)))return new l(-1-e,s);for(e=0;e<this.encoders.length;e++){var a,s;if(null!=(a=this.encoders[e])&&null!=(s=a(o,t)))return new l(e,s)}return o instanceof l?o:null},e.prototype.decode=function(o,t,e){var r=0>t?this.builtInDecoders[-1-t]:this.decoders[t];return r?r(o,t,e):new l(t,o)},e.defaultCodec=new e,e}(),x=function(o){var a="function"==typeof Symbol&&Symbol.iterator,e=a&&o[a],r=0;if(e)return e.call(o);if(o&&"number"==typeof o.length)return{next:function(){return o&&r>=o.length&&(o=void 0),{value:o&&o[r++],done:!o}}};throw new TypeError(a?"Object is not iterable.":"Symbol.iterator is not defined.")},S=function(){function e(l,d,p,u,g,y,h,m){void 0===l&&(l=f.defaultCodec),void 0===d&&(d=void 0),void 0===p&&(p=100),void 0===u&&(u=2048),void 0===g&&(g=!1),void 0===y&&(y=!1),void 0===h&&(h=!1),void 0===m&&(m=!1),this.extensionCodec=l,this.context=d,this.maxDepth=p,this.initialBufferSize=u,this.sortKeys=g,this.forceFloat32=y,this.ignoreUndefined=h,this.forceIntegerToFloat=m,this.pos=0,this.view=new DataView(new ArrayBuffer(this.initialBufferSize)),this.bytes=new Uint8Array(this.view.buffer)}return e.prototype.getUint8Array=function(){return this.bytes.subarray(0,this.pos)},e.prototype.reinitializeState=function(){this.pos=0},e.prototype.encode=function(e){return this.reinitializeState(),this.doEncode(e,1),this.getUint8Array()},e.prototype.doEncode=function(r,t){if(t>this.maxDepth)throw new Error("Too deep objects in depth "+t);null==r?this.encodeNil():"boolean"==typeof r?this.encodeBoolean(r):"number"==typeof r?this.encodeNumber(r):"string"==typeof r?this.encodeString(r):"bigint"==typeof r?this.encodebigint(r):this.encodeObject(r,t)},e.prototype.ensureBufferSizeToWrite=function(r){var t=this.pos+r;this.view.byteLength<t&&this.resizeBuffer(2*t)},e.prototype.resizeBuffer=function(o){var t=new ArrayBuffer(o),e=new Uint8Array(t),r=new DataView(t);e.set(this.bytes),this.view=r,this.bytes=e},e.prototype.encodeNil=function(){this.writeU8(192)},e.prototype.encodeBoolean=function(e){!1===e?this.writeU8(194):this.writeU8(195)},e.prototype.encodeNumber=function(e){_NumberisSafeInteger(e)&&!this.forceIntegerToFloat?0<=e?128>e?this.writeU8(e):256>e?(this.writeU8(204),this.writeU8(e)):65536>e?(this.writeU8(205),this.writeU16(e)):4294967296>e?(this.writeU8(206),this.writeU32(e)):(this.writeU8(207),this.writeU64(e)):-32<=e?this.writeU8(224|e+32):-128<=e?(this.writeU8(208),this.writeI8(e)):-32768<=e?(this.writeU8(209),this.writeI16(e)):-2147483648<=e?(this.writeU8(210),this.writeI32(e)):(this.writeU8(211),this.writeI64(e)):this.forceFloat32?(this.writeU8(202),this.writeF32(e)):(this.writeU8(203),this.writeF64(e))},e.prototype.encodebigint=function(e){e>=BigInt(0)?e<BigInt(128)?this.writeU8(+e):e<BigInt(256)?(this.writeU8(204),this.writeU8(+e)):e<BigInt(65536)?(this.writeU8(205),this.writeU16(+e)):e<BigInt(4294967296)?(this.writeU8(206),this.writeU32(+e)):(this.writeU8(207),this.writeBig64(e)):e>=BigInt(-32)?this.writeU8(224|+e+32):e>=BigInt(-128)?(this.writeU8(208),this.writeI8(+e)):e>=BigInt(-32768)?(this.writeU8(209),this.writeI16(+e)):e>=BigInt(-2147483648)?(this.writeU8(210),this.writeI32(+e)):(this.writeU8(211),this.writeBig64(e))},e.prototype.writeStringHeader=function(e){if(32>e)this.writeU8(160+e);else if(256>e)this.writeU8(217),this.writeU8(e);else if(65536>e)this.writeU8(218),this.writeU16(e);else{if(!(4294967296>e))throw new Error("Too long string: "+e+" bytes in UTF-8");this.writeU8(219),this.writeU32(e)}},e.prototype.encodeString=function(o){var t=o.length;if(se&&t>a){var e=re(o);this.ensureBufferSizeToWrite(5+e),this.writeStringHeader(e),n(o,this.bytes,this.pos),this.pos+=e}else e=re(o),this.ensureBufferSizeToWrite(5+e),this.writeStringHeader(e),function(l,t,e){for(var r=l.length,n=e,d=0,p;d<r;)if(p=l.charCodeAt(d++),0!=(4294967168&p)){if(0==(4294965248&p))t[n++]=192|31&p>>6;else{if(55296<=p&&56319>=p&&d<r){var u=l.charCodeAt(d);56320==(64512&u)&&(++d,p=((1023&p)<<10)+(1023&u)+65536)}0==(4294901760&p)?(t[n++]=224|15&p>>12,t[n++]=128|63&p>>6):(t[n++]=240|7&p>>18,t[n++]=128|63&p>>12,t[n++]=128|63&p>>6)}t[n++]=128|63&p}else t[n++]=p}(o,this.bytes,this.pos),this.pos+=e},e.prototype.encodeObject=function(o,t){var e=this.extensionCodec.tryToEncode(o,this.context);if(null!=e)this.encodeExtension(e);else if(Array.isArray(o))this.encodeArray(o,t);else if(ArrayBuffer.isView(o))this.encodeBinary(o);else{if("object"!=typeof o)throw new Error("Unrecognized object: "+Object.prototype.toString.apply(o));this.encodeMap(o,t)}},e.prototype.encodeBinary=function(o){var t=o.byteLength;if(256>t)this.writeU8(196),this.writeU8(t);else if(65536>t)this.writeU8(197),this.writeU16(t);else{if(!(4294967296>t))throw new Error("Too large binary: "+t);this.writeU8(198),this.writeU32(t)}var e=m(o);this.writeU8a(e)},e.prototype.encodeArray=function(l,t){var e=l.length,i,d;if(16>e)this.writeU8(144+e);else if(65536>e)this.writeU8(220),this.writeU16(e);else{if(!(4294967296>e))throw new Error("Too large array: "+e);this.writeU8(221),this.writeU32(e)}try{for(var p=x(l),o=p.next(),u;!o.done;o=p.next())u=o.value,this.doEncode(u,t+1)}catch(e){i={error:e}}finally{try{o&&!o.done&&(d=p.return)&&d.call(p)}finally{if(i)throw i.error}}},e.prototype.countWithoutUndefined=function(a,t){var e=0,l,d;try{for(var p=x(t),o=p.next();!o.done;o=p.next())void 0!==a[o.value]&&e++}catch(e){l={error:e}}finally{try{o&&!o.done&&(d=p.return)&&d.call(p)}finally{if(l)throw l.error}}return e},e.prototype.encodeMap=function(l,t){var e=Object.keys(l),i,d;this.sortKeys&&e.sort();var p=this.ignoreUndefined?this.countWithoutUndefined(l,e):e.length;if(16>p)this.writeU8(128+p);else if(65536>p)this.writeU8(222),this.writeU16(p);else{if(!(4294967296>p))throw new Error("Too large map object: "+p);this.writeU8(223),this.writeU32(p)}try{for(var o=x(e),s=o.next();!s.done;s=o.next()){var g=s.value,y=l[g];this.ignoreUndefined&&void 0===y||(this.encodeString(g),this.doEncode(y,t+1))}}catch(e){i={error:e}}finally{try{s&&!s.done&&(d=o.return)&&d.call(o)}finally{if(i)throw i.error}}},e.prototype.encodeExtension=function(r){var t=r.data.length;if(1===t)this.writeU8(212);else if(2===t)this.writeU8(213);else if(4===t)this.writeU8(214);else if(8===t)this.writeU8(215);else if(16===t)this.writeU8(216);else if(256>t)this.writeU8(199),this.writeU8(t);else if(65536>t)this.writeU8(200),this.writeU16(t);else{if(!(4294967296>t))throw new Error("Too large extension object: "+t);this.writeU8(201),this.writeU32(t)}this.writeI8(r.type),this.writeU8a(r.data)},e.prototype.writeU8=function(e){this.ensureBufferSizeToWrite(1),this.view.setUint8(this.pos,e),this.pos++},e.prototype.writeU8a=function(r){var t=r.length;this.ensureBufferSizeToWrite(t),this.bytes.set(r,this.pos),this.pos+=t},e.prototype.writeI8=function(e){this.ensureBufferSizeToWrite(1),this.view.setInt8(this.pos,e),this.pos++},e.prototype.writeU16=function(e){this.ensureBufferSizeToWrite(2),this.view.setUint16(this.pos,e),this.pos+=2},e.prototype.writeI16=function(e){this.ensureBufferSizeToWrite(2),this.view.setInt16(this.pos,e),this.pos+=2},e.prototype.writeU32=function(e){this.ensureBufferSizeToWrite(4),this.view.setUint32(this.pos,e),this.pos+=4},e.prototype.writeI32=function(e){this.ensureBufferSizeToWrite(4),this.view.setInt32(this.pos,e),this.pos+=4},e.prototype.writeF32=function(e){this.ensureBufferSizeToWrite(4),this.view.setFloat32(this.pos,e),this.pos+=4},e.prototype.writeF64=function(e){this.ensureBufferSizeToWrite(8),this.view.setFloat64(this.pos,e),this.pos+=8},e.prototype.writeU64=function(e){this.ensureBufferSizeToWrite(8),function(o,t,e){o.setUint32(t,e/4294967296),o.setUint32(t+4,e)}(this.view,this.pos,e),this.pos+=8},e.prototype.writeI64=function(e){this.ensureBufferSizeToWrite(8),oe(this.view,this.pos,e),this.pos+=8},e.prototype.writeBig64=function(e){this.ensureBufferSizeToWrite(8),function(o,t,e){var r=+(e/BigInt(4294967296)),a=+(e%BigInt(4294967296));0>r&&0!==a&&(r-=1),o.setUint32(t,r),o.setUint32(t+4,a)}(this.view,this.pos,e),this.pos+=8},e}(),w={},A=function(){function e(o,a){void 0===o&&(o=16),void 0===a&&(a=16),this.maxKeyLength=o,this.maxLengthPerKey=a,this.hit=0,this.miss=0,this.caches=[];for(var n=0;n<this.maxKeyLength;n++)this.caches.push([])}return e.prototype.canBeCached=function(e){return 0<e&&e<=this.maxKeyLength},e.prototype.get=function(l,t,e){var r=this.caches[e-1],n=r.length;t:for(var i=0;i<n;i++){for(var d=r[i],s=d.bytes,a=0;a<e;a++)if(s[a]!==l[t+a])continue t;return d.value}return null},e.prototype.store=function(o,t){var e=this.caches[o.length-1],r={bytes:o,value:t};e.length>=this.maxLengthPerKey?e[0|Math.random()*e.length]=r:e.push(r)},e.prototype.decode=function(a,t,e){var r=this.get(a,t,e);if(null!=r)return this.hit++,r;this.miss++;var n=s(a,t,e),i=Uint8Array.prototype.slice.call(a,t,t+e);return this.store(i,n),n},e}(),E=function(l,t,o,e){return new(o||(o=Promise))(function(r,n){function i(r){try{a(e.next(r))}catch(e){n(e)}}function s(r){try{a(e.throw(r))}catch(e){n(e)}}function a(a){var n;a.done?r(a.value):(n=a.value,n instanceof o?n:new o(function(e){e(n)})).then(i,s)}a((e=e.apply(l,t||[])).next())})},k=function(l,t){function e(e){return function(r){return function(e){if(d)throw new TypeError("Generator is already executing.");for(;a;)try{if(d=1,p&&(u=2&e[0]?p.return:e[0]?p.throw||((u=p.return)&&u.call(p),0):p.next)&&!(u=u.call(p,e[1])).done)return u;switch(p=0,u&&(e=[2&e[0],u.value]),e[0]){case 0:case 1:u=e;break;case 4:return a.label++,{value:e[1],done:!1};case 5:a.label++,p=e[1],e=[0];continue;case 7:e=a.ops.pop(),a.trys.pop();continue;default:if(u=a.trys,!((u=0<u.length&&u[u.length-1])||6!==e[0]&&2!==e[0])){a=0;continue}if(3===e[0]&&(!u||e[1]>u[0]&&e[1]<u[3])){a.label=e[1];break}if(6===e[0]&&a.label<u[1]){a.label=u[1],u=e;break}if(u&&a.label<u[2]){a.label=u[2],a.ops.push(e);break}u[2]&&a.ops.pop(),a.trys.pop();continue;}e=t.call(l,a)}catch(r){e=[6,r],p=0}finally{d=u=0}if(5&e[0])throw e[1];return{value:e[0]?e[1]:void 0,done:!0}}([e,r])}}var a={label:0,sent:function(){if(1&u[0])throw u[1];return u[1]},trys:[],ops:[]},d,p,u,g;return g={next:e(0),throw:e(1),return:e(2)},"function"==typeof Symbol&&(g[Symbol.iterator]=function(){return this}),g},I=function(o){function a(t){s[t]=o[t]&&function(r){return new Promise(function(e,a){(function(o,t,a,e){Promise.resolve(e).then(function(t){o({value:t,done:a})},t)})(e,a,(r=o[t](r)).done,r.value)})}}if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n=o[Symbol.asyncIterator],s;return n?n.call(o):(o="function"==typeof __values?__values(o):o[Symbol.iterator](),s={},a("next"),a("throw"),a("return"),s[Symbol.asyncIterator]=function(){return this},s)},D=function(e){return this instanceof D?(this.v=e,this):new D(e)},N=function(l,t,e){function r(a){u[a]&&(o[a]=function(t){return new Promise(function(e,r){1<i.push([a,t,e,r])||s(a,t)})})}function s(o,t){try{(e=u[o](t)).value instanceof D?Promise.resolve(e.value.v).then(a,d):p(i[0][2],e)}catch(e){p(i[0][3],e)}var e}function a(e){s("next",e)}function d(e){s("throw",e)}function p(r,t){r(t),i.shift(),i.length&&s(i[0][0],i[0][1])}if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var u=e.apply(l,t||[]),i=[],o;return o={},r("next"),r("throw"),r("return"),o[Symbol.asyncIterator]=function(){return this},o},C=new DataView(new ArrayBuffer(0)),P=new Uint8Array(C.buffer),z=function(){try{C.getInt8(0)}catch(e){return e.constructor}throw new Error("never reached")}(),j=new z("Insufficient data"),M=new A,F=function(){function e(l,d,p,u,g,y,h,m){void 0===l&&(l=f.defaultCodec),void 0===d&&(d=void 0),void 0===p&&(p=4294967295),void 0===u&&(u=4294967295),void 0===g&&(g=4294967295),void 0===y&&(y=4294967295),void 0===h&&(h=4294967295),void 0===m&&(m=M),this.extensionCodec=l,this.context=d,this.maxStrLength=p,this.maxBinLength=u,this.maxArrayLength=g,this.maxMapLength=y,this.maxExtLength=h,this.keyDecoder=m,this.totalPos=0,this.pos=0,this.view=C,this.bytes=P,this.headByte=-1,this.stack=[]}return e.prototype.reinitializeState=function(){this.totalPos=0,this.headByte=-1},e.prototype.setBuffer=function(e){this.bytes=m(e),this.view=function(r){if(r instanceof ArrayBuffer)return new DataView(r);var t=m(r);return new DataView(t.buffer,t.byteOffset,t.byteLength)}(this.bytes),this.pos=0},e.prototype.appendBuffer=function(o){if(-1!==this.headByte||this.hasRemaining()){var t=this.bytes.subarray(this.pos),e=m(o),r=new Uint8Array(t.length+e.length);r.set(t),r.set(e,t.length),this.setBuffer(r)}else this.setBuffer(o)},e.prototype.hasRemaining=function(e){return void 0===e&&(e=1),this.view.byteLength-this.pos>=e},e.prototype.createNoExtraBytesError=function(o){var t=this.view,e=this.pos;return new RangeError("Extra "+(t.byteLength-e)+" of "+t.byteLength+" byte(s) found at buffer["+o+"]")},e.prototype.decode=function(e){return this.reinitializeState(),this.setBuffer(e),this.doDecodeSingleSync()},e.prototype.doDecodeSingleSync=function(){var e=this.doDecodeSync();if(this.hasRemaining())throw this.createNoExtraBytesError(this.pos);return e},e.prototype.decodeAsync=function(d){var t,g,y,m;return E(this,void 0,void 0,function(){var e,r,n,i,A,x,S,w;return k(this,function(o){switch(o.label){case 0:e=!1,o.label=1;case 1:o.trys.push([1,6,7,12]),t=I(d),o.label=2;case 2:return[4,t.next()];case 3:if((g=o.sent()).done)return[3,5];if(n=g.value,e)throw this.createNoExtraBytesError(this.totalPos);this.appendBuffer(n);try{r=this.doDecodeSync(),e=!0}catch(e){if(!(e instanceof z))throw e}this.totalPos+=this.pos,o.label=4;case 4:return[3,2];case 5:return[3,12];case 6:return i=o.sent(),y={error:i},[3,12];case 7:return o.trys.push([7,,10,11]),g&&!g.done&&(m=t.return)?[4,m.call(t)]:[3,9];case 8:o.sent(),o.label=9;case 9:return[3,11];case 10:if(y)throw y.error;return[7];case 11:return[7];case 12:if(e){if(this.hasRemaining())throw this.createNoExtraBytesError(this.totalPos);return[2,r]}throw x=(A=this).headByte,S=A.pos,w=A.totalPos,new RangeError("Insufficient data in parcing "+T(x)+" at "+w+" ("+S+" in the current buffer)");}})})},e.prototype.decodeArrayStream=function(e){return this.decodeMultiAsync(e,!0)},e.prototype.decodeStream=function(e){return this.decodeMultiAsync(e,!1)},e.prototype.decodeMultiAsync=function(l,t){return N(this,arguments,function(){var e,d,p,g,y,m,A,x,S;return k(this,function(r){switch(r.label){case 0:e=t,d=-1,r.label=1;case 1:r.trys.push([1,13,14,19]),p=I(l),r.label=2;case 2:return[4,D(p.next())];case 3:if((g=r.sent()).done)return[3,12];if(y=g.value,t&&0===d)throw this.createNoExtraBytesError(this.totalPos);this.appendBuffer(y),e&&(d=this.readArraySize(),e=!1,this.complete()),r.label=4;case 4:r.trys.push([4,9,,10]),r.label=5;case 5:return[4,D(this.doDecodeSync())];case 6:return[4,r.sent()];case 7:return r.sent(),0==--d?[3,8]:[3,5];case 8:return[3,10];case 9:if(!((m=r.sent())instanceof z))throw m;return[3,10];case 10:this.totalPos+=this.pos,r.label=11;case 11:return[3,2];case 12:return[3,19];case 13:return A=r.sent(),x={error:A},[3,19];case 14:return r.trys.push([14,,17,18]),g&&!g.done&&(S=p.return)?[4,D(S.call(p))]:[3,16];case 15:r.sent(),r.label=16;case 16:return[3,18];case 17:if(x)throw x.error;return[7];case 18:return[7];case 19:return[2];}})})},e.prototype.doDecodeSync=function(){t:for(;;){var a=this.readHeadByte(),t=void 0;if(224<=a)t=a-256;else if(192>a){if(128>a)t=a;else if(144>a){if(0!=(d=a-128)){this.pushMapState(d),this.complete();continue t}t={}}else if(160>a){if(0!=(d=a-144)){this.pushArrayState(d),this.complete();continue t}t=[]}else{var l=a-160;t=this.decodeUtf8String(l,0)}}else if(192===a)t=null;else if(194===a)t=!1;else if(195===a)t=!0;else if(202===a)t=this.readF32();else if(203===a)t=this.readF64();else if(204===a)t=this.readU8();else if(205===a)t=this.readU16();else if(206===a)t=this.readU32();else if(207===a)t=this.readU64();else if(208===a)t=this.readI8();else if(209===a)t=this.readI16();else if(210===a)t=this.readI32();else if(211===a)t=this.readI64();else if(217===a)l=this.lookU8(),t=this.decodeUtf8String(l,1);else if(218===a)l=this.lookU16(),t=this.decodeUtf8String(l,2);else if(219===a)l=this.lookU32(),t=this.decodeUtf8String(l,4);else if(220===a){if(0!==(d=this.readU16())){this.pushArrayState(d),this.complete();continue t}t=[]}else if(221===a){if(0!==(d=this.readU32())){this.pushArrayState(d),this.complete();continue t}t=[]}else if(222===a){if(0!==(d=this.readU16())){this.pushMapState(d),this.complete();continue t}t={}}else if(223===a){if(0!==(d=this.readU32())){this.pushMapState(d),this.complete();continue t}t={}}else if(196===a){var d=this.lookU8();t=this.decodeBinary(d,1)}else if(197===a)d=this.lookU16(),t=this.decodeBinary(d,2);else if(198===a)d=this.lookU32(),t=this.decodeBinary(d,4);else if(212===a)t=this.decodeExtension(1,0);else if(213===a)t=this.decodeExtension(2,0);else if(214===a)t=this.decodeExtension(4,0);else if(215===a)t=this.decodeExtension(8,0);else if(216===a)t=this.decodeExtension(16,0);else if(199===a)d=this.lookU8(),t=this.decodeExtension(d,1);else if(200===a)d=this.lookU16(),t=this.decodeExtension(d,2);else{if(201!==a)throw new Error("Unrecognized type byte: "+T(a));d=this.lookU32(),t=this.decodeExtension(d,4)}this.complete();for(var p=this.stack,i;0<p.length;)if(i=p[p.length-1],0===i.type){if(i.array[i.position]=t,i.position++,i.position!==i.size)continue t;p.pop(),t=i.array}else{if(1===i.type){if(u=void 0,"string"!=(u=typeof t)&&"number"!==u)throw new Error("The type of key must be string or number but "+typeof t);i.key=t,i.type=2;continue t}if(i.map[i.key]=t,i.readCount++,i.readCount!==i.size){i.key=null,i.type=1;continue t}p.pop(),t=i.map}return t}var u},e.prototype.readHeadByte=function(){return-1===this.headByte&&(this.headByte=this.readU8()),this.headByte},e.prototype.complete=function(){this.headByte=-1},e.prototype.readArraySize=function(){var e=this.readHeadByte();switch(e){case 220:return this.readU16();case 221:return this.readU32();default:if(160>e)return e-144;throw new Error("Unrecognized array type byte: "+T(e));}},e.prototype.pushMapState=function(e){if(e>this.maxMapLength)throw new Error("Max length exceeded: map length ("+e+") > maxMapLengthLength ("+this.maxMapLength+")");this.stack.push({type:1,size:e,key:null,readCount:0,map:{}})},e.prototype.pushArrayState=function(e){if(e>this.maxArrayLength)throw new Error("Max length exceeded: array length ("+e+") > maxArrayLength ("+this.maxArrayLength+")");this.stack.push({type:0,size:e,array:Array(e),position:0})},e.prototype.decodeUtf8String=function(o,t){var e;if(o>this.maxStrLength)throw new Error("Max length exceeded: UTF-8 byte length ("+o+") > maxStrLength ("+this.maxStrLength+")");if(this.bytes.byteLength<this.pos+t+o)throw j;var a=this.pos+t,l;return l=this.stateIsMapKey()&&(null===(e=this.keyDecoder)||void 0===e?void 0:e.canBeCached(o))?this.keyDecoder.decode(this.bytes,a,o):se&&o>u?function(o,t,e){var r=o.subarray(t,t+e);return i.decode(r)}(this.bytes,a,o):s(this.bytes,a,o),this.pos+=t+o,l},e.prototype.stateIsMapKey=function(){return 0<this.stack.length&&1===this.stack[this.stack.length-1].type},e.prototype.decodeBinary=function(o,t){if(o>this.maxBinLength)throw new Error("Max length exceeded: bin length ("+o+") > maxBinLength ("+this.maxBinLength+")");if(!this.hasRemaining(o+t))throw j;var e=this.pos+t,r=this.bytes.subarray(e,e+o);return this.pos+=t+o,r},e.prototype.decodeExtension=function(o,t){if(o>this.maxExtLength)throw new Error("Max length exceeded: ext length ("+o+") > maxExtLength ("+this.maxExtLength+")");var e=this.view.getInt8(this.pos+t),r=this.decodeBinary(o,t+1);return this.extensionCodec.decode(r,e,this.context)},e.prototype.lookU8=function(){return this.view.getUint8(this.pos)},e.prototype.lookU16=function(){return this.view.getUint16(this.pos)},e.prototype.lookU32=function(){return this.view.getUint32(this.pos)},e.prototype.readU8=function(){var e=this.view.getUint8(this.pos);return this.pos++,e},e.prototype.readI8=function(){var e=this.view.getInt8(this.pos);return this.pos++,e},e.prototype.readU16=function(){var e=this.view.getUint16(this.pos);return this.pos+=2,e},e.prototype.readI16=function(){var e=this.view.getInt16(this.pos);return this.pos+=2,e},e.prototype.readU32=function(){var e=this.view.getUint32(this.pos);return this.pos+=4,e},e.prototype.readI32=function(){var e=this.view.getInt32(this.pos);return this.pos+=4,e},e.prototype.readU64=function(){var o=(a=this.view,s=this.pos,i=a.getUint32(s),l=a.getUint32(s+4),i>_Mathfloor($/4294967296)?BigInt(i)*BigInt(4294967296)+BigInt(l):4294967296*i+l),a,s,i,l;return this.pos+=8,o},e.prototype.readI64=function(){var e=d(this.view,this.pos);return this.pos+=8,e},e.prototype.readF32=function(){var e=this.view.getFloat32(this.pos);return this.pos+=4,e},e.prototype.readF64=function(){var e=this.view.getFloat64(this.pos);return this.pos+=8,e},e}(),O={},R=function(l,t){function e(e){return function(r){return function(e){if(d)throw new TypeError("Generator is already executing.");for(;a;)try{if(d=1,p&&(u=2&e[0]?p.return:e[0]?p.throw||((u=p.return)&&u.call(p),0):p.next)&&!(u=u.call(p,e[1])).done)return u;switch(p=0,u&&(e=[2&e[0],u.value]),e[0]){case 0:case 1:u=e;break;case 4:return a.label++,{value:e[1],done:!1};case 5:a.label++,p=e[1],e=[0];continue;case 7:e=a.ops.pop(),a.trys.pop();continue;default:if(u=a.trys,!((u=0<u.length&&u[u.length-1])||6!==e[0]&&2!==e[0])){a=0;continue}if(3===e[0]&&(!u||e[1]>u[0]&&e[1]<u[3])){a.label=e[1];break}if(6===e[0]&&a.label<u[1]){a.label=u[1],u=e;break}if(u&&a.label<u[2]){a.label=u[2],a.ops.push(e);break}u[2]&&a.ops.pop(),a.trys.pop();continue;}e=t.call(l,a)}catch(r){e=[6,r],p=0}finally{d=u=0}if(5&e[0])throw e[1];return{value:e[0]?e[1]:void 0,done:!0}}([e,r])}}var a={label:0,sent:function(){if(1&u[0])throw u[1];return u[1]},trys:[],ops:[]},d,p,u,g;return g={next:e(0),throw:e(1),return:e(2)},"function"==typeof Symbol&&(g[Symbol.iterator]=function(){return this}),g},K=function(e){return this instanceof K?(this.v=e,this):new K(e)},G=function(l,t,e){function r(a){u[a]&&(o[a]=function(t){return new Promise(function(e,r){1<i.push([a,t,e,r])||s(a,t)})})}function s(o,t){try{(e=u[o](t)).value instanceof K?Promise.resolve(e.value.v).then(a,d):p(i[0][2],e)}catch(e){p(i[0][3],e)}var e}function a(e){s("next",e)}function d(e){s("throw",e)}function p(r,t){r(t),i.shift(),i.length&&s(i[0][0],i[0][1])}if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var u=e.apply(l,t||[]),i=[],o;return o={},r("next"),r("throw"),r("return"),o[Symbol.asyncIterator]=function(){return this},o},H=function(l,t,o,e){return new(o||(o=Promise))(function(r,n){function i(r){try{a(e.next(r))}catch(e){n(e)}}function s(r){try{a(e.throw(r))}catch(e){n(e)}}function a(a){var n;a.done?r(a.value):(n=a.value,n instanceof o?n:new o(function(e){e(n)})).then(i,s)}a((e=e.apply(l,t||[])).next())})},W=function(l,t){function e(e){return function(r){return function(e){if(d)throw new TypeError("Generator is already executing.");for(;a;)try{if(d=1,p&&(u=2&e[0]?p.return:e[0]?p.throw||((u=p.return)&&u.call(p),0):p.next)&&!(u=u.call(p,e[1])).done)return u;switch(p=0,u&&(e=[2&e[0],u.value]),e[0]){case 0:case 1:u=e;break;case 4:return a.label++,{value:e[1],done:!1};case 5:a.label++,p=e[1],e=[0];continue;case 7:e=a.ops.pop(),a.trys.pop();continue;default:if(u=a.trys,!((u=0<u.length&&u[u.length-1])||6!==e[0]&&2!==e[0])){a=0;continue}if(3===e[0]&&(!u||e[1]>u[0]&&e[1]<u[3])){a.label=e[1];break}if(6===e[0]&&a.label<u[1]){a.label=u[1],u=e;break}if(u&&a.label<u[2]){a.label=u[2],a.ops.push(e);break}u[2]&&a.ops.pop(),a.trys.pop();continue;}e=t.call(l,a)}catch(r){e=[6,r],p=0}finally{d=u=0}if(5&e[0])throw e[1];return{value:e[0]?e[1]:void 0,done:!0}}([e,r])}}var a={label:0,sent:function(){if(1&u[0])throw u[1];return u[1]},trys:[],ops:[]},d,p,u,g;return g={next:e(0),throw:e(1),return:e(2)},"function"==typeof Symbol&&(g[Symbol.iterator]=function(){return this}),g}}])})}).call(this,e("_process"))},{_process:61}],2:[function(e,t,r){(function(r){'use strict';function o(e){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o(e)}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function n(){var t=e("./internal/util/comparisons");G=t.isDeepEqual,K=t.isDeepStrictEqual}function s(e){if(e.message instanceof Error)throw e.message;throw new I(e)}function i(e,t,o,a,n){var s=arguments.length,l;if(0===s)l="Failed";else if(1===s)o=e,e=void 0;else{if(!1===M){M=!0;var d=r.emitWarning?r.emitWarning:console.warn.bind(console);d("assert.fail() with more than one argument is deprecated. Please use assert.strictEqual() instead or only pass a message.","DeprecationWarning","DEP0094")}2===s&&(a="!=")}if(o instanceof Error)throw o;var p={actual:e,expected:t,operator:void 0===a?"fail":a,stackStartFn:n||i};void 0!==o&&(p.message=o);var u=new I(p);throw l&&(u.message=l,u.generatedMessage=!0),u}function l(e,t,r,o){if(!r){var a=!1;if(0===t)a=!0,o="No value argument passed to `assert.ok()`";else if(o instanceof Error)throw o;var n=new I({actual:r,expected:!0,message:o,operator:"==",stackStartFn:e});throw n.generatedMessage=a,n}}function d(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];l.apply(void 0,[d,t.length].concat(t))}function p(e,t,r){if(2>arguments.length)throw new B("actual","expected");G===void 0&&n(),K(e,t)&&s({actual:e,expected:t,message:r,operator:"notDeepStrictEqual",stackStartFn:p})}function u(e,t,r,o,n,i){if(!(r in e)||!K(e[r],t[r])){if(!o){var l=new H(e,n),a=new H(t,n,e),d=new I({actual:l,expected:a,operator:"deepStrictEqual",stackStartFn:i});throw d.actual=e,d.expected=t,d.operator=i.name,d}s({actual:e,expected:t,message:o,operator:i.name,stackStartFn:i})}}function g(e,t,r,a){if("function"!=typeof t){if(D(t))return t.test(e);if(2===arguments.length)throw new v("expected",["Function","RegExp"],t);if("object"!==o(e)||null===e){var s=new I({actual:e,expected:t,message:r,operator:"deepStrictEqual",stackStartFn:a});throw s.operator=a.name,s}var i=Object.keys(t);if(t instanceof Error)i.push("name","message");else if(0===i.length)throw new T("error",t,"may not be an empty object");return void 0===G&&n(),i.forEach(function(o){"string"==typeof e[o]&&D(t[o])&&t[o].test(e[o])||u(e,t,o,r,i,a)}),!0}return!!(void 0!==t.prototype&&e instanceof t)||!Error.isPrototypeOf(t)&&!0===t.call({},e)}function y(e){if("function"!=typeof e)throw new v("fn","Function",e);try{e()}catch(t){return t}return q}function h(e){return C(e)||null!==e&&"object"===o(e)&&"function"==typeof e.then&&"function"==typeof e.catch}function f(e){return Promise.resolve().then(function(){var t;if("function"==typeof e){if(t=e(),!h(t))throw new E("instance of Promise","promiseFn",t);}else if(h(e))t=e;else throw new v("promiseFn",["Function","Promise"],e);return Promise.resolve().then(function(){return t}).then(function(){return q}).catch(function(t){return t})})}function m(e,t,r,a){if("string"==typeof r){if(4===arguments.length)throw new v("error",["Object","Error","Function","RegExp"],r);if("object"===o(t)&&null!==t){if(t.message===r)throw new w("error/message","The error message \"".concat(t.message,"\" is identical to the message."));}else if(t===r)throw new w("error/message","The error \"".concat(t,"\" is identical to the message."));a=r,r=void 0}else if(null!=r&&"object"!==o(r)&&"function"!=typeof r)throw new v("error",["Object","Error","Function","RegExp"],r);if(t===q){var n="";r&&r.name&&(n+=" (".concat(r.name,")")),n+=a?": ".concat(a):".";var i="rejects"===e.name?"rejection":"exception";s({actual:void 0,expected:r,operator:e.name,message:"Missing expected ".concat(i).concat(n),stackStartFn:e})}if(r&&!g(t,r,a,e))throw t}function A(e,t,r,o){if(t!==q){if("string"==typeof r&&(o=r,r=void 0),!r||g(t,r)){var a=o?": ".concat(o):".",n="doesNotReject"===e.name?"rejection":"exception";s({actual:t,expected:r,operator:e.name,message:"Got unwanted ".concat(n).concat(a,"\n")+"Actual message: \"".concat(t&&t.message,"\""),stackStartFn:e})}throw t}}function x(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];l.apply(void 0,[x,t.length].concat(t))}var k=e("./internal/errors"),S=k.codes,w=S.ERR_AMBIGUOUS_ARGUMENT,v=S.ERR_INVALID_ARG_TYPE,T=S.ERR_INVALID_ARG_VALUE,E=S.ERR_INVALID_RETURN_VALUE,B=S.ERR_MISSING_ARGS,I=e("./internal/assert/assertion_error"),P=e("util/"),U=P.inspect,R=e("util/").types,C=R.isPromise,D=R.isRegExp,O=Object.assign?Object.assign:e("es6-object-assign").assign,L=Object.is?Object.is:e("object-is"),j=new Map,N=/[\x00-\x08\x0b\x0c\x0e-\x1f]/g,z=["\\u0000","\\u0001","\\u0002","\\u0003","\\u0004","\\u0005","\\u0006","\\u0007","\\b","","","\\u000b","\\f","","\\u000e","\\u000f","\\u0010","\\u0011","\\u0012","\\u0013","\\u0014","\\u0015","\\u0016","\\u0017","\\u0018","\\u0019","\\u001a","\\u001b","\\u001c","\\u001d","\\u001e","\\u001f"],M=!1,F=t.exports=d,q={},G,K;F.fail=i,F.AssertionError=I,F.ok=d,F.equal=function e(t,r,o){if(2>arguments.length)throw new B("actual","expected");t!=r&&s({actual:t,expected:r,message:o,operator:"==",stackStartFn:e})},F.notEqual=function e(t,r,o){if(2>arguments.length)throw new B("actual","expected");t==r&&s({actual:t,expected:r,message:o,operator:"!=",stackStartFn:e})},F.deepEqual=function e(t,r,o){if(2>arguments.length)throw new B("actual","expected");G===void 0&&n(),G(t,r)||s({actual:t,expected:r,message:o,operator:"deepEqual",stackStartFn:e})},F.notDeepEqual=function e(t,r,o){if(2>arguments.length)throw new B("actual","expected");G===void 0&&n(),G(t,r)&&s({actual:t,expected:r,message:o,operator:"notDeepEqual",stackStartFn:e})},F.deepStrictEqual=function e(t,r,o){if(2>arguments.length)throw new B("actual","expected");G===void 0&&n(),K(t,r)||s({actual:t,expected:r,message:o,operator:"deepStrictEqual",stackStartFn:e})},F.notDeepStrictEqual=p,F.strictEqual=function e(t,r,o){if(2>arguments.length)throw new B("actual","expected");L(t,r)||s({actual:t,expected:r,message:o,operator:"strictEqual",stackStartFn:e})},F.notStrictEqual=function e(t,r,o){if(2>arguments.length)throw new B("actual","expected");L(t,r)&&s({actual:t,expected:r,message:o,operator:"notStrictEqual",stackStartFn:e})};var H=function e(t,r,o){var n=this;a(this,e),r.forEach(function(e){e in t&&(o!==void 0&&"string"==typeof o[e]&&D(t[e])&&t[e].test(o[e])?n[e]=o[e]:n[e]=t[e])})};F.throws=function e(t){for(var r=arguments.length,o=Array(1<r?r-1:0),a=1;a<r;a++)o[a-1]=arguments[a];m.apply(void 0,[e,y(t)].concat(o))},F.rejects=function e(t){for(var r=arguments.length,o=Array(1<r?r-1:0),a=1;a<r;a++)o[a-1]=arguments[a];return f(t).then(function(t){return m.apply(void 0,[e,t].concat(o))})},F.doesNotThrow=function e(t){for(var r=arguments.length,o=Array(1<r?r-1:0),a=1;a<r;a++)o[a-1]=arguments[a];A.apply(void 0,[e,y(t)].concat(o))},F.doesNotReject=function e(t){for(var r=arguments.length,o=Array(1<r?r-1:0),a=1;a<r;a++)o[a-1]=arguments[a];return f(t).then(function(t){return A.apply(void 0,[e,t].concat(o))})},F.ifError=function e(t){if(null!==t&&t!==void 0){var r="ifError got unwanted exception: ";r+="object"===o(t)&&"string"==typeof t.message?0===t.message.length&&t.constructor?t.constructor.name:t.message:U(t);var a=new I({actual:t,expected:null,operator:"ifError",message:r,stackStartFn:e}),n=t.stack;if("string"==typeof n){var s=n.split("\n");s.shift();for(var l=a.stack.split("\n"),d=0,p;d<s.length;d++)if(p=l.indexOf(s[d]),-1!==p){l=l.slice(0,p);break}a.stack="".concat(l.join("\n"),"\n").concat(s.join("\n"))}throw a}},F.strict=O(x,F,{equal:F.strictEqual,deepEqual:F.deepStrictEqual,notEqual:F.notStrictEqual,notDeepEqual:F.notDeepStrictEqual}),F.strict.strict=F.strict}).call(this,e("_process"))},{"./internal/assert/assertion_error":3,"./internal/errors":4,"./internal/util/comparisons":5,_process:61,"es6-object-assign":16,"object-is":50,"util/":8}],3:[function(e,t,r){(function(r){'use strict';function o(e){for(var t=1;t<arguments.length;t++){var r=null==arguments[t]?{}:arguments[t],o=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),o.forEach(function(t){a(e,t,r[t])})}return e}function a(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){for(var r=0,o;r<t.length;r++)o=t[r],o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}function i(e,t,r){return t&&s(e.prototype,t),r&&s(e,r),e}function l(e,t){return t&&("object"===A(t)||"function"==typeof t)?t:d(e)}function d(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function p(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&f(e,t)}function u(e){var t="function"==typeof Map?new Map:void 0;return u=function(e){function r(){return y(e,arguments,m(this).constructor)}if(null===e||!h(e))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if("undefined"!=typeof t){if(t.has(e))return t.get(e);t.set(e,r)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),f(r,e)},u(e)}function g(){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 y(e,t,r){return y=g()?Reflect.construct:function(e,t,r){var o=[null];o.push.apply(o,t);var a=Function.bind.apply(e,o),n=new a;return r&&f(n,r.prototype),n},y.apply(null,arguments)}function h(e){return-1!==Function.toString.call(e).indexOf("[native code]")}function f(e,t){return f=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},f(e,t)}function m(e){return m=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},m(e)}function A(e){return A="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},A(e)}function x(e,t,r){return(void 0===r||r>e.length)&&(r=e.length),e.substring(r-t.length,r)===t}function k(e,t){if(t=_Mathfloor(t),0==e.length||0==t)return"";var r=e.length*t;for(t=_Mathfloor(_Mathlog(t)/_Mathlog(2));t;)e+=e,t--;return e+=e.substring(0,r-e.length),e}function S(e){var t=Object.keys(e),r=Object.create(Object.getPrototypeOf(e));return t.forEach(function(t){r[t]=e[t]}),Object.defineProperty(r,"message",{value:e.message}),r}function w(e){return E(e,{compact:!1,customInspect:!1,depth:1e3,maxArrayLength:1/0,showHidden:!1,breakLength:1/0,showProxy:!1,sorted:!0,getters:!0})}function v(e,t,o){var n="",s="",l=0,d="",p=!1,u=w(e),g=u.split("\n"),y=w(t).split("\n"),h=0,f="";if("strictEqual"===o&&"object"===A(e)&&"object"===A(t)&&null!==e&&null!==t&&(o="strictEqualObject"),1===g.length&&1===y.length&&g[0]!==y[0]){var m=g[0].length+y[0].length;if(10>=m){if(("object"!==A(e)||null===e)&&("object"!==A(t)||null===t)&&(0!==e||0!==t))return"".concat(D[o],"\n\n")+"".concat(g[0]," !== ").concat(y[0],"\n");}else if("strictEqualObject"!==o){var S=r.stderr&&r.stderr.isTTY?r.stderr.columns:80;if(m<S){for(;g[0][h]===y[0][h];)h++;2<h&&(f="\n  ".concat(k(" ",h),"^"),h=0)}}}for(var v=g[g.length-1],T=y[y.length-1];v===T&&(2>h++?d="\n  ".concat(v).concat(d):n=v,g.pop(),y.pop(),0!==g.length&&0!==y.length);)v=g[g.length-1],T=y[y.length-1];var E=_Mathmax(g.length,y.length);if(0===E){var B=u.split("\n");if(30<B.length)for(B[26]="".concat(P,"...").concat(C);27<B.length;)B.pop();return"".concat(D.notIdentical,"\n\n").concat(B.join("\n"),"\n")}3<h&&(d="\n".concat(P,"...").concat(C).concat(d),p=!0),""!==n&&(d="\n  ".concat(n).concat(d),n="");var I=0,O=D[o]+"\n".concat(U,"+ actual").concat(C," ").concat(R,"- expected").concat(C),L=" ".concat(P,"...").concat(C," Lines skipped");for(h=0;h<E;h++){var j=h-l;if(g.length<h+1)1<j&&2<h&&(4<j?(s+="\n".concat(P,"...").concat(C),p=!0):3<j&&(s+="\n  ".concat(y[h-2]),I++),s+="\n  ".concat(y[h-1]),I++),l=h,n+="\n".concat(R,"-").concat(C," ").concat(y[h]),I++;else if(y.length<h+1)1<j&&2<h&&(4<j?(s+="\n".concat(P,"...").concat(C),p=!0):3<j&&(s+="\n  ".concat(g[h-2]),I++),s+="\n  ".concat(g[h-1]),I++),l=h,s+="\n".concat(U,"+").concat(C," ").concat(g[h]),I++;else{var N=y[h],z=g[h],M=z!==N&&(!x(z,",")||z.slice(0,-1)!==N);M&&x(N,",")&&N.slice(0,-1)===z&&(M=!1,z+=","),M?(1<j&&2<h&&(4<j?(s+="\n".concat(P,"...").concat(C),p=!0):3<j&&(s+="\n  ".concat(g[h-2]),I++),s+="\n  ".concat(g[h-1]),I++),l=h,s+="\n".concat(U,"+").concat(C," ").concat(z),n+="\n".concat(R,"-").concat(C," ").concat(N),I+=2):(s+=n,n="",(1===j||0===h)&&(s+="\n  ".concat(z),I++))}if(20<I&&h<E-2)return"".concat(O).concat(L,"\n").concat(s,"\n").concat(P,"...").concat(C).concat(n,"\n")+"".concat(P,"...").concat(C)}return"".concat(O).concat(p?L:"","\n").concat(s).concat(n).concat(d).concat(f)}var T=e("util/"),E=T.inspect,B=e("../errors"),I=B.codes.ERR_INVALID_ARG_TYPE,P="",U="",R="",C="",D={deepStrictEqual:"Expected values to be strictly deep-equal:",strictEqual:"Expected values to be strictly equal:",strictEqualObject:"Expected \"actual\" to be reference-equal to \"expected\":",deepEqual:"Expected values to be loosely deep-equal:",equal:"Expected values to be loosely equal:",notDeepStrictEqual:"Expected \"actual\" not to be strictly deep-equal to:",notStrictEqual:"Expected \"actual\" to be strictly unequal to:",notStrictEqualObject:"Expected \"actual\" not to be reference-equal to \"expected\":",notDeepEqual:"Expected \"actual\" not to be loosely deep-equal to:",notEqual:"Expected \"actual\" to be loosely unequal to:",notIdentical:"Values identical but not reference-equal:"},O=function(e){function t(e){var o;if(n(this,t),"object"!==A(e)||null===e)throw new I("options","Object",e);var a=e.message,s=e.operator,i=e.stackStartFn,p=e.actual,u=e.expected,g=Error.stackTraceLimit;if(Error.stackTraceLimit=0,null!=a)o=l(this,m(t).call(this,a+""));else if(r.stderr&&r.stderr.isTTY&&(r.stderr&&r.stderr.getColorDepth&&1!==r.stderr.getColorDepth()?(P="\x1B[34m",U="\x1B[32m",C="\x1B[39m",R="\x1B[31m"):(P="",U="",C="",R="")),"object"===A(p)&&null!==p&&"object"===A(u)&&null!==u&&"stack"in p&&p instanceof Error&&"stack"in u&&u instanceof Error&&(p=S(p),u=S(u)),"deepStrictEqual"===s||"strictEqual"===s)o=l(this,m(t).call(this,v(p,u,s)));else if("notDeepStrictEqual"===s||"notStrictEqual"===s){var y=D[s],h=w(p).split("\n");if("notStrictEqual"===s&&"object"===A(p)&&null!==p&&(y=D.notStrictEqualObject),30<h.length)for(h[26]="".concat(P,"...").concat(C);27<h.length;)h.pop();o=1===h.length?l(this,m(t).call(this,"".concat(y," ").concat(h[0]))):l(this,m(t).call(this,"".concat(y,"\n\n").concat(h.join("\n"),"\n")))}else{var f=w(p),x="",k=D[s];"notDeepEqual"===s||"notEqual"===s?(f="".concat(D[s],"\n\n").concat(f),1024<f.length&&(f="".concat(f.slice(0,1021),"..."))):(x="".concat(w(u)),512<f.length&&(f="".concat(f.slice(0,509),"...")),512<x.length&&(x="".concat(x.slice(0,509),"...")),"deepEqual"===s||"equal"===s?f="".concat(k,"\n\n").concat(f,"\n\nshould equal\n\n"):x=" ".concat(s," ").concat(x)),o=l(this,m(t).call(this,"".concat(f).concat(x)))}return Error.stackTraceLimit=g,o.generatedMessage=!a,Object.defineProperty(d(o),"name",{value:"AssertionError [ERR_ASSERTION]",enumerable:!1,writable:!0,configurable:!0}),o.code="ERR_ASSERTION",o.actual=p,o.expected=u,o.operator=s,Error.captureStackTrace&&Error.captureStackTrace(d(o),i),o.stack,o.name="AssertionError",l(o)}return p(t,e),i(t,[{key:"toString",value:function(){return"".concat(this.name," [").concat(this.code,"]: ").concat(this.message)}},{key:E.custom,value:function(e,t){return E(this,o({},t,{customInspect:!1,depth:0}))}}]),t}(u(Error));t.exports=O}).call(this,e("_process"))},{"../errors":4,_process:61,"util/":8}],4:[function(e,t,r){'use strict';function o(e){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o(e)}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function n(e,t){return t&&("object"===o(t)||"function"==typeof t)?t:s(e)}function s(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function i(e){return i=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},i(e)}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&d(e,t)}function d(e,t){return d=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},d(e,t)}function p(e,t,r){function o(e,r,o){return"string"==typeof t?t:t(e,r,o)}r||(r=Error);var s=function(t){function r(t,s,l){var d;return a(this,r),d=n(this,i(r).call(this,o(t,s,l))),d.code=e,d}return l(r,t),r}(r);f[e]=s}function u(e,t){if(Array.isArray(e)){var r=e.length;return e=e.map(function(e){return e+""}),2<r?"one of ".concat(t," ").concat(e.slice(0,r-1).join(", "),", or ")+e[r-1]:2===r?"one of ".concat(t," ").concat(e[0]," or ").concat(e[1]):"of ".concat(t," ").concat(e[0])}return"of ".concat(t," ").concat(e+"")}function g(e,t,r){return e.substr(!r||0>r?0:+r,t.length)===t}function y(e,t,r){return(void 0===r||r>e.length)&&(r=e.length),e.substring(r-t.length,r)===t}function h(e,t,r){return"number"!=typeof r&&(r=0),!(r+t.length>e.length)&&-1!==e.indexOf(t,r)}var f={},m,A;p("ERR_AMBIGUOUS_ARGUMENT","The \"%s\" argument is ambiguous. %s",TypeError),p("ERR_INVALID_ARG_TYPE",function(t,r,a){void 0===m&&(m=e("../assert")),m("string"==typeof t,"'name' must be a string");var n;"string"==typeof r&&g(r,"not ")?(n="must not be",r=r.replace(/^not /,"")):n="must be";var s;if(y(t," argument"))s="The ".concat(t," ").concat(n," ").concat(u(r,"type"));else{var i=h(t,".")?"property":"argument";s="The \"".concat(t,"\" ").concat(i," ").concat(n," ").concat(u(r,"type"))}return s+=". Received type ".concat(o(a)),s},TypeError),p("ERR_INVALID_ARG_VALUE",function(t,r){var o=2<arguments.length&&void 0!==arguments[2]?arguments[2]:"is invalid";void 0===A&&(A=e("util/"));var a=A.inspect(r);return 128<a.length&&(a="".concat(a.slice(0,128),"...")),"The argument '".concat(t,"' ").concat(o,". Received ").concat(a)},TypeError,RangeError),p("ERR_INVALID_RETURN_VALUE",function(e,t,r){var a;return a=r&&r.constructor&&r.constructor.name?"instance of ".concat(r.constructor.name):"type ".concat(o(r)),"Expected ".concat(e," to be returned from the \"").concat(t,"\"")+" function but got ".concat(a,".")},TypeError),p("ERR_MISSING_ARGS",function(){for(var t=arguments.length,r=Array(t),o=0;o<t;o++)r[o]=arguments[o];void 0===m&&(m=e("../assert")),m(0<r.length,"At least one arg needs to be specified");var a="The ",n=r.length;switch(r=r.map(function(e){return"\"".concat(e,"\"")}),n){case 1:a+="".concat(r[0]," argument");break;case 2:a+="".concat(r[0]," and ").concat(r[1]," arguments");break;default:a+=r.slice(0,n-1).join(", "),a+=", and ".concat(r[n-1]," arguments");}return"".concat(a," must be specified")},TypeError),t.exports.codes=f},{"../assert":2,"util/":8}],5:[function(e,t,r){'use strict';function o(e,t){return s(e)||n(e,t)||a()}function a(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}function n(e,t){var r=[],o=!0,a=!1,n=void 0;try{for(var s=e[Symbol.iterator](),i;!(o=(i=s.next()).done)&&(r.push(i.value),!(t&&r.length===t));o=!0);}catch(e){a=!0,n=e}finally{try{o||null==s["return"]||s["return"]()}finally{if(a)throw n}}return r}function s(e){if(Array.isArray(e))return e}function l(e){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},l(e)}function d(e){return e.call.bind(e)}function p(e){if(0===e.length||10<e.length)return!0;for(var t=0,r;t<e.length;t++)if(r=e.charCodeAt(t),48>r||57<r)return!0;return 10===e.length&&e>=_Mathpow(2,32)}function u(e){return Object.keys(e).filter(p).concat(L(e).filter(Object.prototype.propertyIsEnumerable.bind(e)))}function g(e,t){if(e===t)return 0;for(var r=e.length,o=t.length,a=0,n=_Mathmin(r,o);a<n;++a)if(e[a]!==t[a]){r=e[a],o=t[a];break}return r<o?-1:o<r?1:0}function y(e,t){return R?e.source===t.source&&e.flags===t.flags:RegExp.prototype.toString.call(e)===RegExp.prototype.toString.call(t)}function h(e,t){if(e.byteLength!==t.byteLength)return!1;for(var r=0;r<e.byteLength;r++)if(e[r]!==t[r])return!1;return!0}function f(e,t){return!(e.byteLength!==t.byteLength)&&0===g(new Uint8Array(e.buffer,e.byteOffset,e.byteLength),new Uint8Array(t.buffer,t.byteOffset,t.byteLength))}function m(e,t){return e.byteLength===t.byteLength&&0===g(new Uint8Array(e),new Uint8Array(t))}function A(e,t){return J(e)?J(t)&&O(_Numberprototype.valueOf.call(e),_Numberprototype.valueOf.call(t)):X(e)?X(t)&&_Stringprototype.valueOf.call(e)===_Stringprototype.valueOf.call(t):$(e)?$(t)&&Boolean.prototype.valueOf.call(e)===Boolean.prototype.valueOf.call(t):Z(e)?Z(t)&&BigInt.prototype.valueOf.call(e)===BigInt.prototype.valueOf.call(t):ee(t)&&Symbol.prototype.valueOf.call(e)===Symbol.prototype.valueOf.call(t)}function x(e,t,r,o){if(e===t)return 0!==e||!r||O(e,t);if(r){if("object"!==l(e))return"number"==typeof e&&j(e)&&j(t);if("object"!==l(t)||null===e||null===t)return!1;if(Object.getPrototypeOf(e)!==Object.getPrototypeOf(t))return!1}else{if(null===e||"object"!==l(e))return(null===t||"object"!==l(t))&&e==t;if(null===t||"object"!==l(t))return!1}var a=M(e),n=M(t);if(a!==n)return!1;if(Array.isArray(e)){if(e.length!==t.length)return!1;var s=u(e,void 0),i=u(t,void 0);return s.length===i.length&&S(e,t,r,o,1,s)}if("[object Object]"===a&&(!H(e)&&H(t)||!V(e)&&V(t)))return!1;if(K(e)){if(!K(t)||Date.prototype.getTime.call(e)!==Date.prototype.getTime.call(t))return!1;}else if(W(e)){if(!W(t)||!y(e,t))return!1;}else if(!(Q(e)||e instanceof Error)){if(G(e)){if(!r&&(te(e)||re(e))){if(!h(e,t))return!1;}else if(!f(e,t))return!1;var d=u(e,void 0),p=u(t,void 0);return d.length===p.length&&S(e,t,r,o,0,d)}if(V(e))return!!(V(t)&&e.size===t.size)&&S(e,t,r,o,2);if(H(e))return!!(H(t)&&e.size===t.size)&&S(e,t,r,o,3);if(q(e)){if(!m(e,t))return!1;}else if(Y(e)&&!A(e,t))return!1}else if(e.message!==t.message||e.name!==t.name)return!1;return S(e,t,r,o,0)}function k(e,t){return t.filter(function(t){return z(e,t)})}function S(e,t,r,o,a,n){if(5===arguments.length){n=Object.keys(e);var s=Object.keys(t);if(n.length!==s.length)return!1}for(var l=0;l<n.length;l++)if(!N(t,n[l]))return!1;if(r&&5===arguments.length){var d=L(e);if(0!==d.length){var p=0;for(l=0;l<d.length;l++){var u=d[l];if(z(e,u)){if(!z(t,u))return!1;n.push(u),p++}else if(z(t,u))return!1}var g=L(t);if(d.length!==g.length&&k(t,g).length!==p)return!1}else{var y=L(t);if(0!==y.length&&0!==k(t,y).length)return!1}}if(0===n.length&&(0===a||1===a&&0===e.length||0===e.size))return!0;if(void 0===o)o={val1:new Map,val2:new Map,position:0};else{var h=o.val1.get(e);if(void 0!==h){var f=o.val2.get(t);if(void 0!==f)return h===f}o.position++}o.val1.set(e,o.position),o.val2.set(t,o.position);var m=U(e,t,r,n,o,a);return o.val1.delete(e),o.val2.delete(t),m}function w(e,t,r,o){for(var a=C(e),n=0,s;n<a.length;n++)if(s=a[n],x(t,s,r,o))return e.delete(s),!0;return!1}function v(e){switch(l(e)){case"undefined":return null;case"object":return;case"symbol":return!1;case"string":e=+e;case"number":if(j(e))return!1;}return!0}function T(e,t,r){var o=v(r);return null==o?t.has(o)&&!e.has(o):o}function E(e,t,r,o,a){var n=v(r);if(null!=n)return n;var s=t.get(n);return!!((void 0!==s||t.has(n))&&x(o,s,!1,a))&&!e.has(n)&&x(o,s,!1,a)}function B(e,t,r,o){for(var a=null,n=C(e),s=0,d;s<n.length;s++)if(d=n[s],"object"===l(d)&&null!==d)null===a&&(a=new Set),a.add(d);else if(!t.has(d)){if(r)return!1;if(!T(e,t,d))return!1;null===a&&(a=new Set),a.add(d)}if(null!==a){for(var p=C(t),u=0,g;u<p.length;u++)if(g=p[u],"object"===l(g)&&null!==g){if(!w(a,g,r,o))return!1;}else if(!r&&!e.has(g)&&!w(a,g,r,o))return!1;return 0===a.size}return!0}function I(e,t,r,o,a,n){for(var s=C(e),l=0,d;l<s.length;l++)if(d=s[l],x(r,d,a,n)&&x(o,t.get(d),a,n))return e.delete(d),!0;return!1}function P(e,t,r,a){for(var n=null,s=D(e),d=0;d<s.length;d++){var p=o(s[d],2),u=p[0],g=p[1];if("object"===l(u)&&null!==u)null===n&&(n=new Set),n.add(u);else{var y=t.get(u);if(y===void 0&&!t.has(u)||!x(g,y,r,a)){if(r)return!1;if(!E(e,t,u,g,a))return!1;null===n&&(n=new Set),n.add(u)}}}if(null!==n){for(var h=D(t),f=0;f<h.length;f++){var m=o(h[f],2),u=m[0],A=m[1];if("object"===l(u)&&null!==u){if(!I(n,e,u,A,r,a))return!1;}else if(!r&&(!e.has(u)||!x(e.get(u),A,!1,a))&&!I(n,e,u,A,!1,a))return!1}return 0===n.size}return!0}function U(e,t,r,o,a,n){var s=0;if(n===2){if(!B(e,t,r,a))return!1;}else if(n===3){if(!P(e,t,r,a))return!1;}else if(n===1)for(;s<e.length;s++){if(!N(e,s)){if(N(t,s))return!1;for(var l=Object.keys(e),d;s<l.length;s++)if(d=l[s],!N(t,d)||!x(e[d],t[d],r,a))return!1;return l.length===Object.keys(t).length}if(!N(t,s)||!x(e[s],t[s],r,a))return!1}for(s=0;s<o.length;s++){var p=o[s];if(!x(e[p],t[p],r,a))return!1}return!0}var R=/a/g.flags!==void 0,C=function(e){var t=[];return e.forEach(function(e){return t.push(e)}),t},D=function(e){var t=[];return e.forEach(function(e,r){return t.push([r,e])}),t},O=Object.is?Object.is:e("object-is"),L=Object.getOwnPropertySymbols?Object.getOwnPropertySymbols:function(){return[]},j=_NumberisNaN?_NumberisNaN:e("is-nan"),N=d(Object.prototype.hasOwnProperty),z=d(Object.prototype.propertyIsEnumerable),M=d(Object.prototype.toString),F=e("util/").types,q=F.isAnyArrayBuffer,G=F.isArrayBufferView,K=F.isDate,H=F.isMap,W=F.isRegExp,V=F.isSet,Q=F.isNativeError,Y=F.isBoxedPrimitive,J=F.isNumberObject,X=F.isStringObject,$=F.isBooleanObject,Z=F.isBigIntObject,ee=F.isSymbolObject,te=F.isFloat32Array,re=F.isFloat64Array;t.exports={isDeepEqual:function(e,t){return x(e,t,!1)},isDeepStrictEqual:function(e,t){return x(e,t,!0)}}},{"is-nan":30,"object-is":50,"util/":8}],6:[function(e,t,r){t.exports=function(e){return e&&"object"==typeof e&&"function"==typeof e.copy&&"function"==typeof e.fill&&"function"==typeof e.readUInt8}},{}],7:[function(e,t,r){'use strict';function o(e){return e.call.bind(e)}function a(e,t){if("object"!=typeof e)return!1;try{return t(e),!0}catch(t){return!1}}function n(e){return"[object Map]"===I(e)}function s(e){return"[object Set]"===I(e)}function i(e){return"[object WeakMap]"===I(e)}function l(e){return"[object WeakSet]"===I(e)}function d(e){return"[object ArrayBuffer]"===I(e)}function p(e){return"undefined"!=typeof ArrayBuffer&&(d.working?d(e):e instanceof ArrayBuffer)}function u(e){return"[object DataView]"===I(e)}function g(e){return"undefined"!=typeof DataView&&(u.working?u(e):e instanceof DataView)}function y(e){return"[object SharedArrayBuffer]"===I(e)}function h(e){return"undefined"!=typeof SharedArrayBuffer&&(y.working?y(e):e instanceof SharedArrayBuffer)}function f(e){return a(e,P)}function m(e){return a(e,U)}function A(e){return a(e,R)}function x(e){return E&&a(e,C)}function k(e){return B&&a(e,D)}var S=e("is-arguments"),w=e("is-generator-function"),v=e("which-typed-array"),T=e("is-typed-array"),E="undefined"!=typeof BigInt,B="undefined"!=typeof Symbol,I=o(Object.prototype.toString),P=o(_Numberprototype.valueOf),U=o(_Stringprototype.valueOf),R=o(Boolean.prototype.valueOf);if(E)var C=o(BigInt.prototype.valueOf);if(B)var D=o(Symbol.prototype.valueOf);r.isArgumentsObject=S,r.isGeneratorFunction=w,r.isTypedArray=T,r.isPromise=function(e){return"undefined"!=typeof Promise&&e instanceof Promise||null!==e&&"object"==typeof e&&"function"==typeof e.then&&"function"==typeof e.catch},r.isArrayBufferView=function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):T(e)||g(e)},r.isUint8Array=function(e){return"Uint8Array"===v(e)},r.isUint8ClampedArray=function(e){return"Uint8ClampedArray"===v(e)},r.isUint16Array=function(e){return"Uint16Array"===v(e)},r.isUint32Array=function(e){return"Uint32Array"===v(e)},r.isInt8Array=function(e){return"Int8Array"===v(e)},r.isInt16Array=function(e){return"Int16Array"===v(e)},r.isInt32Array=function(e){return"Int32Array"===v(e)},r.isFloat32Array=function(e){return"Float32Array"===v(e)},r.isFloat64Array=function(e){return"Float64Array"===v(e)},r.isBigInt64Array=function(e){return"BigInt64Array"===v(e)},r.isBigUint64Array=function(e){return"BigUint64Array"===v(e)},n.working="undefined"!=typeof Map&&n(new Map),r.isMap=function(e){return"undefined"!=typeof Map&&(n.working?n(e):e instanceof Map)},s.working="undefined"!=typeof Set&&s(new Set),r.isSet=function(e){return"undefined"!=typeof Set&&(s.working?s(e):e instanceof Set)},i.working="undefined"!=typeof WeakMap&&i(new WeakMap),r.isWeakMap=function(e){return"undefined"!=typeof WeakMap&&(i.working?i(e):e instanceof WeakMap)},l.working="undefined"!=typeof WeakSet&&l(new WeakSet),r.isWeakSet=function(e){return l(e)},d.working="undefined"!=typeof ArrayBuffer&&d(new ArrayBuffer),r.isArrayBuffer=p,u.working="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView&&u(new DataView(new ArrayBuffer(1),0,1)),r.isDataView=g,y.working="undefined"!=typeof SharedArrayBuffer&&y(new SharedArrayBuffer),r.isSharedArrayBuffer=h,r.isAsyncFunction=function(e){return"[object AsyncFunction]"===I(e)},r.isMapIterator=function(e){return"[object Map Iterator]"===I(e)},r.isSetIterator=function(e){return"[object Set Iterator]"===I(e)},r.isGeneratorObject=function(e){return"[object Generator]"===I(e)},r.isWebAssemblyCompiledModule=function(e){return"[object WebAssembly.Module]"===I(e)},r.isNumberObject=f,r.isStringObject=m,r.isBooleanObject=A,r.isBigIntObject=x,r.isSymbolObject=k,r.isBoxedPrimitive=function(e){return f(e)||m(e)||A(e)||x(e)||k(e)},r.isAnyArrayBuffer=function(e){return"undefined"!=typeof Uint8Array&&(p(e)||h(e))},["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(e){Object.defineProperty(r,e,{enumerable:!1,value:function(){throw new Error(e+" is not supported in userland")}})})},{"is-arguments":26,"is-generator-function":28,"is-typed-array":33,"which-typed-array":93}],8:[function(e,t,r){(function(t){function o(e,t){var o={seen:[],stylize:n};return 3<=arguments.length&&(o.depth=arguments[2]),4<=arguments.length&&(o.colors=arguments[3]),h(t)?o.showHidden=t:t&&r._extend(o,t),S(o.showHidden)&&(o.showHidden=!1),S(o.depth)&&(o.depth=2),S(o.colors)&&(o.colors=!1),S(o.customInspect)&&(o.customInspect=!0),o.colors&&(o.stylize=a),i(o,e,o.depth)}function a(e,t){var r=o.styles[t];return r?"\x1B["+o.colors[r][0]+"m"+e+"\x1B["+o.colors[r][1]+"m":e}function n(e,t){return e}function s(e){var t={};return e.forEach(function(e,r){t[e]=!0}),t}function i(e,t,o){if(e.customInspect&&t&&B(t.inspect)&&t.inspect!==r.inspect&&!(t.constructor&&t.constructor.prototype===t)){var a=t.inspect(o,e);return k(a)||(a=i(e,a,o)),a}var h=l(e,t);if(h)return h;var f=Object.keys(t),m=s(f);if(e.showHidden&&(f=Object.getOwnPropertyNames(t)),E(t)&&(0<=f.indexOf("message")||0<=f.indexOf("description")))return d(t);if(0===f.length){if(B(t)){var A=t.name?": "+t.name:"";return e.stylize("[Function"+A+"]","special")}if(w(t))return e.stylize(RegExp.prototype.toString.call(t),"regexp");if(T(t))return e.stylize(Date.prototype.toString.call(t),"date");if(E(t))return d(t)}var x="",S=!1,v=["{","}"];if(y(t)&&(S=!0,v=["[","]"]),B(t)){var I=t.name?": "+t.name:"";x=" [Function"+I+"]"}if(w(t)&&(x=" "+RegExp.prototype.toString.call(t)),T(t)&&(x=" "+Date.prototype.toUTCString.call(t)),E(t)&&(x=" "+d(t)),0===f.length&&(!S||0==t.length))return v[0]+x+v[1];if(0>o)return w(t)?e.stylize(RegExp.prototype.toString.call(t),"regexp"):e.stylize("[Object]","special");e.seen.push(t);var n;return n=S?p(e,t,o,m,f):f.map(function(r){return u(e,t,o,m,r,S)}),e.seen.pop(),g(n,x,v)}function l(e,t){if(S(t))return e.stylize("undefined","undefined");if(k(t)){var r="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,"\"")+"'";return e.stylize(r,"string")}return A(t)?e.stylize(""+t,"number"):h(t)?e.stylize(""+t,"boolean"):m(t)?e.stylize("null","null"):void 0}function d(e){return"["+Error.prototype.toString.call(e)+"]"}function p(e,t,r,o,a){for(var n=[],s=0,d=t.length;s<d;++s)R(t,s+"")?n.push(u(e,t,r,o,s+"",!0)):n.push("");return a.forEach(function(a){a.match(/^\d+$/)||n.push(u(e,t,r,o,a,!0))}),n}function u(e,t,r,o,a,n){var s,l,d;if(d=Object.getOwnPropertyDescriptor(t,a)||{value:t[a]},d.get?d.set?l=e.stylize("[Getter/Setter]","special"):l=e.stylize("[Getter]","special"):d.set&&(l=e.stylize("[Setter]","special")),R(o,a)||(s="["+a+"]"),l||(0>e.seen.indexOf(d.value)?(l=m(r)?i(e,d.value,null):i(e,d.value,r-1),-1<l.indexOf("\n")&&(n?l=l.split("\n").map(function(e){return"  "+e}).join("\n").substr(2):l="\n"+l.split("\n").map(function(e){return"   "+e}).join("\n"))):l=e.stylize("[Circular]","special")),S(s)){if(n&&a.match(/^\d+$/))return l;s=JSON.stringify(""+a),s.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(s=s.substr(1,s.length-2),s=e.stylize(s,"name")):(s=s.replace(/'/g,"\\'").replace(/\\"/g,"\"").replace(/(^"|"$)/g,"'"),s=e.stylize(s,"string"))}return s+": "+l}function g(e,t,r){var o=0,a=e.reduce(function(e,t){return o++,0<=t.indexOf("\n")&&o++,e+t.replace(/\u001b\[\d\d?m/g,"").length+1},0);return 60<a?r[0]+(""===t?"":t+"\n ")+" "+e.join(",\n  ")+" "+r[1]:r[0]+t+" "+e.join(", ")+" "+r[1]}function y(e){return Array.isArray(e)}function h(e){return"boolean"==typeof e}function m(e){return null===e}function A(e){return"number"==typeof e}function k(e){return"string"==typeof e}function S(e){return void 0===e}function w(e){return v(e)&&"[object RegExp]"===I(e)}function v(e){return"object"==typeof e&&null!==e}function T(e){return v(e)&&"[object Date]"===I(e)}function E(t){return v(t)&&("[object Error]"===I(t)||t instanceof Error)}function B(e){return"function"==typeof e}function I(e){return Object.prototype.toString.call(e)}function P(e){return 10>e?"0"+e.toString(10):e.toString(10)}function U(){var e=new Date,t=[P(e.getHours()),P(e.getMinutes()),P(e.getSeconds())].join(":");return[e.getDate(),z[e.getMonth()],t].join(" ")}function R(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function C(e,t){if(!e){var r=new Error("Promise was rejected with a falsy value");r.reason=e,e=r}return t(e)}var D=Object.getOwnPropertyDescriptors||function(e){for(var t=Object.keys(e),r={},o=0;o<t.length;o++)r[t[o]]=Object.getOwnPropertyDescriptor(e,t[o]);return r},O=/%[sdj%]/g;r.format=function(e){if(!k(e)){for(var t=[],r=0;r<arguments.length;r++)t.push(o(arguments[r]));return t.join(" ")}for(var r=1,a=arguments,n=a.length,s=(e+"").replace(O,function(e){if("%%"===e)return"%";if(r>=n)return e;switch(e){case"%s":return a[r++]+"";case"%d":return+a[r++];case"%j":try{return JSON.stringify(a[r++])}catch(e){return"[Circular]"}default:return e;}}),l=a[r];r<n;l=a[++r])s+=m(l)||!v(l)?" "+l:" "+o(l);return s},r.deprecate=function(e,o){function a(){if(!n){if(t.throwDeprecation)throw new Error(o);else t.traceDeprecation?console.trace(o):console.error(o);n=!0}return e.apply(this,arguments)}if("undefined"!=typeof t&&!0===t.noDeprecation)return e;if("undefined"==typeof t)return function(){return r.deprecate(e,o).apply(this,arguments)};var n=!1;return a};var L={},j=/^$/;if(t.env.NODE_DEBUG){var N=t.env.NODE_DEBUG;N=N.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase(),j=new RegExp("^"+N+"$","i")}r.debuglog=function(e){if(e=e.toUpperCase(),!L[e])if(j.test(e)){var o=t.pid;L[e]=function(){var t=r.format.apply(r,arguments);console.error("%s %d: %s",e,o,t)}}else L[e]=function(){};return L[e]},r.inspect=o,o.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},o.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},r.types=e("./support/types"),r.isArray=y,r.isBoolean=h,r.isNull=m,r.isNullOrUndefined=function(e){return null==e},r.isNumber=A,r.isString=k,r.isSymbol=function(e){return"symbol"==typeof e},r.isUndefined=S,r.isRegExp=w,r.types.isRegExp=w,r.isObject=v,r.isDate=T,r.types.isDate=T,r.isError=E,r.types.isNativeError=E,r.isFunction=B,r.isPrimitive=function(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||"undefined"==typeof e},r.isBuffer=e("./support/isBuffer");var z=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];r.log=function(){console.log("%s - %s",U(),r.format.apply(r,arguments))},r.inherits=e("inherits"),r._extend=function(e,t){if(!t||!v(t))return e;for(var r=Object.keys(t),o=r.length;o--;)e[r[o]]=t[r[o]];return e};var M="undefined"==typeof Symbol?void 0:Symbol("util.promisify.custom");r.promisify=function(e){function t(){for(var t=new Promise(function(e,t){a=e,n=t}),r=[],o=0,a,n;o<arguments.length;o++)r.push(arguments[o]);r.push(function(e,t){e?n(e):a(t)});try{e.apply(this,r)}catch(e){n(e)}return t}if("function"!=typeof e)throw new TypeError("The \"original\" argument must be of type Function");if(M&&e[M]){var t=e[M];if("function"!=typeof t)throw new TypeError("The \"util.promisify.custom\" argument must be of type Function");return Object.defineProperty(t,M,{value:t,enumerable:!1,writable:!1,configurable:!0}),t}return Object.setPrototypeOf(t,Object.getPrototypeOf(e)),M&&Object.defineProperty(t,M,{value:t,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(t,D(e))},r.promisify.custom=M,r.callbackify=function(e){function r(){for(var r=[],o=0;o<arguments.length;o++)r.push(arguments[o]);var a=r.pop();if("function"!=typeof a)throw new TypeError("The last argument must be of type Function");var n=this,s=function(){return a.apply(n,arguments)};e.apply(this,r).then(function(e){t.nextTick(s.bind(null,null,e))},function(e){t.nextTick(C.bind(null,e,s))})}if("function"!=typeof e)throw new TypeError("The \"original\" argument must be of type Function");return Object.setPrototypeOf(r,Object.getPrototypeOf(e)),Object.defineProperties(r,D(e)),r}}).call(this,e("_process"))},{"./support/isBuffer":6,"./support/types":7,_process:61,inherits:25}],9:[function(e,t,r){(function(r){'use strict';var o=e("array-filter");t.exports=function(){return o(["BigInt64Array","BigUint64Array","Float32Array","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray"],function(e){return"function"==typeof r[e]})}}).call(this,"undefined"==typeof global?"undefined"==typeof self?"undefined"==typeof window?{}:window:self:global)},{"array-filter":10}],10:[function(e,t,r){t.exports=function(e,t,r){if(e.filter)return e.filter(t,r);if(void 0===e||null===e)throw new TypeError;if("function"!=typeof t)throw new TypeError;for(var a=[],n=0;n<e.length;n++)if(o.call(e,n)){var s=e[n];t.call(r,s,n,e)&&a.push(s)}return a};var o=Object.prototype.hasOwnProperty},{}],11:[function(e,t,r){'use strict';function o(e){var t=e.length;if(0<t%4)throw new Error("Invalid string. Length must be a multiple of 4");var r=e.indexOf("=");-1===r&&(r=t);var o=r===t?0:4-r%4;return[r,o]}function a(e,t,r){return 3*(t+r)/4-r}function n(e){for(var t=o(e),r=t[0],n=t[1],s=new g(a(e,r,n)),l=0,d=0<n?r-4:r,p=0,y;p<d;p+=4)y=u[e.charCodeAt(p)]<<18|u[e.charCodeAt(p+1)]<<12|u[e.charCodeAt(p+2)]<<6|u[e.charCodeAt(p+3)],s[l++]=255&y>>16,s[l++]=255&y>>8,s[l++]=255&y;return 2===n&&(y=u[e.charCodeAt(p)]<<2|u[e.charCodeAt(p+1)]>>4,s[l++]=255&y),1===n&&(y=u[e.charCodeAt(p)]<<10|u[e.charCodeAt(p+1)]<<4|u[e.charCodeAt(p+2)]>>2,s[l++]=255&y>>8,s[l++]=255&y),s}function s(e){return p[63&e>>18]+p[63&e>>12]+p[63&e>>6]+p[63&e]}function l(e,t,r){for(var o=[],a=t,n;a<r;a+=3)n=(16711680&e[a]<<16)+(65280&e[a+1]<<8)+(255&e[a+2]),o.push(s(n));return o.join("")}function d(e){for(var t=e.length,r=t%3,o=[],a=16383,n=0,s=t-r,d;n<s;n+=a)o.push(l(e,n,n+a>s?s:n+a));return 1===r?(d=e[t-1],o.push(p[d>>2]+p[63&d<<4]+"==")):2===r&&(d=(e[t-2]<<8)+e[t-1],o.push(p[d>>10]+p[63&d>>4]+p[63&d<<2]+"=")),o.join("")}r.byteLength=function(e){var t=o(e),r=t[0],a=t[1];return 3*(r+a)/4-a},r.toByteArray=n,r.fromByteArray=d;for(var p=[],u=[],g="undefined"==typeof Uint8Array?Array:Uint8Array,y="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",h=0,f=y.length;h<f;++h)p[h]=y[h],u[y.charCodeAt(h)]=h;u[45]=62,u[95]=63},{}],12:[function(e,t,r){},{}],13:[function(e,t,r){(function(t){'use strict';function o(e){if(2147483647<e)throw new RangeError("The value \""+e+"\" is invalid for option \"size\"");var r=new Uint8Array(e);return r.__proto__=t.prototype,r}function t(e,r,o){if("number"==typeof e){if("string"==typeof r)throw new TypeError("The \"string\" argument must be of type string. Received type number");return i(e)}return a(e,r,o)}function a(e,r,o){if("string"==typeof e)return l(e,r);if(ArrayBuffer.isView(e))return d(e);if(null==e)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(V(e,ArrayBuffer)||e&&V(e.buffer,ArrayBuffer))return p(e,r,o);if("number"==typeof e)throw new TypeError("The \"value\" argument must not be of type number. Received type number");var a=e.valueOf&&e.valueOf();if(null!=a&&a!==e)return t.from(a,r,o);var n=u(e);if(n)return n;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof e[Symbol.toPrimitive])return t.from(e[Symbol.toPrimitive]("string"),r,o);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function n(e){if("number"!=typeof e)throw new TypeError("\"size\" argument must be of type number");else if(0>e)throw new RangeError("The value \""+e+"\" is invalid for option \"size\"")}function s(e,t,r){return n(e),0>=e?o(e):void 0===t?o(e):"string"==typeof r?o(e).fill(t,r):o(e).fill(t)}function i(e){return n(e),o(0>e?0:0|g(e))}function l(e,r){if(("string"!=typeof r||""===r)&&(r="utf8"),!t.isEncoding(r))throw new TypeError("Unknown encoding: "+r);var a=0|h(e,r),n=o(a),s=n.write(e,r);return s!==a&&(n=n.slice(0,s)),n}function d(e){for(var t=0>e.length?0:0|g(e.length),r=o(t),a=0;a<t;a+=1)r[a]=255&e[a];return r}function p(e,r,o){if(0>r||e.byteLength<r)throw new RangeError("\"offset\" is outside of buffer bounds");if(e.byteLength<r+(o||0))throw new RangeError("\"length\" is outside of buffer bounds");var a;return a=void 0===r&&void 0===o?new Uint8Array(e):void 0===o?new Uint8Array(e,r):new Uint8Array(e,r,o),a.__proto__=t.prototype,a}function u(e){if(t.isBuffer(e)){var r=0|g(e.length),a=o(r);return 0===a.length?a:(e.copy(a,0,0,r),a)}return void 0===e.length?"Buffer"===e.type&&Array.isArray(e.data)?d(e.data):void 0:"number"!=typeof e.length||Q(e.length)?o(0):d(e)}function g(e){if(e>=2147483647)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+2147483647 .toString(16)+" bytes");return 0|e}function y(e){return+e!=e&&(e=0),t.alloc(+e)}function h(e,r){if(t.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||V(e,ArrayBuffer))return e.byteLength;if("string"!=typeof e)throw new TypeError("The \"string\" argument must be one of type string, Buffer, or ArrayBuffer. Received type "+typeof e);var o=e.length,a=2<arguments.length&&!0===arguments[2];if(!a&&0===o)return 0;for(var n=!1;;)switch(r){case"ascii":case"latin1":case"binary":return o;case"utf8":case"utf-8":return q(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*o;case"hex":return o>>>1;case"base64":return H(e).length;default:if(n)return a?-1:q(e).length;r=(""+r).toLowerCase(),n=!0;}}function f(e,t,r){var o=!1;if((void 0===t||0>t)&&(t=0),t>this.length)return"";if((void 0===r||r>this.length)&&(r=this.length),0>=r)return"";if(r>>>=0,t>>>=0,r<=t)return"";for(e||(e="utf8");;)switch(e){case"hex":return C(this,t,r);case"utf8":case"utf-8":return I(this,t,r);case"ascii":return U(this,t,r);case"latin1":case"binary":return R(this,t,r);case"base64":return B(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return D(this,t,r);default:if(o)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),o=!0;}}function m(e,t,r){var o=e[t];e[t]=e[r],e[r]=o}function A(e,r,o,a,n){if(0===e.length)return-1;if("string"==typeof o?(a=o,o=0):2147483647<o?o=2147483647:-2147483648>o&&(o=-2147483648),o=+o,Q(o)&&(o=n?0:e.length-1),0>o&&(o=e.length+o),o>=e.length){if(n)return-1;o=e.length-1}else if(0>o)if(n)o=0;else return-1;if("string"==typeof r&&(r=t.from(r,a)),t.isBuffer(r))return 0===r.length?-1:x(e,r,o,a,n);if("number"==typeof r)return r&=255,"function"==typeof Uint8Array.prototype.indexOf?n?Uint8Array.prototype.indexOf.call(e,r,o):Uint8Array.prototype.lastIndexOf.call(e,r,o):x(e,[r],o,a,n);throw new TypeError("val must be string, number or Buffer")}function x(e,t,r,o,a){function n(e,t){return 1===s?e[t]:e.readUInt16BE(t*s)}var s=1,l=e.length,d=t.length;if(void 0!==o&&(o=(o+"").toLowerCase(),"ucs2"===o||"ucs-2"===o||"utf16le"===o||"utf-16le"===o)){if(2>e.length||2>t.length)return-1;s=2,l/=2,d/=2,r/=2}var p;if(a){var u=-1;for(p=r;p<l;p++)if(n(e,p)!==n(t,-1===u?0:p-u))-1!==u&&(p-=p-u),u=-1;else if(-1===u&&(u=p),p-u+1===d)return u*s}else for(r+d>l&&(r=l-d),p=r;0<=p;p--){for(var g=!0,y=0;y<d;y++)if(n(e,p+y)!==n(t,y)){g=!1;break}if(g)return p}return-1}function k(e,t,r,o){r=+r||0;var a=e.length-r;o?(o=+o,o>a&&(o=a)):o=a;var n=t.length;o>n/2&&(o=n/2);for(var s=0,l;s<o;++s){if(l=parseInt(t.substr(2*s,2),16),Q(l))return s;e[r+s]=l}return s}function S(e,t,r,o){return W(q(t,e.length-r),e,r,o)}function w(e,t,r,o){return W(G(t),e,r,o)}function v(e,t,r,o){return w(e,t,r,o)}function T(e,t,r,o){return W(H(t),e,r,o)}function E(e,t,r,o){return W(K(t,e.length-r),e,r,o)}function B(e,t,r){return 0===t&&r===e.length?Y.fromByteArray(e):Y.fromByteArray(e.slice(t,r))}function I(e,t,r){r=_Mathmin(e.length,r);for(var o=[],a=t;a<r;){var n=e[a],s=null,l=239<n?4:223<n?3:191<n?2:1;if(a+l<=r){var d,p,u,g;1===l?128>n&&(s=n):2===l?(d=e[a+1],128==(192&d)&&(g=(31&n)<<6|63&d,127<g&&(s=g))):3===l?(d=e[a+1],p=e[a+2],128==(192&d)&&128==(192&p)&&(g=(15&n)<<12|(63&d)<<6|63&p,2047<g&&(55296>g||57343<g)&&(s=g))):4===l?(d=e[a+1],p=e[a+2],u=e[a+3],128==(192&d)&&128==(192&p)&&128==(192&u)&&(g=(15&n)<<18|(63&d)<<12|(63&p)<<6|63&u,65535<g&&1114112>g&&(s=g))):void 0}null===s?(s=65533,l=1):65535<s&&(s-=65536,o.push(55296|1023&s>>>10),s=56320|1023&s),o.push(s),a+=l}return P(o)}function P(e){var t=e.length;if(t<=4096)return _StringfromCharCode.apply(String,e);for(var r="",o=0;o<t;)r+=_StringfromCharCode.apply(String,e.slice(o,o+=4096));return r}function U(e,t,r){var o="";r=_Mathmin(e.length,r);for(var a=t;a<r;++a)o+=_StringfromCharCode(127&e[a]);return o}function R(e,t,r){var o="";r=_Mathmin(e.length,r);for(var a=t;a<r;++a)o+=_StringfromCharCode(e[a]);return o}function C(e,t,r){var o=e.length;(!t||0>t)&&(t=0),(!r||0>r||r>o)&&(r=o);for(var a="",n=t;n<r;++n)a+=F(e[n]);return a}function D(e,t,r){for(var o=e.slice(t,r),a="",n=0;n<o.length;n+=2)a+=_StringfromCharCode(o[n]+256*o[n+1]);return a}function O(e,t,r){if(0!=e%1||0>e)throw new RangeError("offset is not uint");if(e+t>r)throw new RangeError("Trying to access beyond buffer length")}function L(e,r,o,a,n,s){if(!t.isBuffer(e))throw new TypeError("\"buffer\" argument must be a Buffer instance");if(r>n||r<s)throw new RangeError("\"value\" argument is out of bounds");if(o+a>e.length)throw new RangeError("Index out of range")}function j(e,t,r,o,a,n){if(r+o>e.length)throw new RangeError("Index out of range");if(0>r)throw new RangeError("Index out of range")}function N(e,t,r,o,a){return t=+t,r>>>=0,a||j(e,t,r,4,34028234663852886e22,-34028234663852886e22),J.write(e,t,r,o,23,4),r+4}function z(e,t,r,o,a){return t=+t,r>>>=0,a||j(e,t,r,8,17976931348623157e292,-17976931348623157e292),J.write(e,t,r,o,52,8),r+8}function M(e){if(e=e.split("=")[0],e=e.trim().replace(X,""),2>e.length)return"";for(;0!=e.length%4;)e+="=";return e}function F(e){return 16>e?"0"+e.toString(16):e.toString(16)}function q(e,t){t=t||1/0;for(var r=e.length,o=null,a=[],n=0,s;n<r;++n){if(s=e.charCodeAt(n),55295<s&&57344>s){if(!o){if(56319<s){-1<(t-=3)&&a.push(239,191,189);continue}else if(n+1===r){-1<(t-=3)&&a.push(239,191,189);continue}o=s;continue}if(56320>s){-1<(t-=3)&&a.push(239,191,189),o=s;continue}s=(o-55296<<10|s-56320)+65536}else o&&-1<(t-=3)&&a.push(239,191,189);if(o=null,128>s){if(0>(t-=1))break;a.push(s)}else if(2048>s){if(0>(t-=2))break;a.push(192|s>>6,128|63&s)}else if(65536>s){if(0>(t-=3))break;a.push(224|s>>12,128|63&s>>6,128|63&s)}else if(1114112>s){if(0>(t-=4))break;a.push(240|s>>18,128|63&s>>12,128|63&s>>6,128|63&s)}else throw new Error("Invalid code point")}return a}function G(e){for(var t=[],r=0;r<e.length;++r)t.push(255&e.charCodeAt(r));return t}function K(e,t){for(var r=[],o=0,a,n,s;o<e.length&&!(0>(t-=2));++o)a=e.charCodeAt(o),n=a>>8,s=a%256,r.push(s),r.push(n);return r}function H(e){return Y.toByteArray(M(e))}function W(e,t,r,o){for(var a=0;a<o&&!(a+r>=t.length||a>=e.length);++a)t[a+r]=e[a];return a}function V(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}function Q(e){return e!==e}var Y=e("base64-js"),J=e("ieee754");r.Buffer=t,r.SlowBuffer=y,r.INSPECT_MAX_BYTES=50;r.kMaxLength=2147483647,t.TYPED_ARRAY_SUPPORT=function(){try{var e=new Uint8Array(1);return e.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===e.foo()}catch(t){return!1}}(),t.TYPED_ARRAY_SUPPORT||"undefined"==typeof console||"function"!=typeof console.error||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(t.prototype,"parent",{enumerable:!0,get:function(){return t.isBuffer(this)?this.buffer:void 0}}),Object.defineProperty(t.prototype,"offset",{enumerable:!0,get:function(){return t.isBuffer(this)?this.byteOffset:void 0}}),"undefined"!=typeof Symbol&&null!=Symbol.species&&t[Symbol.species]===t&&Object.defineProperty(t,Symbol.species,{value:null,configurable:!0,enumerable:!1,writable:!1}),t.poolSize=8192,t.from=function(e,t,r){return a(e,t,r)},t.prototype.__proto__=Uint8Array.prototype,t.__proto__=Uint8Array,t.alloc=function(e,t,r){return s(e,t,r)},t.allocUnsafe=function(e){return i(e)},t.allocUnsafeSlow=function(e){return i(e)},t.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==t.prototype},t.compare=function(e,r){if(V(e,Uint8Array)&&(e=t.from(e,e.offset,e.byteLength)),V(r,Uint8Array)&&(r=t.from(r,r.offset,r.byteLength)),!t.isBuffer(e)||!t.isBuffer(r))throw new TypeError("The \"buf1\", \"buf2\" arguments must be one of type Buffer or Uint8Array");if(e===r)return 0;for(var o=e.length,n=r.length,s=0,l=_Mathmin(o,n);s<l;++s)if(e[s]!==r[s]){o=e[s],n=r[s];break}return o<n?-1:n<o?1:0},t.isEncoding=function(e){switch((e+"").toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1;}},t.concat=function(e,r){if(!Array.isArray(e))throw new TypeError("\"list\" argument must be an Array of Buffers");if(0===e.length)return t.alloc(0);var o;if(r===void 0)for(r=0,o=0;o<e.length;++o)r+=e[o].length;var a=t.allocUnsafe(r),n=0;for(o=0;o<e.length;++o){var s=e[o];if(V(s,Uint8Array)&&(s=t.from(s)),!t.isBuffer(s))throw new TypeError("\"list\" argument must be an Array of Buffers");s.copy(a,n),n+=s.length}return a},t.byteLength=h,t.prototype._isBuffer=!0,t.prototype.swap16=function(){var e=this.length;if(0!=e%2)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)m(this,t,t+1);return this},t.prototype.swap32=function(){var e=this.length;if(0!=e%4)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)m(this,t,t+3),m(this,t+1,t+2);return this},t.prototype.swap64=function(){var e=this.length;if(0!=e%8)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)m(this,t,t+7),m(this,t+1,t+6),m(this,t+2,t+5),m(this,t+3,t+4);return this},t.prototype.toString=function(){var e=this.length;return 0===e?"":0===arguments.length?I(this,0,e):f.apply(this,arguments)},t.prototype.toLocaleString=t.prototype.toString,t.prototype.equals=function(e){if(!t.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===t.compare(this,e)},t.prototype.inspect=function(){var e="",t=r.INSPECT_MAX_BYTES;return e=this.toString("hex",0,t).replace(/(.{2})/g,"$1 ").trim(),this.length>t&&(e+=" ... "),"<Buffer "+e+">"},t.prototype.compare=function(e,r,o,a,n){if(V(e,Uint8Array)&&(e=t.from(e,e.offset,e.byteLength)),!t.isBuffer(e))throw new TypeError("The \"target\" argument must be one of type Buffer or Uint8Array. Received type "+typeof e);if(void 0===r&&(r=0),void 0===o&&(o=e?e.length:0),void 0===a&&(a=0),void 0===n&&(n=this.length),0>r||o>e.length||0>a||n>this.length)throw new RangeError("out of range index");if(a>=n&&r>=o)return 0;if(a>=n)return-1;if(r>=o)return 1;if(r>>>=0,o>>>=0,a>>>=0,n>>>=0,this===e)return 0;for(var s=n-a,l=o-r,d=_Mathmin(s,l),p=this.slice(a,n),u=e.slice(r,o),g=0;g<d;++g)if(p[g]!==u[g]){s=p[g],l=u[g];break}return s<l?-1:l<s?1:0},t.prototype.includes=function(e,t,r){return-1!==this.indexOf(e,t,r)},t.prototype.indexOf=function(e,t,r){return A(this,e,t,r,!0)},t.prototype.lastIndexOf=function(e,t,r){return A(this,e,t,r,!1)},t.prototype.write=function(e,t,r,o){if(void 0===t)o="utf8",r=this.length,t=0;else if(void 0===r&&"string"==typeof t)o=t,r=this.length,t=0;else if(isFinite(t))t>>>=0,isFinite(r)?(r>>>=0,void 0===o&&(o="utf8")):(o=r,r=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var a=this.length-t;if((void 0===r||r>a)&&(r=a),0<e.length&&(0>r||0>t)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");o||(o="utf8");for(var n=!1;;)switch(o){case"hex":return k(this,e,t,r);case"utf8":case"utf-8":return S(this,e,t,r);case"ascii":return w(this,e,t,r);case"latin1":case"binary":return v(this,e,t,r);case"base64":return T(this,e,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return E(this,e,t,r);default:if(n)throw new TypeError("Unknown encoding: "+o);o=(""+o).toLowerCase(),n=!0;}},t.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};t.prototype.slice=function(e,r){var o=this.length;e=~~e,r=void 0===r?o:~~r,0>e?(e+=o,0>e&&(e=0)):e>o&&(e=o),0>r?(r+=o,0>r&&(r=0)):r>o&&(r=o),r<e&&(r=e);var a=this.subarray(e,r);return a.__proto__=t.prototype,a},t.prototype.readUIntLE=function(e,t,r){e>>>=0,t>>>=0,r||O(e,t,this.length);for(var o=this[e],a=1,n=0;++n<t&&(a*=256);)o+=this[e+n]*a;return o},t.prototype.readUIntBE=function(e,t,r){e>>>=0,t>>>=0,r||O(e,t,this.length);for(var o=this[e+--t],a=1;0<t&&(a*=256);)o+=this[e+--t]*a;return o},t.prototype.readUInt8=function(e,t){return e>>>=0,t||O(e,1,this.length),this[e]},t.prototype.readUInt16LE=function(e,t){return e>>>=0,t||O(e,2,this.length),this[e]|this[e+1]<<8},t.prototype.readUInt16BE=function(e,t){return e>>>=0,t||O(e,2,this.length),this[e]<<8|this[e+1]},t.prototype.readUInt32LE=function(e,t){return e>>>=0,t||O(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},t.prototype.readUInt32BE=function(e,t){return e>>>=0,t||O(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},t.prototype.readIntLE=function(e,t,r){e>>>=0,t>>>=0,r||O(e,t,this.length);for(var o=this[e],a=1,n=0;++n<t&&(a*=256);)o+=this[e+n]*a;return a*=128,o>=a&&(o-=_Mathpow(2,8*t)),o},t.prototype.readIntBE=function(e,t,r){e>>>=0,t>>>=0,r||O(e,t,this.length);for(var o=t,a=1,n=this[e+--o];0<o&&(a*=256);)n+=this[e+--o]*a;return a*=128,n>=a&&(n-=_Mathpow(2,8*t)),n},t.prototype.readInt8=function(e,t){return e>>>=0,t||O(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},t.prototype.readInt16LE=function(e,t){e>>>=0,t||O(e,2,this.length);var r=this[e]|this[e+1]<<8;return 32768&r?4294901760|r:r},t.prototype.readInt16BE=function(e,t){e>>>=0,t||O(e,2,this.length);var r=this[e+1]|this[e]<<8;return 32768&r?4294901760|r:r},t.prototype.readInt32LE=function(e,t){return e>>>=0,t||O(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},t.prototype.readInt32BE=function(e,t){return e>>>=0,t||O(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},t.prototype.readFloatLE=function(e,t){return e>>>=0,t||O(e,4,this.length),J.read(this,e,!0,23,4)},t.prototype.readFloatBE=function(e,t){return e>>>=0,t||O(e,4,this.length),J.read(this,e,!1,23,4)},t.prototype.readDoubleLE=function(e,t){return e>>>=0,t||O(e,8,this.length),J.read(this,e,!0,52,8)},t.prototype.readDoubleBE=function(e,t){return e>>>=0,t||O(e,8,this.length),J.read(this,e,!1,52,8)},t.prototype.writeUIntLE=function(e,t,r,o){if(e=+e,t>>>=0,r>>>=0,!o){var a=_Mathpow(2,8*r)-1;L(this,e,t,r,a,0)}var n=1,s=0;for(this[t]=255&e;++s<r&&(n*=256);)this[t+s]=255&e/n;return t+r},t.prototype.writeUIntBE=function(e,t,r,o){if(e=+e,t>>>=0,r>>>=0,!o){var a=_Mathpow(2,8*r)-1;L(this,e,t,r,a,0)}var n=r-1,s=1;for(this[t+n]=255&e;0<=--n&&(s*=256);)this[t+n]=255&e/s;return t+r},t.prototype.writeUInt8=function(e,t,r){return e=+e,t>>>=0,r||L(this,e,t,1,255,0),this[t]=255&e,t+1},t.prototype.writeUInt16LE=function(e,t,r){return e=+e,t>>>=0,r||L(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},t.prototype.writeUInt16BE=function(e,t,r){return e=+e,t>>>=0,r||L(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},t.prototype.writeUInt32LE=function(e,t,r){return e=+e,t>>>=0,r||L(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},t.prototype.writeUInt32BE=function(e,t,r){return e=+e,t>>>=0,r||L(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},t.prototype.writeIntLE=function(e,t,r,o){if(e=+e,t>>>=0,!o){var a=_Mathpow(2,8*r-1);L(this,e,t,r,a-1,-a)}var n=0,s=1,l=0;for(this[t]=255&e;++n<r&&(s*=256);)0>e&&0===l&&0!==this[t+n-1]&&(l=1),this[t+n]=255&(e/s>>0)-l;return t+r},t.prototype.writeIntBE=function(e,t,r,o){if(e=+e,t>>>=0,!o){var a=_Mathpow(2,8*r-1);L(this,e,t,r,a-1,-a)}var n=r-1,s=1,l=0;for(this[t+n]=255&e;0<=--n&&(s*=256);)0>e&&0===l&&0!==this[t+n+1]&&(l=1),this[t+n]=255&(e/s>>0)-l;return t+r},t.prototype.writeInt8=function(e,t,r){return e=+e,t>>>=0,r||L(this,e,t,1,127,-128),0>e&&(e=255+e+1),this[t]=255&e,t+1},t.prototype.writeInt16LE=function(e,t,r){return e=+e,t>>>=0,r||L(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},t.prototype.writeInt16BE=function(e,t,r){return e=+e,t>>>=0,r||L(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},t.prototype.writeInt32LE=function(e,t,r){return e=+e,t>>>=0,r||L(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},t.prototype.writeInt32BE=function(e,t,r){return e=+e,t>>>=0,r||L(this,e,t,4,2147483647,-2147483648),0>e&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},t.prototype.writeFloatLE=function(e,t,r){return N(this,e,t,!0,r)},t.prototype.writeFloatBE=function(e,t,r){return N(this,e,t,!1,r)},t.prototype.writeDoubleLE=function(e,t,r){return z(this,e,t,!0,r)},t.prototype.writeDoubleBE=function(e,t,r){return z(this,e,t,!1,r)},t.prototype.copy=function(e,r,o,a){if(!t.isBuffer(e))throw new TypeError("argument should be a Buffer");if(o||(o=0),a||0===a||(a=this.length),r>=e.length&&(r=e.length),r||(r=0),0<a&&a<o&&(a=o),a===o)return 0;if(0===e.length||0===this.length)return 0;if(0>r)throw new RangeError("targetStart out of bounds");if(0>o||o>=this.length)throw new RangeError("Index out of range");if(0>a)throw new RangeError("sourceEnd out of bounds");a>this.length&&(a=this.length),e.length-r<a-o&&(a=e.length-r+o);var n=a-o;if(this===e&&"function"==typeof Uint8Array.prototype.copyWithin)this.copyWithin(r,o,a);else if(this===e&&o<r&&r<a)for(var s=n-1;0<=s;--s)e[s+r]=this[s+o];else Uint8Array.prototype.set.call(e,this.subarray(o,a),r);return n},t.prototype.fill=function(e,r,o,a){if("string"==typeof e){if("string"==typeof r?(a=r,r=0,o=this.length):"string"==typeof o&&(a=o,o=this.length),void 0!==a&&"string"!=typeof a)throw new TypeError("encoding must be a string");if("string"==typeof a&&!t.isEncoding(a))throw new TypeError("Unknown encoding: "+a);if(1===e.length){var n=e.charCodeAt(0);("utf8"===a&&128>n||"latin1"===a)&&(e=n)}}else"number"==typeof e&&(e&=255);if(0>r||this.length<r||this.length<o)throw new RangeError("Out of range index");if(o<=r)return this;r>>>=0,o=o===void 0?this.length:o>>>0,e||(e=0);var s;if("number"==typeof e)for(s=r;s<o;++s)this[s]=e;else{var l=t.isBuffer(e)?e:t.from(e,a),d=l.length;if(0===d)throw new TypeError("The value \""+e+"\" is invalid for argument \"value\"");for(s=0;s<o-r;++s)this[s+r]=l[s%d]}return this};var X=/[^+/0-9A-Za-z-_]/g}).call(this,e("buffer").Buffer)},{"base64-js":11,buffer:13,ieee754:24}],14:[function(e,t,r){(function(e){function t(e){return Object.prototype.toString.call(e)}r.isArray=function(e){return Array.isArray?Array.isArray(e):"[object Array]"===t(e)},r.isBoolean=function(e){return"boolean"==typeof e},r.isNull=function(e){return null===e},r.isNullOrUndefined=function(e){return null==e},r.isNumber=function(e){return"number"==typeof e},r.isString=function(e){return"string"==typeof e},r.isSymbol=function(e){return"symbol"==typeof e},r.isUndefined=function(e){return void 0===e},r.isRegExp=function(e){return"[object RegExp]"===t(e)},r.isObject=function(e){return"object"==typeof e&&null!==e},r.isDate=function(e){return"[object Date]"===t(e)},r.isError=function(r){return"[object Error]"===t(r)||r instanceof Error},r.isFunction=function(e){return"function"==typeof e},r.isPrimitive=function(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||"undefined"==typeof e},r.isBuffer=e.isBuffer}).call(this,{isBuffer:e("../../is-buffer/index.js")})},{"../../is-buffer/index.js":27}],15:[function(e,t,r){'use strict';var o=e("object-keys"),a="function"==typeof Symbol&&"symbol"==typeof Symbol("foo"),n=Object.prototype.toString,s=Array.prototype.concat,i=Object.defineProperty,l=function(e){return"function"==typeof e&&"[object Function]"===n.call(e)},d=i&&function(){var e={};try{for(var t in i(e,"x",{enumerable:!1,value:e}),e)return!1;return e.x===e}catch(t){return!1}}(),p=function(e,t,r,o){(!(t in e)||l(o)&&o())&&(d?i(e,t,{configurable:!0,enumerable:!1,value:r,writable:!0}):e[t]=r)},u=function(e,t){var r=2<arguments.length?arguments[2]:{},n=o(t);a&&(n=s.call(n,Object.getOwnPropertySymbols(t)));for(var l=0;l<n.length;l+=1)p(e,n[l],t[n[l]],r[n[l]])};u.supportsDescriptors=!!d,t.exports=u},{"object-keys":58}],16:[function(e,t,r){'use strict';function o(e,t){if(e===void 0||null===e)throw new TypeError("Cannot convert first argument to object");for(var r=Object(e),o=1,a;o<arguments.length;o++)if(a=arguments[o],void 0!==a&&null!==a)for(var n=Object.keys(Object(a)),s=0,l=n.length;void 0>s;s++){var d=n[s],p=Object.getOwnPropertyDescriptor(a,d);void 0!==p&&p.enumerable&&(r[d]=a[d])}return r}t.exports={assign:o,polyfill:function(){Object.assign||Object.defineProperty(Object,"assign",{enumerable:!1,configurable:!0,writable:!0,value:o})}}},{}],17:[function(e,t,r){function a(){this._events&&Object.prototype.hasOwnProperty.call(this,"_events")||(this._events=S(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0}function n(e){return void 0===e._maxListeners?a.defaultMaxListeners:e._maxListeners}function s(e,t,r){if(t)e.call(r);else for(var o=e.length,a=x(e,o),n=0;n<o;++n)a[n].call(r)}function l(e,t,r,o){if(t)e.call(r,o);else for(var a=e.length,n=x(e,a),s=0;s<a;++s)n[s].call(r,o)}function d(e,t,r,o,a){if(t)e.call(r,o,a);else for(var n=e.length,s=x(e,n),l=0;l<n;++l)s[l].call(r,o,a)}function p(e,t,r,o,a,n){if(t)e.call(r,o,a,n);else for(var s=e.length,l=x(e,s),d=0;d<s;++d)l[d].call(r,o,a,n)}function u(e,t,r,o){if(t)e.apply(r,o);else for(var a=e.length,n=x(e,a),s=0;s<a;++s)n[s].apply(r,o)}function g(e,t,r,o){var a,s,i;if("function"!=typeof r)throw new TypeError("\"listener\" argument must be a function");if(s=e._events,s?(s.newListener&&(e.emit("newListener",t,r.listener?r.listener:r),s=e._events),i=s[t]):(s=e._events=S(null),e._eventsCount=0),!i)i=s[t]=r,++e._eventsCount;else if("function"==typeof i?i=s[t]=o?[r,i]:[i,r]:o?i.unshift(r):i.push(r),!i.warned&&(a=n(e),a&&0<a&&i.length>a)){i.warned=!0;var l=new Error("Possible EventEmitter memory leak detected. "+i.length+" \""+(t+"\" listeners added. Use emitter.setMaxListeners() to increase limit."));l.name="MaxListenersExceededWarning",l.emitter=e,l.type=t,l.count=i.length,"object"==typeof console&&console.warn&&console.warn("%s: %s",l.name,l.message)}return e}function y(){if(!this.fired)switch(this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length){case 0:return this.listener.call(this.target);case 1:return this.listener.call(this.target,arguments[0]);case 2:return this.listener.call(this.target,arguments[0],arguments[1]);case 3:return this.listener.call(this.target,arguments[0],arguments[1],arguments[2]);default:for(var e=Array(arguments.length),t=0;t<e.length;++t)e[t]=arguments[t];this.listener.apply(this.target,e);}}function h(e,t,r){var o={fired:!1,wrapFn:void 0,target:e,type:t,listener:r},a=v.call(y,o);return a.listener=r,o.wrapFn=a,a}function f(e,t,r){var o=e._events;if(!o)return[];var a=o[t];return a?"function"==typeof a?r?[a.listener||a]:[a]:r?k(a):x(a,a.length):[]}function m(e){var t=this._events;if(t){var r=t[e];if("function"==typeof r)return 1;if(r)return r.length}return 0}function A(e,t){for(var r=t,o=r+1,a=e.length;o<a;r+=1,o+=1)e[r]=e[o];e.pop()}function x(e,t){for(var r=Array(t),o=0;o<t;++o)r[o]=e[o];return r}function k(e){for(var t=Array(e.length),r=0;r<t.length;++r)t[r]=e[r].listener||e[r];return t}var S=Object.create||function(e){var t=function(){};return t.prototype=e,new t},w=Object.keys||function(e){var t=[];for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.push(r);return r},v=Function.prototype.bind||function(e){var t=this;return function(){return t.apply(e,arguments)}};t.exports=a,a.EventEmitter=a,a.prototype._events=void 0,a.prototype._maxListeners=void 0;var T=10,E;try{var B={};Object.defineProperty&&Object.defineProperty(B,"x",{value:0}),E=0===B.x}catch(e){E=!1}E?Object.defineProperty(a,"defaultMaxListeners",{enumerable:!0,get:function(){return T},set:function(e){if("number"!=typeof e||0>e||e!==e)throw new TypeError("\"defaultMaxListeners\" must be a positive number");T=e}}):a.defaultMaxListeners=T,a.prototype.setMaxListeners=function(e){if("number"!=typeof e||0>e||isNaN(e))throw new TypeError("\"n\" argument must be a positive number");return this._maxListeners=e,this},a.prototype.getMaxListeners=function(){return n(this)},a.prototype.emit=function(e){var t="error"===e,r,o,a,n,g,y;if(y=this._events,y)t=t&&null==y.error;else if(!t)return!1;if(t){if(1<arguments.length&&(r=arguments[1]),r instanceof Error)throw r;else{var h=new Error("Unhandled \"error\" event. ("+r+")");throw h.context=r,h}return!1}if(o=y[e],!o)return!1;var f="function"==typeof o;switch(a=arguments.length,a){case 1:s(o,f,this);break;case 2:l(o,f,this,arguments[1]);break;case 3:d(o,f,this,arguments[1],arguments[2]);break;case 4:p(o,f,this,arguments[1],arguments[2],arguments[3]);break;default:for(n=Array(a-1),g=1;g<a;g++)n[g-1]=arguments[g];u(o,f,this,n);}return!0},a.prototype.addListener=function(e,t){return g(this,e,t,!1)},a.prototype.on=a.prototype.addListener,a.prototype.prependListener=function(e,t){return g(this,e,t,!0)},a.prototype.once=function(e,t){if("function"!=typeof t)throw new TypeError("\"listener\" argument must be a function");return this.on(e,h(this,e,t)),this},a.prototype.prependOnceListener=function(e,t){if("function"!=typeof t)throw new TypeError("\"listener\" argument must be a function");return this.prependListener(e,h(this,e,t)),this},a.prototype.removeListener=function(e,t){var r,o,a,n,s;if("function"!=typeof t)throw new TypeError("\"listener\" argument must be a function");if(o=this._events,!o)return this;if(r=o[e],!r)return this;if(r===t||r.listener===t)0==--this._eventsCount?this._events=S(null):(delete o[e],o.removeListener&&this.emit("removeListener",e,r.listener||t));else if("function"!=typeof r){for(a=-1,n=r.length-1;0<=n;n--)if(r[n]===t||r[n].listener===t){s=r[n].listener,a=n;break}if(0>a)return this;0===a?r.shift():A(r,a),1===r.length&&(o[e]=r[0]),o.removeListener&&this.emit("removeListener",e,s||t)}return this},a.prototype.removeAllListeners=function(e){var t,r,o;if(r=this._events,!r)return this;if(!r.removeListener)return 0===arguments.length?(this._events=S(null),this._eventsCount=0):r[e]&&(0==--this._eventsCount?this._events=S(null):delete r[e]),this;if(0===arguments.length){var a=w(r),n;for(o=0;o<a.length;++o)n=a[o],"removeListener"===n||this.removeAllListeners(n);return this.removeAllListeners("removeListener"),this._events=S(null),this._eventsCount=0,this}if(t=r[e],"function"==typeof t)this.removeListener(e,t);else if(t)for(o=t.length-1;0<=o;o--)this.removeListener(e,t[o]);return this},a.prototype.listeners=function(e){return f(this,e,!0)},a.prototype.rawListeners=function(e){return f(this,e,!1)},a.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):m.call(e,t)},a.prototype.listenerCount=m,a.prototype.eventNames=function(){return 0<this._eventsCount?Reflect.ownKeys(this._events):[]}},{}],18:[function(e,t,r){function o(e,t,r){a(e,"",[],void 0);var o;for(o=0===u.length?JSON.stringify(e,t,r):JSON.stringify(e,d(t),r);0!==p.length;){var n=p.pop();4===n.length?Object.defineProperty(n[0],n[1],n[3]):n[0][n[1]]=n[2]}return o}function a(e,t,r,o){var n;if("object"==typeof e&&null!==e){for(n=0;n<r.length;n++)if(r[n]===e){var s=Object.getOwnPropertyDescriptor(o,t);return void(void 0===s.get?(o[t]="[Circular]",p.push([o,t,e])):s.configurable?(Object.defineProperty(o,t,{value:"[Circular]"}),p.push([o,t,e,s])):u.push([e,t]))}if(r.push(e),Array.isArray(e))for(n=0;n<e.length;n++)a(e[n],n,r,e);else{var l=Object.keys(e);for(n=0;n<l.length;n++){var d=l[n];a(e[d],d,r,e)}}r.pop()}}function n(e,t){return e<t?-1:e>t?1:0}function s(e,t,r){var o=l(e,"",[],void 0)||e,a;for(a=0===u.length?JSON.stringify(o,t,r):JSON.stringify(o,d(t),r);0!==p.length;){var n=p.pop();4===n.length?Object.defineProperty(n[0],n[1],n[3]):n[0][n[1]]=n[2]}return a}function l(e,t,r,o){var a;if("object"==typeof e&&null!==e){for(a=0;a<r.length;a++)if(r[a]===e){var s=Object.getOwnPropertyDescriptor(o,t);return void(void 0===s.get?(o[t]="[Circular]",p.push([o,t,e])):s.configurable?(Object.defineProperty(o,t,{value:"[Circular]"}),p.push([o,t,e,s])):u.push([e,t]))}if("function"==typeof e.toJSON)return;if(r.push(e),Array.isArray(e))for(a=0;a<e.length;a++)l(e[a],a,r,e);else{var d={},g=Object.keys(e).sort(n);for(a=0;a<g.length;a++){var y=g[a];l(e[y],y,r,e),d[y]=e[y]}if(void 0!==o)p.push([o,t,e]),o[t]=d;else return d}r.pop()}}function d(e){return e=void 0===e?function(e,t){return t}:e,function(t,r){if(0<u.length)for(var o=0,a;o<u.length;o++)if(a=u[o],a[1]===t&&a[0]===r){r="[Circular]",u.splice(o,1);break}return e.call(this,t,r)}}t.exports=o,o.default=o,o.stable=s,o.stableStringify=s;var p=[],u=[]},{}],19:[function(e,t,r){var o=Object.prototype.hasOwnProperty,a=Object.prototype.toString;t.exports=function(e,t,r){if("[object Function]"!==a.call(t))throw new TypeError("iterator must be a function");var n=e.length;if(n===+n)for(var s=0;s<n;s++)t.call(r,e[s],s,e);else for(var l in e)o.call(e,l)&&t.call(r,e[l],l,e)}},{}],20:[function(e,t,r){'use strict';var o=Array.prototype.slice,a=Object.prototype.toString;t.exports=function(e){var t=this;if("function"!=typeof t||a.call(t)!=="[object Function]")throw new TypeError("Function.prototype.bind called on incompatible "+t);for(var r=o.call(arguments,1),n=function(){if(this instanceof p){var a=t.apply(this,r.concat(o.call(arguments)));return Object(a)===a?a:this}return t.apply(e,r.concat(o.call(arguments)))},s=_Mathmax(0,t.length-r.length),l=[],d=0,p;d<s;d++)l.push("$"+d);if(p=Function("binder","return function ("+l.join(",")+"){ return binder.apply(this,arguments); }")(n),t.prototype){var u=function(){};u.prototype=t.prototype,p.prototype=new u,u.prototype=null}return p}},{}],21:[function(e,t,r){'use strict';var o=e("./implementation");t.exports=Function.prototype.bind||o},{"./implementation":20}],22:[function(e,t,r){'use strict';var o=e("function-bind");t.exports=o.call(Function.call,Object.prototype.hasOwnProperty)},{"function-bind":21}],23:[function(e,t,r){(function(e,r){(function(){'use strict';var o="object"==typeof window?window:{},a=!o.HI_BASE32_NO_NODE_JS&&"object"==typeof e&&e.versions&&e.versions.node;a&&(o=r);var n=!o.HI_BASE32_NO_COMMON_JS&&"object"==typeof t&&t.exports,s="function"==typeof define&&define.amd,l=["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","2","3","4","5","6","7"],d={A:0,B:1,C:2,D:3,E:4,F:5,G:6,H:7,I:8,J:9,K:10,L:11,M:12,N:13,O:14,P:15,Q:16,R:17,S:18,T:19,U:20,V:21,W:22,X:23,Y:24,Z:25,2:26,3:27,4:28,5:29,6:30,7:31},p=[0,0,0,0,0,0,0,0],u=function(e,t){10<t.length&&(t="..."+t.substr(-10));var r=new Error("Decoded data is not valid UTF-8. Maybe try base32.decode.asBytes()? Partial data after reading "+e+" bytes: "+t+" <-");throw r.position=e,r},g=function(e){for(var t="",r=e.length,o=0,a=0,n,s;o<r;){if(n=e[o++],127>=n){t+=_StringfromCharCode(n);continue}else 191<n&&223>=n?(s=31&n,a=1):239>=n?(s=15&n,a=2):247>=n?(s=7&n,a=3):u(o,t);for(var l=0;l<a;++l)n=e[o++],(128>n||191<n)&&u(o,t),s<<=6,s+=63&n;55296<=s&&57343>=s&&u(o,t),1114111<s&&u(o,t),65535>=s?t+=_StringfromCharCode(s):(s-=65536,t+=_StringfromCharCode((s>>10)+55296),t+=_StringfromCharCode((1023&s)+56320))}return t},y=function(e){if(!/^[A-Z2-7=]+$/.test(e))throw new Error("Invalid base32 characters");e=e.replace(/=/g,"");for(var t=[],r=0,o=e.length,a=0,n=o>>3<<3,s,l,p,u,g,y,h,f;a<n;)s=d[e.charAt(a++)],l=d[e.charAt(a++)],p=d[e.charAt(a++)],u=d[e.charAt(a++)],g=d[e.charAt(a++)],y=d[e.charAt(a++)],h=d[e.charAt(a++)],f=d[e.charAt(a++)],t[r++]=255&(s<<3|l>>>2),t[r++]=255&(l<<6|p<<1|u>>>4),t[r++]=255&(u<<4|g>>>1),t[r++]=255&(g<<7|y<<2|h>>>3),t[r++]=255&(h<<5|f);var m=o-n;return 2==m?(s=d[e.charAt(a++)],l=d[e.charAt(a++)],t[r++]=255&(s<<3|l>>>2)):4===m?(s=d[e.charAt(a++)],l=d[e.charAt(a++)],p=d[e.charAt(a++)],u=d[e.charAt(a++)],t[r++]=255&(s<<3|l>>>2),t[r++]=255&(l<<6|p<<1|u>>>4)):5===m?(s=d[e.charAt(a++)],l=d[e.charAt(a++)],p=d[e.charAt(a++)],u=d[e.charAt(a++)],g=d[e.charAt(a++)],t[r++]=255&(s<<3|l>>>2),t[r++]=255&(l<<6|p<<1|u>>>4),t[r++]=255&(u<<4|g>>>1)):7===m&&(s=d[e.charAt(a++)],l=d[e.charAt(a++)],p=d[e.charAt(a++)],u=d[e.charAt(a++)],g=d[e.charAt(a++)],y=d[e.charAt(a++)],h=d[e.charAt(a++)],t[r++]=255&(s<<3|l>>>2),t[r++]=255&(l<<6|p<<1|u>>>4),t[r++]=255&(u<<4|g>>>1),t[r++]=255&(g<<7|y<<2|h>>>3)),t},h=function(e){for(var t="",r=e.length,o=0,a=5*parseInt(r/5),n,s,d,p,u;o<a;)n=e.charCodeAt(o++),s=e.charCodeAt(o++),d=e.charCodeAt(o++),p=e.charCodeAt(o++),u=e.charCodeAt(o++),t+=l[n>>>3]+l[31&(n<<2|s>>>6)]+l[31&s>>>1]+l[31&(s<<4|d>>>4)]+l[31&(d<<1|p>>>7)]+l[31&p>>>2]+l[31&(p<<3|u>>>5)]+l[31&u];var g=r-a;return 1==g?(n=e.charCodeAt(o),t+=l[n>>>3]+l[31&n<<2]+"======"):2===g?(n=e.charCodeAt(o++),s=e.charCodeAt(o),t+=l[n>>>3]+l[31&(n<<2|s>>>6)]+l[31&s>>>1]+l[31&s<<4]+"===="):3===g?(n=e.charCodeAt(o++),s=e.charCodeAt(o++),d=e.charCodeAt(o),t+=l[n>>>3]+l[31&(n<<2|s>>>6)]+l[31&s>>>1]+l[31&(s<<4|d>>>4)]+l[31&d<<1]+"==="):4===g&&(n=e.charCodeAt(o++),s=e.charCodeAt(o++),d=e.charCodeAt(o++),p=e.charCodeAt(o),t+=l[n>>>3]+l[31&(n<<2|s>>>6)]+l[31&s>>>1]+l[31&(s<<4|d>>>4)]+l[31&(d<<1|p>>>7)]+l[31&p>>>2]+l[31&p<<3]+"="),t},f=function(e){var t=!1,r="",o=0,a=0,n=0,s=e.length,d,u,g,y,h,f,m;do{for(p[0]=p[5],p[1]=p[6],p[2]=p[7],m=a;o<s&&5>m;++o)f=e.charCodeAt(o),128>f?p[m++]=f:2048>f?(p[m++]=192|f>>6,p[m++]=128|63&f):55296>f||57344<=f?(p[m++]=224|f>>12,p[m++]=128|63&f>>6,p[m++]=128|63&f):(f=65536+((1023&f)<<10|1023&e.charCodeAt(++o)),p[m++]=240|f>>18,p[m++]=128|63&f>>12,p[m++]=128|63&f>>6,p[m++]=128|63&f);n+=m-a,a=m-5,o===s&&++o,o>s&&6>m&&(t=!0),d=p[0],4<m?(u=p[1],g=p[2],y=p[3],h=p[4],r+=l[d>>>3]+l[31&(d<<2|u>>>6)]+l[31&u>>>1]+l[31&(u<<4|g>>>4)]+l[31&(g<<1|y>>>7)]+l[31&y>>>2]+l[31&(y<<3|h>>>5)]+l[31&h]):1===m?r+=l[d>>>3]+l[31&d<<2]+"======":2===m?(u=p[1],r+=l[d>>>3]+l[31&(d<<2|u>>>6)]+l[31&u>>>1]+l[31&u<<4]+"===="):3===m?(u=p[1],g=p[2],r+=l[d>>>3]+l[31&(d<<2|u>>>6)]+l[31&u>>>1]+l[31&(u<<4|g>>>4)]+l[31&g<<1]+"==="):(u=p[1],g=p[2],y=p[3],r+=l[d>>>3]+l[31&(d<<2|u>>>6)]+l[31&u>>>1]+l[31&(u<<4|g>>>4)]+l[31&(g<<1|y>>>7)]+l[31&y>>>2]+l[31&y<<3]+"=")}while(!t);return r},m=function(e){for(var t="",r=e.length,o=0,a=5*parseInt(r/5),n,s,d,p,u;o<a;)n=e[o++],s=e[o++],d=e[o++],p=e[o++],u=e[o++],t+=l[n>>>3]+l[31&(n<<2|s>>>6)]+l[31&s>>>1]+l[31&(s<<4|d>>>4)]+l[31&(d<<1|p>>>7)]+l[31&p>>>2]+l[31&(p<<3|u>>>5)]+l[31&u];var g=r-a;return 1==g?(n=e[o],t+=l[n>>>3]+l[31&n<<2]+"======"):2===g?(n=e[o++],s=e[o],t+=l[n>>>3]+l[31&(n<<2|s>>>6)]+l[31&s>>>1]+l[31&s<<4]+"===="):3===g?(n=e[o++],s=e[o++],d=e[o],t+=l[n>>>3]+l[31&(n<<2|s>>>6)]+l[31&s>>>1]+l[31&(s<<4|d>>>4)]+l[31&d<<1]+"==="):4===g&&(n=e[o++],s=e[o++],d=e[o++],p=e[o],t+=l[n>>>3]+l[31&(n<<2|s>>>6)]+l[31&s>>>1]+l[31&(s<<4|d>>>4)]+l[31&(d<<1|p>>>7)]+l[31&p>>>2]+l[31&p<<3]+"="),t},A=function(e,t){if(!t)return g(y(e));if(!/^[A-Z2-7=]+$/.test(e))throw new Error("Invalid base32 characters");var r="",o=e.indexOf("="),a,n,s,l,p,u,h,f;-1===o&&(o=e.length);for(var m=0,A=o>>3<<3;m<A;)a=d[e.charAt(m++)],n=d[e.charAt(m++)],s=d[e.charAt(m++)],l=d[e.charAt(m++)],p=d[e.charAt(m++)],u=d[e.charAt(m++)],h=d[e.charAt(m++)],f=d[e.charAt(m++)],r+=_StringfromCharCode(255&(a<<3|n>>>2))+_StringfromCharCode(255&(n<<6|s<<1|l>>>4))+_StringfromCharCode(255&(l<<4|p>>>1))+_StringfromCharCode(255&(p<<7|u<<2|h>>>3))+_StringfromCharCode(255&(h<<5|f));var x=o-A;return 2==x?(a=d[e.charAt(m++)],n=d[e.charAt(m++)],r+=_StringfromCharCode(255&(a<<3|n>>>2))):4===x?(a=d[e.charAt(m++)],n=d[e.charAt(m++)],s=d[e.charAt(m++)],l=d[e.charAt(m++)],r+=_StringfromCharCode(255&(a<<3|n>>>2))+_StringfromCharCode(255&(n<<6|s<<1|l>>>4))):5===x?(a=d[e.charAt(m++)],n=d[e.charAt(m++)],s=d[e.charAt(m++)],l=d[e.charAt(m++)],p=d[e.charAt(m++)],r+=_StringfromCharCode(255&(a<<3|n>>>2))+_StringfromCharCode(255&(n<<6|s<<1|l>>>4))+_StringfromCharCode(255&(l<<4|p>>>1))):7===x&&(a=d[e.charAt(m++)],n=d[e.charAt(m++)],s=d[e.charAt(m++)],l=d[e.charAt(m++)],p=d[e.charAt(m++)],u=d[e.charAt(m++)],h=d[e.charAt(m++)],r+=_StringfromCharCode(255&(a<<3|n>>>2))+_StringfromCharCode(255&(n<<6|s<<1|l>>>4))+_StringfromCharCode(255&(l<<4|p>>>1))+_StringfromCharCode(255&(p<<7|u<<2|h>>>3))),r},x={encode:function(e,t){var r="string"!=typeof e;return r&&e.constructor===ArrayBuffer&&(e=new Uint8Array(e)),r?m(e):t?h(e):f(e)},decode:A};A.asBytes=y,n?t.exports=x:(o.base32=x,s&&define(function(){return x}))})()}).call(this,e("_process"),"undefined"==typeof global?"undefined"==typeof self?"undefined"==typeof window?{}:window:self:global)},{_process:61}],24:[function(e,t,r){r.read=function(t,r,o,a,n){var l=8*n-a-1,p=(1<<l)-1,u=p>>1,g=-7,y=o?n-1:0,h=o?-1:1,d=t[r+y],f,A;for(y+=h,f=d&(1<<-g)-1,d>>=-g,g+=l;0<g;f=256*f+t[r+y],y+=h,g-=8);for(A=f&(1<<-g)-1,f>>=-g,g+=a;0<g;A=256*A+t[r+y],y+=h,g-=8);if(0===f)f=1-u;else{if(f===p)return A?NaN:(d?-1:1)*(1/0);A+=_Mathpow(2,a),f-=u}return(d?-1:1)*A*_Mathpow(2,f-a)},r.write=function(t,r,o,a,n,l){var p=Math.LN2,u=8*l-n-1,g=(1<<u)-1,y=g>>1,h=23===n?_Mathpow(2,-24)-_Mathpow(2,-77):0,f=a?0:l-1,A=a?1:-1,d=0>r||0===r&&0>1/r?1:0,s,x,k;for(r=_Mathabs(r),isNaN(r)||r===1/0?(x=isNaN(r)?1:0,s=g):(s=_Mathfloor(_Mathlog(r)/p),1>r*(k=_Mathpow(2,-s))&&(s--,k*=2),r+=1<=s+y?h/k:h*_Mathpow(2,1-y),2<=r*k&&(s++,k/=2),s+y>=g?(x=0,s=g):1<=s+y?(x=(r*k-1)*_Mathpow(2,n),s+=y):(x=r*_Mathpow(2,y-1)*_Mathpow(2,n),s=0));8<=n;t[o+f]=255&x,f+=A,x/=256,n-=8);for(s=s<<n|x,u+=n;0<u;t[o+f]=255&s,f+=A,s/=256,u-=8);t[o+f-A]|=128*d}},{}],25:[function(e,t,r){t.exports="function"==typeof Object.create?function(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}:function(e,t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}},{}],26:[function(e,t,r){'use strict';var o="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag,a=Object.prototype.toString,n=function(e){return!(o&&e&&"object"==typeof e&&Symbol.toStringTag in e)&&"[object Arguments]"===a.call(e)},s=function(e){return!!n(e)||null!==e&&"object"==typeof e&&"number"==typeof e.length&&0<=e.length&&"[object Array]"!==a.call(e)&&"[object Function]"===a.call(e.callee)},i=function(){return n(arguments)}();n.isLegacyArguments=s,t.exports=i?n:s},{}],27:[function(e,t,r){function o(e){return!!e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}function a(e){return"function"==typeof e.readFloatLE&&"function"==typeof e.slice&&o(e.slice(0,0))}t.exports=function(e){return null!=e&&(o(e)||a(e)||!!e._isBuffer)}},{}],28:[function(e,t,r){'use strict';var o=Object.prototype.toString,a=Function.prototype.toString,n=/^\s*(?:function)?\*/,s="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag,i=Object.getPrototypeOf,l=function(){if(!s)return!1;try{return Function("return function*() {}")()}catch(t){}}(),d=l?i(l):{};t.exports=function(e){if("function"!=typeof e)return!1;if(n.test(a.call(e)))return!0;if(!s){var t=o.call(e);return"[object GeneratorFunction]"===t}return i(e)===d}},{}],29:[function(e,t,r){'use strict';t.exports=function(e){return e!==e}},{}],30:[function(e,t,r){'use strict';var o=e("define-properties"),a=e("./implementation"),n=e("./polyfill"),s=e("./shim"),i=n();o(i,{getPolyfill:n,implementation:a,shim:s}),t.exports=i},{"./implementation":29,"./polyfill":31,"./shim":32,"define-properties":15}],31:[function(e,t,r){'use strict';var o=e("./implementation");t.exports=function(){return _NumberisNaN&&_NumberisNaN(NaN)&&!_NumberisNaN("a")?_NumberisNaN:o}},{"./implementation":29}],32:[function(e,t,r){'use strict';var o=e("define-properties"),a=e("./polyfill");t.exports=function(){var e=a();return o(Number,{isNaN:e},{isNaN:function(){return _NumberisNaN!==e}}),e}},{"./polyfill":31,"define-properties":15}],33:[function(e,t,r){(function(r){'use strict';var o=e("foreach"),a=e("available-typed-arrays"),n=e("es-abstract/helpers/callBound"),s=n("Object.prototype.toString"),i=e("has-symbols")(),l=i&&"symbol"==typeof Symbol.toStringTag,d=a(),p=n("Array.prototype.indexOf",!0)||function(e,t){for(var r=0;r<e.length;r+=1)if(e[r]===t)return r;return-1},u=n("String.prototype.slice"),g={},y=e("es-abstract/helpers/getOwnPropertyDescriptor"),h=Object.getPrototypeOf;l&&y&&h&&o(d,function(e){var t=new r[e];if(!(Symbol.toStringTag in t))throw new EvalError("this engine has support for Symbol.toStringTag, but "+e+" does not have the property! Please report this.");var o=h(t),a=y(o,Symbol.toStringTag);if(!a){var n=h(o);a=y(n,Symbol.toStringTag)}g[e]=a.get});var f=function(e){var t=!1;return o(g,function(r,o){if(!t)try{t=r.call(e)===o}catch(t){}}),t};t.exports=function(e){if(!e||"object"!=typeof e)return!1;if(!l){var t=u(s(e),8,-1);return-1<p(d,t)}return!!y&&f(e)}}).call(this,"undefined"==typeof global?"undefined"==typeof self?"undefined"==typeof window?{}:window:self:global)},{"available-typed-arrays":9,"es-abstract/helpers/callBound":36,"es-abstract/helpers/getOwnPropertyDescriptor":37,foreach:19,"has-symbols":38}],34:[function(e,t,r){'use strict';var o=TypeError,a=Object.getOwnPropertyDescriptor;if(a)try{a({},"")}catch(t){a=null}var n=function(){throw new o},s=a?function(){try{return arguments.callee,n}catch(e){try{return a(arguments,"callee").get}catch(e){return n}}}():n,i=e("has-symbols")(),l=Object.getPrototypeOf||function(e){return e.__proto__},d=w?l(w):void 0,p=v?v.constructor:void 0,u=T?l(T):void 0,g=T?T():void 0,y="undefined"==typeof Uint8Array?void 0:l(Uint8Array),h={"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?void 0:ArrayBuffer,"%ArrayBufferPrototype%":"undefined"==typeof ArrayBuffer?void 0:ArrayBuffer.prototype,"%ArrayIteratorPrototype%":i?l([][Symbol.iterator]()):void 0,"%ArrayPrototype%":Array.prototype,"%ArrayProto_entries%":Array.prototype.entries,"%ArrayProto_forEach%":Array.prototype.forEach,"%ArrayProto_keys%":Array.prototype.keys,"%ArrayProto_values%":Array.prototype.values,"%AsyncFromSyncIteratorPrototype%":void 0,"%AsyncFunction%":p,"%AsyncFunctionPrototype%":p?p.prototype:void 0,"%AsyncGenerator%":T?l(g):void 0,"%AsyncGeneratorFunction%":u,"%AsyncGeneratorPrototype%":u?u.prototype:void 0,"%AsyncIteratorPrototype%":g&&i&&Symbol.asyncIterator?g[Symbol.asyncIterator]():void 0,"%Atomics%":"undefined"==typeof Atomics?void 0:Atomics,"%Boolean%":Boolean,"%BooleanPrototype%":Boolean.prototype,"%DataView%":"undefined"==typeof DataView?void 0:DataView,"%DataViewPrototype%":"undefined"==typeof DataView?void 0:DataView.prototype,"%Date%":Date,"%DatePrototype%":Date.prototype,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%ErrorPrototype%":Error.prototype,"%eval%":eval,"%EvalError%":EvalError,"%EvalErrorPrototype%":EvalError.prototype,"%Float32Array%":"undefined"==typeof Float32Array?void 0:Float32Array,"%Float32ArrayPrototype%":"undefined"==typeof Float32Array?void 0:Float32Array.prototype,"%Float64Array%":"undefined"==typeof Float64Array?void 0:Float64Array,"%Float64ArrayPrototype%":"undefined"==typeof Float64Array?void 0:Float64Array.prototype,"%Function%":Function,"%FunctionPrototype%":Function.prototype,"%Generator%":w?l(w()):void 0,"%GeneratorFunction%":d,"%GeneratorPrototype%":d?d.prototype:void 0,"%Int8Array%":"undefined"==typeof Int8Array?void 0:Int8Array,"%Int8ArrayPrototype%":"undefined"==typeof Int8Array?void 0:Int8Array.prototype,"%Int16Array%":"undefined"==typeof Int16Array?void 0:Int16Array,"%Int16ArrayPrototype%":"undefined"==typeof Int16Array?void 0:Int8Array.prototype,"%Int32Array%":"undefined"==typeof Int32Array?void 0:Int32Array,"%Int32ArrayPrototype%":"undefined"==typeof Int32Array?void 0:Int32Array.prototype,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":i?l(l([][Symbol.iterator]())):void 0,"%JSON%":"object"==typeof JSON?JSON:void 0,"%JSONParse%":"object"==typeof JSON?JSON.parse:void 0,"%Map%":"undefined"==typeof Map?void 0:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&i?l(new Map()[Symbol.iterator]()):void 0,"%MapPrototype%":"undefined"==typeof Map?void 0:Map.prototype,"%Math%":Math,"%Number%":Number,"%NumberPrototype%":_Numberprototype,"%Object%":Object,"%ObjectPrototype%":Object.prototype,"%ObjProto_toString%":Object.prototype.toString,"%ObjProto_valueOf%":Object.prototype.valueOf,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?void 0:Promise,"%PromisePrototype%":"undefined"==typeof Promise?void 0:Promise.prototype,"%PromiseProto_then%":"undefined"==typeof Promise?void 0:Promise.prototype.then,"%Promise_all%":"undefined"==typeof Promise?void 0:Promise.all,"%Promise_reject%":"undefined"==typeof Promise?void 0:Promise.reject,"%Promise_resolve%":"undefined"==typeof Promise?void 0:Promise.resolve,"%Proxy%":"undefined"==typeof Proxy?void 0:Proxy,"%RangeError%":RangeError,"%RangeErrorPrototype%":RangeError.prototype,"%ReferenceError%":ReferenceError,"%ReferenceErrorPrototype%":ReferenceError.prototype,"%Reflect%":"undefined"==typeof Reflect?void 0:Reflect,"%RegExp%":RegExp,"%RegExpPrototype%":RegExp.prototype,"%Set%":"undefined"==typeof Set?void 0:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&i?l(new Set()[Symbol.iterator]()):void 0,"%SetPrototype%":"undefined"==typeof Set?void 0:Set.prototype,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?void 0:SharedArrayBuffer,"%SharedArrayBufferPrototype%":"undefined"==typeof SharedArrayBuffer?void 0:SharedArrayBuffer.prototype,"%String%":String,"%StringIteratorPrototype%":i?l(""[Symbol.iterator]()):void 0,"%StringPrototype%":_Stringprototype,"%Symbol%":i?Symbol:void 0,"%SymbolPrototype%":i?Symbol.prototype:void 0,"%SyntaxError%":SyntaxError,"%SyntaxErrorPrototype%":SyntaxError.prototype,"%ThrowTypeError%":s,"%TypedArray%":y,"%TypedArrayPrototype%":y?y.prototype:void 0,"%TypeError%":o,"%TypeErrorPrototype%":o.prototype,"%Uint8Array%":"undefined"==typeof Uint8Array?void 0:Uint8Array,"%Uint8ArrayPrototype%":"undefined"==typeof Uint8Array?void 0:Uint8Array.prototype,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?void 0:Uint8ClampedArray,"%Uint8ClampedArrayPrototype%":"undefined"==typeof Uint8ClampedArray?void 0:Uint8ClampedArray.prototype,"%Uint16Array%":"undefined"==typeof Uint16Array?void 0:Uint16Array,"%Uint16ArrayPrototype%":"undefined"==typeof Uint16Array?void 0:Uint16Array.prototype,"%Uint32Array%":"undefined"==typeof Uint32Array?void 0:Uint32Array,"%Uint32ArrayPrototype%":"undefined"==typeof Uint32Array?void 0:Uint32Array.prototype,"%URIError%":URIError,"%URIErrorPrototype%":URIError.prototype,"%WeakMap%":"undefined"==typeof WeakMap?void 0:WeakMap,"%WeakMapPrototype%":"undefined"==typeof WeakMap?void 0:WeakMap.prototype,"%WeakSet%":"undefined"==typeof WeakSet?void 0:WeakSet,"%WeakSetPrototype%":"undefined"==typeof WeakSet?void 0:WeakSet.prototype},f=e("function-bind"),m=f.call(Function.call,_Stringprototype.replace),A=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,x=/\\(\\)?/g,k=function(e){var t=[];return m(e,A,function(e,r,o,a){t[t.length]=o?m(a,x,"$1"):r||e}),t},S=function(e,t){if(!(e in h))throw new SyntaxError("intrinsic "+e+" does not exist!");if("undefined"==typeof h[e]&&!t)throw new o("intrinsic "+e+" exists, but is not available. Please file an issue!");return h[e]},w,v,T;t.exports=function(e,t){if("string"!=typeof e||0===e.length)throw new TypeError("intrinsic name must be a non-empty string");if(1<arguments.length&&"boolean"!=typeof t)throw new TypeError("\"allowMissing\" argument must be a boolean");for(var r=k(e),n=S("%"+(0<r.length?r[0]:"")+"%",t),s=1;s<r.length;s+=1)if(null!=n)if(a&&s+1>=r.length){var l=a(n,r[s]);if(!t&&!(r[s]in n))throw new o("base intrinsic for "+e+" exists, but the property is not available.");n=l&&"get"in l&&!("originalValue"in l.get)?l.get:n[r[s]]}else n=n[r[s]];return n}},{"function-bind":21,"has-symbols":38}],35:[function(e,t,r){'use strict';var o=e("function-bind"),a=e("../GetIntrinsic"),n=a("%Function.prototype.apply%"),s=a("%Function.prototype.call%"),i=a("%Reflect.apply%",!0)||o.call(s,n),l=a("%Object.defineProperty%",!0);if(l)try{l({},"a",{value:1})}catch(t){l=null}t.exports=function(){return i(o,s,arguments)};var d=function(){return i(o,n,arguments)};l?l(t.exports,"apply",{value:d}):t.exports.apply=d},{"../GetIntrinsic":34,"function-bind":21}],36:[function(e,t,r){'use strict';var o=e("../GetIntrinsic"),a=e("./callBind"),n=a(o("String.prototype.indexOf"));t.exports=function(e,t){var r=o(e,!!t);return"function"==typeof r&&n(e,".prototype.")?a(r):r}},{"../GetIntrinsic":34,"./callBind":35}],37:[function(e,t,r){'use strict';var o=e("../GetIntrinsic"),a=o("%Object.getOwnPropertyDescriptor%");if(a)try{a([],"length")}catch(t){a=null}t.exports=a},{"../GetIntrinsic":34}],38:[function(e,t,r){(function(r){'use strict';var o=r.Symbol,a=e("./shams");t.exports=function(){return!("function"!=typeof o)&&!("function"!=typeof Symbol)&&!("symbol"!=typeof o("foo"))&&!("symbol"!=typeof Symbol("bar"))&&a()}}).call(this,"undefined"==typeof global?"undefined"==typeof self?"undefined"==typeof window?{}:window:self:global)},{"./shams":39}],39:[function(e,t,r){'use strict';t.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),r=Object(t);if("string"==typeof t)return!1;if("[object Symbol]"!==Object.prototype.toString.call(t))return!1;if("[object Symbol]"!==Object.prototype.toString.call(r))return!1;for(t in e[t]=42,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var o=Object.getOwnPropertySymbols(e);if(1!==o.length||o[0]!==t)return!1;if(!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var a=Object.getOwnPropertyDescriptor(e,t);if(42!==a.value||!0!==a.enumerable)return!1}return!0}},{}],40:[function(e,t,r){var o={}.toString;t.exports=Array.isArray||function(e){return"[object Array]"==o.call(e)}},{}],41:[function(require,module,exports){(function(process,global){(function(){'use strict';function Sha256(e,t){t?(blocks[0]=blocks[16]=blocks[1]=blocks[2]=blocks[3]=blocks[4]=blocks[5]=blocks[6]=blocks[7]=blocks[8]=blocks[9]=blocks[10]=blocks[11]=blocks[12]=blocks[13]=blocks[14]=blocks[15]=0,this.blocks=blocks):this.blocks=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],e?(this.h0=3238371032,this.h1=914150663,this.h2=812702999,this.h3=4144912697,this.h4=4290775857,this.h5=1750603025,this.h6=1694076839,this.h7=3204075428):(this.h0=1779033703,this.h1=3144134277,this.h2=1013904242,this.h3=2773480762,this.h4=1359893119,this.h5=2600822924,this.h6=528734635,this.h7=1541459225),this.block=this.start=this.bytes=this.hBytes=0,this.finalized=this.hashed=!1,this.first=!0,this.is224=e}function HmacSha256(e,t,r){var o=typeof e,a;if("string"==o){var n=[],s=e.length,l=0,d;for(a=0;a<s;++a)d=e.charCodeAt(a),128>d?n[l++]=d:2048>d?(n[l++]=192|d>>6,n[l++]=128|63&d):55296>d||57344<=d?(n[l++]=224|d>>12,n[l++]=128|63&d>>6,n[l++]=128|63&d):(d=65536+((1023&d)<<10|1023&e.charCodeAt(++a)),n[l++]=240|d>>18,n[l++]=128|63&d>>12,n[l++]=128|63&d>>6,n[l++]=128|63&d);e=n}else if("object"!==o)throw new Error("input is invalid type");else if(null===e)throw new Error("input is invalid type");else if(ARRAY_BUFFER&&e.constructor===ArrayBuffer)e=new Uint8Array(e);else if(!Array.isArray(e)&&(!ARRAY_BUFFER||!ArrayBuffer.isView(e)))throw new Error("input is invalid type");64<e.length&&(e=new Sha256(t,!0).update(e).array());var p=[],u=[];for(a=0;64>a;++a){var g=e[a]||0;p[a]=92^g,u[a]=54^g}Sha256.call(this,t,r),this.update(u),this.oKeyPad=p,this.inner=!0,this.sharedMemory=r}var ERROR="input is invalid type",WINDOW="object"==typeof window,root=WINDOW?window:{};root.JS_SHA256_NO_WINDOW&&(WINDOW=!1);var WEB_WORKER=!WINDOW&&"object"==typeof self,NODE_JS=!root.JS_SHA256_NO_NODE_JS&&"object"==typeof process&&process.versions&&process.versions.node;NODE_JS?root=global:WEB_WORKER&&(root=self);var COMMON_JS=!root.JS_SHA256_NO_COMMON_JS&&"object"==typeof module&&module.exports,AMD="function"==typeof define&&define.amd,ARRAY_BUFFER=!root.JS_SHA256_NO_ARRAY_BUFFER&&"undefined"!=typeof ArrayBuffer,HEX_CHARS=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"],EXTRA=[-2147483648,8388608,32768,128],SHIFT=[24,16,8,0],K=[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],OUTPUT_TYPES=["hex","array","digest","arrayBuffer"],blocks=[];(root.JS_SHA256_NO_NODE_JS||!Array.isArray)&&(Array.isArray=function(e){return"[object Array]"===Object.prototype.toString.call(e)}),ARRAY_BUFFER&&(root.JS_SHA256_NO_ARRAY_BUFFER_IS_VIEW||!ArrayBuffer.isView)&&(ArrayBuffer.isView=function(e){return"object"==typeof e&&e.buffer&&e.buffer.constructor===ArrayBuffer});var createOutputMethod=function(e,t){return function(r){return new Sha256(t,!0).update(r)[e]()}},createMethod=function(e){var t=createOutputMethod("hex",e);NODE_JS&&(t=nodeWrap(t,e)),t.create=function(){return new Sha256(e)},t.update=function(e){return t.create().update(e)};for(var r=0,o;r<OUTPUT_TYPES.length;++r)o=OUTPUT_TYPES[r],t[o]=createOutputMethod(o,e);return t},nodeWrap=function(method,is224){var crypto=eval("require('crypto')"),Buffer=eval("require('buffer').Buffer"),algorithm=is224?"sha224":"sha256",nodeMethod=function(e){if("string"==typeof e)return crypto.createHash(algorithm).update(e,"utf8").digest("hex");if(null===e||void 0===e)throw new Error("input is invalid type");else e.constructor===ArrayBuffer&&(e=new Uint8Array(e));return Array.isArray(e)||ArrayBuffer.isView(e)||e.constructor===Buffer?crypto.createHash(algorithm).update(new Buffer(e)).digest("hex"):method(e)};return nodeMethod},createHmacOutputMethod=function(e,t){return function(r,o){return new HmacSha256(r,t,!0).update(o)[e]()}},createHmacMethod=function(e){var t=createHmacOutputMethod("hex",e);t.create=function(t){return new HmacSha256(t,e)},t.update=function(e,r){return t.create(e).update(r)};for(var r=0,o;r<OUTPUT_TYPES.length;++r)o=OUTPUT_TYPES[r],t[o]=createHmacOutputMethod(o,e);return t};Sha256.prototype.update=function(e){if(!this.finalized){var t=typeof e,r;if("string"!=t){if("object"!==t)throw new Error("input is invalid type");else if(null===e)throw new Error("input is invalid type");else if(ARRAY_BUFFER&&e.constructor===ArrayBuffer)e=new Uint8Array(e);else if(!Array.isArray(e)&&(!ARRAY_BUFFER||!ArrayBuffer.isView(e)))throw new Error("input is invalid type");r=!0}for(var o=0,a=e.length,n=this.blocks,s,l;o<a;){if(this.hashed&&(this.hashed=!1,n[0]=this.block,n[16]=n[1]=n[2]=n[3]=n[4]=n[5]=n[6]=n[7]=n[8]=n[9]=n[10]=n[11]=n[12]=n[13]=n[14]=n[15]=0),r)for(l=this.start;o<a&&64>l;++o)n[l>>2]|=e[o]<<SHIFT[3&l++];else for(l=this.start;o<a&&64>l;++o)s=e.charCodeAt(o),128>s?n[l>>2]|=s<<SHIFT[3&l++]:2048>s?(n[l>>2]|=(192|s>>6)<<SHIFT[3&l++],n[l>>2]|=(128|63&s)<<SHIFT[3&l++]):55296>s||57344<=s?(n[l>>2]|=(224|s>>12)<<SHIFT[3&l++],n[l>>2]|=(128|63&s>>6)<<SHIFT[3&l++],n[l>>2]|=(128|63&s)<<SHIFT[3&l++]):(s=65536+((1023&s)<<10|1023&e.charCodeAt(++o)),n[l>>2]|=(240|s>>18)<<SHIFT[3&l++],n[l>>2]|=(128|63&s>>12)<<SHIFT[3&l++],n[l>>2]|=(128|63&s>>6)<<SHIFT[3&l++],n[l>>2]|=(128|63&s)<<SHIFT[3&l++]);this.lastByteIndex=l,this.bytes+=l-this.start,64<=l?(this.block=n[16],this.start=l-64,this.hash(),this.hashed=!0):this.start=l}return 4294967295<this.bytes&&(this.hBytes+=this.bytes/4294967296<<0,this.bytes%=4294967296),this}},Sha256.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var e=this.blocks,t=this.lastByteIndex;e[16]=this.block,e[t>>2]|=EXTRA[3&t],this.block=e[16],56<=t&&(!this.hashed&&this.hash(),e[0]=this.block,e[16]=e[1]=e[2]=e[3]=e[4]=e[5]=e[6]=e[7]=e[8]=e[9]=e[10]=e[11]=e[12]=e[13]=e[14]=e[15]=0),e[14]=this.hBytes<<3|this.bytes>>>29,e[15]=this.bytes<<3,this.hash()}},Sha256.prototype.hash=function(){var t=this.h0,r=this.h1,o=this.h2,n=this.h3,s=this.h4,i=this.h5,l=this.h6,p=this.h7,u=this.blocks,y,m,A,x,k,S,w,v,T,E,B;for(y=16;64>y;++y)k=u[y-15],m=(k>>>7|k<<25)^(k>>>18|k<<14)^k>>>3,k=u[y-2],A=(k>>>17|k<<15)^(k>>>19|k<<13)^k>>>10,u[y]=u[y-16]+m+u[y-7]+A<<0;for(B=r&o,y=0;64>y;y+=4)this.first?(this.is224?(v=300032,k=u[0]-1413257819,p=k-150054599<<0,n=k+24177077<<0):(v=704751109,k=u[0]-210244248,p=k-1521486534<<0,n=k+143694565<<0),this.first=!1):(m=(t>>>2|t<<30)^(t>>>13|t<<19)^(t>>>22|t<<10),A=(s>>>6|s<<26)^(s>>>11|s<<21)^(s>>>25|s<<7),v=t&r,x=v^t&o^B,w=s&i^~s&l,k=p+A+w+K[y]+u[y],S=m+x,p=n+k<<0,n=k+S<<0),m=(n>>>2|n<<30)^(n>>>13|n<<19)^(n>>>22|n<<10),A=(p>>>6|p<<26)^(p>>>11|p<<21)^(p>>>25|p<<7),T=n&t,x=T^n&r^v,w=p&s^~p&i,k=l+A+w+K[y+1]+u[y+1],S=m+x,l=o+k<<0,o=k+S<<0,m=(o>>>2|o<<30)^(o>>>13|o<<19)^(o>>>22|o<<10),A=(l>>>6|l<<26)^(l>>>11|l<<21)^(l>>>25|l<<7),E=o&n,x=E^o&t^T,w=l&p^~l&s,k=i+A+w+K[y+2]+u[y+2],S=m+x,i=r+k<<0,r=k+S<<0,m=(r>>>2|r<<30)^(r>>>13|r<<19)^(r>>>22|r<<10),A=(i>>>6|i<<26)^(i>>>11|i<<21)^(i>>>25|i<<7),B=r&o,x=B^r&n^E,w=i&l^~i&p,k=s+A+w+K[y+3]+u[y+3],S=m+x,s=t+k<<0,t=k+S<<0;this.h0=this.h0+t<<0,this.h1=this.h1+r<<0,this.h2=this.h2+o<<0,this.h3=this.h3+n<<0,this.h4=this.h4+s<<0,this.h5=this.h5+i<<0,this.h6=this.h6+l<<0,this.h7=this.h7+p<<0},Sha256.prototype.hex=function(){this.finalize();var e=this.h0,t=this.h1,r=this.h2,o=this.h3,a=this.h4,n=this.h5,s=this.h6,i=this.h7,l=HEX_CHARS[15&e>>28]+HEX_CHARS[15&e>>24]+HEX_CHARS[15&e>>20]+HEX_CHARS[15&e>>16]+HEX_CHARS[15&e>>12]+HEX_CHARS[15&e>>8]+HEX_CHARS[15&e>>4]+HEX_CHARS[15&e]+HEX_CHARS[15&t>>28]+HEX_CHARS[15&t>>24]+HEX_CHARS[15&t>>20]+HEX_CHARS[15&t>>16]+HEX_CHARS[15&t>>12]+HEX_CHARS[15&t>>8]+HEX_CHARS[15&t>>4]+HEX_CHARS[15&t]+HEX_CHARS[15&r>>28]+HEX_CHARS[15&r>>24]+HEX_CHARS[15&r>>20]+HEX_CHARS[15&r>>16]+HEX_CHARS[15&r>>12]+HEX_CHARS[15&r>>8]+HEX_CHARS[15&r>>4]+HEX_CHARS[15&r]+HEX_CHARS[15&o>>28]+HEX_CHARS[15&o>>24]+HEX_CHARS[15&o>>20]+HEX_CHARS[15&o>>16]+HEX_CHARS[15&o>>12]+HEX_CHARS[15&o>>8]+HEX_CHARS[15&o>>4]+HEX_CHARS[15&o]+HEX_CHARS[15&a>>28]+HEX_CHARS[15&a>>24]+HEX_CHARS[15&a>>20]+HEX_CHARS[15&a>>16]+HEX_CHARS[15&a>>12]+HEX_CHARS[15&a>>8]+HEX_CHARS[15&a>>4]+HEX_CHARS[15&a]+HEX_CHARS[15&n>>28]+HEX_CHARS[15&n>>24]+HEX_CHARS[15&n>>20]+HEX_CHARS[15&n>>16]+HEX_CHARS[15&n>>12]+HEX_CHARS[15&n>>8]+HEX_CHARS[15&n>>4]+HEX_CHARS[15&n]+HEX_CHARS[15&s>>28]+HEX_CHARS[15&s>>24]+HEX_CHARS[15&s>>20]+HEX_CHARS[15&s>>16]+HEX_CHARS[15&s>>12]+HEX_CHARS[15&s>>8]+HEX_CHARS[15&s>>4]+HEX_CHARS[15&s];return this.is224||(l+=HEX_CHARS[15&i>>28]+HEX_CHARS[15&i>>24]+HEX_CHARS[15&i>>20]+HEX_CHARS[15&i>>16]+HEX_CHARS[15&i>>12]+HEX_CHARS[15&i>>8]+HEX_CHARS[15&i>>4]+HEX_CHARS[15&i]),l},Sha256.prototype.toString=Sha256.prototype.hex,Sha256.prototype.digest=function(){this.finalize();var e=this.h0,t=this.h1,r=this.h2,o=this.h3,a=this.h4,n=this.h5,s=this.h6,i=this.h7,l=[255&e>>24,255&e>>16,255&e>>8,255&e,255&t>>24,255&t>>16,255&t>>8,255&t,255&r>>24,255&r>>16,255&r>>8,255&r,255&o>>24,255&o>>16,255&o>>8,255&o,255&a>>24,255&a>>16,255&a>>8,255&a,255&n>>24,255&n>>16,255&n>>8,255&n,255&s>>24,255&s>>16,255&s>>8,255&s];return this.is224||l.push(255&i>>24,255&i>>16,255&i>>8,255&i),l},Sha256.prototype.array=Sha256.prototype.digest,Sha256.prototype.arrayBuffer=function(){this.finalize();var e=new ArrayBuffer(this.is224?28:32),t=new DataView(e);return t.setUint32(0,this.h0),t.setUint32(4,this.h1),t.setUint32(8,this.h2),t.setUint32(12,this.h3),t.setUint32(16,this.h4),t.setUint32(20,this.h5),t.setUint32(24,this.h6),this.is224||t.setUint32(28,this.h7),e},HmacSha256.prototype=new Sha256,HmacSha256.prototype.finalize=function(){if(Sha256.prototype.finalize.call(this),this.inner){this.inner=!1;var e=this.array();Sha256.call(this,this.is224,this.sharedMemory),this.update(this.oKeyPad),this.update(e),Sha256.prototype.finalize.call(this)}};var exports=createMethod();exports.sha256=exports,exports.sha224=createMethod(!0),exports.sha256.hmac=createHmacMethod(),exports.sha224.hmac=createHmacMethod(!0),COMMON_JS?module.exports=exports:(root.sha256=exports.sha256,root.sha224=exports.sha224,AMD&&define(function(){return exports}))})()}).call(this,require("_process"),"undefined"==typeof global?"undefined"==typeof self?"undefined"==typeof window?{}:window:self:global)},{_process:61}],42:[function(e,t,r){(function(e,r){(function(){'use strict';function o(e,t){t?(A[0]=A[1]=A[2]=A[3]=A[4]=A[5]=A[6]=A[7]=A[8]=A[9]=A[10]=A[11]=A[12]=A[13]=A[14]=A[15]=A[16]=A[17]=A[18]=A[19]=A[20]=A[21]=A[22]=A[23]=A[24]=A[25]=A[26]=A[27]=A[28]=A[29]=A[30]=A[31]=A[32]=0,this.blocks=A):this.blocks=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],384==e?(this.h0h=3418070365,this.h0l=3238371032,this.h1h=1654270250,this.h1l=914150663,this.h2h=2438529370,this.h2l=812702999,this.h3h=355462360,this.h3l=4144912697,this.h4h=1731405415,this.h4l=4290775857,this.h5h=2394180231,this.h5l=1750603025,this.h6h=3675008525,this.h6l=1694076839,this.h7h=1203062813,this.h7l=3204075428):256==e?(this.h0h=573645204,this.h0l=4230739756,this.h1h=2673172387,this.h1l=3360449730,this.h2h=596883563,this.h2l=1867755857,this.h3h=2520282905,this.h3l=1497426621,this.h4h=2519219938,this.h4l=2827943907,this.h5h=3193839141,this.h5l=1401305490,this.h6h=721525244,this.h6l=746961066,this.h7h=246885852,this.h7l=2177182882):224==e?(this.h0h=2352822216,this.h0l=424955298,this.h1h=1944164710,this.h1l=2312950998,this.h2h=502970286,this.h2l=855612546,this.h3h=1738396948,this.h3l=1479516111,this.h4h=258812777,this.h4l=2077511080,this.h5h=2011393907,this.h5l=79989058,this.h6h=1067287976,this.h6l=1780299464,this.h7h=286451373,this.h7l=2446758561):(this.h0h=1779033703,this.h0l=4089235720,this.h1h=3144134277,this.h1l=2227873595,this.h2h=1013904242,this.h2l=4271175723,this.h3h=2773480762,this.h3l=1595750129,this.h4h=1359893119,this.h4l=2917565137,this.h5h=2600822924,this.h5l=725511199,this.h6h=528734635,this.h6l=4215389547,this.h7h=1541459225,this.h7l=327033209),this.bits=e,this.block=this.start=this.bytes=this.hBytes=0,this.finalized=this.hashed=!1}function a(e,t,r){var a=typeof e,n;if("string"!=a){if(!("object"===a))throw new Error("input is invalid type");else if(null===e)throw new Error("input is invalid type");else if(u&&e.constructor===ArrayBuffer)e=new Uint8Array(e);else if(!Array.isArray(e)&&(!u||!ArrayBuffer.isView(e)))throw new Error("input is invalid type");n=!0}var s=e.length;if(!n){for(var l=[],s=e.length,d=0,p=0,g;p<s;++p)g=e.charCodeAt(p),128>g?l[d++]=g:2048>g?(l[d++]=192|g>>6,l[d++]=128|63&g):55296>g||57344<=g?(l[d++]=224|g>>12,l[d++]=128|63&g>>6,l[d++]=128|63&g):(g=65536+((1023&g)<<10|1023&e.charCodeAt(++p)),l[d++]=240|g>>18,l[d++]=128|63&g>>12,l[d++]=128|63&g>>6,l[d++]=128|63&g);e=l}128<e.length&&(e=new o(t,!0).update(e).array());for(var y=[],h=[],p=0,f;128>p;++p)f=e[p]||0,y[p]=92^f,h[p]=54^f;o.call(this,t,r),this.update(h),this.oKeyPad=y,this.inner=!0,this.sharedMemory=r}var n="object"==typeof window,s=n?window:{};s.JS_SHA512_NO_WINDOW&&(n=!1);var i=!n&&"object"==typeof self,l=!s.JS_SHA512_NO_NODE_JS&&"object"==typeof e&&e.versions&&e.versions.node;l?s=r:i&&(s=self);var d=!s.JS_SHA512_NO_COMMON_JS&&"object"==typeof t&&t.exports,p="function"==typeof define&&define.amd,u=!s.JS_SHA512_NO_ARRAY_BUFFER&&"undefined"!=typeof ArrayBuffer,g=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"],y=[-2147483648,8388608,32768,128],h=[24,16,8,0],f=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591],m=["hex","array","digest","arrayBuffer"],A=[];(s.JS_SHA512_NO_NODE_JS||!Array.isArray)&&(Array.isArray=function(e){return"[object Array]"===Object.prototype.toString.call(e)}),u&&(s.JS_SHA512_NO_ARRAY_BUFFER_IS_VIEW||!ArrayBuffer.isView)&&(ArrayBuffer.isView=function(e){return"object"==typeof e&&e.buffer&&e.buffer.constructor===ArrayBuffer});var x=function(e,t){return function(r){return new o(t,!0).update(r)[e]()}},k=function(e){var t=x("hex",e);t.create=function(){return new o(e)},t.update=function(e){return t.create().update(e)};for(var r=0,a;r<m.length;++r)a=m[r],t[a]=x(a,e);return t},S=function(e,t){return function(r,o){return new a(r,t,!0).update(o)[e]()}},w=function(e){var t=S("hex",e);t.create=function(t){return new a(t,e)},t.update=function(e,r){return t.create(e).update(r)};for(var r=0,o;r<m.length;++r)o=m[r],t[o]=S(o,e);return t};o.prototype.update=function(e){if(this.finalized)throw new Error("finalize already called");var t=typeof e,r;if("string"!=t){if("object"!==t)throw new Error("input is invalid type");else if(null===e)throw new Error("input is invalid type");else if(u&&e.constructor===ArrayBuffer)e=new Uint8Array(e);else if(!Array.isArray(e)&&(!u||!ArrayBuffer.isView(e)))throw new Error("input is invalid type");r=!0}for(var o=0,a=e.length,n=this.blocks,s,l;o<a;){if(this.hashed&&(this.hashed=!1,n[0]=this.block,n[1]=n[2]=n[3]=n[4]=n[5]=n[6]=n[7]=n[8]=n[9]=n[10]=n[11]=n[12]=n[13]=n[14]=n[15]=n[16]=n[17]=n[18]=n[19]=n[20]=n[21]=n[22]=n[23]=n[24]=n[25]=n[26]=n[27]=n[28]=n[29]=n[30]=n[31]=n[32]=0),r)for(l=this.start;o<a&&128>l;++o)n[l>>2]|=e[o]<<h[3&l++];else for(l=this.start;o<a&&128>l;++o)s=e.charCodeAt(o),128>s?n[l>>2]|=s<<h[3&l++]:2048>s?(n[l>>2]|=(192|s>>6)<<h[3&l++],n[l>>2]|=(128|63&s)<<h[3&l++]):55296>s||57344<=s?(n[l>>2]|=(224|s>>12)<<h[3&l++],n[l>>2]|=(128|63&s>>6)<<h[3&l++],n[l>>2]|=(128|63&s)<<h[3&l++]):(s=65536+((1023&s)<<10|1023&e.charCodeAt(++o)),n[l>>2]|=(240|s>>18)<<h[3&l++],n[l>>2]|=(128|63&s>>12)<<h[3&l++],n[l>>2]|=(128|63&s>>6)<<h[3&l++],n[l>>2]|=(128|63&s)<<h[3&l++]);this.lastByteIndex=l,this.bytes+=l-this.start,128<=l?(this.block=n[32],this.start=l-128,this.hash(),this.hashed=!0):this.start=l}return 4294967295<this.bytes&&(this.hBytes+=this.bytes/4294967296<<0,this.bytes%=4294967296),this},o.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var e=this.blocks,t=this.lastByteIndex;e[32]=this.block,e[t>>2]|=y[3&t],this.block=e[32],112<=t&&(!this.hashed&&this.hash(),e[0]=this.block,e[1]=e[2]=e[3]=e[4]=e[5]=e[6]=e[7]=e[8]=e[9]=e[10]=e[11]=e[12]=e[13]=e[14]=e[15]=e[16]=e[17]=e[18]=e[19]=e[20]=e[21]=e[22]=e[23]=e[24]=e[25]=e[26]=e[27]=e[28]=e[29]=e[30]=e[31]=e[32]=0),e[30]=this.hBytes<<3|this.bytes>>>29,e[31]=this.bytes<<3,this.hash()}},o.prototype.hash=function(){var e=this.h0h,t=this.h0l,r=this.h1h,o=this.h1l,a=this.h2h,n=this.h2l,s=this.h3h,i=this.h3l,l=this.h4h,d=this.h4l,p=this.h5h,u=this.h5l,g=this.h6h,y=this.h6l,h=this.h7h,m=this.h7l,A=this.blocks,x,k,S,w,v,T,E,B,I,P,U,R,C,D,O,L,N,z,M,F,q,G,K,H,W;for(x=32;160>x;x+=2)F=A[x-30],q=A[x-29],k=(F>>>1|q<<31)^(F>>>8|q<<24)^F>>>7,S=(q>>>1|F<<31)^(q>>>8|F<<24)^(q>>>7|F<<25),F=A[x-4],q=A[x-3],w=(F>>>19|q<<13)^(q>>>29|F<<3)^F>>>6,v=(q>>>19|F<<13)^(F>>>29|q<<3)^(q>>>6|F<<26),F=A[x-32],q=A[x-31],G=A[x-14],K=A[x-13],T=(65535&K)+(65535&q)+(65535&S)+(65535&v),E=(K>>>16)+(q>>>16)+(S>>>16)+(v>>>16)+(T>>>16),B=(65535&G)+(65535&F)+(65535&k)+(65535&w)+(E>>>16),I=(G>>>16)+(F>>>16)+(k>>>16)+(w>>>16)+(B>>>16),A[x]=I<<16|65535&B,A[x+1]=E<<16|65535&T;var V=e,Q=t,Y=r,J=o,X=a,$=n,Z=s,ee=i,te=l,re=d,oe=p,ae=u,ne=g,se=y,ie=h,le=m;for(L=Y&X,N=J&$,x=0;160>x;x+=8)k=(V>>>28|Q<<4)^(Q>>>2|V<<30)^(Q>>>7|V<<25),S=(Q>>>28|V<<4)^(V>>>2|Q<<30)^(V>>>7|Q<<25),w=(te>>>14|re<<18)^(te>>>18|re<<14)^(re>>>9|te<<23),v=(re>>>14|te<<18)^(re>>>18|te<<14)^(te>>>9|re<<23),P=V&Y,U=Q&J,z=P^V&X^L,M=U^Q&$^N,H=te&oe^~te&ne,W=re&ae^~re&se,F=A[x],q=A[x+1],G=f[x],K=f[x+1],T=(65535&K)+(65535&q)+(65535&W)+(65535&v)+(65535&le),E=(K>>>16)+(q>>>16)+(W>>>16)+(v>>>16)+(le>>>16)+(T>>>16),B=(65535&G)+(65535&F)+(65535&H)+(65535&w)+(65535&ie)+(E>>>16),I=(G>>>16)+(F>>>16)+(H>>>16)+(w>>>16)+(ie>>>16)+(B>>>16),F=I<<16|65535&B,q=E<<16|65535&T,T=(65535&M)+(65535&S),E=(M>>>16)+(S>>>16)+(T>>>16),B=(65535&z)+(65535&k)+(E>>>16),I=(z>>>16)+(k>>>16)+(B>>>16),G=I<<16|65535&B,K=E<<16|65535&T,T=(65535&ee)+(65535&q),E=(ee>>>16)+(q>>>16)+(T>>>16),B=(65535&Z)+(65535&F)+(E>>>16),I=(Z>>>16)+(F>>>16)+(B>>>16),ie=I<<16|65535&B,le=E<<16|65535&T,T=(65535&K)+(65535&q),E=(K>>>16)+(q>>>16)+(T>>>16),B=(65535&G)+(65535&F)+(E>>>16),I=(G>>>16)+(F>>>16)+(B>>>16),Z=I<<16|65535&B,ee=E<<16|65535&T,k=(Z>>>28|ee<<4)^(ee>>>2|Z<<30)^(ee>>>7|Z<<25),S=(ee>>>28|Z<<4)^(Z>>>2|ee<<30)^(Z>>>7|ee<<25),w=(ie>>>14|le<<18)^(ie>>>18|le<<14)^(le>>>9|ie<<23),v=(le>>>14|ie<<18)^(le>>>18|ie<<14)^(ie>>>9|le<<23),R=Z&V,C=ee&Q,z=R^Z&Y^P,M=C^ee&J^U,H=ie&te^~ie&oe,W=le&re^~le&ae,F=A[x+2],q=A[x+3],G=f[x+2],K=f[x+3],T=(65535&K)+(65535&q)+(65535&W)+(65535&v)+(65535&se),E=(K>>>16)+(q>>>16)+(W>>>16)+(v>>>16)+(se>>>16)+(T>>>16),B=(65535&G)+(65535&F)+(65535&H)+(65535&w)+(65535&ne)+(E>>>16),I=(G>>>16)+(F>>>16)+(H>>>16)+(w>>>16)+(ne>>>16)+(B>>>16),F=I<<16|65535&B,q=E<<16|65535&T,T=(65535&M)+(65535&S),E=(M>>>16)+(S>>>16)+(T>>>16),B=(65535&z)+(65535&k)+(E>>>16),I=(z>>>16)+(k>>>16)+(B>>>16),G=I<<16|65535&B,K=E<<16|65535&T,T=(65535&$)+(65535&q),E=($>>>16)+(q>>>16)+(T>>>16),B=(65535&X)+(65535&F)+(E>>>16),I=(X>>>16)+(F>>>16)+(B>>>16),ne=I<<16|65535&B,se=E<<16|65535&T,T=(65535&K)+(65535&q),E=(K>>>16)+(q>>>16)+(T>>>16),B=(65535&G)+(65535&F)+(E>>>16),I=(G>>>16)+(F>>>16)+(B>>>16),X=I<<16|65535&B,$=E<<16|65535&T,k=(X>>>28|$<<4)^($>>>2|X<<30)^($>>>7|X<<25),S=($>>>28|X<<4)^(X>>>2|$<<30)^(X>>>7|$<<25),w=(ne>>>14|se<<18)^(ne>>>18|se<<14)^(se>>>9|ne<<23),v=(se>>>14|ne<<18)^(se>>>18|ne<<14)^(ne>>>9|se<<23),D=X&Z,O=$&ee,z=D^X&V^R,M=O^$&Q^C,H=ne&ie^~ne&te,W=se&le^~se&re,F=A[x+4],q=A[x+5],G=f[x+4],K=f[x+5],T=(65535&K)+(65535&q)+(65535&W)+(65535&v)+(65535&ae),E=(K>>>16)+(q>>>16)+(W>>>16)+(v>>>16)+(ae>>>16)+(T>>>16),B=(65535&G)+(65535&F)+(65535&H)+(65535&w)+(65535&oe)+(E>>>16),I=(G>>>16)+(F>>>16)+(H>>>16)+(w>>>16)+(oe>>>16)+(B>>>16),F=I<<16|65535&B,q=E<<16|65535&T,T=(65535&M)+(65535&S),E=(M>>>16)+(S>>>16)+(T>>>16),B=(65535&z)+(65535&k)+(E>>>16),I=(z>>>16)+(k>>>16)+(B>>>16),G=I<<16|65535&B,K=E<<16|65535&T,T=(65535&J)+(65535&q),E=(J>>>16)+(q>>>16)+(T>>>16),B=(65535&Y)+(65535&F)+(E>>>16),I=(Y>>>16)+(F>>>16)+(B>>>16),oe=I<<16|65535&B,ae=E<<16|65535&T,T=(65535&K)+(65535&q),E=(K>>>16)+(q>>>16)+(T>>>16),B=(65535&G)+(65535&F)+(E>>>16),I=(G>>>16)+(F>>>16)+(B>>>16),Y=I<<16|65535&B,J=E<<16|65535&T,k=(Y>>>28|J<<4)^(J>>>2|Y<<30)^(J>>>7|Y<<25),S=(J>>>28|Y<<4)^(Y>>>2|J<<30)^(Y>>>7|J<<25),w=(oe>>>14|ae<<18)^(oe>>>18|ae<<14)^(ae>>>9|oe<<23),v=(ae>>>14|oe<<18)^(ae>>>18|oe<<14)^(oe>>>9|ae<<23),L=Y&X,N=J&$,z=L^Y&Z^D,M=N^J&ee^O,H=oe&ne^~oe&ie,W=ae&se^~ae&le,F=A[x+6],q=A[x+7],G=f[x+6],K=f[x+7],T=(65535&K)+(65535&q)+(65535&W)+(65535&v)+(65535&re),E=(K>>>16)+(q>>>16)+(W>>>16)+(v>>>16)+(re>>>16)+(T>>>16),B=(65535&G)+(65535&F)+(65535&H)+(65535&w)+(65535&te)+(E>>>16),I=(G>>>16)+(F>>>16)+(H>>>16)+(w>>>16)+(te>>>16)+(B>>>16),F=I<<16|65535&B,q=E<<16|65535&T,T=(65535&M)+(65535&S),E=(M>>>16)+(S>>>16)+(T>>>16),B=(65535&z)+(65535&k)+(E>>>16),I=(z>>>16)+(k>>>16)+(B>>>16),G=I<<16|65535&B,K=E<<16|65535&T,T=(65535&Q)+(65535&q),E=(Q>>>16)+(q>>>16)+(T>>>16),B=(65535&V)+(65535&F)+(E>>>16),I=(V>>>16)+(F>>>16)+(B>>>16),te=I<<16|65535&B,re=E<<16|65535&T,T=(65535&K)+(65535&q),E=(K>>>16)+(q>>>16)+(T>>>16),B=(65535&G)+(65535&F)+(E>>>16),I=(G>>>16)+(F>>>16)+(B>>>16),V=I<<16|65535&B,Q=E<<16|65535&T;T=(65535&t)+(65535&Q),E=(t>>>16)+(Q>>>16)+(T>>>16),B=(65535&e)+(65535&V)+(E>>>16),I=(e>>>16)+(V>>>16)+(B>>>16),this.h0h=I<<16|65535&B,this.h0l=E<<16|65535&T,T=(65535&o)+(65535&J),E=(o>>>16)+(J>>>16)+(T>>>16),B=(65535&r)+(65535&Y)+(E>>>16),I=(r>>>16)+(Y>>>16)+(B>>>16),this.h1h=I<<16|65535&B,this.h1l=E<<16|65535&T,T=(65535&n)+(65535&$),E=(n>>>16)+($>>>16)+(T>>>16),B=(65535&a)+(65535&X)+(E>>>16),I=(a>>>16)+(X>>>16)+(B>>>16),this.h2h=I<<16|65535&B,this.h2l=E<<16|65535&T,T=(65535&i)+(65535&ee),E=(i>>>16)+(ee>>>16)+(T>>>16),B=(65535&s)+(65535&Z)+(E>>>16),I=(s>>>16)+(Z>>>16)+(B>>>16),this.h3h=I<<16|65535&B,this.h3l=E<<16|65535&T,T=(65535&d)+(65535&re),E=(d>>>16)+(re>>>16)+(T>>>16),B=(65535&l)+(65535&te)+(E>>>16),I=(l>>>16)+(te>>>16)+(B>>>16),this.h4h=I<<16|65535&B,this.h4l=E<<16|65535&T,T=(65535&u)+(65535&ae),E=(u>>>16)+(ae>>>16)+(T>>>16),B=(65535&p)+(65535&oe)+(E>>>16),I=(p>>>16)+(oe>>>16)+(B>>>16),this.h5h=I<<16|65535&B,this.h5l=E<<16|65535&T,T=(65535&y)+(65535&se),E=(y>>>16)+(se>>>16)+(T>>>16),B=(65535&g)+(65535&ne)+(E>>>16),I=(g>>>16)+(ne>>>16)+(B>>>16),this.h6h=I<<16|65535&B,this.h6l=E<<16|65535&T,T=(65535&m)+(65535&le),E=(m>>>16)+(le>>>16)+(T>>>16),B=(65535&h)+(65535&ie)+(E>>>16),I=(h>>>16)+(ie>>>16)+(B>>>16),this.h7h=I<<16|65535&B,this.h7l=E<<16|65535&T},o.prototype.hex=function(){this.finalize();var e=this.h0h,t=this.h0l,r=this.h1h,o=this.h1l,a=this.h2h,n=this.h2l,s=this.h3h,i=this.h3l,l=this.h4h,d=this.h4l,p=this.h5h,u=this.h5l,y=this.h6h,h=this.h6l,f=this.h7h,m=this.h7l,A=this.bits,x=g[15&e>>28]+g[15&e>>24]+g[15&e>>20]+g[15&e>>16]+g[15&e>>12]+g[15&e>>8]+g[15&e>>4]+g[15&e]+g[15&t>>28]+g[15&t>>24]+g[15&t>>20]+g[15&t>>16]+g[15&t>>12]+g[15&t>>8]+g[15&t>>4]+g[15&t]+g[15&r>>28]+g[15&r>>24]+g[15&r>>20]+g[15&r>>16]+g[15&r>>12]+g[15&r>>8]+g[15&r>>4]+g[15&r]+g[15&o>>28]+g[15&o>>24]+g[15&o>>20]+g[15&o>>16]+g[15&o>>12]+g[15&o>>8]+g[15&o>>4]+g[15&o]+g[15&a>>28]+g[15&a>>24]+g[15&a>>20]+g[15&a>>16]+g[15&a>>12]+g[15&a>>8]+g[15&a>>4]+g[15&a]+g[15&n>>28]+g[15&n>>24]+g[15&n>>20]+g[15&n>>16]+g[15&n>>12]+g[15&n>>8]+g[15&n>>4]+g[15&n]+g[15&s>>28]+g[15&s>>24]+g[15&s>>20]+g[15&s>>16]+g[15&s>>12]+g[15&s>>8]+g[15&s>>4]+g[15&s];return 256<=A&&(x+=g[15&i>>28]+g[15&i>>24]+g[15&i>>20]+g[15&i>>16]+g[15&i>>12]+g[15&i>>8]+g[15&i>>4]+g[15&i]),384<=A&&(x+=g[15&l>>28]+g[15&l>>24]+g[15&l>>20]+g[15&l>>16]+g[15&l>>12]+g[15&l>>8]+g[15&l>>4]+g[15&l]+g[15&d>>28]+g[15&d>>24]+g[15&d>>20]+g[15&d>>16]+g[15&d>>12]+g[15&d>>8]+g[15&d>>4]+g[15&d]+g[15&p>>28]+g[15&p>>24]+g[15&p>>20]+g[15&p>>16]+g[15&p>>12]+g[15&p>>8]+g[15&p>>4]+g[15&p]+g[15&u>>28]+g[15&u>>24]+g[15&u>>20]+g[15&u>>16]+g[15&u>>12]+g[15&u>>8]+g[15&u>>4]+g[15&u]),512==A&&(x+=g[15&y>>28]+g[15&y>>24]+g[15&y>>20]+g[15&y>>16]+g[15&y>>12]+g[15&y>>8]+g[15&y>>4]+g[15&y]+g[15&h>>28]+g[15&h>>24]+g[15&h>>20]+g[15&h>>16]+g[15&h>>12]+g[15&h>>8]+g[15&h>>4]+g[15&h]+g[15&f>>28]+g[15&f>>24]+g[15&f>>20]+g[15&f>>16]+g[15&f>>12]+g[15&f>>8]+g[15&f>>4]+g[15&f]+g[15&m>>28]+g[15&m>>24]+g[15&m>>20]+g[15&m>>16]+g[15&m>>12]+g[15&m>>8]+g[15&m>>4]+g[15&m]),x},o.prototype.toString=o.prototype.hex,o.prototype.digest=function(){this.finalize();var e=this.h0h,t=this.h0l,r=this.h1h,o=this.h1l,a=this.h2h,n=this.h2l,s=this.h3h,i=this.h3l,l=this.h4h,d=this.h4l,p=this.h5h,u=this.h5l,g=this.h6h,y=this.h6l,h=this.h7h,f=this.h7l,m=this.bits,A=[255&e>>24,255&e>>16,255&e>>8,255&e,255&t>>24,255&t>>16,255&t>>8,255&t,255&r>>24,255&r>>16,255&r>>8,255&r,255&o>>24,255&o>>16,255&o>>8,255&o,255&a>>24,255&a>>16,255&a>>8,255&a,255&n>>24,255&n>>16,255&n>>8,255&n,255&s>>24,255&s>>16,255&s>>8,255&s];return 256<=m&&A.push(255&i>>24,255&i>>16,255&i>>8,255&i),384<=m&&A.push(255&l>>24,255&l>>16,255&l>>8,255&l,255&d>>24,255&d>>16,255&d>>8,255&d,255&p>>24,255&p>>16,255&p>>8,255&p,255&u>>24,255&u>>16,255&u>>8,255&u),512==m&&A.push(255&g>>24,255&g>>16,255&g>>8,255&g,255&y>>24,255&y>>16,255&y>>8,255&y,255&h>>24,255&h>>16,255&h>>8,255&h,255&f>>24,255&f>>16,255&f>>8,255&f),A},o.prototype.array=o.prototype.digest,o.prototype.arrayBuffer=function(){this.finalize();var e=this.bits,t=new ArrayBuffer(e/8),r=new DataView(t);return r.setUint32(0,this.h0h),r.setUint32(4,this.h0l),r.setUint32(8,this.h1h),r.setUint32(12,this.h1l),r.setUint32(16,this.h2h),r.setUint32(20,this.h2l),r.setUint32(24,this.h3h),256<=e&&r.setUint32(28,this.h3l),384<=e&&(r.setUint32(32,this.h4h),r.setUint32(36,this.h4l),r.setUint32(40,this.h5h),r.setUint32(44,this.h5l)),512==e&&(r.setUint32(48,this.h6h),r.setUint32(52,this.h6l),r.setUint32(56,this.h7h),r.setUint32(60,this.h7l)),t},o.prototype.clone=function(){var e=new o(this.bits,!1);return this.copyTo(e),e},o.prototype.copyTo=function(e){var t=0,r=["h0h","h0l","h1h","h1l","h2h","h2l","h3h","h3l","h4h","h4l","h5h","h5l","h6h","h6l","h7h","h7l","start","bytes","hBytes","finalized","hashed","lastByteIndex"];for(t=0;t<r.length;++t)e[r[t]]=this[r[t]];for(t=0;t<this.blocks.length;++t)e.blocks[t]=this.blocks[t]},a.prototype=new o,a.prototype.finalize=function(){if(o.prototype.finalize.call(this),this.inner){this.inner=!1;var e=this.array();o.call(this,this.bits,this.sharedMemory),this.update(this.oKeyPad),this.update(e),o.prototype.finalize.call(this)}},a.prototype.clone=function(){var e=new a([],this.bits,!1);this.copyTo(e),e.inner=this.inner;for(var t=0;t<this.oKeyPad.length;++t)e.oKeyPad[t]=this.oKeyPad[t];return e};var v=k(512);v.sha512=v,v.sha384=k(384),v.sha512_256=k(256),v.sha512_224=k(224),v.sha512.hmac=w(512),v.sha384.hmac=w(384),v.sha512_256.hmac=w(256),v.sha512_224.hmac=w(224),d?t.exports=v:(s.sha512=v.sha512,s.sha384=v.sha384,s.sha512_256=v.sha512_256,s.sha512_224=v.sha512_224,p&&define(function(){return v}))})()}).call(this,e("_process"),"undefined"==typeof global?"undefined"==typeof self?"undefined"==typeof window?{}:window:self:global)},{_process:61}],43:[function(e,t,r){t.exports=e("./lib/api")(e("./lib/keccak"))},{"./lib/api":44,"./lib/keccak":48}],44:[function(e,t,r){const o=e("./keccak"),a=e("./shake");t.exports=function(e){const t=o(e),r=a(e);return function(e,o){const a="string"==typeof e?e.toLowerCase():e;switch(a){case"keccak224":return new t(1152,448,null,224,o);case"keccak256":return new t(1088,512,null,256,o);case"keccak384":return new t(832,768,null,384,o);case"keccak512":return new t(576,1024,null,512,o);case"sha3-224":return new t(1152,448,6,224,o);case"sha3-256":return new t(1088,512,6,256,o);case"sha3-384":return new t(832,768,6,384,o);case"sha3-512":return new t(576,1024,6,512,o);case"shake128":return new r(1344,256,31,o);case"shake256":return new r(1088,512,31,o);default:throw new Error("Invald algorithm: "+e);}}}},{"./keccak":45,"./shake":46}],45:[function(e,t,r){(function(r){const{Transform:o}=e("stream");t.exports=e=>class Keccak extends o{constructor(t,r,o,a,n){super(n),this._rate=t,this._capacity=r,this._delimitedSuffix=o,this._hashBitLength=a,this._options=n,this._state=new e,this._state.initialize(t,r),this._finalized=!1}_transform(e,t,r){let o=null;try{this.update(e,t)}catch(e){o=e}r(o)}_flush(e){let t=null;try{this.push(this.digest())}catch(e){t=e}e(t)}update(e,t){if(!r.isBuffer(e)&&"string"!=typeof e)throw new TypeError("Data must be a string or a buffer");if(this._finalized)throw new Error("Digest already called");return r.isBuffer(e)||(e=r.from(e,t)),this._state.absorb(e),this}digest(e){if(this._finalized)throw new Error("Digest already called");this._finalized=!0,this._delimitedSuffix&&this._state.absorbLastFewBits(this._delimitedSuffix);let t=this._state.squeeze(this._hashBitLength/8);return void 0!==e&&(t=t.toString(e)),this._resetState(),t}_resetState(){return this._state.initialize(this._rate,this._capacity),this}_clone(){const e=new Keccak(this._rate,this._capacity,this._delimitedSuffix,this._hashBitLength,this._options);return this._state.copy(e._state),e._finalized=this._finalized,e}}}).call(this,e("buffer").Buffer)},{buffer:13,stream:81}],46:[function(e,t,r){(function(r){const{Transform:o}=e("stream");t.exports=e=>class Shake extends o{constructor(t,r,o,a){super(a),this._rate=t,this._capacity=r,this._delimitedSuffix=o,this._options=a,this._state=new e,this._state.initialize(t,r),this._finalized=!1}_transform(e,t,r){let o=null;try{this.update(e,t)}catch(e){o=e}r(o)}_flush(){}_read(e){this.push(this.squeeze(e))}update(e,t){if(!r.isBuffer(e)&&"string"!=typeof e)throw new TypeError("Data must be a string or a buffer");if(this._finalized)throw new Error("Squeeze already called");return r.isBuffer(e)||(e=r.from(e,t)),this._state.absorb(e),this}squeeze(e,t){this._finalized||(this._finalized=!0,this._state.absorbLastFewBits(this._delimitedSuffix));let r=this._state.squeeze(e);return void 0!==t&&(r=r.toString(t)),r}_resetState(){return this._state.initialize(this._rate,this._capacity),this}_clone(){const e=new Shake(this._rate,this._capacity,this._delimitedSuffix,this._options);return this._state.copy(e._state),e._finalized=this._finalized,e}}}).call(this,e("buffer").Buffer)},{buffer:13,stream:81}],47:[function(e,t,r){const o=[1,0,32898,0,32906,2147483648,2147516416,2147483648,32907,0,2147483649,0,2147516545,2147483648,32777,2147483648,138,0,136,0,2147516425,0,2147483658,0,2147516555,0,139,2147483648,32905,2147483648,32771,2147483648,32770,2147483648,128,2147483648,32778,0,2147483658,2147483648,2147516545,2147483648,32896,2147483648,2147483649,0,2147516424,2147483648];r.p1600=function(e){for(let t=0;24>t;++t){const r=e[0]^e[10]^e[20]^e[30]^e[40],a=e[1]^e[11]^e[21]^e[31]^e[41],n=e[2]^e[12]^e[22]^e[32]^e[42],s=e[3]^e[13]^e[23]^e[33]^e[43],i=e[4]^e[14]^e[24]^e[34]^e[44],l=e[5]^e[15]^e[25]^e[35]^e[45],d=e[6]^e[16]^e[26]^e[36]^e[46],p=e[7]^e[17]^e[27]^e[37]^e[47],u=e[8]^e[18]^e[28]^e[38]^e[48],g=e[9]^e[19]^e[29]^e[39]^e[49];let y=u^(n<<1|s>>>31),h=g^(s<<1|n>>>31);const f=e[0]^y,m=e[1]^h,A=e[10]^y,x=e[11]^h,k=e[20]^y,S=e[21]^h,w=e[30]^y,v=e[31]^h,T=e[40]^y,E=e[41]^h;y=r^(i<<1|l>>>31),h=a^(l<<1|i>>>31);const B=e[2]^y,I=e[3]^h,P=e[12]^y,U=e[13]^h,R=e[22]^y,C=e[23]^h,D=e[32]^y,O=e[33]^h,L=e[42]^y,j=e[43]^h;y=n^(d<<1|p>>>31),h=s^(p<<1|d>>>31);const N=e[4]^y,z=e[5]^h,M=e[14]^y,F=e[15]^h,q=e[24]^y,G=e[25]^h,K=e[34]^y,H=e[35]^h,W=e[44]^y,V=e[45]^h;y=i^(u<<1|g>>>31),h=l^(g<<1|u>>>31);const Q=e[6]^y,Y=e[7]^h,J=e[16]^y,X=e[17]^h,$=e[26]^y,Z=e[27]^h,ee=e[36]^y,te=e[37]^h,re=e[46]^y,oe=e[47]^h;y=d^(r<<1|a>>>31),h=p^(a<<1|r>>>31);const ae=e[8]^y,ne=e[9]^h,se=e[18]^y,ie=e[19]^h,le=e[28]^y,ce=e[29]^h,de=e[38]^y,pe=e[39]^h,ue=e[48]^y,ge=e[49]^h,ye=f,he=m,fe=x<<4|A>>>28,me=A<<4|x>>>28,be=k<<3|S>>>29,Ae=S<<3|k>>>29,xe=v<<9|w>>>23,_e=w<<9|v>>>23,ke=T<<18|E>>>14,Se=E<<18|T>>>14,we=B<<1|I>>>31,ve=I<<1|B>>>31,Te=U<<12|P>>>20,Ee=P<<12|U>>>20,Be=R<<10|C>>>22,Ie=C<<10|R>>>22,Pe=O<<13|D>>>19,Ue=D<<13|O>>>19,Re=L<<2|j>>>30,Ce=j<<2|L>>>30,De=z<<30|N>>>2,Oe=N<<30|z>>>2,Le=M<<6|F>>>26,je=F<<6|M>>>26,Ne=G<<11|q>>>21,ze=q<<11|G>>>21,Me=K<<15|H>>>17,Fe=H<<15|K>>>17,qe=V<<29|W>>>3,Ge=W<<29|V>>>3,Ke=Q<<28|Y>>>4,He=Y<<28|Q>>>4,We=X<<23|J>>>9,Ve=J<<23|X>>>9,Qe=$<<25|Z>>>7,Ye=Z<<25|$>>>7,Je=ee<<21|te>>>11,Xe=te<<21|ee>>>11,$e=oe<<24|re>>>8,Ze=re<<24|oe>>>8,et=ae<<27|ne>>>5,tt=ne<<27|ae>>>5,rt=se<<20|ie>>>12,ot=ie<<20|se>>>12,at=ce<<7|le>>>25,nt=le<<7|ce>>>25,st=de<<8|pe>>>24,it=pe<<8|de>>>24,lt=ue<<14|ge>>>18,ct=ge<<14|ue>>>18;e[0]=ye^~Te&Ne,e[1]=he^~Ee&ze,e[10]=Ke^~rt&be,e[11]=He^~ot&Ae,e[20]=we^~Le&Qe,e[21]=ve^~je&Ye,e[30]=et^~fe&Be,e[31]=tt^~me&Ie,e[40]=De^~We&at,e[41]=Oe^~Ve&nt,e[2]=Te^~Ne&Je,e[3]=Ee^~ze&Xe,e[12]=rt^~be&Pe,e[13]=ot^~Ae&Ue,e[22]=Le^~Qe&st,e[23]=je^~Ye&it,e[32]=fe^~Be&Me,e[33]=me^~Ie&Fe,e[42]=We^~at&xe,e[43]=Ve^~nt&_e,e[4]=Ne^~Je&lt,e[5]=ze^~Xe&ct,e[14]=be^~Pe&qe,e[15]=Ae^~Ue&Ge,e[24]=Qe^~st&ke,e[25]=Ye^~it&Se,e[34]=Be^~Me&$e,e[35]=Ie^~Fe&Ze,e[44]=at^~xe&Re,e[45]=nt^~_e&Ce,e[6]=Je^~lt&ye,e[7]=Xe^~ct&he,e[16]=Pe^~qe&Ke,e[17]=Ue^~Ge&He,e[26]=st^~ke&we,e[27]=it^~Se&ve,e[36]=Me^~$e&et,e[37]=Fe^~Ze&tt,e[46]=xe^~Re&De,e[47]=_e^~Ce&Oe,e[8]=lt^~ye&Te,e[9]=ct^~he&Ee,e[18]=qe^~Ke&rt,e[19]=Ge^~He&ot,e[28]=ke^~we&Le,e[29]=Se^~ve&je,e[38]=$e^~et&fe,e[39]=Ze^~tt&me,e[48]=Re^~De&We,e[49]=Ce^~Oe&Ve,e[0]^=o[2*t],e[1]^=o[2*t+1]}}},{}],48:[function(e,t,r){(function(r){function o(){this.state=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],this.blockSize=null,this.count=0,this.squeezing=!1}const a=e("./keccak-state-unroll");o.prototype.initialize=function(e,t){for(let r=0;50>r;++r)this.state[r]=0;this.blockSize=e/8,this.count=0,this.squeezing=!1},o.prototype.absorb=function(e){for(let t=0;t<e.length;++t)this.state[~~(this.count/4)]^=e[t]<<8*(this.count%4),this.count+=1,this.count===this.blockSize&&(a.p1600(this.state),this.count=0)},o.prototype.absorbLastFewBits=function(e){this.state[~~(this.count/4)]^=e<<8*(this.count%4),0!=(128&e)&&this.count===this.blockSize-1&&a.p1600(this.state),this.state[~~((this.blockSize-1)/4)]^=128<<8*((this.blockSize-1)%4),a.p1600(this.state),this.count=0,this.squeezing=!0},o.prototype.squeeze=function(e){this.squeezing||this.absorbLastFewBits(1);const t=r.alloc(e);for(let r=0;r<e;++r)t[r]=255&this.state[~~(this.count/4)]>>>8*(this.count%4),this.count+=1,this.count===this.blockSize&&(a.p1600(this.state),this.count=0);return t},o.prototype.copy=function(e){for(let t=0;50>t;++t)e.state[t]=this.state[t];e.blockSize=this.blockSize,e.count=this.count,e.squeezing=this.squeezing},t.exports=o}).call(this,e("buffer").Buffer)},{"./keccak-state-unroll":47,buffer:13}],49:[function(e,t,r){'use strict';var o=function(e){return e!==e};t.exports=function(e,t){return 0===e&&0===t?1/e==1/t:!(e!==t)||!!(o(e)&&o(t))}},{}],50:[function(e,t,r){'use strict';var o=e("define-properties"),a=e("es-abstract/helpers/callBind"),n=e("./implementation"),s=e("./polyfill"),i=e("./shim"),l=a(s(),Object);o(l,{getPolyfill:s,implementation:n,shim:i}),t.exports=l},{"./implementation":49,"./polyfill":55,"./shim":56,"define-properties":15,"es-abstract/helpers/callBind":52}],51:[function(e,t,r){'use strict';var o=SyntaxError,a=Function,n=TypeError,s=function(e){try{return Function("\"use strict\"; return ("+e+").constructor;")()}catch(t){}},l=Object.getOwnPropertyDescriptor;if(l)try{l({},"")}catch(t){l=null}var d=function(){throw new n},p=l?function(){try{return arguments.callee,d}catch(e){try{return l(arguments,"callee").get}catch(e){return d}}}():d,u=e("has-symbols")(),g=Object.getPrototypeOf||function(e){return e.__proto__},y=s("async function* () {}"),h=y?y.prototype:void 0,f=h?h.prototype:void 0,m="undefined"==typeof Uint8Array?void 0:g(Uint8Array),A={"%AggregateError%":"undefined"==typeof AggregateError?void 0:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?void 0:ArrayBuffer,"%ArrayIteratorPrototype%":u?g([][Symbol.iterator]()):void 0,"%AsyncFromSyncIteratorPrototype%":void 0,"%AsyncFunction%":s("async function () {}"),"%AsyncGenerator%":h,"%AsyncGeneratorFunction%":y,"%AsyncIteratorPrototype%":f?g(f):void 0,"%Atomics%":"undefined"==typeof Atomics?void 0:Atomics,"%BigInt%":"undefined"==typeof BigInt?void 0:BigInt,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?void 0:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":"undefined"==typeof Float32Array?void 0:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?void 0:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?void 0:FinalizationRegistry,"%Function%":a,"%GeneratorFunction%":s("function* () {}"),"%Int8Array%":"undefined"==typeof Int8Array?void 0:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?void 0:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?void 0:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":u?g(g([][Symbol.iterator]())):void 0,"%JSON%":"object"==typeof JSON?JSON:void 0,"%Map%":"undefined"==typeof Map?void 0:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&u?g(new Map()[Symbol.iterator]()):void 0,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?void 0:Promise,"%Proxy%":"undefined"==typeof Proxy?void 0:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":"undefined"==typeof Reflect?void 0:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?void 0:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&u?g(new Set()[Symbol.iterator]()):void 0,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?void 0:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":u?g(""[Symbol.iterator]()):void 0,"%Symbol%":u?Symbol:void 0,"%SyntaxError%":o,"%ThrowTypeError%":p,"%TypedArray%":m,"%TypeError%":n,"%Uint8Array%":"undefined"==typeof Uint8Array?void 0:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?void 0:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?void 0:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?void 0:Uint32Array,"%URIError%":URIError,"%WeakMap%":"undefined"==typeof WeakMap?void 0:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?void 0:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?void 0:WeakSet},x={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},k=e("function-bind"),S=e("has"),w=k.call(Function.call,Array.prototype.concat),v=k.call(Function.apply,Array.prototype.splice),T=k.call(Function.call,_Stringprototype.replace),E=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,B=/\\(\\)?/g,I=function(e){var t=[];return T(e,E,function(e,r,o,a){t[t.length]=o?T(a,B,"$1"):r||e}),t},P=function(e,t){var r=e,a;if(S(x,r)&&(a=x[r],r="%"+a[0]+"%"),S(A,r)){var s=A[r];if("undefined"==typeof s&&!t)throw new n("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:a,name:r,value:s}}throw new o("intrinsic "+e+" does not exist!")};t.exports=function(e,t){if("string"!=typeof e||0===e.length)throw new n("intrinsic name must be a non-empty string");if(1<arguments.length&&"boolean"!=typeof t)throw new n("\"allowMissing\" argument must be a boolean");var r=I(e),o=0<r.length?r[0]:"",a=P("%"+o+"%",t),s=a.name,d=a.value,p=!1,u=a.alias;u&&(o=u[0],v(r,w([0,1],u)));for(var g=1,y=!0,h;g<r.length;g+=1)if(h=r[g],"constructor"!==h&&y||(p=!0),o+="."+h,s="%"+o+"%",S(A,s))d=A[s];else if(null!=d){if(l&&g+1>=r.length){var f=l(d,h);if(y=!!f,!t&&!(h in d))throw new n("base intrinsic for "+e+" exists, but the property is not available.");d=y&&"get"in f&&!("originalValue"in f.get)?f.get:d[h]}else y=S(d,h),d=d[h];y&&!p&&(A[s]=d)}return d}},{"function-bind":21,has:22,"has-symbols":53}],52:[function(e,t,r){arguments[4][35][0].apply(r,arguments)},{"../GetIntrinsic":51,dup:35,"function-bind":21}],53:[function(e,t,r){arguments[4][38][0].apply(r,arguments)},{"./shams":54,dup:38}],54:[function(e,t,r){arguments[4][39][0].apply(r,arguments)},{dup:39}],55:[function(e,t,r){'use strict';var o=e("./implementation");t.exports=function(){return"function"==typeof Object.is?Object.is:o}},{"./implementation":49}],56:[function(e,t,r){'use strict';var o=e("./polyfill"),a=e("define-properties");t.exports=function(){var e=o();return a(Object,{is:e},{is:function(){return Object.is!==e}}),e}},{"./polyfill":55,"define-properties":15}],57:[function(e,t,r){'use strict';var o;if(!Object.keys){var a=Object.prototype.hasOwnProperty,n=Object.prototype.toString,s=e("./isArguments"),i=Object.prototype.propertyIsEnumerable,l=!i.call({toString:null},"toString"),d=i.call(function(){},"prototype"),p=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],u=function(e){var t=e.constructor;return t&&t.prototype===e},g={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},y=function(){if("undefined"==typeof window)return!1;for(var e in window)try{if(!g["$"+e]&&a.call(window,e)&&null!==window[e]&&"object"==typeof window[e])try{u(window[e])}catch(t){return!0}}catch(t){return!0}return!1}(),h=function(e){if("undefined"==typeof window||!y)return u(e);try{return u(e)}catch(t){return!1}};o=function(e){var t=null!==e&&"object"==typeof e,r="[object Function]"===n.call(e),o=s(e),u=t&&"[object String]"===n.call(e),g=[];if(!t&&!r&&!o)throw new TypeError("Object.keys called on a non-object");if(u&&0<e.length&&!a.call(e,0))for(var y=0;y<e.length;++y)g.push(y+"");if(o&&0<e.length)for(var f=0;f<e.length;++f)g.push(f+"");else for(var m in e)!(d&&r&&"prototype"===m)&&a.call(e,m)&&g.push(m+"");if(l)for(var A=h(e),x=0;x<p.length;++x)!(A&&"constructor"===p[x])&&a.call(e,p[x])&&g.push(p[x]);return g}}t.exports=o},{"./isArguments":59}],58:[function(e,t,r){'use strict';var o=Array.prototype.slice,a=e("./isArguments"),n=Object.keys,s=n?function(e){return n(e)}:e("./implementation"),i=Object.keys;s.shim=function(){if(Object.keys){var e=function(){var e=Object.keys(arguments);return e&&e.length===arguments.length}(1,2);e||(Object.keys=function(e){return a(e)?i(o.call(e)):i(e)})}else Object.keys=s;return Object.keys||s},t.exports=s},{"./implementation":57,"./isArguments":59}],59:[function(e,t,r){'use strict';var o=Object.prototype.toString;t.exports=function(e){var t=o.call(e),r="[object Arguments]"===t;return r||(r="[object Array]"!==t&&null!==e&&"object"==typeof e&&"number"==typeof e.length&&0<=e.length&&"[object Function]"===o.call(e.callee)),r}},{}],60:[function(e,t,r){(function(e){'use strict';t.exports=e.version&&0!==e.version.indexOf("v0.")&&(0!==e.version.indexOf("v1.")||0===e.version.indexOf("v1.8."))?e:{nextTick:function(t,r,o,a){if("function"!=typeof t)throw new TypeError("\"callback\" argument must be a function");var n=arguments.length,s,l;switch(n){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,o)});case 4:return e.nextTick(function(){t.call(null,r,o,a)});default:for(s=Array(n-1),l=0;l<s.length;)s[l++]=arguments[l];return e.nextTick(function(){t.apply(null,s)});}}}}).call(this,e("_process"))},{_process:61}],61:[function(e,t,r){function o(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function n(t){if(g===setTimeout)return setTimeout(t,0);if((g===o||!g)&&setTimeout)return g=setTimeout,setTimeout(t,0);try{return g(t,0)}catch(r){try{return g.call(null,t,0)}catch(r){return g.call(this,t,0)}}}function s(t){if(y===clearTimeout)return clearTimeout(t);if((y===a||!y)&&clearTimeout)return y=clearTimeout,clearTimeout(t);try{return y(t)}catch(r){try{return y.call(null,t)}catch(r){return y.call(this,t)}}}function i(){f&&A&&(f=!1,A.length?h=A.concat(h):m=-1,h.length&&l())}function l(){if(!f){var e=n(i);f=!0;for(var t=h.length;t;){for(A=h,h=[];++m<t;)A&&A[m].run();m=-1,t=h.length}A=null,f=!1,s(e)}}function d(e,t){this.fun=e,this.array=t}function p(){}var u=t.exports={},g,y;(function(){try{g="function"==typeof setTimeout?setTimeout:o}catch(t){g=o}try{y="function"==typeof clearTimeout?clearTimeout:a}catch(t){y=a}})();var h=[],f=!1,m=-1,A;u.nextTick=function(e){var t=Array(arguments.length-1);if(1<arguments.length)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];h.push(new d(e,t)),1!==h.length||f||n(l)},d.prototype.run=function(){this.fun.apply(null,this.array)},u.title="browser",u.browser=!0,u.env={},u.argv=[],u.version="",u.versions={},u.on=p,u.addListener=p,u.once=p,u.off=p,u.removeListener=p,u.removeAllListeners=p,u.emit=p,u.prependListener=p,u.prependOnceListener=p,u.listeners=function(e){return[]},u.binding=function(e){throw new Error("process.binding is not supported")},u.cwd=function(){return"/"},u.chdir=function(e){throw new Error("process.chdir is not supported")},u.umask=function(){return 0}},{}],62:[function(e,t,r){'use strict';var o=_Stringprototype.replace,a=/%20/g,n=e("./utils"),s={RFC1738:"RFC1738",RFC3986:"RFC3986"};t.exports=n.assign({default:s.RFC3986,formatters:{RFC1738:function(e){return o.call(e,a,"+")},RFC3986:function(e){return e+""}}},s)},{"./utils":66}],63:[function(e,t,r){'use strict';var o=e("./stringify"),a=e("./parse"),n=e("./formats");t.exports={formats:n,parse:a,stringify:o}},{"./formats":62,"./parse":64,"./stringify":65}],64:[function(e,t,r){'use strict';var o=e("./utils"),a=Object.prototype.hasOwnProperty,n=Array.isArray,s={allowDots:!1,allowPrototypes:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:o.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},l=function(e){return e.replace(/&#(\d+);/g,function(e,t){return _StringfromCharCode(parseInt(t,10))})},d=function(e,t){return e&&"string"==typeof e&&t.comma&&-1<e.indexOf(",")?e.split(","):e},p=function(e,t){var r={},p=t.ignoreQueryPrefix?e.replace(/^\?/,""):e,u=t.parameterLimit===1/0?void 0:t.parameterLimit,g=p.split(t.delimiter,u),y=-1,h=t.charset,f;if(t.charsetSentinel)for(f=0;f<g.length;++f)0===g[f].indexOf("utf8=")&&(g[f]==="utf8=%E2%9C%93"?h="utf-8":g[f]==="utf8=%26%2310003%3B"&&(h="iso-8859-1"),y=f,f=g.length);for(f=0;f<g.length;++f)if(f!==y){var m=g[f],A=m.indexOf("]="),x=-1===A?m.indexOf("="):A+1,k,S;-1===x?(k=t.decoder(m,s.decoder,h,"key"),S=t.strictNullHandling?null:""):(k=t.decoder(m.slice(0,x),s.decoder,h,"key"),S=o.maybeMap(d(m.slice(x+1),t),function(e){return t.decoder(e,s.decoder,h,"value")})),S&&t.interpretNumericEntities&&"iso-8859-1"===h&&(S=l(S)),-1<m.indexOf("[]=")&&(S=n(S)?[S]:S),r[k]=a.call(r,k)?o.combine(r[k],S):S}return r},u=function(e,t,r,o){for(var a=o?t:d(t,r),n=e.length-1;0<=n;--n){var s=e[n],l;if("[]"===s&&r.parseArrays)l=[].concat(a);else{l=r.plainObjects?Object.create(null):{};var p="["===s.charAt(0)&&"]"===s.charAt(s.length-1)?s.slice(1,-1):s,u=parseInt(p,10);r.parseArrays||""!==p?!isNaN(u)&&s!==p&&u+""===p&&0<=u&&r.parseArrays&&u<=r.arrayLimit?(l=[],l[u]=a):l[p]=a:l={0:a}}a=l}return a},g=function(e,t,r,o){if(e){var n=r.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,s=/(\[[^[\]]*])/,l=/(\[[^[\]]*])/g,d=0<r.depth&&s.exec(n),p=d?n.slice(0,d.index):n,g=[];if(p){if(!r.plainObjects&&a.call(Object.prototype,p)&&!r.allowPrototypes)return;g.push(p)}for(var y=0;0<r.depth&&null!==(d=l.exec(n))&&y<r.depth;){if(y+=1,!r.plainObjects&&a.call(Object.prototype,d[1].slice(1,-1))&&!r.allowPrototypes)return;g.push(d[1])}return d&&g.push("["+n.slice(d.index)+"]"),u(g,t,r,o)}},y=function(e){if(!e)return s;if(null!==e.decoder&&void 0!==e.decoder&&"function"!=typeof e.decoder)throw new TypeError("Decoder has to be a function.");if("undefined"!=typeof e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var t="undefined"==typeof e.charset?s.charset:e.charset;return{allowDots:"undefined"==typeof e.allowDots?s.allowDots:!!e.allowDots,allowPrototypes:"boolean"==typeof e.allowPrototypes?e.allowPrototypes:s.allowPrototypes,arrayLimit:"number"==typeof e.arrayLimit?e.arrayLimit:s.arrayLimit,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:s.charsetSentinel,comma:"boolean"==typeof e.comma?e.comma:s.comma,decoder:"function"==typeof e.decoder?e.decoder:s.decoder,delimiter:"string"==typeof e.delimiter||o.isRegExp(e.delimiter)?e.delimiter:s.delimiter,depth:"number"==typeof e.depth||!1===e.depth?+e.depth:s.depth,ignoreQueryPrefix:!0===e.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof e.interpretNumericEntities?e.interpretNumericEntities:s.interpretNumericEntities,parameterLimit:"number"==typeof e.parameterLimit?e.parameterLimit:s.parameterLimit,parseArrays:!1!==e.parseArrays,plainObjects:"boolean"==typeof e.plainObjects?e.plainObjects:s.plainObjects,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:s.strictNullHandling}};t.exports=function(e,t){var r=y(t);if(""===e||null===e||"undefined"==typeof e)return r.plainObjects?Object.create(null):{};for(var a="string"==typeof e?p(e,r):e,n=r.plainObjects?Object.create(null):{},s=Object.keys(a),l=0;l<s.length;++l){var d=s[l],u=g(d,a[d],r,"string"==typeof e);n=o.merge(n,u,r)}return o.compact(n)}},{"./utils":66}],65:[function(e,t,r){'use strict';var o=e("./utils"),a=e("./formats"),n=Object.prototype.hasOwnProperty,s={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},l=Array.isArray,d=Array.prototype.push,p=function(e,t){d.apply(e,l(t)?t:[t])},u=Date.prototype.toISOString,g=a["default"],y={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:o.encode,encodeValuesOnly:!1,format:g,formatter:a.formatters[g],indices:!1,serializeDate:function(e){return u.call(e)},skipNulls:!1,strictNullHandling:!1},h=function(e){return"string"==typeof e||"number"==typeof e||"boolean"==typeof e||"symbol"==typeof e||"bigint"==typeof e},f=function e(t,r,a,n,s,d,u,g,f,m,A,x,k){var S=t;if("function"==typeof u?S=u(r,S):S instanceof Date?S=m(S):"comma"===a&&l(S)&&(S=o.maybeMap(S,function(e){return e instanceof Date?m(e):e}).join(",")),null===S){if(n)return d&&!x?d(r,y.encoder,k,"key"):r;S=""}if(h(S)||o.isBuffer(S)){if(d){var w=x?r:d(r,y.encoder,k,"key");return[A(w)+"="+A(d(S,y.encoder,k,"value"))]}return[A(r)+"="+A(S+"")]}var v=[];if("undefined"==typeof S)return v;var T;if(l(u))T=u;else{var E=Object.keys(S);T=g?E.sort(g):E}for(var B=0;B<T.length;++B){var I=T[B],P=S[I];if(!(s&&null===P)){var U=l(S)?"function"==typeof a?a(r,I):r:r+(f?"."+I:"["+I+"]");p(v,e(P,U,a,n,s,d,u,g,f,m,A,x,k))}}return v},m=function(e){if(!e)return y;if(null!==e.encoder&&void 0!==e.encoder&&"function"!=typeof e.encoder)throw new TypeError("Encoder has to be a function.");var t=e.charset||y.charset;if("undefined"!=typeof e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var r=a["default"];if("undefined"!=typeof e.format){if(!n.call(a.formatters,e.format))throw new TypeError("Unknown format option provided.");r=e.format}var o=a.formatters[r],s=y.filter;return("function"==typeof e.filter||l(e.filter))&&(s=e.filter),{addQueryPrefix:"boolean"==typeof e.addQueryPrefix?e.addQueryPrefix:y.addQueryPrefix,allowDots:"undefined"==typeof e.allowDots?y.allowDots:!!e.allowDots,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:y.charsetSentinel,delimiter:"undefined"==typeof e.delimiter?y.delimiter:e.delimiter,encode:"boolean"==typeof e.encode?e.encode:y.encode,encoder:"function"==typeof e.encoder?e.encoder:y.encoder,encodeValuesOnly:"boolean"==typeof e.encodeValuesOnly?e.encodeValuesOnly:y.encodeValuesOnly,filter:s,formatter:o,serializeDate:"function"==typeof e.serializeDate?e.serializeDate:y.serializeDate,skipNulls:"boolean"==typeof e.skipNulls?e.skipNulls:y.skipNulls,sort:"function"==typeof e.sort?e.sort:null,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:y.strictNullHandling}};t.exports=function(e,t){var r=e,o=m(t),a,n;"function"==typeof o.filter?(n=o.filter,r=n("",r)):l(o.filter)&&(n=o.filter,a=n);var d=[];if("object"!=typeof r||null===r)return"";var u=t&&t.arrayFormat in s?t.arrayFormat:t&&"indices"in t?t.indices?"indices":"repeat":"indices";var g=s[u];a||(a=Object.keys(r)),o.sort&&a.sort(o.sort);for(var y=0,h;y<a.length;++y)(h=a[y],!(o.skipNulls&&null===r[h]))&&p(d,f(r[h],h,g,o.strictNullHandling,o.skipNulls,o.encode?o.encoder:null,o.filter,o.sort,o.allowDots,o.serializeDate,o.formatter,o.encodeValuesOnly,o.charset));var A=d.join(o.delimiter),x=!0===o.addQueryPrefix?"?":"";return o.charsetSentinel&&("iso-8859-1"===o.charset?x+="utf8=%26%2310003%3B&":x+="utf8=%E2%9C%93&"),0<A.length?x+A:""}},{"./formats":62,"./utils":66}],66:[function(e,t,r){'use strict';var o=Object.prototype.hasOwnProperty,a=Array.isArray,n=function(){for(var e=[],t=0;256>t;++t)e.push("%"+((16>t?"0":"")+t.toString(16)).toUpperCase());return e}(),s=function(e){for(;1<e.length;){var t=e.pop(),r=t.obj[t.prop];if(a(r)){for(var o=[],n=0;n<r.length;++n)"undefined"!=typeof r[n]&&o.push(r[n]);t.obj[t.prop]=o}}},i=function(e,t){for(var r=t&&t.plainObjects?Object.create(null):{},o=0;o<e.length;++o)"undefined"!=typeof e[o]&&(r[o]=e[o]);return r};t.exports={arrayToObject:i,assign:function(e,t){return Object.keys(t).reduce(function(e,r){return e[r]=t[r],e},e)},combine:function(e,t){return[].concat(e,t)},compact:function(e){for(var t=[{obj:{o:e},prop:"o"}],r=[],o=0;o<t.length;++o)for(var a=t[o],n=a.obj[a.prop],l=Object.keys(n),d=0;d<l.length;++d){var p=l[d],u=n[p];"object"==typeof u&&null!==u&&-1===r.indexOf(u)&&(t.push({obj:n,prop:p}),r.push(u))}return s(t),e},decode:function(e,t,r){var o=e.replace(/\+/g," ");if("iso-8859-1"===r)return o.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(o)}catch(t){return o}},encode:function(e,t,r){if(0===e.length)return e;var o=e;if("symbol"==typeof e?o=Symbol.prototype.toString.call(e):"string"!=typeof e&&(o=e+""),"iso-8859-1"===r)return escape(o).replace(/%u[0-9a-f]{4}/gi,function(e){return"%26%23"+parseInt(e.slice(2),16)+"%3B"});for(var a="",s=0,l;s<o.length;++s){if(l=o.charCodeAt(s),45===l||46===l||95===l||126===l||48<=l&&57>=l||65<=l&&90>=l||97<=l&&122>=l){a+=o.charAt(s);continue}if(128>l){a+=n[l];continue}if(2048>l){a+=n[192|l>>6]+n[128|63&l];continue}if(55296>l||57344<=l){a+=n[224|l>>12]+n[128|63&l>>6]+n[128|63&l];continue}s+=1,l=65536+((1023&l)<<10|1023&o.charCodeAt(s)),a+=n[240|l>>18]+n[128|63&l>>12]+n[128|63&l>>6]+n[128|63&l]}return a},isBuffer:function(e){return!!(e&&"object"==typeof e)&&!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},isRegExp:function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},maybeMap:function(e,t){if(a(e)){for(var r=[],o=0;o<e.length;o+=1)r.push(t(e[o]));return r}return t(e)},merge:function e(t,r,n){if(!r)return t;if("object"!=typeof r){if(a(t))t.push(r);else if(t&&"object"==typeof t)(n&&(n.plainObjects||n.allowPrototypes)||!o.call(Object.prototype,r))&&(t[r]=!0);else return[t,r];return t}if(!t||"object"!=typeof t)return[t].concat(r);var s=t;return a(t)&&!a(r)&&(s=i(t,n)),a(t)&&a(r)?(r.forEach(function(r,a){if(o.call(t,a)){var s=t[a];s&&"object"==typeof s&&r&&"object"==typeof r?t[a]=e(s,r,n):t.push(r)}else t[a]=r}),t):Object.keys(r).reduce(function(t,a){var s=r[a];return t[a]=o.call(t,a)?e(t[a],s,n):s,t},s)}}},{}],67:[function(e,t,r){t.exports=e("./lib/_stream_duplex.js")},{"./lib/_stream_duplex.js":68}],68:[function(e,t,r){'use strict';function o(e){return this instanceof o?void(d.call(this,e),p.call(this,e),e&&!1===e.readable&&(this.readable=!1),e&&!1===e.writable&&(this.writable=!1),this.allowHalfOpen=!0,e&&!1===e.allowHalfOpen&&(this.allowHalfOpen=!1),this.once("end",a)):new o(e)}function a(){this.allowHalfOpen||this._writableState.ended||s.nextTick(n,this)}function n(e){e.end()}var s=e("process-nextick-args"),i=Object.keys||function(e){var t=[];for(var r in e)t.push(r);return t};t.exports=o;var l=e("core-util-is");l.inherits=e("inherits");var d=e("./_stream_readable"),p=e("./_stream_writable");l.inherits(o,d);for(var u=i(p.prototype),g=0,y;g<u.length;g++)y=u[g],o.prototype[y]||(o.prototype[y]=p.prototype[y]);Object.defineProperty(o.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(o.prototype,"destroyed",{get:function(){return void 0!==this._readableState&&void 0!==this._writableState&&this._readableState.destroyed&&this._writableState.destroyed},set:function(e){void 0===this._readableState||void 0===this._writableState||(this._readableState.destroyed=e,this._writableState.destroyed=e)}}),o.prototype._destroy=function(e,t){this.push(null),this.end(),s.nextTick(t,e)}},{"./_stream_readable":70,"./_stream_writable":72,"core-util-is":14,inherits:25,"process-nextick-args":60}],69:[function(e,t,r){'use strict';function o(e){return this instanceof o?void a.call(this,e):new o(e)}t.exports=o;var a=e("./_stream_transform"),n=e("core-util-is");n.inherits=e("inherits"),n.inherits(o,a),o.prototype._transform=function(e,t,r){r(null,e)}},{"./_stream_transform":71,"core-util-is":14,inherits:25}],70:[function(e,t,r){(function(r,o){'use strict';function a(e){return F.from(e)}function n(e){return F.isBuffer(e)||e instanceof q}function s(e,t,r){return"function"==typeof e.prependListener?e.prependListener(t,r):void(e._events&&e._events[t]?L(e._events[t])?e._events[t].unshift(r):e._events[t]=[r,e._events[t]]:e.on(t,r))}function i(t,r){j=j||e("./_stream_duplex"),t=t||{};var o=r instanceof j;this.objectMode=!!t.objectMode,o&&(this.objectMode=this.objectMode||!!t.readableObjectMode);var a=t.highWaterMark,n=t.readableHighWaterMark,s=this.objectMode?16:16384;this.highWaterMark=a||0===a?a:o&&(n||0===n)?n:s,this.highWaterMark=_Mathfloor(this.highWaterMark),this.buffer=new W,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&&(!Q&&(Q=e("string_decoder/").StringDecoder),this.decoder=new Q(t.encoding),this.encoding=t.encoding)}function l(t){return j=j||e("./_stream_duplex"),this instanceof l?void(this._readableState=new i(t,this),this.readable=!0,t&&("function"==typeof t.read&&(this._read=t.read),"function"==typeof t.destroy&&(this._destroy=t.destroy)),M.call(this)):new l(t)}function d(e,t,r,o,n){var s=e._readableState;if(null===t)s.reading=!1,f(e,s);else{var i;n||(i=u(s,t)),i?e.emit("error",i):s.objectMode||t&&0<t.length?("string"!=typeof t&&!s.objectMode&&Object.getPrototypeOf(t)!==F.prototype&&(t=a(t)),o?s.endEmitted?e.emit("error",new Error("stream.unshift() after end event")):p(e,s,t,!0):s.ended?e.emit("error",new Error("stream.push() after EOF")):(s.reading=!1,s.decoder&&!r?(t=s.decoder.write(t),s.objectMode||0!==t.length?p(e,s,t,!1):x(e,s)):p(e,s,t,!1))):!o&&(s.reading=!1)}return g(s)}function p(e,t,r,o){t.flowing&&0===t.length&&!t.sync?(e.emit("data",r),e.read(0)):(t.length+=t.objectMode?1:r.length,o?t.buffer.unshift(r):t.buffer.push(r),t.needReadable&&m(e)),x(e,t)}function u(e,t){var r;return n(t)||"string"==typeof t||void 0===t||e.objectMode||(r=new TypeError("Invalid non-string/buffer chunk")),r}function g(e){return!e.ended&&(e.needReadable||e.length<e.highWaterMark||0===e.length)}function y(e){return 8388608<=e?e=8388608:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}function h(e,t){return 0>=e||0===t.length&&t.ended?0:t.objectMode?1:e===e?(e>t.highWaterMark&&(t.highWaterMark=y(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0)):t.flowing&&t.length?t.buffer.head.data.length:t.length}function f(e,t){if(!t.ended){if(t.decoder){var r=t.decoder.end();r&&r.length&&(t.buffer.push(r),t.length+=t.objectMode?1:r.length)}t.ended=!0,m(e)}}function m(e){var t=e._readableState;t.needReadable=!1,t.emittedReadable||(H("emitReadable",t.flowing),t.emittedReadable=!0,t.sync?O.nextTick(A,e):A(e))}function A(e){H("emit readable"),e.emit("readable"),E(e)}function x(e,t){t.readingMore||(t.readingMore=!0,O.nextTick(k,e,t))}function k(e,t){for(var r=t.length;!t.reading&&!t.flowing&&!t.ended&&t.length<t.highWaterMark&&(H("maybeReadMore read 0"),e.read(0),r!==t.length);)r=t.length;t.readingMore=!1}function S(e){return function(){var t=e._readableState;H("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&z(e,"data")&&(t.flowing=!0,E(e))}}function w(e){H("readable nexttick read 0"),e.read(0)}function v(e,t){t.resumeScheduled||(t.resumeScheduled=!0,O.nextTick(T,e,t))}function T(e,t){t.reading||(H("resume read 0"),e.read(0)),t.resumeScheduled=!1,t.awaitDrain=0,e.emit("resume"),E(e),t.flowing&&!t.reading&&e.read(0)}function E(e){var t=e._readableState;for(H("flow",t.flowing);t.flowing&&null!==e.read(););}function B(e,t){if(0===t.length)return null;var r;return t.objectMode?r=t.buffer.shift():!e||e>=t.length?(r=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.head.data:t.buffer.concat(t.length),t.buffer.clear()):r=I(e,t.buffer,t.decoder),r}function I(e,t,r){var o;return e<t.head.data.length?(o=t.head.data.slice(0,e),t.head.data=t.head.data.slice(e)):e===t.head.data.length?o=t.shift():o=r?P(e,t):U(e,t),o}function P(e,t){var r=t.head,o=1,a=r.data;for(e-=a.length;r=r.next;){var s=r.data,i=e>s.length?s.length:e;if(a+=i===s.length?s:s.slice(0,e),e-=i,0===e){i===s.length?(++o,t.head=r.next?r.next:t.tail=null):(t.head=r,r.data=s.slice(i));break}++o}return t.length-=o,a}function U(e,t){var r=F.allocUnsafe(e),o=t.head,a=1;for(o.data.copy(r),e-=o.data.length;o=o.next;){var s=o.data,i=e>s.length?s.length:e;if(s.copy(r,r.length-e,0,i),e-=i,0===e){i===s.length?(++a,t.head=o.next?o.next:t.tail=null):(t.head=o,o.data=s.slice(i));break}++a}return t.length-=a,r}function R(e){var t=e._readableState;if(0<t.length)throw new Error("\"endReadable()\" called on non-empty stream");t.endEmitted||(t.ended=!0,O.nextTick(C,t,e))}function C(e,t){e.endEmitted||0!==e.length||(e.endEmitted=!0,t.readable=!1,t.emit("end"))}function D(e,t){for(var r=0,o=e.length;r<o;r++)if(e[r]===t)return r;return-1}var O=e("process-nextick-args");t.exports=l;var L=e("isarray"),j;l.ReadableState=i;var N=e("events").EventEmitter,z=function(e,t){return e.listeners(t).length},M=e("./internal/streams/stream"),F=e("safe-buffer").Buffer,q=o.Uint8Array||function(){},G=e("core-util-is");G.inherits=e("inherits");var K=e("util"),H=void 0;H=K&&K.debuglog?K.debuglog("stream"):function(){};var W=e("./internal/streams/BufferList"),V=e("./internal/streams/destroy"),Q;G.inherits(l,M);var Y=["error","close","destroy","pause","resume"];Object.defineProperty(l.prototype,"destroyed",{get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e)}}),l.prototype.destroy=V.destroy,l.prototype._undestroy=V.undestroy,l.prototype._destroy=function(e,t){this.push(null),t(e)},l.prototype.push=function(e,t){var r=this._readableState,o;return r.objectMode?o=!0:"string"==typeof e&&(t=t||r.defaultEncoding,t!==r.encoding&&(e=F.from(e,t),t=""),o=!0),d(this,e,t,!1,o)},l.prototype.unshift=function(e){return d(this,e,null,!0,!1)},l.prototype.isPaused=function(){return!1===this._readableState.flowing},l.prototype.setEncoding=function(t){return Q||(Q=e("string_decoder/").StringDecoder),this._readableState.decoder=new Q(t),this._readableState.encoding=t,this};l.prototype.read=function(e){H("read",e),e=parseInt(e,10);var t=this._readableState,r=e;if(0!==e&&(t.emittedReadable=!1),0===e&&t.needReadable&&(t.length>=t.highWaterMark||t.ended))return H("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?R(this):m(this),null;if(e=h(e,t),0===e&&t.ended)return 0===t.length&&R(this),null;var o=t.needReadable;H("need readable",o),(0===t.length||t.length-e<t.highWaterMark)&&(o=!0,H("length less than watermark",o)),t.ended||t.reading?(o=!1,H("reading or ended",o)):o&&(H("do read"),t.reading=!0,t.sync=!0,0===t.length&&(t.needReadable=!0),this._read(t.highWaterMark),t.sync=!1,!t.reading&&(e=h(r,t)));var a;return a=0<e?B(e,t):null,null===a?(t.needReadable=!0,e=0):t.length-=e,0===t.length&&(!t.ended&&(t.needReadable=!0),r!==e&&t.ended&&R(this)),null!==a&&this.emit("data",a),a},l.prototype._read=function(e){this.emit("error",new Error("_read() is not implemented"))},l.prototype.pipe=function(e,t){function o(e,t){H("onunpipe"),e===g&&t&&!1===t.hasUnpiped&&(t.hasUnpiped=!0,n())}function a(){H("onend"),e.end()}function n(){H("cleanup"),e.removeListener("close",d),e.removeListener("finish",p),e.removeListener("drain",m),e.removeListener("error",l),e.removeListener("unpipe",o),g.removeListener("end",a),g.removeListener("end",u),g.removeListener("data",i),A=!0,y.awaitDrain&&(!e._writableState||e._writableState.needDrain)&&m()}function i(t){H("ondata"),x=!1;var r=e.write(t);!1!==r||x||((1===y.pipesCount&&y.pipes===e||1<y.pipesCount&&-1!==D(y.pipes,e))&&!A&&(H("false write response, pause",g._readableState.awaitDrain),g._readableState.awaitDrain++,x=!0),g.pause())}function l(t){H("onerror",t),u(),e.removeListener("error",l),0===z(e,"error")&&e.emit("error",t)}function d(){e.removeListener("finish",p),u()}function p(){H("onfinish"),e.removeListener("close",d),u()}function u(){H("unpipe"),g.unpipe(e)}var g=this,y=this._readableState;switch(y.pipesCount){case 0:y.pipes=e;break;case 1:y.pipes=[y.pipes,e];break;default:y.pipes.push(e);}y.pipesCount+=1,H("pipe count=%d opts=%j",y.pipesCount,t);var h=(!t||!1!==t.end)&&e!==r.stdout&&e!==r.stderr,f=h?a:u;y.endEmitted?O.nextTick(f):g.once("end",f),e.on("unpipe",o);var m=S(g);e.on("drain",m);var A=!1,x=!1;return g.on("data",i),s(e,"error",l),e.once("close",d),e.once("finish",p),e.emit("pipe",g),y.flowing||(H("pipe resume"),g.resume()),e},l.prototype.unpipe=function(e){var t=this._readableState,r={hasUnpiped:!1};if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes?this:(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,r),this);if(!e){var o=t.pipes,a=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var n=0;n<a;n++)o[n].emit("unpipe",this,r);return this}var s=D(t.pipes,e);return-1===s?this:(t.pipes.splice(s,1),t.pipesCount-=1,1===t.pipesCount&&(t.pipes=t.pipes[0]),e.emit("unpipe",this,r),this)},l.prototype.on=function(e,t){var r=M.prototype.on.call(this,e,t);if("data"===e)!1!==this._readableState.flowing&&this.resume();else if("readable"===e){var o=this._readableState;o.endEmitted||o.readableListening||(o.readableListening=o.needReadable=!0,o.emittedReadable=!1,o.reading?o.length&&m(this):O.nextTick(w,this))}return r},l.prototype.addListener=l.prototype.on,l.prototype.resume=function(){var e=this._readableState;return e.flowing||(H("resume"),e.flowing=!0,v(this,e)),this},l.prototype.pause=function(){return H("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(H("pause"),this._readableState.flowing=!1,this.emit("pause")),this},l.prototype.wrap=function(e){var t=this,r=this._readableState,o=!1;for(var a in e.on("end",function(){if(H("wrapped end"),r.decoder&&!r.ended){var e=r.decoder.end();e&&e.length&&t.push(e)}t.push(null)}),e.on("data",function(a){if((H("wrapped data"),r.decoder&&(a=r.decoder.write(a)),!(r.objectMode&&(null===a||void 0===a)))&&(r.objectMode||a&&a.length)){var n=t.push(a);n||(o=!0,e.pause())}}),e)void 0===this[a]&&"function"==typeof e[a]&&(this[a]=function(t){return function(){return e[t].apply(e,arguments)}}(a));for(var s=0;s<Y.length;s++)e.on(Y[s],this.emit.bind(this,Y[s]));return this._read=function(t){H("wrapped _read",t),o&&(o=!1,e.resume())},this},Object.defineProperty(l.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),l._fromList=B}).call(this,e("_process"),"undefined"==typeof global?"undefined"==typeof self?"undefined"==typeof window?{}:window:self:global)},{"./_stream_duplex":68,"./internal/streams/BufferList":73,"./internal/streams/destroy":74,"./internal/streams/stream":75,_process:61,"core-util-is":14,events:17,inherits:25,isarray:40,"process-nextick-args":60,"safe-buffer":80,"string_decoder/":82,util:12}],71:[function(e,t,r){'use strict';function o(e,t){var r=this._transformState;r.transforming=!1;var o=r.writecb;if(!o)return this.emit("error",new Error("write callback called multiple times"));r.writechunk=null,r.writecb=null,null!=t&&this.push(t),o(e);var a=this._readableState;a.reading=!1,(a.needReadable||a.length<a.highWaterMark)&&this._read(a.highWaterMark)}function a(e){return this instanceof a?void(i.call(this,e),this._transformState={afterTransform:o.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,e&&("function"==typeof e.transform&&(this._transform=e.transform),"function"==typeof e.flush&&(this._flush=e.flush)),this.on("prefinish",n)):new a(e)}function n(){var e=this;"function"==typeof this._flush?this._flush(function(t,r){s(e,t,r)}):s(this,null,null)}function s(e,t,r){if(t)return e.emit("error",t);if(null!=r&&e.push(r),e._writableState.length)throw new Error("Calling transform done when ws.length != 0");if(e._transformState.transforming)throw new Error("Calling transform done when still transforming");return e.push(null)}t.exports=a;var i=e("./_stream_duplex"),l=e("core-util-is");l.inherits=e("inherits"),l.inherits(a,i),a.prototype.push=function(e,t){return this._transformState.needTransform=!1,i.prototype.push.call(this,e,t)},a.prototype._transform=function(e,t,r){throw new Error("_transform() is not implemented")},a.prototype._write=function(e,t,r){var o=this._transformState;if(o.writecb=r,o.writechunk=e,o.writeencoding=t,!o.transforming){var a=this._readableState;(o.needTransform||a.needReadable||a.length<a.highWaterMark)&&this._read(a.highWaterMark)}},a.prototype._read=function(e){var t=this._transformState;null!==t.writechunk&&t.writecb&&!t.transforming?(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform)):t.needTransform=!0},a.prototype._destroy=function(e,t){var r=this;i.prototype._destroy.call(this,e,function(e){t(e),r.emit("close")})}},{"./_stream_duplex":68,"core-util-is":14,inherits:25}],72:[function(e,t,r){(function(r,o,a){'use strict';function n(e){var t=this;this.next=null,this.entry=null,this.finish=function(){P(t,e)}}function s(e){return j.from(e)}function i(e){return j.isBuffer(e)||e instanceof N}function l(){}function d(t,r){C=C||e("./_stream_duplex"),t=t||{};var o=r instanceof C;this.objectMode=!!t.objectMode,o&&(this.objectMode=this.objectMode||!!t.writableObjectMode);var a=t.highWaterMark,s=t.writableHighWaterMark,i=this.objectMode?16:16384;this.highWaterMark=a||0===a?a:o&&(s||0===s)?s:i,this.highWaterMark=_Mathfloor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var l=!1===t.decodeStrings;this.decodeStrings=!l,this.defaultEncoding=t.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){x(r,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new n(this)}function p(t){return C=C||e("./_stream_duplex"),M.call(p,this)||this instanceof C?void(this._writableState=new d(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)),L.call(this)):new p(t)}function u(e,t){var r=new Error("write after end");e.emit("error",r),U.nextTick(t,r)}function g(e,t,r,o){var a=!0,n=!1;return null===r?n=new TypeError("May not write null values to stream"):"string"!=typeof r&&void 0!==r&&!t.objectMode&&(n=new TypeError("Invalid non-string/buffer chunk")),n&&(e.emit("error",n),U.nextTick(o,n),a=!1),a}function y(e,t,r){return e.objectMode||!1===e.decodeStrings||"string"!=typeof t||(t=j.from(t,r)),t}function h(e,t,r,o,a,n){if(!r){var s=y(t,o,a);o!==s&&(r=!0,a="buffer",o=s)}var i=t.objectMode?1:o.length;t.length+=i;var l=t.length<t.highWaterMark;if(l||(t.needDrain=!0),t.writing||t.corked){var d=t.lastBufferedRequest;t.lastBufferedRequest={chunk:o,encoding:a,isBuf:r,callback:n,next:null},d?d.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1}else f(e,t,!1,i,o,a,n);return l}function f(e,t,r,o,a,n,s){t.writelen=o,t.writecb=s,t.writing=!0,t.sync=!0,r?e._writev(a,t.onwrite):e._write(a,n,t.onwrite),t.sync=!1}function m(e,t,r,o,a){--t.pendingcb,r?(U.nextTick(a,o),U.nextTick(B,e,t),e._writableState.errorEmitted=!0,e.emit("error",o)):(a(o),e._writableState.errorEmitted=!0,e.emit("error",o),B(e,t))}function A(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}function x(e,t){var r=e._writableState,o=r.sync,a=r.writecb;if(A(r),t)m(e,r,o,t,a);else{var n=v(r);n||r.corked||r.bufferProcessing||!r.bufferedRequest||w(e,r),o?R(k,e,r,n,a):k(e,r,n,a)}}function k(e,t,r,o){r||S(e,t),t.pendingcb--,o(),B(e,t)}function S(e,t){0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}function w(e,t){t.bufferProcessing=!0;var r=t.bufferedRequest;if(e._writev&&r&&r.next){var o=t.bufferedRequestCount,a=Array(o),s=t.corkedRequestsFree;s.entry=r;for(var i=0,l=!0;r;)a[i]=r,r.isBuf||(l=!1),r=r.next,i+=1;a.allBuffers=l,f(e,t,!0,t.length,a,"",s.finish),t.pendingcb++,t.lastBufferedRequest=null,s.next?(t.corkedRequestsFree=s.next,s.next=null):t.corkedRequestsFree=new n(t),t.bufferedRequestCount=0}else{for(;r;){var d=r.chunk,p=r.encoding,u=r.callback,g=t.objectMode?1:d.length;if(f(e,t,!1,g,d,p,u),r=r.next,t.bufferedRequestCount--,t.writing)break}null===r&&(t.lastBufferedRequest=null)}t.bufferedRequest=r,t.bufferProcessing=!1}function v(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function T(e,t){e._final(function(r){t.pendingcb--,r&&e.emit("error",r),t.prefinished=!0,e.emit("prefinish"),B(e,t)})}function E(e,t){t.prefinished||t.finalCalled||("function"==typeof e._final?(t.pendingcb++,t.finalCalled=!0,U.nextTick(T,e,t)):(t.prefinished=!0,e.emit("prefinish")))}function B(e,t){var r=v(t);return r&&(E(e,t),0===t.pendingcb&&(t.finished=!0,e.emit("finish"))),r}function I(e,t,r){t.ending=!0,B(e,t),r&&(t.finished?U.nextTick(r):e.once("finish",r)),t.ended=!0,e.writable=!1}function P(e,t,r){var o=e.entry;for(e.entry=null;o;){var a=o.callback;t.pendingcb--,a(r),o=o.next}t.corkedRequestsFree?t.corkedRequestsFree.next=e:t.corkedRequestsFree=e}var U=e("process-nextick-args");t.exports=p;var R=!r.browser&&-1<["v0.10","v0.9."].indexOf(r.version.slice(0,5))?a:U.nextTick,C;p.WritableState=d;var D=e("core-util-is");D.inherits=e("inherits");var O={deprecate:e("util-deprecate")},L=e("./internal/streams/stream"),j=e("safe-buffer").Buffer,N=o.Uint8Array||function(){},z=e("./internal/streams/destroy");D.inherits(p,L),d.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},function(){try{Object.defineProperty(d.prototype,"buffer",{get:O.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(e){}}();var M;"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(M=Function.prototype[Symbol.hasInstance],Object.defineProperty(p,Symbol.hasInstance,{value:function(e){return!!M.call(this,e)||!(this!==p)&&e&&e._writableState instanceof d}})):M=function(e){return e instanceof this},p.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},p.prototype.write=function(e,t,r){var o=this._writableState,a=!1,n=!o.objectMode&&i(e);return n&&!j.isBuffer(e)&&(e=s(e)),"function"==typeof t&&(r=t,t=null),n?t="buffer":!t&&(t=o.defaultEncoding),"function"!=typeof r&&(r=l),o.ended?u(this,r):(n||g(this,o,e,r))&&(o.pendingcb++,a=h(this,o,n,e,t,r)),a},p.prototype.cork=function(){var e=this._writableState;e.corked++},p.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,!e.writing&&!e.corked&&!e.finished&&!e.bufferProcessing&&e.bufferedRequest&&w(this,e))},p.prototype.setDefaultEncoding=function(e){if("string"==typeof e&&(e=e.toLowerCase()),!(-1<["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((e+"").toLowerCase())))throw new TypeError("Unknown encoding: "+e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(p.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),p.prototype._write=function(e,t,r){r(new Error("_write() is not implemented"))},p.prototype._writev=null,p.prototype.end=function(e,t,r){var o=this._writableState;"function"==typeof e?(r=e,e=null,t=null):"function"==typeof t&&(r=t,t=null),null!==e&&e!==void 0&&this.write(e,t),o.corked&&(o.corked=1,this.uncork()),o.ending||o.finished||I(this,o,r)},Object.defineProperty(p.prototype,"destroyed",{get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),p.prototype.destroy=z.destroy,p.prototype._undestroy=z.undestroy,p.prototype._destroy=function(e,t){this.end(),t(e)}}).call(this,e("_process"),"undefined"==typeof global?"undefined"==typeof self?"undefined"==typeof window?{}:window:self:global,e("timers").setImmediate)},{"./_stream_duplex":68,"./internal/streams/destroy":74,"./internal/streams/stream":75,_process:61,"core-util-is":14,inherits:25,"process-nextick-args":60,"safe-buffer":80,timers:90,"util-deprecate":92}],73:[function(e,t,r){'use strict';function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t,r){e.copy(t,r)}var s=e("safe-buffer").Buffer,i=e("util");t.exports=function(){function e(){o(this,e),this.head=null,this.tail=null,this.length=0}return e.prototype.push=function(e){var t={data:e,next:null};0<this.length?this.tail.next=t:this.head=t,this.tail=t,++this.length},e.prototype.unshift=function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length},e.prototype.shift=function(){if(0!==this.length){var e=this.head.data;return this.head=1===this.length?this.tail=null:this.head.next,--this.length,e}},e.prototype.clear=function(){this.head=this.tail=null,this.length=0},e.prototype.join=function(e){if(0===this.length)return"";for(var t=this.head,r=""+t.data;t=t.next;)r+=e+t.data;return r},e.prototype.concat=function(e){if(0===this.length)return s.alloc(0);if(1===this.length)return this.head.data;for(var t=s.allocUnsafe(e>>>0),r=this.head,o=0;r;)a(r.data,t,o),o+=r.data.length,r=r.next;return t},e}(),i&&i.inspect&&i.inspect.custom&&(t.exports.prototype[i.inspect.custom]=function(){var e=i.inspect({length:this.length});return this.constructor.name+" "+e})},{"safe-buffer":80,util:12}],74:[function(e,t,r){'use strict';function o(e,t){e.emit("error",t)}var a=e("process-nextick-args");t.exports={destroy:function(e,t){var r=this,n=this._readableState&&this._readableState.destroyed,s=this._writableState&&this._writableState.destroyed;return n||s?(t?t(e):e&&(!this._writableState||!this._writableState.errorEmitted)&&a.nextTick(o,this,e),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,function(e){!t&&e?(a.nextTick(o,r,e),r._writableState&&(r._writableState.errorEmitted=!0)):t&&t(e)}),this)},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}}},{"process-nextick-args":60}],75:[function(e,t,r){t.exports=e("events").EventEmitter},{events:17}],76:[function(e,t,r){t.exports=e("./readable").PassThrough},{"./readable":77}],77:[function(e,t,r){r=t.exports=e("./lib/_stream_readable.js"),r.Stream=r,r.Readable=r,r.Writable=e("./lib/_stream_writable.js"),r.Duplex=e("./lib/_stream_duplex.js"),r.Transform=e("./lib/_stream_transform.js"),r.PassThrough=e("./lib/_stream_passthrough.js")},{"./lib/_stream_duplex.js":68,"./lib/_stream_passthrough.js":69,"./lib/_stream_readable.js":70,"./lib/_stream_transform.js":71,"./lib/_stream_writable.js":72}],78:[function(e,t,r){t.exports=e("./readable").Transform},{"./readable":77}],79:[function(e,t,r){t.exports=e("./lib/_stream_writable.js")},{"./lib/_stream_writable.js":72}],80:[function(e,t,r){function o(e,t){for(var r in e)t[r]=e[r]}function a(e,t,r){return s(e,t,r)}var n=e("buffer"),s=n.Buffer;s.from&&s.alloc&&s.allocUnsafe&&s.allocUnsafeSlow?t.exports=n:(o(n,r),r.Buffer=a),o(s,a),a.from=function(e,t,r){if("number"==typeof e)throw new TypeError("Argument must not be a number");return s(e,t,r)},a.alloc=function(e,t,r){if("number"!=typeof e)throw new TypeError("Argument must be a number");var o=s(e);return void 0===t?o.fill(0):"string"==typeof r?o.fill(t,r):o.fill(t),o},a.allocUnsafe=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return s(e)},a.allocUnsafeSlow=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return n.SlowBuffer(e)}},{buffer:13}],81:[function(e,t,r){function o(){a.call(this)}t.exports=o;var a=e("events").EventEmitter,n=e("inherits");n(o,a),o.Readable=e("readable-stream/readable.js"),o.Writable=e("readable-stream/writable.js"),o.Duplex=e("readable-stream/duplex.js"),o.Transform=e("readable-stream/transform.js"),o.PassThrough=e("readable-stream/passthrough.js"),o.Stream=o,o.prototype.pipe=function(e,t){function r(t){e.writable&&!1===e.write(t)&&d.pause&&d.pause()}function o(){d.readable&&d.resume&&d.resume()}function n(){p||(p=!0,e.end())}function s(){p||(p=!0,"function"==typeof e.destroy&&e.destroy())}function i(e){if(l(),0===a.listenerCount(this,"error"))throw e}function l(){d.removeListener("data",r),e.removeListener("drain",o),d.removeListener("end",n),d.removeListener("close",s),d.removeListener("error",i),e.removeListener("error",i),d.removeListener("end",l),d.removeListener("close",l),e.removeListener("close",l)}var d=this;d.on("data",r),e.on("drain",o),e._isStdio||t&&!1===t.end||(d.on("end",n),d.on("close",s));var p=!1;return d.on("error",i),e.on("error",i),d.on("end",l),d.on("close",l),e.on("close",l),e.emit("pipe",d),e}},{events:17,inherits:25,"readable-stream/duplex.js":67,"readable-stream/passthrough.js":76,"readable-stream/readable.js":77,"readable-stream/transform.js":78,"readable-stream/writable.js":79}],82:[function(e,t,r){'use strict';function o(e){if(!e)return"utf8";for(var t;;)switch(e){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return e;default:if(t)return;e=(""+e).toLowerCase(),t=!0;}}function a(e){var t=o(e);if("string"!=typeof t&&(A.isEncoding===x||!x(e)))throw new Error("Unknown encoding: "+e);return t||e}function n(e){this.encoding=a(e);var t;switch(this.encoding){case"utf16le":this.text=u,this.end=g,t=4;break;case"utf8":this.fillLast=p,t=4;break;case"base64":this.text=y,this.end=h,t=3;break;default:return this.write=f,void(this.end=m);}this.lastNeed=0,this.lastTotal=0,this.lastChar=A.allocUnsafe(t)}function s(e){if(127>=e)return 0;return 6==e>>5?2:14==e>>4?3:30==e>>3?4:2==e>>6?-1:-2}function l(e,t,r){var o=t.length-1;if(o<r)return 0;var a=s(t[o]);return 0<=a?(0<a&&(e.lastNeed=a-1),a):--o<r||-2===a?0:(a=s(t[o]),0<=a)?(0<a&&(e.lastNeed=a-2),a):--o<r||-2===a?0:(a=s(t[o]),0<=a?(0<a&&(2===a?a=0:e.lastNeed=a-3),a):0)}function d(e,t,r){if(128!=(192&t[0]))return e.lastNeed=0,"\uFFFD";if(1<e.lastNeed&&1<t.length){if(128!=(192&t[1]))return e.lastNeed=1,"\uFFFD";if(2<e.lastNeed&&2<t.length&&128!=(192&t[2]))return e.lastNeed=2,"\uFFFD"}}function p(e){var t=this.lastTotal-this.lastNeed,o=d(this,e,t);return void 0===o?this.lastNeed<=e.length?(e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):void(e.copy(this.lastChar,t,0,e.length),this.lastNeed-=e.length):o}function u(e,t){if(0==(e.length-t)%2){var o=e.toString("utf16le",t);if(o){var r=o.charCodeAt(o.length-1);if(55296<=r&&56319>=r)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],o.slice(0,-1)}return o}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function g(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var r=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,r)}return t}function y(e,t){var r=(e.length-t)%3;return 0==r?e.toString("base64",t):(this.lastNeed=3-r,this.lastTotal=3,1==r?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-r))}function h(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function f(e){return e.toString(this.encoding)}function m(e){return e&&e.length?this.write(e):""}var A=e("safe-buffer").Buffer,x=A.isEncoding||function(e){switch(e=""+e,e&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1;}};r.StringDecoder=n,n.prototype.write=function(e){if(0===e.length)return"";var t,o;if(this.lastNeed){if(t=this.fillLast(e),void 0===t)return"";o=this.lastNeed,this.lastNeed=0}else o=0;return o<e.length?t?t+this.text(e,o):this.text(e,o):t||""},n.prototype.end=function(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+"\uFFFD":t},n.prototype.text=function(e,t){var r=l(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=r;var o=e.length-(r-this.lastNeed);return e.copy(this.lastChar,0,o),e.toString("utf8",t,o)},n.prototype.fillLast=function(e){return this.lastNeed<=e.length?(e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):void(e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length)}},{"safe-buffer":80}],83:[function(e,t,r){"use strict";function o(e){return i(e)||s(e)||n(e)||a()}function a(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function n(e,t){if(e){if("string"==typeof e)return l(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?l(e,t):void 0}}function s(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}function i(e){if(Array.isArray(e))return l(e)}function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,o=Array(t);r<t;r++)o[r]=e[r];return o}function d(){this._defaults=[]}["use","on","once","set","query","type","accept","auth","withCredentials","sortQuery","retry","ok","redirects","timeout","buffer","serialize","parse","ca","key","pfx","cert","disableTLSCerts"].forEach(function(e){d.prototype[e]=function(){for(var t=arguments.length,r=Array(t),o=0;o<t;o++)r[o]=arguments[o];return this._defaults.push({fn:e,args:r}),this}}),d.prototype._setDefaults=function(e){this._defaults.forEach(function(t){e[t.fn].apply(e,o(t.args))})},t.exports=d},{}],84:[function(e,t,r){"use strict";function o(e){"@babel/helpers - typeof";return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o(e)}function a(){}function n(e){if(!x(e))return e;var t=[];for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&s(t,r,e[r]);return t.join("&")}function s(e,t,r){if(void 0!==r){if(null===r)return void e.push(encodeURI(t));if(Array.isArray(r))r.forEach(function(r){s(e,t,r)});else if(x(r))for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&s(e,"".concat(t,"[").concat(o,"]"),r[o]);else e.push(encodeURI(t)+"="+encodeURIComponent(r))}}function i(e){for(var t={},r=e.split("&"),o=0,a=r.length,n,s;o<a;++o)n=r[o],s=n.indexOf("="),-1===s?t[decodeURIComponent(n)]="":t[decodeURIComponent(n.slice(0,s))]=decodeURIComponent(n.slice(s+1));return t}function l(e){for(var t=e.split(/\r?\n/),r={},o=0,a=t.length,n,s,l,d;o<a;++o)(s=t[o],n=s.indexOf(":"),-1!==n)&&(l=s.slice(0,n).toLowerCase(),d=v(s.slice(n+1)),r[l]=d);return r}function d(e){return /[/+]json($|[^-\w])/i.test(e)}function p(e){this.req=e,this.xhr=this.req.xhr,this.text="HEAD"!==this.req.method&&(""===this.xhr.responseType||"text"===this.xhr.responseType)||"undefined"==typeof this.xhr.responseType?this.xhr.responseText:null,this.statusText=this.req.xhr.statusText;var t=this.xhr.status;1223===t&&(t=204),this._setStatusProperties(t),this.headers=l(this.xhr.getAllResponseHeaders()),this.header=this.headers,this.header["content-type"]=this.xhr.getResponseHeader("content-type"),this._setHeaderProperties(this.header),this.body=null===this.text&&e._responseType?this.xhr.response:"HEAD"===this.req.method?null:this._parseBody(this.text?this.text:this.xhr.response)}function u(e,t){var r=this;this._query=this._query||[],this.method=e,this.url=t,this.header={},this._header={},this.on("end",function(){var e=null,t=null;try{t=new p(r)}catch(t){return e=new Error("Parser is unable to parse the response"),e.parse=!0,e.original=t,r.xhr?(e.rawResponse="undefined"==typeof r.xhr.responseType?r.xhr.responseText:r.xhr.response,e.status=r.xhr.status?r.xhr.status:null,e.statusCode=e.status):(e.rawResponse=null,e.status=null),r.callback(e)}r.emit("response",t);var o;try{r._isResponseOK(t)||(o=new Error(t.statusText||t.text||"Unsuccessful HTTP response"))}catch(e){o=e}o?(o.original=e,o.response=t,o.status=t.status,r.callback(o,t)):r.callback(null,t)})}function g(e,t,r){var o=w("DELETE",e);return"function"==typeof t&&(r=t,t=null),t&&o.send(t),r&&o.end(r),o}var y;"undefined"==typeof window?"undefined"==typeof self?(console.warn("Using browser-only version of superagent in non-browser environment"),y=void 0):y=self:y=window;var h=e("component-emitter"),f=e("fast-safe-stringify"),m=e("qs"),A=e("./request-base"),x=e("./is-object"),k=e("./response-base"),S=e("./agent-base");t.exports=function(e,t){return"function"==typeof t?new r.Request("GET",e).end(t):1===arguments.length?new r.Request("GET",e):new r.Request(e,t)},r=t.exports;var w=r;r.Request=u,w.getXHR=function(){if(y.XMLHttpRequest&&(!y.location||"file:"!==y.location.protocol||!y.ActiveXObject))return new XMLHttpRequest;try{return new ActiveXObject("Microsoft.XMLHTTP")}catch(e){}try{return new ActiveXObject("Msxml2.XMLHTTP.6.0")}catch(e){}try{return new ActiveXObject("Msxml2.XMLHTTP.3.0")}catch(e){}try{return new ActiveXObject("Msxml2.XMLHTTP")}catch(e){}throw new Error("Browser-only version of superagent could not find XHR")};var v=function(e){return e.trim()};w.serializeObject=n,w.parseString=i,w.types={html:"text/html",json:"application/json",xml:"text/xml",urlencoded:"application/x-www-form-urlencoded",form:"application/x-www-form-urlencoded","form-data":"application/x-www-form-urlencoded"},w.serialize={"application/x-www-form-urlencoded":m.stringify,"application/json":f},w.parse={"application/x-www-form-urlencoded":i,"application/json":JSON.parse},k(p.prototype),p.prototype._parseBody=function(e){var t=w.parse[this.type];return this.req._parser?this.req._parser(this,e):(!t&&d(this.type)&&(t=w.parse["application/json"]),t&&e&&(0<e.length||e instanceof Object)?t(e):null)},p.prototype.toError=function(){var e=this.req,t=e.method,r=e.url,o="cannot ".concat(t," ").concat(r," (").concat(this.status,")"),a=new Error(o);return a.status=this.status,a.method=t,a.url=r,a},w.Response=p,h(u.prototype),A(u.prototype),u.prototype.type=function(e){return this.set("Content-Type",w.types[e]||e),this},u.prototype.accept=function(e){return this.set("Accept",w.types[e]||e),this},u.prototype.auth=function(e,t,r){1===arguments.length&&(t=""),"object"===o(t)&&null!==t&&(r=t,t=""),r||(r={type:"function"==typeof btoa?"basic":"auto"});return this._auth(e,t,r,function(e){if("function"==typeof btoa)return btoa(e);throw new Error("Cannot use basic auth, btoa is not a function")})},u.prototype.query=function(e){return"string"!=typeof e&&(e=n(e)),e&&this._query.push(e),this},u.prototype.attach=function(e,t,r){if(t){if(this._data)throw new Error("superagent can't mix .send() and .attach()");this._getFormData().append(e,t,r||t.name)}return this},u.prototype._getFormData=function(){return this._formData||(this._formData=new y.FormData),this._formData},u.prototype.callback=function(e,t){if(this._shouldRetry(e,t))return this._retry();var r=this._callback;this.clearTimeout(),e&&(this._maxRetries&&(e.retries=this._retries-1),this.emit("error",e)),r(e,t)},u.prototype.crossDomainError=function(){var e=new Error("Request has been terminated\nPossible causes: the network is offline, Origin is not allowed by Access-Control-Allow-Origin, the page is being unloaded, etc.");e.crossDomain=!0,e.status=this.status,e.method=this.method,e.url=this.url,this.callback(e)},u.prototype.agent=function(){return console.warn("This is not supported in browser version of superagent"),this},u.prototype.ca=u.prototype.agent,u.prototype.buffer=u.prototype.ca,u.prototype.write=function(){throw new Error("Streaming is not supported in browser version of superagent")},u.prototype.pipe=u.prototype.write,u.prototype._isHost=function(e){return e&&"object"===o(e)&&!Array.isArray(e)&&"[object Object]"!==Object.prototype.toString.call(e)},u.prototype.end=function(e){this._endCalled&&console.warn("Warning: .end() was called twice. This is not supported in superagent"),this._endCalled=!0,this._callback=e||a,this._finalizeQueryString(),this._end()},u.prototype._setUploadTimeout=function(){var e=this;this._uploadTimeout&&!this._uploadTimeoutTimer&&(this._uploadTimeoutTimer=setTimeout(function(){e._timeoutError("Upload timeout of ",e._uploadTimeout,"ETIMEDOUT")},this._uploadTimeout))},u.prototype._end=function(){if(this._aborted)return this.callback(new Error("The request has been aborted even before .end() was called"));var t=this;this.xhr=w.getXHR();var r=this.xhr,o=this._formData||this._data;this._setTimeouts(),r.onreadystatechange=function(){var e=r.readyState;if(2<=e&&t._responseTimeoutTimer&&clearTimeout(t._responseTimeoutTimer),4===e){var o;try{o=r.status}catch(e){o=0}return o?void t.emit("end"):t.timedout||t._aborted?void 0:t.crossDomainError()}};var a=function(r,o){0<o.total&&(o.percent=100*(o.loaded/o.total),100===o.percent&&clearTimeout(t._uploadTimeoutTimer)),o.direction=r,t.emit("progress",o)};if(this.hasListeners("progress"))try{r.addEventListener("progress",a.bind(null,"download")),r.upload&&r.upload.addEventListener("progress",a.bind(null,"upload"))}catch(e){}r.upload&&this._setUploadTimeout();try{this.username&&this.password?r.open(this.method,this.url,!0,this.username,this.password):r.open(this.method,this.url,!0)}catch(e){return this.callback(e)}if(this._withCredentials&&(r.withCredentials=!0),!this._formData&&"GET"!==this.method&&"HEAD"!==this.method&&"string"!=typeof o&&!this._isHost(o)){var n=this._header["content-type"],s=this._serializer||w.serialize[n?n.split(";")[0]:""];!s&&d(n)&&(s=w.serialize["application/json"]),s&&(o=s(o))}for(var i in this.header)null!==this.header[i]&&Object.prototype.hasOwnProperty.call(this.header,i)&&r.setRequestHeader(i,this.header[i]);this._responseType&&(r.responseType=this._responseType),this.emit("request",this),r.send("undefined"==typeof o?null:o)},w.agent=function(){return new S},["GET","POST","OPTIONS","PATCH","PUT","DELETE"].forEach(function(e){S.prototype[e.toLowerCase()]=function(t,r){var o=new w.Request(e,t);return this._setDefaults(o),r&&o.end(r),o}}),S.prototype.del=S.prototype.delete,w.get=function(e,t,r){var o=w("GET",e);return"function"==typeof t&&(r=t,t=null),t&&o.query(t),r&&o.end(r),o},w.head=function(e,t,r){var o=w("HEAD",e);return"function"==typeof t&&(r=t,t=null),t&&o.query(t),r&&o.end(r),o},w.options=function(e,t,r){var o=w("OPTIONS",e);return"function"==typeof t&&(r=t,t=null),t&&o.send(t),r&&o.end(r),o},w.del=g,w.delete=g,w.patch=function(e,t,r){var o=w("PATCH",e);return"function"==typeof t&&(r=t,t=null),t&&o.send(t),r&&o.end(r),o},w.post=function(e,t,r){var o=w("POST",e);return"function"==typeof t&&(r=t,t=null),t&&o.send(t),r&&o.end(r),o},w.put=function(e,t,r){var o=w("PUT",e);return"function"==typeof t&&(r=t,t=null),t&&o.send(t),r&&o.end(r),o}},{"./agent-base":83,"./is-object":85,"./request-base":86,"./response-base":87,"component-emitter":89,"fast-safe-stringify":18,qs:63}],85:[function(e,t,r){"use strict";function o(e){"@babel/helpers - typeof";return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o(e)}function a(e){return null!==e&&"object"===o(e)}t.exports=a},{}],86:[function(e,t,r){"use strict";function o(e){"@babel/helpers - typeof";return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o(e)}function a(e){if(e)return n(e)}function n(e){for(var t in a.prototype)Object.prototype.hasOwnProperty.call(a.prototype,t)&&(e[t]=a.prototype[t]);return e}var s=e("./is-object");t.exports=a,a.prototype.clearTimeout=function(){return clearTimeout(this._timer),clearTimeout(this._responseTimeoutTimer),clearTimeout(this._uploadTimeoutTimer),delete this._timer,delete this._responseTimeoutTimer,delete this._uploadTimeoutTimer,this},a.prototype.parse=function(e){return this._parser=e,this},a.prototype.responseType=function(e){return this._responseType=e,this},a.prototype.serialize=function(e){return this._serializer=e,this},a.prototype.timeout=function(e){if(!e||"object"!==o(e))return this._timeout=e,this._responseTimeout=0,this._uploadTimeout=0,this;for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&("deadline"===t?this._timeout=e.deadline:"response"===t?this._responseTimeout=e.response:"upload"===t?this._uploadTimeout=e.upload:console.warn("Unknown timeout option",t));return this},a.prototype.retry=function(e,t){return(0===arguments.length||!0===e)&&(e=1),0>=e&&(e=0),this._maxRetries=e,this._retries=0,this._retryCallback=t,this};var i=new Set(["ETIMEDOUT","ECONNRESET","EADDRINUSE","ECONNREFUSED","EPIPE","ENOTFOUND","ENETUNREACH","EAI_AGAIN"]),l=new Set([408,413,429,500,502,503,504,521,522,524]);a.prototype._shouldRetry=function(e,t){if(!this._maxRetries||this._retries++>=this._maxRetries)return!1;if(this._retryCallback)try{var r=this._retryCallback(e,t);if(!0===r)return!0;if(!1===r)return!1}catch(e){console.error(e)}if(t&&t.status&&l.has(t.status))return!0;if(e){if(e.code&&i.has(e.code))return!0;if(e.timeout&&"ECONNABORTED"===e.code)return!0;if(e.crossDomain)return!0}return!1},a.prototype._retry=function(){return this.clearTimeout(),this.req&&(this.req=null,this.req=this.request()),this._aborted=!1,this.timedout=!1,this.timedoutError=null,this._end()},a.prototype.then=function(e,t){var r=this;if(!this._fullfilledPromise){var o=this;this._endCalled&&console.warn("Warning: superagent request was sent twice, because both .end() and .then() were called. Never call .end() if you use promises"),this._fullfilledPromise=new Promise(function(e,t){o.on("abort",function(){if(!(r._maxRetries&&r._maxRetries>r._retries)){if(r.timedout&&r.timedoutError)return void t(r.timedoutError);var e=new Error("Aborted");e.code="ABORTED",e.status=r.status,e.method=r.method,e.url=r.url,t(e)}}),o.end(function(r,o){r?t(r):e(o)})})}return this._fullfilledPromise.then(e,t)},a.prototype.catch=function(e){return this.then(void 0,e)},a.prototype.use=function(e){return e(this),this},a.prototype.ok=function(e){if("function"!=typeof e)throw new Error("Callback required");return this._okCallback=e,this},a.prototype._isResponseOK=function(e){return!!e&&(this._okCallback?this._okCallback(e):200<=e.status&&300>e.status)},a.prototype.get=function(e){return this._header[e.toLowerCase()]},a.prototype.getHeader=a.prototype.get,a.prototype.set=function(e,t){if(s(e)){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&this.set(r,e[r]);return this}return this._header[e.toLowerCase()]=t,this.header[e]=t,this},a.prototype.unset=function(e){return delete this._header[e.toLowerCase()],delete this.header[e],this},a.prototype.field=function(e,t){if(null===e||void 0===e)throw new Error(".field(name, val) name can not be empty");if(this._data)throw new Error(".field() can't be used if .send() is used. Please use only .send() or only .field() & .attach()");if(s(e)){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&this.field(r,e[r]);return this}if(Array.isArray(t)){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&this.field(e,t[o]);return this}if(null===t||void 0===t)throw new Error(".field(name, val) val can not be empty");return"boolean"==typeof t&&(t+=""),this._getFormData().append(e,t),this},a.prototype.abort=function(){return this._aborted?this:(this._aborted=!0,this.xhr&&this.xhr.abort(),this.req&&this.req.abort(),this.clearTimeout(),this.emit("abort"),this)},a.prototype._auth=function(e,t,r,o){switch(r.type){case"basic":this.set("Authorization","Basic ".concat(o("".concat(e,":").concat(t))));break;case"auto":this.username=e,this.password=t;break;case"bearer":this.set("Authorization","Bearer ".concat(e));break;default:}return this},a.prototype.withCredentials=function(e){return void 0===e&&(e=!0),this._withCredentials=e,this},a.prototype.redirects=function(e){return this._maxRedirects=e,this},a.prototype.maxResponseSize=function(e){if("number"!=typeof e)throw new TypeError("Invalid argument");return this._maxResponseSize=e,this},a.prototype.toJSON=function(){return{method:this.method,url:this.url,data:this._data,headers:this._header}},a.prototype.send=function(e){var t=s(e),r=this._header["content-type"];if(this._formData)throw new Error(".send() can't be used if .attach() or .field() is used. Please use only .send() or only .field() & .attach()");if(t&&!this._data)Array.isArray(e)?this._data=[]:!this._isHost(e)&&(this._data={});else if(e&&this._data&&this._isHost(this._data))throw new Error("Can't merge these send calls");if(t&&s(this._data))for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(this._data[o]=e[o]);else"string"==typeof e?(r||this.type("form"),r=this._header["content-type"],r&&(r=r.toLowerCase().trim()),this._data="application/x-www-form-urlencoded"===r?this._data?"".concat(this._data,"&").concat(e):e:(this._data||"")+e):this._data=e;return!t||this._isHost(e)?this:(r||this.type("json"),this)},a.prototype.sortQuery=function(e){return this._sort="undefined"==typeof e||e,this},a.prototype._finalizeQueryString=function(){var e=this._query.join("&");if(e&&(this.url+=(this.url.includes("?")?"&":"?")+e),this._query.length=0,this._sort){var t=this.url.indexOf("?");if(0<=t){var r=this.url.slice(t+1).split("&");"function"==typeof this._sort?r.sort(this._sort):r.sort(),this.url=this.url.slice(0,t)+"?"+r.join("&")}}},a.prototype._appendQueryString=function(){console.warn("Unsupported")},a.prototype._timeoutError=function(e,t,r){if(!this._aborted){var o=new Error("".concat(e+t,"ms exceeded"));o.timeout=t,o.code="ECONNABORTED",o.errno=r,this.timedout=!0,this.timedoutError=o,this.abort(),this.callback(o)}},a.prototype._setTimeouts=function(){var e=this;this._timeout&&!this._timer&&(this._timer=setTimeout(function(){e._timeoutError("Timeout of ",e._timeout,"ETIME")},this._timeout)),this._responseTimeout&&!this._responseTimeoutTimer&&(this._responseTimeoutTimer=setTimeout(function(){e._timeoutError("Response timeout of ",e._responseTimeout,"ETIMEDOUT")},this._responseTimeout))}},{"./is-object":85}],87:[function(e,t,r){"use strict";function o(e){if(e)return a(e)}function a(e){for(var t in o.prototype)Object.prototype.hasOwnProperty.call(o.prototype,t)&&(e[t]=o.prototype[t]);return e}var n=e("./utils");t.exports=o,o.prototype.get=function(e){return this.header[e.toLowerCase()]},o.prototype._setHeaderProperties=function(e){var t=e["content-type"]||"";this.type=n.type(t);var r=n.params(t);for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(this[o]=r[o]);this.links={};try{e.link&&(this.links=n.parseLinks(e.link))}catch(e){}},o.prototype._setStatusProperties=function(e){var t=0|e/100;this.statusCode=e,this.status=this.statusCode,this.statusType=t,this.info=1==t,this.ok=2==t,this.redirect=3==t,this.clientError=4==t,this.serverError=5==t,this.error=!(4!=t&&5!==t)&&this.toError(),this.created=201===e,this.accepted=202===e,this.noContent=204===e,this.badRequest=400===e,this.unauthorized=401===e,this.notAcceptable=406===e,this.forbidden=403===e,this.notFound=404===e,this.unprocessableEntity=422===e}},{"./utils":88}],88:[function(e,t,r){"use strict";function o(e,t){var r;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(r=a(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,s=function(){};return{s:s,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:s}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var l=!0,d=!1,p;return{s:function(){r=e[Symbol.iterator]()},n:function(){var e=r.next();return l=e.done,e},e:function(e){d=!0,p=e},f:function(){try{l||null==r.return||r.return()}finally{if(d)throw p}}}}function a(e,t){if(e){if("string"==typeof e)return s(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?s(e,t):void 0}}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,o=Array(t);r<t;r++)o[r]=e[r];return o}r.type=function(e){return e.split(/ *; */).shift()},r.params=function(e){var t={},r=o(e.split(/ *; */)),a;try{for(r.s();!(a=r.n()).done;){var n=a.value,s=n.split(/ *= */),i=s.shift(),l=s.shift();i&&l&&(t[i]=l)}}catch(e){r.e(e)}finally{r.f()}return t},r.parseLinks=function(e){var t={},r=o(e.split(/ *, */)),a;try{for(r.s();!(a=r.n()).done;){var n=a.value,s=n.split(/ *; */),i=s[0].slice(1,-1),l=s[1].split(/ *= */)[1].slice(1,-1);t[l]=i}}catch(e){r.e(e)}finally{r.f()}return t},r.cleanHeader=function(e,t){return delete e["content-type"],delete e["content-length"],delete e["transfer-encoding"],delete e.host,t&&(delete e.authorization,delete e.cookie),e}},{}],89:[function(e,t,r){function o(e){if(e)return a(e)}function a(e){for(var t in o.prototype)e[t]=o.prototype[t];return e}"undefined"!=typeof t&&(t.exports=o);o.prototype.on=o.prototype.addEventListener=function(e,t){return this._callbacks=this._callbacks||{},(this._callbacks["$"+e]=this._callbacks["$"+e]||[]).push(t),this},o.prototype.once=function(e,t){function r(){this.off(e,r),t.apply(this,arguments)}return r.fn=t,this.on(e,r),this},o.prototype.off=o.prototype.removeListener=o.prototype.removeAllListeners=o.prototype.removeEventListener=function(e,t){if(this._callbacks=this._callbacks||{},0==arguments.length)return this._callbacks={},this;var r=this._callbacks["$"+e];if(!r)return this;if(1==arguments.length)return delete this._callbacks["$"+e],this;for(var o=0,a;o<r.length;o++)if(a=r[o],a===t||a.fn===t){r.splice(o,1);break}return 0===r.length&&delete this._callbacks["$"+e],this},o.prototype.emit=function(e){this._callbacks=this._callbacks||{};for(var t=Array(arguments.length-1),r=this._callbacks["$"+e],o=1;o<arguments.length;o++)t[o-1]=arguments[o];if(r){r=r.slice(0);for(var o=0,a=r.length;o<a;++o)r[o].apply(this,t)}return this},o.prototype.listeners=function(e){return this._callbacks=this._callbacks||{},this._callbacks["$"+e]||[]},o.prototype.hasListeners=function(e){return!!this.listeners(e).length}},{}],90:[function(e,t,r){(function(t,o){function a(e,t){this._id=e,this._clearFn=t}var n=e("process/browser.js").nextTick,s=Function.prototype.apply,i=Array.prototype.slice,l={},d=0;r.setTimeout=function(){return new a(s.call(setTimeout,window,arguments),clearTimeout)},r.setInterval=function(){return new a(s.call(setInterval,window,arguments),clearInterval)},r.clearTimeout=r.clearInterval=function(e){e.close()},a.prototype.unref=a.prototype.ref=function(){},a.prototype.close=function(){this._clearFn.call(window,this._id)},r.enroll=function(e,t){clearTimeout(e._idleTimeoutId),e._idleTimeout=t},r.unenroll=function(e){clearTimeout(e._idleTimeoutId),e._idleTimeout=-1},r._unrefActive=r.active=function(e){clearTimeout(e._idleTimeoutId);var t=e._idleTimeout;0<=t&&(e._idleTimeoutId=setTimeout(function(){e._onTimeout&&e._onTimeout()},t))},r.setImmediate="function"==typeof t?t:function(e){var t=d++,o=!(2>arguments.length)&&i.call(arguments,1);return l[t]=!0,n(function(){l[t]&&(o?e.apply(null,o):e.call(null),r.clearImmediate(t))}),t},r.clearImmediate="function"==typeof o?o:function(e){delete l[e]}}).call(this,e("timers").setImmediate,e("timers").clearImmediate)},{"process/browser.js":61,timers:90}],91:[function(e,t,r){(function(t){'use strict';function r(e,t,r,o){e[t]=255&r>>24,e[t+1]=255&r>>16,e[t+2]=255&r>>8,e[t+3]=255&r,e[t+4]=255&o>>24,e[t+5]=255&o>>16,e[t+6]=255&o>>8,e[t+7]=255&o}function o(e,t,r,o,a){var n=0,s;for(s=0;s<a;s++)n|=e[t+s]^r[o+s];return(1&n-1>>>8)-1}function a(e,t,r,a){return o(e,t,r,a,16)}function s(e,t,r,a){return o(e,t,r,a,32)}function i(e,t,r,o){for(var a=255&o[0]|(255&o[1])<<8|(255&o[2])<<16|(255&o[3])<<24,n=255&r[0]|(255&r[1])<<8|(255&r[2])<<16|(255&r[3])<<24,s=255&r[4]|(255&r[5])<<8|(255&r[6])<<16|(255&r[7])<<24,l=255&r[8]|(255&r[9])<<8|(255&r[10])<<16|(255&r[11])<<24,d=255&r[12]|(255&r[13])<<8|(255&r[14])<<16|(255&r[15])<<24,p=255&o[4]|(255&o[5])<<8|(255&o[6])<<16|(255&o[7])<<24,g=255&t[0]|(255&t[1])<<8|(255&t[2])<<16|(255&t[3])<<24,y=255&t[4]|(255&t[5])<<8|(255&t[6])<<16|(255&t[7])<<24,h=255&t[8]|(255&t[9])<<8|(255&t[10])<<16|(255&t[11])<<24,f=255&t[12]|(255&t[13])<<8|(255&t[14])<<16|(255&t[15])<<24,m=255&o[8]|(255&o[9])<<8|(255&o[10])<<16|(255&o[11])<<24,A=255&r[16]|(255&r[17])<<8|(255&r[18])<<16|(255&r[19])<<24,x=255&r[20]|(255&r[21])<<8|(255&r[22])<<16|(255&r[23])<<24,k=255&r[24]|(255&r[25])<<8|(255&r[26])<<16|(255&r[27])<<24,S=255&r[28]|(255&r[29])<<8|(255&r[30])<<16|(255&r[31])<<24,w=255&o[12]|(255&o[13])<<8|(255&o[14])<<16|(255&o[15])<<24,v=a,T=n,E=s,B=l,I=d,P=p,U=g,R=y,C=h,D=f,O=m,L=A,j=x,N=k,z=S,M=w,F=0,q;20>F;F+=2)q=0|v+j,I^=q<<7|q>>>25,q=0|I+v,C^=q<<9|q>>>23,q=0|C+I,j^=q<<13|q>>>19,q=0|j+C,v^=q<<18|q>>>14,q=0|P+T,D^=q<<7|q>>>25,q=0|D+P,N^=q<<9|q>>>23,q=0|N+D,T^=q<<13|q>>>19,q=0|T+N,P^=q<<18|q>>>14,q=0|O+U,z^=q<<7|q>>>25,q=0|z+O,E^=q<<9|q>>>23,q=0|E+z,U^=q<<13|q>>>19,q=0|U+E,O^=q<<18|q>>>14,q=0|M+L,B^=q<<7|q>>>25,q=0|B+M,R^=q<<9|q>>>23,q=0|R+B,L^=q<<13|q>>>19,q=0|L+R,M^=q<<18|q>>>14,q=0|v+B,T^=q<<7|q>>>25,q=0|T+v,E^=q<<9|q>>>23,q=0|E+T,B^=q<<13|q>>>19,q=0|B+E,v^=q<<18|q>>>14,q=0|P+I,U^=q<<7|q>>>25,q=0|U+P,R^=q<<9|q>>>23,q=0|R+U,I^=q<<13|q>>>19,q=0|I+R,P^=q<<18|q>>>14,q=0|O+D,L^=q<<7|q>>>25,q=0|L+O,C^=q<<9|q>>>23,q=0|C+L,D^=q<<13|q>>>19,q=0|D+C,O^=q<<18|q>>>14,q=0|M+z,j^=q<<7|q>>>25,q=0|j+M,N^=q<<9|q>>>23,q=0|N+j,z^=q<<13|q>>>19,q=0|z+N,M^=q<<18|q>>>14;v=0|v+a,T=0|T+n,E=0|E+s,B=0|B+l,I=0|I+d,P=0|P+p,U=0|U+g,R=0|R+y,C=0|C+h,D=0|D+f,O=0|O+m,L=0|L+A,j=0|j+x,N=0|N+k,z=0|z+S,M=0|M+w,e[0]=255&v>>>0,e[1]=255&v>>>8,e[2]=255&v>>>16,e[3]=255&v>>>24,e[4]=255&T>>>0,e[5]=255&T>>>8,e[6]=255&T>>>16,e[7]=255&T>>>24,e[8]=255&E>>>0,e[9]=255&E>>>8,e[10]=255&E>>>16,e[11]=255&E>>>24,e[12]=255&B>>>0,e[13]=255&B>>>8,e[14]=255&B>>>16,e[15]=255&B>>>24,e[16]=255&I>>>0,e[17]=255&I>>>8,e[18]=255&I>>>16,e[19]=255&I>>>24,e[20]=255&P>>>0,e[21]=255&P>>>8,e[22]=255&P>>>16,e[23]=255&P>>>24,e[24]=255&U>>>0,e[25]=255&U>>>8,e[26]=255&U>>>16,e[27]=255&U>>>24,e[28]=255&R>>>0,e[29]=255&R>>>8,e[30]=255&R>>>16,e[31]=255&R>>>24,e[32]=255&C>>>0,e[33]=255&C>>>8,e[34]=255&C>>>16,e[35]=255&C>>>24,e[36]=255&D>>>0,e[37]=255&D>>>8,e[38]=255&D>>>16,e[39]=255&D>>>24,e[40]=255&O>>>0,e[41]=255&O>>>8,e[42]=255&O>>>16,e[43]=255&O>>>24,e[44]=255&L>>>0,e[45]=255&L>>>8,e[46]=255&L>>>16,e[47]=255&L>>>24,e[48]=255&j>>>0,e[49]=255&j>>>8,e[50]=255&j>>>16,e[51]=255&j>>>24,e[52]=255&N>>>0,e[53]=255&N>>>8,e[54]=255&N>>>16,e[55]=255&N>>>24,e[56]=255&z>>>0,e[57]=255&z>>>8,e[58]=255&z>>>16,e[59]=255&z>>>24,e[60]=255&M>>>0,e[61]=255&M>>>8,e[62]=255&M>>>16,e[63]=255&M>>>24}function l(e,t,r,o){for(var a=255&o[0]|(255&o[1])<<8|(255&o[2])<<16|(255&o[3])<<24,n=255&r[0]|(255&r[1])<<8|(255&r[2])<<16|(255&r[3])<<24,s=255&r[4]|(255&r[5])<<8|(255&r[6])<<16|(255&r[7])<<24,l=255&r[8]|(255&r[9])<<8|(255&r[10])<<16|(255&r[11])<<24,d=255&r[12]|(255&r[13])<<8|(255&r[14])<<16|(255&r[15])<<24,p=255&o[4]|(255&o[5])<<8|(255&o[6])<<16|(255&o[7])<<24,g=255&t[0]|(255&t[1])<<8|(255&t[2])<<16|(255&t[3])<<24,y=255&t[4]|(255&t[5])<<8|(255&t[6])<<16|(255&t[7])<<24,h=255&t[8]|(255&t[9])<<8|(255&t[10])<<16|(255&t[11])<<24,f=255&t[12]|(255&t[13])<<8|(255&t[14])<<16|(255&t[15])<<24,m=255&o[8]|(255&o[9])<<8|(255&o[10])<<16|(255&o[11])<<24,A=255&r[16]|(255&r[17])<<8|(255&r[18])<<16|(255&r[19])<<24,x=255&r[20]|(255&r[21])<<8|(255&r[22])<<16|(255&r[23])<<24,k=255&r[24]|(255&r[25])<<8|(255&r[26])<<16|(255&r[27])<<24,S=255&r[28]|(255&r[29])<<8|(255&r[30])<<16|(255&r[31])<<24,w=255&o[12]|(255&o[13])<<8|(255&o[14])<<16|(255&o[15])<<24,v=a,T=n,E=s,B=l,I=d,P=p,U=g,R=y,C=h,D=f,O=m,L=A,j=x,N=k,z=S,M=w,F=0,q;20>F;F+=2)q=0|v+j,I^=q<<7|q>>>25,q=0|I+v,C^=q<<9|q>>>23,q=0|C+I,j^=q<<13|q>>>19,q=0|j+C,v^=q<<18|q>>>14,q=0|P+T,D^=q<<7|q>>>25,q=0|D+P,N^=q<<9|q>>>23,q=0|N+D,T^=q<<13|q>>>19,q=0|T+N,P^=q<<18|q>>>14,q=0|O+U,z^=q<<7|q>>>25,q=0|z+O,E^=q<<9|q>>>23,q=0|E+z,U^=q<<13|q>>>19,q=0|U+E,O^=q<<18|q>>>14,q=0|M+L,B^=q<<7|q>>>25,q=0|B+M,R^=q<<9|q>>>23,q=0|R+B,L^=q<<13|q>>>19,q=0|L+R,M^=q<<18|q>>>14,q=0|v+B,T^=q<<7|q>>>25,q=0|T+v,E^=q<<9|q>>>23,q=0|E+T,B^=q<<13|q>>>19,q=0|B+E,v^=q<<18|q>>>14,q=0|P+I,U^=q<<7|q>>>25,q=0|U+P,R^=q<<9|q>>>23,q=0|R+U,I^=q<<13|q>>>19,q=0|I+R,P^=q<<18|q>>>14,q=0|O+D,L^=q<<7|q>>>25,q=0|L+O,C^=q<<9|q>>>23,q=0|C+L,D^=q<<13|q>>>19,q=0|D+C,O^=q<<18|q>>>14,q=0|M+z,j^=q<<7|q>>>25,q=0|j+M,N^=q<<9|q>>>23,q=0|N+j,z^=q<<13|q>>>19,q=0|z+N,M^=q<<18|q>>>14;e[0]=255&v>>>0,e[1]=255&v>>>8,e[2]=255&v>>>16,e[3]=255&v>>>24,e[4]=255&P>>>0,e[5]=255&P>>>8,e[6]=255&P>>>16,e[7]=255&P>>>24,e[8]=255&O>>>0,e[9]=255&O>>>8,e[10]=255&O>>>16,e[11]=255&O>>>24,e[12]=255&M>>>0,e[13]=255&M>>>8,e[14]=255&M>>>16,e[15]=255&M>>>24,e[16]=255&U>>>0,e[17]=255&U>>>8,e[18]=255&U>>>16,e[19]=255&U>>>24,e[20]=255&R>>>0,e[21]=255&R>>>8,e[22]=255&R>>>16,e[23]=255&R>>>24,e[24]=255&C>>>0,e[25]=255&C>>>8,e[26]=255&C>>>16,e[27]=255&C>>>24,e[28]=255&D>>>0,e[29]=255&D>>>8,e[30]=255&D>>>16,e[31]=255&D>>>24}function d(e,t,r,o){i(e,t,r,o)}function p(e,t,r,o){l(e,t,r,o)}function u(e,t,r,o,a,s,n){var l=new Uint8Array(16),p=new Uint8Array(64),g,y;for(y=0;16>y;y++)l[y]=0;for(y=0;8>y;y++)l[y]=s[y];for(;64<=a;){for(d(p,l,n,I),y=0;64>y;y++)e[t+y]=r[o+y]^p[y];for(g=1,y=8;16>y;y++)g=0|g+(255&l[y]),l[y]=255&g,g>>>=8;a-=64,t+=64,o+=64}if(0<a)for(d(p,l,n,I),y=0;y<a;y++)e[t+y]=r[o+y]^p[y];return 0}function g(e,t,r,o,a){var n=new Uint8Array(16),s=new Uint8Array(64),l,p;for(p=0;16>p;p++)n[p]=0;for(p=0;8>p;p++)n[p]=o[p];for(;64<=r;){for(d(s,n,a,I),p=0;64>p;p++)e[t+p]=s[p];for(l=1,p=8;16>p;p++)l=0|l+(255&n[p]),n[p]=255&l,l>>>=8;r-=64,t+=64}if(0<r)for(d(s,n,a,I),p=0;p<r;p++)e[t+p]=s[p];return 0}function y(e,t,r,o,a){var n=new Uint8Array(32);p(n,o,a,I);for(var s=new Uint8Array(8),l=0;8>l;l++)s[l]=o[l+16];return g(e,t,r,s,n)}function h(e,t,r,o,a,l,n){var d=new Uint8Array(32);p(d,l,n,I);for(var s=new Uint8Array(8),g=0;8>g;g++)s[g]=l[g+16];return u(e,t,r,o,a,s,d)}function f(e,t,r,o,a,n){var i=new fe(n);return i.update(r,o,a),i.finish(e,t),0}function w(e,t,r,o,s,n){var i=new Uint8Array(16);return f(i,0,r,o,s,n),a(e,t,i,0)}function v(e,t,r,o,a){var n;if(32>r)return-1;for(h(e,0,t,0,r,o,a),f(e,16,e,32,r-32,e),n=0;16>n;n++)e[n]=0;return 0}function T(e,t,r,o,a){var n=new Uint8Array(32),s;if(32>r)return-1;if(y(n,0,32,o,a),0!==w(t,16,t,32,r-32,n))return-1;for(h(e,0,t,0,r,o,a),s=0;32>s;s++)e[s]=0;return 0}function E(e,t){var r;for(r=0;16>r;r++)e[r]=0|t[r]}function B(e){var t=1,r,o;for(r=0;16>r;r++)o=e[r]+t+65535,t=_Mathfloor(o/65536),e[r]=o-65536*t;e[0]+=t-1+37*(t-1)}function P(e,r,o){for(var a=0,n;16>a;a++)n=~(o-1)&(e[a]^r[a]),e[a]^=n,r[a]^=n}function U(e,r){var o=le(),a=le(),t,n,s;for(t=0;16>t;t++)a[t]=r[t];for(B(a),B(a),B(a),n=0;2>n;n++){for(o[0]=a[0]-65517,t=1;15>t;t++)o[t]=a[t]-65535-(1&o[t-1]>>16),o[t-1]&=65535;o[15]=a[15]-32767-(1&o[14]>>16),s=1&o[15]>>16,o[14]&=65535,P(a,o,1-s)}for(t=0;16>t;t++)e[2*t]=255&a[t],e[2*t+1]=a[t]>>8}function R(e,t){var r=new Uint8Array(32),o=new Uint8Array(32);return U(r,e),U(o,t),s(r,0,o,0)}function C(e){var t=new Uint8Array(32);return U(t,e),1&t[0]}function O(e,t){var r;for(r=0;16>r;r++)e[r]=t[2*r]+(t[2*r+1]<<8);e[15]&=32767}function j(e,t,r){for(var o=0;16>o;o++)e[o]=t[o]+r[o]}function n(e,t,r){for(var o=0;16>o;o++)e[o]=t[o]-r[o]}function m(e,t,r){var o=0,a=0,n=0,s=0,i=0,l=0,d=0,p=0,u=0,g=0,y=0,h=0,f=0,m=0,A=0,x=0,k=0,S=0,w=0,T=0,E=0,B=0,I=0,P=0,U=0,R=0,C=0,D=0,O=0,L=0,j=0,N=r[0],z=r[1],M=r[2],F=r[3],q=r[4],G=r[5],K=r[6],H=r[7],W=r[8],V=r[9],Q=r[10],Y=r[11],J=r[12],X=r[13],$=r[14],Z=r[15],ee,te;ee=t[0],o+=ee*N,a+=ee*z,n+=ee*M,s+=ee*F,i+=ee*q,l+=ee*G,d+=ee*K,p+=ee*H,u+=ee*W,g+=ee*V,y+=ee*Q,h+=ee*Y,f+=ee*J,m+=ee*X,A+=ee*$,x+=ee*Z,ee=t[1],a+=ee*N,n+=ee*z,s+=ee*M,i+=ee*F,l+=ee*q,d+=ee*G,p+=ee*K,u+=ee*H,g+=ee*W,y+=ee*V,h+=ee*Q,f+=ee*Y,m+=ee*J,A+=ee*X,x+=ee*$,k+=ee*Z,ee=t[2],n+=ee*N,s+=ee*z,i+=ee*M,l+=ee*F,d+=ee*q,p+=ee*G,u+=ee*K,g+=ee*H,y+=ee*W,h+=ee*V,f+=ee*Q,m+=ee*Y,A+=ee*J,x+=ee*X,k+=ee*$,S+=ee*Z,ee=t[3],s+=ee*N,i+=ee*z,l+=ee*M,d+=ee*F,p+=ee*q,u+=ee*G,g+=ee*K,y+=ee*H,h+=ee*W,f+=ee*V,m+=ee*Q,A+=ee*Y,x+=ee*J,k+=ee*X,S+=ee*$,w+=ee*Z,ee=t[4],i+=ee*N,l+=ee*z,d+=ee*M,p+=ee*F,u+=ee*q,g+=ee*G,y+=ee*K,h+=ee*H,f+=ee*W,m+=ee*V,A+=ee*Q,x+=ee*Y,k+=ee*J,S+=ee*X,w+=ee*$,T+=ee*Z,ee=t[5],l+=ee*N,d+=ee*z,p+=ee*M,u+=ee*F,g+=ee*q,y+=ee*G,h+=ee*K,f+=ee*H,m+=ee*W,A+=ee*V,x+=ee*Q,k+=ee*Y,S+=ee*J,w+=ee*X,T+=ee*$,E+=ee*Z,ee=t[6],d+=ee*N,p+=ee*z,u+=ee*M,g+=ee*F,y+=ee*q,h+=ee*G,f+=ee*K,m+=ee*H,A+=ee*W,x+=ee*V,k+=ee*Q,S+=ee*Y,w+=ee*J,T+=ee*X,E+=ee*$,B+=ee*Z,ee=t[7],p+=ee*N,u+=ee*z,g+=ee*M,y+=ee*F,h+=ee*q,f+=ee*G,m+=ee*K,A+=ee*H,x+=ee*W,k+=ee*V,S+=ee*Q,w+=ee*Y,T+=ee*J,E+=ee*X,B+=ee*$,I+=ee*Z,ee=t[8],u+=ee*N,g+=ee*z,y+=ee*M,h+=ee*F,f+=ee*q,m+=ee*G,A+=ee*K,x+=ee*H,k+=ee*W,S+=ee*V,w+=ee*Q,T+=ee*Y,E+=ee*J,B+=ee*X,I+=ee*$,P+=ee*Z,ee=t[9],g+=ee*N,y+=ee*z,h+=ee*M,f+=ee*F,m+=ee*q,A+=ee*G,x+=ee*K,k+=ee*H,S+=ee*W,w+=ee*V,T+=ee*Q,E+=ee*Y,B+=ee*J,I+=ee*X,P+=ee*$,U+=ee*Z,ee=t[10],y+=ee*N,h+=ee*z,f+=ee*M,m+=ee*F,A+=ee*q,x+=ee*G,k+=ee*K,S+=ee*H,w+=ee*W,T+=ee*V,E+=ee*Q,B+=ee*Y,I+=ee*J,P+=ee*X,U+=ee*$,R+=ee*Z,ee=t[11],h+=ee*N,f+=ee*z,m+=ee*M,A+=ee*F,x+=ee*q,k+=ee*G,S+=ee*K,w+=ee*H,T+=ee*W,E+=ee*V,B+=ee*Q,I+=ee*Y,P+=ee*J,U+=ee*X,R+=ee*$,C+=ee*Z,ee=t[12],f+=ee*N,m+=ee*z,A+=ee*M,x+=ee*F,k+=ee*q,S+=ee*G,w+=ee*K,T+=ee*H,E+=ee*W,B+=ee*V,I+=ee*Q,P+=ee*Y,U+=ee*J,R+=ee*X,C+=ee*$,D+=ee*Z,ee=t[13],m+=ee*N,A+=ee*z,x+=ee*M,k+=ee*F,S+=ee*q,w+=ee*G,T+=ee*K,E+=ee*H,B+=ee*W,I+=ee*V,P+=ee*Q,U+=ee*Y,R+=ee*J,C+=ee*X,D+=ee*$,O+=ee*Z,ee=t[14],A+=ee*N,x+=ee*z,k+=ee*M,S+=ee*F,w+=ee*q,T+=ee*G,E+=ee*K,B+=ee*H,I+=ee*W,P+=ee*V,U+=ee*Q,R+=ee*Y,C+=ee*J,D+=ee*X,O+=ee*$,L+=ee*Z,ee=t[15],x+=ee*N,k+=ee*z,S+=ee*M,w+=ee*F,T+=ee*q,E+=ee*G,B+=ee*K,I+=ee*H,P+=ee*W,U+=ee*V,R+=ee*Q,C+=ee*Y,D+=ee*J,O+=ee*X,L+=ee*$,j+=ee*Z,o+=38*k,a+=38*S,n+=38*w,s+=38*T,i+=38*E,l+=38*B,d+=38*I,p+=38*P,u+=38*U,g+=38*R,y+=38*C,h+=38*D,f+=38*O,m+=38*L,A+=38*j,te=1,ee=o+te+65535,te=_Mathfloor(ee/65536),o=ee-65536*te,ee=a+te+65535,te=_Mathfloor(ee/65536),a=ee-65536*te,ee=n+te+65535,te=_Mathfloor(ee/65536),n=ee-65536*te,ee=s+te+65535,te=_Mathfloor(ee/65536),s=ee-65536*te,ee=i+te+65535,te=_Mathfloor(ee/65536),i=ee-65536*te,ee=l+te+65535,te=_Mathfloor(ee/65536),l=ee-65536*te,ee=d+te+65535,te=_Mathfloor(ee/65536),d=ee-65536*te,ee=p+te+65535,te=_Mathfloor(ee/65536),p=ee-65536*te,ee=u+te+65535,te=_Mathfloor(ee/65536),u=ee-65536*te,ee=g+te+65535,te=_Mathfloor(ee/65536),g=ee-65536*te,ee=y+te+65535,te=_Mathfloor(ee/65536),y=ee-65536*te,ee=h+te+65535,te=_Mathfloor(ee/65536),h=ee-65536*te,ee=f+te+65535,te=_Mathfloor(ee/65536),f=ee-65536*te,ee=m+te+65535,te=_Mathfloor(ee/65536),m=ee-65536*te,ee=A+te+65535,te=_Mathfloor(ee/65536),A=ee-65536*te,ee=x+te+65535,te=_Mathfloor(ee/65536),x=ee-65536*te,o+=te-1+37*(te-1),te=1,ee=o+te+65535,te=_Mathfloor(ee/65536),o=ee-65536*te,ee=a+te+65535,te=_Mathfloor(ee/65536),a=ee-65536*te,ee=n+te+65535,te=_Mathfloor(ee/65536),n=ee-65536*te,ee=s+te+65535,te=_Mathfloor(ee/65536),s=ee-65536*te,ee=i+te+65535,te=_Mathfloor(ee/65536),i=ee-65536*te,ee=l+te+65535,te=_Mathfloor(ee/65536),l=ee-65536*te,ee=d+te+65535,te=_Mathfloor(ee/65536),d=ee-65536*te,ee=p+te+65535,te=_Mathfloor(ee/65536),p=ee-65536*te,ee=u+te+65535,te=_Mathfloor(ee/65536),u=ee-65536*te,ee=g+te+65535,te=_Mathfloor(ee/65536),g=ee-65536*te,ee=y+te+65535,te=_Mathfloor(ee/65536),y=ee-65536*te,ee=h+te+65535,te=_Mathfloor(ee/65536),h=ee-65536*te,ee=f+te+65535,te=_Mathfloor(ee/65536),f=ee-65536*te,ee=m+te+65535,te=_Mathfloor(ee/65536),m=ee-65536*te,ee=A+te+65535,te=_Mathfloor(ee/65536),A=ee-65536*te,ee=x+te+65535,te=_Mathfloor(ee/65536),x=ee-65536*te,o+=te-1+37*(te-1),e[0]=o,e[1]=a,e[2]=n,e[3]=s,e[4]=i,e[5]=l,e[6]=d,e[7]=p,e[8]=u,e[9]=g,e[10]=y,e[11]=h,e[12]=f,e[13]=m,e[14]=A,e[15]=x}function A(e,t){m(e,t,t)}function k(e,t){var r=le(),o;for(o=0;16>o;o++)r[o]=t[o];for(o=253;0<=o;o--)A(r,r),2!==o&&4!==o&&m(r,r,t);for(o=0;16>o;o++)e[o]=r[o]}function S(e,t){var r=le(),o;for(o=0;16>o;o++)r[o]=t[o];for(o=250;0<=o;o--)A(r,r),1!==o&&m(r,r,t);for(o=0;16>o;o++)e[o]=r[o]}function N(t,o,s){var l=new Uint8Array(32),p=new Float64Array(80),u=le(),a=le(),g=le(),y=le(),d=le(),e=le(),h,f;for(f=0;31>f;f++)l[f]=o[f];for(l[31]=64|127&o[31],l[0]&=248,O(p,s),f=0;16>f;f++)a[f]=p[f],y[f]=u[f]=g[f]=0;for(u[0]=y[0]=1,f=254;0<=f;--f)h=1&l[f>>>3]>>>(7&f),P(u,a,h),P(g,y,h),j(d,u,g),n(u,u,g),j(g,a,y),n(a,a,y),A(y,d),A(e,u),m(u,g,u),m(g,a,d),j(d,u,g),n(u,u,g),A(a,u),n(g,y,e),m(u,g,ge),j(u,u,y),m(g,g,u),m(u,y,e),m(y,a,p),A(a,d),P(u,a,h),P(g,y,h);for(f=0;16>f;f++)p[f+16]=u[f],p[f+32]=g[f],p[f+48]=a[f],p[f+64]=y[f];var x=p.subarray(32),S=p.subarray(16);return k(x,x),m(S,S,x),U(t,S),0}function z(e,t){return N(e,t,x)}function M(e,t){return ce(t,32),z(e,t)}function F(e,t,r){var o=new Uint8Array(32);return N(o,r,t),p(e,de,o,I)}function q(e,t,r,o){for(var s=new Int32Array(16),p=new Int32Array(16),u=e[0],g=e[1],y=e[2],f=e[3],m=e[4],A=e[5],x=e[6],k=e[7],S=t[0],w=t[1],v=t[2],T=t[3],E=t[4],B=t[5],I=t[6],P=t[7],U=0,R,C,D,O,L,N,z,M,F,q,G,K,H,W,V,Q,Y,J,X,$,Z,ee,te,re,oe,ae;128<=o;){for(X=0;16>X;X++)$=8*X+U,s[X]=r[$+0]<<24|r[$+1]<<16|r[$+2]<<8|r[$+3],p[X]=r[$+4]<<24|r[$+5]<<16|r[$+6]<<8|r[$+7];for(X=0;80>X;X++)if(R=u,C=g,D=y,O=f,L=m,N=A,z=x,M=k,F=S,q=w,G=v,K=T,H=E,W=B,V=I,Q=P,Z=k,ee=P,te=65535&ee,re=ee>>>16,oe=65535&Z,ae=Z>>>16,Z=(m>>>14|E<<18)^(m>>>18|E<<14)^(E>>>9|m<<23),ee=(E>>>14|m<<18)^(E>>>18|m<<14)^(m>>>9|E<<23),te+=65535&ee,re+=ee>>>16,oe+=65535&Z,ae+=Z>>>16,Z=m&A^~m&x,ee=E&B^~E&I,te+=65535&ee,re+=ee>>>16,oe+=65535&Z,ae+=Z>>>16,Z=be[2*X],ee=be[2*X+1],te+=65535&ee,re+=ee>>>16,oe+=65535&Z,ae+=Z>>>16,Z=s[X%16],ee=p[X%16],te+=65535&ee,re+=ee>>>16,oe+=65535&Z,ae+=Z>>>16,re+=te>>>16,oe+=re>>>16,ae+=oe>>>16,Y=65535&oe|ae<<16,J=65535&te|re<<16,Z=Y,ee=J,te=65535&ee,re=ee>>>16,oe=65535&Z,ae=Z>>>16,Z=(u>>>28|S<<4)^(S>>>2|u<<30)^(S>>>7|u<<25),ee=(S>>>28|u<<4)^(u>>>2|S<<30)^(u>>>7|S<<25),te+=65535&ee,re+=ee>>>16,oe+=65535&Z,ae+=Z>>>16,Z=u&g^u&y^g&y,ee=S&w^S&v^w&v,te+=65535&ee,re+=ee>>>16,oe+=65535&Z,ae+=Z>>>16,re+=te>>>16,oe+=re>>>16,ae+=oe>>>16,M=65535&oe|ae<<16,Q=65535&te|re<<16,Z=O,ee=K,te=65535&ee,re=ee>>>16,oe=65535&Z,ae=Z>>>16,Z=Y,ee=J,te+=65535&ee,re+=ee>>>16,oe+=65535&Z,ae+=Z>>>16,re+=te>>>16,oe+=re>>>16,ae+=oe>>>16,O=65535&oe|ae<<16,K=65535&te|re<<16,g=R,y=C,f=D,m=O,A=L,x=N,k=z,u=M,w=F,v=q,T=G,E=K,B=H,I=W,P=V,S=Q,15==X%16)for($=0;16>$;$++)Z=s[$],ee=p[$],te=65535&ee,re=ee>>>16,oe=65535&Z,ae=Z>>>16,Z=s[($+9)%16],ee=p[($+9)%16],te+=65535&ee,re+=ee>>>16,oe+=65535&Z,ae+=Z>>>16,Y=s[($+1)%16],J=p[($+1)%16],Z=(Y>>>1|J<<31)^(Y>>>8|J<<24)^Y>>>7,ee=(J>>>1|Y<<31)^(J>>>8|Y<<24)^(J>>>7|Y<<25),te+=65535&ee,re+=ee>>>16,oe+=65535&Z,ae+=Z>>>16,Y=s[($+14)%16],J=p[($+14)%16],Z=(Y>>>19|J<<13)^(J>>>29|Y<<3)^Y>>>6,ee=(J>>>19|Y<<13)^(Y>>>29|J<<3)^(J>>>6|Y<<26),te+=65535&ee,re+=ee>>>16,oe+=65535&Z,ae+=Z>>>16,re+=te>>>16,oe+=re>>>16,ae+=oe>>>16,s[$]=65535&oe|ae<<16,p[$]=65535&te|re<<16;Z=u,ee=S,te=65535&ee,re=ee>>>16,oe=65535&Z,ae=Z>>>16,Z=e[0],ee=t[0],te+=65535&ee,re+=ee>>>16,oe+=65535&Z,ae+=Z>>>16,re+=te>>>16,oe+=re>>>16,ae+=oe>>>16,e[0]=u=65535&oe|ae<<16,t[0]=S=65535&te|re<<16,Z=g,ee=w,te=65535&ee,re=ee>>>16,oe=65535&Z,ae=Z>>>16,Z=e[1],ee=t[1],te+=65535&ee,re+=ee>>>16,oe+=65535&Z,ae+=Z>>>16,re+=te>>>16,oe+=re>>>16,ae+=oe>>>16,e[1]=g=65535&oe|ae<<16,t[1]=w=65535&te|re<<16,Z=y,ee=v,te=65535&ee,re=ee>>>16,oe=65535&Z,ae=Z>>>16,Z=e[2],ee=t[2],te+=65535&ee,re+=ee>>>16,oe+=65535&Z,ae+=Z>>>16,re+=te>>>16,oe+=re>>>16,ae+=oe>>>16,e[2]=y=65535&oe|ae<<16,t[2]=v=65535&te|re<<16,Z=f,ee=T,te=65535&ee,re=ee>>>16,oe=65535&Z,ae=Z>>>16,Z=e[3],ee=t[3],te+=65535&ee,re+=ee>>>16,oe+=65535&Z,ae+=Z>>>16,re+=te>>>16,oe+=re>>>16,ae+=oe>>>16,e[3]=f=65535&oe|ae<<16,t[3]=T=65535&te|re<<16,Z=m,ee=E,te=65535&ee,re=ee>>>16,oe=65535&Z,ae=Z>>>16,Z=e[4],ee=t[4],te+=65535&ee,re+=ee>>>16,oe+=65535&Z,ae+=Z>>>16,re+=te>>>16,oe+=re>>>16,ae+=oe>>>16,e[4]=m=65535&oe|ae<<16,t[4]=E=65535&te|re<<16,Z=A,ee=B,te=65535&ee,re=ee>>>16,oe=65535&Z,ae=Z>>>16,Z=e[5],ee=t[5],te+=65535&ee,re+=ee>>>16,oe+=65535&Z,ae+=Z>>>16,re+=te>>>16,oe+=re>>>16,ae+=oe>>>16,e[5]=A=65535&oe|ae<<16,t[5]=B=65535&te|re<<16,Z=x,ee=I,te=65535&ee,re=ee>>>16,oe=65535&Z,ae=Z>>>16,Z=e[6],ee=t[6],te+=65535&ee,re+=ee>>>16,oe+=65535&Z,ae+=Z>>>16,re+=te>>>16,oe+=re>>>16,ae+=oe>>>16,e[6]=x=65535&oe|ae<<16,t[6]=I=65535&te|re<<16,Z=k,ee=P,te=65535&ee,re=ee>>>16,oe=65535&Z,ae=Z>>>16,Z=e[7],ee=t[7],te+=65535&ee,re+=ee>>>16,oe+=65535&Z,ae+=Z>>>16,re+=te>>>16,oe+=re>>>16,ae+=oe>>>16,e[7]=k=65535&oe|ae<<16,t[7]=P=65535&te|re<<16,U+=128,o-=128}return o}function G(e,t,o){var a=new Int32Array(8),s=new Int32Array(8),l=new Uint8Array(256),d=o,p;for(a[0]=1779033703,a[1]=3144134277,a[2]=1013904242,a[3]=2773480762,a[4]=1359893119,a[5]=2600822924,a[6]=528734635,a[7]=1541459225,s[0]=4089235720,s[1]=2227873595,s[2]=4271175723,s[3]=1595750129,s[4]=2917565137,s[5]=725511199,s[6]=4215389547,s[7]=327033209,q(a,s,t,o),o%=128,p=0;p<o;p++)l[p]=t[d-o+p];for(l[o]=128,o=256-128*(112>o?1:0),l[o-9]=0,r(l,o-8,0|d/536870912,d<<3),q(a,s,l,o),p=0;8>p;p++)r(e,8*p,a[p],s[p]);return 0}function H(r,o){var s=le(),a=le(),i=le(),l=le(),d=le(),e=le(),p=le(),u=le(),g=le();n(s,r[1],r[0]),n(g,o[1],o[0]),m(s,s,g),j(a,r[0],r[1]),j(g,o[0],o[1]),m(a,a,g),m(i,r[3],o[3]),m(i,i,D),m(l,r[2],o[2]),j(l,l,l),n(d,a,s),n(e,l,i),j(p,l,i),j(u,a,s),m(r[0],d,e),m(r[1],u,p),m(r[2],p,e),m(r[3],d,u)}function W(e,t,r){var o;for(o=0;4>o;o++)P(e[o],t[o],r)}function V(e,t){var r=le(),o=le(),a=le();k(a,t[2]),m(r,t[0],a),m(o,t[1],a),U(e,o),e[31]^=C(r)<<7}function Q(e,t,r){var o,a;for(E(e[0],pe),E(e[1],ue),E(e[2],ue),E(e[3],pe),a=255;0<=a;--a)o=1&r[0|a/8]>>(7&a),W(e,t,o),H(t,e),H(e,e),W(e,t,o)}function J(e,t){var r=[le(),le(),le(),le()];E(r[0],he),E(r[1],X),E(r[2],ue),m(r[3],he,X),Q(e,r,t)}function $(e,t,r){var o=new Uint8Array(64),a=[le(),le(),le(),le()],n;for(r||ce(t,32),G(o,t,32),o[0]&=248,o[31]&=127,o[31]|=64,J(a,o),V(e,a),n=0;32>n;n++)t[n+32]=e[n];return 0}function Z(e,t){var r,o,a,n;for(o=63;32<=o;--o){for(r=0,a=o-32,n=o-12;a<n;++a)t[a]+=r-16*t[o]*K[a-(o-32)],r=_Mathfloor((t[a]+128)/256),t[a]-=256*r;t[a]+=r,t[o]=0}for(r=0,a=0;32>a;a++)t[a]+=r-(t[31]>>4)*K[a],r=t[a]>>8,t[a]&=255;for(a=0;32>a;a++)t[a]-=r*K[a];for(o=0;32>o;o++)t[o+1]+=t[o]>>8,e[o]=255&t[o]}function ee(e){var t=new Float64Array(64),r;for(r=0;64>r;r++)t[r]=e[r];for(r=0;64>r;r++)e[r]=0;Z(e,t)}function te(e,t,o,a){var n=new Uint8Array(64),s=new Uint8Array(64),l=new Uint8Array(64),r=new Float64Array(64),d=[le(),le(),le(),le()],p,u;G(n,a,32),n[0]&=248,n[31]&=127,n[31]|=64;for(p=0;p<o;p++)e[64+p]=t[p];for(p=0;32>p;p++)e[32+p]=n[32+p];for(G(l,e.subarray(32),o+32),ee(l),J(d,l),V(e,d),p=32;64>p;p++)e[p]=a[p];for(G(s,e,o+64),ee(s),p=0;64>p;p++)r[p]=0;for(p=0;32>p;p++)r[p]=l[p];for(p=0;32>p;p++)for(u=0;32>u;u++)r[p+u]+=s[p]*n[u];return Z(e.subarray(32),r),o+64}function re(e,r){var o=le(),t=le(),a=le(),s=le(),i=le(),l=le(),d=le();return(E(e[2],ue),O(e[1],r),A(a,e[1]),m(s,a,ye),n(a,a,e[2]),j(s,e[2],s),A(i,s),A(l,i),m(d,l,i),m(o,d,a),m(o,o,s),S(o,o),m(o,o,a),m(o,o,s),m(o,o,s),m(e[0],o,s),A(t,e[0]),m(t,t,s),R(t,a)&&m(e[0],e[0],Y),A(t,e[0]),m(t,t,s),R(t,a))?-1:(C(e[0])===r[31]>>7&&n(e[0],pe,e[0]),m(e[3],e[0],e[1]),0)}function oe(e,r,o,a){var l=new Uint8Array(32),t=new Uint8Array(64),d=[le(),le(),le(),le()],p=[le(),le(),le(),le()],u;if(64>o)return-1;if(re(p,a))return-1;for(u=0;u<o;u++)e[u]=r[u];for(u=0;32>u;u++)e[u+32]=a[u];if(G(t,e,o),ee(t),Q(d,p,t),J(p,r.subarray(32)),H(d,p),V(l,d),o-=64,s(r,0,l,0)){for(u=0;u<o;u++)e[u]=0;return-1}for(u=0;u<o;u++)e[u]=r[u+64];return o}function ae(e,t){if(e.length!==32)throw new Error("bad key size");if(24!==t.length)throw new Error("bad nonce size")}function ne(e,t){if(e.length!==32)throw new Error("bad public key size");if(32!==t.length)throw new Error("bad secret key size")}function se(){for(var e=0;e<arguments.length;e++)if(!(arguments[e]instanceof Uint8Array))throw new TypeError("unexpected type, use Uint8Array")}function ie(e){for(var t=0;t<e.length;t++)e[t]=0}var le=function(e){var t=new Float64Array(16),r;if(e)for(r=0;r<e.length;r++)t[r]=e[r];return t},ce=function(){throw new Error("no PRNG")},de=new Uint8Array(16),x=new Uint8Array(32);x[0]=9;var pe=le(),ue=le([1]),ge=le([56129,1]),ye=le([30883,4953,19914,30187,55467,16705,2637,112,59544,30585,16505,36039,65139,11119,27886,20995]),D=le([61785,9906,39828,60374,45398,33411,5274,224,53552,61171,33010,6542,64743,22239,55772,9222]),he=le([54554,36645,11616,51542,42930,38181,51040,26924,56412,64982,57905,49316,21502,52590,14035,8553]),X=le([26200,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214]),Y=le([41136,18958,6951,50414,58488,44335,6150,12099,55207,15867,153,11085,57099,20417,9344,11139]),I=new Uint8Array([101,120,112,97,110,100,32,51,50,45,98,121,116,101,32,107]),fe=function(e){this.buffer=new Uint8Array(16),this.r=new Uint16Array(10),this.h=new Uint16Array(10),this.pad=new Uint16Array(8),this.leftover=0,this.fin=0;var t,r,o,a,n,s,i,l;t=255&e[0]|(255&e[1])<<8,this.r[0]=8191&t,r=255&e[2]|(255&e[3])<<8,this.r[1]=8191&(t>>>13|r<<3),o=255&e[4]|(255&e[5])<<8,this.r[2]=7939&(r>>>10|o<<6),a=255&e[6]|(255&e[7])<<8,this.r[3]=8191&(o>>>7|a<<9),n=255&e[8]|(255&e[9])<<8,this.r[4]=255&(a>>>4|n<<12),this.r[5]=8190&n>>>1,s=255&e[10]|(255&e[11])<<8,this.r[6]=8191&(n>>>14|s<<2),i=255&e[12]|(255&e[13])<<8,this.r[7]=8065&(s>>>11|i<<5),l=255&e[14]|(255&e[15])<<8,this.r[8]=8191&(i>>>8|l<<8),this.r[9]=127&l>>>5,this.pad[0]=255&e[16]|(255&e[17])<<8,this.pad[1]=255&e[18]|(255&e[19])<<8,this.pad[2]=255&e[20]|(255&e[21])<<8,this.pad[3]=255&e[22]|(255&e[23])<<8,this.pad[4]=255&e[24]|(255&e[25])<<8,this.pad[5]=255&e[26]|(255&e[27])<<8,this.pad[6]=255&e[28]|(255&e[29])<<8,this.pad[7]=255&e[30]|(255&e[31])<<8};fe.prototype.blocks=function(e,t,r){for(var o=this.fin?0:2048,a=this.h[0],n=this.h[1],s=this.h[2],i=this.h[3],l=this.h[4],d=this.h[5],p=this.h[6],u=this.h[7],g=this.h[8],y=this.h[9],h=this.r[0],f=this.r[1],m=this.r[2],A=this.r[3],x=this.r[4],k=this.r[5],S=this.r[6],w=this.r[7],v=this.r[8],T=this.r[9],E,B,I,P,U,R,C,D,O,L,j,N,z,M,F,q,G,K,H;16<=r;)E=255&e[t+0]|(255&e[t+1])<<8,a+=8191&E,B=255&e[t+2]|(255&e[t+3])<<8,n+=8191&(E>>>13|B<<3),I=255&e[t+4]|(255&e[t+5])<<8,s+=8191&(B>>>10|I<<6),P=255&e[t+6]|(255&e[t+7])<<8,i+=8191&(I>>>7|P<<9),U=255&e[t+8]|(255&e[t+9])<<8,l+=8191&(P>>>4|U<<12),d+=8191&U>>>1,R=255&e[t+10]|(255&e[t+11])<<8,p+=8191&(U>>>14|R<<2),C=255&e[t+12]|(255&e[t+13])<<8,u+=8191&(R>>>11|C<<5),D=255&e[t+14]|(255&e[t+15])<<8,g+=8191&(C>>>8|D<<8),y+=D>>>5|o,O=0,L=O,L+=a*h,L+=n*(5*T),L+=s*(5*v),L+=i*(5*w),L+=l*(5*S),O=L>>>13,L&=8191,L+=d*(5*k),L+=p*(5*x),L+=u*(5*A),L+=g*(5*m),L+=y*(5*f),O+=L>>>13,L&=8191,j=O,j+=a*f,j+=n*h,j+=s*(5*T),j+=i*(5*v),j+=l*(5*w),O=j>>>13,j&=8191,j+=d*(5*S),j+=p*(5*k),j+=u*(5*x),j+=g*(5*A),j+=y*(5*m),O+=j>>>13,j&=8191,N=O,N+=a*m,N+=n*f,N+=s*h,N+=i*(5*T),N+=l*(5*v),O=N>>>13,N&=8191,N+=d*(5*w),N+=p*(5*S),N+=u*(5*k),N+=g*(5*x),N+=y*(5*A),O+=N>>>13,N&=8191,z=O,z+=a*A,z+=n*m,z+=s*f,z+=i*h,z+=l*(5*T),O=z>>>13,z&=8191,z+=d*(5*v),z+=p*(5*w),z+=u*(5*S),z+=g*(5*k),z+=y*(5*x),O+=z>>>13,z&=8191,M=O,M+=a*x,M+=n*A,M+=s*m,M+=i*f,M+=l*h,O=M>>>13,M&=8191,M+=d*(5*T),M+=p*(5*v),M+=u*(5*w),M+=g*(5*S),M+=y*(5*k),O+=M>>>13,M&=8191,F=O,F+=a*k,F+=n*x,F+=s*A,F+=i*m,F+=l*f,O=F>>>13,F&=8191,F+=d*h,F+=p*(5*T),F+=u*(5*v),F+=g*(5*w),F+=y*(5*S),O+=F>>>13,F&=8191,q=O,q+=a*S,q+=n*k,q+=s*x,q+=i*A,q+=l*m,O=q>>>13,q&=8191,q+=d*f,q+=p*h,q+=u*(5*T),q+=g*(5*v),q+=y*(5*w),O+=q>>>13,q&=8191,G=O,G+=a*w,G+=n*S,G+=s*k,G+=i*x,G+=l*A,O=G>>>13,G&=8191,G+=d*m,G+=p*f,G+=u*h,G+=g*(5*T),G+=y*(5*v),O+=G>>>13,G&=8191,K=O,K+=a*v,K+=n*w,K+=s*S,K+=i*k,K+=l*x,O=K>>>13,K&=8191,K+=d*A,K+=p*m,K+=u*f,K+=g*h,K+=y*(5*T),O+=K>>>13,K&=8191,H=O,H+=a*T,H+=n*v,H+=s*w,H+=i*S,H+=l*k,O=H>>>13,H&=8191,H+=d*x,H+=p*A,H+=u*m,H+=g*f,H+=y*h,O+=H>>>13,H&=8191,O=0|(O<<2)+O,O=0|O+L,L=8191&O,O>>>=13,j+=O,a=L,n=j,s=N,i=z,l=M,d=F,p=q,u=G,g=K,y=H,t+=16,r-=16;this.h[0]=a,this.h[1]=n,this.h[2]=s,this.h[3]=i,this.h[4]=l,this.h[5]=d,this.h[6]=p,this.h[7]=u,this.h[8]=g,this.h[9]=y},fe.prototype.finish=function(e,t){var r=new Uint16Array(10),o,a,n,s;if(this.leftover){for(s=this.leftover,this.buffer[s++]=1;16>s;s++)this.buffer[s]=0;this.fin=1,this.blocks(this.buffer,0,16)}for(o=this.h[1]>>>13,this.h[1]&=8191,s=2;10>s;s++)this.h[s]+=o,o=this.h[s]>>>13,this.h[s]&=8191;for(this.h[0]+=5*o,o=this.h[0]>>>13,this.h[0]&=8191,this.h[1]+=o,o=this.h[1]>>>13,this.h[1]&=8191,this.h[2]+=o,r[0]=this.h[0]+5,o=r[0]>>>13,r[0]&=8191,s=1;10>s;s++)r[s]=this.h[s]+o,o=r[s]>>>13,r[s]&=8191;for(r[9]-=8192,a=(1^o)-1,s=0;10>s;s++)r[s]&=a;for(a=~a,s=0;10>s;s++)this.h[s]=this.h[s]&a|r[s];for(this.h[0]=65535&(this.h[0]|this.h[1]<<13),this.h[1]=65535&(this.h[1]>>>3|this.h[2]<<10),this.h[2]=65535&(this.h[2]>>>6|this.h[3]<<7),this.h[3]=65535&(this.h[3]>>>9|this.h[4]<<4),this.h[4]=65535&(this.h[4]>>>12|this.h[5]<<1|this.h[6]<<14),this.h[5]=65535&(this.h[6]>>>2|this.h[7]<<11),this.h[6]=65535&(this.h[7]>>>5|this.h[8]<<8),this.h[7]=65535&(this.h[8]>>>8|this.h[9]<<5),n=this.h[0]+this.pad[0],this.h[0]=65535&n,s=1;8>s;s++)n=0|(0|this.h[s]+this.pad[s])+(n>>>16),this.h[s]=65535&n;e[t+0]=255&this.h[0]>>>0,e[t+1]=255&this.h[0]>>>8,e[t+2]=255&this.h[1]>>>0,e[t+3]=255&this.h[1]>>>8,e[t+4]=255&this.h[2]>>>0,e[t+5]=255&this.h[2]>>>8,e[t+6]=255&this.h[3]>>>0,e[t+7]=255&this.h[3]>>>8,e[t+8]=255&this.h[4]>>>0,e[t+9]=255&this.h[4]>>>8,e[t+10]=255&this.h[5]>>>0,e[t+11]=255&this.h[5]>>>8,e[t+12]=255&this.h[6]>>>0,e[t+13]=255&this.h[6]>>>8,e[t+14]=255&this.h[7]>>>0,e[t+15]=255&this.h[7]>>>8},fe.prototype.update=function(e,t,r){var o,a;if(this.leftover){for(a=16-this.leftover,a>r&&(a=r),o=0;o<a;o++)this.buffer[this.leftover+o]=e[t+o];if(r-=a,t+=a,this.leftover+=a,16>this.leftover)return;this.blocks(this.buffer,0,16),this.leftover=0}if(16<=r&&(a=r-r%16,this.blocks(e,t,a),t+=a,r-=a),r){for(o=0;o<r;o++)this.buffer[this.leftover+o]=e[t+o];this.leftover+=r}};var me=v,be=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591],K=new Float64Array([237,211,245,92,26,99,18,88,214,156,247,162,222,249,222,20,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,16]),L=32,Ae=24,xe=32,_e=16,ke=32,Se=32,we=32,ve=32,Te=32,Ee=Ae,Be=64,Ie=32,Pe=64,Ue=32,Re=64;t.lowlevel={crypto_core_hsalsa20:p,crypto_stream_xor:h,crypto_stream:y,crypto_stream_salsa20_xor:u,crypto_stream_salsa20:g,crypto_onetimeauth:f,crypto_onetimeauth_verify:w,crypto_verify_16:a,crypto_verify_32:s,crypto_secretbox:v,crypto_secretbox_open:T,crypto_scalarmult:N,crypto_scalarmult_base:z,crypto_box_beforenm:F,crypto_box_afternm:me,crypto_box:function(e,t,r,o,a,n){var s=new Uint8Array(32);return F(s,a,n),me(e,t,r,o,s)},crypto_box_open:function(e,t,r,o,a,n){var s=new Uint8Array(32);return F(s,a,n),T(e,t,r,o,s)},crypto_box_keypair:M,crypto_hash:G,crypto_sign:te,crypto_sign_keypair:$,crypto_sign_open:oe,crypto_secretbox_KEYBYTES:L,crypto_secretbox_NONCEBYTES:Ae,crypto_secretbox_ZEROBYTES:xe,crypto_secretbox_BOXZEROBYTES:_e,crypto_scalarmult_BYTES:ke,crypto_scalarmult_SCALARBYTES:Se,crypto_box_PUBLICKEYBYTES:we,crypto_box_SECRETKEYBYTES:ve,crypto_box_BEFORENMBYTES:Te,crypto_box_NONCEBYTES:Ee,crypto_box_ZEROBYTES:xe,crypto_box_BOXZEROBYTES:_e,crypto_sign_BYTES:Be,crypto_sign_PUBLICKEYBYTES:Ie,crypto_sign_SECRETKEYBYTES:Pe,crypto_sign_SEEDBYTES:Ue,crypto_hash_BYTES:Re,gf:le,D:ye,L:K,pack25519:U,unpack25519:O,M:m,A:j,S:A,Z:n,pow2523:S,add:H,set25519:E,modL:Z,scalarmult:Q,scalarbase:J},t.randomBytes=function(e){var t=new Uint8Array(e);return ce(t,e),t},t.secretbox=function(e,t,r){se(e,t,r),ae(r,t);for(var o=new Uint8Array(xe+e.length),a=new Uint8Array(o.length),n=0;n<e.length;n++)o[n+xe]=e[n];return v(a,o,o.length,t,r),a.subarray(_e)},t.secretbox.open=function(e,t,r){se(e,t,r),ae(r,t);for(var o=new Uint8Array(_e+e.length),a=new Uint8Array(o.length),n=0;n<e.length;n++)o[n+_e]=e[n];return 32>o.length?null:0===T(a,o,o.length,t,r)?a.subarray(xe):null},t.secretbox.keyLength=L,t.secretbox.nonceLength=Ae,t.secretbox.overheadLength=_e,t.scalarMult=function(e,t){if(se(e,t),e.length!==Se)throw new Error("bad n size");if(t.length!==ke)throw new Error("bad p size");var r=new Uint8Array(ke);return N(r,e,t),r},t.scalarMult.base=function(e){if(se(e),e.length!==Se)throw new Error("bad n size");var t=new Uint8Array(ke);return z(t,e),t},t.scalarMult.scalarLength=Se,t.scalarMult.groupElementLength=ke,t.box=function(e,r,o,a){var n=t.box.before(o,a);return t.secretbox(e,r,n)},t.box.before=function(e,t){se(e,t),ne(e,t);var r=new Uint8Array(Te);return F(r,e,t),r},t.box.after=t.secretbox,t.box.open=function(e,r,o,a){var n=t.box.before(o,a);return t.secretbox.open(e,r,n)},t.box.open.after=t.secretbox.open,t.box.keyPair=function(){var e=new Uint8Array(we),t=new Uint8Array(ve);return M(e,t),{publicKey:e,secretKey:t}},t.box.keyPair.fromSecretKey=function(e){if(se(e),e.length!==ve)throw new Error("bad secret key size");var t=new Uint8Array(we);return z(t,e),{publicKey:t,secretKey:new Uint8Array(e)}},t.box.publicKeyLength=we,t.box.secretKeyLength=ve,t.box.sharedKeyLength=Te,t.box.nonceLength=Ee,t.box.overheadLength=t.secretbox.overheadLength,t.sign=function(e,t){if(se(e,t),t.length!==Pe)throw new Error("bad secret key size");var r=new Uint8Array(Be+e.length);return te(r,e,e.length,t),r},t.sign.open=function(e,t){if(se(e,t),t.length!==Ie)throw new Error("bad public key size");var r=new Uint8Array(e.length),o=oe(r,e,e.length,t);if(0>o)return null;for(var a=new Uint8Array(o),n=0;n<a.length;n++)a[n]=r[n];return a},t.sign.detached=function(e,r){for(var o=t.sign(e,r),a=new Uint8Array(Be),n=0;n<a.length;n++)a[n]=o[n];return a},t.sign.detached.verify=function(e,t,r){if(se(e,t,r),t.length!==Be)throw new Error("bad signature size");if(r.length!==Ie)throw new Error("bad public key size");var o=new Uint8Array(Be+e.length),a=new Uint8Array(Be+e.length),n;for(n=0;n<Be;n++)o[n]=t[n];for(n=0;n<e.length;n++)o[n+Be]=e[n];return 0<=oe(a,o,o.length,r)},t.sign.keyPair=function(){var e=new Uint8Array(Ie),t=new Uint8Array(Pe);return $(e,t),{publicKey:e,secretKey:t}},t.sign.keyPair.fromSecretKey=function(e){if(se(e),e.length!==Pe)throw new Error("bad secret key size");for(var t=new Uint8Array(Ie),r=0;r<t.length;r++)t[r]=e[32+r];return{publicKey:t,secretKey:new Uint8Array(e)}},t.sign.keyPair.fromSeed=function(e){if(se(e),e.length!==Ue)throw new Error("bad seed size");for(var t=new Uint8Array(Ie),r=new Uint8Array(Pe),o=0;32>o;o++)r[o]=e[o];return $(t,r,!0),{publicKey:t,secretKey:r}},t.sign.publicKeyLength=Ie,t.sign.secretKeyLength=Pe,t.sign.seedLength=Ue,t.sign.signatureLength=Be,t.hash=function(e){se(e);var t=new Uint8Array(Re);return G(t,e,e.length),t},t.hash.hashLength=Re,t.verify=function(e,t){return se(e,t),0!==e.length&&0!==t.length&&e.length===t.length&&0===o(e,0,t,0,e.length)},t.setPRNG=function(e){ce=e},function(){var r="undefined"==typeof self?null:self.crypto||self.msCrypto;if(r&&r.getRandomValues){t.setPRNG(function(e,t){var o=new Uint8Array(t),a;for(a=0;a<t;a+=65536)r.getRandomValues(o.subarray(a,a+_Mathmin(t-a,65536)));for(a=0;a<t;a++)e[a]=o[a];ie(o)})}else"undefined"!=typeof e&&(r=e("crypto"),r&&r.randomBytes&&t.setPRNG(function(e,t){var o=r.randomBytes(t),a;for(a=0;a<t;a++)e[a]=o[a];ie(o)}))}()})("undefined"!=typeof t&&t.exports?t.exports:self.nacl=self.nacl||{})},{crypto:12}],92:[function(e,t,r){(function(e){function r(t){try{if(!e.localStorage)return!1}catch(e){return!1}var r=e.localStorage[t];return null!=r&&"true"===(r+"").toLowerCase()}t.exports=function(e,t){function o(){if(!a){if(r("throwDeprecation"))throw new Error(t);else r("traceDeprecation")?console.trace(t):console.warn(t);a=!0}return e.apply(this,arguments)}if(r("noDeprecation"))return e;var a=!1;return o}}).call(this,"undefined"==typeof global?"undefined"==typeof self?"undefined"==typeof window?{}:window:self:global)},{}],93:[function(e,t,r){(function(r){'use strict';var o=e("foreach"),a=e("available-typed-arrays"),n=e("es-abstract/helpers/callBound"),s=n("Object.prototype.toString"),i=e("has-symbols")(),l=i&&"symbol"==typeof Symbol.toStringTag,d=a(),p=n("String.prototype.slice"),u={},g=e("es-abstract/helpers/getOwnPropertyDescriptor"),y=Object.getPrototypeOf;l&&g&&y&&o(d,function(e){if("function"==typeof r[e]){var t=new r[e];if(!(Symbol.toStringTag in t))throw new EvalError("this engine has support for Symbol.toStringTag, but "+e+" does not have the property! Please report this.");var o=y(t),a=g(o,Symbol.toStringTag);if(!a){var n=y(o);a=g(n,Symbol.toStringTag)}u[e]=a.get}});var h=function(e){var t=!1;return o(u,function(r,o){if(!t)try{var a=r.call(e);a===o&&(t=a)}catch(t){}}),t},f=e("is-typed-array");t.exports=function(e){return!!f(e)&&(l?h(e):p(s(e),8,-1))}}).call(this,"undefined"==typeof global?"undefined"==typeof self?"undefined"==typeof window?{}:window:self:global)},{"available-typed-arrays":9,"es-abstract/helpers/callBound":96,"es-abstract/helpers/getOwnPropertyDescriptor":97,foreach:19,"has-symbols":98,"is-typed-array":33}],94:[function(e,t,r){arguments[4][34][0].apply(r,arguments)},{dup:34,"function-bind":21,"has-symbols":98}],95:[function(e,t,r){arguments[4][35][0].apply(r,arguments)},{"../GetIntrinsic":94,dup:35,"function-bind":21}],96:[function(e,t,r){arguments[4][36][0].apply(r,arguments)},{"../GetIntrinsic":94,"./callBind":95,dup:36}],97:[function(e,t,r){arguments[4][37][0].apply(r,arguments)},{"../GetIntrinsic":94,dup:37}],98:[function(e,t,r){arguments[4][38][0].apply(r,arguments)},{"./shams":99,dup:38}],99:[function(e,t,r){arguments[4][39][0].apply(r,arguments)},{dup:39}],100:[function(e,t,r){const o=e("./nacl/naclWrappers"),a=e("./encoding/address");t.exports={generateAccount:function(){let e=o.keyPair(),t=a.encodeAddress(e.publicKey);return{addr:t,sk:e.secretKey}}}},{"./encoding/address":138,"./nacl/naclWrappers":156}],101:[function(e,t,r){(function(r){const o=e("./encoding/address"),a=e("./encoding/encoding"),n=e("./nacl/naclWrappers"),s=e("./utils/utils");t.exports={Bid:class{constructor({bidderKey:e,bidAmount:t,maxPrice:a,bidID:n,auctionKey:s,auctionID:i}){if(this.name="Bid",this.tag=r.from([97,66]),e=o.decodeAddress(e),s=o.decodeAddress(s),!_NumberisSafeInteger(t)||0>t)throw Error("Bid amount must be positive and 2^53-1");if(!_NumberisSafeInteger(n)||0>n)throw Error("BidID must be positive and 2^53-1");if(!_NumberisSafeInteger(i)||0>i)throw Error("auctionID must be positive");Object.assign(this,{bidderKey:e,auctionKey:s,bidAmount:t,maxPrice:a,bidID:n,auctionID:i})}get_obj_for_encoding(){return{bidder:r.from(this.bidderKey.publicKey),cur:this.bidAmount,price:this.maxPrice,id:this.bidID,auc:r.from(this.auctionKey.publicKey),aid:this.auctionID}}signBid(e){const t=a.encode(this.get_obj_for_encoding()),o=r.from(s.concatArrays(this.tag,t)),i=n.sign(o,e);let l={sig:r.from(i),bid:this.get_obj_for_encoding()};return new Uint8Array(a.encode({t:"b",b:l}))}}}}).call(this,e("buffer").Buffer)},{"./encoding/address":138,"./encoding/encoding":139,"./nacl/naclWrappers":156,"./utils/utils":158,buffer:13}],102:[function(e,t,r){(function(r){const o=e("./client");t.exports={Algod:function(e="",t="http://r2.algorand.network",a=4180,n={}){function s(e){return void 0===e.noteb64||null===e.noteb64||(e.note=r.from(e.noteb64,"base64")),e}function i(e){let t=e;return Object.keys(t).every(e=>"content-type"!==e.toLowerCase())&&(t={...e},t["Content-Type"]="application/x-binary"),t}let l=e;"string"==typeof l&&(l={"X-Algo-API-Token":l});let d=new o.HTTPClient(l,t,a,n);this.status=async function(e={}){let t=await d.get("/v1/status",{},e);return t.body},this.healthCheck=async function(e={}){let t=await d.get("/health",{},e);if(!t.ok)throw new Error("Health response: "+t.status);return{}},this.statusAfterBlock=async function(e,t={}){if(!_NumberisInteger(e))throw Error("roundNumber should be an integer");let r=await d.get("/v1/status/wait-for-block-after/"+e,{},t);return r.body},this.pendingTransactions=async function(e,t={}){if(!_NumberisInteger(e))throw Error("maxTxns should be an integer");let r=await d.get("/v1/transactions/pending",{max:e},t);if(200===r.statusCode&&r.body.truncatedTxns.transactions!==void 0)for(let e=0;e<r.body.truncatedTxns.transactions.length;e++)r.body.truncatedTxns.transactions[e]=s(r.body.truncatedTxns.transactions[e]);return r.body},this.versions=async function(e={}){let t=await d.get("/versions",{},e);return t.body},this.ledgerSupply=async function(e={}){let t=await d.get("/v1/ledger/supply",{},e);return t.body},this.transactionByAddress=async function(e,t=null,r=null,o=null,a={}){if(null!==t&&!_NumberisInteger(t))throw Error("first round should be an integer");if(null!==r&&!_NumberisInteger(r))throw Error("last round should be an integer");let n=await d.get("/v1/account/"+e+"/transactions",{firstRound:t,lastRound:r,max:o},a);if(200===n.statusCode&&n.body.transactions!==void 0)for(let e=0;e<n.body.transactions.length;e++)n.body.transactions[e]=s(n.body.transactions[e]);return n.body},this.transactionByAddressAndDate=async function(e,t,r,o=null,a={}){let n=await d.get("/v1/account/"+e+"/transactions",{fromDate:t,toDate:r,max:o},a);if(200===n.statusCode&&n.body.transactions!==void 0)for(let e=0;e<n.body.transactions.length;e++)n.body.transactions[e]=s(n.body.transactions[e]);return n.body},this.transactionById=async function(e,t={}){let r=await d.get("/v1/transaction/"+e,{},t);return 200===r.statusCode&&(r.body=s(r.body)),r.body},this.transactionInformation=async function(e,t,r={}){let o=await d.get("/v1/account/"+e+"/transaction/"+t,{},r);return 200===o.statusCode&&(o.body=s(o.body)),o.body},this.pendingTransactionInformation=async function(e,t={}){let r=await d.get("/v1/transactions/pending/"+e,{},t);return 200===r.statusCode&&(r.body=s(r.body)),r.body},this.accountInformation=async function(e,t={}){let r=await d.get("/v1/account/"+e,{},t);return r.body},this.assetInformation=async function(e,t={}){let r=await d.get("/v1/asset/"+e,{},t);return r.body},this.suggestedFee=async function(e={}){let t=await d.get("/v1/transactions/fee",{},e);return t.body},this.sendRawTransaction=async function(e,t={}){let o=i(t),a=await d.post("/v1/transactions",r.from(e),o);return a.body},this.sendRawTransactions=async function(e,t={}){let o=i(t);const a=Array.prototype.concat(...e.map(e=>Array.from(e)));let n=await d.post("/v1/transactions",r.from(a),o);return n.body},this.getTransactionParams=async function(e={}){let t=await d.get("/v1/transactions/params",{},e);return t.body},this.suggestParams=async function(e={}){let t=await this.getTransactionParams(e);return{flatFee:!1,fee:t.fee,firstRound:t.lastRound,lastRound:t.lastRound+1e3,genesisID:t.genesisID,genesisHash:t.genesishashb64}},this.block=async function(e,t={}){if(!_NumberisInteger(e))throw Error("roundNumber should be an integer");let r=await d.get("/v1/block/"+e,{},t);if(200===r.statusCode&&r.body.txns.transactions!==void 0)for(let e=0;e<r.body.txns.transactions.length;e++)r.body.txns.transactions[e]=s(r.body.txns.transactions[e]);return r.body}}}}).call(this,e("buffer").Buffer)},{"./client":103,buffer:13}],103:[function(e,t,r){(function(o){function a(e){for(let t in e)e.hasOwnProperty(t)&&(e[t]&&0!==e[t].length||delete e[t]);return e}function n(e){if(e!==void 0&&e.hasOwnProperty("format"))switch(e.format){case"msgpack":return"application/msgpack";case"json":return"application/json";default:return"application/json";}else return"application/json"}var s=e("superagent");t.exports={HTTPClient:function(e,t,r,i={}){""!==r&&(t+=":"+r.toString()),this.address=t,this.token=e,this.defaultHeaders=i,this.get=async function(e,t,i={}){try{const l=n(t);let d=s.get(this.address+e).set(this.token).set(this.defaultHeaders).set(i).set("Accept",l).query(a(t));"application/msgpack"===l&&(d=d.responseType("arraybuffer"));const r=await d;if(o.isBuffer(r.body)){const e=r.body.buffer,t=r.body.byteOffset,o=t+r.body.byteLength;r.body=e.slice(t,o)}return r}catch(t){throw t}},this.post=async function(e,t,r={}){try{return await s.post(this.address+e).set(this.token).set(this.defaultHeaders).set(r).send(t)}catch(t){throw t}},this.delete=async function(e,t,r={}){try{return await s.delete(this.address+e).set(this.token).set(this.defaultHeaders).set(r).send(t)}catch(t){throw t}}}}}).call(this,{isBuffer:e("../../node_modules/is-buffer/index.js")})},{"../../node_modules/is-buffer/index.js":27,superagent:84}],104:[function(e,t,r){(function(r){const o=e("./client"),a=e("../transaction");t.exports={Kmd:function(e,t="http://127.0.0.1",n=7833){let s=new o.HTTPClient({"X-KMD-API-Token":e},t,n);this.versions=async function(){let e=await s.get("/versions");return e.body},this.listWallets=async function(){let e=await s.get("/v1/wallets");return e.body},this.createWallet=async function(e,t,o="",a="sqlite"){let n={wallet_name:e,wallet_driver_name:a,wallet_password:t,master_derivation_key:r.from(o).toString("base64")},i=await s.post("/v1/wallet",n);return i.body},this.initWalletHandle=async function(e,t){let r=await s.post("/v1/wallet/init",{wallet_id:e,wallet_password:t});return r.body},this.releaseWalletHandle=async function(e){let t=await s.post("/v1/wallet/release",{wallet_handle_token:e});return t.body},this.renewWalletHandle=async function(e){let t=await s.post("/v1/wallet/renew",{wallet_handle_token:e});return t.body},this.renameWallet=async function(e,t,r){let o=await s.post("/v1/wallet/rename",{wallet_id:e,wallet_password:t,wallet_name:r});return o.body},this.getWallet=async function(e){let t=await s.post("/v1/wallet/info",{wallet_handle_token:e});return t.body},this.exportMasterDerivationKey=async function(e,t){let o=await s.post("/v1/master-key/export",{wallet_handle_token:e,wallet_password:t});return{master_derivation_key:r.from(o.body.master_derivation_key,"base64")}},this.importKey=async function(e,t){let o={wallet_handle_token:e,private_key:r.from(t).toString("base64")},a=await s.post("/v1/key/import",o);return a.body},this.exportKey=async function(e,t,o){let a=await s.post("/v1/key/export",{wallet_handle_token:e,address:o,wallet_password:t});return{private_key:r.from(a.body.private_key,"base64")}},this.generateKey=async function(e){let t=await s.post("/v1/key",{wallet_handle_token:e,display_mnemonic:!1});return t.body},this.deleteKey=async function(e,t,r){let o=await s.delete("/v1/key",{wallet_handle_token:e,address:r,wallet_password:t});return o.body},this.listKeys=async function(e){let t=await s.post("/v1/key/list",{wallet_handle_token:e});return t.body},this.signTransaction=async function(e,t,o){let n=new a.Transaction(o),i={wallet_handle_token:e,wallet_password:t,transaction:r.from(n.toByte()).toString("base64")},l=await s.post("/v1/transaction/sign",i);return 200===l.statusCode?r.from(l.body.signed_transaction,"base64"):l.body},this.signTransactionWithSpecificPublicKey=async function(e,t,o,n){let i=new a.Transaction(o),l={wallet_handle_token:e,wallet_password:t,transaction:r.from(i.toByte()).toString("base64"),public_key:r.from(n).toString("base64")},d=await s.post("/v1/transaction/sign",l);return 200===d.statusCode?r.from(d.body.signed_transaction,"base64"):d.body},this.listMultisig=async function(e){let t=await s.post("/v1/multisig/list",{wallet_handle_token:e});return t.body},this.importMultisig=async function(e,t,r,o){let a=await s.post("/v1/multisig/import",{wallet_handle_token:e,multisig_version:t,threshold:r,pks:o});return a.body},this.exportMultisig=async function(e,t){let r=await s.post("/v1/multisig/export",{wallet_handle_token:e,address:t});return r.body},this.signMultisigTransaction=async function(e,t,o,n,i){let l=new a.Transaction(o),d={wallet_handle_token:e,transaction:r.from(l.toByte()).toString("base64"),public_key:r.from(n).toString("base64"),partial_multisig:i,wallet_password:t},p=await s.post("/v1/multisig/sign",d);return p.body},this.deleteMultisig=async function(e,t,r){let o=await s.delete("/v1/multisig",{wallet_handle_token:e,address:r,wallet_password:t});return o.body}}}}).call(this,e("buffer").Buffer)},{"../transaction":157,"./client":103,buffer:13}],105:[function(e,t,r){t.exports={AccountInformation:class{constructor(e,t){this.c=e,this.account=t}async do(e={}){let t=await this.c.get("/v2/accounts/"+this.account,{},e);return t.body}}}},{}],106:[function(e,t,r){const o=e("../../client"),a=e("../algod/accountInformation"),n=e("../algod/block"),s=e("./compile"),i=e("./dryrun"),l=e("./getAssetByID"),d=e("./getApplicationByID"),p=e("../algod/healthCheck"),u=e("../algod/pendingTransactionInformation"),g=e("../algod/pendingTransactions"),y=e("../algod/pendingTransactionsByAddress"),h=e("../algod/sendRawTransaction"),f=e("../algod/status"),m=e("../algod/statusAfterBlock"),A=e("../algod/suggestedParams"),x=e("../algod/supply"),k=e("../algod/versions");t.exports={AlgodClient:class{constructor(e="",t="http://r2.algorand.network",r=4180,S={}){let w=e;"string"==typeof w&&(w={"X-Algo-API-Token":w});let v=new o.HTTPClient(w,t,r,S);this.healthCheck=function(){return new p.HealthCheck(v)},this.versionsCheck=function(){return new k.Versions(v)},this.sendRawTransaction=function(e){return new h.SendRawTransaction(v,e)},this.accountInformation=function(e){return new a.AccountInformation(v,e)},this.block=function(e){return new n.Block(v,e)},this.pendingTransactionInformation=function(e){return new u.PendingTransactionInformation(v,e)},this.pendingTransactionsInformation=function(){return new g.PendingTransactions(v)},this.pendingTransactionByAddress=function(e){return new y.PendingTransactionsByAddress(v,e)},this.status=function(){return new f.Status(v)},this.statusAfterBlock=function(e){return new m.StatusAfterBlock(v,e)},this.getTransactionParams=function(){return new A.SuggestedParams(v)},this.supply=function(){return new x.Supply(v)},this.compile=function(e){return new s.Compile(v,e)},this.dryrun=function(e){return new i.Dryrun(v,e)},this.getAssetByID=function(e){return new l.GetAssetByID(v,e)},this.getApplicationByID=function(e){return new d.GetApplicationByID(v,e)}}}}},{"../../client":103,"../algod/accountInformation":105,"../algod/block":107,"../algod/healthCheck":112,"../algod/pendingTransactionInformation":115,"../algod/pendingTransactions":116,"../algod/pendingTransactionsByAddress":117,"../algod/sendRawTransaction":118,"../algod/status":119,"../algod/statusAfterBlock":120,"../algod/suggestedParams":121,"../algod/supply":122,"../algod/versions":123,"./compile":108,"./dryrun":109,"./getApplicationByID":110,"./getAssetByID":111}],107:[function(e,t,r){const o=e("../../../encoding/encoding");t.exports={Block:class{constructor(e,t){if(!_NumberisInteger(t))throw Error("roundNumber should be an integer");this.c=e,this.round=t,this.query={format:"msgpack"}}async do(e={}){let t=await this.c.get("/v2/blocks/"+this.round,this.query,e);return t.body&&0<t.body.byteLength?o.decode(t.body):void 0}}}},{"../../../encoding/encoding":139}],108:[function(e,t,r){(function(e){t.exports={Compile:class{constructor(e,t){this.c=e,this.source=t}setHeaders(e){let t=e;return Object.keys(t).every(e=>"content-type"!==e.toLowerCase())&&(t={...e},t["Content-Type"]="text/plain"),t}async do(t={}){let r=this.setHeaders(t),o=await this.c.post("/v2/teal/compile",e.from(this.source),r);return o.body}}}}).call(this,e("buffer").Buffer)},{buffer:13}],109:[function(e,t,r){(function(r){const o=e("../../../encoding/encoding");t.exports={Dryrun:class{constructor(e,t){this.c=e,this.blob=o.encode(t.get_obj_for_encoding())}setHeaders(e){let t=e;return Object.keys(t).every(e=>"content-type"!==e.toLowerCase())&&(t={...e},t["Content-Type"]="application/msgpack"),t}async do(e={}){let t=this.setHeaders(e),o=await this.c.post("/v2/teal/dryrun",r.from(this.blob),t);return o.body}}}}).call(this,e("buffer").Buffer)},{"../../../encoding/encoding":139,buffer:13}],110:[function(e,t,r){t.exports={GetApplicationByID:class{constructor(e,t){this.c=e,this.index=t,this.query={}}async do(e={}){let t=await this.c.get("/v2/applications/"+this.index,this.query,e);return t.body}}}},{}],111:[function(e,t,r){t.exports={GetAssetByID:class{constructor(e,t){this.c=e,this.index=t,this.query={}}async do(e={}){let t=await this.c.get("/v2/assets/"+this.index,this.query,e);return t.body}}}},{}],112:[function(e,t,r){t.exports={HealthCheck:class{constructor(e){this.c=e}async do(e={}){let t=await this.c.get("/health",{},e);if(!t.ok)throw new Error("Health response: "+t.status);return{}}}}},{}],113:[function(e,t,r){t.exports={BaseModel:class{_is_primitive(e){return e==null||null==e||"object"!=typeof e&&"function"!=typeof e}_is_address(e){return e.publicKey!==void 0&&e.checksum!==void 0}_get_obj_for_encoding(e){let t;if("function"==typeof e.get_obj_for_encoding)t=e.get_obj_for_encoding();else if(Array.isArray(e)){t=[];for(const r of e)t.push(this._get_obj_for_encoding(r))}else if("object"==typeof e){const r={};for(const t of Object.keys(e))r[t]=this._get_obj_for_encoding(e[t]);t=r}else if(this._is_primitive(e))t=e;else throw new Error("Unsupported value: "+(e+""));return t}get_obj_for_encoding(){const e={};for(const t of Object.keys(this)){if("attribute_map"==t)continue;const r=this[t];if(void 0===r)continue;const o=this.attribute_map[t];e[o]=null===r?null:this._get_obj_for_encoding(r)}return e}}}},{}],114:[function(e,t,r){const o=e("./base");class DryrunRequest extends o.BaseModel{constructor({txns:e,accounts:t,apps:r,protocolVersion:o,round:a,latestTimestamp:n,sources:s}){super(),this.txns=e,this.accounts=t,this.apps=r,this.protocolVersion=o,this.round=a,this.latestTimestamp=n,this.sources=s,this.attribute_map={txns:"txns",accounts:"accounts",apps:"apps",protocolVersion:"protocol-version",round:"round",latestTimestamp:"latest-timestamp",sources:"sources"}}}class DryrunSource extends o.BaseModel{constructor(e,t,r,o){super(),this.fieldName=e,this.source=t,this.txnIndex=r,this.appIndex=o,this.attribute_map={fieldName:"field-name",source:"source",txnIndex:"txn-index",appIndex:"app-index"}}}class Application extends o.BaseModel{constructor(e,t){super(),this.id=e,this.params=t,this.attribute_map={id:"id",params:"params"}}}class ApplicationParams extends o.BaseModel{constructor({creator:e,approvalProgram:t,clearStateProgram:r,localStateSchema:o,globalStateSchema:a,globalState:n}){super(),this.creator=e,this.approvalProgram=t,this.clearStateProgram=r,this.localStateSchema=o,this.globalStateSchema=a,this.globalState=n,this.attribute_map={creator:"creator",approvalProgram:"approval-program",clearStateProgram:"clear-state-program",localStateSchema:"local-state-schema",globalStateSchema:"global-state-schema",globalState:"global-state"}}}class ApplicationStateSchema extends o.BaseModel{constructor(e,t){super(),this.numUint=e,this.numByteSlice=t,this.attribute_map={numUint:"num-uint",numByteSlice:"num-byte-slice"}}}class ApplicationLocalStates extends o.BaseModel{constructor(e,t){super(),this.id=e,this.state=t,this.attribute_map={id:"id",state:"state"}}}class ApplicationLocalState extends o.BaseModel{constructor(e,t){super(),this.schema=e,this.keyValue=t,this.attribute_map={schema:"schema",keyValue:"key-value"}}}class TealKeyValue extends o.BaseModel{constructor(e,t){super(),this.key=e,this.value=t,this.attribute_map={key:"key",value:"value"}}}class TealValue extends o.BaseModel{constructor(e,t,r){super(),this.type=e,this.bytes=t,this.uint=r,this.attribute_map={type:"type",bytes:"bytes",uint:"uint"}}}class AssetHolding extends o.BaseModel{constructor(e,t,r,o){this.amount=e,this.assetId=t,this.creator=r,this.isFrozen=o,this.attribute_map={amount:"amount",assetId:"asset-id",creator:"creator",isFrozen:"is-frozen"}}}class Asset extends o.BaseModel{constructor(e,t){this.amount=e,this.assetId=t,this.attribute_map={index:"index",params:"params"}}}class AssetParams extends o.BaseModel{constructor({clawback:e,creator:t,decimals:r,defaultFrozen:o,freeze:a,manager:n,metadataHash:s,name:i,reserve:l,total:d,unitName:p,url:u}){this.clawback=e,this.creator=t,this.decimals=r,this.defaultFrozen=o,this.freeze=a,this.manager=n,this.metadataHash=s,this.name=i,this.reserve=l,this.total=d,this.unitName=p,this.url=u,this.attribute_map={clawback:"clawback",creator:"creator",decimals:"decimals",defaultFrozen:"default-frozen",freeze:"freeze",manager:"manager",metadataHash:"metadata-hash",name:"name",reserve:"reserve",total:"total",unitName:"unit-name",url:"url"}}}class Account extends o.BaseModel{constructor({address:e,amount:t,amountWithoutPendingRewards:r,appsLocalState:o,appsTotalSchema:a,assets:n,createdApps:s,createdAssets:i,participation:l,pendingRewards:d,rewardBase:p,rewards:u,round:g,status:y,sigType:h,authAddr:f}){super(),this.address=e,this.amount=t,this.amountWithoutPendingRewards=r,this.appsLocalState=o,this.appsTotalSchema=a,this.assets=n,this.createdApps=s,this.createdAssets=i,this.participation=l,this.pendingRewards=d,this.rewardBase=p,this.rewards=u,this.round=g,this.status=y,this.sigType=h,this.authAddr=f,this.attribute_map={address:"address",amount:"amount",amountWithoutPendingRewards:"amount-without-pending-rewards",appsLocalState:"apps-local-state",appsTotalSchema:"apps-total-schema",assets:"assets",createdApps:"created-apps",createdAssets:"created-assets",participation:"participation",pendingRewards:"pending-rewards",rewardBase:"reward-base",rewards:"rewards",round:"round",status:"status",sigType:"sig-type",authAddr:"auth-addr"}}}t.exports={DryrunRequest,DryrunSource,Account,Application,ApplicationParams,Asset,AssetParams,AssetHolding,ApplicationLocalStates,ApplicationLocalState,ApplicationStateSchema,TealKeyValue,TealValue}},{"./base":113}],115:[function(e,t,r){const o=e("../../../encoding/encoding");t.exports={PendingTransactionInformation:class{constructor(e,t){this.c=e,this.txid=t,this.query={},this.query.format="msgpack"}async do(e={}){let t=await this.c.get("/v2/transactions/pending/"+this.txid,this.query,e);return t.body&&0<t.body.byteLength?o.decode(t.body):void 0}max(e){return this.query.max=e,this}}}},{"../../../encoding/encoding":139}],116:[function(e,t,r){const o=e("../../../encoding/encoding");t.exports={PendingTransactions:class{constructor(e){this.c=e,this.query={},this.query.format="msgpack"}async do(e={}){let t=await this.c.get("/v2/transactions/pending",this.query,e);return t.body&&0<t.body.byteLength?o.decode(t.body):void 0}max(e){return this.query.max=e,this}}}},{"../../../encoding/encoding":139}],117:[function(e,t,r){const o=e("../../../encoding/encoding");t.exports={PendingTransactionsByAddress:class{constructor(e,t){this.c=e,this.address=t,this.query={format:"msgpack"}}async do(e={}){let t=await this.c.get("/v2/accounts/"+this.address+"/transactions/pending",this.query,e);return t.body&&0<t.body.byteLength?o.decode(t.body):void 0}max(e){return this.query.max=e,this}}}},{"../../../encoding/encoding":139}],118:[function(e,t,r){(function(r){const o=e("assert");t.exports={SendRawTransaction:class{constructor(e,t){function r(e){return!!(e&&e.byteLength!==void 0)}let a=t;Array.isArray(t)?(o(t.every(r)),a=Array.prototype.concat(...t.map(e=>Array.from(e)))):o(r(a)),this.txnBytesToPost=a,this.c=e}setSendTransactionHeaders(e){let t=e;return Object.keys(t).every(e=>"content-type"!==e.toLowerCase())&&(t={...e},t["Content-Type"]="application/x-binary"),t}async do(e={}){let t=this.setSendTransactionHeaders(e),o=await this.c.post("/v2/transactions",r.from(this.txnBytesToPost),t);return o.body}}}}).call(this,e("buffer").Buffer)},{assert:2,buffer:13}],119:[function(e,t,r){t.exports={Status:class{constructor(e){this.c=e}async do(e={}){let t=await this.c.get("/v2/status",{},e);return t.body}}}},{}],120:[function(e,t,r){t.exports={StatusAfterBlock:class{constructor(e,t){if(this.c=e,!_NumberisInteger(t))throw Error("round should be an integer");this.round=t}async do(e={}){let t=await this.c.get("/v2/status/wait-for-block-after/"+this.round,{},e);return t.body}}}},{}],121:[function(e,t,r){t.exports={SuggestedParams:class{constructor(e){this.c=e}async do(e={}){let t=await this.c.get("/v2/transactions/params",{},e);return{flatFee:!1,fee:t.body.fee,firstRound:t.body["last-round"],lastRound:t.body["last-round"]+1e3,genesisID:t.body["genesis-id"],genesisHash:t.body["genesis-hash"]}}}}},{}],122:[function(e,t,r){t.exports={Supply:class{constructor(e){this.c=e}async do(e={}){let t=await this.c.get("/v2/ledger/supply",{},e);return t.body}}}},{}],123:[function(e,t,r){t.exports={Versions:class{constructor(e){this.c=e}async do(e={}){let t=await c.get("/versions",{},e);return t.body}}}},{}],124:[function(e,t,r){const o=e("../../client"),a=e("../indexer/makeHealthCheck"),n=e("../indexer/lookupAccountByID"),s=e("../indexer/lookupAccountTransactions"),i=e("../indexer/lookupApplications"),l=e("../indexer/lookupAssetBalances"),d=e("../indexer/lookupAssetByID"),p=e("../indexer/lookupAssetTransactions"),u=e("../indexer/lookupBlock"),g=e("../indexer/searchForAssets"),y=e("../indexer/searchForApplications"),h=e("../indexer/searchForTransactions"),f=e("../indexer/searchAccounts");t.exports={IndexerClient:class{constructor(e,t="http://127.0.0.1",r=8080,m={}){let A=e;"string"==typeof A&&(A={"X-Indexer-API-Token":A});let x=new o.HTTPClient(A,t,r,m);this.makeHealthCheck=function(){return new a.MakeHealthCheck(x)},this.lookupAssetBalances=function(e){return new l.LookupAssetBalances(x,e)},this.lookupAssetTransactions=function(e){return new p.LookupAssetTransactions(x,e)},this.lookupAccountTransactions=function(e){return new s.LookupAccountTransactions(x,e)},this.lookupBlock=function(e){return new u.LookupBlock(x,e)},this.lookupAccountByID=function(e){return new n.LookupAccountByID(x,e)},this.lookupAssetByID=function(e){return new d.LookupAssetByID(x,e)},this.lookupApplications=function(e){return new i.LookupApplications(x,e)},this.searchAccounts=function(){return new f.SearchAccounts(x)},this.searchForTransactions=function(){return new h.SearchForTransactions(x)},this.searchForAssets=function(){return new g.SearchForAssets(x)},this.searchForApplications=function(){return new y.SearchForApplications(x)}}}}},{"../../client":103,"../indexer/lookupAccountByID":125,"../indexer/lookupAccountTransactions":126,"../indexer/lookupApplications":127,"../indexer/lookupAssetBalances":128,"../indexer/lookupAssetByID":129,"../indexer/lookupAssetTransactions":130,"../indexer/lookupBlock":131,"../indexer/makeHealthCheck":132,"../indexer/searchAccounts":133,"../indexer/searchForApplications":134,"../indexer/searchForAssets":135,"../indexer/searchForTransactions":136}],125:[function(e,t,r){t.exports={LookupAccountByID:class{constructor(e,t){this.c=e,this.account=t,this.query={}}async do(e={}){let t=await this.c.get("/v2/accounts/"+this.account,this.query,e);return t.body}round(e){return this.query.round=e,this}}}},{}],126:[function(e,t,r){t.exports={LookupAccountTransactions:class{constructor(e,t){this.c=e,this.account=t,this.query={}}async do(e={}){let t=await this.c.get("/v2/accounts/"+this.account+"/transactions",this.query,e);return t.body}notePrefix(e){return this.query["note-prefix"]=e,this}txType(e){return this.query["tx-type"]=e,this}sigType(e){return this.query["sig-type"]=e,this}txid(e){return this.query.txid=e,this}round(e){return this.query.round=e,this}minRound(e){return this.query["min-round"]=e,this}maxRound(e){return this.query["max-round"]=e,this}assetID(e){return this.query["asset-id"]=e,this}limit(e){return this.query.limit=e,this}beforeTime(e){return this.query["before-time"]=e,this}afterTime(e){return this.query["after-time"]=e,this}currencyGreaterThan(e){return this.query["currency-greater-than"]=e,this}currencyLessThan(e){return this.query["currency-less-than"]=e,this}nextToken(e){return this.query.next=e,this}rekeyTo(e){return this.query["rekey-to"]=e,this}}}},{}],127:[function(e,t,r){t.exports={LookupApplications:class{constructor(e,t){this.c=e,this.query={},this.index=t}async do(e={}){let t=await this.c.get("/v2/applications/"+this.index,this.query,e);return t.body}round(e){return this.query.round=e,this}}}},{}],128:[function(e,t,r){t.exports={LookupAssetBalances:class{constructor(e,t){this.c=e,this.index=t,this.query={}}async do(e={}){let t=await this.c.get("/v2/assets/"+this.index+"/balances",this.query,e);return t.body}limit(e){return this.query.limit=e,this}round(e){return this.query.round=e,this}currencyGreaterThan(e){return this.query["currency-greater-than"]=e,this}currencyLessThan(e){return this.query["currency-less-than"]=e,this}nextToken(e){return this.query.next=e,this}}}},{}],129:[function(e,t,r){t.exports={LookupAssetByID:class{constructor(e,t){this.c=e,this.index=t}async do(e={}){let t=await this.c.get("/v2/assets/"+this.index,{},e);return t.body}}}},{}],130:[function(e,t,r){t.exports={LookupAssetTransactions:class{constructor(e,t){this.c=e,this.index=t,this.query={}}async do(e={}){let t=await this.c.get("/v2/assets/"+this.index+"/transactions",this.query,e);return t.body}notePrefix(e){return this.query["note-prefix"]=e,this}txType(e){return this.query["tx-type"]=e,this}sigType(e){return this.query["sig-type"]=e,this}txid(e){return this.query.txid=e,this}round(e){return this.query.round=e,this}minRound(e){return this.query["min-round"]=e,this}maxRound(e){return this.query["max-round"]=e,this}assetID(e){return this.query["asset-id"]=e,this}limit(e){return this.query.limit=e,this}beforeTime(e){return this.query["before-time"]=e,this}afterTime(e){return this.query["after-time"]=e,this}currencyGreaterThan(e){return this.query["currency-greater-than"]=e,this}currencyLessThan(e){return this.query["currency-less-than"]=e,this}addressRole(e){return this.query["address-role"]=e,this}address(e){return this.query.address=e,this}excludeCloseTo(e){return this.query["exclude-close-to"]=e,this}nextToken(e){return this.query.next=e,this}rekeyTo(e){return this.query["rekey-to"]=e,this}}}},{}],131:[function(e,t,r){t.exports={LookupBlock:class{constructor(e,t){this.c=e,this.round=t}async do(e={}){let t=await this.c.get("/v2/blocks/"+this.round,{},e);return t.body}}}},{}],132:[function(e,t,r){t.exports={MakeHealthCheck:class{constructor(e){this.c=e}async do(e={}){let t=await this.c.get("/health",{},e);return t.body}}}},{}],133:[function(e,t,r){t.exports={SearchAccounts:class{constructor(e){this.c=e,this.query={}}async do(e={}){let t=await this.c.get("/v2/accounts",this.query,e);return t.body}currencyGreaterThan(e){return this.query["currency-greater-than"]=e,this}currencyLessThan(e){return this.query["currency-less-than"]=e,this}limit(e){return this.query.limit=e,this}assetID(e){return this.query["asset-id"]=e,this}nextToken(e){return this.query.next=e,this}round(e){return this.query.round=e,this}authAddr(e){return this.query["auth-addr"]=e,this}applicationID(e){return this.query["application-id"]=e,this}}}},{}],134:[function(e,t,r){t.exports={SearchForApplications:class{constructor(e){this.c=e,this.query={}}async do(e={}){let t=await this.c.get("/v2/applications",this.query,e);return t.body}index(e){return this.query["application-id"]=e,this}round(e){return this.query.round=e,this}nextToken(e){return this.query.next=e,this}limit(e){return this.query.limit=e,this}}}},{}],135:[function(e,t,r){t.exports={SearchForAssets:class{constructor(e){this.c=e,this.query={}}async do(e={}){let t=await this.c.get("/v2/assets",this.query,e);return t.body}limit(e){return this.query.limit=e,this}creator(e){return this.query.creator=e,this}name(e){return this.query.name=e,this}unit(e){return this.query.unit=e,this}index(e){return this.query["asset-id"]=e,this}nextToken(e){return this.query.next=e,this}}}},{}],136:[function(e,t,r){t.exports={SearchForTransactions:class{constructor(e){this.c=e,this.query={}}async do(e={}){let t=await this.c.get("/v2/transactions",this.query,e);return t.body}notePrefix(e){return this.query["note-prefix"]=e,this}txType(e){return this.query["tx-type"]=e,this}sigType(e){return this.query["sig-type"]=e,this}txid(e){return this.query.txid=e,this}round(e){return this.query.round=e,this}minRound(e){return this.query["min-round"]=e,this}maxRound(e){return this.query["max-round"]=e,this}assetID(e){return this.query["asset-id"]=e,this}limit(e){return this.query.limit=e,this}beforeTime(e){return this.query["before-time"]=e,this}afterTime(e){return this.query["after-time"]=e,this}currencyGreaterThan(e){return this.query["currency-greater-than"]=e,this}currencyLessThan(e){return this.query["currency-less-than"]=e,this}addressRole(e){return this.query["address-role"]=e,this}address(e){return this.query.address=e,this}excludeCloseTo(e){return this.query["exclude-close-to"]=e,this}nextToken(e){return this.query.next=e,this}rekeyTo(e){return this.query["rekey-to"]=e,this}applicationID(e){return this.query["application-id"]=e,this}}}},{}],137:[function(e,t,r){const o=1e6,a=new Error("Microalgos should be positive and less than 2^53 - 1.");t.exports={microalgosToAlgos:function(e){if(0>e||!_NumberisSafeInteger(e))throw a;return e/o},algosToMicroalgos:function(e){return _Mathround(e*o)},ERROR_INVALID_MICROALGOS:a}},{}],138:[function(e,t,r){function o(e){if(!("string"==typeof e||e instanceof String))throw h;let t=s.decode.asBytes(e);if(t.length!==p)throw h;let r=new Uint8Array(t.slice(0,32)),o=new Uint8Array(t.slice(l.PUBLIC_KEY_LENGTH,p));return{publicKey:r,checksum:o}}function a(e){let t=l.genericHash(e).slice(l.PUBLIC_KEY_LENGTH-u,l.PUBLIC_KEY_LENGTH),r=s.encode(d.concatArrays(e,t));return r.toString().slice(0,g)}function n({version:e,threshold:t,pks:r}){if(1!==e||255<e||0>e)throw f;if(0===t||0===r.length||t>r.length||255<t)throw m;let o=32;if(32!==l.PUBLIC_KEY_LENGTH)throw x;let a=new Uint8Array(y.length+2+32*r.length);a.set(y,0),a.set([e],y.length),a.set([t],y.length+1);for(var n=0;n<r.length;n++){if(r[n].length!==o)throw A;a.set(r[n],y.length+2+n*o)}return l.genericHash(a)}const s=e("hi-base32"),l=e("../nacl/naclWrappers"),d=e("../utils/utils"),p=36,u=4,g=58,y=new Uint8Array([77,117,108,116,105,115,105,103,65,100,100,114]),h=new Error("address seems to be malformed"),f=new Error("invalid multisig version"),m=new Error("bad multisig threshold"),A=new Error("bad multisig public key - wrong length"),x=new Error("nacl public key length is not 32 bytes");t.exports={isValidAddress:function(e){if("string"!=typeof e)return!1;if(e.length!==g)return!1;let t;try{t=o(e)}catch(t){return!1}let r=l.genericHash(t.publicKey).slice(l.HASH_BYTES_LENGTH-u,l.HASH_BYTES_LENGTH);return d.arrayEqual(r,t.checksum)},decodeAddress:o,encodeAddress:a,fromMultisigPreImg:n,fromMultisigPreImgAddrs:function({version:e,threshold:t,addrs:r}){const s=r.map(e=>o(e).publicKey);return a(n({version:e,threshold:t,pks:s}))},MALFORMED_ADDRESS_ERROR:h,INVALID_MSIG_VERSION:f,INVALID_MSIG_THRESHOLD:m,INVALID_MSIG_PK:A,UNEXPECTED_PK_LEN:x,ALGORAND_ZERO_ADDRESS_STRING:"AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAY5HFKQ"}},{"../nacl/naclWrappers":156,"../utils/utils":158,"hi-base32":23}],139:[function(e,t,r){function o(e){for(let t in e)if(e.hasOwnProperty(t)&&(!e[t]||0===e[t].length))return{containsEmpty:!0,firstEmptyKey:t};return{containsEmpty:!1,firstEmptyKey:void 0}}const a=e("algo-msgpack-with-bigint"),n="The object contains empty or 0 values. First empty or 0 value encountered during encoding: ";t.exports={encode:function(e){let t=o(e);if(t.containsEmpty)throw new Error(n+t.firstEmptyKey);return a.encode(e,{sortKeys:!0})},decode:function(e){return a.decode(e)},ERROR_CONTAINS_EMPTY_STRING:n}},{"algo-msgpack-with-bigint":1}],140:[function(e,t,r){(function(r){function o(e){const t=[];for(let r of e){let e=r;r instanceof a.Transaction||(e=new a.Transaction(r)),t.push(e.rawTxID())}const o=new TxGroup(t),s=o.toByte(),i=r.from(l.concatArrays(o.tag,s)),d=n.genericHash(i);return r.from(d)}const a=e("./transaction"),n=e("./nacl/naclWrappers"),s=e("./encoding/encoding"),i=e("./encoding/address"),l=e("./utils/utils"),d=16;class TxGroup{constructor(e){if(e.length>d){let t=e.length.toString()+" transactions grouped together but max group size is "+d.toString();throw Error(t)}this.name="Transaction group",this.tag=r.from("TG"),this.txGroupHashes=e}get_obj_for_encoding(){const e={txlist:this.txGroupHashes};return e}static from_obj_for_encoding(e){const t=Object.create(this.prototype);t.name="Transaction group",t.tag=r.from("TG"),t.txGroupHashes=[];for(let o of e.txlist)t.txGroupHashes.push(new r.from(o));return t}toByte(){return s.encode(this.get_obj_for_encoding())}}t.exports={TxGroup,computeGroupID:o,assignGroupID:function(e,t=void 0){const r=o(e);let n=[];for(let o of e)if(!t||i.encodeAddress(o.from.publicKey)==t){let e=o;e instanceof a.Transaction||(e=new a.Transaction(o)),e.group=r,n.push(e)}return n}}}).call(this,e("buffer").Buffer)},{"./encoding/address":138,"./encoding/encoding":139,"./nacl/naclWrappers":156,"./transaction":157,"./utils/utils":158,buffer:13}],141:[function(e,t,r){t.exports={EvalMaxVersion:2,LogicSigVersion:2,Ops:[{Opcode:0,Name:"err",Cost:1,Size:1,Doc:"Error. Panic immediately. This is primarily a fencepost against accidental zero bytes getting compiled into programs.",Groups:["Flow Control"]},{Opcode:1,Name:"sha256",Args:"B",Returns:"B",Cost:35,Size:1,Doc:"SHA256 hash of value X, yields [32]byte",Groups:["Arithmetic"]},{Opcode:2,Name:"keccak256",Args:"B",Returns:"B",Cost:130,Size:1,Doc:"Keccak256 hash of value X, yields [32]byte",Groups:["Arithmetic"]},{Opcode:3,Name:"sha512_256",Args:"B",Returns:"B",Cost:45,Size:1,Doc:"SHA512_256 hash of value X, yields [32]byte",Groups:["Arithmetic"]},{Opcode:4,Name:"ed25519verify",Args:"BBB",Returns:"U",Cost:1900,Size:1,Doc:"for (data A, signature B, pubkey C) verify the signature of (\"ProgData\" || program_hash || data) against the pubkey => {0 or 1}",DocExtra:"The 32 byte public key is the last element on the stack, preceded by the 64 byte signature at the second-to-last element on the stack, preceded by the data which was signed at the third-to-last element on the stack.",Groups:["Arithmetic"]},{Opcode:8,Name:"+",Args:"UU",Returns:"U",Cost:1,Size:1,Doc:"A plus B. Panic on overflow.",DocExtra:"Overflow is an error condition which halts execution and fails the transaction. Full precision is available from `plusw`.",Groups:["Arithmetic"]},{Opcode:9,Name:"-",Args:"UU",Returns:"U",Cost:1,Size:1,Doc:"A minus B. Panic if B > A.",Groups:["Arithmetic"]},{Opcode:10,Name:"/",Args:"UU",Returns:"U",Cost:1,Size:1,Doc:"A divided by B. Panic if B == 0.",Groups:["Arithmetic"]},{Opcode:11,Name:"*",Args:"UU",Returns:"U",Cost:1,Size:1,Doc:"A times B. Panic on overflow.",DocExtra:"Overflow is an error condition which halts execution and fails the transaction. Full precision is available from `mulw`.",Groups:["Arithmetic"]},{Opcode:12,Name:"<",Args:"UU",Returns:"U",Cost:1,Size:1,Doc:"A less than B => {0 or 1}",Groups:["Arithmetic"]},{Opcode:13,Name:">",Args:"UU",Returns:"U",Cost:1,Size:1,Doc:"A greater than B => {0 or 1}",Groups:["Arithmetic"]},{Opcode:14,Name:"<=",Args:"UU",Returns:"U",Cost:1,Size:1,Doc:"A less than or equal to B => {0 or 1}",Groups:["Arithmetic"]},{Opcode:15,Name:">=",Args:"UU",Returns:"U",Cost:1,Size:1,Doc:"A greater than or equal to B => {0 or 1}",Groups:["Arithmetic"]},{Opcode:16,Name:"&&",Args:"UU",Returns:"U",Cost:1,Size:1,Doc:"A is not zero and B is not zero => {0 or 1}",Groups:["Arithmetic"]},{Opcode:17,Name:"||",Args:"UU",Returns:"U",Cost:1,Size:1,Doc:"A is not zero or B is not zero => {0 or 1}",Groups:["Arithmetic"]},{Opcode:18,Name:"==",Args:"..",Returns:"U",Cost:1,Size:1,Doc:"A is equal to B => {0 or 1}",Groups:["Arithmetic"]},{Opcode:19,Name:"!=",Args:"..",Returns:"U",Cost:1,Size:1,Doc:"A is not equal to B => {0 or 1}",Groups:["Arithmetic"]},{Opcode:20,Name:"!",Args:"U",Returns:"U",Cost:1,Size:1,Doc:"X == 0 yields 1; else 0",Groups:["Arithmetic"]},{Opcode:21,Name:"len",Args:"B",Returns:"U",Cost:1,Size:1,Doc:"yields length of byte value X",Groups:["Arithmetic"]},{Opcode:22,Name:"itob",Args:"U",Returns:"B",Cost:1,Size:1,Doc:"converts uint64 X to big endian bytes",Groups:["Arithmetic"]},{Opcode:23,Name:"btoi",Args:"B",Returns:"U",Cost:1,Size:1,Doc:"converts bytes X as big endian to uint64",DocExtra:"`btoi` panics if the input is longer than 8 bytes.",Groups:["Arithmetic"]},{Opcode:24,Name:"%",Args:"UU",Returns:"U",Cost:1,Size:1,Doc:"A modulo B. Panic if B == 0.",Groups:["Arithmetic"]},{Opcode:25,Name:"|",Args:"UU",Returns:"U",Cost:1,Size:1,Doc:"A bitwise-or B",Groups:["Arithmetic"]},{Opcode:26,Name:"&",Args:"UU",Returns:"U",Cost:1,Size:1,Doc:"A bitwise-and B",Groups:["Arithmetic"]},{Opcode:27,Name:"^",Args:"UU",Returns:"U",Cost:1,Size:1,Doc:"A bitwise-xor B",Groups:["Arithmetic"]},{Opcode:28,Name:"~",Args:"U",Returns:"U",Cost:1,Size:1,Doc:"bitwise invert value X",Groups:["Arithmetic"]},{Opcode:29,Name:"mulw",Args:"UU",Returns:"UU",Cost:1,Size:1,Doc:"A times B out to 128-bit long result as low (top) and high uint64 values on the stack",Groups:["Arithmetic"]},{Opcode:30,Name:"plusw",Args:"UU",Returns:"UU",Cost:1,Size:1,Doc:"A plus B out to 128-bit long result as sum (top) and carry-bit uint64 values on the stack",Groups:["Arithmetic"]},{Opcode:32,Name:"intcblock",Cost:1,Size:0,Doc:"load block of uint64 constants",DocExtra:"`intcblock` loads following program bytes into an array of integer constants in the evaluator. These integer constants can be referred to by `intc` and `intc_*` which will push the value onto the stack. Subsequent calls to `intcblock` reset and replace the integer constants available to the script.",ImmediateNote:"{varuint length} [{varuint value}, ...]",Groups:["Loading Values"]},{Opcode:33,Name:"intc",Returns:"U",Cost:1,Size:2,Doc:"push value from uint64 constants to stack by index into constants",ImmediateNote:"{uint8 int constant index}",Groups:["Loading Values"]},{Opcode:34,Name:"intc_0",Returns:"U",Cost:1,Size:1,Doc:"push constant 0 from intcblock to stack",Groups:["Loading Values"]},{Opcode:35,Name:"intc_1",Returns:"U",Cost:1,Size:1,Doc:"push constant 1 from intcblock to stack",Groups:["Loading Values"]},{Opcode:36,Name:"intc_2",Returns:"U",Cost:1,Size:1,Doc:"push constant 2 from intcblock to stack",Groups:["Loading Values"]},{Opcode:37,Name:"intc_3",Returns:"U",Cost:1,Size:1,Doc:"push constant 3 from intcblock to stack",Groups:["Loading Values"]},{Opcode:38,Name:"bytecblock",Cost:1,Size:0,Doc:"load block of byte-array constants",DocExtra:"`bytecblock` loads the following program bytes into an array of byte string constants in the evaluator. These constants can be referred to by `bytec` and `bytec_*` which will push the value onto the stack. Subsequent calls to `bytecblock` reset and replace the bytes constants available to the script.",ImmediateNote:"{varuint length} [({varuint value length} bytes), ...]",Groups:["Loading Values"]},{Opcode:39,Name:"bytec",Returns:"B",Cost:1,Size:2,Doc:"push bytes constant to stack by index into constants",ImmediateNote:"{uint8 byte constant index}",Groups:["Loading Values"]},{Opcode:40,Name:"bytec_0",Returns:"B",Cost:1,Size:1,Doc:"push constant 0 from bytecblock to stack",Groups:["Loading Values"]},{Opcode:41,Name:"bytec_1",Returns:"B",Cost:1,Size:1,Doc:"push constant 1 from bytecblock to stack",Groups:["Loading Values"]},{Opcode:42,Name:"bytec_2",Returns:"B",Cost:1,Size:1,Doc:"push constant 2 from bytecblock to stack",Groups:["Loading Values"]},{Opcode:43,Name:"bytec_3",Returns:"B",Cost:1,Size:1,Doc:"push constant 3 from bytecblock to stack",Groups:["Loading Values"]},{Opcode:44,Name:"arg",Returns:"B",Cost:1,Size:2,Doc:"push Args[N] value to stack by index",ImmediateNote:"{uint8 arg index N}",Groups:["Loading Values"]},{Opcode:45,Name:"arg_0",Returns:"B",Cost:1,Size:1,Doc:"push Args[0] to stack",Groups:["Loading Values"]},{Opcode:46,Name:"arg_1",Returns:"B",Cost:1,Size:1,Doc:"push Args[1] to stack",Groups:["Loading Values"]},{Opcode:47,Name:"arg_2",Returns:"B",Cost:1,Size:1,Doc:"push Args[2] to stack",Groups:["Loading Values"]},{Opcode:48,Name:"arg_3",Returns:"B",Cost:1,Size:1,Doc:"push Args[3] to stack",Groups:["Loading Values"]},{Opcode:49,Name:"txn",Returns:".",Cost:1,Size:2,ArgEnum:["Sender","Fee","FirstValid","FirstValidTime","LastValid","Note","Lease","Receiver","Amount","CloseRemainderTo","VotePK","SelectionPK","VoteFirst","VoteLast","VoteKeyDilution","Type","TypeEnum","XferAsset","AssetAmount","AssetSender","AssetReceiver","AssetCloseTo","GroupIndex","TxID","ApplicationID","OnCompletion","ApplicationArgs","NumAppArgs","Accounts","NumAccounts","ApprovalProgram","ClearStateProgram","RekeyTo","ConfigAsset","ConfigAssetTotal","ConfigAssetDecimals","ConfigAssetDefaultFrozen","ConfigAssetUnitName","ConfigAssetName","ConfigAssetURL","ConfigAssetMetadataHash","ConfigAssetManager","ConfigAssetReserve","ConfigAssetFreeze","ConfigAssetClawback","FreezeAsset","FreezeAssetAccount","FreezeAssetFrozen"],ArgEnumTypes:"BUUUUBBBUBBBUUUBUUUBBBUBUUBUBUBBBUUUUBBBBBBBBUBU",Doc:"push field from current transaction to stack",DocExtra:"FirstValidTime causes the program to fail. The field is reserved for future use.",ImmediateNote:"{uint8 transaction field index}",Groups:["Loading Values"]},{Opcode:50,Name:"global",Returns:".",Cost:1,Size:2,ArgEnum:["MinTxnFee","MinBalance","MaxTxnLife","ZeroAddress","GroupSize","LogicSigVersion","Round","LatestTimestamp"],ArgEnumTypes:"UUUBUUUU",Doc:"push value from globals to stack",ImmediateNote:"{uint8 global field index}",Groups:["Loading Values"]},{Opcode:51,Name:"gtxn",Returns:".",Cost:1,Size:3,ArgEnum:["Sender","Fee","FirstValid","FirstValidTime","LastValid","Note","Lease","Receiver","Amount","CloseRemainderTo","VotePK","SelectionPK","VoteFirst","VoteLast","VoteKeyDilution","Type","TypeEnum","XferAsset","AssetAmount","AssetSender","AssetReceiver","AssetCloseTo","GroupIndex","TxID","ApplicationID","OnCompletion","ApplicationArgs","NumAppArgs","Accounts","NumAccounts","ApprovalProgram","ClearStateProgram","RekeyTo","ConfigAsset","ConfigAssetTotal","ConfigAssetDecimals","ConfigAssetDefaultFrozen","ConfigAssetUnitName","ConfigAssetName","ConfigAssetURL","ConfigAssetMetadataHash","ConfigAssetManager","ConfigAssetReserve","ConfigAssetFreeze","ConfigAssetClawback","FreezeAsset","FreezeAssetAccount","FreezeAssetFrozen"],ArgEnumTypes:"BUUUUBBBUBBBUUUBUUUBBBUBUUBUBUBBBUUUUBBBBBBBBUBU",Doc:"push field to the stack from a transaction in the current transaction group",DocExtra:"for notes on transaction fields available, see `txn`. If this transaction is _i_ in the group, `gtxn i field` is equivalent to `txn field`.",ImmediateNote:"{uint8 transaction group index}{uint8 transaction field index}",Groups:["Loading Values"]},{Opcode:52,Name:"load",Returns:".",Cost:1,Size:2,Doc:"copy a value from scratch space to the stack",ImmediateNote:"{uint8 position in scratch space to load from}",Groups:["Loading Values"]},{Opcode:53,Name:"store",Args:".",Cost:1,Size:2,Doc:"pop a value from the stack and store to scratch space",ImmediateNote:"{uint8 position in scratch space to store to}",Groups:["Loading Values"]},{Opcode:54,Name:"txna",Returns:".",Cost:1,Size:3,ArgEnum:["ApplicationArgs","Accounts"],ArgEnumTypes:"BB",Doc:"push value of an array field from current transaction to stack",ImmediateNote:"{uint8 transaction field index}{uint8 transaction field array index}",Groups:["Loading Values"]},{Opcode:55,Name:"gtxna",Returns:".",Cost:1,Size:4,ArgEnum:["ApplicationArgs","Accounts"],ArgEnumTypes:"BB",Doc:"push value of a field to the stack from a transaction in the current transaction group",ImmediateNote:"{uint8 transaction group index}{uint8 transaction field index}{uint8 transaction field array index}",Groups:["Loading Values"]},{Opcode:64,Name:"bnz",Args:"U",Cost:1,Size:3,Doc:"branch if value X is not zero",DocExtra:"The `bnz` instruction opcode 0x40 is followed by two immediate data bytes which are a high byte first and low byte second which together form a 16 bit offset which the instruction may branch to. For a bnz instruction at `pc`, if the last element of the stack is not zero then branch to instruction at `pc + 3 + N`, else proceed to next instruction at `pc + 3`. Branch targets must be well aligned instructions. (e.g. Branching to the second byte of a 2 byte op will be rejected.) Branch offsets are currently limited to forward branches only, 0-0x7fff. A future expansion might make this a signed 16 bit integer allowing for backward branches and looping.\n\nAt LogicSigVersion 2 it became allowed to branch to the end of the program exactly after the last instruction, removing the need for a last instruction or no-op as a branch target at the end. Branching beyond that may still fail the program.",ImmediateNote:"{0..0x7fff forward branch offset, big endian}",Groups:["Flow Control"]},{Opcode:65,Name:"bz",Args:"U",Cost:1,Size:3,Doc:"branch if value X is zero",DocExtra:"See `bnz` for details on how branches work. `bz` inverts the behavior of `bnz`.",ImmediateNote:"{0..0x7fff forward branch offset, big endian}",Groups:["Flow Control"]},{Opcode:66,Name:"b",Cost:1,Size:3,Doc:"branch unconditionally to offset",DocExtra:"See `bnz` for details on how branches work. `b` always jumps to the offset.",ImmediateNote:"{0..0x7fff forward branch offset, big endian}",Groups:["Flow Control"]},{Opcode:67,Name:"return",Args:"U",Cost:1,Size:1,Doc:"use last value on stack as success value; end",Groups:["Flow Control"]},{Opcode:72,Name:"pop",Args:".",Cost:1,Size:1,Doc:"discard value X from stack",Groups:["Flow Control"]},{Opcode:73,Name:"dup",Args:".",Returns:"..",Cost:1,Size:1,Doc:"duplicate last value on stack",Groups:["Flow Control"]},{Opcode:74,Name:"dup2",Args:"..",Returns:"....",Cost:1,Size:1,Doc:"duplicate two last values on stack: A, B -> A, B, A, B",Groups:["Flow Control"]},{Opcode:80,Name:"concat",Args:"BB",Returns:"B",Cost:1,Size:1,Doc:"pop two byte strings A and B and join them, push the result",DocExtra:"`concat` panics if the result would be greater than 4096 bytes.",Groups:["Arithmetic"]},{Opcode:81,Name:"substring",Args:"B",Returns:"B",Cost:1,Size:3,Doc:"pop a byte string X. For immediate values in 0..255 N and M: extract a range of bytes from it starting at N up to but not including M, push the substring result",ImmediateNote:"{uint8 start position}{uint8 end position}",Groups:["Arithmetic"]},{Opcode:82,Name:"substring3",Args:"BUU",Returns:"B",Cost:1,Size:1,Doc:"pop a byte string A and two integers B and C. Extract a range of bytes from A starting at B up to but not including C, push the substring result",Groups:["Arithmetic"]},{Opcode:96,Name:"balance",Args:"U",Returns:"U",Cost:1,Size:1,Doc:"get balance for the requested account specified by Txn.Accounts[A] in microalgos. A is specified as an account index in the Accounts field of the ApplicationCall transaction",Groups:["State Access"]},{Opcode:97,Name:"app_opted_in",Args:"UU",Returns:"U",Cost:1,Size:1,Doc:"check if account specified by Txn.Accounts[A] opted in for the application B => {0 or 1}",DocExtra:"params: account index, application id (top of the stack on opcode entry). Return: 1 if opted in and 0 otherwise.",Groups:["State Access"]},{Opcode:98,Name:"app_local_get",Args:"UB",Returns:".",Cost:1,Size:1,Doc:"read from account specified by Txn.Accounts[A] from local state of the current application key B => value",DocExtra:"params: account index, state key. Return: value. The value is zero if the key does not exist.",Groups:["State Access"]},{Opcode:99,Name:"app_local_get_ex",Args:"UUB",Returns:"U.",Cost:1,Size:1,Doc:"read from account specified by Txn.Accounts[A] from local state of the application B key C => {0 or 1 (top), value}",DocExtra:"params: account index, application id, state key. Return: did_exist flag (top of the stack, 1 if exist and 0 otherwise), value.",Groups:["State Access"]},{Opcode:100,Name:"app_global_get",Args:"B",Returns:".",Cost:1,Size:1,Doc:"read key A from global state of a current application => value",DocExtra:"params: state key. Return: value. The value is zero if the key does not exist.",Groups:["State Access"]},{Opcode:101,Name:"app_global_get_ex",Args:"UB",Returns:"U.",Cost:1,Size:1,Doc:"read from application A global state key B => {0 or 1 (top), value}",DocExtra:"params: application id, state key. Return: value.",Groups:["State Access"]},{Opcode:102,Name:"app_local_put",Args:"UB.",Cost:1,Size:1,Doc:"write to account specified by Txn.Accounts[A] to local state of a current application key B with value C",DocExtra:"params: account index, state key, value.",Groups:["State Access"]},{Opcode:103,Name:"app_global_put",Args:"B.",Cost:1,Size:1,Doc:"write key A and value B to global state of the current application",Groups:["State Access"]},{Opcode:104,Name:"app_local_del",Args:"UB",Cost:1,Size:1,Doc:"delete from account specified by Txn.Accounts[A] local state key B of the current application",DocExtra:"params: account index, state key.",Groups:["State Access"]},{Opcode:105,Name:"app_global_del",Args:"B",Cost:1,Size:1,Doc:"delete key A from a global state of the current application",DocExtra:"params: state key.",Groups:["State Access"]},{Opcode:112,Name:"asset_holding_get",Args:"UU",Returns:"U.",Cost:1,Size:2,ArgEnum:["AssetBalance","AssetFrozen"],ArgEnumTypes:"UU",Doc:"read from account specified by Txn.Accounts[A] and asset B holding field X (imm arg) => {0 or 1 (top), value}",DocExtra:"params: account index, asset id. Return: did_exist flag (1 if exist and 0 otherwise), value.",ImmediateNote:"{uint8 asset holding field index}",Groups:["State Access"]},{Opcode:113,Name:"asset_params_get",Args:"UU",Returns:"U.",Cost:1,Size:2,ArgEnum:["AssetTotal","AssetDecimals","AssetDefaultFrozen","AssetUnitName","AssetName","AssetURL","AssetMetadataHash","AssetManager","AssetReserve","AssetFreeze","AssetClawback"],ArgEnumTypes:"UUUBBBBBBBB",Doc:"read from account specified by Txn.Accounts[A] and asset B params field X (imm arg) => {0 or 1 (top), value}",DocExtra:"params: account index, asset id. Return: did_exist flag (1 if exist and 0 otherwise), value.",ImmediateNote:"{uint8 asset params field index}",Groups:["State Access"]}]}},{}],142:[function(e,t,r){function o(e,t){if(!e)throw new Error("empty program");if(null==t&&(t=[]),!Array.isArray(t))throw new Error("invalid arguments");let[r,o]=s(e);if(0>=o)throw new Error("version parsing error");if(r>i.EvalMaxVersion)throw new Error("unsupported version");let u=0,g=e.length;for(let r of t)g+=r.length;if(g>p)throw new Error("program too long");if(!l){l={};for(let e of i.Ops)l[e.Opcode]=e}let y=o,h=[],f=[];for(;y<e.length;){let t=l[e[y]];if(void 0===t)throw new Error("invalid instruction");u+=t.Cost;let r=t.Size;if(0==r)switch(t.Opcode){case 32:{[r,foundInts]=a(e,y),h=h.concat(foundInts);break}case 38:{[r,foundByteArrays]=n(e,y),f=f.concat(foundByteArrays);break}default:throw new Error("invalid instruction");}y+=r}if(u>d)throw new Error("program too costly to run");return[h,f,!0]}function a(e,t){let r=1,[o,a]=s(e.slice(t+r));if(0>=a)throw new Error(`could not decode int const block size at pc=${t+r}`);let n=[];r+=a;for(let a=0;a<o;a++){if(t+r>=e.length)throw new Error("intcblock ran past end of program");let[o,i]=s(e.slice(t+r));if(0>=i)throw new Error(`could not decode int const[${a}] block size at pc=${t+r}`);n.push(o),r+=i}return[r,n]}function n(e,t){let r=1,[o,a]=s(e.slice(t+r));if(0>=a)throw new Error(`could not decode []byte const block size at pc=${t+r}`);let n=[];r+=a;for(let a=0;a<o;a++){if(t+r>=e.length)throw new Error("bytecblock ran past end of program");let[o,i]=s(e.slice(t+r));if(0>=i)throw new Error(`could not decode []byte] const[${a}] block size at pc=${t+r}`);if(r+=i,t+r>=e.length)throw new Error("bytecblock ran past end of program");let l=e.slice(t+r,t+r+o);n.push(l),r+=o}return[r,n]}function s(e){let t=0,r=0;for(let o=0;o<e.length;o++){if(b=e[o],128>b)return 9<o||9==o&&1<b?[0,-(o+1)]:[t|b<<r,o+1];t+=(127&b)<<r,r+=7}return[0,0]}const i=e("./langspec.json");let l;const d=2e4,p=1e3;t.exports={checkProgram:function(e,t){return[_,_,success]=o(e,t),success},readProgram:o,parseUvarint:s,checkIntConstBlock:function(e,t){let[r,o]=a(e,t);return r},checkByteConstBlock:function(e,t){let[r,o]=n(e,t);return r},langspecEvalMaxVersion:i.EvalMaxVersion,langspecLogicSigVersion:i.LogicSigVersion}},{"./langspec.json":141}],143:[function(e,t,r){(function(r){const o=e("../encoding/address"),a=e("../encoding/encoding"),n=e("../group"),s=e("../logic/logic"),i=e("../logicsig"),l=e("../nacl/naclWrappers"),d=e("./templates"),p=e("../transaction");t.exports={DynamicFee:class{constructor(e,t,a,n,s,p){if(!_NumberisSafeInteger(t)||0>t)throw Error("amount must be a positive number and smaller than 2^53-1");if(!_NumberisSafeInteger(a)||0>a)throw Error("firstValid must be a positive number and smaller than 2^53-1");if(!_NumberisSafeInteger(n)||0>n)throw Error("lastValid must be a positive number and smaller than 2^53-1");if(void 0===s&&(s=o.ALGORAND_ZERO_ADDRESS_STRING),void 0===p){let e=l.randomBytes(32);p=r.from(e).toString("base64")}let u=r.from("ASAFAgEHBgUmAyD+vKC7FEpaTqe0OKRoGsgObKEFvLYH/FZTJclWlfaiEyDmmpYeby1feshmB5JlUr6YI17TM2PKiJGLuck4qRW2+SB/g7Flf/H8U7ktwYFIodZd/C1LH6PWdyhK3dIAEm2QaTIEIhIzABAjEhAzAAcxABIQMwAIMQESEDEWIxIQMRAjEhAxBygSEDEJKRIQMQgkEhAxAiUSEDEEIQQSEDEGKhIQ","base64"),g=[t,a,n,e,s,p],y=[d.valTypes.INT,d.valTypes.INT,d.valTypes.INT,d.valTypes.ADDRESS,d.valTypes.ADDRESS,d.valTypes.BASE64],h=d.inject(u,[5,6,7,11,44,76],g,y);this.programBytes=h;let f=new i.LogicSig(h,void 0);this.address=f.address()}getProgram(){return this.programBytes}getAddress(){return this.address}},getDynamicFeeTransactions:function(e,t,r,s){if(!t.verify(o.decodeAddress(e.from).publicKey))throw new Error("invalid signature");e.fee=s,e.fee<p.ALGORAND_MIN_TX_FEE&&(e.fee=p.ALGORAND_MIN_TX_FEE);let i=l.keyPairFromSecretKey(r),d=o.encodeAddress(i.publicKey),u=e.lease;delete e.lease;let g=new p.Transaction(e);g.addLease(u,s);let y={from:d,to:e.from,fee:s,amount:g.fee,firstRound:e.firstRound,lastRound:e.lastRound,genesisHash:e.genesisHash,type:"pay"},h=new p.Transaction(y);h.addLease(u,s);let f=n.assignGroupID([h,g],void 0),m=f[0],A=f[1],x={lsig:t.get_obj_for_encoding(),txn:A.get_obj_for_encoding()},k=m.signTxn(r),S=a.encode(x),w=new Uint8Array(k.length+S.length);return w.set(k),w.set(S,k.length),w},signDynamicFee:function(e,t,r){let a=s.readProgram(e,void 0),n=a[0],d=a[1],p=l.keyPairFromSecretKey(t),u=o.encodeAddress(p.publicKey),g=o.encodeAddress(d[0]),y=n[2],h=o.encodeAddress(d[1]),f=n[3],m=n[4],A=new Uint8Array(d[2]),x=new i.LogicSig(e,void 0);return x.sign(t),{txn:{from:u,to:g,fee:0,amount:y,closeRemainderTo:h,firstRound:f,lastRound:m,genesisHash:r,type:"pay",lease:A},lsig:x}}}}).call(this,e("buffer").Buffer)},{"../encoding/address":138,"../encoding/encoding":139,"../group":140,"../logic/logic":142,"../logicsig":150,"../nacl/naclWrappers":156,"../transaction":157,"./templates":149,buffer:13}],144:[function(e,t,r){(function(r){const o=e("../logic/logic"),a=e("../logicsig"),n=e("./templates"),s=e("../transaction"),i=e("js-sha256"),l=e("keccak");t.exports={HTLC:class{constructor(e,t,o,s,i,l){if(!_NumberisSafeInteger(i)||0>i)throw Error("expiryRound must be a positive number and smaller than 2^53-1");if(!_NumberisSafeInteger(l)||0>l)throw Error("maxFee must be a positive number and smaller than 2^53-1");let d="";if("sha256"===o)d="ASAECAEACSYDIOaalh5vLV96yGYHkmVSvpgjXtMzY8qIkYu5yTipFbb5IH+DsWV/8fxTuS3BgUih1l38LUsfo9Z3KErd0gASbZBpIP68oLsUSlpOp7Q4pGgayA5soQW8tgf8VlMlyVaV9qITMQEiDjEQIxIQMQcyAxIQMQgkEhAxCSgSLQEpEhAxCSoSMQIlDRAREA==";else if("keccak256"===o)d="ASAECAEACSYDIOaalh5vLV96yGYHkmVSvpgjXtMzY8qIkYu5yTipFbb5IH+DsWV/8fxTuS3BgUih1l38LUsfo9Z3KErd0gASbZBpIP68oLsUSlpOp7Q4pGgayA5soQW8tgf8VlMlyVaV9qITMQEiDjEQIxIQMQcyAxIQMQgkEhAxCSgSLQIpEhAxCSoSMQIlDRAREA==";else throw Error("hash function unrecognized");let p=r.from(s,"base64");if(32!==p.length)throw Error("hash image must be 32 bytes");let u=r.from(d,"base64"),g=[n.valTypes.INT,n.valTypes.INT,n.valTypes.ADDRESS,n.valTypes.BASE64,n.valTypes.ADDRESS],y=n.inject(u,[3,6,10,42,76],[l,i,t,s,e],g);this.programBytes=y;let h=new a.LogicSig(y,void 0);this.address=h.address()}getProgram(){return this.programBytes}getAddress(){return this.address}},signTransactionWithHTLCUnlock:function(e,t,n){let d=r.from(n,"base64"),p=o.readProgram(e,void 0),u=p[0],g=p[1],y=g[1],h=e[e.length-15];if(1==h){let e=i.create();e.update(d);let t=r.from(e.hex(),"hex");if(!t.equals(y))throw new Error("sha256 hash of preimage did not match stored contract hash")}else if(2==h){let e=l("keccak256").update(d).digest();if(!e.equals(y))throw new Error("keccak256 hash of preimage did not match stored contract hash")}else throw new Error("hash function in contract unrecognized");let f=new a.LogicSig(e,[d]);delete t.to;let m=u[0],A=new s.Transaction(t);if(A.fee>m)throw new Error("final fee of payment transaction"+A.fee.toString()+"greater than transaction max fee"+m.toString());return a.signLogicSigTransaction(t,f)}}}).call(this,e("buffer").Buffer)},{"../logic/logic":142,"../logicsig":150,"../transaction":157,"./templates":149,buffer:13,"js-sha256":41,keccak:43}],145:[function(e,t,r){const o=e("./dynamicfee"),a=e("./htlc"),n=e("./limitorder"),s=e("./split"),i=e("./periodicpayment");t.exports={DynamicFee:o.DynamicFee,getDynamicFeeTransactions:o.getDynamicFeeTransactions,signDynamicFee:o.signDynamicFee,HTLC:a.HTLC,signTransactionWithHTLCUnlock:a.signTransactionWithHTLCUnlock,LimitOrder:n.LimitOrder,getSwapAssetsTransaction:n.getSwapAssetsTransaction,Split:s.Split,getSplitFundsTransaction:s.getSplitFundsTransaction,PeriodicPayment:i.PeriodicPayment,getPeriodicPaymentWithdrawalTransaction:i.getPeriodicPaymentWithdrawalTransaction}},{"./dynamicfee":143,"./htlc":144,"./limitorder":146,"./periodicpayment":147,"./split":148}],146:[function(e,t,r){(function(r){const o=e("../encoding/address"),a=e("../makeTxn"),n=e("../group"),s=e("../logic/logic"),i=e("../logicsig"),l=e("../nacl/naclWrappers"),d=e("./templates"),p=e("../utils/utils");t.exports={LimitOrder:class{constructor(e,t,o,a,n,s,l){if(!_NumberisSafeInteger(t)||0>t)throw Error("assetid must be a positive number and smaller than 2^53-1");if(!_NumberisSafeInteger(o)||0>o)throw Error("ratn must be a positive number and smaller than 2^53-1");if(!_NumberisSafeInteger(a)||0>a)throw Error("ratd must be a positive number and smaller than 2^53-1");if(!_NumberisSafeInteger(n)||0>n)throw Error("expiryRound must be a positive number and smaller than 2^53-1");if(!_NumberisSafeInteger(s)||0>s)throw Error("minTrade must be a positive number and smaller than 2^53-1");if(!_NumberisSafeInteger(l)||0>l)throw Error("maxFee must be a positive number and smaller than 2^53-1");let p=r.from("ASAKAAEFAgYEBwgJCiYBIP68oLsUSlpOp7Q4pGgayA5soQW8tgf8VlMlyVaV9qITMRYiEjEQIxIQMQEkDhAyBCMSQABVMgQlEjEIIQQNEDEJMgMSEDMBECEFEhAzAREhBhIQMwEUKBIQMwETMgMSEDMBEiEHHTUCNQExCCEIHTUENQM0ATQDDUAAJDQBNAMSNAI0BA8QQAAWADEJKBIxAiEJDRAxBzIDEhAxCCISEBA=","base64"),u=[d.valTypes.INT,d.valTypes.INT,d.valTypes.INT,d.valTypes.INT,d.valTypes.INT,d.valTypes.INT,d.valTypes.ADDRESS],g=d.inject(p,[5,7,9,10,11,12,16],[l,s,t,a,o,n,e],u);this.programBytes=g;let y=new i.LogicSig(g,void 0);this.address=y.address(),this.owner=e,this.assetid=t}getProgram(){return this.programBytes}getAddress(){return this.address}},getSwapAssetsTransaction:function(e,t,r,d,u,g,y,h){let f=l.keyPairFromSecretKey(d),m=o.encodeAddress(f.publicKey),A=s.readProgram(e,void 0),x=A[0],k=A[1],S=x[6],w=o.encodeAddress(k[0]),v=i.makeLogicSig(e,void 0),T=v.address(),E=a.makePaymentTxn(T,m,u,r,R,g,y,void 0,h,void 0),B=a.makeAssetTransferTxn(m,w,R,C,u,t,g,y,void 0,h,void 0,S),I=n.assignGroupID([E,B]),P=x[7],U=x[8],R,C;if(t*P<r*U)throw new Error("bad payment ratio, "+t.toString()+"*"+P.toString()+" !>= "+r.toString()+"*"+U.toString());let D=x[4];if(r<D)throw new Error("payment amount "+r.toString()+" less than minimum trade "+D.toString());let O=x[2];if(I[0].fee>O)throw new Error("final fee of payment transaction "+I[0].fee.toString()+" greater than transaction max fee "+O.toString());if(I[1].fee>O)throw new Error("final fee of asset transaction "+I[1].fee.toString()+" greater than transaction max fee "+O.toString());let L=i.signLogicSigTransactionObject(I[0],v),j=I[1].signTxn(d);return p.concatArrays(L.blob,j)}}}).call(this,e("buffer").Buffer)},{"../encoding/address":138,"../group":140,"../logic/logic":142,"../logicsig":150,"../makeTxn":152,"../nacl/naclWrappers":156,"../utils/utils":158,"./templates":149,buffer:13}],147:[function(e,t,r){(function(r){const o=e("../encoding/address"),a=e("../makeTxn"),n=e("../logic/logic"),s=e("../logicsig"),i=e("../nacl/naclWrappers"),l=e("./templates");t.exports={PeriodicPayment:class{constructor(e,t,o,a,n,l,d){if(this.receiver=e,!_NumberisSafeInteger(t)||0>t)throw Error("amount must be a positive number and smaller than 2^53-1");if(this.amount=t,!_NumberisSafeInteger(o)||0>o)throw Error("withdrawalWindow must be a positive number and smaller than 2^53-1");if(this.withdrawalWindow=o,!_NumberisSafeInteger(a)||0>a)throw Error("period must be a positive number and smaller than 2^53-1");if(this.period=a,!_NumberisSafeInteger(n)||0>n)throw Error("expiryRound must be a positive number and smaller than 2^53-1");if(this.expiryRound=n,!_NumberisSafeInteger(l)||0>l)throw Error("maxFee must be a positive number and smaller than 2^53-1");if(this.maxFee=l,void 0===d){let e=i.randomBytes(32);this.lease=r.from(e).toString("base64")}else this.lease=d;this.programBytes=this.getProgram();let p=new s.LogicSig(this.programBytes,void 0);this.address=p.address()}getProgram(){let e=r.from("ASAHAQYFAAQDByYCIAECAwQFBgcIAQIDBAUGBwgBAgMEBQYHCAECAwQFBgcIIJKvkYTkEzwJf2arzJOxERsSogG9nQzKPkpIoc4TzPTFMRAiEjEBIw4QMQIkGCUSEDEEIQQxAggSEDEGKBIQMQkyAxIxBykSEDEIIQUSEDEJKRIxBzIDEhAxAiEGDRAxCCUSEBEQ","base64"),t=[this.maxFee,this.period,this.withdrawalWindow,this.amount,this.expiryRound,this.lease,this.receiver],o=[l.valTypes.INT,l.valTypes.INT,l.valTypes.INT,l.valTypes.INT,l.valTypes.INT,l.valTypes.BASE64,l.valTypes.ADDRESS];return l.inject(e,[4,5,7,8,9,12,46],t,o)}getAddress(){return this.address}},getPeriodicPaymentWithdrawalTransaction:function(e,t,r,i){let l=n.readProgram(e,void 0),d=l[0],p=l[1],u=d[2],g=d[4],y=d[5];if(0!=r%u)throw new Error("firstValid round "+r.toString()+" was not a multiple of contract period "+u.toString());let h=p[1],f=o.encodeAddress(h),m=p[0],A=new Uint8Array(m),x=r+g,k=f,S=s.makeLogicSig(e,void 0),w=S.address(),v=a.makePaymentTxn(w,k,t,y,T,r,x,E,i,""),T,E;if(v.fee>d[1])throw new Error("final fee of payment transaction"+v.fee.toString()+"greater than transaction max fee"+d[1].toString());return s.signLogicSigTransaction({from:w,to:k,fee:t,amount:y,closeRemainderTo:T,firstRound:r,lastRound:x,note:E,genesisHash:i,genesisID:"",type:"pay",lease:A},S)}}}).call(this,e("buffer").Buffer)},{"../encoding/address":138,"../logic/logic":142,"../logicsig":150,"../makeTxn":152,"../nacl/naclWrappers":156,"./templates":149,buffer:13}],148:[function(e,t,r){(function(r){const o=e("../encoding/address"),a=e("../makeTxn"),n=e("../group"),s=e("../logicsig"),i=e("../logic/logic"),l=e("./templates"),d=e("../utils/utils");t.exports={Split:class{constructor(e,t,o,a,n,i,d,p){if(!_NumberisSafeInteger(n)||0>n)throw Error("rat2 must be a positive number and smaller than 2^53-1");if(!_NumberisSafeInteger(a)||0>a)throw Error("rat1 must be a positive number and smaller than 2^53-1");if(!_NumberisSafeInteger(i)||0>i)throw Error("expiryRound must be a positive number and smaller than 2^53-1");if(!_NumberisSafeInteger(d)||0>d)throw Error("minPay must be a positive number and smaller than 2^53-1");if(!_NumberisSafeInteger(p)||0>p)throw Error("maxFee must be a positive number and smaller than 2^53-1");let u=r.from("ASAIAQUCAAYHCAkmAyCztwQn0+DycN+vsk+vJWcsoz/b7NDS6i33HOkvTpf+YiC3qUpIgHGWE8/1LPh9SGCalSN7IaITeeWSXbfsS5wsXyC4kBQ38Z8zcwWVAym4S8vpFB/c0XC6R4mnPi9EBADsPDEQIhIxASMMEDIEJBJAABkxCSgSMQcyAxIQMQglEhAxAiEEDRAiQAAuMwAAMwEAEjEJMgMSEDMABykSEDMBByoSEDMACCEFCzMBCCEGCxIQMwAIIQcPEBA=","base64"),g=[l.valTypes.INT,l.valTypes.INT,l.valTypes.INT,l.valTypes.INT,l.valTypes.INT,l.valTypes.ADDRESS,l.valTypes.ADDRESS,l.valTypes.ADDRESS],y=l.inject(u,[4,7,8,9,10,14,47,80],[p,i,n,a,d,e,t,o],g);this.programBytes=y;let h=s.makeLogicSig(y,void 0);this.address=h.address()}getProgram(){return this.programBytes}getAddress(){return this.address}},getSplitFundsTransaction:function(e,t,r,l,p,u){let g=i.readProgram(e,void 0),y=g[0],h=g[1],f=y[6],m=y[5],A=0,x=function(e,t){if("number"!=typeof e||"number"!=typeof t)throw"gcd operates only on positive integers";return t?x(t,e%t):e},k=x(f,m);f=_Mathfloor(f/k),m=_Mathfloor(m/k);let S=m/f;A=_Mathround(t/(1+S));let w=t-A;if(m*A!=f*w)throw Error("could not split funds in a way that satisfied the contract ratio");let v=s.makeLogicSig(e,void 0),T=v.address(),E=o.encodeAddress(h[1]),B=o.encodeAddress(h[2]),I=a.makePaymentTxn(T,E,p,A,void 0,r,l,void 0,u),P=a.makePaymentTxn(T,B,p,w,void 0,r,l,void 0,u),U=n.assignGroupID([I,P]),R=[];for(let o in U){let e=s.signLogicSigTransactionObject(U[o],v);R.push(e.blob)}return d.concatArrays(R[0],R[1])}}}).call(this,e("buffer").Buffer)},{"../encoding/address":138,"../group":140,"../logic/logic":142,"../logicsig":150,"../makeTxn":152,"../utils/utils":158,"./templates":149,buffer:13}],149:[function(e,t,r){(function(r){function o(e,t){let r=0;for(;128<t;)e.push(128|255&t),t>>=7,r+=1;return e.push(255&t),r+1}const a=e("assert"),n=e("../encoding/address"),s={INT:1,ADDRESS:2,BASE64:3};t.exports={inject:function(e,t,l,d){function p(e,t,o,a){let n=e.slice(0,o),s=e.slice(o+a,e.length),i=[n,r.from(t),s];return r.concat(i)}a.strictEqual(t.length,l.length),a.strictEqual(t.length,d.length);let u=e;for(let a=0;a<t.length;a++){let e=0,i=l[a],g=d[a];switch(g){case s.INT:let l=[];e=o(l,i),u=p(u,l,t[a],1);break;case s.ADDRESS:i=n.decodeAddress(i),u=p(u,i.publicKey,t[a],32);break;case s.BASE64:let d=[];i=r.from(i,"base64"),o(d,i.length),i=r.concat([r.from(d),i]),u=p(u,i,t[a],33);break;default:throw"unrecognized value type";}if(0!==e)for(let r=0;r<t.length;r++)t[r]+=e-1}return u},valTypes:s}}).call(this,e("buffer").Buffer)},{"../encoding/address":138,assert:2,buffer:13}],150:[function(e,t,r){(function(r){function o(e,t){return new LogicSig(e,t)}function a(e,t){let r={lsig:t.get_obj_for_encoding(),txn:e.get_obj_for_encoding()};return{txID:e.txID().toString(),blob:d.encode(r)}}function n(e,t,o){const a=g.concatArrays(l.decodeAddress(o).publicKey,t),n=r.from(g.concatArrays(h,a));return i.sign(n,e)}const s=e("assert"),i=e("./nacl/naclWrappers"),l=e("./encoding/address"),d=e("./encoding/encoding"),p=e("./logic/logic"),u=e("./multisig"),g=e("./utils/utils"),y=e("./transaction");class LogicSig{constructor(e,t){if(this.tag=r.from("Program"),s(p.checkProgram(e,t)),t){s(Array.isArray(t)),s(t.every(function(e){let t=typeof e;return"string"==t||"number"==t||e.constructor==Uint8Array||r.isBuffer(e)}))}this.logic=e,this.args=t,this.sig=void 0,this.msig=void 0}get_obj_for_encoding(){let e={l:this.logic};return this.args&&(e.arg=this.args),this.sig?e.sig=this.sig:this.msig&&(e.msig=this.msig),e}static from_obj_for_encoding(e){let t=new LogicSig(e.l,e.arg);return t.sig=e.sig,t.msig=e.msig,t}verify(e){if(this.sig&&this.msig)return!1;try{p.checkProgram(this.logic,this.args)}catch(t){return!1}let t=g.concatArrays(this.tag,this.logic);if(!this.sig&&!this.msig){let r=i.genericHash(t);return g.arrayEqual(r,e)}return this.sig?i.verify(t,this.sig,e):u.verifyMultisig(t,this.msig,e)}address(){let e=g.concatArrays(this.tag,this.logic),t=i.genericHash(e);return l.encodeAddress(t)}sign(e,t){if(t===void 0)this.sig=this.signProgram(e);else{let r=t.addrs.map(e=>({pk:l.decodeAddress(e).publicKey}));this.msig={v:t.version,thr:t.threshold,subsig:r};let[o,a]=this.singleSignMultisig(e,this.msig);this.msig.subsig[a].s=o}}appendToMultisig(e){if(this.msig===void 0)throw new Error("no multisig present");let[t,r]=this.singleSignMultisig(e,this.msig);this.msig.subsig[r].s=t}signProgram(e){let t=g.concatArrays(this.tag,this.logic);const r=i.sign(t,e);return r}singleSignMultisig(e,t){let r=-1,o=i.keyPairFromSecretKey(e).publicKey;for(let a=0,n;a<t.subsig.length;a++)if(n=t.subsig[a].pk,g.arrayEqual(n,o)){r=a;break}if(-1==r)throw new Error("invalid secret key");let a=this.signProgram(e);return[a,r]}toByte(){return d.encode(this.get_obj_for_encoding())}static fromByte(e){let t=d.decode(e);return LogicSig.from_obj_for_encoding(t)}}const h=r.from("ProgData");t.exports={LogicSig,makeLogicSig:o,signLogicSigTransaction:function(e,t){if(!t.verify(l.decodeAddress(e.from).publicKey))throw new Error("invalid signature");let r=new y.Transaction(e);return a(r,t)},signLogicSigTransactionObject:a,logicSigFromByte:function(e){return LogicSig.fromByte(e)},tealSign:n,tealSignFromProgram:function(e,t,r){const a=o(r),s=a.address();return n(e,t,s)}}}).call(this,e("buffer").Buffer)},{"./encoding/address":138,"./encoding/encoding":139,"./logic/logic":142,"./multisig":155,"./nacl/naclWrappers":156,"./transaction":157,"./utils/utils":158,assert:2,buffer:13}],151:[function(e,t,r){(function(r){function o(e){return g.mergeMultisigTransactions(e)}const a=e("./nacl/naclWrappers"),n=e("./encoding/address"),s=e("./mnemonic/mnemonic"),i=e("./encoding/encoding"),l=e("./account"),d=e("./transaction"),p=e("./makeTxn"),u=e("./group"),g=e("./multisig"),y=e("./bid"),h=e("./client/algod"),f=e("./client/kmd"),m=e("./convert"),A=e("./utils/utils"),x=e("./logicsig"),k=e("./logicTemplates"),S=e("./client/v2/algod/algod"),w=e("./client/v2/algod/models/types"),v=e("./client/v2/indexer/indexer");let T=h.Algod,E=f.Kmd,B=S.AlgodClient,I=v.IndexerClient;const P=r.from([77,88]),U=new Error("The transaction sender address and multisig preimage do not match.");t.exports={isValidAddress:n.isValidAddress,encodeAddress:n.encodeAddress,decodeAddress:n.decodeAddress,generateAccount:l.generateAccount,secretKeyToMnemonic:s.secretKeyToMnemonic,mnemonicToSecretKey:s.mnemonicToSecretKey,signTransaction:function(e,t){if(!e.from){let r=a.keyPairFromSecretKey(t);e.from=n.encodeAddress(r.publicKey)}let r=e;return e instanceof d.Transaction||(r=new d.Transaction(e)),{txID:r.txID().toString(),blob:r.signTxn(t)}},signBid:function(e,t){let r=new y.Bid(e);return r.signBid(t)},signBytes:function(e,t){let o=r.from(A.concatArrays(P,e)),n=a.sign(o,t);return n},verifyBytes:function(e,t,o){toBeVerified=r.from(A.concatArrays(P,e));let s=n.decodeAddress(o).publicKey;return a.verify(toBeVerified,t,s)},encodeObj:function(e){return new Uint8Array(i.encode(e))},decodeObj:function(e){return i.decode(e)},Algod:T,Kmd:E,Algodv2:B,Indexer:I,modelsv2:w,mnemonicToMasterDerivationKey:s.mnemonicToMasterDerivationKey,masterDerivationKeyToMnemonic:s.masterDerivationKeyToMnemonic,appendSignMultisigTransaction:function(e,{version:t,threshold:r,addrs:a},s){const l=a.map(e=>n.decodeAddress(e).publicKey);let d=i.decode(e),p=g.MultisigTransaction.from_obj_for_encoding(d.txn),u=p.partialSignTxn({version:t,threshold:r,pks:l},s);return{txID:p.txID().toString(),blob:o([e,u])}},mergeMultisigTransactions:o,signMultisigTransaction:function(e,{version:t,threshold:r,addrs:o},a){let s=n.fromMultisigPreImgAddrs({version:t,threshold:r,addrs:o});if(!e.hasOwnProperty("from"))e.from=s;else if(e.from!==s&&n.encodeAddress(e.from.publicKey)!==s)throw U;const i=o.map(e=>n.decodeAddress(e).publicKey);let l=e instanceof d.Transaction,p,u;return l?(p=e,u=g.MultisigTransaction.prototype.partialSignTxn.call(p,{version:t,threshold:r,pks:i},a)):(p=new g.MultisigTransaction(e),u=p.partialSignTxn({version:t,threshold:r,pks:i},a)),{txID:p.txID().toString(),blob:u}},multisigAddress:function({version:e,threshold:t,addrs:r}){return n.fromMultisigPreImgAddrs({version:e,threshold:t,addrs:r})},ERROR_MULTISIG_BAD_SENDER:U,ERROR_INVALID_MICROALGOS:m.ERROR_INVALID_MICROALGOS,microalgosToAlgos:m.microalgosToAlgos,algosToMicroalgos:m.algosToMicroalgos,computeGroupID:u.computeGroupID,assignGroupID:u.assignGroupID,makeLogicSig:x.makeLogicSig,signLogicSigTransaction:x.signLogicSigTransaction,signLogicSigTransactionObject:x.signLogicSigTransactionObject,logicSigFromByte:x.logicSigFromByte,tealSign:x.tealSign,tealSignFromProgram:x.tealSignFromProgram,makePaymentTxn:p.makePaymentTxn,makeKeyRegistrationTxn:p.makeKeyRegistrationTxn,makeAssetCreateTxn:p.makeAssetCreateTxn,makeAssetConfigTxn:p.makeAssetConfigTxn,makeAssetDestroyTxn:p.makeAssetDestroyTxn,makeAssetFreezeTxn:p.makeAssetFreezeTxn,makeAssetTransferTxn:p.makeAssetTransferTxn,makePaymentTxnWithSuggestedParams:p.makePaymentTxnWithSuggestedParams,makeKeyRegistrationTxnWithSuggestedParams:p.makeKeyRegistrationTxnWithSuggestedParams,makeAssetCreateTxnWithSuggestedParams:p.makeAssetCreateTxnWithSuggestedParams,makeAssetConfigTxnWithSuggestedParams:p.makeAssetConfigTxnWithSuggestedParams,makeAssetDestroyTxnWithSuggestedParams:p.makeAssetDestroyTxnWithSuggestedParams,makeAssetFreezeTxnWithSuggestedParams:p.makeAssetFreezeTxnWithSuggestedParams,makeAssetTransferTxnWithSuggestedParams:p.makeAssetTransferTxnWithSuggestedParams,OnApplicationComplete:p.OnApplicationComplete,makeApplicationCreateTxn:p.makeApplicationCreateTxn,makeApplicationUpdateTxn:p.makeApplicationUpdateTxn,makeApplicationDeleteTxn:p.makeApplicationDeleteTxn,makeApplicationOptInTxn:p.makeApplicationOptInTxn,makeApplicationCloseOutTxn:p.makeApplicationCloseOutTxn,makeApplicationClearStateTxn:p.makeApplicationClearStateTxn,makeApplicationNoOpTxn:p.makeApplicationNoOpTxn,encodeUnsignedTransaction:d.encodeUnsignedTransaction,decodeUnsignedTransaction:d.decodeUnsignedTransaction,decodeSignedTransaction:d.decodeSignedTransaction,Transaction:d.Transaction,LogicTemplates:k}}).call(this,e("buffer").Buffer)},{"./account":100,"./bid":101,"./client/algod":102,"./client/kmd":104,"./client/v2/algod/algod":106,"./client/v2/algod/models/types":114,"./client/v2/indexer/indexer":124,"./convert":137,"./encoding/address":138,"./encoding/encoding":139,"./group":140,"./logicTemplates":145,"./logicsig":150,"./makeTxn":152,"./mnemonic/mnemonic":153,"./multisig":155,"./nacl/naclWrappers":156,"./transaction":157,"./utils/utils":158,buffer:13}],152:[function(e,t,r){function o(e,t,r,o,a,n,s=void 0){return new p.Transaction({from:e,to:t,amount:r,closeRemainderTo:o,note:a,suggestedParams:n,type:"pay",rekeyTo:s})}function a(e,t,r,o,a,n,s,i,l=void 0){return new p.Transaction({from:e,note:t,voteKey:r,selectionKey:o,voteFirst:a,voteLast:n,voteKeyDilution:s,suggestedParams:i,type:"keyreg",rekeyTo:l})}function n(e,t,r,o,a,n,s,i,l,d,u,g,y,h,f=void 0){return new p.Transaction({from:e,note:t,suggestedParams:h,assetTotal:r,assetDecimals:o,assetDefaultFrozen:a,assetUnitName:d,assetName:u,assetURL:g,assetMetadataHash:y,assetManager:n,assetReserve:s,assetFreeze:i,assetClawback:l,type:"acfg",rekeyTo:f})}function s(e,t,r,o,a,n,s,i,l=!0,d=void 0){if(l&&(o===void 0||a===void 0||n===void 0||s===void 0))throw Error("strict empty address checking was turned on, but at least one empty address was provided");return new p.Transaction({from:e,suggestedParams:i,assetIndex:r,assetManager:o,assetReserve:a,assetFreeze:n,assetClawback:s,type:"acfg",note:t,rekeyTo:d})}function i(e,t,r,o,a=void 0){return new p.Transaction({from:e,suggestedParams:o,assetIndex:r,type:"acfg",note:t,rekeyTo:a})}function l(e,t,r,o,a,n,s=void 0){return new p.Transaction({from:e,type:"afrz",freezeAccount:o,assetIndex:r,freezeState:a,note:t,suggestedParams:n,rekeyTo:s})}function d(e,t,r,o,a,n,s,i,l=void 0){return new p.Transaction({type:"axfer",from:e,to:t,amount:a,suggestedParams:i,assetIndex:s,note:n,assetRevocationTarget:o,closeRemainderTo:r,rekeyTo:l})}const p=e("./transaction");let u={NoOpOC:0,OptInOC:1,CloseOutOC:2,ClearStateOC:3,UpdateApplicationOC:4,DeleteApplicationOC:5};t.exports={makePaymentTxn:function(e,t,r,a,n,s,i,l,d,p,u=void 0){return o(e,t,a,n,l,{genesisHash:d,genesisID:p,firstRound:s,lastRound:i,fee:r},u)},makePaymentTxnWithSuggestedParams:o,makeKeyRegistrationTxn:function(e,t,r,o,n,s,i,l,d,p,u,g,y=void 0){return a(e,n,l,d,p,u,g,{genesisHash:s,genesisID:i,firstRound:r,lastRound:o,fee:t},y)},makeKeyRegistrationTxnWithSuggestedParams:a,makeAssetCreateTxn:function(e,t,r,o,a,s,i,l,d,p,u,g,y,h,f,m,A,x,k=void 0){return n(e,a,l,d,p,u,g,y,h,f,m,A,x,{genesisHash:s,genesisID:i,firstRound:r,lastRound:o,fee:t},k)},makeAssetCreateTxnWithSuggestedParams:n,makeAssetConfigTxn:function(e,t,r,o,a,n,i,l,d,p,u,g,y=!0,h=void 0){return s(e,a,l,d,p,u,g,{genesisHash:n,genesisID:i,firstRound:r,lastRound:o,fee:t},y,h)},makeAssetConfigTxnWithSuggestedParams:s,makeAssetDestroyTxn:function(e,t,r,o,a,n,s,l,d=void 0){return i(e,a,l,{genesisHash:n,genesisID:s,firstRound:r,lastRound:o,fee:t},d)},makeAssetDestroyTxnWithSuggestedParams:i,makeAssetFreezeTxn:function(e,t,r,o,a,n,s,i,d,p,u=void 0){return l(e,a,i,d,p,{genesisHash:n,genesisID:s,firstRound:r,lastRound:o,fee:t},u)},makeAssetFreezeTxnWithSuggestedParams:l,makeAssetTransferTxn:function(e,t,r,o,a,n,s,i,l,p,u,g,y=void 0){return d(e,t,r,o,n,l,g,{genesisHash:p,genesisID:u,firstRound:s,lastRound:i,fee:a},y)},makeAssetTransferTxnWithSuggestedParams:d,OnApplicationComplete:u,makeApplicationCreateTxn:function(e,t,r,o,a,n,s,i,l,d=void 0,u=void 0,g=void 0,y=void 0,h=void 0,f=void 0,m=void 0){return new p.Transaction({type:"appl",from:e,suggestedParams:t,appIndex:0,appOnComplete:r,appLocalInts:n,appLocalByteSlices:s,appGlobalInts:i,appGlobalByteSlices:l,appApprovalProgram:o,appClearProgram:a,appArgs:d,appAccounts:u,appForeignApps:g,appForeignAssets:y,note:h,lease:f,reKeyTo:m})},makeApplicationUpdateTxn:function(e,t,r,a,n,s=void 0,i=void 0,l=void 0,d=void 0,g=void 0,y=void 0,h=void 0){let f={type:"appl",from:e,suggestedParams:t,appIndex:r,appApprovalProgram:a,appOnComplete:u.UpdateApplicationOC,appClearProgram:n,appArgs:s,appAccounts:i,appForeignApps:l,appForeignAssets:d,note:g,lease:y,reKeyTo:h};return new p.Transaction(f)},makeApplicationDeleteTxn:function(e,t,r,a=void 0,n=void 0,s=void 0,i=void 0,l=void 0,d=void 0,g=void 0){let y={type:"appl",from:e,suggestedParams:t,appIndex:r,appOnComplete:u.DeleteApplicationOC,appArgs:a,appAccounts:n,appForeignApps:s,appForeignAssets:i,note:l,lease:d,reKeyTo:g};return new p.Transaction(y)},makeApplicationOptInTxn:function(e,t,r,a=void 0,n=void 0,s=void 0,i=void 0,l=void 0,d=void 0,g=void 0){let y={type:"appl",from:e,suggestedParams:t,appIndex:r,appOnComplete:u.OptInOC,appArgs:a,appAccounts:n,appForeignApps:s,appForeignAssets:i,note:l,lease:d,reKeyTo:g};return new p.Transaction(y)},makeApplicationCloseOutTxn:function(e,t,r,a=void 0,n=void 0,s=void 0,i=void 0,l=void 0,d=void 0,g=void 0){let y={type:"appl",from:e,suggestedParams:t,appIndex:r,appOnComplete:u.CloseOutOC,appArgs:a,appAccounts:n,appForeignApps:s,appForeignAssets:i,note:l,lease:d,reKeyTo:g};return new p.Transaction(y)},makeApplicationClearStateTxn:function(e,t,r,a=void 0,n=void 0,s=void 0,i=void 0,l=void 0,d=void 0,g=void 0){let y={type:"appl",from:e,suggestedParams:t,appIndex:r,appOnComplete:u.ClearStateOC,appArgs:a,appAccounts:n,appForeignApps:s,appForeignAssets:i,note:l,lease:d,reKeyTo:g};return new p.Transaction(y)},makeApplicationNoOpTxn:function(e,t,r,a=void 0,n=void 0,s=void 0,i=void 0,l=void 0,d=void 0,g=void 0){let y={type:"appl",from:e,suggestedParams:t,appIndex:r,appOnComplete:u.NoOpOC,appArgs:a,appAccounts:n,appForeignApps:s,appForeignAssets:i,note:l,lease:d,reKeyTo:g};return new p.Transaction(y)}}},{"./transaction":157}],153:[function(e,t,r){function o(e){if(e.length!==p.SEED_BTYES_LENGTH)throw new RangeError("Seed length must be "+p.SEED_BTYES_LENGTH);const t=i(e),r=s(t),o=n(e);return r.join(" ")+" "+o}function a(e){const t=e.split(" "),r=t.slice(0,24);for(let t of r)if(-1===d.indexOf(t))throw y;const o=t[t.length-1],a=r.map(e=>d.indexOf(e));let s=l(a);if(33!==s.length)throw g;if(0!==s[s.length-1])throw g;s=s.slice(0,s.length-1);const i=n(s);if(i===o)return s;throw g}function n(e){const t=p.genericHash(e),r=i(t),o=s(r);return o[0]}function s(e){return e.map(e=>d[e])}function i(e){function t(e){a=e<<n|a,n+=8,11<=n&&(o.push(2047&a),a>>=11,n-=11)}function r(){n&&o.push(a)}let o=[],a=0,n=0;return e.forEach(t),r(),o}function l(e){function t(e){for(a=e<<n|a,n+=11;8<=n;)o.push(255&a),a>>=8,n-=8}function r(){n&&o.push(a)}let o=[],a=0,n=0;return e.forEach(t),r(),new Uint8Array(o)}const d=e("./wordlists/english"),p=e("../nacl/naclWrappers"),u=e("../encoding/address"),g=Error("failed to decode mnemonic"),y=Error("the mnemonic contains a word that is not in the wordlist");t.exports={mnemonicFromSeed:o,seedFromMnemonic:a,ERROR_FAIL_TO_DECODE_MNEMONIC:g,ERROR_NOT_IN_WORDS_LIST:y,mnemonicToSecretKey:function(e){let t=a(e),r=p.keyPairFromSeed(t),o=u.encodeAddress(r.publicKey);return{addr:o,sk:r.secretKey}},secretKeyToMnemonic:function(e){let t=e.slice(0,p.SEED_BTYES_LENGTH);return o(t)},mnemonicToMasterDerivationKey:function(e){return a(e)},masterDerivationKeyToMnemonic:function(e){return o(e)}}},{"../encoding/address":138,"../nacl/naclWrappers":156,"./wordlists/english":154}],154:[function(e,t,r){t.exports=["abandon","ability","able","about","above","absent","absorb","abstract","absurd","abuse","access","accident","account","accuse","achieve","acid","acoustic","acquire","across","act","action","actor","actress","actual","adapt","add","addict","address","adjust","admit","adult","advance","advice","aerobic","affair","afford","afraid","again","age","agent","agree","ahead","aim","air","airport","aisle","alarm","album","alcohol","alert","alien","all","alley","allow","almost","alone","alpha","already","also","alter","always","amateur","amazing","among","amount","amused","analyst","anchor","ancient","anger","angle","angry","animal","ankle","announce","annual","another","answer","antenna","antique","anxiety","any","apart","apology","appear","apple","approve","april","arch","arctic","area","arena","argue","arm","armed","armor","army","around","arrange","arrest","arrive","arrow","art","artefact","artist","artwork","ask","aspect","assault","asset","assist","assume","asthma","athlete","atom","attack","attend","attitude","attract","auction","audit","august","aunt","author","auto","autumn","average","avocado","avoid","awake","aware","away","awesome","awful","awkward","axis","baby","bachelor","bacon","badge","bag","balance","balcony","ball","bamboo","banana","banner","bar","barely","bargain","barrel","base","basic","basket","battle","beach","bean","beauty","because","become","beef","before","begin","behave","behind","believe","below","belt","bench","benefit","best","betray","better","between","beyond","bicycle","bid","bike","bind","biology","bird","birth","bitter","black","blade","blame","blanket","blast","bleak","bless","blind","blood","blossom","blouse","blue","blur","blush","board","boat","body","boil","bomb","bone","bonus","book","boost","border","boring","borrow","boss","bottom","bounce","box","boy","bracket","brain","brand","brass","brave","bread","breeze","brick","bridge","brief","bright","bring","brisk","broccoli","broken","bronze","broom","brother","brown","brush","bubble","buddy","budget","buffalo","build","bulb","bulk","bullet","bundle","bunker","burden","burger","burst","bus","business","busy","butter","buyer","buzz","cabbage","cabin","cable","cactus","cage","cake","call","calm","camera","camp","can","canal","cancel","candy","cannon","canoe","canvas","canyon","capable","capital","captain","car","carbon","card","cargo","carpet","carry","cart","case","cash","casino","castle","casual","cat","catalog","catch","category","cattle","caught","cause","caution","cave","ceiling","celery","cement","census","century","cereal","certain","chair","chalk","champion","change","chaos","chapter","charge","chase","chat","cheap","check","cheese","chef","cherry","chest","chicken","chief","child","chimney","choice","choose","chronic","chuckle","chunk","churn","cigar","cinnamon","circle","citizen","city","civil","claim","clap","clarify","claw","clay","clean","clerk","clever","click","client","cliff","climb","clinic","clip","clock","clog","close","cloth","cloud","clown","club","clump","cluster","clutch","coach","coast","coconut","code","coffee","coil","coin","collect","color","column","combine","come","comfort","comic","common","company","concert","conduct","confirm","congress","connect","consider","control","convince","cook","cool","copper","copy","coral","core","corn","correct","cost","cotton","couch","country","couple","course","cousin","cover","coyote","crack","cradle","craft","cram","crane","crash","crater","crawl","crazy","cream","credit","creek","crew","cricket","crime","crisp","critic","crop","cross","crouch","crowd","crucial","cruel","cruise","crumble","crunch","crush","cry","crystal","cube","culture","cup","cupboard","curious","current","curtain","curve","cushion","custom","cute","cycle","dad","damage","damp","dance","danger","daring","dash","daughter","dawn","day","deal","debate","debris","decade","december","decide","decline","decorate","decrease","deer","defense","define","defy","degree","delay","deliver","demand","demise","denial","dentist","deny","depart","depend","deposit","depth","deputy","derive","describe","desert","design","desk","despair","destroy","detail","detect","develop","device","devote","diagram","dial","diamond","diary","dice","diesel","diet","differ","digital","dignity","dilemma","dinner","dinosaur","direct","dirt","disagree","discover","disease","dish","dismiss","disorder","display","distance","divert","divide","divorce","dizzy","doctor","document","dog","doll","dolphin","domain","donate","donkey","donor","door","dose","double","dove","draft","dragon","drama","drastic","draw","dream","dress","drift","drill","drink","drip","drive","drop","drum","dry","duck","dumb","dune","during","dust","dutch","duty","dwarf","dynamic","eager","eagle","early","earn","earth","easily","east","easy","echo","ecology","economy","edge","edit","educate","effort","egg","eight","either","elbow","elder","electric","elegant","element","elephant","elevator","elite","else","embark","embody","embrace","emerge","emotion","employ","empower","empty","enable","enact","end","endless","endorse","enemy","energy","enforce","engage","engine","enhance","enjoy","enlist","enough","enrich","enroll","ensure","enter","entire","entry","envelope","episode","equal","equip","era","erase","erode","erosion","error","erupt","escape","essay","essence","estate","eternal","ethics","evidence","evil","evoke","evolve","exact","example","excess","exchange","excite","exclude","excuse","execute","exercise","exhaust","exhibit","exile","exist","exit","exotic","expand","expect","expire","explain","expose","express","extend","extra","eye","eyebrow","fabric","face","faculty","fade","faint","faith","fall","false","fame","family","famous","fan","fancy","fantasy","farm","fashion","fat","fatal","father","fatigue","fault","favorite","feature","february","federal","fee","feed","feel","female","fence","festival","fetch","fever","few","fiber","fiction","field","figure","file","film","filter","final","find","fine","finger","finish","fire","firm","first","fiscal","fish","fit","fitness","fix","flag","flame","flash","flat","flavor","flee","flight","flip","float","flock","floor","flower","fluid","flush","fly","foam","focus","fog","foil","fold","follow","food","foot","force","forest","forget","fork","fortune","forum","forward","fossil","foster","found","fox","fragile","frame","frequent","fresh","friend","fringe","frog","front","frost","frown","frozen","fruit","fuel","fun","funny","furnace","fury","future","gadget","gain","galaxy","gallery","game","gap","garage","garbage","garden","garlic","garment","gas","gasp","gate","gather","gauge","gaze","general","genius","genre","gentle","genuine","gesture","ghost","giant","gift","giggle","ginger","giraffe","girl","give","glad","glance","glare","glass","glide","glimpse","globe","gloom","glory","glove","glow","glue","goat","goddess","gold","good","goose","gorilla","gospel","gossip","govern","gown","grab","grace","grain","grant","grape","grass","gravity","great","green","grid","grief","grit","grocery","group","grow","grunt","guard","guess","guide","guilt","guitar","gun","gym","habit","hair","half","hammer","hamster","hand","happy","harbor","hard","harsh","harvest","hat","have","hawk","hazard","head","health","heart","heavy","hedgehog","height","hello","helmet","help","hen","hero","hidden","high","hill","hint","hip","hire","history","hobby","hockey","hold","hole","holiday","hollow","home","honey","hood","hope","horn","horror","horse","hospital","host","hotel","hour","hover","hub","huge","human","humble","humor","hundred","hungry","hunt","hurdle","hurry","hurt","husband","hybrid","ice","icon","idea","identify","idle","ignore","ill","illegal","illness","image","imitate","immense","immune","impact","impose","improve","impulse","inch","include","income","increase","index","indicate","indoor","industry","infant","inflict","inform","inhale","inherit","initial","inject","injury","inmate","inner","innocent","input","inquiry","insane","insect","inside","inspire","install","intact","interest","into","invest","invite","involve","iron","island","isolate","issue","item","ivory","jacket","jaguar","jar","jazz","jealous","jeans","jelly","jewel","job","join","joke","journey","joy","judge","juice","jump","jungle","junior","junk","just","kangaroo","keen","keep","ketchup","key","kick","kid","kidney","kind","kingdom","kiss","kit","kitchen","kite","kitten","kiwi","knee","knife","knock","know","lab","label","labor","ladder","lady","lake","lamp","language","laptop","large","later","latin","laugh","laundry","lava","law","lawn","lawsuit","layer","lazy","leader","leaf","learn","leave","lecture","left","leg","legal","legend","leisure","lemon","lend","length","lens","leopard","lesson","letter","level","liar","liberty","library","license","life","lift","light","like","limb","limit","link","lion","liquid","list","little","live","lizard","load","loan","lobster","local","lock","logic","lonely","long","loop","lottery","loud","lounge","love","loyal","lucky","luggage","lumber","lunar","lunch","luxury","lyrics","machine","mad","magic","magnet","maid","mail","main","major","make","mammal","man","manage","mandate","mango","mansion","manual","maple","marble","march","margin","marine","market","marriage","mask","mass","master","match","material","math","matrix","matter","maximum","maze","meadow","mean","measure","meat","mechanic","medal","media","melody","melt","member","memory","mention","menu","mercy","merge","merit","merry","mesh","message","metal","method","middle","midnight","milk","million","mimic","mind","minimum","minor","minute","miracle","mirror","misery","miss","mistake","mix","mixed","mixture","mobile","model","modify","mom","moment","monitor","monkey","monster","month","moon","moral","more","morning","mosquito","mother","motion","motor","mountain","mouse","move","movie","much","muffin","mule","multiply","muscle","museum","mushroom","music","must","mutual","myself","mystery","myth","naive","name","napkin","narrow","nasty","nation","nature","near","neck","need","negative","neglect","neither","nephew","nerve","nest","net","network","neutral","never","news","next","nice","night","noble","noise","nominee","noodle","normal","north","nose","notable","note","nothing","notice","novel","now","nuclear","number","nurse","nut","oak","obey","object","oblige","obscure","observe","obtain","obvious","occur","ocean","october","odor","off","offer","office","often","oil","okay","old","olive","olympic","omit","once","one","onion","online","only","open","opera","opinion","oppose","option","orange","orbit","orchard","order","ordinary","organ","orient","original","orphan","ostrich","other","outdoor","outer","output","outside","oval","oven","over","own","owner","oxygen","oyster","ozone","pact","paddle","page","pair","palace","palm","panda","panel","panic","panther","paper","parade","parent","park","parrot","party","pass","patch","path","patient","patrol","pattern","pause","pave","payment","peace","peanut","pear","peasant","pelican","pen","penalty","pencil","people","pepper","perfect","permit","person","pet","phone","photo","phrase","physical","piano","picnic","picture","piece","pig","pigeon","pill","pilot","pink","pioneer","pipe","pistol","pitch","pizza","place","planet","plastic","plate","play","please","pledge","pluck","plug","plunge","poem","poet","point","polar","pole","police","pond","pony","pool","popular","portion","position","possible","post","potato","pottery","poverty","powder","power","practice","praise","predict","prefer","prepare","present","pretty","prevent","price","pride","primary","print","priority","prison","private","prize","problem","process","produce","profit","program","project","promote","proof","property","prosper","protect","proud","provide","public","pudding","pull","pulp","pulse","pumpkin","punch","pupil","puppy","purchase","purity","purpose","purse","push","put","puzzle","pyramid","quality","quantum","quarter","question","quick","quit","quiz","quote","rabbit","raccoon","race","rack","radar","radio","rail","rain","raise","rally","ramp","ranch","random","range","rapid","rare","rate","rather","raven","raw","razor","ready","real","reason","rebel","rebuild","recall","receive","recipe","record","recycle","reduce","reflect","reform","refuse","region","regret","regular","reject","relax","release","relief","rely","remain","remember","remind","remove","render","renew","rent","reopen","repair","repeat","replace","report","require","rescue","resemble","resist","resource","response","result","retire","retreat","return","reunion","reveal","review","reward","rhythm","rib","ribbon","rice","rich","ride","ridge","rifle","right","rigid","ring","riot","ripple","risk","ritual","rival","river","road","roast","robot","robust","rocket","romance","roof","rookie","room","rose","rotate","rough","round","route","royal","rubber","rude","rug","rule","run","runway","rural","sad","saddle","sadness","safe","sail","salad","salmon","salon","salt","salute","same","sample","sand","satisfy","satoshi","sauce","sausage","save","say","scale","scan","scare","scatter","scene","scheme","school","science","scissors","scorpion","scout","scrap","screen","script","scrub","sea","search","season","seat","second","secret","section","security","seed","seek","segment","select","sell","seminar","senior","sense","sentence","series","service","session","settle","setup","seven","shadow","shaft","shallow","share","shed","shell","sheriff","shield","shift","shine","ship","shiver","shock","shoe","shoot","shop","short","shoulder","shove","shrimp","shrug","shuffle","shy","sibling","sick","side","siege","sight","sign","silent","silk","silly","silver","similar","simple","since","sing","siren","sister","situate","six","size","skate","sketch","ski","skill","skin","skirt","skull","slab","slam","sleep","slender","slice","slide","slight","slim","slogan","slot","slow","slush","small","smart","smile","smoke","smooth","snack","snake","snap","sniff","snow","soap","soccer","social","sock","soda","soft","solar","soldier","solid","solution","solve","someone","song","soon","sorry","sort","soul","sound","soup","source","south","space","spare","spatial","spawn","speak","special","speed","spell","spend","sphere","spice","spider","spike","spin","spirit","split","spoil","sponsor","spoon","sport","spot","spray","spread","spring","spy","square","squeeze","squirrel","stable","stadium","staff","stage","stairs","stamp","stand","start","state","stay","steak","steel","stem","step","stereo","stick","still","sting","stock","stomach","stone","stool","story","stove","strategy","street","strike","strong","struggle","student","stuff","stumble","style","subject","submit","subway","success","such","sudden","suffer","sugar","suggest","suit","summer","sun","sunny","sunset","super","supply","supreme","sure","surface","surge","surprise","surround","survey","suspect","sustain","swallow","swamp","swap","swarm","swear","sweet","swift","swim","swing","switch","sword","symbol","symptom","syrup","system","table","tackle","tag","tail","talent","talk","tank","tape","target","task","taste","tattoo","taxi","teach","team","tell","ten","tenant","tennis","tent","term","test","text","thank","that","theme","then","theory","there","they","thing","this","thought","three","thrive","throw","thumb","thunder","ticket","tide","tiger","tilt","timber","time","tiny","tip","tired","tissue","title","toast","tobacco","today","toddler","toe","together","toilet","token","tomato","tomorrow","tone","tongue","tonight","tool","tooth","top","topic","topple","torch","tornado","tortoise","toss","total","tourist","toward","tower","town","toy","track","trade","traffic","tragic","train","transfer","trap","trash","travel","tray","treat","tree","trend","trial","tribe","trick","trigger","trim","trip","trophy","trouble","truck","true","truly","trumpet","trust","truth","try","tube","tuition","tumble","tuna","tunnel","turkey","turn","turtle","twelve","twenty","twice","twin","twist","two","type","typical","ugly","umbrella","unable","unaware","uncle","uncover","under","undo","unfair","unfold","unhappy","uniform","unique","unit","universe","unknown","unlock","until","unusual","unveil","update","upgrade","uphold","upon","upper","upset","urban","urge","usage","use","used","useful","useless","usual","utility","vacant","vacuum","vague","valid","valley","valve","van","vanish","vapor","various","vast","vault","vehicle","velvet","vendor","venture","venue","verb","verify","version","very","vessel","veteran","viable","vibrant","vicious","victory","video","view","village","vintage","violin","virtual","virus","visa","visit","visual","vital","vivid","vocal","voice","void","volcano","volume","vote","voyage","wage","wagon","wait","walk","wall","walnut","want","warfare","warm","warrior","wash","wasp","waste","water","wave","way","wealth","weapon","wear","weasel","weather","web","wedding","weekend","weird","welcome","west","wet","whale","what","wheat","wheel","when","where","whip","whisper","wide","width","wife","wild","will","win","window","wine","wing","wink","winner","winter","wire","wisdom","wise","wish","witness","wolf","woman","wonder","wood","wool","word","work","world","worry","worth","wrap","wreck","wrestle","wrist","write","wrong","yard","year","yellow","you","young","youth","zebra","zero","zone","zoo"]},{}],155:[function(e,t,r){(function(r){function o(e,{rawSig:t,myPk:o},{version:n,threshold:i,pks:l}){let d=!1,p=l.map(e=>a.bytesEqual(e,o)?(d=!0,{pk:r.from(e),s:t}):{pk:r.from(e)});if(!1==d)throw h;return new Uint8Array(s.encode({msig:{v:n,thr:i,subsig:p},txn:e}))}const a=e("./nacl/naclWrappers"),n=e("./encoding/address"),s=e("./encoding/encoding"),i=e("./transaction"),l=e("./utils/utils"),d=new Error("Not enough multisig transactions to merge. Need at least two"),p=new Error("Cannot merge txs. txIDs differ"),u=new Error("Cannot merge txs. Multisig preimages differ"),g=new Error("Cannot merge txs. subsigs are mismatched."),y=new Error("The transaction from field and multisig preimage do not match."),h=new Error("Key does not exist");class MultisigTransaction extends i.Transaction{get_obj_for_encoding(){return this.hasOwnProperty("objForEncoding")?this.objForEncoding:super.get_obj_for_encoding()}static from_obj_for_encoding(e){if("pay"!==e.type){let t=Object.create(this.prototype);return t.name="Transaction",t.tag=r.from([84,88]),t.objForEncoding=e,t}return super.from_obj_for_encoding(e)}partialSignTxn({version:e,threshold:t,pks:r},s){if(!this.hasOwnProperty("objForEncoding")){let o=n.fromMultisigPreImg({version:e,threshold:t,pks:r});if(n.encodeAddress(this.from.publicKey)!==n.encodeAddress(o))throw y}let i=a.keyPairFromSecretKey(s).publicKey;return o(this.get_obj_for_encoding(),{rawSig:this.rawSignTxn(s),myPk:i},{version:e,threshold:t,pks:r})}}t.exports={MultisigTransaction,mergeMultisigTransactions:function(e){if(2>e.length)throw d;const t=s.decode(e[0]),o=MultisigTransaction.from_obj_for_encoding(t.txn),a=o.txID().toString(),l=n.encodeAddress(t.txn.snd);let y=t.msig.subsig;for(let o=0;o<e.length;o++){let i=s.decode(e[o]),d=MultisigTransaction.from_obj_for_encoding(i.txn);if(d.txID().toString()!==a)throw p;if(i.msig.subsig.length!==t.msig.subsig.length)throw u;let h={version:i.msig.v,threshold:i.msig.thr,pks:i.msig.subsig.map(e=>e.pk)};if(l!==n.encodeAddress(n.fromMultisigPreImg(h)))throw u;y=i.msig.subsig.map((e,t)=>{let o=y[t];if(o.s){if(e.s&&0!==r.compare(e.s,o.s))throw g;return{pk:o.pk,s:o.s}}return e.s?{pk:o.pk,s:e.s}:o})}let h={v:t.msig.v,thr:t.msig.thr,subsig:y},f={msig:h,txn:t.txn};return new Uint8Array(s.encode(f))},createMultisigTransaction:o,verifyMultisig:function(e,t,r){const o=t.v,s=t.thr,i=t.subsig;let d=i.map(e=>e.pk);if(t.subsig.length<s)return!1;let p;try{p=n.fromMultisigPreImg({version:o,threshold:s,pks:d})}catch(t){return!1}if(!l.arrayEqual(p,r))return!1;let u=0;for(let o of i)void 0!==o.s&&(u+=1);if(u<s)return!1;let g=0;for(let o of i)void 0!==o.s&&a.verify(e,o.s,o.pk)&&(g+=1);return!(g<s)},ERROR_MULTISIG_MERGE_LESSTHANTWO:d,ERROR_MULTISIG_MERGE_MISMATCH:p,ERROR_MULTISIG_MERGE_WRONG_PREIMAGE:u,ERROR_MULTISIG_MERGE_SIG_MISMATCH:g}}).call(this,e("buffer").Buffer)},{"./encoding/address":138,"./encoding/encoding":139,"./nacl/naclWrappers":156,"./transaction":157,"./utils/utils":158,buffer:13}],156:[function(e,t,r){function o(e){return n.randomBytes(e)}function a(e){return n.sign.keyPair.fromSeed(e)}const n=e("tweetnacl"),s=e("js-sha512");t.exports={genericHash:function(e){return s.sha512_256.array(e)},randomBytes:o,keyPair:function(){let e=o(n.box.secretKeyLength);return a(e)},sign:function(e,t){return n.sign.detached(e,t)},keyPairFromSeed:a,keyPairFromSecretKey:function(e){return n.sign.keyPair.fromSecretKey(e)},bytesEqual:function(e,t){return n.verify(e,t)},verify:function(e,t,r){return n.sign.detached.verify(e,t,r)}},t.exports.PUBLIC_KEY_LENGTH=n.sign.publicKeyLength,t.exports.SECRET_KEY_LENGTH=n.sign.secretKeyLength,t.exports.HASH_BYTES_LENGTH=32,t.exports.SEED_BTYES_LENGTH=32},{"js-sha512":42,tweetnacl:91}],157:[function(e,t,r){(function(r){const o=e("./encoding/address"),a=e("./encoding/encoding"),n=e("./nacl/naclWrappers"),s=e("./utils/utils"),i=e("hi-base32"),l=1e3,d=32,p=19;class Transaction{constructor({from:e,to:t,fee:a,amount:n,firstRound:s,lastRound:i,note:u,genesisID:g,genesisHash:y,lease:h,closeRemainderTo:f,voteKey:m,selectionKey:A,voteFirst:x,voteLast:k,voteKeyDilution:S,assetIndex:w,assetTotal:v,assetDecimals:T,assetDefaultFrozen:E,assetManager:B,assetReserve:I,assetFreeze:P,assetClawback:U,assetUnitName:R,assetName:C,assetURL:D,assetMetadataHash:O,freezeAccount:L,freezeState:j,assetRevocationTarget:N,appIndex:z,appOnComplete:M,appLocalInts:F,appLocalByteSlices:q,appGlobalInts:G,appGlobalByteSlices:K,appApprovalProgram:H,appClearProgram:W,appArgs:V,appAccounts:Q,appForeignApps:Y,appForeignAssets:J,type:X="pay",flatFee:$=!1,suggestedParams:Z=void 0,reKeyTo:ee=void 0}){if(this.name="Transaction",this.tag=r.from("TX"),void 0!==Z&&(y=Z.genesisHash,a=Z.fee,void 0!==Z.flatFee&&($=Z.flatFee),s=Z.firstRound,i=Z.lastRound,g=Z.genesisID),e=o.decodeAddress(e),void 0!==t&&(t=o.decodeAddress(t)),void 0!==f&&(f=o.decodeAddress(f)),void 0!==B&&(B=o.decodeAddress(B)),void 0!==I&&(I=o.decodeAddress(I)),void 0!==P&&(P=o.decodeAddress(P)),void 0!==U&&(U=o.decodeAddress(U)),void 0!==N&&(N=o.decodeAddress(N)),void 0!==L&&(L=o.decodeAddress(L)),void 0!==ee&&(ee=o.decodeAddress(ee)),void 0===y)throw Error("genesis hash must be specified and in a base64 string.");if(y=r.from(y,"base64"),void 0!==n&&(!_NumberisSafeInteger(n)||0>n))throw Error("Amount must be a positive number and smaller than 2^53-1");if(!_NumberisSafeInteger(a)||0>a)throw Error("fee must be a positive number and smaller than 2^53-1");if(!_NumberisSafeInteger(s)||0>s)throw Error("firstRound must be a positive number");if(!_NumberisSafeInteger(i)||0>i)throw Error("lastRound must be a positive number");if(void 0!==v&&(!_NumberisSafeInteger(v)||0>v))throw Error("Total asset issuance must be a positive number and smaller than 2^53-1");if(void 0!==T&&(!_NumberisSafeInteger(T)||0>T||T>p))throw Error("assetDecimals must be a positive number and smaller than "+p.toString());if(void 0!==w&&(!_NumberisSafeInteger(w)||0>w))throw Error("Asset index must be a positive number and smaller than 2^53-1");if(void 0!==z&&(!_NumberisSafeInteger(z)||0>z))throw Error("Application index must be a positive number and smaller than 2^53-1");if(void 0!==F&&(!_NumberisSafeInteger(F)||0>F))throw Error("Application local ints count must be a positive number and smaller than 2^53-1");if(void 0!==q&&(!_NumberisSafeInteger(q)||0>q))throw Error("Application local byte slices count must be a positive number and smaller than 2^53-1");if(void 0!==G&&(!_NumberisSafeInteger(G)||0>G))throw Error("Application global ints count must be a positive number and smaller than 2^53-1");if(void 0!==K&&(!_NumberisSafeInteger(K)||0>K))throw Error("Application global byte slices count must be a positive number and smaller than 2^53-1");if(void 0!==H&&H.constructor!==Uint8Array)throw Error("appApprovalProgram must be a Uint8Array.");if(void 0!==W&&W.constructor!==Uint8Array)throw Error("appClearProgram must be a Uint8Array.");if(void 0!==V){if(!Array.isArray(V))throw Error("appArgs must be an Array of Uint8Array.");V.forEach(e=>{if(e.constructor!==Uint8Array)throw Error("each element of AppArgs must be a Uint8Array.")})}else V=new Uint8Array(0);if(void 0!==Q&&Q.forEach((e,t)=>{Q[t]=o.decodeAddress(e)}),void 0!==Y&&Y.forEach(e=>{if(!_NumberisSafeInteger(e)||0>e)throw Error("each foreign application index must be a positive number and smaller than 2^53-1")}),void 0!==J&&J.forEach(e=>{if(!_NumberisSafeInteger(e)||0>e)throw Error("each foreign asset index must be a positive number and smaller than 2^53-1")}),void 0===u)u=new Uint8Array(0);else if(u.constructor!==Uint8Array)throw Error("note must be a Uint8Array.");if(void 0!==h){if(h.constructor!==Uint8Array)throw Error("lease must be a Uint8Array.");if(h.length!==d)throw Error("lease must be of length "+d.toString()+".")}else h=new Uint8Array(0);void 0!==m&&(m=r.from(m,"base64")),void 0!==A&&(A=r.from(A,"base64")),Object.assign(this,{from:e,to:t,fee:a,amount:n,firstRound:s,lastRound:i,note:u,genesisID:g,genesisHash:y,lease:h,closeRemainderTo:f,voteKey:m,selectionKey:A,voteFirst:x,voteLast:k,voteKeyDilution:S,assetIndex:w,assetTotal:v,assetDecimals:T,assetDefaultFrozen:E,assetManager:B,assetReserve:I,assetFreeze:P,assetClawback:U,assetUnitName:R,assetName:C,assetURL:D,assetMetadataHash:O,freezeAccount:L,freezeState:j,assetRevocationTarget:N,appIndex:z,appOnComplete:M,appLocalInts:F,appLocalByteSlices:q,appGlobalInts:G,appGlobalByteSlices:K,appApprovalProgram:H,appClearProgram:W,appArgs:V,appAccounts:Q,appForeignApps:Y,appForeignAssets:J,type:X,reKeyTo:ee}),$||(this.fee*=this.estimateSize()),this.fee<l&&(this.fee=l),this.group=void 0}get_obj_for_encoding(){if("pay"==this.type){let e={amt:this.amount,fee:this.fee,fv:this.firstRound,lv:this.lastRound,note:r.from(this.note),snd:r.from(this.from.publicKey),type:"pay",gen:this.genesisID,gh:this.genesisHash,lx:r.from(this.lease),grp:this.group};return void 0!==this.closeRemainderTo&&o.encodeAddress(this.closeRemainderTo.publicKey)!==o.ALGORAND_ZERO_ADDRESS_STRING&&(e.close=r.from(this.closeRemainderTo.publicKey)),void 0!==this.reKeyTo&&(e.rekey=r.from(this.reKeyTo.publicKey)),void 0!==this.to&&(e.rcv=r.from(this.to.publicKey)),e.note.length||delete e.note,e.amt||delete e.amt,e.fee||delete e.fee,e.gen||delete e.gen,void 0===e.grp&&delete e.grp,e.lx.length||delete e.lx,e.rekey||delete e.rekey,e}if("keyreg"==this.type){let e={fee:this.fee,fv:this.firstRound,lv:this.lastRound,note:r.from(this.note),snd:r.from(this.from.publicKey),type:this.type,gen:this.genesisID,gh:this.genesisHash,lx:r.from(this.lease),grp:this.group,votekey:this.voteKey,selkey:this.selectionKey,votefst:this.voteFirst,votelst:this.voteLast,votekd:this.voteKeyDilution};return e.note.length||delete e.note,e.lx.length||delete e.lx,e.fee||delete e.fee,e.gen||delete e.gen,void 0===e.grp&&delete e.grp,void 0!==this.reKeyTo&&(e.rekey=r.from(this.reKeyTo.publicKey)),e}if("acfg"==this.type){let e={fee:this.fee,fv:this.firstRound,lv:this.lastRound,note:r.from(this.note),snd:r.from(this.from.publicKey),type:this.type,gen:this.genesisID,gh:this.genesisHash,lx:r.from(this.lease),grp:this.group,caid:this.assetIndex,apar:{t:this.assetTotal,df:this.assetDefaultFrozen,dc:this.assetDecimals}};return void 0!==this.assetManager&&(e.apar.m=r.from(this.assetManager.publicKey)),void 0!==this.assetReserve&&(e.apar.r=r.from(this.assetReserve.publicKey)),void 0!==this.assetFreeze&&(e.apar.f=r.from(this.assetFreeze.publicKey)),void 0!==this.assetClawback&&(e.apar.c=r.from(this.assetClawback.publicKey)),void 0!==this.assetName&&(e.apar.an=this.assetName),void 0!==this.assetUnitName&&(e.apar.un=this.assetUnitName),void 0!==this.assetURL&&(e.apar.au=this.assetURL),void 0!==this.assetMetadataHash&&(e.apar.am=r.from(this.assetMetadataHash)),e.note.length||delete e.note,e.lx.length||delete e.lx,e.amt||delete e.amt,e.fee||delete e.fee,e.gen||delete e.gen,void 0!==this.reKeyTo&&(e.rekey=r.from(this.reKeyTo.publicKey)),e.caid||delete e.caid,e.apar.t||e.apar.un||e.apar.an||e.apar.df||e.apar.m||e.apar.r||e.apar.f||e.apar.c||e.apar.au||e.apar.am||e.apar.dc?(!e.apar.t&&delete e.apar.t,!e.apar.dc&&delete e.apar.dc,!e.apar.un&&delete e.apar.un,!e.apar.an&&delete e.apar.an,!e.apar.df&&delete e.apar.df,!e.apar.m&&delete e.apar.m,!e.apar.r&&delete e.apar.r,!e.apar.f&&delete e.apar.f,!e.apar.c&&delete e.apar.c,!e.apar.au&&delete e.apar.au,!e.apar.am&&delete e.apar.am):delete e.apar,void 0===e.grp&&delete e.grp,e}if("axfer"==this.type){let e={aamt:this.amount,fee:this.fee,fv:this.firstRound,lv:this.lastRound,note:r.from(this.note),snd:r.from(this.from.publicKey),arcv:r.from(this.to.publicKey),type:this.type,gen:this.genesisID,gh:this.genesisHash,lx:r.from(this.lease),grp:this.group,xaid:this.assetIndex};return void 0!==this.closeRemainderTo&&(e.aclose=r.from(this.closeRemainderTo.publicKey)),void 0!==this.assetRevocationTarget&&(e.asnd=r.from(this.assetRevocationTarget.publicKey)),e.note.length||delete e.note,e.lx.length||delete e.lx,e.aamt||delete e.aamt,e.amt||delete e.amt,e.fee||delete e.fee,e.gen||delete e.gen,void 0===e.grp&&delete e.grp,e.aclose||delete e.aclose,e.asnd||delete e.asnd,e.rekey||delete e.rekey,void 0!==this.reKeyTo&&(e.rekey=r.from(this.reKeyTo.publicKey)),e}if("afrz"==this.type){let e={fee:this.fee,fv:this.firstRound,lv:this.lastRound,note:r.from(this.note),snd:r.from(this.from.publicKey),type:this.type,gen:this.genesisID,gh:this.genesisHash,lx:r.from(this.lease),grp:this.group,faid:this.assetIndex,afrz:this.freezeState};return void 0!==this.freezeAccount&&(e.fadd=r.from(this.freezeAccount.publicKey)),e.note.length||delete e.note,e.lx.length||delete e.lx,e.amt||delete e.amt,e.fee||delete e.fee,e.gen||delete e.gen,e.afrz||delete e.afrz,void 0===e.grp&&delete e.grp,void 0!==this.reKeyTo&&(e.rekey=r.from(this.reKeyTo.publicKey)),e}if("appl"==this.type){let e={fee:this.fee,fv:this.firstRound,lv:this.lastRound,note:r.from(this.note),snd:r.from(this.from.publicKey),type:this.type,gen:this.genesisID,gh:this.genesisHash,lx:r.from(this.lease),grp:this.group,apid:this.appIndex,apan:this.appOnComplete,apls:{nui:this.appLocalInts,nbs:this.appLocalByteSlices},apgs:{nui:this.appGlobalInts,nbs:this.appGlobalByteSlices},apfa:this.appForeignApps,apas:this.appForeignAssets};return void 0!==this.reKeyTo&&(e.rekey=r.from(this.reKeyTo.publicKey)),void 0!==this.appApprovalProgram&&(e.apap=r.from(this.appApprovalProgram)),void 0!==this.appClearProgram&&(e.apsu=r.from(this.appClearProgram)),void 0!==this.appArgs&&(e.apaa=[],this.appArgs.forEach(t=>{e.apaa.push(r.from(t))})),void 0!==this.appAccounts&&(e.apat=[],this.appAccounts.forEach(t=>{e.apat.push(r.from(t.publicKey))})),e.note.length||delete e.note,e.lx.length||delete e.lx,e.amt||delete e.amt,e.fee||delete e.fee,e.gen||delete e.gen,e.apid||delete e.apid,e.apls.nui||delete e.apls.nui,e.apls.nbs||delete e.apls.nbs,e.apls.nui||e.apls.nbs||delete e.apls,e.apgs.nui||delete e.apgs.nui,e.apgs.nbs||delete e.apgs.nbs,e.apaa&&e.apaa.length||delete e.apaa,e.apgs.nui||e.apgs.nbs||delete e.apgs,e.apap||delete e.apap,e.apsu||delete e.apsu,e.apan||delete e.apan,e.apfa||delete e.apfa,e.apas||delete e.apas,void 0===e.grp&&delete e.grp,e}}static from_obj_for_encoding(e){let t=Object.create(this.prototype);return t.name="Transaction",t.tag=r.from("TX"),t.genesisID=e.gen,t.genesisHash=r.from(e.gh),t.type=e.type,t.fee=e.fee,t.firstRound=e.fv,t.lastRound=e.lv,t.note=new Uint8Array(e.note),t.lease=new Uint8Array(e.lx),t.from=o.decodeAddress(o.encodeAddress(new Uint8Array(e.snd))),void 0!==e.grp&&(t.group=r.from(e.grp)),void 0!==e.rekey&&(t.reKeyTo=o.decodeAddress(o.encodeAddress(new Uint8Array(e.rekey)))),"pay"===e.type?(t.amount=e.amt,t.to=o.decodeAddress(o.encodeAddress(new Uint8Array(e.rcv))),void 0!==e.close&&(t.closeRemainderTo=o.decodeAddress(o.encodeAddress(e.close)))):"keyreg"===e.type?(t.voteKey=r.from(e.votekey),t.selectionKey=r.from(e.selkey),t.voteKeyDilution=e.votekd,t.voteFirst=e.votefst,t.voteLast=e.votelst):"acfg"===e.type?(void 0!==e.caid&&(t.assetIndex=e.caid),void 0!==e.apar&&(t.assetTotal=e.apar.t,t.assetDefaultFrozen=e.apar.df,void 0!==e.apar.dc&&(t.assetDecimals=e.apar.dc),void 0!==e.apar.m&&(t.assetManager=o.decodeAddress(o.encodeAddress(new Uint8Array(e.apar.m)))),void 0!==e.apar.r&&(t.assetReserve=o.decodeAddress(o.encodeAddress(new Uint8Array(e.apar.r)))),void 0!==e.apar.f&&(t.assetFreeze=o.decodeAddress(o.encodeAddress(new Uint8Array(e.apar.f)))),void 0!==e.apar.c&&(t.assetClawback=o.decodeAddress(o.encodeAddress(new Uint8Array(e.apar.c)))),void 0!==e.apar.un&&(t.assetUnitName=e.apar.un),void 0!==e.apar.an&&(t.assetName=e.apar.an),void 0!==e.apar.au&&(t.assetURL=e.apar.au),void 0!==e.apar.am&&(t.assetMetadataHash=e.apar.am))):"axfer"===e.type?(void 0!==e.xaid&&(t.assetIndex=e.xaid),void 0!==e.aamt&&(t.amount=e.aamt),void 0!==e.aclose&&(t.closeRemainderTo=o.decodeAddress(o.encodeAddress(new Uint8Array(e.aclose)))),void 0!==e.asnd&&(t.assetRevocationTarget=o.decodeAddress(o.encodeAddress(new Uint8Array(e.asnd)))),t.to=o.decodeAddress(o.encodeAddress(new Uint8Array(e.arcv)))):"afrz"===e.type?(void 0!==e.afrz&&(t.freezeState=e.afrz),void 0!==e.faid&&(t.assetIndex=e.faid),t.freezeAccount=o.decodeAddress(o.encodeAddress(new Uint8Array(e.fadd)))):"appl"===e.type&&(void 0!==e.apid&&(t.appIndex=e.apid),void 0!==e.apan&&(t.appOnComplete=e.apan),void 0!==e.apls&&(void 0!==e.apls.nui&&(t.appLocalInts=e.apls.nui),void 0!==e.apls.nbs&&(t.appLocalByteSlices=e.apls.nbs)),void 0!==e.apgs&&(void 0!==e.apgs.nui&&(t.appGlobalInts=e.apgs.nui),void 0!==e.apgs.nbs&&(t.appGlobalByteSlices=e.apgs.nbs)),void 0!==e.apap&&(t.appApprovalProgram=new Uint8Array(e.apap)),void 0!==e.apsu&&(t.appClearProgram=new Uint8Array(e.apsu)),void 0!==e.apaa&&(t.appArgs=[],e.apaa.forEach(e=>{t.appArgs.push(new Uint8Array(e))})),void 0!==e.apat&&(t.appAccounts=[],e.apat.forEach(e=>{t.appAccounts.push(o.decodeAddress(o.encodeAddress(new Uint8Array(e))))})),void 0!==e.apfa&&(t.appForeignApps=e.apfa),void 0!==e.apas&&(t.appForeignAssets=e.apas)),t}estimateSize(){return this.toByte().length+75}bytesToSign(){let e=this.toByte();return r.from(s.concatArrays(this.tag,e))}toByte(){return a.encode(this.get_obj_for_encoding())}rawSignTxn(e){const t=this.bytesToSign(),o=n.sign(t,e);return r.from(o)}signTxn(e){let t={sig:this.rawSignTxn(e),txn:this.get_obj_for_encoding()},s=n.keyPairFromSecretKey(e),i=s.publicKey;return o.encodeAddress(i)!=o.encodeAddress(this.from.publicKey)&&(t.sgnr=r.from(i)),new Uint8Array(a.encode(t))}rawTxID(){const e=this.toByte(),t=r.from(s.concatArrays(this.tag,e));return r.from(n.genericHash(t))}txID(){const e=this.rawTxID();return i.encode(e).slice(0,52)}addLease(e,t=0){if(e!==void 0){if(e.constructor!==Uint8Array)throw Error("lease must be a Uint8Array.");if(e.length!==d)throw Error("lease must be of length "+d.toString()+".")}else e=new Uint8Array(0);this.lease=e,0!==t&&(this.fee+=(5+d)*t)}addRekey(e,t=0){e!==void 0&&(this.reKeyTo=o.decodeAddress(e)),0!==t&&(this.fee+=(5+32)*t)}}t.exports={Transaction,ALGORAND_MIN_TX_FEE:l,encodeUnsignedTransaction:function(e){let t=e.get_obj_for_encoding();return a.encode(t)},decodeUnsignedTransaction:function(e){let t=a.decode(e);return Transaction.from_obj_for_encoding(t)},decodeSignedTransaction:function(e){let t=a.decode(e);return t.txn=Transaction.from_obj_for_encoding(t.txn),t}}}).call(this,e("buffer").Buffer)},{"./encoding/address":138,"./encoding/encoding":139,"./nacl/naclWrappers":156,"./utils/utils":158,buffer:13,"hi-base32":23}],158:[function(e,t,r){t.exports={arrayEqual:function(e,t){return!(e.length!==t.length)&&e.every((e,r)=>e===t[r])},concatArrays:function(e,t){let r=new Uint8Array(e.length+t.length);return r.set(e),r.set(t,e.length),r}}},{}]},{},[151])(151)});