🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

fflate

Package Overview
Dependencies
Maintainers
1
Versions
58
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fflate - npm Package Compare versions

Comparing version
0.5.3
to
0.5.4
+2
-2
CHANGELOG.md

@@ -1,3 +0,3 @@

## 0.5.3
- Fixed issues with importing for workers on Node
## 0.5.4
- Fix buffer over-read for Zip64 extra fields
## 0.5.0

@@ -4,0 +4,0 @@ - Add streaming ZIP, UNZIP

@@ -57,3 +57,3 @@ /**

*/
export declare type FlateStreamHandler = (data: Uint8Array, final: boolean) => void;
export type FlateStreamHandler = (data: Uint8Array, final: boolean) => void;
/**

@@ -65,3 +65,3 @@ * Handler for asynchronous data (de)compression streams

*/
export declare type AsyncFlateStreamHandler = (err: Error, data: Uint8Array, final: boolean) => void;
export type AsyncFlateStreamHandler = (err: Error, data: Uint8Array, final: boolean) => void;
/**

@@ -72,3 +72,3 @@ * Callback for asynchronous (de)compression methods

*/
export declare type FlateCallback = (err: Error | string, data: Uint8Array) => void;
export type FlateCallback = (err: Error | string, data: Uint8Array) => void;
interface AsyncOptions {

@@ -705,7 +705,7 @@ /**

*/
export declare type ZippableFile = Uint8Array | [Uint8Array, ZipOptions];
export type ZippableFile = Uint8Array | [Uint8Array, ZipOptions];
/**
* A file that can be used to asynchronously create a ZIP archive
*/
export declare type AsyncZippableFile = Uint8Array | [Uint8Array, AsyncZipOptions];
export type AsyncZippableFile = Uint8Array | [Uint8Array, AsyncZipOptions];
/**

@@ -735,3 +735,3 @@ * The complete directory structure of a ZIPpable archive

*/
export declare type StringStreamHandler = (data: string, final: boolean) => void;
export type StringStreamHandler = (data: string, final: boolean) => void;
/**

@@ -742,3 +742,3 @@ * Callback for asynchronous ZIP decompression

*/
export declare type UnzipCallback = (err: Error | string, data: Unzipped) => void;
export type UnzipCallback = (err: Error | string, data: Unzipped) => void;
/**

@@ -750,3 +750,3 @@ * Handler for streaming ZIP decompression

*/
export declare type UnzipFileHandler = (err: Error | string, name: string, file: UnzipFile) => void;
export type UnzipFileHandler = (err: Error | string, name: string, file: UnzipFile) => void;
/**

@@ -753,0 +753,0 @@ * Streaming UTF-8 decoding

@@ -5,12 +5,8 @@ "use strict";

var Worker;
var workerAdd = ";var __w=require('worker_threads');__w.parentPort.on('message',function(m){onmessage({data:m})}),postMessage=function(m,t){__w.parentPort.postMessage(m,t)},close=process.exit;self=global";
try {
Worker = require('worker_threads').Worker;
Worker = /*#__PURE__*/ require('worker_threads').Worker;
}
catch (e) { }
var workerAdd = ";var __w=require('worker_threads');__w.parentPort.on('message',function(m){onmessage({data:m})}),postMessage=function(m,t){__w.parentPort.postMessage(m,t)},close=process.exit;self=global";
var NOP = function () { };
var fw = {
terminate: NOP,
postMessage: NOP
};
catch (e) {
}
exports["default"] = Worker ? function (c, _, msg, transfer, cb) {

@@ -31,7 +27,9 @@ var done = false;

return w;
} : function (_, __, ____, _____, cb) {
setImmediate(function () {
cb(new Error('async operations unsupported - update to Node 12+ (or Node 10-11 with the --experimental-worker CLI flag)'), null);
});
return fw;
} : function (_, __, ___, ____, cb) {
setImmediate(function () { return cb(new Error('async operations unsupported - update to Node 12+ (or Node 10-11 with the --experimental-worker CLI flag)'), null); });
var NOP = function () { };
return {
terminate: NOP,
postMessage: NOP
};
};

@@ -7,6 +7,6 @@ "use strict";

var w = new Worker(u);
w.onerror = function (e) { cb(e.error, null); };
w.onmessage = function (e) { cb(null, e.data); };
w.onerror = function (e) { return cb(e.error, null); };
w.onmessage = function (e) { return cb(null, e.data); };
w.postMessage(msg, transfer);
return w;
});
{
"name": "fflate",
"version": "0.5.3",
"version": "0.5.4",
"description": "High performance (de)compression in an 8kB package",

@@ -15,8 +15,15 @@ "main": "./lib/index.js",

"exports": {
"node": {
".": {
"node": "./esm/index.mjs",
"require": "./lib/index.js",
"default": "./esm/browser.js"
},
"./node": {
"import": "./esm/index.mjs",
"require": "./lib/node.js"
},
"import": "./esm/browser.js",
"require": "./lib/browser.js"
"./browser": {
"import": "./esm/browser.js",
"require": "./lib/browser.js"
}
},

@@ -57,11 +64,11 @@ "targets": {

"scripts": {
"build": "yarn build:lib && yarn build:docs && yarn build:demo",
"build": "npm run build:lib && npm run build:docs && npm run build:demo",
"script": "node -r ts-node/register scripts/$SC.ts",
"build:lib": "tsc && tsc --project tsconfig.esm.json && yarn build:rewrite && yarn build:umd",
"build:umd": "SC=buildUMD yarn script",
"build:rewrite": "SC=rewriteBuilds yarn script",
"build:demo": "tsc --project tsconfig.demo.json && parcel build demo/index.html --public-url \"./\" && SC=cpGHPages yarn script",
"build:lib": "tsc && tsc --project tsconfig.esm.json && npm run build:umd && npm run build:rewrite",
"build:umd": "SC=buildUMD npm run script",
"build:rewrite": "SC=rewriteBuilds npm run script",
"build:demo": "tsc --project tsconfig.demo.json && parcel build demo/index.html --public-url \"./\" && SC=cpGHPages npm run script",
"build:docs": "typedoc --mode library --plugin typedoc-plugin-markdown --hideProjectName --hideBreadcrumbs --readme none --disableSources --excludePrivate --excludeProtected --out docs/ src/index.ts",
"test": "TS_NODE_PROJECT=test/tsconfig.json uvu -b -r ts-node/register test",
"prepack": "yarn build && yarn test"
"prepack": "npm run build && npm run test"
},

@@ -68,0 +75,0 @@ "devDependencies": {

@@ -69,3 +69,3 @@ # fflate

If your ESM environment doesn't support bundling or is an older version of Node:
If your environment doesn't support bundling:
```js

@@ -76,3 +76,3 @@ // Again, try to import just what you need

import * as fflate from 'fflate/esm/browser.js';
// If the standard ESM import fails on Node:
// If for some reason the standard ESM import fails on Node:
import * as fflate from 'fflate/esm/index.mjs';

@@ -79,0 +79,0 @@ ```

@@ -1,1 +0,1 @@

!function(f){typeof module!='undefined'&&typeof exports=='object'?module.exports=f():typeof define!='undefined'&&define.amd?define(['fflate',f]):(typeof self!='undefined'?self:this).fflate=f()}(function(){var _e={};"use strict";_e.__esModule=!0;var t=(typeof module!='undefined'&&typeof exports=='object'?function(_f){"use strict";var e;try{e=require("worker_threads").Worker}catch(e){}var t=";var __w=require('worker_threads');__w.parentPort.on('message',function(m){onmessage({data:m})}),postMessage=function(m,t){__w.parentPort.postMessage(m,t)},close=process.exit;self=global",r=function(){},n={terminate:r,postMessage:r};_f.default=e?function(r,n,o,s,a){var u=!1,i=new e(r+t,{eval:!0}).on("error",(function(e){return a(e,null)})).on("message",(function(e){return a(null,e)})).on("exit",(function(e){e&&!u&&a(Error("exited with code "+e),null)}));return i.postMessage(o,s),i.terminate=function(){return u=!0,e.prototype.terminate.call(i)},i}:function(e,t,r,o,s){return setImmediate((function(){s(Error("async operations unsupported - update to Node 12+ (or Node 10-11 with the --experimental-worker CLI flag)"),null)})),n};return _f}:function(_f){"use strict";var e={};_f.default=function(r,t,n,o,s){var a=e[t]||(e[t]=URL.createObjectURL(new Blob([r],{type:"text/javascript"}))),u=new Worker(a);return u.onerror=function(e){s(e.error,null)},u.onmessage=function(e){s(null,e.data)},u.postMessage(n,o),u};return _f})({}),n=Uint8Array,r=Uint16Array,e=Uint32Array,i=new n([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,0]),o=new n([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,0,0]),a=new n([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),s=function(t,n){for(var i=new r(31),o=0;o<31;++o)i[o]=n+=1<<t[o-1];var a=new e(i[30]);for(o=1;o<30;++o)for(var s=i[o];s<i[o+1];++s)a[s]=s-i[o]<<5|o;return[i,a]},f=s(i,2),u=f[0],h=f[1];u[28]=258,h[258]=28;for(var c=s(o,0),l=c[0],p=c[1],v=new r(32768),d=0;d<32768;++d){var g=(43690&d)>>>1|(21845&d)<<1;v[d]=((65280&(g=(61680&(g=(52428&g)>>>2|(13107&g)<<2))>>>4|(3855&g)<<4))>>>8|(255&g)<<8)>>>1}var w=function(t,n,e){for(var i=t.length,o=0,a=new r(n);o<i;++o)++a[t[o]-1];var s,f=new r(n);for(o=0;o<n;++o)f[o]=f[o-1]+a[o-1]<<1;if(e){s=new r(1<<n);var u=15-n;for(o=0;o<i;++o)if(t[o])for(var h=o<<4|t[o],c=n-t[o],l=f[t[o]-1]++<<c,p=l|(1<<c)-1;l<=p;++l)s[v[l]>>>u]=h}else for(s=new r(i),o=0;o<i;++o)s[o]=v[f[t[o]-1]++]>>>15-t[o];return s},y=new n(288);for(d=0;d<144;++d)y[d]=8;for(d=144;d<256;++d)y[d]=9;for(d=256;d<280;++d)y[d]=7;for(d=280;d<288;++d)y[d]=8;var m=new n(32);for(d=0;d<32;++d)m[d]=5;var b=w(y,9,0),x=w(y,9,1),z=w(m,5,0),k=w(m,5,1),M=function(t){for(var n=t[0],r=1;r<t.length;++r)t[r]>n&&(n=t[r]);return n},A=function(t,n,r){var e=n/8>>0;return(t[e]|t[e+1]<<8)>>>(7&n)&r},D=function(t,n){var r=n/8>>0;return(t[r]|t[r+1]<<8|t[r+2]<<16)>>>(7&n)},S=function(t){return(t/8>>0)+(7&t&&1)},C=function(t,i,o){(null==i||i<0)&&(i=0),(null==o||o>t.length)&&(o=t.length);var a=new(t instanceof r?r:t instanceof e?e:n)(o-i);return a.set(t.subarray(i,o)),a},U=function(t,r,e){var s=t.length,f=!r||e,h=!e||e.i;e||(e={}),r||(r=new n(3*s));var c=function(t){var e=r.length;if(t>e){var i=new n(Math.max(2*e,t));i.set(r),r=i}},p=e.f||0,v=e.p||0,d=e.b||0,g=e.l,y=e.d,m=e.m,b=e.n,z=8*s;do{if(!g){e.f=p=A(t,v,1);var U=A(t,v+1,3);if(v+=3,!U){var O=t[(H=S(v)+4)-4]|t[H-3]<<8,T=H+O;if(T>s){if(h)throw"unexpected EOF";break}f&&c(d+O),r.set(t.subarray(H,T),d),e.b=d+=O,e.p=v=8*T;continue}if(1==U)g=x,y=k,m=9,b=5;else{if(2!=U)throw"invalid block type";var Z=A(t,v,31)+257,I=A(t,v+10,15)+4,F=Z+A(t,v+5,31)+1;v+=14;for(var E=new n(F),G=new n(19),P=0;P<I;++P)G[a[P]]=A(t,v+3*P,7);v+=3*I;var _=M(G),j=(1<<_)-1;if(!h&&v+F*(_+7)>z)break;var q=w(G,_,1);for(P=0;P<F;){var H,Y=q[A(t,v,j)];if(v+=15&Y,(H=Y>>>4)<16)E[P++]=H;else{var B=0,J=0;for(16==H?(J=3+A(t,v,3),v+=2,B=E[P-1]):17==H?(J=3+A(t,v,7),v+=3):18==H&&(J=11+A(t,v,127),v+=7);J--;)E[P++]=B}}var K=E.subarray(0,Z),L=E.subarray(Z);m=M(K),b=M(L),g=w(K,m,1),y=w(L,b,1)}if(v>z)throw"unexpected EOF"}f&&c(d+131072);for(var N=(1<<m)-1,Q=(1<<b)-1,R=m+b+18;h||v+R<z;){var V=(B=g[D(t,v)&N])>>>4;if((v+=15&B)>z)throw"unexpected EOF";if(!B)throw"invalid length/literal";if(V<256)r[d++]=V;else{if(256==V){g=null;break}var W=V-254;V>264&&(W=A(t,v,(1<<(tt=i[P=V-257]))-1)+u[P],v+=tt);var X=y[D(t,v)&Q],$=X>>>4;if(!X)throw"invalid distance";if(v+=15&X,L=l[$],$>3){var tt=o[$];L+=D(t,v)&(1<<tt)-1,v+=tt}if(v>z)throw"unexpected EOF";f&&c(d+131072);for(var nt=d+W;d<nt;d+=4)r[d]=r[d-L],r[d+1]=r[d+1-L],r[d+2]=r[d+2-L],r[d+3]=r[d+3-L];d=nt}}e.l=g,e.p=v,e.b=d,g&&(p=1,e.m=m,e.d=y,e.n=b)}while(!p);return d==r.length?r:C(r,0,d)},O=function(t,n,r){var e=n/8>>0;t[e]|=r<<=7&n,t[e+1]|=r>>>8},T=function(t,n,r){var e=n/8>>0;t[e]|=r<<=7&n,t[e+1]|=r>>>8,t[e+2]|=r>>>16},Z=function(t,e){for(var i=[],o=0;o<t.length;++o)t[o]&&i.push({s:o,f:t[o]});var a=i.length,s=i.slice();if(!a)return[new n(0),0];if(1==a){var f=new n(i[0].s+1);return f[i[0].s]=1,[f,1]}i.sort((function(t,n){return t.f-n.f})),i.push({s:-1,f:25001});var u=i[0],h=i[1],c=0,l=1,p=2;for(i[0]={s:-1,f:u.f+h.f,l:u,r:h};l!=a-1;)u=i[i[c].f<i[p].f?c++:p++],h=i[c!=l&&i[c].f<i[p].f?c++:p++],i[l++]={s:-1,f:u.f+h.f,l:u,r:h};var v=s[0].s;for(o=1;o<a;++o)s[o].s>v&&(v=s[o].s);var d=new r(v+1),g=I(i[l-1],d,0);if(g>e){o=0;var w=0,y=g-e,m=1<<y;for(s.sort((function(t,n){return d[n.s]-d[t.s]||t.f-n.f}));o<a;++o){var b=s[o].s;if(!(d[b]>e))break;w+=m-(1<<g-d[b]),d[b]=e}for(w>>>=y;w>0;){var x=s[o].s;d[x]<e?w-=1<<e-d[x]++-1:++o}for(;o>=0&&w;--o){var z=s[o].s;d[z]==e&&(--d[z],++w)}g=e}return[new n(d),g]},I=function(t,n,r){return-1==t.s?Math.max(I(t.l,n,r+1),I(t.r,n,r+1)):n[t.s]=r},F=function(t){for(var n=t.length;n&&!t[--n];);for(var e=new r(++n),i=0,o=t[0],a=1,s=function(t){e[i++]=t},f=1;f<=n;++f)if(t[f]==o&&f!=n)++a;else{if(!o&&a>2){for(;a>138;a-=138)s(32754);a>2&&(s(a>10?a-11<<5|28690:a-3<<5|12305),a=0)}else if(a>3){for(s(o),--a;a>6;a-=6)s(8304);a>2&&(s(a-3<<5|8208),a=0)}for(;a--;)s(o);a=1,o=t[f]}return[e.subarray(0,i),n]},E=function(t,n){for(var r=0,e=0;e<n.length;++e)r+=t[e]*n[e];return r},G=function(t,n,r){var e=r.length,i=S(n+2);t[i]=255&e,t[i+1]=e>>>8,t[i+2]=255^t[i],t[i+3]=255^t[i+1];for(var o=0;o<e;++o)t[i+o+4]=r[o];return 8*(i+4+e)},P=function(t,n,e,s,f,u,h,c,l,p,v){O(n,v++,e),++f[256];for(var d=Z(f,15),g=d[0],x=d[1],k=Z(u,15),M=k[0],A=k[1],D=F(g),S=D[0],C=D[1],U=F(M),I=U[0],P=U[1],_=new r(19),j=0;j<S.length;++j)_[31&S[j]]++;for(j=0;j<I.length;++j)_[31&I[j]]++;for(var q=Z(_,7),H=q[0],Y=q[1],B=19;B>4&&!H[a[B-1]];--B);var J,K,L,N,Q=p+5<<3,R=E(f,y)+E(u,m)+h,V=E(f,g)+E(u,M)+h+14+3*B+E(_,H)+(2*_[16]+3*_[17]+7*_[18]);if(Q<=R&&Q<=V)return G(n,v,t.subarray(l,l+p));if(O(n,v,1+(V<R)),v+=2,V<R){J=w(g,x,0),K=g,L=w(M,A,0),N=M;var W=w(H,Y,0);for(O(n,v,C-257),O(n,v+5,P-1),O(n,v+10,B-4),v+=14,j=0;j<B;++j)O(n,v+3*j,H[a[j]]);v+=3*B;for(var X=[S,I],$=0;$<2;++$){var tt=X[$];for(j=0;j<tt.length;++j)O(n,v,W[nt=31&tt[j]]),v+=H[nt],nt>15&&(O(n,v,tt[j]>>>5&127),v+=tt[j]>>>12)}}else J=b,K=y,L=z,N=m;for(j=0;j<c;++j)if(s[j]>255){var nt;T(n,v,J[257+(nt=s[j]>>>18&31)]),v+=K[nt+257],nt>7&&(O(n,v,s[j]>>>23&31),v+=i[nt]);var rt=31&s[j];T(n,v,L[rt]),v+=N[rt],rt>3&&(T(n,v,s[j]>>>5&8191),v+=o[rt])}else T(n,v,J[s[j]]),v+=K[s[j]];return T(n,v,J[256]),v+K[256]},_=new e([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),j=new n(0),q=function(t,a,s,f,u,c){var l=t.length,v=new n(f+l+5*(1+Math.ceil(l/7e3))+u),d=v.subarray(f,v.length-u),g=0;if(!a||l<8)for(var w=0;w<=l;w+=65535){var y=w+65535;y<l?g=G(d,g,t.subarray(w,y)):(d[w]=c,g=G(d,g,t.subarray(w,l)))}else{for(var m=_[a-1],b=m>>>13,x=8191&m,z=(1<<s)-1,k=new r(32768),M=new r(z+1),A=Math.ceil(s/3),D=2*A,U=function(n){return(t[n]^t[n+1]<<A^t[n+2]<<D)&z},O=new e(25e3),T=new r(288),Z=new r(32),I=0,F=0,E=(w=0,0),q=0,H=0;w<l;++w){var Y=U(w),B=32767&w,J=M[Y];if(k[B]=J,M[Y]=B,q<=w){var K=l-w;if((I>7e3||E>24576)&&K>423){g=P(t,d,0,O,T,Z,F,E,H,w-H,g),E=I=F=0,H=w;for(var L=0;L<286;++L)T[L]=0;for(L=0;L<30;++L)Z[L]=0}var N=2,Q=0,R=x,V=B-J&32767;if(K>2&&Y==U(w-V))for(var W=Math.min(b,K)-1,X=Math.min(32767,w),$=Math.min(258,K);V<=X&&--R&&B!=J;){if(t[w+N]==t[w+N-V]){for(var tt=0;tt<$&&t[w+tt]==t[w+tt-V];++tt);if(tt>N){if(N=tt,Q=V,tt>W)break;var nt=Math.min(V,tt-2),rt=0;for(L=0;L<nt;++L){var et=w-V+L+32768&32767,it=et-k[et]+32768&32767;it>rt&&(rt=it,J=et)}}}V+=(B=J)-(J=k[B])+32768&32767}if(Q){O[E++]=268435456|h[N]<<18|p[Q];var ot=31&h[N],at=31&p[Q];F+=i[ot]+o[at],++T[257+ot],++Z[at],q=w+N,++I}else O[E++]=t[w],++T[t[w]]}}g=P(t,d,c,O,T,Z,F,E,H,w-H,g),!c&&7&g&&(g=G(d,g+1,j))}return C(v,0,f+S(g)+u)},H=function(){for(var t=new e(256),n=0;n<256;++n){for(var r=n,i=9;--i;)r=(1&r&&3988292384)^r>>>1;t[n]=r}return t}(),Y=function(){var t=4294967295;return{p:function(n){for(var r=t,e=0;e<n.length;++e)r=H[255&r^n[e]]^r>>>8;t=r},d:function(){return 4294967295^t}}},B=function(){var t=1,n=0;return{p:function(r){for(var e=t,i=n,o=r.length,a=0;a!=o;){for(var s=Math.min(a+5552,o);a<s;++a)i+=e+=r[a];e%=65521,i%=65521}t=e,n=i},d:function(){return(t>>>8<<16|(255&n)<<8|n>>>8)+2*((255&t)<<23)}}},J=function(t,n,r,e,i){return q(t,null==n.level?6:n.level,null==n.mem?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(t.length)))):12+n.mem,r,e,!i)},K=function(t,n){var r={};for(var e in t)r[e]=t[e];for(var e in n)r[e]=n[e];return r},L=function(t,n,r){for(var e=t(),i=""+t,o=i.slice(i.indexOf("[")+1,i.lastIndexOf("]")).replace(/ /g,"").split(","),a=0;a<e.length;++a){var s=e[a],f=o[a];if("function"==typeof s){n+=";"+f+"=";var u=""+s;if(s.prototype)if(-1!=u.indexOf("[native code]")){var h=u.indexOf(" ",8)+1;n+=u.slice(h,u.indexOf("(",h))}else for(var c in n+=u,s.prototype)n+=";"+f+".prototype."+c+"="+s.prototype[c];else n+=u}else r[f]=s}return[n,r]},N=[],Q=function(t){var i=[];for(var o in t)(t[o]instanceof n||t[o]instanceof r||t[o]instanceof e)&&i.push((t[o]=new t[o].constructor(t[o])).buffer);return i},R=function(n,r,e,i){var o;if(!N[e]){for(var a="",s={},f=n.length-1,u=0;u<f;++u)a=(o=L(n[u],a,s))[0],s=o[1];N[e]=L(n[f],a,s)}var h=K({},N[e][1]);return t.default(N[e][0]+";onmessage=function(e){for(var k in e.data)self[k]=e.data[k];onmessage="+r+"}",e,h,Q(h),i)},V=function(){return[n,r,e,i,o,a,u,l,x,k,v,w,M,A,D,S,C,U,At,rt,et]},W=function(){return[n,r,e,i,o,a,h,p,b,y,z,m,v,_,j,w,O,T,Z,I,F,E,G,P,S,C,q,J,xt,rt]},X=function(){return[ct,vt,ht,Y,H]},$=function(){return[lt,pt]},tt=function(){return[dt,ht,B]},nt=function(){return[gt]},rt=function(t){return postMessage(t,[t.buffer])},et=function(t){return t&&t.size&&new n(t.size)},it=function(t,r,e,i,o,a){var s=R(e,i,o,(function(t,n){s.terminate(),a(t,n)}));return r.consume||(t=new n(t)),s.postMessage([t,r],[t.buffer]),function(){s.terminate()}},ot=function(t){return t.ondata=function(t,n){return postMessage([t,n],[t.buffer])},function(n){return t.push(n.data[0],n.data[1])}},at=function(t,n,r,e,i){var o,a=R(t,e,i,(function(t,r){t?(a.terminate(),n.ondata.call(n,t)):(r[1]&&a.terminate(),n.ondata.call(n,t,r[0],r[1]))}));a.postMessage(r),n.push=function(t,r){if(o)throw"stream finished";if(!n.ondata)throw"no stream handler";a.postMessage([t,o=r],[t.buffer])},n.terminate=function(){a.terminate()}},st=function(t,n){return t[n]|t[n+1]<<8},ft=function(t,n){return(t[n]|t[n+1]<<8|t[n+2]<<16)+2*(t[n+3]<<23)},ut=function(t,n){return ft(t,n)|4294967296*ft(t,n)},ht=function(t,n,r){for(;r;++n)t[n]=r,r>>>=8},ct=function(t,n){var r=n.filename;if(t[0]=31,t[1]=139,t[2]=8,t[8]=n.level<2?4:9==n.level?2:0,t[9]=3,0!=n.mtime&&ht(t,4,Math.floor(new Date(n.mtime||Date.now())/1e3)),r){t[3]=8;for(var e=0;e<=r.length;++e)t[e+10]=r.charCodeAt(e)}},lt=function(t){if(31!=t[0]||139!=t[1]||8!=t[2])throw"invalid gzip data";var n=t[3],r=10;4&n&&(r+=t[10]|2+(t[11]<<8));for(var e=(n>>3&1)+(n>>4&1);e>0;e-=!t[r++]);return r+(2&n)},pt=function(t){var n=t.length;return(t[n-4]|t[n-3]<<8|t[n-2]<<16)+2*(t[n-1]<<23)},vt=function(t){return 10+(t.filename&&t.filename.length+1||0)},dt=function(t,n){var r=n.level,e=0==r?0:r<6?1:9==r?3:2;t[0]=120,t[1]=e<<6|(e?32-2*e:1)},gt=function(t){if(8!=(15&t[0])||t[0]>>>4>7||(t[0]<<8|t[1])%31)throw"invalid zlib data";if(32&t[1])throw"invalid zlib data: preset dictionaries not supported"};function wt(t,n){return n||"function"!=typeof t||(n=t,t={}),this.ondata=n,t}var yt=function(){function t(t,n){n||"function"!=typeof t||(n=t,t={}),this.ondata=n,this.o=t||{}}return t.prototype.p=function(t,n){this.ondata(J(t,this.o,0,0,!n),n)},t.prototype.push=function(t,n){if(this.d)throw"stream finished";if(!this.ondata)throw"no stream handler";this.d=n,this.p(t,n||!1)},t}();_e.Deflate=yt;var mt=function(){return function(t,n){at([W,function(){return[ot,yt]}],this,wt.call(this,t,n),(function(t){var n=new yt(t.data);onmessage=ot(n)}),6)}}();function bt(t,n,r){if(r||(r=n,n={}),"function"!=typeof r)throw"no callback";return it(t,n,[W],(function(t){return rt(xt(t.data[0],t.data[1]))}),0,r)}function xt(t,n){return void 0===n&&(n={}),J(t,n,0,0)}_e.AsyncDeflate=mt,_e.deflate=bt,_e.deflateSync=xt;var zt=function(){function t(t){this.s={},this.p=new n(0),this.ondata=t}return t.prototype.e=function(t){if(this.d)throw"stream finished";if(!this.ondata)throw"no stream handler";var r=this.p.length,e=new n(r+t.length);e.set(this.p),e.set(t,r),this.p=e},t.prototype.c=function(t){this.d=this.s.i=t||!1;var n=this.s.b,r=U(this.p,this.o,this.s);this.ondata(C(r,n,this.s.b),this.d),this.o=C(r,this.s.b-32768),this.s.b=this.o.length,this.p=C(this.p,this.s.p/8>>0),this.s.p&=7},t.prototype.push=function(t,n){this.e(t),this.c(n)},t}();_e.Inflate=zt;var kt=function(){return function(t){this.ondata=t,at([V,function(){return[ot,zt]}],this,0,(function(){var t=new zt;onmessage=ot(t)}),7)}}();function Mt(t,n,r){if(r||(r=n,n={}),"function"!=typeof r)throw"no callback";return it(t,n,[V],(function(t){return rt(At(t.data[0],et(t.data[1])))}),1,r)}function At(t,n){return U(t,n)}_e.AsyncInflate=kt,_e.inflate=Mt,_e.inflateSync=At;var Dt=function(){function t(t,n){this.c=Y(),this.l=0,this.v=1,yt.call(this,t,n)}return t.prototype.push=function(t,n){yt.prototype.push.call(this,t,n)},t.prototype.p=function(t,n){this.c.p(t),this.l+=t.length;var r=J(t,this.o,this.v&&vt(this.o),n&&8,!n);this.v&&(ct(r,this.o),this.v=0),n&&(ht(r,r.length-8,this.c.d()),ht(r,r.length-4,this.l)),this.ondata(r,n)},t}();_e.Gzip=Dt,_e.Compress=Dt;var St=function(){return function(t,n){at([W,X,function(){return[ot,yt,Dt]}],this,wt.call(this,t,n),(function(t){var n=new Dt(t.data);onmessage=ot(n)}),8)}}();function Ct(t,n,r){if(r||(r=n,n={}),"function"!=typeof r)throw"no callback";return it(t,n,[W,X,function(){return[Ut]}],(function(t){return rt(Ut(t.data[0],t.data[1]))}),2,r)}function Ut(t,n){void 0===n&&(n={});var r=Y(),e=t.length;r.p(t);var i=J(t,n,vt(n),8),o=i.length;return ct(i,n),ht(i,o-8,r.d()),ht(i,o-4,e),i}_e.AsyncGzip=St,_e.AsyncCompress=St,_e.gzip=Ct,_e.compress=Ct,_e.gzipSync=Ut,_e.compressSync=Ut;var Ot=function(){function t(t){this.v=1,zt.call(this,t)}return t.prototype.push=function(t,n){if(zt.prototype.e.call(this,t),this.v){var r=lt(this.p);if(r>=this.p.length&&!n)return;this.p=this.p.subarray(r),this.v=0}if(n){if(this.p.length<8)throw"invalid gzip stream";this.p=this.p.subarray(0,-8)}zt.prototype.c.call(this,n)},t}();_e.Gunzip=Ot;var Tt=function(){return function(t){this.ondata=t,at([V,$,function(){return[ot,zt,Ot]}],this,0,(function(){var t=new Ot;onmessage=ot(t)}),9)}}();function Zt(t,n,r){if(r||(r=n,n={}),"function"!=typeof r)throw"no callback";return it(t,n,[V,$,function(){return[It]}],(function(t){return rt(It(t.data[0]))}),3,r)}function It(t,r){return U(t.subarray(lt(t),-8),r||new n(pt(t)))}_e.AsyncGunzip=Tt,_e.gunzip=Zt,_e.gunzipSync=It;var Ft=function(){function t(t,n){this.c=B(),this.v=1,yt.call(this,t,n)}return t.prototype.push=function(t,n){yt.prototype.push.call(this,t,n)},t.prototype.p=function(t,n){this.c.p(t);var r=J(t,this.o,this.v&&2,n&&4,!n);this.v&&(dt(r,this.o),this.v=0),n&&ht(r,r.length-4,this.c.d()),this.ondata(r,n)},t}();_e.Zlib=Ft;var Et=function(){return function(t,n){at([W,tt,function(){return[ot,yt,Ft]}],this,wt.call(this,t,n),(function(t){var n=new Ft(t.data);onmessage=ot(n)}),10)}}();function Gt(t,n,r){if(r||(r=n,n={}),"function"!=typeof r)throw"no callback";return it(t,n,[W,tt,function(){return[Pt]}],(function(t){return rt(Pt(t.data[0],t.data[1]))}),4,r)}function Pt(t,n){void 0===n&&(n={});var r=B();r.p(t);var e=J(t,n,2,4);return dt(e,n),ht(e,e.length-4,r.d()),e}_e.AsyncZlib=Et,_e.zlib=Gt,_e.zlibSync=Pt;var _t=function(){function t(t){this.v=1,zt.call(this,t)}return t.prototype.push=function(t,n){if(zt.prototype.e.call(this,t),this.v){if(this.p.length<2&&!n)return;this.p=this.p.subarray(2),this.v=0}if(n){if(this.p.length<4)throw"invalid zlib stream";this.p=this.p.subarray(0,-4)}zt.prototype.c.call(this,n)},t}();_e.Unzlib=_t;var jt=function(){return function(t){this.ondata=t,at([V,nt,function(){return[ot,zt,_t]}],this,0,(function(){var t=new _t;onmessage=ot(t)}),11)}}();function qt(t,n,r){if(r||(r=n,n={}),"function"!=typeof r)throw"no callback";return it(t,n,[V,nt,function(){return[Ht]}],(function(t){return rt(Ht(t.data[0],et(t.data[1])))}),5,r)}function Ht(t,n){return U((gt(t),t.subarray(2,-4)),n)}_e.AsyncUnzlib=jt,_e.unzlib=qt,_e.unzlibSync=Ht;var Yt=function(){function t(t){this.G=Ot,this.I=zt,this.Z=_t,this.ondata=t}return t.prototype.push=function(t,r){if(!this.ondata)throw"no stream handler";if(this.s)this.s.push(t,r);else{if(this.p&&this.p.length){var e=new n(this.p.length+t.length);e.set(this.p),e.set(t,this.p.length)}else this.p=t;if(this.p.length>2){var i=this,o=function(){i.ondata.apply(i,arguments)};this.s=31==this.p[0]&&139==this.p[1]&&8==this.p[2]?new this.G(o):8!=(15&this.p[0])||this.p[0]>>4>7||(this.p[0]<<8|this.p[1])%31?new this.I(o):new this.Z(o),this.s.push(this.p,r),this.p=null}}},t}();_e.Decompress=Yt;var Bt=function(){function t(t){this.G=Tt,this.I=kt,this.Z=jt,this.ondata=t}return t.prototype.push=function(t,n){Yt.prototype.push.call(this,t,n)},t}();function Jt(t,n,r){if(r||(r=n,n={}),"function"!=typeof r)throw"no callback";return 31==t[0]&&139==t[1]&&8==t[2]?Zt(t,n,r):8!=(15&t[0])||t[0]>>4>7||(t[0]<<8|t[1])%31?Mt(t,n,r):qt(t,n,r)}function Kt(t,n){return 31==t[0]&&139==t[1]&&8==t[2]?It(t,n):8!=(15&t[0])||t[0]>>4>7||(t[0]<<8|t[1])%31?At(t,n):Ht(t,n)}_e.AsyncDecompress=Bt,_e.decompress=Jt,_e.decompressSync=Kt;var Lt=function(t,r,e,i){for(var o in t){var a=t[o],s=r+o;a instanceof n?e[s]=[a,i]:Array.isArray(a)?e[s]=[a[0],K(i,a[1])]:Lt(a,s+"/",e,i)}},Nt="undefined"!=typeof TextEncoder&&new TextEncoder,Qt="undefined"!=typeof TextDecoder&&new TextDecoder,Rt=0;try{Qt.decode(j,{stream:!0}),Rt=1}catch(t){}var Vt=function(t){for(var n="",r=0;;){var e=t[r++],i=(e>127)+(e>223)+(e>239);if(r+i>t.length)return[n,t.slice(r-1)];i?3==i?(e=((15&e)<<18|(63&t[r++])<<12|(63&t[r++])<<6|63&t[r++])-65536,n+=String.fromCharCode(55296|e>>10,56320|1023&e)):n+=String.fromCharCode(1&i?(31&e)<<6|63&t[r++]:(15&e)<<12|(63&t[r++])<<6|63&t[r++]):n+=String.fromCharCode(e)}},Wt=function(){function t(t){this.ondata=t,Rt?this.t=new TextDecoder:this.p=j}return t.prototype.push=function(t,r){if(!this.ondata)throw"no callback";if(r||(r=!1),this.t)return this.ondata(this.t.decode(t,{stream:!r}),r);var e=new n(this.p.length+t.length);e.set(this.p),e.set(t,this.p.length);var i=Vt(e),o=i[0],a=i[1];if(r&&a.length)throw"invalid utf-8 data";this.p=a,this.ondata(o,r)},t}();_e.DecodeUTF8=Wt;var Xt=function(){function t(t){this.ondata=t}return t.prototype.push=function(t,n){if(!this.ondata)throw"no callback";this.ondata($t(t),n||!1)},t}();function $t(t,r){if(r){for(var e=new n(t.length),i=0;i<t.length;++i)e[i]=t.charCodeAt(i);return e}if(Nt)return Nt.encode(t);var o=t.length,a=new n(t.length+(t.length>>1)),s=0,f=function(t){a[s++]=t};for(i=0;i<o;++i){if(s+5>a.length){var u=new n(s+8+(o-i<<1));u.set(a),a=u}var h=t.charCodeAt(i);h<128||r?f(h):h<2048?(f(192|h>>>6),f(128|63&h)):h>55295&&h<57344?(f(240|(h=65536+(1047552&h)|1023&t.charCodeAt(++i))>>>18),f(128|h>>>12&63),f(128|h>>>6&63),f(128|63&h)):(f(224|h>>>12),f(128|h>>>6&63),f(128|63&h))}return C(a,0,s)}function tn(t,n){if(n){for(var r="",e=0;e<t.length;e+=16384)r+=String.fromCharCode.apply(null,t.subarray(e,e+16384));return r}if(Qt)return Qt.decode(t);var i=Vt(t);if(i[1].length)throw"invalid utf-8 data";return i[0]}_e.EncodeUTF8=Xt,_e.strToU8=$t,_e.strFromU8=tn;var nn=function(t){return 1==t?3:t<6?2:9==t?1:0},rn=function(t,n){return n+30+st(t,n+26)+st(t,n+28)},en=function(t,n,r){var e=st(t,n+28),i=tn(t.subarray(n+46,n+46+e),!(2048&st(t,n+8))),o=n+46+e,a=ft(t,n+20),s=r&&4294967295==a?on(t,o):[a,ft(t,n+24),ft(t,n+42)],f=s[0],u=s[1],h=s[2];return[st(t,n+10),f,u,i,o+st(t,n+30)+st(t,n+32),h]},on=function(t,n){for(;1!=st(t,n);n+=4+st(t,n+2));return[ut(t,n+12),ut(t,n+4),ut(t,n+20)]},an=function(t,n,r,e,i,o,a){var s=e.length;ht(t,n,null!=a?33639248:67324752),n+=4,null!=a&&(t[n++]=20,t[n++]=r.os),t[n]=20,n+=2,t[n++]=r.flag<<1|(null==o&&8),t[n++]=i&&8,t[n++]=255&r.compression,t[n++]=r.compression>>8;var f=new Date(null==r.mtime?Date.now():r.mtime),u=f.getFullYear()-1980;if(u<0||u>119)throw"date not in range 1980-2099";return ht(t,n,2*(u<<24)|f.getMonth()+1<<21|f.getDate()<<16|f.getHours()<<11|f.getMinutes()<<5|f.getSeconds()>>>1),n+=4,null!=o&&(ht(t,n,r.crc),ht(t,n+4,o),ht(t,n+8,r.size)),ht(t,n+12,s),n+=16,null!=a&&(ht(t,n+6,r.attrs),ht(t,n+10,a),n+=14),t.set(e,n),n+s},sn=function(t,r){var e=new n(16);return ht(e,0,134695760),ht(e,4,t.crc),ht(e,8,r),ht(e,12,t.size),e},fn=function(t,n,r,e,i){ht(t,n,101010256),ht(t,n+8,r),ht(t,n+10,r),ht(t,n+12,e),ht(t,n+16,i)},un=function(){function t(t){this.filename=t,this.c=Y(),this.size=0,this.compression=0}return t.prototype.process=function(t,n){this.ondata(null,t,n)},t.prototype.push=function(t,n){if(!this.ondata)throw"no callback - add to ZIP archive before pushing";this.c.p(t),this.size+=t.length,n&&(this.crc=this.c.d()),this.process(t,n||!1)},t}();_e.ZipPassThrough=un;var hn=function(){function t(t,n){var r=this;void 0===n&&(n={}),un.call(this,t),this.d=new yt(n,(function(t,n){r.ondata(null,t,n)})),this.compression=8,this.flag=nn(n.level)}return t.prototype.process=function(t,n){try{this.d.push(t,n)}catch(t){this.ondata(t,null,n)}},t.prototype.push=function(t,n){un.prototype.push.call(this,t,n)},t}();_e.ZipDeflate=hn;var cn=function(){function t(t,n){var r=this;void 0===n&&(n={}),un.call(this,t),this.d=new mt(n,(function(t,n,e){r.ondata(t,n,e)})),this.compression=8,this.flag=nn(n.level),this.terminate=this.d.terminate}return t.prototype.process=function(t,n){this.d.push(t,n)},t.prototype.push=function(t,n){un.prototype.push.call(this,t,n)},t}();_e.AsyncZipDeflate=cn;var ln=function(){function t(t){this.ondata=t,this.u=[],this.d=1}return t.prototype.add=function(t){var r=this;if(2&this.d)throw"stream finished";var e=$t(t.filename),i=e.length,o=i!=t.filename.length,a=i+30;if(i>65535)throw"filename too long";var s=new n(a);an(s,0,t,e,o);var f=[s],u=function(){for(var t=0,n=f;t<n.length;t++)r.ondata(null,n[t],!1);f=[]},h=this.d;this.d=0;var c=this.u.length,l=K(t,{f:e,u:o,t:function(){t.terminate&&t.terminate()},r:function(){if(u(),h){var t=r.u[c+1];t?t.r():r.d=1}h=1}}),p=0;t.ondata=function(n,e,i){n?(r.ondata(n,e,i),r.terminate()):(p+=e.length,f.push(e),i?(f.push(sn(t,p)),l.c=p,l.b=a+p+16,l.crc=t.crc,l.size=t.size,h&&l.r(),h=1):h&&u())},this.u.push(l)},t.prototype.end=function(){var t=this;if(2&this.d){if(1&this.d)throw"stream finishing";throw"stream finished"}this.d?this.e():this.u.push({r:function(){1&t.d&&(t.u.splice(-1,1),t.e())},t:function(){}}),this.d=3},t.prototype.e=function(){for(var t=0,r=0,e=0,i=0,o=this.u;i<o.length;i++)e+=46+(u=o[i]).f.length;for(var a=new n(e+22),s=0,f=this.u;s<f.length;s++){var u;an(a,t,u=f[s],u.f,u.u,u.c,r),t+=46+u.f.length,r+=u.b}fn(a,t,this.u.length,e,r),this.ondata(null,a,!0),this.d=2},t.prototype.terminate=function(){for(var t=0,n=this.u;t<n.length;t++)n[t].t();this.d=2},t}();function pn(t,r,e){if(e||(e=r,r={}),"function"!=typeof e)throw"no callback";var i={};Lt(t,"",i,r);var o=Object.keys(i),a=o.length,s=0,f=0,u=a,h=Array(a),c=[],l=function(){for(var t=0;t<c.length;++t)c[t]()},p=function(){var t=new n(f+22),r=s,i=f-s;f=0;for(var o=0;o<u;++o){var a=h[o];try{var c=a.c.length;an(t,f,a,a.f,a.u,c);var l=f+30+a.f.length;t.set(a.c,l),an(t,s,a,a.f,a.u,c,f),s+=46+a.f.length,f=l+c}catch(t){return e(t,null)}}fn(t,s,h.length,i,r),e(null,t)};a||p();for(var v=function(t){var n=o[t],r=i[n],u=r[0],v=r[1],d=Y(),g=u.length;d.p(u);var w=$t(n),y=w.length,m=0==v.level?0:8,b=function(r,i){if(r)l(),e(r,null);else{var o=i.length;h[t]=K(v,{size:g,crc:d.d(),c:i,f:w,u:y!=n.length,compression:m}),s+=30+y+o,f+=76+2*y+o,--a||p()}};if(y>65535&&b("filename too long",null),m)if(g<16e4)try{b(null,xt(u,v))}catch(t){b(t,null)}else c.push(bt(u,v,b));else b(null,u)},d=0;d<u;++d)v(d);return l}function vn(t,r){void 0===r&&(r={});var e={},i=[];Lt(t,"",e,r);var o=0,a=0;for(var s in e){var f=e[s],u=f[0],h=f[1],c=0==h.level?0:8,l=(b=$t(s)).length;if(l>65535)throw"filename too long";var p=c?xt(u,h):u,v=p.length,d=Y();d.p(u),i.push(K(h,{size:u.length,crc:d.d(),c:p,f:b,u:l!=s.length,o:o,compression:c})),o+=30+l+v,a+=76+2*l+v}for(var g=new n(a+22),w=o,y=a-o,m=0;m<i.length;++m){var b;an(g,(b=i[m]).o,b,b.f,b.u,b.c.length),g.set(b.c,b.o+30+b.f.length),an(g,o,b,b.f,b.u,b.c.length,b.o),o+=46+b.f.length}return fn(g,o,i.length,y,w),g}_e.Zip=ln,_e.zip=pn,_e.zipSync=vn;var dn=function(){function t(){}return t.prototype.push=function(t,n){this.ondata(null,t,n)},t.compression=0,t}();_e.UnzipPassThrough=dn;var gn=function(){function t(){var t=this;this.i=new zt((function(n,r){t.ondata(null,n,r)}))}return t.prototype.push=function(t,n){try{this.i.push(t,n)}catch(r){this.ondata(r,t,n)}},t.compression=8,t}();_e.UnzipInflate=gn;var wn=function(){function t(){var t=this;this.i=new kt((function(n,r,e){t.ondata(n,r,e)})),this.terminate=this.i.terminate}return t.prototype.push=function(t,n){this.i.push(C(t,0),n)},t.compression=8,t}();_e.AsyncUnzipInflate=wn;var yn=function(){function t(t){this.onfile=t,this.k=[],this.o={0:dn},this.p=j}return t.prototype.push=function(t,r){var e=this,i=-1==this.c&&this.d;if(this.c&&!i){var o=Math.min(this.c,t.length),a=t.subarray(0,o);this.c-=o,this.d?this.d.push(a,!this.c):this.k[0].push([a,!this.c]),t=t.subarray(o)}if(i||!this.c){var s=0,f=0,u=void 0,h=void 0,c=t.length,l=this.p.length,p=c+l;if(c)l?((h=new Uint8Array(p)).set(this.p),h.set(t,this.p.length)):h=t;else{if(!l)return;h=this.p}this.p=j;for(var v=function(){if(67324752==ft(h,f)){s=1,i&&i.push(j,!0),d.d=null,d.c=0;var t=st(h,f+6),r=st(h,f+8),o=2048&t,a=8&t,c=st(h,f+26),l=st(h,f+28);if(p>f+30+c+l){var v=[];d.k.unshift(v),s=2,u=f;var g=ft(h,f+18),w=tn(h.subarray(f+30,f+=30+c),!o);if(a&&(g=-1),4294967295==g&&(g=on(h,f)[0]),!d.o[r])return d.onfile("unknown compression type "+r,w,null),"break";d.c=g;var y={start:function(){if(!y.ondata)throw"no callback";if(g){var t=new e.o[r];t.ondata=function(t,n,r){y.ondata(t,n,r)};for(var i=0,o=v;i<o.length;i++){var a=o[i];t.push(a[0],a[1])}e.k[0]==v&&(e.d=t)}else y.ondata(null,new n(0),!0)},terminate:function(){e.k[0]==v&&e.d.terminate&&e.d.terminate()}};d.onfile(null,w,y),f+=l}return"break"}},d=this;f<p&&"break"!==v();++f);if(i&&i.push(h.subarray(0,2==s?u-12-(134695760==ft(h,u-12)&&4):f),!!s),2&s)return this.push(h.subarray(f),r);if(1&s&&(this.p=h),r&&(s||this.c))throw"invalid zip file"}},t.prototype.register=function(t){this.o[t.compression]=t},t}();function mn(t,r){if("function"!=typeof r)throw"no callback";for(var e=[],i=function(){for(var t=0;t<e.length;++t)e[t]()},o={},a=t.length-22;101010256!=ft(t,a);--a)if(!a||t.length-a>65558)return void r("invalid zip file",null);var s=st(t,a+8);s||r(null,{});var f=s,u=ft(t,a+16),h=4294967295==u;if(h){if(a=ft(t,a-12),101075792!=ft(t,a))return void r("invalid zip file",null);f=s=ft(t,a+32),u=ft(t,a+48)}for(var c=function(a){var f=en(t,u,h),c=f[0],l=f[1],p=f[2],v=f[3],d=f[4],g=rn(t,f[5]);u=d;var w=function(t,n){t?(i(),r(t,null)):(o[v]=n,--s||r(null,o))};if(c)if(8==c){var y=t.subarray(g,g+l);if(l<32e4)try{w(null,At(y,new n(p)))}catch(t){w(t,null)}else e.push(Mt(y,{size:p},w))}else w("unknown compression type "+c,null);else w(null,C(t,g,g+l))},l=0;l<f;++l)c();return i}function bn(t){for(var r={},e=t.length-22;101010256!=ft(t,e);--e)if(!e||t.length-e>65558)throw"invalid zip file";var i=st(t,e+8);if(!i)return{};var o=ft(t,e+16),a=4294967295==o;if(a){if(e=ft(t,e-12),101075792!=ft(t,e))throw"invalid zip file";i=ft(t,e+32),o=ft(t,e+48)}for(var s=0;s<i;++s){var f=en(t,o,a),u=f[0],h=f[1],c=f[2],l=f[3],p=f[4],v=rn(t,f[5]);if(o=p,u){if(8!=u)throw"unknown compression type "+u;r[l]=At(t.subarray(v,v+h),new n(c))}else r[l]=C(t,v,v+h)}return r}_e.Unzip=yn,_e.unzip=mn,_e.unzipSync=bn;return _e})
!function(f){typeof module!='undefined'&&typeof exports=='object'?module.exports=f():typeof define!='undefined'&&define.amd?define(['fflate',f]):(typeof self!='undefined'?self:this).fflate=f()}(function(){var _e={};"use strict";var t=(typeof module!='undefined'&&typeof exports=='object'?function(_f){"use strict";var e;var r=";var __w=eval('require')('worker_threads');__w.parentPort.on('message',function(m){onmessage({data:m})}),postMessage=function(m,t){__w.parentPort.postMessage(m,t)},close=process.exit;self=global";try{e=require("worker_threads").Worker}catch(e){}_f.default=e?function(t,n,o,s,a){var u=!1,i=new e(t+r,{eval:!0}).on("error",function(e){return a(e,null)}).on("message",function(e){return a(null,e)}).on("exit",function(e){e&&!u&&a(Error("exited with code "+e),null)});return i.postMessage(o,s),i.terminate=function(){return u=!0,e.prototype.terminate.call(i)},i}:function(e,r,t,n,o){setImmediate(function(){return o(Error("async operations unsupported - update to Node 12+ (or Node 10-11 with the --experimental-worker CLI flag)"),null)});var s=function(){};return{terminate:s,postMessage:s}};return _f}:function(_f){"use strict";var e={};_f.default=function(r,t,n,o,s){var u=e[t]||(e[t]=URL.createObjectURL(new Blob([r],{type:"text/javascript"}))),a=new Worker(u);return a.onerror=function(e){return s(e.error,null)},a.onmessage=function(e){return s(null,e.data)},a.postMessage(n,o),a};return _f})({}),n=Uint8Array,r=Uint16Array,e=Uint32Array,i=new n([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,0]),o=new n([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,0,0]),s=new n([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),a=function(t,n){for(var i=new r(31),o=0;o<31;++o)i[o]=n+=1<<t[o-1];var s=new e(i[30]);for(o=1;o<30;++o)for(var a=i[o];a<i[o+1];++a)s[a]=a-i[o]<<5|o;return[i,s]},f=a(i,2),u=f[0],h=f[1];u[28]=258,h[258]=28;for(var c=a(o,0),p=c[0],l=c[1],v=new r(32768),d=0;d<32768;++d){var g=(43690&d)>>>1|(21845&d)<<1;v[d]=((65280&(g=(61680&(g=(52428&g)>>>2|(13107&g)<<2))>>>4|(3855&g)<<4))>>>8|(255&g)<<8)>>>1}var y=function(t,n,e){for(var i=t.length,o=0,s=new r(n);o<i;++o)++s[t[o]-1];var a,f=new r(n);for(o=0;o<n;++o)f[o]=f[o-1]+s[o-1]<<1;if(e){a=new r(1<<n);var u=15-n;for(o=0;o<i;++o)if(t[o])for(var h=o<<4|t[o],c=n-t[o],p=f[t[o]-1]++<<c,l=p|(1<<c)-1;p<=l;++p)a[v[p]>>>u]=h}else for(a=new r(i),o=0;o<i;++o)a[o]=v[f[t[o]-1]++]>>>15-t[o];return a},w=new n(288);for(d=0;d<144;++d)w[d]=8;for(d=144;d<256;++d)w[d]=9;for(d=256;d<280;++d)w[d]=7;for(d=280;d<288;++d)w[d]=8;var x=new n(32);for(d=0;d<32;++d)x[d]=5;var m=y(w,9,0),b=y(w,9,1),z=y(x,5,0),k=y(x,5,1),A=function(t){for(var n=t[0],r=1;r<t.length;++r)t[r]>n&&(n=t[r]);return n},S=function(t,n,r){var e=n/8|0;return(t[e]|t[e+1]<<8)>>>(7&n)&r},U=function(t,n){var r=n/8|0;return(t[r]|t[r+1]<<8|t[r+2]<<16)>>>(7&n)},M=function(t){return(t/8|0)+(7&t&&1)},D=function(t,i,o){(null==i||i<0)&&(i=0),(null==o||o>t.length)&&(o=t.length);var s=new(t instanceof r?r:t instanceof e?e:n)(o-i);return s.set(t.subarray(i,o)),s},C=function(t,r,e){var a=t.length,f=!r||e,h=!e||e.i;e||(e={}),r||(r=new n(3*a));var c=function(t){var e=r.length;if(t>e){var i=new n(Math.max(2*e,t));i.set(r),r=i}},l=e.f||0,v=e.p||0,d=e.b||0,g=e.l,w=e.d,x=e.m,m=e.n,z=8*a;do{if(!g){e.f=l=S(t,v,1);var C=S(t,v+1,3);if(v+=3,!C){var Z=t[(H=M(v)+4)-4]|t[H-3]<<8,T=H+Z;if(T>a){if(h)throw"unexpected EOF";break}f&&c(d+Z),r.set(t.subarray(H,T),d),e.b=d+=Z,e.p=v=8*T;continue}if(1==C)g=b,w=k,x=9,m=5;else{if(2!=C)throw"invalid block type";var I=S(t,v,31)+257,F=S(t,v+10,15)+4,G=I+S(t,v+5,31)+1;v+=14;for(var O=new n(G),E=new n(19),P=0;P<F;++P)E[s[P]]=S(t,v+3*P,7);v+=3*F;var _=A(E),j=(1<<_)-1;if(!h&&v+G*(_+7)>z)break;var q=y(E,_,1);for(P=0;P<G;){var H,Y=q[S(t,v,j)];if(v+=15&Y,(H=Y>>>4)<16)O[P++]=H;else{var B=0,J=0;for(16==H?(J=3+S(t,v,3),v+=2,B=O[P-1]):17==H?(J=3+S(t,v,7),v+=3):18==H&&(J=11+S(t,v,127),v+=7);J--;)O[P++]=B}}var K=O.subarray(0,I),L=O.subarray(I);x=A(K),m=A(L),g=y(K,x,1),w=y(L,m,1)}if(v>z)throw"unexpected EOF"}f&&c(d+131072);for(var N=(1<<x)-1,Q=(1<<m)-1,R=x+m+18;h||v+R<z;){var V=(B=g[U(t,v)&N])>>>4;if((v+=15&B)>z)throw"unexpected EOF";if(!B)throw"invalid length/literal";if(V<256)r[d++]=V;else{if(256==V){g=null;break}var W=V-254;V>264&&(W=S(t,v,(1<<(tt=i[P=V-257]))-1)+u[P],v+=tt);var X=w[U(t,v)&Q],$=X>>>4;if(!X)throw"invalid distance";if(v+=15&X,L=p[$],$>3){var tt=o[$];L+=U(t,v)&(1<<tt)-1,v+=tt}if(v>z)throw"unexpected EOF";f&&c(d+131072);for(var nt=d+W;d<nt;d+=4)r[d]=r[d-L],r[d+1]=r[d+1-L],r[d+2]=r[d+2-L],r[d+3]=r[d+3-L];d=nt}}e.l=g,e.p=v,e.b=d,g&&(l=1,e.m=x,e.d=w,e.n=m)}while(!l);return d==r.length?r:D(r,0,d)},Z=function(t,n,r){var e=n/8|0;t[e]|=r<<=7&n,t[e+1]|=r>>>8},T=function(t,n,r){var e=n/8|0;t[e]|=r<<=7&n,t[e+1]|=r>>>8,t[e+2]|=r>>>16},I=function(t,e){for(var i=[],o=0;o<t.length;++o)t[o]&&i.push({s:o,f:t[o]});var s=i.length,a=i.slice();if(!s)return[new n(0),0];if(1==s){var f=new n(i[0].s+1);return f[i[0].s]=1,[f,1]}i.sort(function(t,n){return t.f-n.f}),i.push({s:-1,f:25001});var u=i[0],h=i[1],c=0,p=1,l=2;for(i[0]={s:-1,f:u.f+h.f,l:u,r:h};p!=s-1;)u=i[i[c].f<i[l].f?c++:l++],h=i[c!=p&&i[c].f<i[l].f?c++:l++],i[p++]={s:-1,f:u.f+h.f,l:u,r:h};var v=a[0].s;for(o=1;o<s;++o)a[o].s>v&&(v=a[o].s);var d=new r(v+1),g=F(i[p-1],d,0);if(g>e){o=0;var y=0,w=g-e,x=1<<w;for(a.sort(function(t,n){return d[n.s]-d[t.s]||t.f-n.f});o<s;++o){var m=a[o].s;if(!(d[m]>e))break;y+=x-(1<<g-d[m]),d[m]=e}for(y>>>=w;y>0;){var b=a[o].s;d[b]<e?y-=1<<e-d[b]++-1:++o}for(;o>=0&&y;--o){var z=a[o].s;d[z]==e&&(--d[z],++y)}g=e}return[new n(d),g]},F=function(t,n,r){return-1==t.s?Math.max(F(t.l,n,r+1),F(t.r,n,r+1)):n[t.s]=r},G=function(t){for(var n=t.length;n&&!t[--n];);for(var e=new r(++n),i=0,o=t[0],s=1,a=function(t){e[i++]=t},f=1;f<=n;++f)if(t[f]==o&&f!=n)++s;else{if(!o&&s>2){for(;s>138;s-=138)a(32754);s>2&&(a(s>10?s-11<<5|28690:s-3<<5|12305),s=0)}else if(s>3){for(a(o),--s;s>6;s-=6)a(8304);s>2&&(a(s-3<<5|8208),s=0)}for(;s--;)a(o);s=1,o=t[f]}return[e.subarray(0,i),n]},O=function(t,n){for(var r=0,e=0;e<n.length;++e)r+=t[e]*n[e];return r},E=function(t,n,r){var e=r.length,i=M(n+2);t[i]=255&e,t[i+1]=e>>>8,t[i+2]=255^t[i],t[i+3]=255^t[i+1];for(var o=0;o<e;++o)t[i+o+4]=r[o];return 8*(i+4+e)},P=function(t,n,e,a,f,u,h,c,p,l,v){Z(n,v++,e),++f[256];for(var d=I(f,15),g=d[0],b=d[1],k=I(u,15),A=k[0],S=k[1],U=G(g),M=U[0],D=U[1],C=G(A),F=C[0],P=C[1],_=new r(19),j=0;j<M.length;++j)_[31&M[j]]++;for(j=0;j<F.length;++j)_[31&F[j]]++;for(var q=I(_,7),H=q[0],Y=q[1],B=19;B>4&&!H[s[B-1]];--B);var J,K,L,N,Q=l+5<<3,R=O(f,w)+O(u,x)+h,V=O(f,g)+O(u,A)+h+14+3*B+O(_,H)+(2*_[16]+3*_[17]+7*_[18]);if(Q<=R&&Q<=V)return E(n,v,t.subarray(p,p+l));if(Z(n,v,1+(V<R)),v+=2,V<R){J=y(g,b,0),K=g,L=y(A,S,0),N=A;var W=y(H,Y,0);for(Z(n,v,D-257),Z(n,v+5,P-1),Z(n,v+10,B-4),v+=14,j=0;j<B;++j)Z(n,v+3*j,H[s[j]]);v+=3*B;for(var X=[M,F],$=0;$<2;++$){var tt=X[$];for(j=0;j<tt.length;++j)Z(n,v,W[nt=31&tt[j]]),v+=H[nt],nt>15&&(Z(n,v,tt[j]>>>5&127),v+=tt[j]>>>12)}}else J=m,K=w,L=z,N=x;for(j=0;j<c;++j)if(a[j]>255){var nt;T(n,v,J[257+(nt=a[j]>>>18&31)]),v+=K[nt+257],nt>7&&(Z(n,v,a[j]>>>23&31),v+=i[nt]);var rt=31&a[j];T(n,v,L[rt]),v+=N[rt],rt>3&&(T(n,v,a[j]>>>5&8191),v+=o[rt])}else T(n,v,J[a[j]]),v+=K[a[j]];return T(n,v,J[256]),v+K[256]},_=new e([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),j=new n(0),q=function(t,s,a,f,u,c){var p=t.length,v=new n(f+p+5*(1+Math.ceil(p/7e3))+u),d=v.subarray(f,v.length-u),g=0;if(!s||p<8)for(var y=0;y<=p;y+=65535){var w=y+65535;w<p?g=E(d,g,t.subarray(y,w)):(d[y]=c,g=E(d,g,t.subarray(y,p)))}else{for(var x=_[s-1],m=x>>>13,b=8191&x,z=(1<<a)-1,k=new r(32768),A=new r(z+1),S=Math.ceil(a/3),U=2*S,C=function(n){return(t[n]^t[n+1]<<S^t[n+2]<<U)&z},Z=new e(25e3),T=new r(288),I=new r(32),F=0,G=0,O=(y=0,0),q=0,H=0;y<p;++y){var Y=C(y),B=32767&y,J=A[Y];if(k[B]=J,A[Y]=B,q<=y){var K=p-y;if((F>7e3||O>24576)&&K>423){g=P(t,d,0,Z,T,I,G,O,H,y-H,g),O=F=G=0,H=y;for(var L=0;L<286;++L)T[L]=0;for(L=0;L<30;++L)I[L]=0}var N=2,Q=0,R=b,V=B-J&32767;if(K>2&&Y==C(y-V))for(var W=Math.min(m,K)-1,X=Math.min(32767,y),$=Math.min(258,K);V<=X&&--R&&B!=J;){if(t[y+N]==t[y+N-V]){for(var tt=0;tt<$&&t[y+tt]==t[y+tt-V];++tt);if(tt>N){if(N=tt,Q=V,tt>W)break;var nt=Math.min(V,tt-2),rt=0;for(L=0;L<nt;++L){var et=y-V+L+32768&32767,it=et-k[et]+32768&32767;it>rt&&(rt=it,J=et)}}}V+=(B=J)-(J=k[B])+32768&32767}if(Q){Z[O++]=268435456|h[N]<<18|l[Q];var ot=31&h[N],st=31&l[Q];G+=i[ot]+o[st],++T[257+ot],++I[st],q=y+N,++F}else Z[O++]=t[y],++T[t[y]]}}g=P(t,d,c,Z,T,I,G,O,H,y-H,g),!c&&7&g&&(g=E(d,g+1,j))}return D(v,0,f+M(g)+u)},H=function(){for(var t=new e(256),n=0;n<256;++n){for(var r=n,i=9;--i;)r=(1&r&&3988292384)^r>>>1;t[n]=r}return t}(),Y=function(){var t=4294967295;return{p:function(n){for(var r=t,e=0;e<n.length;++e)r=H[255&r^n[e]]^r>>>8;t=r},d:function(){return 4294967295^t}}},B=function(){var t=1,n=0;return{p:function(r){for(var e=t,i=n,o=r.length,s=0;s!=o;){for(var a=Math.min(s+5552,o);s<a;++s)i+=e+=r[s];e%=65521,i%=65521}t=e,n=i},d:function(){return(t>>>8<<16|(255&n)<<8|n>>>8)+2*((255&t)<<23)}}},J=function(t,n,r,e,i){return q(t,null==n.level?6:n.level,null==n.mem?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(t.length)))):12+n.mem,r,e,!i)},K=function(t,n){var r={};for(var e in t)r[e]=t[e];for(var e in n)r[e]=n[e];return r},L=function(t,n,r){for(var e=t(),i=""+t,o=i.slice(i.indexOf("[")+1,i.lastIndexOf("]")).replace(/ /g,"").split(","),s=0;s<e.length;++s){var a=e[s],f=o[s];if("function"==typeof a){n+=";"+f+"=";var u=""+a;if(a.prototype)if(-1!=u.indexOf("[native code]")){var h=u.indexOf(" ",8)+1;n+=u.slice(h,u.indexOf("(",h))}else for(var c in n+=u,a.prototype)n+=";"+f+".prototype."+c+"="+a.prototype[c];else n+=u}else r[f]=a}return[n,r]},N=[],Q=function(t){var i=[];for(var o in t)(t[o]instanceof n||t[o]instanceof r||t[o]instanceof e)&&i.push((t[o]=new t[o].constructor(t[o])).buffer);return i},R=function(n,r,e,i){var o;if(!N[e]){for(var s="",a={},f=n.length-1,u=0;u<f;++u)s=(o=L(n[u],s,a))[0],a=o[1];N[e]=L(n[f],s,a)}var h=K({},N[e][1]);return(0,t.default)(N[e][0]+";onmessage=function(e){for(var k in e.data)self[k]=e.data[k];onmessage="+r+"}",e,h,Q(h),i)},V=function(){return[n,r,e,i,o,s,u,p,b,k,v,y,A,S,U,M,D,C,St,rt,et]},W=function(){return[n,r,e,i,o,s,h,l,m,w,z,x,v,_,j,y,Z,T,I,F,G,O,E,P,M,D,q,J,bt,rt]},X=function(){return[ct,vt,ht,Y,H]},$=function(){return[pt,lt]},tt=function(){return[dt,ht,B]},nt=function(){return[gt]},rt=function(t){return postMessage(t,[t.buffer])},et=function(t){return t&&t.size&&new n(t.size)},it=function(t,r,e,i,o,s){var a=R(e,i,o,function(t,n){a.terminate(),s(t,n)});return r.consume||(t=new n(t)),a.postMessage([t,r],[t.buffer]),function(){a.terminate()}},ot=function(t){return t.ondata=function(t,n){return postMessage([t,n],[t.buffer])},function(n){return t.push(n.data[0],n.data[1])}},st=function(t,n,r,e,i){var o,s=R(t,e,i,function(t,r){t?(s.terminate(),n.ondata.call(n,t)):(r[1]&&s.terminate(),n.ondata.call(n,t,r[0],r[1]))});s.postMessage(r),n.push=function(t,r){if(o)throw"stream finished";if(!n.ondata)throw"no stream handler";s.postMessage([t,o=r],[t.buffer])},n.terminate=function(){s.terminate()}},at=function(t,n){return t[n]|t[n+1]<<8},ft=function(t,n){return(t[n]|t[n+1]<<8|t[n+2]<<16)+2*(t[n+3]<<23)},ut=function(t,n){return ft(t,n)|4294967296*ft(t,n)},ht=function(t,n,r){for(;r;++n)t[n]=r,r>>>=8},ct=function(t,n){var r=n.filename;if(t[0]=31,t[1]=139,t[2]=8,t[8]=n.level<2?4:9==n.level?2:0,t[9]=3,0!=n.mtime&&ht(t,4,Math.floor(new Date(n.mtime||Date.now())/1e3)),r){t[3]=8;for(var e=0;e<=r.length;++e)t[e+10]=r.charCodeAt(e)}},pt=function(t){if(31!=t[0]||139!=t[1]||8!=t[2])throw"invalid gzip data";var n=t[3],r=10;4&n&&(r+=t[10]|2+(t[11]<<8));for(var e=(n>>3&1)+(n>>4&1);e>0;e-=!t[r++]);return r+(2&n)},lt=function(t){var n=t.length;return(t[n-4]|t[n-3]<<8|t[n-2]<<16)+2*(t[n-1]<<23)},vt=function(t){return 10+(t.filename&&t.filename.length+1||0)},dt=function(t,n){var r=n.level,e=0==r?0:r<6?1:9==r?3:2;t[0]=120,t[1]=e<<6|(e?32-2*e:1)},gt=function(t){if(8!=(15&t[0])||t[0]>>>4>7||(t[0]<<8|t[1])%31)throw"invalid zlib data";if(32&t[1])throw"invalid zlib data: preset dictionaries not supported"};function yt(t,n){return n||"function"!=typeof t||(n=t,t={}),this.ondata=n,t}var wt=function(){function t(t,n){n||"function"!=typeof t||(n=t,t={}),this.ondata=n,this.o=t||{}}return t.prototype.p=function(t,n){this.ondata(J(t,this.o,0,0,!n),n)},t.prototype.push=function(t,n){if(this.d)throw"stream finished";if(!this.ondata)throw"no stream handler";this.d=n,this.p(t,n||!1)},t}();_e.Deflate=wt;var xt=function(t,n){st([W,function(){return[ot,wt]}],this,yt.call(this,t,n),function(t){var n=new wt(t.data);onmessage=ot(n)},6)};function mt(t,n,r){if(r||(r=n,n={}),"function"!=typeof r)throw"no callback";return it(t,n,[W],function(t){return rt(bt(t.data[0],t.data[1]))},0,r)}function bt(t,n){return void 0===n&&(n={}),J(t,n,0,0)}_e.AsyncDeflate=xt,_e.deflate=mt,_e.deflateSync=bt;var zt=function(){function t(t){this.s={},this.p=new n(0),this.ondata=t}return t.prototype.e=function(t){if(this.d)throw"stream finished";if(!this.ondata)throw"no stream handler";var r=this.p.length,e=new n(r+t.length);e.set(this.p),e.set(t,r),this.p=e},t.prototype.c=function(t){this.d=this.s.i=t||!1;var n=this.s.b,r=C(this.p,this.o,this.s);this.ondata(D(r,n,this.s.b),this.d),this.o=D(r,this.s.b-32768),this.s.b=this.o.length,this.p=D(this.p,this.s.p/8|0),this.s.p&=7},t.prototype.push=function(t,n){this.e(t),this.c(n)},t}();_e.Inflate=zt;var kt=function(t){this.ondata=t,st([V,function(){return[ot,zt]}],this,0,function(){var t=new zt;onmessage=ot(t)},7)};function At(t,n,r){if(r||(r=n,n={}),"function"!=typeof r)throw"no callback";return it(t,n,[V],function(t){return rt(St(t.data[0],et(t.data[1])))},1,r)}function St(t,n){return C(t,n)}_e.AsyncInflate=kt,_e.inflate=At,_e.inflateSync=St;var Ut=function(){function t(t,n){this.c=Y(),this.l=0,this.v=1,wt.call(this,t,n)}return t.prototype.push=function(t,n){wt.prototype.push.call(this,t,n)},t.prototype.p=function(t,n){this.c.p(t),this.l+=t.length;var r=J(t,this.o,this.v&&vt(this.o),n&&8,!n);this.v&&(ct(r,this.o),this.v=0),n&&(ht(r,r.length-8,this.c.d()),ht(r,r.length-4,this.l)),this.ondata(r,n)},t}();_e.Gzip=Ut,_e.Compress=Ut;var Mt=function(t,n){st([W,X,function(){return[ot,wt,Ut]}],this,yt.call(this,t,n),function(t){var n=new Ut(t.data);onmessage=ot(n)},8)};function Dt(t,n,r){if(r||(r=n,n={}),"function"!=typeof r)throw"no callback";return it(t,n,[W,X,function(){return[Ct]}],function(t){return rt(Ct(t.data[0],t.data[1]))},2,r)}function Ct(t,n){void 0===n&&(n={});var r=Y(),e=t.length;r.p(t);var i=J(t,n,vt(n),8),o=i.length;return ct(i,n),ht(i,o-8,r.d()),ht(i,o-4,e),i}_e.AsyncGzip=Mt,_e.AsyncCompress=Mt,_e.gzip=Dt,_e.compress=Dt,_e.gzipSync=Ct,_e.compressSync=Ct;var Zt=function(){function t(t){this.v=1,zt.call(this,t)}return t.prototype.push=function(t,n){if(zt.prototype.e.call(this,t),this.v){var r=pt(this.p);if(r>=this.p.length&&!n)return;this.p=this.p.subarray(r),this.v=0}if(n){if(this.p.length<8)throw"invalid gzip stream";this.p=this.p.subarray(0,-8)}zt.prototype.c.call(this,n)},t}();_e.Gunzip=Zt;var Tt=function(t){this.ondata=t,st([V,$,function(){return[ot,zt,Zt]}],this,0,function(){var t=new Zt;onmessage=ot(t)},9)};function It(t,n,r){if(r||(r=n,n={}),"function"!=typeof r)throw"no callback";return it(t,n,[V,$,function(){return[Ft]}],function(t){return rt(Ft(t.data[0]))},3,r)}function Ft(t,r){return C(t.subarray(pt(t),-8),r||new n(lt(t)))}_e.AsyncGunzip=Tt,_e.gunzip=It,_e.gunzipSync=Ft;var Gt=function(){function t(t,n){this.c=B(),this.v=1,wt.call(this,t,n)}return t.prototype.push=function(t,n){wt.prototype.push.call(this,t,n)},t.prototype.p=function(t,n){this.c.p(t);var r=J(t,this.o,this.v&&2,n&&4,!n);this.v&&(dt(r,this.o),this.v=0),n&&ht(r,r.length-4,this.c.d()),this.ondata(r,n)},t}();_e.Zlib=Gt;var Ot=function(t,n){st([W,tt,function(){return[ot,wt,Gt]}],this,yt.call(this,t,n),function(t){var n=new Gt(t.data);onmessage=ot(n)},10)};function Et(t,n,r){if(r||(r=n,n={}),"function"!=typeof r)throw"no callback";return it(t,n,[W,tt,function(){return[Pt]}],function(t){return rt(Pt(t.data[0],t.data[1]))},4,r)}function Pt(t,n){void 0===n&&(n={});var r=B();r.p(t);var e=J(t,n,2,4);return dt(e,n),ht(e,e.length-4,r.d()),e}_e.AsyncZlib=Ot,_e.zlib=Et,_e.zlibSync=Pt;var _t=function(){function t(t){this.v=1,zt.call(this,t)}return t.prototype.push=function(t,n){if(zt.prototype.e.call(this,t),this.v){if(this.p.length<2&&!n)return;this.p=this.p.subarray(2),this.v=0}if(n){if(this.p.length<4)throw"invalid zlib stream";this.p=this.p.subarray(0,-4)}zt.prototype.c.call(this,n)},t}();_e.Unzlib=_t;var jt=function(t){this.ondata=t,st([V,nt,function(){return[ot,zt,_t]}],this,0,function(){var t=new _t;onmessage=ot(t)},11)};function qt(t,n,r){if(r||(r=n,n={}),"function"!=typeof r)throw"no callback";return it(t,n,[V,nt,function(){return[Ht]}],function(t){return rt(Ht(t.data[0],et(t.data[1])))},5,r)}function Ht(t,n){return C((gt(t),t.subarray(2,-4)),n)}_e.AsyncUnzlib=jt,_e.unzlib=qt,_e.unzlibSync=Ht;var Yt=function(){function t(t){this.G=Zt,this.I=zt,this.Z=_t,this.ondata=t}return t.prototype.push=function(t,r){if(!this.ondata)throw"no stream handler";if(this.s)this.s.push(t,r);else{if(this.p&&this.p.length){var e=new n(this.p.length+t.length);e.set(this.p),e.set(t,this.p.length)}else this.p=t;if(this.p.length>2){var i=this,o=function(){i.ondata.apply(i,arguments)};this.s=31==this.p[0]&&139==this.p[1]&&8==this.p[2]?new this.G(o):8!=(15&this.p[0])||this.p[0]>>4>7||(this.p[0]<<8|this.p[1])%31?new this.I(o):new this.Z(o),this.s.push(this.p,r),this.p=null}}},t}();_e.Decompress=Yt;var Bt=function(){function t(t){this.G=Tt,this.I=kt,this.Z=jt,this.ondata=t}return t.prototype.push=function(t,n){Yt.prototype.push.call(this,t,n)},t}();function Jt(t,n,r){if(r||(r=n,n={}),"function"!=typeof r)throw"no callback";return 31==t[0]&&139==t[1]&&8==t[2]?It(t,n,r):8!=(15&t[0])||t[0]>>4>7||(t[0]<<8|t[1])%31?At(t,n,r):qt(t,n,r)}function Kt(t,n){return 31==t[0]&&139==t[1]&&8==t[2]?Ft(t,n):8!=(15&t[0])||t[0]>>4>7||(t[0]<<8|t[1])%31?St(t,n):Ht(t,n)}_e.AsyncDecompress=Bt,_e.decompress=Jt,_e.decompressSync=Kt;var Lt=function(t,r,e,i){for(var o in t){var s=t[o],a=r+o;s instanceof n?e[a]=[s,i]:Array.isArray(s)?e[a]=[s[0],K(i,s[1])]:Lt(s,a+"/",e,i)}},Nt="undefined"!=typeof TextEncoder&&new TextEncoder,Qt="undefined"!=typeof TextDecoder&&new TextDecoder,Rt=0;try{Qt.decode(j,{stream:!0}),Rt=1}catch(t){}var Vt=function(t){for(var n="",r=0;;){var e=t[r++],i=(e>127)+(e>223)+(e>239);if(r+i>t.length)return[n,t.slice(r-1)];i?3==i?(e=((15&e)<<18|(63&t[r++])<<12|(63&t[r++])<<6|63&t[r++])-65536,n+=String.fromCharCode(55296|e>>10,56320|1023&e)):n+=String.fromCharCode(1&i?(31&e)<<6|63&t[r++]:(15&e)<<12|(63&t[r++])<<6|63&t[r++]):n+=String.fromCharCode(e)}},Wt=function(){function t(t){this.ondata=t,Rt?this.t=new TextDecoder:this.p=j}return t.prototype.push=function(t,r){if(!this.ondata)throw"no callback";if(r||(r=!1),this.t)return this.ondata(this.t.decode(t,{stream:!r}),r);var e=new n(this.p.length+t.length);e.set(this.p),e.set(t,this.p.length);var i=Vt(e),o=i[0],s=i[1];if(r&&s.length)throw"invalid utf-8 data";this.p=s,this.ondata(o,r)},t}();_e.DecodeUTF8=Wt;var Xt=function(){function t(t){this.ondata=t}return t.prototype.push=function(t,n){if(!this.ondata)throw"no callback";this.ondata($t(t),n||!1)},t}();function $t(t,r){if(r){for(var e=new n(t.length),i=0;i<t.length;++i)e[i]=t.charCodeAt(i);return e}if(Nt)return Nt.encode(t);var o=t.length,s=new n(t.length+(t.length>>1)),a=0,f=function(t){s[a++]=t};for(i=0;i<o;++i){if(a+5>s.length){var u=new n(a+8+(o-i<<1));u.set(s),s=u}var h=t.charCodeAt(i);h<128||r?f(h):h<2048?(f(192|h>>>6),f(128|63&h)):h>55295&&h<57344?(f(240|(h=65536+(1047552&h)|1023&t.charCodeAt(++i))>>>18),f(128|h>>>12&63),f(128|h>>>6&63),f(128|63&h)):(f(224|h>>>12),f(128|h>>>6&63),f(128|63&h))}return D(s,0,a)}function tn(t,n){if(n){for(var r="",e=0;e<t.length;e+=16384)r+=String.fromCharCode.apply(null,t.subarray(e,e+16384));return r}if(Qt)return Qt.decode(t);var i=Vt(t);if(i[1].length)throw"invalid utf-8 data";return i[0]}_e.EncodeUTF8=Xt,_e.strToU8=$t,_e.strFromU8=tn;var nn=function(t){return 1==t?3:t<6?2:9==t?1:0},rn=function(t,n){return n+30+at(t,n+26)+at(t,n+28)},en=function(t,n,r){var e=at(t,n+28),i=at(t,n+30),o=tn(t.subarray(n+46,n+46+e),!(2048&at(t,n+8))),s=n+46+e,a=ft(t,n+20),f=r&&4294967295==a?on(t,s,i):[a,ft(t,n+24),ft(t,n+42)],u=f[0],h=f[1],c=f[2];return[at(t,n+10),u,h,o,s+i+at(t,n+32),c]},on=function(t,n,r){for(var e=n+r;1!=at(t,n);n+=4+at(t,n+2))if(n+4>e)throw"invalid zip file";return[ut(t,n+12),ut(t,n+4),ut(t,n+20)]},sn=function(t,n,r,e,i,o,s){var a=e.length;ht(t,n,null!=s?33639248:67324752),n+=4,null!=s&&(t[n++]=20,t[n++]=r.os),t[n]=20,n+=2,t[n++]=r.flag<<1|(null==o&&8),t[n++]=i&&8,t[n++]=255&r.compression,t[n++]=r.compression>>8;var f=new Date(null==r.mtime?Date.now():r.mtime),u=f.getFullYear()-1980;if(u<0||u>119)throw"date not in range 1980-2099";return ht(t,n,2*(u<<24)|f.getMonth()+1<<21|f.getDate()<<16|f.getHours()<<11|f.getMinutes()<<5|f.getSeconds()>>>1),n+=4,null!=o&&(ht(t,n,r.crc),ht(t,n+4,o),ht(t,n+8,r.size)),ht(t,n+12,a),n+=16,null!=s&&(ht(t,n+6,r.attrs),ht(t,n+10,s),n+=14),t.set(e,n),n+a},an=function(t,r){var e=new n(16);return ht(e,0,134695760),ht(e,4,t.crc),ht(e,8,r),ht(e,12,t.size),e},fn=function(t,n,r,e,i){ht(t,n,101010256),ht(t,n+8,r),ht(t,n+10,r),ht(t,n+12,e),ht(t,n+16,i)},un=function(){function t(t){this.filename=t,this.c=Y(),this.size=0,this.compression=0}return t.prototype.process=function(t,n){this.ondata(null,t,n)},t.prototype.push=function(t,n){if(!this.ondata)throw"no callback - add to ZIP archive before pushing";this.c.p(t),this.size+=t.length,n&&(this.crc=this.c.d()),this.process(t,n||!1)},t}();_e.ZipPassThrough=un;var hn=function(){function t(t,n){void 0===n&&(n={});var r=this;un.call(this,t),this.d=new wt(n,function(t,n){r.ondata(null,t,n)}),this.compression=8,this.flag=nn(n.level)}return t.prototype.process=function(t,n){try{this.d.push(t,n)}catch(t){this.ondata(t,null,n)}},t.prototype.push=function(t,n){un.prototype.push.call(this,t,n)},t}();_e.ZipDeflate=hn;var cn=function(){function t(t,n){void 0===n&&(n={});var r=this;un.call(this,t),this.d=new xt(n,function(t,n,e){r.ondata(t,n,e)}),this.compression=8,this.flag=nn(n.level),this.terminate=this.d.terminate}return t.prototype.process=function(t,n){this.d.push(t,n)},t.prototype.push=function(t,n){un.prototype.push.call(this,t,n)},t}();_e.AsyncZipDeflate=cn;var pn=function(){function t(t){this.ondata=t,this.u=[],this.d=1}return t.prototype.add=function(t){var r=this;if(2&this.d)throw"stream finished";var e=$t(t.filename),i=e.length,o=i!=t.filename.length,s=i+30;if(i>65535)throw"filename too long";var a=new n(s);sn(a,0,t,e,o);var f=[a],u=function(){for(var t=0,n=f;t<n.length;t++)r.ondata(null,n[t],!1);f=[]},h=this.d;this.d=0;var c=this.u.length,p=K(t,{f:e,u:o,t:function(){t.terminate&&t.terminate()},r:function(){if(u(),h){var t=r.u[c+1];t?t.r():r.d=1}h=1}}),l=0;t.ondata=function(n,e,i){n?(r.ondata(n,e,i),r.terminate()):(l+=e.length,f.push(e),i?(f.push(an(t,l)),p.c=l,p.b=s+l+16,p.crc=t.crc,p.size=t.size,h&&p.r(),h=1):h&&u())},this.u.push(p)},t.prototype.end=function(){var t=this;if(2&this.d){if(1&this.d)throw"stream finishing";throw"stream finished"}this.d?this.e():this.u.push({r:function(){1&t.d&&(t.u.splice(-1,1),t.e())},t:function(){}}),this.d=3},t.prototype.e=function(){for(var t=0,r=0,e=0,i=0,o=this.u;i<o.length;i++)e+=46+(u=o[i]).f.length;for(var s=new n(e+22),a=0,f=this.u;a<f.length;a++){var u;sn(s,t,u=f[a],u.f,u.u,u.c,r),t+=46+u.f.length,r+=u.b}fn(s,t,this.u.length,e,r),this.ondata(null,s,!0),this.d=2},t.prototype.terminate=function(){for(var t=0,n=this.u;t<n.length;t++)n[t].t();this.d=2},t}();function ln(t,r,e){if(e||(e=r,r={}),"function"!=typeof e)throw"no callback";var i={};Lt(t,"",i,r);var o=Object.keys(i),s=o.length,a=0,f=0,u=s,h=Array(s),c=[],p=function(){for(var t=0;t<c.length;++t)c[t]()},l=function(){var t=new n(f+22),r=a,i=f-a;f=0;for(var o=0;o<u;++o){var s=h[o];try{var c=s.c.length;sn(t,f,s,s.f,s.u,c);var p=f+30+s.f.length;t.set(s.c,p),sn(t,a,s,s.f,s.u,c,f),a+=46+s.f.length,f=p+c}catch(t){return e(t,null)}}fn(t,a,h.length,i,r),e(null,t)};s||l();for(var v=function(t){var n=o[t],r=i[n],u=r[0],v=r[1],d=Y(),g=u.length;d.p(u);var y=$t(n),w=y.length,x=0==v.level?0:8,m=function(r,i){if(r)p(),e(r,null);else{var o=i.length;h[t]=K(v,{size:g,crc:d.d(),c:i,f:y,u:w!=n.length,compression:x}),a+=30+w+o,f+=76+2*w+o,--s||l()}};if(w>65535&&m("filename too long",null),x)if(g<16e4)try{m(null,bt(u,v))}catch(t){m(t,null)}else c.push(mt(u,v,m));else m(null,u)},d=0;d<u;++d)v(d);return p}function vn(t,r){void 0===r&&(r={});var e={},i=[];Lt(t,"",e,r);var o=0,s=0;for(var a in e){var f=e[a],u=f[0],h=f[1],c=0==h.level?0:8,p=(m=$t(a)).length;if(p>65535)throw"filename too long";var l=c?bt(u,h):u,v=l.length,d=Y();d.p(u),i.push(K(h,{size:u.length,crc:d.d(),c:l,f:m,u:p!=a.length,o:o,compression:c})),o+=30+p+v,s+=76+2*p+v}for(var g=new n(s+22),y=o,w=s-o,x=0;x<i.length;++x){var m;sn(g,(m=i[x]).o,m,m.f,m.u,m.c.length),g.set(m.c,m.o+30+m.f.length),sn(g,o,m,m.f,m.u,m.c.length,m.o),o+=46+m.f.length}return fn(g,o,i.length,w,y),g}_e.Zip=pn,_e.zip=ln,_e.zipSync=vn;var dn=function(){function t(){}return t.prototype.push=function(t,n){this.ondata(null,t,n)},t.compression=0,t}();_e.UnzipPassThrough=dn;var gn=function(){function t(){var t=this;this.i=new zt(function(n,r){t.ondata(null,n,r)})}return t.prototype.push=function(t,n){try{this.i.push(t,n)}catch(r){this.ondata(r,t,n)}},t.compression=8,t}();_e.UnzipInflate=gn;var yn=function(){function t(){var t=this;this.i=new kt(function(n,r,e){t.ondata(n,r,e)}),this.terminate=this.i.terminate}return t.prototype.push=function(t,n){this.i.push(D(t,0),n)},t.compression=8,t}();_e.AsyncUnzipInflate=yn;var wn=function(){function t(t){this.onfile=t,this.k=[],this.o={0:dn},this.p=j}return t.prototype.push=function(t,r){var e=this,i=-1==this.c&&this.d;if(this.c&&!i){var o=Math.min(this.c,t.length),s=t.subarray(0,o);this.c-=o,this.d?this.d.push(s,!this.c):this.k[0].push([s,!this.c]),t=t.subarray(o)}if(i||!this.c){var a=0,f=0,u=void 0,h=void 0,c=t.length,p=this.p.length,l=c+p;if(c)p?((h=new Uint8Array(l)).set(this.p),h.set(t,this.p.length)):h=t;else{if(!p)return;h=this.p}this.p=j;for(var v=function(){if(67324752==ft(h,f)){a=1,i&&i.push(j,!0),d.d=null,d.c=0;var t=at(h,f+6),r=at(h,f+8),o=2048&t,s=8&t,c=at(h,f+26),p=at(h,f+28);if(l>f+30+c+p){var v=[];d.k.unshift(v),a=2,u=f;var g=ft(h,f+18),y=tn(h.subarray(f+30,f+=30+c),!o);if(s&&(g=-1),4294967295==g&&(g=on(h,f,p)[0]),!d.o[r])return d.onfile("unknown compression type "+r,y,null),"break";d.c=g;var w={start:function(){if(!w.ondata)throw"no callback";if(g){var t=new e.o[r];t.ondata=function(t,n,r){w.ondata(t,n,r)};for(var i=0,o=v;i<o.length;i++){var s=o[i];t.push(s[0],s[1])}e.k[0]==v&&(e.d=t)}else w.ondata(null,new n(0),!0)},terminate:function(){e.k[0]==v&&e.d.terminate&&e.d.terminate()}};d.onfile(null,y,w),f+=p}return"break"}},d=this;f<l&&"break"!==v();++f);if(i&&i.push(h.subarray(0,2==a?u-12-(134695760==ft(h,u-12)&&4):f),!!a),2&a)return this.push(h.subarray(f),r);if(1&a&&(this.p=h),r&&(a||this.c))throw"invalid zip file"}},t.prototype.register=function(t){this.o[t.compression]=t},t}();function xn(t,r){if("function"!=typeof r)throw"no callback";for(var e=[],i=function(){for(var t=0;t<e.length;++t)e[t]()},o={},s=t.length-22;101010256!=ft(t,s);--s)if(!s||t.length-s>65558)return void r("invalid zip file",null);var a=at(t,s+8);a||r(null,{});var f=a,u=ft(t,s+16),h=4294967295==u;if(h){if(s=ft(t,s-12),101075792!=ft(t,s))return void r("invalid zip file",null);f=a=ft(t,s+32),u=ft(t,s+48)}for(var c=function(s){var f=en(t,u,h),c=f[0],p=f[1],l=f[2],v=f[3],d=f[4],g=rn(t,f[5]);u=d;var y=function(t,n){t?(i(),r(t,null)):(o[v]=n,--a||r(null,o))};if(c)if(8==c){var w=t.subarray(g,g+p);if(p<32e4)try{y(null,St(w,new n(l)))}catch(t){y(t,null)}else e.push(At(w,{size:l},y))}else y("unknown compression type "+c,null);else y(null,D(t,g,g+p))},p=0;p<f;++p)c();return i}function mn(t){for(var r={},e=t.length-22;101010256!=ft(t,e);--e)if(!e||t.length-e>65558)throw"invalid zip file";var i=at(t,e+8);if(!i)return{};var o=ft(t,e+16),s=4294967295==o;if(s){if(e=ft(t,e-12),101075792!=ft(t,e))throw"invalid zip file";i=ft(t,e+32),o=ft(t,e+48)}for(var a=0;a<i;++a){var f=en(t,o,s),u=f[0],h=f[1],c=f[2],p=f[3],l=f[4],v=rn(t,f[5]);if(o=l,u){if(8!=u)throw"unknown compression type "+u;r[p]=St(t.subarray(v,v+h),new n(c))}else r[p]=D(t,v,v+h)}return r}_e.Unzip=wn,_e.unzip=xn,_e.unzipSync=mn;return _e})
// Mediocre shim
var Worker;
try {
Worker = require('worker_threads').Worker;
}
catch (e) { }
var workerAdd = ";var __w=require('worker_threads');__w.parentPort.on('message',function(m){onmessage({data:m})}),postMessage=function(m,t){__w.parentPort.postMessage(m,t)},close=process.exit;self=global";
var NOP = function () { };
var fw = {
terminate: NOP,
postMessage: NOP
};
module.exports = Worker ? function (c, _, msg, transfer, cb) {
var done = false;
var w = new Worker(c + workerAdd, { eval: true })
.on('error', function (e) { return cb(e, null); })
.on('message', function (m) { return cb(null, m); })
.on('exit', function (c) {
if (c && !done)
cb(new Error('exited with code ' + c), null);
});
w.postMessage(msg, transfer);
w.terminate = function () {
done = true;
return Worker.prototype.terminate.call(w);
};
return w;
} : function (_, __, ____, _____, cb) {
setImmediate(function () {
cb(new Error('async operations unsupported - update to Node 12+ (or Node 10-11 with the --experimental-worker CLI flag)'), null);
});
return fw;
};

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display