Files
image-sequencer/dist/image-sequencer.min.js
Jeffrey Warren 2abf0fae09 Code cleanup, re-organizing and tidying (#226)
* initial cleanup

* build

* additions and build
2018-04-29 12:16:11 -04:00

1 line
514 KiB
JavaScript
Raw Blame History

This file contains invisible Unicode characters
This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
!function e(t,n,r){function i(o,s){if(!n[o]){if(!t[o]){var u="function"==typeof require&&require;if(!s&&u)return u(o,!0);if(a)return a(o,!0);var l=new Error("Cannot find module '"+o+"'");throw l.code="MODULE_NOT_FOUND",l}var c=n[o]={exports:{}};t[o][0].call(c.exports,function(e){var n=t[o][1][e];return i(n||e)},c,c.exports,e,t,n,r)}return n[o].exports}for(var a="function"==typeof require&&require,o=0;o<r.length;o++)i(r[o]);return i}({1:[function(e,t,n){var r=e("util/"),i=Array.prototype.slice,a=Object.prototype.hasOwnProperty,o=t.exports=c;function s(e,t){return r.isUndefined(t)?""+t:r.isNumber(t)&&!isFinite(t)?t.toString():r.isFunction(t)||r.isRegExp(t)?t.toString():t}function u(e,t){return r.isString(e)?e.length<t?e:e.slice(0,t):e}function l(e,t,n,r,i){throw new o.AssertionError({message:n,actual:e,expected:t,operator:r,stackStartFunction:i})}function c(e,t){e||l(e,!0,t,"==",o.ok)}function f(e,t){if(e===t)return!0;if(r.isBuffer(e)&&r.isBuffer(t)){if(e.length!=t.length)return!1;for(var n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}return r.isDate(e)&&r.isDate(t)?e.getTime()===t.getTime():r.isRegExp(e)&&r.isRegExp(t)?e.source===t.source&&e.global===t.global&&e.multiline===t.multiline&&e.lastIndex===t.lastIndex&&e.ignoreCase===t.ignoreCase:r.isObject(e)||r.isObject(t)?function(e,t){if(r.isNullOrUndefined(e)||r.isNullOrUndefined(t))return!1;if(e.prototype!==t.prototype)return!1;if(r.isPrimitive(e)||r.isPrimitive(t))return e===t;var n=h(e),a=h(t);if(n&&!a||!n&&a)return!1;if(n)return e=i.call(e),t=i.call(t),f(e,t);var o,s,u=g(e),l=g(t);if(u.length!=l.length)return!1;for(u.sort(),l.sort(),s=u.length-1;s>=0;s--)if(u[s]!=l[s])return!1;for(s=u.length-1;s>=0;s--)if(o=u[s],!f(e[o],t[o]))return!1;return!0}(e,t):e==t}function h(e){return"[object Arguments]"==Object.prototype.toString.call(e)}function p(e,t){return!(!e||!t)&&("[object RegExp]"==Object.prototype.toString.call(t)?t.test(e):e instanceof t||!0===t.call({},e))}function d(e,t,n,i){var a;r.isString(n)&&(i=n,n=null);try{t()}catch(e){a=e}if(i=(n&&n.name?" ("+n.name+").":".")+(i?" "+i:"."),e&&!a&&l(a,n,"Missing expected exception"+i),!e&&p(a,n)&&l(a,n,"Got unwanted exception"+i),e&&a&&n&&!p(a,n)||!e&&a)throw a}o.AssertionError=function(e){var t;this.name="AssertionError",this.actual=e.actual,this.expected=e.expected,this.operator=e.operator,e.message?(this.message=e.message,this.generatedMessage=!1):(this.message=(t=this,u(JSON.stringify(t.actual,s),128)+" "+t.operator+" "+u(JSON.stringify(t.expected,s),128)),this.generatedMessage=!0);var n=e.stackStartFunction||l;if(Error.captureStackTrace)Error.captureStackTrace(this,n);else{var r=new Error;if(r.stack){var i=r.stack,a=n.name,o=i.indexOf("\n"+a);if(o>=0){var c=i.indexOf("\n",o+1);i=i.substring(c+1)}this.stack=i}}},r.inherits(o.AssertionError,Error),o.fail=l,o.ok=c,o.equal=function(e,t,n){e!=t&&l(e,t,n,"==",o.equal)},o.notEqual=function(e,t,n){e==t&&l(e,t,n,"!=",o.notEqual)},o.deepEqual=function(e,t,n){f(e,t)||l(e,t,n,"deepEqual",o.deepEqual)},o.notDeepEqual=function(e,t,n){f(e,t)&&l(e,t,n,"notDeepEqual",o.notDeepEqual)},o.strictEqual=function(e,t,n){e!==t&&l(e,t,n,"===",o.strictEqual)},o.notStrictEqual=function(e,t,n){e===t&&l(e,t,n,"!==",o.notStrictEqual)},o.throws=function(e,t,n){d.apply(this,[!0].concat(i.call(arguments)))},o.doesNotThrow=function(e,t){d.apply(this,[!1].concat(i.call(arguments)))},o.ifError=function(e){if(e)throw e};var g=Object.keys||function(e){var t=[];for(var n in e)a.call(e,n)&&t.push(n);return t}},{"util/":132}],2:[function(e,t,n){"use strict";n.byteLength=function(e){return 3*e.length/4-l(e)},n.toByteArray=function(e){var t,n,r,o,s,u,c=e.length;s=l(e),u=new a(3*c/4-s),r=s>0?c-4:c;var f=0;for(t=0,n=0;t<r;t+=4,n+=3)o=i[e.charCodeAt(t)]<<18|i[e.charCodeAt(t+1)]<<12|i[e.charCodeAt(t+2)]<<6|i[e.charCodeAt(t+3)],u[f++]=o>>16&255,u[f++]=o>>8&255,u[f++]=255&o;2===s?(o=i[e.charCodeAt(t)]<<2|i[e.charCodeAt(t+1)]>>4,u[f++]=255&o):1===s&&(o=i[e.charCodeAt(t)]<<10|i[e.charCodeAt(t+1)]<<4|i[e.charCodeAt(t+2)]>>2,u[f++]=o>>8&255,u[f++]=255&o);return u},n.fromByteArray=function(e){for(var t,n=e.length,i=n%3,a="",o=[],s=0,u=n-i;s<u;s+=16383)o.push(c(e,s,s+16383>u?u:s+16383));1===i?(t=e[n-1],a+=r[t>>2],a+=r[t<<4&63],a+="=="):2===i&&(t=(e[n-2]<<8)+e[n-1],a+=r[t>>10],a+=r[t>>4&63],a+=r[t<<2&63],a+="=");return o.push(a),o.join("")};for(var r=[],i=[],a="undefined"!=typeof Uint8Array?Uint8Array:Array,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0,u=o.length;s<u;++s)r[s]=o[s],i[o.charCodeAt(s)]=s;function l(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");return"="===e[t-2]?2:"="===e[t-1]?1:0}function c(e,t,n){for(var i,a,o=[],s=t;s<n;s+=3)i=(e[s]<<16)+(e[s+1]<<8)+e[s+2],o.push(r[(a=i)>>18&63]+r[a>>12&63]+r[a>>6&63]+r[63&a]);return o.join("")}i["-".charCodeAt(0)]=62,i["_".charCodeAt(0)]=63},{}],3:[function(e,t,n){"use strict";"use restrict";function r(e){var t=32;return(e&=-e)&&t--,65535&e&&(t-=16),16711935&e&&(t-=8),252645135&e&&(t-=4),858993459&e&&(t-=2),1431655765&e&&(t-=1),t}n.INT_BITS=32,n.INT_MAX=2147483647,n.INT_MIN=-1<<31,n.sign=function(e){return(e>0)-(e<0)},n.abs=function(e){var t=e>>31;return(e^t)-t},n.min=function(e,t){return t^(e^t)&-(e<t)},n.max=function(e,t){return e^(e^t)&-(e<t)},n.isPow2=function(e){return!(e&e-1||!e)},n.log2=function(e){var t,n;return t=(e>65535)<<4,t|=n=((e>>>=t)>255)<<3,t|=n=((e>>>=n)>15)<<2,(t|=n=((e>>>=n)>3)<<1)|(e>>>=n)>>1},n.log10=function(e){return e>=1e9?9:e>=1e8?8:e>=1e7?7:e>=1e6?6:e>=1e5?5:e>=1e4?4:e>=1e3?3:e>=100?2:e>=10?1:0},n.popCount=function(e){return 16843009*((e=(858993459&(e-=e>>>1&1431655765))+(e>>>2&858993459))+(e>>>4)&252645135)>>>24},n.countTrailingZeros=r,n.nextPow2=function(e){return e+=0===e,--e,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,(e|=e>>>16)+1},n.prevPow2=function(e){return e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,(e|=e>>>16)-(e>>>1)},n.parity=function(e){return e^=e>>>16,e^=e>>>8,e^=e>>>4,27030>>>(e&=15)&1};var i=new Array(256);!function(e){for(var t=0;t<256;++t){var n=t,r=t,i=7;for(n>>>=1;n;n>>>=1)r<<=1,r|=1&n,--i;e[t]=r<<i&255}}(i),n.reverse=function(e){return i[255&e]<<24|i[e>>>8&255]<<16|i[e>>>16&255]<<8|i[e>>>24&255]},n.interleave2=function(e,t){return(e=1431655765&((e=858993459&((e=252645135&((e=16711935&((e&=65535)|e<<8))|e<<4))|e<<2))|e<<1))|(t=1431655765&((t=858993459&((t=252645135&((t=16711935&((t&=65535)|t<<8))|t<<4))|t<<2))|t<<1))<<1},n.deinterleave2=function(e,t){return(e=65535&((e=16711935&((e=252645135&((e=858993459&((e=e>>>t&1431655765)|e>>>1))|e>>>2))|e>>>4))|e>>>16))<<16>>16},n.interleave3=function(e,t,n){return e=1227133513&((e=3272356035&((e=251719695&((e=4278190335&((e&=1023)|e<<16))|e<<8))|e<<4))|e<<2),(e|=(t=1227133513&((t=3272356035&((t=251719695&((t=4278190335&((t&=1023)|t<<16))|t<<8))|t<<4))|t<<2))<<1)|(n=1227133513&((n=3272356035&((n=251719695&((n=4278190335&((n&=1023)|n<<16))|n<<8))|n<<4))|n<<2))<<2},n.deinterleave3=function(e,t){return(e=1023&((e=4278190335&((e=251719695&((e=3272356035&((e=e>>>t&1227133513)|e>>>2))|e>>>4))|e>>>8))|e>>>16))<<22>>22},n.nextCombination=function(e){var t=e|e-1;return t+1|(~t&-~t)-1>>>r(e)+1}},{}],4:[function(e,t,n){},{}],5:[function(e,t,n){(function(t,r){var i=e("pako/lib/zlib/messages"),a=e("pako/lib/zlib/zstream"),o=e("pako/lib/zlib/deflate.js"),s=e("pako/lib/zlib/inflate.js"),u=e("pako/lib/zlib/constants");for(var l in u)n[l]=u[l];function c(e){if(e<n.DEFLATE||e>n.UNZIP)throw new TypeError("Bad argument");this.mode=e,this.init_done=!1,this.write_in_progress=!1,this.pending_close=!1,this.windowBits=0,this.level=0,this.memLevel=0,this.strategy=0,this.dictionary=null}function f(e,t){for(var n=0;n<e.length;n++)this[t+n]=e[n]}n.NONE=0,n.DEFLATE=1,n.INFLATE=2,n.GZIP=3,n.GUNZIP=4,n.DEFLATERAW=5,n.INFLATERAW=6,n.UNZIP=7,c.prototype.init=function(e,t,r,i,u){switch(this.windowBits=e,this.level=t,this.memLevel=r,this.strategy=i,this.mode!==n.GZIP&&this.mode!==n.GUNZIP||(this.windowBits+=16),this.mode===n.UNZIP&&(this.windowBits+=32),this.mode!==n.DEFLATERAW&&this.mode!==n.INFLATERAW||(this.windowBits=-this.windowBits),this.strm=new a,this.mode){case n.DEFLATE:case n.GZIP:case n.DEFLATERAW:var l=o.deflateInit2(this.strm,this.level,n.Z_DEFLATED,this.windowBits,this.memLevel,this.strategy);break;case n.INFLATE:case n.GUNZIP:case n.INFLATERAW:case n.UNZIP:l=s.inflateInit2(this.strm,this.windowBits);break;default:throw new Error("Unknown mode "+this.mode)}l===n.Z_OK?(this.write_in_progress=!1,this.init_done=!0):this._error(l)},c.prototype.params=function(){throw new Error("deflateParams Not supported")},c.prototype._writeCheck=function(){if(!this.init_done)throw new Error("write before init");if(this.mode===n.NONE)throw new Error("already finalized");if(this.write_in_progress)throw new Error("write already in progress");if(this.pending_close)throw new Error("close is pending")},c.prototype.write=function(e,n,r,i,a,o,s){this._writeCheck(),this.write_in_progress=!0;var u=this;return t.nextTick(function(){u.write_in_progress=!1;var t=u._write(e,n,r,i,a,o,s);u.callback(t[0],t[1]),u.pending_close&&u.close()}),this},c.prototype.writeSync=function(e,t,n,r,i,a,o){return this._writeCheck(),this._write(e,t,n,r,i,a,o)},c.prototype._write=function(e,t,i,a,u,l,c){if(this.write_in_progress=!0,e!==n.Z_NO_FLUSH&&e!==n.Z_PARTIAL_FLUSH&&e!==n.Z_SYNC_FLUSH&&e!==n.Z_FULL_FLUSH&&e!==n.Z_FINISH&&e!==n.Z_BLOCK)throw new Error("Invalid flush value");null==t&&(t=new r(0),a=0,i=0),u._set?u.set=u._set:u.set=f;var h=this.strm;switch(h.avail_in=a,h.input=t,h.next_in=i,h.avail_out=c,h.output=u,h.next_out=l,this.mode){case n.DEFLATE:case n.GZIP:case n.DEFLATERAW:var p=o.deflate(h,e);break;case n.UNZIP:case n.INFLATE:case n.GUNZIP:case n.INFLATERAW:p=s.inflate(h,e);break;default:throw new Error("Unknown mode "+this.mode)}return p!==n.Z_STREAM_END&&p!==n.Z_OK&&this._error(p),this.write_in_progress=!1,[h.avail_in,h.avail_out]},c.prototype.close=function(){this.write_in_progress?this.pending_close=!0:(this.pending_close=!1,this.mode===n.DEFLATE||this.mode===n.GZIP||this.mode===n.DEFLATERAW?o.deflateEnd(this.strm):s.inflateEnd(this.strm),this.mode=n.NONE)},c.prototype.reset=function(){switch(this.mode){case n.DEFLATE:case n.DEFLATERAW:var e=o.deflateReset(this.strm);break;case n.INFLATE:case n.INFLATERAW:e=s.inflateReset(this.strm)}e!==n.Z_OK&&this._error(e)},c.prototype._error=function(e){this.onerror(i[e]+": "+this.strm.msg,e),this.write_in_progress=!1,this.pending_close&&this.close()},n.Zlib=c}).call(this,e("_process"),e("buffer").Buffer)},{_process:105,buffer:8,"pako/lib/zlib/constants":73,"pako/lib/zlib/deflate.js":75,"pako/lib/zlib/inflate.js":77,"pako/lib/zlib/messages":79,"pako/lib/zlib/zstream":81}],6:[function(e,t,n){(function(t,r){var i=e("_stream_transform"),a=e("./binding"),o=e("util"),s=e("assert").ok;function u(e,t,n){var i=[],a=0;function o(){for(var t;null!==(t=e.read());)i.push(t),a+=t.length;e.once("readable",o)}function s(){var t=r.concat(i,a);i=[],n(null,t),e.close()}e.on("error",function(t){e.removeListener("end",s),e.removeListener("readable",o),n(t)}),e.on("end",s),e.end(t),o()}function l(e,t){if("string"==typeof t&&(t=new r(t)),!r.isBuffer(t))throw new TypeError("Not a string or buffer");var n=a.Z_FINISH;return e._processChunk(t,n)}function c(e){if(!(this instanceof c))return new c(e);m.call(this,e,a.DEFLATE)}function f(e){if(!(this instanceof f))return new f(e);m.call(this,e,a.INFLATE)}function h(e){if(!(this instanceof h))return new h(e);m.call(this,e,a.GZIP)}function p(e){if(!(this instanceof p))return new p(e);m.call(this,e,a.GUNZIP)}function d(e){if(!(this instanceof d))return new d(e);m.call(this,e,a.DEFLATERAW)}function g(e){if(!(this instanceof g))return new g(e);m.call(this,e,a.INFLATERAW)}function v(e){if(!(this instanceof v))return new v(e);m.call(this,e,a.UNZIP)}function m(e,t){if(this._opts=e=e||{},this._chunkSize=e.chunkSize||n.Z_DEFAULT_CHUNK,i.call(this,e),e.flush&&e.flush!==a.Z_NO_FLUSH&&e.flush!==a.Z_PARTIAL_FLUSH&&e.flush!==a.Z_SYNC_FLUSH&&e.flush!==a.Z_FULL_FLUSH&&e.flush!==a.Z_FINISH&&e.flush!==a.Z_BLOCK)throw new Error("Invalid flush flag: "+e.flush);if(this._flushFlag=e.flush||a.Z_NO_FLUSH,e.chunkSize&&(e.chunkSize<n.Z_MIN_CHUNK||e.chunkSize>n.Z_MAX_CHUNK))throw new Error("Invalid chunk size: "+e.chunkSize);if(e.windowBits&&(e.windowBits<n.Z_MIN_WINDOWBITS||e.windowBits>n.Z_MAX_WINDOWBITS))throw new Error("Invalid windowBits: "+e.windowBits);if(e.level&&(e.level<n.Z_MIN_LEVEL||e.level>n.Z_MAX_LEVEL))throw new Error("Invalid compression level: "+e.level);if(e.memLevel&&(e.memLevel<n.Z_MIN_MEMLEVEL||e.memLevel>n.Z_MAX_MEMLEVEL))throw new Error("Invalid memLevel: "+e.memLevel);if(e.strategy&&e.strategy!=n.Z_FILTERED&&e.strategy!=n.Z_HUFFMAN_ONLY&&e.strategy!=n.Z_RLE&&e.strategy!=n.Z_FIXED&&e.strategy!=n.Z_DEFAULT_STRATEGY)throw new Error("Invalid strategy: "+e.strategy);if(e.dictionary&&!r.isBuffer(e.dictionary))throw new Error("Invalid dictionary: it should be a Buffer instance");this._binding=new a.Zlib(t);var o=this;this._hadError=!1,this._binding.onerror=function(e,t){o._binding=null,o._hadError=!0;var r=new Error(e);r.errno=t,r.code=n.codes[t],o.emit("error",r)};var s=n.Z_DEFAULT_COMPRESSION;"number"==typeof e.level&&(s=e.level);var u=n.Z_DEFAULT_STRATEGY;"number"==typeof e.strategy&&(u=e.strategy),this._binding.init(e.windowBits||n.Z_DEFAULT_WINDOWBITS,s,e.memLevel||n.Z_DEFAULT_MEMLEVEL,u,e.dictionary),this._buffer=new r(this._chunkSize),this._offset=0,this._closed=!1,this._level=s,this._strategy=u,this.once("end",this.close)}a.Z_MIN_WINDOWBITS=8,a.Z_MAX_WINDOWBITS=15,a.Z_DEFAULT_WINDOWBITS=15,a.Z_MIN_CHUNK=64,a.Z_MAX_CHUNK=1/0,a.Z_DEFAULT_CHUNK=16384,a.Z_MIN_MEMLEVEL=1,a.Z_MAX_MEMLEVEL=9,a.Z_DEFAULT_MEMLEVEL=8,a.Z_MIN_LEVEL=-1,a.Z_MAX_LEVEL=9,a.Z_DEFAULT_LEVEL=a.Z_DEFAULT_COMPRESSION,Object.keys(a).forEach(function(e){e.match(/^Z/)&&(n[e]=a[e])}),n.codes={Z_OK:a.Z_OK,Z_STREAM_END:a.Z_STREAM_END,Z_NEED_DICT:a.Z_NEED_DICT,Z_ERRNO:a.Z_ERRNO,Z_STREAM_ERROR:a.Z_STREAM_ERROR,Z_DATA_ERROR:a.Z_DATA_ERROR,Z_MEM_ERROR:a.Z_MEM_ERROR,Z_BUF_ERROR:a.Z_BUF_ERROR,Z_VERSION_ERROR:a.Z_VERSION_ERROR},Object.keys(n.codes).forEach(function(e){n.codes[n.codes[e]]=e}),n.Deflate=c,n.Inflate=f,n.Gzip=h,n.Gunzip=p,n.DeflateRaw=d,n.InflateRaw=g,n.Unzip=v,n.createDeflate=function(e){return new c(e)},n.createInflate=function(e){return new f(e)},n.createDeflateRaw=function(e){return new d(e)},n.createInflateRaw=function(e){return new g(e)},n.createGzip=function(e){return new h(e)},n.createGunzip=function(e){return new p(e)},n.createUnzip=function(e){return new v(e)},n.deflate=function(e,t,n){return"function"==typeof t&&(n=t,t={}),u(new c(t),e,n)},n.deflateSync=function(e,t){return l(new c(t),e)},n.gzip=function(e,t,n){return"function"==typeof t&&(n=t,t={}),u(new h(t),e,n)},n.gzipSync=function(e,t){return l(new h(t),e)},n.deflateRaw=function(e,t,n){return"function"==typeof t&&(n=t,t={}),u(new d(t),e,n)},n.deflateRawSync=function(e,t){return l(new d(t),e)},n.unzip=function(e,t,n){return"function"==typeof t&&(n=t,t={}),u(new v(t),e,n)},n.unzipSync=function(e,t){return l(new v(t),e)},n.inflate=function(e,t,n){return"function"==typeof t&&(n=t,t={}),u(new f(t),e,n)},n.inflateSync=function(e,t){return l(new f(t),e)},n.gunzip=function(e,t,n){return"function"==typeof t&&(n=t,t={}),u(new p(t),e,n)},n.gunzipSync=function(e,t){return l(new p(t),e)},n.inflateRaw=function(e,t,n){return"function"==typeof t&&(n=t,t={}),u(new g(t),e,n)},n.inflateRawSync=function(e,t){return l(new g(t),e)},o.inherits(m,i),m.prototype.params=function(e,r,i){if(e<n.Z_MIN_LEVEL||e>n.Z_MAX_LEVEL)throw new RangeError("Invalid compression level: "+e);if(r!=n.Z_FILTERED&&r!=n.Z_HUFFMAN_ONLY&&r!=n.Z_RLE&&r!=n.Z_FIXED&&r!=n.Z_DEFAULT_STRATEGY)throw new TypeError("Invalid strategy: "+r);if(this._level!==e||this._strategy!==r){var o=this;this.flush(a.Z_SYNC_FLUSH,function(){o._binding.params(e,r),o._hadError||(o._level=e,o._strategy=r,i&&i())})}else t.nextTick(i)},m.prototype.reset=function(){return this._binding.reset()},m.prototype._flush=function(e){this._transform(new r(0),"",e)},m.prototype.flush=function(e,n){var i=this._writableState;if(("function"==typeof e||void 0===e&&!n)&&(n=e,e=a.Z_FULL_FLUSH),i.ended)n&&t.nextTick(n);else if(i.ending)n&&this.once("end",n);else if(i.needDrain){var o=this;this.once("drain",function(){o.flush(n)})}else this._flushFlag=e,this.write(new r(0),"",n)},m.prototype.close=function(e){if(e&&t.nextTick(e),!this._closed){this._closed=!0,this._binding.close();var n=this;t.nextTick(function(){n.emit("close")})}},m.prototype._transform=function(e,t,n){var i,o=this._writableState,s=(o.ending||o.ended)&&(!e||o.length===e.length);if(null===!e&&!r.isBuffer(e))return n(new Error("invalid input"));s?i=a.Z_FINISH:(i=this._flushFlag,e.length>=o.length&&(this._flushFlag=this._opts.flush||a.Z_NO_FLUSH));this._processChunk(e,i,n)},m.prototype._processChunk=function(e,t,n){var i=e&&e.length,a=this._chunkSize-this._offset,o=0,u=this,l="function"==typeof n;if(!l){var c,f=[],h=0;this.on("error",function(e){c=e});do{var p=this._binding.writeSync(t,e,o,i,this._buffer,this._offset,a)}while(!this._hadError&&v(p[0],p[1]));if(this._hadError)throw c;var d=r.concat(f,h);return this.close(),d}var g=this._binding.write(t,e,o,i,this._buffer,this._offset,a);function v(c,p){if(!u._hadError){var d=a-p;if(s(d>=0,"have should not go down"),d>0){var g=u._buffer.slice(u._offset,u._offset+d);u._offset+=d,l?u.push(g):(f.push(g),h+=g.length)}if((0===p||u._offset>=u._chunkSize)&&(a=u._chunkSize,u._offset=0,u._buffer=new r(u._chunkSize)),0===p){if(o+=i-c,i=c,!l)return!0;var m=u._binding.write(t,e,o,i,u._buffer,u._offset,u._chunkSize);return m.callback=v,void(m.buffer=e)}if(!l)return!1;n()}}g.buffer=e,g.callback=v},o.inherits(c,m),o.inherits(f,m),o.inherits(h,m),o.inherits(p,m),o.inherits(d,m),o.inherits(g,m),o.inherits(v,m)}).call(this,e("_process"),e("buffer").Buffer)},{"./binding":5,_process:105,_stream_transform:116,assert:1,buffer:8,util:132}],7:[function(e,t,n){arguments[4][4][0].apply(n,arguments)},{dup:4}],8:[function(e,t,n){(function(t){"use strict";var r=e("base64-js"),i=e("ieee754"),a=e("isarray");function o(){return u.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function s(e,t){if(o()<t)throw new RangeError("Invalid typed array length");return u.TYPED_ARRAY_SUPPORT?(e=new Uint8Array(t)).__proto__=u.prototype:(null===e&&(e=new u(t)),e.length=t),e}function u(e,t,n){if(!(u.TYPED_ARRAY_SUPPORT||this instanceof u))return new u(e,t,n);if("number"==typeof e){if("string"==typeof t)throw new Error("If encoding is specified then the first argument must be a string");return f(this,e)}return l(this,e,t,n)}function l(e,t,n,r){if("number"==typeof t)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer?function(e,t,n,r){if(t.byteLength,n<0||t.byteLength<n)throw new RangeError("'offset' is out of bounds");if(t.byteLength<n+(r||0))throw new RangeError("'length' is out of bounds");t=void 0===n&&void 0===r?new Uint8Array(t):void 0===r?new Uint8Array(t,n):new Uint8Array(t,n,r);u.TYPED_ARRAY_SUPPORT?(e=t).__proto__=u.prototype:e=h(e,t);return e}(e,t,n,r):"string"==typeof t?function(e,t,n){"string"==typeof n&&""!==n||(n="utf8");if(!u.isEncoding(n))throw new TypeError('"encoding" must be a valid string encoding');var r=0|d(t,n),i=(e=s(e,r)).write(t,n);i!==r&&(e=e.slice(0,i));return e}(e,t,n):function(e,t){if(u.isBuffer(t)){var n=0|p(t.length);return 0===(e=s(e,n)).length?e:(t.copy(e,0,0,n),e)}if(t){if("undefined"!=typeof ArrayBuffer&&t.buffer instanceof ArrayBuffer||"length"in t)return"number"!=typeof t.length||(r=t.length)!=r?s(e,0):h(e,t);if("Buffer"===t.type&&a(t.data))return h(e,t.data)}var r;throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(e,t)}function c(e){if("number"!=typeof e)throw new TypeError('"size" argument must be a number');if(e<0)throw new RangeError('"size" argument must not be negative')}function f(e,t){if(c(t),e=s(e,t<0?0:0|p(t)),!u.TYPED_ARRAY_SUPPORT)for(var n=0;n<t;++n)e[n]=0;return e}function h(e,t){var n=t.length<0?0:0|p(t.length);e=s(e,n);for(var r=0;r<n;r+=1)e[r]=255&t[r];return e}function p(e){if(e>=o())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+o().toString(16)+" bytes");return 0|e}function d(e,t){if(u.isBuffer(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var n=e.length;if(0===n)return 0;for(var r=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return F(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return U(e).length;default:if(r)return F(e).length;t=(""+t).toLowerCase(),r=!0}}function g(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function v(e,t,n,r,i){if(0===e.length)return-1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=i?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(i)return-1;n=e.length-1}else if(n<0){if(!i)return-1;n=0}if("string"==typeof t&&(t=u.from(t,r)),u.isBuffer(t))return 0===t.length?-1:m(e,t,n,r,i);if("number"==typeof t)return t&=255,u.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):m(e,[t],n,r,i);throw new TypeError("val must be string, number or Buffer")}function m(e,t,n,r,i){var a,o=1,s=e.length,u=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;o=2,s/=2,u/=2,n/=2}function l(e,t){return 1===o?e[t]:e.readUInt16BE(t*o)}if(i){var c=-1;for(a=n;a<s;a++)if(l(e,a)===l(t,-1===c?0:a-c)){if(-1===c&&(c=a),a-c+1===u)return c*o}else-1!==c&&(a-=a-c),c=-1}else for(n+u>s&&(n=s-u),a=n;a>=0;a--){for(var f=!0,h=0;h<u;h++)if(l(e,a+h)!==l(t,h)){f=!1;break}if(f)return a}return-1}function w(e,t,n,r){n=Number(n)||0;var i=e.length-n;r?(r=Number(r))>i&&(r=i):r=i;var a=t.length;if(a%2!=0)throw new TypeError("Invalid hex string");r>a/2&&(r=a/2);for(var o=0;o<r;++o){var s=parseInt(t.substr(2*o,2),16);if(isNaN(s))return o;e[n+o]=s}return o}function y(e,t,n,r){return q(F(t,e.length-n),e,n,r)}function _(e,t,n,r){return q(function(e){for(var t=[],n=0;n<e.length;++n)t.push(255&e.charCodeAt(n));return t}(t),e,n,r)}function b(e,t,n,r){return _(e,t,n,r)}function x(e,t,n,r){return q(U(t),e,n,r)}function k(e,t,n,r){return q(function(e,t){for(var n,r,i,a=[],o=0;o<e.length&&!((t-=2)<0);++o)n=e.charCodeAt(o),r=n>>8,i=n%256,a.push(i),a.push(r);return a}(t,e.length-n),e,n,r)}function E(e,t,n){return 0===t&&n===e.length?r.fromByteArray(e):r.fromByteArray(e.slice(t,n))}function T(e,t,n){n=Math.min(e.length,n);for(var r=[],i=t;i<n;){var a,o,s,u,l=e[i],c=null,f=l>239?4:l>223?3:l>191?2:1;if(i+f<=n)switch(f){case 1:l<128&&(c=l);break;case 2:128==(192&(a=e[i+1]))&&(u=(31&l)<<6|63&a)>127&&(c=u);break;case 3:a=e[i+1],o=e[i+2],128==(192&a)&&128==(192&o)&&(u=(15&l)<<12|(63&a)<<6|63&o)>2047&&(u<55296||u>57343)&&(c=u);break;case 4:a=e[i+1],o=e[i+2],s=e[i+3],128==(192&a)&&128==(192&o)&&128==(192&s)&&(u=(15&l)<<18|(63&a)<<12|(63&o)<<6|63&s)>65535&&u<1114112&&(c=u)}null===c?(c=65533,f=1):c>65535&&(c-=65536,r.push(c>>>10&1023|55296),c=56320|1023&c),r.push(c),i+=f}return function(e){var t=e.length;if(t<=A)return String.fromCharCode.apply(String,e);var n="",r=0;for(;r<t;)n+=String.fromCharCode.apply(String,e.slice(r,r+=A));return n}(r)}n.Buffer=u,n.SlowBuffer=function(e){+e!=e&&(e=0);return u.alloc(+e)},n.INSPECT_MAX_BYTES=50,u.TYPED_ARRAY_SUPPORT=void 0!==t.TYPED_ARRAY_SUPPORT?t.TYPED_ARRAY_SUPPORT:function(){try{var e=new Uint8Array(1);return e.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===e.foo()&&"function"==typeof e.subarray&&0===e.subarray(1,1).byteLength}catch(e){return!1}}(),n.kMaxLength=o(),u.poolSize=8192,u._augment=function(e){return e.__proto__=u.prototype,e},u.from=function(e,t,n){return l(null,e,t,n)},u.TYPED_ARRAY_SUPPORT&&(u.prototype.__proto__=Uint8Array.prototype,u.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&u[Symbol.species]===u&&Object.defineProperty(u,Symbol.species,{value:null,configurable:!0})),u.alloc=function(e,t,n){return function(e,t,n,r){return c(t),t<=0?s(e,t):void 0!==n?"string"==typeof r?s(e,t).fill(n,r):s(e,t).fill(n):s(e,t)}(null,e,t,n)},u.allocUnsafe=function(e){return f(null,e)},u.allocUnsafeSlow=function(e){return f(null,e)},u.isBuffer=function(e){return!(null==e||!e._isBuffer)},u.compare=function(e,t){if(!u.isBuffer(e)||!u.isBuffer(t))throw new TypeError("Arguments must be Buffers");if(e===t)return 0;for(var n=e.length,r=t.length,i=0,a=Math.min(n,r);i<a;++i)if(e[i]!==t[i]){n=e[i],r=t[i];break}return n<r?-1:r<n?1:0},u.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},u.concat=function(e,t){if(!a(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return u.alloc(0);var n;if(void 0===t)for(t=0,n=0;n<e.length;++n)t+=e[n].length;var r=u.allocUnsafe(t),i=0;for(n=0;n<e.length;++n){var o=e[n];if(!u.isBuffer(o))throw new TypeError('"list" argument must be an Array of Buffers');o.copy(r,i),i+=o.length}return r},u.byteLength=d,u.prototype._isBuffer=!0,u.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)g(this,t,t+1);return this},u.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)g(this,t,t+3),g(this,t+1,t+2);return this},u.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)g(this,t,t+7),g(this,t+1,t+6),g(this,t+2,t+5),g(this,t+3,t+4);return this},u.prototype.toString=function(){var e=0|this.length;return 0===e?"":0===arguments.length?T(this,0,e):function(e,t,n){var r=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return M(this,t,n);case"utf8":case"utf-8":return T(this,t,n);case"ascii":return S(this,t,n);case"latin1":case"binary":return C(this,t,n);case"base64":return E(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return R(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}.apply(this,arguments)},u.prototype.equals=function(e){if(!u.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===u.compare(this,e)},u.prototype.inspect=function(){var e="",t=n.INSPECT_MAX_BYTES;return this.length>0&&(e=this.toString("hex",0,t).match(/.{2}/g).join(" "),this.length>t&&(e+=" ... ")),"<Buffer "+e+">"},u.prototype.compare=function(e,t,n,r,i){if(!u.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===i&&(i=this.length),t<0||n>e.length||r<0||i>this.length)throw new RangeError("out of range index");if(r>=i&&t>=n)return 0;if(r>=i)return-1;if(t>=n)return 1;if(t>>>=0,n>>>=0,r>>>=0,i>>>=0,this===e)return 0;for(var a=i-r,o=n-t,s=Math.min(a,o),l=this.slice(r,i),c=e.slice(t,n),f=0;f<s;++f)if(l[f]!==c[f]){a=l[f],o=c[f];break}return a<o?-1:o<a?1:0},u.prototype.includes=function(e,t,n){return-1!==this.indexOf(e,t,n)},u.prototype.indexOf=function(e,t,n){return v(this,e,t,n,!0)},u.prototype.lastIndexOf=function(e,t,n){return v(this,e,t,n,!1)},u.prototype.write=function(e,t,n,r){if(void 0===t)r="utf8",n=this.length,t=0;else if(void 0===n&&"string"==typeof t)r=t,n=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t|=0,isFinite(n)?(n|=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}var i=this.length-t;if((void 0===n||n>i)&&(n=i),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var a=!1;;)switch(r){case"hex":return w(this,e,t,n);case"utf8":case"utf-8":return y(this,e,t,n);case"ascii":return _(this,e,t,n);case"latin1":case"binary":return b(this,e,t,n);case"base64":return x(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return k(this,e,t,n);default:if(a)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),a=!0}},u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var A=4096;function S(e,t,n){var r="";n=Math.min(e.length,n);for(var i=t;i<n;++i)r+=String.fromCharCode(127&e[i]);return r}function C(e,t,n){var r="";n=Math.min(e.length,n);for(var i=t;i<n;++i)r+=String.fromCharCode(e[i]);return r}function M(e,t,n){var r=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>r)&&(n=r);for(var i="",a=t;a<n;++a)i+=z(e[a]);return i}function R(e,t,n){for(var r=e.slice(t,n),i="",a=0;a<r.length;a+=2)i+=String.fromCharCode(r[a]+256*r[a+1]);return i}function j(e,t,n){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(e+t>n)throw new RangeError("Trying to access beyond buffer length")}function L(e,t,n,r,i,a){if(!u.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||t<a)throw new RangeError('"value" argument is out of bounds');if(n+r>e.length)throw new RangeError("Index out of range")}function I(e,t,n,r){t<0&&(t=65535+t+1);for(var i=0,a=Math.min(e.length-n,2);i<a;++i)e[n+i]=(t&255<<8*(r?i:1-i))>>>8*(r?i:1-i)}function B(e,t,n,r){t<0&&(t=4294967295+t+1);for(var i=0,a=Math.min(e.length-n,4);i<a;++i)e[n+i]=t>>>8*(r?i:3-i)&255}function D(e,t,n,r,i,a){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function N(e,t,n,r,a){return a||D(e,0,n,4),i.write(e,t,n,r,23,4),n+4}function O(e,t,n,r,a){return a||D(e,0,n,8),i.write(e,t,n,r,52,8),n+8}u.prototype.slice=function(e,t){var n,r=this.length;if(e=~~e,t=void 0===t?r:~~t,e<0?(e+=r)<0&&(e=0):e>r&&(e=r),t<0?(t+=r)<0&&(t=0):t>r&&(t=r),t<e&&(t=e),u.TYPED_ARRAY_SUPPORT)(n=this.subarray(e,t)).__proto__=u.prototype;else{var i=t-e;n=new u(i,void 0);for(var a=0;a<i;++a)n[a]=this[a+e]}return n},u.prototype.readUIntLE=function(e,t,n){e|=0,t|=0,n||j(e,t,this.length);for(var r=this[e],i=1,a=0;++a<t&&(i*=256);)r+=this[e+a]*i;return r},u.prototype.readUIntBE=function(e,t,n){e|=0,t|=0,n||j(e,t,this.length);for(var r=this[e+--t],i=1;t>0&&(i*=256);)r+=this[e+--t]*i;return r},u.prototype.readUInt8=function(e,t){return t||j(e,1,this.length),this[e]},u.prototype.readUInt16LE=function(e,t){return t||j(e,2,this.length),this[e]|this[e+1]<<8},u.prototype.readUInt16BE=function(e,t){return t||j(e,2,this.length),this[e]<<8|this[e+1]},u.prototype.readUInt32LE=function(e,t){return t||j(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},u.prototype.readUInt32BE=function(e,t){return t||j(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},u.prototype.readIntLE=function(e,t,n){e|=0,t|=0,n||j(e,t,this.length);for(var r=this[e],i=1,a=0;++a<t&&(i*=256);)r+=this[e+a]*i;return r>=(i*=128)&&(r-=Math.pow(2,8*t)),r},u.prototype.readIntBE=function(e,t,n){e|=0,t|=0,n||j(e,t,this.length);for(var r=t,i=1,a=this[e+--r];r>0&&(i*=256);)a+=this[e+--r]*i;return a>=(i*=128)&&(a-=Math.pow(2,8*t)),a},u.prototype.readInt8=function(e,t){return t||j(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},u.prototype.readInt16LE=function(e,t){t||j(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},u.prototype.readInt16BE=function(e,t){t||j(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},u.prototype.readInt32LE=function(e,t){return t||j(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},u.prototype.readInt32BE=function(e,t){return t||j(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},u.prototype.readFloatLE=function(e,t){return t||j(e,4,this.length),i.read(this,e,!0,23,4)},u.prototype.readFloatBE=function(e,t){return t||j(e,4,this.length),i.read(this,e,!1,23,4)},u.prototype.readDoubleLE=function(e,t){return t||j(e,8,this.length),i.read(this,e,!0,52,8)},u.prototype.readDoubleBE=function(e,t){return t||j(e,8,this.length),i.read(this,e,!1,52,8)},u.prototype.writeUIntLE=function(e,t,n,r){(e=+e,t|=0,n|=0,r)||L(this,e,t,n,Math.pow(2,8*n)-1,0);var i=1,a=0;for(this[t]=255&e;++a<n&&(i*=256);)this[t+a]=e/i&255;return t+n},u.prototype.writeUIntBE=function(e,t,n,r){(e=+e,t|=0,n|=0,r)||L(this,e,t,n,Math.pow(2,8*n)-1,0);var i=n-1,a=1;for(this[t+i]=255&e;--i>=0&&(a*=256);)this[t+i]=e/a&255;return t+n},u.prototype.writeUInt8=function(e,t,n){return e=+e,t|=0,n||L(this,e,t,1,255,0),u.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},u.prototype.writeUInt16LE=function(e,t,n){return e=+e,t|=0,n||L(this,e,t,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):I(this,e,t,!0),t+2},u.prototype.writeUInt16BE=function(e,t,n){return e=+e,t|=0,n||L(this,e,t,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):I(this,e,t,!1),t+2},u.prototype.writeUInt32LE=function(e,t,n){return e=+e,t|=0,n||L(this,e,t,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):B(this,e,t,!0),t+4},u.prototype.writeUInt32BE=function(e,t,n){return e=+e,t|=0,n||L(this,e,t,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):B(this,e,t,!1),t+4},u.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t|=0,!r){var i=Math.pow(2,8*n-1);L(this,e,t,n,i-1,-i)}var a=0,o=1,s=0;for(this[t]=255&e;++a<n&&(o*=256);)e<0&&0===s&&0!==this[t+a-1]&&(s=1),this[t+a]=(e/o>>0)-s&255;return t+n},u.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t|=0,!r){var i=Math.pow(2,8*n-1);L(this,e,t,n,i-1,-i)}var a=n-1,o=1,s=0;for(this[t+a]=255&e;--a>=0&&(o*=256);)e<0&&0===s&&0!==this[t+a+1]&&(s=1),this[t+a]=(e/o>>0)-s&255;return t+n},u.prototype.writeInt8=function(e,t,n){return e=+e,t|=0,n||L(this,e,t,1,127,-128),u.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},u.prototype.writeInt16LE=function(e,t,n){return e=+e,t|=0,n||L(this,e,t,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):I(this,e,t,!0),t+2},u.prototype.writeInt16BE=function(e,t,n){return e=+e,t|=0,n||L(this,e,t,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):I(this,e,t,!1),t+2},u.prototype.writeInt32LE=function(e,t,n){return e=+e,t|=0,n||L(this,e,t,4,2147483647,-2147483648),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):B(this,e,t,!0),t+4},u.prototype.writeInt32BE=function(e,t,n){return e=+e,t|=0,n||L(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):B(this,e,t,!1),t+4},u.prototype.writeFloatLE=function(e,t,n){return N(this,e,t,!0,n)},u.prototype.writeFloatBE=function(e,t,n){return N(this,e,t,!1,n)},u.prototype.writeDoubleLE=function(e,t,n){return O(this,e,t,!0,n)},u.prototype.writeDoubleBE=function(e,t,n){return O(this,e,t,!1,n)},u.prototype.copy=function(e,t,n,r){if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r<n&&(r=n),r===n)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t<r-n&&(r=e.length-t+n);var i,a=r-n;if(this===e&&n<t&&t<r)for(i=a-1;i>=0;--i)e[i+t]=this[i+n];else if(a<1e3||!u.TYPED_ARRAY_SUPPORT)for(i=0;i<a;++i)e[i+t]=this[i+n];else Uint8Array.prototype.set.call(e,this.subarray(n,n+a),t);return a},u.prototype.fill=function(e,t,n,r){if("string"==typeof e){if("string"==typeof t?(r=t,t=0,n=this.length):"string"==typeof n&&(r=n,n=this.length),1===e.length){var i=e.charCodeAt(0);i<256&&(e=i)}if(void 0!==r&&"string"!=typeof r)throw new TypeError("encoding must be a string");if("string"==typeof r&&!u.isEncoding(r))throw new TypeError("Unknown encoding: "+r)}else"number"==typeof e&&(e&=255);if(t<0||this.length<t||this.length<n)throw new RangeError("Out of range index");if(n<=t)return this;var a;if(t>>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(a=t;a<n;++a)this[a]=e;else{var o=u.isBuffer(e)?e:F(new u(e,r).toString()),s=o.length;for(a=0;a<n-t;++a)this[a+t]=o[a%s]}return this};var P=/[^+\/0-9A-Za-z-_]/g;function z(e){return e<16?"0"+e.toString(16):e.toString(16)}function F(e,t){var n;t=t||1/0;for(var r=e.length,i=null,a=[],o=0;o<r;++o){if((n=e.charCodeAt(o))>55295&&n<57344){if(!i){if(n>56319){(t-=3)>-1&&a.push(239,191,189);continue}if(o+1===r){(t-=3)>-1&&a.push(239,191,189);continue}i=n;continue}if(n<56320){(t-=3)>-1&&a.push(239,191,189),i=n;continue}n=65536+(i-55296<<10|n-56320)}else i&&(t-=3)>-1&&a.push(239,191,189);if(i=null,n<128){if((t-=1)<0)break;a.push(n)}else if(n<2048){if((t-=2)<0)break;a.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;a.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;a.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return a}function U(e){return r.toByteArray(function(e){if((e=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}(e).replace(P,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function q(e,t,n,r){for(var i=0;i<r&&!(i+n>=t.length||i>=e.length);++i)t[i+n]=e[i];return i}}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"base64-js":2,ieee754:51,isarray:9}],9:[function(e,t,n){var r={}.toString;t.exports=Array.isArray||function(e){return"[object Array]"==r.call(e)}},{}],10:[function(e,t,n){(function(t){"use strict";var r=e("buffer"),i=r.Buffer,a=r.SlowBuffer,o=r.kMaxLength||2147483647;n.alloc=function(e,t,n){if("function"==typeof i.alloc)return i.alloc(e,t,n);if("number"==typeof n)throw new TypeError("encoding must not be number");if("number"!=typeof e)throw new TypeError("size must be a number");if(e>o)throw new RangeError("size is too large");var r=n,a=t;void 0===a&&(r=void 0,a=0);var s=new i(e);if("string"==typeof a)for(var u=new i(a,r),l=u.length,c=-1;++c<e;)s[c]=u[c%l];else s.fill(a);return s},n.allocUnsafe=function(e){if("function"==typeof i.allocUnsafe)return i.allocUnsafe(e);if("number"!=typeof e)throw new TypeError("size must be a number");if(e>o)throw new RangeError("size is too large");return new i(e)},n.from=function(e,n,r){if("function"==typeof i.from&&(!t.Uint8Array||Uint8Array.from!==i.from))return i.from(e,n,r);if("number"==typeof e)throw new TypeError('"value" argument must not be a number');if("string"==typeof e)return new i(e,n);if("undefined"!=typeof ArrayBuffer&&e instanceof ArrayBuffer){var a=n;if(1===arguments.length)return new i(e);void 0===a&&(a=0);var o=r;if(void 0===o&&(o=e.byteLength-a),a>=e.byteLength)throw new RangeError("'offset' is out of bounds");if(o>e.byteLength-a)throw new RangeError("'length' is out of bounds");return new i(e.slice(a,a+o))}if(i.isBuffer(e)){var s=new i(e.length);return e.copy(s,0,0,e.length),s}if(e){if(Array.isArray(e)||"undefined"!=typeof ArrayBuffer&&e.buffer instanceof ArrayBuffer||"length"in e)return new i(e);if("Buffer"===e.type&&Array.isArray(e.data))return new i(e.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")},n.allocUnsafeSlow=function(e){if("function"==typeof i.allocUnsafeSlow)return i.allocUnsafeSlow(e);if("number"!=typeof e)throw new TypeError("size must be a number");if(e>=o)throw new RangeError("size is too large");return new a(e)}}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{buffer:8}],11:[function(e,t,n){(function(n){var r=e("tty"),i=e("./lib/encode"),a=e("stream").Stream,o=t.exports=function(){var e=null;function t(t){if(e)throw new Error("multiple inputs specified");e=t}var i=null;function a(e){if(i)throw new Error("multiple outputs specified");i=e}for(var o=0;o<arguments.length;o++){var u=arguments[o];u&&(u.readable?t(u):(u.stdin||u.input)&&t(u.stdin||u.input),u.writable?a(u):(u.stdout||u.output)&&a(u.stdout||u.output))}e&&"number"==typeof e.fd&&r.isatty(e.fd)&&(n.stdin.setRawMode?n.stdin.setRawMode(!0):r.setRawMode(!0));var l=new s;return e&&e.pipe(l),i&&l.pipe(i),l.once("^C",n.exit),l.once("end",function(){e&&("number"==typeof e.fd&&r.isatty(e.fd)&&(n.stdin.setRawMode?n.stdin.setRawMode(!1):r.setRawMode(!1)),e.destroy())}),l},s=o.Charm=function(){this.writable=!0,this.readable=!0,this.pending=[]};s.prototype=new a,s.prototype.write=function(e){if(this.pending.length){for(var t=u(e),n=!1,r=0;r<t.length;r++)for(var i=0;i<this.pending.length;i++){if((0,this.pending[i])(t[r])){n=!0,this.pending.splice(i,1);break}}if(n)return}return 1===e.length&&(3===e[0]&&this.emit("^C"),4===e[0]&&this.emit("^D")),this.emit("data",e),this},s.prototype.destroy=function(){this.end()},s.prototype.end=function(e){e&&this.write(e),this.emit("end")},s.prototype.reset=function(e){return this.write(i("c")),this},s.prototype.position=function(e,t){if("function"==typeof e){var n=e;this.pending.push(function(e){if(27===e[0]&&e[1]===i.ord("[")&&e[e.length-1]===i.ord("R")){var t=e.toString().slice(2,-1).split(";").map(Number);return n(t[1],t[0]),!0}}),this.write(i("[6n"))}else this.write(i("["+Math.floor(t)+";"+Math.floor(e)+"f"));return this},s.prototype.move=function(e,t){return t<0?this.up(-t):t>0&&this.down(t),e>0?this.right(e):e<0&&this.left(-e),this},s.prototype.up=function(e){return void 0===e&&(e=1),this.write(i("["+Math.floor(e)+"A")),this},s.prototype.down=function(e){return void 0===e&&(e=1),this.write(i("["+Math.floor(e)+"B")),this},s.prototype.right=function(e){return void 0===e&&(e=1),this.write(i("["+Math.floor(e)+"C")),this},s.prototype.left=function(e){return void 0===e&&(e=1),this.write(i("["+Math.floor(e)+"D")),this},s.prototype.column=function(e){return this.write(i("["+Math.floor(e)+"G")),this},s.prototype.push=function(e){return this.write(i(e?"7":"[s")),this},s.prototype.pop=function(e){return this.write(i(e?"8":"[u")),this},s.prototype.erase=function(e){return"end"===e||"$"===e?this.write(i("[K")):"start"===e||"^"===e?this.write(i("[1K")):"line"===e?this.write(i("[2K")):"down"===e?this.write(i("[J")):"up"===e?this.write(i("[1J")):"screen"===e?this.write(i("[1J")):this.emit("error",new Error("Unknown erase type: "+e)),this},s.prototype.display=function(e){var t={reset:0,bright:1,dim:2,underscore:4,blink:5,reverse:7,hidden:8}[e];return void 0===t&&this.emit("error",new Error("Unknown attribute: "+e)),this.write(i("["+t+"m")),this},s.prototype.foreground=function(e){if("number"==typeof e)(e<0||e>=256)&&this.emit("error",new Error("Color out of range: "+e)),this.write(i("[38;5;"+e+"m"));else{var t={black:30,red:31,green:32,yellow:33,blue:34,magenta:35,cyan:36,white:37}[e.toLowerCase()];t||this.emit("error",new Error("Unknown color: "+e)),this.write(i("["+t+"m"))}return this},s.prototype.background=function(e){if("number"==typeof e)(e<0||e>=256)&&this.emit("error",new Error("Color out of range: "+e)),this.write(i("[48;5;"+e+"m"));else{var t={black:40,red:41,green:42,yellow:43,blue:44,magenta:45,cyan:46,white:47}[e.toLowerCase()];t||this.emit("error",new Error("Unknown color: "+e)),this.write(i("["+t+"m"))}return this},s.prototype.cursor=function(e){return this.write(i(e?"[?25h":"[?25l")),this};var u=o.extractCodes=function(e){for(var t=[],n=-1,r=0;r<e.length;r++)27===e[r]?(n>=0&&t.push(e.slice(n,r)),n=r):n>=0&&r===e.length-1&&t.push(e.slice(n));return t}}).call(this,e("_process"))},{"./lib/encode":12,_process:105,stream:122,tty:125}],12:[function(e,t,n){(function(e){var n=(t.exports=function(t){return new e([27].concat(function e(t){return"string"==typeof t?t.split("").map(n):Array.isArray(t)?t.reduce(function(t,n){return t.concat(e(n))},[]):void 0}(t)))}).ord=function(e){return e.charCodeAt(0)}}).call(this,e("buffer").Buffer)},{buffer:8}],13:[function(e,t,n){(function(n){"use strict";var r=e("readable-stream").Readable,i=e("util");function a(e,t){if(!(this instanceof a))return new a(e,t);r.call(this,t),null!==e&&void 0!==e||(e=String(e)),this._obj=e}t.exports=a,i.inherits(a,r),a.prototype._read=function(e){var t=this._obj;"string"==typeof t?this.push(new n(t)):n.isBuffer(t)?this.push(t):this.push(new n(JSON.stringify(t))),this.push(null)}}).call(this,e("buffer").Buffer)},{buffer:8,"readable-stream":20,util:132}],14:[function(e,t,n){t.exports=Array.isArray||function(e){return"[object Array]"==Object.prototype.toString.call(e)}},{}],15:[function(e,t,n){(function(n){t.exports=s;var r=Object.keys||function(e){var t=[];for(var n in e)t.push(n);return t},i=e("core-util-is");i.inherits=e("inherits");var a=e("./_stream_readable"),o=e("./_stream_writable");function s(e){if(!(this instanceof s))return new s(e);a.call(this,e),o.call(this,e),e&&!1===e.readable&&(this.readable=!1),e&&!1===e.writable&&(this.writable=!1),this.allowHalfOpen=!0,e&&!1===e.allowHalfOpen&&(this.allowHalfOpen=!1),this.once("end",u)}function u(){this.allowHalfOpen||this._writableState.ended||n.nextTick(this.end.bind(this))}i.inherits(s,a),function(e,t){for(var n=0,r=e.length;n<r;n++)t(e[n],n)}(r(o.prototype),function(e){s.prototype[e]||(s.prototype[e]=o.prototype[e])})}).call(this,e("_process"))},{"./_stream_readable":17,"./_stream_writable":19,_process:105,"core-util-is":22,inherits:52}],16:[function(e,t,n){t.exports=a;var r=e("./_stream_transform"),i=e("core-util-is");function a(e){if(!(this instanceof a))return new a(e);r.call(this,e)}i.inherits=e("inherits"),i.inherits(a,r),a.prototype._transform=function(e,t,n){n(null,e)}},{"./_stream_transform":18,"core-util-is":22,inherits:52}],17:[function(e,t,n){(function(n){t.exports=c;var r=e("isarray"),i=e("buffer").Buffer;c.ReadableState=l;var a=e("events").EventEmitter;a.listenerCount||(a.listenerCount=function(e,t){return e.listeners(t).length});var o,s=e("stream"),u=e("core-util-is");function l(t,n){var r=(t=t||{}).highWaterMark;this.highWaterMark=r||0===r?r:16384,this.highWaterMark=~~this.highWaterMark,this.buffer=[],this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=!1,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.calledRead=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.objectMode=!!t.objectMode,this.defaultEncoding=t.defaultEncoding||"utf8",this.ranOut=!1,this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,t.encoding&&(o||(o=e("string_decoder/").StringDecoder),this.decoder=new o(t.encoding),this.encoding=t.encoding)}function c(e){if(!(this instanceof c))return new c(e);this._readableState=new l(e,this),this.readable=!0,s.call(this)}function f(e,t,r,a,o){var s=function(e,t){var n=null;i.isBuffer(t)||"string"==typeof t||null===t||void 0===t||e.objectMode||(n=new TypeError("Invalid non-string/buffer chunk"));return n}(t,r);if(s)e.emit("error",s);else if(null===r||void 0===r)t.reading=!1,t.ended||function(e,t){if(t.decoder&&!t.ended){var n=t.decoder.end();n&&n.length&&(t.buffer.push(n),t.length+=t.objectMode?1:n.length)}t.ended=!0,t.length>0?d(e):_(e)}(e,t);else if(t.objectMode||r&&r.length>0)if(t.ended&&!o){var u=new Error("stream.push() after EOF");e.emit("error",u)}else if(t.endEmitted&&o){u=new Error("stream.unshift() after end event");e.emit("error",u)}else!t.decoder||o||a||(r=t.decoder.write(r)),t.length+=t.objectMode?1:r.length,o?t.buffer.unshift(r):(t.reading=!1,t.buffer.push(r)),t.needReadable&&d(e),function(e,t){t.readingMore||(t.readingMore=!0,n.nextTick(function(){!function(e,t){var n=t.length;for(;!t.reading&&!t.flowing&&!t.ended&&t.length<t.highWaterMark&&(e.read(0),n!==t.length);)n=t.length;t.readingMore=!1}(e,t)}))}(e,t);else o||(t.reading=!1);return function(e){return!e.ended&&(e.needReadable||e.length<e.highWaterMark||0===e.length)}(t)}u.inherits=e("inherits"),u.inherits(c,s),c.prototype.push=function(e,t){var n=this._readableState;return"string"!=typeof e||n.objectMode||(t=t||n.defaultEncoding)!==n.encoding&&(e=new i(e,t),t=""),f(this,n,e,t,!1)},c.prototype.unshift=function(e){return f(this,this._readableState,e,"",!0)},c.prototype.setEncoding=function(t){o||(o=e("string_decoder/").StringDecoder),this._readableState.decoder=new o(t),this._readableState.encoding=t};var h=8388608;function p(e,t){return 0===t.length&&t.ended?0:t.objectMode?0===e?0:1:null===e||isNaN(e)?t.flowing&&t.buffer.length?t.buffer[0].length:t.length:e<=0?0:(e>t.highWaterMark&&(t.highWaterMark=function(e){if(e>=h)e=h;else{e--;for(var t=1;t<32;t<<=1)e|=e>>t;e++}return e}(e)),e>t.length?t.ended?t.length:(t.needReadable=!0,0):e)}function d(e){var t=e._readableState;t.needReadable=!1,t.emittedReadable||(t.emittedReadable=!0,t.sync?n.nextTick(function(){g(e)}):g(e))}function g(e){e.emit("readable")}function v(e){var t,n=e._readableState;function r(e,r,i){!1===e.write(t)&&n.awaitDrain++}for(n.awaitDrain=0;n.pipesCount&&null!==(t=e.read());)if(1===n.pipesCount?r(n.pipes):b(n.pipes,r),e.emit("data",t),n.awaitDrain>0)return;if(0===n.pipesCount)return n.flowing=!1,void(a.listenerCount(e,"data")>0&&w(e));n.ranOut=!0}function m(){this._readableState.ranOut&&(this._readableState.ranOut=!1,v(this))}function w(e,t){if(e._readableState.flowing)throw new Error("Cannot switch to old mode now.");var r=t||!1,i=!1;e.readable=!0,e.pipe=s.prototype.pipe,e.on=e.addListener=s.prototype.on,e.on("readable",function(){var t;for(i=!0;!r&&null!==(t=e.read());)e.emit("data",t);null===t&&(i=!1,e._readableState.needReadable=!0)}),e.pause=function(){r=!0,this.emit("pause")},e.resume=function(){r=!1,i?n.nextTick(function(){e.emit("readable")}):this.read(0),this.emit("resume")},e.emit("readable")}function y(e,t){var n,r=t.buffer,a=t.length,o=!!t.decoder,s=!!t.objectMode;if(0===r.length)return null;if(0===a)n=null;else if(s)n=r.shift();else if(!e||e>=a)n=o?r.join(""):i.concat(r,a),r.length=0;else{if(e<r[0].length)n=(f=r[0]).slice(0,e),r[0]=f.slice(e);else if(e===r[0].length)n=r.shift();else{n=o?"":new i(e);for(var u=0,l=0,c=r.length;l<c&&u<e;l++){var f=r[0],h=Math.min(e-u,f.length);o?n+=f.slice(0,h):f.copy(n,u,0,h),h<f.length?r[0]=f.slice(h):r.shift(),u+=h}}}return n}function _(e){var t=e._readableState;if(t.length>0)throw new Error("endReadable called on non-empty stream");!t.endEmitted&&t.calledRead&&(t.ended=!0,n.nextTick(function(){t.endEmitted||0!==t.length||(t.endEmitted=!0,e.readable=!1,e.emit("end"))}))}function b(e,t){for(var n=0,r=e.length;n<r;n++)t(e[n],n)}c.prototype.read=function(e){var t=this._readableState;t.calledRead=!0;var n,r=e;if(("number"!=typeof e||e>0)&&(t.emittedReadable=!1),0===e&&t.needReadable&&(t.length>=t.highWaterMark||t.ended))return d(this),null;if(0===(e=p(e,t))&&t.ended)return n=null,t.length>0&&t.decoder&&(n=y(e,t),t.length-=n.length),0===t.length&&_(this),n;var i=t.needReadable;return t.length-e<=t.highWaterMark&&(i=!0),(t.ended||t.reading)&&(i=!1),i&&(t.reading=!0,t.sync=!0,0===t.length&&(t.needReadable=!0),this._read(t.highWaterMark),t.sync=!1),i&&!t.reading&&(e=p(r,t)),null===(n=e>0?y(e,t):null)&&(t.needReadable=!0,e=0),t.length-=e,0!==t.length||t.ended||(t.needReadable=!0),t.ended&&!t.endEmitted&&0===t.length&&_(this),n},c.prototype._read=function(e){this.emit("error",new Error("not implemented"))},c.prototype.pipe=function(e,t){var i=this,o=this._readableState;switch(o.pipesCount){case 0:o.pipes=e;break;case 1:o.pipes=[o.pipes,e];break;default:o.pipes.push(e)}o.pipesCount+=1;var s=(!t||!1!==t.end)&&e!==n.stdout&&e!==n.stderr?l:f;function u(e){e===i&&f()}function l(){e.end()}o.endEmitted?n.nextTick(s):i.once("end",s),e.on("unpipe",u);var c=function(e){return function(){var t=e._readableState;t.awaitDrain--,0===t.awaitDrain&&v(e)}}(i);function f(){e.removeListener("close",p),e.removeListener("finish",d),e.removeListener("drain",c),e.removeListener("error",h),e.removeListener("unpipe",u),i.removeListener("end",l),i.removeListener("end",f),e._writableState&&!e._writableState.needDrain||c()}function h(t){g(),e.removeListener("error",h),0===a.listenerCount(e,"error")&&e.emit("error",t)}function p(){e.removeListener("finish",d),g()}function d(){e.removeListener("close",p),g()}function g(){i.unpipe(e)}return e.on("drain",c),e._events&&e._events.error?r(e._events.error)?e._events.error.unshift(h):e._events.error=[h,e._events.error]:e.on("error",h),e.once("close",p),e.once("finish",d),e.emit("pipe",i),o.flowing||(this.on("readable",m),o.flowing=!0,n.nextTick(function(){v(i)})),e},c.prototype.unpipe=function(e){var t=this._readableState;if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes?this:(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,this.removeListener("readable",m),t.flowing=!1,e&&e.emit("unpipe",this),this);if(!e){var n=t.pipes,r=t.pipesCount;t.pipes=null,t.pipesCount=0,this.removeListener("readable",m),t.flowing=!1;for(var i=0;i<r;i++)n[i].emit("unpipe",this);return this}return-1===(i=function(e,t){for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1}(t.pipes,e))?this:(t.pipes.splice(i,1),t.pipesCount-=1,1===t.pipesCount&&(t.pipes=t.pipes[0]),e.emit("unpipe",this),this)},c.prototype.on=function(e,t){var n=s.prototype.on.call(this,e,t);if("data"!==e||this._readableState.flowing||w(this),"readable"===e&&this.readable){var r=this._readableState;r.readableListening||(r.readableListening=!0,r.emittedReadable=!1,r.needReadable=!0,r.reading?r.length&&d(this):this.read(0))}return n},c.prototype.addListener=c.prototype.on,c.prototype.resume=function(){w(this),this.read(0),this.emit("resume")},c.prototype.pause=function(){w(this,!0),this.emit("pause")},c.prototype.wrap=function(e){var t=this._readableState,n=!1,r=this;for(var i in e.on("end",function(){if(t.decoder&&!t.ended){var e=t.decoder.end();e&&e.length&&r.push(e)}r.push(null)}),e.on("data",function(i){(t.decoder&&(i=t.decoder.write(i)),!t.objectMode||null!==i&&void 0!==i)&&((t.objectMode||i&&i.length)&&(r.push(i)||(n=!0,e.pause())))}),e)"function"==typeof e[i]&&void 0===this[i]&&(this[i]=function(t){return function(){return e[t].apply(e,arguments)}}(i));return b(["error","close","destroy","pause","resume"],function(t){e.on(t,r.emit.bind(r,t))}),r._read=function(t){n&&(n=!1,e.resume())},r},c._fromList=y}).call(this,e("_process"))},{_process:105,buffer:8,"core-util-is":22,events:29,inherits:52,isarray:14,stream:122,"string_decoder/":21}],18:[function(e,t,n){t.exports=o;var r=e("./_stream_duplex"),i=e("core-util-is");function a(e,t){this.afterTransform=function(e,n){return function(e,t,n){var r=e._transformState;r.transforming=!1;var i=r.writecb;if(!i)return e.emit("error",new Error("no writecb in Transform class"));r.writechunk=null,r.writecb=null,null!==n&&void 0!==n&&e.push(n);i&&i(t);var a=e._readableState;a.reading=!1,(a.needReadable||a.length<a.highWaterMark)&&e._read(a.highWaterMark)}(t,e,n)},this.needTransform=!1,this.transforming=!1,this.writecb=null,this.writechunk=null}function o(e){if(!(this instanceof o))return new o(e);r.call(this,e);this._transformState=new a(e,this);var t=this;this._readableState.needReadable=!0,this._readableState.sync=!1,this.once("finish",function(){"function"==typeof this._flush?this._flush(function(e){s(t,e)}):s(t)})}function s(e,t){if(t)return e.emit("error",t);var n=e._writableState,r=(e._readableState,e._transformState);if(n.length)throw new Error("calling transform done when ws.length != 0");if(r.transforming)throw new Error("calling transform done when still transforming");return e.push(null)}i.inherits=e("inherits"),i.inherits(o,r),o.prototype.push=function(e,t){return this._transformState.needTransform=!1,r.prototype.push.call(this,e,t)},o.prototype._transform=function(e,t,n){throw new Error("not implemented")},o.prototype._write=function(e,t,n){var r=this._transformState;if(r.writecb=n,r.writechunk=e,r.writeencoding=t,!r.transforming){var i=this._readableState;(r.needTransform||i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}},o.prototype._read=function(e){var t=this._transformState;null!==t.writechunk&&t.writecb&&!t.transforming?(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform)):t.needTransform=!0}},{"./_stream_duplex":15,"core-util-is":22,inherits:52}],19:[function(e,t,n){(function(n){t.exports=s;var r=e("buffer").Buffer;s.WritableState=o;var i=e("core-util-is");i.inherits=e("inherits");var a=e("stream");function o(e,t){var r=(e=e||{}).highWaterMark;this.highWaterMark=r||0===r?r:16384,this.objectMode=!!e.objectMode,this.highWaterMark=~~this.highWaterMark,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1;var i=!1===e.decodeStrings;this.decodeStrings=!i,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){!function(e,t){var r=e._writableState,i=r.sync,a=r.writecb;if(function(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}(r),t)!function(e,t,r,i,a){r?n.nextTick(function(){a(i)}):a(i);e._writableState.errorEmitted=!0,e.emit("error",i)}(e,0,i,t,a);else{var o=c(e,r);o||r.bufferProcessing||!r.buffer.length||function(e,t){t.bufferProcessing=!0;for(var n=0;n<t.buffer.length;n++){var r=t.buffer[n],i=r.chunk,a=r.encoding,o=r.callback,s=t.objectMode?1:i.length;if(u(e,t,s,i,a,o),t.writing){n++;break}}t.bufferProcessing=!1,n<t.buffer.length?t.buffer=t.buffer.slice(n):t.buffer.length=0}(e,r),i?n.nextTick(function(){l(e,r,o,a)}):l(e,r,o,a)}}(t,e)},this.writecb=null,this.writelen=0,this.buffer=[],this.errorEmitted=!1}function s(t){var n=e("./_stream_duplex");if(!(this instanceof s||this instanceof n))return new s(t);this._writableState=new o(t,this),this.writable=!0,a.call(this)}function u(e,t,n,r,i,a){t.writelen=n,t.writecb=a,t.writing=!0,t.sync=!0,e._write(r,i,t.onwrite),t.sync=!1}function l(e,t,n,r){n||function(e,t){0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}(e,t),r(),n&&f(e,t)}function c(e,t){return t.ending&&0===t.length&&!t.finished&&!t.writing}function f(e,t){var n=c(0,t);return n&&(t.finished=!0,e.emit("finish")),n}i.inherits(s,a),s.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe. Not readable."))},s.prototype.write=function(e,t,i){var a=this._writableState,o=!1;return"function"==typeof t&&(i=t,t=null),r.isBuffer(e)?t="buffer":t||(t=a.defaultEncoding),"function"!=typeof i&&(i=function(){}),a.ended?function(e,t,r){var i=new Error("write after end");e.emit("error",i),n.nextTick(function(){r(i)})}(this,0,i):function(e,t,i,a){var o=!0;if(!r.isBuffer(i)&&"string"!=typeof i&&null!==i&&void 0!==i&&!t.objectMode){var s=new TypeError("Invalid non-string/buffer chunk");e.emit("error",s),n.nextTick(function(){a(s)}),o=!1}return o}(this,a,e,i)&&(o=function(e,t,n,i,a){n=function(e,t,n){return e.objectMode||!1===e.decodeStrings||"string"!=typeof t||(t=new r(t,n)),t}(t,n,i),r.isBuffer(n)&&(i="buffer");var o=t.objectMode?1:n.length;t.length+=o;var s=t.length<t.highWaterMark;s||(t.needDrain=!0);t.writing?t.buffer.push(new function(e,t,n){this.chunk=e,this.encoding=t,this.callback=n}(n,i,a)):u(e,t,o,n,i,a);return s}(this,a,e,t,i)),o},s.prototype._write=function(e,t,n){n(new Error("not implemented"))},s.prototype.end=function(e,t,r){var i=this._writableState;"function"==typeof e?(r=e,e=null,t=null):"function"==typeof t&&(r=t,t=null),void 0!==e&&null!==e&&this.write(e,t),i.ending||i.finished||function(e,t,r){t.ending=!0,f(e,t),r&&(t.finished?n.nextTick(r):e.once("finish",r));t.ended=!0}(this,i,r)}}).call(this,e("_process"))},{"./_stream_duplex":15,_process:105,buffer:8,"core-util-is":22,inherits:52,stream:122}],20:[function(e,t,n){(function(r){var i=e("stream");(n=t.exports=e("./lib/_stream_readable.js")).Stream=i,n.Readable=n,n.Writable=e("./lib/_stream_writable.js"),n.Duplex=e("./lib/_stream_duplex.js"),n.Transform=e("./lib/_stream_transform.js"),n.PassThrough=e("./lib/_stream_passthrough.js"),r.browser||"disable"!==r.env.READABLE_STREAM||(t.exports=e("stream"))}).call(this,e("_process"))},{"./lib/_stream_duplex.js":15,"./lib/_stream_passthrough.js":16,"./lib/_stream_readable.js":17,"./lib/_stream_transform.js":18,"./lib/_stream_writable.js":19,_process:105,stream:122}],21:[function(e,t,n){var r=e("buffer").Buffer,i=r.isEncoding||function(e){switch(e&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};var a=n.StringDecoder=function(e){switch(this.encoding=(e||"utf8").toLowerCase().replace(/[-_]/,""),function(e){if(e&&!i(e))throw new Error("Unknown encoding: "+e)}(e),this.encoding){case"utf8":this.surrogateSize=3;break;case"ucs2":case"utf16le":this.surrogateSize=2,this.detectIncompleteChar=s;break;case"base64":this.surrogateSize=3,this.detectIncompleteChar=u;break;default:return void(this.write=o)}this.charBuffer=new r(6),this.charReceived=0,this.charLength=0};function o(e){return e.toString(this.encoding)}function s(e){this.charReceived=e.length%2,this.charLength=this.charReceived?2:0}function u(e){this.charReceived=e.length%3,this.charLength=this.charReceived?3:0}a.prototype.write=function(e){for(var t="";this.charLength;){var n=e.length>=this.charLength-this.charReceived?this.charLength-this.charReceived:e.length;if(e.copy(this.charBuffer,this.charReceived,0,n),this.charReceived+=n,this.charReceived<this.charLength)return"";if(e=e.slice(n,e.length),!((i=(t=this.charBuffer.slice(0,this.charLength).toString(this.encoding)).charCodeAt(t.length-1))>=55296&&i<=56319)){if(this.charReceived=this.charLength=0,0===e.length)return t;break}this.charLength+=this.surrogateSize,t=""}this.detectIncompleteChar(e);var r=e.length;this.charLength&&(e.copy(this.charBuffer,0,e.length-this.charReceived,r),r-=this.charReceived);var i;r=(t+=e.toString(this.encoding,0,r)).length-1;if((i=t.charCodeAt(r))>=55296&&i<=56319){var a=this.surrogateSize;return this.charLength+=a,this.charReceived+=a,this.charBuffer.copy(this.charBuffer,a,0,a),e.copy(this.charBuffer,0,0,a),t.substring(0,r)}return t},a.prototype.detectIncompleteChar=function(e){for(var t=e.length>=3?3:e.length;t>0;t--){var n=e[e.length-t];if(1==t&&n>>5==6){this.charLength=2;break}if(t<=2&&n>>4==14){this.charLength=3;break}if(t<=3&&n>>3==30){this.charLength=4;break}}this.charReceived=t},a.prototype.end=function(e){var t="";if(e&&e.length&&(t=this.write(e)),this.charReceived){var n=this.charReceived,r=this.charBuffer,i=this.encoding;t+=r.slice(0,n).toString(i)}return t}},{buffer:8}],22:[function(e,t,n){(function(e){function t(e){return Object.prototype.toString.call(e)}n.isArray=function(e){return Array.isArray?Array.isArray(e):"[object Array]"===t(e)},n.isBoolean=function(e){return"boolean"==typeof e},n.isNull=function(e){return null===e},n.isNullOrUndefined=function(e){return null==e},n.isNumber=function(e){return"number"==typeof e},n.isString=function(e){return"string"==typeof e},n.isSymbol=function(e){return"symbol"==typeof e},n.isUndefined=function(e){return void 0===e},n.isRegExp=function(e){return"[object RegExp]"===t(e)},n.isObject=function(e){return"object"==typeof e&&null!==e},n.isDate=function(e){return"[object Date]"===t(e)},n.isError=function(e){return"[object Error]"===t(e)||e instanceof Error},n.isFunction=function(e){return"function"==typeof e},n.isPrimitive=function(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e},n.isBuffer=e.isBuffer}).call(this,{isBuffer:e("../../is-buffer/index.js")})},{"../../is-buffer/index.js":54}],23:[function(e,t,n){"use strict";var r=e("./lib/thunk.js");t.exports=function(e){var t=new function(){this.argTypes=[],this.shimArgs=[],this.arrayArgs=[],this.arrayBlockIndices=[],this.scalarArgs=[],this.offsetArgs=[],this.offsetArgIndex=[],this.indexArgs=[],this.shapeArgs=[],this.funcName="",this.pre=null,this.body=null,this.post=null,this.debug=!1};t.pre=e.pre,t.body=e.body,t.post=e.post;var n=e.args.slice(0);t.argTypes=n;for(var i=0;i<n.length;++i){var a=n[i];if("array"===a||"object"==typeof a&&a.blockIndices){if(t.argTypes[i]="array",t.arrayArgs.push(i),t.arrayBlockIndices.push(a.blockIndices?a.blockIndices:0),t.shimArgs.push("array"+i),i<t.pre.args.length&&t.pre.args[i].count>0)throw new Error("cwise: pre() block may not reference array args");if(i<t.post.args.length&&t.post.args[i].count>0)throw new Error("cwise: post() block may not reference array args")}else if("scalar"===a)t.scalarArgs.push(i),t.shimArgs.push("scalar"+i);else if("index"===a){if(t.indexArgs.push(i),i<t.pre.args.length&&t.pre.args[i].count>0)throw new Error("cwise: pre() block may not reference array index");if(i<t.body.args.length&&t.body.args[i].lvalue)throw new Error("cwise: body() block may not write to array index");if(i<t.post.args.length&&t.post.args[i].count>0)throw new Error("cwise: post() block may not reference array index")}else if("shape"===a){if(t.shapeArgs.push(i),i<t.pre.args.length&&t.pre.args[i].lvalue)throw new Error("cwise: pre() block may not write to array shape");if(i<t.body.args.length&&t.body.args[i].lvalue)throw new Error("cwise: body() block may not write to array shape");if(i<t.post.args.length&&t.post.args[i].lvalue)throw new Error("cwise: post() block may not write to array shape")}else{if("object"!=typeof a||!a.offset)throw new Error("cwise: Unknown argument type "+n[i]);t.argTypes[i]="offset",t.offsetArgs.push({array:a.array,offset:a.offset}),t.offsetArgIndex.push(i)}}if(t.arrayArgs.length<=0)throw new Error("cwise: No array arguments specified");if(t.pre.args.length>n.length)throw new Error("cwise: Too many arguments in pre() block");if(t.body.args.length>n.length)throw new Error("cwise: Too many arguments in body() block");if(t.post.args.length>n.length)throw new Error("cwise: Too many arguments in post() block");return t.debug=!!e.printCode||!!e.debug,t.funcName=e.funcName||"cwise",t.blockSize=e.blockSize||64,r(t)}},{"./lib/thunk.js":25}],24:[function(e,t,n){"use strict";var r=e("uniq");function i(e,t,n){var r,i,a=e.length,o=t.arrayArgs.length,s=t.indexArgs.length>0,u=[],l=[],c=0,f=0;for(r=0;r<a;++r)l.push(["i",r,"=0"].join(""));for(i=0;i<o;++i)for(r=0;r<a;++r)f=c,c=e[r],0===r?l.push(["d",i,"s",r,"=t",i,"p",c].join("")):l.push(["d",i,"s",r,"=(t",i,"p",c,"-s",f,"*t",i,"p",f,")"].join(""));for(u.push("var "+l.join(",")),r=a-1;r>=0;--r)c=e[r],u.push(["for(i",r,"=0;i",r,"<s",c,";++i",r,"){"].join(""));for(u.push(n),r=0;r<a;++r){for(f=c,c=e[r],i=0;i<o;++i)u.push(["p",i,"+=d",i,"s",r].join(""));s&&(r>0&&u.push(["index[",f,"]-=s",f].join("")),u.push(["++index[",c,"]"].join(""))),u.push("}")}return u.join("\n")}function a(e,t,n){for(var r=e.body,i=[],a=[],o=0;o<e.args.length;++o){var s=e.args[o];if(!(s.count<=0)){var u=new RegExp(s.name,"g"),l="",c=t.arrayArgs.indexOf(o);switch(t.argTypes[o]){case"offset":var f=t.offsetArgIndex.indexOf(o);c=t.offsetArgs[f].array,l="+q"+f;case"array":l="p"+c+l;var h="l"+o,p="a"+c;if(0===t.arrayBlockIndices[c])1===s.count?"generic"===n[c]?s.lvalue?(i.push(["var ",h,"=",p,".get(",l,")"].join("")),r=r.replace(u,h),a.push([p,".set(",l,",",h,")"].join(""))):r=r.replace(u,[p,".get(",l,")"].join("")):r=r.replace(u,[p,"[",l,"]"].join("")):"generic"===n[c]?(i.push(["var ",h,"=",p,".get(",l,")"].join("")),r=r.replace(u,h),s.lvalue&&a.push([p,".set(",l,",",h,")"].join(""))):(i.push(["var ",h,"=",p,"[",l,"]"].join("")),r=r.replace(u,h),s.lvalue&&a.push([p,"[",l,"]=",h].join("")));else{for(var d=[s.name],g=[l],v=0;v<Math.abs(t.arrayBlockIndices[c]);v++)d.push("\\s*\\[([^\\]]+)\\]"),g.push("$"+(v+1)+"*t"+c+"b"+v);if(u=new RegExp(d.join(""),"g"),l=g.join("+"),"generic"===n[c])throw new Error("cwise: Generic arrays not supported in combination with blocks!");r=r.replace(u,[p,"[",l,"]"].join(""))}break;case"scalar":r=r.replace(u,"Y"+t.scalarArgs.indexOf(o));break;case"index":r=r.replace(u,"index");break;case"shape":r=r.replace(u,"shape")}}}return[i.join("\n"),r,a.join("\n")].join("\n").trim()}t.exports=function(e,t){for(var n=t[1].length-Math.abs(e.arrayBlockIndices[0])|0,o=new Array(e.arrayArgs.length),s=new Array(e.arrayArgs.length),u=0;u<e.arrayArgs.length;++u)s[u]=t[2*u],o[u]=t[2*u+1];var l=[],c=[],f=[],h=[],p=[];for(u=0;u<e.arrayArgs.length;++u){e.arrayBlockIndices[u]<0?(f.push(0),h.push(n),l.push(n),c.push(n+e.arrayBlockIndices[u])):(f.push(e.arrayBlockIndices[u]),h.push(e.arrayBlockIndices[u]+n),l.push(0),c.push(e.arrayBlockIndices[u]));for(var d=[],g=0;g<o[u].length;g++)f[u]<=o[u][g]&&o[u][g]<h[u]&&d.push(o[u][g]-f[u]);p.push(d)}var v=["SS"],m=["'use strict'"],w=[];for(g=0;g<n;++g)w.push(["s",g,"=SS[",g,"]"].join(""));for(u=0;u<e.arrayArgs.length;++u){for(v.push("a"+u),v.push("t"+u),v.push("p"+u),g=0;g<n;++g)w.push(["t",u,"p",g,"=t",u,"[",f[u]+g,"]"].join(""));for(g=0;g<Math.abs(e.arrayBlockIndices[u]);++g)w.push(["t",u,"b",g,"=t",u,"[",l[u]+g,"]"].join(""))}for(u=0;u<e.scalarArgs.length;++u)v.push("Y"+u);if(e.shapeArgs.length>0&&w.push("shape=SS.slice(0)"),e.indexArgs.length>0){var y=new Array(n);for(u=0;u<n;++u)y[u]="0";w.push(["index=[",y.join(","),"]"].join(""))}for(u=0;u<e.offsetArgs.length;++u){var _=e.offsetArgs[u],b=[];for(g=0;g<_.offset.length;++g)0!==_.offset[g]&&(1===_.offset[g]?b.push(["t",_.array,"p",g].join("")):b.push([_.offset[g],"*t",_.array,"p",g].join("")));0===b.length?w.push("q"+u+"=0"):w.push(["q",u,"=",b.join("+")].join(""))}var x=r([].concat(e.pre.thisVars).concat(e.body.thisVars).concat(e.post.thisVars));for(w=w.concat(x),m.push("var "+w.join(",")),u=0;u<e.arrayArgs.length;++u)m.push("p"+u+"|=0");e.pre.body.length>3&&m.push(a(e.pre,e,s));var k=a(e.body,e,s),E=function(e){for(var t=0,n=e[0].length;t<n;){for(var r=1;r<e.length;++r)if(e[r][t]!==e[0][t])return t;++t}return t}(p);E<n?m.push(function(e,t,n,r){for(var a=t.length,o=n.arrayArgs.length,s=n.blockSize,u=n.indexArgs.length>0,l=[],c=0;c<o;++c)l.push(["var offset",c,"=p",c].join(""));for(c=e;c<a;++c)l.push(["for(var j"+c+"=SS[",t[c],"]|0;j",c,">0;){"].join("")),l.push(["if(j",c,"<",s,"){"].join("")),l.push(["s",t[c],"=j",c].join("")),l.push(["j",c,"=0"].join("")),l.push(["}else{s",t[c],"=",s].join("")),l.push(["j",c,"-=",s,"}"].join("")),u&&l.push(["index[",t[c],"]=j",c].join(""));for(c=0;c<o;++c){for(var f=["offset"+c],h=e;h<a;++h)f.push(["j",h,"*t",c,"p",t[h]].join(""));l.push(["p",c,"=(",f.join("+"),")"].join(""))}for(l.push(i(t,n,r)),c=e;c<a;++c)l.push("}");return l.join("\n")}(E,p[0],e,k)):m.push(i(p[0],e,k)),e.post.body.length>3&&m.push(a(e.post,e,s)),e.debug&&console.log("-----Generated cwise routine for ",t,":\n"+m.join("\n")+"\n----------");var T=[e.funcName||"unnamed","_cwise_loop_",o[0].join("s"),"m",E,function(e){for(var t=new Array(e.length),n=!0,r=0;r<e.length;++r){var i=e[r],a=i.match(/\d+/);a=a?a[0]:"",0===i.charAt(0)?t[r]="u"+i.charAt(1)+a:t[r]=i.charAt(0)+a,r>0&&(n=n&&t[r]===t[r-1])}return n?t[0]:t.join("")}(s)].join("");return new Function(["function ",T,"(",v.join(","),"){",m.join("\n"),"} return ",T].join(""))()}},{uniq:127}],25:[function(e,t,n){"use strict";var r=e("./compile.js");t.exports=function(e){var t=["'use strict'","var CACHED={}"],n=[],i=e.funcName+"_cwise_thunk";t.push(["return function ",i,"(",e.shimArgs.join(","),"){"].join(""));for(var a=[],o=[],s=[["array",e.arrayArgs[0],".shape.slice(",Math.max(0,e.arrayBlockIndices[0]),e.arrayBlockIndices[0]<0?","+e.arrayBlockIndices[0]+")":")"].join("")],u=[],l=[],c=0;c<e.arrayArgs.length;++c){var f=e.arrayArgs[c];n.push(["t",f,"=array",f,".dtype,","r",f,"=array",f,".order"].join("")),a.push("t"+f),a.push("r"+f),o.push("t"+f),o.push("r"+f+".join()"),s.push("array"+f+".data"),s.push("array"+f+".stride"),s.push("array"+f+".offset|0"),c>0&&(u.push("array"+e.arrayArgs[0]+".shape.length===array"+f+".shape.length+"+(Math.abs(e.arrayBlockIndices[0])-Math.abs(e.arrayBlockIndices[c]))),l.push("array"+e.arrayArgs[0]+".shape[shapeIndex+"+Math.max(0,e.arrayBlockIndices[0])+"]===array"+f+".shape[shapeIndex+"+Math.max(0,e.arrayBlockIndices[c])+"]"))}for(e.arrayArgs.length>1&&(t.push("if (!("+u.join(" && ")+")) throw new Error('cwise: Arrays do not all have the same dimensionality!')"),t.push("for(var shapeIndex=array"+e.arrayArgs[0]+".shape.length-"+Math.abs(e.arrayBlockIndices[0])+"; shapeIndex--\x3e0;) {"),t.push("if (!("+l.join(" && ")+")) throw new Error('cwise: Arrays do not all have the same shape!')"),t.push("}")),c=0;c<e.scalarArgs.length;++c)s.push("scalar"+e.scalarArgs[c]);return n.push(["type=[",o.join(","),"].join()"].join("")),n.push("proc=CACHED[type]"),t.push("var "+n.join(",")),t.push(["if(!proc){","CACHED[type]=proc=compile([",a.join(","),"])}","return proc(",s.join(","),")}"].join("")),e.debug&&console.log("-----Generated thunk:\n"+t.join("\n")+"\n----------"),new Function("compile",t.join("\n"))(r.bind(void 0,e))}},{"./compile.js":24}],26:[function(e,t,n){t.exports=e("cwise-compiler")},{"cwise-compiler":23}],27:[function(e,t,n){(function(e){"use strict";t.exports=function(t){if(!/^data\:/i.test(t))throw new TypeError('`uri` does not appear to be a Data URI (must begin with "data:")');var n=(t=t.replace(/\r?\n/g,"")).indexOf(",");if(-1===n||n<=4)throw new TypeError("malformed data: URI");for(var r=t.substring(5,n).split(";"),i=r[0]||"text/plain",a=i,o=!1,s="",u=1;u<r.length;u++)"base64"==r[u]?o=!0:(a+=";"+r[u],0==r[u].indexOf("charset=")&&(s=r[u].substring(8)));r[0]||s.length||(a+=";charset=US-ASCII",s="US-ASCII");var l=unescape(t.substring(n+1)),c=new e(l,o?"base64":"ascii");return c.type=i,c.typeFull=a,c.charset=s,c}}).call(this,e("buffer").Buffer)},{buffer:8}],28:[function(e,t,n){"use strict";t.exports=function(e,t){switch(void 0===t&&(t=0),typeof e){case"number":if(e>0)return function(e,t){var n,r;for(n=new Array(e),r=0;r<e;++r)n[r]=t;return n}(0|e,t);break;case"object":if("number"==typeof e.length)return function e(t,n,r){var i=0|t[r];if(i<=0)return[];var a,o=new Array(i);if(r===t.length-1)for(a=0;a<i;++a)o[a]=n;else for(a=0;a<i;++a)o[a]=e(t,n,r+1);return o}(e,t,0)}return[]}},{}],29:[function(e,t,n){function r(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0}function i(e){return"function"==typeof e}function a(e){return"object"==typeof e&&null!==e}function o(e){return void 0===e}t.exports=r,r.EventEmitter=r,r.prototype._events=void 0,r.prototype._maxListeners=void 0,r.defaultMaxListeners=10,r.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||isNaN(e))throw TypeError("n must be a positive number");return this._maxListeners=e,this},r.prototype.emit=function(e){var t,n,r,s,u,l;if(this._events||(this._events={}),"error"===e&&(!this._events.error||a(this._events.error)&&!this._events.error.length)){if((t=arguments[1])instanceof Error)throw t;var c=new Error('Uncaught, unspecified "error" event. ('+t+")");throw c.context=t,c}if(o(n=this._events[e]))return!1;if(i(n))switch(arguments.length){case 1:n.call(this);break;case 2:n.call(this,arguments[1]);break;case 3:n.call(this,arguments[1],arguments[2]);break;default:s=Array.prototype.slice.call(arguments,1),n.apply(this,s)}else if(a(n))for(s=Array.prototype.slice.call(arguments,1),r=(l=n.slice()).length,u=0;u<r;u++)l[u].apply(this,s);return!0},r.prototype.addListener=function(e,t){var n;if(!i(t))throw TypeError("listener must be a function");return this._events||(this._events={}),this._events.newListener&&this.emit("newListener",e,i(t.listener)?t.listener:t),this._events[e]?a(this._events[e])?this._events[e].push(t):this._events[e]=[this._events[e],t]:this._events[e]=t,a(this._events[e])&&!this._events[e].warned&&(n=o(this._maxListeners)?r.defaultMaxListeners:this._maxListeners)&&n>0&&this._events[e].length>n&&(this._events[e].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[e].length),"function"==typeof console.trace&&console.trace()),this},r.prototype.on=r.prototype.addListener,r.prototype.once=function(e,t){if(!i(t))throw TypeError("listener must be a function");var n=!1;function r(){this.removeListener(e,r),n||(n=!0,t.apply(this,arguments))}return r.listener=t,this.on(e,r),this},r.prototype.removeListener=function(e,t){var n,r,o,s;if(!i(t))throw TypeError("listener must be a function");if(!this._events||!this._events[e])return this;if(o=(n=this._events[e]).length,r=-1,n===t||i(n.listener)&&n.listener===t)delete this._events[e],this._events.removeListener&&this.emit("removeListener",e,t);else if(a(n)){for(s=o;s-- >0;)if(n[s]===t||n[s].listener&&n[s].listener===t){r=s;break}if(r<0)return this;1===n.length?(n.length=0,delete this._events[e]):n.splice(r,1),this._events.removeListener&&this.emit("removeListener",e,t)}return this},r.prototype.removeAllListeners=function(e){var t,n;if(!this._events)return this;if(!this._events.removeListener)return 0===arguments.length?this._events={}:this._events[e]&&delete this._events[e],this;if(0===arguments.length){for(t in this._events)"removeListener"!==t&&this.removeAllListeners(t);return this.removeAllListeners("removeListener"),this._events={},this}if(i(n=this._events[e]))this.removeListener(e,n);else if(n)for(;n.length;)this.removeListener(e,n[n.length-1]);return delete this._events[e],this},r.prototype.listeners=function(e){return this._events&&this._events[e]?i(this._events[e])?[this._events[e]]:this._events[e].slice():[]},r.prototype.listenerCount=function(e){if(this._events){var t=this._events[e];if(i(t))return 1;if(t)return t.length}return 0},r.listenerCount=function(e,t){return e.listenerCount(t)}},{}],30:[function(e,t,n){var r=function(t){(t=t||{}).width=t.width||800,t.height=t.height||600;var n=t.model||{vertex:[-1,-1,0,1,-1,0,1,1,0,-1,1,0],indices:[0,1,2,0,2,3,2,1,0,3,2,0],textureCoords:[0,0,1,0,1,1,0,1]},r=t.lens||{a:1,b:1,Fx:0,Fy:0,scale:1.5},i=t.fov||{x:1,y:1},a=t.image||"images/barrel-distortion.png",o=function(e){var t=document.querySelector(e);if(null==t)throw new Error("there is no canvas on this page");for(var n=["webgl","experimental-webgl","webkit-3d","moz-webgl"],r=0;r<n.length;++r){var i;try{i=t.getContext(n[r],{preserveDrawingBuffer:!0})}catch(e){continue}if(i)return i}throw new Error("WebGL is not supported!")}(t.selector||"#canvas"),s=e("./shaders"),u=b(t.vertexSrc||"vertex"),l=b(t.fragmentSrc||"fragment3"),c=function(e,t,n){var r=e.createShader(e.VERTEX_SHADER);e.shaderSource(r,t),e.compileShader(r),o(r);var i=e.createShader(e.FRAGMENT_SHADER);e.shaderSource(i,n),e.compileShader(i),o(i);var a=e.createProgram();return e.attachShader(a,r),e.attachShader(a,i),e.linkProgram(a),a;function o(t){if(!e.getShaderParameter(t,e.COMPILE_STATUS))throw new Error(e.getShaderInfoLog(t))}}(o,u,l);o.useProgram(c);var f,h,p,d,g=o.getAttribLocation(c,"aVertexPosition"),v=o.getAttribLocation(c,"aTextureCoord"),m=o.getUniformLocation(c,"uSampler"),w=o.getUniformLocation(c,"uLensS"),y=o.getUniformLocation(c,"uLensF"),_=o.getUniformLocation(c,"uFov");function b(e,t){if(s.hasOwnProperty(e))return s[e];var n=new XMLHttpRequest;if(t)n.addEventListener("readystatechange",function(){4===n.readyState&&(200===n.status?t(null,n.responseText):t(new Error("fail to load!")))}),n.open("GET",e,!0),n.send(null);else if(n.open("GET",e,!1),n.send(null),200==n.status)return n.responseText}function x(e,n){var r=window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||window.msRequestAnimationFrame;if(!0===e){if(!r)throw new Error("do not support 'requestAnimationFram'");r(a)}else r(a);var i=null;function a(o){i||(i=o);var s=o-i;i=o,t.runner(s),n&&n(),!0===e&&r(a)}}function k(e,t){o.viewport(0,0,e,t),o.canvas.width=e,o.canvas.height=t}function E(e,n){d=function(e,n,r){var i=e.createTexture(),a=new Image;return a.addEventListener("load",function(){!function(e,t,n,r){r=r||e.createTexture(),e.bindTexture(e.TEXTURE_2D,r),e.texImage2D(e.TEXTURE_2D,0,e.RGBA,e.RGBA,e.UNSIGNED_BYTE,t),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MAG_FILTER,e.LINEAR),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MIN_FILTER,e.LINEAR),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_S,e.CLAMP_TO_EDGE),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_T,e.CLAMP_TO_EDGE),e.bindTexture(e.TEXTURE_2D,null),n&&n(null,r)}(e,a,r,i),t.width=a.width,t.height=a.height,k(t.width,t.height)}),a.src=n,i}(o,e,function(){x(t.animate,n)})}return f=o.createBuffer(),o.bindBuffer(o.ARRAY_BUFFER,f),o.bufferData(o.ARRAY_BUFFER,new Float32Array(n.vertex),o.STATIC_DRAW),o.bindBuffer(o.ARRAY_BUFFER,null),h=o.createBuffer(),o.bindBuffer(o.ELEMENT_ARRAY_BUFFER,h),o.bufferData(o.ELEMENT_ARRAY_BUFFER,new Uint16Array(n.indices),o.STATIC_DRAW),o.bindBuffer(o.ELEMENT_ARRAY_BUFFER,null),p=o.createBuffer(),o.bindBuffer(o.ARRAY_BUFFER,p),o.bufferData(o.ARRAY_BUFFER,new Float32Array(n.textureCoords),o.STATIC_DRAW),o.bindBuffer(o.ARRAY_BUFFER,null),t.runner=t.runner||function(e){o.clearColor(0,0,0,1),o.enable(o.DEPTH_TEST),o.clear(o.COLOR_BUFFER_BIT|o.DEPTH_BUFFER_BIT),o.enableVertexAttribArray(g),o.bindBuffer(o.ARRAY_BUFFER,f),o.vertexAttribPointer(g,3,o.FLOAT,!1,0,0),o.enableVertexAttribArray(v),o.bindBuffer(o.ARRAY_BUFFER,p),o.vertexAttribPointer(v,2,o.FLOAT,!1,0,0),o.activeTexture(o.TEXTURE0),o.bindTexture(o.TEXTURE_2D,d),o.uniform1i(m,0),o.uniform3fv(w,[r.a,r.b,r.scale]),o.uniform2fv(y,[r.Fx,r.Fy]),o.uniform2fv(_,[i.x,i.y]),o.bindBuffer(o.ELEMENT_ARRAY_BUFFER,h),o.drawElements(o.TRIANGLES,n.indices.length,o.UNSIGNED_SHORT,0)},E(a),{options:t,gl:o,lens:r,fov:i,run:x,getImage:function(e){var t=new Image;return t.src=o.canvas.toDataURL(e||"image/jpeg"),t},setImage:E}};"undefined"!=typeof document?window.FisheyeGl=r:t.exports=r},{"./shaders":31}],31:[function(e,t,n){t.exports={fragment:e("./shaders/fragment.glfs"),fragment2:e("./shaders/fragment2.glfs"),fragment3:e("./shaders/fragment3.glfs"),method1:e("./shaders/method1.glfs"),method2:e("./shaders/method2.glfs"),vertex:e("./shaders/vertex.glvs")}},{"./shaders/fragment.glfs":32,"./shaders/fragment2.glfs":33,"./shaders/fragment3.glfs":34,"./shaders/method1.glfs":35,"./shaders/method2.glfs":36,"./shaders/vertex.glvs":37}],32:[function(e,t,n){t.exports="#ifdef GL_ES\nprecision highp float;\n#endif\nuniform vec4 uLens;\nuniform vec2 uFov;\nuniform sampler2D uSampler;\nvarying vec3 vPosition;\nvarying vec2 vTextureCoord;\nvec2 GLCoord2TextureCoord(vec2 glCoord) {\n\treturn glCoord * vec2(1.0, -1.0)/ 2.0 + vec2(0.5, 0.5);\n}\nvoid main(void){\n\tfloat scale = uLens.w;\n\tfloat F = uLens.z;\n\t\n\tfloat L = length(vec3(vPosition.xy/scale, F));\n\tvec2 vMapping = vPosition.xy * F / L;\n\tvMapping = vMapping * uLens.xy;\n\tvMapping = GLCoord2TextureCoord(vMapping/scale);\n\tvec4 texture = texture2D(uSampler, vMapping);\n\tif(vMapping.x > 0.99 || vMapping.x < 0.01 || vMapping.y > 0.99 || vMapping.y < 0.01){\n\t\ttexture = vec4(0.0, 0.0, 0.0, 1.0);\n\t} \n\tgl_FragColor = texture;\n}\n"},{}],33:[function(e,t,n){t.exports="#ifdef GL_ES\nprecision highp float;\n#endif\nuniform vec4 uLens;\nuniform vec2 uFov;\nuniform sampler2D uSampler;\nvarying vec3 vPosition;\nvarying vec2 vTextureCoord;\nvec2 TextureCoord2GLCoord(vec2 textureCoord) {\n\treturn (textureCoord - vec2(0.5, 0.5)) * 2.0;\n}\nvec2 GLCoord2TextureCoord(vec2 glCoord) {\n\treturn glCoord / 2.0 + vec2(0.5, 0.5);\n}\nvoid main(void){\n\tfloat correctionRadius = 0.5;\n\tfloat distance = sqrt(vPosition.x * vPosition.x + vPosition.y * vPosition.y) / correctionRadius;\n\tfloat theta = 1.0;\n\tif(distance != 0.0){\n\t\ttheta = atan(distance);\n\t}\n\tvec2 vMapping = theta * vPosition.xy;\n\tvMapping = GLCoord2TextureCoord(vMapping);\n\t\t\n\tvec4 texture = texture2D(uSampler, vMapping);\n\tif(vMapping.x > 0.99 || vMapping.x < 0.01 || vMapping.y > 0.99 || vMapping.y < 0.01){\n\t\ttexture = vec4(0.0, 0.0, 0.0, 1.0);\n\t} \n\tgl_FragColor = texture;\n}\n"},{}],34:[function(e,t,n){t.exports="#ifdef GL_ES\nprecision highp float;\n#endif\nuniform vec3 uLensS;\nuniform vec2 uLensF;\nuniform vec2 uFov;\nuniform sampler2D uSampler;\nvarying vec3 vPosition;\nvarying vec2 vTextureCoord;\nvec2 GLCoord2TextureCoord(vec2 glCoord) {\n\treturn glCoord * vec2(1.0, -1.0)/ 2.0 + vec2(0.5, 0.5);\n}\nvoid main(void){\n\tfloat scale = uLensS.z;\n\tvec3 vPos = vPosition;\n\tfloat Fx = uLensF.x;\n\tfloat Fy = uLensF.y;\n\tvec2 vMapping = vPos.xy;\n\tvMapping.x = vMapping.x + ((pow(vPos.y, 2.0)/scale)*vPos.x/scale)*-Fx;\n\tvMapping.y = vMapping.y + ((pow(vPos.x, 2.0)/scale)*vPos.y/scale)*-Fy;\n\tvMapping = vMapping * uLensS.xy;\n\tvMapping = GLCoord2TextureCoord(vMapping/scale);\n\tvec4 texture = texture2D(uSampler, vMapping);\n\tif(vMapping.x > 0.99 || vMapping.x < 0.01 || vMapping.y > 0.99 || vMapping.y < 0.01){\n\t\ttexture = vec4(0.0, 0.0, 0.0, 1.0);\n\t}\n\tgl_FragColor = texture;\n}\n"},{}],35:[function(e,t,n){t.exports="#ifdef GL_ES\nprecision highp float;\n#endif\nuniform vec4 uLens;\nuniform vec2 uFov;\nuniform sampler2D uSampler;\nvarying vec3 vPosition;\nvarying vec2 vTextureCoord;\nvec2 TextureCoord2GLCoord(vec2 textureCoord) {\n\treturn (textureCoord - vec2(0.5, 0.5)) * 2.0;\n}\nvec2 GLCoord2TextureCoord(vec2 glCoord) {\n\treturn glCoord / 2.0 + vec2(0.5, 0.5);\n}\nvoid main(void){\n\tvec2 vMapping = vec2(vTextureCoord.x, 1.0 - vTextureCoord.y);\n\tvMapping = TextureCoord2GLCoord(vMapping);\n\t//TODO insert Code\n\tfloat F = uLens.x/ uLens.w;\n\tfloat seta = length(vMapping) / F;\n\tvMapping = sin(seta) * F / length(vMapping) * vMapping;\n\tvMapping *= uLens.w * 1.414;\n\tvMapping = GLCoord2TextureCoord(vMapping);\n\tvec4 texture = texture2D(uSampler, vMapping);\n\tif(vMapping.x > 0.99 || vMapping.x < 0.01 || vMapping.y > 0.99 || vMapping.y < 0.01){\n\t\ttexture = vec4(0.0, 0.0, 0.0, 1.0);\n\t} \n\tgl_FragColor = texture;\n}\n"},{}],36:[function(e,t,n){t.exports="#ifdef GL_ES\nprecision highp float;\n#endif\nuniform vec4 uLens;\nuniform vec2 uFov;\nuniform sampler2D uSampler;\nvarying vec3 vPosition;\nvarying vec2 vTextureCoord;\nvec2 TextureCoord2GLCoord(vec2 textureCoord) {\n\treturn (textureCoord - vec2(0.5, 0.5)) * 2.0;\n}\nvec2 GLCoord2TextureCoord(vec2 glCoord) {\n\treturn glCoord / 2.0 + vec2(0.5, 0.5);\n}\nvoid main(void){\n\tvec2 vMapping = vec2(vTextureCoord.x, 1.0 - vTextureCoord.y);\n\tvMapping = TextureCoord2GLCoord(vMapping);\n\t//TOD insert Code\n\tfloat F = uLens.x/ uLens.w;\n\tfloat seta = length(vMapping) / F;\n\tvMapping = sin(seta) * F / length(vMapping) * vMapping;\n\tvMapping *= uLens.w * 1.414;\n\tvMapping = GLCoord2TextureCoord(vMapping);\n\tvec4 texture = texture2D(uSampler, vMapping);\n\tif(vMapping.x > 0.99 || vMapping.x < 0.01 || vMapping.y > 0.99 || vMapping.y < 0.01){\n\t\ttexture = vec4(0.0, 0.0, 0.0, 1.0);\n\t} \n\tgl_FragColor = texture;\n}\n"},{}],37:[function(e,t,n){t.exports="#ifdef GL_ES\nprecision highp float;\n#endif\nattribute vec3 aVertexPosition;\nattribute vec2 aTextureCoord;\nvarying vec3 vPosition;\nvarying vec2 vTextureCoord;\nvoid main(void){\n\tvPosition = aVertexPosition;\n\tvTextureCoord = aTextureCoord;\n\tgl_Position = vec4(vPosition,1.0);\n}\n"},{}],38:[function(e,t,n){(function(n,r){"use strict";var i=e("path"),a=e("ndarray"),o=e("omggif").GifReader,s=(e("ndarray-pack"),e("through"),e("data-uri-to-buffer"));function u(e,t){var n;try{n=new o(e)}catch(e){return void t(e)}if(n.numFrames()>0){var r=[n.numFrames(),n.height,n.width,4],i=new Uint8Array(r[0]*r[1]*r[2]*r[3]),s=a(i,r);try{for(var u=0;u<n.numFrames();++u)n.decodeAndBlitFrameRGBA(u,i.subarray(s.index(u,0,0,0),s.index(u+1,0,0,0)))}catch(e){return void t(e)}t(null,s.transpose(0,2,1))}else{r=[n.height,n.width,4],i=new Uint8Array(r[0]*r[1]*r[2]),s=a(i,r);try{n.decodeAndBlitFrameRGBA(0,i)}catch(e){return void t(e)}t(null,s.transpose(1,0))}}function l(e,t){r.nextTick(function(){try{var n=s(e);n?u(function(e){if(void 0===e[0]){for(var t=e.length,n=new Uint8Array(t),r=0;r<t;++r)n[r]=e.get(r);return n}return new Uint8Array(e)}(n),t):t(new Error("Error parsing data URI"))}catch(e){t(e)}})}t.exports=function(e,t,r){r||(r=t,t="");var o=i.extname(e);switch(t||o.toUpperCase()){case".GIF":!function(e,t){var n=new XMLHttpRequest;n.open("GET",e,!0),n.responseType="arraybuffer",n.overrideMimeType&&n.overrideMimeType("application/binary"),n.onerror=function(e){t(e)},n.onload=function(){4===n.readyState&&u(new Uint8Array(n.response),t)},n.send()}(e,r);break;default:n.isBuffer(e)&&(e="data:"+t+";base64,"+e.toString("base64")),0===e.indexOf("data:image/gif;")?l(e,r):function(e,t){var n=new Image;n.crossOrigin="Anonymous",n.onload=function(){var e=document.createElement("canvas");e.width=n.width,e.height=n.height;var r=e.getContext("2d");r.drawImage(n,0,0);var i=r.getImageData(0,0,n.width,n.height);t(null,a(new Uint8Array(i.data),[n.width,n.height,4],[4,4*n.width,1],0))},n.onerror=function(e){t(e)},n.src=e}(e,r)}}}).call(this,{isBuffer:e("../is-buffer/index.js")},e("_process"))},{"../is-buffer/index.js":54,_process:105,"data-uri-to-buffer":39,ndarray:67,"ndarray-pack":65,omggif:69,path:82,through:124}],39:[function(e,t,n){(function(e){t.exports=function(t){if(!/^data\:/i.test(t))throw new TypeError('`uri` does not appear to be a Data URI (must begin with "data:")');var n=(t=t.replace(/\r?\n/g,"")).indexOf(",");if(-1===n||n<=4)throw new TypeError("malformed data: URI");for(var r=t.substring(5,n).split(";"),i=!1,a="US-ASCII",o=0;o<r.length;o++)"base64"==r[o]?i=!0:0==r[o].indexOf("charset=")&&(a=r[o].substring(8));var s=unescape(t.substring(n+1)),u=new e(s,i?"base64":"ascii");return u.type=r[0]||"text/plain",u.charset=a,u}}).call(this,e("buffer").Buffer)},{buffer:8}],40:[function(e,t,n){(function(n){e("assert"),e("events").EventEmitter;var r=e("readable-stream"),i=e("util"),a=e("./TypedNeuQuant.js"),o=e("./LZWEncoder.js");function s(e){r.call(this,e),this.okayToPush=!0,this.resetData()}function u(e,t,n){var r=(n=n||{}).highWaterMark;s.call(this,{highWaterMark:r||0===r?r:65536}),this.width=~~e,this.height=~~t,this.transparent=null,this.transIndex=0,this.repeat=-1,this.delay=0,this.pixels=null,this.indexedPixels=null,this.colorDepth=null,this.colorTab=null,this.usedEntry=[],this.palSize=7,this.dispose=-1,this.firstFrame=!0,this.sample=10;var i=this;function a(){i.flushData()}this.on("writeHeader#stop",a),this.on("frame#stop",a),this.on("finish#stop",function(){a(),i.push(null)})}i.inherits(s,r),s.prototype._read=function(){this.okayToPush=!0},s.prototype.resetData=function(){this.data=[]},s.prototype.flushData=function(){if(!this.okayToPush){var e=new Error("GIF memory limit exceeded. Please `read` from GIF before writing additional frames/information.");return this.emit("error",e)}var t=new n(this.data);this.resetData(),this.okayToPush=this.push(t)},s.prototype.writeByte=function(e){this.data.push(e)},s.prototype.writeUTFBytes=function(e){for(var t=e.length,n=0;n<t;n++)this.writeByte(e.charCodeAt(n))},s.prototype.writeBytes=function(e,t,n){for(var r=n||e.length,i=t||0;i<r;i++)this.writeByte(e[i])},i.inherits(u,s),u.prototype.setDelay=function(e){this.delay=Math.round(e/10)},u.prototype.setFrameRate=function(e){this.delay=Math.round(100/e)},u.prototype.setDispose=function(e){e>=0&&(this.dispose=e)},u.prototype.setRepeat=function(e){this.repeat=e},u.prototype.setTransparent=function(e){this.transparent=e},u.prototype.analyzeImage=function(e){this.setImagePixels(this.removeAlphaChannel(e)),this.analyzePixels()},u.prototype.writeImageInfo=function(){this.firstFrame&&(this.writeLSD(),this.writePalette(),this.repeat>=0&&this.writeNetscapeExt()),this.writeGraphicCtrlExt(),this.writeImageDesc(),this.firstFrame||this.writePalette(),this.firstFrame=!1},u.prototype.outputImage=function(){this.writePixels()},u.prototype.addFrame=function(e){this.emit("frame#start"),this.analyzeImage(e),this.writeImageInfo(),this.outputImage(),this.emit("frame#stop")},u.prototype.finish=function(){this.emit("finish#start"),this.writeByte(59),this.emit("finish#stop")},u.prototype.setQuality=function(e){e<1&&(e=1),this.sample=e},u.prototype.writeHeader=function(){this.emit("writeHeader#start"),this.writeUTFBytes("GIF89a"),this.emit("writeHeader#stop")},u.prototype.analyzePixels=function(){var e=this.pixels.length/3;this.indexedPixels=new Uint8Array(e);var t=new a(this.pixels,this.sample);t.buildColormap(),this.colorTab=t.getColormap();for(var n=0,r=0;r<e;r++){var i=t.lookupRGB(255&this.pixels[n++],255&this.pixels[n++],255&this.pixels[n++]);this.usedEntry[i]=!0,this.indexedPixels[r]=i}this.pixels=null,this.colorDepth=8,this.palSize=7,null!==this.transparent&&(this.transIndex=this.findClosest(this.transparent))},u.prototype.findClosest=function(e){if(null===this.colorTab)return-1;for(var t=(16711680&e)>>16,n=(65280&e)>>8,r=255&e,i=0,a=16777216,o=this.colorTab.length,s=0;s<o;){var u=t-(255&this.colorTab[s++]),l=n-(255&this.colorTab[s++]),c=r-(255&this.colorTab[s]),f=u*u+l*l+c*c,h=s/3;this.usedEntry[h]&&f<a&&(a=f,i=h),s++}return i},u.prototype.removeAlphaChannel=function(e){for(var t=this.width,n=this.height,r=new Uint8Array(t*n*3),i=0,a=0;a<n;a++)for(var o=0;o<t;o++){var s=a*t*4+4*o;r[i++]=e[s],r[i++]=e[s+1],r[i++]=e[s+2]}return r},u.prototype.setImagePixels=function(e){this.pixels=e},u.prototype.writeGraphicCtrlExt=function(){var e,t;this.writeByte(33),this.writeByte(249),this.writeByte(4),null===this.transparent?(e=0,t=0):(e=1,t=2),this.dispose>=0&&(t=7&dispose),t<<=2,this.writeByte(0|t|e),this.writeShort(this.delay),this.writeByte(this.transIndex),this.writeByte(0)},u.prototype.writeImageDesc=function(){this.writeByte(44),this.writeShort(0),this.writeShort(0),this.writeShort(this.width),this.writeShort(this.height),this.firstFrame?this.writeByte(0):this.writeByte(128|this.palSize)},u.prototype.writeLSD=function(){this.writeShort(this.width),this.writeShort(this.height),this.writeByte(240|this.palSize),this.writeByte(0),this.writeByte(0)},u.prototype.writeNetscapeExt=function(){this.writeByte(33),this.writeByte(255),this.writeByte(11),this.writeUTFBytes("NETSCAPE2.0"),this.writeByte(3),this.writeByte(1),this.writeShort(this.repeat),this.writeByte(0)},u.prototype.writePalette=function(){this.writeBytes(this.colorTab);for(var e=768-this.colorTab.length,t=0;t<e;t++)this.writeByte(0)},u.prototype.writeShort=function(e){this.writeByte(255&e),this.writeByte(e>>8&255)},u.prototype.writePixels=function(){new o(this.width,this.height,this.indexedPixels,this.colorDepth).encode(this)},u.prototype.stream=function(){return this},u.ByteCapacitor=s,t.exports=u}).call(this,e("buffer").Buffer)},{"./LZWEncoder.js":41,"./TypedNeuQuant.js":42,assert:1,buffer:8,events:29,"readable-stream":49,util:132}],41:[function(e,t,n){var r=-1,i=12,a=5003,o=[0,1,3,7,15,31,63,127,255,511,1023,2047,4095,8191,16383,32767,65535];t.exports=function(e,t,n,s){var u,l,c,f,h,p,d,g,v,m=Math.max(2,s),w=new Uint8Array(256),y=new Int32Array(a),_=new Int32Array(a),b=0,x=0,k=!1;function E(e,t){w[l++]=e,l>=254&&S(t)}function T(e){A(a),x=g+2,k=!0,R(g,e)}function A(e){for(var t=0;t<e;++t)y[t]=-1}function S(e){l>0&&(e.writeByte(l),e.writeBytes(w,0,l),l=0)}function C(e){return(1<<e)-1}function M(){return 0===f?r:(--f,255&n[h++])}function R(e,t){for(u&=o[b],b>0?u|=e<<b:u=e,b+=p;b>=8;)E(255&u,t),u>>=8,b-=8;if((x>c||k)&&(k?(c=C(p=d),k=!1):c=++p==i?1<<i:C(p)),e==v){for(;b>0;)E(255&u,t),u>>=8,b-=8;S(t)}}this.encode=function(n){n.writeByte(m),f=e*t,h=0,function(e,t){var n,o,s,u,f,h,m;for(k=!1,c=C(p=d=e),v=1+(g=1<<e-1),x=g+2,l=0,u=M(),m=0,n=a;n<65536;n*=2)++m;m=8-m,A(h=a),R(g,t);e:for(;(o=M())!=r;)if(n=(o<<i)+u,y[s=o<<m^u]!==n){if(y[s]>=0){f=h-s,0===s&&(f=1);do{if((s-=f)<0&&(s+=h),y[s]===n){u=_[s];continue e}}while(y[s]>=0)}R(u,t),u=o,x<1<<i?(_[s]=x++,y[s]=n):T(t)}else u=_[s];R(u,t),R(v,t)}(m+1,n),n.writeByte(0)}}},{}],42:[function(e,t,n){var r=100,i=256,a=i-1,o=4,s=16,u=1<<s,l=10,c=10,f=u>>c,h=u<<l-c,p=6,d=(i>>3)*(1<<p),g=30,v=1024,m=256,w=1<<18,y=499,_=491,b=487,x=503,k=3*x;t.exports=function(e,t){var n,E,T,A,S;function C(e,t,r,i,a){n[t][0]-=e*(n[t][0]-r)/v,n[t][1]-=e*(n[t][1]-i)/v,n[t][2]-=e*(n[t][2]-a)/v}function M(e,t,r,a,o){for(var s,u,l=Math.abs(t-e),c=Math.min(t+e,i),f=t+1,h=t-1,p=1;f<c||h>l;)u=S[p++],f<c&&((s=n[f++])[0]-=u*(s[0]-r)/w,s[1]-=u*(s[1]-a)/w,s[2]-=u*(s[2]-o)/w),h>l&&((s=n[h--])[0]-=u*(s[0]-r)/w,s[1]-=u*(s[1]-a)/w,s[2]-=u*(s[2]-o)/w)}function R(e,t,r){var a,u,p,d,g,v=~(1<<31),m=v,w=-1,y=w;for(a=0;a<i;a++)u=n[a],(p=Math.abs(u[0]-e)+Math.abs(u[1]-t)+Math.abs(u[2]-r))<v&&(v=p,w=a),(d=p-(T[a]>>s-o))<m&&(m=d,y=a),g=A[a]>>c,A[a]-=g,T[a]+=g<<l;return A[w]+=f,T[w]-=h,y}this.buildColormap=function(){!function(){var e,t;for(n=[],E=new Int32Array(256),T=new Int32Array(i),A=new Int32Array(i),S=new Int32Array(i>>3),e=0;e<i;e++)t=(e<<o+8)/i,n[e]=new Float64Array([t,t,t,0]),A[e]=u/i,T[e]=0}(),function(){var n,i,a,s,u,l,c=e.length,f=30+(t-1)/3,h=c/(3*t),w=~~(h/r),E=v,T=d,A=T>>p;for(A<=1&&(A=0),n=0;n<A;n++)S[n]=E*((A*A-n*n)*m/(A*A));c<k?(t=1,i=3):i=c%y!=0?3*y:c%_!=0?3*_:c%b!=0?3*b:3*x;var j=0;for(n=0;n<h;)if(C(E,l=R(a=(255&e[j])<<o,s=(255&e[j+1])<<o,u=(255&e[j+2])<<o),a,s,u),0!==A&&M(A,l,a,s,u),(j+=i)>=c&&(j-=c),n++,0===w&&(w=1),n%w==0)for(E-=E/f,(A=(T-=T/g)>>p)<=1&&(A=0),l=0;l<A;l++)S[l]=E*((A*A-l*l)*m/(A*A))}(),function(){for(var e=0;e<i;e++)n[e][0]>>=o,n[e][1]>>=o,n[e][2]>>=o,n[e][3]=e}(),function(){var e,t,r,o,s,u,l=0,c=0;for(e=0;e<i;e++){for(s=e,u=(r=n[e])[1],t=e+1;t<i;t++)(o=n[t])[1]<u&&(s=t,u=o[1]);if(o=n[s],e!=s&&(t=o[0],o[0]=r[0],r[0]=t,t=o[1],o[1]=r[1],r[1]=t,t=o[2],o[2]=r[2],r[2]=t,t=o[3],o[3]=r[3],r[3]=t),u!=l){for(E[l]=c+e>>1,t=l+1;t<u;t++)E[t]=e;l=u,c=e}}for(E[l]=c+a>>1,t=l+1;t<256;t++)E[t]=a}()},this.getColormap=function(){for(var e=[],t=[],r=0;r<i;r++)t[n[r][3]]=r;for(var a=0,o=0;o<i;o++){var s=t[o];e[a++]=n[s][0],e[a++]=n[s][1],e[a++]=n[s][2]}return e},this.lookupRGB=function(e,t,r){for(var a,o,s,u=1e3,l=-1,c=E[t],f=c-1;c<i||f>=0;)c<i&&((s=(o=n[c])[1]-t)>=u?c=i:(c++,s<0&&(s=-s),(a=o[0]-e)<0&&(a=-a),(s+=a)<u&&((a=o[2]-r)<0&&(a=-a),(s+=a)<u&&(u=s,l=o[3])))),f>=0&&((s=t-(o=n[f])[1])>=u?f=-1:(f--,s<0&&(s=-s),(a=o[0]-e)<0&&(a=-a),(s+=a)<u&&((a=o[2]-r)<0&&(a=-a),(s+=a)<u&&(u=s,l=o[3]))));return l}}},{}],43:[function(e,t,n){arguments[4][14][0].apply(n,arguments)},{dup:14}],44:[function(e,t,n){arguments[4][15][0].apply(n,arguments)},{"./_stream_readable":46,"./_stream_writable":48,_process:105,"core-util-is":22,dup:15,inherits:52}],45:[function(e,t,n){arguments[4][16][0].apply(n,arguments)},{"./_stream_transform":47,"core-util-is":22,dup:16,inherits:52}],46:[function(e,t,n){(function(n){t.exports=f;var r=e("isarray"),i=e("buffer").Buffer;f.ReadableState=c;var a=e("events").EventEmitter;a.listenerCount||(a.listenerCount=function(e,t){return e.listeners(t).length});var o,s=e("stream"),u=e("core-util-is");u.inherits=e("inherits");var l=e("util");function c(t,n){var r=e("./_stream_duplex"),i=(t=t||{}).highWaterMark,a=t.objectMode?16:16384;this.highWaterMark=i||0===i?i:a,this.highWaterMark=~~this.highWaterMark,this.buffer=[],this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.objectMode=!!t.objectMode,n instanceof r&&(this.objectMode=this.objectMode||!!t.readableObjectMode),this.defaultEncoding=t.defaultEncoding||"utf8",this.ranOut=!1,this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,t.encoding&&(o||(o=e("string_decoder/").StringDecoder),this.decoder=new o(t.encoding),this.encoding=t.encoding)}function f(t){e("./_stream_duplex");if(!(this instanceof f))return new f(t);this._readableState=new c(t,this),this.readable=!0,s.call(this)}function h(e,t,r,i,a){var o=function(e,t){var n=null;u.isBuffer(t)||u.isString(t)||u.isNullOrUndefined(t)||e.objectMode||(n=new TypeError("Invalid non-string/buffer chunk"));return n}(t,r);if(o)e.emit("error",o);else if(u.isNullOrUndefined(r))t.reading=!1,t.ended||function(e,t){if(t.decoder&&!t.ended){var n=t.decoder.end();n&&n.length&&(t.buffer.push(n),t.length+=t.objectMode?1:n.length)}t.ended=!0,g(e)}(e,t);else if(t.objectMode||r&&r.length>0)if(t.ended&&!a){var s=new Error("stream.push() after EOF");e.emit("error",s)}else if(t.endEmitted&&a){s=new Error("stream.unshift() after end event");e.emit("error",s)}else!t.decoder||a||i||(r=t.decoder.write(r)),a||(t.reading=!1),t.flowing&&0===t.length&&!t.sync?(e.emit("data",r),e.read(0)):(t.length+=t.objectMode?1:r.length,a?t.buffer.unshift(r):t.buffer.push(r),t.needReadable&&g(e)),function(e,t){t.readingMore||(t.readingMore=!0,n.nextTick(function(){!function(e,t){var n=t.length;for(;!t.reading&&!t.flowing&&!t.ended&&t.length<t.highWaterMark&&(l("maybeReadMore read 0"),e.read(0),n!==t.length);)n=t.length;t.readingMore=!1}(e,t)}))}(e,t);else a||(t.reading=!1);return function(e){return!e.ended&&(e.needReadable||e.length<e.highWaterMark||0===e.length)}(t)}l=l&&l.debuglog?l.debuglog("stream"):function(){},u.inherits(f,s),f.prototype.push=function(e,t){var n=this._readableState;return u.isString(e)&&!n.objectMode&&(t=t||n.defaultEncoding)!==n.encoding&&(e=new i(e,t),t=""),h(this,n,e,t,!1)},f.prototype.unshift=function(e){return h(this,this._readableState,e,"",!0)},f.prototype.setEncoding=function(t){return o||(o=e("string_decoder/").StringDecoder),this._readableState.decoder=new o(t),this._readableState.encoding=t,this};var p=8388608;function d(e,t){return 0===t.length&&t.ended?0:t.objectMode?0===e?0:1:isNaN(e)||u.isNull(e)?t.flowing&&t.buffer.length?t.buffer[0].length:t.length:e<=0?0:(e>t.highWaterMark&&(t.highWaterMark=function(e){if(e>=p)e=p;else{e--;for(var t=1;t<32;t<<=1)e|=e>>t;e++}return e}(e)),e>t.length?t.ended?t.length:(t.needReadable=!0,0):e)}function g(e){var t=e._readableState;t.needReadable=!1,t.emittedReadable||(l("emitReadable",t.flowing),t.emittedReadable=!0,t.sync?n.nextTick(function(){v(e)}):v(e))}function v(e){l("emit readable"),e.emit("readable"),m(e)}function m(e){var t=e._readableState;if(l("flow",t.flowing),t.flowing)do{var n=e.read()}while(null!==n&&t.flowing)}function w(e,t){var n,r=t.buffer,a=t.length,o=!!t.decoder,s=!!t.objectMode;if(0===r.length)return null;if(0===a)n=null;else if(s)n=r.shift();else if(!e||e>=a)n=o?r.join(""):i.concat(r,a),r.length=0;else{if(e<r[0].length)n=(f=r[0]).slice(0,e),r[0]=f.slice(e);else if(e===r[0].length)n=r.shift();else{n=o?"":new i(e);for(var u=0,l=0,c=r.length;l<c&&u<e;l++){var f=r[0],h=Math.min(e-u,f.length);o?n+=f.slice(0,h):f.copy(n,u,0,h),h<f.length?r[0]=f.slice(h):r.shift(),u+=h}}}return n}function y(e){var t=e._readableState;if(t.length>0)throw new Error("endReadable called on non-empty stream");t.endEmitted||(t.ended=!0,n.nextTick(function(){t.endEmitted||0!==t.length||(t.endEmitted=!0,e.readable=!1,e.emit("end"))}))}f.prototype.read=function(e){l("read",e);var t=this._readableState,n=e;if((!u.isNumber(e)||e>0)&&(t.emittedReadable=!1),0===e&&t.needReadable&&(t.length>=t.highWaterMark||t.ended))return l("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?y(this):g(this),null;if(0===(e=d(e,t))&&t.ended)return 0===t.length&&y(this),null;var r,i=t.needReadable;return l("need readable",i),(0===t.length||t.length-e<t.highWaterMark)&&l("length less than watermark",i=!0),(t.ended||t.reading)&&l("reading or ended",i=!1),i&&(l("do read"),t.reading=!0,t.sync=!0,0===t.length&&(t.needReadable=!0),this._read(t.highWaterMark),t.sync=!1),i&&!t.reading&&(e=d(n,t)),r=e>0?w(e,t):null,u.isNull(r)&&(t.needReadable=!0,e=0),t.length-=e,0!==t.length||t.ended||(t.needReadable=!0),n!==e&&t.ended&&0===t.length&&y(this),u.isNull(r)||this.emit("data",r),r},f.prototype._read=function(e){this.emit("error",new Error("not implemented"))},f.prototype.pipe=function(e,t){var i=this,o=this._readableState;switch(o.pipesCount){case 0:o.pipes=e;break;case 1:o.pipes=[o.pipes,e];break;default:o.pipes.push(e)}o.pipesCount+=1,l("pipe count=%d opts=%j",o.pipesCount,t);var s=(!t||!1!==t.end)&&e!==n.stdout&&e!==n.stderr?c:h;function u(e){l("onunpipe"),e===i&&h()}function c(){l("onend"),e.end()}o.endEmitted?n.nextTick(s):i.once("end",s),e.on("unpipe",u);var f=function(e){return function(){var t=e._readableState;l("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&a.listenerCount(e,"data")&&(t.flowing=!0,m(e))}}(i);function h(){l("cleanup"),e.removeListener("close",g),e.removeListener("finish",v),e.removeListener("drain",f),e.removeListener("error",d),e.removeListener("unpipe",u),i.removeListener("end",c),i.removeListener("end",h),i.removeListener("data",p),!o.awaitDrain||e._writableState&&!e._writableState.needDrain||f()}function p(t){l("ondata"),!1===e.write(t)&&(l("false write response, pause",i._readableState.awaitDrain),i._readableState.awaitDrain++,i.pause())}function d(t){l("onerror",t),w(),e.removeListener("error",d),0===a.listenerCount(e,"error")&&e.emit("error",t)}function g(){e.removeListener("finish",v),w()}function v(){l("onfinish"),e.removeListener("close",g),w()}function w(){l("unpipe"),i.unpipe(e)}return e.on("drain",f),i.on("data",p),e._events&&e._events.error?r(e._events.error)?e._events.error.unshift(d):e._events.error=[d,e._events.error]:e.on("error",d),e.once("close",g),e.once("finish",v),e.emit("pipe",i),o.flowing||(l("pipe resume"),i.resume()),e},f.prototype.unpipe=function(e){var t=this._readableState;if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes?this:(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this),this);if(!e){var n=t.pipes,r=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var i=0;i<r;i++)n[i].emit("unpipe",this);return this}return-1===(i=function(e,t){for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1}(t.pipes,e))?this:(t.pipes.splice(i,1),t.pipesCount-=1,1===t.pipesCount&&(t.pipes=t.pipes[0]),e.emit("unpipe",this),this)},f.prototype.on=function(e,t){var r=s.prototype.on.call(this,e,t);if("data"===e&&!1!==this._readableState.flowing&&this.resume(),"readable"===e&&this.readable){var i=this._readableState;if(!i.readableListening)if(i.readableListening=!0,i.emittedReadable=!1,i.needReadable=!0,i.reading)i.length&&g(this);else{var a=this;n.nextTick(function(){l("readable nexttick read 0"),a.read(0)})}}return r},f.prototype.addListener=f.prototype.on,f.prototype.resume=function(){var e=this._readableState;return e.flowing||(l("resume"),e.flowing=!0,e.reading||(l("resume read 0"),this.read(0)),function(e,t){t.resumeScheduled||(t.resumeScheduled=!0,n.nextTick(function(){!function(e,t){t.resumeScheduled=!1,e.emit("resume"),m(e),t.flowing&&!t.reading&&e.read(0)}(e,t)}))}(this,e)),this},f.prototype.pause=function(){return l("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(l("pause"),this._readableState.flowing=!1,this.emit("pause")),this},f.prototype.wrap=function(e){var t=this._readableState,n=!1,r=this;for(var i in e.on("end",function(){if(l("wrapped end"),t.decoder&&!t.ended){var e=t.decoder.end();e&&e.length&&r.push(e)}r.push(null)}),e.on("data",function(i){(l("wrapped data"),t.decoder&&(i=t.decoder.write(i)),i&&(t.objectMode||i.length))&&(r.push(i)||(n=!0,e.pause()))}),e)u.isFunction(e[i])&&u.isUndefined(this[i])&&(this[i]=function(t){return function(){return e[t].apply(e,arguments)}}(i));return function(e,t){for(var n=0,r=e.length;n<r;n++)t(e[n],n)}(["error","close","destroy","pause","resume"],function(t){e.on(t,r.emit.bind(r,t))}),r._read=function(t){l("wrapped _read",t),n&&(n=!1,e.resume())},r},f._fromList=w}).call(this,e("_process"))},{"./_stream_duplex":44,_process:105,buffer:8,"core-util-is":22,events:29,inherits:52,isarray:43,stream:122,"string_decoder/":50,util:4}],47:[function(e,t,n){t.exports=o;var r=e("./_stream_duplex"),i=e("core-util-is");function a(e,t){this.afterTransform=function(e,n){return function(e,t,n){var r=e._transformState;r.transforming=!1;var a=r.writecb;if(!a)return e.emit("error",new Error("no writecb in Transform class"));r.writechunk=null,r.writecb=null,i.isNullOrUndefined(n)||e.push(n);a&&a(t);var o=e._readableState;o.reading=!1,(o.needReadable||o.length<o.highWaterMark)&&e._read(o.highWaterMark)}(t,e,n)},this.needTransform=!1,this.transforming=!1,this.writecb=null,this.writechunk=null}function o(e){if(!(this instanceof o))return new o(e);r.call(this,e),this._transformState=new a(e,this);var t=this;this._readableState.needReadable=!0,this._readableState.sync=!1,this.once("prefinish",function(){i.isFunction(this._flush)?this._flush(function(e){s(t,e)}):s(t)})}function s(e,t){if(t)return e.emit("error",t);var n=e._writableState,r=e._transformState;if(n.length)throw new Error("calling transform done when ws.length != 0");if(r.transforming)throw new Error("calling transform done when still transforming");return e.push(null)}i.inherits=e("inherits"),i.inherits(o,r),o.prototype.push=function(e,t){return this._transformState.needTransform=!1,r.prototype.push.call(this,e,t)},o.prototype._transform=function(e,t,n){throw new Error("not implemented")},o.prototype._write=function(e,t,n){var r=this._transformState;if(r.writecb=n,r.writechunk=e,r.writeencoding=t,!r.transforming){var i=this._readableState;(r.needTransform||i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}},o.prototype._read=function(e){var t=this._transformState;i.isNull(t.writechunk)||!t.writecb||t.transforming?t.needTransform=!0:(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform))}},{"./_stream_duplex":44,"core-util-is":22,inherits:52}],48:[function(e,t,n){(function(n){t.exports=s;var r=e("buffer").Buffer;s.WritableState=o;var i=e("core-util-is");i.inherits=e("inherits");var a=e("stream");function o(t,r){var i=e("./_stream_duplex"),a=(t=t||{}).highWaterMark,o=t.objectMode?16:16384;this.highWaterMark=a||0===a?a:o,this.objectMode=!!t.objectMode,r instanceof i&&(this.objectMode=this.objectMode||!!t.writableObjectMode),this.highWaterMark=~~this.highWaterMark,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1;var s=!1===t.decodeStrings;this.decodeStrings=!s,this.defaultEncoding=t.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){!function(e,t){var r=e._writableState,i=r.sync,a=r.writecb;if(function(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}(r),t)!function(e,t,r,i,a){r?n.nextTick(function(){t.pendingcb--,a(i)}):(t.pendingcb--,a(i));e._writableState.errorEmitted=!0,e.emit("error",i)}(e,r,i,t,a);else{var o=f(e,r);o||r.corked||r.bufferProcessing||!r.buffer.length||c(e,r),i?n.nextTick(function(){l(e,r,o,a)}):l(e,r,o,a)}}(r,e)},this.writecb=null,this.writelen=0,this.buffer=[],this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1}function s(t){var n=e("./_stream_duplex");if(!(this instanceof s||this instanceof n))return new s(t);this._writableState=new o(t,this),this.writable=!0,a.call(this)}function u(e,t,n,r,i,a,o){t.writelen=r,t.writecb=o,t.writing=!0,t.sync=!0,n?e._writev(i,t.onwrite):e._write(i,a,t.onwrite),t.sync=!1}function l(e,t,n,r){n||function(e,t){0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}(e,t),t.pendingcb--,r(),p(e,t)}function c(e,t){if(t.bufferProcessing=!0,e._writev&&t.buffer.length>1){for(var n=[],r=0;r<t.buffer.length;r++)n.push(t.buffer[r].callback);t.pendingcb++,u(e,t,!0,t.length,t.buffer,"",function(e){for(var r=0;r<n.length;r++)t.pendingcb--,n[r](e)}),t.buffer=[]}else{for(r=0;r<t.buffer.length;r++){var i=t.buffer[r],a=i.chunk,o=i.encoding,s=i.callback,l=t.objectMode?1:a.length;if(u(e,t,!1,l,a,o,s),t.writing){r++;break}}r<t.buffer.length?t.buffer=t.buffer.slice(r):t.buffer.length=0}t.bufferProcessing=!1}function f(e,t){return t.ending&&0===t.length&&!t.finished&&!t.writing}function h(e,t){t.prefinished||(t.prefinished=!0,e.emit("prefinish"))}function p(e,t){var n=f(0,t);return n&&(0===t.pendingcb?(h(e,t),t.finished=!0,e.emit("finish")):h(e,t)),n}i.inherits(s,a),s.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe. Not readable."))},s.prototype.write=function(e,t,a){var o=this._writableState,s=!1;return i.isFunction(t)&&(a=t,t=null),i.isBuffer(e)?t="buffer":t||(t=o.defaultEncoding),i.isFunction(a)||(a=function(){}),o.ended?function(e,t,r){var i=new Error("write after end");e.emit("error",i),n.nextTick(function(){r(i)})}(this,0,a):function(e,t,r,a){var o=!0;if(!(i.isBuffer(r)||i.isString(r)||i.isNullOrUndefined(r)||t.objectMode)){var s=new TypeError("Invalid non-string/buffer chunk");e.emit("error",s),n.nextTick(function(){a(s)}),o=!1}return o}(this,o,e,a)&&(o.pendingcb++,s=function(e,t,n,a,o){n=function(e,t,n){return!e.objectMode&&!1!==e.decodeStrings&&i.isString(t)&&(t=new r(t,n)),t}(t,n,a),i.isBuffer(n)&&(a="buffer");var s=t.objectMode?1:n.length;t.length+=s;var l=t.length<t.highWaterMark;l||(t.needDrain=!0);t.writing||t.corked?t.buffer.push(new function(e,t,n){this.chunk=e,this.encoding=t,this.callback=n}(n,a,o)):u(e,t,!1,s,n,a,o);return l}(this,o,e,t,a)),s},s.prototype.cork=function(){this._writableState.corked++},s.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,e.writing||e.corked||e.finished||e.bufferProcessing||!e.buffer.length||c(this,e))},s.prototype._write=function(e,t,n){n(new Error("not implemented"))},s.prototype._writev=null,s.prototype.end=function(e,t,r){var a=this._writableState;i.isFunction(e)?(r=e,e=null,t=null):i.isFunction(t)&&(r=t,t=null),i.isNullOrUndefined(e)||this.write(e,t),a.corked&&(a.corked=1,this.uncork()),a.ending||a.finished||function(e,t,r){t.ending=!0,p(e,t),r&&(t.finished?n.nextTick(r):e.once("finish",r));t.ended=!0}(this,a,r)}}).call(this,e("_process"))},{"./_stream_duplex":44,_process:105,buffer:8,"core-util-is":22,inherits:52,stream:122}],49:[function(e,t,n){(function(r){(n=t.exports=e("./lib/_stream_readable.js")).Stream=e("stream"),n.Readable=n,n.Writable=e("./lib/_stream_writable.js"),n.Duplex=e("./lib/_stream_duplex.js"),n.Transform=e("./lib/_stream_transform.js"),n.PassThrough=e("./lib/_stream_passthrough.js"),r.browser||"disable"!==r.env.READABLE_STREAM||(t.exports=e("stream"))}).call(this,e("_process"))},{"./lib/_stream_duplex.js":44,"./lib/_stream_passthrough.js":45,"./lib/_stream_readable.js":46,"./lib/_stream_transform.js":47,"./lib/_stream_writable.js":48,_process:105,stream:122}],50:[function(e,t,n){arguments[4][21][0].apply(n,arguments)},{buffer:8,dup:21}],51:[function(e,t,n){n.read=function(e,t,n,r,i){var a,o,s=8*i-r-1,u=(1<<s)-1,l=u>>1,c=-7,f=n?i-1:0,h=n?-1:1,p=e[t+f];for(f+=h,a=p&(1<<-c)-1,p>>=-c,c+=s;c>0;a=256*a+e[t+f],f+=h,c-=8);for(o=a&(1<<-c)-1,a>>=-c,c+=r;c>0;o=256*o+e[t+f],f+=h,c-=8);if(0===a)a=1-l;else{if(a===u)return o?NaN:1/0*(p?-1:1);o+=Math.pow(2,r),a-=l}return(p?-1:1)*o*Math.pow(2,a-r)},n.write=function(e,t,n,r,i,a){var o,s,u,l=8*a-i-1,c=(1<<l)-1,f=c>>1,h=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,p=r?0:a-1,d=r?1:-1,g=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,o=c):(o=Math.floor(Math.log(t)/Math.LN2),t*(u=Math.pow(2,-o))<1&&(o--,u*=2),(t+=o+f>=1?h/u:h*Math.pow(2,1-f))*u>=2&&(o++,u/=2),o+f>=c?(s=0,o=c):o+f>=1?(s=(t*u-1)*Math.pow(2,i),o+=f):(s=t*Math.pow(2,f-1)*Math.pow(2,i),o=0));i>=8;e[n+p]=255&s,p+=d,s/=256,i-=8);for(o=o<<i|s,l+=i;l>0;e[n+p]=255&o,p+=d,o/=256,l-=8);e[n+p-d]|=128*g}},{}],52:[function(e,t,n){"function"==typeof Object.create?t.exports=function(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}:t.exports=function(e,t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}},{}],53:[function(e,t,n){"use strict";t.exports=function(e){for(var t=new Array(e),n=0;n<e;++n)t[n]=n;return t}},{}],54:[function(e,t,n){function r(e){return!!e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}t.exports=function(e){return null!=e&&(r(e)||function(e){return"function"==typeof e.readFloatLE&&"function"==typeof e.slice&&r(e.slice(0,0))}(e)||!!e._isBuffer)}},{}],55:[function(e,t,n){arguments[4][9][0].apply(n,arguments)},{dup:9}],56:[function(e,t,n){var r,i;r="undefined"!=typeof window?window:this,i=function(e,t){var n=[],r=e.document,i=n.slice,a=n.concat,o=n.push,s=n.indexOf,u={},l=u.toString,c=u.hasOwnProperty,f={},h=function(e,t){return new h.fn.init(e,t)},p=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,d=/^-ms-/,g=/-([\da-z])/gi,v=function(e,t){return t.toUpperCase()};function m(e){var t=!!e&&"length"in e&&e.length,n=h.type(e);return"function"!==n&&!h.isWindow(e)&&("array"===n||0===t||"number"==typeof t&&t>0&&t-1 in e)}h.fn=h.prototype={jquery:"2.2.4",constructor:h,selector:"",length:0,toArray:function(){return i.call(this)},get:function(e){return null!=e?e<0?this[e+this.length]:this[e]:i.call(this)},pushStack:function(e){var t=h.merge(this.constructor(),e);return t.prevObject=this,t.context=this.context,t},each:function(e){return h.each(this,e)},map:function(e){return this.pushStack(h.map(this,function(t,n){return e.call(t,n,t)}))},slice:function(){return this.pushStack(i.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(e){var t=this.length,n=+e+(e<0?t:0);return this.pushStack(n>=0&&n<t?[this[n]]:[])},end:function(){return this.prevObject||this.constructor()},push:o,sort:n.sort,splice:n.splice},h.extend=h.fn.extend=function(){var e,t,n,r,i,a,o=arguments[0]||{},s=1,u=arguments.length,l=!1;for("boolean"==typeof o&&(l=o,o=arguments[s]||{},s++),"object"==typeof o||h.isFunction(o)||(o={}),s===u&&(o=this,s--);s<u;s++)if(null!=(e=arguments[s]))for(t in e)n=o[t],o!==(r=e[t])&&(l&&r&&(h.isPlainObject(r)||(i=h.isArray(r)))?(i?(i=!1,a=n&&h.isArray(n)?n:[]):a=n&&h.isPlainObject(n)?n:{},o[t]=h.extend(l,a,r)):void 0!==r&&(o[t]=r));return o},h.extend({expando:"jQuery"+("2.2.4"+Math.random()).replace(/\D/g,""),isReady:!0,error:function(e){throw new Error(e)},noop:function(){},isFunction:function(e){return"function"===h.type(e)},isArray:Array.isArray,isWindow:function(e){return null!=e&&e===e.window},isNumeric:function(e){var t=e&&e.toString();return!h.isArray(e)&&t-parseFloat(t)+1>=0},isPlainObject:function(e){var t;if("object"!==h.type(e)||e.nodeType||h.isWindow(e))return!1;if(e.constructor&&!c.call(e,"constructor")&&!c.call(e.constructor.prototype||{},"isPrototypeOf"))return!1;for(t in e);return void 0===t||c.call(e,t)},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},type:function(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?u[l.call(e)]||"object":typeof e},globalEval:function(e){var t,n=eval;(e=h.trim(e))&&(1===e.indexOf("use strict")?((t=r.createElement("script")).text=e,r.head.appendChild(t).parentNode.removeChild(t)):n(e))},camelCase:function(e){return e.replace(d,"ms-").replace(g,v)},nodeName:function(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()},each:function(e,t){var n,r=0;if(m(e))for(n=e.length;r<n&&!1!==t.call(e[r],r,e[r]);r++);else for(r in e)if(!1===t.call(e[r],r,e[r]))break;return e},trim:function(e){return null==e?"":(e+"").replace(p,"")},makeArray:function(e,t){var n=t||[];return null!=e&&(m(Object(e))?h.merge(n,"string"==typeof e?[e]:e):o.call(n,e)),n},inArray:function(e,t,n){return null==t?-1:s.call(t,e,n)},merge:function(e,t){for(var n=+t.length,r=0,i=e.length;r<n;r++)e[i++]=t[r];return e.length=i,e},grep:function(e,t,n){for(var r=[],i=0,a=e.length,o=!n;i<a;i++)!t(e[i],i)!==o&&r.push(e[i]);return r},map:function(e,t,n){var r,i,o=0,s=[];if(m(e))for(r=e.length;o<r;o++)null!=(i=t(e[o],o,n))&&s.push(i);else for(o in e)null!=(i=t(e[o],o,n))&&s.push(i);return a.apply([],s)},guid:1,proxy:function(e,t){var n,r,a;if("string"==typeof t&&(n=e[t],t=e,e=n),h.isFunction(e))return r=i.call(arguments,2),(a=function(){return e.apply(t||this,r.concat(i.call(arguments)))}).guid=e.guid=e.guid||h.guid++,a},now:Date.now,support:f}),"function"==typeof Symbol&&(h.fn[Symbol.iterator]=n[Symbol.iterator]),h.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(e,t){u["[object "+t+"]"]=t.toLowerCase()});var w=function(e){var t,n,r,i,a,o,s,u,l,c,f,h,p,d,g,v,m,w,y,_="sizzle"+1*new Date,b=e.document,x=0,k=0,E=ae(),T=ae(),A=ae(),S=function(e,t){return e===t&&(f=!0),0},C=1<<31,M={}.hasOwnProperty,R=[],j=R.pop,L=R.push,I=R.push,B=R.slice,D=function(e,t){for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1},N="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",O="[\\x20\\t\\r\\n\\f]",P="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",z="\\["+O+"*("+P+")(?:"+O+"*([*^$|!~]?=)"+O+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+P+"))|)"+O+"*\\]",F=":("+P+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+z+")*)|.*)\\)|)",U=new RegExp(O+"+","g"),q=new RegExp("^"+O+"+|((?:^|[^\\\\])(?:\\\\.)*)"+O+"+$","g"),W=new RegExp("^"+O+"*,"+O+"*"),H=new RegExp("^"+O+"*([>+~]|"+O+")"+O+"*"),V=new RegExp("="+O+"*([^\\]'\"]*?)"+O+"*\\]","g"),Z=new RegExp(F),G=new RegExp("^"+P+"$"),Y={ID:new RegExp("^#("+P+")"),CLASS:new RegExp("^\\.("+P+")"),TAG:new RegExp("^("+P+"|[*])"),ATTR:new RegExp("^"+z),PSEUDO:new RegExp("^"+F),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+O+"*(even|odd|(([+-]|)(\\d*)n|)"+O+"*(?:([+-]|)"+O+"*(\\d+)|))"+O+"*\\)|)","i"),bool:new RegExp("^(?:"+N+")$","i"),needsContext:new RegExp("^"+O+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+O+"*((?:-\\d)?\\d*)"+O+"*\\)|)(?=[^-]|$)","i")},$=/^(?:input|select|textarea|button)$/i,X=/^h\d$/i,K=/^[^{]+\{\s*\[native \w/,J=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,Q=/[+~]/,ee=/'|\\/g,te=new RegExp("\\\\([\\da-f]{1,6}"+O+"?|("+O+")|.)","ig"),ne=function(e,t,n){var r="0x"+t-65536;return r!=r||n?t:r<0?String.fromCharCode(r+65536):String.fromCharCode(r>>10|55296,1023&r|56320)},re=function(){h()};try{I.apply(R=B.call(b.childNodes),b.childNodes),R[b.childNodes.length].nodeType}catch(e){I={apply:R.length?function(e,t){L.apply(e,B.call(t))}:function(e,t){for(var n=e.length,r=0;e[n++]=t[r++];);e.length=n-1}}}function ie(e,t,r,i){var a,s,l,c,f,d,m,w,x=t&&t.ownerDocument,k=t?t.nodeType:9;if(r=r||[],"string"!=typeof e||!e||1!==k&&9!==k&&11!==k)return r;if(!i&&((t?t.ownerDocument||t:b)!==p&&h(t),t=t||p,g)){if(11!==k&&(d=J.exec(e)))if(a=d[1]){if(9===k){if(!(l=t.getElementById(a)))return r;if(l.id===a)return r.push(l),r}else if(x&&(l=x.getElementById(a))&&y(t,l)&&l.id===a)return r.push(l),r}else{if(d[2])return I.apply(r,t.getElementsByTagName(e)),r;if((a=d[3])&&n.getElementsByClassName&&t.getElementsByClassName)return I.apply(r,t.getElementsByClassName(a)),r}if(n.qsa&&!A[e+" "]&&(!v||!v.test(e))){if(1!==k)x=t,w=e;else if("object"!==t.nodeName.toLowerCase()){for((c=t.getAttribute("id"))?c=c.replace(ee,"\\$&"):t.setAttribute("id",c=_),s=(m=o(e)).length,f=G.test(c)?"#"+c:"[id='"+c+"']";s--;)m[s]=f+" "+ge(m[s]);w=m.join(","),x=Q.test(e)&&pe(t.parentNode)||t}if(w)try{return I.apply(r,x.querySelectorAll(w)),r}catch(e){}finally{c===_&&t.removeAttribute("id")}}}return u(e.replace(q,"$1"),t,r,i)}function ae(){var e=[];return function t(n,i){return e.push(n+" ")>r.cacheLength&&delete t[e.shift()],t[n+" "]=i}}function oe(e){return e[_]=!0,e}function se(e){var t=p.createElement("div");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function ue(e,t){for(var n=e.split("|"),i=n.length;i--;)r.attrHandle[n[i]]=t}function le(e,t){var n=t&&e,r=n&&1===e.nodeType&&1===t.nodeType&&(~t.sourceIndex||C)-(~e.sourceIndex||C);if(r)return r;if(n)for(;n=n.nextSibling;)if(n===t)return-1;return e?1:-1}function ce(e){return function(t){return"input"===t.nodeName.toLowerCase()&&t.type===e}}function fe(e){return function(t){var n=t.nodeName.toLowerCase();return("input"===n||"button"===n)&&t.type===e}}function he(e){return oe(function(t){return t=+t,oe(function(n,r){for(var i,a=e([],n.length,t),o=a.length;o--;)n[i=a[o]]&&(n[i]=!(r[i]=n[i]))})})}function pe(e){return e&&void 0!==e.getElementsByTagName&&e}for(t in n=ie.support={},a=ie.isXML=function(e){var t=e&&(e.ownerDocument||e).documentElement;return!!t&&"HTML"!==t.nodeName},h=ie.setDocument=function(e){var t,i,o=e?e.ownerDocument||e:b;return o!==p&&9===o.nodeType&&o.documentElement?(d=(p=o).documentElement,g=!a(p),(i=p.defaultView)&&i.top!==i&&(i.addEventListener?i.addEventListener("unload",re,!1):i.attachEvent&&i.attachEvent("onunload",re)),n.attributes=se(function(e){return e.className="i",!e.getAttribute("className")}),n.getElementsByTagName=se(function(e){return e.appendChild(p.createComment("")),!e.getElementsByTagName("*").length}),n.getElementsByClassName=K.test(p.getElementsByClassName),n.getById=se(function(e){return d.appendChild(e).id=_,!p.getElementsByName||!p.getElementsByName(_).length}),n.getById?(r.find.ID=function(e,t){if(void 0!==t.getElementById&&g){var n=t.getElementById(e);return n?[n]:[]}},r.filter.ID=function(e){var t=e.replace(te,ne);return function(e){return e.getAttribute("id")===t}}):(delete r.find.ID,r.filter.ID=function(e){var t=e.replace(te,ne);return function(e){var n=void 0!==e.getAttributeNode&&e.getAttributeNode("id");return n&&n.value===t}}),r.find.TAG=n.getElementsByTagName?function(e,t){return void 0!==t.getElementsByTagName?t.getElementsByTagName(e):n.qsa?t.querySelectorAll(e):void 0}:function(e,t){var n,r=[],i=0,a=t.getElementsByTagName(e);if("*"===e){for(;n=a[i++];)1===n.nodeType&&r.push(n);return r}return a},r.find.CLASS=n.getElementsByClassName&&function(e,t){if(void 0!==t.getElementsByClassName&&g)return t.getElementsByClassName(e)},m=[],v=[],(n.qsa=K.test(p.querySelectorAll))&&(se(function(e){d.appendChild(e).innerHTML="<a id='"+_+"'></a><select id='"+_+"-\r\\' msallowcapture=''><option selected=''></option></select>",e.querySelectorAll("[msallowcapture^='']").length&&v.push("[*^$]="+O+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||v.push("\\["+O+"*(?:value|"+N+")"),e.querySelectorAll("[id~="+_+"-]").length||v.push("~="),e.querySelectorAll(":checked").length||v.push(":checked"),e.querySelectorAll("a#"+_+"+*").length||v.push(".#.+[+~]")}),se(function(e){var t=p.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&v.push("name"+O+"*[*^$|!~]?="),e.querySelectorAll(":enabled").length||v.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),v.push(",.*:")})),(n.matchesSelector=K.test(w=d.matches||d.webkitMatchesSelector||d.mozMatchesSelector||d.oMatchesSelector||d.msMatchesSelector))&&se(function(e){n.disconnectedMatch=w.call(e,"div"),w.call(e,"[s!='']:x"),m.push("!=",F)}),v=v.length&&new RegExp(v.join("|")),m=m.length&&new RegExp(m.join("|")),t=K.test(d.compareDocumentPosition),y=t||K.test(d.contains)?function(e,t){var n=9===e.nodeType?e.documentElement:e,r=t&&t.parentNode;return e===r||!(!r||1!==r.nodeType||!(n.contains?n.contains(r):e.compareDocumentPosition&&16&e.compareDocumentPosition(r)))}:function(e,t){if(t)for(;t=t.parentNode;)if(t===e)return!0;return!1},S=t?function(e,t){if(e===t)return f=!0,0;var r=!e.compareDocumentPosition-!t.compareDocumentPosition;return r||(1&(r=(e.ownerDocument||e)===(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!n.sortDetached&&t.compareDocumentPosition(e)===r?e===p||e.ownerDocument===b&&y(b,e)?-1:t===p||t.ownerDocument===b&&y(b,t)?1:c?D(c,e)-D(c,t):0:4&r?-1:1)}:function(e,t){if(e===t)return f=!0,0;var n,r=0,i=e.parentNode,a=t.parentNode,o=[e],s=[t];if(!i||!a)return e===p?-1:t===p?1:i?-1:a?1:c?D(c,e)-D(c,t):0;if(i===a)return le(e,t);for(n=e;n=n.parentNode;)o.unshift(n);for(n=t;n=n.parentNode;)s.unshift(n);for(;o[r]===s[r];)r++;return r?le(o[r],s[r]):o[r]===b?-1:s[r]===b?1:0},p):p},ie.matches=function(e,t){return ie(e,null,null,t)},ie.matchesSelector=function(e,t){if((e.ownerDocument||e)!==p&&h(e),t=t.replace(V,"='$1']"),n.matchesSelector&&g&&!A[t+" "]&&(!m||!m.test(t))&&(!v||!v.test(t)))try{var r=w.call(e,t);if(r||n.disconnectedMatch||e.document&&11!==e.document.nodeType)return r}catch(e){}return ie(t,p,null,[e]).length>0},ie.contains=function(e,t){return(e.ownerDocument||e)!==p&&h(e),y(e,t)},ie.attr=function(e,t){(e.ownerDocument||e)!==p&&h(e);var i=r.attrHandle[t.toLowerCase()],a=i&&M.call(r.attrHandle,t.toLowerCase())?i(e,t,!g):void 0;return void 0!==a?a:n.attributes||!g?e.getAttribute(t):(a=e.getAttributeNode(t))&&a.specified?a.value:null},ie.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},ie.uniqueSort=function(e){var t,r=[],i=0,a=0;if(f=!n.detectDuplicates,c=!n.sortStable&&e.slice(0),e.sort(S),f){for(;t=e[a++];)t===e[a]&&(i=r.push(a));for(;i--;)e.splice(r[i],1)}return c=null,e},i=ie.getText=function(e){var t,n="",r=0,a=e.nodeType;if(a){if(1===a||9===a||11===a){if("string"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)n+=i(e)}else if(3===a||4===a)return e.nodeValue}else for(;t=e[r++];)n+=i(t);return n},(r=ie.selectors={cacheLength:50,createPseudo:oe,match:Y,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(te,ne),e[3]=(e[3]||e[4]||e[5]||"").replace(te,ne),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||ie.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&ie.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return Y.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&Z.test(n)&&(t=o(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(te,ne).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=E[e+" "];return t||(t=new RegExp("(^|"+O+")"+e+"("+O+"|$)"))&&E(e,function(e){return t.test("string"==typeof e.className&&e.className||void 0!==e.getAttribute&&e.getAttribute("class")||"")})},ATTR:function(e,t,n){return function(r){var i=ie.attr(r,e);return null==i?"!="===t:!t||(i+="","="===t?i===n:"!="===t?i!==n:"^="===t?n&&0===i.indexOf(n):"*="===t?n&&i.indexOf(n)>-1:"$="===t?n&&i.slice(-n.length)===n:"~="===t?(" "+i.replace(U," ")+" ").indexOf(n)>-1:"|="===t&&(i===n||i.slice(0,n.length+1)===n+"-"))}},CHILD:function(e,t,n,r,i){var a="nth"!==e.slice(0,3),o="last"!==e.slice(-4),s="of-type"===t;return 1===r&&0===i?function(e){return!!e.parentNode}:function(t,n,u){var l,c,f,h,p,d,g=a!==o?"nextSibling":"previousSibling",v=t.parentNode,m=s&&t.nodeName.toLowerCase(),w=!u&&!s,y=!1;if(v){if(a){for(;g;){for(h=t;h=h[g];)if(s?h.nodeName.toLowerCase()===m:1===h.nodeType)return!1;d=g="only"===e&&!d&&"nextSibling"}return!0}if(d=[o?v.firstChild:v.lastChild],o&&w){for(y=(p=(l=(c=(f=(h=v)[_]||(h[_]={}))[h.uniqueID]||(f[h.uniqueID]={}))[e]||[])[0]===x&&l[1])&&l[2],h=p&&v.childNodes[p];h=++p&&h&&h[g]||(y=p=0)||d.pop();)if(1===h.nodeType&&++y&&h===t){c[e]=[x,p,y];break}}else if(w&&(y=p=(l=(c=(f=(h=t)[_]||(h[_]={}))[h.uniqueID]||(f[h.uniqueID]={}))[e]||[])[0]===x&&l[1]),!1===y)for(;(h=++p&&h&&h[g]||(y=p=0)||d.pop())&&((s?h.nodeName.toLowerCase()!==m:1!==h.nodeType)||!++y||(w&&((c=(f=h[_]||(h[_]={}))[h.uniqueID]||(f[h.uniqueID]={}))[e]=[x,y]),h!==t)););return(y-=i)===r||y%r==0&&y/r>=0}}},PSEUDO:function(e,t){var n,i=r.pseudos[e]||r.setFilters[e.toLowerCase()]||ie.error("unsupported pseudo: "+e);return i[_]?i(t):i.length>1?(n=[e,e,"",t],r.setFilters.hasOwnProperty(e.toLowerCase())?oe(function(e,n){for(var r,a=i(e,t),o=a.length;o--;)e[r=D(e,a[o])]=!(n[r]=a[o])}):function(e){return i(e,0,n)}):i}},pseudos:{not:oe(function(e){var t=[],n=[],r=s(e.replace(q,"$1"));return r[_]?oe(function(e,t,n,i){for(var a,o=r(e,null,i,[]),s=e.length;s--;)(a=o[s])&&(e[s]=!(t[s]=a))}):function(e,i,a){return t[0]=e,r(t,null,a,n),t[0]=null,!n.pop()}}),has:oe(function(e){return function(t){return ie(e,t).length>0}}),contains:oe(function(e){return e=e.replace(te,ne),function(t){return(t.textContent||t.innerText||i(t)).indexOf(e)>-1}}),lang:oe(function(e){return G.test(e||"")||ie.error("unsupported lang: "+e),e=e.replace(te,ne).toLowerCase(),function(t){var n;do{if(n=g?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return(n=n.toLowerCase())===e||0===n.indexOf(e+"-")}while((t=t.parentNode)&&1===t.nodeType);return!1}}),target:function(t){var n=e.location&&e.location.hash;return n&&n.slice(1)===t.id},root:function(e){return e===d},focus:function(e){return e===p.activeElement&&(!p.hasFocus||p.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:function(e){return!1===e.disabled},disabled:function(e){return!0===e.disabled},checked:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&!!e.checked||"option"===t&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,!0===e.selected},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:function(e){return!r.pseudos.empty(e)},header:function(e){return X.test(e.nodeName)},input:function(e){return $.test(e.nodeName)},button:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&"button"===e.type||"button"===t},text:function(e){var t;return"input"===e.nodeName.toLowerCase()&&"text"===e.type&&(null==(t=e.getAttribute("type"))||"text"===t.toLowerCase())},first:he(function(){return[0]}),last:he(function(e,t){return[t-1]}),eq:he(function(e,t,n){return[n<0?n+t:n]}),even:he(function(e,t){for(var n=0;n<t;n+=2)e.push(n);return e}),odd:he(function(e,t){for(var n=1;n<t;n+=2)e.push(n);return e}),lt:he(function(e,t,n){for(var r=n<0?n+t:n;--r>=0;)e.push(r);return e}),gt:he(function(e,t,n){for(var r=n<0?n+t:n;++r<t;)e.push(r);return e})}}).pseudos.nth=r.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})r.pseudos[t]=ce(t);for(t in{submit:!0,reset:!0})r.pseudos[t]=fe(t);function de(){}function ge(e){for(var t=0,n=e.length,r="";t<n;t++)r+=e[t].value;return r}function ve(e,t,n){var r=t.dir,i=n&&"parentNode"===r,a=k++;return t.first?function(t,n,a){for(;t=t[r];)if(1===t.nodeType||i)return e(t,n,a)}:function(t,n,o){var s,u,l,c=[x,a];if(o){for(;t=t[r];)if((1===t.nodeType||i)&&e(t,n,o))return!0}else for(;t=t[r];)if(1===t.nodeType||i){if((s=(u=(l=t[_]||(t[_]={}))[t.uniqueID]||(l[t.uniqueID]={}))[r])&&s[0]===x&&s[1]===a)return c[2]=s[2];if(u[r]=c,c[2]=e(t,n,o))return!0}}}function me(e){return e.length>1?function(t,n,r){for(var i=e.length;i--;)if(!e[i](t,n,r))return!1;return!0}:e[0]}function we(e,t,n,r,i){for(var a,o=[],s=0,u=e.length,l=null!=t;s<u;s++)(a=e[s])&&(n&&!n(a,r,i)||(o.push(a),l&&t.push(s)));return o}function ye(e,t,n,r,i,a){return r&&!r[_]&&(r=ye(r)),i&&!i[_]&&(i=ye(i,a)),oe(function(a,o,s,u){var l,c,f,h=[],p=[],d=o.length,g=a||function(e,t,n){for(var r=0,i=t.length;r<i;r++)ie(e,t[r],n);return n}(t||"*",s.nodeType?[s]:s,[]),v=!e||!a&&t?g:we(g,h,e,s,u),m=n?i||(a?e:d||r)?[]:o:v;if(n&&n(v,m,s,u),r)for(l=we(m,p),r(l,[],s,u),c=l.length;c--;)(f=l[c])&&(m[p[c]]=!(v[p[c]]=f));if(a){if(i||e){if(i){for(l=[],c=m.length;c--;)(f=m[c])&&l.push(v[c]=f);i(null,m=[],l,u)}for(c=m.length;c--;)(f=m[c])&&(l=i?D(a,f):h[c])>-1&&(a[l]=!(o[l]=f))}}else m=we(m===o?m.splice(d,m.length):m),i?i(null,o,m,u):I.apply(o,m)})}function _e(e){for(var t,n,i,a=e.length,o=r.relative[e[0].type],s=o||r.relative[" "],u=o?1:0,c=ve(function(e){return e===t},s,!0),f=ve(function(e){return D(t,e)>-1},s,!0),h=[function(e,n,r){var i=!o&&(r||n!==l)||((t=n).nodeType?c(e,n,r):f(e,n,r));return t=null,i}];u<a;u++)if(n=r.relative[e[u].type])h=[ve(me(h),n)];else{if((n=r.filter[e[u].type].apply(null,e[u].matches))[_]){for(i=++u;i<a&&!r.relative[e[i].type];i++);return ye(u>1&&me(h),u>1&&ge(e.slice(0,u-1).concat({value:" "===e[u-2].type?"*":""})).replace(q,"$1"),n,u<i&&_e(e.slice(u,i)),i<a&&_e(e=e.slice(i)),i<a&&ge(e))}h.push(n)}return me(h)}return de.prototype=r.filters=r.pseudos,r.setFilters=new de,o=ie.tokenize=function(e,t){var n,i,a,o,s,u,l,c=T[e+" "];if(c)return t?0:c.slice(0);for(s=e,u=[],l=r.preFilter;s;){for(o in n&&!(i=W.exec(s))||(i&&(s=s.slice(i[0].length)||s),u.push(a=[])),n=!1,(i=H.exec(s))&&(n=i.shift(),a.push({value:n,type:i[0].replace(q," ")}),s=s.slice(n.length)),r.filter)!(i=Y[o].exec(s))||l[o]&&!(i=l[o](i))||(n=i.shift(),a.push({value:n,type:o,matches:i}),s=s.slice(n.length));if(!n)break}return t?s.length:s?ie.error(e):T(e,u).slice(0)},s=ie.compile=function(e,t){var n,i=[],a=[],s=A[e+" "];if(!s){for(t||(t=o(e)),n=t.length;n--;)(s=_e(t[n]))[_]?i.push(s):a.push(s);(s=A(e,function(e,t){var n=t.length>0,i=e.length>0,a=function(a,o,s,u,c){var f,d,v,m=0,w="0",y=a&&[],_=[],b=l,k=a||i&&r.find.TAG("*",c),E=x+=null==b?1:Math.random()||.1,T=k.length;for(c&&(l=o===p||o||c);w!==T&&null!=(f=k[w]);w++){if(i&&f){for(d=0,o||f.ownerDocument===p||(h(f),s=!g);v=e[d++];)if(v(f,o||p,s)){u.push(f);break}c&&(x=E)}n&&((f=!v&&f)&&m--,a&&y.push(f))}if(m+=w,n&&w!==m){for(d=0;v=t[d++];)v(y,_,o,s);if(a){if(m>0)for(;w--;)y[w]||_[w]||(_[w]=j.call(u));_=we(_)}I.apply(u,_),c&&!a&&_.length>0&&m+t.length>1&&ie.uniqueSort(u)}return c&&(x=E,l=b),y};return n?oe(a):a}(a,i))).selector=e}return s},u=ie.select=function(e,t,i,a){var u,l,c,f,h,p="function"==typeof e&&e,d=!a&&o(e=p.selector||e);if(i=i||[],1===d.length){if((l=d[0]=d[0].slice(0)).length>2&&"ID"===(c=l[0]).type&&n.getById&&9===t.nodeType&&g&&r.relative[l[1].type]){if(!(t=(r.find.ID(c.matches[0].replace(te,ne),t)||[])[0]))return i;p&&(t=t.parentNode),e=e.slice(l.shift().value.length)}for(u=Y.needsContext.test(e)?0:l.length;u--&&(c=l[u],!r.relative[f=c.type]);)if((h=r.find[f])&&(a=h(c.matches[0].replace(te,ne),Q.test(l[0].type)&&pe(t.parentNode)||t))){if(l.splice(u,1),!(e=a.length&&ge(l)))return I.apply(i,a),i;break}}return(p||s(e,d))(a,t,!g,i,!t||Q.test(e)&&pe(t.parentNode)||t),i},n.sortStable=_.split("").sort(S).join("")===_,n.detectDuplicates=!!f,h(),n.sortDetached=se(function(e){return 1&e.compareDocumentPosition(p.createElement("div"))}),se(function(e){return e.innerHTML="<a href='#'></a>","#"===e.firstChild.getAttribute("href")})||ue("type|href|height|width",function(e,t,n){if(!n)return e.getAttribute(t,"type"===t.toLowerCase()?1:2)}),n.attributes&&se(function(e){return e.innerHTML="<input/>",e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")})||ue("value",function(e,t,n){if(!n&&"input"===e.nodeName.toLowerCase())return e.defaultValue}),se(function(e){return null==e.getAttribute("disabled")})||ue(N,function(e,t,n){var r;if(!n)return!0===e[t]?t.toLowerCase():(r=e.getAttributeNode(t))&&r.specified?r.value:null}),ie}(e);h.find=w,h.expr=w.selectors,h.expr[":"]=h.expr.pseudos,h.uniqueSort=h.unique=w.uniqueSort,h.text=w.getText,h.isXMLDoc=w.isXML,h.contains=w.contains;var y=function(e,t,n){for(var r=[],i=void 0!==n;(e=e[t])&&9!==e.nodeType;)if(1===e.nodeType){if(i&&h(e).is(n))break;r.push(e)}return r},_=function(e,t){for(var n=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n},b=h.expr.match.needsContext,x=/^<([\w-]+)\s*\/?>(?:<\/\1>|)$/,k=/^.[^:#\[\.,]*$/;function E(e,t,n){if(h.isFunction(t))return h.grep(e,function(e,r){return!!t.call(e,r,e)!==n});if(t.nodeType)return h.grep(e,function(e){return e===t!==n});if("string"==typeof t){if(k.test(t))return h.filter(t,e,n);t=h.filter(t,e)}return h.grep(e,function(e){return s.call(t,e)>-1!==n})}h.filter=function(e,t,n){var r=t[0];return n&&(e=":not("+e+")"),1===t.length&&1===r.nodeType?h.find.matchesSelector(r,e)?[r]:[]:h.find.matches(e,h.grep(t,function(e){return 1===e.nodeType}))},h.fn.extend({find:function(e){var t,n=this.length,r=[],i=this;if("string"!=typeof e)return this.pushStack(h(e).filter(function(){for(t=0;t<n;t++)if(h.contains(i[t],this))return!0}));for(t=0;t<n;t++)h.find(e,i[t],r);return(r=this.pushStack(n>1?h.unique(r):r)).selector=this.selector?this.selector+" "+e:e,r},filter:function(e){return this.pushStack(E(this,e||[],!1))},not:function(e){return this.pushStack(E(this,e||[],!0))},is:function(e){return!!E(this,"string"==typeof e&&b.test(e)?h(e):e||[],!1).length}});var T,A=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/;(h.fn.init=function(e,t,n){var i,a;if(!e)return this;if(n=n||T,"string"==typeof e){if(!(i="<"===e[0]&&">"===e[e.length-1]&&e.length>=3?[null,e,null]:A.exec(e))||!i[1]&&t)return!t||t.jquery?(t||n).find(e):this.constructor(t).find(e);if(i[1]){if(t=t instanceof h?t[0]:t,h.merge(this,h.parseHTML(i[1],t&&t.nodeType?t.ownerDocument||t:r,!0)),x.test(i[1])&&h.isPlainObject(t))for(i in t)h.isFunction(this[i])?this[i](t[i]):this.attr(i,t[i]);return this}return(a=r.getElementById(i[2]))&&a.parentNode&&(this.length=1,this[0]=a),this.context=r,this.selector=e,this}return e.nodeType?(this.context=this[0]=e,this.length=1,this):h.isFunction(e)?void 0!==n.ready?n.ready(e):e(h):(void 0!==e.selector&&(this.selector=e.selector,this.context=e.context),h.makeArray(e,this))}).prototype=h.fn,T=h(r);var S=/^(?:parents|prev(?:Until|All))/,C={children:!0,contents:!0,next:!0,prev:!0};function M(e,t){for(;(e=e[t])&&1!==e.nodeType;);return e}h.fn.extend({has:function(e){var t=h(e,this),n=t.length;return this.filter(function(){for(var e=0;e<n;e++)if(h.contains(this,t[e]))return!0})},closest:function(e,t){for(var n,r=0,i=this.length,a=[],o=b.test(e)||"string"!=typeof e?h(e,t||this.context):0;r<i;r++)for(n=this[r];n&&n!==t;n=n.parentNode)if(n.nodeType<11&&(o?o.index(n)>-1:1===n.nodeType&&h.find.matchesSelector(n,e))){a.push(n);break}return this.pushStack(a.length>1?h.uniqueSort(a):a)},index:function(e){return e?"string"==typeof e?s.call(h(e),this[0]):s.call(this,e.jquery?e[0]:e):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(h.uniqueSort(h.merge(this.get(),h(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),h.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return y(e,"parentNode")},parentsUntil:function(e,t,n){return y(e,"parentNode",n)},next:function(e){return M(e,"nextSibling")},prev:function(e){return M(e,"previousSibling")},nextAll:function(e){return y(e,"nextSibling")},prevAll:function(e){return y(e,"previousSibling")},nextUntil:function(e,t,n){return y(e,"nextSibling",n)},prevUntil:function(e,t,n){return y(e,"previousSibling",n)},siblings:function(e){return _((e.parentNode||{}).firstChild,e)},children:function(e){return _(e.firstChild)},contents:function(e){return e.contentDocument||h.merge([],e.childNodes)}},function(e,t){h.fn[e]=function(n,r){var i=h.map(this,t,n);return"Until"!==e.slice(-5)&&(r=n),r&&"string"==typeof r&&(i=h.filter(r,i)),this.length>1&&(C[e]||h.uniqueSort(i),S.test(e)&&i.reverse()),this.pushStack(i)}});var R,j=/\S+/g;function L(){r.removeEventListener("DOMContentLoaded",L),e.removeEventListener("load",L),h.ready()}h.Callbacks=function(e){e="string"==typeof e?function(e){var t={};return h.each(e.match(j)||[],function(e,n){t[n]=!0}),t}(e):h.extend({},e);var t,n,r,i,a=[],o=[],s=-1,u=function(){for(i=e.once,r=t=!0;o.length;s=-1)for(n=o.shift();++s<a.length;)!1===a[s].apply(n[0],n[1])&&e.stopOnFalse&&(s=a.length,n=!1);e.memory||(n=!1),t=!1,i&&(a=n?[]:"")},l={add:function(){return a&&(n&&!t&&(s=a.length-1,o.push(n)),function t(n){h.each(n,function(n,r){h.isFunction(r)?e.unique&&l.has(r)||a.push(r):r&&r.length&&"string"!==h.type(r)&&t(r)})}(arguments),n&&!t&&u()),this},remove:function(){return h.each(arguments,function(e,t){for(var n;(n=h.inArray(t,a,n))>-1;)a.splice(n,1),n<=s&&s--}),this},has:function(e){return e?h.inArray(e,a)>-1:a.length>0},empty:function(){return a&&(a=[]),this},disable:function(){return i=o=[],a=n="",this},disabled:function(){return!a},lock:function(){return i=o=[],n||(a=n=""),this},locked:function(){return!!i},fireWith:function(e,n){return i||(n=[e,(n=n||[]).slice?n.slice():n],o.push(n),t||u()),this},fire:function(){return l.fireWith(this,arguments),this},fired:function(){return!!r}};return l},h.extend({Deferred:function(e){var t=[["resolve","done",h.Callbacks("once memory"),"resolved"],["reject","fail",h.Callbacks("once memory"),"rejected"],["notify","progress",h.Callbacks("memory")]],n="pending",r={state:function(){return n},always:function(){return i.done(arguments).fail(arguments),this},then:function(){var e=arguments;return h.Deferred(function(n){h.each(t,function(t,a){var o=h.isFunction(e[t])&&e[t];i[a[1]](function(){var e=o&&o.apply(this,arguments);e&&h.isFunction(e.promise)?e.promise().progress(n.notify).done(n.resolve).fail(n.reject):n[a[0]+"With"](this===r?n.promise():this,o?[e]:arguments)})}),e=null}).promise()},promise:function(e){return null!=e?h.extend(e,r):r}},i={};return r.pipe=r.then,h.each(t,function(e,a){var o=a[2],s=a[3];r[a[1]]=o.add,s&&o.add(function(){n=s},t[1^e][2].disable,t[2][2].lock),i[a[0]]=function(){return i[a[0]+"With"](this===i?r:this,arguments),this},i[a[0]+"With"]=o.fireWith}),r.promise(i),e&&e.call(i,i),i},when:function(e){var t,n,r,a=0,o=i.call(arguments),s=o.length,u=1!==s||e&&h.isFunction(e.promise)?s:0,l=1===u?e:h.Deferred(),c=function(e,n,r){return function(a){n[e]=this,r[e]=arguments.length>1?i.call(arguments):a,r===t?l.notifyWith(n,r):--u||l.resolveWith(n,r)}};if(s>1)for(t=new Array(s),n=new Array(s),r=new Array(s);a<s;a++)o[a]&&h.isFunction(o[a].promise)?o[a].promise().progress(c(a,n,t)).done(c(a,r,o)).fail(l.reject):--u;return u||l.resolveWith(r,o),l.promise()}}),h.fn.ready=function(e){return h.ready.promise().done(e),this},h.extend({isReady:!1,readyWait:1,holdReady:function(e){e?h.readyWait++:h.ready(!0)},ready:function(e){(!0===e?--h.readyWait:h.isReady)||(h.isReady=!0,!0!==e&&--h.readyWait>0||(R.resolveWith(r,[h]),h.fn.triggerHandler&&(h(r).triggerHandler("ready"),h(r).off("ready"))))}}),h.ready.promise=function(t){return R||(R=h.Deferred(),"complete"===r.readyState||"loading"!==r.readyState&&!r.documentElement.doScroll?e.setTimeout(h.ready):(r.addEventListener("DOMContentLoaded",L),e.addEventListener("load",L))),R.promise(t)},h.ready.promise();var I=function(e,t,n,r,i,a,o){var s=0,u=e.length,l=null==n;if("object"===h.type(n))for(s in i=!0,n)I(e,t,s,n[s],!0,a,o);else if(void 0!==r&&(i=!0,h.isFunction(r)||(o=!0),l&&(o?(t.call(e,r),t=null):(l=t,t=function(e,t,n){return l.call(h(e),n)})),t))for(;s<u;s++)t(e[s],n,o?r:r.call(e[s],s,t(e[s],n)));return i?e:l?t.call(e):u?t(e[0],n):a},B=function(e){return 1===e.nodeType||9===e.nodeType||!+e.nodeType};function D(){this.expando=h.expando+D.uid++}D.uid=1,D.prototype={register:function(e,t){var n=t||{};return e.nodeType?e[this.expando]=n:Object.defineProperty(e,this.expando,{value:n,writable:!0,configurable:!0}),e[this.expando]},cache:function(e){if(!B(e))return{};var t=e[this.expando];return t||(t={},B(e)&&(e.nodeType?e[this.expando]=t:Object.defineProperty(e,this.expando,{value:t,configurable:!0}))),t},set:function(e,t,n){var r,i=this.cache(e);if("string"==typeof t)i[t]=n;else for(r in t)i[r]=t[r];return i},get:function(e,t){return void 0===t?this.cache(e):e[this.expando]&&e[this.expando][t]},access:function(e,t,n){var r;return void 0===t||t&&"string"==typeof t&&void 0===n?void 0!==(r=this.get(e,t))?r:this.get(e,h.camelCase(t)):(this.set(e,t,n),void 0!==n?n:t)},remove:function(e,t){var n,r,i,a=e[this.expando];if(void 0!==a){if(void 0===t)this.register(e);else{h.isArray(t)?r=t.concat(t.map(h.camelCase)):(i=h.camelCase(t),r=t in a?[t,i]:(r=i)in a?[r]:r.match(j)||[]),n=r.length;for(;n--;)delete a[r[n]]}(void 0===t||h.isEmptyObject(a))&&(e.nodeType?e[this.expando]=void 0:delete e[this.expando])}},hasData:function(e){var t=e[this.expando];return void 0!==t&&!h.isEmptyObject(t)}};var N=new D,O=new D,P=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,z=/[A-Z]/g;function F(e,t,n){var r;if(void 0===n&&1===e.nodeType)if(r="data-"+t.replace(z,"-$&").toLowerCase(),"string"==typeof(n=e.getAttribute(r))){try{n="true"===n||"false"!==n&&("null"===n?null:+n+""===n?+n:P.test(n)?h.parseJSON(n):n)}catch(e){}O.set(e,t,n)}else n=void 0;return n}h.extend({hasData:function(e){return O.hasData(e)||N.hasData(e)},data:function(e,t,n){return O.access(e,t,n)},removeData:function(e,t){O.remove(e,t)},_data:function(e,t,n){return N.access(e,t,n)},_removeData:function(e,t){N.remove(e,t)}}),h.fn.extend({data:function(e,t){var n,r,i,a=this[0],o=a&&a.attributes;if(void 0===e){if(this.length&&(i=O.get(a),1===a.nodeType&&!N.get(a,"hasDataAttrs"))){for(n=o.length;n--;)o[n]&&0===(r=o[n].name).indexOf("data-")&&(r=h.camelCase(r.slice(5)),F(a,r,i[r]));N.set(a,"hasDataAttrs",!0)}return i}return"object"==typeof e?this.each(function(){O.set(this,e)}):I(this,function(t){var n,r;if(a&&void 0===t)return void 0!==(n=O.get(a,e)||O.get(a,e.replace(z,"-$&").toLowerCase()))?n:(r=h.camelCase(e),void 0!==(n=O.get(a,r))?n:void 0!==(n=F(a,r,void 0))?n:void 0);r=h.camelCase(e),this.each(function(){var n=O.get(this,r);O.set(this,r,t),e.indexOf("-")>-1&&void 0!==n&&O.set(this,e,t)})},null,t,arguments.length>1,null,!0)},removeData:function(e){return this.each(function(){O.remove(this,e)})}}),h.extend({queue:function(e,t,n){var r;if(e)return t=(t||"fx")+"queue",r=N.get(e,t),n&&(!r||h.isArray(n)?r=N.access(e,t,h.makeArray(n)):r.push(n)),r||[]},dequeue:function(e,t){t=t||"fx";var n=h.queue(e,t),r=n.length,i=n.shift(),a=h._queueHooks(e,t);"inprogress"===i&&(i=n.shift(),r--),i&&("fx"===t&&n.unshift("inprogress"),delete a.stop,i.call(e,function(){h.dequeue(e,t)},a)),!r&&a&&a.empty.fire()},_queueHooks:function(e,t){var n=t+"queueHooks";return N.get(e,n)||N.access(e,n,{empty:h.Callbacks("once memory").add(function(){N.remove(e,[t+"queue",n])})})}}),h.fn.extend({queue:function(e,t){var n=2;return"string"!=typeof e&&(t=e,e="fx",n--),arguments.length<n?h.queue(this[0],e):void 0===t?this:this.each(function(){var n=h.queue(this,e,t);h._queueHooks(this,e),"fx"===e&&"inprogress"!==n[0]&&h.dequeue(this,e)})},dequeue:function(e){return this.each(function(){h.dequeue(this,e)})},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,t){var n,r=1,i=h.Deferred(),a=this,o=this.length,s=function(){--r||i.resolveWith(a,[a])};for("string"!=typeof e&&(t=e,e=void 0),e=e||"fx";o--;)(n=N.get(a[o],e+"queueHooks"))&&n.empty&&(r++,n.empty.add(s));return s(),i.promise(t)}});var U=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,q=new RegExp("^(?:([+-])=|)("+U+")([a-z%]*)$","i"),W=["Top","Right","Bottom","Left"],H=function(e,t){return e=t||e,"none"===h.css(e,"display")||!h.contains(e.ownerDocument,e)};function V(e,t,n,r){var i,a=1,o=20,s=r?function(){return r.cur()}:function(){return h.css(e,t,"")},u=s(),l=n&&n[3]||(h.cssNumber[t]?"":"px"),c=(h.cssNumber[t]||"px"!==l&&+u)&&q.exec(h.css(e,t));if(c&&c[3]!==l){l=l||c[3],n=n||[],c=+u||1;do{c/=a=a||".5",h.style(e,t,c+l)}while(a!==(a=s()/u)&&1!==a&&--o)}return n&&(c=+c||+u||0,i=n[1]?c+(n[1]+1)*n[2]:+n[2],r&&(r.unit=l,r.start=c,r.end=i)),i}var Z=/^(?:checkbox|radio)$/i,G=/<([\w:-]+)/,Y=/^$|\/(?:java|ecma)script/i,$={option:[1,"<select multiple='multiple'>","</select>"],thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};function X(e,t){var n=void 0!==e.getElementsByTagName?e.getElementsByTagName(t||"*"):void 0!==e.querySelectorAll?e.querySelectorAll(t||"*"):[];return void 0===t||t&&h.nodeName(e,t)?h.merge([e],n):n}function K(e,t){for(var n=0,r=e.length;n<r;n++)N.set(e[n],"globalEval",!t||N.get(t[n],"globalEval"))}$.optgroup=$.option,$.tbody=$.tfoot=$.colgroup=$.caption=$.thead,$.th=$.td;var J,Q,ee=/<|&#?\w+;/;function te(e,t,n,r,i){for(var a,o,s,u,l,c,f=t.createDocumentFragment(),p=[],d=0,g=e.length;d<g;d++)if((a=e[d])||0===a)if("object"===h.type(a))h.merge(p,a.nodeType?[a]:a);else if(ee.test(a)){for(o=o||f.appendChild(t.createElement("div")),s=(G.exec(a)||["",""])[1].toLowerCase(),u=$[s]||$._default,o.innerHTML=u[1]+h.htmlPrefilter(a)+u[2],c=u[0];c--;)o=o.lastChild;h.merge(p,o.childNodes),(o=f.firstChild).textContent=""}else p.push(t.createTextNode(a));for(f.textContent="",d=0;a=p[d++];)if(r&&h.inArray(a,r)>-1)i&&i.push(a);else if(l=h.contains(a.ownerDocument,a),o=X(f.appendChild(a),"script"),l&&K(o),n)for(c=0;a=o[c++];)Y.test(a.type||"")&&n.push(a);return f}J=r.createDocumentFragment().appendChild(r.createElement("div")),(Q=r.createElement("input")).setAttribute("type","radio"),Q.setAttribute("checked","checked"),Q.setAttribute("name","t"),J.appendChild(Q),f.checkClone=J.cloneNode(!0).cloneNode(!0).lastChild.checked,J.innerHTML="<textarea>x</textarea>",f.noCloneChecked=!!J.cloneNode(!0).lastChild.defaultValue;var ne=/^key/,re=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,ie=/^([^.]*)(?:\.(.+)|)/;function ae(){return!0}function oe(){return!1}function se(){try{return r.activeElement}catch(e){}}function ue(e,t,n,r,i,a){var o,s;if("object"==typeof t){for(s in"string"!=typeof n&&(r=r||n,n=void 0),t)ue(e,s,n,r,t[s],a);return e}if(null==r&&null==i?(i=n,r=n=void 0):null==i&&("string"==typeof n?(i=r,r=void 0):(i=r,r=n,n=void 0)),!1===i)i=oe;else if(!i)return e;return 1===a&&(o=i,(i=function(e){return h().off(e),o.apply(this,arguments)}).guid=o.guid||(o.guid=h.guid++)),e.each(function(){h.event.add(this,t,i,r,n)})}h.event={global:{},add:function(e,t,n,r,i){var a,o,s,u,l,c,f,p,d,g,v,m=N.get(e);if(m)for(n.handler&&(n=(a=n).handler,i=a.selector),n.guid||(n.guid=h.guid++),(u=m.events)||(u=m.events={}),(o=m.handle)||(o=m.handle=function(t){return void 0!==h&&h.event.triggered!==t.type?h.event.dispatch.apply(e,arguments):void 0}),l=(t=(t||"").match(j)||[""]).length;l--;)d=v=(s=ie.exec(t[l])||[])[1],g=(s[2]||"").split(".").sort(),d&&(f=h.event.special[d]||{},d=(i?f.delegateType:f.bindType)||d,f=h.event.special[d]||{},c=h.extend({type:d,origType:v,data:r,handler:n,guid:n.guid,selector:i,needsContext:i&&h.expr.match.needsContext.test(i),namespace:g.join(".")},a),(p=u[d])||((p=u[d]=[]).delegateCount=0,f.setup&&!1!==f.setup.call(e,r,g,o)||e.addEventListener&&e.addEventListener(d,o)),f.add&&(f.add.call(e,c),c.handler.guid||(c.handler.guid=n.guid)),i?p.splice(p.delegateCount++,0,c):p.push(c),h.event.global[d]=!0)},remove:function(e,t,n,r,i){var a,o,s,u,l,c,f,p,d,g,v,m=N.hasData(e)&&N.get(e);if(m&&(u=m.events)){for(l=(t=(t||"").match(j)||[""]).length;l--;)if(d=v=(s=ie.exec(t[l])||[])[1],g=(s[2]||"").split(".").sort(),d){for(f=h.event.special[d]||{},p=u[d=(r?f.delegateType:f.bindType)||d]||[],s=s[2]&&new RegExp("(^|\\.)"+g.join("\\.(?:.*\\.|)")+"(\\.|$)"),o=a=p.length;a--;)c=p[a],!i&&v!==c.origType||n&&n.guid!==c.guid||s&&!s.test(c.namespace)||r&&r!==c.selector&&("**"!==r||!c.selector)||(p.splice(a,1),c.selector&&p.delegateCount--,f.remove&&f.remove.call(e,c));o&&!p.length&&(f.teardown&&!1!==f.teardown.call(e,g,m.handle)||h.removeEvent(e,d,m.handle),delete u[d])}else for(d in u)h.event.remove(e,d+t[l],n,r,!0);h.isEmptyObject(u)&&N.remove(e,"handle events")}},dispatch:function(e){e=h.event.fix(e);var t,n,r,a,o,s,u=i.call(arguments),l=(N.get(this,"events")||{})[e.type]||[],c=h.event.special[e.type]||{};if(u[0]=e,e.delegateTarget=this,!c.preDispatch||!1!==c.preDispatch.call(this,e)){for(s=h.event.handlers.call(this,e,l),t=0;(a=s[t++])&&!e.isPropagationStopped();)for(e.currentTarget=a.elem,n=0;(o=a.handlers[n++])&&!e.isImmediatePropagationStopped();)e.rnamespace&&!e.rnamespace.test(o.namespace)||(e.handleObj=o,e.data=o.data,void 0!==(r=((h.event.special[o.origType]||{}).handle||o.handler).apply(a.elem,u))&&!1===(e.result=r)&&(e.preventDefault(),e.stopPropagation()));return c.postDispatch&&c.postDispatch.call(this,e),e.result}},handlers:function(e,t){var n,r,i,a,o=[],s=t.delegateCount,u=e.target;if(s&&u.nodeType&&("click"!==e.type||isNaN(e.button)||e.button<1))for(;u!==this;u=u.parentNode||this)if(1===u.nodeType&&(!0!==u.disabled||"click"!==e.type)){for(r=[],n=0;n<s;n++)void 0===r[i=(a=t[n]).selector+" "]&&(r[i]=a.needsContext?h(i,this).index(u)>-1:h.find(i,this,null,[u]).length),r[i]&&r.push(a);r.length&&o.push({elem:u,handlers:r})}return s<t.length&&o.push({elem:this,handlers:t.slice(s)}),o},props:"altKey bubbles cancelable ctrlKey currentTarget detail eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "),fixHooks:{},keyHooks:{props:"char charCode key keyCode".split(" "),filter:function(e,t){return null==e.which&&(e.which=null!=t.charCode?t.charCode:t.keyCode),e}},mouseHooks:{props:"button buttons clientX clientY offsetX offsetY pageX pageY screenX screenY toElement".split(" "),filter:function(e,t){var n,i,a,o=t.button;return null==e.pageX&&null!=t.clientX&&(i=(n=e.target.ownerDocument||r).documentElement,a=n.body,e.pageX=t.clientX+(i&&i.scrollLeft||a&&a.scrollLeft||0)-(i&&i.clientLeft||a&&a.clientLeft||0),e.pageY=t.clientY+(i&&i.scrollTop||a&&a.scrollTop||0)-(i&&i.clientTop||a&&a.clientTop||0)),e.which||void 0===o||(e.which=1&o?1:2&o?3:4&o?2:0),e}},fix:function(e){if(e[h.expando])return e;var t,n,i,a=e.type,o=e,s=this.fixHooks[a];for(s||(this.fixHooks[a]=s=re.test(a)?this.mouseHooks:ne.test(a)?this.keyHooks:{}),i=s.props?this.props.concat(s.props):this.props,e=new h.Event(o),t=i.length;t--;)e[n=i[t]]=o[n];return e.target||(e.target=r),3===e.target.nodeType&&(e.target=e.target.parentNode),s.filter?s.filter(e,o):e},special:{load:{noBubble:!0},focus:{trigger:function(){if(this!==se()&&this.focus)return this.focus(),!1},delegateType:"focusin"},blur:{trigger:function(){if(this===se()&&this.blur)return this.blur(),!1},delegateType:"focusout"},click:{trigger:function(){if("checkbox"===this.type&&this.click&&h.nodeName(this,"input"))return this.click(),!1},_default:function(e){return h.nodeName(e.target,"a")}},beforeunload:{postDispatch:function(e){void 0!==e.result&&e.originalEvent&&(e.originalEvent.returnValue=e.result)}}}},h.removeEvent=function(e,t,n){e.removeEventListener&&e.removeEventListener(t,n)},h.Event=function(e,t){if(!(this instanceof h.Event))return new h.Event(e,t);e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||void 0===e.defaultPrevented&&!1===e.returnValue?ae:oe):this.type=e,t&&h.extend(this,t),this.timeStamp=e&&e.timeStamp||h.now(),this[h.expando]=!0},h.Event.prototype={constructor:h.Event,isDefaultPrevented:oe,isPropagationStopped:oe,isImmediatePropagationStopped:oe,isSimulated:!1,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=ae,e&&!this.isSimulated&&e.preventDefault()},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=ae,e&&!this.isSimulated&&e.stopPropagation()},stopImmediatePropagation:function(){var e=this.originalEvent;this.isImmediatePropagationStopped=ae,e&&!this.isSimulated&&e.stopImmediatePropagation(),this.stopPropagation()}},h.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(e,t){h.event.special[e]={delegateType:t,bindType:t,handle:function(e){var n,r=e.relatedTarget,i=e.handleObj;return r&&(r===this||h.contains(this,r))||(e.type=i.origType,n=i.handler.apply(this,arguments),e.type=t),n}}}),h.fn.extend({on:function(e,t,n,r){return ue(this,e,t,n,r)},one:function(e,t,n,r){return ue(this,e,t,n,r,1)},off:function(e,t,n){var r,i;if(e&&e.preventDefault&&e.handleObj)return r=e.handleObj,h(e.delegateTarget).off(r.namespace?r.origType+"."+r.namespace:r.origType,r.selector,r.handler),this;if("object"==typeof e){for(i in e)this.off(i,t,e[i]);return this}return!1!==t&&"function"!=typeof t||(n=t,t=void 0),!1===n&&(n=oe),this.each(function(){h.event.remove(this,e,n,t)})}});var le=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:-]+)[^>]*)\/>/gi,ce=/<script|<style|<link/i,fe=/checked\s*(?:[^=]|=\s*.checked.)/i,he=/^true\/(.*)/,pe=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g;function de(e,t){return h.nodeName(e,"table")&&h.nodeName(11!==t.nodeType?t:t.firstChild,"tr")?e.getElementsByTagName("tbody")[0]||e.appendChild(e.ownerDocument.createElement("tbody")):e}function ge(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function ve(e){var t=he.exec(e.type);return t?e.type=t[1]:e.removeAttribute("type"),e}function me(e,t){var n,r,i,a,o,s,u,l;if(1===t.nodeType){if(N.hasData(e)&&(a=N.access(e),o=N.set(t,a),l=a.events))for(i in delete o.handle,o.events={},l)for(n=0,r=l[i].length;n<r;n++)h.event.add(t,i,l[i][n]);O.hasData(e)&&(s=O.access(e),u=h.extend({},s),O.set(t,u))}}function we(e,t,n,r){t=a.apply([],t);var i,o,s,u,l,c,p=0,d=e.length,g=d-1,v=t[0],m=h.isFunction(v);if(m||d>1&&"string"==typeof v&&!f.checkClone&&fe.test(v))return e.each(function(i){var a=e.eq(i);m&&(t[0]=v.call(this,i,a.html())),we(a,t,n,r)});if(d&&(o=(i=te(t,e[0].ownerDocument,!1,e,r)).firstChild,1===i.childNodes.length&&(i=o),o||r)){for(u=(s=h.map(X(i,"script"),ge)).length;p<d;p++)l=i,p!==g&&(l=h.clone(l,!0,!0),u&&h.merge(s,X(l,"script"))),n.call(e[p],l,p);if(u)for(c=s[s.length-1].ownerDocument,h.map(s,ve),p=0;p<u;p++)l=s[p],Y.test(l.type||"")&&!N.access(l,"globalEval")&&h.contains(c,l)&&(l.src?h._evalUrl&&h._evalUrl(l.src):h.globalEval(l.textContent.replace(pe,"")))}return e}function ye(e,t,n){for(var r,i=t?h.filter(t,e):e,a=0;null!=(r=i[a]);a++)n||1!==r.nodeType||h.cleanData(X(r)),r.parentNode&&(n&&h.contains(r.ownerDocument,r)&&K(X(r,"script")),r.parentNode.removeChild(r));return e}h.extend({htmlPrefilter:function(e){return e.replace(le,"<$1></$2>")},clone:function(e,t,n){var r,i,a,o,s,u,l,c=e.cloneNode(!0),p=h.contains(e.ownerDocument,e);if(!(f.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||h.isXMLDoc(e)))for(o=X(c),r=0,i=(a=X(e)).length;r<i;r++)s=a[r],u=o[r],void 0,"input"===(l=u.nodeName.toLowerCase())&&Z.test(s.type)?u.checked=s.checked:"input"!==l&&"textarea"!==l||(u.defaultValue=s.defaultValue);if(t)if(n)for(a=a||X(e),o=o||X(c),r=0,i=a.length;r<i;r++)me(a[r],o[r]);else me(e,c);return(o=X(c,"script")).length>0&&K(o,!p&&X(e,"script")),c},cleanData:function(e){for(var t,n,r,i=h.event.special,a=0;void 0!==(n=e[a]);a++)if(B(n)){if(t=n[N.expando]){if(t.events)for(r in t.events)i[r]?h.event.remove(n,r):h.removeEvent(n,r,t.handle);n[N.expando]=void 0}n[O.expando]&&(n[O.expando]=void 0)}}}),h.fn.extend({domManip:we,detach:function(e){return ye(this,e,!0)},remove:function(e){return ye(this,e)},text:function(e){return I(this,function(e){return void 0===e?h.text(this):this.empty().each(function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=e)})},null,e,arguments.length)},append:function(){return we(this,arguments,function(e){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||de(this,e).appendChild(e)})},prepend:function(){return we(this,arguments,function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=de(this,e);t.insertBefore(e,t.firstChild)}})},before:function(){return we(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this)})},after:function(){return we(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)})},empty:function(){for(var e,t=0;null!=(e=this[t]);t++)1===e.nodeType&&(h.cleanData(X(e,!1)),e.textContent="");return this},clone:function(e,t){return e=null!=e&&e,t=null==t?e:t,this.map(function(){return h.clone(this,e,t)})},html:function(e){return I(this,function(e){var t=this[0]||{},n=0,r=this.length;if(void 0===e&&1===t.nodeType)return t.innerHTML;if("string"==typeof e&&!ce.test(e)&&!$[(G.exec(e)||["",""])[1].toLowerCase()]){e=h.htmlPrefilter(e);try{for(;n<r;n++)1===(t=this[n]||{}).nodeType&&(h.cleanData(X(t,!1)),t.innerHTML=e);t=0}catch(e){}}t&&this.empty().append(e)},null,e,arguments.length)},replaceWith:function(){var e=[];return we(this,arguments,function(t){var n=this.parentNode;h.inArray(this,e)<0&&(h.cleanData(X(this)),n&&n.replaceChild(t,this))},e)}}),h.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(e,t){h.fn[e]=function(e){for(var n,r=[],i=h(e),a=i.length-1,s=0;s<=a;s++)n=s===a?this:this.clone(!0),h(i[s])[t](n),o.apply(r,n.get());return this.pushStack(r)}});var _e,be={HTML:"block",BODY:"block"};function xe(e,t){var n=h(t.createElement(e)).appendTo(t.body),r=h.css(n[0],"display");return n.detach(),r}function ke(e){var t=r,n=be[e];return n||("none"!==(n=xe(e,t))&&n||((t=(_e=(_e||h("<iframe frameborder='0' width='0' height='0'/>")).appendTo(t.documentElement))[0].contentDocument).write(),t.close(),n=xe(e,t),_e.detach()),be[e]=n),n}var Ee=/^margin/,Te=new RegExp("^("+U+")(?!px)[a-z%]+$","i"),Ae=function(t){var n=t.ownerDocument.defaultView;return n&&n.opener||(n=e),n.getComputedStyle(t)},Se=function(e,t,n,r){var i,a,o={};for(a in t)o[a]=e.style[a],e.style[a]=t[a];for(a in i=n.apply(e,r||[]),t)e.style[a]=o[a];return i},Ce=r.documentElement;function Me(e,t,n){var r,i,a,o,s=e.style;return""!==(o=(n=n||Ae(e))?n.getPropertyValue(t)||n[t]:void 0)&&void 0!==o||h.contains(e.ownerDocument,e)||(o=h.style(e,t)),n&&!f.pixelMarginRight()&&Te.test(o)&&Ee.test(t)&&(r=s.width,i=s.minWidth,a=s.maxWidth,s.minWidth=s.maxWidth=s.width=o,o=n.width,s.width=r,s.minWidth=i,s.maxWidth=a),void 0!==o?o+"":o}function Re(e,t){return{get:function(){if(!e())return(this.get=t).apply(this,arguments);delete this.get}}}!function(){var t,n,i,a,o=r.createElement("div"),s=r.createElement("div");function u(){s.style.cssText="-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;position:relative;display:block;margin:auto;border:1px;padding:1px;top:1%;width:50%",s.innerHTML="",Ce.appendChild(o);var r=e.getComputedStyle(s);t="1%"!==r.top,a="2px"===r.marginLeft,n="4px"===r.width,s.style.marginRight="50%",i="4px"===r.marginRight,Ce.removeChild(o)}s.style&&(s.style.backgroundClip="content-box",s.cloneNode(!0).style.backgroundClip="",f.clearCloneStyle="content-box"===s.style.backgroundClip,o.style.cssText="border:0;width:8px;height:0;top:0;left:-9999px;padding:0;margin-top:1px;position:absolute",o.appendChild(s),h.extend(f,{pixelPosition:function(){return u(),t},boxSizingReliable:function(){return null==n&&u(),n},pixelMarginRight:function(){return null==n&&u(),i},reliableMarginLeft:function(){return null==n&&u(),a},reliableMarginRight:function(){var t,n=s.appendChild(r.createElement("div"));return n.style.cssText=s.style.cssText="-webkit-box-sizing:content-box;box-sizing:content-box;display:block;margin:0;border:0;padding:0",n.style.marginRight=n.style.width="0",s.style.width="1px",Ce.appendChild(o),t=!parseFloat(e.getComputedStyle(n).marginRight),Ce.removeChild(o),s.removeChild(n),t}}))}();var je=/^(none|table(?!-c[ea]).+)/,Le={position:"absolute",visibility:"hidden",display:"block"},Ie={letterSpacing:"0",fontWeight:"400"},Be=["Webkit","O","Moz","ms"],De=r.createElement("div").style;function Ne(e){if(e in De)return e;for(var t=e[0].toUpperCase()+e.slice(1),n=Be.length;n--;)if((e=Be[n]+t)in De)return e}function Oe(e,t,n){var r=q.exec(t);return r?Math.max(0,r[2]-(n||0))+(r[3]||"px"):t}function Pe(e,t,n,r,i){for(var a=n===(r?"border":"content")?4:"width"===t?1:0,o=0;a<4;a+=2)"margin"===n&&(o+=h.css(e,n+W[a],!0,i)),r?("content"===n&&(o-=h.css(e,"padding"+W[a],!0,i)),"margin"!==n&&(o-=h.css(e,"border"+W[a]+"Width",!0,i))):(o+=h.css(e,"padding"+W[a],!0,i),"padding"!==n&&(o+=h.css(e,"border"+W[a]+"Width",!0,i)));return o}function ze(e,t,n){var r=!0,i="width"===t?e.offsetWidth:e.offsetHeight,a=Ae(e),o="border-box"===h.css(e,"boxSizing",!1,a);if(i<=0||null==i){if(((i=Me(e,t,a))<0||null==i)&&(i=e.style[t]),Te.test(i))return i;r=o&&(f.boxSizingReliable()||i===e.style[t]),i=parseFloat(i)||0}return i+Pe(e,t,n||(o?"border":"content"),r,a)+"px"}function Fe(e,t){for(var n,r,i,a=[],o=0,s=e.length;o<s;o++)(r=e[o]).style&&(a[o]=N.get(r,"olddisplay"),n=r.style.display,t?(a[o]||"none"!==n||(r.style.display=""),""===r.style.display&&H(r)&&(a[o]=N.access(r,"olddisplay",ke(r.nodeName)))):(i=H(r),"none"===n&&i||N.set(r,"olddisplay",i?n:h.css(r,"display"))));for(o=0;o<s;o++)(r=e[o]).style&&(t&&"none"!==r.style.display&&""!==r.style.display||(r.style.display=t?a[o]||"":"none"));return e}function Ue(e,t,n,r,i){return new Ue.prototype.init(e,t,n,r,i)}h.extend({cssHooks:{opacity:{get:function(e,t){if(t){var n=Me(e,"opacity");return""===n?"1":n}}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{float:"cssFloat"},style:function(e,t,n,r){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var i,a,o,s=h.camelCase(t),u=e.style;if(t=h.cssProps[s]||(h.cssProps[s]=Ne(s)||s),o=h.cssHooks[t]||h.cssHooks[s],void 0===n)return o&&"get"in o&&void 0!==(i=o.get(e,!1,r))?i:u[t];"string"===(a=typeof n)&&(i=q.exec(n))&&i[1]&&(n=V(e,t,i),a="number"),null!=n&&n==n&&("number"===a&&(n+=i&&i[3]||(h.cssNumber[s]?"":"px")),f.clearCloneStyle||""!==n||0!==t.indexOf("background")||(u[t]="inherit"),o&&"set"in o&&void 0===(n=o.set(e,n,r))||(u[t]=n))}},css:function(e,t,n,r){var i,a,o,s=h.camelCase(t);return t=h.cssProps[s]||(h.cssProps[s]=Ne(s)||s),(o=h.cssHooks[t]||h.cssHooks[s])&&"get"in o&&(i=o.get(e,!0,n)),void 0===i&&(i=Me(e,t,r)),"normal"===i&&t in Ie&&(i=Ie[t]),""===n||n?(a=parseFloat(i),!0===n||isFinite(a)?a||0:i):i}}),h.each(["height","width"],function(e,t){h.cssHooks[t]={get:function(e,n,r){if(n)return je.test(h.css(e,"display"))&&0===e.offsetWidth?Se(e,Le,function(){return ze(e,t,r)}):ze(e,t,r)},set:function(e,n,r){var i,a=r&&Ae(e),o=r&&Pe(e,t,r,"border-box"===h.css(e,"boxSizing",!1,a),a);return o&&(i=q.exec(n))&&"px"!==(i[3]||"px")&&(e.style[t]=n,n=h.css(e,t)),Oe(0,n,o)}}}),h.cssHooks.marginLeft=Re(f.reliableMarginLeft,function(e,t){if(t)return(parseFloat(Me(e,"marginLeft"))||e.getBoundingClientRect().left-Se(e,{marginLeft:0},function(){return e.getBoundingClientRect().left}))+"px"}),h.cssHooks.marginRight=Re(f.reliableMarginRight,function(e,t){if(t)return Se(e,{display:"inline-block"},Me,[e,"marginRight"])}),h.each({margin:"",padding:"",border:"Width"},function(e,t){h.cssHooks[e+t]={expand:function(n){for(var r=0,i={},a="string"==typeof n?n.split(" "):[n];r<4;r++)i[e+W[r]+t]=a[r]||a[r-2]||a[0];return i}},Ee.test(e)||(h.cssHooks[e+t].set=Oe)}),h.fn.extend({css:function(e,t){return I(this,function(e,t,n){var r,i,a={},o=0;if(h.isArray(t)){for(r=Ae(e),i=t.length;o<i;o++)a[t[o]]=h.css(e,t[o],!1,r);return a}return void 0!==n?h.style(e,t,n):h.css(e,t)},e,t,arguments.length>1)},show:function(){return Fe(this,!0)},hide:function(){return Fe(this)},toggle:function(e){return"boolean"==typeof e?e?this.show():this.hide():this.each(function(){H(this)?h(this).show():h(this).hide()})}}),h.Tween=Ue,Ue.prototype={constructor:Ue,init:function(e,t,n,r,i,a){this.elem=e,this.prop=n,this.easing=i||h.easing._default,this.options=t,this.start=this.now=this.cur(),this.end=r,this.unit=a||(h.cssNumber[n]?"":"px")},cur:function(){var e=Ue.propHooks[this.prop];return e&&e.get?e.get(this):Ue.propHooks._default.get(this)},run:function(e){var t,n=Ue.propHooks[this.prop];return this.options.duration?this.pos=t=h.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):this.pos=t=e,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):Ue.propHooks._default.set(this),this}},Ue.prototype.init.prototype=Ue.prototype,Ue.propHooks={_default:{get:function(e){var t;return 1!==e.elem.nodeType||null!=e.elem[e.prop]&&null==e.elem.style[e.prop]?e.elem[e.prop]:(t=h.css(e.elem,e.prop,""))&&"auto"!==t?t:0},set:function(e){h.fx.step[e.prop]?h.fx.step[e.prop](e):1!==e.elem.nodeType||null==e.elem.style[h.cssProps[e.prop]]&&!h.cssHooks[e.prop]?e.elem[e.prop]=e.now:h.style(e.elem,e.prop,e.now+e.unit)}}},Ue.propHooks.scrollTop=Ue.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},h.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2},_default:"swing"},h.fx=Ue.prototype.init,h.fx.step={};var qe,We,He=/^(?:toggle|show|hide)$/,Ve=/queueHooks$/;function Ze(){return e.setTimeout(function(){qe=void 0}),qe=h.now()}function Ge(e,t){var n,r=0,i={height:e};for(t=t?1:0;r<4;r+=2-t)i["margin"+(n=W[r])]=i["padding"+n]=e;return t&&(i.opacity=i.width=e),i}function Ye(e,t,n){for(var r,i=($e.tweeners[t]||[]).concat($e.tweeners["*"]),a=0,o=i.length;a<o;a++)if(r=i[a].call(n,t,e))return r}function $e(e,t,n){var r,i,a=0,o=$e.prefilters.length,s=h.Deferred().always(function(){delete u.elem}),u=function(){if(i)return!1;for(var t=qe||Ze(),n=Math.max(0,l.startTime+l.duration-t),r=1-(n/l.duration||0),a=0,o=l.tweens.length;a<o;a++)l.tweens[a].run(r);return s.notifyWith(e,[l,r,n]),r<1&&o?n:(s.resolveWith(e,[l]),!1)},l=s.promise({elem:e,props:h.extend({},t),opts:h.extend(!0,{specialEasing:{},easing:h.easing._default},n),originalProperties:t,originalOptions:n,startTime:qe||Ze(),duration:n.duration,tweens:[],createTween:function(t,n){var r=h.Tween(e,l.opts,t,n,l.opts.specialEasing[t]||l.opts.easing);return l.tweens.push(r),r},stop:function(t){var n=0,r=t?l.tweens.length:0;if(i)return this;for(i=!0;n<r;n++)l.tweens[n].run(1);return t?(s.notifyWith(e,[l,1,0]),s.resolveWith(e,[l,t])):s.rejectWith(e,[l,t]),this}}),c=l.props;for(!function(e,t){var n,r,i,a,o;for(n in e)if(i=t[r=h.camelCase(n)],a=e[n],h.isArray(a)&&(i=a[1],a=e[n]=a[0]),n!==r&&(e[r]=a,delete e[n]),(o=h.cssHooks[r])&&"expand"in o)for(n in a=o.expand(a),delete e[r],a)n in e||(e[n]=a[n],t[n]=i);else t[r]=i}(c,l.opts.specialEasing);a<o;a++)if(r=$e.prefilters[a].call(l,e,c,l.opts))return h.isFunction(r.stop)&&(h._queueHooks(l.elem,l.opts.queue).stop=h.proxy(r.stop,r)),r;return h.map(c,Ye,l),h.isFunction(l.opts.start)&&l.opts.start.call(e,l),h.fx.timer(h.extend(u,{elem:e,anim:l,queue:l.opts.queue})),l.progress(l.opts.progress).done(l.opts.done,l.opts.complete).fail(l.opts.fail).always(l.opts.always)}h.Animation=h.extend($e,{tweeners:{"*":[function(e,t){var n=this.createTween(e,t);return V(n.elem,e,q.exec(t),n),n}]},tweener:function(e,t){h.isFunction(e)?(t=e,e=["*"]):e=e.match(j);for(var n,r=0,i=e.length;r<i;r++)n=e[r],$e.tweeners[n]=$e.tweeners[n]||[],$e.tweeners[n].unshift(t)},prefilters:[function(e,t,n){var r,i,a,o,s,u,l,c=this,f={},p=e.style,d=e.nodeType&&H(e),g=N.get(e,"fxshow");for(r in n.queue||(null==(s=h._queueHooks(e,"fx")).unqueued&&(s.unqueued=0,u=s.empty.fire,s.empty.fire=function(){s.unqueued||u()}),s.unqueued++,c.always(function(){c.always(function(){s.unqueued--,h.queue(e,"fx").length||s.empty.fire()})})),1===e.nodeType&&("height"in t||"width"in t)&&(n.overflow=[p.overflow,p.overflowX,p.overflowY],"inline"===("none"===(l=h.css(e,"display"))?N.get(e,"olddisplay")||ke(e.nodeName):l)&&"none"===h.css(e,"float")&&(p.display="inline-block")),n.overflow&&(p.overflow="hidden",c.always(function(){p.overflow=n.overflow[0],p.overflowX=n.overflow[1],p.overflowY=n.overflow[2]})),t)if(i=t[r],He.exec(i)){if(delete t[r],a=a||"toggle"===i,i===(d?"hide":"show")){if("show"!==i||!g||void 0===g[r])continue;d=!0}f[r]=g&&g[r]||h.style(e,r)}else l=void 0;if(h.isEmptyObject(f))"inline"===("none"===l?ke(e.nodeName):l)&&(p.display=l);else for(r in g?"hidden"in g&&(d=g.hidden):g=N.access(e,"fxshow",{}),a&&(g.hidden=!d),d?h(e).show():c.done(function(){h(e).hide()}),c.done(function(){var t;for(t in N.remove(e,"fxshow"),f)h.style(e,t,f[t])}),f)o=Ye(d?g[r]:0,r,c),r in g||(g[r]=o.start,d&&(o.end=o.start,o.start="width"===r||"height"===r?1:0))}],prefilter:function(e,t){t?$e.prefilters.unshift(e):$e.prefilters.push(e)}}),h.speed=function(e,t,n){var r=e&&"object"==typeof e?h.extend({},e):{complete:n||!n&&t||h.isFunction(e)&&e,duration:e,easing:n&&t||t&&!h.isFunction(t)&&t};return r.duration=h.fx.off?0:"number"==typeof r.duration?r.duration:r.duration in h.fx.speeds?h.fx.speeds[r.duration]:h.fx.speeds._default,null!=r.queue&&!0!==r.queue||(r.queue="fx"),r.old=r.complete,r.complete=function(){h.isFunction(r.old)&&r.old.call(this),r.queue&&h.dequeue(this,r.queue)},r},h.fn.extend({fadeTo:function(e,t,n,r){return this.filter(H).css("opacity",0).show().end().animate({opacity:t},e,n,r)},animate:function(e,t,n,r){var i=h.isEmptyObject(e),a=h.speed(t,n,r),o=function(){var t=$e(this,h.extend({},e),a);(i||N.get(this,"finish"))&&t.stop(!0)};return o.finish=o,i||!1===a.queue?this.each(o):this.queue(a.queue,o)},stop:function(e,t,n){var r=function(e){var t=e.stop;delete e.stop,t(n)};return"string"!=typeof e&&(n=t,t=e,e=void 0),t&&!1!==e&&this.queue(e||"fx",[]),this.each(function(){var t=!0,i=null!=e&&e+"queueHooks",a=h.timers,o=N.get(this);if(i)o[i]&&o[i].stop&&r(o[i]);else for(i in o)o[i]&&o[i].stop&&Ve.test(i)&&r(o[i]);for(i=a.length;i--;)a[i].elem!==this||null!=e&&a[i].queue!==e||(a[i].anim.stop(n),t=!1,a.splice(i,1));!t&&n||h.dequeue(this,e)})},finish:function(e){return!1!==e&&(e=e||"fx"),this.each(function(){var t,n=N.get(this),r=n[e+"queue"],i=n[e+"queueHooks"],a=h.timers,o=r?r.length:0;for(n.finish=!0,h.queue(this,e,[]),i&&i.stop&&i.stop.call(this,!0),t=a.length;t--;)a[t].elem===this&&a[t].queue===e&&(a[t].anim.stop(!0),a.splice(t,1));for(t=0;t<o;t++)r[t]&&r[t].finish&&r[t].finish.call(this);delete n.finish})}}),h.each(["toggle","show","hide"],function(e,t){var n=h.fn[t];h.fn[t]=function(e,r,i){return null==e||"boolean"==typeof e?n.apply(this,arguments):this.animate(Ge(t,!0),e,r,i)}}),h.each({slideDown:Ge("show"),slideUp:Ge("hide"),slideToggle:Ge("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(e,t){h.fn[e]=function(e,n,r){return this.animate(t,e,n,r)}}),h.timers=[],h.fx.tick=function(){var e,t=0,n=h.timers;for(qe=h.now();t<n.length;t++)(e=n[t])()||n[t]!==e||n.splice(t--,1);n.length||h.fx.stop(),qe=void 0},h.fx.timer=function(e){h.timers.push(e),e()?h.fx.start():h.timers.pop()},h.fx.interval=13,h.fx.start=function(){We||(We=e.setInterval(h.fx.tick,h.fx.interval))},h.fx.stop=function(){e.clearInterval(We),We=null},h.fx.speeds={slow:600,fast:200,_default:400},h.fn.delay=function(t,n){return t=h.fx&&h.fx.speeds[t]||t,n=n||"fx",this.queue(n,function(n,r){var i=e.setTimeout(n,t);r.stop=function(){e.clearTimeout(i)}})},function(){var e=r.createElement("input"),t=r.createElement("select"),n=t.appendChild(r.createElement("option"));e.type="checkbox",f.checkOn=""!==e.value,f.optSelected=n.selected,t.disabled=!0,f.optDisabled=!n.disabled,(e=r.createElement("input")).value="t",e.type="radio",f.radioValue="t"===e.value}();var Xe,Ke=h.expr.attrHandle;h.fn.extend({attr:function(e,t){return I(this,h.attr,e,t,arguments.length>1)},removeAttr:function(e){return this.each(function(){h.removeAttr(this,e)})}}),h.extend({attr:function(e,t,n){var r,i,a=e.nodeType;if(3!==a&&8!==a&&2!==a)return void 0===e.getAttribute?h.prop(e,t,n):(1===a&&h.isXMLDoc(e)||(t=t.toLowerCase(),i=h.attrHooks[t]||(h.expr.match.bool.test(t)?Xe:void 0)),void 0!==n?null===n?void h.removeAttr(e,t):i&&"set"in i&&void 0!==(r=i.set(e,n,t))?r:(e.setAttribute(t,n+""),n):i&&"get"in i&&null!==(r=i.get(e,t))?r:null==(r=h.find.attr(e,t))?void 0:r)},attrHooks:{type:{set:function(e,t){if(!f.radioValue&&"radio"===t&&h.nodeName(e,"input")){var n=e.value;return e.setAttribute("type",t),n&&(e.value=n),t}}}},removeAttr:function(e,t){var n,r,i=0,a=t&&t.match(j);if(a&&1===e.nodeType)for(;n=a[i++];)r=h.propFix[n]||n,h.expr.match.bool.test(n)&&(e[r]=!1),e.removeAttribute(n)}}),Xe={set:function(e,t,n){return!1===t?h.removeAttr(e,n):e.setAttribute(n,n),n}},h.each(h.expr.match.bool.source.match(/\w+/g),function(e,t){var n=Ke[t]||h.find.attr;Ke[t]=function(e,t,r){var i,a;return r||(a=Ke[t],Ke[t]=i,i=null!=n(e,t,r)?t.toLowerCase():null,Ke[t]=a),i}});var Je=/^(?:input|select|textarea|button)$/i,Qe=/^(?:a|area)$/i;h.fn.extend({prop:function(e,t){return I(this,h.prop,e,t,arguments.length>1)},removeProp:function(e){return this.each(function(){delete this[h.propFix[e]||e]})}}),h.extend({prop:function(e,t,n){var r,i,a=e.nodeType;if(3!==a&&8!==a&&2!==a)return 1===a&&h.isXMLDoc(e)||(t=h.propFix[t]||t,i=h.propHooks[t]),void 0!==n?i&&"set"in i&&void 0!==(r=i.set(e,n,t))?r:e[t]=n:i&&"get"in i&&null!==(r=i.get(e,t))?r:e[t]},propHooks:{tabIndex:{get:function(e){var t=h.find.attr(e,"tabindex");return t?parseInt(t,10):Je.test(e.nodeName)||Qe.test(e.nodeName)&&e.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),f.optSelected||(h.propHooks.selected={get:function(e){var t=e.parentNode;return t&&t.parentNode&&t.parentNode.selectedIndex,null},set:function(e){var t=e.parentNode;t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex)}}),h.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){h.propFix[this.toLowerCase()]=this});var et=/[\t\r\n\f]/g;function tt(e){return e.getAttribute&&e.getAttribute("class")||""}h.fn.extend({addClass:function(e){var t,n,r,i,a,o,s,u=0;if(h.isFunction(e))return this.each(function(t){h(this).addClass(e.call(this,t,tt(this)))});if("string"==typeof e&&e)for(t=e.match(j)||[];n=this[u++];)if(i=tt(n),r=1===n.nodeType&&(" "+i+" ").replace(et," ")){for(o=0;a=t[o++];)r.indexOf(" "+a+" ")<0&&(r+=a+" ");i!==(s=h.trim(r))&&n.setAttribute("class",s)}return this},removeClass:function(e){var t,n,r,i,a,o,s,u=0;if(h.isFunction(e))return this.each(function(t){h(this).removeClass(e.call(this,t,tt(this)))});if(!arguments.length)return this.attr("class","");if("string"==typeof e&&e)for(t=e.match(j)||[];n=this[u++];)if(i=tt(n),r=1===n.nodeType&&(" "+i+" ").replace(et," ")){for(o=0;a=t[o++];)for(;r.indexOf(" "+a+" ")>-1;)r=r.replace(" "+a+" "," ");i!==(s=h.trim(r))&&n.setAttribute("class",s)}return this},toggleClass:function(e,t){var n=typeof e;return"boolean"==typeof t&&"string"===n?t?this.addClass(e):this.removeClass(e):h.isFunction(e)?this.each(function(n){h(this).toggleClass(e.call(this,n,tt(this),t),t)}):this.each(function(){var t,r,i,a;if("string"===n)for(r=0,i=h(this),a=e.match(j)||[];t=a[r++];)i.hasClass(t)?i.removeClass(t):i.addClass(t);else void 0!==e&&"boolean"!==n||((t=tt(this))&&N.set(this,"__className__",t),this.setAttribute&&this.setAttribute("class",t||!1===e?"":N.get(this,"__className__")||""))})},hasClass:function(e){var t,n,r=0;for(t=" "+e+" ";n=this[r++];)if(1===n.nodeType&&(" "+tt(n)+" ").replace(et," ").indexOf(t)>-1)return!0;return!1}});var nt=/\r/g,rt=/[\x20\t\r\n\f]+/g;h.fn.extend({val:function(e){var t,n,r,i=this[0];return arguments.length?(r=h.isFunction(e),this.each(function(n){var i;1===this.nodeType&&(null==(i=r?e.call(this,n,h(this).val()):e)?i="":"number"==typeof i?i+="":h.isArray(i)&&(i=h.map(i,function(e){return null==e?"":e+""})),(t=h.valHooks[this.type]||h.valHooks[this.nodeName.toLowerCase()])&&"set"in t&&void 0!==t.set(this,i,"value")||(this.value=i))})):i?(t=h.valHooks[i.type]||h.valHooks[i.nodeName.toLowerCase()])&&"get"in t&&void 0!==(n=t.get(i,"value"))?n:"string"==typeof(n=i.value)?n.replace(nt,""):null==n?"":n:void 0}}),h.extend({valHooks:{option:{get:function(e){var t=h.find.attr(e,"value");return null!=t?t:h.trim(h.text(e)).replace(rt," ")}},select:{get:function(e){for(var t,n,r=e.options,i=e.selectedIndex,a="select-one"===e.type||i<0,o=a?null:[],s=a?i+1:r.length,u=i<0?s:a?i:0;u<s;u++)if(((n=r[u]).selected||u===i)&&(f.optDisabled?!n.disabled:null===n.getAttribute("disabled"))&&(!n.parentNode.disabled||!h.nodeName(n.parentNode,"optgroup"))){if(t=h(n).val(),a)return t;o.push(t)}return o},set:function(e,t){for(var n,r,i=e.options,a=h.makeArray(t),o=i.length;o--;)((r=i[o]).selected=h.inArray(h.valHooks.option.get(r),a)>-1)&&(n=!0);return n||(e.selectedIndex=-1),a}}}}),h.each(["radio","checkbox"],function(){h.valHooks[this]={set:function(e,t){if(h.isArray(t))return e.checked=h.inArray(h(e).val(),t)>-1}},f.checkOn||(h.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})});var it=/^(?:focusinfocus|focusoutblur)$/;h.extend(h.event,{trigger:function(t,n,i,a){var o,s,u,l,f,p,d,g=[i||r],v=c.call(t,"type")?t.type:t,m=c.call(t,"namespace")?t.namespace.split("."):[];if(s=u=i=i||r,3!==i.nodeType&&8!==i.nodeType&&!it.test(v+h.event.triggered)&&(v.indexOf(".")>-1&&(v=(m=v.split(".")).shift(),m.sort()),f=v.indexOf(":")<0&&"on"+v,(t=t[h.expando]?t:new h.Event(v,"object"==typeof t&&t)).isTrigger=a?2:3,t.namespace=m.join("."),t.rnamespace=t.namespace?new RegExp("(^|\\.)"+m.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,t.result=void 0,t.target||(t.target=i),n=null==n?[t]:h.makeArray(n,[t]),d=h.event.special[v]||{},a||!d.trigger||!1!==d.trigger.apply(i,n))){if(!a&&!d.noBubble&&!h.isWindow(i)){for(l=d.delegateType||v,it.test(l+v)||(s=s.parentNode);s;s=s.parentNode)g.push(s),u=s;u===(i.ownerDocument||r)&&g.push(u.defaultView||u.parentWindow||e)}for(o=0;(s=g[o++])&&!t.isPropagationStopped();)t.type=o>1?l:d.bindType||v,(p=(N.get(s,"events")||{})[t.type]&&N.get(s,"handle"))&&p.apply(s,n),(p=f&&s[f])&&p.apply&&B(s)&&(t.result=p.apply(s,n),!1===t.result&&t.preventDefault());return t.type=v,a||t.isDefaultPrevented()||d._default&&!1!==d._default.apply(g.pop(),n)||!B(i)||f&&h.isFunction(i[v])&&!h.isWindow(i)&&((u=i[f])&&(i[f]=null),h.event.triggered=v,i[v](),h.event.triggered=void 0,u&&(i[f]=u)),t.result}},simulate:function(e,t,n){var r=h.extend(new h.Event,n,{type:e,isSimulated:!0});h.event.trigger(r,null,t)}}),h.fn.extend({trigger:function(e,t){return this.each(function(){h.event.trigger(e,t,this)})},triggerHandler:function(e,t){var n=this[0];if(n)return h.event.trigger(e,t,n,!0)}}),h.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error contextmenu".split(" "),function(e,t){h.fn[t]=function(e,n){return arguments.length>0?this.on(t,null,e,n):this.trigger(t)}}),h.fn.extend({hover:function(e,t){return this.mouseenter(e).mouseleave(t||e)}}),f.focusin="onfocusin"in e,f.focusin||h.each({focus:"focusin",blur:"focusout"},function(e,t){var n=function(e){h.event.simulate(t,e.target,h.event.fix(e))};h.event.special[t]={setup:function(){var r=this.ownerDocument||this,i=N.access(r,t);i||r.addEventListener(e,n,!0),N.access(r,t,(i||0)+1)},teardown:function(){var r=this.ownerDocument||this,i=N.access(r,t)-1;i?N.access(r,t,i):(r.removeEventListener(e,n,!0),N.remove(r,t))}}});var at=e.location,ot=h.now(),st=/\?/;h.parseJSON=function(e){return JSON.parse(e+"")},h.parseXML=function(t){var n;if(!t||"string"!=typeof t)return null;try{n=(new e.DOMParser).parseFromString(t,"text/xml")}catch(e){n=void 0}return n&&!n.getElementsByTagName("parsererror").length||h.error("Invalid XML: "+t),n};var ut=/#.*$/,lt=/([?&])_=[^&]*/,ct=/^(.*?):[ \t]*([^\r\n]*)$/gm,ft=/^(?:GET|HEAD)$/,ht=/^\/\//,pt={},dt={},gt="*/".concat("*"),vt=r.createElement("a");function mt(e){return function(t,n){"string"!=typeof t&&(n=t,t="*");var r,i=0,a=t.toLowerCase().match(j)||[];if(h.isFunction(n))for(;r=a[i++];)"+"===r[0]?(r=r.slice(1)||"*",(e[r]=e[r]||[]).unshift(n)):(e[r]=e[r]||[]).push(n)}}function wt(e,t,n,r){var i={},a=e===dt;function o(s){var u;return i[s]=!0,h.each(e[s]||[],function(e,s){var l=s(t,n,r);return"string"!=typeof l||a||i[l]?a?!(u=l):void 0:(t.dataTypes.unshift(l),o(l),!1)}),u}return o(t.dataTypes[0])||!i["*"]&&o("*")}function yt(e,t){var n,r,i=h.ajaxSettings.flatOptions||{};for(n in t)void 0!==t[n]&&((i[n]?e:r||(r={}))[n]=t[n]);return r&&h.extend(!0,e,r),e}vt.href=at.href,h.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:at.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(at.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":gt,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":h.parseJSON,"text xml":h.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?yt(yt(e,h.ajaxSettings),t):yt(h.ajaxSettings,e)},ajaxPrefilter:mt(pt),ajaxTransport:mt(dt),ajax:function(t,n){"object"==typeof t&&(n=t,t=void 0),n=n||{};var i,a,o,s,u,l,c,f,p=h.ajaxSetup({},n),d=p.context||p,g=p.context&&(d.nodeType||d.jquery)?h(d):h.event,v=h.Deferred(),m=h.Callbacks("once memory"),w=p.statusCode||{},y={},_={},b=0,x="canceled",k={readyState:0,getResponseHeader:function(e){var t;if(2===b){if(!s)for(s={};t=ct.exec(o);)s[t[1].toLowerCase()]=t[2];t=s[e.toLowerCase()]}return null==t?null:t},getAllResponseHeaders:function(){return 2===b?o:null},setRequestHeader:function(e,t){var n=e.toLowerCase();return b||(e=_[n]=_[n]||e,y[e]=t),this},overrideMimeType:function(e){return b||(p.mimeType=e),this},statusCode:function(e){var t;if(e)if(b<2)for(t in e)w[t]=[w[t],e[t]];else k.always(e[k.status]);return this},abort:function(e){var t=e||x;return i&&i.abort(t),E(0,t),this}};if(v.promise(k).complete=m.add,k.success=k.done,k.error=k.fail,p.url=((t||p.url||at.href)+"").replace(ut,"").replace(ht,at.protocol+"//"),p.type=n.method||n.type||p.method||p.type,p.dataTypes=h.trim(p.dataType||"*").toLowerCase().match(j)||[""],null==p.crossDomain){l=r.createElement("a");try{l.href=p.url,l.href=l.href,p.crossDomain=vt.protocol+"//"+vt.host!=l.protocol+"//"+l.host}catch(e){p.crossDomain=!0}}if(p.data&&p.processData&&"string"!=typeof p.data&&(p.data=h.param(p.data,p.traditional)),wt(pt,p,n,k),2===b)return k;for(f in(c=h.event&&p.global)&&0==h.active++&&h.event.trigger("ajaxStart"),p.type=p.type.toUpperCase(),p.hasContent=!ft.test(p.type),a=p.url,p.hasContent||(p.data&&(a=p.url+=(st.test(a)?"&":"?")+p.data,delete p.data),!1===p.cache&&(p.url=lt.test(a)?a.replace(lt,"$1_="+ot++):a+(st.test(a)?"&":"?")+"_="+ot++)),p.ifModified&&(h.lastModified[a]&&k.setRequestHeader("If-Modified-Since",h.lastModified[a]),h.etag[a]&&k.setRequestHeader("If-None-Match",h.etag[a])),(p.data&&p.hasContent&&!1!==p.contentType||n.contentType)&&k.setRequestHeader("Content-Type",p.contentType),k.setRequestHeader("Accept",p.dataTypes[0]&&p.accepts[p.dataTypes[0]]?p.accepts[p.dataTypes[0]]+("*"!==p.dataTypes[0]?", "+gt+"; q=0.01":""):p.accepts["*"]),p.headers)k.setRequestHeader(f,p.headers[f]);if(p.beforeSend&&(!1===p.beforeSend.call(d,k,p)||2===b))return k.abort();for(f in x="abort",{success:1,error:1,complete:1})k[f](p[f]);if(i=wt(dt,p,n,k)){if(k.readyState=1,c&&g.trigger("ajaxSend",[k,p]),2===b)return k;p.async&&p.timeout>0&&(u=e.setTimeout(function(){k.abort("timeout")},p.timeout));try{b=1,i.send(y,E)}catch(e){if(!(b<2))throw e;E(-1,e)}}else E(-1,"No Transport");function E(t,n,r,s){var l,f,y,_,x,E=n;2!==b&&(b=2,u&&e.clearTimeout(u),i=void 0,o=s||"",k.readyState=t>0?4:0,l=t>=200&&t<300||304===t,r&&(_=function(e,t,n){for(var r,i,a,o,s=e.contents,u=e.dataTypes;"*"===u[0];)u.shift(),void 0===r&&(r=e.mimeType||t.getResponseHeader("Content-Type"));if(r)for(i in s)if(s[i]&&s[i].test(r)){u.unshift(i);break}if(u[0]in n)a=u[0];else{for(i in n){if(!u[0]||e.converters[i+" "+u[0]]){a=i;break}o||(o=i)}a=a||o}if(a)return a!==u[0]&&u.unshift(a),n[a]}(p,k,r)),_=function(e,t,n,r){var i,a,o,s,u,l={},c=e.dataTypes.slice();if(c[1])for(o in e.converters)l[o.toLowerCase()]=e.converters[o];for(a=c.shift();a;)if(e.responseFields[a]&&(n[e.responseFields[a]]=t),!u&&r&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),u=a,a=c.shift())if("*"===a)a=u;else if("*"!==u&&u!==a){if(!(o=l[u+" "+a]||l["* "+a]))for(i in l)if((s=i.split(" "))[1]===a&&(o=l[u+" "+s[0]]||l["* "+s[0]])){!0===o?o=l[i]:!0!==l[i]&&(a=s[0],c.unshift(s[1]));break}if(!0!==o)if(o&&e.throws)t=o(t);else try{t=o(t)}catch(e){return{state:"parsererror",error:o?e:"No conversion from "+u+" to "+a}}}return{state:"success",data:t}}(p,_,k,l),l?(p.ifModified&&((x=k.getResponseHeader("Last-Modified"))&&(h.lastModified[a]=x),(x=k.getResponseHeader("etag"))&&(h.etag[a]=x)),204===t||"HEAD"===p.type?E="nocontent":304===t?E="notmodified":(E=_.state,f=_.data,l=!(y=_.error))):(y=E,!t&&E||(E="error",t<0&&(t=0))),k.status=t,k.statusText=(n||E)+"",l?v.resolveWith(d,[f,E,k]):v.rejectWith(d,[k,E,y]),k.statusCode(w),w=void 0,c&&g.trigger(l?"ajaxSuccess":"ajaxError",[k,p,l?f:y]),m.fireWith(d,[k,E]),c&&(g.trigger("ajaxComplete",[k,p]),--h.active||h.event.trigger("ajaxStop")))}return k},getJSON:function(e,t,n){return h.get(e,t,n,"json")},getScript:function(e,t){return h.get(e,void 0,t,"script")}}),h.each(["get","post"],function(e,t){h[t]=function(e,n,r,i){return h.isFunction(n)&&(i=i||r,r=n,n=void 0),h.ajax(h.extend({url:e,type:t,dataType:i,data:n,success:r},h.isPlainObject(e)&&e))}}),h._evalUrl=function(e){return h.ajax({url:e,type:"GET",dataType:"script",async:!1,global:!1,throws:!0})},h.fn.extend({wrapAll:function(e){var t;return h.isFunction(e)?this.each(function(t){h(this).wrapAll(e.call(this,t))}):(this[0]&&(t=h(e,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&t.insertBefore(this[0]),t.map(function(){for(var e=this;e.firstElementChild;)e=e.firstElementChild;return e}).append(this)),this)},wrapInner:function(e){return h.isFunction(e)?this.each(function(t){h(this).wrapInner(e.call(this,t))}):this.each(function(){var t=h(this),n=t.contents();n.length?n.wrapAll(e):t.append(e)})},wrap:function(e){var t=h.isFunction(e);return this.each(function(n){h(this).wrapAll(t?e.call(this,n):e)})},unwrap:function(){return this.parent().each(function(){h.nodeName(this,"body")||h(this).replaceWith(this.childNodes)}).end()}}),h.expr.filters.hidden=function(e){return!h.expr.filters.visible(e)},h.expr.filters.visible=function(e){return e.offsetWidth>0||e.offsetHeight>0||e.getClientRects().length>0};var _t=/%20/g,bt=/\[\]$/,xt=/\r?\n/g,kt=/^(?:submit|button|image|reset|file)$/i,Et=/^(?:input|select|textarea|keygen)/i;function Tt(e,t,n,r){var i;if(h.isArray(t))h.each(t,function(t,i){n||bt.test(e)?r(e,i):Tt(e+"["+("object"==typeof i&&null!=i?t:"")+"]",i,n,r)});else if(n||"object"!==h.type(t))r(e,t);else for(i in t)Tt(e+"["+i+"]",t[i],n,r)}h.param=function(e,t){var n,r=[],i=function(e,t){t=h.isFunction(t)?t():null==t?"":t,r[r.length]=encodeURIComponent(e)+"="+encodeURIComponent(t)};if(void 0===t&&(t=h.ajaxSettings&&h.ajaxSettings.traditional),h.isArray(e)||e.jquery&&!h.isPlainObject(e))h.each(e,function(){i(this.name,this.value)});else for(n in e)Tt(n,e[n],t,i);return r.join("&").replace(_t,"+")},h.fn.extend({serialize:function(){return h.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var e=h.prop(this,"elements");return e?h.makeArray(e):this}).filter(function(){var e=this.type;return this.name&&!h(this).is(":disabled")&&Et.test(this.nodeName)&&!kt.test(e)&&(this.checked||!Z.test(e))}).map(function(e,t){var n=h(this).val();return null==n?null:h.isArray(n)?h.map(n,function(e){return{name:t.name,value:e.replace(xt,"\r\n")}}):{name:t.name,value:n.replace(xt,"\r\n")}}).get()}}),h.ajaxSettings.xhr=function(){try{return new e.XMLHttpRequest}catch(e){}};var At={0:200,1223:204},St=h.ajaxSettings.xhr();f.cors=!!St&&"withCredentials"in St,f.ajax=St=!!St,h.ajaxTransport(function(t){var n,r;if(f.cors||St&&!t.crossDomain)return{send:function(i,a){var o,s=t.xhr();if(s.open(t.type,t.url,t.async,t.username,t.password),t.xhrFields)for(o in t.xhrFields)s[o]=t.xhrFields[o];for(o in t.mimeType&&s.overrideMimeType&&s.overrideMimeType(t.mimeType),t.crossDomain||i["X-Requested-With"]||(i["X-Requested-With"]="XMLHttpRequest"),i)s.setRequestHeader(o,i[o]);n=function(e){return function(){n&&(n=r=s.onload=s.onerror=s.onabort=s.onreadystatechange=null,"abort"===e?s.abort():"error"===e?"number"!=typeof s.status?a(0,"error"):a(s.status,s.statusText):a(At[s.status]||s.status,s.statusText,"text"!==(s.responseType||"text")||"string"!=typeof s.responseText?{binary:s.response}:{text:s.responseText},s.getAllResponseHeaders()))}},s.onload=n(),r=s.onerror=n("error"),void 0!==s.onabort?s.onabort=r:s.onreadystatechange=function(){4===s.readyState&&e.setTimeout(function(){n&&r()})},n=n("abort");try{s.send(t.hasContent&&t.data||null)}catch(e){if(n)throw e}},abort:function(){n&&n()}}}),h.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(e){return h.globalEval(e),e}}}),h.ajaxPrefilter("script",function(e){void 0===e.cache&&(e.cache=!1),e.crossDomain&&(e.type="GET")}),h.ajaxTransport("script",function(e){var t,n;if(e.crossDomain)return{send:function(i,a){t=h("<script>").prop({charset:e.scriptCharset,src:e.url}).on("load error",n=function(e){t.remove(),n=null,e&&a("error"===e.type?404:200,e.type)}),r.head.appendChild(t[0])},abort:function(){n&&n()}}});var Ct=[],Mt=/(=)\?(?=&|$)|\?\?/;h.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=Ct.pop()||h.expando+"_"+ot++;return this[e]=!0,e}}),h.ajaxPrefilter("json jsonp",function(t,n,r){var i,a,o,s=!1!==t.jsonp&&(Mt.test(t.url)?"url":"string"==typeof t.data&&0===(t.contentType||"").indexOf("application/x-www-form-urlencoded")&&Mt.test(t.data)&&"data");if(s||"jsonp"===t.dataTypes[0])return i=t.jsonpCallback=h.isFunction(t.jsonpCallback)?t.jsonpCallback():t.jsonpCallback,s?t[s]=t[s].replace(Mt,"$1"+i):!1!==t.jsonp&&(t.url+=(st.test(t.url)?"&":"?")+t.jsonp+"="+i),t.converters["script json"]=function(){return o||h.error(i+" was not called"),o[0]},t.dataTypes[0]="json",a=e[i],e[i]=function(){o=arguments},r.always(function(){void 0===a?h(e).removeProp(i):e[i]=a,t[i]&&(t.jsonpCallback=n.jsonpCallback,Ct.push(i)),o&&h.isFunction(a)&&a(o[0]),o=a=void 0}),"script"}),h.parseHTML=function(e,t,n){if(!e||"string"!=typeof e)return null;"boolean"==typeof t&&(n=t,t=!1),t=t||r;var i=x.exec(e),a=!n&&[];return i?[t.createElement(i[1])]:(i=te([e],t,a),a&&a.length&&h(a).remove(),h.merge([],i.childNodes))};var Rt=h.fn.load;function jt(e){return h.isWindow(e)?e:9===e.nodeType&&e.defaultView}h.fn.load=function(e,t,n){if("string"!=typeof e&&Rt)return Rt.apply(this,arguments);var r,i,a,o=this,s=e.indexOf(" ");return s>-1&&(r=h.trim(e.slice(s)),e=e.slice(0,s)),h.isFunction(t)?(n=t,t=void 0):t&&"object"==typeof t&&(i="POST"),o.length>0&&h.ajax({url:e,type:i||"GET",dataType:"html",data:t}).done(function(e){a=arguments,o.html(r?h("<div>").append(h.parseHTML(e)).find(r):e)}).always(n&&function(e,t){o.each(function(){n.apply(this,a||[e.responseText,t,e])})}),this},h.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,t){h.fn[t]=function(e){return this.on(t,e)}}),h.expr.filters.animated=function(e){return h.grep(h.timers,function(t){return e===t.elem}).length},h.offset={setOffset:function(e,t,n){var r,i,a,o,s,u,l=h.css(e,"position"),c=h(e),f={};"static"===l&&(e.style.position="relative"),s=c.offset(),a=h.css(e,"top"),u=h.css(e,"left"),("absolute"===l||"fixed"===l)&&(a+u).indexOf("auto")>-1?(o=(r=c.position()).top,i=r.left):(o=parseFloat(a)||0,i=parseFloat(u)||0),h.isFunction(t)&&(t=t.call(e,n,h.extend({},s))),null!=t.top&&(f.top=t.top-s.top+o),null!=t.left&&(f.left=t.left-s.left+i),"using"in t?t.using.call(e,f):c.css(f)}},h.fn.extend({offset:function(e){if(arguments.length)return void 0===e?this:this.each(function(t){h.offset.setOffset(this,e,t)});var t,n,r=this[0],i={top:0,left:0},a=r&&r.ownerDocument;return a?(t=a.documentElement,h.contains(t,r)?(i=r.getBoundingClientRect(),n=jt(a),{top:i.top+n.pageYOffset-t.clientTop,left:i.left+n.pageXOffset-t.clientLeft}):i):void 0},position:function(){if(this[0]){var e,t,n=this[0],r={top:0,left:0};return"fixed"===h.css(n,"position")?t=n.getBoundingClientRect():(e=this.offsetParent(),t=this.offset(),h.nodeName(e[0],"html")||(r=e.offset()),r.top+=h.css(e[0],"borderTopWidth",!0),r.left+=h.css(e[0],"borderLeftWidth",!0)),{top:t.top-r.top-h.css(n,"marginTop",!0),left:t.left-r.left-h.css(n,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var e=this.offsetParent;e&&"static"===h.css(e,"position");)e=e.offsetParent;return e||Ce})}}),h.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(e,t){var n="pageYOffset"===t;h.fn[e]=function(r){return I(this,function(e,r,i){var a=jt(e);if(void 0===i)return a?a[t]:e[r];a?a.scrollTo(n?a.pageXOffset:i,n?i:a.pageYOffset):e[r]=i},e,r,arguments.length)}}),h.each(["top","left"],function(e,t){h.cssHooks[t]=Re(f.pixelPosition,function(e,n){if(n)return n=Me(e,t),Te.test(n)?h(e).position()[t]+"px":n})}),h.each({Height:"height",Width:"width"},function(e,t){h.each({padding:"inner"+e,content:t,"":"outer"+e},function(n,r){h.fn[r]=function(r,i){var a=arguments.length&&(n||"boolean"!=typeof r),o=n||(!0===r||!0===i?"margin":"border");return I(this,function(t,n,r){var i;return h.isWindow(t)?t.document.documentElement["client"+e]:9===t.nodeType?(i=t.documentElement,Math.max(t.body["scroll"+e],i["scroll"+e],t.body["offset"+e],i["offset"+e],i["client"+e])):void 0===r?h.css(t,n,o):h.style(t,n,r,o)},t,a?r:void 0,a,null)}})}),h.fn.extend({bind:function(e,t,n){return this.on(e,null,t,n)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,n,r){return this.on(t,e,n,r)},undelegate:function(e,t,n){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",n)},size:function(){return this.length}}),h.fn.andSelf=h.fn.addBack,"function"==typeof define&&define.amd&&define("jquery",[],function(){return h});var Lt=e.jQuery,It=e.$;return h.noConflict=function(t){return e.$===h&&(e.$=It),t&&e.jQuery===h&&(e.jQuery=Lt),h},t||(e.jQuery=e.$=h),h},"object"==typeof t&&"object"==typeof t.exports?t.exports=r.document?i(r,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return i(e)}:i(r)},{}],57:[function(e,t,n){var r,i;r=this,i=function(){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={exports:{},id:r,loaded:!1};return e[r].call(i.exports,i,i.exports,n),i.loaded=!0,i.exports}return n.m=e,n.c=t,n.p="",n(0)}([function(e,t,n){"use strict";var r=n(1),i=n(3),a=n(4),o=n(9),s=n(2),u=r.binarize;t.binarizeImage=u;var l=i.locate;t.locateQRInBinaryImage=l;var c=a.extract;function f(e){var t="";if(null!=e&&void 0!=e)for(var n=0;n<e.length;n++)t+=String.fromCharCode(e[n]);return t}function h(e,t,n){var r=u(e,t,n),s=i.locate(r);if(!s)return null;var l=a.extract(r,s);return l?o.decode(l):null}t.extractQRFromBinaryImage=c,t.decodeQR=function(e){return f(o.decode(e))},t.createBitMatrix=function(e,t){return new s.BitMatrix(e,t)},t.decodeQRFromImage=function(e,t,n){return f(h(e,t,n))},t.decodeQRFromImageAsByteArray=h},function(e,t,n){"use strict";var r=n(2),i=3,a=1<<i,o=a-1,s=24;t.binarize=function(e,t,n){if(e.length!==t*n*4)throw new Error("Binarizer data.length != width * height * 4");for(var u=new Array(t*n),l=0;l<t;l++)for(var c=0;c<n;c++){var f=4*(c*t+l),h=.2126*e[f]+.7152*e[f+1]+.0722*e[f+2];u[c*t+l]=h}var p=t>>i;0!=(t&o)&&p++;var d=n>>i;return 0!=(n&o)&&d++,function(e,t,n,o,s,u){function l(e,t,n){return e<t?t:e>n?n:e}var c=r.BitMatrix.createEmpty(o,s);function f(e,t,n,r,i){for(var o=n*i+t,s=0;s<a;s++,o+=i)for(var u=0;u<a;u++){var l=255&e[o+u];c.set(t+u,n+s,l<=r)}}for(var h=0;h<n;h++){var p=h<<i,d=s-a;p>d&&(p=d);for(var g=0;g<t;g++){var v=g<<i,m=o-a;v>m&&(v=m);for(var w=l(g,2,t-3),y=l(h,2,n-3),_=0,b=-2;b<=2;b++){var x=u[y+b];_+=x[w-2],_+=x[w-1],_+=x[w],_+=x[w+1],_+=x[w+2]}f(e,v,p,_/25,o)}}return c}(u,p,d,t,n,function(e,t,n,r,o){for(var u=new Array(n),l=0;l<n;l++)u[l]=new Array(t);for(var c=0;c<n;c++){var f=c<<i,h=o-a;f>h&&(f=h);for(var p=0;p<t;p++){var d=p<<i,g=r-a;d>g&&(d=g);for(var v=0,m=255,w=0,y=0,_=f*r+d;y<a;y++,_+=r){for(var b=0;b<a;b++){var x=255&e[_+b];v+=x,x<m&&(m=x),x>w&&(w=x)}if(w-m>s)for(y++,_+=r;y<a;y++,_+=r)for(b=0;b<a;b++)v+=255&e[_+b]}var k=v>>2*i;if(w-m<=s&&(k=m>>1,c>0&&p>0)){var E=u[c-1][p]+2*u[c][p-1]+u[c-1][p-1]>>2;m<E&&(k=E)}u[c][p]=k}}return u}(u,p,d,t,n))}},function(e,t){"use strict";var n=function(){function e(e,t){this.width=t,this.height=e.length/t,this.data=e}return e.createEmpty=function(t,n){for(var r=new Array(t*n),i=0;i<r.length;i++)r[i]=!1;return new e(r,t)},e.prototype.get=function(e,t){return this.data[t*this.width+e]},e.prototype.set=function(e,t,n){this.data[t*this.width+e]=n},e.prototype.copyBit=function(e,t,n){return this.get(e,t)?n<<1|1:n<<1},e.prototype.setRegion=function(e,t,n,r){for(var i=e+n,a=t+r,o=t;o<a;o++)for(var s=e;s<i;s++)this.set(s,o,!0)},e.prototype.mirror=function(){for(var e=0;e<this.width;e++)for(var t=e+1;t<this.height;t++)this.get(e,t)!=this.get(t,e)&&(this.set(e,t,!this.get(e,t)),this.set(t,e,!this.get(t,e)))},e}();t.BitMatrix=n},function(e,t){"use strict";var n=2,r=3,i=57,a=8,o=function(){function e(e,t,n,r){this.x=e,this.y=t,this.estimatedModuleSize=n,this.count=null==r?1:r}return e.prototype.aboutEquals=function(e,t,n){if(Math.abs(t-this.y)<=e&&Math.abs(n-this.x)<=e){var r=Math.abs(e-this.estimatedModuleSize);return r<=1||r<=this.estimatedModuleSize}return!1},e.prototype.combineEstimate=function(t,n,r){var i=this.count+1;return new e((this.count*this.x+n)/i,(this.count*this.y+t)/i,(this.count*this.estimatedModuleSize+r)/i,i)},e}();function s(e){for(var t=0,n=0;n<5;n++){var r=e[n];if(0===r)return!1;t+=r}if(t<7)return!1;var i=(t<<a)/7,o=i/2;return Math.abs(i-(e[0]<<a))<o&&Math.abs(i-(e[1]<<a))<o&&Math.abs(3*i-(e[2]<<a))<3*o&&Math.abs(i-(e[3]<<a))<o&&Math.abs(i-(e[4]<<a))<o}function u(e,t){var n=t-e[4]-e[3]-e[2]/2;return n!=n?null:n}function l(e,t){var n=e.x-t.x,r=e.y-t.y;return Math.sqrt(n*n+r*r)}t.locate=function(e){var t=[],a=!1;function c(t,n){return t=Math.floor(t),n=Math.floor(n),e.get(t,n)}function f(){var e=0,r=0,i=t.length;if(t.forEach(function(t){t.count>=n&&(e++,r+=t.estimatedModuleSize)}),e<3)return!1;for(var a=r/i,o=0,s=0;s<i;s++){var u=t[s];o+=Math.abs(u.estimatedModuleSize-a)}return o<=.05*r}function h(n,r,i,a){var l=n[0]+n[1]+n[2]+n[3]+n[4],f=u(n,i);if(null==f)return!1;var h=function(t,n,r,i){for(var a=e.height,o=[0,0,0,0,0],l=t;l>=0&&c(n,l);)o[2]++,l--;if(l<0)return null;for(;l>=0&&!c(n,l)&&o[1]<=r;)o[1]++,l--;if(l<0||o[1]>r)return null;for(;l>=0&&c(n,l)&&o[0]<=r;)o[0]++,l--;if(o[0]>r)return null;for(l=t+1;l<a&&c(n,l);)o[2]++,l++;if(l==a)return null;for(;l<a&&!c(n,l)&&o[3]<r;)o[3]++,l++;if(l==a||o[3]>=r)return null;for(;l<a&&c(n,l)&&o[4]<r;)o[4]++,l++;if(o[4]>=r)return null;var f=o[0]+o[1]+o[2]+o[3]+o[4];return 5*Math.abs(f-i)>=2*i?null:s(o)?u(o,l):null}(r,Math.floor(f),n[2],l);if(null!=h&&null!=(f=function(t,n,r,i){for(var a=e.width,o=[0,0,0,0,0],l=t;l>=0&&c(l,n);)o[2]++,l--;if(l<0)return null;for(;l>=0&&!c(l,n)&&o[1]<=r;)o[1]++,l--;if(l<0||o[1]>r)return null;for(;l>=0&&c(l,n)&&o[0]<=r;)o[0]++,l--;if(o[0]>r)return null;for(l=t+1;l<a&&c(l,n);)o[2]++,l++;if(l==a)return null;for(;l<a&&!c(l,n)&&o[3]<r;)o[3]++,l++;if(l==a||o[3]>=r)return null;for(;l<a&&c(l,n)&&o[4]<r;)o[4]++,l++;if(o[4]>=r)return null;var f=o[0]+o[1]+o[2]+o[3]+o[4];return 5*Math.abs(f-i)>=i?null:s(o)?u(o,l):null}(Math.floor(f),Math.floor(h),n[2],l))&&(!a||function(t,n,r,i){for(var a=e.height,o=e.width,u=[0,0,0,0,0],l=0;t-l>=0&&c(n-l,t-l);)u[2]++,l++;if(t-l<0||n-l<0)return!1;for(;t-l>=0&&n-l>=0&&!c(n-l,t-l)&&u[1]<=r;)u[1]++,l++;if(t-l<0||n-l<0||u[1]>r)return!1;for(;t-l>=0&&n-l>=0&&c(n-l,t-l)&&u[0]<=r;)u[0]++,l++;if(u[0]>r)return!1;for(l=1;t+l<a&&n+l<o&&c(n+l,t+l);)u[2]++,l++;if(t+l>=a||n+l>=o)return!1;for(;t+l<a&&n+l<o&&!c(n+l,t+l)&&u[3]<r;)u[3]++,l++;if(t+l>=a||n+l>=o||u[3]>=r)return!1;for(;t+l<a&&n+l<o&&c(n+l,t+l)&&u[4]<r;)u[4]++,l++;if(u[4]>=r)return!1;var f=u[0]+u[1]+u[2]+u[3]+u[4];return Math.abs(f-i)<2*i&&s(u)}(Math.floor(h),Math.floor(f),n[2],l))){for(var p=l/7,d=!1,g=0;g<t.length;g++){var v=t[g];if(v.aboutEquals(p,h,f)){t.splice(g,1,v.combineEstimate(h,f,p)),d=!0;break}}if(!d){var m=new o(f,h,p);t.push(m)}return!0}return!1}function p(){if(t.length<=1)return 0;var e=null;return t.forEach(function(t){if(t.count>=n){if(null!=e)return a=!0,Math.floor(Math.abs(e.x-t.x)-Math.abs(e.y-t.y))/2;e=t}}),0}var d=e.height,g=e.width,v=Math.floor(3*d/(4*i));v<r&&(v=r);for(var m=!1,w=[0,0,0,0,0],y=v-1;y<d&&!m;y+=v){w=[0,0,0,0,0];for(var _=0,b=0;b<g;b++)if(c(b,y))1==(1&_)&&_++,w[_]++;else if(0==(1&_))if(4===_)if(s(w)){if(!h(w,y,b,!1)){w=[w[2],w[3],w[4],1,0],_=3;continue}if(v=2,a)m=f();else{var x=p();x>w[2]&&(y+=x-w[2]-v,b=g-1)}w=[0,0,0,0,0],_=0}else w=[w[2],w[3],w[4],1,0],_=3;else w[++_]++;else w[_]++;s(w)&&h(w,y,g,!1)&&(v=w[0],a&&(m=f()))}var k=function(){var e=t.length;if(e<3)return null;if(e>3){var n=0,r=0;t.forEach(function(e){var t=e.estimatedModuleSize;n+=t,r+=t*t});var i=n/e,a=Math.sqrt(r/e-i*i);t.sort(function(e,t){var n=Math.abs(t.estimatedModuleSize-i),r=Math.abs(e.estimatedModuleSize-i);return n<r?-1:n==r?0:1});for(var o=Math.max(.2*i,a),s=0;s<t.length&&t.length>3;s++){var u=t[s];Math.abs(u.estimatedModuleSize-i)>o&&(t.splice(s,1),s--)}}return t.length>3&&(n=0,t.forEach(function(e){n+=e.estimatedModuleSize}),i=n/t.length,t.sort(function(e,t){if(t.count===e.count){var n=Math.abs(t.estimatedModuleSize-i),r=Math.abs(e.estimatedModuleSize-i);return n<r?1:n==r?0:-1}return t.count-e.count}),t=t.slice(0,3)),[t[0],t[1],t[2]]}();return k?function(e){var t,n,r,i=l(e[0],e[1]),a=l(e[1],e[2]),o=l(e[0],e[2]);if(a>=i&&a>=o?(n=e[0],t=e[1],r=e[2]):o>=a&&o>=i?(n=e[1],t=e[0],r=e[2]):(n=e[2],t=e[0],r=e[1]),function(e,t,n){var r=t.x,i=t.y;return(n.x-r)*(e.y-i)-(n.y-i)*(e.x-r)}(t,n,r)<0){var s=t;t=r,r=s}return{bottomLeft:{x:t.x,y:t.y},topLeft:{x:n.x,y:n.y},topRight:{x:r.x,y:r.y}}}(k):null}},function(e,t,n){"use strict";var r=n(5),i=n(7),a=n(8),o=n(2),s=n(6);function u(e,t,n){for(var r=!0,i=0;i<n.length&&r;i+=2){var a=Math.floor(n[i]),o=Math.floor(n[i+1]);if(a<-1||a>e||o<-1||o>t)throw new Error;r=!1,-1==a?(n[i]=0,r=!0):a==e&&(n[i]=e-1,r=!0),-1==o?(n[i+1]=0,r=!0):o==t&&(n[i+1]=t-1,r=!0)}r=!0;for(i=n.length-2;i>=0&&r;i-=2){a=Math.floor(n[i]),o=Math.floor(n[i+1]);if(a<-1||a>e||o<-1||o>t)throw new Error;r=!1,-1==a?(n[i]=0,r=!0):a==e&&(n[i]=e-1,r=!0),-1==o?(n[i+1]=0,r=!0):o==t&&(n[i+1]=t-1,r=!0)}return n}function l(e,t,n,r){return Math.sqrt((n-e)*(n-e)+(r-t)*(r-t))}function c(e,t,n,i,a){t=Math.floor(t),n=Math.floor(n);var o=Math.floor(i*e),s=Math.max(0,t-o),u=Math.min(a.width,t+o);if(u-s<3*e)return null;var l=Math.max(0,n-o),c=Math.min(a.height-1,n+o);return r.findAlignment(s,l,u-s,c-l,e,a)}function f(e,t,n,r,i){e=Math.floor(e),t=Math.floor(t),n=Math.floor(n),r=Math.floor(r);var a=Math.abs(r-t)>Math.abs(n-e);if(a){var o=e;e=t,t=o,o=n,n=r,r=o}for(var s=Math.abs(n-e),u=Math.abs(r-t),c=-s>>1,f=e<n?1:-1,h=t<r?1:-1,p=0,d=n+f,g=e,v=t;g!=d;g+=f){var m=a?v:g,w=a?g:v;if(1==p===i.get(m,w)){if(2==p)return l(g,v,e,t);p++}if((c+=u)>0){if(v==r)break;v+=h,c-=s}}return 2==p?l(n+f,r,e,t):NaN}function h(e,t,n,r,i){var a=f(e,t,n,r,i),o=1,s=e-(n-e);s<0?(o=e/(e-s),s=0):s>=i.width&&(o=(i.width-1-e)/(s-e),s=i.width-1);var u=t-(r-t)*o;return o=1,u<0?(o=t/(t-u),u=0):u>=i.height&&(o=(i.height-1-t)/(u-t),u=i.height-1),(a+=f(e,t,s=e+(s-e)*o,u,i))-1}function p(e,t,n){var r=h(e.x,e.y,t.x,t.y,n),i=h(t.x,t.y,e.x,e.y,n);return s.isNaN(r)?i/7:s.isNaN(i)?r/7:(r+i)/14}t.extract=function(e,t){var n=function(e,t,n,r){return(p(e,t,r)+p(e,n,r))/2}(t.topLeft,t.topRight,t.bottomLeft,e);if(n<1)return null;var r=function(e,t,n,r){var i=7+(Math.round(l(e.x,e.y,t.x,t.y)/r)+Math.round(l(e.x,e.y,n.x,n.y)/r)>>1);switch(3&i){case 0:i++;break;case 2:i--}return i}(t.topLeft,t.topRight,t.bottomLeft,n);if(!r)return null;var s=function(e){if(e%4!=1)return null;var t=e-17>>2;return t<1||t>40?null:a.getVersionForNumber(t)}(r);if(null==s)return null;var f=s.getDimensionForVersion()-7,h=null;if(s.alignmentPatternCenters.length>0)for(var d=t.topRight.x-t.topLeft.x+t.bottomLeft.x,g=t.topRight.y-t.topLeft.y+t.bottomLeft.y,v=1-3/f,m=t.topLeft.x+v*(d-t.topLeft.x),w=t.topLeft.y+v*(g-t.topLeft.y),y=4;y<=16&&!(h=c(n,m,w,y,e));y<<=1);return function(e,t,n){if(t<=0)return null;for(var r=o.BitMatrix.createEmpty(t,t),a=new Array(t<<1),s=0;s<t;s++){for(var l=a.length,c=s+.5,f=0;f<l;f+=2)a[f]=.5+(f>>1),a[f+1]=c;a=i.transformPoints(n,a);try{var h=u(e.width,e.height,a)}catch(e){return null}for(f=0;f<l;f+=2)r.set(f>>1,s,e.get(Math.floor(h[f]),Math.floor(h[f+1])))}return r}(e,r,function(e,t,n,r,a){var o,s,u,l,c=a-3.5;return null!=r?(o=r.x,s=r.y,u=l=c-3):(o=t.x-e.x+n.x,s=t.y-e.y+n.y,u=l=c),i.quadrilateralToQuadrilateral(3.5,3.5,c,3.5,u,l,3.5,c,e.x,e.y,t.x,t.y,o,s,n.x,n.y)}(t.topLeft,t.topRight,t.bottomLeft,h,r))}},function(e,t,n){"use strict";var r=n(6);function i(e,t,n,r){if(Math.abs(n-e.y)<=t&&Math.abs(r-e.x)<=t){var i=Math.abs(t-e.estimatedModuleSize);return i<=1||i<=e.estimatedModuleSize}return!1}function a(e,t,n,r){return{x:(e.x+n)/2,y:(e.y+t)/2,estimatedModuleSize:(e.estimatedModuleSize+r)/2}}function o(e,t){for(var n=t/2,r=0;r<3;r++)if(Math.abs(t-e[r])>=n)return!1;return!0}function s(e,t){var n=t-e[2]-e[1]/2;return r.isNaN(n)?null:n}t.findAlignment=function(e,t,n,r,u,l){var c=[];function f(e,t,n,r){var u=e[0]+e[1]+e[2],f=s(e,n);if(null==f)return null;var h=function(e,t,n,r,i,a){for(var u=a.height,l=[0,0,0],c=e;c>=0&&a.get(t,c)&&l[1]<=n;)l[1]++,c--;if(c<0||l[1]>n)return null;for(;c>=0&&!a.get(t,c)&&l[0]<=n;)l[0]++,c--;if(l[0]>n)return null;for(c=e+1;c<u&&a.get(t,c)&&l[1]<=n;)l[1]++,c++;if(c==u||l[1]>n)return null;for(;c<u&&!a.get(t,c)&&l[2]<=n;)l[2]++,c++;if(l[2]>n)return null;var f=l[0]+l[1]+l[2];return 5*Math.abs(f-r)>=2*r?null:o(l,i)?s(l,c):null}(t,Math.floor(f),2*e[1],u,r,l);if(null!=h){var p=(e[0]+e[1]+e[2])/3;for(var d in c){var g=c[d];if(i(g,p,h,f))return a(g,h,f,p)}var v={x:f,y:h,estimatedModuleSize:p};c.push(v)}return null}for(var h=e+n,p=t+(r>>1),d=[0,0,0],g=0;g<r;g++){var v=p+(0==(1&g)?g+1>>1:-(g+1>>1));d[0]=0,d[1]=0,d[2]=0;for(var m=e;m<h&&!l.get(m,v);)m++;for(var w=0;m<h;){if(l.get(m,v))if(1==w)d[w]++;else if(2==w){if(o(d,u)&&null!=(y=f(d,v,m,u)))return y;d[0]=d[2],d[1]=1,d[2]=0,w=1}else d[++w]++;else 1==w&&w++,d[w]++;m++}if(o(d,u)){var y=f(d,v,u,h);if(null!=y)return y}}return 0!=c.length?c[0]:null}},function(e,t){"use strict";var n=[0,1,1,2,1,2,2,3,1,2,2,3,2,3,3,4];t.numBitsDiffering=function(e,t){return n[15&(e^=t)]+n[e>>4&15]+n[e>>8&15]+n[e>>12&15]+n[e>>16&15]+n[e>>20&15]+n[e>>24&15]+n[e>>28&15]},t.isNaN=function(e){return"[object Number]"===Object.prototype.toString.call(e)&&e!==+e}},function(e,t){"use strict";function n(e,t,n,r,i,a,o,s){var u=e-n+i-o,l=t-r+a-s;if(0==u&&0==l)return{a11:n-e,a21:i-n,a31:e,a12:r-t,a22:a-r,a32:t,a13:0,a23:0,a33:1};var c=n-i,f=o-i,h=r-a,p=s-a,d=c*p-f*h,g=(u*p-f*l)/d,v=(c*l-u*h)/d;return{a11:n-e+g*n,a21:o-e+v*o,a31:e,a12:r-t+g*r,a22:s-t+v*s,a32:t,a13:g,a23:v,a33:1}}t.transformPoints=function(e,t){for(var n=t.length,r=e.a11,i=e.a12,a=e.a13,o=e.a21,s=e.a22,u=e.a23,l=e.a31,c=e.a32,f=e.a33,h=0;h<n;h+=2){var p=t[h],d=t[h+1],g=a*p+u*d+f;t[h]=(r*p+o*d+l)/g,t[h+1]=(i*p+s*d+c)/g}return t},t.quadrilateralToQuadrilateral=function(e,t,r,i,a,o,s,u,l,c,f,h,p,d,g,v){var m,w,y=function(e,t,r,i,a,o,s,u){return{a11:(l=n(e,t,r,i,a,o,s,u)).a22*l.a33-l.a23*l.a32,a21:l.a23*l.a31-l.a21*l.a33,a31:l.a21*l.a32-l.a22*l.a31,a12:l.a13*l.a32-l.a12*l.a33,a22:l.a11*l.a33-l.a13*l.a31,a32:l.a12*l.a31-l.a11*l.a32,a13:l.a12*l.a23-l.a13*l.a22,a23:l.a13*l.a21-l.a11*l.a23,a33:l.a11*l.a22-l.a12*l.a21};var l}(e,t,r,i,a,o,s,u),_=n(l,c,f,h,p,d,g,v);return w=y,{a11:(m=_).a11*w.a11+m.a21*w.a12+m.a31*w.a13,a21:m.a11*w.a21+m.a21*w.a22+m.a31*w.a23,a31:m.a11*w.a31+m.a21*w.a32+m.a31*w.a33,a12:m.a12*w.a11+m.a22*w.a12+m.a32*w.a13,a22:m.a12*w.a21+m.a22*w.a22+m.a32*w.a23,a32:m.a12*w.a31+m.a22*w.a32+m.a32*w.a33,a13:m.a13*w.a11+m.a23*w.a12+m.a33*w.a13,a23:m.a13*w.a21+m.a23*w.a22+m.a33*w.a23,a33:m.a13*w.a31+m.a23*w.a32+m.a33*w.a33}}},function(e,t,n){"use strict";var r=n(6),i=[31892,34236,39577,42195,48118,51042,55367,58893,63784,68472,70749,76311,79154,84390,87683,92361,96236,102084,102881,110507,110734,117786,119615,126325,127568,133589,136944,141498,145311,150283,152622,158308,161089,167017],a=function(){return function(e,t){this.count=e,this.dataCodewords=t}}(),o=function(){function e(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];this.ecCodewordsPerBlock=e,this.ecBlocks=t}return e.prototype.getNumBlocks=function(){return this.ecBlocks.reduce(function(e,t){return e+t.count},0)},e.prototype.getTotalECCodewords=function(){return this.ecCodewordsPerBlock*this.getNumBlocks()},e}(),s=function(){function e(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];this.versionNumber=e,this.alignmentPatternCenters=t,this.ecBlocks=n;var i=0,a=this.ecBlocks[0].ecCodewordsPerBlock;this.ecBlocks[0].ecBlocks.forEach(function(e){i+=e.count*(e.dataCodewords+a)}),this.totalCodewords=i}return e.prototype.getDimensionForVersion=function(){return 17+4*this.versionNumber},e.prototype.getECBlocksForLevel=function(e){return this.ecBlocks[e.ordinal]},e.decodeVersionInformation=function(e){for(var t=1/0,n=0,a=0;a<i.length;a++){var o=i[a];if(o==e)return l(a+7);var s=r.numBitsDiffering(e,o);s<t&&(n=a+7,t=s)}return t<=3?l(n):null},e}();t.Version=s;var u=[new s(1,[],new o(7,new a(1,19)),new o(10,new a(1,16)),new o(13,new a(1,13)),new o(17,new a(1,9))),new s(2,[6,18],new o(10,new a(1,34)),new o(16,new a(1,28)),new o(22,new a(1,22)),new o(28,new a(1,16))),new s(3,[6,22],new o(15,new a(1,55)),new o(26,new a(1,44)),new o(18,new a(2,17)),new o(22,new a(2,13))),new s(4,[6,26],new o(20,new a(1,80)),new o(18,new a(2,32)),new o(26,new a(2,24)),new o(16,new a(4,9))),new s(5,[6,30],new o(26,new a(1,108)),new o(24,new a(2,43)),new o(18,new a(2,15),new a(2,16)),new o(22,new a(2,11),new a(2,12))),new s(6,[6,34],new o(18,new a(2,68)),new o(16,new a(4,27)),new o(24,new a(4,19)),new o(28,new a(4,15))),new s(7,[6,22,38],new o(20,new a(2,78)),new o(18,new a(4,31)),new o(18,new a(2,14),new a(4,15)),new o(26,new a(4,13),new a(1,14))),new s(8,[6,24,42],new o(24,new a(2,97)),new o(22,new a(2,38),new a(2,39)),new o(22,new a(4,18),new a(2,19)),new o(26,new a(4,14),new a(2,15))),new s(9,[6,26,46],new o(30,new a(2,116)),new o(22,new a(3,36),new a(2,37)),new o(20,new a(4,16),new a(4,17)),new o(24,new a(4,12),new a(4,13))),new s(10,[6,28,50],new o(18,new a(2,68),new a(2,69)),new o(26,new a(4,43),new a(1,44)),new o(24,new a(6,19),new a(2,20)),new o(28,new a(6,15),new a(2,16))),new s(11,[6,30,54],new o(20,new a(4,81)),new o(30,new a(1,50),new a(4,51)),new o(28,new a(4,22),new a(4,23)),new o(24,new a(3,12),new a(8,13))),new s(12,[6,32,58],new o(24,new a(2,92),new a(2,93)),new o(22,new a(6,36),new a(2,37)),new o(26,new a(4,20),new a(6,21)),new o(28,new a(7,14),new a(4,15))),new s(13,[6,34,62],new o(26,new a(4,107)),new o(22,new a(8,37),new a(1,38)),new o(24,new a(8,20),new a(4,21)),new o(22,new a(12,11),new a(4,12))),new s(14,[6,26,46,66],new o(30,new a(3,115),new a(1,116)),new o(24,new a(4,40),new a(5,41)),new o(20,new a(11,16),new a(5,17)),new o(24,new a(11,12),new a(5,13))),new s(15,[6,26,48,70],new o(22,new a(5,87),new a(1,88)),new o(24,new a(5,41),new a(5,42)),new o(30,new a(5,24),new a(7,25)),new o(24,new a(11,12),new a(7,13))),new s(16,[6,26,50,74],new o(24,new a(5,98),new a(1,99)),new o(28,new a(7,45),new a(3,46)),new o(24,new a(15,19),new a(2,20)),new o(30,new a(3,15),new a(13,16))),new s(17,[6,30,54,78],new o(28,new a(1,107),new a(5,108)),new o(28,new a(10,46),new a(1,47)),new o(28,new a(1,22),new a(15,23)),new o(28,new a(2,14),new a(17,15))),new s(18,[6,30,56,82],new o(30,new a(5,120),new a(1,121)),new o(26,new a(9,43),new a(4,44)),new o(28,new a(17,22),new a(1,23)),new o(28,new a(2,14),new a(19,15))),new s(19,[6,30,58,86],new o(28,new a(3,113),new a(4,114)),new o(26,new a(3,44),new a(11,45)),new o(26,new a(17,21),new a(4,22)),new o(26,new a(9,13),new a(16,14))),new s(20,[6,34,62,90],new o(28,new a(3,107),new a(5,108)),new o(26,new a(3,41),new a(13,42)),new o(30,new a(15,24),new a(5,25)),new o(28,new a(15,15),new a(10,16))),new s(21,[6,28,50,72,94],new o(28,new a(4,116),new a(4,117)),new o(26,new a(17,42)),new o(28,new a(17,22),new a(6,23)),new o(30,new a(19,16),new a(6,17))),new s(22,[6,26,50,74,98],new o(28,new a(2,111),new a(7,112)),new o(28,new a(17,46)),new o(30,new a(7,24),new a(16,25)),new o(24,new a(34,13))),new s(23,[6,30,54,74,102],new o(30,new a(4,121),new a(5,122)),new o(28,new a(4,47),new a(14,48)),new o(30,new a(11,24),new a(14,25)),new o(30,new a(16,15),new a(14,16))),new s(24,[6,28,54,80,106],new o(30,new a(6,117),new a(4,118)),new o(28,new a(6,45),new a(14,46)),new o(30,new a(11,24),new a(16,25)),new o(30,new a(30,16),new a(2,17))),new s(25,[6,32,58,84,110],new o(26,new a(8,106),new a(4,107)),new o(28,new a(8,47),new a(13,48)),new o(30,new a(7,24),new a(22,25)),new o(30,new a(22,15),new a(13,16))),new s(26,[6,30,58,86,114],new o(28,new a(10,114),new a(2,115)),new o(28,new a(19,46),new a(4,47)),new o(28,new a(28,22),new a(6,23)),new o(30,new a(33,16),new a(4,17))),new s(27,[6,34,62,90,118],new o(30,new a(8,122),new a(4,123)),new o(28,new a(22,45),new a(3,46)),new o(30,new a(8,23),new a(26,24)),new o(30,new a(12,15),new a(28,16))),new s(28,[6,26,50,74,98,122],new o(30,new a(3,117),new a(10,118)),new o(28,new a(3,45),new a(23,46)),new o(30,new a(4,24),new a(31,25)),new o(30,new a(11,15),new a(31,16))),new s(29,[6,30,54,78,102,126],new o(30,new a(7,116),new a(7,117)),new o(28,new a(21,45),new a(7,46)),new o(30,new a(1,23),new a(37,24)),new o(30,new a(19,15),new a(26,16))),new s(30,[6,26,52,78,104,130],new o(30,new a(5,115),new a(10,116)),new o(28,new a(19,47),new a(10,48)),new o(30,new a(15,24),new a(25,25)),new o(30,new a(23,15),new a(25,16))),new s(31,[6,30,56,82,108,134],new o(30,new a(13,115),new a(3,116)),new o(28,new a(2,46),new a(29,47)),new o(30,new a(42,24),new a(1,25)),new o(30,new a(23,15),new a(28,16))),new s(32,[6,34,60,86,112,138],new o(30,new a(17,115)),new o(28,new a(10,46),new a(23,47)),new o(30,new a(10,24),new a(35,25)),new o(30,new a(19,15),new a(35,16))),new s(33,[6,30,58,86,114,142],new o(30,new a(17,115),new a(1,116)),new o(28,new a(14,46),new a(21,47)),new o(30,new a(29,24),new a(19,25)),new o(30,new a(11,15),new a(46,16))),new s(34,[6,34,62,90,118,146],new o(30,new a(13,115),new a(6,116)),new o(28,new a(14,46),new a(23,47)),new o(30,new a(44,24),new a(7,25)),new o(30,new a(59,16),new a(1,17))),new s(35,[6,30,54,78,102,126,150],new o(30,new a(12,121),new a(7,122)),new o(28,new a(12,47),new a(26,48)),new o(30,new a(39,24),new a(14,25)),new o(30,new a(22,15),new a(41,16))),new s(36,[6,24,50,76,102,128,154],new o(30,new a(6,121),new a(14,122)),new o(28,new a(6,47),new a(34,48)),new o(30,new a(46,24),new a(10,25)),new o(30,new a(2,15),new a(64,16))),new s(37,[6,28,54,80,106,132,158],new o(30,new a(17,122),new a(4,123)),new o(28,new a(29,46),new a(14,47)),new o(30,new a(49,24),new a(10,25)),new o(30,new a(24,15),new a(46,16))),new s(38,[6,32,58,84,110,136,162],new o(30,new a(4,122),new a(18,123)),new o(28,new a(13,46),new a(32,47)),new o(30,new a(48,24),new a(14,25)),new o(30,new a(42,15),new a(32,16))),new s(39,[6,26,54,82,110,138,166],new o(30,new a(20,117),new a(4,118)),new o(28,new a(40,47),new a(7,48)),new o(30,new a(43,24),new a(22,25)),new o(30,new a(10,15),new a(67,16))),new s(40,[6,30,58,86,114,142,170],new o(30,new a(19,118),new a(6,119)),new o(28,new a(18,47),new a(31,48)),new o(30,new a(34,24),new a(34,25)),new o(30,new a(20,15),new a(61,16)))];function l(e){if(e<1||e>40)throw new Error("Invalid version number "+e);return u[e-1]}t.getVersionForNumber=l},function(e,t,n){"use strict";var r=n(2),i=n(10),a=n(6),o=n(12),s=n(8),u=21522,l=[[21522,0],[20773,1],[24188,2],[23371,3],[17913,4],[16590,5],[20375,6],[19104,7],[30660,8],[29427,9],[32170,10],[30877,11],[26159,12],[25368,13],[27713,14],[26998,15],[5769,16],[5054,17],[7399,18],[6608,19],[1890,20],[597,21],[3340,22],[2107,23],[13663,24],[12392,25],[16177,26],[14854,27],[9396,28],[8579,29],[11994,30],[11245,31]],c=[function(e,t){return 0==(e+t&1)},function(e,t){return 0==(1&e)},function(e,t){return t%3==0},function(e,t){return(e+t)%3==0},function(e,t){return 0==((e>>1)+t/3&1)},function(e,t){return(e*t&1)+e*t%3==0},function(e,t){return 0==((e*t&1)+e*t%3&1)},function(e,t){return 0==((e+t&1)+e*t%3&1)}],f=[{ordinal:1,bits:0,name:"M"},{ordinal:0,bits:1,name:"L"},{ordinal:3,bits:2,name:"H"},{ordinal:2,bits:3,name:"Q"}];function h(e,t,n){for(var i=c[n.dataMask],a=e.height,o=function(e){for(var t=e.getDimensionForVersion(),n=new Array(t*t),i=0;i<n.length;i++)n[i]=!1;var a=new r.BitMatrix(n,t);a.setRegion(0,0,9,9),a.setRegion(t-8,0,8,9),a.setRegion(0,t-8,9,8);for(var o=e.alignmentPatternCenters.length,s=0;s<o;s++){i=e.alignmentPatternCenters[s]-2;for(var u=0;u<o;u++)0==s&&(0==u||u==o-1)||s==o-1&&0==u||a.setRegion(e.alignmentPatternCenters[u]-2,i,5,5)}return a.setRegion(6,9,1,t-17),a.setRegion(9,6,t-17,1),e.versionNumber>6&&(a.setRegion(t-11,0,3,6),a.setRegion(0,t-11,6,3)),a}(t),s=!0,u=[],l=0,f=0,h=0,p=a-1;p>0;p-=2){6==p&&p--;for(var d=0;d<a;d++)for(var g=s?a-1-d:d,v=0;v<2;v++)o.get(p-v,g)||(h++,f<<=1,e.get(p-v,g)!==i(g,p-v)&&(f|=1),8==h&&(u[l++]=255&f,h=0,f=0));s=!s}return l!=t.totalCodewords?null:u}function p(e){return{errorCorrectionLevel:f[e>>3&3],dataMask:7&e}}function d(e,t){for(var n=1/0,r=0,i=0;i<l.length;i++){var o=l[i],s=o[0];if(s==e||s==t)return p(o[1]);var u=a.numBitsDiffering(e,s);u<n&&(r=o[1],n=u),e!=t&&(u=a.numBitsDiffering(t,s))<n&&(r=o[1],n=u)}return n<=3?p(r):null}function g(e){for(var t=0,n=0;n<6;n++)t=e.copyBit(n,8,t);t=e.copyBit(7,8,t),t=e.copyBit(8,8,t),t=e.copyBit(8,7,t);for(var r=5;r>=0;r--)t=e.copyBit(8,r,t);var i=e.height,a=0,o=i-7;for(r=i-1;r>=o;r--)a=e.copyBit(8,r,a);for(n=i-8;n<i;n++)a=e.copyBit(n,8,a);var s,l,c=d(s=t,l=a)||d(s^u,l^u);return null!=c?c:null}function v(e,t){for(var n=new o.ReedSolomonDecoder,r=e.length,i=new Array(r),a=0;a<r;a++)i[a]=255&e[a];var s=e.length-t;if(!n.decode(i,s))return!1;for(a=0;a<t;a++)e[a]=i[a];return!0}function m(e){var t=function(e){var t=e.height,n=t-17>>2;if(n<=6)return s.getVersionForNumber(n);for(var r=0,i=t-11,a=5;a>=0;a--)for(var o=t-9;o>=i;o--)r=e.copyBit(o,a,r);var u=s.Version.decodeVersionInformation(r);if(null!=u&&u.getDimensionForVersion()==t)return u;for(r=0,o=5;o>=0;o--)for(a=t-9;a>=i;a--)r=e.copyBit(o,a,r);return null!=(u=s.Version.decodeVersionInformation(r))&&u.getDimensionForVersion()==t?u:null}(e);if(!t)return null;var n=g(e);if(!n)return null;var r=n.errorCorrectionLevel,a=h(e,t,n);if(!a)return null;var o=function(e,t,n){if(e.length!=t.totalCodewords)throw new Error("Invalid number of codewords for version; got "+e.length+" expected "+t.totalCodewords);var r=t.getECBlocksForLevel(n),i=0,a=r.ecBlocks;a.forEach(function(e){i+=e.count});var o=new Array(i),s=0;a.forEach(function(e){for(var t=0;t<e.count;t++){var n=e.dataCodewords,i=r.ecCodewordsPerBlock+n;o[s++]={numDataCodewords:n,codewords:new Array(i)}}});for(var u=o[0].codewords.length,l=o.length-1;l>=0&&o[l].codewords.length!=u;)l--;l++;for(var c=u-r.ecCodewordsPerBlock,f=0,h=0;h<c;h++)for(var p=0;p<s;p++)o[p].codewords[h]=e[f++];for(p=l;p<s;p++)o[p].codewords[c]=e[f++];var d=o[0].codewords.length;for(h=c;h<d;h++)for(p=0;p<s;p++){var g=p<l?h:h+1;o[p].codewords[g]=e[f++]}return o}(a,t,r),u=0;o.forEach(function(e){u+=e.numDataCodewords});for(var l=new Array(u),c=0,f=0,p=o;f<p.length;f++){var d=p[f],m=d.codewords,w=d.numDataCodewords;if(!v(m,w))return null;for(var y=0;y<w;y++)l[c++]=m[y]}return i.decodeQRdata(l,t.versionNumber,r.name)}t.decode=function(e){if(null==e)return null;var t=m(e);return t||(e.mirror(),m(e))}},function(e,t,n){"use strict";var r=n(11);function i(e){var t=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"," ","$","%","*","+","-",".","/",":"];if(e>=t.length)throw new Error("Could not decode alphanumeric char");return t[e].charCodeAt(0)}var a=function(){function e(e,t){this.characterCountBitsForVersions=e,this.bits=t}return e.prototype.getCharacterCountBits=function(e){if(null==this.characterCountBitsForVersions)throw new Error("Character count doesn't apply to this mode");var t;return t=e<=9?0:e<=26?1:2,this.characterCountBitsForVersions[t]},e}(),o=new a([0,0,0],0),s=new a([10,12,14],1),u=new a([9,11,13],2),l=new a([0,0,0],3),c=new a([8,16,16],4),f=new a(null,7),h=new a([8,10,12],8),p=new a(null,5),d=new a(null,9),g=new a([8,10,12],13);function v(e){switch(e){case 0:return o;case 1:return s;case 2:return u;case 3:return l;case 4:return c;case 5:return p;case 7:return f;case 8:return h;case 9:return d;case 13:return g;default:throw new Error("Couldn't decode mode from byte array")}}function m(e){var t=e.readBits(8);if(0==(128&t))return 127&t;if(128==(192&t))return(63&t)<<8|e.readBits(8);if(192==(224&t))return(31&t)<<16|e.readBits(16);throw new Error("Bad ECI bits starting with byte "+t)}function w(e,t,n){if(13*n>e.available())return!1;for(var r=new Array(2*n),i=0;n>0;){var a=e.readBits(13),o=Math.floor(a/96)<<8|a%96;o+=o<959?41377:42657,r[i]=o>>8&255,r[i+1]=255&o,i+=2,n--}return t.val=r,!0}function y(e,t,n){for(;n>=3;){if(e.available()<10)return!1;var r=e.readBits(10);if(r>=1e3)return!1;t.val.push(i(Math.floor(r/100))),t.val.push(i(Math.floor(r/10)%10)),t.val.push(i(r%10)),n-=3}if(2==n){if(e.available()<7)return!1;var a=e.readBits(7);if(a>=100)return!1;t.val.push(i(Math.floor(a/10))),t.val.push(i(a%10))}else if(1==n){if(e.available()<4)return!1;var o=e.readBits(4);if(o>=10)return!1;t.val.push(i(o))}return!0}function _(e,t,n,r){for(var a=t.val.length;n>1;){if(e.available()<11)return!1;var o=e.readBits(11);t.val.push(i(Math.floor(o/45))),t.val.push(i(o%45)),n-=2}if(1==n){if(e.available()<6)return!1;t.val.push(i(e.readBits(6)))}if(r)for(var s=a;s<t.val.length;s++)t.val[s]=="%".charCodeAt(0)&&(s<t.val.length-1&&t.val[s+1]=="%".charCodeAt(0)?t.val=t.val.slice(0,s+1).concat(t.val.slice(s+2)):t.val[s]=29);return!0}function b(e,t,n){if(n<<3>e.available())return!1;for(var r=new Array(n),i=0;i<n;i++)r[i]=e.readBits(8);return Array.prototype.push.apply(t.val,r),!0}var x=1;t.decodeQRdata=function(e,t,n){for(var i,a=new r.BitStream(e),k={val:[]},E=!1;i!=o;)if((i=a.available()<4?o:v(a.readBits(4)))!=o)if(i==p||i==d)E=!0;else if(i==l){if(a.available()<16)return null;a.readBits(8),a.readBits(8)}else if(i==f){var T=m(a);if(T<0||T>30)return null}else if(i==g){var A=a.readBits(4),S=a.readBits(i.getCharacterCountBits(t));if(A==x&&!w(a,k,S))return null}else{var C=a.readBits(i.getCharacterCountBits(t));if(i==s){if(!y(a,k,C))return null}else if(i==u){if(!_(a,k,C,E))return null}else if(i==c){if(!b(a,k,C))return null}else if(i!=h)return null}return k.val}},function(e,t){"use strict";var n=function(){function e(e){this.byteOffset=0,this.bitOffset=0,this.bytes=e}return e.prototype.readBits=function(e){if(e<1||e>32||e>this.available())throw new Error("Cannot read "+e.toString()+" bits");var t=0;if(this.bitOffset>0){var n=8-this.bitOffset,r=e<n?e:n,i=255>>8-r<<(a=n-r);t=(this.bytes[this.byteOffset]&i)>>a,e-=r,this.bitOffset+=r,8==this.bitOffset&&(this.bitOffset=0,this.byteOffset++)}if(e>0){for(;e>=8;)t=t<<8|255&this.bytes[this.byteOffset],this.byteOffset++,e-=8;if(e>0){var a;i=255>>(a=8-e)<<a;t=t<<e|(this.bytes[this.byteOffset]&i)>>a,this.bitOffset+=e}}return t},e.prototype.available=function(){return 8*(this.bytes.length-this.byteOffset)-this.bitOffset},e}();t.BitStream=n},function(e,t){"use strict";var n=function(){function e(){this.field=new i(285,256,0)}return e.prototype.decode=function(e,t){for(var n=new r(this.field,e),a=new Array(t),o=!0,s=0;s<t;s++){var u=n.evaluateAt(this.field.exp(s+this.field.generatorBase));a[a.length-1-s]=u,0!=u&&(o=!1)}if(o)return!0;var l=new r(this.field,a),c=this.runEuclideanAlgorithm(this.field.buildMonomial(t,1),l,t);if(null==c)return!1;var f=c[0],h=this.findErrorLocations(f);if(null==h)return!1;var p=c[1],d=this.findErrorMagnitudes(p,h);for(s=0;s<h.length;s++){var g=e.length-1-this.field.log(h[s]);if(g<0)return!1;e[g]=i.addOrSubtract(e[g],d[s])}return!0},e.prototype.runEuclideanAlgorithm=function(e,t,n){if(e.degree()<t.degree()){var r=e;e=t,t=r}for(var i=e,a=t,o=this.field.zero,s=this.field.one;a.degree()>=n/2;){var u=i,l=o;if(o=s,(i=a).isZero())return null;a=u;for(var c=this.field.zero,f=i.getCoefficient(i.degree()),h=this.field.inverse(f);a.degree()>=i.degree()&&!a.isZero();){var p=a.degree()-i.degree(),d=this.field.multiply(a.getCoefficient(a.degree()),h);c=c.addOrSubtract(this.field.buildMonomial(p,d)),a=a.addOrSubtract(i.multiplyByMonomial(p,d))}if(s=c.multiplyPoly(o).addOrSubtract(l),a.degree()>=i.degree())return null}var g=s.getCoefficient(0);if(0==g)return null;var v=this.field.inverse(g);return[s.multiply(v),a.multiply(v)]},e.prototype.findErrorLocations=function(e){var t=e.degree();if(1==t)return[e.getCoefficient(1)];for(var n=new Array(t),r=0,i=1;i<this.field.size&&r<t;i++)0==e.evaluateAt(i)&&(n[r]=this.field.inverse(i),r++);return r!=t?null:n},e.prototype.findErrorMagnitudes=function(e,t){for(var n=t.length,r=new Array(n),i=0;i<n;i++){for(var a=this.field.inverse(t[i]),o=1,s=0;s<n;s++)if(i!=s){var u=this.field.multiply(t[s],a),l=0==(1&u)?1|u:-2&u;o=this.field.multiply(o,l)}r[i]=this.field.multiply(e.evaluateAt(a),this.field.inverse(o)),0!=this.field.generatorBase&&(r[i]=this.field.multiply(r[i],a))}return r},e}();t.ReedSolomonDecoder=n;var r=function(){function e(e,t){if(0==t.length)throw new Error("No coefficients.");this.field=e;var n=t.length;if(n>1&&0==t[0]){for(var r=1;r<n&&0==t[r];)r++;if(r==n)this.coefficients=e.zero.coefficients;else{this.coefficients=new Array(n-r);for(var i=0;i<this.coefficients.length;i++)this.coefficients[i]=t[r+i]}}else this.coefficients=t}return e.prototype.evaluateAt=function(e){var t=0;if(0==e)return this.getCoefficient(0);var n=this.coefficients.length;if(1==e)return this.coefficients.forEach(function(e){t=i.addOrSubtract(t,e)}),t;t=this.coefficients[0];for(var r=1;r<n;r++)t=i.addOrSubtract(this.field.multiply(e,t),this.coefficients[r]);return t},e.prototype.getCoefficient=function(e){return this.coefficients[this.coefficients.length-1-e]},e.prototype.degree=function(){return this.coefficients.length-1},e.prototype.isZero=function(){return 0==this.coefficients[0]},e.prototype.addOrSubtract=function(t){if(this.isZero())return t;if(t.isZero())return this;var n=this.coefficients,r=t.coefficients;if(n.length>r.length){var a=n;n=r,r=a}for(var o=new Array(r.length),s=r.length-n.length,u=0;u<s;u++)o[u]=r[u];for(u=s;u<r.length;u++)o[u]=i.addOrSubtract(n[u-s],r[u]);return new e(this.field,o)},e.prototype.multiply=function(t){if(0==t)return this.field.zero;if(1==t)return this;for(var n=this.coefficients.length,r=new Array(n),i=0;i<n;i++)r[i]=this.field.multiply(this.coefficients[i],t);return new e(this.field,r)},e.prototype.multiplyPoly=function(t){if(this.isZero()||t.isZero())return this.field.zero;for(var n=this.coefficients,r=n.length,a=t.coefficients,o=a.length,s=new Array(r+o-1),u=0;u<r;u++)for(var l=n[u],c=0;c<o;c++)s[u+c]=i.addOrSubtract(s[u+c],this.field.multiply(l,a[c]));return new e(this.field,s)},e.prototype.multiplyByMonomial=function(t,n){if(t<0)throw new Error("Invalid degree less than 0");if(0==n)return this.field.zero;for(var r=this.coefficients.length,i=new Array(r+t),a=0;a<r;a++)i[a]=this.field.multiply(this.coefficients[a],n);return new e(this.field,i)},e}(),i=function(){function e(e,t,n){this.INITIALIZATION_THRESHOLD=0,this.initialized=!1,this.primitive=e,this.size=t,this.generatorBase=n,t<=this.INITIALIZATION_THRESHOLD&&this.initialize()}return e.prototype.initialize=function(){this.expTable=new Array(this.size),this.logTable=new Array(this.size);for(var e=1,t=0;t<this.size;t++)this.expTable[t]=e,(e<<=1)>=this.size&&(e^=this.primitive,e&=this.size-1);for(t=0;t<this.size-1;t++)this.logTable[this.expTable[t]]=t;this.zero=new r(this,[0]),this.one=new r(this,[1]),this.initialized=!0},e.addOrSubtract=function(e,t){return e^t},e.prototype.checkInit=function(){this.initialized||this.initialize()},e.prototype.multiply=function(e,t){return this.checkInit(),0==e||0==t?0:this.expTable[(this.logTable[e]+this.logTable[t])%(this.size-1)]},e.prototype.exp=function(e){return this.checkInit(),this.expTable[e]},e.prototype.log=function(e){if(this.checkInit(),0==e)throw new Error("Can't take log(0)");return this.logTable[e]},e.prototype.inverse=function(e){if(this.checkInit(),0==e)throw new Error("Can't invert 0");return this.expTable[this.size-this.logTable[e]-1]},e.prototype.buildMonomial=function(e,t){if(this.checkInit(),e<0)throw new Error("Invalid monomial degree less than 0");if(0==t)return this.zero;var n=new Array(e+1);return n[0]=t,new r(this,n)},e}()}])},"object"==typeof n&&"object"==typeof t?t.exports=i():"function"==typeof define&&define.amd?define([],i):"object"==typeof n?n.jsQR=i():r.jsQR=i()},{}],58:[function(e,t,n){(function(e){(function(){var r,i=200,a="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",o="Expected a function",s="__lodash_hash_undefined__",u=500,l="__lodash_placeholder__",c=1,f=2,h=4,p=1,d=2,g=1,v=2,m=4,w=8,y=16,_=32,b=64,x=128,k=256,E=512,T=30,A="...",S=800,C=16,M=1,R=2,j=1/0,L=9007199254740991,I=1.7976931348623157e308,B=NaN,D=4294967295,N=D-1,O=D>>>1,P=[["ary",x],["bind",g],["bindKey",v],["curry",w],["curryRight",y],["flip",E],["partial",_],["partialRight",b],["rearg",k]],z="[object Arguments]",F="[object Array]",U="[object AsyncFunction]",q="[object Boolean]",W="[object Date]",H="[object DOMException]",V="[object Error]",Z="[object Function]",G="[object GeneratorFunction]",Y="[object Map]",$="[object Number]",X="[object Null]",K="[object Object]",J="[object Proxy]",Q="[object RegExp]",ee="[object Set]",te="[object String]",ne="[object Symbol]",re="[object Undefined]",ie="[object WeakMap]",ae="[object WeakSet]",oe="[object ArrayBuffer]",se="[object DataView]",ue="[object Float32Array]",le="[object Float64Array]",ce="[object Int8Array]",fe="[object Int16Array]",he="[object Int32Array]",pe="[object Uint8Array]",de="[object Uint8ClampedArray]",ge="[object Uint16Array]",ve="[object Uint32Array]",me=/\b__p \+= '';/g,we=/\b(__p \+=) '' \+/g,ye=/(__e\(.*?\)|\b__t\)) \+\n'';/g,_e=/&(?:amp|lt|gt|quot|#39);/g,be=/[&<>"']/g,xe=RegExp(_e.source),ke=RegExp(be.source),Ee=/<%-([\s\S]+?)%>/g,Te=/<%([\s\S]+?)%>/g,Ae=/<%=([\s\S]+?)%>/g,Se=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Ce=/^\w*$/,Me=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Re=/[\\^$.*+?()[\]{}|]/g,je=RegExp(Re.source),Le=/^\s+|\s+$/g,Ie=/^\s+/,Be=/\s+$/,De=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Ne=/\{\n\/\* \[wrapped with (.+)\] \*/,Oe=/,? & /,Pe=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,ze=/\\(\\)?/g,Fe=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Ue=/\w*$/,qe=/^[-+]0x[0-9a-f]+$/i,We=/^0b[01]+$/i,He=/^\[object .+?Constructor\]$/,Ve=/^0o[0-7]+$/i,Ze=/^(?:0|[1-9]\d*)$/,Ge=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Ye=/($^)/,$e=/['\n\r\u2028\u2029\\]/g,Xe="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",Ke="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Je="[\\ud800-\\udfff]",Qe="["+Ke+"]",et="["+Xe+"]",tt="\\d+",nt="[\\u2700-\\u27bf]",rt="[a-z\\xdf-\\xf6\\xf8-\\xff]",it="[^\\ud800-\\udfff"+Ke+tt+"\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde]",at="\\ud83c[\\udffb-\\udfff]",ot="[^\\ud800-\\udfff]",st="(?:\\ud83c[\\udde6-\\uddff]){2}",ut="[\\ud800-\\udbff][\\udc00-\\udfff]",lt="[A-Z\\xc0-\\xd6\\xd8-\\xde]",ct="(?:"+rt+"|"+it+")",ft="(?:"+lt+"|"+it+")",ht="(?:"+et+"|"+at+")"+"?",pt="[\\ufe0e\\ufe0f]?"+ht+("(?:\\u200d(?:"+[ot,st,ut].join("|")+")[\\ufe0e\\ufe0f]?"+ht+")*"),dt="(?:"+[nt,st,ut].join("|")+")"+pt,gt="(?:"+[ot+et+"?",et,st,ut,Je].join("|")+")",vt=RegExp("[']","g"),mt=RegExp(et,"g"),wt=RegExp(at+"(?="+at+")|"+gt+pt,"g"),yt=RegExp([lt+"?"+rt+"+(?:['](?:d|ll|m|re|s|t|ve))?(?="+[Qe,lt,"$"].join("|")+")",ft+"+(?:['](?:D|LL|M|RE|S|T|VE))?(?="+[Qe,lt+ct,"$"].join("|")+")",lt+"?"+ct+"+(?:['](?:d|ll|m|re|s|t|ve))?",lt+"+(?:['](?:D|LL|M|RE|S|T|VE))?","\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",tt,dt].join("|"),"g"),_t=RegExp("[\\u200d\\ud800-\\udfff"+Xe+"\\ufe0e\\ufe0f]"),bt=/[a-z][A-Z]|[A-Z]{2,}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,xt=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],kt=-1,Et={};Et[ue]=Et[le]=Et[ce]=Et[fe]=Et[he]=Et[pe]=Et[de]=Et[ge]=Et[ve]=!0,Et[z]=Et[F]=Et[oe]=Et[q]=Et[se]=Et[W]=Et[V]=Et[Z]=Et[Y]=Et[$]=Et[K]=Et[Q]=Et[ee]=Et[te]=Et[ie]=!1;var Tt={};Tt[z]=Tt[F]=Tt[oe]=Tt[se]=Tt[q]=Tt[W]=Tt[ue]=Tt[le]=Tt[ce]=Tt[fe]=Tt[he]=Tt[Y]=Tt[$]=Tt[K]=Tt[Q]=Tt[ee]=Tt[te]=Tt[ne]=Tt[pe]=Tt[de]=Tt[ge]=Tt[ve]=!0,Tt[V]=Tt[Z]=Tt[ie]=!1;var At={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},St=parseFloat,Ct=parseInt,Mt="object"==typeof e&&e&&e.Object===Object&&e,Rt="object"==typeof self&&self&&self.Object===Object&&self,jt=Mt||Rt||Function("return this")(),Lt="object"==typeof n&&n&&!n.nodeType&&n,It=Lt&&"object"==typeof t&&t&&!t.nodeType&&t,Bt=It&&It.exports===Lt,Dt=Bt&&Mt.process,Nt=function(){try{return Dt&&Dt.binding&&Dt.binding("util")}catch(e){}}(),Ot=Nt&&Nt.isArrayBuffer,Pt=Nt&&Nt.isDate,zt=Nt&&Nt.isMap,Ft=Nt&&Nt.isRegExp,Ut=Nt&&Nt.isSet,qt=Nt&&Nt.isTypedArray;function Wt(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function Ht(e,t,n,r){for(var i=-1,a=null==e?0:e.length;++i<a;){var o=e[i];t(r,o,n(o),e)}return r}function Vt(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e}function Zt(e,t){for(var n=null==e?0:e.length;n--&&!1!==t(e[n],n,e););return e}function Gt(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(!t(e[n],n,e))return!1;return!0}function Yt(e,t){for(var n=-1,r=null==e?0:e.length,i=0,a=[];++n<r;){var o=e[n];t(o,n,e)&&(a[i++]=o)}return a}function $t(e,t){return!!(null==e?0:e.length)&&on(e,t,0)>-1}function Xt(e,t,n){for(var r=-1,i=null==e?0:e.length;++r<i;)if(n(t,e[r]))return!0;return!1}function Kt(e,t){for(var n=-1,r=null==e?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}function Jt(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}function Qt(e,t,n,r){var i=-1,a=null==e?0:e.length;for(r&&a&&(n=e[++i]);++i<a;)n=t(n,e[i],i,e);return n}function en(e,t,n,r){var i=null==e?0:e.length;for(r&&i&&(n=e[--i]);i--;)n=t(n,e[i],i,e);return n}function tn(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}var nn=cn("length");function rn(e,t,n){var r;return n(e,function(e,n,i){if(t(e,n,i))return r=n,!1}),r}function an(e,t,n,r){for(var i=e.length,a=n+(r?1:-1);r?a--:++a<i;)if(t(e[a],a,e))return a;return-1}function on(e,t,n){return t==t?function(e,t,n){var r=n-1,i=e.length;for(;++r<i;)if(e[r]===t)return r;return-1}(e,t,n):an(e,un,n)}function sn(e,t,n,r){for(var i=n-1,a=e.length;++i<a;)if(r(e[i],t))return i;return-1}function un(e){return e!=e}function ln(e,t){var n=null==e?0:e.length;return n?pn(e,t)/n:B}function cn(e){return function(t){return null==t?r:t[e]}}function fn(e){return function(t){return null==e?r:e[t]}}function hn(e,t,n,r,i){return i(e,function(e,i,a){n=r?(r=!1,e):t(n,e,i,a)}),n}function pn(e,t){for(var n,i=-1,a=e.length;++i<a;){var o=t(e[i]);o!==r&&(n=n===r?o:n+o)}return n}function dn(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}function gn(e){return function(t){return e(t)}}function vn(e,t){return Kt(t,function(t){return e[t]})}function mn(e,t){return e.has(t)}function wn(e,t){for(var n=-1,r=e.length;++n<r&&on(t,e[n],0)>-1;);return n}function yn(e,t){for(var n=e.length;n--&&on(t,e[n],0)>-1;);return n}var _n=fn({"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"s"}),bn=fn({"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"});function xn(e){return"\\"+At[e]}function kn(e){return _t.test(e)}function En(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n}function Tn(e,t){return function(n){return e(t(n))}}function An(e,t){for(var n=-1,r=e.length,i=0,a=[];++n<r;){var o=e[n];o!==t&&o!==l||(e[n]=l,a[i++]=n)}return a}function Sn(e,t){return"__proto__"==t?r:e[t]}function Cn(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n}function Mn(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=[e,e]}),n}function Rn(e){return kn(e)?function(e){var t=wt.lastIndex=0;for(;wt.test(e);)++t;return t}(e):nn(e)}function jn(e){return kn(e)?function(e){return e.match(wt)||[]}(e):function(e){return e.split("")}(e)}var Ln=fn({"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"});var In=function e(t){var n,Xe=(t=null==t?jt:In.defaults(jt.Object(),t,In.pick(jt,xt))).Array,Ke=t.Date,Je=t.Error,Qe=t.Function,et=t.Math,tt=t.Object,nt=t.RegExp,rt=t.String,it=t.TypeError,at=Xe.prototype,ot=Qe.prototype,st=tt.prototype,ut=t["__core-js_shared__"],lt=ot.toString,ct=st.hasOwnProperty,ft=0,ht=(n=/[^.]+$/.exec(ut&&ut.keys&&ut.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"",pt=st.toString,dt=lt.call(tt),gt=jt._,wt=nt("^"+lt.call(ct).replace(Re,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),_t=Bt?t.Buffer:r,At=t.Symbol,Mt=t.Uint8Array,Rt=_t?_t.allocUnsafe:r,Lt=Tn(tt.getPrototypeOf,tt),It=tt.create,Dt=st.propertyIsEnumerable,Nt=at.splice,nn=At?At.isConcatSpreadable:r,fn=At?At.iterator:r,Bn=At?At.toStringTag:r,Dn=function(){try{var e=za(tt,"defineProperty");return e({},"",{}),e}catch(e){}}(),Nn=t.clearTimeout!==jt.clearTimeout&&t.clearTimeout,On=Ke&&Ke.now!==jt.Date.now&&Ke.now,Pn=t.setTimeout!==jt.setTimeout&&t.setTimeout,zn=et.ceil,Fn=et.floor,Un=tt.getOwnPropertySymbols,qn=_t?_t.isBuffer:r,Wn=t.isFinite,Hn=at.join,Vn=Tn(tt.keys,tt),Zn=et.max,Gn=et.min,Yn=Ke.now,$n=t.parseInt,Xn=et.random,Kn=at.reverse,Jn=za(t,"DataView"),Qn=za(t,"Map"),er=za(t,"Promise"),tr=za(t,"Set"),nr=za(t,"WeakMap"),rr=za(tt,"create"),ir=nr&&new nr,ar={},or=co(Jn),sr=co(Qn),ur=co(er),lr=co(tr),cr=co(nr),fr=At?At.prototype:r,hr=fr?fr.valueOf:r,pr=fr?fr.toString:r;function dr(e){if(Cs(e)&&!ms(e)&&!(e instanceof wr)){if(e instanceof mr)return e;if(ct.call(e,"__wrapped__"))return fo(e)}return new mr(e)}var gr=function(){function e(){}return function(t){if(!Ss(t))return{};if(It)return It(t);e.prototype=t;var n=new e;return e.prototype=r,n}}();function vr(){}function mr(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=r}function wr(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=D,this.__views__=[]}function yr(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function _r(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function br(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function xr(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new br;++t<n;)this.add(e[t])}function kr(e){var t=this.__data__=new _r(e);this.size=t.size}function Er(e,t){var n=ms(e),r=!n&&vs(e),i=!n&&!r&&bs(e),a=!n&&!r&&!i&&Ns(e),o=n||r||i||a,s=o?dn(e.length,rt):[],u=s.length;for(var l in e)!t&&!ct.call(e,l)||o&&("length"==l||i&&("offset"==l||"parent"==l)||a&&("buffer"==l||"byteLength"==l||"byteOffset"==l)||Za(l,u))||s.push(l);return s}function Tr(e){var t=e.length;return t?e[xi(0,t-1)]:r}function Ar(e,t){return so(ra(e),Dr(t,0,e.length))}function Sr(e){return so(ra(e))}function Cr(e,t,n){(n===r||ps(e[t],n))&&(n!==r||t in e)||Ir(e,t,n)}function Mr(e,t,n){var i=e[t];ct.call(e,t)&&ps(i,n)&&(n!==r||t in e)||Ir(e,t,n)}function Rr(e,t){for(var n=e.length;n--;)if(ps(e[n][0],t))return n;return-1}function jr(e,t,n,r){return Fr(e,function(e,i,a){t(r,e,n(e),a)}),r}function Lr(e,t){return e&&ia(t,iu(t),e)}function Ir(e,t,n){"__proto__"==t&&Dn?Dn(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function Br(e,t){for(var n=-1,i=t.length,a=Xe(i),o=null==e;++n<i;)a[n]=o?r:Qs(e,t[n]);return a}function Dr(e,t,n){return e==e&&(n!==r&&(e=e<=n?e:n),t!==r&&(e=e>=t?e:t)),e}function Nr(e,t,n,i,a,o){var s,u=t&c,l=t&f,p=t&h;if(n&&(s=a?n(e,i,a,o):n(e)),s!==r)return s;if(!Ss(e))return e;var d=ms(e);if(d){if(s=function(e){var t=e.length,n=new e.constructor(t);return t&&"string"==typeof e[0]&&ct.call(e,"index")&&(n.index=e.index,n.input=e.input),n}(e),!u)return ra(e,s)}else{var g=qa(e),v=g==Z||g==G;if(bs(e))return Ki(e,u);if(g==K||g==z||v&&!a){if(s=l||v?{}:Ha(e),!u)return l?function(e,t){return ia(e,Ua(e),t)}(e,function(e,t){return e&&ia(t,au(t),e)}(s,e)):function(e,t){return ia(e,Fa(e),t)}(e,Lr(s,e))}else{if(!Tt[g])return a?e:{};s=function(e,t,n){var r,i,a,o=e.constructor;switch(t){case oe:return Ji(e);case q:case W:return new o(+e);case se:return function(e,t){var n=t?Ji(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,n);case ue:case le:case ce:case fe:case he:case pe:case de:case ge:case ve:return Qi(e,n);case Y:return new o;case $:case te:return new o(e);case Q:return(a=new(i=e).constructor(i.source,Ue.exec(i))).lastIndex=i.lastIndex,a;case ee:return new o;case ne:return r=e,hr?tt(hr.call(r)):{}}}(e,g,u)}}o||(o=new kr);var m=o.get(e);if(m)return m;if(o.set(e,s),Is(e))return e.forEach(function(r){s.add(Nr(r,t,n,r,e,o))}),s;if(Ms(e))return e.forEach(function(r,i){s.set(i,Nr(r,t,n,i,e,o))}),s;var w=d?r:(p?l?La:ja:l?au:iu)(e);return Vt(w||e,function(r,i){w&&(r=e[i=r]),Mr(s,i,Nr(r,t,n,i,e,o))}),s}function Or(e,t,n){var i=n.length;if(null==e)return!i;for(e=tt(e);i--;){var a=n[i],o=t[a],s=e[a];if(s===r&&!(a in e)||!o(s))return!1}return!0}function Pr(e,t,n){if("function"!=typeof e)throw new it(o);return ro(function(){e.apply(r,n)},t)}function zr(e,t,n,r){var a=-1,o=$t,s=!0,u=e.length,l=[],c=t.length;if(!u)return l;n&&(t=Kt(t,gn(n))),r?(o=Xt,s=!1):t.length>=i&&(o=mn,s=!1,t=new xr(t));e:for(;++a<u;){var f=e[a],h=null==n?f:n(f);if(f=r||0!==f?f:0,s&&h==h){for(var p=c;p--;)if(t[p]===h)continue e;l.push(f)}else o(t,h,r)||l.push(f)}return l}dr.templateSettings={escape:Ee,evaluate:Te,interpolate:Ae,variable:"",imports:{_:dr}},dr.prototype=vr.prototype,dr.prototype.constructor=dr,mr.prototype=gr(vr.prototype),mr.prototype.constructor=mr,wr.prototype=gr(vr.prototype),wr.prototype.constructor=wr,yr.prototype.clear=function(){this.__data__=rr?rr(null):{},this.size=0},yr.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},yr.prototype.get=function(e){var t=this.__data__;if(rr){var n=t[e];return n===s?r:n}return ct.call(t,e)?t[e]:r},yr.prototype.has=function(e){var t=this.__data__;return rr?t[e]!==r:ct.call(t,e)},yr.prototype.set=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=rr&&t===r?s:t,this},_r.prototype.clear=function(){this.__data__=[],this.size=0},_r.prototype.delete=function(e){var t=this.__data__,n=Rr(t,e);return!(n<0||(n==t.length-1?t.pop():Nt.call(t,n,1),--this.size,0))},_r.prototype.get=function(e){var t=this.__data__,n=Rr(t,e);return n<0?r:t[n][1]},_r.prototype.has=function(e){return Rr(this.__data__,e)>-1},_r.prototype.set=function(e,t){var n=this.__data__,r=Rr(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},br.prototype.clear=function(){this.size=0,this.__data__={hash:new yr,map:new(Qn||_r),string:new yr}},br.prototype.delete=function(e){var t=Oa(this,e).delete(e);return this.size-=t?1:0,t},br.prototype.get=function(e){return Oa(this,e).get(e)},br.prototype.has=function(e){return Oa(this,e).has(e)},br.prototype.set=function(e,t){var n=Oa(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},xr.prototype.add=xr.prototype.push=function(e){return this.__data__.set(e,s),this},xr.prototype.has=function(e){return this.__data__.has(e)},kr.prototype.clear=function(){this.__data__=new _r,this.size=0},kr.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},kr.prototype.get=function(e){return this.__data__.get(e)},kr.prototype.has=function(e){return this.__data__.has(e)},kr.prototype.set=function(e,t){var n=this.__data__;if(n instanceof _r){var r=n.__data__;if(!Qn||r.length<i-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new br(r)}return n.set(e,t),this.size=n.size,this};var Fr=sa(Yr),Ur=sa($r,!0);function qr(e,t){var n=!0;return Fr(e,function(e,r,i){return n=!!t(e,r,i)}),n}function Wr(e,t,n){for(var i=-1,a=e.length;++i<a;){var o=e[i],s=t(o);if(null!=s&&(u===r?s==s&&!Ds(s):n(s,u)))var u=s,l=o}return l}function Hr(e,t){var n=[];return Fr(e,function(e,r,i){t(e,r,i)&&n.push(e)}),n}function Vr(e,t,n,r,i){var a=-1,o=e.length;for(n||(n=Va),i||(i=[]);++a<o;){var s=e[a];t>0&&n(s)?t>1?Vr(s,t-1,n,r,i):Jt(i,s):r||(i[i.length]=s)}return i}var Zr=ua(),Gr=ua(!0);function Yr(e,t){return e&&Zr(e,t,iu)}function $r(e,t){return e&&Gr(e,t,iu)}function Xr(e,t){return Yt(t,function(t){return Es(e[t])})}function Kr(e,t){for(var n=0,i=(t=Gi(t,e)).length;null!=e&&n<i;)e=e[lo(t[n++])];return n&&n==i?e:r}function Jr(e,t,n){var r=t(e);return ms(e)?r:Jt(r,n(e))}function Qr(e){return null==e?e===r?re:X:Bn&&Bn in tt(e)?function(e){var t=ct.call(e,Bn),n=e[Bn];try{e[Bn]=r;var i=!0}catch(e){}var a=pt.call(e);return i&&(t?e[Bn]=n:delete e[Bn]),a}(e):function(e){return pt.call(e)}(e)}function ei(e,t){return e>t}function ti(e,t){return null!=e&&ct.call(e,t)}function ni(e,t){return null!=e&&t in tt(e)}function ri(e,t,n){for(var i=n?Xt:$t,a=e[0].length,o=e.length,s=o,u=Xe(o),l=1/0,c=[];s--;){var f=e[s];s&&t&&(f=Kt(f,gn(t))),l=Gn(f.length,l),u[s]=!n&&(t||a>=120&&f.length>=120)?new xr(s&&f):r}f=e[0];var h=-1,p=u[0];e:for(;++h<a&&c.length<l;){var d=f[h],g=t?t(d):d;if(d=n||0!==d?d:0,!(p?mn(p,g):i(c,g,n))){for(s=o;--s;){var v=u[s];if(!(v?mn(v,g):i(e[s],g,n)))continue e}p&&p.push(g),c.push(d)}}return c}function ii(e,t,n){var i=null==(e=to(e,t=Gi(t,e)))?e:e[lo(ko(t))];return null==i?r:Wt(i,e,n)}function ai(e){return Cs(e)&&Qr(e)==z}function oi(e,t,n,i,a){return e===t||(null==e||null==t||!Cs(e)&&!Cs(t)?e!=e&&t!=t:function(e,t,n,i,a,o){var s=ms(e),u=ms(t),l=s?F:qa(e),c=u?F:qa(t),f=(l=l==z?K:l)==K,h=(c=c==z?K:c)==K,g=l==c;if(g&&bs(e)){if(!bs(t))return!1;s=!0,f=!1}if(g&&!f)return o||(o=new kr),s||Ns(e)?Ma(e,t,n,i,a,o):function(e,t,n,r,i,a,o){switch(n){case se:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case oe:return!(e.byteLength!=t.byteLength||!a(new Mt(e),new Mt(t)));case q:case W:case $:return ps(+e,+t);case V:return e.name==t.name&&e.message==t.message;case Q:case te:return e==t+"";case Y:var s=En;case ee:var u=r&p;if(s||(s=Cn),e.size!=t.size&&!u)return!1;var l=o.get(e);if(l)return l==t;r|=d,o.set(e,t);var c=Ma(s(e),s(t),r,i,a,o);return o.delete(e),c;case ne:if(hr)return hr.call(e)==hr.call(t)}return!1}(e,t,l,n,i,a,o);if(!(n&p)){var v=f&&ct.call(e,"__wrapped__"),m=h&&ct.call(t,"__wrapped__");if(v||m){var w=v?e.value():e,y=m?t.value():t;return o||(o=new kr),a(w,y,n,i,o)}}return!!g&&(o||(o=new kr),function(e,t,n,i,a,o){var s=n&p,u=ja(e),l=u.length,c=ja(t).length;if(l!=c&&!s)return!1;for(var f=l;f--;){var h=u[f];if(!(s?h in t:ct.call(t,h)))return!1}var d=o.get(e);if(d&&o.get(t))return d==t;var g=!0;o.set(e,t),o.set(t,e);for(var v=s;++f<l;){h=u[f];var m=e[h],w=t[h];if(i)var y=s?i(w,m,h,t,e,o):i(m,w,h,e,t,o);if(!(y===r?m===w||a(m,w,n,i,o):y)){g=!1;break}v||(v="constructor"==h)}if(g&&!v){var _=e.constructor,b=t.constructor;_!=b&&"constructor"in e&&"constructor"in t&&!("function"==typeof _&&_ instanceof _&&"function"==typeof b&&b instanceof b)&&(g=!1)}return o.delete(e),o.delete(t),g}(e,t,n,i,a,o))}(e,t,n,i,oi,a))}function si(e,t,n,i){var a=n.length,o=a,s=!i;if(null==e)return!o;for(e=tt(e);a--;){var u=n[a];if(s&&u[2]?u[1]!==e[u[0]]:!(u[0]in e))return!1}for(;++a<o;){var l=(u=n[a])[0],c=e[l],f=u[1];if(s&&u[2]){if(c===r&&!(l in e))return!1}else{var h=new kr;if(i)var g=i(c,f,l,e,t,h);if(!(g===r?oi(f,c,p|d,i,h):g))return!1}}return!0}function ui(e){return!(!Ss(e)||ht&&ht in e)&&(Es(e)?wt:He).test(co(e))}function li(e){return"function"==typeof e?e:null==e?Ru:"object"==typeof e?ms(e)?gi(e[0],e[1]):di(e):zu(e)}function ci(e){if(!Ka(e))return Vn(e);var t=[];for(var n in tt(e))ct.call(e,n)&&"constructor"!=n&&t.push(n);return t}function fi(e){if(!Ss(e))return function(e){var t=[];if(null!=e)for(var n in tt(e))t.push(n);return t}(e);var t=Ka(e),n=[];for(var r in e)("constructor"!=r||!t&&ct.call(e,r))&&n.push(r);return n}function hi(e,t){return e<t}function pi(e,t){var n=-1,r=ys(e)?Xe(e.length):[];return Fr(e,function(e,i,a){r[++n]=t(e,i,a)}),r}function di(e){var t=Pa(e);return 1==t.length&&t[0][2]?Qa(t[0][0],t[0][1]):function(n){return n===e||si(n,e,t)}}function gi(e,t){return Ya(e)&&Ja(t)?Qa(lo(e),t):function(n){var i=Qs(n,e);return i===r&&i===t?eu(n,e):oi(t,i,p|d)}}function vi(e,t,n,i,a){e!==t&&Zr(t,function(o,s){if(Ss(o))a||(a=new kr),function(e,t,n,i,a,o,s){var u=Sn(e,n),l=Sn(t,n),c=s.get(l);if(c)Cr(e,n,c);else{var f=o?o(u,l,n+"",e,t,s):r,h=f===r;if(h){var p=ms(l),d=!p&&bs(l),g=!p&&!d&&Ns(l);f=l,p||d||g?ms(u)?f=u:_s(u)?f=ra(u):d?(h=!1,f=Ki(l,!0)):g?(h=!1,f=Qi(l,!0)):f=[]:js(l)||vs(l)?(f=u,vs(u)?f=Hs(u):(!Ss(u)||i&&Es(u))&&(f=Ha(l))):h=!1}h&&(s.set(l,f),a(f,l,i,o,s),s.delete(l)),Cr(e,n,f)}}(e,t,s,n,vi,i,a);else{var u=i?i(Sn(e,s),o,s+"",e,t,a):r;u===r&&(u=o),Cr(e,s,u)}},au)}function mi(e,t){var n=e.length;if(n)return Za(t+=t<0?n:0,n)?e[t]:r}function wi(e,t,n){var r=-1;return t=Kt(t.length?t:[Ru],gn(Na())),function(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}(pi(e,function(e,n,i){return{criteria:Kt(t,function(t){return t(e)}),index:++r,value:e}}),function(e,t){return function(e,t,n){for(var r=-1,i=e.criteria,a=t.criteria,o=i.length,s=n.length;++r<o;){var u=ea(i[r],a[r]);if(u){if(r>=s)return u;var l=n[r];return u*("desc"==l?-1:1)}}return e.index-t.index}(e,t,n)})}function yi(e,t,n){for(var r=-1,i=t.length,a={};++r<i;){var o=t[r],s=Kr(e,o);n(s,o)&&Si(a,Gi(o,e),s)}return a}function _i(e,t,n,r){var i=r?sn:on,a=-1,o=t.length,s=e;for(e===t&&(t=ra(t)),n&&(s=Kt(e,gn(n)));++a<o;)for(var u=0,l=t[a],c=n?n(l):l;(u=i(s,c,u,r))>-1;)s!==e&&Nt.call(s,u,1),Nt.call(e,u,1);return e}function bi(e,t){for(var n=e?t.length:0,r=n-1;n--;){var i=t[n];if(n==r||i!==a){var a=i;Za(i)?Nt.call(e,i,1):zi(e,i)}}return e}function xi(e,t){return e+Fn(Xn()*(t-e+1))}function ki(e,t){var n="";if(!e||t<1||t>L)return n;do{t%2&&(n+=e),(t=Fn(t/2))&&(e+=e)}while(t);return n}function Ei(e,t){return io(eo(e,t,Ru),e+"")}function Ti(e){return Tr(pu(e))}function Ai(e,t){var n=pu(e);return so(n,Dr(t,0,n.length))}function Si(e,t,n,i){if(!Ss(e))return e;for(var a=-1,o=(t=Gi(t,e)).length,s=o-1,u=e;null!=u&&++a<o;){var l=lo(t[a]),c=n;if(a!=s){var f=u[l];(c=i?i(f,l,u):r)===r&&(c=Ss(f)?f:Za(t[a+1])?[]:{})}Mr(u,l,c),u=u[l]}return e}var Ci=ir?function(e,t){return ir.set(e,t),e}:Ru,Mi=Dn?function(e,t){return Dn(e,"toString",{configurable:!0,enumerable:!1,value:Su(t),writable:!0})}:Ru;function Ri(e){return so(pu(e))}function ji(e,t,n){var r=-1,i=e.length;t<0&&(t=-t>i?0:i+t),(n=n>i?i:n)<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var a=Xe(i);++r<i;)a[r]=e[r+t];return a}function Li(e,t){var n;return Fr(e,function(e,r,i){return!(n=t(e,r,i))}),!!n}function Ii(e,t,n){var r=0,i=null==e?r:e.length;if("number"==typeof t&&t==t&&i<=O){for(;r<i;){var a=r+i>>>1,o=e[a];null!==o&&!Ds(o)&&(n?o<=t:o<t)?r=a+1:i=a}return i}return Bi(e,t,Ru,n)}function Bi(e,t,n,i){t=n(t);for(var a=0,o=null==e?0:e.length,s=t!=t,u=null===t,l=Ds(t),c=t===r;a<o;){var f=Fn((a+o)/2),h=n(e[f]),p=h!==r,d=null===h,g=h==h,v=Ds(h);if(s)var m=i||g;else m=c?g&&(i||p):u?g&&p&&(i||!d):l?g&&p&&!d&&(i||!v):!d&&!v&&(i?h<=t:h<t);m?a=f+1:o=f}return Gn(o,N)}function Di(e,t){for(var n=-1,r=e.length,i=0,a=[];++n<r;){var o=e[n],s=t?t(o):o;if(!n||!ps(s,u)){var u=s;a[i++]=0===o?0:o}}return a}function Ni(e){return"number"==typeof e?e:Ds(e)?B:+e}function Oi(e){if("string"==typeof e)return e;if(ms(e))return Kt(e,Oi)+"";if(Ds(e))return pr?pr.call(e):"";var t=e+"";return"0"==t&&1/e==-j?"-0":t}function Pi(e,t,n){var r=-1,a=$t,o=e.length,s=!0,u=[],l=u;if(n)s=!1,a=Xt;else if(o>=i){var c=t?null:ka(e);if(c)return Cn(c);s=!1,a=mn,l=new xr}else l=t?[]:u;e:for(;++r<o;){var f=e[r],h=t?t(f):f;if(f=n||0!==f?f:0,s&&h==h){for(var p=l.length;p--;)if(l[p]===h)continue e;t&&l.push(h),u.push(f)}else a(l,h,n)||(l!==u&&l.push(h),u.push(f))}return u}function zi(e,t){return null==(e=to(e,t=Gi(t,e)))||delete e[lo(ko(t))]}function Fi(e,t,n,r){return Si(e,t,n(Kr(e,t)),r)}function Ui(e,t,n,r){for(var i=e.length,a=r?i:-1;(r?a--:++a<i)&&t(e[a],a,e););return n?ji(e,r?0:a,r?a+1:i):ji(e,r?a+1:0,r?i:a)}function qi(e,t){var n=e;return n instanceof wr&&(n=n.value()),Qt(t,function(e,t){return t.func.apply(t.thisArg,Jt([e],t.args))},n)}function Wi(e,t,n){var r=e.length;if(r<2)return r?Pi(e[0]):[];for(var i=-1,a=Xe(r);++i<r;)for(var o=e[i],s=-1;++s<r;)s!=i&&(a[i]=zr(a[i]||o,e[s],t,n));return Pi(Vr(a,1),t,n)}function Hi(e,t,n){for(var i=-1,a=e.length,o=t.length,s={};++i<a;){var u=i<o?t[i]:r;n(s,e[i],u)}return s}function Vi(e){return _s(e)?e:[]}function Zi(e){return"function"==typeof e?e:Ru}function Gi(e,t){return ms(e)?e:Ya(e,t)?[e]:uo(Vs(e))}var Yi=Ei;function $i(e,t,n){var i=e.length;return n=n===r?i:n,!t&&n>=i?e:ji(e,t,n)}var Xi=Nn||function(e){return jt.clearTimeout(e)};function Ki(e,t){if(t)return e.slice();var n=e.length,r=Rt?Rt(n):new e.constructor(n);return e.copy(r),r}function Ji(e){var t=new e.constructor(e.byteLength);return new Mt(t).set(new Mt(e)),t}function Qi(e,t){var n=t?Ji(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function ea(e,t){if(e!==t){var n=e!==r,i=null===e,a=e==e,o=Ds(e),s=t!==r,u=null===t,l=t==t,c=Ds(t);if(!u&&!c&&!o&&e>t||o&&s&&l&&!u&&!c||i&&s&&l||!n&&l||!a)return 1;if(!i&&!o&&!c&&e<t||c&&n&&a&&!i&&!o||u&&n&&a||!s&&a||!l)return-1}return 0}function ta(e,t,n,r){for(var i=-1,a=e.length,o=n.length,s=-1,u=t.length,l=Zn(a-o,0),c=Xe(u+l),f=!r;++s<u;)c[s]=t[s];for(;++i<o;)(f||i<a)&&(c[n[i]]=e[i]);for(;l--;)c[s++]=e[i++];return c}function na(e,t,n,r){for(var i=-1,a=e.length,o=-1,s=n.length,u=-1,l=t.length,c=Zn(a-s,0),f=Xe(c+l),h=!r;++i<c;)f[i]=e[i];for(var p=i;++u<l;)f[p+u]=t[u];for(;++o<s;)(h||i<a)&&(f[p+n[o]]=e[i++]);return f}function ra(e,t){var n=-1,r=e.length;for(t||(t=Xe(r));++n<r;)t[n]=e[n];return t}function ia(e,t,n,i){var a=!n;n||(n={});for(var o=-1,s=t.length;++o<s;){var u=t[o],l=i?i(n[u],e[u],u,n,e):r;l===r&&(l=e[u]),a?Ir(n,u,l):Mr(n,u,l)}return n}function aa(e,t){return function(n,r){var i=ms(n)?Ht:jr,a=t?t():{};return i(n,e,Na(r,2),a)}}function oa(e){return Ei(function(t,n){var i=-1,a=n.length,o=a>1?n[a-1]:r,s=a>2?n[2]:r;for(o=e.length>3&&"function"==typeof o?(a--,o):r,s&&Ga(n[0],n[1],s)&&(o=a<3?r:o,a=1),t=tt(t);++i<a;){var u=n[i];u&&e(t,u,i,o)}return t})}function sa(e,t){return function(n,r){if(null==n)return n;if(!ys(n))return e(n,r);for(var i=n.length,a=t?i:-1,o=tt(n);(t?a--:++a<i)&&!1!==r(o[a],a,o););return n}}function ua(e){return function(t,n,r){for(var i=-1,a=tt(t),o=r(t),s=o.length;s--;){var u=o[e?s:++i];if(!1===n(a[u],u,a))break}return t}}function la(e){return function(t){var n=kn(t=Vs(t))?jn(t):r,i=n?n[0]:t.charAt(0),a=n?$i(n,1).join(""):t.slice(1);return i[e]()+a}}function ca(e){return function(t){return Qt(Eu(vu(t).replace(vt,"")),e,"")}}function fa(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var n=gr(e.prototype),r=e.apply(n,t);return Ss(r)?r:n}}function ha(e){return function(t,n,i){var a=tt(t);if(!ys(t)){var o=Na(n,3);t=iu(t),n=function(e){return o(a[e],e,a)}}var s=e(t,n,i);return s>-1?a[o?t[s]:s]:r}}function pa(e){return Ra(function(t){var n=t.length,i=n,a=mr.prototype.thru;for(e&&t.reverse();i--;){var s=t[i];if("function"!=typeof s)throw new it(o);if(a&&!u&&"wrapper"==Ba(s))var u=new mr([],!0)}for(i=u?i:n;++i<n;){var l=Ba(s=t[i]),c="wrapper"==l?Ia(s):r;u=c&&$a(c[0])&&c[1]==(x|w|_|k)&&!c[4].length&&1==c[9]?u[Ba(c[0])].apply(u,c[3]):1==s.length&&$a(s)?u[l]():u.thru(s)}return function(){var e=arguments,r=e[0];if(u&&1==e.length&&ms(r))return u.plant(r).value();for(var i=0,a=n?t[i].apply(this,e):r;++i<n;)a=t[i].call(this,a);return a}})}function da(e,t,n,i,a,o,s,u,l,c){var f=t&x,h=t&g,p=t&v,d=t&(w|y),m=t&E,_=p?r:fa(e);return function g(){for(var v=arguments.length,w=Xe(v),y=v;y--;)w[y]=arguments[y];if(d)var b=Da(g),x=function(e,t){for(var n=e.length,r=0;n--;)e[n]===t&&++r;return r}(w,b);if(i&&(w=ta(w,i,a,d)),o&&(w=na(w,o,s,d)),v-=x,d&&v<c){var k=An(w,b);return ba(e,t,da,g.placeholder,n,w,k,u,l,c-v)}var E=h?n:this,T=p?E[e]:e;return v=w.length,u?w=function(e,t){for(var n=e.length,i=Gn(t.length,n),a=ra(e);i--;){var o=t[i];e[i]=Za(o,n)?a[o]:r}return e}(w,u):m&&v>1&&w.reverse(),f&&l<v&&(w.length=l),this&&this!==jt&&this instanceof g&&(T=_||fa(T)),T.apply(E,w)}}function ga(e,t){return function(n,r){return function(e,t,n,r){return Yr(e,function(e,i,a){t(r,n(e),i,a)}),r}(n,e,t(r),{})}}function va(e,t){return function(n,i){var a;if(n===r&&i===r)return t;if(n!==r&&(a=n),i!==r){if(a===r)return i;"string"==typeof n||"string"==typeof i?(n=Oi(n),i=Oi(i)):(n=Ni(n),i=Ni(i)),a=e(n,i)}return a}}function ma(e){return Ra(function(t){return t=Kt(t,gn(Na())),Ei(function(n){var r=this;return e(t,function(e){return Wt(e,r,n)})})})}function wa(e,t){var n=(t=t===r?" ":Oi(t)).length;if(n<2)return n?ki(t,e):t;var i=ki(t,zn(e/Rn(t)));return kn(t)?$i(jn(i),0,e).join(""):i.slice(0,e)}function ya(e){return function(t,n,i){return i&&"number"!=typeof i&&Ga(t,n,i)&&(n=i=r),t=Fs(t),n===r?(n=t,t=0):n=Fs(n),function(e,t,n,r){for(var i=-1,a=Zn(zn((t-e)/(n||1)),0),o=Xe(a);a--;)o[r?a:++i]=e,e+=n;return o}(t,n,i=i===r?t<n?1:-1:Fs(i),e)}}function _a(e){return function(t,n){return"string"==typeof t&&"string"==typeof n||(t=Ws(t),n=Ws(n)),e(t,n)}}function ba(e,t,n,i,a,o,s,u,l,c){var f=t&w;t|=f?_:b,(t&=~(f?b:_))&m||(t&=~(g|v));var h=[e,t,a,f?o:r,f?s:r,f?r:o,f?r:s,u,l,c],p=n.apply(r,h);return $a(e)&&no(p,h),p.placeholder=i,ao(p,e,t)}function xa(e){var t=et[e];return function(e,n){if(e=Ws(e),n=null==n?0:Gn(Us(n),292)){var r=(Vs(e)+"e").split("e");return+((r=(Vs(t(r[0]+"e"+(+r[1]+n)))+"e").split("e"))[0]+"e"+(+r[1]-n))}return t(e)}}var ka=tr&&1/Cn(new tr([,-0]))[1]==j?function(e){return new tr(e)}:Du;function Ea(e){return function(t){var n=qa(t);return n==Y?En(t):n==ee?Mn(t):function(e,t){return Kt(t,function(t){return[t,e[t]]})}(t,e(t))}}function Ta(e,t,n,i,a,s,u,c){var f=t&v;if(!f&&"function"!=typeof e)throw new it(o);var h=i?i.length:0;if(h||(t&=~(_|b),i=a=r),u=u===r?u:Zn(Us(u),0),c=c===r?c:Us(c),h-=a?a.length:0,t&b){var p=i,d=a;i=a=r}var E=f?r:Ia(e),T=[e,t,n,i,a,p,d,s,u,c];if(E&&function(e,t){var n=e[1],r=t[1],i=n|r,a=i<(g|v|x),o=r==x&&n==w||r==x&&n==k&&e[7].length<=t[8]||r==(x|k)&&t[7].length<=t[8]&&n==w;if(!a&&!o)return e;r&g&&(e[2]=t[2],i|=n&g?0:m);var s=t[3];if(s){var u=e[3];e[3]=u?ta(u,s,t[4]):s,e[4]=u?An(e[3],l):t[4]}(s=t[5])&&(u=e[5],e[5]=u?na(u,s,t[6]):s,e[6]=u?An(e[5],l):t[6]),(s=t[7])&&(e[7]=s),r&x&&(e[8]=null==e[8]?t[8]:Gn(e[8],t[8])),null==e[9]&&(e[9]=t[9]),e[0]=t[0],e[1]=i}(T,E),e=T[0],t=T[1],n=T[2],i=T[3],a=T[4],!(c=T[9]=T[9]===r?f?0:e.length:Zn(T[9]-h,0))&&t&(w|y)&&(t&=~(w|y)),t&&t!=g)A=t==w||t==y?function(e,t,n){var i=fa(e);return function a(){for(var o=arguments.length,s=Xe(o),u=o,l=Da(a);u--;)s[u]=arguments[u];var c=o<3&&s[0]!==l&&s[o-1]!==l?[]:An(s,l);return(o-=c.length)<n?ba(e,t,da,a.placeholder,r,s,c,r,r,n-o):Wt(this&&this!==jt&&this instanceof a?i:e,this,s)}}(e,t,c):t!=_&&t!=(g|_)||a.length?da.apply(r,T):function(e,t,n,r){var i=t&g,a=fa(e);return function t(){for(var o=-1,s=arguments.length,u=-1,l=r.length,c=Xe(l+s),f=this&&this!==jt&&this instanceof t?a:e;++u<l;)c[u]=r[u];for(;s--;)c[u++]=arguments[++o];return Wt(f,i?n:this,c)}}(e,t,n,i);else var A=function(e,t,n){var r=t&g,i=fa(e);return function t(){return(this&&this!==jt&&this instanceof t?i:e).apply(r?n:this,arguments)}}(e,t,n);return ao((E?Ci:no)(A,T),e,t)}function Aa(e,t,n,i){return e===r||ps(e,st[n])&&!ct.call(i,n)?t:e}function Sa(e,t,n,i,a,o){return Ss(e)&&Ss(t)&&(o.set(t,e),vi(e,t,r,Sa,o),o.delete(t)),e}function Ca(e){return js(e)?r:e}function Ma(e,t,n,i,a,o){var s=n&p,u=e.length,l=t.length;if(u!=l&&!(s&&l>u))return!1;var c=o.get(e);if(c&&o.get(t))return c==t;var f=-1,h=!0,g=n&d?new xr:r;for(o.set(e,t),o.set(t,e);++f<u;){var v=e[f],m=t[f];if(i)var w=s?i(m,v,f,t,e,o):i(v,m,f,e,t,o);if(w!==r){if(w)continue;h=!1;break}if(g){if(!tn(t,function(e,t){if(!mn(g,t)&&(v===e||a(v,e,n,i,o)))return g.push(t)})){h=!1;break}}else if(v!==m&&!a(v,m,n,i,o)){h=!1;break}}return o.delete(e),o.delete(t),h}function Ra(e){return io(eo(e,r,wo),e+"")}function ja(e){return Jr(e,iu,Fa)}function La(e){return Jr(e,au,Ua)}var Ia=ir?function(e){return ir.get(e)}:Du;function Ba(e){for(var t=e.name+"",n=ar[t],r=ct.call(ar,t)?n.length:0;r--;){var i=n[r],a=i.func;if(null==a||a==e)return i.name}return t}function Da(e){return(ct.call(dr,"placeholder")?dr:e).placeholder}function Na(){var e=dr.iteratee||ju;return e=e===ju?li:e,arguments.length?e(arguments[0],arguments[1]):e}function Oa(e,t){var n,r,i=e.__data__;return("string"==(r=typeof(n=t))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?i["string"==typeof t?"string":"hash"]:i.map}function Pa(e){for(var t=iu(e),n=t.length;n--;){var r=t[n],i=e[r];t[n]=[r,i,Ja(i)]}return t}function za(e,t){var n=function(e,t){return null==e?r:e[t]}(e,t);return ui(n)?n:r}var Fa=Un?function(e){return null==e?[]:(e=tt(e),Yt(Un(e),function(t){return Dt.call(e,t)}))}:qu,Ua=Un?function(e){for(var t=[];e;)Jt(t,Fa(e)),e=Lt(e);return t}:qu,qa=Qr;function Wa(e,t,n){for(var r=-1,i=(t=Gi(t,e)).length,a=!1;++r<i;){var o=lo(t[r]);if(!(a=null!=e&&n(e,o)))break;e=e[o]}return a||++r!=i?a:!!(i=null==e?0:e.length)&&As(i)&&Za(o,i)&&(ms(e)||vs(e))}function Ha(e){return"function"!=typeof e.constructor||Ka(e)?{}:gr(Lt(e))}function Va(e){return ms(e)||vs(e)||!!(nn&&e&&e[nn])}function Za(e,t){var n=typeof e;return!!(t=null==t?L:t)&&("number"==n||"symbol"!=n&&Ze.test(e))&&e>-1&&e%1==0&&e<t}function Ga(e,t,n){if(!Ss(n))return!1;var r=typeof t;return!!("number"==r?ys(n)&&Za(t,n.length):"string"==r&&t in n)&&ps(n[t],e)}function Ya(e,t){if(ms(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!Ds(e))||Ce.test(e)||!Se.test(e)||null!=t&&e in tt(t)}function $a(e){var t=Ba(e),n=dr[t];if("function"!=typeof n||!(t in wr.prototype))return!1;if(e===n)return!0;var r=Ia(n);return!!r&&e===r[0]}(Jn&&qa(new Jn(new ArrayBuffer(1)))!=se||Qn&&qa(new Qn)!=Y||er&&"[object Promise]"!=qa(er.resolve())||tr&&qa(new tr)!=ee||nr&&qa(new nr)!=ie)&&(qa=function(e){var t=Qr(e),n=t==K?e.constructor:r,i=n?co(n):"";if(i)switch(i){case or:return se;case sr:return Y;case ur:return"[object Promise]";case lr:return ee;case cr:return ie}return t});var Xa=ut?Es:Wu;function Ka(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||st)}function Ja(e){return e==e&&!Ss(e)}function Qa(e,t){return function(n){return null!=n&&n[e]===t&&(t!==r||e in tt(n))}}function eo(e,t,n){return t=Zn(t===r?e.length-1:t,0),function(){for(var r=arguments,i=-1,a=Zn(r.length-t,0),o=Xe(a);++i<a;)o[i]=r[t+i];i=-1;for(var s=Xe(t+1);++i<t;)s[i]=r[i];return s[t]=n(o),Wt(e,this,s)}}function to(e,t){return t.length<2?e:Kr(e,ji(t,0,-1))}var no=oo(Ci),ro=Pn||function(e,t){return jt.setTimeout(e,t)},io=oo(Mi);function ao(e,t,n){var r=t+"";return io(e,function(e,t){var n=t.length;if(!n)return e;var r=n-1;return t[r]=(n>1?"& ":"")+t[r],t=t.join(n>2?", ":" "),e.replace(De,"{\n/* [wrapped with "+t+"] */\n")}(r,function(e,t){return Vt(P,function(n){var r="_."+n[0];t&n[1]&&!$t(e,r)&&e.push(r)}),e.sort()}(function(e){var t=e.match(Ne);return t?t[1].split(Oe):[]}(r),n)))}function oo(e){var t=0,n=0;return function(){var i=Yn(),a=C-(i-n);if(n=i,a>0){if(++t>=S)return arguments[0]}else t=0;return e.apply(r,arguments)}}function so(e,t){var n=-1,i=e.length,a=i-1;for(t=t===r?i:t;++n<t;){var o=xi(n,a),s=e[o];e[o]=e[n],e[n]=s}return e.length=t,e}var uo=function(e){var t=ss(e,function(e){return n.size===u&&n.clear(),e}),n=t.cache;return t}(function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(Me,function(e,n,r,i){t.push(r?i.replace(ze,"$1"):n||e)}),t});function lo(e){if("string"==typeof e||Ds(e))return e;var t=e+"";return"0"==t&&1/e==-j?"-0":t}function co(e){if(null!=e){try{return lt.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function fo(e){if(e instanceof wr)return e.clone();var t=new mr(e.__wrapped__,e.__chain__);return t.__actions__=ra(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}var ho=Ei(function(e,t){return _s(e)?zr(e,Vr(t,1,_s,!0)):[]}),po=Ei(function(e,t){var n=ko(t);return _s(n)&&(n=r),_s(e)?zr(e,Vr(t,1,_s,!0),Na(n,2)):[]}),go=Ei(function(e,t){var n=ko(t);return _s(n)&&(n=r),_s(e)?zr(e,Vr(t,1,_s,!0),r,n):[]});function vo(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=null==n?0:Us(n);return i<0&&(i=Zn(r+i,0)),an(e,Na(t,3),i)}function mo(e,t,n){var i=null==e?0:e.length;if(!i)return-1;var a=i-1;return n!==r&&(a=Us(n),a=n<0?Zn(i+a,0):Gn(a,i-1)),an(e,Na(t,3),a,!0)}function wo(e){return null!=e&&e.length?Vr(e,1):[]}function yo(e){return e&&e.length?e[0]:r}var _o=Ei(function(e){var t=Kt(e,Vi);return t.length&&t[0]===e[0]?ri(t):[]}),bo=Ei(function(e){var t=ko(e),n=Kt(e,Vi);return t===ko(n)?t=r:n.pop(),n.length&&n[0]===e[0]?ri(n,Na(t,2)):[]}),xo=Ei(function(e){var t=ko(e),n=Kt(e,Vi);return(t="function"==typeof t?t:r)&&n.pop(),n.length&&n[0]===e[0]?ri(n,r,t):[]});function ko(e){var t=null==e?0:e.length;return t?e[t-1]:r}var Eo=Ei(To);function To(e,t){return e&&e.length&&t&&t.length?_i(e,t):e}var Ao=Ra(function(e,t){var n=null==e?0:e.length,r=Br(e,t);return bi(e,Kt(t,function(e){return Za(e,n)?+e:e}).sort(ea)),r});function So(e){return null==e?e:Kn.call(e)}var Co=Ei(function(e){return Pi(Vr(e,1,_s,!0))}),Mo=Ei(function(e){var t=ko(e);return _s(t)&&(t=r),Pi(Vr(e,1,_s,!0),Na(t,2))}),Ro=Ei(function(e){var t=ko(e);return t="function"==typeof t?t:r,Pi(Vr(e,1,_s,!0),r,t)});function jo(e){if(!e||!e.length)return[];var t=0;return e=Yt(e,function(e){if(_s(e))return t=Zn(e.length,t),!0}),dn(t,function(t){return Kt(e,cn(t))})}function Lo(e,t){if(!e||!e.length)return[];var n=jo(e);return null==t?n:Kt(n,function(e){return Wt(t,r,e)})}var Io=Ei(function(e,t){return _s(e)?zr(e,t):[]}),Bo=Ei(function(e){return Wi(Yt(e,_s))}),Do=Ei(function(e){var t=ko(e);return _s(t)&&(t=r),Wi(Yt(e,_s),Na(t,2))}),No=Ei(function(e){var t=ko(e);return t="function"==typeof t?t:r,Wi(Yt(e,_s),r,t)}),Oo=Ei(jo);var Po=Ei(function(e){var t=e.length,n=t>1?e[t-1]:r;return Lo(e,n="function"==typeof n?(e.pop(),n):r)});function zo(e){var t=dr(e);return t.__chain__=!0,t}function Fo(e,t){return t(e)}var Uo=Ra(function(e){var t=e.length,n=t?e[0]:0,i=this.__wrapped__,a=function(t){return Br(t,e)};return!(t>1||this.__actions__.length)&&i instanceof wr&&Za(n)?((i=i.slice(n,+n+(t?1:0))).__actions__.push({func:Fo,args:[a],thisArg:r}),new mr(i,this.__chain__).thru(function(e){return t&&!e.length&&e.push(r),e})):this.thru(a)});var qo=aa(function(e,t,n){ct.call(e,n)?++e[n]:Ir(e,n,1)});var Wo=ha(vo),Ho=ha(mo);function Vo(e,t){return(ms(e)?Vt:Fr)(e,Na(t,3))}function Zo(e,t){return(ms(e)?Zt:Ur)(e,Na(t,3))}var Go=aa(function(e,t,n){ct.call(e,n)?e[n].push(t):Ir(e,n,[t])});var Yo=Ei(function(e,t,n){var r=-1,i="function"==typeof t,a=ys(e)?Xe(e.length):[];return Fr(e,function(e){a[++r]=i?Wt(t,e,n):ii(e,t,n)}),a}),$o=aa(function(e,t,n){Ir(e,n,t)});function Xo(e,t){return(ms(e)?Kt:pi)(e,Na(t,3))}var Ko=aa(function(e,t,n){e[n?0:1].push(t)},function(){return[[],[]]});var Jo=Ei(function(e,t){if(null==e)return[];var n=t.length;return n>1&&Ga(e,t[0],t[1])?t=[]:n>2&&Ga(t[0],t[1],t[2])&&(t=[t[0]]),wi(e,Vr(t,1),[])}),Qo=On||function(){return jt.Date.now()};function es(e,t,n){return t=n?r:t,t=e&&null==t?e.length:t,Ta(e,x,r,r,r,r,t)}function ts(e,t){var n;if("function"!=typeof t)throw new it(o);return e=Us(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=r),n}}var ns=Ei(function(e,t,n){var r=g;if(n.length){var i=An(n,Da(ns));r|=_}return Ta(e,r,t,n,i)}),rs=Ei(function(e,t,n){var r=g|v;if(n.length){var i=An(n,Da(rs));r|=_}return Ta(t,r,e,n,i)});function is(e,t,n){var i,a,s,u,l,c,f=0,h=!1,p=!1,d=!0;if("function"!=typeof e)throw new it(o);function g(t){var n=i,o=a;return i=a=r,f=t,u=e.apply(o,n)}function v(e){var n=e-c;return c===r||n>=t||n<0||p&&e-f>=s}function m(){var e=Qo();if(v(e))return w(e);l=ro(m,function(e){var n=t-(e-c);return p?Gn(n,s-(e-f)):n}(e))}function w(e){return l=r,d&&i?g(e):(i=a=r,u)}function y(){var e=Qo(),n=v(e);if(i=arguments,a=this,c=e,n){if(l===r)return function(e){return f=e,l=ro(m,t),h?g(e):u}(c);if(p)return l=ro(m,t),g(c)}return l===r&&(l=ro(m,t)),u}return t=Ws(t)||0,Ss(n)&&(h=!!n.leading,s=(p="maxWait"in n)?Zn(Ws(n.maxWait)||0,t):s,d="trailing"in n?!!n.trailing:d),y.cancel=function(){l!==r&&Xi(l),f=0,i=c=a=l=r},y.flush=function(){return l===r?u:w(Qo())},y}var as=Ei(function(e,t){return Pr(e,1,t)}),os=Ei(function(e,t,n){return Pr(e,Ws(t)||0,n)});function ss(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new it(o);var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],a=n.cache;if(a.has(i))return a.get(i);var o=e.apply(this,r);return n.cache=a.set(i,o)||a,o};return n.cache=new(ss.Cache||br),n}function us(e){if("function"!=typeof e)throw new it(o);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}ss.Cache=br;var ls=Yi(function(e,t){var n=(t=1==t.length&&ms(t[0])?Kt(t[0],gn(Na())):Kt(Vr(t,1),gn(Na()))).length;return Ei(function(r){for(var i=-1,a=Gn(r.length,n);++i<a;)r[i]=t[i].call(this,r[i]);return Wt(e,this,r)})}),cs=Ei(function(e,t){var n=An(t,Da(cs));return Ta(e,_,r,t,n)}),fs=Ei(function(e,t){var n=An(t,Da(fs));return Ta(e,b,r,t,n)}),hs=Ra(function(e,t){return Ta(e,k,r,r,r,t)});function ps(e,t){return e===t||e!=e&&t!=t}var ds=_a(ei),gs=_a(function(e,t){return e>=t}),vs=ai(function(){return arguments}())?ai:function(e){return Cs(e)&&ct.call(e,"callee")&&!Dt.call(e,"callee")},ms=Xe.isArray,ws=Ot?gn(Ot):function(e){return Cs(e)&&Qr(e)==oe};function ys(e){return null!=e&&As(e.length)&&!Es(e)}function _s(e){return Cs(e)&&ys(e)}var bs=qn||Wu,xs=Pt?gn(Pt):function(e){return Cs(e)&&Qr(e)==W};function ks(e){if(!Cs(e))return!1;var t=Qr(e);return t==V||t==H||"string"==typeof e.message&&"string"==typeof e.name&&!js(e)}function Es(e){if(!Ss(e))return!1;var t=Qr(e);return t==Z||t==G||t==U||t==J}function Ts(e){return"number"==typeof e&&e==Us(e)}function As(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=L}function Ss(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function Cs(e){return null!=e&&"object"==typeof e}var Ms=zt?gn(zt):function(e){return Cs(e)&&qa(e)==Y};function Rs(e){return"number"==typeof e||Cs(e)&&Qr(e)==$}function js(e){if(!Cs(e)||Qr(e)!=K)return!1;var t=Lt(e);if(null===t)return!0;var n=ct.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&lt.call(n)==dt}var Ls=Ft?gn(Ft):function(e){return Cs(e)&&Qr(e)==Q};var Is=Ut?gn(Ut):function(e){return Cs(e)&&qa(e)==ee};function Bs(e){return"string"==typeof e||!ms(e)&&Cs(e)&&Qr(e)==te}function Ds(e){return"symbol"==typeof e||Cs(e)&&Qr(e)==ne}var Ns=qt?gn(qt):function(e){return Cs(e)&&As(e.length)&&!!Et[Qr(e)]};var Os=_a(hi),Ps=_a(function(e,t){return e<=t});function zs(e){if(!e)return[];if(ys(e))return Bs(e)?jn(e):ra(e);if(fn&&e[fn])return function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}(e[fn]());var t=qa(e);return(t==Y?En:t==ee?Cn:pu)(e)}function Fs(e){return e?(e=Ws(e))===j||e===-j?(e<0?-1:1)*I:e==e?e:0:0===e?e:0}function Us(e){var t=Fs(e),n=t%1;return t==t?n?t-n:t:0}function qs(e){return e?Dr(Us(e),0,D):0}function Ws(e){if("number"==typeof e)return e;if(Ds(e))return B;if(Ss(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=Ss(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(Le,"");var n=We.test(e);return n||Ve.test(e)?Ct(e.slice(2),n?2:8):qe.test(e)?B:+e}function Hs(e){return ia(e,au(e))}function Vs(e){return null==e?"":Oi(e)}var Zs=oa(function(e,t){if(Ka(t)||ys(t))ia(t,iu(t),e);else for(var n in t)ct.call(t,n)&&Mr(e,n,t[n])}),Gs=oa(function(e,t){ia(t,au(t),e)}),Ys=oa(function(e,t,n,r){ia(t,au(t),e,r)}),$s=oa(function(e,t,n,r){ia(t,iu(t),e,r)}),Xs=Ra(Br);var Ks=Ei(function(e,t){e=tt(e);var n=-1,i=t.length,a=i>2?t[2]:r;for(a&&Ga(t[0],t[1],a)&&(i=1);++n<i;)for(var o=t[n],s=au(o),u=-1,l=s.length;++u<l;){var c=s[u],f=e[c];(f===r||ps(f,st[c])&&!ct.call(e,c))&&(e[c]=o[c])}return e}),Js=Ei(function(e){return e.push(r,Sa),Wt(su,r,e)});function Qs(e,t,n){var i=null==e?r:Kr(e,t);return i===r?n:i}function eu(e,t){return null!=e&&Wa(e,t,ni)}var tu=ga(function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=pt.call(t)),e[t]=n},Su(Ru)),nu=ga(function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=pt.call(t)),ct.call(e,t)?e[t].push(n):e[t]=[n]},Na),ru=Ei(ii);function iu(e){return ys(e)?Er(e):ci(e)}function au(e){return ys(e)?Er(e,!0):fi(e)}var ou=oa(function(e,t,n){vi(e,t,n)}),su=oa(function(e,t,n,r){vi(e,t,n,r)}),uu=Ra(function(e,t){var n={};if(null==e)return n;var r=!1;t=Kt(t,function(t){return t=Gi(t,e),r||(r=t.length>1),t}),ia(e,La(e),n),r&&(n=Nr(n,c|f|h,Ca));for(var i=t.length;i--;)zi(n,t[i]);return n});var lu=Ra(function(e,t){return null==e?{}:function(e,t){return yi(e,t,function(t,n){return eu(e,n)})}(e,t)});function cu(e,t){if(null==e)return{};var n=Kt(La(e),function(e){return[e]});return t=Na(t),yi(e,n,function(e,n){return t(e,n[0])})}var fu=Ea(iu),hu=Ea(au);function pu(e){return null==e?[]:vn(e,iu(e))}var du=ca(function(e,t,n){return t=t.toLowerCase(),e+(n?gu(t):t)});function gu(e){return ku(Vs(e).toLowerCase())}function vu(e){return(e=Vs(e))&&e.replace(Ge,_n).replace(mt,"")}var mu=ca(function(e,t,n){return e+(n?"-":"")+t.toLowerCase()}),wu=ca(function(e,t,n){return e+(n?" ":"")+t.toLowerCase()}),yu=la("toLowerCase");var _u=ca(function(e,t,n){return e+(n?"_":"")+t.toLowerCase()});var bu=ca(function(e,t,n){return e+(n?" ":"")+ku(t)});var xu=ca(function(e,t,n){return e+(n?" ":"")+t.toUpperCase()}),ku=la("toUpperCase");function Eu(e,t,n){return e=Vs(e),(t=n?r:t)===r?function(e){return bt.test(e)}(e)?function(e){return e.match(yt)||[]}(e):function(e){return e.match(Pe)||[]}(e):e.match(t)||[]}var Tu=Ei(function(e,t){try{return Wt(e,r,t)}catch(e){return ks(e)?e:new Je(e)}}),Au=Ra(function(e,t){return Vt(t,function(t){t=lo(t),Ir(e,t,ns(e[t],e))}),e});function Su(e){return function(){return e}}var Cu=pa(),Mu=pa(!0);function Ru(e){return e}function ju(e){return li("function"==typeof e?e:Nr(e,c))}var Lu=Ei(function(e,t){return function(n){return ii(n,e,t)}}),Iu=Ei(function(e,t){return function(n){return ii(e,n,t)}});function Bu(e,t,n){var r=iu(t),i=Xr(t,r);null!=n||Ss(t)&&(i.length||!r.length)||(n=t,t=e,e=this,i=Xr(t,iu(t)));var a=!(Ss(n)&&"chain"in n&&!n.chain),o=Es(e);return Vt(i,function(n){var r=t[n];e[n]=r,o&&(e.prototype[n]=function(){var t=this.__chain__;if(a||t){var n=e(this.__wrapped__);return(n.__actions__=ra(this.__actions__)).push({func:r,args:arguments,thisArg:e}),n.__chain__=t,n}return r.apply(e,Jt([this.value()],arguments))})}),e}function Du(){}var Nu=ma(Kt),Ou=ma(Gt),Pu=ma(tn);function zu(e){return Ya(e)?cn(lo(e)):function(e){return function(t){return Kr(t,e)}}(e)}var Fu=ya(),Uu=ya(!0);function qu(){return[]}function Wu(){return!1}var Hu=va(function(e,t){return e+t},0),Vu=xa("ceil"),Zu=va(function(e,t){return e/t},1),Gu=xa("floor");var Yu,$u=va(function(e,t){return e*t},1),Xu=xa("round"),Ku=va(function(e,t){return e-t},0);return dr.after=function(e,t){if("function"!=typeof t)throw new it(o);return e=Us(e),function(){if(--e<1)return t.apply(this,arguments)}},dr.ary=es,dr.assign=Zs,dr.assignIn=Gs,dr.assignInWith=Ys,dr.assignWith=$s,dr.at=Xs,dr.before=ts,dr.bind=ns,dr.bindAll=Au,dr.bindKey=rs,dr.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return ms(e)?e:[e]},dr.chain=zo,dr.chunk=function(e,t,n){t=(n?Ga(e,t,n):t===r)?1:Zn(Us(t),0);var i=null==e?0:e.length;if(!i||t<1)return[];for(var a=0,o=0,s=Xe(zn(i/t));a<i;)s[o++]=ji(e,a,a+=t);return s},dr.compact=function(e){for(var t=-1,n=null==e?0:e.length,r=0,i=[];++t<n;){var a=e[t];a&&(i[r++]=a)}return i},dr.concat=function(){var e=arguments.length;if(!e)return[];for(var t=Xe(e-1),n=arguments[0],r=e;r--;)t[r-1]=arguments[r];return Jt(ms(n)?ra(n):[n],Vr(t,1))},dr.cond=function(e){var t=null==e?0:e.length,n=Na();return e=t?Kt(e,function(e){if("function"!=typeof e[1])throw new it(o);return[n(e[0]),e[1]]}):[],Ei(function(n){for(var r=-1;++r<t;){var i=e[r];if(Wt(i[0],this,n))return Wt(i[1],this,n)}})},dr.conforms=function(e){return function(e){var t=iu(e);return function(n){return Or(n,e,t)}}(Nr(e,c))},dr.constant=Su,dr.countBy=qo,dr.create=function(e,t){var n=gr(e);return null==t?n:Lr(n,t)},dr.curry=function e(t,n,i){var a=Ta(t,w,r,r,r,r,r,n=i?r:n);return a.placeholder=e.placeholder,a},dr.curryRight=function e(t,n,i){var a=Ta(t,y,r,r,r,r,r,n=i?r:n);return a.placeholder=e.placeholder,a},dr.debounce=is,dr.defaults=Ks,dr.defaultsDeep=Js,dr.defer=as,dr.delay=os,dr.difference=ho,dr.differenceBy=po,dr.differenceWith=go,dr.drop=function(e,t,n){var i=null==e?0:e.length;return i?ji(e,(t=n||t===r?1:Us(t))<0?0:t,i):[]},dr.dropRight=function(e,t,n){var i=null==e?0:e.length;return i?ji(e,0,(t=i-(t=n||t===r?1:Us(t)))<0?0:t):[]},dr.dropRightWhile=function(e,t){return e&&e.length?Ui(e,Na(t,3),!0,!0):[]},dr.dropWhile=function(e,t){return e&&e.length?Ui(e,Na(t,3),!0):[]},dr.fill=function(e,t,n,i){var a=null==e?0:e.length;return a?(n&&"number"!=typeof n&&Ga(e,t,n)&&(n=0,i=a),function(e,t,n,i){var a=e.length;for((n=Us(n))<0&&(n=-n>a?0:a+n),(i=i===r||i>a?a:Us(i))<0&&(i+=a),i=n>i?0:qs(i);n<i;)e[n++]=t;return e}(e,t,n,i)):[]},dr.filter=function(e,t){return(ms(e)?Yt:Hr)(e,Na(t,3))},dr.flatMap=function(e,t){return Vr(Xo(e,t),1)},dr.flatMapDeep=function(e,t){return Vr(Xo(e,t),j)},dr.flatMapDepth=function(e,t,n){return n=n===r?1:Us(n),Vr(Xo(e,t),n)},dr.flatten=wo,dr.flattenDeep=function(e){return null!=e&&e.length?Vr(e,j):[]},dr.flattenDepth=function(e,t){return null!=e&&e.length?Vr(e,t=t===r?1:Us(t)):[]},dr.flip=function(e){return Ta(e,E)},dr.flow=Cu,dr.flowRight=Mu,dr.fromPairs=function(e){for(var t=-1,n=null==e?0:e.length,r={};++t<n;){var i=e[t];r[i[0]]=i[1]}return r},dr.functions=function(e){return null==e?[]:Xr(e,iu(e))},dr.functionsIn=function(e){return null==e?[]:Xr(e,au(e))},dr.groupBy=Go,dr.initial=function(e){return null!=e&&e.length?ji(e,0,-1):[]},dr.intersection=_o,dr.intersectionBy=bo,dr.intersectionWith=xo,dr.invert=tu,dr.invertBy=nu,dr.invokeMap=Yo,dr.iteratee=ju,dr.keyBy=$o,dr.keys=iu,dr.keysIn=au,dr.map=Xo,dr.mapKeys=function(e,t){var n={};return t=Na(t,3),Yr(e,function(e,r,i){Ir(n,t(e,r,i),e)}),n},dr.mapValues=function(e,t){var n={};return t=Na(t,3),Yr(e,function(e,r,i){Ir(n,r,t(e,r,i))}),n},dr.matches=function(e){return di(Nr(e,c))},dr.matchesProperty=function(e,t){return gi(e,Nr(t,c))},dr.memoize=ss,dr.merge=ou,dr.mergeWith=su,dr.method=Lu,dr.methodOf=Iu,dr.mixin=Bu,dr.negate=us,dr.nthArg=function(e){return e=Us(e),Ei(function(t){return mi(t,e)})},dr.omit=uu,dr.omitBy=function(e,t){return cu(e,us(Na(t)))},dr.once=function(e){return ts(2,e)},dr.orderBy=function(e,t,n,i){return null==e?[]:(ms(t)||(t=null==t?[]:[t]),ms(n=i?r:n)||(n=null==n?[]:[n]),wi(e,t,n))},dr.over=Nu,dr.overArgs=ls,dr.overEvery=Ou,dr.overSome=Pu,dr.partial=cs,dr.partialRight=fs,dr.partition=Ko,dr.pick=lu,dr.pickBy=cu,dr.property=zu,dr.propertyOf=function(e){return function(t){return null==e?r:Kr(e,t)}},dr.pull=Eo,dr.pullAll=To,dr.pullAllBy=function(e,t,n){return e&&e.length&&t&&t.length?_i(e,t,Na(n,2)):e},dr.pullAllWith=function(e,t,n){return e&&e.length&&t&&t.length?_i(e,t,r,n):e},dr.pullAt=Ao,dr.range=Fu,dr.rangeRight=Uu,dr.rearg=hs,dr.reject=function(e,t){return(ms(e)?Yt:Hr)(e,us(Na(t,3)))},dr.remove=function(e,t){var n=[];if(!e||!e.length)return n;var r=-1,i=[],a=e.length;for(t=Na(t,3);++r<a;){var o=e[r];t(o,r,e)&&(n.push(o),i.push(r))}return bi(e,i),n},dr.rest=function(e,t){if("function"!=typeof e)throw new it(o);return Ei(e,t=t===r?t:Us(t))},dr.reverse=So,dr.sampleSize=function(e,t,n){return t=(n?Ga(e,t,n):t===r)?1:Us(t),(ms(e)?Ar:Ai)(e,t)},dr.set=function(e,t,n){return null==e?e:Si(e,t,n)},dr.setWith=function(e,t,n,i){return i="function"==typeof i?i:r,null==e?e:Si(e,t,n,i)},dr.shuffle=function(e){return(ms(e)?Sr:Ri)(e)},dr.slice=function(e,t,n){var i=null==e?0:e.length;return i?(n&&"number"!=typeof n&&Ga(e,t,n)?(t=0,n=i):(t=null==t?0:Us(t),n=n===r?i:Us(n)),ji(e,t,n)):[]},dr.sortBy=Jo,dr.sortedUniq=function(e){return e&&e.length?Di(e):[]},dr.sortedUniqBy=function(e,t){return e&&e.length?Di(e,Na(t,2)):[]},dr.split=function(e,t,n){return n&&"number"!=typeof n&&Ga(e,t,n)&&(t=n=r),(n=n===r?D:n>>>0)?(e=Vs(e))&&("string"==typeof t||null!=t&&!Ls(t))&&!(t=Oi(t))&&kn(e)?$i(jn(e),0,n):e.split(t,n):[]},dr.spread=function(e,t){if("function"!=typeof e)throw new it(o);return t=null==t?0:Zn(Us(t),0),Ei(function(n){var r=n[t],i=$i(n,0,t);return r&&Jt(i,r),Wt(e,this,i)})},dr.tail=function(e){var t=null==e?0:e.length;return t?ji(e,1,t):[]},dr.take=function(e,t,n){return e&&e.length?ji(e,0,(t=n||t===r?1:Us(t))<0?0:t):[]},dr.takeRight=function(e,t,n){var i=null==e?0:e.length;return i?ji(e,(t=i-(t=n||t===r?1:Us(t)))<0?0:t,i):[]},dr.takeRightWhile=function(e,t){return e&&e.length?Ui(e,Na(t,3),!1,!0):[]},dr.takeWhile=function(e,t){return e&&e.length?Ui(e,Na(t,3)):[]},dr.tap=function(e,t){return t(e),e},dr.throttle=function(e,t,n){var r=!0,i=!0;if("function"!=typeof e)throw new it(o);return Ss(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),is(e,t,{leading:r,maxWait:t,trailing:i})},dr.thru=Fo,dr.toArray=zs,dr.toPairs=fu,dr.toPairsIn=hu,dr.toPath=function(e){return ms(e)?Kt(e,lo):Ds(e)?[e]:ra(uo(Vs(e)))},dr.toPlainObject=Hs,dr.transform=function(e,t,n){var r=ms(e),i=r||bs(e)||Ns(e);if(t=Na(t,4),null==n){var a=e&&e.constructor;n=i?r?new a:[]:Ss(e)&&Es(a)?gr(Lt(e)):{}}return(i?Vt:Yr)(e,function(e,r,i){return t(n,e,r,i)}),n},dr.unary=function(e){return es(e,1)},dr.union=Co,dr.unionBy=Mo,dr.unionWith=Ro,dr.uniq=function(e){return e&&e.length?Pi(e):[]},dr.uniqBy=function(e,t){return e&&e.length?Pi(e,Na(t,2)):[]},dr.uniqWith=function(e,t){return t="function"==typeof t?t:r,e&&e.length?Pi(e,r,t):[]},dr.unset=function(e,t){return null==e||zi(e,t)},dr.unzip=jo,dr.unzipWith=Lo,dr.update=function(e,t,n){return null==e?e:Fi(e,t,Zi(n))},dr.updateWith=function(e,t,n,i){return i="function"==typeof i?i:r,null==e?e:Fi(e,t,Zi(n),i)},dr.values=pu,dr.valuesIn=function(e){return null==e?[]:vn(e,au(e))},dr.without=Io,dr.words=Eu,dr.wrap=function(e,t){return cs(Zi(t),e)},dr.xor=Bo,dr.xorBy=Do,dr.xorWith=No,dr.zip=Oo,dr.zipObject=function(e,t){return Hi(e||[],t||[],Mr)},dr.zipObjectDeep=function(e,t){return Hi(e||[],t||[],Si)},dr.zipWith=Po,dr.entries=fu,dr.entriesIn=hu,dr.extend=Gs,dr.extendWith=Ys,Bu(dr,dr),dr.add=Hu,dr.attempt=Tu,dr.camelCase=du,dr.capitalize=gu,dr.ceil=Vu,dr.clamp=function(e,t,n){return n===r&&(n=t,t=r),n!==r&&(n=(n=Ws(n))==n?n:0),t!==r&&(t=(t=Ws(t))==t?t:0),Dr(Ws(e),t,n)},dr.clone=function(e){return Nr(e,h)},dr.cloneDeep=function(e){return Nr(e,c|h)},dr.cloneDeepWith=function(e,t){return Nr(e,c|h,t="function"==typeof t?t:r)},dr.cloneWith=function(e,t){return Nr(e,h,t="function"==typeof t?t:r)},dr.conformsTo=function(e,t){return null==t||Or(e,t,iu(t))},dr.deburr=vu,dr.defaultTo=function(e,t){return null==e||e!=e?t:e},dr.divide=Zu,dr.endsWith=function(e,t,n){e=Vs(e),t=Oi(t);var i=e.length,a=n=n===r?i:Dr(Us(n),0,i);return(n-=t.length)>=0&&e.slice(n,a)==t},dr.eq=ps,dr.escape=function(e){return(e=Vs(e))&&ke.test(e)?e.replace(be,bn):e},dr.escapeRegExp=function(e){return(e=Vs(e))&&je.test(e)?e.replace(Re,"\\$&"):e},dr.every=function(e,t,n){var i=ms(e)?Gt:qr;return n&&Ga(e,t,n)&&(t=r),i(e,Na(t,3))},dr.find=Wo,dr.findIndex=vo,dr.findKey=function(e,t){return rn(e,Na(t,3),Yr)},dr.findLast=Ho,dr.findLastIndex=mo,dr.findLastKey=function(e,t){return rn(e,Na(t,3),$r)},dr.floor=Gu,dr.forEach=Vo,dr.forEachRight=Zo,dr.forIn=function(e,t){return null==e?e:Zr(e,Na(t,3),au)},dr.forInRight=function(e,t){return null==e?e:Gr(e,Na(t,3),au)},dr.forOwn=function(e,t){return e&&Yr(e,Na(t,3))},dr.forOwnRight=function(e,t){return e&&$r(e,Na(t,3))},dr.get=Qs,dr.gt=ds,dr.gte=gs,dr.has=function(e,t){return null!=e&&Wa(e,t,ti)},dr.hasIn=eu,dr.head=yo,dr.identity=Ru,dr.includes=function(e,t,n,r){e=ys(e)?e:pu(e),n=n&&!r?Us(n):0;var i=e.length;return n<0&&(n=Zn(i+n,0)),Bs(e)?n<=i&&e.indexOf(t,n)>-1:!!i&&on(e,t,n)>-1},dr.indexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=null==n?0:Us(n);return i<0&&(i=Zn(r+i,0)),on(e,t,i)},dr.inRange=function(e,t,n){return t=Fs(t),n===r?(n=t,t=0):n=Fs(n),function(e,t,n){return e>=Gn(t,n)&&e<Zn(t,n)}(e=Ws(e),t,n)},dr.invoke=ru,dr.isArguments=vs,dr.isArray=ms,dr.isArrayBuffer=ws,dr.isArrayLike=ys,dr.isArrayLikeObject=_s,dr.isBoolean=function(e){return!0===e||!1===e||Cs(e)&&Qr(e)==q},dr.isBuffer=bs,dr.isDate=xs,dr.isElement=function(e){return Cs(e)&&1===e.nodeType&&!js(e)},dr.isEmpty=function(e){if(null==e)return!0;if(ys(e)&&(ms(e)||"string"==typeof e||"function"==typeof e.splice||bs(e)||Ns(e)||vs(e)))return!e.length;var t=qa(e);if(t==Y||t==ee)return!e.size;if(Ka(e))return!ci(e).length;for(var n in e)if(ct.call(e,n))return!1;return!0},dr.isEqual=function(e,t){return oi(e,t)},dr.isEqualWith=function(e,t,n){var i=(n="function"==typeof n?n:r)?n(e,t):r;return i===r?oi(e,t,r,n):!!i},dr.isError=ks,dr.isFinite=function(e){return"number"==typeof e&&Wn(e)},dr.isFunction=Es,dr.isInteger=Ts,dr.isLength=As,dr.isMap=Ms,dr.isMatch=function(e,t){return e===t||si(e,t,Pa(t))},dr.isMatchWith=function(e,t,n){return n="function"==typeof n?n:r,si(e,t,Pa(t),n)},dr.isNaN=function(e){return Rs(e)&&e!=+e},dr.isNative=function(e){if(Xa(e))throw new Je(a);return ui(e)},dr.isNil=function(e){return null==e},dr.isNull=function(e){return null===e},dr.isNumber=Rs,dr.isObject=Ss,dr.isObjectLike=Cs,dr.isPlainObject=js,dr.isRegExp=Ls,dr.isSafeInteger=function(e){return Ts(e)&&e>=-L&&e<=L},dr.isSet=Is,dr.isString=Bs,dr.isSymbol=Ds,dr.isTypedArray=Ns,dr.isUndefined=function(e){return e===r},dr.isWeakMap=function(e){return Cs(e)&&qa(e)==ie},dr.isWeakSet=function(e){return Cs(e)&&Qr(e)==ae},dr.join=function(e,t){return null==e?"":Hn.call(e,t)},dr.kebabCase=mu,dr.last=ko,dr.lastIndexOf=function(e,t,n){var i=null==e?0:e.length;if(!i)return-1;var a=i;return n!==r&&(a=(a=Us(n))<0?Zn(i+a,0):Gn(a,i-1)),t==t?function(e,t,n){for(var r=n+1;r--;)if(e[r]===t)return r;return r}(e,t,a):an(e,un,a,!0)},dr.lowerCase=wu,dr.lowerFirst=yu,dr.lt=Os,dr.lte=Ps,dr.max=function(e){return e&&e.length?Wr(e,Ru,ei):r},dr.maxBy=function(e,t){return e&&e.length?Wr(e,Na(t,2),ei):r},dr.mean=function(e){return ln(e,Ru)},dr.meanBy=function(e,t){return ln(e,Na(t,2))},dr.min=function(e){return e&&e.length?Wr(e,Ru,hi):r},dr.minBy=function(e,t){return e&&e.length?Wr(e,Na(t,2),hi):r},dr.stubArray=qu,dr.stubFalse=Wu,dr.stubObject=function(){return{}},dr.stubString=function(){return""},dr.stubTrue=function(){return!0},dr.multiply=$u,dr.nth=function(e,t){return e&&e.length?mi(e,Us(t)):r},dr.noConflict=function(){return jt._===this&&(jt._=gt),this},dr.noop=Du,dr.now=Qo,dr.pad=function(e,t,n){e=Vs(e);var r=(t=Us(t))?Rn(e):0;if(!t||r>=t)return e;var i=(t-r)/2;return wa(Fn(i),n)+e+wa(zn(i),n)},dr.padEnd=function(e,t,n){e=Vs(e);var r=(t=Us(t))?Rn(e):0;return t&&r<t?e+wa(t-r,n):e},dr.padStart=function(e,t,n){e=Vs(e);var r=(t=Us(t))?Rn(e):0;return t&&r<t?wa(t-r,n)+e:e},dr.parseInt=function(e,t,n){return n||null==t?t=0:t&&(t=+t),$n(Vs(e).replace(Ie,""),t||0)},dr.random=function(e,t,n){if(n&&"boolean"!=typeof n&&Ga(e,t,n)&&(t=n=r),n===r&&("boolean"==typeof t?(n=t,t=r):"boolean"==typeof e&&(n=e,e=r)),e===r&&t===r?(e=0,t=1):(e=Fs(e),t===r?(t=e,e=0):t=Fs(t)),e>t){var i=e;e=t,t=i}if(n||e%1||t%1){var a=Xn();return Gn(e+a*(t-e+St("1e-"+((a+"").length-1))),t)}return xi(e,t)},dr.reduce=function(e,t,n){var r=ms(e)?Qt:hn,i=arguments.length<3;return r(e,Na(t,4),n,i,Fr)},dr.reduceRight=function(e,t,n){var r=ms(e)?en:hn,i=arguments.length<3;return r(e,Na(t,4),n,i,Ur)},dr.repeat=function(e,t,n){return t=(n?Ga(e,t,n):t===r)?1:Us(t),ki(Vs(e),t)},dr.replace=function(){var e=arguments,t=Vs(e[0]);return e.length<3?t:t.replace(e[1],e[2])},dr.result=function(e,t,n){var i=-1,a=(t=Gi(t,e)).length;for(a||(a=1,e=r);++i<a;){var o=null==e?r:e[lo(t[i])];o===r&&(i=a,o=n),e=Es(o)?o.call(e):o}return e},dr.round=Xu,dr.runInContext=e,dr.sample=function(e){return(ms(e)?Tr:Ti)(e)},dr.size=function(e){if(null==e)return 0;if(ys(e))return Bs(e)?Rn(e):e.length;var t=qa(e);return t==Y||t==ee?e.size:ci(e).length},dr.snakeCase=_u,dr.some=function(e,t,n){var i=ms(e)?tn:Li;return n&&Ga(e,t,n)&&(t=r),i(e,Na(t,3))},dr.sortedIndex=function(e,t){return Ii(e,t)},dr.sortedIndexBy=function(e,t,n){return Bi(e,t,Na(n,2))},dr.sortedIndexOf=function(e,t){var n=null==e?0:e.length;if(n){var r=Ii(e,t);if(r<n&&ps(e[r],t))return r}return-1},dr.sortedLastIndex=function(e,t){return Ii(e,t,!0)},dr.sortedLastIndexBy=function(e,t,n){return Bi(e,t,Na(n,2),!0)},dr.sortedLastIndexOf=function(e,t){if(null!=e&&e.length){var n=Ii(e,t,!0)-1;if(ps(e[n],t))return n}return-1},dr.startCase=bu,dr.startsWith=function(e,t,n){return e=Vs(e),n=null==n?0:Dr(Us(n),0,e.length),t=Oi(t),e.slice(n,n+t.length)==t},dr.subtract=Ku,dr.sum=function(e){return e&&e.length?pn(e,Ru):0},dr.sumBy=function(e,t){return e&&e.length?pn(e,Na(t,2)):0},dr.template=function(e,t,n){var i=dr.templateSettings;n&&Ga(e,t,n)&&(t=r),e=Vs(e),t=Ys({},t,i,Aa);var a,o,s=Ys({},t.imports,i.imports,Aa),u=iu(s),l=vn(s,u),c=0,f=t.interpolate||Ye,h="__p += '",p=nt((t.escape||Ye).source+"|"+f.source+"|"+(f===Ae?Fe:Ye).source+"|"+(t.evaluate||Ye).source+"|$","g"),d="//# sourceURL="+("sourceURL"in t?t.sourceURL:"lodash.templateSources["+ ++kt+"]")+"\n";e.replace(p,function(t,n,r,i,s,u){return r||(r=i),h+=e.slice(c,u).replace($e,xn),n&&(a=!0,h+="' +\n__e("+n+") +\n'"),s&&(o=!0,h+="';\n"+s+";\n__p += '"),r&&(h+="' +\n((__t = ("+r+")) == null ? '' : __t) +\n'"),c=u+t.length,t}),h+="';\n";var g=t.variable;g||(h="with (obj) {\n"+h+"\n}\n"),h=(o?h.replace(me,""):h).replace(we,"$1").replace(ye,"$1;"),h="function("+(g||"obj")+") {\n"+(g?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(a?", __e = _.escape":"")+(o?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+h+"return __p\n}";var v=Tu(function(){return Qe(u,d+"return "+h).apply(r,l)});if(v.source=h,ks(v))throw v;return v},dr.times=function(e,t){if((e=Us(e))<1||e>L)return[];var n=D,r=Gn(e,D);t=Na(t),e-=D;for(var i=dn(r,t);++n<e;)t(n);return i},dr.toFinite=Fs,dr.toInteger=Us,dr.toLength=qs,dr.toLower=function(e){return Vs(e).toLowerCase()},dr.toNumber=Ws,dr.toSafeInteger=function(e){return e?Dr(Us(e),-L,L):0===e?e:0},dr.toString=Vs,dr.toUpper=function(e){return Vs(e).toUpperCase()},dr.trim=function(e,t,n){if((e=Vs(e))&&(n||t===r))return e.replace(Le,"");if(!e||!(t=Oi(t)))return e;var i=jn(e),a=jn(t);return $i(i,wn(i,a),yn(i,a)+1).join("")},dr.trimEnd=function(e,t,n){if((e=Vs(e))&&(n||t===r))return e.replace(Be,"");if(!e||!(t=Oi(t)))return e;var i=jn(e);return $i(i,0,yn(i,jn(t))+1).join("")},dr.trimStart=function(e,t,n){if((e=Vs(e))&&(n||t===r))return e.replace(Ie,"");if(!e||!(t=Oi(t)))return e;var i=jn(e);return $i(i,wn(i,jn(t))).join("")},dr.truncate=function(e,t){var n=T,i=A;if(Ss(t)){var a="separator"in t?t.separator:a;n="length"in t?Us(t.length):n,i="omission"in t?Oi(t.omission):i}var o=(e=Vs(e)).length;if(kn(e)){var s=jn(e);o=s.length}if(n>=o)return e;var u=n-Rn(i);if(u<1)return i;var l=s?$i(s,0,u).join(""):e.slice(0,u);if(a===r)return l+i;if(s&&(u+=l.length-u),Ls(a)){if(e.slice(u).search(a)){var c,f=l;for(a.global||(a=nt(a.source,Vs(Ue.exec(a))+"g")),a.lastIndex=0;c=a.exec(f);)var h=c.index;l=l.slice(0,h===r?u:h)}}else if(e.indexOf(Oi(a),u)!=u){var p=l.lastIndexOf(a);p>-1&&(l=l.slice(0,p))}return l+i},dr.unescape=function(e){return(e=Vs(e))&&xe.test(e)?e.replace(_e,Ln):e},dr.uniqueId=function(e){var t=++ft;return Vs(e)+t},dr.upperCase=xu,dr.upperFirst=ku,dr.each=Vo,dr.eachRight=Zo,dr.first=yo,Bu(dr,(Yu={},Yr(dr,function(e,t){ct.call(dr.prototype,t)||(Yu[t]=e)}),Yu),{chain:!1}),dr.VERSION="4.17.5",Vt(["bind","bindKey","curry","curryRight","partial","partialRight"],function(e){dr[e].placeholder=dr}),Vt(["drop","take"],function(e,t){wr.prototype[e]=function(n){n=n===r?1:Zn(Us(n),0);var i=this.__filtered__&&!t?new wr(this):this.clone();return i.__filtered__?i.__takeCount__=Gn(n,i.__takeCount__):i.__views__.push({size:Gn(n,D),type:e+(i.__dir__<0?"Right":"")}),i},wr.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}}),Vt(["filter","map","takeWhile"],function(e,t){var n=t+1,r=n==M||3==n;wr.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:Na(e,3),type:n}),t.__filtered__=t.__filtered__||r,t}}),Vt(["head","last"],function(e,t){var n="take"+(t?"Right":"");wr.prototype[e]=function(){return this[n](1).value()[0]}}),Vt(["initial","tail"],function(e,t){var n="drop"+(t?"":"Right");wr.prototype[e]=function(){return this.__filtered__?new wr(this):this[n](1)}}),wr.prototype.compact=function(){return this.filter(Ru)},wr.prototype.find=function(e){return this.filter(e).head()},wr.prototype.findLast=function(e){return this.reverse().find(e)},wr.prototype.invokeMap=Ei(function(e,t){return"function"==typeof e?new wr(this):this.map(function(n){return ii(n,e,t)})}),wr.prototype.reject=function(e){return this.filter(us(Na(e)))},wr.prototype.slice=function(e,t){e=Us(e);var n=this;return n.__filtered__&&(e>0||t<0)?new wr(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),t!==r&&(n=(t=Us(t))<0?n.dropRight(-t):n.take(t-e)),n)},wr.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},wr.prototype.toArray=function(){return this.take(D)},Yr(wr.prototype,function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),i=/^(?:head|last)$/.test(t),a=dr[i?"take"+("last"==t?"Right":""):t],o=i||/^find/.test(t);a&&(dr.prototype[t]=function(){var t=this.__wrapped__,s=i?[1]:arguments,u=t instanceof wr,l=s[0],c=u||ms(t),f=function(e){var t=a.apply(dr,Jt([e],s));return i&&h?t[0]:t};c&&n&&"function"==typeof l&&1!=l.length&&(u=c=!1);var h=this.__chain__,p=!!this.__actions__.length,d=o&&!h,g=u&&!p;if(!o&&c){t=g?t:new wr(this);var v=e.apply(t,s);return v.__actions__.push({func:Fo,args:[f],thisArg:r}),new mr(v,h)}return d&&g?e.apply(this,s):(v=this.thru(f),d?i?v.value()[0]:v.value():v)})}),Vt(["pop","push","shift","sort","splice","unshift"],function(e){var t=at[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",r=/^(?:pop|shift)$/.test(e);dr.prototype[e]=function(){var e=arguments;if(r&&!this.__chain__){var i=this.value();return t.apply(ms(i)?i:[],e)}return this[n](function(n){return t.apply(ms(n)?n:[],e)})}}),Yr(wr.prototype,function(e,t){var n=dr[t];if(n){var r=n.name+"";(ar[r]||(ar[r]=[])).push({name:t,func:n})}}),ar[da(r,v).name]=[{name:"wrapper",func:r}],wr.prototype.clone=function(){var e=new wr(this.__wrapped__);return e.__actions__=ra(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=ra(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=ra(this.__views__),e},wr.prototype.reverse=function(){if(this.__filtered__){var e=new wr(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},wr.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,n=ms(e),r=t<0,i=n?e.length:0,a=function(e,t,n){for(var r=-1,i=n.length;++r<i;){var a=n[r],o=a.size;switch(a.type){case"drop":e+=o;break;case"dropRight":t-=o;break;case"take":t=Gn(t,e+o);break;case"takeRight":e=Zn(e,t-o)}}return{start:e,end:t}}(0,i,this.__views__),o=a.start,s=a.end,u=s-o,l=r?s:o-1,c=this.__iteratees__,f=c.length,h=0,p=Gn(u,this.__takeCount__);if(!n||!r&&i==u&&p==u)return qi(e,this.__actions__);var d=[];e:for(;u--&&h<p;){for(var g=-1,v=e[l+=t];++g<f;){var m=c[g],w=m.iteratee,y=m.type,_=w(v);if(y==R)v=_;else if(!_){if(y==M)continue e;break e}}d[h++]=v}return d},dr.prototype.at=Uo,dr.prototype.chain=function(){return zo(this)},dr.prototype.commit=function(){return new mr(this.value(),this.__chain__)},dr.prototype.next=function(){this.__values__===r&&(this.__values__=zs(this.value()));var e=this.__index__>=this.__values__.length;return{done:e,value:e?r:this.__values__[this.__index__++]}},dr.prototype.plant=function(e){for(var t,n=this;n instanceof vr;){var i=fo(n);i.__index__=0,i.__values__=r,t?a.__wrapped__=i:t=i;var a=i;n=n.__wrapped__}return a.__wrapped__=e,t},dr.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof wr){var t=e;return this.__actions__.length&&(t=new wr(this)),(t=t.reverse()).__actions__.push({func:Fo,args:[So],thisArg:r}),new mr(t,this.__chain__)}return this.thru(So)},dr.prototype.toJSON=dr.prototype.valueOf=dr.prototype.value=function(){return qi(this.__wrapped__,this.__actions__)},dr.prototype.first=dr.prototype.head,fn&&(dr.prototype[fn]=function(){return this}),dr}();"function"==typeof define&&"object"==typeof define.amd&&define.amd?(jt._=In,define(function(){return In})):It?((It.exports=In)._=In,Lt._=In):jt._=In}).call(this)}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],59:[function(e,t,n){(function(n){e("path");var r=e("fs");function i(){this.types=Object.create(null),this.extensions=Object.create(null)}i.prototype.define=function(e){for(var t in e){for(var r=e[t],i=0;i<r.length;i++)n.env.DEBUG_MIME&&this.types[r]&&console.warn(this._loading.replace(/.*\//,""),'changes "'+r[i]+'" extension type from '+this.types[r]+" to "+t),this.types[r[i]]=t;this.extensions[t]||(this.extensions[t]=r[0])}},i.prototype.load=function(e){this._loading=e;var t={};r.readFileSync(e,"ascii").split(/[\r\n]+/).forEach(function(e){var n=e.replace(/\s*#.*|^\s*|\s*$/g,"").split(/\s+/);t[n.shift()]=n}),this.define(t),this._loading=null},i.prototype.lookup=function(e,t){var n=e.replace(/.*[\.\/\\]/,"").toLowerCase();return this.types[n]||t||this.default_type},i.prototype.extension=function(e){var t=e.match(/^\s*([^;\s]*)(?:;|\s|$)/)[1].toLowerCase();return this.extensions[t]};var a=new i;a.define(e("./types.json")),a.default_type=a.lookup("bin"),a.Mime=i,a.charsets={lookup:function(e,t){return/^text\//.test(e)?"UTF-8":t}},t.exports=a}).call(this,e("_process"))},{"./types.json":60,_process:105,fs:7,path:82}],60:[function(e,t,n){t.exports={"application/andrew-inset":["ez"],"application/applixware":["aw"],"application/atom+xml":["atom"],"application/atomcat+xml":["atomcat"],"application/atomsvc+xml":["atomsvc"],"application/ccxml+xml":["ccxml"],"application/cdmi-capability":["cdmia"],"application/cdmi-container":["cdmic"],"application/cdmi-domain":["cdmid"],"application/cdmi-object":["cdmio"],"application/cdmi-queue":["cdmiq"],"application/cu-seeme":["cu"],"application/dash+xml":["mdp"],"application/davmount+xml":["davmount"],"application/docbook+xml":["dbk"],"application/dssc+der":["dssc"],"application/dssc+xml":["xdssc"],"application/ecmascript":["ecma"],"application/emma+xml":["emma"],"application/epub+zip":["epub"],"application/exi":["exi"],"application/font-tdpfr":["pfr"],"application/font-woff":["woff"],"application/font-woff2":["woff2"],"application/gml+xml":["gml"],"application/gpx+xml":["gpx"],"application/gxf":["gxf"],"application/hyperstudio":["stk"],"application/inkml+xml":["ink","inkml"],"application/ipfix":["ipfix"],"application/java-archive":["jar"],"application/java-serialized-object":["ser"],"application/java-vm":["class"],"application/javascript":["js"],"application/json":["json","map"],"application/json5":["json5"],"application/jsonml+json":["jsonml"],"application/lost+xml":["lostxml"],"application/mac-binhex40":["hqx"],"application/mac-compactpro":["cpt"],"application/mads+xml":["mads"],"application/marc":["mrc"],"application/marcxml+xml":["mrcx"],"application/mathematica":["ma","nb","mb"],"application/mathml+xml":["mathml"],"application/mbox":["mbox"],"application/mediaservercontrol+xml":["mscml"],"application/metalink+xml":["metalink"],"application/metalink4+xml":["meta4"],"application/mets+xml":["mets"],"application/mods+xml":["mods"],"application/mp21":["m21","mp21"],"application/mp4":["mp4s","m4p"],"application/msword":["doc","dot"],"application/mxf":["mxf"],"application/octet-stream":["bin","dms","lrf","mar","so","dist","distz","pkg","bpk","dump","elc","deploy","buffer"],"application/oda":["oda"],"application/oebps-package+xml":["opf"],"application/ogg":["ogx"],"application/omdoc+xml":["omdoc"],"application/onenote":["onetoc","onetoc2","onetmp","onepkg"],"application/oxps":["oxps"],"application/patch-ops-error+xml":["xer"],"application/pdf":["pdf"],"application/pgp-encrypted":["pgp"],"application/pgp-signature":["asc","sig"],"application/pics-rules":["prf"],"application/pkcs10":["p10"],"application/pkcs7-mime":["p7m","p7c"],"application/pkcs7-signature":["p7s"],"application/pkcs8":["p8"],"application/pkix-attr-cert":["ac"],"application/pkix-cert":["cer"],"application/pkix-crl":["crl"],"application/pkix-pkipath":["pkipath"],"application/pkixcmp":["pki"],"application/pls+xml":["pls"],"application/postscript":["ai","eps","ps"],"application/prs.cww":["cww"],"application/pskc+xml":["pskcxml"],"application/rdf+xml":["rdf"],"application/reginfo+xml":["rif"],"application/relax-ng-compact-syntax":["rnc"],"application/resource-lists+xml":["rl"],"application/resource-lists-diff+xml":["rld"],"application/rls-services+xml":["rs"],"application/rpki-ghostbusters":["gbr"],"application/rpki-manifest":["mft"],"application/rpki-roa":["roa"],"application/rsd+xml":["rsd"],"application/rss+xml":["rss"],"application/rtf":["rtf"],"application/sbml+xml":["sbml"],"application/scvp-cv-request":["scq"],"application/scvp-cv-response":["scs"],"application/scvp-vp-request":["spq"],"application/scvp-vp-response":["spp"],"application/sdp":["sdp"],"application/set-payment-initiation":["setpay"],"application/set-registration-initiation":["setreg"],"application/shf+xml":["shf"],"application/smil+xml":["smi","smil"],"application/sparql-query":["rq"],"application/sparql-results+xml":["srx"],"application/srgs":["gram"],"application/srgs+xml":["grxml"],"application/sru+xml":["sru"],"application/ssdl+xml":["ssdl"],"application/ssml+xml":["ssml"],"application/tei+xml":["tei","teicorpus"],"application/thraud+xml":["tfi"],"application/timestamped-data":["tsd"],"application/vnd.3gpp.pic-bw-large":["plb"],"application/vnd.3gpp.pic-bw-small":["psb"],"application/vnd.3gpp.pic-bw-var":["pvb"],"application/vnd.3gpp2.tcap":["tcap"],"application/vnd.3m.post-it-notes":["pwn"],"application/vnd.accpac.simply.aso":["aso"],"application/vnd.accpac.simply.imp":["imp"],"application/vnd.acucobol":["acu"],"application/vnd.acucorp":["atc","acutc"],"application/vnd.adobe.air-application-installer-package+zip":["air"],"application/vnd.adobe.formscentral.fcdt":["fcdt"],"application/vnd.adobe.fxp":["fxp","fxpl"],"application/vnd.adobe.xdp+xml":["xdp"],"application/vnd.adobe.xfdf":["xfdf"],"application/vnd.ahead.space":["ahead"],"application/vnd.airzip.filesecure.azf":["azf"],"application/vnd.airzip.filesecure.azs":["azs"],"application/vnd.amazon.ebook":["azw"],"application/vnd.americandynamics.acc":["acc"],"application/vnd.amiga.ami":["ami"],"application/vnd.android.package-archive":["apk"],"application/vnd.anser-web-certificate-issue-initiation":["cii"],"application/vnd.anser-web-funds-transfer-initiation":["fti"],"application/vnd.antix.game-component":["atx"],"application/vnd.apple.installer+xml":["mpkg"],"application/vnd.apple.mpegurl":["m3u8"],"application/vnd.aristanetworks.swi":["swi"],"application/vnd.astraea-software.iota":["iota"],"application/vnd.audiograph":["aep"],"application/vnd.blueice.multipass":["mpm"],"application/vnd.bmi":["bmi"],"application/vnd.businessobjects":["rep"],"application/vnd.chemdraw+xml":["cdxml"],"application/vnd.chipnuts.karaoke-mmd":["mmd"],"application/vnd.cinderella":["cdy"],"application/vnd.claymore":["cla"],"application/vnd.cloanto.rp9":["rp9"],"application/vnd.clonk.c4group":["c4g","c4d","c4f","c4p","c4u"],"application/vnd.cluetrust.cartomobile-config":["c11amc"],"application/vnd.cluetrust.cartomobile-config-pkg":["c11amz"],"application/vnd.commonspace":["csp"],"application/vnd.contact.cmsg":["cdbcmsg"],"application/vnd.cosmocaller":["cmc"],"application/vnd.crick.clicker":["clkx"],"application/vnd.crick.clicker.keyboard":["clkk"],"application/vnd.crick.clicker.palette":["clkp"],"application/vnd.crick.clicker.template":["clkt"],"application/vnd.crick.clicker.wordbank":["clkw"],"application/vnd.criticaltools.wbs+xml":["wbs"],"application/vnd.ctc-posml":["pml"],"application/vnd.cups-ppd":["ppd"],"application/vnd.curl.car":["car"],"application/vnd.curl.pcurl":["pcurl"],"application/vnd.dart":["dart"],"application/vnd.data-vision.rdz":["rdz"],"application/vnd.dece.data":["uvf","uvvf","uvd","uvvd"],"application/vnd.dece.ttml+xml":["uvt","uvvt"],"application/vnd.dece.unspecified":["uvx","uvvx"],"application/vnd.dece.zip":["uvz","uvvz"],"application/vnd.denovo.fcselayout-link":["fe_launch"],"application/vnd.dna":["dna"],"application/vnd.dolby.mlp":["mlp"],"application/vnd.dpgraph":["dpg"],"application/vnd.dreamfactory":["dfac"],"application/vnd.ds-keypoint":["kpxx"],"application/vnd.dvb.ait":["ait"],"application/vnd.dvb.service":["svc"],"application/vnd.dynageo":["geo"],"application/vnd.ecowin.chart":["mag"],"application/vnd.enliven":["nml"],"application/vnd.epson.esf":["esf"],"application/vnd.epson.msf":["msf"],"application/vnd.epson.quickanime":["qam"],"application/vnd.epson.salt":["slt"],"application/vnd.epson.ssf":["ssf"],"application/vnd.eszigno3+xml":["es3","et3"],"application/vnd.ezpix-album":["ez2"],"application/vnd.ezpix-package":["ez3"],"application/vnd.fdf":["fdf"],"application/vnd.fdsn.mseed":["mseed"],"application/vnd.fdsn.seed":["seed","dataless"],"application/vnd.flographit":["gph"],"application/vnd.fluxtime.clip":["ftc"],"application/vnd.framemaker":["fm","frame","maker","book"],"application/vnd.frogans.fnc":["fnc"],"application/vnd.frogans.ltf":["ltf"],"application/vnd.fsc.weblaunch":["fsc"],"application/vnd.fujitsu.oasys":["oas"],"application/vnd.fujitsu.oasys2":["oa2"],"application/vnd.fujitsu.oasys3":["oa3"],"application/vnd.fujitsu.oasysgp":["fg5"],"application/vnd.fujitsu.oasysprs":["bh2"],"application/vnd.fujixerox.ddd":["ddd"],"application/vnd.fujixerox.docuworks":["xdw"],"application/vnd.fujixerox.docuworks.binder":["xbd"],"application/vnd.fuzzysheet":["fzs"],"application/vnd.genomatix.tuxedo":["txd"],"application/vnd.geogebra.file":["ggb"],"application/vnd.geogebra.tool":["ggt"],"application/vnd.geometry-explorer":["gex","gre"],"application/vnd.geonext":["gxt"],"application/vnd.geoplan":["g2w"],"application/vnd.geospace":["g3w"],"application/vnd.gmx":["gmx"],"application/vnd.google-earth.kml+xml":["kml"],"application/vnd.google-earth.kmz":["kmz"],"application/vnd.grafeq":["gqf","gqs"],"application/vnd.groove-account":["gac"],"application/vnd.groove-help":["ghf"],"application/vnd.groove-identity-message":["gim"],"application/vnd.groove-injector":["grv"],"application/vnd.groove-tool-message":["gtm"],"application/vnd.groove-tool-template":["tpl"],"application/vnd.groove-vcard":["vcg"],"application/vnd.hal+xml":["hal"],"application/vnd.handheld-entertainment+xml":["zmm"],"application/vnd.hbci":["hbci"],"application/vnd.hhe.lesson-player":["les"],"application/vnd.hp-hpgl":["hpgl"],"application/vnd.hp-hpid":["hpid"],"application/vnd.hp-hps":["hps"],"application/vnd.hp-jlyt":["jlt"],"application/vnd.hp-pcl":["pcl"],"application/vnd.hp-pclxl":["pclxl"],"application/vnd.ibm.minipay":["mpy"],"application/vnd.ibm.modcap":["afp","listafp","list3820"],"application/vnd.ibm.rights-management":["irm"],"application/vnd.ibm.secure-container":["sc"],"application/vnd.iccprofile":["icc","icm"],"application/vnd.igloader":["igl"],"application/vnd.immervision-ivp":["ivp"],"application/vnd.immervision-ivu":["ivu"],"application/vnd.insors.igm":["igm"],"application/vnd.intercon.formnet":["xpw","xpx"],"application/vnd.intergeo":["i2g"],"application/vnd.intu.qbo":["qbo"],"application/vnd.intu.qfx":["qfx"],"application/vnd.ipunplugged.rcprofile":["rcprofile"],"application/vnd.irepository.package+xml":["irp"],"application/vnd.is-xpr":["xpr"],"application/vnd.isac.fcs":["fcs"],"application/vnd.jam":["jam"],"application/vnd.jcp.javame.midlet-rms":["rms"],"application/vnd.jisp":["jisp"],"application/vnd.joost.joda-archive":["joda"],"application/vnd.kahootz":["ktz","ktr"],"application/vnd.kde.karbon":["karbon"],"application/vnd.kde.kchart":["chrt"],"application/vnd.kde.kformula":["kfo"],"application/vnd.kde.kivio":["flw"],"application/vnd.kde.kontour":["kon"],"application/vnd.kde.kpresenter":["kpr","kpt"],"application/vnd.kde.kspread":["ksp"],"application/vnd.kde.kword":["kwd","kwt"],"application/vnd.kenameaapp":["htke"],"application/vnd.kidspiration":["kia"],"application/vnd.kinar":["kne","knp"],"application/vnd.koan":["skp","skd","skt","skm"],"application/vnd.kodak-descriptor":["sse"],"application/vnd.las.las+xml":["lasxml"],"application/vnd.llamagraphics.life-balance.desktop":["lbd"],"application/vnd.llamagraphics.life-balance.exchange+xml":["lbe"],"application/vnd.lotus-1-2-3":["123"],"application/vnd.lotus-approach":["apr"],"application/vnd.lotus-freelance":["pre"],"application/vnd.lotus-notes":["nsf"],"application/vnd.lotus-organizer":["org"],"application/vnd.lotus-screencam":["scm"],"application/vnd.lotus-wordpro":["lwp"],"application/vnd.macports.portpkg":["portpkg"],"application/vnd.mcd":["mcd"],"application/vnd.medcalcdata":["mc1"],"application/vnd.mediastation.cdkey":["cdkey"],"application/vnd.mfer":["mwf"],"application/vnd.mfmp":["mfm"],"application/vnd.micrografx.flo":["flo"],"application/vnd.micrografx.igx":["igx"],"application/vnd.mif":["mif"],"application/vnd.mobius.daf":["daf"],"application/vnd.mobius.dis":["dis"],"application/vnd.mobius.mbk":["mbk"],"application/vnd.mobius.mqy":["mqy"],"application/vnd.mobius.msl":["msl"],"application/vnd.mobius.plc":["plc"],"application/vnd.mobius.txf":["txf"],"application/vnd.mophun.application":["mpn"],"application/vnd.mophun.certificate":["mpc"],"application/vnd.mozilla.xul+xml":["xul"],"application/vnd.ms-artgalry":["cil"],"application/vnd.ms-cab-compressed":["cab"],"application/vnd.ms-excel":["xls","xlm","xla","xlc","xlt","xlw"],"application/vnd.ms-excel.addin.macroenabled.12":["xlam"],"application/vnd.ms-excel.sheet.binary.macroenabled.12":["xlsb"],"application/vnd.ms-excel.sheet.macroenabled.12":["xlsm"],"application/vnd.ms-excel.template.macroenabled.12":["xltm"],"application/vnd.ms-fontobject":["eot"],"application/vnd.ms-htmlhelp":["chm"],"application/vnd.ms-ims":["ims"],"application/vnd.ms-lrm":["lrm"],"application/vnd.ms-officetheme":["thmx"],"application/vnd.ms-pki.seccat":["cat"],"application/vnd.ms-pki.stl":["stl"],"application/vnd.ms-powerpoint":["ppt","pps","pot"],"application/vnd.ms-powerpoint.addin.macroenabled.12":["ppam"],"application/vnd.ms-powerpoint.presentation.macroenabled.12":["pptm"],"application/vnd.ms-powerpoint.slide.macroenabled.12":["sldm"],"application/vnd.ms-powerpoint.slideshow.macroenabled.12":["ppsm"],"application/vnd.ms-powerpoint.template.macroenabled.12":["potm"],"application/vnd.ms-project":["mpp","mpt"],"application/vnd.ms-word.document.macroenabled.12":["docm"],"application/vnd.ms-word.template.macroenabled.12":["dotm"],"application/vnd.ms-works":["wps","wks","wcm","wdb"],"application/vnd.ms-wpl":["wpl"],"application/vnd.ms-xpsdocument":["xps"],"application/vnd.mseq":["mseq"],"application/vnd.musician":["mus"],"application/vnd.muvee.style":["msty"],"application/vnd.mynfc":["taglet"],"application/vnd.neurolanguage.nlu":["nlu"],"application/vnd.nitf":["ntf","nitf"],"application/vnd.noblenet-directory":["nnd"],"application/vnd.noblenet-sealer":["nns"],"application/vnd.noblenet-web":["nnw"],"application/vnd.nokia.n-gage.data":["ngdat"],"application/vnd.nokia.radio-preset":["rpst"],"application/vnd.nokia.radio-presets":["rpss"],"application/vnd.novadigm.edm":["edm"],"application/vnd.novadigm.edx":["edx"],"application/vnd.novadigm.ext":["ext"],"application/vnd.oasis.opendocument.chart":["odc"],"application/vnd.oasis.opendocument.chart-template":["otc"],"application/vnd.oasis.opendocument.database":["odb"],"application/vnd.oasis.opendocument.formula":["odf"],"application/vnd.oasis.opendocument.formula-template":["odft"],"application/vnd.oasis.opendocument.graphics":["odg"],"application/vnd.oasis.opendocument.graphics-template":["otg"],"application/vnd.oasis.opendocument.image":["odi"],"application/vnd.oasis.opendocument.image-template":["oti"],"application/vnd.oasis.opendocument.presentation":["odp"],"application/vnd.oasis.opendocument.presentation-template":["otp"],"application/vnd.oasis.opendocument.spreadsheet":["ods"],"application/vnd.oasis.opendocument.spreadsheet-template":["ots"],"application/vnd.oasis.opendocument.text":["odt"],"application/vnd.oasis.opendocument.text-master":["odm"],"application/vnd.oasis.opendocument.text-template":["ott"],"application/vnd.oasis.opendocument.text-web":["oth"],"application/vnd.olpc-sugar":["xo"],"application/vnd.oma.dd2+xml":["dd2"],"application/vnd.openofficeorg.extension":["oxt"],"application/vnd.openxmlformats-officedocument.presentationml.presentation":["pptx"],"application/vnd.openxmlformats-officedocument.presentationml.slide":["sldx"],"application/vnd.openxmlformats-officedocument.presentationml.slideshow":["ppsx"],"application/vnd.openxmlformats-officedocument.presentationml.template":["potx"],"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":["xlsx"],"application/vnd.openxmlformats-officedocument.spreadsheetml.template":["xltx"],"application/vnd.openxmlformats-officedocument.wordprocessingml.document":["docx"],"application/vnd.openxmlformats-officedocument.wordprocessingml.template":["dotx"],"application/vnd.osgeo.mapguide.package":["mgp"],"application/vnd.osgi.dp":["dp"],"application/vnd.osgi.subsystem":["esa"],"application/vnd.palm":["pdb","pqa","oprc"],"application/vnd.pawaafile":["paw"],"application/vnd.pg.format":["str"],"application/vnd.pg.osasli":["ei6"],"application/vnd.picsel":["efif"],"application/vnd.pmi.widget":["wg"],"application/vnd.pocketlearn":["plf"],"application/vnd.powerbuilder6":["pbd"],"application/vnd.previewsystems.box":["box"],"application/vnd.proteus.magazine":["mgz"],"application/vnd.publishare-delta-tree":["qps"],"application/vnd.pvi.ptid1":["ptid"],"application/vnd.quark.quarkxpress":["qxd","qxt","qwd","qwt","qxl","qxb"],"application/vnd.realvnc.bed":["bed"],"application/vnd.recordare.musicxml":["mxl"],"application/vnd.recordare.musicxml+xml":["musicxml"],"application/vnd.rig.cryptonote":["cryptonote"],"application/vnd.rim.cod":["cod"],"application/vnd.rn-realmedia":["rm"],"application/vnd.rn-realmedia-vbr":["rmvb"],"application/vnd.route66.link66+xml":["link66"],"application/vnd.sailingtracker.track":["st"],"application/vnd.seemail":["see"],"application/vnd.sema":["sema"],"application/vnd.semd":["semd"],"application/vnd.semf":["semf"],"application/vnd.shana.informed.formdata":["ifm"],"application/vnd.shana.informed.formtemplate":["itp"],"application/vnd.shana.informed.interchange":["iif"],"application/vnd.shana.informed.package":["ipk"],"application/vnd.simtech-mindmapper":["twd","twds"],"application/vnd.smaf":["mmf"],"application/vnd.smart.teacher":["teacher"],"application/vnd.solent.sdkm+xml":["sdkm","sdkd"],"application/vnd.spotfire.dxp":["dxp"],"application/vnd.spotfire.sfs":["sfs"],"application/vnd.stardivision.calc":["sdc"],"application/vnd.stardivision.draw":["sda"],"application/vnd.stardivision.impress":["sdd"],"application/vnd.stardivision.math":["smf"],"application/vnd.stardivision.writer":["sdw","vor"],"application/vnd.stardivision.writer-global":["sgl"],"application/vnd.stepmania.package":["smzip"],"application/vnd.stepmania.stepchart":["sm"],"application/vnd.sun.xml.calc":["sxc"],"application/vnd.sun.xml.calc.template":["stc"],"application/vnd.sun.xml.draw":["sxd"],"application/vnd.sun.xml.draw.template":["std"],"application/vnd.sun.xml.impress":["sxi"],"application/vnd.sun.xml.impress.template":["sti"],"application/vnd.sun.xml.math":["sxm"],"application/vnd.sun.xml.writer":["sxw"],"application/vnd.sun.xml.writer.global":["sxg"],"application/vnd.sun.xml.writer.template":["stw"],"application/vnd.sus-calendar":["sus","susp"],"application/vnd.svd":["svd"],"application/vnd.symbian.install":["sis","sisx"],"application/vnd.syncml+xml":["xsm"],"application/vnd.syncml.dm+wbxml":["bdm"],"application/vnd.syncml.dm+xml":["xdm"],"application/vnd.tao.intent-module-archive":["tao"],"application/vnd.tcpdump.pcap":["pcap","cap","dmp"],"application/vnd.tmobile-livetv":["tmo"],"application/vnd.trid.tpt":["tpt"],"application/vnd.triscape.mxs":["mxs"],"application/vnd.trueapp":["tra"],"application/vnd.ufdl":["ufd","ufdl"],"application/vnd.uiq.theme":["utz"],"application/vnd.umajin":["umj"],"application/vnd.unity":["unityweb"],"application/vnd.uoml+xml":["uoml"],"application/vnd.vcx":["vcx"],"application/vnd.visio":["vsd","vst","vss","vsw"],"application/vnd.visionary":["vis"],"application/vnd.vsf":["vsf"],"application/vnd.wap.wbxml":["wbxml"],"application/vnd.wap.wmlc":["wmlc"],"application/vnd.wap.wmlscriptc":["wmlsc"],"application/vnd.webturbo":["wtb"],"application/vnd.wolfram.player":["nbp"],"application/vnd.wordperfect":["wpd"],"application/vnd.wqd":["wqd"],"application/vnd.wt.stf":["stf"],"application/vnd.xara":["xar"],"application/vnd.xfdl":["xfdl"],"application/vnd.yamaha.hv-dic":["hvd"],"application/vnd.yamaha.hv-script":["hvs"],"application/vnd.yamaha.hv-voice":["hvp"],"application/vnd.yamaha.openscoreformat":["osf"],"application/vnd.yamaha.openscoreformat.osfpvg+xml":["osfpvg"],"application/vnd.yamaha.smaf-audio":["saf"],"application/vnd.yamaha.smaf-phrase":["spf"],"application/vnd.yellowriver-custom-menu":["cmp"],"application/vnd.zul":["zir","zirz"],"application/vnd.zzazz.deck+xml":["zaz"],"application/voicexml+xml":["vxml"],"application/widget":["wgt"],"application/winhlp":["hlp"],"application/wsdl+xml":["wsdl"],"application/wspolicy+xml":["wspolicy"],"application/x-7z-compressed":["7z"],"application/x-abiword":["abw"],"application/x-ace-compressed":["ace"],"application/x-apple-diskimage":["dmg"],"application/x-authorware-bin":["aab","x32","u32","vox"],"application/x-authorware-map":["aam"],"application/x-authorware-seg":["aas"],"application/x-bcpio":["bcpio"],"application/x-bittorrent":["torrent"],"application/x-blorb":["blb","blorb"],"application/x-bzip":["bz"],"application/x-bzip2":["bz2","boz"],"application/x-cbr":["cbr","cba","cbt","cbz","cb7"],"application/x-cdlink":["vcd"],"application/x-cfs-compressed":["cfs"],"application/x-chat":["chat"],"application/x-chess-pgn":["pgn"],"application/x-chrome-extension":["crx"],"application/x-conference":["nsc"],"application/x-cpio":["cpio"],"application/x-csh":["csh"],"application/x-debian-package":["deb","udeb"],"application/x-dgc-compressed":["dgc"],"application/x-director":["dir","dcr","dxr","cst","cct","cxt","w3d","fgd","swa"],"application/x-doom":["wad"],"application/x-dtbncx+xml":["ncx"],"application/x-dtbook+xml":["dtb"],"application/x-dtbresource+xml":["res"],"application/x-dvi":["dvi"],"application/x-envoy":["evy"],"application/x-eva":["eva"],"application/x-font-bdf":["bdf"],"application/x-font-ghostscript":["gsf"],"application/x-font-linux-psf":["psf"],"application/x-font-otf":["otf"],"application/x-font-pcf":["pcf"],"application/x-font-snf":["snf"],"application/x-font-ttf":["ttf","ttc"],"application/x-font-type1":["pfa","pfb","pfm","afm"],"application/x-freearc":["arc"],"application/x-futuresplash":["spl"],"application/x-gca-compressed":["gca"],"application/x-glulx":["ulx"],"application/x-gnumeric":["gnumeric"],"application/x-gramps-xml":["gramps"],"application/x-gtar":["gtar"],"application/x-hdf":["hdf"],"application/x-install-instructions":["install"],"application/x-iso9660-image":["iso"],"application/x-java-jnlp-file":["jnlp"],"application/x-latex":["latex"],"application/x-lua-bytecode":["luac"],"application/x-lzh-compressed":["lzh","lha"],"application/x-mie":["mie"],"application/x-mobipocket-ebook":["prc","mobi"],"application/x-ms-application":["application"],"application/x-ms-shortcut":["lnk"],"application/x-ms-wmd":["wmd"],"application/x-ms-wmz":["wmz"],"application/x-ms-xbap":["xbap"],"application/x-msaccess":["mdb"],"application/x-msbinder":["obd"],"application/x-mscardfile":["crd"],"application/x-msclip":["clp"],"application/x-msdownload":["exe","dll","com","bat","msi"],"application/x-msmediaview":["mvb","m13","m14"],"application/x-msmetafile":["wmf","wmz","emf","emz"],"application/x-msmoney":["mny"],"application/x-mspublisher":["pub"],"application/x-msschedule":["scd"],"application/x-msterminal":["trm"],"application/x-mswrite":["wri"],"application/x-netcdf":["nc","cdf"],"application/x-nzb":["nzb"],"application/x-pkcs12":["p12","pfx"],"application/x-pkcs7-certificates":["p7b","spc"],"application/x-pkcs7-certreqresp":["p7r"],"application/x-rar-compressed":["rar"],"application/x-research-info-systems":["ris"],"application/x-sh":["sh"],"application/x-shar":["shar"],"application/x-shockwave-flash":["swf"],"application/x-silverlight-app":["xap"],"application/x-sql":["sql"],"application/x-stuffit":["sit"],"application/x-stuffitx":["sitx"],"application/x-subrip":["srt"],"application/x-sv4cpio":["sv4cpio"],"application/x-sv4crc":["sv4crc"],"application/x-t3vm-image":["t3"],"application/x-tads":["gam"],"application/x-tar":["tar"],"application/x-tcl":["tcl"],"application/x-tex":["tex"],"application/x-tex-tfm":["tfm"],"application/x-texinfo":["texinfo","texi"],"application/x-tgif":["obj"],"application/x-ustar":["ustar"],"application/x-wais-source":["src"],"application/x-web-app-manifest+json":["webapp"],"application/x-x509-ca-cert":["der","crt"],"application/x-xfig":["fig"],"application/x-xliff+xml":["xlf"],"application/x-xpinstall":["xpi"],"application/x-xz":["xz"],"application/x-zmachine":["z1","z2","z3","z4","z5","z6","z7","z8"],"application/xaml+xml":["xaml"],"application/xcap-diff+xml":["xdf"],"application/xenc+xml":["xenc"],"application/xhtml+xml":["xhtml","xht"],"application/xml":["xml","xsl","xsd"],"application/xml-dtd":["dtd"],"application/xop+xml":["xop"],"application/xproc+xml":["xpl"],"application/xslt+xml":["xslt"],"application/xspf+xml":["xspf"],"application/xv+xml":["mxml","xhvml","xvml","xvm"],"application/yang":["yang"],"application/yin+xml":["yin"],"application/zip":["zip"],"audio/adpcm":["adp"],"audio/basic":["au","snd"],"audio/midi":["mid","midi","kar","rmi"],"audio/mp4":["mp4a","m4a"],"audio/mpeg":["mpga","mp2","mp2a","mp3","m2a","m3a"],"audio/ogg":["oga","ogg","spx"],"audio/s3m":["s3m"],"audio/silk":["sil"],"audio/vnd.dece.audio":["uva","uvva"],"audio/vnd.digital-winds":["eol"],"audio/vnd.dra":["dra"],"audio/vnd.dts":["dts"],"audio/vnd.dts.hd":["dtshd"],"audio/vnd.lucent.voice":["lvp"],"audio/vnd.ms-playready.media.pya":["pya"],"audio/vnd.nuera.ecelp4800":["ecelp4800"],"audio/vnd.nuera.ecelp7470":["ecelp7470"],"audio/vnd.nuera.ecelp9600":["ecelp9600"],"audio/vnd.rip":["rip"],"audio/webm":["weba"],"audio/x-aac":["aac"],"audio/x-aiff":["aif","aiff","aifc"],"audio/x-caf":["caf"],"audio/x-flac":["flac"],"audio/x-matroska":["mka"],"audio/x-mpegurl":["m3u"],"audio/x-ms-wax":["wax"],"audio/x-ms-wma":["wma"],"audio/x-pn-realaudio":["ram","ra"],"audio/x-pn-realaudio-plugin":["rmp"],"audio/x-wav":["wav"],"audio/xm":["xm"],"chemical/x-cdx":["cdx"],"chemical/x-cif":["cif"],"chemical/x-cmdf":["cmdf"],"chemical/x-cml":["cml"],"chemical/x-csml":["csml"],"chemical/x-xyz":["xyz"],"font/opentype":["otf"],"image/bmp":["bmp"],"image/cgm":["cgm"],"image/g3fax":["g3"],"image/gif":["gif"],"image/ief":["ief"],"image/jpeg":["jpeg","jpg","jpe"],"image/ktx":["ktx"],"image/png":["png"],"image/prs.btif":["btif"],"image/sgi":["sgi"],"image/svg+xml":["svg","svgz"],"image/tiff":["tiff","tif"],"image/vnd.adobe.photoshop":["psd"],"image/vnd.dece.graphic":["uvi","uvvi","uvg","uvvg"],"image/vnd.djvu":["djvu","djv"],"image/vnd.dvb.subtitle":["sub"],"image/vnd.dwg":["dwg"],"image/vnd.dxf":["dxf"],"image/vnd.fastbidsheet":["fbs"],"image/vnd.fpx":["fpx"],"image/vnd.fst":["fst"],"image/vnd.fujixerox.edmics-mmr":["mmr"],"image/vnd.fujixerox.edmics-rlc":["rlc"],"image/vnd.ms-modi":["mdi"],"image/vnd.ms-photo":["wdp"],"image/vnd.net-fpx":["npx"],"image/vnd.wap.wbmp":["wbmp"],"image/vnd.xiff":["xif"],"image/webp":["webp"],"image/x-3ds":["3ds"],"image/x-cmu-raster":["ras"],"image/x-cmx":["cmx"],"image/x-freehand":["fh","fhc","fh4","fh5","fh7"],"image/x-icon":["ico"],"image/x-mrsid-image":["sid"],"image/x-pcx":["pcx"],"image/x-pict":["pic","pct"],"image/x-portable-anymap":["pnm"],"image/x-portable-bitmap":["pbm"],"image/x-portable-graymap":["pgm"],"image/x-portable-pixmap":["ppm"],"image/x-rgb":["rgb"],"image/x-tga":["tga"],"image/x-xbitmap":["xbm"],"image/x-xpixmap":["xpm"],"image/x-xwindowdump":["xwd"],"message/rfc822":["eml","mime"],"model/iges":["igs","iges"],"model/mesh":["msh","mesh","silo"],"model/vnd.collada+xml":["dae"],"model/vnd.dwf":["dwf"],"model/vnd.gdl":["gdl"],"model/vnd.gtw":["gtw"],"model/vnd.mts":["mts"],"model/vnd.vtu":["vtu"],"model/vrml":["wrl","vrml"],"model/x3d+binary":["x3db","x3dbz"],"model/x3d+vrml":["x3dv","x3dvz"],"model/x3d+xml":["x3d","x3dz"],"text/cache-manifest":["appcache","manifest"],"text/calendar":["ics","ifb"],"text/coffeescript":["coffee"],"text/css":["css"],"text/csv":["csv"],"text/hjson":["hjson"],"text/html":["html","htm"],"text/jade":["jade"],"text/jsx":["jsx"],"text/less":["less"],"text/n3":["n3"],"text/plain":["txt","text","conf","def","list","log","in","ini"],"text/prs.lines.tag":["dsc"],"text/richtext":["rtx"],"text/sgml":["sgml","sgm"],"text/stylus":["stylus","styl"],"text/tab-separated-values":["tsv"],"text/troff":["t","tr","roff","man","me","ms"],"text/turtle":["ttl"],"text/uri-list":["uri","uris","urls"],"text/vcard":["vcard"],"text/vnd.curl":["curl"],"text/vnd.curl.dcurl":["dcurl"],"text/vnd.curl.mcurl":["mcurl"],"text/vnd.curl.scurl":["scurl"],"text/vnd.dvb.subtitle":["sub"],"text/vnd.fly":["fly"],"text/vnd.fmi.flexstor":["flx"],"text/vnd.graphviz":["gv"],"text/vnd.in3d.3dml":["3dml"],"text/vnd.in3d.spot":["spot"],"text/vnd.sun.j2me.app-descriptor":["jad"],"text/vnd.wap.wml":["wml"],"text/vnd.wap.wmlscript":["wmls"],"text/vtt":["vtt"],"text/x-asm":["s","asm"],"text/x-c":["c","cc","cxx","cpp","h","hh","dic"],"text/x-component":["htc"],"text/x-fortran":["f","for","f77","f90"],"text/x-handlebars-template":["hbs"],"text/x-java-source":["java"],"text/x-lua":["lua"],"text/x-markdown":["markdown","md","mkd"],"text/x-nfo":["nfo"],"text/x-opml":["opml"],"text/x-pascal":["p","pas"],"text/x-sass":["sass"],"text/x-scss":["scss"],"text/x-setext":["etx"],"text/x-sfv":["sfv"],"text/x-uuencode":["uu"],"text/x-vcalendar":["vcs"],"text/x-vcard":["vcf"],"text/yaml":["yaml","yml"],"video/3gpp":["3gp"],"video/3gpp2":["3g2"],"video/h261":["h261"],"video/h263":["h263"],"video/h264":["h264"],"video/jpeg":["jpgv"],"video/jpm":["jpm","jpgm"],"video/mj2":["mj2","mjp2"],"video/mp2t":["ts"],"video/mp4":["mp4","mp4v","mpg4"],"video/mpeg":["mpeg","mpg","mpe","m1v","m2v"],"video/ogg":["ogv"],"video/quicktime":["qt","mov"],"video/vnd.dece.hd":["uvh","uvvh"],"video/vnd.dece.mobile":["uvm","uvvm"],"video/vnd.dece.pd":["uvp","uvvp"],"video/vnd.dece.sd":["uvs","uvvs"],"video/vnd.dece.video":["uvv","uvvv"],"video/vnd.dvb.file":["dvb"],"video/vnd.fvt":["fvt"],"video/vnd.mpegurl":["mxu","m4u"],"video/vnd.ms-playready.media.pyv":["pyv"],"video/vnd.uvvu.mp4":["uvu","uvvu"],"video/vnd.vivo":["viv"],"video/webm":["webm"],"video/x-f4v":["f4v"],"video/x-fli":["fli"],"video/x-flv":["flv"],"video/x-m4v":["m4v"],"video/x-matroska":["mkv","mk3d","mks"],"video/x-mng":["mng"],"video/x-ms-asf":["asf","asx"],"video/x-ms-vob":["vob"],"video/x-ms-wm":["wm"],"video/x-ms-wmv":["wmv"],"video/x-ms-wmx":["wmx"],"video/x-ms-wvx":["wvx"],"video/x-msvideo":["avi"],"video/x-sgi-movie":["movie"],"video/x-smv":["smv"],"x-conference/x-cooltalk":["ice"]}},{}],61:[function(e,t,n){"use strict";var r=e("ndarray-ops"),i=e("ndarray"),a=e("typedarray-pool"),o=e("./lib/fft-matrix.js");t.exports=function(e,t,n){var s,u,l=t.shape,c=l.length,f=1,h=new Array(c),p=0;for(s=c-1;s>=0;--s)if(h[s]=f,f*=l[s],p=Math.max(p,o.scratchMemory(l[s])),t.shape[s]!==n.shape[s])throw new Error("Shape mismatch, real and imaginary arrays must have same size");var d,g=4*f+p;d="array"===t.dtype||"float64"===t.dtype||"custom"===t.dtype?a.mallocDouble(g):a.mallocFloat(g);var v,m,w,y,_=i(d,l.slice(0),h,0),b=i(d,l.slice(0),h.slice(0),f),x=i(d,l.slice(0),h.slice(0),2*f),k=i(d,l.slice(0),h.slice(0),3*f),E=4*f;for(r.assign(_,t),r.assign(b,n),s=c-1;s>=0&&(o(e,f/l[s],l[s],d,_.offset,b.offset,E),0!==s);--s){for(m=1,w=x.stride,y=k.stride,u=s-1;u<c;++u)y[u]=w[u]=m,m*=l[u];for(u=s-2;u>=0;--u)y[u]=w[u]=m,m*=l[u];r.assign(x,_),r.assign(k,b),v=_,_=x,x=v,v=b,b=k,k=v}r.assign(t,_),r.assign(n,b),a.free(d)}},{"./lib/fft-matrix.js":62,ndarray:67,"ndarray-ops":64,"typedarray-pool":126}],62:[function(e,t,n){var r=e("bit-twiddle");function i(e,t,n,i,a,o){var s,u,l,c,f,h,p,d,g,v,m,w,y,_,b,x,k,E,T,A,S,C,M,R;for(e|=0,t|=0,a|=0,o|=0,s=n|=0,u=r.log2(s),E=0;E<t;++E){for(p=s>>1,f=0,l=0;l<s-1;l++){for(l<f&&(y=i[a+l],i[a+l]=i[a+f],i[a+f]=y,y=i[o+l],i[o+l]=i[o+f],i[o+f]=y),h=p;h<=f;)f-=h,h>>=1;f+=h}for(m=-1,w=0,v=1,d=0;d<u;d++){for(g=v,v<<=1,x=1,k=0,f=0;f<g;f++){for(l=f;l<s;l+=v)T=i[a+(c=l+g)],A=i[o+c],S=i[a+l],C=i[o+l],_=(M=x*(T+A))-A*(x+k),b=M+(R=T*(k-x)),i[a+c]=S-_,i[o+c]=C-b,i[a+l]+=_,i[o+l]+=b;R=x*(w-m),x=(M=m*(x+k))-k*(m+w),k=M+R}w=Math.sqrt((1-m)/2),e<0&&(w=-w),m=Math.sqrt((1+m)/2)}if(e<0){var j=1/s;for(l=0;l<s;l++)i[a+l]*=j,i[o+l]*=j}a+=n,o+=n}}t.exports=function(e,t,n,a,o,s,u){e|=0,t|=0,n|=0,o|=0,s|=0,r.isPow2(n)?i(e,t,n,a,o,s):function(e,t,n,a,o,s,u){e|=0,t|=0,n|=0,o|=0,s|=0,u|=0;var l,c,f,h,p,d,g,v,m,w=r.nextPow2(2*n+1),y=u,_=y+n,b=_+n,x=b+w,k=x+w,E=k+w,T=-e*Math.PI/n;for(m=0;m<n;++m)c=T*(m*m%(2*n)),h=Math.cos(c),p=Math.sin(c),a[k+(w-m)]=a[k+m]=a[y+m]=h,a[E+(w-m)]=a[E+m]=a[_+m]=p;for(m=n;m<=w-n;++m)a[k+m]=0;for(m=n;m<=w-n;++m)a[E+m]=0;for(i(1,1,w,a,k,E),T=e<0?1/n:1,l=0;l<t;++l){for(m=0;m<n;++m)c=a[o+m],f=a[s+m],h=a[y+m],p=-a[_+m],d=h*(c+f),g=c*(p-h),v=f*(h+p),a[b+m]=d-v,a[x+m]=d+g;for(m=n;m<w;++m)a[b+m]=0;for(m=n;m<w;++m)a[x+m]=0;for(i(1,1,w,a,b,x),m=0;m<w;++m)c=a[b+m],f=a[x+m],h=a[k+m],p=a[E+m],d=h*(c+f),g=c*(p-h),v=f*(h+p),a[b+m]=d-v,a[x+m]=d+g;for(i(-1,1,w,a,b,x),m=0;m<n;++m)c=a[b+m],f=a[x+m],h=a[y+m],p=-a[_+m],d=h*(c+f),g=c*(p-h),v=f*(h+p),a[o+m]=T*(d-v),a[s+m]=T*(d+g);o+=n,s+=n}}(e,t,n,a,o,s,u)},t.exports.scratchMemory=function(e){return r.isPow2(e)?0:2*e+4*r.nextPow2(2*e+1)}},{"bit-twiddle":3}],63:[function(e,t,n){"use strict";t.exports=function(e,t,n){var c=new Array(e.dimension),f=1;Array.isArray(n)||(n=u(e.dimension,!!n));Array.isArray(t)||(t=u(e.dimension,t));for(var h=0;h<e.dimension;++h)n[h]?c[h]=e.shape[h]:c[h]=i(e.shape[h]+2*Math.ceil(3*t[h])),f*=c[h];var p=r(s.mallocDouble(f),c),d=p.hi.apply(p,e.shape.slice()),g=r(s.mallocDouble(f),c);return a.assigns(p,0),a.assign(d,e),a.assigns(g,0),o(1,p,g),l(p,g,t),o(-1,p,g),a.assign(e,d),s.freeDouble(p),s.freeDouble(g),e};var r=e("ndarray"),i=e("next-pow-2"),a=e("ndarray-ops"),o=e("ndarray-fft"),s=e("typedarray-pool"),u=e("dup"),l=e("cwise/lib/wrapper")({args:["array","array","scalar","index","shape"],pre:{body:"{this_w=new Array(_inline_0_arg2_.length);for(var _inline_0_w=0;_inline_0_w<_inline_0_arg2_.length;++_inline_0_w)_inline_0_arg2_[_inline_0_w]<1e-6?this_w[_inline_0_w]=0:this_w[_inline_0_w]=-2*Math.pow(Math.PI*_inline_0_arg2_[_inline_0_w]/_inline_0_arg4_[_inline_0_w],2)}",args:[{name:"_inline_0_arg0_",lvalue:!1,rvalue:!1,count:0},{name:"_inline_0_arg1_",lvalue:!1,rvalue:!1,count:0},{name:"_inline_0_arg2_",lvalue:!1,rvalue:!0,count:4},{name:"_inline_0_arg3_",lvalue:!1,rvalue:!1,count:0},{name:"_inline_0_arg4_",lvalue:!1,rvalue:!0,count:1}],thisVars:["this_w"],localVars:["_inline_0_w"]},body:{body:"{for(var _inline_1_n=0,_inline_1_e=0;_inline_1_e<_inline_1_arg2_.length;++_inline_1_e){var _inline_1_f=.5*_inline_1_arg4_[_inline_1_e]-Math.abs(.5*_inline_1_arg4_[_inline_1_e]-_inline_1_arg3_[_inline_1_e]);_inline_1_n+=this_w[_inline_1_e]*_inline_1_f*_inline_1_f}var _inline_1_i=Math.exp(_inline_1_n);_inline_1_arg0_*=_inline_1_i,_inline_1_arg1_*=_inline_1_i}",args:[{name:"_inline_1_arg0_",lvalue:!0,rvalue:!0,count:1},{name:"_inline_1_arg1_",lvalue:!0,rvalue:!0,count:1},{name:"_inline_1_arg2_",lvalue:!1,rvalue:!0,count:1},{name:"_inline_1_arg3_",lvalue:!1,rvalue:!0,count:1},{name:"_inline_1_arg4_",lvalue:!1,rvalue:!0,count:2}],thisVars:["this_w"],localVars:["_inline_1_e","_inline_1_f","_inline_1_i","_inline_1_n"]},post:{body:"{}",args:[],thisVars:[],localVars:[]},debug:!1,funcName:"multiplyGaussian",blockSize:64})},{"cwise/lib/wrapper":26,dup:28,ndarray:67,"ndarray-fft":61,"ndarray-ops":64,"next-pow-2":68,"typedarray-pool":126}],64:[function(e,t,n){"use strict";var r=e("cwise-compiler"),i={body:"",args:[],thisVars:[],localVars:[]};function a(e){if(!e)return i;for(var t=0;t<e.args.length;++t){var n=e.args[t];e.args[t]=0===t?{name:n,lvalue:!0,rvalue:!!e.rvalue,count:e.count||1}:{name:n,lvalue:!1,rvalue:!0,count:1}}return e.thisVars||(e.thisVars=[]),e.localVars||(e.localVars=[]),e}function o(e){for(var t=[],n=0;n<e.args.length;++n)t.push("a"+n);return new Function("P",["return function ",e.funcName,"_ndarrayops(",t.join(","),") {P(",t.join(","),");return a0}"].join(""))(function(e){return r({args:e.args,pre:a(e.pre),body:a(e.body),post:a(e.proc),funcName:e.funcName})}(e))}var s={add:"+",sub:"-",mul:"*",div:"/",mod:"%",band:"&",bor:"|",bxor:"^",lshift:"<<",rshift:">>",rrshift:">>>"};!function(){for(var e in s){var t=s[e];n[e]=o({args:["array","array","array"],body:{args:["a","b","c"],body:"a=b"+t+"c"},funcName:e}),n[e+"eq"]=o({args:["array","array"],body:{args:["a","b"],body:"a"+t+"=b"},rvalue:!0,funcName:e+"eq"}),n[e+"s"]=o({args:["array","array","scalar"],body:{args:["a","b","s"],body:"a=b"+t+"s"},funcName:e+"s"}),n[e+"seq"]=o({args:["array","scalar"],body:{args:["a","s"],body:"a"+t+"=s"},rvalue:!0,funcName:e+"seq"})}}();var u={not:"!",bnot:"~",neg:"-",recip:"1.0/"};!function(){for(var e in u){var t=u[e];n[e]=o({args:["array","array"],body:{args:["a","b"],body:"a="+t+"b"},funcName:e}),n[e+"eq"]=o({args:["array"],body:{args:["a"],body:"a="+t+"a"},rvalue:!0,count:2,funcName:e+"eq"})}}();var l={and:"&&",or:"||",eq:"===",neq:"!==",lt:"<",gt:">",leq:"<=",geq:">="};!function(){for(var e in l){var t=l[e];n[e]=o({args:["array","array","array"],body:{args:["a","b","c"],body:"a=b"+t+"c"},funcName:e}),n[e+"s"]=o({args:["array","array","scalar"],body:{args:["a","b","s"],body:"a=b"+t+"s"},funcName:e+"s"}),n[e+"eq"]=o({args:["array","array"],body:{args:["a","b"],body:"a=a"+t+"b"},rvalue:!0,count:2,funcName:e+"eq"}),n[e+"seq"]=o({args:["array","scalar"],body:{args:["a","s"],body:"a=a"+t+"s"},rvalue:!0,count:2,funcName:e+"seq"})}}();var c=["abs","acos","asin","atan","ceil","cos","exp","floor","log","round","sin","sqrt","tan"];!function(){for(var e=0;e<c.length;++e){var t=c[e];n[t]=o({args:["array","array"],pre:{args:[],body:"this_f=Math."+t,thisVars:["this_f"]},body:{args:["a","b"],body:"a=this_f(b)",thisVars:["this_f"]},funcName:t}),n[t+"eq"]=o({args:["array"],pre:{args:[],body:"this_f=Math."+t,thisVars:["this_f"]},body:{args:["a"],body:"a=this_f(a)",thisVars:["this_f"]},rvalue:!0,count:2,funcName:t+"eq"})}}();var f=["max","min","atan2","pow"];!function(){for(var e=0;e<f.length;++e){var t=f[e];n[t]=o({args:["array","array","array"],pre:{args:[],body:"this_f=Math."+t,thisVars:["this_f"]},body:{args:["a","b","c"],body:"a=this_f(b,c)",thisVars:["this_f"]},funcName:t}),n[t+"s"]=o({args:["array","array","scalar"],pre:{args:[],body:"this_f=Math."+t,thisVars:["this_f"]},body:{args:["a","b","c"],body:"a=this_f(b,c)",thisVars:["this_f"]},funcName:t+"s"}),n[t+"eq"]=o({args:["array","array"],pre:{args:[],body:"this_f=Math."+t,thisVars:["this_f"]},body:{args:["a","b"],body:"a=this_f(a,b)",thisVars:["this_f"]},rvalue:!0,count:2,funcName:t+"eq"}),n[t+"seq"]=o({args:["array","scalar"],pre:{args:[],body:"this_f=Math."+t,thisVars:["this_f"]},body:{args:["a","b"],body:"a=this_f(a,b)",thisVars:["this_f"]},rvalue:!0,count:2,funcName:t+"seq"})}}();var h=["atan2","pow"];!function(){for(var e=0;e<h.length;++e){var t=h[e];n[t+"op"]=o({args:["array","array","array"],pre:{args:[],body:"this_f=Math."+t,thisVars:["this_f"]},body:{args:["a","b","c"],body:"a=this_f(c,b)",thisVars:["this_f"]},funcName:t+"op"}),n[t+"ops"]=o({args:["array","array","scalar"],pre:{args:[],body:"this_f=Math."+t,thisVars:["this_f"]},body:{args:["a","b","c"],body:"a=this_f(c,b)",thisVars:["this_f"]},funcName:t+"ops"}),n[t+"opeq"]=o({args:["array","array"],pre:{args:[],body:"this_f=Math."+t,thisVars:["this_f"]},body:{args:["a","b"],body:"a=this_f(b,a)",thisVars:["this_f"]},rvalue:!0,count:2,funcName:t+"opeq"}),n[t+"opseq"]=o({args:["array","scalar"],pre:{args:[],body:"this_f=Math."+t,thisVars:["this_f"]},body:{args:["a","b"],body:"a=this_f(b,a)",thisVars:["this_f"]},rvalue:!0,count:2,funcName:t+"opseq"})}}(),n.any=r({args:["array"],pre:i,body:{args:[{name:"a",lvalue:!1,rvalue:!0,count:1}],body:"if(a){return true}",localVars:[],thisVars:[]},post:{args:[],localVars:[],thisVars:[],body:"return false"},funcName:"any"}),n.all=r({args:["array"],pre:i,body:{args:[{name:"x",lvalue:!1,rvalue:!0,count:1}],body:"if(!x){return false}",localVars:[],thisVars:[]},post:{args:[],localVars:[],thisVars:[],body:"return true"},funcName:"all"}),n.sum=r({args:["array"],pre:{args:[],localVars:[],thisVars:["this_s"],body:"this_s=0"},body:{args:[{name:"a",lvalue:!1,rvalue:!0,count:1}],body:"this_s+=a",localVars:[],thisVars:["this_s"]},post:{args:[],localVars:[],thisVars:["this_s"],body:"return this_s"},funcName:"sum"}),n.prod=r({args:["array"],pre:{args:[],localVars:[],thisVars:["this_s"],body:"this_s=1"},body:{args:[{name:"a",lvalue:!1,rvalue:!0,count:1}],body:"this_s*=a",localVars:[],thisVars:["this_s"]},post:{args:[],localVars:[],thisVars:["this_s"],body:"return this_s"},funcName:"prod"}),n.norm2squared=r({args:["array"],pre:{args:[],localVars:[],thisVars:["this_s"],body:"this_s=0"},body:{args:[{name:"a",lvalue:!1,rvalue:!0,count:2}],body:"this_s+=a*a",localVars:[],thisVars:["this_s"]},post:{args:[],localVars:[],thisVars:["this_s"],body:"return this_s"},funcName:"norm2squared"}),n.norm2=r({args:["array"],pre:{args:[],localVars:[],thisVars:["this_s"],body:"this_s=0"},body:{args:[{name:"a",lvalue:!1,rvalue:!0,count:2}],body:"this_s+=a*a",localVars:[],thisVars:["this_s"]},post:{args:[],localVars:[],thisVars:["this_s"],body:"return Math.sqrt(this_s)"},funcName:"norm2"}),n.norminf=r({args:["array"],pre:{args:[],localVars:[],thisVars:["this_s"],body:"this_s=0"},body:{args:[{name:"a",lvalue:!1,rvalue:!0,count:4}],body:"if(-a>this_s){this_s=-a}else if(a>this_s){this_s=a}",localVars:[],thisVars:["this_s"]},post:{args:[],localVars:[],thisVars:["this_s"],body:"return this_s"},funcName:"norminf"}),n.norm1=r({args:["array"],pre:{args:[],localVars:[],thisVars:["this_s"],body:"this_s=0"},body:{args:[{name:"a",lvalue:!1,rvalue:!0,count:3}],body:"this_s+=a<0?-a:a",localVars:[],thisVars:["this_s"]},post:{args:[],localVars:[],thisVars:["this_s"],body:"return this_s"},funcName:"norm1"}),n.sup=r({args:["array"],pre:{body:"this_h=-Infinity",args:[],thisVars:["this_h"],localVars:[]},body:{body:"if(_inline_1_arg0_>this_h)this_h=_inline_1_arg0_",args:[{name:"_inline_1_arg0_",lvalue:!1,rvalue:!0,count:2}],thisVars:["this_h"],localVars:[]},post:{body:"return this_h",args:[],thisVars:["this_h"],localVars:[]}}),n.inf=r({args:["array"],pre:{body:"this_h=Infinity",args:[],thisVars:["this_h"],localVars:[]},body:{body:"if(_inline_1_arg0_<this_h)this_h=_inline_1_arg0_",args:[{name:"_inline_1_arg0_",lvalue:!1,rvalue:!0,count:2}],thisVars:["this_h"],localVars:[]},post:{body:"return this_h",args:[],thisVars:["this_h"],localVars:[]}}),n.argmin=r({args:["index","array","shape"],pre:{body:"{this_v=Infinity;this_i=_inline_0_arg2_.slice(0)}",args:[{name:"_inline_0_arg0_",lvalue:!1,rvalue:!1,count:0},{name:"_inline_0_arg1_",lvalue:!1,rvalue:!1,count:0},{name:"_inline_0_arg2_",lvalue:!1,rvalue:!0,count:1}],thisVars:["this_i","this_v"],localVars:[]},body:{body:"{if(_inline_1_arg1_<this_v){this_v=_inline_1_arg1_;for(var _inline_1_k=0;_inline_1_k<_inline_1_arg0_.length;++_inline_1_k){this_i[_inline_1_k]=_inline_1_arg0_[_inline_1_k]}}}",args:[{name:"_inline_1_arg0_",lvalue:!1,rvalue:!0,count:2},{name:"_inline_1_arg1_",lvalue:!1,rvalue:!0,count:2}],thisVars:["this_i","this_v"],localVars:["_inline_1_k"]},post:{body:"{return this_i}",args:[],thisVars:["this_i"],localVars:[]}}),n.argmax=r({args:["index","array","shape"],pre:{body:"{this_v=-Infinity;this_i=_inline_0_arg2_.slice(0)}",args:[{name:"_inline_0_arg0_",lvalue:!1,rvalue:!1,count:0},{name:"_inline_0_arg1_",lvalue:!1,rvalue:!1,count:0},{name:"_inline_0_arg2_",lvalue:!1,rvalue:!0,count:1}],thisVars:["this_i","this_v"],localVars:[]},body:{body:"{if(_inline_1_arg1_>this_v){this_v=_inline_1_arg1_;for(var _inline_1_k=0;_inline_1_k<_inline_1_arg0_.length;++_inline_1_k){this_i[_inline_1_k]=_inline_1_arg0_[_inline_1_k]}}}",args:[{name:"_inline_1_arg0_",lvalue:!1,rvalue:!0,count:2},{name:"_inline_1_arg1_",lvalue:!1,rvalue:!0,count:2}],thisVars:["this_i","this_v"],localVars:["_inline_1_k"]},post:{body:"{return this_i}",args:[],thisVars:["this_i"],localVars:[]}}),n.random=o({args:["array"],pre:{args:[],body:"this_f=Math.random",thisVars:["this_f"]},body:{args:["a"],body:"a=this_f()",thisVars:["this_f"]},funcName:"random"}),n.assign=o({args:["array","array"],body:{args:["a","b"],body:"a=b"},funcName:"assign"}),n.assigns=o({args:["array","scalar"],body:{args:["a","b"],body:"a=b"},funcName:"assigns"}),n.equals=r({args:["array","array"],pre:i,body:{args:[{name:"x",lvalue:!1,rvalue:!0,count:1},{name:"y",lvalue:!1,rvalue:!0,count:1}],body:"if(x!==y){return false}",localVars:[],thisVars:[]},post:{args:[],localVars:[],thisVars:[],body:"return true"},funcName:"equals"})},{"cwise-compiler":23}],65:[function(e,t,n){"use strict";var r=e("ndarray"),i=e("./doConvert.js");t.exports=function(e,t){for(var n=[],a=e,o=1;Array.isArray(a);)n.push(a.length),o*=a.length,a=a[0];return 0===n.length?r():(t||(t=r(new Float64Array(o),n)),i(t,e),t)}},{"./doConvert.js":66,ndarray:67}],66:[function(e,t,n){t.exports=e("cwise-compiler")({args:["array","scalar","index"],pre:{body:"{}",args:[],thisVars:[],localVars:[]},body:{body:"{\nvar _inline_1_v=_inline_1_arg1_,_inline_1_i\nfor(_inline_1_i=0;_inline_1_i<_inline_1_arg2_.length-1;++_inline_1_i) {\n_inline_1_v=_inline_1_v[_inline_1_arg2_[_inline_1_i]]\n}\n_inline_1_arg0_=_inline_1_v[_inline_1_arg2_[_inline_1_arg2_.length-1]]\n}",args:[{name:"_inline_1_arg0_",lvalue:!0,rvalue:!1,count:1},{name:"_inline_1_arg1_",lvalue:!1,rvalue:!0,count:1},{name:"_inline_1_arg2_",lvalue:!1,rvalue:!0,count:4}],thisVars:[],localVars:["_inline_1_i","_inline_1_v"]},post:{body:"{}",args:[],thisVars:[],localVars:[]},funcName:"convert",blockSize:64})},{"cwise-compiler":23}],67:[function(e,t,n){var r=e("iota-array"),i=e("is-buffer"),a="undefined"!=typeof Float64Array;function o(e,t){return e[0]-t[0]}function s(){var e,t=this.stride,n=new Array(t.length);for(e=0;e<n.length;++e)n[e]=[Math.abs(t[e]),e];n.sort(o);var r=new Array(n.length);for(e=0;e<r.length;++e)r[e]=n[e][1];return r}function u(e,t){var n=["View",t,"d",e].join("");t<0&&(n="View_Nil"+e);var i="generic"===e;if(-1===t){var a="function "+n+"(a){this.data=a;};var proto="+n+".prototype;proto.dtype='"+e+"';proto.index=function(){return -1};proto.size=0;proto.dimension=-1;proto.shape=proto.stride=proto.order=[];proto.lo=proto.hi=proto.transpose=proto.step=function(){return new "+n+"(this.data);};proto.get=proto.set=function(){};proto.pick=function(){return null};return function construct_"+n+"(a){return new "+n+"(a);}";return new Function(a)()}if(0===t){a="function "+n+"(a,d) {this.data = a;this.offset = d};var proto="+n+".prototype;proto.dtype='"+e+"';proto.index=function(){return this.offset};proto.dimension=0;proto.size=1;proto.shape=proto.stride=proto.order=[];proto.lo=proto.hi=proto.transpose=proto.step=function "+n+"_copy() {return new "+n+"(this.data,this.offset)};proto.pick=function "+n+"_pick(){return TrivialArray(this.data);};proto.valueOf=proto.get=function "+n+"_get(){return "+(i?"this.data.get(this.offset)":"this.data[this.offset]")+"};proto.set=function "+n+"_set(v){return "+(i?"this.data.set(this.offset,v)":"this.data[this.offset]=v")+"};return function construct_"+n+"(a,b,c,d){return new "+n+"(a,d)}";return new Function("TrivialArray",a)(l[e][0])}a=["'use strict'"];var o=r(t),u=o.map(function(e){return"i"+e}),c="this.offset+"+o.map(function(e){return"this.stride["+e+"]*i"+e}).join("+"),f=o.map(function(e){return"b"+e}).join(","),h=o.map(function(e){return"c"+e}).join(",");a.push("function "+n+"(a,"+f+","+h+",d){this.data=a","this.shape=["+f+"]","this.stride=["+h+"]","this.offset=d|0}","var proto="+n+".prototype","proto.dtype='"+e+"'","proto.dimension="+t),a.push("Object.defineProperty(proto,'size',{get:function "+n+"_size(){return "+o.map(function(e){return"this.shape["+e+"]"}).join("*"),"}})"),1===t?a.push("proto.order=[0]"):(a.push("Object.defineProperty(proto,'order',{get:"),t<4?(a.push("function "+n+"_order(){"),2===t?a.push("return (Math.abs(this.stride[0])>Math.abs(this.stride[1]))?[1,0]:[0,1]}})"):3===t&&a.push("var s0=Math.abs(this.stride[0]),s1=Math.abs(this.stride[1]),s2=Math.abs(this.stride[2]);if(s0>s1){if(s1>s2){return [2,1,0];}else if(s0>s2){return [1,2,0];}else{return [1,0,2];}}else if(s0>s2){return [2,0,1];}else if(s2>s1){return [0,1,2];}else{return [0,2,1];}}})")):a.push("ORDER})")),a.push("proto.set=function "+n+"_set("+u.join(",")+",v){"),i?a.push("return this.data.set("+c+",v)}"):a.push("return this.data["+c+"]=v}"),a.push("proto.get=function "+n+"_get("+u.join(",")+"){"),i?a.push("return this.data.get("+c+")}"):a.push("return this.data["+c+"]}"),a.push("proto.index=function "+n+"_index(",u.join(),"){return "+c+"}"),a.push("proto.hi=function "+n+"_hi("+u.join(",")+"){return new "+n+"(this.data,"+o.map(function(e){return["(typeof i",e,"!=='number'||i",e,"<0)?this.shape[",e,"]:i",e,"|0"].join("")}).join(",")+","+o.map(function(e){return"this.stride["+e+"]"}).join(",")+",this.offset)}");var p=o.map(function(e){return"a"+e+"=this.shape["+e+"]"}),d=o.map(function(e){return"c"+e+"=this.stride["+e+"]"});a.push("proto.lo=function "+n+"_lo("+u.join(",")+"){var b=this.offset,d=0,"+p.join(",")+","+d.join(","));for(var g=0;g<t;++g)a.push("if(typeof i"+g+"==='number'&&i"+g+">=0){d=i"+g+"|0;b+=c"+g+"*d;a"+g+"-=d}");a.push("return new "+n+"(this.data,"+o.map(function(e){return"a"+e}).join(",")+","+o.map(function(e){return"c"+e}).join(",")+",b)}"),a.push("proto.step=function "+n+"_step("+u.join(",")+"){var "+o.map(function(e){return"a"+e+"=this.shape["+e+"]"}).join(",")+","+o.map(function(e){return"b"+e+"=this.stride["+e+"]"}).join(",")+",c=this.offset,d=0,ceil=Math.ceil");for(g=0;g<t;++g)a.push("if(typeof i"+g+"==='number'){d=i"+g+"|0;if(d<0){c+=b"+g+"*(a"+g+"-1);a"+g+"=ceil(-a"+g+"/d)}else{a"+g+"=ceil(a"+g+"/d)}b"+g+"*=d}");a.push("return new "+n+"(this.data,"+o.map(function(e){return"a"+e}).join(",")+","+o.map(function(e){return"b"+e}).join(",")+",c)}");var v=new Array(t),m=new Array(t);for(g=0;g<t;++g)v[g]="a[i"+g+"]",m[g]="b[i"+g+"]";a.push("proto.transpose=function "+n+"_transpose("+u+"){"+u.map(function(e,t){return e+"=("+e+"===undefined?"+t+":"+e+"|0)"}).join(";"),"var a=this.shape,b=this.stride;return new "+n+"(this.data,"+v.join(",")+","+m.join(",")+",this.offset)}"),a.push("proto.pick=function "+n+"_pick("+u+"){var a=[],b=[],c=this.offset");for(g=0;g<t;++g)a.push("if(typeof i"+g+"==='number'&&i"+g+">=0){c=(c+this.stride["+g+"]*i"+g+")|0}else{a.push(this.shape["+g+"]);b.push(this.stride["+g+"])}");return a.push("var ctor=CTOR_LIST[a.length+1];return ctor(this.data,a,b,c)}"),a.push("return function construct_"+n+"(data,shape,stride,offset){return new "+n+"(data,"+o.map(function(e){return"shape["+e+"]"}).join(",")+","+o.map(function(e){return"stride["+e+"]"}).join(",")+",offset)}"),new Function("CTOR_LIST","ORDER",a.join("\n"))(l[e],s)}var l={float32:[],float64:[],int8:[],int16:[],int32:[],uint8:[],uint16:[],uint32:[],array:[],uint8_clamped:[],buffer:[],generic:[]};t.exports=function(e,t,n,r){if(void 0===e)return(0,l.array[0])([]);"number"==typeof e&&(e=[e]),void 0===t&&(t=[e.length]);var o=t.length;if(void 0===n){n=new Array(o);for(var s=o-1,c=1;s>=0;--s)n[s]=c,c*=t[s]}if(void 0===r)for(r=0,s=0;s<o;++s)n[s]<0&&(r-=(t[s]-1)*n[s]);for(var f=function(e){if(i(e))return"buffer";if(a)switch(Object.prototype.toString.call(e)){case"[object Float64Array]":return"float64";case"[object Float32Array]":return"float32";case"[object Int8Array]":return"int8";case"[object Int16Array]":return"int16";case"[object Int32Array]":return"int32";case"[object Uint8Array]":return"uint8";case"[object Uint16Array]":return"uint16";case"[object Uint32Array]":return"uint32";case"[object Uint8ClampedArray]":return"uint8_clamped"}return Array.isArray(e)?"array":"generic"}(e),h=l[f];h.length<=o+1;)h.push(u(f,h.length-1));return(0,h[o+1])(e,t,n,r)}},{"iota-array":53,"is-buffer":54}],68:[function(e,t,n){t.exports=function(e){return e+=0===e,--e,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,(e|=e>>>16)+1}},{}],69:[function(e,t,n){function r(e,t,n,r){for(var i=e[t++],a=1<<i,o=a+1,s=o+1,u=i+1,l=(1<<u)-1,c=0,f=0,h=0,p=e[t++],d=new Int32Array(4096),g=null;;){for(;c<16&&0!==p;)f|=e[t++]<<c,c+=8,1===p?p=e[t++]:--p;if(c<u)break;var v=f&l;if(f>>=u,c-=u,v!==a){if(v===o)break;for(var m=v<s?v:g,w=0,y=m;y>a;)y=d[y]>>8,++w;var _=y;if(h+w+(m!==v?1:0)>r)return void console.log("Warning, gif stream longer than expected.");n[h++]=_;var b=h+=w;for(m!==v&&(n[h++]=_),y=m;w--;)y=d[y],n[--b]=255&y,y>>=8;null!==g&&s<4096&&(d[s++]=g<<8|_,s>=l+1&&u<12&&(++u,l=l<<1|1)),g=v}else s=o+1,l=(1<<(u=i+1))-1,g=null}return h!==r&&console.log("Warning, gif stream shorter than expected."),n}try{n.GifWriter=function(e,t,n,r){var i=0,a=void 0===(r=void 0===r?{}:r).loop?null:r.loop,o=void 0===r.palette?null:r.palette;if(t<=0||n<=0||t>65535||n>65535)throw"Width/Height invalid.";function s(e){var t=e.length;if(t<2||t>256||t&t-1)throw"Invalid code/color length, must be power of 2 and 2 .. 256.";return t}e[i++]=71,e[i++]=73,e[i++]=70,e[i++]=56,e[i++]=57,e[i++]=97;var u=0,l=0;if(null!==o){for(var c=s(o);c>>=1;)++u;if(c=1<<u,--u,void 0!==r.background){if((l=r.background)>=c)throw"Background index out of range.";if(0===l)throw"Background index explicitly passed as 0."}}if(e[i++]=255&t,e[i++]=t>>8&255,e[i++]=255&n,e[i++]=n>>8&255,e[i++]=(null!==o?128:0)|u,e[i++]=l,e[i++]=0,null!==o)for(var f=0,h=o.length;f<h;++f){var p=o[f];e[i++]=p>>16&255,e[i++]=p>>8&255,e[i++]=255&p}if(null!==a){if(a<0||a>65535)throw"Loop count invalid.";e[i++]=33,e[i++]=255,e[i++]=11,e[i++]=78,e[i++]=69,e[i++]=84,e[i++]=83,e[i++]=67,e[i++]=65,e[i++]=80,e[i++]=69,e[i++]=50,e[i++]=46,e[i++]=48,e[i++]=3,e[i++]=1,e[i++]=255&a,e[i++]=a>>8&255,e[i++]=0}var d=!1;this.addFrame=function(t,n,r,a,u,l){if(!0===d&&(--i,d=!1),l=void 0===l?{}:l,t<0||n<0||t>65535||n>65535)throw"x/y invalid.";if(r<=0||a<=0||r>65535||a>65535)throw"Width/Height invalid.";if(u.length<r*a)throw"Not enough pixels for the frame size.";var c=!0,f=l.palette;if(void 0!==f&&null!==f||(c=!1,f=o),void 0===f||null===f)throw"Must supply either a local or global palette.";for(var h=s(f),p=0;h>>=1;)++p;h=1<<p;var g=void 0===l.delay?0:l.delay,v=void 0===l.disposal?0:l.disposal;if(v<0||v>3)throw"Disposal out of range.";var m=!1,w=0;if(void 0!==l.transparent&&null!==l.transparent&&(m=!0,(w=l.transparent)<0||w>=h))throw"Transparent color index.";if((0!==v||m||0!==g)&&(e[i++]=33,e[i++]=249,e[i++]=4,e[i++]=v<<2|(!0===m?1:0),e[i++]=255&g,e[i++]=g>>8&255,e[i++]=w,e[i++]=0),e[i++]=44,e[i++]=255&t,e[i++]=t>>8&255,e[i++]=255&n,e[i++]=n>>8&255,e[i++]=255&r,e[i++]=r>>8&255,e[i++]=255&a,e[i++]=a>>8&255,e[i++]=!0===c?128|p-1:0,!0===c)for(var y=0,_=f.length;y<_;++y){var b=f[y];e[i++]=b>>16&255,e[i++]=b>>8&255,e[i++]=255&b}i=function(e,t,n,r){e[t++]=n;var i=t++,a=1<<n,o=a-1,s=a+1,u=s+1,l=n+1,c=0,f=0;function h(n){for(;c>=n;)e[t++]=255&f,f>>=8,c-=8,t===i+256&&(e[i]=255,i=t++)}function p(e){f|=e<<c,c+=l,h(8)}var d=r[0]&o,g={};p(a);for(var v=1,m=r.length;v<m;++v){var w=r[v]&o,y=d<<8|w,_=g[y];if(void 0===_){for(f|=d<<c,c+=l;c>=8;)e[t++]=255&f,f>>=8,c-=8,t===i+256&&(e[i]=255,i=t++);4096===u?(p(a),u=s+1,l=n+1,g={}):(u>=1<<l&&++l,g[y]=u++),d=w}else d=_}return p(d),p(s),h(1),i+1===t?e[i]=0:(e[i]=t-i-1,e[t++]=0),t}(e,i,p<2?2:p,u)},this.end=function(){return!1===d&&(e[i++]=59,d=!0),i}},n.GifReader=function(e){var t=0;if(71!==e[t++]||73!==e[t++]||70!==e[t++]||56!==e[t++]||56!=(e[t++]+1&253)||97!==e[t++])throw"Invalid GIF 87a/89a header.";var n=e[t++]|e[t++]<<8,i=e[t++]|e[t++]<<8,a=e[t++],o=a>>7,s=1<<1+(7&a);e[t++],e[t++];var u=null;o&&(u=t,t+=3*s);var l=!0,c=[],f=0,h=null,p=0,d=null;for(this.width=n,this.height=i;l&&t<e.length;)switch(e[t++]){case 33:switch(e[t++]){case 255:if(11!==e[t]||78==e[t+1]&&69==e[t+2]&&84==e[t+3]&&83==e[t+4]&&67==e[t+5]&&65==e[t+6]&&80==e[t+7]&&69==e[t+8]&&50==e[t+9]&&46==e[t+10]&&48==e[t+11]&&3==e[t+12]&&1==e[t+13]&&0==e[t+16])t+=14,d=e[t++]|e[t++]<<8,t++;else for(t+=12;0!==(T=e[t++]);)t+=T;break;case 249:if(4!==e[t++]||0!==e[t+4])throw"Invalid graphics extension block.";var g=e[t++];f=e[t++]|e[t++]<<8,h=e[t++],0==(1&g)&&(h=null),p=g>>2&7,t++;break;case 254:for(;0!==(T=e[t++]);)t+=T;break;default:throw"Unknown graphic control label: 0x"+e[t-1].toString(16)}break;case 44:var v=e[t++]|e[t++]<<8,m=e[t++]|e[t++]<<8,w=e[t++]|e[t++]<<8,y=e[t++]|e[t++]<<8,_=e[t++],b=_>>6&1,x=u,k=!1;_>>7&&(k=!0,x=t,t+=3*(1<<1+(7&_)));var E=t;for(t++;;){var T;if(0===(T=e[t++]))break;t+=T}c.push({x:v,y:m,width:w,height:y,has_local_palette:k,palette_offset:x,data_offset:E,data_length:t-E,transparent_index:h,interlaced:!!b,delay:f,disposal:p});break;case 59:l=!1;break;default:throw"Unknown gif block: 0x"+e[t-1].toString(16)}this.numFrames=function(){return c.length},this.loopCount=function(){return d},this.frameInfo=function(e){if(e<0||e>=c.length)throw"Frame index out of range.";return c[e]},this.decodeAndBlitFrameBGRA=function(t,i){var a=this.frameInfo(t),o=a.width*a.height,s=new Uint8Array(o);r(e,a.data_offset,s,o);var u=a.palette_offset,l=a.transparent_index;null===l&&(l=256);var c=a.width,f=n-c,h=c,p=4*(a.y*n+a.x),d=4*((a.y+a.height)*n+a.x),g=p,v=4*f;!0===a.interlaced&&(v+=4*n*7);for(var m=8,w=0,y=s.length;w<y;++w){var _=s[w];if(0===h&&(h=c,(g+=v)>=d&&(v=4*f+4*n*(m-1),g=p+(c+f)*(m<<1),m>>=1)),_===l)g+=4;else{var b=e[u+3*_],x=e[u+3*_+1],k=e[u+3*_+2];i[g++]=k,i[g++]=x,i[g++]=b,i[g++]=255}--h}},this.decodeAndBlitFrameRGBA=function(t,i){var a=this.frameInfo(t),o=a.width*a.height,s=new Uint8Array(o);r(e,a.data_offset,s,o);var u=a.palette_offset,l=a.transparent_index;null===l&&(l=256);var c=a.width,f=n-c,h=c,p=4*(a.y*n+a.x),d=4*((a.y+a.height)*n+a.x),g=p,v=4*f;!0===a.interlaced&&(v+=4*n*7);for(var m=8,w=0,y=s.length;w<y;++w){var _=s[w];if(0===h&&(h=c,(g+=v)>=d&&(v=4*f+4*n*(m-1),g=p+(c+f)*(m<<1),m>>=1)),_===l)g+=4;else{var b=e[u+3*_],x=e[u+3*_+1],k=e[u+3*_+2];i[g++]=b,i[g++]=x,i[g++]=k,i[g++]=255}--h}}}}catch(e){}},{}],70:[function(e,t,n){(function(n){var r=e("charm");function i(e){if(!(e=e||{}).total)throw new Error("You MUST specify the total number of operations that will be processed.");this.total=e.total,this.current=0,this.max_burden=e.maxBurden||.5,this.show_burden=e.showBurden||!1,this.started=!1,this.size=50,this.inner_time=0,this.outer_time=0,this.elapsed=0,this.time_start=0,this.time_end=0,this.time_left=0,this.time_burden=0,this.skip_steps=0,this.skipped=0,this.aborted=!1,this.charm=r(),this.charm.pipe(n.stdout),this.charm.write("\n\n\n")}function a(e,t,n){for(n=n||" ";e.length<t;)e=n+e;return e}function o(e,t,n,r){e=(e+"").replace(/[^0-9+\-Ee.]/g,"");var i=isFinite(+e)?+e:0,a=isFinite(+t)?Math.abs(t):0,o=void 0===r?",":r,s=void 0===n?".":n,u="";return(u=(a?function(e,t){var n=Math.pow(10,t);return""+Math.round(e*n)/n}(i,a):""+Math.round(i)).split("."))[0].length>3&&(u[0]=u[0].replace(/\B(?=(?:\d{3})+(?!\d))/g,o)),(u[1]||"").length<a&&(u[1]=u[1]||"",u[1]+=new Array(a-u[1].length+1).join("0")),u.join(s)}t.exports=function(e){return"number"==typeof e&&(e={total:e}),new i(e)},i.prototype.op=function(e){e?this.current=e:this.current++,this.burdenReached()||(this.started||(this.started=(new Date).getTime()),this.time_start=(new Date).getTime(),this.updateTimes(),this.clear(),this.outputProgress(),this.outputStats(),this.outputTimes(),this.current>=this.total&&this.finished(),this.time_end=(new Date).getTime(),this.inner_time=this.time_end-this.time_start)},i.prototype.updateTimes=function(){this.elapsed=this.time_start-this.started,this.time_end>0&&(this.outer_time=this.time_start-this.time_end),this.inner_time>0&&this.outer_time>0&&(this.time_burden=this.inner_time/(this.inner_time+this.outer_time)*100,this.time_left=this.elapsed/this.current*(this.total-this.current),this.time_left<0&&(this.time_left=0)),this.time_burden>this.max_burden&&this.skip_steps<this.total/this.size&&(this.skip_steps=Math.floor(1.3*++this.skip_steps))},i.prototype.clear=function(){this.charm.erase("line").up(1).erase("line").up(1).erase("line").write("\r")},i.prototype.outputProgress=function(){this.charm.write("Processing: "),this.charm.foreground("green").background("green");for(var e=0;e<this.current/this.total*this.size-1;e++)this.charm.write(" ");for(this.charm.foreground("white").background("white");e<this.size-1;)this.charm.write(" "),e++;this.charm.display("reset").down(1).left(100)},i.prototype.outputStats=function(){this.perc=this.current/this.total*100,this.perc=a(this.perc.toFixed(2),2),this.charm.write(" ").display("bright").write(this.perc+"%").display("reset"),this.total_len=o(this.total).length,this.charm.write(" ").display("bright").write(a(o(this.current),this.total_len)).display("reset"),this.charm.write("/"+o(this.total)),this.show_burden&&(this.charm.write(" ").display("bright").write("Burden: ").display("reset"),this.charm.write(this.time_burden.toFixed(2)+"% / "+this.skip_steps)),this.charm.display("reset").down(1).left(100)},i.prototype.outputTimes=function(){var e=Math.floor(this.elapsed/36e5),t=Math.floor(this.elapsed/1e3%3600/60),n=Math.floor(this.elapsed/1e3%60);this.charm.write(" ").display("bright").write("Elapsed: ").display("reset"),this.charm.write(e+"h "+t+"m "+n+"s"),this.time_left&&(e=Math.floor(this.time_left/36e5),t=Math.floor(this.time_left/1e3%3600/60),n=Math.ceil(this.time_left/1e3%60),this.charm.write(" ").display("bright").write("Remaining: ").display("reset"),this.charm.write(e+"h "+t+"m "+n+"s"))},i.prototype.finished=function(){this.charm.write("\n\n"),this.charm.write("Finished!"),this.charm.write("\n\n")},i.prototype.burdenReached=function(){if(this.skip_steps>0&&this.current<this.total){if(this.skipped<this.skip_steps)return this.skipped++,!0;this.skipped=0}return!1}}).call(this,e("_process"))},{_process:105,charm:11}],71:[function(e,t,n){"use strict";var r="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Int32Array;n.assign=function(e){for(var t=Array.prototype.slice.call(arguments,1);t.length;){var n=t.shift();if(n){if("object"!=typeof n)throw new TypeError(n+"must be non-object");for(var r in n)n.hasOwnProperty(r)&&(e[r]=n[r])}}return e},n.shrinkBuf=function(e,t){return e.length===t?e:e.subarray?e.subarray(0,t):(e.length=t,e)};var i={arraySet:function(e,t,n,r,i){if(t.subarray&&e.subarray)e.set(t.subarray(n,n+r),i);else for(var a=0;a<r;a++)e[i+a]=t[n+a]},flattenChunks:function(e){var t,n,r,i,a,o;for(r=0,t=0,n=e.length;t<n;t++)r+=e[t].length;for(o=new Uint8Array(r),i=0,t=0,n=e.length;t<n;t++)a=e[t],o.set(a,i),i+=a.length;return o}},a={arraySet:function(e,t,n,r,i){for(var a=0;a<r;a++)e[i+a]=t[n+a]},flattenChunks:function(e){return[].concat.apply([],e)}};n.setTyped=function(e){e?(n.Buf8=Uint8Array,n.Buf16=Uint16Array,n.Buf32=Int32Array,n.assign(n,i)):(n.Buf8=Array,n.Buf16=Array,n.Buf32=Array,n.assign(n,a))},n.setTyped(r)},{}],72:[function(e,t,n){"use strict";t.exports=function(e,t,n,r){for(var i=65535&e|0,a=e>>>16&65535|0,o=0;0!==n;){n-=o=n>2e3?2e3:n;do{a=a+(i=i+t[r++]|0)|0}while(--o);i%=65521,a%=65521}return i|a<<16|0}},{}],73:[function(e,t,n){"use strict";t.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}},{}],74:[function(e,t,n){"use strict";var r=function(){for(var e,t=[],n=0;n<256;n++){e=n;for(var r=0;r<8;r++)e=1&e?3988292384^e>>>1:e>>>1;t[n]=e}return t}();t.exports=function(e,t,n,i){var a=r,o=i+n;e^=-1;for(var s=i;s<o;s++)e=e>>>8^a[255&(e^t[s])];return-1^e}},{}],75:[function(e,t,n){"use strict";var r,i=e("../utils/common"),a=e("./trees"),o=e("./adler32"),s=e("./crc32"),u=e("./messages"),l=0,c=1,f=3,h=4,p=5,d=0,g=1,v=-2,m=-3,w=-5,y=-1,_=1,b=2,x=3,k=4,E=0,T=2,A=8,S=9,C=15,M=8,R=286,j=30,L=19,I=2*R+1,B=15,D=3,N=258,O=N+D+1,P=32,z=42,F=69,U=73,q=91,W=103,H=113,V=666,Z=1,G=2,Y=3,$=4,X=3;function K(e,t){return e.msg=u[t],t}function J(e){return(e<<1)-(e>4?9:0)}function Q(e){for(var t=e.length;--t>=0;)e[t]=0}function ee(e){var t=e.state,n=t.pending;n>e.avail_out&&(n=e.avail_out),0!==n&&(i.arraySet(e.output,t.pending_buf,t.pending_out,n,e.next_out),e.next_out+=n,t.pending_out+=n,e.total_out+=n,e.avail_out-=n,t.pending-=n,0===t.pending&&(t.pending_out=0))}function te(e,t){a._tr_flush_block(e,e.block_start>=0?e.block_start:-1,e.strstart-e.block_start,t),e.block_start=e.strstart,ee(e.strm)}function ne(e,t){e.pending_buf[e.pending++]=t}function re(e,t){e.pending_buf[e.pending++]=t>>>8&255,e.pending_buf[e.pending++]=255&t}function ie(e,t){var n,r,i=e.max_chain_length,a=e.strstart,o=e.prev_length,s=e.nice_match,u=e.strstart>e.w_size-O?e.strstart-(e.w_size-O):0,l=e.window,c=e.w_mask,f=e.prev,h=e.strstart+N,p=l[a+o-1],d=l[a+o];e.prev_length>=e.good_match&&(i>>=2),s>e.lookahead&&(s=e.lookahead);do{if(l[(n=t)+o]===d&&l[n+o-1]===p&&l[n]===l[a]&&l[++n]===l[a+1]){a+=2,n++;do{}while(l[++a]===l[++n]&&l[++a]===l[++n]&&l[++a]===l[++n]&&l[++a]===l[++n]&&l[++a]===l[++n]&&l[++a]===l[++n]&&l[++a]===l[++n]&&l[++a]===l[++n]&&a<h);if(r=N-(h-a),a=h-N,r>o){if(e.match_start=t,o=r,r>=s)break;p=l[a+o-1],d=l[a+o]}}}while((t=f[t&c])>u&&0!=--i);return o<=e.lookahead?o:e.lookahead}function ae(e){var t,n,r,a,u,l,c,f,h,p,d=e.w_size;do{if(a=e.window_size-e.lookahead-e.strstart,e.strstart>=d+(d-O)){i.arraySet(e.window,e.window,d,d,0),e.match_start-=d,e.strstart-=d,e.block_start-=d,t=n=e.hash_size;do{r=e.head[--t],e.head[t]=r>=d?r-d:0}while(--n);t=n=d;do{r=e.prev[--t],e.prev[t]=r>=d?r-d:0}while(--n);a+=d}if(0===e.strm.avail_in)break;if(l=e.strm,c=e.window,f=e.strstart+e.lookahead,h=a,p=void 0,(p=l.avail_in)>h&&(p=h),n=0===p?0:(l.avail_in-=p,i.arraySet(c,l.input,l.next_in,p,f),1===l.state.wrap?l.adler=o(l.adler,c,p,f):2===l.state.wrap&&(l.adler=s(l.adler,c,p,f)),l.next_in+=p,l.total_in+=p,p),e.lookahead+=n,e.lookahead+e.insert>=D)for(u=e.strstart-e.insert,e.ins_h=e.window[u],e.ins_h=(e.ins_h<<e.hash_shift^e.window[u+1])&e.hash_mask;e.insert&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[u+D-1])&e.hash_mask,e.prev[u&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=u,u++,e.insert--,!(e.lookahead+e.insert<D)););}while(e.lookahead<O&&0!==e.strm.avail_in)}function oe(e,t){for(var n,r;;){if(e.lookahead<O){if(ae(e),e.lookahead<O&&t===l)return Z;if(0===e.lookahead)break}if(n=0,e.lookahead>=D&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+D-1])&e.hash_mask,n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),0!==n&&e.strstart-n<=e.w_size-O&&(e.match_length=ie(e,n)),e.match_length>=D)if(r=a._tr_tally(e,e.strstart-e.match_start,e.match_length-D),e.lookahead-=e.match_length,e.match_length<=e.max_lazy_match&&e.lookahead>=D){e.match_length--;do{e.strstart++,e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+D-1])&e.hash_mask,n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart}while(0!=--e.match_length);e.strstart++}else e.strstart+=e.match_length,e.match_length=0,e.ins_h=e.window[e.strstart],e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+1])&e.hash_mask;else r=a._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++;if(r&&(te(e,!1),0===e.strm.avail_out))return Z}return e.insert=e.strstart<D-1?e.strstart:D-1,t===h?(te(e,!0),0===e.strm.avail_out?Y:$):e.last_lit&&(te(e,!1),0===e.strm.avail_out)?Z:G}function se(e,t){for(var n,r,i;;){if(e.lookahead<O){if(ae(e),e.lookahead<O&&t===l)return Z;if(0===e.lookahead)break}if(n=0,e.lookahead>=D&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+D-1])&e.hash_mask,n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),e.prev_length=e.match_length,e.prev_match=e.match_start,e.match_length=D-1,0!==n&&e.prev_length<e.max_lazy_match&&e.strstart-n<=e.w_size-O&&(e.match_length=ie(e,n),e.match_length<=5&&(e.strategy===_||e.match_length===D&&e.strstart-e.match_start>4096)&&(e.match_length=D-1)),e.prev_length>=D&&e.match_length<=e.prev_length){i=e.strstart+e.lookahead-D,r=a._tr_tally(e,e.strstart-1-e.prev_match,e.prev_length-D),e.lookahead-=e.prev_length-1,e.prev_length-=2;do{++e.strstart<=i&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+D-1])&e.hash_mask,n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart)}while(0!=--e.prev_length);if(e.match_available=0,e.match_length=D-1,e.strstart++,r&&(te(e,!1),0===e.strm.avail_out))return Z}else if(e.match_available){if((r=a._tr_tally(e,0,e.window[e.strstart-1]))&&te(e,!1),e.strstart++,e.lookahead--,0===e.strm.avail_out)return Z}else e.match_available=1,e.strstart++,e.lookahead--}return e.match_available&&(r=a._tr_tally(e,0,e.window[e.strstart-1]),e.match_available=0),e.insert=e.strstart<D-1?e.strstart:D-1,t===h?(te(e,!0),0===e.strm.avail_out?Y:$):e.last_lit&&(te(e,!1),0===e.strm.avail_out)?Z:G}function ue(e,t,n,r,i){this.good_length=e,this.max_lazy=t,this.nice_length=n,this.max_chain=r,this.func=i}function le(e){var t;return e&&e.state?(e.total_in=e.total_out=0,e.data_type=T,(t=e.state).pending=0,t.pending_out=0,t.wrap<0&&(t.wrap=-t.wrap),t.status=t.wrap?z:H,e.adler=2===t.wrap?0:1,t.last_flush=l,a._tr_init(t),d):K(e,v)}function ce(e){var t,n=le(e);return n===d&&((t=e.state).window_size=2*t.w_size,Q(t.head),t.max_lazy_match=r[t.level].max_lazy,t.good_match=r[t.level].good_length,t.nice_match=r[t.level].nice_length,t.max_chain_length=r[t.level].max_chain,t.strstart=0,t.block_start=0,t.lookahead=0,t.insert=0,t.match_length=t.prev_length=D-1,t.match_available=0,t.ins_h=0),n}function fe(e,t,n,r,a,o){if(!e)return v;var s=1;if(t===y&&(t=6),r<0?(s=0,r=-r):r>15&&(s=2,r-=16),a<1||a>S||n!==A||r<8||r>15||t<0||t>9||o<0||o>k)return K(e,v);8===r&&(r=9);var u=new function(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=A,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new i.Buf16(2*I),this.dyn_dtree=new i.Buf16(2*(2*j+1)),this.bl_tree=new i.Buf16(2*(2*L+1)),Q(this.dyn_ltree),Q(this.dyn_dtree),Q(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new i.Buf16(B+1),this.heap=new i.Buf16(2*R+1),Q(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new i.Buf16(2*R+1),Q(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0};return e.state=u,u.strm=e,u.wrap=s,u.gzhead=null,u.w_bits=r,u.w_size=1<<u.w_bits,u.w_mask=u.w_size-1,u.hash_bits=a+7,u.hash_size=1<<u.hash_bits,u.hash_mask=u.hash_size-1,u.hash_shift=~~((u.hash_bits+D-1)/D),u.window=new i.Buf8(2*u.w_size),u.head=new i.Buf16(u.hash_size),u.prev=new i.Buf16(u.w_size),u.lit_bufsize=1<<a+6,u.pending_buf_size=4*u.lit_bufsize,u.pending_buf=new i.Buf8(u.pending_buf_size),u.d_buf=1*u.lit_bufsize,u.l_buf=3*u.lit_bufsize,u.level=t,u.strategy=o,u.method=n,ce(e)}r=[new ue(0,0,0,0,function(e,t){var n=65535;for(n>e.pending_buf_size-5&&(n=e.pending_buf_size-5);;){if(e.lookahead<=1){if(ae(e),0===e.lookahead&&t===l)return Z;if(0===e.lookahead)break}e.strstart+=e.lookahead,e.lookahead=0;var r=e.block_start+n;if((0===e.strstart||e.strstart>=r)&&(e.lookahead=e.strstart-r,e.strstart=r,te(e,!1),0===e.strm.avail_out))return Z;if(e.strstart-e.block_start>=e.w_size-O&&(te(e,!1),0===e.strm.avail_out))return Z}return e.insert=0,t===h?(te(e,!0),0===e.strm.avail_out?Y:$):(e.strstart>e.block_start&&(te(e,!1),e.strm.avail_out),Z)}),new ue(4,4,8,4,oe),new ue(4,5,16,8,oe),new ue(4,6,32,32,oe),new ue(4,4,16,16,se),new ue(8,16,32,32,se),new ue(8,16,128,128,se),new ue(8,32,128,256,se),new ue(32,128,258,1024,se),new ue(32,258,258,4096,se)],n.deflateInit=function(e,t){return fe(e,t,A,C,M,E)},n.deflateInit2=fe,n.deflateReset=ce,n.deflateResetKeep=le,n.deflateSetHeader=function(e,t){return e&&e.state?2!==e.state.wrap?v:(e.state.gzhead=t,d):v},n.deflate=function(e,t){var n,i,o,u;if(!e||!e.state||t>p||t<0)return e?K(e,v):v;if(i=e.state,!e.output||!e.input&&0!==e.avail_in||i.status===V&&t!==h)return K(e,0===e.avail_out?w:v);if(i.strm=e,n=i.last_flush,i.last_flush=t,i.status===z)if(2===i.wrap)e.adler=0,ne(i,31),ne(i,139),ne(i,8),i.gzhead?(ne(i,(i.gzhead.text?1:0)+(i.gzhead.hcrc?2:0)+(i.gzhead.extra?4:0)+(i.gzhead.name?8:0)+(i.gzhead.comment?16:0)),ne(i,255&i.gzhead.time),ne(i,i.gzhead.time>>8&255),ne(i,i.gzhead.time>>16&255),ne(i,i.gzhead.time>>24&255),ne(i,9===i.level?2:i.strategy>=b||i.level<2?4:0),ne(i,255&i.gzhead.os),i.gzhead.extra&&i.gzhead.extra.length&&(ne(i,255&i.gzhead.extra.length),ne(i,i.gzhead.extra.length>>8&255)),i.gzhead.hcrc&&(e.adler=s(e.adler,i.pending_buf,i.pending,0)),i.gzindex=0,i.status=F):(ne(i,0),ne(i,0),ne(i,0),ne(i,0),ne(i,0),ne(i,9===i.level?2:i.strategy>=b||i.level<2?4:0),ne(i,X),i.status=H);else{var m=A+(i.w_bits-8<<4)<<8;m|=(i.strategy>=b||i.level<2?0:i.level<6?1:6===i.level?2:3)<<6,0!==i.strstart&&(m|=P),m+=31-m%31,i.status=H,re(i,m),0!==i.strstart&&(re(i,e.adler>>>16),re(i,65535&e.adler)),e.adler=1}if(i.status===F)if(i.gzhead.extra){for(o=i.pending;i.gzindex<(65535&i.gzhead.extra.length)&&(i.pending!==i.pending_buf_size||(i.gzhead.hcrc&&i.pending>o&&(e.adler=s(e.adler,i.pending_buf,i.pending-o,o)),ee(e),o=i.pending,i.pending!==i.pending_buf_size));)ne(i,255&i.gzhead.extra[i.gzindex]),i.gzindex++;i.gzhead.hcrc&&i.pending>o&&(e.adler=s(e.adler,i.pending_buf,i.pending-o,o)),i.gzindex===i.gzhead.extra.length&&(i.gzindex=0,i.status=U)}else i.status=U;if(i.status===U)if(i.gzhead.name){o=i.pending;do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>o&&(e.adler=s(e.adler,i.pending_buf,i.pending-o,o)),ee(e),o=i.pending,i.pending===i.pending_buf_size)){u=1;break}u=i.gzindex<i.gzhead.name.length?255&i.gzhead.name.charCodeAt(i.gzindex++):0,ne(i,u)}while(0!==u);i.gzhead.hcrc&&i.pending>o&&(e.adler=s(e.adler,i.pending_buf,i.pending-o,o)),0===u&&(i.gzindex=0,i.status=q)}else i.status=q;if(i.status===q)if(i.gzhead.comment){o=i.pending;do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>o&&(e.adler=s(e.adler,i.pending_buf,i.pending-o,o)),ee(e),o=i.pending,i.pending===i.pending_buf_size)){u=1;break}u=i.gzindex<i.gzhead.comment.length?255&i.gzhead.comment.charCodeAt(i.gzindex++):0,ne(i,u)}while(0!==u);i.gzhead.hcrc&&i.pending>o&&(e.adler=s(e.adler,i.pending_buf,i.pending-o,o)),0===u&&(i.status=W)}else i.status=W;if(i.status===W&&(i.gzhead.hcrc?(i.pending+2>i.pending_buf_size&&ee(e),i.pending+2<=i.pending_buf_size&&(ne(i,255&e.adler),ne(i,e.adler>>8&255),e.adler=0,i.status=H)):i.status=H),0!==i.pending){if(ee(e),0===e.avail_out)return i.last_flush=-1,d}else if(0===e.avail_in&&J(t)<=J(n)&&t!==h)return K(e,w);if(i.status===V&&0!==e.avail_in)return K(e,w);if(0!==e.avail_in||0!==i.lookahead||t!==l&&i.status!==V){var y=i.strategy===b?function(e,t){for(var n;;){if(0===e.lookahead&&(ae(e),0===e.lookahead)){if(t===l)return Z;break}if(e.match_length=0,n=a._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++,n&&(te(e,!1),0===e.strm.avail_out))return Z}return e.insert=0,t===h?(te(e,!0),0===e.strm.avail_out?Y:$):e.last_lit&&(te(e,!1),0===e.strm.avail_out)?Z:G}(i,t):i.strategy===x?function(e,t){for(var n,r,i,o,s=e.window;;){if(e.lookahead<=N){if(ae(e),e.lookahead<=N&&t===l)return Z;if(0===e.lookahead)break}if(e.match_length=0,e.lookahead>=D&&e.strstart>0&&(r=s[i=e.strstart-1])===s[++i]&&r===s[++i]&&r===s[++i]){o=e.strstart+N;do{}while(r===s[++i]&&r===s[++i]&&r===s[++i]&&r===s[++i]&&r===s[++i]&&r===s[++i]&&r===s[++i]&&r===s[++i]&&i<o);e.match_length=N-(o-i),e.match_length>e.lookahead&&(e.match_length=e.lookahead)}if(e.match_length>=D?(n=a._tr_tally(e,1,e.match_length-D),e.lookahead-=e.match_length,e.strstart+=e.match_length,e.match_length=0):(n=a._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++),n&&(te(e,!1),0===e.strm.avail_out))return Z}return e.insert=0,t===h?(te(e,!0),0===e.strm.avail_out?Y:$):e.last_lit&&(te(e,!1),0===e.strm.avail_out)?Z:G}(i,t):r[i.level].func(i,t);if(y!==Y&&y!==$||(i.status=V),y===Z||y===Y)return 0===e.avail_out&&(i.last_flush=-1),d;if(y===G&&(t===c?a._tr_align(i):t!==p&&(a._tr_stored_block(i,0,0,!1),t===f&&(Q(i.head),0===i.lookahead&&(i.strstart=0,i.block_start=0,i.insert=0))),ee(e),0===e.avail_out))return i.last_flush=-1,d}return t!==h?d:i.wrap<=0?g:(2===i.wrap?(ne(i,255&e.adler),ne(i,e.adler>>8&255),ne(i,e.adler>>16&255),ne(i,e.adler>>24&255),ne(i,255&e.total_in),ne(i,e.total_in>>8&255),ne(i,e.total_in>>16&255),ne(i,e.total_in>>24&255)):(re(i,e.adler>>>16),re(i,65535&e.adler)),ee(e),i.wrap>0&&(i.wrap=-i.wrap),0!==i.pending?d:g)},n.deflateEnd=function(e){var t;return e&&e.state?(t=e.state.status)!==z&&t!==F&&t!==U&&t!==q&&t!==W&&t!==H&&t!==V?K(e,v):(e.state=null,t===H?K(e,m):d):v},n.deflateSetDictionary=function(e,t){var n,r,a,s,u,l,c,f,h=t.length;if(!e||!e.state)return v;if(2===(s=(n=e.state).wrap)||1===s&&n.status!==z||n.lookahead)return v;for(1===s&&(e.adler=o(e.adler,t,h,0)),n.wrap=0,h>=n.w_size&&(0===s&&(Q(n.head),n.strstart=0,n.block_start=0,n.insert=0),f=new i.Buf8(n.w_size),i.arraySet(f,t,h-n.w_size,n.w_size,0),t=f,h=n.w_size),u=e.avail_in,l=e.next_in,c=e.input,e.avail_in=h,e.next_in=0,e.input=t,ae(n);n.lookahead>=D;){r=n.strstart,a=n.lookahead-(D-1);do{n.ins_h=(n.ins_h<<n.hash_shift^n.window[r+D-1])&n.hash_mask,n.prev[r&n.w_mask]=n.head[n.ins_h],n.head[n.ins_h]=r,r++}while(--a);n.strstart=r,n.lookahead=D-1,ae(n)}return n.strstart+=n.lookahead,n.block_start=n.strstart,n.insert=n.lookahead,n.lookahead=0,n.match_length=n.prev_length=D-1,n.match_available=0,e.next_in=l,e.input=c,e.avail_in=u,n.wrap=s,d},n.deflateInfo="pako deflate (from Nodeca project)"},{"../utils/common":71,"./adler32":72,"./crc32":74,"./messages":79,"./trees":80}],76:[function(e,t,n){"use strict";t.exports=function(e,t){var n,r,i,a,o,s,u,l,c,f,h,p,d,g,v,m,w,y,_,b,x,k,E,T,A;n=e.state,r=e.next_in,T=e.input,i=r+(e.avail_in-5),a=e.next_out,A=e.output,o=a-(t-e.avail_out),s=a+(e.avail_out-257),u=n.dmax,l=n.wsize,c=n.whave,f=n.wnext,h=n.window,p=n.hold,d=n.bits,g=n.lencode,v=n.distcode,m=(1<<n.lenbits)-1,w=(1<<n.distbits)-1;e:do{d<15&&(p+=T[r++]<<d,d+=8,p+=T[r++]<<d,d+=8),y=g[p&m];t:for(;;){if(p>>>=_=y>>>24,d-=_,0===(_=y>>>16&255))A[a++]=65535&y;else{if(!(16&_)){if(0==(64&_)){y=g[(65535&y)+(p&(1<<_)-1)];continue t}if(32&_){n.mode=12;break e}e.msg="invalid literal/length code",n.mode=30;break e}b=65535&y,(_&=15)&&(d<_&&(p+=T[r++]<<d,d+=8),b+=p&(1<<_)-1,p>>>=_,d-=_),d<15&&(p+=T[r++]<<d,d+=8,p+=T[r++]<<d,d+=8),y=v[p&w];n:for(;;){if(p>>>=_=y>>>24,d-=_,!(16&(_=y>>>16&255))){if(0==(64&_)){y=v[(65535&y)+(p&(1<<_)-1)];continue n}e.msg="invalid distance code",n.mode=30;break e}if(x=65535&y,d<(_&=15)&&(p+=T[r++]<<d,(d+=8)<_&&(p+=T[r++]<<d,d+=8)),(x+=p&(1<<_)-1)>u){e.msg="invalid distance too far back",n.mode=30;break e}if(p>>>=_,d-=_,x>(_=a-o)){if((_=x-_)>c&&n.sane){e.msg="invalid distance too far back",n.mode=30;break e}if(k=0,E=h,0===f){if(k+=l-_,_<b){b-=_;do{A[a++]=h[k++]}while(--_);k=a-x,E=A}}else if(f<_){if(k+=l+f-_,(_-=f)<b){b-=_;do{A[a++]=h[k++]}while(--_);if(k=0,f<b){b-=_=f;do{A[a++]=h[k++]}while(--_);k=a-x,E=A}}}else if(k+=f-_,_<b){b-=_;do{A[a++]=h[k++]}while(--_);k=a-x,E=A}for(;b>2;)A[a++]=E[k++],A[a++]=E[k++],A[a++]=E[k++],b-=3;b&&(A[a++]=E[k++],b>1&&(A[a++]=E[k++]))}else{k=a-x;do{A[a++]=A[k++],A[a++]=A[k++],A[a++]=A[k++],b-=3}while(b>2);b&&(A[a++]=A[k++],b>1&&(A[a++]=A[k++]))}break}}break}}while(r<i&&a<s);r-=b=d>>3,p&=(1<<(d-=b<<3))-1,e.next_in=r,e.next_out=a,e.avail_in=r<i?i-r+5:5-(r-i),e.avail_out=a<s?s-a+257:257-(a-s),n.hold=p,n.bits=d}},{}],77:[function(e,t,n){"use strict";var r=e("../utils/common"),i=e("./adler32"),a=e("./crc32"),o=e("./inffast"),s=e("./inftrees"),u=0,l=1,c=2,f=4,h=5,p=6,d=0,g=1,v=2,m=-2,w=-3,y=-4,_=-5,b=8,x=1,k=2,E=3,T=4,A=5,S=6,C=7,M=8,R=9,j=10,L=11,I=12,B=13,D=14,N=15,O=16,P=17,z=18,F=19,U=20,q=21,W=22,H=23,V=24,Z=25,G=26,Y=27,$=28,X=29,K=30,J=31,Q=32,ee=852,te=592,ne=15;function re(e){return(e>>>24&255)+(e>>>8&65280)+((65280&e)<<8)+((255&e)<<24)}function ie(e){var t;return e&&e.state?(t=e.state,e.total_in=e.total_out=t.total=0,e.msg="",t.wrap&&(e.adler=1&t.wrap),t.mode=x,t.last=0,t.havedict=0,t.dmax=32768,t.head=null,t.hold=0,t.bits=0,t.lencode=t.lendyn=new r.Buf32(ee),t.distcode=t.distdyn=new r.Buf32(te),t.sane=1,t.back=-1,d):m}function ae(e){var t;return e&&e.state?((t=e.state).wsize=0,t.whave=0,t.wnext=0,ie(e)):m}function oe(e,t){var n,r;return e&&e.state?(r=e.state,t<0?(n=0,t=-t):(n=1+(t>>4),t<48&&(t&=15)),t&&(t<8||t>15)?m:(null!==r.window&&r.wbits!==t&&(r.window=null),r.wrap=n,r.wbits=t,ae(e))):m}function se(e,t){var n,i;return e?(i=new function(){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 r.Buf16(320),this.work=new r.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0},e.state=i,i.window=null,(n=oe(e,t))!==d&&(e.state=null),n):m}var ue,le,ce=!0;function fe(e){if(ce){var t;for(ue=new r.Buf32(512),le=new r.Buf32(32),t=0;t<144;)e.lens[t++]=8;for(;t<256;)e.lens[t++]=9;for(;t<280;)e.lens[t++]=7;for(;t<288;)e.lens[t++]=8;for(s(l,e.lens,0,288,ue,0,e.work,{bits:9}),t=0;t<32;)e.lens[t++]=5;s(c,e.lens,0,32,le,0,e.work,{bits:5}),ce=!1}e.lencode=ue,e.lenbits=9,e.distcode=le,e.distbits=5}function he(e,t,n,i){var a,o=e.state;return null===o.window&&(o.wsize=1<<o.wbits,o.wnext=0,o.whave=0,o.window=new r.Buf8(o.wsize)),i>=o.wsize?(r.arraySet(o.window,t,n-o.wsize,o.wsize,0),o.wnext=0,o.whave=o.wsize):((a=o.wsize-o.wnext)>i&&(a=i),r.arraySet(o.window,t,n-i,a,o.wnext),(i-=a)?(r.arraySet(o.window,t,n-i,i,0),o.wnext=i,o.whave=o.wsize):(o.wnext+=a,o.wnext===o.wsize&&(o.wnext=0),o.whave<o.wsize&&(o.whave+=a))),0}n.inflateReset=ae,n.inflateReset2=oe,n.inflateResetKeep=ie,n.inflateInit=function(e){return se(e,ne)},n.inflateInit2=se,n.inflate=function(e,t){var n,ee,te,ne,ie,ae,oe,se,ue,le,ce,pe,de,ge,ve,me,we,ye,_e,be,xe,ke,Ee,Te,Ae=0,Se=new r.Buf8(4),Ce=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!e||!e.state||!e.output||!e.input&&0!==e.avail_in)return m;(n=e.state).mode===I&&(n.mode=B),ie=e.next_out,te=e.output,oe=e.avail_out,ne=e.next_in,ee=e.input,ae=e.avail_in,se=n.hold,ue=n.bits,le=ae,ce=oe,ke=d;e:for(;;)switch(n.mode){case x:if(0===n.wrap){n.mode=B;break}for(;ue<16;){if(0===ae)break e;ae--,se+=ee[ne++]<<ue,ue+=8}if(2&n.wrap&&35615===se){n.check=0,Se[0]=255&se,Se[1]=se>>>8&255,n.check=a(n.check,Se,2,0),se=0,ue=0,n.mode=k;break}if(n.flags=0,n.head&&(n.head.done=!1),!(1&n.wrap)||(((255&se)<<8)+(se>>8))%31){e.msg="incorrect header check",n.mode=K;break}if((15&se)!==b){e.msg="unknown compression method",n.mode=K;break}if(ue-=4,xe=8+(15&(se>>>=4)),0===n.wbits)n.wbits=xe;else if(xe>n.wbits){e.msg="invalid window size",n.mode=K;break}n.dmax=1<<xe,e.adler=n.check=1,n.mode=512&se?j:I,se=0,ue=0;break;case k:for(;ue<16;){if(0===ae)break e;ae--,se+=ee[ne++]<<ue,ue+=8}if(n.flags=se,(255&n.flags)!==b){e.msg="unknown compression method",n.mode=K;break}if(57344&n.flags){e.msg="unknown header flags set",n.mode=K;break}n.head&&(n.head.text=se>>8&1),512&n.flags&&(Se[0]=255&se,Se[1]=se>>>8&255,n.check=a(n.check,Se,2,0)),se=0,ue=0,n.mode=E;case E:for(;ue<32;){if(0===ae)break e;ae--,se+=ee[ne++]<<ue,ue+=8}n.head&&(n.head.time=se),512&n.flags&&(Se[0]=255&se,Se[1]=se>>>8&255,Se[2]=se>>>16&255,Se[3]=se>>>24&255,n.check=a(n.check,Se,4,0)),se=0,ue=0,n.mode=T;case T:for(;ue<16;){if(0===ae)break e;ae--,se+=ee[ne++]<<ue,ue+=8}n.head&&(n.head.xflags=255&se,n.head.os=se>>8),512&n.flags&&(Se[0]=255&se,Se[1]=se>>>8&255,n.check=a(n.check,Se,2,0)),se=0,ue=0,n.mode=A;case A:if(1024&n.flags){for(;ue<16;){if(0===ae)break e;ae--,se+=ee[ne++]<<ue,ue+=8}n.length=se,n.head&&(n.head.extra_len=se),512&n.flags&&(Se[0]=255&se,Se[1]=se>>>8&255,n.check=a(n.check,Se,2,0)),se=0,ue=0}else n.head&&(n.head.extra=null);n.mode=S;case S:if(1024&n.flags&&((pe=n.length)>ae&&(pe=ae),pe&&(n.head&&(xe=n.head.extra_len-n.length,n.head.extra||(n.head.extra=new Array(n.head.extra_len)),r.arraySet(n.head.extra,ee,ne,pe,xe)),512&n.flags&&(n.check=a(n.check,ee,pe,ne)),ae-=pe,ne+=pe,n.length-=pe),n.length))break e;n.length=0,n.mode=C;case C:if(2048&n.flags){if(0===ae)break e;pe=0;do{xe=ee[ne+pe++],n.head&&xe&&n.length<65536&&(n.head.name+=String.fromCharCode(xe))}while(xe&&pe<ae);if(512&n.flags&&(n.check=a(n.check,ee,pe,ne)),ae-=pe,ne+=pe,xe)break e}else n.head&&(n.head.name=null);n.length=0,n.mode=M;case M:if(4096&n.flags){if(0===ae)break e;pe=0;do{xe=ee[ne+pe++],n.head&&xe&&n.length<65536&&(n.head.comment+=String.fromCharCode(xe))}while(xe&&pe<ae);if(512&n.flags&&(n.check=a(n.check,ee,pe,ne)),ae-=pe,ne+=pe,xe)break e}else n.head&&(n.head.comment=null);n.mode=R;case R:if(512&n.flags){for(;ue<16;){if(0===ae)break e;ae--,se+=ee[ne++]<<ue,ue+=8}if(se!==(65535&n.check)){e.msg="header crc mismatch",n.mode=K;break}se=0,ue=0}n.head&&(n.head.hcrc=n.flags>>9&1,n.head.done=!0),e.adler=n.check=0,n.mode=I;break;case j:for(;ue<32;){if(0===ae)break e;ae--,se+=ee[ne++]<<ue,ue+=8}e.adler=n.check=re(se),se=0,ue=0,n.mode=L;case L:if(0===n.havedict)return e.next_out=ie,e.avail_out=oe,e.next_in=ne,e.avail_in=ae,n.hold=se,n.bits=ue,v;e.adler=n.check=1,n.mode=I;case I:if(t===h||t===p)break e;case B:if(n.last){se>>>=7&ue,ue-=7&ue,n.mode=Y;break}for(;ue<3;){if(0===ae)break e;ae--,se+=ee[ne++]<<ue,ue+=8}switch(n.last=1&se,ue-=1,3&(se>>>=1)){case 0:n.mode=D;break;case 1:if(fe(n),n.mode=U,t===p){se>>>=2,ue-=2;break e}break;case 2:n.mode=P;break;case 3:e.msg="invalid block type",n.mode=K}se>>>=2,ue-=2;break;case D:for(se>>>=7&ue,ue-=7&ue;ue<32;){if(0===ae)break e;ae--,se+=ee[ne++]<<ue,ue+=8}if((65535&se)!=(se>>>16^65535)){e.msg="invalid stored block lengths",n.mode=K;break}if(n.length=65535&se,se=0,ue=0,n.mode=N,t===p)break e;case N:n.mode=O;case O:if(pe=n.length){if(pe>ae&&(pe=ae),pe>oe&&(pe=oe),0===pe)break e;r.arraySet(te,ee,ne,pe,ie),ae-=pe,ne+=pe,oe-=pe,ie+=pe,n.length-=pe;break}n.mode=I;break;case P:for(;ue<14;){if(0===ae)break e;ae--,se+=ee[ne++]<<ue,ue+=8}if(n.nlen=257+(31&se),se>>>=5,ue-=5,n.ndist=1+(31&se),se>>>=5,ue-=5,n.ncode=4+(15&se),se>>>=4,ue-=4,n.nlen>286||n.ndist>30){e.msg="too many length or distance symbols",n.mode=K;break}n.have=0,n.mode=z;case z:for(;n.have<n.ncode;){for(;ue<3;){if(0===ae)break e;ae--,se+=ee[ne++]<<ue,ue+=8}n.lens[Ce[n.have++]]=7&se,se>>>=3,ue-=3}for(;n.have<19;)n.lens[Ce[n.have++]]=0;if(n.lencode=n.lendyn,n.lenbits=7,Ee={bits:n.lenbits},ke=s(u,n.lens,0,19,n.lencode,0,n.work,Ee),n.lenbits=Ee.bits,ke){e.msg="invalid code lengths set",n.mode=K;break}n.have=0,n.mode=F;case F:for(;n.have<n.nlen+n.ndist;){for(;me=(Ae=n.lencode[se&(1<<n.lenbits)-1])>>>16&255,we=65535&Ae,!((ve=Ae>>>24)<=ue);){if(0===ae)break e;ae--,se+=ee[ne++]<<ue,ue+=8}if(we<16)se>>>=ve,ue-=ve,n.lens[n.have++]=we;else{if(16===we){for(Te=ve+2;ue<Te;){if(0===ae)break e;ae--,se+=ee[ne++]<<ue,ue+=8}if(se>>>=ve,ue-=ve,0===n.have){e.msg="invalid bit length repeat",n.mode=K;break}xe=n.lens[n.have-1],pe=3+(3&se),se>>>=2,ue-=2}else if(17===we){for(Te=ve+3;ue<Te;){if(0===ae)break e;ae--,se+=ee[ne++]<<ue,ue+=8}ue-=ve,xe=0,pe=3+(7&(se>>>=ve)),se>>>=3,ue-=3}else{for(Te=ve+7;ue<Te;){if(0===ae)break e;ae--,se+=ee[ne++]<<ue,ue+=8}ue-=ve,xe=0,pe=11+(127&(se>>>=ve)),se>>>=7,ue-=7}if(n.have+pe>n.nlen+n.ndist){e.msg="invalid bit length repeat",n.mode=K;break}for(;pe--;)n.lens[n.have++]=xe}}if(n.mode===K)break;if(0===n.lens[256]){e.msg="invalid code -- missing end-of-block",n.mode=K;break}if(n.lenbits=9,Ee={bits:n.lenbits},ke=s(l,n.lens,0,n.nlen,n.lencode,0,n.work,Ee),n.lenbits=Ee.bits,ke){e.msg="invalid literal/lengths set",n.mode=K;break}if(n.distbits=6,n.distcode=n.distdyn,Ee={bits:n.distbits},ke=s(c,n.lens,n.nlen,n.ndist,n.distcode,0,n.work,Ee),n.distbits=Ee.bits,ke){e.msg="invalid distances set",n.mode=K;break}if(n.mode=U,t===p)break e;case U:n.mode=q;case q:if(ae>=6&&oe>=258){e.next_out=ie,e.avail_out=oe,e.next_in=ne,e.avail_in=ae,n.hold=se,n.bits=ue,o(e,ce),ie=e.next_out,te=e.output,oe=e.avail_out,ne=e.next_in,ee=e.input,ae=e.avail_in,se=n.hold,ue=n.bits,n.mode===I&&(n.back=-1);break}for(n.back=0;me=(Ae=n.lencode[se&(1<<n.lenbits)-1])>>>16&255,we=65535&Ae,!((ve=Ae>>>24)<=ue);){if(0===ae)break e;ae--,se+=ee[ne++]<<ue,ue+=8}if(me&&0==(240&me)){for(ye=ve,_e=me,be=we;me=(Ae=n.lencode[be+((se&(1<<ye+_e)-1)>>ye)])>>>16&255,we=65535&Ae,!(ye+(ve=Ae>>>24)<=ue);){if(0===ae)break e;ae--,se+=ee[ne++]<<ue,ue+=8}se>>>=ye,ue-=ye,n.back+=ye}if(se>>>=ve,ue-=ve,n.back+=ve,n.length=we,0===me){n.mode=G;break}if(32&me){n.back=-1,n.mode=I;break}if(64&me){e.msg="invalid literal/length code",n.mode=K;break}n.extra=15&me,n.mode=W;case W:if(n.extra){for(Te=n.extra;ue<Te;){if(0===ae)break e;ae--,se+=ee[ne++]<<ue,ue+=8}n.length+=se&(1<<n.extra)-1,se>>>=n.extra,ue-=n.extra,n.back+=n.extra}n.was=n.length,n.mode=H;case H:for(;me=(Ae=n.distcode[se&(1<<n.distbits)-1])>>>16&255,we=65535&Ae,!((ve=Ae>>>24)<=ue);){if(0===ae)break e;ae--,se+=ee[ne++]<<ue,ue+=8}if(0==(240&me)){for(ye=ve,_e=me,be=we;me=(Ae=n.distcode[be+((se&(1<<ye+_e)-1)>>ye)])>>>16&255,we=65535&Ae,!(ye+(ve=Ae>>>24)<=ue);){if(0===ae)break e;ae--,se+=ee[ne++]<<ue,ue+=8}se>>>=ye,ue-=ye,n.back+=ye}if(se>>>=ve,ue-=ve,n.back+=ve,64&me){e.msg="invalid distance code",n.mode=K;break}n.offset=we,n.extra=15&me,n.mode=V;case V:if(n.extra){for(Te=n.extra;ue<Te;){if(0===ae)break e;ae--,se+=ee[ne++]<<ue,ue+=8}n.offset+=se&(1<<n.extra)-1,se>>>=n.extra,ue-=n.extra,n.back+=n.extra}if(n.offset>n.dmax){e.msg="invalid distance too far back",n.mode=K;break}n.mode=Z;case Z:if(0===oe)break e;if(pe=ce-oe,n.offset>pe){if((pe=n.offset-pe)>n.whave&&n.sane){e.msg="invalid distance too far back",n.mode=K;break}pe>n.wnext?(pe-=n.wnext,de=n.wsize-pe):de=n.wnext-pe,pe>n.length&&(pe=n.length),ge=n.window}else ge=te,de=ie-n.offset,pe=n.length;pe>oe&&(pe=oe),oe-=pe,n.length-=pe;do{te[ie++]=ge[de++]}while(--pe);0===n.length&&(n.mode=q);break;case G:if(0===oe)break e;te[ie++]=n.length,oe--,n.mode=q;break;case Y:if(n.wrap){for(;ue<32;){if(0===ae)break e;ae--,se|=ee[ne++]<<ue,ue+=8}if(ce-=oe,e.total_out+=ce,n.total+=ce,ce&&(e.adler=n.check=n.flags?a(n.check,te,ce,ie-ce):i(n.check,te,ce,ie-ce)),ce=oe,(n.flags?se:re(se))!==n.check){e.msg="incorrect data check",n.mode=K;break}se=0,ue=0}n.mode=$;case $:if(n.wrap&&n.flags){for(;ue<32;){if(0===ae)break e;ae--,se+=ee[ne++]<<ue,ue+=8}if(se!==(4294967295&n.total)){e.msg="incorrect length check",n.mode=K;break}se=0,ue=0}n.mode=X;case X:ke=g;break e;case K:ke=w;break e;case J:return y;case Q:default:return m}return e.next_out=ie,e.avail_out=oe,e.next_in=ne,e.avail_in=ae,n.hold=se,n.bits=ue,(n.wsize||ce!==e.avail_out&&n.mode<K&&(n.mode<Y||t!==f))&&he(e,e.output,e.next_out,ce-e.avail_out)?(n.mode=J,y):(le-=e.avail_in,ce-=e.avail_out,e.total_in+=le,e.total_out+=ce,n.total+=ce,n.wrap&&ce&&(e.adler=n.check=n.flags?a(n.check,te,ce,e.next_out-ce):i(n.check,te,ce,e.next_out-ce)),e.data_type=n.bits+(n.last?64:0)+(n.mode===I?128:0)+(n.mode===U||n.mode===N?256:0),(0===le&&0===ce||t===f)&&ke===d&&(ke=_),ke)},n.inflateEnd=function(e){if(!e||!e.state)return m;var t=e.state;return t.window&&(t.window=null),e.state=null,d},n.inflateGetHeader=function(e,t){var n;return e&&e.state?0==(2&(n=e.state).wrap)?m:(n.head=t,t.done=!1,d):m},n.inflateSetDictionary=function(e,t){var n,r=t.length;return e&&e.state?0!==(n=e.state).wrap&&n.mode!==L?m:n.mode===L&&i(1,t,r,0)!==n.check?w:he(e,t,r,r)?(n.mode=J,y):(n.havedict=1,d):m},n.inflateInfo="pako inflate (from Nodeca project)"},{"../utils/common":71,"./adler32":72,"./crc32":74,"./inffast":76,"./inftrees":78}],78:[function(e,t,n){"use strict";var r=e("../utils/common"),i=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],a=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],o=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],s=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];t.exports=function(e,t,n,u,l,c,f,h){var p,d,g,v,m,w,y,_,b,x=h.bits,k=0,E=0,T=0,A=0,S=0,C=0,M=0,R=0,j=0,L=0,I=null,B=0,D=new r.Buf16(16),N=new r.Buf16(16),O=null,P=0;for(k=0;k<=15;k++)D[k]=0;for(E=0;E<u;E++)D[t[n+E]]++;for(S=x,A=15;A>=1&&0===D[A];A--);if(S>A&&(S=A),0===A)return l[c++]=20971520,l[c++]=20971520,h.bits=1,0;for(T=1;T<A&&0===D[T];T++);for(S<T&&(S=T),R=1,k=1;k<=15;k++)if(R<<=1,(R-=D[k])<0)return-1;if(R>0&&(0===e||1!==A))return-1;for(N[1]=0,k=1;k<15;k++)N[k+1]=N[k]+D[k];for(E=0;E<u;E++)0!==t[n+E]&&(f[N[t[n+E]]++]=E);if(0===e?(I=O=f,w=19):1===e?(I=i,B-=257,O=a,P-=257,w=256):(I=o,O=s,w=-1),L=0,E=0,k=T,m=c,C=S,M=0,g=-1,v=(j=1<<S)-1,1===e&&j>852||2===e&&j>592)return 1;for(;;){0,y=k-M,f[E]<w?(_=0,b=f[E]):f[E]>w?(_=O[P+f[E]],b=I[B+f[E]]):(_=96,b=0),p=1<<k-M,T=d=1<<C;do{l[m+(L>>M)+(d-=p)]=y<<24|_<<16|b|0}while(0!==d);for(p=1<<k-1;L&p;)p>>=1;if(0!==p?(L&=p-1,L+=p):L=0,E++,0==--D[k]){if(k===A)break;k=t[n+f[E]]}if(k>S&&(L&v)!==g){for(0===M&&(M=S),m+=T,R=1<<(C=k-M);C+M<A&&!((R-=D[C+M])<=0);)C++,R<<=1;if(j+=1<<C,1===e&&j>852||2===e&&j>592)return 1;l[g=L&v]=S<<24|C<<16|m-c|0}}return 0!==L&&(l[m+L]=k-M<<24|64<<16|0),h.bits=S,0}},{"../utils/common":71}],79:[function(e,t,n){"use strict";t.exports={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}},{}],80:[function(e,t,n){"use strict";var r=e("../utils/common"),i=4,a=0,o=1,s=2;function u(e){for(var t=e.length;--t>=0;)e[t]=0}var l=0,c=1,f=2,h=29,p=256,d=p+1+h,g=30,v=19,m=2*d+1,w=15,y=16,_=7,b=256,x=16,k=17,E=18,T=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],A=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],S=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],C=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],M=new Array(2*(d+2));u(M);var R=new Array(2*g);u(R);var j=new Array(512);u(j);var L=new Array(256);u(L);var I=new Array(h);u(I);var B,D,N,O=new Array(g);function P(e,t,n,r,i){this.static_tree=e,this.extra_bits=t,this.extra_base=n,this.elems=r,this.max_length=i,this.has_stree=e&&e.length}function z(e,t){this.dyn_tree=e,this.max_code=0,this.stat_desc=t}function F(e){return e<256?j[e]:j[256+(e>>>7)]}function U(e,t){e.pending_buf[e.pending++]=255&t,e.pending_buf[e.pending++]=t>>>8&255}function q(e,t,n){e.bi_valid>y-n?(e.bi_buf|=t<<e.bi_valid&65535,U(e,e.bi_buf),e.bi_buf=t>>y-e.bi_valid,e.bi_valid+=n-y):(e.bi_buf|=t<<e.bi_valid&65535,e.bi_valid+=n)}function W(e,t,n){q(e,n[2*t],n[2*t+1])}function H(e,t){var n=0;do{n|=1&e,e>>>=1,n<<=1}while(--t>0);return n>>>1}function V(e,t,n){var r,i,a=new Array(w+1),o=0;for(r=1;r<=w;r++)a[r]=o=o+n[r-1]<<1;for(i=0;i<=t;i++){var s=e[2*i+1];0!==s&&(e[2*i]=H(a[s]++,s))}}function Z(e){var t;for(t=0;t<d;t++)e.dyn_ltree[2*t]=0;for(t=0;t<g;t++)e.dyn_dtree[2*t]=0;for(t=0;t<v;t++)e.bl_tree[2*t]=0;e.dyn_ltree[2*b]=1,e.opt_len=e.static_len=0,e.last_lit=e.matches=0}function G(e){e.bi_valid>8?U(e,e.bi_buf):e.bi_valid>0&&(e.pending_buf[e.pending++]=e.bi_buf),e.bi_buf=0,e.bi_valid=0}function Y(e,t,n,r){var i=2*t,a=2*n;return e[i]<e[a]||e[i]===e[a]&&r[t]<=r[n]}function $(e,t,n){for(var r=e.heap[n],i=n<<1;i<=e.heap_len&&(i<e.heap_len&&Y(t,e.heap[i+1],e.heap[i],e.depth)&&i++,!Y(t,r,e.heap[i],e.depth));)e.heap[n]=e.heap[i],n=i,i<<=1;e.heap[n]=r}function X(e,t,n){var r,i,a,o,s=0;if(0!==e.last_lit)do{r=e.pending_buf[e.d_buf+2*s]<<8|e.pending_buf[e.d_buf+2*s+1],i=e.pending_buf[e.l_buf+s],s++,0===r?W(e,i,t):(W(e,(a=L[i])+p+1,t),0!==(o=T[a])&&q(e,i-=I[a],o),W(e,a=F(--r),n),0!==(o=A[a])&&q(e,r-=O[a],o))}while(s<e.last_lit);W(e,b,t)}function K(e,t){var n,r,i,a=t.dyn_tree,o=t.stat_desc.static_tree,s=t.stat_desc.has_stree,u=t.stat_desc.elems,l=-1;for(e.heap_len=0,e.heap_max=m,n=0;n<u;n++)0!==a[2*n]?(e.heap[++e.heap_len]=l=n,e.depth[n]=0):a[2*n+1]=0;for(;e.heap_len<2;)a[2*(i=e.heap[++e.heap_len]=l<2?++l:0)]=1,e.depth[i]=0,e.opt_len--,s&&(e.static_len-=o[2*i+1]);for(t.max_code=l,n=e.heap_len>>1;n>=1;n--)$(e,a,n);i=u;do{n=e.heap[1],e.heap[1]=e.heap[e.heap_len--],$(e,a,1),r=e.heap[1],e.heap[--e.heap_max]=n,e.heap[--e.heap_max]=r,a[2*i]=a[2*n]+a[2*r],e.depth[i]=(e.depth[n]>=e.depth[r]?e.depth[n]:e.depth[r])+1,a[2*n+1]=a[2*r+1]=i,e.heap[1]=i++,$(e,a,1)}while(e.heap_len>=2);e.heap[--e.heap_max]=e.heap[1],function(e,t){var n,r,i,a,o,s,u=t.dyn_tree,l=t.max_code,c=t.stat_desc.static_tree,f=t.stat_desc.has_stree,h=t.stat_desc.extra_bits,p=t.stat_desc.extra_base,d=t.stat_desc.max_length,g=0;for(a=0;a<=w;a++)e.bl_count[a]=0;for(u[2*e.heap[e.heap_max]+1]=0,n=e.heap_max+1;n<m;n++)(a=u[2*u[2*(r=e.heap[n])+1]+1]+1)>d&&(a=d,g++),u[2*r+1]=a,r>l||(e.bl_count[a]++,o=0,r>=p&&(o=h[r-p]),s=u[2*r],e.opt_len+=s*(a+o),f&&(e.static_len+=s*(c[2*r+1]+o)));if(0!==g){do{for(a=d-1;0===e.bl_count[a];)a--;e.bl_count[a]--,e.bl_count[a+1]+=2,e.bl_count[d]--,g-=2}while(g>0);for(a=d;0!==a;a--)for(r=e.bl_count[a];0!==r;)(i=e.heap[--n])>l||(u[2*i+1]!==a&&(e.opt_len+=(a-u[2*i+1])*u[2*i],u[2*i+1]=a),r--)}}(e,t),V(a,l,e.bl_count)}function J(e,t,n){var r,i,a=-1,o=t[1],s=0,u=7,l=4;for(0===o&&(u=138,l=3),t[2*(n+1)+1]=65535,r=0;r<=n;r++)i=o,o=t[2*(r+1)+1],++s<u&&i===o||(s<l?e.bl_tree[2*i]+=s:0!==i?(i!==a&&e.bl_tree[2*i]++,e.bl_tree[2*x]++):s<=10?e.bl_tree[2*k]++:e.bl_tree[2*E]++,s=0,a=i,0===o?(u=138,l=3):i===o?(u=6,l=3):(u=7,l=4))}function Q(e,t,n){var r,i,a=-1,o=t[1],s=0,u=7,l=4;for(0===o&&(u=138,l=3),r=0;r<=n;r++)if(i=o,o=t[2*(r+1)+1],!(++s<u&&i===o)){if(s<l)do{W(e,i,e.bl_tree)}while(0!=--s);else 0!==i?(i!==a&&(W(e,i,e.bl_tree),s--),W(e,x,e.bl_tree),q(e,s-3,2)):s<=10?(W(e,k,e.bl_tree),q(e,s-3,3)):(W(e,E,e.bl_tree),q(e,s-11,7));s=0,a=i,0===o?(u=138,l=3):i===o?(u=6,l=3):(u=7,l=4)}}u(O);var ee=!1;function te(e,t,n,i){q(e,(l<<1)+(i?1:0),3),function(e,t,n,i){G(e),i&&(U(e,n),U(e,~n)),r.arraySet(e.pending_buf,e.window,t,n,e.pending),e.pending+=n}(e,t,n,!0)}n._tr_init=function(e){ee||(function(){var e,t,n,r,i,a=new Array(w+1);for(n=0,r=0;r<h-1;r++)for(I[r]=n,e=0;e<1<<T[r];e++)L[n++]=r;for(L[n-1]=r,i=0,r=0;r<16;r++)for(O[r]=i,e=0;e<1<<A[r];e++)j[i++]=r;for(i>>=7;r<g;r++)for(O[r]=i<<7,e=0;e<1<<A[r]-7;e++)j[256+i++]=r;for(t=0;t<=w;t++)a[t]=0;for(e=0;e<=143;)M[2*e+1]=8,e++,a[8]++;for(;e<=255;)M[2*e+1]=9,e++,a[9]++;for(;e<=279;)M[2*e+1]=7,e++,a[7]++;for(;e<=287;)M[2*e+1]=8,e++,a[8]++;for(V(M,d+1,a),e=0;e<g;e++)R[2*e+1]=5,R[2*e]=H(e,5);B=new P(M,T,p+1,d,w),D=new P(R,A,0,g,w),N=new P(new Array(0),S,0,v,_)}(),ee=!0),e.l_desc=new z(e.dyn_ltree,B),e.d_desc=new z(e.dyn_dtree,D),e.bl_desc=new z(e.bl_tree,N),e.bi_buf=0,e.bi_valid=0,Z(e)},n._tr_stored_block=te,n._tr_flush_block=function(e,t,n,r){var u,l,h=0;e.level>0?(e.strm.data_type===s&&(e.strm.data_type=function(e){var t,n=4093624447;for(t=0;t<=31;t++,n>>>=1)if(1&n&&0!==e.dyn_ltree[2*t])return a;if(0!==e.dyn_ltree[18]||0!==e.dyn_ltree[20]||0!==e.dyn_ltree[26])return o;for(t=32;t<p;t++)if(0!==e.dyn_ltree[2*t])return o;return a}(e)),K(e,e.l_desc),K(e,e.d_desc),h=function(e){var t;for(J(e,e.dyn_ltree,e.l_desc.max_code),J(e,e.dyn_dtree,e.d_desc.max_code),K(e,e.bl_desc),t=v-1;t>=3&&0===e.bl_tree[2*C[t]+1];t--);return e.opt_len+=3*(t+1)+5+5+4,t}(e),u=e.opt_len+3+7>>>3,(l=e.static_len+3+7>>>3)<=u&&(u=l)):u=l=n+5,n+4<=u&&-1!==t?te(e,t,n,r):e.strategy===i||l===u?(q(e,(c<<1)+(r?1:0),3),X(e,M,R)):(q(e,(f<<1)+(r?1:0),3),function(e,t,n,r){var i;for(q(e,t-257,5),q(e,n-1,5),q(e,r-4,4),i=0;i<r;i++)q(e,e.bl_tree[2*C[i]+1],3);Q(e,e.dyn_ltree,t-1),Q(e,e.dyn_dtree,n-1)}(e,e.l_desc.max_code+1,e.d_desc.max_code+1,h+1),X(e,e.dyn_ltree,e.dyn_dtree)),Z(e),r&&G(e)},n._tr_tally=function(e,t,n){return e.pending_buf[e.d_buf+2*e.last_lit]=t>>>8&255,e.pending_buf[e.d_buf+2*e.last_lit+1]=255&t,e.pending_buf[e.l_buf+e.last_lit]=255&n,e.last_lit++,0===t?e.dyn_ltree[2*n]++:(e.matches++,t--,e.dyn_ltree[2*(L[n]+p+1)]++,e.dyn_dtree[2*F(t)]++),e.last_lit===e.lit_bufsize-1},n._tr_align=function(e){q(e,c<<1,3),W(e,b,M),function(e){16===e.bi_valid?(U(e,e.bi_buf),e.bi_buf=0,e.bi_valid=0):e.bi_valid>=8&&(e.pending_buf[e.pending++]=255&e.bi_buf,e.bi_buf>>=8,e.bi_valid-=8)}(e)}},{"../utils/common":71}],81:[function(e,t,n){"use strict";t.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}},{}],82:[function(e,t,n){(function(e){function t(e,t){for(var n=0,r=e.length-1;r>=0;r--){var i=e[r];"."===i?e.splice(r,1):".."===i?(e.splice(r,1),n++):n&&(e.splice(r,1),n--)}if(t)for(;n--;n)e.unshift("..");return e}var r=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/,i=function(e){return r.exec(e).slice(1)};function a(e,t){if(e.filter)return e.filter(t);for(var n=[],r=0;r<e.length;r++)t(e[r],r,e)&&n.push(e[r]);return n}n.resolve=function(){for(var n="",r=!1,i=arguments.length-1;i>=-1&&!r;i--){var o=i>=0?arguments[i]:e.cwd();if("string"!=typeof o)throw new TypeError("Arguments to path.resolve must be strings");o&&(n=o+"/"+n,r="/"===o.charAt(0))}return n=t(a(n.split("/"),function(e){return!!e}),!r).join("/"),(r?"/":"")+n||"."},n.normalize=function(e){var r=n.isAbsolute(e),i="/"===o(e,-1);return(e=t(a(e.split("/"),function(e){return!!e}),!r).join("/"))||r||(e="."),e&&i&&(e+="/"),(r?"/":"")+e},n.isAbsolute=function(e){return"/"===e.charAt(0)},n.join=function(){var e=Array.prototype.slice.call(arguments,0);return n.normalize(a(e,function(e,t){if("string"!=typeof e)throw new TypeError("Arguments to path.join must be strings");return e}).join("/"))},n.relative=function(e,t){function r(e){for(var t=0;t<e.length&&""===e[t];t++);for(var n=e.length-1;n>=0&&""===e[n];n--);return t>n?[]:e.slice(t,n-t+1)}e=n.resolve(e).substr(1),t=n.resolve(t).substr(1);for(var i=r(e.split("/")),a=r(t.split("/")),o=Math.min(i.length,a.length),s=o,u=0;u<o;u++)if(i[u]!==a[u]){s=u;break}var l=[];for(u=s;u<i.length;u++)l.push("..");return(l=l.concat(a.slice(s))).join("/")},n.sep="/",n.delimiter=":",n.dirname=function(e){var t=i(e),n=t[0],r=t[1];return n||r?(r&&(r=r.substr(0,r.length-1)),n+r):"."},n.basename=function(e,t){var n=i(e)[2];return t&&n.substr(-1*t.length)===t&&(n=n.substr(0,n.length-t.length)),n},n.extname=function(e){return i(e)[3]};var o="b"==="ab".substr(-1)?function(e,t,n){return e.substr(t,n)}:function(e,t,n){return t<0&&(t=e.length+t),e.substr(t,n)}}).call(this,e("_process"))},{_process:105}],83:[function(e,t,n){(function(t){"use strict";var r=e("./interlace"),i={1:{0:0,1:0,2:0,3:255},2:{0:0,1:0,2:0,3:1},3:{0:0,1:1,2:2,3:255},4:{0:0,1:1,2:2,3:3}};function a(e,t,n,r,a,o){for(var s=e.width,u=e.height,l=e.index,c=0;c<u;c++)for(var f=0;f<s;f++){for(var h=n(f,c,l),p=0;p<4;p++){var d=i[r][p];if(p===a.length)throw new Error("Ran out of data");t[h+p]=255!==d?a[d+o]:255}o+=r}return o}function o(e,t,n,r,a,o){for(var s=e.width,u=e.height,l=e.index,c=0;c<u;c++){for(var f=0;f<s;f++)for(var h=a.get(r),p=n(f,c,l),d=0;d<4;d++){var g=i[r][d];t[p+d]=255!==g?h[g]:o}a.resetAfterLine()}}n.dataToBitMap=function(e,n){var i,s=n.width,u=n.height,l=n.depth,c=n.bpp,f=n.interlace;if(8!==l)var h=function(e,t){var n=[],r=0;function i(){if(r===e.length)throw new Error("Ran out of data");var i,a,o,s,u,l,c,f,h=e[r];switch(r++,t){default:throw new Error("unrecognised depth");case 16:c=e[r],r++,n.push((h<<8)+c);break;case 4:c=15&h,f=h>>4,n.push(f,c);break;case 2:u=3&h,l=h>>2&3,c=h>>4&3,f=h>>6&3,n.push(f,c,l,u);break;case 1:i=1&h,a=h>>1&1,o=h>>2&1,s=h>>3&1,u=h>>4&1,l=h>>5&1,c=h>>6&1,f=h>>7&1,n.push(f,c,l,u,s,o,a,i)}}return{get:function(e){for(;n.length<e;)i();var t=n.slice(0,e);return n=n.slice(e),t},resetAfterLine:function(){n.length=0},end:function(){if(r!==e.length)throw new Error("extra data found")}}}(e,l);i=l<=8?new t(s*u*4):new Uint16Array(s*u*4);var p,d,g=Math.pow(2,l)-1,v=0;if(f)p=r.getImagePasses(s,u),d=r.getInterlaceIterator(s,u);else{var m=0;d=function(){var e=m;return m+=4,e},p=[{width:s,height:u}]}for(var w=0;w<p.length;w++)8===l?v=a(p[w],i,d,c,e,v):o(p[w],i,d,c,h,g);if(8===l){if(v!==e.length)throw new Error("extra data found")}else h.end();return i}}).call(this,e("buffer").Buffer)},{"./interlace":93,buffer:8}],84:[function(e,t,n){(function(n){"use strict";var r=e("./constants");t.exports=function(e,t,i,a){var o=a.colorType===r.COLORTYPE_COLOR_ALPHA;if(a.inputHasAlpha&&o)return e;if(!a.inputHasAlpha&&!o)return e;var s=o?4:3,u=new n(t*i*s),l=a.inputHasAlpha?4:3,c=0,f=0,h=a.bgColor||{};void 0===h.red&&(h.red=255),void 0===h.green&&(h.green=255),void 0===h.blue&&(h.blue=255);for(var p=0;p<i;p++)for(var d=0;d<t;d++){var g,v=e[c],m=e[c+1],w=e[c+2];a.inputHasAlpha?(g=e[c+3],o||(g/=255,v=Math.min(Math.max(Math.round((1-g)*h.red+g*v),0),255),m=Math.min(Math.max(Math.round((1-g)*h.green+g*m),0),255),w=Math.min(Math.max(Math.round((1-g)*h.blue+g*w),0),255))):g=255,u[f]=v,u[f+1]=m,u[f+2]=w,o&&(u[f+3]=g),c+=l,f+=s}return u}}).call(this,e("buffer").Buffer)},{"./constants":86,buffer:8}],85:[function(e,t,n){(function(n,r){"use strict";var i=e("util"),a=e("stream"),o=t.exports=function(){a.call(this),this._buffers=[],this._buffered=0,this._reads=[],this._paused=!1,this._encoding="utf8",this.writable=!0};i.inherits(o,a),o.prototype.read=function(e,t){this._reads.push({length:Math.abs(e),allowLess:e<0,func:t}),n.nextTick(function(){this._process(),this._paused&&this._reads.length>0&&(this._paused=!1,this.emit("drain"))}.bind(this))},o.prototype.write=function(e,t){return this.writable?(n=r.isBuffer(e)?e:new r(e,t||this._encoding),this._buffers.push(n),this._buffered+=n.length,this._process(),this._reads&&0===this._reads.length&&(this._paused=!0),this.writable&&!this._paused):(this.emit("error",new Error("Stream not writable")),!1);var n},o.prototype.end=function(e,t){e&&this.write(e,t),this.writable=!1,this._buffers&&(0===this._buffers.length?this._end():(this._buffers.push(null),this._process()))},o.prototype.destroySoon=o.prototype.end,o.prototype._end=function(){this._reads.length>0&&this.emit("error",new Error("There are some read requests waitng on finished stream")),this.destroy()},o.prototype.destroy=function(){this._buffers&&(this.writable=!1,this._reads=null,this._buffers=null,this.emit("close"))},o.prototype._processReadAllowingLess=function(e){this._reads.shift();var t=this._buffers[0];t.length>e.length?(this._buffered-=e.length,this._buffers[0]=t.slice(e.length),e.func.call(this,t.slice(0,e.length))):(this._buffered-=t.length,this._buffers.shift(),e.func.call(this,t))},o.prototype._processRead=function(e){this._reads.shift();for(var t=0,n=0,i=new r(e.length);t<e.length;){var a=this._buffers[n++],o=Math.min(a.length,e.length-t);a.copy(i,t,0,o),t+=o,o!==a.length&&(this._buffers[--n]=a.slice(o))}n>0&&this._buffers.splice(0,n),this._buffered-=e.length,e.func.call(this,i)},o.prototype._process=function(){try{for(;this._buffered>0&&this._reads&&this._reads.length>0;){var e=this._reads[0];if(e.allowLess)this._processReadAllowingLess(e);else{if(!(this._buffered>=e.length))break;this._processRead(e)}}this._buffers&&this._buffers.length>0&&null===this._buffers[0]&&this._end()}catch(e){this.emit("error",e)}}}).call(this,e("_process"),e("buffer").Buffer)},{_process:105,buffer:8,stream:122,util:132}],86:[function(e,t,n){"use strict";t.exports={PNG_SIGNATURE:[137,80,78,71,13,10,26,10],TYPE_IHDR:1229472850,TYPE_IEND:1229278788,TYPE_IDAT:1229209940,TYPE_PLTE:1347179589,TYPE_tRNS:1951551059,TYPE_gAMA:1732332865,COLORTYPE_GRAYSCALE:0,COLORTYPE_PALETTE:1,COLORTYPE_COLOR:2,COLORTYPE_ALPHA:4,COLORTYPE_PALETTE_COLOR:3,COLORTYPE_COLOR_ALPHA:6,COLORTYPE_TO_BPP_MAP:{0:1,2:3,3:1,4:2,6:4},GAMMA_DIVISION:1e5}},{}],87:[function(e,t,n){"use strict";var r=[];!function(){for(var e=0;e<256;e++){for(var t=e,n=0;n<8;n++)1&t?t=3988292384^t>>>1:t>>>=1;r[e]=t}}();var i=t.exports=function(){this._crc=-1};i.prototype.write=function(e){for(var t=0;t<e.length;t++)this._crc=r[255&(this._crc^e[t])]^this._crc>>>8;return!0},i.prototype.crc32=function(){return-1^this._crc},i.crc32=function(e){for(var t=-1,n=0;n<e.length;n++)t=r[255&(t^e[n])]^t>>>8;return-1^t}},{}],88:[function(e,t,n){(function(n){"use strict";var r=e("./paeth-predictor");var i={0:function(e,t,n,r,i){e.copy(r,i,t,t+n)},1:function(e,t,n,r,i,a){for(var o=0;o<n;o++){var s=o>=a?e[t+o-a]:0,u=e[t+o]-s;r[i+o]=u}},2:function(e,t,n,r,i){for(var a=0;a<n;a++){var o=t>0?e[t+a-n]:0,s=e[t+a]-o;r[i+a]=s}},3:function(e,t,n,r,i,a){for(var o=0;o<n;o++){var s=o>=a?e[t+o-a]:0,u=t>0?e[t+o-n]:0,l=e[t+o]-(s+u>>1);r[i+o]=l}},4:function(e,t,n,i,a,o){for(var s=0;s<n;s++){var u=s>=o?e[t+s-o]:0,l=t>0?e[t+s-n]:0,c=t>0&&s>=o?e[t+s-(n+o)]:0,f=e[t+s]-r(u,l,c);i[a+s]=f}}},a={0:function(e,t,n){for(var r=0,i=t+n,a=t;a<i;a++)r+=Math.abs(e[a]);return r},1:function(e,t,n,r){for(var i=0,a=0;a<n;a++){var o=a>=r?e[t+a-r]:0,s=e[t+a]-o;i+=Math.abs(s)}return i},2:function(e,t,n){for(var r=0,i=t+n,a=t;a<i;a++){var o=t>0?e[a-n]:0,s=e[a]-o;r+=Math.abs(s)}return r},3:function(e,t,n,r){for(var i=0,a=0;a<n;a++){var o=a>=r?e[t+a-r]:0,s=t>0?e[t+a-n]:0,u=e[t+a]-(o+s>>1);i+=Math.abs(u)}return i},4:function(e,t,n,i){for(var a=0,o=0;o<n;o++){var s=o>=i?e[t+o-i]:0,u=t>0?e[t+o-n]:0,l=t>0&&o>=i?e[t+o-(n+i)]:0,c=e[t+o]-r(s,u,l);a+=Math.abs(c)}return a}};t.exports=function(e,t,r,o,s){var u;if("filterType"in o&&-1!==o.filterType){if("number"!=typeof o.filterType)throw new Error("unrecognised filter types");u=[o.filterType]}else u=[0,1,2,3,4];for(var l=t*s,c=0,f=0,h=new n((l+1)*r),p=u[0],d=0;d<r;d++){if(u.length>1)for(var g=1/0,v=0;v<u.length;v++){var m=a[u[v]](e,f,l,s);m<g&&(p=u[v],g=m)}h[c]=p,c++,i[p](e,f,l,h,c,s),c+=l,f+=l}return h}}).call(this,e("buffer").Buffer)},{"./paeth-predictor":97,buffer:8}],89:[function(e,t,n){(function(n){"use strict";var r=e("util"),i=e("./chunkstream"),a=e("./filter-parse"),o=t.exports=function(e){i.call(this);var t=[],r=this;this._filter=new a(e,{read:this.read.bind(this),write:function(e){t.push(e)},complete:function(){r.emit("complete",n.concat(t))}}),this._filter.start()};r.inherits(o,i)}).call(this,e("buffer").Buffer)},{"./chunkstream":85,"./filter-parse":91,buffer:8,util:132}],90:[function(e,t,n){(function(t){"use strict";var r=e("./sync-reader"),i=e("./filter-parse");n.process=function(e,n){var a=[],o=new r(e);return new i(n,{read:o.read.bind(o),write:function(e){a.push(e)},complete:function(){}}).start(),o.process(),t.concat(a)}}).call(this,e("buffer").Buffer)},{"./filter-parse":91,"./sync-reader":103,buffer:8}],91:[function(e,t,n){(function(n){"use strict";var r=e("./interlace"),i=e("./paeth-predictor");function a(e,t,n){var r=e*t;return 8!==n&&(r=Math.ceil(r/(8/n))),r}var o=t.exports=function(e,t){var n=e.width,i=e.height,o=e.interlace,s=e.bpp,u=e.depth;if(this.read=t.read,this.write=t.write,this.complete=t.complete,this._imageIndex=0,this._images=[],o)for(var l=r.getImagePasses(n,i),c=0;c<l.length;c++)this._images.push({byteWidth:a(l[c].width,s,u),height:l[c].height,lineIndex:0});else this._images.push({byteWidth:a(n,s,u),height:i,lineIndex:0});this._xComparison=8===u?s:16===u?2*s:1};o.prototype.start=function(){this.read(this._images[this._imageIndex].byteWidth+1,this._reverseFilterLine.bind(this))},o.prototype._unFilterType1=function(e,t,n){for(var r=this._xComparison,i=r-1,a=0;a<n;a++){var o=e[1+a],s=a>i?t[a-r]:0;t[a]=o+s}},o.prototype._unFilterType2=function(e,t,n){for(var r=this._lastLine,i=0;i<n;i++){var a=e[1+i],o=r?r[i]:0;t[i]=a+o}},o.prototype._unFilterType3=function(e,t,n){for(var r=this._xComparison,i=r-1,a=this._lastLine,o=0;o<n;o++){var s=e[1+o],u=a?a[o]:0,l=o>i?t[o-r]:0,c=Math.floor((l+u)/2);t[o]=s+c}},o.prototype._unFilterType4=function(e,t,n){for(var r=this._xComparison,a=r-1,o=this._lastLine,s=0;s<n;s++){var u=e[1+s],l=o?o[s]:0,c=s>a?t[s-r]:0,f=s>a&&o?o[s-r]:0,h=i(c,l,f);t[s]=u+h}},o.prototype._reverseFilterLine=function(e){var t,r=e[0],i=this._images[this._imageIndex],a=i.byteWidth;if(0===r)t=e.slice(1,a+1);else switch(t=new n(a),r){case 1:this._unFilterType1(e,t,a);break;case 2:this._unFilterType2(e,t,a);break;case 3:this._unFilterType3(e,t,a);break;case 4:this._unFilterType4(e,t,a);break;default:throw new Error("Unrecognised filter type - "+r)}this.write(t),i.lineIndex++,i.lineIndex>=i.height?(this._lastLine=null,this._imageIndex++,i=this._images[this._imageIndex]):this._lastLine=t,i?this.read(i.byteWidth+1,this._reverseFilterLine.bind(this)):(this._lastLine=null,this.complete())}}).call(this,e("buffer").Buffer)},{"./interlace":93,"./paeth-predictor":97,buffer:8}],92:[function(e,t,n){(function(e){"use strict";t.exports=function(t,n){var r=n.depth,i=n.width,a=n.height,o=n.colorType,s=n.transColor,u=n.palette,l=t;return 3===o?function(e,t,n,r,i){for(var a=0,o=0;o<r;o++)for(var s=0;s<n;s++){var u=i[e[a]];if(!u)throw new Error("index "+e[a]+" not in palette");for(var l=0;l<4;l++)t[a+l]=u[l];a+=4}}(t,l,i,a,u):(s&&function(e,t,n,r,i){for(var a=0,o=0;o<r;o++)for(var s=0;s<n;s++){var u=!1;if(1===i.length?i[0]===e[a]&&(u=!0):i[0]===e[a]&&i[1]===e[a+1]&&i[2]===e[a+2]&&(u=!0),u)for(var l=0;l<4;l++)t[a+l]=0;a+=4}}(t,l,i,a,s),8!==r&&(16===r&&(l=new e(i*a*4)),function(e,t,n,r,i){for(var a=Math.pow(2,i)-1,o=0,s=0;s<r;s++)for(var u=0;u<n;u++){for(var l=0;l<4;l++)t[o+l]=Math.floor(255*e[o+l]/a+.5);o+=4}}(t,l,i,a,r))),l}}).call(this,e("buffer").Buffer)},{buffer:8}],93:[function(e,t,n){"use strict";var r=[{x:[0],y:[0]},{x:[4],y:[0]},{x:[0,4],y:[4]},{x:[2,6],y:[0,4]},{x:[0,2,4,6],y:[2,6]},{x:[1,3,5,7],y:[0,2,4,6]},{x:[0,1,2,3,4,5,6,7],y:[1,3,5,7]}];n.getImagePasses=function(e,t){for(var n=[],i=e%8,a=t%8,o=(e-i)/8,s=(t-a)/8,u=0;u<r.length;u++){for(var l=r[u],c=o*l.x.length,f=s*l.y.length,h=0;h<l.x.length&&l.x[h]<i;h++)c++;for(h=0;h<l.y.length&&l.y[h]<a;h++)f++;c>0&&f>0&&n.push({width:c,height:f,index:u})}return n},n.getInterlaceIterator=function(e){return function(t,n,i){var a=t%r[i].x.length,o=(t-a)/r[i].x.length*8+r[i].x[a],s=n%r[i].y.length;return 4*o+((n-s)/r[i].y.length*8+r[i].y[s])*e*4}}},{}],94:[function(e,t,n){(function(n){"use strict";var r=e("util"),i=e("stream"),a=e("./constants"),o=e("./packer"),s=t.exports=function(e){i.call(this);var t=e||{};this._packer=new o(t),this._deflate=this._packer.createDeflate(),this.readable=!0};r.inherits(s,i),s.prototype.pack=function(e,t,r,i){this.emit("data",new n(a.PNG_SIGNATURE)),this.emit("data",this._packer.packIHDR(t,r)),i&&this.emit("data",this._packer.packGAMA(i));var o=this._packer.filterData(e,t,r);this._deflate.on("error",this.emit.bind(this,"error")),this._deflate.on("data",function(e){this.emit("data",this._packer.packIDAT(e))}.bind(this)),this._deflate.on("end",function(){this.emit("data",this._packer.packIEND()),this.emit("end")}.bind(this)),this._deflate.end(o)}}).call(this,e("buffer").Buffer)},{"./constants":86,"./packer":96,buffer:8,stream:122,util:132}],95:[function(e,t,n){(function(n){"use strict";var r=!0,i=e("zlib");i.deflateSync||(r=!1);var a=e("./constants"),o=e("./packer");t.exports=function(e,t){if(!r)throw new Error("To use the sync capability of this library in old node versions, please also add a dependency on node-zlb-backport");var s=new o(t||{}),u=[];u.push(new n(a.PNG_SIGNATURE)),u.push(s.packIHDR(e.width,e.height)),e.gamma&&u.push(s.packGAMA(e.gamma));var l=s.filterData(e.data,e.width,e.height),c=i.deflateSync(l,s.getDeflateOptions());if(l=null,!c||!c.length)throw new Error("bad png - invalid compressed data response");return u.push(s.packIDAT(c)),u.push(s.packIEND()),n.concat(u)}}).call(this,e("buffer").Buffer)},{"./constants":86,"./packer":96,buffer:8,zlib:6}],96:[function(e,t,n){(function(n){"use strict";var r=e("./constants"),i=e("./crc"),a=e("./bitpacker"),o=e("./filter-pack"),s=e("zlib"),u=t.exports=function(e){if(this._options=e,e.deflateChunkSize=e.deflateChunkSize||32768,e.deflateLevel=null!=e.deflateLevel?e.deflateLevel:9,e.deflateStrategy=null!=e.deflateStrategy?e.deflateStrategy:3,e.inputHasAlpha=null==e.inputHasAlpha||e.inputHasAlpha,e.deflateFactory=e.deflateFactory||s.createDeflate,e.bitDepth=e.bitDepth||8,e.colorType="number"==typeof e.colorType?e.colorType:r.COLORTYPE_COLOR_ALPHA,e.colorType!==r.COLORTYPE_COLOR&&e.colorType!==r.COLORTYPE_COLOR_ALPHA)throw new Error("option color type:"+e.colorType+" is not supported at present");if(8!==e.bitDepth)throw new Error("option bit depth:"+e.bitDepth+" is not supported at present")};u.prototype.getDeflateOptions=function(){return{chunkSize:this._options.deflateChunkSize,level:this._options.deflateLevel,strategy:this._options.deflateStrategy}},u.prototype.createDeflate=function(){return this._options.deflateFactory(this.getDeflateOptions())},u.prototype.filterData=function(e,t,n){var i=a(e,t,n,this._options),s=r.COLORTYPE_TO_BPP_MAP[this._options.colorType];return o(i,t,n,this._options,s)},u.prototype._packChunk=function(e,t){var r=t?t.length:0,a=new n(r+12);return a.writeUInt32BE(r,0),a.writeUInt32BE(e,4),t&&t.copy(a,8),a.writeInt32BE(i.crc32(a.slice(4,a.length-4)),a.length-4),a},u.prototype.packGAMA=function(e){var t=new n(4);return t.writeUInt32BE(Math.floor(e*r.GAMMA_DIVISION),0),this._packChunk(r.TYPE_gAMA,t)},u.prototype.packIHDR=function(e,t){var i=new n(13);return i.writeUInt32BE(e,0),i.writeUInt32BE(t,4),i[8]=this._options.bitDepth,i[9]=this._options.colorType,i[10]=0,i[11]=0,i[12]=0,this._packChunk(r.TYPE_IHDR,i)},u.prototype.packIDAT=function(e){return this._packChunk(r.TYPE_IDAT,e)},u.prototype.packIEND=function(){return this._packChunk(r.TYPE_IEND,null)}}).call(this,e("buffer").Buffer)},{"./bitpacker":84,"./constants":86,"./crc":87,"./filter-pack":88,buffer:8,zlib:6}],97:[function(e,t,n){"use strict";t.exports=function(e,t,n){var r=e+t-n,i=Math.abs(r-e),a=Math.abs(r-t),o=Math.abs(r-n);return i<=a&&i<=o?e:a<=o?t:n}},{}],98:[function(e,t,n){"use strict";var r=e("util"),i=e("zlib"),a=e("./chunkstream"),o=e("./filter-parse-async"),s=e("./parser"),u=e("./bitmapper"),l=e("./format-normaliser"),c=t.exports=function(e){a.call(this),this._parser=new s(e,{read:this.read.bind(this),error:this._handleError.bind(this),metadata:this._handleMetaData.bind(this),gamma:this.emit.bind(this,"gamma"),palette:this._handlePalette.bind(this),transColor:this._handleTransColor.bind(this),finished:this._finished.bind(this),inflateData:this._inflateData.bind(this)}),this._options=e,this.writable=!0,this._parser.start()};r.inherits(c,a),c.prototype._handleError=function(e){this.emit("error",e),this.writable=!1,this.destroy(),this._inflate&&this._inflate.destroy&&this._inflate.destroy(),this.errord=!0},c.prototype._inflateData=function(e){this._inflate||(this._inflate=i.createInflate(),this._inflate.on("error",this.emit.bind(this,"error")),this._filter.on("complete",this._complete.bind(this)),this._inflate.pipe(this._filter)),this._inflate.write(e)},c.prototype._handleMetaData=function(e){this.emit("metadata",e),this._bitmapInfo=Object.create(e),this._filter=new o(this._bitmapInfo)},c.prototype._handleTransColor=function(e){this._bitmapInfo.transColor=e},c.prototype._handlePalette=function(e){this._bitmapInfo.palette=e},c.prototype._finished=function(){this.errord||(this._inflate?this._inflate.end():this.emit("error","No Inflate block"),this.destroySoon())},c.prototype._complete=function(e){if(!this.errord){try{var t=u.dataToBitMap(e,this._bitmapInfo),n=l(t,this._bitmapInfo);t=null}catch(e){return void this._handleError(e)}this.emit("parsed",n)}}},{"./bitmapper":83,"./chunkstream":85,"./filter-parse-async":89,"./format-normaliser":92,"./parser":100,util:132,zlib:6}],99:[function(e,t,n){(function(n){"use strict";var r=!0,i=e("zlib");i.deflateSync||(r=!1);var a=e("./sync-reader"),o=e("./filter-parse-sync"),s=e("./parser"),u=e("./bitmapper"),l=e("./format-normaliser");t.exports=function(e,t){if(!r)throw new Error("To use the sync capability of this library in old node versions, please also add a dependency on node-zlb-backport");var c,f,h;var p=[];var d=new a(e);if(new s(t,{read:d.read.bind(d),error:function(e){c=e},metadata:function(e){f=e},gamma:function(e){h=e},palette:function(e){f.palette=e},transColor:function(e){f.transColor=e},inflateData:function(e){p.push(e)}}).start(),d.process(),c)throw c;var g=n.concat(p);p.length=0;var v=i.inflateSync(g);if(g=null,!v||!v.length)throw new Error("bad png - invalid inflate data response");var m=o.process(v,f);g=null;var w=u.dataToBitMap(m,f);m=null;var y=l(w,f);return f.data=y,f.gamma=h||0,f}}).call(this,e("buffer").Buffer)},{"./bitmapper":83,"./filter-parse-sync":90,"./format-normaliser":92,"./parser":100,"./sync-reader":103,buffer:8,zlib:6}],100:[function(e,t,n){(function(n){"use strict";var r=e("./constants"),i=e("./crc"),a=t.exports=function(e,t){this._options=e,e.checkCRC=!1!==e.checkCRC,this._hasIHDR=!1,this._hasIEND=!1,this._palette=[],this._colorType=0,this._chunks={},this._chunks[r.TYPE_IHDR]=this._handleIHDR.bind(this),this._chunks[r.TYPE_IEND]=this._handleIEND.bind(this),this._chunks[r.TYPE_IDAT]=this._handleIDAT.bind(this),this._chunks[r.TYPE_PLTE]=this._handlePLTE.bind(this),this._chunks[r.TYPE_tRNS]=this._handleTRNS.bind(this),this._chunks[r.TYPE_gAMA]=this._handleGAMA.bind(this),this.read=t.read,this.error=t.error,this.metadata=t.metadata,this.gamma=t.gamma,this.transColor=t.transColor,this.palette=t.palette,this.parsed=t.parsed,this.inflateData=t.inflateData,this.inflateData=t.inflateData,this.finished=t.finished};a.prototype.start=function(){this.read(r.PNG_SIGNATURE.length,this._parseSignature.bind(this))},a.prototype._parseSignature=function(e){for(var t=r.PNG_SIGNATURE,n=0;n<t.length;n++)if(e[n]!==t[n])return void this.error(new Error("Invalid file signature"));this.read(8,this._parseChunkBegin.bind(this))},a.prototype._parseChunkBegin=function(e){for(var t=e.readUInt32BE(0),a=e.readUInt32BE(4),o="",s=4;s<8;s++)o+=String.fromCharCode(e[s]);var u=Boolean(32&e[4]);if(this._hasIHDR||a===r.TYPE_IHDR){if(this._crc=new i,this._crc.write(new n(o)),this._chunks[a])return this._chunks[a](t);u?this.read(t+4,this._skipChunk.bind(this)):this.error(new Error("Unsupported critical chunk type "+o))}else this.error(new Error("Expected IHDR on beggining"))},a.prototype._skipChunk=function(){this.read(8,this._parseChunkBegin.bind(this))},a.prototype._handleChunkEnd=function(){this.read(4,this._parseChunkEnd.bind(this))},a.prototype._parseChunkEnd=function(e){var t=e.readInt32BE(0),n=this._crc.crc32();this._options.checkCRC&&n!==t?this.error(new Error("Crc error - "+t+" - "+n)):this._hasIEND||this.read(8,this._parseChunkBegin.bind(this))},a.prototype._handleIHDR=function(e){this.read(e,this._parseIHDR.bind(this))},a.prototype._parseIHDR=function(e){this._crc.write(e);var t=e.readUInt32BE(0),n=e.readUInt32BE(4),i=e[8],a=e[9],o=e[10],s=e[11],u=e[12];if(8===i||4===i||2===i||1===i||16===i)if(a in r.COLORTYPE_TO_BPP_MAP)if(0===o)if(0===s)if(0===u||1===u){this._colorType=a;var l=r.COLORTYPE_TO_BPP_MAP[this._colorType];this._hasIHDR=!0,this.metadata({width:t,height:n,depth:i,interlace:Boolean(u),palette:Boolean(a&r.COLORTYPE_PALETTE),color:Boolean(a&r.COLORTYPE_COLOR),alpha:Boolean(a&r.COLORTYPE_ALPHA),bpp:l,colorType:a}),this._handleChunkEnd()}else this.error(new Error("Unsupported interlace method"));else this.error(new Error("Unsupported filter method"));else this.error(new Error("Unsupported compression method"));else this.error(new Error("Unsupported color type"));else this.error(new Error("Unsupported bit depth "+i))},a.prototype._handlePLTE=function(e){this.read(e,this._parsePLTE.bind(this))},a.prototype._parsePLTE=function(e){this._crc.write(e);for(var t=Math.floor(e.length/3),n=0;n<t;n++)this._palette.push([e[3*n],e[3*n+1],e[3*n+2],255]);this.palette(this._palette),this._handleChunkEnd()},a.prototype._handleTRNS=function(e){this.read(e,this._parseTRNS.bind(this))},a.prototype._parseTRNS=function(e){if(this._crc.write(e),this._colorType===r.COLORTYPE_PALETTE_COLOR){if(0===this._palette.length)return void this.error(new Error("Transparency chunk must be after palette"));if(e.length>this._palette.length)return void this.error(new Error("More transparent colors than palette size"));for(var t=0;t<e.length;t++)this._palette[t][3]=e[t];this.palette(this._palette)}this._colorType===r.COLORTYPE_GRAYSCALE&&this.transColor([e.readUInt16BE(0)]),this._colorType===r.COLORTYPE_COLOR&&this.transColor([e.readUInt16BE(0),e.readUInt16BE(2),e.readUInt16BE(4)]),this._handleChunkEnd()},a.prototype._handleGAMA=function(e){this.read(e,this._parseGAMA.bind(this))},a.prototype._parseGAMA=function(e){this._crc.write(e),this.gamma(e.readUInt32BE(0)/r.GAMMA_DIVISION),this._handleChunkEnd()},a.prototype._handleIDAT=function(e){this.read(-e,this._parseIDAT.bind(this,e))},a.prototype._parseIDAT=function(e,t){if(this._crc.write(t),this._colorType===r.COLORTYPE_PALETTE_COLOR&&0===this._palette.length)throw new Error("Expected palette not found");this.inflateData(t);var n=e-t.length;n>0?this._handleIDAT(n):this._handleChunkEnd()},a.prototype._handleIEND=function(e){this.read(e,this._parseIEND.bind(this))},a.prototype._parseIEND=function(e){this._crc.write(e),this._hasIEND=!0,this._handleChunkEnd(),this.finished&&this.finished()}}).call(this,e("buffer").Buffer)},{"./constants":86,"./crc":87,buffer:8}],101:[function(e,t,n){"use strict";var r=e("./parser-sync"),i=e("./packer-sync");n.read=function(e,t){return r(e,t||{})},n.write=function(e){return i(e)}},{"./packer-sync":95,"./parser-sync":99}],102:[function(e,t,n){(function(t,r){"use strict";var i=e("util"),a=e("stream"),o=e("./parser-async"),s=e("./packer-async"),u=e("./png-sync"),l=n.PNG=function(e){a.call(this),e=e||{},this.width=e.width||0,this.height=e.height||0,this.data=this.width>0&&this.height>0?new r(4*this.width*this.height):null,e.fill&&this.data&&this.data.fill(0),this.gamma=0,this.readable=this.writable=!0,this._parser=new o(e),this._parser.on("error",this.emit.bind(this,"error")),this._parser.on("close",this._handleClose.bind(this)),this._parser.on("metadata",this._metadata.bind(this)),this._parser.on("gamma",this._gamma.bind(this)),this._parser.on("parsed",function(e){this.data=e,this.emit("parsed",e)}.bind(this)),this._packer=new s(e),this._packer.on("data",this.emit.bind(this,"data")),this._packer.on("end",this.emit.bind(this,"end")),this._parser.on("close",this._handleClose.bind(this)),this._packer.on("error",this.emit.bind(this,"error"))};i.inherits(l,a),l.sync=u,l.prototype.pack=function(){return this.data&&this.data.length?(t.nextTick(function(){this._packer.pack(this.data,this.width,this.height,this.gamma)}.bind(this)),this):(this.emit("error","No data provided"),this)},l.prototype.parse=function(e,t){var n,r;t&&(n=function(e){this.removeListener("error",r),this.data=e,t(null,this)}.bind(this),r=function(e){this.removeListener("parsed",n),t(e,null)}.bind(this),this.once("parsed",n),this.once("error",r));return this.end(e),this},l.prototype.write=function(e){return this._parser.write(e),!0},l.prototype.end=function(e){this._parser.end(e)},l.prototype._metadata=function(e){this.width=e.width,this.height=e.height,this.emit("metadata",e)},l.prototype._gamma=function(e){this.gamma=e},l.prototype._handleClose=function(){this._parser.writable||this._packer.readable||this.emit("close")},l.bitblt=function(e,t,n,r,i,a,o,s){if(n>e.width||r>e.height||n+i>e.width||r+a>e.height)throw new Error("bitblt reading outside image");if(o>t.width||s>t.height||o+i>t.width||s+a>t.height)throw new Error("bitblt writing outside image");for(var u=0;u<a;u++)e.data.copy(t.data,(s+u)*t.width+o<<2,(r+u)*e.width+n<<2,(r+u)*e.width+n+i<<2)},l.prototype.bitblt=function(e,t,n,r,i,a,o){return l.bitblt(this,e,t,n,r,i,a,o),this},l.adjustGamma=function(e){if(e.gamma){for(var t=0;t<e.height;t++)for(var n=0;n<e.width;n++)for(var r=e.width*t+n<<2,i=0;i<3;i++){var a=e.data[r+i]/255;a=Math.pow(a,1/2.2/e.gamma),e.data[r+i]=Math.round(255*a)}e.gamma=0}},l.prototype.adjustGamma=function(){l.adjustGamma(this)}}).call(this,e("_process"),e("buffer").Buffer)},{"./packer-async":94,"./parser-async":98,"./png-sync":101,_process:105,buffer:8,stream:122,util:132}],103:[function(e,t,n){"use strict";var r=t.exports=function(e){this._buffer=e,this._reads=[]};r.prototype.read=function(e,t){this._reads.push({length:Math.abs(e),allowLess:e<0,func:t})},r.prototype.process=function(){for(;this._reads.length>0&&this._buffer.length;){var e=this._reads[0];if(!this._buffer.length||!(this._buffer.length>=e.length||e.allowLess))break;this._reads.shift();var t=this._buffer;this._buffer=t.slice(e.length),e.func.call(this,t.slice(0,e.length))}return this._reads.length>0?new Error("There are some read requests waitng on finished stream"):this._buffer.length>0?new Error("unrecognised content at end of stream"):void 0}},{}],104:[function(e,t,n){(function(e){"use strict";!e.version||0===e.version.indexOf("v0.")||0===e.version.indexOf("v1.")&&0!==e.version.indexOf("v1.8.")?t.exports=function(t,n,r,i){if("function"!=typeof t)throw new TypeError('"callback" argument must be a function');var a,o,s=arguments.length;switch(s){case 0:case 1:return e.nextTick(t);case 2:return e.nextTick(function(){t.call(null,n)});case 3:return e.nextTick(function(){t.call(null,n,r)});case 4:return e.nextTick(function(){t.call(null,n,r,i)});default:for(a=new Array(s-1),o=0;o<a.length;)a[o++]=arguments[o];return e.nextTick(function(){t.apply(null,a)})}}:t.exports=e.nextTick}).call(this,e("_process"))},{_process:105}],105:[function(e,t,n){var r,i,a=t.exports={};function o(){throw new Error("setTimeout has not been defined")}function s(){throw new Error("clearTimeout has not been defined")}function u(e){if(r===setTimeout)return setTimeout(e,0);if((r===o||!r)&&setTimeout)return r=setTimeout,setTimeout(e,0);try{return r(e,0)}catch(t){try{return r.call(null,e,0)}catch(t){return r.call(this,e,0)}}}!function(){try{r="function"==typeof setTimeout?setTimeout:o}catch(e){r=o}try{i="function"==typeof clearTimeout?clearTimeout:s}catch(e){i=s}}();var l,c=[],f=!1,h=-1;function p(){f&&l&&(f=!1,l.length?c=l.concat(c):h=-1,c.length&&d())}function d(){if(!f){var e=u(p);f=!0;for(var t=c.length;t;){for(l=c,c=[];++h<t;)l&&l[h].run();h=-1,t=c.length}l=null,f=!1,function(e){if(i===clearTimeout)return clearTimeout(e);if((i===s||!i)&&clearTimeout)return i=clearTimeout,clearTimeout(e);try{i(e)}catch(t){try{return i.call(null,e)}catch(t){return i.call(this,e)}}}(e)}}function g(e,t){this.fun=e,this.array=t}function v(){}a.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];c.push(new g(e,t)),1!==c.length||f||u(d)},g.prototype.run=function(){this.fun.apply(null,this.array)},a.title="browser",a.browser=!0,a.env={},a.argv=[],a.version="",a.versions={},a.on=v,a.addListener=v,a.once=v,a.off=v,a.removeListener=v,a.removeAllListeners=v,a.emit=v,a.prependListener=v,a.prependOnceListener=v,a.listeners=function(e){return[]},a.binding=function(e){throw new Error("process.binding is not supported")},a.cwd=function(){return"/"},a.chdir=function(e){throw new Error("process.chdir is not supported")},a.umask=function(){return 0}},{}],106:[function(e,t,n){t.exports=e("./lib/_stream_duplex.js")},{"./lib/_stream_duplex.js":107}],107:[function(e,t,n){"use strict";var r=Object.keys||function(e){var t=[];for(var n in e)t.push(n);return t};t.exports=f;var i=e("process-nextick-args"),a=e("core-util-is");a.inherits=e("inherits");var o=e("./_stream_readable"),s=e("./_stream_writable");a.inherits(f,o);for(var u=r(s.prototype),l=0;l<u.length;l++){var c=u[l];f.prototype[c]||(f.prototype[c]=s.prototype[c])}function f(e){if(!(this instanceof f))return new f(e);o.call(this,e),s.call(this,e),e&&!1===e.readable&&(this.readable=!1),e&&!1===e.writable&&(this.writable=!1),this.allowHalfOpen=!0,e&&!1===e.allowHalfOpen&&(this.allowHalfOpen=!1),this.once("end",h)}function h(){this.allowHalfOpen||this._writableState.ended||i(p,this)}function p(e){e.end()}},{"./_stream_readable":109,"./_stream_writable":111,"core-util-is":22,inherits:52,"process-nextick-args":104}],108:[function(e,t,n){"use strict";t.exports=a;var r=e("./_stream_transform"),i=e("core-util-is");function a(e){if(!(this instanceof a))return new a(e);r.call(this,e)}i.inherits=e("inherits"),i.inherits(a,r),a.prototype._transform=function(e,t,n){n(null,e)}},{"./_stream_transform":110,"core-util-is":22,inherits:52}],109:[function(e,t,n){(function(n){"use strict";t.exports=m;var r,i=e("process-nextick-args"),a=e("isarray");m.ReadableState=v;e("events").EventEmitter;var o=function(e,t){return e.listeners(t).length},s=e("./internal/streams/stream"),u=e("buffer").Buffer,l=e("buffer-shims"),c=e("core-util-is");c.inherits=e("inherits");var f=e("util"),h=void 0;h=f&&f.debuglog?f.debuglog("stream"):function(){};var p,d=e("./internal/streams/BufferList");c.inherits(m,s);var g=["error","close","destroy","pause","resume"];function v(t,n){r=r||e("./_stream_duplex"),t=t||{},this.objectMode=!!t.objectMode,n instanceof r&&(this.objectMode=this.objectMode||!!t.readableObjectMode);var i=t.highWaterMark,a=this.objectMode?16:16384;this.highWaterMark=i||0===i?i:a,this.highWaterMark=~~this.highWaterMark,this.buffer=new d,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.defaultEncoding=t.defaultEncoding||"utf8",this.ranOut=!1,this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,t.encoding&&(p||(p=e("string_decoder/").StringDecoder),this.decoder=new p(t.encoding),this.encoding=t.encoding)}function m(t){if(r=r||e("./_stream_duplex"),!(this instanceof m))return new m(t);this._readableState=new v(t,this),this.readable=!0,t&&"function"==typeof t.read&&(this._read=t.read),s.call(this)}function w(e,t,n,r,a){var o=function(e,t){var n=null;u.isBuffer(t)||"string"==typeof t||null===t||void 0===t||e.objectMode||(n=new TypeError("Invalid non-string/buffer chunk"));return n}(t,n);if(o)e.emit("error",o);else if(null===n)t.reading=!1,function(e,t){if(t.ended)return;if(t.decoder){var n=t.decoder.end();n&&n.length&&(t.buffer.push(n),t.length+=t.objectMode?1:n.length)}t.ended=!0,b(e)}(e,t);else if(t.objectMode||n&&n.length>0)if(t.ended&&!a){var s=new Error("stream.push() after EOF");e.emit("error",s)}else if(t.endEmitted&&a){var l=new Error("stream.unshift() after end event");e.emit("error",l)}else{var c;!t.decoder||a||r||(n=t.decoder.write(n),c=!t.objectMode&&0===n.length),a||(t.reading=!1),c||(t.flowing&&0===t.length&&!t.sync?(e.emit("data",n),e.read(0)):(t.length+=t.objectMode?1:n.length,a?t.buffer.unshift(n):t.buffer.push(n),t.needReadable&&b(e))),function(e,t){t.readingMore||(t.readingMore=!0,i(k,e,t))}(e,t)}else a||(t.reading=!1);return function(e){return!e.ended&&(e.needReadable||e.length<e.highWaterMark||0===e.length)}(t)}m.prototype.push=function(e,t){var n=this._readableState;return n.objectMode||"string"!=typeof e||(t=t||n.defaultEncoding)!==n.encoding&&(e=l.from(e,t),t=""),w(this,n,e,t,!1)},m.prototype.unshift=function(e){return w(this,this._readableState,e,"",!0)},m.prototype.isPaused=function(){return!1===this._readableState.flowing},m.prototype.setEncoding=function(t){return p||(p=e("string_decoder/").StringDecoder),this._readableState.decoder=new p(t),this._readableState.encoding=t,this};var y=8388608;function _(e,t){return e<=0||0===t.length&&t.ended?0:t.objectMode?1:e!=e?t.flowing&&t.length?t.buffer.head.data.length:t.length:(e>t.highWaterMark&&(t.highWaterMark=function(e){return e>=y?e=y:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}function b(e){var t=e._readableState;t.needReadable=!1,t.emittedReadable||(h("emitReadable",t.flowing),t.emittedReadable=!0,t.sync?i(x,e):x(e))}function x(e){h("emit readable"),e.emit("readable"),A(e)}function k(e,t){for(var n=t.length;!t.reading&&!t.flowing&&!t.ended&&t.length<t.highWaterMark&&(h("maybeReadMore read 0"),e.read(0),n!==t.length);)n=t.length;t.readingMore=!1}function E(e){h("readable nexttick read 0"),e.read(0)}function T(e,t){t.reading||(h("resume read 0"),e.read(0)),t.resumeScheduled=!1,t.awaitDrain=0,e.emit("resume"),A(e),t.flowing&&!t.reading&&e.read(0)}function A(e){var t=e._readableState;for(h("flow",t.flowing);t.flowing&&null!==e.read(););}function S(e,t){return 0===t.length?null:(t.objectMode?n=t.buffer.shift():!e||e>=t.length?(n=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.head.data:t.buffer.concat(t.length),t.buffer.clear()):n=function(e,t,n){var r;e<t.head.data.length?(r=t.head.data.slice(0,e),t.head.data=t.head.data.slice(e)):r=e===t.head.data.length?t.shift():n?function(e,t){var n=t.head,r=1,i=n.data;e-=i.length;for(;n=n.next;){var a=n.data,o=e>a.length?a.length:e;if(o===a.length?i+=a:i+=a.slice(0,e),0===(e-=o)){o===a.length?(++r,n.next?t.head=n.next:t.head=t.tail=null):(t.head=n,n.data=a.slice(o));break}++r}return t.length-=r,i}(e,t):function(e,t){var n=l.allocUnsafe(e),r=t.head,i=1;r.data.copy(n),e-=r.data.length;for(;r=r.next;){var a=r.data,o=e>a.length?a.length:e;if(a.copy(n,n.length-e,0,o),0===(e-=o)){o===a.length?(++i,r.next?t.head=r.next:t.head=t.tail=null):(t.head=r,r.data=a.slice(o));break}++i}return t.length-=i,n}(e,t);return r}(e,t.buffer,t.decoder),n);var n}function C(e){var t=e._readableState;if(t.length>0)throw new Error('"endReadable()" called on non-empty stream');t.endEmitted||(t.ended=!0,i(M,t,e))}function M(e,t){e.endEmitted||0!==e.length||(e.endEmitted=!0,t.readable=!1,t.emit("end"))}function R(e,t){for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1}m.prototype.read=function(e){h("read",e),e=parseInt(e,10);var t=this._readableState,n=e;if(0!==e&&(t.emittedReadable=!1),0===e&&t.needReadable&&(t.length>=t.highWaterMark||t.ended))return h("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?C(this):b(this),null;if(0===(e=_(e,t))&&t.ended)return 0===t.length&&C(this),null;var r,i=t.needReadable;return h("need readable",i),(0===t.length||t.length-e<t.highWaterMark)&&h("length less than watermark",i=!0),t.ended||t.reading?h("reading or ended",i=!1):i&&(h("do read"),t.reading=!0,t.sync=!0,0===t.length&&(t.needReadable=!0),this._read(t.highWaterMark),t.sync=!1,t.reading||(e=_(n,t))),null===(r=e>0?S(e,t):null)?(t.needReadable=!0,e=0):t.length-=e,0===t.length&&(t.ended||(t.needReadable=!0),n!==e&&t.ended&&C(this)),null!==r&&this.emit("data",r),r},m.prototype._read=function(e){this.emit("error",new Error("_read() is not implemented"))},m.prototype.pipe=function(e,t){var r=this,s=this._readableState;switch(s.pipesCount){case 0:s.pipes=e;break;case 1:s.pipes=[s.pipes,e];break;default:s.pipes.push(e)}s.pipesCount+=1,h("pipe count=%d opts=%j",s.pipesCount,t);var u=(!t||!1!==t.end)&&e!==n.stdout&&e!==n.stderr?c:d;function l(e){h("onunpipe"),e===r&&d()}function c(){h("onend"),e.end()}s.endEmitted?i(u):r.once("end",u),e.on("unpipe",l);var f=function(e){return function(){var t=e._readableState;h("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&o(e,"data")&&(t.flowing=!0,A(e))}}(r);e.on("drain",f);var p=!1;function d(){h("cleanup"),e.removeListener("close",w),e.removeListener("finish",y),e.removeListener("drain",f),e.removeListener("error",m),e.removeListener("unpipe",l),r.removeListener("end",c),r.removeListener("end",d),r.removeListener("data",v),p=!0,!s.awaitDrain||e._writableState&&!e._writableState.needDrain||f()}var g=!1;function v(t){h("ondata"),g=!1,!1!==e.write(t)||g||((1===s.pipesCount&&s.pipes===e||s.pipesCount>1&&-1!==R(s.pipes,e))&&!p&&(h("false write response, pause",r._readableState.awaitDrain),r._readableState.awaitDrain++,g=!0),r.pause())}function m(t){h("onerror",t),_(),e.removeListener("error",m),0===o(e,"error")&&e.emit("error",t)}function w(){e.removeListener("finish",y),_()}function y(){h("onfinish"),e.removeListener("close",w),_()}function _(){h("unpipe"),r.unpipe(e)}return r.on("data",v),function(e,t,n){if("function"==typeof e.prependListener)return e.prependListener(t,n);e._events&&e._events[t]?a(e._events[t])?e._events[t].unshift(n):e._events[t]=[n,e._events[t]]:e.on(t,n)}(e,"error",m),e.once("close",w),e.once("finish",y),e.emit("pipe",r),s.flowing||(h("pipe resume"),r.resume()),e},m.prototype.unpipe=function(e){var t=this._readableState;if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes?this:(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this),this);if(!e){var n=t.pipes,r=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var i=0;i<r;i++)n[i].emit("unpipe",this);return this}var a=R(t.pipes,e);return-1===a?this:(t.pipes.splice(a,1),t.pipesCount-=1,1===t.pipesCount&&(t.pipes=t.pipes[0]),e.emit("unpipe",this),this)},m.prototype.on=function(e,t){var n=s.prototype.on.call(this,e,t);if("data"===e)!1!==this._readableState.flowing&&this.resume();else if("readable"===e){var r=this._readableState;r.endEmitted||r.readableListening||(r.readableListening=r.needReadable=!0,r.emittedReadable=!1,r.reading?r.length&&b(this):i(E,this))}return n},m.prototype.addListener=m.prototype.on,m.prototype.resume=function(){var e=this._readableState;return e.flowing||(h("resume"),e.flowing=!0,function(e,t){t.resumeScheduled||(t.resumeScheduled=!0,i(T,e,t))}(this,e)),this},m.prototype.pause=function(){return h("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(h("pause"),this._readableState.flowing=!1,this.emit("pause")),this},m.prototype.wrap=function(e){var t=this._readableState,n=!1,r=this;for(var i in e.on("end",function(){if(h("wrapped end"),t.decoder&&!t.ended){var e=t.decoder.end();e&&e.length&&r.push(e)}r.push(null)}),e.on("data",function(i){(h("wrapped data"),t.decoder&&(i=t.decoder.write(i)),!t.objectMode||null!==i&&void 0!==i)&&((t.objectMode||i&&i.length)&&(r.push(i)||(n=!0,e.pause())))}),e)void 0===this[i]&&"function"==typeof e[i]&&(this[i]=function(t){return function(){return e[t].apply(e,arguments)}}(i));for(var a=0;a<g.length;a++)e.on(g[a],r.emit.bind(r,g[a]));return r._read=function(t){h("wrapped _read",t),n&&(n=!1,e.resume())},r},m._fromList=S}).call(this,e("_process"))},{"./_stream_duplex":107,"./internal/streams/BufferList":112,"./internal/streams/stream":113,_process:105,buffer:8,"buffer-shims":10,"core-util-is":22,events:29,inherits:52,isarray:55,"process-nextick-args":104,"string_decoder/":123,util:4}],110:[function(e,t,n){"use strict";t.exports=o;var r=e("./_stream_duplex"),i=e("core-util-is");function a(e){this.afterTransform=function(t,n){return function(e,t,n){var r=e._transformState;r.transforming=!1;var i=r.writecb;if(!i)return e.emit("error",new Error("no writecb in Transform class"));r.writechunk=null,r.writecb=null,null!==n&&void 0!==n&&e.push(n);i(t);var a=e._readableState;a.reading=!1,(a.needReadable||a.length<a.highWaterMark)&&e._read(a.highWaterMark)}(e,t,n)},this.needTransform=!1,this.transforming=!1,this.writecb=null,this.writechunk=null,this.writeencoding=null}function o(e){if(!(this instanceof o))return new o(e);r.call(this,e),this._transformState=new a(this);var t=this;this._readableState.needReadable=!0,this._readableState.sync=!1,e&&("function"==typeof e.transform&&(this._transform=e.transform),"function"==typeof e.flush&&(this._flush=e.flush)),this.once("prefinish",function(){"function"==typeof this._flush?this._flush(function(e,n){s(t,e,n)}):s(t)})}function s(e,t,n){if(t)return e.emit("error",t);null!==n&&void 0!==n&&e.push(n);var r=e._writableState,i=e._transformState;if(r.length)throw new Error("Calling transform done when ws.length != 0");if(i.transforming)throw new Error("Calling transform done when still transforming");return e.push(null)}i.inherits=e("inherits"),i.inherits(o,r),o.prototype.push=function(e,t){return this._transformState.needTransform=!1,r.prototype.push.call(this,e,t)},o.prototype._transform=function(e,t,n){throw new Error("_transform() is not implemented")},o.prototype._write=function(e,t,n){var r=this._transformState;if(r.writecb=n,r.writechunk=e,r.writeencoding=t,!r.transforming){var i=this._readableState;(r.needTransform||i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}},o.prototype._read=function(e){var t=this._transformState;null!==t.writechunk&&t.writecb&&!t.transforming?(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform)):t.needTransform=!0}},{"./_stream_duplex":107,"core-util-is":22,inherits:52}],111:[function(e,t,n){(function(n){"use strict";t.exports=d;var r,i=e("process-nextick-args"),a=!n.browser&&["v0.10","v0.9."].indexOf(n.version.slice(0,5))>-1?setImmediate:i;d.WritableState=p;var o=e("core-util-is");o.inherits=e("inherits");var s,u={deprecate:e("util-deprecate")},l=e("./internal/streams/stream"),c=e("buffer").Buffer,f=e("buffer-shims");function h(){}function p(t,n){r=r||e("./_stream_duplex"),t=t||{},this.objectMode=!!t.objectMode,n instanceof r&&(this.objectMode=this.objectMode||!!t.writableObjectMode);var o=t.highWaterMark,s=this.objectMode?16:16384;this.highWaterMark=o||0===o?o:s,this.highWaterMark=~~this.highWaterMark,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1;var u=!1===t.decodeStrings;this.decodeStrings=!u,this.defaultEncoding=t.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){!function(e,t){var n=e._writableState,r=n.sync,o=n.writecb;if(function(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}(n),t)!function(e,t,n,r,a){--t.pendingcb,n?i(a,r):a(r);e._writableState.errorEmitted=!0,e.emit("error",r)}(e,n,r,t,o);else{var s=w(n);s||n.corked||n.bufferProcessing||!n.bufferedRequest||m(e,n),r?a(v,e,n,s,o):v(e,n,s,o)}}(n,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new b(this)}function d(t){if(r=r||e("./_stream_duplex"),!(s.call(d,this)||this instanceof r))return new d(t);this._writableState=new p(t,this),this.writable=!0,t&&("function"==typeof t.write&&(this._write=t.write),"function"==typeof t.writev&&(this._writev=t.writev)),l.call(this)}function g(e,t,n,r,i,a,o){t.writelen=r,t.writecb=o,t.writing=!0,t.sync=!0,n?e._writev(i,t.onwrite):e._write(i,a,t.onwrite),t.sync=!1}function v(e,t,n,r){n||function(e,t){0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}(e,t),t.pendingcb--,r(),_(e,t)}function m(e,t){t.bufferProcessing=!0;var n=t.bufferedRequest;if(e._writev&&n&&n.next){var r=t.bufferedRequestCount,i=new Array(r),a=t.corkedRequestsFree;a.entry=n;for(var o=0;n;)i[o]=n,n=n.next,o+=1;g(e,t,!0,t.length,i,"",a.finish),t.pendingcb++,t.lastBufferedRequest=null,a.next?(t.corkedRequestsFree=a.next,a.next=null):t.corkedRequestsFree=new b(t)}else{for(;n;){var s=n.chunk,u=n.encoding,l=n.callback;if(g(e,t,!1,t.objectMode?1:s.length,s,u,l),n=n.next,t.writing)break}null===n&&(t.lastBufferedRequest=null)}t.bufferedRequestCount=0,t.bufferedRequest=n,t.bufferProcessing=!1}function w(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function y(e,t){t.prefinished||(t.prefinished=!0,e.emit("prefinish"))}function _(e,t){var n=w(t);return n&&(0===t.pendingcb?(y(e,t),t.finished=!0,e.emit("finish")):y(e,t)),n}function b(e){var t=this;this.next=null,this.entry=null,this.finish=function(n){var r=t.entry;for(t.entry=null;r;){var i=r.callback;e.pendingcb--,i(n),r=r.next}e.corkedRequestsFree?e.corkedRequestsFree.next=t:e.corkedRequestsFree=t}}o.inherits(d,l),p.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},function(){try{Object.defineProperty(p.prototype,"buffer",{get:u.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.")})}catch(e){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(s=Function.prototype[Symbol.hasInstance],Object.defineProperty(d,Symbol.hasInstance,{value:function(e){return!!s.call(this,e)||e&&e._writableState instanceof p}})):s=function(e){return e instanceof this},d.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},d.prototype.write=function(e,t,n){var r=this._writableState,a=!1,o=c.isBuffer(e);return"function"==typeof t&&(n=t,t=null),o?t="buffer":t||(t=r.defaultEncoding),"function"!=typeof n&&(n=h),r.ended?function(e,t){var n=new Error("write after end");e.emit("error",n),i(t,n)}(this,n):(o||function(e,t,n,r){var a=!0,o=!1;return null===n?o=new TypeError("May not write null values to stream"):"string"==typeof n||void 0===n||t.objectMode||(o=new TypeError("Invalid non-string/buffer chunk")),o&&(e.emit("error",o),i(r,o),a=!1),a}(this,r,e,n))&&(r.pendingcb++,a=function(e,t,n,r,i,a){n||(r=function(e,t,n){e.objectMode||!1===e.decodeStrings||"string"!=typeof t||(t=f.from(t,n));return t}(t,r,i),c.isBuffer(r)&&(i="buffer"));var o=t.objectMode?1:r.length;t.length+=o;var s=t.length<t.highWaterMark;s||(t.needDrain=!0);if(t.writing||t.corked){var u=t.lastBufferedRequest;t.lastBufferedRequest=new function(e,t,n){this.chunk=e,this.encoding=t,this.callback=n,this.next=null}(r,i,a),u?u.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1}else g(e,t,!1,o,r,i,a);return s}(this,r,o,e,t,n)),a},d.prototype.cork=function(){this._writableState.corked++},d.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,e.writing||e.corked||e.finished||e.bufferProcessing||!e.bufferedRequest||m(this,e))},d.prototype.setDefaultEncoding=function(e){if("string"==typeof e&&(e=e.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((e+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+e);return this._writableState.defaultEncoding=e,this},d.prototype._write=function(e,t,n){n(new Error("_write() is not implemented"))},d.prototype._writev=null,d.prototype.end=function(e,t,n){var r=this._writableState;"function"==typeof e?(n=e,e=null,t=null):"function"==typeof t&&(n=t,t=null),null!==e&&void 0!==e&&this.write(e,t),r.corked&&(r.corked=1,this.uncork()),r.ending||r.finished||function(e,t,n){t.ending=!0,_(e,t),n&&(t.finished?i(n):e.once("finish",n));t.ended=!0,e.writable=!1}(this,r,n)}}).call(this,e("_process"))},{"./_stream_duplex":107,"./internal/streams/stream":113,_process:105,buffer:8,"buffer-shims":10,"core-util-is":22,inherits:52,"process-nextick-args":104,"util-deprecate":129}],112:[function(e,t,n){"use strict";e("buffer").Buffer;var r=e("buffer-shims");function i(){this.head=null,this.tail=null,this.length=0}t.exports=i,i.prototype.push=function(e){var t={data:e,next:null};this.length>0?this.tail.next=t:this.head=t,this.tail=t,++this.length},i.prototype.unshift=function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length},i.prototype.shift=function(){if(0!==this.length){var e=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}},i.prototype.clear=function(){this.head=this.tail=null,this.length=0},i.prototype.join=function(e){if(0===this.length)return"";for(var t=this.head,n=""+t.data;t=t.next;)n+=e+t.data;return n},i.prototype.concat=function(e){if(0===this.length)return r.alloc(0);if(1===this.length)return this.head.data;for(var t=r.allocUnsafe(e>>>0),n=this.head,i=0;n;)n.data.copy(t,i),i+=n.data.length,n=n.next;return t}},{buffer:8,"buffer-shims":10}],113:[function(e,t,n){t.exports=e("events").EventEmitter},{events:29}],114:[function(e,t,n){t.exports=e("./readable").PassThrough},{"./readable":115}],115:[function(e,t,n){(n=t.exports=e("./lib/_stream_readable.js")).Stream=n,n.Readable=n,n.Writable=e("./lib/_stream_writable.js"),n.Duplex=e("./lib/_stream_duplex.js"),n.Transform=e("./lib/_stream_transform.js"),n.PassThrough=e("./lib/_stream_passthrough.js")},{"./lib/_stream_duplex.js":107,"./lib/_stream_passthrough.js":108,"./lib/_stream_readable.js":109,"./lib/_stream_transform.js":110,"./lib/_stream_writable.js":111}],116:[function(e,t,n){t.exports=e("./readable").Transform},{"./readable":115}],117:[function(e,t,n){t.exports=e("./lib/_stream_writable.js")},{"./lib/_stream_writable.js":111}],118:[function(e,t,n){var r=e("./lib/encoder"),i=e("./lib/decoder");t.exports={encode:r,decode:i}},{"./lib/decoder":119,"./lib/encoder":120}],119:[function(e,t,n){(function(e){var n=function(){"use strict";var e=new Int32Array([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=4017,n=799,r=3406,i=2276,a=1567,o=3784,s=5793,u=2896;function l(){}function c(e,t){for(var n,r,i=0,a=[],o=16;o>0&&!e[o-1];)o--;a.push({children:[],index:0});var s,u=a[0];for(n=0;n<o;n++){for(r=0;r<e[n];r++){for((u=a.pop()).children[u.index]=t[i];u.index>0;)u=a.pop();for(u.index++,a.push(u);a.length<=n;)a.push(s={children:[],index:0}),u.children[u.index]=s.children,u=s;i++}n+1<o&&(a.push(s={children:[],index:0}),u.children[u.index]=s.children,u=s)}return a[0].children}function f(t,n,r,i,a,o,s,u,l){r.precision,r.samplesPerLine,r.scanLines;var c=r.mcusPerLine,f=r.progressive,h=(r.maxH,r.maxV,n),p=0,d=0;function g(){if(d>0)return p>>--d&1;if(255==(p=t[n++])){var e=t[n++];if(e)throw"unexpected marker: "+(p<<8|e).toString(16)}return d=7,p>>>7}function v(e){for(var t,n=e;null!==(t=g());){if("number"==typeof(n=n[t]))return n;if("object"!=typeof n)throw"invalid huffman sequence"}return null}function m(e){for(var t=0;e>0;){var n=g();if(null===n)return;t=t<<1|n,e--}return t}function w(e){var t=m(e);return t>=1<<e-1?t:t+(-1<<e)+1}var y=0;var _,b=0;function x(e,t,n,r,i){var a=n%c,o=(n/c|0)*e.v+r,s=a*e.h+i;t(e,e.blocks[o][s])}function k(e,t,n){var r=n/e.blocksPerLine|0,i=n%e.blocksPerLine;t(e,e.blocks[r][i])}var E,T,A,S,C,M,R=i.length;M=f?0===o?0===u?function(e,t){var n=v(e.huffmanTableDC),r=0===n?0:w(n)<<l;t[0]=e.pred+=r}:function(e,t){t[0]|=g()<<l}:0===u?function(t,n){if(y>0)y--;else for(var r=o,i=s;r<=i;){var a=v(t.huffmanTableAC),u=15&a,c=a>>4;if(0!==u)n[e[r+=c]]=w(u)*(1<<l),r++;else{if(c<15){y=m(c)+(1<<c)-1;break}r+=16}}}:function(t,n){for(var r=o,i=s,a=0;r<=i;){var u=e[r];switch(b){case 0:var c=v(t.huffmanTableAC),f=15&c;if(a=c>>4,0===f)a<15?(y=m(a)+(1<<a),b=4):(a=16,b=1);else{if(1!==f)throw"invalid ACn encoding";_=w(f),b=a?2:3}continue;case 1:case 2:n[u]?n[u]+=g()<<l:0==--a&&(b=2==b?3:0);break;case 3:n[u]?n[u]+=g()<<l:(n[u]=_<<l,b=0);break;case 4:n[u]&&(n[u]+=g()<<l)}r++}4===b&&0==--y&&(b=0)}:function(t,n){var r=v(t.huffmanTableDC),i=0===r?0:w(r);n[0]=t.pred+=i;for(var a=1;a<64;){var o=v(t.huffmanTableAC),s=15&o,u=o>>4;if(0!==s)n[e[a+=u]]=w(s),a++;else{if(u<15)break;a+=16}}};var j,L,I,B,D=0;for(L=1==R?i[0].blocksPerLine*i[0].blocksPerColumn:c*r.mcusPerColumn,a||(a=L);D<L;){for(T=0;T<R;T++)i[T].pred=0;if(y=0,1==R)for(E=i[0],C=0;C<a;C++)k(E,M,D),D++;else for(C=0;C<a;C++){for(T=0;T<R;T++)for(I=(E=i[T]).h,B=E.v,A=0;A<B;A++)for(S=0;S<I;S++)x(E,M,D,A,S);if(++D===L)break}if(d=0,(j=t[n]<<8|t[n+1])<65280)throw"marker was not found";if(!(j>=65488&&j<=65495))break;n+=2}return n-h}function h(e,l){var c,f,h=[],p=l.blocksPerLine,d=l.blocksPerColumn,g=p<<3,v=new Int32Array(64),m=new Uint8Array(64);function w(e,c,f){var h,p,d,g,v,m,w,y,_,b,x=l.quantizationTable,k=f;for(b=0;b<64;b++)k[b]=e[b]*x[b];for(b=0;b<8;++b){var E=8*b;0!=k[1+E]||0!=k[2+E]||0!=k[3+E]||0!=k[4+E]||0!=k[5+E]||0!=k[6+E]||0!=k[7+E]?(h=s*k[0+E]+128>>8,p=s*k[4+E]+128>>8,d=k[2+E],g=k[6+E],v=u*(k[1+E]-k[7+E])+128>>8,y=u*(k[1+E]+k[7+E])+128>>8,m=k[3+E]<<4,w=k[5+E]<<4,_=h-p+1>>1,h=h+p+1>>1,p=_,_=d*o+g*a+128>>8,d=d*a-g*o+128>>8,g=_,_=v-w+1>>1,v=v+w+1>>1,w=_,_=y+m+1>>1,m=y-m+1>>1,y=_,_=h-g+1>>1,h=h+g+1>>1,g=_,_=p-d+1>>1,p=p+d+1>>1,d=_,_=v*i+y*r+2048>>12,v=v*r-y*i+2048>>12,y=_,_=m*n+w*t+2048>>12,m=m*t-w*n+2048>>12,w=_,k[0+E]=h+y,k[7+E]=h-y,k[1+E]=p+w,k[6+E]=p-w,k[2+E]=d+m,k[5+E]=d-m,k[3+E]=g+v,k[4+E]=g-v):(_=s*k[0+E]+512>>10,k[0+E]=_,k[1+E]=_,k[2+E]=_,k[3+E]=_,k[4+E]=_,k[5+E]=_,k[6+E]=_,k[7+E]=_)}for(b=0;b<8;++b){var T=b;0!=k[8+T]||0!=k[16+T]||0!=k[24+T]||0!=k[32+T]||0!=k[40+T]||0!=k[48+T]||0!=k[56+T]?(h=s*k[0+T]+2048>>12,p=s*k[32+T]+2048>>12,d=k[16+T],g=k[48+T],v=u*(k[8+T]-k[56+T])+2048>>12,y=u*(k[8+T]+k[56+T])+2048>>12,m=k[24+T],w=k[40+T],_=h-p+1>>1,h=h+p+1>>1,p=_,_=d*o+g*a+2048>>12,d=d*a-g*o+2048>>12,g=_,_=v-w+1>>1,v=v+w+1>>1,w=_,_=y+m+1>>1,m=y-m+1>>1,y=_,_=h-g+1>>1,h=h+g+1>>1,g=_,_=p-d+1>>1,p=p+d+1>>1,d=_,_=v*i+y*r+2048>>12,v=v*r-y*i+2048>>12,y=_,_=m*n+w*t+2048>>12,m=m*t-w*n+2048>>12,w=_,k[0+T]=h+y,k[56+T]=h-y,k[8+T]=p+w,k[48+T]=p-w,k[16+T]=d+m,k[40+T]=d-m,k[24+T]=g+v,k[32+T]=g-v):(_=s*f[b+0]+8192>>14,k[0+T]=_,k[8+T]=_,k[16+T]=_,k[24+T]=_,k[32+T]=_,k[40+T]=_,k[48+T]=_,k[56+T]=_)}for(b=0;b<64;++b){var A=128+(k[b]+8>>4);c[b]=A<0?0:A>255?255:A}}for(var y=0;y<d;y++){var _=y<<3;for(c=0;c<8;c++)h.push(new Uint8Array(g));for(var b=0;b<p;b++){w(l.blocks[y][b],m,v);var x=0,k=b<<3;for(f=0;f<8;f++){var E=h[_+f];for(c=0;c<8;c++)E[k+c]=m[x++]}}}return h}function p(e){return e<0?0:e>255?255:e}return l.prototype={load:function(e){var t=new XMLHttpRequest;t.open("GET",e,!0),t.responseType="arraybuffer",t.onload=function(){var e=new Uint8Array(t.response||t.mozResponseArrayBuffer);this.parse(e),this.onload&&this.onload()}.bind(this),t.send(null)},parse:function(t){var n=0;t.length;function r(){var e=t[n]<<8|t[n+1];return n+=2,e}function i(){var e=r(),i=t.subarray(n,n+e-2);return n+=i.length,i}function a(e){var t,n,r=0,i=0;for(n in e.components)e.components.hasOwnProperty(n)&&(r<(t=e.components[n]).h&&(r=t.h),i<t.v&&(i=t.v));var a=Math.ceil(e.samplesPerLine/8/r),o=Math.ceil(e.scanLines/8/i);for(n in e.components)if(e.components.hasOwnProperty(n)){t=e.components[n];for(var s=Math.ceil(Math.ceil(e.samplesPerLine/8)*t.h/r),u=Math.ceil(Math.ceil(e.scanLines/8)*t.v/i),l=a*t.h,c=o*t.v,f=[],h=0;h<c;h++){for(var p=[],d=0;d<l;d++)p.push(new Int32Array(64));f.push(p)}t.blocksPerLine=s,t.blocksPerColumn=u,t.blocks=f}e.maxH=r,e.maxV=i,e.mcusPerLine=a,e.mcusPerColumn=o}var o,s,u=null,l=null,p=[],d=[],g=[],v=[],m=r();if(65496!=m)throw"SOI not found";for(m=r();65497!=m;){var w;switch(m){case 65280:break;case 65504:case 65505:case 65506:case 65507:case 65508:case 65509:case 65510:case 65511:case 65512:case 65513:case 65514:case 65515:case 65516:case 65517:case 65518:case 65519:case 65534:var y=i();65504===m&&74===y[0]&&70===y[1]&&73===y[2]&&70===y[3]&&0===y[4]&&(u={version:{major:y[5],minor:y[6]},densityUnits:y[7],xDensity:y[8]<<8|y[9],yDensity:y[10]<<8|y[11],thumbWidth:y[12],thumbHeight:y[13],thumbData:y.subarray(14,14+3*y[12]*y[13])}),65518===m&&65===y[0]&&100===y[1]&&111===y[2]&&98===y[3]&&101===y[4]&&0===y[5]&&(l={version:y[6],flags0:y[7]<<8|y[8],flags1:y[9]<<8|y[10],transformCode:y[11]});break;case 65499:for(var _=r()+n-2;n<_;){var b=t[n++],x=new Int32Array(64);if(b>>4==0)for(w=0;w<64;w++){x[e[w]]=t[n++]}else{if(b>>4!=1)throw"DQT: invalid table spec";for(w=0;w<64;w++){x[e[w]]=r()}}p[15&b]=x}break;case 65472:case 65473:case 65474:r(),(o={}).extended=65473===m,o.progressive=65474===m,o.precision=t[n++],o.scanLines=r(),o.samplesPerLine=r(),o.components={},o.componentsOrder=[];var k,E=t[n++];for(F=0;F<E;F++){k=t[n];var T=t[n+1]>>4,A=15&t[n+1],S=t[n+2];o.componentsOrder.push(k),o.components[k]={h:T,v:A,quantizationTable:p[S]},n+=3}a(o),d.push(o);break;case 65476:var C=r();for(F=2;F<C;){var M=t[n++],R=new Uint8Array(16),j=0;for(w=0;w<16;w++,n++)j+=R[w]=t[n];var L=new Uint8Array(j);for(w=0;w<j;w++,n++)L[w]=t[n];F+=17+j,(M>>4==0?v:g)[15&M]=c(R,L)}break;case 65501:r(),s=r();break;case 65498:r();var I=t[n++],B=[];for(F=0;F<I;F++){U=o.components[t[n++]];var D=t[n++];U.huffmanTableDC=v[D>>4],U.huffmanTableAC=g[15&D],B.push(U)}var N=t[n++],O=t[n++],P=t[n++],z=f(t,n,o,B,s,N,O,P>>4,15&P);n+=z;break;default:if(255==t[n-3]&&t[n-2]>=192&&t[n-2]<=254){n-=3;break}throw"unknown JPEG marker "+m.toString(16)}m=r()}if(1!=d.length)throw"only single frame JPEGs supported";this.width=o.samplesPerLine,this.height=o.scanLines,this.jfif=u,this.adobe=l,this.components=[];for(var F=0;F<o.componentsOrder.length;F++){var U=o.components[o.componentsOrder[F]];this.components.push({lines:h(0,U),scaleX:U.h/o.maxH,scaleY:U.v/o.maxV})}},getData:function(e,t){var n,r,i,a,o,s,u,l,c,f,h,d,g,v,m,w,y,_,b,x,k,E=this.width/e,T=this.height/t,A=0,S=e*t*this.components.length,C=new Uint8Array(S);switch(this.components.length){case 1:for(n=this.components[0],f=0;f<t;f++)for(o=n.lines[0|f*n.scaleY*T],c=0;c<e;c++)h=o[0|c*n.scaleX*E],C[A++]=h;break;case 2:for(n=this.components[0],r=this.components[1],f=0;f<t;f++)for(o=n.lines[0|f*n.scaleY*T],s=r.lines[0|f*r.scaleY*T],c=0;c<e;c++)h=o[0|c*n.scaleX*E],C[A++]=h,h=s[0|c*r.scaleX*E],C[A++]=h;break;case 3:for(k=!0,this.adobe&&this.adobe.transformCode?k=!0:void 0!==this.colorTransform&&(k=!!this.colorTransform),n=this.components[0],r=this.components[1],i=this.components[2],f=0;f<t;f++)for(o=n.lines[0|f*n.scaleY*T],s=r.lines[0|f*r.scaleY*T],u=i.lines[0|f*i.scaleY*T],c=0;c<e;c++)k?(h=o[0|c*n.scaleX*E],d=s[0|c*r.scaleX*E],_=p(h+1.402*((g=u[0|c*i.scaleX*E])-128)),b=p(h-.3441363*(d-128)-.71413636*(g-128)),x=p(h+1.772*(d-128))):(_=o[0|c*n.scaleX*E],b=s[0|c*r.scaleX*E],x=u[0|c*i.scaleX*E]),C[A++]=_,C[A++]=b,C[A++]=x;break;case 4:if(!this.adobe)throw"Unsupported color mode (4 components)";for(k=!1,this.adobe&&this.adobe.transformCode?k=!0:void 0!==this.colorTransform&&(k=!!this.colorTransform),n=this.components[0],r=this.components[1],i=this.components[2],a=this.components[3],f=0;f<t;f++)for(o=n.lines[0|f*n.scaleY*T],s=r.lines[0|f*r.scaleY*T],u=i.lines[0|f*i.scaleY*T],l=a.lines[0|f*a.scaleY*T],c=0;c<e;c++)k?(h=o[0|c*n.scaleX*E],d=s[0|c*r.scaleX*E],g=u[0|c*i.scaleX*E],v=l[0|c*a.scaleX*E],m=255-p(h+1.402*(g-128)),w=255-p(h-.3441363*(d-128)-.71413636*(g-128)),y=255-p(h+1.772*(d-128))):(m=o[0|c*n.scaleX*E],w=s[0|c*r.scaleX*E],y=u[0|c*i.scaleX*E],v=l[0|c*a.scaleX*E]),C[A++]=m,C[A++]=w,C[A++]=y,C[A++]=v;break;default:throw"Unsupported color mode"}return C},copyToImageData:function(e){var t,n,r,i,a,o,s,u,l,c=e.width,f=e.height,h=e.data,d=this.getData(c,f),g=0,v=0;switch(this.components.length){case 1:for(n=0;n<f;n++)for(t=0;t<c;t++)r=d[g++],h[v++]=r,h[v++]=r,h[v++]=r,h[v++]=255;break;case 3:for(n=0;n<f;n++)for(t=0;t<c;t++)s=d[g++],u=d[g++],l=d[g++],h[v++]=s,h[v++]=u,h[v++]=l,h[v++]=255;break;case 4:for(n=0;n<f;n++)for(t=0;t<c;t++)a=d[g++],o=d[g++],r=d[g++],s=255-p(a*(1-(i=d[g++])/255)+i),u=255-p(o*(1-i/255)+i),l=255-p(r*(1-i/255)+i),h[v++]=s,h[v++]=u,h[v++]=l,h[v++]=255;break;default:throw"Unsupported color mode"}}},l}();t.exports=function(t){var r=new Uint8Array(t),i=new n;i.parse(r);for(var a=i.getData(i.width,i.height),o=new e(i.width*i.height*4),s=0,u=0;u<o.length;u++)o[u+(u/3|0)]=a[s++],u%4==3&&(o[u]=255);return{data:o,width:i.width,height:i.height}}}).call(this,e("buffer").Buffer)},{buffer:8}],120:[function(e,t,n){(function(e){function n(t){Math.round;var n,r,i,a,o,s=Math.floor,u=new Array(64),l=new Array(64),c=new Array(64),f=new Array(64),h=new Array(65535),p=new Array(65535),d=new Array(64),g=new Array(64),v=[],m=0,w=7,y=new Array(64),_=new Array(64),b=new Array(64),x=new Array(256),k=new Array(2048),E=[0,1,5,6,14,15,27,28,2,4,7,13,16,26,29,42,3,8,12,17,25,30,41,43,9,11,18,24,31,40,44,53,10,19,23,32,39,45,52,54,20,22,33,38,46,51,55,60,21,34,37,47,50,56,59,61,35,36,48,49,57,58,62,63],T=[0,0,1,5,1,1,1,1,1,1,0,0,0,0,0,0,0],A=[0,1,2,3,4,5,6,7,8,9,10,11],S=[0,0,2,1,3,3,2,4,3,5,5,4,4,0,0,1,125],C=[1,2,3,0,4,17,5,18,33,49,65,6,19,81,97,7,34,113,20,50,129,145,161,8,35,66,177,193,21,82,209,240,36,51,98,114,130,9,10,22,23,24,25,26,37,38,39,40,41,42,52,53,54,55,56,57,58,67,68,69,70,71,72,73,74,83,84,85,86,87,88,89,90,99,100,101,102,103,104,105,106,115,116,117,118,119,120,121,122,131,132,133,134,135,136,137,138,146,147,148,149,150,151,152,153,154,162,163,164,165,166,167,168,169,170,178,179,180,181,182,183,184,185,186,194,195,196,197,198,199,200,201,202,210,211,212,213,214,215,216,217,218,225,226,227,228,229,230,231,232,233,234,241,242,243,244,245,246,247,248,249,250],M=[0,0,3,1,1,1,1,1,1,1,1,1,0,0,0,0,0],R=[0,1,2,3,4,5,6,7,8,9,10,11],j=[0,0,2,1,2,4,4,3,4,7,5,4,4,0,1,2,119],L=[0,1,2,3,17,4,5,33,49,6,18,65,81,7,97,113,19,34,50,129,8,20,66,145,161,177,193,9,35,51,82,240,21,98,114,209,10,22,36,52,225,37,241,23,24,25,26,38,39,40,41,42,53,54,55,56,57,58,67,68,69,70,71,72,73,74,83,84,85,86,87,88,89,90,99,100,101,102,103,104,105,106,115,116,117,118,119,120,121,122,130,131,132,133,134,135,136,137,138,146,147,148,149,150,151,152,153,154,162,163,164,165,166,167,168,169,170,178,179,180,181,182,183,184,185,186,194,195,196,197,198,199,200,201,202,210,211,212,213,214,215,216,217,218,226,227,228,229,230,231,232,233,234,242,243,244,245,246,247,248,249,250];function I(e,t){for(var n=0,r=0,i=new Array,a=1;a<=16;a++){for(var o=1;o<=e[a];o++)i[t[r]]=[],i[t[r]][0]=n,i[t[r]][1]=a,r++,n++;n*=2}return i}function B(e){for(var t=e[0],n=e[1]-1;n>=0;)t&1<<n&&(m|=1<<w),n--,--w<0&&(255==m?(D(255),D(0)):D(m),w=7,m=0)}function D(e){v.push(e)}function N(e){D(e>>8&255),D(255&e)}function O(e,t,n,r,i){var a,o=i[0],s=i[240];for(var u=function(e,t){var n,r,i,a,o,s,u,l,c,f,h=0;for(c=0;c<8;++c){n=e[h],r=e[h+1],i=e[h+2],a=e[h+3],o=e[h+4],s=e[h+5],u=e[h+6];var p=n+(l=e[h+7]),g=n-l,v=r+u,m=r-u,w=i+s,y=i-s,_=a+o,b=a-o,x=p+_,k=p-_,E=v+w,T=v-w;e[h]=x+E,e[h+4]=x-E;var A=.707106781*(T+k);e[h+2]=k+A,e[h+6]=k-A;var S=.382683433*((x=b+y)-(T=m+g)),C=.5411961*x+S,M=1.306562965*T+S,R=.707106781*(E=y+m),j=g+R,L=g-R;e[h+5]=L+C,e[h+3]=L-C,e[h+1]=j+M,e[h+7]=j-M,h+=8}for(h=0,c=0;c<8;++c){n=e[h],r=e[h+8],i=e[h+16],a=e[h+24],o=e[h+32],s=e[h+40],u=e[h+48];var I=n+(l=e[h+56]),B=n-l,D=r+u,N=r-u,O=i+s,P=i-s,z=a+o,F=a-o,U=I+z,q=I-z,W=D+O,H=D-O;e[h]=U+W,e[h+32]=U-W;var V=.707106781*(H+q);e[h+16]=q+V,e[h+48]=q-V;var Z=.382683433*((U=F+P)-(H=N+B)),G=.5411961*U+Z,Y=1.306562965*H+Z,$=.707106781*(W=P+N),X=B+$,K=B-$;e[h+40]=K+G,e[h+24]=K-G,e[h+8]=X+Y,e[h+56]=X-Y,h++}for(c=0;c<64;++c)f=e[c]*t[c],d[c]=f>0?f+.5|0:f-.5|0;return d}(e,t),l=0;l<64;++l)g[E[l]]=u[l];var c=g[0]-n;n=g[0],0==c?B(r[0]):(B(r[p[a=32767+c]]),B(h[a]));for(var f=63;f>0&&0==g[f];f--);if(0==f)return B(o),n;for(var v,m=1;m<=f;){for(var w=m;0==g[m]&&m<=f;++m);var y=m-w;if(y>=16){v=y>>4;for(var _=1;_<=v;++_)B(s);y&=15}a=32767+g[m],B(i[(y<<4)+p[a]]),B(h[a]),m++}return 63!=f&&B(o),n}function P(e){if(e<=0&&(e=1),e>100&&(e=100),o!=e){(function(e){for(var t=[16,11,10,16,24,40,51,61,12,12,14,19,26,58,60,55,14,13,16,24,40,57,69,56,14,17,22,29,51,87,80,62,18,22,37,56,68,109,103,77,24,35,55,64,81,104,113,92,49,64,78,87,103,121,120,101,72,92,95,98,112,100,103,99],n=0;n<64;n++){var r=s((t[n]*e+50)/100);r<1?r=1:r>255&&(r=255),u[E[n]]=r}for(var i=[17,18,24,47,99,99,99,99,18,21,26,66,99,99,99,99,24,26,56,99,99,99,99,99,47,66,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99],a=0;a<64;a++){var o=s((i[a]*e+50)/100);o<1?o=1:o>255&&(o=255),l[E[a]]=o}for(var h=[1,1.387039845,1.306562965,1.175875602,1,.785694958,.5411961,.275899379],p=0,d=0;d<8;d++)for(var g=0;g<8;g++)c[p]=1/(u[E[p]]*h[d]*h[g]*8),f[p]=1/(l[E[p]]*h[d]*h[g]*8),p++})(e<50?Math.floor(5e3/e):Math.floor(200-2*e)),o=e}}this.encode=function(t,o){(new Date).getTime();o&&P(o),v=new Array,m=0,w=7,N(65496),N(65504),N(16),D(74),D(70),D(73),D(70),D(0),D(1),D(1),D(0),N(1),N(1),D(0),D(0),function(){N(65499),N(132),D(0);for(var e=0;e<64;e++)D(u[e]);D(1);for(var t=0;t<64;t++)D(l[t])}(),function(e,t){N(65472),N(17),D(8),N(t),N(e),D(3),D(1),D(17),D(0),D(2),D(17),D(1),D(3),D(17),D(1)}(t.width,t.height),function(){N(65476),N(418),D(0);for(var e=0;e<16;e++)D(T[e+1]);for(var t=0;t<=11;t++)D(A[t]);D(16);for(var n=0;n<16;n++)D(S[n+1]);for(var r=0;r<=161;r++)D(C[r]);D(1);for(var i=0;i<16;i++)D(M[i+1]);for(var a=0;a<=11;a++)D(R[a]);D(17);for(var o=0;o<16;o++)D(j[o+1]);for(var s=0;s<=161;s++)D(L[s])}(),N(65498),N(12),D(3),D(1),D(0),D(2),D(17),D(3),D(17),D(0),D(63),D(0);var s=0,h=0,p=0;m=0,w=7,this.encode.displayName="_encode_";for(var d,g,x,E,I,z,F,U,q,W=t.data,H=t.width,V=t.height,Z=4*H,G=0;G<V;){for(d=0;d<Z;){for(z=I=Z*G+d,F=-1,U=0,q=0;q<64;q++)z=I+(U=q>>3)*Z+(F=4*(7&q)),G+U>=V&&(z-=Z*(G+1+U-V)),d+F>=Z&&(z-=d+F-Z+4),g=W[z++],x=W[z++],E=W[z++],y[q]=(k[g]+k[x+256>>0]+k[E+512>>0]>>16)-128,_[q]=(k[g+768>>0]+k[x+1024>>0]+k[E+1280>>0]>>16)-128,b[q]=(k[g+1280>>0]+k[x+1536>>0]+k[E+1792>>0]>>16)-128;s=O(y,c,s,n,i),h=O(_,f,h,r,a),p=O(b,f,p,r,a),d+=32}G+=8}if(w>=0){var Y=[];Y[1]=w+1,Y[0]=(1<<w+1)-1,B(Y)}return N(65497),new e(v)},function(){(new Date).getTime();t||(t=50),function(){for(var e=String.fromCharCode,t=0;t<256;t++)x[t]=e(t)}(),n=I(T,A),r=I(M,R),i=I(S,C),a=I(j,L),function(){for(var e=1,t=2,n=1;n<=15;n++){for(var r=e;r<t;r++)p[32767+r]=n,h[32767+r]=[],h[32767+r][1]=n,h[32767+r][0]=r;for(var i=-(t-1);i<=-e;i++)p[32767+i]=n,h[32767+i]=[],h[32767+i][1]=n,h[32767+i][0]=t-1+i;e<<=1,t<<=1}}(),function(){for(var e=0;e<256;e++)k[e]=19595*e,k[e+256>>0]=38470*e,k[e+512>>0]=7471*e+32768,k[e+768>>0]=-11059*e,k[e+1024>>0]=-21709*e,k[e+1280>>0]=32768*e+8421375,k[e+1536>>0]=-27439*e,k[e+1792>>0]=-5329*e}(),P(t),(new Date).getTime()}()}t.exports=function(e,t){void 0===t&&(t=50);return{data:new n(t).encode(e,t),width:e.width,height:e.height}}}).call(this,e("buffer").Buffer)},{buffer:8}],121:[function(e,t,n){(function(n){"use strict";var r=e("contentstream"),i=e("gif-encoder"),a=e("jpeg-js"),o=e("pngjs-nozlib").PNG,s=e("ndarray"),u=e("ndarray-ops"),l=e("through");function c(e,t,n){if(4===e.shape.length)return c(e.pick(n),t,0);if(3===e.shape.length)if(3===e.shape[2])u.assign(s(t,[e.shape[0],e.shape[1],3],[4,4*e.shape[0],1]),e),u.assigns(s(t,[e.shape[0]*e.shape[1]],[4],3),255);else if(4===e.shape[2])u.assign(s(t,[e.shape[0],e.shape[1],4],[4,4*e.shape[0],1]),e);else{if(1!==e.shape[2])return new Error("Incompatible array shape");u.assign(s(t,[e.shape[0],e.shape[1],3],[4,4*e.shape[0],1]),s(e.data,[e.shape[0],e.shape[1],3],[e.stride[0],e.stride[1],0],e.offset)),u.assigns(s(t,[e.shape[0]*e.shape[1]],[4],3),255)}else{if(2!==e.shape.length)return new Error("Incompatible array shape");u.assign(s(t,[e.shape[0],e.shape[1],3],[4,4*e.shape[0],1]),s(e.data,[e.shape[0],e.shape[1],3],[e.stride[0],e.stride[1],0],e.offset)),u.assigns(s(t,[e.shape[0]*e.shape[1]],[4],3),255)}return t}function f(e){var t=l();return t.emit("error",e),t}t.exports=function(e,t,s){switch(s=s||{},t.toUpperCase()){case"JPG":case".JPG":case"JPEG":case".JPEG":case"JPE":case".JPE":var u=e.shape[0],l=e.shape[1],h={data:g=c(e,g=new n(u*l*4)),width:u,height:l},p=a.encode(h,s.quality);return new r(p.data);case"GIF":case".GIF":var d=4===e.shape.length?e.shape[0]:1,g=(u=4===e.shape.length?e.shape[1]:e.shape[0],l=4===e.shape.length?e.shape[2]:e.shape[1],new n(u*l*4)),v=new i(u,l);v.writeHeader();for(var m=0;m<d;m++)g=c(e,g,m),v.addFrame(g);return v.finish(),v;case"PNG":case".PNG":var w=new o({width:e.shape[0],height:e.shape[1]});return"Error"==typeof(g=c(e,w.data))?f(g):(w.data=g,w.pack());case"CANVAS":var y=document.createElement("canvas"),_=y.getContext("2d");y.width=e.shape[0],y.height=e.shape[1];var b=_.getImageData(0,0,y.width,y.height);return"Error"==typeof(g=c(e,g=b.data))?f(g):(_.putImageData(b,0,0),y);default:return f(new Error("Unsupported file type: "+t))}}}).call(this,e("buffer").Buffer)},{buffer:8,contentstream:13,"gif-encoder":40,"jpeg-js":118,ndarray:67,"ndarray-ops":64,"pngjs-nozlib":102,through:124}],122:[function(e,t,n){t.exports=i;var r=e("events").EventEmitter;function i(){r.call(this)}e("inherits")(i,r),i.Readable=e("readable-stream/readable.js"),i.Writable=e("readable-stream/writable.js"),i.Duplex=e("readable-stream/duplex.js"),i.Transform=e("readable-stream/transform.js"),i.PassThrough=e("readable-stream/passthrough.js"),i.Stream=i,i.prototype.pipe=function(e,t){var n=this;function i(t){e.writable&&!1===e.write(t)&&n.pause&&n.pause()}function a(){n.readable&&n.resume&&n.resume()}n.on("data",i),e.on("drain",a),e._isStdio||t&&!1===t.end||(n.on("end",s),n.on("close",u));var o=!1;function s(){o||(o=!0,e.end())}function u(){o||(o=!0,"function"==typeof e.destroy&&e.destroy())}function l(e){if(c(),0===r.listenerCount(this,"error"))throw e}function c(){n.removeListener("data",i),e.removeListener("drain",a),n.removeListener("end",s),n.removeListener("close",u),n.removeListener("error",l),e.removeListener("error",l),n.removeListener("end",c),n.removeListener("close",c),e.removeListener("close",c)}return n.on("error",l),e.on("error",l),n.on("end",c),n.on("close",c),e.on("close",c),e.emit("pipe",n),e}},{events:29,inherits:52,"readable-stream/duplex.js":106,"readable-stream/passthrough.js":114,"readable-stream/readable.js":115,"readable-stream/transform.js":116,"readable-stream/writable.js":117}],123:[function(e,t,n){"use strict";var r=e("buffer").Buffer,i=e("buffer-shims"),a=r.isEncoding||function(e){switch((e=""+e)&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function o(e){var t;switch(this.encoding=function(e){var t=function(e){if(!e)return"utf8";for(var t;;)switch(e){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return e;default:if(t)return;e=(""+e).toLowerCase(),t=!0}}(e);if("string"!=typeof t&&(r.isEncoding===a||!a(e)))throw new Error("Unknown encoding: "+e);return t||e}(e),this.encoding){case"utf16le":this.text=l,this.end=c,t=4;break;case"utf8":this.fillLast=u,t=4;break;case"base64":this.text=f,this.end=h,t=3;break;default:return this.write=p,void(this.end=d)}this.lastNeed=0,this.lastTotal=0,this.lastChar=i.allocUnsafe(t)}function s(e){return e<=127?0:e>>5==6?2:e>>4==14?3:e>>3==30?4:-1}function u(e){var t=this.lastTotal-this.lastNeed,n=function(e,t,n){if(128!=(192&t[0]))return e.lastNeed=0,"<22>".repeat(n);if(e.lastNeed>1&&t.length>1){if(128!=(192&t[1]))return e.lastNeed=1,"<22>".repeat(n+1);if(e.lastNeed>2&&t.length>2&&128!=(192&t[2]))return e.lastNeed=2,"<22>".repeat(n+2)}}(this,e,t);return void 0!==n?n:this.lastNeed<=e.length?(e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(e.copy(this.lastChar,t,0,e.length),void(this.lastNeed-=e.length))}function l(e,t){if((e.length-t)%2==0){var n=e.toString("utf16le",t);if(n){var r=n.charCodeAt(n.length-1);if(r>=55296&&r<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],n.slice(0,-1)}return n}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function c(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var n=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,n)}return t}function f(e,t){var n=(e.length-t)%3;return 0===n?e.toString("base64",t):(this.lastNeed=3-n,this.lastTotal=3,1===n?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-n))}function h(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function p(e){return e.toString(this.encoding)}function d(e){return e&&e.length?this.write(e):""}n.StringDecoder=o,o.prototype.write=function(e){if(0===e.length)return"";var t,n;if(this.lastNeed){if(void 0===(t=this.fillLast(e)))return"";n=this.lastNeed,this.lastNeed=0}else n=0;return n<e.length?t?t+this.text(e,n):this.text(e,n):t||""},o.prototype.end=function(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+"<22>".repeat(this.lastTotal-this.lastNeed):t},o.prototype.text=function(e,t){var n=function(e,t,n){var r=t.length-1;if(r<n)return 0;var i=s(t[r]);if(i>=0)return i>0&&(e.lastNeed=i-1),i;if(--r<n)return 0;if((i=s(t[r]))>=0)return i>0&&(e.lastNeed=i-2),i;if(--r<n)return 0;if((i=s(t[r]))>=0)return i>0&&(2===i?i=0:e.lastNeed=i-3),i;return 0}(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=n;var r=e.length-(n-this.lastNeed);return e.copy(this.lastChar,0,r),e.toString("utf8",t,r)},o.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length}},{buffer:8,"buffer-shims":10}],124:[function(e,t,n){(function(n){var r=e("stream");function i(e,t,i){e=e||function(e){this.queue(e)},t=t||function(){this.queue(null)};var a=!1,o=!1,s=[],u=!1,l=new r;function c(){for(;s.length&&!l.paused;){var e=s.shift();if(null===e)return l.emit("end");l.emit("data",e)}}return l.readable=l.writable=!0,l.paused=!1,l.autoDestroy=!(i&&!1===i.autoDestroy),l.write=function(t){return e.call(this,t),!l.paused},l.queue=l.push=function(e){return u?l:(null===e&&(u=!0),s.push(e),c(),l)},l.on("end",function(){l.readable=!1,!l.writable&&l.autoDestroy&&n.nextTick(function(){l.destroy()})}),l.end=function(e){if(!a)return a=!0,arguments.length&&l.write(e),l.writable=!1,t.call(l),!l.readable&&l.autoDestroy&&l.destroy(),l},l.destroy=function(){if(!o)return o=!0,a=!0,s.length=0,l.writable=l.readable=!1,l.emit("close"),l},l.pause=function(){if(!l.paused)return l.paused=!0,l},l.resume=function(){return l.paused&&(l.paused=!1,l.emit("resume")),c(),l.paused||l.emit("drain"),l},l}t.exports=i,i.through=i}).call(this,e("_process"))},{_process:105,stream:122}],125:[function(e,t,n){n.isatty=function(){return!1},n.ReadStream=function(){throw new Error("tty.ReadStream is not implemented")},n.WriteStream=function(){throw new Error("tty.ReadStream is not implemented")}},{}],126:[function(e,t,n){(function(t,r){"use strict";var i=e("bit-twiddle"),a=e("dup");t.__TYPEDARRAY_POOL||(t.__TYPEDARRAY_POOL={UINT8:a([32,0]),UINT16:a([32,0]),UINT32:a([32,0]),INT8:a([32,0]),INT16:a([32,0]),INT32:a([32,0]),FLOAT:a([32,0]),DOUBLE:a([32,0]),DATA:a([32,0]),UINT8C:a([32,0]),BUFFER:a([32,0])});var o="undefined"!=typeof Uint8ClampedArray,s=t.__TYPEDARRAY_POOL;s.UINT8C||(s.UINT8C=a([32,0])),s.BUFFER||(s.BUFFER=a([32,0]));var u=s.DATA,l=s.BUFFER;function c(e){if(e){var t=e.length||e.byteLength,n=i.log2(t);u[n].push(e)}}function f(e){e=i.nextPow2(e);var t=i.log2(e),n=u[t];return n.length>0?n.pop():new ArrayBuffer(e)}function h(e){return new Uint8Array(f(e),0,e)}function p(e){return new Uint16Array(f(2*e),0,e)}function d(e){return new Uint32Array(f(4*e),0,e)}function g(e){return new Int8Array(f(e),0,e)}function v(e){return new Int16Array(f(2*e),0,e)}function m(e){return new Int32Array(f(4*e),0,e)}function w(e){return new Float32Array(f(4*e),0,e)}function y(e){return new Float64Array(f(8*e),0,e)}function _(e){return o?new Uint8ClampedArray(f(e),0,e):h(e)}function b(e){return new DataView(f(e),0,e)}function x(e){e=i.nextPow2(e);var t=i.log2(e),n=l[t];return n.length>0?n.pop():new r(e)}n.free=function(e){if(r.isBuffer(e))l[i.log2(e.length)].push(e);else{if("[object ArrayBuffer]"!==Object.prototype.toString.call(e)&&(e=e.buffer),!e)return;var t=e.length||e.byteLength,n=0|i.log2(t);u[n].push(e)}},n.freeUint8=n.freeUint16=n.freeUint32=n.freeInt8=n.freeInt16=n.freeInt32=n.freeFloat32=n.freeFloat=n.freeFloat64=n.freeDouble=n.freeUint8Clamped=n.freeDataView=function(e){c(e.buffer)},n.freeArrayBuffer=c,n.freeBuffer=function(e){l[i.log2(e.length)].push(e)},n.malloc=function(e,t){if(void 0===t||"arraybuffer"===t)return f(e);switch(t){case"uint8":return h(e);case"uint16":return p(e);case"uint32":return d(e);case"int8":return g(e);case"int16":return v(e);case"int32":return m(e);case"float":case"float32":return w(e);case"double":case"float64":return y(e);case"uint8_clamped":return _(e);case"buffer":return x(e);case"data":case"dataview":return b(e);default:return null}return null},n.mallocArrayBuffer=f,n.mallocUint8=h,n.mallocUint16=p,n.mallocUint32=d,n.mallocInt8=g,n.mallocInt16=v,n.mallocInt32=m,n.mallocFloat32=n.mallocFloat=w,n.mallocFloat64=n.mallocDouble=y,n.mallocUint8Clamped=_,n.mallocDataView=b,n.mallocBuffer=x,n.clearCache=function(){for(var e=0;e<32;++e)s.UINT8[e].length=0,s.UINT16[e].length=0,s.UINT32[e].length=0,s.INT8[e].length=0,s.INT16[e].length=0,s.INT32[e].length=0,s.FLOAT[e].length=0,s.DOUBLE[e].length=0,s.UINT8C[e].length=0,u[e].length=0,l[e].length=0}}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer)},{"bit-twiddle":3,buffer:8,dup:28}],127:[function(e,t,n){"use strict";t.exports=function(e,t,n){return 0===e.length?e:t?(n||e.sort(t),function(e,t){for(var n=1,r=e.length,i=e[0],a=e[0],o=1;o<r;++o)if(a=i,t(i=e[o],a)){if(o===n){n++;continue}e[n++]=i}return e.length=n,e}(e,t)):(n||e.sort(),function(e){for(var t=1,n=e.length,r=e[0],i=e[0],a=1;a<n;++a,i=r)if(i=r,(r=e[a])!==i){if(a===t){t++;continue}e[t++]=r}return e.length=t,e}(e))}},{}],128:[function(e,t,n){var r=e("mime"),i=e("fs");t.exports=function(e){return"data:"+r.lookup(e)+";base64,"+i.readFileSync(e,"base64")}},{fs:7,mime:59}],129:[function(e,t,n){(function(e){function n(t){try{if(!e.localStorage)return!1}catch(e){return!1}var n=e.localStorage[t];return null!=n&&"true"===String(n).toLowerCase()}t.exports=function(e,t){if(n("noDeprecation"))return e;var r=!1;return function(){if(!r){if(n("throwDeprecation"))throw new Error(t);n("traceDeprecation")?console.trace(t):console.warn(t),r=!0}return e.apply(this,arguments)}}}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],130:[function(e,t,n){arguments[4][52][0].apply(n,arguments)},{dup:52}],131:[function(e,t,n){t.exports=function(e){return e&&"object"==typeof e&&"function"==typeof e.copy&&"function"==typeof e.fill&&"function"==typeof e.readUInt8}},{}],132:[function(e,t,n){(function(t,r){var i=/%[sdj%]/g;n.format=function(e){if(!m(e)){for(var t=[],n=0;n<arguments.length;n++)t.push(s(arguments[n]));return t.join(" ")}n=1;for(var r=arguments,a=r.length,o=String(e).replace(i,function(e){if("%%"===e)return"%";if(n>=a)return e;switch(e){case"%s":return String(r[n++]);case"%d":return Number(r[n++]);case"%j":try{return JSON.stringify(r[n++])}catch(e){return"[Circular]"}default:return e}}),u=r[n];n<a;u=r[++n])g(u)||!_(u)?o+=" "+u:o+=" "+s(u);return o},n.deprecate=function(e,i){if(w(r.process))return function(){return n.deprecate(e,i).apply(this,arguments)};if(!0===t.noDeprecation)return e;var a=!1;return function(){if(!a){if(t.throwDeprecation)throw new Error(i);t.traceDeprecation?console.trace(i):console.error(i),a=!0}return e.apply(this,arguments)}};var a,o={};function s(e,t){var r={seen:[],stylize:l};return arguments.length>=3&&(r.depth=arguments[2]),arguments.length>=4&&(r.colors=arguments[3]),d(t)?r.showHidden=t:t&&n._extend(r,t),w(r.showHidden)&&(r.showHidden=!1),w(r.depth)&&(r.depth=2),w(r.colors)&&(r.colors=!1),w(r.customInspect)&&(r.customInspect=!0),r.colors&&(r.stylize=u),c(r,e,r.depth)}function u(e,t){var n=s.styles[t];return n?"["+s.colors[n][0]+"m"+e+"["+s.colors[n][1]+"m":e}function l(e,t){return e}function c(e,t,r){if(e.customInspect&&t&&k(t.inspect)&&t.inspect!==n.inspect&&(!t.constructor||t.constructor.prototype!==t)){var i=t.inspect(r,e);return m(i)||(i=c(e,i,r)),i}var a=function(e,t){if(w(t))return e.stylize("undefined","undefined");if(m(t)){var n="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(n,"string")}if(v(t))return e.stylize(""+t,"number");if(d(t))return e.stylize(""+t,"boolean");if(g(t))return e.stylize("null","null")}(e,t);if(a)return a;var o=Object.keys(t),s=function(e){var t={};return e.forEach(function(e,n){t[e]=!0}),t}(o);if(e.showHidden&&(o=Object.getOwnPropertyNames(t)),x(t)&&(o.indexOf("message")>=0||o.indexOf("description")>=0))return f(t);if(0===o.length){if(k(t)){var u=t.name?": "+t.name:"";return e.stylize("[Function"+u+"]","special")}if(y(t))return e.stylize(RegExp.prototype.toString.call(t),"regexp");if(b(t))return e.stylize(Date.prototype.toString.call(t),"date");if(x(t))return f(t)}var l,_="",E=!1,T=["{","}"];(p(t)&&(E=!0,T=["[","]"]),k(t))&&(_=" [Function"+(t.name?": "+t.name:"")+"]");return y(t)&&(_=" "+RegExp.prototype.toString.call(t)),b(t)&&(_=" "+Date.prototype.toUTCString.call(t)),x(t)&&(_=" "+f(t)),0!==o.length||E&&0!=t.length?r<0?y(t)?e.stylize(RegExp.prototype.toString.call(t),"regexp"):e.stylize("[Object]","special"):(e.seen.push(t),l=E?function(e,t,n,r,i){for(var a=[],o=0,s=t.length;o<s;++o)S(t,String(o))?a.push(h(e,t,n,r,String(o),!0)):a.push("");return i.forEach(function(i){i.match(/^\d+$/)||a.push(h(e,t,n,r,i,!0))}),a}(e,t,r,s,o):o.map(function(n){return h(e,t,r,s,n,E)}),e.seen.pop(),function(e,t,n){if(e.reduce(function(e,t){return 0,t.indexOf("\n")>=0&&0,e+t.replace(/\u001b\[\d\d?m/g,"").length+1},0)>60)return n[0]+(""===t?"":t+"\n ")+" "+e.join(",\n ")+" "+n[1];return n[0]+t+" "+e.join(", ")+" "+n[1]}(l,_,T)):T[0]+_+T[1]}function f(e){return"["+Error.prototype.toString.call(e)+"]"}function h(e,t,n,r,i,a){var o,s,u;if((u=Object.getOwnPropertyDescriptor(t,i)||{value:t[i]}).get?s=u.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):u.set&&(s=e.stylize("[Setter]","special")),S(r,i)||(o="["+i+"]"),s||(e.seen.indexOf(u.value)<0?(s=g(n)?c(e,u.value,null):c(e,u.value,n-1)).indexOf("\n")>-1&&(s=a?s.split("\n").map(function(e){return" "+e}).join("\n").substr(2):"\n"+s.split("\n").map(function(e){return" "+e}).join("\n")):s=e.stylize("[Circular]","special")),w(o)){if(a&&i.match(/^\d+$/))return s;(o=JSON.stringify(""+i)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(o=o.substr(1,o.length-2),o=e.stylize(o,"name")):(o=o.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),o=e.stylize(o,"string"))}return o+": "+s}function p(e){return Array.isArray(e)}function d(e){return"boolean"==typeof e}function g(e){return null===e}function v(e){return"number"==typeof e}function m(e){return"string"==typeof e}function w(e){return void 0===e}function y(e){return _(e)&&"[object RegExp]"===E(e)}function _(e){return"object"==typeof e&&null!==e}function b(e){return _(e)&&"[object Date]"===E(e)}function x(e){return _(e)&&("[object Error]"===E(e)||e instanceof Error)}function k(e){return"function"==typeof e}function E(e){return Object.prototype.toString.call(e)}function T(e){return e<10?"0"+e.toString(10):e.toString(10)}n.debuglog=function(e){if(w(a)&&(a=t.env.NODE_DEBUG||""),e=e.toUpperCase(),!o[e])if(new RegExp("\\b"+e+"\\b","i").test(a)){var r=t.pid;o[e]=function(){var t=n.format.apply(n,arguments);console.error("%s %d: %s",e,r,t)}}else o[e]=function(){};return o[e]},n.inspect=s,s.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},s.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},n.isArray=p,n.isBoolean=d,n.isNull=g,n.isNullOrUndefined=function(e){return null==e},n.isNumber=v,n.isString=m,n.isSymbol=function(e){return"symbol"==typeof e},n.isUndefined=w,n.isRegExp=y,n.isObject=_,n.isDate=b,n.isError=x,n.isFunction=k,n.isPrimitive=function(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e},n.isBuffer=e("./support/isBuffer");var A=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function S(e,t){return Object.prototype.hasOwnProperty.call(e,t)}n.log=function(){var e,t;console.log("%s - %s",(e=new Date,t=[T(e.getHours()),T(e.getMinutes()),T(e.getSeconds())].join(":"),[e.getDate(),A[e.getMonth()],t].join(" ")),n.format.apply(n,arguments))},n.inherits=e("inherits"),n._extend=function(e,t){if(!t||!_(t))return e;for(var n=Object.keys(t),r=n.length;r--;)e[n[r]]=t[n[r]];return e}}).call(this,e("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./support/isBuffer":131,_process:105,inherits:130}],133:[function(e,t,n){t.exports=function(e,t,n,r){!function(t,n,r){var i=e.modules[n][1],a=e.copy(r);a.number=e.options.sequencerCounter++,a.name=r.name||n||i.name,a.description=r.description||i.description,a.selector=r.selector||"ismod-"+n,a.container=r.container||e.options.selector,a.image=t,a.inBrowser=e.options.inBrowser,a.step={name:a.name,description:a.description,ID:a.number,imageName:a.image,inBrowser:e.options.inBrowser,ui:e.options.ui,options:a};var o=e.events,s=e.modules[n][0](a,o);e.images[t].steps.push(s)}(t,n,r)}},{}],134:[function(e,t,n){var r=e("fs");t.exports=function(t="./output/",n,i){if(t="/"==t[t.length-1]?t:t+"/",n.options.inBrowser)return!1;var a,o;r.access(t,function(e){e&&console.error(e)}),a=t,o=function(a){var o=1;for(var s in a)if(null!=a[s].match(/^sequencer(.*)$/)){var u=parseInt(a[s].match(/^sequencer(.*)$/)[1]);o=u>=o?u+1:o}r.mkdir(t+"sequencer"+o,function(){var a=t+"sequencer"+o+"/";for(var s in n.images){var u=n.images[s].steps;if(i){var l=u.slice(-1)[0].output.src,c=u.slice(-1)[0].output.format,f=e("data-uri-to-buffer")(l);r.writeFile(a+s+"_"+(u.length-1)+"."+c,f,function(){})}else for(var h in u){l=u[h].output.src,c=u[h].output.format,f=e("data-uri-to-buffer")(l);r.writeFile(a+s+"_"+h+"."+c,f,function(){})}}})},r.readdir(a,function(e,t){var n=[];if(void 0===t||0==t.length)return o(n),[];for(var i=0;i<t.length;++i){var s=t[i];if("."!==s[0]){var u=a+"/"+s;r.stat(u,function(e,r){if(r.isDirectory()&&n.push(this.file),t.length===this.index+1)return o(n)}.bind({index:i,file:s}))}}})}},{"data-uri-to-buffer":27,fs:7}],135:[function(e,t,n){function r(e){return Object.prototype.toString.call(e).split(" ")[1].slice(0,-1)}function i(e){return"Array"==r(e)?e:[e]}function a(e){if("Array"==r(e))return e.slice();if("Object"==r(e)){var t={};for(var n in e)t[n]=a(e[n]);return t}return e}t.exports=function(e,t,n){for(var o in n=[],this.images)n.push(o);var s,u={},l=t;if("+"==t?t=["o_string_a","string_a","o_object"]:"-"==t?t=["o_string_a","number_a"]:"^"==t?t=["o_string_a","number","string","o_object"]:"r"==t?t=["o_string_a","o_number"]:"l"==t&&(t=["o_string","string","o_function"]),"o_object"==t[t.length-1]?"Object"!=r(e[e.length-1])&&e.push({}):"o_number"==t[t.length-1]?"number"!=typeof e[e.length-1]&&"Object"!=r(e[0])&&e.push(1):"o_function"==t[t.length-1]&&"Function"!=r(e[e.length-1])&&"Object"!=r(e[0])&&e.push(function(){}),"o_string_a"==t[0]){if(e.length==t.length-1){var c=!1;for(var f in e){if(!t[parseInt(f)+1].includes((s=e[f],typeof("Array"==r(s)?s[0]:s)))){c=!1;break}c=!0}c&&e.splice(0,0,a(n))}}else if("o_string"==t[0]&&"l"==l&&2==e.length&&"string"==typeof e[0]){for(var h=1;this.images.hasOwnProperty("image"+h);)h++;e.splice(0,0,"image"+h)}if(e.length==t.length)for(var f in t)"_a"==t[f].substr(t[f].length-2,2)&&(e[f]=i(e[f]));if(1==e.length){if(u=a(e[0]),"r"!=l&&"l"!=l)for(var p in u)u[p]=i(u[p])}else if("r"==l)for(var p in e[0])u[e[0][p]]=e[1];else if("l"==l)(u={images:{},callback:e[2]}).images[e[0]]=e[1];else for(var p in e[0]){if(u[o=e[0][p]]=[],"+"==l)for(var d in e[1])u[o].push({name:e[1][d],o:e[2]});if("-"==l&&(u[o]=e[1]),"^"==l){var g=this.images[o].steps.length,v=e[1];(v=v==g?v:v%g)<0&&(v+=g+1),u[o].push({index:v,name:e[2],o:e[3]})}}if("l"==l)for(var f in u.loadedimages=[],u.images)u.loadedimages.push(f);return u}},{}],136:[function(e,t,n){if("undefined"!=typeof window)window.$=window.jQuery=e("jquery"),r=!0;else var r=!1;ImageSequencer=function(t){function n(e){return Object.prototype.toString.call(e).split(" ")[1].slice(0,-1)}function i(e){if("Array"==n(e))return e.slice();if("Object"==n(e)){var t={};for(var r in e)t[r]=i(e[r]);return t}return e}(t=t||{}).inBrowser=t.inBrowser||r,t.sequencerCounter=0;var a=e("./Modules"),o=e("./FormatInput"),s={},u=[],l=e("./ui/UserInterface")();e("fs");function c(e,t){t>0&&(thisStep=s[e].steps[t],thisStep.UI.onRemove(thisStep.options.step),s[e].steps.splice(t,1))}function f(){var t=[],n=this;for(var r in arguments)t.push(i(arguments[r]));var a=o.call(this,t,"l");u.push({method:"loadImages",json_q:i(a)});var s=this.copy(a.loadedimages),l={name:"ImageSequencer Wrapper",sequencer:this,addSteps:this.addSteps,removeSteps:this.removeSteps,insertSteps:this.insertSteps,run:this.run,UI:this.UI,setUI:this.setUI,images:s};!function t(r){if(r!=s.length){var i=s[r];e("./ui/LoadImage")(n,i,a.images[i],function(){t(++r)})}else a.callback.call(l)}(0)}return{name:"ImageSequencer",options:t,inputlog:u,modules:a,images:s,events:l,loadImages:f,loadImage:f,addSteps:function(){var t,n="ImageSequencer"==this.name?this:this.sequencer,r="ImageSequencer"==this.name?[]:[this.images];for(var a in arguments)r.push(i(arguments[a]));for(var s in t=o.call(n,r,"+"),u.push({method:"addSteps",json_q:i(t)}),t)for(var l in t[s])e("./AddStep")(n,s,t[s][l].name,t[s][l].o);return this},removeSteps:function(e,t){var n,r={},a="ImageSequencer"==this.name?this:this.sequencer,s="ImageSequencer"==this.name?[]:[this.images];for(var l in arguments)s.push(i(arguments[l]));var f=o.call(a,s,"-");for(var h in u.push({method:"removeSteps",json_q:i(f)}),f)for(var p in n=f[h].sort(function(e,t){return t-e}),r[h]=n[n.length-1],n)c(h,n[p]);return this},insertSteps:function(t,n,r,a){var s={},l="ImageSequencer"==this.name?this:this.sequencer,c="ImageSequencer"==this.name?[]:[this.images];for(var f in arguments)c.push(arguments[f]);var h=o.call(l,c,"^");for(var p in u.push({method:"insertSteps",json_q:i(h)}),h){var d=h[p];for(var g in d=d.sort(function(e,t){return t.index-e.index}))e("./InsertStep")(l,p,d[g].index,d[g].name,d[g].o);s[p]=d[d.length-1].index}return this},replaceImage:function(t,n,r){return(r=r||{}).callback=r.callback||function(){},e("./ReplaceImage")(this,t,n,r)},run:function(t,r,a){let s;"test"!=arguments[0]&&(s=t,delete arguments[0]);var u="ImageSequencer"==this.name?this:this.sequencer,l="ImageSequencer"==this.name?[]:[this.images];for(var c in arguments)l.push(i(arguments[c]));var f=function(){};for(var c in l)"Function"==n(l[c])&&(f=l.splice(c,1)[0]);var h=o.call(u,l,"r");return e("./Run")(u,h,f,s),!0},setUI:function(t){this.events=e("./ui/UserInterface")(t)},exportBin:function(t,n){return e("./ExportBin")(t,this,n)},modulesInfo:function(e){var t={};if("load-image"==e)return{};if(0==arguments.length)for(var n in a)t[n]=a[n][1];else t=a[e][1];return t},log:function(e,n){"none"!=t.ui&&(1==arguments.length?console.log(arguments[0]):2==arguments.length&&console.log(e,n))},objTypeOf:n,copy:i}},t.exports=ImageSequencer},{"./AddStep":133,"./ExportBin":134,"./FormatInput":135,"./InsertStep":137,"./Modules":138,"./ReplaceImage":139,"./Run":140,"./ui/LoadImage":170,"./ui/UserInterface":171,fs:7,jquery:56}],137:[function(e,t,n){t.exports=function(e,t,n,r,i){!function(t,n,r,i){var a=e.copy(i);a.number=e.options.sequencerCounter++,a.name=i.name||r,a.selector=i.selector||"ismod-"+r,a.container=i.container||e.options.selector,a.image=t,-1==n&&(n=e.images[t].steps.length),a.step={name:a.name,description:a.description,url:a.url,ID:a.number,imageName:a.image,inBrowser:e.options.inBrowser,ui:e.options.ui,options:a};var o=e.events,s=e.modules[r][0](a,o);e.images[t].steps.splice(n,0,s)}(t,n,r,i)}},{}],138:[function(e,t,n){t.exports={channel:[e("./modules/Channel/Module"),e("./modules/Channel/info")],brightness:[e("./modules/Brightness/Module"),e("./modules/Brightness/info")],"edge-detect":[e("./modules/EdgeDetect/Module"),e("./modules/EdgeDetect/info")],ndvi:[e("./modules/Ndvi/Module"),e("./modules/Ndvi/info")],invert:[e("./modules/Invert/Module"),e("./modules/Invert/info")],crop:[e("./modules/Crop/Module"),e("./modules/Crop/info")],"segmented-colormap":[e("./modules/Colormap/Module"),e("./modules/Colormap/info")],"decode-qr":[e("./modules/DecodeQr/Module"),e("./modules/DecodeQr/info")],"fisheye-gl":[e("./modules/FisheyeGl/Module"),e("./modules/FisheyeGl/info")],dynamic:[e("./modules/Dynamic/Module"),e("./modules/Dynamic/info")],blur:[e("./modules/Blur/Module"),e("./modules/Blur/info")],saturation:[e("./modules/Saturation/Module"),e("./modules/Saturation/info")]}},{"./modules/Blur/Module":142,"./modules/Blur/info":143,"./modules/Brightness/Module":144,"./modules/Brightness/info":145,"./modules/Channel/Module":146,"./modules/Channel/info":147,"./modules/Colormap/Module":149,"./modules/Colormap/info":150,"./modules/Crop/Module":152,"./modules/Crop/info":153,"./modules/DecodeQr/Module":154,"./modules/DecodeQr/info":155,"./modules/Dynamic/Module":156,"./modules/Dynamic/info":157,"./modules/EdgeDetect/Module":159,"./modules/EdgeDetect/info":160,"./modules/FisheyeGl/Module":161,"./modules/FisheyeGl/info":162,"./modules/Invert/Module":163,"./modules/Invert/info":164,"./modules/Ndvi/Module":165,"./modules/Ndvi/info":166,"./modules/Saturation/Module":167,"./modules/Saturation/info":168}],139:[function(e,t,n){t.exports=function(e,t,n,r){if(!e.options.inBrowser)return!1;for(var i=ImageSequencer({ui:!1}),a=document.querySelectorAll(t),o=[],s=0;s<a.length;s++)a[s]instanceof HTMLImageElement&&o.push(a[s]);function u(e,t){var n=e.src,r=n.split(".").pop(),a=new XMLHttpRequest;function o(n){i.loadImage(n,function(){this.addSteps(t).run({stop:function(){}},function(t){e.src=t})})}a.open("GET",n,!0),a.responseType="arraybuffer",a.onload=function(e){var t=new Uint8Array(this.response),n=String.fromCharCode.apply(null,t),i=btoa(n);o("data:image/"+r+";base64,"+i)},"data:image/"!=n.substr(0,11).toLowerCase()?a.send():o(n)}for(s=0;s<o.length;s++)u(o[s],n),s==o.length-1&&r.callback()}},{}],140:[function(e,t,n){t.exports=function(e,t,n,r){return r||(r={stop:function(){}}),function(t){var i=[];for(var a in t)for(var o=e.images[a].steps.length,s=t[a],u=0;u<o-s;u++)i.push({image:a,i:s+u});!function t(i,a){if(a==i.length&&void 0!==i[a-1]){var o=i[a-1].image;if("Function"==e.objTypeOf(n)){var s=e.images[o].steps,u=s[s.length-1].output.src;return n(u),!0}}if(void 0!==i[a]){o=i[a].image;var l=i[a].i,c=e.images[o].steps[l-1].output;e.images[o].steps[l].draw(e.copy(c),function(){t(i,++a)},r)}}(i,0)}(t=function(t){for(var n in t)0==t[n]&&1==e.images[n].steps.length?delete t[n]:0==t[n]&&t[n]++;for(var n in t)for(var r=e.images[n].steps[t[n]-1];void 0===r||void 0===r.output;)r=e.images[n].steps[--t[n]-1];return t}(t))}},{}],141:[function(e,t,n){t.exports=function(e,t){let n=[[2/159,4/159,5/159,4/159,2/159],[4/159,9/159,12/159,9/159,4/159],[5/159,12/159,15/159,12/159,5/159],[4/159,9/159,12/159,9/159,4/159],[2/159,4/159,5/159,4/159,2/159]];n=function(e){let t=[];for(let n=e.length-1;n>=0;n--){let r=[];for(let t=e[n].length-1;t>=0;t--)r.push(e[n][t]);t.push(r)}return t}(n);var r=e;for(let t=0;t<e.shape[0];t++)for(let a=0;a<e.shape[1];a++){let o=i([t,a]),s=[0,0,0,0];for(let e=0;e<n.length;e++)for(let t=0;t<n.length;t++)s[0]+=r.get(o[e][t][0],o[e][t][1],0)*n[e][t],s[1]+=r.get(o[e][t][0],o[e][t][1],1)*n[e][t],s[2]+=r.get(o[e][t][0],o[e][t][1],2)*n[e][t],s[3]+=r.get(o[e][t][0],o[e][t][1],3)*n[e][t];e.set(t,a,0,s[0]),e.set(t,a,1,s[1]),e.set(t,a,2,s[2])}return e;function i(e){let t=e[0],n=e[1],r=[];for(let e=-2;e<=2;e++){let i=[];for(let r=-2;r<=2;r++)i.push([t+e,n+r]);r.push(i)}return r}}},{}],142:[function(e,t,n){t.exports=function(t,n){return(t=t||{}).blur=t.blur||2,n.onSetup(t.step),{options:t,draw:function(r,i,a){a.stop(!0),a.overrideFlag=!0,n.onDraw(t.step);var o=this;return e("../_nomodule/PixelManipulation.js")(r,{output:function(e,r,i){o.output={src:r,format:i},t.step.output=r,n.onComplete(t.step)},changePixel:function(e,t,n,r){return[e,t,n,r]},extraManipulation:function(n){return n=e("./Blur")(n,t.blur)},format:r.format,image:t.image,callback:i})},output:void 0,UI:n}}},{"../_nomodule/PixelManipulation.js":169,"./Blur":141}],143:[function(e,t,n){t.exports={name:"Blur",description:"Gaussian blur an image by a given value, typically 0-5",inputs:{blur:{type:"integer",desc:"amount of gaussian blur(Less blur gives more detail, typically 0-5)",default:2}}}},{}],144:[function(e,t,n){t.exports=function(t,n){return t=t||{},n.onSetup(t.step),{options:t,draw:function(r,i,a){a.stop(!0),a.overrideFlag=!0,n.onDraw(t.step);var o=this;return e("../_nomodule/PixelManipulation.js")(r,{output:function(e,r,i){o.output={src:r,format:i},t.step.output=r,n.onComplete(t.step)},changePixel:function(e,n,r,i){var a=t.brightness/100;return[e=a*e<255?a*e:255,n=a*n<255?a*n:255,r=a*r<255?a*r:255,i]},format:r.format,image:t.image,inBrowser:t.inBrowser,callback:i})},output:void 0,UI:n}}},{"../_nomodule/PixelManipulation.js":169}],145:[function(e,t,n){t.exports={name:"Brightness",description:"Change the brightness of the image by given percent value",inputs:{brightness:{type:"integer",desc:"% brightness for the new image",default:0}}}},{}],146:[function(e,t,n){t.exports=function(t,n){return(t=t||{}).channel=t.channel||"green",n.onSetup(t.step),{options:t,draw:function(r,i,a){a.stop(!0),a.overrideFlag=!0,n.onDraw(t.step);var o=this;return e("../_nomodule/PixelManipulation.js")(r,{output:function(e,r,i){o.output={src:r,format:i},t.step.output=r,n.onComplete(t.step)},changePixel:function(e,n,r,i){return"red"==t.channel?[e,0,0,i]:"green"==t.channel?[0,n,0,i]:"blue"==t.channel?[0,0,r,i]:void 0},format:r.format,image:t.image,inBrowser:t.inBrowser,callback:i})},output:void 0,UI:n}}},{"../_nomodule/PixelManipulation.js":169}],147:[function(e,t,n){t.exports={name:"Channel",description:"Displays only one color channel of an image -- default is green",inputs:{channel:{type:"select",desc:"Color channel",default:"green",values:["red","green","blue"]}}}},{}],148:[function(e,t,n){function r(e){return function(t){var n,r,i,a,o,s,u,l,c,f,h,p,d,g;if(s=(h=[0,0])[0],u=h[1],a=(p=[e[0][0],1])[1],t<(i=p[0]))return s;for(n=l=0,f=e.length;l<f;n=++l){if(o=(d=e[n])[0],s=d[1],u=d[2],i=o,n===e.length-1){a=1;break}if(a=e[n+1][0],o<=t&&t<a)break}for(r=[],n=c=0,g=s.length;0<=g?c<g:c>g;n=0<=g?++c:--c)r[n]=(t-i)/(a-i)*(u[n]-s[n])+s[n];return r}}t.exports=function(e,t){return t.colormap=t.colormap||i.default,"object"==typeof t.colormap?colormapFunction=r(t.colormap):i.hasOwnProperty(t.colormap)?colormapFunction=i[t.colormap]:colormapFunction=i.default,colormapFunction(e/255)};var i={greyscale:r([[0,[0,0,0],[255,255,255]],[1,[255,255,255],[255,255,255]]]),default:r([[0,[0,0,255],[0,255,0]],[.25,[0,255,0],[255,255,0]],[.5,[0,255,255],[255,255,0]],[.75,[255,255,0],[255,0,0]]]),ndvi:r([[0,[0,0,255],[38,195,195]],[.5,[0,150,0],[255,255,0]],[.75,[255,255,0],[255,50,50]]]),stretched:r([[0,[0,0,255],[0,0,255]],[.1,[0,0,255],[38,195,195]],[.5,[0,150,0],[255,255,0]],[.7,[255,255,0],[255,50,50]],[.9,[255,50,50],[255,50,50]]]),fastie:r([[0,[255,255,255],[0,0,0]],[.167,[0,0,0],[255,255,255]],[.33,[255,255,255],[0,0,0]],[.5,[0,0,0],[140,140,255]],[.55,[140,140,255],[0,255,0]],[.63,[0,255,0],[255,255,0]],[.75,[255,255,0],[255,0,0]],[.95,[255,0,0],[255,0,255]]])}},{}],149:[function(e,t,n){t.exports=function(t,n){return t=t||{},n.onSetup(t.step),{options:t,draw:function(r,i,a){a.stop(!0),a.overrideFlag=!0,n.onDraw(t.step);var o=this;return e("../_nomodule/PixelManipulation.js")(r,{output:function(e,r,i){o.output={src:r,format:i},t.step.output=r,n.onComplete(t.step)},changePixel:function(n,r,i,a){var o=(n+r+i)/3,s=e("./Colormap")(o,t);return[s[0],s[1],s[2],255]},format:r.format,image:t.image,inBrowser:t.inBrowser,callback:i})},output:void 0,UI:n}}},{"../_nomodule/PixelManipulation.js":169,"./Colormap":148}],150:[function(e,t,n){t.exports={name:"Colormap",description:"Maps brightness values (average of red, green & blue) to a given color lookup table, made up of a set of one more color gradients.\n\nFor example, 'cooler' colors like blue could represent low values, while 'hot' colors like red could represent high values.",inputs:{colormap:{type:"select",desc:"Name of the Colormap",default:"default",values:["default","greyscale","stretched","fastie"]}}}},{}],151:[function(e,t,n){(function(n){t.exports=function(t,r,i){var a=e("get-pixels"),o=e("save-pixels");r.x=parseInt(r.x)||0,r.y=parseInt(r.y)||0,a(t.src,function(e,a){r.w=parseInt(r.w)||Math.floor(.5*a.shape[0]),r.h=parseInt(r.h)||Math.floor(.5*a.shape[1]);for(var s=r.x,u=r.y,l=r.w,c=r.h,f=a.shape[0],h=new Uint8Array(4*l*c),p=u;p<u+c;p++)h.set(a.data.slice(4*p*f+s,4*p*f+s+4*l),4*l*(p-u));a.data=h,a.shape=[l,c,4],a.stride[1]=4*l,r.format=t.format;var d=[],g=0,v=o(a,r.format);v.on("data",function(e){g+=e.length,d.push(e)}),v.on("end",function(){var e=n.concat(d,g).toString("base64"),t="data:image/"+r.format+";base64,"+e;i(t,r.format)})})}}).call(this,e("buffer").Buffer)},{buffer:8,"get-pixels":38,"save-pixels":121}],152:[function(e,t,n){t.exports=function(t,n){return t=t||{},n.onSetup(t.step),{options:t,draw:function(r,i){n.onDraw(t.step);var a=this;e("./Crop")(r,t,function(e,r){a.output={src:e,format:r},t.step.output=e,n.onComplete(t.step),i()})},output:void 0,UI:n}}},{"./Crop":151}],153:[function(e,t,n){t.exports={name:"Crop",description:"Crop image to given x, y, w, h in pixels, measured from top left",url:"https://github.com/publiclab/image-sequencer/tree/master/MODULES.md",inputs:{x:{type:"integer",desc:"X-position (measured from left) from where cropping starts",default:0},y:{type:"integer",desc:"Y-position (measured from top) from where cropping starts",default:0},w:{type:"integer",desc:"Width of crop",default:"(50%)"},h:{type:"integer",desc:"Height of crop",default:"(50%)"}}}},{}],154:[function(e,t,n){t.exports=function(t,n){t=t||{},n.onSetup(t.step);var r=e("jsqr"),i=e("get-pixels");return{options:t,draw:function(e,a){n.onDraw(t.step);var o=this;i(e.src,function(i,s){if(i)throw i;var u=s.shape[0],l=s.shape[1],c=r.decodeQRFromImage(s.data,u,l);o.output=e,o.output.data=c,a(),t.step.output=e.src,t.step.qrval=c,n.onComplete(t.step)})},output:void 0,UI:n}}},{"get-pixels":38,jsqr:57}],155:[function(e,t,n){t.exports={name:"Decode QR",description:"Search for and decode a QR code in the image",inputs:{},outputs:{qrval:{type:"text"}}}},{}],156:[function(require,module,exports){module.exports=function Dynamic(options,UI){var output;function draw(input,callback,progressObj){progressObj.stop(!0),progressObj.overrideFlag=!0,UI.onDraw(options.step);var step=this;function generator(expression){var func="f = function (r, g, b, a) { var R = r, G = g, B = b, A = a;",f;return func+="return ",func=func+expression+"}",eval(func),f}options.monochrome=options.monochrome||"(R+G+B)/3";var channels=["red","green","blue","alpha"];function changePixel(e,t,n,r){return[options.red_function(e,t,n,r),options.green_function(e,t,n,r),options.blue_function(e,t,n,r),options.alpha_function(e,t,n,r)]}function getNeighbourPixel(e,t,n,r,i){return[e.get(t+r,n+i,0),e.get(t+r,n+i,1),e.get(t+r,n+i,2),e.get(t+r,n+i,3)]}function output(e,t,n){step.output={src:t,format:n},options.step.output=t,UI.onComplete(options.step)}return channels.forEach(function(e){options.hasOwnProperty(e)?options[e+"_function"]=generator(options[e]):"alpha"===e?options.alpha_function=function(){return 255}:options[e+"_function"]=generator(options.monochrome)}),require("../_nomodule/PixelManipulation.js")(input,{output:output,changePixel:changePixel,getNeighbourPixel:getNeighbourPixel,getNeighborPixel:getNeighbourPixel,format:input.format,image:options.image,inBrowser:options.inBrowser,callback:callback})}return options=options||{},UI.onSetup(options.step),{options:options,draw:draw,output:output,UI:UI}}},{"../_nomodule/PixelManipulation.js":169}],157:[function(e,t,n){t.exports={name:"Dynamic",description:"A module which accepts JavaScript math expressions to produce each color channel based on the original image's color. See <a href='https://publiclab.org/wiki/infragram-sandbox'>Infragrammar</a>.",inputs:{red:{type:"input",desc:"Expression to return for red channel with R, G, B, and A inputs",default:"r"},green:{type:"input",desc:"Expression to return for green channel with R, G, B, and A inputs",default:"g"},blue:{type:"input",desc:"Expression to return for blue channel with R, G, B, and A inputs",default:"b"},"monochrome (fallback)":{type:"input",desc:"Expression to return with R, G, B, and A inputs; fallback for other channels if none provided",default:"r + g + b"}}}},{}],158:[function(e,t,n){const r=e("lodash"),i=[[-1,0,1],[-2,0,2],[-1,0,1]],a=[[-1,-2,-1],[0,0,0],[1,2,1]];let o,s=[],u=[],l=[],c=[];function f(e,t,n,r,o){let s=0;for(let t=0;t<3;t++)for(let n=0;n<3;n++){let a=r+t-1,u=o+n-1;s+=e.get(a,u,0)*i[t][n]}let u=0;for(let t=0;t<3;t++)for(let n=0;n<3;n++){let i=r+t-1,s=o+n-1;u+=e.get(i,s,0)*a[t][n]}return{pixel:[t,t,t,Math.sqrt(Math.pow(s,2)+Math.pow(u,2))],angle:Math.atan2(u,s)}}t.exports=function(e,t,n,i){o=!i;for(var a=0;a<e.shape[0];a++){s.push([]),u.push([]);for(var d=0;d<e.shape[1];d++){var g=f(e,e.get(a,d,0),e.get(a,d,3),a,d);let t=g.pixel;e.set(a,d,0,t[0]),e.set(a,d,1,t[1]),e.set(a,d,2,t[2]),e.set(a,d,3,t[3]),u.slice(-1)[0].push(t[3]),s.slice(-1)[0].push(g.angle)}}return function(e){function t(e){let t=e[0],n=e[1];return[[t+1,n+1],[t+1,n],[t+1,n-1],[t,n+1],[t,n-1],[t-1,n+1],[t-1,n],[t-1,n-1]]}for(weakPixel in c){let n=t(c[weakPixel]);for(pixel in n)if(l.find(e=>r.isEqual(e,n[pixel]))){e.set(weakPixel[0],weakPixel[1],3,255),c.splice(weakPixel,weakPixel);break}}return c.forEach(t=>e.set(t[0],t[1],3,0)),e}(function(e,t,n){const r=.2*p(u),i=r*n;for(let t=0;t<e.shape[0];t++)for(let n=0;n<e.shape[1];n++){let a=[t,n];u[t][n]>i?u[t][n]>r?l.push(a):c.push(a):e.set(t,n,3,0)}return l.forEach(t=>e.set(t[0],t[1],3,255)),e}(function(e){s=s.map(e=>e.map(h));for(let t=1;t<e.shape[0]-1;t++)for(let n=1;n<e.shape[1]-1;n++){let r=s[t][n];e.get(t,n);r>=-22.5&&r<=22.5||r<-157.5&&r>=-180?u[t][n]>=u[t][n+1]&&u[t][n]>=u[t][n-1]?e.set(t,n,3,u[t][n]):e.set(t,n,3,0):r>=22.5&&r<=67.5||r<-112.5&&r>=-157.5?u[t][n]>=u[t+1][n+1]&&u[t][n]>=u[t-1][n-1]?e.set(t,n,3,u[t][n]):e.set(t,n,3,0):r>=67.5&&r<=112.5||r<-67.5&&r>=-112.5?u[t][t]>=u[t+1][n]&&u[t][n]>=u[t][n]?e.set(t,n,3,u[t][n]):e.set(t,n,3,0):(r>=112.5&&r<=157.5||r<-22.5&&r>=-67.5)&&(u[t][n]>=u[t+1][n-1]&&u[t][n]>=u[t-1][n+1]?e.set(t,n,3,u[t][n]):e.set(t,n,3,0))}return e}(e),0,n))};var h=e=>180*e/Math.PI,p=e=>Math.max(...e.map(e=>e.map(e=>e||0)).map(e=>Math.max(...e)))},{lodash:58}],159:[function(e,t,n){t.exports=function(t,n){return(t=t||{}).blur=t.blur||2,t.highThresholdRatio=t.highThresholdRatio||.2,t.lowThresholdRatio=t.lowThresholdRatio||.15,n.onSetup(t.step),{options:t,draw:function(r,i,a){a.stop(!0),a.overrideFlag=!0,n.onDraw(t.step);var o=this;return e("../_nomodule/PixelManipulation.js")(r,{output:function(e,r,i){o.output={src:r,format:i},t.step.output=r,n.onComplete(t.step)},changePixel:function(e,t,n,r){return[(e+t+n)/3,(e+t+n)/3,(e+t+n)/3,r]},extraManipulation:function(n){return n=e("ndarray-gaussian-filter")(n,t.blur),e("./EdgeUtils")(n,t.highThresholdRatio,t.lowThresholdRatio,t.inBrowser)},format:r.format,image:t.image,inBrowser:t.inBrowser,callback:i})},output:void 0,UI:n}}},{"../_nomodule/PixelManipulation.js":169,"./EdgeUtils":158,"ndarray-gaussian-filter":63}],160:[function(e,t,n){t.exports={name:"Detect Edges",description:"this module detects edges using the Canny method, which first Gaussian blurs the image to reduce noise (amount of blur configurable in settings as `options.blur`), then applies a number of steps to highlight edges, resulting in a greyscale image where the brighter the pixel, the stronger the detected edge. Read more at: https://en.wikipedia.org/wiki/Canny_edge_detector",inputs:{blur:{type:"integer",desc:"amount of gaussian blur(Less blur gives more detail, typically 0-5)",default:2},highThresholdRatio:{type:"float",desc:"The high threshold ratio for the image",default:.2},lowThresholdRatio:{type:"float",desc:"The low threshold value for the image",default:.15}}}},{}],161:[function(e,t,n){t.exports=function(t,n){return t=t||{},n.onSetup(t.step),e("fisheyegl"),{options:t,draw:function(e,r){n.onDraw(t.step);var i=this;if(t.inBrowser){if(document.querySelector("#image-sequencer-canvas"))var a=document.querySelector("#image-sequencer-canvas");else(a=document.createElement("canvas")).style.display="none",a.setAttribute("id","image-sequencer-canvas"),document.body.append(a);distorter=FisheyeGl({selector:"#image-sequencer-canvas"}),t.a=parseFloat(t.a)||distorter.lens.a,t.b=parseFloat(t.b)||distorter.lens.b,t.Fx=parseFloat(t.Fx)||distorter.lens.Fx,t.Fy=parseFloat(t.Fy)||distorter.lens.Fy,t.scale=parseFloat(t.scale)||distorter.lens.scale,t.x=parseFloat(t.x)||distorter.fov.x,t.y=parseFloat(t.y)||distorter.fov.y,distorter.lens.a=t.a,distorter.lens.b=t.b,distorter.lens.Fx=t.Fx,distorter.lens.Fy=t.Fy,distorter.lens.scale=t.scale,distorter.fov.x=t.x,distorter.fov.y=t.y,distorter.setImage(e.src,function(){i.output={src:a.toDataURL(),format:e.format},t.step.output=i.output.src,r(),n.onComplete(t.step)})}else this.output=e,r()},output:void 0,UI:n}}},{fisheyegl:30}],162:[function(e,t,n){t.exports={name:"Fisheye GL",description:"Correct fisheye, or barrel distortion, in images (with WebGL -- adapted from fisheye-correction-webgl by @bluemir).",requires:["webgl"],inputs:{a:{type:"float",desc:"a parameter",default:1,min:1,max:4},b:{type:"float",desc:"b parameter",default:1,min:1,max:4},Fx:{type:"float",desc:"Fx parameter",default:0,min:0,max:4},Fy:{type:"float",desc:"Fy parameter",default:0,min:0,max:4},scale:{type:"float",desc:"Image Scaling",default:1.5,min:0,max:20},x:{type:"float",desc:"FOV x parameter",default:1.5,min:0,max:20},y:{type:"float",desc:"FOV y parameter",default:1.5,min:0,max:20},fragmentSrc:{type:"PATH",desc:"Patht to a WebGL fragment shader file",default:"(inbuilt)"},vertexSrc:{type:"PATH",desc:"Patht to a WebGL vertex shader file",default:"(inbuilt)"}}}},{}],163:[function(e,t,n){t.exports=function(t,n){return t=t||{},n.onSetup(t.step),{options:t,draw:function(r,i,a){a.stop(!0),a.overrideFlag=!0,n.onDraw(t.step);var o=this;return e("../_nomodule/PixelManipulation.js")(r,{output:function(e,r,i){o.output={src:r,format:i},t.step.output=r,n.onComplete(t.step)},changePixel:function(e,t,n,r){return[255-e,255-t,255-n,r]},format:r.format,image:t.image,inBrowser:t.inBrowser,callback:i})},output:void 0,UI:n}}},{"../_nomodule/PixelManipulation.js":169}],164:[function(e,t,n){t.exports={name:"Invert",description:"Inverts the image.",inputs:{}}},{}],165:[function(e,t,n){t.exports=function(t,n){return(t=t||{}).filter=t.filter||"red",n.onSetup(t.step),{options:t,draw:function(r,i,a){a.stop(!0),a.overrideFlag=!0,n.onDraw(t.step);var o=this;return e("../_nomodule/PixelManipulation.js")(r,{output:function(e,r,i){o.output={src:r,format:i},t.step.output=r,n.onComplete(t.step)},changePixel:function(e,n,r,i){if("red"==t.filter)var a=(r-e)/(1*r+e);"blue"==t.filter&&(a=(e-r)/(1*r+e));var o=255*(a+1)/2;return[o,o,o,i]},format:r.format,image:t.image,inBrowser:t.inBrowser,callback:i})},output:void 0,UI:n}}},{"../_nomodule/PixelManipulation.js":169}],166:[function(e,t,n){t.exports={name:"NDVI",description:"Normalized Difference Vegetation Index, or NDVI, is an image analysis technique used with aerial photography. It's a way to visualize the amounts of infrared and other wavelengths of light reflected from vegetation by comparing ratios of blue and red light absorbed versus green and IR light reflected. NDVI is used to evaluate the health of vegetation in satellite imagery, where it correlates with how much photosynthesis is happening. This is helpful in assessing vegetative health or stress. <a href='https://publiclab.org/ndvi'>Read more</a>.<br /><br/>This is designed for use with red-filtered single camera <a href='http://publiclab.org/infragram'>DIY Infragram cameras</a>; change to 'blue' for blue filters",inputs:{filter:{type:"select",desc:"Filter color",default:"red",values:["red","blue"]}}}},{}],167:[function(e,t,n){t.exports=function(t,n){return t=t||{},n.onSetup(t.step),{options:t,draw:function(r,i,a){a.stop(!0),a.overrideFlag=!0,n.onDraw(t.step);var o=this;return e("../_nomodule/PixelManipulation.js")(r,{output:function(e,r,i){o.output={src:r,format:i},t.step.output=r,n.onComplete(t.step)},changePixel:function(e,n,r,i){var a=Math.sqrt(e*e*.299+n*n*.587+n*n*.114);return e=a+(e-a)*t.saturation,n=a+(n-a)*t.saturation,r=a+(r-a)*t.saturation,[Math.round(e),Math.round(n),Math.round(r),i]},format:r.format,image:t.image,inBrowser:t.inBrowser,callback:i})},output:void 0,UI:n}}},{"../_nomodule/PixelManipulation.js":169}],168:[function(e,t,n){t.exports={name:"Saturation",description:"Change the saturation of the image by given value, from 0-1, with 1 being 100% saturated.",inputs:{saturation:{type:"integer",desc:"saturation for the new image between 0 and 2, 0 being black and white and 2 being highly saturated",default:0}}}},{}],169:[function(e,t,n){(function(n){t.exports=function(t,r){(r=r||{}).changePixel=r.changePixel||function(e,t,n,r){return[e,t,n,r]},r.extraManipulation=r.extraManipulation||function(e){return e};var i=e("get-pixels"),a=e("save-pixels");i(t.src,function(t,i){if(t)console.log("Bad image path");else{if(r.getNeighbourPixel&&(r.getNeighbourPixel.fun=function(e,t){return r.getNeighbourPixel(i,s,u,e,t)}),!r.inBrowser)try{var o=e("pace")(i.shape[0]*i.shape[1])}catch(e){r.inBrowser=!0}for(var s=0;s<i.shape[0];s++)for(var u=0;u<i.shape[1];u++){var l=r.changePixel(i.get(s,u,0),i.get(s,u,1),i.get(s,u,2),i.get(s,u,3));i.set(s,u,0,l[0]),i.set(s,u,1,l[1]),i.set(s,u,2,l[2]),i.set(s,u,3,l[3]),r.inBrowser||o.op()}r.extraManipulation&&(i=r.extraManipulation(i));var c=[],f=0,h=a(i,r.format,{quality:100});h.on("data",function(e){f+=e.length,c.push(e)}),h.on("end",function(){var e=n.concat(c,f).toString("base64"),t="data:image/"+r.format+";base64,"+e;r.output&&r.output(r.image,t,r.format),r.callback&&r.callback()})}})}}).call(this,e("buffer").Buffer)},{buffer:8,"get-pixels":38,pace:70,"save-pixels":121}],170:[function(e,t,n){t.exports=function(t,n,r,i){function a(n,r){var i;if(n.match(/^data:/i))r(i=n);else if(!t.options.inBrowser&&n.match(/^https?:\/\//i))e(n.match(/^(https?):\/\//i)[1]).get(n,function(e){var t="",n=e.headers["content-type"];e.setEncoding("base64"),e.on("data",function(e){t+=e}),e.on("end",function(){r("data:"+n+";base64,"+t)})});else if(t.options.inBrowser){var a=n.split(".").pop(),o=document.createElement("img"),s=document.createElement("canvas"),u=s.getContext("2d");o.onload=function(){s.width=o.naturalWidth,s.height=o.naturalHeight,u.drawImage(o,0,0),i=s.toDataURL(a),r(i)},o.src=n}else i=e("urify")(n),r(i)}return function(e,n){var r={name:"load-image",description:"This initial step loads and displays the original image without any modifications.<br /><br />To work with a new or different image, drag one into the drop zone.",ID:t.options.sequencerCounter++,imageName:e,inBrowser:t.options.inBrowser,ui:t.options.ui},o={src:n,steps:[{options:{id:r.ID,name:"load-image",description:"This initial step loads and displays the original image without any modifications.",title:"Load Image",step:r},UI:t.events,draw:function(){return UI.onDraw(options.step),1==arguments.length?(this.output=a(arguments[0]),options.step.output=this.output,UI.onComplete(options.step),!0):2==arguments.length&&(this.output=a(arguments[0]),options.step.output=this.output,arguments[1](),UI.onComplete(options.step),!0)}}]};a(n,function(n){var r=function(e){return{src:e,format:e.split(":")[1].split(";")[0].split("/")[1]}}(n);t.images[e]=o;var a=t.images[e].steps[0];return a.output=r,a.options.step.output=a.output.src,a.UI.onSetup(a.options.step),a.UI.onDraw(a.options.step),a.UI.onComplete(a.options.step),i(),!0})}(n,r)}},{urify:128}],171:[function(e,t,n){t.exports=function(e={}){return e.onSetup=e.onSetup||function(e){0==e.ui||(e.inBrowser?console.log('Added Step "'+e.name+'" to "'+e.imageName+'".'):console.log("%s",'Added Step "'+e.name+'" to "'+e.imageName+'".'))},e.onDraw=e.onDraw||function(e){0==e.ui||(e.inBrowser?console.log('Drawing Step "'+e.name+'" on "'+e.imageName+'".'):console.log("%s",'Drawing Step "'+e.name+'" on "'+e.imageName+'".'))},e.onComplete=e.onComplete||function(e){0==e.ui||(e.inBrowser?console.log('Drawn Step "'+e.name+'" on "'+e.imageName+'".'):console.log("%s",'Drawn Step "'+e.name+'" on "'+e.imageName+'".'))},e.onRemove=e.onRemove||function(e){0==e.ui||(e.inBrowser?console.log('Removing Step "'+e.name+'" of "'+e.imageName+'".'):console.log("%s",'Removing Step "'+e.name+'" of "'+e.imageName+'".'))},e}},{}]},{},[136]);