/* Jimp v0.6.3 https://github.com/oliver-moran/jimp Ported for the Web by Phil Seaton MIT License Copyright (c) 2018 Oliver Moran Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ if((void 0===window||!window)&&"undefined"!=typeof self)var window=self;!function(t){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{(void 0!==window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this).jimp=t()}}(function(){return function o(a,s,u){function f(e,t){if(!s[e]){if(!a[e]){var r="function"==typeof require&&require;if(!t&&r)return r(e,!0);if(l)return l(e,!0);var n=new Error("Cannot find module '"+e+"'");throw n.code="MODULE_NOT_FOUND",n}var i=s[e]={exports:{}};a[e][0].call(i.exports,function(t){return f(a[e][1][t]||t)},i,i.exports,o,a,s,u)}return s[e].exports}for(var l="function"==typeof require&&require,t=0;t>16&255,o[a++]=e>>8&255,o[a++]=255&e;var f,l;2===i&&(e=h[t.charCodeAt(u)]<<2|h[t.charCodeAt(u+1)]>>4,o[a++]=255&e);1===i&&(e=h[t.charCodeAt(u)]<<10|h[t.charCodeAt(u+1)]<<4|h[t.charCodeAt(u+2)]>>2,o[a++]=e>>8&255,o[a++]=255&e);return o},r.fromByteArray=function(t){for(var e,r=t.length,n=r%3,i=[],o=0,a=r-n;o>2]+s[e<<4&63]+"==")):2===n&&(e=(t[r-2]<<8)+t[r-1],i.push(s[e>>10]+s[e>>4&63]+s[e<<2&63]+"="));return i.join("")};for(var s=[],h=[],c="undefined"!=typeof Uint8Array?Uint8Array:Array,n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",i=0,o=n.length;i>18&63]+s[i>>12&63]+s[i>>6&63]+s[63&i]);return o.join("")}h["-".charCodeAt(0)]=62,h["_".charCodeAt(0)]=63},{}],8:[function(t,e,r){var n=t("./lib/encoder"),i=t("./lib/decoder");e.exports={encode:n,decode:i}},{"./lib/decoder":9,"./lib/encoder":10}],9:[function(t,n,e){(function(r){function e(t,e){if(this.pos=0,this.buffer=t,this.is_with_alpha=!!e,this.bottom_up=!0,this.flag=this.buffer.toString("utf-8",0,this.pos+=2),"BM"!=this.flag)throw new Error("Invalid BMP File");this.parseHeader(),this.parseRGBA()}e.prototype.parseHeader=function(){if(this.fileSize=this.buffer.readUInt32LE(this.pos),this.pos+=4,this.reserved=this.buffer.readUInt32LE(this.pos),this.pos+=4,this.offset=this.buffer.readUInt32LE(this.pos),this.pos+=4,this.headerSize=this.buffer.readUInt32LE(this.pos),this.pos+=4,this.width=this.buffer.readUInt32LE(this.pos),this.pos+=4,this.height=this.buffer.readInt32LE(this.pos),this.pos+=4,this.planes=this.buffer.readUInt16LE(this.pos),this.pos+=2,this.bitPP=this.buffer.readUInt16LE(this.pos),this.pos+=2,this.compress=this.buffer.readUInt32LE(this.pos),this.pos+=4,this.rawSize=this.buffer.readUInt32LE(this.pos),this.pos+=4,this.hr=this.buffer.readUInt32LE(this.pos),this.pos+=4,this.vr=this.buffer.readUInt32LE(this.pos),this.pos+=4,this.colors=this.buffer.readUInt32LE(this.pos),this.pos+=4,this.importantColors=this.buffer.readUInt32LE(this.pos),this.pos+=4,16===this.bitPP&&this.is_with_alpha&&(this.bitPP=15),this.bitPP<15){var t=0===this.colors?1<>7-s&1];this.data[a+4*s]=0,this.data[a+4*s+1]=u.blue,this.data[a+4*s+2]=u.green,this.data[a+4*s+3]=u.red}0!=e&&(this.pos+=4-e)}},e.prototype.bit4=function(){if(2==this.compress){this.data.fill(255);for(var r=0,t=this.bottom_up?this.height-1:0,e=!1;r>4),1&u&&u+1>1&1)&&this.pos++}}else for(u=0;u>4),e=!e}function f(t){var e=this.palette[t];this.data[r]=0,this.data[r+1]=e.blue,this.data[r+2]=e.green,this.data[r+3]=e.red,r+=4}}else{var l=Math.ceil(this.width/2),h=l%4;for(a=this.height-1;0<=a;a--){var c=this.bottom_up?a:this.height-1-a;for(o=0;o>4,p=15&i,m=this.palette[d];if(this.data[r]=0,this.data[r+1]=m.blue,this.data[r+2]=m.green,this.data[r+3]=m.red,2*o+1>=this.width)break;m=this.palette[p],this.data[r+4]=0,this.data[r+4+1]=m.blue,this.data[r+4+2]=m.green,this.data[r+4+3]=m.red}0!=h&&(this.pos+=4-h)}}},e.prototype.bit8=function(){if(1==this.compress){this.data.fill(255);for(var r=0,t=this.bottom_up?this.height-1:0;r>5&e)/e*255|0,u=(o>>10&e)/e*255|0,f=o>>15?255:0,l=n*this.width*4+4*i;this.data[l]=f,this.data[l+1]=a,this.data[l+2]=s,this.data[l+3]=u}this.pos+=t}},e.prototype.bit16=function(){var t=this.width%2*2;this.maskRed=31744,this.maskGreen=992,this.maskBlue=31,this.mask0=0,3==this.compress&&(this.maskRed=this.buffer.readUInt32LE(this.pos),this.pos+=4,this.maskGreen=this.buffer.readUInt32LE(this.pos),this.pos+=4,this.maskBlue=this.buffer.readUInt32LE(this.pos),this.pos+=4,this.mask0=this.buffer.readUInt32LE(this.pos),this.pos+=4);for(var e=[0,0,0],r=0;r<16;r++)this.maskRed>>r&1&&e[0]++,this.maskGreen>>r&1&&e[1]++,this.maskBlue>>r&1&&e[2]++;e[1]+=e[0],e[2]+=e[1],e[0]=8-e[0],e[1]-=8,e[2]-=8;for(var n=this.height-1;0<=n;n--){for(var i=this.bottom_up?n:this.height-1-n,o=0;o>e[1],f=(a&this.maskRed)>>e[2],l=i*this.width*4+4*o;this.data[l]=0,this.data[l+1]=s,this.data[l+2]=u,this.data[l+3]=f}this.pos+=t}},e.prototype.bit24=function(){for(var t=this.height-1;0<=t;t--){for(var e=this.bottom_up?t:this.height-1-t,r=0;rc.UNZIP)throw new TypeError("Bad argument");this.dictionary=null,this.err=0,this.flush=0,this.init_done=!1,this.level=0,this.memLevel=0,this.mode=t,this.strategy=0,this.windowBits=0,this.write_in_progress=!1,this.pending_close=!1,this.gzip_id_bytes_read=0}r.prototype.close=function(){this.write_in_progress?this.pending_close=!0:(this.pending_close=!1,h(this.init_done,"close before init"),h(this.mode<=c.UNZIP),this.mode===c.DEFLATE||this.mode===c.GZIP||this.mode===c.DEFLATERAW?a.deflateEnd(this.strm):this.mode!==c.INFLATE&&this.mode!==c.GUNZIP&&this.mode!==c.INFLATERAW&&this.mode!==c.UNZIP||s.inflateEnd(this.strm),this.mode=c.NONE,this.dictionary=null)},r.prototype.write=function(t,e,r,n,i,o,a){return this._write(!0,t,e,r,n,i,o,a)},r.prototype.writeSync=function(t,e,r,n,i,o,a){return this._write(!1,t,e,r,n,i,o,a)},r.prototype._write=function(t,e,r,n,i,o,a,s){if(h.equal(arguments.length,8),h(this.init_done,"write before init"),h(this.mode!==c.NONE,"already finalized"),h.equal(!1,this.write_in_progress,"write already in progress"),h.equal(!1,this.pending_close,"close is pending"),this.write_in_progress=!0,h.equal(!1,void 0===e,"must provide flush value"),this.write_in_progress=!0,e!==c.Z_NO_FLUSH&&e!==c.Z_PARTIAL_FLUSH&&e!==c.Z_SYNC_FLUSH&&e!==c.Z_FULL_FLUSH&&e!==c.Z_FINISH&&e!==c.Z_BLOCK)throw new Error("Invalid flush value");if(null==r&&(r=l.alloc(0),n=i=0),this.strm.avail_in=i,this.strm.input=r,this.strm.next_in=n,this.strm.avail_out=s,this.strm.output=o,this.strm.next_out=a,this.flush=e,!t)return this._process(),this._checkError()?this._afterSync():void 0;var u=this;return f.nextTick(function(){u._process(),u._after()}),this},r.prototype._afterSync=function(){var t=this.strm.avail_out,e=this.strm.avail_in;return this.write_in_progress=!1,[e,t]},r.prototype._process=function(){var t=null;switch(this.mode){case c.DEFLATE:case c.GZIP:case c.DEFLATERAW:this.err=a.deflate(this.strm,this.flush);break;case c.UNZIP:switch(0T.Z_MAX_CHUNK))throw new Error("Invalid chunk size: "+t.chunkSize);if(t.windowBits&&(t.windowBitsT.Z_MAX_WINDOWBITS))throw new Error("Invalid windowBits: "+t.windowBits);if(t.level&&(t.levelT.Z_MAX_LEVEL))throw new Error("Invalid compression level: "+t.level);if(t.memLevel&&(t.memLevelT.Z_MAX_MEMLEVEL))throw new Error("Invalid memLevel: "+t.memLevel);if(t.strategy&&t.strategy!=T.Z_FILTERED&&t.strategy!=T.Z_HUFFMAN_ONLY&&t.strategy!=T.Z_RLE&&t.strategy!=T.Z_FIXED&&t.strategy!=T.Z_DEFAULT_STRATEGY)throw new Error("Invalid strategy: "+t.strategy);if(t.dictionary&&!b.isBuffer(t.dictionary))throw new Error("Invalid dictionary: it should be a Buffer instance");this._handle=new s.Zlib(e);var n=this;this._hadError=!1,this._handle.onerror=function(t,e){S(n),n._hadError=!0;var r=new Error(t);r.errno=e,r.code=T.codes[e],n.emit("error",r)};var i=T.Z_DEFAULT_COMPRESSION;"number"==typeof t.level&&(i=t.level);var o=T.Z_DEFAULT_STRATEGY;"number"==typeof t.strategy&&(o=t.strategy),this._handle.init(t.windowBits||T.Z_DEFAULT_WINDOWBITS,i,t.memLevel||T.Z_DEFAULT_MEMLEVEL,o,t.dictionary),this._buffer=b.allocUnsafe(this._chunkSize),this._offset=0,this._level=i,this._strategy=o,this.once("end",this.close),Object.defineProperty(this,"_closed",{get:function(){return!r._handle},configurable:!0,enumerable:!0})}function S(t,e){e&&i.nextTick(e),t._handle&&(t._handle.close(),t._handle=null)}function I(t){t.emit("close")}Object.defineProperty(T,"codes",{enumerable:!0,value:Object.freeze(o),writable:!1}),T.Deflate=d,T.Inflate=p,T.Gzip=m,T.Gunzip=v,T.DeflateRaw=w,T.InflateRaw=E,T.Unzip=x,T.createDeflate=function(t){return new d(t)},T.createInflate=function(t){return new p(t)},T.createDeflateRaw=function(t){return new w(t)},T.createInflateRaw=function(t){return new E(t)},T.createGzip=function(t){return new m(t)},T.createGunzip=function(t){return new v(t)},T.createUnzip=function(t){return new x(t)},T.deflate=function(t,e,r){return"function"==typeof e&&(r=e,e={}),h(new d(e),t,r)},T.deflateSync=function(t,e){return c(new d(e),t)},T.gzip=function(t,e,r){return"function"==typeof e&&(r=e,e={}),h(new m(e),t,r)},T.gzipSync=function(t,e){return c(new m(e),t)},T.deflateRaw=function(t,e,r){return"function"==typeof e&&(r=e,e={}),h(new w(e),t,r)},T.deflateRawSync=function(t,e){return c(new w(e),t)},T.unzip=function(t,e,r){return"function"==typeof e&&(r=e,e={}),h(new x(e),t,r)},T.unzipSync=function(t,e){return c(new x(e),t)},T.inflate=function(t,e,r){return"function"==typeof e&&(r=e,e={}),h(new p(e),t,r)},T.inflateSync=function(t,e){return c(new p(e),t)},T.gunzip=function(t,e,r){return"function"==typeof e&&(r=e,e={}),h(new v(e),t,r)},T.gunzipSync=function(t,e){return c(new v(e),t)},T.inflateRaw=function(t,e,r){return"function"==typeof e&&(r=e,e={}),h(new E(e),t,r)},T.inflateRawSync=function(t,e){return c(new E(e),t)},t.inherits(k,a),k.prototype.params=function(t,e,r){if(tT.Z_MAX_LEVEL)throw new RangeError("Invalid compression level: "+t);if(e!=T.Z_FILTERED&&e!=T.Z_HUFFMAN_ONLY&&e!=T.Z_RLE&&e!=T.Z_FIXED&&e!=T.Z_DEFAULT_STRATEGY)throw new TypeError("Invalid strategy: "+e);if(this._level!==t||this._strategy!==e){var n=this;this.flush(s.Z_SYNC_FLUSH,function(){g(n._handle,"zlib binding closed"),n._handle.params(t,e),n._hadError||(n._level=t,n._strategy=e,r&&r())})}else i.nextTick(r)},k.prototype.reset=function(){return g(this._handle,"zlib binding closed"),this._handle.reset()},k.prototype._flush=function(t){this._transform(b.alloc(0),"",t)},k.prototype.flush=function(t,e){var r=this,n=this._writableState;("function"==typeof t||void 0===t&&!e)&&(e=t,t=s.Z_FULL_FLUSH),n.ended?e&&i.nextTick(e):n.ending?e&&this.once("end",e):n.needDrain?e&&this.once("drain",function(){return r.flush(t,e)}):(this._flushFlag=t,this.write(b.alloc(0),"",e))},k.prototype.close=function(t){S(this,t),i.nextTick(I,this)},k.prototype._transform=function(t,e,r){var n,i=this._writableState,o=(i.ending||i.ended)&&(!t||i.length===t.length);return null===t||b.isBuffer(t)?this._handle?(o?n=this._finishFlushFlag:(n=this._flushFlag,t.length>=i.length&&(this._flushFlag=this._opts.flush||s.Z_NO_FLUSH)),void this._processChunk(t,n,r)):r(new Error("zlib binding closed")):r(new Error("invalid input"))},k.prototype._processChunk=function(o,a,s){var u=o&&o.length,f=this._chunkSize-this._offset,l=0,h=this,c="function"==typeof s;if(!c){var e,d=[],p=0;this.on("error",function(t){e=t}),g(this._handle,"zlib binding closed");do{var t=this._handle.writeSync(a,o,l,u,this._buffer,this._offset,f)}while(!this._hadError&&m(t[0],t[1]));if(this._hadError)throw e;if(_<=p)throw S(this),new RangeError(y);var r=b.concat(d,p);return S(this),r}g(this._handle,"zlib binding closed");var n=this._handle.write(a,o,l,u,this._buffer,this._offset,f);function m(t,e){if(this&&(this.buffer=null,this.callback=null),!h._hadError){var r=f-e;if(g(0<=r,"have should not go down"),0=h._chunkSize)&&(f=h._chunkSize,h._offset=0,h._buffer=b.allocUnsafe(h._chunkSize)),0===e){if(l+=u-t,u=t,!c)return!0;var i=h._handle.write(a,o,l,u,h._buffer,h._offset,h._chunkSize);return i.callback=m,void(i.buffer=o)}if(!c)return!1;s()}}n.buffer=o,n.callback=m},t.inherits(d,k),t.inherits(p,k),t.inherits(m,k),t.inherits(v,k),t.inherits(w,k),t.inherits(E,k),t.inherits(x,k)}).call(this,A("_process"))},{"./binding":12,_process:223,assert:3,buffer:16,stream:242,util:258}],14:[function(t,e,r){arguments[4][11][0].apply(r,arguments)},{dup:11}],15:[function(t,e,r){var n=t("buffer").Buffer;e.exports=function(t,e){if(n.isBuffer(t)&&n.isBuffer(e)){if("function"==typeof t.equals)return t.equals(e);if(t.length!==e.length)return!1;for(var r=0;r>>1;case"base64":return C(t).length;default:if(i)return n?-1:L(t).length;e=(""+e).toLowerCase(),i=!0}}function p(t,e,r){var n=t[e];t[e]=t[r],t[r]=n}function m(t,e,r,n,i){if(0===t.length)return-1;if("string"==typeof r?(n=r,r=0):2147483647=t.length){if(i)return-1;r=t.length-1}else if(r<0){if(!i)return-1;r=0}if("string"==typeof e&&(e=h.from(e,n)),h.isBuffer(e))return 0===e.length?-1:b(t,e,r,n,i);if("number"==typeof e)return e&=255,"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(t,e,r):Uint8Array.prototype.lastIndexOf.call(t,e,r):b(t,[e],r,n,i);throw new TypeError("val must be string, number or Buffer")}function b(t,e,r,n,i){var o,a=1,s=t.length,u=e.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(t.length<2||e.length<2)return-1;s/=a=2,u/=2,r/=2}function f(t,e){return 1===a?t[e]:t.readUInt16BE(e*a)}if(i){var l=-1;for(o=r;o>>10&1023|55296),l=56320|1023&l),n.push(l),i+=h}return function(t){var e=t.length;if(e<=w)return String.fromCharCode.apply(String,t);var r="",n=0;for(;nthis.length)return"";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return"";if((r>>>=0)<=(e>>>=0))return"";for(t||(t="utf8");;)switch(t){case"hex":return j(this,e,r);case"utf8":case"utf-8":return v(this,e,r);case"ascii":return E(this,e,r);case"latin1":case"binary":return x(this,e,r);case"base64":return y(this,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return k(this,e,r);default:if(n)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),n=!0}}.apply(this,arguments)},h.prototype.equals=function(t){if(!h.isBuffer(t))throw new TypeError("Argument must be a Buffer");return this===t||0===h.compare(this,t)},h.prototype.inspect=function(){var t="",e=r.INSPECT_MAX_BYTES;return t=this.toString("hex",0,e).replace(/(.{2})/g,"$1 ").trim(),this.length>e&&(t+=" ... "),""},h.prototype.compare=function(t,e,r,n,i){if(B(t,Uint8Array)&&(t=h.from(t,t.offset,t.byteLength)),!h.isBuffer(t))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof t);if(void 0===e&&(e=0),void 0===r&&(r=t?t.length:0),void 0===n&&(n=0),void 0===i&&(i=this.length),e<0||r>t.length||n<0||i>this.length)throw new RangeError("out of range index");if(i<=n&&r<=e)return 0;if(i<=n)return-1;if(r<=e)return 1;if(this===t)return 0;for(var o=(i>>>=0)-(n>>>=0),a=(r>>>=0)-(e>>>=0),s=Math.min(o,a),u=this.slice(n,i),f=t.slice(e,r),l=0;l>>=0,isFinite(r)?(r>>>=0,void 0===n&&(n="utf8")):(n=r,r=void 0)}var i=this.length-e;if((void 0===r||ithis.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var o,a,s,u,f,l,h,c,d,p=!1;;)switch(n){case"hex":return g(this,t,e,r);case"utf8":case"utf-8":return c=e,d=r,R(L(t,(h=this).length-c),h,c,d);case"ascii":return _(this,t,e,r);case"latin1":case"binary":return _(this,t,e,r);case"base64":return u=this,f=e,l=r,R(C(t),u,f,l);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return a=e,s=r,R(function(t,e){for(var r,n,i,o=[],a=0;a>8,i=r%256,o.push(i),o.push(n);return o}(t,(o=this).length-a),o,a,s);default:if(p)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),p=!0}},h.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var w=4096;function E(t,e,r){var n="";r=Math.min(t.length,r);for(var i=e;it.length)throw new RangeError("Index out of range")}function A(t,e,r,n,i,o){if(r+n>t.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function T(t,e,r,n,i){return e=+e,r>>>=0,i||A(t,0,r,4),o.write(t,e,r,n,23,4),r+4}function O(t,e,r,n,i){return e=+e,r>>>=0,i||A(t,0,r,8),o.write(t,e,r,n,52,8),r+8}h.prototype.slice=function(t,e){var r=this.length;(t=~~t)<0?(t+=r)<0&&(t=0):r>>=0,e>>>=0,r||S(t,e,this.length);for(var n=this[t],i=1,o=0;++o>>=0,e>>>=0,r||S(t,e,this.length);for(var n=this[t+--e],i=1;0>>=0,e||S(t,1,this.length),this[t]},h.prototype.readUInt16LE=function(t,e){return t>>>=0,e||S(t,2,this.length),this[t]|this[t+1]<<8},h.prototype.readUInt16BE=function(t,e){return t>>>=0,e||S(t,2,this.length),this[t]<<8|this[t+1]},h.prototype.readUInt32LE=function(t,e){return t>>>=0,e||S(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},h.prototype.readUInt32BE=function(t,e){return t>>>=0,e||S(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},h.prototype.readIntLE=function(t,e,r){t>>>=0,e>>>=0,r||S(t,e,this.length);for(var n=this[t],i=1,o=0;++o>>=0,e>>>=0,r||S(t,e,this.length);for(var n=e,i=1,o=this[t+--n];0>>=0,e||S(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},h.prototype.readInt16LE=function(t,e){t>>>=0,e||S(t,2,this.length);var r=this[t]|this[t+1]<<8;return 32768&r?4294901760|r:r},h.prototype.readInt16BE=function(t,e){t>>>=0,e||S(t,2,this.length);var r=this[t+1]|this[t]<<8;return 32768&r?4294901760|r:r},h.prototype.readInt32LE=function(t,e){return t>>>=0,e||S(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},h.prototype.readInt32BE=function(t,e){return t>>>=0,e||S(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},h.prototype.readFloatLE=function(t,e){return t>>>=0,e||S(t,4,this.length),o.read(this,t,!0,23,4)},h.prototype.readFloatBE=function(t,e){return t>>>=0,e||S(t,4,this.length),o.read(this,t,!1,23,4)},h.prototype.readDoubleLE=function(t,e){return t>>>=0,e||S(t,8,this.length),o.read(this,t,!0,52,8)},h.prototype.readDoubleBE=function(t,e){return t>>>=0,e||S(t,8,this.length),o.read(this,t,!1,52,8)},h.prototype.writeUIntLE=function(t,e,r,n){(t=+t,e>>>=0,r>>>=0,n)||I(this,t,e,r,Math.pow(2,8*r)-1,0);var i=1,o=0;for(this[e]=255&t;++o>>=0,r>>>=0,n)||I(this,t,e,r,Math.pow(2,8*r)-1,0);var i=r-1,o=1;for(this[e+i]=255&t;0<=--i&&(o*=256);)this[e+i]=t/o&255;return e+r},h.prototype.writeUInt8=function(t,e,r){return t=+t,e>>>=0,r||I(this,t,e,1,255,0),this[e]=255&t,e+1},h.prototype.writeUInt16LE=function(t,e,r){return t=+t,e>>>=0,r||I(this,t,e,2,65535,0),this[e]=255&t,this[e+1]=t>>>8,e+2},h.prototype.writeUInt16BE=function(t,e,r){return t=+t,e>>>=0,r||I(this,t,e,2,65535,0),this[e]=t>>>8,this[e+1]=255&t,e+2},h.prototype.writeUInt32LE=function(t,e,r){return t=+t,e>>>=0,r||I(this,t,e,4,4294967295,0),this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t,e+4},h.prototype.writeUInt32BE=function(t,e,r){return t=+t,e>>>=0,r||I(this,t,e,4,4294967295,0),this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t,e+4},h.prototype.writeIntLE=function(t,e,r,n){if(t=+t,e>>>=0,!n){var i=Math.pow(2,8*r-1);I(this,t,e,r,i-1,-i)}var o=0,a=1,s=0;for(this[e]=255&t;++o>0)-s&255;return e+r},h.prototype.writeIntBE=function(t,e,r,n){if(t=+t,e>>>=0,!n){var i=Math.pow(2,8*r-1);I(this,t,e,r,i-1,-i)}var o=r-1,a=1,s=0;for(this[e+o]=255&t;0<=--o&&(a*=256);)t<0&&0===s&&0!==this[e+o+1]&&(s=1),this[e+o]=(t/a>>0)-s&255;return e+r},h.prototype.writeInt8=function(t,e,r){return t=+t,e>>>=0,r||I(this,t,e,1,127,-128),t<0&&(t=255+t+1),this[e]=255&t,e+1},h.prototype.writeInt16LE=function(t,e,r){return t=+t,e>>>=0,r||I(this,t,e,2,32767,-32768),this[e]=255&t,this[e+1]=t>>>8,e+2},h.prototype.writeInt16BE=function(t,e,r){return t=+t,e>>>=0,r||I(this,t,e,2,32767,-32768),this[e]=t>>>8,this[e+1]=255&t,e+2},h.prototype.writeInt32LE=function(t,e,r){return t=+t,e>>>=0,r||I(this,t,e,4,2147483647,-2147483648),this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24,e+4},h.prototype.writeInt32BE=function(t,e,r){return t=+t,e>>>=0,r||I(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t,e+4},h.prototype.writeFloatLE=function(t,e,r){return T(this,t,e,!0,r)},h.prototype.writeFloatBE=function(t,e,r){return T(this,t,e,!1,r)},h.prototype.writeDoubleLE=function(t,e,r){return O(this,t,e,!0,r)},h.prototype.writeDoubleBE=function(t,e,r){return O(this,t,e,!1,r)},h.prototype.copy=function(t,e,r,n){if(!h.isBuffer(t))throw new TypeError("argument should be a Buffer");if(r||(r=0),n||0===n||(n=this.length),e>=t.length&&(e=t.length),e||(e=0),0=this.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),t.length-e>>=0,r=void 0===r?this.length:r>>>0,t||(t=0),"number"==typeof t)for(o=e;o>6|192,63&r|128)}else if(r<65536){if((e-=3)<0)break;o.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error("Invalid code point");if((e-=4)<0)break;o.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return o}function C(t){return n.toByteArray(function(t){if((t=(t=t.split("=")[0]).trim().replace(P,"")).length<2)return"";for(;t.length%4!=0;)t+="=";return t}(t))}function R(t,e,r,n){for(var i=0;i=e.length||i>=t.length);++i)e[i+r]=t[i];return i}function B(t,e){return t instanceof e||null!=t&&null!=t.constructor&&null!=t.constructor.name&&t.constructor.name===e.name}function N(t){return t!=t}},{"base64-js":7,ieee754:165}],17:[function(t,e,r){e.exports={100:"Continue",101:"Switching Protocols",102:"Processing",200:"OK",201:"Created",202:"Accepted",203:"Non-Authoritative Information",204:"No Content",205:"Reset Content",206:"Partial Content",207:"Multi-Status",208:"Already Reported",226:"IM Used",300:"Multiple Choices",301:"Moved Permanently",302:"Found",303:"See Other",304:"Not Modified",305:"Use Proxy",307:"Temporary Redirect",308:"Permanent Redirect",400:"Bad Request",401:"Unauthorized",402:"Payment Required",403:"Forbidden",404:"Not Found",405:"Method Not Allowed",406:"Not Acceptable",407:"Proxy Authentication Required",408:"Request Timeout",409:"Conflict",410:"Gone",411:"Length Required",412:"Precondition Failed",413:"Payload Too Large",414:"URI Too Long",415:"Unsupported Media Type",416:"Range Not Satisfiable",417:"Expectation Failed",418:"I'm a teapot",421:"Misdirected Request",422:"Unprocessable Entity",423:"Locked",424:"Failed Dependency",425:"Unordered Collection",426:"Upgrade Required",428:"Precondition Required",429:"Too Many Requests",431:"Request Header Fields Too Large",451:"Unavailable For Legal Reasons",500:"Internal Server Error",501:"Not Implemented",502:"Bad Gateway",503:"Service Unavailable",504:"Gateway Timeout",505:"HTTP Version Not Supported",506:"Variant Also Negotiates",507:"Insufficient Storage",508:"Loop Detected",509:"Bandwidth Limit Exceeded",510:"Not Extended",511:"Network Authentication Required"}},{}],18:[function(t,e,r){e.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},{}],19:[function(t,e,r){var n=t("./_wks")("unscopables"),i=Array.prototype;null==i[n]&&t("./_hide")(i,n,{}),e.exports=function(t){i[n][t]=!0}},{"./_hide":47,"./_wks":112}],20:[function(t,e,r){e.exports=function(t,e,r,n){if(!(t instanceof e)||void 0!==n&&n in t)throw TypeError(r+": incorrect invocation!");return t}},{}],21:[function(t,e,r){var n=t("./_is-object");e.exports=function(t){if(!n(t))throw TypeError(t+" is not an object!");return t}},{"./_is-object":55}],22:[function(t,e,r){"use strict";var f=t("./_to-object"),l=t("./_to-absolute-index"),h=t("./_to-length");e.exports=[].copyWithin||function(t,e){var r=f(this),n=h(r.length),i=l(t,n),o=l(e,n),a=2a;)o.call(t,n=i[a++])&&e.push(n);return e}},{"./_object-gops":74,"./_object-keys":77,"./_object-pie":78}],39:[function(t,e,r){var m=t("./_global"),b=t("./_core"),g=t("./_hide"),_=t("./_redefine"),y=t("./_ctx"),v="prototype",w=function(t,e,r){var n,i,o,a,s=t&w.F,u=t&w.G,f=t&w.S,l=t&w.P,h=t&w.B,c=u?m:f?m[e]||(m[e]={}):(m[e]||{})[v],d=u?b:b[e]||(b[e]={}),p=d[v]||(d[v]={});for(n in u&&(r=e),r)o=((i=!s&&c&&void 0!==c[n])?c:r)[n],a=h&&i?y(o,m):l&&"function"==typeof o?y(Function.call,o):o,c&&_(c,n,o,t&w.U),d[n]!=o&&g(d,n,a),l&&p[n]!=o&&(p[n]=o)};m.core=b,w.F=1,w.G=2,w.S=4,w.P=8,w.B=16,w.W=32,w.U=64,w.R=128,e.exports=w},{"./_core":31,"./_ctx":33,"./_global":45,"./_hide":47,"./_redefine":85}],40:[function(t,e,r){var n=t("./_wks")("match");e.exports=function(e){var r=/./;try{"/./"[e](r)}catch(t){try{return r[n]=!1,!"/./"[e](r)}catch(t){}}return!0}},{"./_wks":112}],41:[function(t,e,r){e.exports=function(t){try{return!!t()}catch(t){return!0}}},{}],42:[function(t,e,r){"use strict";var s=t("./_hide"),u=t("./_redefine"),f=t("./_fails"),l=t("./_defined"),h=t("./_wks");e.exports=function(e,t,r){var n=h(e),i=r(l,n,""[e]),o=i[0],a=i[1];f(function(){var t={};return t[n]=function(){return 7},7!=""[e](t)})&&(u(String.prototype,e,o),s(RegExp.prototype,n,2==t?function(t,e){return a.call(t,this,e)}:function(t){return a.call(t,this)}))}},{"./_defined":34,"./_fails":41,"./_hide":47,"./_redefine":85,"./_wks":112}],43:[function(t,e,r){"use strict";var n=t("./_an-object");e.exports=function(){var t=n(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e}},{"./_an-object":21}],44:[function(t,e,r){var c=t("./_ctx"),d=t("./_iter-call"),p=t("./_is-array-iter"),m=t("./_an-object"),b=t("./_to-length"),g=t("./core.get-iterator-method"),_={},y={};(r=e.exports=function(t,e,r,n,i){var o,a,s,u,f=i?function(){return t}:g(t),l=c(r,n,e?2:1),h=0;if("function"!=typeof f)throw TypeError(t+" is not iterable!");if(p(f)){for(o=b(t.length);hdocument.F=Object<\/script>"),t.close(),l=t.F;r--;)delete l[f][a[r]];return l()};t.exports=Object.create||function(t,e){var r;return null!==t?(u[f]=i(t),r=new u,u[f]=null,r[s]=t):r=l(),void 0===e?r:o(r,e)}},{"./_an-object":21,"./_dom-create":36,"./_enum-bug-keys":37,"./_html":48,"./_object-dps":70,"./_shared-key":89}],69:[function(t,e,r){var n=t("./_an-object"),i=t("./_ie8-dom-define"),o=t("./_to-primitive"),a=Object.defineProperty;r.f=t("./_descriptors")?Object.defineProperty:function(t,e,r){if(n(t),e=o(e,!0),n(r),i)try{return a(t,e,r)}catch(t){}if("get"in r||"set"in r)throw TypeError("Accessors not supported!");return"value"in r&&(t[e]=r.value),t}},{"./_an-object":21,"./_descriptors":35,"./_ie8-dom-define":49,"./_to-primitive":104}],70:[function(t,e,r){var a=t("./_object-dp"),s=t("./_an-object"),u=t("./_object-keys");e.exports=t("./_descriptors")?Object.defineProperties:function(t,e){s(t);for(var r,n=u(e),i=n.length,o=0;oi;)a(n,r=e[i++])&&(~u(o,r)||o.push(r));return o}},{"./_array-includes":24,"./_has":46,"./_shared-key":89,"./_to-iobject":101}],77:[function(t,e,r){var n=t("./_object-keys-internal"),i=t("./_enum-bug-keys");e.exports=Object.keys||function(t){return n(t,i)}},{"./_enum-bug-keys":37,"./_object-keys-internal":76}],78:[function(t,e,r){r.f={}.propertyIsEnumerable},{}],79:[function(t,e,r){var i=t("./_export"),o=t("./_core"),a=t("./_fails");e.exports=function(t,e){var r=(o.Object||{})[t]||Object[t],n={};n[t]=e(r),i(i.S+i.F*a(function(){r(1)}),"Object",n)}},{"./_core":31,"./_export":39,"./_fails":41}],80:[function(t,e,r){var u=t("./_object-keys"),f=t("./_to-iobject"),l=t("./_object-pie").f;e.exports=function(s){return function(t){for(var e,r=f(t),n=u(r),i=n.length,o=0,a=[];or;)e.push(arguments[r++]);return g[++b]=function(){s("function"==typeof t?t:Function(t),e)},n(b),b},d=function(t){delete g[t]},"process"==t("./_cof")(h)?n=function(t){h.nextTick(a(y,t,1))}:m&&m.now?n=function(t){m.now(a(y,t,1))}:p?(o=(i=new p).port2,i.port1.onmessage=v,n=a(o.postMessage,o,1)):l.addEventListener&&"function"==typeof postMessage&&!l.importScripts?(n=function(t){l.postMessage(t+"","*")},l.addEventListener("message",v,!1)):n=_ in f("script")?function(t){u.appendChild(f("script"))[_]=function(){u.removeChild(this),y.call(t)}}:function(t){setTimeout(a(y,t,1),0)}),e.exports={set:c,clear:d}},{"./_cof":30,"./_ctx":33,"./_dom-create":36,"./_global":45,"./_html":48,"./_invoke":51}],98:[function(t,e,r){var n=t("./_to-integer"),i=Math.max,o=Math.min;e.exports=function(t,e){return(t=n(t))<0?i(t+e,0):o(t,e)}},{"./_to-integer":100}],99:[function(t,e,r){var n=t("./_to-integer"),i=t("./_to-length");e.exports=function(t){if(void 0===t)return 0;var e=n(t),r=i(e);if(e!==r)throw RangeError("Wrong length!");return r}},{"./_to-integer":100,"./_to-length":102}],100:[function(t,e,r){var n=Math.ceil,i=Math.floor;e.exports=function(t){return isNaN(t=+t)?0:(0>1,l=23===e?T(2,-24)-T(2,-77):0,h=0,c=t<0||0===t&&1/t<0?1:0;for((t=A(t))!=t||t===S?(i=t!=t?1:0,n=u):(n=O(P(t)/M),t*(o=T(2,-n))<1&&(n--,o*=2),2<=(t+=1<=n+f?l/o:l*T(2,1-f))*o&&(n++,o/=2),u<=n+f?(i=0,n=u):1<=n+f?(i=(t*o-1)*T(2,e),n+=f):(i=t*T(2,f-1)*T(2,e),n=0));8<=e;a[h++]=255&i,i/=256,e-=8);for(n=n<>1,s=i-7,u=r-1,f=t[u--],l=127&f;for(f>>=7;0>=-s,s+=e;0>8&255]}function G(t){return[255&t,t>>8&255,t>>16&255,t>>24&255]}function W(t){return D(t,52,8)}function Z(t){return D(t,23,4)}function q(t,e,r){m(t[v],e,{get:function(){return this[r]}})}function Y(t,e,r,n){var i=d(+r);if(i+e>t[B])throw k(w);var o=t[R]._b,a=i+t[N],s=o.slice(a,a+e);return n?s:s.reverse()}function V(t,e,r,n,i,o){var a=d(+r);if(a+e>t[B])throw k(w);for(var s=t[R]._b,u=a+t[N],f=n(+i),l=0;lQ;)(X=K[Q++])in E||s(E,X,I[X]);o||(J.constructor=E)}var $=new x(new E(2)),tt=x[v].setInt8;$.setInt8(0,2147483648),$.setInt8(1,2147483649),!$.getInt8(0)&&$.getInt8(1)||u(x[v],{setInt8:function(t,e){tt.call(this,t,e<<24>>24)},setUint8:function(t,e){tt.call(this,t,e<<24>>24)}},!0)}else E=function(t){l(this,E,_);var e=d(t);this._b=b.call(new Array(e),0),this[B]=e},x=function(t,e,r){l(this,x,y),l(t,E,y);var n=t[B],i=h(e);if(i<0||n>24},getUint8:function(t){return Y(this,1,t)[0]},getInt16:function(t){var e=Y(this,2,t,arguments[1]);return(e[1]<<8|e[0])<<16>>16},getUint16:function(t){var e=Y(this,2,t,arguments[1]);return e[1]<<8|e[0]},getInt32:function(t){return F(Y(this,4,t,arguments[1]))},getUint32:function(t){return F(Y(this,4,t,arguments[1]))>>>0},getFloat32:function(t){return U(Y(this,4,t,arguments[1]),23,4)},getFloat64:function(t){return U(Y(this,8,t,arguments[1]),52,8)},setInt8:function(t,e){V(this,1,t,z,e)},setUint8:function(t,e){V(this,1,t,z,e)},setInt16:function(t,e){V(this,2,t,H,e,arguments[2])},setUint16:function(t,e){V(this,2,t,H,e,arguments[2])},setInt32:function(t,e){V(this,4,t,G,e,arguments[2])},setUint32:function(t,e){V(this,4,t,G,e,arguments[2])},setFloat32:function(t,e){V(this,4,t,Z,e,arguments[2])},setFloat64:function(t,e){V(this,8,t,W,e,arguments[2])}});g(E,_),g(x,y),s(x[v],a.VIEW,!0),r[_]=E,r[y]=x},{"./_an-instance":20,"./_array-fill":23,"./_descriptors":35,"./_fails":41,"./_global":45,"./_hide":47,"./_library":63,"./_object-dp":69,"./_object-gopn":73,"./_redefine-all":84,"./_set-to-string-tag":88,"./_to-index":99,"./_to-integer":100,"./_to-length":102,"./_typed":107}],107:[function(t,e,r){for(var n,i=t("./_global"),o=t("./_hide"),a=t("./_uid"),s=a("typed_array"),u=a("view"),f=!(!i.ArrayBuffer||!i.DataView),l=f,h=0,c="Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array".split(",");h<9;)(n=i[c[h++]])?(o(n.prototype,s,!0),o(n.prototype,u,!0)):l=!1;e.exports={ABV:f,CONSTR:l,TYPED:s,VIEW:u}},{"./_global":45,"./_hide":47,"./_uid":108}],108:[function(t,e,r){var n=0,i=Math.random();e.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++n+i).toString(36))}},{}],109:[function(t,e,r){var n=t("./_global").navigator;e.exports=n&&n.userAgent||""},{"./_global":45}],110:[function(t,e,r){var n=t("./_global"),i=t("./_core"),o=t("./_library"),a=t("./_wks-ext"),s=t("./_object-dp").f;e.exports=function(t){var e=i.Symbol||(i.Symbol=o?{}:n.Symbol||{});"_"==t.charAt(0)||t in e||s(e,t,{value:a.f(t)})}},{"./_core":31,"./_global":45,"./_library":63,"./_object-dp":69,"./_wks-ext":111}],111:[function(t,e,r){r.f=t("./_wks")},{"./_wks":112}],112:[function(t,e,r){var n=t("./_shared")("wks"),i=t("./_uid"),o=t("./_global").Symbol,a="function"==typeof o;(e.exports=function(t){return n[t]||(n[t]=a&&o[t]||(a?o:i)("Symbol."+t))}).store=n},{"./_global":45,"./_shared":90,"./_uid":108}],113:[function(t,e,r){var n=t("./_classof"),i=t("./_wks")("iterator"),o=t("./_iterators");e.exports=t("./_core").getIteratorMethod=function(t){if(null!=t)return t[i]||t["@@iterator"]||o[n(t)]}},{"./_classof":29,"./_core":31,"./_iterators":62,"./_wks":112}],114:[function(t,e,r){var n=t("./_export");n(n.P,"Array",{fill:t("./_array-fill")}),t("./_add-to-unscopables")("fill")},{"./_add-to-unscopables":19,"./_array-fill":23,"./_export":39}],115:[function(t,e,r){"use strict";var n=t("./_export"),i=t("./_array-methods")(2);n(n.P+n.F*!t("./_strict-method")([].filter,!0),"Array",{filter:function(t){return i(this,t,arguments[1])}})},{"./_array-methods":25,"./_export":39,"./_strict-method":92}],116:[function(t,e,r){"use strict";var n=t("./_export"),i=t("./_array-methods")(6),o="findIndex",a=!0;o in[]&&Array(1)[o](function(){a=!1}),n(n.P+n.F*a,"Array",{findIndex:function(t){return i(this,t,1=t.length?(this._t=void 0,i(1)):i(0,"keys"==e?r:"values"==e?t[r]:[r,t[r]])},"values"),o.Arguments=o.Array,n("keys"),n("values"),n("entries")},{"./_add-to-unscopables":19,"./_iter-define":59,"./_iter-step":61,"./_iterators":62,"./_to-iobject":101}],123:[function(t,e,r){"use strict";var n=t("./_export"),i=t("./_array-methods")(1);n(n.P+n.F*!t("./_strict-method")([].map,!0),"Array",{map:function(t){return i(this,t,arguments[1])}})},{"./_array-methods":25,"./_export":39,"./_strict-method":92}],124:[function(t,e,r){var n=Date.prototype,i="Invalid Date",o="toString",a=n[o],s=n.getTime;new Date(NaN)+""!=i&&t("./_redefine")(n,o,function(){var t=s.call(this);return t==t?a.call(this):i})},{"./_redefine":85}],125:[function(t,e,r){var n=t("./_export");n(n.P,"Function",{bind:t("./_bind")})},{"./_bind":28,"./_export":39}],126:[function(t,e,r){"use strict";var n=t("./_global"),i=t("./_has"),o=t("./_cof"),a=t("./_inherit-if-required"),l=t("./_to-primitive"),s=t("./_fails"),u=t("./_object-gopn").f,f=t("./_object-gopd").f,h=t("./_object-dp").f,c=t("./_string-trim").trim,d="Number",p=n[d],m=p,b=p.prototype,g=o(t("./_object-create")(b))==d,_="trim"in String.prototype,y=function(t){var e=l(t,!1);if("string"==typeof e&&2E;E++)i(m,v=w[E])&&!i(p,v)&&h(p,v,f(m,v));(p.prototype=b).constructor=p,t("./_redefine")(n,d,p)}},{"./_cof":30,"./_descriptors":35,"./_fails":41,"./_global":45,"./_has":46,"./_inherit-if-required":50,"./_object-create":68,"./_object-dp":69,"./_object-gopd":71,"./_object-gopn":73,"./_redefine":85,"./_string-trim":95,"./_to-primitive":104}],127:[function(t,e,r){var n=t("./_export");n(n.S+n.F,"Object",{assign:t("./_object-assign")})},{"./_export":39,"./_object-assign":67}],128:[function(t,e,r){var n=t("./_export");n(n.S,"Object",{create:t("./_object-create")})},{"./_export":39,"./_object-create":68}],129:[function(t,e,r){var n=t("./_export");n(n.S+n.F*!t("./_descriptors"),"Object",{defineProperty:t("./_object-dp").f})},{"./_descriptors":35,"./_export":39,"./_object-dp":69}],130:[function(t,e,r){var n=t("./_to-object"),i=t("./_object-keys");t("./_object-sap")("keys",function(){return function(t){return i(n(t))}})},{"./_object-keys":77,"./_object-sap":79,"./_to-object":103}],131:[function(t,e,r){var n=t("./_export");n(n.S,"Object",{setPrototypeOf:t("./_set-proto").set})},{"./_export":39,"./_set-proto":86}],132:[function(r,t,e){"use strict";var n,i,o,a,s=r("./_library"),u=r("./_global"),f=r("./_ctx"),l=r("./_classof"),h=r("./_export"),c=r("./_is-object"),d=r("./_a-function"),p=r("./_an-instance"),m=r("./_for-of"),b=r("./_species-constructor"),g=r("./_task").set,_=r("./_microtask")(),y=r("./_new-promise-capability"),v=r("./_perform"),w=r("./_user-agent"),E=r("./_promise-resolve"),x="Promise",j=u.TypeError,k=u.process,S=k&&k.versions,I=S&&S.v8||"",A=u[x],T="process"==l(k),O=function(){},P=i=y.f,M=!!function(){try{var t=A.resolve(1),e=(t.constructor={})[r("./_wks")("species")]=function(t){t(O,O)};return(T||"function"==typeof PromiseRejectionEvent)&&t.then(O)instanceof e&&0!==I.indexOf("6.6")&&-1===w.indexOf("Chrome/66")}catch(t){}}(),L=function(t){var e;return!(!c(t)||"function"!=typeof(e=t.then))&&e},C=function(l,r){if(!l._n){l._n=!0;var n=l._c;_(function(){for(var u=l._v,f=1==l._s,t=0,e=function(t){var e,r,n,i=f?t.ok:t.fail,o=t.resolve,a=t.reject,s=t.domain;try{i?(f||(2==l._h&&N(l),l._h=1),!0===i?e=u:(s&&s.enter(),e=i(u),s&&(s.exit(),n=!0)),e===t.promise?a(j("Promise-chain cycle")):(r=L(e))?r.call(e,o,a):o(e)):a(u)}catch(t){s&&!n&&s.exit(),a(t)}};n.length>t;)e(n[t++]);l._c=[],l._n=!1,r&&!l._h&&R(l)})}},R=function(o){g.call(u,function(){var t,e,r,n=o._v,i=B(o);if(i&&(t=v(function(){T?k.emit("unhandledRejection",n,o):(e=u.onunhandledrejection)?e({promise:o,reason:n}):(r=u.console)&&r.error&&r.error("Unhandled promise rejection",n)}),o._h=T||B(o)?2:1),o._a=void 0,i&&t.e)throw t.v})},B=function(t){return 1!==t._h&&0===(t._a||t._c).length},N=function(e){g.call(u,function(){var t;T?k.emit("rejectionHandled",e):(t=u.onrejectionhandled)&&t({promise:e,reason:e._v})})},D=function(t){var e=this;e._d||(e._d=!0,(e=e._w||e)._v=t,e._s=2,e._a||(e._a=e._c.slice()),C(e,!0))},U=function(t){var r,n=this;if(!n._d){n._d=!0,n=n._w||n;try{if(n===t)throw j("Promise can't be resolved itself");(r=L(t))?_(function(){var e={_w:n,_d:!1};try{r.call(t,f(U,e,1),f(D,e,1))}catch(t){D.call(e,t)}}):(n._v=t,n._s=1,C(n,!1))}catch(t){D.call({_w:n,_d:!1},t)}}};M||(A=function(t){p(this,A,x,"_h"),d(t),n.call(this);try{t(f(U,this,1),f(D,this,1))}catch(t){D.call(this,t)}},(n=function(t){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1}).prototype=r("./_redefine-all")(A.prototype,{then:function(t,e){var r=P(b(this,A));return r.ok="function"!=typeof t||t,r.fail="function"==typeof e&&e,r.domain=T?k.domain:void 0,this._c.push(r),this._a&&this._a.push(r),this._s&&C(this,!1),r.promise},catch:function(t){return this.then(void 0,t)}}),o=function(){var t=new n;this.promise=t,this.resolve=f(U,t,1),this.reject=f(D,t,1)},y.f=P=function(t){return t===A||t===a?new o(t):i(t)}),h(h.G+h.W+h.F*!M,{Promise:A}),r("./_set-to-string-tag")(A,x),r("./_set-species")(x),a=r("./_core")[x],h(h.S+h.F*!M,x,{reject:function(t){var e=P(this);return(0,e.reject)(t),e.promise}}),h(h.S+h.F*(s||!M),x,{resolve:function(t){return E(s&&this===a?A:this,t)}}),h(h.S+h.F*!(M&&r("./_iter-detect")(function(t){A.all(t).catch(O)})),x,{all:function(t){var a=this,e=P(a),s=e.resolve,u=e.reject,r=v(function(){var n=[],i=0,o=1;m(t,!1,function(t){var e=i++,r=!1;n.push(void 0),o++,a.resolve(t).then(function(t){r||(r=!0,n[e]=t,--o||s(n))},u)}),--o||s(n)});return r.e&&u(r.v),e.promise},race:function(t){var e=this,r=P(e),n=r.reject,i=v(function(){m(t,!1,function(t){e.resolve(t).then(r.resolve,n)})});return i.e&&n(i.v),r.promise}})},{"./_a-function":18,"./_an-instance":20,"./_classof":29,"./_core":31,"./_ctx":33,"./_export":39,"./_for-of":44,"./_global":45,"./_is-object":55,"./_iter-detect":60,"./_library":63,"./_microtask":65,"./_new-promise-capability":66,"./_perform":81,"./_promise-resolve":82,"./_redefine-all":84,"./_set-species":87,"./_set-to-string-tag":88,"./_species-constructor":91,"./_task":97,"./_user-agent":109,"./_wks":112}],133:[function(t,e,r){var n=t("./_export"),s=t("./_object-create"),u=t("./_a-function"),f=t("./_an-object"),l=t("./_is-object"),i=t("./_fails"),h=t("./_bind"),c=(t("./_global").Reflect||{}).construct,d=i(function(){function t(){}return!(c(function(){},[],t)instanceof t)}),p=!i(function(){c(function(){})});n(n.S+n.F*(d||p),"Reflect",{construct:function(t,e){u(t),f(e);var r=arguments.length<3?t:u(arguments[2]);if(p&&!d)return c(t,e,r);if(t==r){switch(e.length){case 0:return new t;case 1:return new t(e[0]);case 2:return new t(e[0],e[1]);case 3:return new t(e[0],e[1],e[2]);case 4:return new t(e[0],e[1],e[2],e[3])}var n=[null];return n.push.apply(n,e),new(h.apply(t,n))}var i=r.prototype,o=s(l(i)?i:Object.prototype),a=Function.apply.call(t,o,e);return l(a)?a:o}})},{"./_a-function":18,"./_an-object":21,"./_bind":28,"./_export":39,"./_fails":41,"./_global":45,"./_is-object":55,"./_object-create":68}],134:[function(t,e,r){t("./_descriptors")&&"g"!=/./g.flags&&t("./_object-dp").f(RegExp.prototype,"flags",{configurable:!0,get:t("./_flags")})},{"./_descriptors":35,"./_flags":43,"./_object-dp":69}],135:[function(t,e,r){t("./_fix-re-wks")("match",1,function(n,i,t){return[function(t){"use strict";var e=n(this),r=null==t?void 0:t[i];return void 0!==r?r.call(t,e):new RegExp(t)[i](String(e))},t]})},{"./_fix-re-wks":42}],136:[function(t,e,r){t("./_fix-re-wks")("replace",2,function(i,o,a){return[function(t,e){"use strict";var r=i(this),n=null==t?void 0:t[o];return void 0!==n?n.call(t,r,e):a.call(String(r),t,e)},a]})},{"./_fix-re-wks":42}],137:[function(e,t,r){e("./_fix-re-wks")("split",2,function(i,o,a){"use strict";var d=e("./_is-regexp"),p=a,m=[].push,t="split",b="length",g="lastIndex";if("c"=="abbc"[t](/(b)*/)[1]||4!="test"[t](/(?:)/,-1)[b]||2!="ab"[t](/(?:ab)*/)[b]||4!="."[t](/(.?)(.?)/)[b]||1<"."[t](/()()/)[b]||""[t](/.?/)[b]){var _=void 0===/()??/.exec("")[1];a=function(t,e){var r=String(this);if(void 0===t&&0===e)return[];if(!d(t))return p.call(r,t,e);var n,i,o,a,s,u=[],f=(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.unicode?"u":"")+(t.sticky?"y":""),l=0,h=void 0===e?4294967295:e>>>0,c=new RegExp(t.source,f+"g");for(_||(n=new RegExp("^"+c.source+"$(?!\\s)",f));(i=c.exec(r))&&!(l<(o=i.index+i[0][b])&&(u.push(r.slice(l,i.index)),!_&&1=h));)c[g]===i.index&&c[g]++;return l===r[b]?!a&&c.test("")||u.push(""):u.push(r.slice(l)),u[b]>h?u.slice(0,h):u}}else"0"[t](void 0,0)[b]&&(a=function(t,e){return void 0===t&&0===e?[]:p.call(this,t,e)});return[function(t,e){var r=i(this),n=null==t?void 0:t[o];return void 0!==n?n.call(t,r,e):a.call(String(r),t,e)},a]})},{"./_fix-re-wks":42,"./_is-regexp":56}],138:[function(e,t,r){"use strict";e("./es6.regexp.flags");var n=e("./_an-object"),i=e("./_flags"),o=e("./_descriptors"),a="toString",s=/./[a],u=function(t){e("./_redefine")(RegExp.prototype,a,t,!0)};e("./_fails")(function(){return"/a/b"!=s.call({source:"a",flags:"b"})})?u(function(){var t=n(this);return"/".concat(t.source,"/","flags"in t?t.flags:!o&&t instanceof RegExp?i.call(t):void 0)}):s.name!=a&&u(function(){return s.call(this)})},{"./_an-object":21,"./_descriptors":35,"./_fails":41,"./_flags":43,"./_redefine":85,"./es6.regexp.flags":134}],139:[function(t,e,r){"use strict";var n=t("./_export"),i=t("./_string-context"),o="includes";n(n.P+n.F*t("./_fails-is-regexp")(o),"String",{includes:function(t){return!!~i(this,t,o).indexOf(t,1=e.length?{value:void 0,done:!0}:(t=n(e,r),this._i+=t.length,{value:t,done:!1})})},{"./_iter-define":59,"./_string-at":93}],141:[function(t,e,r){"use strict";var n=t("./_global"),a=t("./_has"),i=t("./_descriptors"),o=t("./_export"),s=t("./_redefine"),u=t("./_meta").KEY,f=t("./_fails"),l=t("./_shared"),h=t("./_set-to-string-tag"),c=t("./_uid"),d=t("./_wks"),p=t("./_wks-ext"),m=t("./_wks-define"),b=t("./_enum-keys"),g=t("./_is-array"),_=t("./_an-object"),y=t("./_is-object"),v=t("./_to-iobject"),w=t("./_to-primitive"),E=t("./_property-desc"),x=t("./_object-create"),j=t("./_object-gopn-ext"),k=t("./_object-gopd"),S=t("./_object-dp"),I=t("./_object-keys"),A=k.f,T=S.f,O=j.f,P=n.Symbol,M=n.JSON,L=M&&M.stringify,C="prototype",R=d("_hidden"),B=d("toPrimitive"),N={}.propertyIsEnumerable,D=l("symbol-registry"),U=l("symbols"),F=l("op-symbols"),z=Object[C],H="function"==typeof P,G=n.QObject,W=!G||!G[C]||!G[C].findChild,Z=i&&f(function(){return 7!=x(T({},"a",{get:function(){return T(this,"a",{value:7}).a}})).a})?function(t,e,r){var n=A(z,e);n&&delete z[e],T(t,e,r),n&&t!==z&&T(z,e,n)}:T,q=function(t){var e=U[t]=x(P[C]);return e._k=t,e},Y=H&&"symbol"==typeof P.iterator?function(t){return"symbol"==typeof t}:function(t){return t instanceof P},V=function(t,e,r){return t===z&&V(F,e,r),_(t),e=w(e,!0),_(r),a(U,e)?(r.enumerable?(a(t,R)&&t[R][e]&&(t[R][e]=!1),r=x(r,{enumerable:E(0,!1)})):(a(t,R)||T(t,R,E(1,{})),t[R][e]=!0),Z(t,e,r)):T(t,e,r)},X=function(t,e){_(t);for(var r,n=b(e=v(e)),i=0,o=n.length;ii;)a(U,e=r[i++])||e==R||e==u||n.push(e);return n},$=function(t){for(var e,r=t===z,n=O(r?F:v(t)),i=[],o=0;n.length>o;)!a(U,e=n[o++])||r&&!a(z,e)||i.push(U[e]);return i};H||(s((P=function(){if(this instanceof P)throw TypeError("Symbol is not a constructor!");var e=c(0et;)d(tt[et++]);for(var rt=I(d.store),nt=0;rt.length>nt;)m(rt[nt++]);o(o.S+o.F*!H,"Symbol",{for:function(t){return a(D,t+="")?D[t]:D[t]=P(t)},keyFor:function(t){if(!Y(t))throw TypeError(t+" is not a symbol!");for(var e in D)if(D[e]===t)return e},useSetter:function(){W=!0},useSimple:function(){W=!1}}),o(o.S+o.F*!H,"Object",{create:function(t,e){return void 0===e?x(t):X(x(t),e)},defineProperty:V,defineProperties:X,getOwnPropertyDescriptor:K,getOwnPropertyNames:Q,getOwnPropertySymbols:$}),M&&o(o.S+o.F*(!H||f(function(){var t=P();return"[null]"!=L([t])||"{}"!=L({a:t})||"{}"!=L(Object(t))})),"JSON",{stringify:function(t){for(var e,r,n=[t],i=1;arguments.length>i;)n.push(arguments[i++]);if(r=e=n[1],(y(e)||void 0!==t)&&!Y(t))return g(e)||(e=function(t,e){if("function"==typeof r&&(e=r.call(this,t,e)),!Y(e))return e}),n[1]=e,L.apply(M,n)}}),P[C][B]||t("./_hide")(P[C],B,P[C].valueOf),h(P,"Symbol"),h(Math,"Math",!0),h(n.JSON,"JSON",!0)},{"./_an-object":21,"./_descriptors":35,"./_enum-keys":38,"./_export":39,"./_fails":41,"./_global":45,"./_has":46,"./_hide":47,"./_is-array":54,"./_is-object":55,"./_library":63,"./_meta":64,"./_object-create":68,"./_object-dp":69,"./_object-gopd":71,"./_object-gopn":73,"./_object-gopn-ext":72,"./_object-gops":74,"./_object-keys":77,"./_object-pie":78,"./_property-desc":83,"./_redefine":85,"./_set-to-string-tag":88,"./_shared":90,"./_to-iobject":101,"./_to-primitive":104,"./_uid":108,"./_wks":112,"./_wks-define":110,"./_wks-ext":111}],142:[function(t,e,r){t("./_typed-array")("Float32",4,function(n){return function(t,e,r){return n(this,t,e,r)}})},{"./_typed-array":105}],143:[function(t,e,r){t("./_typed-array")("Float64",8,function(n){return function(t,e,r){return n(this,t,e,r)}})},{"./_typed-array":105}],144:[function(t,e,r){t("./_typed-array")("Uint8",1,function(n){return function(t,e,r){return n(this,t,e,r)}})},{"./_typed-array":105}],145:[function(t,e,r){t("./_typed-array")("Uint8",1,function(n){return function(t,e,r){return n(this,t,e,r)}},!0)},{"./_typed-array":105}],146:[function(t,e,r){"use strict";var n=t("./_export"),i=t("./_array-includes")(!0);n(n.P,"Array",{includes:function(t){return i(this,t,1i){a.warned=!0;var s=new Error("Possible EventEmitter memory leak detected. "+a.length+' "'+String(e)+'" listeners added. Use emitter.setMaxListeners() to increase limit.');s.name="MaxListenersExceededWarning",s.emitter=t,s.type=e,s.count=a.length,"object"==typeof console&&console.warn&&console.warn("%s: %s",s.name,s.message)}}else a=o[e]=r,++t._eventsCount;return t}function c(){if(!this.fired)switch(this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length){case 0:return this.listener.call(this.target);case 1:return this.listener.call(this.target,arguments[0]);case 2:return this.listener.call(this.target,arguments[0],arguments[1]);case 3:return this.listener.call(this.target,arguments[0],arguments[1],arguments[2]);default:for(var t=new Array(arguments.length),e=0;e>1,l=-7,h=r?i-1:0,c=r?-1:1,d=t[e+h];for(h+=c,o=d&(1<<-l)-1,d>>=-l,l+=s;0>=-l,l+=n;0>1,c=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,d=n?0:o-1,p=n?1:-1,m=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(s=isNaN(e)?1:0,a=l):(a=Math.floor(Math.log(e)/Math.LN2),e*(u=Math.pow(2,-a))<1&&(a--,u*=2),2<=(e+=1<=a+h?c/u:c*Math.pow(2,1-h))*u&&(a++,u/=2),l<=a+h?(s=0,a=l):1<=a+h?(s=(e*u-1)*Math.pow(2,i),a+=h):(s=e*Math.pow(2,h-1)*Math.pow(2,i),a=0));8<=i;t[r+d]=255&s,d+=p,s/=256,i-=8);for(a=a<>--d&1;if(255==(c=e[r++])){var t=e[r++];if(t)throw new Error("unexpected marker: "+(c<<8|t).toString(16))}return c>>>(d=7)}function m(t){for(var e,r=t;null!==(e=p());){if("number"==typeof(r=r[e]))return r;if("object"!=typeof r)throw new Error("invalid huffman sequence")}return null}function b(t){for(var e=0;0>4;if(0!==o)e[q[r+=a]]=g(o)*(1<>4,0===u)v=i<15?(_=b(i)+(1<>4;if(0!==a)e[q[i+=s]]=g(a),i++;else{if(s<15)break;i+=16}}};var A,T,O,P,M,L,C,R,B,N,D,U,F,z,H,G,W,Z=0;for(T=1==I?n[0].blocksPerLine*n[0].blocksPerColumn:a*t.mcusPerColumn,i||(i=T);Z>8,i=k*p[4+m]+128>>8,o=p[2+m],a=p[6+m],s=S*(p[1+m]-p[7+m])+128>>8,l=S*(p[1+m]+p[7+m])+128>>8,u=p[3+m]<<4,f=p[5+m]<<4,h=n-i+1>>1,n=n+i+1>>1,i=h,h=o*j+a*x+128>>8,o=o*x-a*j+128>>8,a=h,h=s-f+1>>1,s=s+f+1>>1,f=h,h=l+u+1>>1,u=l-u+1>>1,l=h,h=n-a+1>>1,n=n+a+1>>1,a=h,h=i-o+1>>1,i=i+o+1>>1,o=h,h=s*E+l*w+2048>>12,s=s*w-l*E+2048>>12,l=h,h=u*v+f*y+2048>>12,u=u*y-f*v+2048>>12,f=h,p[0+m]=n+l,p[7+m]=n-l,p[1+m]=i+f,p[6+m]=i-f,p[2+m]=o+u,p[5+m]=o-u,p[3+m]=a+s,p[4+m]=a-s):(h=k*p[0+m]+512>>10,p[0+m]=h,p[1+m]=h,p[2+m]=h,p[3+m]=h,p[4+m]=h,p[5+m]=h,p[6+m]=h,p[7+m]=h)}for(c=0;c<8;++c){var b=c;0!=p[8+b]||0!=p[16+b]||0!=p[24+b]||0!=p[32+b]||0!=p[40+b]||0!=p[48+b]||0!=p[56+b]?(n=k*p[0+b]+2048>>12,i=k*p[32+b]+2048>>12,o=p[16+b],a=p[48+b],s=S*(p[8+b]-p[56+b])+2048>>12,l=S*(p[8+b]+p[56+b])+2048>>12,u=p[24+b],f=p[40+b],h=n-i+1>>1,n=n+i+1>>1,i=h,h=o*j+a*x+2048>>12,o=o*x-a*j+2048>>12,a=h,h=s-f+1>>1,s=s+f+1>>1,f=h,h=l+u+1>>1,u=l-u+1>>1,l=h,h=n-a+1>>1,n=n+a+1>>1,a=h,h=i-o+1>>1,i=i+o+1>>1,o=h,h=s*E+l*w+2048>>12,s=s*w-l*E+2048>>12,l=h,h=u*v+f*y+2048>>12,u=u*y-f*v+2048>>12,f=h,p[0+b]=n+l,p[56+b]=n-l,p[8+b]=i+f,p[48+b]=i-f,p[16+b]=o+u,p[40+b]=o-u,p[24+b]=a+s,p[32+b]=a-s):(h=k*r[c+0]+8192>>14,p[0+b]=h,p[8+b]=h,p[16+b]=h,p[24+b]=h,p[32+b]=h,p[40+b]=h,p[48+b]=h,p[56+b]=h)}for(c=0;c<64;++c){var g=128+(p[c]+8>>4);e[c]=g<0?0:255>4==0)for(D=0;D<64;D++){_[q[D]]=e[r++]}else{if(g>>4!=1)throw new Error("DQT: invalid table spec");for(D=0;D<64;D++){_[q[D]]=t()}}l[15&g]=_}break;case 65472:case 65473:case 65474:t(),(i={}).extended=65473===p,i.progressive=65474===p,i.precision=e[r++],i.scanLines=t(),i.samplesPerLine=t(),i.components={},i.componentsOrder=[];var y,v=e[r++];for(B=0;B>4,E=15&e[r+1],x=e[r+2];i.componentsOrder.push(y),i.components[y]={h:w,v:E,quantizationIdx:x},r+=3}n(i),h.push(i);break;case 65476:var j=t();for(B=2;B>4==0?d:c)[15&k]=F(S,A)}break;case 65501:t(),o=t();break;case 65498:t();var T=e[r++],O=[];for(B=0;B>4],U.huffmanTableAC=c[15&P],O.push(U)}var M=e[r++],L=e[r++],C=e[r++],R=z(e,r,i,O,o,M,L,C>>4,15&C);r+=R;break;case 65535:255!==e[r]&&r--;break;default:if(255==e[r-3]&&192<=e[r-2]&&e[r-2]<=254){r-=3;break}throw new Error("unknown JPEG marker "+p.toString(16))}p=t()}if(1!=h.length)throw new Error("only single frame JPEGs supported");for(var B=0;B>8&255),q(255&t)}function V(t,e,r,n,i){for(var o,a=i[0],s=i[240],u=function(t,e){var r,n,i,o,a,s,u,f,l,h,c=0;for(l=0;l<8;++l){r=t[c],n=t[c+1],i=t[c+2],o=t[c+3],a=t[c+4],s=t[c+5],u=t[c+6];var d=r+(f=t[c+7]),p=r-f,m=n+u,b=n-u,g=i+s,_=i-s,y=o+a,v=o-a,w=d+y,E=d-y,x=m+g,j=m-g;t[c]=w+x,t[c+4]=w-x;var k=.707106781*(j+E);t[c+2]=E+k,t[c+6]=E-k;var S=.382683433*((w=v+_)-(j=b+p)),I=.5411961*w+S,A=1.306562965*j+S,T=.707106781*(x=_+b),O=p+T,P=p-T;t[c+5]=P+I,t[c+3]=P-I,t[c+1]=O+A,t[c+7]=O-A,c+=8}for(l=c=0;l<8;++l){r=t[c],n=t[c+8],i=t[c+16],o=t[c+24],a=t[c+32],s=t[c+40],u=t[c+48];var M=r+(f=t[c+56]),L=r-f,C=n+u,R=n-u,B=i+s,N=i-s,D=o+a,U=o-a,F=M+D,z=M-D,H=C+B,G=C-B;t[c]=F+H,t[c+32]=F-H;var W=.707106781*(G+z);t[c+16]=z+W,t[c+48]=z-W;var Z=.382683433*((F=U+N)-(G=R+L)),q=.5411961*F+Z,Y=1.306562965*G+Z,V=.707106781*(H=N+R),X=L+V,J=L-V;t[c+40]=J+q,t[c+24]=J-q,t[c+8]=X+Y,t[c+56]=X-Y,c++}for(l=0;l<64;++l)h=t[l]*e[l],K[l]=0>4;for(var b=1;b<=c;++b)Z(s);m&=15}o=32767+y[d],Z(i[(m<<4)+_[o]]),Z(g[o]),d++}return 63!=h&&Z(a),r}function X(t){if(t<=0&&(t=1),100>3)*y+(d=4*(7&m)),_<=v+p&&(c-=y*(v+1+p-_)),y<=s+d&&(c-=s+d-y+4),u=b[c++],f=b[c++],l=b[c++],L[m]=(B[u]+B[f+256>>0]+B[l+512>>0]>>16)-128,C[m]=(B[u+768>>0]+B[f+1024>>0]+B[l+1280>>0]>>16)-128,R[m]=(B[u+1280>>0]+B[f+1536>>0]+B[l+1792>>0]>>16)-128;i=V(L,A,i,E,j),o=V(C,T,o,x,k),a=V(R,T,a,x,k),s+=32}v+=8}if(0<=M){var w=[];w[1]=M+1,w[0]=(1<>0]=38470*t,B[t+512>>0]=7471*t+32768,B[t+768>>0]=-11059*t,B[t+1024>>0]=-21709*t,B[t+1280>>0]=32768*t+8421375,B[t+1536>>0]=-27439*t,B[t+1792>>0]=-5329*t}(),X(t),(new Date).getTime()}()}e.exports=function(t,e){void 0===e&&(e=50);return{data:new r(e).encode(t,e),width:t.width,height:t.height}}}).call(this,t("buffer").Buffer)},{buffer:16}],174:[function(t,e,r){(function(u){var f=t("path"),l=t("fs"),h=parseInt("0777",8);function c(n,i,t,o){"function"==typeof i?(t=i,i={}):i&&"object"==typeof i||(i={mode:i});var e=i.mode,a=i.fs||l;void 0===e&&(e=h&~u.umask()),o||(o=null);var s=t||function(){};n=f.resolve(n),a.mkdir(n,e,function(r){if(!r)return s(null,o=o||n);switch(r.code){case"ENOENT":c(f.dirname(n),i,function(t,e){t?s(t,e):c(n,i,s,e)});break;default:a.stat(n,function(t,e){t||!e.isDirectory()?s(r,o):s(null,o)})}})}e.exports=c.mkdirp=c.mkdirP=c,c.sync=function t(r,n,i){n&&"object"==typeof n||(n={mode:n});var e=n.mode,o=n.fs||l;void 0===e&&(e=h&~u.umask()),i||(i=null),r=f.resolve(r);try{o.mkdirSync(r,e),i=i||r}catch(e){switch(e.code){case"ENOENT":t(r,n,i=t(f.dirname(r),n,i));break;default:var a;try{a=o.statSync(r)}catch(t){throw e}if(!a.isDirectory())throw e}}return i}}).call(this,t("_process"))},{_process:223,fs:14,path:197}],175:[function(t,e,r){"use strict";function A(t,e,r,n){for(var i=t[e++],o=1<>=u,l-=u,b!==o){if(b===a)break;for(var g=b>8,++_;var v=y;if(n>=8;null!==m&&s<4096&&(p[s++]=m<<8|v,f+1<=s&&u<12&&(++u,f=f<<1|1)),m=b}else s=a+1,f=(1<<(u=i+1))-1,m=null}return c!==n&&console.log("Warning, gif stream shorter than expected."),r}try{r.GifWriter=function(g,t,e,r){var _=0,n=void 0===(r=void 0===r?{}:r).loop?null:r.loop,y=void 0===r.palette?null:r.palette;if(t<=0||e<=0||65535>=1;)++i;if(a=1<>8&255,g[_++]=255&e,g[_++]=e>>8&255,g[_++]=(null!==y?128:0)|i,g[_++]=o,g[_++]=0,null!==y)for(var s=0,u=y.length;s>16&255,g[_++]=f>>8&255,g[_++]=255&f}if(null!==n){if(n<0||65535>8&255,g[_++]=0}var w=!1;this.addFrame=function(t,e,r,n,i,o){if(!0===w&&(--_,w=!1),o=void 0===o?{}:o,t<0||e<0||65535>=1;)++f;u=1<>8&255,g[_++]=d,g[_++]=0),g[_++]=44,g[_++]=255&t,g[_++]=t>>8&255,g[_++]=255&e,g[_++]=e>>8&255,g[_++]=255&r,g[_++]=r>>8&255,g[_++]=255&n,g[_++]=n>>8&255,g[_++]=!0===a?128|f-1:0,!0===a)for(var p=0,m=s.length;p>16&255,g[_++]=b>>8&255,g[_++]=255&b}return _=function(e,r,t,n){e[r++]=t;var i=r++,o=1<>=8,l-=8,r===i+256&&(e[i]=255,i=r++)}function d(t){h|=t<>=8,l-=8,r===i+256&&(e[i]=255,i=r++);4096===u?(d(o),u=s+1,f=t+1,m={}):(1<>7,i=1<<1+(7&r);w[t++],w[t++];var o=null,a=null;n&&(o=t,t+=3*(a=i));var s=!0,u=[],f=0,l=null,h=0,c=null;for(this.width=E,this.height=e;s&&t>2&7,t++;break;case 254:for(;;){if(!(0<=(I=w[t++])))throw Error("Invalid block size");if(0===I)break;t+=I}break;default:throw new Error("Unknown graphic control label: 0x"+w[t-1].toString(16))}break;case 44:var p=w[t++]|w[t++]<<8,m=w[t++]|w[t++]<<8,b=w[t++]|w[t++]<<8,g=w[t++]|w[t++]<<8,_=w[t++],y=_>>6&1,v=1<<1+(7&_),x=o,j=a,k=!1;_>>7&&(k=!0,x=t,t+=3*(j=v));var S=t;for(t++;;){var I;if(!(0<=(I=w[t++])))throw Error("Invalid block size");if(0===I)break;t+=I}u.push({x:p,y:m,width:b,height:g,has_local_palette:k,palette_offset:x,palette_size:j,data_offset:S,data_length:t-S,transparent_index:l,interlaced:!!y,delay:f,disposal:h});break;case 59:s=!1;break;default:throw new Error("Unknown gif block: 0x"+w[t-1].toString(16))}this.numFrames=function(){return u.length},this.loopCount=function(){return c},this.frameInfo=function(t){if(t<0||t>=u.length)throw new Error("Frame index out of range.");return u[t]},this.decodeAndBlitFrameBGRA=function(t,e){var r=this.frameInfo(t),n=r.width*r.height,i=new Uint8Array(n);A(w,r.data_offset,i,n);var o=r.palette_offset,a=r.transparent_index;null===a&&(a=256);var s=r.width,u=E-s,f=s,l=4*(r.y*E+r.x),h=4*((r.y+r.height)*E+r.x),c=l,d=4*u;!0===r.interlaced&&(d+=4*E*7);for(var p=8,m=0,b=i.length;m>=1)),g===a)c+=4;else{var _=w[o+3*g],y=w[o+3*g+1],v=w[o+3*g+2];e[c++]=v,e[c++]=y,e[c++]=_,e[c++]=255}--f}},this.decodeAndBlitFrameRGBA=function(t,e){var r=this.frameInfo(t),n=r.width*r.height,i=new Uint8Array(n);A(w,r.data_offset,i,n);var o=r.palette_offset,a=r.transparent_index;null===a&&(a=256);var s=r.width,u=E-s,f=s,l=4*(r.y*E+r.x),h=4*((r.y+r.height)*E+r.x),c=l,d=4*u;!0===r.interlaced&&(d+=4*E*7);for(var p=8,m=0,b=i.length;m>=1)),g===a)c+=4;else{var _=w[o+3*g],y=w[o+3*g+1],v=w[o+3*g+2];e[c++]=_,e[c++]=y,e[c++]=v,e[c++]=255}--f}}}}catch(t){}},{}],176:[function(t,e,r){"use strict";var n={};(0,t("./lib/utils/common").assign)(n,t("./lib/deflate"),t("./lib/inflate"),t("./lib/zlib/constants")),e.exports=n},{"./lib/deflate":177,"./lib/inflate":178,"./lib/utils/common":179,"./lib/zlib/constants":182}],177:[function(t,e,r){"use strict";var a=t("./zlib/deflate"),s=t("./utils/common"),u=t("./utils/strings"),i=t("./zlib/messages"),o=t("./zlib/zstream"),f=Object.prototype.toString,l=0,h=-1,c=0,d=8;function p(t){if(!(this instanceof p))return new p(t);this.options=s.assign({level:h,method:d,chunkSize:16384,windowBits:15,memLevel:8,strategy:c,to:""},t||{});var e=this.options;e.raw&&0>>6:(e[o++]=r<65536?224|r>>>12:(e[o++]=240|r>>>18,128|r>>>12&63),128|r>>>6&63),128|63&r);return e},r.buf2binstring=function(t){return l(t,t.length)},r.binstring2buf=function(t){for(var e=new u.Buf8(t.length),r=0,n=e.length;r>10&1023,56320|1023&i)}return l(s,n)},r.utf8border=function(t,e){var r;for((e=e||t.length)>t.length&&(e=t.length),r=e-1;0<=r&&128==(192&t[r]);)r--;return r<0?e:0===r?e:r+f[t[r]]>e?r:e}},{"./common":179}],181:[function(t,e,r){"use strict";e.exports=function(t,e,r,n){for(var i=65535&t|0,o=t>>>16&65535|0,a=0;0!==r;){for(r-=a=2e3>>1:t>>>1;e[r]=t}return e}();e.exports=function(t,e,r,n){var i=s,o=n+r;t^=-1;for(var a=n;a>>8^i[255&(t^e[a])];return-1^t}},{}],184:[function(t,e,r){"use strict";var u,c=t("../utils/common"),f=t("./trees"),d=t("./adler32"),p=t("./crc32"),n=t("./messages"),l=0,h=4,m=0,b=-2,g=-1,_=4,i=2,y=8,v=9,o=286,a=30,s=19,w=2*o+1,E=15,x=3,j=258,k=j+x+1,S=42,I=113,A=1,T=2,O=3,P=4;function M(t,e){return t.msg=n[e],e}function L(t){return(t<<1)-(4t.avail_out&&(r=t.avail_out),0!==r&&(c.arraySet(t.output,e.pending_buf,e.pending_out,r,t.next_out),t.next_out+=r,e.pending_out+=r,t.total_out+=r,t.avail_out-=r,e.pending-=r,0===e.pending&&(e.pending_out=0))}function B(t,e){f._tr_flush_block(t,0<=t.block_start?t.block_start:-1,t.strstart-t.block_start,e),t.block_start=t.strstart,R(t.strm)}function N(t,e){t.pending_buf[t.pending++]=e}function D(t,e){t.pending_buf[t.pending++]=e>>>8&255,t.pending_buf[t.pending++]=255&e}function U(t,e){var r,n,i=t.max_chain_length,o=t.strstart,a=t.prev_length,s=t.nice_match,u=t.strstart>t.w_size-k?t.strstart-(t.w_size-k):0,f=t.window,l=t.w_mask,h=t.prev,c=t.strstart+j,d=f[o+a-1],p=f[o+a];t.prev_length>=t.good_match&&(i>>=2),s>t.lookahead&&(s=t.lookahead);do{if(f[(r=e)+a]===p&&f[r+a-1]===d&&f[r]===f[o]&&f[++r]===f[o+1]){o+=2,r++;do{}while(f[++o]===f[++r]&&f[++o]===f[++r]&&f[++o]===f[++r]&&f[++o]===f[++r]&&f[++o]===f[++r]&&f[++o]===f[++r]&&f[++o]===f[++r]&&f[++o]===f[++r]&&ou&&0!=--i);return a<=t.lookahead?a:t.lookahead}function F(t){var e,r,n,i,o,a,s,u,f,l,h=t.w_size;do{if(i=t.window_size-t.lookahead-t.strstart,t.strstart>=h+(h-k)){for(c.arraySet(t.window,t.window,h,h,0),t.match_start-=h,t.strstart-=h,t.block_start-=h,e=r=t.hash_size;n=t.head[--e],t.head[e]=h<=n?n-h:0,--r;);for(e=r=h;n=t.prev[--e],t.prev[e]=h<=n?n-h:0,--r;);i+=h}if(0===t.strm.avail_in)break;if(a=t.strm,s=t.window,u=t.strstart+t.lookahead,f=i,l=void 0,l=a.avail_in,f=x)for(o=t.strstart-t.insert,t.ins_h=t.window[o],t.ins_h=(t.ins_h<=x&&(t.ins_h=(t.ins_h<=x)if(n=f._tr_tally(t,t.strstart-t.match_start,t.match_length-x),t.lookahead-=t.match_length,t.match_length<=t.max_lazy_match&&t.lookahead>=x){for(t.match_length--;t.strstart++,t.ins_h=(t.ins_h<=x&&(t.ins_h=(t.ins_h<=x&&t.match_length<=t.prev_length){for(i=t.strstart+t.lookahead-x,n=f._tr_tally(t,t.strstart-1-t.prev_match,t.prev_length-x),t.lookahead-=t.prev_length-1,t.prev_length-=2;++t.strstart<=i&&(t.ins_h=(t.ins_h<t.pending_buf_size-5&&(r=t.pending_buf_size-5);;){if(t.lookahead<=1){if(F(t),0===t.lookahead&&e===l)return A;if(0===t.lookahead)break}t.strstart+=t.lookahead,t.lookahead=0;var n=t.block_start+r;if((0===t.strstart||t.strstart>=n)&&(t.lookahead=t.strstart-n,t.strstart=n,B(t,!1),0===t.strm.avail_out))return A;if(t.strstart-t.block_start>=t.w_size-k&&(B(t,!1),0===t.strm.avail_out))return A}return t.insert=0,e===h?(B(t,!0),0===t.strm.avail_out?O:P):(t.strstart>t.block_start&&(B(t,!1),t.strm.avail_out),A)}),new G(4,4,8,4,z),new G(4,5,16,8,z),new G(4,6,32,32,z),new G(4,4,16,16,H),new G(8,16,32,32,H),new G(8,16,128,128,H),new G(8,32,128,256,H),new G(32,128,258,1024,H),new G(32,258,258,4096,H)],r.deflateInit=function(t,e){return Y(t,e,y,15,8,0)},r.deflateInit2=Y,r.deflateReset=q,r.deflateResetKeep=Z,r.deflateSetHeader=function(t,e){return t&&t.state?2!==t.state.wrap?b:(t.state.gzhead=e,m):b},r.deflate=function(t,e){var r,n,i,o;if(!t||!t.state||5>8&255),N(n,n.gzhead.time>>16&255),N(n,n.gzhead.time>>24&255),N(n,9===n.level?2:2<=n.strategy||n.level<2?4:0),N(n,255&n.gzhead.os),n.gzhead.extra&&n.gzhead.extra.length&&(N(n,255&n.gzhead.extra.length),N(n,n.gzhead.extra.length>>8&255)),n.gzhead.hcrc&&(t.adler=p(t.adler,n.pending_buf,n.pending,0)),n.gzindex=0,n.status=69):(N(n,0),N(n,0),N(n,0),N(n,0),N(n,0),N(n,9===n.level?2:2<=n.strategy||n.level<2?4:0),N(n,3),n.status=I);else{var a=y+(n.w_bits-8<<4)<<8;a|=(2<=n.strategy||n.level<2?0:n.level<6?1:6===n.level?2:3)<<6,0!==n.strstart&&(a|=32),a+=31-a%31,n.status=I,D(n,a),0!==n.strstart&&(D(n,t.adler>>>16),D(n,65535&t.adler)),t.adler=1}if(69===n.status)if(n.gzhead.extra){for(i=n.pending;n.gzindex<(65535&n.gzhead.extra.length)&&(n.pending!==n.pending_buf_size||(n.gzhead.hcrc&&n.pending>i&&(t.adler=p(t.adler,n.pending_buf,n.pending-i,i)),R(t),i=n.pending,n.pending!==n.pending_buf_size));)N(n,255&n.gzhead.extra[n.gzindex]),n.gzindex++;n.gzhead.hcrc&&n.pending>i&&(t.adler=p(t.adler,n.pending_buf,n.pending-i,i)),n.gzindex===n.gzhead.extra.length&&(n.gzindex=0,n.status=73)}else n.status=73;if(73===n.status)if(n.gzhead.name){i=n.pending;do{if(n.pending===n.pending_buf_size&&(n.gzhead.hcrc&&n.pending>i&&(t.adler=p(t.adler,n.pending_buf,n.pending-i,i)),R(t),i=n.pending,n.pending===n.pending_buf_size)){o=1;break}N(n,o=n.gzindexi&&(t.adler=p(t.adler,n.pending_buf,n.pending-i,i)),0===o&&(n.gzindex=0,n.status=91)}else n.status=91;if(91===n.status)if(n.gzhead.comment){i=n.pending;do{if(n.pending===n.pending_buf_size&&(n.gzhead.hcrc&&n.pending>i&&(t.adler=p(t.adler,n.pending_buf,n.pending-i,i)),R(t),i=n.pending,n.pending===n.pending_buf_size)){o=1;break}N(n,o=n.gzindexi&&(t.adler=p(t.adler,n.pending_buf,n.pending-i,i)),0===o&&(n.status=103)}else n.status=103;if(103===n.status&&(n.gzhead.hcrc?(n.pending+2>n.pending_buf_size&&R(t),n.pending+2<=n.pending_buf_size&&(N(n,255&t.adler),N(n,t.adler>>8&255),t.adler=0,n.status=I)):n.status=I),0!==n.pending){if(R(t),0===t.avail_out)return n.last_flush=-1,m}else if(0===t.avail_in&&L(e)<=L(r)&&e!==h)return M(t,-5);if(666===n.status&&0!==t.avail_in)return M(t,-5);if(0!==t.avail_in||0!==n.lookahead||e!==l&&666!==n.status){var s=2===n.strategy?function(t,e){for(var r;;){if(0===t.lookahead&&(F(t),0===t.lookahead)){if(e===l)return A;break}if(t.match_length=0,r=f._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++,r&&(B(t,!1),0===t.strm.avail_out))return A}return t.insert=0,e===h?(B(t,!0),0===t.strm.avail_out?O:P):t.last_lit&&(B(t,!1),0===t.strm.avail_out)?A:T}(n,e):3===n.strategy?function(t,e){for(var r,n,i,o,a=t.window;;){if(t.lookahead<=j){if(F(t),t.lookahead<=j&&e===l)return A;if(0===t.lookahead)break}if(t.match_length=0,t.lookahead>=x&&0t.lookahead&&(t.match_length=t.lookahead)}if(t.match_length>=x?(r=f._tr_tally(t,1,t.match_length-x),t.lookahead-=t.match_length,t.strstart+=t.match_length,t.match_length=0):(r=f._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++),r&&(B(t,!1),0===t.strm.avail_out))return A}return t.insert=0,e===h?(B(t,!0),0===t.strm.avail_out?O:P):t.last_lit&&(B(t,!1),0===t.strm.avail_out)?A:T}(n,e):u[n.level].func(n,e);if(s!==O&&s!==P||(n.status=666),s===A||s===O)return 0===t.avail_out&&(n.last_flush=-1),m;if(s===T&&(1===e?f._tr_align(n):5!==e&&(f._tr_stored_block(n,0,0,!1),3===e&&(C(n.head),0===n.lookahead&&(n.strstart=0,n.block_start=0,n.insert=0))),R(t),0===t.avail_out))return n.last_flush=-1,m}return e!==h?m:n.wrap<=0?1:(2===n.wrap?(N(n,255&t.adler),N(n,t.adler>>8&255),N(n,t.adler>>16&255),N(n,t.adler>>24&255),N(n,255&t.total_in),N(n,t.total_in>>8&255),N(n,t.total_in>>16&255),N(n,t.total_in>>24&255)):(D(n,t.adler>>>16),D(n,65535&t.adler)),R(t),0=r.w_size&&(0===o&&(C(r.head),r.strstart=0,r.block_start=0,r.insert=0),f=new c.Buf8(r.w_size),c.arraySet(f,e,l-r.w_size,r.w_size,0),e=f,l=r.w_size),a=t.avail_in,s=t.next_in,u=t.input,t.avail_in=l,t.next_in=0,t.input=e,F(r);r.lookahead>=x;){for(n=r.strstart,i=r.lookahead-(x-1);r.ins_h=(r.ins_h<>>=v=y>>>24,p-=v,0===(v=y>>>16&255))S[o++]=65535&y;else{if(!(16&v)){if(0==(64&v)){y=m[(65535&y)+(d&(1<>>=v,p-=v),p<15&&(d+=k[n++]<>>=v=y>>>24,p-=v,!(16&(v=y>>>16&255))){if(0==(64&v)){y=b[(65535&y)+(d&(1<>>=v,p-=v,(v=o-a)>3,d&=(1<<(p-=w<<3))-1,t.next_in=n,t.next_out=o,t.avail_in=n>>24&255)+(t>>>8&65280)+((65280&t)<<8)+((255&t)<<24)}function o(){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 T.Buf16(320),this.work=new T.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function a(t){var e;return t&&t.state?(e=t.state,t.total_in=t.total_out=e.total=0,t.msg="",e.wrap&&(t.adler=1&e.wrap),e.mode=D,e.last=0,e.havedict=0,e.dmax=32768,e.head=null,e.hold=0,e.bits=0,e.lencode=e.lendyn=new T.Buf32(n),e.distcode=e.distdyn=new T.Buf32(i),e.sane=1,e.back=-1,B):N}function s(t){var e;return t&&t.state?((e=t.state).wsize=0,e.whave=0,e.wnext=0,a(t)):N}function u(t,e){var r,n;return t&&t.state?(n=t.state,e<0?(r=0,e=-e):(r=1+(e>>4),e<48&&(e&=15)),e&&(e<8||15=o.wsize?(T.arraySet(o.window,e,r-o.wsize,o.wsize,0),o.wnext=0,o.whave=o.wsize):(n<(i=o.wsize-o.wnext)&&(i=n),T.arraySet(o.window,e,r-n,i,o.wnext),(n-=i)?(T.arraySet(o.window,e,r-n,n,0),o.wnext=n,o.whave=o.wsize):(o.wnext+=i,o.wnext===o.wsize&&(o.wnext=0),o.whave>>8&255,r.check=P(r.check,I,2,0),l=f=0,r.mode=2;break}if(r.flags=0,r.head&&(r.head.done=!1),!(1&r.wrap)||(((255&f)<<8)+(f>>8))%31){t.msg="incorrect header check",r.mode=30;break}if(8!=(15&f)){t.msg="unknown compression method",r.mode=30;break}if(l-=4,E=8+(15&(f>>>=4)),0===r.wbits)r.wbits=E;else if(E>r.wbits){t.msg="invalid window size",r.mode=30;break}r.dmax=1<>8&1),512&r.flags&&(I[0]=255&f,I[1]=f>>>8&255,r.check=P(r.check,I,2,0)),l=f=0,r.mode=3;case 3:for(;l<32;){if(0===s)break t;s--,f+=n[o++]<>>8&255,I[2]=f>>>16&255,I[3]=f>>>24&255,r.check=P(r.check,I,4,0)),l=f=0,r.mode=4;case 4:for(;l<16;){if(0===s)break t;s--,f+=n[o++]<>8),512&r.flags&&(I[0]=255&f,I[1]=f>>>8&255,r.check=P(r.check,I,2,0)),l=f=0,r.mode=5;case 5:if(1024&r.flags){for(;l<16;){if(0===s)break t;s--,f+=n[o++]<>>8&255,r.check=P(r.check,I,2,0)),l=f=0}else r.head&&(r.head.extra=null);r.mode=6;case 6:if(1024&r.flags&&(s<(d=r.length)&&(d=s),d&&(r.head&&(E=r.head.extra_len-r.length,r.head.extra||(r.head.extra=new Array(r.head.extra_len)),T.arraySet(r.head.extra,n,o,d,E)),512&r.flags&&(r.check=P(r.check,n,d,o)),s-=d,o+=d,r.length-=d),r.length))break t;r.length=0,r.mode=7;case 7:if(2048&r.flags){if(0===s)break t;for(d=0;E=n[o+d++],r.head&&E&&r.length<65536&&(r.head.name+=String.fromCharCode(E)),E&&d>9&1,r.head.done=!0),t.adler=r.check=0,r.mode=12;break;case 10:for(;l<32;){if(0===s)break t;s--,f+=n[o++]<>>=7&l,l-=7&l,r.mode=27;break}for(;l<3;){if(0===s)break t;s--,f+=n[o++]<>>=1)){case 0:r.mode=14;break;case 1:if(F(r),r.mode=20,6!==e)break;f>>>=2,l-=2;break t;case 2:r.mode=17;break;case 3:t.msg="invalid block type",r.mode=30}f>>>=2,l-=2;break;case 14:for(f>>>=7&l,l-=7&l;l<32;){if(0===s)break t;s--,f+=n[o++]<>>16^65535)){t.msg="invalid stored block lengths",r.mode=30;break}if(r.length=65535&f,l=f=0,r.mode=15,6===e)break t;case 15:r.mode=16;case 16:if(d=r.length){if(s>>=5,l-=5,r.ndist=1+(31&f),f>>>=5,l-=5,r.ncode=4+(15&f),f>>>=4,l-=4,286>>=3,l-=3}for(;r.have<19;)r.lens[A[r.have++]]=0;if(r.lencode=r.lendyn,r.lenbits=7,j={bits:r.lenbits},x=L(0,r.lens,0,19,r.lencode,0,r.work,j),r.lenbits=j.bits,x){t.msg="invalid code lengths set",r.mode=30;break}r.have=0,r.mode=19;case 19:for(;r.have>>16&255,_=65535&S,!((b=S>>>24)<=l);){if(0===s)break t;s--,f+=n[o++]<>>=b,l-=b,r.lens[r.have++]=_;else{if(16===_){for(k=b+2;l>>=b,l-=b,0===r.have){t.msg="invalid bit length repeat",r.mode=30;break}E=r.lens[r.have-1],d=3+(3&f),f>>>=2,l-=2}else if(17===_){for(k=b+3;l>>=b)),f>>>=3,l-=3}else{for(k=b+7;l>>=b)),f>>>=7,l-=7}if(r.have+d>r.nlen+r.ndist){t.msg="invalid bit length repeat",r.mode=30;break}for(;d--;)r.lens[r.have++]=E}}if(30===r.mode)break;if(0===r.lens[256]){t.msg="invalid code -- missing end-of-block",r.mode=30;break}if(r.lenbits=9,j={bits:r.lenbits},x=L(C,r.lens,0,r.nlen,r.lencode,0,r.work,j),r.lenbits=j.bits,x){t.msg="invalid literal/lengths set",r.mode=30;break}if(r.distbits=6,r.distcode=r.distdyn,j={bits:r.distbits},x=L(R,r.lens,r.nlen,r.ndist,r.distcode,0,r.work,j),r.distbits=j.bits,x){t.msg="invalid distances set",r.mode=30;break}if(r.mode=20,6===e)break t;case 20:r.mode=21;case 21:if(6<=s&&258<=u){t.next_out=a,t.avail_out=u,t.next_in=o,t.avail_in=s,r.hold=f,r.bits=l,M(t,c),a=t.next_out,i=t.output,u=t.avail_out,o=t.next_in,n=t.input,s=t.avail_in,f=r.hold,l=r.bits,12===r.mode&&(r.back=-1);break}for(r.back=0;g=(S=r.lencode[f&(1<>>16&255,_=65535&S,!((b=S>>>24)<=l);){if(0===s)break t;s--,f+=n[o++]<>y)])>>>16&255,_=65535&S,!(y+(b=S>>>24)<=l);){if(0===s)break t;s--,f+=n[o++]<>>=y,l-=y,r.back+=y}if(f>>>=b,l-=b,r.back+=b,r.length=_,0===g){r.mode=26;break}if(32&g){r.back=-1,r.mode=12;break}if(64&g){t.msg="invalid literal/length code",r.mode=30;break}r.extra=15&g,r.mode=22;case 22:if(r.extra){for(k=r.extra;l>>=r.extra,l-=r.extra,r.back+=r.extra}r.was=r.length,r.mode=23;case 23:for(;g=(S=r.distcode[f&(1<>>16&255,_=65535&S,!((b=S>>>24)<=l);){if(0===s)break t;s--,f+=n[o++]<>y)])>>>16&255,_=65535&S,!(y+(b=S>>>24)<=l);){if(0===s)break t;s--,f+=n[o++]<>>=y,l-=y,r.back+=y}if(f>>>=b,l-=b,r.back+=b,64&g){t.msg="invalid distance code",r.mode=30;break}r.offset=_,r.extra=15&g,r.mode=24;case 24:if(r.extra){for(k=r.extra;l>>=r.extra,l-=r.extra,r.back+=r.extra}if(r.offset>r.dmax){t.msg="invalid distance too far back",r.mode=30;break}r.mode=25;case 25:if(0===u)break t;if(d=c-u,r.offset>d){if((d=r.offset-d)>r.whave&&r.sane){t.msg="invalid distance too far back",r.mode=30;break}p=d>r.wnext?(d-=r.wnext,r.wsize-d):r.wnext-d,d>r.length&&(d=r.length),m=r.window}else m=i,p=a-r.offset,d=r.length;for(ud?(m=M[L+a[y]],A[T+a[y]]):(m=96,0),u=1<<_-j,v=f=1<>j)+(f-=u)]=p<<24|m<<16|b|0,0!==f;);for(u=1<<_-1;I&u;)u>>=1;if(0!==u?(I&=u-1,I+=u):I=0,y++,0==--O[_]){if(_===w)break;_=e[r+a[y]]}if(E<_&&(I&h)!==l){for(0===j&&(j=E),c+=v,k=1<<(x=_-j);x+j>>7)]}function N(t,e){t.pending_buf[t.pending++]=255&e,t.pending_buf[t.pending++]=e>>>8&255}function D(t,e,r){t.bi_valid>i-r?(t.bi_buf|=e<>i-t.bi_valid,t.bi_valid+=r-i):(t.bi_buf|=e<>>=1,r<<=1,0<--e;);return r>>>1}function z(t,e,r){var n,i,o=new Array(g+1),a=0;for(n=1;n<=g;n++)o[n]=a=a+r[n-1]<<1;for(i=0;i<=e;i++){var s=t[2*i+1];0!==s&&(t[2*i]=F(o[s]++,s))}}function H(t){var e;for(e=0;e>1;1<=r;r--)Z(t,o,r);for(i=u;r=t.heap[1],t.heap[1]=t.heap[t.heap_len--],Z(t,o,1),n=t.heap[1],t.heap[--t.heap_max]=r,t.heap[--t.heap_max]=n,o[2*i]=o[2*r]+o[2*n],t.depth[i]=(t.depth[r]>=t.depth[n]?t.depth[r]:t.depth[n])+1,o[2*r+1]=o[2*n+1]=i,t.heap[1]=i++,Z(t,o,1),2<=t.heap_len;);t.heap[--t.heap_max]=t.heap[1],function(t,e){var r,n,i,o,a,s,u=e.dyn_tree,f=e.max_code,l=e.stat_desc.static_tree,h=e.stat_desc.has_stree,c=e.stat_desc.extra_bits,d=e.stat_desc.extra_base,p=e.stat_desc.max_length,m=0;for(o=0;o<=g;o++)t.bl_count[o]=0;for(u[2*t.heap[t.heap_max]+1]=0,r=t.heap_max+1;r>=7;n>>=1)if(1&r&&0!==t.dyn_ltree[2*e])return s;if(0!==t.dyn_ltree[18]||0!==t.dyn_ltree[20]||0!==t.dyn_ltree[26])return f;for(e=32;e>>3,(o=t.static_len+3+7>>>3)<=i&&(i=o)):i=o=r+5,r+4<=i&&-1!==e?K(t,e,r,n):4===t.strategy||o===i?(D(t,2+(n?1:0),3),q(t,S,I)):(D(t,4+(n?1:0),3),function(t,e,r,n){var i;for(D(t,e-257,5),D(t,r-1,5),D(t,n-4,4),i=0;i>>8&255,t.pending_buf[t.d_buf+2*t.last_lit+1]=255&e,t.pending_buf[t.l_buf+t.last_lit]=255&r,t.last_lit++,0===e?t.dyn_ltree[2*r]++:(t.matches++,e--,t.dyn_ltree[2*(T[r]+h+1)]++,t.dyn_dtree[2*B(e)]++),t.last_lit===t.lit_bufsize-1},r._tr_align=function(t){var e;D(t,2,3),U(t,_,S),16===(e=t).bi_valid?(N(e,e.bi_buf),e.bi_buf=0,e.bi_valid=0):8<=e.bi_valid&&(e.pending_buf[e.pending++]=255&e.bi_buf,e.bi_buf>>=8,e.bi_valid-=8)}},{"../utils/common":179}],191:[function(t,e,r){"use strict";e.exports=function(){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}},{}],192:[function(t,e,r){function o(t,e){if(!(t=t.replace(/\t+/g," ").trim()))return null;var r=t.indexOf(" ");if(-1===r)throw new Error("no named row at line "+e);var n=t.substring(0,r);t=(t=(t=(t=t.substring(r+1)).replace(/letter=[\'\"]\S+[\'\"]/gi,"")).split("=")).map(function(t){return t.trim().match(/(".*?"|[^"\s]+)+(?=\s*|\s*$)/g)});for(var i=[],o=0;oe.length-1)return 0;var n=e.readUInt8(r++),i=e.readInt32LE(r);switch(r+=4,n){case 1:t.info=function(t,e){var r={};r.size=t.readInt16LE(e);var n=t.readUInt8(e+2);r.smooth=n>>7&1,r.unicode=n>>6&1,r.italic=n>>5&1,r.bold=n>>4&1,n>>3&1&&(r.fixedHeight=1);return r.charset=t.readUInt8(e+3)||"",r.stretchH=t.readUInt16LE(e+4),r.aa=t.readUInt8(e+6),r.padding=[t.readInt8(e+7),t.readInt8(e+8),t.readInt8(e+9),t.readInt8(e+10)],r.spacing=[t.readInt8(e+11),t.readInt8(e+12)],r.outline=t.readUInt8(e+13),r.face=(i=t,o=e+14,u(i,o).toString("utf8")),r;var i,o}(e,r);break;case 2:t.common=function(t,e){var r={};r.lineHeight=t.readUInt16LE(e),r.base=t.readUInt16LE(e+2),r.scaleW=t.readUInt16LE(e+4),r.scaleH=t.readUInt16LE(e+6),r.pages=t.readUInt16LE(e+8);t.readUInt8(e+10);return r.packed=0,r.alphaChnl=t.readUInt8(e+11),r.redChnl=t.readUInt8(e+12),r.greenChnl=t.readUInt8(e+13),r.blueChnl=t.readUInt8(e+14),r}(e,r);break;case 3:t.pages=function(t,e,r){for(var n=[],i=u(t,e),o=i.length+1,a=r/o,s=0;s element");for(var r=e.getElementsByTagName("page"),n=0;n>4,h.push(s,a);break;case 2:i=3&u,o=u>>2&3,a=u>>4&3,s=u>>6&3,h.push(s,a,o,i);break;case 1:t=1&u,e=u>>1&1,r=u>>2&1,n=u>>3&1,i=u>>4&1,o=u>>5&1,a=u>>6&1,s=u>>7&1,h.push(s,a,o,i,n,r,e,t)}}return{get:function(t){for(;h.lengtht.length?(this._buffered-=t.length,this._buffers[0]=e.slice(t.length),t.func.call(this,e.slice(0,t.length))):(this._buffered-=e.length,this._buffers.shift(),t.func.call(this,e))},n.prototype._processRead=function(t){this._reads.shift();for(var e=0,r=0,n=new a(t.length);e=t.length))break;this._processRead(t)}}this._buffers&&0>>1:e>>>=1;n[t]=e}}();var i=e.exports=function(){this._crc=-1};i.prototype.write=function(t){for(var e=0;e>>8;return!0},i.prototype.crc32=function(){return-1^this._crc},i.crc32=function(t){for(var e=-1,r=0;r>>8;return-1^e}},{}],205:[function(t,e,r){(function(m){"use strict";var h=t("./paeth-predictor");var b={0:function(t,e,r,n,i){for(var o=0;o>1);n[i+a]=f}},4:function(t,e,r,n,i,o){for(var a=0;a>1);i+=Math.abs(u)}return i},4:function(t,e,r,n){for(var i=0,o=0;o=n.height?(this._lastLine=null,this._imageIndex++,n=this._images[this._imageIndex]):this._lastLine=e,n?this.read(n.byteWidth+1,this._reverseFilterLine.bind(this)):(this._lastLine=null,this.complete())}}).call(this,e("buffer").Buffer)},{"./interlace":210,"./paeth-predictor":214,buffer:16}],209:[function(t,e,r){(function(f){"use strict";e.exports=function(t,e){var r=e.depth,n=e.width,i=e.height,o=e.colorType,a=e.transColor,s=e.palette,u=t;return 3===o?function(t,e,r,n,i){for(var o=0,a=0;a>3))*this._bitmapInfo.height,r=Math.max(e,a.Z_MIN_CHUNK);this._inflate=a.createInflate({chunkSize:r});var n=e,i=this.emit.bind(this,"error");this._inflate.on("error",function(t){n&&i(t)}),this._filter.on("complete",this._complete.bind(this));var o=this._filter.write.bind(this._filter);this._inflate.on("data",function(t){n&&(t.length>n&&(t=t.slice(0,n)),n-=t.length,o(t))}),this._inflate.on("end",this._filter.end.bind(this._filter))}this._inflate.write(t)},l.prototype._handleMetaData=function(t){this.emit("metadata",t),this._bitmapInfo=Object.create(t),this._filter=new o(this._bitmapInfo)},l.prototype._handleTransColor=function(t){this._bitmapInfo.transColor=t},l.prototype._handlePalette=function(t){this._bitmapInfo.palette=t},l.prototype._finished=function(){this.errord||(this._inflate?this._inflate.end():this.emit("error","No Inflate block"),this.destroySoon())},l.prototype._complete=function(t){if(!this.errord){try{var e=u.dataToBitMap(t,this._bitmapInfo),r=f(e,this._bitmapInfo);e=null}catch(t){return void this._handleError(t)}this.emit("parsed",r)}}},{"./bitmapper":200,"./chunkstream":202,"./filter-parse-async":206,"./format-normaliser":209,"./parser":217,util:258,zlib:13}],216:[function(t,e,r){(function(d){"use strict";var p=!0,m=t("zlib"),b=t("./sync-inflate");m.deflateSync||(p=!1);var g=t("./sync-reader"),_=t("./filter-parse-sync"),y=t("./parser"),v=t("./bitmapper"),w=t("./format-normaliser");e.exports=function(t,e){if(!p)throw new Error("To use the sync capability of this library in old node versions, please pin pngjs to v2.3.0");var r,n,i;var o=[];var a=new g(t);if(new y(e,{read:a.read.bind(a),error:function(t){r=t},metadata:function(t){n=t},gamma:function(t){i=t},palette:function(t){n.palette=t},transColor:function(t){n.transColor=t},inflateData:function(t){o.push(t)}}).start(),a.process(),r)throw r;var s,u=d.concat(o);if(o.length=0,n.interlace)s=m.inflateSync(u);else{var f=(1+(n.width*n.bpp*n.depth+7>>3))*n.height;s=b(u,{chunkSize:f,maxLength:f})}if(u=null,!s||!s.length)throw new Error("bad png - invalid inflate data response");var l=_.process(s,n);u=null;var h=v.dataToBitMap(l,n);l=null;var c=w(h,n);return n.data=c,n.gamma=i||0,n}}).call(this,t("buffer").Buffer)},{"./bitmapper":200,"./filter-parse-sync":207,"./format-normaliser":209,"./parser":217,"./sync-inflate":220,"./sync-reader":221,buffer:16,zlib:13}],217:[function(e,r,t){(function(a){"use strict";var f=e("./constants"),s=e("./crc"),t=r.exports=function(t,e){(this._options=t).checkCRC=!1!==t.checkCRC,this._hasIHDR=!1,this._hasIEND=!1,this._palette=[],this._colorType=0,this._chunks={},this._chunks[f.TYPE_IHDR]=this._handleIHDR.bind(this),this._chunks[f.TYPE_IEND]=this._handleIEND.bind(this),this._chunks[f.TYPE_IDAT]=this._handleIDAT.bind(this),this._chunks[f.TYPE_PLTE]=this._handlePLTE.bind(this),this._chunks[f.TYPE_tRNS]=this._handleTRNS.bind(this),this._chunks[f.TYPE_gAMA]=this._handleGAMA.bind(this),this.read=e.read,this.error=e.error,this.metadata=e.metadata,this.gamma=e.gamma,this.transColor=e.transColor,this.palette=e.palette,this.parsed=e.parsed,this.inflateData=e.inflateData,this.finished=e.finished};t.prototype.start=function(){this.read(f.PNG_SIGNATURE.length,this._parseSignature.bind(this))},t.prototype._parseSignature=function(t){for(var e=f.PNG_SIGNATURE,r=0;rthis._palette.length)return void this.error(new Error("More transparent colors than palette size"));for(var e=0;et.width||n>t.height||r+i>t.width||n+o>t.height)throw new Error("bitblt reading outside image");if(a>e.width||s>e.height||a+i>e.width||s+o>e.height)throw new Error("bitblt writing outside image");for(var u=0;us&&(n=n.slice(0,s)),f.push(n),l+=n.length,0===(s-=n.length))return!1}return(0===e||i._offset>=i._chunkSize)&&(a=i._chunkSize,i._offset=0,i._buffer=p.allocUnsafe(i._chunkSize)),0===e&&(u+=o-t,o=t,!0)}}this.on("error",function(t){n=t}),m(this._handle,"zlib binding closed");do{var c=this._handle.writeSync(e,t,u,o,this._buffer,this._offset,a);c=c||this._writeState}while(!this._hadError&&h(c[0],c[1]));if(this._hadError)throw n;if(g<=l)throw _(this),new RangeError("Cannot create final Buffer. It would be larger than 0x"+g.toString(16)+" bytes");var d=p.concat(f,l);return _(this),d},t.inherits(n,b.Inflate),o.exports=a=e,a.Inflate=n,a.createInflate=function(t){return new n(t)},a.inflateSync=e}).call(this,i("_process"),i("buffer").Buffer)},{_process:223,assert:3,buffer:16,util:258,zlib:13}],221:[function(t,e,r){"use strict";var n=e.exports=function(t){this._buffer=t,this._reads=[]};n.prototype.read=function(t,e){this._reads.push({length:Math.abs(t),allowLess:t<0,func:e})},n.prototype.process=function(){for(;0=t.length||t.allowLess))break;this._reads.shift();var e=this._buffer;this._buffer=e.slice(t.length),t.func.call(this,e.slice(0,t.length))}return 0= 0x80 (not a basic code point)","invalid-input":"Invalid input"},c=_-y,j=Math.floor,k=String.fromCharCode;function S(t){throw new RangeError(h[t])}function d(t,e){for(var r=t.length,n=[];r--;)n[r]=e(t[r]);return n}function p(t,e){var r=t.split("@"),n="";return 1>>10&1023|55296),t=56320|1023&t),e+=k(t)}).join("")}function T(t,e){return t+22+75*(t<26)-((0!=e)<<5)}function O(t,e,r){var n=0;for(t=r?j(t/s):t>>1,t+=j(t/e);c*v>>1j((g-p)/a))&&S("overflow"),p+=u*a,!(u<(f=s<=b?y:b+v<=s?v:s-b));s+=_)a>j(g/(l=_-f))&&S("overflow"),a*=l;b=O(p-o,e=c.length+1,0==o),j(p/e)>g-m&&S("overflow"),m+=j(p/e),p%=e,c.splice(p++,0,m)}return A(c)}function b(t){var e,r,n,i,o,a,s,u,f,l,h,c,d,p,m,b=[];for(c=(t=I(t)).length,e=E,o=w,a=r=0;aj((g-r)/(d=n+1))&&S("overflow"),r+=(s-e)*d,e=s,a=0;ag&&S("overflow"),h==e){for(u=r,f=_;!(u<(l=f<=o?y:o+v<=f?v:f-o));f+=_)m=u-l,p=_-l,b.push(k(T(l+m%p,0))),u=j(m/p);b.push(k(T(u,0))),o=O(r,d,n==i),r=0,++n}++r,++e}return b.join("")}if(i={version:"1.4.1",ucs2:{decode:I,encode:A},decode:m,encode:b,toASCII:function(t){return p(t,function(t){return f.test(t)?"xn--"+b(t):t})},toUnicode:function(t){return p(t,function(t){return u.test(t)?m(t.slice(4).toLowerCase()):t})}},e&&r)if(M.exports==e)r.exports=i;else for(o in i)i.hasOwnProperty(o)&&(e[o]=i[o]);else t.punycode=i}(this)}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:void 0!==window?window:{})},{}],225:[function(t,e,r){"use strict";e.exports=function(t,e,r,n){e=e||"&",r=r||"=";var i={};if("string"!=typeof t||0===t.length)return i;var o=/\+/g;t=t.split(e);var a=1e3;n&&"number"==typeof n.maxKeys&&(a=n.maxKeys);var s,u,f=t.length;0e.highWaterMark&&(e.highWaterMark=(m<=(r=t)?r=m:(r--,r|=r>>>1,r|=r>>>2,r|=r>>>4,r|=r>>>8,r|=r>>>16,r++),r)),t<=e.length?t:e.ended?e.length:(e.needReadable=!0,0));var r}function E(t){var e=t._readableState;e.needReadable=!1,e.emittedReadable||(v("emitReadable",e.flowing),e.emittedReadable=!0,e.sync?g.nextTick(x,t):x(t))}function x(t){v("emit readable"),t.emit("readable"),A(t)}function j(t,e){e.readingMore||(e.readingMore=!0,g.nextTick(k,t,e))}function k(t,e){for(var r=e.length;!e.reading&&!e.flowing&&!e.ended&&e.length=e.length?(r=e.decoder?e.buffer.join(""):1===e.buffer.length?e.buffer.head.data:e.buffer.concat(e.length),e.buffer.clear()):r=function(t,e,r){var n;to.length?o.length:t;if(a===o.length?i+=o:i+=o.slice(0,t),0===(t-=a)){a===o.length?(++n,r.next?e.head=r.next:e.head=e.tail=null):(e.head=r).data=o.slice(a);break}++n}return e.length-=n,i}(t,e):function(t,e){var r=f.allocUnsafe(t),n=e.head,i=1;n.data.copy(r),t-=n.data.length;for(;n=n.next;){var o=n.data,a=t>o.length?o.length:t;if(o.copy(r,r.length-t,0,a),0===(t-=a)){a===o.length?(++i,n.next?e.head=n.next:e.head=e.tail=null):(e.head=n).data=o.slice(a);break}++i}return e.length-=i,r}(t,e);return n}(t,e.buffer,e.decoder),r);var r}function O(t){var e=t._readableState;if(0=e.highWaterMark||e.ended))return v("read: emitReadable",e.length,e.ended),0===e.length&&e.ended?O(this):E(this),null;if(0===(t=w(t,e))&&e.ended)return 0===e.length&&O(this),null;var n,i=e.needReadable;return v("need readable",i),(0===e.length||e.length-t>>0),o=this.head,a=0;o;)e=o.data,r=i,n=a,e.copy(r,n),a+=o.data.length,o=o.next;return i},t}(),n&&n.inspect&&n.inspect.custom&&(e.exports.prototype[n.inspect.custom]=function(){var t=n.inspect({length:this.length});return this.constructor.name+" "+t})},{"safe-buffer":241,util:11}],235:[function(t,e,r){"use strict";var o=t("process-nextick-args");function a(t,e){t.emit("error",e)}e.exports={destroy:function(t,e){var r=this,n=this._readableState&&this._readableState.destroyed,i=this._writableState&&this._writableState.destroyed;return n||i?e?e(t):!t||this._writableState&&this._writableState.errorEmitted||o.nextTick(a,this,t):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(t||null,function(t){!e&&t?(o.nextTick(a,r,t),r._writableState&&(r._writableState.errorEmitted=!0)):e&&e(t)})),this},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}}},{"process-nextick-args":222}],236:[function(t,e,r){e.exports=t("events").EventEmitter},{events:151}],237:[function(t,e,r){e.exports=t("./readable").PassThrough},{"./readable":238}],238:[function(t,e,r){(((r=e.exports=t("./lib/_stream_readable.js")).Stream=r).Readable=r).Writable=t("./lib/_stream_writable.js"),r.Duplex=t("./lib/_stream_duplex.js"),r.Transform=t("./lib/_stream_transform.js"),r.PassThrough=t("./lib/_stream_passthrough.js")},{"./lib/_stream_duplex.js":229,"./lib/_stream_passthrough.js":230,"./lib/_stream_readable.js":231,"./lib/_stream_transform.js":232,"./lib/_stream_writable.js":233}],239:[function(t,e,r){e.exports=t("./readable").Transform},{"./readable":238}],240:[function(t,e,r){e.exports=t("./lib/_stream_writable.js")},{"./lib/_stream_writable.js":233}],241:[function(t,e,r){var n=t("buffer"),i=n.Buffer;function o(t,e){for(var r in t)e[r]=t[r]}function a(t,e,r){return i(t,e,r)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?e.exports=n:(o(n,r),r.Buffer=a),o(i,a),a.from=function(t,e,r){if("number"==typeof t)throw new TypeError("Argument must not be a number");return i(t,e,r)},a.alloc=function(t,e,r){if("number"!=typeof t)throw new TypeError("Argument must be a number");var n=i(t);return void 0!==e?"string"==typeof r?n.fill(e,r):n.fill(e):n.fill(0),n},a.allocUnsafe=function(t){if("number"!=typeof t)throw new TypeError("Argument must be a number");return i(t)},a.allocUnsafeSlow=function(t){if("number"!=typeof t)throw new TypeError("Argument must be a number");return n.SlowBuffer(t)}},{buffer:16}],242:[function(t,e,r){e.exports=n;var l=t("events").EventEmitter;function n(){l.call(this)}t("inherits")(n,l),n.Readable=t("readable-stream/readable.js"),n.Writable=t("readable-stream/writable.js"),n.Duplex=t("readable-stream/duplex.js"),n.Transform=t("readable-stream/transform.js"),n.PassThrough=t("readable-stream/passthrough.js"),(n.Stream=n).prototype.pipe=function(e,t){var r=this;function n(t){e.writable&&!1===e.write(t)&&r.pause&&r.pause()}function i(){r.readable&&r.resume&&r.resume()}r.on("data",n),e.on("drain",i),e._isStdio||t&&!1===t.end||(r.on("end",a),r.on("close",s));var o=!1;function a(){o||(o=!0,e.end())}function s(){o||(o=!0,"function"==typeof e.destroy&&e.destroy())}function u(t){if(f(),0===l.listenerCount(this,"error"))throw t}function f(){r.removeListener("data",n),e.removeListener("drain",i),r.removeListener("end",a),r.removeListener("close",s),r.removeListener("error",u),e.removeListener("error",u),r.removeListener("end",f),r.removeListener("close",f),e.removeListener("close",f)}return r.on("error",u),e.on("error",u),r.on("end",f),r.on("close",f),e.on("close",f),e.emit("pipe",r),e}},{events:151,inherits:166,"readable-stream/duplex.js":228,"readable-stream/passthrough.js":237,"readable-stream/readable.js":238,"readable-stream/transform.js":239,"readable-stream/writable.js":240}],243:[function(r,t,i){(function(u){var f=r("./lib/request"),t=r("./lib/response"),l=r("xtend"),e=r("builtin-status-codes"),h=r("url"),n=i;n.request=function(t,e){t="string"==typeof t?h.parse(t):l(t);var r=-1===u.location.protocol.search(/^https?:$/)?"http:":"",n=t.protocol||r,i=t.hostname||t.host,o=t.port,a=t.path||"/";i&&-1!==i.indexOf(":")&&(i="["+i+"]"),t.url=(i?n+"//"+i:"")+(o?":"+o:"")+a,t.method=(t.method||"GET").toUpperCase(),t.headers=t.headers||{};var s=new f(t);return e&&s.on("response",e),s},n.get=function(t,e){var r=n.request(t,e);return r.end(),r},n.ClientRequest=f,n.IncomingMessage=t.IncomingMessage,n.Agent=function(){},n.Agent.defaultMaxSockets=4,n.globalAgent=new n.Agent,n.STATUS_CODES=e,n.METHODS=["CHECKOUT","CONNECT","COPY","DELETE","GET","HEAD","LOCK","M-SEARCH","MERGE","MKACTIVITY","MKCOL","MOVE","NOTIFY","OPTIONS","PATCH","POST","PROPFIND","PROPPATCH","PURGE","PUT","REPORT","SEARCH","SUBSCRIBE","TRACE","UNLOCK","UNSUBSCRIBE"]}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:void 0!==window?window:{})},{"./lib/request":245,"./lib/response":246,"builtin-status-codes":17,url:253,xtend:261}],244:[function(t,e,s){(function(t){s.fetch=a(t.fetch)&&a(t.ReadableStream),s.writableStream=a(t.WritableStream),s.abortController=a(t.AbortController),s.blobConstructor=!1;try{new Blob([new ArrayBuffer(1)]),s.blobConstructor=!0}catch(t){}var e;function r(){if(void 0!==e)return e;if(t.XMLHttpRequest){e=new t.XMLHttpRequest;try{e.open("GET",t.XDomainRequest?"/":"https://example.com")}catch(t){e=null}}else e=null;return e}function n(t){var e=r();if(!e)return!1;try{return e.responseType=t,e.responseType===t}catch(t){}return!1}var i=void 0!==t.ArrayBuffer,o=i&&a(t.ArrayBuffer.prototype.slice);function a(t){return"function"==typeof t}s.arraybuffer=s.fetch||i&&n("arraybuffer"),s.msstream=!s.fetch&&o&&n("ms-stream"),s.mozchunkedarraybuffer=!s.fetch&&i&&n("moz-chunked-arraybuffer"),s.overrideMimeType=s.fetch||!!r()&&a(r().overrideMimeType),s.vbArray=a(t.VBArray),e=null}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:void 0!==window?window:{})},{}],245:[function(o,s,t){(function(u,f,l){var h=o("./capability"),t=o("inherits"),e=o("./response"),a=o("readable-stream"),c=o("to-arraybuffer"),r=e.IncomingMessage,d=e.readyStates;var n=s.exports=function(e){var t,r=this;a.Writable.call(r),r._opts=e,r._body=[],r._headers={},e.auth&&r.setHeader("Authorization","Basic "+new l(e.auth).toString("base64")),Object.keys(e.headers).forEach(function(t){r.setHeader(t,e.headers[t])});var n,i,o=!0;if("disable-fetch"===e.mode||"requestTimeout"in e&&!h.abortController)t=!(o=!1);else if("prefer-streaming"===e.mode)t=!1;else if("allow-wrong-content-type"===e.mode)t=!h.overrideMimeType;else{if(e.mode&&"default"!==e.mode&&"prefer-fast"!==e.mode)throw new Error("Invalid value for opts.mode");t=!0}r._mode=(n=t,i=o,h.fetch&&i?"fetch":h.mozchunkedarraybuffer?"moz-chunked-arraybuffer":h.msstream?"ms-stream":h.arraybuffer&&n?"arraybuffer":h.vbArray&&n?"text:vbarray":"text"),r._fetchTimer=null,r.on("finish",function(){r._onFinish()})};t(n,a.Writable),n.prototype.setHeader=function(t,e){var r=t.toLowerCase();-1===i.indexOf(r)&&(this._headers[r]={name:t,value:e})},n.prototype.getHeader=function(t){var e=this._headers[t.toLowerCase()];return e?e.value:null},n.prototype.removeHeader=function(t){delete this._headers[t.toLowerCase()]},n.prototype._onFinish=function(){var e=this;if(!e._destroyed){var t=e._opts,n=e._headers,r=null;"GET"!==t.method&&"HEAD"!==t.method&&(r=h.arraybuffer?c(l.concat(e._body)):h.blobConstructor?new f.Blob(e._body.map(function(t){return c(t)}),{type:(n["content-type"]||{}).value||""}):l.concat(e._body).toString());var i=[];if(Object.keys(n).forEach(function(t){var e=n[t].name,r=n[t].value;Array.isArray(r)?r.forEach(function(t){i.push([e,t])}):i.push([e,r])}),"fetch"===e._mode){var o=null;if(h.abortController){var a=new AbortController;o=a.signal,e._fetchAbortController=a,"requestTimeout"in t&&0!==t.requestTimeout&&(e._fetchTimer=f.setTimeout(function(){e.emit("requestTimeout"),e._fetchAbortController&&e._fetchAbortController.abort()},t.requestTimeout))}f.fetch(e._opts.url,{method:e._opts.method,headers:i,body:r||void 0,mode:"cors",credentials:t.withCredentials?"include":"same-origin",signal:o}).then(function(t){e._fetchResponse=t,e._connect()},function(t){f.clearTimeout(e._fetchTimer),e._destroyed||e.emit("error",t)})}else{var s=e._xhr=new f.XMLHttpRequest;try{s.open(e._opts.method,e._opts.url,!0)}catch(t){return void u.nextTick(function(){e.emit("error",t)})}"responseType"in s&&(s.responseType=e._mode.split(":")[0]),"withCredentials"in s&&(s.withCredentials=!!t.withCredentials),"text"===e._mode&&"overrideMimeType"in s&&s.overrideMimeType("text/plain; charset=x-user-defined"),"requestTimeout"in t&&(s.timeout=t.requestTimeout,s.ontimeout=function(){e.emit("requestTimeout")}),i.forEach(function(t){s.setRequestHeader(t[0],t[1])}),e._response=null,s.onreadystatechange=function(){switch(s.readyState){case d.LOADING:case d.DONE:e._onXHRProgress()}},"moz-chunked-arraybuffer"===e._mode&&(s.onprogress=function(){e._onXHRProgress()}),s.onerror=function(){e._destroyed||e.emit("error",new Error("XHR error"))};try{s.send(r)}catch(t){return void u.nextTick(function(){e.emit("error",t)})}}}},n.prototype._onXHRProgress=function(){(function(t){try{var e=t.status;return null!==e&&0!==e}catch(t){return!1}})(this._xhr)&&!this._destroyed&&(this._response||this._connect(),this._response._onXHRProgress())},n.prototype._connect=function(){var e=this;e._destroyed||(e._response=new r(e._xhr,e._fetchResponse,e._mode,e._fetchTimer),e._response.on("error",function(t){e.emit("error",t)}),e.emit("response",e._response))},n.prototype._write=function(t,e,r){this._body.push(t),r()},n.prototype.abort=n.prototype.destroy=function(){this._destroyed=!0,f.clearTimeout(this._fetchTimer),this._response&&(this._response._destroyed=!0),this._xhr?this._xhr.abort():this._fetchAbortController&&this._fetchAbortController.abort()},n.prototype.end=function(t,e,r){"function"==typeof t&&(r=t,t=void 0),a.Writable.prototype.end.call(this,t,e,r)},n.prototype.flushHeaders=function(){},n.prototype.setTimeout=function(){},n.prototype.setNoDelay=function(){},n.prototype.setSocketKeepAlive=function(){};var i=["accept-charset","accept-encoding","access-control-request-headers","access-control-request-method","connection","content-length","cookie","cookie2","date","dnt","expect","host","keep-alive","origin","referer","te","trailer","transfer-encoding","upgrade","via"]}).call(this,o("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:void 0!==window?window:{},o("buffer").Buffer)},{"./capability":244,"./response":246,_process:223,buffer:16,inherits:166,"readable-stream":238,"to-arraybuffer":251}],246:[function(r,t,n){(function(f,l,h){var c=r("./capability"),t=r("inherits"),d=r("readable-stream"),s=n.readyStates={UNSENT:0,OPENED:1,HEADERS_RECEIVED:2,LOADING:3,DONE:4},e=n.IncomingMessage=function(t,e,r,n){var i=this;if(d.Readable.call(i),i._mode=r,i.headers={},i.rawHeaders=[],i.trailers={},i.rawTrailers=[],i.on("end",function(){f.nextTick(function(){i.emit("close")})}),"fetch"===r){if(i._fetchResponse=e,i.url=e.url,i.statusCode=e.status,i.statusMessage=e.statusText,e.headers.forEach(function(t,e){i.headers[e.toLowerCase()]=t,i.rawHeaders.push(e,t)}),c.writableStream){var o=new WritableStream({write:function(r){return new Promise(function(t,e){i._destroyed?e():i.push(new h(r))?t():i._resumeFetch=t})},close:function(){l.clearTimeout(n),i._destroyed||i.push(null)},abort:function(t){i._destroyed||i.emit("error",t)}});try{return void e.body.pipeTo(o).catch(function(t){l.clearTimeout(n),i._destroyed||i.emit("error",t)})}catch(t){}}var a=e.body.getReader();!function e(){a.read().then(function(t){if(!i._destroyed){if(t.done)return l.clearTimeout(n),void i.push(null);i.push(new h(t.value)),e()}}).catch(function(t){l.clearTimeout(n),i._destroyed||i.emit("error",t)})}()}else{if(i._xhr=t,i._pos=0,i.url=t.responseURL,i.statusCode=t.status,i.statusMessage=t.statusText,t.getAllResponseHeaders().split(/\r?\n/).forEach(function(t){var e=t.match(/^([^:]+):\s*(.*)/);if(e){var r=e[1].toLowerCase();"set-cookie"===r?(void 0===i.headers[r]&&(i.headers[r]=[]),i.headers[r].push(e[2])):void 0!==i.headers[r]?i.headers[r]+=", "+e[2]:i.headers[r]=e[2],i.rawHeaders.push(e[1],e[2])}}),i._charset="x-user-defined",!c.overrideMimeType){var s=i.rawHeaders["mime-type"];if(s){var u=s.match(/;\s*charset=([^;])(;|$)/);u&&(i._charset=u[1].toLowerCase())}i._charset||(i._charset="utf-8")}}};t(e,d.Readable),e.prototype._read=function(){var t=this._resumeFetch;t&&(this._resumeFetch=null,t())},e.prototype._onXHRProgress=function(){var e=this,t=e._xhr,r=null;switch(e._mode){case"text:vbarray":if(t.readyState!==s.DONE)break;try{r=new l.VBArray(t.responseBody).toArray()}catch(t){}if(null!==r){e.push(new h(r));break}case"text":try{r=t.responseText}catch(t){e._mode="text:vbarray";break}if(r.length>e._pos){var n=r.substr(e._pos);if("x-user-defined"===e._charset){for(var i=new h(n.length),o=0;oe._pos&&(e.push(new h(new Uint8Array(a.result.slice(e._pos)))),e._pos=a.result.byteLength)},a.onload=function(){e.push(null)},a.readAsArrayBuffer(r)}e._xhr.readyState===s.DONE&&"ms-stream"!==e._mode&&e.push(null)}}).call(this,r("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:void 0!==window?window:{},r("buffer").Buffer)},{"./capability":244,_process:223,buffer:16,inherits:166,"readable-stream":238}],247:[function(t,e,r){"use strict";var n=t("safe-buffer").Buffer,i=n.isEncoding||function(t){switch((t=""+t)&&t.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function o(t){var e;switch(this.encoding=function(t){var e=function(t){if(!t)return"utf8";for(var e;;)switch(t){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return t;default:if(e)return;t=(""+t).toLowerCase(),e=!0}}(t);if("string"!=typeof e&&(n.isEncoding===i||!i(t)))throw new Error("Unknown encoding: "+t);return e||t}(t),this.encoding){case"utf16le":this.text=u,this.end=f,e=4;break;case"utf8":this.fillLast=s,e=4;break;case"base64":this.text=l,this.end=h,e=3;break;default:return this.write=c,void(this.end=d)}this.lastNeed=0,this.lastTotal=0,this.lastChar=n.allocUnsafe(e)}function a(t){return t<=127?0:t>>5==6?2:t>>4==14?3:t>>3==30?4:t>>6==2?-1:-2}function s(t){var e=this.lastTotal-this.lastNeed,r=function(t,e,r){if(128!=(192&e[0]))return t.lastNeed=0,"�";if(1=t.length||e<0?t:t.slice(0,e).concat(t.slice(e+1))}function s(t,e,r){if(t[e]===r)return t;for(var n=t.length,i=Array(n),o=0;o>1)+720)%360;--e;)n.h=(n.h+i)%360,o.push(l(n));return o}function k(t,e){e=e||6;for(var r=l(t).toHsv(),n=r.h,i=r.s,o=r.v,a=[],s=1/e;e--;)a.push(l({h:n,s:i,v:o})),o=(o+s)%1;return a}l.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var t=this.toRgb();return(299*t.r+587*t.g+114*t.b)/1e3},getLuminance:function(){var t,e,r,n=this.toRgb();return t=n.r/255,e=n.g/255,r=n.b/255,.2126*(t<=.03928?t/12.92:h.pow((t+.055)/1.055,2.4))+.7152*(e<=.03928?e/12.92:h.pow((e+.055)/1.055,2.4))+.0722*(r<=.03928?r/12.92:h.pow((r+.055)/1.055,2.4))},setAlpha:function(t){return this._a=A(t),this._roundA=a(100*this._a)/100,this},toHsv:function(){var t=o(this._r,this._g,this._b);return{h:360*t.h,s:t.s,v:t.v,a:this._a}},toHsvString:function(){var t=o(this._r,this._g,this._b),e=a(360*t.h),r=a(100*t.s),n=a(100*t.v);return 1==this._a?"hsv("+e+", "+r+"%, "+n+"%)":"hsva("+e+", "+r+"%, "+n+"%, "+this._roundA+")"},toHsl:function(){var t=i(this._r,this._g,this._b);return{h:360*t.h,s:t.s,l:t.l,a:this._a}},toHslString:function(){var t=i(this._r,this._g,this._b),e=a(360*t.h),r=a(100*t.s),n=a(100*t.l);return 1==this._a?"hsl("+e+", "+r+"%, "+n+"%)":"hsla("+e+", "+r+"%, "+n+"%, "+this._roundA+")"},toHex:function(t){return e(this._r,this._g,this._b,t)},toHexString:function(t){return"#"+this.toHex(t)},toHex8:function(t){return function(t,e,r,n,i){var o=[M(a(t).toString(16)),M(a(e).toString(16)),M(a(r).toString(16)),M(C(n))];if(i&&o[0].charAt(0)==o[0].charAt(1)&&o[1].charAt(0)==o[1].charAt(1)&&o[2].charAt(0)==o[2].charAt(1)&&o[3].charAt(0)==o[3].charAt(1))return o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0)+o[3].charAt(0);return o.join("")}(this._r,this._g,this._b,this._a,t)},toHex8String:function(t){return"#"+this.toHex8(t)},toRgb:function(){return{r:a(this._r),g:a(this._g),b:a(this._b),a:this._a}},toRgbString:function(){return 1==this._a?"rgb("+a(this._r)+", "+a(this._g)+", "+a(this._b)+")":"rgba("+a(this._r)+", "+a(this._g)+", "+a(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:a(100*T(this._r,255))+"%",g:a(100*T(this._g,255))+"%",b:a(100*T(this._b,255))+"%",a:this._a}},toPercentageRgbString:function(){return 1==this._a?"rgb("+a(100*T(this._r,255))+"%, "+a(100*T(this._g,255))+"%, "+a(100*T(this._b,255))+"%)":"rgba("+a(100*T(this._r,255))+"%, "+a(100*T(this._g,255))+"%, "+a(100*T(this._b,255))+"%, "+this._roundA+")"},toName:function(){return 0===this._a?"transparent":!(this._a<1)&&(I[e(this._r,this._g,this._b,!0)]||!1)},toFilter:function(t){var e="#"+s(this._r,this._g,this._b,this._a),r=e,n=this._gradientType?"GradientType = 1, ":"";if(t){var i=l(t);r="#"+s(i._r,i._g,i._b,i._a)}return"progid:DXImageTransform.Microsoft.gradient("+n+"startColorstr="+e+",endColorstr="+r+")"},toString:function(t){var e=!!t;t=t||this._format;var r=!1,n=this._a<1&&0<=this._a;return e||!n||"hex"!==t&&"hex6"!==t&&"hex3"!==t&&"hex4"!==t&&"hex8"!==t&&"name"!==t?("rgb"===t&&(r=this.toRgbString()),"prgb"===t&&(r=this.toPercentageRgbString()),"hex"!==t&&"hex6"!==t||(r=this.toHexString()),"hex3"===t&&(r=this.toHexString(!0)),"hex4"===t&&(r=this.toHex8String(!0)),"hex8"===t&&(r=this.toHex8String()),"name"===t&&(r=this.toName()),"hsl"===t&&(r=this.toHslString()),"hsv"===t&&(r=this.toHsvString()),r||this.toHexString()):"name"===t&&0===this._a?this.toName():this.toRgbString()},clone:function(){return l(this.toString())},_applyModification:function(t,e){var r=t.apply(null,[this].concat([].slice.call(e)));return this._r=r._r,this._g=r._g,this._b=r._b,this.setAlpha(r._a),this},lighten:function(){return this._applyModification(b,arguments)},brighten:function(){return this._applyModification(g,arguments)},darken:function(){return this._applyModification(_,arguments)},desaturate:function(){return this._applyModification(r,arguments)},saturate:function(){return this._applyModification(u,arguments)},greyscale:function(){return this._applyModification(f,arguments)},spin:function(){return this._applyModification(y,arguments)},_applyCombination:function(t,e){return t.apply(null,[this].concat([].slice.call(e)))},analogous:function(){return this._applyCombination(j,arguments)},complement:function(){return this._applyCombination(v,arguments)},monochromatic:function(){return this._applyCombination(k,arguments)},splitcomplement:function(){return this._applyCombination(x,arguments)},triad:function(){return this._applyCombination(w,arguments)},tetrad:function(){return this._applyCombination(E,arguments)}},l.fromRatio=function(t,e){if("object"==typeof t){var r={};for(var n in t)t.hasOwnProperty(n)&&(r[n]="a"===n?t[n]:L(t[n]));t=r}return l(t,e)},l.equals=function(t,e){return!(!t||!e)&&l(t).toRgbString()==l(e).toRgbString()},l.random=function(){return l.fromRatio({r:t(),g:t(),b:t()})},l.mix=function(t,e,r){r=0===r?0:r||50;var n=l(t).toRgb(),i=l(e).toRgb(),o=r/100;return l({r:(i.r-n.r)*o+n.r,g:(i.g-n.g)*o+n.g,b:(i.b-n.b)*o+n.b,a:(i.a-n.a)*o+n.a})},l.readability=function(t,e){var r=l(t),n=l(e);return(h.max(r.getLuminance(),n.getLuminance())+.05)/(h.min(r.getLuminance(),n.getLuminance())+.05)},l.isReadable=function(t,e,r){var n,i,o=l.readability(t,e);switch(i=!1,(n=function(t){var e,r;e=((t=t||{level:"AA",size:"small"}).level||"AA").toUpperCase(),r=(t.size||"small").toLowerCase(),"AA"!==e&&"AAA"!==e&&(e="AA");"small"!==r&&"large"!==r&&(r="small");return{level:e,size:r}}(r)).level+n.size){case"AAsmall":case"AAAlarge":i=4.5<=o;break;case"AAlarge":i=3<=o;break;case"AAAsmall":i=7<=o}return i},l.mostReadable=function(t,e,r){var n,i,o,a,s=null,u=0;i=(r=r||{}).includeFallbackColors,o=r.level,a=r.size;for(var f=0;f",'"',"`"," ","\r","\n","\t"]),N=["'"].concat(i),D=["%","/","?",";","#"].concat(N),U=["/","?","#"],F=/^[+a-z0-9A-Z_-]{0,63}$/,z=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,H={javascript:!0,"javascript:":!0},G={javascript:!0,"javascript:":!0},W={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},Z=t("querystring");function o(t,e,r){if(t&&C.isObject(t)&&t instanceof I)return t;var n=new I;return n.parse(t,e,r),n}I.prototype.parse=function(t,e,r){if(!C.isString(t))throw new TypeError("Parameter 'url' must be a string, not "+typeof t);var n=t.indexOf("?"),i=-1!==n&&n>--j&1;if(255===(x=r[n++])){var t=r[n++];if(t){if(220===t&&v){n+=2;var e=r[n++]<<8|r[n++];if(0>>(j=7)}function l(t){for(;;){if("number"==typeof(t=t[f()]))return t;if("object"!==(void 0===t?"undefined":R(t)))throw new B("invalid huffman sequence")}}function h(t){for(var e=0;0>=4,0===i){if(n<15){k=h(n)+(1<>=4,0===r)S=i<15?(k=h(i)+(1<>=4,0===i){if(n<15)break;r+=16}else r+=n,t.a[e+C[r]]=c(i),r++}},T=0,O=1===I?t[0].c*t[0].l:w*i.O;T>10,u[h]=c,u[h+1]=c,u[h+2]=c,u[h+3]=c,u[h+4]=c,u[h+5]=c,u[h+6]=c,u[h+7]=c;else{d*=f[h+1],p*=f[h+2],m*=f[h+3],b*=f[h+4],g*=f[h+5];var v=5793*c+128>>8,w=5793*b+128>>8,E=p,x=_*=f[h+6];w=(v=v+w+1>>1)-w,c=3784*E+1567*x+128>>8,E=1567*E-3784*x+128>>8,g=(b=(b=2896*(d-(y*=f[h+7]))+128>>8)+(g<<=4)+1>>1)-g,m=(y=(y=2896*(d+y)+128>>8)+(m<<=4)+1>>1)-m,x=(v=v+(x=c)+1>>1)-x,E=(w=w+E+1>>1)-E,c=2276*b+3406*y+2048>>12,b=3406*b-2276*y+2048>>12,y=c,c=799*m+4017*g+2048>>12,m=4017*m-799*g+2048>>12,g=c,u[h]=v+y,u[h+7]=v-y,u[h+1]=w+g,u[h+6]=w-g,u[h+2]=E+m,u[h+5]=E-m,u[h+3]=x+b,u[h+4]=x-b}}for(f=0;f<8;++f)c=u[f],d=u[f+8],p=u[f+16],m=u[f+24],b=u[f+32],g=u[f+40],_=u[f+48],y=u[f+56],l[s+f+56]=0==(d|p|m|b|g|_|y)?(c=(c=5793*c+8192>>14)<-2040?0:2024<=c?255:c+2056>>4,l[s+f]=c,l[s+f+8]=c,l[s+f+16]=c,l[s+f+24]=c,l[s+f+32]=c,l[s+f+40]=c,l[s+f+48]=c):(v=5793*c+2048>>12,w=5793*b+2048>>12,c=3784*(E=p)+1567*(x=_)+2048>>12,E=1567*E-3784*x+2048>>12,x=c,g=(b=(b=2896*(d-y)+2048>>12)+g+1>>1)-g,m=(y=(y=2896*(d+y)+2048>>12)+m+1>>1)-m,c=2276*b+3406*y+2048>>12,b=3406*b-2276*y+2048>>12,y=c,c=799*m+4017*g+2048>>12,m=4017*m-799*g+2048>>12,d=(w=(w=(v=4112+(v+w+1>>1))-w)+E+1>>1)+(g=c),_=w-g,g=(E=w-E)-m,c=(c=(v=v+x+1>>1)+y)<16?0:4080<=c?255:c>>4,d=d<16?0:4080<=d?255:d>>4,p=(p=E+m)<16?0:4080<=p?255:p>>4,m=(m=(x=v-x)+b)<16?0:4080<=m?255:m>>4,b=(b=x-b)<16?0:4080<=b?255:b>>4,g=g<16?0:4080<=g?255:g>>4,_=_<16?0:4080<=_?255:_>>4,y=(y=v-y)<16?0:4080<=y?255:y>>4,l[s+f]=c,l[s+f+8]=d,l[s+f+16]=p,l[s+f+24]=m,l[s+f+32]=b,l[s+f+40]=g,l[s+f+48]=_,y)}return e.a}function L(t,e){var r=2=n)return null;o=t[r]<<8|t[r+1]}return{f:i.toString(16),F:o,offset:r}}var C=new Uint8Array([0,1,8,16,9,2,3,10,17,24,32,25,18,11,4,5,12,19,26,33,40,48,41,34,27,20,13,6,7,14,21,28,35,42,49,56,57,50,43,36,29,22,15,23,30,37,44,51,58,59,52,45,38,31,39,46,53,60,61,54,47,55,62,63]);t.prototype={parse:function(e){function t(){var t=e[o]<<8|e[o+1];return o+=2,t}function r(t){for(var e=Math.ceil(t.v/8/t.s),r=Math.ceil(t.g/8/t.u),n=0;n>4)for(d=0;d<64;d++)b[p=C[d]]=e[o++];else{if(1!=m>>4)throw new B("DQT - invalid table spec");for(d=0;d<64;d++)b[p=C[d]]=t()}n[15&m]=b}break;case 65472:case 65473:case 65474:if(g)throw new B("Only single frame JPEGs supported");t();var g={};for(g.X=65473===c,g.S=65474===c,g.precision=e[o++],c=t(),g.g=i||c,g.v=t(),g.b=[],g.C={},d=e[o++],c=b=m=0;c>4,y=15&e[o+1];m<_&&(m=_),b>4?h:l)[15&m]=x(b,y)}break;case 65501:t();var v=t();break;case 65498:for(d=1==++s&&!i,t(),m=e[o++],p=[],c=0;c>4],w.o=l[15&b],p.push(w)}c=e[o++],m=e[o++],b=e[o++];try{var E=j(e,o,g,p,v,c,m,b>>4,15&b,d);o+=E}catch(t){if(t instanceof N)return(0,_util.warn)('Attempting to re-parse JPEG image using "scanLines" parameter found in DNL marker (0xFFDC) segment.'),this.parse(e,{N:t.g});throw t}break;case 65500:o+=4;break;case 65535:255!==e[o]&&o--;break;default:if(255===e[o-3]&&192<=e[o-2]&&e[o-2]<=254)o-=3;else{if(!(d=L(e,o-2))||!d.f)throw new B("unknown marker "+c.toString(16));(0,_util.warn)("JpegImage.parse - unexpected data, current marker is: "+d.f),o=d.offset}}c=t()}for(this.width=g.v,this.height=g.g,this.A=a,this.b=[],c=0;c>8)+o[i+1];return u},w:function(){return this.A?!!this.A.W:3===this.i?0!==this.B:1===this.B},I:function(t){for(var e,r,n,i=0,o=t.length;i>>3)]),null==h&&(h=o.t325);var c=new Uint8Array(o.height*(f>>>3)),d=0;if(null!=o.t322){for(var p=o.t322[0],m=o.t323[0],b=Math.floor((o.width+p-1)/p),g=Math.floor((o.height+m-1)/m),_=new Uint8Array(0|Math.ceil(p*m*u/8)),y=0;y>>8;else{if(12!=d)throw new Error("unsupported bit depth "+d);for(l=0;l>>4,i[o++]=255&(p[l]<<4|p[l+1]>>>8),i[o++]=255&p[l+1]}}else{var b=new S.JpegDecoder;b.parse(u);var g=b.getData(b.width,b.height);for(l=0;l offset to first strip or tile");if(null==i){var E=0,x=[];x[E++]=255,x[E++]=216;var j=t.t519;if(null==j)throw new Error("JPEGQTables tag is missing");for(a=0;a>>8,x[E++]=255&S,x[E++]=a|u<<4,s=0;s<16;s++)x[E++]=e[r+k[a]+s];for(s=0;s>>8&255,x[E++]=255&t.height,x[E++]=t.width>>>8&255,x[E++]=255&t.width,1==(x[E++]=v))x[E++]=1,x[E++]=17,x[E++]=0;else for(a=0;a<3;a++)x[E++]=a+1,x[E++]=0!=a?17:(15&_)<<4|15&y,x[E++]=a;null!=w&&0!=w[0]&&(x[E++]=255,x[E++]=221,x[E++]=0,x[E++]=4,x[E++]=w[0]>>>8&255,x[E++]=255&w[0]),i=new Uint8Array(x)}var I=-1;for(a=0;a>>8&255,i[T++]=255&t.height,i[T++]=t.width>>>8&255,i[T++]=255&t.width,1==(i[T++]=v))i[T++]=1,i[T++]=17,i[T++]=0;else for(a=0;a<3;a++)i[T++]=a+1,i[T++]=0!=a?17:(15&_)<<4|15&y,i[T++]=a}if(255==e[l]&&218==e[l+1]){var O=e[l+2]<<8|e[l+3];for((o=new Uint8Array(O+2))[0]=e[l],o[1]=e[l+1],o[2]=e[l+2],o[3]=e[l+3],a=0;a>>8&255,u[f.sofPosition+6]=255&t.height,u[f.sofPosition+7]=t.width>>>8&255,u[f.sofPosition+8]=255&t.width,255==e[r]&&e[r+1]==SOS||(u.set(f.sosMarker,bufoff),bufoff+=sosMarker.length),c=0;c>>6,c=63&l;if(e++,3==h&&(f=15&c,n[u>>>1]|=f<<4*(1-u&1),u++),0==h)for(var d=0;d>>1]|=f<<4*(1-u&1),u++;if(2==h)for(d=0;d<2;d++)4!=(p=c>>>3*(1-d)&7)&&(f+=a[p],n[u>>>1]|=f<<4*(1-u&1),u++);if(1==h)for(d=0;d<3;d++){var p;2!=(p=c>>>2*(2-d)&3)&&(f+=o[p],n[u>>>1]|=f<<4*(1-u&1),u++)}}},S.decode._dmap={1:0,"011":1,"000011":2,"0000011":3,"010":-1,"000010":-2,"0000010":-3},S.decode._lens=function(){var t=function(t,e,r,n){for(var i=0;i>>3>>3]>>>7-(7&u)&1),2==a&&(x=t[u>>>3]>>>(7&u)&1),u++,l+=x,"H"==v){if(null!=s._lens[_][l]){var j=s._lens[_][l];l="",f+=j,j<64&&(s._addNtimes(h,f,_),p+=f,_=1-_,(f=0)==--w&&(v=""))}}else"0001"==l&&(l="",s._addNtimes(h,g-p,_),p=g),"001"==l&&(l="",v="H",w=2),null!=s._dmap[l]&&(m=b+s._dmap[l],s._addNtimes(h,m-p,_),p=m,l="",_=1-_);h.length==o&&""==v&&(s._writeBits(h,n,8*i+y*E),y++,p=_=0,c=s._makeDiff(h),h=[])}},S.decode._findDiff=function(t,e,r){for(var n=0;n=e&&t[n+1]==r)return t[n]},S.decode._makeDiff=function(t){var e=[];1==t[0]&&e.push(0,1);for(var r=1;r>>3>>3]>>>7-(7&u)&1),2==a&&(j=t[u>>>3]>>>(7&u)&1),u++,l+=j,E){if(null!=s._lens[_][l]){var k=s._lens[_][l];l="",f+=k,k<64&&(s._addNtimes(h,f,_),_=1-_,f=0)}}else"H"==v?null!=s._lens[_][l]&&(k=s._lens[_][l],l="",f+=k,k<64&&(s._addNtimes(h,f,_),p+=f,_=1-_,(f=0)==--w&&(v=""))):("0001"==l&&(l="",s._addNtimes(h,g-p,_),p=g),"001"==l&&(l="",v="H",w=2),null!=s._dmap[l]&&(m=b+s._dmap[l],s._addNtimes(h,m-p,_),p=m,l="",_=1-_));l.endsWith("000000000001")&&(0<=y&&s._writeBits(h,n,8*i+y*x),1==a&&(E=1==(t[u>>>3]>>>7-(7&u)&1)),2==a&&(E=1==(t[u>>>3]>>>(7&u)&1)),u++,null==s._decodeG3.allow2D&&(s._decodeG3.allow2D=E),s._decodeG3.allow2D||(E=!0,u--),l="",y++,p=_=0,c=s._makeDiff(h),h=[])}h.length==o&&s._writeBits(h,n,8*i+y*x)},S.decode._addNtimes=function(t,e,r){for(var n=0;n>>3]|=t[n]<<7-(r+n&7)},S.decode._decodeLZW=function(t,e,r,n){if(null==S.decode._lzwTab){for(var i=new Uint32Array(65535),o=new Uint16Array(65535),a=new Uint8Array(2e6),s=0;s<256;s++)i[a[s<<2]=s]=s<<2,o[s]=1;S.decode._lzwTab=[i,o,a]}for(var u=S.decode._copyData,f=S.decode._lzwTab[0],l=S.decode._lzwTab[1],h=(a=S.decode._lzwTab[2],258),c=1032,d=9,p=e<<3,m=0,b=0;m=(t[p>>>3]<<16|t[p+8>>>3]<<8|t[p+16>>>3])>>24-(7&p)-d&(1<>>3]<<16|t[p+8>>>3]<<8|t[p+16>>>3])>>24-(7&p)-d&(1<>3)]>>7-(7&p)&1;a[m]=a[m+1]=a[m+2]=255*(1-b),a[m+3]=255}if(4==u)for(p=0;p>1)]>>4-4*(1&p)&15,a[m]=a[m+1]=a[m+2]=17*(15-b),a[m+3]=255;if(8==u)for(p=0;p>3)]>>7-(7&p)&1,a[m]=a[m+1]=a[m+2]=255*b,a[m+3]=255;if(2==u)for(p=0;p>2)]>>6-2*(3&p)&3,a[m]=a[m+1]=a[m+2]=85*b,a[m+3]=255;if(8==u)for(p=0;p>8,a[m+1]=_[256+y]>>8,a[m+2]=_[512+y]>>8,a[m+3]=255}}else if(5==s){var v,w=4<(v=t.t258?t.t258.length:4)?1:0;for(p=0;p>8&255,t[e+1]=255&r},writeUint:function(t,e,r){t[e]=r>>24&255,t[e+1]=r>>16&255,t[e+2]=r>>8&255,t[e+3]=r>>0&255},writeASCII:function(t,e,r){for(var n=0;n (HTTP: "+e.statusCode+")";return new Error(n)})}var L,C={data:null,width:null,height:null},R=function(t){function v(){for(var n,t=arguments.length,i=new Array(t),e=0;e"}},{key:"toString",value:function(){return"[object Jimp]"}},{key:"getMIME",value:function(){return this._originalMime||v.MIME_PNG}},{key:"getExtension",value:function(){var t=this.getMIME();return l.getExtension(t)}},{key:"write",value:function(n,i){var o=this;if(!E.default||!E.default.createWriteStream)throw new Error("Cant access the filesystem. You can use the getBase64 method.");if("string"!=typeof n)return x.throwError.call(this,"path must be a string",i);if(void 0===i&&(i=P),"function"!=typeof i)return x.throwError.call(this,"cb must be a function",i);var t=l.getType(n)||this.getMIME(),e=a.default.parse(n);return e.dir&&s.default.sync(e.dir),this.getBuffer(t,function(t,e){if(t)return x.throwError.call(o,t,i);var r=E.default.createWriteStream(n);r.on("open",function(){r.write(e),r.end()}).on("error",function(t){return x.throwError.call(o,t,i)}),r.on("finish",function(){i.call(o,null,o)})}),this}},{key:"getBase64",value:function(n,i){return n===v.AUTO&&(n=this.getMIME()),"string"!=typeof n?x.throwError.call(this,"mime must be a string",i):"function"!=typeof i?x.throwError.call(this,"cb must be a function",i):(this.getBuffer(n,function(t,e){if(t)return x.throwError.call(this,t,i);var r="data:"+n+";base64,"+e.toString("base64");i.call(this,null,r)}),this)}},{key:"hash",value:function(t,e){if("function"==typeof(t=t||64)&&(e=t,t=64),"number"!=typeof t)return x.throwError.call(this,"base must be a number",e);if(t<2||64=this.bitmap.width&&(i=this.bitmap.width-1),e<0&&(o=0),e>=this.bitmap.height&&(o=this.bitmap.height-1)),r===v.EDGE_WRAP&&(t<0&&(i=this.bitmap.width+t),t>=this.bitmap.width&&(i=t%this.bitmap.width),e<0&&(i=this.bitmap.height+e),e>=this.bitmap.height&&(o=e%this.bitmap.height));var a=this.bitmap.width*o+i<<2;return(i<0||i>=this.bitmap.width)&&(a=-1),(o<0||o>=this.bitmap.height)&&(a=-1),(0,x.isNodePattern)(n)&&n.call(this,null,a),a}},{key:"getPixelColor",value:function(t,e,r){if("number"!=typeof t||"number"!=typeof e)return x.throwError.call(this,"x and y must be numbers",r);t=Math.round(t),e=Math.round(e);var n=this.getPixelIndex(t,e),i=this.bitmap.data.readUInt32BE(n);return(0,x.isNodePattern)(r)&&r.call(this,null,i),i}},{key:"setPixelColor",value:function(t,e,r,n){if("number"!=typeof t||"number"!=typeof e||"number"!=typeof r)return x.throwError.call(this,"hex, x and y must be numbers",n);e=Math.round(e),r=Math.round(r);var i=this.getPixelIndex(e,r);return this.bitmap.data.writeUInt32BE(t,i),(0,x.isNodePattern)(n)&&n.call(this,null,this),this}},{key:"hasAlpha",value:function(){for(var t=0;ti.width*i.height?t=t.cloneQuiet().resize(i.width,i.height):e=e.cloneQuiet().resize(n.width,n.height)),"number"!=typeof r||r<0||1u?"1":"0";return f};var d=[];e.exports=n},{}],267:[function(e,r,t){(function(t,i){"use strict";e("core-js/modules/es6.array.for-each"),e("core-js/modules/es6.array.filter"),e("core-js/modules/web.dom.iterable"),e("core-js/modules/es6.array.iterator"),e("core-js/modules/es6.object.keys"),e("core-js/modules/es6.object.define-property"),e("core-js/modules/es6.object.assign"),t.browser,r.exports=function(e,r){var n=new XMLHttpRequest;n.open("GET",e.url,!0),n.responseType="arraybuffer",n.addEventListener("load",function(){if(n.status<400)try{var t=i.from(this.response);r(null,n,t)}catch(t){return r(new Error("Response is not a buffer for url "+e.url+". Error: "+t.message))}else r(new Error("HTTP Status "+n.status+" for url "+e.url))}),n.addEventListener("error",function(t){r(t)}),n.send()}}).call(this,e("_process"),e("buffer").Buffer)},{_process:223,buffer:16,"core-js/modules/es6.array.filter":115,"core-js/modules/es6.array.for-each":118,"core-js/modules/es6.array.iterator":122,"core-js/modules/es6.object.assign":127,"core-js/modules/es6.object.define-property":129,"core-js/modules/es6.object.keys":130,"core-js/modules/web.dom.iterable":149,phin:198}],268:[function(i,t,h){(function(o){"use strict";i("core-js/modules/es6.object.define-property"),Object.defineProperty(h,"__esModule",{value:!0}),h.parseBitmap=function(t,e,r){var n=function(t,e){var r=(0,a.default)(t);if(r)return r.mime;if(e)return l.getType(e);return null}(t,e);if("string"!=typeof n)return r(new Error("Could not find MIME for Buffer <"+e+">"));this._originalMime=n.toLowerCase();try{var i=this.getMIME();if(!this.constructor.decoders[i])return u.throwError.call(this,"Unsupported MIME type: "+i,r);this.bitmap=this.constructor.decoders[i](t)}catch(t){return r.call(this,t,this)}try{this._exif=s.default.create(t).parse(),function(t){var e=t._exif;if(e&&e.tags&&e.tags.Orientation)switch(t._exif.tags.Orientation){case 1:break;case 2:t.mirror(!0,!1);break;case 3:t.rotate(180,!1);break;case 4:t.mirror(!1,!0);break;case 5:t.rotate(-90,!1).mirror(!0,!1);break;case 6:t.rotate(-90,!1);break;case 7:t.rotate(90,!1).mirror(!0,!1);break;case 8:t.rotate(-270,!1)}}(this)}catch(t){}return r.call(this,null,this),this},h.getBuffer=n,h.getBufferAsync=function(t){return(0,e.default)(n,this,t)};var a=r(i("file-type")),s=r(i("exif-parser")),u=i("@jimp/utils"),f=t(i("../constants")),l=t(i("./mime")),e=r(i("./promisify"));function t(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r)){var n=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(t,r):{};n.get||n.set?Object.defineProperty(e,r,n):e[r]=t[r]}return e.default=t,e}function r(t){return t&&t.__esModule?t:{default:t}}function n(t,e){if(t===f.AUTO&&(t=this.getMIME()),"string"!=typeof t)return u.throwError.call(this,"mime must be a string",e);if("function"!=typeof e)return u.throwError.call(this,"cb must be a function",e);var r,n;if(t=t.toLowerCase(),this._rgba&&this.constructor.hasAlpha[t]?this.bitmap.data=o.from(this.bitmap.data):this.bitmap.data=(r=this.constructor,n=this,new r(n.bitmap.width,n.bitmap.height,n._background).composite(n,0,0).bitmap).data,this.constructor.encoders[t]){var i=this.constructor.encoders[t](this);e.call(this,null,i)}else e.call(this,"Unsupported MIME type: "+t);return this}}).call(this,i("buffer").Buffer)},{"../constants":264,"./mime":269,"./promisify":270,"@jimp/utils":303,buffer:16,"core-js/modules/es6.object.define-property":129,"exif-parser":152,"file-type":161}],269:[function(t,e,r){"use strict";t("core-js/modules/es6.object.define-property"),Object.defineProperty(r,"__esModule",{value:!0}),r.getExtension=r.getType=r.addType=void 0,t("core-js/modules/es6.regexp.split"),t("core-js/modules/es7.array.includes"),t("core-js/modules/es6.string.includes"),t("core-js/modules/web.dom.iterable"),t("core-js/modules/es6.array.iterator"),t("core-js/modules/es7.object.entries"),t("core-js/modules/es6.array.find");var i={};r.addType=function(t,e){i[t]=e};r.getType=function(t){var e,r=t.split("/").slice(-1),n=r[r.length-1].split(".")[1];return(e=n,Object.entries(i).find(function(t){return t[1].includes(e)})||[])[0]};r.getExtension=function(t){return(i[t.toLowerCase()]||[])[0]}},{"core-js/modules/es6.array.find":117,"core-js/modules/es6.array.iterator":122,"core-js/modules/es6.object.define-property":129,"core-js/modules/es6.regexp.split":137,"core-js/modules/es6.string.includes":139,"core-js/modules/es7.array.includes":146,"core-js/modules/es7.object.entries":147,"core-js/modules/web.dom.iterable":149}],270:[function(t,e,r){"use strict";t("core-js/modules/es6.object.define-property"),Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0,t("core-js/modules/es6.function.bind"),t("core-js/modules/es6.promise");var n=function(t,e){for(var r=arguments.length,i=new Array(2>8)+l,v.bitmap.data[o+1]=(f*(s-h)-h+255>>8)+h,v.bitmap.data[o+2]=(f*(u-c)-c+255>>8)+c,v.bitmap.data[o+3]=this.constructor.limit255(d+f)}}),(0,i.isNodePattern)(n)&&n.call(this,null,this),this}}},e.exports=r.default},{"@jimp/utils":303,"core-js/modules/es6.object.define-property":129,"core-js/modules/es6.symbol":141,"core-js/modules/es7.symbol.async-iterator":148}],274:[function(t,e,r){"use strict";t("core-js/modules/es6.object.define-property"),Object.defineProperty(r,"__esModule",{value:!0}),r.shgTable=r.mulTable=void 0;r.mulTable=[1,57,41,21,203,34,97,73,227,91,149,62,105,45,39,137,241,107,3,173,39,71,65,238,219,101,187,87,81,151,141,133,249,117,221,209,197,187,177,169,5,153,73,139,133,127,243,233,223,107,103,99,191,23,177,171,165,159,77,149,9,139,135,131,253,245,119,231,224,109,211,103,25,195,189,23,45,175,171,83,81,79,155,151,147,9,141,137,67,131,129,251,123,30,235,115,113,221,217,53,13,51,50,49,193,189,185,91,179,175,43,169,83,163,5,79,155,19,75,147,145,143,35,69,17,67,33,65,255,251,247,243,239,59,29,229,113,111,219,27,213,105,207,51,201,199,49,193,191,47,93,183,181,179,11,87,43,85,167,165,163,161,159,157,155,77,19,75,37,73,145,143,141,35,138,137,135,67,33,131,129,255,63,250,247,61,121,239,237,117,29,229,227,225,111,55,109,216,213,211,209,207,205,203,201,199,197,195,193,48,190,47,93,185,183,181,179,178,176,175,173,171,85,21,167,165,41,163,161,5,79,157,78,154,153,19,75,149,74,147,73,144,143,71,141,140,139,137,17,135,134,133,66,131,65,129,1];r.shgTable=[0,9,10,10,14,12,14,14,16,15,16,15,16,15,15,17,18,17,12,18,16,17,17,19,19,18,19,18,18,19,19,19,20,19,20,20,20,20,20,20,15,20,19,20,20,20,21,21,21,20,20,20,21,18,21,21,21,21,20,21,17,21,21,21,22,22,21,22,22,21,22,21,19,22,22,19,20,22,22,21,21,21,22,22,22,18,22,22,21,22,22,23,22,20,23,22,22,23,23,21,19,21,21,21,23,23,23,22,23,23,21,23,22,23,18,22,23,20,22,23,23,23,21,22,20,22,21,22,24,24,24,24,24,22,21,24,23,23,24,21,24,23,24,22,24,24,22,24,24,22,23,24,24,24,20,23,22,23,24,24,24,24,24,24,24,23,21,23,22,23,24,24,24,22,24,24,24,23,22,24,24,25,23,25,25,23,24,25,25,24,22,25,25,25,24,23,24,25,25,25,25,25,25,25,25,25,25,25,25,23,25,23,24,25,25,25,25,25,25,25,25,25,24,22,25,25,23,25,25,20,24,25,24,25,25,22,24,25,24,25,24,25,25,24,25,25,25,25,22,25,25,25,24,25,24,25,18]},{"core-js/modules/es6.object.define-property":129}],275:[function(t,e,r){"use strict";t("core-js/modules/es6.object.define-property"),Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var A=t("@jimp/utils"),T=t("./blur-tables");r.default=function(){return{blur:function(t,e){if("number"!=typeof t)return A.throwError.call(this,"r must be a number",e);if(t<1)return A.throwError.call(this,"r must be greater than 0",e);for(var r,n,i,o,a,s,u,f,l,h,c,d,p,m,b=this.bitmap.width-1,g=this.bitmap.height-1,_=t+1,y=T.mulTable[t],v=T.shgTable[t],w=[],E=[],x=[],j=[],k=[],S=[],I=2;0>>v,255<(this.bitmap.data[d+3]=m)&&(this.bitmap.data[d+3]=255),0>>v)*m,this.bitmap.data[d+1]=(n*y>>>v)*m,this.bitmap.data[d+2]=(i*y>>>v)*m):(this.bitmap.data[d+2]=0,this.bitmap.data[d+1]=0,this.bitmap.data[d]=0),0===a&&(k[s]=((f=s+_)>3;if((0===o||o&o-1)&&(0===a||a&a-1))return h.throwError.call(this,"only use one flag per alignment direction",i);var s=o>>1,u=a>>1,f=t/e>this.bitmap.width/this.bitmap.height?e/this.bitmap.height:t/this.bitmap.width,l=this.cloneQuiet().scale(f,n);return this.resize(t,e,n),this.scanQuiet(0,0,this.bitmap.width,this.bitmap.height,function(t,e,r){this.bitmap.data.writeUInt32BE(this._background,r)}),this.blit(l,(this.bitmap.width-l.bitmap.width)/2*s,(this.bitmap.height-l.bitmap.height)/2*u),(0,h.isNodePattern)(i)&&i.call(this,null,this),this}}},e.exports=r.default},{"@jimp/utils":303,"core-js/modules/es6.object.define-property":129}],278:[function(t,e,r){"use strict";t("core-js/modules/es6.object.define-property"),Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var l=t("@jimp/utils");r.default=function(){return{cover:function(t,e,r,n,i){if("number"!=typeof t||"number"!=typeof e)return l.throwError.call(this,"w and h must be numbers",i);r&&"function"==typeof r&&void 0===i?(i=r,n=r=null):"function"==typeof n&&void 0===i&&(i=n,n=null);var o=7&(r=r||this.constructor.HORIZONTAL_ALIGN_CENTER|this.constructor.VERTICAL_ALIGN_MIDDLE),a=r>>3;if((0===o||o&o-1)&&(0===a||a&a-1))return l.throwError.call(this,"only use one flag per alignment direction",i);var s=o>>1,u=a>>1,f=t/e>this.bitmap.width/this.bitmap.height?t/this.bitmap.width:e/this.bitmap.height;return this.scale(f,n),this.crop((this.bitmap.width-t)/2*s,(this.bitmap.height-e)/2*u,t,e),(0,l.isNodePattern)(i)&&i.call(this,null,this),this}}},e.exports=r.default},{"@jimp/utils":303,"core-js/modules/es6.object.define-property":129}],279:[function(t,e,r){(function(f){"use strict";t("core-js/modules/es6.object.define-property"),Object.defineProperty(r,"__esModule",{value:!0}),r.default=function(t){return t("crop",function(t,e,r,n,i){if("number"!=typeof t||"number"!=typeof e)return B.throwError.call(this,"x and y must be numbers",i);if("number"!=typeof r||"number"!=typeof n)return B.throwError.call(this,"w and h must be numbers",i);if(t=Math.round(t),e=Math.round(e),r=Math.round(r),n=Math.round(n),0===t&&r===this.bitmap.width){var o=r*e+t<<2,a=o+n*r<<3;this.bitmap.data=this.bitmap.data.slice(o,a)}else{var s=f.allocUnsafe(r*n*4),u=0;this.scanQuiet(t,e,r,n,function(t,e,r){var n=this.bitmap.data.readUInt32BE(r,!0);s.writeUInt32BE(n,u,!0),u+=4}),this.bitmap.data=s}return this.bitmap.width=r,this.bitmap.height=n,(0,B.isNodePattern)(i)&&i.call(this,null,this),this}),{class:{autocrop:function(){for(var t,e=this.bitmap.width,r=this.bitmap.height,n=0,i=2e-4,o=!0,a=!1,s=0,u=arguments.length;si)break t}c++}l=this.getPixelColor(e,0);t:for(var v=0;vi)break t}d++}l=this.getPixelColor(0,r);t:for(var j=r-1;c+1<=j;j--){for(var k=e-d-1;0<=k;k--){var S=this.getPixelColor(k,j),I=this.constructor.intToRGBA(S);if(this.constructor.colorDiff(h,I)>i)break t}p++}l=this.getPixelColor(e,r);t:for(var A=e-1;0+d+1<=A;A--){for(var T=r-1;0+c<=T;T--){var O=this.getPixelColor(A,T),P=this.constructor.intToRGBA(O);if(this.constructor.colorDiff(h,P)>i)break t}m++}if(m-=n,d-=n,c-=n,p-=n,a){var M=Math.min(d,m),L=Math.min(c,p);d=m=M,p=c=L}var C=e-(m+d),R=r-(p+c);return m=0<=m?m:0,d=0<=d?d:0,c=0<=c?c:0,p=0<=p?p:0,(o?0!==d&&0!==c&&0!==m&&0!==p:0!==d||0!==c||0!==m||0!==p)&&this.crop(d,c,C,R),(0,B.isNodePattern)(t)&&t.call(this,null,this),this}}}},t("core-js/modules/es7.symbol.async-iterator"),t("core-js/modules/es6.symbol");var B=t("@jimp/utils");function N(t){return(N="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}e.exports=r.default}).call(this,t("buffer").Buffer)},{"@jimp/utils":303,buffer:16,"core-js/modules/es6.object.define-property":129,"core-js/modules/es6.symbol":141,"core-js/modules/es7.symbol.async-iterator":148}],280:[function(t,e,r){"use strict";t("core-js/modules/es6.object.define-property"),Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0,t("core-js/modules/es7.symbol.async-iterator"),t("core-js/modules/es6.symbol");var n=t("@jimp/utils");function i(t){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}r.default=function(){return{displace:function(o,a,t){if("object"!==i(o)||o.constructor!==this.constructor)return n.throwError.call(this,"The source must be a Jimp image",t);if("number"!=typeof a)return n.throwError.call(this,"factor must be a number",t);var s=this.cloneQuiet();return this.scanQuiet(0,0,this.bitmap.width,this.bitmap.height,function(t,e,r){var n=o.bitmap.data[r]/256*a;n=Math.round(n);var i=this.getPixelIndex(t+n,e);this.bitmap.data[i]=s.bitmap.data[r],this.bitmap.data[i+1]=s.bitmap.data[r+1],this.bitmap.data[i+2]=s.bitmap.data[r+2]}),(0,n.isNodePattern)(t)&&t.call(this,null,this),this}}},e.exports=r.default},{"@jimp/utils":303,"core-js/modules/es6.object.define-property":129,"core-js/modules/es6.symbol":141,"core-js/modules/es7.symbol.async-iterator":148}],281:[function(t,e,r){"use strict";t("core-js/modules/es6.object.define-property"),Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var n=t("@jimp/utils");function i(t){var i=[1,9,3,11,13,5,15,7,4,12,2,10,16,8,14,6];return this.scanQuiet(0,0,this.bitmap.width,this.bitmap.height,function(t,e,r){var n=i[((3&e)<<2)+t%4];this.bitmap.data[r]=Math.min(this.bitmap.data[r]+n,255),this.bitmap.data[r+1]=Math.min(this.bitmap.data[r+1]+n,255),this.bitmap.data[r+2]=Math.min(this.bitmap.data[r+2]+n,255)}),(0,n.isNodePattern)(t)&&t.call(this,null,this),this}r.default=function(){return{dither565:i,dither16:i}},e.exports=r.default},{"@jimp/utils":303,"core-js/modules/es6.object.define-property":129}],282:[function(n,i,o){(function(e){"use strict";n("core-js/modules/es6.object.define-property"),Object.defineProperty(o,"__esModule",{value:!0}),o.default=void 0;var r=n("@jimp/utils");function t(s,u,t){if("boolean"!=typeof s||"boolean"!=typeof u)return r.throwError.call(this,"horizontal and vertical must be Booleans",t);if(s&&u)return this.rotate(180,!0,t);var f=e.alloc(this.bitmap.data.length);return this.scanQuiet(0,0,this.bitmap.width,this.bitmap.height,function(t,e,r){var n=s?this.bitmap.width-1-t:t,i=u?this.bitmap.height-1-e:e,o=this.bitmap.width*i+n<<2,a=this.bitmap.data.readUInt32BE(r);f.writeUInt32BE(a,o)}),this.bitmap.data=e.from(f),(0,r.isNodePattern)(t)&&t.call(this,null,this),this}o.default=function(){return{flip:t,mirror:t}},i.exports=o.default}).call(this,n("buffer").Buffer)},{"@jimp/utils":303,buffer:16,"core-js/modules/es6.object.define-property":129}],283:[function(t,e,r){"use strict";t("core-js/modules/es6.object.define-property"),Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var j=t("@jimp/utils");r.default=function(){return{gaussian:function(t,e){if("number"!=typeof t)return j.throwError.call(this,"r must be a number",e);if(t<1)return j.throwError.call(this,"r must be greater than 0",e);for(var r=Math.ceil(2.57*t),n=2*r+1,i=t*t*2,o=i*Math.PI,a=[],s=0;sthis.bitmap.width/this.bitmap.height?e/this.bitmap.height:t/this.bitmap.width;return this.scale(i,r),(0,o.isNodePattern)(n)&&n.call(this,null,this),this}}},e.exports=r.default},{"@jimp/utils":303,"core-js/modules/es6.object.define-property":129}],296:[function(t,e,r){"use strict";t("core-js/modules/es6.object.define-property"),Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0,t("core-js/modules/es6.string.iterator"),t("core-js/modules/es6.array.from"),t("core-js/modules/es6.regexp.to-string"),t("core-js/modules/es6.date.to-string"),t("core-js/modules/es7.symbol.async-iterator"),t("core-js/modules/es6.symbol"),t("core-js/modules/web.dom.iterable"),t("core-js/modules/es6.array.is-array"),t("core-js/modules/es6.array.map");var n=t("timm"),i=w(t("@jimp/plugin-dither")),o=w(t("@jimp/plugin-resize")),a=w(t("@jimp/plugin-blit")),s=w(t("@jimp/plugin-rotate")),u=w(t("@jimp/plugin-color")),f=w(t("@jimp/plugin-print")),l=w(t("@jimp/plugin-blur")),h=w(t("@jimp/plugin-crop")),c=w(t("@jimp/plugin-normalize")),d=w(t("@jimp/plugin-invert")),p=w(t("@jimp/plugin-gaussian")),m=w(t("@jimp/plugin-flip")),b=w(t("@jimp/plugin-mask")),g=w(t("@jimp/plugin-scale")),_=w(t("@jimp/plugin-displace")),y=w(t("@jimp/plugin-contain")),v=w(t("@jimp/plugin-cover"));function w(t){return t&&t.__esModule?t:{default:t}}function E(t){return function(t){if(Array.isArray(t)){for(var e=0,r=new Array(t.length);e