@fileverse-dev/dsheet 4.0.3 → 4.0.5

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