/*! For license information please see Compression.js.LICENSE.txt */ (()=>{var __webpack_modules__={67526(A,e){"use strict";e.toByteArray=function(A){var e,t,i=function(A){var e=A.length;if(e%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var t=A.indexOf("=");return-1===t&&(t=e),[t,t===e?0:4-t%4]}(A),g=i[0],n=i[1],o=new r(function(A,e,t){return 3*(e+t)/4-t}(0,g,n)),a=0,C=n>0?g-4:g;for(t=0;t>16&255,o[a++]=e>>8&255,o[a++]=255&e;return 2===n&&(e=I[A.charCodeAt(t)]<<2|I[A.charCodeAt(t+1)]>>4,o[a++]=255&e),1===n&&(e=I[A.charCodeAt(t)]<<10|I[A.charCodeAt(t+1)]<<4|I[A.charCodeAt(t+2)]>>2,o[a++]=e>>8&255,o[a++]=255&e),o},e.fromByteArray=function(A){for(var e,I=A.length,r=I%3,i=[],g=16383,n=0,a=I-r;na?a:n+g));return 1===r?(e=A[I-1],i.push(t[e>>2]+t[e<<4&63]+"==")):2===r&&(e=(A[I-2]<<8)+A[I-1],i.push(t[e>>10]+t[e>>4&63]+t[e<<2&63]+"=")),i.join("")};for(var t=[],I=[],r="undefined"!=typeof Uint8Array?Uint8Array:Array,i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",g=0;g<64;++g)t[g]=i[g],I[i.charCodeAt(g)]=g;function n(A){return t[A>>18&63]+t[A>>12&63]+t[A>>6&63]+t[63&A]}function o(A,e,t){for(var I,r=[],i=e;ig)throw new RangeError('The value "'+A+'" is invalid for option "size"');const e=new Uint8Array(A);return Object.setPrototypeOf(e,o.prototype),e}function o(A,e,t){if("number"==typeof A){if("string"==typeof e)throw new TypeError('The "string" argument must be of type string. Received type number');return B(A)}return a(A,e,t)}function a(A,e,t){if("string"==typeof A)return function(A,e){if("string"==typeof e&&""!==e||(e="utf8"),!o.isEncoding(e))throw new TypeError("Unknown encoding: "+e);const t=0|Q(A,e);let I=n(t);const r=I.write(A,e);return r!==t&&(I=I.slice(0,r)),I}(A,e);if(ArrayBuffer.isView(A))return function(A){if(Z(A,Uint8Array)){const e=new Uint8Array(A);return E(e.buffer,e.byteOffset,e.byteLength)}return s(A)}(A);if(null==A)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof A);if(Z(A,ArrayBuffer)||A&&Z(A.buffer,ArrayBuffer))return E(A,e,t);if("undefined"!=typeof SharedArrayBuffer&&(Z(A,SharedArrayBuffer)||A&&Z(A.buffer,SharedArrayBuffer)))return E(A,e,t);if("number"==typeof A)throw new TypeError('The "value" argument must not be of type number. Received type number');const I=A.valueOf&&A.valueOf();if(null!=I&&I!==A)return o.from(I,e,t);const r=function(A){if(o.isBuffer(A)){const e=0|h(A.length),t=n(e);return 0===t.length||A.copy(t,0,0,e),t}return void 0!==A.length?"number"!=typeof A.length||j(A.length)?n(0):s(A):"Buffer"===A.type&&Array.isArray(A.data)?s(A.data):void 0}(A);if(r)return r;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof A[Symbol.toPrimitive])return o.from(A[Symbol.toPrimitive]("string"),e,t);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof A)}function C(A){if("number"!=typeof A)throw new TypeError('"size" argument must be of type number');if(A<0)throw new RangeError('The value "'+A+'" is invalid for option "size"')}function B(A){return C(A),n(A<0?0:0|h(A))}function s(A){const e=A.length<0?0:0|h(A.length),t=n(e);for(let I=0;I=g)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+g.toString(16)+" bytes");return 0|A}function Q(A,e){if(o.isBuffer(A))return A.length;if(ArrayBuffer.isView(A)||Z(A,ArrayBuffer))return A.byteLength;if("string"!=typeof A)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof A);const t=A.length,I=arguments.length>2&&!0===arguments[2];if(!I&&0===t)return 0;let r=!1;for(;;)switch(e){case"ascii":case"latin1":case"binary":return t;case"utf8":case"utf-8":return W(A).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*t;case"hex":return t>>>1;case"base64":return O(A).length;default:if(r)return I?-1:W(A).length;e=(""+e).toLowerCase(),r=!0}}function c(A,e,t){let I=!1;if((void 0===e||e<0)&&(e=0),e>this.length)return"";if((void 0===t||t>this.length)&&(t=this.length),t<=0)return"";if((t>>>=0)<=(e>>>=0))return"";for(A||(A="utf8");;)switch(A){case"hex":return G(this,e,t);case"utf8":case"utf-8":return m(this,e,t);case"ascii":return U(this,e,t);case"latin1":case"binary":return k(this,e,t);case"base64":return D(this,e,t);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return v(this,e,t);default:if(I)throw new TypeError("Unknown encoding: "+A);A=(A+"").toLowerCase(),I=!0}}function u(A,e,t){const I=A[e];A[e]=A[t],A[t]=I}function f(A,e,t,I,r){if(0===A.length)return-1;if("string"==typeof t?(I=t,t=0):t>2147483647?t=2147483647:t<-2147483648&&(t=-2147483648),j(t=+t)&&(t=r?0:A.length-1),t<0&&(t=A.length+t),t>=A.length){if(r)return-1;t=A.length-1}else if(t<0){if(!r)return-1;t=0}if("string"==typeof e&&(e=o.from(e,I)),o.isBuffer(e))return 0===e.length?-1:l(A,e,t,I,r);if("number"==typeof e)return e&=255,"function"==typeof Uint8Array.prototype.indexOf?r?Uint8Array.prototype.indexOf.call(A,e,t):Uint8Array.prototype.lastIndexOf.call(A,e,t):l(A,[e],t,I,r);throw new TypeError("val must be string, number or Buffer")}function l(A,e,t,I,r){let i,g=1,n=A.length,o=e.length;if(void 0!==I&&("ucs2"===(I=String(I).toLowerCase())||"ucs-2"===I||"utf16le"===I||"utf-16le"===I)){if(A.length<2||e.length<2)return-1;g=2,n/=2,o/=2,t/=2}function a(A,e){return 1===g?A[e]:A.readUInt16BE(e*g)}if(r){let I=-1;for(i=t;in&&(t=n-o),i=t;i>=0;i--){let t=!0;for(let I=0;Ir&&(I=r):I=r;const i=e.length;let g;for(I>i/2&&(I=i/2),g=0;g>8,r=t%256,i.push(r),i.push(I);return i}(e,A.length-t),A,t,I)}function D(A,e,t){return 0===e&&t===A.length?I.fromByteArray(A):I.fromByteArray(A.slice(e,t))}function m(A,e,t){t=Math.min(A.length,t);const I=[];let r=e;for(;r239?4:e>223?3:e>191?2:1;if(r+g<=t){let t,I,n,o;switch(g){case 1:e<128&&(i=e);break;case 2:t=A[r+1],128==(192&t)&&(o=(31&e)<<6|63&t,o>127&&(i=o));break;case 3:t=A[r+1],I=A[r+2],128==(192&t)&&128==(192&I)&&(o=(15&e)<<12|(63&t)<<6|63&I,o>2047&&(o<55296||o>57343)&&(i=o));break;case 4:t=A[r+1],I=A[r+2],n=A[r+3],128==(192&t)&&128==(192&I)&&128==(192&n)&&(o=(15&e)<<18|(63&t)<<12|(63&I)<<6|63&n,o>65535&&o<1114112&&(i=o))}}null===i?(i=65533,g=1):i>65535&&(i-=65536,I.push(i>>>10&1023|55296),i=56320|1023&i),I.push(i),r+=g}return function(A){const e=A.length;if(e<=S)return String.fromCharCode.apply(String,A);let t="",I=0;for(;II.length?(o.isBuffer(e)||(e=o.from(e)),e.copy(I,r)):Uint8Array.prototype.set.call(I,e,r);else{if(!o.isBuffer(e))throw new TypeError('"list" argument must be an Array of Buffers');e.copy(I,r)}r+=e.length}return I},o.byteLength=Q,o.prototype._isBuffer=!0,o.prototype.swap16=function(){const A=this.length;if(A%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let e=0;et&&(A+=" ... "),""},i&&(o.prototype[i]=o.prototype.inspect),o.prototype.compare=function(A,e,t,I,r){if(Z(A,Uint8Array)&&(A=o.from(A,A.offset,A.byteLength)),!o.isBuffer(A))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof A);if(void 0===e&&(e=0),void 0===t&&(t=A?A.length:0),void 0===I&&(I=0),void 0===r&&(r=this.length),e<0||t>A.length||I<0||r>this.length)throw new RangeError("out of range index");if(I>=r&&e>=t)return 0;if(I>=r)return-1;if(e>=t)return 1;if(this===A)return 0;let i=(r>>>=0)-(I>>>=0),g=(t>>>=0)-(e>>>=0);const n=Math.min(i,g),a=this.slice(I,r),C=A.slice(e,t);for(let A=0;A>>=0,isFinite(t)?(t>>>=0,void 0===I&&(I="utf8")):(I=t,t=void 0)}const r=this.length-e;if((void 0===t||t>r)&&(t=r),A.length>0&&(t<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");I||(I="utf8");let i=!1;for(;;)switch(I){case"hex":return y(this,A,e,t);case"utf8":case"utf-8":return p(this,A,e,t);case"ascii":case"latin1":case"binary":return w(this,A,e,t);case"base64":return d(this,A,e,t);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return F(this,A,e,t);default:if(i)throw new TypeError("Unknown encoding: "+I);I=(""+I).toLowerCase(),i=!0}},o.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};const S=4096;function U(A,e,t){let I="";t=Math.min(A.length,t);for(let r=e;rI)&&(t=I);let r="";for(let I=e;It)throw new RangeError("Trying to access beyond buffer length")}function M(A,e,t,I,r,i){if(!o.isBuffer(A))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>r||eA.length)throw new RangeError("Index out of range")}function R(A,e,t,I,r){T(e,I,r,A,t,7);let i=Number(e&BigInt(4294967295));A[t++]=i,i>>=8,A[t++]=i,i>>=8,A[t++]=i,i>>=8,A[t++]=i;let g=Number(e>>BigInt(32)&BigInt(4294967295));return A[t++]=g,g>>=8,A[t++]=g,g>>=8,A[t++]=g,g>>=8,A[t++]=g,t}function Y(A,e,t,I,r){T(e,I,r,A,t,7);let i=Number(e&BigInt(4294967295));A[t+7]=i,i>>=8,A[t+6]=i,i>>=8,A[t+5]=i,i>>=8,A[t+4]=i;let g=Number(e>>BigInt(32)&BigInt(4294967295));return A[t+3]=g,g>>=8,A[t+2]=g,g>>=8,A[t+1]=g,g>>=8,A[t]=g,t+8}function N(A,e,t,I,r,i){if(t+I>A.length)throw new RangeError("Index out of range");if(t<0)throw new RangeError("Index out of range")}function L(A,e,t,I,i){return e=+e,t>>>=0,i||N(A,0,t,4),r.write(A,e,t,I,23,4),t+4}function H(A,e,t,I,i){return e=+e,t>>>=0,i||N(A,0,t,8),r.write(A,e,t,I,52,8),t+8}o.prototype.slice=function(A,e){const t=this.length;(A=~~A)<0?(A+=t)<0&&(A=0):A>t&&(A=t),(e=void 0===e?t:~~e)<0?(e+=t)<0&&(e=0):e>t&&(e=t),e>>=0,e>>>=0,t||b(A,e,this.length);let I=this[A],r=1,i=0;for(;++i>>=0,e>>>=0,t||b(A,e,this.length);let I=this[A+--e],r=1;for(;e>0&&(r*=256);)I+=this[A+--e]*r;return I},o.prototype.readUint8=o.prototype.readUInt8=function(A,e){return A>>>=0,e||b(A,1,this.length),this[A]},o.prototype.readUint16LE=o.prototype.readUInt16LE=function(A,e){return A>>>=0,e||b(A,2,this.length),this[A]|this[A+1]<<8},o.prototype.readUint16BE=o.prototype.readUInt16BE=function(A,e){return A>>>=0,e||b(A,2,this.length),this[A]<<8|this[A+1]},o.prototype.readUint32LE=o.prototype.readUInt32LE=function(A,e){return A>>>=0,e||b(A,4,this.length),(this[A]|this[A+1]<<8|this[A+2]<<16)+16777216*this[A+3]},o.prototype.readUint32BE=o.prototype.readUInt32BE=function(A,e){return A>>>=0,e||b(A,4,this.length),16777216*this[A]+(this[A+1]<<16|this[A+2]<<8|this[A+3])},o.prototype.readBigUInt64LE=z(function(A){x(A>>>=0,"offset");const e=this[A],t=this[A+7];void 0!==e&&void 0!==t||_(A,this.length-8);const I=e+256*this[++A]+65536*this[++A]+this[++A]*2**24,r=this[++A]+256*this[++A]+65536*this[++A]+t*2**24;return BigInt(I)+(BigInt(r)<>>=0,"offset");const e=this[A],t=this[A+7];void 0!==e&&void 0!==t||_(A,this.length-8);const I=e*2**24+65536*this[++A]+256*this[++A]+this[++A],r=this[++A]*2**24+65536*this[++A]+256*this[++A]+t;return(BigInt(I)<>>=0,e>>>=0,t||b(A,e,this.length);let I=this[A],r=1,i=0;for(;++i=r&&(I-=Math.pow(2,8*e)),I},o.prototype.readIntBE=function(A,e,t){A>>>=0,e>>>=0,t||b(A,e,this.length);let I=e,r=1,i=this[A+--I];for(;I>0&&(r*=256);)i+=this[A+--I]*r;return r*=128,i>=r&&(i-=Math.pow(2,8*e)),i},o.prototype.readInt8=function(A,e){return A>>>=0,e||b(A,1,this.length),128&this[A]?-1*(255-this[A]+1):this[A]},o.prototype.readInt16LE=function(A,e){A>>>=0,e||b(A,2,this.length);const t=this[A]|this[A+1]<<8;return 32768&t?4294901760|t:t},o.prototype.readInt16BE=function(A,e){A>>>=0,e||b(A,2,this.length);const t=this[A+1]|this[A]<<8;return 32768&t?4294901760|t:t},o.prototype.readInt32LE=function(A,e){return A>>>=0,e||b(A,4,this.length),this[A]|this[A+1]<<8|this[A+2]<<16|this[A+3]<<24},o.prototype.readInt32BE=function(A,e){return A>>>=0,e||b(A,4,this.length),this[A]<<24|this[A+1]<<16|this[A+2]<<8|this[A+3]},o.prototype.readBigInt64LE=z(function(A){x(A>>>=0,"offset");const e=this[A],t=this[A+7];void 0!==e&&void 0!==t||_(A,this.length-8);const I=this[A+4]+256*this[A+5]+65536*this[A+6]+(t<<24);return(BigInt(I)<>>=0,"offset");const e=this[A],t=this[A+7];void 0!==e&&void 0!==t||_(A,this.length-8);const I=(e<<24)+65536*this[++A]+256*this[++A]+this[++A];return(BigInt(I)<>>=0,e||b(A,4,this.length),r.read(this,A,!0,23,4)},o.prototype.readFloatBE=function(A,e){return A>>>=0,e||b(A,4,this.length),r.read(this,A,!1,23,4)},o.prototype.readDoubleLE=function(A,e){return A>>>=0,e||b(A,8,this.length),r.read(this,A,!0,52,8)},o.prototype.readDoubleBE=function(A,e){return A>>>=0,e||b(A,8,this.length),r.read(this,A,!1,52,8)},o.prototype.writeUintLE=o.prototype.writeUIntLE=function(A,e,t,I){A=+A,e>>>=0,t>>>=0,I||M(this,A,e,t,Math.pow(2,8*t)-1,0);let r=1,i=0;for(this[e]=255&A;++i>>=0,t>>>=0,I||M(this,A,e,t,Math.pow(2,8*t)-1,0);let r=t-1,i=1;for(this[e+r]=255&A;--r>=0&&(i*=256);)this[e+r]=A/i&255;return e+t},o.prototype.writeUint8=o.prototype.writeUInt8=function(A,e,t){return A=+A,e>>>=0,t||M(this,A,e,1,255,0),this[e]=255&A,e+1},o.prototype.writeUint16LE=o.prototype.writeUInt16LE=function(A,e,t){return A=+A,e>>>=0,t||M(this,A,e,2,65535,0),this[e]=255&A,this[e+1]=A>>>8,e+2},o.prototype.writeUint16BE=o.prototype.writeUInt16BE=function(A,e,t){return A=+A,e>>>=0,t||M(this,A,e,2,65535,0),this[e]=A>>>8,this[e+1]=255&A,e+2},o.prototype.writeUint32LE=o.prototype.writeUInt32LE=function(A,e,t){return A=+A,e>>>=0,t||M(this,A,e,4,4294967295,0),this[e+3]=A>>>24,this[e+2]=A>>>16,this[e+1]=A>>>8,this[e]=255&A,e+4},o.prototype.writeUint32BE=o.prototype.writeUInt32BE=function(A,e,t){return A=+A,e>>>=0,t||M(this,A,e,4,4294967295,0),this[e]=A>>>24,this[e+1]=A>>>16,this[e+2]=A>>>8,this[e+3]=255&A,e+4},o.prototype.writeBigUInt64LE=z(function(A,e=0){return R(this,A,e,BigInt(0),BigInt("0xffffffffffffffff"))}),o.prototype.writeBigUInt64BE=z(function(A,e=0){return Y(this,A,e,BigInt(0),BigInt("0xffffffffffffffff"))}),o.prototype.writeIntLE=function(A,e,t,I){if(A=+A,e>>>=0,!I){const I=Math.pow(2,8*t-1);M(this,A,e,t,I-1,-I)}let r=0,i=1,g=0;for(this[e]=255&A;++r>>=0,!I){const I=Math.pow(2,8*t-1);M(this,A,e,t,I-1,-I)}let r=t-1,i=1,g=0;for(this[e+r]=255&A;--r>=0&&(i*=256);)A<0&&0===g&&0!==this[e+r+1]&&(g=1),this[e+r]=(A/i|0)-g&255;return e+t},o.prototype.writeInt8=function(A,e,t){return A=+A,e>>>=0,t||M(this,A,e,1,127,-128),A<0&&(A=255+A+1),this[e]=255&A,e+1},o.prototype.writeInt16LE=function(A,e,t){return A=+A,e>>>=0,t||M(this,A,e,2,32767,-32768),this[e]=255&A,this[e+1]=A>>>8,e+2},o.prototype.writeInt16BE=function(A,e,t){return A=+A,e>>>=0,t||M(this,A,e,2,32767,-32768),this[e]=A>>>8,this[e+1]=255&A,e+2},o.prototype.writeInt32LE=function(A,e,t){return A=+A,e>>>=0,t||M(this,A,e,4,2147483647,-2147483648),this[e]=255&A,this[e+1]=A>>>8,this[e+2]=A>>>16,this[e+3]=A>>>24,e+4},o.prototype.writeInt32BE=function(A,e,t){return A=+A,e>>>=0,t||M(this,A,e,4,2147483647,-2147483648),A<0&&(A=4294967295+A+1),this[e]=A>>>24,this[e+1]=A>>>16,this[e+2]=A>>>8,this[e+3]=255&A,e+4},o.prototype.writeBigInt64LE=z(function(A,e=0){return R(this,A,e,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),o.prototype.writeBigInt64BE=z(function(A,e=0){return Y(this,A,e,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),o.prototype.writeFloatLE=function(A,e,t){return L(this,A,e,!0,t)},o.prototype.writeFloatBE=function(A,e,t){return L(this,A,e,!1,t)},o.prototype.writeDoubleLE=function(A,e,t){return H(this,A,e,!0,t)},o.prototype.writeDoubleBE=function(A,e,t){return H(this,A,e,!1,t)},o.prototype.copy=function(A,e,t,I){if(!o.isBuffer(A))throw new TypeError("argument should be a Buffer");if(t||(t=0),I||0===I||(I=this.length),e>=A.length&&(e=A.length),e||(e=0),I>0&&I=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),A.length-e>>=0,t=void 0===t?this.length:t>>>0,A||(A=0),"number"==typeof A)for(r=e;r=I+4;t-=3)e=`_${A.slice(t-3,t)}${e}`;return`${A.slice(0,t)}${e}`}function T(A,e,t,I,r,i){if(A>t||A3?0===e||e===BigInt(0)?`>= 0${I} and < 2${I} ** ${8*(i+1)}${I}`:`>= -(2${I} ** ${8*(i+1)-1}${I}) and < 2 ** ${8*(i+1)-1}${I}`:`>= ${e}${I} and <= ${t}${I}`,new J.ERR_OUT_OF_RANGE("value",r,A)}!function(A,e,t){x(e,"offset"),void 0!==A[e]&&void 0!==A[e+t]||_(e,A.length-(t+1))}(I,r,i)}function x(A,e){if("number"!=typeof A)throw new J.ERR_INVALID_ARG_TYPE(e,"number",A)}function _(A,e,t){if(Math.floor(A)!==A)throw x(A,t),new J.ERR_OUT_OF_RANGE(t||"offset","an integer",A);if(e<0)throw new J.ERR_BUFFER_OUT_OF_BOUNDS;throw new J.ERR_OUT_OF_RANGE(t||"offset",`>= ${t?1:0} and <= ${e}`,A)}q("ERR_BUFFER_OUT_OF_BOUNDS",function(A){return A?`${A} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),q("ERR_INVALID_ARG_TYPE",function(A,e){return`The "${A}" argument must be of type number. Received type ${typeof e}`},TypeError),q("ERR_OUT_OF_RANGE",function(A,e,t){let I=`The value of "${A}" is out of range.`,r=t;return Number.isInteger(t)&&Math.abs(t)>2**32?r=K(String(t)):"bigint"==typeof t&&(r=String(t),(t>BigInt(2)**BigInt(32)||t<-(BigInt(2)**BigInt(32)))&&(r=K(r)),r+="n"),I+=` It must be ${e}. Received ${r}`,I},RangeError);const V=/[^+/0-9A-Za-z-_]/g;function W(A,e){let t;e=e||1/0;const I=A.length;let r=null;const i=[];for(let g=0;g55295&&t<57344){if(!r){if(t>56319){(e-=3)>-1&&i.push(239,191,189);continue}if(g+1===I){(e-=3)>-1&&i.push(239,191,189);continue}r=t;continue}if(t<56320){(e-=3)>-1&&i.push(239,191,189),r=t;continue}t=65536+(r-55296<<10|t-56320)}else r&&(e-=3)>-1&&i.push(239,191,189);if(r=null,t<128){if((e-=1)<0)break;i.push(t)}else if(t<2048){if((e-=2)<0)break;i.push(t>>6|192,63&t|128)}else if(t<65536){if((e-=3)<0)break;i.push(t>>12|224,t>>6&63|128,63&t|128)}else{if(!(t<1114112))throw new Error("Invalid code point");if((e-=4)<0)break;i.push(t>>18|240,t>>12&63|128,t>>6&63|128,63&t|128)}}return i}function O(A){return I.toByteArray(function(A){if((A=(A=A.split("=")[0]).trim().replace(V,"")).length<2)return"";for(;A.length%4!=0;)A+="=";return A}(A))}function P(A,e,t,I){let r;for(r=0;r=e.length||r>=A.length);++r)e[r+t]=A[r];return r}function Z(A,e){return A instanceof e||null!=A&&null!=A.constructor&&null!=A.constructor.name&&A.constructor.name===e.name}function j(A){return A!=A}const X=function(){const A="0123456789abcdef",e=new Array(256);for(let t=0;t<16;++t){const I=16*t;for(let r=0;r<16;++r)e[I+r]=A[t]+A[r]}return e}();function z(A){return"undefined"==typeof BigInt?$:A}function $(){throw new Error("BigInt not supported")}},251(A,e){e.read=function(A,e,t,I,r){var i,g,n=8*r-I-1,o=(1<>1,C=-7,B=t?r-1:0,s=t?-1:1,E=A[e+B];for(B+=s,i=E&(1<<-C)-1,E>>=-C,C+=n;C>0;i=256*i+A[e+B],B+=s,C-=8);for(g=i&(1<<-C)-1,i>>=-C,C+=I;C>0;g=256*g+A[e+B],B+=s,C-=8);if(0===i)i=1-a;else{if(i===o)return g?NaN:1/0*(E?-1:1);g+=Math.pow(2,I),i-=a}return(E?-1:1)*g*Math.pow(2,i-I)},e.write=function(A,e,t,I,r,i){var g,n,o,a=8*i-r-1,C=(1<>1,s=23===r?Math.pow(2,-24)-Math.pow(2,-77):0,E=I?0:i-1,h=I?1:-1,Q=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(n=isNaN(e)?1:0,g=C):(g=Math.floor(Math.log(e)/Math.LN2),e*(o=Math.pow(2,-g))<1&&(g--,o*=2),(e+=g+B>=1?s/o:s*Math.pow(2,1-B))*o>=2&&(g++,o/=2),g+B>=C?(n=0,g=C):g+B>=1?(n=(e*o-1)*Math.pow(2,r),g+=B):(n=e*Math.pow(2,B-1)*Math.pow(2,r),g=0));r>=8;A[t+E]=255&n,E+=h,n/=256,r-=8);for(g=g<0;A[t+E]=255&g,E+=h,g/=256,a-=8);A[t+E-h]|=128*Q}},54958(A,e,t){var I=t(65606),r=t(48287).Buffer,i=("undefined"!=typeof document&&document.currentScript&&document.currentScript.src,function(A){A=void 0!==(A=A||{})?A:{};var e,i,g,n,o={};for(e in A)A.hasOwnProperty(e)&&(o[e]=A[e]);A.arguments=[],A.thisProgram="./this.program",A.quit=function(A,e){throw e},A.preRun=[],A.postRun=[],i="object"==typeof window,g="function"==typeof importScripts;var a,C,B="";(n="object"==typeof I&&!i&&!g)&&(B="//",A.read=function(A,e){var I;return(I=_A(A))||(a||(a=t(77650)),C||(C=t(43627)),A=C.normalize(A),I=a.readFileSync(A)),e?I:I.toString()},A.readBinary=function(e){var t,I=A.read(e,!0);return I.buffer||(I=new Uint8Array(I)),I.buffer||$A("Assertion failed: "+t),I},I.argv.length>1&&(A.thisProgram=I.argv[1].replace(/\\/g,"/")),A.arguments=I.argv.slice(2),I.on("uncaughtException",function(A){if(!(A instanceof XA))throw A}),I.on("unhandledRejection",$A),A.quit=function(A){I.exit(A)},A.inspect=function(){return"[Emscripten Module object]"});var s=A.print||("undefined"!=typeof console?console.log.bind(console):"undefined"!=typeof print?print:null),E=A.printErr||("undefined"!=typeof printErr?printErr:"undefined"!=typeof console&&console.warn.bind(console)||s);for(e in o)o.hasOwnProperty(e)&&(A[e]=o[e]);o=void 0;var h,Q={"f64-rem":function(A,e){return A%e},debugger:function(){}};new Array(0),"object"!=typeof WebAssembly&&E("no native wasm support detected");var c,u,f,l,y,p,w,d,F,D=!1,m="undefined"!=typeof TextDecoder?new TextDecoder("utf8"):void 0;function S(A,e,t){for(var I=e+t,r=e;A[r]&&!(r>=I);)++r;if(r-e>16&&A.subarray&&m)return m.decode(A.subarray(e,r));for(var i="";e>10,56320|1023&a)}}else i+=String.fromCharCode((31&g)<<6|n)}else i+=String.fromCharCode(g)}return i}function U(A,e){return A?S(f,A,e):""}function k(A,e){return A%e>0&&(A+=e-A%e),A}function G(){A.HEAP8=u=new Int8Array(c),A.HEAP16=l=new Int16Array(c),A.HEAP32=p=new Int32Array(c),A.HEAPU8=f=new Uint8Array(c),A.HEAPU16=y=new Uint16Array(c),A.HEAPU32=w=new Uint32Array(c),A.HEAPF32=d=new Float32Array(c),A.HEAPF64=F=new Float64Array(c)}"undefined"!=typeof TextDecoder&&new TextDecoder("utf-16le");var v=5242880,b=A.TOTAL_MEMORY||16777216;function M(e){for(;e.length>0;){var t=e.shift();if("function"!=typeof t){var I=t.func;"number"==typeof I?void 0===t.arg?A.dynCall_v(I):A.dynCall_vi(I,t.arg):I(void 0===t.arg?null:t.arg)}else t()}}b>2]},getStr:function(){return U(Z.get())},get64:function(){var A=Z.get();return Z.get(),A},getZero:function(){Z.get()}};function j(A){switch(A){case 1:return 0;case 2:return 1;case 4:return 2;case 8:return 3;default:throw new TypeError("Unknown type size: "+A)}}var X=void 0;function z(A){for(var e="",t=A;f[t];)e+=X[f[t++]];return e}var $={},AA={},eA={};function tA(A){if(void 0===A)return"_unknown";var e=(A=A.replace(/[^a-zA-Z0-9_]/g,"$")).charCodeAt(0);return e>=48&&e<=57?"_"+A:A}function IA(A,e){return A=tA(A),new Function("body","return function "+A+'() {\n "use strict"; return body.apply(this, arguments);\n};\n')(e)}function rA(A,e){var t=IA(e,function(A){this.name=e,this.message=A;var t=new Error(A).stack;void 0!==t&&(this.stack=this.toString()+"\n"+t.replace(/^Error(:[^\n]*)?\n/,""))});return t.prototype=Object.create(A.prototype),t.prototype.constructor=t,t.prototype.toString=function(){return void 0===this.message?this.name:this.name+": "+this.message},t}var iA=void 0;function gA(A){throw new iA(A)}var nA=void 0;function oA(A){throw new nA(A)}function aA(A,e,t){function I(e){var I=t(e);I.length!==A.length&&oA("Mismatched type converter count");for(var r=0;r>2])}function FA(A,e,t){if(e===t)return A;if(void 0===t.baseClass)return null;var I=FA(A,e,t.baseClass);return null===I?null:t.downcast(I)}var DA={};function mA(A,e){return e.ptrType&&e.ptr||oA("makeClassHandle requires ptr and ptrType"),!!e.smartPtrType!=!!e.smartPtr&&oA("Both smartPtrType and smartPtr must be specified"),e.count={value:1},Object.create(A,{$$:{value:e}})}function SA(A,e,t,I,r,i,g,n,o,a,C){this.name=A,this.registeredClass=e,this.isReference=t,this.isConst=I,this.isSmartPointer=r,this.pointeeType=i,this.sharingPolicy=g,this.rawGetPointee=n,this.rawConstructor=o,this.rawShare=a,this.rawDestructor=C,r||void 0!==e.baseClass?this.toWireType=pA:I?(this.toWireType=yA,this.destructorFunction=null):(this.toWireType=wA,this.destructorFunction=null)}function UA(e,t,I){A.hasOwnProperty(e)||oA("Replacing nonexistant public symbol"),void 0!==A[e].overloadTable&&void 0!==I?A[e].overloadTable[I]=t:(A[e]=t,A[e].argCount=I)}function kA(e,t){var I;if(e=z(e),void 0!==A["FUNCTION_TABLE_"+e])I=A["FUNCTION_TABLE_"+e][t];else if("undefined"!=typeof FUNCTION_TABLE)I=FUNCTION_TABLE[t];else{var r=A["dynCall_"+e];void 0===r&&void 0===(r=A["dynCall_"+e.replace(/f/g,"d")])&&gA("No dynCall invoker for signature: "+e),I=function(A){for(var I=[],r=1;r4&&0===--NA[A].refcount&&(NA[A]=void 0,YA.push(A))}function HA(A){switch(A){case void 0:return 1;case null:return 2;case!0:return 3;case!1:return 4;default:var e=YA.length?YA.pop():NA.length;return NA[e]={refcount:1,value:A},e}}function JA(A){if(null===A)return"null";var e=typeof A;return"object"===e||"array"===e||"function"===e?A.toString():""+A}function qA(A,e){switch(e){case 2:return function(A){return this.fromWireType(d[A>>2])};case 3:return function(A){return this.fromWireType(F[A>>3])};default:throw new TypeError("Unknown float type: "+A)}}function KA(A,e,t){switch(e){case 0:return t?function(A){return u[A]}:function(A){return f[A]};case 1:return t?function(A){return l[A>>1]}:function(A){return y[A>>1]};case 2:return t?function(A){return p[A>>2]}:function(A){return w[A>>2]};default:throw new TypeError("Unknown integer type: "+A)}}function TA(){return u.length}!function(){for(var A=new Array(256),e=0;e<256;++e)A[e]=String.fromCharCode(e);X=A}(),iA=A.BindingError=rA(Error,"BindingError"),nA=A.InternalError=rA(Error,"InternalError"),QA.prototype.isAliasOf=function(A){if(!(this instanceof QA))return!1;if(!(A instanceof QA))return!1;for(var e=this.$$.ptrType.registeredClass,t=this.$$.ptr,I=A.$$.ptrType.registeredClass,r=A.$$.ptr;e.baseClass;)t=e.upcast(t),e=e.baseClass;for(;I.baseClass;)r=I.upcast(r),I=I.baseClass;return e===I&&t===r},QA.prototype.clone=function(){if(this.$$.ptr||BA(this),this.$$.preservePointerOnDelete)return this.$$.count.value+=1,this;var A,e=Object.create(Object.getPrototypeOf(this),{$$:{value:(A=this.$$,{count:A.count,deleteScheduled:A.deleteScheduled,preservePointerOnDelete:A.preservePointerOnDelete,ptr:A.ptr,ptrType:A.ptrType,smartPtr:A.smartPtr,smartPtrType:A.smartPtrType})}});return e.$$.count.value+=1,e.$$.deleteScheduled=!1,e},QA.prototype.delete=function(){var A;this.$$.ptr||BA(this),this.$$.deleteScheduled&&!this.$$.preservePointerOnDelete&&gA("Object already scheduled for deletion"),this.$$.count.value-=1,0===this.$$.count.value&&((A=this.$$).smartPtr?A.smartPtrType.rawDestructor(A.smartPtr):A.ptrType.registeredClass.rawDestructor(A.ptr)),this.$$.preservePointerOnDelete||(this.$$.smartPtr=void 0,this.$$.ptr=void 0)},QA.prototype.isDeleted=function(){return!this.$$.ptr},QA.prototype.deleteLater=function(){return this.$$.ptr||BA(this),this.$$.deleteScheduled&&!this.$$.preservePointerOnDelete&&gA("Object already scheduled for deletion"),EA.push(this),1===EA.length&&sA&&sA(hA),this.$$.deleteScheduled=!0,this},SA.prototype.getPointee=function(A){return this.rawGetPointee&&(A=this.rawGetPointee(A)),A},SA.prototype.destructor=function(A){this.rawDestructor&&this.rawDestructor(A)},SA.prototype.argPackAdvance=8,SA.prototype.readValueFromPointer=dA,SA.prototype.deleteObject=function(A){null!==A&&A.delete()},SA.prototype.fromWireType=function(A){var e=this.getPointee(A);if(!e)return this.destructor(A),null;var t=function(A,e){return e=function(A,e){for(void 0===e&&gA("ptr should not be undefined");A.baseClass;)e=A.upcast(e),A=A.baseClass;return e}(A,e),DA[e]}(this.registeredClass,e);if(void 0!==t){if(0===t.$$.count.value)return t.$$.ptr=e,t.$$.smartPtr=A,t.clone();var I=t.clone();return this.destructor(A),I}function r(){return this.isSmartPointer?mA(this.registeredClass.instancePrototype,{ptrType:this.pointeeType,ptr:e,smartPtrType:this,smartPtr:A}):mA(this.registeredClass.instancePrototype,{ptrType:this,ptr:A})}var i,g=this.registeredClass.getActualType(e),n=cA[g];if(!n)return r.call(this);i=this.isConst?n.constPointerType:n.pointerType;var o=FA(e,this.registeredClass,i.registeredClass);return null===o?r.call(this):this.isSmartPointer?mA(i.registeredClass.instancePrototype,{ptrType:i,ptr:o,smartPtrType:this,smartPtr:A}):mA(i.registeredClass.instancePrototype,{ptrType:i,ptr:o})},A.getInheritedInstanceCount=function(){return Object.keys(DA).length},A.getLiveInheritedInstances=function(){var A=[];for(var e in DA)DA.hasOwnProperty(e)&&A.push(DA[e]);return A},A.flushPendingDeletes=hA,A.setDelayFunction=function(A){sA=A,EA.length&&sA&&sA(hA)},GA=A.UnboundTypeError=rA(Error,"UnboundTypeError"),A.count_emval_handles=function(){for(var A=0,e=5;e>4,t=(15&r)<<4|(i=n.indexOf(A.charAt(a++)))>>2,I=(3&i)<<6|(g=n.indexOf(A.charAt(a++))),o+=String.fromCharCode(e),64!==i&&(o+=String.fromCharCode(t)),64!==g&&(o+=String.fromCharCode(I))}while(a>2]=e),e},u:function(A,e){Z.varargs=e;try{var t=Z.getStreamFromFD(),I=(Z.get(),Z.get()),r=Z.get(),i=Z.get(),g=I;return FS.llseek(t,g,i),p[r>>2]=t.position,t.getdents&&0===g&&0===i&&(t.getdents=null),0}catch(A){return"undefined"!=typeof FS&&A instanceof FS.ErrnoError||$A(A),-A.errno}},h:function(A,e){Z.varargs=e;try{for(var t=Z.get(),I=Z.get(),r=Z.get(),i=0,g=0;g>2],o=p[I+(8*g+4)>>2],a=0;a>i])},destructorFunction:null})},n:function(A,e,t,I,r,i,g,n,o,a,C,B,s){C=z(C),i=kA(r,i),n&&(n=kA(g,n)),a&&(a=kA(o,a)),s=kA(B,s);var E=tA(C);uA(E,function(){bA("Cannot construct "+C+" due to unbound types",[I])}),aA([A,e,t],I?[I]:[],function(e){var t,r;e=e[0],r=I?(t=e.registeredClass).instancePrototype:QA.prototype;var g=IA(E,function(){if(Object.getPrototypeOf(this)!==o)throw new iA("Use 'new' to construct "+C);if(void 0===B.constructor_body)throw new iA(C+" has no accessible constructor");var A=B.constructor_body[arguments.length];if(void 0===A)throw new iA("Tried to invoke ctor of "+C+" with invalid number of parameters ("+arguments.length+") - expected ("+Object.keys(B.constructor_body).toString()+") parameters instead!");return A.apply(this,arguments)}),o=Object.create(r,{constructor:{value:g}});g.prototype=o;var B=new fA(C,g,o,s,t,i,n,a),h=new SA(C,B,!0,!1,!1),Q=new SA(C+"*",B,!1,!1,!1),c=new SA(C+" const*",B,!1,!0,!1);return cA[A]={pointerType:Q,constPointerType:c},UA(E,g),[h,Q,c]})},e:function(A,e,t,I,r,i,g,n,o,a){e=z(e),r=kA(I,r),aA([],[A],function(A){var I=(A=A[0]).name+"."+e,C={get:function(){bA("Cannot access "+I+" due to unbound types",[t,g])},enumerable:!0,configurable:!0};return C.set=o?function(){bA("Cannot access "+I+" due to unbound types",[t,g])}:function(A){gA(I+" is a read-only property")},Object.defineProperty(A.registeredClass.instancePrototype,e,C),aA([],o?[t,g]:[t],function(t){var g=t[0],C={get:function(){var e=RA(this,A,I+" getter");return g.fromWireType(r(i,e))},enumerable:!0};if(o){o=kA(n,o);var B=t[1];C.set=function(e){var t=RA(this,A,I+" setter"),r=[];o(a,t,B.toWireType(r,e)),MA(r)}}return Object.defineProperty(A.registeredClass.instancePrototype,e,C),[]}),[]})},m:function(A,e){CA(A,{name:e=z(e),fromWireType:function(A){var e=NA[A].value;return LA(A),e},toWireType:function(A,e){return HA(e)},argPackAdvance:8,readValueFromPointer:dA,destructorFunction:null})},g:function(A,e,t){var I=j(t);CA(A,{name:e=z(e),fromWireType:function(A){return A},toWireType:function(A,e){if("number"!=typeof e&&"boolean"!=typeof e)throw new TypeError('Cannot convert "'+JA(e)+'" to '+this.name);return e},argPackAdvance:8,readValueFromPointer:qA(e,I),destructorFunction:null})},k:function(A,e,t,I,r,i){var g=function(A,e){for(var t=[],I=0;I>2)+I]);return t}(e,t);A=z(A),r=kA(I,r),uA(A,function(){bA("Cannot call "+A+" due to unbound types",g)},e-1),aA([],g,function(t){var I=[t[0],null].concat(t.slice(1));return UA(A,function(A,e,t,I,r){var i=e.length;i<2&&gA("argTypes array size mismatch! Must at least get return value and 'this' types!");for(var g=null!==e[1]&&null!==t,n=!1,o=1;o0?", ":"")+B),s+=(a?"var rv = ":"")+"invoker(fn"+(B.length>0?", ":"")+B+");\n",n)s+="runDestructors(destructors);\n";else for(o=g?1:2;o>>n}}var o=-1!=e.indexOf("unsigned");CA(A,{name:e,fromWireType:g,toWireType:function(A,t){if("number"!=typeof t&&"boolean"!=typeof t)throw new TypeError('Cannot convert "'+JA(t)+'" to '+this.name);if(tr)throw new TypeError('Passing a number "'+JA(t)+'" from JS side to C/C++ side to an argument of type "'+e+'", which is outside the valid range ['+I+", "+r+"]!");return o?t>>>0:0|t},argPackAdvance:8,readValueFromPointer:KA(e,i,0!==I),destructorFunction:null})},b:function(A,e,t){var I=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array][e];function r(A){var e=w,t=e[A>>=2],r=e[A+1];return new I(e.buffer,r,t)}CA(A,{name:t=z(t),fromWireType:r,argPackAdvance:8,readValueFromPointer:r},{ignoreDuplicateRegistrations:!0})},j:function(A,e){var t="std::string"===(e=z(e));CA(A,{name:e,fromWireType:function(A){var e,I=w[A>>2];if(t){var r=f[A+4+I],i=0;0!=r&&(i=r,f[A+4+I]=0);for(var g=A+4,n=0;n<=I;++n){var o=A+4+n;if(0==f[o]){var a=U(g);void 0===e?e=a:(e+=String.fromCharCode(0),e+=a),g=o+1}}0!=i&&(f[A+4+I]=i)}else{var C=new Array(I);for(n=0;n=55296&&I<=57343&&(I=65536+((1023&I)<<10)|1023&A.charCodeAt(++t)),I<=127?++e:e+=I<=2047?2:I<=65535?3:4}return e}(e)}:function(){return e.length};var i=I(),g=ZA(4+i+1);if(w[g>>2]=i,t&&r)!function(A,e,t,I){if(!(I>0))return 0;for(var r=t+I-1,i=0;i=55296&&g<=57343&&(g=65536+((1023&g)<<10)|1023&A.charCodeAt(++i)),g<=127){if(t>=r)break;e[t++]=g}else if(g<=2047){if(t+1>=r)break;e[t++]=192|g>>6,e[t++]=128|63&g}else if(g<=65535){if(t+2>=r)break;e[t++]=224|g>>12,e[t++]=128|g>>6&63,e[t++]=128|63&g}else{if(t+3>=r)break;e[t++]=240|g>>18,e[t++]=128|g>>12&63,e[t++]=128|g>>6&63,e[t++]=128|63&g}}e[t]=0}(e,f,g+4,i+1);else if(r)for(var n=0;n255&&(PA(g),gA("String has UTF-16 code units that do not fit in 8 bits")),f[g+4+n]=o}else for(n=0;n>2],i=new Array(t),g=A+4>>r,n=0;n>2]=g;for(var o=n+4>>r,a=0;a4&&(NA[A].refcount+=1)},v:function(A,e){var t,I;return void 0===(I=AA[t=A])&&gA("_emval_take_value has unknown type "+vA(t)),HA((A=I).readValueFromPointer(e))},f:function(){A.abort()},t:TA,s:function(A,e,t){f.set(f.subarray(e,e+t),A)},r:function(A){var e=TA(),t=2147418112;if(A>t)return!1;for(var I=Math.max(e,16777216);I0||(function(){if(A.preRun)for("function"==typeof A.preRun&&(A.preRun=[A.preRun]);A.preRun.length;)J(A.preRun.shift());M(R)}(),K>0||A.calledRun||(A.setStatus?(A.setStatus("Running..."),setTimeout(function(){setTimeout(function(){A.setStatus("")},1),t()},1)):t()))}function $A(e){throw A.onAbort&&A.onAbort(e),void 0!==e?(s(e),E(e),e=JSON.stringify(e)):e="",D=!0,"abort("+e+"). Build with -s ASSERTIONS=1 for more info."}if(A.dynCall_ii=function(){return A.asm.D.apply(null,arguments)},A.dynCall_iii=function(){return A.asm.E.apply(null,arguments)},A.dynCall_iiii=function(){return A.asm.F.apply(null,arguments)},A.dynCall_iiiii=function(){return A.asm.G.apply(null,arguments)},A.dynCall_v=function(){return A.asm.H.apply(null,arguments)},A.dynCall_vi=function(){return A.asm.I.apply(null,arguments)},A.dynCall_vii=function(){return A.asm.J.apply(null,arguments)},A.dynCall_viii=function(){return A.asm.K.apply(null,arguments)},A.dynCall_viiii=function(){return A.asm.L.apply(null,arguments)},A.dynCall_viiiii=function(){return A.asm.M.apply(null,arguments)},A.dynCall_viiiiii=function(){return A.asm.N.apply(null,arguments)},A.asm=WA,A.then=function(e){if(A.calledRun)e(A);else{var t=A.onRuntimeInitialized;A.onRuntimeInitialized=function(){t&&t(),e(A)}}return A},XA.prototype=new Error,XA.prototype.constructor=XA,x=function e(){A.calledRun||zA(),A.calledRun||(x=e)},A.run=zA,A.abort=$A,A.preInit)for("function"==typeof A.preInit&&(A.preInit=[A.preInit]);A.preInit.length>0;)A.preInit.pop()();return A.noExitRuntime=!0,zA(),A});A.exports=i},73065(A,e,t){var I,r;!function(){"use strict";I=function(){var A=function(){},e="undefined",t=typeof window!==e&&typeof window.navigator!==e&&/Trident\/|MSIE /.test(window.navigator.userAgent),I=["trace","debug","info","warn","error"],r={},i=null;function g(A,e){var t=A[e];if("function"==typeof t.bind)return t.bind(A);try{return Function.prototype.bind.call(t,A)}catch(e){return function(){return Function.prototype.apply.apply(t,[A,arguments])}}}function n(){console.log&&(console.log.apply?console.log.apply(console,arguments):Function.prototype.apply.apply(console.log,[console,arguments])),console.trace&&console.trace()}function o(){for(var t=this.getLevel(),r=0;r=0&&e<=B.levels.SILENT)return e;throw new TypeError("log.setLevel() called with invalid level: "+A)}"string"==typeof A?s+=":"+A:"symbol"==typeof A&&(s=void 0),B.name=A,B.levels={TRACE:0,DEBUG:1,INFO:2,WARN:3,ERROR:4,SILENT:5},B.methodFactory=t||C,B.getLevel=function(){return null!=a?a:null!=n?n:g},B.setLevel=function(A,t){return a=h(A),!1!==t&&function(A){var t=(I[A]||"silent").toUpperCase();if(typeof window!==e&&s){try{return void(window.localStorage[s]=t)}catch(A){}try{window.document.cookie=encodeURIComponent(s)+"="+t+";"}catch(A){}}}(a),o.call(B)},B.setDefaultLevel=function(A){n=h(A),E()||B.setLevel(A,!1)},B.resetLevel=function(){a=null,function(){if(typeof window!==e&&s){try{window.localStorage.removeItem(s)}catch(A){}try{window.document.cookie=encodeURIComponent(s)+"=; expires=Thu, 01 Jan 1970 00:00:00 UTC"}catch(A){}}}(),o.call(B)},B.enableAll=function(A){B.setLevel(B.levels.TRACE,A)},B.disableAll=function(A){B.setLevel(B.levels.SILENT,A)},B.rebuild=function(){if(i!==B&&(g=h(i.getLevel())),o.call(B),i===B)for(var A in r)r[A].rebuild()},g=h(i?i.getLevel():"WARN");var Q=E();null!=Q&&(a=h(Q)),o.call(B)}(i=new B).getLogger=function(A){if("symbol"!=typeof A&&"string"!=typeof A||""===A)throw new TypeError("You must supply a name when creating a logger.");var e=r[A];return e||(e=r[A]=new B(A,i.methodFactory)),e};var s=typeof window!==e?window.log:void 0;return i.noConflict=function(){return typeof window!==e&&window.log===i&&(window.log=s),i},i.getLoggers=function(){return r},i.default=i,i},void 0===(r=I.call(e,t,e,A))||(A.exports=r)}()},32992(A,e,t){var I,r=function(){var A=String.fromCharCode,e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-$",I={};function r(A,e){if(!I[A]){I[A]={};for(var t=0;t>>8,t[2*I+1]=g%256}return t},decompressFromUint8Array:function(e){if(null==e)return i.decompress(e);for(var t=new Array(e.length/2),I=0,r=t.length;I>=1}else{for(r=1,I=0;I>=1}0==--B&&(B=Math.pow(2,E),E++),delete n[C]}else for(r=g[C],I=0;I>=1;0==--B&&(B=Math.pow(2,E),E++),g[a]=s++,C=String(o)}if(""!==C){if(Object.prototype.hasOwnProperty.call(n,C)){if(C.charCodeAt(0)<256){for(I=0;I>=1}else{for(r=1,I=0;I>=1}0==--B&&(B=Math.pow(2,E),E++),delete n[C]}else for(r=g[C],I=0;I>=1;0==--B&&(B=Math.pow(2,E),E++)}for(r=2,I=0;I>=1;for(;;){if(Q<<=1,c==e-1){h.push(t(Q));break}c++}return h.join("")},decompress:function(A){return null==A?"":""==A?null:i._decompress(A.length,32768,function(e){return A.charCodeAt(e)})},_decompress:function(e,t,I){var r,i,g,n,o,a,C,B=[],s=4,E=4,h=3,Q="",c=[],u={val:I(0),position:t,index:1};for(r=0;r<3;r+=1)B[r]=r;for(g=0,o=Math.pow(2,2),a=1;a!=o;)n=u.val&u.position,u.position>>=1,0==u.position&&(u.position=t,u.val=I(u.index++)),g|=(n>0?1:0)*a,a<<=1;switch(g){case 0:for(g=0,o=Math.pow(2,8),a=1;a!=o;)n=u.val&u.position,u.position>>=1,0==u.position&&(u.position=t,u.val=I(u.index++)),g|=(n>0?1:0)*a,a<<=1;C=A(g);break;case 1:for(g=0,o=Math.pow(2,16),a=1;a!=o;)n=u.val&u.position,u.position>>=1,0==u.position&&(u.position=t,u.val=I(u.index++)),g|=(n>0?1:0)*a,a<<=1;C=A(g);break;case 2:return""}for(B[3]=C,i=C,c.push(C);;){if(u.index>e)return"";for(g=0,o=Math.pow(2,h),a=1;a!=o;)n=u.val&u.position,u.position>>=1,0==u.position&&(u.position=t,u.val=I(u.index++)),g|=(n>0?1:0)*a,a<<=1;switch(C=g){case 0:for(g=0,o=Math.pow(2,8),a=1;a!=o;)n=u.val&u.position,u.position>>=1,0==u.position&&(u.position=t,u.val=I(u.index++)),g|=(n>0?1:0)*a,a<<=1;B[E++]=A(g),C=E-1,s--;break;case 1:for(g=0,o=Math.pow(2,16),a=1;a!=o;)n=u.val&u.position,u.position>>=1,0==u.position&&(u.position=t,u.val=I(u.index++)),g|=(n>0?1:0)*a,a<<=1;B[E++]=A(g),C=E-1,s--;break;case 2:return c.join("")}if(0==s&&(s=Math.pow(2,h),h++),B[C])Q=B[C];else{if(C!==E)return null;Q=i+i.charAt(0)}c.push(Q),B[E++]=i+Q.charAt(0),i=Q,0==--s&&(s=Math.pow(2,h),h++)}}};return i}();void 0===(I=function(){return r}.call(e,t,e,A))||(A.exports=I)},95404(A,e,t){var I=t(80255),r=t(91144),i=65536,g=B(5<<20),n=function(){try{return new Uint32Array(i)}catch(t){for(var A=new Array(i),e=0;e>4&7;if(void 0===C[g])throw new Error("invalid block size "+g);var n=C[g];if(i)return r.readU64(A,e);e++;for(var B=0;;){var s=r.readU32(A,e);if(e+=4,B+=s&a?s&=2147483647:n,0===s)return B;I&&(e+=4),e+=s}},e.makeBuffer=B,e.decompressBlock=function(A,e,t,I,r){var i,g,n,o,a;for(n=t+I;t>4;if(B>0){if(15===B)for(;B+=A[t],255===A[t++];);for(o=t+B;t=n)break;if(i=15&C,g=A[t++]|A[t++]<<8,15===i)for(;i+=A[t],255===A[t++];);for(o=(a=r-g)+(i+=4);a=13)for(var h=67;t+4>>0;if(g=i[c=(c>>16^c)>>>0&65535]-1,i[c]=t+1,g<0||t-g>>>16>0||r.readU32(A,g)!==Q)t+=h++>>6;else{for(h=67,C=t-n,a=t-g,g+=4,o=t+=4;t=15){for(e[B++]=240+u,E=C-15;E>=255;E-=255)e[B++]=255;e[B++]=E}else e[B++]=(C<<4)+u;for(var f=0;f>8,o>=15){for(E=o-15;E>=255;E-=255)e[B++]=255;e[B++]=E}n=t}}if(0===n)return 0;if((C=s-n)>=15){for(e[B++]=240,E=C-15;E>=255;E-=255)e[B++]=255;e[B++]=E}else e[B++]=C<<4;for(t=n;t>4&7;if(void 0===C[E])throw new Error("invalid block size");for(g&&(B+=8),B++;;){var h;if(h=r.readU32(A,B),B+=4,0===h)break;if(I&&(B+=4),0!==(h&a)){h&=2147483647;for(var Q=0;Q>8,a++;var B=C[7],s=A.length,E=0;for(function(){for(var A=0;A0;){var h,Q=s>B?B:s;if((h=e.compressBlock(A,g,E,Q,n))>Q||0===h){r.writeU32(t,a,2147483648|Q),a+=4;for(var c=E+Q;E>>19)+(A<<5)|0)-744332180^A<<9)-42973499+(A<<3)|0)^A>>>16},e.readU64=function(A,e){var t=0;return t|=0|A[e++],t|=A[e++]<<8,t|=A[e++]<<16,t|=A[e++]<<24,t|=A[e++]<<32,t|=A[e++]<<40,(t|=A[e++]<<48)|A[e++]<<56},e.readU32=function(A,e){var t=0;return t|=0|A[e++],t|=A[e++]<<8,(t|=A[e++]<<16)|A[e++]<<24},e.writeU32=function(A,e,t){A[e++]=255&t,A[e++]=t>>8&255,A[e++]=t>>16&255,A[e++]=t>>24&255},e.imul=function(A,e){var t=65535&A,I=65535&e;return t*I+((A>>>16)*I+t*(e>>>16)<<16)|0}},80255(A,e,t){var I=t(91144),r=2654435761,i=2246822519,g=3266489917,n=374761393;function o(A,e){return(A|=0)>>>(32-(e|=0)|0)|A<>>(32-e|0)|A<>>(e|=0)^A}function B(A,e,t,r,i){return a(I.imul(e,t)+A,r,i)}function s(A,e,t){return a(A+I.imul(e[t],n),11,r)}function E(A,e,t){return B(A,I.readU32(e,t),g,17,668265263)}function h(A,e,t){return[B(A[0],I.readU32(e,t+0),i,13,r),B(A[1],I.readU32(e,t+4),i,13,r),B(A[2],I.readU32(e,t+8),i,13,r),B(A[3],I.readU32(e,t+12),i,13,r)]}e.hash=function(A,e,t,a){var B,Q;if(Q=a,a>=16){for(B=[A+r+i,A+i,A,A-r];a>=16;)B=h(B,e,t),t+=16,a-=16;B=o(B[0],1)+o(B[1],7)+o(B[2],12)+o(B[3],18)+Q}else B=A+n+a>>>0;for(;a>=4;)B=E(B,e,t),t+=4,a-=4;for(;a>0;)B=s(B,e,t),t++,a--;return(B=C(I.imul(C(I.imul(C(B,15),i),13),g),16))>>>0}},7599(A){"function"==typeof Object.create?A.exports=function(A,e){A.super_=e,A.prototype=Object.create(e.prototype,{constructor:{value:A,enumerable:!1,writable:!0,configurable:!0}})}:A.exports=function(A,e){A.super_=e;var t=function(){};t.prototype=e.prototype,A.prototype=new t,A.prototype.constructor=A}},73016(A){A.exports=function(A){return A&&"object"==typeof A&&"function"==typeof A.copy&&"function"==typeof A.fill&&"function"==typeof A.readUInt8}},66920(A,e,t){var I=t(65606),r=/%[sdj%]/g;e.format=function(A){if(!u(A)){for(var e=[],t=0;t=i)return A;switch(A){case"%s":return String(I[t++]);case"%d":return Number(I[t++]);case"%j":try{return JSON.stringify(I[t++])}catch(A){return"[Circular]"}default:return A}}),o=I[t];t=3&&(I.depth=arguments[2]),arguments.length>=4&&(I.colors=arguments[3]),h(t)?I.showHidden=t:t&&e._extend(I,t),f(I.showHidden)&&(I.showHidden=!1),f(I.depth)&&(I.depth=2),f(I.colors)&&(I.colors=!1),f(I.customInspect)&&(I.customInspect=!0),I.colors&&(I.stylize=o),C(I,A,I.depth)}function o(A,e){var t=n.styles[e];return t?"["+n.colors[t][0]+"m"+A+"["+n.colors[t][1]+"m":A}function a(A,e){return A}function C(A,t,I){if(A.customInspect&&t&&d(t.inspect)&&t.inspect!==e.inspect&&(!t.constructor||t.constructor.prototype!==t)){var r=t.inspect(I,A);return u(r)||(r=C(A,r,I)),r}var i=function(A,e){if(f(e))return A.stylize("undefined","undefined");if(u(e)){var t="'"+JSON.stringify(e).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return A.stylize(t,"string")}return c(e)?A.stylize(""+e,"number"):h(e)?A.stylize(""+e,"boolean"):Q(e)?A.stylize("null","null"):void 0}(A,t);if(i)return i;var g=Object.keys(t),n=function(A){var e={};return A.forEach(function(A,t){e[A]=!0}),e}(g);if(A.showHidden&&(g=Object.getOwnPropertyNames(t)),w(t)&&(g.indexOf("message")>=0||g.indexOf("description")>=0))return B(t);if(0===g.length){if(d(t)){var o=t.name?": "+t.name:"";return A.stylize("[Function"+o+"]","special")}if(l(t))return A.stylize(RegExp.prototype.toString.call(t),"regexp");if(p(t))return A.stylize(Date.prototype.toString.call(t),"date");if(w(t))return B(t)}var a,y="",F=!1,D=["{","}"];return E(t)&&(F=!0,D=["[","]"]),d(t)&&(y=" [Function"+(t.name?": "+t.name:"")+"]"),l(t)&&(y=" "+RegExp.prototype.toString.call(t)),p(t)&&(y=" "+Date.prototype.toUTCString.call(t)),w(t)&&(y=" "+B(t)),0!==g.length||F&&0!=t.length?I<0?l(t)?A.stylize(RegExp.prototype.toString.call(t),"regexp"):A.stylize("[Object]","special"):(A.seen.push(t),a=F?function(A,e,t,I,r){for(var i=[],g=0,n=e.length;g60?t[0]+(""===e?"":e+"\n ")+" "+A.join(",\n ")+" "+t[1]:t[0]+e+" "+A.join(", ")+" "+t[1]}(a,y,D)):D[0]+y+D[1]}function B(A){return"["+Error.prototype.toString.call(A)+"]"}function s(A,e,t,I,r,i){var g,n,o;if((o=Object.getOwnPropertyDescriptor(e,r)||{value:e[r]}).get?n=o.set?A.stylize("[Getter/Setter]","special"):A.stylize("[Getter]","special"):o.set&&(n=A.stylize("[Setter]","special")),S(I,r)||(g="["+r+"]"),n||(A.seen.indexOf(o.value)<0?(n=Q(t)?C(A,o.value,null):C(A,o.value,t-1)).indexOf("\n")>-1&&(n=i?n.split("\n").map(function(A){return" "+A}).join("\n").substr(2):"\n"+n.split("\n").map(function(A){return" "+A}).join("\n")):n=A.stylize("[Circular]","special")),f(g)){if(i&&r.match(/^\d+$/))return n;(g=JSON.stringify(""+r)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(g=g.substr(1,g.length-2),g=A.stylize(g,"name")):(g=g.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),g=A.stylize(g,"string"))}return g+": "+n}function E(A){return Array.isArray(A)}function h(A){return"boolean"==typeof A}function Q(A){return null===A}function c(A){return"number"==typeof A}function u(A){return"string"==typeof A}function f(A){return void 0===A}function l(A){return y(A)&&"[object RegExp]"===F(A)}function y(A){return"object"==typeof A&&null!==A}function p(A){return y(A)&&"[object Date]"===F(A)}function w(A){return y(A)&&("[object Error]"===F(A)||A instanceof Error)}function d(A){return"function"==typeof A}function F(A){return Object.prototype.toString.call(A)}function D(A){return A<10?"0"+A.toString(10):A.toString(10)}e.debuglog=function(A){if(f(i)&&(i=I.env.NODE_DEBUG||""),A=A.toUpperCase(),!g[A])if(new RegExp("\\b"+A+"\\b","i").test(i)){var t=I.pid;g[A]=function(){var I=e.format.apply(e,arguments);console.error("%s %d: %s",A,t,I)}}else g[A]=function(){};return g[A]},e.inspect=n,n.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},n.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},e.isArray=E,e.isBoolean=h,e.isNull=Q,e.isNullOrUndefined=function(A){return null==A},e.isNumber=c,e.isString=u,e.isSymbol=function(A){return"symbol"==typeof A},e.isUndefined=f,e.isRegExp=l,e.isObject=y,e.isDate=p,e.isError=w,e.isFunction=d,e.isPrimitive=function(A){return null===A||"boolean"==typeof A||"number"==typeof A||"string"==typeof A||"symbol"==typeof A||void 0===A},e.isBuffer=t(73016);var m=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function S(A,e){return Object.prototype.hasOwnProperty.call(A,e)}e.log=function(){var A,t;console.log("%s - %s",(t=[D((A=new Date).getHours()),D(A.getMinutes()),D(A.getSeconds())].join(":"),[A.getDate(),m[A.getMonth()],t].join(" ")),e.format.apply(e,arguments))},e.inherits=t(7599),e._extend=function(A,e){if(!e||!y(e))return A;for(var t=Object.keys(e),I=t.length;I--;)A[t[I]]=e[t[I]];return A}},43627(A,e,t){"use strict";var I=t(65606),r="win32"===I.platform,i=t(66920);function g(A,e){for(var t=[],I=0;I=0&&!A[I];I--);return 0===t&&I===e?A:t>I?[]:A.slice(t,I+1)}var o=/^([a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/]+[^\\\/]+)?([\\\/])?([\s\S]*?)$/,a=/^([\s\S]*?)((?:\.{1,2}|[^\\\/]+?|)(\.[^.\/\\]*|))(?:[\\\/]*)$/,C={};function B(A){var e=o.exec(A),t=(e[1]||"")+(e[2]||""),I=e[3]||"",r=a.exec(I);return[t,r[1],r[2],r[3]]}function s(A){var e=o.exec(A),t=e[1]||"",I=!!t&&":"!==t[1];return{device:t,isUnc:I,isAbsolute:I||!!e[2],tail:e[3]}}function E(A){return"\\\\"+A.replace(/^[\\\/]+/,"").replace(/[\\\/]+/g,"\\")}C.resolve=function(){for(var A="",e="",t=!1,r=arguments.length-1;r>=-1;r--){var n;if(r>=0?n=arguments[r]:A?(n=I.env["="+A])&&n.substr(0,3).toLowerCase()===A.toLowerCase()+"\\"||(n=A+"\\"):n=I.cwd(),!i.isString(n))throw new TypeError("Arguments to path.resolve must be strings");if(n){var o=s(n),a=o.device,C=o.isUnc,B=o.isAbsolute,h=o.tail;if((!a||!A||a.toLowerCase()===A.toLowerCase())&&(A||(A=a),t||(e=h+"\\"+e,t=B),A&&t))break}}return C&&(A=E(A)),A+(t?"\\":"")+(e=g(e.split(/[\\\/]+/),!t).join("\\"))||"."},C.normalize=function(A){var e=s(A),t=e.device,I=e.isUnc,r=e.isAbsolute,i=e.tail,n=/[\\\/]$/.test(i);return(i=g(i.split(/[\\\/]+/),!r).join("\\"))||r||(i="."),i&&n&&(i+="\\"),I&&(t=E(t)),t+(r?"\\":"")+i},C.isAbsolute=function(A){return s(A).isAbsolute},C.join=function(){for(var A=[],e=0;e=-1&&!e;t--){var r=t>=0?arguments[t]:I.cwd();if(!i.isString(r))throw new TypeError("Arguments to path.resolve must be strings");r&&(A=r+"/"+A,e="/"===r[0])}return(e?"/":"")+(A=g(A.split("/"),!e).join("/"))||"."},Q.normalize=function(A){var e=Q.isAbsolute(A),t=A&&"/"===A[A.length-1];return(A=g(A.split("/"),!e).join("/"))||e||(A="."),A&&t&&(A+="/"),(e?"/":"")+A},Q.isAbsolute=function(A){return"/"===A.charAt(0)},Q.join=function(){for(var A="",e=0;e1)for(var t=1;t=55296&&e<=56319&&r=55296&&A<=57343)throw Error("Lone surrogate U+"+A.toString(16).toUpperCase()+" is not a scalar value")}function n(A,e){return r(A>>e&63|128)}function o(A){if(!(4294967168&A))return r(A);var e="";return 4294965248&A?4294901760&A?4292870144&A||(e=r(A>>18&7|240),e+=n(A,12),e+=n(A,6)):(g(A),e=r(A>>12&15|224),e+=n(A,6)):e=r(A>>6&31|192),e+r(63&A|128)}function a(){if(I>=t)throw Error("Invalid byte index");var A=255&e[I];if(I++,128==(192&A))return 63&A;throw Error("Invalid continuation byte")}function C(){var A,r;if(I>t)throw Error("Invalid byte index");if(I==t)return!1;if(A=255&e[I],I++,!(128&A))return A;if(192==(224&A)){if((r=(31&A)<<6|a())>=128)return r;throw Error("Invalid continuation byte")}if(224==(240&A)){if((r=(15&A)<<12|a()<<6|a())>=2048)return g(r),r;throw Error("Invalid continuation byte")}if(240==(248&A)&&(r=(7&A)<<18|a()<<12|a()<<6|a())>=65536&&r<=1114111)return r;throw Error("Invalid UTF-8 detected")}A.version="3.0.0",A.encode=function(A){for(var e=i(A),t=e.length,I=-1,r="";++I65535&&(i+=r((e-=65536)>>>10&1023|55296),e=56320|1023&e),i+=r(e);return i}(n)}}(e)},20602(){(function(){"use strict";function A(A){throw A}var e=void 0,t=this;function I(A,I){var r,i=A.split("."),g=t;!(i[0]in g)&&g.execScript&&g.execScript("var "+i[0]);for(;i.length&&(r=i.shift());)i.length||I===e?g=g[r]?g[r]:g[r]={}:g[r]=I}var r,i="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Uint32Array&&"undefined"!=typeof DataView;for(new(i?Uint8Array:Array)(256),r=0;256>r;++r)for(var g=(g=r)>>>1;g;g>>>=1);function n(A,e,t){var I,r="number"==typeof e?e:e=0,i="number"==typeof t?t:A.length;for(I=-1,r=7&i;r--;++e)I=I>>>8^a[255&(I^A[e])];for(r=i>>3;r--;e+=8)I=(I=(I=(I=(I=(I=(I=(I=I>>>8^a[255&(I^A[e])])>>>8^a[255&(I^A[e+1])])>>>8^a[255&(I^A[e+2])])>>>8^a[255&(I^A[e+3])])>>>8^a[255&(I^A[e+4])])>>>8^a[255&(I^A[e+5])])>>>8^a[255&(I^A[e+6])])>>>8^a[255&(I^A[e+7])];return(4294967295^I)>>>0}var o=[0,1996959894,3993919788,2567524794,124634137,1886057615,3915621685,2657392035,249268274,2044508324,3772115230,2547177864,162941995,2125561021,3887607047,2428444049,498536548,1789927666,4089016648,2227061214,450548861,1843258603,4107580753,2211677639,325883990,1684777152,4251122042,2321926636,335633487,1661365465,4195302755,2366115317,997073096,1281953886,3579855332,2724688242,1006888145,1258607687,3524101629,2768942443,901097722,1119000684,3686517206,2898065728,853044451,1172266101,3705015759,2882616665,651767980,1373503546,3369554304,3218104598,565507253,1454621731,3485111705,3099436303,671266974,1594198024,3322730930,2970347812,795835527,1483230225,3244367275,3060149565,1994146192,31158534,2563907772,4023717930,1907459465,112637215,2680153253,3904427059,2013776290,251722036,2517215374,3775830040,2137656763,141376813,2439277719,3865271297,1802195444,476864866,2238001368,4066508878,1812370925,453092731,2181625025,4111451223,1706088902,314042704,2344532202,4240017532,1658658271,366619977,2362670323,4224994405,1303535960,984961486,2747007092,3569037538,1256170817,1037604311,2765210733,3554079995,1131014506,879679996,2909243462,3663771856,1141124467,855842277,2852801631,3708648649,1342533948,654459306,3188396048,3373015174,1466479909,544179635,3110523913,3462522015,1591671054,702138776,2966460450,3352799412,1504918807,783551873,3082640443,3233442989,3988292384,2596254646,62317068,1957810842,3939845945,2647816111,81470997,1943803523,3814918930,2489596804,225274430,2053790376,3826175755,2466906013,167816743,2097651377,4027552580,2265490386,503444072,1762050814,4150417245,2154129355,426522225,1852507879,4275313526,2312317920,282753626,1742555852,4189708143,2394877945,397917763,1622183637,3604390888,2714866558,953729732,1340076626,3518719985,2797360999,1068828381,1219638859,3624741850,2936675148,906185462,1090812512,3747672003,2825379669,829329135,1181335161,3412177804,3160834842,628085408,1382605366,3423369109,3138078467,570562233,1426400815,3317316542,2998733608,733239954,1555261956,3268935591,3050360625,752459403,1541320221,2607071920,3965973030,1969922972,40735498,2617837225,3943577151,1913087877,83908371,2512341634,3803740692,2075208622,213261112,2463272603,3855990285,2094854071,198958881,2262029012,4057260610,1759359992,534414190,2176718541,4139329115,1873836001,414664567,2282248934,4279200368,1711684554,285281116,2405801727,4167216745,1634467795,376229701,2685067896,3608007406,1308918612,956543938,2808555105,3495958263,1231636301,1047427035,2932959818,3654703836,1088359270,936918e3,2847714899,3736837829,1202900863,817233897,3183342108,3401237130,1404277552,615818150,3134207493,3453421203,1423857449,601450431,3009837614,3294710456,1567103746,711928724,3020668471,3272380065,1510334235,755167117],a=i?new Uint32Array(o):o;function C(){}function B(A){var e,t,I,r,g,n,o,a,C,B,s=A.length,E=0,h=Number.POSITIVE_INFINITY;for(a=0;aE&&(E=A[a]),A[a]>=1;for(B=I<<16|a,C=n;Cs;s++)switch(!0){case 143>=s:E.push([s+48,8]);break;case 255>=s:E.push([s-144+400,9]);break;case 279>=s:E.push([s-256+0,7]);break;case 287>=s:E.push([s-280+192,8]);break;default:A("invalid literal: "+s)}var h=function(){function e(e){switch(!0){case 3===e:return[257,e-3,0];case 4===e:return[258,e-4,0];case 5===e:return[259,e-5,0];case 6===e:return[260,e-6,0];case 7===e:return[261,e-7,0];case 8===e:return[262,e-8,0];case 9===e:return[263,e-9,0];case 10===e:return[264,e-10,0];case 12>=e:return[265,e-11,1];case 14>=e:return[266,e-13,1];case 16>=e:return[267,e-15,1];case 18>=e:return[268,e-17,1];case 22>=e:return[269,e-19,2];case 26>=e:return[270,e-23,2];case 30>=e:return[271,e-27,2];case 34>=e:return[272,e-31,2];case 42>=e:return[273,e-35,3];case 50>=e:return[274,e-43,3];case 58>=e:return[275,e-51,3];case 66>=e:return[276,e-59,3];case 82>=e:return[277,e-67,4];case 98>=e:return[278,e-83,4];case 114>=e:return[279,e-99,4];case 130>=e:return[280,e-115,4];case 162>=e:return[281,e-131,5];case 194>=e:return[282,e-163,5];case 226>=e:return[283,e-195,5];case 257>=e:return[284,e-227,5];case 258===e:return[285,e-258,0];default:A("invalid length: "+e)}}var t,I,r=[];for(t=3;258>=t;t++)I=e(t),r[t]=I[2]<<24|I[1]<<16|I[0];return r}();function Q(e,t){switch(this.i=[],this.j=32768,this.d=this.f=this.c=this.n=0,this.input=i?new Uint8Array(e):e,this.o=!1,this.k=u,this.w=!1,!t&&(t={})||(t.index&&(this.c=t.index),t.bufferSize&&(this.j=t.bufferSize),t.bufferType&&(this.k=t.bufferType),t.resize&&(this.w=t.resize)),this.k){case c:this.a=32768,this.b=new(i?Uint8Array:Array)(32768+this.j+258);break;case u:this.a=0,this.b=new(i?Uint8Array:Array)(this.j),this.e=this.D,this.q=this.A,this.l=this.C;break;default:A(Error("invalid inflate mode"))}}i&&new Uint32Array(h);var c=0,u=1;Q.prototype.g=function(){for(;!this.o;){var t=N(this,3);switch(1&t&&(this.o=!0),t>>>=1){case 0:var I=this.input,r=this.c,g=this.b,n=this.a,o=I.length,a=e,C=g.length,s=e;switch(this.d=this.f=0,r+1>=o&&A(Error("invalid uncompressed block header: LEN")),a=I[r++]|I[r++]<<8,r+1>=o&&A(Error("invalid uncompressed block header: NLEN")),a===~(I[r++]|I[r++]<<8)&&A(Error("invalid uncompressed block header: length verify")),r+a>I.length&&A(Error("input buffer is broken")),this.k){case c:for(;n+a>g.length;){if(a-=s=C-n,i)g.set(I.subarray(r,r+s),n),n+=s,r+=s;else for(;s--;)g[n++]=I[r++];this.a=n,g=this.e(),n=this.a}break;case u:for(;n+a>g.length;)g=this.e({t:2});break;default:A(Error("invalid inflate mode"))}if(i)g.set(I.subarray(r,r+a),n),n+=a,r+=a;else for(;a--;)g[n++]=I[r++];this.c=r,this.a=n,this.b=g;break;case 1:this.l(M,Y);break;case 2:var E,h,Q,f,l=N(this,5)+257,y=N(this,5)+1,w=N(this,4)+4,d=new(i?Uint8Array:Array)(p.length),F=e,D=e,m=e,S=e,U=e;for(U=0;U=f?8:255>=f?9:279>=f?7:8;var v,b,M=B(G),R=new(i?Uint8Array:Array)(30);for(v=0,b=R.length;v=o&&A(Error("input buffer is broken")),r|=g[n++]<>>t,e.d=i-t,e.c=n,I}function L(e,t){for(var I,r,i=e.f,g=e.d,n=e.input,o=e.c,a=n.length,C=t[0],B=t[1];g=a);)i|=n[o++]<>>16)>g&&A(Error("invalid code length: "+r)),e.f=i>>r,e.d=g-r,e.c=o,65535&I}function H(A){this.input=A,this.c=0,this.m=[],this.s=!1}Q.prototype.l=function(A,e){var t=this.b,I=this.a;this.r=A;for(var r,i,g,n,o=t.length-258;256!==(r=L(this,A));)if(256>r)I>=o&&(this.a=I,t=this.e(),I=this.a),t[I++]=r;else for(n=d[i=r-257],0=o&&(this.a=I,t=this.e(),I=this.a);n--;)t[I]=t[I++-g];for(;8<=this.d;)this.d-=8,this.c--;this.a=I},Q.prototype.C=function(A,e){var t=this.b,I=this.a;this.r=A;for(var r,i,g,n,o=t.length;256!==(r=L(this,A));)if(256>r)I>=o&&(o=(t=this.e()).length),t[I++]=r;else for(n=d[i=r-257],0o&&(o=(t=this.e()).length);n--;)t[I]=t[I++-g];for(;8<=this.d;)this.d-=8,this.c--;this.a=I},Q.prototype.e=function(){var A,e,t=new(i?Uint8Array:Array)(this.a-32768),I=this.a-32768,r=this.b;if(i)t.set(r.subarray(32768,t.length));else for(A=0,e=t.length;AA;++A)r[A]=r[I+A];return this.a=32768,r},Q.prototype.D=function(A){var e,t,I,r=this.input.length/this.c+1|0,g=this.input,n=this.b;return A&&("number"==typeof A.t&&(r=A.t),"number"==typeof A.z&&(r+=A.z)),t=2>r?(I=(g.length-this.c)/this.r[2]/2*258|0)e&&(this.b.length=e),A=this.b),this.buffer=A},H.prototype.F=function(){return this.s||this.g(),this.m.slice()},H.prototype.g=function(){for(var t=this.input.length;this.c>>0,n(I,e,e)!==c&&A(Error("invalid CRC-32 checksum: 0x"+n(I,e,e).toString(16)+" / 0x"+c.toString(16))),g.L=o=(u[f++]|u[f++]<<8|u[f++]<<16|u[f++]<<24)>>>0,(4294967295&I.length)!==o&&A(Error("invalid input size: "+(4294967295&I.length)+" / "+o)),this.m.push(g),this.c=f}this.s=!0;var l,y,p,w=this.m,d=0,F=0;for(l=0,y=w.length;l>>8&255]<<16|s[A>>>16&255]<<8|s[A>>>24&255])>>32-e:s[A]>>8-e),8>e+n)o=o<>e-I-1&1,8===++n&&(n=0,r[i++]=s[o],o=0,i===r.length&&(r=g(this)));r[i]=o,this.buffer=r,this.f=n,this.index=i},i.prototype.finish=function(){var A,e=this.buffer,t=this.index;return 0n;++n){for(var a=B=n,C=7,B=B>>>1;B;B>>>=1)a<<=1,a|=1&B,--C;o[n]=(a<>>0}var s=o;function E(A,e,t){var I,r="number"==typeof e?e:e=0,i="number"==typeof t?t:A.length;for(I=-1,r=7&i;r--;++e)I=I>>>8^Q[255&(I^A[e])];for(r=i>>3;r--;e+=8)I=(I=(I=(I=(I=(I=(I=(I=I>>>8^Q[255&(I^A[e])])>>>8^Q[255&(I^A[e+1])])>>>8^Q[255&(I^A[e+2])])>>>8^Q[255&(I^A[e+3])])>>>8^Q[255&(I^A[e+4])])>>>8^Q[255&(I^A[e+5])])>>>8^Q[255&(I^A[e+6])])>>>8^Q[255&(I^A[e+7])];return(4294967295^I)>>>0}var h=[0,1996959894,3993919788,2567524794,124634137,1886057615,3915621685,2657392035,249268274,2044508324,3772115230,2547177864,162941995,2125561021,3887607047,2428444049,498536548,1789927666,4089016648,2227061214,450548861,1843258603,4107580753,2211677639,325883990,1684777152,4251122042,2321926636,335633487,1661365465,4195302755,2366115317,997073096,1281953886,3579855332,2724688242,1006888145,1258607687,3524101629,2768942443,901097722,1119000684,3686517206,2898065728,853044451,1172266101,3705015759,2882616665,651767980,1373503546,3369554304,3218104598,565507253,1454621731,3485111705,3099436303,671266974,1594198024,3322730930,2970347812,795835527,1483230225,3244367275,3060149565,1994146192,31158534,2563907772,4023717930,1907459465,112637215,2680153253,3904427059,2013776290,251722036,2517215374,3775830040,2137656763,141376813,2439277719,3865271297,1802195444,476864866,2238001368,4066508878,1812370925,453092731,2181625025,4111451223,1706088902,314042704,2344532202,4240017532,1658658271,366619977,2362670323,4224994405,1303535960,984961486,2747007092,3569037538,1256170817,1037604311,2765210733,3554079995,1131014506,879679996,2909243462,3663771856,1141124467,855842277,2852801631,3708648649,1342533948,654459306,3188396048,3373015174,1466479909,544179635,3110523913,3462522015,1591671054,702138776,2966460450,3352799412,1504918807,783551873,3082640443,3233442989,3988292384,2596254646,62317068,1957810842,3939845945,2647816111,81470997,1943803523,3814918930,2489596804,225274430,2053790376,3826175755,2466906013,167816743,2097651377,4027552580,2265490386,503444072,1762050814,4150417245,2154129355,426522225,1852507879,4275313526,2312317920,282753626,1742555852,4189708143,2394877945,397917763,1622183637,3604390888,2714866558,953729732,1340076626,3518719985,2797360999,1068828381,1219638859,3624741850,2936675148,906185462,1090812512,3747672003,2825379669,829329135,1181335161,3412177804,3160834842,628085408,1382605366,3423369109,3138078467,570562233,1426400815,3317316542,2998733608,733239954,1555261956,3268935591,3050360625,752459403,1541320221,2607071920,3965973030,1969922972,40735498,2617837225,3943577151,1913087877,83908371,2512341634,3803740692,2075208622,213261112,2463272603,3855990285,2094854071,198958881,2262029012,4057260610,1759359992,534414190,2176718541,4139329115,1873836001,414664567,2282248934,4279200368,1711684554,285281116,2405801727,4167216745,1634467795,376229701,2685067896,3608007406,1308918612,956543938,2808555105,3495958263,1231636301,1047427035,2932959818,3654703836,1088359270,936918e3,2847714899,3736837829,1202900863,817233897,3183342108,3401237130,1404277552,615818150,3134207493,3453421203,1423857449,601450431,3009837614,3294710456,1567103746,711928724,3020668471,3272380065,1510334235,755167117],Q=r?new Uint32Array(h):h;function c(A){this.buffer=new(r?Uint16Array:Array)(2*A),this.length=0}function u(A,e){this.h=l,this.j=0,this.input=r&&A instanceof Array?new Uint8Array(A):A,this.c=0,e&&(e.lazy&&(this.j=e.lazy),"number"==typeof e.compressionType&&(this.h=e.compressionType),e.outputBuffer&&(this.a=r&&e.outputBuffer instanceof Array?new Uint8Array(e.outputBuffer):e.outputBuffer),"number"==typeof e.outputIndex&&(this.c=e.outputIndex)),this.a||(this.a=new(r?Uint8Array:Array)(32768))}c.prototype.getParent=function(A){return 2*((A-2)/4|0)},c.prototype.push=function(A,e){var t,I,r,i=this.buffer;for(t=this.length,i[this.length++]=e,i[this.length++]=A;0i[I]);)r=i[t],i[t]=i[I],i[I]=r,r=i[t+1],i[t+1]=i[I+1],i[I+1]=r,t=I;return this.length},c.prototype.pop=function(){var A,e,t,I,r,i=this.buffer;for(e=i[0],A=i[1],this.length-=2,i[0]=i[this.length],i[1]=i[this.length+1],r=0;!((I=2*r+2)>=this.length)&&(I+2i[I]&&(I+=2),i[I]>i[r]);)t=i[r],i[r]=i[I],i[I]=t,t=i[r+1],i[r+1]=i[I+1],i[I+1]=t,r=I;return{index:A,value:e,length:this.length}};var f,l=2,y=[];for(f=0;288>f;f++)switch(e){case 143>=f:y.push([f+48,8]);break;case 255>=f:y.push([f-144+400,9]);break;case 279>=f:y.push([f-256+0,7]);break;case 287>=f:y.push([f-280+192,8]);break;default:throw"invalid literal: "+f}function p(A,e){this.length=A,this.k=e}u.prototype.g=function(){var t,I,g,n,o=this.input;switch(this.h){case 0:for(g=0,n=o.length;g>>8&255,c[u++]=255&B,c[u++]=B>>>8&255,r)c.set(s,u),u+=s.length,c=c.subarray(0,u);else{for(h=0,Q=s.length;hP)for(;0P?P:138)>P-3&&X=X?(eA[j++]=17,eA[j++]=X-3,tA[17]++):(eA[j++]=18,eA[j++]=X-11,tA[18]++),P-=X;else if(eA[j++]=AA[W],tA[AA[W]]++,3>--P)for(;0P?P:6)>P-3&&XK;K++)V[K]=L[_[K]];for(b=19;4=A:return[265,A-11,1];case 14>=A:return[266,A-13,1];case 16>=A:return[267,A-15,1];case 18>=A:return[268,A-17,1];case 22>=A:return[269,A-19,2];case 26>=A:return[270,A-23,2];case 30>=A:return[271,A-27,2];case 34>=A:return[272,A-31,2];case 42>=A:return[273,A-35,3];case 50>=A:return[274,A-43,3];case 58>=A:return[275,A-51,3];case 66>=A:return[276,A-59,3];case 82>=A:return[277,A-67,4];case 98>=A:return[278,A-83,4];case 114>=A:return[279,A-99,4];case 130>=A:return[280,A-115,4];case 162>=A:return[281,A-131,5];case 194>=A:return[282,A-163,5];case 226>=A:return[283,A-195,5];case 257>=A:return[284,A-227,5];case 258===A:return[285,A-258,0];default:throw"invalid length: "+A}}var t,I,r=[];for(t=3;258>=t;t++)I=A(t),r[t]=I[2]<<24|I[1]<<16|I[0];return r}(),d=r?new Uint32Array(w):w;function F(t,I){function i(A,t){var I,r,i,g,n=A.k,o=[],a=0;switch(I=d[A.length],o[a++]=65535&I,o[a++]=I>>16&255,o[a++]=I>>24,e){case 1===n:r=[0,n-1,0];break;case 2===n:r=[1,n-2,0];break;case 3===n:r=[2,n-3,0];break;case 4===n:r=[3,n-4,0];break;case 6>=n:r=[4,n-5,1];break;case 8>=n:r=[5,n-7,1];break;case 12>=n:r=[6,n-9,2];break;case 16>=n:r=[7,n-13,2];break;case 24>=n:r=[8,n-17,3];break;case 32>=n:r=[9,n-25,3];break;case 48>=n:r=[10,n-33,4];break;case 64>=n:r=[11,n-49,4];break;case 96>=n:r=[12,n-65,5];break;case 128>=n:r=[13,n-97,5];break;case 192>=n:r=[14,n-129,6];break;case 256>=n:r=[15,n-193,6];break;case 384>=n:r=[16,n-257,7];break;case 512>=n:r=[17,n-385,7];break;case 768>=n:r=[18,n-513,8];break;case 1024>=n:r=[19,n-769,8];break;case 1536>=n:r=[20,n-1025,9];break;case 2048>=n:r=[21,n-1537,9];break;case 3072>=n:r=[22,n-2049,10];break;case 4096>=n:r=[23,n-3073,10];break;case 6144>=n:r=[24,n-4097,11];break;case 8192>=n:r=[25,n-6145,11];break;case 12288>=n:r=[26,n-8193,12];break;case 16384>=n:r=[27,n-12289,12];break;case 24576>=n:r=[28,n-16385,13];break;case 32768>=n:r=[29,n-24577,13];break;default:throw"invalid distance"}for(I=r,o[a++]=I[0],o[a++]=I[1],o[a++]=I[2],i=0,g=o.length;i=o;)l[o++]=0;for(o=0;29>=o;)y[o++]=0}for(l[256]=1,g=0,n=I.length;g=n){for(E&&i(E,-1),o=0,a=n-g;oi&&e+ia&&(r=I,a=i),258===i)break}return new p(a,e-r)}function m(A,e){var t,I,i,g,n,o=A.length,a=new c(572),C=new(r?Uint8Array:Array)(o);if(!r)for(g=0;g2*C[g-1]+B[g]&&(C[g]=2*C[g-1]+B[g]),E[g]=Array(C[g]),h[g]=Array(C[g]);for(i=0;iA[i]?(E[g][n]=o,h[g][n]=e,a+=2):(E[g][n]=A[i],h[g][n]=i,++i);Q[g]=0,1===B[g]&&I(g)}return s}(I,I.length,e),g=0,n=t.length;g>>=1;return g}function U(A,e){this.input=A,this.c=this.i=0,this.d={},e&&(e.flags&&(this.d=e.flags),"string"==typeof e.filename&&(this.filename=e.filename),"string"==typeof e.comment&&(this.l=e.comment),e.deflateOptions&&(this.e=e.deflateOptions)),this.e||(this.e={})}U.prototype.g=function(){var e,t,I,i,g,n,o,a,C=new(r?Uint8Array:Array)(32768),B=0,s=this.input,h=this.i,Q=this.filename,c=this.l;if(C[B++]=31,C[B++]=139,C[B++]=8,e=0,this.d.fname&&(e|=v),this.d.fcomment&&(e|=b),this.d.fhcrc&&(e|=G),C[B++]=e,t=(Date.now?Date.now():+new Date)/1e3|0,C[B++]=255&t,C[B++]=t>>>8&255,C[B++]=t>>>16&255,C[B++]=t>>>24&255,C[B++]=0,C[B++]=k,this.d.fname!==A){for(o=0,a=Q.length;o>>8&255),C[B++]=255&n;C[B++]=0}if(this.d.comment){for(o=0,a=c.length;o>>8&255),C[B++]=255&n;C[B++]=0}return this.d.fhcrc&&(I=65535&E(C,0,B),C[B++]=255&I,C[B++]=I>>>8&255),this.e.outputBuffer=C,this.e.outputIndex=B,C=(g=new u(s,this.e)).g(),B=g.c,r&&(B+8>C.buffer.byteLength?(this.a=new Uint8Array(B+8),this.a.set(new Uint8Array(C.buffer)),C=this.a):C=new Uint8Array(C.buffer)),i=E(s,A,A),C[B++]=255&i,C[B++]=i>>>8&255,C[B++]=i>>>16&255,C[B++]=i>>>24&255,a=s.length,C[B++]=255&a,C[B++]=a>>>8&255,C[B++]=a>>>16&255,C[B++]=a>>>24&255,this.i=h,r&&B>>8&255]<<16|s[A>>>16&255]<<8|s[A>>>24&255])>>32-e:s[A]>>8-e),8>e+n)o=o<>e-I-1&1,8===++n&&(n=0,r[i++]=s[o],o=0,i===r.length&&(r=g(this)));r[i]=o,this.buffer=r,this.d=n,this.index=i},i.prototype.finish=function(){var A,e=this.buffer,t=this.index;return 0n;++n){for(var a=B=n,C=7,B=B>>>1;B;B>>>=1)a<<=1,a|=1&B,--C;o[n]=(a<>>0}var s=o;function E(A){this.buffer=new(r?Uint16Array:Array)(2*A),this.length=0}function h(A,e){this.e=c,this.f=0,this.input=r&&A instanceof Array?new Uint8Array(A):A,this.c=0,e&&(e.lazy&&(this.f=e.lazy),"number"==typeof e.compressionType&&(this.e=e.compressionType),e.outputBuffer&&(this.b=r&&e.outputBuffer instanceof Array?new Uint8Array(e.outputBuffer):e.outputBuffer),"number"==typeof e.outputIndex&&(this.c=e.outputIndex)),this.b||(this.b=new(r?Uint8Array:Array)(32768))}E.prototype.getParent=function(A){return 2*((A-2)/4|0)},E.prototype.push=function(A,e){var t,I,r,i=this.buffer;for(t=this.length,i[this.length++]=e,i[this.length++]=A;0i[I]);)r=i[t],i[t]=i[I],i[I]=r,r=i[t+1],i[t+1]=i[I+1],i[I+1]=r,t=I;return this.length},E.prototype.pop=function(){var A,e,t,I,r,i=this.buffer;for(e=i[0],A=i[1],this.length-=2,i[0]=i[this.length],i[1]=i[this.length+1],r=0;!((I=2*r+2)>=this.length)&&(I+2i[I]&&(I+=2),i[I]>i[r]);)t=i[r],i[r]=i[I],i[I]=t,t=i[r+1],i[r+1]=i[I+1],i[I+1]=t,r=I;return{index:A,value:e,length:this.length}};var Q,c=2,u=[];for(Q=0;288>Q;Q++)switch(e){case 143>=Q:u.push([Q+48,8]);break;case 255>=Q:u.push([Q-144+400,9]);break;case 279>=Q:u.push([Q-256+0,7]);break;case 287>=Q:u.push([Q-280+192,8]);break;default:throw"invalid literal: "+Q}function f(A,e){this.length=A,this.g=e}h.prototype.h=function(){var t,I,g,n,o=this.input;switch(this.e){case 0:for(g=0,n=o.length;g>>8&255,f[l++]=255&B,f[l++]=B>>>8&255,r)f.set(s,l),l+=s.length,f=f.subarray(0,l);else{for(h=0,Q=s.length;hP)for(;0P?P:138)>P-3&&X=X?(eA[j++]=17,eA[j++]=X-3,tA[17]++):(eA[j++]=18,eA[j++]=X-11,tA[18]++),P-=X;else if(eA[j++]=AA[W],tA[AA[W]]++,3>--P)for(;0P?P:6)>P-3&&XK;K++)V[K]=L[_[K]];for(b=19;4=A:return[265,A-11,1];case 14>=A:return[266,A-13,1];case 16>=A:return[267,A-15,1];case 18>=A:return[268,A-17,1];case 22>=A:return[269,A-19,2];case 26>=A:return[270,A-23,2];case 30>=A:return[271,A-27,2];case 34>=A:return[272,A-31,2];case 42>=A:return[273,A-35,3];case 50>=A:return[274,A-43,3];case 58>=A:return[275,A-51,3];case 66>=A:return[276,A-59,3];case 82>=A:return[277,A-67,4];case 98>=A:return[278,A-83,4];case 114>=A:return[279,A-99,4];case 130>=A:return[280,A-115,4];case 162>=A:return[281,A-131,5];case 194>=A:return[282,A-163,5];case 226>=A:return[283,A-195,5];case 257>=A:return[284,A-227,5];case 258===A:return[285,A-258,0];default:throw"invalid length: "+A}}var t,I,r=[];for(t=3;258>=t;t++)I=A(t),r[t]=I[2]<<24|I[1]<<16|I[0];return r}(),y=r?new Uint32Array(l):l;function p(t,I){function i(A,t){var I,r,i,g,n=A.g,o=[],a=0;switch(I=y[A.length],o[a++]=65535&I,o[a++]=I>>16&255,o[a++]=I>>24,e){case 1===n:r=[0,n-1,0];break;case 2===n:r=[1,n-2,0];break;case 3===n:r=[2,n-3,0];break;case 4===n:r=[3,n-4,0];break;case 6>=n:r=[4,n-5,1];break;case 8>=n:r=[5,n-7,1];break;case 12>=n:r=[6,n-9,2];break;case 16>=n:r=[7,n-13,2];break;case 24>=n:r=[8,n-17,3];break;case 32>=n:r=[9,n-25,3];break;case 48>=n:r=[10,n-33,4];break;case 64>=n:r=[11,n-49,4];break;case 96>=n:r=[12,n-65,5];break;case 128>=n:r=[13,n-97,5];break;case 192>=n:r=[14,n-129,6];break;case 256>=n:r=[15,n-193,6];break;case 384>=n:r=[16,n-257,7];break;case 512>=n:r=[17,n-385,7];break;case 768>=n:r=[18,n-513,8];break;case 1024>=n:r=[19,n-769,8];break;case 1536>=n:r=[20,n-1025,9];break;case 2048>=n:r=[21,n-1537,9];break;case 3072>=n:r=[22,n-2049,10];break;case 4096>=n:r=[23,n-3073,10];break;case 6144>=n:r=[24,n-4097,11];break;case 8192>=n:r=[25,n-6145,11];break;case 12288>=n:r=[26,n-8193,12];break;case 16384>=n:r=[27,n-12289,12];break;case 24576>=n:r=[28,n-16385,13];break;case 32768>=n:r=[29,n-24577,13];break;default:throw"invalid distance"}for(I=r,o[a++]=I[0],o[a++]=I[1],o[a++]=I[2],i=0,g=o.length;i=o;)l[o++]=0;for(o=0;29>=o;)p[o++]=0}for(l[256]=1,g=0,n=I.length;g=n){for(E&&i(E,-1),o=0,a=n-g;oi&&e+ia&&(r=I,a=i),258===i)break}return new f(a,e-r)}function d(A,e){var t,I,i,g,n,o=A.length,a=new E(572),C=new(r?Uint8Array:Array)(o);if(!r)for(g=0;g2*C[g-1]+B[g]&&(C[g]=2*C[g-1]+B[g]),E[g]=Array(C[g]),h[g]=Array(C[g]);for(i=0;iA[i]?(E[g][n]=o,h[g][n]=e,a+=2):(E[g][n]=A[i],h[g][n]=i,++i);Q[g]=0,1===B[g]&&I(g)}return s}(I,I.length,e),g=0,n=t.length;g>>=1;return g}I("Zlib.RawDeflate",h),I("Zlib.RawDeflate.prototype.compress",h.prototype.h);var D,m,S,U,k={NONE:0,FIXED:1,DYNAMIC:c};if(Object.keys)D=Object.keys(k);else for(m in D=[],S=0,k)D[S++]=m;for(S=0,U=D.length;SE&&(E=A[a]),A[a]>=1;for(B=r<<16|a,C=n;C>>=1){case 0:var t=this.input,i=this.d,o=this.b,a=this.a,C=t.length,s=A,E=o.length,h=A;if(this.c=this.f=0,i+1>=C)throw Error("invalid uncompressed block header: LEN");if(s=t[i++]|t[i++]<<8,i+1>=C)throw Error("invalid uncompressed block header: NLEN");if(s===~(t[i++]|t[i++]<<8))throw Error("invalid uncompressed block header: length verify");if(i+s>t.length)throw Error("input buffer is broken");switch(this.i){case g:for(;a+s>o.length;){if(s-=h=E-a,I)o.set(t.subarray(i,i+h),a),a+=h,i+=h;else for(;h--;)o[a++]=t[i++];this.a=a,o=this.e(),a=this.a}break;case n:for(;a+s>o.length;)o=this.e({o:2});break;default:throw Error("invalid inflate mode")}if(I)o.set(t.subarray(i,i+s),a),a+=s,i+=s;else for(;s--;)o[a++]=t[i++];this.d=i,this.a=a,this.b=o;break;case 1:this.j(d,D);break;case 2:var Q,c,u,f,l=m(this,5)+257,y=m(this,5)+1,p=m(this,4)+4,w=new(I?Uint8Array:Array)(B.length),F=A,U=A,k=A,G=A,v=A;for(v=0;v=o?8:255>=o?9:279>=o?7:8;var p,w,d=r(y),F=new(I?Uint8Array:Array)(30);for(p=0,w=F.length;p=n)throw Error("input buffer is broken");I|=i[g++]<>>e,A.c=r-e,A.d=g,t}function S(A,e){for(var t,I,r=A.f,i=A.c,g=A.input,n=A.d,o=g.length,a=e[0],C=e[1];i=o);)r|=g[n++]<>>16)>i)throw Error("invalid code length: "+I);return A.f=r>>I,A.c=i-I,A.d=n,65535&t}i.prototype.j=function(A,e){var t=this.b,I=this.a;this.n=A;for(var r,i,g,n,o=t.length-258;256!==(r=S(this,A));)if(256>r)I>=o&&(this.a=I,t=this.e(),I=this.a),t[I++]=r;else for(n=E[i=r-257],0=o&&(this.a=I,t=this.e(),I=this.a);n--;)t[I]=t[I++-g];for(;8<=this.c;)this.c-=8,this.d--;this.a=I},i.prototype.s=function(A,e){var t=this.b,I=this.a;this.n=A;for(var r,i,g,n,o=t.length;256!==(r=S(this,A));)if(256>r)I>=o&&(o=(t=this.e()).length),t[I++]=r;else for(n=E[i=r-257],0o&&(o=(t=this.e()).length);n--;)t[I]=t[I++-g];for(;8<=this.c;)this.c-=8,this.d--;this.a=I},i.prototype.e=function(){var A,e,t=new(I?Uint8Array:Array)(this.a-32768),r=this.a-32768,i=this.b;if(I)t.set(i.subarray(32768,t.length));else for(A=0,e=t.length;AA;++A)i[A]=i[r+A];return this.a=32768,i},i.prototype.u=function(A){var e,t,r,i=this.input.length/this.d+1|0,g=this.input,n=this.b;return A&&("number"==typeof A.o&&(i=A.o),"number"==typeof A.q&&(i+=A.q)),t=2>i?(r=(g.length-this.d)/this.n[2]/2*258|0)e&&(this.b.length=e),A=this.b),this.buffer=A},t("Zlib.RawInflate",i),t("Zlib.RawInflate.prototype.decompress",i.prototype.t);var U,k,G,v,b={ADAPTIVE:n,BLOCK:g};if(Object.keys)U=Object.keys(b);else for(k in U=[],G=0,b)U[G++]=k;for(G=0,v=U.length;Gz;++z)for(var B=z,ba=7,B=B>>>1;B;B>>>=1)--ba;var ca=[0,1996959894,3993919788,2567524794,124634137,1886057615,3915621685,2657392035,249268274,2044508324,3772115230,2547177864,162941995,2125561021,3887607047,2428444049,498536548,1789927666,4089016648,2227061214,450548861,1843258603,4107580753,2211677639,325883990,1684777152,4251122042,2321926636,335633487,1661365465,4195302755,2366115317,997073096,1281953886,3579855332,2724688242,1006888145,1258607687,3524101629,2768942443,901097722,1119000684,3686517206,2898065728,853044451,1172266101,3705015759,2882616665,651767980,1373503546,3369554304,3218104598,565507253,1454621731,3485111705,3099436303,671266974,1594198024,3322730930,2970347812,795835527,1483230225,3244367275,3060149565,1994146192,31158534,2563907772,4023717930,1907459465,112637215,2680153253,3904427059,2013776290,251722036,2517215374,3775830040,2137656763,141376813,2439277719,3865271297,1802195444,476864866,2238001368,4066508878,1812370925,453092731,2181625025,4111451223,1706088902,314042704,2344532202,4240017532,1658658271,366619977,2362670323,4224994405,1303535960,984961486,2747007092,3569037538,1256170817,1037604311,2765210733,3554079995,1131014506,879679996,2909243462,3663771856,1141124467,855842277,2852801631,3708648649,1342533948,654459306,3188396048,3373015174,1466479909,544179635,3110523913,3462522015,1591671054,702138776,2966460450,3352799412,1504918807,783551873,3082640443,3233442989,3988292384,2596254646,62317068,1957810842,3939845945,2647816111,81470997,1943803523,3814918930,2489596804,225274430,2053790376,3826175755,2466906013,167816743,2097651377,4027552580,2265490386,503444072,1762050814,4150417245,2154129355,426522225,1852507879,4275313526,2312317920,282753626,1742555852,4189708143,2394877945,397917763,1622183637,3604390888,2714866558,953729732,1340076626,3518719985,2797360999,1068828381,1219638859,3624741850,2936675148,906185462,1090812512,3747672003,2825379669,829329135,1181335161,3412177804,3160834842,628085408,1382605366,3423369109,3138078467,570562233,1426400815,3317316542,2998733608,733239954,1555261956,3268935591,3050360625,752459403,1541320221,2607071920,3965973030,1969922972,40735498,2617837225,3943577151,1913087877,83908371,2512341634,3803740692,2075208622,213261112,2463272603,3855990285,2094854071,198958881,2262029012,4057260610,1759359992,534414190,2176718541,4139329115,1873836001,414664567,2282248934,4279200368,1711684554,285281116,2405801727,4167216745,1634467795,376229701,2685067896,3608007406,1308918612,956543938,2808555105,3495958263,1231636301,1047427035,2932959818,3654703836,1088359270,936918e3,2847714899,3736837829,1202900863,817233897,3183342108,3401237130,1404277552,615818150,3134207493,3453421203,1423857449,601450431,3009837614,3294710456,1567103746,711928724,3020668471,3272380065,1510334235,755167117],C=y?new Uint32Array(ca):ca,a;if(aa.Uint8Array!==r)try{eval("String.fromCharCode.apply(null, new Uint8Array([0]));")}catch(A){String.fromCharCode.apply=(a=String.fromCharCode.apply,function(A,e){return a.call(String.fromCharCode,A,Array.prototype.slice.call(e))})}function D(A){var e,t,I,r,i,g,n,o,a,C,B=A.length,s=0,E=Number.POSITIVE_INFINITY;for(o=0;os&&(s=A[o]),A[o]>=1;for(C=I<<16|o,a=g;aG;G++)switch(!0){case 143>=G:F.push([G+48,8]);break;case 255>=G:F.push([G-144+400,9]);break;case 279>=G:F.push([G-256+0,7]);break;case 287>=G:F.push([G-280+192,8]);break;default:l("invalid literal: "+G)}var fa=function(){function A(A){switch(!0){case 3===A:return[257,A-3,0];case 4===A:return[258,A-4,0];case 5===A:return[259,A-5,0];case 6===A:return[260,A-6,0];case 7===A:return[261,A-7,0];case 8===A:return[262,A-8,0];case 9===A:return[263,A-9,0];case 10===A:return[264,A-10,0];case 12>=A:return[265,A-11,1];case 14>=A:return[266,A-13,1];case 16>=A:return[267,A-15,1];case 18>=A:return[268,A-17,1];case 22>=A:return[269,A-19,2];case 26>=A:return[270,A-23,2];case 30>=A:return[271,A-27,2];case 34>=A:return[272,A-31,2];case 42>=A:return[273,A-35,3];case 50>=A:return[274,A-43,3];case 58>=A:return[275,A-51,3];case 66>=A:return[276,A-59,3];case 82>=A:return[277,A-67,4];case 98>=A:return[278,A-83,4];case 114>=A:return[279,A-99,4];case 130>=A:return[280,A-115,4];case 162>=A:return[281,A-131,5];case 194>=A:return[282,A-163,5];case 226>=A:return[283,A-195,5];case 257>=A:return[284,A-227,5];case 258===A:return[285,A-258,0];default:l("invalid length: "+A)}}var e,t,I=[];for(e=3;258>=e;e++)t=A(e),I[e]=t[2]<<24|t[1]<<16|t[0];return I}();function I(A,e){switch(this.l=[],this.m=32768,this.d=this.f=this.c=this.t=0,this.input=y?new Uint8Array(A):A,this.u=!1,this.n=J,this.K=!1,!e&&(e={})||(e.index&&(this.c=e.index),e.bufferSize&&(this.m=e.bufferSize),e.bufferType&&(this.n=e.bufferType),e.resize&&(this.K=e.resize)),this.n){case ga:this.a=32768,this.b=new(y?Uint8Array:Array)(32768+this.m+258);break;case J:this.a=0,this.b=new(y?Uint8Array:Array)(this.m),this.e=this.W,this.B=this.R,this.q=this.V;break;default:l(Error("invalid inflate mode"))}}y&&new Uint32Array(fa);var ga=0,J=1;I.prototype.r=function(){for(;!this.u;){var A=K(this,3);switch(1&A&&(this.u=!0),A>>>=1){case 0:var e=this.input,t=this.c,I=this.b,i=this.a,g=e.length,n=r,o=I.length,a=r;switch(this.d=this.f=0,t+1>=g&&l(Error("invalid uncompressed block header: LEN")),n=e[t++]|e[t++]<<8,t+1>=g&&l(Error("invalid uncompressed block header: NLEN")),n===~(e[t++]|e[t++]<<8)&&l(Error("invalid uncompressed block header: length verify")),t+n>e.length&&l(Error("input buffer is broken")),this.n){case ga:for(;i+n>I.length;){if(n-=a=o-i,y)I.set(e.subarray(t,t+a),i),i+=a,t+=a;else for(;a--;)I[i++]=e[t++];this.a=i,I=this.e(),i=this.a}break;case J:for(;i+n>I.length;)I=this.e({H:2});break;default:l(Error("invalid inflate mode"))}if(y)I.set(e.subarray(t,t+n),i),i+=n,t+=n;else for(;n--;)I[i++]=e[t++];this.c=t,this.a=i,this.b=I;break;case 1:this.q(ha,ia);break;case 2:var C,B,s,E,h=K(this,5)+257,Q=K(this,5)+1,c=K(this,4)+4,u=new(y?Uint8Array:Array)(L.length),f=r,p=r,w=r,d=r,F=r;for(F=0;F=R?8:255>=R?9:279>=R?7:8;var ha=D(Q),S=new(y?Uint8Array:Array)(30),T,ra;for(T=0,ra=S.length;T=n&&l(Error("input buffer is broken")),I|=i[g++]<>>e,A.d=r-e,A.c=g,t}function M(A,e){for(var t,I,r=A.f,i=A.d,g=A.input,n=A.c,o=g.length,a=e[0],C=e[1];i=o);)r|=g[n++]<>>16)>i&&l(Error("invalid code length: "+I)),A.f=r>>I,A.d=i-I,A.c=n,65535&t}function U(A){A=A||{},this.files=[],this.v=A.comment}function V(A,e){e=e||{},this.input=y&&A instanceof Array?new Uint8Array(A):A,this.c=0,this.ba=e.verify||!1,this.j=e.password}t=I.prototype,t.q=function(A,e){var t=this.b,I=this.a;this.C=A;for(var r,i,g,n,o=t.length-258;256!==(r=M(this,A));)if(256>r)I>=o&&(this.a=I,t=this.e(),I=this.a),t[I++]=r;else for(n=la[i=r-257],0=o&&(this.a=I,t=this.e(),I=this.a);n--;)t[I]=t[I++-g];for(;8<=this.d;)this.d-=8,this.c--;this.a=I},t.V=function(A,e){var t=this.b,I=this.a;this.C=A;for(var r,i,g,n,o=t.length;256!==(r=M(this,A));)if(256>r)I>=o&&(o=(t=this.e()).length),t[I++]=r;else for(n=la[i=r-257],0o&&(o=(t=this.e()).length);n--;)t[I]=t[I++-g];for(;8<=this.d;)this.d-=8,this.c--;this.a=I},t.e=function(){var A,e,t=new(y?Uint8Array:Array)(this.a-32768),I=this.a-32768,r=this.b;if(y)t.set(r.subarray(32768,t.length));else for(A=0,e=t.length;AA;++A)r[A]=r[I+A];return this.a=32768,r},t.W=function(A){var e,t,I,r=this.input.length/this.c+1|0,i=this.input,g=this.b;return A&&("number"==typeof A.H&&(r=A.H),"number"==typeof A.P&&(r+=A.P)),t=2>r?(I=(i.length-this.c)/this.C[2]/2*258|0)e&&(this.b.length=e),A=this.b),this.buffer=A},U.prototype.L=function(A){this.j=A},U.prototype.s=function(A){var e=65535&A[2]|2;return e*(1^e)>>8&255},U.prototype.k=function(A,e){A[0]=(C[255&(A[0]^e)]^A[0]>>>8)>>>0,A[1]=(6681*(20173*(A[1]+(255&A[0]))>>>0)>>>0)+1>>>0,A[2]=(C[255&(A[2]^A[1]>>>24)]^A[2]>>>8)>>>0},U.prototype.T=function(A){var e,t,I=[305419896,591751049,878082192];for(y&&(I=new Uint32Array(I)),e=0,t=A.length;e>>0,this.z=(A[e++]|A[e++]<<8|A[e++]<<16|A[e++]<<24)>>>0,this.J=(A[e++]|A[e++]<<8|A[e++]<<16|A[e++]<<24)>>>0,this.h=A[e++]|A[e++]<<8,this.g=A[e++]|A[e++]<<8,this.F=A[e++]|A[e++]<<8,this.ea=A[e++]|A[e++]<<8,this.ga=A[e++]|A[e++]<<8,this.fa=A[e++]|A[e++]<<8|A[e++]<<16|A[e++]<<24,this.$=(A[e++]|A[e++]<<8|A[e++]<<16|A[e++]<<24)>>>0,this.filename=String.fromCharCode.apply(null,y?A.subarray(e,e+=this.h):A.slice(e,e+=this.h)),this.X=y?A.subarray(e,e+=this.g):A.slice(e,e+=this.g),this.v=y?A.subarray(e,e+this.F):A.slice(e,e+this.F),this.length=e-this.offset};var va={N:1,ca:8,da:2048};function $(A){var e,t,I,i,g=[],n={};if(!A.i){if(A.o===r){var o,a=A.input;if(!A.D)A:{var C,B=A.input;for(C=B.length-12;0>>0,A.o=(a[o++]|a[o++]<<8|a[o++]<<16|a[o++]<<24)>>>0,A.w=a[o++]|a[o++]<<8,A.v=y?a.subarray(o,o+A.w):a.slice(o,o+A.w)}for(e=A.o,I=0,i=A.aa;I>>0,this.z=(A[e++]|A[e++]<<8|A[e++]<<16|A[e++]<<24)>>>0,this.J=(A[e++]|A[e++]<<8|A[e++]<<16|A[e++]<<24)>>>0,this.h=A[e++]|A[e++]<<8,this.g=A[e++]|A[e++]<<8,this.filename=String.fromCharCode.apply(null,y?A.subarray(e,e+=this.h):A.slice(e,e+=this.h)),this.X=y?A.subarray(e,e+=this.g):A.slice(e,e+=this.g),this.length=e-this.offset},t=V.prototype,t.Y=function(){var A,e,t,I=[];for(this.i||$(this),A=0,e=(t=this.i).length;A>>8^C[255&(u^a[f])];for(p=w>>3;p--;f+=8)u=(u=(u=(u=(u=(u=(u=(u=u>>>8^C[255&(u^a[f])])>>>8^C[255&(u^a[f+1])])>>>8^C[255&(u^a[f+2])])>>>8^C[255&(u^a[f+3])])>>>8^C[255&(u^a[f+4])])>>>8^C[255&(u^a[f+5])])>>>8^C[255&(u^a[f+6])])>>>8^C[255&(u^a[f+7])];B=(4294967295^u)>>>0,g.p!==B&&l(Error("wrong crc: file=0x"+g.p.toString(16)+", data=0x"+B.toString(16)))}return a},t.L=function(A){this.j=A},t.k=U.prototype.k,t.S=U.prototype.T,t.s=U.prototype.s,v("Zlib.Unzip",V),v("Zlib.Unzip.prototype.decompress",V.prototype.r),v("Zlib.Unzip.prototype.getFilenames",V.prototype.Y),v("Zlib.Unzip.prototype.setPassword",V.prototype.L)}).call(this)},4808(){(function(){"use strict";var A=void 0,e=!0,t=this;function I(e,I){var r,i=e.split("."),g=t;!(i[0]in g)&&g.execScript&&g.execScript("var "+i[0]);for(;i.length&&(r=i.shift());)i.length||I===A?g=g[r]?g[r]:g[r]={}:g[r]=I}var r="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Uint32Array&&"undefined"!=typeof DataView;function i(A,e){if(this.index="number"==typeof e?e:0,this.f=0,this.buffer=A instanceof(r?Uint8Array:Array)?A:new(r?Uint8Array:Array)(32768),2*this.buffer.length<=this.index)throw Error("invalid index");this.buffer.length<=this.index&&g(this)}function g(A){var e,t=A.buffer,I=t.length,i=new(r?Uint8Array:Array)(I<<1);if(r)i.set(t);else for(e=0;e>>8&255]<<16|s[A>>>16&255]<<8|s[A>>>24&255])>>32-e:s[A]>>8-e),8>e+n)o=o<>e-I-1&1,8===++n&&(n=0,r[i++]=s[o],o=0,i===r.length&&(r=g(this)));r[i]=o,this.buffer=r,this.f=n,this.index=i},i.prototype.finish=function(){var A,e=this.buffer,t=this.index;return 0n;++n){for(var a=B=n,C=7,B=B>>>1;B;B>>>=1)a<<=1,a|=1&B,--C;o[n]=(a<>>0}var s=o;function E(e){var t,I=A,r="number"==typeof I?I:I=0,i=e.length;for(t=-1,r=7&i;r--;++I)t=t>>>8^Q[255&(t^e[I])];for(r=i>>3;r--;I+=8)t=(t=(t=(t=(t=(t=(t=(t=t>>>8^Q[255&(t^e[I])])>>>8^Q[255&(t^e[I+1])])>>>8^Q[255&(t^e[I+2])])>>>8^Q[255&(t^e[I+3])])>>>8^Q[255&(t^e[I+4])])>>>8^Q[255&(t^e[I+5])])>>>8^Q[255&(t^e[I+6])])>>>8^Q[255&(t^e[I+7])];return(4294967295^t)>>>0}var h=[0,1996959894,3993919788,2567524794,124634137,1886057615,3915621685,2657392035,249268274,2044508324,3772115230,2547177864,162941995,2125561021,3887607047,2428444049,498536548,1789927666,4089016648,2227061214,450548861,1843258603,4107580753,2211677639,325883990,1684777152,4251122042,2321926636,335633487,1661365465,4195302755,2366115317,997073096,1281953886,3579855332,2724688242,1006888145,1258607687,3524101629,2768942443,901097722,1119000684,3686517206,2898065728,853044451,1172266101,3705015759,2882616665,651767980,1373503546,3369554304,3218104598,565507253,1454621731,3485111705,3099436303,671266974,1594198024,3322730930,2970347812,795835527,1483230225,3244367275,3060149565,1994146192,31158534,2563907772,4023717930,1907459465,112637215,2680153253,3904427059,2013776290,251722036,2517215374,3775830040,2137656763,141376813,2439277719,3865271297,1802195444,476864866,2238001368,4066508878,1812370925,453092731,2181625025,4111451223,1706088902,314042704,2344532202,4240017532,1658658271,366619977,2362670323,4224994405,1303535960,984961486,2747007092,3569037538,1256170817,1037604311,2765210733,3554079995,1131014506,879679996,2909243462,3663771856,1141124467,855842277,2852801631,3708648649,1342533948,654459306,3188396048,3373015174,1466479909,544179635,3110523913,3462522015,1591671054,702138776,2966460450,3352799412,1504918807,783551873,3082640443,3233442989,3988292384,2596254646,62317068,1957810842,3939845945,2647816111,81470997,1943803523,3814918930,2489596804,225274430,2053790376,3826175755,2466906013,167816743,2097651377,4027552580,2265490386,503444072,1762050814,4150417245,2154129355,426522225,1852507879,4275313526,2312317920,282753626,1742555852,4189708143,2394877945,397917763,1622183637,3604390888,2714866558,953729732,1340076626,3518719985,2797360999,1068828381,1219638859,3624741850,2936675148,906185462,1090812512,3747672003,2825379669,829329135,1181335161,3412177804,3160834842,628085408,1382605366,3423369109,3138078467,570562233,1426400815,3317316542,2998733608,733239954,1555261956,3268935591,3050360625,752459403,1541320221,2607071920,3965973030,1969922972,40735498,2617837225,3943577151,1913087877,83908371,2512341634,3803740692,2075208622,213261112,2463272603,3855990285,2094854071,198958881,2262029012,4057260610,1759359992,534414190,2176718541,4139329115,1873836001,414664567,2282248934,4279200368,1711684554,285281116,2405801727,4167216745,1634467795,376229701,2685067896,3608007406,1308918612,956543938,2808555105,3495958263,1231636301,1047427035,2932959818,3654703836,1088359270,936918e3,2847714899,3736837829,1202900863,817233897,3183342108,3401237130,1404277552,615818150,3134207493,3453421203,1423857449,601450431,3009837614,3294710456,1567103746,711928724,3020668471,3272380065,1510334235,755167117],Q=r?new Uint32Array(h):h;function c(A){this.buffer=new(r?Uint16Array:Array)(2*A),this.length=0}function u(A,e){this.k=l,this.l=0,this.input=r&&A instanceof Array?new Uint8Array(A):A,this.e=0,e&&(e.lazy&&(this.l=e.lazy),"number"==typeof e.compressionType&&(this.k=e.compressionType),e.outputBuffer&&(this.c=r&&e.outputBuffer instanceof Array?new Uint8Array(e.outputBuffer):e.outputBuffer),"number"==typeof e.outputIndex&&(this.e=e.outputIndex)),this.c||(this.c=new(r?Uint8Array:Array)(32768))}c.prototype.getParent=function(A){return 2*((A-2)/4|0)},c.prototype.push=function(A,e){var t,I,r,i=this.buffer;for(t=this.length,i[this.length++]=e,i[this.length++]=A;0i[I]);)r=i[t],i[t]=i[I],i[I]=r,r=i[t+1],i[t+1]=i[I+1],i[I+1]=r,t=I;return this.length},c.prototype.pop=function(){var A,e,t,I,r,i=this.buffer;for(e=i[0],A=i[1],this.length-=2,i[0]=i[this.length],i[1]=i[this.length+1],r=0;!((I=2*r+2)>=this.length)&&(I+2i[I]&&(I+=2),i[I]>i[r]);)t=i[r],i[r]=i[I],i[I]=t,t=i[r+1],i[r+1]=i[I+1],i[I+1]=t,r=I;return{index:A,value:e,length:this.length}};var f,l=2,y=[];for(f=0;288>f;f++)switch(e){case 143>=f:y.push([f+48,8]);break;case 255>=f:y.push([f-144+400,9]);break;case 279>=f:y.push([f-256+0,7]);break;case 287>=f:y.push([f-280+192,8]);break;default:throw"invalid literal: "+f}function p(A,e){this.length=A,this.n=e}u.prototype.g=function(){var t,I,g,n,o=this.input;switch(this.k){case 0:for(g=0,n=o.length;g>>8&255,c[u++]=255&B,c[u++]=B>>>8&255,r)c.set(s,u),u+=s.length,c=c.subarray(0,u);else{for(h=0,Q=s.length;hP)for(;0P?P:138)>P-3&&X=X?(eA[j++]=17,eA[j++]=X-3,tA[17]++):(eA[j++]=18,eA[j++]=X-11,tA[18]++),P-=X;else if(eA[j++]=AA[W],tA[AA[W]]++,3>--P)for(;0P?P:6)>P-3&&XK;K++)V[K]=L[_[K]];for(b=19;4=A:return[265,A-11,1];case 14>=A:return[266,A-13,1];case 16>=A:return[267,A-15,1];case 18>=A:return[268,A-17,1];case 22>=A:return[269,A-19,2];case 26>=A:return[270,A-23,2];case 30>=A:return[271,A-27,2];case 34>=A:return[272,A-31,2];case 42>=A:return[273,A-35,3];case 50>=A:return[274,A-43,3];case 58>=A:return[275,A-51,3];case 66>=A:return[276,A-59,3];case 82>=A:return[277,A-67,4];case 98>=A:return[278,A-83,4];case 114>=A:return[279,A-99,4];case 130>=A:return[280,A-115,4];case 162>=A:return[281,A-131,5];case 194>=A:return[282,A-163,5];case 226>=A:return[283,A-195,5];case 257>=A:return[284,A-227,5];case 258===A:return[285,A-258,0];default:throw"invalid length: "+A}}var t,I,r=[];for(t=3;258>=t;t++)I=A(t),r[t]=I[2]<<24|I[1]<<16|I[0];return r}(),d=r?new Uint32Array(w):w;function F(t,I){function i(A,t){var I,r,i,g,n=A.n,o=[],a=0;switch(I=d[A.length],o[a++]=65535&I,o[a++]=I>>16&255,o[a++]=I>>24,e){case 1===n:r=[0,n-1,0];break;case 2===n:r=[1,n-2,0];break;case 3===n:r=[2,n-3,0];break;case 4===n:r=[3,n-4,0];break;case 6>=n:r=[4,n-5,1];break;case 8>=n:r=[5,n-7,1];break;case 12>=n:r=[6,n-9,2];break;case 16>=n:r=[7,n-13,2];break;case 24>=n:r=[8,n-17,3];break;case 32>=n:r=[9,n-25,3];break;case 48>=n:r=[10,n-33,4];break;case 64>=n:r=[11,n-49,4];break;case 96>=n:r=[12,n-65,5];break;case 128>=n:r=[13,n-97,5];break;case 192>=n:r=[14,n-129,6];break;case 256>=n:r=[15,n-193,6];break;case 384>=n:r=[16,n-257,7];break;case 512>=n:r=[17,n-385,7];break;case 768>=n:r=[18,n-513,8];break;case 1024>=n:r=[19,n-769,8];break;case 1536>=n:r=[20,n-1025,9];break;case 2048>=n:r=[21,n-1537,9];break;case 3072>=n:r=[22,n-2049,10];break;case 4096>=n:r=[23,n-3073,10];break;case 6144>=n:r=[24,n-4097,11];break;case 8192>=n:r=[25,n-6145,11];break;case 12288>=n:r=[26,n-8193,12];break;case 16384>=n:r=[27,n-12289,12];break;case 24576>=n:r=[28,n-16385,13];break;case 32768>=n:r=[29,n-24577,13];break;default:throw"invalid distance"}for(I=r,o[a++]=I[0],o[a++]=I[1],o[a++]=I[2],i=0,g=o.length;i=o;)l[o++]=0;for(o=0;29>=o;)y[o++]=0}for(l[256]=1,g=0,n=I.length;g=n){for(E&&i(E,-1),o=0,a=n-g;oi&&e+ia&&(r=I,a=i),258===i)break}return new p(a,e-r)}function m(A,e){var t,I,i,g,n,o=A.length,a=new c(572),C=new(r?Uint8Array:Array)(o);if(!r)for(g=0;g2*C[g-1]+B[g]&&(C[g]=2*C[g-1]+B[g]),E[g]=Array(C[g]),h[g]=Array(C[g]);for(i=0;iA[i]?(E[g][n]=o,h[g][n]=e,a+=2):(E[g][n]=A[i],h[g][n]=i,++i);Q[g]=0,1===B[g]&&I(g)}return s}(I,I.length,e),g=0,n=t.length;g>>=1;return g}function U(A){A=A||{},this.files=[],this.d=A.comment}var k=[80,75,1,2],G=[80,75,3,4],v=[80,75,5,6];function b(A,e){var t,I=65535&A[2]|2;return t=I*(1^I)>>8&255,M(A,e),t^e}function M(A,e){A[0]=(Q[255&(A[0]^e)]^A[0]>>>8)>>>0,A[1]=(6681*(20173*(A[1]+(255&A[0]))>>>0)>>>0)+1>>>0,A[2]=(Q[255&(A[2]^A[1]>>>24)]^A[2]>>>8)>>>0}function R(A,e){var t,r,i,g;if(Object.keys)t=Object.keys(e);else for(r in t=[],i=0,e)t[i++]=r;for(i=0,g=t.length;iS;++S)w[S]=b(F,11===D?255&t.h:256*Math.random()|0);for(U=w.length;S>8&255,C=t.a.compressionMethod,I[i++]=I[g++]=255&C,I[i++]=I[g++]=C>>8&255,B=t.a.date||new Date,I[i++]=I[g++]=(7&B.getMinutes())<<5|B.getSeconds()/2,I[i++]=I[g++]=B.getHours()<<3|B.getMinutes()>>3,I[i++]=I[g++]=(B.getMonth()+1&7)<<5|B.getDate(),I[i++]=I[g++]=(B.getFullYear()-1980&127)<<1|B.getMonth()+1>>3,s=t.h,I[i++]=I[g++]=255&s,I[i++]=I[g++]=s>>8&255,I[i++]=I[g++]=s>>16&255,I[i++]=I[g++]=s>>24&255,h=t.buffer.length,I[i++]=I[g++]=255&h,I[i++]=I[g++]=h>>8&255,I[i++]=I[g++]=h>>16&255,I[i++]=I[g++]=h>>24&255,Q=t.size,I[i++]=I[g++]=255&Q,I[i++]=I[g++]=Q>>8&255,I[i++]=I[g++]=Q>>16&255,I[i++]=I[g++]=Q>>24&255,I[i++]=I[g++]=255&c,I[i++]=I[g++]=c>>8&255,I[i++]=I[g++]=0,I[i++]=I[g++]=0,I[g++]=255&f,I[g++]=f>>8&255,I[g++]=0,I[g++]=0,I[g++]=0,I[g++]=0,I[g++]=0,I[g++]=0,I[g++]=0,I[g++]=0,I[g++]=255&o,I[g++]=o>>8&255,I[g++]=o>>16&255,I[g++]=o>>24&255,l=t.a.filename)if(r)I.set(l,i),I.set(l,g),i+=c,g+=c;else for(S=0;S>8&255,I[n++]=255&m,I[n++]=m>>8&255,I[n++]=255&N,I[n++]=N>>8&255,I[n++]=N>>16&255,I[n++]=N>>24&255,I[n++]=255&Y,I[n++]=Y>>8&255,I[n++]=Y>>16&255,I[n++]=Y>>24&255,f=this.d?this.d.length:0,I[n++]=255&f,I[n++]=f>>8&255,this.d)if(r)I.set(this.d,n);else for(S=0,U=f;S>>8&255]<<16|s[A>>>16&255]<<8|s[A>>>24&255])>>32-e:s[A]>>8-e),8>e+g)n=n<>e-I-1&1,8===++g&&(g=0,r[i++]=s[n],n=0,i===r.length&&(r=this.f()));r[i]=n,this.buffer=r,this.m=g,this.index=i},g.prototype.finish=function(){var A,e=this.buffer,t=this.index;return 0n;++n){for(var a=B=n,C=7,B=B>>>1;B;B>>>=1)a<<=1,a|=1&B,--C;o[n]=(a<>>0}var s=o;function E(A,e,t){var I,r="number"==typeof e?e:e=0,i="number"==typeof t?t:A.length;for(I=-1,r=7&i;r--;++e)I=I>>>8^Q[255&(I^A[e])];for(r=i>>3;r--;e+=8)I=(I=(I=(I=(I=(I=(I=(I=I>>>8^Q[255&(I^A[e])])>>>8^Q[255&(I^A[e+1])])>>>8^Q[255&(I^A[e+2])])>>>8^Q[255&(I^A[e+3])])>>>8^Q[255&(I^A[e+4])])>>>8^Q[255&(I^A[e+5])])>>>8^Q[255&(I^A[e+6])])>>>8^Q[255&(I^A[e+7])];return(4294967295^I)>>>0}var h=[0,1996959894,3993919788,2567524794,124634137,1886057615,3915621685,2657392035,249268274,2044508324,3772115230,2547177864,162941995,2125561021,3887607047,2428444049,498536548,1789927666,4089016648,2227061214,450548861,1843258603,4107580753,2211677639,325883990,1684777152,4251122042,2321926636,335633487,1661365465,4195302755,2366115317,997073096,1281953886,3579855332,2724688242,1006888145,1258607687,3524101629,2768942443,901097722,1119000684,3686517206,2898065728,853044451,1172266101,3705015759,2882616665,651767980,1373503546,3369554304,3218104598,565507253,1454621731,3485111705,3099436303,671266974,1594198024,3322730930,2970347812,795835527,1483230225,3244367275,3060149565,1994146192,31158534,2563907772,4023717930,1907459465,112637215,2680153253,3904427059,2013776290,251722036,2517215374,3775830040,2137656763,141376813,2439277719,3865271297,1802195444,476864866,2238001368,4066508878,1812370925,453092731,2181625025,4111451223,1706088902,314042704,2344532202,4240017532,1658658271,366619977,2362670323,4224994405,1303535960,984961486,2747007092,3569037538,1256170817,1037604311,2765210733,3554079995,1131014506,879679996,2909243462,3663771856,1141124467,855842277,2852801631,3708648649,1342533948,654459306,3188396048,3373015174,1466479909,544179635,3110523913,3462522015,1591671054,702138776,2966460450,3352799412,1504918807,783551873,3082640443,3233442989,3988292384,2596254646,62317068,1957810842,3939845945,2647816111,81470997,1943803523,3814918930,2489596804,225274430,2053790376,3826175755,2466906013,167816743,2097651377,4027552580,2265490386,503444072,1762050814,4150417245,2154129355,426522225,1852507879,4275313526,2312317920,282753626,1742555852,4189708143,2394877945,397917763,1622183637,3604390888,2714866558,953729732,1340076626,3518719985,2797360999,1068828381,1219638859,3624741850,2936675148,906185462,1090812512,3747672003,2825379669,829329135,1181335161,3412177804,3160834842,628085408,1382605366,3423369109,3138078467,570562233,1426400815,3317316542,2998733608,733239954,1555261956,3268935591,3050360625,752459403,1541320221,2607071920,3965973030,1969922972,40735498,2617837225,3943577151,1913087877,83908371,2512341634,3803740692,2075208622,213261112,2463272603,3855990285,2094854071,198958881,2262029012,4057260610,1759359992,534414190,2176718541,4139329115,1873836001,414664567,2282248934,4279200368,1711684554,285281116,2405801727,4167216745,1634467795,376229701,2685067896,3608007406,1308918612,956543938,2808555105,3495958263,1231636301,1047427035,2932959818,3654703836,1088359270,936918e3,2847714899,3736837829,1202900863,817233897,3183342108,3401237130,1404277552,615818150,3134207493,3453421203,1423857449,601450431,3009837614,3294710456,1567103746,711928724,3020668471,3272380065,1510334235,755167117],Q=i?new Uint32Array(h):h;function c(){}function u(A){this.buffer=new(i?Uint16Array:Array)(2*A),this.length=0}function f(A){var e,t,I,r,g,n,o,a,C,B,s=A.length,E=0,h=Number.POSITIVE_INFINITY;for(a=0;aE&&(E=A[a]),A[a]>=1;for(B=I<<16|a,C=n;Ci[I]);)r=i[t],i[t]=i[I],i[I]=r,r=i[t+1],i[t+1]=i[I+1],i[I+1]=r,t=I;return this.length},u.prototype.pop=function(){var A,e,t,I,r,i=this.buffer;for(e=i[0],A=i[1],this.length-=2,i[0]=i[this.length],i[1]=i[this.length+1],r=0;!((I=2*r+2)>=this.length)&&(I+2i[I]&&(I+=2),i[I]>i[r]);)t=i[r],i[r]=i[I],i[I]=t,t=i[r+1],i[r+1]=i[I+1],i[I+1]=t,r=I;return{index:A,value:e,length:this.length}};var y,p=2,w={NONE:0,v:1,o:p,aa:3},d=[];for(y=0;288>y;y++)switch(t){case 143>=y:d.push([y+48,8]);break;case 255>=y:d.push([y-144+400,9]);break;case 279>=y:d.push([y-256+0,7]);break;case 287>=y:d.push([y-280+192,8]);break;default:A("invalid literal: "+y)}function F(A,e){this.length=A,this.P=e}l.prototype.g=function(){var I,r,n,o,a=this.input;switch(this.k){case 0:for(n=0,o=a.length;n>>8&255,u[f++]=255&s,u[f++]=s>>>8&255,i)u.set(E,f),f+=E.length,u=u.subarray(0,f);else{for(Q=0,c=E.length;QZ)for(;0Z?Z:138)>Z-3&&z=z?(tA[X++]=17,tA[X++]=z-3,IA[17]++):(tA[X++]=18,tA[X++]=z-11,IA[18]++),Z-=z;else if(tA[X++]=eA[O],IA[eA[O]]++,3>--Z)for(;0Z?Z:6)>Z-3&&zT;T++)W[T]=H[V[T]];for(M=19;4=e:return[265,e-11,1];case 14>=e:return[266,e-13,1];case 16>=e:return[267,e-15,1];case 18>=e:return[268,e-17,1];case 22>=e:return[269,e-19,2];case 26>=e:return[270,e-23,2];case 30>=e:return[271,e-27,2];case 34>=e:return[272,e-31,2];case 42>=e:return[273,e-35,3];case 50>=e:return[274,e-43,3];case 58>=e:return[275,e-51,3];case 66>=e:return[276,e-59,3];case 82>=e:return[277,e-67,4];case 98>=e:return[278,e-83,4];case 114>=e:return[279,e-99,4];case 130>=e:return[280,e-115,4];case 162>=e:return[281,e-131,5];case 194>=e:return[282,e-163,5];case 226>=e:return[283,e-195,5];case 257>=e:return[284,e-227,5];case 258===e:return[285,e-258,0];default:A("invalid length: "+e)}}var I,r,i=[];for(I=3;258>=I;I++)r=e(I),i[I]=r[2]<<24|r[1]<<16|r[0];return i}(),m=i?new Uint32Array(D):D;function S(I,r){function g(e,I){var r,i,g,n,o=e.P,a=[],C=0;switch(r=m[e.length],a[C++]=65535&r,a[C++]=r>>16&255,a[C++]=r>>24,t){case 1===o:i=[0,o-1,0];break;case 2===o:i=[1,o-2,0];break;case 3===o:i=[2,o-3,0];break;case 4===o:i=[3,o-4,0];break;case 6>=o:i=[4,o-5,1];break;case 8>=o:i=[5,o-7,1];break;case 12>=o:i=[6,o-9,2];break;case 16>=o:i=[7,o-13,2];break;case 24>=o:i=[8,o-17,3];break;case 32>=o:i=[9,o-25,3];break;case 48>=o:i=[10,o-33,4];break;case 64>=o:i=[11,o-49,4];break;case 96>=o:i=[12,o-65,5];break;case 128>=o:i=[13,o-97,5];break;case 192>=o:i=[14,o-129,6];break;case 256>=o:i=[15,o-193,6];break;case 384>=o:i=[16,o-257,7];break;case 512>=o:i=[17,o-385,7];break;case 768>=o:i=[18,o-513,8];break;case 1024>=o:i=[19,o-769,8];break;case 1536>=o:i=[20,o-1025,9];break;case 2048>=o:i=[21,o-1537,9];break;case 3072>=o:i=[22,o-2049,10];break;case 4096>=o:i=[23,o-3073,10];break;case 6144>=o:i=[24,o-4097,11];break;case 8192>=o:i=[25,o-6145,11];break;case 12288>=o:i=[26,o-8193,12];break;case 16384>=o:i=[27,o-12289,12];break;case 24576>=o:i=[28,o-16385,13];break;case 32768>=o:i=[29,o-24577,13];break;default:A("invalid distance")}for(r=i,a[C++]=r[0],a[C++]=r[1],a[C++]=r[2],g=0,n=a.length;g=a;)y[a++]=0;for(a=0;29>=a;)p[a++]=0}for(y[256]=1,n=0,o=r.length;n=o){for(h&&g(h,-1),a=0,C=o-n;ai&&e+ia&&(r=I,a=i),258===i)break}return new F(a,e-r)}function k(A,e){var t,I,r,g,n,o=A.length,a=new u(572),C=new(i?Uint8Array:Array)(o);if(!i)for(g=0;g2*C[g-1]+B[g]&&(C[g]=2*C[g-1]+B[g]),E[g]=Array(C[g]),h[g]=Array(C[g]);for(r=0;rA[r]?(E[g][n]=o,h[g][n]=e,a+=2):(E[g][n]=A[r],h[g][n]=r,++r);Q[g]=0,1===B[g]&&I(g)}return s}(I,I.length,e),g=0,n=t.length;g>>=1;return g}function v(A,e){this.input=A,this.b=this.c=0,this.i={},e&&(e.flags&&(this.i=e.flags),"string"==typeof e.filename&&(this.filename=e.filename),"string"==typeof e.comment&&(this.A=e.comment),e.deflateOptions&&(this.l=e.deflateOptions)),this.l||(this.l={})}v.prototype.g=function(){var A,t,I,r,g,n,o,a,C=new(i?Uint8Array:Array)(32768),B=0,s=this.input,h=this.c,Q=this.filename,c=this.A;if(C[B++]=31,C[B++]=139,C[B++]=8,A=0,this.i.fname&&(A|=R),this.i.fcomment&&(A|=Y),this.i.fhcrc&&(A|=M),C[B++]=A,t=(Date.now?Date.now():+new Date)/1e3|0,C[B++]=255&t,C[B++]=t>>>8&255,C[B++]=t>>>16&255,C[B++]=t>>>24&255,C[B++]=0,C[B++]=b,this.i.fname!==e){for(o=0,a=Q.length;o>>8&255),C[B++]=255&n;C[B++]=0}if(this.i.comment){for(o=0,a=c.length;o>>8&255),C[B++]=255&n;C[B++]=0}return this.i.fhcrc&&(I=65535&E(C,0,B),C[B++]=255&I,C[B++]=I>>>8&255),this.l.outputBuffer=C,this.l.outputIndex=B,C=(g=new l(s,this.l)).g(),B=g.b,i&&(B+8>C.buffer.byteLength?(this.a=new Uint8Array(B+8),this.a.set(new Uint8Array(C.buffer)),C=this.a):C=new Uint8Array(C.buffer)),r=E(s,e,e),C[B++]=255&r,C[B++]=r>>>8&255,C[B++]=r>>>16&255,C[B++]=r>>>24&255,a=s.length,C[B++]=255&a,C[B++]=a>>>8&255,C[B++]=a>>>16&255,C[B++]=a>>>24&255,this.c=h,i&&B>>=1){case 0:var r=this.input,g=this.c,n=this.a,o=this.b,a=r.length,C=e,B=n.length,s=e;switch(this.e=this.j=0,g+1>=a&&A(Error("invalid uncompressed block header: LEN")),C=r[g++]|r[g++]<<8,g+1>=a&&A(Error("invalid uncompressed block header: NLEN")),C===~(r[g++]|r[g++]<<8)&&A(Error("invalid uncompressed block header: length verify")),g+C>r.length&&A(Error("input buffer is broken")),this.r){case L:for(;o+C>n.length;){if(C-=s=B-o,i)n.set(r.subarray(g,g+s),o),o+=s,g+=s;else for(;s--;)n[o++]=r[g++];this.b=o,n=this.f(),o=this.b}break;case H:for(;o+C>n.length;)n=this.f({F:2});break;default:A(Error("invalid inflate mode"))}if(i)n.set(r.subarray(g,g+C),o),o+=C,g+=C;else for(;C--;)n[o++]=r[g++];this.c=g,this.b=o,this.a=n;break;case 1:this.s(eA,IA);break;case 2:var E,h,Q,c,u=rA(this,5)+257,l=rA(this,5)+1,y=rA(this,4)+4,p=new(i?Uint8Array:Array)(x.length),w=e,d=e,F=e,D=e,m=e;for(m=0;m=q?8:255>=q?9:279>=q?7:8;var $,AA,eA=f(z),tA=new(i?Uint8Array:Array)(30);for($=0,AA=tA.length;$=o&&A(Error("input buffer is broken")),r|=g[n++]<>>t,e.e=i-t,e.c=n,I}function iA(e,t){for(var I,r,i=e.j,g=e.e,n=e.input,o=e.c,a=n.length,C=t[0],B=t[1];g=a);)i|=n[o++]<>>16)>g&&A(Error("invalid code length: "+r)),e.j=i>>r,e.e=g-r,e.c=o,65535&I}function gA(A){this.input=A,this.c=0,this.t=[],this.D=!1}function nA(A){if("string"==typeof A){var e,t,I=A.split("");for(e=0,t=I.length;e>>0;A=I}for(var r,i=1,g=0,n=A.length,o=0;0>>0}function oA(e,t){var I,r;this.input=e,this.c=0,!t&&(t={})||(t.index&&(this.c=t.index),t.verify&&(this.Z=t.verify)),I=e[this.c++],r=e[this.c++],(15&I)===aA?this.method=aA:A(Error("unsupported compression method")),0!=((I<<8)+r)%31&&A(Error("invalid fcheck flag:"+((I<<8)+r)%31)),32&r&&A(Error("fdict flag is not supported")),this.K=new N(e,{index:this.c,bufferSize:t.bufferSize,bufferType:t.bufferType,resize:t.resize})}N.prototype.s=function(A,e){var t=this.a,I=this.b;this.C=A;for(var r,i,g,n,o=t.length-258;256!==(r=iA(this,A));)if(256>r)I>=o&&(this.b=I,t=this.f(),I=this.b),t[I++]=r;else for(n=V[i=r-257],0=o&&(this.b=I,t=this.f(),I=this.b);n--;)t[I]=t[I++-g];for(;8<=this.e;)this.e-=8,this.c--;this.b=I},N.prototype.S=function(A,e){var t=this.a,I=this.b;this.C=A;for(var r,i,g,n,o=t.length;256!==(r=iA(this,A));)if(256>r)I>=o&&(o=(t=this.f()).length),t[I++]=r;else for(n=V[i=r-257],0o&&(o=(t=this.f()).length);n--;)t[I]=t[I++-g];for(;8<=this.e;)this.e-=8,this.c--;this.b=I},N.prototype.f=function(){var A,e,t=new(i?Uint8Array:Array)(this.b-32768),I=this.b-32768,r=this.a;if(i)t.set(r.subarray(32768,t.length));else for(A=0,e=t.length;AA;++A)r[A]=r[I+A];return this.b=32768,r},N.prototype.T=function(A){var e,t,I,r=this.input.length/this.c+1|0,g=this.input,n=this.a;return A&&("number"==typeof A.F&&(r=A.F),"number"==typeof A.O&&(r+=A.O)),t=2>r?(I=(g.length-this.c)/this.C[2]/2*258|0)e&&(this.a.length=e),A=this.a),this.buffer=A},gA.prototype.W=function(){return this.D||this.h(),this.t.slice()},gA.prototype.h=function(){for(var I=this.input.length;this.c>>0,E(r,e,e)!==Q&&A(Error("invalid CRC-32 checksum: 0x"+E(r,e,e).toString(16)+" / 0x"+Q.toString(16))),n.ca=o=(u[f++]|u[f++]<<8|u[f++]<<16|u[f++]<<24)>>>0,(4294967295&r.length)!==o&&A(Error("invalid input size: "+(4294967295&r.length)+" / "+o)),this.t.push(n),this.c=f}this.D=t;var l,y,p,w=this.t,d=0,F=0;for(l=0,y=w.length;l>>0!==nA(e)&&A(Error("invalid adler-32 checksum")),e};var aA=8;function CA(A,e){this.input=A,this.a=new(i?Uint8Array:Array)(32768),this.k=BA.o;var t,I={};for(t in!e&&(e={})||"number"!=typeof e.compressionType||(this.k=e.compressionType),e)I[t]=e[t];I.outputBuffer=this.a,this.J=new l(this.input,I)}var BA=w;function sA(A,e){var t,I,i,g;if(Object.keys)t=Object.keys(e);else for(I in t=[],i=0,e)t[i++]=I;for(i=0,g=t.length;i>24&255,o[a++]=n>>16&255,o[a++]=n>>8&255,o[a++]=255&n,o},r("Zlib.Inflate",oA),r("Zlib.Inflate.prototype.decompress",oA.prototype.h),sA("Zlib.Inflate.BufferType",{ADAPTIVE:J.M,BLOCK:J.N}),r("Zlib.Deflate",CA),r("Zlib.Deflate.compress",function(A,e){return new CA(A,e).g()}),r("Zlib.Deflate.prototype.compress",CA.prototype.g),sA("Zlib.Deflate.CompressionType",{NONE:BA.NONE,FIXED:BA.v,DYNAMIC:BA.o}),r("Zlib.Gzip",v),r("Zlib.Gzip.prototype.compress",v.prototype.g),r("Zlib.Gunzip",gA),r("Zlib.Gunzip.prototype.decompress",gA.prototype.h),r("Zlib.Gunzip.prototype.getMembers",gA.prototype.W),r("Zlib.GunzipMember",c),r("Zlib.GunzipMember.prototype.getName",c.prototype.getName),r("Zlib.GunzipMember.prototype.getData",c.prototype.getData),r("Zlib.GunzipMember.prototype.getMtime",c.prototype.X)}).call(this)},77650(){},25172(A){A.exports=function(A,e){this.v=A,this.k=e},A.exports.__esModule=!0,A.exports.default=A.exports},16993(A,e,t){var I=t(75546);function r(){var e,t,i="function"==typeof Symbol?Symbol:{},g=i.iterator||"@@iterator",n=i.toStringTag||"@@toStringTag";function o(A,r,i,g){var n=r&&r.prototype instanceof C?r:C,o=Object.create(n.prototype);return I(o,"_invoke",function(A,I,r){var i,g,n,o=0,C=r||[],B=!1,s={p:0,n:0,v:e,a:E,f:E.bind(e,4),d:function(A,t){return i=A,g=0,n=e,s.n=t,a}};function E(A,I){for(g=A,n=I,t=0;!B&&o&&!r&&t3?(r=h===I)&&(n=i[(g=i[4])?5:(g=3,3)],i[4]=i[5]=e):i[0]<=E&&((r=A<2&&EI||I>h)&&(i[4]=A,i[5]=I,s.n=h,g=0))}if(r||A>1)return a;throw B=!0,I}return function(r,C,h){if(o>1)throw TypeError("Generator is already running");for(B&&1===C&&E(C,h),g=C,n=h;(t=g<2?e:n)||!B;){i||(g?g<3?(g>1&&(s.n=-1),E(g,n)):s.n=n:s.v=n);try{if(o=2,i){if(g||(r="next"),t=i[r]){if(!(t=t.call(i,n)))throw TypeError("iterator result is not an object");if(!t.done)return t;n=t.value,g<2&&(g=0)}else 1===g&&(t=i.return)&&t.call(i),g<2&&(n=TypeError("The iterator does not provide a '"+r+"' method"),g=1);i=e}else if((t=(B=s.n<0)?n:A.call(I,s))!==a)break}catch(A){i=e,g=1,n=A}finally{o=1}}return{value:t,done:B}}}(A,i,g),!0),o}var a={};function C(){}function B(){}function s(){}t=Object.getPrototypeOf;var E=[][g]?t(t([][g]())):(I(t={},g,function(){return this}),t),h=s.prototype=C.prototype=Object.create(E);function Q(A){return Object.setPrototypeOf?Object.setPrototypeOf(A,s):(A.__proto__=s,I(A,n,"GeneratorFunction")),A.prototype=Object.create(h),A}return B.prototype=s,I(h,"constructor",s),I(s,"constructor",B),B.displayName="GeneratorFunction",I(s,n,"GeneratorFunction"),I(h),I(h,n,"Generator"),I(h,g,function(){return this}),I(h,"toString",function(){return"[object Generator]"}),(A.exports=r=function(){return{w:o,m:Q}},A.exports.__esModule=!0,A.exports.default=A.exports)()}A.exports=r,A.exports.__esModule=!0,A.exports.default=A.exports},55869(A,e,t){var I=t(887);A.exports=function(A,e,t,r,i){var g=I(A,e,t,r,i);return g.next().then(function(A){return A.done?A.value:g.next()})},A.exports.__esModule=!0,A.exports.default=A.exports},887(A,e,t){var I=t(16993),r=t(11791);A.exports=function(A,e,t,i,g){return new r(I().w(A,e,t,i),g||Promise)},A.exports.__esModule=!0,A.exports.default=A.exports},11791(A,e,t){var I=t(25172),r=t(75546);A.exports=function A(e,t){function i(A,r,g,n){try{var o=e[A](r),a=o.value;return a instanceof I?t.resolve(a.v).then(function(A){i("next",A,g,n)},function(A){i("throw",A,g,n)}):t.resolve(a).then(function(A){o.value=A,g(o)},function(A){return i("throw",A,g,n)})}catch(A){n(A)}}var g;this.next||(r(A.prototype),r(A.prototype,"function"==typeof Symbol&&Symbol.asyncIterator||"@asyncIterator",function(){return this})),r(this,"_invoke",function(A,e,I){function r(){return new t(function(e,t){i(A,I,e,t)})}return g=g?g.then(r,r):r()},!0)},A.exports.__esModule=!0,A.exports.default=A.exports},75546(A){function e(t,I,r,i){var g=Object.defineProperty;try{g({},"",{})}catch(t){g=0}A.exports=e=function(A,t,I,r){function i(t,I){e(A,t,function(A){return this._invoke(t,I,A)})}t?g?g(A,t,{value:I,enumerable:!r,configurable:!r,writable:!r}):A[t]=I:(i("next",0),i("throw",1),i("return",2))},A.exports.__esModule=!0,A.exports.default=A.exports,e(t,I,r,i)}A.exports=e,A.exports.__esModule=!0,A.exports.default=A.exports},4373(A){A.exports=function(A){var e=Object(A),t=[];for(var I in e)t.unshift(I);return function A(){for(;t.length;)if((I=t.pop())in e)return A.value=I,A.done=!1,A;return A.done=!0,A}},A.exports.__esModule=!0,A.exports.default=A.exports},4633(A,e,t){var I=t(25172),r=t(16993),i=t(55869),g=t(887),n=t(11791),o=t(4373),a=t(30579);function C(){"use strict";var e=r(),t=e.m(C),B=(Object.getPrototypeOf?Object.getPrototypeOf(t):t.__proto__).constructor;function s(A){var e="function"==typeof A&&A.constructor;return!!e&&(e===B||"GeneratorFunction"===(e.displayName||e.name))}var E={throw:1,return:2,break:3,continue:3};function h(A){var e,t;return function(I){e||(e={stop:function(){return t(I.a,2)},catch:function(){return I.v},abrupt:function(A,e){return t(I.a,E[A],e)},delegateYield:function(A,r,i){return e.resultName=r,t(I.d,a(A),i)},finish:function(A){return t(I.f,A)}},t=function(A,t,r){I.p=e.prev,I.n=e.next;try{return A(t,r)}finally{e.next=I.n}}),e.resultName&&(e[e.resultName]=I.v,e.resultName=void 0),e.sent=I.v,e.next=I.n;try{return A.call(this,e)}finally{I.p=e.prev,I.n=e.next}}}return(A.exports=C=function(){return{wrap:function(A,t,I,r){return e.w(h(A),t,I,r&&r.reverse())},isGeneratorFunction:s,mark:e.m,awrap:function(A,e){return new I(A,e)},AsyncIterator:n,async:function(A,e,t,I,r){return(s(e)?g:i)(h(A),e,t,I,r)},keys:o,values:a}},A.exports.__esModule=!0,A.exports.default=A.exports)()}A.exports=C,A.exports.__esModule=!0,A.exports.default=A.exports},30579(A,e,t){var I=t(73738).default;A.exports=function(A){if(null!=A){var e=A["function"==typeof Symbol&&Symbol.iterator||"@@iterator"],t=0;if(e)return e.call(A);if("function"==typeof A.next)return A;if(!isNaN(A.length))return{next:function(){return A&&t>=A.length&&(A=void 0),{value:A&&A[t++],done:!A}}}}throw new TypeError(I(A)+" is not iterable")},A.exports.__esModule=!0,A.exports.default=A.exports},73738(A){function e(t){return A.exports=e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(A){return typeof A}:function(A){return A&&"function"==typeof Symbol&&A.constructor===Symbol&&A!==Symbol.prototype?"symbol":typeof A},A.exports.__esModule=!0,A.exports.default=A.exports,e(t)}A.exports=e,A.exports.__esModule=!0,A.exports.default=A.exports},54756(A,e,t){var I=t(4633)();A.exports=I;try{regeneratorRuntime=I}catch(A){"object"==typeof globalThis?globalThis.regeneratorRuntime=I:Function("r","regeneratorRuntime = r")(I)}}};const __webpack_module_cache__={};function __webpack_require__(A){const e=__webpack_module_cache__[A];if(void 0!==e)return e.exports;const t=__webpack_module_cache__[A]={exports:{}};return __webpack_modules__[A].call(t.exports,t,t.exports,__webpack_require__),t.exports}__webpack_require__.n=A=>{const e=A&&A.__esModule?()=>A.default:()=>A;return __webpack_require__.d(e,{a:e}),e},__webpack_require__.d=(A,e)=>{if(Array.isArray(e))for(var t=0;tObject.prototype.hasOwnProperty.call(A,e);let __webpack_exports__={};(()=>{"use strict";function A(A,e){(null==e||e>A.length)&&(e=A.length);for(var t=0,I=Array(e);t1&&void 0!==arguments[1]?arguments[1]:"A-Za-z0-9+/=";if(!A)return"";if("string"==typeof A&&(A=N.strToArrayBuffer(A)),A instanceof ArrayBuffer&&(A=new Uint8Array(A)),64!==(e=N.expandAlphRange(e).join("")).length&&65!==e.length)throw new F(`Invalid Base64 alphabet length (${e.length}): ${e}`);for(var t,I,r,i,g,n,o,a="",C=0;C>2,g=(3&t)<<4|(I=A[C++])>>4,n=(15&I)<<2|(r=A[C++])>>6,o=63&r,isNaN(I)?n=o=64:isNaN(r)&&(o=64),a+=e.charAt(i)+e.charAt(g)+e.charAt(n)+e.charAt(o);return a}function m(A){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"A-Za-z0-9+/=",t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"string",I=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(!A)return"string"===t?"":[];if(e=e||"A-Za-z0-9+/=",64!==(e=N.expandAlphRange(e).join("")).length&&65!==e.length)throw new F(`Error: Base64 alphabet should be 64 characters long, or 65 with a padding character. Found ${e.length}: ${e}`);if(I){var i=new RegExp("[^"+e.replace(/[[\]\\\-^$]/g,"\\$&")+"]","g");A=A.replace(i,"")}if(r){if(A.length%4==1)throw new F(`Error: Invalid Base64 input length (${A.length}). Cannot be 4n+1, even without padding chars.`);if(65===e.length){var g=e.charAt(64),n=A.indexOf(g);if(n>=0){if(n>2,C=(3&E)<<6|h,(o=B<<2|s>>4)>=0&&o<256&&Q.push(o),a>=0&&a<256&&64!==E&&Q.push(a),C>=0&&C<256&&64!==h&&Q.push(C)}return"string"===t?N.byteArrayToUtf8(Q):Q}function S(A){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"Auto",t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:2;if(t<1||Math.round(t)!==t)throw new F("Byte length must be a positive integer");if("None"!==e){var I="Auto"===e?/[^a-f\d]|0x/gi:N.regexRep(e);A=A.split(I)}else A=[A];for(var r=[],i=0;i1&&void 0!==arguments[1]?arguments[1]:"Auto",t="Auto"===e?/[^\d-]+/:N.regexRep(e),I=A.split(t);I=I.filter(function(A){return""!==A});for(var r=[],i=0;i1&&void 0!==arguments[1]?arguments[1]:"Space",t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:8;if(t<1||Math.round(t)!==t)throw new F("Byte length must be a positive integer");var I=N.regexRep(e);A=A.replace(I,"");for(var r=[],i=0;i65535){A-=65536;var e=String.fromCharCode(A>>>10&1023|55296);return A=56320|1023&A,e+String.fromCharCode(A)}return String.fromCharCode(A)}},{key:"ord",value:function(A){if(2===A.length){var e=A.charCodeAt(0),t=A.charCodeAt(1);if(e>=55296&&e<56320&&t>=56320&&t<57344)return 1024*(e-55296)+t-56320+65536}return A.charCodeAt(0)}},{key:"padBytesRight",value:function(A,e){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,I=new Array(e);return I.fill(t),c(A).forEach(function(A,e){I[e]=A}),I}},{key:"truncate",value:function(A,e){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"...";return A.length>e&&(A=A.slice(0,e-t.length)+t),A}},{key:"hex",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;return(e="string"==typeof e?A.ord(e):e).toString(16).padStart(t,"0")}},{key:"bin",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:8;return(e="string"==typeof e?A.ord(e):e).toString(2).padStart(t,"0")}},{key:"printable",value:function(A){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return arguments.length>2&&void 0!==arguments[2]&&arguments[2]?A.replace(/[^\x20-\x7e]/g,"."):(A=A.replace(/[\0-\x08\x0B-\x0C\x0E-\x1F\x7F-\x9F\xAD\u0378\u0379\u037F-\u0383\u038B\u038D\u03A2\u0528-\u0530\u0557\u0558\u0560\u0588\u058B-\u058E\u0590\u05C8-\u05CF\u05EB-\u05EF\u05F5-\u0605\u061C\u061D\u06DD\u070E\u070F\u074B\u074C\u07B2-\u07BF\u07FB-\u07FF\u082E\u082F\u083F\u085C\u085D\u085F-\u089F\u08A1\u08AD-\u08E3\u08FF\u0978\u0980\u0984\u098D\u098E\u0991\u0992\u09A9\u09B1\u09B3-\u09B5\u09BA\u09BB\u09C5\u09C6\u09C9\u09CA\u09CF-\u09D6\u09D8-\u09DB\u09DE\u09E4\u09E5\u09FC-\u0A00\u0A04\u0A0B-\u0A0E\u0A11\u0A12\u0A29\u0A31\u0A34\u0A37\u0A3A\u0A3B\u0A3D\u0A43-\u0A46\u0A49\u0A4A\u0A4E-\u0A50\u0A52-\u0A58\u0A5D\u0A5F-\u0A65\u0A76-\u0A80\u0A84\u0A8E\u0A92\u0AA9\u0AB1\u0AB4\u0ABA\u0ABB\u0AC6\u0ACA\u0ACE\u0ACF\u0AD1-\u0ADF\u0AE4\u0AE5\u0AF2-\u0B00\u0B04\u0B0D\u0B0E\u0B11\u0B12\u0B29\u0B31\u0B34\u0B3A\u0B3B\u0B45\u0B46\u0B49\u0B4A\u0B4E-\u0B55\u0B58-\u0B5B\u0B5E\u0B64\u0B65\u0B78-\u0B81\u0B84\u0B8B-\u0B8D\u0B91\u0B96-\u0B98\u0B9B\u0B9D\u0BA0-\u0BA2\u0BA5-\u0BA7\u0BAB-\u0BAD\u0BBA-\u0BBD\u0BC3-\u0BC5\u0BC9\u0BCE\u0BCF\u0BD1-\u0BD6\u0BD8-\u0BE5\u0BFB-\u0C00\u0C04\u0C0D\u0C11\u0C29\u0C34\u0C3A-\u0C3C\u0C45\u0C49\u0C4E-\u0C54\u0C57\u0C5A-\u0C5F\u0C64\u0C65\u0C70-\u0C77\u0C80\u0C81\u0C84\u0C8D\u0C91\u0CA9\u0CB4\u0CBA\u0CBB\u0CC5\u0CC9\u0CCE-\u0CD4\u0CD7-\u0CDD\u0CDF\u0CE4\u0CE5\u0CF0\u0CF3-\u0D01\u0D04\u0D0D\u0D11\u0D3B\u0D3C\u0D45\u0D49\u0D4F-\u0D56\u0D58-\u0D5F\u0D64\u0D65\u0D76-\u0D78\u0D80\u0D81\u0D84\u0D97-\u0D99\u0DB2\u0DBC\u0DBE\u0DBF\u0DC7-\u0DC9\u0DCB-\u0DCE\u0DD5\u0DD7\u0DE0-\u0DF1\u0DF5-\u0E00\u0E3B-\u0E3E\u0E5C-\u0E80\u0E83\u0E85\u0E86\u0E89\u0E8B\u0E8C\u0E8E-\u0E93\u0E98\u0EA0\u0EA4\u0EA6\u0EA8\u0EA9\u0EAC\u0EBA\u0EBE\u0EBF\u0EC5\u0EC7\u0ECE\u0ECF\u0EDA\u0EDB\u0EE0-\u0EFF\u0F48\u0F6D-\u0F70\u0F98\u0FBD\u0FCD\u0FDB-\u0FFF\u10C6\u10C8-\u10CC\u10CE\u10CF\u1249\u124E\u124F\u1257\u1259\u125E\u125F\u1289\u128E\u128F\u12B1\u12B6\u12B7\u12BF\u12C1\u12C6\u12C7\u12D7\u1311\u1316\u1317\u135B\u135C\u137D-\u137F\u139A-\u139F\u13F5-\u13FF\u169D-\u169F\u16F1-\u16FF\u170D\u1715-\u171F\u1737-\u173F\u1754-\u175F\u176D\u1771\u1774-\u177F\u17DE\u17DF\u17EA-\u17EF\u17FA-\u17FF\u180F\u181A-\u181F\u1878-\u187F\u18AB-\u18AF\u18F6-\u18FF\u191D-\u191F\u192C-\u192F\u193C-\u193F\u1941-\u1943\u196E\u196F\u1975-\u197F\u19AC-\u19AF\u19CA-\u19CF\u19DB-\u19DD\u1A1C\u1A1D\u1A5F\u1A7D\u1A7E\u1A8A-\u1A8F\u1A9A-\u1A9F\u1AAE-\u1AFF\u1B4C-\u1B4F\u1B7D-\u1B7F\u1BF4-\u1BFB\u1C38-\u1C3A\u1C4A-\u1C4C\u1C80-\u1CBF\u1CC8-\u1CCF\u1CF7-\u1CFF\u1DE7-\u1DFB\u1F16\u1F17\u1F1E\u1F1F\u1F46\u1F47\u1F4E\u1F4F\u1F58\u1F5A\u1F5C\u1F5E\u1F7E\u1F7F\u1FB5\u1FC5\u1FD4\u1FD5\u1FDC\u1FF0\u1FF1\u1FF5\u1FFF\u200B-\u200F\u202A-\u202E\u2060-\u206F\u2072\u2073\u208F\u209D-\u209F\u20BB-\u20CF\u20F1-\u20FF\u218A-\u218F\u23F4-\u23FF\u2427-\u243F\u244B-\u245F\u2700\u2B4D-\u2B4F\u2B5A-\u2BFF\u2C2F\u2C5F\u2CF4-\u2CF8\u2D26\u2D28-\u2D2C\u2D2E\u2D2F\u2D68-\u2D6E\u2D71-\u2D7E\u2D97-\u2D9F\u2DA7\u2DAF\u2DB7\u2DBF\u2DC7\u2DCF\u2DD7\u2DDF\u2E3C-\u2E7F\u2E9A\u2EF4-\u2EFF\u2FD6-\u2FEF\u2FFC-\u2FFF\u3040\u3097\u3098\u3100-\u3104\u312E-\u3130\u318F\u31BB-\u31BF\u31E4-\u31EF\u321F\u32FF\u4DB6-\u4DBF\u9FCD-\u9FFF\uA48D-\uA48F\uA4C7-\uA4CF\uA62C-\uA63F\uA698-\uA69E\uA6F8-\uA6FF\uA78F\uA794-\uA79F\uA7AB-\uA7F7\uA82C-\uA82F\uA83A-\uA83F\uA878-\uA87F\uA8C5-\uA8CD\uA8DA-\uA8DF\uA8FC-\uA8FF\uA954-\uA95E\uA97D-\uA97F\uA9CE\uA9DA-\uA9DD\uA9E0-\uA9FF\uAA37-\uAA3F\uAA4E\uAA4F\uAA5A\uAA5B\uAA7C-\uAA7F\uAAC3-\uAADA\uAAF7-\uAB00\uAB07\uAB08\uAB0F\uAB10\uAB17-\uAB1F\uAB27\uAB2F-\uABBF\uABEE\uABEF\uABFA-\uABFF\uD7A4-\uD7AF\uD7C7-\uD7CA\uD7FC-\uD7FF\uE000-\uF8FF\uFA6E\uFA6F\uFADA-\uFAFF\uFB07-\uFB12\uFB18-\uFB1C\uFB37\uFB3D\uFB3F\uFB42\uFB45\uFBC2-\uFBD2\uFD40-\uFD4F\uFD90\uFD91\uFDC8-\uFDEF\uFDFE\uFDFF\uFE1A-\uFE1F\uFE27-\uFE2F\uFE53\uFE67\uFE6C-\uFE6F\uFE75\uFEFD-\uFF00\uFFBF-\uFFC1\uFFC8\uFFC9\uFFD0\uFFD1\uFFD8\uFFD9\uFFDD-\uFFDF\uFFE7\uFFEF-\uFFFB\uFFFE\uFFFF]/g,"."),e||(A=A.replace(/[\x09-\x10\u2028\u2029]/g,".")),A)}},{key:"escapeWhitespace",value:function(A){return A.replace(/[\x09-\x10]/g,function(A){return String.fromCharCode(57344+A.charCodeAt(0))})}},{key:"parseEscapedChars",value:function(A){return A.replace(/\\([abfnrtv'"]|[0-3][0-7]{2}|[0-7]{1,2}|x[\da-fA-F]{2}|u[\da-fA-F]{4}|u\{[\da-fA-F]{1,6}\}|\\)/g,function(A,e){switch(e[0]){case"\\":return"\\";case"0":case"1":case"2":case"3":case"4":case"5":case"6":case"7":return String.fromCharCode(parseInt(e,8));case"a":return String.fromCharCode(7);case"b":return"\b";case"t":return"\t";case"n":return"\n";case"v":return"\v";case"f":return"\f";case"r":return"\r";case'"':return'"';case"'":return"'";case"x":return String.fromCharCode(parseInt(e.substr(1),16));case"u":return"{"===e[1]?String.fromCodePoint(parseInt(e.slice(2,-1),16)):String.fromCharCode(parseInt(e.substr(1),16))}})}},{key:"escapeRegex",value:function(A){return A.replace(/([.*+?^=!:${}()|[\]/\\])/g,"\\$1")}},{key:"expandAlphRange",value:function(e){for(var t=[],I=0;I=0;r--)t=256*t+A[r];return t}},{key:"intToByteArray",value:function(A,e,t){var I=new Array(e);if("little"===t)for(var r=0;r>>=8;else for(var i=e-1;i>=0;i--)I[i]=255&A,A>>>=8;return I}},{key:"strToArrayBuffer",value:function(e){if(f().debug(`Converting string[${null==e?void 0:e.length}] to array buffer`),!e)return new ArrayBuffer;for(var t,I=new Uint8Array(e.length),r=e.length;r--;)if(t=e.charCodeAt(r),I[r]=t,t>255)return A.strToUtf8ArrayBuffer(e);return I.buffer}},{key:"strToUtf8ArrayBuffer",value:function(A){if(f().debug(`Converting string[${null==A?void 0:A.length}] to UTF8 array buffer`),!A)return new ArrayBuffer;var e=new TextEncoder("utf-8").encode(A);return A.length!==e.length&&(Y()&&self&&"function"==typeof self.setOption?self.setOption("attemptHighlight",!1):R()&&(window.app.options.attemptHighlight=!1)),e.buffer}},{key:"strToByteArray",value:function(e){if(f().debug(`Converting string[${null==e?void 0:e.length}] to byte array`),!e)return[];for(var t,I=new Array(e.length),r=e.length;r--;)if(t=e.charCodeAt(r),I[r]=t,t>255)return A.strToUtf8ByteArray(e);return I}},{key:"strToUtf8ByteArray",value:function(e){if(f().debug(`Converting string[${null==e?void 0:e.length}] to UTF8 byte array`),!e)return[];var t=y().encode(e);return e.length!==t.length&&(Y()?self.setOption("attemptHighlight",!1):R()&&(window.app.options.attemptHighlight=!1)),A.strToByteArray(t)}},{key:"strToCharcode",value:function(e){if(f().debug(`Converting string[${null==e?void 0:e.length}] to charcode`),!e)return[];for(var t=[],I=0;I=55296&&r<56320){var i=e[I+1].charCodeAt(0);i>=56320&&i<57344&&(r=A.ord(e[I]+e[++I]))}t.push(r)}return t}},{key:"byteArrayToUtf8",value:function(e){var t;if(f().debug(`Converting byte array[${null===(t=e)||void 0===t?void 0:t.length}] to UTF8`),!e||!e.length)return"";e instanceof Uint8Array||(e=new Uint8Array(e));try{var I=new TextDecoder("utf-8",{fatal:!0}).decode(e);return I.length!==e.length&&(Y()?self.setOption("attemptHighlight",!1):R()&&(window.app.options.attemptHighlight=!1)),I}catch(t){return A.byteArrayToChars(e)}}},{key:"byteArrayToChars",value:function(A){if(f().debug(`Converting byte array[${null==A?void 0:A.length}] to chars`),!A||!A.length)return"";for(var e="",t=0;t1&&void 0!==arguments[1])||arguments[1];if(f().debug(`Converting array buffer[${null==e?void 0:e.byteLength}] to str`),!e||!e.byteLength)return"";var I=new Uint8Array(e);return t?A.byteArrayToUtf8(I):A.byteArrayToChars(I)}},{key:"calculateShannonEntropy",value:function(A){A instanceof ArrayBuffer&&(A=new Uint8Array(A));var e,t=[],I=new Array(256).fill(0);for(e=0;e0&&t.push(I[e]/A.length);var r,i=0;for(e=0;e1&&void 0!==arguments[1]?arguments[1]:[","],r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:["\n","\r"],i=!1,g=!1,n="",o=[],a=[];A.length&&"\ufeff"===A[0]&&(A=A.substr(1));for(var C=0;C=0?(o.push(n),n=""):!g&&r.indexOf(e)>=0?(o.push(n),n="",a.push(o),o=[],r.indexOf(t)>=0&&t!==e&&C++):n+=e:g=!0;return o.length&&(o.push(n),a.push(o)),a}},{key:"stripHtmlTags",value:function(A){function e(A,t){var I=t.replace(A,"");return I.length===t.length?I:e(A,I)}return arguments.length>1&&void 0!==arguments[1]&&arguments[1]&&(A=e(/]*>(\s|\S)*?<\/script[^>]*>/gi,A),A=e(/]*>(\s|\S)*?<\/style[^>]*>/gi,A)),e(/<[^>]+>/g,A)}},{key:"escapeHtml",value:function(A){var e={"&":"&","<":"<",">":">",'"':""","'":"'","`":"`","\0":""};return A?A.replace(/[&<>"'`\u0000]/g,function(A){return e[A]}):A}},{key:"unescapeHtml",value:function(A){var e={"&":"&","<":"<",">":">",""":'"',"'":"'","/":"/","`":"`","":"\0"};return A.replace(/(&#?x?[a-z0-9]{2,4};|\ue000)/gi,function(A){return e[A]||A})}},{key:"toTitleCase",value:function(A){return A.replace(/\w\S*/g,function(A){return A.charAt(0).toUpperCase()+A.substr(1).toLowerCase()})}},{key:"encodeURIFragment",value:function(A){var e={"%2D":"-","%2E":".","%5F":"_","%7E":"~","%21":"!","%24":"$","%27":"'","%28":"(","%29":")","%2A":"*","%2C":",","%3B":";","%3A":":","%40":"@","%2F":"/","%3F":"?"};return(A=encodeURIComponent(A)).replace(/%[0-9A-F]{2}/g,function(A){return e[A]||A})}},{key:"generatePrettyRecipe",value:function(A){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],t="",I="",r="",i="",g="";return A.forEach(function(A){I=A.op.replace(/ /g,"_"),r=JSON.stringify(A.args).slice(1,-1).replace(/'/g,"\\'").replace(/"((?:[^"\\]|\\.)*)"/g,"'$1'").replace(/\\"/g,'"'),i=A.disabled?"/disabled":"",g=A.breakpoint?"/breakpoint":"",t+=`${I}(${r}${i}${g})`,e&&(t+="\n")}),t}},{key:"parseRecipeConfig",value:function(e){if(0===(e=e.trim()).length)return[];if("["===e[0])return JSON.parse(e);var t,I;e=e.replace(/\n/g,""),A._validatePrettyRecipe(e);for(var r=/([^(]+)\(((?:'[^'\\]*(?:\\.[^'\\]*)*'|[^)/'])*)(\/[^)]+)?\)/g,i=[];t=r.exec(e);){I="["+(I=t[2].replace(/"/g,'\\"').replace(/(^|,|{|:)'/g,'$1"').replace(/([^\\]|(?:\\\\)+)'(,|:|}|$)/g,'$1"$2').replace(/\\'/g,"'"))+"]";var g={op:t[1].replace(/_/g," "),args:JSON.parse(I)};t[3]&&t[3].indexOf("disabled")>0&&(g.disabled=!0),t[3]&&t[3].indexOf("breakpoint")>0&&(g.breakpoint=!0),i.push(g)}return i}},{key:"_validatePrettyRecipe",value:function(A){for(var e=0;e\n
\n
\n ${A.escapeHtml(e.name)}\n
\n
\n `},i=function(e,t){if(t.startsWith("image")){var I="data:";return I+=t+";",""}return`
${A.escapeHtml(A.arrayBufferToStr(e.buffer))}
`},g=function(){var e=r(Q().mark(function e(t,I){var r,g,n,o;return Q().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,A.readFile(t);case 1:return r=e.sent,g=new Blob([r],{type:t.type||"octet/stream"}),n=URL.createObjectURL(g),o=`
\n
\n
\n \n \n ${t.size.toLocaleString()} bytes\n \n save\n \n \n open_in_browser\n \n \n
\n
\n
\n
\n ${i(r,t.type)}\n
\n
\n
`,e.abrupt("return",o);case 2:case"end":return e.stop()}},e)}));return function(A,t){return e.apply(this,arguments)}}(),n=`
\n ${t.length} file(s) found\n
`,o=0;case 1:if(!(o=A.size)e(r);else{var t=A.slice(i,i+g);I.readAsArrayBuffer(t)}};I.onload=function(A){r.set(new Uint8Array(I.result),i),i+=g,n()},I.onerror=function(A){t(I.error.message)},n()})}},{key:"readFileSync",value:function(A){if(!M())throw new TypeError("Browser environment cannot support readFileSync");return Uint8Array.from(A.data).buffer}},{key:"mod",value:function(A,e){return(A%e+e)%e}},{key:"gcd",value:function(e,t){return t?A.gcd(t,e%t):e}},{key:"modInv",value:function(A,e){A%=e;for(var t=1;tA?String(this):((A-=this.length)>e.length&&(e+=e.repeat(A/e.length)),e.slice(0,A)+String(this))}),String.prototype.padEnd||(String.prototype.padEnd=function(A,e){return A|=0,e=String(void 0!==e?e:" "),this.length>A?String(this):((A-=this.length)>e.length&&(e+=e.repeat(A/e.length)),String(this)+e.slice(0,A))});const H=function(A){function e(){var A,t,I,r;i(this,e);for(var g=arguments.length,n=new Array(g),o=0;oc?a.c=a.e=null:A.e=10;I/=10,t++);return void(t>c?a.c=a.e=null:(a.e=t,a.c=[A]))}return F(a,String(A))}if("bigint"==i)return a.s=A<0?(A=-A,-1):1,F(a,String(A));if("string"==i)r=A;else{if(f)throw Error(x+"BigNumber, string, number, or BigInt expected: "+A);r=String(A)}if(q.test(r))return a.s=45==r.charCodeAt(0)?(r=r.slice(1),-1):1,F(a,r);if(r=r.replace(o,""),n.test(r))return a.s=isNaN(r)?null:r<0?-1:1,void(a.c=a.e=null);if(r=r.replace(g,function(A,t,I){return e="x"==(I=I.toLowerCase())?16:"b"==I?2:8,t}),e)return D(a,r,e,A);if(r=r.replace(/(\d)_(?=\d)/g,"$1"),q.test(r))return a.s=45==r.charCodeAt(0)?(r=r.slice(1),-1):1,F(a,r);if(f)throw Error(x+"Not a number: "+A);a.s=a.c=a.e=null}else{if("string"!=i){if(f)throw Error(x+"String expected: "+A);A=String(A)}$(e,2,w.length,"Base"),D(a,A.replace(o,""),e,A)}}function F(A,e){var t,I,r;for((t=e.indexOf("."))>-1&&(e=e.replace(".","")),(I=e.search(/e/i))>0?(t<0&&(t=I),t+=+e.slice(I+1),e=e.substring(0,I)):t<0&&(t=e.length),I=0;48===e.charCodeAt(I);I++);for(r=e.length;48===e.charCodeAt(--r););if(e=e.slice(I,++r))if(r-=I,(t=t-I-1)>c)A.c=A.e=null;else if(t=0)){if("_"==i){if(B&&o+1=h)?tA(o,g):IA(o,g,"0");else if(i=(A=v(new d(A),e,t)).e,n=(o=X(A.c)).length,1==I||2==I&&(e<=i||i<=E)){for(;ng),o=IA(o,i,"0"),i+1>n){if(--e>0)for(o+=".";e--;o+="0");}else if((e+=i-n)>0)for(i+1==n&&(o+=".");e--;o+="0");return A.s<0&&r?"-"+o:o}function S(A){return A instanceof d||!!A&&!0===A._isBigNumber}function U(A,e){for(var t,I,r=1,i=new d(A[0]);r=10;r/=10,I++);return(t=I+t*V-1)>c?A.c=A.e=null:t=10;n/=10,r++);if((i=e-r)<0)i+=V,g=e,o=B[a=0],C=T(o/s[r-g-1]%10);else if((a=K((i+1)/V))>=B.length){if(!I)break A;for(;B.length<=a;B.push(0));o=C=0,r=1,g=(i%=V)-V+1}else{for(o=n=B[a],r=1;n>=10;n/=10,r++);C=(g=(i%=V)-V+r)<0?0:T(o/s[r-g-1]%10)}if(I=I||e<0||null!=B[a+1]||(g<0?o:o%s[r-g-1]),I=t<4?(C||I)&&(0==t||t==(A.s<0?3:2)):C>5||5==C&&(4==t||I||6==t&&(i>0?g>0?o/s[r-g]:0:B[a-1])%10&1||t==(A.s<0?8:7)),e<1||!B[0])return B.length=0,I?(e-=A.e+1,B[0]=s[(V-e%V)%V],A.e=-e||0):B[0]=A.e=0,A;if(0==i?(B.length=a,n=1,a--):(B.length=a+1,n=s[V-i],B[a]=g>0?T(o/s[r-g]%s[g])*n:0),I)for(;;){if(0==a){for(i=1,g=B[0];g>=10;g/=10,i++);for(g=B[0]+=n,n=1;g>=10;g/=10,n++);i!=n&&(A.e++,B[0]==_&&(B[0]=1));break}if(B[a]+=n,B[a]!=_)break;B[a--]=0,n=1}for(i=B.length;0===B[--i];B.pop());}A.e>c?A.c=A.e=null:A.e=h?tA(e,t):IA(e,t,"0"),A.s<0?"-"+e:e)}return d.clone=A,d.ROUND_UP=0,d.ROUND_DOWN=1,d.ROUND_CEIL=2,d.ROUND_FLOOR=3,d.ROUND_HALF_UP=4,d.ROUND_HALF_DOWN=5,d.ROUND_HALF_EVEN=6,d.ROUND_HALF_CEIL=7,d.ROUND_HALF_FLOOR=8,d.EUCLID=9,d.config=d.set=function(A){var e,t;if(null!=A){if("object"!=typeof A)throw Error(x+"Object expected: "+A);if(A.hasOwnProperty(e="DECIMAL_PLACES")&&(B=$(A[e],0,Z,e)),A.hasOwnProperty(e="ROUNDING_MODE")&&(s=$(A[e],0,8,e)),A.hasOwnProperty(e="EXPONENTIAL_AT")&&(AA(t=A[e])?($(t[0],-Z,0,e),$(t[1],0,Z,e),E=t[0],h=t[1]):E=-(h=$(t,-Z,Z,e)<0?-t:t)),A.hasOwnProperty(e="RANGE")){if(!(t=A[e]))throw Error(x+e+" cannot be zero: "+t);AA(t)?($(t[0],-Z,-1,e),$(t[1],1,Z,e),Q=t[0],c=t[1]):Q=-(c=$(t,-Z,Z,e)<0?-t:t)}if(A.hasOwnProperty(e="CRYPTO")){if((t=A[e])!==!!t)throw Error(x+e+" not true or false: "+t);if(t){if("undefined"==typeof crypto||!crypto||!crypto.getRandomValues&&!crypto.randomBytes)throw u=!t,Error(x+"crypto unavailable");u=t}else u=t}if(A.hasOwnProperty(e="STRICT")){if((t=A[e])!==!!t)throw Error(x+e+" not true or false: "+t);f=t}if(A.hasOwnProperty(e="MODULO_MODE")&&(l=$(A[e],0,9,e)),A.hasOwnProperty(e="POW_PRECISION")&&(y=$(A[e],0,Z,e)),A.hasOwnProperty(e="FORMAT")){if("object"!=typeof(t=A[e]))throw Error(x+e+" not an object: "+t);for(e in t)t.hasOwnProperty(e)&&p.hasOwnProperty(e)&&(p[e]=t[e])}if(A.hasOwnProperty(e="ALPHABET")){if("string"!=typeof(t=A[e])||/^.?$|[+\-.\s]|(.).*\1/.test(t))throw Error(x+e+" invalid: "+t);w=t}}return{DECIMAL_PLACES:B,ROUNDING_MODE:s,EXPONENTIAL_AT:[E,h],RANGE:[Q,c],CRYPTO:u,STRICT:f,MODULO_MODE:l,POW_PRECISION:y,FORMAT:p,ALPHABET:w}},d.fromFormat=function(A,e){if("string"!=typeof A)throw Error(x+"Not a string: "+A);if(null==e)e=p;else{if("object"!=typeof e)throw Error(x+"Argument not an object: "+e);e=G(e)}var t,I,r,i,g=e.negativeSign||"-",n=e.positiveSign||"",o=e.prefix||"",a=e.suffix||"",C=e.groupSeparator||"",B=e.decimalSeparator||".",s=e.fractionGroupSeparator||"";if(o&&0===A.indexOf(o)&&(A=A.slice(o.length)),a&&A.lastIndexOf(a)===A.length-a.length&&(A=A.slice(0,-a.length)),g&&0===A.indexOf(g)?(A=A.slice(g.length),I=!0):n&&0===A.indexOf(n)&&(A=A.slice(n.length)),(t=A.indexOf(B))<0){if(C)for(;A.indexOf(C)>-1;)A=A.replace(C,"")}else{if(r=A.slice(0,t),i=A.slice(t+B.length),C)for(;r.indexOf(C)>-1;)r=r.replace(C,"");if(s)for(;i.indexOf(s)>-1;)i=i.replace(s,"");A=r+"."+i}return new d(I?"-"+A:A)},d.isBigNumber=function(A){if(!S(A))return!1;var e,t,I=A.c,r=A.e,i=A.s;if(!AA(I))return null===I&&null===r&&(null===i||1===i||-1===i);if(1!==i&&-1!==i||r<-Z||r>Z||r!==T(r))return!1;if(0===I[0])return 0===r&&1===I.length;if((e=(r+1)%V)<1&&(e+=V),String(I[0]).length!==e)return!1;for(e=0;e=_||t!==T(t))return!1;return 0!==t},d.maximum=d.max=function(){return U(arguments,-1)},d.minimum=d.min=function(){return U(arguments,1)},d.random=(r=9007199254740992,i=Math.random()*r&2097151?function(){return T(Math.random()*r)}:function(){return 8388608*(1073741824*Math.random()|0)+(8388608*Math.random()|0)},function(A){var e,t,I,r,g,n=0,o=[],a=new d(C);if(A=null==A?B:$(A,0,Z),r=K(A/V),u)if(crypto.getRandomValues){for(e=crypto.getRandomValues(new Uint32Array(r*=2));n>>11))>=9e15?(t=crypto.getRandomValues(new Uint32Array(2)),e[n]=t[0],e[n+1]=t[1]):(o.push(g%1e14),n+=2);n=r/2}else{if(!crypto.randomBytes)throw u=!1,Error(x+"crypto unavailable");for(e=crypto.randomBytes(r*=7);n=9e15?crypto.randomBytes(7).copy(e,n):(o.push(g%1e14),n+=7);n=r/7}if(!u)for(;n=10;g/=10,n++);nt-1&&(null==g[r+1]&&(g[r+1]=0),g[r+1]+=g[r]/t|0,g[r]%=t)}return g.reverse()}return function(I,r,i,g,n){var o,a,C,E,h,Q,c,u,f=I.indexOf("."),l=B,p=s;for(f>=0&&(E=y,y=0,I=I.replace(".",""),Q=(u=new d(r)).pow(I.length-f),y=E,u.c=e(IA(X(Q.c),Q.e,"0"),10,i,A),u.e=u.c.length),C=E=(c=e(I,r,i,n?(o=w,A):(o=A,w))).length;0==c[--E];c.pop());if(!c[0])return o.charAt(0);if(f<0?--C:(Q.c=c,Q.e=C,Q.s=g,c=(Q=t(Q,u,l,p,i)).c,h=Q.r,C=Q.e),f=c[a=C+l+1],E=i/2,h=h||a<0||null!=c[a+1],h=p<4?(null!=f||h)&&(0==p||p==(Q.s<0?3:2)):f>E||f==E&&(4==p||h||6==p&&1&c[a-1]||p==(Q.s<0?8:7)),a<1||!c[0])I=h?IA(o.charAt(1),-l,o.charAt(0)):o.charAt(0);else{if(ai;)c[a]=0,a||(++C,c=[1].concat(c));for(E=c.length;!c[--E];);for(f=0,I="";f<=E;I+=o.charAt(c[f++]));I=IA(I,C,o.charAt(0))}return I}}(),t=function(){function A(A,e,t){var I,r,i,g,n=0,o=A.length,a=e%P,C=e/P|0;for(A=A.slice();o--;)n=((r=a*(i=A[o]%P)+(I=C*i+(g=A[o]/P|0)*a)%P*P+n)/t|0)+(I/P|0)+C*g,A[o]=r%t;return n&&(A=[n].concat(A)),A}function e(A,e,t,I){var r,i;if(t!=I)i=t>I?1:-1;else for(r=i=0;re[r]?1:-1;break}return i}function t(A,e,t,I){for(var r=0;t--;)A[t]-=r,r=A[t]1;A.splice(0,1));}return function(I,r,i,g,n){var o,a,C,B,s,E,h,Q,c,u,f,l,y,p,w,F,D,m=I.s==r.s?1:-1,S=I.c,U=r.c;if(!(S&&S[0]&&U&&U[0]))return new d(I.s&&r.s&&(S?!U||S[0]!=U[0]:U)?S&&0==S[0]||!U?0*m:m/0:NaN);for(c=(Q=new d(m)).c=[],m=i+(a=I.e-r.e)+1,n||(n=_,a=j(I.e/V)-j(r.e/V),m=m/V|0),C=0;U[C]==(S[C]||0);C++);if(U[C]>(S[C]||0)&&a--,m<0)c.push(1),B=!0;else{for(p=S.length,F=U.length,C=0,m+=2,(s=T(n/(U[0]+1)))>1&&(U=A(U,s,n),S=A(S,s,n),F=U.length,p=S.length),y=F,f=(u=S.slice(0,F)).length;f=n/2&&w++;do{if(s=0,(o=e(U,u,F,f))<0){if(l=u[0],F!=f&&(l=l*n+(u[1]||0)),(s=T(l/w))>1)for(s>=n&&(s=n-1),h=(E=A(U,s,n)).length,f=u.length;1==e(E,u,h,f);)s--,t(E,F=10;m/=10,C++);v(Q,i+(Q.e=C+a*V-1)+1,g,B)}else Q.e=a,Q.r=+B;return Q}}(),a.absoluteValue=a.abs=function(){var A=new d(this);return A.s<0&&(A.s=1),A},a.comparedTo=function(A,e){return z(this,new d(A,e))},a.decimalPlaces=a.dp=function(A,e){var t,I,r,i=this;if(null!=A)return v(new d(i),$(A,-Z,Z)+i.e+1,null==e?s:$(e,0,8));if(!(t=i.c))return null;if(I=((r=t.length-1)-j(this.e/V))*V,r=t[r])for(;r%10==0;r/=10,I--);return I<0&&(I=0),I},a.dividedBy=a.div=function(A,e){return t(this,new d(A,e),B,s)},a.dividedToIntegerBy=a.idiv=function(A,e){return t(this,new d(A,e),0,1)},a.exponentiatedBy=a.pow=function(A,e){var t,I,r,i,g,n,o,a,B=this;if((A=new d(A)).c&&!A.isInteger())throw Error(x+"Exponent not an integer: "+b(A));if(null!=e&&(e=new d(e)),g=A.e>14,!B.c||!B.c[0]||1==B.c[0]&&!B.e&&1==B.c.length||!A.c||!A.c[0])return a=new d(Math.pow(+b(B),g?A.s*(2-eA(A)):+b(A))),e?a.mod(e):a;if(n=A.s<0,e){if(e.c?!e.c[0]:!e.s)return new d(NaN);(I=!n&&B.isInteger()&&e.isInteger())&&(B=B.mod(e))}else{if(A.e>9&&(B.e>0||B.e<-1||(0==B.e?B.c[0]>1||g&&B.c[1]>=24e7:B.c[0]<8e13||g&&B.c[0]<=9999975e7)))return i=B.s<0&&eA(A)?-0:0,B.e>-1&&(i=1/i),new d(n?1/i:i);y&&(i=K(y/V+2))}for(g?(t=new d(.5),n&&(A.s=1),o=eA(A)):o=(r=Math.abs(+b(A)))%2,a=new d(C);;){if(o){if(!(a=a.times(B)).c)break;i?a.c.length>i&&(a.c.length=i):I&&(a=a.mod(e))}if(r){if(0===(r=T(r/2)))break;o=r%2}else if(v(A=A.times(t),A.e+1,1),A.e>14)o=eA(A);else{if(0===(r=+b(A)))break;o=r%2}B=B.times(B),i?B.c&&B.c.length>i&&(B.c.length=i):I&&(B=B.mod(e))}return I?a:(n&&(a=C.div(a)),e?a.mod(e):i?v(a,y,s,void 0):a)},a.integerValue=function(A){var e=new d(this);return v(e,e.e+1,null==A?s:$(A,0,8))},a.isEqualTo=a.eq=function(A,e){return 0===z(this,new d(A,e))},a.isFinite=function(){return!!this.c},a.isGreaterThan=a.gt=function(A,e){return z(this,new d(A,e))>0},a.isGreaterThanOrEqualTo=a.gte=function(A,e){return 1===(e=z(this,new d(A,e)))||0===e},a.isInteger=function(){return!!this.c&&j(this.e/V)>this.c.length-2},a.isLessThan=a.lt=function(A,e){return z(this,new d(A,e))<0},a.isLessThanOrEqualTo=a.lte=function(A,e){return-1===(e=z(this,new d(A,e)))||0===e},a.isNaN=function(){return!this.s},a.isNegative=function(){return this.s<0},a.isPositive=function(){return this.s>0},a.isZero=function(){return!!this.c&&0==this.c[0]},a.minus=function(A,e){var t,I,r,i,g=this,n=g.s;if(e=(A=new d(A,e)).s,!n||!e)return new d(NaN);if(n!=e)return A.s=-e,g.plus(A);var o=g.e/V,a=A.e/V,C=g.c,B=A.c;if(!o||!a){if(!C||!B)return C?(A.s=-e,A):new d(B?g:NaN);if(!C[0]||!B[0])return B[0]?(A.s=-e,A):new d(C[0]?g:3==s?-0:0)}if(o=j(o),a=j(a),C=C.slice(),n=o-a){for((i=n<0)?(n=-n,r=C):(a=o,r=B),r.reverse(),e=n;e--;r.push(0));r.reverse()}else for(I=(i=(n=C.length)<(e=B.length))?n:e,n=e=0;e0)for(;e--;C[t++]=0);for(e=_-1;I>n;){if(C[--I]=0;){for(t=0,s=l[r]%c,E=l[r]/c|0,i=r+(g=o);i>r;)t=((a=s*(a=f[--g]%c)+(n=E*a+(C=f[g]/c|0)*s)%c*c+h[i]+t)/Q|0)+(n/c|0)+E*C,h[i--]=a%Q;h[i]=t}return t?++I:h.splice(0,1),k(A,h,I)},a.negated=function(){var A=new d(this);return A.s=-A.s||null,A},a.plus=function(A,e){var t,I=this,r=I.s;if(e=(A=new d(A,e)).s,!r||!e)return new d(NaN);if(r!=e)return A.s=-e,I.minus(A);var i=I.e/V,g=A.e/V,n=I.c,o=A.c;if(!i||!g){if(!n||!o)return new d(r/0);if(!n[0]||!o[0])return o[0]?A:new d(n[0]?I:0*r)}if(i=j(i),g=j(g),n=n.slice(),r=i-g){for(r>0?(g=i,t=o):(r=-r,t=n),t.reverse();r--;t.push(0));t.reverse()}for((r=n.length)-(e=o.length)<0&&(t=o,o=n,n=t,e=r),r=0;e;)r=(n[--e]=n[e]+o[e]+r)/_|0,n[e]=_===n[e]?0:n[e]%_;return r&&(n=[r].concat(n),++g),k(A,n,g)},a.precision=a.sd=function(A,e){var t,I,r,i=this;if(null!=A&&A!==!!A)return v(new d(i),$(A,1,Z),null==e?s:$(e,0,8));if(!(t=i.c))return null;if(I=(r=t.length-1)*V+1,r=t[r]){for(;r%10==0;r/=10,I--);for(r=t[0];r>=10;r/=10,I++);}return A&&i.e+1>I&&(I=i.e+1),I},a.shiftedBy=function(A){return this.times("1e"+$(A,-W,W))},a.squareRoot=a.sqrt=function(){var A,e,I,r,i,g=this,n=g.c,o=g.s,a=g.e,C=B+4,E=new d("0.5");if(1!==o||!n||!n[0])return new d(!o||o<0&&(!n||n[0])?NaN:n?g:1/0);if(0==(o=Math.sqrt(+b(g)))||o==1/0?(((e=X(n)).length+a)%2==0&&(e+="0"),o=Math.sqrt(+e),a=j((a+1)/2)-(a<0||a%2),I=new d(e=o==1/0?"5e"+a:(e=o.toExponential()).slice(0,e.indexOf("e")+1)+a)):I=new d(o+""),I.c[0])for((o=(a=I.e)+C)<3&&(o=0);;)if(i=I,I=E.times(i.plus(t(g,i,C,1))),X(i.c).slice(0,o)===(e=X(I.c)).slice(0,o)){if(I.e$(i,0,Z)&&(A=i),null!=r&&0!==$(r,0,Z)){if(null!=i&&r>i)throw Error(x+"Minimum must not exceed maximum");A0&&Q>0){for(o=Q%C||C,g=E.substr(0,o);o0&&(g+=s+E.slice(o))}else g=E;h&&((o=+t.fractionGroupSize)&&(h=h.replace(new RegExp("\\d{"+o+"}\\B","g"),"$&"+(t.fractionGroupSeparator||""))),g+=(t.decimalSeparator||"")+h)}return(t.prefix||"")+(I?t.negativeSign||"":n.s>0&&t.positiveSign||"")+g+(t.suffix||"")},a.toFraction=function(A){var e,I,r,i,g,n,o,a,B,s,E,h,Q,u,f=this,l=f.c;if(null!=A&&(!(o=new d(A)).isInteger()&&(o.c||1!==o.s)||o.lt(C)))throw Error(x+"Argument "+(o.isInteger()?"out of range: ":"not an integer: ")+b(o));if(!l)return[new d(f.s||0),new d(0)];for(e=new d(C),B=I=new d(C),r=a=new d(C),h=X(l),g=e.e=h.length-f.e-1,e.c[0]=O[(n=g%V)<0?V+n:n],A=!A||o.comparedTo(e)>0?g>0?e:B:o,n=c,c=1/0,u=o=new d(h),Q=e,a.c[0]=0;s=t(o,e,0,1),1!=(i=I.plus(s.times(r))).comparedTo(A);)I=r,r=i,B=a.plus(s.times(i=B)),a=i,e=o.minus(s.times(i=e)),o=i;return i=t(A.minus(I),r,0,1),a=a.plus(i.times(B)),I=I.plus(i.times(r)),(E=B.times(Q).minus(u.times(r)).abs().times(I).comparedTo(a.times(Q).minus(u.times(I)).abs().times(r))<1?[B,r]:[a,I])[0].s=f.s,c=n,E},a.toNumber=function(){return+b(this)},a.toObject=function(){var A=this;return{c:A.c?A.c.slice():null,e:A.e,s:A.s}},a.toPrecision=function(A,e){return m(this,null==A?A:$(A,1,Z),e,2)},a.toString=function(A){var e,t=this,r=t.s,i=t.e;return null===i?r?(e="Infinity",r<0&&(e="-"+e)):e="NaN":(null==A?e=i<=E||i>=h?tA(X(t.c),i):IA(X(t.c),i,"0"):($(A,2,w.length,"Base"),e=I(IA(X(t.c),i,"0"),10,A,r,!0)),r<0&&t.c[0]&&(e="-"+e)),e},a.valueOf=a.toJSON=function(){return b(this)},a._isBigNumber=!0,null!=e&&d.set(e),d}(),q=/^-?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?$/i,K=Math.ceil,T=Math.floor,x="[BigNumber Error] ",_=1e14,V=14,W=9007199254740991,O=[1,10,100,1e3,1e4,1e5,1e6,1e7,1e8,1e9,1e10,1e11,1e12,1e13],P=1e7,Z=1e9;function j(A){var e=0|A;return A>0||A===e?e:e-1}function X(A){for(var e,t,I=1,r=A.length,i=A[0]+"";Ia^t?1:-1;for(n=(o=r.length)<(a=i.length)?o:a,g=0;gi[g]^t?1:-1;return o==a?0:o>a^t?1:-1}function $(A,e,t,I){if(At||A!==T(A))throw Error(x+(I||"Argument")+("number"==typeof A?At?" out of range: ":" not an integer: ":" not a primitive number: ")+String(A));return A}function AA(A){return"[object Array]"=={}.toString.call(A)}function eA(A){var e=A.c.length-1;return j(A.e/V)==e&&A.c[e]%2!=0}function tA(A,e){return(A.length>1?A.charAt(0)+"."+A.slice(1):A)+(e<0?"e":"e+")+e}function IA(A,e,t){var I,r;if(e<0){for(r=t+".";++e;r+=t);A=r+A}else if(++e>(I=A.length)){for(r=t,e-=I;--e;r+=t);A+=r}else e1&&void 0!==arguments[1]?arguments[1]:0,I=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;i(this,A),this.bytes=e,this.length=this.bytes.length,this.position=t,this.bitPos=I}return a(A,[{key:"clone",value:function(){return new A(this.bytes,this.position,this.bitPos)}},{key:"getBytes",value:function(){var A=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;if(!(this.position>this.length)){var e=null!==A?this.position+A:this.length,t=this.bytes.slice(this.position,e);return this.position=e,this.bitPos=0,t}}},{key:"readString",value:function(){var A=arguments.length>0&&void 0!==arguments[0]?arguments[0]:-1;if(!(this.position>this.length)){-1===A&&(A=this.length-this.position);for(var e="",t=this.position;t1&&void 0!==arguments[1]?arguments[1]:"be";if(!(this.position>this.length)){var t=0;if("be"===e)for(var I=this.position;I=this.position;r--)t<<=8,t|=this.bytes[r];return this.position+=A,this.bitPos=0,t}}},{key:"readBits",value:function(A){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"be";if(!(this.position>this.length)){var t,I=0,r=0;for(I=this.bytes[this.position++]&(t=this.bitPos,"be"===e?(1<<8-t)-1:256-(1<>>=this.bitPos),r=8-this.bitPos,this.bitPos=0;rA){var i=r-A;"be"===e?I>>>=i:I&=(1<this.length))if(this.bitPos=0,"number"!=typeof A){var e=A.length,t=A[e-1];this.position=e;for(var I,r=function(A,e){var t=new Array;return A.forEach(function(A,I){t[A]=e-I}),t}(A,e);this.position=0;i--)if(this.bytes[this.position-e+i]!==A[i]){I=!1,this.position+=r[A[i]];break}if(I){this.position-=e;break}}}else for(;++this.positionthis.length)throw new Error("Cannot move to position "+e+" in stream. Out of bounds.");this.position=e,this.bitPos=0}},{key:"moveBackwardsBy",value:function(A){var e=this.position-A;if(e<0||e>this.length)throw new Error("Cannot move to position "+e+" in stream. Out of bounds.");this.position=e,this.bitPos=0}},{key:"moveBackwardsByBits",value:function(A){if(A<=this.bitPos)this.bitPos-=A;else for(this.bitPos>0&&(A-=this.bitPos,this.bitPos=0);A>0;)this.moveBackwardsBy(1),this.bitPos=8,this.moveBackwardsByBits(A),A-=8}},{key:"moveTo",value:function(A){if(A<0||A>this.length)throw new Error("Cannot move to position "+A+" in stream. Out of bounds.");this.position=A,this.bitPos=0}},{key:"hasMore",value:function(){return this.position0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.position;return this.bitPos>0&&e++,this.bytes.slice(A,e)}}])}();function gA(A,e){var t="undefined"!=typeof Symbol&&A[Symbol.iterator]||A["@@iterator"];if(!t){if(Array.isArray(A)||(t=function(A,e){if(A){if("string"==typeof A)return nA(A,e);var t={}.toString.call(A).slice(8,-1);return"Object"===t&&A.constructor&&(t=A.constructor.name),"Map"===t||"Set"===t?Array.from(A):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?nA(A,e):void 0}}(A))||e&&A&&"number"==typeof A.length){t&&(A=t);var I=0,r=function(){};return{s:r,n:function(){return I>=A.length?{done:!0}:{done:!1,value:A[I++]}},e:function(A){throw A},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,g=!0,n=!1;return{s:function(){t=t.call(A)},n:function(){var A=t.next();return g=A.done,A},e:function(A){n=!0,i=A},f:function(){try{g||null==t.return||t.return()}finally{if(n)throw i}}}}function nA(A,e){(null==e||e>A.length)&&(e=A.length);for(var t=0,I=Array(e);t>4],o=r[(15&g)>>2],a=(2&g)>>1;if("free"===n||"bad"===n||"reserved"===o){t.moveBackwardsBy(1);break}var C=Math.floor(144*n/o+a);if(t.position+C>t.length){t.moveTo(t.length);break}t.moveForwardsBy(C-3)}return t.carve()}},{name:"MPEG-4 Part 14 audio",extension:"m4a",mime:"audio/m4a",description:"",signature:[{4:102,5:116,6:121,7:112,8:77,9:52,10:65},{0:77,1:52,2:65,3:32}],extractor:null},{name:"Free Lossless Audio Codec",extension:"flac",mime:"audio/x-flac",description:"",signature:{0:102,1:76,2:97,3:67},extractor:null},{name:"Adaptive Multi-Rate audio codec",extension:"amr",mime:"audio/amr",description:"",signature:{0:35,1:33,2:65,3:77,4:82,5:10},extractor:null},{name:"Audacity",extension:"au",mime:"audio/x-au",description:"",signature:{0:100,1:110,2:115,3:46,24:65,25:117,26:100,27:97,28:99,29:105,30:116,31:121,32:66,33:108,34:111,35:99,36:107,37:70,38:105,39:108,40:101},extractor:null},{name:"Audacity Block",extension:"auf",mime:"application/octet-stream",description:"",signature:{0:65,1:117,2:100,3:97,4:99,5:105,6:116,7:121,8:66,9:108,10:111,11:99,12:107,13:70,14:105,15:108,16:101},extractor:null},{name:"Audio Interchange File",extension:"aif",mime:"audio/x-aiff",description:"",signature:{0:70,1:79,2:82,3:77,8:65,9:73,10:70,11:70},extractor:null},{name:"Audio Interchange File (compressed)",extension:"aifc",mime:"audio/x-aifc",description:"",signature:{0:70,1:79,2:82,3:77,8:65,9:73,10:70,11:67},extractor:null}],Documents:[{name:"Portable Document Format",extension:"pdf",mime:"application/pdf",description:"",signature:{0:37,1:80,2:68,3:70},extractor:function(A,e){var t=new iA(A.slice(e));return t.continueUntil([37,37,69,79,70]),t.moveForwardsBy(5),t.consumeIf(13),t.consumeIf(10),t.carve()}},{name:"Portable Document Format (under Base64)",extension:"B64",mime:"application/octet-stream",description:"",signature:{0:65,1:74,2:86,3:66,4:69,5:82,6:105},extractor:null},{name:"Adobe PostScript",extension:"ps,eps,ai,pfa",mime:"application/postscript",description:"",signature:{0:37,1:33,2:80,3:83,4:45,5:65,6:100,7:111,8:98,9:101},extractor:null},{name:"PostScript",extension:"ps",mime:"application/postscript",description:"",signature:{0:37,1:33},extractor:null},{name:"Encapsulated PostScript",extension:"eps,ai",mime:"application/eps",description:"",signature:{0:197,1:208,2:211,3:198},extractor:null},{name:"Rich Text Format",extension:"rtf",mime:"application/rtf",description:"",signature:{0:123,1:92,2:114,3:116},extractor:function(A,e){var t=new iA(A.slice(e)),I=0;if(123!==t.readInt(1))throw new Error("Not a valid RTF file");for(I++;I>0&&t.hasMore();)switch(t.readInt(1)){case 123:I++;break;case 125:I--;break;case 92:t.consumeIf(92),t.position++}return t.carve()}},{name:"Microsoft Office document/OLE2",extension:"ole2,doc,xls,dot,ppt,xla,ppa,pps,pot,msi,sdw,db,vsd,msg",mime:"application/msword,application/vnd.ms-excel,application/vnd.ms-powerpoint",description:"Microsoft Office documents",signature:{0:208,1:207,2:17,3:224,4:161,5:177,6:26,7:225},extractor:null},{name:"Microsoft Office document/OLE2 (under Base64)",extension:"B64",mime:"application/octet-stream",description:"",signature:{0:48,1:77,2:56,3:82,4:52,5:75,6:71,7:120},extractor:null},{name:"Microsoft Office 2007+ document",extension:"docx,xlsx,pptx",mime:"application/vnd.openxmlformats-officedocument.wordprocessingml.document,application/vnd.openxmlformats-officedocument.spreadsheetml.sheet,application/vnd.openxmlformats-officedocument.presentationml.presentation",description:"",signature:{38:95,39:84,40:121,41:112,42:101,43:115,44:93,45:46,46:120,47:109,48:108},extractor:aA},{name:"Microsoft Access database",extension:"mdb,mda,mde,mdt,fdb,psa",mime:"application/msaccess",description:"",signature:{0:0,1:1,2:0,3:0,4:83,5:116,6:97,7:110,8:100,9:97,10:114,11:100,12:32,13:74,14:101,15:116},extractor:null},{name:"Microsoft Access 2007+ database",extension:"accdb,accde,accda,accdu",mime:"application/msaccess",description:"",signature:{0:0,1:1,2:0,3:0,4:83,5:116,6:97,7:110,8:100,9:97,10:114,11:100,12:32,13:65,14:67,15:69,16:32},extractor:null},{name:"Microsoft OneNote document",extension:"one",mime:"application/onenote",description:"",signature:{0:228,1:82,2:92,3:123,4:140,5:216,6:167,7:77,8:174,9:177,10:83,11:120,12:208,13:41,14:150,15:211},extractor:null},{name:"Outlook Express database",extension:"dbx",mime:"application/octet-stream",description:"",signature:{0:207,1:173,2:18,3:254,4:[48,197,198,199],11:17},extractor:null},{name:"Personal Storage Table (Outlook)",extension:"pst,ost,fdb,pab",mime:"application/octet-stream",description:"",signature:{0:33,1:66,2:68,3:78},extractor:null},{name:"Microsoft Exchange Database",extension:"edb",mime:"application/octet-stream",description:"",signature:{4:239,5:205,6:171,7:137,8:[32,35],9:6,10:0,11:0,12:[0,1],13:0,14:0,15:0},extractor:null},{name:"WordPerfect document",extension:"wpd,wp,wp5,wp6,wpp,bk!,wcm",mime:"application/wordperfect",description:"",signature:{0:255,1:87,2:80,3:67,7:[0,1,2],8:1,9:10},extractor:null},{name:"EPUB e-book",extension:"epub",mime:"application/epub+zip",description:"",signature:{0:80,1:75,2:3,3:4,30:109,31:105,32:109,33:101,34:116,35:121,36:112,37:101,38:97,39:112,40:112,41:108,42:105,43:99,44:97,45:116,46:105,47:111,48:110,49:47,50:101,51:112,52:117,53:98,54:43,55:122,56:105,57:112},extractor:aA}],Applications:[{name:"Windows Portable Executable",extension:"exe,dll,drv,vxd,sys,ocx,vbx,com,fon,scr",mime:"application/vnd.microsoft.portable-executable",description:"",signature:{0:77,1:90,3:[0,1,2],5:[0,1,2]},extractor:function(A,e){var t=new iA(A.slice(e));t.moveTo(60);var I=t.readInt(4,"le");t.moveTo(I),t.moveForwardsBy(6);var r=t.readInt(2,"le");t.moveForwardsBy(16);var i=523===t.readInt(2,"le")?112:96;t.moveForwardsBy(i-2),t.moveForwardsBy(32);var g=t.readInt(4,"le"),n=t.readInt(4,"le");if(g>0)return t.moveTo(g+n),t.carve();t.moveForwardsBy(88),t.moveForwardsBy(40*(r-1)),t.moveForwardsBy(16);var o=t.readInt(4,"le"),a=t.readInt(4,"le");return t.moveTo(a+o),t.carve()}},{name:"Executable and Linkable Format",extension:"elf,bin,axf,o,prx,so",mime:"application/x-executable",description:"Executable and Linkable Format file. No standard file extension.",signature:{0:127,1:69,2:76,3:70},extractor:function(A,e){var t=new iA(A.slice(e));t.moveForwardsBy(4);var I=1===t.readInt(1),r=1===t.readInt(1)?"le":"be";t.moveForwardsBy(I?26:34);var i=I?t.readInt(4,r):t.readInt(8,r);t.moveForwardsBy(10);var g=t.readInt(2,r),n=t.readInt(2,r);return t.moveTo(i),t.moveForwardsBy(g*n),t.carve()}},{name:"MacOS Mach-O object",extension:"dylib",mime:"application/octet-stream",description:"",signature:[{0:202,1:254,2:186,3:190,4:0,5:0,6:0,7:[1,2,3]},{0:206,1:250,2:237,3:254,4:7,5:0,6:0,7:0,8:[1,2,3]}],extractor:CA},{name:"MacOS Mach-O 64-bit object",extension:"dylib",mime:"application/octet-stream",description:"",signature:{0:207,1:250,2:237,3:254},extractor:CA},{name:"Adobe Flash",extension:"swf",mime:"application/x-shockwave-flash",description:"",signature:{0:[67,70],1:87,2:83},extractor:null},{name:"Java Class",extension:"class",mime:"application/java-vm",description:"",signature:{0:202,1:254,2:186,3:190},extractor:null},{name:"Dalvik Executable",extension:"dex",mime:"application/octet-stream",description:"Dalvik Executable as used by Android",signature:{0:100,1:101,2:120,3:10,4:48,5:51,6:53,7:0},extractor:null},{name:"Google Chrome Extension",extension:"crx",mime:"application/crx",description:"Google Chrome extension or packaged app",signature:{0:67,1:114,2:50,3:52},extractor:null}],Archives:[{name:"PKZIP archive",extension:"zip",mime:"application/zip",description:"",signature:{0:80,1:75,2:[3,5,7],3:[4,6,8]},extractor:aA},{name:"PKZIP archive (under Base64)",extension:"B64",mime:"application/octet-stream",description:"",signature:{0:85,1:69,2:115,3:68,4:66,5:66},extractor:null},{name:"TAR archive",extension:"tar",mime:"application/x-tar",description:"",signature:{257:117,258:115,259:116,260:97,261:114},extractor:function(A,e){for(var t=new iA(A.slice(e)),I=function(){if(t.moveForwardsBy(257),t.getBytes(5).join("")!==[117,115,116,97,114].join(""))return t.moveBackwardsBy(262),1;t.moveBackwardsBy(138);var A=0;t.getBytes(11).forEach(function(e,t){A+=(e-48).toString()}),A=512*Math.ceil(parseInt(A,8)/512),t.moveForwardsBy(A+377)};t.hasMore()&&!I(););return t.consumeWhile(0),t.carve()}},{name:"Roshal Archive",extension:"rar",mime:"application/x-rar-compressed",description:"",signature:{0:82,1:97,2:114,3:33,4:26,5:7,6:[0,1]},extractor:null},{name:"Gzip",extension:"gz",mime:"application/gzip",description:"",signature:{0:31,1:139,2:8},extractor:function(A,e){var t=new iA(A.slice(e));t.moveForwardsBy(3);var I=t.readInt(1);if(t.moveForwardsBy(4),t.readInt(1),t.moveForwardsBy(1),4&I){var r=t.readInt(2,"le");t.moveForwardsby(r)}return 8&I&&(t.continueUntil(0),t.moveForwardsBy(1)),16&I&&(t.continueUntil(0),t.moveForwardsBy(1)),2&I&&t.moveForwardsBy(2),cA(t),t.moveForwardsBy(8),t.carve()}},{name:"Bzip2",extension:"bz2",mime:"application/x-bzip2",description:"",signature:{0:66,1:90,2:104},extractor:function(A,e){for(var t=new iA(A.slice(e)),I=[[119,36,83,133,9],[238,72,167,10,18],[220,145,78,20,36],[185,34,156,40,72],[114,69,56,80,144],[187,146,41,194,132],[93,201,20,225,66],[46,228,138,112,161],[23,114,69,56,80]],r=0;r=2368&&t.moveForwardsBy(4);var n=t.readInt(1,"be");if(t.moveForwardsBy(n),64&g){var o=t.readInt(4,"be");t.moveForwardsBy(o)}for(t.moveForwardsBy(4);t.hasMore();){var a=t.readInt(4,"be");if(0===a)break;var C=t.readInt(4,"be"),B=a===C?r:r+I;t.moveForwardsBy(C+4*B)}return t.carve()}},{name:"Linux deb package",extension:"deb",mime:"application/vnd.debian.binary-package",description:"",signature:{0:33,1:60,2:97,3:114,4:99,5:104,6:62},extractor:function(A,e){var t=new iA(A.slice(e));for(t.moveForwardsBy(8);t.hasMore();){t.moveForwardsBy(48);var I,r="",i=gA(t.getBytes(10));try{for(i.s();!(I=i.n()).done;){var g=I.value;r+=String.fromCharCode(g)}}catch(A){i.e(A)}finally{i.f()}r=parseInt(r.trim(),10),t.moveForwardsBy(2),t.moveForwardsBy(r)}return t.carve()}},{name:"Apple Disk Image",extension:"dmg",mime:"application/x-apple-diskimage",description:"",signature:{0:120,1:1,2:115,3:13,4:98,5:98,6:96},extractor:null}],Miscellaneous:[{name:"UTF-8 text",extension:"txt",mime:"text/plain",description:"UTF-8 encoded Unicode byte order mark, commonly but not exclusively seen in text files.",signature:{0:239,1:187,2:191},extractor:null},{name:"UTF-32 LE text",extension:"utf32le",mime:"charset/utf32le",description:"Little-endian UTF-32 encoded Unicode byte order mark.",signature:{0:255,1:254,2:0,3:0},extractor:null},{name:"UTF-16 LE text",extension:"utf16le",mime:"charset/utf16le",description:"Little-endian UTF-16 encoded Unicode byte order mark.",signature:{0:255,1:254},extractor:null},{name:"Web Open Font Format",extension:"woff",mime:"application/font-woff",description:"",signature:{0:119,1:79,2:70,3:70,4:0,5:1,6:0,7:0},extractor:null},{name:"Web Open Font Format 2",extension:"woff2",mime:"application/font-woff",description:"",signature:{0:119,1:79,2:70,3:50,4:0,5:1,6:0,7:0},extractor:null},{name:"Embedded OpenType font",extension:"eot",mime:"application/octet-stream",description:"",signature:[{8:2,9:0,10:1,34:76,35:80},{8:1,9:0,10:0,34:76,35:80},{8:2,9:0,10:2,34:76,35:80}],extractor:null},{name:"TrueType Font",extension:"ttf",mime:"application/font-sfnt",description:"",signature:{0:0,1:1,2:0,3:0,4:0},extractor:null},{name:"OpenType Font",extension:"otf",mime:"application/font-sfnt",description:"",signature:{0:79,1:84,2:84,3:79,4:0},extractor:null},{name:"SQLite",extension:"sqlite",mime:"application/x-sqlite3",description:"",signature:{0:83,1:81,2:76,3:105},extractor:function(A,e){var t=new iA(A.slice(e));t.moveTo(16);var I=t.readInt(2);t.moveTo(28);var r=t.readInt(4);return t.moveTo(I*r),t.carve()}},{name:"BitTorrent link",extension:"torrent",mime:"application/x-bittorrent",description:"",signature:[{0:100,1:56,2:58,3:97,4:110,5:110,6:111,7:117,8:110,9:99,10:101,11:35,12:35,13:58},{0:100,1:52,2:58,3:105,4:110,5:102,6:111,7:100,8:[52,53,54],9:58}],extractor:null},{name:"Cryptocurrency wallet",extension:"wallet",mime:"application/octet-stream",description:"",signature:{0:0,1:0,2:0,3:0,4:1,5:0,6:0,7:0,8:0,9:0,10:0,11:0,12:98,13:49,14:5,15:0},extractor:null},{name:"Registry fragment",extension:"hbin",mime:"application/octet-stream",description:"",signature:{0:104,1:98,2:105,3:110,4:0},extractor:null},{name:"Registry script",extension:"rgs",mime:"application/octet-stream",description:"",signature:{0:72,1:75,2:67,3:82,4:13,5:10,6:92,7:123},extractor:null},{name:"WinNT Registry Hive",extension:"registry",mime:"application/octet-stream",description:"",signature:{0:114,1:101,2:103,3:102},extractor:null},{name:"Windows Event Log",extension:"evt",mime:"application/octet-stream",description:"",signature:{0:48,1:0,2:0,3:0,4:76,5:102,6:76,7:101},extractor:function(A,e){var t=new iA(A.slice(e));t.moveTo(20);var I=t.readInt(4,"le");t.moveTo(I);var r=t.readInt(4,"le");return t.moveForwardsBy(r-4),t.carve()}},{name:"Windows Event Log",extension:"evtx",mime:"application/octet-stream",description:"",signature:{0:69,1:108,2:102,3:70,4:105,5:108,6:101},extractor:function(A,e){var t=new iA(A.slice(e));t.moveTo(40);var I=t.readInt(4,"le")-44;for(t.moveForwardsBy(I);t.hasMore()&&t.getBytes(7).join("")===[69,108,102,67,104,110,107].join("");)t.moveForwardsBy(65529);return t.consumeWhile(0),t.carve()}},{name:"Windows Pagedump",extension:"dmp",mime:"application/octet-stream",description:"",signature:{0:80,1:65,2:71,3:69,4:68,5:85,6:[77,54],7:[80,52]},extractor:function(A,e){var t=new iA(A.slice(e));return t.moveTo(112),t.moveTo(4096*(t.readInt(4,"le")+1)),t.carve()}},{name:"Windows Prefetch",extension:"pf",mime:"application/x-pf",description:"",signature:{0:[17,23,26],1:0,2:0,3:0,4:83,5:67,6:67,7:65},extractor:function(A,e){var t=new iA(A.slice(e));return t.moveTo(12),t.moveTo(t.readInt(4,"be")),t.carve()}},{name:"Windows Prefetch (Win 10)",extension:"pf",mime:"application/x-pf",description:"",signature:{0:77,1:65,2:77,3:4,7:0},extractor:function(A,e){var t=new iA(A.slice(e));return t.moveTo(t.readInt(4,"be")),t.carve()}},{name:"PList (XML)",extension:"plist",mime:"application/xml",description:"",signature:{39:60,40:33,41:68,42:79,43:67,44:84,45:89,46:80,47:69,48:32,49:112,50:108,51:105,52:115,53:116},extractor:function(A,e){var t=new iA(A.slice(e)),I=0;for(t.continueUntil([60,112,108,105,115,116]),t.moveForwardsBy(6),I++;I>0&&t.hasMore();)60===t.readInt(1)&&(t.getBytes(5).join("")===[112,108,105,115,116].join("")?I++:t.moveBackwardsBy(5),t.getBytes(7).join("")===[47,112,108,105,115,116,62].join("")?I--:t.moveBackwardsBy(7));return t.consumeIf(10),t.carve()}},{name:"PList (binary)",extension:"bplist,plist,ipmeta,abcdp,mdbackup,mdinfo,strings,nib,ichat,qtz,webbookmark,webhistory",mime:"application/x-plist",description:"",signature:{0:98,1:112,2:108,3:105,4:115,5:116,6:48,7:48},extractor:null},{name:"MacOS X Keychain",extension:"keychain",mime:"application/octet-stream",description:"",signature:{0:107,1:121,2:99,3:104,4:0,5:1},extractor:function(A,e){var t=new iA(A.slice(e));return t.moveTo(20),t.moveForwardsBy(t.readInt(4)),t.carve()}},{name:"TCP Packet",extension:"tcp",mime:"application/tcp",description:"",signature:{12:8,13:0,14:69,15:0,21:0,22:function(A){return A>=1&&A<=128},23:6},extractor:null},{name:"UDP Packet",extension:"udp",mime:"application/udp",description:"",signature:{12:8,13:0,14:69,15:0,16:[0,1,2,3,4,5],22:function(A){return A>=1&&A<=128},23:17},extractor:null},{name:"Compiled HTML",extension:"chm,chw,chi",mime:"application/vnd.ms-htmlhelp",description:"",signature:{0:73,1:84,2:83,3:70,4:3,5:0,6:0,7:0},extractor:null},{name:"Windows Password",extension:"pwl",mime:"application/octet-stream",description:"",signature:{0:227,1:130,2:133,3:150},extractor:null},{name:"Bitlocker recovery key",extension:"bitlocker",mime:"application/octet-stream",description:"",signature:{0:255,1:254,2:66,3:0,4:105,5:0,6:116,7:0,8:76,9:0,10:111,11:0,12:99,13:0,14:107,15:0,16:101,17:0,18:114,19:0,20:32,21:0},extractor:null},{name:"Certificate",extension:"cer,cat,p7b,p7c,p7m,p7s,swz,rsa,crl,crt,der",mime:"application/pkix-cert",description:"",signature:{0:48,1:130,4:[6,10,48]},extractor:null},{name:"Certificate",extension:"cat,swz,p7m",mime:"application/vnd.ms-pki.seccat",description:"",signature:{0:48,1:131,2:function(A){return 0!==A},5:6,6:9},extractor:null},{name:"PGP pubring",extension:"pkr,gpg",mime:"application/pgp-keys",description:"",signature:{0:153,1:1,2:[13,162],3:4},extractor:null},{name:"PGP secring",extension:"skr",mime:"application/pgp-keys",description:"",signature:[{0:149,1:1,2:207,3:4},{0:149,1:3,2:198,3:4},{0:149,1:5,2:134,3:4}],extractor:null},{name:"PGP Safe",extension:"pgd",mime:"application/pgp-keys",description:"",signature:{0:80,1:71,2:80,3:100,4:77,5:65,6:73,7:78,8:96,9:1,10:0},extractor:null},{name:"Task Scheduler",extension:"job",mime:"application/octet-stream",description:"",signature:{0:[0,1,2,3],1:[5,6],2:1,3:0,20:70,21:0},extractor:null},{name:"Windows Shortcut",extension:"lnk",mime:"application/x-ms-shortcut",description:"",signature:{0:76,1:0,2:0,3:0,4:1,5:20,6:2,7:0,8:0,9:0,10:0,11:0,12:192,13:0,14:0,15:0,16:0,17:0,18:0,19:70},extractor:function(A,e){var t=new iA(A.slice(e));return t.moveTo(52),t.moveTo(t.readInt(4,"le")),t.carve()}},{name:"Bash",extension:"bash",mime:"application/bash",description:"",signature:{0:35,1:33,2:47,3:98,4:105,5:110,6:47,7:98,8:97,9:115,10:104},extractor:null},{name:"Shell",extension:"sh",mime:"application/sh",description:"",signature:{0:35,1:33,2:47,3:98,4:105,5:110,6:47,7:115,8:104},extractor:null},{name:"Python",extension:"py,pyc,pyd,pyo,pyw,pyz",mime:"application/python",description:"",signature:{0:35,1:33,2:47,3:117,4:115,5:114,6:47,7:98,8:105,9:110,10:47,11:112,12:121,13:116,14:104,15:111,16:110,17:[50,51,10,13]},extractor:null},{name:"Ruby",extension:"rb",mime:"application/ruby",description:"",signature:{0:35,1:33,2:47,3:117,4:115,5:114,6:47,7:98,8:105,9:110,10:47,11:114,12:117,13:98,14:121},extractor:null},{name:"perl",extension:"pl,pm,t,pod",mime:"application/perl",description:"",signature:{0:35,1:33,2:47,3:117,4:115,5:114,6:47,7:98,8:105,9:110,10:47,11:112,12:101,13:114,14:108},extractor:null},{name:"php",extension:"php,phtml,php3,php4,php5,php7,phps,php-s,pht,phar",mime:"application/php",description:"",signature:{0:60,1:63,2:112,3:104,4:112},extractor:null},{name:"Smile",extension:"sml",mime:"\tapplication/x-jackson-smile",description:"",signature:{0:58,1:41,2:10},extractor:null},{name:"Lua Bytecode",extension:"luac",mime:"application/x-lua",description:"",signature:{0:27,1:76,2:117,3:97},extractor:null},{name:"WebAssembly binary",extension:"wasm",mime:"application/octet-stream",description:"",signature:{0:0,1:97,2:115,3:109},extractor:null}]};function aA(A,e){var t=new iA(A.slice(e));t.continueUntil([80,75,5,6]),t.moveForwardsBy(20);var I=t.readInt(2,"le");return t.moveForwardsBy(I),t.carve()}function CA(A,e){var t="207250237254",I=new iA(A.slice(e)),r=I.getBytes(4).join("");return I.moveTo(function(A,e,t){var I=28;e&&(I+=4),A.moveTo(16);var r=A.readInt(4,t);return function(A,e,t,I){for(var r=0,i=0;i0&&A.moveForwardsBy(1)}var uA=[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,0,0],fA=[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];function lA(A,e,t){for(var I,r=0;(I=pA(A,e))&&256!==I;){if(++r>1e4)throw new Error("Caught in probable infinite loop while parsing Huffman Block");I<256||(A.readBits(uA[I-257],"le"),I=pA(A,t),A.readBits(fA[I],"le"))}}function yA(A){for(var e=Math.max.apply(Math,A),t=Math.min.apply(Math,A),I=1<>=1;for(var s=i<<16|o,E=a;E>>16;if(n>i)throw new Error(`Invalid Huffman Code length while parsing DEFLATE block at pos ${A.position}: ${n}`);return A.moveBackwardsByBits(i-n),65535&g}function wA(A,e){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(A.length){for(var I=0;I2&&void 0!==arguments[2]?arguments[2]:0;for(var I in A){var r=parseInt(I,10)+t;switch(typeof A[I]){case"number":if(e[r]!==A[I])return!1;break;case"object":if(A[I].indexOf(e[r])<0)return!1;break;case"function":if(!A[I](e[r]))return!1;break;default:throw new Error(`Unrecognised signature type at offset ${I}`)}}return!0}const FA=function(){return a(function A(){i(this,A)},null,[{key:"checkForValue",value:function(A){if(void 0===A)throw new Error("only use translation methods with .bind")}},{key:"toArrayBuffer",value:function(){throw new Error("toArrayBuffer has not been implemented")}},{key:"fromArrayBuffer",value:function(){throw new Error("fromArrayBuffer has not been implemented")}}])}();function DA(){try{var A=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(A){}return(DA=function(){return!!A})()}const mA=function(A){function e(){return i(this,e),A=this,I=arguments,t=B(t=e),C(A,DA()?Reflect.construct(t,I||[],B(A).constructor):t.apply(A,I));var A,t,I}return E(e,A),a(e,null,[{key:"toArrayBuffer",value:function(){e.checkForValue(this.value),this.value=new Uint8Array(this.value).buffer}},{key:"fromArrayBuffer",value:function(){e.checkForValue(this.value),this.value=Array.prototype.slice.call(new Uint8Array(this.value))}}])}(FA);function SA(){try{var A=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(A){}return(SA=function(){return!!A})()}const UA=function(A){function e(){return i(this,e),A=this,I=arguments,t=B(t=e),C(A,SA()?Reflect.construct(t,I||[],B(A).constructor):t.apply(A,I));var A,t,I}return E(e,A),a(e,null,[{key:"toArrayBuffer",value:function(){e.checkForValue(this.value),this.value=rA.isBigNumber(this.value)?N.strToArrayBuffer(this.value.toFixed()):new ArrayBuffer}},{key:"fromArrayBuffer",value:function(){e.checkForValue(this.value);try{this.value=new rA(N.arrayBufferToStr(this.value))}catch(A){this.value=new rA(NaN)}}}])}(FA);function kA(){try{var A=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(A){}return(kA=function(){return!!A})()}const GA=function(A){function e(){return i(this,e),A=this,I=arguments,t=B(t=e),C(A,kA()?Reflect.construct(t,I||[],B(A).constructor):t.apply(A,I));var A,t,I}return E(e,A),a(e,null,[{key:"toArrayBuffer",value:function(){var A=this;if(e.checkForValue(this.value),!M())return new Promise(function(e,t){N.readFile(A.value).then(function(e){return A.value=e.buffer}).then(e).catch(t)});this.value=N.readFileSync(this.value)}},{key:"fromArrayBuffer",value:function(){e.checkForValue(this.value),this.value=new File(this.value,"unknown")}}])}(FA);function vA(){try{var A=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(A){}return(vA=function(){return!!A})()}const bA=function(A){function e(){return i(this,e),A=this,I=arguments,t=B(t=e),C(A,vA()?Reflect.construct(t,I||[],B(A).constructor):t.apply(A,I));var A,t,I}return E(e,A),a(e,null,[{key:"toArrayBuffer",value:function(){e.checkForValue(this.value),this.value=this.value?N.strToArrayBuffer(this.value):new ArrayBuffer}},{key:"fromArrayBuffer",value:function(){e.checkForValue(this.value),this.value=this.value?N.arrayBufferToStr(this.value):""}}])}(FA);function MA(){try{var A=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(A){}return(MA=function(){return!!A})()}const RA=function(A){function e(){return i(this,e),A=this,I=arguments,t=B(t=e),C(A,MA()?Reflect.construct(t,I||[],B(A).constructor):t.apply(A,I));var A,t,I}return E(e,A),a(e,null,[{key:"toArrayBuffer",value:function(){e.checkForValue(this.value),this.value=this.value?N.strToArrayBuffer(N.unescapeHtml(N.stripHtmlTags(this.value,!0))):new ArrayBuffer}}])}(bA);function YA(){try{var A=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(A){}return(YA=function(){return!!A})()}const NA=function(A){function e(){return i(this,e),A=this,I=arguments,t=B(t=e),C(A,YA()?Reflect.construct(t,I||[],B(A).constructor):t.apply(A,I));var A,t,I}return E(e,A),a(e,null,[{key:"toArrayBuffer",value:function(){e.checkForValue(this.value),this.value=void 0!==this.value?N.strToArrayBuffer(JSON.stringify(this.value,null,4)):new ArrayBuffer}},{key:"fromArrayBuffer",value:function(){e.checkForValue(this.value),this.value=JSON.parse(N.arrayBufferToStr(this.value))}}])}(FA);function LA(){try{var A=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(A){}return(LA=function(){return!!A})()}const HA=function(A){function e(){return i(this,e),A=this,I=arguments,t=B(t=e),C(A,LA()?Reflect.construct(t,I||[],B(A).constructor):t.apply(A,I));var A,t,I}return E(e,A),a(e,null,[{key:"toArrayBuffer",value:(I=r(Q().mark(function A(){return Q().wrap(function(A){for(;;)switch(A.prev=A.next){case 0:if(e.checkForValue(this.value),!M()){A.next=1;break}this.value=this.value.map(function(A){return Uint8Array.from(A.data)}),A.next=3;break;case 1:return A.next=2,e.concatenateTypedArraysWithTypedElements.apply(e,c(this.value));case 2:this.value=A.sent;case 3:case"end":return A.stop()}},A,this)})),function(){return I.apply(this,arguments)})},{key:"fromArrayBuffer",value:function(){e.checkForValue(this.value),this.value=[new File(this.value,"unknown")]}},{key:"concatenateTypedArraysWithTypedElements",value:(t=r(Q().mark(function A(){var e,t,I,r,i,g,n,o,a,C,B,s,E,h=arguments;return Q().wrap(function(A){for(;;)switch(A.prev=A.next){case 0:for(e=0,t=h.length,I=new Array(t),r=0;r0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(i(this,A),this.value=new ArrayBuffer(0),this.type=A.ARRAY_BUFFER,e&&Object.prototype.hasOwnProperty.call(e,"value")&&Object.prototype.hasOwnProperty.call(e,"type"))this.set(e.value,e.type);else if(e&&null!==t)this.set(e,t);else if(e){var I=A.typeEnum(e.constructor.name);this.set(e,I)}}return a(A,[{key:"get",value:function(e){var t=this;return"string"==typeof e&&(e=A.typeEnum(e)),this.type!==e?M()?(this._translate(e),this.value):new Promise(function(A,I){t._translate(e).then(function(){A(t.value)}).catch(I)}):this.value}},{key:"set",value:function(e,t){if("string"==typeof t&&(t=A.typeEnum(t)),f().debug("Dish type: "+A.enumLookup(t)),this.value=e,this.type=t,!this.valid()){var I=N.truncate(JSON.stringify(this.value),25);throw new H(`Data is not a valid ${A.enumLookup(t)}: ${I}`)}}},{key:"presentAs",value:function(A){return this.clone().get(A)}},{key:"detectDishType",value:function(){var A=function(A){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Object.keys(oA);if(A instanceof ArrayBuffer&&(A=new Uint8Array(A)),!(A&&A.length>1))return[];var t=[],I={};for(var r in oA)e.includes(r)&&(I[r]=oA[r]);for(var i in I)I[i].forEach(function(e){wA(e.signature,A)&&t.push(e)});return t}(new Uint8Array(this.value.slice(0,2048)));return A.length&&A[0].mime&&"text/plain"===A[0].mime?A[0].mime:null}},{key:"getTitle",value:(e=r(Q().mark(function e(t){var I,r,i,g;return Q().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:I="",i=this.type,e.next=i===A.FILE?1:i===A.LIST_FILE?2:i===A.JSON?3:i===A.NUMBER||i===A.BIG_NUMBER?4:i===A.ARRAY_BUFFER||i===A.BYTE_ARRAY?5:6;break;case 1:return I=this.value.name,e.abrupt("continue",9);case 2:return I=`${this.value.length} file(s)`,e.abrupt("continue",9);case 3:return I="application/json",e.abrupt("continue",9);case 4:return I=this.value.toString(),e.abrupt("continue",9);case 5:if(null===(I=this.detectDishType())){e.next=6;break}return e.abrupt("continue",9);case 6:return e.prev=6,(r=this.clone()).value=r.value.slice(0,256),e.next=7,r.get(A.STRING);case 7:I=e.sent,e.next=9;break;case 8:e.prev=8,g=e.catch(6),f().error(`${A.enumLookup(this.type)} cannot be sliced. ${g}`);case 9:return e.abrupt("return",I.slice(0,t));case 10:case"end":return e.stop()}},e,this,[[6,8]])})),function(A){return e.apply(this,arguments)})},{key:"valid",value:function(){switch(this.type){case A.BYTE_ARRAY:if(!(this.value instanceof Uint8Array||this.value instanceof Array))return!1;for(var e=0;e255)return!1;return!0;case A.STRING:case A.HTML:return"string"==typeof this.value;case A.NUMBER:return"number"==typeof this.value;case A.ARRAY_BUFFER:return this.value instanceof ArrayBuffer;case A.BIG_NUMBER:return!!rA.isBigNumber(this.value)||!!Object.keys(this.value).sort().equals(["c","e","s"])&&(this.value=new rA({s:this.value.s,e:this.value.e,c:this.value.c,_isBigNumber:!0}),!0);case A.JSON:return!0;case A.FILE:return this.value instanceof File;case A.LIST_FILE:return this.value instanceof Array&&this.value.reduce(function(A,e){return A&&e instanceof File},!0);default:return!1}}},{key:"size",get:function(){switch(this.type){case A.BYTE_ARRAY:case A.STRING:case A.HTML:return this.value.length;case A.NUMBER:case A.BIG_NUMBER:return this.value.toString().length;case A.ARRAY_BUFFER:return this.value.byteLength;case A.JSON:return JSON.stringify(this.value).length;case A.FILE:return this.value.size;case A.LIST_FILE:return this.value.reduce(function(A,e){return A+e.size},0);default:return-1}}},{key:"clone",value:function(){var e=new A;switch(this.type){case A.STRING:case A.HTML:case A.NUMBER:case A.BIG_NUMBER:e.set(this.value,this.type);break;case A.BYTE_ARRAY:case A.JSON:e.set(JSON.parse(JSON.stringify(this.value)),this.type);break;case A.ARRAY_BUFFER:e.set(this.value.slice(0),this.type);break;case A.FILE:e.set(new File([this.value],this.value.name,{type:this.value.type,lastModified:this.value.lastModified}),this.type);break;case A.LIST_FILE:e.set(this.value.map(function(A){return new File([A],A.name,{type:A.type,lastModified:A.lastModified})}),this.type);break;default:throw new H("Cannot clone Dish, unknown type")}return e}},{key:"_translate",value:function(e){var t=this;if(f().debug(`Translating Dish from ${A.enumLookup(this.type)} to ${A.enumLookup(e)}`),!M())return new Promise(function(I,r){t._toArrayBuffer().then(function(){return t.type=A.ARRAY_BUFFER}).then(function(){t._fromArrayBuffer(e),I()}).catch(r)});this._toArrayBuffer(),this.type=A.ARRAY_BUFFER,this._fromArrayBuffer(e)}},{key:"_toArrayBuffer",value:function(){var e=this,t={browser:{[A.STRING]:function(){return Promise.resolve(bA.toArrayBuffer.bind(e)())},[A.NUMBER]:function(){return Promise.resolve(qA.toArrayBuffer.bind(e)())},[A.HTML]:function(){return Promise.resolve(RA.toArrayBuffer.bind(e)())},[A.ARRAY_BUFFER]:function(){return Promise.resolve()},[A.BIG_NUMBER]:function(){return Promise.resolve(UA.toArrayBuffer.bind(e)())},[A.JSON]:function(){return Promise.resolve(NA.toArrayBuffer.bind(e)())},[A.FILE]:function(){return GA.toArrayBuffer.bind(e)()},[A.LIST_FILE]:function(){return Promise.resolve(HA.toArrayBuffer.bind(e)())},[A.BYTE_ARRAY]:function(){return Promise.resolve(mA.toArrayBuffer.bind(e)())}},node:{[A.STRING]:function(){return bA.toArrayBuffer.bind(e)()},[A.NUMBER]:function(){return qA.toArrayBuffer.bind(e)()},[A.HTML]:function(){return RA.toArrayBuffer.bind(e)()},[A.ARRAY_BUFFER]:function(){},[A.BIG_NUMBER]:function(){return UA.toArrayBuffer.bind(e)()},[A.JSON]:function(){return NA.toArrayBuffer.bind(e)()},[A.FILE]:function(){return GA.toArrayBuffer.bind(e)()},[A.LIST_FILE]:function(){return HA.toArrayBuffer.bind(e)()},[A.BYTE_ARRAY]:function(){return mA.toArrayBuffer.bind(e)()}}};try{return t[M()?"node":"browser"][this.type]()}catch(e){throw new H(`Error translating from ${A.enumLookup(this.type)} to ArrayBuffer: ${e}`)}}},{key:"_fromArrayBuffer",value:function(e){var t=this,I={[A.STRING]:function(){return bA.fromArrayBuffer.bind(t)()},[A.NUMBER]:function(){return qA.fromArrayBuffer.bind(t)()},[A.HTML]:function(){return RA.fromArrayBuffer.bind(t)()},[A.ARRAY_BUFFER]:function(){},[A.BIG_NUMBER]:function(){return UA.fromArrayBuffer.bind(t)()},[A.JSON]:function(){return NA.fromArrayBuffer.bind(t)()},[A.FILE]:function(){return GA.fromArrayBuffer.bind(t)()},[A.LIST_FILE]:function(){return HA.fromArrayBuffer.bind(t)()},[A.BYTE_ARRAY]:function(){return mA.fromArrayBuffer.bind(t)()}};try{I[e](),this.type=e}catch(t){throw new H(`Error translating from ArrayBuffer to ${A.enumLookup(e)}: ${t}`)}}}],[{key:"typeEnum",value:function(e){switch(e.toLowerCase()){case"bytearray":case"byte array":return A.BYTE_ARRAY;case"string":return A.STRING;case"number":return A.NUMBER;case"html":return A.HTML;case"arraybuffer":case"array buffer":return A.ARRAY_BUFFER;case"bignumber":case"big number":return A.BIG_NUMBER;case"json":case"object":return A.JSON;case"file":return A.FILE;case"list":return A.LIST_FILE;default:throw new H("Invalid data type string. No matching enum.")}}},{key:"enumLookup",value:function(e){switch(e){case A.BYTE_ARRAY:return"byteArray";case A.STRING:return"string";case A.NUMBER:return"number";case A.HTML:return"html";case A.ARRAY_BUFFER:return"ArrayBuffer";case A.BIG_NUMBER:return"BigNumber";case A.JSON:return"JSON";case A.FILE:return"File";case A.LIST_FILE:return"List";default:throw new H("Invalid data type enum. No matching type.")}}}]);var e}();KA.BYTE_ARRAY=0,KA.STRING=1,KA.NUMBER=2,KA.HTML=3,KA.ARRAY_BUFFER=4,KA.BIG_NUMBER=5,KA.JSON=6,KA.FILE=7,KA.LIST_FILE=8;const TA=KA,xA=function(){function A(e){i(this,A),this.name="",this.type="",this._value=null,this.disabled=!1,this.hint="",this.rows=0,this.toggleValues=[],this.target=null,this.defaultIndex=0,this.maxLength=null,this.min=null,this.max=null,this.step=1,this.integer=!1,this.allowEmpty=!0,e&&this._parseConfig(e)}return a(A,[{key:"_parseConfig",value:function(A){this.name=A.name,this.type=A.type,this.defaultValue=A.value,this.disabled=!!A.disabled,this.hint=A.hint||!1,this.rows=A.rows||!1,this.toggleValues=A.toggleValues,this.target=void 0!==A.target?A.target:null,this.defaultIndex=void 0!==A.defaultIndex?A.defaultIndex:0,this.maxLength=A.maxLength||null,this.min=A.min,this.max=A.max,this.step=A.step,this.integer=void 0!==A.integer&&!!A.integer,this.allowEmpty=void 0===A.allowEmpty||!!A.allowEmpty}},{key:"validate",value:function(A){if(this.disabled)return!0;var e,t,I,r=A;null==r&&(r=this.defaultValue),"toggleString"===this.type&&r&&"object"==typeof r&&"string"in r&&(r=r.string),"option"===this.type&&Array.isArray(r)&&(r=r[null!==(e=this.defaultIndex)&&void 0!==e?e:0]),"argSelector"===this.type&&Array.isArray(r)&&(r=(null===(t=r[null!==(I=this.defaultIndex)&&void 0!==I?I:0])||void 0===t?void 0:t.name)||"");var i=!1;if((null==r||""===r||"number"==typeof r.length&&0===r.length)&&(i=!0),i){var g=!1;if("option"===this.type&&Array.isArray(this.defaultValue)?g=this.defaultValue.includes(""):"argSelector"===this.type&&Array.isArray(this.defaultValue)&&(g=this.defaultValue.some(function(A){return""===A.name})),!1===this.allowEmpty||("option"===this.type||"argSelector"===this.type)&&!g)throw new F(`${this.name} cannot be empty.`);return!0}if("number"==typeof this.maxLength&&null!=r){if("string"==typeof r&&r.length>this.maxLength)throw new F(`${this.name} length cannot exceed ${this.maxLength}.`);if(Array.isArray(r)&&r.length>this.maxLength)throw new F(`${this.name} length cannot exceed ${this.maxLength}.`);if(r instanceof Uint8Array&&r.length>this.maxLength)throw new F(`${this.name} length cannot exceed ${this.maxLength}.`)}if("number"===this.type){if(null==r||isNaN(r))throw new F(`${this.name} must be a number.`);if(this.integer&&!Number.isInteger(r))throw new F(`${this.name} must be an integer.`);if("number"==typeof this.min&&rthis.max)throw new F(`${this.name} must be less than or equal to ${this.max}.`)}if("option"===this.type&&Array.isArray(this.defaultValue)){var n=this.defaultValue.filter(function(A){return"string"==typeof A&&!A.match(/^\[\/?[a-z0-9 -()^]+\]$/i)}),o=null!=r?String(r).toLowerCase():"";if(!n.find(function(A){return A.toLowerCase()===o}))throw new F(`${this.name} must be one of the following: ${n.join(", ")}.`)}if("argSelector"===this.type&&Array.isArray(this.defaultValue)){var a=this.defaultValue.map(function(A){return A.name}).filter(function(A){return"string"==typeof A&&!A.match(/^\[\/?[a-z0-9 -()^]+\]$/i)}),C=null!=r?String(r).toLowerCase():"";if(!a.find(function(A){return A.toLowerCase()===C}))throw new F(`${this.name} must be one of the following: ${a.join(", ")}.`)}return!0}},{key:"config",get:function(){return this._value}},{key:"value",get:function(){return this._value},set:function(e){this._value=A.prepare(e,this.type)}}],[{key:"prepare",value:function(A,e){var t;switch(e){case"binaryString":case"binaryShortString":case"editableOption":case"editableOptionShort":return N.parseEscapedChars(A);case"byteArray":return"string"==typeof A?S(A=A.replace(/\s+/g,"")):A;case"number":if(null===A)return A;if(t=parseFloat(A),isNaN(t)){var I=N.truncate(A.toString(),10);throw new F("Invalid ingredient value. Not a number: "+I)}return t;default:return A}}}])}();var _A=function(){return a(function A(){i(this,A),this._inputType=-1,this._outputType=-1,this._presentType=-1,this._breakpoint=!1,this._disabled=!1,this._flowControl=!1,this._manualBake=!1,this._ingList=[],this.name="",this.module="",this.description="",this.infoURL=null},[{key:"run",value:function(A,e){return A}},{key:"highlight",value:function(A,e){return!1}},{key:"highlightReverse",value:function(A,e){return!1}},{key:"present",value:function(A,e){return A}},{key:"inputType",get:function(){return TA.enumLookup(this._inputType)},set:function(A){this._inputType=TA.typeEnum(A)}},{key:"outputType",get:function(){return TA.enumLookup(this._outputType)},set:function(A){this._outputType=TA.typeEnum(A),this._presentType<0&&(this._presentType=this._outputType)}},{key:"presentType",get:function(){return TA.enumLookup(this._presentType)},set:function(A){this._presentType=TA.typeEnum(A)}},{key:"args",get:function(){return this._ingList.map(function(A){var e={name:A.name,type:A.type,value:A.defaultValue};return A.toggleValues&&(e.toggleValues=A.toggleValues),A.hint&&(e.hint=A.hint),A.rows&&(e.rows=A.rows),A.disabled&&(e.disabled=A.disabled),A.target&&(e.target=A.target),A.defaultIndex&&(e.defaultIndex=A.defaultIndex),A.maxLength&&(e.maxLength=A.maxLength),"number"==typeof A.min&&(e.min=A.min),"number"==typeof A.max&&(e.max=A.max),A.step&&(e.step=A.step),void 0!==A.integer&&(e.integer=A.integer),void 0!==A.allowEmpty&&(e.allowEmpty=A.allowEmpty),e})},set:function(A){var e=this;A.forEach(function(A){var t=new xA(A);e.addIngredient(t)})}},{key:"validateIngredients",value:function(A){var e=A||this.ingValues;return this._ingList.forEach(function(A,t){t4294967295;)A-=fe,e+=fe;for(e%=0x10000000000000000;e>0x7fffffff00000000;)e-=0x10000000000000000;for(;e<-0x8000000000000000;)e+=0x10000000000000000;return[A,e]}function ke(A,e){return A[0]==e[0]&&A[1]==e[1]}function Ge(A){return A>=0?[A,0]:[A+fe,-4294967296]}function ve(A){return A[0]>=2147483648?~~Math.max(Math.min(A[0]-fe,2147483647),-2147483648):~~Math.max(Math.min(A[0],2147483647),-2147483648)}function be(A){return A<=30?1<=0x8000000000000000&&(I-=0x10000000000000000),[r-=t,I]}function Re(A,e){var t;return t=be(e&=63),Ue(Math.floor(A[0]/t),A[1]/t)}function Ye(A,e){return Ue(A[0]-e[0],A[1]-e[1])}function Ne(A,e){return A.buf=e,A.pos=0,A.count=e.length,A}function Le(A){return A.pos>=A.count?-1:255&A.buf[A.pos++]}function He(A,e,t,I){return A.pos>=A.count?-1:(I=Math.min(I,A.count-A.pos),xe(A.buf,A.pos,e,t,I),A.pos+=I,I)}function Je(A){return A.buf=Fe(32),A.count=0,A}function qe(A){var e=A.buf;return e.length=A.count,e}function Ke(A,e){A.buf[A.count++]=e<<24>>24}function Te(A,e,t,I){xe(e,t,A.buf,A.count,I),A.count+=I}function xe(A,e,t,I,r){for(var i=0;i1<>24;for(var t=0;t<4;++t)A.properties[1+t]=A._dictionarySize>>8*t<<24>>24;Te(e,A.properties,0,5)}(i,t),g=0;g<64;g+=8)Ke(t,255&ve(Re(I,g)));A.chunker=(i._needReleaseMFStream=0,i._inStream=e,i._finished=0,function(A){var e,t;A._matchFinder||(e={},t=4,A._matchFinderType||(t=2),function(A,e){A.HASH_ARRAY=e>2,A.HASH_ARRAY?(A.kNumHashDirectBytes=0,A.kMinMatchCheck=4,A.kFixHashSize=66560):(A.kNumHashDirectBytes=2,A.kMinMatchCheck=3,A.kFixHashSize=0)}(e,t),A._matchFinder=e),function(A,e,t){var I,r;if(null==A.m_Coders||A.m_NumPrevBits!=t||A.m_NumPosBits!=e)for(A.m_NumPosBits=e,A.m_PosMask=(1<>1),function(A,e,t,I){var r;A._keepSizeBefore=e,A._keepSizeAfter=t,r=e+t+I,(null==A._bufferBase||A._blockSize!=r)&&(A._bufferBase=null,A._blockSize=r,A._bufferBase=Fe(A._blockSize)),A._pointerToLastSafePosition=A._blockSize-t}(A,e+4096,I+274,256+~~((e+4096+I+274)/2)),A._matchMaxLen=I,r=e+1,A._cyclicBufferSize!=r&&(A._son=Fe(2*(A._cyclicBufferSize=r))),i=65536,A.HASH_ARRAY&&(i=e-1,i|=i>>1,i|=i>>2,i|=i>>4,i|=i>>8,i>>=1,(i|=65535)>16777216&&(i>>=1),A._hashMask=i,i+=1,i+=A.kFixHashSize),i!=A._hashSizeSum&&(A._hash=Fe(A._hashSizeSum=i)))}(A._matchFinder,A._dictionarySize,0,A._numFastBytes),A._dictionarySizePrev=A._dictionarySize,A._numFastBytesPrev=A._numFastBytes)}(i),i._rangeEncoder.Stream=t,function(A){(function(A){A._state=0,A._previousByte=0;for(var e=0;e<4;++e)A._repDistances[e]=0})(A),function(A){A._position=pe,A.Low=pe,A.Range=-1,A._cacheSize=1,A._cache=0}(A._rangeEncoder),Wt(A._isMatch),Wt(A._isRep0Long),Wt(A._isRep),Wt(A._isRepG0),Wt(A._isRepG1),Wt(A._isRepG2),Wt(A._posEncoders),function(A){var e,t=1<>24}if(I=function(A){A.m_OutWindow={},A.m_RangeDecoder={},A.m_IsMatchDecoders=Fe(192),A.m_IsRepDecoders=Fe(12),A.m_IsRepG0Decoders=Fe(12),A.m_IsRepG1Decoders=Fe(12),A.m_IsRepG2Decoders=Fe(12),A.m_IsRep0LongDecoders=Fe(192),A.m_PosSlotDecoder=Fe(4),A.m_PosDecoders=Fe(114),A.m_PosAlignDecoder=Nt({},4),A.m_LenDecoder=at({}),A.m_RepLenDecoder=at({}),A.m_LiteralDecoder={};for(var e=0;e<4;++e)A.m_PosSlotDecoder[e]=Nt({},6);return A}({}),!function(A,e){var t,I,r,i,g,n,o;if(e.length<5)return 0;for(r=(o=255&e[0])%9,i=(n=~~(o/9))%5,g=~~(n/5),t=0,I=0;I<4;++I)t+=(255&e[1+I])<<8*I;return t>99999999||!function(A,e,t,I){if(e>8||t>4||I>4)return 0;!function(A,e,t){var I,r;if(null==A.m_Coders||A.m_NumPrevBits!=t||A.m_NumPosBits!=e)for(A.m_NumPosBits=e,A.m_PosMask=(1<4294967295?le:Ge(g)),A.chunker=function(A,e,t,I){return A.m_RangeDecoder.Stream=e,tt(A.m_OutWindow),A.m_OutWindow._stream=t,function(A){A.m_OutWindow._streamPos=0,A.m_OutWindow._pos=0,Wt(A.m_IsMatchDecoders),Wt(A.m_IsRep0LongDecoders),Wt(A.m_IsRepDecoders),Wt(A.m_IsRepG0Decoders),Wt(A.m_IsRepG1Decoders),Wt(A.m_IsRepG2Decoders),Wt(A.m_PosDecoders),function(A){var e,t;for(t=1<A._streamPos&&(I=A._streamPos-(A._pos+e)),++t,i=A._bufferOffset+A._pos+e,r=0;rA._pointerToLastSafePosition&&(A._posLimit=A._pointerToLastSafePosition-A._bufferOffset),void(A._streamEndWasReached=1);A._streamPos+=e,A._streamPos>=A._pos+A._keepSizeAfter&&(A._posLimit=A._streamPos-A._keepSizeAfter)}}function je(A,e){A._bufferOffset+=e,A._posLimit-=e,A._pos-=e,A._streamPos-=e}var Xe=function(){var A,e,t,I=[];for(A=0;A<256;++A){for(t=A,e=0;e<8;++e)1&t?(t>>>=1,t^=-306674912):t>>>=1;I[A]=t}return I}();function ze(A){var e;(A._cyclicBufferPos+=1)>=A._cyclicBufferSize&&(A._cyclicBufferPos=0),function(A){A._pos+=1,A._pos>A._posLimit&&(A._bufferOffset+A._pos>A._pointerToLastSafePosition&&function(A){var e,t,I;for((I=A._bufferOffset+A._pos-A._keepSizeBefore)>0&&--I,t=A._bufferOffset+A._streamPos-I,e=0;e=A._windowSize&&(A._pos=0),A._streamPos=A._pos)}function et(A,e){var t=A._pos-e-1;return t<0&&(t+=A._windowSize),A._buffer[t]}function tt(A){At(A),A._stream=null}function It(A){return(A-=2)<4?A:3}function rt(A){return A<4?0:A<10?A-3:A-6}function it(A){if(!A.alive)throw new Error("bad state");if(A.encoder)throw new Error("No encoding");return function(A){var e=function(A){var e,t,I,r,i,g;if(g=ve(A.nowPos64)&A.m_PosStateMask,Vt(A.m_RangeDecoder,A.m_IsMatchDecoders,(A.state<<4)+g)){if(Vt(A.m_RangeDecoder,A.m_IsRepDecoders,A.state))I=0,Vt(A.m_RangeDecoder,A.m_IsRepG0Decoders,A.state)?(Vt(A.m_RangeDecoder,A.m_IsRepG1Decoders,A.state)?(Vt(A.m_RangeDecoder,A.m_IsRepG2Decoders,A.state)?(t=A.rep3,A.rep3=A.rep2):t=A.rep2,A.rep2=A.rep1):t=A.rep1,A.rep1=A.rep0,A.rep0=t):Vt(A.m_RangeDecoder,A.m_IsRep0LongDecoders,(A.state<<4)+g)||(A.state=A.state<7?9:11,I=1),I||(I=ot(A.m_RepLenDecoder,A.m_RangeDecoder,g)+2,A.state=A.state<7?8:11);else if(A.rep3=A.rep2,A.rep2=A.rep1,A.rep1=A.rep0,I=2+ot(A.m_LenDecoder,A.m_RangeDecoder,g),A.state=A.state<7?7:10,(i=Lt(A.m_PosSlotDecoder[It(I)],A.m_RangeDecoder))>=4){if(r=(i>>1)-1,A.rep0=(2|1&i)<>>=1,I=A.Code-A.Range>>>31,A.Code-=A.Range&I-1,r=r<<1|1-I,-16777216&A.Range||(A.Code=A.Code<<8|Le(A.Stream),A.Range<<=8);return r}(A.m_RangeDecoder,r-4)<<4,A.rep0+=function(A,e){var t,I,r=1,i=0;for(I=0;I=0||A.rep0>=A.m_DictionarySizeCheck)return-1;!function(A,e,t){var I=A._pos-e-1;for(I<0&&(I+=A._windowSize);0!=t;t-=1)I>=A._windowSize&&(I=0),A._buffer[A._pos]=A._buffer[I],A._pos+=1,I+=1,A._pos>=A._windowSize&&At(A)}(A.m_OutWindow,A.rep0,I),A.nowPos64=De(A.nowPos64,Ge(I)),A.prevByte=et(A.m_OutWindow,0)}else e=function(A,e,t){return A.m_Coders[((e&A.m_PosMask)<>>8-A.m_NumPrevBits)]}(A.m_LiteralDecoder,ve(A.nowPos64),A.prevByte),A.state<7?A.prevByte=function(A,e){var t=1;do{t=t<<1|Vt(e,A.m_Decoders,t)}while(t<256);return t<<24>>24}(e,A.m_RangeDecoder):A.prevByte=function(A,e,t){var I,r,i=1;do{if(r=t>>7&1,t<<=1,i=i<<1|(I=Vt(e,A.m_Decoders,(1+r<<8)+i)),r!=I){for(;i<256;)i=i<<1|Vt(e,A.m_Decoders,i);break}}while(i<256);return i<<24>>24}(e,A.m_RangeDecoder,et(A.m_OutWindow,A.rep0)),function(A,e){A._buffer[A._pos]=e,A._pos+=1,A._pos>=A._windowSize&&At(A)}(A.m_OutWindow,A.prevByte),A.state=rt(A.state),A.nowPos64=De(A.nowPos64,we);return 0}(A.decoder);if(-1==e)throw new Error("corrupted input");A.inBytesProcessed=le,A.outBytesProcessed=A.decoder.nowPos64,(e||Se(A.decoder.outSize,pe)>=0&&Se(A.decoder.nowPos64,A.decoder.outSize)>=0)&&(At(A.decoder.m_OutWindow),tt(A.decoder.m_OutWindow),A.decoder.m_RangeDecoder.Stream=null,A.alive=0)}(A),A.alive}function gt(A){if(!A.alive)throw new Error("bad state");if(!A.encoder)throw new Error("No decoding");return function(A){(function(A,e,t,I){var r,i,g,n,o,a,C,B,s,E,h,Q,c,u;if(e[0]=pe,t[0]=pe,I[0]=1,A._inStream&&(A._matchFinder._stream=A._inStream,function(A){A._bufferOffset=0,A._pos=0,A._streamPos=0,A._streamEndWasReached=0,Ze(A),A._cyclicBufferPos=0,je(A,-1)}(A._matchFinder),A._needReleaseMFStream=1,A._inStream=null),!A._finished){if(A._finished=1,c=A.nowPos64,ke(A.nowPos64,pe)){if(!Pe(A._matchFinder))return void ct(A,ve(A.nowPos64));pt(A),Q=ve(A.nowPos64)&A._posStateMask,Pt(A._rangeEncoder,A._isMatch,(A._state<<4)+Q,0),A._state=rt(A._state),g=We(A._matchFinder,-A._additionalOffset),vt(Gt(A._literalEncoder,ve(A.nowPos64),A._previousByte),A._rangeEncoder,g),A._previousByte=g,A._additionalOffset-=1,A.nowPos64=De(A.nowPos64,we)}if(Pe(A._matchFinder))for(;;){if(a=ut(A,ve(A.nowPos64)),s=A.backRes,Q=ve(A.nowPos64)&A._posStateMask,i=(A._state<<4)+Q,1==a&&-1==s)Pt(A._rangeEncoder,A._isMatch,i,0),g=We(A._matchFinder,-A._additionalOffset),u=Gt(A._literalEncoder,ve(A.nowPos64),A._previousByte),A._state<7?vt(u,A._rangeEncoder,g):(B=We(A._matchFinder,-A._repDistances[0]-1-A._additionalOffset),bt(u,A._rangeEncoder,B,g)),A._previousByte=g,A._state=rt(A._state);else{if(Pt(A._rangeEncoder,A._isMatch,i,1),s<4){if(Pt(A._rangeEncoder,A._isRep,A._state,1),s?(Pt(A._rangeEncoder,A._isRepG0,A._state,1),1==s?Pt(A._rangeEncoder,A._isRepG1,A._state,0):(Pt(A._rangeEncoder,A._isRepG1,A._state,1),Pt(A._rangeEncoder,A._isRepG2,A._state,s-2))):(Pt(A._rangeEncoder,A._isRepG0,A._state,0),Pt(A._rangeEncoder,A._isRep0Long,i,1==a?0:1)),1==a?A._state=A._state<7?9:11:(mt(A._repMatchLenEncoder,A._rangeEncoder,a-2,Q),A._state=A._state<7?8:11),n=A._repDistances[s],0!=s){for(var f=s;f>=1;--f)A._repDistances[f]=A._repDistances[f-1];A._repDistances[0]=n}}else{for(Pt(A._rangeEncoder,A._isRep,A._state,0),A._state=A._state<7?7:10,mt(A._lenEncoder,A._rangeEncoder,a-2,Q),h=dt(s-=4),C=It(a),Jt(A._posSlotEncoder[C],A._rangeEncoder,h),h>=4&&(E=s-(r=(2|1&h)<<(o=(h>>1)-1)),h<14?xt(A._posEncoders,r-h-1,A._rangeEncoder,o,E):(Zt(A._rangeEncoder,E>>4,o-4),Kt(A._posAlignEncoder,A._rangeEncoder,15&E),A._alignPriceCount+=1)),n=s,f=3;f>=1;--f)A._repDistances[f]=A._repDistances[f-1];A._repDistances[0]=n,A._matchPriceCount+=1}A._previousByte=We(A._matchFinder,a-1-A._additionalOffset)}if(A._additionalOffset-=a,A.nowPos64=De(A.nowPos64,Ge(a)),!A._additionalOffset){if(A._matchPriceCount>=128&&Qt(A),A._alignPriceCount>=16&&ht(A),e[0]=A.nowPos64,t[0]=jt(A._rangeEncoder),!Pe(A._matchFinder))return void ct(A,ve(A.nowPos64));if(Se(Ye(A.nowPos64,c),[4096,0])>=0)return A._finished=0,void(I[0]=0)}}else ct(A,ve(A.nowPos64))}})(A.encoder,A.encoder.processedInSize,A.encoder.processedOutSize,A.encoder.finished),A.inBytesProcessed=A.encoder.processedInSize[0],A.encoder.finished[0]&&(function(A){wt(A),A._rangeEncoder.Stream=null}(A.encoder),A.alive=0)}(A),A.alive}function nt(A,e){for(;A.m_NumPosStates>=1,e=1,e<<=i-=1,A=0;A>24}return r}();function Et(A,e){var t,I,r,i;A._optimumEndIndex=e,r=A._optimum[e].PosPrev,I=A._optimum[e].BackPrev;do{A._optimum[e].Prev1IsChar&&(Yt(A._optimum[r]),A._optimum[r].PosPrev=r-1,A._optimum[e].Prev2&&(A._optimum[r-1].Prev1IsChar=0,A._optimum[r-1].PosPrev=A._optimum[e].PosPrev2,A._optimum[r-1].BackPrev=A._optimum[e].BackPrev2)),i=r,t=I,I=A._optimum[i].BackPrev,r=A._optimum[i].PosPrev,A._optimum[i].BackPrev=t,A._optimum[i].PosPrev=e,e=i}while(e>0);return A.backRes=A._optimum[0].BackPrev,A._optimumCurrentIndex=A._optimum[0].PosPrev,A._optimumCurrentIndex}function ht(A){for(var e=0;e<16;++e)A._alignPrices[e]=Tt(A._posAlignEncoder,e);A._alignPriceCount=0}function Qt(A){var e,t,I,r,i,g,n,o;for(r=4;r<128;++r)e=(2|1&(g=dt(r)))<<(I=(g>>1)-1),A.tempPrices[r]=_t(A._posEncoders,e-g-1,I,r-e);for(i=0;i<4;++i){for(t=A._posSlotEncoder[i],n=i<<6,g=0;g>1)-1-4<<6;for(o=128*i,r=0;r<4;++r)A._distancesPrices[o+r]=A._posSlotPrices[n+r];for(;r<128;++r)A._distancesPrices[o+r]=A._posSlotPrices[n+dt(r)]+A.tempPrices[r]}A._matchPriceCount=0}function ct(A,e){wt(A),function(A,e){Pt(A._rangeEncoder,A._isMatch,(A._state<<4)+e,1),Pt(A._rangeEncoder,A._isRep,A._state,0),A._state=A._state<7?7:10,mt(A._lenEncoder,A._rangeEncoder,0,e);var t=It(2);Jt(A._posSlotEncoder[t],A._rangeEncoder,63),Zt(A._rangeEncoder,67108863,26),Kt(A._posAlignEncoder,A._rangeEncoder,15)}(A,e&A._posStateMask);for(var t=0;t<5;++t)Xt(A._rangeEncoder)}function ut(A,e){var t,I,r,i,g,n,o,a,C,B,s,E,h,Q,c,u,f,l,y,p,w,d,F,D,m,S,U,k,G,v,b,M,R,Y,N,L,H,J,q,K,T,x,_,V;if(A._optimumEndIndex!=A._optimumCurrentIndex)return h=A._optimum[A._optimumCurrentIndex].PosPrev-A._optimumCurrentIndex,A.backRes=A._optimum[A._optimumCurrentIndex].BackPrev,A._optimumCurrentIndex=A._optimum[A._optimumCurrentIndex].PosPrev,h;if(A._optimumCurrentIndex=A._optimumEndIndex=0,A._longestMatchWasFound?(E=A._longestMatchLength,A._longestMatchWasFound=0):E=pt(A),S=A._numDistancePairs,(D=Pe(A._matchFinder)+1)<2)return A.backRes=-1,1;for(D>273&&(D=273),q=0,C=0;C<4;++C)A.reps[C]=A._repDistances[C],A.repLens[C]=Oe(A._matchFinder,-1,A.reps[C],273),A.repLens[C]>A.repLens[q]&&(q=C);if(A.repLens[q]>=A._numFastBytes)return A.backRes=q,yt(A,(h=A.repLens[q])-1),h;if(E>=A._numFastBytes)return A.backRes=A._matchDistances[S-1]+4,yt(A,E-1),E;if(o=We(A._matchFinder,-1),f=We(A._matchFinder,-A._repDistances[0]-1-1),E<2&&o!=f&&A.repLens[q]<2)return A.backRes=-1,1;if(A._optimum[0].State=A._state,R=e&A._posStateMask,A._optimum[1].Price=Ot[A._isMatch[(A._state<<4)+R]>>>2]+Rt(Gt(A._literalEncoder,e,A._previousByte),A._state>=7,f,o),Yt(A._optimum[1]),J=(l=Ot[2048-A._isMatch[(A._state<<4)+R]>>>2])+Ot[2048-A._isRep[A._state]>>>2],f==o&&(K=J+function(A,e,t){return Ot[A._isRepG0[e]>>>2]+Ot[A._isRep0Long[(e<<4)+t]>>>2]}(A,A._state,R),K=A.repLens[q]?E:A.repLens[q])<2)return A.backRes=A._optimum[1].BackPrev,1;A._optimum[1].PosPrev=0,A._optimum[0].Backs0=A.reps[0],A._optimum[0].Backs1=A.reps[1],A._optimum[0].Backs2=A.reps[2],A._optimum[0].Backs3=A.reps[3],B=s;do{A._optimum[B].Price=268435455,B-=1}while(B>=2);for(C=0;C<4;++C)if(!((H=A.repLens[C])<2)){N=J+lt(A,C,A._state,R);do{(i=N+Ut(A._repMatchLenEncoder,H-2,R))<(v=A._optimum[H]).Price&&(v.Price=i,v.PosPrev=0,v.BackPrev=C,v.Prev1IsChar=0)}while((H-=1)>=2)}if(F=l+Ot[A._isRep[A._state]>>>2],(B=A.repLens[0]>=2?A.repLens[0]+1:2)<=E){for(U=0;B>A._matchDistances[U];)U+=2;for(;(i=F+ft(A,a=A._matchDistances[U+1],B,R))<(v=A._optimum[B]).Price&&(v.Price=i,v.PosPrev=0,v.BackPrev=a+4,v.Prev1IsChar=0),B!=A._matchDistances[U]||(U+=2)!=S;B+=1);}for(t=0;;){if(++t==s)return Et(A,t);if(y=pt(A),S=A._numDistancePairs,y>=A._numFastBytes)return A._longestMatchLength=y,A._longestMatchWasFound=1,Et(A,t);if(e+=1,M=A._optimum[t].PosPrev,A._optimum[t].Prev1IsChar?(M-=1,A._optimum[t].Prev2?(x=A._optimum[A._optimum[t].PosPrev2].State,x=A._optimum[t].BackPrev2<4?x<7?8:11:x<7?7:10):x=A._optimum[M].State,x=rt(x)):x=A._optimum[M].State,M==t-1?x=A._optimum[t].BackPrev?rt(x):x<7?9:11:(A._optimum[t].Prev1IsChar&&A._optimum[t].Prev2?(M=A._optimum[t].PosPrev2,b=A._optimum[t].BackPrev2,x=x<7?8:11):x=(b=A._optimum[t].BackPrev)<4?x<7?8:11:x<7?7:10,G=A._optimum[M],b<4?b?1==b?(A.reps[0]=G.Backs1,A.reps[1]=G.Backs0,A.reps[2]=G.Backs2,A.reps[3]=G.Backs3):2==b?(A.reps[0]=G.Backs2,A.reps[1]=G.Backs0,A.reps[2]=G.Backs1,A.reps[3]=G.Backs3):(A.reps[0]=G.Backs3,A.reps[1]=G.Backs0,A.reps[2]=G.Backs1,A.reps[3]=G.Backs2):(A.reps[0]=G.Backs0,A.reps[1]=G.Backs1,A.reps[2]=G.Backs2,A.reps[3]=G.Backs3):(A.reps[0]=b-4,A.reps[1]=G.Backs0,A.reps[2]=G.Backs1,A.reps[3]=G.Backs2)),A._optimum[t].State=x,A._optimum[t].Backs0=A.reps[0],A._optimum[t].Backs1=A.reps[1],A._optimum[t].Backs2=A.reps[2],A._optimum[t].Backs3=A.reps[3],n=A._optimum[t].Price,o=We(A._matchFinder,-1),f=We(A._matchFinder,-A.reps[0]-1-1),R=e&A._posStateMask,p=0,(I=n+Ot[A._isMatch[(x<<4)+R]>>>2]+Rt(Gt(A._literalEncoder,e,We(A._matchFinder,-2)),x>=7,f,o))<(w=A._optimum[t+1]).Price&&(w.Price=I,w.PosPrev=t,w.BackPrev=-1,w.Prev1IsChar=0,p=1),J=(l=n+Ot[2048-A._isMatch[(x<<4)+R]>>>2])+Ot[2048-A._isRep[x]>>>2],f!=o||w.PosPrev>>2]+Ot[A._isRep0Long[(x<<4)+R]>>>2]))<=w.Price&&(w.Price=K,w.PosPrev=t,w.BackPrev=0,w.Prev1IsChar=0,p=1),!((D=m=4095-t<(m=Pe(A._matchFinder)+1)?4095-t:m)<2)){if(D>A._numFastBytes&&(D=A._numFastBytes),!p&&f!=o&&(V=Math.min(m-1,A._numFastBytes),(c=Oe(A._matchFinder,0,A.reps[0],V))>=2)){for(_=rt(x),Y=e+1&A._posStateMask,d=I+Ot[2048-A._isMatch[(_<<4)+Y]>>>2]+Ot[2048-A._isRep[_]>>>2],k=t+1+c;s=2);if(Q=u,L||(T=Q+1),Q=2)){for(_=x<7?8:11,Y=e+Q&A._posStateMask,r=J+(Ut(A._repMatchLenEncoder,Q-2,R)+lt(A,L,x,R))+Ot[A._isMatch[(_<<4)+Y]>>>2]+Rt(Gt(A._literalEncoder,e+Q,We(A._matchFinder,Q-1-1)),1,We(A._matchFinder,Q-1-(A.reps[L]+1)),We(A._matchFinder,Q-1)),_=rt(_),Y=e+Q+1&A._posStateMask,d=r+Ot[2048-A._isMatch[(_<<4)+Y]>>>2]+Ot[2048-A._isRep[_]>>>2],k=Q+1+c;sD){for(y=D,S=0;y>A._matchDistances[S];S+=2);A._matchDistances[S]=y,S+=2}if(y>=T){for(F=l+Ot[A._isRep[x]>>>2];sA._matchDistances[U];)U+=2;for(Q=T;;Q+=1)if((i=F+ft(A,g=A._matchDistances[U+1],Q,R))<(v=A._optimum[t+Q]).Price&&(v.Price=i,v.PosPrev=t,v.BackPrev=g+4,v.Prev1IsChar=0),Q==A._matchDistances[U]){if(Q=2)){for(_=x<7?7:10,Y=e+Q&A._posStateMask,r=i+Ot[A._isMatch[(_<<4)+Y]>>>2]+Rt(Gt(A._literalEncoder,e+Q,We(A._matchFinder,Q-1-1)),1,We(A._matchFinder,Q-(g+1)-1),We(A._matchFinder,Q-1)),_=rt(_),Y=e+Q+1&A._posStateMask,d=r+Ot[2048-A._isMatch[(_<<4)+Y]>>>2]+Ot[2048-A._isRep[_]>>>2],k=Q+1+c;s>6]+12:A<134217728?st[A>>16]+32:st[A>>26]+52}(e)]+A._alignPrices[15&e])+Ut(A._lenEncoder,t-2,I)}function lt(A,e,t,I){var r;return e?(r=Ot[2048-A._isRepG0[t]>>>2],1==e?r+=Ot[A._isRepG1[t]>>>2]:(r+=Ot[2048-A._isRepG1[t]>>>2],r+=zt(A._isRepG2[t],e-2))):(r=Ot[A._isRepG0[t]>>>2],r+=Ot[2048-A._isRep0Long[(t<<4)+I]>>>2]),r}function yt(A,e){e>0&&(function(A,e){var t,I,r,i,g,n,o,a,C,B,s,E,h,Q,c,u,f;do{if(A._pos+A._matchMaxLen<=A._streamPos)E=A._matchMaxLen;else if((E=A._streamPos-A._pos)A._cyclicBufferSize?A._pos-A._cyclicBufferSize:0,I=A._bufferOffset+A._pos,A.HASH_ARRAY?(n=1023&(f=Xe[255&A._bufferBase[I]]^255&A._bufferBase[I+1]),A._hash[n]=A._pos,o=65535&(f^=(255&A._bufferBase[I+2])<<8),A._hash[1024+o]=A._pos,a=(f^Xe[255&A._bufferBase[I+3]]<<5)&A._hashMask):a=255&A._bufferBase[I]^(255&A._bufferBase[I+1])<<8,r=A._hash[A.kFixHashSize+a],A._hash[A.kFixHashSize+a]=A._pos,c=1+(A._cyclicBufferPos<<1),u=A._cyclicBufferPos<<1,B=s=A.kNumHashDirectBytes,t=A._cutValue;;){if(r<=h||0==t){t-=1,A._son[c]=A._son[u]=0;break}if(i=((g=A._pos-r)<=A._cyclicBufferPos?A._cyclicBufferPos-g:A._cyclicBufferPos-g+A._cyclicBufferSize)<<1,Q=A._bufferOffset+r,C=BA._cyclicBufferSize?A._pos-A._cyclicBufferSize:0,I=A._bufferOffset+A._pos,u=1,a=0,C=0,A.HASH_ARRAY?(a=1023&(w=Xe[255&A._bufferBase[I]]^255&A._bufferBase[I+1]),C=65535&(w^=(255&A._bufferBase[I+2])<<8),B=(w^Xe[255&A._bufferBase[I+3]]<<5)&A._hashMask):B=255&A._bufferBase[I]^(255&A._bufferBase[I+1])<<8,r=A._hash[A.kFixHashSize+B]||0,A.HASH_ARRAY&&(i=A._hash[a]||0,g=A._hash[1024+C]||0,A._hash[a]=A._pos,A._hash[1024+C]=A._pos,i>c&&A._bufferBase[A._bufferOffset+i]==A._bufferBase[I]&&(e[f++]=u=2,e[f++]=A._pos-i-1),g>c&&A._bufferBase[A._bufferOffset+g]==A._bufferBase[I]&&(g==i&&(f-=2),e[f++]=u=3,e[f++]=A._pos-g-1,i=g),0!=f&&i==r&&(f-=2,u=1)),A._hash[A.kFixHashSize+B]=A._pos,y=1+(A._cyclicBufferPos<<1),p=A._cyclicBufferPos<<1,E=h=A.kNumHashDirectBytes,0!=A.kNumHashDirectBytes&&r>c&&A._bufferBase[A._bufferOffset+r+A.kNumHashDirectBytes]!=A._bufferBase[I+A.kNumHashDirectBytes]&&(e[f++]=u=A.kNumHashDirectBytes,e[f++]=A._pos-r-1),t=A._cutValue;;){if(r<=c||0==t){t-=1,A._son[y]=A._son[p]=0;break}if(n=((o=A._pos-r)<=A._cyclicBufferPos?A._cyclicBufferPos-o:A._cyclicBufferPos-o+A._cyclicBufferSize)<<1,l=A._bufferOffset+r,s=E0&&(e=A._matchDistances[A._numDistancePairs-2])==A._numFastBytes&&(e+=Oe(A._matchFinder,e-1,A._matchDistances[A._numDistancePairs-1],273-e)),A._additionalOffset+=1,e}function wt(A){A._matchFinder&&A._needReleaseMFStream&&(A._matchFinder._stream=null,A._needReleaseMFStream=0)}function dt(A){return A<2048?st[A]:A<2097152?st[A>>10]+20:st[A>>20]+40}function Ft(A,e){Wt(A._choice);for(var t=0;t>>2],n=(g=Ot[2048-A._choice[0]>>>2])+Ot[A._choice[1]>>>2],o=g+Ot[2048-A._choice[1]>>>2],a=0,a=0;a<8;++a){if(a>=t)return;I[r+a]=i+qt(A._lowCoder[e],a)}for(;a<16;++a){if(a>=t)return;I[r+a]=n+qt(A._midCoder[e],a-8)}for(;a>>8-A.m_NumPrevBits)]}function vt(A,e,t){var I,r,i=1;for(r=7;r>=0;--r)I=t>>r&1,Pt(e,A.m_Encoders,i,I),i=i<<1|I}function bt(A,e,t,I){var r,i,g,n,o=1,a=1;for(i=7;i>=0;--i)r=I>>i&1,n=a,o&&(n+=1+(g=t>>i&1)<<8,o=g==r),Pt(e,A.m_Encoders,n,r),a=a<<1|r}function Mt(A){return A.m_Encoders=Fe(768),A}function Rt(A,e,t,I){var r,i,g=1,n=7,o=0;if(e)for(;n>=0;--n)if(i=t>>n&1,r=I>>n&1,o+=zt(A.m_Encoders[(1+i<<8)+g],r),g=g<<1|r,i!=r){--n;break}for(;n>=0;--n)r=I>>n&1,o+=zt(A.m_Encoders[g],r),g=g<<1|r;return o}function Yt(A){A.BackPrev=-1,A.Prev1IsChar=0}function Nt(A,e){return A.NumBitLevels=e,A.Models=Fe(1<>>(r-=1)&1,Pt(e,A.Models,i,I),i=i<<1|I}function qt(A,e){var t,I,r=1,i=0;for(I=A.NumBitLevels;0!=I;)t=e>>>(I-=1)&1,i+=zt(A.Models[r],t),r=(r<<1)+t;return i}function Kt(A,e,t){var I,r,i=1;for(r=0;r>=1}function Tt(A,e){var t,I,r=1,i=0;for(I=A.NumBitLevels;0!=I;I-=1)t=1&e,e>>>=1,i+=zt(A.Models[r],t),r=r<<1|t;return i}function xt(A,e,t,I,r){var i,g,n=1;for(g=0;g>=1}function _t(A,e,t,I){var r,i,g=1,n=0;for(i=t;0!=i;i-=1)r=1&I,I>>>=1,n+=Ot[(2047&(A[e+g]-r^-r))>>>2],g=g<<1|r;return n}function Vt(A,e,t){var I,r=e[t];return I=(A.Range>>>11)*r,(-2147483648^A.Code)<(-2147483648^I)?(A.Range=I,e[t]=r+(2048-r>>>5)<<16>>16,-16777216&A.Range||(A.Code=A.Code<<8|Le(A.Stream),A.Range<<=8),0):(A.Range-=I,A.Code-=I,e[t]=r-(r>>>5)<<16>>16,-16777216&A.Range||(A.Code=A.Code<<8|Le(A.Stream),A.Range<<=8),1)}function Wt(A){for(var e=A.length-1;e>=0;--e)A[e]=1024}var Ot=function(){var A,e,t,I,r=[];for(e=8;e>=0;--e)for(I=1,A=1,A<<=9-e,t=I<<=9-e-1;t>>9-e-1);return r}();function Pt(A,e,t,I){var r,i=e[t];r=(A.Range>>>11)*i,I?(A.Low=De(A.Low,me(Ge(r),[4294967295,0])),A.Range-=r,e[t]=i-(i>>>5)<<16>>16):(A.Range=r,e[t]=i+(2048-i>>>5)<<16>>16),-16777216&A.Range||(A.Range<<=8,Xt(A))}function Zt(A,e,t){for(var I=t-1;I>=0;I-=1)A.Range>>>=1,1==(e>>>I&1)&&(A.Low=De(A.Low,Ge(A.Range))),-16777216&A.Range||(A.Range<<=8,Xt(A))}function jt(A){return De(De(Ge(A._cacheSize),A._position),[4,0])}function Xt(A){var e,t,I,r,i=ve((I=32,r=Re(t=A.Low,I&=63),t[1]<0&&(r=De(r,Me([2,0],31))),r));if(0!=i||Se(A.Low,[4278190080,0])<0){A._position=De(A._position,Ge(A._cacheSize)),e=A._cache;do{Ke(A.Stream,e+i),e=255}while(0!=(A._cacheSize-=1));A._cache=ve(A.Low)>>>24}A._cacheSize+=1,A.Low=Me(me(A.Low,[16777215,0]),8)}function zt(A,e){return Ot[(2047&(A-e^-e))>>>2]}function $t(A){for(var e,t,I,r=0,i=0,g=A.length,n=[],o=[];r=g)return A;if(128!=(192&(t=255&A[++r])))return A;o[i]=(31&e)<<6|63&t}else{if(224!=(240&e))return A;if(r+2>=g)return A;if(128!=(192&(t=255&A[++r])))return A;if(128!=(192&(I=255&A[++r])))return A;o[i]=(15&e)<<12|(63&t)<<6|63&I}else{if(!e)return A;o[i]=e}16383==i&&(n.push(String.fromCharCode.apply(String,o)),i=-1)}return i>0&&(o.length=i,n.push(String.fromCharCode.apply(String,o))),n.join("")}function AI(A){var e,t,I,r=[],i=0,g=A.length;if("object"==typeof A)return A;for(function(A,e,t,I,r){var i;for(i=0;i=1&&e<=127?++i:i+=!e||e>=128&&e<=2047?2:3;for(t=[],i=0,I=0;I=1&&e<=127?t[i++]=e<<24>>24:!e||e>=128&&e<=2047?(t[i++]=(192|e>>6&31)<<24>>24,t[i++]=(128|63&e)<<24>>24):(t[i++]=(224|e>>12&15)<<24>>24,t[i++]=(128|e>>6&63)<<24>>24,t[i++]=(128|63&e)<<24>>24);return t}function eI(A){return A[1]+A[0]}function tI(A,e,t,I){var r,i,g={},n=void 0===t&&void 0===I;if("function"!=typeof t&&(i=t,t=I=0),I=I||function(A){if(void 0!==i)return de(A,i)},t=t||function(A,e){if(void 0!==i)return postMessage({action:1,cbn:i,result:A,error:e})},n){for(g.c=_e({},AI(A),iI(e));gt(g.c.chunker););return qe(g.c.output)}try{g.c=_e({},AI(A),iI(e)),I(0)}catch(A){return t(null,A)}ue(function A(){try{for(var e,i=(new Date).getTime();gt(g.c.chunker);)if(r=eI(g.c.chunker.inBytesProcessed)/eI(g.c.length_0),(new Date).getTime()-i>200)return I(r),ue(A,0),0;I(1),e=qe(g.c.output),ue(t.bind(null,e),0)}catch(A){t(null,A)}},0)}function II(A,e,t){var I,r,i,g,n={},o=void 0===e&&void 0===t;if("function"!=typeof e&&(r=e,e=t=0),t=t||function(A){if(void 0!==r)return de(i?A:-1,r)},e=e||function(A,e){if(void 0!==r)return postMessage({action:2,cbn:r,result:A,error:e})},o){for(n.d=Ve({},A);it(n.d.chunker););return $t(qe(n.d.output))}try{n.d=Ve({},A),g=eI(n.d.length_0),i=g>-1,t(0)}catch(A){return e(null,A)}ue(function A(){try{for(var r,o=0,a=(new Date).getTime();it(n.d.chunker);)if(++o%1e3==0&&(new Date).getTime()-a>200)return i&&(I=eI(n.d.chunker.decoder.nowPos64)/g,t(I)),ue(A,0),0;t(1),r=$t(qe(n.d.output)),ue(e.bind(null,r),0)}catch(A){e(null,A)}},0)}var rI,iI=(rI=[{s:16,f:64,m:0},{s:20,f:64,m:0},{s:19,f:64,m:1},{s:20,f:64,m:1},{s:21,f:128,m:1},{s:22,f:128,m:1},{s:23,f:128,m:1},{s:24,f:255,m:1},{s:25,f:255,m:1}],function(A){return rI[A-1]||rI[6]});function gI(){try{var A=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(A){}return(gI=function(){return!!A})()}const nI=function(A){function e(){var A,t,I,r;return i(this,e),t=this,I=B(I=e),(A=C(t,gI()?Reflect.construct(I,[],B(t).constructor):I.apply(t,r))).name="LZMA Compress",A.module="Compression",A.description="Compresses data using the Lempel–Ziv–Markov chain algorithm. Compression mode determines the speed and effectiveness of the compression: 1 is fastest and less effective, 9 is slowest and most effective",A.infoURL="https://wikipedia.org/wiki/Lempel%E2%80%93Ziv%E2%80%93Markov_chain_algorithm",A.inputType="ArrayBuffer",A.outputType="ArrayBuffer",A.args=[{name:"Compression Mode",type:"option",value:["1","2","3","4","5","6","7","8","9"],defaultIndex:6}],A}return E(e,A),a(e,[{key:"run",value:(t=r(Q().mark(function A(e,t){var I;return Q().wrap(function(A){for(;;)switch(A.prev=A.next){case 0:return I=Number(t[0]),A.abrupt("return",new Promise(function(A,t){tI(new Uint8Array(e),I,function(e,I){I&&t(new F(`Failed to compress input: ${I.message}`)),A(new Int8Array(e).buffer)},function(A){Y()&&self.sendStatusMessage(`Compressing input: ${(100*A).toFixed(2)}%`)})}));case 1:case"end":return A.stop()}},A)})),function(A,e){return t.apply(this,arguments)})}]);var t}(VA);function oI(){try{var A=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(A){}return(oI=function(){return!!A})()}const aI=function(A){function e(){var A,t,I,r;return i(this,e),t=this,I=B(I=e),(A=C(t,oI()?Reflect.construct(I,[],B(t).constructor):I.apply(t,r))).name="LZMA Decompress",A.module="Compression",A.description="Decompresses data using the Lempel-Ziv-Markov chain Algorithm.",A.infoURL="https://wikipedia.org/wiki/Lempel%E2%80%93Ziv%E2%80%93Markov_chain_algorithm",A.inputType="ArrayBuffer",A.outputType="ArrayBuffer",A}return E(e,A),a(e,[{key:"run",value:(t=r(Q().mark(function A(e,t){return Q().wrap(function(A){for(;;)switch(A.prev=A.next){case 0:return A.abrupt("return",new Promise(function(A,t){II(new Uint8Array(e),function(e,I){I&&t(new F(`Failed to decompress input: ${I.message}`)),A("string"==typeof e?N.strToArrayBuffer(e):new Int8Array(e).buffer)},function(A){Y()&&self.sendStatusMessage(`Decompressing input: ${(100*A).toFixed(2)}%`)})}));case 1:case"end":return A.stop()}},A)})),function(A,e){return t.apply(this,arguments)})}]);var t}(VA);function CI(A){for(var e=0;A>=16;)A>>=1,e+=1;return e}function BI(){try{var A=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(A){}return(BI=function(){return!!A})()}var sI=function(A){function e(){var A,t,I,r;return i(this,e),t=this,I=B(I=e),(A=C(t,BI()?Reflect.construct(I,[],B(t).constructor):I.apply(t,r))).name="LZNT1 Decompress",A.module="Compression",A.description="Decompresses data using the LZNT1 algorithm.

Similar to the Windows API RtlDecompressBuffer.",A.infoURL="https://learn.microsoft.com/en-us/openspecs/windows_protocols/ms-xca/5655f4a3-6ba4-489b-959f-e1f407c52f15",A.inputType="byteArray",A.outputType="byteArray",A.args=[],A}return E(e,A),a(e,[{key:"run",value:function(A,e){return function(A){for(var e=Array(),t=0;t+2<=A.length;){var I=e.length,r=N.byteArrayToInt(A.slice(t,t+2),"little"),i=4095&r,g=(t+=2)+i+1;if(0===i)break;if(A.length>12-C),s=2+(a&4095>>C),E=e.length-B,h=0;h>=1}else e.push.apply(e,c(A.slice(t,t+i+1))),t+=i+1}return e}(A)}}])}(VA);const EI=sI;var hI=__webpack_require__(32992),QI=__webpack_require__.n(hI),cI=["default","UTF16","Base64"],uI={default:QI().compress,UTF16:QI().compressToUTF16,Base64:QI().compressToBase64},fI={default:QI().decompress,UTF16:QI().decompressFromUTF16,Base64:QI().decompressFromBase64};function lI(){try{var A=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(A){}return(lI=function(){return!!A})()}var yI=function(A){function e(){var A,t,I,r;return i(this,e),t=this,I=B(I=e),(A=C(t,lI()?Reflect.construct(I,[],B(t).constructor):I.apply(t,r))).name="LZString Compress",A.module="Compression",A.description="Compress the input with lz-string.",A.infoURL="https://pieroxy.net/blog/pages/lz-string/index.html",A.inputType="string",A.outputType="string",A.args=[{name:"Compression Format",type:"option",defaultIndex:0,value:cI}],A}return E(e,A),a(e,[{key:"run",value:function(A,e){var t=uI[e[0]];if(t)return t(A);throw new F("Unable to find compression function")}}])}(VA);const pI=yI;function wI(){try{var A=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(A){}return(wI=function(){return!!A})()}var dI=function(A){function e(){var A,t,I,r;return i(this,e),t=this,I=B(I=e),(A=C(t,wI()?Reflect.construct(I,[],B(t).constructor):I.apply(t,r))).name="LZString Decompress",A.module="Compression",A.description="Decompresses data that was compressed with lz-string.",A.infoURL="https://pieroxy.net/blog/pages/lz-string/index.html",A.inputType="string",A.outputType="string",A.args=[{name:"Compression Format",type:"option",defaultIndex:0,value:cI}],A}return E(e,A),a(e,[{key:"run",value:function(A,e){var t=fI[e[0]];if(t)return t(A);throw new F("Unable to find decompression function")}}])}(VA);const FI=dI;var DI=__webpack_require__(70234);function mI(){try{var A=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(A){}return(mI=function(){return!!A})()}var SI=__webpack_require__.n(DI)().Zlib,UI={"Fixed Huffman Coding":SI.RawDeflate.CompressionType.FIXED,"Dynamic Huffman Coding":SI.RawDeflate.CompressionType.DYNAMIC,"None (Store)":SI.RawDeflate.CompressionType.NONE};const kI=function(A){function e(){var A,t,I,r;return i(this,e),t=this,I=B(I=e),(A=C(t,mI()?Reflect.construct(I,[],B(t).constructor):I.apply(t,r))).name="Raw Deflate",A.module="Compression",A.description="Compresses data using the deflate algorithm with no headers.",A.infoURL="https://wikipedia.org/wiki/DEFLATE",A.inputType="ArrayBuffer",A.outputType="ArrayBuffer",A.args=[{name:"Compression type",type:"option",value:ie}],A}return E(e,A),a(e,[{key:"run",value:function(A,e){var t=new SI.RawDeflate(new Uint8Array(A),{compressionType:UI[e[0]]});return new Uint8Array(t.compress()).buffer}}])}(VA);var GI=__webpack_require__(22446);function vI(){try{var A=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(A){}return(vI=function(){return!!A})()}var bI=__webpack_require__.n(GI)().Zlib,MI={Adaptive:bI.RawInflate.BufferType.ADAPTIVE,Block:bI.RawInflate.BufferType.BLOCK};const RI=function(A){function e(){var A,t,I,r;return i(this,e),t=this,I=B(I=e),(A=C(t,vI()?Reflect.construct(I,[],B(t).constructor):I.apply(t,r))).name="Raw Inflate",A.module="Compression",A.description="Decompresses data which has been compressed using the deflate algorithm with no headers.",A.infoURL="https://wikipedia.org/wiki/DEFLATE",A.inputType="ArrayBuffer",A.outputType="ArrayBuffer",A.args=[{name:"Start index",type:"number",value:0},{name:"Initial output buffer size",type:"number",value:0},{name:"Buffer expansion type",type:"option",value:ge},{name:"Resize buffer after decompression",type:"boolean",value:!1},{name:"Verify result",type:"boolean",value:!1}],A.checks=[{entropyRange:[7.5,8],args:[0,0,ge,!1,!1]}],A}return E(e,A),a(e,[{key:"run",value:function(A,e){var t=new bI.RawInflate(new Uint8Array(A),{index:e[0],bufferSize:e[1],bufferType:MI[e[2]],resize:e[3],verify:e[4]});return new Uint8Array(t.decompress()).buffer}}])}(VA);function YI(){try{var A=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(A){}return(YI=function(){return!!A})()}var NI=function(A){function e(){var A,t,I,r;return i(this,e),t=this,I=B(I=e),(A=C(t,YI()?Reflect.construct(I,[],B(t).constructor):I.apply(t,r))).name="Tar",A.module="Compression",A.description="Packs the input into a tarball.

No support for multiple files at this time.",A.infoURL="https://wikipedia.org/wiki/Tar_(computing)",A.inputType="ArrayBuffer",A.outputType="File",A.args=[{name:"Filename",type:"string",value:"file.txt"}],A}return E(e,A),a(e,[{key:"run",value:function(A,e){A=new Uint8Array(A);var t=function(){this.bytes=new Array(512),this.position=0};t.prototype.addEmptyBlock=function(){var A=new Array(512);A.fill(0),this.bytes=this.bytes.concat(A)},t.prototype.writeBytes=function(A){var e=this;this.position+A.length>this.bytes.length&&this.addEmptyBlock(),Array.prototype.forEach.call(A,function(A,t){void 0!==A.charCodeAt&&(A=A.charCodeAt()),e.bytes[e.position]=A,e.position+=1})},t.prototype.writeEndBlocks=function(){for(var A=0;A<2;A++)this.addEmptyBlock()};var I=A.length.toString(8).padStart(11,"0"),r=Math.floor(Date.now()/1e3).toString(8).padStart(11,"0"),i={fileName:N.padBytesRight(e[0],100),fileMode:N.padBytesRight("0000664",8),ownerUID:N.padBytesRight("0",8),ownerGID:N.padBytesRight("0",8),size:N.padBytesRight(I,12),lastModTime:N.padBytesRight(r,12),checksum:" ",type:"0",linkedFileName:N.padBytesRight("",100),USTARFormat:N.padBytesRight("ustar",6),version:"00",ownerUserName:N.padBytesRight("",32),ownerGroupName:N.padBytesRight("",32),deviceMajor:N.padBytesRight("",8),deviceMinor:N.padBytesRight("",8),fileNamePrefix:N.padBytesRight("",155)},g=0;for(var n in i){var o=i[n];Array.prototype.forEach.call(o,function(A){void 0!==A.charCodeAt?g+=A.charCodeAt():g+=A})}g=N.padBytesRight(g.toString(8).padStart(7,"0"),8),i.checksum=g;var a=new t;return a.writeBytes(i.fileName),a.writeBytes(i.fileMode),a.writeBytes(i.ownerUID),a.writeBytes(i.ownerGID),a.writeBytes(i.size),a.writeBytes(i.lastModTime),a.writeBytes(i.checksum),a.writeBytes(i.type),a.writeBytes(i.linkedFileName),a.writeBytes(i.USTARFormat),a.writeBytes(i.version),a.writeBytes(i.ownerUserName),a.writeBytes(i.ownerGroupName),a.writeBytes(i.deviceMajor),a.writeBytes(i.deviceMinor),a.writeBytes(i.fileNamePrefix),a.writeBytes(N.padBytesRight("",12)),a.writeBytes(A),a.writeEndBlocks(),new File([new Uint8Array(a.bytes)],e[0])}}])}(VA);const LI=NI;function HI(){try{var A=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(A){}return(HI=function(){return!!A})()}const JI=function(A){function e(){var A,t,I,r;return i(this,e),t=this,I=B(I=e),(A=C(t,HI()?Reflect.construct(I,[],B(t).constructor):I.apply(t,r))).name="Untar",A.module="Compression",A.description="Unpacks a tarball and displays it per file.",A.infoURL="https://wikipedia.org/wiki/Tar_(computing)",A.inputType="ArrayBuffer",A.outputType="List",A.presentType="html",A.args=[],A.checks=[{pattern:"^.{257}\\x75\\x73\\x74\\x61\\x72",flags:"",args:[]}],A}return E(e,A),a(e,[{key:"run",value:function(A,e){A=new Uint8Array(A);for(var t=new iA(A),I=[];t.hasMore();){var r=t.position+512,i={fileName:t.readString(100),fileMode:t.readString(8),ownerUID:t.readString(8),ownerGID:t.readString(8),size:parseInt(t.readString(12),8),lastModTime:new Date(1e3*parseInt(t.readString(12),8)),checksum:t.readString(8),type:t.readString(1),linkedFileName:t.readString(100),USTARFormat:t.readString(6).indexOf("ustar")>=0};if(i.USTARFormat&&(i.version=t.readString(2),i.ownerUserName=t.readString(32),i.ownerGroupName=t.readString(32),i.deviceMajor=t.readString(8),i.deviceMinor=t.readString(8),i.filenamePrefix=t.readString(155)),t.position=r,"0"===i.type){var g=t.position+i.size;i.size%512!=0&&(g+=512-i.size%512),i.bytes=t.getBytes(i.size),I.push(new File([new Uint8Array(i.bytes)],i.fileName)),t.position=g}else"5"===i.type&&I.push(new File([new Uint8Array(i.bytes)],i.fileName))}return I}},{key:"present",value:(t=r(Q().mark(function A(e){return Q().wrap(function(A){for(;;)switch(A.prev=A.next){case 0:return A.next=1,N.displayFilesAsHTML(e);case 1:return A.abrupt("return",A.sent);case 2:case"end":return A.stop()}},A)})),function(A){return t.apply(this,arguments)})}]);var t}(VA);var qI=__webpack_require__(47989);function KI(){try{var A=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(A){}return(KI=function(){return!!A})()}var TI=__webpack_require__.n(qI)().Zlib;const xI=function(A){function e(){var A,t,I,r;return i(this,e),t=this,I=B(I=e),(A=C(t,KI()?Reflect.construct(I,[],B(t).constructor):I.apply(t,r))).name="Unzip",A.module="Compression",A.description="Decompresses data using the PKZIP algorithm and displays it per file, with support for passwords.",A.infoURL="https://wikipedia.org/wiki/Zip_(file_format)",A.inputType="ArrayBuffer",A.outputType="List",A.presentType="html",A.args=[{name:"Password",type:"binaryString",value:""},{name:"Verify result",type:"boolean",value:!1}],A.checks=[{pattern:"^\\x50\\x4b(?:\\x03|\\x05|\\x07)(?:\\x04|\\x06|\\x08)",flags:"",args:["",!1]}],A}return E(e,A),a(e,[{key:"run",value:function(A,e){var t={password:N.strToByteArray(e[0]),verify:e[1]},I=new TI.Unzip(new Uint8Array(A),t);return I.getFilenames().map(function(A){var e=I.decompress(A);return new File([e],A)})}},{key:"present",value:(t=r(Q().mark(function A(e){return Q().wrap(function(A){for(;;)switch(A.prev=A.next){case 0:return A.next=1,N.displayFilesAsHTML(e);case 1:return A.abrupt("return",A.sent);case 2:case"end":return A.stop()}},A)})),function(A){return t.apply(this,arguments)})}]);var t}(VA);var _I=__webpack_require__(4808);function VI(){try{var A=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(A){}return(VI=function(){return!!A})()}var WI=__webpack_require__.n(_I)().Zlib,OI={Deflate:WI.Zip.CompressionMethod.DEFLATE,"None (Store)":WI.Zip.CompressionMethod.STORE},PI={MSDOS:WI.Zip.OperatingSystem.MSDOS,Unix:WI.Zip.OperatingSystem.UNIX,Macintosh:WI.Zip.OperatingSystem.MACINTOSH};const ZI=function(A){function e(){var A,t,I,r;return i(this,e),t=this,I=B(I=e),(A=C(t,VI()?Reflect.construct(I,[],B(t).constructor):I.apply(t,r))).name="Zip",A.module="Compression",A.description="Compresses data using the PKZIP algorithm with the given filename.

No support for multiple files at this time.",A.infoURL="https://wikipedia.org/wiki/Zip_(file_format)",A.inputType="ArrayBuffer",A.outputType="File",A.args=[{name:"Filename",type:"string",value:"file.txt"},{name:"Comment",type:"string",value:""},{name:"Password",type:"binaryString",value:""},{name:"Compression method",type:"option",value:["Deflate","None (Store)"]},{name:"Operating system",type:"option",value:["MSDOS","Unix","Macintosh"]},{name:"Compression type",type:"option",value:ie}],A}return E(e,A),a(e,[{key:"run",value:function(A,e){var t=e[0],I=N.strToByteArray(e[2]),r={filename:N.strToByteArray(t),comment:N.strToByteArray(e[1]),compressionMethod:OI[e[3]],os:PI[e[4]],deflateOption:{compressionType:ne[e[5]]}},i=new WI.Zip;return I.length&&i.setPassword(I),i.addFile(new Uint8Array(A),r),new File([i.compress()],t)}}])}(VA);function jI(){try{var A=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(A){}return(jI=function(){return!!A})()}var XI=Ie().Zlib;const zI=function(A){function e(){var A,t,I,r;return i(this,e),t=this,I=B(I=e),(A=C(t,jI()?Reflect.construct(I,[],B(t).constructor):I.apply(t,r))).name="Zlib Deflate",A.module="Compression",A.description="Compresses data using the deflate algorithm adding zlib headers.",A.infoURL="https://wikipedia.org/wiki/Zlib",A.inputType="ArrayBuffer",A.outputType="ArrayBuffer",A.args=[{name:"Compression type",type:"option",value:ie}],A}return E(e,A),a(e,[{key:"run",value:function(A,e){var t=new XI.Deflate(new Uint8Array(A),{compressionType:ne[e[0]]});return new Uint8Array(t.compress()).buffer}}])}(VA);function $I(){try{var A=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(A){}return($I=function(){return!!A})()}var Ar=Ie().Zlib,er={Adaptive:Ar.Inflate.BufferType.ADAPTIVE,Block:Ar.Inflate.BufferType.BLOCK};const tr=function(A){function e(){var A,t,I,r;return i(this,e),t=this,I=B(I=e),(A=C(t,$I()?Reflect.construct(I,[],B(t).constructor):I.apply(t,r))).name="Zlib Inflate",A.module="Compression",A.description="Decompresses data which has been compressed using the deflate algorithm with zlib headers.",A.infoURL="https://wikipedia.org/wiki/Zlib",A.inputType="ArrayBuffer",A.outputType="ArrayBuffer",A.args=[{name:"Start index",type:"number",value:0},{name:"Initial output buffer size",type:"number",value:0},{name:"Buffer expansion type",type:"option",value:ge},{name:"Resize buffer after decompression",type:"boolean",value:!1},{name:"Verify result",type:"boolean",value:!1}],A.checks=[{pattern:"^\\x78(\\x01|\\x9c|\\xda|\\x5e)",flags:"",args:[0,0,"Adaptive",!1,!1]}],A}return E(e,A),a(e,[{key:"run",value:function(A,e){var t=new Ar.Inflate(new Uint8Array(A),{index:e[0],bufferSize:e[1],bufferType:er[e[2]],resize:e[3],verify:e[4]});return new Uint8Array(t.decompress()).buffer}}])}(VA);("undefined"==typeof self?{}:self.OpModules||{}).Compression={"Bzip2 Compress":ZA,"Bzip2 Decompress":XA,Gunzip:ee,Gzip:Be,"LZ4 Compress":he,"LZ4 Decompress":ce,"LZMA Compress":nI,"LZMA Decompress":aI,"LZNT1 Decompress":EI,"LZString Compress":pI,"LZString Decompress":FI,"Raw Deflate":kI,"Raw Inflate":RI,Tar:LI,Untar:JI,Unzip:xI,Zip:ZI,"Zlib Deflate":zI,"Zlib Inflate":tr}})()})();