artifactuse 0.3.1 → 0.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/core/binaryPreview.d.ts +3 -0
- package/dist/core/detector.d.ts +32 -0
- package/dist/{index-vmcpJRYe.js → index-N70SEeFL.js} +356 -310
- package/dist/index.js +1 -1
- package/dist/{jszip.min-CdmYyw5L.js → jszip.min-BdBnWAEK.js} +896 -854
- package/dist/react/index.js +810 -782
- package/dist/styles/components/panel.css +75 -0
- package/dist/svelte/index.js +2284 -2119
- package/dist/vue/index.js +1509 -1419
- package/dist/vue2/index.js +410 -82
- package/package.json +1 -1
|
@@ -1,11 +1,50 @@
|
|
|
1
|
+
const It = {
|
|
2
|
+
png: "image/png",
|
|
3
|
+
jpg: "image/jpeg",
|
|
4
|
+
jpeg: "image/jpeg",
|
|
5
|
+
gif: "image/gif",
|
|
6
|
+
webp: "image/webp",
|
|
7
|
+
ico: "image/x-icon",
|
|
8
|
+
bmp: "image/bmp",
|
|
9
|
+
tiff: "image/tiff",
|
|
10
|
+
tif: "image/tiff",
|
|
11
|
+
svg: "image/svg+xml",
|
|
12
|
+
mp3: "audio/mpeg",
|
|
13
|
+
wav: "audio/wav",
|
|
14
|
+
ogg: "audio/ogg",
|
|
15
|
+
flac: "audio/flac",
|
|
16
|
+
aac: "audio/aac",
|
|
17
|
+
mp4: "video/mp4",
|
|
18
|
+
m4a: "video/mp4",
|
|
19
|
+
webm: "video/webm",
|
|
20
|
+
pdf: "application/pdf",
|
|
21
|
+
woff: "font/woff",
|
|
22
|
+
woff2: "font/woff2",
|
|
23
|
+
ttf: "font/ttf",
|
|
24
|
+
eot: "application/vnd.ms-fontobject",
|
|
25
|
+
otf: "font/otf",
|
|
26
|
+
bin: "application/octet-stream"
|
|
27
|
+
};
|
|
28
|
+
function Rt(st) {
|
|
29
|
+
return It[st == null ? void 0 : st.toLowerCase()] ?? "application/octet-stream";
|
|
30
|
+
}
|
|
31
|
+
function Tt(st, kt) {
|
|
32
|
+
const _ = atob(st), N = new Uint8Array(_.length);
|
|
33
|
+
for (let u = 0; u < _.length; u++) N[u] = _.charCodeAt(u);
|
|
34
|
+
const k = new Blob([N], { type: kt });
|
|
35
|
+
return URL.createObjectURL(k);
|
|
36
|
+
}
|
|
37
|
+
function Dt(st) {
|
|
38
|
+
st != null && st.startsWith("blob:") && URL.revokeObjectURL(st);
|
|
39
|
+
}
|
|
1
40
|
var vt = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
2
|
-
function
|
|
3
|
-
return
|
|
41
|
+
function Ot(st) {
|
|
42
|
+
return st && st.__esModule && Object.prototype.hasOwnProperty.call(st, "default") ? st.default : st;
|
|
4
43
|
}
|
|
5
|
-
function yt(
|
|
6
|
-
throw new Error('Could not dynamically require "' +
|
|
44
|
+
function yt(st) {
|
|
45
|
+
throw new Error('Could not dynamically require "' + st + '". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.');
|
|
7
46
|
}
|
|
8
|
-
var
|
|
47
|
+
var zt = { exports: {} };
|
|
9
48
|
/*!
|
|
10
49
|
|
|
11
50
|
JSZip v3.10.1 - A JavaScript class for generating and reading zip files
|
|
@@ -17,168 +56,168 @@ Dual licenced under the MIT license or GPLv3. See https://raw.github.com/Stuk/js
|
|
|
17
56
|
JSZip uses the library pako released under the MIT license :
|
|
18
57
|
https://github.com/nodeca/pako/blob/main/LICENSE
|
|
19
58
|
*/
|
|
20
|
-
(function(
|
|
21
|
-
(function(
|
|
22
|
-
|
|
59
|
+
(function(st, kt) {
|
|
60
|
+
(function(_) {
|
|
61
|
+
st.exports = _();
|
|
23
62
|
})(function() {
|
|
24
|
-
return function
|
|
25
|
-
function o(
|
|
26
|
-
if (!k[
|
|
27
|
-
if (!
|
|
63
|
+
return function _(N, k, u) {
|
|
64
|
+
function o(g, y) {
|
|
65
|
+
if (!k[g]) {
|
|
66
|
+
if (!N[g]) {
|
|
28
67
|
var p = typeof yt == "function" && yt;
|
|
29
|
-
if (!y && p) return p(
|
|
30
|
-
if (n) return n(
|
|
31
|
-
var
|
|
32
|
-
throw
|
|
68
|
+
if (!y && p) return p(g, !0);
|
|
69
|
+
if (n) return n(g, !0);
|
|
70
|
+
var b = new Error("Cannot find module '" + g + "'");
|
|
71
|
+
throw b.code = "MODULE_NOT_FOUND", b;
|
|
33
72
|
}
|
|
34
|
-
var i = k[
|
|
35
|
-
|
|
36
|
-
var r =
|
|
73
|
+
var i = k[g] = { exports: {} };
|
|
74
|
+
N[g][0].call(i.exports, function(d) {
|
|
75
|
+
var r = N[g][1][d];
|
|
37
76
|
return o(r || d);
|
|
38
|
-
}, i, i.exports,
|
|
77
|
+
}, i, i.exports, _, N, k, u);
|
|
39
78
|
}
|
|
40
|
-
return k[
|
|
79
|
+
return k[g].exports;
|
|
41
80
|
}
|
|
42
|
-
for (var n = typeof yt == "function" && yt,
|
|
81
|
+
for (var n = typeof yt == "function" && yt, h = 0; h < u.length; h++) o(u[h]);
|
|
43
82
|
return o;
|
|
44
|
-
}({ 1: [function(
|
|
45
|
-
var
|
|
46
|
-
k.encode = function(
|
|
47
|
-
for (var
|
|
48
|
-
return
|
|
49
|
-
}, k.decode = function(
|
|
50
|
-
var
|
|
51
|
-
if (
|
|
52
|
-
var c, v = 3 * (
|
|
53
|
-
if (
|
|
54
|
-
for (c = o.uint8array ? new Uint8Array(0 | v) : new Array(0 | v); r <
|
|
83
|
+
}({ 1: [function(_, N, k) {
|
|
84
|
+
var u = _("./utils"), o = _("./support"), n = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";
|
|
85
|
+
k.encode = function(h) {
|
|
86
|
+
for (var g, y, p, b, i, d, r, l = [], a = 0, c = h.length, v = c, S = u.getTypeOf(h) !== "string"; a < h.length; ) v = c - a, p = S ? (g = h[a++], y = a < c ? h[a++] : 0, a < c ? h[a++] : 0) : (g = h.charCodeAt(a++), y = a < c ? h.charCodeAt(a++) : 0, a < c ? h.charCodeAt(a++) : 0), b = g >> 2, i = (3 & g) << 4 | y >> 4, d = 1 < v ? (15 & y) << 2 | p >> 6 : 64, r = 2 < v ? 63 & p : 64, l.push(n.charAt(b) + n.charAt(i) + n.charAt(d) + n.charAt(r));
|
|
87
|
+
return l.join("");
|
|
88
|
+
}, k.decode = function(h) {
|
|
89
|
+
var g, y, p, b, i, d, r = 0, l = 0, a = "data:";
|
|
90
|
+
if (h.substr(0, a.length) === a) throw new Error("Invalid base64 input, it looks like a data url.");
|
|
91
|
+
var c, v = 3 * (h = h.replace(/[^A-Za-z0-9+/=]/g, "")).length / 4;
|
|
92
|
+
if (h.charAt(h.length - 1) === n.charAt(64) && v--, h.charAt(h.length - 2) === n.charAt(64) && v--, v % 1 != 0) throw new Error("Invalid base64 input, bad content length.");
|
|
93
|
+
for (c = o.uint8array ? new Uint8Array(0 | v) : new Array(0 | v); r < h.length; ) g = n.indexOf(h.charAt(r++)) << 2 | (b = n.indexOf(h.charAt(r++))) >> 4, y = (15 & b) << 4 | (i = n.indexOf(h.charAt(r++))) >> 2, p = (3 & i) << 6 | (d = n.indexOf(h.charAt(r++))), c[l++] = g, i !== 64 && (c[l++] = y), d !== 64 && (c[l++] = p);
|
|
55
94
|
return c;
|
|
56
95
|
};
|
|
57
|
-
}, { "./support": 30, "./utils": 32 }], 2: [function(
|
|
58
|
-
var
|
|
59
|
-
function
|
|
60
|
-
this.compressedSize = y, this.uncompressedSize = p, this.crc32 =
|
|
96
|
+
}, { "./support": 30, "./utils": 32 }], 2: [function(_, N, k) {
|
|
97
|
+
var u = _("./external"), o = _("./stream/DataWorker"), n = _("./stream/Crc32Probe"), h = _("./stream/DataLengthProbe");
|
|
98
|
+
function g(y, p, b, i, d) {
|
|
99
|
+
this.compressedSize = y, this.uncompressedSize = p, this.crc32 = b, this.compression = i, this.compressedContent = d;
|
|
61
100
|
}
|
|
62
|
-
|
|
63
|
-
var y = new o(
|
|
101
|
+
g.prototype = { getContentWorker: function() {
|
|
102
|
+
var y = new o(u.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new h("data_length")), p = this;
|
|
64
103
|
return y.on("end", function() {
|
|
65
104
|
if (this.streamInfo.data_length !== p.uncompressedSize) throw new Error("Bug : uncompressed data size mismatch");
|
|
66
105
|
}), y;
|
|
67
106
|
}, getCompressedWorker: function() {
|
|
68
|
-
return new o(
|
|
69
|
-
} },
|
|
70
|
-
return y.pipe(new n()).pipe(new
|
|
71
|
-
},
|
|
72
|
-
}, { "./external": 6, "./stream/Crc32Probe": 25, "./stream/DataLengthProbe": 26, "./stream/DataWorker": 27 }], 3: [function(
|
|
73
|
-
var
|
|
107
|
+
return new o(u.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize", this.compressedSize).withStreamInfo("uncompressedSize", this.uncompressedSize).withStreamInfo("crc32", this.crc32).withStreamInfo("compression", this.compression);
|
|
108
|
+
} }, g.createWorkerFrom = function(y, p, b) {
|
|
109
|
+
return y.pipe(new n()).pipe(new h("uncompressedSize")).pipe(p.compressWorker(b)).pipe(new h("compressedSize")).withStreamInfo("compression", p);
|
|
110
|
+
}, N.exports = g;
|
|
111
|
+
}, { "./external": 6, "./stream/Crc32Probe": 25, "./stream/DataLengthProbe": 26, "./stream/DataWorker": 27 }], 3: [function(_, N, k) {
|
|
112
|
+
var u = _("./stream/GenericWorker");
|
|
74
113
|
k.STORE = { magic: "\0\0", compressWorker: function() {
|
|
75
|
-
return new
|
|
114
|
+
return new u("STORE compression");
|
|
76
115
|
}, uncompressWorker: function() {
|
|
77
|
-
return new
|
|
78
|
-
} }, k.DEFLATE =
|
|
79
|
-
}, { "./flate": 7, "./stream/GenericWorker": 28 }], 4: [function(
|
|
80
|
-
var
|
|
81
|
-
for (var n,
|
|
82
|
-
n =
|
|
116
|
+
return new u("STORE decompression");
|
|
117
|
+
} }, k.DEFLATE = _("./flate");
|
|
118
|
+
}, { "./flate": 7, "./stream/GenericWorker": 28 }], 4: [function(_, N, k) {
|
|
119
|
+
var u = _("./utils"), o = function() {
|
|
120
|
+
for (var n, h = [], g = 0; g < 256; g++) {
|
|
121
|
+
n = g;
|
|
83
122
|
for (var y = 0; y < 8; y++) n = 1 & n ? 3988292384 ^ n >>> 1 : n >>> 1;
|
|
84
|
-
|
|
123
|
+
h[g] = n;
|
|
85
124
|
}
|
|
86
|
-
return
|
|
125
|
+
return h;
|
|
87
126
|
}();
|
|
88
|
-
|
|
89
|
-
return n !== void 0 && n.length ?
|
|
90
|
-
var i = o, d =
|
|
91
|
-
|
|
92
|
-
for (var r =
|
|
93
|
-
return -1 ^
|
|
94
|
-
}(0 |
|
|
95
|
-
var i = o, d =
|
|
96
|
-
|
|
97
|
-
for (var r =
|
|
98
|
-
return -1 ^
|
|
99
|
-
}(0 |
|
|
127
|
+
N.exports = function(n, h) {
|
|
128
|
+
return n !== void 0 && n.length ? u.getTypeOf(n) !== "string" ? function(g, y, p, b) {
|
|
129
|
+
var i = o, d = b + p;
|
|
130
|
+
g ^= -1;
|
|
131
|
+
for (var r = b; r < d; r++) g = g >>> 8 ^ i[255 & (g ^ y[r])];
|
|
132
|
+
return -1 ^ g;
|
|
133
|
+
}(0 | h, n, n.length, 0) : function(g, y, p, b) {
|
|
134
|
+
var i = o, d = b + p;
|
|
135
|
+
g ^= -1;
|
|
136
|
+
for (var r = b; r < d; r++) g = g >>> 8 ^ i[255 & (g ^ y.charCodeAt(r))];
|
|
137
|
+
return -1 ^ g;
|
|
138
|
+
}(0 | h, n, n.length, 0) : 0;
|
|
100
139
|
};
|
|
101
|
-
}, { "./utils": 32 }], 5: [function(
|
|
140
|
+
}, { "./utils": 32 }], 5: [function(_, N, k) {
|
|
102
141
|
k.base64 = !1, k.binary = !1, k.dir = !1, k.createFolders = !0, k.date = null, k.compression = null, k.compressionOptions = null, k.comment = null, k.unixPermissions = null, k.dosPermissions = null;
|
|
103
|
-
}, {}], 6: [function(
|
|
104
|
-
var
|
|
105
|
-
|
|
106
|
-
}, { lie: 37 }], 7: [function(
|
|
107
|
-
var
|
|
108
|
-
function y(p,
|
|
109
|
-
|
|
110
|
-
}
|
|
111
|
-
k.magic = "\b\0", n.inherits(y,
|
|
112
|
-
this.meta = p.meta, this._pako === null && this._createPako(), this._pako.push(n.transformTo(
|
|
142
|
+
}, {}], 6: [function(_, N, k) {
|
|
143
|
+
var u = null;
|
|
144
|
+
u = typeof Promise < "u" ? Promise : _("lie"), N.exports = { Promise: u };
|
|
145
|
+
}, { lie: 37 }], 7: [function(_, N, k) {
|
|
146
|
+
var u = typeof Uint8Array < "u" && typeof Uint16Array < "u" && typeof Uint32Array < "u", o = _("pako"), n = _("./utils"), h = _("./stream/GenericWorker"), g = u ? "uint8array" : "array";
|
|
147
|
+
function y(p, b) {
|
|
148
|
+
h.call(this, "FlateWorker/" + p), this._pako = null, this._pakoAction = p, this._pakoOptions = b, this.meta = {};
|
|
149
|
+
}
|
|
150
|
+
k.magic = "\b\0", n.inherits(y, h), y.prototype.processChunk = function(p) {
|
|
151
|
+
this.meta = p.meta, this._pako === null && this._createPako(), this._pako.push(n.transformTo(g, p.data), !1);
|
|
113
152
|
}, y.prototype.flush = function() {
|
|
114
|
-
|
|
153
|
+
h.prototype.flush.call(this), this._pako === null && this._createPako(), this._pako.push([], !0);
|
|
115
154
|
}, y.prototype.cleanUp = function() {
|
|
116
|
-
|
|
155
|
+
h.prototype.cleanUp.call(this), this._pako = null;
|
|
117
156
|
}, y.prototype._createPako = function() {
|
|
118
157
|
this._pako = new o[this._pakoAction]({ raw: !0, level: this._pakoOptions.level || -1 });
|
|
119
158
|
var p = this;
|
|
120
|
-
this._pako.onData = function(
|
|
121
|
-
p.push({ data:
|
|
159
|
+
this._pako.onData = function(b) {
|
|
160
|
+
p.push({ data: b, meta: p.meta });
|
|
122
161
|
};
|
|
123
162
|
}, k.compressWorker = function(p) {
|
|
124
163
|
return new y("Deflate", p);
|
|
125
164
|
}, k.uncompressWorker = function() {
|
|
126
165
|
return new y("Inflate", {});
|
|
127
166
|
};
|
|
128
|
-
}, { "./stream/GenericWorker": 28, "./utils": 32, pako: 38 }], 8: [function(
|
|
129
|
-
function
|
|
130
|
-
var r,
|
|
131
|
-
for (r = 0; r < d; r++)
|
|
132
|
-
return
|
|
133
|
-
}
|
|
134
|
-
function o(i, d, r,
|
|
135
|
-
var v, S, x = i.file, D = i.compression, O = c !==
|
|
167
|
+
}, { "./stream/GenericWorker": 28, "./utils": 32, pako: 38 }], 8: [function(_, N, k) {
|
|
168
|
+
function u(i, d) {
|
|
169
|
+
var r, l = "";
|
|
170
|
+
for (r = 0; r < d; r++) l += String.fromCharCode(255 & i), i >>>= 8;
|
|
171
|
+
return l;
|
|
172
|
+
}
|
|
173
|
+
function o(i, d, r, l, a, c) {
|
|
174
|
+
var v, S, x = i.file, D = i.compression, O = c !== g.utf8encode, j = n.transformTo("string", c(x.name)), I = n.transformTo("string", g.utf8encode(x.name)), W = x.comment, V = n.transformTo("string", c(W)), m = n.transformTo("string", g.utf8encode(W)), B = I.length !== x.name.length, e = m.length !== W.length, T = "", J = "", P = "", $ = x.dir, L = x.date, q = { crc32: 0, compressedSize: 0, uncompressedSize: 0 };
|
|
136
175
|
d && !r || (q.crc32 = i.crc32, q.compressedSize = i.compressedSize, q.uncompressedSize = i.uncompressedSize);
|
|
137
176
|
var E = 0;
|
|
138
177
|
d && (E |= 8), O || !B && !e || (E |= 2048);
|
|
139
178
|
var C = 0, X = 0;
|
|
140
179
|
$ && (C |= 16), a === "UNIX" ? (X = 798, C |= function(H, nt) {
|
|
141
|
-
var
|
|
142
|
-
return H || (
|
|
180
|
+
var ut = H;
|
|
181
|
+
return H || (ut = nt ? 16893 : 33204), (65535 & ut) << 16;
|
|
143
182
|
}(x.unixPermissions, $)) : (X = 20, C |= function(H) {
|
|
144
183
|
return 63 & (H || 0);
|
|
145
|
-
}(x.dosPermissions)), v =
|
|
184
|
+
}(x.dosPermissions)), v = L.getUTCHours(), v <<= 6, v |= L.getUTCMinutes(), v <<= 5, v |= L.getUTCSeconds() / 2, S = L.getUTCFullYear() - 1980, S <<= 4, S |= L.getUTCMonth() + 1, S <<= 5, S |= L.getUTCDate(), B && (J = u(1, 1) + u(y(j), 4) + I, T += "up" + u(J.length, 2) + J), e && (P = u(1, 1) + u(y(V), 4) + m, T += "uc" + u(P.length, 2) + P);
|
|
146
185
|
var G = "";
|
|
147
186
|
return G += `
|
|
148
|
-
\0`, G +=
|
|
187
|
+
\0`, G += u(E, 2), G += D.magic, G += u(v, 2), G += u(S, 2), G += u(q.crc32, 4), G += u(q.compressedSize, 4), G += u(q.uncompressedSize, 4), G += u(j.length, 2), G += u(T.length, 2), { fileRecord: p.LOCAL_FILE_HEADER + G + j + T, dirRecord: p.CENTRAL_FILE_HEADER + u(X, 2) + G + u(V.length, 2) + "\0\0\0\0" + u(C, 4) + u(l, 4) + j + T + V };
|
|
149
188
|
}
|
|
150
|
-
var n =
|
|
151
|
-
function
|
|
152
|
-
|
|
189
|
+
var n = _("../utils"), h = _("../stream/GenericWorker"), g = _("../utf8"), y = _("../crc32"), p = _("../signature");
|
|
190
|
+
function b(i, d, r, l) {
|
|
191
|
+
h.call(this, "ZipFileWorker"), this.bytesWritten = 0, this.zipComment = d, this.zipPlatform = r, this.encodeFileName = l, this.streamFiles = i, this.accumulate = !1, this.contentBuffer = [], this.dirRecords = [], this.currentSourceOffset = 0, this.entriesCount = 0, this.currentFile = null, this._sources = [];
|
|
153
192
|
}
|
|
154
|
-
n.inherits(
|
|
155
|
-
var d = i.meta.percent || 0, r = this.entriesCount,
|
|
156
|
-
this.accumulate ? this.contentBuffer.push(i) : (this.bytesWritten += i.data.length,
|
|
157
|
-
},
|
|
193
|
+
n.inherits(b, h), b.prototype.push = function(i) {
|
|
194
|
+
var d = i.meta.percent || 0, r = this.entriesCount, l = this._sources.length;
|
|
195
|
+
this.accumulate ? this.contentBuffer.push(i) : (this.bytesWritten += i.data.length, h.prototype.push.call(this, { data: i.data, meta: { currentFile: this.currentFile, percent: r ? (d + 100 * (r - l - 1)) / r : 100 } }));
|
|
196
|
+
}, b.prototype.openedSource = function(i) {
|
|
158
197
|
this.currentSourceOffset = this.bytesWritten, this.currentFile = i.file.name;
|
|
159
198
|
var d = this.streamFiles && !i.file.dir;
|
|
160
199
|
if (d) {
|
|
161
200
|
var r = o(i, d, !1, this.currentSourceOffset, this.zipPlatform, this.encodeFileName);
|
|
162
201
|
this.push({ data: r.fileRecord, meta: { percent: 0 } });
|
|
163
202
|
} else this.accumulate = !0;
|
|
164
|
-
},
|
|
203
|
+
}, b.prototype.closedSource = function(i) {
|
|
165
204
|
this.accumulate = !1;
|
|
166
205
|
var d = this.streamFiles && !i.file.dir, r = o(i, d, !0, this.currentSourceOffset, this.zipPlatform, this.encodeFileName);
|
|
167
|
-
if (this.dirRecords.push(r.dirRecord), d) this.push({ data: function(
|
|
168
|
-
return p.DATA_DESCRIPTOR + l
|
|
206
|
+
if (this.dirRecords.push(r.dirRecord), d) this.push({ data: function(l) {
|
|
207
|
+
return p.DATA_DESCRIPTOR + u(l.crc32, 4) + u(l.compressedSize, 4) + u(l.uncompressedSize, 4);
|
|
169
208
|
}(i), meta: { percent: 100 } });
|
|
170
209
|
else for (this.push({ data: r.fileRecord, meta: { percent: 0 } }); this.contentBuffer.length; ) this.push(this.contentBuffer.shift());
|
|
171
210
|
this.currentFile = null;
|
|
172
|
-
},
|
|
211
|
+
}, b.prototype.flush = function() {
|
|
173
212
|
for (var i = this.bytesWritten, d = 0; d < this.dirRecords.length; d++) this.push({ data: this.dirRecords[d], meta: { percent: 100 } });
|
|
174
|
-
var r = this.bytesWritten - i,
|
|
213
|
+
var r = this.bytesWritten - i, l = function(a, c, v, S, x) {
|
|
175
214
|
var D = n.transformTo("string", x(S));
|
|
176
|
-
return p.CENTRAL_DIRECTORY_END + "\0\0\0\0" +
|
|
215
|
+
return p.CENTRAL_DIRECTORY_END + "\0\0\0\0" + u(a, 2) + u(a, 2) + u(c, 4) + u(v, 4) + u(D.length, 2) + D;
|
|
177
216
|
}(this.dirRecords.length, r, i, this.zipComment, this.encodeFileName);
|
|
178
|
-
this.push({ data:
|
|
179
|
-
},
|
|
217
|
+
this.push({ data: l, meta: { percent: 100 } });
|
|
218
|
+
}, b.prototype.prepareNextSource = function() {
|
|
180
219
|
this.previous = this._sources.shift(), this.openedSource(this.previous.streamInfo), this.isPaused ? this.previous.pause() : this.previous.resume();
|
|
181
|
-
},
|
|
220
|
+
}, b.prototype.registerPrevious = function(i) {
|
|
182
221
|
this._sources.push(i);
|
|
183
222
|
var d = this;
|
|
184
223
|
return i.on("data", function(r) {
|
|
@@ -188,149 +227,149 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
188
227
|
}), i.on("error", function(r) {
|
|
189
228
|
d.error(r);
|
|
190
229
|
}), this;
|
|
191
|
-
},
|
|
192
|
-
return !!
|
|
193
|
-
},
|
|
230
|
+
}, b.prototype.resume = function() {
|
|
231
|
+
return !!h.prototype.resume.call(this) && (!this.previous && this._sources.length ? (this.prepareNextSource(), !0) : this.previous || this._sources.length || this.generatedError ? void 0 : (this.end(), !0));
|
|
232
|
+
}, b.prototype.error = function(i) {
|
|
194
233
|
var d = this._sources;
|
|
195
|
-
if (!
|
|
234
|
+
if (!h.prototype.error.call(this, i)) return !1;
|
|
196
235
|
for (var r = 0; r < d.length; r++) try {
|
|
197
236
|
d[r].error(i);
|
|
198
237
|
} catch {
|
|
199
238
|
}
|
|
200
239
|
return !0;
|
|
201
|
-
},
|
|
202
|
-
|
|
240
|
+
}, b.prototype.lock = function() {
|
|
241
|
+
h.prototype.lock.call(this);
|
|
203
242
|
for (var i = this._sources, d = 0; d < i.length; d++) i[d].lock();
|
|
204
|
-
},
|
|
205
|
-
}, { "../crc32": 4, "../signature": 23, "../stream/GenericWorker": 28, "../utf8": 31, "../utils": 32 }], 9: [function(
|
|
206
|
-
var
|
|
207
|
-
k.generateWorker = function(n,
|
|
208
|
-
var y = new o(
|
|
243
|
+
}, N.exports = b;
|
|
244
|
+
}, { "../crc32": 4, "../signature": 23, "../stream/GenericWorker": 28, "../utf8": 31, "../utils": 32 }], 9: [function(_, N, k) {
|
|
245
|
+
var u = _("../compressions"), o = _("./ZipFileWorker");
|
|
246
|
+
k.generateWorker = function(n, h, g) {
|
|
247
|
+
var y = new o(h.streamFiles, g, h.platform, h.encodeFileName), p = 0;
|
|
209
248
|
try {
|
|
210
|
-
n.forEach(function(
|
|
249
|
+
n.forEach(function(b, i) {
|
|
211
250
|
p++;
|
|
212
251
|
var d = function(c, v) {
|
|
213
|
-
var S = c || v, x =
|
|
252
|
+
var S = c || v, x = u[S];
|
|
214
253
|
if (!x) throw new Error(S + " is not a valid compression method !");
|
|
215
254
|
return x;
|
|
216
|
-
}(i.options.compression,
|
|
217
|
-
i._compressWorker(d, r).withStreamInfo("file", { name:
|
|
255
|
+
}(i.options.compression, h.compression), r = i.options.compressionOptions || h.compressionOptions || {}, l = i.dir, a = i.date;
|
|
256
|
+
i._compressWorker(d, r).withStreamInfo("file", { name: b, dir: l, date: a, comment: i.comment || "", unixPermissions: i.unixPermissions, dosPermissions: i.dosPermissions }).pipe(y);
|
|
218
257
|
}), y.entriesCount = p;
|
|
219
|
-
} catch (
|
|
220
|
-
y.error(
|
|
258
|
+
} catch (b) {
|
|
259
|
+
y.error(b);
|
|
221
260
|
}
|
|
222
261
|
return y;
|
|
223
262
|
};
|
|
224
|
-
}, { "../compressions": 3, "./ZipFileWorker": 8 }], 10: [function(
|
|
225
|
-
function
|
|
226
|
-
if (!(this instanceof
|
|
263
|
+
}, { "../compressions": 3, "./ZipFileWorker": 8 }], 10: [function(_, N, k) {
|
|
264
|
+
function u() {
|
|
265
|
+
if (!(this instanceof u)) return new u();
|
|
227
266
|
if (arguments.length) throw new Error("The constructor with parameters has been removed in JSZip 3.0, please check the upgrade guide.");
|
|
228
267
|
this.files = /* @__PURE__ */ Object.create(null), this.comment = null, this.root = "", this.clone = function() {
|
|
229
|
-
var o = new
|
|
268
|
+
var o = new u();
|
|
230
269
|
for (var n in this) typeof this[n] != "function" && (o[n] = this[n]);
|
|
231
270
|
return o;
|
|
232
271
|
};
|
|
233
272
|
}
|
|
234
|
-
(
|
|
235
|
-
return new
|
|
236
|
-
},
|
|
237
|
-
}, { "./defaults": 5, "./external": 6, "./load": 11, "./object": 15, "./support": 30 }], 11: [function(
|
|
238
|
-
var
|
|
239
|
-
function p(
|
|
273
|
+
(u.prototype = _("./object")).loadAsync = _("./load"), u.support = _("./support"), u.defaults = _("./defaults"), u.version = "3.10.1", u.loadAsync = function(o, n) {
|
|
274
|
+
return new u().loadAsync(o, n);
|
|
275
|
+
}, u.external = _("./external"), N.exports = u;
|
|
276
|
+
}, { "./defaults": 5, "./external": 6, "./load": 11, "./object": 15, "./support": 30 }], 11: [function(_, N, k) {
|
|
277
|
+
var u = _("./utils"), o = _("./external"), n = _("./utf8"), h = _("./zipEntries"), g = _("./stream/Crc32Probe"), y = _("./nodejsUtils");
|
|
278
|
+
function p(b) {
|
|
240
279
|
return new o.Promise(function(i, d) {
|
|
241
|
-
var r =
|
|
242
|
-
r.on("error", function(
|
|
243
|
-
d(
|
|
280
|
+
var r = b.decompressed.getContentWorker().pipe(new g());
|
|
281
|
+
r.on("error", function(l) {
|
|
282
|
+
d(l);
|
|
244
283
|
}).on("end", function() {
|
|
245
|
-
r.streamInfo.crc32 !==
|
|
284
|
+
r.streamInfo.crc32 !== b.decompressed.crc32 ? d(new Error("Corrupted zip : CRC32 mismatch")) : i();
|
|
246
285
|
}).resume();
|
|
247
286
|
});
|
|
248
287
|
}
|
|
249
|
-
|
|
288
|
+
N.exports = function(b, i) {
|
|
250
289
|
var d = this;
|
|
251
|
-
return i =
|
|
252
|
-
var
|
|
253
|
-
return
|
|
290
|
+
return i = u.extend(i || {}, { base64: !1, checkCRC32: !1, optimizedBinaryString: !1, createFolders: !1, decodeFileName: n.utf8decode }), y.isNode && y.isStream(b) ? o.Promise.reject(new Error("JSZip can't accept a stream when loading a zip file.")) : u.prepareContent("the loaded zip file", b, !0, i.optimizedBinaryString, i.base64).then(function(r) {
|
|
291
|
+
var l = new h(i);
|
|
292
|
+
return l.load(r), l;
|
|
254
293
|
}).then(function(r) {
|
|
255
|
-
var
|
|
256
|
-
if (i.checkCRC32) for (var c = 0; c < a.length; c++)
|
|
257
|
-
return o.Promise.all(
|
|
294
|
+
var l = [o.Promise.resolve(r)], a = r.files;
|
|
295
|
+
if (i.checkCRC32) for (var c = 0; c < a.length; c++) l.push(p(a[c]));
|
|
296
|
+
return o.Promise.all(l);
|
|
258
297
|
}).then(function(r) {
|
|
259
|
-
for (var
|
|
260
|
-
var v = a[c], S = v.fileNameStr, x =
|
|
298
|
+
for (var l = r.shift(), a = l.files, c = 0; c < a.length; c++) {
|
|
299
|
+
var v = a[c], S = v.fileNameStr, x = u.resolve(v.fileNameStr);
|
|
261
300
|
d.file(x, v.decompressed, { binary: !0, optimizedBinaryString: !0, date: v.date, dir: v.dir, comment: v.fileCommentStr.length ? v.fileCommentStr : null, unixPermissions: v.unixPermissions, dosPermissions: v.dosPermissions, createFolders: i.createFolders }), v.dir || (d.file(x).unsafeOriginalName = S);
|
|
262
301
|
}
|
|
263
|
-
return
|
|
302
|
+
return l.zipComment.length && (d.comment = l.zipComment), d;
|
|
264
303
|
});
|
|
265
304
|
};
|
|
266
|
-
}, { "./external": 6, "./nodejsUtils": 14, "./stream/Crc32Probe": 25, "./utf8": 31, "./utils": 32, "./zipEntries": 33 }], 12: [function(
|
|
267
|
-
var
|
|
268
|
-
function n(
|
|
269
|
-
o.call(this, "Nodejs stream input adapter for " +
|
|
270
|
-
}
|
|
271
|
-
|
|
272
|
-
var
|
|
273
|
-
(this._stream =
|
|
274
|
-
|
|
305
|
+
}, { "./external": 6, "./nodejsUtils": 14, "./stream/Crc32Probe": 25, "./utf8": 31, "./utils": 32, "./zipEntries": 33 }], 12: [function(_, N, k) {
|
|
306
|
+
var u = _("../utils"), o = _("../stream/GenericWorker");
|
|
307
|
+
function n(h, g) {
|
|
308
|
+
o.call(this, "Nodejs stream input adapter for " + h), this._upstreamEnded = !1, this._bindStream(g);
|
|
309
|
+
}
|
|
310
|
+
u.inherits(n, o), n.prototype._bindStream = function(h) {
|
|
311
|
+
var g = this;
|
|
312
|
+
(this._stream = h).pause(), h.on("data", function(y) {
|
|
313
|
+
g.push({ data: y, meta: { percent: 0 } });
|
|
275
314
|
}).on("error", function(y) {
|
|
276
|
-
|
|
315
|
+
g.isPaused ? this.generatedError = y : g.error(y);
|
|
277
316
|
}).on("end", function() {
|
|
278
|
-
|
|
317
|
+
g.isPaused ? g._upstreamEnded = !0 : g.end();
|
|
279
318
|
});
|
|
280
319
|
}, n.prototype.pause = function() {
|
|
281
320
|
return !!o.prototype.pause.call(this) && (this._stream.pause(), !0);
|
|
282
321
|
}, n.prototype.resume = function() {
|
|
283
322
|
return !!o.prototype.resume.call(this) && (this._upstreamEnded ? this.end() : this._stream.resume(), !0);
|
|
284
|
-
},
|
|
285
|
-
}, { "../stream/GenericWorker": 28, "../utils": 32 }], 13: [function(
|
|
286
|
-
var
|
|
287
|
-
function o(n,
|
|
288
|
-
|
|
323
|
+
}, N.exports = n;
|
|
324
|
+
}, { "../stream/GenericWorker": 28, "../utils": 32 }], 13: [function(_, N, k) {
|
|
325
|
+
var u = _("readable-stream").Readable;
|
|
326
|
+
function o(n, h, g) {
|
|
327
|
+
u.call(this, h), this._helper = n;
|
|
289
328
|
var y = this;
|
|
290
|
-
n.on("data", function(p,
|
|
291
|
-
y.push(p) || y._helper.pause(),
|
|
329
|
+
n.on("data", function(p, b) {
|
|
330
|
+
y.push(p) || y._helper.pause(), g && g(b);
|
|
292
331
|
}).on("error", function(p) {
|
|
293
332
|
y.emit("error", p);
|
|
294
333
|
}).on("end", function() {
|
|
295
334
|
y.push(null);
|
|
296
335
|
});
|
|
297
336
|
}
|
|
298
|
-
|
|
337
|
+
_("../utils").inherits(o, u), o.prototype._read = function() {
|
|
299
338
|
this._helper.resume();
|
|
300
|
-
},
|
|
301
|
-
}, { "../utils": 32, "readable-stream": 16 }], 14: [function(
|
|
302
|
-
|
|
303
|
-
if (Buffer.from && Buffer.from !== Uint8Array.from) return Buffer.from(
|
|
304
|
-
if (typeof
|
|
305
|
-
return new Buffer(
|
|
306
|
-
}, allocBuffer: function(
|
|
307
|
-
if (Buffer.alloc) return Buffer.alloc(
|
|
308
|
-
var o = new Buffer(
|
|
339
|
+
}, N.exports = o;
|
|
340
|
+
}, { "../utils": 32, "readable-stream": 16 }], 14: [function(_, N, k) {
|
|
341
|
+
N.exports = { isNode: typeof Buffer < "u", newBufferFrom: function(u, o) {
|
|
342
|
+
if (Buffer.from && Buffer.from !== Uint8Array.from) return Buffer.from(u, o);
|
|
343
|
+
if (typeof u == "number") throw new Error('The "data" argument must not be a number');
|
|
344
|
+
return new Buffer(u, o);
|
|
345
|
+
}, allocBuffer: function(u) {
|
|
346
|
+
if (Buffer.alloc) return Buffer.alloc(u);
|
|
347
|
+
var o = new Buffer(u);
|
|
309
348
|
return o.fill(0), o;
|
|
310
|
-
}, isBuffer: function(
|
|
311
|
-
return Buffer.isBuffer(
|
|
312
|
-
}, isStream: function(
|
|
313
|
-
return
|
|
349
|
+
}, isBuffer: function(u) {
|
|
350
|
+
return Buffer.isBuffer(u);
|
|
351
|
+
}, isStream: function(u) {
|
|
352
|
+
return u && typeof u.on == "function" && typeof u.pause == "function" && typeof u.resume == "function";
|
|
314
353
|
} };
|
|
315
|
-
}, {}], 15: [function(
|
|
316
|
-
function
|
|
317
|
-
var
|
|
318
|
-
W.date = W.date || /* @__PURE__ */ new Date(), W.compression !== null && (W.compression = W.compression.toUpperCase()), typeof W.unixPermissions == "string" && (W.unixPermissions = parseInt(W.unixPermissions, 8)), W.unixPermissions && 16384 & W.unixPermissions && (W.dir = !0), W.dosPermissions && 16 & W.dosPermissions && (W.dir = !0), W.dir && (x = a(x)), W.createFolders && (
|
|
354
|
+
}, {}], 15: [function(_, N, k) {
|
|
355
|
+
function u(x, D, O) {
|
|
356
|
+
var j, I = n.getTypeOf(D), W = n.extend(O || {}, y);
|
|
357
|
+
W.date = W.date || /* @__PURE__ */ new Date(), W.compression !== null && (W.compression = W.compression.toUpperCase()), typeof W.unixPermissions == "string" && (W.unixPermissions = parseInt(W.unixPermissions, 8)), W.unixPermissions && 16384 & W.unixPermissions && (W.dir = !0), W.dosPermissions && 16 & W.dosPermissions && (W.dir = !0), W.dir && (x = a(x)), W.createFolders && (j = l(x)) && c.call(this, j, !0);
|
|
319
358
|
var V = I === "string" && W.binary === !1 && W.base64 === !1;
|
|
320
359
|
O && O.binary !== void 0 || (W.binary = !V), (D instanceof p && D.uncompressedSize === 0 || W.dir || !D || D.length === 0) && (W.base64 = !1, W.binary = !0, D = "", W.compression = "STORE", I = "string");
|
|
321
360
|
var m = null;
|
|
322
|
-
m = D instanceof p || D instanceof
|
|
323
|
-
var B = new
|
|
361
|
+
m = D instanceof p || D instanceof h ? D : d.isNode && d.isStream(D) ? new r(x, D) : n.prepareContent(x, D, W.binary, W.optimizedBinaryString, W.base64);
|
|
362
|
+
var B = new b(x, m, W);
|
|
324
363
|
this.files[x] = B;
|
|
325
364
|
}
|
|
326
|
-
var o =
|
|
365
|
+
var o = _("./utf8"), n = _("./utils"), h = _("./stream/GenericWorker"), g = _("./stream/StreamHelper"), y = _("./defaults"), p = _("./compressedObject"), b = _("./zipObject"), i = _("./generate"), d = _("./nodejsUtils"), r = _("./nodejs/NodejsStreamInputAdapter"), l = function(x) {
|
|
327
366
|
x.slice(-1) === "/" && (x = x.substring(0, x.length - 1));
|
|
328
367
|
var D = x.lastIndexOf("/");
|
|
329
368
|
return 0 < D ? x.substring(0, D) : "";
|
|
330
369
|
}, a = function(x) {
|
|
331
370
|
return x.slice(-1) !== "/" && (x += "/"), x;
|
|
332
371
|
}, c = function(x, D) {
|
|
333
|
-
return D = D !== void 0 ? D : y.createFolders, x = a(x), this.files[x] ||
|
|
372
|
+
return D = D !== void 0 ? D : y.createFolders, x = a(x), this.files[x] || u.call(this, x, null, { dir: !0, createFolders: D }), this.files[x];
|
|
334
373
|
};
|
|
335
374
|
function v(x) {
|
|
336
375
|
return Object.prototype.toString.call(x) === "[object RegExp]";
|
|
@@ -338,19 +377,19 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
338
377
|
var S = { load: function() {
|
|
339
378
|
throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.");
|
|
340
379
|
}, forEach: function(x) {
|
|
341
|
-
var D, O,
|
|
342
|
-
for (D in this.files)
|
|
380
|
+
var D, O, j;
|
|
381
|
+
for (D in this.files) j = this.files[D], (O = D.slice(this.root.length, D.length)) && D.slice(0, this.root.length) === this.root && x(O, j);
|
|
343
382
|
}, filter: function(x) {
|
|
344
383
|
var D = [];
|
|
345
|
-
return this.forEach(function(O,
|
|
346
|
-
x(O,
|
|
384
|
+
return this.forEach(function(O, j) {
|
|
385
|
+
x(O, j) && D.push(j);
|
|
347
386
|
}), D;
|
|
348
387
|
}, file: function(x, D, O) {
|
|
349
|
-
if (arguments.length !== 1) return x = this.root + x,
|
|
388
|
+
if (arguments.length !== 1) return x = this.root + x, u.call(this, x, D, O), this;
|
|
350
389
|
if (v(x)) {
|
|
351
|
-
var
|
|
390
|
+
var j = x;
|
|
352
391
|
return this.filter(function(W, V) {
|
|
353
|
-
return !V.dir &&
|
|
392
|
+
return !V.dir && j.test(W);
|
|
354
393
|
});
|
|
355
394
|
}
|
|
356
395
|
var I = this.files[this.root + x];
|
|
@@ -360,15 +399,15 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
360
399
|
if (v(x)) return this.filter(function(I, W) {
|
|
361
400
|
return W.dir && x.test(I);
|
|
362
401
|
});
|
|
363
|
-
var D = this.root + x, O = c.call(this, D),
|
|
364
|
-
return
|
|
402
|
+
var D = this.root + x, O = c.call(this, D), j = this.clone();
|
|
403
|
+
return j.root = O.name, j;
|
|
365
404
|
}, remove: function(x) {
|
|
366
405
|
x = this.root + x;
|
|
367
406
|
var D = this.files[x];
|
|
368
407
|
if (D || (x.slice(-1) !== "/" && (x += "/"), D = this.files[x]), D && !D.dir) delete this.files[x];
|
|
369
408
|
else for (var O = this.filter(function(I, W) {
|
|
370
409
|
return W.name.slice(0, x.length) === x;
|
|
371
|
-
}),
|
|
410
|
+
}), j = 0; j < O.length; j++) delete this.files[O[j].name];
|
|
372
411
|
return this;
|
|
373
412
|
}, generate: function() {
|
|
374
413
|
throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.");
|
|
@@ -377,41 +416,41 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
377
416
|
try {
|
|
378
417
|
if ((O = n.extend(x || {}, { streamFiles: !1, compression: "STORE", compressionOptions: null, type: "", platform: "DOS", comment: null, mimeType: "application/zip", encodeFileName: o.utf8encode })).type = O.type.toLowerCase(), O.compression = O.compression.toUpperCase(), O.type === "binarystring" && (O.type = "string"), !O.type) throw new Error("No output type specified.");
|
|
379
418
|
n.checkSupport(O.type), O.platform !== "darwin" && O.platform !== "freebsd" && O.platform !== "linux" && O.platform !== "sunos" || (O.platform = "UNIX"), O.platform === "win32" && (O.platform = "DOS");
|
|
380
|
-
var
|
|
381
|
-
D = i.generateWorker(this, O,
|
|
419
|
+
var j = O.comment || this.comment || "";
|
|
420
|
+
D = i.generateWorker(this, O, j);
|
|
382
421
|
} catch (I) {
|
|
383
|
-
(D = new
|
|
422
|
+
(D = new h("error")).error(I);
|
|
384
423
|
}
|
|
385
|
-
return new
|
|
424
|
+
return new g(D, O.type || "string", O.mimeType);
|
|
386
425
|
}, generateAsync: function(x, D) {
|
|
387
426
|
return this.generateInternalStream(x).accumulate(D);
|
|
388
427
|
}, generateNodeStream: function(x, D) {
|
|
389
428
|
return (x = x || {}).type || (x.type = "nodebuffer"), this.generateInternalStream(x).toNodejsStream(D);
|
|
390
429
|
} };
|
|
391
|
-
|
|
392
|
-
}, { "./compressedObject": 2, "./defaults": 5, "./generate": 9, "./nodejs/NodejsStreamInputAdapter": 12, "./nodejsUtils": 14, "./stream/GenericWorker": 28, "./stream/StreamHelper": 29, "./utf8": 31, "./utils": 32, "./zipObject": 35 }], 16: [function(
|
|
393
|
-
|
|
394
|
-
}, { stream: void 0 }], 17: [function(
|
|
395
|
-
var
|
|
430
|
+
N.exports = S;
|
|
431
|
+
}, { "./compressedObject": 2, "./defaults": 5, "./generate": 9, "./nodejs/NodejsStreamInputAdapter": 12, "./nodejsUtils": 14, "./stream/GenericWorker": 28, "./stream/StreamHelper": 29, "./utf8": 31, "./utils": 32, "./zipObject": 35 }], 16: [function(_, N, k) {
|
|
432
|
+
N.exports = _("stream");
|
|
433
|
+
}, { stream: void 0 }], 17: [function(_, N, k) {
|
|
434
|
+
var u = _("./DataReader");
|
|
396
435
|
function o(n) {
|
|
397
|
-
|
|
398
|
-
for (var
|
|
436
|
+
u.call(this, n);
|
|
437
|
+
for (var h = 0; h < this.data.length; h++) n[h] = 255 & n[h];
|
|
399
438
|
}
|
|
400
|
-
|
|
439
|
+
_("../utils").inherits(o, u), o.prototype.byteAt = function(n) {
|
|
401
440
|
return this.data[this.zero + n];
|
|
402
441
|
}, o.prototype.lastIndexOfSignature = function(n) {
|
|
403
|
-
for (var
|
|
442
|
+
for (var h = n.charCodeAt(0), g = n.charCodeAt(1), y = n.charCodeAt(2), p = n.charCodeAt(3), b = this.length - 4; 0 <= b; --b) if (this.data[b] === h && this.data[b + 1] === g && this.data[b + 2] === y && this.data[b + 3] === p) return b - this.zero;
|
|
404
443
|
return -1;
|
|
405
444
|
}, o.prototype.readAndCheckSignature = function(n) {
|
|
406
|
-
var
|
|
407
|
-
return
|
|
445
|
+
var h = n.charCodeAt(0), g = n.charCodeAt(1), y = n.charCodeAt(2), p = n.charCodeAt(3), b = this.readData(4);
|
|
446
|
+
return h === b[0] && g === b[1] && y === b[2] && p === b[3];
|
|
408
447
|
}, o.prototype.readData = function(n) {
|
|
409
448
|
if (this.checkOffset(n), n === 0) return [];
|
|
410
|
-
var
|
|
411
|
-
return this.index += n,
|
|
412
|
-
},
|
|
413
|
-
}, { "../utils": 32, "./DataReader": 18 }], 18: [function(
|
|
414
|
-
var
|
|
449
|
+
var h = this.data.slice(this.zero + this.index, this.zero + this.index + n);
|
|
450
|
+
return this.index += n, h;
|
|
451
|
+
}, N.exports = o;
|
|
452
|
+
}, { "../utils": 32, "./DataReader": 18 }], 18: [function(_, N, k) {
|
|
453
|
+
var u = _("../utils");
|
|
415
454
|
function o(n) {
|
|
416
455
|
this.data = n, this.length = n.length, this.index = 0, this.zero = 0;
|
|
417
456
|
}
|
|
@@ -425,34 +464,34 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
425
464
|
this.setIndex(this.index + n);
|
|
426
465
|
}, byteAt: function() {
|
|
427
466
|
}, readInt: function(n) {
|
|
428
|
-
var
|
|
429
|
-
for (this.checkOffset(n),
|
|
430
|
-
return this.index += n,
|
|
467
|
+
var h, g = 0;
|
|
468
|
+
for (this.checkOffset(n), h = this.index + n - 1; h >= this.index; h--) g = (g << 8) + this.byteAt(h);
|
|
469
|
+
return this.index += n, g;
|
|
431
470
|
}, readString: function(n) {
|
|
432
|
-
return
|
|
471
|
+
return u.transformTo("string", this.readData(n));
|
|
433
472
|
}, readData: function() {
|
|
434
473
|
}, lastIndexOfSignature: function() {
|
|
435
474
|
}, readAndCheckSignature: function() {
|
|
436
475
|
}, readDate: function() {
|
|
437
476
|
var n = this.readInt(4);
|
|
438
477
|
return new Date(Date.UTC(1980 + (n >> 25 & 127), (n >> 21 & 15) - 1, n >> 16 & 31, n >> 11 & 31, n >> 5 & 63, (31 & n) << 1));
|
|
439
|
-
} },
|
|
440
|
-
}, { "../utils": 32 }], 19: [function(
|
|
441
|
-
var
|
|
478
|
+
} }, N.exports = o;
|
|
479
|
+
}, { "../utils": 32 }], 19: [function(_, N, k) {
|
|
480
|
+
var u = _("./Uint8ArrayReader");
|
|
442
481
|
function o(n) {
|
|
443
|
-
|
|
482
|
+
u.call(this, n);
|
|
444
483
|
}
|
|
445
|
-
|
|
484
|
+
_("../utils").inherits(o, u), o.prototype.readData = function(n) {
|
|
446
485
|
this.checkOffset(n);
|
|
447
|
-
var
|
|
448
|
-
return this.index += n,
|
|
449
|
-
},
|
|
450
|
-
}, { "../utils": 32, "./Uint8ArrayReader": 21 }], 20: [function(
|
|
451
|
-
var
|
|
486
|
+
var h = this.data.slice(this.zero + this.index, this.zero + this.index + n);
|
|
487
|
+
return this.index += n, h;
|
|
488
|
+
}, N.exports = o;
|
|
489
|
+
}, { "../utils": 32, "./Uint8ArrayReader": 21 }], 20: [function(_, N, k) {
|
|
490
|
+
var u = _("./DataReader");
|
|
452
491
|
function o(n) {
|
|
453
|
-
|
|
492
|
+
u.call(this, n);
|
|
454
493
|
}
|
|
455
|
-
|
|
494
|
+
_("../utils").inherits(o, u), o.prototype.byteAt = function(n) {
|
|
456
495
|
return this.data.charCodeAt(this.zero + n);
|
|
457
496
|
}, o.prototype.lastIndexOfSignature = function(n) {
|
|
458
497
|
return this.data.lastIndexOf(n) - this.zero;
|
|
@@ -460,94 +499,94 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
460
499
|
return n === this.readData(4);
|
|
461
500
|
}, o.prototype.readData = function(n) {
|
|
462
501
|
this.checkOffset(n);
|
|
463
|
-
var
|
|
464
|
-
return this.index += n,
|
|
465
|
-
},
|
|
466
|
-
}, { "../utils": 32, "./DataReader": 18 }], 21: [function(
|
|
467
|
-
var
|
|
502
|
+
var h = this.data.slice(this.zero + this.index, this.zero + this.index + n);
|
|
503
|
+
return this.index += n, h;
|
|
504
|
+
}, N.exports = o;
|
|
505
|
+
}, { "../utils": 32, "./DataReader": 18 }], 21: [function(_, N, k) {
|
|
506
|
+
var u = _("./ArrayReader");
|
|
468
507
|
function o(n) {
|
|
469
|
-
|
|
508
|
+
u.call(this, n);
|
|
470
509
|
}
|
|
471
|
-
|
|
510
|
+
_("../utils").inherits(o, u), o.prototype.readData = function(n) {
|
|
472
511
|
if (this.checkOffset(n), n === 0) return new Uint8Array(0);
|
|
473
|
-
var
|
|
474
|
-
return this.index += n,
|
|
475
|
-
},
|
|
476
|
-
}, { "../utils": 32, "./ArrayReader": 17 }], 22: [function(
|
|
477
|
-
var
|
|
478
|
-
|
|
479
|
-
var
|
|
480
|
-
return
|
|
512
|
+
var h = this.data.subarray(this.zero + this.index, this.zero + this.index + n);
|
|
513
|
+
return this.index += n, h;
|
|
514
|
+
}, N.exports = o;
|
|
515
|
+
}, { "../utils": 32, "./ArrayReader": 17 }], 22: [function(_, N, k) {
|
|
516
|
+
var u = _("../utils"), o = _("../support"), n = _("./ArrayReader"), h = _("./StringReader"), g = _("./NodeBufferReader"), y = _("./Uint8ArrayReader");
|
|
517
|
+
N.exports = function(p) {
|
|
518
|
+
var b = u.getTypeOf(p);
|
|
519
|
+
return u.checkSupport(b), b !== "string" || o.uint8array ? b === "nodebuffer" ? new g(p) : o.uint8array ? new y(u.transformTo("uint8array", p)) : new n(u.transformTo("array", p)) : new h(p);
|
|
481
520
|
};
|
|
482
|
-
}, { "../support": 30, "../utils": 32, "./ArrayReader": 17, "./NodeBufferReader": 19, "./StringReader": 20, "./Uint8ArrayReader": 21 }], 23: [function(
|
|
521
|
+
}, { "../support": 30, "../utils": 32, "./ArrayReader": 17, "./NodeBufferReader": 19, "./StringReader": 20, "./Uint8ArrayReader": 21 }], 23: [function(_, N, k) {
|
|
483
522
|
k.LOCAL_FILE_HEADER = "PK", k.CENTRAL_FILE_HEADER = "PK", k.CENTRAL_DIRECTORY_END = "PK", k.ZIP64_CENTRAL_DIRECTORY_LOCATOR = "PK\x07", k.ZIP64_CENTRAL_DIRECTORY_END = "PK", k.DATA_DESCRIPTOR = "PK\x07\b";
|
|
484
|
-
}, {}], 24: [function(
|
|
485
|
-
var
|
|
486
|
-
function n(
|
|
487
|
-
|
|
488
|
-
}
|
|
489
|
-
o.inherits(n,
|
|
490
|
-
this.push({ data: o.transformTo(this.destType,
|
|
491
|
-
},
|
|
492
|
-
}, { "../utils": 32, "./GenericWorker": 28 }], 25: [function(
|
|
493
|
-
var
|
|
523
|
+
}, {}], 24: [function(_, N, k) {
|
|
524
|
+
var u = _("./GenericWorker"), o = _("../utils");
|
|
525
|
+
function n(h) {
|
|
526
|
+
u.call(this, "ConvertWorker to " + h), this.destType = h;
|
|
527
|
+
}
|
|
528
|
+
o.inherits(n, u), n.prototype.processChunk = function(h) {
|
|
529
|
+
this.push({ data: o.transformTo(this.destType, h.data), meta: h.meta });
|
|
530
|
+
}, N.exports = n;
|
|
531
|
+
}, { "../utils": 32, "./GenericWorker": 28 }], 25: [function(_, N, k) {
|
|
532
|
+
var u = _("./GenericWorker"), o = _("../crc32");
|
|
494
533
|
function n() {
|
|
495
|
-
|
|
496
|
-
}
|
|
497
|
-
|
|
498
|
-
this.streamInfo.crc32 = o(
|
|
499
|
-
},
|
|
500
|
-
}, { "../crc32": 4, "../utils": 32, "./GenericWorker": 28 }], 26: [function(
|
|
501
|
-
var
|
|
502
|
-
function n(
|
|
503
|
-
o.call(this, "DataLengthProbe for " +
|
|
504
|
-
}
|
|
505
|
-
|
|
506
|
-
if (
|
|
507
|
-
var
|
|
508
|
-
this.streamInfo[this.propName] =
|
|
534
|
+
u.call(this, "Crc32Probe"), this.withStreamInfo("crc32", 0);
|
|
535
|
+
}
|
|
536
|
+
_("../utils").inherits(n, u), n.prototype.processChunk = function(h) {
|
|
537
|
+
this.streamInfo.crc32 = o(h.data, this.streamInfo.crc32 || 0), this.push(h);
|
|
538
|
+
}, N.exports = n;
|
|
539
|
+
}, { "../crc32": 4, "../utils": 32, "./GenericWorker": 28 }], 26: [function(_, N, k) {
|
|
540
|
+
var u = _("../utils"), o = _("./GenericWorker");
|
|
541
|
+
function n(h) {
|
|
542
|
+
o.call(this, "DataLengthProbe for " + h), this.propName = h, this.withStreamInfo(h, 0);
|
|
543
|
+
}
|
|
544
|
+
u.inherits(n, o), n.prototype.processChunk = function(h) {
|
|
545
|
+
if (h) {
|
|
546
|
+
var g = this.streamInfo[this.propName] || 0;
|
|
547
|
+
this.streamInfo[this.propName] = g + h.data.length;
|
|
509
548
|
}
|
|
510
|
-
o.prototype.processChunk.call(this,
|
|
511
|
-
},
|
|
512
|
-
}, { "../utils": 32, "./GenericWorker": 28 }], 27: [function(
|
|
513
|
-
var
|
|
514
|
-
function n(
|
|
549
|
+
o.prototype.processChunk.call(this, h);
|
|
550
|
+
}, N.exports = n;
|
|
551
|
+
}, { "../utils": 32, "./GenericWorker": 28 }], 27: [function(_, N, k) {
|
|
552
|
+
var u = _("../utils"), o = _("./GenericWorker");
|
|
553
|
+
function n(h) {
|
|
515
554
|
o.call(this, "DataWorker");
|
|
516
|
-
var
|
|
517
|
-
this.dataIsReady = !1, this.index = 0, this.max = 0, this.data = null, this.type = "", this._tickScheduled = !1,
|
|
518
|
-
|
|
555
|
+
var g = this;
|
|
556
|
+
this.dataIsReady = !1, this.index = 0, this.max = 0, this.data = null, this.type = "", this._tickScheduled = !1, h.then(function(y) {
|
|
557
|
+
g.dataIsReady = !0, g.data = y, g.max = y && y.length || 0, g.type = u.getTypeOf(y), g.isPaused || g._tickAndRepeat();
|
|
519
558
|
}, function(y) {
|
|
520
|
-
|
|
559
|
+
g.error(y);
|
|
521
560
|
});
|
|
522
561
|
}
|
|
523
|
-
|
|
562
|
+
u.inherits(n, o), n.prototype.cleanUp = function() {
|
|
524
563
|
o.prototype.cleanUp.call(this), this.data = null;
|
|
525
564
|
}, n.prototype.resume = function() {
|
|
526
|
-
return !!o.prototype.resume.call(this) && (!this._tickScheduled && this.dataIsReady && (this._tickScheduled = !0,
|
|
565
|
+
return !!o.prototype.resume.call(this) && (!this._tickScheduled && this.dataIsReady && (this._tickScheduled = !0, u.delay(this._tickAndRepeat, [], this)), !0);
|
|
527
566
|
}, n.prototype._tickAndRepeat = function() {
|
|
528
|
-
this._tickScheduled = !1, this.isPaused || this.isFinished || (this._tick(), this.isFinished || (
|
|
567
|
+
this._tickScheduled = !1, this.isPaused || this.isFinished || (this._tick(), this.isFinished || (u.delay(this._tickAndRepeat, [], this), this._tickScheduled = !0));
|
|
529
568
|
}, n.prototype._tick = function() {
|
|
530
569
|
if (this.isPaused || this.isFinished) return !1;
|
|
531
|
-
var
|
|
570
|
+
var h = null, g = Math.min(this.max, this.index + 16384);
|
|
532
571
|
if (this.index >= this.max) return this.end();
|
|
533
572
|
switch (this.type) {
|
|
534
573
|
case "string":
|
|
535
|
-
|
|
574
|
+
h = this.data.substring(this.index, g);
|
|
536
575
|
break;
|
|
537
576
|
case "uint8array":
|
|
538
|
-
|
|
577
|
+
h = this.data.subarray(this.index, g);
|
|
539
578
|
break;
|
|
540
579
|
case "array":
|
|
541
580
|
case "nodebuffer":
|
|
542
|
-
|
|
581
|
+
h = this.data.slice(this.index, g);
|
|
543
582
|
}
|
|
544
|
-
return this.index =
|
|
545
|
-
},
|
|
546
|
-
}, { "../utils": 32, "./GenericWorker": 28 }], 28: [function(
|
|
547
|
-
function
|
|
583
|
+
return this.index = g, this.push({ data: h, meta: { percent: this.max ? this.index / this.max * 100 : 0 } });
|
|
584
|
+
}, N.exports = n;
|
|
585
|
+
}, { "../utils": 32, "./GenericWorker": 28 }], 28: [function(_, N, k) {
|
|
586
|
+
function u(o) {
|
|
548
587
|
this.name = o || "default", this.streamInfo = {}, this.generatedError = null, this.extraStreamInfo = {}, this.isPaused = !0, this.isFinished = !1, this.isLocked = !1, this._listeners = { data: [], end: [], error: [] }, this.previous = null;
|
|
549
588
|
}
|
|
550
|
-
|
|
589
|
+
u.prototype = { push: function(o) {
|
|
551
590
|
this.emit("data", o);
|
|
552
591
|
}, end: function() {
|
|
553
592
|
if (this.isFinished) return !1;
|
|
@@ -565,19 +604,19 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
565
604
|
}, cleanUp: function() {
|
|
566
605
|
this.streamInfo = this.generatedError = this.extraStreamInfo = null, this._listeners = [];
|
|
567
606
|
}, emit: function(o, n) {
|
|
568
|
-
if (this._listeners[o]) for (var
|
|
607
|
+
if (this._listeners[o]) for (var h = 0; h < this._listeners[o].length; h++) this._listeners[o][h].call(this, n);
|
|
569
608
|
}, pipe: function(o) {
|
|
570
609
|
return o.registerPrevious(this);
|
|
571
610
|
}, registerPrevious: function(o) {
|
|
572
611
|
if (this.isLocked) throw new Error("The stream '" + this + "' has already been used.");
|
|
573
612
|
this.streamInfo = o.streamInfo, this.mergeStreamInfo(), this.previous = o;
|
|
574
613
|
var n = this;
|
|
575
|
-
return o.on("data", function(
|
|
576
|
-
n.processChunk(
|
|
614
|
+
return o.on("data", function(h) {
|
|
615
|
+
n.processChunk(h);
|
|
577
616
|
}), o.on("end", function() {
|
|
578
617
|
n.end();
|
|
579
|
-
}), o.on("error", function(
|
|
580
|
-
n.error(
|
|
618
|
+
}), o.on("error", function(h) {
|
|
619
|
+
n.error(h);
|
|
581
620
|
}), this;
|
|
582
621
|
}, pause: function() {
|
|
583
622
|
return !this.isPaused && !this.isFinished && (this.isPaused = !0, this.previous && this.previous.pause(), !0);
|
|
@@ -598,15 +637,15 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
598
637
|
}, toString: function() {
|
|
599
638
|
var o = "Worker " + this.name;
|
|
600
639
|
return this.previous ? this.previous + " -> " + o : o;
|
|
601
|
-
} },
|
|
602
|
-
}, {}], 29: [function(
|
|
603
|
-
var
|
|
604
|
-
if (
|
|
605
|
-
p =
|
|
640
|
+
} }, N.exports = u;
|
|
641
|
+
}, {}], 29: [function(_, N, k) {
|
|
642
|
+
var u = _("../utils"), o = _("./ConvertWorker"), n = _("./GenericWorker"), h = _("../base64"), g = _("../support"), y = _("../external"), p = null;
|
|
643
|
+
if (g.nodestream) try {
|
|
644
|
+
p = _("../nodejs/NodejsStreamOutputAdapter");
|
|
606
645
|
} catch {
|
|
607
646
|
}
|
|
608
|
-
function
|
|
609
|
-
return new y.Promise(function(
|
|
647
|
+
function b(d, r) {
|
|
648
|
+
return new y.Promise(function(l, a) {
|
|
610
649
|
var c = [], v = d._internalType, S = d._outputType, x = d._mimeType;
|
|
611
650
|
d.on("data", function(D, O) {
|
|
612
651
|
c.push(D), r && r(O);
|
|
@@ -614,33 +653,33 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
614
653
|
c = [], a(D);
|
|
615
654
|
}).on("end", function() {
|
|
616
655
|
try {
|
|
617
|
-
var D = function(O,
|
|
656
|
+
var D = function(O, j, I) {
|
|
618
657
|
switch (O) {
|
|
619
658
|
case "blob":
|
|
620
|
-
return
|
|
659
|
+
return u.newBlob(u.transformTo("arraybuffer", j), I);
|
|
621
660
|
case "base64":
|
|
622
|
-
return
|
|
661
|
+
return h.encode(j);
|
|
623
662
|
default:
|
|
624
|
-
return
|
|
663
|
+
return u.transformTo(O, j);
|
|
625
664
|
}
|
|
626
|
-
}(S, function(O,
|
|
665
|
+
}(S, function(O, j) {
|
|
627
666
|
var I, W = 0, V = null, m = 0;
|
|
628
|
-
for (I = 0; I <
|
|
667
|
+
for (I = 0; I < j.length; I++) m += j[I].length;
|
|
629
668
|
switch (O) {
|
|
630
669
|
case "string":
|
|
631
|
-
return
|
|
670
|
+
return j.join("");
|
|
632
671
|
case "array":
|
|
633
|
-
return Array.prototype.concat.apply([],
|
|
672
|
+
return Array.prototype.concat.apply([], j);
|
|
634
673
|
case "uint8array":
|
|
635
|
-
for (V = new Uint8Array(m), I = 0; I <
|
|
674
|
+
for (V = new Uint8Array(m), I = 0; I < j.length; I++) V.set(j[I], W), W += j[I].length;
|
|
636
675
|
return V;
|
|
637
676
|
case "nodebuffer":
|
|
638
|
-
return Buffer.concat(
|
|
677
|
+
return Buffer.concat(j);
|
|
639
678
|
default:
|
|
640
679
|
throw new Error("concat : unsupported type '" + O + "'");
|
|
641
680
|
}
|
|
642
681
|
}(v, c), x);
|
|
643
|
-
|
|
682
|
+
l(D);
|
|
644
683
|
} catch (O) {
|
|
645
684
|
a(O);
|
|
646
685
|
}
|
|
@@ -648,7 +687,7 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
648
687
|
}).resume();
|
|
649
688
|
});
|
|
650
689
|
}
|
|
651
|
-
function i(d, r,
|
|
690
|
+
function i(d, r, l) {
|
|
652
691
|
var a = r;
|
|
653
692
|
switch (r) {
|
|
654
693
|
case "blob":
|
|
@@ -659,77 +698,77 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
659
698
|
a = "string";
|
|
660
699
|
}
|
|
661
700
|
try {
|
|
662
|
-
this._internalType = a, this._outputType = r, this._mimeType =
|
|
701
|
+
this._internalType = a, this._outputType = r, this._mimeType = l, u.checkSupport(a), this._worker = d.pipe(new o(a)), d.lock();
|
|
663
702
|
} catch (c) {
|
|
664
703
|
this._worker = new n("error"), this._worker.error(c);
|
|
665
704
|
}
|
|
666
705
|
}
|
|
667
706
|
i.prototype = { accumulate: function(d) {
|
|
668
|
-
return
|
|
707
|
+
return b(this, d);
|
|
669
708
|
}, on: function(d, r) {
|
|
670
|
-
var
|
|
709
|
+
var l = this;
|
|
671
710
|
return d === "data" ? this._worker.on(d, function(a) {
|
|
672
|
-
r.call(
|
|
711
|
+
r.call(l, a.data, a.meta);
|
|
673
712
|
}) : this._worker.on(d, function() {
|
|
674
|
-
|
|
713
|
+
u.delay(r, arguments, l);
|
|
675
714
|
}), this;
|
|
676
715
|
}, resume: function() {
|
|
677
|
-
return
|
|
716
|
+
return u.delay(this._worker.resume, [], this._worker), this;
|
|
678
717
|
}, pause: function() {
|
|
679
718
|
return this._worker.pause(), this;
|
|
680
719
|
}, toNodejsStream: function(d) {
|
|
681
|
-
if (
|
|
720
|
+
if (u.checkSupport("nodestream"), this._outputType !== "nodebuffer") throw new Error(this._outputType + " is not supported by this method");
|
|
682
721
|
return new p(this, { objectMode: this._outputType !== "nodebuffer" }, d);
|
|
683
|
-
} },
|
|
684
|
-
}, { "../base64": 1, "../external": 6, "../nodejs/NodejsStreamOutputAdapter": 13, "../support": 30, "../utils": 32, "./ConvertWorker": 24, "./GenericWorker": 28 }], 30: [function(
|
|
722
|
+
} }, N.exports = i;
|
|
723
|
+
}, { "../base64": 1, "../external": 6, "../nodejs/NodejsStreamOutputAdapter": 13, "../support": 30, "../utils": 32, "./ConvertWorker": 24, "./GenericWorker": 28 }], 30: [function(_, N, k) {
|
|
685
724
|
if (k.base64 = !0, k.array = !0, k.string = !0, k.arraybuffer = typeof ArrayBuffer < "u" && typeof Uint8Array < "u", k.nodebuffer = typeof Buffer < "u", k.uint8array = typeof Uint8Array < "u", typeof ArrayBuffer > "u") k.blob = !1;
|
|
686
725
|
else {
|
|
687
|
-
var
|
|
726
|
+
var u = new ArrayBuffer(0);
|
|
688
727
|
try {
|
|
689
|
-
k.blob = new Blob([
|
|
728
|
+
k.blob = new Blob([u], { type: "application/zip" }).size === 0;
|
|
690
729
|
} catch {
|
|
691
730
|
try {
|
|
692
731
|
var o = new (self.BlobBuilder || self.WebKitBlobBuilder || self.MozBlobBuilder || self.MSBlobBuilder)();
|
|
693
|
-
o.append(
|
|
732
|
+
o.append(u), k.blob = o.getBlob("application/zip").size === 0;
|
|
694
733
|
} catch {
|
|
695
734
|
k.blob = !1;
|
|
696
735
|
}
|
|
697
736
|
}
|
|
698
737
|
}
|
|
699
738
|
try {
|
|
700
|
-
k.nodestream = !!
|
|
739
|
+
k.nodestream = !!_("readable-stream").Readable;
|
|
701
740
|
} catch {
|
|
702
741
|
k.nodestream = !1;
|
|
703
742
|
}
|
|
704
|
-
}, { "readable-stream": 16 }], 31: [function(
|
|
705
|
-
for (var
|
|
706
|
-
|
|
743
|
+
}, { "readable-stream": 16 }], 31: [function(_, N, k) {
|
|
744
|
+
for (var u = _("./utils"), o = _("./support"), n = _("./nodejsUtils"), h = _("./stream/GenericWorker"), g = new Array(256), y = 0; y < 256; y++) g[y] = 252 <= y ? 6 : 248 <= y ? 5 : 240 <= y ? 4 : 224 <= y ? 3 : 192 <= y ? 2 : 1;
|
|
745
|
+
g[254] = g[254] = 1;
|
|
707
746
|
function p() {
|
|
708
|
-
|
|
747
|
+
h.call(this, "utf-8 decode"), this.leftOver = null;
|
|
709
748
|
}
|
|
710
|
-
function
|
|
711
|
-
|
|
749
|
+
function b() {
|
|
750
|
+
h.call(this, "utf-8 encode");
|
|
712
751
|
}
|
|
713
752
|
k.utf8encode = function(i) {
|
|
714
753
|
return o.nodebuffer ? n.newBufferFrom(i, "utf-8") : function(d) {
|
|
715
|
-
var r,
|
|
716
|
-
for (c = 0; c < S; c++) (64512 & (
|
|
717
|
-
for (r = o.uint8array ? new Uint8Array(x) : new Array(x), c = v = 0; v < x; c++) (64512 & (
|
|
754
|
+
var r, l, a, c, v, S = d.length, x = 0;
|
|
755
|
+
for (c = 0; c < S; c++) (64512 & (l = d.charCodeAt(c))) == 55296 && c + 1 < S && (64512 & (a = d.charCodeAt(c + 1))) == 56320 && (l = 65536 + (l - 55296 << 10) + (a - 56320), c++), x += l < 128 ? 1 : l < 2048 ? 2 : l < 65536 ? 3 : 4;
|
|
756
|
+
for (r = o.uint8array ? new Uint8Array(x) : new Array(x), c = v = 0; v < x; c++) (64512 & (l = d.charCodeAt(c))) == 55296 && c + 1 < S && (64512 & (a = d.charCodeAt(c + 1))) == 56320 && (l = 65536 + (l - 55296 << 10) + (a - 56320), c++), l < 128 ? r[v++] = l : (l < 2048 ? r[v++] = 192 | l >>> 6 : (l < 65536 ? r[v++] = 224 | l >>> 12 : (r[v++] = 240 | l >>> 18, r[v++] = 128 | l >>> 12 & 63), r[v++] = 128 | l >>> 6 & 63), r[v++] = 128 | 63 & l);
|
|
718
757
|
return r;
|
|
719
758
|
}(i);
|
|
720
759
|
}, k.utf8decode = function(i) {
|
|
721
|
-
return o.nodebuffer ?
|
|
722
|
-
var r,
|
|
723
|
-
for (r =
|
|
724
|
-
else if (4 < (c =
|
|
760
|
+
return o.nodebuffer ? u.transformTo("nodebuffer", i).toString("utf-8") : function(d) {
|
|
761
|
+
var r, l, a, c, v = d.length, S = new Array(2 * v);
|
|
762
|
+
for (r = l = 0; r < v; ) if ((a = d[r++]) < 128) S[l++] = a;
|
|
763
|
+
else if (4 < (c = g[a])) S[l++] = 65533, r += c - 1;
|
|
725
764
|
else {
|
|
726
765
|
for (a &= c === 2 ? 31 : c === 3 ? 15 : 7; 1 < c && r < v; ) a = a << 6 | 63 & d[r++], c--;
|
|
727
|
-
1 < c ? S[
|
|
766
|
+
1 < c ? S[l++] = 65533 : a < 65536 ? S[l++] = a : (a -= 65536, S[l++] = 55296 | a >> 10 & 1023, S[l++] = 56320 | 1023 & a);
|
|
728
767
|
}
|
|
729
|
-
return S.length !==
|
|
730
|
-
}(i =
|
|
731
|
-
},
|
|
732
|
-
var d =
|
|
768
|
+
return S.length !== l && (S.subarray ? S = S.subarray(0, l) : S.length = l), u.applyFromCharCode(S);
|
|
769
|
+
}(i = u.transformTo(o.uint8array ? "uint8array" : "array", i));
|
|
770
|
+
}, u.inherits(p, h), p.prototype.processChunk = function(i) {
|
|
771
|
+
var d = u.transformTo(o.uint8array ? "uint8array" : "array", i.data);
|
|
733
772
|
if (this.leftOver && this.leftOver.length) {
|
|
734
773
|
if (o.uint8array) {
|
|
735
774
|
var r = d;
|
|
@@ -737,76 +776,76 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
737
776
|
} else d = this.leftOver.concat(d);
|
|
738
777
|
this.leftOver = null;
|
|
739
778
|
}
|
|
740
|
-
var
|
|
779
|
+
var l = function(c, v) {
|
|
741
780
|
var S;
|
|
742
781
|
for ((v = v || c.length) > c.length && (v = c.length), S = v - 1; 0 <= S && (192 & c[S]) == 128; ) S--;
|
|
743
|
-
return S < 0 || S === 0 ? v : S +
|
|
782
|
+
return S < 0 || S === 0 ? v : S + g[c[S]] > v ? S : v;
|
|
744
783
|
}(d), a = d;
|
|
745
|
-
|
|
784
|
+
l !== d.length && (o.uint8array ? (a = d.subarray(0, l), this.leftOver = d.subarray(l, d.length)) : (a = d.slice(0, l), this.leftOver = d.slice(l, d.length))), this.push({ data: k.utf8decode(a), meta: i.meta });
|
|
746
785
|
}, p.prototype.flush = function() {
|
|
747
786
|
this.leftOver && this.leftOver.length && (this.push({ data: k.utf8decode(this.leftOver), meta: {} }), this.leftOver = null);
|
|
748
|
-
}, k.Utf8DecodeWorker = p,
|
|
787
|
+
}, k.Utf8DecodeWorker = p, u.inherits(b, h), b.prototype.processChunk = function(i) {
|
|
749
788
|
this.push({ data: k.utf8encode(i.data), meta: i.meta });
|
|
750
|
-
}, k.Utf8EncodeWorker =
|
|
751
|
-
}, { "./nodejsUtils": 14, "./stream/GenericWorker": 28, "./support": 30, "./utils": 32 }], 32: [function(
|
|
752
|
-
var
|
|
753
|
-
function
|
|
789
|
+
}, k.Utf8EncodeWorker = b;
|
|
790
|
+
}, { "./nodejsUtils": 14, "./stream/GenericWorker": 28, "./support": 30, "./utils": 32 }], 32: [function(_, N, k) {
|
|
791
|
+
var u = _("./support"), o = _("./base64"), n = _("./nodejsUtils"), h = _("./external");
|
|
792
|
+
function g(r) {
|
|
754
793
|
return r;
|
|
755
794
|
}
|
|
756
|
-
function y(r,
|
|
757
|
-
for (var a = 0; a < r.length; ++a)
|
|
758
|
-
return
|
|
795
|
+
function y(r, l) {
|
|
796
|
+
for (var a = 0; a < r.length; ++a) l[a] = 255 & r.charCodeAt(a);
|
|
797
|
+
return l;
|
|
759
798
|
}
|
|
760
|
-
|
|
799
|
+
_("setimmediate"), k.newBlob = function(r, l) {
|
|
761
800
|
k.checkSupport("blob");
|
|
762
801
|
try {
|
|
763
|
-
return new Blob([r], { type:
|
|
802
|
+
return new Blob([r], { type: l });
|
|
764
803
|
} catch {
|
|
765
804
|
try {
|
|
766
805
|
var a = new (self.BlobBuilder || self.WebKitBlobBuilder || self.MozBlobBuilder || self.MSBlobBuilder)();
|
|
767
|
-
return a.append(r), a.getBlob(
|
|
806
|
+
return a.append(r), a.getBlob(l);
|
|
768
807
|
} catch {
|
|
769
808
|
throw new Error("Bug : can't construct the Blob.");
|
|
770
809
|
}
|
|
771
810
|
}
|
|
772
811
|
};
|
|
773
|
-
var p = { stringifyByChunk: function(r,
|
|
812
|
+
var p = { stringifyByChunk: function(r, l, a) {
|
|
774
813
|
var c = [], v = 0, S = r.length;
|
|
775
814
|
if (S <= a) return String.fromCharCode.apply(null, r);
|
|
776
|
-
for (; v < S; )
|
|
815
|
+
for (; v < S; ) l === "array" || l === "nodebuffer" ? c.push(String.fromCharCode.apply(null, r.slice(v, Math.min(v + a, S)))) : c.push(String.fromCharCode.apply(null, r.subarray(v, Math.min(v + a, S)))), v += a;
|
|
777
816
|
return c.join("");
|
|
778
817
|
}, stringifyByChar: function(r) {
|
|
779
|
-
for (var
|
|
780
|
-
return
|
|
818
|
+
for (var l = "", a = 0; a < r.length; a++) l += String.fromCharCode(r[a]);
|
|
819
|
+
return l;
|
|
781
820
|
}, applyCanBeUsed: { uint8array: function() {
|
|
782
821
|
try {
|
|
783
|
-
return
|
|
822
|
+
return u.uint8array && String.fromCharCode.apply(null, new Uint8Array(1)).length === 1;
|
|
784
823
|
} catch {
|
|
785
824
|
return !1;
|
|
786
825
|
}
|
|
787
826
|
}(), nodebuffer: function() {
|
|
788
827
|
try {
|
|
789
|
-
return
|
|
828
|
+
return u.nodebuffer && String.fromCharCode.apply(null, n.allocBuffer(1)).length === 1;
|
|
790
829
|
} catch {
|
|
791
830
|
return !1;
|
|
792
831
|
}
|
|
793
832
|
}() } };
|
|
794
|
-
function
|
|
795
|
-
var
|
|
796
|
-
if (a === "uint8array" ? c = p.applyCanBeUsed.uint8array : a === "nodebuffer" && (c = p.applyCanBeUsed.nodebuffer), c) for (; 1 <
|
|
797
|
-
return p.stringifyByChunk(r, a,
|
|
833
|
+
function b(r) {
|
|
834
|
+
var l = 65536, a = k.getTypeOf(r), c = !0;
|
|
835
|
+
if (a === "uint8array" ? c = p.applyCanBeUsed.uint8array : a === "nodebuffer" && (c = p.applyCanBeUsed.nodebuffer), c) for (; 1 < l; ) try {
|
|
836
|
+
return p.stringifyByChunk(r, a, l);
|
|
798
837
|
} catch {
|
|
799
|
-
|
|
838
|
+
l = Math.floor(l / 2);
|
|
800
839
|
}
|
|
801
840
|
return p.stringifyByChar(r);
|
|
802
841
|
}
|
|
803
|
-
function i(r,
|
|
804
|
-
for (var a = 0; a < r.length; a++)
|
|
805
|
-
return
|
|
842
|
+
function i(r, l) {
|
|
843
|
+
for (var a = 0; a < r.length; a++) l[a] = r[a];
|
|
844
|
+
return l;
|
|
806
845
|
}
|
|
807
|
-
k.applyFromCharCode =
|
|
846
|
+
k.applyFromCharCode = b;
|
|
808
847
|
var d = {};
|
|
809
|
-
d.string = { string:
|
|
848
|
+
d.string = { string: g, array: function(r) {
|
|
810
849
|
return y(r, new Array(r.length));
|
|
811
850
|
}, arraybuffer: function(r) {
|
|
812
851
|
return d.string.uint8array(r).buffer;
|
|
@@ -814,117 +853,117 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
814
853
|
return y(r, new Uint8Array(r.length));
|
|
815
854
|
}, nodebuffer: function(r) {
|
|
816
855
|
return y(r, n.allocBuffer(r.length));
|
|
817
|
-
} }, d.array = { string:
|
|
856
|
+
} }, d.array = { string: b, array: g, arraybuffer: function(r) {
|
|
818
857
|
return new Uint8Array(r).buffer;
|
|
819
858
|
}, uint8array: function(r) {
|
|
820
859
|
return new Uint8Array(r);
|
|
821
860
|
}, nodebuffer: function(r) {
|
|
822
861
|
return n.newBufferFrom(r);
|
|
823
862
|
} }, d.arraybuffer = { string: function(r) {
|
|
824
|
-
return
|
|
863
|
+
return b(new Uint8Array(r));
|
|
825
864
|
}, array: function(r) {
|
|
826
865
|
return i(new Uint8Array(r), new Array(r.byteLength));
|
|
827
|
-
}, arraybuffer:
|
|
866
|
+
}, arraybuffer: g, uint8array: function(r) {
|
|
828
867
|
return new Uint8Array(r);
|
|
829
868
|
}, nodebuffer: function(r) {
|
|
830
869
|
return n.newBufferFrom(new Uint8Array(r));
|
|
831
|
-
} }, d.uint8array = { string:
|
|
870
|
+
} }, d.uint8array = { string: b, array: function(r) {
|
|
832
871
|
return i(r, new Array(r.length));
|
|
833
872
|
}, arraybuffer: function(r) {
|
|
834
873
|
return r.buffer;
|
|
835
|
-
}, uint8array:
|
|
874
|
+
}, uint8array: g, nodebuffer: function(r) {
|
|
836
875
|
return n.newBufferFrom(r);
|
|
837
|
-
} }, d.nodebuffer = { string:
|
|
876
|
+
} }, d.nodebuffer = { string: b, array: function(r) {
|
|
838
877
|
return i(r, new Array(r.length));
|
|
839
878
|
}, arraybuffer: function(r) {
|
|
840
879
|
return d.nodebuffer.uint8array(r).buffer;
|
|
841
880
|
}, uint8array: function(r) {
|
|
842
881
|
return i(r, new Uint8Array(r.length));
|
|
843
|
-
}, nodebuffer:
|
|
844
|
-
if (
|
|
882
|
+
}, nodebuffer: g }, k.transformTo = function(r, l) {
|
|
883
|
+
if (l = l || "", !r) return l;
|
|
845
884
|
k.checkSupport(r);
|
|
846
|
-
var a = k.getTypeOf(
|
|
847
|
-
return d[a][r](
|
|
885
|
+
var a = k.getTypeOf(l);
|
|
886
|
+
return d[a][r](l);
|
|
848
887
|
}, k.resolve = function(r) {
|
|
849
|
-
for (var
|
|
850
|
-
var v =
|
|
851
|
-
v === "." || v === "" && c !== 0 && c !==
|
|
888
|
+
for (var l = r.split("/"), a = [], c = 0; c < l.length; c++) {
|
|
889
|
+
var v = l[c];
|
|
890
|
+
v === "." || v === "" && c !== 0 && c !== l.length - 1 || (v === ".." ? a.pop() : a.push(v));
|
|
852
891
|
}
|
|
853
892
|
return a.join("/");
|
|
854
893
|
}, k.getTypeOf = function(r) {
|
|
855
|
-
return typeof r == "string" ? "string" : Object.prototype.toString.call(r) === "[object Array]" ? "array" :
|
|
894
|
+
return typeof r == "string" ? "string" : Object.prototype.toString.call(r) === "[object Array]" ? "array" : u.nodebuffer && n.isBuffer(r) ? "nodebuffer" : u.uint8array && r instanceof Uint8Array ? "uint8array" : u.arraybuffer && r instanceof ArrayBuffer ? "arraybuffer" : void 0;
|
|
856
895
|
}, k.checkSupport = function(r) {
|
|
857
|
-
if (!
|
|
896
|
+
if (!u[r.toLowerCase()]) throw new Error(r + " is not supported by this platform");
|
|
858
897
|
}, k.MAX_VALUE_16BITS = 65535, k.MAX_VALUE_32BITS = -1, k.pretty = function(r) {
|
|
859
|
-
var
|
|
860
|
-
for (a = 0; a < (r || "").length; a++) c += "\\x" + ((
|
|
898
|
+
var l, a, c = "";
|
|
899
|
+
for (a = 0; a < (r || "").length; a++) c += "\\x" + ((l = r.charCodeAt(a)) < 16 ? "0" : "") + l.toString(16).toUpperCase();
|
|
861
900
|
return c;
|
|
862
|
-
}, k.delay = function(r,
|
|
901
|
+
}, k.delay = function(r, l, a) {
|
|
863
902
|
setImmediate(function() {
|
|
864
|
-
r.apply(a || null,
|
|
903
|
+
r.apply(a || null, l || []);
|
|
865
904
|
});
|
|
866
|
-
}, k.inherits = function(r,
|
|
905
|
+
}, k.inherits = function(r, l) {
|
|
867
906
|
function a() {
|
|
868
907
|
}
|
|
869
|
-
a.prototype =
|
|
908
|
+
a.prototype = l.prototype, r.prototype = new a();
|
|
870
909
|
}, k.extend = function() {
|
|
871
|
-
var r,
|
|
872
|
-
for (r = 0; r < arguments.length; r++) for (
|
|
910
|
+
var r, l, a = {};
|
|
911
|
+
for (r = 0; r < arguments.length; r++) for (l in arguments[r]) Object.prototype.hasOwnProperty.call(arguments[r], l) && a[l] === void 0 && (a[l] = arguments[r][l]);
|
|
873
912
|
return a;
|
|
874
|
-
}, k.prepareContent = function(r,
|
|
875
|
-
return
|
|
876
|
-
return
|
|
913
|
+
}, k.prepareContent = function(r, l, a, c, v) {
|
|
914
|
+
return h.Promise.resolve(l).then(function(S) {
|
|
915
|
+
return u.blob && (S instanceof Blob || ["[object File]", "[object Blob]"].indexOf(Object.prototype.toString.call(S)) !== -1) && typeof FileReader < "u" ? new h.Promise(function(x, D) {
|
|
877
916
|
var O = new FileReader();
|
|
878
|
-
O.onload = function(
|
|
879
|
-
x(
|
|
880
|
-
}, O.onerror = function(
|
|
881
|
-
D(
|
|
917
|
+
O.onload = function(j) {
|
|
918
|
+
x(j.target.result);
|
|
919
|
+
}, O.onerror = function(j) {
|
|
920
|
+
D(j.target.error);
|
|
882
921
|
}, O.readAsArrayBuffer(S);
|
|
883
922
|
}) : S;
|
|
884
923
|
}).then(function(S) {
|
|
885
924
|
var x = k.getTypeOf(S);
|
|
886
925
|
return x ? (x === "arraybuffer" ? S = k.transformTo("uint8array", S) : x === "string" && (v ? S = o.decode(S) : a && c !== !0 && (S = function(D) {
|
|
887
|
-
return y(D,
|
|
888
|
-
}(S))), S) :
|
|
926
|
+
return y(D, u.uint8array ? new Uint8Array(D.length) : new Array(D.length));
|
|
927
|
+
}(S))), S) : h.Promise.reject(new Error("Can't read the data of '" + r + "'. Is it in a supported JavaScript type (String, Blob, ArrayBuffer, etc) ?"));
|
|
889
928
|
});
|
|
890
929
|
};
|
|
891
|
-
}, { "./base64": 1, "./external": 6, "./nodejsUtils": 14, "./support": 30, setimmediate: 54 }], 33: [function(
|
|
892
|
-
var
|
|
930
|
+
}, { "./base64": 1, "./external": 6, "./nodejsUtils": 14, "./support": 30, setimmediate: 54 }], 33: [function(_, N, k) {
|
|
931
|
+
var u = _("./reader/readerFor"), o = _("./utils"), n = _("./signature"), h = _("./zipEntry"), g = _("./support");
|
|
893
932
|
function y(p) {
|
|
894
933
|
this.files = [], this.loadOptions = p;
|
|
895
934
|
}
|
|
896
935
|
y.prototype = { checkSignature: function(p) {
|
|
897
936
|
if (!this.reader.readAndCheckSignature(p)) {
|
|
898
937
|
this.reader.index -= 4;
|
|
899
|
-
var
|
|
900
|
-
throw new Error("Corrupted zip or bug: unexpected signature (" + o.pretty(
|
|
938
|
+
var b = this.reader.readString(4);
|
|
939
|
+
throw new Error("Corrupted zip or bug: unexpected signature (" + o.pretty(b) + ", expected " + o.pretty(p) + ")");
|
|
901
940
|
}
|
|
902
|
-
}, isSignature: function(p,
|
|
941
|
+
}, isSignature: function(p, b) {
|
|
903
942
|
var i = this.reader.index;
|
|
904
943
|
this.reader.setIndex(p);
|
|
905
|
-
var d = this.reader.readString(4) ===
|
|
944
|
+
var d = this.reader.readString(4) === b;
|
|
906
945
|
return this.reader.setIndex(i), d;
|
|
907
946
|
}, readBlockEndOfCentral: function() {
|
|
908
947
|
this.diskNumber = this.reader.readInt(2), this.diskWithCentralDirStart = this.reader.readInt(2), this.centralDirRecordsOnThisDisk = this.reader.readInt(2), this.centralDirRecords = this.reader.readInt(2), this.centralDirSize = this.reader.readInt(4), this.centralDirOffset = this.reader.readInt(4), this.zipCommentLength = this.reader.readInt(2);
|
|
909
|
-
var p = this.reader.readData(this.zipCommentLength),
|
|
948
|
+
var p = this.reader.readData(this.zipCommentLength), b = g.uint8array ? "uint8array" : "array", i = o.transformTo(b, p);
|
|
910
949
|
this.zipComment = this.loadOptions.decodeFileName(i);
|
|
911
950
|
}, readBlockZip64EndOfCentral: function() {
|
|
912
951
|
this.zip64EndOfCentralSize = this.reader.readInt(8), this.reader.skip(4), this.diskNumber = this.reader.readInt(4), this.diskWithCentralDirStart = this.reader.readInt(4), this.centralDirRecordsOnThisDisk = this.reader.readInt(8), this.centralDirRecords = this.reader.readInt(8), this.centralDirSize = this.reader.readInt(8), this.centralDirOffset = this.reader.readInt(8), this.zip64ExtensibleData = {};
|
|
913
|
-
for (var p,
|
|
952
|
+
for (var p, b, i, d = this.zip64EndOfCentralSize - 44; 0 < d; ) p = this.reader.readInt(2), b = this.reader.readInt(4), i = this.reader.readData(b), this.zip64ExtensibleData[p] = { id: p, length: b, value: i };
|
|
914
953
|
}, readBlockZip64EndOfCentralLocator: function() {
|
|
915
954
|
if (this.diskWithZip64CentralDirStart = this.reader.readInt(4), this.relativeOffsetEndOfZip64CentralDir = this.reader.readInt(8), this.disksCount = this.reader.readInt(4), 1 < this.disksCount) throw new Error("Multi-volumes zip are not supported");
|
|
916
955
|
}, readLocalFiles: function() {
|
|
917
|
-
var p,
|
|
918
|
-
for (p = 0; p < this.files.length; p++)
|
|
956
|
+
var p, b;
|
|
957
|
+
for (p = 0; p < this.files.length; p++) b = this.files[p], this.reader.setIndex(b.localHeaderOffset), this.checkSignature(n.LOCAL_FILE_HEADER), b.readLocalPart(this.reader), b.handleUTF8(), b.processAttributes();
|
|
919
958
|
}, readCentralDir: function() {
|
|
920
959
|
var p;
|
|
921
|
-
for (this.reader.setIndex(this.centralDirOffset); this.reader.readAndCheckSignature(n.CENTRAL_FILE_HEADER); ) (p = new
|
|
960
|
+
for (this.reader.setIndex(this.centralDirOffset); this.reader.readAndCheckSignature(n.CENTRAL_FILE_HEADER); ) (p = new h({ zip64: this.zip64 }, this.loadOptions)).readCentralPart(this.reader), this.files.push(p);
|
|
922
961
|
if (this.centralDirRecords !== this.files.length && this.centralDirRecords !== 0 && this.files.length === 0) throw new Error("Corrupted zip or bug: expected " + this.centralDirRecords + " records in central dir, got " + this.files.length);
|
|
923
962
|
}, readEndOfCentral: function() {
|
|
924
963
|
var p = this.reader.lastIndexOfSignature(n.CENTRAL_DIRECTORY_END);
|
|
925
964
|
if (p < 0) throw this.isSignature(0, n.LOCAL_FILE_HEADER) ? new Error("Corrupted zip: can't find end of central directory") : new Error("Can't find end of central directory : is this a zip file ? If it is, see https://stuk.github.io/jszip/documentation/howto/read_zip.html");
|
|
926
965
|
this.reader.setIndex(p);
|
|
927
|
-
var
|
|
966
|
+
var b = p;
|
|
928
967
|
if (this.checkSignature(n.CENTRAL_DIRECTORY_END), this.readBlockEndOfCentral(), this.diskNumber === o.MAX_VALUE_16BITS || this.diskWithCentralDirStart === o.MAX_VALUE_16BITS || this.centralDirRecordsOnThisDisk === o.MAX_VALUE_16BITS || this.centralDirRecords === o.MAX_VALUE_16BITS || this.centralDirSize === o.MAX_VALUE_32BITS || this.centralDirOffset === o.MAX_VALUE_32BITS) {
|
|
929
968
|
if (this.zip64 = !0, (p = this.reader.lastIndexOfSignature(n.ZIP64_CENTRAL_DIRECTORY_LOCATOR)) < 0) throw new Error("Corrupted zip: can't find the ZIP64 end of central directory locator");
|
|
930
969
|
if (this.reader.setIndex(p), this.checkSignature(n.ZIP64_CENTRAL_DIRECTORY_LOCATOR), this.readBlockZip64EndOfCentralLocator(), !this.isSignature(this.relativeOffsetEndOfZip64CentralDir, n.ZIP64_CENTRAL_DIRECTORY_END) && (this.relativeOffsetEndOfZip64CentralDir = this.reader.lastIndexOfSignature(n.ZIP64_CENTRAL_DIRECTORY_END), this.relativeOffsetEndOfZip64CentralDir < 0)) throw new Error("Corrupted zip: can't find the ZIP64 end of central directory");
|
|
@@ -932,28 +971,28 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
932
971
|
}
|
|
933
972
|
var i = this.centralDirOffset + this.centralDirSize;
|
|
934
973
|
this.zip64 && (i += 20, i += 12 + this.zip64EndOfCentralSize);
|
|
935
|
-
var d =
|
|
936
|
-
if (0 < d) this.isSignature(
|
|
974
|
+
var d = b - i;
|
|
975
|
+
if (0 < d) this.isSignature(b, n.CENTRAL_FILE_HEADER) || (this.reader.zero = d);
|
|
937
976
|
else if (d < 0) throw new Error("Corrupted zip: missing " + Math.abs(d) + " bytes.");
|
|
938
977
|
}, prepareReader: function(p) {
|
|
939
|
-
this.reader =
|
|
978
|
+
this.reader = u(p);
|
|
940
979
|
}, load: function(p) {
|
|
941
980
|
this.prepareReader(p), this.readEndOfCentral(), this.readCentralDir(), this.readLocalFiles();
|
|
942
|
-
} },
|
|
943
|
-
}, { "./reader/readerFor": 22, "./signature": 23, "./support": 30, "./utils": 32, "./zipEntry": 34 }], 34: [function(
|
|
944
|
-
var
|
|
945
|
-
function
|
|
981
|
+
} }, N.exports = y;
|
|
982
|
+
}, { "./reader/readerFor": 22, "./signature": 23, "./support": 30, "./utils": 32, "./zipEntry": 34 }], 34: [function(_, N, k) {
|
|
983
|
+
var u = _("./reader/readerFor"), o = _("./utils"), n = _("./compressedObject"), h = _("./crc32"), g = _("./utf8"), y = _("./compressions"), p = _("./support");
|
|
984
|
+
function b(i, d) {
|
|
946
985
|
this.options = i, this.loadOptions = d;
|
|
947
986
|
}
|
|
948
|
-
|
|
987
|
+
b.prototype = { isEncrypted: function() {
|
|
949
988
|
return (1 & this.bitFlag) == 1;
|
|
950
989
|
}, useUTF8: function() {
|
|
951
990
|
return (2048 & this.bitFlag) == 2048;
|
|
952
991
|
}, readLocalPart: function(i) {
|
|
953
992
|
var d, r;
|
|
954
993
|
if (i.skip(22), this.fileNameLength = i.readInt(2), r = i.readInt(2), this.fileName = i.readData(this.fileNameLength), i.skip(r), this.compressedSize === -1 || this.uncompressedSize === -1) throw new Error("Bug or corrupted zip : didn't get enough information from the central directory (compressedSize === -1 || uncompressedSize === -1)");
|
|
955
|
-
if ((d = function(
|
|
956
|
-
for (var a in y) if (Object.prototype.hasOwnProperty.call(y, a) && y[a].magic ===
|
|
994
|
+
if ((d = function(l) {
|
|
995
|
+
for (var a in y) if (Object.prototype.hasOwnProperty.call(y, a) && y[a].magic === l) return y[a];
|
|
957
996
|
return null;
|
|
958
997
|
}(this.compressionMethod)) === null) throw new Error("Corrupted zip : compression " + o.pretty(this.compressionMethod) + " unknown (inner file : " + o.transformTo("string", this.fileName) + ")");
|
|
959
998
|
this.decompressed = new n(this.compressedSize, this.uncompressedSize, this.crc32, d, i.readData(this.compressedSize));
|
|
@@ -968,16 +1007,16 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
968
1007
|
this.dir = !!(16 & this.externalFileAttributes), i == 0 && (this.dosPermissions = 63 & this.externalFileAttributes), i == 3 && (this.unixPermissions = this.externalFileAttributes >> 16 & 65535), this.dir || this.fileNameStr.slice(-1) !== "/" || (this.dir = !0);
|
|
969
1008
|
}, parseZIP64ExtraField: function() {
|
|
970
1009
|
if (this.extraFields[1]) {
|
|
971
|
-
var i =
|
|
1010
|
+
var i = u(this.extraFields[1].value);
|
|
972
1011
|
this.uncompressedSize === o.MAX_VALUE_32BITS && (this.uncompressedSize = i.readInt(8)), this.compressedSize === o.MAX_VALUE_32BITS && (this.compressedSize = i.readInt(8)), this.localHeaderOffset === o.MAX_VALUE_32BITS && (this.localHeaderOffset = i.readInt(8)), this.diskNumberStart === o.MAX_VALUE_32BITS && (this.diskNumberStart = i.readInt(4));
|
|
973
1012
|
}
|
|
974
1013
|
}, readExtraFields: function(i) {
|
|
975
|
-
var d, r,
|
|
976
|
-
for (this.extraFields || (this.extraFields = {}); i.index + 4 < a; ) d = i.readInt(2), r = i.readInt(2),
|
|
1014
|
+
var d, r, l, a = i.index + this.extraFieldsLength;
|
|
1015
|
+
for (this.extraFields || (this.extraFields = {}); i.index + 4 < a; ) d = i.readInt(2), r = i.readInt(2), l = i.readData(r), this.extraFields[d] = { id: d, length: r, value: l };
|
|
977
1016
|
i.setIndex(a);
|
|
978
1017
|
}, handleUTF8: function() {
|
|
979
1018
|
var i = p.uint8array ? "uint8array" : "array";
|
|
980
|
-
if (this.useUTF8()) this.fileNameStr =
|
|
1019
|
+
if (this.useUTF8()) this.fileNameStr = g.utf8decode(this.fileName), this.fileCommentStr = g.utf8decode(this.fileComment);
|
|
981
1020
|
else {
|
|
982
1021
|
var d = this.findExtraFieldUnicodePath();
|
|
983
1022
|
if (d !== null) this.fileNameStr = d;
|
|
@@ -985,8 +1024,8 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
985
1024
|
var r = o.transformTo(i, this.fileName);
|
|
986
1025
|
this.fileNameStr = this.loadOptions.decodeFileName(r);
|
|
987
1026
|
}
|
|
988
|
-
var
|
|
989
|
-
if (
|
|
1027
|
+
var l = this.findExtraFieldUnicodeComment();
|
|
1028
|
+
if (l !== null) this.fileCommentStr = l;
|
|
990
1029
|
else {
|
|
991
1030
|
var a = o.transformTo(i, this.fileComment);
|
|
992
1031
|
this.fileCommentStr = this.loadOptions.decodeFileName(a);
|
|
@@ -995,100 +1034,100 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
995
1034
|
}, findExtraFieldUnicodePath: function() {
|
|
996
1035
|
var i = this.extraFields[28789];
|
|
997
1036
|
if (i) {
|
|
998
|
-
var d =
|
|
999
|
-
return d.readInt(1) !== 1 ||
|
|
1037
|
+
var d = u(i.value);
|
|
1038
|
+
return d.readInt(1) !== 1 || h(this.fileName) !== d.readInt(4) ? null : g.utf8decode(d.readData(i.length - 5));
|
|
1000
1039
|
}
|
|
1001
1040
|
return null;
|
|
1002
1041
|
}, findExtraFieldUnicodeComment: function() {
|
|
1003
1042
|
var i = this.extraFields[25461];
|
|
1004
1043
|
if (i) {
|
|
1005
|
-
var d =
|
|
1006
|
-
return d.readInt(1) !== 1 ||
|
|
1044
|
+
var d = u(i.value);
|
|
1045
|
+
return d.readInt(1) !== 1 || h(this.fileComment) !== d.readInt(4) ? null : g.utf8decode(d.readData(i.length - 5));
|
|
1007
1046
|
}
|
|
1008
1047
|
return null;
|
|
1009
|
-
} },
|
|
1010
|
-
}, { "./compressedObject": 2, "./compressions": 3, "./crc32": 4, "./reader/readerFor": 22, "./support": 30, "./utf8": 31, "./utils": 32 }], 35: [function(
|
|
1011
|
-
function
|
|
1012
|
-
this.name = d, this.dir =
|
|
1013
|
-
}
|
|
1014
|
-
var o =
|
|
1015
|
-
|
|
1016
|
-
var r = null,
|
|
1048
|
+
} }, N.exports = b;
|
|
1049
|
+
}, { "./compressedObject": 2, "./compressions": 3, "./crc32": 4, "./reader/readerFor": 22, "./support": 30, "./utf8": 31, "./utils": 32 }], 35: [function(_, N, k) {
|
|
1050
|
+
function u(d, r, l) {
|
|
1051
|
+
this.name = d, this.dir = l.dir, this.date = l.date, this.comment = l.comment, this.unixPermissions = l.unixPermissions, this.dosPermissions = l.dosPermissions, this._data = r, this._dataBinary = l.binary, this.options = { compression: l.compression, compressionOptions: l.compressionOptions };
|
|
1052
|
+
}
|
|
1053
|
+
var o = _("./stream/StreamHelper"), n = _("./stream/DataWorker"), h = _("./utf8"), g = _("./compressedObject"), y = _("./stream/GenericWorker");
|
|
1054
|
+
u.prototype = { internalStream: function(d) {
|
|
1055
|
+
var r = null, l = "string";
|
|
1017
1056
|
try {
|
|
1018
1057
|
if (!d) throw new Error("No output type specified.");
|
|
1019
|
-
var a = (
|
|
1020
|
-
|
|
1058
|
+
var a = (l = d.toLowerCase()) === "string" || l === "text";
|
|
1059
|
+
l !== "binarystring" && l !== "text" || (l = "string"), r = this._decompressWorker();
|
|
1021
1060
|
var c = !this._dataBinary;
|
|
1022
|
-
c && !a && (r = r.pipe(new
|
|
1061
|
+
c && !a && (r = r.pipe(new h.Utf8EncodeWorker())), !c && a && (r = r.pipe(new h.Utf8DecodeWorker()));
|
|
1023
1062
|
} catch (v) {
|
|
1024
1063
|
(r = new y("error")).error(v);
|
|
1025
1064
|
}
|
|
1026
|
-
return new o(r,
|
|
1065
|
+
return new o(r, l, "");
|
|
1027
1066
|
}, async: function(d, r) {
|
|
1028
1067
|
return this.internalStream(d).accumulate(r);
|
|
1029
1068
|
}, nodeStream: function(d, r) {
|
|
1030
1069
|
return this.internalStream(d || "nodebuffer").toNodejsStream(r);
|
|
1031
1070
|
}, _compressWorker: function(d, r) {
|
|
1032
|
-
if (this._data instanceof
|
|
1033
|
-
var
|
|
1034
|
-
return this._dataBinary || (
|
|
1071
|
+
if (this._data instanceof g && this._data.compression.magic === d.magic) return this._data.getCompressedWorker();
|
|
1072
|
+
var l = this._decompressWorker();
|
|
1073
|
+
return this._dataBinary || (l = l.pipe(new h.Utf8EncodeWorker())), g.createWorkerFrom(l, d, r);
|
|
1035
1074
|
}, _decompressWorker: function() {
|
|
1036
|
-
return this._data instanceof
|
|
1075
|
+
return this._data instanceof g ? this._data.getContentWorker() : this._data instanceof y ? this._data : new n(this._data);
|
|
1037
1076
|
} };
|
|
1038
|
-
for (var p = ["asText", "asBinary", "asNodeBuffer", "asUint8Array", "asArrayBuffer"],
|
|
1077
|
+
for (var p = ["asText", "asBinary", "asNodeBuffer", "asUint8Array", "asArrayBuffer"], b = function() {
|
|
1039
1078
|
throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.");
|
|
1040
|
-
}, i = 0; i < p.length; i++)
|
|
1041
|
-
|
|
1042
|
-
}, { "./compressedObject": 2, "./stream/DataWorker": 27, "./stream/GenericWorker": 28, "./stream/StreamHelper": 29, "./utf8": 31 }], 36: [function(
|
|
1043
|
-
(function(
|
|
1044
|
-
var o, n,
|
|
1045
|
-
if (
|
|
1046
|
-
var
|
|
1079
|
+
}, i = 0; i < p.length; i++) u.prototype[p[i]] = b;
|
|
1080
|
+
N.exports = u;
|
|
1081
|
+
}, { "./compressedObject": 2, "./stream/DataWorker": 27, "./stream/GenericWorker": 28, "./stream/StreamHelper": 29, "./utf8": 31 }], 36: [function(_, N, k) {
|
|
1082
|
+
(function(u) {
|
|
1083
|
+
var o, n, h = u.MutationObserver || u.WebKitMutationObserver;
|
|
1084
|
+
if (h) {
|
|
1085
|
+
var g = 0, y = new h(d), p = u.document.createTextNode("");
|
|
1047
1086
|
y.observe(p, { characterData: !0 }), o = function() {
|
|
1048
|
-
p.data =
|
|
1087
|
+
p.data = g = ++g % 2;
|
|
1049
1088
|
};
|
|
1050
|
-
} else if (
|
|
1051
|
-
var r =
|
|
1089
|
+
} else if (u.setImmediate || u.MessageChannel === void 0) o = "document" in u && "onreadystatechange" in u.document.createElement("script") ? function() {
|
|
1090
|
+
var r = u.document.createElement("script");
|
|
1052
1091
|
r.onreadystatechange = function() {
|
|
1053
1092
|
d(), r.onreadystatechange = null, r.parentNode.removeChild(r), r = null;
|
|
1054
|
-
},
|
|
1093
|
+
}, u.document.documentElement.appendChild(r);
|
|
1055
1094
|
} : function() {
|
|
1056
1095
|
setTimeout(d, 0);
|
|
1057
1096
|
};
|
|
1058
1097
|
else {
|
|
1059
|
-
var
|
|
1060
|
-
|
|
1061
|
-
|
|
1098
|
+
var b = new u.MessageChannel();
|
|
1099
|
+
b.port1.onmessage = d, o = function() {
|
|
1100
|
+
b.port2.postMessage(0);
|
|
1062
1101
|
};
|
|
1063
1102
|
}
|
|
1064
1103
|
var i = [];
|
|
1065
1104
|
function d() {
|
|
1066
|
-
var r,
|
|
1105
|
+
var r, l;
|
|
1067
1106
|
n = !0;
|
|
1068
1107
|
for (var a = i.length; a; ) {
|
|
1069
|
-
for (
|
|
1108
|
+
for (l = i, i = [], r = -1; ++r < a; ) l[r]();
|
|
1070
1109
|
a = i.length;
|
|
1071
1110
|
}
|
|
1072
1111
|
n = !1;
|
|
1073
1112
|
}
|
|
1074
|
-
|
|
1113
|
+
N.exports = function(r) {
|
|
1075
1114
|
i.push(r) !== 1 || n || o();
|
|
1076
1115
|
};
|
|
1077
1116
|
}).call(this, typeof vt < "u" ? vt : typeof self < "u" ? self : typeof window < "u" ? window : {});
|
|
1078
|
-
}, {}], 37: [function(
|
|
1079
|
-
var
|
|
1117
|
+
}, {}], 37: [function(_, N, k) {
|
|
1118
|
+
var u = _("immediate");
|
|
1080
1119
|
function o() {
|
|
1081
1120
|
}
|
|
1082
|
-
var n = {},
|
|
1121
|
+
var n = {}, h = ["REJECTED"], g = ["FULFILLED"], y = ["PENDING"];
|
|
1083
1122
|
function p(a) {
|
|
1084
1123
|
if (typeof a != "function") throw new TypeError("resolver must be a function");
|
|
1085
1124
|
this.state = y, this.queue = [], this.outcome = void 0, a !== o && r(this, a);
|
|
1086
1125
|
}
|
|
1087
|
-
function
|
|
1126
|
+
function b(a, c, v) {
|
|
1088
1127
|
this.promise = a, typeof c == "function" && (this.onFulfilled = c, this.callFulfilled = this.otherCallFulfilled), typeof v == "function" && (this.onRejected = v, this.callRejected = this.otherCallRejected);
|
|
1089
1128
|
}
|
|
1090
1129
|
function i(a, c, v) {
|
|
1091
|
-
|
|
1130
|
+
u(function() {
|
|
1092
1131
|
var S;
|
|
1093
1132
|
try {
|
|
1094
1133
|
S = c(v);
|
|
@@ -1112,12 +1151,12 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
1112
1151
|
function x(O) {
|
|
1113
1152
|
v || (v = !0, n.resolve(a, O));
|
|
1114
1153
|
}
|
|
1115
|
-
var D =
|
|
1154
|
+
var D = l(function() {
|
|
1116
1155
|
c(x, S);
|
|
1117
1156
|
});
|
|
1118
1157
|
D.status === "error" && S(D.value);
|
|
1119
1158
|
}
|
|
1120
|
-
function
|
|
1159
|
+
function l(a, c) {
|
|
1121
1160
|
var v = {};
|
|
1122
1161
|
try {
|
|
1123
1162
|
v.value = a(c), v.status = "success";
|
|
@@ -1126,7 +1165,7 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
1126
1165
|
}
|
|
1127
1166
|
return v;
|
|
1128
1167
|
}
|
|
1129
|
-
(
|
|
1168
|
+
(N.exports = p).prototype.finally = function(a) {
|
|
1130
1169
|
if (typeof a != "function") return this;
|
|
1131
1170
|
var c = this.constructor;
|
|
1132
1171
|
return this.then(function(v) {
|
|
@@ -1141,29 +1180,29 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
1141
1180
|
}, p.prototype.catch = function(a) {
|
|
1142
1181
|
return this.then(null, a);
|
|
1143
1182
|
}, p.prototype.then = function(a, c) {
|
|
1144
|
-
if (typeof a != "function" && this.state ===
|
|
1183
|
+
if (typeof a != "function" && this.state === g || typeof c != "function" && this.state === h) return this;
|
|
1145
1184
|
var v = new this.constructor(o);
|
|
1146
|
-
return this.state !== y ? i(v, this.state ===
|
|
1147
|
-
},
|
|
1185
|
+
return this.state !== y ? i(v, this.state === g ? a : c, this.outcome) : this.queue.push(new b(v, a, c)), v;
|
|
1186
|
+
}, b.prototype.callFulfilled = function(a) {
|
|
1148
1187
|
n.resolve(this.promise, a);
|
|
1149
|
-
},
|
|
1188
|
+
}, b.prototype.otherCallFulfilled = function(a) {
|
|
1150
1189
|
i(this.promise, this.onFulfilled, a);
|
|
1151
|
-
},
|
|
1190
|
+
}, b.prototype.callRejected = function(a) {
|
|
1152
1191
|
n.reject(this.promise, a);
|
|
1153
|
-
},
|
|
1192
|
+
}, b.prototype.otherCallRejected = function(a) {
|
|
1154
1193
|
i(this.promise, this.onRejected, a);
|
|
1155
1194
|
}, n.resolve = function(a, c) {
|
|
1156
|
-
var v =
|
|
1195
|
+
var v = l(d, c);
|
|
1157
1196
|
if (v.status === "error") return n.reject(a, v.value);
|
|
1158
1197
|
var S = v.value;
|
|
1159
1198
|
if (S) r(a, S);
|
|
1160
1199
|
else {
|
|
1161
|
-
a.state =
|
|
1200
|
+
a.state = g, a.outcome = c;
|
|
1162
1201
|
for (var x = -1, D = a.queue.length; ++x < D; ) a.queue[x].callFulfilled(c);
|
|
1163
1202
|
}
|
|
1164
1203
|
return a;
|
|
1165
1204
|
}, n.reject = function(a, c) {
|
|
1166
|
-
a.state =
|
|
1205
|
+
a.state = h, a.outcome = c;
|
|
1167
1206
|
for (var v = -1, S = a.queue.length; ++v < S; ) a.queue[v].callRejected(c);
|
|
1168
1207
|
return a;
|
|
1169
1208
|
}, p.resolve = function(a) {
|
|
@@ -1176,13 +1215,13 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
1176
1215
|
if (Object.prototype.toString.call(a) !== "[object Array]") return this.reject(new TypeError("must be an array"));
|
|
1177
1216
|
var v = a.length, S = !1;
|
|
1178
1217
|
if (!v) return this.resolve([]);
|
|
1179
|
-
for (var x = new Array(v), D = 0, O = -1,
|
|
1180
|
-
return
|
|
1218
|
+
for (var x = new Array(v), D = 0, O = -1, j = new this(o); ++O < v; ) I(a[O], O);
|
|
1219
|
+
return j;
|
|
1181
1220
|
function I(W, V) {
|
|
1182
1221
|
c.resolve(W).then(function(m) {
|
|
1183
|
-
x[V] = m, ++D !== v || S || (S = !0, n.resolve(
|
|
1222
|
+
x[V] = m, ++D !== v || S || (S = !0, n.resolve(j, x));
|
|
1184
1223
|
}, function(m) {
|
|
1185
|
-
S || (S = !0, n.reject(
|
|
1224
|
+
S || (S = !0, n.reject(j, m));
|
|
1186
1225
|
});
|
|
1187
1226
|
}
|
|
1188
1227
|
}, p.race = function(a) {
|
|
@@ -1190,35 +1229,35 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
1190
1229
|
if (Object.prototype.toString.call(a) !== "[object Array]") return this.reject(new TypeError("must be an array"));
|
|
1191
1230
|
var v = a.length, S = !1;
|
|
1192
1231
|
if (!v) return this.resolve([]);
|
|
1193
|
-
for (var x = -1, D = new this(o); ++x < v; ) O = a[x], c.resolve(O).then(function(
|
|
1194
|
-
S || (S = !0, n.resolve(D,
|
|
1195
|
-
}, function(
|
|
1196
|
-
S || (S = !0, n.reject(D,
|
|
1232
|
+
for (var x = -1, D = new this(o); ++x < v; ) O = a[x], c.resolve(O).then(function(j) {
|
|
1233
|
+
S || (S = !0, n.resolve(D, j));
|
|
1234
|
+
}, function(j) {
|
|
1235
|
+
S || (S = !0, n.reject(D, j));
|
|
1197
1236
|
});
|
|
1198
1237
|
var O;
|
|
1199
1238
|
return D;
|
|
1200
1239
|
};
|
|
1201
|
-
}, { immediate: 36 }], 38: [function(
|
|
1202
|
-
var
|
|
1203
|
-
(0,
|
|
1204
|
-
}, { "./lib/deflate": 39, "./lib/inflate": 40, "./lib/utils/common": 41, "./lib/zlib/constants": 44 }], 39: [function(
|
|
1205
|
-
var
|
|
1240
|
+
}, { immediate: 36 }], 38: [function(_, N, k) {
|
|
1241
|
+
var u = {};
|
|
1242
|
+
(0, _("./lib/utils/common").assign)(u, _("./lib/deflate"), _("./lib/inflate"), _("./lib/zlib/constants")), N.exports = u;
|
|
1243
|
+
}, { "./lib/deflate": 39, "./lib/inflate": 40, "./lib/utils/common": 41, "./lib/zlib/constants": 44 }], 39: [function(_, N, k) {
|
|
1244
|
+
var u = _("./zlib/deflate"), o = _("./utils/common"), n = _("./utils/strings"), h = _("./zlib/messages"), g = _("./zlib/zstream"), y = Object.prototype.toString, p = 0, b = -1, i = 0, d = 8;
|
|
1206
1245
|
function r(a) {
|
|
1207
1246
|
if (!(this instanceof r)) return new r(a);
|
|
1208
|
-
this.options = o.assign({ level:
|
|
1247
|
+
this.options = o.assign({ level: b, method: d, chunkSize: 16384, windowBits: 15, memLevel: 8, strategy: i, to: "" }, a || {});
|
|
1209
1248
|
var c = this.options;
|
|
1210
|
-
c.raw && 0 < c.windowBits ? c.windowBits = -c.windowBits : c.gzip && 0 < c.windowBits && c.windowBits < 16 && (c.windowBits += 16), this.err = 0, this.msg = "", this.ended = !1, this.chunks = [], this.strm = new
|
|
1211
|
-
var v =
|
|
1212
|
-
if (v !== p) throw new Error(
|
|
1213
|
-
if (c.header &&
|
|
1249
|
+
c.raw && 0 < c.windowBits ? c.windowBits = -c.windowBits : c.gzip && 0 < c.windowBits && c.windowBits < 16 && (c.windowBits += 16), this.err = 0, this.msg = "", this.ended = !1, this.chunks = [], this.strm = new g(), this.strm.avail_out = 0;
|
|
1250
|
+
var v = u.deflateInit2(this.strm, c.level, c.method, c.windowBits, c.memLevel, c.strategy);
|
|
1251
|
+
if (v !== p) throw new Error(h[v]);
|
|
1252
|
+
if (c.header && u.deflateSetHeader(this.strm, c.header), c.dictionary) {
|
|
1214
1253
|
var S;
|
|
1215
|
-
if (S = typeof c.dictionary == "string" ? n.string2buf(c.dictionary) : y.call(c.dictionary) === "[object ArrayBuffer]" ? new Uint8Array(c.dictionary) : c.dictionary, (v =
|
|
1254
|
+
if (S = typeof c.dictionary == "string" ? n.string2buf(c.dictionary) : y.call(c.dictionary) === "[object ArrayBuffer]" ? new Uint8Array(c.dictionary) : c.dictionary, (v = u.deflateSetDictionary(this.strm, S)) !== p) throw new Error(h[v]);
|
|
1216
1255
|
this._dict_set = !0;
|
|
1217
1256
|
}
|
|
1218
1257
|
}
|
|
1219
|
-
function
|
|
1258
|
+
function l(a, c) {
|
|
1220
1259
|
var v = new r(c);
|
|
1221
|
-
if (v.push(a, !0), v.err) throw v.msg ||
|
|
1260
|
+
if (v.push(a, !0), v.err) throw v.msg || h[v.err];
|
|
1222
1261
|
return v.result;
|
|
1223
1262
|
}
|
|
1224
1263
|
r.prototype.push = function(a, c) {
|
|
@@ -1226,83 +1265,83 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
1226
1265
|
if (this.ended) return !1;
|
|
1227
1266
|
S = c === ~~c ? c : c === !0 ? 4 : 0, typeof a == "string" ? x.input = n.string2buf(a) : y.call(a) === "[object ArrayBuffer]" ? x.input = new Uint8Array(a) : x.input = a, x.next_in = 0, x.avail_in = x.input.length;
|
|
1228
1267
|
do {
|
|
1229
|
-
if (x.avail_out === 0 && (x.output = new o.Buf8(D), x.next_out = 0, x.avail_out = D), (v =
|
|
1268
|
+
if (x.avail_out === 0 && (x.output = new o.Buf8(D), x.next_out = 0, x.avail_out = D), (v = u.deflate(x, S)) !== 1 && v !== p) return this.onEnd(v), !(this.ended = !0);
|
|
1230
1269
|
x.avail_out !== 0 && (x.avail_in !== 0 || S !== 4 && S !== 2) || (this.options.to === "string" ? this.onData(n.buf2binstring(o.shrinkBuf(x.output, x.next_out))) : this.onData(o.shrinkBuf(x.output, x.next_out)));
|
|
1231
1270
|
} while ((0 < x.avail_in || x.avail_out === 0) && v !== 1);
|
|
1232
|
-
return S === 4 ? (v =
|
|
1271
|
+
return S === 4 ? (v = u.deflateEnd(this.strm), this.onEnd(v), this.ended = !0, v === p) : S !== 2 || (this.onEnd(p), !(x.avail_out = 0));
|
|
1233
1272
|
}, r.prototype.onData = function(a) {
|
|
1234
1273
|
this.chunks.push(a);
|
|
1235
1274
|
}, r.prototype.onEnd = function(a) {
|
|
1236
1275
|
a === p && (this.options.to === "string" ? this.result = this.chunks.join("") : this.result = o.flattenChunks(this.chunks)), this.chunks = [], this.err = a, this.msg = this.strm.msg;
|
|
1237
|
-
}, k.Deflate = r, k.deflate =
|
|
1238
|
-
return (c = c || {}).raw = !0,
|
|
1276
|
+
}, k.Deflate = r, k.deflate = l, k.deflateRaw = function(a, c) {
|
|
1277
|
+
return (c = c || {}).raw = !0, l(a, c);
|
|
1239
1278
|
}, k.gzip = function(a, c) {
|
|
1240
|
-
return (c = c || {}).gzip = !0,
|
|
1279
|
+
return (c = c || {}).gzip = !0, l(a, c);
|
|
1241
1280
|
};
|
|
1242
|
-
}, { "./utils/common": 41, "./utils/strings": 42, "./zlib/deflate": 46, "./zlib/messages": 51, "./zlib/zstream": 53 }], 40: [function(
|
|
1243
|
-
var
|
|
1281
|
+
}, { "./utils/common": 41, "./utils/strings": 42, "./zlib/deflate": 46, "./zlib/messages": 51, "./zlib/zstream": 53 }], 40: [function(_, N, k) {
|
|
1282
|
+
var u = _("./zlib/inflate"), o = _("./utils/common"), n = _("./utils/strings"), h = _("./zlib/constants"), g = _("./zlib/messages"), y = _("./zlib/zstream"), p = _("./zlib/gzheader"), b = Object.prototype.toString;
|
|
1244
1283
|
function i(r) {
|
|
1245
1284
|
if (!(this instanceof i)) return new i(r);
|
|
1246
1285
|
this.options = o.assign({ chunkSize: 16384, windowBits: 0, to: "" }, r || {});
|
|
1247
|
-
var
|
|
1248
|
-
|
|
1249
|
-
var a =
|
|
1250
|
-
if (a !==
|
|
1251
|
-
this.header = new p(),
|
|
1252
|
-
}
|
|
1253
|
-
function d(r,
|
|
1254
|
-
var a = new i(
|
|
1255
|
-
if (a.push(r, !0), a.err) throw a.msg ||
|
|
1286
|
+
var l = this.options;
|
|
1287
|
+
l.raw && 0 <= l.windowBits && l.windowBits < 16 && (l.windowBits = -l.windowBits, l.windowBits === 0 && (l.windowBits = -15)), !(0 <= l.windowBits && l.windowBits < 16) || r && r.windowBits || (l.windowBits += 32), 15 < l.windowBits && l.windowBits < 48 && !(15 & l.windowBits) && (l.windowBits |= 15), this.err = 0, this.msg = "", this.ended = !1, this.chunks = [], this.strm = new y(), this.strm.avail_out = 0;
|
|
1288
|
+
var a = u.inflateInit2(this.strm, l.windowBits);
|
|
1289
|
+
if (a !== h.Z_OK) throw new Error(g[a]);
|
|
1290
|
+
this.header = new p(), u.inflateGetHeader(this.strm, this.header);
|
|
1291
|
+
}
|
|
1292
|
+
function d(r, l) {
|
|
1293
|
+
var a = new i(l);
|
|
1294
|
+
if (a.push(r, !0), a.err) throw a.msg || g[a.err];
|
|
1256
1295
|
return a.result;
|
|
1257
1296
|
}
|
|
1258
|
-
i.prototype.push = function(r,
|
|
1259
|
-
var a, c, v, S, x, D, O = this.strm,
|
|
1297
|
+
i.prototype.push = function(r, l) {
|
|
1298
|
+
var a, c, v, S, x, D, O = this.strm, j = this.options.chunkSize, I = this.options.dictionary, W = !1;
|
|
1260
1299
|
if (this.ended) return !1;
|
|
1261
|
-
c =
|
|
1300
|
+
c = l === ~~l ? l : l === !0 ? h.Z_FINISH : h.Z_NO_FLUSH, typeof r == "string" ? O.input = n.binstring2buf(r) : b.call(r) === "[object ArrayBuffer]" ? O.input = new Uint8Array(r) : O.input = r, O.next_in = 0, O.avail_in = O.input.length;
|
|
1262
1301
|
do {
|
|
1263
|
-
if (O.avail_out === 0 && (O.output = new o.Buf8(
|
|
1264
|
-
O.next_out && (O.avail_out !== 0 && a !==
|
|
1265
|
-
} while ((0 < O.avail_in || O.avail_out === 0) && a !==
|
|
1266
|
-
return a ===
|
|
1302
|
+
if (O.avail_out === 0 && (O.output = new o.Buf8(j), O.next_out = 0, O.avail_out = j), (a = u.inflate(O, h.Z_NO_FLUSH)) === h.Z_NEED_DICT && I && (D = typeof I == "string" ? n.string2buf(I) : b.call(I) === "[object ArrayBuffer]" ? new Uint8Array(I) : I, a = u.inflateSetDictionary(this.strm, D)), a === h.Z_BUF_ERROR && W === !0 && (a = h.Z_OK, W = !1), a !== h.Z_STREAM_END && a !== h.Z_OK) return this.onEnd(a), !(this.ended = !0);
|
|
1303
|
+
O.next_out && (O.avail_out !== 0 && a !== h.Z_STREAM_END && (O.avail_in !== 0 || c !== h.Z_FINISH && c !== h.Z_SYNC_FLUSH) || (this.options.to === "string" ? (v = n.utf8border(O.output, O.next_out), S = O.next_out - v, x = n.buf2string(O.output, v), O.next_out = S, O.avail_out = j - S, S && o.arraySet(O.output, O.output, v, S, 0), this.onData(x)) : this.onData(o.shrinkBuf(O.output, O.next_out)))), O.avail_in === 0 && O.avail_out === 0 && (W = !0);
|
|
1304
|
+
} while ((0 < O.avail_in || O.avail_out === 0) && a !== h.Z_STREAM_END);
|
|
1305
|
+
return a === h.Z_STREAM_END && (c = h.Z_FINISH), c === h.Z_FINISH ? (a = u.inflateEnd(this.strm), this.onEnd(a), this.ended = !0, a === h.Z_OK) : c !== h.Z_SYNC_FLUSH || (this.onEnd(h.Z_OK), !(O.avail_out = 0));
|
|
1267
1306
|
}, i.prototype.onData = function(r) {
|
|
1268
1307
|
this.chunks.push(r);
|
|
1269
1308
|
}, i.prototype.onEnd = function(r) {
|
|
1270
|
-
r ===
|
|
1271
|
-
}, k.Inflate = i, k.inflate = d, k.inflateRaw = function(r,
|
|
1272
|
-
return (
|
|
1309
|
+
r === h.Z_OK && (this.options.to === "string" ? this.result = this.chunks.join("") : this.result = o.flattenChunks(this.chunks)), this.chunks = [], this.err = r, this.msg = this.strm.msg;
|
|
1310
|
+
}, k.Inflate = i, k.inflate = d, k.inflateRaw = function(r, l) {
|
|
1311
|
+
return (l = l || {}).raw = !0, d(r, l);
|
|
1273
1312
|
}, k.ungzip = d;
|
|
1274
|
-
}, { "./utils/common": 41, "./utils/strings": 42, "./zlib/constants": 44, "./zlib/gzheader": 47, "./zlib/inflate": 49, "./zlib/messages": 51, "./zlib/zstream": 53 }], 41: [function(
|
|
1275
|
-
var
|
|
1276
|
-
k.assign = function(
|
|
1277
|
-
for (var
|
|
1278
|
-
var y =
|
|
1313
|
+
}, { "./utils/common": 41, "./utils/strings": 42, "./zlib/constants": 44, "./zlib/gzheader": 47, "./zlib/inflate": 49, "./zlib/messages": 51, "./zlib/zstream": 53 }], 41: [function(_, N, k) {
|
|
1314
|
+
var u = typeof Uint8Array < "u" && typeof Uint16Array < "u" && typeof Int32Array < "u";
|
|
1315
|
+
k.assign = function(h) {
|
|
1316
|
+
for (var g = Array.prototype.slice.call(arguments, 1); g.length; ) {
|
|
1317
|
+
var y = g.shift();
|
|
1279
1318
|
if (y) {
|
|
1280
1319
|
if (typeof y != "object") throw new TypeError(y + "must be non-object");
|
|
1281
|
-
for (var p in y) y.hasOwnProperty(p) && (
|
|
1320
|
+
for (var p in y) y.hasOwnProperty(p) && (h[p] = y[p]);
|
|
1282
1321
|
}
|
|
1283
1322
|
}
|
|
1284
|
-
return
|
|
1285
|
-
}, k.shrinkBuf = function(
|
|
1286
|
-
return
|
|
1323
|
+
return h;
|
|
1324
|
+
}, k.shrinkBuf = function(h, g) {
|
|
1325
|
+
return h.length === g ? h : h.subarray ? h.subarray(0, g) : (h.length = g, h);
|
|
1287
1326
|
};
|
|
1288
|
-
var o = { arraySet: function(
|
|
1289
|
-
if (
|
|
1290
|
-
else for (var i = 0; i < p; i++)
|
|
1291
|
-
}, flattenChunks: function(
|
|
1292
|
-
var
|
|
1293
|
-
for (
|
|
1294
|
-
for (d = new Uint8Array(p),
|
|
1327
|
+
var o = { arraySet: function(h, g, y, p, b) {
|
|
1328
|
+
if (g.subarray && h.subarray) h.set(g.subarray(y, y + p), b);
|
|
1329
|
+
else for (var i = 0; i < p; i++) h[b + i] = g[y + i];
|
|
1330
|
+
}, flattenChunks: function(h) {
|
|
1331
|
+
var g, y, p, b, i, d;
|
|
1332
|
+
for (g = p = 0, y = h.length; g < y; g++) p += h[g].length;
|
|
1333
|
+
for (d = new Uint8Array(p), g = b = 0, y = h.length; g < y; g++) i = h[g], d.set(i, b), b += i.length;
|
|
1295
1334
|
return d;
|
|
1296
|
-
} }, n = { arraySet: function(
|
|
1297
|
-
for (var i = 0; i < p; i++)
|
|
1298
|
-
}, flattenChunks: function(
|
|
1299
|
-
return [].concat.apply([],
|
|
1335
|
+
} }, n = { arraySet: function(h, g, y, p, b) {
|
|
1336
|
+
for (var i = 0; i < p; i++) h[b + i] = g[y + i];
|
|
1337
|
+
}, flattenChunks: function(h) {
|
|
1338
|
+
return [].concat.apply([], h);
|
|
1300
1339
|
} };
|
|
1301
|
-
k.setTyped = function(
|
|
1302
|
-
|
|
1303
|
-
}, k.setTyped(
|
|
1304
|
-
}, {}], 42: [function(
|
|
1305
|
-
var
|
|
1340
|
+
k.setTyped = function(h) {
|
|
1341
|
+
h ? (k.Buf8 = Uint8Array, k.Buf16 = Uint16Array, k.Buf32 = Int32Array, k.assign(k, o)) : (k.Buf8 = Array, k.Buf16 = Array, k.Buf32 = Array, k.assign(k, n));
|
|
1342
|
+
}, k.setTyped(u);
|
|
1343
|
+
}, {}], 42: [function(_, N, k) {
|
|
1344
|
+
var u = _("./common"), o = !0, n = !0;
|
|
1306
1345
|
try {
|
|
1307
1346
|
String.fromCharCode.apply(null, [0]);
|
|
1308
1347
|
} catch {
|
|
@@ -1313,67 +1352,67 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
1313
1352
|
} catch {
|
|
1314
1353
|
n = !1;
|
|
1315
1354
|
}
|
|
1316
|
-
for (var
|
|
1317
|
-
function y(p,
|
|
1318
|
-
if (
|
|
1319
|
-
for (var i = "", d = 0; d <
|
|
1355
|
+
for (var h = new u.Buf8(256), g = 0; g < 256; g++) h[g] = 252 <= g ? 6 : 248 <= g ? 5 : 240 <= g ? 4 : 224 <= g ? 3 : 192 <= g ? 2 : 1;
|
|
1356
|
+
function y(p, b) {
|
|
1357
|
+
if (b < 65537 && (p.subarray && n || !p.subarray && o)) return String.fromCharCode.apply(null, u.shrinkBuf(p, b));
|
|
1358
|
+
for (var i = "", d = 0; d < b; d++) i += String.fromCharCode(p[d]);
|
|
1320
1359
|
return i;
|
|
1321
1360
|
}
|
|
1322
|
-
|
|
1323
|
-
var
|
|
1361
|
+
h[254] = h[254] = 1, k.string2buf = function(p) {
|
|
1362
|
+
var b, i, d, r, l, a = p.length, c = 0;
|
|
1324
1363
|
for (r = 0; r < a; r++) (64512 & (i = p.charCodeAt(r))) == 55296 && r + 1 < a && (64512 & (d = p.charCodeAt(r + 1))) == 56320 && (i = 65536 + (i - 55296 << 10) + (d - 56320), r++), c += i < 128 ? 1 : i < 2048 ? 2 : i < 65536 ? 3 : 4;
|
|
1325
|
-
for (
|
|
1326
|
-
return
|
|
1364
|
+
for (b = new u.Buf8(c), r = l = 0; l < c; r++) (64512 & (i = p.charCodeAt(r))) == 55296 && r + 1 < a && (64512 & (d = p.charCodeAt(r + 1))) == 56320 && (i = 65536 + (i - 55296 << 10) + (d - 56320), r++), i < 128 ? b[l++] = i : (i < 2048 ? b[l++] = 192 | i >>> 6 : (i < 65536 ? b[l++] = 224 | i >>> 12 : (b[l++] = 240 | i >>> 18, b[l++] = 128 | i >>> 12 & 63), b[l++] = 128 | i >>> 6 & 63), b[l++] = 128 | 63 & i);
|
|
1365
|
+
return b;
|
|
1327
1366
|
}, k.buf2binstring = function(p) {
|
|
1328
1367
|
return y(p, p.length);
|
|
1329
1368
|
}, k.binstring2buf = function(p) {
|
|
1330
|
-
for (var
|
|
1331
|
-
return
|
|
1332
|
-
}, k.buf2string = function(p,
|
|
1333
|
-
var i, d, r,
|
|
1369
|
+
for (var b = new u.Buf8(p.length), i = 0, d = b.length; i < d; i++) b[i] = p.charCodeAt(i);
|
|
1370
|
+
return b;
|
|
1371
|
+
}, k.buf2string = function(p, b) {
|
|
1372
|
+
var i, d, r, l, a = b || p.length, c = new Array(2 * a);
|
|
1334
1373
|
for (i = d = 0; i < a; ) if ((r = p[i++]) < 128) c[d++] = r;
|
|
1335
|
-
else if (4 < (
|
|
1374
|
+
else if (4 < (l = h[r])) c[d++] = 65533, i += l - 1;
|
|
1336
1375
|
else {
|
|
1337
|
-
for (r &=
|
|
1338
|
-
1 <
|
|
1376
|
+
for (r &= l === 2 ? 31 : l === 3 ? 15 : 7; 1 < l && i < a; ) r = r << 6 | 63 & p[i++], l--;
|
|
1377
|
+
1 < l ? c[d++] = 65533 : r < 65536 ? c[d++] = r : (r -= 65536, c[d++] = 55296 | r >> 10 & 1023, c[d++] = 56320 | 1023 & r);
|
|
1339
1378
|
}
|
|
1340
1379
|
return y(c, d);
|
|
1341
|
-
}, k.utf8border = function(p,
|
|
1380
|
+
}, k.utf8border = function(p, b) {
|
|
1342
1381
|
var i;
|
|
1343
|
-
for ((
|
|
1344
|
-
return i < 0 || i === 0 ?
|
|
1382
|
+
for ((b = b || p.length) > p.length && (b = p.length), i = b - 1; 0 <= i && (192 & p[i]) == 128; ) i--;
|
|
1383
|
+
return i < 0 || i === 0 ? b : i + h[p[i]] > b ? i : b;
|
|
1345
1384
|
};
|
|
1346
|
-
}, { "./common": 41 }], 43: [function(
|
|
1347
|
-
|
|
1348
|
-
for (var
|
|
1349
|
-
for (n -= p = 2e3 < n ? 2e3 : n; y = y + (
|
|
1350
|
-
|
|
1385
|
+
}, { "./common": 41 }], 43: [function(_, N, k) {
|
|
1386
|
+
N.exports = function(u, o, n, h) {
|
|
1387
|
+
for (var g = 65535 & u | 0, y = u >>> 16 & 65535 | 0, p = 0; n !== 0; ) {
|
|
1388
|
+
for (n -= p = 2e3 < n ? 2e3 : n; y = y + (g = g + o[h++] | 0) | 0, --p; ) ;
|
|
1389
|
+
g %= 65521, y %= 65521;
|
|
1351
1390
|
}
|
|
1352
|
-
return
|
|
1391
|
+
return g | y << 16 | 0;
|
|
1353
1392
|
};
|
|
1354
|
-
}, {}], 44: [function(
|
|
1355
|
-
|
|
1356
|
-
}, {}], 45: [function(
|
|
1357
|
-
var
|
|
1358
|
-
for (var o, n = [],
|
|
1359
|
-
o =
|
|
1360
|
-
for (var
|
|
1361
|
-
n[
|
|
1393
|
+
}, {}], 44: [function(_, N, k) {
|
|
1394
|
+
N.exports = { Z_NO_FLUSH: 0, Z_PARTIAL_FLUSH: 1, Z_SYNC_FLUSH: 2, Z_FULL_FLUSH: 3, Z_FINISH: 4, Z_BLOCK: 5, Z_TREES: 6, Z_OK: 0, Z_STREAM_END: 1, Z_NEED_DICT: 2, Z_ERRNO: -1, Z_STREAM_ERROR: -2, Z_DATA_ERROR: -3, Z_BUF_ERROR: -5, Z_NO_COMPRESSION: 0, Z_BEST_SPEED: 1, Z_BEST_COMPRESSION: 9, Z_DEFAULT_COMPRESSION: -1, Z_FILTERED: 1, Z_HUFFMAN_ONLY: 2, Z_RLE: 3, Z_FIXED: 4, Z_DEFAULT_STRATEGY: 0, Z_BINARY: 0, Z_TEXT: 1, Z_UNKNOWN: 2, Z_DEFLATED: 8 };
|
|
1395
|
+
}, {}], 45: [function(_, N, k) {
|
|
1396
|
+
var u = function() {
|
|
1397
|
+
for (var o, n = [], h = 0; h < 256; h++) {
|
|
1398
|
+
o = h;
|
|
1399
|
+
for (var g = 0; g < 8; g++) o = 1 & o ? 3988292384 ^ o >>> 1 : o >>> 1;
|
|
1400
|
+
n[h] = o;
|
|
1362
1401
|
}
|
|
1363
1402
|
return n;
|
|
1364
1403
|
}();
|
|
1365
|
-
|
|
1366
|
-
var y =
|
|
1404
|
+
N.exports = function(o, n, h, g) {
|
|
1405
|
+
var y = u, p = g + h;
|
|
1367
1406
|
o ^= -1;
|
|
1368
|
-
for (var
|
|
1407
|
+
for (var b = g; b < p; b++) o = o >>> 8 ^ y[255 & (o ^ n[b])];
|
|
1369
1408
|
return -1 ^ o;
|
|
1370
1409
|
};
|
|
1371
|
-
}, {}], 46: [function(
|
|
1372
|
-
var
|
|
1410
|
+
}, {}], 46: [function(_, N, k) {
|
|
1411
|
+
var u, o = _("../utils/common"), n = _("./trees"), h = _("./adler32"), g = _("./crc32"), y = _("./messages"), p = 0, b = 4, i = 0, d = -2, r = -1, l = 4, a = 2, c = 8, v = 9, S = 286, x = 30, D = 19, O = 2 * S + 1, j = 15, I = 3, W = 258, V = W + I + 1, m = 42, B = 113, e = 1, T = 2, J = 3, P = 4;
|
|
1373
1412
|
function $(t, R) {
|
|
1374
1413
|
return t.msg = y[R], R;
|
|
1375
1414
|
}
|
|
1376
|
-
function
|
|
1415
|
+
function L(t) {
|
|
1377
1416
|
return (t << 1) - (4 < t ? 9 : 0);
|
|
1378
1417
|
}
|
|
1379
1418
|
function q(t) {
|
|
@@ -1393,8 +1432,8 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
1393
1432
|
t.pending_buf[t.pending++] = R >>> 8 & 255, t.pending_buf[t.pending++] = 255 & R;
|
|
1394
1433
|
}
|
|
1395
1434
|
function H(t, R) {
|
|
1396
|
-
var A, f, s = t.max_chain_length, w = t.strstart, F = t.prev_length,
|
|
1397
|
-
t.prev_length >= t.good_match && (s >>= 2),
|
|
1435
|
+
var A, f, s = t.max_chain_length, w = t.strstart, F = t.prev_length, U = t.nice_match, z = t.strstart > t.w_size - V ? t.strstart - (t.w_size - V) : 0, Z = t.window, K = t.w_mask, M = t.prev, Y = t.strstart + W, rt = Z[w + F - 1], tt = Z[w + F];
|
|
1436
|
+
t.prev_length >= t.good_match && (s >>= 2), U > t.lookahead && (U = t.lookahead);
|
|
1398
1437
|
do
|
|
1399
1438
|
if (Z[(A = R) + F] === tt && Z[A + F - 1] === rt && Z[A] === Z[w] && Z[++A] === Z[w + 1]) {
|
|
1400
1439
|
w += 2, A++;
|
|
@@ -1402,7 +1441,7 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
1402
1441
|
;
|
|
1403
1442
|
while (Z[++w] === Z[++A] && Z[++w] === Z[++A] && Z[++w] === Z[++A] && Z[++w] === Z[++A] && Z[++w] === Z[++A] && Z[++w] === Z[++A] && Z[++w] === Z[++A] && Z[++w] === Z[++A] && w < Y);
|
|
1404
1443
|
if (f = W - (Y - w), w = Y - W, F < f) {
|
|
1405
|
-
if (t.match_start = R,
|
|
1444
|
+
if (t.match_start = R, U <= (F = f)) break;
|
|
1406
1445
|
rt = Z[w + F - 1], tt = Z[w + F];
|
|
1407
1446
|
}
|
|
1408
1447
|
}
|
|
@@ -1410,7 +1449,7 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
1410
1449
|
return F <= t.lookahead ? F : t.lookahead;
|
|
1411
1450
|
}
|
|
1412
1451
|
function nt(t) {
|
|
1413
|
-
var R, A, f, s, w, F,
|
|
1452
|
+
var R, A, f, s, w, F, U, z, Z, K, M = t.w_size;
|
|
1414
1453
|
do {
|
|
1415
1454
|
if (s = t.window_size - t.lookahead - t.strstart, t.strstart >= M + (M - V)) {
|
|
1416
1455
|
for (o.arraySet(t.window, t.window, M, M, 0), t.match_start -= M, t.strstart -= M, t.block_start -= M, R = A = t.hash_size; f = t.head[--R], t.head[R] = M <= f ? f - M : 0, --A; ) ;
|
|
@@ -1418,10 +1457,10 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
1418
1457
|
s += M;
|
|
1419
1458
|
}
|
|
1420
1459
|
if (t.strm.avail_in === 0) break;
|
|
1421
|
-
if (F = t.strm,
|
|
1460
|
+
if (F = t.strm, U = t.window, z = t.strstart + t.lookahead, Z = s, K = void 0, K = F.avail_in, Z < K && (K = Z), A = K === 0 ? 0 : (F.avail_in -= K, o.arraySet(U, F.input, F.next_in, K, z), F.state.wrap === 1 ? F.adler = h(F.adler, U, K, z) : F.state.wrap === 2 && (F.adler = g(F.adler, U, K, z)), F.next_in += K, F.total_in += K, K), t.lookahead += A, t.lookahead + t.insert >= I) for (w = t.strstart - t.insert, t.ins_h = t.window[w], t.ins_h = (t.ins_h << t.hash_shift ^ t.window[w + 1]) & t.hash_mask; t.insert && (t.ins_h = (t.ins_h << t.hash_shift ^ t.window[w + I - 1]) & t.hash_mask, t.prev[w & t.w_mask] = t.head[t.ins_h], t.head[t.ins_h] = w, w++, t.insert--, !(t.lookahead + t.insert < I)); ) ;
|
|
1422
1461
|
} while (t.lookahead < V && t.strm.avail_in !== 0);
|
|
1423
1462
|
}
|
|
1424
|
-
function
|
|
1463
|
+
function ut(t, R) {
|
|
1425
1464
|
for (var A, f; ; ) {
|
|
1426
1465
|
if (t.lookahead < V) {
|
|
1427
1466
|
if (nt(t), t.lookahead < V && R === p) return e;
|
|
@@ -1434,7 +1473,7 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
1434
1473
|
else f = n._tr_tally(t, 0, t.window[t.strstart]), t.lookahead--, t.strstart++;
|
|
1435
1474
|
if (f && (C(t, !1), t.strm.avail_out === 0)) return e;
|
|
1436
1475
|
}
|
|
1437
|
-
return t.insert = t.strstart < I - 1 ? t.strstart : I - 1, R ===
|
|
1476
|
+
return t.insert = t.strstart < I - 1 ? t.strstart : I - 1, R === b ? (C(t, !0), t.strm.avail_out === 0 ? J : P) : t.last_lit && (C(t, !1), t.strm.avail_out === 0) ? e : T;
|
|
1438
1477
|
}
|
|
1439
1478
|
function Q(t, R) {
|
|
1440
1479
|
for (var A, f, s; ; ) {
|
|
@@ -1449,33 +1488,33 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
1449
1488
|
if ((f = n._tr_tally(t, 0, t.window[t.strstart - 1])) && C(t, !1), t.strstart++, t.lookahead--, t.strm.avail_out === 0) return e;
|
|
1450
1489
|
} else t.match_available = 1, t.strstart++, t.lookahead--;
|
|
1451
1490
|
}
|
|
1452
|
-
return t.match_available && (f = n._tr_tally(t, 0, t.window[t.strstart - 1]), t.match_available = 0), t.insert = t.strstart < I - 1 ? t.strstart : I - 1, R ===
|
|
1491
|
+
return t.match_available && (f = n._tr_tally(t, 0, t.window[t.strstart - 1]), t.match_available = 0), t.insert = t.strstart < I - 1 ? t.strstart : I - 1, R === b ? (C(t, !0), t.strm.avail_out === 0 ? J : P) : t.last_lit && (C(t, !1), t.strm.avail_out === 0) ? e : T;
|
|
1453
1492
|
}
|
|
1454
1493
|
function et(t, R, A, f, s) {
|
|
1455
1494
|
this.good_length = t, this.max_lazy = R, this.nice_length = A, this.max_chain = f, this.func = s;
|
|
1456
1495
|
}
|
|
1457
|
-
function
|
|
1458
|
-
this.strm = null, this.status = 0, this.pending_buf = null, this.pending_buf_size = 0, this.pending_out = 0, this.pending = 0, this.wrap = 0, this.gzhead = null, this.gzindex = 0, this.method = c, this.last_flush = -1, this.w_size = 0, this.w_bits = 0, this.w_mask = 0, this.window = null, this.window_size = 0, this.prev = null, this.head = null, this.ins_h = 0, this.hash_size = 0, this.hash_bits = 0, this.hash_mask = 0, this.hash_shift = 0, this.block_start = 0, this.match_length = 0, this.prev_match = 0, this.match_available = 0, this.strstart = 0, this.match_start = 0, this.lookahead = 0, this.prev_length = 0, this.max_chain_length = 0, this.max_lazy_match = 0, this.level = 0, this.strategy = 0, this.good_match = 0, this.nice_match = 0, this.dyn_ltree = new o.Buf16(2 * O), this.dyn_dtree = new o.Buf16(2 * (2 * x + 1)), this.bl_tree = new o.Buf16(2 * (2 * D + 1)), q(this.dyn_ltree), q(this.dyn_dtree), q(this.bl_tree), this.l_desc = null, this.d_desc = null, this.bl_desc = null, this.bl_count = new o.Buf16(
|
|
1496
|
+
function ot() {
|
|
1497
|
+
this.strm = null, this.status = 0, this.pending_buf = null, this.pending_buf_size = 0, this.pending_out = 0, this.pending = 0, this.wrap = 0, this.gzhead = null, this.gzindex = 0, this.method = c, this.last_flush = -1, this.w_size = 0, this.w_bits = 0, this.w_mask = 0, this.window = null, this.window_size = 0, this.prev = null, this.head = null, this.ins_h = 0, this.hash_size = 0, this.hash_bits = 0, this.hash_mask = 0, this.hash_shift = 0, this.block_start = 0, this.match_length = 0, this.prev_match = 0, this.match_available = 0, this.strstart = 0, this.match_start = 0, this.lookahead = 0, this.prev_length = 0, this.max_chain_length = 0, this.max_lazy_match = 0, this.level = 0, this.strategy = 0, this.good_match = 0, this.nice_match = 0, this.dyn_ltree = new o.Buf16(2 * O), this.dyn_dtree = new o.Buf16(2 * (2 * x + 1)), this.bl_tree = new o.Buf16(2 * (2 * D + 1)), q(this.dyn_ltree), q(this.dyn_dtree), q(this.bl_tree), this.l_desc = null, this.d_desc = null, this.bl_desc = null, this.bl_count = new o.Buf16(j + 1), this.heap = new o.Buf16(2 * S + 1), q(this.heap), this.heap_len = 0, this.heap_max = 0, this.depth = new o.Buf16(2 * S + 1), q(this.depth), this.l_buf = 0, this.lit_bufsize = 0, this.last_lit = 0, this.d_buf = 0, this.opt_len = 0, this.static_len = 0, this.matches = 0, this.insert = 0, this.bi_buf = 0, this.bi_valid = 0;
|
|
1459
1498
|
}
|
|
1460
1499
|
function it(t) {
|
|
1461
1500
|
var R;
|
|
1462
1501
|
return t && t.state ? (t.total_in = t.total_out = 0, t.data_type = a, (R = t.state).pending = 0, R.pending_out = 0, R.wrap < 0 && (R.wrap = -R.wrap), R.status = R.wrap ? m : B, t.adler = R.wrap === 2 ? 0 : 1, R.last_flush = p, n._tr_init(R), i) : $(t, d);
|
|
1463
1502
|
}
|
|
1464
|
-
function
|
|
1503
|
+
function ft(t) {
|
|
1465
1504
|
var R = it(t);
|
|
1466
1505
|
return R === i && function(A) {
|
|
1467
|
-
A.window_size = 2 * A.w_size, q(A.head), A.max_lazy_match =
|
|
1506
|
+
A.window_size = 2 * A.w_size, q(A.head), A.max_lazy_match = u[A.level].max_lazy, A.good_match = u[A.level].good_length, A.nice_match = u[A.level].nice_length, A.max_chain_length = u[A.level].max_chain, A.strstart = 0, A.block_start = 0, A.lookahead = 0, A.insert = 0, A.match_length = A.prev_length = I - 1, A.match_available = 0, A.ins_h = 0;
|
|
1468
1507
|
}(t.state), R;
|
|
1469
1508
|
}
|
|
1470
|
-
function
|
|
1509
|
+
function lt(t, R, A, f, s, w) {
|
|
1471
1510
|
if (!t) return d;
|
|
1472
1511
|
var F = 1;
|
|
1473
|
-
if (R === r && (R = 6), f < 0 ? (F = 0, f = -f) : 15 < f && (F = 2, f -= 16), s < 1 || v < s || A !== c || f < 8 || 15 < f || R < 0 || 9 < R || w < 0 ||
|
|
1512
|
+
if (R === r && (R = 6), f < 0 ? (F = 0, f = -f) : 15 < f && (F = 2, f -= 16), s < 1 || v < s || A !== c || f < 8 || 15 < f || R < 0 || 9 < R || w < 0 || l < w) return $(t, d);
|
|
1474
1513
|
f === 8 && (f = 9);
|
|
1475
|
-
var
|
|
1476
|
-
return (t.state =
|
|
1514
|
+
var U = new ot();
|
|
1515
|
+
return (t.state = U).strm = t, U.wrap = F, U.gzhead = null, U.w_bits = f, U.w_size = 1 << U.w_bits, U.w_mask = U.w_size - 1, U.hash_bits = s + 7, U.hash_size = 1 << U.hash_bits, U.hash_mask = U.hash_size - 1, U.hash_shift = ~~((U.hash_bits + I - 1) / I), U.window = new o.Buf8(2 * U.w_size), U.head = new o.Buf16(U.hash_size), U.prev = new o.Buf16(U.w_size), U.lit_bufsize = 1 << s + 6, U.pending_buf_size = 4 * U.lit_bufsize, U.pending_buf = new o.Buf8(U.pending_buf_size), U.d_buf = 1 * U.lit_bufsize, U.l_buf = 3 * U.lit_bufsize, U.level = R, U.strategy = w, U.method = A, ft(t);
|
|
1477
1516
|
}
|
|
1478
|
-
|
|
1517
|
+
u = [new et(0, 0, 0, 0, function(t, R) {
|
|
1479
1518
|
var A = 65535;
|
|
1480
1519
|
for (A > t.pending_buf_size - 5 && (A = t.pending_buf_size - 5); ; ) {
|
|
1481
1520
|
if (t.lookahead <= 1) {
|
|
@@ -1486,52 +1525,52 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
1486
1525
|
var f = t.block_start + A;
|
|
1487
1526
|
if ((t.strstart === 0 || t.strstart >= f) && (t.lookahead = t.strstart - f, t.strstart = f, C(t, !1), t.strm.avail_out === 0) || t.strstart - t.block_start >= t.w_size - V && (C(t, !1), t.strm.avail_out === 0)) return e;
|
|
1488
1527
|
}
|
|
1489
|
-
return t.insert = 0, R ===
|
|
1490
|
-
}), new et(4, 4, 8, 4,
|
|
1491
|
-
return
|
|
1492
|
-
}, k.deflateInit2 =
|
|
1528
|
+
return t.insert = 0, R === b ? (C(t, !0), t.strm.avail_out === 0 ? J : P) : (t.strstart > t.block_start && (C(t, !1), t.strm.avail_out), e);
|
|
1529
|
+
}), new et(4, 4, 8, 4, ut), new et(4, 5, 16, 8, ut), new et(4, 6, 32, 32, ut), new et(4, 4, 16, 16, Q), new et(8, 16, 32, 32, Q), new et(8, 16, 128, 128, Q), new et(8, 32, 128, 256, Q), new et(32, 128, 258, 1024, Q), new et(32, 258, 258, 4096, Q)], k.deflateInit = function(t, R) {
|
|
1530
|
+
return lt(t, R, c, 15, 8, 0);
|
|
1531
|
+
}, k.deflateInit2 = lt, k.deflateReset = ft, k.deflateResetKeep = it, k.deflateSetHeader = function(t, R) {
|
|
1493
1532
|
return t && t.state ? t.state.wrap !== 2 ? d : (t.state.gzhead = R, i) : d;
|
|
1494
1533
|
}, k.deflate = function(t, R) {
|
|
1495
1534
|
var A, f, s, w;
|
|
1496
1535
|
if (!t || !t.state || 5 < R || R < 0) return t ? $(t, d) : d;
|
|
1497
|
-
if (f = t.state, !t.output || !t.input && t.avail_in !== 0 || f.status === 666 && R !==
|
|
1498
|
-
if (f.strm = t, A = f.last_flush, f.last_flush = R, f.status === m) if (f.wrap === 2) t.adler = 0, X(f, 31), X(f, 139), X(f, 8), f.gzhead ? (X(f, (f.gzhead.text ? 1 : 0) + (f.gzhead.hcrc ? 2 : 0) + (f.gzhead.extra ? 4 : 0) + (f.gzhead.name ? 8 : 0) + (f.gzhead.comment ? 16 : 0)), X(f, 255 & f.gzhead.time), X(f, f.gzhead.time >> 8 & 255), X(f, f.gzhead.time >> 16 & 255), X(f, f.gzhead.time >> 24 & 255), X(f, f.level === 9 ? 2 : 2 <= f.strategy || f.level < 2 ? 4 : 0), X(f, 255 & f.gzhead.os), f.gzhead.extra && f.gzhead.extra.length && (X(f, 255 & f.gzhead.extra.length), X(f, f.gzhead.extra.length >> 8 & 255)), f.gzhead.hcrc && (t.adler =
|
|
1536
|
+
if (f = t.state, !t.output || !t.input && t.avail_in !== 0 || f.status === 666 && R !== b) return $(t, t.avail_out === 0 ? -5 : d);
|
|
1537
|
+
if (f.strm = t, A = f.last_flush, f.last_flush = R, f.status === m) if (f.wrap === 2) t.adler = 0, X(f, 31), X(f, 139), X(f, 8), f.gzhead ? (X(f, (f.gzhead.text ? 1 : 0) + (f.gzhead.hcrc ? 2 : 0) + (f.gzhead.extra ? 4 : 0) + (f.gzhead.name ? 8 : 0) + (f.gzhead.comment ? 16 : 0)), X(f, 255 & f.gzhead.time), X(f, f.gzhead.time >> 8 & 255), X(f, f.gzhead.time >> 16 & 255), X(f, f.gzhead.time >> 24 & 255), X(f, f.level === 9 ? 2 : 2 <= f.strategy || f.level < 2 ? 4 : 0), X(f, 255 & f.gzhead.os), f.gzhead.extra && f.gzhead.extra.length && (X(f, 255 & f.gzhead.extra.length), X(f, f.gzhead.extra.length >> 8 & 255)), f.gzhead.hcrc && (t.adler = g(t.adler, f.pending_buf, f.pending, 0)), f.gzindex = 0, f.status = 69) : (X(f, 0), X(f, 0), X(f, 0), X(f, 0), X(f, 0), X(f, f.level === 9 ? 2 : 2 <= f.strategy || f.level < 2 ? 4 : 0), X(f, 3), f.status = B);
|
|
1499
1538
|
else {
|
|
1500
1539
|
var F = c + (f.w_bits - 8 << 4) << 8;
|
|
1501
1540
|
F |= (2 <= f.strategy || f.level < 2 ? 0 : f.level < 6 ? 1 : f.level === 6 ? 2 : 3) << 6, f.strstart !== 0 && (F |= 32), F += 31 - F % 31, f.status = B, G(f, F), f.strstart !== 0 && (G(f, t.adler >>> 16), G(f, 65535 & t.adler)), t.adler = 1;
|
|
1502
1541
|
}
|
|
1503
1542
|
if (f.status === 69) if (f.gzhead.extra) {
|
|
1504
|
-
for (s = f.pending; f.gzindex < (65535 & f.gzhead.extra.length) && (f.pending !== f.pending_buf_size || (f.gzhead.hcrc && f.pending > s && (t.adler =
|
|
1505
|
-
f.gzhead.hcrc && f.pending > s && (t.adler =
|
|
1543
|
+
for (s = f.pending; f.gzindex < (65535 & f.gzhead.extra.length) && (f.pending !== f.pending_buf_size || (f.gzhead.hcrc && f.pending > s && (t.adler = g(t.adler, f.pending_buf, f.pending - s, s)), E(t), s = f.pending, f.pending !== f.pending_buf_size)); ) X(f, 255 & f.gzhead.extra[f.gzindex]), f.gzindex++;
|
|
1544
|
+
f.gzhead.hcrc && f.pending > s && (t.adler = g(t.adler, f.pending_buf, f.pending - s, s)), f.gzindex === f.gzhead.extra.length && (f.gzindex = 0, f.status = 73);
|
|
1506
1545
|
} else f.status = 73;
|
|
1507
1546
|
if (f.status === 73) if (f.gzhead.name) {
|
|
1508
1547
|
s = f.pending;
|
|
1509
1548
|
do {
|
|
1510
|
-
if (f.pending === f.pending_buf_size && (f.gzhead.hcrc && f.pending > s && (t.adler =
|
|
1549
|
+
if (f.pending === f.pending_buf_size && (f.gzhead.hcrc && f.pending > s && (t.adler = g(t.adler, f.pending_buf, f.pending - s, s)), E(t), s = f.pending, f.pending === f.pending_buf_size)) {
|
|
1511
1550
|
w = 1;
|
|
1512
1551
|
break;
|
|
1513
1552
|
}
|
|
1514
1553
|
w = f.gzindex < f.gzhead.name.length ? 255 & f.gzhead.name.charCodeAt(f.gzindex++) : 0, X(f, w);
|
|
1515
1554
|
} while (w !== 0);
|
|
1516
|
-
f.gzhead.hcrc && f.pending > s && (t.adler =
|
|
1555
|
+
f.gzhead.hcrc && f.pending > s && (t.adler = g(t.adler, f.pending_buf, f.pending - s, s)), w === 0 && (f.gzindex = 0, f.status = 91);
|
|
1517
1556
|
} else f.status = 91;
|
|
1518
1557
|
if (f.status === 91) if (f.gzhead.comment) {
|
|
1519
1558
|
s = f.pending;
|
|
1520
1559
|
do {
|
|
1521
|
-
if (f.pending === f.pending_buf_size && (f.gzhead.hcrc && f.pending > s && (t.adler =
|
|
1560
|
+
if (f.pending === f.pending_buf_size && (f.gzhead.hcrc && f.pending > s && (t.adler = g(t.adler, f.pending_buf, f.pending - s, s)), E(t), s = f.pending, f.pending === f.pending_buf_size)) {
|
|
1522
1561
|
w = 1;
|
|
1523
1562
|
break;
|
|
1524
1563
|
}
|
|
1525
1564
|
w = f.gzindex < f.gzhead.comment.length ? 255 & f.gzhead.comment.charCodeAt(f.gzindex++) : 0, X(f, w);
|
|
1526
1565
|
} while (w !== 0);
|
|
1527
|
-
f.gzhead.hcrc && f.pending > s && (t.adler =
|
|
1566
|
+
f.gzhead.hcrc && f.pending > s && (t.adler = g(t.adler, f.pending_buf, f.pending - s, s)), w === 0 && (f.status = 103);
|
|
1528
1567
|
} else f.status = 103;
|
|
1529
1568
|
if (f.status === 103 && (f.gzhead.hcrc ? (f.pending + 2 > f.pending_buf_size && E(t), f.pending + 2 <= f.pending_buf_size && (X(f, 255 & t.adler), X(f, t.adler >> 8 & 255), t.adler = 0, f.status = B)) : f.status = B), f.pending !== 0) {
|
|
1530
1569
|
if (E(t), t.avail_out === 0) return f.last_flush = -1, i;
|
|
1531
|
-
} else if (t.avail_in === 0 &&
|
|
1570
|
+
} else if (t.avail_in === 0 && L(R) <= L(A) && R !== b) return $(t, -5);
|
|
1532
1571
|
if (f.status === 666 && t.avail_in !== 0) return $(t, -5);
|
|
1533
1572
|
if (t.avail_in !== 0 || f.lookahead !== 0 || R !== p && f.status !== 666) {
|
|
1534
|
-
var
|
|
1573
|
+
var U = f.strategy === 2 ? function(z, Z) {
|
|
1535
1574
|
for (var K; ; ) {
|
|
1536
1575
|
if (z.lookahead === 0 && (nt(z), z.lookahead === 0)) {
|
|
1537
1576
|
if (Z === p) return e;
|
|
@@ -1539,7 +1578,7 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
1539
1578
|
}
|
|
1540
1579
|
if (z.match_length = 0, K = n._tr_tally(z, 0, z.window[z.strstart]), z.lookahead--, z.strstart++, K && (C(z, !1), z.strm.avail_out === 0)) return e;
|
|
1541
1580
|
}
|
|
1542
|
-
return z.insert = 0, Z ===
|
|
1581
|
+
return z.insert = 0, Z === b ? (C(z, !0), z.strm.avail_out === 0 ? J : P) : z.last_lit && (C(z, !1), z.strm.avail_out === 0) ? e : T;
|
|
1543
1582
|
}(f, R) : f.strategy === 3 ? function(z, Z) {
|
|
1544
1583
|
for (var K, M, Y, rt, tt = z.window; ; ) {
|
|
1545
1584
|
if (z.lookahead <= W) {
|
|
@@ -1555,82 +1594,82 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
1555
1594
|
}
|
|
1556
1595
|
if (z.match_length >= I ? (K = n._tr_tally(z, 1, z.match_length - I), z.lookahead -= z.match_length, z.strstart += z.match_length, z.match_length = 0) : (K = n._tr_tally(z, 0, z.window[z.strstart]), z.lookahead--, z.strstart++), K && (C(z, !1), z.strm.avail_out === 0)) return e;
|
|
1557
1596
|
}
|
|
1558
|
-
return z.insert = 0, Z ===
|
|
1559
|
-
}(f, R) :
|
|
1560
|
-
if (
|
|
1561
|
-
if (
|
|
1597
|
+
return z.insert = 0, Z === b ? (C(z, !0), z.strm.avail_out === 0 ? J : P) : z.last_lit && (C(z, !1), z.strm.avail_out === 0) ? e : T;
|
|
1598
|
+
}(f, R) : u[f.level].func(f, R);
|
|
1599
|
+
if (U !== J && U !== P || (f.status = 666), U === e || U === J) return t.avail_out === 0 && (f.last_flush = -1), i;
|
|
1600
|
+
if (U === T && (R === 1 ? n._tr_align(f) : R !== 5 && (n._tr_stored_block(f, 0, 0, !1), R === 3 && (q(f.head), f.lookahead === 0 && (f.strstart = 0, f.block_start = 0, f.insert = 0))), E(t), t.avail_out === 0)) return f.last_flush = -1, i;
|
|
1562
1601
|
}
|
|
1563
|
-
return R !==
|
|
1602
|
+
return R !== b ? i : f.wrap <= 0 ? 1 : (f.wrap === 2 ? (X(f, 255 & t.adler), X(f, t.adler >> 8 & 255), X(f, t.adler >> 16 & 255), X(f, t.adler >> 24 & 255), X(f, 255 & t.total_in), X(f, t.total_in >> 8 & 255), X(f, t.total_in >> 16 & 255), X(f, t.total_in >> 24 & 255)) : (G(f, t.adler >>> 16), G(f, 65535 & t.adler)), E(t), 0 < f.wrap && (f.wrap = -f.wrap), f.pending !== 0 ? i : 1);
|
|
1564
1603
|
}, k.deflateEnd = function(t) {
|
|
1565
1604
|
var R;
|
|
1566
1605
|
return t && t.state ? (R = t.state.status) !== m && R !== 69 && R !== 73 && R !== 91 && R !== 103 && R !== B && R !== 666 ? $(t, d) : (t.state = null, R === B ? $(t, -3) : i) : d;
|
|
1567
1606
|
}, k.deflateSetDictionary = function(t, R) {
|
|
1568
|
-
var A, f, s, w, F,
|
|
1607
|
+
var A, f, s, w, F, U, z, Z, K = R.length;
|
|
1569
1608
|
if (!t || !t.state || (w = (A = t.state).wrap) === 2 || w === 1 && A.status !== m || A.lookahead) return d;
|
|
1570
|
-
for (w === 1 && (t.adler =
|
|
1609
|
+
for (w === 1 && (t.adler = h(t.adler, R, K, 0)), A.wrap = 0, K >= A.w_size && (w === 0 && (q(A.head), A.strstart = 0, A.block_start = 0, A.insert = 0), Z = new o.Buf8(A.w_size), o.arraySet(Z, R, K - A.w_size, A.w_size, 0), R = Z, K = A.w_size), F = t.avail_in, U = t.next_in, z = t.input, t.avail_in = K, t.next_in = 0, t.input = R, nt(A); A.lookahead >= I; ) {
|
|
1571
1610
|
for (f = A.strstart, s = A.lookahead - (I - 1); A.ins_h = (A.ins_h << A.hash_shift ^ A.window[f + I - 1]) & A.hash_mask, A.prev[f & A.w_mask] = A.head[A.ins_h], A.head[A.ins_h] = f, f++, --s; ) ;
|
|
1572
1611
|
A.strstart = f, A.lookahead = I - 1, nt(A);
|
|
1573
1612
|
}
|
|
1574
|
-
return A.strstart += A.lookahead, A.block_start = A.strstart, A.insert = A.lookahead, A.lookahead = 0, A.match_length = A.prev_length = I - 1, A.match_available = 0, t.next_in =
|
|
1613
|
+
return A.strstart += A.lookahead, A.block_start = A.strstart, A.insert = A.lookahead, A.lookahead = 0, A.match_length = A.prev_length = I - 1, A.match_available = 0, t.next_in = U, t.input = z, t.avail_in = F, A.wrap = w, i;
|
|
1575
1614
|
}, k.deflateInfo = "pako deflate (from Nodeca project)";
|
|
1576
|
-
}, { "../utils/common": 41, "./adler32": 43, "./crc32": 45, "./messages": 51, "./trees": 52 }], 47: [function(
|
|
1577
|
-
|
|
1615
|
+
}, { "../utils/common": 41, "./adler32": 43, "./crc32": 45, "./messages": 51, "./trees": 52 }], 47: [function(_, N, k) {
|
|
1616
|
+
N.exports = function() {
|
|
1578
1617
|
this.text = 0, this.time = 0, this.xflags = 0, this.os = 0, this.extra = null, this.extra_len = 0, this.name = "", this.comment = "", this.hcrc = 0, this.done = !1;
|
|
1579
1618
|
};
|
|
1580
|
-
}, {}], 48: [function(
|
|
1581
|
-
|
|
1582
|
-
var n,
|
|
1583
|
-
n =
|
|
1619
|
+
}, {}], 48: [function(_, N, k) {
|
|
1620
|
+
N.exports = function(u, o) {
|
|
1621
|
+
var n, h, g, y, p, b, i, d, r, l, a, c, v, S, x, D, O, j, I, W, V, m, B, e, T;
|
|
1622
|
+
n = u.state, h = u.next_in, e = u.input, g = h + (u.avail_in - 5), y = u.next_out, T = u.output, p = y - (o - u.avail_out), b = y + (u.avail_out - 257), i = n.dmax, d = n.wsize, r = n.whave, l = n.wnext, a = n.window, c = n.hold, v = n.bits, S = n.lencode, x = n.distcode, D = (1 << n.lenbits) - 1, O = (1 << n.distbits) - 1;
|
|
1584
1623
|
t: do {
|
|
1585
|
-
v < 15 && (c += e[
|
|
1624
|
+
v < 15 && (c += e[h++] << v, v += 8, c += e[h++] << v, v += 8), j = S[c & D];
|
|
1586
1625
|
e: for (; ; ) {
|
|
1587
|
-
if (c >>>= I =
|
|
1626
|
+
if (c >>>= I = j >>> 24, v -= I, (I = j >>> 16 & 255) === 0) T[y++] = 65535 & j;
|
|
1588
1627
|
else {
|
|
1589
1628
|
if (!(16 & I)) {
|
|
1590
1629
|
if (!(64 & I)) {
|
|
1591
|
-
|
|
1630
|
+
j = S[(65535 & j) + (c & (1 << I) - 1)];
|
|
1592
1631
|
continue e;
|
|
1593
1632
|
}
|
|
1594
1633
|
if (32 & I) {
|
|
1595
1634
|
n.mode = 12;
|
|
1596
1635
|
break t;
|
|
1597
1636
|
}
|
|
1598
|
-
|
|
1637
|
+
u.msg = "invalid literal/length code", n.mode = 30;
|
|
1599
1638
|
break t;
|
|
1600
1639
|
}
|
|
1601
|
-
W = 65535 &
|
|
1640
|
+
W = 65535 & j, (I &= 15) && (v < I && (c += e[h++] << v, v += 8), W += c & (1 << I) - 1, c >>>= I, v -= I), v < 15 && (c += e[h++] << v, v += 8, c += e[h++] << v, v += 8), j = x[c & O];
|
|
1602
1641
|
r: for (; ; ) {
|
|
1603
|
-
if (c >>>= I =
|
|
1642
|
+
if (c >>>= I = j >>> 24, v -= I, !(16 & (I = j >>> 16 & 255))) {
|
|
1604
1643
|
if (!(64 & I)) {
|
|
1605
|
-
|
|
1644
|
+
j = x[(65535 & j) + (c & (1 << I) - 1)];
|
|
1606
1645
|
continue r;
|
|
1607
1646
|
}
|
|
1608
|
-
|
|
1647
|
+
u.msg = "invalid distance code", n.mode = 30;
|
|
1609
1648
|
break t;
|
|
1610
1649
|
}
|
|
1611
|
-
if (V = 65535 &
|
|
1612
|
-
|
|
1650
|
+
if (V = 65535 & j, v < (I &= 15) && (c += e[h++] << v, (v += 8) < I && (c += e[h++] << v, v += 8)), i < (V += c & (1 << I) - 1)) {
|
|
1651
|
+
u.msg = "invalid distance too far back", n.mode = 30;
|
|
1613
1652
|
break t;
|
|
1614
1653
|
}
|
|
1615
1654
|
if (c >>>= I, v -= I, (I = y - p) < V) {
|
|
1616
1655
|
if (r < (I = V - I) && n.sane) {
|
|
1617
|
-
|
|
1656
|
+
u.msg = "invalid distance too far back", n.mode = 30;
|
|
1618
1657
|
break t;
|
|
1619
1658
|
}
|
|
1620
|
-
if (B = a, (m = 0) ===
|
|
1659
|
+
if (B = a, (m = 0) === l) {
|
|
1621
1660
|
if (m += d - I, I < W) {
|
|
1622
1661
|
for (W -= I; T[y++] = a[m++], --I; ) ;
|
|
1623
1662
|
m = y - V, B = T;
|
|
1624
1663
|
}
|
|
1625
|
-
} else if (
|
|
1626
|
-
if (m += d +
|
|
1664
|
+
} else if (l < I) {
|
|
1665
|
+
if (m += d + l - I, (I -= l) < W) {
|
|
1627
1666
|
for (W -= I; T[y++] = a[m++], --I; ) ;
|
|
1628
|
-
if (m = 0,
|
|
1629
|
-
for (W -= I =
|
|
1667
|
+
if (m = 0, l < W) {
|
|
1668
|
+
for (W -= I = l; T[y++] = a[m++], --I; ) ;
|
|
1630
1669
|
m = y - V, B = T;
|
|
1631
1670
|
}
|
|
1632
1671
|
}
|
|
1633
|
-
} else if (m +=
|
|
1672
|
+
} else if (m += l - I, I < W) {
|
|
1634
1673
|
for (W -= I; T[y++] = a[m++], --I; ) ;
|
|
1635
1674
|
m = y - V, B = T;
|
|
1636
1675
|
}
|
|
@@ -1645,20 +1684,20 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
1645
1684
|
}
|
|
1646
1685
|
break;
|
|
1647
1686
|
}
|
|
1648
|
-
} while (
|
|
1649
|
-
|
|
1687
|
+
} while (h < g && y < b);
|
|
1688
|
+
h -= W = v >> 3, c &= (1 << (v -= W << 3)) - 1, u.next_in = h, u.next_out = y, u.avail_in = h < g ? g - h + 5 : 5 - (h - g), u.avail_out = y < b ? b - y + 257 : 257 - (y - b), n.hold = c, n.bits = v;
|
|
1650
1689
|
};
|
|
1651
|
-
}, {}], 49: [function(
|
|
1652
|
-
var
|
|
1690
|
+
}, {}], 49: [function(_, N, k) {
|
|
1691
|
+
var u = _("../utils/common"), o = _("./adler32"), n = _("./crc32"), h = _("./inffast"), g = _("./inftrees"), y = 1, p = 2, b = 0, i = -2, d = 1, r = 852, l = 592;
|
|
1653
1692
|
function a(m) {
|
|
1654
1693
|
return (m >>> 24 & 255) + (m >>> 8 & 65280) + ((65280 & m) << 8) + ((255 & m) << 24);
|
|
1655
1694
|
}
|
|
1656
1695
|
function c() {
|
|
1657
|
-
this.mode = 0, this.last = !1, this.wrap = 0, this.havedict = !1, this.flags = 0, this.dmax = 0, this.check = 0, this.total = 0, this.head = null, this.wbits = 0, this.wsize = 0, this.whave = 0, this.wnext = 0, this.window = null, this.hold = 0, this.bits = 0, this.length = 0, this.offset = 0, this.extra = 0, this.lencode = null, this.distcode = null, this.lenbits = 0, this.distbits = 0, this.ncode = 0, this.nlen = 0, this.ndist = 0, this.have = 0, this.next = null, this.lens = new
|
|
1696
|
+
this.mode = 0, this.last = !1, this.wrap = 0, this.havedict = !1, this.flags = 0, this.dmax = 0, this.check = 0, this.total = 0, this.head = null, this.wbits = 0, this.wsize = 0, this.whave = 0, this.wnext = 0, this.window = null, this.hold = 0, this.bits = 0, this.length = 0, this.offset = 0, this.extra = 0, this.lencode = null, this.distcode = null, this.lenbits = 0, this.distbits = 0, this.ncode = 0, this.nlen = 0, this.ndist = 0, this.have = 0, this.next = null, this.lens = new u.Buf16(320), this.work = new u.Buf16(288), this.lendyn = null, this.distdyn = null, this.sane = 0, this.back = 0, this.was = 0;
|
|
1658
1697
|
}
|
|
1659
1698
|
function v(m) {
|
|
1660
1699
|
var B;
|
|
1661
|
-
return m && m.state ? (B = m.state, m.total_in = m.total_out = B.total = 0, m.msg = "", B.wrap && (m.adler = 1 & B.wrap), B.mode = d, B.last = 0, B.havedict = 0, B.dmax = 32768, B.head = null, B.hold = 0, B.bits = 0, B.lencode = B.lendyn = new
|
|
1700
|
+
return m && m.state ? (B = m.state, m.total_in = m.total_out = B.total = 0, m.msg = "", B.wrap && (m.adler = 1 & B.wrap), B.mode = d, B.last = 0, B.havedict = 0, B.dmax = 32768, B.head = null, B.hold = 0, B.bits = 0, B.lencode = B.lendyn = new u.Buf32(r), B.distcode = B.distdyn = new u.Buf32(l), B.sane = 1, B.back = -1, b) : i;
|
|
1662
1701
|
}
|
|
1663
1702
|
function S(m) {
|
|
1664
1703
|
var B;
|
|
@@ -1670,31 +1709,31 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
1670
1709
|
}
|
|
1671
1710
|
function D(m, B) {
|
|
1672
1711
|
var e, T;
|
|
1673
|
-
return m ? (T = new c(), (m.state = T).window = null, (e = x(m, B)) !==
|
|
1712
|
+
return m ? (T = new c(), (m.state = T).window = null, (e = x(m, B)) !== b && (m.state = null), e) : i;
|
|
1674
1713
|
}
|
|
1675
|
-
var O,
|
|
1714
|
+
var O, j, I = !0;
|
|
1676
1715
|
function W(m) {
|
|
1677
1716
|
if (I) {
|
|
1678
1717
|
var B;
|
|
1679
|
-
for (O = new
|
|
1718
|
+
for (O = new u.Buf32(512), j = new u.Buf32(32), B = 0; B < 144; ) m.lens[B++] = 8;
|
|
1680
1719
|
for (; B < 256; ) m.lens[B++] = 9;
|
|
1681
1720
|
for (; B < 280; ) m.lens[B++] = 7;
|
|
1682
1721
|
for (; B < 288; ) m.lens[B++] = 8;
|
|
1683
|
-
for (
|
|
1684
|
-
|
|
1722
|
+
for (g(y, m.lens, 0, 288, O, 0, m.work, { bits: 9 }), B = 0; B < 32; ) m.lens[B++] = 5;
|
|
1723
|
+
g(p, m.lens, 0, 32, j, 0, m.work, { bits: 5 }), I = !1;
|
|
1685
1724
|
}
|
|
1686
|
-
m.lencode = O, m.lenbits = 9, m.distcode =
|
|
1725
|
+
m.lencode = O, m.lenbits = 9, m.distcode = j, m.distbits = 5;
|
|
1687
1726
|
}
|
|
1688
1727
|
function V(m, B, e, T) {
|
|
1689
1728
|
var J, P = m.state;
|
|
1690
|
-
return P.window === null && (P.wsize = 1 << P.wbits, P.wnext = 0, P.whave = 0, P.window = new
|
|
1729
|
+
return P.window === null && (P.wsize = 1 << P.wbits, P.wnext = 0, P.whave = 0, P.window = new u.Buf8(P.wsize)), T >= P.wsize ? (u.arraySet(P.window, B, e - P.wsize, P.wsize, 0), P.wnext = 0, P.whave = P.wsize) : (T < (J = P.wsize - P.wnext) && (J = T), u.arraySet(P.window, B, e - T, J, P.wnext), (T -= J) ? (u.arraySet(P.window, B, e - T, T, 0), P.wnext = T, P.whave = P.wsize) : (P.wnext += J, P.wnext === P.wsize && (P.wnext = 0), P.whave < P.wsize && (P.whave += J))), 0;
|
|
1691
1730
|
}
|
|
1692
1731
|
k.inflateReset = S, k.inflateReset2 = x, k.inflateResetKeep = v, k.inflateInit = function(m) {
|
|
1693
1732
|
return D(m, 15);
|
|
1694
1733
|
}, k.inflateInit2 = D, k.inflate = function(m, B) {
|
|
1695
|
-
var e, T, J, P, $,
|
|
1734
|
+
var e, T, J, P, $, L, q, E, C, X, G, H, nt, ut, Q, et, ot, it, ft, lt, t, R, A, f, s = 0, w = new u.Buf8(4), F = [16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15];
|
|
1696
1735
|
if (!m || !m.state || !m.output || !m.input && m.avail_in !== 0) return i;
|
|
1697
|
-
(e = m.state).mode === 12 && (e.mode = 13), $ = m.next_out, J = m.output, q = m.avail_out, P = m.next_in, T = m.input,
|
|
1736
|
+
(e = m.state).mode === 12 && (e.mode = 13), $ = m.next_out, J = m.output, q = m.avail_out, P = m.next_in, T = m.input, L = m.avail_in, E = e.hold, C = e.bits, X = L, G = q, R = b;
|
|
1698
1737
|
t: for (; ; ) switch (e.mode) {
|
|
1699
1738
|
case d:
|
|
1700
1739
|
if (e.wrap === 0) {
|
|
@@ -1702,8 +1741,8 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
1702
1741
|
break;
|
|
1703
1742
|
}
|
|
1704
1743
|
for (; C < 16; ) {
|
|
1705
|
-
if (
|
|
1706
|
-
|
|
1744
|
+
if (L === 0) break t;
|
|
1745
|
+
L--, E += T[P++] << C, C += 8;
|
|
1707
1746
|
}
|
|
1708
1747
|
if (2 & e.wrap && E === 35615) {
|
|
1709
1748
|
w[e.check = 0] = 255 & E, w[1] = E >>> 8 & 255, e.check = n(e.check, w, 2, 0), C = E = 0, e.mode = 2;
|
|
@@ -1726,8 +1765,8 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
1726
1765
|
break;
|
|
1727
1766
|
case 2:
|
|
1728
1767
|
for (; C < 16; ) {
|
|
1729
|
-
if (
|
|
1730
|
-
|
|
1768
|
+
if (L === 0) break t;
|
|
1769
|
+
L--, E += T[P++] << C, C += 8;
|
|
1731
1770
|
}
|
|
1732
1771
|
if (e.flags = E, (255 & e.flags) != 8) {
|
|
1733
1772
|
m.msg = "unknown compression method", e.mode = 30;
|
|
@@ -1740,47 +1779,47 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
1740
1779
|
e.head && (e.head.text = E >> 8 & 1), 512 & e.flags && (w[0] = 255 & E, w[1] = E >>> 8 & 255, e.check = n(e.check, w, 2, 0)), C = E = 0, e.mode = 3;
|
|
1741
1780
|
case 3:
|
|
1742
1781
|
for (; C < 32; ) {
|
|
1743
|
-
if (
|
|
1744
|
-
|
|
1782
|
+
if (L === 0) break t;
|
|
1783
|
+
L--, E += T[P++] << C, C += 8;
|
|
1745
1784
|
}
|
|
1746
1785
|
e.head && (e.head.time = E), 512 & e.flags && (w[0] = 255 & E, w[1] = E >>> 8 & 255, w[2] = E >>> 16 & 255, w[3] = E >>> 24 & 255, e.check = n(e.check, w, 4, 0)), C = E = 0, e.mode = 4;
|
|
1747
1786
|
case 4:
|
|
1748
1787
|
for (; C < 16; ) {
|
|
1749
|
-
if (
|
|
1750
|
-
|
|
1788
|
+
if (L === 0) break t;
|
|
1789
|
+
L--, E += T[P++] << C, C += 8;
|
|
1751
1790
|
}
|
|
1752
1791
|
e.head && (e.head.xflags = 255 & E, e.head.os = E >> 8), 512 & e.flags && (w[0] = 255 & E, w[1] = E >>> 8 & 255, e.check = n(e.check, w, 2, 0)), C = E = 0, e.mode = 5;
|
|
1753
1792
|
case 5:
|
|
1754
1793
|
if (1024 & e.flags) {
|
|
1755
1794
|
for (; C < 16; ) {
|
|
1756
|
-
if (
|
|
1757
|
-
|
|
1795
|
+
if (L === 0) break t;
|
|
1796
|
+
L--, E += T[P++] << C, C += 8;
|
|
1758
1797
|
}
|
|
1759
1798
|
e.length = E, e.head && (e.head.extra_len = E), 512 & e.flags && (w[0] = 255 & E, w[1] = E >>> 8 & 255, e.check = n(e.check, w, 2, 0)), C = E = 0;
|
|
1760
1799
|
} else e.head && (e.head.extra = null);
|
|
1761
1800
|
e.mode = 6;
|
|
1762
1801
|
case 6:
|
|
1763
|
-
if (1024 & e.flags && (
|
|
1802
|
+
if (1024 & e.flags && (L < (H = e.length) && (H = L), H && (e.head && (t = e.head.extra_len - e.length, e.head.extra || (e.head.extra = new Array(e.head.extra_len)), u.arraySet(e.head.extra, T, P, H, t)), 512 & e.flags && (e.check = n(e.check, T, H, P)), L -= H, P += H, e.length -= H), e.length)) break t;
|
|
1764
1803
|
e.length = 0, e.mode = 7;
|
|
1765
1804
|
case 7:
|
|
1766
1805
|
if (2048 & e.flags) {
|
|
1767
|
-
if (
|
|
1768
|
-
for (H = 0; t = T[P + H++], e.head && t && e.length < 65536 && (e.head.name += String.fromCharCode(t)), t && H <
|
|
1769
|
-
if (512 & e.flags && (e.check = n(e.check, T, H, P)),
|
|
1806
|
+
if (L === 0) break t;
|
|
1807
|
+
for (H = 0; t = T[P + H++], e.head && t && e.length < 65536 && (e.head.name += String.fromCharCode(t)), t && H < L; ) ;
|
|
1808
|
+
if (512 & e.flags && (e.check = n(e.check, T, H, P)), L -= H, P += H, t) break t;
|
|
1770
1809
|
} else e.head && (e.head.name = null);
|
|
1771
1810
|
e.length = 0, e.mode = 8;
|
|
1772
1811
|
case 8:
|
|
1773
1812
|
if (4096 & e.flags) {
|
|
1774
|
-
if (
|
|
1775
|
-
for (H = 0; t = T[P + H++], e.head && t && e.length < 65536 && (e.head.comment += String.fromCharCode(t)), t && H <
|
|
1776
|
-
if (512 & e.flags && (e.check = n(e.check, T, H, P)),
|
|
1813
|
+
if (L === 0) break t;
|
|
1814
|
+
for (H = 0; t = T[P + H++], e.head && t && e.length < 65536 && (e.head.comment += String.fromCharCode(t)), t && H < L; ) ;
|
|
1815
|
+
if (512 & e.flags && (e.check = n(e.check, T, H, P)), L -= H, P += H, t) break t;
|
|
1777
1816
|
} else e.head && (e.head.comment = null);
|
|
1778
1817
|
e.mode = 9;
|
|
1779
1818
|
case 9:
|
|
1780
1819
|
if (512 & e.flags) {
|
|
1781
1820
|
for (; C < 16; ) {
|
|
1782
|
-
if (
|
|
1783
|
-
|
|
1821
|
+
if (L === 0) break t;
|
|
1822
|
+
L--, E += T[P++] << C, C += 8;
|
|
1784
1823
|
}
|
|
1785
1824
|
if (E !== (65535 & e.check)) {
|
|
1786
1825
|
m.msg = "header crc mismatch", e.mode = 30;
|
|
@@ -1792,12 +1831,12 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
1792
1831
|
break;
|
|
1793
1832
|
case 10:
|
|
1794
1833
|
for (; C < 32; ) {
|
|
1795
|
-
if (
|
|
1796
|
-
|
|
1834
|
+
if (L === 0) break t;
|
|
1835
|
+
L--, E += T[P++] << C, C += 8;
|
|
1797
1836
|
}
|
|
1798
1837
|
m.adler = e.check = a(E), C = E = 0, e.mode = 11;
|
|
1799
1838
|
case 11:
|
|
1800
|
-
if (e.havedict === 0) return m.next_out = $, m.avail_out = q, m.next_in = P, m.avail_in =
|
|
1839
|
+
if (e.havedict === 0) return m.next_out = $, m.avail_out = q, m.next_in = P, m.avail_in = L, e.hold = E, e.bits = C, 2;
|
|
1801
1840
|
m.adler = e.check = 1, e.mode = 12;
|
|
1802
1841
|
case 12:
|
|
1803
1842
|
if (B === 5 || B === 6) break t;
|
|
@@ -1807,8 +1846,8 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
1807
1846
|
break;
|
|
1808
1847
|
}
|
|
1809
1848
|
for (; C < 3; ) {
|
|
1810
|
-
if (
|
|
1811
|
-
|
|
1849
|
+
if (L === 0) break t;
|
|
1850
|
+
L--, E += T[P++] << C, C += 8;
|
|
1812
1851
|
}
|
|
1813
1852
|
switch (e.last = 1 & E, C -= 1, 3 & (E >>>= 1)) {
|
|
1814
1853
|
case 0:
|
|
@@ -1828,8 +1867,8 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
1828
1867
|
break;
|
|
1829
1868
|
case 14:
|
|
1830
1869
|
for (E >>>= 7 & C, C -= 7 & C; C < 32; ) {
|
|
1831
|
-
if (
|
|
1832
|
-
|
|
1870
|
+
if (L === 0) break t;
|
|
1871
|
+
L--, E += T[P++] << C, C += 8;
|
|
1833
1872
|
}
|
|
1834
1873
|
if ((65535 & E) != (E >>> 16 ^ 65535)) {
|
|
1835
1874
|
m.msg = "invalid stored block lengths", e.mode = 30;
|
|
@@ -1840,16 +1879,16 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
1840
1879
|
e.mode = 16;
|
|
1841
1880
|
case 16:
|
|
1842
1881
|
if (H = e.length) {
|
|
1843
|
-
if (
|
|
1844
|
-
|
|
1882
|
+
if (L < H && (H = L), q < H && (H = q), H === 0) break t;
|
|
1883
|
+
u.arraySet(J, T, P, H, $), L -= H, P += H, q -= H, $ += H, e.length -= H;
|
|
1845
1884
|
break;
|
|
1846
1885
|
}
|
|
1847
1886
|
e.mode = 12;
|
|
1848
1887
|
break;
|
|
1849
1888
|
case 17:
|
|
1850
1889
|
for (; C < 14; ) {
|
|
1851
|
-
if (
|
|
1852
|
-
|
|
1890
|
+
if (L === 0) break t;
|
|
1891
|
+
L--, E += T[P++] << C, C += 8;
|
|
1853
1892
|
}
|
|
1854
1893
|
if (e.nlen = 257 + (31 & E), E >>>= 5, C -= 5, e.ndist = 1 + (31 & E), E >>>= 5, C -= 5, e.ncode = 4 + (15 & E), E >>>= 4, C -= 4, 286 < e.nlen || 30 < e.ndist) {
|
|
1855
1894
|
m.msg = "too many length or distance symbols", e.mode = 30;
|
|
@@ -1859,45 +1898,45 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
1859
1898
|
case 18:
|
|
1860
1899
|
for (; e.have < e.ncode; ) {
|
|
1861
1900
|
for (; C < 3; ) {
|
|
1862
|
-
if (
|
|
1863
|
-
|
|
1901
|
+
if (L === 0) break t;
|
|
1902
|
+
L--, E += T[P++] << C, C += 8;
|
|
1864
1903
|
}
|
|
1865
1904
|
e.lens[F[e.have++]] = 7 & E, E >>>= 3, C -= 3;
|
|
1866
1905
|
}
|
|
1867
1906
|
for (; e.have < 19; ) e.lens[F[e.have++]] = 0;
|
|
1868
|
-
if (e.lencode = e.lendyn, e.lenbits = 7, A = { bits: e.lenbits }, R =
|
|
1907
|
+
if (e.lencode = e.lendyn, e.lenbits = 7, A = { bits: e.lenbits }, R = g(0, e.lens, 0, 19, e.lencode, 0, e.work, A), e.lenbits = A.bits, R) {
|
|
1869
1908
|
m.msg = "invalid code lengths set", e.mode = 30;
|
|
1870
1909
|
break;
|
|
1871
1910
|
}
|
|
1872
1911
|
e.have = 0, e.mode = 19;
|
|
1873
1912
|
case 19:
|
|
1874
1913
|
for (; e.have < e.nlen + e.ndist; ) {
|
|
1875
|
-
for (; et = (s = e.lencode[E & (1 << e.lenbits) - 1]) >>> 16 & 255,
|
|
1876
|
-
if (
|
|
1877
|
-
|
|
1914
|
+
for (; et = (s = e.lencode[E & (1 << e.lenbits) - 1]) >>> 16 & 255, ot = 65535 & s, !((Q = s >>> 24) <= C); ) {
|
|
1915
|
+
if (L === 0) break t;
|
|
1916
|
+
L--, E += T[P++] << C, C += 8;
|
|
1878
1917
|
}
|
|
1879
|
-
if (
|
|
1918
|
+
if (ot < 16) E >>>= Q, C -= Q, e.lens[e.have++] = ot;
|
|
1880
1919
|
else {
|
|
1881
|
-
if (
|
|
1920
|
+
if (ot === 16) {
|
|
1882
1921
|
for (f = Q + 2; C < f; ) {
|
|
1883
|
-
if (
|
|
1884
|
-
|
|
1922
|
+
if (L === 0) break t;
|
|
1923
|
+
L--, E += T[P++] << C, C += 8;
|
|
1885
1924
|
}
|
|
1886
1925
|
if (E >>>= Q, C -= Q, e.have === 0) {
|
|
1887
1926
|
m.msg = "invalid bit length repeat", e.mode = 30;
|
|
1888
1927
|
break;
|
|
1889
1928
|
}
|
|
1890
1929
|
t = e.lens[e.have - 1], H = 3 + (3 & E), E >>>= 2, C -= 2;
|
|
1891
|
-
} else if (
|
|
1930
|
+
} else if (ot === 17) {
|
|
1892
1931
|
for (f = Q + 3; C < f; ) {
|
|
1893
|
-
if (
|
|
1894
|
-
|
|
1932
|
+
if (L === 0) break t;
|
|
1933
|
+
L--, E += T[P++] << C, C += 8;
|
|
1895
1934
|
}
|
|
1896
1935
|
C -= Q, t = 0, H = 3 + (7 & (E >>>= Q)), E >>>= 3, C -= 3;
|
|
1897
1936
|
} else {
|
|
1898
1937
|
for (f = Q + 7; C < f; ) {
|
|
1899
|
-
if (
|
|
1900
|
-
|
|
1938
|
+
if (L === 0) break t;
|
|
1939
|
+
L--, E += T[P++] << C, C += 8;
|
|
1901
1940
|
}
|
|
1902
1941
|
C -= Q, t = 0, H = 11 + (127 & (E >>>= Q)), E >>>= 7, C -= 7;
|
|
1903
1942
|
}
|
|
@@ -1913,11 +1952,11 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
1913
1952
|
m.msg = "invalid code -- missing end-of-block", e.mode = 30;
|
|
1914
1953
|
break;
|
|
1915
1954
|
}
|
|
1916
|
-
if (e.lenbits = 9, A = { bits: e.lenbits }, R =
|
|
1955
|
+
if (e.lenbits = 9, A = { bits: e.lenbits }, R = g(y, e.lens, 0, e.nlen, e.lencode, 0, e.work, A), e.lenbits = A.bits, R) {
|
|
1917
1956
|
m.msg = "invalid literal/lengths set", e.mode = 30;
|
|
1918
1957
|
break;
|
|
1919
1958
|
}
|
|
1920
|
-
if (e.distbits = 6, e.distcode = e.distdyn, A = { bits: e.distbits }, R =
|
|
1959
|
+
if (e.distbits = 6, e.distcode = e.distdyn, A = { bits: e.distbits }, R = g(p, e.lens, e.nlen, e.ndist, e.distcode, 0, e.work, A), e.distbits = A.bits, R) {
|
|
1921
1960
|
m.msg = "invalid distances set", e.mode = 30;
|
|
1922
1961
|
break;
|
|
1923
1962
|
}
|
|
@@ -1925,22 +1964,22 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
1925
1964
|
case 20:
|
|
1926
1965
|
e.mode = 21;
|
|
1927
1966
|
case 21:
|
|
1928
|
-
if (6 <=
|
|
1929
|
-
m.next_out = $, m.avail_out = q, m.next_in = P, m.avail_in =
|
|
1967
|
+
if (6 <= L && 258 <= q) {
|
|
1968
|
+
m.next_out = $, m.avail_out = q, m.next_in = P, m.avail_in = L, e.hold = E, e.bits = C, h(m, G), $ = m.next_out, J = m.output, q = m.avail_out, P = m.next_in, T = m.input, L = m.avail_in, E = e.hold, C = e.bits, e.mode === 12 && (e.back = -1);
|
|
1930
1969
|
break;
|
|
1931
1970
|
}
|
|
1932
|
-
for (e.back = 0; et = (s = e.lencode[E & (1 << e.lenbits) - 1]) >>> 16 & 255,
|
|
1933
|
-
if (
|
|
1934
|
-
|
|
1971
|
+
for (e.back = 0; et = (s = e.lencode[E & (1 << e.lenbits) - 1]) >>> 16 & 255, ot = 65535 & s, !((Q = s >>> 24) <= C); ) {
|
|
1972
|
+
if (L === 0) break t;
|
|
1973
|
+
L--, E += T[P++] << C, C += 8;
|
|
1935
1974
|
}
|
|
1936
1975
|
if (et && !(240 & et)) {
|
|
1937
|
-
for (it = Q,
|
|
1938
|
-
if (
|
|
1939
|
-
|
|
1976
|
+
for (it = Q, ft = et, lt = ot; et = (s = e.lencode[lt + ((E & (1 << it + ft) - 1) >> it)]) >>> 16 & 255, ot = 65535 & s, !(it + (Q = s >>> 24) <= C); ) {
|
|
1977
|
+
if (L === 0) break t;
|
|
1978
|
+
L--, E += T[P++] << C, C += 8;
|
|
1940
1979
|
}
|
|
1941
1980
|
E >>>= it, C -= it, e.back += it;
|
|
1942
1981
|
}
|
|
1943
|
-
if (E >>>= Q, C -= Q, e.back += Q, e.length =
|
|
1982
|
+
if (E >>>= Q, C -= Q, e.back += Q, e.length = ot, et === 0) {
|
|
1944
1983
|
e.mode = 26;
|
|
1945
1984
|
break;
|
|
1946
1985
|
}
|
|
@@ -1956,21 +1995,21 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
1956
1995
|
case 22:
|
|
1957
1996
|
if (e.extra) {
|
|
1958
1997
|
for (f = e.extra; C < f; ) {
|
|
1959
|
-
if (
|
|
1960
|
-
|
|
1998
|
+
if (L === 0) break t;
|
|
1999
|
+
L--, E += T[P++] << C, C += 8;
|
|
1961
2000
|
}
|
|
1962
2001
|
e.length += E & (1 << e.extra) - 1, E >>>= e.extra, C -= e.extra, e.back += e.extra;
|
|
1963
2002
|
}
|
|
1964
2003
|
e.was = e.length, e.mode = 23;
|
|
1965
2004
|
case 23:
|
|
1966
|
-
for (; et = (s = e.distcode[E & (1 << e.distbits) - 1]) >>> 16 & 255,
|
|
1967
|
-
if (
|
|
1968
|
-
|
|
2005
|
+
for (; et = (s = e.distcode[E & (1 << e.distbits) - 1]) >>> 16 & 255, ot = 65535 & s, !((Q = s >>> 24) <= C); ) {
|
|
2006
|
+
if (L === 0) break t;
|
|
2007
|
+
L--, E += T[P++] << C, C += 8;
|
|
1969
2008
|
}
|
|
1970
2009
|
if (!(240 & et)) {
|
|
1971
|
-
for (it = Q,
|
|
1972
|
-
if (
|
|
1973
|
-
|
|
2010
|
+
for (it = Q, ft = et, lt = ot; et = (s = e.distcode[lt + ((E & (1 << it + ft) - 1) >> it)]) >>> 16 & 255, ot = 65535 & s, !(it + (Q = s >>> 24) <= C); ) {
|
|
2011
|
+
if (L === 0) break t;
|
|
2012
|
+
L--, E += T[P++] << C, C += 8;
|
|
1974
2013
|
}
|
|
1975
2014
|
E >>>= it, C -= it, e.back += it;
|
|
1976
2015
|
}
|
|
@@ -1978,12 +2017,12 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
1978
2017
|
m.msg = "invalid distance code", e.mode = 30;
|
|
1979
2018
|
break;
|
|
1980
2019
|
}
|
|
1981
|
-
e.offset =
|
|
2020
|
+
e.offset = ot, e.extra = 15 & et, e.mode = 24;
|
|
1982
2021
|
case 24:
|
|
1983
2022
|
if (e.extra) {
|
|
1984
2023
|
for (f = e.extra; C < f; ) {
|
|
1985
|
-
if (
|
|
1986
|
-
|
|
2024
|
+
if (L === 0) break t;
|
|
2025
|
+
L--, E += T[P++] << C, C += 8;
|
|
1987
2026
|
}
|
|
1988
2027
|
e.offset += E & (1 << e.extra) - 1, E >>>= e.extra, C -= e.extra, e.back += e.extra;
|
|
1989
2028
|
}
|
|
@@ -1999,9 +2038,9 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
1999
2038
|
m.msg = "invalid distance too far back", e.mode = 30;
|
|
2000
2039
|
break;
|
|
2001
2040
|
}
|
|
2002
|
-
nt = H > e.wnext ? (H -= e.wnext, e.wsize - H) : e.wnext - H, H > e.length && (H = e.length),
|
|
2003
|
-
} else
|
|
2004
|
-
for (q < H && (H = q), q -= H, e.length -= H; J[$++] =
|
|
2041
|
+
nt = H > e.wnext ? (H -= e.wnext, e.wsize - H) : e.wnext - H, H > e.length && (H = e.length), ut = e.window;
|
|
2042
|
+
} else ut = J, nt = $ - e.offset, H = e.length;
|
|
2043
|
+
for (q < H && (H = q), q -= H, e.length -= H; J[$++] = ut[nt++], --H; ) ;
|
|
2005
2044
|
e.length === 0 && (e.mode = 21);
|
|
2006
2045
|
break;
|
|
2007
2046
|
case 26:
|
|
@@ -2011,8 +2050,8 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
2011
2050
|
case 27:
|
|
2012
2051
|
if (e.wrap) {
|
|
2013
2052
|
for (; C < 32; ) {
|
|
2014
|
-
if (
|
|
2015
|
-
|
|
2053
|
+
if (L === 0) break t;
|
|
2054
|
+
L--, E |= T[P++] << C, C += 8;
|
|
2016
2055
|
}
|
|
2017
2056
|
if (G -= q, m.total_out += G, e.total += G, G && (m.adler = e.check = e.flags ? n(e.check, J, G, $ - G) : o(e.check, J, G, $ - G)), G = q, (e.flags ? E : a(E)) !== e.check) {
|
|
2018
2057
|
m.msg = "incorrect data check", e.mode = 30;
|
|
@@ -2024,8 +2063,8 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
2024
2063
|
case 28:
|
|
2025
2064
|
if (e.wrap && e.flags) {
|
|
2026
2065
|
for (; C < 32; ) {
|
|
2027
|
-
if (
|
|
2028
|
-
|
|
2066
|
+
if (L === 0) break t;
|
|
2067
|
+
L--, E += T[P++] << C, C += 8;
|
|
2029
2068
|
}
|
|
2030
2069
|
if (E !== (4294967295 & e.total)) {
|
|
2031
2070
|
m.msg = "incorrect length check", e.mode = 30;
|
|
@@ -2046,67 +2085,67 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
2046
2085
|
default:
|
|
2047
2086
|
return i;
|
|
2048
2087
|
}
|
|
2049
|
-
return m.next_out = $, m.avail_out = q, m.next_in = P, m.avail_in =
|
|
2088
|
+
return m.next_out = $, m.avail_out = q, m.next_in = P, m.avail_in = L, e.hold = E, e.bits = C, (e.wsize || G !== m.avail_out && e.mode < 30 && (e.mode < 27 || B !== 4)) && V(m, m.output, m.next_out, G - m.avail_out) ? (e.mode = 31, -4) : (X -= m.avail_in, G -= m.avail_out, m.total_in += X, m.total_out += G, e.total += G, e.wrap && G && (m.adler = e.check = e.flags ? n(e.check, J, G, m.next_out - G) : o(e.check, J, G, m.next_out - G)), m.data_type = e.bits + (e.last ? 64 : 0) + (e.mode === 12 ? 128 : 0) + (e.mode === 20 || e.mode === 15 ? 256 : 0), (X == 0 && G === 0 || B === 4) && R === b && (R = -5), R);
|
|
2050
2089
|
}, k.inflateEnd = function(m) {
|
|
2051
2090
|
if (!m || !m.state) return i;
|
|
2052
2091
|
var B = m.state;
|
|
2053
|
-
return B.window && (B.window = null), m.state = null,
|
|
2092
|
+
return B.window && (B.window = null), m.state = null, b;
|
|
2054
2093
|
}, k.inflateGetHeader = function(m, B) {
|
|
2055
2094
|
var e;
|
|
2056
|
-
return m && m.state && 2 & (e = m.state).wrap ? ((e.head = B).done = !1,
|
|
2095
|
+
return m && m.state && 2 & (e = m.state).wrap ? ((e.head = B).done = !1, b) : i;
|
|
2057
2096
|
}, k.inflateSetDictionary = function(m, B) {
|
|
2058
2097
|
var e, T = B.length;
|
|
2059
|
-
return m && m.state ? (e = m.state).wrap !== 0 && e.mode !== 11 ? i : e.mode === 11 && o(1, B, T, 0) !== e.check ? -3 : V(m, B, T, T) ? (e.mode = 31, -4) : (e.havedict = 1,
|
|
2098
|
+
return m && m.state ? (e = m.state).wrap !== 0 && e.mode !== 11 ? i : e.mode === 11 && o(1, B, T, 0) !== e.check ? -3 : V(m, B, T, T) ? (e.mode = 31, -4) : (e.havedict = 1, b) : i;
|
|
2060
2099
|
}, k.inflateInfo = "pako inflate (from Nodeca project)";
|
|
2061
|
-
}, { "../utils/common": 41, "./adler32": 43, "./crc32": 45, "./inffast": 48, "./inftrees": 50 }], 50: [function(
|
|
2062
|
-
var
|
|
2063
|
-
|
|
2064
|
-
var c, v, S, x, D, O,
|
|
2100
|
+
}, { "../utils/common": 41, "./adler32": 43, "./crc32": 45, "./inffast": 48, "./inftrees": 50 }], 50: [function(_, N, k) {
|
|
2101
|
+
var u = _("../utils/common"), o = [3, 4, 5, 6, 7, 8, 9, 10, 11, 13, 15, 17, 19, 23, 27, 31, 35, 43, 51, 59, 67, 83, 99, 115, 131, 163, 195, 227, 258, 0, 0], n = [16, 16, 16, 16, 16, 16, 16, 16, 17, 17, 17, 17, 18, 18, 18, 18, 19, 19, 19, 19, 20, 20, 20, 20, 21, 21, 21, 21, 16, 72, 78], h = [1, 2, 3, 4, 5, 7, 9, 13, 17, 25, 33, 49, 65, 97, 129, 193, 257, 385, 513, 769, 1025, 1537, 2049, 3073, 4097, 6145, 8193, 12289, 16385, 24577, 0, 0], g = [16, 16, 16, 16, 17, 17, 18, 18, 19, 19, 20, 20, 21, 21, 22, 22, 23, 23, 24, 24, 25, 25, 26, 26, 27, 27, 28, 28, 29, 29, 64, 64];
|
|
2102
|
+
N.exports = function(y, p, b, i, d, r, l, a) {
|
|
2103
|
+
var c, v, S, x, D, O, j, I, W, V = a.bits, m = 0, B = 0, e = 0, T = 0, J = 0, P = 0, $ = 0, L = 0, q = 0, E = 0, C = null, X = 0, G = new u.Buf16(16), H = new u.Buf16(16), nt = null, ut = 0;
|
|
2065
2104
|
for (m = 0; m <= 15; m++) G[m] = 0;
|
|
2066
|
-
for (B = 0; B < i; B++) G[p[
|
|
2105
|
+
for (B = 0; B < i; B++) G[p[b + B]]++;
|
|
2067
2106
|
for (J = V, T = 15; 1 <= T && G[T] === 0; T--) ;
|
|
2068
2107
|
if (T < J && (J = T), T === 0) return d[r++] = 20971520, d[r++] = 20971520, a.bits = 1, 0;
|
|
2069
2108
|
for (e = 1; e < T && G[e] === 0; e++) ;
|
|
2070
|
-
for (J < e && (J = e), m =
|
|
2071
|
-
if (0 <
|
|
2109
|
+
for (J < e && (J = e), m = L = 1; m <= 15; m++) if (L <<= 1, (L -= G[m]) < 0) return -1;
|
|
2110
|
+
if (0 < L && (y === 0 || T !== 1)) return -1;
|
|
2072
2111
|
for (H[1] = 0, m = 1; m < 15; m++) H[m + 1] = H[m] + G[m];
|
|
2073
|
-
for (B = 0; B < i; B++) p[
|
|
2074
|
-
if (O = y === 0 ? (C = nt =
|
|
2112
|
+
for (B = 0; B < i; B++) p[b + B] !== 0 && (l[H[p[b + B]]++] = B);
|
|
2113
|
+
if (O = y === 0 ? (C = nt = l, 19) : y === 1 ? (C = o, X -= 257, nt = n, ut -= 257, 256) : (C = h, nt = g, -1), m = e, D = r, $ = B = E = 0, S = -1, x = (q = 1 << (P = J)) - 1, y === 1 && 852 < q || y === 2 && 592 < q) return 1;
|
|
2075
2114
|
for (; ; ) {
|
|
2076
|
-
for (
|
|
2115
|
+
for (j = m - $, W = l[B] < O ? (I = 0, l[B]) : l[B] > O ? (I = nt[ut + l[B]], C[X + l[B]]) : (I = 96, 0), c = 1 << m - $, e = v = 1 << P; d[D + (E >> $) + (v -= c)] = j << 24 | I << 16 | W | 0, v !== 0; ) ;
|
|
2077
2116
|
for (c = 1 << m - 1; E & c; ) c >>= 1;
|
|
2078
2117
|
if (c !== 0 ? (E &= c - 1, E += c) : E = 0, B++, --G[m] == 0) {
|
|
2079
2118
|
if (m === T) break;
|
|
2080
|
-
m = p[
|
|
2119
|
+
m = p[b + l[B]];
|
|
2081
2120
|
}
|
|
2082
2121
|
if (J < m && (E & x) !== S) {
|
|
2083
|
-
for ($ === 0 && ($ = J), D += e,
|
|
2122
|
+
for ($ === 0 && ($ = J), D += e, L = 1 << (P = m - $); P + $ < T && !((L -= G[P + $]) <= 0); ) P++, L <<= 1;
|
|
2084
2123
|
if (q += 1 << P, y === 1 && 852 < q || y === 2 && 592 < q) return 1;
|
|
2085
2124
|
d[S = E & x] = J << 24 | P << 16 | D - r | 0;
|
|
2086
2125
|
}
|
|
2087
2126
|
}
|
|
2088
2127
|
return E !== 0 && (d[D + E] = m - $ << 24 | 64 << 16 | 0), a.bits = J, 0;
|
|
2089
2128
|
};
|
|
2090
|
-
}, { "../utils/common": 41 }], 51: [function(
|
|
2091
|
-
|
|
2092
|
-
}, {}], 52: [function(
|
|
2093
|
-
var
|
|
2094
|
-
function
|
|
2129
|
+
}, { "../utils/common": 41 }], 51: [function(_, N, k) {
|
|
2130
|
+
N.exports = { 2: "need dictionary", 1: "stream end", 0: "", "-1": "file error", "-2": "stream error", "-3": "data error", "-4": "insufficient memory", "-5": "buffer error", "-6": "incompatible version" };
|
|
2131
|
+
}, {}], 52: [function(_, N, k) {
|
|
2132
|
+
var u = _("../utils/common"), o = 0, n = 1;
|
|
2133
|
+
function h(s) {
|
|
2095
2134
|
for (var w = s.length; 0 <= --w; ) s[w] = 0;
|
|
2096
2135
|
}
|
|
2097
|
-
var
|
|
2098
|
-
|
|
2136
|
+
var g = 0, y = 29, p = 256, b = p + 1 + y, i = 30, d = 19, r = 2 * b + 1, l = 15, a = 16, c = 7, v = 256, S = 16, x = 17, D = 18, O = [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], j = [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], I = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 3, 7], W = [16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15], V = new Array(2 * (b + 2));
|
|
2137
|
+
h(V);
|
|
2099
2138
|
var m = new Array(2 * i);
|
|
2100
|
-
|
|
2139
|
+
h(m);
|
|
2101
2140
|
var B = new Array(512);
|
|
2102
|
-
|
|
2141
|
+
h(B);
|
|
2103
2142
|
var e = new Array(256);
|
|
2104
|
-
|
|
2143
|
+
h(e);
|
|
2105
2144
|
var T = new Array(y);
|
|
2106
|
-
|
|
2107
|
-
var J, P, $,
|
|
2108
|
-
function q(s, w, F,
|
|
2109
|
-
this.static_tree = s, this.extra_bits = w, this.extra_base = F, this.elems =
|
|
2145
|
+
h(T);
|
|
2146
|
+
var J, P, $, L = new Array(i);
|
|
2147
|
+
function q(s, w, F, U, z) {
|
|
2148
|
+
this.static_tree = s, this.extra_bits = w, this.extra_base = F, this.elems = U, this.max_length = z, this.has_stree = s && s.length;
|
|
2110
2149
|
}
|
|
2111
2150
|
function E(s, w) {
|
|
2112
2151
|
this.dyn_tree = s, this.max_code = 0, this.stat_desc = w;
|
|
@@ -2127,9 +2166,9 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
2127
2166
|
for (var F = 0; F |= 1 & s, s >>>= 1, F <<= 1, 0 < --w; ) ;
|
|
2128
2167
|
return F >>> 1;
|
|
2129
2168
|
}
|
|
2130
|
-
function
|
|
2131
|
-
var
|
|
2132
|
-
for (
|
|
2169
|
+
function ut(s, w, F) {
|
|
2170
|
+
var U, z, Z = new Array(l + 1), K = 0;
|
|
2171
|
+
for (U = 1; U <= l; U++) Z[U] = K = K + F[U - 1] << 1;
|
|
2133
2172
|
for (z = 0; z <= w; z++) {
|
|
2134
2173
|
var M = s[2 * z + 1];
|
|
2135
2174
|
M !== 0 && (s[2 * z] = nt(Z[M]++, M));
|
|
@@ -2137,7 +2176,7 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
2137
2176
|
}
|
|
2138
2177
|
function Q(s) {
|
|
2139
2178
|
var w;
|
|
2140
|
-
for (w = 0; w <
|
|
2179
|
+
for (w = 0; w < b; w++) s.dyn_ltree[2 * w] = 0;
|
|
2141
2180
|
for (w = 0; w < i; w++) s.dyn_dtree[2 * w] = 0;
|
|
2142
2181
|
for (w = 0; w < d; w++) s.bl_tree[2 * w] = 0;
|
|
2143
2182
|
s.dyn_ltree[2 * v] = 1, s.opt_len = s.static_len = 0, s.last_lit = s.matches = 0;
|
|
@@ -2145,72 +2184,72 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
2145
2184
|
function et(s) {
|
|
2146
2185
|
8 < s.bi_valid ? X(s, s.bi_buf) : 0 < s.bi_valid && (s.pending_buf[s.pending++] = s.bi_buf), s.bi_buf = 0, s.bi_valid = 0;
|
|
2147
2186
|
}
|
|
2148
|
-
function
|
|
2187
|
+
function ot(s, w, F, U) {
|
|
2149
2188
|
var z = 2 * w, Z = 2 * F;
|
|
2150
|
-
return s[z] < s[Z] || s[z] === s[Z] &&
|
|
2189
|
+
return s[z] < s[Z] || s[z] === s[Z] && U[w] <= U[F];
|
|
2151
2190
|
}
|
|
2152
2191
|
function it(s, w, F) {
|
|
2153
|
-
for (var
|
|
2154
|
-
s.heap[F] =
|
|
2192
|
+
for (var U = s.heap[F], z = F << 1; z <= s.heap_len && (z < s.heap_len && ot(w, s.heap[z + 1], s.heap[z], s.depth) && z++, !ot(w, U, s.heap[z], s.depth)); ) s.heap[F] = s.heap[z], F = z, z <<= 1;
|
|
2193
|
+
s.heap[F] = U;
|
|
2155
2194
|
}
|
|
2156
|
-
function
|
|
2157
|
-
var
|
|
2158
|
-
if (s.last_lit !== 0) for (;
|
|
2195
|
+
function ft(s, w, F) {
|
|
2196
|
+
var U, z, Z, K, M = 0;
|
|
2197
|
+
if (s.last_lit !== 0) for (; U = s.pending_buf[s.d_buf + 2 * M] << 8 | s.pending_buf[s.d_buf + 2 * M + 1], z = s.pending_buf[s.l_buf + M], M++, U === 0 ? H(s, z, w) : (H(s, (Z = e[z]) + p + 1, w), (K = O[Z]) !== 0 && G(s, z -= T[Z], K), H(s, Z = C(--U), F), (K = j[Z]) !== 0 && G(s, U -= L[Z], K)), M < s.last_lit; ) ;
|
|
2159
2198
|
H(s, v, w);
|
|
2160
2199
|
}
|
|
2161
|
-
function
|
|
2162
|
-
var F,
|
|
2200
|
+
function lt(s, w) {
|
|
2201
|
+
var F, U, z, Z = w.dyn_tree, K = w.stat_desc.static_tree, M = w.stat_desc.has_stree, Y = w.stat_desc.elems, rt = -1;
|
|
2163
2202
|
for (s.heap_len = 0, s.heap_max = r, F = 0; F < Y; F++) Z[2 * F] !== 0 ? (s.heap[++s.heap_len] = rt = F, s.depth[F] = 0) : Z[2 * F + 1] = 0;
|
|
2164
2203
|
for (; s.heap_len < 2; ) Z[2 * (z = s.heap[++s.heap_len] = rt < 2 ? ++rt : 0)] = 1, s.depth[z] = 0, s.opt_len--, M && (s.static_len -= K[2 * z + 1]);
|
|
2165
2204
|
for (w.max_code = rt, F = s.heap_len >> 1; 1 <= F; F--) it(s, Z, F);
|
|
2166
|
-
for (z = Y; F = s.heap[1], s.heap[1] = s.heap[s.heap_len--], it(s, Z, 1),
|
|
2167
|
-
s.heap[--s.heap_max] = s.heap[1], function(tt,
|
|
2168
|
-
var pt,
|
|
2169
|
-
for (at = 0; at <=
|
|
2170
|
-
for (ct[2 * tt.heap[tt.heap_max] + 1] = 0, pt = tt.heap_max + 1; pt < r; pt++) _t < (at = ct[2 * ct[2 * (
|
|
2205
|
+
for (z = Y; F = s.heap[1], s.heap[1] = s.heap[s.heap_len--], it(s, Z, 1), U = s.heap[1], s.heap[--s.heap_max] = F, s.heap[--s.heap_max] = U, Z[2 * z] = Z[2 * F] + Z[2 * U], s.depth[z] = (s.depth[F] >= s.depth[U] ? s.depth[F] : s.depth[U]) + 1, Z[2 * F + 1] = Z[2 * U + 1] = z, s.heap[1] = z++, it(s, Z, 1), 2 <= s.heap_len; ) ;
|
|
2206
|
+
s.heap[--s.heap_max] = s.heap[1], function(tt, ht) {
|
|
2207
|
+
var pt, dt, mt, at, gt, wt, ct = ht.dyn_tree, xt = ht.max_code, Ct = ht.stat_desc.static_tree, Et = ht.stat_desc.has_stree, At = ht.stat_desc.extra_bits, St = ht.stat_desc.extra_base, _t = ht.stat_desc.max_length, bt = 0;
|
|
2208
|
+
for (at = 0; at <= l; at++) tt.bl_count[at] = 0;
|
|
2209
|
+
for (ct[2 * tt.heap[tt.heap_max] + 1] = 0, pt = tt.heap_max + 1; pt < r; pt++) _t < (at = ct[2 * ct[2 * (dt = tt.heap[pt]) + 1] + 1] + 1) && (at = _t, bt++), ct[2 * dt + 1] = at, xt < dt || (tt.bl_count[at]++, gt = 0, St <= dt && (gt = At[dt - St]), wt = ct[2 * dt], tt.opt_len += wt * (at + gt), Et && (tt.static_len += wt * (Ct[2 * dt + 1] + gt)));
|
|
2171
2210
|
if (bt !== 0) {
|
|
2172
2211
|
do {
|
|
2173
2212
|
for (at = _t - 1; tt.bl_count[at] === 0; ) at--;
|
|
2174
2213
|
tt.bl_count[at]--, tt.bl_count[at + 1] += 2, tt.bl_count[_t]--, bt -= 2;
|
|
2175
2214
|
} while (0 < bt);
|
|
2176
|
-
for (at = _t; at !== 0; at--) for (
|
|
2215
|
+
for (at = _t; at !== 0; at--) for (dt = tt.bl_count[at]; dt !== 0; ) xt < (mt = tt.heap[--pt]) || (ct[2 * mt + 1] !== at && (tt.opt_len += (at - ct[2 * mt + 1]) * ct[2 * mt], ct[2 * mt + 1] = at), dt--);
|
|
2177
2216
|
}
|
|
2178
|
-
}(s, w),
|
|
2217
|
+
}(s, w), ut(Z, rt, s.bl_count);
|
|
2179
2218
|
}
|
|
2180
2219
|
function t(s, w, F) {
|
|
2181
|
-
var
|
|
2182
|
-
for (K === 0 && (Y = 138, rt = 3), w[2 * (F + 1) + 1] = 65535,
|
|
2220
|
+
var U, z, Z = -1, K = w[1], M = 0, Y = 7, rt = 4;
|
|
2221
|
+
for (K === 0 && (Y = 138, rt = 3), w[2 * (F + 1) + 1] = 65535, U = 0; U <= F; U++) z = K, K = w[2 * (U + 1) + 1], ++M < Y && z === K || (M < rt ? s.bl_tree[2 * z] += M : z !== 0 ? (z !== Z && s.bl_tree[2 * z]++, s.bl_tree[2 * S]++) : M <= 10 ? s.bl_tree[2 * x]++ : s.bl_tree[2 * D]++, Z = z, rt = (M = 0) === K ? (Y = 138, 3) : z === K ? (Y = 6, 3) : (Y = 7, 4));
|
|
2183
2222
|
}
|
|
2184
2223
|
function R(s, w, F) {
|
|
2185
|
-
var
|
|
2186
|
-
for (K === 0 && (Y = 138, rt = 3),
|
|
2224
|
+
var U, z, Z = -1, K = w[1], M = 0, Y = 7, rt = 4;
|
|
2225
|
+
for (K === 0 && (Y = 138, rt = 3), U = 0; U <= F; U++) if (z = K, K = w[2 * (U + 1) + 1], !(++M < Y && z === K)) {
|
|
2187
2226
|
if (M < rt) for (; H(s, z, s.bl_tree), --M != 0; ) ;
|
|
2188
2227
|
else z !== 0 ? (z !== Z && (H(s, z, s.bl_tree), M--), H(s, S, s.bl_tree), G(s, M - 3, 2)) : M <= 10 ? (H(s, x, s.bl_tree), G(s, M - 3, 3)) : (H(s, D, s.bl_tree), G(s, M - 11, 7));
|
|
2189
2228
|
Z = z, rt = (M = 0) === K ? (Y = 138, 3) : z === K ? (Y = 6, 3) : (Y = 7, 4);
|
|
2190
2229
|
}
|
|
2191
2230
|
}
|
|
2192
|
-
|
|
2231
|
+
h(L);
|
|
2193
2232
|
var A = !1;
|
|
2194
|
-
function f(s, w, F,
|
|
2195
|
-
G(s, (
|
|
2196
|
-
et(z), X(z, K), X(z, ~K),
|
|
2233
|
+
function f(s, w, F, U) {
|
|
2234
|
+
G(s, (g << 1) + (U ? 1 : 0), 3), function(z, Z, K, M) {
|
|
2235
|
+
et(z), X(z, K), X(z, ~K), u.arraySet(z.pending_buf, z.window, Z, K, z.pending), z.pending += K;
|
|
2197
2236
|
}(s, w, F);
|
|
2198
2237
|
}
|
|
2199
2238
|
k._tr_init = function(s) {
|
|
2200
2239
|
A || (function() {
|
|
2201
|
-
var w, F,
|
|
2202
|
-
for (z =
|
|
2203
|
-
for (e[
|
|
2204
|
-
for (Z >>= 7; z < i; z++) for (
|
|
2205
|
-
for (F = 0; F <=
|
|
2240
|
+
var w, F, U, z, Z, K = new Array(l + 1);
|
|
2241
|
+
for (z = U = 0; z < y - 1; z++) for (T[z] = U, w = 0; w < 1 << O[z]; w++) e[U++] = z;
|
|
2242
|
+
for (e[U - 1] = z, z = Z = 0; z < 16; z++) for (L[z] = Z, w = 0; w < 1 << j[z]; w++) B[Z++] = z;
|
|
2243
|
+
for (Z >>= 7; z < i; z++) for (L[z] = Z << 7, w = 0; w < 1 << j[z] - 7; w++) B[256 + Z++] = z;
|
|
2244
|
+
for (F = 0; F <= l; F++) K[F] = 0;
|
|
2206
2245
|
for (w = 0; w <= 143; ) V[2 * w + 1] = 8, w++, K[8]++;
|
|
2207
2246
|
for (; w <= 255; ) V[2 * w + 1] = 9, w++, K[9]++;
|
|
2208
2247
|
for (; w <= 279; ) V[2 * w + 1] = 7, w++, K[7]++;
|
|
2209
2248
|
for (; w <= 287; ) V[2 * w + 1] = 8, w++, K[8]++;
|
|
2210
|
-
for (
|
|
2211
|
-
J = new q(V, O, p + 1,
|
|
2249
|
+
for (ut(V, b + 1, K), w = 0; w < i; w++) m[2 * w + 1] = 5, m[2 * w] = nt(w, 5);
|
|
2250
|
+
J = new q(V, O, p + 1, b, l), P = new q(m, j, 0, i, l), $ = new q(new Array(0), I, 0, d, c);
|
|
2212
2251
|
}(), A = !0), s.l_desc = new E(s.dyn_ltree, J), s.d_desc = new E(s.dyn_dtree, P), s.bl_desc = new E(s.bl_tree, $), s.bi_buf = 0, s.bi_valid = 0, Q(s);
|
|
2213
|
-
}, k._tr_stored_block = f, k._tr_flush_block = function(s, w, F,
|
|
2252
|
+
}, k._tr_stored_block = f, k._tr_flush_block = function(s, w, F, U) {
|
|
2214
2253
|
var z, Z, K = 0;
|
|
2215
2254
|
0 < s.level ? (s.strm.data_type === 2 && (s.strm.data_type = function(M) {
|
|
2216
2255
|
var Y, rt = 4093624447;
|
|
@@ -2218,15 +2257,15 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
2218
2257
|
if (M.dyn_ltree[18] !== 0 || M.dyn_ltree[20] !== 0 || M.dyn_ltree[26] !== 0) return n;
|
|
2219
2258
|
for (Y = 32; Y < p; Y++) if (M.dyn_ltree[2 * Y] !== 0) return n;
|
|
2220
2259
|
return o;
|
|
2221
|
-
}(s)),
|
|
2260
|
+
}(s)), lt(s, s.l_desc), lt(s, s.d_desc), K = function(M) {
|
|
2222
2261
|
var Y;
|
|
2223
|
-
for (t(M, M.dyn_ltree, M.l_desc.max_code), t(M, M.dyn_dtree, M.d_desc.max_code),
|
|
2262
|
+
for (t(M, M.dyn_ltree, M.l_desc.max_code), t(M, M.dyn_dtree, M.d_desc.max_code), lt(M, M.bl_desc), Y = d - 1; 3 <= Y && M.bl_tree[2 * W[Y] + 1] === 0; Y--) ;
|
|
2224
2263
|
return M.opt_len += 3 * (Y + 1) + 5 + 5 + 4, Y;
|
|
2225
|
-
}(s), z = s.opt_len + 3 + 7 >>> 3, (Z = s.static_len + 3 + 7 >>> 3) <= z && (z = Z)) : z = Z = F + 5, F + 4 <= z && w !== -1 ? f(s, w, F,
|
|
2226
|
-
var
|
|
2227
|
-
for (G(M, Y - 257, 5), G(M, rt - 1, 5), G(M, tt - 4, 4),
|
|
2264
|
+
}(s), z = s.opt_len + 3 + 7 >>> 3, (Z = s.static_len + 3 + 7 >>> 3) <= z && (z = Z)) : z = Z = F + 5, F + 4 <= z && w !== -1 ? f(s, w, F, U) : s.strategy === 4 || Z === z ? (G(s, 2 + (U ? 1 : 0), 3), ft(s, V, m)) : (G(s, 4 + (U ? 1 : 0), 3), function(M, Y, rt, tt) {
|
|
2265
|
+
var ht;
|
|
2266
|
+
for (G(M, Y - 257, 5), G(M, rt - 1, 5), G(M, tt - 4, 4), ht = 0; ht < tt; ht++) G(M, M.bl_tree[2 * W[ht] + 1], 3);
|
|
2228
2267
|
R(M, M.dyn_ltree, Y - 1), R(M, M.dyn_dtree, rt - 1);
|
|
2229
|
-
}(s, s.l_desc.max_code + 1, s.d_desc.max_code + 1, K + 1),
|
|
2268
|
+
}(s, s.l_desc.max_code + 1, s.d_desc.max_code + 1, K + 1), ft(s, s.dyn_ltree, s.dyn_dtree)), Q(s), U && et(s);
|
|
2230
2269
|
}, k._tr_tally = function(s, w, F) {
|
|
2231
2270
|
return s.pending_buf[s.d_buf + 2 * s.last_lit] = w >>> 8 & 255, s.pending_buf[s.d_buf + 2 * s.last_lit + 1] = 255 & w, s.pending_buf[s.l_buf + s.last_lit] = 255 & F, s.last_lit++, w === 0 ? s.dyn_ltree[2 * F]++ : (s.matches++, w--, s.dyn_ltree[2 * (e[F] + p + 1)]++, s.dyn_dtree[2 * C(w)]++), s.last_lit === s.lit_bufsize - 1;
|
|
2232
2271
|
}, k._tr_align = function(s) {
|
|
@@ -2234,16 +2273,16 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
2234
2273
|
w.bi_valid === 16 ? (X(w, w.bi_buf), w.bi_buf = 0, w.bi_valid = 0) : 8 <= w.bi_valid && (w.pending_buf[w.pending++] = 255 & w.bi_buf, w.bi_buf >>= 8, w.bi_valid -= 8);
|
|
2235
2274
|
}(s);
|
|
2236
2275
|
};
|
|
2237
|
-
}, { "../utils/common": 41 }], 53: [function(
|
|
2238
|
-
|
|
2276
|
+
}, { "../utils/common": 41 }], 53: [function(_, N, k) {
|
|
2277
|
+
N.exports = function() {
|
|
2239
2278
|
this.input = null, this.next_in = 0, this.avail_in = 0, this.total_in = 0, this.output = null, this.next_out = 0, this.avail_out = 0, this.total_out = 0, this.msg = "", this.state = null, this.data_type = 2, this.adler = 0;
|
|
2240
2279
|
};
|
|
2241
|
-
}, {}], 54: [function(
|
|
2242
|
-
(function(
|
|
2280
|
+
}, {}], 54: [function(_, N, k) {
|
|
2281
|
+
(function(u) {
|
|
2243
2282
|
(function(o, n) {
|
|
2244
2283
|
if (!o.setImmediate) {
|
|
2245
|
-
var
|
|
2246
|
-
|
|
2284
|
+
var h, g, y, p, b = 1, i = {}, d = !1, r = o.document, l = Object.getPrototypeOf && Object.getPrototypeOf(o);
|
|
2285
|
+
l = l && l.setTimeout ? l : o, h = {}.toString.call(o.process) === "[object process]" ? function(S) {
|
|
2247
2286
|
process.nextTick(function() {
|
|
2248
2287
|
c(S);
|
|
2249
2288
|
});
|
|
@@ -2260,19 +2299,19 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
2260
2299
|
c(S.data);
|
|
2261
2300
|
}, function(S) {
|
|
2262
2301
|
y.port2.postMessage(S);
|
|
2263
|
-
}) : r && "onreadystatechange" in r.createElement("script") ? (
|
|
2302
|
+
}) : r && "onreadystatechange" in r.createElement("script") ? (g = r.documentElement, function(S) {
|
|
2264
2303
|
var x = r.createElement("script");
|
|
2265
2304
|
x.onreadystatechange = function() {
|
|
2266
|
-
c(S), x.onreadystatechange = null,
|
|
2267
|
-
},
|
|
2305
|
+
c(S), x.onreadystatechange = null, g.removeChild(x), x = null;
|
|
2306
|
+
}, g.appendChild(x);
|
|
2268
2307
|
}) : function(S) {
|
|
2269
2308
|
setTimeout(c, 0, S);
|
|
2270
|
-
},
|
|
2309
|
+
}, l.setImmediate = function(S) {
|
|
2271
2310
|
typeof S != "function" && (S = new Function("" + S));
|
|
2272
2311
|
for (var x = new Array(arguments.length - 1), D = 0; D < x.length; D++) x[D] = arguments[D + 1];
|
|
2273
2312
|
var O = { callback: S, args: x };
|
|
2274
|
-
return i[
|
|
2275
|
-
},
|
|
2313
|
+
return i[b] = O, h(b), b++;
|
|
2314
|
+
}, l.clearImmediate = a;
|
|
2276
2315
|
}
|
|
2277
2316
|
function a(S) {
|
|
2278
2317
|
delete i[S];
|
|
@@ -2285,22 +2324,22 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
2285
2324
|
d = !0;
|
|
2286
2325
|
try {
|
|
2287
2326
|
(function(D) {
|
|
2288
|
-
var O = D.callback,
|
|
2289
|
-
switch (
|
|
2327
|
+
var O = D.callback, j = D.args;
|
|
2328
|
+
switch (j.length) {
|
|
2290
2329
|
case 0:
|
|
2291
2330
|
O();
|
|
2292
2331
|
break;
|
|
2293
2332
|
case 1:
|
|
2294
|
-
O(
|
|
2333
|
+
O(j[0]);
|
|
2295
2334
|
break;
|
|
2296
2335
|
case 2:
|
|
2297
|
-
O(
|
|
2336
|
+
O(j[0], j[1]);
|
|
2298
2337
|
break;
|
|
2299
2338
|
case 3:
|
|
2300
|
-
O(
|
|
2339
|
+
O(j[0], j[1], j[2]);
|
|
2301
2340
|
break;
|
|
2302
2341
|
default:
|
|
2303
|
-
O.apply(n,
|
|
2342
|
+
O.apply(n, j);
|
|
2304
2343
|
}
|
|
2305
2344
|
})(x);
|
|
2306
2345
|
} finally {
|
|
@@ -2312,13 +2351,16 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
2312
2351
|
function v(S) {
|
|
2313
2352
|
S.source === o && typeof S.data == "string" && S.data.indexOf(p) === 0 && c(+S.data.slice(p.length));
|
|
2314
2353
|
}
|
|
2315
|
-
})(typeof self > "u" ?
|
|
2354
|
+
})(typeof self > "u" ? u === void 0 ? this : u : self);
|
|
2316
2355
|
}).call(this, typeof vt < "u" ? vt : typeof self < "u" ? self : typeof window < "u" ? window : {});
|
|
2317
2356
|
}, {}] }, {}, [10])(10);
|
|
2318
2357
|
});
|
|
2319
|
-
})(
|
|
2320
|
-
var
|
|
2321
|
-
const
|
|
2358
|
+
})(zt);
|
|
2359
|
+
var Bt = zt.exports;
|
|
2360
|
+
const Ft = /* @__PURE__ */ Ot(Bt);
|
|
2322
2361
|
export {
|
|
2323
|
-
|
|
2362
|
+
Ft as J,
|
|
2363
|
+
Tt as b,
|
|
2364
|
+
Rt as g,
|
|
2365
|
+
Dt as r
|
|
2324
2366
|
};
|