Socket
Socket
Sign inDemoInstall

fflate

Package Overview
Dependencies
0
Maintainers
1
Versions
53
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.3.5 to 0.3.6

.parcelrc

2

CHANGELOG.md

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

## 0.3.6
- Allowed true ESM imports
## 0.3.4

@@ -2,0 +4,0 @@ - Fixed rare overflow bug causing corruption

2

lib/index.d.ts

@@ -38,3 +38,3 @@ /**

* When the file was last modified. Defaults to the current time.
* Set this to 0 to avoid specifying a modification date entirely.
* If you're using GZIP, set this to 0 to avoid revealing a modification date entirely.
*/

@@ -41,0 +41,0 @@ mtime?: Date | string | number;

@@ -63,3 +63,3 @@ "use strict";

var i = 0;
// u8 "map": index -> # of codes with bit length = index
// u16 "map": index -> # of codes with bit length = index
var l = new u16(mb);

@@ -709,6 +709,5 @@ // length of cd must be 288 (total # of codes)

;
var gmem = function (len, mem) { return mem == null ? Math.ceil(Math.max(8, Math.min(13, Math.log(len))) * 1.5) : (12 + mem); };
// deflate with opts
var dopt = function (dat, opt, pre, post, st) {
return dflt(dat, opt.level == null ? 6 : opt.level, gmem(dat.length, opt.mem), pre, post, !st);
return dflt(dat, opt.level == null ? 6 : opt.level, opt.mem == null ? Math.ceil(Math.max(8, Math.min(13, Math.log(dat.length))) * 1.5) : (12 + opt.mem), pre, post, !st);
};

@@ -788,3 +787,3 @@ // Walmart object spread

var bInflt = function () { return [u8, u16, fleb, flebmsk, fdeb, fdebmsk, clim, fl, fd, flrm, fdrm, rev, hMap, max, bits, bits16, shft, slc, inflt, inflateSync, pbf, gu8]; };
var bDflt = function () { return [u8, u16, u32, fleb, fdeb, clim, revfl, revfd, flm, flt, fdm, fdt, rev, deo, et, hMap, wbits, wbits16, hTree, ln, lc, clen, wfblk, wblk, shft, slc, dflt, gmem, dopt, deflateSync, pbf]; };
var bDflt = function () { return [u8, u16, u32, fleb, fdeb, clim, revfl, revfd, flm, flt, fdm, fdt, rev, deo, et, hMap, wbits, wbits16, hTree, ln, lc, clen, wfblk, wblk, shft, slc, dflt, dopt, deflateSync, pbf]; };
// gzip extra

@@ -823,3 +822,3 @@ var gze = function () { return [gzh, gzhl, wbytes, crc, crct]; };

if (err)
strm.ondata.call(strm, err);
w.terminate(), strm.ondata.call(strm, err);
else {

@@ -826,0 +825,0 @@ if (dat[1])

@@ -8,3 +8,3 @@ "use strict";

var done = false;
var wk = new worker_threads_1.Worker(c + workerAdd, { eval: true })
var w = new worker_threads_1.Worker(c + workerAdd, { eval: true })
.on('error', function (e) { return cb(e, null); })

@@ -16,8 +16,8 @@ .on('message', function (m) { return cb(null, m); })

});
wk.postMessage(msg, transfer);
wk.terminate = function () {
w.postMessage(msg, transfer);
w.terminate = function () {
done = true;
return worker_threads_1.Worker.prototype.terminate.call(wk);
return worker_threads_1.Worker.prototype.terminate.call(w);
};
return wk;
return w;
});
"use strict";
exports.__esModule = true;
var ch = {};
var ch2 = {};
exports["default"] = (function (c, id, msg, transfer, cb) {
var u = ch[id] || (ch[id] = URL.createObjectURL(new Blob([c], { type: 'text/javascript' })));
var u = ch2[id] || (ch2[id] = URL.createObjectURL(new Blob([c], { type: 'text/javascript' })));
var w = new Worker(u);

@@ -7,0 +7,0 @@ w.onerror = function (e) { return cb(e.error, null); };

{
"name": "fflate",
"version": "0.3.5",
"version": "0.3.6",
"description": "High performance (de)compression in an 8kB package",
"main": "lib/index.js",
"module": "esm/index.js",
"types": "lib/index.d.ts",
"unpkg": "umd/index.js",
"jsdelivr": "umd/index.js",
"main": "./lib/index.js",
"module": "./esm/index.mjs",
"types": "./lib/index.d.ts",
"unpkg": "./umd/index.js",
"jsdelivr": "./umd/index.js",
"browser": {
"./lib/node-worker.js": "./lib/worker.js",
"./esm/node-worker.js": "./esm/worker.js"
"./esm/index.mjs": "./esm/browser.js"
},
"targets": {
"main": false,
"module": false,
"browser": false,
"types": false,
"demo": {
"distDir": "demo"
}
},
"sideEffects": false,

@@ -36,3 +45,3 @@ "repository": "https://github.com/101arrowz/fflate",

"scripts": {
"build": "yarn build:lib && yarn build:docs && yarn build:rewrite",
"build": "yarn build:lib && yarn build:docs && yarn build:rewrite && yarn build:demo",
"script": "node -r ts-node/register scripts/$SC.ts",

@@ -42,2 +51,3 @@ "build:lib": "tsc && tsc --project tsconfig.esm.json && yarn build:umd",

"build:rewrite": "SC=rewriteBuilds yarn script",
"build:demo": "tsc --project tsconfig.demo.json && parcel build src/demo/index.html --dist-dir demo",
"build:docs": "typedoc --mode library --plugin typedoc-plugin-markdown --hideProjectName --hideBreadcrumbs --readme none --disableSources --excludePrivate --excludeProtected --out docs/ src/index.ts",

@@ -54,5 +64,8 @@ "test": "TS_NODE_PROJECT=test/tsconfig.json uvu -b -r ts-node/register test",

"pako": "*",
"parcel": "^2.0.0-nightly.440",
"parcel-config-precache-manifest": "^0.0.3",
"preact": "^10.5.5",
"react": "^17.0.1",
"react-dom": "^17.0.1",
"rmwc": "^6.1.4",
"terser": "^5.3.8",

@@ -66,3 +79,8 @@ "tiny-inflate": "*",

"uzip": "*"
},
"alias": {
"react": "preact/compat",
"react-dom": "preact/compat",
"react-dom/test-utils": "preact/test-utils"
}
}

@@ -7,3 +7,3 @@ # fflate

In addition to the base decompression and compression APIs, `fflate` supports high-speed ZIP compression and decompression for an extra 3 kB. In fact, the compressor, in synchronous mode, compresses both more quickly and with a higher compression ratio than most compression software (even Info-ZIP, a C program), and in asynchronous mode it can utilize multiple threads to achieve over 3x the performance of any other utility.
In addition to the base decompression and compression APIs, `fflate` supports high-speed ZIP file archiving for an extra 3 kB. In fact, the compressor, in synchronous mode, compresses both more quickly and with a higher compression ratio than most compression software (even Info-ZIP, a C program), and in asynchronous mode it can utilize multiple threads to achieve over 3x the performance of any other utility.

@@ -56,6 +56,13 @@ | | `pako` | `tiny-inflate` | `UZIP.js` | `fflate` |

<script src="https://unpkg.com/fflate"></script>
<script src="https://cdn.jsdelivr.net/npm/fflate"></script>
<script src="https://cdn.jsdelivr.net/npm/fflate/umd/index.js"></script>
<!-- Now, the global variable fflate contains the library -->
```
If you want to avoid using build tools entirely:
```js
// This should only ever be done if you have no build tools, otherwise the
// standard ESM import is more stable.
import * as fflate from 'fflate/esm/browser.js';
```
And use:

@@ -62,0 +69,0 @@ ```js

@@ -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";var t=(typeof module!='undefined'&&typeof exports=='object'?function(_f){"use strict";var e=eval('require')("worker_threads"),r=";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";_f.default=function(t,o,n,s,a){var u=!1,i=new e.Worker(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(n,s),i.terminate=function(){return u=!0,e.Worker.prototype.terminate.call(i)},i};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,o=function(t,n){for(var r=0;r<32;++r)n[r]=(1<<t[r])-1;return n},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]),a=o(i,new n(32)),s=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]),f=o(s,new r(32)),u=new n([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),h=function(t,n){for(var o=new r(31),i=0;i<31;++i)o[i]=n+=1<<t[i-1];var a=new e(o[30]);for(i=1;i<30;++i)for(var s=o[i];s<o[i+1];++s)a[s]=s-o[i]<<5|i;return[o,a]},c=h(i,2),l=c[0],p=c[1];l[28]=258,p[258]=28;for(var v=h(s,0),d=v[0],g=v[1],w=new r(32768),x=0;x<32768;++x){var y=(2863311530&x)>>>1|(1431655765&x)<<1;w[x]=((4278255360&(y=(4042322160&(y=(3435973836&y)>>>2|(858993459&y)<<2))>>>4|(252645135&y)<<4))>>>8|(16711935&y)<<8)>>>1}var m=function(t,n,e){for(var o=t.length,i=0,a=new r(n);i<o;++i)++a[t[i]-1];var s,f=new r(n);for(i=0;i<n;++i)f[i]=f[i-1]+a[i-1]<<1;if(e){s=new r(1<<n);var u=15-n;for(i=0;i<o;++i)if(t[i])for(var h=i<<4|t[i],c=n-t[i],l=f[t[i]-1]++<<c,p=l|(1<<c)-1;l<=p;++l)s[w[l]>>>u]=h}else for(s=new r(o),i=0;i<o;++i)s[i]=w[f[t[i]-1]++]>>>15-t[i];return s},b=new n(288);for(x=0;x<144;++x)b[x]=8;for(x=144;x<256;++x)b[x]=9;for(x=256;x<280;++x)b[x]=7;for(x=280;x<288;++x)b[x]=8;var z=new n(32);for(x=0;x<32;++x)z[x]=5;var A=m(b,9,0),S=m(b,9,1),M=m(z,5,0),k=m(z,5,1),C=function(t){for(var n=t[0],r=1;r<t.length;++r)t[r]>n&&(n=t[r]);return n},D=function(t,n,r){var e=n>>>3;return(t[e]|t[e+1]<<8)>>>(7&n)&r},G=function(t,n){var r=n>>>3;return(t[r]|t[r+1]<<8|t[r+2]<<16)>>>(7&n)},U=function(t){return(t>>>3)+(7&t&&1)},O=function(t,n,r){(null==n||n<0)&&(n=0),(null==r||r>t.length)&&(r=t.length);var e=new t.constructor(r-n);return e.set(t.subarray(n,r)),e},F=function(t,r,e){var o=!e||e.i;e||(e={});var h=t.length,c=!r||e;r||(r=new n(3*h));var p=c?function(t){var e=r.length;if(t>e){var o=new n(Math.max(e<<1,t));o.set(r),r=o}}:function(){},v=e.f||0,g=e.p||0,w=e.b||0,x=e.l,y=e.d,b=e.m,z=e.n;if(v&&!x)return r;var A=h<<3;do{if(!x){e.f=v=D(t,g,1);var M=D(t,g+1,3);if(g+=3,!M){var F=t[(K=U(g)+4)-4]|t[K-3]<<8,I=K+F;if(I>h){if(o)throw"unexpected EOF";break}p(w+F),r.set(t.subarray(K,I),w),e.b=w+=F,e.p=g=I<<3;continue}if(1==M)x=S,y=k,b=9,z=5;else{if(2!=M)throw"invalid block type";var Z=D(t,g,31)+257,E=D(t,g+5,31)+1,T=D(t,g+10,15)+4,_=Z+E;g+=14;for(var j=new n(_),q=new n(19),H=0;H<T;++H)q[u[H]]=D(t,g+3*H,7);g+=3*T;var Y=C(q),B=(1<<Y)-1;if(!o&&g+_*(Y+7)>A)break;var J=m(q,Y,1);for(H=0;H<j.length;){var K,L=J[D(t,g,B)];if(g+=15&L,(K=L>>>4)<16)j[H++]=K;else{var N=0,P=0;for(16==K?(P=3+D(t,g,3),g+=2,N=j[H-1]):17==K?(P=3+D(t,g,7),g+=3):18==K&&(P=11+D(t,g,127),g+=7);P--;)j[H++]=N}}var Q=j.subarray(0,Z),R=j.subarray(Z);b=C(Q),z=C(R),x=m(Q,b,1),y=m(R,z,1)}if(g>A)throw"unexpected EOF"}p(w+131072);for(var V=(1<<b)-1,W=(1<<z)-1,X=b+z+18;o||g+X<A;){var $=(N=x[G(t,g)&V])>>>4;if((g+=15&N)>A)throw"unexpected EOF";if(!N)throw"invalid length/literal";if($<256)r[w++]=$;else{if(256==$){x=null;break}var tt=$-254;$>264&&(tt=D(t,g,a[H=$-257])+l[H],g+=i[H]);var nt=y[G(t,g)&W],rt=nt>>>4;if(!nt)throw"invalid distance";if(g+=15&nt,R=d[rt],rt>3&&(R+=G(t,g)&f[rt],g+=s[rt]),g>A)throw"unexpected EOF";p(w+131072);for(var et=w+tt;w<et;)r[w]=r[w++-R],r[w]=r[w++-R],r[w]=r[w++-R];w=et}}e.l=x,e.p=g,e.b=w,x&&(v=1,e.m=b,e.d=y,e.n=z)}while(!v);return w==r.length?r:O(r,0,w)},I=function(t,n,r){var e=n>>>3;t[e]|=r<<=7&n,t[e+1]|=r>>>8},Z=function(t,n,r){var e=n>>>3;t[e]|=r<<=7&n,t[e+1]|=r>>>8,t[e+2]|=r>>>16},E=function(t,e){for(var o=[],i=0;i<t.length;++i)t[i]&&o.push({s:i,f:t[i]});var a=o.length,s=o.slice();if(!a)return[new n(0),0];if(1==a){var f=new n(o[0].s+1);return f[o[0].s]=1,[f,1]}o.sort((function(t,n){return t.f-n.f})),o.push({s:-1,f:25001});var u=o[0],h=o[1],c=0,l=1,p=2;for(o[0]={s:-1,f:u.f+h.f,l:u,r:h};l!=a-1;)u=o[o[c].f<o[p].f?c++:p++],h=o[c!=l&&o[c].f<o[p].f?c++:p++],o[l++]={s:-1,f:u.f+h.f,l:u,r:h};var v=s[0].s;for(i=1;i<a;++i)s[i].s>v&&(v=s[i].s);var d=new r(v+1),g=T(o[l-1],d,0);if(g>e){i=0;var w=0,x=g-e,y=1<<x;for(s.sort((function(t,n){return d[n.s]-d[t.s]||t.f-n.f}));i<a;++i){var m=s[i].s;if(!(d[m]>e))break;w+=y-(1<<g-d[m]),d[m]=e}for(w>>>=x;w>0;){var b=s[i].s;d[b]<e?w-=1<<e-d[b]++-1:++i}for(;i>=0&&w;--i){var z=s[i].s;d[z]==e&&(--d[z],++w)}g=e}return[new n(d),g]},T=function(t,n,r){return-1==t.s?Math.max(T(t.l,n,r+1),T(t.r,n,r+1)):n[t.s]=r},_=function(t){for(var n=t.length;n&&!t[--n];);for(var e=new r(++n),o=0,i=t[0],a=1,s=function(t){e[o++]=t},f=1;f<=n;++f)if(t[f]==i&&f!=n)++a;else{if(!i&&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(i),--a;a>6;a-=6)s(8304);a>2&&(s(a-3<<5|8208),a=0)}for(;a--;)s(i);a=1,i=t[f]}return[e.subarray(0,o),n]},j=function(t,n){for(var r=0,e=0;e<n.length;++e)r+=t[e]*n[e];return r},q=function(t,n,r){var e=r.length,o=U(n+2);t[o]=255&e,t[o+1]=e>>>8,t[o+2]=255^t[o],t[o+3]=255^t[o+1];for(var i=0;i<e;++i)t[o+i+4]=r[i];return o+4+e<<3},H=function(t,n,e,o,a,f,h,c,l,p,v){I(n,v++,e),++a[256];for(var d=E(a,15),g=d[0],w=d[1],x=E(f,15),y=x[0],S=x[1],k=_(g),C=k[0],D=k[1],G=_(y),U=G[0],O=G[1],F=new r(19),T=0;T<C.length;++T)F[31&C[T]]++;for(T=0;T<U.length;++T)F[31&U[T]]++;for(var H=E(F,7),Y=H[0],B=H[1],J=19;J>4&&!Y[u[J-1]];--J);var K,L,N,P,Q=p+5<<3,R=j(a,b)+j(f,z)+h,V=j(a,g)+j(f,y)+h+14+3*J+j(F,Y)+(2*F[16]+3*F[17]+7*F[18]);if(Q<=R&&Q<=V)return q(n,v,t.subarray(l,l+p));if(I(n,v,1+(V<R)),v+=2,V<R){K=m(g,w,0),L=g,N=m(y,S,0),P=y;var W=m(Y,B,0);for(I(n,v,D-257),I(n,v+5,O-1),I(n,v+10,J-4),v+=14,T=0;T<J;++T)I(n,v+3*T,Y[u[T]]);v+=3*J;for(var X=[C,U],$=0;$<2;++$){var tt=X[$];for(T=0;T<tt.length;++T)I(n,v,W[nt=31&tt[T]]),v+=Y[nt],nt>15&&(I(n,v,tt[T]>>>5&127),v+=tt[T]>>>12)}}else K=A,L=b,N=M,P=z;for(T=0;T<c;++T)if(o[T]>255){var nt;Z(n,v,K[257+(nt=o[T]>>>18&31)]),v+=L[nt+257],nt>7&&(I(n,v,o[T]>>>23&31),v+=i[nt]);var rt=31&o[T];Z(n,v,N[rt]),v+=P[rt],rt>3&&(Z(n,v,o[T]>>>5&8191),v+=s[rt])}else Z(n,v,K[o[T]]),v+=L[o[T]];return Z(n,v,K[256]),v+L[256]},Y=new e([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),B=new n(0),J=function(t,o,a,f,u,h){var c=t.length,l=new n(f+c+5*Math.ceil(c/7e3)+u),v=l.subarray(f,l.length-u),d=0;if(!o||c<8)for(var w=0;w<c;w+=65535){var x=w+65535;x<c?d=q(v,d,t.subarray(w,x)):(v[w]=1,d=q(v,d,t.subarray(w,c)))}else{for(var y=Y[o-1],m=y>>>13,b=8191&y,z=(1<<a)-1,A=new r(32768),S=new r(z+1),M=Math.ceil(a/3),k=2*M,C=function(n){return(t[n]^t[n+1]<<M^t[n+2]<<k)&z},D=new e(25e3),G=new r(288),F=new r(32),I=0,Z=0,E=(w=0,0),T=0,_=0;w<c;++w){var j=C(w),J=32767&w,K=S[j];if(A[J]=K,S[j]=J,T<=w){var L=c-w;if((I>7e3||E>24576)&&L>423){d=H(t,v,0,D,G,F,Z,E,_,w-_,d),E=I=Z=0,_=w;for(var N=0;N<286;++N)G[N]=0;for(N=0;N<30;++N)F[N]=0}var P=2,Q=0,R=b,V=J-K&32767;if(L>2&&j==C(w-V))for(var W=Math.min(m,L)-1,X=Math.min(32767,w),$=Math.min(258,L);V<=X&&--R&&J!=K;){if(t[w+P]==t[w+P-V]){for(var tt=0;tt<$&&t[w+tt]==t[w+tt-V];++tt);if(tt>P){if(P=tt,Q=V,tt>W)break;var nt=Math.min(V,tt-2),rt=0;for(N=0;N<nt;++N){var et=w-V+N+32768&32767,ot=et-A[et]+32768&32767;ot>rt&&(rt=ot,K=et)}}}V+=(J=K)-(K=A[J])+32768&32767}if(Q){D[E++]=268435456|p[P]<<18|g[Q];var it=31&p[P],at=31&g[Q];Z+=i[it]+s[at],++G[257+it],++F[at],T=w+P,++I}else D[E++]=t[w],++G[t[w]]}}d=H(t,v,h,D,G,F,Z,E,_,w-_,d),h||(d=q(v,++d,B))}return O(l,0,f+U(d)+u)},K=new e(256);for(x=0;x<256;++x){for(var L=x,N=9;--N;)L=(1&L&&3988292384)^L>>>1;K[x]=L}var P=function(){var t=4294967295;return{p:function(n){for(var r=t,e=0;e<n.length;++e)r=K[255&r^n[e]]^r>>>8;t=r},d:function(){return 4294967295^t}}},Q=function(){var t=1,n=0;return{p:function(r){for(var e=t,o=n,i=r.length,a=0;a!=i;){for(var s=Math.min(a+5552,i);a<s;++a)o+=e+=r[a];e%=65521,o%=65521}t=e,n=o},d:function(){return(255&t)<<24|t>>>8<<16|(255&n)<<8|n>>>8}}},R=function(t,n){return null==n?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(t)))):12+n},V=function(t,n,r,e,o){return J(t,null==n.level?6:n.level,R(t.length,n.mem),r,e,!o)},W=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},X=function(t,n,r){for(var e=t(),o=""+t,i=o.slice(o.indexOf("[")+1,o.lastIndexOf("]")).replace(/ /g,"").split(","),a=0;a<e.length;++a){var s=e[a],f=i[a];if("function"==typeof s){n+=";"+f+"=";var u=""+s;if(s.prototype)if(-1!=u.indexOf("[native code]"))n+=u.slice(9,u.indexOf("(",11));else for(var h in n+=u,s.prototype)n+=";"+f+".prototype."+h+"="+s.prototype[h];else n+=u}else r[f]=s}return[n,r]},$=function(t){for(var n in t.data[0])self[n]=t.data[0][n];onmessage=Function("return "+t.data[1])()},tt=[],nt=function(t){var o=[];for(var i in t)(t[i]instanceof n||t[i]instanceof r||t[i]instanceof e)&&o.push((t[i]=new t[i].constructor(t[i])).buffer);return o},rt=function(n,r,e,o){var i;if(!tt[e]){for(var a="",s={},f=n.length-1,u=0;u<f;++u)a=(i=X(n[u],a,s))[0],s=i[1];tt[e]=X(n[f],a,s)}var h=W({},tt[e][1]);return t.default(tt[e][0]+";onmessage="+$,e,[h,""+r],nt(h),o)},et=function(){return[n,r,i,a,s,f,u,l,d,S,k,w,m,C,D,G,U,O,F,Ot,ut,ht]},ot=function(){return[n,r,e,i,s,u,p,g,A,b,M,z,w,Y,B,m,I,Z,E,T,_,j,q,H,U,O,J,R,V,Ct,ut]},it=function(){return[wt,mt,gt,P,K]},at=function(){return[xt,yt]},st=function(){return[bt,gt,Q]},ft=function(){return[zt]},ut=function(t){return postMessage(t,[t.buffer])},ht=function(t){return t&&t.size&&new n(t.size)},ct=function(t,r,e,o,i,a){var s=rt(e,o,i,(function(t,n){s.terminate(),a(t,n)}));return r.consume||(t=new n(t)),s.postMessage([t,r],[t.buffer]),function(){s.terminate()}},lt=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])}},pt=function(t,n,r,e,o){var i,a=rt(t,e,o,(function(t,r){t?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(i)throw"stream finished";if(!n.ondata)throw"no stream handler";a.postMessage([t,i=r],[t.buffer])},n.terminate=function(){a.terminate()}},vt=function(t,n){return t[n]|t[n+1]<<8},dt=function(t,n){return t[n]|t[n+1]<<8|t[n+2]<<16|t[n+3]<<24},gt=function(t,n,r){for(;r;++n)t[n]=r,r>>>=8},wt=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&&gt(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)}},xt=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)},yt=function(t){var n=t.length;return t[n-4]|t[n-3]<<8|t[n-2]<<16|t[n-1]<<24},mt=function(t){return 10+(t.filename&&t.filename.length+1||0)},bt=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)},zt=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 At(t,n){return n||(n=t,t={}),this.ondata=n,t}var St=function(){function t(t,n){n||(n=t,t={}),this.ondata=n,this.o=t||{}}return t.prototype.p=function(t,n){this.ondata(V(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=St;var Mt=function(t,n){pt([ot,function(){return[lt,St]}],this,At.call(this,t,n),(function(t){var n=new St(t.data,!0);onmessage=lt(n)}),6)};function kt(t,n,r){if(r||(r=n,n={}),!r)throw"no callback";return ct(t,n,[ot],(function(t){return ut(Ct(t.data[0],t.data[1]))}),0,r)}function Ct(t,n){return void 0===n&&(n={}),V(t,n,0,0)}_e.AsyncDeflate=Mt,_e.deflate=kt,_e.deflateSync=Ct;var Dt=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,n){this.d=this.s.i=n;var r=this.s.b,e=F(this.p,this.o,this.s);this.ondata(O(e,r,this.s.b),n||!1),this.o=O(e,this.s.b-32768),this.s.b=32768,this.p=O(this.p,this.s.p>>>3),this.s.p&=7},t.prototype.push=function(t,n){this.e(t),this.c(t,n)},t}();_e.Inflate=Dt;var Gt=function(t){this.ondata=t,pt([et,function(){return[lt,Dt]}],this,0,(function(){var t=new Dt;onmessage=lt(t)}),7)};function Ut(t,n,r){if(r||(r=n,n={}),!r)throw"no callback";return ct(t,n,[et],(function(t){return ut(Ot(t.data[0],ht(t.data[1])))}),1,r)}function Ot(t,n){return F(t,n)}_e.AsyncInflate=Gt,_e.inflate=Ut,_e.inflateSync=Ot;var Ft=function(){function t(t,n){this.c=P(),this.l=0,this.v=1,St.call(this,t,n)}return t.prototype.push=function(t,n){St.prototype.push.call(this,t,n)},t.prototype.p=function(t,n){this.c.p(t),this.l+=t.length;var r=V(t,this.o,this.v&&mt(this.o),n&&8,!n);this.v&&(wt(r,this.o),this.v=0),n&&(gt(r,r.length-8,this.c.d()),gt(r,r.length-4,this.l)),this.ondata(r,n)},t}();_e.Gzip=Ft,_e.Compress=Ft;var It=function(t,n){pt([ot,it,function(){return[lt,St,Ft]}],this,At.call(this,t,n),(function(t){var n=new Ft(t.data,!0);onmessage=lt(n)}),8)};function Zt(t,n,r){if(r||(r=n,n={}),!r)throw"no callback";return ct(t,n,[ot,it,function(){return[Et]}],(function(t){return ut(Et(t.data[0],t.data[1]))}),2,r)}function Et(t,n){void 0===n&&(n={});var r=P(),e=t.length;r.p(t);var o=V(t,n,mt(n),8),i=o.length;return wt(o,n),gt(o,i-8,r.d()),gt(o,i-4,e),o}_e.AsyncGzip=It,_e.AsyncCompress=It,_e.gzip=Zt,_e.compress=Zt,_e.gzipSync=Et,_e.compressSync=Et;var Tt=function(){function t(t){this.v=1,Dt.call(this,t)}return t.prototype.push=function(t,n){if(Dt.prototype.e.call(this,t),this.v){var r=xt(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)}Dt.prototype.c.call(this,t,n)},t}();_e.Gunzip=Tt;var _t=function(t){this.ondata=t,pt([et,at,function(){return[lt,Dt,Tt]}],this,0,(function(){var t=new Tt;onmessage=lt(t)}),9)};function jt(t,n,r){if(r||(r=n,n={}),!r)throw"no callback";return ct(t,n,[et,at,function(){return[qt]}],(function(t){return ut(qt(t.data[0]))}),3,r)}function qt(t,r){return F(t.subarray(xt(t),-8),r||new n(yt(t)))}_e.AsyncGunzip=_t,_e.gunzip=jt,_e.gunzipSync=qt;var Ht=function(){function t(t,n){this.c=Q(),this.v=1,St.call(this,t,n)}return t.prototype.push=function(t,n){St.prototype.push.call(this,t,n)},t.prototype.p=function(t,n){this.c.p(t);var r=V(t,this.o,this.v&&2,n&&4,!n);this.v&&(bt(r,this.o),this.v=0),n&&gt(r,r.length-4,this.c.d()),this.ondata(r,n)},t}();_e.Zlib=Ht;var Yt=function(t,n){pt([ot,st,function(){return[lt,St,Ht]}],this,At.call(this,t,n),(function(t){var n=new Ht(t.data,!0);onmessage=lt(n)}),10)};function Bt(t,n,r){if(r||(r=n,n={}),!r)throw"no callback";return ct(t,n,[ot,st,function(){return[Jt]}],(function(t){return ut(Jt(t.data[0],t.data[1]))}),4,r)}function Jt(t,n){void 0===n&&(n={});var r=Q();r.p(t);var e=V(t,n,2,4);return bt(e,n),gt(e,e.length-4,r.d()),e}_e.AsyncZlib=Yt,_e.zlib=Bt,_e.zlibSync=Jt;var Kt=function(){function t(t){this.v=1,Dt.call(this,t)}return t.prototype.push=function(t,n){if(Dt.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<8)throw"invalid zlib stream";this.p=this.p.subarray(0,-4)}Dt.prototype.c.call(this,t,n)},t}();_e.Unzlib=Kt;var Lt=function(t){this.ondata=t,pt([et,ft,function(){return[lt,Dt,Kt]}],this,0,(function(){var t=new Kt;onmessage=lt(t)}),11)};function Nt(t,n,r){if(r||(r=n,n={}),!r)throw"no callback";return ct(t,n,[et,ft,function(){return[Pt]}],(function(t){return ut(Pt(t.data[0],ht(t.data[1])))}),5,r)}function Pt(t,n){return F((zt(t),t.subarray(2,-4)),n)}_e.AsyncUnzlib=Lt,_e.unzlib=Nt,_e.unzlibSync=Pt;var Qt=function(){function t(t){this.G=Tt,this.I=Dt,this.Z=Kt,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 o=this,i=function(){o.ondata.apply(o,arguments)};this.s=31==this.p[0]&&139==this.p[1]&&8==this.p[2]?new this.G(i):8!=(15&this.p[0])||this.p[0]>>4>7||(this.p[0]<<8|this.p[1])%31?new this.I(i):new this.Z(i),this.s.push(this.p,r),this.p=null}}},t}();_e.Decompress=Qt;var Rt=function(){function t(t){this.G=_t,this.I=Gt,this.Z=Lt,this.ondata=t}return t.prototype.push=function(t,n){Qt.prototype.push.call(this,t,n)},t}();function Vt(t,n,r){if(r||(r=n,n={}),!r)throw"no callback";return 31==t[0]&&139==t[1]&&8==t[2]?jt(t,n,r):8!=(15&t[0])||t[0]>>4>7||(t[0]<<8|t[1])%31?Ut(t,n,r):Nt(t,n,r)}function Wt(t,n){return 31==t[0]&&139==t[1]&&8==t[2]?qt(t,n):8!=(15&t[0])||t[0]>>4>7||(t[0]<<8|t[1])%31?Ot(t,n):Pt(t,n)}_e.AsyncDecompress=Rt,_e.decompress=Vt,_e.decompressSync=Wt;var Xt=function(t,r,e,o){for(var i in t){var a=t[i],s=r+i;a instanceof n?e[s]=[a,o]:Array.isArray(a)?e[s]=[a[0],W(o,a[1])]:Xt(a,s+"/",e,o)}};function $t(t,r){var e=t.length;if(!r&&"undefined"!=typeof TextEncoder)return(new TextEncoder).encode(t);for(var o=new n(t.length+(t.length>>>1)),i=0,a=function(t){o[i++]=t},s=0;s<e;++s){if(i+5>o.length){var f=new n(i+8+(e-s<<1));f.set(o),o=f}var u=t.charCodeAt(s);u<128||r?a(u):u<2048?(a(192|u>>>6),a(128|63&u)):u>55295&&u<57344?(a(240|(u=65536+(1047552&u)|1023&t.charCodeAt(++s))>>>18),a(128|u>>>12&63),a(128|u>>>6&63),a(128|63&u)):(a(224|u>>>12),a(128|u>>>6&63),a(128|63&u))}return O(o,0,i)}function tn(t,n){var r="";if(!n&&"undefined"!=typeof TextDecoder)return(new TextDecoder).decode(t);for(var e=0;e<t.length;){var o=t[e++];o<128||n?r+=String.fromCharCode(o):o<224?r+=String.fromCharCode((31&o)<<6|63&t[e++]):o<240?r+=String.fromCharCode((15&o)<<12|(63&t[e++])<<6|63&t[e++]):(o=((15&o)<<18|(63&t[e++])<<12|(63&t[e++])<<6|63&t[e++])-65536,r+=String.fromCharCode(55296|o>>10,56320|1023&o))}return r}_e.strToU8=$t,_e.strFromU8=tn;var nn=function(t,n){var r=2048&vt(t,n+6),e=vt(t,n+8),o=dt(t,n+=18),i=dt(t,n+4),a=vt(t,n+8);return[o,e,i,tn(t.subarray(n+=12,n+=a),!r),n]},rn=function(t,n,r,e,o,i,a,s,f,u){var h=i.length,c=e.length;gt(t,n,null!=f?33639248:67324752),n+=4,null!=f&&(t[n]=20,n+=2),t[n]=20,n+=2,t[n++]=8==u&&(1==s.level?6:s.level<6?4:9==s.level?2:0),t[n++]=a&&8,t[n]=u,n+=2;var l=new Date(s.mtime||Date.now()),p=l.getFullYear()-1980;if(p<0||p>119)throw"date not in range 1980-2099";gt(t,n,p<<25|l.getMonth()+1<<21|l.getDate()<<16|l.getHours()<<11|l.getMinutes()<<5|l.getSeconds()>>>1),gt(t,n+=4,r),gt(t,n+4,c),gt(t,n+8,o),gt(t,n+12,h),n+=16,null!=f&&(gt(t,n+=10,f),n+=4),t.set(i,n),n+=h,null==f&&t.set(e,n)},en=function(t,n,r,e,o){gt(t,n,101010256),gt(t,n+8,r),gt(t,n+10,r),gt(t,n+12,e),gt(t,n+16,o)};function on(t,r,e){e||(e=r,r={});var o={};Xt(t,"",o,r);var i=Object.keys(o),a=i.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,o=f-s;f=0;for(var i=0;i<u;++i){var a=h[i];rn(t,f,a.c,a.d,a.m,a.n,a.u,a.p,null,a.t),rn(t,s,a.c,a.d,a.m,a.n,a.u,a.p,f,a.t),s+=46+a.n.length,f+=30+a.n.length+a.d.length}en(t,s,h.length,o,r),e(null,t)};a||p();for(var v=function(t){var n=i[t],u=o[n],v=u[0],d=u[1],g=P(),w=v.length;g.p(v);var x=$t(n),y=x.length,m=0==d.level?0:8;if(x.length>65535)throw"filename too long";var b=function(r,o){if(r)l(),e(r,null);else{var i=o.length;h[t]={t:m,d:o,m:w,c:g.d(),u:n.length!=i,n:x,p:d},s+=30+y+i,f+=76+2*y+i,--a||p()}};m?w<16e4?b(null,Ct(v,r)):c.push(kt(v,r,b)):b(null,v)},d=0;d<u;++d)v(d);return l}function an(t,r){void 0===r&&(r={});var e={},o=[];Xt(t,"",e,r);var i=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=$t(s),p=l.length;if(l.length>65535)throw"filename too long";var v=c?Ct(u,h):u,d=v.length,g=P();g.p(u),o.push({t:c,d:v,m:u.length,c:g.d(),u:s.length!=p,n:l,o:i,p:h}),i+=30+p+d,a+=76+2*p+d}for(var w=new n(a+22),x=i,y=a-i,m=0;m<o.length;++m){var b=o[m];rn(w,b.o,b.c,b.d,b.m,b.n,b.u,b.p,null,b.t),rn(w,i,b.c,b.d,b.m,b.n,b.u,b.p,b.o,b.t),i+=46+b.n.length}return en(w,i,o.length,y,x),w}function sn(t,r){for(var e=[],o=function(){for(var t=0;t<e.length;++t)e[t]()},i={},a=t.length-22;101010256!=dt(t,a);--a)if(!a||t.length-a>65558)throw"invalid zip file";var s=vt(t,a+8);s||r(null,{});for(var f=s,u=dt(t,a+16),h=function(e){var a=dt(t,u+42);u+=46+vt(t,u+28)+vt(t,u+30)+vt(t,u+32);var f=nn(t,a),h=f[0],c=f[1],l=f[2],p=f[3],v=f[4],d=function(t,n){t?(o(),r(t,null)):(i[p]=n,--s||r(null,i))};if(c){if(8!=c)throw"unknown compression type "+c;var g=t.subarray(v,v+h);h<32e4?d(null,Ot(g,new n(l))):Ut(g,{size:l},d)}else d(null,O(t,v,v+h))},c=0;c<f;++c)h();return o}function fn(t){for(var r={},e=t.length-22;101010256!=dt(t,e);--e)if(!e||t.length-e>65558)throw"invalid zip file";var o=vt(t,e+8);if(!o)return{};for(var i=dt(t,e+16),a=0;a<o;++a){var s=dt(t,i+42);i+=46+vt(t,i+28)+vt(t,i+30)+vt(t,i+32);var f=nn(t,s),u=f[0],h=f[1],c=f[2],l=f[3],p=f[4];if(h){if(8!=h)throw"unknown compression type "+h;r[l]=Ot(t.subarray(p,p+u),new n(c))}else r[l]=O(t,p,p+u)}return r}_e.zip=on,_e.zipSync=an,_e.unzip=sn,_e.unzipSync=fn;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=eval('require')("worker_threads"),r=";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";_f.default=function(t,o,n,s,a){var u=!1,i=new e.Worker(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(n,s),i.terminate=function(){return u=!0,e.Worker.prototype.terminate.call(i)},i};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,o=function(t,n){for(var r=0;r<32;++r)n[r]=(1<<t[r])-1;return n},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]),a=o(i,new n(32)),s=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]),f=o(s,new r(32)),u=new n([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),h=function(t,n){for(var o=new r(31),i=0;i<31;++i)o[i]=n+=1<<t[i-1];var a=new e(o[30]);for(i=1;i<30;++i)for(var s=o[i];s<o[i+1];++s)a[s]=s-o[i]<<5|i;return[o,a]},c=h(i,2),l=c[0],p=c[1];l[28]=258,p[258]=28;for(var v=h(s,0),d=v[0],g=v[1],w=new r(32768),x=0;x<32768;++x){var y=(2863311530&x)>>>1|(1431655765&x)<<1;w[x]=((4278255360&(y=(4042322160&(y=(3435973836&y)>>>2|(858993459&y)<<2))>>>4|(252645135&y)<<4))>>>8|(16711935&y)<<8)>>>1}var m=function(t,n,e){for(var o=t.length,i=0,a=new r(n);i<o;++i)++a[t[i]-1];var s,f=new r(n);for(i=0;i<n;++i)f[i]=f[i-1]+a[i-1]<<1;if(e){s=new r(1<<n);var u=15-n;for(i=0;i<o;++i)if(t[i])for(var h=i<<4|t[i],c=n-t[i],l=f[t[i]-1]++<<c,p=l|(1<<c)-1;l<=p;++l)s[w[l]>>>u]=h}else for(s=new r(o),i=0;i<o;++i)s[i]=w[f[t[i]-1]++]>>>15-t[i];return s},b=new n(288);for(x=0;x<144;++x)b[x]=8;for(x=144;x<256;++x)b[x]=9;for(x=256;x<280;++x)b[x]=7;for(x=280;x<288;++x)b[x]=8;var z=new n(32);for(x=0;x<32;++x)z[x]=5;var A=m(b,9,0),S=m(b,9,1),M=m(z,5,0),k=m(z,5,1),C=function(t){for(var n=t[0],r=1;r<t.length;++r)t[r]>n&&(n=t[r]);return n},D=function(t,n,r){var e=n>>>3;return(t[e]|t[e+1]<<8)>>>(7&n)&r},G=function(t,n){var r=n>>>3;return(t[r]|t[r+1]<<8|t[r+2]<<16)>>>(7&n)},U=function(t){return(t>>>3)+(7&t&&1)},O=function(t,n,r){(null==n||n<0)&&(n=0),(null==r||r>t.length)&&(r=t.length);var e=new t.constructor(r-n);return e.set(t.subarray(n,r)),e},F=function(t,r,e){var o=!e||e.i;e||(e={});var h=t.length,c=!r||e;r||(r=new n(3*h));var p=c?function(t){var e=r.length;if(t>e){var o=new n(Math.max(e<<1,t));o.set(r),r=o}}:function(){},v=e.f||0,g=e.p||0,w=e.b||0,x=e.l,y=e.d,b=e.m,z=e.n;if(v&&!x)return r;var A=h<<3;do{if(!x){e.f=v=D(t,g,1);var M=D(t,g+1,3);if(g+=3,!M){var F=t[(K=U(g)+4)-4]|t[K-3]<<8,I=K+F;if(I>h){if(o)throw"unexpected EOF";break}p(w+F),r.set(t.subarray(K,I),w),e.b=w+=F,e.p=g=I<<3;continue}if(1==M)x=S,y=k,b=9,z=5;else{if(2!=M)throw"invalid block type";var Z=D(t,g,31)+257,E=D(t,g+5,31)+1,T=D(t,g+10,15)+4,_=Z+E;g+=14;for(var j=new n(_),q=new n(19),H=0;H<T;++H)q[u[H]]=D(t,g+3*H,7);g+=3*T;var Y=C(q),B=(1<<Y)-1;if(!o&&g+_*(Y+7)>A)break;var J=m(q,Y,1);for(H=0;H<j.length;){var K,L=J[D(t,g,B)];if(g+=15&L,(K=L>>>4)<16)j[H++]=K;else{var N=0,P=0;for(16==K?(P=3+D(t,g,3),g+=2,N=j[H-1]):17==K?(P=3+D(t,g,7),g+=3):18==K&&(P=11+D(t,g,127),g+=7);P--;)j[H++]=N}}var Q=j.subarray(0,Z),R=j.subarray(Z);b=C(Q),z=C(R),x=m(Q,b,1),y=m(R,z,1)}if(g>A)throw"unexpected EOF"}p(w+131072);for(var V=(1<<b)-1,W=(1<<z)-1,X=b+z+18;o||g+X<A;){var $=(N=x[G(t,g)&V])>>>4;if((g+=15&N)>A)throw"unexpected EOF";if(!N)throw"invalid length/literal";if($<256)r[w++]=$;else{if(256==$){x=null;break}var tt=$-254;$>264&&(tt=D(t,g,a[H=$-257])+l[H],g+=i[H]);var nt=y[G(t,g)&W],rt=nt>>>4;if(!nt)throw"invalid distance";if(g+=15&nt,R=d[rt],rt>3&&(R+=G(t,g)&f[rt],g+=s[rt]),g>A)throw"unexpected EOF";p(w+131072);for(var et=w+tt;w<et;)r[w]=r[w++-R],r[w]=r[w++-R],r[w]=r[w++-R];w=et}}e.l=x,e.p=g,e.b=w,x&&(v=1,e.m=b,e.d=y,e.n=z)}while(!v);return w==r.length?r:O(r,0,w)},I=function(t,n,r){var e=n>>>3;t[e]|=r<<=7&n,t[e+1]|=r>>>8},Z=function(t,n,r){var e=n>>>3;t[e]|=r<<=7&n,t[e+1]|=r>>>8,t[e+2]|=r>>>16},E=function(t,e){for(var o=[],i=0;i<t.length;++i)t[i]&&o.push({s:i,f:t[i]});var a=o.length,s=o.slice();if(!a)return[new n(0),0];if(1==a){var f=new n(o[0].s+1);return f[o[0].s]=1,[f,1]}o.sort((function(t,n){return t.f-n.f})),o.push({s:-1,f:25001});var u=o[0],h=o[1],c=0,l=1,p=2;for(o[0]={s:-1,f:u.f+h.f,l:u,r:h};l!=a-1;)u=o[o[c].f<o[p].f?c++:p++],h=o[c!=l&&o[c].f<o[p].f?c++:p++],o[l++]={s:-1,f:u.f+h.f,l:u,r:h};var v=s[0].s;for(i=1;i<a;++i)s[i].s>v&&(v=s[i].s);var d=new r(v+1),g=T(o[l-1],d,0);if(g>e){i=0;var w=0,x=g-e,y=1<<x;for(s.sort((function(t,n){return d[n.s]-d[t.s]||t.f-n.f}));i<a;++i){var m=s[i].s;if(!(d[m]>e))break;w+=y-(1<<g-d[m]),d[m]=e}for(w>>>=x;w>0;){var b=s[i].s;d[b]<e?w-=1<<e-d[b]++-1:++i}for(;i>=0&&w;--i){var z=s[i].s;d[z]==e&&(--d[z],++w)}g=e}return[new n(d),g]},T=function(t,n,r){return-1==t.s?Math.max(T(t.l,n,r+1),T(t.r,n,r+1)):n[t.s]=r},_=function(t){for(var n=t.length;n&&!t[--n];);for(var e=new r(++n),o=0,i=t[0],a=1,s=function(t){e[o++]=t},f=1;f<=n;++f)if(t[f]==i&&f!=n)++a;else{if(!i&&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(i),--a;a>6;a-=6)s(8304);a>2&&(s(a-3<<5|8208),a=0)}for(;a--;)s(i);a=1,i=t[f]}return[e.subarray(0,o),n]},j=function(t,n){for(var r=0,e=0;e<n.length;++e)r+=t[e]*n[e];return r},q=function(t,n,r){var e=r.length,o=U(n+2);t[o]=255&e,t[o+1]=e>>>8,t[o+2]=255^t[o],t[o+3]=255^t[o+1];for(var i=0;i<e;++i)t[o+i+4]=r[i];return o+4+e<<3},H=function(t,n,e,o,a,f,h,c,l,p,v){I(n,v++,e),++a[256];for(var d=E(a,15),g=d[0],w=d[1],x=E(f,15),y=x[0],S=x[1],k=_(g),C=k[0],D=k[1],G=_(y),U=G[0],O=G[1],F=new r(19),T=0;T<C.length;++T)F[31&C[T]]++;for(T=0;T<U.length;++T)F[31&U[T]]++;for(var H=E(F,7),Y=H[0],B=H[1],J=19;J>4&&!Y[u[J-1]];--J);var K,L,N,P,Q=p+5<<3,R=j(a,b)+j(f,z)+h,V=j(a,g)+j(f,y)+h+14+3*J+j(F,Y)+(2*F[16]+3*F[17]+7*F[18]);if(Q<=R&&Q<=V)return q(n,v,t.subarray(l,l+p));if(I(n,v,1+(V<R)),v+=2,V<R){K=m(g,w,0),L=g,N=m(y,S,0),P=y;var W=m(Y,B,0);for(I(n,v,D-257),I(n,v+5,O-1),I(n,v+10,J-4),v+=14,T=0;T<J;++T)I(n,v+3*T,Y[u[T]]);v+=3*J;for(var X=[C,U],$=0;$<2;++$){var tt=X[$];for(T=0;T<tt.length;++T)I(n,v,W[nt=31&tt[T]]),v+=Y[nt],nt>15&&(I(n,v,tt[T]>>>5&127),v+=tt[T]>>>12)}}else K=A,L=b,N=M,P=z;for(T=0;T<c;++T)if(o[T]>255){var nt;Z(n,v,K[257+(nt=o[T]>>>18&31)]),v+=L[nt+257],nt>7&&(I(n,v,o[T]>>>23&31),v+=i[nt]);var rt=31&o[T];Z(n,v,N[rt]),v+=P[rt],rt>3&&(Z(n,v,o[T]>>>5&8191),v+=s[rt])}else Z(n,v,K[o[T]]),v+=L[o[T]];return Z(n,v,K[256]),v+L[256]},Y=new e([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),B=new n(0),J=function(t,o,a,f,u,h){var c=t.length,l=new n(f+c+5*Math.ceil(c/7e3)+u),v=l.subarray(f,l.length-u),d=0;if(!o||c<8)for(var w=0;w<c;w+=65535){var x=w+65535;x<c?d=q(v,d,t.subarray(w,x)):(v[w]=1,d=q(v,d,t.subarray(w,c)))}else{for(var y=Y[o-1],m=y>>>13,b=8191&y,z=(1<<a)-1,A=new r(32768),S=new r(z+1),M=Math.ceil(a/3),k=2*M,C=function(n){return(t[n]^t[n+1]<<M^t[n+2]<<k)&z},D=new e(25e3),G=new r(288),F=new r(32),I=0,Z=0,E=(w=0,0),T=0,_=0;w<c;++w){var j=C(w),J=32767&w,K=S[j];if(A[J]=K,S[j]=J,T<=w){var L=c-w;if((I>7e3||E>24576)&&L>423){d=H(t,v,0,D,G,F,Z,E,_,w-_,d),E=I=Z=0,_=w;for(var N=0;N<286;++N)G[N]=0;for(N=0;N<30;++N)F[N]=0}var P=2,Q=0,R=b,V=J-K&32767;if(L>2&&j==C(w-V))for(var W=Math.min(m,L)-1,X=Math.min(32767,w),$=Math.min(258,L);V<=X&&--R&&J!=K;){if(t[w+P]==t[w+P-V]){for(var tt=0;tt<$&&t[w+tt]==t[w+tt-V];++tt);if(tt>P){if(P=tt,Q=V,tt>W)break;var nt=Math.min(V,tt-2),rt=0;for(N=0;N<nt;++N){var et=w-V+N+32768&32767,ot=et-A[et]+32768&32767;ot>rt&&(rt=ot,K=et)}}}V+=(J=K)-(K=A[J])+32768&32767}if(Q){D[E++]=268435456|p[P]<<18|g[Q];var it=31&p[P],at=31&g[Q];Z+=i[it]+s[at],++G[257+it],++F[at],T=w+P,++I}else D[E++]=t[w],++G[t[w]]}}d=H(t,v,h,D,G,F,Z,E,_,w-_,d),h||(d=q(v,++d,B))}return O(l,0,f+U(d)+u)},K=new e(256);for(x=0;x<256;++x){for(var L=x,N=9;--N;)L=(1&L&&3988292384)^L>>>1;K[x]=L}var P=function(){var t=4294967295;return{p:function(n){for(var r=t,e=0;e<n.length;++e)r=K[255&r^n[e]]^r>>>8;t=r},d:function(){return 4294967295^t}}},Q=function(){var t=1,n=0;return{p:function(r){for(var e=t,o=n,i=r.length,a=0;a!=i;){for(var s=Math.min(a+5552,i);a<s;++a)o+=e+=r[a];e%=65521,o%=65521}t=e,n=o},d:function(){return(255&t)<<24|t>>>8<<16|(255&n)<<8|n>>>8}}},R=function(t,n,r,e,o){return J(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,!o)},V=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},W=function(t,n,r){for(var e=t(),o=""+t,i=o.slice(o.indexOf("[")+1,o.lastIndexOf("]")).replace(/ /g,"").split(","),a=0;a<e.length;++a){var s=e[a],f=i[a];if("function"==typeof s){n+=";"+f+"=";var u=""+s;if(s.prototype)if(-1!=u.indexOf("[native code]"))n+=u.slice(9,u.indexOf("(",11));else for(var h in n+=u,s.prototype)n+=";"+f+".prototype."+h+"="+s.prototype[h];else n+=u}else r[f]=s}return[n,r]},X=function(t){for(var n in t.data[0])self[n]=t.data[0][n];onmessage=Function("return "+t.data[1])()},$=[],tt=function(t){var o=[];for(var i in t)(t[i]instanceof n||t[i]instanceof r||t[i]instanceof e)&&o.push((t[i]=new t[i].constructor(t[i])).buffer);return o},nt=function(n,r,e,o){var i;if(!$[e]){for(var a="",s={},f=n.length-1,u=0;u<f;++u)a=(i=W(n[u],a,s))[0],s=i[1];$[e]=W(n[f],a,s)}var h=V({},$[e][1]);return t.default($[e][0]+";onmessage="+X,e,[h,""+r],tt(h),o)},rt=function(){return[n,r,i,a,s,f,u,l,d,S,k,w,m,C,D,G,U,O,F,Ut,ft,ut]},et=function(){return[n,r,e,i,s,u,p,g,A,b,M,z,w,Y,B,m,I,Z,E,T,_,j,q,H,U,O,J,R,kt,ft]},ot=function(){return[gt,yt,dt,P,K]},it=function(){return[wt,xt]},at=function(){return[mt,dt,Q]},st=function(){return[bt]},ft=function(t){return postMessage(t,[t.buffer])},ut=function(t){return t&&t.size&&new n(t.size)},ht=function(t,r,e,o,i,a){var s=nt(e,o,i,(function(t,n){s.terminate(),a(t,n)}));return r.consume||(t=new n(t)),s.postMessage([t,r],[t.buffer]),function(){s.terminate()}},ct=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])}},lt=function(t,n,r,e,o){var i,a=nt(t,e,o,(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(i)throw"stream finished";if(!n.ondata)throw"no stream handler";a.postMessage([t,i=r],[t.buffer])},n.terminate=function(){a.terminate()}},pt=function(t,n){return t[n]|t[n+1]<<8},vt=function(t,n){return t[n]|t[n+1]<<8|t[n+2]<<16|t[n+3]<<24},dt=function(t,n,r){for(;r;++n)t[n]=r,r>>>=8},gt=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&&dt(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)}},wt=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)},xt=function(t){var n=t.length;return t[n-4]|t[n-3]<<8|t[n-2]<<16|t[n-1]<<24},yt=function(t){return 10+(t.filename&&t.filename.length+1||0)},mt=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)},bt=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 zt(t,n){return n||(n=t,t={}),this.ondata=n,t}var At=function(){function t(t,n){n||(n=t,t={}),this.ondata=n,this.o=t||{}}return t.prototype.p=function(t,n){this.ondata(R(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=At;var St=function(t,n){lt([et,function(){return[ct,At]}],this,zt.call(this,t,n),(function(t){var n=new At(t.data,!0);onmessage=ct(n)}),6)};function Mt(t,n,r){if(r||(r=n,n={}),!r)throw"no callback";return ht(t,n,[et],(function(t){return ft(kt(t.data[0],t.data[1]))}),0,r)}function kt(t,n){return void 0===n&&(n={}),R(t,n,0,0)}_e.AsyncDeflate=St,_e.deflate=Mt,_e.deflateSync=kt;var Ct=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,n){this.d=this.s.i=n;var r=this.s.b,e=F(this.p,this.o,this.s);this.ondata(O(e,r,this.s.b),n||!1),this.o=O(e,this.s.b-32768),this.s.b=32768,this.p=O(this.p,this.s.p>>>3),this.s.p&=7},t.prototype.push=function(t,n){this.e(t),this.c(t,n)},t}();_e.Inflate=Ct;var Dt=function(t){this.ondata=t,lt([rt,function(){return[ct,Ct]}],this,0,(function(){var t=new Ct;onmessage=ct(t)}),7)};function Gt(t,n,r){if(r||(r=n,n={}),!r)throw"no callback";return ht(t,n,[rt],(function(t){return ft(Ut(t.data[0],ut(t.data[1])))}),1,r)}function Ut(t,n){return F(t,n)}_e.AsyncInflate=Dt,_e.inflate=Gt,_e.inflateSync=Ut;var Ot=function(){function t(t,n){this.c=P(),this.l=0,this.v=1,At.call(this,t,n)}return t.prototype.push=function(t,n){At.prototype.push.call(this,t,n)},t.prototype.p=function(t,n){this.c.p(t),this.l+=t.length;var r=R(t,this.o,this.v&&yt(this.o),n&&8,!n);this.v&&(gt(r,this.o),this.v=0),n&&(dt(r,r.length-8,this.c.d()),dt(r,r.length-4,this.l)),this.ondata(r,n)},t}();_e.Gzip=Ot,_e.Compress=Ot;var Ft=function(t,n){lt([et,ot,function(){return[ct,At,Ot]}],this,zt.call(this,t,n),(function(t){var n=new Ot(t.data,!0);onmessage=ct(n)}),8)};function It(t,n,r){if(r||(r=n,n={}),!r)throw"no callback";return ht(t,n,[et,ot,function(){return[Zt]}],(function(t){return ft(Zt(t.data[0],t.data[1]))}),2,r)}function Zt(t,n){void 0===n&&(n={});var r=P(),e=t.length;r.p(t);var o=R(t,n,yt(n),8),i=o.length;return gt(o,n),dt(o,i-8,r.d()),dt(o,i-4,e),o}_e.AsyncGzip=Ft,_e.AsyncCompress=Ft,_e.gzip=It,_e.compress=It,_e.gzipSync=Zt,_e.compressSync=Zt;var Et=function(){function t(t){this.v=1,Ct.call(this,t)}return t.prototype.push=function(t,n){if(Ct.prototype.e.call(this,t),this.v){var r=wt(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)}Ct.prototype.c.call(this,t,n)},t}();_e.Gunzip=Et;var Tt=function(t){this.ondata=t,lt([rt,it,function(){return[ct,Ct,Et]}],this,0,(function(){var t=new Et;onmessage=ct(t)}),9)};function _t(t,n,r){if(r||(r=n,n={}),!r)throw"no callback";return ht(t,n,[rt,it,function(){return[jt]}],(function(t){return ft(jt(t.data[0]))}),3,r)}function jt(t,r){return F(t.subarray(wt(t),-8),r||new n(xt(t)))}_e.AsyncGunzip=Tt,_e.gunzip=_t,_e.gunzipSync=jt;var qt=function(){function t(t,n){this.c=Q(),this.v=1,At.call(this,t,n)}return t.prototype.push=function(t,n){At.prototype.push.call(this,t,n)},t.prototype.p=function(t,n){this.c.p(t);var r=R(t,this.o,this.v&&2,n&&4,!n);this.v&&(mt(r,this.o),this.v=0),n&&dt(r,r.length-4,this.c.d()),this.ondata(r,n)},t}();_e.Zlib=qt;var Ht=function(t,n){lt([et,at,function(){return[ct,At,qt]}],this,zt.call(this,t,n),(function(t){var n=new qt(t.data,!0);onmessage=ct(n)}),10)};function Yt(t,n,r){if(r||(r=n,n={}),!r)throw"no callback";return ht(t,n,[et,at,function(){return[Bt]}],(function(t){return ft(Bt(t.data[0],t.data[1]))}),4,r)}function Bt(t,n){void 0===n&&(n={});var r=Q();r.p(t);var e=R(t,n,2,4);return mt(e,n),dt(e,e.length-4,r.d()),e}_e.AsyncZlib=Ht,_e.zlib=Yt,_e.zlibSync=Bt;var Jt=function(){function t(t){this.v=1,Ct.call(this,t)}return t.prototype.push=function(t,n){if(Ct.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<8)throw"invalid zlib stream";this.p=this.p.subarray(0,-4)}Ct.prototype.c.call(this,t,n)},t}();_e.Unzlib=Jt;var Kt=function(t){this.ondata=t,lt([rt,st,function(){return[ct,Ct,Jt]}],this,0,(function(){var t=new Jt;onmessage=ct(t)}),11)};function Lt(t,n,r){if(r||(r=n,n={}),!r)throw"no callback";return ht(t,n,[rt,st,function(){return[Nt]}],(function(t){return ft(Nt(t.data[0],ut(t.data[1])))}),5,r)}function Nt(t,n){return F((bt(t),t.subarray(2,-4)),n)}_e.AsyncUnzlib=Kt,_e.unzlib=Lt,_e.unzlibSync=Nt;var Pt=function(){function t(t){this.G=Et,this.I=Ct,this.Z=Jt,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 o=this,i=function(){o.ondata.apply(o,arguments)};this.s=31==this.p[0]&&139==this.p[1]&&8==this.p[2]?new this.G(i):8!=(15&this.p[0])||this.p[0]>>4>7||(this.p[0]<<8|this.p[1])%31?new this.I(i):new this.Z(i),this.s.push(this.p,r),this.p=null}}},t}();_e.Decompress=Pt;var Qt=function(){function t(t){this.G=Tt,this.I=Dt,this.Z=Kt,this.ondata=t}return t.prototype.push=function(t,n){Pt.prototype.push.call(this,t,n)},t}();function Rt(t,n,r){if(r||(r=n,n={}),!r)throw"no callback";return 31==t[0]&&139==t[1]&&8==t[2]?_t(t,n,r):8!=(15&t[0])||t[0]>>4>7||(t[0]<<8|t[1])%31?Gt(t,n,r):Lt(t,n,r)}function Vt(t,n){return 31==t[0]&&139==t[1]&&8==t[2]?jt(t,n):8!=(15&t[0])||t[0]>>4>7||(t[0]<<8|t[1])%31?Ut(t,n):Nt(t,n)}_e.AsyncDecompress=Qt,_e.decompress=Rt,_e.decompressSync=Vt;var Wt=function(t,r,e,o){for(var i in t){var a=t[i],s=r+i;a instanceof n?e[s]=[a,o]:Array.isArray(a)?e[s]=[a[0],V(o,a[1])]:Wt(a,s+"/",e,o)}};function Xt(t,r){var e=t.length;if(!r&&"undefined"!=typeof TextEncoder)return(new TextEncoder).encode(t);for(var o=new n(t.length+(t.length>>>1)),i=0,a=function(t){o[i++]=t},s=0;s<e;++s){if(i+5>o.length){var f=new n(i+8+(e-s<<1));f.set(o),o=f}var u=t.charCodeAt(s);u<128||r?a(u):u<2048?(a(192|u>>>6),a(128|63&u)):u>55295&&u<57344?(a(240|(u=65536+(1047552&u)|1023&t.charCodeAt(++s))>>>18),a(128|u>>>12&63),a(128|u>>>6&63),a(128|63&u)):(a(224|u>>>12),a(128|u>>>6&63),a(128|63&u))}return O(o,0,i)}function $t(t,n){var r="";if(!n&&"undefined"!=typeof TextDecoder)return(new TextDecoder).decode(t);for(var e=0;e<t.length;){var o=t[e++];o<128||n?r+=String.fromCharCode(o):o<224?r+=String.fromCharCode((31&o)<<6|63&t[e++]):o<240?r+=String.fromCharCode((15&o)<<12|(63&t[e++])<<6|63&t[e++]):(o=((15&o)<<18|(63&t[e++])<<12|(63&t[e++])<<6|63&t[e++])-65536,r+=String.fromCharCode(55296|o>>10,56320|1023&o))}return r}_e.strToU8=Xt,_e.strFromU8=$t;var tn=function(t,n){var r=2048&pt(t,n+6),e=pt(t,n+8),o=vt(t,n+=18),i=vt(t,n+4),a=pt(t,n+8);return[o,e,i,$t(t.subarray(n+=12,n+=a),!r),n]},nn=function(t,n,r,e,o,i,a,s,f,u){var h=i.length,c=e.length;dt(t,n,null!=f?33639248:67324752),n+=4,null!=f&&(t[n]=20,n+=2),t[n]=20,n+=2,t[n++]=8==u&&(1==s.level?6:s.level<6?4:9==s.level?2:0),t[n++]=a&&8,t[n]=u,n+=2;var l=new Date(s.mtime||Date.now()),p=l.getFullYear()-1980;if(p<0||p>119)throw"date not in range 1980-2099";dt(t,n,p<<25|l.getMonth()+1<<21|l.getDate()<<16|l.getHours()<<11|l.getMinutes()<<5|l.getSeconds()>>>1),dt(t,n+=4,r),dt(t,n+4,c),dt(t,n+8,o),dt(t,n+12,h),n+=16,null!=f&&(dt(t,n+=10,f),n+=4),t.set(i,n),n+=h,null==f&&t.set(e,n)},rn=function(t,n,r,e,o){dt(t,n,101010256),dt(t,n+8,r),dt(t,n+10,r),dt(t,n+12,e),dt(t,n+16,o)};function en(t,r,e){e||(e=r,r={});var o={};Wt(t,"",o,r);var i=Object.keys(o),a=i.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,o=f-s;f=0;for(var i=0;i<u;++i){var a=h[i];nn(t,f,a.c,a.d,a.m,a.n,a.u,a.p,null,a.t),nn(t,s,a.c,a.d,a.m,a.n,a.u,a.p,f,a.t),s+=46+a.n.length,f+=30+a.n.length+a.d.length}rn(t,s,h.length,o,r),e(null,t)};a||p();for(var v=function(t){var n=i[t],u=o[n],v=u[0],d=u[1],g=P(),w=v.length;g.p(v);var x=Xt(n),y=x.length,m=0==d.level?0:8;if(x.length>65535)throw"filename too long";var b=function(r,o){if(r)l(),e(r,null);else{var i=o.length;h[t]={t:m,d:o,m:w,c:g.d(),u:n.length!=i,n:x,p:d},s+=30+y+i,f+=76+2*y+i,--a||p()}};m?w<16e4?b(null,kt(v,r)):c.push(Mt(v,r,b)):b(null,v)},d=0;d<u;++d)v(d);return l}function on(t,r){void 0===r&&(r={});var e={},o=[];Wt(t,"",e,r);var i=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=Xt(s),p=l.length;if(l.length>65535)throw"filename too long";var v=c?kt(u,h):u,d=v.length,g=P();g.p(u),o.push({t:c,d:v,m:u.length,c:g.d(),u:s.length!=p,n:l,o:i,p:h}),i+=30+p+d,a+=76+2*p+d}for(var w=new n(a+22),x=i,y=a-i,m=0;m<o.length;++m){var b=o[m];nn(w,b.o,b.c,b.d,b.m,b.n,b.u,b.p,null,b.t),nn(w,i,b.c,b.d,b.m,b.n,b.u,b.p,b.o,b.t),i+=46+b.n.length}return rn(w,i,o.length,y,x),w}function an(t,r){for(var e=[],o=function(){for(var t=0;t<e.length;++t)e[t]()},i={},a=t.length-22;101010256!=vt(t,a);--a)if(!a||t.length-a>65558)throw"invalid zip file";var s=pt(t,a+8);s||r(null,{});for(var f=s,u=vt(t,a+16),h=function(e){var a=vt(t,u+42);u+=46+pt(t,u+28)+pt(t,u+30)+pt(t,u+32);var f=tn(t,a),h=f[0],c=f[1],l=f[2],p=f[3],v=f[4],d=function(t,n){t?(o(),r(t,null)):(i[p]=n,--s||r(null,i))};if(c){if(8!=c)throw"unknown compression type "+c;var g=t.subarray(v,v+h);h<32e4?d(null,Ut(g,new n(l))):Gt(g,{size:l},d)}else d(null,O(t,v,v+h))},c=0;c<f;++c)h();return o}function sn(t){for(var r={},e=t.length-22;101010256!=vt(t,e);--e)if(!e||t.length-e>65558)throw"invalid zip file";var o=pt(t,e+8);if(!o)return{};for(var i=vt(t,e+16),a=0;a<o;++a){var s=vt(t,i+42);i+=46+pt(t,i+28)+pt(t,i+30)+pt(t,i+32);var f=tn(t,s),u=f[0],h=f[1],c=f[2],l=f[3],p=f[4];if(h){if(8!=h)throw"unknown compression type "+h;r[l]=Ut(t.subarray(p,p+u),new n(c))}else r[l]=O(t,p,p+u)}return r}_e.zip=en,_e.zipSync=on,_e.unzip=an,_e.unzipSync=sn;return _e})
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc