chunk-2d22d9b8.3f135adb.js 230 KB

123456789101112131415
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d22d9b8"],{f7e6:function(e,t,r){(function(t){var r;(function(t){e.exports=t()})((function(){return function(){function e(t,n,i){function a(s,l){if(!n[s]){if(!t[s]){var u="function"==typeof r&&r;if(!l&&u)return r(s,!0);if(o)return o(s,!0);var f=new Error("Cannot find module '"+s+"'");throw f.code="MODULE_NOT_FOUND",f}var h=n[s]={exports:{}};t[s][0].call(h.exports,(function(e){var r=t[s][1][e];return a(r||e)}),h,h.exports,e,t,n,i)}return n[s].exports}for(var o="function"==typeof r&&r,s=0;s<i.length;s++)a(i[s]);return a}return e}()({1:[function(e,t,r){"use strict";r.byteLength=f,r.toByteArray=c,r.fromByteArray=m;for(var n=[],i=[],a="undefined"!==typeof Uint8Array?Uint8Array:Array,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0,l=o.length;s<l;++s)n[s]=o[s],i[o.charCodeAt(s)]=s;function u(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var r=e.indexOf("=");-1===r&&(r=t);var n=r===t?0:4-r%4;return[r,n]}function f(e){var t=u(e),r=t[0],n=t[1];return 3*(r+n)/4-n}function h(e,t,r){return 3*(t+r)/4-r}function c(e){var t,r,n=u(e),o=n[0],s=n[1],l=new a(h(e,o,s)),f=0,c=s>0?o-4:o;for(r=0;r<c;r+=4)t=i[e.charCodeAt(r)]<<18|i[e.charCodeAt(r+1)]<<12|i[e.charCodeAt(r+2)]<<6|i[e.charCodeAt(r+3)],l[f++]=t>>16&255,l[f++]=t>>8&255,l[f++]=255&t;return 2===s&&(t=i[e.charCodeAt(r)]<<2|i[e.charCodeAt(r+1)]>>4,l[f++]=255&t),1===s&&(t=i[e.charCodeAt(r)]<<10|i[e.charCodeAt(r+1)]<<4|i[e.charCodeAt(r+2)]>>2,l[f++]=t>>8&255,l[f++]=255&t),l}function d(e){return n[e>>18&63]+n[e>>12&63]+n[e>>6&63]+n[63&e]}function p(e,t,r){for(var n,i=[],a=t;a<r;a+=3)n=(e[a]<<16&16711680)+(e[a+1]<<8&65280)+(255&e[a+2]),i.push(d(n));return i.join("")}function m(e){for(var t,r=e.length,i=r%3,a=[],o=16383,s=0,l=r-i;s<l;s+=o)a.push(p(e,s,s+o>l?l:s+o));return 1===i?(t=e[r-1],a.push(n[t>>2]+n[t<<4&63]+"==")):2===i&&(t=(e[r-2]<<8)+e[r-1],a.push(n[t>>10]+n[t>>4&63]+n[t<<2&63]+"=")),a.join("")}i["-".charCodeAt(0)]=62,i["_".charCodeAt(0)]=63},{}],2:[function(e,t,r){},{}],3:[function(e,t,r){(function(t){
  2. /*!
  3. * The buffer module from node.js, for the browser.
  4. *
  5. * @author Feross Aboukhadijeh <https://feross.org>
  6. * @license MIT
  7. */
  8. "use strict";var n=e("base64-js"),i=e("ieee754");r.Buffer=t,r.SlowBuffer=v,r.INSPECT_MAX_BYTES=50;var a=2147483647;function o(){try{var e=new Uint8Array(1);return e.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===e.foo()}catch(t){return!1}}function s(e){if(e>a)throw new RangeError('The value "'+e+'" is invalid for option "size"');var r=new Uint8Array(e);return r.__proto__=t.prototype,r}function t(e,t,r){if("number"===typeof e){if("string"===typeof t)throw new TypeError('The "string" argument must be of type string. Received type number');return h(e)}return l(e,t,r)}function l(e,r,n){if("string"===typeof e)return c(e,r);if(ArrayBuffer.isView(e))return d(e);if(null==e)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(K(e,ArrayBuffer)||e&&K(e.buffer,ArrayBuffer))return p(e,r,n);if("number"===typeof e)throw new TypeError('The "value" argument must not be of type number. Received type number');var i=e.valueOf&&e.valueOf();if(null!=i&&i!==e)return t.from(i,r,n);var a=m(e);if(a)return a;if("undefined"!==typeof Symbol&&null!=Symbol.toPrimitive&&"function"===typeof e[Symbol.toPrimitive])return t.from(e[Symbol.toPrimitive]("string"),r,n);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function u(e){if("number"!==typeof e)throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function f(e,t,r){return u(e),e<=0?s(e):void 0!==t?"string"===typeof r?s(e).fill(t,r):s(e).fill(t):s(e)}function h(e){return u(e),s(e<0?0:0|g(e))}function c(e,r){if("string"===typeof r&&""!==r||(r="utf8"),!t.isEncoding(r))throw new TypeError("Unknown encoding: "+r);var n=0|y(e,r),i=s(n),a=i.write(e,r);return a!==n&&(i=i.slice(0,a)),i}function d(e){for(var t=e.length<0?0:0|g(e.length),r=s(t),n=0;n<t;n+=1)r[n]=255&e[n];return r}function p(e,r,n){if(r<0||e.byteLength<r)throw new RangeError('"offset" is outside of buffer bounds');if(e.byteLength<r+(n||0))throw new RangeError('"length" is outside of buffer bounds');var i;return i=void 0===r&&void 0===n?new Uint8Array(e):void 0===n?new Uint8Array(e,r):new Uint8Array(e,r,n),i.__proto__=t.prototype,i}function m(e){if(t.isBuffer(e)){var r=0|g(e.length),n=s(r);return 0===n.length||e.copy(n,0,0,r),n}return void 0!==e.length?"number"!==typeof e.length||J(e.length)?s(0):d(e):"Buffer"===e.type&&Array.isArray(e.data)?d(e.data):void 0}function g(e){if(e>=a)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a.toString(16)+" bytes");return 0|e}function v(e){return+e!=e&&(e=0),t.alloc(+e)}function y(e,r){if(t.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||K(e,ArrayBuffer))return e.byteLength;if("string"!==typeof e)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);var n=e.length,i=arguments.length>2&&!0===arguments[2];if(!i&&0===n)return 0;for(var a=!1;;)switch(r){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":return Z(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return q(e).length;default:if(a)return i?-1:Z(e).length;r=(""+r).toLowerCase(),a=!0}}function b(e,t,r){var n=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return"";if(r>>>=0,t>>>=0,r<=t)return"";e||(e="utf8");while(1)switch(e){case"hex":return B(this,t,r);case"utf8":case"utf-8":return O(this,t,r);case"ascii":return F(this,t,r);case"latin1":case"binary":return M(this,t,r);case"base64":return A(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return P(this,t,r);default:if(n)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),n=!0}}function _(e,t,r){var n=e[t];e[t]=e[r],e[r]=n}function w(e,r,n,i,a){if(0===e.length)return-1;if("string"===typeof n?(i=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,J(n)&&(n=a?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(a)return-1;n=e.length-1}else if(n<0){if(!a)return-1;n=0}if("string"===typeof r&&(r=t.from(r,i)),t.isBuffer(r))return 0===r.length?-1:E(e,r,n,i,a);if("number"===typeof r)return r&=255,"function"===typeof Uint8Array.prototype.indexOf?a?Uint8Array.prototype.indexOf.call(e,r,n):Uint8Array.prototype.lastIndexOf.call(e,r,n):E(e,[r],n,i,a);throw new TypeError("val must be string, number or Buffer")}function E(e,t,r,n,i){var a,o=1,s=e.length,l=t.length;if(void 0!==n&&(n=String(n).toLowerCase(),"ucs2"===n||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(e.length<2||t.length<2)return-1;o=2,s/=2,l/=2,r/=2}function u(e,t){return 1===o?e[t]:e.readUInt16BE(t*o)}if(i){var f=-1;for(a=r;a<s;a++)if(u(e,a)===u(t,-1===f?0:a-f)){if(-1===f&&(f=a),a-f+1===l)return f*o}else-1!==f&&(a-=a-f),f=-1}else for(r+l>s&&(r=s-l),a=r;a>=0;a--){for(var h=!0,c=0;c<l;c++)if(u(e,a+c)!==u(t,c)){h=!1;break}if(h)return a}return-1}function k(e,t,r,n){r=Number(r)||0;var i=e.length-r;n?(n=Number(n),n>i&&(n=i)):n=i;var a=t.length;n>a/2&&(n=a/2);for(var o=0;o<n;++o){var s=parseInt(t.substr(2*o,2),16);if(J(s))return o;e[r+o]=s}return o}function S(e,t,r,n){return V(Z(t,e.length-r),e,r,n)}function C(e,t,r,n){return V(G(t),e,r,n)}function T(e,t,r,n){return C(e,t,r,n)}function x(e,t,r,n){return V(q(t),e,r,n)}function R(e,t,r,n){return V(Y(t,e.length-r),e,r,n)}function A(e,t,r){return 0===t&&r===e.length?n.fromByteArray(e):n.fromByteArray(e.slice(t,r))}function O(e,t,r){r=Math.min(e.length,r);var n=[],i=t;while(i<r){var a,o,s,l,u=e[i],f=null,h=u>239?4:u>223?3:u>191?2:1;if(i+h<=r)switch(h){case 1:u<128&&(f=u);break;case 2:a=e[i+1],128===(192&a)&&(l=(31&u)<<6|63&a,l>127&&(f=l));break;case 3:a=e[i+1],o=e[i+2],128===(192&a)&&128===(192&o)&&(l=(15&u)<<12|(63&a)<<6|63&o,l>2047&&(l<55296||l>57343)&&(f=l));break;case 4:a=e[i+1],o=e[i+2],s=e[i+3],128===(192&a)&&128===(192&o)&&128===(192&s)&&(l=(15&u)<<18|(63&a)<<12|(63&o)<<6|63&s,l>65535&&l<1114112&&(f=l))}null===f?(f=65533,h=1):f>65535&&(f-=65536,n.push(f>>>10&1023|55296),f=56320|1023&f),n.push(f),i+=h}return I(n)}r.kMaxLength=a,t.TYPED_ARRAY_SUPPORT=o(),t.TYPED_ARRAY_SUPPORT||"undefined"===typeof console||"function"!==typeof console.error||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(t.prototype,"parent",{enumerable:!0,get:function(){if(t.isBuffer(this))return this.buffer}}),Object.defineProperty(t.prototype,"offset",{enumerable:!0,get:function(){if(t.isBuffer(this))return this.byteOffset}}),"undefined"!==typeof Symbol&&null!=Symbol.species&&t[Symbol.species]===t&&Object.defineProperty(t,Symbol.species,{value:null,configurable:!0,enumerable:!1,writable:!1}),t.poolSize=8192,t.from=function(e,t,r){return l(e,t,r)},t.prototype.__proto__=Uint8Array.prototype,t.__proto__=Uint8Array,t.alloc=function(e,t,r){return f(e,t,r)},t.allocUnsafe=function(e){return h(e)},t.allocUnsafeSlow=function(e){return h(e)},t.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==t.prototype},t.compare=function(e,r){if(K(e,Uint8Array)&&(e=t.from(e,e.offset,e.byteLength)),K(r,Uint8Array)&&(r=t.from(r,r.offset,r.byteLength)),!t.isBuffer(e)||!t.isBuffer(r))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===r)return 0;for(var n=e.length,i=r.length,a=0,o=Math.min(n,i);a<o;++a)if(e[a]!==r[a]){n=e[a],i=r[a];break}return n<i?-1:i<n?1:0},t.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}},t.concat=function(e,r){if(!Array.isArray(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return t.alloc(0);var n;if(void 0===r)for(r=0,n=0;n<e.length;++n)r+=e[n].length;var i=t.allocUnsafe(r),a=0;for(n=0;n<e.length;++n){var o=e[n];if(K(o,Uint8Array)&&(o=t.from(o)),!t.isBuffer(o))throw new TypeError('"list" argument must be an Array of Buffers');o.copy(i,a),a+=o.length}return i},t.byteLength=y,t.prototype._isBuffer=!0,t.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)_(this,t,t+1);return this},t.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)_(this,t,t+3),_(this,t+1,t+2);return this},t.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)_(this,t,t+7),_(this,t+1,t+6),_(this,t+2,t+5),_(this,t+3,t+4);return this},t.prototype.toString=function(){var e=this.length;return 0===e?"":0===arguments.length?O(this,0,e):b.apply(this,arguments)},t.prototype.toLocaleString=t.prototype.toString,t.prototype.equals=function(e){if(!t.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===t.compare(this,e)},t.prototype.inspect=function(){var e="",t=r.INSPECT_MAX_BYTES;return e=this.toString("hex",0,t).replace(/(.{2})/g,"$1 ").trim(),this.length>t&&(e+=" ... "),"<Buffer "+e+">"},t.prototype.compare=function(e,r,n,i,a){if(K(e,Uint8Array)&&(e=t.from(e,e.offset,e.byteLength)),!t.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===r&&(r=0),void 0===n&&(n=e?e.length:0),void 0===i&&(i=0),void 0===a&&(a=this.length),r<0||n>e.length||i<0||a>this.length)throw new RangeError("out of range index");if(i>=a&&r>=n)return 0;if(i>=a)return-1;if(r>=n)return 1;if(r>>>=0,n>>>=0,i>>>=0,a>>>=0,this===e)return 0;for(var o=a-i,s=n-r,l=Math.min(o,s),u=this.slice(i,a),f=e.slice(r,n),h=0;h<l;++h)if(u[h]!==f[h]){o=u[h],s=f[h];break}return o<s?-1:s<o?1:0},t.prototype.includes=function(e,t,r){return-1!==this.indexOf(e,t,r)},t.prototype.indexOf=function(e,t,r){return w(this,e,t,r,!0)},t.prototype.lastIndexOf=function(e,t,r){return w(this,e,t,r,!1)},t.prototype.write=function(e,t,r,n){if(void 0===t)n="utf8",r=this.length,t=0;else if(void 0===r&&"string"===typeof t)n=t,r=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t>>>=0,isFinite(r)?(r>>>=0,void 0===n&&(n="utf8")):(n=r,r=void 0)}var i=this.length-t;if((void 0===r||r>i)&&(r=i),e.length>0&&(r<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var a=!1;;)switch(n){case"hex":return k(this,e,t,r);case"utf8":case"utf-8":return S(this,e,t,r);case"ascii":return C(this,e,t,r);case"latin1":case"binary":return T(this,e,t,r);case"base64":return x(this,e,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return R(this,e,t,r);default:if(a)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),a=!0}},t.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var L=4096;function I(e){var t=e.length;if(t<=L)return String.fromCharCode.apply(String,e);var r="",n=0;while(n<t)r+=String.fromCharCode.apply(String,e.slice(n,n+=L));return r}function F(e,t,r){var n="";r=Math.min(e.length,r);for(var i=t;i<r;++i)n+=String.fromCharCode(127&e[i]);return n}function M(e,t,r){var n="";r=Math.min(e.length,r);for(var i=t;i<r;++i)n+=String.fromCharCode(e[i]);return n}function B(e,t,r){var n=e.length;(!t||t<0)&&(t=0),(!r||r<0||r>n)&&(r=n);for(var i="",a=t;a<r;++a)i+=H(e[a]);return i}function P(e,t,r){for(var n=e.slice(t,r),i="",a=0;a<n.length;a+=2)i+=String.fromCharCode(n[a]+256*n[a+1]);return i}function D(e,t,r){if(e%1!==0||e<0)throw new RangeError("offset is not uint");if(e+t>r)throw new RangeError("Trying to access beyond buffer length")}function N(e,r,n,i,a,o){if(!t.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(r>a||r<o)throw new RangeError('"value" argument is out of bounds');if(n+i>e.length)throw new RangeError("Index out of range")}function z(e,t,r,n,i,a){if(r+n>e.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function U(e,t,r,n,a){return t=+t,r>>>=0,a||z(e,t,r,4,34028234663852886e22,-34028234663852886e22),i.write(e,t,r,n,23,4),r+4}function j(e,t,r,n,a){return t=+t,r>>>=0,a||z(e,t,r,8,17976931348623157e292,-17976931348623157e292),i.write(e,t,r,n,52,8),r+8}t.prototype.slice=function(e,r){var n=this.length;e=~~e,r=void 0===r?n:~~r,e<0?(e+=n,e<0&&(e=0)):e>n&&(e=n),r<0?(r+=n,r<0&&(r=0)):r>n&&(r=n),r<e&&(r=e);var i=this.subarray(e,r);return i.__proto__=t.prototype,i},t.prototype.readUIntLE=function(e,t,r){e>>>=0,t>>>=0,r||D(e,t,this.length);var n=this[e],i=1,a=0;while(++a<t&&(i*=256))n+=this[e+a]*i;return n},t.prototype.readUIntBE=function(e,t,r){e>>>=0,t>>>=0,r||D(e,t,this.length);var n=this[e+--t],i=1;while(t>0&&(i*=256))n+=this[e+--t]*i;return n},t.prototype.readUInt8=function(e,t){return e>>>=0,t||D(e,1,this.length),this[e]},t.prototype.readUInt16LE=function(e,t){return e>>>=0,t||D(e,2,this.length),this[e]|this[e+1]<<8},t.prototype.readUInt16BE=function(e,t){return e>>>=0,t||D(e,2,this.length),this[e]<<8|this[e+1]},t.prototype.readUInt32LE=function(e,t){return e>>>=0,t||D(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},t.prototype.readUInt32BE=function(e,t){return e>>>=0,t||D(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},t.prototype.readIntLE=function(e,t,r){e>>>=0,t>>>=0,r||D(e,t,this.length);var n=this[e],i=1,a=0;while(++a<t&&(i*=256))n+=this[e+a]*i;return i*=128,n>=i&&(n-=Math.pow(2,8*t)),n},t.prototype.readIntBE=function(e,t,r){e>>>=0,t>>>=0,r||D(e,t,this.length);var n=t,i=1,a=this[e+--n];while(n>0&&(i*=256))a+=this[e+--n]*i;return i*=128,a>=i&&(a-=Math.pow(2,8*t)),a},t.prototype.readInt8=function(e,t){return e>>>=0,t||D(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},t.prototype.readInt16LE=function(e,t){e>>>=0,t||D(e,2,this.length);var r=this[e]|this[e+1]<<8;return 32768&r?4294901760|r:r},t.prototype.readInt16BE=function(e,t){e>>>=0,t||D(e,2,this.length);var r=this[e+1]|this[e]<<8;return 32768&r?4294901760|r:r},t.prototype.readInt32LE=function(e,t){return e>>>=0,t||D(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},t.prototype.readInt32BE=function(e,t){return e>>>=0,t||D(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},t.prototype.readFloatLE=function(e,t){return e>>>=0,t||D(e,4,this.length),i.read(this,e,!0,23,4)},t.prototype.readFloatBE=function(e,t){return e>>>=0,t||D(e,4,this.length),i.read(this,e,!1,23,4)},t.prototype.readDoubleLE=function(e,t){return e>>>=0,t||D(e,8,this.length),i.read(this,e,!0,52,8)},t.prototype.readDoubleBE=function(e,t){return e>>>=0,t||D(e,8,this.length),i.read(this,e,!1,52,8)},t.prototype.writeUIntLE=function(e,t,r,n){if(e=+e,t>>>=0,r>>>=0,!n){var i=Math.pow(2,8*r)-1;N(this,e,t,r,i,0)}var a=1,o=0;this[t]=255&e;while(++o<r&&(a*=256))this[t+o]=e/a&255;return t+r},t.prototype.writeUIntBE=function(e,t,r,n){if(e=+e,t>>>=0,r>>>=0,!n){var i=Math.pow(2,8*r)-1;N(this,e,t,r,i,0)}var a=r-1,o=1;this[t+a]=255&e;while(--a>=0&&(o*=256))this[t+a]=e/o&255;return t+r},t.prototype.writeUInt8=function(e,t,r){return e=+e,t>>>=0,r||N(this,e,t,1,255,0),this[t]=255&e,t+1},t.prototype.writeUInt16LE=function(e,t,r){return e=+e,t>>>=0,r||N(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},t.prototype.writeUInt16BE=function(e,t,r){return e=+e,t>>>=0,r||N(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},t.prototype.writeUInt32LE=function(e,t,r){return e=+e,t>>>=0,r||N(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},t.prototype.writeUInt32BE=function(e,t,r){return e=+e,t>>>=0,r||N(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},t.prototype.writeIntLE=function(e,t,r,n){if(e=+e,t>>>=0,!n){var i=Math.pow(2,8*r-1);N(this,e,t,r,i-1,-i)}var a=0,o=1,s=0;this[t]=255&e;while(++a<r&&(o*=256))e<0&&0===s&&0!==this[t+a-1]&&(s=1),this[t+a]=(e/o>>0)-s&255;return t+r},t.prototype.writeIntBE=function(e,t,r,n){if(e=+e,t>>>=0,!n){var i=Math.pow(2,8*r-1);N(this,e,t,r,i-1,-i)}var a=r-1,o=1,s=0;this[t+a]=255&e;while(--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+r},t.prototype.writeInt8=function(e,t,r){return e=+e,t>>>=0,r||N(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},t.prototype.writeInt16LE=function(e,t,r){return e=+e,t>>>=0,r||N(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},t.prototype.writeInt16BE=function(e,t,r){return e=+e,t>>>=0,r||N(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},t.prototype.writeInt32LE=function(e,t,r){return e=+e,t>>>=0,r||N(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},t.prototype.writeInt32BE=function(e,t,r){return e=+e,t>>>=0,r||N(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},t.prototype.writeFloatLE=function(e,t,r){return U(this,e,t,!0,r)},t.prototype.writeFloatBE=function(e,t,r){return U(this,e,t,!1,r)},t.prototype.writeDoubleLE=function(e,t,r){return j(this,e,t,!0,r)},t.prototype.writeDoubleBE=function(e,t,r){return j(this,e,t,!1,r)},t.prototype.copy=function(e,r,n,i){if(!t.isBuffer(e))throw new TypeError("argument should be a Buffer");if(n||(n=0),i||0===i||(i=this.length),r>=e.length&&(r=e.length),r||(r=0),i>0&&i<n&&(i=n),i===n)return 0;if(0===e.length||0===this.length)return 0;if(r<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("Index out of range");if(i<0)throw new RangeError("sourceEnd out of bounds");i>this.length&&(i=this.length),e.length-r<i-n&&(i=e.length-r+n);var a=i-n;if(this===e&&"function"===typeof Uint8Array.prototype.copyWithin)this.copyWithin(r,n,i);else if(this===e&&n<r&&r<i)for(var o=a-1;o>=0;--o)e[o+r]=this[o+n];else Uint8Array.prototype.set.call(e,this.subarray(n,i),r);return a},t.prototype.fill=function(e,r,n,i){if("string"===typeof e){if("string"===typeof r?(i=r,r=0,n=this.length):"string"===typeof n&&(i=n,n=this.length),void 0!==i&&"string"!==typeof i)throw new TypeError("encoding must be a string");if("string"===typeof i&&!t.isEncoding(i))throw new TypeError("Unknown encoding: "+i);if(1===e.length){var a=e.charCodeAt(0);("utf8"===i&&a<128||"latin1"===i)&&(e=a)}}else"number"===typeof e&&(e&=255);if(r<0||this.length<r||this.length<n)throw new RangeError("Out of range index");if(n<=r)return this;var o;if(r>>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"===typeof e)for(o=r;o<n;++o)this[o]=e;else{var s=t.isBuffer(e)?e:t.from(e,i),l=s.length;if(0===l)throw new TypeError('The value "'+e+'" is invalid for argument "value"');for(o=0;o<n-r;++o)this[o+r]=s[o%l]}return this};var W=/[^+/0-9A-Za-z-_]/g;function X(e){if(e=e.split("=")[0],e=e.trim().replace(W,""),e.length<2)return"";while(e.length%4!==0)e+="=";return e}function H(e){return e<16?"0"+e.toString(16):e.toString(16)}function Z(e,t){var r;t=t||1/0;for(var n=e.length,i=null,a=[],o=0;o<n;++o){if(r=e.charCodeAt(o),r>55295&&r<57344){if(!i){if(r>56319){(t-=3)>-1&&a.push(239,191,189);continue}if(o+1===n){(t-=3)>-1&&a.push(239,191,189);continue}i=r;continue}if(r<56320){(t-=3)>-1&&a.push(239,191,189),i=r;continue}r=65536+(i-55296<<10|r-56320)}else i&&(t-=3)>-1&&a.push(239,191,189);if(i=null,r<128){if((t-=1)<0)break;a.push(r)}else if(r<2048){if((t-=2)<0)break;a.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;a.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;a.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return a}function G(e){for(var t=[],r=0;r<e.length;++r)t.push(255&e.charCodeAt(r));return t}function Y(e,t){for(var r,n,i,a=[],o=0;o<e.length;++o){if((t-=2)<0)break;r=e.charCodeAt(o),n=r>>8,i=r%256,a.push(i),a.push(n)}return a}function q(e){return n.toByteArray(X(e))}function V(e,t,r,n){for(var i=0;i<n;++i){if(i+r>=t.length||i>=e.length)break;t[i+r]=e[i]}return i}function K(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}function J(e){return e!==e}}).call(this,e("buffer").Buffer)},{"base64-js":1,buffer:3,ieee754:6}],4:[function(e,t,r){(function(e){function t(e){return Array.isArray?Array.isArray(e):"[object Array]"===g(e)}function n(e){return"boolean"===typeof e}function i(e){return null===e}function a(e){return null==e}function o(e){return"number"===typeof e}function s(e){return"string"===typeof e}function l(e){return"symbol"===typeof e}function u(e){return void 0===e}function f(e){return"[object RegExp]"===g(e)}function h(e){return"object"===typeof e&&null!==e}function c(e){return"[object Date]"===g(e)}function d(e){return"[object Error]"===g(e)||e instanceof Error}function p(e){return"function"===typeof e}function m(e){return null===e||"boolean"===typeof e||"number"===typeof e||"string"===typeof e||"symbol"===typeof e||"undefined"===typeof e}function g(e){return Object.prototype.toString.call(e)}r.isArray=t,r.isBoolean=n,r.isNull=i,r.isNullOrUndefined=a,r.isNumber=o,r.isString=s,r.isSymbol=l,r.isUndefined=u,r.isRegExp=f,r.isObject=h,r.isDate=c,r.isError=d,r.isFunction=p,r.isPrimitive=m,r.isBuffer=e.isBuffer}).call(this,{isBuffer:e("../../is-buffer/index.js")})},{"../../is-buffer/index.js":9}],5:[function(e,t,r){var n=Object.create||S,i=Object.keys||C,a=Function.prototype.bind||T;function o(){this._events&&Object.prototype.hasOwnProperty.call(this,"_events")||(this._events=n(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0}t.exports=o,o.EventEmitter=o,o.prototype._events=void 0,o.prototype._maxListeners=void 0;var s,l=10;try{var u={};Object.defineProperty&&Object.defineProperty(u,"x",{value:0}),s=0===u.x}catch(x){s=!1}function f(e){return void 0===e._maxListeners?o.defaultMaxListeners:e._maxListeners}function h(e,t,r){if(t)e.call(r);else for(var n=e.length,i=E(e,n),a=0;a<n;++a)i[a].call(r)}function c(e,t,r,n){if(t)e.call(r,n);else for(var i=e.length,a=E(e,i),o=0;o<i;++o)a[o].call(r,n)}function d(e,t,r,n,i){if(t)e.call(r,n,i);else for(var a=e.length,o=E(e,a),s=0;s<a;++s)o[s].call(r,n,i)}function p(e,t,r,n,i,a){if(t)e.call(r,n,i,a);else for(var o=e.length,s=E(e,o),l=0;l<o;++l)s[l].call(r,n,i,a)}function m(e,t,r,n){if(t)e.apply(r,n);else for(var i=e.length,a=E(e,i),o=0;o<i;++o)a[o].apply(r,n)}function g(e,t,r,i){var a,o,s;if("function"!==typeof r)throw new TypeError('"listener" argument must be a function');if(o=e._events,o?(o.newListener&&(e.emit("newListener",t,r.listener?r.listener:r),o=e._events),s=o[t]):(o=e._events=n(null),e._eventsCount=0),s){if("function"===typeof s?s=o[t]=i?[r,s]:[s,r]:i?s.unshift(r):s.push(r),!s.warned&&(a=f(e),a&&a>0&&s.length>a)){s.warned=!0;var l=new Error("Possible EventEmitter memory leak detected. "+s.length+' "'+String(t)+'" listeners added. Use emitter.setMaxListeners() to increase limit.');l.name="MaxListenersExceededWarning",l.emitter=e,l.type=t,l.count=s.length,"object"===typeof console&&console.warn&&console.warn("%s: %s",l.name,l.message)}}else s=o[t]=r,++e._eventsCount;return e}function v(){if(!this.fired)switch(this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length){case 0:return this.listener.call(this.target);case 1:return this.listener.call(this.target,arguments[0]);case 2:return this.listener.call(this.target,arguments[0],arguments[1]);case 3:return this.listener.call(this.target,arguments[0],arguments[1],arguments[2]);default:for(var e=new Array(arguments.length),t=0;t<e.length;++t)e[t]=arguments[t];this.listener.apply(this.target,e)}}function y(e,t,r){var n={fired:!1,wrapFn:void 0,target:e,type:t,listener:r},i=a.call(v,n);return i.listener=r,n.wrapFn=i,i}function b(e,t,r){var n=e._events;if(!n)return[];var i=n[t];return i?"function"===typeof i?r?[i.listener||i]:[i]:r?k(i):E(i,i.length):[]}function _(e){var t=this._events;if(t){var r=t[e];if("function"===typeof r)return 1;if(r)return r.length}return 0}function w(e,t){for(var r=t,n=r+1,i=e.length;n<i;r+=1,n+=1)e[r]=e[n];e.pop()}function E(e,t){for(var r=new Array(t),n=0;n<t;++n)r[n]=e[n];return r}function k(e){for(var t=new Array(e.length),r=0;r<t.length;++r)t[r]=e[r].listener||e[r];return t}function S(e){var t=function(){};return t.prototype=e,new t}function C(e){var t=[];for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.push(r);return r}function T(e){var t=this;return function(){return t.apply(e,arguments)}}s?Object.defineProperty(o,"defaultMaxListeners",{enumerable:!0,get:function(){return l},set:function(e){if("number"!==typeof e||e<0||e!==e)throw new TypeError('"defaultMaxListeners" must be a positive number');l=e}}):o.defaultMaxListeners=l,o.prototype.setMaxListeners=function(e){if("number"!==typeof e||e<0||isNaN(e))throw new TypeError('"n" argument must be a positive number');return this._maxListeners=e,this},o.prototype.getMaxListeners=function(){return f(this)},o.prototype.emit=function(e){var t,r,n,i,a,o,s="error"===e;if(o=this._events,o)s=s&&null==o.error;else if(!s)return!1;if(s){if(arguments.length>1&&(t=arguments[1]),t instanceof Error)throw t;var l=new Error('Unhandled "error" event. ('+t+")");throw l.context=t,l}if(r=o[e],!r)return!1;var u="function"===typeof r;switch(n=arguments.length,n){case 1:h(r,u,this);break;case 2:c(r,u,this,arguments[1]);break;case 3:d(r,u,this,arguments[1],arguments[2]);break;case 4:p(r,u,this,arguments[1],arguments[2],arguments[3]);break;default:for(i=new Array(n-1),a=1;a<n;a++)i[a-1]=arguments[a];m(r,u,this,i)}return!0},o.prototype.addListener=function(e,t){return g(this,e,t,!1)},o.prototype.on=o.prototype.addListener,o.prototype.prependListener=function(e,t){return g(this,e,t,!0)},o.prototype.once=function(e,t){if("function"!==typeof t)throw new TypeError('"listener" argument must be a function');return this.on(e,y(this,e,t)),this},o.prototype.prependOnceListener=function(e,t){if("function"!==typeof t)throw new TypeError('"listener" argument must be a function');return this.prependListener(e,y(this,e,t)),this},o.prototype.removeListener=function(e,t){var r,i,a,o,s;if("function"!==typeof t)throw new TypeError('"listener" argument must be a function');if(i=this._events,!i)return this;if(r=i[e],!r)return this;if(r===t||r.listener===t)0===--this._eventsCount?this._events=n(null):(delete i[e],i.removeListener&&this.emit("removeListener",e,r.listener||t));else if("function"!==typeof r){for(a=-1,o=r.length-1;o>=0;o--)if(r[o]===t||r[o].listener===t){s=r[o].listener,a=o;break}if(a<0)return this;0===a?r.shift():w(r,a),1===r.length&&(i[e]=r[0]),i.removeListener&&this.emit("removeListener",e,s||t)}return this},o.prototype.removeAllListeners=function(e){var t,r,a;if(r=this._events,!r)return this;if(!r.removeListener)return 0===arguments.length?(this._events=n(null),this._eventsCount=0):r[e]&&(0===--this._eventsCount?this._events=n(null):delete r[e]),this;if(0===arguments.length){var o,s=i(r);for(a=0;a<s.length;++a)o=s[a],"removeListener"!==o&&this.removeAllListeners(o);return this.removeAllListeners("removeListener"),this._events=n(null),this._eventsCount=0,this}if(t=r[e],"function"===typeof t)this.removeListener(e,t);else if(t)for(a=t.length-1;a>=0;a--)this.removeListener(e,t[a]);return this},o.prototype.listeners=function(e){return b(this,e,!0)},o.prototype.rawListeners=function(e){return b(this,e,!1)},o.listenerCount=function(e,t){return"function"===typeof e.listenerCount?e.listenerCount(t):_.call(e,t)},o.prototype.listenerCount=_,o.prototype.eventNames=function(){return this._eventsCount>0?Reflect.ownKeys(this._events):[]}},{}],6:[function(e,t,r){r.read=function(e,t,r,n,i){var a,o,s=8*i-n-1,l=(1<<s)-1,u=l>>1,f=-7,h=r?i-1:0,c=r?-1:1,d=e[t+h];for(h+=c,a=d&(1<<-f)-1,d>>=-f,f+=s;f>0;a=256*a+e[t+h],h+=c,f-=8);for(o=a&(1<<-f)-1,a>>=-f,f+=n;f>0;o=256*o+e[t+h],h+=c,f-=8);if(0===a)a=1-u;else{if(a===l)return o?NaN:1/0*(d?-1:1);o+=Math.pow(2,n),a-=u}return(d?-1:1)*o*Math.pow(2,a-n)},r.write=function(e,t,r,n,i,a){var o,s,l,u=8*a-i-1,f=(1<<u)-1,h=f>>1,c=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,d=n?0:a-1,p=n?1:-1,m=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=f):(o=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-o))<1&&(o--,l*=2),t+=o+h>=1?c/l:c*Math.pow(2,1-h),t*l>=2&&(o++,l/=2),o+h>=f?(s=0,o=f):o+h>=1?(s=(t*l-1)*Math.pow(2,i),o+=h):(s=t*Math.pow(2,h-1)*Math.pow(2,i),o=0));i>=8;e[r+d]=255&s,d+=p,s/=256,i-=8);for(o=o<<i|s,u+=i;u>0;e[r+d]=255&o,d+=p,o/=256,u-=8);e[r+d-p]|=128*m}},{}],7:[function(e,r,n){(function(e){"use strict";var t,n,i=e.MutationObserver||e.WebKitMutationObserver;if(i){var a=0,o=new i(f),s=e.document.createTextNode("");o.observe(s,{characterData:!0}),t=function(){s.data=a=++a%2}}else if(e.setImmediate||"undefined"===typeof e.MessageChannel)t="document"in e&&"onreadystatechange"in e.document.createElement("script")?function(){var t=e.document.createElement("script");t.onreadystatechange=function(){f(),t.onreadystatechange=null,t.parentNode.removeChild(t),t=null},e.document.documentElement.appendChild(t)}:function(){setTimeout(f,0)};else{var l=new e.MessageChannel;l.port1.onmessage=f,t=function(){l.port2.postMessage(0)}}var u=[];function f(){var e,t;n=!0;var r=u.length;while(r){t=u,u=[],e=-1;while(++e<r)t[e]();r=u.length}n=!1}function h(e){1!==u.push(e)||n||t()}r.exports=h}).call(this,"undefined"!==typeof t?t:"undefined"!==typeof self?self:"undefined"!==typeof window?window:{})},{}],8:[function(e,t,r){"function"===typeof Object.create?t.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:t.exports=function(e,t){if(t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}}},{}],9:[function(e,t,r){function n(e){return!!e.constructor&&"function"===typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}function i(e){return"function"===typeof e.readFloatLE&&"function"===typeof e.slice&&n(e.slice(0,0))}
  9. /*!
  10. * Determine if an object is a Buffer
  11. *
  12. * @author Feross Aboukhadijeh <https://feross.org>
  13. * @license MIT
  14. */
  15. t.exports=function(e){return null!=e&&(n(e)||i(e)||!!e._isBuffer)}},{}],10:[function(e,t,r){var n={}.toString;t.exports=Array.isArray||function(e){return"[object Array]"==n.call(e)}},{}],11:[function(e,t,r){"use strict";var n=e("./utils"),i=e("./support"),a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";r.encode=function(e){var t,r,i,o,s,l,u,f=[],h=0,c=e.length,d=c,p="string"!==n.getTypeOf(e);while(h<e.length)d=c-h,p?(t=e[h++],r=h<c?e[h++]:0,i=h<c?e[h++]:0):(t=e.charCodeAt(h++),r=h<c?e.charCodeAt(h++):0,i=h<c?e.charCodeAt(h++):0),o=t>>2,s=(3&t)<<4|r>>4,l=d>1?(15&r)<<2|i>>6:64,u=d>2?63&i:64,f.push(a.charAt(o)+a.charAt(s)+a.charAt(l)+a.charAt(u));return f.join("")},r.decode=function(e){var t,r,n,o,s,l,u,f=0,h=0,c="data:";if(e.substr(0,c.length)===c)throw new Error("Invalid base64 input, it looks like a data url.");e=e.replace(/[^A-Za-z0-9\+\/\=]/g,"");var d,p=3*e.length/4;if(e.charAt(e.length-1)===a.charAt(64)&&p--,e.charAt(e.length-2)===a.charAt(64)&&p--,p%1!==0)throw new Error("Invalid base64 input, bad content length.");d=i.uint8array?new Uint8Array(0|p):new Array(0|p);while(f<e.length)o=a.indexOf(e.charAt(f++)),s=a.indexOf(e.charAt(f++)),l=a.indexOf(e.charAt(f++)),u=a.indexOf(e.charAt(f++)),t=o<<2|s>>4,r=(15&s)<<4|l>>2,n=(3&l)<<6|u,d[h++]=t,64!==l&&(d[h++]=r),64!==u&&(d[h++]=n);return d}},{"./support":40,"./utils":42}],12:[function(e,t,r){"use strict";var n=e("./external"),i=e("./stream/DataWorker"),a=e("./stream/DataLengthProbe"),o=e("./stream/Crc32Probe");a=e("./stream/DataLengthProbe");function s(e,t,r,n,i){this.compressedSize=e,this.uncompressedSize=t,this.crc32=r,this.compression=n,this.compressedContent=i}s.prototype={getContentWorker:function(){var e=new i(n.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new a("data_length")),t=this;return e.on("end",(function(){if(this.streamInfo["data_length"]!==t.uncompressedSize)throw new Error("Bug : uncompressed data size mismatch")})),e},getCompressedWorker:function(){return new i(n.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)}},s.createWorkerFrom=function(e,t,r){return e.pipe(new o).pipe(new a("uncompressedSize")).pipe(t.compressWorker(r)).pipe(new a("compressedSize")).withStreamInfo("compression",t)},t.exports=s},{"./external":16,"./stream/Crc32Probe":35,"./stream/DataLengthProbe":36,"./stream/DataWorker":37}],13:[function(e,t,r){"use strict";var n=e("./stream/GenericWorker");r.STORE={magic:"\0\0",compressWorker:function(e){return new n("STORE compression")},uncompressWorker:function(){return new n("STORE decompression")}},r.DEFLATE=e("./flate")},{"./flate":17,"./stream/GenericWorker":38}],14:[function(e,t,r){"use strict";var n=e("./utils");function i(){for(var e,t=[],r=0;r<256;r++){e=r;for(var n=0;n<8;n++)e=1&e?3988292384^e>>>1:e>>>1;t[r]=e}return t}var a=i();function o(e,t,r,n){var i=a,o=n+r;e^=-1;for(var s=n;s<o;s++)e=e>>>8^i[255&(e^t[s])];return-1^e}function s(e,t,r,n){var i=a,o=n+r;e^=-1;for(var s=n;s<o;s++)e=e>>>8^i[255&(e^t.charCodeAt(s))];return-1^e}t.exports=function(e,t){if("undefined"===typeof e||!e.length)return 0;var r="string"!==n.getTypeOf(e);return r?o(0|t,e,e.length,0):s(0|t,e,e.length,0)}},{"./utils":42}],15:[function(e,t,r){"use strict";r.base64=!1,r.binary=!1,r.dir=!1,r.createFolders=!0,r.date=null,r.compression=null,r.compressionOptions=null,r.comment=null,r.unixPermissions=null,r.dosPermissions=null},{}],16:[function(e,t,r){"use strict";var n=null;n="undefined"!==typeof Promise?Promise:e("lie"),t.exports={Promise:n}},{lie:46}],17:[function(e,t,r){"use strict";var n="undefined"!==typeof Uint8Array&&"undefined"!==typeof Uint16Array&&"undefined"!==typeof Uint32Array,i=e("pako"),a=e("./utils"),o=e("./stream/GenericWorker"),s=n?"uint8array":"array";function l(e,t){o.call(this,"FlateWorker/"+e),this._pako=null,this._pakoAction=e,this._pakoOptions=t,this.meta={}}r.magic="\b\0",a.inherits(l,o),l.prototype.processChunk=function(e){this.meta=e.meta,null===this._pako&&this._createPako(),this._pako.push(a.transformTo(s,e.data),!1)},l.prototype.flush=function(){o.prototype.flush.call(this),null===this._pako&&this._createPako(),this._pako.push([],!0)},l.prototype.cleanUp=function(){o.prototype.cleanUp.call(this),this._pako=null},l.prototype._createPako=function(){this._pako=new i[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var e=this;this._pako.onData=function(t){e.push({data:t,meta:e.meta})}},r.compressWorker=function(e){return new l("Deflate",e)},r.uncompressWorker=function(){return new l("Inflate",{})}},{"./stream/GenericWorker":38,"./utils":42,pako:47}],18:[function(e,t,r){"use strict";var n=e("../utils"),i=e("../stream/GenericWorker"),a=e("../utf8"),o=e("../crc32"),s=e("../signature"),l=function(e,t){var r,n="";for(r=0;r<t;r++)n+=String.fromCharCode(255&e),e>>>=8;return n},u=function(e,t){var r=e;return e||(r=t?16893:33204),(65535&r)<<16},f=function(e,t){return 63&(e||0)},h=function(e,t,r,i,h,c){var d,p,m=e["file"],g=e["compression"],v=c!==a.utf8encode,y=n.transformTo("string",c(m.name)),b=n.transformTo("string",a.utf8encode(m.name)),_=m.comment,w=n.transformTo("string",c(_)),E=n.transformTo("string",a.utf8encode(_)),k=b.length!==m.name.length,S=E.length!==_.length,C="",T="",x="",R=m.dir,A=m.date,O={crc32:0,compressedSize:0,uncompressedSize:0};t&&!r||(O.crc32=e["crc32"],O.compressedSize=e["compressedSize"],O.uncompressedSize=e["uncompressedSize"]);var L=0;t&&(L|=8),v||!k&&!S||(L|=2048);var I=0,F=0;R&&(I|=16),"UNIX"===h?(F=798,I|=u(m.unixPermissions,R)):(F=20,I|=f(m.dosPermissions,R)),d=A.getUTCHours(),d<<=6,d|=A.getUTCMinutes(),d<<=5,d|=A.getUTCSeconds()/2,p=A.getUTCFullYear()-1980,p<<=4,p|=A.getUTCMonth()+1,p<<=5,p|=A.getUTCDate(),k&&(T=l(1,1)+l(o(y),4)+b,C+="up"+l(T.length,2)+T),S&&(x=l(1,1)+l(o(w),4)+E,C+="uc"+l(x.length,2)+x);var M="";M+="\n\0",M+=l(L,2),M+=g.magic,M+=l(d,2),M+=l(p,2),M+=l(O.crc32,4),M+=l(O.compressedSize,4),M+=l(O.uncompressedSize,4),M+=l(y.length,2),M+=l(C.length,2);var B=s.LOCAL_FILE_HEADER+M+y+C,P=s.CENTRAL_FILE_HEADER+l(F,2)+M+l(w.length,2)+"\0\0\0\0"+l(I,4)+l(i,4)+y+C+w;return{fileRecord:B,dirRecord:P}},c=function(e,t,r,i,a){var o="",u=n.transformTo("string",a(i));return o=s.CENTRAL_DIRECTORY_END+"\0\0\0\0"+l(e,2)+l(e,2)+l(t,4)+l(r,4)+l(u.length,2)+u,o},d=function(e){var t="";return t=s.DATA_DESCRIPTOR+l(e["crc32"],4)+l(e["compressedSize"],4)+l(e["uncompressedSize"],4),t};function p(e,t,r,n){i.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=t,this.zipPlatform=r,this.encodeFileName=n,this.streamFiles=e,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}n.inherits(p,i),p.prototype.push=function(e){var t=e.meta.percent||0,r=this.entriesCount,n=this._sources.length;this.accumulate?this.contentBuffer.push(e):(this.bytesWritten+=e.data.length,i.prototype.push.call(this,{data:e.data,meta:{currentFile:this.currentFile,percent:r?(t+100*(r-n-1))/r:100}}))},p.prototype.openedSource=function(e){this.currentSourceOffset=this.bytesWritten,this.currentFile=e["file"].name;var t=this.streamFiles&&!e["file"].dir;if(t){var r=h(e,t,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:r.fileRecord,meta:{percent:0}})}else this.accumulate=!0},p.prototype.closedSource=function(e){this.accumulate=!1;var t=this.streamFiles&&!e["file"].dir,r=h(e,t,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(r.dirRecord),t)this.push({data:d(e),meta:{percent:100}});else{this.push({data:r.fileRecord,meta:{percent:0}});while(this.contentBuffer.length)this.push(this.contentBuffer.shift())}this.currentFile=null},p.prototype.flush=function(){for(var e=this.bytesWritten,t=0;t<this.dirRecords.length;t++)this.push({data:this.dirRecords[t],meta:{percent:100}});var r=this.bytesWritten-e,n=c(this.dirRecords.length,r,e,this.zipComment,this.encodeFileName);this.push({data:n,meta:{percent:100}})},p.prototype.prepareNextSource=function(){this.previous=this._sources.shift(),this.openedSource(this.previous.streamInfo),this.isPaused?this.previous.pause():this.previous.resume()},p.prototype.registerPrevious=function(e){this._sources.push(e);var t=this;return e.on("data",(function(e){t.processChunk(e)})),e.on("end",(function(){t.closedSource(t.previous.streamInfo),t._sources.length?t.prepareNextSource():t.end()})),e.on("error",(function(e){t.error(e)})),this},p.prototype.resume=function(){return!!i.prototype.resume.call(this)&&(!this.previous&&this._sources.length?(this.prepareNextSource(),!0):this.previous||this._sources.length||this.generatedError?void 0:(this.end(),!0))},p.prototype.error=function(e){var t=this._sources;if(!i.prototype.error.call(this,e))return!1;for(var r=0;r<t.length;r++)try{t[r].error(e)}catch(e){}return!0},p.prototype.lock=function(){i.prototype.lock.call(this);for(var e=this._sources,t=0;t<e.length;t++)e[t].lock()},t.exports=p},{"../crc32":14,"../signature":33,"../stream/GenericWorker":38,"../utf8":41,"../utils":42}],19:[function(e,t,r){"use strict";var n=e("../compressions"),i=e("./ZipFileWorker"),a=function(e,t){var r=e||t,i=n[r];if(!i)throw new Error(r+" is not a valid compression method !");return i};r.generateWorker=function(e,t,r){var n=new i(t.streamFiles,r,t.platform,t.encodeFileName),o=0;try{e.forEach((function(e,r){o++;var i=a(r.options.compression,t.compression),s=r.options.compressionOptions||t.compressionOptions||{},l=r.dir,u=r.date;r._compressWorker(i,s).withStreamInfo("file",{name:e,dir:l,date:u,comment:r.comment||"",unixPermissions:r.unixPermissions,dosPermissions:r.dosPermissions}).pipe(n)})),n.entriesCount=o}catch(s){n.error(s)}return n}},{"../compressions":13,"./ZipFileWorker":18}],20:[function(e,t,r){"use strict";function n(){if(!(this instanceof n))return new n;if(arguments.length)throw new Error("The constructor with parameters has been removed in JSZip 3.0, please check the upgrade guide.");this.files={},this.comment=null,this.root="",this.clone=function(){var e=new n;for(var t in this)"function"!==typeof this[t]&&(e[t]=this[t]);return e}}n.prototype=e("./object"),n.prototype.loadAsync=e("./load"),n.support=e("./support"),n.defaults=e("./defaults"),n.version="3.5.0",n.loadAsync=function(e,t){return(new n).loadAsync(e,t)},n.external=e("./external"),t.exports=n},{"./defaults":15,"./external":16,"./load":21,"./object":25,"./support":40}],21:[function(e,t,r){"use strict";var n=e("./utils"),i=e("./external"),a=e("./utf8"),o=(n=e("./utils"),e("./zipEntries")),s=e("./stream/Crc32Probe"),l=e("./nodejsUtils");function u(e){return new i.Promise((function(t,r){var n=e.decompressed.getContentWorker().pipe(new s);n.on("error",(function(e){r(e)})).on("end",(function(){n.streamInfo.crc32!==e.decompressed.crc32?r(new Error("Corrupted zip : CRC32 mismatch")):t()})).resume()}))}t.exports=function(e,t){var r=this;return t=n.extend(t||{},{base64:!1,checkCRC32:!1,optimizedBinaryString:!1,createFolders:!1,decodeFileName:a.utf8decode}),l.isNode&&l.isStream(e)?i.Promise.reject(new Error("JSZip can't accept a stream when loading a zip file.")):n.prepareContent("the loaded zip file",e,!0,t.optimizedBinaryString,t.base64).then((function(e){var r=new o(t);return r.load(e),r})).then((function(e){var r=[i.Promise.resolve(e)],n=e.files;if(t.checkCRC32)for(var a=0;a<n.length;a++)r.push(u(n[a]));return i.Promise.all(r)})).then((function(e){for(var n=e.shift(),i=n.files,a=0;a<i.length;a++){var o=i[a];r.file(o.fileNameStr,o.decompressed,{binary:!0,optimizedBinaryString:!0,date:o.date,dir:o.dir,comment:o.fileCommentStr.length?o.fileCommentStr:null,unixPermissions:o.unixPermissions,dosPermissions:o.dosPermissions,createFolders:t.createFolders})}return n.zipComment.length&&(r.comment=n.zipComment),r}))}},{"./external":16,"./nodejsUtils":22,"./stream/Crc32Probe":35,"./utf8":41,"./utils":42,"./zipEntries":43}],22:[function(e,t,r){(function(e){"use strict";t.exports={isNode:"undefined"!==typeof e,newBufferFrom:function(t,r){if(e.from&&e.from!==Uint8Array.from)return e.from(t,r);if("number"===typeof t)throw new Error('The "data" argument must not be a number');return new e(t,r)},allocBuffer:function(t){if(e.alloc)return e.alloc(t);var r=new e(t);return r.fill(0),r},isBuffer:function(t){return e.isBuffer(t)},isStream:function(e){return e&&"function"===typeof e.on&&"function"===typeof e.pause&&"function"===typeof e.resume}}}).call(this,e("buffer").Buffer)},{buffer:3}],23:[function(e,t,r){"use strict";var n=e("../utils"),i=e("../stream/GenericWorker");function a(e,t){i.call(this,"Nodejs stream input adapter for "+e),this._upstreamEnded=!1,this._bindStream(t)}n.inherits(a,i),a.prototype._bindStream=function(e){var t=this;this._stream=e,e.pause(),e.on("data",(function(e){t.push({data:e,meta:{percent:0}})})).on("error",(function(e){t.isPaused?this.generatedError=e:t.error(e)})).on("end",(function(){t.isPaused?t._upstreamEnded=!0:t.end()}))},a.prototype.pause=function(){return!!i.prototype.pause.call(this)&&(this._stream.pause(),!0)},a.prototype.resume=function(){return!!i.prototype.resume.call(this)&&(this._upstreamEnded?this.end():this._stream.resume(),!0)},t.exports=a},{"../stream/GenericWorker":38,"../utils":42}],24:[function(e,t,r){"use strict";var n=e("readable-stream").Readable,i=e("../utils");function a(e,t,r){n.call(this,t),this._helper=e;var i=this;e.on("data",(function(e,t){i.push(e)||i._helper.pause(),r&&r(t)})).on("error",(function(e){i.emit("error",e)})).on("end",(function(){i.push(null)}))}i.inherits(a,n),a.prototype._read=function(){this._helper.resume()},t.exports=a},{"../utils":42,"readable-stream":26}],25:[function(e,t,r){"use strict";var n=e("./utf8"),i=e("./utils"),a=e("./stream/GenericWorker"),o=e("./stream/StreamHelper"),s=e("./defaults"),l=e("./compressedObject"),u=e("./zipObject"),f=e("./generate"),h=e("./nodejsUtils"),c=e("./nodejs/NodejsStreamInputAdapter"),d=function(e,t,r){var n,o=i.getTypeOf(t),f=i.extend(r||{},s);f.date=f.date||new Date,null!==f.compression&&(f.compression=f.compression.toUpperCase()),"string"===typeof f.unixPermissions&&(f.unixPermissions=parseInt(f.unixPermissions,8)),f.unixPermissions&&16384&f.unixPermissions&&(f.dir=!0),f.dosPermissions&&16&f.dosPermissions&&(f.dir=!0),f.dir&&(e=m(e)),f.createFolders&&(n=p(e))&&g.call(this,n,!0);var d="string"===o&&!1===f.binary&&!1===f.base64;r&&"undefined"!==typeof r.binary||(f.binary=!d);var v=t instanceof l&&0===t.uncompressedSize;(v||f.dir||!t||0===t.length)&&(f.base64=!1,f.binary=!0,t="",f.compression="STORE",o="string");var y=null;y=t instanceof l||t instanceof a?t:h.isNode&&h.isStream(t)?new c(e,t):i.prepareContent(e,t,f.binary,f.optimizedBinaryString,f.base64);var b=new u(e,y,f);this.files[e]=b},p=function(e){"/"===e.slice(-1)&&(e=e.substring(0,e.length-1));var t=e.lastIndexOf("/");return t>0?e.substring(0,t):""},m=function(e){return"/"!==e.slice(-1)&&(e+="/"),e},g=function(e,t){return t="undefined"!==typeof t?t:s.createFolders,e=m(e),this.files[e]||d.call(this,e,null,{dir:!0,createFolders:t}),this.files[e]};function v(e){return"[object RegExp]"===Object.prototype.toString.call(e)}var y={load:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},forEach:function(e){var t,r,n;for(t in this.files)this.files.hasOwnProperty(t)&&(n=this.files[t],r=t.slice(this.root.length,t.length),r&&t.slice(0,this.root.length)===this.root&&e(r,n))},filter:function(e){var t=[];return this.forEach((function(r,n){e(r,n)&&t.push(n)})),t},file:function(e,t,r){if(1===arguments.length){if(v(e)){var n=e;return this.filter((function(e,t){return!t.dir&&n.test(e)}))}var i=this.files[this.root+e];return i&&!i.dir?i:null}return e=this.root+e,d.call(this,e,t,r),this},folder:function(e){if(!e)return this;if(v(e))return this.filter((function(t,r){return r.dir&&e.test(t)}));var t=this.root+e,r=g.call(this,t),n=this.clone();return n.root=r.name,n},remove:function(e){e=this.root+e;var t=this.files[e];if(t||("/"!==e.slice(-1)&&(e+="/"),t=this.files[e]),t&&!t.dir)delete this.files[e];else for(var r=this.filter((function(t,r){return r.name.slice(0,e.length)===e})),n=0;n<r.length;n++)delete this.files[r[n].name];return this},generate:function(e){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},generateInternalStream:function(e){var t,r={};try{if(r=i.extend(e||{},{streamFiles:!1,compression:"STORE",compressionOptions:null,type:"",platform:"DOS",comment:null,mimeType:"application/zip",encodeFileName:n.utf8encode}),r.type=r.type.toLowerCase(),r.compression=r.compression.toUpperCase(),"binarystring"===r.type&&(r.type="string"),!r.type)throw new Error("No output type specified.");i.checkSupport(r.type),"darwin"!==r.platform&&"freebsd"!==r.platform&&"linux"!==r.platform&&"sunos"!==r.platform||(r.platform="UNIX"),"win32"===r.platform&&(r.platform="DOS");var s=r.comment||this.comment||"";t=f.generateWorker(this,r,s)}catch(l){t=new a("error"),t.error(l)}return new o(t,r.type||"string",r.mimeType)},generateAsync:function(e,t){return this.generateInternalStream(e).accumulate(t)},generateNodeStream:function(e,t){return e=e||{},e.type||(e.type="nodebuffer"),this.generateInternalStream(e).toNodejsStream(t)}};t.exports=y},{"./compressedObject":12,"./defaults":15,"./generate":19,"./nodejs/NodejsStreamInputAdapter":23,"./nodejsUtils":22,"./stream/GenericWorker":38,"./stream/StreamHelper":39,"./utf8":41,"./utils":42,"./zipObject":45}],26:[function(e,t,r){t.exports=e("stream")},{stream:80}],27:[function(e,t,r){"use strict";var n=e("./DataReader"),i=e("../utils");function a(e){n.call(this,e);for(var t=0;t<this.data.length;t++)e[t]=255&e[t]}i.inherits(a,n),a.prototype.byteAt=function(e){return this.data[this.zero+e]},a.prototype.lastIndexOfSignature=function(e){for(var t=e.charCodeAt(0),r=e.charCodeAt(1),n=e.charCodeAt(2),i=e.charCodeAt(3),a=this.length-4;a>=0;--a)if(this.data[a]===t&&this.data[a+1]===r&&this.data[a+2]===n&&this.data[a+3]===i)return a-this.zero;return-1},a.prototype.readAndCheckSignature=function(e){var t=e.charCodeAt(0),r=e.charCodeAt(1),n=e.charCodeAt(2),i=e.charCodeAt(3),a=this.readData(4);return t===a[0]&&r===a[1]&&n===a[2]&&i===a[3]},a.prototype.readData=function(e){if(this.checkOffset(e),0===e)return[];var t=this.data.slice(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t},t.exports=a},{"../utils":42,"./DataReader":28}],28:[function(e,t,r){"use strict";var n=e("../utils");function i(e){this.data=e,this.length=e.length,this.index=0,this.zero=0}i.prototype={checkOffset:function(e){this.checkIndex(this.index+e)},checkIndex:function(e){if(this.length<this.zero+e||e<0)throw new Error("End of data reached (data length = "+this.length+", asked index = "+e+"). Corrupted zip ?")},setIndex:function(e){this.checkIndex(e),this.index=e},skip:function(e){this.setIndex(this.index+e)},byteAt:function(e){},readInt:function(e){var t,r=0;for(this.checkOffset(e),t=this.index+e-1;t>=this.index;t--)r=(r<<8)+this.byteAt(t);return this.index+=e,r},readString:function(e){return n.transformTo("string",this.readData(e))},readData:function(e){},lastIndexOfSignature:function(e){},readAndCheckSignature:function(e){},readDate:function(){var e=this.readInt(4);return new Date(Date.UTC(1980+(e>>25&127),(e>>21&15)-1,e>>16&31,e>>11&31,e>>5&63,(31&e)<<1))}},t.exports=i},{"../utils":42}],29:[function(e,t,r){"use strict";var n=e("./Uint8ArrayReader"),i=e("../utils");function a(e){n.call(this,e)}i.inherits(a,n),a.prototype.readData=function(e){this.checkOffset(e);var t=this.data.slice(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t},t.exports=a},{"../utils":42,"./Uint8ArrayReader":31}],30:[function(e,t,r){"use strict";var n=e("./DataReader"),i=e("../utils");function a(e){n.call(this,e)}i.inherits(a,n),a.prototype.byteAt=function(e){return this.data.charCodeAt(this.zero+e)},a.prototype.lastIndexOfSignature=function(e){return this.data.lastIndexOf(e)-this.zero},a.prototype.readAndCheckSignature=function(e){var t=this.readData(4);return e===t},a.prototype.readData=function(e){this.checkOffset(e);var t=this.data.slice(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t},t.exports=a},{"../utils":42,"./DataReader":28}],31:[function(e,t,r){"use strict";var n=e("./ArrayReader"),i=e("../utils");function a(e){n.call(this,e)}i.inherits(a,n),a.prototype.readData=function(e){if(this.checkOffset(e),0===e)return new Uint8Array(0);var t=this.data.subarray(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t},t.exports=a},{"../utils":42,"./ArrayReader":27}],32:[function(e,t,r){"use strict";var n=e("../utils"),i=e("../support"),a=e("./ArrayReader"),o=e("./StringReader"),s=e("./NodeBufferReader"),l=e("./Uint8ArrayReader");t.exports=function(e){var t=n.getTypeOf(e);return n.checkSupport(t),"string"!==t||i.uint8array?"nodebuffer"===t?new s(e):i.uint8array?new l(n.transformTo("uint8array",e)):new a(n.transformTo("array",e)):new o(e)}},{"../support":40,"../utils":42,"./ArrayReader":27,"./NodeBufferReader":29,"./StringReader":30,"./Uint8ArrayReader":31}],33:[function(e,t,r){"use strict";r.LOCAL_FILE_HEADER="PK",r.CENTRAL_FILE_HEADER="PK",r.CENTRAL_DIRECTORY_END="PK",r.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK",r.ZIP64_CENTRAL_DIRECTORY_END="PK",r.DATA_DESCRIPTOR="PK\b"},{}],34:[function(e,t,r){"use strict";var n=e("./GenericWorker"),i=e("../utils");function a(e){n.call(this,"ConvertWorker to "+e),this.destType=e}i.inherits(a,n),a.prototype.processChunk=function(e){this.push({data:i.transformTo(this.destType,e.data),meta:e.meta})},t.exports=a},{"../utils":42,"./GenericWorker":38}],35:[function(e,t,r){"use strict";var n=e("./GenericWorker"),i=e("../crc32"),a=e("../utils");function o(){n.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}a.inherits(o,n),o.prototype.processChunk=function(e){this.streamInfo.crc32=i(e.data,this.streamInfo.crc32||0),this.push(e)},t.exports=o},{"../crc32":14,"../utils":42,"./GenericWorker":38}],36:[function(e,t,r){"use strict";var n=e("../utils"),i=e("./GenericWorker");function a(e){i.call(this,"DataLengthProbe for "+e),this.propName=e,this.withStreamInfo(e,0)}n.inherits(a,i),a.prototype.processChunk=function(e){if(e){var t=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=t+e.data.length}i.prototype.processChunk.call(this,e)},t.exports=a},{"../utils":42,"./GenericWorker":38}],37:[function(e,t,r){"use strict";var n=e("../utils"),i=e("./GenericWorker"),a=16384;function o(e){i.call(this,"DataWorker");var t=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type="",this._tickScheduled=!1,e.then((function(e){t.dataIsReady=!0,t.data=e,t.max=e&&e.length||0,t.type=n.getTypeOf(e),t.isPaused||t._tickAndRepeat()}),(function(e){t.error(e)}))}n.inherits(o,i),o.prototype.cleanUp=function(){i.prototype.cleanUp.call(this),this.data=null},o.prototype.resume=function(){return!!i.prototype.resume.call(this)&&(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,n.delay(this._tickAndRepeat,[],this)),!0)},o.prototype._tickAndRepeat=function(){this._tickScheduled=!1,this.isPaused||this.isFinished||(this._tick(),this.isFinished||(n.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0))},o.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var e=a,t=null,r=Math.min(this.max,this.index+e);if(this.index>=this.max)return this.end();switch(this.type){case"string":t=this.data.substring(this.index,r);break;case"uint8array":t=this.data.subarray(this.index,r);break;case"array":case"nodebuffer":t=this.data.slice(this.index,r);break}return this.index=r,this.push({data:t,meta:{percent:this.max?this.index/this.max*100:0}})},t.exports=o},{"../utils":42,"./GenericWorker":38}],38:[function(e,t,r){"use strict";function n(e){this.name=e||"default",this.streamInfo={},this.generatedError=null,this.extraStreamInfo={},this.isPaused=!0,this.isFinished=!1,this.isLocked=!1,this._listeners={data:[],end:[],error:[]},this.previous=null}n.prototype={push:function(e){this.emit("data",e)},end:function(){if(this.isFinished)return!1;this.flush();try{this.emit("end"),this.cleanUp(),this.isFinished=!0}catch(e){this.emit("error",e)}return!0},error:function(e){return!this.isFinished&&(this.isPaused?this.generatedError=e:(this.isFinished=!0,this.emit("error",e),this.previous&&this.previous.error(e),this.cleanUp()),!0)},on:function(e,t){return this._listeners[e].push(t),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function(e,t){if(this._listeners[e])for(var r=0;r<this._listeners[e].length;r++)this._listeners[e][r].call(this,t)},pipe:function(e){return e.registerPrevious(this)},registerPrevious:function(e){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.streamInfo=e.streamInfo,this.mergeStreamInfo(),this.previous=e;var t=this;return e.on("data",(function(e){t.processChunk(e)})),e.on("end",(function(){t.end()})),e.on("error",(function(e){t.error(e)})),this},pause:function(){return!this.isPaused&&!this.isFinished&&(this.isPaused=!0,this.previous&&this.previous.pause(),!0)},resume:function(){if(!this.isPaused||this.isFinished)return!1;this.isPaused=!1;var e=!1;return this.generatedError&&(this.error(this.generatedError),e=!0),this.previous&&this.previous.resume(),!e},flush:function(){},processChunk:function(e){this.push(e)},withStreamInfo:function(e,t){return this.extraStreamInfo[e]=t,this.mergeStreamInfo(),this},mergeStreamInfo:function(){for(var e in this.extraStreamInfo)this.extraStreamInfo.hasOwnProperty(e)&&(this.streamInfo[e]=this.extraStreamInfo[e])},lock:function(){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.isLocked=!0,this.previous&&this.previous.lock()},toString:function(){var e="Worker "+this.name;return this.previous?this.previous+" -> "+e:e}},t.exports=n},{}],39:[function(e,t,r){(function(r){"use strict";var n=e("../utils"),i=e("./ConvertWorker"),a=e("./GenericWorker"),o=e("../base64"),s=e("../support"),l=e("../external"),u=null;if(s.nodestream)try{u=e("../nodejs/NodejsStreamOutputAdapter")}catch(p){}function f(e,t,r){switch(e){case"blob":return n.newBlob(n.transformTo("arraybuffer",t),r);case"base64":return o.encode(t);default:return n.transformTo(e,t)}}function h(e,t){var n,i=0,a=null,o=0;for(n=0;n<t.length;n++)o+=t[n].length;switch(e){case"string":return t.join("");case"array":return Array.prototype.concat.apply([],t);case"uint8array":for(a=new Uint8Array(o),n=0;n<t.length;n++)a.set(t[n],i),i+=t[n].length;return a;case"nodebuffer":return r.concat(t);default:throw new Error("concat : unsupported type '"+e+"'")}}function c(e,t){return new l.Promise((function(r,n){var i=[],a=e._internalType,o=e._outputType,s=e._mimeType;e.on("data",(function(e,r){i.push(e),t&&t(r)})).on("error",(function(e){i=[],n(e)})).on("end",(function(){try{var e=f(o,h(a,i),s);r(e)}catch(p){n(p)}i=[]})).resume()}))}function d(e,t,r){var o=t;switch(t){case"blob":case"arraybuffer":o="uint8array";break;case"base64":o="string";break}try{this._internalType=o,this._outputType=t,this._mimeType=r,n.checkSupport(o),this._worker=e.pipe(new i(o)),e.lock()}catch(p){this._worker=new a("error"),this._worker.error(p)}}d.prototype={accumulate:function(e){return c(this,e)},on:function(e,t){var r=this;return"data"===e?this._worker.on(e,(function(e){t.call(r,e.data,e.meta)})):this._worker.on(e,(function(){n.delay(t,arguments,r)})),this},resume:function(){return n.delay(this._worker.resume,[],this._worker),this},pause:function(){return this._worker.pause(),this},toNodejsStream:function(e){if(n.checkSupport("nodestream"),"nodebuffer"!==this._outputType)throw new Error(this._outputType+" is not supported by this method");return new u(this,{objectMode:"nodebuffer"!==this._outputType},e)}},t.exports=d}).call(this,e("buffer").Buffer)},{"../base64":11,"../external":16,"../nodejs/NodejsStreamOutputAdapter":24,"../support":40,"../utils":42,"./ConvertWorker":34,"./GenericWorker":38,buffer:3}],40:[function(e,t,r){(function(t){"use strict";if(r.base64=!0,r.array=!0,r.string=!0,r.arraybuffer="undefined"!==typeof ArrayBuffer&&"undefined"!==typeof Uint8Array,r.nodebuffer="undefined"!==typeof t,r.uint8array="undefined"!==typeof Uint8Array,"undefined"===typeof ArrayBuffer)r.blob=!1;else{var n=new ArrayBuffer(0);try{r.blob=0===new Blob([n],{type:"application/zip"}).size}catch(o){try{var i=self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder,a=new i;a.append(n),r.blob=0===a.getBlob("application/zip").size}catch(o){r.blob=!1}}}try{r.nodestream=!!e("readable-stream").Readable}catch(o){r.nodestream=!1}}).call(this,e("buffer").Buffer)},{buffer:3,"readable-stream":26}],41:[function(e,t,r){"use strict";for(var n=e("./utils"),i=e("./support"),a=e("./nodejsUtils"),o=e("./stream/GenericWorker"),s=new Array(256),l=0;l<256;l++)s[l]=l>=252?6:l>=248?5:l>=240?4:l>=224?3:l>=192?2:1;s[254]=s[254]=1;var u=function(e){var t,r,n,a,o,s=e.length,l=0;for(a=0;a<s;a++)r=e.charCodeAt(a),55296===(64512&r)&&a+1<s&&(n=e.charCodeAt(a+1),56320===(64512&n)&&(r=65536+(r-55296<<10)+(n-56320),a++)),l+=r<128?1:r<2048?2:r<65536?3:4;for(t=i.uint8array?new Uint8Array(l):new Array(l),o=0,a=0;o<l;a++)r=e.charCodeAt(a),55296===(64512&r)&&a+1<s&&(n=e.charCodeAt(a+1),56320===(64512&n)&&(r=65536+(r-55296<<10)+(n-56320),a++)),r<128?t[o++]=r:r<2048?(t[o++]=192|r>>>6,t[o++]=128|63&r):r<65536?(t[o++]=224|r>>>12,t[o++]=128|r>>>6&63,t[o++]=128|63&r):(t[o++]=240|r>>>18,t[o++]=128|r>>>12&63,t[o++]=128|r>>>6&63,t[o++]=128|63&r);return t},f=function(e,t){var r;t=t||e.length,t>e.length&&(t=e.length),r=t-1;while(r>=0&&128===(192&e[r]))r--;return r<0||0===r?t:r+s[e[r]]>t?r:t},h=function(e){var t,r,i,a,o=e.length,l=new Array(2*o);for(r=0,t=0;t<o;)if(i=e[t++],i<128)l[r++]=i;else if(a=s[i],a>4)l[r++]=65533,t+=a-1;else{i&=2===a?31:3===a?15:7;while(a>1&&t<o)i=i<<6|63&e[t++],a--;a>1?l[r++]=65533:i<65536?l[r++]=i:(i-=65536,l[r++]=55296|i>>10&1023,l[r++]=56320|1023&i)}return l.length!==r&&(l.subarray?l=l.subarray(0,r):l.length=r),n.applyFromCharCode(l)};function c(){o.call(this,"utf-8 decode"),this.leftOver=null}function d(){o.call(this,"utf-8 encode")}r.utf8encode=function(e){return i.nodebuffer?a.newBufferFrom(e,"utf-8"):u(e)},r.utf8decode=function(e){return i.nodebuffer?n.transformTo("nodebuffer",e).toString("utf-8"):(e=n.transformTo(i.uint8array?"uint8array":"array",e),h(e))},n.inherits(c,o),c.prototype.processChunk=function(e){var t=n.transformTo(i.uint8array?"uint8array":"array",e.data);if(this.leftOver&&this.leftOver.length){if(i.uint8array){var a=t;t=new Uint8Array(a.length+this.leftOver.length),t.set(this.leftOver,0),t.set(a,this.leftOver.length)}else t=this.leftOver.concat(t);this.leftOver=null}var o=f(t),s=t;o!==t.length&&(i.uint8array?(s=t.subarray(0,o),this.leftOver=t.subarray(o,t.length)):(s=t.slice(0,o),this.leftOver=t.slice(o,t.length))),this.push({data:r.utf8decode(s),meta:e.meta})},c.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:r.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},r.Utf8DecodeWorker=c,n.inherits(d,o),d.prototype.processChunk=function(e){this.push({data:r.utf8encode(e.data),meta:e.meta})},r.Utf8EncodeWorker=d},{"./nodejsUtils":22,"./stream/GenericWorker":38,"./support":40,"./utils":42}],42:[function(e,t,r){"use strict";var n=e("./support"),i=e("./base64"),a=e("./nodejsUtils"),o=e("set-immediate-shim"),s=e("./external");function l(e){var t=null;return t=n.uint8array?new Uint8Array(e.length):new Array(e.length),f(e,t)}function u(e){return e}function f(e,t){for(var r=0;r<e.length;++r)t[r]=255&e.charCodeAt(r);return t}r.newBlob=function(e,t){r.checkSupport("blob");try{return new Blob([e],{type:t})}catch(a){try{var n=self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder,i=new n;return i.append(e),i.getBlob(t)}catch(a){throw new Error("Bug : can't construct the Blob.")}}};var h={stringifyByChunk:function(e,t,r){var n=[],i=0,a=e.length;if(a<=r)return String.fromCharCode.apply(null,e);while(i<a)"array"===t||"nodebuffer"===t?n.push(String.fromCharCode.apply(null,e.slice(i,Math.min(i+r,a)))):n.push(String.fromCharCode.apply(null,e.subarray(i,Math.min(i+r,a)))),i+=r;return n.join("")},stringifyByChar:function(e){for(var t="",r=0;r<e.length;r++)t+=String.fromCharCode(e[r]);return t},applyCanBeUsed:{uint8array:function(){try{return n.uint8array&&1===String.fromCharCode.apply(null,new Uint8Array(1)).length}catch(e){return!1}}(),nodebuffer:function(){try{return n.nodebuffer&&1===String.fromCharCode.apply(null,a.allocBuffer(1)).length}catch(e){return!1}}()}};function c(e){var t=65536,n=r.getTypeOf(e),i=!0;if("uint8array"===n?i=h.applyCanBeUsed.uint8array:"nodebuffer"===n&&(i=h.applyCanBeUsed.nodebuffer),i)while(t>1)try{return h.stringifyByChunk(e,n,t)}catch(a){t=Math.floor(t/2)}return h.stringifyByChar(e)}function d(e,t){for(var r=0;r<e.length;r++)t[r]=e[r];return t}r.applyFromCharCode=c;var p={};p["string"]={string:u,array:function(e){return f(e,new Array(e.length))},arraybuffer:function(e){return p["string"]["uint8array"](e).buffer},uint8array:function(e){return f(e,new Uint8Array(e.length))},nodebuffer:function(e){return f(e,a.allocBuffer(e.length))}},p["array"]={string:c,array:u,arraybuffer:function(e){return new Uint8Array(e).buffer},uint8array:function(e){return new Uint8Array(e)},nodebuffer:function(e){return a.newBufferFrom(e)}},p["arraybuffer"]={string:function(e){return c(new Uint8Array(e))},array:function(e){return d(new Uint8Array(e),new Array(e.byteLength))},arraybuffer:u,uint8array:function(e){return new Uint8Array(e)},nodebuffer:function(e){return a.newBufferFrom(new Uint8Array(e))}},p["uint8array"]={string:c,array:function(e){return d(e,new Array(e.length))},arraybuffer:function(e){return e.buffer},uint8array:u,nodebuffer:function(e){return a.newBufferFrom(e)}},p["nodebuffer"]={string:c,array:function(e){return d(e,new Array(e.length))},arraybuffer:function(e){return p["nodebuffer"]["uint8array"](e).buffer},uint8array:function(e){return d(e,new Uint8Array(e.length))},nodebuffer:u},r.transformTo=function(e,t){if(t||(t=""),!e)return t;r.checkSupport(e);var n=r.getTypeOf(t),i=p[n][e](t);return i},r.getTypeOf=function(e){return"string"===typeof e?"string":"[object Array]"===Object.prototype.toString.call(e)?"array":n.nodebuffer&&a.isBuffer(e)?"nodebuffer":n.uint8array&&e instanceof Uint8Array?"uint8array":n.arraybuffer&&e instanceof ArrayBuffer?"arraybuffer":void 0},r.checkSupport=function(e){var t=n[e.toLowerCase()];if(!t)throw new Error(e+" is not supported by this platform")},r.MAX_VALUE_16BITS=65535,r.MAX_VALUE_32BITS=-1,r.pretty=function(e){var t,r,n="";for(r=0;r<(e||"").length;r++)t=e.charCodeAt(r),n+="\\x"+(t<16?"0":"")+t.toString(16).toUpperCase();return n},r.delay=function(e,t,r){o((function(){e.apply(r||null,t||[])}))},r.inherits=function(e,t){var r=function(){};r.prototype=t.prototype,e.prototype=new r},r.extend=function(){var e,t,r={};for(e=0;e<arguments.length;e++)for(t in arguments[e])arguments[e].hasOwnProperty(t)&&"undefined"===typeof r[t]&&(r[t]=arguments[e][t]);return r},r.prepareContent=function(e,t,a,o,u){var f=s.Promise.resolve(t).then((function(e){var t=n.blob&&(e instanceof Blob||-1!==["[object File]","[object Blob]"].indexOf(Object.prototype.toString.call(e)));return t&&"undefined"!==typeof FileReader?new s.Promise((function(t,r){var n=new FileReader;n.onload=function(e){t(e.target.result)},n.onerror=function(e){r(e.target.error)},n.readAsArrayBuffer(e)})):e}));return f.then((function(t){var n=r.getTypeOf(t);return n?("arraybuffer"===n?t=r.transformTo("uint8array",t):"string"===n&&(u?t=i.decode(t):a&&!0!==o&&(t=l(t))),t):s.Promise.reject(new Error("Can't read the data of '"+e+"'. Is it in a supported JavaScript type (String, Blob, ArrayBuffer, etc) ?"))}))}},{"./base64":11,"./external":16,"./nodejsUtils":22,"./support":40,"set-immediate-shim":79}],43:[function(e,t,r){"use strict";var n=e("./reader/readerFor"),i=e("./utils"),a=e("./signature"),o=e("./zipEntry"),s=(e("./utf8"),e("./support"));function l(e){this.files=[],this.loadOptions=e}l.prototype={checkSignature:function(e){if(!this.reader.readAndCheckSignature(e)){this.reader.index-=4;var t=this.reader.readString(4);throw new Error("Corrupted zip or bug: unexpected signature ("+i.pretty(t)+", expected "+i.pretty(e)+")")}},isSignature:function(e,t){var r=this.reader.index;this.reader.setIndex(e);var n=this.reader.readString(4),i=n===t;return this.reader.setIndex(r),i},readBlockEndOfCentral:function(){this.diskNumber=this.reader.readInt(2),this.diskWithCentralDirStart=this.reader.readInt(2),this.centralDirRecordsOnThisDisk=this.reader.readInt(2),this.centralDirRecords=this.reader.readInt(2),this.centralDirSize=this.reader.readInt(4),this.centralDirOffset=this.reader.readInt(4),this.zipCommentLength=this.reader.readInt(2);var e=this.reader.readData(this.zipCommentLength),t=s.uint8array?"uint8array":"array",r=i.transformTo(t,e);this.zipComment=this.loadOptions.decodeFileName(r)},readBlockZip64EndOfCentral:function(){this.zip64EndOfCentralSize=this.reader.readInt(8),this.reader.skip(4),this.diskNumber=this.reader.readInt(4),this.diskWithCentralDirStart=this.reader.readInt(4),this.centralDirRecordsOnThisDisk=this.reader.readInt(8),this.centralDirRecords=this.reader.readInt(8),this.centralDirSize=this.reader.readInt(8),this.centralDirOffset=this.reader.readInt(8),this.zip64ExtensibleData={};var e,t,r,n=this.zip64EndOfCentralSize-44,i=0;while(i<n)e=this.reader.readInt(2),t=this.reader.readInt(4),r=this.reader.readData(t),this.zip64ExtensibleData[e]={id:e,length:t,value:r}},readBlockZip64EndOfCentralLocator:function(){if(this.diskWithZip64CentralDirStart=this.reader.readInt(4),this.relativeOffsetEndOfZip64CentralDir=this.reader.readInt(8),this.disksCount=this.reader.readInt(4),this.disksCount>1)throw new Error("Multi-volumes zip are not supported")},readLocalFiles:function(){var e,t;for(e=0;e<this.files.length;e++)t=this.files[e],this.reader.setIndex(t.localHeaderOffset),this.checkSignature(a.LOCAL_FILE_HEADER),t.readLocalPart(this.reader),t.handleUTF8(),t.processAttributes()},readCentralDir:function(){var e;this.reader.setIndex(this.centralDirOffset);while(this.reader.readAndCheckSignature(a.CENTRAL_FILE_HEADER))e=new o({zip64:this.zip64},this.loadOptions),e.readCentralPart(this.reader),this.files.push(e);if(this.centralDirRecords!==this.files.length&&0!==this.centralDirRecords&&0===this.files.length)throw new Error("Corrupted zip or bug: expected "+this.centralDirRecords+" records in central dir, got "+this.files.length)},readEndOfCentral:function(){var e=this.reader.lastIndexOfSignature(a.CENTRAL_DIRECTORY_END);if(e<0){var t=!this.isSignature(0,a.LOCAL_FILE_HEADER);throw t?new Error("Can't find end of central directory : is this a zip file ? If it is, see https://stuk.github.io/jszip/documentation/howto/read_zip.html"):new Error("Corrupted zip: can't find end of central directory")}this.reader.setIndex(e);var r=e;if(this.checkSignature(a.CENTRAL_DIRECTORY_END),this.readBlockEndOfCentral(),this.diskNumber===i.MAX_VALUE_16BITS||this.diskWithCentralDirStart===i.MAX_VALUE_16BITS||this.centralDirRecordsOnThisDisk===i.MAX_VALUE_16BITS||this.centralDirRecords===i.MAX_VALUE_16BITS||this.centralDirSize===i.MAX_VALUE_32BITS||this.centralDirOffset===i.MAX_VALUE_32BITS){if(this.zip64=!0,e=this.reader.lastIndexOfSignature(a.ZIP64_CENTRAL_DIRECTORY_LOCATOR),e<0)throw new Error("Corrupted zip: can't find the ZIP64 end of central directory locator");if(this.reader.setIndex(e),this.checkSignature(a.ZIP64_CENTRAL_DIRECTORY_LOCATOR),this.readBlockZip64EndOfCentralLocator(),!this.isSignature(this.relativeOffsetEndOfZip64CentralDir,a.ZIP64_CENTRAL_DIRECTORY_END)&&(this.relativeOffsetEndOfZip64CentralDir=this.reader.lastIndexOfSignature(a.ZIP64_CENTRAL_DIRECTORY_END),this.relativeOffsetEndOfZip64CentralDir<0))throw new Error("Corrupted zip: can't find the ZIP64 end of central directory");this.reader.setIndex(this.relativeOffsetEndOfZip64CentralDir),this.checkSignature(a.ZIP64_CENTRAL_DIRECTORY_END),this.readBlockZip64EndOfCentral()}var n=this.centralDirOffset+this.centralDirSize;this.zip64&&(n+=20,n+=12+this.zip64EndOfCentralSize);var o=r-n;if(o>0)this.isSignature(r,a.CENTRAL_FILE_HEADER)||(this.reader.zero=o);else if(o<0)throw new Error("Corrupted zip: missing "+Math.abs(o)+" bytes.")},prepareReader:function(e){this.reader=n(e)},load:function(e){this.prepareReader(e),this.readEndOfCentral(),this.readCentralDir(),this.readLocalFiles()}},t.exports=l},{"./reader/readerFor":32,"./signature":33,"./support":40,"./utf8":41,"./utils":42,"./zipEntry":44}],44:[function(e,t,r){"use strict";var n=e("./reader/readerFor"),i=e("./utils"),a=e("./compressedObject"),o=e("./crc32"),s=e("./utf8"),l=e("./compressions"),u=e("./support"),f=0,h=3,c=function(e){for(var t in l)if(l.hasOwnProperty(t)&&l[t].magic===e)return l[t];return null};function d(e,t){this.options=e,this.loadOptions=t}d.prototype={isEncrypted:function(){return 1===(1&this.bitFlag)},useUTF8:function(){return 2048===(2048&this.bitFlag)},readLocalPart:function(e){var t,r;if(e.skip(22),this.fileNameLength=e.readInt(2),r=e.readInt(2),this.fileName=e.readData(this.fileNameLength),e.skip(r),-1===this.compressedSize||-1===this.uncompressedSize)throw new Error("Bug or corrupted zip : didn't get enough information from the central directory (compressedSize === -1 || uncompressedSize === -1)");if(t=c(this.compressionMethod),null===t)throw new Error("Corrupted zip : compression "+i.pretty(this.compressionMethod)+" unknown (inner file : "+i.transformTo("string",this.fileName)+")");this.decompressed=new a(this.compressedSize,this.uncompressedSize,this.crc32,t,e.readData(this.compressedSize))},readCentralPart:function(e){this.versionMadeBy=e.readInt(2),e.skip(2),this.bitFlag=e.readInt(2),this.compressionMethod=e.readString(2),this.date=e.readDate(),this.crc32=e.readInt(4),this.compressedSize=e.readInt(4),this.uncompressedSize=e.readInt(4);var t=e.readInt(2);if(this.extraFieldsLength=e.readInt(2),this.fileCommentLength=e.readInt(2),this.diskNumberStart=e.readInt(2),this.internalFileAttributes=e.readInt(2),this.externalFileAttributes=e.readInt(4),this.localHeaderOffset=e.readInt(4),this.isEncrypted())throw new Error("Encrypted zip are not supported");e.skip(t),this.readExtraFields(e),this.parseZIP64ExtraField(e),this.fileComment=e.readData(this.fileCommentLength)},processAttributes:function(){this.unixPermissions=null,this.dosPermissions=null;var e=this.versionMadeBy>>8;this.dir=!!(16&this.externalFileAttributes),e===f&&(this.dosPermissions=63&this.externalFileAttributes),e===h&&(this.unixPermissions=this.externalFileAttributes>>16&65535),this.dir||"/"!==this.fileNameStr.slice(-1)||(this.dir=!0)},parseZIP64ExtraField:function(e){if(this.extraFields[1]){var t=n(this.extraFields[1].value);this.uncompressedSize===i.MAX_VALUE_32BITS&&(this.uncompressedSize=t.readInt(8)),this.compressedSize===i.MAX_VALUE_32BITS&&(this.compressedSize=t.readInt(8)),this.localHeaderOffset===i.MAX_VALUE_32BITS&&(this.localHeaderOffset=t.readInt(8)),this.diskNumberStart===i.MAX_VALUE_32BITS&&(this.diskNumberStart=t.readInt(4))}},readExtraFields:function(e){var t,r,n,i=e.index+this.extraFieldsLength;this.extraFields||(this.extraFields={});while(e.index+4<i)t=e.readInt(2),r=e.readInt(2),n=e.readData(r),this.extraFields[t]={id:t,length:r,value:n};e.setIndex(i)},handleUTF8:function(){var e=u.uint8array?"uint8array":"array";if(this.useUTF8())this.fileNameStr=s.utf8decode(this.fileName),this.fileCommentStr=s.utf8decode(this.fileComment);else{var t=this.findExtraFieldUnicodePath();if(null!==t)this.fileNameStr=t;else{var r=i.transformTo(e,this.fileName);this.fileNameStr=this.loadOptions.decodeFileName(r)}var n=this.findExtraFieldUnicodeComment();if(null!==n)this.fileCommentStr=n;else{var a=i.transformTo(e,this.fileComment);this.fileCommentStr=this.loadOptions.decodeFileName(a)}}},findExtraFieldUnicodePath:function(){var e=this.extraFields[28789];if(e){var t=n(e.value);return 1!==t.readInt(1)||o(this.fileName)!==t.readInt(4)?null:s.utf8decode(t.readData(e.length-5))}return null},findExtraFieldUnicodeComment:function(){var e=this.extraFields[25461];if(e){var t=n(e.value);return 1!==t.readInt(1)||o(this.fileComment)!==t.readInt(4)?null:s.utf8decode(t.readData(e.length-5))}return null}},t.exports=d},{"./compressedObject":12,"./compressions":13,"./crc32":14,"./reader/readerFor":32,"./support":40,"./utf8":41,"./utils":42}],45:[function(e,t,r){"use strict";var n=e("./stream/StreamHelper"),i=e("./stream/DataWorker"),a=e("./utf8"),o=e("./compressedObject"),s=e("./stream/GenericWorker"),l=function(e,t,r){this.name=e,this.dir=r.dir,this.date=r.date,this.comment=r.comment,this.unixPermissions=r.unixPermissions,this.dosPermissions=r.dosPermissions,this._data=t,this._dataBinary=r.binary,this.options={compression:r.compression,compressionOptions:r.compressionOptions}};l.prototype={internalStream:function(e){var t=null,r="string";try{if(!e)throw new Error("No output type specified.");r=e.toLowerCase();var i="string"===r||"text"===r;"binarystring"!==r&&"text"!==r||(r="string"),t=this._decompressWorker();var o=!this._dataBinary;o&&!i&&(t=t.pipe(new a.Utf8EncodeWorker)),!o&&i&&(t=t.pipe(new a.Utf8DecodeWorker))}catch(l){t=new s("error"),t.error(l)}return new n(t,r,"")},async:function(e,t){return this.internalStream(e).accumulate(t)},nodeStream:function(e,t){return this.internalStream(e||"nodebuffer").toNodejsStream(t)},_compressWorker:function(e,t){if(this._data instanceof o&&this._data.compression.magic===e.magic)return this._data.getCompressedWorker();var r=this._decompressWorker();return this._dataBinary||(r=r.pipe(new a.Utf8EncodeWorker)),o.createWorkerFrom(r,e,t)},_decompressWorker:function(){return this._data instanceof o?this._data.getContentWorker():this._data instanceof s?this._data:new i(this._data)}};for(var u=["asText","asBinary","asNodeBuffer","asUint8Array","asArrayBuffer"],f=function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},h=0;h<u.length;h++)l.prototype[u[h]]=f;t.exports=l},{"./compressedObject":12,"./stream/DataWorker":37,"./stream/GenericWorker":38,"./stream/StreamHelper":39,"./utf8":41}],46:[function(e,t,r){"use strict";var n=e("immediate");function i(){}var a={},o=["REJECTED"],s=["FULFILLED"],l=["PENDING"];function u(e){if("function"!==typeof e)throw new TypeError("resolver must be a function");this.state=l,this.queue=[],this.outcome=void 0,e!==i&&d(this,e)}function f(e,t,r){this.promise=e,"function"===typeof t&&(this.onFulfilled=t,this.callFulfilled=this.otherCallFulfilled),"function"===typeof r&&(this.onRejected=r,this.callRejected=this.otherCallRejected)}function h(e,t,r){n((function(){var n;try{n=t(r)}catch(i){return a.reject(e,i)}n===e?a.reject(e,new TypeError("Cannot resolve promise with itself")):a.resolve(e,n)}))}function c(e){var t=e&&e.then;if(e&&("object"===typeof e||"function"===typeof e)&&"function"===typeof t)return function(){t.apply(e,arguments)}}function d(e,t){var r=!1;function n(t){r||(r=!0,a.reject(e,t))}function i(t){r||(r=!0,a.resolve(e,t))}function o(){t(i,n)}var s=p(o);"error"===s.status&&n(s.value)}function p(e,t){var r={};try{r.value=e(t),r.status="success"}catch(n){r.status="error",r.value=n}return r}function m(e){return e instanceof this?e:a.resolve(new this(i),e)}function g(e){var t=new this(i);return a.reject(t,e)}function v(e){var t=this;if("[object Array]"!==Object.prototype.toString.call(e))return this.reject(new TypeError("must be an array"));var r=e.length,n=!1;if(!r)return this.resolve([]);var o=new Array(r),s=0,l=-1,u=new this(i);while(++l<r)f(e[l],l);return u;function f(e,i){function l(e){o[i]=e,++s!==r||n||(n=!0,a.resolve(u,o))}t.resolve(e).then(l,(function(e){n||(n=!0,a.reject(u,e))}))}}function y(e){var t=this;if("[object Array]"!==Object.prototype.toString.call(e))return this.reject(new TypeError("must be an array"));var r=e.length,n=!1;if(!r)return this.resolve([]);var o=-1,s=new this(i);while(++o<r)l(e[o]);return s;function l(e){t.resolve(e).then((function(e){n||(n=!0,a.resolve(s,e))}),(function(e){n||(n=!0,a.reject(s,e))}))}}t.exports=u,u.prototype["finally"]=function(e){if("function"!==typeof e)return this;var t=this.constructor;return this.then(r,n);function r(r){function n(){return r}return t.resolve(e()).then(n)}function n(r){function n(){throw r}return t.resolve(e()).then(n)}},u.prototype["catch"]=function(e){return this.then(null,e)},u.prototype.then=function(e,t){if("function"!==typeof e&&this.state===s||"function"!==typeof t&&this.state===o)return this;var r=new this.constructor(i);if(this.state!==l){var n=this.state===s?e:t;h(r,n,this.outcome)}else this.queue.push(new f(r,e,t));return r},f.prototype.callFulfilled=function(e){a.resolve(this.promise,e)},f.prototype.otherCallFulfilled=function(e){h(this.promise,this.onFulfilled,e)},f.prototype.callRejected=function(e){a.reject(this.promise,e)},f.prototype.otherCallRejected=function(e){h(this.promise,this.onRejected,e)},a.resolve=function(e,t){var r=p(c,t);if("error"===r.status)return a.reject(e,r.value);var n=r.value;if(n)d(e,n);else{e.state=s,e.outcome=t;var i=-1,o=e.queue.length;while(++i<o)e.queue[i].callFulfilled(t)}return e},a.reject=function(e,t){e.state=o,e.outcome=t;var r=-1,n=e.queue.length;while(++r<n)e.queue[r].callRejected(t);return e},u.resolve=m,u.reject=g,u.all=v,u.race=y},{immediate:7}],47:[function(e,t,r){"use strict";var n=e("./lib/utils/common").assign,i=e("./lib/deflate"),a=e("./lib/inflate"),o=e("./lib/zlib/constants"),s={};n(s,i,a,o),t.exports=s},{"./lib/deflate":48,"./lib/inflate":49,"./lib/utils/common":50,"./lib/zlib/constants":53}],48:[function(e,t,r){"use strict";var n=e("./zlib/deflate"),i=e("./utils/common"),a=e("./utils/strings"),o=e("./zlib/messages"),s=e("./zlib/zstream"),l=Object.prototype.toString,u=0,f=4,h=0,c=1,d=2,p=-1,m=0,g=8;function v(e){if(!(this instanceof v))return new v(e);this.options=i.assign({level:p,method:g,chunkSize:16384,windowBits:15,memLevel:8,strategy:m,to:""},e||{});var t=this.options;t.raw&&t.windowBits>0?t.windowBits=-t.windowBits:t.gzip&&t.windowBits>0&&t.windowBits<16&&(t.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new s,this.strm.avail_out=0;var r=n.deflateInit2(this.strm,t.level,t.method,t.windowBits,t.memLevel,t.strategy);if(r!==h)throw new Error(o[r]);if(t.header&&n.deflateSetHeader(this.strm,t.header),t.dictionary){var u;if(u="string"===typeof t.dictionary?a.string2buf(t.dictionary):"[object ArrayBuffer]"===l.call(t.dictionary)?new Uint8Array(t.dictionary):t.dictionary,r=n.deflateSetDictionary(this.strm,u),r!==h)throw new Error(o[r]);this._dict_set=!0}}function y(e,t){var r=new v(t);if(r.push(e,!0),r.err)throw r.msg||o[r.err];return r.result}function b(e,t){return t=t||{},t.raw=!0,y(e,t)}function _(e,t){return t=t||{},t.gzip=!0,y(e,t)}v.prototype.push=function(e,t){var r,o,s=this.strm,p=this.options.chunkSize;if(this.ended)return!1;o=t===~~t?t:!0===t?f:u,"string"===typeof e?s.input=a.string2buf(e):"[object ArrayBuffer]"===l.call(e)?s.input=new Uint8Array(e):s.input=e,s.next_in=0,s.avail_in=s.input.length;do{if(0===s.avail_out&&(s.output=new i.Buf8(p),s.next_out=0,s.avail_out=p),r=n.deflate(s,o),r!==c&&r!==h)return this.onEnd(r),this.ended=!0,!1;0!==s.avail_out&&(0!==s.avail_in||o!==f&&o!==d)||("string"===this.options.to?this.onData(a.buf2binstring(i.shrinkBuf(s.output,s.next_out))):this.onData(i.shrinkBuf(s.output,s.next_out)))}while((s.avail_in>0||0===s.avail_out)&&r!==c);return o===f?(r=n.deflateEnd(this.strm),this.onEnd(r),this.ended=!0,r===h):o!==d||(this.onEnd(h),s.avail_out=0,!0)},v.prototype.onData=function(e){this.chunks.push(e)},v.prototype.onEnd=function(e){e===h&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=i.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg},r.Deflate=v,r.deflate=y,r.deflateRaw=b,r.gzip=_},{"./utils/common":50,"./utils/strings":51,"./zlib/deflate":55,"./zlib/messages":60,"./zlib/zstream":62}],49:[function(e,t,r){"use strict";var n=e("./zlib/inflate"),i=e("./utils/common"),a=e("./utils/strings"),o=e("./zlib/constants"),s=e("./zlib/messages"),l=e("./zlib/zstream"),u=e("./zlib/gzheader"),f=Object.prototype.toString;function h(e){if(!(this instanceof h))return new h(e);this.options=i.assign({chunkSize:16384,windowBits:0,to:""},e||{});var t=this.options;t.raw&&t.windowBits>=0&&t.windowBits<16&&(t.windowBits=-t.windowBits,0===t.windowBits&&(t.windowBits=-15)),!(t.windowBits>=0&&t.windowBits<16)||e&&e.windowBits||(t.windowBits+=32),t.windowBits>15&&t.windowBits<48&&0===(15&t.windowBits)&&(t.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new l,this.strm.avail_out=0;var r=n.inflateInit2(this.strm,t.windowBits);if(r!==o.Z_OK)throw new Error(s[r]);if(this.header=new u,n.inflateGetHeader(this.strm,this.header),t.dictionary&&("string"===typeof t.dictionary?t.dictionary=a.string2buf(t.dictionary):"[object ArrayBuffer]"===f.call(t.dictionary)&&(t.dictionary=new Uint8Array(t.dictionary)),t.raw&&(r=n.inflateSetDictionary(this.strm,t.dictionary),r!==o.Z_OK)))throw new Error(s[r])}function c(e,t){var r=new h(t);if(r.push(e,!0),r.err)throw r.msg||s[r.err];return r.result}function d(e,t){return t=t||{},t.raw=!0,c(e,t)}h.prototype.push=function(e,t){var r,s,l,u,h,c=this.strm,d=this.options.chunkSize,p=this.options.dictionary,m=!1;if(this.ended)return!1;s=t===~~t?t:!0===t?o.Z_FINISH:o.Z_NO_FLUSH,"string"===typeof e?c.input=a.binstring2buf(e):"[object ArrayBuffer]"===f.call(e)?c.input=new Uint8Array(e):c.input=e,c.next_in=0,c.avail_in=c.input.length;do{if(0===c.avail_out&&(c.output=new i.Buf8(d),c.next_out=0,c.avail_out=d),r=n.inflate(c,o.Z_NO_FLUSH),r===o.Z_NEED_DICT&&p&&(r=n.inflateSetDictionary(this.strm,p)),r===o.Z_BUF_ERROR&&!0===m&&(r=o.Z_OK,m=!1),r!==o.Z_STREAM_END&&r!==o.Z_OK)return this.onEnd(r),this.ended=!0,!1;c.next_out&&(0!==c.avail_out&&r!==o.Z_STREAM_END&&(0!==c.avail_in||s!==o.Z_FINISH&&s!==o.Z_SYNC_FLUSH)||("string"===this.options.to?(l=a.utf8border(c.output,c.next_out),u=c.next_out-l,h=a.buf2string(c.output,l),c.next_out=u,c.avail_out=d-u,u&&i.arraySet(c.output,c.output,l,u,0),this.onData(h)):this.onData(i.shrinkBuf(c.output,c.next_out)))),0===c.avail_in&&0===c.avail_out&&(m=!0)}while((c.avail_in>0||0===c.avail_out)&&r!==o.Z_STREAM_END);return r===o.Z_STREAM_END&&(s=o.Z_FINISH),s===o.Z_FINISH?(r=n.inflateEnd(this.strm),this.onEnd(r),this.ended=!0,r===o.Z_OK):s!==o.Z_SYNC_FLUSH||(this.onEnd(o.Z_OK),c.avail_out=0,!0)},h.prototype.onData=function(e){this.chunks.push(e)},h.prototype.onEnd=function(e){e===o.Z_OK&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=i.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg},r.Inflate=h,r.inflate=c,r.inflateRaw=d,r.ungzip=c},{"./utils/common":50,"./utils/strings":51,"./zlib/constants":53,"./zlib/gzheader":56,"./zlib/inflate":58,"./zlib/messages":60,"./zlib/zstream":62}],50:[function(e,t,r){"use strict";var n="undefined"!==typeof Uint8Array&&"undefined"!==typeof Uint16Array&&"undefined"!==typeof Int32Array;function i(e,t){return Object.prototype.hasOwnProperty.call(e,t)}r.assign=function(e){var t=Array.prototype.slice.call(arguments,1);while(t.length){var r=t.shift();if(r){if("object"!==typeof r)throw new TypeError(r+"must be non-object");for(var n in r)i(r,n)&&(e[n]=r[n])}}return e},r.shrinkBuf=function(e,t){return e.length===t?e:e.subarray?e.subarray(0,t):(e.length=t,e)};var a={arraySet:function(e,t,r,n,i){if(t.subarray&&e.subarray)e.set(t.subarray(r,r+n),i);else for(var a=0;a<n;a++)e[i+a]=t[r+a]},flattenChunks:function(e){var t,r,n,i,a,o;for(n=0,t=0,r=e.length;t<r;t++)n+=e[t].length;for(o=new Uint8Array(n),i=0,t=0,r=e.length;t<r;t++)a=e[t],o.set(a,i),i+=a.length;return o}},o={arraySet:function(e,t,r,n,i){for(var a=0;a<n;a++)e[i+a]=t[r+a]},flattenChunks:function(e){return[].concat.apply([],e)}};r.setTyped=function(e){e?(r.Buf8=Uint8Array,r.Buf16=Uint16Array,r.Buf32=Int32Array,r.assign(r,a)):(r.Buf8=Array,r.Buf16=Array,r.Buf32=Array,r.assign(r,o))},r.setTyped(n)},{}],51:[function(e,t,r){"use strict";var n=e("./common"),i=!0,a=!0;try{String.fromCharCode.apply(null,[0])}catch(u){i=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(u){a=!1}for(var o=new n.Buf8(256),s=0;s<256;s++)o[s]=s>=252?6:s>=248?5:s>=240?4:s>=224?3:s>=192?2:1;function l(e,t){if(t<65534&&(e.subarray&&a||!e.subarray&&i))return String.fromCharCode.apply(null,n.shrinkBuf(e,t));for(var r="",o=0;o<t;o++)r+=String.fromCharCode(e[o]);return r}o[254]=o[254]=1,r.string2buf=function(e){var t,r,i,a,o,s=e.length,l=0;for(a=0;a<s;a++)r=e.charCodeAt(a),55296===(64512&r)&&a+1<s&&(i=e.charCodeAt(a+1),56320===(64512&i)&&(r=65536+(r-55296<<10)+(i-56320),a++)),l+=r<128?1:r<2048?2:r<65536?3:4;for(t=new n.Buf8(l),o=0,a=0;o<l;a++)r=e.charCodeAt(a),55296===(64512&r)&&a+1<s&&(i=e.charCodeAt(a+1),56320===(64512&i)&&(r=65536+(r-55296<<10)+(i-56320),a++)),r<128?t[o++]=r:r<2048?(t[o++]=192|r>>>6,t[o++]=128|63&r):r<65536?(t[o++]=224|r>>>12,t[o++]=128|r>>>6&63,t[o++]=128|63&r):(t[o++]=240|r>>>18,t[o++]=128|r>>>12&63,t[o++]=128|r>>>6&63,t[o++]=128|63&r);return t},r.buf2binstring=function(e){return l(e,e.length)},r.binstring2buf=function(e){for(var t=new n.Buf8(e.length),r=0,i=t.length;r<i;r++)t[r]=e.charCodeAt(r);return t},r.buf2string=function(e,t){var r,n,i,a,s=t||e.length,u=new Array(2*s);for(n=0,r=0;r<s;)if(i=e[r++],i<128)u[n++]=i;else if(a=o[i],a>4)u[n++]=65533,r+=a-1;else{i&=2===a?31:3===a?15:7;while(a>1&&r<s)i=i<<6|63&e[r++],a--;a>1?u[n++]=65533:i<65536?u[n++]=i:(i-=65536,u[n++]=55296|i>>10&1023,u[n++]=56320|1023&i)}return l(u,n)},r.utf8border=function(e,t){var r;t=t||e.length,t>e.length&&(t=e.length),r=t-1;while(r>=0&&128===(192&e[r]))r--;return r<0||0===r?t:r+o[e[r]]>t?r:t}},{"./common":50}],52:[function(e,t,r){"use strict";function n(e,t,r,n){var i=65535&e|0,a=e>>>16&65535|0,o=0;while(0!==r){o=r>2e3?2e3:r,r-=o;do{i=i+t[n++]|0,a=a+i|0}while(--o);i%=65521,a%=65521}return i|a<<16|0}t.exports=n},{}],53:[function(e,t,r){"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}},{}],54:[function(e,t,r){"use strict";function n(){for(var e,t=[],r=0;r<256;r++){e=r;for(var n=0;n<8;n++)e=1&e?3988292384^e>>>1:e>>>1;t[r]=e}return t}var i=n();function a(e,t,r,n){var a=i,o=n+r;e^=-1;for(var s=n;s<o;s++)e=e>>>8^a[255&(e^t[s])];return-1^e}t.exports=a},{}],55:[function(e,t,r){"use strict";var n,i=e("../utils/common"),a=e("./trees"),o=e("./adler32"),s=e("./crc32"),l=e("./messages"),u=0,f=1,h=3,c=4,d=5,p=0,m=1,g=-2,v=-3,y=-5,b=-1,_=1,w=2,E=3,k=4,S=0,C=2,T=8,x=9,R=15,A=8,O=29,L=256,I=L+1+O,F=30,M=19,B=2*I+1,P=15,D=3,N=258,z=N+D+1,U=32,j=42,W=69,X=73,H=91,Z=103,G=113,Y=666,q=1,V=2,K=3,J=4,$=3;function Q(e,t){return e.msg=l[t],t}function ee(e){return(e<<1)-(e>4?9:0)}function te(e){var t=e.length;while(--t>=0)e[t]=0}function re(e){var t=e.state,r=t.pending;r>e.avail_out&&(r=e.avail_out),0!==r&&(i.arraySet(e.output,t.pending_buf,t.pending_out,r,e.next_out),e.next_out+=r,t.pending_out+=r,e.total_out+=r,e.avail_out-=r,t.pending-=r,0===t.pending&&(t.pending_out=0))}function ne(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,re(e.strm)}function ie(e,t){e.pending_buf[e.pending++]=t}function ae(e,t){e.pending_buf[e.pending++]=t>>>8&255,e.pending_buf[e.pending++]=255&t}function oe(e,t,r,n){var a=e.avail_in;return a>n&&(a=n),0===a?0:(e.avail_in-=a,i.arraySet(t,e.input,e.next_in,a,r),1===e.state.wrap?e.adler=o(e.adler,t,a,r):2===e.state.wrap&&(e.adler=s(e.adler,t,a,r)),e.next_in+=a,e.total_in+=a,a)}function se(e,t){var r,n,i=e.max_chain_length,a=e.strstart,o=e.prev_length,s=e.nice_match,l=e.strstart>e.w_size-z?e.strstart-(e.w_size-z):0,u=e.window,f=e.w_mask,h=e.prev,c=e.strstart+N,d=u[a+o-1],p=u[a+o];e.prev_length>=e.good_match&&(i>>=2),s>e.lookahead&&(s=e.lookahead);do{if(r=t,u[r+o]===p&&u[r+o-1]===d&&u[r]===u[a]&&u[++r]===u[a+1]){a+=2,r++;do{}while(u[++a]===u[++r]&&u[++a]===u[++r]&&u[++a]===u[++r]&&u[++a]===u[++r]&&u[++a]===u[++r]&&u[++a]===u[++r]&&u[++a]===u[++r]&&u[++a]===u[++r]&&a<c);if(n=N-(c-a),a=c-N,n>o){if(e.match_start=t,o=n,n>=s)break;d=u[a+o-1],p=u[a+o]}}}while((t=h[t&f])>l&&0!==--i);return o<=e.lookahead?o:e.lookahead}function le(e){var t,r,n,a,o,s=e.w_size;do{if(a=e.window_size-e.lookahead-e.strstart,e.strstart>=s+(s-z)){i.arraySet(e.window,e.window,s,s,0),e.match_start-=s,e.strstart-=s,e.block_start-=s,r=e.hash_size,t=r;do{n=e.head[--t],e.head[t]=n>=s?n-s:0}while(--r);r=s,t=r;do{n=e.prev[--t],e.prev[t]=n>=s?n-s:0}while(--r);a+=s}if(0===e.strm.avail_in)break;if(r=oe(e.strm,e.window,e.strstart+e.lookahead,a),e.lookahead+=r,e.lookahead+e.insert>=D){o=e.strstart-e.insert,e.ins_h=e.window[o],e.ins_h=(e.ins_h<<e.hash_shift^e.window[o+1])&e.hash_mask;while(e.insert)if(e.ins_h=(e.ins_h<<e.hash_shift^e.window[o+D-1])&e.hash_mask,e.prev[o&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=o,o++,e.insert--,e.lookahead+e.insert<D)break}}while(e.lookahead<z&&0!==e.strm.avail_in)}function ue(e,t){var r=65535;for(r>e.pending_buf_size-5&&(r=e.pending_buf_size-5);;){if(e.lookahead<=1){if(le(e),0===e.lookahead&&t===u)return q;if(0===e.lookahead)break}e.strstart+=e.lookahead,e.lookahead=0;var n=e.block_start+r;if((0===e.strstart||e.strstart>=n)&&(e.lookahead=e.strstart-n,e.strstart=n,ne(e,!1),0===e.strm.avail_out))return q;if(e.strstart-e.block_start>=e.w_size-z&&(ne(e,!1),0===e.strm.avail_out))return q}return e.insert=0,t===c?(ne(e,!0),0===e.strm.avail_out?K:J):(e.strstart>e.block_start&&(ne(e,!1),e.strm.avail_out),q)}function fe(e,t){for(var r,n;;){if(e.lookahead<z){if(le(e),e.lookahead<z&&t===u)return q;if(0===e.lookahead)break}if(r=0,e.lookahead>=D&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+D-1])&e.hash_mask,r=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),0!==r&&e.strstart-r<=e.w_size-z&&(e.match_length=se(e,r)),e.match_length>=D)if(n=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,r=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 n=a._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++;if(n&&(ne(e,!1),0===e.strm.avail_out))return q}return e.insert=e.strstart<D-1?e.strstart:D-1,t===c?(ne(e,!0),0===e.strm.avail_out?K:J):e.last_lit&&(ne(e,!1),0===e.strm.avail_out)?q:V}function he(e,t){for(var r,n,i;;){if(e.lookahead<z){if(le(e),e.lookahead<z&&t===u)return q;if(0===e.lookahead)break}if(r=0,e.lookahead>=D&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+D-1])&e.hash_mask,r=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!==r&&e.prev_length<e.max_lazy_match&&e.strstart-r<=e.w_size-z&&(e.match_length=se(e,r),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,n=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,r=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++,n&&(ne(e,!1),0===e.strm.avail_out))return q}else if(e.match_available){if(n=a._tr_tally(e,0,e.window[e.strstart-1]),n&&ne(e,!1),e.strstart++,e.lookahead--,0===e.strm.avail_out)return q}else e.match_available=1,e.strstart++,e.lookahead--}return e.match_available&&(n=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===c?(ne(e,!0),0===e.strm.avail_out?K:J):e.last_lit&&(ne(e,!1),0===e.strm.avail_out)?q:V}function ce(e,t){for(var r,n,i,o,s=e.window;;){if(e.lookahead<=N){if(le(e),e.lookahead<=N&&t===u)return q;if(0===e.lookahead)break}if(e.match_length=0,e.lookahead>=D&&e.strstart>0&&(i=e.strstart-1,n=s[i],n===s[++i]&&n===s[++i]&&n===s[++i])){o=e.strstart+N;do{}while(n===s[++i]&&n===s[++i]&&n===s[++i]&&n===s[++i]&&n===s[++i]&&n===s[++i]&&n===s[++i]&&n===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?(r=a._tr_tally(e,1,e.match_length-D),e.lookahead-=e.match_length,e.strstart+=e.match_length,e.match_length=0):(r=a._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++),r&&(ne(e,!1),0===e.strm.avail_out))return q}return e.insert=0,t===c?(ne(e,!0),0===e.strm.avail_out?K:J):e.last_lit&&(ne(e,!1),0===e.strm.avail_out)?q:V}function de(e,t){for(var r;;){if(0===e.lookahead&&(le(e),0===e.lookahead)){if(t===u)return q;break}if(e.match_length=0,r=a._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++,r&&(ne(e,!1),0===e.strm.avail_out))return q}return e.insert=0,t===c?(ne(e,!0),0===e.strm.avail_out?K:J):e.last_lit&&(ne(e,!1),0===e.strm.avail_out)?q:V}function pe(e,t,r,n,i){this.good_length=e,this.max_lazy=t,this.nice_length=r,this.max_chain=n,this.func=i}function me(e){e.window_size=2*e.w_size,te(e.head),e.max_lazy_match=n[e.level].max_lazy,e.good_match=n[e.level].good_length,e.nice_match=n[e.level].nice_length,e.max_chain_length=n[e.level].max_chain,e.strstart=0,e.block_start=0,e.lookahead=0,e.insert=0,e.match_length=e.prev_length=D-1,e.match_available=0,e.ins_h=0}function ge(){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=T,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*B),this.dyn_dtree=new i.Buf16(2*(2*F+1)),this.bl_tree=new i.Buf16(2*(2*M+1)),te(this.dyn_ltree),te(this.dyn_dtree),te(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new i.Buf16(P+1),this.heap=new i.Buf16(2*I+1),te(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new i.Buf16(2*I+1),te(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function ve(e){var t;return e&&e.state?(e.total_in=e.total_out=0,e.data_type=C,t=e.state,t.pending=0,t.pending_out=0,t.wrap<0&&(t.wrap=-t.wrap),t.status=t.wrap?j:G,e.adler=2===t.wrap?0:1,t.last_flush=u,a._tr_init(t),p):Q(e,g)}function ye(e){var t=ve(e);return t===p&&me(e.state),t}function be(e,t){return e&&e.state?2!==e.state.wrap?g:(e.state.gzhead=t,p):g}function _e(e,t,r,n,a,o){if(!e)return g;var s=1;if(t===b&&(t=6),n<0?(s=0,n=-n):n>15&&(s=2,n-=16),a<1||a>x||r!==T||n<8||n>15||t<0||t>9||o<0||o>k)return Q(e,g);8===n&&(n=9);var l=new ge;return e.state=l,l.strm=e,l.wrap=s,l.gzhead=null,l.w_bits=n,l.w_size=1<<l.w_bits,l.w_mask=l.w_size-1,l.hash_bits=a+7,l.hash_size=1<<l.hash_bits,l.hash_mask=l.hash_size-1,l.hash_shift=~~((l.hash_bits+D-1)/D),l.window=new i.Buf8(2*l.w_size),l.head=new i.Buf16(l.hash_size),l.prev=new i.Buf16(l.w_size),l.lit_bufsize=1<<a+6,l.pending_buf_size=4*l.lit_bufsize,l.pending_buf=new i.Buf8(l.pending_buf_size),l.d_buf=1*l.lit_bufsize,l.l_buf=3*l.lit_bufsize,l.level=t,l.strategy=o,l.method=r,ye(e)}function we(e,t){return _e(e,t,T,R,A,S)}function Ee(e,t){var r,i,o,l;if(!e||!e.state||t>d||t<0)return e?Q(e,g):g;if(i=e.state,!e.output||!e.input&&0!==e.avail_in||i.status===Y&&t!==c)return Q(e,0===e.avail_out?y:g);if(i.strm=e,r=i.last_flush,i.last_flush=t,i.status===j)if(2===i.wrap)e.adler=0,ie(i,31),ie(i,139),ie(i,8),i.gzhead?(ie(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)),ie(i,255&i.gzhead.time),ie(i,i.gzhead.time>>8&255),ie(i,i.gzhead.time>>16&255),ie(i,i.gzhead.time>>24&255),ie(i,9===i.level?2:i.strategy>=w||i.level<2?4:0),ie(i,255&i.gzhead.os),i.gzhead.extra&&i.gzhead.extra.length&&(ie(i,255&i.gzhead.extra.length),ie(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=W):(ie(i,0),ie(i,0),ie(i,0),ie(i,0),ie(i,0),ie(i,9===i.level?2:i.strategy>=w||i.level<2?4:0),ie(i,$),i.status=G);else{var v=T+(i.w_bits-8<<4)<<8,b=-1;b=i.strategy>=w||i.level<2?0:i.level<6?1:6===i.level?2:3,v|=b<<6,0!==i.strstart&&(v|=U),v+=31-v%31,i.status=G,ae(i,v),0!==i.strstart&&(ae(i,e.adler>>>16),ae(i,65535&e.adler)),e.adler=1}if(i.status===W)if(i.gzhead.extra){o=i.pending;while(i.gzindex<(65535&i.gzhead.extra.length)){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)),re(e),o=i.pending,i.pending===i.pending_buf_size))break;ie(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=X)}else i.status=X;if(i.status===X)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)),re(e),o=i.pending,i.pending===i.pending_buf_size)){l=1;break}l=i.gzindex<i.gzhead.name.length?255&i.gzhead.name.charCodeAt(i.gzindex++):0,ie(i,l)}while(0!==l);i.gzhead.hcrc&&i.pending>o&&(e.adler=s(e.adler,i.pending_buf,i.pending-o,o)),0===l&&(i.gzindex=0,i.status=H)}else i.status=H;if(i.status===H)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)),re(e),o=i.pending,i.pending===i.pending_buf_size)){l=1;break}l=i.gzindex<i.gzhead.comment.length?255&i.gzhead.comment.charCodeAt(i.gzindex++):0,ie(i,l)}while(0!==l);i.gzhead.hcrc&&i.pending>o&&(e.adler=s(e.adler,i.pending_buf,i.pending-o,o)),0===l&&(i.status=Z)}else i.status=Z;if(i.status===Z&&(i.gzhead.hcrc?(i.pending+2>i.pending_buf_size&&re(e),i.pending+2<=i.pending_buf_size&&(ie(i,255&e.adler),ie(i,e.adler>>8&255),e.adler=0,i.status=G)):i.status=G),0!==i.pending){if(re(e),0===e.avail_out)return i.last_flush=-1,p}else if(0===e.avail_in&&ee(t)<=ee(r)&&t!==c)return Q(e,y);if(i.status===Y&&0!==e.avail_in)return Q(e,y);if(0!==e.avail_in||0!==i.lookahead||t!==u&&i.status!==Y){var _=i.strategy===w?de(i,t):i.strategy===E?ce(i,t):n[i.level].func(i,t);if(_!==K&&_!==J||(i.status=Y),_===q||_===K)return 0===e.avail_out&&(i.last_flush=-1),p;if(_===V&&(t===f?a._tr_align(i):t!==d&&(a._tr_stored_block(i,0,0,!1),t===h&&(te(i.head),0===i.lookahead&&(i.strstart=0,i.block_start=0,i.insert=0))),re(e),0===e.avail_out))return i.last_flush=-1,p}return t!==c?p:i.wrap<=0?m:(2===i.wrap?(ie(i,255&e.adler),ie(i,e.adler>>8&255),ie(i,e.adler>>16&255),ie(i,e.adler>>24&255),ie(i,255&e.total_in),ie(i,e.total_in>>8&255),ie(i,e.total_in>>16&255),ie(i,e.total_in>>24&255)):(ae(i,e.adler>>>16),ae(i,65535&e.adler)),re(e),i.wrap>0&&(i.wrap=-i.wrap),0!==i.pending?p:m)}function ke(e){var t;return e&&e.state?(t=e.state.status,t!==j&&t!==W&&t!==X&&t!==H&&t!==Z&&t!==G&&t!==Y?Q(e,g):(e.state=null,t===G?Q(e,v):p)):g}function Se(e,t){var r,n,a,s,l,u,f,h,c=t.length;if(!e||!e.state)return g;if(r=e.state,s=r.wrap,2===s||1===s&&r.status!==j||r.lookahead)return g;1===s&&(e.adler=o(e.adler,t,c,0)),r.wrap=0,c>=r.w_size&&(0===s&&(te(r.head),r.strstart=0,r.block_start=0,r.insert=0),h=new i.Buf8(r.w_size),i.arraySet(h,t,c-r.w_size,r.w_size,0),t=h,c=r.w_size),l=e.avail_in,u=e.next_in,f=e.input,e.avail_in=c,e.next_in=0,e.input=t,le(r);while(r.lookahead>=D){n=r.strstart,a=r.lookahead-(D-1);do{r.ins_h=(r.ins_h<<r.hash_shift^r.window[n+D-1])&r.hash_mask,r.prev[n&r.w_mask]=r.head[r.ins_h],r.head[r.ins_h]=n,n++}while(--a);r.strstart=n,r.lookahead=D-1,le(r)}return r.strstart+=r.lookahead,r.block_start=r.strstart,r.insert=r.lookahead,r.lookahead=0,r.match_length=r.prev_length=D-1,r.match_available=0,e.next_in=u,e.input=f,e.avail_in=l,r.wrap=s,p}n=[new pe(0,0,0,0,ue),new pe(4,4,8,4,fe),new pe(4,5,16,8,fe),new pe(4,6,32,32,fe),new pe(4,4,16,16,he),new pe(8,16,32,32,he),new pe(8,16,128,128,he),new pe(8,32,128,256,he),new pe(32,128,258,1024,he),new pe(32,258,258,4096,he)],r.deflateInit=we,r.deflateInit2=_e,r.deflateReset=ye,r.deflateResetKeep=ve,r.deflateSetHeader=be,r.deflate=Ee,r.deflateEnd=ke,r.deflateSetDictionary=Se,r.deflateInfo="pako deflate (from Nodeca project)"},{"../utils/common":50,"./adler32":52,"./crc32":54,"./messages":60,"./trees":61}],56:[function(e,t,r){"use strict";function n(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}t.exports=n},{}],57:[function(e,t,r){"use strict";var n=30,i=12;t.exports=function(e,t){var r,a,o,s,l,u,f,h,c,d,p,m,g,v,y,b,_,w,E,k,S,C,T,x,R;r=e.state,a=e.next_in,x=e.input,o=a+(e.avail_in-5),s=e.next_out,R=e.output,l=s-(t-e.avail_out),u=s+(e.avail_out-257),f=r.dmax,h=r.wsize,c=r.whave,d=r.wnext,p=r.window,m=r.hold,g=r.bits,v=r.lencode,y=r.distcode,b=(1<<r.lenbits)-1,_=(1<<r.distbits)-1;e:do{g<15&&(m+=x[a++]<<g,g+=8,m+=x[a++]<<g,g+=8),w=v[m&b];t:for(;;){if(E=w>>>24,m>>>=E,g-=E,E=w>>>16&255,0===E)R[s++]=65535&w;else{if(!(16&E)){if(0===(64&E)){w=v[(65535&w)+(m&(1<<E)-1)];continue t}if(32&E){r.mode=i;break e}e.msg="invalid literal/length code",r.mode=n;break e}k=65535&w,E&=15,E&&(g<E&&(m+=x[a++]<<g,g+=8),k+=m&(1<<E)-1,m>>>=E,g-=E),g<15&&(m+=x[a++]<<g,g+=8,m+=x[a++]<<g,g+=8),w=y[m&_];r:for(;;){if(E=w>>>24,m>>>=E,g-=E,E=w>>>16&255,!(16&E)){if(0===(64&E)){w=y[(65535&w)+(m&(1<<E)-1)];continue r}e.msg="invalid distance code",r.mode=n;break e}if(S=65535&w,E&=15,g<E&&(m+=x[a++]<<g,g+=8,g<E&&(m+=x[a++]<<g,g+=8)),S+=m&(1<<E)-1,S>f){e.msg="invalid distance too far back",r.mode=n;break e}if(m>>>=E,g-=E,E=s-l,S>E){if(E=S-E,E>c&&r.sane){e.msg="invalid distance too far back",r.mode=n;break e}if(C=0,T=p,0===d){if(C+=h-E,E<k){k-=E;do{R[s++]=p[C++]}while(--E);C=s-S,T=R}}else if(d<E){if(C+=h+d-E,E-=d,E<k){k-=E;do{R[s++]=p[C++]}while(--E);if(C=0,d<k){E=d,k-=E;do{R[s++]=p[C++]}while(--E);C=s-S,T=R}}}else if(C+=d-E,E<k){k-=E;do{R[s++]=p[C++]}while(--E);C=s-S,T=R}while(k>2)R[s++]=T[C++],R[s++]=T[C++],R[s++]=T[C++],k-=3;k&&(R[s++]=T[C++],k>1&&(R[s++]=T[C++]))}else{C=s-S;do{R[s++]=R[C++],R[s++]=R[C++],R[s++]=R[C++],k-=3}while(k>2);k&&(R[s++]=R[C++],k>1&&(R[s++]=R[C++]))}break}}break}}while(a<o&&s<u);k=g>>3,a-=k,g-=k<<3,m&=(1<<g)-1,e.next_in=a,e.next_out=s,e.avail_in=a<o?o-a+5:5-(a-o),e.avail_out=s<u?u-s+257:257-(s-u),r.hold=m,r.bits=g}},{}],58:[function(e,t,r){"use strict";var n=e("../utils/common"),i=e("./adler32"),a=e("./crc32"),o=e("./inffast"),s=e("./inftrees"),l=0,u=1,f=2,h=4,c=5,d=6,p=0,m=1,g=2,v=-2,y=-3,b=-4,_=-5,w=8,E=1,k=2,S=3,C=4,T=5,x=6,R=7,A=8,O=9,L=10,I=11,F=12,M=13,B=14,P=15,D=16,N=17,z=18,U=19,j=20,W=21,X=22,H=23,Z=24,G=25,Y=26,q=27,V=28,K=29,J=30,$=31,Q=32,ee=852,te=592,re=15,ne=re;function ie(e){return(e>>>24&255)+(e>>>8&65280)+((65280&e)<<8)+((255&e)<<24)}function ae(){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 n.Buf16(320),this.work=new n.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function oe(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=E,t.last=0,t.havedict=0,t.dmax=32768,t.head=null,t.hold=0,t.bits=0,t.lencode=t.lendyn=new n.Buf32(ee),t.distcode=t.distdyn=new n.Buf32(te),t.sane=1,t.back=-1,p):v}function se(e){var t;return e&&e.state?(t=e.state,t.wsize=0,t.whave=0,t.wnext=0,oe(e)):v}function le(e,t){var r,n;return e&&e.state?(n=e.state,t<0?(r=0,t=-t):(r=1+(t>>4),t<48&&(t&=15)),t&&(t<8||t>15)?v:(null!==n.window&&n.wbits!==t&&(n.window=null),n.wrap=r,n.wbits=t,se(e))):v}function ue(e,t){var r,n;return e?(n=new ae,e.state=n,n.window=null,r=le(e,t),r!==p&&(e.state=null),r):v}function fe(e){return ue(e,ne)}var he,ce,de=!0;function pe(e){if(de){var t;he=new n.Buf32(512),ce=new n.Buf32(32),t=0;while(t<144)e.lens[t++]=8;while(t<256)e.lens[t++]=9;while(t<280)e.lens[t++]=7;while(t<288)e.lens[t++]=8;s(u,e.lens,0,288,he,0,e.work,{bits:9}),t=0;while(t<32)e.lens[t++]=5;s(f,e.lens,0,32,ce,0,e.work,{bits:5}),de=!1}e.lencode=he,e.lenbits=9,e.distcode=ce,e.distbits=5}function me(e,t,r,i){var a,o=e.state;return null===o.window&&(o.wsize=1<<o.wbits,o.wnext=0,o.whave=0,o.window=new n.Buf8(o.wsize)),i>=o.wsize?(n.arraySet(o.window,t,r-o.wsize,o.wsize,0),o.wnext=0,o.whave=o.wsize):(a=o.wsize-o.wnext,a>i&&(a=i),n.arraySet(o.window,t,r-i,a,o.wnext),i-=a,i?(n.arraySet(o.window,t,r-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}function ge(e,t){var r,ee,te,re,ne,ae,oe,se,le,ue,fe,he,ce,de,ge,ve,ye,be,_e,we,Ee,ke,Se,Ce,Te=0,xe=new n.Buf8(4),Re=[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 v;r=e.state,r.mode===F&&(r.mode=M),ne=e.next_out,te=e.output,oe=e.avail_out,re=e.next_in,ee=e.input,ae=e.avail_in,se=r.hold,le=r.bits,ue=ae,fe=oe,ke=p;e:for(;;)switch(r.mode){case E:if(0===r.wrap){r.mode=M;break}while(le<16){if(0===ae)break e;ae--,se+=ee[re++]<<le,le+=8}if(2&r.wrap&&35615===se){r.check=0,xe[0]=255&se,xe[1]=se>>>8&255,r.check=a(r.check,xe,2,0),se=0,le=0,r.mode=k;break}if(r.flags=0,r.head&&(r.head.done=!1),!(1&r.wrap)||(((255&se)<<8)+(se>>8))%31){e.msg="incorrect header check",r.mode=J;break}if((15&se)!==w){e.msg="unknown compression method",r.mode=J;break}if(se>>>=4,le-=4,Ee=8+(15&se),0===r.wbits)r.wbits=Ee;else if(Ee>r.wbits){e.msg="invalid window size",r.mode=J;break}r.dmax=1<<Ee,e.adler=r.check=1,r.mode=512&se?L:F,se=0,le=0;break;case k:while(le<16){if(0===ae)break e;ae--,se+=ee[re++]<<le,le+=8}if(r.flags=se,(255&r.flags)!==w){e.msg="unknown compression method",r.mode=J;break}if(57344&r.flags){e.msg="unknown header flags set",r.mode=J;break}r.head&&(r.head.text=se>>8&1),512&r.flags&&(xe[0]=255&se,xe[1]=se>>>8&255,r.check=a(r.check,xe,2,0)),se=0,le=0,r.mode=S;case S:while(le<32){if(0===ae)break e;ae--,se+=ee[re++]<<le,le+=8}r.head&&(r.head.time=se),512&r.flags&&(xe[0]=255&se,xe[1]=se>>>8&255,xe[2]=se>>>16&255,xe[3]=se>>>24&255,r.check=a(r.check,xe,4,0)),se=0,le=0,r.mode=C;case C:while(le<16){if(0===ae)break e;ae--,se+=ee[re++]<<le,le+=8}r.head&&(r.head.xflags=255&se,r.head.os=se>>8),512&r.flags&&(xe[0]=255&se,xe[1]=se>>>8&255,r.check=a(r.check,xe,2,0)),se=0,le=0,r.mode=T;case T:if(1024&r.flags){while(le<16){if(0===ae)break e;ae--,se+=ee[re++]<<le,le+=8}r.length=se,r.head&&(r.head.extra_len=se),512&r.flags&&(xe[0]=255&se,xe[1]=se>>>8&255,r.check=a(r.check,xe,2,0)),se=0,le=0}else r.head&&(r.head.extra=null);r.mode=x;case x:if(1024&r.flags&&(he=r.length,he>ae&&(he=ae),he&&(r.head&&(Ee=r.head.extra_len-r.length,r.head.extra||(r.head.extra=new Array(r.head.extra_len)),n.arraySet(r.head.extra,ee,re,he,Ee)),512&r.flags&&(r.check=a(r.check,ee,he,re)),ae-=he,re+=he,r.length-=he),r.length))break e;r.length=0,r.mode=R;case R:if(2048&r.flags){if(0===ae)break e;he=0;do{Ee=ee[re+he++],r.head&&Ee&&r.length<65536&&(r.head.name+=String.fromCharCode(Ee))}while(Ee&&he<ae);if(512&r.flags&&(r.check=a(r.check,ee,he,re)),ae-=he,re+=he,Ee)break e}else r.head&&(r.head.name=null);r.length=0,r.mode=A;case A:if(4096&r.flags){if(0===ae)break e;he=0;do{Ee=ee[re+he++],r.head&&Ee&&r.length<65536&&(r.head.comment+=String.fromCharCode(Ee))}while(Ee&&he<ae);if(512&r.flags&&(r.check=a(r.check,ee,he,re)),ae-=he,re+=he,Ee)break e}else r.head&&(r.head.comment=null);r.mode=O;case O:if(512&r.flags){while(le<16){if(0===ae)break e;ae--,se+=ee[re++]<<le,le+=8}if(se!==(65535&r.check)){e.msg="header crc mismatch",r.mode=J;break}se=0,le=0}r.head&&(r.head.hcrc=r.flags>>9&1,r.head.done=!0),e.adler=r.check=0,r.mode=F;break;case L:while(le<32){if(0===ae)break e;ae--,se+=ee[re++]<<le,le+=8}e.adler=r.check=ie(se),se=0,le=0,r.mode=I;case I:if(0===r.havedict)return e.next_out=ne,e.avail_out=oe,e.next_in=re,e.avail_in=ae,r.hold=se,r.bits=le,g;e.adler=r.check=1,r.mode=F;case F:if(t===c||t===d)break e;case M:if(r.last){se>>>=7&le,le-=7&le,r.mode=q;break}while(le<3){if(0===ae)break e;ae--,se+=ee[re++]<<le,le+=8}switch(r.last=1&se,se>>>=1,le-=1,3&se){case 0:r.mode=B;break;case 1:if(pe(r),r.mode=j,t===d){se>>>=2,le-=2;break e}break;case 2:r.mode=N;break;case 3:e.msg="invalid block type",r.mode=J}se>>>=2,le-=2;break;case B:se>>>=7&le,le-=7&le;while(le<32){if(0===ae)break e;ae--,se+=ee[re++]<<le,le+=8}if((65535&se)!==(se>>>16^65535)){e.msg="invalid stored block lengths",r.mode=J;break}if(r.length=65535&se,se=0,le=0,r.mode=P,t===d)break e;case P:r.mode=D;case D:if(he=r.length,he){if(he>ae&&(he=ae),he>oe&&(he=oe),0===he)break e;n.arraySet(te,ee,re,he,ne),ae-=he,re+=he,oe-=he,ne+=he,r.length-=he;break}r.mode=F;break;case N:while(le<14){if(0===ae)break e;ae--,se+=ee[re++]<<le,le+=8}if(r.nlen=257+(31&se),se>>>=5,le-=5,r.ndist=1+(31&se),se>>>=5,le-=5,r.ncode=4+(15&se),se>>>=4,le-=4,r.nlen>286||r.ndist>30){e.msg="too many length or distance symbols",r.mode=J;break}r.have=0,r.mode=z;case z:while(r.have<r.ncode){while(le<3){if(0===ae)break e;ae--,se+=ee[re++]<<le,le+=8}r.lens[Re[r.have++]]=7&se,se>>>=3,le-=3}while(r.have<19)r.lens[Re[r.have++]]=0;if(r.lencode=r.lendyn,r.lenbits=7,Se={bits:r.lenbits},ke=s(l,r.lens,0,19,r.lencode,0,r.work,Se),r.lenbits=Se.bits,ke){e.msg="invalid code lengths set",r.mode=J;break}r.have=0,r.mode=U;case U:while(r.have<r.nlen+r.ndist){for(;;){if(Te=r.lencode[se&(1<<r.lenbits)-1],ge=Te>>>24,ve=Te>>>16&255,ye=65535&Te,ge<=le)break;if(0===ae)break e;ae--,se+=ee[re++]<<le,le+=8}if(ye<16)se>>>=ge,le-=ge,r.lens[r.have++]=ye;else{if(16===ye){Ce=ge+2;while(le<Ce){if(0===ae)break e;ae--,se+=ee[re++]<<le,le+=8}if(se>>>=ge,le-=ge,0===r.have){e.msg="invalid bit length repeat",r.mode=J;break}Ee=r.lens[r.have-1],he=3+(3&se),se>>>=2,le-=2}else if(17===ye){Ce=ge+3;while(le<Ce){if(0===ae)break e;ae--,se+=ee[re++]<<le,le+=8}se>>>=ge,le-=ge,Ee=0,he=3+(7&se),se>>>=3,le-=3}else{Ce=ge+7;while(le<Ce){if(0===ae)break e;ae--,se+=ee[re++]<<le,le+=8}se>>>=ge,le-=ge,Ee=0,he=11+(127&se),se>>>=7,le-=7}if(r.have+he>r.nlen+r.ndist){e.msg="invalid bit length repeat",r.mode=J;break}while(he--)r.lens[r.have++]=Ee}}if(r.mode===J)break;if(0===r.lens[256]){e.msg="invalid code -- missing end-of-block",r.mode=J;break}if(r.lenbits=9,Se={bits:r.lenbits},ke=s(u,r.lens,0,r.nlen,r.lencode,0,r.work,Se),r.lenbits=Se.bits,ke){e.msg="invalid literal/lengths set",r.mode=J;break}if(r.distbits=6,r.distcode=r.distdyn,Se={bits:r.distbits},ke=s(f,r.lens,r.nlen,r.ndist,r.distcode,0,r.work,Se),r.distbits=Se.bits,ke){e.msg="invalid distances set",r.mode=J;break}if(r.mode=j,t===d)break e;case j:r.mode=W;case W:if(ae>=6&&oe>=258){e.next_out=ne,e.avail_out=oe,e.next_in=re,e.avail_in=ae,r.hold=se,r.bits=le,o(e,fe),ne=e.next_out,te=e.output,oe=e.avail_out,re=e.next_in,ee=e.input,ae=e.avail_in,se=r.hold,le=r.bits,r.mode===F&&(r.back=-1);break}for(r.back=0;;){if(Te=r.lencode[se&(1<<r.lenbits)-1],ge=Te>>>24,ve=Te>>>16&255,ye=65535&Te,ge<=le)break;if(0===ae)break e;ae--,se+=ee[re++]<<le,le+=8}if(ve&&0===(240&ve)){for(be=ge,_e=ve,we=ye;;){if(Te=r.lencode[we+((se&(1<<be+_e)-1)>>be)],ge=Te>>>24,ve=Te>>>16&255,ye=65535&Te,be+ge<=le)break;if(0===ae)break e;ae--,se+=ee[re++]<<le,le+=8}se>>>=be,le-=be,r.back+=be}if(se>>>=ge,le-=ge,r.back+=ge,r.length=ye,0===ve){r.mode=Y;break}if(32&ve){r.back=-1,r.mode=F;break}if(64&ve){e.msg="invalid literal/length code",r.mode=J;break}r.extra=15&ve,r.mode=X;case X:if(r.extra){Ce=r.extra;while(le<Ce){if(0===ae)break e;ae--,se+=ee[re++]<<le,le+=8}r.length+=se&(1<<r.extra)-1,se>>>=r.extra,le-=r.extra,r.back+=r.extra}r.was=r.length,r.mode=H;case H:for(;;){if(Te=r.distcode[se&(1<<r.distbits)-1],ge=Te>>>24,ve=Te>>>16&255,ye=65535&Te,ge<=le)break;if(0===ae)break e;ae--,se+=ee[re++]<<le,le+=8}if(0===(240&ve)){for(be=ge,_e=ve,we=ye;;){if(Te=r.distcode[we+((se&(1<<be+_e)-1)>>be)],ge=Te>>>24,ve=Te>>>16&255,ye=65535&Te,be+ge<=le)break;if(0===ae)break e;ae--,se+=ee[re++]<<le,le+=8}se>>>=be,le-=be,r.back+=be}if(se>>>=ge,le-=ge,r.back+=ge,64&ve){e.msg="invalid distance code",r.mode=J;break}r.offset=ye,r.extra=15&ve,r.mode=Z;case Z:if(r.extra){Ce=r.extra;while(le<Ce){if(0===ae)break e;ae--,se+=ee[re++]<<le,le+=8}r.offset+=se&(1<<r.extra)-1,se>>>=r.extra,le-=r.extra,r.back+=r.extra}if(r.offset>r.dmax){e.msg="invalid distance too far back",r.mode=J;break}r.mode=G;case G:if(0===oe)break e;if(he=fe-oe,r.offset>he){if(he=r.offset-he,he>r.whave&&r.sane){e.msg="invalid distance too far back",r.mode=J;break}he>r.wnext?(he-=r.wnext,ce=r.wsize-he):ce=r.wnext-he,he>r.length&&(he=r.length),de=r.window}else de=te,ce=ne-r.offset,he=r.length;he>oe&&(he=oe),oe-=he,r.length-=he;do{te[ne++]=de[ce++]}while(--he);0===r.length&&(r.mode=W);break;case Y:if(0===oe)break e;te[ne++]=r.length,oe--,r.mode=W;break;case q:if(r.wrap){while(le<32){if(0===ae)break e;ae--,se|=ee[re++]<<le,le+=8}if(fe-=oe,e.total_out+=fe,r.total+=fe,fe&&(e.adler=r.check=r.flags?a(r.check,te,fe,ne-fe):i(r.check,te,fe,ne-fe)),fe=oe,(r.flags?se:ie(se))!==r.check){e.msg="incorrect data check",r.mode=J;break}se=0,le=0}r.mode=V;case V:if(r.wrap&&r.flags){while(le<32){if(0===ae)break e;ae--,se+=ee[re++]<<le,le+=8}if(se!==(4294967295&r.total)){e.msg="incorrect length check",r.mode=J;break}se=0,le=0}r.mode=K;case K:ke=m;break e;case J:ke=y;break e;case $:return b;case Q:default:return v}return e.next_out=ne,e.avail_out=oe,e.next_in=re,e.avail_in=ae,r.hold=se,r.bits=le,(r.wsize||fe!==e.avail_out&&r.mode<J&&(r.mode<q||t!==h))&&me(e,e.output,e.next_out,fe-e.avail_out)?(r.mode=$,b):(ue-=e.avail_in,fe-=e.avail_out,e.total_in+=ue,e.total_out+=fe,r.total+=fe,r.wrap&&fe&&(e.adler=r.check=r.flags?a(r.check,te,fe,e.next_out-fe):i(r.check,te,fe,e.next_out-fe)),e.data_type=r.bits+(r.last?64:0)+(r.mode===F?128:0)+(r.mode===j||r.mode===P?256:0),(0===ue&&0===fe||t===h)&&ke===p&&(ke=_),ke)}function ve(e){if(!e||!e.state)return v;var t=e.state;return t.window&&(t.window=null),e.state=null,p}function ye(e,t){var r;return e&&e.state?(r=e.state,0===(2&r.wrap)?v:(r.head=t,t.done=!1,p)):v}function be(e,t){var r,n,a,o=t.length;return e&&e.state?(r=e.state,0!==r.wrap&&r.mode!==I?v:r.mode===I&&(n=1,n=i(n,t,o,0),n!==r.check)?y:(a=me(e,t,o,o),a?(r.mode=$,b):(r.havedict=1,p))):v}r.inflateReset=se,r.inflateReset2=le,r.inflateResetKeep=oe,r.inflateInit=fe,r.inflateInit2=ue,r.inflate=ge,r.inflateEnd=ve,r.inflateGetHeader=ye,r.inflateSetDictionary=be,r.inflateInfo="pako inflate (from Nodeca project)"},{"../utils/common":50,"./adler32":52,"./crc32":54,"./inffast":57,"./inftrees":59}],59:[function(e,t,r){"use strict";var n=e("../utils/common"),i=15,a=852,o=592,s=0,l=1,u=2,f=[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],h=[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],c=[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],d=[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,r,p,m,g,v,y){var b,_,w,E,k,S,C,T,x,R=y.bits,A=0,O=0,L=0,I=0,F=0,M=0,B=0,P=0,D=0,N=0,z=null,U=0,j=new n.Buf16(i+1),W=new n.Buf16(i+1),X=null,H=0;for(A=0;A<=i;A++)j[A]=0;for(O=0;O<p;O++)j[t[r+O]]++;for(F=R,I=i;I>=1;I--)if(0!==j[I])break;if(F>I&&(F=I),0===I)return m[g++]=20971520,m[g++]=20971520,y.bits=1,0;for(L=1;L<I;L++)if(0!==j[L])break;for(F<L&&(F=L),P=1,A=1;A<=i;A++)if(P<<=1,P-=j[A],P<0)return-1;if(P>0&&(e===s||1!==I))return-1;for(W[1]=0,A=1;A<i;A++)W[A+1]=W[A]+j[A];for(O=0;O<p;O++)0!==t[r+O]&&(v[W[t[r+O]]++]=O);if(e===s?(z=X=v,S=19):e===l?(z=f,U-=257,X=h,H-=257,S=256):(z=c,X=d,S=-1),N=0,O=0,A=L,k=g,M=F,B=0,w=-1,D=1<<F,E=D-1,e===l&&D>a||e===u&&D>o)return 1;for(;;){C=A-B,v[O]<S?(T=0,x=v[O]):v[O]>S?(T=X[H+v[O]],x=z[U+v[O]]):(T=96,x=0),b=1<<A-B,_=1<<M,L=_;do{_-=b,m[k+(N>>B)+_]=C<<24|T<<16|x|0}while(0!==_);b=1<<A-1;while(N&b)b>>=1;if(0!==b?(N&=b-1,N+=b):N=0,O++,0===--j[A]){if(A===I)break;A=t[r+v[O]]}if(A>F&&(N&E)!==w){0===B&&(B=F),k+=L,M=A-B,P=1<<M;while(M+B<I){if(P-=j[M+B],P<=0)break;M++,P<<=1}if(D+=1<<M,e===l&&D>a||e===u&&D>o)return 1;w=N&E,m[w]=F<<24|M<<16|k-g|0}}return 0!==N&&(m[k+N]=A-B<<24|64<<16|0),y.bits=F,0}},{"../utils/common":50}],60:[function(e,t,r){"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"}},{}],61:[function(e,t,r){"use strict";var n=e("../utils/common"),i=4,a=0,o=1,s=2;function l(e){var t=e.length;while(--t>=0)e[t]=0}var u=0,f=1,h=2,c=3,d=258,p=29,m=256,g=m+1+p,v=30,y=19,b=2*g+1,_=15,w=16,E=7,k=256,S=16,C=17,T=18,x=[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],R=[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],A=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],O=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],L=512,I=new Array(2*(g+2));l(I);var F=new Array(2*v);l(F);var M=new Array(L);l(M);var B=new Array(d-c+1);l(B);var P=new Array(p);l(P);var D,N,z,U=new Array(v);function j(e,t,r,n,i){this.static_tree=e,this.extra_bits=t,this.extra_base=r,this.elems=n,this.max_length=i,this.has_stree=e&&e.length}function W(e,t){this.dyn_tree=e,this.max_code=0,this.stat_desc=t}function X(e){return e<256?M[e]:M[256+(e>>>7)]}function H(e,t){e.pending_buf[e.pending++]=255&t,e.pending_buf[e.pending++]=t>>>8&255}function Z(e,t,r){e.bi_valid>w-r?(e.bi_buf|=t<<e.bi_valid&65535,H(e,e.bi_buf),e.bi_buf=t>>w-e.bi_valid,e.bi_valid+=r-w):(e.bi_buf|=t<<e.bi_valid&65535,e.bi_valid+=r)}function G(e,t,r){Z(e,r[2*t],r[2*t+1])}function Y(e,t){var r=0;do{r|=1&e,e>>>=1,r<<=1}while(--t>0);return r>>>1}function q(e){16===e.bi_valid?(H(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)}function V(e,t){var r,n,i,a,o,s,l=t.dyn_tree,u=t.max_code,f=t.stat_desc.static_tree,h=t.stat_desc.has_stree,c=t.stat_desc.extra_bits,d=t.stat_desc.extra_base,p=t.stat_desc.max_length,m=0;for(a=0;a<=_;a++)e.bl_count[a]=0;for(l[2*e.heap[e.heap_max]+1]=0,r=e.heap_max+1;r<b;r++)n=e.heap[r],a=l[2*l[2*n+1]+1]+1,a>p&&(a=p,m++),l[2*n+1]=a,n>u||(e.bl_count[a]++,o=0,n>=d&&(o=c[n-d]),s=l[2*n],e.opt_len+=s*(a+o),h&&(e.static_len+=s*(f[2*n+1]+o)));if(0!==m){do{a=p-1;while(0===e.bl_count[a])a--;e.bl_count[a]--,e.bl_count[a+1]+=2,e.bl_count[p]--,m-=2}while(m>0);for(a=p;0!==a;a--){n=e.bl_count[a];while(0!==n)i=e.heap[--r],i>u||(l[2*i+1]!==a&&(e.opt_len+=(a-l[2*i+1])*l[2*i],l[2*i+1]=a),n--)}}}function K(e,t,r){var n,i,a=new Array(_+1),o=0;for(n=1;n<=_;n++)a[n]=o=o+r[n-1]<<1;for(i=0;i<=t;i++){var s=e[2*i+1];0!==s&&(e[2*i]=Y(a[s]++,s))}}function J(){var e,t,r,n,i,a=new Array(_+1);for(r=0,n=0;n<p-1;n++)for(P[n]=r,e=0;e<1<<x[n];e++)B[r++]=n;for(B[r-1]=n,i=0,n=0;n<16;n++)for(U[n]=i,e=0;e<1<<R[n];e++)M[i++]=n;for(i>>=7;n<v;n++)for(U[n]=i<<7,e=0;e<1<<R[n]-7;e++)M[256+i++]=n;for(t=0;t<=_;t++)a[t]=0;e=0;while(e<=143)I[2*e+1]=8,e++,a[8]++;while(e<=255)I[2*e+1]=9,e++,a[9]++;while(e<=279)I[2*e+1]=7,e++,a[7]++;while(e<=287)I[2*e+1]=8,e++,a[8]++;for(K(I,g+1,a),e=0;e<v;e++)F[2*e+1]=5,F[2*e]=Y(e,5);D=new j(I,x,m+1,g,_),N=new j(F,R,0,v,_),z=new j(new Array(0),A,0,y,E)}function $(e){var t;for(t=0;t<g;t++)e.dyn_ltree[2*t]=0;for(t=0;t<v;t++)e.dyn_dtree[2*t]=0;for(t=0;t<y;t++)e.bl_tree[2*t]=0;e.dyn_ltree[2*k]=1,e.opt_len=e.static_len=0,e.last_lit=e.matches=0}function Q(e){e.bi_valid>8?H(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 ee(e,t,r,i){Q(e),i&&(H(e,r),H(e,~r)),n.arraySet(e.pending_buf,e.window,t,r,e.pending),e.pending+=r}function te(e,t,r,n){var i=2*t,a=2*r;return e[i]<e[a]||e[i]===e[a]&&n[t]<=n[r]}function re(e,t,r){var n=e.heap[r],i=r<<1;while(i<=e.heap_len){if(i<e.heap_len&&te(t,e.heap[i+1],e.heap[i],e.depth)&&i++,te(t,n,e.heap[i],e.depth))break;e.heap[r]=e.heap[i],r=i,i<<=1}e.heap[r]=n}function ne(e,t,r){var n,i,a,o,s=0;if(0!==e.last_lit)do{n=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===n?G(e,i,t):(a=B[i],G(e,a+m+1,t),o=x[a],0!==o&&(i-=P[a],Z(e,i,o)),n--,a=X(n),G(e,a,r),o=R[a],0!==o&&(n-=U[a],Z(e,n,o)))}while(s<e.last_lit);G(e,k,t)}function ie(e,t){var r,n,i,a=t.dyn_tree,o=t.stat_desc.static_tree,s=t.stat_desc.has_stree,l=t.stat_desc.elems,u=-1;for(e.heap_len=0,e.heap_max=b,r=0;r<l;r++)0!==a[2*r]?(e.heap[++e.heap_len]=u=r,e.depth[r]=0):a[2*r+1]=0;while(e.heap_len<2)i=e.heap[++e.heap_len]=u<2?++u:0,a[2*i]=1,e.depth[i]=0,e.opt_len--,s&&(e.static_len-=o[2*i+1]);for(t.max_code=u,r=e.heap_len>>1;r>=1;r--)re(e,a,r);i=l;do{r=e.heap[1],e.heap[1]=e.heap[e.heap_len--],re(e,a,1),n=e.heap[1],e.heap[--e.heap_max]=r,e.heap[--e.heap_max]=n,a[2*i]=a[2*r]+a[2*n],e.depth[i]=(e.depth[r]>=e.depth[n]?e.depth[r]:e.depth[n])+1,a[2*r+1]=a[2*n+1]=i,e.heap[1]=i++,re(e,a,1)}while(e.heap_len>=2);e.heap[--e.heap_max]=e.heap[1],V(e,t),K(a,u,e.bl_count)}function ae(e,t,r){var n,i,a=-1,o=t[1],s=0,l=7,u=4;for(0===o&&(l=138,u=3),t[2*(r+1)+1]=65535,n=0;n<=r;n++)i=o,o=t[2*(n+1)+1],++s<l&&i===o||(s<u?e.bl_tree[2*i]+=s:0!==i?(i!==a&&e.bl_tree[2*i]++,e.bl_tree[2*S]++):s<=10?e.bl_tree[2*C]++:e.bl_tree[2*T]++,s=0,a=i,0===o?(l=138,u=3):i===o?(l=6,u=3):(l=7,u=4))}function oe(e,t,r){var n,i,a=-1,o=t[1],s=0,l=7,u=4;for(0===o&&(l=138,u=3),n=0;n<=r;n++)if(i=o,o=t[2*(n+1)+1],!(++s<l&&i===o)){if(s<u)do{G(e,i,e.bl_tree)}while(0!==--s);else 0!==i?(i!==a&&(G(e,i,e.bl_tree),s--),G(e,S,e.bl_tree),Z(e,s-3,2)):s<=10?(G(e,C,e.bl_tree),Z(e,s-3,3)):(G(e,T,e.bl_tree),Z(e,s-11,7));s=0,a=i,0===o?(l=138,u=3):i===o?(l=6,u=3):(l=7,u=4)}}function se(e){var t;for(ae(e,e.dyn_ltree,e.l_desc.max_code),ae(e,e.dyn_dtree,e.d_desc.max_code),ie(e,e.bl_desc),t=y-1;t>=3;t--)if(0!==e.bl_tree[2*O[t]+1])break;return e.opt_len+=3*(t+1)+5+5+4,t}function le(e,t,r,n){var i;for(Z(e,t-257,5),Z(e,r-1,5),Z(e,n-4,4),i=0;i<n;i++)Z(e,e.bl_tree[2*O[i]+1],3);oe(e,e.dyn_ltree,t-1),oe(e,e.dyn_dtree,r-1)}function ue(e){var t,r=4093624447;for(t=0;t<=31;t++,r>>>=1)if(1&r&&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<m;t++)if(0!==e.dyn_ltree[2*t])return o;return a}l(U);var fe=!1;function he(e){fe||(J(),fe=!0),e.l_desc=new W(e.dyn_ltree,D),e.d_desc=new W(e.dyn_dtree,N),e.bl_desc=new W(e.bl_tree,z),e.bi_buf=0,e.bi_valid=0,$(e)}function ce(e,t,r,n){Z(e,(u<<1)+(n?1:0),3),ee(e,t,r,!0)}function de(e){Z(e,f<<1,3),G(e,k,I),q(e)}function pe(e,t,r,n){var a,o,l=0;e.level>0?(e.strm.data_type===s&&(e.strm.data_type=ue(e)),ie(e,e.l_desc),ie(e,e.d_desc),l=se(e),a=e.opt_len+3+7>>>3,o=e.static_len+3+7>>>3,o<=a&&(a=o)):a=o=r+5,r+4<=a&&-1!==t?ce(e,t,r,n):e.strategy===i||o===a?(Z(e,(f<<1)+(n?1:0),3),ne(e,I,F)):(Z(e,(h<<1)+(n?1:0),3),le(e,e.l_desc.max_code+1,e.d_desc.max_code+1,l+1),ne(e,e.dyn_ltree,e.dyn_dtree)),$(e),n&&Q(e)}function me(e,t,r){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&r,e.last_lit++,0===t?e.dyn_ltree[2*r]++:(e.matches++,t--,e.dyn_ltree[2*(B[r]+m+1)]++,e.dyn_dtree[2*X(t)]++),e.last_lit===e.lit_bufsize-1}r._tr_init=he,r._tr_stored_block=ce,r._tr_flush_block=pe,r._tr_tally=me,r._tr_align=de},{"../utils/common":50}],62:[function(e,t,r){"use strict";function n(){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}t.exports=n},{}],63:[function(e,t,r){(function(e){"use strict";function r(t,r,n,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,r)}));case 3:return e.nextTick((function(){t.call(null,r,n)}));case 4:return e.nextTick((function(){t.call(null,r,n,i)}));default:a=new Array(s-1),o=0;while(o<a.length)a[o++]=arguments[o];return e.nextTick((function(){t.apply(null,a)}))}}"undefined"===typeof e||!e.version||0===e.version.indexOf("v0.")||0===e.version.indexOf("v1.")&&0!==e.version.indexOf("v1.8.")?t.exports={nextTick:r}:t.exports=e}).call(this,e("_process"))},{_process:64}],64:[function(e,t,r){var n,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 l(e){if(n===setTimeout)return setTimeout(e,0);if((n===o||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}function u(e){if(i===clearTimeout)return clearTimeout(e);if((i===s||!i)&&clearTimeout)return i=clearTimeout,clearTimeout(e);try{return i(e)}catch(t){try{return i.call(null,e)}catch(t){return i.call(this,e)}}}(function(){try{n="function"===typeof setTimeout?setTimeout:o}catch(e){n=o}try{i="function"===typeof clearTimeout?clearTimeout:s}catch(e){i=s}})();var f,h=[],c=!1,d=-1;function p(){c&&f&&(c=!1,f.length?h=f.concat(h):d=-1,h.length&&m())}function m(){if(!c){var e=l(p);c=!0;var t=h.length;while(t){f=h,h=[];while(++d<t)f&&f[d].run();d=-1,t=h.length}f=null,c=!1,u(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 r=1;r<arguments.length;r++)t[r-1]=arguments[r];h.push(new g(e,t)),1!==h.length||c||l(m)},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}},{}],65:[function(e,t,r){t.exports=e("./lib/_stream_duplex.js")},{"./lib/_stream_duplex.js":66}],66:[function(e,t,r){"use strict";var n=e("process-nextick-args"),i=Object.keys||function(e){var t=[];for(var r in e)t.push(r);return t};t.exports=h;var a=Object.create(e("core-util-is"));a.inherits=e("inherits");var o=e("./_stream_readable"),s=e("./_stream_writable");a.inherits(h,o);for(var l=i(s.prototype),u=0;u<l.length;u++){var f=l[u];h.prototype[f]||(h.prototype[f]=s.prototype[f])}function h(e){if(!(this instanceof h))return new h(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",c)}function c(){this.allowHalfOpen||this._writableState.ended||n.nextTick(d,this)}function d(e){e.end()}Object.defineProperty(h.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(h.prototype,"destroyed",{get:function(){return void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed&&this._writableState.destroyed)},set:function(e){void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed=e,this._writableState.destroyed=e)}}),h.prototype._destroy=function(e,t){this.push(null),this.end(),n.nextTick(t,e)}},{"./_stream_readable":68,"./_stream_writable":70,"core-util-is":4,inherits:8,"process-nextick-args":63}],67:[function(e,t,r){"use strict";t.exports=a;var n=e("./_stream_transform"),i=Object.create(e("core-util-is"));function a(e){if(!(this instanceof a))return new a(e);n.call(this,e)}i.inherits=e("inherits"),i.inherits(a,n),a.prototype._transform=function(e,t,r){r(null,e)}},{"./_stream_transform":69,"core-util-is":4,inherits:8}],68:[function(e,r,n){(function(t,n){"use strict";var i=e("process-nextick-args");r.exports=E;var a,o=e("isarray");E.ReadableState=w;e("events").EventEmitter;var s=function(e,t){return e.listeners(t).length},l=e("./internal/streams/stream"),u=e("safe-buffer").Buffer,f=n.Uint8Array||function(){};function h(e){return u.from(e)}function c(e){return u.isBuffer(e)||e instanceof f}var d=Object.create(e("core-util-is"));d.inherits=e("inherits");var p=e("util"),m=void 0;m=p&&p.debuglog?p.debuglog("stream"):function(){};var g,v=e("./internal/streams/BufferList"),y=e("./internal/streams/destroy");d.inherits(E,l);var b=["error","close","destroy","pause","resume"];function _(e,t,r){if("function"===typeof e.prependListener)return e.prependListener(t,r);e._events&&e._events[t]?o(e._events[t])?e._events[t].unshift(r):e._events[t]=[r,e._events[t]]:e.on(t,r)}function w(t,r){a=a||e("./_stream_duplex"),t=t||{};var n=r instanceof a;this.objectMode=!!t.objectMode,n&&(this.objectMode=this.objectMode||!!t.readableObjectMode);var i=t.highWaterMark,o=t.readableHighWaterMark,s=this.objectMode?16:16384;this.highWaterMark=i||0===i?i:n&&(o||0===o)?o:s,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new v,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.destroyed=!1,this.defaultEncoding=t.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,t.encoding&&(g||(g=e("string_decoder/").StringDecoder),this.decoder=new g(t.encoding),this.encoding=t.encoding)}function E(t){if(a=a||e("./_stream_duplex"),!(this instanceof E))return new E(t);this._readableState=new w(t,this),this.readable=!0,t&&("function"===typeof t.read&&(this._read=t.read),"function"===typeof t.destroy&&(this._destroy=t.destroy)),l.call(this)}function k(e,t,r,n,i){var a,o=e._readableState;null===t?(o.reading=!1,O(e,o)):(i||(a=C(o,t)),a?e.emit("error",a):o.objectMode||t&&t.length>0?("string"===typeof t||o.objectMode||Object.getPrototypeOf(t)===u.prototype||(t=h(t)),n?o.endEmitted?e.emit("error",new Error("stream.unshift() after end event")):S(e,o,t,!0):o.ended?e.emit("error",new Error("stream.push() after EOF")):(o.reading=!1,o.decoder&&!r?(t=o.decoder.write(t),o.objectMode||0!==t.length?S(e,o,t,!1):F(e,o)):S(e,o,t,!1))):n||(o.reading=!1));return T(o)}function S(e,t,r,n){t.flowing&&0===t.length&&!t.sync?(e.emit("data",r),e.read(0)):(t.length+=t.objectMode?1:r.length,n?t.buffer.unshift(r):t.buffer.push(r),t.needReadable&&L(e)),F(e,t)}function C(e,t){var r;return c(t)||"string"===typeof t||void 0===t||e.objectMode||(r=new TypeError("Invalid non-string/buffer chunk")),r}function T(e){return!e.ended&&(e.needReadable||e.length<e.highWaterMark||0===e.length)}Object.defineProperty(E.prototype,"destroyed",{get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e)}}),E.prototype.destroy=y.destroy,E.prototype._undestroy=y.undestroy,E.prototype._destroy=function(e,t){this.push(null),t(e)},E.prototype.push=function(e,t){var r,n=this._readableState;return n.objectMode?r=!0:"string"===typeof e&&(t=t||n.defaultEncoding,t!==n.encoding&&(e=u.from(e,t),t=""),r=!0),k(this,e,t,!1,r)},E.prototype.unshift=function(e){return k(this,e,null,!0,!1)},E.prototype.isPaused=function(){return!1===this._readableState.flowing},E.prototype.setEncoding=function(t){return g||(g=e("string_decoder/").StringDecoder),this._readableState.decoder=new g(t),this._readableState.encoding=t,this};var x=8388608;function R(e){return e>=x?e=x:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}function A(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=R(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}function O(e,t){if(!t.ended){if(t.decoder){var r=t.decoder.end();r&&r.length&&(t.buffer.push(r),t.length+=t.objectMode?1:r.length)}t.ended=!0,L(e)}}function L(e){var t=e._readableState;t.needReadable=!1,t.emittedReadable||(m("emitReadable",t.flowing),t.emittedReadable=!0,t.sync?i.nextTick(I,e):I(e))}function I(e){m("emit readable"),e.emit("readable"),z(e)}function F(e,t){t.readingMore||(t.readingMore=!0,i.nextTick(M,e,t))}function M(e,t){var r=t.length;while(!t.reading&&!t.flowing&&!t.ended&&t.length<t.highWaterMark){if(m("maybeReadMore read 0"),e.read(0),r===t.length)break;r=t.length}t.readingMore=!1}function B(e){return function(){var t=e._readableState;m("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&s(e,"data")&&(t.flowing=!0,z(e))}}function P(e){m("readable nexttick read 0"),e.read(0)}function D(e,t){t.resumeScheduled||(t.resumeScheduled=!0,i.nextTick(N,e,t))}function N(e,t){t.reading||(m("resume read 0"),e.read(0)),t.resumeScheduled=!1,t.awaitDrain=0,e.emit("resume"),z(e),t.flowing&&!t.reading&&e.read(0)}function z(e){var t=e._readableState;m("flow",t.flowing);while(t.flowing&&null!==e.read());}function U(e,t){return 0===t.length?null:(t.objectMode?r=t.buffer.shift():!e||e>=t.length?(r=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.head.data:t.buffer.concat(t.length),t.buffer.clear()):r=j(e,t.buffer,t.decoder),r);var r}function j(e,t,r){var n;return e<t.head.data.length?(n=t.head.data.slice(0,e),t.head.data=t.head.data.slice(e)):n=e===t.head.data.length?t.shift():r?W(e,t):X(e,t),n}function W(e,t){var r=t.head,n=1,i=r.data;e-=i.length;while(r=r.next){var a=r.data,o=e>a.length?a.length:e;if(o===a.length?i+=a:i+=a.slice(0,e),e-=o,0===e){o===a.length?(++n,r.next?t.head=r.next:t.head=t.tail=null):(t.head=r,r.data=a.slice(o));break}++n}return t.length-=n,i}function X(e,t){var r=u.allocUnsafe(e),n=t.head,i=1;n.data.copy(r),e-=n.data.length;while(n=n.next){var a=n.data,o=e>a.length?a.length:e;if(a.copy(r,r.length-e,0,o),e-=o,0===e){o===a.length?(++i,n.next?t.head=n.next:t.head=t.tail=null):(t.head=n,n.data=a.slice(o));break}++i}return t.length-=i,r}function H(e){var t=e._readableState;if(t.length>0)throw new Error('"endReadable()" called on non-empty stream');t.endEmitted||(t.ended=!0,i.nextTick(Z,t,e))}function Z(e,t){e.endEmitted||0!==e.length||(e.endEmitted=!0,t.readable=!1,t.emit("end"))}function G(e,t){for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return-1}E.prototype.read=function(e){m("read",e),e=parseInt(e,10);var t=this._readableState,r=e;if(0!==e&&(t.emittedReadable=!1),0===e&&t.needReadable&&(t.length>=t.highWaterMark||t.ended))return m("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?H(this):L(this),null;if(e=A(e,t),0===e&&t.ended)return 0===t.length&&H(this),null;var n,i=t.needReadable;return m("need readable",i),(0===t.length||t.length-e<t.highWaterMark)&&(i=!0,m("length less than watermark",i)),t.ended||t.reading?(i=!1,m("reading or ended",i)):i&&(m("do read"),t.reading=!0,t.sync=!0,0===t.length&&(t.needReadable=!0),this._read(t.highWaterMark),t.sync=!1,t.reading||(e=A(r,t))),n=e>0?U(e,t):null,null===n?(t.needReadable=!0,e=0):t.length-=e,0===t.length&&(t.ended||(t.needReadable=!0),r!==e&&t.ended&&H(this)),null!==n&&this.emit("data",n),n},E.prototype._read=function(e){this.emit("error",new Error("_read() is not implemented"))},E.prototype.pipe=function(e,r){var n=this,a=this._readableState;switch(a.pipesCount){case 0:a.pipes=e;break;case 1:a.pipes=[a.pipes,e];break;default:a.pipes.push(e);break}a.pipesCount+=1,m("pipe count=%d opts=%j",a.pipesCount,r);var o=(!r||!1!==r.end)&&e!==t.stdout&&e!==t.stderr,l=o?f:w;function u(e,t){m("onunpipe"),e===n&&t&&!1===t.hasUnpiped&&(t.hasUnpiped=!0,d())}function f(){m("onend"),e.end()}a.endEmitted?i.nextTick(l):n.once("end",l),e.on("unpipe",u);var h=B(n);e.on("drain",h);var c=!1;function d(){m("cleanup"),e.removeListener("close",y),e.removeListener("finish",b),e.removeListener("drain",h),e.removeListener("error",v),e.removeListener("unpipe",u),n.removeListener("end",f),n.removeListener("end",w),n.removeListener("data",g),c=!0,!a.awaitDrain||e._writableState&&!e._writableState.needDrain||h()}var p=!1;function g(t){m("ondata"),p=!1;var r=e.write(t);!1!==r||p||((1===a.pipesCount&&a.pipes===e||a.pipesCount>1&&-1!==G(a.pipes,e))&&!c&&(m("false write response, pause",n._readableState.awaitDrain),n._readableState.awaitDrain++,p=!0),n.pause())}function v(t){m("onerror",t),w(),e.removeListener("error",v),0===s(e,"error")&&e.emit("error",t)}function y(){e.removeListener("finish",b),w()}function b(){m("onfinish"),e.removeListener("close",y),w()}function w(){m("unpipe"),n.unpipe(e)}return n.on("data",g),_(e,"error",v),e.once("close",y),e.once("finish",b),e.emit("pipe",n),a.flowing||(m("pipe resume"),n.resume()),e},E.prototype.unpipe=function(e){var t=this._readableState,r={hasUnpiped:!1};if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes||(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,r)),this;if(!e){var n=t.pipes,i=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var a=0;a<i;a++)n[a].emit("unpipe",this,r);return this}var o=G(t.pipes,e);return-1===o||(t.pipes.splice(o,1),t.pipesCount-=1,1===t.pipesCount&&(t.pipes=t.pipes[0]),e.emit("unpipe",this,r)),this},E.prototype.on=function(e,t){var r=l.prototype.on.call(this,e,t);if("data"===e)!1!==this._readableState.flowing&&this.resume();else if("readable"===e){var n=this._readableState;n.endEmitted||n.readableListening||(n.readableListening=n.needReadable=!0,n.emittedReadable=!1,n.reading?n.length&&L(this):i.nextTick(P,this))}return r},E.prototype.addListener=E.prototype.on,E.prototype.resume=function(){var e=this._readableState;return e.flowing||(m("resume"),e.flowing=!0,D(this,e)),this},E.prototype.pause=function(){return m("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(m("pause"),this._readableState.flowing=!1,this.emit("pause")),this},E.prototype.wrap=function(e){var t=this,r=this._readableState,n=!1;for(var i in e.on("end",(function(){if(m("wrapped end"),r.decoder&&!r.ended){var e=r.decoder.end();e&&e.length&&t.push(e)}t.push(null)})),e.on("data",(function(i){if(m("wrapped data"),r.decoder&&(i=r.decoder.write(i)),(!r.objectMode||null!==i&&void 0!==i)&&(r.objectMode||i&&i.length)){var a=t.push(i);a||(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<b.length;a++)e.on(b[a],this.emit.bind(this,b[a]));return this._read=function(t){m("wrapped _read",t),n&&(n=!1,e.resume())},this},Object.defineProperty(E.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),E._fromList=U}).call(this,e("_process"),"undefined"!==typeof t?t:"undefined"!==typeof self?self:"undefined"!==typeof window?window:{})},{"./_stream_duplex":66,"./internal/streams/BufferList":71,"./internal/streams/destroy":72,"./internal/streams/stream":73,_process:64,"core-util-is":4,events:5,inherits:8,isarray:10,"process-nextick-args":63,"safe-buffer":78,"string_decoder/":81,util:2}],69:[function(e,t,r){"use strict";t.exports=o;var n=e("./_stream_duplex"),i=Object.create(e("core-util-is"));function a(e,t){var r=this._transformState;r.transforming=!1;var n=r.writecb;if(!n)return this.emit("error",new Error("write callback called multiple times"));r.writechunk=null,r.writecb=null,null!=t&&this.push(t),n(e);var i=this._readableState;i.reading=!1,(i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}function o(e){if(!(this instanceof o))return new o(e);n.call(this,e),this._transformState={afterTransform:a.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,e&&("function"===typeof e.transform&&(this._transform=e.transform),"function"===typeof e.flush&&(this._flush=e.flush)),this.on("prefinish",s)}function s(){var e=this;"function"===typeof this._flush?this._flush((function(t,r){l(e,t,r)})):l(this,null,null)}function l(e,t,r){if(t)return e.emit("error",t);if(null!=r&&e.push(r),e._writableState.length)throw new Error("Calling transform done when ws.length != 0");if(e._transformState.transforming)throw new Error("Calling transform done when still transforming");return e.push(null)}i.inherits=e("inherits"),i.inherits(o,n),o.prototype.push=function(e,t){return this._transformState.needTransform=!1,n.prototype.push.call(this,e,t)},o.prototype._transform=function(e,t,r){throw new Error("_transform() is not implemented")},o.prototype._write=function(e,t,r){var n=this._transformState;if(n.writecb=r,n.writechunk=e,n.writeencoding=t,!n.transforming){var i=this._readableState;(n.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},o.prototype._destroy=function(e,t){var r=this;n.prototype._destroy.call(this,e,(function(e){t(e),r.emit("close")}))}},{"./_stream_duplex":66,"core-util-is":4,inherits:8}],70:[function(e,r,n){(function(t,n,i){"use strict";var a=e("process-nextick-args");function o(e){var t=this;this.next=null,this.entry=null,this.finish=function(){D(t,e)}}r.exports=_;var s,l=!t.browser&&["v0.10","v0.9."].indexOf(t.version.slice(0,5))>-1?i:a.nextTick;_.WritableState=b;var u=Object.create(e("core-util-is"));u.inherits=e("inherits");var f={deprecate:e("util-deprecate")},h=e("./internal/streams/stream"),c=e("safe-buffer").Buffer,d=n.Uint8Array||function(){};function p(e){return c.from(e)}function m(e){return c.isBuffer(e)||e instanceof d}var g,v=e("./internal/streams/destroy");function y(){}function b(t,r){s=s||e("./_stream_duplex"),t=t||{};var n=r instanceof s;this.objectMode=!!t.objectMode,n&&(this.objectMode=this.objectMode||!!t.writableObjectMode);var i=t.highWaterMark,a=t.writableHighWaterMark,l=this.objectMode?16:16384;this.highWaterMark=i||0===i?i:n&&(a||0===a)?a:l,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!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){R(r,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new o(this)}function _(t){if(s=s||e("./_stream_duplex"),!g.call(_,this)&&!(this instanceof s))return new _(t);this._writableState=new b(t,this),this.writable=!0,t&&("function"===typeof t.write&&(this._write=t.write),"function"===typeof t.writev&&(this._writev=t.writev),"function"===typeof t.destroy&&(this._destroy=t.destroy),"function"===typeof t.final&&(this._final=t.final)),h.call(this)}function w(e,t){var r=new Error("write after end");e.emit("error",r),a.nextTick(t,r)}function E(e,t,r,n){var i=!0,o=!1;return null===r?o=new TypeError("May not write null values to stream"):"string"===typeof r||void 0===r||t.objectMode||(o=new TypeError("Invalid non-string/buffer chunk")),o&&(e.emit("error",o),a.nextTick(n,o),i=!1),i}function k(e,t,r){return e.objectMode||!1===e.decodeStrings||"string"!==typeof t||(t=c.from(t,r)),t}function S(e,t,r,n,i,a){if(!r){var o=k(t,n,i);n!==o&&(r=!0,i="buffer",n=o)}var s=t.objectMode?1:n.length;t.length+=s;var l=t.length<t.highWaterMark;if(l||(t.needDrain=!0),t.writing||t.corked){var u=t.lastBufferedRequest;t.lastBufferedRequest={chunk:n,encoding:i,isBuf:r,callback:a,next:null},u?u.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1}else C(e,t,!1,s,n,i,a);return l}function C(e,t,r,n,i,a,o){t.writelen=n,t.writecb=o,t.writing=!0,t.sync=!0,r?e._writev(i,t.onwrite):e._write(i,a,t.onwrite),t.sync=!1}function T(e,t,r,n,i){--t.pendingcb,r?(a.nextTick(i,n),a.nextTick(B,e,t),e._writableState.errorEmitted=!0,e.emit("error",n)):(i(n),e._writableState.errorEmitted=!0,e.emit("error",n),B(e,t))}function x(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}function R(e,t){var r=e._writableState,n=r.sync,i=r.writecb;if(x(r),t)T(e,r,n,t,i);else{var a=I(r);a||r.corked||r.bufferProcessing||!r.bufferedRequest||L(e,r),n?l(A,e,r,a,i):A(e,r,a,i)}}function A(e,t,r,n){r||O(e,t),t.pendingcb--,n(),B(e,t)}function O(e,t){0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}function L(e,t){t.bufferProcessing=!0;var r=t.bufferedRequest;if(e._writev&&r&&r.next){var n=t.bufferedRequestCount,i=new Array(n),a=t.corkedRequestsFree;a.entry=r;var s=0,l=!0;while(r)i[s]=r,r.isBuf||(l=!1),r=r.next,s+=1;i.allBuffers=l,C(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 o(t),t.bufferedRequestCount=0}else{while(r){var u=r.chunk,f=r.encoding,h=r.callback,c=t.objectMode?1:u.length;if(C(e,t,!1,c,u,f,h),r=r.next,t.bufferedRequestCount--,t.writing)break}null===r&&(t.lastBufferedRequest=null)}t.bufferedRequest=r,t.bufferProcessing=!1}function I(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function F(e,t){e._final((function(r){t.pendingcb--,r&&e.emit("error",r),t.prefinished=!0,e.emit("prefinish"),B(e,t)}))}function M(e,t){t.prefinished||t.finalCalled||("function"===typeof e._final?(t.pendingcb++,t.finalCalled=!0,a.nextTick(F,e,t)):(t.prefinished=!0,e.emit("prefinish")))}function B(e,t){var r=I(t);return r&&(M(e,t),0===t.pendingcb&&(t.finished=!0,e.emit("finish"))),r}function P(e,t,r){t.ending=!0,B(e,t),r&&(t.finished?a.nextTick(r):e.once("finish",r)),t.ended=!0,e.writable=!1}function D(e,t,r){var n=e.entry;e.entry=null;while(n){var i=n.callback;t.pendingcb--,i(r),n=n.next}t.corkedRequestsFree?t.corkedRequestsFree.next=e:t.corkedRequestsFree=e}u.inherits(_,h),b.prototype.getBuffer=function(){var e=this.bufferedRequest,t=[];while(e)t.push(e),e=e.next;return t},function(){try{Object.defineProperty(b.prototype,"buffer",{get:f.deprecate((function(){return this.getBuffer()}),"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(e){}}(),"function"===typeof Symbol&&Symbol.hasInstance&&"function"===typeof Function.prototype[Symbol.hasInstance]?(g=Function.prototype[Symbol.hasInstance],Object.defineProperty(_,Symbol.hasInstance,{value:function(e){return!!g.call(this,e)||this===_&&(e&&e._writableState instanceof b)}})):g=function(e){return e instanceof this},_.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},_.prototype.write=function(e,t,r){var n=this._writableState,i=!1,a=!n.objectMode&&m(e);return a&&!c.isBuffer(e)&&(e=p(e)),"function"===typeof t&&(r=t,t=null),a?t="buffer":t||(t=n.defaultEncoding),"function"!==typeof r&&(r=y),n.ended?w(this,r):(a||E(this,n,e,r))&&(n.pendingcb++,i=S(this,n,a,e,t,r)),i},_.prototype.cork=function(){var e=this._writableState;e.corked++},_.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,e.writing||e.corked||e.finished||e.bufferProcessing||!e.bufferedRequest||L(this,e))},_.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},Object.defineProperty(_.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),_.prototype._write=function(e,t,r){r(new Error("_write() is not implemented"))},_.prototype._writev=null,_.prototype.end=function(e,t,r){var n=this._writableState;"function"===typeof e?(r=e,e=null,t=null):"function"===typeof t&&(r=t,t=null),null!==e&&void 0!==e&&this.write(e,t),n.corked&&(n.corked=1,this.uncork()),n.ending||n.finished||P(this,n,r)},Object.defineProperty(_.prototype,"destroyed",{get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),_.prototype.destroy=v.destroy,_.prototype._undestroy=v.undestroy,_.prototype._destroy=function(e,t){this.end(),t(e)}}).call(this,e("_process"),"undefined"!==typeof t?t:"undefined"!==typeof self?self:"undefined"!==typeof window?window:{},e("timers").setImmediate)},{"./_stream_duplex":66,"./internal/streams/destroy":72,"./internal/streams/stream":73,_process:64,"core-util-is":4,inherits:8,"process-nextick-args":63,"safe-buffer":78,timers:82,"util-deprecate":83}],71:[function(e,t,r){"use strict";function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var i=e("safe-buffer").Buffer,a=e("util");function o(e,t,r){e.copy(t,r)}t.exports=function(){function e(){n(this,e),this.head=null,this.tail=null,this.length=0}return e.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},e.prototype.unshift=function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length},e.prototype.shift=function(){if(0!==this.length){var e=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}},e.prototype.clear=function(){this.head=this.tail=null,this.length=0},e.prototype.join=function(e){if(0===this.length)return"";var t=this.head,r=""+t.data;while(t=t.next)r+=e+t.data;return r},e.prototype.concat=function(e){if(0===this.length)return i.alloc(0);if(1===this.length)return this.head.data;var t=i.allocUnsafe(e>>>0),r=this.head,n=0;while(r)o(r.data,t,n),n+=r.data.length,r=r.next;return t},e}(),a&&a.inspect&&a.inspect.custom&&(t.exports.prototype[a.inspect.custom]=function(){var e=a.inspect({length:this.length});return this.constructor.name+" "+e})},{"safe-buffer":78,util:2}],72:[function(e,t,r){"use strict";var n=e("process-nextick-args");function i(e,t){var r=this,i=this._readableState&&this._readableState.destroyed,a=this._writableState&&this._writableState.destroyed;return i||a?(t?t(e):!e||this._writableState&&this._writableState.errorEmitted||n.nextTick(o,this,e),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,(function(e){!t&&e?(n.nextTick(o,r,e),r._writableState&&(r._writableState.errorEmitted=!0)):t&&t(e)})),this)}function a(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function o(e,t){e.emit("error",t)}t.exports={destroy:i,undestroy:a}},{"process-nextick-args":63}],73:[function(e,t,r){t.exports=e("events").EventEmitter},{events:5}],74:[function(e,t,r){t.exports=e("./readable").PassThrough},{"./readable":75}],75:[function(e,t,r){r=t.exports=e("./lib/_stream_readable.js"),r.Stream=r,r.Readable=r,r.Writable=e("./lib/_stream_writable.js"),r.Duplex=e("./lib/_stream_duplex.js"),r.Transform=e("./lib/_stream_transform.js"),r.PassThrough=e("./lib/_stream_passthrough.js")},{"./lib/_stream_duplex.js":66,"./lib/_stream_passthrough.js":67,"./lib/_stream_readable.js":68,"./lib/_stream_transform.js":69,"./lib/_stream_writable.js":70}],76:[function(e,t,r){t.exports=e("./readable").Transform},{"./readable":75}],77:[function(e,t,r){t.exports=e("./lib/_stream_writable.js")},{"./lib/_stream_writable.js":70}],78:[function(e,t,r){var n=e("buffer"),i=n.Buffer;function a(e,t){for(var r in e)t[r]=e[r]}function o(e,t,r){return i(e,t,r)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?t.exports=n:(a(n,r),r.Buffer=o),a(i,o),o.from=function(e,t,r){if("number"===typeof e)throw new TypeError("Argument must not be a number");return i(e,t,r)},o.alloc=function(e,t,r){if("number"!==typeof e)throw new TypeError("Argument must be a number");var n=i(e);return void 0!==t?"string"===typeof r?n.fill(t,r):n.fill(t):n.fill(0),n},o.allocUnsafe=function(e){if("number"!==typeof e)throw new TypeError("Argument must be a number");return i(e)},o.allocUnsafeSlow=function(e){if("number"!==typeof e)throw new TypeError("Argument must be a number");return n.SlowBuffer(e)}},{buffer:3}],79:[function(e,t,r){(function(e){"use strict";t.exports="function"===typeof e?e:function(){var e=[].slice.apply(arguments);e.splice(1,0,0),setTimeout.apply(null,e)}}).call(this,e("timers").setImmediate)},{timers:82}],80:[function(e,t,r){t.exports=a;var n=e("events").EventEmitter,i=e("inherits");function a(){n.call(this)}i(a,n),a.Readable=e("readable-stream/readable.js"),a.Writable=e("readable-stream/writable.js"),a.Duplex=e("readable-stream/duplex.js"),a.Transform=e("readable-stream/transform.js"),a.PassThrough=e("readable-stream/passthrough.js"),a.Stream=a,a.prototype.pipe=function(e,t){var r=this;function i(t){e.writable&&!1===e.write(t)&&r.pause&&r.pause()}function a(){r.readable&&r.resume&&r.resume()}r.on("data",i),e.on("drain",a),e._isStdio||t&&!1===t.end||(r.on("end",s),r.on("close",l));var o=!1;function s(){o||(o=!0,e.end())}function l(){o||(o=!0,"function"===typeof e.destroy&&e.destroy())}function u(e){if(f(),0===n.listenerCount(this,"error"))throw e}function f(){r.removeListener("data",i),e.removeListener("drain",a),r.removeListener("end",s),r.removeListener("close",l),r.removeListener("error",u),e.removeListener("error",u),r.removeListener("end",f),r.removeListener("close",f),e.removeListener("close",f)}return r.on("error",u),e.on("error",u),r.on("end",f),r.on("close",f),e.on("close",f),e.emit("pipe",r),e}},{events:5,inherits:8,"readable-stream/duplex.js":65,"readable-stream/passthrough.js":74,"readable-stream/readable.js":75,"readable-stream/transform.js":76,"readable-stream/writable.js":77}],81:[function(e,t,r){"use strict";var n=e("safe-buffer").Buffer,i=n.isEncoding||function(e){switch(e=""+e,e&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function a(e){if(!e)return"utf8";var t;while(1)switch(e){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return e;default:if(t)return;e=(""+e).toLowerCase(),t=!0}}function o(e){var t=a(e);if("string"!==typeof t&&(n.isEncoding===i||!i(e)))throw new Error("Unknown encoding: "+e);return t||e}function s(e){var t;switch(this.encoding=o(e),this.encoding){case"utf16le":this.text=p,this.end=m,t=4;break;case"utf8":this.fillLast=h,t=4;break;case"base64":this.text=g,this.end=v,t=3;break;default:return this.write=y,void(this.end=b)}this.lastNeed=0,this.lastTotal=0,this.lastChar=n.allocUnsafe(t)}function l(e){return e<=127?0:e>>5===6?2:e>>4===14?3:e>>3===30?4:e>>6===2?-1:-2}function u(e,t,r){var n=t.length-1;if(n<r)return 0;var i=l(t[n]);return i>=0?(i>0&&(e.lastNeed=i-1),i):--n<r||-2===i?0:(i=l(t[n]),i>=0?(i>0&&(e.lastNeed=i-2),i):--n<r||-2===i?0:(i=l(t[n]),i>=0?(i>0&&(2===i?i=0:e.lastNeed=i-3),i):0))}function f(e,t,r){if(128!==(192&t[0]))return e.lastNeed=0,"�";if(e.lastNeed>1&&t.length>1){if(128!==(192&t[1]))return e.lastNeed=1,"�";if(e.lastNeed>2&&t.length>2&&128!==(192&t[2]))return e.lastNeed=2,"�"}}function h(e){var t=this.lastTotal-this.lastNeed,r=f(this,e,t);return void 0!==r?r: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 c(e,t){var r=u(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=r;var n=e.length-(r-this.lastNeed);return e.copy(this.lastChar,0,n),e.toString("utf8",t,n)}function d(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+"�":t}function p(e,t){if((e.length-t)%2===0){var r=e.toString("utf16le",t);if(r){var n=r.charCodeAt(r.length-1);if(n>=55296&&n<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],r.slice(0,-1)}return r}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function m(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var r=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,r)}return t}function g(e,t){var r=(e.length-t)%3;return 0===r?e.toString("base64",t):(this.lastNeed=3-r,this.lastTotal=3,1===r?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-r))}function v(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function y(e){return e.toString(this.encoding)}function b(e){return e&&e.length?this.write(e):""}r.StringDecoder=s,s.prototype.write=function(e){if(0===e.length)return"";var t,r;if(this.lastNeed){if(t=this.fillLast(e),void 0===t)return"";r=this.lastNeed,this.lastNeed=0}else r=0;return r<e.length?t?t+this.text(e,r):this.text(e,r):t||""},s.prototype.end=d,s.prototype.text=c,s.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}},{"safe-buffer":78}],82:[function(e,t,r){(function(t,n){var i=e("process/browser.js").nextTick,a=Function.prototype.apply,o=Array.prototype.slice,s={},l=0;function u(e,t){this._id=e,this._clearFn=t}r.setTimeout=function(){return new u(a.call(setTimeout,window,arguments),clearTimeout)},r.setInterval=function(){return new u(a.call(setInterval,window,arguments),clearInterval)},r.clearTimeout=r.clearInterval=function(e){e.close()},u.prototype.unref=u.prototype.ref=function(){},u.prototype.close=function(){this._clearFn.call(window,this._id)},r.enroll=function(e,t){clearTimeout(e._idleTimeoutId),e._idleTimeout=t},r.unenroll=function(e){clearTimeout(e._idleTimeoutId),e._idleTimeout=-1},r._unrefActive=r.active=function(e){clearTimeout(e._idleTimeoutId);var t=e._idleTimeout;t>=0&&(e._idleTimeoutId=setTimeout((function(){e._onTimeout&&e._onTimeout()}),t))},r.setImmediate="function"===typeof t?t:function(e){var t=l++,n=!(arguments.length<2)&&o.call(arguments,1);return s[t]=!0,i((function(){s[t]&&(n?e.apply(null,n):e.call(null),r.clearImmediate(t))})),t},r.clearImmediate="function"===typeof n?n:function(e){delete s[e]}}).call(this,e("timers").setImmediate,e("timers").clearImmediate)},{"process/browser.js":64,timers:82}],83:[function(e,r,n){(function(e){function t(e,t){if(n("noDeprecation"))return e;var r=!1;function i(){if(!r){if(n("throwDeprecation"))throw new Error(t);n("traceDeprecation")?console.trace(t):console.warn(t),r=!0}return e.apply(this,arguments)}return i}function n(t){try{if(!e.localStorage)return!1}catch(n){return!1}var r=e.localStorage[t];return null!=r&&"true"===String(r).toLowerCase()}r.exports=t}).call(this,"undefined"!==typeof t?t:"undefined"!==typeof self?self:"undefined"!==typeof window?window:{})},{}],84:[function(e,t,r){"use strict";var n=function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(r,"__esModule",{value:!0}),r.HandleZip=void 0;var i=n(e("jszip")),a=e("./common/method"),o=function(){function e(e){this.uploadFile=e}return e.prototype.unzipFile=function(e,t){i["default"].loadAsync(this.uploadFile).then((function(t){var r={},n=Object.keys(t.files).length,i=0;t.forEach((function(t,a){var o=a.name,s=o.split("."),l=s[s.length-1].toLowerCase(),u="string";l in{png:1,jpeg:1,jpg:1,gif:1,bmp:1,tif:1,webp:1}?u="base64":"emf"==l&&(u="arraybuffer"),a.async(u).then((function(t){"base64"==u&&(t="data:image/"+l+";base64,"+t),r[a.name]=t,n==i+1&&e(r),i++}))}))}),(function(e){t(e)}))},e.prototype.unzipFileByUrl=function(e,t,r){new i["default"];a.getBinaryContent(e,(function(e,n){if(e)throw e;i["default"].loadAsync(n).then((function(e){var r={},n=Object.keys(e.files).length,i=0;e.forEach((function(e,a){var o=a.name,s=o.split("."),l=s[s.length-1].toLowerCase(),u="string";l in{png:1,jpeg:1,jpg:1,gif:1,bmp:1,tif:1,webp:1}?u="base64":"emf"==l&&(u="arraybuffer"),a.async(u).then((function(e){"base64"==u&&(e="data:image/"+l+";base64,"+e),r[a.name]=e,n==i+1&&t(r),i++}))}))}),(function(e){r(e)}))}))},e.prototype.newZipFile=function(){var e=new i["default"];this.workBook=e},e.prototype.addToZipFile=function(e,t){if(null==this.workBook){var r=new i["default"];this.workBook=r}this.workBook.file(e,t)},e}();r.HandleZip=o},{"./common/method":93,jszip:20}],85:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.LuckyImageBase=r.LuckysheetCalcChain=r.LuckySheetConfigMerge=r.LuckySheetborderInfoCellValueStyle=r.LuckySheetborderInfoCellValue=r.LuckySheetborderInfoCellForImp=r.LuckyConfig=r.LuckyInlineString=r.LuckySheetCellFormat=r.LuckySheetCelldataValue=r.LuckySheetCelldataBase=r.LuckyFileInfo=r.LuckySheetBase=r.LuckyFileBase=void 0;var n=function(){function e(){}return e}();r.LuckyFileBase=n;var i=function(){function e(){}return e}();r.LuckySheetBase=i;var a=function(){function e(){}return e}();r.LuckyFileInfo=a;var o=function(){function e(){}return e}();r.LuckySheetCelldataBase=o;var s=function(){function e(){}return e}();r.LuckySheetCelldataValue=s;var l=function(){function e(){}return e}();r.LuckySheetCellFormat=l;var u=function(){function e(){}return e}();r.LuckyInlineString=u;var f=function(){function e(){}return e}();r.LuckyConfig=f;var h=function(){function e(){}return e}();r.LuckySheetborderInfoCellForImp=h;var c=function(){function e(){}return e}();r.LuckySheetborderInfoCellValue=c;var d=function(){function e(){}return e}();r.LuckySheetborderInfoCellValueStyle=d;var p=function(){function e(){}return e}();r.LuckySheetConfigMerge=p;var m=function(){function e(){}return e}();r.LuckysheetCalcChain=m;var g=function(){function e(){}return e}();r.LuckyImageBase=g},{}],86:[function(e,t,r){"use strict";var n=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])},e(t,r)};return function(t,r){function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(r,"__esModule",{value:!0}),r.LuckySheetCelldata=void 0;var i=e("./ReadXml"),a=e("../common/method"),o=e("../common/constant"),s=e("./LuckyBase"),l=function(e){function t(t,r,n,i,o,s){var l=e.call(this)||this;l.cell=t,l.sheetFile=o,l.styles=r,l.sharedStrings=n,l.readXml=s,l.mergeCells=i;var u=t.attributeList,f=u.r,h=u.s,c=u.t,d=a.getcellrange(f);return l.r=d.row[0],l.c=d.column[0],l.v=l.generateValue(h,c),l}return n(t,e),t.prototype.generateValue=function(e,t){var r=this,n=this.cell.getInnerElements("v"),l=this.cell.getInnerElements("f");null==n&&(n=this.cell.getInnerElements("t"));var u=this.styles["cellXfs"],f=this.styles["cellStyleXfs"],h=(this.styles["cellStyles"],this.styles["fonts"]),c=this.styles["fills"],d=this.styles["borders"],p=this.styles["numfmts"],m=this.styles["clrScheme"],g=this.sharedStrings,v=new s.LuckySheetCelldataValue;if(null!=l){var y=l[0],b=y.attributeList,_=b.t,w=b.ref,E=b.si,k=l[0].value;"shared"==_&&(this._fomulaRef=w,this._formulaType=_,this._formulaSi=E),(null!=w||null!=k&&k.length>0)&&(k=a.escapeCharacter(k),v.f="="+k)}var S,C=null;if(null!=e){var T=parseInt(e),x=u[T],R=x.attributeList.xfId,A=void 0,O=void 0,L=void 0,I=void 0,F=void 0,M=void 0,B=void 0,P=void 0;if(null!=R){var D=f[parseInt(R)],N=(b=D.attributeList,b.applyNumberFormat),z=b.applyFont,U=b.applyFill,j=b.applyBorder,W=b.applyAlignment;if(b.applyProtection,S=b.quotePrefix,"0"!=N&&null!=b.numFmtId&&(A=b.numFmtId),"0"!=z&&null!=b.fontId&&(O=b.fontId),"0"!=U&&null!=b.fillId&&(L=b.fillId),"0"!=j&&null!=b.borderId&&(I=b.borderId),null!=W&&"0"!=W){var X=D.getInnerElements("alignment");if(null!=X){var H=X[0].attributeList;null!=H.horizontal&&(F=H.horizontal),null!=H.vertical&&(M=H.vertical),null!=H.wrapText&&(B=H.wrapText),null!=H.textRotation&&(P=H.textRotation),null!=H.shrinkToFit&&H.shrinkToFit,null!=H.indent&&H.indent}}}var Z=x.attributeList.applyNumberFormat,G=x.attributeList.applyFont,Y=x.attributeList.applyFill,q=x.attributeList.applyBorder,V=x.attributeList.applyAlignment;if(null!=x.attributeList.applyProtection&&x.attributeList.applyProtection,null!=x.attributeList.quotePrefix&&(S=x.attributeList.quotePrefix),"0"!=Z&&null!=x.attributeList.numFmtId&&(A=x.attributeList.numFmtId),"0"!=G&&(O=x.attributeList.fontId),"0"!=Y&&(L=x.attributeList.fillId),"0"!=q&&(I=x.attributeList.borderId),"0"!=V){X=x.getInnerElements("alignment");if(null!=X&&X.length>0){b=X[0].attributeList;null!=b.horizontal&&(F=b.horizontal),null!=b.vertical&&(M=b.vertical),null!=b.wrapText&&(B=b.wrapText),null!=b.textRotation&&(P=b.textRotation),null!=b.shrinkToFit&&b.shrinkToFit,null!=b.indent&&b.indent}}if(void 0!=A){var K=p[parseInt(A)],J=new s.LuckySheetCellFormat;J.fa=a.escapeCharacter(K),J.t=t,v.ct=J}if(void 0!=L){var $=parseInt(L),Q=c[$],ee=this.getBackgroundByFill(Q,m);null!=ee&&(v.bg=ee)}if(void 0!=O){var te=parseInt(O),re=h[te];if(null!=re){var ne=re.getInnerElements("sz"),ie=re.getInnerElements("color"),ae=re.getInnerElements("name"),oe=re.getInnerElements("family"),se=(re.getInnerElements("charset"),re.getInnerElements("b")),le=re.getInnerElements("i"),ue=re.getInnerElements("strike"),fe=re.getInnerElements("u");if(null!=ne&&ne.length>0){var he=ne[0].attributeList.val;null!=he&&(v.fs=parseInt(he))}if(null!=ie&&ie.length>0){var ce=ie[0],de=i.getColor(ce,this.styles,"t");null!=de&&(v.fc=de)}if(null!=oe&&oe.length>0){var pe=oe[0].attributeList.val;null!=pe&&(C=o.fontFamilys[pe])}if(null!=ae&&ae.length>0){pe=ae[0].attributeList.val;null!=pe&&(v.ff=pe)}if(null!=se&&se.length>0){var me=se[0].attributeList.val;v.bl="0"==me?0:1}if(null!=le&&le.length>0){var ge=le[0].attributeList.val;v.it="0"==ge?0:1}if(null!=ue&&ue.length>0){var ve=ue[0].attributeList.val;v.cl="0"==ve?0:1}if(null!=fe&&fe.length>0){var ye=fe[0].attributeList.val;v.un="single"==ye?1:"double"==ye?2:"singleAccounting"==ye?3:"doubleAccounting"==ye?4:0}}}if(void 0!=F&&(v.ht="center"==F||"centerContinuous"==F?0:"left"==F?1:"right"==F?2:"distributed"==F?0:"fill"==F||"general"==F?1:"justify"==F?0:1),void 0!=M&&(v.vt="bottom"==M?2:"center"==M||"distributed"==M||"justify"==M?0:1),v.tb=void 0!=B&&"1"==B?2:1,void 0!=P&&("255"==P?v.tr=3:(v.tr=0,v.rt=parseInt(P))),void 0!=I){var be=parseInt(I),_e=d[be],we=new s.LuckySheetborderInfoCellForImp;we.rangeType="cell";var Ee=new s.LuckySheetborderInfoCellValue;Ee.row_index=this.r,Ee.col_index=this.c;var ke=_e.getInnerElements("left"),Se=_e.getInnerElements("right"),Ce=_e.getInnerElements("top"),Te=_e.getInnerElements("bottom"),xe=_e.getInnerElements("diagonal"),Re=_e.getInnerElements("start"),Ae=_e.getInnerElements("end"),Oe=this.getBorderInfo(ke),Le=this.getBorderInfo(Se),Ie=this.getBorderInfo(Ce),Fe=this.getBorderInfo(Te),Me=(this.getBorderInfo(xe),this.getBorderInfo(Re)),Be=this.getBorderInfo(Ae),Pe=!1;null!=Me&&null!=Me.color&&(Ee.l=Me,Pe=!0),null!=Be&&null!=Be.color&&(Ee.r=Be,Pe=!0),null!=Oe&&null!=Oe.color&&(Ee.l=Oe,Pe=!0),null!=Le&&null!=Le.color&&(Ee.r=Le,Pe=!0),null!=Ie&&null!=Ie.color&&(Ee.t=Ie,Pe=!0),null!=Fe&&null!=Fe.color&&(Ee.b=Fe,Pe=!0),Pe&&(we.value=Ee,this._borderObject=we)}}else v.tb=1;if(null!=n){var De=n[0].value;if(/&#\d+;/.test(De)&&(De=this.htmlDecode(De)),t==o.ST_CellType["SharedString"]){var Ne=parseInt(n[0].value),ze=g[Ne],Ue=ze.getInnerElements("r");if(null==Ue){var je=ze.getInnerElements("t");if(null!=je){var We="";if(je.forEach((function(e){We+=e.value})),We=a.escapeCharacter(We),"Roman"==C&&We.length>0){var Xe=We.split(""),He=null,Ze="",Ge=null,Ye="Times New Roman";null!=v.ff&&(Ye=v.ff);J=v.ct;null==J&&(J=new s.LuckySheetCellFormat),null==J.s&&(J.s=[]);for(var qe=0;qe<Xe.length;qe++){var Ve=Xe[qe],Ke=null,Je=Ye;if(a.isChinese(Ve)?(Ke="c",Je="宋体"):a.isJapanese(Ve)?(Ke="j",Je="Yu Gothic"):a.isKoera(Ve)?(Ke="k",Je="Malgun Gothic"):Ke="e",Ke!=He&&null!=He||qe==Xe.length-1){var $e=new s.LuckyInlineString;if($e.ff=Ge,null!=v.fc&&($e.fc=v.fc),null!=v.fs&&($e.fs=v.fs),null!=v.cl&&($e.cl=v.cl),null!=v.un&&($e.un=v.un),null!=v.bl&&($e.bl=v.bl),null!=v.it&&($e.it=v.it),qe==Xe.length-1){if(Ke!=He){$e.ff=Ge,$e.v=Ze,J.s.push($e);var Qe=new s.LuckyInlineString;Qe.ff=Je,Qe.v=Ve,null!=v.fc&&(Qe.fc=v.fc),null!=v.fs&&(Qe.fs=v.fs),null!=v.cl&&(Qe.cl=v.cl),null!=v.un&&(Qe.un=v.un),null!=v.bl&&(Qe.bl=v.bl),null!=v.it&&(Qe.it=v.it),J.s.push(Qe);break}$e.ff=Je,$e.v=Ze+Ve}else $e.v=Ze;J.s.push($e),Ze=Ve}else Ze+=Ve;He=Ke,Ge=Je}J.t="inlineStr",v.ct=J}else if(We=this.replaceSpecialWrap(We),We.indexOf("\r\n")>-1||We.indexOf("\n")>-1){$e=new s.LuckyInlineString;$e.v=We;J=v.ct;null==J&&(J=new s.LuckySheetCellFormat),null!=v.ff&&($e.ff=v.ff),null!=v.fc&&($e.fc=v.fc),null!=v.fs&&($e.fs=v.fs),null!=v.cl&&($e.cl=v.cl),null!=v.un&&($e.un=v.un),null!=v.bl&&($e.bl=v.bl),null!=v.it&&($e.it=v.it),J.t="inlineStr",J.s=[$e],v.ct=J}else v.v=We,S="1"}}else{var et=[];Ue.forEach((function(e){var t=e.getInnerElements("t"),n=e.getInnerElements("rPr"),o=new s.LuckyInlineString;if(null!=t&&t.length>0){var l=t[0].value;l=r.replaceSpecialWrap(l),l=a.escapeCharacter(l),o.v=l}if(null!=n&&n.length>0){var u=n[0],f=i.getlineStringAttr(u,"sz"),h=i.getlineStringAttr(u,"rFont"),c=(i.getlineStringAttr(u,"family"),i.getlineStringAttr(u,"charset"),i.getlineStringAttr(u,"scheme"),i.getlineStringAttr(u,"b")),d=i.getlineStringAttr(u,"i"),p=i.getlineStringAttr(u,"u"),m=i.getlineStringAttr(u,"strike"),g=i.getlineStringAttr(u,"vertAlign"),y=void 0,b=u.getInnerElements("color");null!=b&&b.length>0&&(y=i.getColor(b[0],r.styles,"t"));var _=void 0;null!=h&&(_=h),null!=_?o.ff=_:null!=v.ff&&(o.ff=v.ff),null!=y?o.fc=y:null!=v.fc&&(o.fc=v.fc),null!=f?o.fs=parseInt(f):null!=v.fs&&(o.fs=v.fs),null!=m?o.cl=parseInt(m):null!=v.cl&&(o.cl=v.cl),null!=p?o.un=parseInt(p):null!=v.un&&(o.un=v.un),null!=c?o.bl=parseInt(c):null!=v.bl&&(o.bl=v.bl),null!=d?o.it=parseInt(d):null!=v.it&&(o.it=v.it),null!=g&&(o.va=parseInt(g))}else null==o.ff&&null!=v.ff&&(o.ff=v.ff),null==o.fc&&null!=v.fc&&(o.fc=v.fc),null==o.fs&&null!=v.fs&&(o.fs=v.fs),null==o.cl&&null!=v.cl&&(o.cl=v.cl),null==o.un&&null!=v.un&&(o.un=v.un),null==o.bl&&null!=v.bl&&(o.bl=v.bl),null==o.it&&null!=v.it&&(o.it=v.it);et.push(o)}));J=v.ct;null==J&&(J=new s.LuckySheetCellFormat),J.t="inlineStr",J.s=et,v.ct=J}}else De=a.escapeCharacter(De),v.v=De}return null!=S&&(v.qp=parseInt(S)),v},t.prototype.replaceSpecialWrap=function(e){return e=e.replace(/_x000D_/g,"").replace(/&#13;&#10;/g,"\r\n").replace(/&#13;/g,"\r").replace(/&#10;/g,"\n"),e},t.prototype.getBackgroundByFill=function(e,t){var r=e.getInnerElements("patternFill");if(null!=r){var n=r[0],a=n.getInnerElements("fgColor"),o=n.getInnerElements("bgColor"),s=void 0,l=void 0;if(null!=a){var u=a[0];s=i.getColor(u,this.styles)}if(null!=o){var f=o[0];l=i.getColor(f,this.styles)}if(null!=s)return s;if(null!=l)return l}else{var h=e.getInnerElements("gradientFill");if(null!=h)return null}},t.prototype.getBorderInfo=function(e){if(null==e)return null;var t=e[0],r=t.attributeList,n=(this.styles["clrScheme"],r.style);if(null==n||"none"==n)return null;var a=t.getInnerElements("color"),l="#000000";if(null!=a){var u=a[0];l=i.getColor(u,this.styles,"b"),null==l&&(l="#000000")}var f=new s.LuckySheetborderInfoCellValueStyle;return f.style=o.borderTypes[n],f.color=l,f},t.prototype.htmlDecode=function(e){return e.replace(/&#(x)?([^&]{1,5});?/g,(function(e,t,r){return String.fromCharCode(parseInt(r,t?16:10))}))},t}(s.LuckySheetCelldataBase);r.LuckySheetCelldata=l},{"../common/constant":91,"../common/method":93,"./LuckyBase":85,"./ReadXml":90}],87:[function(e,t,r){"use strict";var n=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])},e(t,r)};return function(t,r){function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(r,"__esModule",{value:!0}),r.LuckyFile=void 0;var i=e("./LuckySheet"),a=e("../common/constant"),o=e("./ReadXml"),s=e("../common/method"),l=e("./LuckyBase"),u=e("./LuckyImage"),f=function(e){function t(t,r){var n=e.call(this)||this;n.columnWidthSet=[],n.rowHeightSet=[],n.files=t,n.fileName=r,n.readXml=new o.ReadXml(t),n.getSheetNameList(),n.sharedStrings=n.readXml.getElementsByTagName("sst/si",a.sharedStringsFile),n.calcChain=n.readXml.getElementsByTagName("calcChain/c",a.calcChainFile),n.styles={},n.styles["cellXfs"]=n.readXml.getElementsByTagName("cellXfs/xf",a.stylesFile),n.styles["cellStyleXfs"]=n.readXml.getElementsByTagName("cellStyleXfs/xf",a.stylesFile),n.styles["cellStyles"]=n.readXml.getElementsByTagName("cellStyles/cellStyle",a.stylesFile),n.styles["fonts"]=n.readXml.getElementsByTagName("fonts/font",a.stylesFile),n.styles["fills"]=n.readXml.getElementsByTagName("fills/fill",a.stylesFile),n.styles["borders"]=n.readXml.getElementsByTagName("borders/border",a.stylesFile),n.styles["clrScheme"]=n.readXml.getElementsByTagName("a:clrScheme/a:dk1|a:lt1|a:dk2|a:lt2|a:accent1|a:accent2|a:accent3|a:accent4|a:accent5|a:accent6|a:hlink|a:folHlink",a.theme1File),n.styles["indexedColors"]=n.readXml.getElementsByTagName("colors/indexedColors/rgbColor",a.stylesFile),n.styles["mruColors"]=n.readXml.getElementsByTagName("colors/mruColors/color",a.stylesFile),n.imageList=new u.ImageList(t);for(var i=n.readXml.getElementsByTagName("numFmt/numFmt",a.stylesFile),l=JSON.parse(JSON.stringify(a.numFmtDefault)),f=0;f<i.length;f++){var h=i[f].attributeList,c=s.getXmlAttibute(h,"numFmtId","49"),d=s.getXmlAttibute(h,"formatCode","@");c in a.numFmtDefault||(l[c]=d)}return n.styles["numfmts"]=l,n}return n(t,e),t.prototype.getSheetNameList=function(){var e=this.readXml.getElementsByTagName("Relationships/Relationship",a.workbookRels);if(null!=e){for(var t=new RegExp("worksheets/[^/]*?.xml"),r={},n=0;n<e.length;n++){var i=e[n],o=i.attributeList,s=o["Id"],l=o["Target"];t.test(l)&&(l.startsWith("/xl")?r[s]=l.substr(1):r[s]="xl/"+l)}this.sheetNameList=r}},t.prototype.getSheetFileBysheetId=function(e){return this.sheetNameList[e]},t.prototype.getWorkBookInfo=function(){var e=this.readXml.getElementsByTagName("Company",a.appFile),t=this.readXml.getElementsByTagName("AppVersion",a.appFile),r=this.readXml.getElementsByTagName("dc:creator",a.coreFile),n=this.readXml.getElementsByTagName("cp:lastModifiedBy",a.coreFile),i=this.readXml.getElementsByTagName("dcterms:created",a.coreFile),o=this.readXml.getElementsByTagName("dcterms:modified",a.coreFile);this.info=new l.LuckyFileInfo,this.info.name=this.fileName,this.info.creator=r.length>0?r[0].value:"",this.info.lastmodifiedby=n.length>0?n[0].value:"",this.info.createdTime=i.length>0?i[0].value:"",this.info.modifiedTime=o.length>0?o[0].value:"",this.info.company=e.length>0?e[0].value:"",this.info.appversion=t.length>0?t[0].value:""},t.prototype.getSheetsFull=function(e){void 0===e&&(e=!0);var t=this.readXml.getElementsByTagName("sheets/sheet",a.workBookFile),r={};for(var n in t){var o=t[n];r[o.attributeList.name]=o.attributeList["sheetId"]}this.sheets=[];var l=0;for(var n in t){o=t[n];var u=o.attributeList.name,f=o.attributeList["sheetId"],h=o.attributeList["r:id"],c=this.getSheetFileBysheetId(h),d=this.readXml.getElementsByTagName("worksheet/drawing",c),p=void 0,m=void 0;if(null!=d&&d.length>0){var g=d[0].attributeList,v=s.getXmlAttibute(g,"r:id",null);null!=v&&(p=this.getDrawingFile(v,c),m=this.getDrawingRelsFile(p))}if(null!=c){var y=new i.LuckySheet(u,f,l,e,{sheetFile:c,readXml:this.readXml,sheetList:r,styles:this.styles,sharedStrings:this.sharedStrings,calcChain:this.calcChain,imageList:this.imageList,drawingFile:p,drawingRelsFile:m});this.columnWidthSet=[],this.rowHeightSet=[],this.imagePositionCaculation(y),this.sheets.push(y),l++}}},t.prototype.extendArray=function(e,t,r,n,i){if(!(e<t.length)){var a=t.length,o=e,s=0;a>0&&(s=t[a-1]);for(var l=a;l<=o;l++){var u=r,f=l.toString();f in n?u=0:f in i&&(u=i[f]),s+=Math.round(u+1),t.push(s)}}},t.prototype.imagePositionCaculation=function(e){var t=e.images,r=e.defaultColWidth,n=e.defaultRowHeight,i={};e.config.colhidden&&(i=e.config.colhidden);var a={};e.config.columnlen&&(a=e.config.columnlen);var o={};e.config.rowhidden&&(o=e.config.rowhidden);var s={};for(var l in e.config.rowlen&&(s=e.config.rowlen),t){var u=t[l],f=u.fromCol,h=u.fromColOff,c=u.fromRow,d=u.fromRowOff,p=u.toCol,m=u.toColOff,g=u.toRow,v=u.toRowOff,y=0,b=0,_=0,w=0;f>=this.columnWidthSet.length&&this.extendArray(f,this.columnWidthSet,r,i,a),y=0==f?0:this.columnWidthSet[f-1],y+=h,c>=this.rowHeightSet.length&&this.extendArray(c,this.rowHeightSet,n,o,s),b=0==c?0:this.rowHeightSet[c-1],b+=d,p>=this.columnWidthSet.length&&this.extendArray(p,this.columnWidthSet,r,i,a),_=0==p?0:this.columnWidthSet[p-1],_=_+m-y,g>=this.rowHeightSet.length&&this.extendArray(g,this.rowHeightSet,n,o,s),w=0==g?0:this.rowHeightSet[g-1],w=w+v-b,console.log(r,i,a),console.log(f,this.columnWidthSet[f],h),console.log(p,this.columnWidthSet[p],m,JSON.stringify(this.columnWidthSet)),u.originWidth=_,u.originHeight=w,u.crop.height=w,u.crop.width=_,u["default"].height=w,u["default"].left=y,u["default"].top=b,u["default"].width=_}console.log(this.columnWidthSet,this.rowHeightSet)},t.prototype.getDrawingFile=function(e,t){var r="xl/worksheets/_rels/",n=t.split("/"),i=n[n.length-1],a=r+i+".rels",o=this.readXml.getElementsByTagName("Relationships/Relationship",a);if(o.length>0)for(var l=0;l<o.length;l++){var u=o[l],f=u.attributeList,h=s.getXmlAttibute(f,"Id",null);if(h==e){var c=s.getXmlAttibute(f,"Target",null);if(null!=c)return c.replace(/\.\.\//g,"")}}return null},t.prototype.getDrawingRelsFile=function(e){var t="xl/drawings/_rels/",r=e.split("/"),n=r[r.length-1],i=t+n+".rels";return i},t.prototype.getSheetsWithoutCell=function(){this.getSheetsFull(!1)},t.prototype.Parse=function(){return this.getWorkBookInfo(),this.getSheetsFull(),this.toJsonString(this)},t.prototype.toJsonString=function(e){var t=new l.LuckyFileBase;return t.info=e.info,t.sheets=[],e.sheets.forEach((function(e){var r=new l.LuckySheetBase;null!=e.name&&(r.name=e.name),null!=e.color&&(r.color=e.color),null!=e.config&&(r.config=e.config),null!=e.index&&(r.index=e.index),null!=e.status&&(r.status=e.status),null!=e.order&&(r.order=e.order),null!=e.row&&(r.row=e.row),null!=e.column&&(r.column=e.column),null!=e.luckysheet_select_save&&(r.luckysheet_select_save=e.luckysheet_select_save),null!=e.scrollLeft&&(r.scrollLeft=e.scrollLeft),null!=e.scrollTop&&(r.scrollTop=e.scrollTop),null!=e.zoomRatio&&(r.zoomRatio=e.zoomRatio),null!=e.showGridLines&&(r.showGridLines=e.showGridLines),null!=e.defaultColWidth&&(r.defaultColWidth=e.defaultColWidth),null!=e.defaultRowHeight&&(r.defaultRowHeight=e.defaultRowHeight),null!=e.celldata&&(r.celldata=[],e.celldata.forEach((function(e){var t=new l.LuckySheetCelldataBase;t.r=e.r,t.c=e.c,t.v=e.v,r.celldata.push(t)}))),null!=e.chart&&(r.chart=e.chart),null!=e.isPivotTable&&(r.isPivotTable=e.isPivotTable),null!=e.pivotTable&&(r.pivotTable=e.pivotTable),null!=e.luckysheet_conditionformat_save&&(r.luckysheet_conditionformat_save=e.luckysheet_conditionformat_save),null!=e.freezen&&(r.freezen=e.freezen),null!=e.calcChain&&(r.calcChain=e.calcChain),null!=e.images&&(r.images=e.images),t.sheets.push(r)})),JSON.stringify(t)},t}(l.LuckyFileBase);r.LuckyFile=f},{"../common/constant":91,"../common/method":93,"./LuckyBase":85,"./LuckyImage":88,"./LuckySheet":89,"./ReadXml":90}],88:[function(e,t,r){"use strict";var n=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])},e(t,r)};return function(t,r){function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(r,"__esModule",{value:!0}),r.ImageList=void 0;var i=e("./LuckyBase"),a=e("../common/emf"),o=function(){function e(e){if(null!=e)for(var t in this.images={},e)if(t.indexOf("xl/media/")>-1){var r=t.split("."),n=r[r.length-1].toLowerCase();if(n in{png:1,jpeg:1,jpg:1,gif:1,bmp:1,tif:1,webp:1,emf:1})if("emf"==n){var i,o,s,l=0,u=1,f=new a.ToContext2D(l,u);for(var h in a.FromEMF.K=[],i=a.FromEMF.C,o=a.FromEMF.K,s=4,i)o[i[h]]=h.slice(s);a.FromEMF.Parse(e[t],f),this.images[t]=f.canvas.toDataURL("image/png")}else this.images[t]=e[t]}}return e.prototype.getImageByName=function(e){if(e in this.images){var t=this.images[e];return new s(e,t)}return null},e}();r.ImageList=o;var s=function(e){function t(t,r){var n=e.call(this)||this;return n.src=r,n}return n(t,e),t.prototype.setDefault=function(){},t}(i.LuckyImageBase)},{"../common/emf":92,"./LuckyBase":85}],89:[function(e,t,r){"use strict";var n=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])},e(t,r)};return function(t,r){function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(r,"__esModule",{value:!0}),r.LuckySheet=void 0;var i=e("./LuckyCell"),a=e("../common/method"),o=e("./ReadXml"),s=e("./LuckyBase"),l=function(e){function t(t,r,n,i,l){void 0===i&&(i=!1);var u=e.call(this)||this;u.isInitialCell=i,u.readXml=l.readXml,u.sheetFile=l.sheetFile,u.styles=l.styles,u.sharedStrings=l.sharedStrings,u.calcChainEles=l.calcChain,u.sheetList=l.sheetList,u.imageList=l.imageList,u.name=t,u.index=r,u.order=n.toString(),u.config=new s.LuckyConfig,u.celldata=[],u.mergeCells=u.readXml.getElementsByTagName("mergeCells/mergeCell",u.sheetFile);u.styles["clrScheme"];var f=u.readXml.getElementsByTagName("sheetViews/sheetView",u.sheetFile),h="1",c="0",d="100",p="A1";if(f.length>0){var m=f[0].attributeList;h=a.getXmlAttibute(m,"showGridLines","1"),c=a.getXmlAttibute(m,"tabSelected","0"),d=a.getXmlAttibute(m,"zoomScale","100");var g=f[0].getInnerElements("selection");if(null!=g&&g.length>0){p=a.getXmlAttibute(g[0].attributeList,"activeCell","A1");var v=a.getcellrange(p,u.sheetList,r);u.luckysheet_select_save=[],u.luckysheet_select_save.push(v)}}u.showGridLines=h,u.status=c,u.zoomRatio=parseInt(d)/100;var y=u.readXml.getElementsByTagName("sheetPr/tabColor",u.sheetFile);if(null!=y&&y.length>0){var b=y[0],_=(m=b.attributeList,o.getColor(b,u.styles,"b"));u.color=_}var w,E,k=u.readXml.getElementsByTagName("sheetFormatPr",u.sheetFile);if(k.length>0){m=k[0].attributeList;w=a.getXmlAttibute(m,"defaultColWidth","9.21"),E=a.getXmlAttibute(m,"defaultRowHeight","19")}u.defaultColWidth=a.getColumnWidthPixel(parseFloat(w)),u.defaultRowHeight=a.getRowHeightPixel(parseFloat(E)),u.generateConfigColumnLenAndHidden();var S=u.generateConfigRowLenAndHiddenAddCell();if(null!=u.formulaRefList)for(var C in u.formulaRefList){var T=u.formulaRefList[C],x=T["mainRef"],R=x.cellValue,A=x.fv,O=R.r,L=R.c;for(var I in T)if("mainRef"!=I){var F=T[I],M=F.cellValue;if(null!=M){var B=M.r,P=M.c,D=A,N=B-O,z=P-L;N>0?D="="+a.fromulaRef.functionCopy(D,"down",N):N<0&&(D="="+a.fromulaRef.functionCopy(D,"up",Math.abs(N))),z>0?D="="+a.fromulaRef.functionCopy(D,"right",z):z<0&&(D="="+a.fromulaRef.functionCopy(D,"left",Math.abs(z))),M.v.f=D}}}null==u.calcChain&&(u.calcChain=[]);var U={};for(P=0;P<u.calcChainEles.length;P++){var j=u.calcChainEles[P];m=j.attributeList;if(m.i==r){B=m.r;var W=m.i,X=(m.l,m.s,m.a,m.t,v=a.getcellrange(B),new s.LuckysheetCalcChain);X.r=v.row[0],X.c=v.column[0],X.index=u.index,u.calcChain.push(X),U["r"+B+"c"+P]=null}}for(var C in S.formulaList)if(!(C in U)){var H=S.formulaList[C];X=new s.LuckysheetCalcChain;X.r=H.r,X.c=H.c,X.index=u.index,u.calcChain.push(X)}if(null!=u.mergeCells)for(W=0;W<u.mergeCells.length;W++){var Z=u.mergeCells[W],G=(m=Z.attributeList,m.ref);if(null!=G){v=a.getcellrange(G,u.sheetList,r);var Y=new s.LuckySheetConfigMerge;Y.r=v.row[0],Y.c=v.column[0],Y.rs=v.row[1]-v.row[0]+1,Y.cs=v.column[1]-v.column[0]+1,null==u.config.merge&&(u.config.merge={}),u.config.merge[v.row[0]+"_"+v.column[0]]=Y}}var q=l.drawingFile,V=l.drawingRelsFile;if(null!=q&&null!=V){var K=u.readXml.getElementsByTagName("xdr:twoCellAnchor",q);if(null!=K&&K.length>0)for(W=0;W<K.length;W++){var J=K[W],$=a.getXmlAttibute(J.attributeList,"editAs","twoCell"),Q=J.getInnerElements("xdr:from"),ee=J.getInnerElements("xdr:to"),te=J.getInnerElements("a:blip");if(null!=Q&&null!=te&&Q.length>0&&te.length>0){var re=Q[0],ne=ee[0],ie=te[0],ae=a.getXmlAttibute(ie.attributeList,"r:embed",null),oe=u.getBase64ByRid(ae,V),se=0,le=0,ue=0,fe=0;oe.fromCol=u.getXdrValue(re.getInnerElements("xdr:col")),oe.fromColOff=a.getPxByEMUs(u.getXdrValue(re.getInnerElements("xdr:colOff"))),oe.fromRow=u.getXdrValue(re.getInnerElements("xdr:row")),oe.fromRowOff=a.getPxByEMUs(u.getXdrValue(re.getInnerElements("xdr:rowOff"))),oe.toCol=u.getXdrValue(ne.getInnerElements("xdr:col")),oe.toColOff=a.getPxByEMUs(u.getXdrValue(ne.getInnerElements("xdr:colOff"))),oe.toRow=u.getXdrValue(ne.getInnerElements("xdr:row")),oe.toRowOff=a.getPxByEMUs(u.getXdrValue(ne.getInnerElements("xdr:rowOff"))),oe.originWidth=ue,oe.originHeight=fe,oe.type="absolute"==$?"3":"oneCell"==$?"2":"1",oe.isFixedPos=!1,oe.fixedLeft=0,oe.fixedTop=0;var he={color:"#000",radius:0,style:"solid",width:0};oe.border=he;var ce={height:fe,offsetLeft:0,offsetTop:0,width:ue};oe.crop=ce;var de={height:fe,left:se,top:le,width:ue};oe["default"]=de,null==u.images&&(u.images={}),u.images[a.generateRandomIndex("image")]=oe}}}return u}return n(t,e),t.prototype.getXdrValue=function(e){return null==e||0==e.length?null:parseInt(e[0].value)},t.prototype.getBase64ByRid=function(e,t){var r=this.readXml.getElementsByTagName("Relationships/Relationship",t);if(null!=r&&r.length>0)for(var n=0;n<r.length;n++){var i=r[n],o=i.attributeList,s=a.getXmlAttibute(o,"Id",null),l=a.getXmlAttibute(o,"Target",null);if(s==e){l=l.replace(/\.\.\//g,""),l="xl/"+l;var u=this.imageList.getImageByName(l);return u}}return null},t.prototype.generateConfigColumnLenAndHidden=function(){for(var e=this.readXml.getElementsByTagName("cols/col",this.sheetFile),t=0;t<e.length;t++){var r=e[t],n=r.attributeList,i=a.getXmlAttibute(n,"min",null),o=a.getXmlAttibute(n,"max",null),s=a.getXmlAttibute(n,"width",null),l=a.getXmlAttibute(n,"hidden",null),u=a.getXmlAttibute(n,"customWidth",null);if(null!=i&&null!=o)for(var f=parseInt(i)-1,h=parseInt(o)-1,c=parseFloat(s),d=f;d<=h;d++)null!=s&&(null==this.config.columnlen&&(this.config.columnlen={}),this.config.columnlen[d]=a.getColumnWidthPixel(c)),"1"==l&&(null==this.config.colhidden&&(this.config.colhidden={}),this.config.colhidden[d]=0,this.config.columnlen&&delete this.config.columnlen[d]),null!=u&&(null==this.config.customWidth&&(this.config.customWidth={}),this.config.customWidth[d]=1)}},t.prototype.generateConfigRowLenAndHiddenAddCell=function(){var e=this.readXml.getElementsByTagName("sheetData/row",this.sheetFile),t={},r={};t.formulaList=r;for(var n=0;n<e.length;n++){var o=e[n],s=o.attributeList,l=a.getXmlAttibute(s,"r",null),u=a.getXmlAttibute(s,"ht",null),f=a.getXmlAttibute(s,"hidden",null),h=a.getXmlAttibute(s,"customHeight",null);if(null!=l){var c=parseInt(l)-1;if(null!=u){var d=parseFloat(u);null==this.config.rowlen&&(this.config.rowlen={}),this.config.rowlen[c]=a.getRowHeightPixel(d)}if("1"==f&&(null==this.config.rowhidden&&(this.config.rowhidden={}),this.config.rowhidden[c]=0,this.config.rowlen&&delete this.config.rowlen[c]),null!=h&&(null==this.config.customHeight&&(this.config.customHeight={}),this.config.customHeight[c]=1),this.isInitialCell){var p=o.getInnerElements("c");for(var m in p){var g=p[m],v=new i.LuckySheetCelldata(g,this.styles,this.sharedStrings,this.mergeCells,this.sheetFile,this.readXml);if(null!=v._borderObject&&(null==this.config.borderInfo&&(this.config.borderInfo=[]),this.config.borderInfo.push(v._borderObject),delete v._borderObject),"shared"==v._formulaType){null==this.formulaRefList&&(this.formulaRefList={}),null==this.formulaRefList[v._formulaSi]&&(this.formulaRefList[v._formulaSi]={});var y=void 0;null!=v.v&&(y=v.v.f);var b={t:v._formulaType,ref:v._fomulaRef,si:v._formulaSi,fv:y,cellValue:v};null!=v._fomulaRef?this.formulaRefList[v._formulaSi]["mainRef"]=b:this.formulaRefList[v._formulaSi][v.r+"_"+v.c]=b}if(null!=v.v&&null!=v.v.f){var _={r:v.r,c:v.c};t.formulaList["r"+v.r+"c"+v.c]=_}this.celldata.push(v)}}}}return t},t}(s.LuckySheetBase);r.LuckySheet=l},{"../common/method":93,"./LuckyBase":85,"./LuckyCell":86,"./ReadXml":90}],90:[function(e,t,r){"use strict";var n=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])},e(t,r)};return function(t,r){function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(r,"__esModule",{value:!0}),r.getlineStringAttr=r.getColor=r.Element=r.ReadXml=void 0;var i=e("../common/constant"),a=e("../common/method"),o=function(){function e(){}return e.prototype.getElementsByOneTag=function(e,t){var r;if(e.indexOf("|")>-1){for(var n=e.split("|"),i="",a=0;a<n.length;a++){var o=n[a];i+="|<"+o+" [^>]+?[^/]>[\\s\\S]*?</"+o+">|<"+o+" [^>]+?/>|<"+o+">[\\s\\S]*?</"+o+">|<"+o+"/>"}i=i.substr(1,i.length),r=new RegExp(i,"g")}else r=new RegExp("<"+e+" [^>]+?[^/]>[\\s\\S]*?</"+e+">|<"+e+" [^>]+?/>|<"+e+">[\\s\\S]*?</"+e+">|<"+e+"/>","g");var s=t.match(r);return null==s?[]:s},e}(),s=function(e){function t(t){var r=e.call(this)||this;return r.originFile=t,r}return n(t,e),t.prototype.getElementsByTagName=function(e,t){var r,n=this.getFileByName(t),i=e.split("/");for(var a in i){var o=i[a];if(void 0==r)r=this.getElementsByOneTag(o,n);else if(r instanceof Array){var s=[];for(var u in r){var f=r[u];s=s.concat(this.getElementsByOneTag(o,f))}r=s}else r=this.getElementsByOneTag(o,r)}for(var h=[],c=0;c<r.length;c++){var d=new l(r[c]);h.push(d)}return h},t.prototype.getFileByName=function(e){for(var t in this.originFile)if(t.indexOf(e)>-1)return this.originFile[t];return""},t}(o);r.ReadXml=s;var l=function(e){function t(t){var r=e.call(this)||this;r.elementString=t,r.setValue();var n=new RegExp('[a-zA-Z0-9_:]*?=".*?"',"g"),i=r.container.match(n);if(r.attributeList={},null!=i)for(var a in i){var o=i[a];if(0!=o.length){var s=o.substr(0,o.indexOf("=")),l=o.substr(o.indexOf("=")+1);null!=s&&null!=l&&0!=s.length&&0!=l.length&&(r.attributeList[s]=l.substr(1,l.length-2))}}return r}return n(t,e),t.prototype.get=function(e){return this.attributeList[e]},t.prototype.getInnerElements=function(e){for(var r=this.getElementsByOneTag(e,this.elementString),n=[],i=0;i<r.length;i++){var a=new t(r[i]);n.push(a)}return 0==n.length?null:n},t.prototype.setValue=function(){var e=this.elementString;if("/>"==e.substr(e.length-2,2))this.value="",this.container=e;else{var t=this.getFirstTag(),r=new RegExp("(<"+t+" [^>]+?[^/]>)([\\s\\S]*?)</"+t+">|(<"+t+">)([\\s\\S]*?)</"+t+">","g"),n=r.exec(e);null!=n&&(null!=n[1]?(this.container=n[1],this.value=n[2]):(this.container=n[3],this.value=n[4]))}},t.prototype.getFirstTag=function(){var e=this.elementString,t=e.substr(0,e.indexOf(" "));return(""==t||t.indexOf(">")>-1)&&(t=e.substr(0,e.indexOf(">"))),t=t.substr(1,t.length),t},t}(o);function u(e,t){var r={};if(null==e||0==e.length)return t;for(var n in t){var i=t[n],a=parseInt(n),o=e[a];if(null==o)r[n]=i;else{var s=o.attributeList.rgb;r[n]=s}}return r}function f(e,t,r){void 0===r&&(r="g");var n,o=e.attributeList,s=t["clrScheme"],l=t["indexedColors"],f=(t["mruColors"],u(l,i.indexedColors)),h=o.indexed,c=o.rgb,d=o.theme,p=o.tint;if(null!=h){var m=parseInt(h);n=f[m],null!=n&&(n=n.substring(n.length-6,n.length),n="#"+n)}else if(null!=c)c=c.substring(c.length-6,c.length),n="#"+c;else if(null!=d){var g=parseInt(d);0==g?g=1:1==g?g=0:2==g?g=3:3==g&&(g=2);var v=s[g];if(null!=v){var y=v.getInnerElements("a:sysClr|a:srgbClr");if(null!=y){var b=y[0],_=b.attributeList;b.container.indexOf("sysClr")>-1?null!=_.lastClr?n="#"+_.lastClr:null!=_.val&&(n="#"+_.val):b.container.indexOf("srgbClr")>-1&&(n="#"+_.val)}}}if(null!=p){var w=parseFloat(p);null!=n&&(n=a.LightenDarkenColor(n,w))}return n}function h(e,t){var r,n=e.getInnerElements(t);if(null!=n&&n.length>0)if("b"==t||"i"==t||"strike"==t)r="1";else if("u"==t){var i=n[0].attributeList.val;r="double"==i?"2":"singleAccounting"==i?"3":"doubleAccounting"==i?"4":"1"}else if("vertAlign"==t){i=n[0].attributeList.val;"subscript"==i?r="1":"superscript"==i&&(r="2")}else r=n[0].attributeList.val;return r}r.Element=l,r.getColor=f,r.getlineStringAttr=h},{"../common/constant":91,"../common/method":93}],91:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.fontFamilys=r.borderTypes=r.OEM_CHARSET=r.indexedColors=r.numFmtDefault=r.BuiltInCellStyles=r.ST_CellType=r.workbookRels=r.theme1File=r.worksheetFilePath=r.sharedStringsFile=r.stylesFile=r.calcChainFile=r.workBookFile=r.contentTypesFile=r.appFile=r.coreFile=r.columeHeader_word_index=r.columeHeader_word=void 0,r.columeHeader_word=["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"],r.columeHeader_word_index={A:0,B:1,C:2,D:3,E:4,F:5,G:6,H:7,I:8,J:9,K:10,L:11,M:12,N:13,O:14,P:15,Q:16,R:17,S:18,T:19,U:20,V:21,W:22,X:23,Y:24,Z:25},r.coreFile="docProps/core.xml",r.appFile="docProps/app.xml",r.contentTypesFile="[Content_Types].xml",r.workBookFile="xl/workbook.xml",r.calcChainFile="xl/calcChain.xml",r.stylesFile="xl/styles.xml",r.sharedStringsFile="xl/sharedStrings.xml",r.worksheetFilePath="xl/worksheets/",r.theme1File="xl/theme/theme1.xml",r.workbookRels="xl/_rels/workbook.xml.rels",r.ST_CellType={Boolean:"b",Date:"d",Error:"e",InlineString:"inlineStr",Number:"n",SharedString:"s",String:"str"},r.BuiltInCellStyles={0:"Normal"},r.numFmtDefault={0:"General",1:"0",2:"0.00",3:"#,##0",4:"#,##0.00",9:"0%",10:"0.00%",11:"0.00E+00",12:"# ?/?",13:"# ??/??",14:"m/d/yy",15:"d-mmm-yy",16:"d-mmm",17:"mmm-yy",18:"h:mm AM/PM",19:"h:mm:ss AM/PM",20:"h:mm",21:"h:mm:ss",22:"m/d/yy h:mm",37:"#,##0 ;(#,##0)",38:"#,##0 ;[Red](#,##0)",39:"#,##0.00;(#,##0.00)",40:"#,##0.00;[Red](#,##0.00)",45:"mm:ss",46:"[h]:mm:ss",47:"mmss.0",48:"##0.0E+0",49:"@"},r.indexedColors={0:"00000000",1:"00FFFFFF",2:"00FF0000",3:"0000FF00",4:"000000FF",5:"00FFFF00",6:"00FF00FF",7:"0000FFFF",8:"00000000",9:"00FFFFFF",10:"00FF0000",11:"0000FF00",12:"000000FF",13:"00FFFF00",14:"00FF00FF",15:"0000FFFF",16:"00800000",17:"00008000",18:"00000080",19:"00808000",20:"00800080",21:"00008080",22:"00C0C0C0",23:"00808080",24:"009999FF",25:"00993366",26:"00FFFFCC",27:"00CCFFFF",28:"00660066",29:"00FF8080",30:"000066CC",31:"00CCCCFF",32:"00000080",33:"00FF00FF",34:"00FFFF00",35:"0000FFFF",36:"00800080",37:"00800000",38:"00008080",39:"000000FF",40:"0000CCFF",41:"00CCFFFF",42:"00CCFFCC",43:"00FFFF99",44:"0099CCFF",45:"00FF99CC",46:"00CC99FF",47:"00FFCC99",48:"003366FF",49:"0033CCCC",50:"0099CC00",51:"00FFCC00",52:"00FF9900",53:"00FF6600",54:"00666699",55:"00969696",56:"00003366",57:"00339966",58:"00003300",59:"00333300",60:"00993300",61:"00993366",62:"00333399",63:"00333333",64:null,65:null},r.OEM_CHARSET={0:"ANSI_CHARSET",1:"DEFAULT_CHARSET",2:"SYMBOL_CHARSET",77:"MAC_CHARSET",128:"SHIFTJIS_CHARSET",129:"HANGUL_CHARSET",130:"JOHAB_CHARSET",134:"GB2312_CHARSET",136:"CHINESEBIG5_CHARSET",161:"GREEK_CHARSET",162:"TURKISH_CHARSET",163:"VIETNAMESE_CHARSET",177:"HEBREW_CHARSET",178:"ARABIC_CHARSET",186:"BALTIC_CHARSET",204:"RUSSIAN_CHARSET",222:"THAI_CHARSET",238:"EASTEUROPE_CHARSET",255:"OEM_CHARSET"},r.borderTypes={none:0,thin:1,hair:2,dotted:3,dashed:4,dashDot:5,dashDotDot:6,double:7,medium:8,mediumDashed:9,mediumDashDot:10,mediumDashDotDot:11,slantDashDot:12,thick:13},r.fontFamilys={0:"defualt",1:"Roman",2:"Swiss",3:"Modern",4:"Script",5:"Decorative"}},{}],92:[function(e,t,r){"use strict";function n(e){return""+parseFloat(e.toFixed(2))}Object.defineProperty(r,"__esModule",{value:!0}),r.ToContext2D=r.FromEMF=r.UDOC=void 0,r.UDOC={},r.UDOC.G={concat:function(e,t){for(var r=0;r<t.cmds.length;r++)e.cmds.push(t.cmds[r]);for(r=0;r<t.crds.length;r++)e.crds.push(t.crds[r])},getBB:function(e){for(var t=1e99,r=1e99,n=-t,i=-r,a=0;a<e.length;a+=2){var o=e[a],s=e[a+1];o<t?t=o:o>n&&(n=o),s<r?r=s:s>i&&(i=s)}return[t,r,n,i]},rectToPath:function(e){return{cmds:["M","L","L","L","Z"],crds:[e[0],e[1],e[2],e[1],e[2],e[3],e[0],e[3]]}},insideBox:function(e,t){return t[0]<=e[0]&&t[1]<=e[1]&&e[2]<=t[2]&&e[3]<=t[3]},isBox:function(e,t){var r=function(e,t){for(var r=0;r<8;r+=2){for(var n=!0,i=0;i<8;i++)if(Math.abs(t[i]-e[i+r&7])>=2){n=!1;break}if(n)return!0}return!1};if(e.cmds.length>10)return!1;var n=e.cmds.join(""),i=e.crds,a=!1;if("MLLLZ"==n&&8==i.length||"MLLLLZ"==n&&10==i.length){10==i.length&&(i=i.slice(0,8));var o=t[0],s=t[1],l=t[2],u=t[3];a||(a=r(i,[o,s,l,s,l,u,o,u])),a||(a=r(i,[o,u,l,u,l,s,o,s]))}return a},boxArea:function(e){var t=e[2]-e[0],r=e[3]-e[1];return t*r},newPath:function(e){e.pth={cmds:[],crds:[]}},moveTo:function(e,t,n){var i=r.UDOC.M.multPoint(e.ctm,[t,n]);e.pth.cmds.push("M"),e.pth.crds.push(i[0],i[1]),e.cpos=i},lineTo:function(e,t,n){var i=r.UDOC.M.multPoint(e.ctm,[t,n]);e.cpos[0]==i[0]&&e.cpos[1]==i[1]||(e.pth.cmds.push("L"),e.pth.crds.push(i[0],i[1]),e.cpos=i)},curveTo:function(e,t,n,i,a,o,s){var l;l=r.UDOC.M.multPoint(e.ctm,[t,n]),t=l[0],n=l[1],l=r.UDOC.M.multPoint(e.ctm,[i,a]),i=l[0],a=l[1],l=r.UDOC.M.multPoint(e.ctm,[o,s]),o=l[0],s=l[1],e.cpos=l,e.pth.cmds.push("C"),e.pth.crds.push(t,n,i,a,o,s)},closePath:function(e){e.pth.cmds.push("Z")},arc:function(e,t,n,i,a,o,s){if(s)while(o>a)o-=2*Math.PI;else while(o<a)o+=2*Math.PI;var l=(o-a)/4,u=Math.cos(l/2),f=-Math.sin(l/2),h=(4-u)/3,c=0==f?f:(1-u)*(3-u)/(3*f),d=h,p=-c,m=u,g=-f,v=[h,c],y=[d,p],b=[m,g],_={cmds:[0==e.pth.cmds.length?"M":"L","C","C","C","C"],crds:[u,f,h,c,d,p,m,g]},w=[1,0,0,1,0,0];r.UDOC.M.rotate(w,-l);for(var E=0;E<3;E++)v=r.UDOC.M.multPoint(w,v),y=r.UDOC.M.multPoint(w,y),b=r.UDOC.M.multPoint(w,b),_.crds.push(v[0],v[1],y[0],y[1],b[0],b[1]);var k=[i,0,0,i,t,n];r.UDOC.M.rotate(w,l/2-a),r.UDOC.M.concat(w,k),r.UDOC.M.multArray(w,_.crds),r.UDOC.M.multArray(e.ctm,_.crds),r.UDOC.G.concat(e.pth,_);n=_.crds.pop();t=_.crds.pop(),e.cpos=[t,n]},toPoly:function(e){if("M"!=e.cmds[0]||"Z"!=e.cmds[e.cmds.length-1])return null;for(var t=1;t<e.cmds.length-1;t++)if("L"!=e.cmds[t])return null;var n=[],i=e.crds.length;e.crds[0]==e.crds[i-2]&&e.crds[1]==e.crds[i-1]&&(i-=2);for(t=0;t<i;t+=2)n.push([e.crds[t],e.crds[t+1]]);return r.UDOC.G.polyArea(e.crds)<0&&n.reverse(),n},fromPoly:function(e){for(var t={cmds:[],crds:[]},r=0;r<e.length;r++)t.crds.push(e[r][0],e[r][1]),t.cmds.push(0==r?"M":"L");return t.cmds.push("Z"),t},polyArea:function(e){if(e.length<6)return 0;for(var t=e.length-2,r=(e[0]-e[t])*(e[t+1]+e[1]),n=0;n<t;n+=2)r+=(e[n+2]-e[n])*(e[n+1]+e[n+3]);return.5*-r},polyClip:function(e,t){var r,n,i=function(e){return(l[0]-r[0])*(e[1]-r[1])>(l[1]-r[1])*(e[0]-r[0])},a=function(){var e=[r[0]-l[0],r[1]-l[1]],t=[n[0]-h[0],n[1]-h[1]],i=r[0]*l[1]-r[1]*l[0],a=n[0]*h[1]-n[1]*h[0],o=1/(e[0]*t[1]-e[1]*t[0]);return[(i*t[0]-a*e[0])*o,(i*t[1]-a*e[1])*o]},o=e;for(var s in r=t[t.length-1],t){var l=t[s],u=o;for(var f in o=[],n=u[u.length-1],u){var h=u[f];i(h)?(i(n)||o.push(a()),o.push(h)):i(n)&&o.push(a()),n=h}r=l}return o}},r.UDOC.M={getScale:function(e){return Math.sqrt(Math.abs(e[0]*e[3]-e[1]*e[2]))},translate:function(e,t,n){r.UDOC.M.concat(e,[1,0,0,1,t,n])},rotate:function(e,t){r.UDOC.M.concat(e,[Math.cos(t),-Math.sin(t),Math.sin(t),Math.cos(t),0,0])},scale:function(e,t,n){r.UDOC.M.concat(e,[t,0,0,n,0,0])},concat:function(e,t){var r=e[0],n=e[1],i=e[2],a=e[3],o=e[4],s=e[5];e[0]=r*t[0]+n*t[2],e[1]=r*t[1]+n*t[3],e[2]=i*t[0]+a*t[2],e[3]=i*t[1]+a*t[3],e[4]=o*t[0]+s*t[2]+t[4],e[5]=o*t[1]+s*t[3]+t[5]},invert:function(e){var t=e[0],r=e[1],n=e[2],i=e[3],a=e[4],o=e[5],s=t*i-r*n;e[0]=i/s,e[1]=-r/s,e[2]=-n/s,e[3]=t/s,e[4]=(n*o-i*a)/s,e[5]=(r*a-t*o)/s},multPoint:function(e,t){var r=t[0],n=t[1];return[r*e[0]+n*e[2]+e[4],r*e[1]+n*e[3]+e[5]]},multArray:function(e,t){for(var r=0;r<t.length;r+=2){var n=t[r],i=t[r+1];t[r]=n*e[0]+i*e[2]+e[4],t[r+1]=n*e[1]+i*e[3]+e[5]}}},r.UDOC.C={srgbGamma:function(e){return e<.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055},cmykToRgb:function(e){var t=e[0],r=e[1],n=e[2],i=e[3],a=255+t*(-4.387332384609988*t+54.48615194189176*r+18.82290502165302*n+212.25662451639585*i-285.2331026137004)+r*(1.7149763477362134*r-5.6096736904047315*n+-17.873870861415444*i-5.497006427196366)+n*(-2.5217340131683033*n-21.248923337353073*i+17.5119270841813)+i*(-21.86122147463605*i-189.48180835922747),o=255+t*(8.841041422036149*t+60.118027045597366*r+6.871425592049007*n+31.159100130055922*i-79.2970844816548)+r*(-15.310361306967817*r+17.575251261109482*n+131.35250912493976*i-190.9453302588951)+n*(4.444339102852739*n+9.8632861493405*i-24.86741582555878)+i*(-20.737325471181034*i-187.80453709719578),s=255+t*(.8842522430003296*t+8.078677503112928*r+30.89978309703729*n-.23883238689178934*i-14.183576799673286)+r*(10.49593273432072*r+63.02378494754052*n+50.606957656360734*i-112.23884253719248)+n*(.03296041114873217*n+115.60384449646641*i-193.58209356861505)+i*(-22.33816807309886*i-180.12613974708367);return[Math.max(0,Math.min(1,a/255)),Math.max(0,Math.min(1,o/255)),Math.max(0,Math.min(1,s/255))]},labToRgb:function(e){for(var t=903.3,n=.008856,i=e[0],a=e[1],o=e[2],s=(i+16)/116,l=s*s*s,u=s-o/200,f=u*u*u,h=a/500+s,c=h*h*h,d=f>n?f:(116*u-16)/t,p=l>n?l:(116*s-16)/t,m=c>n?c:(116*h-16)/t,g=96.72*m,v=100*p,y=81.427*d,b=[g/100,v/100,y/100],_=[3.1338561,-1.6168667,-.4906146,-.9787684,1.9161415,.033454,.0719453,-.2289914,1.4052427],w=[_[0]*b[0]+_[1]*b[1]+_[2]*b[2],_[3]*b[0]+_[4]*b[1]+_[5]*b[2],_[6]*b[0]+_[7]*b[1]+_[8]*b[2]],E=0;E<3;E++)w[E]=Math.max(0,Math.min(1,r.UDOC.C.srgbGamma(w[E])));return w}},r.UDOC.getState=function(e){return{font:r.UDOC.getFont(),dd:{flat:1},space:"/DeviceGray",ca:1,colr:[0,0,0],sspace:"/DeviceGray",CA:1,COLR:[0,0,0],bmode:"/Normal",SA:!1,OPM:0,AIS:!1,OP:!1,op:!1,SMask:"/None",lwidth:1,lcap:0,ljoin:0,mlimit:10,SM:.1,doff:0,dash:[],ctm:[1,0,0,1,0,0],cpos:[0,0],pth:{cmds:[],crds:[]},cpth:e?r.UDOC.G.rectToPath(e):null}},r.UDOC.getFont=function(){return{Tc:0,Tw:0,Th:100,Tl:0,Tf:"Helvetica-Bold",Tfs:1,Tmode:0,Trise:0,Tk:0,Tal:0,Tun:0,Tm:[1,0,0,1,0,0],Tlm:[1,0,0,1,0,0],Trm:[1,0,0,1,0,0]}},r.FromEMF=function(){},r.FromEMF.Parse=function(e,t){e=new Uint8Array(e);var n,i=0,a={fill:!1,strk:!1,bb:[0,0,1,1],wbb:[0,0,1,1],fnt:{nam:"Arial",hgh:25,und:!1,orn:0},tclr:[0,0,0],talg:0},o=[],s=[],l=r.FromEMF.B.readShort,u=r.FromEMF.B.readUshort,f=r.FromEMF.B.readInt,h=r.FromEMF.B.readUint,c=r.FromEMF.B.readFloat;while(1){var d=h(e,i);i+=4;var p=r.FromEMF.K[d],m=h(e,i);i+=4;var g=i,v=null,y=0;if("EOF"==p)break;if("HEADER"==p)a.bb=r.FromEMF._readBox(e,g),g+=16,t.StartPage(a.bb[0],a.bb[1],a.bb[2],a.bb[3]),n=r.UDOC.getState(a.bb);else if("SAVEDC"==p)s.push(JSON.stringify(n),JSON.stringify(a));else if("RESTOREDC"==p){var b=f(e,g);g+=4;while(b<-1)s.pop(),s.pop();a=JSON.parse(s.pop()),n=JSON.parse(s.pop())}else if("SELECTCLIPPATH"==p)n.cpth=JSON.parse(JSON.stringify(n.pth));else if(-1!=["SETMAPMODE","SETPOLYFILLMODE","SETBKMODE","SETICMMODE","SETROP2","EXTSELECTCLIPRGN"].indexOf(p));else if("SETMITERLIMIT"==p)n.mlimit=h(e,g);else if("SETTEXTCOLOR"==p)a.tclr=[e[g]/255,e[g+1]/255,e[g+2]/255];else if("SETTEXTALIGN"==p)a.talg=h(e,g);else if("SETVIEWPORTEXTEX"==p||"SETVIEWPORTORGEX"==p){null==a.vbb&&(a.vbb=[]);var _="SETVIEWPORTORGEX"==p?0:2;a.vbb[_]=f(e,g),g+=4,a.vbb[_+1]=f(e,g),g+=4,"SETVIEWPORTEXTEX"==p&&r.FromEMF._updateCtm(a,n)}else if("SETWINDOWEXTEX"==p||"SETWINDOWORGEX"==p){_="SETWINDOWORGEX"==p?0:2;a.wbb[_]=f(e,g),g+=4,a.wbb[_+1]=f(e,g),g+=4,"SETWINDOWEXTEX"==p&&r.FromEMF._updateCtm(a,n)}else if("COMMENT"==p){h(e,g);g+=4}else if("SELECTOBJECT"==p){var w=h(e,g);if(g+=4,2147483648==w)a.fill=!0,n.colr=[1,1,1];else if(2147483653==w)a.fill=!1;else if(2147483655==w)a.strk=!0,a.lwidth=1,n.COLR=[0,0,0];else if(2147483656==w)a.strk=!1;else if(2147483661==w);else if(2147483662==w);else{var E=o[w];if("b"==E.t){if(a.fill=1!=E.stl,0==E.stl);else if(1!=E.stl)throw E.stl+" e";n.colr=E.clr}else if("p"==E.t)a.strk=5!=E.stl,n.lwidth=E.wid,n.COLR=E.clr;else{if("f"!=E.t)throw"e";a.fnt=E,n.font.Tf=E.nam,n.font.Tfs=Math.abs(E.hgh),n.font.Tun=E.und}}}else if("DELETEOBJECT"==p){w=h(e,g);if(g+=4,null==o[w])throw"e";o[w]=null}else if("CREATEBRUSHINDIRECT"==p)y=h(e,g),g+=4,v={t:"b"},v.stl=h(e,g),g+=4,v.clr=[e[g]/255,e[g+1]/255,e[g+2]/255],g+=4,v.htc=h(e,g),g+=4;else if("CREATEPEN"==p||"EXTCREATEPEN"==p)y=h(e,g),g+=4,v={t:"p"},"EXTCREATEPEN"==p?(g+=16,v.stl=h(e,g),g+=4,v.wid=h(e,g),g+=4,g+=4):(v.stl=h(e,g),g+=4,v.wid=h(e,g),g+=4,g+=4),v.clr=[e[g]/255,e[g+1]/255,e[g+2]/255],g+=4;else if("EXTCREATEFONTINDIRECTW"==p){y=h(e,g),g+=4,v={t:"f",nam:""},v.hgh=f(e,g),g+=4,g+=8,v.orn=f(e,g)/10,g+=4;var k=h(e,g);g+=4,v.und=e[g+1],v.stk=e[g+2],g+=8;while(0!=u(e,g))v.nam+=String.fromCharCode(u(e,g)),g+=2;k>500&&(v.nam+="-Bold")}else if("EXTTEXTOUTW"==p){g+=16;var S=h(e,g);g+=4;c(e,g);g+=4;c(e,g);g+=4;var C=f(e,g);g+=4;var T=f(e,g);g+=4,n.font.Tm=[1,0,0,-1,0,0],r.UDOC.M.rotate(n.font.Tm,a.fnt.orn*Math.PI/180),r.UDOC.M.translate(n.font.Tm,C,T);var x=a.talg;if(6==(6&x))n.font.Tal=2;else{if(0!=(7&x))throw x+" e";n.font.Tal=0}if(24==(24&x));else{if(0!=(24&x))throw"e";r.UDOC.M.translate(n.font.Tm,0,n.font.Tfs)}var R=h(e,g);g+=4;var A=h(e,g);g+=4;h(e,g);g+=4,g+=16;h(e,g);g+=4,A+=i-8;for(var O="",L=0;L<R;L++){var I=u(e,A+2*L);O+=String.fromCharCode(I)}var F=n.colr;n.colr=a.tclr,t.PutText(n,O,O.length*n.font.Tfs*.5),n.colr=F}else if("BEGINPATH"==p)r.UDOC.G.newPath(n);else if("ENDPATH"==p);else if("CLOSEFIGURE"==p)r.UDOC.G.closePath(n);else if("MOVETOEX"==p)r.UDOC.G.moveTo(n,f(e,g),f(e,g+4));else if("LINETO"==p){if(0==n.pth.cmds.length){var M=n.ctm.slice(0);r.UDOC.M.invert(M);var B=r.UDOC.M.multPoint(M,n.cpos);r.UDOC.G.moveTo(n,B[0],B[1])}r.UDOC.G.lineTo(n,f(e,g),f(e,g+4))}else if("POLYGON"==p||"POLYGON16"==p||"POLYLINE"==p||"POLYLINE16"==p||"POLYLINETO"==p||"POLYLINETO16"==p){g+=16;var P=p.startsWith("POLYGON"),D=-1!=p.indexOf("TO"),N=h(e,g);g+=4,D||r.UDOC.G.newPath(n),g=r.FromEMF._drawPoly(e,g,N,n,p.endsWith("16")?2:4,P,D),D||r.FromEMF._draw(t,n,a,P)}else if("POLYPOLYGON16"==p){g+=16;P=p.startsWith("POLYPOLYGON"),D=-1!=p.indexOf("TO");var z=h(e,g);g+=4,g+=4;var U=g;g+=4*z,D||r.UDOC.G.newPath(n);for(L=0;L<z;L++){var j=u(e,U+4*L);g=r.FromEMF._drawPoly(e,g,j,n,p.endsWith("16")?2:4,P,D)}D||r.FromEMF._draw(t,n,a,P)}else if("POLYBEZIER"==p||"POLYBEZIER16"==p||"POLYBEZIERTO"==p||"POLYBEZIERTO16"==p){g+=16;var W=p.endsWith("16"),X=W?l:f,H=W?2:4;N=h(e,g);g+=4,-1==p.indexOf("TO")&&(r.UDOC.G.moveTo(n,X(e,g),X(e,g+H)),g+=2*H,N--);while(N>0)r.UDOC.G.curveTo(n,X(e,g),X(e,g+H),X(e,g+2*H),X(e,g+3*H),X(e,g+4*H),X(e,g+5*H)),g+=6*H,N-=3}else if("RECTANGLE"==p||"ELLIPSE"==p){r.UDOC.G.newPath(n);var Z=r.FromEMF._readBox(e,g);if("RECTANGLE"==p)r.UDOC.G.moveTo(n,Z[0],Z[1]),r.UDOC.G.lineTo(n,Z[2],Z[1]),r.UDOC.G.lineTo(n,Z[2],Z[3]),r.UDOC.G.lineTo(n,Z[0],Z[3]);else{var G=(Z[0]+Z[2])/2,Y=(Z[1]+Z[3])/2;r.UDOC.G.arc(n,G,Y,(Z[2]-Z[0])/2,0,2*Math.PI,!1)}r.UDOC.G.closePath(n),r.FromEMF._draw(t,n,a,!0)}else if("FILLPATH"==p)t.Fill(n,!1);else if("STROKEPATH"==p)t.Stroke(n);else if("STROKEANDFILLPATH"==p)t.Fill(n,!1),t.Stroke(n);else if("SETWORLDTRANSFORM"==p||"MODIFYWORLDTRANSFORM"==p){var q=[];for(L=0;L<6;L++)q.push(c(e,g+4*L));if(g+=24,"SETWORLDTRANSFORM"==p)n.ctm=q;else{S=h(e,g);if(g+=4,2!=S)throw"e";var V=n.ctm;n.ctm=q,r.UDOC.M.concat(n.ctm,V)}}else if("SETSTRETCHBLTMODE"==p){h(e,g);g+=4}else if("STRETCHDIBITS"==p){Z=r.FromEMF._readBox(e,g);g+=16;var K=f(e,g);g+=4;var J=f(e,g);g+=4;f(e,g);g+=4;f(e,g);g+=4;var $=f(e,g);g+=4;var Q=f(e,g);g+=4;var ee=h(e,g)+i-8;g+=4;h(e,g);g+=4;var te=h(e,g)+i-8;g+=4;h(e,g);g+=4;var re=h(e,g);if(g+=4,0!=re)throw"e";h(e,g);g+=4;var ne=f(e,g);g+=4;var ie=f(e,g);g+=4;h(e,ee);ee+=4;var ae=h(e,ee);ee+=4;var oe=h(e,ee);if(ee+=4,ae!=$||oe!=Q)throw"e";var se=u(e,ee);ee+=2;var le=u(e,ee);if(ee+=2,8!=le&&24!=le&&32!=le)throw le+" e";var ue=h(e,ee);if(ee+=4,0!=ue)throw ue+" e";h(e,ee);ee+=4;h(e,ee);ee+=4;h(e,ee);ee+=4;h(e,ee);ee+=4;h(e,ee);ee+=4;var fe=Math.floor((ae*se*le+31&-32)/8),he=new Uint8Array(ae*oe*4);if(8==le)for(Y=0;Y<oe;Y++)for(G=0;G<ae;G++){var ce=Y*ae+G<<2;w=e[te+(oe-1-Y)*fe+G]<<2;he[ce]=e[ee+w+2],he[ce+1]=e[ee+w+1],he[ce+2]=e[ee+w+0],he[ce+3]=255}if(24==le)for(Y=0;Y<oe;Y++)for(G=0;G<ae;G++){ce=Y*ae+G<<2;var de=te+(oe-1-Y)*fe+3*G;he[ce]=e[de+2],he[ce+1]=e[de+1],he[ce+2]=e[de+0],he[ce+3]=255}if(32==le)for(Y=0;Y<oe;Y++)for(G=0;G<ae;G++){ce=Y*ae+G<<2,de=te+(oe-1-Y)*fe+4*G;he[ce]=e[de+2],he[ce+1]=e[de+1],he[ce+2]=e[de+0],he[ce+3]=e[de+3]}var pe=n.ctm.slice(0);n.ctm=[1,0,0,1,0,0],r.UDOC.M.scale(n.ctm,ne,-ie),r.UDOC.M.translate(n.ctm,K,J+ie),r.UDOC.M.concat(n.ctm,pe),t.PutImage(n,he,ae,oe),n.ctm=pe}else console.log(p,m);null!=v&&(o[y]=v),i+=m-8}t.ShowPage(),t.Done()},r.FromEMF._readBox=function(e,t){for(var n=[],i=0;i<4;i++)n[i]=r.FromEMF.B.readInt(e,t+4*i);return n},r.FromEMF._updateCtm=function(e,t){var n=[1,0,0,1,0,0],i=e.wbb,a=(e.bb,e.vbb&&4==e.vbb.length?e.vbb:e.bb);r.UDOC.M.translate(n,-i[0],-i[1]),r.UDOC.M.scale(n,1/i[2],1/i[3]),r.UDOC.M.scale(n,a[2],a[3]),t.ctm=n},r.FromEMF._draw=function(e,t,r,n){r.fill&&n&&e.Fill(t,!1),r.strk&&0!=t.lwidth&&e.Stroke(t)},r.FromEMF._drawPoly=function(e,t,n,i,a,o,s){for(var l=2==a?r.FromEMF.B.readShort:r.FromEMF.B.readInt,u=0;u<n;u++){var f=l(e,t);t+=a;var h=l(e,t);t+=a,0!=u||s?r.UDOC.G.lineTo(i,f,h):r.UDOC.G.moveTo(i,f,h)}return o&&r.UDOC.G.closePath(i),t},r.FromEMF.B={uint8:new Uint8Array(4),readShort:function(e,t){var n=r.FromEMF.B.uint8;return n[0]=e[t],n[1]=e[t+1],r.FromEMF.B.int16[0]},readUshort:function(e,t){var n=r.FromEMF.B.uint8;return n[0]=e[t],n[1]=e[t+1],r.FromEMF.B.uint16[0]},readInt:function(e,t){var n=r.FromEMF.B.uint8;return n[0]=e[t],n[1]=e[t+1],n[2]=e[t+2],n[3]=e[t+3],r.FromEMF.B.int32[0]},readUint:function(e,t){var n=r.FromEMF.B.uint8;return n[0]=e[t],n[1]=e[t+1],n[2]=e[t+2],n[3]=e[t+3],r.FromEMF.B.uint32[0]},readFloat:function(e,t){var n=r.FromEMF.B.uint8;return n[0]=e[t],n[1]=e[t+1],n[2]=e[t+2],n[3]=e[t+3],r.FromEMF.B.flot32[0]},readASCII:function(e,t,r){for(var n="",i=0;i<r;i++)n+=String.fromCharCode(e[t+i]);return n}},r.FromEMF.B.int16=new Int16Array(r.FromEMF.B.uint8.buffer),r.FromEMF.B.uint16=new Uint16Array(r.FromEMF.B.uint8.buffer),r.FromEMF.B.int32=new Int32Array(r.FromEMF.B.uint8.buffer),r.FromEMF.B.uint32=new Uint32Array(r.FromEMF.B.uint8.buffer),r.FromEMF.B.flot32=new Float32Array(r.FromEMF.B.uint8.buffer),r.FromEMF.C={EMR_HEADER:1,EMR_POLYBEZIER:2,EMR_POLYGON:3,EMR_POLYLINE:4,EMR_POLYBEZIERTO:5,EMR_POLYLINETO:6,EMR_POLYPOLYLINE:7,EMR_POLYPOLYGON:8,EMR_SETWINDOWEXTEX:9,EMR_SETWINDOWORGEX:10,EMR_SETVIEWPORTEXTEX:11,EMR_SETVIEWPORTORGEX:12,EMR_SETBRUSHORGEX:13,EMR_EOF:14,EMR_SETPIXELV:15,EMR_SETMAPPERFLAGS:16,EMR_SETMAPMODE:17,EMR_SETBKMODE:18,EMR_SETPOLYFILLMODE:19,EMR_SETROP2:20,EMR_SETSTRETCHBLTMODE:21,EMR_SETTEXTALIGN:22,EMR_SETCOLORADJUSTMENT:23,EMR_SETTEXTCOLOR:24,EMR_SETBKCOLOR:25,EMR_OFFSETCLIPRGN:26,EMR_MOVETOEX:27,EMR_SETMETARGN:28,EMR_EXCLUDECLIPRECT:29,EMR_INTERSECTCLIPRECT:30,EMR_SCALEVIEWPORTEXTEX:31,EMR_SCALEWINDOWEXTEX:32,EMR_SAVEDC:33,EMR_RESTOREDC:34,EMR_SETWORLDTRANSFORM:35,EMR_MODIFYWORLDTRANSFORM:36,EMR_SELECTOBJECT:37,EMR_CREATEPEN:38,EMR_CREATEBRUSHINDIRECT:39,EMR_DELETEOBJECT:40,EMR_ANGLEARC:41,EMR_ELLIPSE:42,EMR_RECTANGLE:43,EMR_ROUNDRECT:44,EMR_ARC:45,EMR_CHORD:46,EMR_PIE:47,EMR_SELECTPALETTE:48,EMR_CREATEPALETTE:49,EMR_SETPALETTEENTRIES:50,EMR_RESIZEPALETTE:51,EMR_REALIZEPALETTE:52,EMR_EXTFLOODFILL:53,EMR_LINETO:54,EMR_ARCTO:55,EMR_POLYDRAW:56,EMR_SETARCDIRECTION:57,EMR_SETMITERLIMIT:58,EMR_BEGINPATH:59,EMR_ENDPATH:60,EMR_CLOSEFIGURE:61,EMR_FILLPATH:62,EMR_STROKEANDFILLPATH:63,EMR_STROKEPATH:64,EMR_FLATTENPATH:65,EMR_WIDENPATH:66,EMR_SELECTCLIPPATH:67,EMR_ABORTPATH:68,EMR_COMMENT:70,EMR_FILLRGN:71,EMR_FRAMERGN:72,EMR_INVERTRGN:73,EMR_PAINTRGN:74,EMR_EXTSELECTCLIPRGN:75,EMR_BITBLT:76,EMR_STRETCHBLT:77,EMR_MASKBLT:78,EMR_PLGBLT:79,EMR_SETDIBITSTODEVICE:80,EMR_STRETCHDIBITS:81,EMR_EXTCREATEFONTINDIRECTW:82,EMR_EXTTEXTOUTA:83,EMR_EXTTEXTOUTW:84,EMR_POLYBEZIER16:85,EMR_POLYGON16:86,EMR_POLYLINE16:87,EMR_POLYBEZIERTO16:88,EMR_POLYLINETO16:89,EMR_POLYPOLYLINE16:90,EMR_POLYPOLYGON16:91,EMR_POLYDRAW16:92,EMR_CREATEMONOBRUSH:93,EMR_CREATEDIBPATTERNBRUSHPT:94,EMR_EXTCREATEPEN:95,EMR_POLYTEXTOUTA:96,EMR_POLYTEXTOUTW:97,EMR_SETICMMODE:98,EMR_CREATECOLORSPACE:99,EMR_SETCOLORSPACE:100,EMR_DELETECOLORSPACE:101,EMR_GLSRECORD:102,EMR_GLSBOUNDEDRECORD:103,EMR_PIXELFORMAT:104,EMR_DRAWESCAPE:105,EMR_EXTESCAPE:106,EMR_SMALLTEXTOUT:108,EMR_FORCEUFIMAPPING:109,EMR_NAMEDESCAPE:110,EMR_COLORCORRECTPALETTE:111,EMR_SETICMPROFILEA:112,EMR_SETICMPROFILEW:113,EMR_ALPHABLEND:114,EMR_SETLAYOUT:115,EMR_TRANSPARENTBLT:116,EMR_GRADIENTFILL:118,EMR_SETLINKEDUFIS:119,EMR_SETTEXTJUSTIFICATION:120,EMR_COLORMATCHTOTARGETW:121,EMR_CREATECOLORSPACEW:122},r.FromEMF.K=[],r.ToContext2D=function(e,t){this.canvas=document.createElement("canvas"),this.ctx=this.canvas.getContext("2d"),this.bb=null,this.currPage=0,this.needPage=e,this.scale=t},r.ToContext2D.prototype.StartPage=function(e,t,r,n){if(this.currPage==this.needPage){this.bb=[e,t,r,n];var i=this.scale,a=window.devicePixelRatio,o=this.canvas,s=this.ctx;o.width=Math.round(r*i),o.height=Math.round(n*i),s.translate(0,n*i),s.scale(i,-i),o.setAttribute("style","border:1px solid; width:"+o.width/a+"px; height:"+o.height/a+"px")}},r.ToContext2D.prototype.Fill=function(e,t){if(this.currPage==this.needPage){var r=this.ctx;r.beginPath(),this._setStyle(e,r),this._draw(e.pth,r),r.fill()}},r.ToContext2D.prototype.Stroke=function(e){if(this.currPage==this.needPage){var t=this.ctx;t.beginPath(),this._setStyle(e,t),this._draw(e.pth,t),t.stroke()}},r.ToContext2D.prototype.PutText=function(e,t,r){if(this.currPage==this.needPage){this._scale(e.ctm);var n=this.ctx;this._setStyle(e,n),n.save();var i=[1,0,0,-1,0,0];this._concat(i,e.font.Tm),this._concat(i,e.ctm),n.transform(i[0],i[1],i[2],i[3],i[4],i[5]),n.fillText(t,0,0),n.restore()}},r.ToContext2D.prototype.PutImage=function(e,t,r,n,i){if(this.currPage==this.needPage){var a=this.ctx;if(t.length==r*n*4){if(t=t.slice(0),i&&i.length==r*n*4)for(var o=0;o<t.length;o+=4)t[o+3]=i[o+1];var s=document.createElement("canvas"),l=s.getContext("2d");s.width=r,s.height=n;var u=l.createImageData(r,n);for(o=0;o<t.length;o++)u.data[o]=t[o];l.putImageData(u,0,0),a.save();var f=[1,0,0,1,0,0];this._concat(f,[1/r,0,0,-1/n,0,1]),this._concat(f,e.ctm),a.transform(f[0],f[1],f[2],f[3],f[4],f[5]),a.drawImage(s,0,0),a.restore()}}},r.ToContext2D.prototype.ShowPage=function(){this.currPage++},r.ToContext2D.prototype.Done=function(){},r.ToContext2D.prototype._setStyle=function(e,t){var r=this._scale(e.ctm);t.fillStyle=this._getFill(e.colr,e.ca,t),t.strokeStyle=this._getFill(e.COLR,e.CA,t),t.lineCap=["butt","round","square"][e.lcap],t.lineJoin=["miter","round","bevel"][e.ljoin],t.lineWidth=e.lwidth*r;for(var i=e.dash.slice(0),a=0;a<i.length;a++)i[a]=n(i[a]*r);t.setLineDash(i),t.miterLimit=e.mlimit*r;var o=e.font.Tf,s=o.toLowerCase(),l=-1!=s.indexOf("bold")?"bold ":"",u=-1!=s.indexOf("italic")||-1!=s.indexOf("oblique")?"italic ":"";t.font=l+u+e.font.Tfs+'px "'+o+'"'},r.ToContext2D.prototype._getFill=function(e,t,r){if(null==e.typ)return this._colr(e,t);var n,i=e,a=i.crds,o=i.mat,s=this._scale(o);if("lin"==i.typ){var l=this._multPoint(o,a.slice(0,2)),u=this._multPoint(o,a.slice(2));n=r.createLinearGradient(l[0],l[1],u[0],u[1])}else if("rad"==i.typ){l=this._multPoint(o,a.slice(0,2)),u=this._multPoint(o,a.slice(3));n=r.createRadialGradient(l[0],l[1],a[2]*s,u[0],u[1],a[5]*s)}for(var f=0;f<i.grad.length;f++)n.addColorStop(i.grad[f][0],this._colr(i.grad[f][1],t));return n},r.ToContext2D.prototype._colr=function(e,t){return"rgba("+Math.round(255*e[0])+","+Math.round(255*e[1])+","+Math.round(255*e[2])+","+t+")"},r.ToContext2D.prototype._scale=function(e){return Math.sqrt(Math.abs(e[0]*e[3]-e[1]*e[2]))},r.ToContext2D.prototype._concat=function(e,t){var r=e[0],n=e[1],i=e[2],a=e[3],o=e[4],s=e[5];e[0]=r*t[0]+n*t[2],e[1]=r*t[1]+n*t[3],e[2]=i*t[0]+a*t[2],e[3]=i*t[1]+a*t[3],e[4]=o*t[0]+s*t[2]+t[4],e[5]=o*t[1]+s*t[3]+t[5]},r.ToContext2D.prototype._multPoint=function(e,t){var r=t[0],n=t[1];return[r*e[0]+n*e[2]+e[4],r*e[1]+n*e[3]+e[5]]},r.ToContext2D.prototype._draw=function(e,t){for(var r=0,n=e.crds,i=0;i<e.cmds.length;i++){var a=e.cmds[i];"M"==a?(t.moveTo(n[r],n[r+1]),r+=2):"L"==a?(t.lineTo(n[r],n[r+1]),r+=2):"C"==a?(t.bezierCurveTo(n[r],n[r+1],n[r+2],n[r+3],n[r+4],n[r+5]),r+=6):"Q"==a?(t.quadraticCurveTo(n[r],n[r+1],n[r+2],n[r+3]),r+=4):"Z"==a&&t.closePath()}}},{}],93:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.getBinaryContent=r.isContainMultiType=r.isKoera=r.isJapanese=r.isChinese=r.fromulaRef=r.escapeCharacter=r.generateRandomIndex=r.LightenDarkenColor=r.getRowHeightPixel=r.getColumnWidthPixel=r.getXmlAttibute=r.getPxByEMUs=r.getptToPxRatioByDPI=r.getcellrange=r.getRangetxt=void 0;var n=e("./constant");function i(e,t){var r=e["row"][0],n=e["row"][1],i=e["column"][0],a=e["column"][1];return null==r&&null==n?t+s(i)+":"+s(a):null==i&&null==a?t+(r+1)+":"+(n+1):i==a&&r==n?t+s(i)+(r+1):t+s(i)+(r+1)+":"+s(a)+(n+1)}function a(e,t,r){void 0===t&&(t={}),void 0===r&&(r="1");var n=e.split("!"),i="",a="",s=-1;if(n.length>1){i=n[0],a=n[1];var l=t[i];s=null==l?parseInt(r):parseInt(l)}else s=parseInt(r),a=n[0];if(-1==a.indexOf(":")){var u=parseInt(a.replace(/[^0-9]/g,""))-1,f=o(a.replace(/[^A-Za-z]/g,""));return isNaN(u)||isNaN(f)?null:{row:[u,u],column:[f,f],sheetIndex:s}}var h=a.split(":");u=[],f=[];return u[0]=parseInt(h[0].replace(/[^0-9]/g,""))-1,u[1]=parseInt(h[1].replace(/[^0-9]/g,""))-1,u[0]>u[1]?null:(f[0]=o(h[0].replace(/[^A-Za-z]/g,"")),f[1]=o(h[1].replace(/[^A-Za-z]/g,"")),f[0]>f[1]?null:{row:u,column:f,sheetIndex:s})}function o(e){e=e.toUpperCase();var t=e.length;if(0==t)return NaN;for(var r=e.split(""),i=n.columeHeader_word.length,a=0,o=t-1;o>=0;o--)a+=o==t-1?n.columeHeader_word_index[r[o]]:Math.pow(i,t-o-1)*(n.columeHeader_word_index[r[o]]+1);return a}function s(e){var t=n.columeHeader_word.length;if(e<t)return n.columeHeader_word[e];var r=0,i="",a=1,o=0;while(e>=t/(t-1)*(Math.pow(t,a++)-1))o=a;var s=e-t/(t-1)*(Math.pow(t,o-1)-1);r=s+1;for(var l=o;l>0;l--){var u=r;if(1==l)return u%=t,0==u&&(u=26),i+n.columeHeader_word[u-1];u=Math.ceil(u/Math.pow(t,l-1)),i+=n.columeHeader_word[u-1],l>1&&(r-=(u-1)*t)}}function l(){return.75}function u(e){if(null==e)return 0;var t=e/914400,r=72*t,n=r/l();return n}function f(e,t,r){var n=e[t];return n=null==n?r:n,n}function h(e){var t=Math.round(8*(e-.83)+5);return t}function c(e){var t=Math.round(e/l());return t}function d(e,t){var r=e.substring(e.length-6,e.length),n=m("#"+r),i=v(n[0],n[1],n[2]);if(t>0)i[2]=i[2]*(1-t)+t;else{if(!(t<0))return"#"+r;i[2]=i[2]*(1+t)}var a=g(i[0],i[1],i[2]);return p("RGB("+a.join(",")+")")}function p(e){var t=/^#([0-9a-fA-f]{3}|[0-9a-fA-f]{6})$/;if(/^(rgb|RGB)/.test(e)){for(var r=e.replace(/(?:\(|\)|rgb|RGB)*/g,"").split(","),n="#",i=0;i<r.length;i++){var a=Number(r[i]).toString(16);a.length<2&&(a="0"+a),n+=a}return 7!==n.length&&(n=e),n}if(t.test(e)){var o=e.replace(/#/,"").split("");if(6===o.length)return e;if(3===o.length){var s="#";for(i=0;i<o.length;i+=1)s+=o[i]+o[i];return s}}return e}function m(e){var t=e.toLowerCase(),r=/^#([0-9a-fA-f]{3}|[0-9a-fA-f]{6})$/;if(t&&r.test(t)){if(4===t.length){for(var n="#",i=1;i<4;i+=1)n+=t.slice(i,i+1).concat(t.slice(i,i+1));t=n}var a=[];for(i=1;i<7;i+=2)a.push(parseInt("0x"+t.slice(i,i+2)));return a}return null}function g(e,t,r){var n,i,a;if(0==t)n=i=a=r;else{var o=function(e,t,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?e+6*(t-e)*r:r<.5?t:r<2/3?e+(t-e)*(2/3-r)*6:e},s=r<.5?r*(1+t):r+t-r*t,l=2*r-s;n=o(l,s,e+1/3),i=o(l,s,e),a=o(l,s,e-1/3)}return[Math.round(255*n),Math.round(255*i),Math.round(255*a)]}function v(e,t,r){e/=255,t/=255,r/=255;var n,i,a=Math.max(e,t,r),o=Math.min(e,t,r),s=(a+o)/2;if(a==o)n=i=0;else{var l=a-o;switch(i=s>.5?l/(2-a-o):l/(a+o),a){case e:n=(t-r)/l+(t<r?6:0);break;case t:n=(r-e)/l+2;break;case r:n=(e-t)/l+4;break}n/=6}return[n,i,s]}function y(e){null==e&&(e="Sheet");for(var t=window.navigator.userAgent.replace(/[^a-zA-Z0-9]/g,"").split(""),r="",n=0;n<5;n++)r+=t[Math.round(Math.random()*(t.length-1))];var i=(new Date).getTime();return e+"_"+r+"_"+i}function b(e){return null==e||0==e.length?e:e.replace(/&amp;/g,"&").replace(/&quot;/g,'"').replace(/&lt;/g,"<").replace(/&gt;/g,">").replace(/&nbsp;/g," ").replace(/&apos;/g,"'").replace(/&iexcl;/g,"¡").replace(/&cent;/g,"¢").replace(/&pound;/g,"£").replace(/&curren;/g,"¤").replace(/&yen;/g,"¥").replace(/&brvbar;/g,"¦").replace(/&sect;/g,"§").replace(/&uml;/g,"¨").replace(/&copy;/g,"©").replace(/&ordf;/g,"ª").replace(/&laquo;/g,"«").replace(/&not;/g,"¬").replace(/&shy;/g,"­").replace(/&reg;/g,"®").replace(/&macr;/g,"¯").replace(/&deg;/g,"°").replace(/&plusmn;/g,"±").replace(/&sup2;/g,"²").replace(/&sup3;/g,"³").replace(/&acute;/g,"´").replace(/&micro;/g,"µ").replace(/&para;/g,"¶").replace(/&middot;/g,"·").replace(/&cedil;/g,"¸").replace(/&sup1;/g,"¹").replace(/&ordm;/g,"º").replace(/&raquo;/g,"»").replace(/&frac14;/g,"¼").replace(/&frac12;/g,"½").replace(/&frac34;/g,"¾").replace(/&iquest;/g,"¿").replace(/&times;/g,"×").replace(/&divide;/g,"÷").replace(/&Agrave;/g,"À").replace(/&Aacute;/g,"Á").replace(/&Acirc;/g,"Â").replace(/&Atilde;/g,"Ã").replace(/&Auml;/g,"Ä").replace(/&Aring;/g,"Å").replace(/&AElig;/g,"Æ").replace(/&Ccedil;/g,"Ç").replace(/&Egrave;/g,"È").replace(/&Eacute;/g,"É").replace(/&Ecirc;/g,"Ê").replace(/&Euml;/g,"Ë").replace(/&Igrave;/g,"Ì").replace(/&Iacute;/g,"Í").replace(/&Icirc;/g,"Î").replace(/&Iuml;/g,"Ï").replace(/&ETH;/g,"Ð").replace(/&Ntilde;/g,"Ñ").replace(/&Ograve;/g,"Ò").replace(/&Oacute;/g,"Ó").replace(/&Ocirc;/g,"Ô").replace(/&Otilde;/g,"Õ").replace(/&Ouml;/g,"Ö").replace(/&Oslash;/g,"Ø").replace(/&Ugrave;/g,"Ù").replace(/&Uacute;/g,"Ú").replace(/&Ucirc;/g,"Û").replace(/&Uuml;/g,"Ü").replace(/&Yacute;/g,"Ý").replace(/&THORN;/g,"Þ").replace(/&szlig;/g,"ß").replace(/&agrave;/g,"à").replace(/&aacute;/g,"á").replace(/&acirc;/g,"â").replace(/&atilde;/g,"ã").replace(/&auml;/g,"ä").replace(/&aring;/g,"å").replace(/&aelig;/g,"æ").replace(/&ccedil;/g,"ç").replace(/&egrave;/g,"è").replace(/&eacute;/g,"é").replace(/&ecirc;/g,"ê").replace(/&euml;/g,"ë").replace(/&igrave;/g,"ì").replace(/&iacute;/g,"í").replace(/&icirc;/g,"î").replace(/&iuml;/g,"ï").replace(/&eth;/g,"ð").replace(/&ntilde;/g,"ñ").replace(/&ograve;/g,"ò").replace(/&oacute;/g,"ó").replace(/&ocirc;/g,"ô").replace(/&otilde;/g,"õ").replace(/&ouml;/g,"ö").replace(/&oslash;/g,"ø").replace(/&ugrave;/g,"ù").replace(/&uacute;/g,"ú").replace(/&ucirc;/g,"û").replace(/&uuml;/g,"ü").replace(/&yacute;/g,"ý").replace(/&thorn;/g,"þ").replace(/&yuml;/g,"ÿ")}r.getRangetxt=i,r.getcellrange=a,r.getptToPxRatioByDPI=l,r.getPxByEMUs=u,r.getXmlAttibute=f,r.getColumnWidthPixel=h,r.getRowHeightPixel=c,r.LightenDarkenColor=d,r.generateRandomIndex=y,r.escapeCharacter=b;var _=function(){function e(){}return e.trim=function(e){return null==e&&(e=""),e.replace(/(^\s*)|(\s*$)/g,"")},e.functionCopy=function(e,t,r){var n=this;if(null==n.operatorjson){for(var i=n.operator.split("|"),a={},o=0;o<i.length;o++)a[i[o].toString()]=1;n.operatorjson=a}null==t&&(t="down"),null==r&&(r=1),"="==e.substr(0,1)&&(e=e.substr(1));var s=e.split(""),l=0,u="",f="",h={bracket:0,comma:0,squote:0,dquote:0};while(l<s.length){var c=s[l];if("("==c&&0==h.dquote)h.bracket+=1,u.length>0?f+=u+"(":f+="(",u="";else if(")"==c&&0==h.dquote)h.bracket-=1,f+=n.functionCopy(u,t,r)+")",u="";else if('"'==c&&0==h.squote)h.dquote>0?(f+=u+'"',h.dquote-=1,u=""):(h.dquote+=1,u+='"');else if(","==c&&0==h.dquote)f+=n.functionCopy(u,t,r)+",",u="";else if("&"==c&&0==h.dquote)u.length>0?(f+=n.functionCopy(u,t,r)+"&",u=""):f+="&";else if(c in n.operatorjson&&0==h.dquote){var d="";l+1<s.length&&(d=s[l+1]);var p=l-1,m=null;if(p>=0)do{m=s[p--]}while(p>=0&&" "==m);c+d in n.operatorjson?(u.length>0?(f+=n.functionCopy(u,t,r)+c+d,u=""):f+=c+d,l++):/[^0-9]/.test(d)||"-"!=c||"("!=m&&null!=m&&","!=m&&" "!=m&&!(m in n.operatorjson)?u.length>0?(f+=n.functionCopy(u,t,r)+c,u=""):f+=c:u+=c}else u+=c;l==s.length-1&&(n.iscelldata(n.trim(u))?"down"==t?f+=n.downparam(n.trim(u),r):"up"==t?f+=n.upparam(n.trim(u),r):"left"==t?f+=n.leftparam(n.trim(u),r):"right"==t&&(f+=n.rightparam(n.trim(u),r)):f+=n.trim(u)),l++}return f},e.downparam=function(e,t){return this.updateparam("d",e,t)},e.upparam=function(e,t){return this.updateparam("u",e,t)},e.leftparam=function(e,t){return this.updateparam("l",e,t)},e.rightparam=function(e,t){return this.updateparam("r",e,t)},e.updateparam=function(e,t,r){var n,i=this,a=t.split("!"),l="";if(a.length>1?(n=a[1],l=a[0]+"!"):n=a[0],-1==n.indexOf(":")){var u=parseInt(n.replace(/[^0-9]/g,"")),f=o(n.replace(/[^A-Za-z]/g,"")),h=i.isfreezonFuc(n),c=h[0]?"$":"",d=h[1]?"$":"";return"u"!=e||h[0]?"r"!=e||h[1]?"l"!=e||h[1]?h[0]||(u+=r):f-=r:f+=r:u-=r,u<0||f<0?i.error.r:isNaN(u)||isNaN(f)?isNaN(u)?isNaN(f)?t:l+d+s(f):l+c+u:l+d+s(f)+c+u}n=n.split(":");u=[],f=[];if(u[0]=parseInt(n[0].replace(/[^0-9]/g,"")),u[1]=parseInt(n[1].replace(/[^0-9]/g,"")),u[0]>u[1])return t;if(f[0]=o(n[0].replace(/[^A-Za-z]/g,"")),f[1]=o(n[1].replace(/[^A-Za-z]/g,"")),f[0]>f[1])return t;var p=i.isfreezonFuc(n[0]),m=i.isfreezonFuc(n[1]),g=p[0]?"$":"",v=p[1]?"$":"",y=m[0]?"$":"",b=m[1]?"$":"";return"u"==e?(p[0]||(u[0]-=r),m[0]||(u[1]-=r)):"r"==e?(p[1]||(f[0]+=r),m[1]||(f[1]+=r)):"l"==e?(p[1]||(f[0]-=r),m[1]||(f[1]-=r)):(p[0]||(u[0]+=r),m[0]||(u[1]+=r)),u[0]<0||f[0]<0?i.error.r:isNaN(f[0])&&isNaN(f[1])?l+g+u[0]+":"+y+u[1]:isNaN(u[0])&&isNaN(u[1])?l+v+s(f[0])+":"+b+s(f[1]):l+v+s(f[0])+g+u[0]+":"+b+s(f[1])+y+u[1]},e.iscelldata=function(e){var t,r=e.split("!");t=r.length>1?r[1]:r[0];var n=/^(([a-zA-Z]+)|([$][a-zA-Z]+))(([0-9]+)|([$][0-9]+))$/g,i=/^(((([a-zA-Z]+)|([$][a-zA-Z]+))(([0-9]+)|([$][0-9]+)))|((([a-zA-Z]+)|([$][a-zA-Z]+))))$/g;if(-1==t.indexOf(":")){var a=parseInt(t.replace(/[^0-9]/g,""))-1,s=o(t.replace(/[^A-Za-z]/g,""));return!(isNaN(a)||isNaN(s)||!t.toString().match(n))||!!isNaN(a)&&(isNaN(s),!1)}i=/^(((([a-zA-Z]+)|([$][a-zA-Z]+))(([0-9]+)|([$][0-9]+)))|((([a-zA-Z]+)|([$][a-zA-Z]+)))|((([0-9]+)|([$][0-9]+s))))$/g,t=t.split(":");a=[],s=[];return a[0]=parseInt(t[0].replace(/[^0-9]/g,""))-1,a[1]=parseInt(t[1].replace(/[^0-9]/g,""))-1,!(a[0]>a[1])&&(s[0]=o(t[0].replace(/[^A-Za-z]/g,"")),s[1]=o(t[1].replace(/[^A-Za-z]/g,"")),!(s[0]>s[1])&&!(!t[0].toString().match(i)||!t[1].toString().match(i)))},e.isfreezonFuc=function(e){var t=e.replace(/[^0-9]/g,""),r=e.replace(/[^A-Za-z]/g,""),n=e.substr(e.indexOf(t)-1,1),i=e.substr(e.indexOf(r)-1,1),a=[!1,!1];return"$"==n&&(a[0]=!0),"$"==i&&(a[1]=!0),a},e.operator="==|!=|<>|<=|>=|=|+|-|>|<|/|*|%|&|^",e.error={v:"#VALUE!",n:"#NAME?",na:"#N/A",r:"#REF!",d:"#DIV/0!",nm:"#NUM!",nl:"#NULL!",sp:"#SPILL!"},e.operatorjson=null,e}();function w(e){var t=/[^\u4e00-\u9fa5]/,r=/[\u3002|\uff1f|\uff01|\uff0c|\u3001|\uff1b|\uff1a|\u201c|\u201d|\u2018|\u2019|\uff08|\uff09|\u300a|\u300b|\u3008|\u3009|\u3010|\u3011|\u300e|\u300f|\u300c|\u300d|\ufe43|\ufe44|\u3014|\u3015|\u2026|\u2014|\uff5e|\ufe4f|\uffe5]/;return!!r.test(e)||!t.test(e)}function E(e){var t=/[^\u0800-\u4e00]/;return!t.test(e)}function k(e){return e>12592&&e<12687||e>=44032&&e<=55203}function S(e){var t=!1;escape(e).indexOf("%u")>-1&&(t=!0);var r=!1,n=/[0-9a-z]/gi;n.test(e)&&(r=!0);var i=/[\x00-\xff]+/g;return i.test(e)&&(r=!0),!(!t||!r)}function C(e,t){var r,n,i,a;t||(t={});var o=function(){try{return new window.XMLHttpRequest}catch(e){}},s=function(){try{return new window.ActiveXObject("Microsoft.XMLHTTP")}catch(e){}},l="undefined"!==typeof window&&window.ActiveXObject?function(){return o()||s()}:o;"function"===typeof t?(a=t,t={}):"function"===typeof t.callback&&(a=t.callback),n=function(e){a(null,e)},i=function(e){a(e,null)};try{var u=l();u.open("GET",e,!0),"responseType"in u&&(u.responseType="arraybuffer"),u.overrideMimeType&&u.overrideMimeType("text/plain; charset=x-user-defined"),u.onreadystatechange=function(t){if(4===u.readyState)if(200===u.status||0===u.status)try{n(function(e){return e.response||e.responseText}(u))}catch(r){i(new Error(r))}else i(new Error("Ajax error for "+e+" : "+this.status+" "+this.statusText))},t.progress&&(u.onprogress=function(r){t.progress({path:e,originalEvent:r,percent:r.loaded/r.total*100,loaded:r.loaded,total:r.total})}),u.send()}catch(f){i(new Error(f),null)}return r}r.fromulaRef=_,r.isChinese=w,r.isJapanese=E,r.isKoera=k,r.isContainMultiType=S,r.getBinaryContent=C},{"./constant":91}],94:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.LuckyExcel=void 0;var n=e("./ToLuckySheet/LuckyFile"),i=e("./HandleZip"),a=function(){function e(){}return e.transformExcelToLucky=function(e,t){var r=new i.HandleZip(e);r.unzipFile((function(r){var i=new n.LuckyFile(r,e.name),a=i.Parse(),o=JSON.parse(a);void 0!=t&&t(o,a)}),(function(e){console.error(e)}))},e.transformExcelToLuckyByUrl=function(e,t,r){var a=new i.HandleZip;a.unzipFileByUrl(e,(function(e){var i=new n.LuckyFile(e,t),a=i.Parse(),o=JSON.parse(a);void 0!=r&&r(o,a)}),(function(e){console.error(e)}))},e.transformLuckyToExcel=function(e,t){},e}();r.LuckyExcel=a},{"./HandleZip":84,"./ToLuckySheet/LuckyFile":87}],95:[function(e,t,r){"use strict";var n=e("./main");t.exports=n.LuckyExcel},{"./main":94}]},{},[95])(95)}))}).call(this,r("c8ba"))}}]);