@harbour-enterprises/superdoc 0.10.2 → 0.10.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chunks/{index-C4-w9MLl.cjs → index-BXKGjuVW.cjs} +1 -1
- package/dist/chunks/{index-ChNh-3hE.cjs → index-CqRwYOdx.cjs} +1 -1
- package/dist/chunks/{index-8ZIOYegI.es.js → index-DjLrg1eZ.es.js} +2 -2
- package/dist/chunks/{index-DlBXCtmW.es.js → index-dZKHAFXF.es.js} +1 -1
- package/dist/chunks/{super-editor.es-BJjuGvyp.es.js → super-editor.es-B81S-oz0.es.js} +8015 -7952
- package/dist/chunks/super-editor.es-sn46SE4I.cjs +420 -0
- package/dist/chunks/{url-CzUL97Mg.cjs → url-6Xu7gR4T.cjs} +1 -1
- package/dist/chunks/{url-B0oWkmAx.es.js → url-BxDGAI6E.es.js} +1 -1
- package/dist/chunks/{xml-js-DLnxZypp.es.js → xml-js-BAML2_fM.es.js} +296 -303
- package/dist/chunks/xml-js-zhwNEV5e.cjs +10 -0
- package/dist/style.css +1 -1
- package/dist/super-editor/chunks/{converter-C35FY5VQ.js → converter-DrrRRpZ7.js} +2217 -2164
- package/dist/super-editor/chunks/{docx-zipper-UI40aP31.js → docx-zipper-Bc8k9VQa.js} +409 -409
- package/dist/super-editor/chunks/{editor-CO6h1K8S.js → editor-CHACd7wL.js} +1805 -1819
- package/dist/super-editor/chunks/{toolbar-CM60amWZ.js → toolbar-DXl_RBya.js} +620 -616
- package/dist/super-editor/components/toolbar/defaultItems.d.ts.map +1 -1
- package/dist/super-editor/components/toolbar/super-toolbar.d.ts +1 -0
- package/dist/super-editor/components/toolbar/super-toolbar.d.ts.map +1 -1
- package/dist/super-editor/components/toolbar/toolbarIcons.d.ts +1 -0
- package/dist/super-editor/components/toolbar/use-toolbar-item.d.ts +2 -0
- package/dist/super-editor/components/toolbar/use-toolbar-item.d.ts.map +1 -1
- package/dist/super-editor/converter.es.js +1 -1
- package/dist/super-editor/core/Editor.d.ts +1 -0
- package/dist/super-editor/core/Editor.d.ts.map +1 -1
- package/dist/super-editor/core/super-converter/exporter.d.ts.map +1 -1
- package/dist/super-editor/core/super-converter/helpers.d.ts +3 -0
- package/dist/super-editor/core/super-converter/helpers.d.ts.map +1 -1
- package/dist/super-editor/core/super-converter/v2/importer/paragraphNodeImporter.d.ts.map +1 -1
- package/dist/super-editor/docx-zipper.es.js +2 -2
- package/dist/super-editor/editor.es.js +3 -3
- package/dist/super-editor/extensions/line-height/line-height.d.ts.map +1 -1
- package/dist/super-editor/extensions/linked-styles/linked-styles.d.ts +0 -1
- package/dist/super-editor/extensions/linked-styles/linked-styles.d.ts.map +1 -1
- package/dist/super-editor/extensions/list-item/helpers/styledListMarkerPlugin.d.ts.map +1 -1
- package/dist/super-editor/extensions/paragraph/paragraph.d.ts.map +1 -1
- package/dist/super-editor/extensions/text-align/text-align.d.ts.map +1 -1
- package/dist/super-editor/file-zipper.es.js +1 -1
- package/dist/super-editor/style.css +1 -1
- package/dist/super-editor/super-editor.es.js +636 -605
- package/dist/super-editor/toolbar.es.js +2 -2
- package/dist/super-editor.cjs +1 -1
- package/dist/super-editor.es.js +7 -7
- package/dist/superdoc.cjs +5 -5
- package/dist/superdoc.es.js +6 -6
- package/dist/superdoc.umd.js +6761 -6695
- package/dist/superdoc.umd.js.map +1 -1
- package/package.json +1 -1
- package/dist/chunks/super-editor.es-BR6yWvHn.cjs +0 -419
- package/dist/chunks/xml-js-zfoNze4t.cjs +0 -10
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { p as Tt,
|
|
1
|
+
import { p as Tt, a0 as wt, B as ut, a1 as Bt, a2 as Rt } from "./converter-DrrRRpZ7.js";
|
|
2
2
|
function kt(bt) {
|
|
3
3
|
throw new Error('Could not dynamically require "' + bt + '". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.');
|
|
4
4
|
}
|
|
@@ -8,7 +8,7 @@ var Ct = { exports: {} };
|
|
|
8
8
|
bt.exports = _();
|
|
9
9
|
})(function() {
|
|
10
10
|
return function _(R, y, l) {
|
|
11
|
-
function
|
|
11
|
+
function a(m, v) {
|
|
12
12
|
if (!y[m]) {
|
|
13
13
|
if (!R[m]) {
|
|
14
14
|
var c = typeof kt == "function" && kt;
|
|
@@ -20,38 +20,38 @@ var Ct = { exports: {} };
|
|
|
20
20
|
var i = y[m] = { exports: {} };
|
|
21
21
|
R[m][0].call(i.exports, function(d) {
|
|
22
22
|
var n = R[m][1][d];
|
|
23
|
-
return
|
|
23
|
+
return a(n || d);
|
|
24
24
|
}, i, i.exports, _, R, y, l);
|
|
25
25
|
}
|
|
26
26
|
return y[m].exports;
|
|
27
27
|
}
|
|
28
|
-
for (var r = typeof kt == "function" && kt, h = 0; h < l.length; h++)
|
|
29
|
-
return
|
|
28
|
+
for (var r = typeof kt == "function" && kt, h = 0; h < l.length; h++) a(l[h]);
|
|
29
|
+
return a;
|
|
30
30
|
}({ 1: [function(_, R, y) {
|
|
31
|
-
var l = _("./utils"),
|
|
31
|
+
var l = _("./utils"), a = _("./support"), r = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";
|
|
32
32
|
y.encode = function(h) {
|
|
33
|
-
for (var m, v, c, b, i, d, n, u = [],
|
|
33
|
+
for (var m, v, c, b, i, d, n, u = [], s = 0, p = h.length, w = p, S = l.getTypeOf(h) !== "string"; s < h.length; ) w = p - s, c = S ? (m = h[s++], v = s < p ? h[s++] : 0, s < p ? h[s++] : 0) : (m = h.charCodeAt(s++), v = s < p ? h.charCodeAt(s++) : 0, s < p ? h.charCodeAt(s++) : 0), b = m >> 2, i = (3 & m) << 4 | v >> 4, d = 1 < w ? (15 & v) << 2 | c >> 6 : 64, n = 2 < w ? 63 & c : 64, u.push(r.charAt(b) + r.charAt(i) + r.charAt(d) + r.charAt(n));
|
|
34
34
|
return u.join("");
|
|
35
35
|
}, y.decode = function(h) {
|
|
36
|
-
var m, v, c, b, i, d, n = 0, u = 0,
|
|
37
|
-
if (h.substr(0,
|
|
36
|
+
var m, v, c, b, i, d, n = 0, u = 0, s = "data:";
|
|
37
|
+
if (h.substr(0, s.length) === s) throw new Error("Invalid base64 input, it looks like a data url.");
|
|
38
38
|
var p, w = 3 * (h = h.replace(/[^A-Za-z0-9+/=]/g, "")).length / 4;
|
|
39
39
|
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.");
|
|
40
|
-
for (p =
|
|
40
|
+
for (p = a.uint8array ? new Uint8Array(0 | w) : new Array(0 | w); n < h.length; ) m = 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++))), p[u++] = m, i !== 64 && (p[u++] = v), d !== 64 && (p[u++] = c);
|
|
41
41
|
return p;
|
|
42
42
|
};
|
|
43
43
|
}, { "./support": 30, "./utils": 32 }], 2: [function(_, R, y) {
|
|
44
|
-
var l = _("./external"),
|
|
44
|
+
var l = _("./external"), a = _("./stream/DataWorker"), r = _("./stream/Crc32Probe"), h = _("./stream/DataLengthProbe");
|
|
45
45
|
function m(v, c, b, i, d) {
|
|
46
46
|
this.compressedSize = v, this.uncompressedSize = c, this.crc32 = b, this.compression = i, this.compressedContent = d;
|
|
47
47
|
}
|
|
48
48
|
m.prototype = { getContentWorker: function() {
|
|
49
|
-
var v = new
|
|
49
|
+
var v = new a(l.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new h("data_length")), c = this;
|
|
50
50
|
return v.on("end", function() {
|
|
51
51
|
if (this.streamInfo.data_length !== c.uncompressedSize) throw new Error("Bug : uncompressed data size mismatch");
|
|
52
52
|
}), v;
|
|
53
53
|
}, getCompressedWorker: function() {
|
|
54
|
-
return new
|
|
54
|
+
return new a(l.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize", this.compressedSize).withStreamInfo("uncompressedSize", this.uncompressedSize).withStreamInfo("crc32", this.crc32).withStreamInfo("compression", this.compression);
|
|
55
55
|
} }, m.createWorkerFrom = function(v, c, b) {
|
|
56
56
|
return v.pipe(new r()).pipe(new h("uncompressedSize")).pipe(c.compressWorker(b)).pipe(new h("compressedSize")).withStreamInfo("compression", c);
|
|
57
57
|
}, R.exports = m;
|
|
@@ -63,7 +63,7 @@ var Ct = { exports: {} };
|
|
|
63
63
|
return new l("STORE decompression");
|
|
64
64
|
} }, y.DEFLATE = _("./flate");
|
|
65
65
|
}, { "./flate": 7, "./stream/GenericWorker": 28 }], 4: [function(_, R, y) {
|
|
66
|
-
var l = _("./utils"),
|
|
66
|
+
var l = _("./utils"), a = function() {
|
|
67
67
|
for (var r, h = [], m = 0; m < 256; m++) {
|
|
68
68
|
r = m;
|
|
69
69
|
for (var v = 0; v < 8; v++) r = 1 & r ? 3988292384 ^ r >>> 1 : r >>> 1;
|
|
@@ -73,12 +73,12 @@ var Ct = { exports: {} };
|
|
|
73
73
|
}();
|
|
74
74
|
R.exports = function(r, h) {
|
|
75
75
|
return r !== void 0 && r.length ? l.getTypeOf(r) !== "string" ? function(m, v, c, b) {
|
|
76
|
-
var i =
|
|
76
|
+
var i = a, d = b + c;
|
|
77
77
|
m ^= -1;
|
|
78
78
|
for (var n = b; n < d; n++) m = m >>> 8 ^ i[255 & (m ^ v[n])];
|
|
79
79
|
return -1 ^ m;
|
|
80
80
|
}(0 | h, r, r.length, 0) : function(m, v, c, b) {
|
|
81
|
-
var i =
|
|
81
|
+
var i = a, d = b + c;
|
|
82
82
|
m ^= -1;
|
|
83
83
|
for (var n = b; n < d; n++) m = m >>> 8 ^ i[255 & (m ^ v.charCodeAt(n))];
|
|
84
84
|
return -1 ^ m;
|
|
@@ -90,7 +90,7 @@ var Ct = { exports: {} };
|
|
|
90
90
|
var l = null;
|
|
91
91
|
l = typeof Promise < "u" ? Promise : _("lie"), R.exports = { Promise: l };
|
|
92
92
|
}, { lie: 37 }], 7: [function(_, R, y) {
|
|
93
|
-
var l = typeof Uint8Array < "u" && typeof Uint16Array < "u" && typeof Uint32Array < "u",
|
|
93
|
+
var l = typeof Uint8Array < "u" && typeof Uint16Array < "u" && typeof Uint32Array < "u", a = _("pako"), r = _("./utils"), h = _("./stream/GenericWorker"), m = l ? "uint8array" : "array";
|
|
94
94
|
function v(c, b) {
|
|
95
95
|
h.call(this, "FlateWorker/" + c), this._pako = null, this._pakoAction = c, this._pakoOptions = b, this.meta = {};
|
|
96
96
|
}
|
|
@@ -101,7 +101,7 @@ var Ct = { exports: {} };
|
|
|
101
101
|
}, v.prototype.cleanUp = function() {
|
|
102
102
|
h.prototype.cleanUp.call(this), this._pako = null;
|
|
103
103
|
}, v.prototype._createPako = function() {
|
|
104
|
-
this._pako = new
|
|
104
|
+
this._pako = new a[this._pakoAction]({ raw: !0, level: this._pakoOptions.level || -1 });
|
|
105
105
|
var c = this;
|
|
106
106
|
this._pako.onData = function(b) {
|
|
107
107
|
c.push({ data: b, meta: c.meta });
|
|
@@ -117,13 +117,13 @@ var Ct = { exports: {} };
|
|
|
117
117
|
for (n = 0; n < d; n++) u += String.fromCharCode(255 & i), i >>>= 8;
|
|
118
118
|
return u;
|
|
119
119
|
}
|
|
120
|
-
function
|
|
120
|
+
function a(i, d, n, u, s, p) {
|
|
121
121
|
var w, S, x = i.file, F = i.compression, I = p !== m.utf8encode, j = r.transformTo("string", p(x.name)), O = r.transformTo("string", m.utf8encode(x.name)), W = x.comment, V = r.transformTo("string", p(W)), g = r.transformTo("string", m.utf8encode(W)), T = O.length !== x.name.length, e = g.length !== W.length, D = "", J = "", U = "", $ = x.dir, L = x.date, q = { crc32: 0, compressedSize: 0, uncompressedSize: 0 };
|
|
122
122
|
d && !n || (q.crc32 = i.crc32, q.compressedSize = i.compressedSize, q.uncompressedSize = i.uncompressedSize);
|
|
123
123
|
var C = 0;
|
|
124
124
|
d && (C |= 8), I || !T && !e || (C |= 2048);
|
|
125
125
|
var E = 0, Y = 0;
|
|
126
|
-
$ && (E |= 16),
|
|
126
|
+
$ && (E |= 16), s === "UNIX" ? (Y = 798, E |= function(H, it) {
|
|
127
127
|
var lt = H;
|
|
128
128
|
return H || (lt = it ? 16893 : 33204), (65535 & lt) << 16;
|
|
129
129
|
}(x.unixPermissions, $)) : (Y = 20, E |= function(H) {
|
|
@@ -144,12 +144,12 @@ var Ct = { exports: {} };
|
|
|
144
144
|
this.currentSourceOffset = this.bytesWritten, this.currentFile = i.file.name;
|
|
145
145
|
var d = this.streamFiles && !i.file.dir;
|
|
146
146
|
if (d) {
|
|
147
|
-
var n =
|
|
147
|
+
var n = a(i, d, !1, this.currentSourceOffset, this.zipPlatform, this.encodeFileName);
|
|
148
148
|
this.push({ data: n.fileRecord, meta: { percent: 0 } });
|
|
149
149
|
} else this.accumulate = !0;
|
|
150
150
|
}, b.prototype.closedSource = function(i) {
|
|
151
151
|
this.accumulate = !1;
|
|
152
|
-
var d = this.streamFiles && !i.file.dir, n =
|
|
152
|
+
var d = this.streamFiles && !i.file.dir, n = a(i, d, !0, this.currentSourceOffset, this.zipPlatform, this.encodeFileName);
|
|
153
153
|
if (this.dirRecords.push(n.dirRecord), d) this.push({ data: function(u) {
|
|
154
154
|
return c.DATA_DESCRIPTOR + l(u.crc32, 4) + l(u.compressedSize, 4) + l(u.uncompressedSize, 4);
|
|
155
155
|
}(i), meta: { percent: 100 } });
|
|
@@ -157,9 +157,9 @@ var Ct = { exports: {} };
|
|
|
157
157
|
this.currentFile = null;
|
|
158
158
|
}, b.prototype.flush = function() {
|
|
159
159
|
for (var i = this.bytesWritten, d = 0; d < this.dirRecords.length; d++) this.push({ data: this.dirRecords[d], meta: { percent: 100 } });
|
|
160
|
-
var n = this.bytesWritten - i, u = function(
|
|
160
|
+
var n = this.bytesWritten - i, u = function(s, p, w, S, x) {
|
|
161
161
|
var F = r.transformTo("string", x(S));
|
|
162
|
-
return c.CENTRAL_DIRECTORY_END + "\0\0\0\0" + l(
|
|
162
|
+
return c.CENTRAL_DIRECTORY_END + "\0\0\0\0" + l(s, 2) + l(s, 2) + l(p, 4) + l(w, 4) + l(F.length, 2) + F;
|
|
163
163
|
}(this.dirRecords.length, n, i, this.zipComment, this.encodeFileName);
|
|
164
164
|
this.push({ data: u, meta: { percent: 100 } });
|
|
165
165
|
}, b.prototype.prepareNextSource = function() {
|
|
@@ -189,9 +189,9 @@ var Ct = { exports: {} };
|
|
|
189
189
|
for (var i = this._sources, d = 0; d < i.length; d++) i[d].lock();
|
|
190
190
|
}, R.exports = b;
|
|
191
191
|
}, { "../crc32": 4, "../signature": 23, "../stream/GenericWorker": 28, "../utf8": 31, "../utils": 32 }], 9: [function(_, R, y) {
|
|
192
|
-
var l = _("../compressions"),
|
|
192
|
+
var l = _("../compressions"), a = _("./ZipFileWorker");
|
|
193
193
|
y.generateWorker = function(r, h, m) {
|
|
194
|
-
var v = new
|
|
194
|
+
var v = new a(h.streamFiles, m, h.platform, h.encodeFileName), c = 0;
|
|
195
195
|
try {
|
|
196
196
|
r.forEach(function(b, i) {
|
|
197
197
|
c++;
|
|
@@ -199,8 +199,8 @@ var Ct = { exports: {} };
|
|
|
199
199
|
var S = p || w, x = l[S];
|
|
200
200
|
if (!x) throw new Error(S + " is not a valid compression method !");
|
|
201
201
|
return x;
|
|
202
|
-
}(i.options.compression, h.compression), n = i.options.compressionOptions || h.compressionOptions || {}, u = i.dir,
|
|
203
|
-
i._compressWorker(d, n).withStreamInfo("file", { name: b, dir: u, date:
|
|
202
|
+
}(i.options.compression, h.compression), n = i.options.compressionOptions || h.compressionOptions || {}, u = i.dir, s = i.date;
|
|
203
|
+
i._compressWorker(d, n).withStreamInfo("file", { name: b, dir: u, date: s, comment: i.comment || "", unixPermissions: i.unixPermissions, dosPermissions: i.dosPermissions }).pipe(v);
|
|
204
204
|
}), v.entriesCount = c;
|
|
205
205
|
} catch (b) {
|
|
206
206
|
v.error(b);
|
|
@@ -212,18 +212,18 @@ var Ct = { exports: {} };
|
|
|
212
212
|
if (!(this instanceof l)) return new l();
|
|
213
213
|
if (arguments.length) throw new Error("The constructor with parameters has been removed in JSZip 3.0, please check the upgrade guide.");
|
|
214
214
|
this.files = /* @__PURE__ */ Object.create(null), this.comment = null, this.root = "", this.clone = function() {
|
|
215
|
-
var
|
|
216
|
-
for (var r in this) typeof this[r] != "function" && (
|
|
217
|
-
return
|
|
215
|
+
var a = new l();
|
|
216
|
+
for (var r in this) typeof this[r] != "function" && (a[r] = this[r]);
|
|
217
|
+
return a;
|
|
218
218
|
};
|
|
219
219
|
}
|
|
220
|
-
(l.prototype = _("./object")).loadAsync = _("./load"), l.support = _("./support"), l.defaults = _("./defaults"), l.version = "3.10.1", l.loadAsync = function(
|
|
221
|
-
return new l().loadAsync(
|
|
220
|
+
(l.prototype = _("./object")).loadAsync = _("./load"), l.support = _("./support"), l.defaults = _("./defaults"), l.version = "3.10.1", l.loadAsync = function(a, r) {
|
|
221
|
+
return new l().loadAsync(a, r);
|
|
222
222
|
}, l.external = _("./external"), R.exports = l;
|
|
223
223
|
}, { "./defaults": 5, "./external": 6, "./load": 11, "./object": 15, "./support": 30 }], 11: [function(_, R, y) {
|
|
224
|
-
var l = _("./utils"),
|
|
224
|
+
var l = _("./utils"), a = _("./external"), r = _("./utf8"), h = _("./zipEntries"), m = _("./stream/Crc32Probe"), v = _("./nodejsUtils");
|
|
225
225
|
function c(b) {
|
|
226
|
-
return new
|
|
226
|
+
return new a.Promise(function(i, d) {
|
|
227
227
|
var n = b.decompressed.getContentWorker().pipe(new m());
|
|
228
228
|
n.on("error", function(u) {
|
|
229
229
|
d(u);
|
|
@@ -234,27 +234,27 @@ var Ct = { exports: {} };
|
|
|
234
234
|
}
|
|
235
235
|
R.exports = function(b, i) {
|
|
236
236
|
var d = this;
|
|
237
|
-
return i = l.extend(i || {}, { base64: !1, checkCRC32: !1, optimizedBinaryString: !1, createFolders: !1, decodeFileName: r.utf8decode }), v.isNode && v.isStream(b) ?
|
|
237
|
+
return i = l.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.")) : l.prepareContent("the loaded zip file", b, !0, i.optimizedBinaryString, i.base64).then(function(n) {
|
|
238
238
|
var u = new h(i);
|
|
239
239
|
return u.load(n), u;
|
|
240
240
|
}).then(function(n) {
|
|
241
|
-
var u = [
|
|
242
|
-
if (i.checkCRC32) for (var p = 0; p <
|
|
243
|
-
return
|
|
241
|
+
var u = [a.Promise.resolve(n)], s = n.files;
|
|
242
|
+
if (i.checkCRC32) for (var p = 0; p < s.length; p++) u.push(c(s[p]));
|
|
243
|
+
return a.Promise.all(u);
|
|
244
244
|
}).then(function(n) {
|
|
245
|
-
for (var u = n.shift(),
|
|
246
|
-
var w =
|
|
245
|
+
for (var u = n.shift(), s = u.files, p = 0; p < s.length; p++) {
|
|
246
|
+
var w = s[p], S = w.fileNameStr, x = l.resolve(w.fileNameStr);
|
|
247
247
|
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);
|
|
248
248
|
}
|
|
249
249
|
return u.zipComment.length && (d.comment = u.zipComment), d;
|
|
250
250
|
});
|
|
251
251
|
};
|
|
252
252
|
}, { "./external": 6, "./nodejsUtils": 14, "./stream/Crc32Probe": 25, "./utf8": 31, "./utils": 32, "./zipEntries": 33 }], 12: [function(_, R, y) {
|
|
253
|
-
var l = _("../utils"),
|
|
253
|
+
var l = _("../utils"), a = _("../stream/GenericWorker");
|
|
254
254
|
function r(h, m) {
|
|
255
|
-
|
|
255
|
+
a.call(this, "Nodejs stream input adapter for " + h), this._upstreamEnded = !1, this._bindStream(m);
|
|
256
256
|
}
|
|
257
|
-
l.inherits(r,
|
|
257
|
+
l.inherits(r, a), r.prototype._bindStream = function(h) {
|
|
258
258
|
var m = this;
|
|
259
259
|
(this._stream = h).pause(), h.on("data", function(v) {
|
|
260
260
|
m.push({ data: v, meta: { percent: 0 } });
|
|
@@ -264,13 +264,13 @@ var Ct = { exports: {} };
|
|
|
264
264
|
m.isPaused ? m._upstreamEnded = !0 : m.end();
|
|
265
265
|
});
|
|
266
266
|
}, r.prototype.pause = function() {
|
|
267
|
-
return !!
|
|
267
|
+
return !!a.prototype.pause.call(this) && (this._stream.pause(), !0);
|
|
268
268
|
}, r.prototype.resume = function() {
|
|
269
|
-
return !!
|
|
269
|
+
return !!a.prototype.resume.call(this) && (this._upstreamEnded ? this.end() : this._stream.resume(), !0);
|
|
270
270
|
}, R.exports = r;
|
|
271
271
|
}, { "../stream/GenericWorker": 28, "../utils": 32 }], 13: [function(_, R, y) {
|
|
272
272
|
var l = _("readable-stream").Readable;
|
|
273
|
-
function
|
|
273
|
+
function a(r, h, m) {
|
|
274
274
|
l.call(this, h), this._helper = r;
|
|
275
275
|
var v = this;
|
|
276
276
|
r.on("data", function(c, b) {
|
|
@@ -281,18 +281,18 @@ var Ct = { exports: {} };
|
|
|
281
281
|
v.push(null);
|
|
282
282
|
});
|
|
283
283
|
}
|
|
284
|
-
_("../utils").inherits(
|
|
284
|
+
_("../utils").inherits(a, l), a.prototype._read = function() {
|
|
285
285
|
this._helper.resume();
|
|
286
|
-
}, R.exports =
|
|
286
|
+
}, R.exports = a;
|
|
287
287
|
}, { "../utils": 32, "readable-stream": 16 }], 14: [function(_, R, y) {
|
|
288
|
-
R.exports = { isNode: typeof ut < "u", newBufferFrom: function(l,
|
|
289
|
-
if (ut.from && ut.from !== Uint8Array.from) return ut.from(l,
|
|
288
|
+
R.exports = { isNode: typeof ut < "u", newBufferFrom: function(l, a) {
|
|
289
|
+
if (ut.from && ut.from !== Uint8Array.from) return ut.from(l, a);
|
|
290
290
|
if (typeof l == "number") throw new Error('The "data" argument must not be a number');
|
|
291
|
-
return new ut(l,
|
|
291
|
+
return new ut(l, a);
|
|
292
292
|
}, allocBuffer: function(l) {
|
|
293
293
|
if (ut.alloc) return ut.alloc(l);
|
|
294
|
-
var
|
|
295
|
-
return
|
|
294
|
+
var a = new ut(l);
|
|
295
|
+
return a.fill(0), a;
|
|
296
296
|
}, isBuffer: function(l) {
|
|
297
297
|
return ut.isBuffer(l);
|
|
298
298
|
}, isStream: function(l) {
|
|
@@ -301,7 +301,7 @@ var Ct = { exports: {} };
|
|
|
301
301
|
}, {}], 15: [function(_, R, y) {
|
|
302
302
|
function l(x, F, I) {
|
|
303
303
|
var j, O = r.getTypeOf(F), W = r.extend(I || {}, v);
|
|
304
|
-
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 =
|
|
304
|
+
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 = u(x)) && p.call(this, j, !0);
|
|
305
305
|
var V = O === "string" && W.binary === !1 && W.base64 === !1;
|
|
306
306
|
I && I.binary !== void 0 || (W.binary = !V), (F instanceof c && F.uncompressedSize === 0 || W.dir || !F || F.length === 0) && (W.base64 = !1, W.binary = !0, F = "", W.compression = "STORE", O = "string");
|
|
307
307
|
var g = null;
|
|
@@ -309,14 +309,14 @@ var Ct = { exports: {} };
|
|
|
309
309
|
var T = new b(x, g, W);
|
|
310
310
|
this.files[x] = T;
|
|
311
311
|
}
|
|
312
|
-
var
|
|
312
|
+
var a = _("./utf8"), r = _("./utils"), h = _("./stream/GenericWorker"), m = _("./stream/StreamHelper"), v = _("./defaults"), c = _("./compressedObject"), b = _("./zipObject"), i = _("./generate"), d = _("./nodejsUtils"), n = _("./nodejs/NodejsStreamInputAdapter"), u = function(x) {
|
|
313
313
|
x.slice(-1) === "/" && (x = x.substring(0, x.length - 1));
|
|
314
314
|
var F = x.lastIndexOf("/");
|
|
315
315
|
return 0 < F ? x.substring(0, F) : "";
|
|
316
|
-
},
|
|
316
|
+
}, s = function(x) {
|
|
317
317
|
return x.slice(-1) !== "/" && (x += "/"), x;
|
|
318
318
|
}, p = function(x, F) {
|
|
319
|
-
return F = F !== void 0 ? F : v.createFolders, x =
|
|
319
|
+
return F = F !== void 0 ? F : v.createFolders, x = s(x), this.files[x] || l.call(this, x, null, { dir: !0, createFolders: F }), this.files[x];
|
|
320
320
|
};
|
|
321
321
|
function w(x) {
|
|
322
322
|
return Object.prototype.toString.call(x) === "[object RegExp]";
|
|
@@ -361,7 +361,7 @@ var Ct = { exports: {} };
|
|
|
361
361
|
}, generateInternalStream: function(x) {
|
|
362
362
|
var F, I = {};
|
|
363
363
|
try {
|
|
364
|
-
if ((I = r.extend(x || {}, { streamFiles: !1, compression: "STORE", compressionOptions: null, type: "", platform: "DOS", comment: null, mimeType: "application/zip", encodeFileName:
|
|
364
|
+
if ((I = r.extend(x || {}, { streamFiles: !1, compression: "STORE", compressionOptions: null, type: "", platform: "DOS", comment: null, mimeType: "application/zip", encodeFileName: a.utf8encode })).type = I.type.toLowerCase(), I.compression = I.compression.toUpperCase(), I.type === "binarystring" && (I.type = "string"), !I.type) throw new Error("No output type specified.");
|
|
365
365
|
r.checkSupport(I.type), I.platform !== "darwin" && I.platform !== "freebsd" && I.platform !== "linux" && I.platform !== "sunos" || (I.platform = "UNIX"), I.platform === "win32" && (I.platform = "DOS");
|
|
366
366
|
var j = I.comment || this.comment || "";
|
|
367
367
|
F = i.generateWorker(this, I, j);
|
|
@@ -379,29 +379,29 @@ var Ct = { exports: {} };
|
|
|
379
379
|
R.exports = _("stream");
|
|
380
380
|
}, { stream: void 0 }], 17: [function(_, R, y) {
|
|
381
381
|
var l = _("./DataReader");
|
|
382
|
-
function
|
|
382
|
+
function a(r) {
|
|
383
383
|
l.call(this, r);
|
|
384
384
|
for (var h = 0; h < this.data.length; h++) r[h] = 255 & r[h];
|
|
385
385
|
}
|
|
386
|
-
_("../utils").inherits(
|
|
386
|
+
_("../utils").inherits(a, l), a.prototype.byteAt = function(r) {
|
|
387
387
|
return this.data[this.zero + r];
|
|
388
|
-
},
|
|
388
|
+
}, a.prototype.lastIndexOfSignature = function(r) {
|
|
389
389
|
for (var h = r.charCodeAt(0), m = 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] === m && this.data[b + 2] === v && this.data[b + 3] === c) return b - this.zero;
|
|
390
390
|
return -1;
|
|
391
|
-
},
|
|
391
|
+
}, a.prototype.readAndCheckSignature = function(r) {
|
|
392
392
|
var h = r.charCodeAt(0), m = r.charCodeAt(1), v = r.charCodeAt(2), c = r.charCodeAt(3), b = this.readData(4);
|
|
393
393
|
return h === b[0] && m === b[1] && v === b[2] && c === b[3];
|
|
394
|
-
},
|
|
394
|
+
}, a.prototype.readData = function(r) {
|
|
395
395
|
if (this.checkOffset(r), r === 0) return [];
|
|
396
396
|
var h = this.data.slice(this.zero + this.index, this.zero + this.index + r);
|
|
397
397
|
return this.index += r, h;
|
|
398
|
-
}, R.exports =
|
|
398
|
+
}, R.exports = a;
|
|
399
399
|
}, { "../utils": 32, "./DataReader": 18 }], 18: [function(_, R, y) {
|
|
400
400
|
var l = _("../utils");
|
|
401
|
-
function
|
|
401
|
+
function a(r) {
|
|
402
402
|
this.data = r, this.length = r.length, this.index = 0, this.zero = 0;
|
|
403
403
|
}
|
|
404
|
-
|
|
404
|
+
a.prototype = { checkOffset: function(r) {
|
|
405
405
|
this.checkIndex(this.index + r);
|
|
406
406
|
}, checkIndex: function(r) {
|
|
407
407
|
if (this.length < this.zero + r || r < 0) throw new Error("End of data reached (data length = " + this.length + ", asked index = " + r + "). Corrupted zip ?");
|
|
@@ -422,83 +422,83 @@ var Ct = { exports: {} };
|
|
|
422
422
|
}, readDate: function() {
|
|
423
423
|
var r = this.readInt(4);
|
|
424
424
|
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));
|
|
425
|
-
} }, R.exports =
|
|
425
|
+
} }, R.exports = a;
|
|
426
426
|
}, { "../utils": 32 }], 19: [function(_, R, y) {
|
|
427
427
|
var l = _("./Uint8ArrayReader");
|
|
428
|
-
function
|
|
428
|
+
function a(r) {
|
|
429
429
|
l.call(this, r);
|
|
430
430
|
}
|
|
431
|
-
_("../utils").inherits(
|
|
431
|
+
_("../utils").inherits(a, l), a.prototype.readData = function(r) {
|
|
432
432
|
this.checkOffset(r);
|
|
433
433
|
var h = this.data.slice(this.zero + this.index, this.zero + this.index + r);
|
|
434
434
|
return this.index += r, h;
|
|
435
|
-
}, R.exports =
|
|
435
|
+
}, R.exports = a;
|
|
436
436
|
}, { "../utils": 32, "./Uint8ArrayReader": 21 }], 20: [function(_, R, y) {
|
|
437
437
|
var l = _("./DataReader");
|
|
438
|
-
function
|
|
438
|
+
function a(r) {
|
|
439
439
|
l.call(this, r);
|
|
440
440
|
}
|
|
441
|
-
_("../utils").inherits(
|
|
441
|
+
_("../utils").inherits(a, l), a.prototype.byteAt = function(r) {
|
|
442
442
|
return this.data.charCodeAt(this.zero + r);
|
|
443
|
-
},
|
|
443
|
+
}, a.prototype.lastIndexOfSignature = function(r) {
|
|
444
444
|
return this.data.lastIndexOf(r) - this.zero;
|
|
445
|
-
},
|
|
445
|
+
}, a.prototype.readAndCheckSignature = function(r) {
|
|
446
446
|
return r === this.readData(4);
|
|
447
|
-
},
|
|
447
|
+
}, a.prototype.readData = function(r) {
|
|
448
448
|
this.checkOffset(r);
|
|
449
449
|
var h = this.data.slice(this.zero + this.index, this.zero + this.index + r);
|
|
450
450
|
return this.index += r, h;
|
|
451
|
-
}, R.exports =
|
|
451
|
+
}, R.exports = a;
|
|
452
452
|
}, { "../utils": 32, "./DataReader": 18 }], 21: [function(_, R, y) {
|
|
453
453
|
var l = _("./ArrayReader");
|
|
454
|
-
function
|
|
454
|
+
function a(r) {
|
|
455
455
|
l.call(this, r);
|
|
456
456
|
}
|
|
457
|
-
_("../utils").inherits(
|
|
457
|
+
_("../utils").inherits(a, l), a.prototype.readData = function(r) {
|
|
458
458
|
if (this.checkOffset(r), r === 0) return new Uint8Array(0);
|
|
459
459
|
var h = this.data.subarray(this.zero + this.index, this.zero + this.index + r);
|
|
460
460
|
return this.index += r, h;
|
|
461
|
-
}, R.exports =
|
|
461
|
+
}, R.exports = a;
|
|
462
462
|
}, { "../utils": 32, "./ArrayReader": 17 }], 22: [function(_, R, y) {
|
|
463
|
-
var l = _("../utils"),
|
|
463
|
+
var l = _("../utils"), a = _("../support"), r = _("./ArrayReader"), h = _("./StringReader"), m = _("./NodeBufferReader"), v = _("./Uint8ArrayReader");
|
|
464
464
|
R.exports = function(c) {
|
|
465
465
|
var b = l.getTypeOf(c);
|
|
466
|
-
return l.checkSupport(b), b !== "string" ||
|
|
466
|
+
return l.checkSupport(b), b !== "string" || a.uint8array ? b === "nodebuffer" ? new m(c) : a.uint8array ? new v(l.transformTo("uint8array", c)) : new r(l.transformTo("array", c)) : new h(c);
|
|
467
467
|
};
|
|
468
468
|
}, { "../support": 30, "../utils": 32, "./ArrayReader": 17, "./NodeBufferReader": 19, "./StringReader": 20, "./Uint8ArrayReader": 21 }], 23: [function(_, R, y) {
|
|
469
469
|
y.LOCAL_FILE_HEADER = "PK", y.CENTRAL_FILE_HEADER = "PK", y.CENTRAL_DIRECTORY_END = "PK", y.ZIP64_CENTRAL_DIRECTORY_LOCATOR = "PK\x07", y.ZIP64_CENTRAL_DIRECTORY_END = "PK", y.DATA_DESCRIPTOR = "PK\x07\b";
|
|
470
470
|
}, {}], 24: [function(_, R, y) {
|
|
471
|
-
var l = _("./GenericWorker"),
|
|
471
|
+
var l = _("./GenericWorker"), a = _("../utils");
|
|
472
472
|
function r(h) {
|
|
473
473
|
l.call(this, "ConvertWorker to " + h), this.destType = h;
|
|
474
474
|
}
|
|
475
|
-
|
|
476
|
-
this.push({ data:
|
|
475
|
+
a.inherits(r, l), r.prototype.processChunk = function(h) {
|
|
476
|
+
this.push({ data: a.transformTo(this.destType, h.data), meta: h.meta });
|
|
477
477
|
}, R.exports = r;
|
|
478
478
|
}, { "../utils": 32, "./GenericWorker": 28 }], 25: [function(_, R, y) {
|
|
479
|
-
var l = _("./GenericWorker"),
|
|
479
|
+
var l = _("./GenericWorker"), a = _("../crc32");
|
|
480
480
|
function r() {
|
|
481
481
|
l.call(this, "Crc32Probe"), this.withStreamInfo("crc32", 0);
|
|
482
482
|
}
|
|
483
483
|
_("../utils").inherits(r, l), r.prototype.processChunk = function(h) {
|
|
484
|
-
this.streamInfo.crc32 =
|
|
484
|
+
this.streamInfo.crc32 = a(h.data, this.streamInfo.crc32 || 0), this.push(h);
|
|
485
485
|
}, R.exports = r;
|
|
486
486
|
}, { "../crc32": 4, "../utils": 32, "./GenericWorker": 28 }], 26: [function(_, R, y) {
|
|
487
|
-
var l = _("../utils"),
|
|
487
|
+
var l = _("../utils"), a = _("./GenericWorker");
|
|
488
488
|
function r(h) {
|
|
489
|
-
|
|
489
|
+
a.call(this, "DataLengthProbe for " + h), this.propName = h, this.withStreamInfo(h, 0);
|
|
490
490
|
}
|
|
491
|
-
l.inherits(r,
|
|
491
|
+
l.inherits(r, a), r.prototype.processChunk = function(h) {
|
|
492
492
|
if (h) {
|
|
493
493
|
var m = this.streamInfo[this.propName] || 0;
|
|
494
494
|
this.streamInfo[this.propName] = m + h.data.length;
|
|
495
495
|
}
|
|
496
|
-
|
|
496
|
+
a.prototype.processChunk.call(this, h);
|
|
497
497
|
}, R.exports = r;
|
|
498
498
|
}, { "../utils": 32, "./GenericWorker": 28 }], 27: [function(_, R, y) {
|
|
499
|
-
var l = _("../utils"),
|
|
499
|
+
var l = _("../utils"), a = _("./GenericWorker");
|
|
500
500
|
function r(h) {
|
|
501
|
-
|
|
501
|
+
a.call(this, "DataWorker");
|
|
502
502
|
var m = this;
|
|
503
503
|
this.dataIsReady = !1, this.index = 0, this.max = 0, this.data = null, this.type = "", this._tickScheduled = !1, h.then(function(v) {
|
|
504
504
|
m.dataIsReady = !0, m.data = v, m.max = v && v.length || 0, m.type = l.getTypeOf(v), m.isPaused || m._tickAndRepeat();
|
|
@@ -506,10 +506,10 @@ var Ct = { exports: {} };
|
|
|
506
506
|
m.error(v);
|
|
507
507
|
});
|
|
508
508
|
}
|
|
509
|
-
l.inherits(r,
|
|
510
|
-
|
|
509
|
+
l.inherits(r, a), r.prototype.cleanUp = function() {
|
|
510
|
+
a.prototype.cleanUp.call(this), this.data = null;
|
|
511
511
|
}, r.prototype.resume = function() {
|
|
512
|
-
return !!
|
|
512
|
+
return !!a.prototype.resume.call(this) && (!this._tickScheduled && this.dataIsReady && (this._tickScheduled = !0, l.delay(this._tickAndRepeat, [], this)), !0);
|
|
513
513
|
}, r.prototype._tickAndRepeat = function() {
|
|
514
514
|
this._tickScheduled = !1, this.isPaused || this.isFinished || (this._tick(), this.isFinished || (l.delay(this._tickAndRepeat, [], this), this._tickScheduled = !0));
|
|
515
515
|
}, r.prototype._tick = function() {
|
|
@@ -530,74 +530,74 @@ var Ct = { exports: {} };
|
|
|
530
530
|
return this.index = m, this.push({ data: h, meta: { percent: this.max ? this.index / this.max * 100 : 0 } });
|
|
531
531
|
}, R.exports = r;
|
|
532
532
|
}, { "../utils": 32, "./GenericWorker": 28 }], 28: [function(_, R, y) {
|
|
533
|
-
function l(
|
|
534
|
-
this.name =
|
|
533
|
+
function l(a) {
|
|
534
|
+
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;
|
|
535
535
|
}
|
|
536
|
-
l.prototype = { push: function(
|
|
537
|
-
this.emit("data",
|
|
536
|
+
l.prototype = { push: function(a) {
|
|
537
|
+
this.emit("data", a);
|
|
538
538
|
}, end: function() {
|
|
539
539
|
if (this.isFinished) return !1;
|
|
540
540
|
this.flush();
|
|
541
541
|
try {
|
|
542
542
|
this.emit("end"), this.cleanUp(), this.isFinished = !0;
|
|
543
|
-
} catch (
|
|
544
|
-
this.emit("error",
|
|
543
|
+
} catch (a) {
|
|
544
|
+
this.emit("error", a);
|
|
545
545
|
}
|
|
546
546
|
return !0;
|
|
547
|
-
}, error: function(
|
|
548
|
-
return !this.isFinished && (this.isPaused ? this.generatedError =
|
|
549
|
-
}, on: function(
|
|
550
|
-
return this._listeners[
|
|
547
|
+
}, error: function(a) {
|
|
548
|
+
return !this.isFinished && (this.isPaused ? this.generatedError = a : (this.isFinished = !0, this.emit("error", a), this.previous && this.previous.error(a), this.cleanUp()), !0);
|
|
549
|
+
}, on: function(a, r) {
|
|
550
|
+
return this._listeners[a].push(r), this;
|
|
551
551
|
}, cleanUp: function() {
|
|
552
552
|
this.streamInfo = this.generatedError = this.extraStreamInfo = null, this._listeners = [];
|
|
553
|
-
}, emit: function(
|
|
554
|
-
if (this._listeners[
|
|
555
|
-
}, pipe: function(
|
|
556
|
-
return
|
|
557
|
-
}, registerPrevious: function(
|
|
553
|
+
}, emit: function(a, r) {
|
|
554
|
+
if (this._listeners[a]) for (var h = 0; h < this._listeners[a].length; h++) this._listeners[a][h].call(this, r);
|
|
555
|
+
}, pipe: function(a) {
|
|
556
|
+
return a.registerPrevious(this);
|
|
557
|
+
}, registerPrevious: function(a) {
|
|
558
558
|
if (this.isLocked) throw new Error("The stream '" + this + "' has already been used.");
|
|
559
|
-
this.streamInfo =
|
|
559
|
+
this.streamInfo = a.streamInfo, this.mergeStreamInfo(), this.previous = a;
|
|
560
560
|
var r = this;
|
|
561
|
-
return
|
|
561
|
+
return a.on("data", function(h) {
|
|
562
562
|
r.processChunk(h);
|
|
563
|
-
}),
|
|
563
|
+
}), a.on("end", function() {
|
|
564
564
|
r.end();
|
|
565
|
-
}),
|
|
565
|
+
}), a.on("error", function(h) {
|
|
566
566
|
r.error(h);
|
|
567
567
|
}), this;
|
|
568
568
|
}, pause: function() {
|
|
569
569
|
return !this.isPaused && !this.isFinished && (this.isPaused = !0, this.previous && this.previous.pause(), !0);
|
|
570
570
|
}, resume: function() {
|
|
571
571
|
if (!this.isPaused || this.isFinished) return !1;
|
|
572
|
-
var
|
|
573
|
-
return this.generatedError && (this.error(this.generatedError),
|
|
572
|
+
var a = this.isPaused = !1;
|
|
573
|
+
return this.generatedError && (this.error(this.generatedError), a = !0), this.previous && this.previous.resume(), !a;
|
|
574
574
|
}, flush: function() {
|
|
575
|
-
}, processChunk: function(
|
|
576
|
-
this.push(
|
|
577
|
-
}, withStreamInfo: function(
|
|
578
|
-
return this.extraStreamInfo[
|
|
575
|
+
}, processChunk: function(a) {
|
|
576
|
+
this.push(a);
|
|
577
|
+
}, withStreamInfo: function(a, r) {
|
|
578
|
+
return this.extraStreamInfo[a] = r, this.mergeStreamInfo(), this;
|
|
579
579
|
}, mergeStreamInfo: function() {
|
|
580
|
-
for (var
|
|
580
|
+
for (var a in this.extraStreamInfo) Object.prototype.hasOwnProperty.call(this.extraStreamInfo, a) && (this.streamInfo[a] = this.extraStreamInfo[a]);
|
|
581
581
|
}, lock: function() {
|
|
582
582
|
if (this.isLocked) throw new Error("The stream '" + this + "' has already been used.");
|
|
583
583
|
this.isLocked = !0, this.previous && this.previous.lock();
|
|
584
584
|
}, toString: function() {
|
|
585
|
-
var
|
|
586
|
-
return this.previous ? this.previous + " -> " +
|
|
585
|
+
var a = "Worker " + this.name;
|
|
586
|
+
return this.previous ? this.previous + " -> " + a : a;
|
|
587
587
|
} }, R.exports = l;
|
|
588
588
|
}, {}], 29: [function(_, R, y) {
|
|
589
|
-
var l = _("../utils"),
|
|
589
|
+
var l = _("../utils"), a = _("./ConvertWorker"), r = _("./GenericWorker"), h = _("../base64"), m = _("../support"), v = _("../external"), c = null;
|
|
590
590
|
if (m.nodestream) try {
|
|
591
591
|
c = _("../nodejs/NodejsStreamOutputAdapter");
|
|
592
592
|
} catch {
|
|
593
593
|
}
|
|
594
594
|
function b(d, n) {
|
|
595
|
-
return new v.Promise(function(u,
|
|
595
|
+
return new v.Promise(function(u, s) {
|
|
596
596
|
var p = [], w = d._internalType, S = d._outputType, x = d._mimeType;
|
|
597
597
|
d.on("data", function(F, I) {
|
|
598
598
|
p.push(F), n && n(I);
|
|
599
599
|
}).on("error", function(F) {
|
|
600
|
-
p = [],
|
|
600
|
+
p = [], s(F);
|
|
601
601
|
}).on("end", function() {
|
|
602
602
|
try {
|
|
603
603
|
var F = function(I, j, O) {
|
|
@@ -628,24 +628,24 @@ var Ct = { exports: {} };
|
|
|
628
628
|
}(w, p), x);
|
|
629
629
|
u(F);
|
|
630
630
|
} catch (I) {
|
|
631
|
-
|
|
631
|
+
s(I);
|
|
632
632
|
}
|
|
633
633
|
p = [];
|
|
634
634
|
}).resume();
|
|
635
635
|
});
|
|
636
636
|
}
|
|
637
637
|
function i(d, n, u) {
|
|
638
|
-
var
|
|
638
|
+
var s = n;
|
|
639
639
|
switch (n) {
|
|
640
640
|
case "blob":
|
|
641
641
|
case "arraybuffer":
|
|
642
|
-
|
|
642
|
+
s = "uint8array";
|
|
643
643
|
break;
|
|
644
644
|
case "base64":
|
|
645
|
-
|
|
645
|
+
s = "string";
|
|
646
646
|
}
|
|
647
647
|
try {
|
|
648
|
-
this._internalType =
|
|
648
|
+
this._internalType = s, this._outputType = n, this._mimeType = u, l.checkSupport(s), this._worker = d.pipe(new a(s)), d.lock();
|
|
649
649
|
} catch (p) {
|
|
650
650
|
this._worker = new r("error"), this._worker.error(p);
|
|
651
651
|
}
|
|
@@ -654,8 +654,8 @@ var Ct = { exports: {} };
|
|
|
654
654
|
return b(this, d);
|
|
655
655
|
}, on: function(d, n) {
|
|
656
656
|
var u = this;
|
|
657
|
-
return d === "data" ? this._worker.on(d, function(
|
|
658
|
-
n.call(u,
|
|
657
|
+
return d === "data" ? this._worker.on(d, function(s) {
|
|
658
|
+
n.call(u, s.data, s.meta);
|
|
659
659
|
}) : this._worker.on(d, function() {
|
|
660
660
|
l.delay(n, arguments, u);
|
|
661
661
|
}), this;
|
|
@@ -675,8 +675,8 @@ var Ct = { exports: {} };
|
|
|
675
675
|
y.blob = new Blob([l], { type: "application/zip" }).size === 0;
|
|
676
676
|
} catch {
|
|
677
677
|
try {
|
|
678
|
-
var
|
|
679
|
-
|
|
678
|
+
var a = new (self.BlobBuilder || self.WebKitBlobBuilder || self.MozBlobBuilder || self.MSBlobBuilder)();
|
|
679
|
+
a.append(l), y.blob = a.getBlob("application/zip").size === 0;
|
|
680
680
|
} catch {
|
|
681
681
|
y.blob = !1;
|
|
682
682
|
}
|
|
@@ -688,7 +688,7 @@ var Ct = { exports: {} };
|
|
|
688
688
|
y.nodestream = !1;
|
|
689
689
|
}
|
|
690
690
|
}, { "readable-stream": 16 }], 31: [function(_, R, y) {
|
|
691
|
-
for (var l = _("./utils"),
|
|
691
|
+
for (var l = _("./utils"), a = _("./support"), r = _("./nodejsUtils"), h = _("./stream/GenericWorker"), m = new Array(256), v = 0; v < 256; v++) m[v] = 252 <= v ? 6 : 248 <= v ? 5 : 240 <= v ? 4 : 224 <= v ? 3 : 192 <= v ? 2 : 1;
|
|
692
692
|
m[254] = m[254] = 1;
|
|
693
693
|
function c() {
|
|
694
694
|
h.call(this, "utf-8 decode"), this.leftOver = null;
|
|
@@ -697,27 +697,27 @@ var Ct = { exports: {} };
|
|
|
697
697
|
h.call(this, "utf-8 encode");
|
|
698
698
|
}
|
|
699
699
|
y.utf8encode = function(i) {
|
|
700
|
-
return
|
|
701
|
-
var n, u,
|
|
702
|
-
for (p = 0; p < S; p++) (64512 & (u = d.charCodeAt(p))) == 55296 && p + 1 < S && (64512 & (
|
|
703
|
-
for (n =
|
|
700
|
+
return a.nodebuffer ? r.newBufferFrom(i, "utf-8") : function(d) {
|
|
701
|
+
var n, u, s, p, w, S = d.length, x = 0;
|
|
702
|
+
for (p = 0; p < S; p++) (64512 & (u = d.charCodeAt(p))) == 55296 && p + 1 < S && (64512 & (s = d.charCodeAt(p + 1))) == 56320 && (u = 65536 + (u - 55296 << 10) + (s - 56320), p++), x += u < 128 ? 1 : u < 2048 ? 2 : u < 65536 ? 3 : 4;
|
|
703
|
+
for (n = a.uint8array ? new Uint8Array(x) : new Array(x), p = w = 0; w < x; p++) (64512 & (u = d.charCodeAt(p))) == 55296 && p + 1 < S && (64512 & (s = d.charCodeAt(p + 1))) == 56320 && (u = 65536 + (u - 55296 << 10) + (s - 56320), p++), u < 128 ? n[w++] = u : (u < 2048 ? n[w++] = 192 | u >>> 6 : (u < 65536 ? n[w++] = 224 | u >>> 12 : (n[w++] = 240 | u >>> 18, n[w++] = 128 | u >>> 12 & 63), n[w++] = 128 | u >>> 6 & 63), n[w++] = 128 | 63 & u);
|
|
704
704
|
return n;
|
|
705
705
|
}(i);
|
|
706
706
|
}, y.utf8decode = function(i) {
|
|
707
|
-
return
|
|
708
|
-
var n, u,
|
|
709
|
-
for (n = u = 0; n < w; ) if ((
|
|
710
|
-
else if (4 < (p = m[
|
|
707
|
+
return a.nodebuffer ? l.transformTo("nodebuffer", i).toString("utf-8") : function(d) {
|
|
708
|
+
var n, u, s, p, w = d.length, S = new Array(2 * w);
|
|
709
|
+
for (n = u = 0; n < w; ) if ((s = d[n++]) < 128) S[u++] = s;
|
|
710
|
+
else if (4 < (p = m[s])) S[u++] = 65533, n += p - 1;
|
|
711
711
|
else {
|
|
712
|
-
for (
|
|
713
|
-
1 < p ? S[u++] = 65533 :
|
|
712
|
+
for (s &= p === 2 ? 31 : p === 3 ? 15 : 7; 1 < p && n < w; ) s = s << 6 | 63 & d[n++], p--;
|
|
713
|
+
1 < p ? S[u++] = 65533 : s < 65536 ? S[u++] = s : (s -= 65536, S[u++] = 55296 | s >> 10 & 1023, S[u++] = 56320 | 1023 & s);
|
|
714
714
|
}
|
|
715
715
|
return S.length !== u && (S.subarray ? S = S.subarray(0, u) : S.length = u), l.applyFromCharCode(S);
|
|
716
|
-
}(i = l.transformTo(
|
|
716
|
+
}(i = l.transformTo(a.uint8array ? "uint8array" : "array", i));
|
|
717
717
|
}, l.inherits(c, h), c.prototype.processChunk = function(i) {
|
|
718
|
-
var d = l.transformTo(
|
|
718
|
+
var d = l.transformTo(a.uint8array ? "uint8array" : "array", i.data);
|
|
719
719
|
if (this.leftOver && this.leftOver.length) {
|
|
720
|
-
if (
|
|
720
|
+
if (a.uint8array) {
|
|
721
721
|
var n = d;
|
|
722
722
|
(d = new Uint8Array(n.length + this.leftOver.length)).set(this.leftOver, 0), d.set(n, this.leftOver.length);
|
|
723
723
|
} else d = this.leftOver.concat(d);
|
|
@@ -727,20 +727,20 @@ var Ct = { exports: {} };
|
|
|
727
727
|
var S;
|
|
728
728
|
for ((w = w || p.length) > p.length && (w = p.length), S = w - 1; 0 <= S && (192 & p[S]) == 128; ) S--;
|
|
729
729
|
return S < 0 || S === 0 ? w : S + m[p[S]] > w ? S : w;
|
|
730
|
-
}(d),
|
|
731
|
-
u !== d.length && (
|
|
730
|
+
}(d), s = d;
|
|
731
|
+
u !== d.length && (a.uint8array ? (s = d.subarray(0, u), this.leftOver = d.subarray(u, d.length)) : (s = d.slice(0, u), this.leftOver = d.slice(u, d.length))), this.push({ data: y.utf8decode(s), meta: i.meta });
|
|
732
732
|
}, c.prototype.flush = function() {
|
|
733
733
|
this.leftOver && this.leftOver.length && (this.push({ data: y.utf8decode(this.leftOver), meta: {} }), this.leftOver = null);
|
|
734
734
|
}, y.Utf8DecodeWorker = c, l.inherits(b, h), b.prototype.processChunk = function(i) {
|
|
735
735
|
this.push({ data: y.utf8encode(i.data), meta: i.meta });
|
|
736
736
|
}, y.Utf8EncodeWorker = b;
|
|
737
737
|
}, { "./nodejsUtils": 14, "./stream/GenericWorker": 28, "./support": 30, "./utils": 32 }], 32: [function(_, R, y) {
|
|
738
|
-
var l = _("./support"),
|
|
738
|
+
var l = _("./support"), a = _("./base64"), r = _("./nodejsUtils"), h = _("./external");
|
|
739
739
|
function m(n) {
|
|
740
740
|
return n;
|
|
741
741
|
}
|
|
742
742
|
function v(n, u) {
|
|
743
|
-
for (var
|
|
743
|
+
for (var s = 0; s < n.length; ++s) u[s] = 255 & n.charCodeAt(s);
|
|
744
744
|
return u;
|
|
745
745
|
}
|
|
746
746
|
_("setimmediate"), y.newBlob = function(n, u) {
|
|
@@ -749,20 +749,20 @@ var Ct = { exports: {} };
|
|
|
749
749
|
return new Blob([n], { type: u });
|
|
750
750
|
} catch {
|
|
751
751
|
try {
|
|
752
|
-
var
|
|
753
|
-
return
|
|
752
|
+
var s = new (self.BlobBuilder || self.WebKitBlobBuilder || self.MozBlobBuilder || self.MSBlobBuilder)();
|
|
753
|
+
return s.append(n), s.getBlob(u);
|
|
754
754
|
} catch {
|
|
755
755
|
throw new Error("Bug : can't construct the Blob.");
|
|
756
756
|
}
|
|
757
757
|
}
|
|
758
758
|
};
|
|
759
|
-
var c = { stringifyByChunk: function(n, u,
|
|
759
|
+
var c = { stringifyByChunk: function(n, u, s) {
|
|
760
760
|
var p = [], w = 0, S = n.length;
|
|
761
|
-
if (S <=
|
|
762
|
-
for (; w < S; ) u === "array" || u === "nodebuffer" ? p.push(String.fromCharCode.apply(null, n.slice(w, Math.min(w +
|
|
761
|
+
if (S <= s) return String.fromCharCode.apply(null, n);
|
|
762
|
+
for (; w < S; ) u === "array" || u === "nodebuffer" ? p.push(String.fromCharCode.apply(null, n.slice(w, Math.min(w + s, S)))) : p.push(String.fromCharCode.apply(null, n.subarray(w, Math.min(w + s, S)))), w += s;
|
|
763
763
|
return p.join("");
|
|
764
764
|
}, stringifyByChar: function(n) {
|
|
765
|
-
for (var u = "",
|
|
765
|
+
for (var u = "", s = 0; s < n.length; s++) u += String.fromCharCode(n[s]);
|
|
766
766
|
return u;
|
|
767
767
|
}, applyCanBeUsed: { uint8array: function() {
|
|
768
768
|
try {
|
|
@@ -778,16 +778,16 @@ var Ct = { exports: {} };
|
|
|
778
778
|
}
|
|
779
779
|
}() } };
|
|
780
780
|
function b(n) {
|
|
781
|
-
var u = 65536,
|
|
782
|
-
if (
|
|
783
|
-
return c.stringifyByChunk(n,
|
|
781
|
+
var u = 65536, s = y.getTypeOf(n), p = !0;
|
|
782
|
+
if (s === "uint8array" ? p = c.applyCanBeUsed.uint8array : s === "nodebuffer" && (p = c.applyCanBeUsed.nodebuffer), p) for (; 1 < u; ) try {
|
|
783
|
+
return c.stringifyByChunk(n, s, u);
|
|
784
784
|
} catch {
|
|
785
785
|
u = Math.floor(u / 2);
|
|
786
786
|
}
|
|
787
787
|
return c.stringifyByChar(n);
|
|
788
788
|
}
|
|
789
789
|
function i(n, u) {
|
|
790
|
-
for (var
|
|
790
|
+
for (var s = 0; s < n.length; s++) u[s] = n[s];
|
|
791
791
|
return u;
|
|
792
792
|
}
|
|
793
793
|
y.applyFromCharCode = b;
|
|
@@ -829,35 +829,35 @@ var Ct = { exports: {} };
|
|
|
829
829
|
}, nodebuffer: m }, y.transformTo = function(n, u) {
|
|
830
830
|
if (u = u || "", !n) return u;
|
|
831
831
|
y.checkSupport(n);
|
|
832
|
-
var
|
|
833
|
-
return d[
|
|
832
|
+
var s = y.getTypeOf(u);
|
|
833
|
+
return d[s][n](u);
|
|
834
834
|
}, y.resolve = function(n) {
|
|
835
|
-
for (var u = n.split("/"),
|
|
835
|
+
for (var u = n.split("/"), s = [], p = 0; p < u.length; p++) {
|
|
836
836
|
var w = u[p];
|
|
837
|
-
w === "." || w === "" && p !== 0 && p !== u.length - 1 || (w === ".." ?
|
|
837
|
+
w === "." || w === "" && p !== 0 && p !== u.length - 1 || (w === ".." ? s.pop() : s.push(w));
|
|
838
838
|
}
|
|
839
|
-
return
|
|
839
|
+
return s.join("/");
|
|
840
840
|
}, y.getTypeOf = function(n) {
|
|
841
841
|
return typeof n == "string" ? "string" : Object.prototype.toString.call(n) === "[object Array]" ? "array" : l.nodebuffer && r.isBuffer(n) ? "nodebuffer" : l.uint8array && n instanceof Uint8Array ? "uint8array" : l.arraybuffer && n instanceof ArrayBuffer ? "arraybuffer" : void 0;
|
|
842
842
|
}, y.checkSupport = function(n) {
|
|
843
843
|
if (!l[n.toLowerCase()]) throw new Error(n + " is not supported by this platform");
|
|
844
844
|
}, y.MAX_VALUE_16BITS = 65535, y.MAX_VALUE_32BITS = -1, y.pretty = function(n) {
|
|
845
|
-
var u,
|
|
846
|
-
for (
|
|
845
|
+
var u, s, p = "";
|
|
846
|
+
for (s = 0; s < (n || "").length; s++) p += "\\x" + ((u = n.charCodeAt(s)) < 16 ? "0" : "") + u.toString(16).toUpperCase();
|
|
847
847
|
return p;
|
|
848
|
-
}, y.delay = function(n, u,
|
|
848
|
+
}, y.delay = function(n, u, s) {
|
|
849
849
|
setImmediate(function() {
|
|
850
|
-
n.apply(
|
|
850
|
+
n.apply(s || null, u || []);
|
|
851
851
|
});
|
|
852
852
|
}, y.inherits = function(n, u) {
|
|
853
|
-
function
|
|
853
|
+
function s() {
|
|
854
854
|
}
|
|
855
|
-
|
|
855
|
+
s.prototype = u.prototype, n.prototype = new s();
|
|
856
856
|
}, y.extend = function() {
|
|
857
|
-
var n, u,
|
|
858
|
-
for (n = 0; n < arguments.length; n++) for (u in arguments[n]) Object.prototype.hasOwnProperty.call(arguments[n], u) &&
|
|
859
|
-
return
|
|
860
|
-
}, y.prepareContent = function(n, u,
|
|
857
|
+
var n, u, s = {};
|
|
858
|
+
for (n = 0; n < arguments.length; n++) for (u in arguments[n]) Object.prototype.hasOwnProperty.call(arguments[n], u) && s[u] === void 0 && (s[u] = arguments[n][u]);
|
|
859
|
+
return s;
|
|
860
|
+
}, y.prepareContent = function(n, u, s, p, w) {
|
|
861
861
|
return h.Promise.resolve(u).then(function(S) {
|
|
862
862
|
return l.blob && (S instanceof Blob || ["[object File]", "[object Blob]"].indexOf(Object.prototype.toString.call(S)) !== -1) && typeof FileReader < "u" ? new h.Promise(function(x, F) {
|
|
863
863
|
var I = new FileReader();
|
|
@@ -869,13 +869,13 @@ var Ct = { exports: {} };
|
|
|
869
869
|
}) : S;
|
|
870
870
|
}).then(function(S) {
|
|
871
871
|
var x = y.getTypeOf(S);
|
|
872
|
-
return x ? (x === "arraybuffer" ? S = y.transformTo("uint8array", S) : x === "string" && (w ? S =
|
|
872
|
+
return x ? (x === "arraybuffer" ? S = y.transformTo("uint8array", S) : x === "string" && (w ? S = a.decode(S) : s && p !== !0 && (S = function(F) {
|
|
873
873
|
return v(F, l.uint8array ? new Uint8Array(F.length) : new Array(F.length));
|
|
874
874
|
}(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) ?"));
|
|
875
875
|
});
|
|
876
876
|
};
|
|
877
877
|
}, { "./base64": 1, "./external": 6, "./nodejsUtils": 14, "./support": 30, setimmediate: 54 }], 33: [function(_, R, y) {
|
|
878
|
-
var l = _("./reader/readerFor"),
|
|
878
|
+
var l = _("./reader/readerFor"), a = _("./utils"), r = _("./signature"), h = _("./zipEntry"), m = _("./support");
|
|
879
879
|
function v(c) {
|
|
880
880
|
this.files = [], this.loadOptions = c;
|
|
881
881
|
}
|
|
@@ -883,7 +883,7 @@ var Ct = { exports: {} };
|
|
|
883
883
|
if (!this.reader.readAndCheckSignature(c)) {
|
|
884
884
|
this.reader.index -= 4;
|
|
885
885
|
var b = this.reader.readString(4);
|
|
886
|
-
throw new Error("Corrupted zip or bug: unexpected signature (" +
|
|
886
|
+
throw new Error("Corrupted zip or bug: unexpected signature (" + a.pretty(b) + ", expected " + a.pretty(c) + ")");
|
|
887
887
|
}
|
|
888
888
|
}, isSignature: function(c, b) {
|
|
889
889
|
var i = this.reader.index;
|
|
@@ -892,7 +892,7 @@ var Ct = { exports: {} };
|
|
|
892
892
|
return this.reader.setIndex(i), d;
|
|
893
893
|
}, readBlockEndOfCentral: function() {
|
|
894
894
|
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);
|
|
895
|
-
var c = this.reader.readData(this.zipCommentLength), b = m.uint8array ? "uint8array" : "array", i =
|
|
895
|
+
var c = this.reader.readData(this.zipCommentLength), b = m.uint8array ? "uint8array" : "array", i = a.transformTo(b, c);
|
|
896
896
|
this.zipComment = this.loadOptions.decodeFileName(i);
|
|
897
897
|
}, readBlockZip64EndOfCentral: function() {
|
|
898
898
|
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 = {};
|
|
@@ -911,7 +911,7 @@ var Ct = { exports: {} };
|
|
|
911
911
|
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");
|
|
912
912
|
this.reader.setIndex(c);
|
|
913
913
|
var b = c;
|
|
914
|
-
if (this.checkSignature(r.CENTRAL_DIRECTORY_END), this.readBlockEndOfCentral(), this.diskNumber ===
|
|
914
|
+
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) {
|
|
915
915
|
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");
|
|
916
916
|
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");
|
|
917
917
|
this.reader.setIndex(this.relativeOffsetEndOfZip64CentralDir), this.checkSignature(r.ZIP64_CENTRAL_DIRECTORY_END), this.readBlockZip64EndOfCentral();
|
|
@@ -927,7 +927,7 @@ var Ct = { exports: {} };
|
|
|
927
927
|
this.prepareReader(c), this.readEndOfCentral(), this.readCentralDir(), this.readLocalFiles();
|
|
928
928
|
} }, R.exports = v;
|
|
929
929
|
}, { "./reader/readerFor": 22, "./signature": 23, "./support": 30, "./utils": 32, "./zipEntry": 34 }], 34: [function(_, R, y) {
|
|
930
|
-
var l = _("./reader/readerFor"),
|
|
930
|
+
var l = _("./reader/readerFor"), a = _("./utils"), r = _("./compressedObject"), h = _("./crc32"), m = _("./utf8"), v = _("./compressions"), c = _("./support");
|
|
931
931
|
function b(i, d) {
|
|
932
932
|
this.options = i, this.loadOptions = d;
|
|
933
933
|
}
|
|
@@ -939,9 +939,9 @@ var Ct = { exports: {} };
|
|
|
939
939
|
var d, n;
|
|
940
940
|
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)");
|
|
941
941
|
if ((d = function(u) {
|
|
942
|
-
for (var
|
|
942
|
+
for (var s in v) if (Object.prototype.hasOwnProperty.call(v, s) && v[s].magic === u) return v[s];
|
|
943
943
|
return null;
|
|
944
|
-
}(this.compressionMethod)) === null) throw new Error("Corrupted zip : compression " +
|
|
944
|
+
}(this.compressionMethod)) === null) throw new Error("Corrupted zip : compression " + a.pretty(this.compressionMethod) + " unknown (inner file : " + a.transformTo("string", this.fileName) + ")");
|
|
945
945
|
this.decompressed = new r(this.compressedSize, this.uncompressedSize, this.crc32, d, i.readData(this.compressedSize));
|
|
946
946
|
}, readCentralPart: function(i) {
|
|
947
947
|
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);
|
|
@@ -955,12 +955,12 @@ var Ct = { exports: {} };
|
|
|
955
955
|
}, parseZIP64ExtraField: function() {
|
|
956
956
|
if (this.extraFields[1]) {
|
|
957
957
|
var i = l(this.extraFields[1].value);
|
|
958
|
-
this.uncompressedSize ===
|
|
958
|
+
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));
|
|
959
959
|
}
|
|
960
960
|
}, readExtraFields: function(i) {
|
|
961
|
-
var d, n, u,
|
|
962
|
-
for (this.extraFields || (this.extraFields = {}); i.index + 4 <
|
|
963
|
-
i.setIndex(
|
|
961
|
+
var d, n, u, s = i.index + this.extraFieldsLength;
|
|
962
|
+
for (this.extraFields || (this.extraFields = {}); i.index + 4 < s; ) d = i.readInt(2), n = i.readInt(2), u = i.readData(n), this.extraFields[d] = { id: d, length: n, value: u };
|
|
963
|
+
i.setIndex(s);
|
|
964
964
|
}, handleUTF8: function() {
|
|
965
965
|
var i = c.uint8array ? "uint8array" : "array";
|
|
966
966
|
if (this.useUTF8()) this.fileNameStr = m.utf8decode(this.fileName), this.fileCommentStr = m.utf8decode(this.fileComment);
|
|
@@ -968,14 +968,14 @@ var Ct = { exports: {} };
|
|
|
968
968
|
var d = this.findExtraFieldUnicodePath();
|
|
969
969
|
if (d !== null) this.fileNameStr = d;
|
|
970
970
|
else {
|
|
971
|
-
var n =
|
|
971
|
+
var n = a.transformTo(i, this.fileName);
|
|
972
972
|
this.fileNameStr = this.loadOptions.decodeFileName(n);
|
|
973
973
|
}
|
|
974
974
|
var u = this.findExtraFieldUnicodeComment();
|
|
975
975
|
if (u !== null) this.fileCommentStr = u;
|
|
976
976
|
else {
|
|
977
|
-
var
|
|
978
|
-
this.fileCommentStr = this.loadOptions.decodeFileName(
|
|
977
|
+
var s = a.transformTo(i, this.fileComment);
|
|
978
|
+
this.fileCommentStr = this.loadOptions.decodeFileName(s);
|
|
979
979
|
}
|
|
980
980
|
}
|
|
981
981
|
}, findExtraFieldUnicodePath: function() {
|
|
@@ -997,19 +997,19 @@ var Ct = { exports: {} };
|
|
|
997
997
|
function l(d, n, u) {
|
|
998
998
|
this.name = d, this.dir = u.dir, this.date = u.date, this.comment = u.comment, this.unixPermissions = u.unixPermissions, this.dosPermissions = u.dosPermissions, this._data = n, this._dataBinary = u.binary, this.options = { compression: u.compression, compressionOptions: u.compressionOptions };
|
|
999
999
|
}
|
|
1000
|
-
var
|
|
1000
|
+
var a = _("./stream/StreamHelper"), r = _("./stream/DataWorker"), h = _("./utf8"), m = _("./compressedObject"), v = _("./stream/GenericWorker");
|
|
1001
1001
|
l.prototype = { internalStream: function(d) {
|
|
1002
1002
|
var n = null, u = "string";
|
|
1003
1003
|
try {
|
|
1004
1004
|
if (!d) throw new Error("No output type specified.");
|
|
1005
|
-
var
|
|
1005
|
+
var s = (u = d.toLowerCase()) === "string" || u === "text";
|
|
1006
1006
|
u !== "binarystring" && u !== "text" || (u = "string"), n = this._decompressWorker();
|
|
1007
1007
|
var p = !this._dataBinary;
|
|
1008
|
-
p && !
|
|
1008
|
+
p && !s && (n = n.pipe(new h.Utf8EncodeWorker())), !p && s && (n = n.pipe(new h.Utf8DecodeWorker()));
|
|
1009
1009
|
} catch (w) {
|
|
1010
1010
|
(n = new v("error")).error(w);
|
|
1011
1011
|
}
|
|
1012
|
-
return new
|
|
1012
|
+
return new a(n, u, "");
|
|
1013
1013
|
}, async: function(d, n) {
|
|
1014
1014
|
return this.internalStream(d).accumulate(n);
|
|
1015
1015
|
}, nodeStream: function(d, n) {
|
|
@@ -1027,13 +1027,13 @@ var Ct = { exports: {} };
|
|
|
1027
1027
|
R.exports = l;
|
|
1028
1028
|
}, { "./compressedObject": 2, "./stream/DataWorker": 27, "./stream/GenericWorker": 28, "./stream/StreamHelper": 29, "./utf8": 31 }], 36: [function(_, R, y) {
|
|
1029
1029
|
(function(l) {
|
|
1030
|
-
var
|
|
1030
|
+
var a, r, h = l.MutationObserver || l.WebKitMutationObserver;
|
|
1031
1031
|
if (h) {
|
|
1032
1032
|
var m = 0, v = new h(d), c = l.document.createTextNode("");
|
|
1033
|
-
v.observe(c, { characterData: !0 }),
|
|
1033
|
+
v.observe(c, { characterData: !0 }), a = function() {
|
|
1034
1034
|
c.data = m = ++m % 2;
|
|
1035
1035
|
};
|
|
1036
|
-
} else if (l.setImmediate || l.MessageChannel === void 0)
|
|
1036
|
+
} else if (l.setImmediate || l.MessageChannel === void 0) a = "document" in l && "onreadystatechange" in l.document.createElement("script") ? function() {
|
|
1037
1037
|
var n = l.document.createElement("script");
|
|
1038
1038
|
n.onreadystatechange = function() {
|
|
1039
1039
|
d(), n.onreadystatechange = null, n.parentNode.removeChild(n), n = null;
|
|
@@ -1043,7 +1043,7 @@ var Ct = { exports: {} };
|
|
|
1043
1043
|
};
|
|
1044
1044
|
else {
|
|
1045
1045
|
var b = new l.MessageChannel();
|
|
1046
|
-
b.port1.onmessage = d,
|
|
1046
|
+
b.port1.onmessage = d, a = function() {
|
|
1047
1047
|
b.port2.postMessage(0);
|
|
1048
1048
|
};
|
|
1049
1049
|
}
|
|
@@ -1051,118 +1051,118 @@ var Ct = { exports: {} };
|
|
|
1051
1051
|
function d() {
|
|
1052
1052
|
var n, u;
|
|
1053
1053
|
r = !0;
|
|
1054
|
-
for (var
|
|
1055
|
-
for (u = i, i = [], n = -1; ++n <
|
|
1056
|
-
|
|
1054
|
+
for (var s = i.length; s; ) {
|
|
1055
|
+
for (u = i, i = [], n = -1; ++n < s; ) u[n]();
|
|
1056
|
+
s = i.length;
|
|
1057
1057
|
}
|
|
1058
1058
|
r = !1;
|
|
1059
1059
|
}
|
|
1060
1060
|
R.exports = function(n) {
|
|
1061
|
-
i.push(n) !== 1 || r ||
|
|
1061
|
+
i.push(n) !== 1 || r || a();
|
|
1062
1062
|
};
|
|
1063
1063
|
}).call(this, typeof wt < "u" ? wt : typeof self < "u" ? self : typeof window < "u" ? window : {});
|
|
1064
1064
|
}, {}], 37: [function(_, R, y) {
|
|
1065
1065
|
var l = _("immediate");
|
|
1066
|
-
function
|
|
1066
|
+
function a() {
|
|
1067
1067
|
}
|
|
1068
1068
|
var r = {}, h = ["REJECTED"], m = ["FULFILLED"], v = ["PENDING"];
|
|
1069
|
-
function c(
|
|
1070
|
-
if (typeof
|
|
1071
|
-
this.state = v, this.queue = [], this.outcome = void 0,
|
|
1069
|
+
function c(s) {
|
|
1070
|
+
if (typeof s != "function") throw new TypeError("resolver must be a function");
|
|
1071
|
+
this.state = v, this.queue = [], this.outcome = void 0, s !== a && n(this, s);
|
|
1072
1072
|
}
|
|
1073
|
-
function b(
|
|
1074
|
-
this.promise =
|
|
1073
|
+
function b(s, p, w) {
|
|
1074
|
+
this.promise = s, typeof p == "function" && (this.onFulfilled = p, this.callFulfilled = this.otherCallFulfilled), typeof w == "function" && (this.onRejected = w, this.callRejected = this.otherCallRejected);
|
|
1075
1075
|
}
|
|
1076
|
-
function i(
|
|
1076
|
+
function i(s, p, w) {
|
|
1077
1077
|
l(function() {
|
|
1078
1078
|
var S;
|
|
1079
1079
|
try {
|
|
1080
1080
|
S = p(w);
|
|
1081
1081
|
} catch (x) {
|
|
1082
|
-
return r.reject(
|
|
1082
|
+
return r.reject(s, x);
|
|
1083
1083
|
}
|
|
1084
|
-
S ===
|
|
1084
|
+
S === s ? r.reject(s, new TypeError("Cannot resolve promise with itself")) : r.resolve(s, S);
|
|
1085
1085
|
});
|
|
1086
1086
|
}
|
|
1087
|
-
function d(
|
|
1088
|
-
var p =
|
|
1089
|
-
if (
|
|
1090
|
-
p.apply(
|
|
1087
|
+
function d(s) {
|
|
1088
|
+
var p = s && s.then;
|
|
1089
|
+
if (s && (typeof s == "object" || typeof s == "function") && typeof p == "function") return function() {
|
|
1090
|
+
p.apply(s, arguments);
|
|
1091
1091
|
};
|
|
1092
1092
|
}
|
|
1093
|
-
function n(
|
|
1093
|
+
function n(s, p) {
|
|
1094
1094
|
var w = !1;
|
|
1095
1095
|
function S(I) {
|
|
1096
|
-
w || (w = !0, r.reject(
|
|
1096
|
+
w || (w = !0, r.reject(s, I));
|
|
1097
1097
|
}
|
|
1098
1098
|
function x(I) {
|
|
1099
|
-
w || (w = !0, r.resolve(
|
|
1099
|
+
w || (w = !0, r.resolve(s, I));
|
|
1100
1100
|
}
|
|
1101
1101
|
var F = u(function() {
|
|
1102
1102
|
p(x, S);
|
|
1103
1103
|
});
|
|
1104
1104
|
F.status === "error" && S(F.value);
|
|
1105
1105
|
}
|
|
1106
|
-
function u(
|
|
1106
|
+
function u(s, p) {
|
|
1107
1107
|
var w = {};
|
|
1108
1108
|
try {
|
|
1109
|
-
w.value =
|
|
1109
|
+
w.value = s(p), w.status = "success";
|
|
1110
1110
|
} catch (S) {
|
|
1111
1111
|
w.status = "error", w.value = S;
|
|
1112
1112
|
}
|
|
1113
1113
|
return w;
|
|
1114
1114
|
}
|
|
1115
|
-
(R.exports = c).prototype.finally = function(
|
|
1116
|
-
if (typeof
|
|
1115
|
+
(R.exports = c).prototype.finally = function(s) {
|
|
1116
|
+
if (typeof s != "function") return this;
|
|
1117
1117
|
var p = this.constructor;
|
|
1118
1118
|
return this.then(function(w) {
|
|
1119
|
-
return p.resolve(
|
|
1119
|
+
return p.resolve(s()).then(function() {
|
|
1120
1120
|
return w;
|
|
1121
1121
|
});
|
|
1122
1122
|
}, function(w) {
|
|
1123
|
-
return p.resolve(
|
|
1123
|
+
return p.resolve(s()).then(function() {
|
|
1124
1124
|
throw w;
|
|
1125
1125
|
});
|
|
1126
1126
|
});
|
|
1127
|
-
}, c.prototype.catch = function(
|
|
1128
|
-
return this.then(null,
|
|
1129
|
-
}, c.prototype.then = function(
|
|
1130
|
-
if (typeof
|
|
1131
|
-
var w = new this.constructor(
|
|
1132
|
-
return this.state !== v ? i(w, this.state === m ?
|
|
1133
|
-
}, b.prototype.callFulfilled = function(
|
|
1134
|
-
r.resolve(this.promise,
|
|
1135
|
-
}, b.prototype.otherCallFulfilled = function(
|
|
1136
|
-
i(this.promise, this.onFulfilled,
|
|
1137
|
-
}, b.prototype.callRejected = function(
|
|
1138
|
-
r.reject(this.promise,
|
|
1139
|
-
}, b.prototype.otherCallRejected = function(
|
|
1140
|
-
i(this.promise, this.onRejected,
|
|
1141
|
-
}, r.resolve = function(
|
|
1127
|
+
}, c.prototype.catch = function(s) {
|
|
1128
|
+
return this.then(null, s);
|
|
1129
|
+
}, c.prototype.then = function(s, p) {
|
|
1130
|
+
if (typeof s != "function" && this.state === m || typeof p != "function" && this.state === h) return this;
|
|
1131
|
+
var w = new this.constructor(a);
|
|
1132
|
+
return this.state !== v ? i(w, this.state === m ? s : p, this.outcome) : this.queue.push(new b(w, s, p)), w;
|
|
1133
|
+
}, b.prototype.callFulfilled = function(s) {
|
|
1134
|
+
r.resolve(this.promise, s);
|
|
1135
|
+
}, b.prototype.otherCallFulfilled = function(s) {
|
|
1136
|
+
i(this.promise, this.onFulfilled, s);
|
|
1137
|
+
}, b.prototype.callRejected = function(s) {
|
|
1138
|
+
r.reject(this.promise, s);
|
|
1139
|
+
}, b.prototype.otherCallRejected = function(s) {
|
|
1140
|
+
i(this.promise, this.onRejected, s);
|
|
1141
|
+
}, r.resolve = function(s, p) {
|
|
1142
1142
|
var w = u(d, p);
|
|
1143
|
-
if (w.status === "error") return r.reject(
|
|
1143
|
+
if (w.status === "error") return r.reject(s, w.value);
|
|
1144
1144
|
var S = w.value;
|
|
1145
|
-
if (S) n(
|
|
1145
|
+
if (S) n(s, S);
|
|
1146
1146
|
else {
|
|
1147
|
-
|
|
1148
|
-
for (var x = -1, F =
|
|
1147
|
+
s.state = m, s.outcome = p;
|
|
1148
|
+
for (var x = -1, F = s.queue.length; ++x < F; ) s.queue[x].callFulfilled(p);
|
|
1149
1149
|
}
|
|
1150
|
-
return
|
|
1151
|
-
}, r.reject = function(
|
|
1152
|
-
|
|
1153
|
-
for (var w = -1, S =
|
|
1154
|
-
return
|
|
1155
|
-
}, c.resolve = function(
|
|
1156
|
-
return
|
|
1157
|
-
}, c.reject = function(
|
|
1158
|
-
var p = new this(
|
|
1159
|
-
return r.reject(p,
|
|
1160
|
-
}, c.all = function(
|
|
1150
|
+
return s;
|
|
1151
|
+
}, r.reject = function(s, p) {
|
|
1152
|
+
s.state = h, s.outcome = p;
|
|
1153
|
+
for (var w = -1, S = s.queue.length; ++w < S; ) s.queue[w].callRejected(p);
|
|
1154
|
+
return s;
|
|
1155
|
+
}, c.resolve = function(s) {
|
|
1156
|
+
return s instanceof this ? s : r.resolve(new this(a), s);
|
|
1157
|
+
}, c.reject = function(s) {
|
|
1158
|
+
var p = new this(a);
|
|
1159
|
+
return r.reject(p, s);
|
|
1160
|
+
}, c.all = function(s) {
|
|
1161
1161
|
var p = this;
|
|
1162
|
-
if (Object.prototype.toString.call(
|
|
1163
|
-
var w =
|
|
1162
|
+
if (Object.prototype.toString.call(s) !== "[object Array]") return this.reject(new TypeError("must be an array"));
|
|
1163
|
+
var w = s.length, S = !1;
|
|
1164
1164
|
if (!w) return this.resolve([]);
|
|
1165
|
-
for (var x = new Array(w), F = 0, I = -1, j = new this(
|
|
1165
|
+
for (var x = new Array(w), F = 0, I = -1, j = new this(a); ++I < w; ) O(s[I], I);
|
|
1166
1166
|
return j;
|
|
1167
1167
|
function O(W, V) {
|
|
1168
1168
|
p.resolve(W).then(function(g) {
|
|
@@ -1171,12 +1171,12 @@ var Ct = { exports: {} };
|
|
|
1171
1171
|
S || (S = !0, r.reject(j, g));
|
|
1172
1172
|
});
|
|
1173
1173
|
}
|
|
1174
|
-
}, c.race = function(
|
|
1174
|
+
}, c.race = function(s) {
|
|
1175
1175
|
var p = this;
|
|
1176
|
-
if (Object.prototype.toString.call(
|
|
1177
|
-
var w =
|
|
1176
|
+
if (Object.prototype.toString.call(s) !== "[object Array]") return this.reject(new TypeError("must be an array"));
|
|
1177
|
+
var w = s.length, S = !1;
|
|
1178
1178
|
if (!w) return this.resolve([]);
|
|
1179
|
-
for (var x = -1, F = new this(
|
|
1179
|
+
for (var x = -1, F = new this(a); ++x < w; ) I = s[x], p.resolve(I).then(function(j) {
|
|
1180
1180
|
S || (S = !0, r.resolve(F, j));
|
|
1181
1181
|
}, function(j) {
|
|
1182
1182
|
S || (S = !0, r.reject(F, j));
|
|
@@ -1188,10 +1188,10 @@ var Ct = { exports: {} };
|
|
|
1188
1188
|
var l = {};
|
|
1189
1189
|
(0, _("./lib/utils/common").assign)(l, _("./lib/deflate"), _("./lib/inflate"), _("./lib/zlib/constants")), R.exports = l;
|
|
1190
1190
|
}, { "./lib/deflate": 39, "./lib/inflate": 40, "./lib/utils/common": 41, "./lib/zlib/constants": 44 }], 39: [function(_, R, y) {
|
|
1191
|
-
var l = _("./zlib/deflate"),
|
|
1192
|
-
function n(
|
|
1193
|
-
if (!(this instanceof n)) return new n(
|
|
1194
|
-
this.options =
|
|
1191
|
+
var l = _("./zlib/deflate"), a = _("./utils/common"), r = _("./utils/strings"), h = _("./zlib/messages"), m = _("./zlib/zstream"), v = Object.prototype.toString, c = 0, b = -1, i = 0, d = 8;
|
|
1192
|
+
function n(s) {
|
|
1193
|
+
if (!(this instanceof n)) return new n(s);
|
|
1194
|
+
this.options = a.assign({ level: b, method: d, chunkSize: 16384, windowBits: 15, memLevel: 8, strategy: i, to: "" }, s || {});
|
|
1195
1195
|
var p = this.options;
|
|
1196
1196
|
p.raw && 0 < p.windowBits ? p.windowBits = -p.windowBits : p.gzip && 0 < p.windowBits && p.windowBits < 16 && (p.windowBits += 16), this.err = 0, this.msg = "", this.ended = !1, this.chunks = [], this.strm = new m(), this.strm.avail_out = 0;
|
|
1197
1197
|
var w = l.deflateInit2(this.strm, p.level, p.method, p.windowBits, p.memLevel, p.strategy);
|
|
@@ -1202,58 +1202,58 @@ var Ct = { exports: {} };
|
|
|
1202
1202
|
this._dict_set = !0;
|
|
1203
1203
|
}
|
|
1204
1204
|
}
|
|
1205
|
-
function u(
|
|
1205
|
+
function u(s, p) {
|
|
1206
1206
|
var w = new n(p);
|
|
1207
|
-
if (w.push(
|
|
1207
|
+
if (w.push(s, !0), w.err) throw w.msg || h[w.err];
|
|
1208
1208
|
return w.result;
|
|
1209
1209
|
}
|
|
1210
|
-
n.prototype.push = function(
|
|
1210
|
+
n.prototype.push = function(s, p) {
|
|
1211
1211
|
var w, S, x = this.strm, F = this.options.chunkSize;
|
|
1212
1212
|
if (this.ended) return !1;
|
|
1213
|
-
S = p === ~~p ? p : p === !0 ? 4 : 0, typeof
|
|
1213
|
+
S = p === ~~p ? p : p === !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;
|
|
1214
1214
|
do {
|
|
1215
|
-
if (x.avail_out === 0 && (x.output = new
|
|
1216
|
-
x.avail_out !== 0 && (x.avail_in !== 0 || S !== 4 && S !== 2) || (this.options.to === "string" ? this.onData(r.buf2binstring(
|
|
1215
|
+
if (x.avail_out === 0 && (x.output = new a.Buf8(F), x.next_out = 0, x.avail_out = F), (w = l.deflate(x, S)) !== 1 && w !== c) return this.onEnd(w), !(this.ended = !0);
|
|
1216
|
+
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)));
|
|
1217
1217
|
} while ((0 < x.avail_in || x.avail_out === 0) && w !== 1);
|
|
1218
1218
|
return S === 4 ? (w = l.deflateEnd(this.strm), this.onEnd(w), this.ended = !0, w === c) : S !== 2 || (this.onEnd(c), !(x.avail_out = 0));
|
|
1219
|
-
}, n.prototype.onData = function(
|
|
1220
|
-
this.chunks.push(
|
|
1221
|
-
}, n.prototype.onEnd = function(
|
|
1222
|
-
|
|
1223
|
-
}, y.Deflate = n, y.deflate = u, y.deflateRaw = function(
|
|
1224
|
-
return (p = p || {}).raw = !0, u(
|
|
1225
|
-
}, y.gzip = function(
|
|
1226
|
-
return (p = p || {}).gzip = !0, u(
|
|
1219
|
+
}, n.prototype.onData = function(s) {
|
|
1220
|
+
this.chunks.push(s);
|
|
1221
|
+
}, n.prototype.onEnd = function(s) {
|
|
1222
|
+
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;
|
|
1223
|
+
}, y.Deflate = n, y.deflate = u, y.deflateRaw = function(s, p) {
|
|
1224
|
+
return (p = p || {}).raw = !0, u(s, p);
|
|
1225
|
+
}, y.gzip = function(s, p) {
|
|
1226
|
+
return (p = p || {}).gzip = !0, u(s, p);
|
|
1227
1227
|
};
|
|
1228
1228
|
}, { "./utils/common": 41, "./utils/strings": 42, "./zlib/deflate": 46, "./zlib/messages": 51, "./zlib/zstream": 53 }], 40: [function(_, R, y) {
|
|
1229
|
-
var l = _("./zlib/inflate"),
|
|
1229
|
+
var l = _("./zlib/inflate"), a = _("./utils/common"), r = _("./utils/strings"), h = _("./zlib/constants"), m = _("./zlib/messages"), v = _("./zlib/zstream"), c = _("./zlib/gzheader"), b = Object.prototype.toString;
|
|
1230
1230
|
function i(n) {
|
|
1231
1231
|
if (!(this instanceof i)) return new i(n);
|
|
1232
|
-
this.options =
|
|
1232
|
+
this.options = a.assign({ chunkSize: 16384, windowBits: 0, to: "" }, n || {});
|
|
1233
1233
|
var u = this.options;
|
|
1234
1234
|
u.raw && 0 <= u.windowBits && u.windowBits < 16 && (u.windowBits = -u.windowBits, u.windowBits === 0 && (u.windowBits = -15)), !(0 <= u.windowBits && u.windowBits < 16) || n && n.windowBits || (u.windowBits += 32), 15 < u.windowBits && u.windowBits < 48 && !(15 & u.windowBits) && (u.windowBits |= 15), this.err = 0, this.msg = "", this.ended = !1, this.chunks = [], this.strm = new v(), this.strm.avail_out = 0;
|
|
1235
|
-
var
|
|
1236
|
-
if (
|
|
1235
|
+
var s = l.inflateInit2(this.strm, u.windowBits);
|
|
1236
|
+
if (s !== h.Z_OK) throw new Error(m[s]);
|
|
1237
1237
|
this.header = new c(), l.inflateGetHeader(this.strm, this.header);
|
|
1238
1238
|
}
|
|
1239
1239
|
function d(n, u) {
|
|
1240
|
-
var
|
|
1241
|
-
if (
|
|
1242
|
-
return
|
|
1240
|
+
var s = new i(u);
|
|
1241
|
+
if (s.push(n, !0), s.err) throw s.msg || m[s.err];
|
|
1242
|
+
return s.result;
|
|
1243
1243
|
}
|
|
1244
1244
|
i.prototype.push = function(n, u) {
|
|
1245
|
-
var
|
|
1245
|
+
var s, p, w, S, x, F, I = this.strm, j = this.options.chunkSize, O = this.options.dictionary, W = !1;
|
|
1246
1246
|
if (this.ended) return !1;
|
|
1247
1247
|
p = u === ~~u ? u : u === !0 ? h.Z_FINISH : h.Z_NO_FLUSH, typeof n == "string" ? I.input = r.binstring2buf(n) : b.call(n) === "[object ArrayBuffer]" ? I.input = new Uint8Array(n) : I.input = n, I.next_in = 0, I.avail_in = I.input.length;
|
|
1248
1248
|
do {
|
|
1249
|
-
if (I.avail_out === 0 && (I.output = new
|
|
1250
|
-
I.next_out && (I.avail_out !== 0 &&
|
|
1251
|
-
} while ((0 < I.avail_in || I.avail_out === 0) &&
|
|
1252
|
-
return
|
|
1249
|
+
if (I.avail_out === 0 && (I.output = new a.Buf8(j), I.next_out = 0, I.avail_out = j), (s = l.inflate(I, 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 = l.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);
|
|
1250
|
+
I.next_out && (I.avail_out !== 0 && s !== h.Z_STREAM_END && (I.avail_in !== 0 || p !== h.Z_FINISH && p !== h.Z_SYNC_FLUSH) || (this.options.to === "string" ? (w = r.utf8border(I.output, I.next_out), S = I.next_out - w, x = r.buf2string(I.output, w), I.next_out = S, I.avail_out = j - S, S && a.arraySet(I.output, I.output, w, S, 0), this.onData(x)) : this.onData(a.shrinkBuf(I.output, I.next_out)))), I.avail_in === 0 && I.avail_out === 0 && (W = !0);
|
|
1251
|
+
} while ((0 < I.avail_in || I.avail_out === 0) && s !== h.Z_STREAM_END);
|
|
1252
|
+
return s === h.Z_STREAM_END && (p = h.Z_FINISH), p === h.Z_FINISH ? (s = l.inflateEnd(this.strm), this.onEnd(s), this.ended = !0, s === h.Z_OK) : p !== h.Z_SYNC_FLUSH || (this.onEnd(h.Z_OK), !(I.avail_out = 0));
|
|
1253
1253
|
}, i.prototype.onData = function(n) {
|
|
1254
1254
|
this.chunks.push(n);
|
|
1255
1255
|
}, i.prototype.onEnd = function(n) {
|
|
1256
|
-
n === h.Z_OK && (this.options.to === "string" ? this.result = this.chunks.join("") : this.result =
|
|
1256
|
+
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;
|
|
1257
1257
|
}, y.Inflate = i, y.inflate = d, y.inflateRaw = function(n, u) {
|
|
1258
1258
|
return (u = u || {}).raw = !0, d(n, u);
|
|
1259
1259
|
}, y.ungzip = d;
|
|
@@ -1271,7 +1271,7 @@ var Ct = { exports: {} };
|
|
|
1271
1271
|
}, y.shrinkBuf = function(h, m) {
|
|
1272
1272
|
return h.length === m ? h : h.subarray ? h.subarray(0, m) : (h.length = m, h);
|
|
1273
1273
|
};
|
|
1274
|
-
var
|
|
1274
|
+
var a = { arraySet: function(h, m, v, c, b) {
|
|
1275
1275
|
if (m.subarray && h.subarray) h.set(m.subarray(v, v + c), b);
|
|
1276
1276
|
else for (var i = 0; i < c; i++) h[b + i] = m[v + i];
|
|
1277
1277
|
}, flattenChunks: function(h) {
|
|
@@ -1285,14 +1285,14 @@ var Ct = { exports: {} };
|
|
|
1285
1285
|
return [].concat.apply([], h);
|
|
1286
1286
|
} };
|
|
1287
1287
|
y.setTyped = function(h) {
|
|
1288
|
-
h ? (y.Buf8 = Uint8Array, y.Buf16 = Uint16Array, y.Buf32 = Int32Array, y.assign(y,
|
|
1288
|
+
h ? (y.Buf8 = Uint8Array, y.Buf16 = Uint16Array, y.Buf32 = Int32Array, y.assign(y, a)) : (y.Buf8 = Array, y.Buf16 = Array, y.Buf32 = Array, y.assign(y, r));
|
|
1289
1289
|
}, y.setTyped(l);
|
|
1290
1290
|
}, {}], 42: [function(_, R, y) {
|
|
1291
|
-
var l = _("./common"),
|
|
1291
|
+
var l = _("./common"), a = !0, r = !0;
|
|
1292
1292
|
try {
|
|
1293
1293
|
String.fromCharCode.apply(null, [0]);
|
|
1294
1294
|
} catch {
|
|
1295
|
-
|
|
1295
|
+
a = !1;
|
|
1296
1296
|
}
|
|
1297
1297
|
try {
|
|
1298
1298
|
String.fromCharCode.apply(null, new Uint8Array(1));
|
|
@@ -1301,14 +1301,14 @@ var Ct = { exports: {} };
|
|
|
1301
1301
|
}
|
|
1302
1302
|
for (var h = new l.Buf8(256), m = 0; m < 256; m++) h[m] = 252 <= m ? 6 : 248 <= m ? 5 : 240 <= m ? 4 : 224 <= m ? 3 : 192 <= m ? 2 : 1;
|
|
1303
1303
|
function v(c, b) {
|
|
1304
|
-
if (b < 65537 && (c.subarray && r || !c.subarray &&
|
|
1304
|
+
if (b < 65537 && (c.subarray && r || !c.subarray && a)) return String.fromCharCode.apply(null, l.shrinkBuf(c, b));
|
|
1305
1305
|
for (var i = "", d = 0; d < b; d++) i += String.fromCharCode(c[d]);
|
|
1306
1306
|
return i;
|
|
1307
1307
|
}
|
|
1308
1308
|
h[254] = h[254] = 1, y.string2buf = function(c) {
|
|
1309
|
-
var b, i, d, n, u,
|
|
1310
|
-
for (n = 0; n <
|
|
1311
|
-
for (b = new l.Buf8(p), n = u = 0; u < p; n++) (64512 & (i = c.charCodeAt(n))) == 55296 && n + 1 <
|
|
1309
|
+
var b, i, d, n, u, s = c.length, p = 0;
|
|
1310
|
+
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++), p += i < 128 ? 1 : i < 2048 ? 2 : i < 65536 ? 3 : 4;
|
|
1311
|
+
for (b = new l.Buf8(p), n = u = 0; u < p; 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[u++] = i : (i < 2048 ? b[u++] = 192 | i >>> 6 : (i < 65536 ? b[u++] = 224 | i >>> 12 : (b[u++] = 240 | i >>> 18, b[u++] = 128 | i >>> 12 & 63), b[u++] = 128 | i >>> 6 & 63), b[u++] = 128 | 63 & i);
|
|
1312
1312
|
return b;
|
|
1313
1313
|
}, y.buf2binstring = function(c) {
|
|
1314
1314
|
return v(c, c.length);
|
|
@@ -1316,11 +1316,11 @@ var Ct = { exports: {} };
|
|
|
1316
1316
|
for (var b = new l.Buf8(c.length), i = 0, d = b.length; i < d; i++) b[i] = c.charCodeAt(i);
|
|
1317
1317
|
return b;
|
|
1318
1318
|
}, y.buf2string = function(c, b) {
|
|
1319
|
-
var i, d, n, u,
|
|
1320
|
-
for (i = d = 0; i <
|
|
1319
|
+
var i, d, n, u, s = b || c.length, p = new Array(2 * s);
|
|
1320
|
+
for (i = d = 0; i < s; ) if ((n = c[i++]) < 128) p[d++] = n;
|
|
1321
1321
|
else if (4 < (u = h[n])) p[d++] = 65533, i += u - 1;
|
|
1322
1322
|
else {
|
|
1323
|
-
for (n &= u === 2 ? 31 : u === 3 ? 15 : 7; 1 < u && i <
|
|
1323
|
+
for (n &= u === 2 ? 31 : u === 3 ? 15 : 7; 1 < u && i < s; ) n = n << 6 | 63 & c[i++], u--;
|
|
1324
1324
|
1 < u ? p[d++] = 65533 : n < 65536 ? p[d++] = n : (n -= 65536, p[d++] = 55296 | n >> 10 & 1023, p[d++] = 56320 | 1023 & n);
|
|
1325
1325
|
}
|
|
1326
1326
|
return v(p, d);
|
|
@@ -1330,9 +1330,9 @@ var Ct = { exports: {} };
|
|
|
1330
1330
|
return i < 0 || i === 0 ? b : i + h[c[i]] > b ? i : b;
|
|
1331
1331
|
};
|
|
1332
1332
|
}, { "./common": 41 }], 43: [function(_, R, y) {
|
|
1333
|
-
R.exports = function(l,
|
|
1333
|
+
R.exports = function(l, a, r, h) {
|
|
1334
1334
|
for (var m = 65535 & l | 0, v = l >>> 16 & 65535 | 0, c = 0; r !== 0; ) {
|
|
1335
|
-
for (r -= c = 2e3 < r ? 2e3 : r; v = v + (m = m +
|
|
1335
|
+
for (r -= c = 2e3 < r ? 2e3 : r; v = v + (m = m + a[h++] | 0) | 0, --c; ) ;
|
|
1336
1336
|
m %= 65521, v %= 65521;
|
|
1337
1337
|
}
|
|
1338
1338
|
return m | v << 16 | 0;
|
|
@@ -1341,21 +1341,21 @@ var Ct = { exports: {} };
|
|
|
1341
1341
|
R.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 };
|
|
1342
1342
|
}, {}], 45: [function(_, R, y) {
|
|
1343
1343
|
var l = function() {
|
|
1344
|
-
for (var
|
|
1345
|
-
|
|
1346
|
-
for (var m = 0; m < 8; m++)
|
|
1347
|
-
r[h] =
|
|
1344
|
+
for (var a, r = [], h = 0; h < 256; h++) {
|
|
1345
|
+
a = h;
|
|
1346
|
+
for (var m = 0; m < 8; m++) a = 1 & a ? 3988292384 ^ a >>> 1 : a >>> 1;
|
|
1347
|
+
r[h] = a;
|
|
1348
1348
|
}
|
|
1349
1349
|
return r;
|
|
1350
1350
|
}();
|
|
1351
|
-
R.exports = function(
|
|
1351
|
+
R.exports = function(a, r, h, m) {
|
|
1352
1352
|
var v = l, c = m + h;
|
|
1353
|
-
|
|
1354
|
-
for (var b = m; b < c; b++)
|
|
1355
|
-
return -1 ^
|
|
1353
|
+
a ^= -1;
|
|
1354
|
+
for (var b = m; b < c; b++) a = a >>> 8 ^ v[255 & (a ^ r[b])];
|
|
1355
|
+
return -1 ^ a;
|
|
1356
1356
|
};
|
|
1357
1357
|
}, {}], 46: [function(_, R, y) {
|
|
1358
|
-
var l,
|
|
1358
|
+
var l, a = _("../utils/common"), r = _("./trees"), h = _("./adler32"), m = _("./crc32"), v = _("./messages"), c = 0, b = 4, i = 0, d = -2, n = -1, u = 4, s = 2, p = 8, w = 9, S = 286, x = 30, F = 19, I = 2 * S + 1, j = 15, O = 3, W = 258, V = W + O + 1, g = 42, T = 113, e = 1, D = 2, J = 3, U = 4;
|
|
1359
1359
|
function $(t, B) {
|
|
1360
1360
|
return t.msg = v[B], B;
|
|
1361
1361
|
}
|
|
@@ -1367,7 +1367,7 @@ var Ct = { exports: {} };
|
|
|
1367
1367
|
}
|
|
1368
1368
|
function C(t) {
|
|
1369
1369
|
var B = t.state, A = B.pending;
|
|
1370
|
-
A > t.avail_out && (A = t.avail_out), A !== 0 && (
|
|
1370
|
+
A > t.avail_out && (A = t.avail_out), A !== 0 && (a.arraySet(t.output, B.pending_buf, B.pending_out, A, t.next_out), t.next_out += A, B.pending_out += A, t.total_out += A, t.avail_out -= A, B.pending -= A, B.pending === 0 && (B.pending_out = 0));
|
|
1371
1371
|
}
|
|
1372
1372
|
function E(t, B) {
|
|
1373
1373
|
r._tr_flush_block(t, 0 <= t.block_start ? t.block_start : -1, t.strstart - t.block_start, B), t.block_start = t.strstart, C(t.strm);
|
|
@@ -1399,12 +1399,12 @@ var Ct = { exports: {} };
|
|
|
1399
1399
|
var B, A, f, o, k, N, P, z, Z, K, M = t.w_size;
|
|
1400
1400
|
do {
|
|
1401
1401
|
if (o = t.window_size - t.lookahead - t.strstart, t.strstart >= M + (M - V)) {
|
|
1402
|
-
for (
|
|
1402
|
+
for (a.arraySet(t.window, t.window, M, M, 0), t.match_start -= M, t.strstart -= M, t.block_start -= M, B = A = t.hash_size; f = t.head[--B], t.head[B] = M <= f ? f - M : 0, --A; ) ;
|
|
1403
1403
|
for (B = A = M; f = t.prev[--B], t.prev[B] = M <= f ? f - M : 0, --A; ) ;
|
|
1404
1404
|
o += M;
|
|
1405
1405
|
}
|
|
1406
1406
|
if (t.strm.avail_in === 0) break;
|
|
1407
|
-
if (N = t.strm, P = t.window, z = t.strstart + t.lookahead, Z = o, K = void 0, K = N.avail_in, Z < K && (K = Z), A = K === 0 ? 0 : (N.avail_in -= K,
|
|
1407
|
+
if (N = t.strm, P = t.window, z = t.strstart + t.lookahead, Z = o, K = void 0, K = N.avail_in, Z < K && (K = Z), A = K === 0 ? 0 : (N.avail_in -= K, a.arraySet(P, N.input, N.next_in, K, z), N.state.wrap === 1 ? N.adler = h(N.adler, P, K, z) : N.state.wrap === 2 && (N.adler = m(N.adler, P, K, z)), N.next_in += K, N.total_in += K, K), t.lookahead += A, 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)); ) ;
|
|
1408
1408
|
} while (t.lookahead < V && t.strm.avail_in !== 0);
|
|
1409
1409
|
}
|
|
1410
1410
|
function lt(t, B) {
|
|
@@ -1441,14 +1441,14 @@ var Ct = { exports: {} };
|
|
|
1441
1441
|
this.good_length = t, this.max_lazy = B, this.nice_length = A, this.max_chain = f, this.func = o;
|
|
1442
1442
|
}
|
|
1443
1443
|
function ot() {
|
|
1444
|
-
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 = p, 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
|
|
1444
|
+
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 = p, 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 * I), this.dyn_dtree = new a.Buf16(2 * (2 * x + 1)), this.bl_tree = new a.Buf16(2 * (2 * F + 1)), q(this.dyn_ltree), q(this.dyn_dtree), q(this.bl_tree), this.l_desc = null, this.d_desc = null, this.bl_desc = null, this.bl_count = new a.Buf16(j + 1), this.heap = new a.Buf16(2 * S + 1), q(this.heap), this.heap_len = 0, this.heap_max = 0, this.depth = new a.Buf16(2 * S + 1), q(this.depth), this.l_buf = 0, this.lit_bufsize = 0, this.last_lit = 0, this.d_buf = 0, this.opt_len = 0, this.static_len = 0, this.matches = 0, this.insert = 0, this.bi_buf = 0, this.bi_valid = 0;
|
|
1445
1445
|
}
|
|
1446
|
-
function
|
|
1446
|
+
function at(t) {
|
|
1447
1447
|
var B;
|
|
1448
|
-
return t && t.state ? (t.total_in = t.total_out = 0, t.data_type =
|
|
1448
|
+
return t && t.state ? (t.total_in = t.total_out = 0, t.data_type = s, (B = t.state).pending = 0, B.pending_out = 0, B.wrap < 0 && (B.wrap = -B.wrap), B.status = B.wrap ? g : T, t.adler = B.wrap === 2 ? 0 : 1, B.last_flush = c, r._tr_init(B), i) : $(t, d);
|
|
1449
1449
|
}
|
|
1450
1450
|
function ct(t) {
|
|
1451
|
-
var B =
|
|
1451
|
+
var B = at(t);
|
|
1452
1452
|
return B === i && function(A) {
|
|
1453
1453
|
A.window_size = 2 * A.w_size, q(A.head), A.max_lazy_match = l[A.level].max_lazy, A.good_match = l[A.level].good_length, A.nice_match = l[A.level].nice_length, A.max_chain_length = l[A.level].max_chain, A.strstart = 0, A.block_start = 0, A.lookahead = 0, A.insert = 0, A.match_length = A.prev_length = O - 1, A.match_available = 0, A.ins_h = 0;
|
|
1454
1454
|
}(t.state), B;
|
|
@@ -1459,7 +1459,7 @@ var Ct = { exports: {} };
|
|
|
1459
1459
|
if (B === n && (B = 6), f < 0 ? (N = 0, f = -f) : 15 < f && (N = 2, f -= 16), o < 1 || w < o || A !== p || f < 8 || 15 < f || B < 0 || 9 < B || k < 0 || u < k) return $(t, d);
|
|
1460
1460
|
f === 8 && (f = 9);
|
|
1461
1461
|
var P = new ot();
|
|
1462
|
-
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 = o + 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
|
|
1462
|
+
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 = o + 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 << o + 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 = B, P.strategy = k, P.method = A, ct(t);
|
|
1463
1463
|
}
|
|
1464
1464
|
l = [new et(0, 0, 0, 0, function(t, B) {
|
|
1465
1465
|
var A = 65535;
|
|
@@ -1475,7 +1475,7 @@ var Ct = { exports: {} };
|
|
|
1475
1475
|
return t.insert = 0, B === b ? (E(t, !0), t.strm.avail_out === 0 ? J : U) : (t.strstart > t.block_start && (E(t, !1), t.strm.avail_out), e);
|
|
1476
1476
|
}), new et(4, 4, 8, 4, lt), new et(4, 5, 16, 8, lt), new et(4, 6, 32, 32, lt), new et(4, 4, 16, 16, Q), new et(8, 16, 32, 32, Q), new et(8, 16, 128, 128, Q), new et(8, 32, 128, 256, Q), new et(32, 128, 258, 1024, Q), new et(32, 258, 258, 4096, Q)], y.deflateInit = function(t, B) {
|
|
1477
1477
|
return ft(t, B, p, 15, 8, 0);
|
|
1478
|
-
}, y.deflateInit2 = ft, y.deflateReset = ct, y.deflateResetKeep =
|
|
1478
|
+
}, y.deflateInit2 = ft, y.deflateReset = ct, y.deflateResetKeep = at, y.deflateSetHeader = function(t, B) {
|
|
1479
1479
|
return t && t.state ? t.state.wrap !== 2 ? d : (t.state.gzhead = B, i) : d;
|
|
1480
1480
|
}, y.deflate = function(t, B) {
|
|
1481
1481
|
var A, f, o, k;
|
|
@@ -1553,7 +1553,7 @@ var Ct = { exports: {} };
|
|
|
1553
1553
|
}, y.deflateSetDictionary = function(t, B) {
|
|
1554
1554
|
var A, f, o, k, N, P, z, Z, K = B.length;
|
|
1555
1555
|
if (!t || !t.state || (k = (A = t.state).wrap) === 2 || k === 1 && A.status !== g || A.lookahead) return d;
|
|
1556
|
-
for (k === 1 && (t.adler = h(t.adler, B, K, 0)), A.wrap = 0, K >= A.w_size && (k === 0 && (q(A.head), A.strstart = 0, A.block_start = 0, A.insert = 0), Z = new
|
|
1556
|
+
for (k === 1 && (t.adler = h(t.adler, B, K, 0)), A.wrap = 0, K >= A.w_size && (k === 0 && (q(A.head), A.strstart = 0, A.block_start = 0, A.insert = 0), Z = new a.Buf8(A.w_size), a.arraySet(Z, B, K - A.w_size, A.w_size, 0), B = Z, K = A.w_size), N = t.avail_in, P = t.next_in, z = t.input, t.avail_in = K, t.next_in = 0, t.input = B, it(A); A.lookahead >= O; ) {
|
|
1557
1557
|
for (f = A.strstart, o = A.lookahead - (O - 1); A.ins_h = (A.ins_h << A.hash_shift ^ A.window[f + O - 1]) & A.hash_mask, A.prev[f & A.w_mask] = A.head[A.ins_h], A.head[A.ins_h] = f, f++, --o; ) ;
|
|
1558
1558
|
A.strstart = f, A.lookahead = O - 1, it(A);
|
|
1559
1559
|
}
|
|
@@ -1564,9 +1564,9 @@ var Ct = { exports: {} };
|
|
|
1564
1564
|
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;
|
|
1565
1565
|
};
|
|
1566
1566
|
}, {}], 48: [function(_, R, y) {
|
|
1567
|
-
R.exports = function(l,
|
|
1568
|
-
var r, h, m, v, c, b, i, d, n, u,
|
|
1569
|
-
r = l.state, h = l.next_in, e = l.input, m = h + (l.avail_in - 5), v = l.next_out, D = l.output, c = v - (
|
|
1567
|
+
R.exports = function(l, a) {
|
|
1568
|
+
var r, h, m, v, c, b, i, d, n, u, s, p, w, S, x, F, I, j, O, W, V, g, T, e, D;
|
|
1569
|
+
r = l.state, h = l.next_in, e = l.input, m = h + (l.avail_in - 5), v = l.next_out, D = l.output, c = v - (a - l.avail_out), b = v + (l.avail_out - 257), i = r.dmax, d = r.wsize, n = r.whave, u = r.wnext, s = r.window, p = r.hold, w = r.bits, S = r.lencode, x = r.distcode, F = (1 << r.lenbits) - 1, I = (1 << r.distbits) - 1;
|
|
1570
1570
|
t: do {
|
|
1571
1571
|
w < 15 && (p += e[h++] << w, w += 8, p += e[h++] << w, w += 8), j = S[p & F];
|
|
1572
1572
|
e: for (; ; ) {
|
|
@@ -1603,21 +1603,21 @@ var Ct = { exports: {} };
|
|
|
1603
1603
|
l.msg = "invalid distance too far back", r.mode = 30;
|
|
1604
1604
|
break t;
|
|
1605
1605
|
}
|
|
1606
|
-
if (T =
|
|
1606
|
+
if (T = s, (g = 0) === u) {
|
|
1607
1607
|
if (g += d - O, O < W) {
|
|
1608
|
-
for (W -= O; D[v++] =
|
|
1608
|
+
for (W -= O; D[v++] = s[g++], --O; ) ;
|
|
1609
1609
|
g = v - V, T = D;
|
|
1610
1610
|
}
|
|
1611
1611
|
} else if (u < O) {
|
|
1612
1612
|
if (g += d + u - O, (O -= u) < W) {
|
|
1613
|
-
for (W -= O; D[v++] =
|
|
1613
|
+
for (W -= O; D[v++] = s[g++], --O; ) ;
|
|
1614
1614
|
if (g = 0, u < W) {
|
|
1615
|
-
for (W -= O = u; D[v++] =
|
|
1615
|
+
for (W -= O = u; D[v++] = s[g++], --O; ) ;
|
|
1616
1616
|
g = v - V, T = D;
|
|
1617
1617
|
}
|
|
1618
1618
|
}
|
|
1619
1619
|
} else if (g += u - O, O < W) {
|
|
1620
|
-
for (W -= O; D[v++] =
|
|
1620
|
+
for (W -= O; D[v++] = s[g++], --O; ) ;
|
|
1621
1621
|
g = v - V, T = D;
|
|
1622
1622
|
}
|
|
1623
1623
|
for (; 2 < W; ) D[v++] = T[g++], D[v++] = T[g++], D[v++] = T[g++], W -= 3;
|
|
@@ -1635,8 +1635,8 @@ var Ct = { exports: {} };
|
|
|
1635
1635
|
h -= W = w >> 3, p &= (1 << (w -= W << 3)) - 1, l.next_in = h, l.next_out = v, l.avail_in = h < m ? m - h + 5 : 5 - (h - m), l.avail_out = v < b ? b - v + 257 : 257 - (v - b), r.hold = p, r.bits = w;
|
|
1636
1636
|
};
|
|
1637
1637
|
}, {}], 49: [function(_, R, y) {
|
|
1638
|
-
var l = _("../utils/common"),
|
|
1639
|
-
function
|
|
1638
|
+
var l = _("../utils/common"), a = _("./adler32"), r = _("./crc32"), h = _("./inffast"), m = _("./inftrees"), v = 1, c = 2, b = 0, i = -2, d = 1, n = 852, u = 592;
|
|
1639
|
+
function s(g) {
|
|
1640
1640
|
return (g >>> 24 & 255) + (g >>> 8 & 65280) + ((65280 & g) << 8) + ((255 & g) << 24);
|
|
1641
1641
|
}
|
|
1642
1642
|
function p() {
|
|
@@ -1678,7 +1678,7 @@ var Ct = { exports: {} };
|
|
|
1678
1678
|
y.inflateReset = S, y.inflateReset2 = x, y.inflateResetKeep = w, y.inflateInit = function(g) {
|
|
1679
1679
|
return F(g, 15);
|
|
1680
1680
|
}, y.inflateInit2 = F, y.inflate = function(g, T) {
|
|
1681
|
-
var e, D, J, U, $, L, q, C, E, Y, G, H, it, lt, Q, et, ot,
|
|
1681
|
+
var e, D, J, U, $, L, q, C, E, Y, G, H, it, lt, Q, et, ot, at, ct, ft, t, B, A, f, o = 0, k = new l.Buf8(4), N = [16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15];
|
|
1682
1682
|
if (!g || !g.state || !g.output || !g.input && g.avail_in !== 0) return i;
|
|
1683
1683
|
(e = g.state).mode === 12 && (e.mode = 13), $ = g.next_out, J = g.output, q = g.avail_out, U = g.next_in, D = g.input, L = g.avail_in, C = e.hold, E = e.bits, Y = L, G = q, B = b;
|
|
1684
1684
|
t: for (; ; ) switch (e.mode) {
|
|
@@ -1781,7 +1781,7 @@ var Ct = { exports: {} };
|
|
|
1781
1781
|
if (L === 0) break t;
|
|
1782
1782
|
L--, C += D[U++] << E, E += 8;
|
|
1783
1783
|
}
|
|
1784
|
-
g.adler = e.check =
|
|
1784
|
+
g.adler = e.check = s(C), E = C = 0, e.mode = 11;
|
|
1785
1785
|
case 11:
|
|
1786
1786
|
if (e.havedict === 0) return g.next_out = $, g.avail_out = q, g.next_in = U, g.avail_in = L, e.hold = C, e.bits = E, 2;
|
|
1787
1787
|
g.adler = e.check = 1, e.mode = 12;
|
|
@@ -1920,11 +1920,11 @@ var Ct = { exports: {} };
|
|
|
1920
1920
|
L--, C += D[U++] << E, E += 8;
|
|
1921
1921
|
}
|
|
1922
1922
|
if (et && !(240 & et)) {
|
|
1923
|
-
for (
|
|
1923
|
+
for (at = Q, ct = et, ft = ot; et = (o = e.lencode[ft + ((C & (1 << at + ct) - 1) >> at)]) >>> 16 & 255, ot = 65535 & o, !(at + (Q = o >>> 24) <= E); ) {
|
|
1924
1924
|
if (L === 0) break t;
|
|
1925
1925
|
L--, C += D[U++] << E, E += 8;
|
|
1926
1926
|
}
|
|
1927
|
-
C >>>=
|
|
1927
|
+
C >>>= at, E -= at, e.back += at;
|
|
1928
1928
|
}
|
|
1929
1929
|
if (C >>>= Q, E -= Q, e.back += Q, e.length = ot, et === 0) {
|
|
1930
1930
|
e.mode = 26;
|
|
@@ -1954,11 +1954,11 @@ var Ct = { exports: {} };
|
|
|
1954
1954
|
L--, C += D[U++] << E, E += 8;
|
|
1955
1955
|
}
|
|
1956
1956
|
if (!(240 & et)) {
|
|
1957
|
-
for (
|
|
1957
|
+
for (at = Q, ct = et, ft = ot; et = (o = e.distcode[ft + ((C & (1 << at + ct) - 1) >> at)]) >>> 16 & 255, ot = 65535 & o, !(at + (Q = o >>> 24) <= E); ) {
|
|
1958
1958
|
if (L === 0) break t;
|
|
1959
1959
|
L--, C += D[U++] << E, E += 8;
|
|
1960
1960
|
}
|
|
1961
|
-
C >>>=
|
|
1961
|
+
C >>>= at, E -= at, e.back += at;
|
|
1962
1962
|
}
|
|
1963
1963
|
if (C >>>= Q, E -= Q, e.back += Q, 64 & et) {
|
|
1964
1964
|
g.msg = "invalid distance code", e.mode = 30;
|
|
@@ -2000,7 +2000,7 @@ var Ct = { exports: {} };
|
|
|
2000
2000
|
if (L === 0) break t;
|
|
2001
2001
|
L--, C |= D[U++] << E, E += 8;
|
|
2002
2002
|
}
|
|
2003
|
-
if (G -= q, g.total_out += G, e.total += G, G && (g.adler = e.check = e.flags ? r(e.check, J, G, $ - G) :
|
|
2003
|
+
if (G -= q, g.total_out += G, e.total += G, G && (g.adler = e.check = e.flags ? r(e.check, J, G, $ - G) : a(e.check, J, G, $ - G)), G = q, (e.flags ? C : s(C)) !== e.check) {
|
|
2004
2004
|
g.msg = "incorrect data check", e.mode = 30;
|
|
2005
2005
|
break;
|
|
2006
2006
|
}
|
|
@@ -2032,7 +2032,7 @@ var Ct = { exports: {} };
|
|
|
2032
2032
|
default:
|
|
2033
2033
|
return i;
|
|
2034
2034
|
}
|
|
2035
|
-
return g.next_out = $, g.avail_out = q, g.next_in = U, g.avail_in = L, e.hold = C, e.bits = E, (e.wsize || G !== g.avail_out && e.mode < 30 && (e.mode < 27 || T !== 4)) && V(g, g.output, g.next_out, G - g.avail_out) ? (e.mode = 31, -4) : (Y -= g.avail_in, G -= g.avail_out, g.total_in += Y, g.total_out += G, e.total += G, e.wrap && G && (g.adler = e.check = e.flags ? r(e.check, J, G, g.next_out - G) :
|
|
2035
|
+
return g.next_out = $, g.avail_out = q, g.next_in = U, g.avail_in = L, e.hold = C, e.bits = E, (e.wsize || G !== g.avail_out && e.mode < 30 && (e.mode < 27 || T !== 4)) && V(g, g.output, g.next_out, G - g.avail_out) ? (e.mode = 31, -4) : (Y -= g.avail_in, G -= g.avail_out, g.total_in += Y, g.total_out += G, e.total += G, e.wrap && G && (g.adler = e.check = e.flags ? r(e.check, J, G, g.next_out - G) : a(e.check, J, G, g.next_out - G)), g.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 || T === 4) && B === b && (B = -5), B);
|
|
2036
2036
|
}, y.inflateEnd = function(g) {
|
|
2037
2037
|
if (!g || !g.state) return i;
|
|
2038
2038
|
var T = g.state;
|
|
@@ -2042,22 +2042,22 @@ var Ct = { exports: {} };
|
|
|
2042
2042
|
return g && g.state && 2 & (e = g.state).wrap ? ((e.head = T).done = !1, b) : i;
|
|
2043
2043
|
}, y.inflateSetDictionary = function(g, T) {
|
|
2044
2044
|
var e, D = T.length;
|
|
2045
|
-
return g && g.state ? (e = g.state).wrap !== 0 && e.mode !== 11 ? i : e.mode === 11 &&
|
|
2045
|
+
return g && g.state ? (e = g.state).wrap !== 0 && e.mode !== 11 ? i : e.mode === 11 && a(1, T, D, 0) !== e.check ? -3 : V(g, T, D, D) ? (e.mode = 31, -4) : (e.havedict = 1, b) : i;
|
|
2046
2046
|
}, y.inflateInfo = "pako inflate (from Nodeca project)";
|
|
2047
2047
|
}, { "../utils/common": 41, "./adler32": 43, "./crc32": 45, "./inffast": 48, "./inftrees": 50 }], 50: [function(_, R, y) {
|
|
2048
|
-
var l = _("../utils/common"),
|
|
2049
|
-
R.exports = function(v, c, b, i, d, n, u,
|
|
2050
|
-
var p, w, S, x, F, I, j, O, W, V =
|
|
2048
|
+
var l = _("../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], m = [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];
|
|
2049
|
+
R.exports = function(v, c, b, i, d, n, u, s) {
|
|
2050
|
+
var p, w, S, x, F, I, j, O, W, V = s.bits, g = 0, T = 0, e = 0, D = 0, J = 0, U = 0, $ = 0, L = 0, q = 0, C = 0, E = null, Y = 0, G = new l.Buf16(16), H = new l.Buf16(16), it = null, lt = 0;
|
|
2051
2051
|
for (g = 0; g <= 15; g++) G[g] = 0;
|
|
2052
2052
|
for (T = 0; T < i; T++) G[c[b + T]]++;
|
|
2053
2053
|
for (J = V, D = 15; 1 <= D && G[D] === 0; D--) ;
|
|
2054
|
-
if (D < J && (J = D), D === 0) return d[n++] = 20971520, d[n++] = 20971520,
|
|
2054
|
+
if (D < J && (J = D), D === 0) return d[n++] = 20971520, d[n++] = 20971520, s.bits = 1, 0;
|
|
2055
2055
|
for (e = 1; e < D && G[e] === 0; e++) ;
|
|
2056
2056
|
for (J < e && (J = e), g = L = 1; g <= 15; g++) if (L <<= 1, (L -= G[g]) < 0) return -1;
|
|
2057
2057
|
if (0 < L && (v === 0 || D !== 1)) return -1;
|
|
2058
2058
|
for (H[1] = 0, g = 1; g < 15; g++) H[g + 1] = H[g] + G[g];
|
|
2059
2059
|
for (T = 0; T < i; T++) c[b + T] !== 0 && (u[H[c[b + T]]++] = T);
|
|
2060
|
-
if (I = v === 0 ? (E = it = u, 19) : v === 1 ? (E =
|
|
2060
|
+
if (I = v === 0 ? (E = it = u, 19) : v === 1 ? (E = a, Y -= 257, it = r, lt -= 257, 256) : (E = h, it = m, -1), g = e, F = n, $ = T = C = 0, S = -1, x = (q = 1 << (U = J)) - 1, v === 1 && 852 < q || v === 2 && 592 < q) return 1;
|
|
2061
2061
|
for (; ; ) {
|
|
2062
2062
|
for (j = g - $, W = u[T] < I ? (O = 0, u[T]) : u[T] > I ? (O = it[lt + u[T]], E[Y + u[T]]) : (O = 96, 0), p = 1 << g - $, e = w = 1 << U; d[F + (C >> $) + (w -= p)] = j << 24 | O << 16 | W | 0, w !== 0; ) ;
|
|
2063
2063
|
for (p = 1 << g - 1; C & p; ) p >>= 1;
|
|
@@ -2071,16 +2071,16 @@ var Ct = { exports: {} };
|
|
|
2071
2071
|
d[S = C & x] = J << 24 | U << 16 | F - n | 0;
|
|
2072
2072
|
}
|
|
2073
2073
|
}
|
|
2074
|
-
return C !== 0 && (d[F + C] = g - $ << 24 | 64 << 16 | 0),
|
|
2074
|
+
return C !== 0 && (d[F + C] = g - $ << 24 | 64 << 16 | 0), s.bits = J, 0;
|
|
2075
2075
|
};
|
|
2076
2076
|
}, { "../utils/common": 41 }], 51: [function(_, R, y) {
|
|
2077
2077
|
R.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" };
|
|
2078
2078
|
}, {}], 52: [function(_, R, y) {
|
|
2079
|
-
var l = _("../utils/common"),
|
|
2079
|
+
var l = _("../utils/common"), a = 0, r = 1;
|
|
2080
2080
|
function h(o) {
|
|
2081
2081
|
for (var k = o.length; 0 <= --k; ) o[k] = 0;
|
|
2082
2082
|
}
|
|
2083
|
-
var m = 0, v = 29, c = 256, b = c + 1 + v, i = 30, d = 19, n = 2 * b + 1, u = 15,
|
|
2083
|
+
var m = 0, v = 29, c = 256, b = c + 1 + v, i = 30, d = 19, n = 2 * b + 1, u = 15, s = 16, p = 7, w = 256, S = 16, x = 17, F = 18, I = [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], V = new Array(2 * (b + 2));
|
|
2084
2084
|
h(V);
|
|
2085
2085
|
var g = new Array(2 * i);
|
|
2086
2086
|
h(g);
|
|
@@ -2104,7 +2104,7 @@ var Ct = { exports: {} };
|
|
|
2104
2104
|
o.pending_buf[o.pending++] = 255 & k, o.pending_buf[o.pending++] = k >>> 8 & 255;
|
|
2105
2105
|
}
|
|
2106
2106
|
function G(o, k, N) {
|
|
2107
|
-
o.bi_valid >
|
|
2107
|
+
o.bi_valid > s - N ? (o.bi_buf |= k << o.bi_valid & 65535, Y(o, o.bi_buf), o.bi_buf = k >> s - o.bi_valid, o.bi_valid += N - s) : (o.bi_buf |= k << o.bi_valid & 65535, o.bi_valid += N);
|
|
2108
2108
|
}
|
|
2109
2109
|
function H(o, k, N) {
|
|
2110
2110
|
G(o, N[2 * k], N[2 * k + 1]);
|
|
@@ -2135,7 +2135,7 @@ var Ct = { exports: {} };
|
|
|
2135
2135
|
var z = 2 * k, Z = 2 * N;
|
|
2136
2136
|
return o[z] < o[Z] || o[z] === o[Z] && P[k] <= P[N];
|
|
2137
2137
|
}
|
|
2138
|
-
function
|
|
2138
|
+
function at(o, k, N) {
|
|
2139
2139
|
for (var P = o.heap[N], z = N << 1; z <= o.heap_len && (z < o.heap_len && ot(k, o.heap[z + 1], o.heap[z], o.depth) && z++, !ot(k, P, o.heap[z], o.depth)); ) o.heap[N] = o.heap[z], N = z, z <<= 1;
|
|
2140
2140
|
o.heap[N] = P;
|
|
2141
2141
|
}
|
|
@@ -2148,18 +2148,18 @@ var Ct = { exports: {} };
|
|
|
2148
2148
|
var N, P, z, Z = k.dyn_tree, K = k.stat_desc.static_tree, M = k.stat_desc.has_stree, X = k.stat_desc.elems, rt = -1;
|
|
2149
2149
|
for (o.heap_len = 0, o.heap_max = n, N = 0; N < X; N++) Z[2 * N] !== 0 ? (o.heap[++o.heap_len] = rt = N, o.depth[N] = 0) : Z[2 * N + 1] = 0;
|
|
2150
2150
|
for (; o.heap_len < 2; ) Z[2 * (z = o.heap[++o.heap_len] = rt < 2 ? ++rt : 0)] = 1, o.depth[z] = 0, o.opt_len--, M && (o.static_len -= K[2 * z + 1]);
|
|
2151
|
-
for (k.max_code = rt, N = o.heap_len >> 1; 1 <= N; N--)
|
|
2152
|
-
for (z = X; N = o.heap[1], o.heap[1] = o.heap[o.heap_len--],
|
|
2151
|
+
for (k.max_code = rt, N = o.heap_len >> 1; 1 <= N; N--) at(o, Z, N);
|
|
2152
|
+
for (z = X; N = o.heap[1], o.heap[1] = o.heap[o.heap_len--], at(o, Z, 1), P = o.heap[1], o.heap[--o.heap_max] = N, o.heap[--o.heap_max] = P, Z[2 * z] = Z[2 * N] + Z[2 * P], o.depth[z] = (o.depth[N] >= o.depth[P] ? o.depth[N] : o.depth[P]) + 1, Z[2 * N + 1] = Z[2 * P + 1] = z, o.heap[1] = z++, at(o, Z, 1), 2 <= o.heap_len; ) ;
|
|
2153
2153
|
o.heap[--o.heap_max] = o.heap[1], function(tt, ht) {
|
|
2154
|
-
var mt, dt, _t,
|
|
2155
|
-
for (
|
|
2156
|
-
for (pt[2 * tt.heap[tt.heap_max] + 1] = 0, mt = tt.heap_max + 1; mt < n; mt++) gt < (
|
|
2154
|
+
var mt, dt, _t, st, vt, xt, pt = ht.dyn_tree, St = ht.max_code, At = ht.stat_desc.static_tree, Ot = ht.stat_desc.has_stree, It = ht.stat_desc.extra_bits, zt = ht.stat_desc.extra_base, gt = ht.stat_desc.max_length, yt = 0;
|
|
2155
|
+
for (st = 0; st <= u; st++) tt.bl_count[st] = 0;
|
|
2156
|
+
for (pt[2 * tt.heap[tt.heap_max] + 1] = 0, mt = tt.heap_max + 1; mt < n; mt++) gt < (st = pt[2 * pt[2 * (dt = tt.heap[mt]) + 1] + 1] + 1) && (st = gt, yt++), pt[2 * dt + 1] = st, St < dt || (tt.bl_count[st]++, vt = 0, zt <= dt && (vt = It[dt - zt]), xt = pt[2 * dt], tt.opt_len += xt * (st + vt), Ot && (tt.static_len += xt * (At[2 * dt + 1] + vt)));
|
|
2157
2157
|
if (yt !== 0) {
|
|
2158
2158
|
do {
|
|
2159
|
-
for (
|
|
2160
|
-
tt.bl_count[
|
|
2159
|
+
for (st = gt - 1; tt.bl_count[st] === 0; ) st--;
|
|
2160
|
+
tt.bl_count[st]--, tt.bl_count[st + 1] += 2, tt.bl_count[gt]--, yt -= 2;
|
|
2161
2161
|
} while (0 < yt);
|
|
2162
|
-
for (
|
|
2162
|
+
for (st = gt; st !== 0; st--) for (dt = tt.bl_count[st]; dt !== 0; ) St < (_t = tt.heap[--mt]) || (pt[2 * _t + 1] !== st && (tt.opt_len += (st - pt[2 * _t + 1]) * pt[2 * _t], pt[2 * _t + 1] = st), dt--);
|
|
2163
2163
|
}
|
|
2164
2164
|
}(o, k), lt(Z, rt, o.bl_count);
|
|
2165
2165
|
}
|
|
@@ -2200,10 +2200,10 @@ var Ct = { exports: {} };
|
|
|
2200
2200
|
var z, Z, K = 0;
|
|
2201
2201
|
0 < o.level ? (o.strm.data_type === 2 && (o.strm.data_type = function(M) {
|
|
2202
2202
|
var X, rt = 4093624447;
|
|
2203
|
-
for (X = 0; X <= 31; X++, rt >>>= 1) if (1 & rt && M.dyn_ltree[2 * X] !== 0) return
|
|
2203
|
+
for (X = 0; X <= 31; X++, rt >>>= 1) if (1 & rt && M.dyn_ltree[2 * X] !== 0) return a;
|
|
2204
2204
|
if (M.dyn_ltree[18] !== 0 || M.dyn_ltree[20] !== 0 || M.dyn_ltree[26] !== 0) return r;
|
|
2205
2205
|
for (X = 32; X < c; X++) if (M.dyn_ltree[2 * X] !== 0) return r;
|
|
2206
|
-
return
|
|
2206
|
+
return a;
|
|
2207
2207
|
}(o)), ft(o, o.l_desc), ft(o, o.d_desc), K = function(M) {
|
|
2208
2208
|
var X;
|
|
2209
2209
|
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--) ;
|
|
@@ -2226,23 +2226,23 @@ var Ct = { exports: {} };
|
|
|
2226
2226
|
};
|
|
2227
2227
|
}, {}], 54: [function(_, R, y) {
|
|
2228
2228
|
(function(l) {
|
|
2229
|
-
(function(
|
|
2230
|
-
if (!
|
|
2231
|
-
var h, m, v, c, b = 1, i = {}, d = !1, n =
|
|
2232
|
-
u = u && u.setTimeout ? u :
|
|
2229
|
+
(function(a, r) {
|
|
2230
|
+
if (!a.setImmediate) {
|
|
2231
|
+
var h, m, v, c, b = 1, i = {}, d = !1, n = a.document, u = Object.getPrototypeOf && Object.getPrototypeOf(a);
|
|
2232
|
+
u = u && u.setTimeout ? u : a, h = {}.toString.call(a.process) === "[object process]" ? function(S) {
|
|
2233
2233
|
Tt.nextTick(function() {
|
|
2234
2234
|
p(S);
|
|
2235
2235
|
});
|
|
2236
2236
|
} : function() {
|
|
2237
|
-
if (
|
|
2238
|
-
var S = !0, x =
|
|
2239
|
-
return
|
|
2237
|
+
if (a.postMessage && !a.importScripts) {
|
|
2238
|
+
var S = !0, x = a.onmessage;
|
|
2239
|
+
return a.onmessage = function() {
|
|
2240
2240
|
S = !1;
|
|
2241
|
-
},
|
|
2241
|
+
}, a.postMessage("", "*"), a.onmessage = x, S;
|
|
2242
2242
|
}
|
|
2243
|
-
}() ? (c = "setImmediate$" + Math.random() + "$",
|
|
2244
|
-
|
|
2245
|
-
}) :
|
|
2243
|
+
}() ? (c = "setImmediate$" + Math.random() + "$", a.addEventListener ? a.addEventListener("message", w, !1) : a.attachEvent("onmessage", w), function(S) {
|
|
2244
|
+
a.postMessage(c + S, "*");
|
|
2245
|
+
}) : a.MessageChannel ? ((v = new MessageChannel()).port1.onmessage = function(S) {
|
|
2246
2246
|
p(S.data);
|
|
2247
2247
|
}, function(S) {
|
|
2248
2248
|
v.port2.postMessage(S);
|
|
@@ -2258,9 +2258,9 @@ var Ct = { exports: {} };
|
|
|
2258
2258
|
for (var x = new Array(arguments.length - 1), F = 0; F < x.length; F++) x[F] = arguments[F + 1];
|
|
2259
2259
|
var I = { callback: S, args: x };
|
|
2260
2260
|
return i[b] = I, h(b), b++;
|
|
2261
|
-
}, u.clearImmediate =
|
|
2261
|
+
}, u.clearImmediate = s;
|
|
2262
2262
|
}
|
|
2263
|
-
function
|
|
2263
|
+
function s(S) {
|
|
2264
2264
|
delete i[S];
|
|
2265
2265
|
}
|
|
2266
2266
|
function p(S) {
|
|
@@ -2290,13 +2290,13 @@ var Ct = { exports: {} };
|
|
|
2290
2290
|
}
|
|
2291
2291
|
})(x);
|
|
2292
2292
|
} finally {
|
|
2293
|
-
|
|
2293
|
+
s(S), d = !1;
|
|
2294
2294
|
}
|
|
2295
2295
|
}
|
|
2296
2296
|
}
|
|
2297
2297
|
}
|
|
2298
2298
|
function w(S) {
|
|
2299
|
-
S.source ===
|
|
2299
|
+
S.source === a && typeof S.data == "string" && S.data.indexOf(c) === 0 && p(+S.data.slice(c.length));
|
|
2300
2300
|
}
|
|
2301
2301
|
})(typeof self > "u" ? l === void 0 ? this : l : self);
|
|
2302
2302
|
}).call(this, typeof wt < "u" ? wt : typeof self < "u" ? self : typeof window < "u" ? window : {});
|
|
@@ -2328,10 +2328,10 @@ class Nt {
|
|
|
2328
2328
|
* docProps/app.xml
|
|
2329
2329
|
* */
|
|
2330
2330
|
async getDocxData(nt, _ = !1) {
|
|
2331
|
-
const R = await this.unzip(nt), y = Object.entries(R.files), l = {},
|
|
2331
|
+
const R = await this.unzip(nt), y = Object.entries(R.files), l = {}, a = ["xml", "rels"];
|
|
2332
2332
|
for (const r of y) {
|
|
2333
2333
|
const [h, m] = r;
|
|
2334
|
-
if (
|
|
2334
|
+
if (a.some((v) => m.name.endsWith(v))) {
|
|
2335
2335
|
const v = await m.async("string");
|
|
2336
2336
|
this.files.push({
|
|
2337
2337
|
name: m.name,
|
|
@@ -2362,39 +2362,39 @@ class Nt {
|
|
|
2362
2362
|
*/
|
|
2363
2363
|
async updateContentTypes(nt, _) {
|
|
2364
2364
|
const R = Object.keys(_).map((c) => this.getFileExtension(c)), y = "[Content_Types].xml", l = await nt.file(y).async("string");
|
|
2365
|
-
let
|
|
2365
|
+
let a = "";
|
|
2366
2366
|
const r = Rt(l), h = /* @__PURE__ */ new Set();
|
|
2367
2367
|
for (let c of R) {
|
|
2368
2368
|
if (r.includes(c) || h.has(c)) continue;
|
|
2369
2369
|
const b = `<Default Extension="${c}" ContentType="image/${c}"/>`;
|
|
2370
|
-
|
|
2370
|
+
a += b, h.add(c);
|
|
2371
2371
|
}
|
|
2372
2372
|
if (nt.files["word/comments.xml"]) {
|
|
2373
2373
|
const c = '<Override PartName="/word/comments.xml" ContentType="application/vnd.openxmlformats-officedocument.wordprocessingml.comments+xml" />';
|
|
2374
|
-
l.includes(c) || (
|
|
2374
|
+
l.includes(c) || (a += c);
|
|
2375
2375
|
}
|
|
2376
2376
|
if (nt.files["word/commentsExtended.xml"]) {
|
|
2377
2377
|
const c = '<Override PartName="/word/commentsExtended.xml" ContentType="application/vnd.openxmlformats-officedocument.wordprocessingml.commentsExtended+xml" />';
|
|
2378
|
-
l.includes(c) || (
|
|
2378
|
+
l.includes(c) || (a += c);
|
|
2379
2379
|
}
|
|
2380
2380
|
if (nt.files["word/commentsIds.xml"]) {
|
|
2381
2381
|
const c = '<Override PartName="/word/commentsIds.xml" ContentType="application/vnd.openxmlformats-officedocument.wordprocessingml.commentsIds+xml" />';
|
|
2382
|
-
l.includes(c) || (
|
|
2382
|
+
l.includes(c) || (a += c);
|
|
2383
2383
|
}
|
|
2384
2384
|
if (nt.files["word/commentsExtensible.xml"]) {
|
|
2385
2385
|
const c = '<Override PartName="/word/commentsExtensible.xml" ContentType="application/vnd.openxmlformats-officedocument.wordprocessingml.commentsExtensible+xml" />';
|
|
2386
|
-
l.includes(c) || (
|
|
2386
|
+
l.includes(c) || (a += c);
|
|
2387
2387
|
}
|
|
2388
|
-
const m = '<Types xmlns="http://schemas.openxmlformats.org/package/2006/content-types">', v = l.replace(m, `${m}${
|
|
2388
|
+
const m = '<Types xmlns="http://schemas.openxmlformats.org/package/2006/content-types">', v = l.replace(m, `${m}${a}`);
|
|
2389
2389
|
nt.file(y, v);
|
|
2390
2390
|
}
|
|
2391
2391
|
async unzip(nt) {
|
|
2392
2392
|
return await this.zip.loadAsync(nt);
|
|
2393
2393
|
}
|
|
2394
|
-
async updateZip({ docx: nt, updatedDocs: _, originalDocxFile: R, media: y, fonts: l, isHeadless:
|
|
2394
|
+
async updateZip({ docx: nt, updatedDocs: _, originalDocxFile: R, media: y, fonts: l, isHeadless: a }) {
|
|
2395
2395
|
let r;
|
|
2396
2396
|
R ? r = await this.exportFromOriginalFile(R, _, y) : r = await this.exportFromCollaborativeDocx(nt, _, y, l);
|
|
2397
|
-
const h =
|
|
2397
|
+
const h = a ? "nodebuffer" : "blob";
|
|
2398
2398
|
return await r.generateAsync({ type: h });
|
|
2399
2399
|
}
|
|
2400
2400
|
/**
|
|
@@ -2405,19 +2405,19 @@ class Nt {
|
|
|
2405
2405
|
*/
|
|
2406
2406
|
async exportFromCollaborativeDocx(nt, _, R, y) {
|
|
2407
2407
|
const l = new Et();
|
|
2408
|
-
for (const
|
|
2409
|
-
const r =
|
|
2410
|
-
l.file(
|
|
2408
|
+
for (const a of nt) {
|
|
2409
|
+
const r = a.content;
|
|
2410
|
+
l.file(a.name, r);
|
|
2411
2411
|
}
|
|
2412
|
-
Object.keys(_).forEach((
|
|
2413
|
-
const r = _[
|
|
2414
|
-
l.file(
|
|
2415
|
-
}), Object.keys(R).forEach((
|
|
2416
|
-
const r = ut.from(R[
|
|
2417
|
-
l.file(`word/media/${
|
|
2412
|
+
Object.keys(_).forEach((a) => {
|
|
2413
|
+
const r = _[a];
|
|
2414
|
+
l.file(a, r);
|
|
2415
|
+
}), Object.keys(R).forEach((a) => {
|
|
2416
|
+
const r = ut.from(R[a], "base64");
|
|
2417
|
+
l.file(`word/media/${a}`, r);
|
|
2418
2418
|
});
|
|
2419
|
-
for (const [
|
|
2420
|
-
l.file(
|
|
2419
|
+
for (const [a, r] of Object.entries(y))
|
|
2420
|
+
l.file(a, r);
|
|
2421
2421
|
return await this.updateContentTypes(l, R), l;
|
|
2422
2422
|
}
|
|
2423
2423
|
/**
|
|
@@ -2429,15 +2429,15 @@ class Nt {
|
|
|
2429
2429
|
*/
|
|
2430
2430
|
async exportFromOriginalFile(nt, _, R) {
|
|
2431
2431
|
const y = await this.unzip(nt), l = [];
|
|
2432
|
-
return y.forEach((
|
|
2432
|
+
return y.forEach((a, r) => {
|
|
2433
2433
|
const h = r.async("string").then((m) => {
|
|
2434
2434
|
y.file(r.name, m);
|
|
2435
2435
|
});
|
|
2436
2436
|
l.push(h);
|
|
2437
|
-
}), await Promise.all(l), Object.keys(_).forEach((
|
|
2438
|
-
y.file(
|
|
2439
|
-
}), Object.keys(R).forEach((
|
|
2440
|
-
y.file(`word/media/${
|
|
2437
|
+
}), await Promise.all(l), Object.keys(_).forEach((a) => {
|
|
2438
|
+
y.file(a, _[a]);
|
|
2439
|
+
}), Object.keys(R).forEach((a) => {
|
|
2440
|
+
y.file(`word/media/${a}`, R[a]);
|
|
2441
2441
|
}), await this.updateContentTypes(y, R), y;
|
|
2442
2442
|
}
|
|
2443
2443
|
}
|