-
Notifications
You must be signed in to change notification settings - Fork 1
/
blob-stream.min.js
112 lines (111 loc) · 52 KB
/
blob-stream.min.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
/*
The buffer module from node.js, for the browser.
@author Feross Aboukhadijeh <feross@feross.org> <http://feross.org>
@license MIT
*/
var $jscomp=$jscomp||{};$jscomp.scope={};$jscomp.ASSUME_ES5=!1;$jscomp.ASSUME_NO_NATIVE_MAP=!1;$jscomp.ASSUME_NO_NATIVE_SET=!1;$jscomp.SIMPLE_FROUND_POLYFILL=!1;$jscomp.defineProperty=$jscomp.ASSUME_ES5||"function"==typeof Object.defineProperties?Object.defineProperty:function(p,c,l){p!=Array.prototype&&p!=Object.prototype&&(p[c]=l.value)};$jscomp.getGlobal=function(p){return"undefined"!=typeof window&&window===p?p:"undefined"!=typeof global&&null!=global?global:p};$jscomp.global=$jscomp.getGlobal(this);
$jscomp.polyfill=function(p,c,l,h){if(c){l=$jscomp.global;p=p.split(".");for(h=0;h<p.length-1;h++){var a=p[h];a in l||(l[a]={});l=l[a]}p=p[p.length-1];h=l[p];c=c(h);c!=h&&null!=c&&$jscomp.defineProperty(l,p,{configurable:!0,writable:!0,value:c})}};$jscomp.polyfill("Array.prototype.fill",function(p){return p?p:function(c,l,h){var a=this.length||0;0>l&&(l=Math.max(0,a+l));if(null==h||h>a)h=a;h=Number(h);0>h&&(h=Math.max(0,a+h));for(l=Number(l||0);l<h;l++)this[l]=c;return this}},"es6","es3");
$jscomp.arrayIteratorImpl=function(p){var c=0;return function(){return c<p.length?{done:!1,value:p[c++]}:{done:!0}}};$jscomp.arrayIterator=function(p){return{next:$jscomp.arrayIteratorImpl(p)}};$jscomp.SYMBOL_PREFIX="jscomp_symbol_";$jscomp.initSymbol=function(){$jscomp.initSymbol=function(){};$jscomp.global.Symbol||($jscomp.global.Symbol=$jscomp.Symbol)};$jscomp.SymbolClass=function(p,c){this.$jscomp$symbol$id_=p;$jscomp.defineProperty(this,"description",{configurable:!0,writable:!0,value:c})};
$jscomp.SymbolClass.prototype.toString=function(){return this.$jscomp$symbol$id_};$jscomp.Symbol=function(){function p(l){if(this instanceof p)throw new TypeError("Symbol is not a constructor");return new $jscomp.SymbolClass($jscomp.SYMBOL_PREFIX+(l||"")+"_"+c++,l)}var c=0;return p}();
$jscomp.initSymbolIterator=function(){$jscomp.initSymbol();var p=$jscomp.global.Symbol.iterator;p||(p=$jscomp.global.Symbol.iterator=$jscomp.global.Symbol("Symbol.iterator"));"function"!=typeof Array.prototype[p]&&$jscomp.defineProperty(Array.prototype,p,{configurable:!0,writable:!0,value:function(){return $jscomp.iteratorPrototype($jscomp.arrayIteratorImpl(this))}});$jscomp.initSymbolIterator=function(){}};
$jscomp.initSymbolAsyncIterator=function(){$jscomp.initSymbol();var p=$jscomp.global.Symbol.asyncIterator;p||(p=$jscomp.global.Symbol.asyncIterator=$jscomp.global.Symbol("Symbol.asyncIterator"));$jscomp.initSymbolAsyncIterator=function(){}};$jscomp.iteratorPrototype=function(p){$jscomp.initSymbolIterator();p={next:p};p[$jscomp.global.Symbol.iterator]=function(){return this};return p};
$jscomp.iteratorFromArray=function(p,c){$jscomp.initSymbolIterator();p instanceof String&&(p+="");var l=0,h={next:function(){if(l<p.length){var a=l++;return{value:c(a,p[a]),done:!1}}h.next=function(){return{done:!0,value:void 0}};return h.next()}};h[Symbol.iterator]=function(){return h};return h};$jscomp.polyfill("Array.prototype.keys",function(p){return p?p:function(){return $jscomp.iteratorFromArray(this,function(c){return c})}},"es6","es3");
!function(p){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=p();else if("function"==typeof define&&define.amd)define([],p);else{var c;"undefined"!=typeof window?c=window:"undefined"!=typeof global?c=global:"undefined"!=typeof self&&(c=self);c.blobStream=p()}}(function(){return function a(c,l,h){function q(e,g){if(!l[e]){if(!c[e]){var n="function"==typeof require&&require;if(!g&&n)return n(e,!0);if(k)return k(e,!0);g=Error("Cannot find module '"+e+"'");throw g.code="MODULE_NOT_FOUND",
g;}g=l[e]={exports:{}};c[e][0].call(g.exports,function(a){var g=c[e][1][a];return q(g?g:a)},g,g.exports,a,c,l,h)}return l[e].exports}for(var k="function"==typeof require&&require,e=0;e<h.length;e++)q(h[e]);return q}({1:[function(c,l,h){(function(a){function c(a){for(var e=0;e<a.length;e++){var g=a[e];if(g.buffer instanceof ArrayBuffer){var k=g.buffer;if(g.byteLength!==k.byteLength){var n=new Uint8Array(g.byteLength);n.set(new Uint8Array(k,g.byteOffset,g.byteLength));k=n.buffer}a[e]=k}}}function k(a,
e){e=e||{};var g=new n;c(a);for(var k=0;k<a.length;k++)g.append(a[k]);return e.type?g.getBlob(e.type):g.getBlob()}function e(a,e){c(a);return new Blob(a,e||{})}var n=a.BlobBuilder||a.WebKitBlobBuilder||a.MSBlobBuilder||a.MozBlobBuilder;try{var g=2===(new Blob(["hi"])).size}catch(A){g=!1}var z;if(z=g)try{z=2===(new Blob([new Uint8Array([1,2])])).size}catch(A){z=!1}var h=n&&n.prototype.append&&n.prototype.getBlob;a=g?z?a.Blob:e:h?k:void 0;l.exports=a}).call(this,"undefined"!==typeof global?global:"undefined"!==
typeof self?self:"undefined"!==typeof window?window:{})},{}],2:[function(c,l,h){(function(a){function h(){if(!(this instanceof h))return new h;k.call(this);this._chunks=[];this._blob=null;this.length=0}var k=c("stream").Writable,e=c("util"),n=c("blob"),g=a.URL||a.webkitURL||a.mozURL;e.inherits(h,k);h.prototype._write=function(a,e,g){a instanceof Uint8Array||(a=new Uint8Array(a));this.length+=a.length;this._chunks.push(a);g()};h.prototype.toBlob=function(a){a=a||"application/octet-stream";this._blob||
(this._blob=new n(this._chunks,{type:a}),this._chunks=[]);this._blob.type!==a&&(this._blob=new n([this._blob],{type:a}));return this._blob};h.prototype.toBlobURL=function(a){return g.createObjectURL(this.toBlob(a))};l.exports=h}).call(this,"undefined"!==typeof global?global:"undefined"!==typeof self?self:"undefined"!==typeof window?window:{})},{blob:1,stream:22,util:25}],3:[function(c,l,h){function a(b,d,f){if(!(this instanceof a))return new a(b,d,f);var u=typeof b;if("number"===u)var e=0<b?b>>>0:
0;else if("string"===u){if("base64"===d)for(b=(b.trim?b.trim():b.replace(/^\s+|\s+$/g,"")).replace(E,"");0!==b.length%4;)b+="=";e=a.byteLength(b,d)}else if("object"===u&&null!==b)"Buffer"===b.type&&x(b.data)&&(b=b.data),e=0<+b.length?Math.floor(+b.length):0;else throw new TypeError("must start with number, buffer, array or string");if(this.length>w)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+w.toString(16)+" bytes");if(a.TYPED_ARRAY_SUPPORT)var g=a._augment(new Uint8Array(e));
else g=this,g.length=e,g._isBuffer=!0;if(a.TYPED_ARRAY_SUPPORT&&"number"===typeof b.byteLength)g._set(b);else{var k=b;if(x(k)||a.isBuffer(k)||k&&"object"===typeof k&&"number"===typeof k.length)if(a.isBuffer(b))for(d=0;d<e;d++)g[d]=b.readUInt8(d);else for(d=0;d<e;d++)g[d]=(b[d]%256+256)%256;else if("string"===u)g.write(b,0,d);else if("number"===u&&!a.TYPED_ARRAY_SUPPORT&&!f)for(d=0;d<e;d++)g[d]=0}return g}function q(b,d,f){var a="";for(f=Math.min(b.length,f);d<f;d++)a+=String.fromCharCode(b[d]);return a}
function k(b,d,f){if(0!==b%1||0>b)throw new RangeError("offset is not uint");if(b+d>f)throw new RangeError("Trying to access beyond buffer length");}function e(b,d,f,u,e,g){if(!a.isBuffer(b))throw new TypeError("buffer must be a Buffer instance");if(d>e||d<g)throw new TypeError("value is out of bounds");if(f+u>b.length)throw new TypeError("index out of range");}function n(b,d,f,a){0>d&&(d=65535+d+1);for(var u=0,e=Math.min(b.length-f,2);u<e;u++)b[f+u]=(d&255<<8*(a?u:1-u))>>>8*(a?u:1-u)}function g(b,
d,f,a){0>d&&(d=4294967295+d+1);for(var u=0,e=Math.min(b.length-f,4);u<e;u++)b[f+u]=d>>>8*(a?u:3-u)&255}function z(b,d,f,a,e,g){if(d>e||d<g)throw new TypeError("value is out of bounds");if(f+a>b.length)throw new TypeError("index out of range");}function F(b,d,f,a,e){e||z(b,d,f,4,3.4028234663852886E38,-3.4028234663852886E38);C.write(b,d,f,a,23,4);return f+4}function A(b,d,f,a,e){e||z(b,d,f,8,1.7976931348623157E308,-1.7976931348623157E308);C.write(b,d,f,a,52,8);return f+8}function t(b){for(var d=[],
f=0;f<b.length;f++){var a=b.charCodeAt(f);if(127>=a)d.push(a);else{var e=f;55296<=a&&57343>=a&&f++;a=encodeURIComponent(b.slice(e,f+1)).substr(1).split("%");for(e=0;e<a.length;e++)d.push(parseInt(a[e],16))}}return d}function r(b){for(var d=[],f=0;f<b.length;f++)d.push(b.charCodeAt(f)&255);return d}function v(b,d,f,a){for(var e=0;e<a&&!(e+f>=d.length||e>=b.length);e++)d[e+f]=b[e];return e}function B(b){try{return decodeURIComponent(b)}catch(d){return String.fromCharCode(65533)}}var y=c("base64-js"),
C=c("ieee754"),x=c("is-array");h.Buffer=a;h.SlowBuffer=a;h.INSPECT_MAX_BYTES=50;a.poolSize=8192;var w=1073741823;a.TYPED_ARRAY_SUPPORT=function(){try{var b=new ArrayBuffer(0),d=new Uint8Array(b);d.foo=function(){return 42};return 42===d.foo()&&"function"===typeof d.subarray&&0===(new Uint8Array(1)).subarray(1,1).byteLength}catch(f){return!1}}();a.isBuffer=function(b){return!(null==b||!b._isBuffer)};a.compare=function(b,d){if(!a.isBuffer(b)||!a.isBuffer(d))throw new TypeError("Arguments must be Buffers");
for(var f=b.length,e=d.length,g=0,k=Math.min(f,e);g<k&&b[g]===d[g];g++);g!==k&&(f=b[g],e=d[g]);return f<e?-1:e<f?1:0};a.isEncoding=function(b){switch(String(b).toLowerCase()){case "hex":case "utf8":case "utf-8":case "ascii":case "binary":case "base64":case "raw":case "ucs2":case "ucs-2":case "utf16le":case "utf-16le":return!0;default:return!1}};a.concat=function(b,d){if(!x(b))throw new TypeError("Usage: Buffer.concat(list[, length])");if(0===b.length)return new a(0);if(1===b.length)return b[0];var f;
if(void 0===d)for(f=d=0;f<b.length;f++)d+=b[f].length;d=new a(d);var e=0;for(f=0;f<b.length;f++){var g=b[f];g.copy(d,e);e+=g.length}return d};a.byteLength=function(b,d){b+="";switch(d||"utf8"){case "ascii":case "binary":case "raw":b=b.length;break;case "ucs2":case "ucs-2":case "utf16le":case "utf-16le":b=2*b.length;break;case "hex":b=b.length>>>1;break;case "utf8":case "utf-8":b=t(b).length;break;case "base64":b=y.toByteArray(b).length;break;default:b=b.length}return b};a.prototype.length=void 0;
a.prototype.parent=void 0;a.prototype.toString=function(b,d,f){var a=!1;d>>>=0;f=void 0===f||Infinity===f?this.length:f>>>0;b||(b="utf8");0>d&&(d=0);f>this.length&&(f=this.length);if(f<=d)return"";for(;;)switch(b){case "hex":b=d;d=f;f=this.length;if(!b||0>b)b=0;if(!d||0>d||d>f)d=f;a="";for(f=b;f<d;f++)b=a,a=this[f],a=16>a?"0"+a.toString(16):a.toString(16),a=b+a;return a;case "utf8":case "utf-8":a=b="";for(f=Math.min(this.length,f);d<f;d++)127>=this[d]?(b+=B(a)+String.fromCharCode(this[d]),a=""):a+=
"%"+this[d].toString(16);return b+B(a);case "ascii":return q(this,d,f);case "binary":return q(this,d,f);case "base64":return d=0===d&&f===this.length?y.fromByteArray(this):y.fromByteArray(this.slice(d,f)),d;case "ucs2":case "ucs-2":case "utf16le":case "utf-16le":d=this.slice(d,f);f="";for(b=0;b<d.length;b+=2)f+=String.fromCharCode(d[b]+256*d[b+1]);return f;default:if(a)throw new TypeError("Unknown encoding: "+b);b=(b+"").toLowerCase();a=!0}};a.prototype.equals=function(b){if(!a.isBuffer(b))throw new TypeError("Argument must be a Buffer");
return 0===a.compare(this,b)};a.prototype.inspect=function(){var b="",d=h.INSPECT_MAX_BYTES;0<this.length&&(b=this.toString("hex",0,d).match(/.{2}/g).join(" "),this.length>d&&(b+=" ... "));return"<Buffer "+b+">"};a.prototype.compare=function(b){if(!a.isBuffer(b))throw new TypeError("Argument must be a Buffer");return a.compare(this,b)};a.prototype.get=function(b){console.log(".get() is deprecated. Access using array indexes instead.");return this.readUInt8(b)};a.prototype.set=function(b,d){console.log(".set() is deprecated. Access using array indexes instead.");
return this.writeUInt8(b,d)};a.prototype.write=function(b,d,f,a){if(isFinite(d))isFinite(f)||(a=f,f=void 0);else{var e=a;a=d;d=f;f=e}d=Number(d)||0;e=this.length-d;f?(f=Number(f),f>e&&(f=e)):f=e;a=String(a||"utf8").toLowerCase();switch(a){case "hex":d=Number(d)||0;a=this.length-d;f?(f=Number(f),f>a&&(f=a)):f=a;a=b.length;if(0!==a%2)throw Error("Invalid hex string");f>a/2&&(f=a/2);for(a=0;a<f;a++){e=parseInt(b.substr(2*a,2),16);if(isNaN(e))throw Error("Invalid hex string");this[d+a]=e}b=a;break;case "utf8":case "utf-8":b=
v(t(b),this,d,f);break;case "ascii":b=v(r(b),this,d,f);break;case "binary":b=v(r(b),this,d,f);break;case "base64":b=v(y.toByteArray(b),this,d,f);break;case "ucs2":case "ucs-2":case "utf16le":case "utf-16le":e=[];for(var g=0;g<b.length;g++){var k=b.charCodeAt(g);a=k>>8;k%=256;e.push(k);e.push(a)}b=v(e,this,d,f);break;default:throw new TypeError("Unknown encoding: "+a);}return b};a.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};a.prototype.slice=
function(b,d){var f=this.length;b=~~b;d=void 0===d?f:~~d;0>b?(b+=f,0>b&&(b=0)):b>f&&(b=f);0>d?(d+=f,0>d&&(d=0)):d>f&&(d=f);d<b&&(d=b);if(a.TYPED_ARRAY_SUPPORT)return a._augment(this.subarray(b,d));d-=b;f=new a(d,void 0,!0);for(var e=0;e<d;e++)f[e]=this[e+b];return f};a.prototype.readUInt8=function(b,d){d||k(b,1,this.length);return this[b]};a.prototype.readUInt16LE=function(b,d){d||k(b,2,this.length);return this[b]|this[b+1]<<8};a.prototype.readUInt16BE=function(b,d){d||k(b,2,this.length);return this[b]<<
8|this[b+1]};a.prototype.readUInt32LE=function(b,d){d||k(b,4,this.length);return(this[b]|this[b+1]<<8|this[b+2]<<16)+16777216*this[b+3]};a.prototype.readUInt32BE=function(b,d){d||k(b,4,this.length);return 16777216*this[b]+(this[b+1]<<16|this[b+2]<<8|this[b+3])};a.prototype.readInt8=function(b,d){d||k(b,1,this.length);return this[b]&128?-1*(255-this[b]+1):this[b]};a.prototype.readInt16LE=function(b,d){d||k(b,2,this.length);b=this[b]|this[b+1]<<8;return b&32768?b|4294901760:b};a.prototype.readInt16BE=
function(b,d){d||k(b,2,this.length);b=this[b+1]|this[b]<<8;return b&32768?b|4294901760:b};a.prototype.readInt32LE=function(b,d){d||k(b,4,this.length);return this[b]|this[b+1]<<8|this[b+2]<<16|this[b+3]<<24};a.prototype.readInt32BE=function(b,d){d||k(b,4,this.length);return this[b]<<24|this[b+1]<<16|this[b+2]<<8|this[b+3]};a.prototype.readFloatLE=function(b,d){d||k(b,4,this.length);return C.read(this,b,!0,23,4)};a.prototype.readFloatBE=function(b,d){d||k(b,4,this.length);return C.read(this,b,!1,23,
4)};a.prototype.readDoubleLE=function(b,d){d||k(b,8,this.length);return C.read(this,b,!0,52,8)};a.prototype.readDoubleBE=function(b,d){d||k(b,8,this.length);return C.read(this,b,!1,52,8)};a.prototype.writeUInt8=function(b,d,f){b=+b;d>>>=0;f||e(this,b,d,1,255,0);a.TYPED_ARRAY_SUPPORT||(b=Math.floor(b));this[d]=b;return d+1};a.prototype.writeUInt16LE=function(b,d,f){b=+b;d>>>=0;f||e(this,b,d,2,65535,0);a.TYPED_ARRAY_SUPPORT?(this[d]=b,this[d+1]=b>>>8):n(this,b,d,!0);return d+2};a.prototype.writeUInt16BE=
function(b,d,f){b=+b;d>>>=0;f||e(this,b,d,2,65535,0);a.TYPED_ARRAY_SUPPORT?(this[d]=b>>>8,this[d+1]=b):n(this,b,d,!1);return d+2};a.prototype.writeUInt32LE=function(b,d,f){b=+b;d>>>=0;f||e(this,b,d,4,4294967295,0);a.TYPED_ARRAY_SUPPORT?(this[d+3]=b>>>24,this[d+2]=b>>>16,this[d+1]=b>>>8,this[d]=b):g(this,b,d,!0);return d+4};a.prototype.writeUInt32BE=function(b,d,f){b=+b;d>>>=0;f||e(this,b,d,4,4294967295,0);a.TYPED_ARRAY_SUPPORT?(this[d]=b>>>24,this[d+1]=b>>>16,this[d+2]=b>>>8,this[d+3]=b):g(this,b,
d,!1);return d+4};a.prototype.writeInt8=function(b,d,f){b=+b;d>>>=0;f||e(this,b,d,1,127,-128);a.TYPED_ARRAY_SUPPORT||(b=Math.floor(b));0>b&&(b=255+b+1);this[d]=b;return d+1};a.prototype.writeInt16LE=function(b,d,f){b=+b;d>>>=0;f||e(this,b,d,2,32767,-32768);a.TYPED_ARRAY_SUPPORT?(this[d]=b,this[d+1]=b>>>8):n(this,b,d,!0);return d+2};a.prototype.writeInt16BE=function(b,d,f){b=+b;d>>>=0;f||e(this,b,d,2,32767,-32768);a.TYPED_ARRAY_SUPPORT?(this[d]=b>>>8,this[d+1]=b):n(this,b,d,!1);return d+2};a.prototype.writeInt32LE=
function(b,d,f){b=+b;d>>>=0;f||e(this,b,d,4,2147483647,-2147483648);a.TYPED_ARRAY_SUPPORT?(this[d]=b,this[d+1]=b>>>8,this[d+2]=b>>>16,this[d+3]=b>>>24):g(this,b,d,!0);return d+4};a.prototype.writeInt32BE=function(b,d,f){b=+b;d>>>=0;f||e(this,b,d,4,2147483647,-2147483648);0>b&&(b=4294967295+b+1);a.TYPED_ARRAY_SUPPORT?(this[d]=b>>>24,this[d+1]=b>>>16,this[d+2]=b>>>8,this[d+3]=b):g(this,b,d,!1);return d+4};a.prototype.writeFloatLE=function(b,d,f){return F(this,b,d,!0,f)};a.prototype.writeFloatBE=function(b,
d,f){return F(this,b,d,!1,f)};a.prototype.writeDoubleLE=function(b,d,f){return A(this,b,d,!0,f)};a.prototype.writeDoubleBE=function(b,d,f){return A(this,b,d,!1,f)};a.prototype.copy=function(b,d,f,e){f||(f=0);e||0===e||(e=this.length);d||(d=0);if(e!==f&&0!==b.length&&0!==this.length){if(e<f)throw new TypeError("sourceEnd < sourceStart");if(0>d||d>=b.length)throw new TypeError("targetStart out of bounds");if(0>f||f>=this.length)throw new TypeError("sourceStart out of bounds");if(0>e||e>this.length)throw new TypeError("sourceEnd out of bounds");
e>this.length&&(e=this.length);b.length-d<e-f&&(e=b.length-d+f);e-=f;if(1E3>e||!a.TYPED_ARRAY_SUPPORT)for(var g=0;g<e;g++)b[g+d]=this[g+f];else b._set(this.subarray(f,f+e),d)}};a.prototype.fill=function(b,d,f){b||(b=0);d||(d=0);f||(f=this.length);if(f<d)throw new TypeError("end < start");if(f!==d&&0!==this.length){if(0>d||d>=this.length)throw new TypeError("start out of bounds");if(0>f||f>this.length)throw new TypeError("end out of bounds");if("number"===typeof b)for(;d<f;d++)this[d]=b;else{b=t(b.toString());
for(var a=b.length;d<f;d++)this[d]=b[d%a]}return this}};a.prototype.toArrayBuffer=function(){if("undefined"!==typeof Uint8Array){if(a.TYPED_ARRAY_SUPPORT)return(new a(this)).buffer;for(var b=new Uint8Array(this.length),d=0,f=b.length;d<f;d+=1)b[d]=this[d];return b.buffer}throw new TypeError("Buffer.toArrayBuffer not supported in this browser");};var m=a.prototype;a._augment=function(b){b.constructor=a;b._isBuffer=!0;b._get=b.get;b._set=b.set;b.get=m.get;b.set=m.set;b.write=m.write;b.toString=m.toString;
b.toLocaleString=m.toString;b.toJSON=m.toJSON;b.equals=m.equals;b.compare=m.compare;b.copy=m.copy;b.slice=m.slice;b.readUInt8=m.readUInt8;b.readUInt16LE=m.readUInt16LE;b.readUInt16BE=m.readUInt16BE;b.readUInt32LE=m.readUInt32LE;b.readUInt32BE=m.readUInt32BE;b.readInt8=m.readInt8;b.readInt16LE=m.readInt16LE;b.readInt16BE=m.readInt16BE;b.readInt32LE=m.readInt32LE;b.readInt32BE=m.readInt32BE;b.readFloatLE=m.readFloatLE;b.readFloatBE=m.readFloatBE;b.readDoubleLE=m.readDoubleLE;b.readDoubleBE=m.readDoubleBE;
b.writeUInt8=m.writeUInt8;b.writeUInt16LE=m.writeUInt16LE;b.writeUInt16BE=m.writeUInt16BE;b.writeUInt32LE=m.writeUInt32LE;b.writeUInt32BE=m.writeUInt32BE;b.writeInt8=m.writeInt8;b.writeInt16LE=m.writeInt16LE;b.writeInt16BE=m.writeInt16BE;b.writeInt32LE=m.writeInt32LE;b.writeInt32BE=m.writeInt32BE;b.writeFloatLE=m.writeFloatLE;b.writeFloatBE=m.writeFloatBE;b.writeDoubleLE=m.writeDoubleLE;b.writeDoubleBE=m.writeDoubleBE;b.fill=m.fill;b.inspect=m.inspect;b.toArrayBuffer=m.toArrayBuffer;return b};var E=
/[^+\/0-9A-z]/g},{"base64-js":4,ieee754:5,"is-array":6}],4:[function(c,l,h){(function(a){function c(a){a=a.charCodeAt(0);if(43===a)return 62;if(47===a)return 63;if(48>a)return-1;if(58>a)return a-48+52;if(91>a)return a-65;if(123>a)return a-97+26}var k="undefined"!==typeof Uint8Array?Uint8Array:Array;a.toByteArray=function(a){function e(a){q[t++]=a}if(0<a.length%4)throw Error("Invalid string. Length must be a multiple of 4");var g=a.length;var h="="===a.charAt(g-2)?2:"="===a.charAt(g-1)?1:0;var q=new k(3*
a.length/4-h);var l=0<h?a.length-4:a.length;var t=0;for(g=0;g<l;g+=4){var r=c(a.charAt(g))<<18|c(a.charAt(g+1))<<12|c(a.charAt(g+2))<<6|c(a.charAt(g+3));e((r&16711680)>>16);e((r&65280)>>8);e(r&255)}2===h?(r=c(a.charAt(g))<<2|c(a.charAt(g+1))>>4,e(r&255)):1===h&&(r=c(a.charAt(g))<<10|c(a.charAt(g+1))<<4|c(a.charAt(g+2))>>2,e(r>>8&255),e(r&255));return q};a.fromByteArray=function(a){var e=a.length%3,g="",k;var c=0;for(k=a.length-e;c<k;c+=3){var h=(a[c]<<16)+(a[c+1]<<8)+a[c+2];h="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(h>>
18&63)+"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(h>>12&63)+"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(h>>6&63)+"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(h&63);g+=h}switch(e){case 1:h=a[a.length-1];g+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(h>>2);g+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(h<<4&63);g+="==";break;case 2:h=(a[a.length-2]<<8)+
a[a.length-1],g+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(h>>10),g+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(h>>4&63),g+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(h<<2&63),g+="="}return g}})("undefined"===typeof h?this.base64js={}:h)},{}],5:[function(c,l,h){h.read=function(a,c,k,e,n){var g=8*n-e-1;var h=(1<<g)-1,q=h>>1,l=-7;n=k?n-1:0;var t=k?-1:1,r=a[c+n];n+=t;k=r&(1<<-l)-1;r>>=-l;for(l+=g;0<l;k=256*
k+a[c+n],n+=t,l-=8);g=k&(1<<-l)-1;k>>=-l;for(l+=e;0<l;g=256*g+a[c+n],n+=t,l-=8);if(0===k)k=1-q;else{if(k===h)return g?NaN:Infinity*(r?-1:1);g+=Math.pow(2,e);k-=q}return(r?-1:1)*g*Math.pow(2,k-e)};h.write=function(a,c,k,e,n,g){var h,l=8*g-n-1,q=(1<<l)-1,t=q>>1,r=23===n?Math.pow(2,-24)-Math.pow(2,-77):0;g=e?0:g-1;var v=e?1:-1,B=0>c||0===c&&0>1/c?1:0;c=Math.abs(c);isNaN(c)||Infinity===c?(c=isNaN(c)?1:0,e=q):(e=Math.floor(Math.log(c)/Math.LN2),1>c*(h=Math.pow(2,-e))&&(e--,h*=2),c=1<=e+t?c+r/h:c+r*Math.pow(2,
1-t),2<=c*h&&(e++,h/=2),e+t>=q?(c=0,e=q):1<=e+t?(c=(c*h-1)*Math.pow(2,n),e+=t):(c=c*Math.pow(2,t-1)*Math.pow(2,n),e=0));for(;8<=n;a[k+g]=c&255,g+=v,c/=256,n-=8);e=e<<n|c;for(l+=n;0<l;a[k+g]=e&255,g+=v,e/=256,l-=8);a[k+g-v]|=128*B}},{}],6:[function(c,l,h){var a=Object.prototype.toString;l.exports=Array.isArray||function(c){return!!c&&"[object Array]"==a.call(c)}},{}],7:[function(c,l,h){function a(){this._events=this._events||{};this._maxListeners=this._maxListeners||void 0}function q(a){return"function"===
typeof a}function k(a){return"object"===typeof a&&null!==a}l.exports=a;a.EventEmitter=a;a.prototype._events=void 0;a.prototype._maxListeners=void 0;a.defaultMaxListeners=10;a.prototype.setMaxListeners=function(a){if("number"!==typeof a||0>a||isNaN(a))throw TypeError("n must be a positive number");this._maxListeners=a;return this};a.prototype.emit=function(a){var e;this._events||(this._events={});if("error"===a&&(!this._events.error||k(this._events.error)&&!this._events.error.length)){var g=arguments[1];
if(g instanceof Error)throw g;throw TypeError('Uncaught, unspecified "error" event.');}var c=this._events[a];if(void 0===c)return!1;if(q(c))switch(arguments.length){case 1:c.call(this);break;case 2:c.call(this,arguments[1]);break;case 3:c.call(this,arguments[1],arguments[2]);break;default:g=arguments.length;var h=Array(g-1);for(e=1;e<g;e++)h[e-1]=arguments[e];c.apply(this,h)}else if(k(c)){g=arguments.length;h=Array(g-1);for(e=1;e<g;e++)h[e-1]=arguments[e];c=c.slice();g=c.length;for(e=0;e<g;e++)c[e].apply(this,
h)}return!0};a.prototype.addListener=function(e,c){if(!q(c))throw TypeError("listener must be a function");this._events||(this._events={});this._events.newListener&&this.emit("newListener",e,q(c.listener)?c.listener:c);this._events[e]?k(this._events[e])?this._events[e].push(c):this._events[e]=[this._events[e],c]:this._events[e]=c;k(this._events[e])&&!this._events[e].warned&&(c=void 0!==this._maxListeners?this._maxListeners:a.defaultMaxListeners)&&0<c&&this._events[e].length>c&&(this._events[e].warned=
!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[e].length),"function"===typeof console.trace&&console.trace());return this};a.prototype.on=a.prototype.addListener;a.prototype.once=function(a,c){function e(){this.removeListener(a,e);k||(k=!0,c.apply(this,arguments))}if(!q(c))throw TypeError("listener must be a function");var k=!1;e.listener=c;this.on(a,e);return this};a.prototype.removeListener=
function(a,c){if(!q(c))throw TypeError("listener must be a function");if(!this._events||!this._events[a])return this;var e=this._events[a];var h=e.length;var n=-1;if(e===c||q(e.listener)&&e.listener===c)delete this._events[a],this._events.removeListener&&this.emit("removeListener",a,c);else if(k(e)){for(;0<h--;)if(e[h]===c||e[h].listener&&e[h].listener===c){n=h;break}if(0>n)return this;1===e.length?(e.length=0,delete this._events[a]):e.splice(n,1);this._events.removeListener&&this.emit("removeListener",
a,c)}return this};a.prototype.removeAllListeners=function(a){if(!this._events)return this;if(!this._events.removeListener)return 0===arguments.length?this._events={}:this._events[a]&&delete this._events[a],this;if(0===arguments.length){for(e in this._events)"removeListener"!==e&&this.removeAllListeners(e);this.removeAllListeners("removeListener");this._events={};return this}var e=this._events[a];if(q(e))this.removeListener(a,e);else for(;e.length;)this.removeListener(a,e[e.length-1]);delete this._events[a];
return this};a.prototype.listeners=function(a){return this._events&&this._events[a]?q(this._events[a])?[this._events[a]]:this._events[a].slice():[]};a.listenerCount=function(a,c){return a._events&&a._events[c]?q(a._events[c])?1:a._events[c].length:0}},{}],8:[function(c,l,h){l.exports="function"===typeof Object.create?function(a,c){a.super_=c;a.prototype=Object.create(c.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}})}:function(a,c){a.super_=c;var k=function(){};k.prototype=
c.prototype;a.prototype=new k;a.prototype.constructor=a}},{}],9:[function(c,l,h){l.exports=Array.isArray||function(a){return"[object Array]"==Object.prototype.toString.call(a)}},{}],10:[function(c,l,h){function a(){}c=l.exports={};c.nextTick=function(){var a="undefined"!==typeof window&&window.postMessage&&window.addEventListener;if("undefined"!==typeof window&&window.setImmediate)return function(a){return window.setImmediate(a)};var c=[];if("undefined"!==typeof window&&window.MutationObserver){var e=
document.createElement("div");(new MutationObserver(function(){var a=c.slice();c.length=0;a.forEach(function(a){a()})})).observe(e,{attributes:!0});return function(a){c.length||e.setAttribute("yes","no");c.push(a)}}return a?(window.addEventListener("message",function(a){var e=a.source;e!==window&&null!==e||"process-tick"!==a.data||(a.stopPropagation(),0<c.length&&c.shift()())},!0),function(a){c.push(a);window.postMessage("process-tick","*")}):function(a){setTimeout(a,0)}}();c.title="browser";c.browser=
!0;c.env={};c.argv=[];c.on=a;c.addListener=a;c.once=a;c.off=a;c.removeListener=a;c.removeAllListeners=a;c.emit=a;c.binding=function(a){throw Error("process.binding is not supported");};c.cwd=function(){return"/"};c.chdir=function(a){throw Error("process.chdir is not supported");}},{}],11:[function(c,l,h){l.exports=c("./lib/_stream_duplex.js")},{"./lib/_stream_duplex.js":12}],12:[function(c,l,h){(function(a){function h(a){if(!(this instanceof h))return new h(a);g.call(this,a);z.call(this,a);a&&!1===
a.readable&&(this.readable=!1);a&&!1===a.writable&&(this.writable=!1);this.allowHalfOpen=!0;a&&!1===a.allowHalfOpen&&(this.allowHalfOpen=!1);this.once("end",k)}function k(){this.allowHalfOpen||this._writableState.ended||a.nextTick(this.end.bind(this))}l.exports=h;var e=Object.keys||function(a){var e=[],c;for(c in a)e.push(c);return e},n=c("core-util-is");n.inherits=c("inherits");var g=c("./_stream_readable"),z=c("./_stream_writable");n.inherits(h,g);(function(a,e){for(var c=0,g=a.length;c<g;c++)e(a[c],
c)})(e(z.prototype),function(a){h.prototype[a]||(h.prototype[a]=z.prototype[a])})}).call(this,c("_process"))},{"./_stream_readable":14,"./_stream_writable":16,_process:10,"core-util-is":17,inherits:8}],13:[function(c,l,h){function a(c){if(!(this instanceof a))return new a(c);q.call(this,c)}l.exports=a;var q=c("./_stream_transform");l=c("core-util-is");l.inherits=c("inherits");l.inherits(a,q);a.prototype._transform=function(a,c,h){h(null,a)}},{"./_stream_transform":15,"core-util-is":17,inherits:8}],
14:[function(c,l,h){(function(a){function h(d,a){d=d||{};this.highWaterMark=(a=d.highWaterMark)||0===a?a:16384;this.highWaterMark=~~this.highWaterMark;this.buffer=[];this.length=0;this.pipes=null;this.pipesCount=0;this.calledRead=this.reading=this.endEmitted=this.ended=this.flowing=!1;this.sync=!0;this.readableListening=this.emittedReadable=this.needReadable=!1;this.objectMode=!!d.objectMode;this.defaultEncoding=d.defaultEncoding||"utf8";this.ranOut=!1;this.awaitDrain=0;this.readingMore=!1;this.encoding=
this.decoder=null;d.encoding&&(b||(b=c("string_decoder/").StringDecoder),this.decoder=new b(d.encoding),this.encoding=d.encoding)}function k(d){if(!(this instanceof k))return new k(d);this._readableState=new h(d,this);this.readable=!0;m.call(this)}function e(d,a,b,c,e){var f=b;var h=null;x.isBuffer(f)||"string"===typeof f||null===f||void 0===f||a.objectMode||(h=new TypeError("Invalid non-string/buffer chunk"));(f=h)?d.emit("error",f):null===b||void 0===b?(a.reading=!1,a.ended||(a.decoder&&!a.ended&&
(b=a.decoder.end())&&b.length&&(a.buffer.push(b),a.length+=a.objectMode?1:b.length),a.ended=!0,0<a.length?g(d):B(d))):a.objectMode||b&&0<b.length?a.ended&&!e?(b=Error("stream.push() after EOF"),d.emit("error",b)):a.endEmitted&&e?(b=Error("stream.unshift() after end event"),d.emit("error",b)):(!a.decoder||e||c||(b=a.decoder.write(b)),a.length+=a.objectMode?1:b.length,e?a.buffer.unshift(b):(a.reading=!1,a.buffer.push(b)),a.needReadable&&g(d),z(d,a)):e||(a.reading=!1);return!a.ended&&(a.needReadable||
a.length<a.highWaterMark||0===a.length)}function n(a,b){if(0===b.length&&b.ended)return 0;if(b.objectMode)return 0===a?0:1;if(null===a||isNaN(a))return b.flowing&&b.buffer.length?b.buffer[0].length:b.length;if(0>=a)return 0;if(a>b.highWaterMark){var d=a;if(8388608<=d)d=8388608;else{d--;for(var f=1;32>f;f<<=1)d|=d>>f;d++}b.highWaterMark=d}if(a>b.length){if(b.ended)return b.length;b.needReadable=!0;return 0}return a}function g(b){var d=b._readableState;d.needReadable=!1;d.emittedReadable||(d.emittedReadable=
!0,d.sync?a.nextTick(function(){b.emit("readable")}):b.emit("readable"))}function z(b,f){f.readingMore||(f.readingMore=!0,a.nextTick(function(){for(var a=f.length;!f.reading&&!f.flowing&&!f.ended&&f.length<f.highWaterMark&&(b.read(0),a!==f.length);)a=f.length;f.readingMore=!1}))}function F(a){return function(){var b=a._readableState;b.awaitDrain--;0===b.awaitDrain&&A(a)}}function A(a){function b(a,b,f){!1===a.write(c)&&d.awaitDrain++}var d=a._readableState,c;for(d.awaitDrain=0;d.pipesCount&&null!==
(c=a.read());)if(1===d.pipesCount?b(d.pipes,0,null):y(d.pipes,b),a.emit("data",c),0<d.awaitDrain)return;0===d.pipesCount?(d.flowing=!1,0<w.listenerCount(a,"data")&&r(a)):d.ranOut=!0}function t(){this._readableState.ranOut&&(this._readableState.ranOut=!1,A(this))}function r(b,f){if(b._readableState.flowing)throw Error("Cannot switch to old mode now.");var d=f||!1,c=!1;b.readable=!0;b.pipe=m.prototype.pipe;b.on=b.addListener=m.prototype.on;b.on("readable",function(){c=!0;for(var a;!d&&null!==(a=b.read());)b.emit("data",
a);null===a&&(c=!1,b._readableState.needReadable=!0)});b.pause=function(){d=!0;this.emit("pause")};b.resume=function(){d=!1;c?a.nextTick(function(){b.emit("readable")}):this.read(0);this.emit("resume")};b.emit("readable")}function v(b,a){var d=a.buffer,f=a.length,c=!!a.decoder;a=!!a.objectMode;if(0===d.length)return null;if(0===f)f=null;else if(a)f=d.shift();else if(!b||b>=f)f=c?d.join(""):x.concat(d,f),d.length=0;else if(b<d[0].length)a=d[0],f=a.slice(0,b),d[0]=a.slice(b);else if(b===d[0].length)f=
d.shift();else{f=c?"":new x(b);for(var e=0,g=0,h=d.length;g<h&&e<b;g++){a=d[0];var k=Math.min(b-e,a.length);c?f+=a.slice(0,k):a.copy(f,e,0,k);k<a.length?d[0]=a.slice(k):d.shift();e+=k}}return f}function B(b){var d=b._readableState;if(0<d.length)throw Error("endReadable called on non-empty stream");!d.endEmitted&&d.calledRead&&(d.ended=!0,a.nextTick(function(){d.endEmitted||0!==d.length||(d.endEmitted=!0,b.readable=!1,b.emit("end"))}))}function y(a,b){for(var d=0,f=a.length;d<f;d++)b(a[d],d)}l.exports=
k;var C=c("isarray"),x=c("buffer").Buffer;k.ReadableState=h;var w=c("events").EventEmitter;w.listenerCount||(w.listenerCount=function(a,b){return a.listeners(b).length});var m=c("stream"),E=c("core-util-is");E.inherits=c("inherits");var b;E.inherits(k,m);k.prototype.push=function(a,b){var d=this._readableState;"string"!==typeof a||d.objectMode||(b=b||d.defaultEncoding,b!==d.encoding&&(a=new x(a,b),b=""));return e(this,d,a,b,!1)};k.prototype.unshift=function(a){return e(this,this._readableState,a,
"",!0)};k.prototype.setEncoding=function(a){b||(b=c("string_decoder/").StringDecoder);this._readableState.decoder=new b(a);this._readableState.encoding=a};k.prototype.read=function(a){var b=this._readableState;b.calledRead=!0;var d=a;if("number"!==typeof a||0<a)b.emittedReadable=!1;if(0===a&&b.needReadable&&(b.length>=b.highWaterMark||b.ended))return g(this),null;a=n(a,b);if(0===a&&b.ended)return d=null,0<b.length&&b.decoder&&(d=v(a,b),b.length-=d.length),0===b.length&&B(this),d;var c=b.needReadable;
b.length-a<=b.highWaterMark&&(c=!0);if(b.ended||b.reading)c=!1;c&&(b.reading=!0,b.sync=!0,0===b.length&&(b.needReadable=!0),this._read(b.highWaterMark),b.sync=!1);c&&!b.reading&&(a=n(d,b));d=0<a?v(a,b):null;null===d&&(b.needReadable=!0,a=0);b.length-=a;0!==b.length||b.ended||(b.needReadable=!0);b.ended&&!b.endEmitted&&0===b.length&&B(this);return d};k.prototype._read=function(b){this.emit("error",Error("not implemented"))};k.prototype.pipe=function(b,f){function d(b){b===D&&e()}function c(){b.end()}
function e(){b.removeListener("close",h);b.removeListener("finish",k);b.removeListener("drain",l);b.removeListener("error",g);b.removeListener("unpipe",d);D.removeListener("end",c);D.removeListener("end",e);b._writableState&&!b._writableState.needDrain||l()}function g(a){D.unpipe(b);b.removeListener("error",g);0===w.listenerCount(b,"error")&&b.emit("error",a)}function h(){b.removeListener("finish",k);D.unpipe(b)}function k(){b.removeListener("close",h);D.unpipe(b)}var D=this,m=this._readableState;
switch(m.pipesCount){case 0:m.pipes=b;break;case 1:m.pipes=[m.pipes,b];break;default:m.pipes.push(b)}m.pipesCount+=1;f=f&&!1===f.end||b===a.stdout||b===a.stderr?e:c;if(m.endEmitted)a.nextTick(f);else D.once("end",f);b.on("unpipe",d);var l=F(D);b.on("drain",l);if(b._events&&b._events.error)C(b._events.error)?b._events.error.unshift(g):b._events.error=[g,b._events.error];else b.on("error",g);b.once("close",h);b.once("finish",k);b.emit("pipe",D);m.flowing||(this.on("readable",t),m.flowing=!0,a.nextTick(function(){A(D)}));
return b};k.prototype.unpipe=function(b){var a=this._readableState;if(0===a.pipesCount)return this;if(1===a.pipesCount){if(b&&b!==a.pipes)return this;b||(b=a.pipes);a.pipes=null;a.pipesCount=0;this.removeListener("readable",t);a.flowing=!1;b&&b.emit("unpipe",this);return this}if(!b){b=a.pipes;var d=a.pipesCount;a.pipes=null;a.pipesCount=0;this.removeListener("readable",t);a.flowing=!1;for(var c=0;c<d;c++)b[c].emit("unpipe",this);return this}a:{c=a.pipes;d=0;for(var e=c.length;d<e;d++)if(c[d]===b){c=
d;break a}c=-1}if(-1===c)return this;a.pipes.splice(c,1);--a.pipesCount;1===a.pipesCount&&(a.pipes=a.pipes[0]);b.emit("unpipe",this);return this};k.prototype.on=function(b,a){a=m.prototype.on.call(this,b,a);"data"!==b||this._readableState.flowing||r(this);"readable"===b&&this.readable&&(b=this._readableState,b.readableListening||(b.readableListening=!0,b.emittedReadable=!1,b.needReadable=!0,b.reading?b.length&&g(this,b):this.read(0)));return a};k.prototype.addListener=k.prototype.on;k.prototype.resume=
function(){r(this);this.read(0);this.emit("resume")};k.prototype.pause=function(){r(this,!0);this.emit("pause")};k.prototype.wrap=function(b){var a=this._readableState,d=!1,c=this;b.on("end",function(){if(a.decoder&&!a.ended){var b=a.decoder.end();b&&b.length&&c.push(b)}c.push(null)});b.on("data",function(e){a.decoder&&(e=a.decoder.write(e));a.objectMode&&(null===e||void 0===e)||!(a.objectMode||e&&e.length)||c.push(e)||(d=!0,b.pause())});for(var e in b)"function"===typeof b[e]&&"undefined"===typeof this[e]&&
(this[e]=function(a){return function(){return b[a].apply(b,arguments)}}(e));y(["error","close","destroy","pause","resume"],function(a){b.on(a,c.emit.bind(c,a))});c._read=function(a){d&&(d=!1,b.resume())};return c};k._fromList=v}).call(this,c("_process"))},{_process:10,buffer:3,"core-util-is":17,events:7,inherits:8,isarray:9,stream:22,"string_decoder/":23}],15:[function(c,l,h){function a(a,c){this.afterTransform=function(a,e){var g=c._transformState;g.transforming=!1;var h=g.writecb;h?(g.writechunk=
null,g.writecb=null,null!==e&&void 0!==e&&c.push(e),h&&h(a),a=c._readableState,a.reading=!1,(a.needReadable||a.length<a.highWaterMark)&&c._read(a.highWaterMark),a=void 0):a=c.emit("error",Error("no writecb in Transform class"));return a};this.transforming=this.needTransform=!1;this.writechunk=this.writecb=null}function q(c){if(!(this instanceof q))return new q(c);e.call(this,c);this._transformState=new a(c,this);var g=this;this._readableState.needReadable=!0;this._readableState.sync=!1;this.once("finish",
function(){"function"===typeof this._flush?this._flush(function(a){k(g,a)}):k(g)})}function k(a,c){if(c)return a.emit("error",c);c=a._transformState;if(a._writableState.length)throw Error("calling transform done when ws.length != 0");if(c.transforming)throw Error("calling transform done when still transforming");return a.push(null)}l.exports=q;var e=c("./_stream_duplex");l=c("core-util-is");l.inherits=c("inherits");l.inherits(q,e);q.prototype.push=function(a,c){this._transformState.needTransform=
!1;return e.prototype.push.call(this,a,c)};q.prototype._transform=function(a,c,e){throw Error("not implemented");};q.prototype._write=function(a,c,e){var g=this._transformState;g.writecb=e;g.writechunk=a;g.writeencoding=c;g.transforming||(a=this._readableState,(g.needTransform||a.needReadable||a.length<a.highWaterMark)&&this._read(a.highWaterMark))};q.prototype._read=function(a){a=this._transformState;null!==a.writechunk&&a.writecb&&!a.transforming?(a.transforming=!0,this._transform(a.writechunk,
a.writeencoding,a.afterTransform)):a.needTransform=!0}},{"./_stream_duplex":12,"core-util-is":17,inherits:8}],16:[function(c,l,h){(function(a){function h(a,c,e){this.chunk=a;this.encoding=c;this.callback=e}function k(a,c){a=a||{};var e=a.highWaterMark;this.highWaterMark=e||0===e?e:16384;this.objectMode=!!a.objectMode;this.highWaterMark=~~this.highWaterMark;this.finished=this.ended=this.ending=this.needDrain=!1;this.decodeStrings=!1!==a.decodeStrings;this.defaultEncoding=a.defaultEncoding||"utf8";
this.length=0;this.writing=!1;this.sync=!0;this.bufferProcessing=!1;this.onwrite=function(b){t(c,b)};this.writecb=null;this.writelen=0;this.buffer=[];this.errorEmitted=!1}function e(a){var g=c("./_stream_duplex");if(!(this instanceof e||this instanceof g))return new e(a);this._writableState=new k(a,this);this.writable=!0;x.call(this)}function n(c,e,g){var b=Error("write after end");c.emit("error",b);a.nextTick(function(){g(b)})}function g(c,e,g,b){var d=!0;if(!y.isBuffer(g)&&"string"!==typeof g&&
null!==g&&void 0!==g&&!e.objectMode){var f=new TypeError("Invalid non-string/buffer chunk");c.emit("error",f);a.nextTick(function(){b(f)});d=!1}return d}function z(a,c,e,b,d){c.objectMode||!1===c.decodeStrings||"string"!==typeof e||(e=new y(e,b));y.isBuffer(e)&&(b="buffer");var f=c.objectMode?1:e.length;c.length+=f;var g=c.length<c.highWaterMark;g||(c.needDrain=!0);c.writing?c.buffer.push(new h(e,b,d)):(c.writelen=f,c.writecb=d,c.writing=!0,c.sync=!0,a._write(e,b,c.onwrite),c.sync=!1);return g}function F(c,
e,g,b,d){g?a.nextTick(function(){d(b)}):d(b);c._writableState.errorEmitted=!0;c.emit("error",b)}function A(a){a.writing=!1;a.writecb=null;a.length-=a.writelen;a.writelen=0}function t(c,e){var g=c._writableState,b=g.sync,d=g.writecb;A(g);if(e)F(c,g,b,e,d);else{var f=g.ending&&0===g.length&&!g.finished&&!g.writing;f||g.bufferProcessing||!g.buffer.length||v(c,g);b?a.nextTick(function(){r(c,g,f,d)}):r(c,g,f,d)}}function r(a,c,e,b){!e&&0===c.length&&c.needDrain&&(c.needDrain=!1,a.emit("drain"));b();e&&
B(a,c)}function v(a,c){c.bufferProcessing=!0;for(var e=0;e<c.buffer.length;e++){var b=c.buffer[e],d=b.chunk,f=a,g=c,h=d,k=b.encoding;b=b.callback;g.writelen=c.objectMode?1:d.length;g.writecb=b;g.writing=!0;g.sync=!0;f._write(h,k,g.onwrite);g.sync=!1;if(c.writing){e++;break}}c.bufferProcessing=!1;e<c.buffer.length?c.buffer=c.buffer.slice(e):c.buffer.length=0}function B(a,c){var e=c.ending&&0===c.length&&!c.finished&&!c.writing;e&&(c.finished=!0,a.emit("finish"));return e}l.exports=e;var y=c("buffer").Buffer;
e.WritableState=k;var C=c("core-util-is");C.inherits=c("inherits");var x=c("stream");C.inherits(e,x);e.prototype.pipe=function(){this.emit("error",Error("Cannot pipe. Not readable."))};e.prototype.write=function(a,c,e){var b=this._writableState,d=!1;"function"===typeof c&&(e=c,c=null);y.isBuffer(a)?c="buffer":c||(c=b.defaultEncoding);"function"!==typeof e&&(e=function(){});b.ended?n(this,b,e):g(this,b,a,e)&&(d=z(this,b,a,c,e));return d};e.prototype._write=function(a,c,e){e(Error("not implemented"))};
e.prototype.end=function(c,e,g){var b=this._writableState;"function"===typeof c?(g=c,e=c=null):"function"===typeof e&&(g=e,e=null);"undefined"!==typeof c&&null!==c&&this.write(c,e);if(!b.ending&&!b.finished){c=g;b.ending=!0;B(this,b);if(c)if(b.finished)a.nextTick(c);else this.once("finish",c);b.ended=!0}}}).call(this,c("_process"))},{"./_stream_duplex":12,_process:10,buffer:3,"core-util-is":17,inherits:8,stream:22}],17:[function(c,l,h){(function(a){function c(a){return"object"===typeof a&&null!==
a}h.isArray=function(a){return Array.isArray(a)};h.isBoolean=function(a){return"boolean"===typeof a};h.isNull=function(a){return null===a};h.isNullOrUndefined=function(a){return null==a};h.isNumber=function(a){return"number"===typeof a};h.isString=function(a){return"string"===typeof a};h.isSymbol=function(a){return"symbol"===typeof a};h.isUndefined=function(a){return void 0===a};h.isRegExp=function(a){return c(a)&&"[object RegExp]"===Object.prototype.toString.call(a)};h.isObject=c;h.isDate=function(a){return c(a)&&
"[object Date]"===Object.prototype.toString.call(a)};h.isError=function(a){return c(a)&&("[object Error]"===Object.prototype.toString.call(a)||a instanceof Error)};h.isFunction=function(a){return"function"===typeof a};h.isPrimitive=function(a){return null===a||"boolean"===typeof a||"number"===typeof a||"string"===typeof a||"symbol"===typeof a||"undefined"===typeof a};h.isBuffer=function(c){return a.isBuffer(c)}}).call(this,c("buffer").Buffer)},{buffer:3}],18:[function(c,l,h){l.exports=c("./lib/_stream_passthrough.js")},
{"./lib/_stream_passthrough.js":13}],19:[function(c,l,h){var a=c("stream");h=l.exports=c("./lib/_stream_readable.js");h.Stream=a;h.Readable=h;h.Writable=c("./lib/_stream_writable.js");h.Duplex=c("./lib/_stream_duplex.js");h.Transform=c("./lib/_stream_transform.js");h.PassThrough=c("./lib/_stream_passthrough.js")},{"./lib/_stream_duplex.js":12,"./lib/_stream_passthrough.js":13,"./lib/_stream_readable.js":14,"./lib/_stream_transform.js":15,"./lib/_stream_writable.js":16,stream:22}],20:[function(c,l,
h){l.exports=c("./lib/_stream_transform.js")},{"./lib/_stream_transform.js":15}],21:[function(c,l,h){l.exports=c("./lib/_stream_writable.js")},{"./lib/_stream_writable.js":16}],22:[function(c,l,h){function a(){q.call(this)}l.exports=a;var q=c("events").EventEmitter;c("inherits")(a,q);a.Readable=c("readable-stream/readable.js");a.Writable=c("readable-stream/writable.js");a.Duplex=c("readable-stream/duplex.js");a.Transform=c("readable-stream/transform.js");a.PassThrough=c("readable-stream/passthrough.js");
a.Stream=a;a.prototype.pipe=function(a,c){function e(c){a.writable&&!1===a.write(c)&&r.pause&&r.pause()}function g(){r.readable&&r.resume&&r.resume()}function h(){v||(v=!0,a.end())}function k(){v||(v=!0,"function"===typeof a.destroy&&a.destroy())}function l(a){t();if(0===q.listenerCount(this,"error"))throw a;}function t(){r.removeListener("data",e);a.removeListener("drain",g);r.removeListener("end",h);r.removeListener("close",k);r.removeListener("error",l);a.removeListener("error",l);r.removeListener("end",
t);r.removeListener("close",t);a.removeListener("close",t)}var r=this;r.on("data",e);a.on("drain",g);a._isStdio||c&&!1===c.end||(r.on("end",h),r.on("close",k));var v=!1;r.on("error",l);a.on("error",l);r.on("end",t);r.on("close",t);a.on("close",t);a.emit("pipe",r);return a}},{events:7,inherits:8,"readable-stream/duplex.js":11,"readable-stream/passthrough.js":18,"readable-stream/readable.js":19,"readable-stream/transform.js":20,"readable-stream/writable.js":21}],23:[function(c,l,h){function a(a){return a.toString(this.encoding)}
function q(a){this.charLength=(this.charReceived=a.length%2)?2:0}function k(a){this.charLength=(this.charReceived=a.length%3)?3:0}var e=c("buffer").Buffer,n=e.isEncoding||function(a){switch(a&&a.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}};c=h.StringDecoder=function(c){this.encoding=(c||"utf8").toLowerCase().replace(/[-_]/,"");if(c&&!n(c))throw Error("Unknown encoding: "+
c);switch(this.encoding){case "utf8":this.surrogateSize=3;break;case "ucs2":case "utf16le":this.surrogateSize=2;this.detectIncompleteChar=q;break;case "base64":this.surrogateSize=3;this.detectIncompleteChar=k;break;default:this.write=a;return}this.charBuffer=new e(6);this.charLength=this.charReceived=0};c.prototype.write=function(a){for(var c="";this.charLength;){c=a.length>=this.charLength-this.charReceived?this.charLength-this.charReceived:a.length;a.copy(this.charBuffer,this.charReceived,0,c);
this.charReceived+=c;if(this.charReceived<this.charLength)return"";a=a.slice(c,a.length);c=this.charBuffer.slice(0,this.charLength).toString(this.encoding);var e=c.charCodeAt(c.length-1);if(55296<=e&&56319>=e)this.charLength+=this.surrogateSize,c="";else{this.charReceived=this.charLength=0;if(0===a.length)return c;break}}this.detectIncompleteChar(a);var g=a.length;this.charLength&&(a.copy(this.charBuffer,0,a.length-this.charReceived,g),g-=this.charReceived);c+=a.toString(this.encoding,0,g);g=c.length-
1;e=c.charCodeAt(g);return 55296<=e&&56319>=e?(e=this.surrogateSize,this.charLength+=e,this.charReceived+=e,this.charBuffer.copy(this.charBuffer,e,0,e),a.copy(this.charBuffer,0,0,e),c.substring(0,g)):c};c.prototype.detectIncompleteChar=function(a){for(var c=3<=a.length?3:a.length;0<c;c--){var e=a[a.length-c];if(1==c&&6==e>>5){this.charLength=2;break}if(2>=c&&14==e>>4){this.charLength=3;break}if(3>=c&&30==e>>3){this.charLength=4;break}}this.charReceived=c};c.prototype.end=function(a){var c="";a&&a.length&&
(c=this.write(a));this.charReceived&&(a=this.encoding,c+=this.charBuffer.slice(0,this.charReceived).toString(a));return c}},{buffer:3}],24:[function(c,l,h){l.exports=function(a){return a&&"object"===typeof a&&"function"===typeof a.copy&&"function"===typeof a.fill&&"function"===typeof a.readUInt8}},{}],25:[function(c,l,h){(function(a,l){function k(a,b){var c={seen:[],stylize:n};3<=arguments.length&&(c.depth=arguments[2]);4<=arguments.length&&(c.colors=arguments[3]);y(b)?c.showHidden=b:b&&h._extend(c,
b);w(c.showHidden)&&(c.showHidden=!1);w(c.depth)&&(c.depth=2);w(c.colors)&&(c.colors=!1);w(c.customInspect)&&(c.customInspect=!0);c.colors&&(c.stylize=e);return q(c,a,c.depth)}function e(a,b){return(b=k.styles[b])?"\u001b["+k.colors[b][0]+"m"+a+"\u001b["+k.colors[b][1]+"m":a}function n(a,b){return a}function g(a){var b={};a.forEach(function(a,c){b[a]=!0});return b}function q(a,c,e){if(a.customInspect&&c&&f(c.inspect)&&c.inspect!==h.inspect&&(!c.constructor||c.constructor.prototype!==c)){var k=c.inspect(e,
a);x(k)||(k=q(a,k,e));return k}if(k=F(a,c))return k;var l=Object.keys(c),D=g(l);a.showHidden&&(l=Object.getOwnPropertyNames(c));if(d(c)&&(0<=l.indexOf("message")||0<=l.indexOf("description")))return A(c);if(0===l.length){if(f(c))return a.stylize("[Function"+(c.name?": "+c.name:"")+"]","special");if(m(c))return a.stylize(RegExp.prototype.toString.call(c),"regexp");if(b(c))return a.stylize(Date.prototype.toString.call(c),"date");if(d(c))return A(c)}k="";var n=!1,H=["{","}"];B(c)&&(n=!0,H=["[","]"]);
f(c)&&(k=" [Function"+(c.name?": "+c.name:"")+"]");m(c)&&(k=" "+RegExp.prototype.toString.call(c));b(c)&&(k=" "+Date.prototype.toUTCString.call(c));d(c)&&(k=" "+A(c));if(0===l.length&&(!n||0==c.length))return H[0]+k+H[1];if(0>e)return m(c)?a.stylize(RegExp.prototype.toString.call(c),"regexp"):a.stylize("[Object]","special");a.seen.push(c);l=n?t(a,c,e,D,l):l.map(function(b){return r(a,c,e,D,b,n)});a.seen.pop();return v(l,k,H)}function F(a,b){if(w(b))return a.stylize("undefined","undefined");if(x(b))return b=
"'"+JSON.stringify(b).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'",a.stylize(b,"string");if(C(b))return a.stylize(""+b,"number");if(y(b))return a.stylize(""+b,"boolean");if(null===b)return a.stylize("null","null")}function A(a){return"["+Error.prototype.toString.call(a)+"]"}function t(a,b,c,d,e){for(var f=[],g=0,h=b.length;g<h;++g)Object.prototype.hasOwnProperty.call(b,String(g))?f.push(r(a,b,c,d,String(g),!0)):f.push("");e.forEach(function(e){e.match(/^\d+$/)||f.push(r(a,b,c,
d,e,!0))});return f}function r(a,b,c,d,e,f){var g,h;b=Object.getOwnPropertyDescriptor(b,e)||{value:b[e]};b.get?h=b.set?a.stylize("[Getter/Setter]","special"):a.stylize("[Getter]","special"):b.set&&(h=a.stylize("[Setter]","special"));Object.prototype.hasOwnProperty.call(d,e)||(g="["+e+"]");h||(0>a.seen.indexOf(b.value)?(h=null===c?q(a,b.value,null):q(a,b.value,c-1),-1<h.indexOf("\n")&&(h=f?h.split("\n").map(function(a){return" "+a}).join("\n").substr(2):"\n"+h.split("\n").map(function(a){return" "+
a}).join("\n"))):h=a.stylize("[Circular]","special"));if(w(g)){if(f&&e.match(/^\d+$/))return h;g=JSON.stringify(""+e);g.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(g=g.substr(1,g.length-2),g=a.stylize(g,"name")):(g=g.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),g=a.stylize(g,"string"))}return g+": "+h}function v(a,b,c){var d=0;return 60<a.reduce(function(a,b){d++;0<=b.indexOf("\n")&&d++;return a+b.replace(/\u001b\[\d\d?m/g,"").length+1},0)?c[0]+(""===b?"":b+"\n ")+" "+a.join(",\n ")+
" "+c[1]:c[0]+b+" "+a.join(", ")+" "+c[1]}function B(a){return Array.isArray(a)}function y(a){return"boolean"===typeof a}function C(a){return"number"===typeof a}function x(a){return"string"===typeof a}function w(a){return void 0===a}function m(a){return E(a)&&"[object RegExp]"===Object.prototype.toString.call(a)}function E(a){return"object"===typeof a&&null!==a}function b(a){return E(a)&&"[object Date]"===Object.prototype.toString.call(a)}function d(a){return E(a)&&("[object Error]"===Object.prototype.toString.call(a)||
a instanceof Error)}function f(a){return"function"===typeof a}function u(a){return 10>a?"0"+a.toString(10):a.toString(10)}function J(){var a=new Date,b=[u(a.getHours()),u(a.getMinutes()),u(a.getSeconds())].join(":");return[a.getDate(),L[a.getMonth()],b].join(" ")}var K=/%[sdj%]/g;h.format=function(a){if(!x(a)){for(var b=[],c=0;c<arguments.length;c++)b.push(k(arguments[c]));return b.join(" ")}c=1;var d=arguments,e=d.length;b=String(a).replace(K,function(a){if("%%"===a)return"%";if(c>=e)return a;switch(a){case "%s":return String(d[c++]);
case "%d":return Number(d[c++]);case "%j":try{return JSON.stringify(d[c++])}catch(M){return"[Circular]"}default:return a}});for(var f=d[c];c<e;f=d[++c])b=null!==f&&E(f)?b+(" "+k(f)):b+(" "+f);return b};h.deprecate=function(b,c){if(w(l.process))return function(){return h.deprecate(b,c).apply(this,arguments)};if(!0===a.noDeprecation)return b;var d=!1;return function(){if(!d){if(a.throwDeprecation)throw Error(c);a.traceDeprecation?console.trace(c):console.error(c);d=!0}return b.apply(this,arguments)}};
var G={},I;h.debuglog=function(b){w(I)&&(I=a.env.NODE_DEBUG||"");b=b.toUpperCase();if(!G[b])if((new RegExp("\\b"+b+"\\b","i")).test(I)){var c=a.pid;G[b]=function(){var a=h.format.apply(h,arguments);console.error("%s %d: %s",b,c,a)}}else G[b]=function(){};return G[b]};h.inspect=k;k.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]};k.styles={special:"cyan",number:"yellow",
"boolean":"yellow",undefined:"grey","null":"bold",string:"green",date:"magenta",regexp:"red"};h.isArray=B;h.isBoolean=y;h.isNull=function(a){return null===a};h.isNullOrUndefined=function(a){return null==a};h.isNumber=C;h.isString=x;h.isSymbol=function(a){return"symbol"===typeof a};h.isUndefined=w;h.isRegExp=m;h.isObject=E;h.isDate=b;h.isError=d;h.isFunction=f;h.isPrimitive=function(a){return null===a||"boolean"===typeof a||"number"===typeof a||"string"===typeof a||"symbol"===typeof a||"undefined"===
typeof a};h.isBuffer=c("./support/isBuffer");var L="Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec".split(" ");h.log=function(){console.log("%s - %s",J(),h.format.apply(h,arguments))};h.inherits=c("inherits");h._extend=function(a,b){if(!b||!E(b))return a;for(var c=Object.keys(b),d=c.length;d--;)a[c[d]]=b[c[d]];return a}}).call(this,c("_process"),"undefined"!==typeof global?global:"undefined"!==typeof self?self:"undefined"!==typeof window?window:{})},{"./support/isBuffer":24,_process:10,inherits:8}]},
{},[2])(2)});