text: !function(a){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=a();else if("function"==typeof define&&define.amd)define([],a);else{var b;b="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this,b.pngCipher=a()}}(function(){return function a(b,c,d){function e(g,h){if(!c[g]){if(!b[g]){var i="function"==typeof require&&require;if(!h&&i)return i(g,!0);if(f)return f(g,!0);var j=new Error("Cannot find module '"+g+"'");throw j.code="MODULE_NOT_FOUND",j}var k=c[g]={exports:{}};b[g][0].call(k.exports,function(a){var c=b[g][1][a];return e(c?c:a)},k,k.exports,a,b,c,d)}return c[g].exports}for(var f="function"==typeof require&&require,g=0;g<d.length;g++)e(d[g]);return e}({1:[function(a,b,c){function f(a){for(var b="",c=new Uint8Array(a),d=c.byteLength,e=0;e<d;e++)b+=String.fromCharCode(c[e]);return window.btoa(b)}function g(a){for(var b=[],c=window.atob(a),d=c.split(""),e=0;e<d.length;e++)b.push(d[e].charCodeAt());return b}function h(a){for(var b=[],c=a.length,d=Math.ceil(Math.sqrt(c/3)),e=d,f=0,g=0;g<e;g++)for(var h=0;h<d;h++){var i=d*g+h<<2,j=f<a.length?a[f++]:"",k=f<a.length?a[f++]:"",l=f<a.length?a[f++]:"";if(j||k||l){var m=0,n=0,o=0;m=j?j.charCodeAt():0,n=k?k.charCodeAt():0,o=l?l.charCodeAt():0,b[i]=m,b[i+1]=n,b[i+2]=o,b[i+3]=255}else b[i]=0,b[i+1]=0,b[i+2]=0,b[i+3]=255}return b}function i(a){for(var b="",c=0;c<a.length;c++)c<a.length&&Number(a[c])&&255!==Number(a[c])&&(b+=String.fromCharCode(a[c++])),c<a.length&&Number(a[c])&&255!==Number(a[c])&&(b+=String.fromCharCode(a[c++])),c<a.length&&Number(a[c])&&255!==Number(a[c])&&(b+=String.fromCharCode(a[c++]));return b}var d=a("pngjs").PNG,e={};e.encode=function(a,b){var c=a.length,e=Math.ceil(Math.sqrt(c/3)),g=e,i=new d({width:e,height:g}),j=[];i.data=h(a),i.pack().on("data",function(a){for(var b=0;b<a.length;b++)j.push(a[b])}).on("end",function(){b(f(j))})},e.decode=function(a,b,c){var e=new d;e.parse(g(a),function(a,d){a?b(a):c(i(d.data))})},b.exports=e},{pngjs:21}],2:[function(a,b,c){(function(b){"use strict";function f(a,b){function e(){if(d===a.length)throw new Error("Ran out of data");var e=a[d];d++;var f,g,h,i,j,k,l,m;switch(b){default:throw new Error("unrecognised depth");case 16:l=a[d],d++,c.push((e<<8)+l);break;case 4:l=15&e,m=e>>4,c.push(m,l);break;case 2:j=3&e,k=e>>2&3,l=e>>4&3,m=e>>6&3,c.push(m,l,k,j);break;case 1:f=1&e,g=e>>1&1,h=e>>2&1,i=e>>3&1,j=e>>4&1,k=e>>5&1,l=e>>6&1,m=e>>7&1,c.push(m,l,k,j,i,h,g,f)}}var c=[],d=0;return{get:function(a){for(;c.length<a;)e();var b=c.slice(0,a);return c=c.slice(a),b},resetAfterLine:function(){c.length=0},end:function(){if(d!==a.length)throw new Error("extra data found")}}}function g(a,b,c,d,f,g){for(var h=a.width,i=a.height,j=a.index,k=0;k<i;k++)for(var l=0;l<h;l++){for(var m=c(l,k,j),n=0;n<4;n++){var o=e[d][n];if(n===f.length)throw new Error("Ran out of data");b[m+n]=255!==o?f[o+g]:255}g+=d}return g}function h(a,b,c,d,f,g){for(var h=a.width,i=a.height,j=a.index,k=0;k<i;k++){for(var l=0;l<h;l++)for(var m=f.get(d),n=c(l,k,j),o=0;o<4;o++){var p=e[d][o];b[n+o]=255!==p?m[p]:g}f.resetAfterLine()}}var d=a("./interlace"),e={1:{0:0,1:0,2:0,3:255},2:{0:0,1:0,2:0,3:1},3:{0:0,1:1,2:2,3:255},4:{0:0,1:1,2:2,3:3}};c.dataToBitMap=function(a,c){var e=c.width,i=c.height,j=c.depth,k=c.bpp,l=c.interlace;if(8!==j)var m=f(a,j);var n;n=j<=8?new b(e*i*4):new Uint16Array(e*i*4);var q,r,o=Math.pow(2,j)-1,p=0;if(l)q=d.getImagePasses(e,i),r=d.getInterlaceIterator(e,i);else{var s=0;r=function(){var a=s;return s+=4,a},q=[{width:e,height:i}]}for(var t=0;t<q.length;t++)8===j?p=g(q[t],n,r,k,a,p):h(q[t],n,r,k,m,o);if(8===j){if(p!==a.length)throw new Error("extra data found")}else m.end();return n}}).call(this,a("buffer").Buffer)},{"./interlace":12,buffer:38}],3:[function(a,b,c){(function(c){"use strict";var d=a("./constants");b.exports=function(a,b,e,f){var g=f.colorType===d.COLORTYPE_COLOR_ALPHA;if(f.inputHasAlpha&&g)return a;if(!f.inputHasAlpha&&!g)return a;var h=g?4:3,i=new c(b*e*h),j=f.inputHasAlpha?4:3,k=0,l=0,m=f.bgColor||{};void 0===m.red&&(m.red=255),void 0===m.green&&(m.green=255),void 0===m.blue&&(m.blue=255);for(var n=0;n<e;n++)for(var o=0;o<b;o++){var s,p=a[k],q=a[k+1],r=a[k+2];f.inputHasAlpha?(s=a[k+3],g||(s/=255,p=Math.min(Math.max(Math.round((1-s)*m.red+s*p),0),255),q=Math.min(Math.max(Math.round((1-s)*m.green+s*q),0),255),r=Math.min(Math.max(Math.round((1-s)*m.blue+s*r),0),255))):s=255,i[l]=p,i[l+1]=q,i[l+2]=r,g&&(i[l+3]=s),k+=j,l+=h}return i}}).call(this,a("buffer").Buffer)},{"./constants":5,buffer:38}],4:[function(a,b,c){(function(c,d){"use strict";var e=a("util"),f=a("stream"),g=b.exports=function(){f.call(this),this._buffers=[],this._buffered=0,this._reads=[],this._paused=!1,this._encoding="utf8",this.writable=!0};e.inherits(g,f),g.prototype.read=function(a,b){this._reads.push({length:Math.abs(a),allowLess:a<0,func:b}),c.nextTick(function(){this._process(),this._paused&&this._reads.length>0&&(this._paused=!1,this.emit("drain"))}.bind(this))},g.prototype.write=function(a,b){if(!this.writable)return this.emit("error",new Error("Stream not writable")),!1;var c;return c=d.isBuffer(a)?a:new d(a,b||this._encoding),this._buffers.push(c),this._buffered+=c.length,this._process(),this._reads&&0===this._reads.length&&(this._paused=!0),this.writable&&!this._paused},g.prototype.end=function(a,b){a&&this.write(a,b),this.writable=!1,this._buffers&&(0===this._buffers.length?this._end():(this._buffers.push(null),this._process()))},g.prototype.destroySoon=g.prototype.end,g.prototype._end=function(){this._reads.length>0&&this.emit("error",new Error("There are some read requests waiting on finished stream")),this.destroy()},g.prototype.destroy=function(){this._buffers&&(this.writable=!1,this._reads=null,this._buffers=null,this.emit("close"))},g.prototype._processReadAllowingLess=function(a){this._reads.shift();var b=this._buffers[0];b.length>a.length?(this._buffered-=a.length,this._buffers[0]=b.slice(a.length),a.func.call(this,b.slice(0,a.length))):(this._buffered-=b.length,this._buffers.shift(),a.func.call(this,b))},g.prototype._processRead=function(a){this._reads.shift();for(var b=0,c=0,e=new d(a.length);b<a.length;){var f=this._buffers[c++],g=Math.min(f.length,a.length-b);f.copy(e,b,0,g),b+=g,g!==f.length&&(this._buffers[--c]=f.slice(g))}c>0&&this._buffers.splice(0,c),this._buffered-=a.length,a.func.call(this,e)},g.prototype._process=function(){try{for(;this._buffered>0&&this._reads&&this._reads.length>0;){var a=this._reads[0];if(a.allowLess)this._processReadAllowingLess(a);else{if(!(this._buffered>=a.length))break;this._processRead(a)}}this._buffers&&this._buffers.length>0&&null===this._buffers[0]&&this._end()}catch(a){this.emit("error",a)}}}).call(this,a("_process"),a("buffer").Buffer)},{_process:45,buffer:38,stream:61,util:64}],5:[function(a,b,c){"use strict";b.exports={PNG_SIGNATURE:[137,80,78,71,13,10,26,10],TYPE_IHDR:1229472850,TYPE_IEND:1229278788,TYPE_IDAT:1229209940,TYPE_PLTE:1347179589,TYPE_tRNS:1951551059,TYPE_gAMA:1732332865,COLORTYPE_GRAYSCALE:0,COLORTYPE_PALETTE:1,COLORTYPE_COLOR:2,COLORTYPE_ALPHA:4,COLORTYPE_PALETTE_COLOR:3,COLORTYPE_COLOR_ALPHA:6,COLORTYPE_TO_BPP_MAP:{0:1,2:3,3:1,4:2,6:4},GAMMA_DIVISION:1e5}},{}],6:[function(a,b,c){"use strict";var d=[];!function(){for(var a=0;a<256;a++){for(var b=a,c=0;c<8;c++)1&b?b=3988292384^b>>>1:b>>>=1;d[a]=b}}();var e=b.exports=function(){this._crc=-1};e.prototype.write=function(a){for(var b=0;b<a.length;b++)this._crc=d[255&(this._crc^a[b])]^this._crc>>>8;return!0},e.prototype.crc32=function(){return this._crc^-1},e.crc32=function(a){for(var b=-1,c=0;c<a.length;c++)b=d[255&(b^a[c])]^b>>>8;return b^-1}},{}],7:[function(a,b,c){(function(c){"use strict";function e(a,b,c,d,e){a.copy(d,e,b,b+c)}function f(a,b,c){for(var d=0,e=b+c,f=b;f<e;f++)d+=Math.abs(a[f]);return d}function g(a,b,c,d,e,f){for(var g=0;g<c;g++){var h=g>=f?a[b+g-f]:0,i=a[b+g]-h;d[e+g]=i}}function h(a,b,c,d){for(var e=0,f=0;f<c;f++){var g=f>=d?a[b+f-d]:0,h=a[b+f]-g;e+=Math.abs(h)}return e}function i(a,b,c,d,e){for(var f=0;f<c;f++){var g=b>0?a[b+f-c]:0,h=a[b+f]-g;d[e+f]=h}}function j(a,b,c){for(var d=0,e=b+c,f=b;f<e;f++){var g=b>0?a[f-c]:0,h=a[f]-g;d+=Math.abs(h)}return d}function k(a,b,c,d,e,f){for(var g=0;g<c;g++){var h=g>=f?a[b+g-f]:0,i=b>0?a[b+g-c]:0,j=a[b+g]-(h+i>>1);d[e+g]=j}}function l(a,b,c,d){for(var e=0,f=0;f<c;f++){var g=f>=d?a[b+f-d]:0,h=b>0?a[b+f-c]:0,i=a[b+f]-(g+h>>1);e+=Math.abs(i)}return e}function m(a,b,c,e,f,g){for(var h=0;h<c;h++){var i=h>=g?a[b+h-g]:0,j=b>0?a[b+h-c]:0,k=b>0&&h>=g?a[b+h-(c+g)]:0,l=a[b+h]-d(i,j,k);e[f+h]=l}}function n(a,b,c,e){for(var f=0,g=0;g<c;g++){var h=g>=e?a[b+g-e]:0,i=b>0?a[b+g-c]:0,j=b>0&&g>=e?a[b+g-(c+e)]:0,k=a[b+g]-d(h,i,j);f+=Math.abs(k)}return f}var d=a("./paeth-predictor"),o={0:e,1:g,2:i,3:k,4:m},p={0:f,1:h,2:j,3:l,4:n};b.exports=function(a,b,d,e,f){var g;if("filterType"in e&&e.filterType!==-1){if("number"!=typeof e.filterType)throw new Error("unrecognised filter types");g=[e.filterType]}else g=[0,1,2,3,4];for(var h=b*f,i=0,j=0,k=new c((h+1)*d),l=g[0],m=0;m<d;m++){if(g.length>1)for(var n=1/0,q=0;q<g.length;q++){var r=p[g[q]](a,j,h,f);r<n&&(l=g[q],n=r)}k[i]=l,i++,o[l](a,j,h,k,i,f),i+=h,j+=h}return k}}).call(this,a("buffer").Buffer)},{"./paeth-predictor":16,buffer:38}],8:[function(a,b,c){(function(c){"use strict";var d=a("util"),e=a("./chunkstream"),f=a("./filter-parse"),g=b.exports=function(a){e.call(this);var b=[],d=this;this._filter=new f(a,{read:this.read.bind(this),write:function(a){b.push(a)},complete:function(){d.emit("complete",c.concat(b))}}),this._filter.start()};d.inherits(g,e)}).call(this,a("buffer").Buffer)},{"./chunkstream":4,"./filter-parse":10,buffer:38,util:64}],9:[function(a,b,c){(function(b){"use strict";var d=a("./sync-reader"),e=a("./filter-parse");c.process=function(a,c){var f=[],g=new d(a),h=new e(c,{read:g.read.bind(g),write:function(a){f.push(a)},complete:function(){}});return h.start(),g.process(),b.concat(f)}}).call(this,a("buffer").Buffer)},{"./filter-parse":10,"./sync-reader":22,buffer:38}],10:[function(a,b,c){(function(c){"use strict";function f(a,b,c){var d=a*b;return 8!==c&&(d=Math.ceil(d/(8/c))),d}var d=a("./interlace"),e=a("./paeth-predictor"),g=b.exports=function(a,b){var c=a.width,e=a.height,g=a.interlace,h=a.bpp,i=a.depth;if(this.read=b.read,this.write=b.write,this.complete=b.complete,this._imageIndex=0,this._images=[],g)for(var j=d.getImagePasses(c,e),k=0;k<j.length;k++)this._images.push({byteWidth:f(j[k].width,h,i),height:j[k].height,lineIndex:0});else this._images.push({byteWidth:f(c,h,i),height:e,lineIndex:0});8===i?this._xComparison=h:16===i?this._xComparison=2*h:this._xComparison=1};g.prototype.start=function(){this.read(this._images[this._imageIndex].byteWidth+1,this._reverseFilterLine.bind(this))},g.prototype._unFilterType1=function(a,b,c){for(var d=this._xComparison,e=d-1,f=0;f<c;f++){var g=a[1+f],h=f>e?b[f-d]:0;b[f]=g+h}},g.prototype._unFilterType2=function(a,b,c){for(var d=this._lastLine,e=0;e<c;e++){var f=a[1+e],g=d?d[e]:0;b[e]=f+g}},g.prototype._unFilterType3=function(a,b,c){for(var d=this._xComparison,e=d-1,f=this._lastLine,g=0;g<c;g++){var h=a[1+g],i=f?f[g]:0,j=g>e?b[g-d]:0,k=Math.floor((j+i)/2);b[g]=h+k}},g.prototype._unFilterType4=function(a,b,c){for(var d=this._xComparison,f=d-1,g=this._lastLine,h=0;h<c;h++){var i=a[1+h],j=g?g[h]:0,k=h>f?b[h-d]:0,l=h>f&&g?g[h-d]:0,m=e(k,j,l);b[h]=i+m}},g.prototype._reverseFilterLine=function(a){var d,b=a[0],e=this._images[this._imageIndex],f=e.byteWidth;if(0===b)d=a.slice(1,f+1);else switch(d=new c(f),b){case 1:this._unFilterType1(a,d,f);break;case 2:this._unFilterType2(a,d,f);break;case 3:this._unFilterType3(a,d,f);break;case 4:this._unFilterType4(a,d,f);break;default:throw new Error("Unrecognised filter type - "+b)}this.write(d),e.lineIndex++,e.lineIndex>=e.height?(this._lastLine=null,this._imageIndex++,e=this._images[this._imageIndex]):this._lastLine=d,e?this.read(e.byteWidth+1,this._reverseFilterLine.bind(this)):(this._lastLine=null,this.complete())}}).call(this,a("buffer").Buffer)},{"./interlace":12,"./paeth-predictor":16,buffer:38}],11:[function(a,b,c){(function(a){"use strict";function c(a,b,c,d,e){for(var f=0,g=0;g<d;g++)for(var h=0;h<c;h++){var i=e[a[f]];if(!i)throw new Error("index "+a[f]+" not in palette");for(var j=0;j<4;j++)b[f+j]=i[j];f+=4}}function d(a,b,c,d,e){for(var f=0,g=0;g<d;g++)for(var h=0;h<c;h++){var i=!1;if(1===e.length?e[0]===a[f]&&(i=!0):e[0]===a[f]&&e[1]===a[f+1]&&e[2]===a[f+2]&&(i=!0),i)for(var j=0;j<4;j++)b[f+j]=0;f+=4}}function e(a,b,c,d,e){for(var f=255,g=Math.pow(2,e)-1,h=0,i=0;i<d;i++)for(var j=0;j<c;j++){for(var k=0;k<4;k++)b[h+k]=Math.floor(a[h+k]*f/g+.5);h+=4}}b.exports=function(b,f){var g=f.depth,h=f.width,i=f.height,j=f.colorType,k=f.transColor,l=f.palette,m=b;return 3===j?c(b,m,h,i,l):(k&&d(b,m,h,i,k),8!==g&&(16===g&&(m=new a(h*i*4)),e(b,m,h,i,g))),m}}).call(this,a("buffer").Buffer)},{buffer:38}],12:[function(a,b,c){"use strict";var d=[{x:[0],y:[0]},{x:[4],y:[0]},{x:[0,4],y:[4]},{x:[2,6],y:[0,4]},{x:[0,2,4,6],y:[2,6]},{x:[1,3,5,7],y:[0,2,4,6]},{x:[0,1,2,3,4,5,6,7],y:[1,3,5,7]}];c.getImagePasses=function(a,b){for(var c=[],e=a%8,f=b%8,g=(a-e)/8,h=(b-f)/8,i=0;i<d.length;i++){for(var j=d[i],k=g*j.x.length,l=h*j.y.length,m=0;m<j.x.length&&j.x[m]<e;m++)k++;for(m=0;m<j.y.length&&j.y[m]<f;m++)l++;k>0&&l>0&&c.push({width:k,height:l,index:i})}return c},c.getInterlaceIterator=function(a){return function(b,c,e){var f=b%d[e].x.length,g=(b-f)/d[e].x.length*8+d[e].x[f],h=c%d[e].y.length,i=(c-h)/d[e].y.length*8+d[e].y[h];return 4*g+i*a*4}}},{}],13:[function(a,b,c){(function(c){"use strict";var d=a("util"),e=a("stream"),f=a("./constants"),g=a("./packer"),h=b.exports=function(a){e.call(this);var b=a||{};this._packer=new g(b),this._deflate=this._packer.createDeflate(),this.readable=!0};d.inherits(h,e),h.prototype.pack=function(a,b,d,e){this.emit("data",new c(f.PNG_SIGNATURE)),this.emit("data",this._packer.packIHDR(b,d)),e&&this.emit("data",this._packer.packGAMA(e));var g=this._packer.filterData(a,b,d);this._deflate.on("error",this.emit.bind(this,"error")),this._deflate.on("data",function(a){this.emit("data",this._packer.packIDAT(a))}.bind(this)),this._deflate.on("end",function(){this.emit("data",this._packer.packIEND()),this.emit("end")}.bind(this)),this._deflate.end(g)}}).call(this,a("buffer").Buffer)},{"./constants":5,"./packer":15,buffer:38,stream:61,util:64}],14:[function(a,b,c){(function(c){"use strict";var d=!0,e=a("zlib"),f=a("./constants"),g=a("./packer");b.exports=function(a,b){if(!d)throw new Error("To use the sync capability of this library in old node versions, please pin pngjs to v2.3.0");var h=b||{},i=new g(h),j=[];j.push(new c(f.PNG_SIGNATURE)),j.push(i.packIHDR(a.width,a.height)),a.gamma&&j.push(i.packGAMA(a.gamma));var k=i.filterData(a.data,a.width,a.height),l=e.deflateSync(k,i.getDeflateOptions());if(k=null,!l||!l.length)throw new Error("bad png - invalid compressed data response");return j.push(i.packIDAT(l)),j.push(i.packIEND()),c.concat(j)}}).call(this,a("buffer").Buffer)},{"./constants":5,"./packer":15,buffer:38,zlib:37}],15:[function(a,b,c){(function(c){"use strict";var d=a("./constants"),e=a("./crc"),f=a("./bitpacker"),g=a("./filter-pack"),h=a("zlib"),i=b.exports=function(a){if(this._options=a,a.deflateChunkSize=a.deflateChunkSize||32768,a.deflateLevel=null!=a.deflateLevel?a.deflateLevel:9,a.deflateStrategy=null!=a.deflateStrategy?a.deflateStrategy:3,a.inputHasAlpha=null==a.inputHasAlpha||a.inputHasAlpha,a.deflateFactory=a.deflateFactory||h.createDeflate,a.bitDepth=a.bitDepth||8,a.colorType="number"==typeof a.colorType?a.colorType:d.COLORTYPE_COLOR_ALPHA,a.colorType!==d.COLORTYPE_COLOR&&a.colorType!==d.COLORTYPE_COLOR_ALPHA)throw new Error("option color type:"+a.colorType+" is not supported at present");if(8!==a.bitDepth)throw new Error("option bit depth:"+a.bitDepth+" is not supported at present")};i.prototype.getDeflateOptions=function(){return{chunkSize:this._options.deflateChunkSize,level:this._options.deflateLevel,strategy:this._options.deflateStrategy}},i.prototype.createDeflate=function(){return this._options.deflateFactory(this.getDeflateOptions())},i.prototype.filterData=function(a,b,c){var e=f(a,b,c,this._options),h=d.COLORTYPE_TO_BPP_MAP[this._options.colorType],i=g(e,b,c,this._options,h);return i},i.prototype._packChunk=function(a,b){var d=b?b.length:0,f=new c(d+12);return f.writeUInt32BE(d,0),f.writeUInt32BE(a,4),b&&b.copy(f,8),f.writeInt32BE(e.crc32(f.slice(4,f.length-4)),f.length-4),f},i.prototype.packGAMA=function(a){var b=new c(4);return b.writeUInt32BE(Math.floor(a*d.GAMMA_DIVISION),0),this._packChunk(d.TYPE_gAMA,b)},i.prototype.packIHDR=function(a,b){var e=new c(13);return e.writeUInt32BE(a,0),e.writeUInt32BE(b,4),e[8]=this._options.bitDepth,e[9]=this._options.colorType,e[10]=0,e[11]=0,e[12]=0,this._packChunk(d.TYPE_IHDR,e)},i.prototype.packIDAT=function(a){return this._packChunk(d.TYPE_IDAT,a)},i.prototype.packIEND=function(){return this._packChunk(d.TYPE_IEND,null)}}).call(this,a("buffer").Buffer)},{"./bitpacker":3,"./constants":5,"./crc":6,"./filter-pack":7,buffer:38,zlib:37}],16:[function(a,b,c){"use strict";b.exports=function(b,c,d){var e=b+c-d,f=Math.abs(e-b),g=Math.abs(e-c),h=Math.abs(e-d);return f<=g&&f<=h?b:g<=h?c:d}},{}],17:[function(a,b,c){"use strict";var d=a("util"),e=a("zlib"),f=a("./chunkstream"),g=a("./filter-parse-async"),h=a("./parser"),i=a("./bitmapper"),j=a("./format-normaliser"),k=b.exports=function(a){f.call(this),this._parser=new h(a,{read:this.read.bind(this),error:this._handleError.bind(this),metadata:this._handleMetaData.bind(this),gamma:this.emit.bind(this,"gamma"),palette:this._handlePalette.bind(this),transColor:this._handleTransColor.bind(this),finished:this._finished.bind(this),inflateData:this._inflateData.bind(this)}),this._options=a,this.writable=!0,this._parser.start()};d.inherits(k,f),k.prototype._handleError=function(a){this.emit("error",a),this.writable=!1,this.destroy(),this._inflate&&this._inflate.destroy&&this._inflate.destroy(),this.errord=!0},k.prototype._inflateData=function(a){this._inflate||(this._inflate=e.createInflate(),this._inflate.on("error",this.emit.bind(this,"error")),this._filter.on("complete",this._complete.bind(this)),this._inflate.pipe(this._filter)),this._inflate.write(a)},k.prototype._handleMetaData=function(a){this.emit("metadata",a),this._bitmapInfo=Object.create(a),this._filter=new g(this._bitmapInfo)},k.prototype._handleTransColor=function(a){this._bitmapInfo.transColor=a},k.prototype._handlePalette=function(a){this._bitmapInfo.palette=a},k.prototype._finished=function(){this.errord||(this._inflate?this._inflate.end():this.emit("error","No Inflate block"),this.destroySoon())},k.prototype._complete=function(a){if(!this.errord){try{var b=i.dataToBitMap(a,this._bitmapInfo),c=j(b,this._bitmapInfo);b=null}catch(a){return void this._handleError(a)}this.emit("parsed",c)}}},{"./bitmapper":2,"./chunkstream":4,"./filter-parse-async":8,"./format-normaliser":11,"./parser":19,util:64,zlib:37}],18:[function(a,b,c){(function(c){"use strict";var d=!0,e=a("zlib"),f=a("./sync-reader"),g=a("./filter-parse-sync"),h=a("./parser"),i=a("./bitmapper"),j=a("./format-normaliser");b.exports=function(a,b){function l(a){k=a}function n(a){m=a}function o(a){m.transColor=a}function p(a){m.palette=a}function r(a){q=a}function t(a){s.push(a)}if(!d)throw new Error("To use the sync capability of this library in old node versions, please pin pngjs to v2.3.0");var k,m,q,s=[],u=new f(a),v=new h(b,{read:u.read.bind(u),error:l,metadata:n,gamma:r,palette:p,transColor:o,inflateData:t});if(v.start(),u.process(),k)throw k;var w=c.concat(s);s.length=0;var x=e.inflateSync(w);if(w=null,!x||!x.length)throw new Error("bad png - invalid inflate data response");var y=g.process(x,m);w=null;var z=i.dataToBitMap(y,m);y=null;var A=j(z,m);return m.data=A,m.gamma=q||0,m}}).call(this,a("buffer").Buffer)},{"./bitmapper":2,"./filter-parse-sync":9,"./format-normaliser":11,"./parser":19,"./sync-reader":22,buffer:38,zlib:37}],19:[function(a,b,c){(function(c){"use strict";var d=a("./constants"),e=a("./crc"),f=b.exports=function(a,b){this._options=a,a.checkCRC=a.checkCRC!==!1,this._hasIHDR=!1,this._hasIEND=!1,this._palette=[],this._colorType=0,this._chunks={},this._chunks[d.TYPE_IHDR]=this._handleIHDR.bind(this),this._chunks[d.TYPE_IEND]=this._handleIEND.bind(this),this._chunks[d.TYPE_IDAT]=this._handleIDAT.bind(this),this._chunks[d.TYPE_PLTE]=this._handlePLTE.bind(this),this._chunks[d.TYPE_tRNS]=this._handleTRNS.bind(this),this._chunks[d.TYPE_gAMA]=this._handleGAMA.bind(this),this.read=b.read,this.error=b.error,this.metadata=b.metadata,this.gamma=b.gamma,this.transColor=b.transColor,this.palette=b.palette,this.parsed=b.parsed,this.inflateData=b.inflateData,this.inflateData=b.inflateData,this.finished=b.finished};f.prototype.start=function(){this.read(d.PNG_SIGNATURE.length,this._parseSignature.bind(this))},f.prototype._parseSignature=function(a){for(var b=d.PNG_SIGNATURE,c=0;c<b.length;c++)if(a[c]!==b[c])return void this.error(new Error("Invalid file signature"));this.read(8,this._parseChunkBegin.bind(this))},f.prototype._parseChunkBegin=function(a){for(var b=a.readUInt32BE(0),f=a.readUInt32BE(4),g="",h=4;h<8;h++)g+=String.fromCharCode(a[h]);var i=Boolean(32&a[4]);return this._hasIHDR||f===d.TYPE_IHDR?(this._crc=new e,this._crc.write(new c(g)),this._chunks[f]?this._chunks[f](b):i?void this.read(b+4,this._skipChunk.bind(this)):void this.error(new Error("Unsupported critical chunk type "+g))):void this.error(new Error("Expected IHDR on beggining"))},f.prototype._skipChunk=function(){this.read(8,this._parseChunkBegin.bind(this))},f.prototype._handleChunkEnd=function(){this.read(4,this._parseChunkEnd.bind(this))},f.prototype._parseChunkEnd=function(a){var b=a.readInt32BE(0),c=this._crc.crc32();return this._options.checkCRC&&c!==b?void this.error(new Error("Crc error - "+b+" - "+c)):void(this._hasIEND||this.read(8,this._parseChunkBegin.bind(this)))},f.prototype._handleIHDR=function(a){this.read(a,this._parseIHDR.bind(this))},f.prototype._parseIHDR=function(a){this._crc.write(a);var b=a.readUInt32BE(0),c=a.readUInt32BE(4),e=a[8],f=a[9],g=a[10],h=a[11],i=a[12];if(8!==e&&4!==e&&2!==e&&1!==e&&16!==e)return void this.error(new Error("Unsupported bit depth "+e));if(!(f in d.COLORTYPE_TO_BPP_MAP))return void this.error(new Error("Unsupported color type"));if(0!==g)return void this.error(new Error("Unsupported compression method"));if(0!==h)return void this.error(new Error("Unsupported filter method"));if(0!==i&&1!==i)return void this.error(new Error("Unsupported interlace method"));this._colorType=f;var j=d.COLORTYPE_TO_BPP_MAP[this._colorType];this._hasIHDR=!0,this.metadata({width:b,height:c,depth:e,interlace:Boolean(i),palette:Boolean(f&d.COLORTYPE_PALETTE),color:Boolean(f&d.COLORTYPE_COLOR),alpha:Boolean(f&d.COLORTYPE_ALPHA),bpp:j,colorType:f}),this._handleChunkEnd()},f.prototype._handlePLTE=function(a){this.read(a,this._parsePLTE.bind(this))},f.prototype._parsePLTE=function(a){this._crc.write(a);for(var b=Math.floor(a.length/3),c=0;c<b;c++)this._palette.push([a[3*c],a[3*c+1],a[3*c+2],255]);this.palette(this._palette),this._handleChunkEnd()},f.prototype._handleTRNS=function(a){this.read(a,this._parseTRNS.bind(this))},f.prototype._parseTRNS=function(a){if(this._crc.write(a),this._colorType===d.COLORTYPE_PALETTE_COLOR){if(0===this._palette.length)return void this.error(new Error("Transparency chunk must be after palette"));if(a.length>this._palette.length)return void this.error(new Error("More transparent colors than palette size"));for(var b=0;b<a.length;b++)this._palette[b][3]=a[b];this.palette(this._palette)}this._colorType===d.COLORTYPE_GRAYSCALE&&this.transColor([a.readUInt16BE(0)]),this._colorType===d.COLORTYPE_COLOR&&this.transColor([a.readUInt16BE(0),a.readUInt16BE(2),a.readUInt16BE(4)]),this._handleChunkEnd()},f.prototype._handleGAMA=function(a){this.read(a,this._parseGAMA.bind(this))},f.prototype._parseGAMA=function(a){this._crc.write(a),this.gamma(a.readUInt32BE(0)/d.GAMMA_DIVISION),this._handleChunkEnd()},f.prototype._handleIDAT=function(a){this.read(-a,this._parseIDAT.bind(this,a))},f.prototype._parseIDAT=function(a,b){if(this._crc.write(b),this._colorType===d.COLORTYPE_PALETTE_COLOR&&0===this._palette.length)throw new Error("Expected palette not found");this.inflateData(b);var c=a-b.length;c>0?this._handleIDAT(c):this._handleChunkEnd()},f.prototype._handleIEND=function(a){this.read(a,this._parseIEND.bind(this))},f.prototype._parseIEND=function(a){this._crc.write(a),this._hasIEND=!0,this._handleChunkEnd(),this.finished&&this.finished()}}).call(this,a("buffer").Buffer)},{"./constants":5,"./crc":6,buffer:38}],20:[function(a,b,c){"use strict";var d=a("./parser-sync"),e=a("./packer-sync");c.read=function(a,b){return d(a,b||{})},c.write=function(a){return e(a)}},{"./packer-sync":14,"./parser-sync":18}],21:[function(a,b,c){(function(b,d){"use strict";var e=a("util"),f=a("stream"),g=a("./parser-async"),h=a("./packer-async"),i=a("./png-sync"),j=c.PNG=function(a){f.call(this),a=a||{},this.width=a.width||0,this.height=a.height||0,this.data=this.width>0&&this.height>0?new d(4*this.width*this.height):null,a.fill&&this.data&&this.data.fill(0),this.gamma=0,this.readable=this.writable=!0,this._parser=new g(a),this._parser.on("error",this.emit.bind(this,"error")),this._parser.on("close",this._handleClose.bind(this)),this._parser.on("metadata",this._metadata.bind(this)),this._parser.on("gamma",this._gamma.bind(this)),this._parser.on("parsed",function(a){this.data=a,this.emit("parsed",a)}.bind(this)),this._packer=new h(a),this._packer.on("data",this.emit.bind(this,"data")),this._packer.on("end",this.emit.bind(this,"end")),this._parser.on("close",this._handleClose.bind(this)),this._packer.on("error",this.emit.bind(this,"error"))};e.inherits(j,f),j.sync=i,j.prototype.pack=function(){return this.data&&this.data.length?(b.nextTick(function(){this._packer.pack(this.data,this.width,this.height,this.gamma)}.bind(this)),this):(this.emit("error","No data provided"),this)},j.prototype.parse=function(a,b){if(b){var c,d;c=function(a){this.removeListener("error",d),this.data=a,b(null,this)}.bind(this),d=function(a){this.removeListener("parsed",c),b(a,null)}.bind(this),this.once("parsed",c),this.once("error",d)}return this.end(a),this},j.prototype.write=function(a){return this._parser.write(a),!0},j.prototype.end=function(a){this._parser.end(a)},j.prototype._metadata=function(a){this.width=a.width,this.height=a.height,this.emit("metadata",a)},j.prototype._gamma=function(a){this.gamma=a},j.prototype._handleClose=function(){this._parser.writable||this._packer.readable||this.emit("close")},j.bitblt=function(a,b,c,d,e,f,g,h){if(c>a.width||d>a.height||c+e>a.width||d+f>a.height)throw new Error("bitblt reading outside image");if(g>b.width||h>b.height||g+e>b.width||h+f>b.height)throw new Error("bitblt writing outside image");for(var i=0;i<f;i++)a.data.copy(b.data,(h+i)*b.width+g<<2,(d+i)*a.width+c<<2,(d+i)*a.width+c+e<<2)},j.prototype.bitblt=function(a,b,c,d,e,f,g){return j.bitblt(this,a,b,c,d,e,f,g),this},j.adjustGamma=function(a){if(a.gamma){for(var b=0;b<a.height;b++)for(var c=0;c<a.width;c++)for(var d=a.width*b+c<<2,e=0;e<3;e++){var f=a.data[d+e]/255;f=Math.pow(f,1/2.2/a.gamma),a.data[d+e]=Math.round(255*f)}a.gamma=0}},j.prototype.adjustGamma=function(){j.adjustGamma(this)}}).call(this,a("_process"),a("buffer").Buffer)},{"./packer-async":13,"./parser-async":17,"./png-sync":20,_process:45,buffer:38,stream:61,util:64}],22:[function(a,b,c){"use strict";var d=b.exports=function(a){this._buffer=a,this._reads=[]};d.prototype.read=function(a,b){this._reads.push({length:Math.abs(a),allowLess:a<0,func:b})},d.prototype.process=function(){for(;this._reads.length>0&&this._buffer.length;){var a=this._reads[0];if(!this._buffer.length||!(this._buffer.length>=a.length||a.allowLess))break;this._reads.shift();var b=this._buffer;this._buffer=b.slice(a.length),a.func.call(this,b.slice(0,a.length))}return this._reads.length>0?new Error("There are some read requests waitng on finished stream"):this._buffer.length>0?new Error("unrecognised content at end of stream"):void 0}},{}],23:[function(a,b,c){function h(a,b){return d.isUndefined(b)?""+b:d.isNumber(b)&&!isFinite(b)?b.toString():d.isFunction(b)||d.isRegExp(b)?b.toString():b}function i(a,b){return d.isString(a)?a.length<b?a:a.slice(0,b):a}function j(a){return i(JSON.stringify(a.actual,h),128)+" "+a.operator+" "+i(JSON.stringify(a.expected,h),128)}function k(a,b,c,d,e){throw new g.AssertionError({message:c,actual:a,expected:b,operator:d,stackStartFunction:e})}function l(a,b){a||k(a,!0,b,"==",g.ok)}function m(a,b){if(a===b)return!0;if(d.isBuffer(a)&&d.isBuffer(b)){if(a.length!=b.length)return!1;for(var c=0;c<a.length;c++)if(a[c]!==b[c])return!1;return!0}return d.isDate(a)&&d.isDate(b)?a.getTime()===b.getTime():d.isRegExp(a)&&d.isRegExp(b)?a.source===b.source&&a.global===b.global&&a.multiline===b.multiline&&a.lastIndex===b.lastIndex&&a.ignoreCase===b.ignoreCase:d.isObject(a)||d.isObject(b)?o(a,b):a==b}function n(a){return"[object Arguments]"==Object.prototype.toString.call(a)}function o(a,b){if(d.isNullOrUndefined(a)||d.isNullOrUndefined(b))return!1;if(a.prototype!==b.prototype)return!1;if(d.isPrimitive(a)||d.isPrimitive(b))return a===b;var c=n(a),f=n(b);if(c&&!f||!c&&f)return!1;if(c)return a=e.call(a),b=e.call(b),m(a,b);var i,j,g=r(a),h=r(b);if(g.length!=h.length)return!1;for(g.sort(),h.sort(),j=g.length-1;j>=0;j--)if(g[j]!=h[j])return!1;for(j=g.length-1;j>=0;j--)if(i=g[j],!m(a[i],b[i]))return!1;return!0}function p(a,b){return!(!a||!b)&&("[object RegExp]"==Object.prototype.toString.call(b)?b.test(a):a instanceof b||b.call({},a)===!0)}function q(a,b,c,e){var f;d.isString(c)&&(e=c,c=null);try{b()}catch(a){f=a}if(e=(c&&c.name?" ("+c.name+").":".")+(e?" "+e:"."),a&&!f&&k(f,c,"Missing expected exception"+e),!a&&p(f,c)&&k(f,c,"Got unwanted exception"+e),a&&f&&c&&!p(f,c)||!a&&f)throw f}var d=a("util/"),e=Array.prototype.slice,f=Object.prototype.hasOwnProperty,g=b.exports=l;g.AssertionError=function(b){this.name="AssertionError",this.actual=b.actual,this.expected=b.expected,this.operator=b.operator,b.message?(this.message=b.message,this.generatedMessage=!1):(this.message=j(this),this.generatedMessage=!0);var c=b.stackStartFunction||k;if(Error.captureStackTrace)Error.captureStackTrace(this,c);else{var d=new Error;if(d.stack){var e=d.stack,f=c.name,g=e.indexOf("\n"+f);if(g>=0){var h=e.indexOf("\n",g+1);e=e.substring(h+1)}this.stack=e}}},d.inherits(g.AssertionError,Error),g.fail=k,g.ok=l,g.equal=function(b,c,d){b!=c&&k(b,c,d,"==",g.equal)},g.notEqual=function(b,c,d){b==c&&k(b,c,d,"!=",g.notEqual)},g.deepEqual=function(b,c,d){m(b,c)||k(b,c,d,"deepEqual",g.deepEqual)},g.notDeepEqual=function(b,c,d){m(b,c)&&k(b,c,d,"notDeepEqual",g.notDeepEqual)},g.strictEqual=function(b,c,d){b!==c&&k(b,c,d,"===",g.strictEqual)},g.notStrictEqual=function(b,c,d){b===c&&k(b,c,d,"!==",g.notStrictEqual)},g.throws=function(a,b,c){q.apply(this,[!0].concat(e.call(arguments)))},g.doesNotThrow=function(a,b){q.apply(this,[!1].concat(e.call(arguments)))},g.ifError=function(a){if(a)throw a};var r=Object.keys||function(a){var b=[];for(var c in a)f.call(a,c)&&b.push(c);return b}},{"util/":64}],24:[function(a,b,c){},{}],25:[function(a,b,c){"use strict";var d="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Int32Array;c.assign=function(a){for(var b=Array.prototype.slice.call(arguments,1);b.length;){var c=b.shift();if(c){if("object"!=typeof c)throw new TypeError(c+"must be non-object");for(var d in c)c.hasOwnProperty(d)&&(a[d]=c[d])}}return a},c.shrinkBuf=function(a,b){return a.length===b?a:a.subarray?a.subarray(0,b):(a.length=b,a)};var e={arraySet:function(a,b,c,d,e){if(b.subarray&&a.subarray)return void a.set(b.subarray(c,c+d),e);for(var f=0;f<d;f++)a[e+f]=b[c+f]},flattenChunks:function(a){var b,c,d,e,f,g;for(d=0,b=0,c=a.length;b<c;b++)d+=a[b].length;for(g=new Uint8Array(d),e=0,b=0,c=a.length;b<c;b++)f=a[b],g.set(f,e),e+=f.length;return g}},f={arraySet:function(a,b,c,d,e){
  for(var f=0;f<d;f++)a[e+f]=b[c+f]},flattenChunks:function(a){return[].concat.apply([],a)}};c.setTyped=function(a){a?(c.Buf8=Uint8Array,c.Buf16=Uint16Array,c.Buf32=Int32Array,c.assign(c,e)):(c.Buf8=Array,c.Buf16=Array,c.Buf32=Array,c.assign(c,f))},c.setTyped(d)},{}],26:[function(a,b,c){"use strict";function d(a,b,c,d){for(var e=65535&a|0,f=a>>>16&65535|0,g=0;0!==c;){g=c>2e3?2e3:c,c-=g;do e=e+b[d++]|0,f=f+e|0;while(--g);e%=65521,f%=65521}return e|f<<16|0}b.exports=d},{}],27:[function(a,b,c){"use strict";b.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}},{}],28:[function(a,b,c){"use strict";function d(){for(var a,b=[],c=0;c<256;c++){a=c;for(var d=0;d<8;d++)a=1&a?3988292384^a>>>1:a>>>1;b[c]=a}return b}function f(a,b,c,d){var f=e,g=d+c;a^=-1;for(var h=d;h<g;h++)a=a>>>8^f[255&(a^b[h])];return a^-1}var e=d();b.exports=f},{}],29:[function(a,b,c){"use strict";function $(a,b){return a.msg=h[b],b}function _(a){return(a<<1)-(a>4?9:0)}function aa(a){for(var b=a.length;--b>=0;)a[b]=0}function ba(a){var b=a.state,c=b.pending;c>a.avail_out&&(c=a.avail_out),0!==c&&(d.arraySet(a.output,b.pending_buf,b.pending_out,c,a.next_out),a.next_out+=c,b.pending_out+=c,a.total_out+=c,a.avail_out-=c,b.pending-=c,0===b.pending&&(b.pending_out=0))}function ca(a,b){e._tr_flush_block(a,a.block_start>=0?a.block_start:-1,a.strstart-a.block_start,b),a.block_start=a.strstart,ba(a.strm)}function da(a,b){a.pending_buf[a.pending++]=b}function ea(a,b){a.pending_buf[a.pending++]=b>>>8&255,a.pending_buf[a.pending++]=255&b}function fa(a,b,c,e){var h=a.avail_in;return h>e&&(h=e),0===h?0:(a.avail_in-=h,d.arraySet(b,a.input,a.next_in,h,c),1===a.state.wrap?a.adler=f(a.adler,b,h,c):2===a.state.wrap&&(a.adler=g(a.adler,b,h,c)),a.next_in+=h,a.total_in+=h,h)}function ga(a,b){var e,f,c=a.max_chain_length,d=a.strstart,g=a.prev_length,h=a.nice_match,i=a.strstart>a.w_size-M?a.strstart-(a.w_size-M):0,j=a.window,k=a.w_mask,l=a.prev,m=a.strstart+L,n=j[d+g-1],o=j[d+g];a.prev_length>=a.good_match&&(c>>=2),h>a.lookahead&&(h=a.lookahead);do if(e=b,j[e+g]===o&&j[e+g-1]===n&&j[e]===j[d]&&j[++e]===j[d+1]){d+=2,e++;do;while(j[++d]===j[++e]&&j[++d]===j[++e]&&j[++d]===j[++e]&&j[++d]===j[++e]&&j[++d]===j[++e]&&j[++d]===j[++e]&&j[++d]===j[++e]&&j[++d]===j[++e]&&d<m);if(f=L-(m-d),d=m-L,f>g){if(a.match_start=b,g=f,f>=h)break;n=j[d+g-1],o=j[d+g]}}while((b=l[b&k])>i&&0!==--c);return g<=a.lookahead?g:a.lookahead}function ha(a){var c,e,f,g,h,b=a.w_size;do{if(g=a.window_size-a.lookahead-a.strstart,a.strstart>=b+(b-M)){d.arraySet(a.window,a.window,b,b,0),a.match_start-=b,a.strstart-=b,a.block_start-=b,e=a.hash_size,c=e;do f=a.head[--c],a.head[c]=f>=b?f-b:0;while(--e);e=b,c=e;do f=a.prev[--c],a.prev[c]=f>=b?f-b:0;while(--e);g+=b}if(0===a.strm.avail_in)break;if(e=fa(a.strm,a.window,a.strstart+a.lookahead,g),a.lookahead+=e,a.lookahead+a.insert>=K)for(h=a.strstart-a.insert,a.ins_h=a.window[h],a.ins_h=(a.ins_h<<a.hash_shift^a.window[h+1])&a.hash_mask;a.insert&&(a.ins_h=(a.ins_h<<a.hash_shift^a.window[h+K-1])&a.hash_mask,a.prev[h&a.w_mask]=a.head[a.ins_h],a.head[a.ins_h]=h,h++,a.insert--,!(a.lookahead+a.insert<K)););}while(a.lookahead<M&&0!==a.strm.avail_in)}function ia(a,b){var c=65535;for(c>a.pending_buf_size-5&&(c=a.pending_buf_size-5);;){if(a.lookahead<=1){if(ha(a),0===a.lookahead&&b===i)return V;if(0===a.lookahead)break}a.strstart+=a.lookahead,a.lookahead=0;var d=a.block_start+c;if((0===a.strstart||a.strstart>=d)&&(a.lookahead=a.strstart-d,a.strstart=d,ca(a,!1),0===a.strm.avail_out))return V;if(a.strstart-a.block_start>=a.w_size-M&&(ca(a,!1),0===a.strm.avail_out))return V}return a.insert=0,b===l?(ca(a,!0),0===a.strm.avail_out?X:Y):a.strstart>a.block_start&&(ca(a,!1),0===a.strm.avail_out)?V:V}function ja(a,b){for(var c,d;;){if(a.lookahead<M){if(ha(a),a.lookahead<M&&b===i)return V;if(0===a.lookahead)break}if(c=0,a.lookahead>=K&&(a.ins_h=(a.ins_h<<a.hash_shift^a.window[a.strstart+K-1])&a.hash_mask,c=a.prev[a.strstart&a.w_mask]=a.head[a.ins_h],a.head[a.ins_h]=a.strstart),0!==c&&a.strstart-c<=a.w_size-M&&(a.match_length=ga(a,c)),a.match_length>=K)if(d=e._tr_tally(a,a.strstart-a.match_start,a.match_length-K),a.lookahead-=a.match_length,a.match_length<=a.max_lazy_match&&a.lookahead>=K){a.match_length--;do a.strstart++,a.ins_h=(a.ins_h<<a.hash_shift^a.window[a.strstart+K-1])&a.hash_mask,c=a.prev[a.strstart&a.w_mask]=a.head[a.ins_h],a.head[a.ins_h]=a.strstart;while(0!==--a.match_length);a.strstart++}else a.strstart+=a.match_length,a.match_length=0,a.ins_h=a.window[a.strstart],a.ins_h=(a.ins_h<<a.hash_shift^a.window[a.strstart+1])&a.hash_mask;else d=e._tr_tally(a,0,a.window[a.strstart]),a.lookahead--,a.strstart++;if(d&&(ca(a,!1),0===a.strm.avail_out))return V}return a.insert=a.strstart<K-1?a.strstart:K-1,b===l?(ca(a,!0),0===a.strm.avail_out?X:Y):a.last_lit&&(ca(a,!1),0===a.strm.avail_out)?V:W}function ka(a,b){for(var c,d,f;;){if(a.lookahead<M){if(ha(a),a.lookahead<M&&b===i)return V;if(0===a.lookahead)break}if(c=0,a.lookahead>=K&&(a.ins_h=(a.ins_h<<a.hash_shift^a.window[a.strstart+K-1])&a.hash_mask,c=a.prev[a.strstart&a.w_mask]=a.head[a.ins_h],a.head[a.ins_h]=a.strstart),a.prev_length=a.match_length,a.prev_match=a.match_start,a.match_length=K-1,0!==c&&a.prev_length<a.max_lazy_match&&a.strstart-c<=a.w_size-M&&(a.match_length=ga(a,c),a.match_length<=5&&(a.strategy===t||a.match_length===K&&a.strstart-a.match_start>4096)&&(a.match_length=K-1)),a.prev_length>=K&&a.match_length<=a.prev_length){f=a.strstart+a.lookahead-K,d=e._tr_tally(a,a.strstart-1-a.prev_match,a.prev_length-K),a.lookahead-=a.prev_length-1,a.prev_length-=2;do++a.strstart<=f&&(a.ins_h=(a.ins_h<<a.hash_shift^a.window[a.strstart+K-1])&a.hash_mask,c=a.prev[a.strstart&a.w_mask]=a.head[a.ins_h],a.head[a.ins_h]=a.strstart);while(0!==--a.prev_length);if(a.match_available=0,a.match_length=K-1,a.strstart++,d&&(ca(a,!1),0===a.strm.avail_out))return V}else if(a.match_available){if(d=e._tr_tally(a,0,a.window[a.strstart-1]),d&&ca(a,!1),a.strstart++,a.lookahead--,0===a.strm.avail_out)return V}else a.match_available=1,a.strstart++,a.lookahead--}return a.match_available&&(d=e._tr_tally(a,0,a.window[a.strstart-1]),a.match_available=0),a.insert=a.strstart<K-1?a.strstart:K-1,b===l?(ca(a,!0),0===a.strm.avail_out?X:Y):a.last_lit&&(ca(a,!1),0===a.strm.avail_out)?V:W}function la(a,b){for(var c,d,f,g,h=a.window;;){if(a.lookahead<=L){if(ha(a),a.lookahead<=L&&b===i)return V;if(0===a.lookahead)break}if(a.match_length=0,a.lookahead>=K&&a.strstart>0&&(f=a.strstart-1,d=h[f],d===h[++f]&&d===h[++f]&&d===h[++f])){g=a.strstart+L;do;while(d===h[++f]&&d===h[++f]&&d===h[++f]&&d===h[++f]&&d===h[++f]&&d===h[++f]&&d===h[++f]&&d===h[++f]&&f<g);a.match_length=L-(g-f),a.match_length>a.lookahead&&(a.match_length=a.lookahead)}if(a.match_length>=K?(c=e._tr_tally(a,1,a.match_length-K),a.lookahead-=a.match_length,a.strstart+=a.match_length,a.match_length=0):(c=e._tr_tally(a,0,a.window[a.strstart]),a.lookahead--,a.strstart++),c&&(ca(a,!1),0===a.strm.avail_out))return V}return a.insert=0,b===l?(ca(a,!0),0===a.strm.avail_out?X:Y):a.last_lit&&(ca(a,!1),0===a.strm.avail_out)?V:W}function ma(a,b){for(var c;;){if(0===a.lookahead&&(ha(a),0===a.lookahead)){if(b===i)return V;break}if(a.match_length=0,c=e._tr_tally(a,0,a.window[a.strstart]),a.lookahead--,a.strstart++,c&&(ca(a,!1),0===a.strm.avail_out))return V}return a.insert=0,b===l?(ca(a,!0),0===a.strm.avail_out?X:Y):a.last_lit&&(ca(a,!1),0===a.strm.avail_out)?V:W}function na(a,b,c,d,e){this.good_length=a,this.max_lazy=b,this.nice_length=c,this.max_chain=d,this.func=e}function pa(a){a.window_size=2*a.w_size,aa(a.head),a.max_lazy_match=oa[a.level].max_lazy,a.good_match=oa[a.level].good_length,a.nice_match=oa[a.level].nice_length,a.max_chain_length=oa[a.level].max_chain,a.strstart=0,a.block_start=0,a.lookahead=0,a.insert=0,a.match_length=a.prev_length=K-1,a.match_available=0,a.ins_h=0}function qa(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=z,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new d.Buf16(2*I),this.dyn_dtree=new d.Buf16(2*(2*G+1)),this.bl_tree=new d.Buf16(2*(2*H+1)),aa(this.dyn_ltree),aa(this.dyn_dtree),aa(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new d.Buf16(J+1),this.heap=new d.Buf16(2*F+1),aa(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new d.Buf16(2*F+1),aa(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function ra(a){var b;return a&&a.state?(a.total_in=a.total_out=0,a.data_type=y,b=a.state,b.pending=0,b.pending_out=0,b.wrap<0&&(b.wrap=-b.wrap),b.status=b.wrap?O:T,a.adler=2===b.wrap?0:1,b.last_flush=i,e._tr_init(b),n):$(a,p)}function sa(a){var b=ra(a);return b===n&&pa(a.state),b}function ta(a,b){return a&&a.state?2!==a.state.wrap?p:(a.state.gzhead=b,n):p}function ua(a,b,c,e,f,g){if(!a)return p;var h=1;if(b===s&&(b=6),e<0?(h=0,e=-e):e>15&&(h=2,e-=16),f<1||f>A||c!==z||e<8||e>15||b<0||b>9||g<0||g>w)return $(a,p);8===e&&(e=9);var i=new qa;return a.state=i,i.strm=a,i.wrap=h,i.gzhead=null,i.w_bits=e,i.w_size=1<<i.w_bits,i.w_mask=i.w_size-1,i.hash_bits=f+7,i.hash_size=1<<i.hash_bits,i.hash_mask=i.hash_size-1,i.hash_shift=~~((i.hash_bits+K-1)/K),i.window=new d.Buf8(2*i.w_size),i.head=new d.Buf16(i.hash_size),i.prev=new d.Buf16(i.w_size),i.lit_bufsize=1<<f+6,i.pending_buf_size=4*i.lit_bufsize,i.pending_buf=new d.Buf8(i.pending_buf_size),i.d_buf=1*i.lit_bufsize,i.l_buf=3*i.lit_bufsize,i.level=b,i.strategy=g,i.method=c,sa(a)}function va(a,b){return ua(a,b,z,B,C,x)}function wa(a,b){var c,d,f,h;if(!a||!a.state||b>m||b<0)return a?$(a,p):p;if(d=a.state,!a.output||!a.input&&0!==a.avail_in||d.status===U&&b!==l)return $(a,0===a.avail_out?r:p);if(d.strm=a,c=d.last_flush,d.last_flush=b,d.status===O)if(2===d.wrap)a.adler=0,da(d,31),da(d,139),da(d,8),d.gzhead?(da(d,(d.gzhead.text?1:0)+(d.gzhead.hcrc?2:0)+(d.gzhead.extra?4:0)+(d.gzhead.name?8:0)+(d.gzhead.comment?16:0)),da(d,255&d.gzhead.time),da(d,d.gzhead.time>>8&255),da(d,d.gzhead.time>>16&255),da(d,d.gzhead.time>>24&255),da(d,9===d.level?2:d.strategy>=u||d.level<2?4:0),da(d,255&d.gzhead.os),d.gzhead.extra&&d.gzhead.extra.length&&(da(d,255&d.gzhead.extra.length),da(d,d.gzhead.extra.length>>8&255)),d.gzhead.hcrc&&(a.adler=g(a.adler,d.pending_buf,d.pending,0)),d.gzindex=0,d.status=P):(da(d,0),da(d,0),da(d,0),da(d,0),da(d,0),da(d,9===d.level?2:d.strategy>=u||d.level<2?4:0),da(d,Z),d.status=T);else{var q=z+(d.w_bits-8<<4)<<8,s=-1;s=d.strategy>=u||d.level<2?0:d.level<6?1:6===d.level?2:3,q|=s<<6,0!==d.strstart&&(q|=N),q+=31-q%31,d.status=T,ea(d,q),0!==d.strstart&&(ea(d,a.adler>>>16),ea(d,65535&a.adler)),a.adler=1}if(d.status===P)if(d.gzhead.extra){for(f=d.pending;d.gzindex<(65535&d.gzhead.extra.length)&&(d.pending!==d.pending_buf_size||(d.gzhead.hcrc&&d.pending>f&&(a.adler=g(a.adler,d.pending_buf,d.pending-f,f)),ba(a),f=d.pending,d.pending!==d.pending_buf_size));)da(d,255&d.gzhead.extra[d.gzindex]),d.gzindex++;d.gzhead.hcrc&&d.pending>f&&(a.adler=g(a.adler,d.pending_buf,d.pending-f,f)),d.gzindex===d.gzhead.extra.length&&(d.gzindex=0,d.status=Q)}else d.status=Q;if(d.status===Q)if(d.gzhead.name){f=d.pending;do{if(d.pending===d.pending_buf_size&&(d.gzhead.hcrc&&d.pending>f&&(a.adler=g(a.adler,d.pending_buf,d.pending-f,f)),ba(a),f=d.pending,d.pending===d.pending_buf_size)){h=1;break}h=d.gzindex<d.gzhead.name.length?255&d.gzhead.name.charCodeAt(d.gzindex++):0,da(d,h)}while(0!==h);d.gzhead.hcrc&&d.pending>f&&(a.adler=g(a.adler,d.pending_buf,d.pending-f,f)),0===h&&(d.gzindex=0,d.status=R)}else d.status=R;if(d.status===R)if(d.gzhead.comment){f=d.pending;do{if(d.pending===d.pending_buf_size&&(d.gzhead.hcrc&&d.pending>f&&(a.adler=g(a.adler,d.pending_buf,d.pending-f,f)),ba(a),f=d.pending,d.pending===d.pending_buf_size)){h=1;break}h=d.gzindex<d.gzhead.comment.length?255&d.gzhead.comment.charCodeAt(d.gzindex++):0,da(d,h)}while(0!==h);d.gzhead.hcrc&&d.pending>f&&(a.adler=g(a.adler,d.pending_buf,d.pending-f,f)),0===h&&(d.status=S)}else d.status=S;if(d.status===S&&(d.gzhead.hcrc?(d.pending+2>d.pending_buf_size&&ba(a),d.pending+2<=d.pending_buf_size&&(da(d,255&a.adler),da(d,a.adler>>8&255),a.adler=0,d.status=T)):d.status=T),0!==d.pending){if(ba(a),0===a.avail_out)return d.last_flush=-1,n}else if(0===a.avail_in&&_(b)<=_(c)&&b!==l)return $(a,r);if(d.status===U&&0!==a.avail_in)return $(a,r);if(0!==a.avail_in||0!==d.lookahead||b!==i&&d.status!==U){var t=d.strategy===u?ma(d,b):d.strategy===v?la(d,b):oa[d.level].func(d,b);if(t!==X&&t!==Y||(d.status=U),t===V||t===X)return 0===a.avail_out&&(d.last_flush=-1),n;if(t===W&&(b===j?e._tr_align(d):b!==m&&(e._tr_stored_block(d,0,0,!1),b===k&&(aa(d.head),0===d.lookahead&&(d.strstart=0,d.block_start=0,d.insert=0))),ba(a),0===a.avail_out))return d.last_flush=-1,n}return b!==l?n:d.wrap<=0?o:(2===d.wrap?(da(d,255&a.adler),da(d,a.adler>>8&255),da(d,a.adler>>16&255),da(d,a.adler>>24&255),da(d,255&a.total_in),da(d,a.total_in>>8&255),da(d,a.total_in>>16&255),da(d,a.total_in>>24&255)):(ea(d,a.adler>>>16),ea(d,65535&a.adler)),ba(a),d.wrap>0&&(d.wrap=-d.wrap),0!==d.pending?n:o)}function xa(a){var b;return a&&a.state?(b=a.state.status,b!==O&&b!==P&&b!==Q&&b!==R&&b!==S&&b!==T&&b!==U?$(a,p):(a.state=null,b===T?$(a,q):n)):p}function ya(a,b){var e,g,h,i,j,k,l,m,c=b.length;if(!a||!a.state)return p;if(e=a.state,i=e.wrap,2===i||1===i&&e.status!==O||e.lookahead)return p;for(1===i&&(a.adler=f(a.adler,b,c,0)),e.wrap=0,c>=e.w_size&&(0===i&&(aa(e.head),e.strstart=0,e.block_start=0,e.insert=0),m=new d.Buf8(e.w_size),d.arraySet(m,b,c-e.w_size,e.w_size,0),b=m,c=e.w_size),j=a.avail_in,k=a.next_in,l=a.input,a.avail_in=c,a.next_in=0,a.input=b,ha(e);e.lookahead>=K;){g=e.strstart,h=e.lookahead-(K-1);do e.ins_h=(e.ins_h<<e.hash_shift^e.window[g+K-1])&e.hash_mask,e.prev[g&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=g,g++;while(--h);e.strstart=g,e.lookahead=K-1,ha(e)}return e.strstart+=e.lookahead,e.block_start=e.strstart,e.insert=e.lookahead,e.lookahead=0,e.match_length=e.prev_length=K-1,e.match_available=0,a.next_in=k,a.input=l,a.avail_in=j,e.wrap=i,n}var oa,d=a("../utils/common"),e=a("./trees"),f=a("./adler32"),g=a("./crc32"),h=a("./messages"),i=0,j=1,k=3,l=4,m=5,n=0,o=1,p=-2,q=-3,r=-5,s=-1,t=1,u=2,v=3,w=4,x=0,y=2,z=8,A=9,B=15,C=8,D=29,E=256,F=E+1+D,G=30,H=19,I=2*F+1,J=15,K=3,L=258,M=L+K+1,N=32,O=42,P=69,Q=73,R=91,S=103,T=113,U=666,V=1,W=2,X=3,Y=4,Z=3;oa=[new na(0,0,0,0,ia),new na(4,4,8,4,ja),new na(4,5,16,8,ja),new na(4,6,32,32,ja),new na(4,4,16,16,ka),new na(8,16,32,32,ka),new na(8,16,128,128,ka),new na(8,32,128,256,ka),new na(32,128,258,1024,ka),new na(32,258,258,4096,ka)],c.deflateInit=va,c.deflateInit2=ua,c.deflateReset=sa,c.deflateResetKeep=ra,c.deflateSetHeader=ta,c.deflate=wa,c.deflateEnd=xa,c.deflateSetDictionary=ya,c.deflateInfo="pako deflate (from Nodeca project)"},{"../utils/common":25,"./adler32":26,"./crc32":28,"./messages":33,"./trees":34}],30:[function(a,b,c){"use strict";var d=30,e=12;b.exports=function(b,c){var f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z,A,B,C,D;f=b.state,g=b.next_in,C=b.input,h=g+(b.avail_in-5),i=b.next_out,D=b.output,j=i-(c-b.avail_out),k=i+(b.avail_out-257),l=f.dmax,m=f.wsize,n=f.whave,o=f.wnext,p=f.window,q=f.hold,r=f.bits,s=f.lencode,t=f.distcode,u=(1<<f.lenbits)-1,v=(1<<f.distbits)-1;a:do{r<15&&(q+=C[g++]<<r,r+=8,q+=C[g++]<<r,r+=8),w=s[q&u];b:for(;;){if(x=w>>>24,q>>>=x,r-=x,x=w>>>16&255,0===x)D[i++]=65535&w;else{if(!(16&x)){if(0===(64&x)){w=s[(65535&w)+(q&(1<<x)-1)];continue b}if(32&x){f.mode=e;break a}b.msg="invalid literal/length code",f.mode=d;break a}y=65535&w,x&=15,x&&(r<x&&(q+=C[g++]<<r,r+=8),y+=q&(1<<x)-1,q>>>=x,r-=x),r<15&&(q+=C[g++]<<r,r+=8,q+=C[g++]<<r,r+=8),w=t[q&v];c:for(;;){if(x=w>>>24,q>>>=x,r-=x,x=w>>>16&255,!(16&x)){if(0===(64&x)){w=t[(65535&w)+(q&(1<<x)-1)];continue c}b.msg="invalid distance code",f.mode=d;break a}if(z=65535&w,x&=15,r<x&&(q+=C[g++]<<r,r+=8,r<x&&(q+=C[g++]<<r,r+=8)),z+=q&(1<<x)-1,z>l){b.msg="invalid distance too far back",f.mode=d;break a}if(q>>>=x,r-=x,x=i-j,z>x){if(x=z-x,x>n&&f.sane){b.msg="invalid distance too far back",f.mode=d;break a}if(A=0,B=p,0===o){if(A+=m-x,x<y){y-=x;do D[i++]=p[A++];while(--x);A=i-z,B=D}}else if(o<x){if(A+=m+o-x,x-=o,x<y){y-=x;do D[i++]=p[A++];while(--x);if(A=0,o<y){x=o,y-=x;do D[i++]=p[A++];while(--x);A=i-z,B=D}}}else if(A+=o-x,x<y){y-=x;do D[i++]=p[A++];while(--x);A=i-z,B=D}for(;y>2;)D[i++]=B[A++],D[i++]=B[A++],D[i++]=B[A++],y-=3;y&&(D[i++]=B[A++],y>1&&(D[i++]=B[A++]))}else{A=i-z;do D[i++]=D[A++],D[i++]=D[A++],D[i++]=D[A++],y-=3;while(y>2);y&&(D[i++]=D[A++],y>1&&(D[i++]=D[A++]))}break}}break}}while(g<h&&i<k);y=r>>3,g-=y,r-=y<<3,q&=(1<<r)-1,b.next_in=g,b.next_out=i,b.avail_in=g<h?5+(h-g):5-(g-h),b.avail_out=i<k?257+(k-i):257-(i-k),f.hold=q,f.bits=r}},{}],31:[function(a,b,c){"use strict";function ea(a){return(a>>>24&255)+(a>>>8&65280)+((65280&a)<<8)+((255&a)<<24)}function fa(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new d.Buf16(320),this.work=new d.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function ga(a){var b;return a&&a.state?(b=a.state,a.total_in=a.total_out=b.total=0,a.msg="",b.wrap&&(a.adler=1&b.wrap),b.mode=w,b.last=0,b.havedict=0,b.dmax=32768,b.head=null,b.hold=0,b.bits=0,b.lencode=b.lendyn=new d.Buf32(aa),b.distcode=b.distdyn=new d.Buf32(ba),b.sane=1,b.back=-1,o):r}function ha(a){var b;return a&&a.state?(b=a.state,b.wsize=0,b.whave=0,b.wnext=0,ga(a)):r}function ia(a,b){var c,d;return a&&a.state?(d=a.state,b<0?(c=0,b=-b):(c=(b>>4)+1,b<48&&(b&=15)),b&&(b<8||b>15)?r:(null!==d.window&&d.wbits!==b&&(d.window=null),d.wrap=c,d.wbits=b,ha(a))):r}function ja(a,b){var c,d;return a?(d=new fa,a.state=d,d.window=null,c=ia(a,b),c!==o&&(a.state=null),c):r}function ka(a){return ja(a,da)}function oa(a){if(la){var b;for(ma=new d.Buf32(512),na=new d.Buf32(32),b=0;b<144;)a.lens[b++]=8;for(;b<256;)a.lens[b++]=9;for(;b<280;)a.lens[b++]=7;for(;b<288;)a.lens[b++]=8;for(h(j,a.lens,0,288,ma,0,a.work,{bits:9}),b=0;b<32;)a.lens[b++]=5;h(k,a.lens,0,32,na,0,a.work,{bits:5}),la=!1}a.lencode=ma,a.lenbits=9,a.distcode=na,a.distbits=5}function pa(a,b,c,e){var f,g=a.state;return null===g.window&&(g.wsize=1<<g.wbits,g.wnext=0,g.whave=0,g.window=new d.Buf8(g.wsize)),e>=g.wsize?(d.arraySet(g.window,b,c-g.wsize,g.wsize,0),g.wnext=0,g.whave=g.wsize):(f=g.wsize-g.wnext,f>e&&(f=e),d.arraySet(g.window,b,c-e,f,g.wnext),e-=f,e?(d.arraySet(g.window,b,c-e,e,0),g.wnext=e,g.whave=g.wsize):(g.wnext+=f,g.wnext===g.wsize&&(g.wnext=0),g.whave<g.wsize&&(g.whave+=f))),0}function qa(a,b){var c,aa,ba,ca,da,fa,ga,ha,ia,ja,ka,la,ma,na,ra,sa,ta,ua,va,wa,xa,ya,Aa,Ba,qa=0,za=new d.Buf8(4),Ca=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!a||!a.state||!a.output||!a.input&&0!==a.avail_in)return r;c=a.state,c.mode===H&&(c.mode=I),da=a.next_out,ba=a.output,ga=a.avail_out,ca=a.next_in,aa=a.input,fa=a.avail_in,ha=c.hold,ia=c.bits,ja=fa,ka=ga,ya=o;a:for(;;)switch(c.mode){case w:if(0===c.wrap){c.mode=I;break}for(;ia<16;){if(0===fa)break a;fa--,ha+=aa[ca++]<<ia,ia+=8}if(2&c.wrap&&35615===ha){c.check=0,za[0]=255&ha,za[1]=ha>>>8&255,c.check=f(c.check,za,2,0),ha=0,ia=0,c.mode=x;break}if(c.flags=0,c.head&&(c.head.done=!1),!(1&c.wrap)||(((255&ha)<<8)+(ha>>8))%31){a.msg="incorrect header check",c.mode=Z;break}if((15&ha)!==v){a.msg="unknown compression method",c.mode=Z;break}if(ha>>>=4,ia-=4,xa=(15&ha)+8,0===c.wbits)c.wbits=xa;else if(xa>c.wbits){a.msg="invalid window size",c.mode=Z;break}c.dmax=1<<xa,a.adler=c.check=1,c.mode=512&ha?F:H,ha=0,ia=0;break;case x:for(;ia<16;){if(0===fa)break a;fa--,ha+=aa[ca++]<<ia,ia+=8}if(c.flags=ha,(255&c.flags)!==v){a.msg="unknown compression method",c.mode=Z;break}if(57344&c.flags){a.msg="unknown header flags set",c.mode=Z;break}c.head&&(c.head.text=ha>>8&1),512&c.flags&&(za[0]=255&ha,za[1]=ha>>>8&255,c.check=f(c.check,za,2,0)),ha=0,ia=0,c.mode=y;case y:for(;ia<32;){if(0===fa)break a;fa--,ha+=aa[ca++]<<ia,ia+=8}c.head&&(c.head.time=ha),512&c.flags&&(za[0]=255&ha,za[1]=ha>>>8&255,za[2]=ha>>>16&255,za[3]=ha>>>24&255,c.check=f(c.check,za,4,0)),ha=0,ia=0,c.mode=z;case z:for(;ia<16;){if(0===fa)break a;fa--,ha+=aa[ca++]<<ia,ia+=8}c.head&&(c.head.xflags=255&ha,c.head.os=ha>>8),512&c.flags&&(za[0]=255&ha,za[1]=ha>>>8&255,c.check=f(c.check,za,2,0)),ha=0,ia=0,c.mode=A;case A:if(1024&c.flags){for(;ia<16;){if(0===fa)break a;fa--,ha+=aa[ca++]<<ia,ia+=8}c.length=ha,c.head&&(c.head.extra_len=ha),512&c.flags&&(za[0]=255&ha,za[1]=ha>>>8&255,c.check=f(c.check,za,2,0)),ha=0,ia=0}else c.head&&(c.head.extra=null);c.mode=B;case B:if(1024&c.flags&&(la=c.length,la>fa&&(la=fa),la&&(c.head&&(xa=c.head.extra_len-c.length,c.head.extra||(c.head.extra=new Array(c.head.extra_len)),d.arraySet(c.head.extra,aa,ca,la,xa)),512&c.flags&&(c.check=f(c.check,aa,la,ca)),fa-=la,ca+=la,c.length-=la),c.length))break a;c.length=0,c.mode=C;case C:if(2048&c.flags){if(0===fa)break a;la=0;do xa=aa[ca+la++],c.head&&xa&&c.length<65536&&(c.head.name+=String.fromCharCode(xa));while(xa&&la<fa);if(512&c.flags&&(c.check=f(c.check,aa,la,ca)),fa-=la,ca+=la,xa)break a}else c.head&&(c.head.name=null);c.length=0,c.mode=D;case D:if(4096&c.flags){if(0===fa)break a;la=0;do xa=aa[ca+la++],c.head&&xa&&c.length<65536&&(c.head.comment+=String.fromCharCode(xa));while(xa&&la<fa);if(512&c.flags&&(c.check=f(c.check,aa,la,ca)),fa-=la,ca+=la,xa)break a}else c.head&&(c.head.comment=null);c.mode=E;case E:if(512&c.flags){for(;ia<16;){if(0===fa)break a;fa--,ha+=aa[ca++]<<ia,ia+=8}if(ha!==(65535&c.check)){a.msg="header crc mismatch",c.mode=Z;break}ha=0,ia=0}c.head&&(c.head.hcrc=c.flags>>9&1,c.head.done=!0),a.adler=c.check=0,c.mode=H;break;case F:for(;ia<32;){if(0===fa)break a;fa--,ha+=aa[ca++]<<ia,ia+=8}a.adler=c.check=ea(ha),ha=0,ia=0,c.mode=G;case G:if(0===c.havedict)return a.next_out=da,a.avail_out=ga,a.next_in=ca,a.avail_in=fa,c.hold=ha,c.bits=ia,q;a.adler=c.check=1,c.mode=H;case H:if(b===m||b===n)break a;case I:if(c.last){ha>>>=7&ia,ia-=7&ia,c.mode=W;break}for(;ia<3;){if(0===fa)break a;fa--,ha+=aa[ca++]<<ia,ia+=8}switch(c.last=1&ha,ha>>>=1,ia-=1,3&ha){case 0:c.mode=J;break;case 1:if(oa(c),c.mode=P,b===n){ha>>>=2,ia-=2;break a}break;case 2:c.mode=M;break;case 3:a.msg="invalid block type",c.mode=Z}ha>>>=2,ia-=2;break;case J:for(ha>>>=7&ia,ia-=7&ia;ia<32;){if(0===fa)break a;fa--,ha+=aa[ca++]<<ia,ia+=8}if((65535&ha)!==(ha>>>16^65535)){a.msg="invalid stored block lengths",c.mode=Z;break}if(c.length=65535&ha,ha=0,ia=0,c.mode=K,b===n)break a;case K:c.mode=L;case L:if(la=c.length){if(la>fa&&(la=fa),la>ga&&(la=ga),0===la)break a;d.arraySet(ba,aa,ca,la,da),fa-=la,ca+=la,ga-=la,da+=la,c.length-=la;break}c.mode=H;break;case M:for(;ia<14;){if(0===fa)break a;fa--,ha+=aa[ca++]<<ia,ia+=8}if(c.nlen=(31&ha)+257,ha>>>=5,ia-=5,c.ndist=(31&ha)+1,ha>>>=5,ia-=5,c.ncode=(15&ha)+4,ha>>>=4,ia-=4,c.nlen>286||c.ndist>30){a.msg="too many length or distance symbols",c.mode=Z;break}c.have=0,c.mode=N;case N:for(;c.have<c.ncode;){for(;ia<3;){if(0===fa)break a;fa--,ha+=aa[ca++]<<ia,ia+=8}c.lens[Ca[c.have++]]=7&ha,ha>>>=3,ia-=3}for(;c.have<19;)c.lens[Ca[c.have++]]=0;if(c.lencode=c.lendyn,c.lenbits=7,Aa={bits:c.lenbits},ya=h(i,c.lens,0,19,c.lencode,0,c.work,Aa),c.lenbits=Aa.bits,ya){a.msg="invalid code lengths set",c.mode=Z;break}c.have=0,c.mode=O;case O:for(;c.have<c.nlen+c.ndist;){for(;qa=c.lencode[ha&(1<<c.lenbits)-1],ra=qa>>>24,sa=qa>>>16&255,ta=65535&qa,!(ra<=ia);){if(0===fa)break a;fa--,ha+=aa[ca++]<<ia,ia+=8}if(ta<16)ha>>>=ra,ia-=ra,c.lens[c.have++]=ta;else{if(16===ta){for(Ba=ra+2;ia<Ba;){if(0===fa)break a;fa--,ha+=aa[ca++]<<ia,ia+=8}if(ha>>>=ra,ia-=ra,0===c.have){a.msg="invalid bit length repeat",c.mode=Z;break}xa=c.lens[c.have-1],la=3+(3&ha),ha>>>=2,ia-=2}else if(17===ta){for(Ba=ra+3;ia<Ba;){if(0===fa)break a;fa--,ha+=aa[ca++]<<ia,ia+=8}ha>>>=ra,ia-=ra,xa=0,la=3+(7&ha),ha>>>=3,ia-=3}else{for(Ba=ra+7;ia<Ba;){if(0===fa)break a;fa--,ha+=aa[ca++]<<ia,ia+=8}ha>>>=ra,ia-=ra,xa=0,la=11+(127&ha),ha>>>=7,ia-=7}if(c.have+la>c.nlen+c.ndist){a.msg="invalid bit length repeat",c.mode=Z;break}for(;la--;)c.lens[c.have++]=xa}}if(c.mode===Z)break;if(0===c.lens[256]){a.msg="invalid code -- missing end-of-block",c.mode=Z;break}if(c.lenbits=9,Aa={bits:c.lenbits},ya=h(j,c.lens,0,c.nlen,c.lencode,0,c.work,Aa),c.lenbits=Aa.bits,ya){a.msg="invalid literal/lengths set",c.mode=Z;break}if(c.distbits=6,c.distcode=c.distdyn,Aa={bits:c.distbits},ya=h(k,c.lens,c.nlen,c.ndist,c.distcode,0,c.work,Aa),c.distbits=Aa.bits,ya){a.msg="invalid distances set",c.mode=Z;break}if(c.mode=P,b===n)break a;case P:c.mode=Q;case Q:if(fa>=6&&ga>=258){a.next_out=da,a.avail_out=ga,a.next_in=ca,a.avail_in=fa,c.hold=ha,c.bits=ia,g(a,ka),da=a.next_out,ba=a.output,ga=a.avail_out,ca=a.next_in,aa=a.input,fa=a.avail_in,ha=c.hold,ia=c.bits,c.mode===H&&(c.back=-1);break}for(c.back=0;qa=c.lencode[ha&(1<<c.lenbits)-1],ra=qa>>>24,sa=qa>>>16&255,ta=65535&qa,!(ra<=ia);){if(0===fa)break a;fa--,ha+=aa[ca++]<<ia,ia+=8}if(sa&&0===(240&sa)){for(ua=ra,va=sa,wa=ta;qa=c.lencode[wa+((ha&(1<<ua+va)-1)>>ua)],ra=qa>>>24,sa=qa>>>16&255,ta=65535&qa,!(ua+ra<=ia);){if(0===fa)break a;fa--,ha+=aa[ca++]<<ia,ia+=8}ha>>>=ua,ia-=ua,c.back+=ua}if(ha>>>=ra,ia-=ra,c.back+=ra,c.length=ta,0===sa){c.mode=V;break}if(32&sa){c.back=-1,c.mode=H;break}if(64&sa){a.msg="invalid literal/length code",c.mode=Z;break}c.extra=15&sa,c.mode=R;case R:if(c.extra){for(Ba=c.extra;ia<Ba;){if(0===fa)break a;fa--,ha+=aa[ca++]<<ia,ia+=8}c.length+=ha&(1<<c.extra)-1,ha>>>=c.extra,ia-=c.extra,c.back+=c.extra}c.was=c.length,c.mode=S;case S:for(;qa=c.distcode[ha&(1<<c.distbits)-1],ra=qa>>>24,sa=qa>>>16&255,ta=65535&qa,!(ra<=ia);){if(0===fa)break a;fa--,ha+=aa[ca++]<<ia,ia+=8}if(0===(240&sa)){for(ua=ra,va=sa,wa=ta;qa=c.distcode[wa+((ha&(1<<ua+va)-1)>>ua)],ra=qa>>>24,sa=qa>>>16&255,ta=65535&qa,!(ua+ra<=ia);){if(0===fa)break a;fa--,ha+=aa[ca++]<<ia,ia+=8}ha>>>=ua,ia-=ua,c.back+=ua}if(ha>>>=ra,ia-=ra,c.back+=ra,64&sa){a.msg="invalid distance code",c.mode=Z;break}c.offset=ta,c.extra=15&sa,c.mode=T;case T:if(c.extra){for(Ba=c.extra;ia<Ba;){if(0===fa)break a;fa--,ha+=aa[ca++]<<ia,ia+=8}c.offset+=ha&(1<<c.extra)-1,ha>>>=c.extra,ia-=c.extra,c.back+=c.extra}if(c.offset>c.dmax){a.msg="invalid distance too far back",c.mode=Z;break}c.mode=U;case U:if(0===ga)break a;if(la=ka-ga,c.offset>la){if(la=c.offset-la,la>c.whave&&c.sane){a.msg="invalid distance too far back",c.mode=Z;break}la>c.wnext?(la-=c.wnext,ma=c.wsize-la):ma=c.wnext-la,la>c.length&&(la=c.length),na=c.window}else na=ba,ma=da-c.offset,la=c.length;la>ga&&(la=ga),ga-=la,c.length-=la;do ba[da++]=na[ma++];while(--la);0===c.length&&(c.mode=Q);break;case V:if(0===ga)break a;ba[da++]=c.length,ga--,c.mode=Q;break;case W:if(c.wrap){for(;ia<32;){if(0===fa)break a;fa--,ha|=aa[ca++]<<ia,ia+=8}if(ka-=ga,a.total_out+=ka,c.total+=ka,ka&&(a.adler=c.check=c.flags?f(c.check,ba,ka,da-ka):e(c.check,ba,ka,da-ka)),ka=ga,(c.flags?ha:ea(ha))!==c.check){a.msg="incorrect data check",c.mode=Z;break}ha=0,ia=0}c.mode=X;case X:if(c.wrap&&c.flags){for(;ia<32;){if(0===fa)break a;fa--,ha+=aa[ca++]<<ia,ia+=8}if(ha!==(4294967295&c.total)){a.msg="incorrect length check",c.mode=Z;break}ha=0,ia=0}c.mode=Y;case Y:ya=p;break a;case Z:ya=s;break a;case $:return t;case _:default:return r}return a.next_out=da,a.avail_out=ga,a.next_in=ca,a.avail_in=fa,c.hold=ha,c.bits=ia,(c.wsize||ka!==a.avail_out&&c.mode<Z&&(c.mode<W||b!==l))&&pa(a,a.output,a.next_out,ka-a.avail_out)?(c.mode=$,t):(ja-=a.avail_in,ka-=a.avail_out,a.total_in+=ja,a.total_out+=ka,c.total+=ka,c.wrap&&ka&&(a.adler=c.check=c.flags?f(c.check,ba,ka,a.next_out-ka):e(c.check,ba,ka,a.next_out-ka)),a.data_type=c.bits+(c.last?64:0)+(c.mode===H?128:0)+(c.mode===P||c.mode===K?256:0),(0===ja&&0===ka||b===l)&&ya===o&&(ya=u),ya)}function ra(a){if(!a||!a.state)return r;var b=a.state;return b.window&&(b.window=null),a.state=null,o}function sa(a,b){var c;return a&&a.state?(c=a.state,0===(2&c.wrap)?r:(c.head=b,b.done=!1,o)):r}function ta(a,b){var d,f,g,c=b.length;return a&&a.state?(d=a.state,0!==d.wrap&&d.mode!==G?r:d.mode===G&&(f=1,f=e(f,b,c,0),f!==d.check)?s:(g=pa(a,b,c,c))?(d.mode=$,t):(d.havedict=1,o)):r}var ma,na,d=a("../utils/common"),e=a("./adler32"),f=a("./crc32"),g=a("./inffast"),h=a("./inftrees"),i=0,j=1,k=2,l=4,m=5,n=6,o=0,p=1,q=2,r=-2,s=-3,t=-4,u=-5,v=8,w=1,x=2,y=3,z=4,A=5,B=6,C=7,D=8,E=9,F=10,G=11,H=12,I=13,J=14,K=15,L=16,M=17,N=18,O=19,P=20,Q=21,R=22,S=23,T=24,U=25,V=26,W=27,X=28,Y=29,Z=30,$=31,_=32,aa=852,ba=592,ca=15,da=ca,la=!0;c.inflateReset=ha,c.inflateReset2=ia,c.inflateResetKeep=ga,c.inflateInit=ka,c.inflateInit2=ja,c.inflate=qa,c.inflateEnd=ra,c.inflateGetHeader=sa,c.inflateSetDictionary=ta,c.inflateInfo="pako inflate (from Nodeca project)"},{"../utils/common":25,"./adler32":26,"./crc32":28,"./inffast":30,"./inftrees":32}],32:[function(a,b,c){"use strict";var d=a("../utils/common"),e=15,f=852,g=592,h=0,i=1,j=2,k=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],l=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],m=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],n=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];b.exports=function(b,c,o,p,q,r,s,t){var F,G,H,I,J,M,R,S,T,u=t.bits,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,K=null,L=0,N=new d.Buf16(e+1),O=new d.Buf16(e+1),P=null,Q=0;for(v=0;v<=e;v++)N[v]=0;for(w=0;w<p;w++)N[c[o+w]]++;for(z=u,y=e;y>=1&&0===N[y];y--);if(z>y&&(z=y),0===y)return q[r++]=20971520,q[r++]=20971520,t.bits=1,0;for(x=1;x<y&&0===N[x];x++);for(z<x&&(z=x),C=1,v=1;v<=e;v++)if(C<<=1,C-=N[v],C<0)return-1;if(C>0&&(b===h||1!==y))return-1;for(O[1]=0,v=1;v<e;v++)O[v+1]=O[v]+N[v];for(w=0;w<p;w++)0!==c[o+w]&&(s[O[c[o+w]]++]=w);if(b===h?(K=P=s,M=19):b===i?(K=k,L-=257,P=l,Q-=257,M=256):(K=m,P=n,M=-1),E=0,w=0,v=x,J=r,A=z,B=0,H=-1,D=1<<z,I=D-1,b===i&&D>f||b===j&&D>g)return 1;for(var U=0;;){U++,R=v-B,s[w]<M?(S=0,T=s[w]):s[w]>M?(S=P[Q+s[w]],T=K[L+s[w]]):(S=96,T=0),F=1<<v-B,G=1<<A,x=G;do G-=F,q[J+(E>>B)+G]=R<<24|S<<16|T|0;while(0!==G);for(F=1<<v-1;E&F;)F>>=1;if(0!==F?(E&=F-1,E+=F):E=0,w++,0===--N[v]){if(v===y)break;v=c[o+s[w]]}if(v>z&&(E&I)!==H){for(0===B&&(B=z),J+=x,A=v-B,C=1<<A;A+B<y&&(C-=N[A+B],!(C<=0));)A++,C<<=1;if(D+=1<<A,b===i&&D>f||b===j&&D>g)return 1;H=E&I,q[H]=z<<24|A<<16|J-r|0}}return 0!==E&&(q[J+E]=v-B<<24|64<<16|0),t.bits=z,0}},{"../utils/common":25}],33:[function(a,b,c){"use strict";b.exports={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}},{}],34:[function(a,b,c){"use strict";function i(a){for(var b=a.length;--b>=0;)a[b]=0}function M(a,b,c,d,e){this.static_tree=a,this.extra_bits=b,this.extra_base=c,this.elems=d,this.max_length=e,this.has_stree=a&&a.length}function Q(a,b){this.dyn_tree=a,this.max_code=0,this.stat_desc=b}function R(a){return a<256?I[a]:I[256+(a>>>7)]}function S(a,b){a.pending_buf[a.pending++]=255&b,
  a.pending_buf[a.pending++]=b>>>8&255}function T(a,b,c){a.bi_valid>v-c?(a.bi_buf|=b<<a.bi_valid&65535,S(a,a.bi_buf),a.bi_buf=b>>v-a.bi_valid,a.bi_valid+=c-v):(a.bi_buf|=b<<a.bi_valid&65535,a.bi_valid+=c)}function U(a,b,c){T(a,c[2*b],c[2*b+1])}function V(a,b){var c=0;do c|=1&a,a>>>=1,c<<=1;while(--b>0);return c>>>1}function W(a){16===a.bi_valid?(S(a,a.bi_buf),a.bi_buf=0,a.bi_valid=0):a.bi_valid>=8&&(a.pending_buf[a.pending++]=255&a.bi_buf,a.bi_buf>>=8,a.bi_valid-=8)}function X(a,b){var j,k,l,m,n,o,c=b.dyn_tree,d=b.max_code,e=b.stat_desc.static_tree,f=b.stat_desc.has_stree,g=b.stat_desc.extra_bits,h=b.stat_desc.extra_base,i=b.stat_desc.max_length,p=0;for(m=0;m<=u;m++)a.bl_count[m]=0;for(c[2*a.heap[a.heap_max]+1]=0,j=a.heap_max+1;j<t;j++)k=a.heap[j],m=c[2*c[2*k+1]+1]+1,m>i&&(m=i,p++),c[2*k+1]=m,k>d||(a.bl_count[m]++,n=0,k>=h&&(n=g[k-h]),o=c[2*k],a.opt_len+=o*(m+n),f&&(a.static_len+=o*(e[2*k+1]+n)));if(0!==p){do{for(m=i-1;0===a.bl_count[m];)m--;a.bl_count[m]--,a.bl_count[m+1]+=2,a.bl_count[i]--,p-=2}while(p>0);for(m=i;0!==m;m--)for(k=a.bl_count[m];0!==k;)l=a.heap[--j],l>d||(c[2*l+1]!==m&&(a.opt_len+=(m-c[2*l+1])*c[2*l],c[2*l+1]=m),k--)}}function Y(a,b,c){var f,g,d=new Array(u+1),e=0;for(f=1;f<=u;f++)d[f]=e=e+c[f-1]<<1;for(g=0;g<=b;g++){var h=a[2*g+1];0!==h&&(a[2*g]=V(d[h]++,h))}}function Z(){var a,b,c,d,e,f=new Array(u+1);for(c=0,d=0;d<o-1;d++)for(K[d]=c,a=0;a<1<<B[d];a++)J[c++]=d;for(J[c-1]=d,e=0,d=0;d<16;d++)for(L[d]=e,a=0;a<1<<C[d];a++)I[e++]=d;for(e>>=7;d<r;d++)for(L[d]=e<<7,a=0;a<1<<C[d]-7;a++)I[256+e++]=d;for(b=0;b<=u;b++)f[b]=0;for(a=0;a<=143;)G[2*a+1]=8,a++,f[8]++;for(;a<=255;)G[2*a+1]=9,a++,f[9]++;for(;a<=279;)G[2*a+1]=7,a++,f[7]++;for(;a<=287;)G[2*a+1]=8,a++,f[8]++;for(Y(G,q+1,f),a=0;a<r;a++)H[2*a+1]=5,H[2*a]=V(a,5);N=new M(G,B,p+1,q,u),O=new M(H,C,0,r,u),P=new M(new Array(0),D,0,s,w)}function $(a){var b;for(b=0;b<q;b++)a.dyn_ltree[2*b]=0;for(b=0;b<r;b++)a.dyn_dtree[2*b]=0;for(b=0;b<s;b++)a.bl_tree[2*b]=0;a.dyn_ltree[2*x]=1,a.opt_len=a.static_len=0,a.last_lit=a.matches=0}function _(a){a.bi_valid>8?S(a,a.bi_buf):a.bi_valid>0&&(a.pending_buf[a.pending++]=a.bi_buf),a.bi_buf=0,a.bi_valid=0}function aa(a,b,c,e){_(a),e&&(S(a,c),S(a,~c)),d.arraySet(a.pending_buf,a.window,b,c,a.pending),a.pending+=c}function ba(a,b,c,d){var e=2*b,f=2*c;return a[e]<a[f]||a[e]===a[f]&&d[b]<=d[c]}function ca(a,b,c){for(var d=a.heap[c],e=c<<1;e<=a.heap_len&&(e<a.heap_len&&ba(b,a.heap[e+1],a.heap[e],a.depth)&&e++,!ba(b,d,a.heap[e],a.depth));)a.heap[c]=a.heap[e],c=e,e<<=1;a.heap[c]=d}function da(a,b,c){var d,e,g,h,f=0;if(0!==a.last_lit)do d=a.pending_buf[a.d_buf+2*f]<<8|a.pending_buf[a.d_buf+2*f+1],e=a.pending_buf[a.l_buf+f],f++,0===d?U(a,e,b):(g=J[e],U(a,g+p+1,b),h=B[g],0!==h&&(e-=K[g],T(a,e,h)),d--,g=R(d),U(a,g,c),h=C[g],0!==h&&(d-=L[g],T(a,d,h)));while(f<a.last_lit);U(a,x,b)}function ea(a,b){var g,h,j,c=b.dyn_tree,d=b.stat_desc.static_tree,e=b.stat_desc.has_stree,f=b.stat_desc.elems,i=-1;for(a.heap_len=0,a.heap_max=t,g=0;g<f;g++)0!==c[2*g]?(a.heap[++a.heap_len]=i=g,a.depth[g]=0):c[2*g+1]=0;for(;a.heap_len<2;)j=a.heap[++a.heap_len]=i<2?++i:0,c[2*j]=1,a.depth[j]=0,a.opt_len--,e&&(a.static_len-=d[2*j+1]);for(b.max_code=i,g=a.heap_len>>1;g>=1;g--)ca(a,c,g);j=f;do g=a.heap[1],a.heap[1]=a.heap[a.heap_len--],ca(a,c,1),h=a.heap[1],a.heap[--a.heap_max]=g,a.heap[--a.heap_max]=h,c[2*j]=c[2*g]+c[2*h],a.depth[j]=(a.depth[g]>=a.depth[h]?a.depth[g]:a.depth[h])+1,c[2*g+1]=c[2*h+1]=j,a.heap[1]=j++,ca(a,c,1);while(a.heap_len>=2);a.heap[--a.heap_max]=a.heap[1],X(a,b),Y(c,i,a.bl_count)}function fa(a,b,c){var d,f,e=-1,g=b[1],h=0,i=7,j=4;for(0===g&&(i=138,j=3),b[2*(c+1)+1]=65535,d=0;d<=c;d++)f=g,g=b[2*(d+1)+1],++h<i&&f===g||(h<j?a.bl_tree[2*f]+=h:0!==f?(f!==e&&a.bl_tree[2*f]++,a.bl_tree[2*y]++):h<=10?a.bl_tree[2*z]++:a.bl_tree[2*A]++,h=0,e=f,0===g?(i=138,j=3):f===g?(i=6,j=3):(i=7,j=4))}function ga(a,b,c){var d,f,e=-1,g=b[1],h=0,i=7,j=4;for(0===g&&(i=138,j=3),d=0;d<=c;d++)if(f=g,g=b[2*(d+1)+1],!(++h<i&&f===g)){if(h<j){do U(a,f,a.bl_tree);while(0!==--h)}else 0!==f?(f!==e&&(U(a,f,a.bl_tree),h--),U(a,y,a.bl_tree),T(a,h-3,2)):h<=10?(U(a,z,a.bl_tree),T(a,h-3,3)):(U(a,A,a.bl_tree),T(a,h-11,7));h=0,e=f,0===g?(i=138,j=3):f===g?(i=6,j=3):(i=7,j=4)}}function ha(a){var b;for(fa(a,a.dyn_ltree,a.l_desc.max_code),fa(a,a.dyn_dtree,a.d_desc.max_code),ea(a,a.bl_desc),b=s-1;b>=3&&0===a.bl_tree[2*E[b]+1];b--);return a.opt_len+=3*(b+1)+5+5+4,b}function ia(a,b,c,d){var e;for(T(a,b-257,5),T(a,c-1,5),T(a,d-4,4),e=0;e<d;e++)T(a,a.bl_tree[2*E[e]+1],3);ga(a,a.dyn_ltree,b-1),ga(a,a.dyn_dtree,c-1)}function ja(a){var c,b=4093624447;for(c=0;c<=31;c++,b>>>=1)if(1&b&&0!==a.dyn_ltree[2*c])return f;if(0!==a.dyn_ltree[18]||0!==a.dyn_ltree[20]||0!==a.dyn_ltree[26])return g;for(c=32;c<p;c++)if(0!==a.dyn_ltree[2*c])return g;return f}function la(a){ka||(Z(),ka=!0),a.l_desc=new Q(a.dyn_ltree,N),a.d_desc=new Q(a.dyn_dtree,O),a.bl_desc=new Q(a.bl_tree,P),a.bi_buf=0,a.bi_valid=0,$(a)}function ma(a,b,c,d){T(a,(j<<1)+(d?1:0),3),aa(a,b,c,!0)}function na(a){T(a,k<<1,3),U(a,x,G),W(a)}function oa(a,b,c,d){var f,g,i=0;a.level>0?(a.strm.data_type===h&&(a.strm.data_type=ja(a)),ea(a,a.l_desc),ea(a,a.d_desc),i=ha(a),f=a.opt_len+3+7>>>3,g=a.static_len+3+7>>>3,g<=f&&(f=g)):f=g=c+5,c+4<=f&&b!==-1?ma(a,b,c,d):a.strategy===e||g===f?(T(a,(k<<1)+(d?1:0),3),da(a,G,H)):(T(a,(l<<1)+(d?1:0),3),ia(a,a.l_desc.max_code+1,a.d_desc.max_code+1,i+1),da(a,a.dyn_ltree,a.dyn_dtree)),$(a),d&&_(a)}function pa(a,b,c){return a.pending_buf[a.d_buf+2*a.last_lit]=b>>>8&255,a.pending_buf[a.d_buf+2*a.last_lit+1]=255&b,a.pending_buf[a.l_buf+a.last_lit]=255&c,a.last_lit++,0===b?a.dyn_ltree[2*c]++:(a.matches++,b--,a.dyn_ltree[2*(J[c]+p+1)]++,a.dyn_dtree[2*R(b)]++),a.last_lit===a.lit_bufsize-1}var d=a("../utils/common"),e=4,f=0,g=1,h=2,j=0,k=1,l=2,m=3,n=258,o=29,p=256,q=p+1+o,r=30,s=19,t=2*q+1,u=15,v=16,w=7,x=256,y=16,z=17,A=18,B=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],C=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],D=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],E=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],F=512,G=new Array(2*(q+2));i(G);var H=new Array(2*r);i(H);var I=new Array(F);i(I);var J=new Array(n-m+1);i(J);var K=new Array(o);i(K);var L=new Array(r);i(L);var N,O,P,ka=!1;c._tr_init=la,c._tr_stored_block=ma,c._tr_flush_block=oa,c._tr_tally=pa,c._tr_align=na},{"../utils/common":25}],35:[function(a,b,c){"use strict";function d(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}b.exports=d},{}],36:[function(a,b,c){(function(b,d){function k(a){if(a<c.DEFLATE||a>c.UNZIP)throw new TypeError("Bad argument");this.mode=a,this.init_done=!1,this.write_in_progress=!1,this.pending_close=!1,this.windowBits=0,this.level=0,this.memLevel=0,this.strategy=0,this.dictionary=null}function l(a,b){for(var c=0;c<a.length;c++)this[b+c]=a[c]}var e=a("pako/lib/zlib/messages"),f=a("pako/lib/zlib/zstream"),g=a("pako/lib/zlib/deflate.js"),h=a("pako/lib/zlib/inflate.js"),i=a("pako/lib/zlib/constants");for(var j in i)c[j]=i[j];c.NONE=0,c.DEFLATE=1,c.INFLATE=2,c.GZIP=3,c.GUNZIP=4,c.DEFLATERAW=5,c.INFLATERAW=6,c.UNZIP=7,k.prototype.init=function(a,b,d,e,i){switch(this.windowBits=a,this.level=b,this.memLevel=d,this.strategy=e,this.mode!==c.GZIP&&this.mode!==c.GUNZIP||(this.windowBits+=16),this.mode===c.UNZIP&&(this.windowBits+=32),this.mode!==c.DEFLATERAW&&this.mode!==c.INFLATERAW||(this.windowBits=-this.windowBits),this.strm=new f,this.mode){case c.DEFLATE:case c.GZIP:case c.DEFLATERAW:var j=g.deflateInit2(this.strm,this.level,c.Z_DEFLATED,this.windowBits,this.memLevel,this.strategy);break;case c.INFLATE:case c.GUNZIP:case c.INFLATERAW:case c.UNZIP:var j=h.inflateInit2(this.strm,this.windowBits);break;default:throw new Error("Unknown mode "+this.mode)}return j!==c.Z_OK?void this._error(j):(this.write_in_progress=!1,void(this.init_done=!0))},k.prototype.params=function(){throw new Error("deflateParams Not supported")},k.prototype._writeCheck=function(){if(!this.init_done)throw new Error("write before init");if(this.mode===c.NONE)throw new Error("already finalized");if(this.write_in_progress)throw new Error("write already in progress");if(this.pending_close)throw new Error("close is pending")},k.prototype.write=function(a,c,d,e,f,g,h){this._writeCheck(),this.write_in_progress=!0;var i=this;return b.nextTick(function(){i.write_in_progress=!1;var b=i._write(a,c,d,e,f,g,h);i.callback(b[0],b[1]),i.pending_close&&i.close()}),this},k.prototype.writeSync=function(a,b,c,d,e,f,g){return this._writeCheck(),this._write(a,b,c,d,e,f,g)},k.prototype._write=function(a,b,e,f,i,j,k){if(this.write_in_progress=!0,a!==c.Z_NO_FLUSH&&a!==c.Z_PARTIAL_FLUSH&&a!==c.Z_SYNC_FLUSH&&a!==c.Z_FULL_FLUSH&&a!==c.Z_FINISH&&a!==c.Z_BLOCK)throw new Error("Invalid flush value");null==b&&(b=new d(0),f=0,e=0),i._set?i.set=i._set:i.set=l;var m=this.strm;switch(m.avail_in=f,m.input=b,m.next_in=e,m.avail_out=k,m.output=i,m.next_out=j,this.mode){case c.DEFLATE:case c.GZIP:case c.DEFLATERAW:var n=g.deflate(m,a);break;case c.UNZIP:case c.INFLATE:case c.GUNZIP:case c.INFLATERAW:var n=h.inflate(m,a);break;default:throw new Error("Unknown mode "+this.mode)}return n!==c.Z_STREAM_END&&n!==c.Z_OK&&this._error(n),this.write_in_progress=!1,[m.avail_in,m.avail_out]},k.prototype.close=function(){return this.write_in_progress?void(this.pending_close=!0):(this.pending_close=!1,this.mode===c.DEFLATE||this.mode===c.GZIP||this.mode===c.DEFLATERAW?g.deflateEnd(this.strm):h.inflateEnd(this.strm),void(this.mode=c.NONE))},k.prototype.reset=function(){switch(this.mode){case c.DEFLATE:case c.DEFLATERAW:var a=g.deflateReset(this.strm);break;case c.INFLATE:case c.INFLATERAW:var a=h.inflateReset(this.strm)}a!==c.Z_OK&&this._error(a)},k.prototype._error=function(a){this.onerror(e[a]+": "+this.strm.msg,a),this.write_in_progress=!1,this.pending_close&&this.close()},c.Zlib=k}).call(this,a("_process"),a("buffer").Buffer)},{_process:45,buffer:38,"pako/lib/zlib/constants":27,"pako/lib/zlib/deflate.js":29,"pako/lib/zlib/inflate.js":31,"pako/lib/zlib/messages":33,"pako/lib/zlib/zstream":35}],37:[function(a,b,c){(function(b,d){function i(a,b,c){function g(){for(var b;null!==(b=a.read());)e.push(b),f+=b.length;a.once("readable",g)}function h(b){a.removeListener("end",i),a.removeListener("readable",g),c(b)}function i(){var b=d.concat(e,f);e=[],c(null,b),a.close()}var e=[],f=0;a.on("error",h),a.on("end",i),a.end(b),g()}function j(a,b){if("string"==typeof b&&(b=new d(b)),!d.isBuffer(b))throw new TypeError("Not a string or buffer");var c=f.Z_FINISH;return a._processChunk(b,c)}function k(a){return this instanceof k?void r.call(this,a,f.DEFLATE):new k(a)}function l(a){return this instanceof l?void r.call(this,a,f.INFLATE):new l(a)}function m(a){return this instanceof m?void r.call(this,a,f.GZIP):new m(a)}function n(a){return this instanceof n?void r.call(this,a,f.GUNZIP):new n(a)}function o(a){return this instanceof o?void r.call(this,a,f.DEFLATERAW):new o(a)}function p(a){return this instanceof p?void r.call(this,a,f.INFLATERAW):new p(a)}function q(a){return this instanceof q?void r.call(this,a,f.UNZIP):new q(a)}function r(a,b){if(this._opts=a=a||{},this._chunkSize=a.chunkSize||c.Z_DEFAULT_CHUNK,e.call(this,a),a.flush&&a.flush!==f.Z_NO_FLUSH&&a.flush!==f.Z_PARTIAL_FLUSH&&a.flush!==f.Z_SYNC_FLUSH&&a.flush!==f.Z_FULL_FLUSH&&a.flush!==f.Z_FINISH&&a.flush!==f.Z_BLOCK)throw new Error("Invalid flush flag: "+a.flush);if(this._flushFlag=a.flush||f.Z_NO_FLUSH,a.chunkSize&&(a.chunkSize<c.Z_MIN_CHUNK||a.chunkSize>c.Z_MAX_CHUNK))throw new Error("Invalid chunk size: "+a.chunkSize);if(a.windowBits&&(a.windowBits<c.Z_MIN_WINDOWBITS||a.windowBits>c.Z_MAX_WINDOWBITS))throw new Error("Invalid windowBits: "+a.windowBits);if(a.level&&(a.level<c.Z_MIN_LEVEL||a.level>c.Z_MAX_LEVEL))throw new Error("Invalid compression level: "+a.level);if(a.memLevel&&(a.memLevel<c.Z_MIN_MEMLEVEL||a.memLevel>c.Z_MAX_MEMLEVEL))throw new Error("Invalid memLevel: "+a.memLevel);if(a.strategy&&a.strategy!=c.Z_FILTERED&&a.strategy!=c.Z_HUFFMAN_ONLY&&a.strategy!=c.Z_RLE&&a.strategy!=c.Z_FIXED&&a.strategy!=c.Z_DEFAULT_STRATEGY)throw new Error("Invalid strategy: "+a.strategy);if(a.dictionary&&!d.isBuffer(a.dictionary))throw new Error("Invalid dictionary: it should be a Buffer instance");this._binding=new f.Zlib(b);var g=this;this._hadError=!1,this._binding.onerror=function(a,b){g._binding=null,g._hadError=!0;var d=new Error(a);d.errno=b,d.code=c.codes[b],g.emit("error",d)};var h=c.Z_DEFAULT_COMPRESSION;"number"==typeof a.level&&(h=a.level);var i=c.Z_DEFAULT_STRATEGY;"number"==typeof a.strategy&&(i=a.strategy),this._binding.init(a.windowBits||c.Z_DEFAULT_WINDOWBITS,h,a.memLevel||c.Z_DEFAULT_MEMLEVEL,i,a.dictionary),this._buffer=new d(this._chunkSize),this._offset=0,this._closed=!1,this._level=h,this._strategy=i,this.once("end",this.close)}var e=a("_stream_transform"),f=a("./binding"),g=a("util"),h=a("assert").ok;f.Z_MIN_WINDOWBITS=8,f.Z_MAX_WINDOWBITS=15,f.Z_DEFAULT_WINDOWBITS=15,f.Z_MIN_CHUNK=64,f.Z_MAX_CHUNK=1/0,f.Z_DEFAULT_CHUNK=16384,f.Z_MIN_MEMLEVEL=1,f.Z_MAX_MEMLEVEL=9,f.Z_DEFAULT_MEMLEVEL=8,f.Z_MIN_LEVEL=-1,f.Z_MAX_LEVEL=9,f.Z_DEFAULT_LEVEL=f.Z_DEFAULT_COMPRESSION,Object.keys(f).forEach(function(a){a.match(/^Z/)&&(c[a]=f[a])}),c.codes={Z_OK:f.Z_OK,Z_STREAM_END:f.Z_STREAM_END,Z_NEED_DICT:f.Z_NEED_DICT,Z_ERRNO:f.Z_ERRNO,Z_STREAM_ERROR:f.Z_STREAM_ERROR,Z_DATA_ERROR:f.Z_DATA_ERROR,Z_MEM_ERROR:f.Z_MEM_ERROR,Z_BUF_ERROR:f.Z_BUF_ERROR,Z_VERSION_ERROR:f.Z_VERSION_ERROR},Object.keys(c.codes).forEach(function(a){c.codes[c.codes[a]]=a}),c.Deflate=k,c.Inflate=l,c.Gzip=m,c.Gunzip=n,c.DeflateRaw=o,c.InflateRaw=p,c.Unzip=q,c.createDeflate=function(a){return new k(a)},c.createInflate=function(a){return new l(a)},c.createDeflateRaw=function(a){return new o(a)},c.createInflateRaw=function(a){return new p(a)},c.createGzip=function(a){return new m(a)},c.createGunzip=function(a){return new n(a)},c.createUnzip=function(a){return new q(a)},c.deflate=function(a,b,c){return"function"==typeof b&&(c=b,b={}),i(new k(b),a,c)},c.deflateSync=function(a,b){return j(new k(b),a)},c.gzip=function(a,b,c){return"function"==typeof b&&(c=b,b={}),i(new m(b),a,c)},c.gzipSync=function(a,b){return j(new m(b),a)},c.deflateRaw=function(a,b,c){return"function"==typeof b&&(c=b,b={}),i(new o(b),a,c)},c.deflateRawSync=function(a,b){return j(new o(b),a)},c.unzip=function(a,b,c){return"function"==typeof b&&(c=b,b={}),i(new q(b),a,c)},c.unzipSync=function(a,b){return j(new q(b),a)},c.inflate=function(a,b,c){return"function"==typeof b&&(c=b,b={}),i(new l(b),a,c)},c.inflateSync=function(a,b){return j(new l(b),a)},c.gunzip=function(a,b,c){return"function"==typeof b&&(c=b,b={}),i(new n(b),a,c)},c.gunzipSync=function(a,b){return j(new n(b),a)},c.inflateRaw=function(a,b,c){return"function"==typeof b&&(c=b,b={}),i(new p(b),a,c)},c.inflateRawSync=function(a,b){return j(new p(b),a)},g.inherits(r,e),r.prototype.params=function(a,d,e){if(a<c.Z_MIN_LEVEL||a>c.Z_MAX_LEVEL)throw new RangeError("Invalid compression level: "+a);if(d!=c.Z_FILTERED&&d!=c.Z_HUFFMAN_ONLY&&d!=c.Z_RLE&&d!=c.Z_FIXED&&d!=c.Z_DEFAULT_STRATEGY)throw new TypeError("Invalid strategy: "+d);if(this._level!==a||this._strategy!==d){var g=this;this.flush(f.Z_SYNC_FLUSH,function(){g._binding.params(a,d),g._hadError||(g._level=a,g._strategy=d,e&&e())})}else b.nextTick(e)},r.prototype.reset=function(){return this._binding.reset()},r.prototype._flush=function(a){this._transform(new d(0),"",a)},r.prototype.flush=function(a,c){var e=this._writableState;if(("function"==typeof a||void 0===a&&!c)&&(c=a,a=f.Z_FULL_FLUSH),e.ended)c&&b.nextTick(c);else if(e.ending)c&&this.once("end",c);else if(e.needDrain){var g=this;this.once("drain",function(){g.flush(c)})}else this._flushFlag=a,this.write(new d(0),"",c)},r.prototype.close=function(a){if(a&&b.nextTick(a),!this._closed){this._closed=!0,this._binding.close();var c=this;b.nextTick(function(){c.emit("close")})}},r.prototype._transform=function(a,b,c){var e,g=this._writableState,h=g.ending||g.ended,i=h&&(!a||g.length===a.length);if(null===!a&&!d.isBuffer(a))return c(new Error("invalid input"));i?e=f.Z_FINISH:(e=this._flushFlag,a.length>=g.length&&(this._flushFlag=this._opts.flush||f.Z_NO_FLUSH));this._processChunk(a,e,c)},r.prototype._processChunk=function(a,b,c){function q(m,n){if(!i._hadError){var o=f-n;if(h(o>=0,"have should not go down"),o>0){var p=i._buffer.slice(i._offset,i._offset+o);i._offset+=o,j?i.push(p):(k.push(p),l+=p.length)}if((0===n||i._offset>=i._chunkSize)&&(f=i._chunkSize,i._offset=0,i._buffer=new d(i._chunkSize)),0===n){if(g+=e-m,e=m,!j)return!0;var r=i._binding.write(b,a,g,e,i._buffer,i._offset,i._chunkSize);return r.callback=q,void(r.buffer=a)}return!!j&&void c()}}var e=a&&a.length,f=this._chunkSize-this._offset,g=0,i=this,j="function"==typeof c;if(!j){var m,k=[],l=0;this.on("error",function(a){m=a});do var n=this._binding.writeSync(b,a,g,e,this._buffer,this._offset,f);while(!this._hadError&&q(n[0],n[1]));if(this._hadError)throw m;var o=d.concat(k,l);return this.close(),o}var p=this._binding.write(b,a,g,e,this._buffer,this._offset,f);p.buffer=a,p.callback=q},g.inherits(k,r),g.inherits(l,r),g.inherits(m,r),g.inherits(n,r),g.inherits(o,r),g.inherits(p,r),g.inherits(q,r)}).call(this,a("_process"),a("buffer").Buffer)},{"./binding":36,_process:45,_stream_transform:59,assert:23,buffer:38,util:64}],38:[function(a,b,c){(function(b){"use strict";function g(){try{var a=new Uint8Array(1);return a.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===a.foo()&&"function"==typeof a.subarray&&0===a.subarray(1,1).byteLength}catch(a){return!1}}function h(){return j.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function i(a,b){if(h()<b)throw new RangeError("Invalid typed array length");return j.TYPED_ARRAY_SUPPORT?(a=new Uint8Array(b),a.__proto__=j.prototype):(null===a&&(a=new j(b)),a.length=b),a}function j(a,b,c){if(!(j.TYPED_ARRAY_SUPPORT||this instanceof j))return new j(a,b,c);if("number"==typeof a){if("string"==typeof b)throw new Error("If encoding is specified then the first argument must be a string");return n(this,a)}return k(this,a,b,c)}function k(a,b,c,d){if("number"==typeof b)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&b instanceof ArrayBuffer?q(a,b,c,d):"string"==typeof b?o(a,b,c):r(a,b)}function l(a){if("number"!=typeof a)throw new TypeError('"size" argument must be a number')}function m(a,b,c,d){return l(b),b<=0?i(a,b):void 0!==c?"string"==typeof d?i(a,b).fill(c,d):i(a,b).fill(c):i(a,b)}function n(a,b){if(l(b),a=i(a,b<0?0:0|s(b)),!j.TYPED_ARRAY_SUPPORT)for(var c=0;c<b;++c)a[c]=0;return a}function o(a,b,c){if("string"==typeof c&&""!==c||(c="utf8"),!j.isEncoding(c))throw new TypeError('"encoding" must be a valid string encoding');var d=0|u(b,c);return a=i(a,d),a.write(b,c),a}function p(a,b){var c=0|s(b.length);a=i(a,c);for(var d=0;d<c;d+=1)a[d]=255&b[d];return a}function q(a,b,c,d){if(b.byteLength,c<0||b.byteLength<c)throw new RangeError("'offset' is out of bounds");if(b.byteLength<c+(d||0))throw new RangeError("'length' is out of bounds");return b=void 0===c&&void 0===d?new Uint8Array(b):void 0===d?new Uint8Array(b,c):new Uint8Array(b,c,d),j.TYPED_ARRAY_SUPPORT?(a=b,a.__proto__=j.prototype):a=p(a,b),a}function r(a,b){if(j.isBuffer(b)){var c=0|s(b.length);return a=i(a,c),0===a.length?a:(b.copy(a,0,0,c),a)}if(b){if("undefined"!=typeof ArrayBuffer&&b.buffer instanceof ArrayBuffer||"length"in b)return"number"!=typeof b.length||aa(b.length)?i(a,0):p(a,b);if("Buffer"===b.type&&f(b.data))return p(a,b.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function s(a){if(a>=h())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+h().toString(16)+" bytes");return 0|a}function t(a){return+a!=a&&(a=0),j.alloc(+a)}function u(a,b){if(j.isBuffer(a))return a.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(a)||a instanceof ArrayBuffer))return a.byteLength;"string"!=typeof a&&(a=""+a);var c=a.length;if(0===c)return 0;for(var d=!1;;)switch(b){case"ascii":case"binary":case"raw":case"raws":return c;case"utf8":case"utf-8":case void 0:return X(a).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*c;case"hex":return c>>>1;case"base64":return $(a).length;default:if(d)return X(a).length;b=(""+b).toLowerCase(),d=!0}}function v(a,b,c){var d=!1;if((void 0===b||b<0)&&(b=0),b>this.length)return"";if((void 0===c||c>this.length)&&(c=this.length),c<=0)return"";if(c>>>=0,b>>>=0,c<=b)return"";for(a||(a="utf8");;)switch(a){case"hex":return K(this,b,c);case"utf8":case"utf-8":return F(this,b,c);case"ascii":return I(this,b,c);case"binary":return J(this,b,c);case"base64":return E(this,b,c);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return L(this,b,c);default:if(d)throw new TypeError("Unknown encoding: "+a);a=(a+"").toLowerCase(),d=!0}}function w(a,b,c){var d=a[b];a[b]=a[c],a[c]=d}function x(a,b,c,d){function h(a,b){return 1===e?a[b]:a.readUInt16BE(b*e)}var e=1,f=a.length,g=b.length;if(void 0!==d&&(d=String(d).toLowerCase(),"ucs2"===d||"ucs-2"===d||"utf16le"===d||"utf-16le"===d)){if(a.length<2||b.length<2)return-1;e=2,f/=2,g/=2,c/=2}for(var i=-1,j=c;j<f;++j)if(h(a,j)===h(b,i===-1?0:j-i)){if(i===-1&&(i=j),j-i+1===g)return i*e}else i!==-1&&(j-=j-i),i=-1;return-1}function y(a,b,c,d){c=Number(c)||0;var e=a.length-c;d?(d=Number(d),d>e&&(d=e)):d=e;var f=b.length;if(f%2!==0)throw new Error("Invalid hex string");d>f/2&&(d=f/2);for(var g=0;g<d;++g){var h=parseInt(b.substr(2*g,2),16);if(isNaN(h))return g;a[c+g]=h}return g}function z(a,b,c,d){return _(X(b,a.length-c),a,c,d)}function A(a,b,c,d){return _(Y(b),a,c,d)}function B(a,b,c,d){return A(a,b,c,d)}function C(a,b,c,d){return _($(b),a,c,d)}function D(a,b,c,d){return _(Z(b,a.length-c),a,c,d)}function E(a,b,c){return 0===b&&c===a.length?d.fromByteArray(a):d.fromByteArray(a.slice(b,c))}function F(a,b,c){c=Math.min(a.length,c);for(var d=[],e=b;e<c;){var f=a[e],g=null,h=f>239?4:f>223?3:f>191?2:1;if(e+h<=c){var i,j,k,l;switch(h){case 1:f<128&&(g=f);break;case 2:i=a[e+1],128===(192&i)&&(l=(31&f)<<6|63&i,l>127&&(g=l));break;case 3:i=a[e+1],j=a[e+2],128===(192&i)&&128===(192&j)&&(l=(15&f)<<12|(63&i)<<6|63&j,l>2047&&(l<55296||l>57343)&&(g=l));break;case 4:i=a[e+1],j=a[e+2],k=a[e+3],128===(192&i)&&128===(192&j)&&128===(192&k)&&(l=(15&f)<<18|(63&i)<<12|(63&j)<<6|63&k,l>65535&&l<1114112&&(g=l))}}null===g?(g=65533,h=1):g>65535&&(g-=65536,d.push(g>>>10&1023|55296),g=56320|1023&g),d.push(g),e+=h}return H(d)}function H(a){var b=a.length;if(b<=G)return String.fromCharCode.apply(String,a);for(var c="",d=0;d<b;)c+=String.fromCharCode.apply(String,a.slice(d,d+=G));return c}function I(a,b,c){var d="";c=Math.min(a.length,c);for(var e=b;e<c;++e)d+=String.fromCharCode(127&a[e]);return d}function J(a,b,c){var d="";c=Math.min(a.length,c);for(var e=b;e<c;++e)d+=String.fromCharCode(a[e]);return d}function K(a,b,c){var d=a.length;(!b||b<0)&&(b=0),(!c||c<0||c>d)&&(c=d);for(var e="",f=b;f<c;++f)e+=W(a[f]);return e}function L(a,b,c){for(var d=a.slice(b,c),e="",f=0;f<d.length;f+=2)e+=String.fromCharCode(d[f]+256*d[f+1]);return e}function M(a,b,c){if(a%1!==0||a<0)throw new RangeError("offset is not uint");if(a+b>c)throw new RangeError("Trying to access beyond buffer length")}function N(a,b,c,d,e,f){if(!j.isBuffer(a))throw new TypeError('"buffer" argument must be a Buffer instance');if(b>e||b<f)throw new RangeError('"value" argument is out of bounds');if(c+d>a.length)throw new RangeError("Index out of range")}function O(a,b,c,d){b<0&&(b=65535+b+1);for(var e=0,f=Math.min(a.length-c,2);e<f;++e)a[c+e]=(b&255<<8*(d?e:1-e))>>>8*(d?e:1-e)}function P(a,b,c,d){b<0&&(b=4294967295+b+1);for(var e=0,f=Math.min(a.length-c,4);e<f;++e)a[c+e]=b>>>8*(d?e:3-e)&255}function Q(a,b,c,d,e,f){if(c+d>a.length)throw new RangeError("Index out of range");if(c<0)throw new RangeError("Index out of range")}function R(a,b,c,d,f){return f||Q(a,b,c,4,3.4028234663852886e38,-3.4028234663852886e38),e.write(a,b,c,d,23,4),c+4}function S(a,b,c,d,f){return f||Q(a,b,c,8,1.7976931348623157e308,-1.7976931348623157e308),e.write(a,b,c,d,52,8),c+8}function U(a){if(a=V(a).replace(T,""),a.length<2)return"";for(;a.length%4!==0;)a+="=";return a}function V(a){return a.trim?a.trim():a.replace(/^\s+|\s+$/g,"")}function W(a){return a<16?"0"+a.toString(16):a.toString(16)}function X(a,b){b=b||1/0;for(var c,d=a.length,e=null,f=[],g=0;g<d;++g){if(c=a.charCodeAt(g),c>55295&&c<57344){if(!e){if(c>56319){(b-=3)>-1&&f.push(239,191,189);continue}if(g+1===d){(b-=3)>-1&&f.push(239,191,189);continue}e=c;continue}if(c<56320){(b-=3)>-1&&f.push(239,191,189),e=c;continue}c=(e-55296<<10|c-56320)+65536}else e&&(b-=3)>-1&&f.push(239,191,189);if(e=null,c<128){if((b-=1)<0)break;f.push(c)}else if(c<2048){if((b-=2)<0)break;f.push(c>>6|192,63&c|128)}else if(c<65536){if((b-=3)<0)break;f.push(c>>12|224,c>>6&63|128,63&c|128)}else{if(!(c<1114112))throw new Error("Invalid code point");if((b-=4)<0)break;f.push(c>>18|240,c>>12&63|128,c>>6&63|128,63&c|128)}}return f}function Y(a){for(var b=[],c=0;c<a.length;++c)b.push(255&a.charCodeAt(c));return b}function Z(a,b){for(var c,d,e,f=[],g=0;g<a.length&&!((b-=2)<0);++g)c=a.charCodeAt(g),d=c>>8,e=c%256,f.push(e),f.push(d);return f}function $(a){return d.toByteArray(U(a))}function _(a,b,c,d){for(var e=0;e<d&&!(e+c>=b.length||e>=a.length);++e)b[e+c]=a[e];return e}function aa(a){return a!==a}var d=a("base64-js"),e=a("ieee754"),f=a("isarray");c.Buffer=j,c.SlowBuffer=t,c.INSPECT_MAX_BYTES=50,j.TYPED_ARRAY_SUPPORT=void 0!==b.TYPED_ARRAY_SUPPORT?b.TYPED_ARRAY_SUPPORT:g(),c.kMaxLength=h(),j.poolSize=8192,j._augment=function(a){return a.__proto__=j.prototype,a},j.from=function(a,b,c){return k(null,a,b,c)},j.TYPED_ARRAY_SUPPORT&&(j.prototype.__proto__=Uint8Array.prototype,j.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&j[Symbol.species]===j&&Object.defineProperty(j,Symbol.species,{value:null,configurable:!0})),j.alloc=function(a,b,c){return m(null,a,b,c)},j.allocUnsafe=function(a){return n(null,a)},j.allocUnsafeSlow=function(a){return n(null,a)},j.isBuffer=function(b){return!(null==b||!b._isBuffer)},j.compare=function(b,c){if(!j.isBuffer(b)||!j.isBuffer(c))throw new TypeError("Arguments must be Buffers");if(b===c)return 0;for(var d=b.length,e=c.length,f=0,g=Math.min(d,e);f<g;++f)if(b[f]!==c[f]){d=b[f],e=c[f];break}return d<e?-1:e<d?1:0},j.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}},j.concat=function(b,c){if(!f(b))throw new TypeError('"list" argument must be an Array of Buffers');if(0===b.length)return j.alloc(0);var d;if(void 0===c)for(c=0,d=0;d<b.length;++d)c+=b[d].length;var e=j.allocUnsafe(c),g=0;for(d=0;d<b.length;++d){var h=b[d];if(!j.isBuffer(h))throw new TypeError('"list" argument must be an Array of Buffers');h.copy(e,g),g+=h.length}return e},j.byteLength=u,j.prototype._isBuffer=!0,j.prototype.swap16=function(){var b=this.length;if(b%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var c=0;c<b;c+=2)w(this,c,c+1);return this},j.prototype.swap32=function(){var b=this.length;if(b%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var c=0;c<b;c+=4)w(this,c,c+3),w(this,c+1,c+2);return this},j.prototype.toString=function(){var b=0|this.length;return 0===b?"":0===arguments.length?F(this,0,b):v.apply(this,arguments)},j.prototype.equals=function(b){if(!j.isBuffer(b))throw new TypeError("Argument must be a Buffer");return this===b||0===j.compare(this,b)},j.prototype.inspect=function(){var b="",d=c.INSPECT_MAX_BYTES;return this.length>0&&(b=this.toString("hex",0,d).match(/.{2}/g).join(" "),this.length>d&&(b+=" ... ")),"<Buffer "+b+">"},j.prototype.compare=function(b,c,d,e,f){if(!j.isBuffer(b))throw new TypeError("Argument must be a Buffer");if(void 0===c&&(c=0),void 0===d&&(d=b?b.length:0),void 0===e&&(e=0),void 0===f&&(f=this.length),c<0||d>b.length||e<0||f>this.length)throw new RangeError("out of range index");if(e>=f&&c>=d)return 0;if(e>=f)return-1;if(c>=d)return 1;if(c>>>=0,d>>>=0,e>>>=0,f>>>=0,this===b)return 0;for(var g=f-e,h=d-c,i=Math.min(g,h),k=this.slice(e,f),l=b.slice(c,d),m=0;m<i;++m)if(k[m]!==l[m]){g=k[m],h=l[m];break}return g<h?-1:h<g?1:0},j.prototype.indexOf=function(b,c,d){if("string"==typeof c?(d=c,c=0):c>2147483647?c=2147483647:c<-2147483648&&(c=-2147483648),c>>=0,0===this.length)return-1;if(c>=this.length)return-1;if(c<0&&(c=Math.max(this.length+c,0)),"string"==typeof b&&(b=j.from(b,d)),j.isBuffer(b))return 0===b.length?-1:x(this,b,c,d);if("number"==typeof b)return j.TYPED_ARRAY_SUPPORT&&"function"===Uint8Array.prototype.indexOf?Uint8Array.prototype.indexOf.call(this,b,c):x(this,[b],c,d);throw new TypeError("val must be string, number or Buffer")},j.prototype.includes=function(b,c,d){return this.indexOf(b,c,d)!==-1},j.prototype.write=function(b,c,d,e){if(void 0===c)e="utf8",d=this.length,c=0;else if(void 0===d&&"string"==typeof c)e=c,d=this.length,c=0;else{if(!isFinite(c))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");c=0|c,isFinite(d)?(d=0|d,void 0===e&&(e="utf8")):(e=d,d=void 0)}var f=this.length-c;if((void 0===d||d>f)&&(d=f),b.length>0&&(d<0||c<0)||c>this.length)throw new RangeError("Attempt to write outside buffer bounds");e||(e="utf8");for(var g=!1;;)switch(e){case"hex":return y(this,b,c,d);case"utf8":case"utf-8":return z(this,b,c,d);case"ascii":return A(this,b,c,d);case"binary":return B(this,b,c,d);case"base64":return C(this,b,c,d);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return D(this,b,c,d);default:if(g)throw new TypeError("Unknown encoding: "+e);e=(""+e).toLowerCase(),g=!0}},j.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var G=4096;j.prototype.slice=function(b,c){var d=this.length;b=~~b,c=void 0===c?d:~~c,b<0?(b+=d,b<0&&(b=0)):b>d&&(b=d),c<0?(c+=d,c<0&&(c=0)):c>d&&(c=d),c<b&&(c=b);var e;if(j.TYPED_ARRAY_SUPPORT)e=this.subarray(b,c),e.__proto__=j.prototype;else{var f=c-b;e=new j(f,(void 0));for(var g=0;g<f;++g)e[g]=this[g+b]}return e},j.prototype.readUIntLE=function(b,c,d){b=0|b,c=0|c,d||M(b,c,this.length);for(var e=this[b],f=1,g=0;++g<c&&(f*=256);)e+=this[b+g]*f;return e},j.prototype.readUIntBE=function(b,c,d){b=0|b,c=0|c,d||M(b,c,this.length);for(var e=this[b+--c],f=1;c>0&&(f*=256);)e+=this[b+--c]*f;return e},j.prototype.readUInt8=function(b,c){return c||M(b,1,this.length),this[b]},j.prototype.readUInt16LE=function(b,c){return c||M(b,2,this.length),this[b]|this[b+1]<<8},j.prototype.readUInt16BE=function(b,c){return c||M(b,2,this.length),this[b]<<8|this[b+1]},j.prototype.readUInt32LE=function(b,c){return c||M(b,4,this.length),(this[b]|this[b+1]<<8|this[b+2]<<16)+16777216*this[b+3]},j.prototype.readUInt32BE=function(b,c){return c||M(b,4,this.length),16777216*this[b]+(this[b+1]<<16|this[b+2]<<8|this[b+3])},j.prototype.readIntLE=function(b,c,d){b=0|b,c=0|c,d||M(b,c,this.length);for(var e=this[b],f=1,g=0;++g<c&&(f*=256);)e+=this[b+g]*f;return f*=128,e>=f&&(e-=Math.pow(2,8*c)),e},j.prototype.readIntBE=function(b,c,d){b=0|b,c=0|c,d||M(b,c,this.length);for(var e=c,f=1,g=this[b+--e];e>0&&(f*=256);)g+=this[b+--e]*f;return f*=128,g>=f&&(g-=Math.pow(2,8*c)),g},j.prototype.readInt8=function(b,c){return c||M(b,1,this.length),128&this[b]?(255-this[b]+1)*-1:this[b]},j.prototype.readInt16LE=function(b,c){c||M(b,2,this.length);var d=this[b]|this[b+1]<<8;return 32768&d?4294901760|d:d},j.prototype.readInt16BE=function(b,c){c||M(b,2,this.length);var d=this[b+1]|this[b]<<8;return 32768&d?4294901760|d:d},j.prototype.readInt32LE=function(b,c){return c||M(b,4,this.length),this[b]|this[b+1]<<8|this[b+2]<<16|this[b+3]<<24},j.prototype.readInt32BE=function(b,c){return c||M(b,4,this.length),this[b]<<24|this[b+1]<<16|this[b+2]<<8|this[b+3]},j.prototype.readFloatLE=function(b,c){
  return c||M(b,4,this.length),e.read(this,b,!0,23,4)},j.prototype.readFloatBE=function(b,c){return c||M(b,4,this.length),e.read(this,b,!1,23,4)},j.prototype.readDoubleLE=function(b,c){return c||M(b,8,this.length),e.read(this,b,!0,52,8)},j.prototype.readDoubleBE=function(b,c){return c||M(b,8,this.length),e.read(this,b,!1,52,8)},j.prototype.writeUIntLE=function(b,c,d,e){if(b=+b,c=0|c,d=0|d,!e){var f=Math.pow(2,8*d)-1;N(this,b,c,d,f,0)}var g=1,h=0;for(this[c]=255&b;++h<d&&(g*=256);)this[c+h]=b/g&255;return c+d},j.prototype.writeUIntBE=function(b,c,d,e){if(b=+b,c=0|c,d=0|d,!e){var f=Math.pow(2,8*d)-1;N(this,b,c,d,f,0)}var g=d-1,h=1;for(this[c+g]=255&b;--g>=0&&(h*=256);)this[c+g]=b/h&255;return c+d},j.prototype.writeUInt8=function(b,c,d){return b=+b,c=0|c,d||N(this,b,c,1,255,0),j.TYPED_ARRAY_SUPPORT||(b=Math.floor(b)),this[c]=255&b,c+1},j.prototype.writeUInt16LE=function(b,c,d){return b=+b,c=0|c,d||N(this,b,c,2,65535,0),j.TYPED_ARRAY_SUPPORT?(this[c]=255&b,this[c+1]=b>>>8):O(this,b,c,!0),c+2},j.prototype.writeUInt16BE=function(b,c,d){return b=+b,c=0|c,d||N(this,b,c,2,65535,0),j.TYPED_ARRAY_SUPPORT?(this[c]=b>>>8,this[c+1]=255&b):O(this,b,c,!1),c+2},j.prototype.writeUInt32LE=function(b,c,d){return b=+b,c=0|c,d||N(this,b,c,4,4294967295,0),j.TYPED_ARRAY_SUPPORT?(this[c+3]=b>>>24,this[c+2]=b>>>16,this[c+1]=b>>>8,this[c]=255&b):P(this,b,c,!0),c+4},j.prototype.writeUInt32BE=function(b,c,d){return b=+b,c=0|c,d||N(this,b,c,4,4294967295,0),j.TYPED_ARRAY_SUPPORT?(this[c]=b>>>24,this[c+1]=b>>>16,this[c+2]=b>>>8,this[c+3]=255&b):P(this,b,c,!1),c+4},j.prototype.writeIntLE=function(b,c,d,e){if(b=+b,c=0|c,!e){var f=Math.pow(2,8*d-1);N(this,b,c,d,f-1,-f)}var g=0,h=1,i=0;for(this[c]=255&b;++g<d&&(h*=256);)b<0&&0===i&&0!==this[c+g-1]&&(i=1),this[c+g]=(b/h>>0)-i&255;return c+d},j.prototype.writeIntBE=function(b,c,d,e){if(b=+b,c=0|c,!e){var f=Math.pow(2,8*d-1);N(this,b,c,d,f-1,-f)}var g=d-1,h=1,i=0;for(this[c+g]=255&b;--g>=0&&(h*=256);)b<0&&0===i&&0!==this[c+g+1]&&(i=1),this[c+g]=(b/h>>0)-i&255;return c+d},j.prototype.writeInt8=function(b,c,d){return b=+b,c=0|c,d||N(this,b,c,1,127,-128),j.TYPED_ARRAY_SUPPORT||(b=Math.floor(b)),b<0&&(b=255+b+1),this[c]=255&b,c+1},j.prototype.writeInt16LE=function(b,c,d){return b=+b,c=0|c,d||N(this,b,c,2,32767,-32768),j.TYPED_ARRAY_SUPPORT?(this[c]=255&b,this[c+1]=b>>>8):O(this,b,c,!0),c+2},j.prototype.writeInt16BE=function(b,c,d){return b=+b,c=0|c,d||N(this,b,c,2,32767,-32768),j.TYPED_ARRAY_SUPPORT?(this[c]=b>>>8,this[c+1]=255&b):O(this,b,c,!1),c+2},j.prototype.writeInt32LE=function(b,c,d){return b=+b,c=0|c,d||N(this,b,c,4,2147483647,-2147483648),j.TYPED_ARRAY_SUPPORT?(this[c]=255&b,this[c+1]=b>>>8,this[c+2]=b>>>16,this[c+3]=b>>>24):P(this,b,c,!0),c+4},j.prototype.writeInt32BE=function(b,c,d){return b=+b,c=0|c,d||N(this,b,c,4,2147483647,-2147483648),b<0&&(b=4294967295+b+1),j.TYPED_ARRAY_SUPPORT?(this[c]=b>>>24,this[c+1]=b>>>16,this[c+2]=b>>>8,this[c+3]=255&b):P(this,b,c,!1),c+4},j.prototype.writeFloatLE=function(b,c,d){return R(this,b,c,!0,d)},j.prototype.writeFloatBE=function(b,c,d){return R(this,b,c,!1,d)},j.prototype.writeDoubleLE=function(b,c,d){return S(this,b,c,!0,d)},j.prototype.writeDoubleBE=function(b,c,d){return S(this,b,c,!1,d)},j.prototype.copy=function(b,c,d,e){if(d||(d=0),e||0===e||(e=this.length),c>=b.length&&(c=b.length),c||(c=0),e>0&&e<d&&(e=d),e===d)return 0;if(0===b.length||0===this.length)return 0;if(c<0)throw new RangeError("targetStart out of bounds");if(d<0||d>=this.length)throw new RangeError("sourceStart out of bounds");if(e<0)throw new RangeError("sourceEnd out of bounds");e>this.length&&(e=this.length),b.length-c<e-d&&(e=b.length-c+d);var g,f=e-d;if(this===b&&d<c&&c<e)for(g=f-1;g>=0;--g)b[g+c]=this[g+d];else if(f<1e3||!j.TYPED_ARRAY_SUPPORT)for(g=0;g<f;++g)b[g+c]=this[g+d];else Uint8Array.prototype.set.call(b,this.subarray(d,d+f),c);return f},j.prototype.fill=function(b,c,d,e){if("string"==typeof b){if("string"==typeof c?(e=c,c=0,d=this.length):"string"==typeof d&&(e=d,d=this.length),1===b.length){var f=b.charCodeAt(0);f<256&&(b=f)}if(void 0!==e&&"string"!=typeof e)throw new TypeError("encoding must be a string");if("string"==typeof e&&!j.isEncoding(e))throw new TypeError("Unknown encoding: "+e)}else"number"==typeof b&&(b=255&b);if(c<0||this.length<c||this.length<d)throw new RangeError("Out of range index");if(d<=c)return this;c>>>=0,d=void 0===d?this.length:d>>>0,b||(b=0);var g;if("number"==typeof b)for(g=c;g<d;++g)this[g]=b;else{var h=j.isBuffer(b)?b:X(new j(b,e).toString()),i=h.length;for(g=0;g<d-c;++g)this[g+c]=h[g%i]}return this};var T=/[^+\/0-9A-Za-z-_]/g}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"base64-js":39,ieee754:40,isarray:41}],39:[function(a,b,c){"use strict";function g(){for(var a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",b=0,c=a.length;b<c;++b)d[b]=a[b],e[a.charCodeAt(b)]=b;e["-".charCodeAt(0)]=62,e["_".charCodeAt(0)]=63}function h(a){var b,c,d,g,h,i,j=a.length;if(j%4>0)throw new Error("Invalid string. Length must be a multiple of 4");h="="===a[j-2]?2:"="===a[j-1]?1:0,i=new f(3*j/4-h),d=h>0?j-4:j;var k=0;for(b=0,c=0;b<d;b+=4,c+=3)g=e[a.charCodeAt(b)]<<18|e[a.charCodeAt(b+1)]<<12|e[a.charCodeAt(b+2)]<<6|e[a.charCodeAt(b+3)],i[k++]=g>>16&255,i[k++]=g>>8&255,i[k++]=255&g;return 2===h?(g=e[a.charCodeAt(b)]<<2|e[a.charCodeAt(b+1)]>>4,i[k++]=255&g):1===h&&(g=e[a.charCodeAt(b)]<<10|e[a.charCodeAt(b+1)]<<4|e[a.charCodeAt(b+2)]>>2,i[k++]=g>>8&255,i[k++]=255&g),i}function i(a){return d[a>>18&63]+d[a>>12&63]+d[a>>6&63]+d[63&a]}function j(a,b,c){for(var d,e=[],f=b;f<c;f+=3)d=(a[f]<<16)+(a[f+1]<<8)+a[f+2],e.push(i(d));return e.join("")}function k(a){for(var b,c=a.length,e=c%3,f="",g=[],h=16383,i=0,k=c-e;i<k;i+=h)g.push(j(a,i,i+h>k?k:i+h));return 1===e?(b=a[c-1],f+=d[b>>2],f+=d[b<<4&63],f+="=="):2===e&&(b=(a[c-2]<<8)+a[c-1],f+=d[b>>10],f+=d[b>>4&63],f+=d[b<<2&63],f+="="),g.push(f),g.join("")}c.toByteArray=h,c.fromByteArray=k;var d=[],e=[],f="undefined"!=typeof Uint8Array?Uint8Array:Array;g()},{}],40:[function(a,b,c){c.read=function(a,b,c,d,e){var f,g,h=8*e-d-1,i=(1<<h)-1,j=i>>1,k=-7,l=c?e-1:0,m=c?-1:1,n=a[b+l];for(l+=m,f=n&(1<<-k)-1,n>>=-k,k+=h;k>0;f=256*f+a[b+l],l+=m,k-=8);for(g=f&(1<<-k)-1,f>>=-k,k+=d;k>0;g=256*g+a[b+l],l+=m,k-=8);if(0===f)f=1-j;else{if(f===i)return g?NaN:(n?-1:1)*(1/0);g+=Math.pow(2,d),f-=j}return(n?-1:1)*g*Math.pow(2,f-d)},c.write=function(a,b,c,d,e,f){var g,h,i,j=8*f-e-1,k=(1<<j)-1,l=k>>1,m=23===e?Math.pow(2,-24)-Math.pow(2,-77):0,n=d?0:f-1,o=d?1:-1,p=b<0||0===b&&1/b<0?1:0;for(b=Math.abs(b),isNaN(b)||b===1/0?(h=isNaN(b)?1:0,g=k):(g=Math.floor(Math.log(b)/Math.LN2),b*(i=Math.pow(2,-g))<1&&(g--,i*=2),b+=g+l>=1?m/i:m*Math.pow(2,1-l),b*i>=2&&(g++,i/=2),g+l>=k?(h=0,g=k):g+l>=1?(h=(b*i-1)*Math.pow(2,e),g+=l):(h=b*Math.pow(2,l-1)*Math.pow(2,e),g=0));e>=8;a[c+n]=255&h,n+=o,h/=256,e-=8);for(g=g<<e|h,j+=e;j>0;a[c+n]=255&g,n+=o,g/=256,j-=8);a[c+n-o]|=128*p}},{}],41:[function(a,b,c){var d={}.toString;b.exports=Array.isArray||function(a){return"[object Array]"==d.call(a)}},{}],42:[function(a,b,c){function d(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0}function e(a){return"function"==typeof a}function f(a){return"number"==typeof a}function g(a){return"object"==typeof a&&null!==a}function h(a){return void 0===a}b.exports=d,d.EventEmitter=d,d.prototype._events=void 0,d.prototype._maxListeners=void 0,d.defaultMaxListeners=10,d.prototype.setMaxListeners=function(a){if(!f(a)||a<0||isNaN(a))throw TypeError("n must be a positive number");return this._maxListeners=a,this},d.prototype.emit=function(a){var b,c,d,f,i,j;if(this._events||(this._events={}),"error"===a&&(!this._events.error||g(this._events.error)&&!this._events.error.length)){if(b=arguments[1],b instanceof Error)throw b;var k=new Error('Uncaught, unspecified "error" event. ('+b+")");throw k.context=b,k}if(c=this._events[a],h(c))return!1;if(e(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:f=Array.prototype.slice.call(arguments,1),c.apply(this,f)}else if(g(c))for(f=Array.prototype.slice.call(arguments,1),j=c.slice(),d=j.length,i=0;i<d;i++)j[i].apply(this,f);return!0},d.prototype.addListener=function(a,b){var c;if(!e(b))throw TypeError("listener must be a function");return this._events||(this._events={}),this._events.newListener&&this.emit("newListener",a,e(b.listener)?b.listener:b),this._events[a]?g(this._events[a])?this._events[a].push(b):this._events[a]=[this._events[a],b]:this._events[a]=b,g(this._events[a])&&!this._events[a].warned&&(c=h(this._maxListeners)?d.defaultMaxListeners:this._maxListeners,c&&c>0&&this._events[a].length>c&&(this._events[a].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[a].length),"function"==typeof console.trace&&console.trace())),this},d.prototype.on=d.prototype.addListener,d.prototype.once=function(a,b){function d(){this.removeListener(a,d),c||(c=!0,b.apply(this,arguments))}if(!e(b))throw TypeError("listener must be a function");var c=!1;return d.listener=b,this.on(a,d),this},d.prototype.removeListener=function(a,b){var c,d,f,h;if(!e(b))throw TypeError("listener must be a function");if(!this._events||!this._events[a])return this;if(c=this._events[a],f=c.length,d=-1,c===b||e(c.listener)&&c.listener===b)delete this._events[a],this._events.removeListener&&this.emit("removeListener",a,b);else if(g(c)){for(h=f;h-- >0;)if(c[h]===b||c[h].listener&&c[h].listener===b){d=h;break}if(d<0)return this;1===c.length?(c.length=0,delete this._events[a]):c.splice(d,1),this._events.removeListener&&this.emit("removeListener",a,b)}return this},d.prototype.removeAllListeners=function(a){var b,c;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(b in this._events)"removeListener"!==b&&this.removeAllListeners(b);return this.removeAllListeners("removeListener"),this._events={},this}if(c=this._events[a],e(c))this.removeListener(a,c);else if(c)for(;c.length;)this.removeListener(a,c[c.length-1]);return delete this._events[a],this},d.prototype.listeners=function(a){var b;return b=this._events&&this._events[a]?e(this._events[a])?[this._events[a]]:this._events[a].slice():[]},d.prototype.listenerCount=function(a){if(this._events){var b=this._events[a];if(e(b))return 1;if(b)return b.length}return 0},d.listenerCount=function(a,b){return a.listenerCount(b)}},{}],43:[function(a,b,c){"function"==typeof Object.create?b.exports=function(b,c){b.super_=c,b.prototype=Object.create(c.prototype,{constructor:{value:b,enumerable:!1,writable:!0,configurable:!0}})}:b.exports=function(b,c){b.super_=c;var d=function(){};d.prototype=c.prototype,b.prototype=new d,b.prototype.constructor=b}},{}],44:[function(a,b,c){function d(a){return!!a.constructor&&"function"==typeof a.constructor.isBuffer&&a.constructor.isBuffer(a)}function e(a){return"function"==typeof a.readFloatLE&&"function"==typeof a.slice&&d(a.slice(0,0))}b.exports=function(a){return null!=a&&(d(a)||e(a)||!!a._isBuffer)}},{}],45:[function(a,b,c){function g(a){return e===setTimeout?setTimeout(a,0):e.call(null,a,0)}function h(a){f===clearTimeout?clearTimeout(a):f.call(null,a)}function m(){j&&k&&(j=!1,k.length?i=k.concat(i):l=-1,i.length&&n())}function n(){if(!j){var a=g(m);j=!0;for(var b=i.length;b;){for(k=i,i=[];++l<b;)k&&k[l].run();l=-1,b=i.length}k=null,j=!1,h(a)}}function o(a,b){this.fun=a,this.array=b}function p(){}var e,f,d=b.exports={};!function(){try{e=setTimeout}catch(a){e=function(){throw new Error("setTimeout is not defined")}}try{f=clearTimeout}catch(a){f=function(){throw new Error("clearTimeout is not defined")}}}();var k,i=[],j=!1,l=-1;d.nextTick=function(a){var b=new Array(arguments.length-1);if(arguments.length>1)for(var c=1;c<arguments.length;c++)b[c-1]=arguments[c];i.push(new o(a,b)),1!==i.length||j||g(n)},o.prototype.run=function(){this.fun.apply(null,this.array)},d.title="browser",d.browser=!0,d.env={},d.argv=[],d.version="",d.versions={},d.on=p,d.addListener=p,d.once=p,d.off=p,d.removeListener=p,d.removeAllListeners=p,d.emit=p,d.binding=function(a){throw new Error("process.binding is not supported")},d.cwd=function(){return"/"},d.chdir=function(a){throw new Error("process.chdir is not supported")},d.umask=function(){return 0}},{}],46:[function(a,b,c){b.exports=a("./lib/_stream_duplex.js")},{"./lib/_stream_duplex.js":47}],47:[function(a,b,c){"use strict";function l(a){return this instanceof l?(g.call(this,a),h.call(this,a),a&&a.readable===!1&&(this.readable=!1),a&&a.writable===!1&&(this.writable=!1),this.allowHalfOpen=!0,a&&a.allowHalfOpen===!1&&(this.allowHalfOpen=!1),void this.once("end",m)):new l(a)}function m(){this.allowHalfOpen||this._writableState.ended||e(n,this)}function n(a){a.end()}var d=Object.keys||function(a){var b=[];for(var c in a)b.push(c);return b};b.exports=l;var e=a("process-nextick-args"),f=a("core-util-is");f.inherits=a("inherits");var g=a("./_stream_readable"),h=a("./_stream_writable");f.inherits(l,g);for(var i=d(h.prototype),j=0;j<i.length;j++){var k=i[j];l.prototype[k]||(l.prototype[k]=h.prototype[k])}},{"./_stream_readable":49,"./_stream_writable":51,"core-util-is":53,inherits:43,"process-nextick-args":55}],48:[function(a,b,c){"use strict";function f(a){return this instanceof f?void d.call(this,a):new f(a)}b.exports=f;var d=a("./_stream_transform"),e=a("core-util-is");e.inherits=a("inherits"),e.inherits(f,d),f.prototype._transform=function(a,b,c){c(null,a)}},{"./_stream_transform":50,"core-util-is":53,inherits:43}],49:[function(a,b,c){(function(c){"use strict";function p(a,b,c){return o?a.prependListener(b,c):void(a._events&&a._events[b]?e(a._events[b])?a._events[b].unshift(c):a._events[b]=[c,a._events[b]]:a.on(b,c))}function r(b,c){q=q||a("./_stream_duplex"),b=b||{},this.objectMode=!!b.objectMode,c instanceof q&&(this.objectMode=this.objectMode||!!b.readableObjectMode);var d=b.highWaterMark,e=this.objectMode?16:16384;this.highWaterMark=d||0===d?d:e,this.highWaterMark=~~this.highWaterMark,this.buffer=[],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.defaultEncoding=b.defaultEncoding||"utf8",this.ranOut=!1,this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,b.encoding&&(n||(n=a("string_decoder/").StringDecoder),this.decoder=new n(b.encoding),this.encoding=b.encoding)}function s(b){return q=q||a("./_stream_duplex"),this instanceof s?(this._readableState=new r(b,this),this.readable=!0,b&&"function"==typeof b.read&&(this._read=b.read),void h.call(this)):new s(b)}function t(a,b,c,d,e){var f=y(b,c);if(f)a.emit("error",f);else if(null===c)b.reading=!1,z(a,b);else if(b.objectMode||c&&c.length>0)if(b.ended&&!e){var g=new Error("stream.push() after EOF");a.emit("error",g)}else if(b.endEmitted&&e){var h=new Error("stream.unshift() after end event");a.emit("error",h)}else{var i;!b.decoder||e||d||(c=b.decoder.write(c),i=!b.objectMode&&0===c.length),e||(b.reading=!1),i||(b.flowing&&0===b.length&&!b.sync?(a.emit("data",c),a.read(0)):(b.length+=b.objectMode?1:c.length,e?b.buffer.unshift(c):b.buffer.push(c),b.needReadable&&A(a))),C(a,b)}else e||(b.reading=!1);return u(b)}function u(a){return!a.ended&&(a.needReadable||a.length<a.highWaterMark||0===a.length)}function w(a){return a>=v?a=v:(a--,a|=a>>>1,a|=a>>>2,a|=a>>>4,a|=a>>>8,a|=a>>>16,a++),a}function x(a,b){return 0===b.length&&b.ended?0:b.objectMode?0===a?0:1:null===a||isNaN(a)?b.flowing&&b.buffer.length?b.buffer[0].length:b.length:a<=0?0:(a>b.highWaterMark&&(b.highWaterMark=w(a)),a>b.length?b.ended?b.length:(b.needReadable=!0,0):a)}function y(a,b){var c=null;return i.isBuffer(b)||"string"==typeof b||null===b||void 0===b||a.objectMode||(c=new TypeError("Invalid non-string/buffer chunk")),c}function z(a,b){if(!b.ended){if(b.decoder){var c=b.decoder.end();c&&c.length&&(b.buffer.push(c),b.length+=b.objectMode?1:c.length)}b.ended=!0,A(a)}}function A(a){var b=a._readableState;b.needReadable=!1,b.emittedReadable||(m("emitReadable",b.flowing),b.emittedReadable=!0,b.sync?d(B,a):B(a))}function B(a){m("emit readable"),a.emit("readable"),I(a)}function C(a,b){b.readingMore||(b.readingMore=!0,d(D,a,b))}function D(a,b){for(var c=b.length;!b.reading&&!b.flowing&&!b.ended&&b.length<b.highWaterMark&&(m("maybeReadMore read 0"),a.read(0),c!==b.length);)c=b.length;b.readingMore=!1}function E(a){return function(){var b=a._readableState;m("pipeOnDrain",b.awaitDrain),b.awaitDrain&&b.awaitDrain--,0===b.awaitDrain&&g(a,"data")&&(b.flowing=!0,I(a))}}function F(a){m("readable nexttick read 0"),a.read(0)}function G(a,b){b.resumeScheduled||(b.resumeScheduled=!0,d(H,a,b))}function H(a,b){b.reading||(m("resume read 0"),a.read(0)),b.resumeScheduled=!1,a.emit("resume"),I(a),b.flowing&&!b.reading&&a.read(0)}function I(a){var b=a._readableState;if(m("flow",b.flowing),b.flowing)do var c=a.read();while(null!==c&&b.flowing)}function J(a,b){var g,c=b.buffer,d=b.length,e=!!b.decoder,f=!!b.objectMode;if(0===c.length)return null;if(0===d)g=null;else if(f)g=c.shift();else if(!a||a>=d)g=e?c.join(""):1===c.length?c[0]:i.concat(c,d),c.length=0;else if(a<c[0].length){var h=c[0];g=h.slice(0,a),c[0]=h.slice(a)}else if(a===c[0].length)g=c.shift();else{g=e?"":j.allocUnsafe(a);for(var k=0,l=0,m=c.length;l<m&&k<a;l++){var n=c[0],o=Math.min(a-k,n.length);e?g+=n.slice(0,o):n.copy(g,k,0,o),o<n.length?c[0]=n.slice(o):c.shift(),k+=o}}return g}function K(a){var b=a._readableState;if(b.length>0)throw new Error('"endReadable()" called on non-empty stream');b.endEmitted||(b.ended=!0,d(L,b,a))}function L(a,b){a.endEmitted||0!==a.length||(a.endEmitted=!0,b.readable=!1,b.emit("end"))}function M(a,b){for(var c=0,d=a.length;c<d;c++)b(a[c],c)}function N(a,b){for(var c=0,d=a.length;c<d;c++)if(a[c]===b)return c;return-1}b.exports=s;var d=a("process-nextick-args"),e=a("isarray");s.ReadableState=r;var h,f=a("events").EventEmitter,g=function(a,b){return a.listeners(b).length};!function(){try{h=a("stream")}catch(a){}finally{h||(h=a("events").EventEmitter)}}();var i=a("buffer").Buffer,j=a("buffer-shims"),k=a("core-util-is");k.inherits=a("inherits");var l=a("util"),m=void 0;m=l&&l.debuglog?l.debuglog("stream"):function(){};var n;k.inherits(s,h);var q,q,o="function"==typeof f.prototype.prependListener;s.prototype.push=function(a,b){var c=this._readableState;return c.objectMode||"string"!=typeof a||(b=b||c.defaultEncoding,b!==c.encoding&&(a=j.from(a,b),b="")),t(this,c,a,b,!1)},s.prototype.unshift=function(a){var b=this._readableState;return t(this,b,a,"",!0)},s.prototype.isPaused=function(){return this._readableState.flowing===!1},s.prototype.setEncoding=function(b){return n||(n=a("string_decoder/").StringDecoder),this._readableState.decoder=new n(b),this._readableState.encoding=b,this};var v=8388608;s.prototype.read=function(a){m("read",a);var b=this._readableState,c=a;if(("number"!=typeof a||a>0)&&(b.emittedReadable=!1),0===a&&b.needReadable&&(b.length>=b.highWaterMark||b.ended))return m("read: emitReadable",b.length,b.ended),0===b.length&&b.ended?K(this):A(this),null;if(a=x(a,b),0===a&&b.ended)return 0===b.length&&K(this),null;var d=b.needReadable;m("need readable",d),(0===b.length||b.length-a<b.highWaterMark)&&(d=!0,m("length less than watermark",d)),(b.ended||b.reading)&&(d=!1,m("reading or ended",d)),d&&(m("do read"),b.reading=!0,b.sync=!0,0===b.length&&(b.needReadable=!0),this._read(b.highWaterMark),b.sync=!1),d&&!b.reading&&(a=x(c,b));var e;return e=a>0?J(a,b):null,null===e&&(b.needReadable=!0,a=0),b.length-=a,0!==b.length||b.ended||(b.needReadable=!0),c!==a&&b.ended&&0===b.length&&K(this),null!==e&&this.emit("data",e),e},s.prototype._read=function(a){this.emit("error",new Error("not implemented"))},s.prototype.pipe=function(a,b){function j(a){m("onunpipe"),a===e&&o()}function k(){m("onend"),a.end()}function o(){m("cleanup"),a.removeListener("close",s),a.removeListener("finish",t),a.removeListener("drain",l),a.removeListener("error",r),a.removeListener("unpipe",j),e.removeListener("end",k),e.removeListener("end",o),e.removeListener("data",q),n=!0,!f.awaitDrain||a._writableState&&!a._writableState.needDrain||l()}function q(b){m("ondata");var c=a.write(b);!1===c&&((1===f.pipesCount&&f.pipes===a||f.pipesCount>1&&N(f.pipes,a)!==-1)&&!n&&(m("false write response, pause",e._readableState.awaitDrain),e._readableState.awaitDrain++),e.pause())}function r(b){m("onerror",b),u(),a.removeListener("error",r),0===g(a,"error")&&a.emit("error",b)}function s(){a.removeListener("finish",t),u()}function t(){m("onfinish"),a.removeListener("close",s),u()}function u(){m("unpipe"),e.unpipe(a)}var e=this,f=this._readableState;switch(f.pipesCount){case 0:f.pipes=a;break;case 1:f.pipes=[f.pipes,a];break;default:f.pipes.push(a)}f.pipesCount+=1,m("pipe count=%d opts=%j",f.pipesCount,b);var h=(!b||b.end!==!1)&&a!==c.stdout&&a!==c.stderr,i=h?k:o;f.endEmitted?d(i):e.once("end",i),a.on("unpipe",j);var l=E(e);a.on("drain",l);var n=!1;return e.on("data",q),p(a,"error",r),a.once("close",s),a.once("finish",t),a.emit("pipe",e),f.flowing||(m("pipe resume"),e.resume()),a},s.prototype.unpipe=function(a){var b=this._readableState;if(0===b.pipesCount)return this;if(1===b.pipesCount)return a&&a!==b.pipes?this:(a||(a=b.pipes),b.pipes=null,b.pipesCount=0,b.flowing=!1,a&&a.emit("unpipe",this),this);if(!a){var c=b.pipes,d=b.pipesCount;b.pipes=null,b.pipesCount=0,b.flowing=!1;for(var e=0;e<d;e++)c[e].emit("unpipe",this);return this}var f=N(b.pipes,a);return f===-1?this:(b.pipes.splice(f,1),b.pipesCount-=1,1===b.pipesCount&&(b.pipes=b.pipes[0]),a.emit("unpipe",this),this)},s.prototype.on=function(a,b){var c=h.prototype.on.call(this,a,b);if("data"===a&&!1!==this._readableState.flowing&&this.resume(),"readable"===a&&!this._readableState.endEmitted){var e=this._readableState;e.readableListening||(e.readableListening=!0,e.emittedReadable=!1,e.needReadable=!0,e.reading?e.length&&A(this,e):d(F,this))}return c},s.prototype.addListener=s.prototype.on,s.prototype.resume=function(){var a=this._readableState;return a.flowing||(m("resume"),a.flowing=!0,G(this,a)),this},s.prototype.pause=function(){return m("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(m("pause"),this._readableState.flowing=!1,this.emit("pause")),this},s.prototype.wrap=function(a){var b=this._readableState,c=!1,d=this;a.on("end",function(){if(m("wrapped end"),b.decoder&&!b.ended){var a=b.decoder.end();a&&a.length&&d.push(a)}d.push(null)}),a.on("data",function(e){if(m("wrapped data"),b.decoder&&(e=b.decoder.write(e)),(!b.objectMode||null!==e&&void 0!==e)&&(b.objectMode||e&&e.length)){var f=d.push(e);f||(c=!0,a.pause())}});for(var e in a)void 0===this[e]&&"function"==typeof a[e]&&(this[e]=function(b){return function(){return a[b].apply(a,arguments)}}(e));var f=["error","close","destroy","pause","resume"];return M(f,function(b){a.on(b,d.emit.bind(d,b))}),d._read=function(b){m("wrapped _read",b),c&&(c=!1,a.resume())},d},s._fromList=J}).call(this,a("_process"))},{"./_stream_duplex":47,_process:45,buffer:38,"buffer-shims":52,"core-util-is":53,events:42,inherits:43,isarray:54,"process-nextick-args":55,"string_decoder/":62,util:24}],50:[function(a,b,c){"use strict";function f(a){this.afterTransform=function(b,c){return g(a,b,c)},this.needTransform=!1,this.transforming=!1,this.writecb=null,this.writechunk=null,this.writeencoding=null}function g(a,b,c){var d=a._transformState;d.transforming=!1;var e=d.writecb;if(!e)return a.emit("error",new Error("no writecb in Transform class"));d.writechunk=null,d.writecb=null,null!==c&&void 0!==c&&a.push(c),e(b);var f=a._readableState;f.reading=!1,(f.needReadable||f.length<f.highWaterMark)&&a._read(f.highWaterMark)}function h(a){if(!(this instanceof h))return new h(a);d.call(this,a),this._transformState=new f(this);var b=this;this._readableState.needReadable=!0,this._readableState.sync=!1,a&&("function"==typeof a.transform&&(this._transform=a.transform),"function"==typeof a.flush&&(this._flush=a.flush)),this.once("prefinish",function(){"function"==typeof this._flush?this._flush(function(a){i(b,a)}):i(b)})}function i(a,b){if(b)return a.emit("error",b);var c=a._writableState,d=a._transformState;if(c.length)throw new Error("Calling transform done when ws.length != 0");if(d.transforming)throw new Error("Calling transform done when still transforming");return a.push(null)}b.exports=h;var d=a("./_stream_duplex"),e=a("core-util-is");e.inherits=a("inherits"),e.inherits(h,d),h.prototype.push=function(a,b){return this._transformState.needTransform=!1,d.prototype.push.call(this,a,b)},h.prototype._transform=function(a,b,c){throw new Error("Not implemented")},h.prototype._write=function(a,b,c){var d=this._transformState;if(d.writecb=c,d.writechunk=a,d.writeencoding=b,!d.transforming){var e=this._readableState;(d.needTransform||e.needReadable||e.length<e.highWaterMark)&&this._read(e.highWaterMark)}},h.prototype._read=function(a){var b=this._transformState;null!==b.writechunk&&b.writecb&&!b.transforming?(b.transforming=!0,this._transform(b.writechunk,b.writeencoding,b.afterTransform)):b.needTransform=!0}},{"./_stream_duplex":47,"core-util-is":53,inherits:43}],51:[function(a,b,c){(function(c){"use strict";function k(){}function l(a,b,c){this.chunk=a,this.encoding=b,this.callback=c,this.next=null}function n(b,c){m=m||a("./_stream_duplex"),b=b||{},this.objectMode=!!b.objectMode,c instanceof m&&(this.objectMode=this.objectMode||!!b.writableObjectMode);var d=b.highWaterMark,e=this.objectMode?16:16384;this.highWaterMark=d||0===d?d:e,this.highWaterMark=~~this.highWaterMark,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1;var f=b.decodeStrings===!1;this.decodeStrings=!f,this.defaultEncoding=b.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(a){w(c,a)},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 E(this)}function o(b){return m=m||a("./_stream_duplex"),this instanceof o||this instanceof m?(this._writableState=new n(b,this),this.writable=!0,b&&("function"==typeof b.write&&(this._write=b.write),"function"==typeof b.writev&&(this._writev=b.writev)),void h.call(this)):new o(b)}function p(a,b){var c=new Error("write after end");a.emit("error",c),d(b,c)}function q(a,b,c,e){var f=!0,g=!1;return null===c?g=new TypeError("May not write null values to stream"):i.isBuffer(c)||"string"==typeof c||void 0===c||b.objectMode||(g=new TypeError("Invalid non-string/buffer chunk")),g&&(a.emit("error",g),d(e,g),f=!1),f}function r(a,b,c){return a.objectMode||a.decodeStrings===!1||"string"!=typeof b||(b=j.from(b,c)),b}function s(a,b,c,d,e){c=r(b,c,d),i.isBuffer(c)&&(d="buffer");var f=b.objectMode?1:c.length;b.length+=f;var g=b.length<b.highWaterMark;if(g||(b.needDrain=!0),b.writing||b.corked){var h=b.lastBufferedRequest;b.lastBufferedRequest=new l(c,d,e),h?h.next=b.lastBufferedRequest:b.bufferedRequest=b.lastBufferedRequest,b.bufferedRequestCount+=1}else t(a,b,!1,f,c,d,e);return g}function t(a,b,c,d,e,f,g){b.writelen=d,b.writecb=g,b.writing=!0,b.sync=!0,c?a._writev(e,b.onwrite):a._write(e,f,b.onwrite),b.sync=!1}function u(a,b,c,e,f){--b.pendingcb,c?d(f,e):f(e),a._writableState.errorEmitted=!0,a.emit("error",e)}function v(a){a.writing=!1,a.writecb=null,a.length-=a.writelen,a.writelen=0}function w(a,b){var c=a._writableState,d=c.sync,f=c.writecb;if(v(c),b)u(a,c,d,b,f);else{var g=A(c);g||c.corked||c.bufferProcessing||!c.bufferedRequest||z(a,c),d?e(x,a,c,g,f):x(a,c,g,f)}}function x(a,b,c,d){c||y(a,b),b.pendingcb--,d(),C(a,b)}function y(a,b){0===b.length&&b.needDrain&&(b.needDrain=!1,a.emit("drain"))}function z(a,b){b.bufferProcessing=!0;var c=b.bufferedRequest;if(a._writev&&c&&c.next){var d=b.bufferedRequestCount,e=new Array(d),f=b.corkedRequestsFree;f.entry=c;for(var g=0;c;)e[g]=c,c=c.next,g+=1;t(a,b,!0,b.length,e,"",f.finish),b.pendingcb++,b.lastBufferedRequest=null,f.next?(b.corkedRequestsFree=f.next,f.next=null):b.corkedRequestsFree=new E(b)}else{for(;c;){var h=c.chunk,i=c.encoding,j=c.callback,k=b.objectMode?1:h.length;if(t(a,b,!1,k,h,i,j),c=c.next,b.writing)break}null===c&&(b.lastBufferedRequest=null)}b.bufferedRequestCount=0,b.bufferedRequest=c,b.bufferProcessing=!1}function A(a){return a.ending&&0===a.length&&null===a.bufferedRequest&&!a.finished&&!a.writing}function B(a,b){b.prefinished||(b.prefinished=!0,a.emit("prefinish"))}function C(a,b){var c=A(b);return c&&(0===b.pendingcb?(B(a,b),b.finished=!0,a.emit("finish")):B(a,b)),c}function D(a,b,c){b.ending=!0,C(a,b),c&&(b.finished?d(c):a.once("finish",c)),b.ended=!0,a.writable=!1}function E(a){var b=this;this.next=null,this.entry=null,this.finish=function(c){var d=b.entry;for(b.entry=null;d;){var e=d.callback;a.pendingcb--,e(c),d=d.next}a.corkedRequestsFree?a.corkedRequestsFree.next=b:a.corkedRequestsFree=b}}b.exports=o;var d=a("process-nextick-args"),e=!c.browser&&["v0.10","v0.9."].indexOf(c.version.slice(0,5))>-1?setImmediate:d;o.WritableState=n;var f=a("core-util-is");f.inherits=a("inherits");var h,g={deprecate:a("util-deprecate")};!function(){try{h=a("stream")}catch(a){}finally{h||(h=a("events").EventEmitter)}}();var i=a("buffer").Buffer,j=a("buffer-shims");f.inherits(o,h);var m;n.prototype.getBuffer=function(){for(var b=this.bufferedRequest,c=[];b;)c.push(b),b=b.next;return c},function(){try{Object.defineProperty(n.prototype,"buffer",{get:g.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.")})}catch(a){}}();var m;o.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},o.prototype.write=function(a,b,c){var d=this._writableState,e=!1;return"function"==typeof b&&(c=b,b=null),i.isBuffer(a)?b="buffer":b||(b=d.defaultEncoding),"function"!=typeof c&&(c=k),d.ended?p(this,c):q(this,d,a,c)&&(d.pendingcb++,e=s(this,d,a,b,c)),e},o.prototype.cork=function(){var a=this._writableState;a.corked++},o.prototype.uncork=function(){var a=this._writableState;a.corked&&(a.corked--,a.writing||a.corked||a.finished||a.bufferProcessing||!a.bufferedRequest||z(this,a))},o.prototype.setDefaultEncoding=function(b){if("string"==typeof b&&(b=b.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((b+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+b);return this._writableState.defaultEncoding=b,this},o.prototype._write=function(a,b,c){c(new Error("not implemented"))},o.prototype._writev=null,o.prototype.end=function(a,b,c){var d=this._writableState;"function"==typeof a?(c=a,a=null,b=null):"function"==typeof b&&(c=b,b=null),null!==a&&void 0!==a&&this.write(a,b),d.corked&&(d.corked=1,this.uncork()),d.ending||d.finished||D(this,d,c)}}).call(this,a("_process"))},{"./_stream_duplex":47,_process:45,buffer:38,"buffer-shims":52,"core-util-is":53,events:42,inherits:43,"process-nextick-args":55,"util-deprecate":56}],52:[function(a,b,c){(function(b){"use strict";var d=a("buffer"),e=d.Buffer,f=d.SlowBuffer,g=d.kMaxLength||2147483647;c.alloc=function(b,c,d){if("function"==typeof e.alloc)return e.alloc(b,c,d);if("number"==typeof d)throw new TypeError("encoding must not be number");if("number"!=typeof b)throw new TypeError("size must be a number");if(b>g)throw new RangeError("size is too large");var f=d,h=c;void 0===h&&(f=void 0,h=0);var i=new e(b);if("string"==typeof h)for(var j=new e(h,f),k=j.length,l=-1;++l<b;)i[l]=j[l%k];else i.fill(h);return i},c.allocUnsafe=function(b){if("function"==typeof e.allocUnsafe)return e.allocUnsafe(b);if("number"!=typeof b)throw new TypeError("size must be a number");if(b>g)throw new RangeError("size is too large");
  return new e(b)},c.from=function(c,d,f){if("function"==typeof e.from&&(!b.Uint8Array||Uint8Array.from!==e.from))return e.from(c,d,f);if("number"==typeof c)throw new TypeError('"value" argument must not be a number');if("string"==typeof c)return new e(c,d);if("undefined"!=typeof ArrayBuffer&&c instanceof ArrayBuffer){var g=d;if(1===arguments.length)return new e(c);"undefined"==typeof g&&(g=0);var h=f;if("undefined"==typeof h&&(h=c.byteLength-g),g>=c.byteLength)throw new RangeError("'offset' is out of bounds");if(h>c.byteLength-g)throw new RangeError("'length' is out of bounds");return new e(c.slice(g,g+h))}if(e.isBuffer(c)){var i=new e(c.length);return c.copy(i,0,0,c.length),i}if(c){if(Array.isArray(c)||"undefined"!=typeof ArrayBuffer&&c.buffer instanceof ArrayBuffer||"length"in c)return new e(c);if("Buffer"===c.type&&Array.isArray(c.data))return new e(c.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")},c.allocUnsafeSlow=function(b){if("function"==typeof e.allocUnsafeSlow)return e.allocUnsafeSlow(b);if("number"!=typeof b)throw new TypeError("size must be a number");if(b>=g)throw new RangeError("size is too large");return new f(b)}}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{buffer:38}],53:[function(a,b,c){(function(a){function b(a){return Array.isArray?Array.isArray(a):"[object Array]"===q(a)}function d(a){return"boolean"==typeof a}function e(a){return null===a}function f(a){return null==a}function g(a){return"number"==typeof a}function h(a){return"string"==typeof a}function i(a){return"symbol"==typeof a}function j(a){return void 0===a}function k(a){return"[object RegExp]"===q(a)}function l(a){return"object"==typeof a&&null!==a}function m(a){return"[object Date]"===q(a)}function n(a){return"[object Error]"===q(a)||a instanceof Error}function o(a){return"function"==typeof a}function p(a){return null===a||"boolean"==typeof a||"number"==typeof a||"string"==typeof a||"symbol"==typeof a||"undefined"==typeof a}function q(a){return Object.prototype.toString.call(a)}c.isArray=b,c.isBoolean=d,c.isNull=e,c.isNullOrUndefined=f,c.isNumber=g,c.isString=h,c.isSymbol=i,c.isUndefined=j,c.isRegExp=k,c.isObject=l,c.isDate=m,c.isError=n,c.isFunction=o,c.isPrimitive=p,c.isBuffer=a.isBuffer}).call(this,{isBuffer:a("../../../../insert-module-globals/node_modules/is-buffer/index.js")})},{"../../../../insert-module-globals/node_modules/is-buffer/index.js":44}],54:[function(a,b,c){arguments[4][41][0].apply(c,arguments)},{dup:41}],55:[function(a,b,c){(function(a){"use strict";function c(b,c,d,e){if("function"!=typeof b)throw new TypeError('"callback" argument must be a function');var g,h,f=arguments.length;switch(f){case 0:case 1:return a.nextTick(b);case 2:return a.nextTick(function(){b.call(null,c)});case 3:return a.nextTick(function(){b.call(null,c,d)});case 4:return a.nextTick(function(){b.call(null,c,d,e)});default:for(g=new Array(f-1),h=0;h<g.length;)g[h++]=arguments[h];return a.nextTick(function(){b.apply(null,g)})}}!a.version||0===a.version.indexOf("v0.")||0===a.version.indexOf("v1.")&&0!==a.version.indexOf("v1.8.")?b.exports=c:b.exports=a.nextTick}).call(this,a("_process"))},{_process:45}],56:[function(a,b,c){(function(a){function c(a,b){function e(){if(!c){if(d("throwDeprecation"))throw new Error(b);d("traceDeprecation")?console.trace(b):console.warn(b),c=!0}return a.apply(this,arguments)}if(d("noDeprecation"))return a;var c=!1;return e}function d(b){try{if(!a.localStorage)return!1}catch(a){return!1}var c=a.localStorage[b];return null!=c&&"true"===String(c).toLowerCase()}b.exports=c}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],57:[function(a,b,c){b.exports=a("./lib/_stream_passthrough.js")},{"./lib/_stream_passthrough.js":48}],58:[function(a,b,c){(function(d){var e=function(){try{return a("stream")}catch(a){}}();c=b.exports=a("./lib/_stream_readable.js"),c.Stream=e||c,c.Readable=c,c.Writable=a("./lib/_stream_writable.js"),c.Duplex=a("./lib/_stream_duplex.js"),c.Transform=a("./lib/_stream_transform.js"),c.PassThrough=a("./lib/_stream_passthrough.js"),!d.browser&&"disable"===d.env.READABLE_STREAM&&e&&(b.exports=e)}).call(this,a("_process"))},{"./lib/_stream_duplex.js":47,"./lib/_stream_passthrough.js":48,"./lib/_stream_readable.js":49,"./lib/_stream_transform.js":50,"./lib/_stream_writable.js":51,_process:45}],59:[function(a,b,c){b.exports=a("./lib/_stream_transform.js")},{"./lib/_stream_transform.js":50}],60:[function(a,b,c){b.exports=a("./lib/_stream_writable.js")},{"./lib/_stream_writable.js":51}],61:[function(a,b,c){function f(){d.call(this)}b.exports=f;var d=a("events").EventEmitter,e=a("inherits");e(f,d),f.Readable=a("readable-stream/readable.js"),f.Writable=a("readable-stream/writable.js"),f.Duplex=a("readable-stream/duplex.js"),f.Transform=a("readable-stream/transform.js"),f.PassThrough=a("readable-stream/passthrough.js"),f.Stream=f,f.prototype.pipe=function(a,b){function e(b){a.writable&&!1===a.write(b)&&c.pause&&c.pause()}function f(){c.readable&&c.resume&&c.resume()}function h(){g||(g=!0,a.end())}function i(){g||(g=!0,"function"==typeof a.destroy&&a.destroy())}function j(a){if(k(),0===d.listenerCount(this,"error"))throw a}function k(){c.removeListener("data",e),a.removeListener("drain",f),c.removeListener("end",h),c.removeListener("close",i),c.removeListener("error",j),a.removeListener("error",j),c.removeListener("end",k),c.removeListener("close",k),a.removeListener("close",k)}var c=this;c.on("data",e),a.on("drain",f),a._isStdio||b&&b.end===!1||(c.on("end",h),c.on("close",i));var g=!1;return c.on("error",j),a.on("error",j),c.on("end",k),c.on("close",k),a.on("close",k),a.emit("pipe",c),a}},{events:42,inherits:43,"readable-stream/duplex.js":46,"readable-stream/passthrough.js":57,"readable-stream/readable.js":58,"readable-stream/transform.js":59,"readable-stream/writable.js":60}],62:[function(a,b,c){function f(a){if(a&&!e(a))throw new Error("Unknown encoding: "+a)}function h(a){return a.toString(this.encoding)}function i(a){this.charReceived=a.length%2,this.charLength=this.charReceived?2:0}function j(a){this.charReceived=a.length%3,this.charLength=this.charReceived?3:0}var d=a("buffer").Buffer,e=d.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}},g=c.StringDecoder=function(a){switch(this.encoding=(a||"utf8").toLowerCase().replace(/[-_]/,""),f(a),this.encoding){case"utf8":this.surrogateSize=3;break;case"ucs2":case"utf16le":this.surrogateSize=2,this.detectIncompleteChar=i;break;case"base64":this.surrogateSize=3,this.detectIncompleteChar=j;break;default:return void(this.write=h)}this.charBuffer=new d(6),this.charReceived=0,this.charLength=0};g.prototype.write=function(a){for(var b="";this.charLength;){var c=a.length>=this.charLength-this.charReceived?this.charLength-this.charReceived:a.length;if(a.copy(this.charBuffer,this.charReceived,0,c),this.charReceived+=c,this.charReceived<this.charLength)return"";a=a.slice(c,a.length),b=this.charBuffer.slice(0,this.charLength).toString(this.encoding);var d=b.charCodeAt(b.length-1);if(!(d>=55296&&d<=56319)){if(this.charReceived=this.charLength=0,0===a.length)return b;break}this.charLength+=this.surrogateSize,b=""}this.detectIncompleteChar(a);var e=a.length;this.charLength&&(a.copy(this.charBuffer,0,a.length-this.charReceived,e),e-=this.charReceived),b+=a.toString(this.encoding,0,e);var e=b.length-1,d=b.charCodeAt(e);if(d>=55296&&d<=56319){var f=this.surrogateSize;return this.charLength+=f,this.charReceived+=f,this.charBuffer.copy(this.charBuffer,f,0,f),a.copy(this.charBuffer,0,0,f),b.substring(0,e)}return b},g.prototype.detectIncompleteChar=function(a){for(var b=a.length>=3?3:a.length;b>0;b--){var c=a[a.length-b];if(1==b&&c>>5==6){this.charLength=2;break}if(b<=2&&c>>4==14){this.charLength=3;break}if(b<=3&&c>>3==30){this.charLength=4;break}}this.charReceived=b},g.prototype.end=function(a){var b="";if(a&&a.length&&(b=this.write(a)),this.charReceived){var c=this.charReceived,d=this.charBuffer,e=this.encoding;b+=d.slice(0,c).toString(e)}return b}},{buffer:38}],63:[function(a,b,c){b.exports=function(b){return b&&"object"==typeof b&&"function"==typeof b.copy&&"function"==typeof b.fill&&"function"==typeof b.readUInt8}},{}],64:[function(a,b,c){(function(b,d){function h(a,b){var d={seen:[],stylize:j};return arguments.length>=3&&(d.depth=arguments[2]),arguments.length>=4&&(d.colors=arguments[3]),s(b)?d.showHidden=b:b&&c._extend(d,b),y(d.showHidden)&&(d.showHidden=!1),y(d.depth)&&(d.depth=2),y(d.colors)&&(d.colors=!1),y(d.customInspect)&&(d.customInspect=!0),d.colors&&(d.stylize=i),l(d,a,d.depth)}function i(a,b){var c=h.styles[b];return c?"["+h.colors[c][0]+"m"+a+"["+h.colors[c][1]+"m":a}function j(a,b){return a}function k(a){var b={};return a.forEach(function(a,c){b[a]=!0}),b}function l(a,b,d){if(a.customInspect&&b&&D(b.inspect)&&b.inspect!==c.inspect&&(!b.constructor||b.constructor.prototype!==b)){var e=b.inspect(d,a);return w(e)||(e=l(a,e,d)),e}var f=m(a,b);if(f)return f;var g=Object.keys(b),h=k(g);if(a.showHidden&&(g=Object.getOwnPropertyNames(b)),C(b)&&(g.indexOf("message")>=0||g.indexOf("description")>=0))return n(b);if(0===g.length){if(D(b)){var i=b.name?": "+b.name:"";return a.stylize("[Function"+i+"]","special")}if(z(b))return a.stylize(RegExp.prototype.toString.call(b),"regexp");if(B(b))return a.stylize(Date.prototype.toString.call(b),"date");if(C(b))return n(b)}var j="",s=!1,t=["{","}"];if(r(b)&&(s=!0,t=["[","]"]),D(b)){var u=b.name?": "+b.name:"";j=" [Function"+u+"]"}if(z(b)&&(j=" "+RegExp.prototype.toString.call(b)),B(b)&&(j=" "+Date.prototype.toUTCString.call(b)),C(b)&&(j=" "+n(b)),0===g.length&&(!s||0==b.length))return t[0]+j+t[1];if(d<0)return z(b)?a.stylize(RegExp.prototype.toString.call(b),"regexp"):a.stylize("[Object]","special");a.seen.push(b);var v;return v=s?o(a,b,d,h,g):g.map(function(c){return p(a,b,d,h,c,s)}),a.seen.pop(),q(v,j,t)}function m(a,b){if(y(b))return a.stylize("undefined","undefined");if(w(b)){var c="'"+JSON.stringify(b).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return a.stylize(c,"string")}return v(b)?a.stylize(""+b,"number"):s(b)?a.stylize(""+b,"boolean"):t(b)?a.stylize("null","null"):void 0}function n(a){return"["+Error.prototype.toString.call(a)+"]"}function o(a,b,c,d,e){for(var f=[],g=0,h=b.length;g<h;++g)J(b,String(g))?f.push(p(a,b,c,d,String(g),!0)):f.push("");return e.forEach(function(e){e.match(/^\d+$/)||f.push(p(a,b,c,d,e,!0))}),f}function p(a,b,c,d,e,f){var g,h,i;if(i=Object.getOwnPropertyDescriptor(b,e)||{value:b[e]},i.get?h=i.set?a.stylize("[Getter/Setter]","special"):a.stylize("[Getter]","special"):i.set&&(h=a.stylize("[Setter]","special")),J(d,e)||(g="["+e+"]"),h||(a.seen.indexOf(i.value)<0?(h=t(c)?l(a,i.value,null):l(a,i.value,c-1),h.indexOf("\n")>-1&&(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")),y(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 q(a,b,c){var d=0,e=a.reduce(function(a,b){return d++,b.indexOf("\n")>=0&&d++,a+b.replace(/\u001b\[\d\d?m/g,"").length+1},0);return e>60?c[0]+(""===b?"":b+"\n ")+" "+a.join(",\n  ")+" "+c[1]:c[0]+b+" "+a.join(", ")+" "+c[1]}function r(a){return Array.isArray(a)}function s(a){return"boolean"==typeof a}function t(a){return null===a}function u(a){return null==a}function v(a){return"number"==typeof a}function w(a){return"string"==typeof a}function x(a){return"symbol"==typeof a}function y(a){return void 0===a}function z(a){return A(a)&&"[object RegExp]"===F(a)}function A(a){return"object"==typeof a&&null!==a}function B(a){return A(a)&&"[object Date]"===F(a)}function C(a){return A(a)&&("[object Error]"===F(a)||a instanceof Error)}function D(a){return"function"==typeof a}function E(a){return null===a||"boolean"==typeof a||"number"==typeof a||"string"==typeof a||"symbol"==typeof a||"undefined"==typeof a}function F(a){return Object.prototype.toString.call(a)}function G(a){return a<10?"0"+a.toString(10):a.toString(10)}function I(){var a=new Date,b=[G(a.getHours()),G(a.getMinutes()),G(a.getSeconds())].join(":");return[a.getDate(),H[a.getMonth()],b].join(" ")}function J(a,b){return Object.prototype.hasOwnProperty.call(a,b)}var e=/%[sdj%]/g;c.format=function(a){if(!w(a)){for(var b=[],c=0;c<arguments.length;c++)b.push(h(arguments[c]));return b.join(" ")}for(var c=1,d=arguments,f=d.length,g=String(a).replace(e,function(a){if("%%"===a)return"%";if(c>=f)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(a){return"[Circular]"}default:return a}}),i=d[c];c<f;i=d[++c])g+=t(i)||!A(i)?" "+i:" "+h(i);return g},c.deprecate=function(a,e){function g(){if(!f){if(b.throwDeprecation)throw new Error(e);b.traceDeprecation?console.trace(e):console.error(e),f=!0}return a.apply(this,arguments)}if(y(d.process))return function(){return c.deprecate(a,e).apply(this,arguments)};if(b.noDeprecation===!0)return a;var f=!1;return g};var g,f={};c.debuglog=function(a){if(y(g)&&(g=b.env.NODE_DEBUG||""),a=a.toUpperCase(),!f[a])if(new RegExp("\\b"+a+"\\b","i").test(g)){var d=b.pid;f[a]=function(){var b=c.format.apply(c,arguments);console.error("%s %d: %s",a,d,b)}}else f[a]=function(){};return f[a]},c.inspect=h,h.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]},h.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},c.isArray=r,c.isBoolean=s,c.isNull=t,c.isNullOrUndefined=u,c.isNumber=v,c.isString=w,c.isSymbol=x,c.isUndefined=y,c.isRegExp=z,c.isObject=A,c.isDate=B,c.isError=C,c.isFunction=D,c.isPrimitive=E,c.isBuffer=a("./support/isBuffer");var H=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];c.log=function(){console.log("%s - %s",I(),c.format.apply(c,arguments))},c.inherits=a("inherits"),c._extend=function(a,b){if(!b||!A(b))return a;for(var c=Object.keys(b),d=c.length;d--;)a[c[d]]=b[c[d]];return a}}).call(this,a("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./support/isBuffer":63,_process:45,inherits:43}]},{},[1])(1)});