gds-plus-design-vue 1.2.73 → 1.2.74
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/lib/addPermission.4a553cd8.js +1 -0
- package/lib/{addPermission.1eb97ee3.mjs → addPermission.78068c52.mjs} +45 -43
- package/lib/{approvalModel.c09cbf86.mjs → approvalModel.1d109493.mjs} +2 -2
- package/lib/{approvalModel.63fa8914.js → approvalModel.e0e5738f.js} +1 -1
- package/lib/{attribute.88d41b0f.mjs → attribute.9dfa6953.mjs} +46 -44
- package/lib/attribute.f97b41ad.js +1 -0
- package/lib/{components.globalheader.28b38c3a.js → components.globalheader.c7bf862b.js} +1 -1
- package/lib/{components.globalheader.9471ef9d.mjs → components.globalheader.f0b8aab7.mjs} +1 -1
- package/lib/{components.middleware.b2e156ea.js → components.middleware.216e1574.js} +1 -1
- package/lib/{components.middleware.7b760b95.mjs → components.middleware.d7dc078d.mjs} +2 -2
- package/lib/{components.modaltitle.179b6da1.js → components.modaltitle.0d3db44e.js} +1 -1
- package/lib/{components.modaltitle.2c1011c5.mjs → components.modaltitle.517bc660.mjs} +2 -2
- package/lib/{components.sidenavmenu.a3de1659.js → components.sidenavmenu.364a8b26.js} +1 -1
- package/lib/{components.sidenavmenu.91e996c4.mjs → components.sidenavmenu.3f4d259f.mjs} +1 -1
- package/lib/components.table.5d1336dd.js +8 -0
- package/lib/components.table.a50270a9.mjs +3591 -0
- package/lib/components.table.childheader.7e9b960f.mjs +325 -0
- package/lib/components.table.childheader.cee3be75.js +1 -0
- package/lib/components.table.queriesfield.eb795212.js +1 -0
- package/lib/components.table.queriesfield.f16322dc.mjs +748 -0
- package/lib/components.viewformdetails.513f0dbe.js +1 -0
- package/lib/{components.viewformdetails.4e40579f.mjs → components.viewformdetails.cb86a01d.mjs} +28 -21
- package/lib/{createFile.ca811a30.mjs → createFile.44667f20.mjs} +45 -43
- package/lib/createFile.6389354d.js +1 -0
- package/lib/{editForm.83d10fae.mjs → editForm.54f33a47.mjs} +5 -2
- package/lib/editForm.a5fd3180.js +1 -0
- package/lib/extendedAttributes.3ed8fe2a.js +1 -0
- package/lib/{extendedAttributes.a3ee9bde.mjs → extendedAttributes.b2c2ab6c.mjs} +45 -43
- package/lib/{fileSearch.d7abc086.mjs → fileSearch.203b9423.mjs} +45 -43
- package/lib/fileSearch.3513b55b.js +1 -0
- package/lib/{flow.designer.7d58bc2c.js → flow.designer.362f5f66.js} +1 -1
- package/lib/{flow.designer.b066df02.mjs → flow.designer.e087cd9b.mjs} +1 -1
- package/lib/{flow.list.a9afdd93.mjs → flow.list.3c2df716.mjs} +2 -2
- package/lib/{flow.list.d288de5e.js → flow.list.dea8996a.js} +1 -1
- package/lib/{form.build.16110b90.mjs → form.build.69803596.mjs} +24 -17
- package/lib/form.build.6a1bcad5.js +1 -0
- package/lib/{form.designer.build.2bd26973.mjs → form.designer.build.12c673f0.mjs} +188 -150
- package/lib/form.designer.build.89af4d24.js +1 -0
- package/lib/{formFiled.3763ebff.mjs → formFiled.593b5a25.mjs} +7 -6
- package/lib/formFiled.d63e97d3.js +1 -0
- package/lib/gd-initial.js +1 -1
- package/lib/gd-initial.mjs +148 -146
- package/lib/{http.message.ceb0a1c6.mjs → http.message.00e72e09.mjs} +29 -21
- package/lib/{http.message.87f319d7.js → http.message.73c3ed85.js} +1 -1
- package/lib/index.4f1635c8.js +8 -0
- package/lib/{index.606ef358.mjs → index.9ecf4818.mjs} +3158 -2477
- package/lib/{layoutBlocks.0784592a.mjs → layoutBlocks.97713647.mjs} +91 -78
- package/lib/layoutBlocks.d26f79f2.js +1 -0
- package/lib/layouts.0e66a0bc.js +2 -0
- package/lib/{layouts.915931be.mjs → layouts.ddf507fa.mjs} +29 -21
- package/lib/{main.0326119e.js → main.22cae2bb.js} +1 -1
- package/lib/{main.adcedcee.mjs → main.37ae02bc.mjs} +1 -1
- package/lib/main.44750095.js +1 -0
- package/lib/{main.034638bb.mjs → main.55c9f109.mjs} +5 -8
- package/lib/{main.44efe912.mjs → main.5bf89f06.mjs} +54 -55
- package/lib/main.f0805dab.js +1 -0
- package/lib/manage.91e76379.js +1 -0
- package/lib/{manage.63cd038d.mjs → manage.b3462cce.mjs} +46 -44
- package/lib/{messages.messagetemplate.0935e5a3.mjs → messages.messagetemplate.ceeb3f47.mjs} +2 -2
- package/lib/{messages.messagetemplate.50334e5f.js → messages.messagetemplate.e52ab470.js} +1 -1
- package/lib/messages.sendplan.18bda3c5.js +1 -0
- package/lib/{messages.sendplan.61edcc7f.mjs → messages.sendplan.c6821911.mjs} +97 -25
- package/lib/{messages.sendrecord.09a1d1cd.js → messages.sendrecord.12028921.js} +2 -2
- package/lib/{messages.sendrecord.1c48aa6e.mjs → messages.sendrecord.f7630ebd.mjs} +3 -3
- package/lib/{messages.templatelibrary.f31e8d58.mjs → messages.templatelibrary.4654886e.mjs} +1 -1
- package/lib/{messages.templatelibrary.f5952edd.js → messages.templatelibrary.cd20c05b.js} +1 -1
- package/lib/{mobile.designer.componentstree.70fd4c93.mjs → mobile.designer.componentstree.5a329caa.mjs} +1 -1
- package/lib/{mobile.designer.componentstree.f4a901e4.js → mobile.designer.componentstree.888d8646.js} +1 -1
- package/lib/{mobile.designer.menutree.4d4e059b.js → mobile.designer.menutree.646ebcdd.js} +1 -1
- package/lib/{mobile.designer.menutree.7d3b783d.mjs → mobile.designer.menutree.da4c05f4.mjs} +1 -1
- package/lib/moveFile.345aee1d.js +1 -0
- package/lib/{moveFile.b66805f8.mjs → moveFile.864ea48f.mjs} +48 -46
- package/lib/{page.build.09137386.mjs → page.build.39202359.mjs} +674 -668
- package/lib/{page.build.1b771761.js → page.build.66e190a5.js} +3 -3
- package/lib/{page.designer.componentstree.a256ff7a.mjs → page.designer.componentstree.2d5a887a.mjs} +1 -1
- package/lib/{page.designer.componentstree.341908b2.js → page.designer.componentstree.ec3dcbc1.js} +1 -1
- package/lib/{page.designer.menutree.e4ce1e90.mjs → page.designer.menutree.1e642711.mjs} +2 -2
- package/lib/{page.designer.menutree.71c18258.js → page.designer.menutree.6368c636.js} +1 -1
- package/lib/{page.designer.page.d2d6b614.js → page.designer.page.2dac64ca.js} +1 -1
- package/lib/{page.designer.page.559113a9.mjs → page.designer.page.4cf4b1bf.mjs} +5 -5
- package/lib/{result.16da7693.mjs → result.3c1fc8b7.mjs} +45 -43
- package/lib/result.cf75c6c3.js +1 -0
- package/lib/{router.config.70680261.mjs → router.config.b78ec9f8.mjs} +5 -5
- package/lib/{router.config.1e67a1c3.js → router.config.d746d115.js} +1 -1
- package/lib/{solution.application.8d6c84e8.js → solution.application.15e813b4.js} +1 -1
- package/lib/{solution.application.e6b5dc4f.mjs → solution.application.5d02d1cd.mjs} +16 -10
- package/lib/solution.approvalflow.1f11ad8f.js +1 -0
- package/lib/{solution.approvalflow.8572122d.mjs → solution.approvalflow.24a50af0.mjs} +20 -14
- package/lib/solution.dict.28214a3e.js +1 -0
- package/lib/{solution.dict.088a1e72.mjs → solution.dict.77cb1ad2.mjs} +41 -37
- package/lib/{solution.menu.fa48a7e8.js → solution.menu.12b9f56d.js} +1 -1
- package/lib/{solution.menu.e58922fe.mjs → solution.menu.72498250.mjs} +1 -1
- package/lib/{solution.plugin.ae6df926.mjs → solution.plugin.76b603be.mjs} +18 -12
- package/lib/solution.plugin.e7b31aff.js +1 -0
- package/lib/solution.processflow.aa84ec06.js +1 -0
- package/lib/{solution.processflow.a52fd47c.mjs → solution.processflow.d336bd7b.mjs} +15 -9
- package/lib/{solution.role.7b3e7030.mjs → solution.role.05efb1b4.mjs} +18 -12
- package/lib/solution.role.d07e1813.js +1 -0
- package/lib/{solution.webresources.88c4483b.mjs → solution.webresources.1b0f8550.mjs} +247 -79
- package/lib/solution.webresources.5b4abeb5.js +2 -0
- package/lib/{solution.workflow.2530073b.mjs → solution.workflow.6d081d1f.mjs} +18 -12
- package/lib/solution.workflow.91b42158.js +1 -0
- package/lib/style.css +2 -2
- package/lib/{system.duplicatechecking.bef2b20c.js → system.duplicatechecking.719ddda1.js} +1 -1
- package/lib/{system.duplicatechecking.a0da805e.mjs → system.duplicatechecking.af9318aa.mjs} +1 -1
- package/lib/{system.notice.da2c944c.mjs → system.notice.12fa4d1c.mjs} +4 -4
- package/lib/{system.notice.72e0615f.js → system.notice.9385577f.js} +1 -1
- package/lib/{system.noticereceived.54c17b73.js → system.noticereceived.3dec9e12.js} +1 -1
- package/lib/{system.noticereceived.30dab7d1.mjs → system.noticereceived.7cfcceb4.mjs} +1 -1
- package/lib/{system.team.367bf5e7.mjs → system.team.3b0fcc60.mjs} +1 -1
- package/lib/{system.team.cf1c1558.js → system.team.c0d623a5.js} +1 -1
- package/lib/{system.teammembers.63f21557.js → system.teammembers.c99ef01b.js} +1 -1
- package/lib/{system.teammembers.851ce63b.mjs → system.teammembers.d0dc3f12.mjs} +2 -2
- package/lib/{system.user.bff7cc2f.js → system.user.75fa57c3.js} +1 -1
- package/lib/{system.user.a1ff367b.mjs → system.user.78a45735.mjs} +1 -1
- package/lib/versionControl.c39356b7.js +1 -0
- package/lib/{versionControl.6cd18867.mjs → versionControl.d572bc44.mjs} +52 -50
- package/lib/{versionEdit.910d2e2f.mjs → versionEdit.8b059461.mjs} +45 -43
- package/lib/versionEdit.d56cde69.js +1 -0
- package/lib/view.build.14c0d411.js +1 -0
- package/lib/{view.build.20e9aec0.mjs → view.build.5b9241fd.mjs} +193 -190
- package/lib/viewList.215afeb2.js +1 -0
- package/lib/{viewList.a4909732.mjs → viewList.b090d62f.mjs} +11 -12
- package/package.json +1 -1
- package/lib/addPermission.5bfc7e11.js +0 -1
- package/lib/attribute.919cb93e.js +0 -1
- package/lib/components.table.a0ac819e.js +0 -8
- package/lib/components.table.d79f5fa3.mjs +0 -4650
- package/lib/components.viewformdetails.6e66cc83.js +0 -1
- package/lib/copy.3b06d60f.mjs +0 -572
- package/lib/copy.fa2fcb22.js +0 -1
- package/lib/createFile.94329169.js +0 -1
- package/lib/editForm.e284e5ec.js +0 -1
- package/lib/extendedAttributes.b1107f6c.js +0 -1
- package/lib/fileSearch.4722ac3b.js +0 -1
- package/lib/form.build.5461409b.js +0 -1
- package/lib/form.designer.build.67b316e1.js +0 -1
- package/lib/formFiled.ef26328d.js +0 -1
- package/lib/index.fe18e32c.js +0 -8
- package/lib/layoutBlocks.1b71d988.js +0 -1
- package/lib/layouts.ae25c583.js +0 -2
- package/lib/main.44d72b90.js +0 -1
- package/lib/main.47957168.js +0 -1
- package/lib/manage.80871daf.js +0 -1
- package/lib/messages.sendplan.60929f46.js +0 -1
- package/lib/moveFile.d79f7fd9.js +0 -1
- package/lib/result.9cb6c2f1.js +0 -1
- package/lib/solution.approvalflow.cce2f064.js +0 -1
- package/lib/solution.dict.1d5195d0.js +0 -1
- package/lib/solution.plugin.5d6d29cf.js +0 -1
- package/lib/solution.processflow.bfa4897c.js +0 -1
- package/lib/solution.role.2eff83a1.js +0 -1
- package/lib/solution.webresources.bc00603d.js +0 -1
- package/lib/solution.workflow.59e0e697.js +0 -1
- package/lib/versionControl.47cc1330.js +0 -1
- package/lib/versionEdit.977faa93.js +0 -1
- package/lib/view.build.a48a14b0.js +0 -1
- package/lib/viewList.71f866da.js +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { B as Tt } from "./form.designer.build.
|
|
1
|
+
import { B as Tt } from "./form.designer.build.12c673f0.mjs";
|
|
2
2
|
import { a as Dt } from "./http.menumanage.3060f4c7.mjs";
|
|
3
3
|
import { m as Ft, a as Lt, n as Pt } from "./components.chartbi.7356b244.mjs";
|
|
4
4
|
import { g as Ct, n as Nt, i as yt, u as Ut } from "./utils.util.js.333daba2.mjs";
|
|
@@ -6,10 +6,10 @@ import { a as jt, b as Wt } from "./http.filemanage.c0de21d6.mjs";
|
|
|
6
6
|
import { p as zt } from "./http.main.aefea27d.mjs";
|
|
7
7
|
import { c as mt } from "./components.form.8047a9c3.mjs";
|
|
8
8
|
function Zt(b, S = !1) {
|
|
9
|
-
let
|
|
9
|
+
let a = "";
|
|
10
10
|
for (let C in b)
|
|
11
|
-
|
|
12
|
-
return
|
|
11
|
+
a += le(b, C, S);
|
|
12
|
+
return a;
|
|
13
13
|
}
|
|
14
14
|
function Mt(b) {
|
|
15
15
|
let S = [];
|
|
@@ -72,7 +72,7 @@ function ee(b) {
|
|
|
72
72
|
return S === "" ? "" : `overflow: hidden;text-overflow: ellipsis;display: -webkit-box;-webkit-line-clamp: ${S};-webkit-box-orient: vertical;`;
|
|
73
73
|
}
|
|
74
74
|
function re(b, S = !1) {
|
|
75
|
-
const
|
|
75
|
+
const a = b.flexWidth ? b.flexWidth : "100", C = b.flexUnit ? b.flexUnit : "%", y = C === "%" ? a > 100 ? 100 : a : C === "auto" ? "" : a;
|
|
76
76
|
return S && `${y}${C}` == "100%" ? "flex:1;" : `width:${y}${C};`;
|
|
77
77
|
}
|
|
78
78
|
function ne(b) {
|
|
@@ -95,7 +95,7 @@ function oe(b) {
|
|
|
95
95
|
const S = b.spacing ? b.spacing : "";
|
|
96
96
|
return S === "" ? "" : `gap:${S}px;`;
|
|
97
97
|
}
|
|
98
|
-
function le(b, S,
|
|
98
|
+
function le(b, S, a) {
|
|
99
99
|
switch (S) {
|
|
100
100
|
case "padding":
|
|
101
101
|
return Mt(b);
|
|
@@ -124,7 +124,7 @@ function le(b, S, u) {
|
|
|
124
124
|
case "maxLineClamp":
|
|
125
125
|
return ee(b);
|
|
126
126
|
case "flexWidth":
|
|
127
|
-
return re(b,
|
|
127
|
+
return re(b, a);
|
|
128
128
|
case "flexDirection":
|
|
129
129
|
return ne(b);
|
|
130
130
|
case "justifyContent":
|
|
@@ -155,11 +155,11 @@ JSZip uses the library pako released under the MIT license :
|
|
|
155
155
|
https://github.com/nodeca/pako/blob/main/LICENSE
|
|
156
156
|
*/
|
|
157
157
|
(function(b, S) {
|
|
158
|
-
(function(
|
|
159
|
-
b.exports =
|
|
158
|
+
(function(a) {
|
|
159
|
+
b.exports = a();
|
|
160
160
|
})(function() {
|
|
161
|
-
return function
|
|
162
|
-
function
|
|
161
|
+
return function a(C, y, h) {
|
|
162
|
+
function o(d, v) {
|
|
163
163
|
if (!y[d]) {
|
|
164
164
|
if (!C[d]) {
|
|
165
165
|
var _ = typeof kt == "function" && kt;
|
|
@@ -173,97 +173,97 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
173
173
|
var i = y[d] = { exports: {} };
|
|
174
174
|
C[d][0].call(i.exports, function(p) {
|
|
175
175
|
var n = C[d][1][p];
|
|
176
|
-
return
|
|
177
|
-
}, i, i.exports,
|
|
176
|
+
return o(n || p);
|
|
177
|
+
}, i, i.exports, a, C, y, h);
|
|
178
178
|
}
|
|
179
179
|
return y[d].exports;
|
|
180
180
|
}
|
|
181
|
-
for (var r = typeof kt == "function" && kt,
|
|
182
|
-
|
|
183
|
-
return
|
|
184
|
-
}({ 1: [function(
|
|
185
|
-
var
|
|
186
|
-
y.encode = function(
|
|
187
|
-
for (var d, v, _, m, i, p, n, c = [], s = 0, g =
|
|
188
|
-
k = g - s, _ = z ? (d =
|
|
181
|
+
for (var r = typeof kt == "function" && kt, u = 0; u < h.length; u++)
|
|
182
|
+
o(h[u]);
|
|
183
|
+
return o;
|
|
184
|
+
}({ 1: [function(a, C, y) {
|
|
185
|
+
var h = a("./utils"), o = a("./support"), r = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";
|
|
186
|
+
y.encode = function(u) {
|
|
187
|
+
for (var d, v, _, m, i, p, n, c = [], s = 0, g = u.length, k = g, z = h.getTypeOf(u) !== "string"; s < u.length; )
|
|
188
|
+
k = g - s, _ = z ? (d = u[s++], v = s < g ? u[s++] : 0, s < g ? u[s++] : 0) : (d = u.charCodeAt(s++), v = s < g ? u.charCodeAt(s++) : 0, s < g ? u.charCodeAt(s++) : 0), m = d >> 2, i = (3 & d) << 4 | v >> 4, p = 1 < k ? (15 & v) << 2 | _ >> 6 : 64, n = 2 < k ? 63 & _ : 64, c.push(r.charAt(m) + r.charAt(i) + r.charAt(p) + r.charAt(n));
|
|
189
189
|
return c.join("");
|
|
190
|
-
}, y.decode = function(
|
|
190
|
+
}, y.decode = function(u) {
|
|
191
191
|
var d, v, _, m, i, p, n = 0, c = 0, s = "data:";
|
|
192
|
-
if (
|
|
192
|
+
if (u.substr(0, s.length) === s)
|
|
193
193
|
throw new Error("Invalid base64 input, it looks like a data url.");
|
|
194
|
-
var g, k = 3 * (
|
|
195
|
-
if (
|
|
194
|
+
var g, k = 3 * (u = u.replace(/[^A-Za-z0-9+/=]/g, "")).length / 4;
|
|
195
|
+
if (u.charAt(u.length - 1) === r.charAt(64) && k--, u.charAt(u.length - 2) === r.charAt(64) && k--, k % 1 != 0)
|
|
196
196
|
throw new Error("Invalid base64 input, bad content length.");
|
|
197
|
-
for (g =
|
|
198
|
-
d = r.indexOf(
|
|
197
|
+
for (g = o.uint8array ? new Uint8Array(0 | k) : new Array(0 | k); n < u.length; )
|
|
198
|
+
d = r.indexOf(u.charAt(n++)) << 2 | (m = r.indexOf(u.charAt(n++))) >> 4, v = (15 & m) << 4 | (i = r.indexOf(u.charAt(n++))) >> 2, _ = (3 & i) << 6 | (p = r.indexOf(u.charAt(n++))), g[c++] = d, i !== 64 && (g[c++] = v), p !== 64 && (g[c++] = _);
|
|
199
199
|
return g;
|
|
200
200
|
};
|
|
201
|
-
}, { "./support": 30, "./utils": 32 }], 2: [function(
|
|
202
|
-
var
|
|
201
|
+
}, { "./support": 30, "./utils": 32 }], 2: [function(a, C, y) {
|
|
202
|
+
var h = a("./external"), o = a("./stream/DataWorker"), r = a("./stream/Crc32Probe"), u = a("./stream/DataLengthProbe");
|
|
203
203
|
function d(v, _, m, i, p) {
|
|
204
204
|
this.compressedSize = v, this.uncompressedSize = _, this.crc32 = m, this.compression = i, this.compressedContent = p;
|
|
205
205
|
}
|
|
206
206
|
d.prototype = { getContentWorker: function() {
|
|
207
|
-
var v = new
|
|
207
|
+
var v = new o(h.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new u("data_length")), _ = this;
|
|
208
208
|
return v.on("end", function() {
|
|
209
209
|
if (this.streamInfo.data_length !== _.uncompressedSize)
|
|
210
210
|
throw new Error("Bug : uncompressed data size mismatch");
|
|
211
211
|
}), v;
|
|
212
212
|
}, getCompressedWorker: function() {
|
|
213
|
-
return new
|
|
213
|
+
return new o(h.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize", this.compressedSize).withStreamInfo("uncompressedSize", this.uncompressedSize).withStreamInfo("crc32", this.crc32).withStreamInfo("compression", this.compression);
|
|
214
214
|
} }, d.createWorkerFrom = function(v, _, m) {
|
|
215
|
-
return v.pipe(new r()).pipe(new
|
|
215
|
+
return v.pipe(new r()).pipe(new u("uncompressedSize")).pipe(_.compressWorker(m)).pipe(new u("compressedSize")).withStreamInfo("compression", _);
|
|
216
216
|
}, C.exports = d;
|
|
217
|
-
}, { "./external": 6, "./stream/Crc32Probe": 25, "./stream/DataLengthProbe": 26, "./stream/DataWorker": 27 }], 3: [function(
|
|
218
|
-
var
|
|
217
|
+
}, { "./external": 6, "./stream/Crc32Probe": 25, "./stream/DataLengthProbe": 26, "./stream/DataWorker": 27 }], 3: [function(a, C, y) {
|
|
218
|
+
var h = a("./stream/GenericWorker");
|
|
219
219
|
y.STORE = { magic: "\0\0", compressWorker: function() {
|
|
220
|
-
return new
|
|
220
|
+
return new h("STORE compression");
|
|
221
221
|
}, uncompressWorker: function() {
|
|
222
|
-
return new
|
|
223
|
-
} }, y.DEFLATE =
|
|
224
|
-
}, { "./flate": 7, "./stream/GenericWorker": 28 }], 4: [function(
|
|
225
|
-
var
|
|
226
|
-
for (var r,
|
|
222
|
+
return new h("STORE decompression");
|
|
223
|
+
} }, y.DEFLATE = a("./flate");
|
|
224
|
+
}, { "./flate": 7, "./stream/GenericWorker": 28 }], 4: [function(a, C, y) {
|
|
225
|
+
var h = a("./utils"), o = function() {
|
|
226
|
+
for (var r, u = [], d = 0; d < 256; d++) {
|
|
227
227
|
r = d;
|
|
228
228
|
for (var v = 0; v < 8; v++)
|
|
229
229
|
r = 1 & r ? 3988292384 ^ r >>> 1 : r >>> 1;
|
|
230
|
-
|
|
230
|
+
u[d] = r;
|
|
231
231
|
}
|
|
232
|
-
return
|
|
232
|
+
return u;
|
|
233
233
|
}();
|
|
234
|
-
C.exports = function(r,
|
|
235
|
-
return r !== void 0 && r.length ?
|
|
236
|
-
var i =
|
|
234
|
+
C.exports = function(r, u) {
|
|
235
|
+
return r !== void 0 && r.length ? h.getTypeOf(r) !== "string" ? function(d, v, _, m) {
|
|
236
|
+
var i = o, p = m + _;
|
|
237
237
|
d ^= -1;
|
|
238
238
|
for (var n = m; n < p; n++)
|
|
239
239
|
d = d >>> 8 ^ i[255 & (d ^ v[n])];
|
|
240
240
|
return -1 ^ d;
|
|
241
|
-
}(0 |
|
|
242
|
-
var i =
|
|
241
|
+
}(0 | u, r, r.length, 0) : function(d, v, _, m) {
|
|
242
|
+
var i = o, p = m + _;
|
|
243
243
|
d ^= -1;
|
|
244
244
|
for (var n = m; n < p; n++)
|
|
245
245
|
d = d >>> 8 ^ i[255 & (d ^ v.charCodeAt(n))];
|
|
246
246
|
return -1 ^ d;
|
|
247
|
-
}(0 |
|
|
247
|
+
}(0 | u, r, r.length, 0) : 0;
|
|
248
248
|
};
|
|
249
|
-
}, { "./utils": 32 }], 5: [function(
|
|
249
|
+
}, { "./utils": 32 }], 5: [function(a, C, y) {
|
|
250
250
|
y.base64 = !1, y.binary = !1, y.dir = !1, y.createFolders = !0, y.date = null, y.compression = null, y.compressionOptions = null, y.comment = null, y.unixPermissions = null, y.dosPermissions = null;
|
|
251
|
-
}, {}], 6: [function(
|
|
252
|
-
var
|
|
253
|
-
|
|
254
|
-
}, { lie: 37 }], 7: [function(
|
|
255
|
-
var
|
|
251
|
+
}, {}], 6: [function(a, C, y) {
|
|
252
|
+
var h = null;
|
|
253
|
+
h = typeof Promise < "u" ? Promise : a("lie"), C.exports = { Promise: h };
|
|
254
|
+
}, { lie: 37 }], 7: [function(a, C, y) {
|
|
255
|
+
var h = typeof Uint8Array < "u" && typeof Uint16Array < "u" && typeof Uint32Array < "u", o = a("pako"), r = a("./utils"), u = a("./stream/GenericWorker"), d = h ? "uint8array" : "array";
|
|
256
256
|
function v(_, m) {
|
|
257
|
-
|
|
257
|
+
u.call(this, "FlateWorker/" + _), this._pako = null, this._pakoAction = _, this._pakoOptions = m, this.meta = {};
|
|
258
258
|
}
|
|
259
|
-
y.magic = "\b\0", r.inherits(v,
|
|
259
|
+
y.magic = "\b\0", r.inherits(v, u), v.prototype.processChunk = function(_) {
|
|
260
260
|
this.meta = _.meta, this._pako === null && this._createPako(), this._pako.push(r.transformTo(d, _.data), !1);
|
|
261
261
|
}, v.prototype.flush = function() {
|
|
262
|
-
|
|
262
|
+
u.prototype.flush.call(this), this._pako === null && this._createPako(), this._pako.push([], !0);
|
|
263
263
|
}, v.prototype.cleanUp = function() {
|
|
264
|
-
|
|
264
|
+
u.prototype.cleanUp.call(this), this._pako = null;
|
|
265
265
|
}, v.prototype._createPako = function() {
|
|
266
|
-
this._pako = new
|
|
266
|
+
this._pako = new o[this._pakoAction]({ raw: !0, level: this._pakoOptions.level || -1 });
|
|
267
267
|
var _ = this;
|
|
268
268
|
this._pako.onData = function(m) {
|
|
269
269
|
_.push({ data: m, meta: _.meta });
|
|
@@ -273,14 +273,14 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
273
273
|
}, y.uncompressWorker = function() {
|
|
274
274
|
return new v("Inflate", {});
|
|
275
275
|
};
|
|
276
|
-
}, { "./stream/GenericWorker": 28, "./utils": 32, pako: 38 }], 8: [function(
|
|
277
|
-
function
|
|
276
|
+
}, { "./stream/GenericWorker": 28, "./utils": 32, pako: 38 }], 8: [function(a, C, y) {
|
|
277
|
+
function h(i, p) {
|
|
278
278
|
var n, c = "";
|
|
279
279
|
for (n = 0; n < p; n++)
|
|
280
280
|
c += String.fromCharCode(255 & i), i >>>= 8;
|
|
281
281
|
return c;
|
|
282
282
|
}
|
|
283
|
-
function
|
|
283
|
+
function o(i, p, n, c, s, g) {
|
|
284
284
|
var k, z, E = i.file, P = i.compression, T = g !== d.utf8encode, W = r.transformTo("string", g(E.name)), R = r.transformTo("string", d.utf8encode(E.name)), $ = E.comment, q = r.transformTo("string", g($)), w = r.transformTo("string", d.utf8encode($)), D = R.length !== E.name.length, e = w.length !== $.length, L = "", Q = "", j = "", tt = E.dir, Z = E.date, V = { crc32: 0, compressedSize: 0, uncompressedSize: 0 };
|
|
285
285
|
p && !n || (V.crc32 = i.crc32, V.compressedSize = i.compressedSize, V.uncompressedSize = i.uncompressedSize);
|
|
286
286
|
var O = 0;
|
|
@@ -291,32 +291,32 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
291
291
|
return G || (ht = st ? 16893 : 33204), (65535 & ht) << 16;
|
|
292
292
|
}(E.unixPermissions, tt)) : (J = 20, I |= function(G) {
|
|
293
293
|
return 63 & (G || 0);
|
|
294
|
-
}(E.dosPermissions)), k = Z.getUTCHours(), k <<= 6, k |= Z.getUTCMinutes(), k <<= 5, k |= Z.getUTCSeconds() / 2, z = Z.getUTCFullYear() - 1980, z <<= 4, z |= Z.getUTCMonth() + 1, z <<= 5, z |= Z.getUTCDate(), D && (Q =
|
|
294
|
+
}(E.dosPermissions)), k = Z.getUTCHours(), k <<= 6, k |= Z.getUTCMinutes(), k <<= 5, k |= Z.getUTCSeconds() / 2, z = Z.getUTCFullYear() - 1980, z <<= 4, z |= Z.getUTCMonth() + 1, z <<= 5, z |= Z.getUTCDate(), D && (Q = h(1, 1) + h(v(W), 4) + R, L += "up" + h(Q.length, 2) + Q), e && (j = h(1, 1) + h(v(q), 4) + w, L += "uc" + h(j.length, 2) + j);
|
|
295
295
|
var K = "";
|
|
296
296
|
return K += `
|
|
297
|
-
\0`, K +=
|
|
297
|
+
\0`, K += h(O, 2), K += P.magic, K += h(k, 2), K += h(z, 2), K += h(V.crc32, 4), K += h(V.compressedSize, 4), K += h(V.uncompressedSize, 4), K += h(W.length, 2), K += h(L.length, 2), { fileRecord: _.LOCAL_FILE_HEADER + K + W + L, dirRecord: _.CENTRAL_FILE_HEADER + h(J, 2) + K + h(q.length, 2) + "\0\0\0\0" + h(I, 4) + h(c, 4) + W + L + q };
|
|
298
298
|
}
|
|
299
|
-
var r =
|
|
299
|
+
var r = a("../utils"), u = a("../stream/GenericWorker"), d = a("../utf8"), v = a("../crc32"), _ = a("../signature");
|
|
300
300
|
function m(i, p, n, c) {
|
|
301
|
-
|
|
301
|
+
u.call(this, "ZipFileWorker"), this.bytesWritten = 0, this.zipComment = p, this.zipPlatform = n, this.encodeFileName = c, this.streamFiles = i, this.accumulate = !1, this.contentBuffer = [], this.dirRecords = [], this.currentSourceOffset = 0, this.entriesCount = 0, this.currentFile = null, this._sources = [];
|
|
302
302
|
}
|
|
303
|
-
r.inherits(m,
|
|
303
|
+
r.inherits(m, u), m.prototype.push = function(i) {
|
|
304
304
|
var p = i.meta.percent || 0, n = this.entriesCount, c = this._sources.length;
|
|
305
|
-
this.accumulate ? this.contentBuffer.push(i) : (this.bytesWritten += i.data.length,
|
|
305
|
+
this.accumulate ? this.contentBuffer.push(i) : (this.bytesWritten += i.data.length, u.prototype.push.call(this, { data: i.data, meta: { currentFile: this.currentFile, percent: n ? (p + 100 * (n - c - 1)) / n : 100 } }));
|
|
306
306
|
}, m.prototype.openedSource = function(i) {
|
|
307
307
|
this.currentSourceOffset = this.bytesWritten, this.currentFile = i.file.name;
|
|
308
308
|
var p = this.streamFiles && !i.file.dir;
|
|
309
309
|
if (p) {
|
|
310
|
-
var n =
|
|
310
|
+
var n = o(i, p, !1, this.currentSourceOffset, this.zipPlatform, this.encodeFileName);
|
|
311
311
|
this.push({ data: n.fileRecord, meta: { percent: 0 } });
|
|
312
312
|
} else
|
|
313
313
|
this.accumulate = !0;
|
|
314
314
|
}, m.prototype.closedSource = function(i) {
|
|
315
315
|
this.accumulate = !1;
|
|
316
|
-
var p = this.streamFiles && !i.file.dir, n =
|
|
316
|
+
var p = this.streamFiles && !i.file.dir, n = o(i, p, !0, this.currentSourceOffset, this.zipPlatform, this.encodeFileName);
|
|
317
317
|
if (this.dirRecords.push(n.dirRecord), p)
|
|
318
318
|
this.push({ data: function(c) {
|
|
319
|
-
return _.DATA_DESCRIPTOR +
|
|
319
|
+
return _.DATA_DESCRIPTOR + h(c.crc32, 4) + h(c.compressedSize, 4) + h(c.uncompressedSize, 4);
|
|
320
320
|
}(i), meta: { percent: 100 } });
|
|
321
321
|
else
|
|
322
322
|
for (this.push({ data: n.fileRecord, meta: { percent: 0 } }); this.contentBuffer.length; )
|
|
@@ -327,7 +327,7 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
327
327
|
this.push({ data: this.dirRecords[p], meta: { percent: 100 } });
|
|
328
328
|
var n = this.bytesWritten - i, c = function(s, g, k, z, E) {
|
|
329
329
|
var P = r.transformTo("string", E(z));
|
|
330
|
-
return _.CENTRAL_DIRECTORY_END + "\0\0\0\0" +
|
|
330
|
+
return _.CENTRAL_DIRECTORY_END + "\0\0\0\0" + h(s, 2) + h(s, 2) + h(g, 4) + h(k, 4) + h(P.length, 2) + P;
|
|
331
331
|
}(this.dirRecords.length, n, i, this.zipComment, this.encodeFileName);
|
|
332
332
|
this.push({ data: c, meta: { percent: 100 } });
|
|
333
333
|
}, m.prototype.prepareNextSource = function() {
|
|
@@ -343,10 +343,10 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
343
343
|
p.error(n);
|
|
344
344
|
}), this;
|
|
345
345
|
}, m.prototype.resume = function() {
|
|
346
|
-
return !!
|
|
346
|
+
return !!u.prototype.resume.call(this) && (!this.previous && this._sources.length ? (this.prepareNextSource(), !0) : this.previous || this._sources.length || this.generatedError ? void 0 : (this.end(), !0));
|
|
347
347
|
}, m.prototype.error = function(i) {
|
|
348
348
|
var p = this._sources;
|
|
349
|
-
if (!
|
|
349
|
+
if (!u.prototype.error.call(this, i))
|
|
350
350
|
return !1;
|
|
351
351
|
for (var n = 0; n < p.length; n++)
|
|
352
352
|
try {
|
|
@@ -355,23 +355,23 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
355
355
|
}
|
|
356
356
|
return !0;
|
|
357
357
|
}, m.prototype.lock = function() {
|
|
358
|
-
|
|
358
|
+
u.prototype.lock.call(this);
|
|
359
359
|
for (var i = this._sources, p = 0; p < i.length; p++)
|
|
360
360
|
i[p].lock();
|
|
361
361
|
}, C.exports = m;
|
|
362
|
-
}, { "../crc32": 4, "../signature": 23, "../stream/GenericWorker": 28, "../utf8": 31, "../utils": 32 }], 9: [function(
|
|
363
|
-
var
|
|
364
|
-
y.generateWorker = function(r,
|
|
365
|
-
var v = new
|
|
362
|
+
}, { "../crc32": 4, "../signature": 23, "../stream/GenericWorker": 28, "../utf8": 31, "../utils": 32 }], 9: [function(a, C, y) {
|
|
363
|
+
var h = a("../compressions"), o = a("./ZipFileWorker");
|
|
364
|
+
y.generateWorker = function(r, u, d) {
|
|
365
|
+
var v = new o(u.streamFiles, d, u.platform, u.encodeFileName), _ = 0;
|
|
366
366
|
try {
|
|
367
367
|
r.forEach(function(m, i) {
|
|
368
368
|
_++;
|
|
369
369
|
var p = function(g, k) {
|
|
370
|
-
var z = g || k, E =
|
|
370
|
+
var z = g || k, E = h[z];
|
|
371
371
|
if (!E)
|
|
372
372
|
throw new Error(z + " is not a valid compression method !");
|
|
373
373
|
return E;
|
|
374
|
-
}(i.options.compression,
|
|
374
|
+
}(i.options.compression, u.compression), n = i.options.compressionOptions || u.compressionOptions || {}, c = i.dir, s = i.date;
|
|
375
375
|
i._compressWorker(p, n).withStreamInfo("file", { name: m, dir: c, date: s, comment: i.comment || "", unixPermissions: i.unixPermissions, dosPermissions: i.dosPermissions }).pipe(v);
|
|
376
376
|
}), v.entriesCount = _;
|
|
377
377
|
} catch (m) {
|
|
@@ -379,26 +379,26 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
379
379
|
}
|
|
380
380
|
return v;
|
|
381
381
|
};
|
|
382
|
-
}, { "../compressions": 3, "./ZipFileWorker": 8 }], 10: [function(
|
|
383
|
-
function
|
|
384
|
-
if (!(this instanceof
|
|
385
|
-
return new
|
|
382
|
+
}, { "../compressions": 3, "./ZipFileWorker": 8 }], 10: [function(a, C, y) {
|
|
383
|
+
function h() {
|
|
384
|
+
if (!(this instanceof h))
|
|
385
|
+
return new h();
|
|
386
386
|
if (arguments.length)
|
|
387
387
|
throw new Error("The constructor with parameters has been removed in JSZip 3.0, please check the upgrade guide.");
|
|
388
388
|
this.files = /* @__PURE__ */ Object.create(null), this.comment = null, this.root = "", this.clone = function() {
|
|
389
|
-
var
|
|
389
|
+
var o = new h();
|
|
390
390
|
for (var r in this)
|
|
391
|
-
typeof this[r] != "function" && (
|
|
392
|
-
return
|
|
391
|
+
typeof this[r] != "function" && (o[r] = this[r]);
|
|
392
|
+
return o;
|
|
393
393
|
};
|
|
394
394
|
}
|
|
395
|
-
(
|
|
396
|
-
return new
|
|
397
|
-
},
|
|
398
|
-
}, { "./defaults": 5, "./external": 6, "./load": 11, "./object": 15, "./support": 30 }], 11: [function(
|
|
399
|
-
var
|
|
395
|
+
(h.prototype = a("./object")).loadAsync = a("./load"), h.support = a("./support"), h.defaults = a("./defaults"), h.version = "3.10.1", h.loadAsync = function(o, r) {
|
|
396
|
+
return new h().loadAsync(o, r);
|
|
397
|
+
}, h.external = a("./external"), C.exports = h;
|
|
398
|
+
}, { "./defaults": 5, "./external": 6, "./load": 11, "./object": 15, "./support": 30 }], 11: [function(a, C, y) {
|
|
399
|
+
var h = a("./utils"), o = a("./external"), r = a("./utf8"), u = a("./zipEntries"), d = a("./stream/Crc32Probe"), v = a("./nodejsUtils");
|
|
400
400
|
function _(m) {
|
|
401
|
-
return new
|
|
401
|
+
return new o.Promise(function(i, p) {
|
|
402
402
|
var n = m.decompressed.getContentWorker().pipe(new d());
|
|
403
403
|
n.on("error", function(c) {
|
|
404
404
|
p(c);
|
|
@@ -409,31 +409,31 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
409
409
|
}
|
|
410
410
|
C.exports = function(m, i) {
|
|
411
411
|
var p = this;
|
|
412
|
-
return i =
|
|
413
|
-
var c = new
|
|
412
|
+
return i = h.extend(i || {}, { base64: !1, checkCRC32: !1, optimizedBinaryString: !1, createFolders: !1, decodeFileName: r.utf8decode }), v.isNode && v.isStream(m) ? o.Promise.reject(new Error("JSZip can't accept a stream when loading a zip file.")) : h.prepareContent("the loaded zip file", m, !0, i.optimizedBinaryString, i.base64).then(function(n) {
|
|
413
|
+
var c = new u(i);
|
|
414
414
|
return c.load(n), c;
|
|
415
415
|
}).then(function(n) {
|
|
416
|
-
var c = [
|
|
416
|
+
var c = [o.Promise.resolve(n)], s = n.files;
|
|
417
417
|
if (i.checkCRC32)
|
|
418
418
|
for (var g = 0; g < s.length; g++)
|
|
419
419
|
c.push(_(s[g]));
|
|
420
|
-
return
|
|
420
|
+
return o.Promise.all(c);
|
|
421
421
|
}).then(function(n) {
|
|
422
422
|
for (var c = n.shift(), s = c.files, g = 0; g < s.length; g++) {
|
|
423
|
-
var k = s[g], z = k.fileNameStr, E =
|
|
423
|
+
var k = s[g], z = k.fileNameStr, E = h.resolve(k.fileNameStr);
|
|
424
424
|
p.file(E, k.decompressed, { binary: !0, optimizedBinaryString: !0, date: k.date, dir: k.dir, comment: k.fileCommentStr.length ? k.fileCommentStr : null, unixPermissions: k.unixPermissions, dosPermissions: k.dosPermissions, createFolders: i.createFolders }), k.dir || (p.file(E).unsafeOriginalName = z);
|
|
425
425
|
}
|
|
426
426
|
return c.zipComment.length && (p.comment = c.zipComment), p;
|
|
427
427
|
});
|
|
428
428
|
};
|
|
429
|
-
}, { "./external": 6, "./nodejsUtils": 14, "./stream/Crc32Probe": 25, "./utf8": 31, "./utils": 32, "./zipEntries": 33 }], 12: [function(
|
|
430
|
-
var
|
|
431
|
-
function r(
|
|
432
|
-
|
|
429
|
+
}, { "./external": 6, "./nodejsUtils": 14, "./stream/Crc32Probe": 25, "./utf8": 31, "./utils": 32, "./zipEntries": 33 }], 12: [function(a, C, y) {
|
|
430
|
+
var h = a("../utils"), o = a("../stream/GenericWorker");
|
|
431
|
+
function r(u, d) {
|
|
432
|
+
o.call(this, "Nodejs stream input adapter for " + u), this._upstreamEnded = !1, this._bindStream(d);
|
|
433
433
|
}
|
|
434
|
-
|
|
434
|
+
h.inherits(r, o), r.prototype._bindStream = function(u) {
|
|
435
435
|
var d = this;
|
|
436
|
-
(this._stream =
|
|
436
|
+
(this._stream = u).pause(), u.on("data", function(v) {
|
|
437
437
|
d.push({ data: v, meta: { percent: 0 } });
|
|
438
438
|
}).on("error", function(v) {
|
|
439
439
|
d.isPaused ? this.generatedError = v : d.error(v);
|
|
@@ -441,14 +441,14 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
441
441
|
d.isPaused ? d._upstreamEnded = !0 : d.end();
|
|
442
442
|
});
|
|
443
443
|
}, r.prototype.pause = function() {
|
|
444
|
-
return !!
|
|
444
|
+
return !!o.prototype.pause.call(this) && (this._stream.pause(), !0);
|
|
445
445
|
}, r.prototype.resume = function() {
|
|
446
|
-
return !!
|
|
446
|
+
return !!o.prototype.resume.call(this) && (this._upstreamEnded ? this.end() : this._stream.resume(), !0);
|
|
447
447
|
}, C.exports = r;
|
|
448
|
-
}, { "../stream/GenericWorker": 28, "../utils": 32 }], 13: [function(
|
|
449
|
-
var
|
|
450
|
-
function
|
|
451
|
-
|
|
448
|
+
}, { "../stream/GenericWorker": 28, "../utils": 32 }], 13: [function(a, C, y) {
|
|
449
|
+
var h = a("readable-stream").Readable;
|
|
450
|
+
function o(r, u, d) {
|
|
451
|
+
h.call(this, u), this._helper = r;
|
|
452
452
|
var v = this;
|
|
453
453
|
r.on("data", function(_, m) {
|
|
454
454
|
v.push(_) || v._helper.pause(), d && d(m);
|
|
@@ -458,45 +458,45 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
458
458
|
v.push(null);
|
|
459
459
|
});
|
|
460
460
|
}
|
|
461
|
-
|
|
461
|
+
a("../utils").inherits(o, h), o.prototype._read = function() {
|
|
462
462
|
this._helper.resume();
|
|
463
|
-
}, C.exports =
|
|
464
|
-
}, { "../utils": 32, "readable-stream": 16 }], 14: [function(
|
|
465
|
-
C.exports = { isNode: typeof Buffer < "u", newBufferFrom: function(
|
|
463
|
+
}, C.exports = o;
|
|
464
|
+
}, { "../utils": 32, "readable-stream": 16 }], 14: [function(a, C, y) {
|
|
465
|
+
C.exports = { isNode: typeof Buffer < "u", newBufferFrom: function(h, o) {
|
|
466
466
|
if (Buffer.from && Buffer.from !== Uint8Array.from)
|
|
467
|
-
return Buffer.from(
|
|
468
|
-
if (typeof
|
|
467
|
+
return Buffer.from(h, o);
|
|
468
|
+
if (typeof h == "number")
|
|
469
469
|
throw new Error('The "data" argument must not be a number');
|
|
470
|
-
return new Buffer(
|
|
471
|
-
}, allocBuffer: function(
|
|
470
|
+
return new Buffer(h, o);
|
|
471
|
+
}, allocBuffer: function(h) {
|
|
472
472
|
if (Buffer.alloc)
|
|
473
|
-
return Buffer.alloc(
|
|
474
|
-
var
|
|
475
|
-
return
|
|
476
|
-
}, isBuffer: function(
|
|
477
|
-
return Buffer.isBuffer(
|
|
478
|
-
}, isStream: function(
|
|
479
|
-
return
|
|
473
|
+
return Buffer.alloc(h);
|
|
474
|
+
var o = new Buffer(h);
|
|
475
|
+
return o.fill(0), o;
|
|
476
|
+
}, isBuffer: function(h) {
|
|
477
|
+
return Buffer.isBuffer(h);
|
|
478
|
+
}, isStream: function(h) {
|
|
479
|
+
return h && typeof h.on == "function" && typeof h.pause == "function" && typeof h.resume == "function";
|
|
480
480
|
} };
|
|
481
|
-
}, {}], 15: [function(
|
|
482
|
-
function
|
|
481
|
+
}, {}], 15: [function(a, C, y) {
|
|
482
|
+
function h(E, P, T) {
|
|
483
483
|
var W, R = r.getTypeOf(P), $ = r.extend(T || {}, v);
|
|
484
484
|
$.date = $.date || new Date(), $.compression !== null && ($.compression = $.compression.toUpperCase()), typeof $.unixPermissions == "string" && ($.unixPermissions = parseInt($.unixPermissions, 8)), $.unixPermissions && 16384 & $.unixPermissions && ($.dir = !0), $.dosPermissions && 16 & $.dosPermissions && ($.dir = !0), $.dir && (E = s(E)), $.createFolders && (W = c(E)) && g.call(this, W, !0);
|
|
485
485
|
var q = R === "string" && $.binary === !1 && $.base64 === !1;
|
|
486
486
|
T && T.binary !== void 0 || ($.binary = !q), (P instanceof _ && P.uncompressedSize === 0 || $.dir || !P || P.length === 0) && ($.base64 = !1, $.binary = !0, P = "", $.compression = "STORE", R = "string");
|
|
487
487
|
var w = null;
|
|
488
|
-
w = P instanceof _ || P instanceof
|
|
488
|
+
w = P instanceof _ || P instanceof u ? P : p.isNode && p.isStream(P) ? new n(E, P) : r.prepareContent(E, P, $.binary, $.optimizedBinaryString, $.base64);
|
|
489
489
|
var D = new m(E, w, $);
|
|
490
490
|
this.files[E] = D;
|
|
491
491
|
}
|
|
492
|
-
var
|
|
492
|
+
var o = a("./utf8"), r = a("./utils"), u = a("./stream/GenericWorker"), d = a("./stream/StreamHelper"), v = a("./defaults"), _ = a("./compressedObject"), m = a("./zipObject"), i = a("./generate"), p = a("./nodejsUtils"), n = a("./nodejs/NodejsStreamInputAdapter"), c = function(E) {
|
|
493
493
|
E.slice(-1) === "/" && (E = E.substring(0, E.length - 1));
|
|
494
494
|
var P = E.lastIndexOf("/");
|
|
495
495
|
return 0 < P ? E.substring(0, P) : "";
|
|
496
496
|
}, s = function(E) {
|
|
497
497
|
return E.slice(-1) !== "/" && (E += "/"), E;
|
|
498
498
|
}, g = function(E, P) {
|
|
499
|
-
return P = P !== void 0 ? P : v.createFolders, E = s(E), this.files[E] ||
|
|
499
|
+
return P = P !== void 0 ? P : v.createFolders, E = s(E), this.files[E] || h.call(this, E, null, { dir: !0, createFolders: P }), this.files[E];
|
|
500
500
|
};
|
|
501
501
|
function k(E) {
|
|
502
502
|
return Object.prototype.toString.call(E) === "[object RegExp]";
|
|
@@ -514,7 +514,7 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
514
514
|
}), P;
|
|
515
515
|
}, file: function(E, P, T) {
|
|
516
516
|
if (arguments.length !== 1)
|
|
517
|
-
return E = this.root + E,
|
|
517
|
+
return E = this.root + E, h.call(this, E, P, T), this;
|
|
518
518
|
if (k(E)) {
|
|
519
519
|
var W = E;
|
|
520
520
|
return this.filter(function($, q) {
|
|
@@ -548,13 +548,13 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
548
548
|
}, generateInternalStream: function(E) {
|
|
549
549
|
var P, T = {};
|
|
550
550
|
try {
|
|
551
|
-
if ((T = r.extend(E || {}, { streamFiles: !1, compression: "STORE", compressionOptions: null, type: "", platform: "DOS", comment: null, mimeType: "application/zip", encodeFileName:
|
|
551
|
+
if ((T = r.extend(E || {}, { streamFiles: !1, compression: "STORE", compressionOptions: null, type: "", platform: "DOS", comment: null, mimeType: "application/zip", encodeFileName: o.utf8encode })).type = T.type.toLowerCase(), T.compression = T.compression.toUpperCase(), T.type === "binarystring" && (T.type = "string"), !T.type)
|
|
552
552
|
throw new Error("No output type specified.");
|
|
553
553
|
r.checkSupport(T.type), T.platform !== "darwin" && T.platform !== "freebsd" && T.platform !== "linux" && T.platform !== "sunos" || (T.platform = "UNIX"), T.platform === "win32" && (T.platform = "DOS");
|
|
554
554
|
var W = T.comment || this.comment || "";
|
|
555
555
|
P = i.generateWorker(this, T, W);
|
|
556
556
|
} catch (R) {
|
|
557
|
-
(P = new
|
|
557
|
+
(P = new u("error")).error(R);
|
|
558
558
|
}
|
|
559
559
|
return new d(P, T.type || "string", T.mimeType);
|
|
560
560
|
}, generateAsync: function(E, P) {
|
|
@@ -563,37 +563,37 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
563
563
|
return (E = E || {}).type || (E.type = "nodebuffer"), this.generateInternalStream(E).toNodejsStream(P);
|
|
564
564
|
} };
|
|
565
565
|
C.exports = z;
|
|
566
|
-
}, { "./compressedObject": 2, "./defaults": 5, "./generate": 9, "./nodejs/NodejsStreamInputAdapter": 12, "./nodejsUtils": 14, "./stream/GenericWorker": 28, "./stream/StreamHelper": 29, "./utf8": 31, "./utils": 32, "./zipObject": 35 }], 16: [function(
|
|
567
|
-
C.exports =
|
|
568
|
-
}, { stream: void 0 }], 17: [function(
|
|
569
|
-
var
|
|
570
|
-
function
|
|
571
|
-
|
|
572
|
-
for (var
|
|
573
|
-
r[
|
|
574
|
-
}
|
|
575
|
-
|
|
566
|
+
}, { "./compressedObject": 2, "./defaults": 5, "./generate": 9, "./nodejs/NodejsStreamInputAdapter": 12, "./nodejsUtils": 14, "./stream/GenericWorker": 28, "./stream/StreamHelper": 29, "./utf8": 31, "./utils": 32, "./zipObject": 35 }], 16: [function(a, C, y) {
|
|
567
|
+
C.exports = a("stream");
|
|
568
|
+
}, { stream: void 0 }], 17: [function(a, C, y) {
|
|
569
|
+
var h = a("./DataReader");
|
|
570
|
+
function o(r) {
|
|
571
|
+
h.call(this, r);
|
|
572
|
+
for (var u = 0; u < this.data.length; u++)
|
|
573
|
+
r[u] = 255 & r[u];
|
|
574
|
+
}
|
|
575
|
+
a("../utils").inherits(o, h), o.prototype.byteAt = function(r) {
|
|
576
576
|
return this.data[this.zero + r];
|
|
577
|
-
},
|
|
578
|
-
for (var
|
|
579
|
-
if (this.data[m] ===
|
|
577
|
+
}, o.prototype.lastIndexOfSignature = function(r) {
|
|
578
|
+
for (var u = r.charCodeAt(0), d = r.charCodeAt(1), v = r.charCodeAt(2), _ = r.charCodeAt(3), m = this.length - 4; 0 <= m; --m)
|
|
579
|
+
if (this.data[m] === u && this.data[m + 1] === d && this.data[m + 2] === v && this.data[m + 3] === _)
|
|
580
580
|
return m - this.zero;
|
|
581
581
|
return -1;
|
|
582
|
-
},
|
|
583
|
-
var
|
|
584
|
-
return
|
|
585
|
-
},
|
|
582
|
+
}, o.prototype.readAndCheckSignature = function(r) {
|
|
583
|
+
var u = r.charCodeAt(0), d = r.charCodeAt(1), v = r.charCodeAt(2), _ = r.charCodeAt(3), m = this.readData(4);
|
|
584
|
+
return u === m[0] && d === m[1] && v === m[2] && _ === m[3];
|
|
585
|
+
}, o.prototype.readData = function(r) {
|
|
586
586
|
if (this.checkOffset(r), r === 0)
|
|
587
587
|
return [];
|
|
588
|
-
var
|
|
589
|
-
return this.index += r,
|
|
590
|
-
}, C.exports =
|
|
591
|
-
}, { "../utils": 32, "./DataReader": 18 }], 18: [function(
|
|
592
|
-
var
|
|
593
|
-
function
|
|
588
|
+
var u = this.data.slice(this.zero + this.index, this.zero + this.index + r);
|
|
589
|
+
return this.index += r, u;
|
|
590
|
+
}, C.exports = o;
|
|
591
|
+
}, { "../utils": 32, "./DataReader": 18 }], 18: [function(a, C, y) {
|
|
592
|
+
var h = a("../utils");
|
|
593
|
+
function o(r) {
|
|
594
594
|
this.data = r, this.length = r.length, this.index = 0, this.zero = 0;
|
|
595
595
|
}
|
|
596
|
-
|
|
596
|
+
o.prototype = { checkOffset: function(r) {
|
|
597
597
|
this.checkIndex(this.index + r);
|
|
598
598
|
}, checkIndex: function(r) {
|
|
599
599
|
if (this.length < this.zero + r || r < 0)
|
|
@@ -604,196 +604,196 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
604
604
|
this.setIndex(this.index + r);
|
|
605
605
|
}, byteAt: function() {
|
|
606
606
|
}, readInt: function(r) {
|
|
607
|
-
var
|
|
608
|
-
for (this.checkOffset(r),
|
|
609
|
-
d = (d << 8) + this.byteAt(
|
|
607
|
+
var u, d = 0;
|
|
608
|
+
for (this.checkOffset(r), u = this.index + r - 1; u >= this.index; u--)
|
|
609
|
+
d = (d << 8) + this.byteAt(u);
|
|
610
610
|
return this.index += r, d;
|
|
611
611
|
}, readString: function(r) {
|
|
612
|
-
return
|
|
612
|
+
return h.transformTo("string", this.readData(r));
|
|
613
613
|
}, readData: function() {
|
|
614
614
|
}, lastIndexOfSignature: function() {
|
|
615
615
|
}, readAndCheckSignature: function() {
|
|
616
616
|
}, readDate: function() {
|
|
617
617
|
var r = this.readInt(4);
|
|
618
618
|
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));
|
|
619
|
-
} }, C.exports =
|
|
620
|
-
}, { "../utils": 32 }], 19: [function(
|
|
621
|
-
var
|
|
622
|
-
function
|
|
623
|
-
|
|
619
|
+
} }, C.exports = o;
|
|
620
|
+
}, { "../utils": 32 }], 19: [function(a, C, y) {
|
|
621
|
+
var h = a("./Uint8ArrayReader");
|
|
622
|
+
function o(r) {
|
|
623
|
+
h.call(this, r);
|
|
624
624
|
}
|
|
625
|
-
|
|
625
|
+
a("../utils").inherits(o, h), o.prototype.readData = function(r) {
|
|
626
626
|
this.checkOffset(r);
|
|
627
|
-
var
|
|
628
|
-
return this.index += r,
|
|
629
|
-
}, C.exports =
|
|
630
|
-
}, { "../utils": 32, "./Uint8ArrayReader": 21 }], 20: [function(
|
|
631
|
-
var
|
|
632
|
-
function
|
|
633
|
-
|
|
634
|
-
}
|
|
635
|
-
|
|
627
|
+
var u = this.data.slice(this.zero + this.index, this.zero + this.index + r);
|
|
628
|
+
return this.index += r, u;
|
|
629
|
+
}, C.exports = o;
|
|
630
|
+
}, { "../utils": 32, "./Uint8ArrayReader": 21 }], 20: [function(a, C, y) {
|
|
631
|
+
var h = a("./DataReader");
|
|
632
|
+
function o(r) {
|
|
633
|
+
h.call(this, r);
|
|
634
|
+
}
|
|
635
|
+
a("../utils").inherits(o, h), o.prototype.byteAt = function(r) {
|
|
636
636
|
return this.data.charCodeAt(this.zero + r);
|
|
637
|
-
},
|
|
637
|
+
}, o.prototype.lastIndexOfSignature = function(r) {
|
|
638
638
|
return this.data.lastIndexOf(r) - this.zero;
|
|
639
|
-
},
|
|
639
|
+
}, o.prototype.readAndCheckSignature = function(r) {
|
|
640
640
|
return r === this.readData(4);
|
|
641
|
-
},
|
|
641
|
+
}, o.prototype.readData = function(r) {
|
|
642
642
|
this.checkOffset(r);
|
|
643
|
-
var
|
|
644
|
-
return this.index += r,
|
|
645
|
-
}, C.exports =
|
|
646
|
-
}, { "../utils": 32, "./DataReader": 18 }], 21: [function(
|
|
647
|
-
var
|
|
648
|
-
function
|
|
649
|
-
|
|
650
|
-
}
|
|
651
|
-
|
|
643
|
+
var u = this.data.slice(this.zero + this.index, this.zero + this.index + r);
|
|
644
|
+
return this.index += r, u;
|
|
645
|
+
}, C.exports = o;
|
|
646
|
+
}, { "../utils": 32, "./DataReader": 18 }], 21: [function(a, C, y) {
|
|
647
|
+
var h = a("./ArrayReader");
|
|
648
|
+
function o(r) {
|
|
649
|
+
h.call(this, r);
|
|
650
|
+
}
|
|
651
|
+
a("../utils").inherits(o, h), o.prototype.readData = function(r) {
|
|
652
652
|
if (this.checkOffset(r), r === 0)
|
|
653
653
|
return new Uint8Array(0);
|
|
654
|
-
var
|
|
655
|
-
return this.index += r,
|
|
656
|
-
}, C.exports =
|
|
657
|
-
}, { "../utils": 32, "./ArrayReader": 17 }], 22: [function(
|
|
658
|
-
var
|
|
654
|
+
var u = this.data.subarray(this.zero + this.index, this.zero + this.index + r);
|
|
655
|
+
return this.index += r, u;
|
|
656
|
+
}, C.exports = o;
|
|
657
|
+
}, { "../utils": 32, "./ArrayReader": 17 }], 22: [function(a, C, y) {
|
|
658
|
+
var h = a("../utils"), o = a("../support"), r = a("./ArrayReader"), u = a("./StringReader"), d = a("./NodeBufferReader"), v = a("./Uint8ArrayReader");
|
|
659
659
|
C.exports = function(_) {
|
|
660
|
-
var m =
|
|
661
|
-
return
|
|
660
|
+
var m = h.getTypeOf(_);
|
|
661
|
+
return h.checkSupport(m), m !== "string" || o.uint8array ? m === "nodebuffer" ? new d(_) : o.uint8array ? new v(h.transformTo("uint8array", _)) : new r(h.transformTo("array", _)) : new u(_);
|
|
662
662
|
};
|
|
663
|
-
}, { "../support": 30, "../utils": 32, "./ArrayReader": 17, "./NodeBufferReader": 19, "./StringReader": 20, "./Uint8ArrayReader": 21 }], 23: [function(
|
|
663
|
+
}, { "../support": 30, "../utils": 32, "./ArrayReader": 17, "./NodeBufferReader": 19, "./StringReader": 20, "./Uint8ArrayReader": 21 }], 23: [function(a, C, y) {
|
|
664
664
|
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";
|
|
665
|
-
}, {}], 24: [function(
|
|
666
|
-
var
|
|
667
|
-
function r(
|
|
668
|
-
|
|
665
|
+
}, {}], 24: [function(a, C, y) {
|
|
666
|
+
var h = a("./GenericWorker"), o = a("../utils");
|
|
667
|
+
function r(u) {
|
|
668
|
+
h.call(this, "ConvertWorker to " + u), this.destType = u;
|
|
669
669
|
}
|
|
670
|
-
|
|
671
|
-
this.push({ data:
|
|
670
|
+
o.inherits(r, h), r.prototype.processChunk = function(u) {
|
|
671
|
+
this.push({ data: o.transformTo(this.destType, u.data), meta: u.meta });
|
|
672
672
|
}, C.exports = r;
|
|
673
|
-
}, { "../utils": 32, "./GenericWorker": 28 }], 25: [function(
|
|
674
|
-
var
|
|
673
|
+
}, { "../utils": 32, "./GenericWorker": 28 }], 25: [function(a, C, y) {
|
|
674
|
+
var h = a("./GenericWorker"), o = a("../crc32");
|
|
675
675
|
function r() {
|
|
676
|
-
|
|
676
|
+
h.call(this, "Crc32Probe"), this.withStreamInfo("crc32", 0);
|
|
677
677
|
}
|
|
678
|
-
|
|
679
|
-
this.streamInfo.crc32 =
|
|
678
|
+
a("../utils").inherits(r, h), r.prototype.processChunk = function(u) {
|
|
679
|
+
this.streamInfo.crc32 = o(u.data, this.streamInfo.crc32 || 0), this.push(u);
|
|
680
680
|
}, C.exports = r;
|
|
681
|
-
}, { "../crc32": 4, "../utils": 32, "./GenericWorker": 28 }], 26: [function(
|
|
682
|
-
var
|
|
683
|
-
function r(
|
|
684
|
-
|
|
681
|
+
}, { "../crc32": 4, "../utils": 32, "./GenericWorker": 28 }], 26: [function(a, C, y) {
|
|
682
|
+
var h = a("../utils"), o = a("./GenericWorker");
|
|
683
|
+
function r(u) {
|
|
684
|
+
o.call(this, "DataLengthProbe for " + u), this.propName = u, this.withStreamInfo(u, 0);
|
|
685
685
|
}
|
|
686
|
-
|
|
687
|
-
if (
|
|
686
|
+
h.inherits(r, o), r.prototype.processChunk = function(u) {
|
|
687
|
+
if (u) {
|
|
688
688
|
var d = this.streamInfo[this.propName] || 0;
|
|
689
|
-
this.streamInfo[this.propName] = d +
|
|
689
|
+
this.streamInfo[this.propName] = d + u.data.length;
|
|
690
690
|
}
|
|
691
|
-
|
|
691
|
+
o.prototype.processChunk.call(this, u);
|
|
692
692
|
}, C.exports = r;
|
|
693
|
-
}, { "../utils": 32, "./GenericWorker": 28 }], 27: [function(
|
|
694
|
-
var
|
|
695
|
-
function r(
|
|
696
|
-
|
|
693
|
+
}, { "../utils": 32, "./GenericWorker": 28 }], 27: [function(a, C, y) {
|
|
694
|
+
var h = a("../utils"), o = a("./GenericWorker");
|
|
695
|
+
function r(u) {
|
|
696
|
+
o.call(this, "DataWorker");
|
|
697
697
|
var d = this;
|
|
698
|
-
this.dataIsReady = !1, this.index = 0, this.max = 0, this.data = null, this.type = "", this._tickScheduled = !1,
|
|
699
|
-
d.dataIsReady = !0, d.data = v, d.max = v && v.length || 0, d.type =
|
|
698
|
+
this.dataIsReady = !1, this.index = 0, this.max = 0, this.data = null, this.type = "", this._tickScheduled = !1, u.then(function(v) {
|
|
699
|
+
d.dataIsReady = !0, d.data = v, d.max = v && v.length || 0, d.type = h.getTypeOf(v), d.isPaused || d._tickAndRepeat();
|
|
700
700
|
}, function(v) {
|
|
701
701
|
d.error(v);
|
|
702
702
|
});
|
|
703
703
|
}
|
|
704
|
-
|
|
705
|
-
|
|
704
|
+
h.inherits(r, o), r.prototype.cleanUp = function() {
|
|
705
|
+
o.prototype.cleanUp.call(this), this.data = null;
|
|
706
706
|
}, r.prototype.resume = function() {
|
|
707
|
-
return !!
|
|
707
|
+
return !!o.prototype.resume.call(this) && (!this._tickScheduled && this.dataIsReady && (this._tickScheduled = !0, h.delay(this._tickAndRepeat, [], this)), !0);
|
|
708
708
|
}, r.prototype._tickAndRepeat = function() {
|
|
709
|
-
this._tickScheduled = !1, this.isPaused || this.isFinished || (this._tick(), this.isFinished || (
|
|
709
|
+
this._tickScheduled = !1, this.isPaused || this.isFinished || (this._tick(), this.isFinished || (h.delay(this._tickAndRepeat, [], this), this._tickScheduled = !0));
|
|
710
710
|
}, r.prototype._tick = function() {
|
|
711
711
|
if (this.isPaused || this.isFinished)
|
|
712
712
|
return !1;
|
|
713
|
-
var
|
|
713
|
+
var u = null, d = Math.min(this.max, this.index + 16384);
|
|
714
714
|
if (this.index >= this.max)
|
|
715
715
|
return this.end();
|
|
716
716
|
switch (this.type) {
|
|
717
717
|
case "string":
|
|
718
|
-
|
|
718
|
+
u = this.data.substring(this.index, d);
|
|
719
719
|
break;
|
|
720
720
|
case "uint8array":
|
|
721
|
-
|
|
721
|
+
u = this.data.subarray(this.index, d);
|
|
722
722
|
break;
|
|
723
723
|
case "array":
|
|
724
724
|
case "nodebuffer":
|
|
725
|
-
|
|
725
|
+
u = this.data.slice(this.index, d);
|
|
726
726
|
}
|
|
727
|
-
return this.index = d, this.push({ data:
|
|
727
|
+
return this.index = d, this.push({ data: u, meta: { percent: this.max ? this.index / this.max * 100 : 0 } });
|
|
728
728
|
}, C.exports = r;
|
|
729
|
-
}, { "../utils": 32, "./GenericWorker": 28 }], 28: [function(
|
|
730
|
-
function
|
|
731
|
-
this.name =
|
|
729
|
+
}, { "../utils": 32, "./GenericWorker": 28 }], 28: [function(a, C, y) {
|
|
730
|
+
function h(o) {
|
|
731
|
+
this.name = o || "default", this.streamInfo = {}, this.generatedError = null, this.extraStreamInfo = {}, this.isPaused = !0, this.isFinished = !1, this.isLocked = !1, this._listeners = { data: [], end: [], error: [] }, this.previous = null;
|
|
732
732
|
}
|
|
733
|
-
|
|
734
|
-
this.emit("data",
|
|
733
|
+
h.prototype = { push: function(o) {
|
|
734
|
+
this.emit("data", o);
|
|
735
735
|
}, end: function() {
|
|
736
736
|
if (this.isFinished)
|
|
737
737
|
return !1;
|
|
738
738
|
this.flush();
|
|
739
739
|
try {
|
|
740
740
|
this.emit("end"), this.cleanUp(), this.isFinished = !0;
|
|
741
|
-
} catch (
|
|
742
|
-
this.emit("error",
|
|
741
|
+
} catch (o) {
|
|
742
|
+
this.emit("error", o);
|
|
743
743
|
}
|
|
744
744
|
return !0;
|
|
745
|
-
}, error: function(
|
|
746
|
-
return !this.isFinished && (this.isPaused ? this.generatedError =
|
|
747
|
-
}, on: function(
|
|
748
|
-
return this._listeners[
|
|
745
|
+
}, error: function(o) {
|
|
746
|
+
return !this.isFinished && (this.isPaused ? this.generatedError = o : (this.isFinished = !0, this.emit("error", o), this.previous && this.previous.error(o), this.cleanUp()), !0);
|
|
747
|
+
}, on: function(o, r) {
|
|
748
|
+
return this._listeners[o].push(r), this;
|
|
749
749
|
}, cleanUp: function() {
|
|
750
750
|
this.streamInfo = this.generatedError = this.extraStreamInfo = null, this._listeners = [];
|
|
751
|
-
}, emit: function(
|
|
752
|
-
if (this._listeners[
|
|
753
|
-
for (var
|
|
754
|
-
this._listeners[
|
|
755
|
-
}, pipe: function(
|
|
756
|
-
return
|
|
757
|
-
}, registerPrevious: function(
|
|
751
|
+
}, emit: function(o, r) {
|
|
752
|
+
if (this._listeners[o])
|
|
753
|
+
for (var u = 0; u < this._listeners[o].length; u++)
|
|
754
|
+
this._listeners[o][u].call(this, r);
|
|
755
|
+
}, pipe: function(o) {
|
|
756
|
+
return o.registerPrevious(this);
|
|
757
|
+
}, registerPrevious: function(o) {
|
|
758
758
|
if (this.isLocked)
|
|
759
759
|
throw new Error("The stream '" + this + "' has already been used.");
|
|
760
|
-
this.streamInfo =
|
|
760
|
+
this.streamInfo = o.streamInfo, this.mergeStreamInfo(), this.previous = o;
|
|
761
761
|
var r = this;
|
|
762
|
-
return
|
|
763
|
-
r.processChunk(
|
|
764
|
-
}),
|
|
762
|
+
return o.on("data", function(u) {
|
|
763
|
+
r.processChunk(u);
|
|
764
|
+
}), o.on("end", function() {
|
|
765
765
|
r.end();
|
|
766
|
-
}),
|
|
767
|
-
r.error(
|
|
766
|
+
}), o.on("error", function(u) {
|
|
767
|
+
r.error(u);
|
|
768
768
|
}), this;
|
|
769
769
|
}, pause: function() {
|
|
770
770
|
return !this.isPaused && !this.isFinished && (this.isPaused = !0, this.previous && this.previous.pause(), !0);
|
|
771
771
|
}, resume: function() {
|
|
772
772
|
if (!this.isPaused || this.isFinished)
|
|
773
773
|
return !1;
|
|
774
|
-
var
|
|
775
|
-
return this.generatedError && (this.error(this.generatedError),
|
|
774
|
+
var o = this.isPaused = !1;
|
|
775
|
+
return this.generatedError && (this.error(this.generatedError), o = !0), this.previous && this.previous.resume(), !o;
|
|
776
776
|
}, flush: function() {
|
|
777
|
-
}, processChunk: function(
|
|
778
|
-
this.push(
|
|
779
|
-
}, withStreamInfo: function(
|
|
780
|
-
return this.extraStreamInfo[
|
|
777
|
+
}, processChunk: function(o) {
|
|
778
|
+
this.push(o);
|
|
779
|
+
}, withStreamInfo: function(o, r) {
|
|
780
|
+
return this.extraStreamInfo[o] = r, this.mergeStreamInfo(), this;
|
|
781
781
|
}, mergeStreamInfo: function() {
|
|
782
|
-
for (var
|
|
783
|
-
Object.prototype.hasOwnProperty.call(this.extraStreamInfo,
|
|
782
|
+
for (var o in this.extraStreamInfo)
|
|
783
|
+
Object.prototype.hasOwnProperty.call(this.extraStreamInfo, o) && (this.streamInfo[o] = this.extraStreamInfo[o]);
|
|
784
784
|
}, lock: function() {
|
|
785
785
|
if (this.isLocked)
|
|
786
786
|
throw new Error("The stream '" + this + "' has already been used.");
|
|
787
787
|
this.isLocked = !0, this.previous && this.previous.lock();
|
|
788
788
|
}, toString: function() {
|
|
789
|
-
var
|
|
790
|
-
return this.previous ? this.previous + " -> " +
|
|
791
|
-
} }, C.exports =
|
|
792
|
-
}, {}], 29: [function(
|
|
793
|
-
var
|
|
789
|
+
var o = "Worker " + this.name;
|
|
790
|
+
return this.previous ? this.previous + " -> " + o : o;
|
|
791
|
+
} }, C.exports = h;
|
|
792
|
+
}, {}], 29: [function(a, C, y) {
|
|
793
|
+
var h = a("../utils"), o = a("./ConvertWorker"), r = a("./GenericWorker"), u = a("../base64"), d = a("../support"), v = a("../external"), _ = null;
|
|
794
794
|
if (d.nodestream)
|
|
795
795
|
try {
|
|
796
|
-
_ =
|
|
796
|
+
_ = a("../nodejs/NodejsStreamOutputAdapter");
|
|
797
797
|
} catch {
|
|
798
798
|
}
|
|
799
799
|
function m(p, n) {
|
|
@@ -808,11 +808,11 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
808
808
|
var P = function(T, W, R) {
|
|
809
809
|
switch (T) {
|
|
810
810
|
case "blob":
|
|
811
|
-
return
|
|
811
|
+
return h.newBlob(h.transformTo("arraybuffer", W), R);
|
|
812
812
|
case "base64":
|
|
813
|
-
return
|
|
813
|
+
return u.encode(W);
|
|
814
814
|
default:
|
|
815
|
-
return
|
|
815
|
+
return h.transformTo(T, W);
|
|
816
816
|
}
|
|
817
817
|
}(z, function(T, W) {
|
|
818
818
|
var R, $ = 0, q = null, w = 0;
|
|
@@ -852,7 +852,7 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
852
852
|
s = "string";
|
|
853
853
|
}
|
|
854
854
|
try {
|
|
855
|
-
this._internalType = s, this._outputType = n, this._mimeType = c,
|
|
855
|
+
this._internalType = s, this._outputType = n, this._mimeType = c, h.checkSupport(s), this._worker = p.pipe(new o(s)), p.lock();
|
|
856
856
|
} catch (g) {
|
|
857
857
|
this._worker = new r("error"), this._worker.error(g);
|
|
858
858
|
}
|
|
@@ -864,59 +864,59 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
864
864
|
return p === "data" ? this._worker.on(p, function(s) {
|
|
865
865
|
n.call(c, s.data, s.meta);
|
|
866
866
|
}) : this._worker.on(p, function() {
|
|
867
|
-
|
|
867
|
+
h.delay(n, arguments, c);
|
|
868
868
|
}), this;
|
|
869
869
|
}, resume: function() {
|
|
870
|
-
return
|
|
870
|
+
return h.delay(this._worker.resume, [], this._worker), this;
|
|
871
871
|
}, pause: function() {
|
|
872
872
|
return this._worker.pause(), this;
|
|
873
873
|
}, toNodejsStream: function(p) {
|
|
874
|
-
if (
|
|
874
|
+
if (h.checkSupport("nodestream"), this._outputType !== "nodebuffer")
|
|
875
875
|
throw new Error(this._outputType + " is not supported by this method");
|
|
876
876
|
return new _(this, { objectMode: this._outputType !== "nodebuffer" }, p);
|
|
877
877
|
} }, C.exports = i;
|
|
878
|
-
}, { "../base64": 1, "../external": 6, "../nodejs/NodejsStreamOutputAdapter": 13, "../support": 30, "../utils": 32, "./ConvertWorker": 24, "./GenericWorker": 28 }], 30: [function(
|
|
878
|
+
}, { "../base64": 1, "../external": 6, "../nodejs/NodejsStreamOutputAdapter": 13, "../support": 30, "../utils": 32, "./ConvertWorker": 24, "./GenericWorker": 28 }], 30: [function(a, C, y) {
|
|
879
879
|
if (y.base64 = !0, y.array = !0, y.string = !0, y.arraybuffer = typeof ArrayBuffer < "u" && typeof Uint8Array < "u", y.nodebuffer = typeof Buffer < "u", y.uint8array = typeof Uint8Array < "u", typeof ArrayBuffer > "u")
|
|
880
880
|
y.blob = !1;
|
|
881
881
|
else {
|
|
882
|
-
var
|
|
882
|
+
var h = new ArrayBuffer(0);
|
|
883
883
|
try {
|
|
884
|
-
y.blob = new Blob([
|
|
884
|
+
y.blob = new Blob([h], { type: "application/zip" }).size === 0;
|
|
885
885
|
} catch {
|
|
886
886
|
try {
|
|
887
|
-
var
|
|
888
|
-
|
|
887
|
+
var o = new (self.BlobBuilder || self.WebKitBlobBuilder || self.MozBlobBuilder || self.MSBlobBuilder)();
|
|
888
|
+
o.append(h), y.blob = o.getBlob("application/zip").size === 0;
|
|
889
889
|
} catch {
|
|
890
890
|
y.blob = !1;
|
|
891
891
|
}
|
|
892
892
|
}
|
|
893
893
|
}
|
|
894
894
|
try {
|
|
895
|
-
y.nodestream = !!
|
|
895
|
+
y.nodestream = !!a("readable-stream").Readable;
|
|
896
896
|
} catch {
|
|
897
897
|
y.nodestream = !1;
|
|
898
898
|
}
|
|
899
|
-
}, { "readable-stream": 16 }], 31: [function(
|
|
900
|
-
for (var
|
|
899
|
+
}, { "readable-stream": 16 }], 31: [function(a, C, y) {
|
|
900
|
+
for (var h = a("./utils"), o = a("./support"), r = a("./nodejsUtils"), u = a("./stream/GenericWorker"), d = new Array(256), v = 0; v < 256; v++)
|
|
901
901
|
d[v] = 252 <= v ? 6 : 248 <= v ? 5 : 240 <= v ? 4 : 224 <= v ? 3 : 192 <= v ? 2 : 1;
|
|
902
902
|
d[254] = d[254] = 1;
|
|
903
903
|
function _() {
|
|
904
|
-
|
|
904
|
+
u.call(this, "utf-8 decode"), this.leftOver = null;
|
|
905
905
|
}
|
|
906
906
|
function m() {
|
|
907
|
-
|
|
907
|
+
u.call(this, "utf-8 encode");
|
|
908
908
|
}
|
|
909
909
|
y.utf8encode = function(i) {
|
|
910
|
-
return
|
|
910
|
+
return o.nodebuffer ? r.newBufferFrom(i, "utf-8") : function(p) {
|
|
911
911
|
var n, c, s, g, k, z = p.length, E = 0;
|
|
912
912
|
for (g = 0; g < z; g++)
|
|
913
913
|
(64512 & (c = p.charCodeAt(g))) == 55296 && g + 1 < z && (64512 & (s = p.charCodeAt(g + 1))) == 56320 && (c = 65536 + (c - 55296 << 10) + (s - 56320), g++), E += c < 128 ? 1 : c < 2048 ? 2 : c < 65536 ? 3 : 4;
|
|
914
|
-
for (n =
|
|
914
|
+
for (n = o.uint8array ? new Uint8Array(E) : new Array(E), g = k = 0; k < E; g++)
|
|
915
915
|
(64512 & (c = p.charCodeAt(g))) == 55296 && g + 1 < z && (64512 & (s = p.charCodeAt(g + 1))) == 56320 && (c = 65536 + (c - 55296 << 10) + (s - 56320), g++), c < 128 ? n[k++] = c : (c < 2048 ? n[k++] = 192 | c >>> 6 : (c < 65536 ? n[k++] = 224 | c >>> 12 : (n[k++] = 240 | c >>> 18, n[k++] = 128 | c >>> 12 & 63), n[k++] = 128 | c >>> 6 & 63), n[k++] = 128 | 63 & c);
|
|
916
916
|
return n;
|
|
917
917
|
}(i);
|
|
918
918
|
}, y.utf8decode = function(i) {
|
|
919
|
-
return
|
|
919
|
+
return o.nodebuffer ? h.transformTo("nodebuffer", i).toString("utf-8") : function(p) {
|
|
920
920
|
var n, c, s, g, k = p.length, z = new Array(2 * k);
|
|
921
921
|
for (n = c = 0; n < k; )
|
|
922
922
|
if ((s = p[n++]) < 128)
|
|
@@ -928,12 +928,12 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
928
928
|
s = s << 6 | 63 & p[n++], g--;
|
|
929
929
|
1 < g ? z[c++] = 65533 : s < 65536 ? z[c++] = s : (s -= 65536, z[c++] = 55296 | s >> 10 & 1023, z[c++] = 56320 | 1023 & s);
|
|
930
930
|
}
|
|
931
|
-
return z.length !== c && (z.subarray ? z = z.subarray(0, c) : z.length = c),
|
|
932
|
-
}(i =
|
|
933
|
-
},
|
|
934
|
-
var p =
|
|
931
|
+
return z.length !== c && (z.subarray ? z = z.subarray(0, c) : z.length = c), h.applyFromCharCode(z);
|
|
932
|
+
}(i = h.transformTo(o.uint8array ? "uint8array" : "array", i));
|
|
933
|
+
}, h.inherits(_, u), _.prototype.processChunk = function(i) {
|
|
934
|
+
var p = h.transformTo(o.uint8array ? "uint8array" : "array", i.data);
|
|
935
935
|
if (this.leftOver && this.leftOver.length) {
|
|
936
|
-
if (
|
|
936
|
+
if (o.uint8array) {
|
|
937
937
|
var n = p;
|
|
938
938
|
(p = new Uint8Array(n.length + this.leftOver.length)).set(this.leftOver, 0), p.set(n, this.leftOver.length);
|
|
939
939
|
} else
|
|
@@ -946,14 +946,14 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
946
946
|
z--;
|
|
947
947
|
return z < 0 || z === 0 ? k : z + d[g[z]] > k ? z : k;
|
|
948
948
|
}(p), s = p;
|
|
949
|
-
c !== p.length && (
|
|
949
|
+
c !== p.length && (o.uint8array ? (s = p.subarray(0, c), this.leftOver = p.subarray(c, p.length)) : (s = p.slice(0, c), this.leftOver = p.slice(c, p.length))), this.push({ data: y.utf8decode(s), meta: i.meta });
|
|
950
950
|
}, _.prototype.flush = function() {
|
|
951
951
|
this.leftOver && this.leftOver.length && (this.push({ data: y.utf8decode(this.leftOver), meta: {} }), this.leftOver = null);
|
|
952
|
-
}, y.Utf8DecodeWorker = _,
|
|
952
|
+
}, y.Utf8DecodeWorker = _, h.inherits(m, u), m.prototype.processChunk = function(i) {
|
|
953
953
|
this.push({ data: y.utf8encode(i.data), meta: i.meta });
|
|
954
954
|
}, y.Utf8EncodeWorker = m;
|
|
955
|
-
}, { "./nodejsUtils": 14, "./stream/GenericWorker": 28, "./support": 30, "./utils": 32 }], 32: [function(
|
|
956
|
-
var
|
|
955
|
+
}, { "./nodejsUtils": 14, "./stream/GenericWorker": 28, "./support": 30, "./utils": 32 }], 32: [function(a, C, y) {
|
|
956
|
+
var h = a("./support"), o = a("./base64"), r = a("./nodejsUtils"), u = a("./external");
|
|
957
957
|
function d(n) {
|
|
958
958
|
return n;
|
|
959
959
|
}
|
|
@@ -962,7 +962,7 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
962
962
|
c[s] = 255 & n.charCodeAt(s);
|
|
963
963
|
return c;
|
|
964
964
|
}
|
|
965
|
-
|
|
965
|
+
a("setimmediate"), y.newBlob = function(n, c) {
|
|
966
966
|
y.checkSupport("blob");
|
|
967
967
|
try {
|
|
968
968
|
return new Blob([n], { type: c });
|
|
@@ -988,13 +988,13 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
988
988
|
return c;
|
|
989
989
|
}, applyCanBeUsed: { uint8array: function() {
|
|
990
990
|
try {
|
|
991
|
-
return
|
|
991
|
+
return h.uint8array && String.fromCharCode.apply(null, new Uint8Array(1)).length === 1;
|
|
992
992
|
} catch {
|
|
993
993
|
return !1;
|
|
994
994
|
}
|
|
995
995
|
}(), nodebuffer: function() {
|
|
996
996
|
try {
|
|
997
|
-
return
|
|
997
|
+
return h.nodebuffer && String.fromCharCode.apply(null, r.allocBuffer(1)).length === 1;
|
|
998
998
|
} catch {
|
|
999
999
|
return !1;
|
|
1000
1000
|
}
|
|
@@ -1064,9 +1064,9 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
1064
1064
|
}
|
|
1065
1065
|
return s.join("/");
|
|
1066
1066
|
}, y.getTypeOf = function(n) {
|
|
1067
|
-
return typeof n == "string" ? "string" : Object.prototype.toString.call(n) === "[object Array]" ? "array" :
|
|
1067
|
+
return typeof n == "string" ? "string" : Object.prototype.toString.call(n) === "[object Array]" ? "array" : h.nodebuffer && r.isBuffer(n) ? "nodebuffer" : h.uint8array && n instanceof Uint8Array ? "uint8array" : h.arraybuffer && n instanceof ArrayBuffer ? "arraybuffer" : void 0;
|
|
1068
1068
|
}, y.checkSupport = function(n) {
|
|
1069
|
-
if (!
|
|
1069
|
+
if (!h[n.toLowerCase()])
|
|
1070
1070
|
throw new Error(n + " is not supported by this platform");
|
|
1071
1071
|
}, y.MAX_VALUE_16BITS = 65535, y.MAX_VALUE_32BITS = -1, y.pretty = function(n) {
|
|
1072
1072
|
var c, s, g = "";
|
|
@@ -1088,8 +1088,8 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
1088
1088
|
Object.prototype.hasOwnProperty.call(arguments[n], c) && s[c] === void 0 && (s[c] = arguments[n][c]);
|
|
1089
1089
|
return s;
|
|
1090
1090
|
}, y.prepareContent = function(n, c, s, g, k) {
|
|
1091
|
-
return
|
|
1092
|
-
return
|
|
1091
|
+
return u.Promise.resolve(c).then(function(z) {
|
|
1092
|
+
return h.blob && (z instanceof Blob || ["[object File]", "[object Blob]"].indexOf(Object.prototype.toString.call(z)) !== -1) && typeof FileReader < "u" ? new u.Promise(function(E, P) {
|
|
1093
1093
|
var T = new FileReader();
|
|
1094
1094
|
T.onload = function(W) {
|
|
1095
1095
|
E(W.target.result);
|
|
@@ -1099,13 +1099,13 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
1099
1099
|
}) : z;
|
|
1100
1100
|
}).then(function(z) {
|
|
1101
1101
|
var E = y.getTypeOf(z);
|
|
1102
|
-
return E ? (E === "arraybuffer" ? z = y.transformTo("uint8array", z) : E === "string" && (k ? z =
|
|
1103
|
-
return v(P,
|
|
1104
|
-
}(z))), z) :
|
|
1102
|
+
return E ? (E === "arraybuffer" ? z = y.transformTo("uint8array", z) : E === "string" && (k ? z = o.decode(z) : s && g !== !0 && (z = function(P) {
|
|
1103
|
+
return v(P, h.uint8array ? new Uint8Array(P.length) : new Array(P.length));
|
|
1104
|
+
}(z))), z) : u.Promise.reject(new Error("Can't read the data of '" + n + "'. Is it in a supported JavaScript type (String, Blob, ArrayBuffer, etc) ?"));
|
|
1105
1105
|
});
|
|
1106
1106
|
};
|
|
1107
|
-
}, { "./base64": 1, "./external": 6, "./nodejsUtils": 14, "./support": 30, setimmediate: 54 }], 33: [function(
|
|
1108
|
-
var
|
|
1107
|
+
}, { "./base64": 1, "./external": 6, "./nodejsUtils": 14, "./support": 30, setimmediate: 54 }], 33: [function(a, C, y) {
|
|
1108
|
+
var h = a("./reader/readerFor"), o = a("./utils"), r = a("./signature"), u = a("./zipEntry"), d = a("./support");
|
|
1109
1109
|
function v(_) {
|
|
1110
1110
|
this.files = [], this.loadOptions = _;
|
|
1111
1111
|
}
|
|
@@ -1113,7 +1113,7 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
1113
1113
|
if (!this.reader.readAndCheckSignature(_)) {
|
|
1114
1114
|
this.reader.index -= 4;
|
|
1115
1115
|
var m = this.reader.readString(4);
|
|
1116
|
-
throw new Error("Corrupted zip or bug: unexpected signature (" +
|
|
1116
|
+
throw new Error("Corrupted zip or bug: unexpected signature (" + o.pretty(m) + ", expected " + o.pretty(_) + ")");
|
|
1117
1117
|
}
|
|
1118
1118
|
}, isSignature: function(_, m) {
|
|
1119
1119
|
var i = this.reader.index;
|
|
@@ -1122,7 +1122,7 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
1122
1122
|
return this.reader.setIndex(i), p;
|
|
1123
1123
|
}, readBlockEndOfCentral: function() {
|
|
1124
1124
|
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);
|
|
1125
|
-
var _ = this.reader.readData(this.zipCommentLength), m = d.uint8array ? "uint8array" : "array", i =
|
|
1125
|
+
var _ = this.reader.readData(this.zipCommentLength), m = d.uint8array ? "uint8array" : "array", i = o.transformTo(m, _);
|
|
1126
1126
|
this.zipComment = this.loadOptions.decodeFileName(i);
|
|
1127
1127
|
}, readBlockZip64EndOfCentral: function() {
|
|
1128
1128
|
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 = {};
|
|
@@ -1138,7 +1138,7 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
1138
1138
|
}, readCentralDir: function() {
|
|
1139
1139
|
var _;
|
|
1140
1140
|
for (this.reader.setIndex(this.centralDirOffset); this.reader.readAndCheckSignature(r.CENTRAL_FILE_HEADER); )
|
|
1141
|
-
(_ = new
|
|
1141
|
+
(_ = new u({ zip64: this.zip64 }, this.loadOptions)).readCentralPart(this.reader), this.files.push(_);
|
|
1142
1142
|
if (this.centralDirRecords !== this.files.length && this.centralDirRecords !== 0 && this.files.length === 0)
|
|
1143
1143
|
throw new Error("Corrupted zip or bug: expected " + this.centralDirRecords + " records in central dir, got " + this.files.length);
|
|
1144
1144
|
}, readEndOfCentral: function() {
|
|
@@ -1147,7 +1147,7 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
1147
1147
|
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");
|
|
1148
1148
|
this.reader.setIndex(_);
|
|
1149
1149
|
var m = _;
|
|
1150
|
-
if (this.checkSignature(r.CENTRAL_DIRECTORY_END), this.readBlockEndOfCentral(), this.diskNumber ===
|
|
1150
|
+
if (this.checkSignature(r.CENTRAL_DIRECTORY_END), this.readBlockEndOfCentral(), this.diskNumber === o.MAX_VALUE_16BITS || this.diskWithCentralDirStart === o.MAX_VALUE_16BITS || this.centralDirRecordsOnThisDisk === o.MAX_VALUE_16BITS || this.centralDirRecords === o.MAX_VALUE_16BITS || this.centralDirSize === o.MAX_VALUE_32BITS || this.centralDirOffset === o.MAX_VALUE_32BITS) {
|
|
1151
1151
|
if (this.zip64 = !0, (_ = this.reader.lastIndexOfSignature(r.ZIP64_CENTRAL_DIRECTORY_LOCATOR)) < 0)
|
|
1152
1152
|
throw new Error("Corrupted zip: can't find the ZIP64 end of central directory locator");
|
|
1153
1153
|
if (this.reader.setIndex(_), 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))
|
|
@@ -1162,12 +1162,12 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
1162
1162
|
else if (p < 0)
|
|
1163
1163
|
throw new Error("Corrupted zip: missing " + Math.abs(p) + " bytes.");
|
|
1164
1164
|
}, prepareReader: function(_) {
|
|
1165
|
-
this.reader =
|
|
1165
|
+
this.reader = h(_);
|
|
1166
1166
|
}, load: function(_) {
|
|
1167
1167
|
this.prepareReader(_), this.readEndOfCentral(), this.readCentralDir(), this.readLocalFiles();
|
|
1168
1168
|
} }, C.exports = v;
|
|
1169
|
-
}, { "./reader/readerFor": 22, "./signature": 23, "./support": 30, "./utils": 32, "./zipEntry": 34 }], 34: [function(
|
|
1170
|
-
var
|
|
1169
|
+
}, { "./reader/readerFor": 22, "./signature": 23, "./support": 30, "./utils": 32, "./zipEntry": 34 }], 34: [function(a, C, y) {
|
|
1170
|
+
var h = a("./reader/readerFor"), o = a("./utils"), r = a("./compressedObject"), u = a("./crc32"), d = a("./utf8"), v = a("./compressions"), _ = a("./support");
|
|
1171
1171
|
function m(i, p) {
|
|
1172
1172
|
this.options = i, this.loadOptions = p;
|
|
1173
1173
|
}
|
|
@@ -1185,7 +1185,7 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
1185
1185
|
return v[s];
|
|
1186
1186
|
return null;
|
|
1187
1187
|
}(this.compressionMethod)) === null)
|
|
1188
|
-
throw new Error("Corrupted zip : compression " +
|
|
1188
|
+
throw new Error("Corrupted zip : compression " + o.pretty(this.compressionMethod) + " unknown (inner file : " + o.transformTo("string", this.fileName) + ")");
|
|
1189
1189
|
this.decompressed = new r(this.compressedSize, this.uncompressedSize, this.crc32, p, i.readData(this.compressedSize));
|
|
1190
1190
|
}, readCentralPart: function(i) {
|
|
1191
1191
|
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);
|
|
@@ -1199,8 +1199,8 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
1199
1199
|
this.dir = !!(16 & this.externalFileAttributes), i == 0 && (this.dosPermissions = 63 & this.externalFileAttributes), i == 3 && (this.unixPermissions = this.externalFileAttributes >> 16 & 65535), this.dir || this.fileNameStr.slice(-1) !== "/" || (this.dir = !0);
|
|
1200
1200
|
}, parseZIP64ExtraField: function() {
|
|
1201
1201
|
if (this.extraFields[1]) {
|
|
1202
|
-
var i =
|
|
1203
|
-
this.uncompressedSize ===
|
|
1202
|
+
var i = h(this.extraFields[1].value);
|
|
1203
|
+
this.uncompressedSize === o.MAX_VALUE_32BITS && (this.uncompressedSize = i.readInt(8)), this.compressedSize === o.MAX_VALUE_32BITS && (this.compressedSize = i.readInt(8)), this.localHeaderOffset === o.MAX_VALUE_32BITS && (this.localHeaderOffset = i.readInt(8)), this.diskNumberStart === o.MAX_VALUE_32BITS && (this.diskNumberStart = i.readInt(4));
|
|
1204
1204
|
}
|
|
1205
1205
|
}, readExtraFields: function(i) {
|
|
1206
1206
|
var p, n, c, s = i.index + this.extraFieldsLength;
|
|
@@ -1216,38 +1216,38 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
1216
1216
|
if (p !== null)
|
|
1217
1217
|
this.fileNameStr = p;
|
|
1218
1218
|
else {
|
|
1219
|
-
var n =
|
|
1219
|
+
var n = o.transformTo(i, this.fileName);
|
|
1220
1220
|
this.fileNameStr = this.loadOptions.decodeFileName(n);
|
|
1221
1221
|
}
|
|
1222
1222
|
var c = this.findExtraFieldUnicodeComment();
|
|
1223
1223
|
if (c !== null)
|
|
1224
1224
|
this.fileCommentStr = c;
|
|
1225
1225
|
else {
|
|
1226
|
-
var s =
|
|
1226
|
+
var s = o.transformTo(i, this.fileComment);
|
|
1227
1227
|
this.fileCommentStr = this.loadOptions.decodeFileName(s);
|
|
1228
1228
|
}
|
|
1229
1229
|
}
|
|
1230
1230
|
}, findExtraFieldUnicodePath: function() {
|
|
1231
1231
|
var i = this.extraFields[28789];
|
|
1232
1232
|
if (i) {
|
|
1233
|
-
var p =
|
|
1234
|
-
return p.readInt(1) !== 1 ||
|
|
1233
|
+
var p = h(i.value);
|
|
1234
|
+
return p.readInt(1) !== 1 || u(this.fileName) !== p.readInt(4) ? null : d.utf8decode(p.readData(i.length - 5));
|
|
1235
1235
|
}
|
|
1236
1236
|
return null;
|
|
1237
1237
|
}, findExtraFieldUnicodeComment: function() {
|
|
1238
1238
|
var i = this.extraFields[25461];
|
|
1239
1239
|
if (i) {
|
|
1240
|
-
var p =
|
|
1241
|
-
return p.readInt(1) !== 1 ||
|
|
1240
|
+
var p = h(i.value);
|
|
1241
|
+
return p.readInt(1) !== 1 || u(this.fileComment) !== p.readInt(4) ? null : d.utf8decode(p.readData(i.length - 5));
|
|
1242
1242
|
}
|
|
1243
1243
|
return null;
|
|
1244
1244
|
} }, C.exports = m;
|
|
1245
|
-
}, { "./compressedObject": 2, "./compressions": 3, "./crc32": 4, "./reader/readerFor": 22, "./support": 30, "./utf8": 31, "./utils": 32 }], 35: [function(
|
|
1246
|
-
function
|
|
1245
|
+
}, { "./compressedObject": 2, "./compressions": 3, "./crc32": 4, "./reader/readerFor": 22, "./support": 30, "./utf8": 31, "./utils": 32 }], 35: [function(a, C, y) {
|
|
1246
|
+
function h(p, n, c) {
|
|
1247
1247
|
this.name = p, this.dir = c.dir, this.date = c.date, this.comment = c.comment, this.unixPermissions = c.unixPermissions, this.dosPermissions = c.dosPermissions, this._data = n, this._dataBinary = c.binary, this.options = { compression: c.compression, compressionOptions: c.compressionOptions };
|
|
1248
1248
|
}
|
|
1249
|
-
var
|
|
1250
|
-
|
|
1249
|
+
var o = a("./stream/StreamHelper"), r = a("./stream/DataWorker"), u = a("./utf8"), d = a("./compressedObject"), v = a("./stream/GenericWorker");
|
|
1250
|
+
h.prototype = { internalStream: function(p) {
|
|
1251
1251
|
var n = null, c = "string";
|
|
1252
1252
|
try {
|
|
1253
1253
|
if (!p)
|
|
@@ -1255,11 +1255,11 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
1255
1255
|
var s = (c = p.toLowerCase()) === "string" || c === "text";
|
|
1256
1256
|
c !== "binarystring" && c !== "text" || (c = "string"), n = this._decompressWorker();
|
|
1257
1257
|
var g = !this._dataBinary;
|
|
1258
|
-
g && !s && (n = n.pipe(new
|
|
1258
|
+
g && !s && (n = n.pipe(new u.Utf8EncodeWorker())), !g && s && (n = n.pipe(new u.Utf8DecodeWorker()));
|
|
1259
1259
|
} catch (k) {
|
|
1260
1260
|
(n = new v("error")).error(k);
|
|
1261
1261
|
}
|
|
1262
|
-
return new
|
|
1262
|
+
return new o(n, c, "");
|
|
1263
1263
|
}, async: function(p, n) {
|
|
1264
1264
|
return this.internalStream(p).accumulate(n);
|
|
1265
1265
|
}, nodeStream: function(p, n) {
|
|
@@ -1268,35 +1268,35 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
1268
1268
|
if (this._data instanceof d && this._data.compression.magic === p.magic)
|
|
1269
1269
|
return this._data.getCompressedWorker();
|
|
1270
1270
|
var c = this._decompressWorker();
|
|
1271
|
-
return this._dataBinary || (c = c.pipe(new
|
|
1271
|
+
return this._dataBinary || (c = c.pipe(new u.Utf8EncodeWorker())), d.createWorkerFrom(c, p, n);
|
|
1272
1272
|
}, _decompressWorker: function() {
|
|
1273
1273
|
return this._data instanceof d ? this._data.getContentWorker() : this._data instanceof v ? this._data : new r(this._data);
|
|
1274
1274
|
} };
|
|
1275
1275
|
for (var _ = ["asText", "asBinary", "asNodeBuffer", "asUint8Array", "asArrayBuffer"], m = function() {
|
|
1276
1276
|
throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.");
|
|
1277
1277
|
}, i = 0; i < _.length; i++)
|
|
1278
|
-
|
|
1279
|
-
C.exports =
|
|
1280
|
-
}, { "./compressedObject": 2, "./stream/DataWorker": 27, "./stream/GenericWorker": 28, "./stream/StreamHelper": 29, "./utf8": 31 }], 36: [function(
|
|
1281
|
-
(function(
|
|
1282
|
-
var
|
|
1283
|
-
if (
|
|
1284
|
-
var d = 0, v = new
|
|
1285
|
-
v.observe(_, { characterData: !0 }),
|
|
1278
|
+
h.prototype[_[i]] = m;
|
|
1279
|
+
C.exports = h;
|
|
1280
|
+
}, { "./compressedObject": 2, "./stream/DataWorker": 27, "./stream/GenericWorker": 28, "./stream/StreamHelper": 29, "./utf8": 31 }], 36: [function(a, C, y) {
|
|
1281
|
+
(function(h) {
|
|
1282
|
+
var o, r, u = h.MutationObserver || h.WebKitMutationObserver;
|
|
1283
|
+
if (u) {
|
|
1284
|
+
var d = 0, v = new u(p), _ = h.document.createTextNode("");
|
|
1285
|
+
v.observe(_, { characterData: !0 }), o = function() {
|
|
1286
1286
|
_.data = d = ++d % 2;
|
|
1287
1287
|
};
|
|
1288
|
-
} else if (
|
|
1289
|
-
|
|
1290
|
-
var n =
|
|
1288
|
+
} else if (h.setImmediate || h.MessageChannel === void 0)
|
|
1289
|
+
o = "document" in h && "onreadystatechange" in h.document.createElement("script") ? function() {
|
|
1290
|
+
var n = h.document.createElement("script");
|
|
1291
1291
|
n.onreadystatechange = function() {
|
|
1292
1292
|
p(), n.onreadystatechange = null, n.parentNode.removeChild(n), n = null;
|
|
1293
|
-
},
|
|
1293
|
+
}, h.document.documentElement.appendChild(n);
|
|
1294
1294
|
} : function() {
|
|
1295
1295
|
setTimeout(p, 0);
|
|
1296
1296
|
};
|
|
1297
1297
|
else {
|
|
1298
|
-
var m = new
|
|
1299
|
-
m.port1.onmessage = p,
|
|
1298
|
+
var m = new h.MessageChannel();
|
|
1299
|
+
m.port1.onmessage = p, o = function() {
|
|
1300
1300
|
m.port2.postMessage(0);
|
|
1301
1301
|
};
|
|
1302
1302
|
}
|
|
@@ -1312,24 +1312,24 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
1312
1312
|
r = !1;
|
|
1313
1313
|
}
|
|
1314
1314
|
C.exports = function(n) {
|
|
1315
|
-
i.push(n) !== 1 || r ||
|
|
1315
|
+
i.push(n) !== 1 || r || o();
|
|
1316
1316
|
};
|
|
1317
1317
|
}).call(this, typeof mt < "u" ? mt : typeof self < "u" ? self : typeof window < "u" ? window : {});
|
|
1318
|
-
}, {}], 37: [function(
|
|
1319
|
-
var
|
|
1320
|
-
function
|
|
1318
|
+
}, {}], 37: [function(a, C, y) {
|
|
1319
|
+
var h = a("immediate");
|
|
1320
|
+
function o() {
|
|
1321
1321
|
}
|
|
1322
|
-
var r = {},
|
|
1322
|
+
var r = {}, u = ["REJECTED"], d = ["FULFILLED"], v = ["PENDING"];
|
|
1323
1323
|
function _(s) {
|
|
1324
1324
|
if (typeof s != "function")
|
|
1325
1325
|
throw new TypeError("resolver must be a function");
|
|
1326
|
-
this.state = v, this.queue = [], this.outcome = void 0, s !==
|
|
1326
|
+
this.state = v, this.queue = [], this.outcome = void 0, s !== o && n(this, s);
|
|
1327
1327
|
}
|
|
1328
1328
|
function m(s, g, k) {
|
|
1329
1329
|
this.promise = s, typeof g == "function" && (this.onFulfilled = g, this.callFulfilled = this.otherCallFulfilled), typeof k == "function" && (this.onRejected = k, this.callRejected = this.otherCallRejected);
|
|
1330
1330
|
}
|
|
1331
1331
|
function i(s, g, k) {
|
|
1332
|
-
|
|
1332
|
+
h(function() {
|
|
1333
1333
|
var z;
|
|
1334
1334
|
try {
|
|
1335
1335
|
z = g(k);
|
|
@@ -1384,9 +1384,9 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
1384
1384
|
}, _.prototype.catch = function(s) {
|
|
1385
1385
|
return this.then(null, s);
|
|
1386
1386
|
}, _.prototype.then = function(s, g) {
|
|
1387
|
-
if (typeof s != "function" && this.state === d || typeof g != "function" && this.state ===
|
|
1387
|
+
if (typeof s != "function" && this.state === d || typeof g != "function" && this.state === u)
|
|
1388
1388
|
return this;
|
|
1389
|
-
var k = new this.constructor(
|
|
1389
|
+
var k = new this.constructor(o);
|
|
1390
1390
|
return this.state !== v ? i(k, this.state === d ? s : g, this.outcome) : this.queue.push(new m(k, s, g)), k;
|
|
1391
1391
|
}, m.prototype.callFulfilled = function(s) {
|
|
1392
1392
|
r.resolve(this.promise, s);
|
|
@@ -1410,14 +1410,14 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
1410
1410
|
}
|
|
1411
1411
|
return s;
|
|
1412
1412
|
}, r.reject = function(s, g) {
|
|
1413
|
-
s.state =
|
|
1413
|
+
s.state = u, s.outcome = g;
|
|
1414
1414
|
for (var k = -1, z = s.queue.length; ++k < z; )
|
|
1415
1415
|
s.queue[k].callRejected(g);
|
|
1416
1416
|
return s;
|
|
1417
1417
|
}, _.resolve = function(s) {
|
|
1418
|
-
return s instanceof this ? s : r.resolve(new this(
|
|
1418
|
+
return s instanceof this ? s : r.resolve(new this(o), s);
|
|
1419
1419
|
}, _.reject = function(s) {
|
|
1420
|
-
var g = new this(
|
|
1420
|
+
var g = new this(o);
|
|
1421
1421
|
return r.reject(g, s);
|
|
1422
1422
|
}, _.all = function(s) {
|
|
1423
1423
|
var g = this;
|
|
@@ -1426,7 +1426,7 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
1426
1426
|
var k = s.length, z = !1;
|
|
1427
1427
|
if (!k)
|
|
1428
1428
|
return this.resolve([]);
|
|
1429
|
-
for (var E = new Array(k), P = 0, T = -1, W = new this(
|
|
1429
|
+
for (var E = new Array(k), P = 0, T = -1, W = new this(o); ++T < k; )
|
|
1430
1430
|
R(s[T], T);
|
|
1431
1431
|
return W;
|
|
1432
1432
|
function R($, q) {
|
|
@@ -1443,7 +1443,7 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
1443
1443
|
var k = s.length, z = !1;
|
|
1444
1444
|
if (!k)
|
|
1445
1445
|
return this.resolve([]);
|
|
1446
|
-
for (var E = -1, P = new this(
|
|
1446
|
+
for (var E = -1, P = new this(o); ++E < k; )
|
|
1447
1447
|
T = s[E], g.resolve(T).then(function(W) {
|
|
1448
1448
|
z || (z = !0, r.resolve(P, W));
|
|
1449
1449
|
}, function(W) {
|
|
@@ -1452,31 +1452,31 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
1452
1452
|
var T;
|
|
1453
1453
|
return P;
|
|
1454
1454
|
};
|
|
1455
|
-
}, { immediate: 36 }], 38: [function(
|
|
1456
|
-
var
|
|
1457
|
-
(0,
|
|
1458
|
-
}, { "./lib/deflate": 39, "./lib/inflate": 40, "./lib/utils/common": 41, "./lib/zlib/constants": 44 }], 39: [function(
|
|
1459
|
-
var
|
|
1455
|
+
}, { immediate: 36 }], 38: [function(a, C, y) {
|
|
1456
|
+
var h = {};
|
|
1457
|
+
(0, a("./lib/utils/common").assign)(h, a("./lib/deflate"), a("./lib/inflate"), a("./lib/zlib/constants")), C.exports = h;
|
|
1458
|
+
}, { "./lib/deflate": 39, "./lib/inflate": 40, "./lib/utils/common": 41, "./lib/zlib/constants": 44 }], 39: [function(a, C, y) {
|
|
1459
|
+
var h = a("./zlib/deflate"), o = a("./utils/common"), r = a("./utils/strings"), u = a("./zlib/messages"), d = a("./zlib/zstream"), v = Object.prototype.toString, _ = 0, m = -1, i = 0, p = 8;
|
|
1460
1460
|
function n(s) {
|
|
1461
1461
|
if (!(this instanceof n))
|
|
1462
1462
|
return new n(s);
|
|
1463
|
-
this.options =
|
|
1463
|
+
this.options = o.assign({ level: m, method: p, chunkSize: 16384, windowBits: 15, memLevel: 8, strategy: i, to: "" }, s || {});
|
|
1464
1464
|
var g = this.options;
|
|
1465
1465
|
g.raw && 0 < g.windowBits ? g.windowBits = -g.windowBits : g.gzip && 0 < g.windowBits && g.windowBits < 16 && (g.windowBits += 16), this.err = 0, this.msg = "", this.ended = !1, this.chunks = [], this.strm = new d(), this.strm.avail_out = 0;
|
|
1466
|
-
var k =
|
|
1466
|
+
var k = h.deflateInit2(this.strm, g.level, g.method, g.windowBits, g.memLevel, g.strategy);
|
|
1467
1467
|
if (k !== _)
|
|
1468
|
-
throw new Error(
|
|
1469
|
-
if (g.header &&
|
|
1468
|
+
throw new Error(u[k]);
|
|
1469
|
+
if (g.header && h.deflateSetHeader(this.strm, g.header), g.dictionary) {
|
|
1470
1470
|
var z;
|
|
1471
|
-
if (z = typeof g.dictionary == "string" ? r.string2buf(g.dictionary) : v.call(g.dictionary) === "[object ArrayBuffer]" ? new Uint8Array(g.dictionary) : g.dictionary, (k =
|
|
1472
|
-
throw new Error(
|
|
1471
|
+
if (z = typeof g.dictionary == "string" ? r.string2buf(g.dictionary) : v.call(g.dictionary) === "[object ArrayBuffer]" ? new Uint8Array(g.dictionary) : g.dictionary, (k = h.deflateSetDictionary(this.strm, z)) !== _)
|
|
1472
|
+
throw new Error(u[k]);
|
|
1473
1473
|
this._dict_set = !0;
|
|
1474
1474
|
}
|
|
1475
1475
|
}
|
|
1476
1476
|
function c(s, g) {
|
|
1477
1477
|
var k = new n(g);
|
|
1478
1478
|
if (k.push(s, !0), k.err)
|
|
1479
|
-
throw k.msg ||
|
|
1479
|
+
throw k.msg || u[k.err];
|
|
1480
1480
|
return k.result;
|
|
1481
1481
|
}
|
|
1482
1482
|
n.prototype.push = function(s, g) {
|
|
@@ -1485,32 +1485,32 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
1485
1485
|
return !1;
|
|
1486
1486
|
z = g === ~~g ? g : g === !0 ? 4 : 0, typeof s == "string" ? E.input = r.string2buf(s) : v.call(s) === "[object ArrayBuffer]" ? E.input = new Uint8Array(s) : E.input = s, E.next_in = 0, E.avail_in = E.input.length;
|
|
1487
1487
|
do {
|
|
1488
|
-
if (E.avail_out === 0 && (E.output = new
|
|
1488
|
+
if (E.avail_out === 0 && (E.output = new o.Buf8(P), E.next_out = 0, E.avail_out = P), (k = h.deflate(E, z)) !== 1 && k !== _)
|
|
1489
1489
|
return this.onEnd(k), !(this.ended = !0);
|
|
1490
|
-
E.avail_out !== 0 && (E.avail_in !== 0 || z !== 4 && z !== 2) || (this.options.to === "string" ? this.onData(r.buf2binstring(
|
|
1490
|
+
E.avail_out !== 0 && (E.avail_in !== 0 || z !== 4 && z !== 2) || (this.options.to === "string" ? this.onData(r.buf2binstring(o.shrinkBuf(E.output, E.next_out))) : this.onData(o.shrinkBuf(E.output, E.next_out)));
|
|
1491
1491
|
} while ((0 < E.avail_in || E.avail_out === 0) && k !== 1);
|
|
1492
|
-
return z === 4 ? (k =
|
|
1492
|
+
return z === 4 ? (k = h.deflateEnd(this.strm), this.onEnd(k), this.ended = !0, k === _) : z !== 2 || (this.onEnd(_), !(E.avail_out = 0));
|
|
1493
1493
|
}, n.prototype.onData = function(s) {
|
|
1494
1494
|
this.chunks.push(s);
|
|
1495
1495
|
}, n.prototype.onEnd = function(s) {
|
|
1496
|
-
s === _ && (this.options.to === "string" ? this.result = this.chunks.join("") : this.result =
|
|
1496
|
+
s === _ && (this.options.to === "string" ? this.result = this.chunks.join("") : this.result = o.flattenChunks(this.chunks)), this.chunks = [], this.err = s, this.msg = this.strm.msg;
|
|
1497
1497
|
}, y.Deflate = n, y.deflate = c, y.deflateRaw = function(s, g) {
|
|
1498
1498
|
return (g = g || {}).raw = !0, c(s, g);
|
|
1499
1499
|
}, y.gzip = function(s, g) {
|
|
1500
1500
|
return (g = g || {}).gzip = !0, c(s, g);
|
|
1501
1501
|
};
|
|
1502
|
-
}, { "./utils/common": 41, "./utils/strings": 42, "./zlib/deflate": 46, "./zlib/messages": 51, "./zlib/zstream": 53 }], 40: [function(
|
|
1503
|
-
var
|
|
1502
|
+
}, { "./utils/common": 41, "./utils/strings": 42, "./zlib/deflate": 46, "./zlib/messages": 51, "./zlib/zstream": 53 }], 40: [function(a, C, y) {
|
|
1503
|
+
var h = a("./zlib/inflate"), o = a("./utils/common"), r = a("./utils/strings"), u = a("./zlib/constants"), d = a("./zlib/messages"), v = a("./zlib/zstream"), _ = a("./zlib/gzheader"), m = Object.prototype.toString;
|
|
1504
1504
|
function i(n) {
|
|
1505
1505
|
if (!(this instanceof i))
|
|
1506
1506
|
return new i(n);
|
|
1507
|
-
this.options =
|
|
1507
|
+
this.options = o.assign({ chunkSize: 16384, windowBits: 0, to: "" }, n || {});
|
|
1508
1508
|
var c = this.options;
|
|
1509
1509
|
c.raw && 0 <= c.windowBits && c.windowBits < 16 && (c.windowBits = -c.windowBits, c.windowBits === 0 && (c.windowBits = -15)), !(0 <= c.windowBits && c.windowBits < 16) || n && n.windowBits || (c.windowBits += 32), 15 < c.windowBits && c.windowBits < 48 && (15 & c.windowBits) == 0 && (c.windowBits |= 15), this.err = 0, this.msg = "", this.ended = !1, this.chunks = [], this.strm = new v(), this.strm.avail_out = 0;
|
|
1510
|
-
var s =
|
|
1511
|
-
if (s !==
|
|
1510
|
+
var s = h.inflateInit2(this.strm, c.windowBits);
|
|
1511
|
+
if (s !== u.Z_OK)
|
|
1512
1512
|
throw new Error(d[s]);
|
|
1513
|
-
this.header = new _(),
|
|
1513
|
+
this.header = new _(), h.inflateGetHeader(this.strm, this.header);
|
|
1514
1514
|
}
|
|
1515
1515
|
function p(n, c) {
|
|
1516
1516
|
var s = new i(c);
|
|
@@ -1522,90 +1522,90 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
1522
1522
|
var s, g, k, z, E, P, T = this.strm, W = this.options.chunkSize, R = this.options.dictionary, $ = !1;
|
|
1523
1523
|
if (this.ended)
|
|
1524
1524
|
return !1;
|
|
1525
|
-
g = c === ~~c ? c : c === !0 ?
|
|
1525
|
+
g = c === ~~c ? c : c === !0 ? u.Z_FINISH : u.Z_NO_FLUSH, typeof n == "string" ? T.input = r.binstring2buf(n) : m.call(n) === "[object ArrayBuffer]" ? T.input = new Uint8Array(n) : T.input = n, T.next_in = 0, T.avail_in = T.input.length;
|
|
1526
1526
|
do {
|
|
1527
|
-
if (T.avail_out === 0 && (T.output = new
|
|
1527
|
+
if (T.avail_out === 0 && (T.output = new o.Buf8(W), T.next_out = 0, T.avail_out = W), (s = h.inflate(T, u.Z_NO_FLUSH)) === u.Z_NEED_DICT && R && (P = typeof R == "string" ? r.string2buf(R) : m.call(R) === "[object ArrayBuffer]" ? new Uint8Array(R) : R, s = h.inflateSetDictionary(this.strm, P)), s === u.Z_BUF_ERROR && $ === !0 && (s = u.Z_OK, $ = !1), s !== u.Z_STREAM_END && s !== u.Z_OK)
|
|
1528
1528
|
return this.onEnd(s), !(this.ended = !0);
|
|
1529
|
-
T.next_out && (T.avail_out !== 0 && s !==
|
|
1530
|
-
} while ((0 < T.avail_in || T.avail_out === 0) && s !==
|
|
1531
|
-
return s ===
|
|
1529
|
+
T.next_out && (T.avail_out !== 0 && s !== u.Z_STREAM_END && (T.avail_in !== 0 || g !== u.Z_FINISH && g !== u.Z_SYNC_FLUSH) || (this.options.to === "string" ? (k = r.utf8border(T.output, T.next_out), z = T.next_out - k, E = r.buf2string(T.output, k), T.next_out = z, T.avail_out = W - z, z && o.arraySet(T.output, T.output, k, z, 0), this.onData(E)) : this.onData(o.shrinkBuf(T.output, T.next_out)))), T.avail_in === 0 && T.avail_out === 0 && ($ = !0);
|
|
1530
|
+
} while ((0 < T.avail_in || T.avail_out === 0) && s !== u.Z_STREAM_END);
|
|
1531
|
+
return s === u.Z_STREAM_END && (g = u.Z_FINISH), g === u.Z_FINISH ? (s = h.inflateEnd(this.strm), this.onEnd(s), this.ended = !0, s === u.Z_OK) : g !== u.Z_SYNC_FLUSH || (this.onEnd(u.Z_OK), !(T.avail_out = 0));
|
|
1532
1532
|
}, i.prototype.onData = function(n) {
|
|
1533
1533
|
this.chunks.push(n);
|
|
1534
1534
|
}, i.prototype.onEnd = function(n) {
|
|
1535
|
-
n ===
|
|
1535
|
+
n === u.Z_OK && (this.options.to === "string" ? this.result = this.chunks.join("") : this.result = o.flattenChunks(this.chunks)), this.chunks = [], this.err = n, this.msg = this.strm.msg;
|
|
1536
1536
|
}, y.Inflate = i, y.inflate = p, y.inflateRaw = function(n, c) {
|
|
1537
1537
|
return (c = c || {}).raw = !0, p(n, c);
|
|
1538
1538
|
}, y.ungzip = p;
|
|
1539
|
-
}, { "./utils/common": 41, "./utils/strings": 42, "./zlib/constants": 44, "./zlib/gzheader": 47, "./zlib/inflate": 49, "./zlib/messages": 51, "./zlib/zstream": 53 }], 41: [function(
|
|
1540
|
-
var
|
|
1541
|
-
y.assign = function(
|
|
1539
|
+
}, { "./utils/common": 41, "./utils/strings": 42, "./zlib/constants": 44, "./zlib/gzheader": 47, "./zlib/inflate": 49, "./zlib/messages": 51, "./zlib/zstream": 53 }], 41: [function(a, C, y) {
|
|
1540
|
+
var h = typeof Uint8Array < "u" && typeof Uint16Array < "u" && typeof Int32Array < "u";
|
|
1541
|
+
y.assign = function(u) {
|
|
1542
1542
|
for (var d = Array.prototype.slice.call(arguments, 1); d.length; ) {
|
|
1543
1543
|
var v = d.shift();
|
|
1544
1544
|
if (v) {
|
|
1545
1545
|
if (typeof v != "object")
|
|
1546
1546
|
throw new TypeError(v + "must be non-object");
|
|
1547
1547
|
for (var _ in v)
|
|
1548
|
-
v.hasOwnProperty(_) && (
|
|
1548
|
+
v.hasOwnProperty(_) && (u[_] = v[_]);
|
|
1549
1549
|
}
|
|
1550
1550
|
}
|
|
1551
|
-
return
|
|
1552
|
-
}, y.shrinkBuf = function(
|
|
1553
|
-
return
|
|
1551
|
+
return u;
|
|
1552
|
+
}, y.shrinkBuf = function(u, d) {
|
|
1553
|
+
return u.length === d ? u : u.subarray ? u.subarray(0, d) : (u.length = d, u);
|
|
1554
1554
|
};
|
|
1555
|
-
var
|
|
1556
|
-
if (d.subarray &&
|
|
1557
|
-
|
|
1555
|
+
var o = { arraySet: function(u, d, v, _, m) {
|
|
1556
|
+
if (d.subarray && u.subarray)
|
|
1557
|
+
u.set(d.subarray(v, v + _), m);
|
|
1558
1558
|
else
|
|
1559
1559
|
for (var i = 0; i < _; i++)
|
|
1560
|
-
|
|
1561
|
-
}, flattenChunks: function(
|
|
1560
|
+
u[m + i] = d[v + i];
|
|
1561
|
+
}, flattenChunks: function(u) {
|
|
1562
1562
|
var d, v, _, m, i, p;
|
|
1563
|
-
for (d = _ = 0, v =
|
|
1564
|
-
_ +=
|
|
1565
|
-
for (p = new Uint8Array(_), d = m = 0, v =
|
|
1566
|
-
i =
|
|
1563
|
+
for (d = _ = 0, v = u.length; d < v; d++)
|
|
1564
|
+
_ += u[d].length;
|
|
1565
|
+
for (p = new Uint8Array(_), d = m = 0, v = u.length; d < v; d++)
|
|
1566
|
+
i = u[d], p.set(i, m), m += i.length;
|
|
1567
1567
|
return p;
|
|
1568
|
-
} }, r = { arraySet: function(
|
|
1568
|
+
} }, r = { arraySet: function(u, d, v, _, m) {
|
|
1569
1569
|
for (var i = 0; i < _; i++)
|
|
1570
|
-
|
|
1571
|
-
}, flattenChunks: function(
|
|
1572
|
-
return [].concat.apply([],
|
|
1570
|
+
u[m + i] = d[v + i];
|
|
1571
|
+
}, flattenChunks: function(u) {
|
|
1572
|
+
return [].concat.apply([], u);
|
|
1573
1573
|
} };
|
|
1574
|
-
y.setTyped = function(
|
|
1575
|
-
|
|
1576
|
-
}, y.setTyped(
|
|
1577
|
-
}, {}], 42: [function(
|
|
1578
|
-
var
|
|
1574
|
+
y.setTyped = function(u) {
|
|
1575
|
+
u ? (y.Buf8 = Uint8Array, y.Buf16 = Uint16Array, y.Buf32 = Int32Array, y.assign(y, o)) : (y.Buf8 = Array, y.Buf16 = Array, y.Buf32 = Array, y.assign(y, r));
|
|
1576
|
+
}, y.setTyped(h);
|
|
1577
|
+
}, {}], 42: [function(a, C, y) {
|
|
1578
|
+
var h = a("./common"), o = !0, r = !0;
|
|
1579
1579
|
try {
|
|
1580
1580
|
String.fromCharCode.apply(null, [0]);
|
|
1581
1581
|
} catch {
|
|
1582
|
-
|
|
1582
|
+
o = !1;
|
|
1583
1583
|
}
|
|
1584
1584
|
try {
|
|
1585
1585
|
String.fromCharCode.apply(null, new Uint8Array(1));
|
|
1586
1586
|
} catch {
|
|
1587
1587
|
r = !1;
|
|
1588
1588
|
}
|
|
1589
|
-
for (var
|
|
1590
|
-
|
|
1589
|
+
for (var u = new h.Buf8(256), d = 0; d < 256; d++)
|
|
1590
|
+
u[d] = 252 <= d ? 6 : 248 <= d ? 5 : 240 <= d ? 4 : 224 <= d ? 3 : 192 <= d ? 2 : 1;
|
|
1591
1591
|
function v(_, m) {
|
|
1592
|
-
if (m < 65537 && (_.subarray && r || !_.subarray &&
|
|
1593
|
-
return String.fromCharCode.apply(null,
|
|
1592
|
+
if (m < 65537 && (_.subarray && r || !_.subarray && o))
|
|
1593
|
+
return String.fromCharCode.apply(null, h.shrinkBuf(_, m));
|
|
1594
1594
|
for (var i = "", p = 0; p < m; p++)
|
|
1595
1595
|
i += String.fromCharCode(_[p]);
|
|
1596
1596
|
return i;
|
|
1597
1597
|
}
|
|
1598
|
-
|
|
1598
|
+
u[254] = u[254] = 1, y.string2buf = function(_) {
|
|
1599
1599
|
var m, i, p, n, c, s = _.length, g = 0;
|
|
1600
1600
|
for (n = 0; n < s; n++)
|
|
1601
1601
|
(64512 & (i = _.charCodeAt(n))) == 55296 && n + 1 < s && (64512 & (p = _.charCodeAt(n + 1))) == 56320 && (i = 65536 + (i - 55296 << 10) + (p - 56320), n++), g += i < 128 ? 1 : i < 2048 ? 2 : i < 65536 ? 3 : 4;
|
|
1602
|
-
for (m = new
|
|
1602
|
+
for (m = new h.Buf8(g), n = c = 0; c < g; n++)
|
|
1603
1603
|
(64512 & (i = _.charCodeAt(n))) == 55296 && n + 1 < s && (64512 & (p = _.charCodeAt(n + 1))) == 56320 && (i = 65536 + (i - 55296 << 10) + (p - 56320), n++), i < 128 ? m[c++] = i : (i < 2048 ? m[c++] = 192 | i >>> 6 : (i < 65536 ? m[c++] = 224 | i >>> 12 : (m[c++] = 240 | i >>> 18, m[c++] = 128 | i >>> 12 & 63), m[c++] = 128 | i >>> 6 & 63), m[c++] = 128 | 63 & i);
|
|
1604
1604
|
return m;
|
|
1605
1605
|
}, y.buf2binstring = function(_) {
|
|
1606
1606
|
return v(_, _.length);
|
|
1607
1607
|
}, y.binstring2buf = function(_) {
|
|
1608
|
-
for (var m = new
|
|
1608
|
+
for (var m = new h.Buf8(_.length), i = 0, p = m.length; i < p; i++)
|
|
1609
1609
|
m[i] = _.charCodeAt(i);
|
|
1610
1610
|
return m;
|
|
1611
1611
|
}, y.buf2string = function(_, m) {
|
|
@@ -1613,7 +1613,7 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
1613
1613
|
for (i = p = 0; i < s; )
|
|
1614
1614
|
if ((n = _[i++]) < 128)
|
|
1615
1615
|
g[p++] = n;
|
|
1616
|
-
else if (4 < (c =
|
|
1616
|
+
else if (4 < (c = u[n]))
|
|
1617
1617
|
g[p++] = 65533, i += c - 1;
|
|
1618
1618
|
else {
|
|
1619
1619
|
for (n &= c === 2 ? 31 : c === 3 ? 15 : 7; 1 < c && i < s; )
|
|
@@ -1625,38 +1625,38 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
1625
1625
|
var i;
|
|
1626
1626
|
for ((m = m || _.length) > _.length && (m = _.length), i = m - 1; 0 <= i && (192 & _[i]) == 128; )
|
|
1627
1627
|
i--;
|
|
1628
|
-
return i < 0 || i === 0 ? m : i +
|
|
1628
|
+
return i < 0 || i === 0 ? m : i + u[_[i]] > m ? i : m;
|
|
1629
1629
|
};
|
|
1630
|
-
}, { "./common": 41 }], 43: [function(
|
|
1631
|
-
C.exports = function(
|
|
1632
|
-
for (var d = 65535 &
|
|
1633
|
-
for (r -= _ = 2e3 < r ? 2e3 : r; v = v + (d = d +
|
|
1630
|
+
}, { "./common": 41 }], 43: [function(a, C, y) {
|
|
1631
|
+
C.exports = function(h, o, r, u) {
|
|
1632
|
+
for (var d = 65535 & h | 0, v = h >>> 16 & 65535 | 0, _ = 0; r !== 0; ) {
|
|
1633
|
+
for (r -= _ = 2e3 < r ? 2e3 : r; v = v + (d = d + o[u++] | 0) | 0, --_; )
|
|
1634
1634
|
;
|
|
1635
1635
|
d %= 65521, v %= 65521;
|
|
1636
1636
|
}
|
|
1637
1637
|
return d | v << 16 | 0;
|
|
1638
1638
|
};
|
|
1639
|
-
}, {}], 44: [function(
|
|
1639
|
+
}, {}], 44: [function(a, C, y) {
|
|
1640
1640
|
C.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 };
|
|
1641
|
-
}, {}], 45: [function(
|
|
1642
|
-
var
|
|
1643
|
-
for (var
|
|
1644
|
-
|
|
1641
|
+
}, {}], 45: [function(a, C, y) {
|
|
1642
|
+
var h = function() {
|
|
1643
|
+
for (var o, r = [], u = 0; u < 256; u++) {
|
|
1644
|
+
o = u;
|
|
1645
1645
|
for (var d = 0; d < 8; d++)
|
|
1646
|
-
|
|
1647
|
-
r[
|
|
1646
|
+
o = 1 & o ? 3988292384 ^ o >>> 1 : o >>> 1;
|
|
1647
|
+
r[u] = o;
|
|
1648
1648
|
}
|
|
1649
1649
|
return r;
|
|
1650
1650
|
}();
|
|
1651
|
-
C.exports = function(
|
|
1652
|
-
var v =
|
|
1653
|
-
|
|
1651
|
+
C.exports = function(o, r, u, d) {
|
|
1652
|
+
var v = h, _ = d + u;
|
|
1653
|
+
o ^= -1;
|
|
1654
1654
|
for (var m = d; m < _; m++)
|
|
1655
|
-
|
|
1656
|
-
return -1 ^
|
|
1655
|
+
o = o >>> 8 ^ v[255 & (o ^ r[m])];
|
|
1656
|
+
return -1 ^ o;
|
|
1657
1657
|
};
|
|
1658
|
-
}, {}], 46: [function(
|
|
1659
|
-
var
|
|
1658
|
+
}, {}], 46: [function(a, C, y) {
|
|
1659
|
+
var h, o = a("../utils/common"), r = a("./trees"), u = a("./adler32"), d = a("./crc32"), v = a("./messages"), _ = 0, m = 4, i = 0, p = -2, n = -1, c = 4, s = 2, g = 8, k = 9, z = 286, E = 30, P = 19, T = 2 * z + 1, W = 15, R = 3, $ = 258, q = $ + R + 1, w = 42, D = 113, e = 1, L = 2, Q = 3, j = 4;
|
|
1660
1660
|
function tt(t, F) {
|
|
1661
1661
|
return t.msg = v[F], F;
|
|
1662
1662
|
}
|
|
@@ -1669,7 +1669,7 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
1669
1669
|
}
|
|
1670
1670
|
function O(t) {
|
|
1671
1671
|
var F = t.state, B = F.pending;
|
|
1672
|
-
B > t.avail_out && (B = t.avail_out), B !== 0 && (
|
|
1672
|
+
B > t.avail_out && (B = t.avail_out), B !== 0 && (o.arraySet(t.output, F.pending_buf, F.pending_out, B, t.next_out), t.next_out += B, F.pending_out += B, t.total_out += B, t.avail_out -= B, F.pending -= B, F.pending === 0 && (F.pending_out = 0));
|
|
1673
1673
|
}
|
|
1674
1674
|
function I(t, F) {
|
|
1675
1675
|
r._tr_flush_block(t, 0 <= t.block_start ? t.block_start : -1, t.strstart - t.block_start, F), t.block_start = t.strstart, O(t.strm);
|
|
@@ -1681,8 +1681,8 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
1681
1681
|
t.pending_buf[t.pending++] = F >>> 8 & 255, t.pending_buf[t.pending++] = 255 & F;
|
|
1682
1682
|
}
|
|
1683
1683
|
function G(t, F) {
|
|
1684
|
-
var B, f,
|
|
1685
|
-
t.prev_length >= t.good_match && (
|
|
1684
|
+
var B, f, l = t.max_chain_length, x = t.strstart, N = t.prev_length, U = t.nice_match, A = t.strstart > t.w_size - q ? t.strstart - (t.w_size - q) : 0, M = t.window, Y = t.w_mask, H = t.prev, X = t.strstart + $, it = M[x + N - 1], rt = M[x + N];
|
|
1685
|
+
t.prev_length >= t.good_match && (l >>= 2), U > t.lookahead && (U = t.lookahead);
|
|
1686
1686
|
do
|
|
1687
1687
|
if (M[(B = F) + N] === rt && M[B + N - 1] === it && M[B] === M[x] && M[++B] === M[x + 1]) {
|
|
1688
1688
|
x += 2, B++;
|
|
@@ -1695,22 +1695,22 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
1695
1695
|
it = M[x + N - 1], rt = M[x + N];
|
|
1696
1696
|
}
|
|
1697
1697
|
}
|
|
1698
|
-
while ((F = H[F & Y]) > A && --
|
|
1698
|
+
while ((F = H[F & Y]) > A && --l != 0);
|
|
1699
1699
|
return N <= t.lookahead ? N : t.lookahead;
|
|
1700
1700
|
}
|
|
1701
1701
|
function st(t) {
|
|
1702
|
-
var F, B, f,
|
|
1702
|
+
var F, B, f, l, x, N, U, A, M, Y, H = t.w_size;
|
|
1703
1703
|
do {
|
|
1704
|
-
if (
|
|
1705
|
-
for (
|
|
1704
|
+
if (l = t.window_size - t.lookahead - t.strstart, t.strstart >= H + (H - q)) {
|
|
1705
|
+
for (o.arraySet(t.window, t.window, H, H, 0), t.match_start -= H, t.strstart -= H, t.block_start -= H, F = B = t.hash_size; f = t.head[--F], t.head[F] = H <= f ? f - H : 0, --B; )
|
|
1706
1706
|
;
|
|
1707
1707
|
for (F = B = H; f = t.prev[--F], t.prev[F] = H <= f ? f - H : 0, --B; )
|
|
1708
1708
|
;
|
|
1709
|
-
|
|
1709
|
+
l += H;
|
|
1710
1710
|
}
|
|
1711
1711
|
if (t.strm.avail_in === 0)
|
|
1712
1712
|
break;
|
|
1713
|
-
if (N = t.strm, U = t.window, A = t.strstart + t.lookahead, M =
|
|
1713
|
+
if (N = t.strm, U = t.window, A = t.strstart + t.lookahead, M = l, Y = void 0, Y = N.avail_in, M < Y && (Y = M), B = Y === 0 ? 0 : (N.avail_in -= Y, o.arraySet(U, N.input, N.next_in, Y, A), N.state.wrap === 1 ? N.adler = u(N.adler, U, Y, A) : N.state.wrap === 2 && (N.adler = d(N.adler, U, Y, A)), N.next_in += Y, N.total_in += Y, Y), t.lookahead += B, t.lookahead + t.insert >= R)
|
|
1714
1714
|
for (x = t.strstart - t.insert, t.ins_h = t.window[x], t.ins_h = (t.ins_h << t.hash_shift ^ t.window[x + 1]) & t.hash_mask; t.insert && (t.ins_h = (t.ins_h << t.hash_shift ^ t.window[x + R - 1]) & t.hash_mask, t.prev[x & t.w_mask] = t.head[t.ins_h], t.head[t.ins_h] = x, x++, t.insert--, !(t.lookahead + t.insert < R)); )
|
|
1715
1715
|
;
|
|
1716
1716
|
} while (t.lookahead < q && t.strm.avail_in !== 0);
|
|
@@ -1738,7 +1738,7 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
1738
1738
|
return t.insert = t.strstart < R - 1 ? t.strstart : R - 1, F === m ? (I(t, !0), t.strm.avail_out === 0 ? Q : j) : t.last_lit && (I(t, !1), t.strm.avail_out === 0) ? e : L;
|
|
1739
1739
|
}
|
|
1740
1740
|
function et(t, F) {
|
|
1741
|
-
for (var B, f,
|
|
1741
|
+
for (var B, f, l; ; ) {
|
|
1742
1742
|
if (t.lookahead < q) {
|
|
1743
1743
|
if (st(t), t.lookahead < q && F === _)
|
|
1744
1744
|
return e;
|
|
@@ -1746,7 +1746,7 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
1746
1746
|
break;
|
|
1747
1747
|
}
|
|
1748
1748
|
if (B = 0, t.lookahead >= R && (t.ins_h = (t.ins_h << t.hash_shift ^ t.window[t.strstart + R - 1]) & t.hash_mask, B = t.prev[t.strstart & t.w_mask] = t.head[t.ins_h], t.head[t.ins_h] = t.strstart), t.prev_length = t.match_length, t.prev_match = t.match_start, t.match_length = R - 1, B !== 0 && t.prev_length < t.max_lazy_match && t.strstart - B <= t.w_size - q && (t.match_length = G(t, B), t.match_length <= 5 && (t.strategy === 1 || t.match_length === R && 4096 < t.strstart - t.match_start) && (t.match_length = R - 1)), t.prev_length >= R && t.match_length <= t.prev_length) {
|
|
1749
|
-
for (
|
|
1749
|
+
for (l = t.strstart + t.lookahead - R, f = r._tr_tally(t, t.strstart - 1 - t.prev_match, t.prev_length - R), t.lookahead -= t.prev_length - 1, t.prev_length -= 2; ++t.strstart <= l && (t.ins_h = (t.ins_h << t.hash_shift ^ t.window[t.strstart + R - 1]) & t.hash_mask, B = t.prev[t.strstart & t.w_mask] = t.head[t.ins_h], t.head[t.ins_h] = t.strstart), --t.prev_length != 0; )
|
|
1750
1750
|
;
|
|
1751
1751
|
if (t.match_available = 0, t.match_length = R - 1, t.strstart++, f && (I(t, !1), t.strm.avail_out === 0))
|
|
1752
1752
|
return e;
|
|
@@ -1758,11 +1758,11 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
1758
1758
|
}
|
|
1759
1759
|
return t.match_available && (f = r._tr_tally(t, 0, t.window[t.strstart - 1]), t.match_available = 0), t.insert = t.strstart < R - 1 ? t.strstart : R - 1, F === m ? (I(t, !0), t.strm.avail_out === 0 ? Q : j) : t.last_lit && (I(t, !1), t.strm.avail_out === 0) ? e : L;
|
|
1760
1760
|
}
|
|
1761
|
-
function nt(t, F, B, f,
|
|
1762
|
-
this.good_length = t, this.max_lazy = F, this.nice_length = B, this.max_chain = f, this.func =
|
|
1761
|
+
function nt(t, F, B, f, l) {
|
|
1762
|
+
this.good_length = t, this.max_lazy = F, this.nice_length = B, this.max_chain = f, this.func = l;
|
|
1763
1763
|
}
|
|
1764
1764
|
function lt() {
|
|
1765
|
-
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 = g, 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
|
|
1765
|
+
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 = g, this.last_flush = -1, this.w_size = 0, this.w_bits = 0, this.w_mask = 0, this.window = null, this.window_size = 0, this.prev = null, this.head = null, this.ins_h = 0, this.hash_size = 0, this.hash_bits = 0, this.hash_mask = 0, this.hash_shift = 0, this.block_start = 0, this.match_length = 0, this.prev_match = 0, this.match_available = 0, this.strstart = 0, this.match_start = 0, this.lookahead = 0, this.prev_length = 0, this.max_chain_length = 0, this.max_lazy_match = 0, this.level = 0, this.strategy = 0, this.good_match = 0, this.nice_match = 0, this.dyn_ltree = new o.Buf16(2 * T), this.dyn_dtree = new o.Buf16(2 * (2 * E + 1)), this.bl_tree = new o.Buf16(2 * (2 * P + 1)), V(this.dyn_ltree), V(this.dyn_dtree), V(this.bl_tree), this.l_desc = null, this.d_desc = null, this.bl_desc = null, this.bl_count = new o.Buf16(W + 1), this.heap = new o.Buf16(2 * z + 1), V(this.heap), this.heap_len = 0, this.heap_max = 0, this.depth = new o.Buf16(2 * z + 1), V(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;
|
|
1766
1766
|
}
|
|
1767
1767
|
function at(t) {
|
|
1768
1768
|
var F;
|
|
@@ -1771,20 +1771,20 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
1771
1771
|
function ft(t) {
|
|
1772
1772
|
var F = at(t);
|
|
1773
1773
|
return F === i && function(B) {
|
|
1774
|
-
B.window_size = 2 * B.w_size, V(B.head), B.max_lazy_match =
|
|
1774
|
+
B.window_size = 2 * B.w_size, V(B.head), B.max_lazy_match = h[B.level].max_lazy, B.good_match = h[B.level].good_length, B.nice_match = h[B.level].nice_length, B.max_chain_length = h[B.level].max_chain, B.strstart = 0, B.block_start = 0, B.lookahead = 0, B.insert = 0, B.match_length = B.prev_length = R - 1, B.match_available = 0, B.ins_h = 0;
|
|
1775
1775
|
}(t.state), F;
|
|
1776
1776
|
}
|
|
1777
|
-
function ct(t, F, B, f,
|
|
1777
|
+
function ct(t, F, B, f, l, x) {
|
|
1778
1778
|
if (!t)
|
|
1779
1779
|
return p;
|
|
1780
1780
|
var N = 1;
|
|
1781
|
-
if (F === n && (F = 6), f < 0 ? (N = 0, f = -f) : 15 < f && (N = 2, f -= 16),
|
|
1781
|
+
if (F === n && (F = 6), f < 0 ? (N = 0, f = -f) : 15 < f && (N = 2, f -= 16), l < 1 || k < l || B !== g || f < 8 || 15 < f || F < 0 || 9 < F || x < 0 || c < x)
|
|
1782
1782
|
return tt(t, p);
|
|
1783
1783
|
f === 8 && (f = 9);
|
|
1784
1784
|
var U = new lt();
|
|
1785
|
-
return (t.state = U).strm = t, U.wrap = N, U.gzhead = null, U.w_bits = f, U.w_size = 1 << U.w_bits, U.w_mask = U.w_size - 1, U.hash_bits =
|
|
1785
|
+
return (t.state = U).strm = t, U.wrap = N, U.gzhead = null, U.w_bits = f, U.w_size = 1 << U.w_bits, U.w_mask = U.w_size - 1, U.hash_bits = l + 7, U.hash_size = 1 << U.hash_bits, U.hash_mask = U.hash_size - 1, U.hash_shift = ~~((U.hash_bits + R - 1) / R), U.window = new o.Buf8(2 * U.w_size), U.head = new o.Buf16(U.hash_size), U.prev = new o.Buf16(U.w_size), U.lit_bufsize = 1 << l + 6, U.pending_buf_size = 4 * U.lit_bufsize, U.pending_buf = new o.Buf8(U.pending_buf_size), U.d_buf = 1 * U.lit_bufsize, U.l_buf = 3 * U.lit_bufsize, U.level = F, U.strategy = x, U.method = B, ft(t);
|
|
1786
1786
|
}
|
|
1787
|
-
|
|
1787
|
+
h = [new nt(0, 0, 0, 0, function(t, F) {
|
|
1788
1788
|
var B = 65535;
|
|
1789
1789
|
for (B > t.pending_buf_size - 5 && (B = t.pending_buf_size - 5); ; ) {
|
|
1790
1790
|
if (t.lookahead <= 1) {
|
|
@@ -1804,7 +1804,7 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
1804
1804
|
}, y.deflateInit2 = ct, y.deflateReset = ft, y.deflateResetKeep = at, y.deflateSetHeader = function(t, F) {
|
|
1805
1805
|
return t && t.state ? t.state.wrap !== 2 ? p : (t.state.gzhead = F, i) : p;
|
|
1806
1806
|
}, y.deflate = function(t, F) {
|
|
1807
|
-
var B, f,
|
|
1807
|
+
var B, f, l, x;
|
|
1808
1808
|
if (!t || !t.state || 5 < F || F < 0)
|
|
1809
1809
|
return t ? tt(t, p) : p;
|
|
1810
1810
|
if (f = t.state, !t.output || !t.input && t.avail_in !== 0 || f.status === 666 && F !== m)
|
|
@@ -1818,35 +1818,35 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
1818
1818
|
}
|
|
1819
1819
|
if (f.status === 69)
|
|
1820
1820
|
if (f.gzhead.extra) {
|
|
1821
|
-
for (
|
|
1821
|
+
for (l = f.pending; f.gzindex < (65535 & f.gzhead.extra.length) && (f.pending !== f.pending_buf_size || (f.gzhead.hcrc && f.pending > l && (t.adler = d(t.adler, f.pending_buf, f.pending - l, l)), O(t), l = f.pending, f.pending !== f.pending_buf_size)); )
|
|
1822
1822
|
J(f, 255 & f.gzhead.extra[f.gzindex]), f.gzindex++;
|
|
1823
|
-
f.gzhead.hcrc && f.pending >
|
|
1823
|
+
f.gzhead.hcrc && f.pending > l && (t.adler = d(t.adler, f.pending_buf, f.pending - l, l)), f.gzindex === f.gzhead.extra.length && (f.gzindex = 0, f.status = 73);
|
|
1824
1824
|
} else
|
|
1825
1825
|
f.status = 73;
|
|
1826
1826
|
if (f.status === 73)
|
|
1827
1827
|
if (f.gzhead.name) {
|
|
1828
|
-
|
|
1828
|
+
l = f.pending;
|
|
1829
1829
|
do {
|
|
1830
|
-
if (f.pending === f.pending_buf_size && (f.gzhead.hcrc && f.pending >
|
|
1830
|
+
if (f.pending === f.pending_buf_size && (f.gzhead.hcrc && f.pending > l && (t.adler = d(t.adler, f.pending_buf, f.pending - l, l)), O(t), l = f.pending, f.pending === f.pending_buf_size)) {
|
|
1831
1831
|
x = 1;
|
|
1832
1832
|
break;
|
|
1833
1833
|
}
|
|
1834
1834
|
x = f.gzindex < f.gzhead.name.length ? 255 & f.gzhead.name.charCodeAt(f.gzindex++) : 0, J(f, x);
|
|
1835
1835
|
} while (x !== 0);
|
|
1836
|
-
f.gzhead.hcrc && f.pending >
|
|
1836
|
+
f.gzhead.hcrc && f.pending > l && (t.adler = d(t.adler, f.pending_buf, f.pending - l, l)), x === 0 && (f.gzindex = 0, f.status = 91);
|
|
1837
1837
|
} else
|
|
1838
1838
|
f.status = 91;
|
|
1839
1839
|
if (f.status === 91)
|
|
1840
1840
|
if (f.gzhead.comment) {
|
|
1841
|
-
|
|
1841
|
+
l = f.pending;
|
|
1842
1842
|
do {
|
|
1843
|
-
if (f.pending === f.pending_buf_size && (f.gzhead.hcrc && f.pending >
|
|
1843
|
+
if (f.pending === f.pending_buf_size && (f.gzhead.hcrc && f.pending > l && (t.adler = d(t.adler, f.pending_buf, f.pending - l, l)), O(t), l = f.pending, f.pending === f.pending_buf_size)) {
|
|
1844
1844
|
x = 1;
|
|
1845
1845
|
break;
|
|
1846
1846
|
}
|
|
1847
1847
|
x = f.gzindex < f.gzhead.comment.length ? 255 & f.gzhead.comment.charCodeAt(f.gzindex++) : 0, J(f, x);
|
|
1848
1848
|
} while (x !== 0);
|
|
1849
|
-
f.gzhead.hcrc && f.pending >
|
|
1849
|
+
f.gzhead.hcrc && f.pending > l && (t.adler = d(t.adler, f.pending_buf, f.pending - l, l)), x === 0 && (f.status = 103);
|
|
1850
1850
|
} else
|
|
1851
1851
|
f.status = 103;
|
|
1852
1852
|
if (f.status === 103 && (f.gzhead.hcrc ? (f.pending + 2 > f.pending_buf_size && O(t), f.pending + 2 <= f.pending_buf_size && (J(f, 255 & t.adler), J(f, t.adler >> 8 & 255), t.adler = 0, f.status = D)) : f.status = D), f.pending !== 0) {
|
|
@@ -1887,7 +1887,7 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
1887
1887
|
return e;
|
|
1888
1888
|
}
|
|
1889
1889
|
return A.insert = 0, M === m ? (I(A, !0), A.strm.avail_out === 0 ? Q : j) : A.last_lit && (I(A, !1), A.strm.avail_out === 0) ? e : L;
|
|
1890
|
-
}(f, F) :
|
|
1890
|
+
}(f, F) : h[f.level].func(f, F);
|
|
1891
1891
|
if (U !== Q && U !== j || (f.status = 666), U === e || U === Q)
|
|
1892
1892
|
return t.avail_out === 0 && (f.last_flush = -1), i;
|
|
1893
1893
|
if (U === L && (F === 1 ? r._tr_align(f) : F !== 5 && (r._tr_stored_block(f, 0, 0, !1), F === 3 && (V(f.head), f.lookahead === 0 && (f.strstart = 0, f.block_start = 0, f.insert = 0))), O(t), t.avail_out === 0))
|
|
@@ -1898,27 +1898,27 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
1898
1898
|
var F;
|
|
1899
1899
|
return t && t.state ? (F = t.state.status) !== w && F !== 69 && F !== 73 && F !== 91 && F !== 103 && F !== D && F !== 666 ? tt(t, p) : (t.state = null, F === D ? tt(t, -3) : i) : p;
|
|
1900
1900
|
}, y.deflateSetDictionary = function(t, F) {
|
|
1901
|
-
var B, f,
|
|
1901
|
+
var B, f, l, x, N, U, A, M, Y = F.length;
|
|
1902
1902
|
if (!t || !t.state || (x = (B = t.state).wrap) === 2 || x === 1 && B.status !== w || B.lookahead)
|
|
1903
1903
|
return p;
|
|
1904
|
-
for (x === 1 && (t.adler =
|
|
1905
|
-
for (f = B.strstart,
|
|
1904
|
+
for (x === 1 && (t.adler = u(t.adler, F, Y, 0)), B.wrap = 0, Y >= B.w_size && (x === 0 && (V(B.head), B.strstart = 0, B.block_start = 0, B.insert = 0), M = new o.Buf8(B.w_size), o.arraySet(M, F, Y - B.w_size, B.w_size, 0), F = M, Y = B.w_size), N = t.avail_in, U = t.next_in, A = t.input, t.avail_in = Y, t.next_in = 0, t.input = F, st(B); B.lookahead >= R; ) {
|
|
1905
|
+
for (f = B.strstart, l = B.lookahead - (R - 1); B.ins_h = (B.ins_h << B.hash_shift ^ B.window[f + R - 1]) & B.hash_mask, B.prev[f & B.w_mask] = B.head[B.ins_h], B.head[B.ins_h] = f, f++, --l; )
|
|
1906
1906
|
;
|
|
1907
1907
|
B.strstart = f, B.lookahead = R - 1, st(B);
|
|
1908
1908
|
}
|
|
1909
1909
|
return B.strstart += B.lookahead, B.block_start = B.strstart, B.insert = B.lookahead, B.lookahead = 0, B.match_length = B.prev_length = R - 1, B.match_available = 0, t.next_in = U, t.input = A, t.avail_in = N, B.wrap = x, i;
|
|
1910
1910
|
}, y.deflateInfo = "pako deflate (from Nodeca project)";
|
|
1911
|
-
}, { "../utils/common": 41, "./adler32": 43, "./crc32": 45, "./messages": 51, "./trees": 52 }], 47: [function(
|
|
1911
|
+
}, { "../utils/common": 41, "./adler32": 43, "./crc32": 45, "./messages": 51, "./trees": 52 }], 47: [function(a, C, y) {
|
|
1912
1912
|
C.exports = function() {
|
|
1913
1913
|
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;
|
|
1914
1914
|
};
|
|
1915
|
-
}, {}], 48: [function(
|
|
1916
|
-
C.exports = function(
|
|
1917
|
-
var r,
|
|
1918
|
-
r =
|
|
1915
|
+
}, {}], 48: [function(a, C, y) {
|
|
1916
|
+
C.exports = function(h, o) {
|
|
1917
|
+
var r, u, d, v, _, m, i, p, n, c, s, g, k, z, E, P, T, W, R, $, q, w, D, e, L;
|
|
1918
|
+
r = h.state, u = h.next_in, e = h.input, d = u + (h.avail_in - 5), v = h.next_out, L = h.output, _ = v - (o - h.avail_out), m = v + (h.avail_out - 257), i = r.dmax, p = r.wsize, n = r.whave, c = r.wnext, s = r.window, g = r.hold, k = r.bits, z = r.lencode, E = r.distcode, P = (1 << r.lenbits) - 1, T = (1 << r.distbits) - 1;
|
|
1919
1919
|
t:
|
|
1920
1920
|
do {
|
|
1921
|
-
k < 15 && (g += e[
|
|
1921
|
+
k < 15 && (g += e[u++] << k, k += 8, g += e[u++] << k, k += 8), W = z[g & P];
|
|
1922
1922
|
e:
|
|
1923
1923
|
for (; ; ) {
|
|
1924
1924
|
if (g >>>= R = W >>> 24, k -= R, (R = W >>> 16 & 255) === 0)
|
|
@@ -1933,10 +1933,10 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
1933
1933
|
r.mode = 12;
|
|
1934
1934
|
break t;
|
|
1935
1935
|
}
|
|
1936
|
-
|
|
1936
|
+
h.msg = "invalid literal/length code", r.mode = 30;
|
|
1937
1937
|
break t;
|
|
1938
1938
|
}
|
|
1939
|
-
$ = 65535 & W, (R &= 15) && (k < R && (g += e[
|
|
1939
|
+
$ = 65535 & W, (R &= 15) && (k < R && (g += e[u++] << k, k += 8), $ += g & (1 << R) - 1, g >>>= R, k -= R), k < 15 && (g += e[u++] << k, k += 8, g += e[u++] << k, k += 8), W = E[g & T];
|
|
1940
1940
|
r:
|
|
1941
1941
|
for (; ; ) {
|
|
1942
1942
|
if (g >>>= R = W >>> 24, k -= R, !(16 & (R = W >>> 16 & 255))) {
|
|
@@ -1944,16 +1944,16 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
1944
1944
|
W = E[(65535 & W) + (g & (1 << R) - 1)];
|
|
1945
1945
|
continue r;
|
|
1946
1946
|
}
|
|
1947
|
-
|
|
1947
|
+
h.msg = "invalid distance code", r.mode = 30;
|
|
1948
1948
|
break t;
|
|
1949
1949
|
}
|
|
1950
|
-
if (q = 65535 & W, k < (R &= 15) && (g += e[
|
|
1951
|
-
|
|
1950
|
+
if (q = 65535 & W, k < (R &= 15) && (g += e[u++] << k, (k += 8) < R && (g += e[u++] << k, k += 8)), i < (q += g & (1 << R) - 1)) {
|
|
1951
|
+
h.msg = "invalid distance too far back", r.mode = 30;
|
|
1952
1952
|
break t;
|
|
1953
1953
|
}
|
|
1954
1954
|
if (g >>>= R, k -= R, (R = v - _) < q) {
|
|
1955
1955
|
if (n < (R = q - R) && r.sane) {
|
|
1956
|
-
|
|
1956
|
+
h.msg = "invalid distance too far back", r.mode = 30;
|
|
1957
1957
|
break t;
|
|
1958
1958
|
}
|
|
1959
1959
|
if (D = s, (w = 0) === c) {
|
|
@@ -1990,20 +1990,20 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
1990
1990
|
}
|
|
1991
1991
|
break;
|
|
1992
1992
|
}
|
|
1993
|
-
} while (
|
|
1994
|
-
|
|
1993
|
+
} while (u < d && v < m);
|
|
1994
|
+
u -= $ = k >> 3, g &= (1 << (k -= $ << 3)) - 1, h.next_in = u, h.next_out = v, h.avail_in = u < d ? d - u + 5 : 5 - (u - d), h.avail_out = v < m ? m - v + 257 : 257 - (v - m), r.hold = g, r.bits = k;
|
|
1995
1995
|
};
|
|
1996
|
-
}, {}], 49: [function(
|
|
1997
|
-
var
|
|
1996
|
+
}, {}], 49: [function(a, C, y) {
|
|
1997
|
+
var h = a("../utils/common"), o = a("./adler32"), r = a("./crc32"), u = a("./inffast"), d = a("./inftrees"), v = 1, _ = 2, m = 0, i = -2, p = 1, n = 852, c = 592;
|
|
1998
1998
|
function s(w) {
|
|
1999
1999
|
return (w >>> 24 & 255) + (w >>> 8 & 65280) + ((65280 & w) << 8) + ((255 & w) << 24);
|
|
2000
2000
|
}
|
|
2001
2001
|
function g() {
|
|
2002
|
-
this.mode = 0, this.last = !1, this.wrap = 0, this.havedict = !1, this.flags = 0, this.dmax = 0, this.check = 0, this.total = 0, this.head = null, this.wbits = 0, this.wsize = 0, this.whave = 0, this.wnext = 0, this.window = null, this.hold = 0, this.bits = 0, this.length = 0, this.offset = 0, this.extra = 0, this.lencode = null, this.distcode = null, this.lenbits = 0, this.distbits = 0, this.ncode = 0, this.nlen = 0, this.ndist = 0, this.have = 0, this.next = null, this.lens = new
|
|
2002
|
+
this.mode = 0, this.last = !1, this.wrap = 0, this.havedict = !1, this.flags = 0, this.dmax = 0, this.check = 0, this.total = 0, this.head = null, this.wbits = 0, this.wsize = 0, this.whave = 0, this.wnext = 0, this.window = null, this.hold = 0, this.bits = 0, this.length = 0, this.offset = 0, this.extra = 0, this.lencode = null, this.distcode = null, this.lenbits = 0, this.distbits = 0, this.ncode = 0, this.nlen = 0, this.ndist = 0, this.have = 0, this.next = null, this.lens = new h.Buf16(320), this.work = new h.Buf16(288), this.lendyn = null, this.distdyn = null, this.sane = 0, this.back = 0, this.was = 0;
|
|
2003
2003
|
}
|
|
2004
2004
|
function k(w) {
|
|
2005
2005
|
var D;
|
|
2006
|
-
return w && w.state ? (D = w.state, w.total_in = w.total_out = D.total = 0, w.msg = "", D.wrap && (w.adler = 1 & D.wrap), D.mode = p, D.last = 0, D.havedict = 0, D.dmax = 32768, D.head = null, D.hold = 0, D.bits = 0, D.lencode = D.lendyn = new
|
|
2006
|
+
return w && w.state ? (D = w.state, w.total_in = w.total_out = D.total = 0, w.msg = "", D.wrap && (w.adler = 1 & D.wrap), D.mode = p, D.last = 0, D.havedict = 0, D.dmax = 32768, D.head = null, D.hold = 0, D.bits = 0, D.lencode = D.lendyn = new h.Buf32(n), D.distcode = D.distdyn = new h.Buf32(c), D.sane = 1, D.back = -1, m) : i;
|
|
2007
2007
|
}
|
|
2008
2008
|
function z(w) {
|
|
2009
2009
|
var D;
|
|
@@ -2021,7 +2021,7 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
2021
2021
|
function $(w) {
|
|
2022
2022
|
if (R) {
|
|
2023
2023
|
var D;
|
|
2024
|
-
for (T = new
|
|
2024
|
+
for (T = new h.Buf32(512), W = new h.Buf32(32), D = 0; D < 144; )
|
|
2025
2025
|
w.lens[D++] = 8;
|
|
2026
2026
|
for (; D < 256; )
|
|
2027
2027
|
w.lens[D++] = 9;
|
|
@@ -2037,12 +2037,12 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
2037
2037
|
}
|
|
2038
2038
|
function q(w, D, e, L) {
|
|
2039
2039
|
var Q, j = w.state;
|
|
2040
|
-
return j.window === null && (j.wsize = 1 << j.wbits, j.wnext = 0, j.whave = 0, j.window = new
|
|
2040
|
+
return j.window === null && (j.wsize = 1 << j.wbits, j.wnext = 0, j.whave = 0, j.window = new h.Buf8(j.wsize)), L >= j.wsize ? (h.arraySet(j.window, D, e - j.wsize, j.wsize, 0), j.wnext = 0, j.whave = j.wsize) : (L < (Q = j.wsize - j.wnext) && (Q = L), h.arraySet(j.window, D, e - L, Q, j.wnext), (L -= Q) ? (h.arraySet(j.window, D, e - L, L, 0), j.wnext = L, j.whave = j.wsize) : (j.wnext += Q, j.wnext === j.wsize && (j.wnext = 0), j.whave < j.wsize && (j.whave += Q))), 0;
|
|
2041
2041
|
}
|
|
2042
2042
|
y.inflateReset = z, y.inflateReset2 = E, y.inflateResetKeep = k, y.inflateInit = function(w) {
|
|
2043
2043
|
return P(w, 15);
|
|
2044
2044
|
}, y.inflateInit2 = P, y.inflate = function(w, D) {
|
|
2045
|
-
var e, L, Q, j, tt, Z, V, O, I, J, K, G, st, ht, et, nt, lt, at, ft, ct, t, F, B, f,
|
|
2045
|
+
var e, L, Q, j, tt, Z, V, O, I, J, K, G, st, ht, et, nt, lt, at, ft, ct, t, F, B, f, l = 0, x = new h.Buf8(4), N = [16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15];
|
|
2046
2046
|
if (!w || !w.state || !w.output || !w.input && w.avail_in !== 0)
|
|
2047
2047
|
return i;
|
|
2048
2048
|
(e = w.state).mode === 12 && (e.mode = 13), tt = w.next_out, Q = w.output, V = w.avail_out, j = w.next_in, L = w.input, Z = w.avail_in, O = e.hold, I = e.bits, J = Z, K = V, F = m;
|
|
@@ -2120,7 +2120,7 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
2120
2120
|
e.head && (e.head.extra = null);
|
|
2121
2121
|
e.mode = 6;
|
|
2122
2122
|
case 6:
|
|
2123
|
-
if (1024 & e.flags && (Z < (G = e.length) && (G = Z), G && (e.head && (t = e.head.extra_len - e.length, e.head.extra || (e.head.extra = new Array(e.head.extra_len)),
|
|
2123
|
+
if (1024 & e.flags && (Z < (G = e.length) && (G = Z), G && (e.head && (t = e.head.extra_len - e.length, e.head.extra || (e.head.extra = new Array(e.head.extra_len)), h.arraySet(e.head.extra, L, j, G, t)), 512 & e.flags && (e.check = r(e.check, L, G, j)), Z -= G, j += G, e.length -= G), e.length))
|
|
2124
2124
|
break t;
|
|
2125
2125
|
e.length = 0, e.mode = 7;
|
|
2126
2126
|
case 7:
|
|
@@ -2219,7 +2219,7 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
2219
2219
|
if (G = e.length) {
|
|
2220
2220
|
if (Z < G && (G = Z), V < G && (G = V), G === 0)
|
|
2221
2221
|
break t;
|
|
2222
|
-
|
|
2222
|
+
h.arraySet(Q, L, j, G, tt), Z -= G, j += G, V -= G, tt += G, e.length -= G;
|
|
2223
2223
|
break;
|
|
2224
2224
|
}
|
|
2225
2225
|
e.mode = 12;
|
|
@@ -2253,7 +2253,7 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
2253
2253
|
e.have = 0, e.mode = 19;
|
|
2254
2254
|
case 19:
|
|
2255
2255
|
for (; e.have < e.nlen + e.ndist; ) {
|
|
2256
|
-
for (; nt = (
|
|
2256
|
+
for (; nt = (l = e.lencode[O & (1 << e.lenbits) - 1]) >>> 16 & 255, lt = 65535 & l, !((et = l >>> 24) <= I); ) {
|
|
2257
2257
|
if (Z === 0)
|
|
2258
2258
|
break t;
|
|
2259
2259
|
Z--, O += L[j++] << I, I += 8;
|
|
@@ -2315,16 +2315,16 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
2315
2315
|
e.mode = 21;
|
|
2316
2316
|
case 21:
|
|
2317
2317
|
if (6 <= Z && 258 <= V) {
|
|
2318
|
-
w.next_out = tt, w.avail_out = V, w.next_in = j, w.avail_in = Z, e.hold = O, e.bits = I,
|
|
2318
|
+
w.next_out = tt, w.avail_out = V, w.next_in = j, w.avail_in = Z, e.hold = O, e.bits = I, u(w, K), tt = w.next_out, Q = w.output, V = w.avail_out, j = w.next_in, L = w.input, Z = w.avail_in, O = e.hold, I = e.bits, e.mode === 12 && (e.back = -1);
|
|
2319
2319
|
break;
|
|
2320
2320
|
}
|
|
2321
|
-
for (e.back = 0; nt = (
|
|
2321
|
+
for (e.back = 0; nt = (l = e.lencode[O & (1 << e.lenbits) - 1]) >>> 16 & 255, lt = 65535 & l, !((et = l >>> 24) <= I); ) {
|
|
2322
2322
|
if (Z === 0)
|
|
2323
2323
|
break t;
|
|
2324
2324
|
Z--, O += L[j++] << I, I += 8;
|
|
2325
2325
|
}
|
|
2326
2326
|
if (nt && (240 & nt) == 0) {
|
|
2327
|
-
for (at = et, ft = nt, ct = lt; nt = (
|
|
2327
|
+
for (at = et, ft = nt, ct = lt; nt = (l = e.lencode[ct + ((O & (1 << at + ft) - 1) >> at)]) >>> 16 & 255, lt = 65535 & l, !(at + (et = l >>> 24) <= I); ) {
|
|
2328
2328
|
if (Z === 0)
|
|
2329
2329
|
break t;
|
|
2330
2330
|
Z--, O += L[j++] << I, I += 8;
|
|
@@ -2355,13 +2355,13 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
2355
2355
|
}
|
|
2356
2356
|
e.was = e.length, e.mode = 23;
|
|
2357
2357
|
case 23:
|
|
2358
|
-
for (; nt = (
|
|
2358
|
+
for (; nt = (l = e.distcode[O & (1 << e.distbits) - 1]) >>> 16 & 255, lt = 65535 & l, !((et = l >>> 24) <= I); ) {
|
|
2359
2359
|
if (Z === 0)
|
|
2360
2360
|
break t;
|
|
2361
2361
|
Z--, O += L[j++] << I, I += 8;
|
|
2362
2362
|
}
|
|
2363
2363
|
if ((240 & nt) == 0) {
|
|
2364
|
-
for (at = et, ft = nt, ct = lt; nt = (
|
|
2364
|
+
for (at = et, ft = nt, ct = lt; nt = (l = e.distcode[ct + ((O & (1 << at + ft) - 1) >> at)]) >>> 16 & 255, lt = 65535 & l, !(at + (et = l >>> 24) <= I); ) {
|
|
2365
2365
|
if (Z === 0)
|
|
2366
2366
|
break t;
|
|
2367
2367
|
Z--, O += L[j++] << I, I += 8;
|
|
@@ -2414,7 +2414,7 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
2414
2414
|
break t;
|
|
2415
2415
|
Z--, O |= L[j++] << I, I += 8;
|
|
2416
2416
|
}
|
|
2417
|
-
if (K -= V, w.total_out += K, e.total += K, K && (w.adler = e.check = e.flags ? r(e.check, Q, K, tt - K) :
|
|
2417
|
+
if (K -= V, w.total_out += K, e.total += K, K && (w.adler = e.check = e.flags ? r(e.check, Q, K, tt - K) : o(e.check, Q, K, tt - K)), K = V, (e.flags ? O : s(O)) !== e.check) {
|
|
2418
2418
|
w.msg = "incorrect data check", e.mode = 30;
|
|
2419
2419
|
break;
|
|
2420
2420
|
}
|
|
@@ -2447,7 +2447,7 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
2447
2447
|
default:
|
|
2448
2448
|
return i;
|
|
2449
2449
|
}
|
|
2450
|
-
return w.next_out = tt, w.avail_out = V, w.next_in = j, w.avail_in = Z, e.hold = O, e.bits = I, (e.wsize || K !== w.avail_out && e.mode < 30 && (e.mode < 27 || D !== 4)) && q(w, w.output, w.next_out, K - w.avail_out) ? (e.mode = 31, -4) : (J -= w.avail_in, K -= w.avail_out, w.total_in += J, w.total_out += K, e.total += K, e.wrap && K && (w.adler = e.check = e.flags ? r(e.check, Q, K, w.next_out - K) :
|
|
2450
|
+
return w.next_out = tt, w.avail_out = V, w.next_in = j, w.avail_in = Z, e.hold = O, e.bits = I, (e.wsize || K !== w.avail_out && e.mode < 30 && (e.mode < 27 || D !== 4)) && q(w, w.output, w.next_out, K - w.avail_out) ? (e.mode = 31, -4) : (J -= w.avail_in, K -= w.avail_out, w.total_in += J, w.total_out += K, e.total += K, e.wrap && K && (w.adler = e.check = e.flags ? r(e.check, Q, K, w.next_out - K) : o(e.check, Q, K, w.next_out - K)), w.data_type = e.bits + (e.last ? 64 : 0) + (e.mode === 12 ? 128 : 0) + (e.mode === 20 || e.mode === 15 ? 256 : 0), (J == 0 && K === 0 || D === 4) && F === m && (F = -5), F);
|
|
2451
2451
|
}, y.inflateEnd = function(w) {
|
|
2452
2452
|
if (!w || !w.state)
|
|
2453
2453
|
return i;
|
|
@@ -2458,12 +2458,12 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
2458
2458
|
return w && w.state ? (2 & (e = w.state).wrap) == 0 ? i : ((e.head = D).done = !1, m) : i;
|
|
2459
2459
|
}, y.inflateSetDictionary = function(w, D) {
|
|
2460
2460
|
var e, L = D.length;
|
|
2461
|
-
return w && w.state ? (e = w.state).wrap !== 0 && e.mode !== 11 ? i : e.mode === 11 &&
|
|
2461
|
+
return w && w.state ? (e = w.state).wrap !== 0 && e.mode !== 11 ? i : e.mode === 11 && o(1, D, L, 0) !== e.check ? -3 : q(w, D, L, L) ? (e.mode = 31, -4) : (e.havedict = 1, m) : i;
|
|
2462
2462
|
}, y.inflateInfo = "pako inflate (from Nodeca project)";
|
|
2463
|
-
}, { "../utils/common": 41, "./adler32": 43, "./crc32": 45, "./inffast": 48, "./inftrees": 50 }], 50: [function(
|
|
2464
|
-
var
|
|
2463
|
+
}, { "../utils/common": 41, "./adler32": 43, "./crc32": 45, "./inffast": 48, "./inftrees": 50 }], 50: [function(a, C, y) {
|
|
2464
|
+
var h = a("../utils/common"), o = [3, 4, 5, 6, 7, 8, 9, 10, 11, 13, 15, 17, 19, 23, 27, 31, 35, 43, 51, 59, 67, 83, 99, 115, 131, 163, 195, 227, 258, 0, 0], 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], u = [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], d = [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];
|
|
2465
2465
|
C.exports = function(v, _, m, i, p, n, c, s) {
|
|
2466
|
-
var g, k, z, E, P, T, W, R, $, q = s.bits, w = 0, D = 0, e = 0, L = 0, Q = 0, j = 0, tt = 0, Z = 0, V = 0, O = 0, I = null, J = 0, K = new
|
|
2466
|
+
var g, k, z, E, P, T, W, R, $, q = s.bits, w = 0, D = 0, e = 0, L = 0, Q = 0, j = 0, tt = 0, Z = 0, V = 0, O = 0, I = null, J = 0, K = new h.Buf16(16), G = new h.Buf16(16), st = null, ht = 0;
|
|
2467
2467
|
for (w = 0; w <= 15; w++)
|
|
2468
2468
|
K[w] = 0;
|
|
2469
2469
|
for (D = 0; D < i; D++)
|
|
@@ -2483,7 +2483,7 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
2483
2483
|
G[w + 1] = G[w] + K[w];
|
|
2484
2484
|
for (D = 0; D < i; D++)
|
|
2485
2485
|
_[m + D] !== 0 && (c[G[_[m + D]]++] = D);
|
|
2486
|
-
if (T = v === 0 ? (I = st = c, 19) : v === 1 ? (I =
|
|
2486
|
+
if (T = v === 0 ? (I = st = c, 19) : v === 1 ? (I = o, J -= 257, st = r, ht -= 257, 256) : (I = u, st = d, -1), w = e, P = n, tt = D = O = 0, z = -1, E = (V = 1 << (j = Q)) - 1, v === 1 && 852 < V || v === 2 && 592 < V)
|
|
2487
2487
|
return 1;
|
|
2488
2488
|
for (; ; ) {
|
|
2489
2489
|
for (W = w - tt, $ = c[D] < T ? (R = 0, c[D]) : c[D] > T ? (R = st[ht + c[D]], I[J + c[D]]) : (R = 96, 0), g = 1 << w - tt, e = k = 1 << j; p[P + (O >> tt) + (k -= g)] = W << 24 | R << 16 | $ | 0, k !== 0; )
|
|
@@ -2505,139 +2505,139 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
2505
2505
|
}
|
|
2506
2506
|
return O !== 0 && (p[P + O] = w - tt << 24 | 64 << 16 | 0), s.bits = Q, 0;
|
|
2507
2507
|
};
|
|
2508
|
-
}, { "../utils/common": 41 }], 51: [function(
|
|
2508
|
+
}, { "../utils/common": 41 }], 51: [function(a, C, y) {
|
|
2509
2509
|
C.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" };
|
|
2510
|
-
}, {}], 52: [function(
|
|
2511
|
-
var
|
|
2512
|
-
function
|
|
2513
|
-
for (var x =
|
|
2514
|
-
|
|
2510
|
+
}, {}], 52: [function(a, C, y) {
|
|
2511
|
+
var h = a("../utils/common"), o = 0, r = 1;
|
|
2512
|
+
function u(l) {
|
|
2513
|
+
for (var x = l.length; 0 <= --x; )
|
|
2514
|
+
l[x] = 0;
|
|
2515
2515
|
}
|
|
2516
2516
|
var d = 0, v = 29, _ = 256, m = _ + 1 + v, i = 30, p = 19, n = 2 * m + 1, c = 15, s = 16, g = 7, k = 256, z = 16, E = 17, P = 18, T = [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], W = [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], R = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 3, 7], $ = [16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15], q = new Array(2 * (m + 2));
|
|
2517
|
-
|
|
2517
|
+
u(q);
|
|
2518
2518
|
var w = new Array(2 * i);
|
|
2519
|
-
|
|
2519
|
+
u(w);
|
|
2520
2520
|
var D = new Array(512);
|
|
2521
|
-
|
|
2521
|
+
u(D);
|
|
2522
2522
|
var e = new Array(256);
|
|
2523
|
-
|
|
2523
|
+
u(e);
|
|
2524
2524
|
var L = new Array(v);
|
|
2525
|
-
|
|
2525
|
+
u(L);
|
|
2526
2526
|
var Q, j, tt, Z = new Array(i);
|
|
2527
|
-
function V(
|
|
2528
|
-
this.static_tree =
|
|
2527
|
+
function V(l, x, N, U, A) {
|
|
2528
|
+
this.static_tree = l, this.extra_bits = x, this.extra_base = N, this.elems = U, this.max_length = A, this.has_stree = l && l.length;
|
|
2529
2529
|
}
|
|
2530
|
-
function O(
|
|
2531
|
-
this.dyn_tree =
|
|
2530
|
+
function O(l, x) {
|
|
2531
|
+
this.dyn_tree = l, this.max_code = 0, this.stat_desc = x;
|
|
2532
2532
|
}
|
|
2533
|
-
function I(
|
|
2534
|
-
return
|
|
2533
|
+
function I(l) {
|
|
2534
|
+
return l < 256 ? D[l] : D[256 + (l >>> 7)];
|
|
2535
2535
|
}
|
|
2536
|
-
function J(
|
|
2537
|
-
|
|
2536
|
+
function J(l, x) {
|
|
2537
|
+
l.pending_buf[l.pending++] = 255 & x, l.pending_buf[l.pending++] = x >>> 8 & 255;
|
|
2538
2538
|
}
|
|
2539
|
-
function K(
|
|
2540
|
-
|
|
2539
|
+
function K(l, x, N) {
|
|
2540
|
+
l.bi_valid > s - N ? (l.bi_buf |= x << l.bi_valid & 65535, J(l, l.bi_buf), l.bi_buf = x >> s - l.bi_valid, l.bi_valid += N - s) : (l.bi_buf |= x << l.bi_valid & 65535, l.bi_valid += N);
|
|
2541
2541
|
}
|
|
2542
|
-
function G(
|
|
2543
|
-
K(
|
|
2542
|
+
function G(l, x, N) {
|
|
2543
|
+
K(l, N[2 * x], N[2 * x + 1]);
|
|
2544
2544
|
}
|
|
2545
|
-
function st(
|
|
2546
|
-
for (var N = 0; N |= 1 &
|
|
2545
|
+
function st(l, x) {
|
|
2546
|
+
for (var N = 0; N |= 1 & l, l >>>= 1, N <<= 1, 0 < --x; )
|
|
2547
2547
|
;
|
|
2548
2548
|
return N >>> 1;
|
|
2549
2549
|
}
|
|
2550
|
-
function ht(
|
|
2550
|
+
function ht(l, x, N) {
|
|
2551
2551
|
var U, A, M = new Array(c + 1), Y = 0;
|
|
2552
2552
|
for (U = 1; U <= c; U++)
|
|
2553
2553
|
M[U] = Y = Y + N[U - 1] << 1;
|
|
2554
2554
|
for (A = 0; A <= x; A++) {
|
|
2555
|
-
var H =
|
|
2556
|
-
H !== 0 && (
|
|
2555
|
+
var H = l[2 * A + 1];
|
|
2556
|
+
H !== 0 && (l[2 * A] = st(M[H]++, H));
|
|
2557
2557
|
}
|
|
2558
2558
|
}
|
|
2559
|
-
function et(
|
|
2559
|
+
function et(l) {
|
|
2560
2560
|
var x;
|
|
2561
2561
|
for (x = 0; x < m; x++)
|
|
2562
|
-
|
|
2562
|
+
l.dyn_ltree[2 * x] = 0;
|
|
2563
2563
|
for (x = 0; x < i; x++)
|
|
2564
|
-
|
|
2564
|
+
l.dyn_dtree[2 * x] = 0;
|
|
2565
2565
|
for (x = 0; x < p; x++)
|
|
2566
|
-
|
|
2567
|
-
|
|
2566
|
+
l.bl_tree[2 * x] = 0;
|
|
2567
|
+
l.dyn_ltree[2 * k] = 1, l.opt_len = l.static_len = 0, l.last_lit = l.matches = 0;
|
|
2568
2568
|
}
|
|
2569
|
-
function nt(
|
|
2570
|
-
8 <
|
|
2569
|
+
function nt(l) {
|
|
2570
|
+
8 < l.bi_valid ? J(l, l.bi_buf) : 0 < l.bi_valid && (l.pending_buf[l.pending++] = l.bi_buf), l.bi_buf = 0, l.bi_valid = 0;
|
|
2571
2571
|
}
|
|
2572
|
-
function lt(
|
|
2572
|
+
function lt(l, x, N, U) {
|
|
2573
2573
|
var A = 2 * x, M = 2 * N;
|
|
2574
|
-
return
|
|
2574
|
+
return l[A] < l[M] || l[A] === l[M] && U[x] <= U[N];
|
|
2575
2575
|
}
|
|
2576
|
-
function at(
|
|
2577
|
-
for (var U =
|
|
2578
|
-
|
|
2579
|
-
|
|
2576
|
+
function at(l, x, N) {
|
|
2577
|
+
for (var U = l.heap[N], A = N << 1; A <= l.heap_len && (A < l.heap_len && lt(x, l.heap[A + 1], l.heap[A], l.depth) && A++, !lt(x, U, l.heap[A], l.depth)); )
|
|
2578
|
+
l.heap[N] = l.heap[A], N = A, A <<= 1;
|
|
2579
|
+
l.heap[N] = U;
|
|
2580
2580
|
}
|
|
2581
|
-
function ft(
|
|
2581
|
+
function ft(l, x, N) {
|
|
2582
2582
|
var U, A, M, Y, H = 0;
|
|
2583
|
-
if (
|
|
2584
|
-
for (; U =
|
|
2583
|
+
if (l.last_lit !== 0)
|
|
2584
|
+
for (; U = l.pending_buf[l.d_buf + 2 * H] << 8 | l.pending_buf[l.d_buf + 2 * H + 1], A = l.pending_buf[l.l_buf + H], H++, U === 0 ? G(l, A, x) : (G(l, (M = e[A]) + _ + 1, x), (Y = T[M]) !== 0 && K(l, A -= L[M], Y), G(l, M = I(--U), N), (Y = W[M]) !== 0 && K(l, U -= Z[M], Y)), H < l.last_lit; )
|
|
2585
2585
|
;
|
|
2586
|
-
G(
|
|
2586
|
+
G(l, k, x);
|
|
2587
2587
|
}
|
|
2588
|
-
function ct(
|
|
2588
|
+
function ct(l, x) {
|
|
2589
2589
|
var N, U, A, M = x.dyn_tree, Y = x.stat_desc.static_tree, H = x.stat_desc.has_stree, X = x.stat_desc.elems, it = -1;
|
|
2590
|
-
for (
|
|
2591
|
-
M[2 * N] !== 0 ? (
|
|
2592
|
-
for (;
|
|
2593
|
-
M[2 * (A =
|
|
2594
|
-
for (x.max_code = it, N =
|
|
2595
|
-
at(
|
|
2596
|
-
for (A = X; N =
|
|
2590
|
+
for (l.heap_len = 0, l.heap_max = n, N = 0; N < X; N++)
|
|
2591
|
+
M[2 * N] !== 0 ? (l.heap[++l.heap_len] = it = N, l.depth[N] = 0) : M[2 * N + 1] = 0;
|
|
2592
|
+
for (; l.heap_len < 2; )
|
|
2593
|
+
M[2 * (A = l.heap[++l.heap_len] = it < 2 ? ++it : 0)] = 1, l.depth[A] = 0, l.opt_len--, H && (l.static_len -= Y[2 * A + 1]);
|
|
2594
|
+
for (x.max_code = it, N = l.heap_len >> 1; 1 <= N; N--)
|
|
2595
|
+
at(l, M, N);
|
|
2596
|
+
for (A = X; N = l.heap[1], l.heap[1] = l.heap[l.heap_len--], at(l, M, 1), U = l.heap[1], l.heap[--l.heap_max] = N, l.heap[--l.heap_max] = U, M[2 * A] = M[2 * N] + M[2 * U], l.depth[A] = (l.depth[N] >= l.depth[U] ? l.depth[N] : l.depth[U]) + 1, M[2 * N + 1] = M[2 * U + 1] = A, l.heap[1] = A++, at(l, M, 1), 2 <= l.heap_len; )
|
|
2597
2597
|
;
|
|
2598
|
-
|
|
2599
|
-
var gt, dt, _t, ot,
|
|
2598
|
+
l.heap[--l.heap_max] = l.heap[1], function(rt, ut) {
|
|
2599
|
+
var gt, dt, _t, ot, bt, xt, pt = ut.dyn_tree, St = ut.max_code, Ot = ut.stat_desc.static_tree, Bt = ut.stat_desc.has_stree, Rt = ut.stat_desc.extra_bits, Et = ut.stat_desc.extra_base, vt = ut.stat_desc.max_length, wt = 0;
|
|
2600
2600
|
for (ot = 0; ot <= c; ot++)
|
|
2601
2601
|
rt.bl_count[ot] = 0;
|
|
2602
2602
|
for (pt[2 * rt.heap[rt.heap_max] + 1] = 0, gt = rt.heap_max + 1; gt < n; gt++)
|
|
2603
|
-
vt < (ot = pt[2 * pt[2 * (dt = rt.heap[gt]) + 1] + 1] + 1) && (ot = vt,
|
|
2604
|
-
if (
|
|
2603
|
+
vt < (ot = pt[2 * pt[2 * (dt = rt.heap[gt]) + 1] + 1] + 1) && (ot = vt, wt++), pt[2 * dt + 1] = ot, St < dt || (rt.bl_count[ot]++, bt = 0, Et <= dt && (bt = Rt[dt - Et]), xt = pt[2 * dt], rt.opt_len += xt * (ot + bt), Bt && (rt.static_len += xt * (Ot[2 * dt + 1] + bt)));
|
|
2604
|
+
if (wt !== 0) {
|
|
2605
2605
|
do {
|
|
2606
2606
|
for (ot = vt - 1; rt.bl_count[ot] === 0; )
|
|
2607
2607
|
ot--;
|
|
2608
|
-
rt.bl_count[ot]--, rt.bl_count[ot + 1] += 2, rt.bl_count[vt]--,
|
|
2609
|
-
} while (0 <
|
|
2608
|
+
rt.bl_count[ot]--, rt.bl_count[ot + 1] += 2, rt.bl_count[vt]--, wt -= 2;
|
|
2609
|
+
} while (0 < wt);
|
|
2610
2610
|
for (ot = vt; ot !== 0; ot--)
|
|
2611
2611
|
for (dt = rt.bl_count[ot]; dt !== 0; )
|
|
2612
2612
|
St < (_t = rt.heap[--gt]) || (pt[2 * _t + 1] !== ot && (rt.opt_len += (ot - pt[2 * _t + 1]) * pt[2 * _t], pt[2 * _t + 1] = ot), dt--);
|
|
2613
2613
|
}
|
|
2614
|
-
}(
|
|
2614
|
+
}(l, x), ht(M, it, l.bl_count);
|
|
2615
2615
|
}
|
|
2616
|
-
function t(
|
|
2616
|
+
function t(l, x, N) {
|
|
2617
2617
|
var U, A, M = -1, Y = x[1], H = 0, X = 7, it = 4;
|
|
2618
2618
|
for (Y === 0 && (X = 138, it = 3), x[2 * (N + 1) + 1] = 65535, U = 0; U <= N; U++)
|
|
2619
|
-
A = Y, Y = x[2 * (U + 1) + 1], ++H < X && A === Y || (H < it ?
|
|
2619
|
+
A = Y, Y = x[2 * (U + 1) + 1], ++H < X && A === Y || (H < it ? l.bl_tree[2 * A] += H : A !== 0 ? (A !== M && l.bl_tree[2 * A]++, l.bl_tree[2 * z]++) : H <= 10 ? l.bl_tree[2 * E]++ : l.bl_tree[2 * P]++, M = A, it = (H = 0) === Y ? (X = 138, 3) : A === Y ? (X = 6, 3) : (X = 7, 4));
|
|
2620
2620
|
}
|
|
2621
|
-
function F(
|
|
2621
|
+
function F(l, x, N) {
|
|
2622
2622
|
var U, A, M = -1, Y = x[1], H = 0, X = 7, it = 4;
|
|
2623
2623
|
for (Y === 0 && (X = 138, it = 3), U = 0; U <= N; U++)
|
|
2624
2624
|
if (A = Y, Y = x[2 * (U + 1) + 1], !(++H < X && A === Y)) {
|
|
2625
2625
|
if (H < it)
|
|
2626
|
-
for (; G(
|
|
2626
|
+
for (; G(l, A, l.bl_tree), --H != 0; )
|
|
2627
2627
|
;
|
|
2628
2628
|
else
|
|
2629
|
-
A !== 0 ? (A !== M && (G(
|
|
2629
|
+
A !== 0 ? (A !== M && (G(l, A, l.bl_tree), H--), G(l, z, l.bl_tree), K(l, H - 3, 2)) : H <= 10 ? (G(l, E, l.bl_tree), K(l, H - 3, 3)) : (G(l, P, l.bl_tree), K(l, H - 11, 7));
|
|
2630
2630
|
M = A, it = (H = 0) === Y ? (X = 138, 3) : A === Y ? (X = 6, 3) : (X = 7, 4);
|
|
2631
2631
|
}
|
|
2632
2632
|
}
|
|
2633
|
-
|
|
2633
|
+
u(Z);
|
|
2634
2634
|
var B = !1;
|
|
2635
|
-
function f(
|
|
2636
|
-
K(
|
|
2637
|
-
nt(A), H && (J(A, Y), J(A, ~Y)),
|
|
2638
|
-
}(
|
|
2635
|
+
function f(l, x, N, U) {
|
|
2636
|
+
K(l, (d << 1) + (U ? 1 : 0), 3), function(A, M, Y, H) {
|
|
2637
|
+
nt(A), H && (J(A, Y), J(A, ~Y)), h.arraySet(A.pending_buf, A.window, M, Y, A.pending), A.pending += Y;
|
|
2638
|
+
}(l, x, N, !0);
|
|
2639
2639
|
}
|
|
2640
|
-
y._tr_init = function(
|
|
2640
|
+
y._tr_init = function(l) {
|
|
2641
2641
|
B || (function() {
|
|
2642
2642
|
var x, N, U, A, M, Y = new Array(c + 1);
|
|
2643
2643
|
for (A = U = 0; A < v - 1; A++)
|
|
@@ -2662,61 +2662,61 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
2662
2662
|
for (ht(q, m + 1, Y), x = 0; x < i; x++)
|
|
2663
2663
|
w[2 * x + 1] = 5, w[2 * x] = st(x, 5);
|
|
2664
2664
|
Q = new V(q, T, _ + 1, m, c), j = new V(w, W, 0, i, c), tt = new V(new Array(0), R, 0, p, g);
|
|
2665
|
-
}(), B = !0),
|
|
2666
|
-
}, y._tr_stored_block = f, y._tr_flush_block = function(
|
|
2665
|
+
}(), B = !0), l.l_desc = new O(l.dyn_ltree, Q), l.d_desc = new O(l.dyn_dtree, j), l.bl_desc = new O(l.bl_tree, tt), l.bi_buf = 0, l.bi_valid = 0, et(l);
|
|
2666
|
+
}, y._tr_stored_block = f, y._tr_flush_block = function(l, x, N, U) {
|
|
2667
2667
|
var A, M, Y = 0;
|
|
2668
|
-
0 <
|
|
2668
|
+
0 < l.level ? (l.strm.data_type === 2 && (l.strm.data_type = function(H) {
|
|
2669
2669
|
var X, it = 4093624447;
|
|
2670
2670
|
for (X = 0; X <= 31; X++, it >>>= 1)
|
|
2671
2671
|
if (1 & it && H.dyn_ltree[2 * X] !== 0)
|
|
2672
|
-
return
|
|
2672
|
+
return o;
|
|
2673
2673
|
if (H.dyn_ltree[18] !== 0 || H.dyn_ltree[20] !== 0 || H.dyn_ltree[26] !== 0)
|
|
2674
2674
|
return r;
|
|
2675
2675
|
for (X = 32; X < _; X++)
|
|
2676
2676
|
if (H.dyn_ltree[2 * X] !== 0)
|
|
2677
2677
|
return r;
|
|
2678
|
-
return
|
|
2679
|
-
}(
|
|
2678
|
+
return o;
|
|
2679
|
+
}(l)), ct(l, l.l_desc), ct(l, l.d_desc), Y = function(H) {
|
|
2680
2680
|
var X;
|
|
2681
2681
|
for (t(H, H.dyn_ltree, H.l_desc.max_code), t(H, H.dyn_dtree, H.d_desc.max_code), ct(H, H.bl_desc), X = p - 1; 3 <= X && H.bl_tree[2 * $[X] + 1] === 0; X--)
|
|
2682
2682
|
;
|
|
2683
2683
|
return H.opt_len += 3 * (X + 1) + 5 + 5 + 4, X;
|
|
2684
|
-
}(
|
|
2684
|
+
}(l), A = l.opt_len + 3 + 7 >>> 3, (M = l.static_len + 3 + 7 >>> 3) <= A && (A = M)) : A = M = N + 5, N + 4 <= A && x !== -1 ? f(l, x, N, U) : l.strategy === 4 || M === A ? (K(l, 2 + (U ? 1 : 0), 3), ft(l, q, w)) : (K(l, 4 + (U ? 1 : 0), 3), function(H, X, it, rt) {
|
|
2685
2685
|
var ut;
|
|
2686
2686
|
for (K(H, X - 257, 5), K(H, it - 1, 5), K(H, rt - 4, 4), ut = 0; ut < rt; ut++)
|
|
2687
2687
|
K(H, H.bl_tree[2 * $[ut] + 1], 3);
|
|
2688
2688
|
F(H, H.dyn_ltree, X - 1), F(H, H.dyn_dtree, it - 1);
|
|
2689
|
-
}(
|
|
2690
|
-
}, y._tr_tally = function(
|
|
2691
|
-
return
|
|
2692
|
-
}, y._tr_align = function(
|
|
2693
|
-
K(
|
|
2689
|
+
}(l, l.l_desc.max_code + 1, l.d_desc.max_code + 1, Y + 1), ft(l, l.dyn_ltree, l.dyn_dtree)), et(l), U && nt(l);
|
|
2690
|
+
}, y._tr_tally = function(l, x, N) {
|
|
2691
|
+
return l.pending_buf[l.d_buf + 2 * l.last_lit] = x >>> 8 & 255, l.pending_buf[l.d_buf + 2 * l.last_lit + 1] = 255 & x, l.pending_buf[l.l_buf + l.last_lit] = 255 & N, l.last_lit++, x === 0 ? l.dyn_ltree[2 * N]++ : (l.matches++, x--, l.dyn_ltree[2 * (e[N] + _ + 1)]++, l.dyn_dtree[2 * I(x)]++), l.last_lit === l.lit_bufsize - 1;
|
|
2692
|
+
}, y._tr_align = function(l) {
|
|
2693
|
+
K(l, 2, 3), G(l, k, q), function(x) {
|
|
2694
2694
|
x.bi_valid === 16 ? (J(x, x.bi_buf), x.bi_buf = 0, x.bi_valid = 0) : 8 <= x.bi_valid && (x.pending_buf[x.pending++] = 255 & x.bi_buf, x.bi_buf >>= 8, x.bi_valid -= 8);
|
|
2695
|
-
}(
|
|
2695
|
+
}(l);
|
|
2696
2696
|
};
|
|
2697
|
-
}, { "../utils/common": 41 }], 53: [function(
|
|
2697
|
+
}, { "../utils/common": 41 }], 53: [function(a, C, y) {
|
|
2698
2698
|
C.exports = function() {
|
|
2699
2699
|
this.input = null, this.next_in = 0, this.avail_in = 0, this.total_in = 0, this.output = null, this.next_out = 0, this.avail_out = 0, this.total_out = 0, this.msg = "", this.state = null, this.data_type = 2, this.adler = 0;
|
|
2700
2700
|
};
|
|
2701
|
-
}, {}], 54: [function(
|
|
2702
|
-
(function(
|
|
2703
|
-
(function(
|
|
2704
|
-
if (!
|
|
2705
|
-
var
|
|
2706
|
-
c = c && c.setTimeout ? c :
|
|
2701
|
+
}, {}], 54: [function(a, C, y) {
|
|
2702
|
+
(function(h) {
|
|
2703
|
+
(function(o, r) {
|
|
2704
|
+
if (!o.setImmediate) {
|
|
2705
|
+
var u, d, v, _, m = 1, i = {}, p = !1, n = o.document, c = Object.getPrototypeOf && Object.getPrototypeOf(o);
|
|
2706
|
+
c = c && c.setTimeout ? c : o, u = {}.toString.call(o.process) === "[object process]" ? function(z) {
|
|
2707
2707
|
process.nextTick(function() {
|
|
2708
2708
|
g(z);
|
|
2709
2709
|
});
|
|
2710
2710
|
} : function() {
|
|
2711
|
-
if (
|
|
2712
|
-
var z = !0, E =
|
|
2713
|
-
return
|
|
2711
|
+
if (o.postMessage && !o.importScripts) {
|
|
2712
|
+
var z = !0, E = o.onmessage;
|
|
2713
|
+
return o.onmessage = function() {
|
|
2714
2714
|
z = !1;
|
|
2715
|
-
},
|
|
2715
|
+
}, o.postMessage("", "*"), o.onmessage = E, z;
|
|
2716
2716
|
}
|
|
2717
|
-
}() ? (_ = "setImmediate$" + Math.random() + "$",
|
|
2718
|
-
|
|
2719
|
-
}) :
|
|
2717
|
+
}() ? (_ = "setImmediate$" + Math.random() + "$", o.addEventListener ? o.addEventListener("message", k, !1) : o.attachEvent("onmessage", k), function(z) {
|
|
2718
|
+
o.postMessage(_ + z, "*");
|
|
2719
|
+
}) : o.MessageChannel ? ((v = new MessageChannel()).port1.onmessage = function(z) {
|
|
2720
2720
|
g(z.data);
|
|
2721
2721
|
}, function(z) {
|
|
2722
2722
|
v.port2.postMessage(z);
|
|
@@ -2732,7 +2732,7 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
2732
2732
|
for (var E = new Array(arguments.length - 1), P = 0; P < E.length; P++)
|
|
2733
2733
|
E[P] = arguments[P + 1];
|
|
2734
2734
|
var T = { callback: z, args: E };
|
|
2735
|
-
return i[m] = T,
|
|
2735
|
+
return i[m] = T, u(m), m++;
|
|
2736
2736
|
}, c.clearImmediate = s;
|
|
2737
2737
|
}
|
|
2738
2738
|
function s(z) {
|
|
@@ -2772,9 +2772,9 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
2772
2772
|
}
|
|
2773
2773
|
}
|
|
2774
2774
|
function k(z) {
|
|
2775
|
-
z.source ===
|
|
2775
|
+
z.source === o && typeof z.data == "string" && z.data.indexOf(_) === 0 && g(+z.data.slice(_.length));
|
|
2776
2776
|
}
|
|
2777
|
-
})(typeof self > "u" ?
|
|
2777
|
+
})(typeof self > "u" ? h === void 0 ? this : h : self);
|
|
2778
2778
|
}).call(this, typeof mt < "u" ? mt : typeof self < "u" ? self : typeof window < "u" ? window : {});
|
|
2779
2779
|
}, {}] }, {}, [10])(10);
|
|
2780
2780
|
});
|
|
@@ -2782,16 +2782,16 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
2782
2782
|
const he = At.exports;
|
|
2783
2783
|
var It = { exports: {} };
|
|
2784
2784
|
(function(b, S) {
|
|
2785
|
-
(function(
|
|
2785
|
+
(function(a, C) {
|
|
2786
2786
|
C();
|
|
2787
2787
|
})(mt, function() {
|
|
2788
|
-
function
|
|
2788
|
+
function a(d, v) {
|
|
2789
2789
|
return typeof v > "u" ? v = { autoBom: !1 } : typeof v != "object" && (console.warn("Deprecated: Expected third argument to be a object"), v = { autoBom: !v }), v.autoBom && /^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(d.type) ? new Blob(["\uFEFF", d], { type: d.type }) : d;
|
|
2790
2790
|
}
|
|
2791
2791
|
function C(d, v, _) {
|
|
2792
2792
|
var m = new XMLHttpRequest();
|
|
2793
2793
|
m.open("GET", d), m.responseType = "blob", m.onload = function() {
|
|
2794
|
-
|
|
2794
|
+
u(m.response, v, _);
|
|
2795
2795
|
}, m.onerror = function() {
|
|
2796
2796
|
console.error("could not download file");
|
|
2797
2797
|
}, m.send();
|
|
@@ -2805,7 +2805,7 @@ var It = { exports: {} };
|
|
|
2805
2805
|
}
|
|
2806
2806
|
return 200 <= v.status && 299 >= v.status;
|
|
2807
2807
|
}
|
|
2808
|
-
function
|
|
2808
|
+
function h(d) {
|
|
2809
2809
|
try {
|
|
2810
2810
|
d.dispatchEvent(new MouseEvent("click"));
|
|
2811
2811
|
} catch {
|
|
@@ -2813,29 +2813,29 @@ var It = { exports: {} };
|
|
|
2813
2813
|
v.initMouseEvent("click", !0, !0, window, 0, 0, 0, 80, 20, !1, !1, !1, !1, 0, null), d.dispatchEvent(v);
|
|
2814
2814
|
}
|
|
2815
2815
|
}
|
|
2816
|
-
var
|
|
2816
|
+
var o = typeof window == "object" && window.window === window ? window : typeof self == "object" && self.self === self ? self : typeof mt == "object" && mt.global === mt ? mt : void 0, r = o.navigator && /Macintosh/.test(navigator.userAgent) && /AppleWebKit/.test(navigator.userAgent) && !/Safari/.test(navigator.userAgent), u = o.saveAs || (typeof window != "object" || window !== o ? function() {
|
|
2817
2817
|
} : "download" in HTMLAnchorElement.prototype && !r ? function(d, v, _) {
|
|
2818
|
-
var m =
|
|
2819
|
-
v = v || d.name || "download", i.download = v, i.rel = "noopener", typeof d == "string" ? (i.href = d, i.origin === location.origin ?
|
|
2818
|
+
var m = o.URL || o.webkitURL, i = document.createElement("a");
|
|
2819
|
+
v = v || d.name || "download", i.download = v, i.rel = "noopener", typeof d == "string" ? (i.href = d, i.origin === location.origin ? h(i) : y(i.href) ? C(d, v, _) : h(i, i.target = "_blank")) : (i.href = m.createObjectURL(d), setTimeout(function() {
|
|
2820
2820
|
m.revokeObjectURL(i.href);
|
|
2821
2821
|
}, 4e4), setTimeout(function() {
|
|
2822
|
-
|
|
2822
|
+
h(i);
|
|
2823
2823
|
}, 0));
|
|
2824
2824
|
} : "msSaveOrOpenBlob" in navigator ? function(d, v, _) {
|
|
2825
2825
|
if (v = v || d.name || "download", typeof d != "string")
|
|
2826
|
-
navigator.msSaveOrOpenBlob(
|
|
2826
|
+
navigator.msSaveOrOpenBlob(a(d, _), v);
|
|
2827
2827
|
else if (y(d))
|
|
2828
2828
|
C(d, v, _);
|
|
2829
2829
|
else {
|
|
2830
2830
|
var m = document.createElement("a");
|
|
2831
2831
|
m.href = d, m.target = "_blank", setTimeout(function() {
|
|
2832
|
-
|
|
2832
|
+
h(m);
|
|
2833
2833
|
});
|
|
2834
2834
|
}
|
|
2835
2835
|
} : function(d, v, _, m) {
|
|
2836
2836
|
if (m = m || open("", "_blank"), m && (m.document.title = m.document.body.innerText = "downloading..."), typeof d == "string")
|
|
2837
2837
|
return C(d, v, _);
|
|
2838
|
-
var i = d.type === "application/octet-stream", p = /constructor/i.test(
|
|
2838
|
+
var i = d.type === "application/octet-stream", p = /constructor/i.test(o.HTMLElement) || o.safari, n = /CriOS\/[\d]+/.test(navigator.userAgent);
|
|
2839
2839
|
if ((n || i && p || r) && typeof FileReader < "u") {
|
|
2840
2840
|
var c = new FileReader();
|
|
2841
2841
|
c.onloadend = function() {
|
|
@@ -2843,13 +2843,13 @@ var It = { exports: {} };
|
|
|
2843
2843
|
k = n ? k : k.replace(/^data:[^;]*;/, "data:attachment/file;"), m ? m.location.href = k : location = k, m = null;
|
|
2844
2844
|
}, c.readAsDataURL(d);
|
|
2845
2845
|
} else {
|
|
2846
|
-
var s =
|
|
2846
|
+
var s = o.URL || o.webkitURL, g = s.createObjectURL(d);
|
|
2847
2847
|
m ? m.location = g : location.href = g, m = null, setTimeout(function() {
|
|
2848
2848
|
s.revokeObjectURL(g);
|
|
2849
2849
|
}, 4e4);
|
|
2850
2850
|
}
|
|
2851
2851
|
});
|
|
2852
|
-
|
|
2852
|
+
o.saveAs = u.saveAs = u, b.exports = u;
|
|
2853
2853
|
});
|
|
2854
2854
|
})(It);
|
|
2855
2855
|
const ue = It.exports;
|
|
@@ -2882,8 +2882,8 @@ const ce = {
|
|
|
2882
2882
|
return this.record.expansion ? JSON.parse(this.record.expansion) : { padding: [12, 12, 12, 12], margin: [0, 0, 0, 0], bjColor: "#fff", radius: [0, 0, 0, 0], customCss: "", customClass: "" };
|
|
2883
2883
|
},
|
|
2884
2884
|
style() {
|
|
2885
|
-
const b = this.height + this.zhig - 12, S = this.height == 0 ? `min-height:calc(100vh - 45px - ${b}px );` : `min-height:${b}px;`,
|
|
2886
|
-
return `${S}${Zt(this.expansion)}${
|
|
2885
|
+
const b = this.height + this.zhig - 12, S = this.height == 0 ? `min-height:calc(100vh - 45px - ${b}px );` : `min-height:${b}px;`, a = this.record.customCss ? this.record.customCss : "";
|
|
2886
|
+
return `${S}${Zt(this.expansion)}${a}`;
|
|
2887
2887
|
},
|
|
2888
2888
|
...Ft(["screenHeight", "tableSize", "seekTableId"])
|
|
2889
2889
|
},
|
|
@@ -2900,8 +2900,8 @@ const ce = {
|
|
|
2900
2900
|
viewFormDetailsApi(b) {
|
|
2901
2901
|
if (!b.data)
|
|
2902
2902
|
return;
|
|
2903
|
-
const S = decodeURIComponent(b.data),
|
|
2904
|
-
zt(
|
|
2903
|
+
const S = decodeURIComponent(b.data), a = S.indexOf("?") === -1 ? S : S.slice(0, S.indexOf("?")), C = Ct(S);
|
|
2904
|
+
zt(a, C).then((y) => {
|
|
2905
2905
|
y.code === 200 && this.viewFormDetails({ data: y.data });
|
|
2906
2906
|
});
|
|
2907
2907
|
},
|
|
@@ -2915,11 +2915,11 @@ const ce = {
|
|
|
2915
2915
|
baseOpenApiLink(b) {
|
|
2916
2916
|
if (!b.data)
|
|
2917
2917
|
return;
|
|
2918
|
-
const S = decodeURIComponent(b.data),
|
|
2919
|
-
zt(
|
|
2918
|
+
const S = decodeURIComponent(b.data), a = S.indexOf("?") === -1 ? S : S.slice(0, S.indexOf("?")), C = Ct(S);
|
|
2919
|
+
zt(a, C).then((y) => {
|
|
2920
2920
|
if (y.code === 200) {
|
|
2921
|
-
const
|
|
2922
|
-
window.open(y.data,
|
|
2921
|
+
const h = b.source.linkWindowKey ? b.source.linkWindowKey : b.source.key;
|
|
2922
|
+
window.open(y.data, h);
|
|
2923
2923
|
}
|
|
2924
2924
|
});
|
|
2925
2925
|
},
|
|
@@ -2949,7 +2949,7 @@ const ce = {
|
|
|
2949
2949
|
});
|
|
2950
2950
|
},
|
|
2951
2951
|
getSysFileInfoPreview(b) {
|
|
2952
|
-
return b.url ? new Promise((S,
|
|
2952
|
+
return b.url ? new Promise((S, a) => {
|
|
2953
2953
|
S(b.url);
|
|
2954
2954
|
}) : jt({
|
|
2955
2955
|
id: b.id
|
|
@@ -2964,12 +2964,12 @@ const ce = {
|
|
|
2964
2964
|
this.statu = !1, this.$message.warning(this.$i18nt("gd.https.fileNotFoundTip", "\u672A\u627E\u5230\u6307\u5B9A\u6587\u4EF6"));
|
|
2965
2965
|
return;
|
|
2966
2966
|
}
|
|
2967
|
-
const
|
|
2967
|
+
const a = S[0], C = a.fileoriginname.substr(a.fileoriginname.lastIndexOf(".") + 1).toLowerCase();
|
|
2968
2968
|
if (["gif", "jpeg", "png", "jpg", "JPG", "PNG", "bmp", "BMP"].includes(C)) {
|
|
2969
|
-
this.baseFileImg(
|
|
2969
|
+
this.baseFileImg(a);
|
|
2970
2970
|
return;
|
|
2971
2971
|
}
|
|
2972
|
-
let y = { name:
|
|
2972
|
+
let y = { name: a.fileoriginname, fileId: a.id, fullscreen: !0 };
|
|
2973
2973
|
this.showComponents = ["filePreview"], this.$nextTick(() => {
|
|
2974
2974
|
setTimeout(() => {
|
|
2975
2975
|
this.$refs.filePreview.open(y), this.statu = !1;
|
|
@@ -2985,7 +2985,7 @@ const ce = {
|
|
|
2985
2985
|
this.statu = !1, this.$message.warning(this.$i18nt("gd.https.fileNotFoundTip", "\u672A\u627E\u5230\u6307\u5B9A\u6587\u4EF6"));
|
|
2986
2986
|
return;
|
|
2987
2987
|
}
|
|
2988
|
-
let
|
|
2988
|
+
let a = new Date().getTime() + Ut(8);
|
|
2989
2989
|
const C = this.$message({
|
|
2990
2990
|
message: S.length === 1 ? this.$i18nt("gd.https.downloading", "\u6B63\u5728\u4E0B\u8F7D\u4E2D......") : this.$i18nt("gd.https.downloading", "\u6B63\u5728\u5BFC\u51FA\u4E2D..."),
|
|
2991
2991
|
duration: 0,
|
|
@@ -2994,11 +2994,11 @@ const ce = {
|
|
|
2994
2994
|
if (S.length === 1) {
|
|
2995
2995
|
this.getFileBlob(S[0]).then((r) => {
|
|
2996
2996
|
if (r) {
|
|
2997
|
-
const
|
|
2997
|
+
const u = S[0].fileoriginname ? S[0].fileoriginname : "", d = u ? u.substr(u.lastIndexOf(".") + 1).toLowerCase() : "", v = new Blob([r], {
|
|
2998
2998
|
type: this.getBlobType(d)
|
|
2999
2999
|
}), _ = URL.createObjectURL(v);
|
|
3000
3000
|
let m = document.createElement("a");
|
|
3001
|
-
m.style.display = "none", m.href = _, m.download = S[0].fileoriginname ? S[0].fileoriginname :
|
|
3001
|
+
m.style.display = "none", m.href = _, m.download = S[0].fileoriginname ? S[0].fileoriginname : a, m.click(), setTimeout(() => {
|
|
3002
3002
|
C.close(), this.statu = !1, URL.revokeObjectURL(m.href);
|
|
3003
3003
|
}, 1e3);
|
|
3004
3004
|
} else
|
|
@@ -3006,33 +3006,33 @@ const ce = {
|
|
|
3006
3006
|
});
|
|
3007
3007
|
return;
|
|
3008
3008
|
}
|
|
3009
|
-
let y = new he(),
|
|
3009
|
+
let y = new he(), h = [], o = {};
|
|
3010
3010
|
S.forEach((r) => {
|
|
3011
|
-
let
|
|
3011
|
+
let u = this.getFileBlob(r).then((d) => {
|
|
3012
3012
|
y.file(r.fileoriginname, d, {
|
|
3013
3013
|
binary: !0
|
|
3014
|
-
}),
|
|
3014
|
+
}), o[r.fileoriginname] = d;
|
|
3015
3015
|
});
|
|
3016
|
-
|
|
3017
|
-
}), Promise.all(
|
|
3016
|
+
h.push(u);
|
|
3017
|
+
}), Promise.all(h).then(() => {
|
|
3018
3018
|
y.generateAsync({
|
|
3019
3019
|
type: "blob"
|
|
3020
3020
|
}).then((r) => {
|
|
3021
|
-
ue.saveAs(r,
|
|
3021
|
+
ue.saveAs(r, a), C.close(), this.statu = !1;
|
|
3022
3022
|
});
|
|
3023
3023
|
}).catch((r) => {
|
|
3024
3024
|
C.close(), this.statu = !1, this.$message.error("err!");
|
|
3025
3025
|
});
|
|
3026
3026
|
},
|
|
3027
3027
|
doEventDataList(b, S) {
|
|
3028
|
-
const
|
|
3029
|
-
if (
|
|
3028
|
+
const a = S.executeEvent ? S.executeEvent : [];
|
|
3029
|
+
if (a.length === 0)
|
|
3030
3030
|
return;
|
|
3031
|
-
if (
|
|
3032
|
-
|
|
3031
|
+
if (a.length === 1 && a[0].executeEvent) {
|
|
3032
|
+
a[0].executeEvent(b);
|
|
3033
3033
|
return;
|
|
3034
3034
|
}
|
|
3035
|
-
const C =
|
|
3035
|
+
const C = a.filter((y) => y.id === b.id)[0];
|
|
3036
3036
|
C && C.executeEvent && C.executeEvent(b);
|
|
3037
3037
|
},
|
|
3038
3038
|
doEvent(b, S = "execute") {
|
|
@@ -3040,12 +3040,12 @@ const ce = {
|
|
|
3040
3040
|
this.doEventSys(b);
|
|
3041
3041
|
return;
|
|
3042
3042
|
}
|
|
3043
|
-
const
|
|
3044
|
-
if (
|
|
3045
|
-
this.doEventDataList(b,
|
|
3043
|
+
const a = this.allElements.filter((C) => C.key === b.key)[0];
|
|
3044
|
+
if (a && a.type === "dataList") {
|
|
3045
|
+
this.doEventDataList(b, a);
|
|
3046
3046
|
return;
|
|
3047
3047
|
}
|
|
3048
|
-
|
|
3048
|
+
a && a.executeEvent && a.executeEvent(b);
|
|
3049
3049
|
},
|
|
3050
3050
|
doEventSys(b) {
|
|
3051
3051
|
if (b.key === "GdFilePreview") {
|
|
@@ -3060,7 +3060,7 @@ const ce = {
|
|
|
3060
3060
|
b.functionName === "gd-details-open" && this.viewFormDetails(b), b.functionName === "gd-details-open-api" && this.viewFormDetailsApi(b);
|
|
3061
3061
|
return;
|
|
3062
3062
|
}
|
|
3063
|
-
const S = this.allElements.filter((
|
|
3063
|
+
const S = this.allElements.filter((a) => a.key === b.key)[0];
|
|
3064
3064
|
if (S && S.type === "dataList") {
|
|
3065
3065
|
this.doEventDataList(b, S);
|
|
3066
3066
|
return;
|
|
@@ -3070,8 +3070,8 @@ const ce = {
|
|
|
3070
3070
|
eventsCall(b) {
|
|
3071
3071
|
if (b.functionName === void 0 || b.key === void 0 || b.key === "" || b.key === null)
|
|
3072
3072
|
return;
|
|
3073
|
-
const S = b.functionName,
|
|
3074
|
-
|
|
3073
|
+
const S = b.functionName, a = b.key || "", C = b.item || "", y = b.data || {}, h = this.allElements.filter((o) => o[a] === C)[0];
|
|
3074
|
+
h && h[S] && h[S](y);
|
|
3075
3075
|
},
|
|
3076
3076
|
getComponentParameters(b, S = "key") {
|
|
3077
3077
|
return this.allElements.filter((C) => C[S] === b)[0];
|
|
@@ -3084,14 +3084,14 @@ const ce = {
|
|
|
3084
3084
|
},
|
|
3085
3085
|
baseLoadElements() {
|
|
3086
3086
|
let b = [];
|
|
3087
|
-
const S = (
|
|
3087
|
+
const S = (a) => (a = a.filter((C, y) => (C.doEvent === void 0 && (C.hasLoad = this.hasLoad, C.hideLoad = this.hideLoad, C.eventsCall = this.eventsCall, C.doEvent = this.doEvent, C.doEventSys = this.doEventSys, C.getComponentData = this.getComponentParameters), C.type === "table" && (C.config = Object.assign(
|
|
3088
3088
|
{ ...this.record },
|
|
3089
3089
|
{
|
|
3090
3090
|
pageContent: []
|
|
3091
3091
|
}
|
|
3092
|
-
)), b.push(C), C.columns ? C.columns.forEach((
|
|
3093
|
-
S(
|
|
3094
|
-
}) : C.list && S(C.list), !0)),
|
|
3092
|
+
)), b.push(C), C.columns ? C.columns.forEach((h) => {
|
|
3093
|
+
S(h.list);
|
|
3094
|
+
}) : C.list && S(C.list), !0)), a);
|
|
3095
3095
|
S(this.record.options.list), this.allElements = b;
|
|
3096
3096
|
},
|
|
3097
3097
|
init() {
|
|
@@ -3107,8 +3107,8 @@ const ce = {
|
|
|
3107
3107
|
},
|
|
3108
3108
|
getHeight() {
|
|
3109
3109
|
return new Promise((b) => {
|
|
3110
|
-
const S = document.getElementById("gd-layout-head-height"),
|
|
3111
|
-
this.height = this.screenHeight -
|
|
3110
|
+
const S = document.getElementById("gd-layout-head-height"), a = S ? S.offsetHeight : 0;
|
|
3111
|
+
this.height = this.screenHeight - a - this.zhig, b();
|
|
3112
3112
|
});
|
|
3113
3113
|
},
|
|
3114
3114
|
getBlobType(b) {
|
|
@@ -3120,27 +3120,33 @@ const ce = {
|
|
|
3120
3120
|
id: b.id
|
|
3121
3121
|
}).then((S) => S.data);
|
|
3122
3122
|
},
|
|
3123
|
+
destroyLoadElements() {
|
|
3124
|
+
const b = (S) => (S = S.filter((a, C) => (a.doEvent !== void 0 && (a.hasLoad = null, a.hideLoad = null, a.eventsCall = null, a.doEvent = null, a.doEventSys = null, a.getComponentData = null), a.type === "table" && (a.config = null), a.columns ? a.columns.forEach((y) => {
|
|
3125
|
+
b(y.list);
|
|
3126
|
+
}) : a.list && b(a.list), !0)), S);
|
|
3127
|
+
b(this.record.options.list);
|
|
3128
|
+
},
|
|
3123
3129
|
...Lt(["SeekTableId"])
|
|
3124
3130
|
},
|
|
3125
3131
|
mounted() {
|
|
3126
3132
|
this.menuId = this.$route.meta.id, this.init();
|
|
3127
3133
|
},
|
|
3128
3134
|
beforeDestroy() {
|
|
3129
|
-
this._watcher && this._watcher.teardown(), this.show = !1, this.timeOut && clearTimeout(this.timeOut), this.record = null, this.allElements = [];
|
|
3135
|
+
this.allElements = [], this.destroyLoadElements(), this._watcher && this._watcher.teardown(), this.show = !1, this.timeOut && clearTimeout(this.timeOut), this.record = null, this.allElements = [];
|
|
3130
3136
|
}
|
|
3131
3137
|
};
|
|
3132
3138
|
var fe = function() {
|
|
3133
|
-
var S = this,
|
|
3134
|
-
return
|
|
3139
|
+
var S = this, a = S._self._c;
|
|
3140
|
+
return S.show ? a("div", { directives: [{ name: "loading", rawName: "v-loading", value: S.loading, expression: "loading" }], staticClass: "gd-page-bulid", class: S.gclass, style: S.style }, [S.loading ? a("div", { staticClass: "bulid-loading" }, [a("gd-view-loading", { attrs: { height: S.height } })], 1) : S._e(), a("BuildBlocks", { attrs: { record: S.record, height: S.height } }), a("gd-file-preview", { ref: "filePreview", attrs: { options: {}, hasFullscreen: !0 }, on: { closed: function(C) {
|
|
3135
3141
|
return S.closed("filePreview");
|
|
3136
|
-
} } }), S.showComponents.includes("imgPreview") ?
|
|
3142
|
+
} } }), S.showComponents.includes("imgPreview") ? a("gd-img-preview", { ref: "imgPreview", attrs: { filePreviewShow: S.imgList.length > 0, imgList: S.imgList, currentImg: S.currentImg } }) : S._e(), S.showComponents.includes("viewFormDetails") ? a("gd-view-form-details", { ref: "viewFormDetails", on: { close: S.clearShowComponents } }) : S._e()], 1) : S._e();
|
|
3137
3143
|
}, de = [], pe = /* @__PURE__ */ Pt(
|
|
3138
3144
|
ce,
|
|
3139
3145
|
fe,
|
|
3140
3146
|
de,
|
|
3141
3147
|
!1,
|
|
3142
3148
|
null,
|
|
3143
|
-
"
|
|
3149
|
+
"e66ecbb9",
|
|
3144
3150
|
null,
|
|
3145
3151
|
null
|
|
3146
3152
|
);
|