ss-component-new 1.1.396 → 1.1.397
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{array-C16RsBGi.js → array-BMm2xbyh.js} +2 -2
- package/dist/{array-CrflPQfH.cjs → array-DrchcVuo.cjs} +1 -1
- package/dist/{index-Ci_TlUaz.cjs → index-0xeOQNqr.cjs} +1 -1
- package/dist/{index-sX5lTda9.cjs → index-5rgfBNRZ.cjs} +1 -1
- package/dist/{index-LAneWWe0.cjs → index-7UFQD8dI.cjs} +1 -1
- package/dist/{index-BrwiY9L3.js → index-ASm-tiLF.js} +4 -4
- package/dist/{index-BPhF9zmt.cjs → index-B4MrDBQI.cjs} +1 -1
- package/dist/{index-sbQSWrBI.cjs → index-BJjUEAip.cjs} +1 -1
- package/dist/{index-DD1B6uNy.cjs → index-BLq1jCgy.cjs} +1 -1
- package/dist/{index-BqgHyhdi.js → index-BPnzUJyM.js} +1 -1
- package/dist/{index-DdMKahpe.cjs → index-BR_5J-Rp.cjs} +1 -1
- package/dist/{index-DeDlxE6V.js → index-BU_03B7p.js} +29 -26
- package/dist/{index-DPMhC2WO.js → index-BVQIDysd.js} +3 -3
- package/dist/{index-DlBjdPGf.cjs → index-BY1X4-T5.cjs} +1 -1
- package/dist/{index-CVkIx7Qb.js → index-Bhci20la.js} +4 -4
- package/dist/{index-CmwiMKaN.cjs → index-BqArjijs.cjs} +1 -1
- package/dist/{index-iWbccyfH.cjs → index-BusYSZDz.cjs} +1 -1
- package/dist/{index-DvuQRvTq.js → index-Bxi55yPn.js} +5 -5
- package/dist/{index-NyFbsRls.js → index-Byf9n_kH.js} +7 -7
- package/dist/{index-B87MOYL0.cjs → index-BzWrFscu.cjs} +1 -1
- package/dist/{index-HXgo29eU.js → index-CI1TvyGc.js} +4 -4
- package/dist/{index-5QKtXqtt.cjs → index-CKfWuKQ-.cjs} +1 -1
- package/dist/{index-BPG0DRXa.js → index-CM1PfZ-y.js} +5 -5
- package/dist/index-CWxAe8Hn.js +1564 -0
- package/dist/{index-D6aaas52.cjs → index-CcUmQ8j2.cjs} +1 -1
- package/dist/{index-BLFmQUvu.cjs → index-CeZMiwjT.cjs} +1 -1
- package/dist/{index-0rS7KbmB.cjs → index-CkuA9YtT.cjs} +1 -1
- package/dist/{index-CAiiyLHX.js → index-CusCByer.js} +2 -2
- package/dist/{index-BCBaGcSw.cjs → index-CvKVVUbj.cjs} +1 -1
- package/dist/{index-B5SKuqtT.js → index-CydzKd1p.js} +1 -1
- package/dist/{index-B_gX595b.cjs → index-CyxJ_jHM.cjs} +1 -1
- package/dist/{index-DL2KazPi.js → index-D3-VeVtm.js} +6 -6
- package/dist/{index-msEHZkYa.js → index-D7gBl7Bx.js} +5 -5
- package/dist/{index-cld16RcD.js → index-DE3aicnZ.js} +7 -7
- package/dist/{index-Dyj2IJ-k.js → index-DLBak3Lt.js} +4 -4
- package/dist/{index-C9Qome4l.js → index-DP9-VsqS.js} +5 -5
- package/dist/{index-CA6wLV-m.js → index-DQ3sNMML.js} +6 -6
- package/dist/{index-CF2GXE5j.js → index-DUcpVC5C.js} +4 -4
- package/dist/{index-CASSs849.js → index-DYvfFqEa.js} +3 -3
- package/dist/{index-Bft1aZ0a.cjs → index-DcuoGUjl.cjs} +1 -1
- package/dist/index-Dgk3r8_M.cjs +1 -0
- package/dist/{index-P4OXUc2W.cjs → index-Dn-0fR75.cjs} +1 -1
- package/dist/{index-P80WmN2w.cjs → index-Ds8QFoQ-.cjs} +1 -1
- package/dist/{index-F1ttuKSv.js → index-DuC_dofe.js} +4 -4
- package/dist/{index-BI8ECnch.js → index-DxkIkZjg.js} +1 -1
- package/dist/{index-C822Fm25.js → index-HT7hXa5c.js} +7 -7
- package/dist/{index-Vgnu3AJT.cjs → index-QK5rLXVe.cjs} +1 -1
- package/dist/{index-CIQlsfDn.cjs → index-Wb412Wki.cjs} +1 -1
- package/dist/{index-DPiUDaPy.js → index-XV4q28ju.js} +3 -3
- package/dist/index-Y7giQ1a4.cjs +1 -0
- package/dist/{index-BiLGjwKz.js → index-ecJYDIw4.js} +9 -9
- package/dist/{index-Bkw45mmW.cjs → index-gyJJ1_Vo.cjs} +1 -1
- package/dist/{index-BS9fOObP.js → index-rIMXQ6PY.js} +1 -1
- package/dist/{index-Z_MwT_T3.cjs → index-vorF-H1l.cjs} +1 -1
- package/dist/{index.vue_vue_type_script_setup_true_lang-DSlW9AIf.cjs → index.vue_vue_type_script_setup_true_lang-D67sZOgP.cjs} +1 -1
- package/dist/{index.vue_vue_type_script_setup_true_lang-BbuiPO6s.js → index.vue_vue_type_script_setup_true_lang-T1imEghJ.js} +3 -3
- package/dist/{index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-CMVrqCWx.cjs → index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-Csbqxggh.cjs} +1 -1
- package/dist/{index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-UFSwAOJz.js → index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-D2ENkR1G.js} +2 -2
- package/dist/{index.vue_vue_type_style_index_0_scoped_306ecd73_lang-DOjbMvFW.cjs → index.vue_vue_type_style_index_0_scoped_306ecd73_lang-CG-9MeCv.cjs} +1 -1
- package/dist/{index.vue_vue_type_style_index_0_scoped_306ecd73_lang-4Af2QVFc.js → index.vue_vue_type_style_index_0_scoped_306ecd73_lang-Dk0_HFXf.js} +8 -8
- package/dist/{index.vue_vue_type_style_index_0_scoped_45defba9_lang-DGl8Ds4Q.js → index.vue_vue_type_style_index_0_scoped_7ee96c6e_lang-CafwctIq.js} +1336 -1342
- package/dist/{index.vue_vue_type_style_index_0_scoped_45defba9_lang-BoiEK80r.cjs → index.vue_vue_type_style_index_0_scoped_7ee96c6e_lang-CpPem8Cc.cjs} +3 -3
- package/dist/{login-Dk-07p0w.cjs → login-CII9CG-J.cjs} +1 -1
- package/dist/{login-DXi57ZMh.js → login-DdNgIg3X.js} +1 -1
- package/dist/{main-Bi8-ggGu.cjs → main-B1ZWk63R.cjs} +1 -1
- package/dist/{main-BbFbvu6k.js → main-BOfMXV-3.js} +6 -6
- package/dist/{menu-CIgIfqSs.cjs → menu-DlNtyfT6.cjs} +1 -1
- package/dist/{menu-ozOGGi5Z.js → menu-Dl_Xtx7n.js} +1 -1
- package/dist/ss-component.cjs +1 -1
- package/dist/ss-component.css +1 -1
- package/dist/ss-component.js +10 -10
- package/dist/ss-component3.cjs +1 -1
- package/dist/ss-component3.js +1 -1
- package/dist/{threeModel-Dl-CREqP.cjs → threeModel-Bf7f4982.cjs} +1 -1
- package/dist/{threeModel-Dt4tQ3jF.js → threeModel-Cc5t11yb.js} +3 -3
- package/dist/{threeModel.vue_vue_type_style_index_0_scoped_3d52b35a_lang-D7fZi66-.cjs → threeModel.vue_vue_type_style_index_0_scoped_55d9773d_lang-DMIfmZ8j.cjs} +1 -1
- package/dist/{threeModel.vue_vue_type_style_index_0_scoped_3d52b35a_lang-Bea0CNjG.js → threeModel.vue_vue_type_style_index_0_scoped_55d9773d_lang-OVa4vxrk.js} +2 -2
- package/package.json +1 -1
- package/dist/index-DOIRqr3P.js +0 -1553
- package/dist/index-kP4PZFnP.cjs +0 -1
- package/dist/index-soDn3tCX.cjs +0 -1
|
@@ -1,34 +1,34 @@
|
|
|
1
|
-
import { a as Ze, s as We, d as He, e as Ge, f as Je, g as $e } from "./index.vue_vue_type_style_index_0_scoped_306ecd73_lang-
|
|
2
|
-
import { ref as vt, reactive as Ye, defineComponent as Ce, h as
|
|
3
|
-
import { c as Ut, g as Ct, d as Lt, e as Ie, u as ae, p as qt, s as Dt, E as Et } from "./menu-
|
|
1
|
+
import { a as Ze, s as We, d as He, e as Ge, f as Je, g as $e } from "./index.vue_vue_type_style_index_0_scoped_306ecd73_lang-Dk0_HFXf.js";
|
|
2
|
+
import { ref as vt, reactive as Ye, defineComponent as Ce, h as Tt, Transition as qe, withCtx as Xe, withDirectives as Ve, createVNode as Qe, vShow as tr, createApp as er, toRefs as rr, nextTick as ze, isRef as nr, defineProps as ar, computed as Vt, onMounted as sr, watch as xt } from "vue";
|
|
3
|
+
import { c as Ut, g as Ct, d as Lt, e as Ie, u as ae, p as qt, s as Dt, E as Et } from "./menu-Dl_Xtx7n.js";
|
|
4
4
|
import { useRouter as ir } from "vue-router";
|
|
5
|
-
import { u as De } from "./login-
|
|
6
|
-
import { g as or } from "./index-
|
|
7
|
-
import { t as lr, b as Qt, c as ur, d as oe, g as
|
|
8
|
-
import { c as et, a as kt, g as gr } from "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-
|
|
9
|
-
import { g as
|
|
10
|
-
import { t as
|
|
11
|
-
import { t as _r } from "./index-
|
|
12
|
-
import { t as vr } from "./index-
|
|
13
|
-
import { t as br } from "./index-
|
|
14
|
-
import { v as Oe } from "./index-
|
|
15
|
-
import { u as Be } from "./threeModel.
|
|
16
|
-
import { a as wr, b as Jt, i as kr, c as Re, g as
|
|
17
|
-
import { g as Ar } from "./index-
|
|
18
|
-
import { d as xr, m as Er, g as Cr, f as zr, p as Ir } from "./array-
|
|
5
|
+
import { u as De } from "./login-DdNgIg3X.js";
|
|
6
|
+
import { g as or } from "./index-ASm-tiLF.js";
|
|
7
|
+
import { t as lr, b as Qt, c as ur, d as oe, g as Mt, u as cr, f as hr, e as fr, h as dr, i as pr, I as St } from "./index-DP9-VsqS.js";
|
|
8
|
+
import { c as et, a as kt, g as gr } from "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-D2ENkR1G.js";
|
|
9
|
+
import { g as yr, d as le } from "./crypto-BRyGpjGR.js";
|
|
10
|
+
import { t as mr, g as ue } from "./index-DQ3sNMML.js";
|
|
11
|
+
import { t as _r } from "./index-Bhci20la.js";
|
|
12
|
+
import { t as vr } from "./index-BVQIDysd.js";
|
|
13
|
+
import { t as br } from "./index-XV4q28ju.js";
|
|
14
|
+
import { v as Oe } from "./index-CusCByer.js";
|
|
15
|
+
import { u as Be } from "./threeModel.vue_vue_type_style_index_0_scoped_55d9773d_lang-OVa4vxrk.js";
|
|
16
|
+
import { a as wr, b as Jt, i as kr, c as Re, g as Pt, d as ce, e as Te, h as Sr } from "./index-ecJYDIw4.js";
|
|
17
|
+
import { g as Ar } from "./index-Byf9n_kH.js";
|
|
18
|
+
import { d as xr, m as Er, g as Cr, f as zr, p as Ir } from "./array-BMm2xbyh.js";
|
|
19
19
|
function Dr(p, b) {
|
|
20
20
|
let e;
|
|
21
|
-
const w = vt(!1),
|
|
21
|
+
const w = vt(!1), y = Ye({
|
|
22
22
|
...p,
|
|
23
23
|
originalPosition: "",
|
|
24
24
|
originalOverflow: "",
|
|
25
25
|
visible: !1
|
|
26
26
|
});
|
|
27
|
-
function
|
|
28
|
-
|
|
27
|
+
function s(r) {
|
|
28
|
+
y.text = r;
|
|
29
29
|
}
|
|
30
30
|
function o() {
|
|
31
|
-
const r =
|
|
31
|
+
const r = y.parent, d = m.ns;
|
|
32
32
|
if (!r.vLoadingAddClassList) {
|
|
33
33
|
let u = r.getAttribute("loading-number");
|
|
34
34
|
u = Number.parseInt(u) - 1, u ? r.setAttribute("loading-number", u.toString()) : (Jt(r, d.bm("parent", "relative")), r.removeAttribute("loading-number")), Jt(r, d.bm("parent", "hidden"));
|
|
@@ -37,74 +37,74 @@ function Dr(p, b) {
|
|
|
37
37
|
}
|
|
38
38
|
function n() {
|
|
39
39
|
var r, d;
|
|
40
|
-
(d = (r =
|
|
40
|
+
(d = (r = m.$el) == null ? void 0 : r.parentNode) == null || d.removeChild(m.$el);
|
|
41
41
|
}
|
|
42
|
-
function
|
|
42
|
+
function a() {
|
|
43
43
|
var r;
|
|
44
|
-
p.beforeClose && !p.beforeClose() || (w.value = !0, clearTimeout(e), e = setTimeout(c, 400),
|
|
44
|
+
p.beforeClose && !p.beforeClose() || (w.value = !0, clearTimeout(e), e = setTimeout(c, 400), y.visible = !1, (r = p.closed) == null || r.call(p));
|
|
45
45
|
}
|
|
46
46
|
function c() {
|
|
47
47
|
if (!w.value)
|
|
48
48
|
return;
|
|
49
|
-
const r =
|
|
49
|
+
const r = y.parent;
|
|
50
50
|
w.value = !1, r.vLoadingAddClassList = void 0, o();
|
|
51
51
|
}
|
|
52
|
-
const
|
|
52
|
+
const f = Ce({
|
|
53
53
|
name: "ElLoading",
|
|
54
54
|
setup(r, { expose: d }) {
|
|
55
|
-
const { ns: u, zIndex:
|
|
55
|
+
const { ns: u, zIndex: h } = wr("loading");
|
|
56
56
|
return d({
|
|
57
57
|
ns: u,
|
|
58
|
-
zIndex:
|
|
58
|
+
zIndex: h
|
|
59
59
|
}), () => {
|
|
60
|
-
const l =
|
|
60
|
+
const l = y.spinner || y.svg, v = Tt("svg", {
|
|
61
61
|
class: "circular",
|
|
62
|
-
viewBox:
|
|
62
|
+
viewBox: y.svgViewBox ? y.svgViewBox : "0 0 50 50",
|
|
63
63
|
...l ? { innerHTML: l } : {}
|
|
64
64
|
}, [
|
|
65
|
-
|
|
65
|
+
Tt("circle", {
|
|
66
66
|
class: "path",
|
|
67
67
|
cx: "25",
|
|
68
68
|
cy: "25",
|
|
69
69
|
r: "20",
|
|
70
70
|
fill: "none"
|
|
71
71
|
})
|
|
72
|
-
]), A =
|
|
73
|
-
return
|
|
72
|
+
]), A = y.text ? Tt("p", { class: u.b("text") }, [y.text]) : void 0;
|
|
73
|
+
return Tt(qe, {
|
|
74
74
|
name: u.b("fade"),
|
|
75
75
|
onAfterLeave: c
|
|
76
76
|
}, {
|
|
77
77
|
default: Xe(() => [
|
|
78
78
|
Ve(Qe("div", {
|
|
79
79
|
style: {
|
|
80
|
-
backgroundColor:
|
|
80
|
+
backgroundColor: y.background || ""
|
|
81
81
|
},
|
|
82
82
|
class: [
|
|
83
83
|
u.b("mask"),
|
|
84
|
-
|
|
85
|
-
|
|
84
|
+
y.customClass,
|
|
85
|
+
y.fullscreen ? "is-fullscreen" : ""
|
|
86
86
|
]
|
|
87
87
|
}, [
|
|
88
|
-
|
|
88
|
+
Tt("div", {
|
|
89
89
|
class: u.b("spinner")
|
|
90
90
|
}, [v, A])
|
|
91
|
-
]), [[tr,
|
|
91
|
+
]), [[tr, y.visible]])
|
|
92
92
|
])
|
|
93
93
|
});
|
|
94
94
|
};
|
|
95
95
|
}
|
|
96
|
-
}), g = er(
|
|
96
|
+
}), g = er(f);
|
|
97
97
|
Object.assign(g._context, b ?? {});
|
|
98
|
-
const
|
|
98
|
+
const m = g.mount(document.createElement("div"));
|
|
99
99
|
return {
|
|
100
|
-
...rr(
|
|
101
|
-
setText:
|
|
100
|
+
...rr(y),
|
|
101
|
+
setText: s,
|
|
102
102
|
removeElLoadingChild: n,
|
|
103
|
-
close:
|
|
103
|
+
close: a,
|
|
104
104
|
handleAfterLeave: c,
|
|
105
|
-
vm:
|
|
105
|
+
vm: m,
|
|
106
106
|
get $el() {
|
|
107
|
-
return
|
|
107
|
+
return m.$el;
|
|
108
108
|
}
|
|
109
109
|
};
|
|
110
110
|
}
|
|
@@ -118,83 +118,83 @@ const It = function(p = {}) {
|
|
|
118
118
|
const e = Dr({
|
|
119
119
|
...b,
|
|
120
120
|
closed: () => {
|
|
121
|
-
var
|
|
122
|
-
(
|
|
121
|
+
var y;
|
|
122
|
+
(y = b.closed) == null || y.call(b), b.fullscreen && (Zt = void 0);
|
|
123
123
|
}
|
|
124
124
|
}, It._context);
|
|
125
|
-
Br(b, b.parent, e),
|
|
125
|
+
Br(b, b.parent, e), he(b, b.parent, e), b.parent.vLoadingAddClassList = () => he(b, b.parent, e);
|
|
126
126
|
let w = b.parent.getAttribute("loading-number");
|
|
127
127
|
return w ? w = `${Number.parseInt(w) + 1}` : w = "1", b.parent.setAttribute("loading-number", w), b.parent.appendChild(e.$el), ze(() => e.visible.value = b.visible), b.fullscreen && (Zt = e), e;
|
|
128
128
|
}, Or = (p) => {
|
|
129
|
-
var b, e, w,
|
|
130
|
-
let
|
|
131
|
-
return Re(p.target) ?
|
|
132
|
-
parent:
|
|
129
|
+
var b, e, w, y;
|
|
130
|
+
let s;
|
|
131
|
+
return Re(p.target) ? s = (b = document.querySelector(p.target)) != null ? b : document.body : s = p.target || document.body, {
|
|
132
|
+
parent: s === document.body || p.body ? document.body : s,
|
|
133
133
|
background: p.background || "",
|
|
134
134
|
svg: p.svg || "",
|
|
135
135
|
svgViewBox: p.svgViewBox || "",
|
|
136
136
|
spinner: p.spinner || !1,
|
|
137
137
|
text: p.text || "",
|
|
138
|
-
fullscreen:
|
|
138
|
+
fullscreen: s === document.body && ((e = p.fullscreen) != null ? e : !0),
|
|
139
139
|
lock: (w = p.lock) != null ? w : !1,
|
|
140
140
|
customClass: p.customClass || "",
|
|
141
|
-
visible: (
|
|
141
|
+
visible: (y = p.visible) != null ? y : !0,
|
|
142
142
|
beforeClose: p.beforeClose,
|
|
143
143
|
closed: p.closed,
|
|
144
|
-
target:
|
|
144
|
+
target: s
|
|
145
145
|
};
|
|
146
146
|
}, Br = async (p, b, e) => {
|
|
147
|
-
const { nextZIndex: w } = e.vm.zIndex || e.vm._.exposed.zIndex,
|
|
147
|
+
const { nextZIndex: w } = e.vm.zIndex || e.vm._.exposed.zIndex, y = {};
|
|
148
148
|
if (p.fullscreen)
|
|
149
|
-
e.originalPosition.value =
|
|
149
|
+
e.originalPosition.value = Pt(document.body, "position"), e.originalOverflow.value = Pt(document.body, "overflow"), y.zIndex = w();
|
|
150
150
|
else if (p.parent === document.body) {
|
|
151
|
-
e.originalPosition.value =
|
|
152
|
-
for (const
|
|
153
|
-
const o =
|
|
154
|
-
|
|
151
|
+
e.originalPosition.value = Pt(document.body, "position"), await ze();
|
|
152
|
+
for (const s of ["top", "left"]) {
|
|
153
|
+
const o = s === "top" ? "scrollTop" : "scrollLeft";
|
|
154
|
+
y[s] = `${p.target.getBoundingClientRect()[s] + document.body[o] + document.documentElement[o] - Number.parseInt(Pt(document.body, `margin-${s}`), 10)}px`;
|
|
155
155
|
}
|
|
156
|
-
for (const
|
|
157
|
-
|
|
156
|
+
for (const s of ["height", "width"])
|
|
157
|
+
y[s] = `${p.target.getBoundingClientRect()[s]}px`;
|
|
158
158
|
} else
|
|
159
|
-
e.originalPosition.value =
|
|
160
|
-
for (const [
|
|
161
|
-
e.$el.style[
|
|
162
|
-
},
|
|
159
|
+
e.originalPosition.value = Pt(b, "position");
|
|
160
|
+
for (const [s, o] of Object.entries(y))
|
|
161
|
+
e.$el.style[s] = o;
|
|
162
|
+
}, he = (p, b, e) => {
|
|
163
163
|
const w = e.vm.ns || e.vm._.exposed.ns;
|
|
164
164
|
["absolute", "fixed", "sticky"].includes(e.originalPosition.value) ? Jt(b, w.bm("parent", "relative")) : ce(b, w.bm("parent", "relative")), p.fullscreen && p.lock ? ce(b, w.bm("parent", "hidden")) : Jt(b, w.bm("parent", "hidden"));
|
|
165
165
|
};
|
|
166
166
|
It._context = null;
|
|
167
|
-
const Ht = Symbol("ElLoading"),
|
|
168
|
-
var e, w,
|
|
169
|
-
const o = b.instance, n = (r) =>
|
|
167
|
+
const Ht = Symbol("ElLoading"), fe = (p, b) => {
|
|
168
|
+
var e, w, y, s;
|
|
169
|
+
const o = b.instance, n = (r) => Te(b.value) ? b.value[r] : void 0, a = (r) => {
|
|
170
170
|
const d = Re(r) && (o == null ? void 0 : o[r]) || r;
|
|
171
171
|
return d && vt(d);
|
|
172
|
-
}, c = (r) =>
|
|
172
|
+
}, c = (r) => a(n(r) || p.getAttribute(`element-loading-${Sr(r)}`)), f = (e = n("fullscreen")) != null ? e : b.modifiers.fullscreen, g = {
|
|
173
173
|
text: c("text"),
|
|
174
174
|
svg: c("svg"),
|
|
175
175
|
svgViewBox: c("svgViewBox"),
|
|
176
176
|
spinner: c("spinner"),
|
|
177
177
|
background: c("background"),
|
|
178
178
|
customClass: c("customClass"),
|
|
179
|
-
fullscreen:
|
|
180
|
-
target: (w = n("target")) != null ? w :
|
|
181
|
-
body: (
|
|
182
|
-
lock: (
|
|
183
|
-
},
|
|
184
|
-
|
|
179
|
+
fullscreen: f,
|
|
180
|
+
target: (w = n("target")) != null ? w : f ? void 0 : p,
|
|
181
|
+
body: (y = n("body")) != null ? y : b.modifiers.body,
|
|
182
|
+
lock: (s = n("lock")) != null ? s : b.modifiers.lock
|
|
183
|
+
}, m = It(g);
|
|
184
|
+
m._context = Nt._context, p[Ht] = {
|
|
185
185
|
options: g,
|
|
186
|
-
instance:
|
|
186
|
+
instance: m
|
|
187
187
|
};
|
|
188
188
|
}, Rr = (p, b) => {
|
|
189
189
|
for (const e of Object.keys(b))
|
|
190
190
|
nr(b[e]) && (b[e].value = p[e]);
|
|
191
191
|
}, Nt = {
|
|
192
192
|
mounted(p, b) {
|
|
193
|
-
b.value &&
|
|
193
|
+
b.value && fe(p, b);
|
|
194
194
|
},
|
|
195
195
|
updated(p, b) {
|
|
196
196
|
const e = p[Ht];
|
|
197
|
-
b.oldValue !== b.value && (b.value && !b.oldValue ?
|
|
197
|
+
b.oldValue !== b.value && (b.value && !b.oldValue ? fe(p, b) : b.value && b.oldValue ? Te(b.value) && Rr(b.value, e.options) : e == null || e.instance.close());
|
|
198
198
|
},
|
|
199
199
|
unmounted(p) {
|
|
200
200
|
var b;
|
|
@@ -202,7 +202,7 @@ const Ht = Symbol("ElLoading"), he = (p, b) => {
|
|
|
202
202
|
}
|
|
203
203
|
};
|
|
204
204
|
Nt._context = null;
|
|
205
|
-
const
|
|
205
|
+
const Tr = {
|
|
206
206
|
install(p) {
|
|
207
207
|
It._context = p._context, Nt._context = p._context, p.directive("loading", Nt), p.config.globalProperties.$loading = It;
|
|
208
208
|
},
|
|
@@ -212,15 +212,15 @@ const Pr = {
|
|
|
212
212
|
let b = [];
|
|
213
213
|
p == null || p.forEach((e) => {
|
|
214
214
|
var w;
|
|
215
|
-
(w = e.compData) == null || w.forEach((
|
|
216
|
-
var
|
|
217
|
-
(
|
|
218
|
-
var
|
|
219
|
-
const n = (c = (
|
|
220
|
-
(g = (
|
|
215
|
+
(w = e.compData) == null || w.forEach((y) => {
|
|
216
|
+
var s;
|
|
217
|
+
(s = y.contents) == null || s.forEach((o) => {
|
|
218
|
+
var a, c, f, g;
|
|
219
|
+
const n = (c = (a = o == null ? void 0 : o.compData) == null ? void 0 : a.find((m) => (m == null ? void 0 : m.key) === "extra")) == null ? void 0 : c.value;
|
|
220
|
+
(g = (f = o.compData) == null ? void 0 : f.filter((m) => (m == null ? void 0 : m.key) !== "extra")) == null || g.forEach((m) => {
|
|
221
221
|
var r;
|
|
222
|
-
(r = lr(et(
|
|
223
|
-
var u,
|
|
222
|
+
(r = lr(et(m))) == null || r.forEach(async (d) => {
|
|
223
|
+
var u, h, l, v, A, C, I, j;
|
|
224
224
|
if (d.comp === "Table") {
|
|
225
225
|
const N = await Ut({
|
|
226
226
|
key: {
|
|
@@ -228,7 +228,7 @@ const Pr = {
|
|
|
228
228
|
pageKey: e.name,
|
|
229
229
|
type: "method",
|
|
230
230
|
version: 1,
|
|
231
|
-
methodName: (l = (u = e.name) == null ? void 0 : u.split("/")) == null ? void 0 : l[((
|
|
231
|
+
methodName: (l = (u = e.name) == null ? void 0 : u.split("/")) == null ? void 0 : l[((h = e.name) == null ? void 0 : h.split("/").length) - 1],
|
|
232
232
|
methodKey: (v = Object.values(n[0])) == null ? void 0 : v[0],
|
|
233
233
|
parentTable: (d == null ? void 0 : d.parentTableContents) ?? ""
|
|
234
234
|
},
|
|
@@ -239,7 +239,7 @@ const Pr = {
|
|
|
239
239
|
name: (I = Qt(et(d))) == null ? void 0 : I.name
|
|
240
240
|
}
|
|
241
241
|
}
|
|
242
|
-
}), U = N.data.result, x = await ((
|
|
242
|
+
}), U = N.data.result, x = await ((j = ur(et(d))) == null ? void 0 : j.map(async (F) => {
|
|
243
243
|
var i, L;
|
|
244
244
|
let q;
|
|
245
245
|
F.length !== 0 && (q = await Ut({
|
|
@@ -254,7 +254,7 @@ const Pr = {
|
|
|
254
254
|
tableData: F
|
|
255
255
|
}
|
|
256
256
|
}));
|
|
257
|
-
const
|
|
257
|
+
const P = (L = (await Ct({
|
|
258
258
|
key: {
|
|
259
259
|
parentTable: F,
|
|
260
260
|
systemKey: sessionStorage.getItem("systemKey"),
|
|
@@ -271,7 +271,7 @@ const Pr = {
|
|
|
271
271
|
parentTable: q.data.result
|
|
272
272
|
}
|
|
273
273
|
}));
|
|
274
|
-
return b.push(
|
|
274
|
+
return b.push(P), q;
|
|
275
275
|
}));
|
|
276
276
|
b.push(N), b.push(x);
|
|
277
277
|
}
|
|
@@ -280,11 +280,11 @@ const Pr = {
|
|
|
280
280
|
});
|
|
281
281
|
});
|
|
282
282
|
}), await Promise.all(b);
|
|
283
|
-
},
|
|
283
|
+
}, Pe = ae(), ne = (p) => p == null ? void 0 : p.map((b) => (b.contents && (b.contents = b.contents.filter((e) => {
|
|
284
284
|
var w;
|
|
285
285
|
return ((w = e.comp) == null ? void 0 : w.toUpperCase()) !== "CALCULATOR";
|
|
286
286
|
})), b.compData && (b.compData = ne(b.compData)), b)), pe = async (p) => {
|
|
287
|
-
var b, e, w,
|
|
287
|
+
var b, e, w, y, s, o, n, a, c, f, g, m, r, d, u, h, l, v, A, C, I, j, N;
|
|
288
288
|
if ((p == null ? void 0 : p.length) === 0) {
|
|
289
289
|
const U = await Ct({
|
|
290
290
|
key: {
|
|
@@ -292,8 +292,8 @@ const Pr = {
|
|
|
292
292
|
layer: "superAdmin"
|
|
293
293
|
}
|
|
294
294
|
});
|
|
295
|
-
if (((b = U == null ? void 0 : U.data) == null ? void 0 : b.code) === 200 && (
|
|
296
|
-
const x = (o = (
|
|
295
|
+
if (((b = U == null ? void 0 : U.data) == null ? void 0 : b.code) === 200 && (y = (w = (e = U == null ? void 0 : U.data) == null ? void 0 : e.result) == null ? void 0 : w[0]) != null && y.id) {
|
|
296
|
+
const x = (o = (s = U == null ? void 0 : U.data) == null ? void 0 : s.result) == null ? void 0 : o[0], F = (c = (a = (n = U == null ? void 0 : U.data) == null ? void 0 : n.result) == null ? void 0 : a[0]) == null ? void 0 : c.key;
|
|
297
297
|
F.systemType = "管理系统", await Lt({
|
|
298
298
|
id: x == null ? void 0 : x.id,
|
|
299
299
|
key: F
|
|
@@ -308,12 +308,12 @@ const Pr = {
|
|
|
308
308
|
layer: "superAdmin"
|
|
309
309
|
}
|
|
310
310
|
});
|
|
311
|
-
if (((
|
|
312
|
-
const x = (u = (d = U == null ? void 0 : U.data) == null ? void 0 : d.result) == null ? void 0 : u[0], F = (v = (l = (
|
|
313
|
-
var
|
|
314
|
-
return (
|
|
311
|
+
if (((f = U == null ? void 0 : U.data) == null ? void 0 : f.code) === 200 && (r = (m = (g = U == null ? void 0 : U.data) == null ? void 0 : g.result) == null ? void 0 : m[0]) != null && r.id) {
|
|
312
|
+
const x = (u = (d = U == null ? void 0 : U.data) == null ? void 0 : d.result) == null ? void 0 : u[0], F = (v = (l = (h = U == null ? void 0 : U.data) == null ? void 0 : h.result) == null ? void 0 : l[0]) == null ? void 0 : v.key, q = (A = et(p)) == null ? void 0 : A.map((S) => {
|
|
313
|
+
var P;
|
|
314
|
+
return (P = S.compData) == null ? void 0 : P[0];
|
|
315
315
|
});
|
|
316
|
-
F.systemType = (I = (C = q == null ? void 0 : q.find((S) => (S == null ? void 0 : S.key) === "type")) == null ? void 0 : C.contents) == null ? void 0 : I[0], F.name = (N = (
|
|
316
|
+
F.systemType = (I = (C = q == null ? void 0 : q.find((S) => (S == null ? void 0 : S.key) === "type")) == null ? void 0 : C.contents) == null ? void 0 : I[0], F.name = (N = (j = q == null ? void 0 : q.find((S) => (S == null ? void 0 : S.key) === "name")) == null ? void 0 : j.contents) == null ? void 0 : N[0], await Lt({
|
|
317
317
|
id: x == null ? void 0 : x.id,
|
|
318
318
|
key: F
|
|
319
319
|
});
|
|
@@ -328,16 +328,16 @@ const Pr = {
|
|
|
328
328
|
const b = Ne(p);
|
|
329
329
|
let e = [];
|
|
330
330
|
return b == null || b.forEach((w) => {
|
|
331
|
-
var
|
|
332
|
-
(
|
|
331
|
+
var y;
|
|
332
|
+
(y = w.compData) != null && y.find((s) => {
|
|
333
333
|
var o;
|
|
334
|
-
return (o =
|
|
334
|
+
return (o = s == null ? void 0 : s.contents) == null ? void 0 : o.find((n) => (n == null ? void 0 : n.comp) === "calculator");
|
|
335
335
|
}) && e.push(w);
|
|
336
336
|
}), e;
|
|
337
|
-
},
|
|
338
|
-
var b, e, w,
|
|
337
|
+
}, ye = async (p) => {
|
|
338
|
+
var b, e, w, y;
|
|
339
339
|
try {
|
|
340
|
-
const
|
|
340
|
+
const s = await Ut({
|
|
341
341
|
key: {
|
|
342
342
|
systemKey: sessionStorage.getItem("systemKey"),
|
|
343
343
|
pageKey: "menu",
|
|
@@ -347,16 +347,16 @@ const Pr = {
|
|
|
347
347
|
pageData: p
|
|
348
348
|
}
|
|
349
349
|
});
|
|
350
|
-
if (((b =
|
|
350
|
+
if (((b = s == null ? void 0 : s.data) == null ? void 0 : b.code) === 200) {
|
|
351
351
|
const o = (w = (e = p == null ? void 0 : p.compData) == null ? void 0 : e[0]) == null ? void 0 : w.contents;
|
|
352
|
-
|
|
352
|
+
Pe.setRawMenus(o ?? []);
|
|
353
353
|
}
|
|
354
|
-
return (
|
|
355
|
-
} catch (
|
|
356
|
-
return Promise.reject(
|
|
354
|
+
return (y = s == null ? void 0 : s.data) == null ? void 0 : y.code;
|
|
355
|
+
} catch (s) {
|
|
356
|
+
return Promise.reject(s);
|
|
357
357
|
}
|
|
358
|
-
},
|
|
359
|
-
var e, w,
|
|
358
|
+
}, Pr = async (p, b) => {
|
|
359
|
+
var e, w, y, s;
|
|
360
360
|
try {
|
|
361
361
|
const o = await Lt({
|
|
362
362
|
id: p,
|
|
@@ -365,17 +365,17 @@ const Pr = {
|
|
|
365
365
|
}
|
|
366
366
|
});
|
|
367
367
|
if (((e = o == null ? void 0 : o.data) == null ? void 0 : e.code) === 200) {
|
|
368
|
-
const n = (
|
|
369
|
-
|
|
368
|
+
const n = (y = (w = b == null ? void 0 : b.compData) == null ? void 0 : w[0]) == null ? void 0 : y.contents;
|
|
369
|
+
Pe.setRawMenus(n ?? []);
|
|
370
370
|
}
|
|
371
|
-
return (
|
|
371
|
+
return (s = o == null ? void 0 : o.data) == null ? void 0 : s.code;
|
|
372
372
|
} catch (o) {
|
|
373
373
|
return Promise.reject(o);
|
|
374
374
|
}
|
|
375
|
-
},
|
|
375
|
+
}, me = async () => {
|
|
376
376
|
var p;
|
|
377
377
|
try {
|
|
378
|
-
const b =
|
|
378
|
+
const b = yr(), e = await Ut({
|
|
379
379
|
key: {
|
|
380
380
|
systemKey: sessionStorage.getItem("systemKey"),
|
|
381
381
|
pageKey: "secret",
|
|
@@ -393,16 +393,16 @@ const Pr = {
|
|
|
393
393
|
throw b;
|
|
394
394
|
}
|
|
395
395
|
}, On = async (p) => {
|
|
396
|
-
var
|
|
396
|
+
var y, s, o, n, a, c;
|
|
397
397
|
let b = et(p);
|
|
398
|
-
b = [...b,
|
|
398
|
+
b = [...b, mr, _r, vr, br];
|
|
399
399
|
const { menuExist: e, structureExist: w } = await Oe();
|
|
400
400
|
if (sessionStorage.getItem("systemKey") && !e && !w) {
|
|
401
|
-
const
|
|
402
|
-
var d, u,
|
|
403
|
-
return ((d = r == null ? void 0 : r.comp) == null ? void 0 : d.toUpperCase()) !== "MENU" && ((u = r == null ? void 0 : r.comp) == null ? void 0 : u.toUpperCase()) !== "MENUTOP" && ((
|
|
404
|
-
}), g = b == null ? void 0 : b.find((r) => r.comp === "Menu"),
|
|
405
|
-
await
|
|
401
|
+
const f = (y = ne(b)) == null ? void 0 : y.filter((r) => {
|
|
402
|
+
var d, u, h;
|
|
403
|
+
return ((d = r == null ? void 0 : r.comp) == null ? void 0 : d.toUpperCase()) !== "MENU" && ((u = r == null ? void 0 : r.comp) == null ? void 0 : u.toUpperCase()) !== "MENUTOP" && ((h = r == null ? void 0 : r.comp) == null ? void 0 : h.toUpperCase()) !== "SYSTEM";
|
|
404
|
+
}), g = b == null ? void 0 : b.find((r) => r.comp === "Menu"), m = b == null ? void 0 : b.filter((r) => r.comp === "System");
|
|
405
|
+
await ye(g), await pe(m), me(), await oe(f), await de((s = ge(et(p))) == null ? void 0 : s.filter((r) => {
|
|
406
406
|
var d;
|
|
407
407
|
return ((d = r == null ? void 0 : r.comp) == null ? void 0 : d.toUpperCase()) !== "MENU";
|
|
408
408
|
}));
|
|
@@ -411,20 +411,20 @@ const Pr = {
|
|
|
411
411
|
key: {
|
|
412
412
|
systemKey: sessionStorage.getItem("systemKey")
|
|
413
413
|
}
|
|
414
|
-
})).data.result) == null ? void 0 : o.filter((
|
|
414
|
+
})).data.result) == null ? void 0 : o.filter((h) => {
|
|
415
415
|
var l;
|
|
416
|
-
return ((l =
|
|
417
|
-
})) == null ? void 0 : n.map((
|
|
418
|
-
id:
|
|
416
|
+
return ((l = h == null ? void 0 : h.key) == null ? void 0 : l.layer) !== "superAdmin";
|
|
417
|
+
})) == null ? void 0 : n.map((h) => h.id), m = g == null ? void 0 : g.map(async (h) => await Ie({
|
|
418
|
+
id: h
|
|
419
419
|
}));
|
|
420
|
-
await Promise.all(
|
|
421
|
-
const r = (
|
|
420
|
+
await Promise.all(m);
|
|
421
|
+
const r = (a = ne(b)) == null ? void 0 : a.filter((h) => {
|
|
422
422
|
var l, v, A;
|
|
423
|
-
return ((l =
|
|
424
|
-
}), d = b == null ? void 0 : b.find((
|
|
425
|
-
await
|
|
423
|
+
return ((l = h == null ? void 0 : h.comp) == null ? void 0 : l.toUpperCase()) !== "MENU" && ((v = h == null ? void 0 : h.comp) == null ? void 0 : v.toUpperCase()) !== "MENUTOP" && ((A = h == null ? void 0 : h.comp) == null ? void 0 : A.toUpperCase()) !== "SYSTEM";
|
|
424
|
+
}), d = b == null ? void 0 : b.find((h) => h.comp === "Menu"), u = b == null ? void 0 : b.filter((h) => h.comp === "System");
|
|
425
|
+
await ye(d), await pe(u), me(), await oe(r), await de((c = ge(et(p))) == null ? void 0 : c.filter((h) => {
|
|
426
426
|
var l;
|
|
427
|
-
return ((l =
|
|
427
|
+
return ((l = h == null ? void 0 : h.comp) == null ? void 0 : l.toUpperCase()) !== "MENU";
|
|
428
428
|
}));
|
|
429
429
|
}
|
|
430
430
|
}, Bn = Ce({
|
|
@@ -439,28 +439,28 @@ const Pr = {
|
|
|
439
439
|
type: String,
|
|
440
440
|
default: "vertical"
|
|
441
441
|
}
|
|
442
|
-
}), b = vt("sub-menu-more"), e = ae(), w = Be(qt),
|
|
442
|
+
}), b = vt("sub-menu-more"), e = ae(), w = Be(qt), y = vt(0), s = ir(), {
|
|
443
443
|
rawMenus: o,
|
|
444
444
|
activeTopMenuPath: n,
|
|
445
|
-
isRefreshMenus:
|
|
445
|
+
isRefreshMenus: a,
|
|
446
446
|
menuTriggerType: c,
|
|
447
|
-
permissionSideMenus:
|
|
447
|
+
permissionSideMenus: f,
|
|
448
448
|
platform: g,
|
|
449
|
-
cacheInputMenu:
|
|
450
|
-
} = Dt(e), r = De(), { structureData: d } = Dt(r), u = vt([]),
|
|
451
|
-
const
|
|
449
|
+
cacheInputMenu: m
|
|
450
|
+
} = Dt(e), r = De(), { structureData: d } = Dt(r), u = vt([]), h = vt([]), l = Vt(() => p == null ? void 0 : p.mode), v = (z) => {
|
|
451
|
+
const M = Tr.service({
|
|
452
452
|
lock: !0,
|
|
453
453
|
text: "Loading",
|
|
454
454
|
background: "rgba(0, 0, 0, 0.7)"
|
|
455
455
|
});
|
|
456
|
-
z ||
|
|
456
|
+
z || M.close();
|
|
457
457
|
}, A = (z) => {
|
|
458
|
-
let
|
|
458
|
+
let M = [], Y = [];
|
|
459
459
|
return z == null || z.forEach((K) => {
|
|
460
|
-
|
|
461
|
-
}),
|
|
462
|
-
}, C = (z,
|
|
463
|
-
const Y =
|
|
460
|
+
M = C(K, Y);
|
|
461
|
+
}), M;
|
|
462
|
+
}, C = (z, M) => {
|
|
463
|
+
const Y = M, K = [];
|
|
464
464
|
z == null || z.forEach((at) => {
|
|
465
465
|
Array.isArray(at) ? K.push({ children: C(at, []) }) : K.push({ title: at });
|
|
466
466
|
});
|
|
@@ -469,33 +469,33 @@ const Pr = {
|
|
|
469
469
|
}), at), {});
|
|
470
470
|
return X = I(et(X)), Y.push(X), Array.isArray(Y) && (Y == null ? void 0 : Y.length) > 1 ? Y : Y == null ? void 0 : Y[0];
|
|
471
471
|
}, I = (z) => {
|
|
472
|
-
var
|
|
473
|
-
return Array.isArray(z == null ? void 0 : z.title) && ((
|
|
474
|
-
},
|
|
472
|
+
var M, Y, K;
|
|
473
|
+
return Array.isArray(z == null ? void 0 : z.title) && ((M = z == null ? void 0 : z.title) == null ? void 0 : M.length) === ((K = (Y = z == null ? void 0 : z.title) == null ? void 0 : Y.filter((X) => X.title)) == null ? void 0 : K.length) ? z == null ? void 0 : z.title : Array.isArray(z == null ? void 0 : z.children) ? j(z) : z;
|
|
474
|
+
}, j = (z) => {
|
|
475
475
|
var Y;
|
|
476
|
-
const
|
|
477
|
-
return
|
|
476
|
+
const M = z;
|
|
477
|
+
return M.children = (Y = M.children) == null ? void 0 : Y.map((K) => {
|
|
478
478
|
var X;
|
|
479
479
|
return (X = K == null ? void 0 : K.title) != null && X.children ? K == null ? void 0 : K.title : K;
|
|
480
|
-
}),
|
|
481
|
-
}, N = (z) => z == null ? void 0 : z.map((
|
|
482
|
-
...
|
|
480
|
+
}), M;
|
|
481
|
+
}, N = (z) => z == null ? void 0 : z.map((M) => M.children && M.children.length > 0 ? {
|
|
482
|
+
...M,
|
|
483
483
|
// 水平菜单仅显示一层
|
|
484
|
-
children:
|
|
485
|
-
childMenus: N(
|
|
486
|
-
} :
|
|
484
|
+
children: M.level === 0 ? [] : M.children ?? [],
|
|
485
|
+
childMenus: N(M.children)
|
|
486
|
+
} : M), U = (z, M) => {
|
|
487
487
|
var Y, K;
|
|
488
|
-
return
|
|
488
|
+
return M === 0 ? ((K = (Y = h.value) == null ? void 0 : Y.find((X) => {
|
|
489
489
|
var at;
|
|
490
490
|
return (at = z.title) == null ? void 0 : at.includes(X.value);
|
|
491
|
-
})) == null ? void 0 : K.value) ?? "wenjianjia" :
|
|
491
|
+
})) == null ? void 0 : K.value) ?? "wenjianjia" : M === 1 ? "wenjianjia" : "wenjian";
|
|
492
492
|
}, x = (z) => {
|
|
493
|
-
var
|
|
494
|
-
return (Y = (
|
|
493
|
+
var M, Y;
|
|
494
|
+
return (Y = (M = h.value) == null ? void 0 : M.find((K) => {
|
|
495
495
|
var X;
|
|
496
496
|
return (X = z.title) == null ? void 0 : X.includes(K.value);
|
|
497
497
|
})) == null ? void 0 : Y.value;
|
|
498
|
-
}, F = (z,
|
|
498
|
+
}, F = (z, M = "", Y = 0) => {
|
|
499
499
|
var t;
|
|
500
500
|
let K, X = et(z);
|
|
501
501
|
const at = (t = d.value) == null ? void 0 : t.map((R) => {
|
|
@@ -503,7 +503,7 @@ const Pr = {
|
|
|
503
503
|
return (O = R == null ? void 0 : R.key) == null ? void 0 : O.pageKey;
|
|
504
504
|
});
|
|
505
505
|
return Array.isArray(X) || (X = [X]), K = X == null ? void 0 : X.map((R) => {
|
|
506
|
-
const O =
|
|
506
|
+
const O = M ? `${M}/${R.title}` : R.title, k = {
|
|
507
507
|
...R,
|
|
508
508
|
path: O,
|
|
509
509
|
level: Y,
|
|
@@ -521,15 +521,15 @@ const Pr = {
|
|
|
521
521
|
}), K;
|
|
522
522
|
}, q = Vt(() => {
|
|
523
523
|
let z = et(u.value);
|
|
524
|
-
if (z = [...z, ...
|
|
525
|
-
return
|
|
526
|
-
const
|
|
527
|
-
|
|
524
|
+
if (z = [...z, ...f.value], (z == null ? void 0 : z.length) === 0)
|
|
525
|
+
return s.push("/"), [];
|
|
526
|
+
const M = tt(z, E.value);
|
|
527
|
+
M.isFlag || (z = M == null ? void 0 : M.data);
|
|
528
528
|
const Y = N(z);
|
|
529
529
|
return e.setMenus(Y), Y;
|
|
530
530
|
}), S = async (z) => {
|
|
531
531
|
var K, X, at;
|
|
532
|
-
let
|
|
532
|
+
let M;
|
|
533
533
|
const Y = await Ct({
|
|
534
534
|
key: {
|
|
535
535
|
type: "menuConfigData",
|
|
@@ -538,16 +538,16 @@ const Pr = {
|
|
|
538
538
|
tableId: ""
|
|
539
539
|
}
|
|
540
540
|
});
|
|
541
|
-
return ((K = Y == null ? void 0 : Y.data) == null ? void 0 : K.code) === 200 && (
|
|
541
|
+
return ((K = Y == null ? void 0 : Y.data) == null ? void 0 : K.code) === 200 && (M = (at = (X = Y.data) == null ? void 0 : X.result) == null ? void 0 : at.map((t) => {
|
|
542
542
|
var R;
|
|
543
543
|
return {
|
|
544
544
|
id: t == null ? void 0 : t.id,
|
|
545
545
|
...(R = t == null ? void 0 : t.value) == null ? void 0 : R.tableData
|
|
546
546
|
};
|
|
547
|
-
})), (
|
|
548
|
-
},
|
|
547
|
+
})), (M == null ? void 0 : M.length) > 0 ? M : null;
|
|
548
|
+
}, P = async (z, M) => {
|
|
549
549
|
var Y, K, X, at;
|
|
550
|
-
for (const t of
|
|
550
|
+
for (const t of M || [])
|
|
551
551
|
if ((K = (Y = t == null ? void 0 : t.key) == null ? void 0 : Y.pageKey) == null ? void 0 : K.includes(z.path))
|
|
552
552
|
return {
|
|
553
553
|
...z,
|
|
@@ -556,15 +556,15 @@ const Pr = {
|
|
|
556
556
|
};
|
|
557
557
|
return z;
|
|
558
558
|
}, i = vt(null), L = (z) => {
|
|
559
|
-
var
|
|
559
|
+
var M, Y;
|
|
560
560
|
if (z != null && z.config)
|
|
561
561
|
return z == null ? void 0 : z.config;
|
|
562
562
|
{
|
|
563
|
-
const K = (Y = (
|
|
563
|
+
const K = (Y = (M = i.value) == null ? void 0 : M.config) == null ? void 0 : Y.filter((X) => X == null ? void 0 : X.allowInherit);
|
|
564
564
|
return (K == null ? void 0 : K.length) === 0 ? null : K;
|
|
565
565
|
}
|
|
566
|
-
}, $ = async (z,
|
|
567
|
-
const Y =
|
|
566
|
+
}, $ = async (z, M) => {
|
|
567
|
+
const Y = M == null ? void 0 : M.map((K) => {
|
|
568
568
|
var X;
|
|
569
569
|
return {
|
|
570
570
|
key: K == null ? void 0 : K.key,
|
|
@@ -573,7 +573,7 @@ const Pr = {
|
|
|
573
573
|
});
|
|
574
574
|
return await Promise.all(
|
|
575
575
|
z == null ? void 0 : z.map(async (K) => {
|
|
576
|
-
let X = await
|
|
576
|
+
let X = await P(K, Y);
|
|
577
577
|
return X != null && X.config && (i.value = X), X != null && X.childMenus && (X == null ? void 0 : X.childMenus.length) > 0 && (X = {
|
|
578
578
|
...X,
|
|
579
579
|
config: L(X),
|
|
@@ -587,7 +587,7 @@ const Pr = {
|
|
|
587
587
|
);
|
|
588
588
|
}, Z = async (z) => {
|
|
589
589
|
var Y;
|
|
590
|
-
const
|
|
590
|
+
const M = await Ct({
|
|
591
591
|
key: {
|
|
592
592
|
systemKey: sessionStorage.getItem("systemKey"),
|
|
593
593
|
// pageKey: '平台管理/菜单管理/' + menu?.path,
|
|
@@ -598,33 +598,33 @@ const Pr = {
|
|
|
598
598
|
version: 1
|
|
599
599
|
}
|
|
600
600
|
});
|
|
601
|
-
if (((Y =
|
|
601
|
+
if (((Y = M == null ? void 0 : M.data) == null ? void 0 : Y.code) === 200) {
|
|
602
602
|
i.value = null;
|
|
603
|
-
const K = et(
|
|
603
|
+
const K = et(M.data.result);
|
|
604
604
|
return (K == null ? void 0 : K.length) === 0 ? K : await $(z.childMenus, K);
|
|
605
605
|
}
|
|
606
606
|
}, it = async (z) => {
|
|
607
|
-
var
|
|
608
|
-
if (e.setMenuTriggerType("click"), w.setRouteToChildPath(""), e.setActiveTopMenuPath(z == null ? void 0 : z.path), z != null && z.childMenus && ((
|
|
607
|
+
var M, Y, K;
|
|
608
|
+
if (e.setMenuTriggerType("click"), w.setRouteToChildPath(""), e.setActiveTopMenuPath(z == null ? void 0 : z.path), z != null && z.childMenus && ((M = z == null ? void 0 : z.childMenus) == null ? void 0 : M.length) > 0) {
|
|
609
609
|
const X = (K = (Y = z == null ? void 0 : z.childMenus) == null ? void 0 : Y[0]) == null ? void 0 : K.path;
|
|
610
610
|
e.setActiveMenuPath(X);
|
|
611
611
|
const at = await Z(z), t = (at == null ? void 0 : at.length) === 0 ? z == null ? void 0 : z.childMenus : at;
|
|
612
612
|
e.setAsideMenus(t);
|
|
613
613
|
} else
|
|
614
614
|
e.setAsideMenus([]);
|
|
615
|
-
z.isRouter ?
|
|
615
|
+
z.isRouter ? s.push(z.path) : s.push("/");
|
|
616
616
|
}, G = (z) => {
|
|
617
|
-
w.setRouteToChildPath(""), c.value === "click" ?
|
|
617
|
+
w.setRouteToChildPath(""), c.value === "click" ? y.value === 1 ? e.setActiveMenuPath(sessionStorage.getItem("pageKey")) : z !== b.value && e.setActiveMenuPath(z) : e.setMenuTriggerType("click"), z != null && z.startsWith("/") ? s.push(z) : s.push("/"), y.value++;
|
|
618
618
|
}, st = (z) => {
|
|
619
619
|
z !== b.value && e.setActiveMenuPath(z);
|
|
620
620
|
}, B = (z) => {
|
|
621
|
-
const
|
|
621
|
+
const M = document.documentElement;
|
|
622
622
|
z == null || z.forEach((Y) => {
|
|
623
|
-
|
|
623
|
+
M.style.setProperty(Y.name, Y.value);
|
|
624
624
|
});
|
|
625
625
|
};
|
|
626
626
|
sr(() => {
|
|
627
|
-
|
|
627
|
+
y.value = 1, h.value = or();
|
|
628
628
|
});
|
|
629
629
|
const E = Vt(() => {
|
|
630
630
|
const z = sessionStorage.getItem("authority");
|
|
@@ -634,75 +634,75 @@ const Pr = {
|
|
|
634
634
|
z === "browser" ? (B(He), B(Ge)) : z === "client" && (B(Je), B($e));
|
|
635
635
|
}, { immediate: !0 }), xt(() => o.value, (z) => {
|
|
636
636
|
if (z) {
|
|
637
|
-
const
|
|
638
|
-
u.value = F(A(
|
|
637
|
+
const M = z;
|
|
638
|
+
u.value = F(A(M));
|
|
639
639
|
} else
|
|
640
640
|
e.setActiveMenuPath("");
|
|
641
641
|
}, {
|
|
642
642
|
immediate: !0
|
|
643
643
|
});
|
|
644
|
-
const rt = (z,
|
|
644
|
+
const rt = (z, M) => {
|
|
645
645
|
function Y(K) {
|
|
646
646
|
K == null || K.forEach((X) => {
|
|
647
|
-
X.show =
|
|
647
|
+
X.show = M == null ? void 0 : M.some((at) => at == null ? void 0 : at.includes(X.path)), X.children && Y(X.children);
|
|
648
648
|
});
|
|
649
649
|
}
|
|
650
650
|
return Y(z), z;
|
|
651
|
-
}, tt = (z,
|
|
652
|
-
if (Array.isArray(
|
|
653
|
-
const Y = Array.from(new Set(
|
|
651
|
+
}, tt = (z, M) => {
|
|
652
|
+
if (Array.isArray(M)) {
|
|
653
|
+
const Y = Array.from(new Set(M == null ? void 0 : M.map((K) => K.substring(0, K.lastIndexOf("/")))));
|
|
654
654
|
return {
|
|
655
655
|
data: rt(z, Y),
|
|
656
656
|
isFlag: !1
|
|
657
657
|
};
|
|
658
658
|
} else
|
|
659
659
|
return {
|
|
660
|
-
isFlag: (
|
|
660
|
+
isFlag: (M == null ? void 0 : M.toUpperCase()) === "SUPERADMIN"
|
|
661
661
|
};
|
|
662
662
|
}, H = (z) => {
|
|
663
663
|
var Y;
|
|
664
|
-
const
|
|
664
|
+
const M = [z == null ? void 0 : z.title];
|
|
665
665
|
if (z != null && z.children && ((Y = z == null ? void 0 : z.children) == null ? void 0 : Y.length) > 0) {
|
|
666
666
|
const K = z.children.map((X) => H(X));
|
|
667
|
-
|
|
667
|
+
M.push(...K);
|
|
668
668
|
}
|
|
669
|
-
return
|
|
670
|
-
}, ut = (z,
|
|
669
|
+
return M;
|
|
670
|
+
}, ut = (z, M, Y, K) => z.map((X) => {
|
|
671
671
|
var at, t;
|
|
672
672
|
if (X.path === Y) {
|
|
673
673
|
const R = { ...X };
|
|
674
|
-
return console.log(7771, R, K), K === "create" ? R.children.push(
|
|
674
|
+
return console.log(7771, R, K), K === "create" ? R.children.push(M) : K === "update" ? R.children = (at = R.children) == null ? void 0 : at.map((O) => (O == null ? void 0 : O.path) === (M == null ? void 0 : M.path) ? M : O) : K === "delete" && (R.children = (t = R.children) == null ? void 0 : t.filter((O) => (O == null ? void 0 : O.path) !== (M == null ? void 0 : M.path))), R;
|
|
675
675
|
} else
|
|
676
676
|
return {
|
|
677
677
|
...X,
|
|
678
|
-
children: ut(X.children,
|
|
678
|
+
children: ut(X.children, M, Y, K)
|
|
679
679
|
// 递归更新子节点
|
|
680
680
|
};
|
|
681
681
|
}), lt = async (z) => {
|
|
682
682
|
var Y, K, X, at, t, R;
|
|
683
|
-
const
|
|
683
|
+
const M = (Y = d.value) == null ? void 0 : Y.find((O) => {
|
|
684
684
|
var k;
|
|
685
685
|
return ((k = O == null ? void 0 : O.key) == null ? void 0 : k.pageKey) === "menu";
|
|
686
686
|
});
|
|
687
|
-
if (
|
|
687
|
+
if (M) {
|
|
688
688
|
const O = {
|
|
689
|
-
...(K =
|
|
690
|
-
compData: (t = (at = (X =
|
|
689
|
+
...(K = M.value) == null ? void 0 : K.pageData,
|
|
690
|
+
compData: (t = (at = (X = M.value) == null ? void 0 : X.pageData) == null ? void 0 : at.compData) == null ? void 0 : t.map((_) => _.key === "menuContents" ? {
|
|
691
691
|
..._,
|
|
692
692
|
contents: z
|
|
693
693
|
} : _)
|
|
694
694
|
};
|
|
695
|
-
await
|
|
695
|
+
await Pr(M == null ? void 0 : M.id, O);
|
|
696
696
|
const k = (R = q.value) == null ? void 0 : R.find((_) => (_ == null ? void 0 : _.path) === n.value);
|
|
697
697
|
await it(k), v(!1), Et.success("响应成功");
|
|
698
698
|
}
|
|
699
699
|
};
|
|
700
|
-
return xt(() =>
|
|
701
|
-
var
|
|
700
|
+
return xt(() => a.value, async (z) => {
|
|
701
|
+
var M, Y, K, X, at, t, R;
|
|
702
702
|
if (z)
|
|
703
703
|
try {
|
|
704
|
-
const O = (K = (Y = (
|
|
705
|
-
console.log(777, k, _, (R =
|
|
704
|
+
const O = (K = (Y = (M = m.value) == null ? void 0 : M.data) == null ? void 0 : Y.path) == null ? void 0 : K.split("/").slice(0, -1).join("/"), k = ut(u.value, (X = m.value) == null ? void 0 : X.data, O, (at = m.value) == null ? void 0 : at.type), _ = (t = k == null ? void 0 : k.filter((D) => D.path !== "系统管理" && D.path !== "平台管理")) == null ? void 0 : t.map((D) => H(D));
|
|
705
|
+
console.log(777, k, _, (R = m.value) == null ? void 0 : R.data), v(!0), await lt(_);
|
|
706
706
|
} catch (O) {
|
|
707
707
|
throw Et.error(O), new Error(O);
|
|
708
708
|
}
|
|
@@ -737,164 +737,164 @@ function Nr() {
|
|
|
737
737
|
(function(e) {
|
|
738
738
|
p.exports = e();
|
|
739
739
|
})(function() {
|
|
740
|
-
return function e(w,
|
|
741
|
-
function o(c,
|
|
742
|
-
if (!
|
|
740
|
+
return function e(w, y, s) {
|
|
741
|
+
function o(c, f) {
|
|
742
|
+
if (!y[c]) {
|
|
743
743
|
if (!w[c]) {
|
|
744
744
|
var g = typeof Wt == "function" && Wt;
|
|
745
|
-
if (!
|
|
745
|
+
if (!f && g) return g(c, !0);
|
|
746
746
|
if (n) return n(c, !0);
|
|
747
|
-
var
|
|
748
|
-
throw
|
|
747
|
+
var m = new Error("Cannot find module '" + c + "'");
|
|
748
|
+
throw m.code = "MODULE_NOT_FOUND", m;
|
|
749
749
|
}
|
|
750
|
-
var r =
|
|
750
|
+
var r = y[c] = { exports: {} };
|
|
751
751
|
w[c][0].call(r.exports, function(d) {
|
|
752
752
|
var u = w[c][1][d];
|
|
753
753
|
return o(u || d);
|
|
754
|
-
}, r, r.exports, e, w,
|
|
754
|
+
}, r, r.exports, e, w, y, s);
|
|
755
755
|
}
|
|
756
|
-
return
|
|
756
|
+
return y[c].exports;
|
|
757
757
|
}
|
|
758
|
-
for (var n = typeof Wt == "function" && Wt,
|
|
758
|
+
for (var n = typeof Wt == "function" && Wt, a = 0; a < s.length; a++) o(s[a]);
|
|
759
759
|
return o;
|
|
760
|
-
}({ 1: [function(e, w,
|
|
761
|
-
var
|
|
762
|
-
|
|
763
|
-
for (var c,
|
|
764
|
-
return
|
|
765
|
-
},
|
|
766
|
-
var c,
|
|
767
|
-
if (
|
|
768
|
-
var v, A = 3 * (
|
|
769
|
-
if (
|
|
770
|
-
for (v = o.uint8array ? new Uint8Array(0 | A) : new Array(0 | A); u <
|
|
760
|
+
}({ 1: [function(e, w, y) {
|
|
761
|
+
var s = e("./utils"), o = e("./support"), n = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";
|
|
762
|
+
y.encode = function(a) {
|
|
763
|
+
for (var c, f, g, m, r, d, u, h = [], l = 0, v = a.length, A = v, C = s.getTypeOf(a) !== "string"; l < a.length; ) A = v - l, g = C ? (c = a[l++], f = l < v ? a[l++] : 0, l < v ? a[l++] : 0) : (c = a.charCodeAt(l++), f = l < v ? a.charCodeAt(l++) : 0, l < v ? a.charCodeAt(l++) : 0), m = c >> 2, r = (3 & c) << 4 | f >> 4, d = 1 < A ? (15 & f) << 2 | g >> 6 : 64, u = 2 < A ? 63 & g : 64, h.push(n.charAt(m) + n.charAt(r) + n.charAt(d) + n.charAt(u));
|
|
764
|
+
return h.join("");
|
|
765
|
+
}, y.decode = function(a) {
|
|
766
|
+
var c, f, g, m, r, d, u = 0, h = 0, l = "data:";
|
|
767
|
+
if (a.substr(0, l.length) === l) throw new Error("Invalid base64 input, it looks like a data url.");
|
|
768
|
+
var v, A = 3 * (a = a.replace(/[^A-Za-z0-9+/=]/g, "")).length / 4;
|
|
769
|
+
if (a.charAt(a.length - 1) === n.charAt(64) && A--, a.charAt(a.length - 2) === n.charAt(64) && A--, A % 1 != 0) throw new Error("Invalid base64 input, bad content length.");
|
|
770
|
+
for (v = o.uint8array ? new Uint8Array(0 | A) : new Array(0 | A); u < a.length; ) c = n.indexOf(a.charAt(u++)) << 2 | (m = n.indexOf(a.charAt(u++))) >> 4, f = (15 & m) << 4 | (r = n.indexOf(a.charAt(u++))) >> 2, g = (3 & r) << 6 | (d = n.indexOf(a.charAt(u++))), v[h++] = c, r !== 64 && (v[h++] = f), d !== 64 && (v[h++] = g);
|
|
771
771
|
return v;
|
|
772
772
|
};
|
|
773
|
-
}, { "./support": 30, "./utils": 32 }], 2: [function(e, w,
|
|
774
|
-
var
|
|
775
|
-
function c(
|
|
776
|
-
this.compressedSize =
|
|
773
|
+
}, { "./support": 30, "./utils": 32 }], 2: [function(e, w, y) {
|
|
774
|
+
var s = e("./external"), o = e("./stream/DataWorker"), n = e("./stream/Crc32Probe"), a = e("./stream/DataLengthProbe");
|
|
775
|
+
function c(f, g, m, r, d) {
|
|
776
|
+
this.compressedSize = f, this.uncompressedSize = g, this.crc32 = m, this.compression = r, this.compressedContent = d;
|
|
777
777
|
}
|
|
778
778
|
c.prototype = { getContentWorker: function() {
|
|
779
|
-
var
|
|
780
|
-
return
|
|
779
|
+
var f = new o(s.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new a("data_length")), g = this;
|
|
780
|
+
return f.on("end", function() {
|
|
781
781
|
if (this.streamInfo.data_length !== g.uncompressedSize) throw new Error("Bug : uncompressed data size mismatch");
|
|
782
|
-
}),
|
|
782
|
+
}), f;
|
|
783
783
|
}, getCompressedWorker: function() {
|
|
784
|
-
return new o(
|
|
785
|
-
} }, c.createWorkerFrom = function(
|
|
786
|
-
return
|
|
784
|
+
return new o(s.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize", this.compressedSize).withStreamInfo("uncompressedSize", this.uncompressedSize).withStreamInfo("crc32", this.crc32).withStreamInfo("compression", this.compression);
|
|
785
|
+
} }, c.createWorkerFrom = function(f, g, m) {
|
|
786
|
+
return f.pipe(new n()).pipe(new a("uncompressedSize")).pipe(g.compressWorker(m)).pipe(new a("compressedSize")).withStreamInfo("compression", g);
|
|
787
787
|
}, w.exports = c;
|
|
788
|
-
}, { "./external": 6, "./stream/Crc32Probe": 25, "./stream/DataLengthProbe": 26, "./stream/DataWorker": 27 }], 3: [function(e, w,
|
|
789
|
-
var
|
|
790
|
-
|
|
791
|
-
return new
|
|
788
|
+
}, { "./external": 6, "./stream/Crc32Probe": 25, "./stream/DataLengthProbe": 26, "./stream/DataWorker": 27 }], 3: [function(e, w, y) {
|
|
789
|
+
var s = e("./stream/GenericWorker");
|
|
790
|
+
y.STORE = { magic: "\0\0", compressWorker: function() {
|
|
791
|
+
return new s("STORE compression");
|
|
792
792
|
}, uncompressWorker: function() {
|
|
793
|
-
return new
|
|
794
|
-
} },
|
|
795
|
-
}, { "./flate": 7, "./stream/GenericWorker": 28 }], 4: [function(e, w,
|
|
796
|
-
var
|
|
797
|
-
for (var n,
|
|
793
|
+
return new s("STORE decompression");
|
|
794
|
+
} }, y.DEFLATE = e("./flate");
|
|
795
|
+
}, { "./flate": 7, "./stream/GenericWorker": 28 }], 4: [function(e, w, y) {
|
|
796
|
+
var s = e("./utils"), o = function() {
|
|
797
|
+
for (var n, a = [], c = 0; c < 256; c++) {
|
|
798
798
|
n = c;
|
|
799
|
-
for (var
|
|
800
|
-
|
|
799
|
+
for (var f = 0; f < 8; f++) n = 1 & n ? 3988292384 ^ n >>> 1 : n >>> 1;
|
|
800
|
+
a[c] = n;
|
|
801
801
|
}
|
|
802
|
-
return
|
|
802
|
+
return a;
|
|
803
803
|
}();
|
|
804
|
-
w.exports = function(n,
|
|
805
|
-
return n !== void 0 && n.length ?
|
|
806
|
-
var r = o, d =
|
|
804
|
+
w.exports = function(n, a) {
|
|
805
|
+
return n !== void 0 && n.length ? s.getTypeOf(n) !== "string" ? function(c, f, g, m) {
|
|
806
|
+
var r = o, d = m + g;
|
|
807
807
|
c ^= -1;
|
|
808
|
-
for (var u =
|
|
808
|
+
for (var u = m; u < d; u++) c = c >>> 8 ^ r[255 & (c ^ f[u])];
|
|
809
809
|
return -1 ^ c;
|
|
810
|
-
}(0 |
|
|
811
|
-
var r = o, d =
|
|
810
|
+
}(0 | a, n, n.length, 0) : function(c, f, g, m) {
|
|
811
|
+
var r = o, d = m + g;
|
|
812
812
|
c ^= -1;
|
|
813
|
-
for (var u =
|
|
813
|
+
for (var u = m; u < d; u++) c = c >>> 8 ^ r[255 & (c ^ f.charCodeAt(u))];
|
|
814
814
|
return -1 ^ c;
|
|
815
|
-
}(0 |
|
|
815
|
+
}(0 | a, n, n.length, 0) : 0;
|
|
816
816
|
};
|
|
817
|
-
}, { "./utils": 32 }], 5: [function(e, w,
|
|
818
|
-
|
|
819
|
-
}, {}], 6: [function(e, w,
|
|
820
|
-
var
|
|
821
|
-
|
|
822
|
-
}, { lie: 37 }], 7: [function(e, w,
|
|
823
|
-
var
|
|
824
|
-
function
|
|
825
|
-
|
|
826
|
-
}
|
|
827
|
-
|
|
817
|
+
}, { "./utils": 32 }], 5: [function(e, w, y) {
|
|
818
|
+
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;
|
|
819
|
+
}, {}], 6: [function(e, w, y) {
|
|
820
|
+
var s = null;
|
|
821
|
+
s = typeof Promise < "u" ? Promise : e("lie"), w.exports = { Promise: s };
|
|
822
|
+
}, { lie: 37 }], 7: [function(e, w, y) {
|
|
823
|
+
var s = typeof Uint8Array < "u" && typeof Uint16Array < "u" && typeof Uint32Array < "u", o = e("pako"), n = e("./utils"), a = e("./stream/GenericWorker"), c = s ? "uint8array" : "array";
|
|
824
|
+
function f(g, m) {
|
|
825
|
+
a.call(this, "FlateWorker/" + g), this._pako = null, this._pakoAction = g, this._pakoOptions = m, this.meta = {};
|
|
826
|
+
}
|
|
827
|
+
y.magic = "\b\0", n.inherits(f, a), f.prototype.processChunk = function(g) {
|
|
828
828
|
this.meta = g.meta, this._pako === null && this._createPako(), this._pako.push(n.transformTo(c, g.data), !1);
|
|
829
|
-
},
|
|
830
|
-
|
|
831
|
-
},
|
|
832
|
-
|
|
833
|
-
},
|
|
829
|
+
}, f.prototype.flush = function() {
|
|
830
|
+
a.prototype.flush.call(this), this._pako === null && this._createPako(), this._pako.push([], !0);
|
|
831
|
+
}, f.prototype.cleanUp = function() {
|
|
832
|
+
a.prototype.cleanUp.call(this), this._pako = null;
|
|
833
|
+
}, f.prototype._createPako = function() {
|
|
834
834
|
this._pako = new o[this._pakoAction]({ raw: !0, level: this._pakoOptions.level || -1 });
|
|
835
835
|
var g = this;
|
|
836
|
-
this._pako.onData = function(
|
|
837
|
-
g.push({ data:
|
|
836
|
+
this._pako.onData = function(m) {
|
|
837
|
+
g.push({ data: m, meta: g.meta });
|
|
838
838
|
};
|
|
839
|
-
},
|
|
840
|
-
return new
|
|
841
|
-
},
|
|
842
|
-
return new
|
|
839
|
+
}, y.compressWorker = function(g) {
|
|
840
|
+
return new f("Deflate", g);
|
|
841
|
+
}, y.uncompressWorker = function() {
|
|
842
|
+
return new f("Inflate", {});
|
|
843
843
|
};
|
|
844
|
-
}, { "./stream/GenericWorker": 28, "./utils": 32, pako: 38 }], 8: [function(e, w,
|
|
845
|
-
function
|
|
846
|
-
var u,
|
|
847
|
-
for (u = 0; u < d; u++)
|
|
848
|
-
return
|
|
844
|
+
}, { "./stream/GenericWorker": 28, "./utils": 32, pako: 38 }], 8: [function(e, w, y) {
|
|
845
|
+
function s(r, d) {
|
|
846
|
+
var u, h = "";
|
|
847
|
+
for (u = 0; u < d; u++) h += String.fromCharCode(255 & r), r >>>= 8;
|
|
848
|
+
return h;
|
|
849
849
|
}
|
|
850
|
-
function o(r, d, u,
|
|
851
|
-
var A, C, I = r.file,
|
|
850
|
+
function o(r, d, u, h, l, v) {
|
|
851
|
+
var A, C, I = r.file, j = r.compression, N = v !== c.utf8encode, U = n.transformTo("string", v(I.name)), x = n.transformTo("string", c.utf8encode(I.name)), F = I.comment, q = n.transformTo("string", v(F)), S = n.transformTo("string", c.utf8encode(F)), P = x.length !== I.name.length, i = S.length !== F.length, L = "", $ = "", Z = "", it = I.dir, G = I.date, st = { crc32: 0, compressedSize: 0, uncompressedSize: 0 };
|
|
852
852
|
d && !u || (st.crc32 = r.crc32, st.compressedSize = r.compressedSize, st.uncompressedSize = r.uncompressedSize);
|
|
853
853
|
var B = 0;
|
|
854
|
-
d && (B |= 8), N || !
|
|
854
|
+
d && (B |= 8), N || !P && !i || (B |= 2048);
|
|
855
855
|
var E = 0, rt = 0;
|
|
856
856
|
it && (E |= 16), l === "UNIX" ? (rt = 798, E |= function(H, ut) {
|
|
857
857
|
var lt = H;
|
|
858
858
|
return H || (lt = ut ? 16893 : 33204), (65535 & lt) << 16;
|
|
859
859
|
}(I.unixPermissions, it)) : (rt = 20, E |= function(H) {
|
|
860
860
|
return 63 & (H || 0);
|
|
861
|
-
}(I.dosPermissions)), A = G.getUTCHours(), A <<= 6, A |= G.getUTCMinutes(), A <<= 5, A |= G.getUTCSeconds() / 2, C = G.getUTCFullYear() - 1980, C <<= 4, C |= G.getUTCMonth() + 1, C <<= 5, C |= G.getUTCDate(),
|
|
861
|
+
}(I.dosPermissions)), A = G.getUTCHours(), A <<= 6, A |= G.getUTCMinutes(), A <<= 5, A |= G.getUTCSeconds() / 2, C = G.getUTCFullYear() - 1980, C <<= 4, C |= G.getUTCMonth() + 1, C <<= 5, C |= G.getUTCDate(), P && ($ = s(1, 1) + s(f(U), 4) + x, L += "up" + s($.length, 2) + $), i && (Z = s(1, 1) + s(f(q), 4) + S, L += "uc" + s(Z.length, 2) + Z);
|
|
862
862
|
var tt = "";
|
|
863
863
|
return tt += `
|
|
864
|
-
\0`, tt +=
|
|
864
|
+
\0`, tt += s(B, 2), tt += j.magic, tt += s(A, 2), tt += s(C, 2), tt += s(st.crc32, 4), tt += s(st.compressedSize, 4), tt += s(st.uncompressedSize, 4), tt += s(U.length, 2), tt += s(L.length, 2), { fileRecord: g.LOCAL_FILE_HEADER + tt + U + L, dirRecord: g.CENTRAL_FILE_HEADER + s(rt, 2) + tt + s(q.length, 2) + "\0\0\0\0" + s(E, 4) + s(h, 4) + U + L + q };
|
|
865
865
|
}
|
|
866
|
-
var n = e("../utils"),
|
|
867
|
-
function
|
|
868
|
-
|
|
866
|
+
var n = e("../utils"), a = e("../stream/GenericWorker"), c = e("../utf8"), f = e("../crc32"), g = e("../signature");
|
|
867
|
+
function m(r, d, u, h) {
|
|
868
|
+
a.call(this, "ZipFileWorker"), this.bytesWritten = 0, this.zipComment = d, this.zipPlatform = u, this.encodeFileName = h, this.streamFiles = r, this.accumulate = !1, this.contentBuffer = [], this.dirRecords = [], this.currentSourceOffset = 0, this.entriesCount = 0, this.currentFile = null, this._sources = [];
|
|
869
869
|
}
|
|
870
|
-
n.inherits(
|
|
871
|
-
var d = r.meta.percent || 0, u = this.entriesCount,
|
|
872
|
-
this.accumulate ? this.contentBuffer.push(r) : (this.bytesWritten += r.data.length,
|
|
873
|
-
},
|
|
870
|
+
n.inherits(m, a), m.prototype.push = function(r) {
|
|
871
|
+
var d = r.meta.percent || 0, u = this.entriesCount, h = this._sources.length;
|
|
872
|
+
this.accumulate ? this.contentBuffer.push(r) : (this.bytesWritten += r.data.length, a.prototype.push.call(this, { data: r.data, meta: { currentFile: this.currentFile, percent: u ? (d + 100 * (u - h - 1)) / u : 100 } }));
|
|
873
|
+
}, m.prototype.openedSource = function(r) {
|
|
874
874
|
this.currentSourceOffset = this.bytesWritten, this.currentFile = r.file.name;
|
|
875
875
|
var d = this.streamFiles && !r.file.dir;
|
|
876
876
|
if (d) {
|
|
877
877
|
var u = o(r, d, !1, this.currentSourceOffset, this.zipPlatform, this.encodeFileName);
|
|
878
878
|
this.push({ data: u.fileRecord, meta: { percent: 0 } });
|
|
879
879
|
} else this.accumulate = !0;
|
|
880
|
-
},
|
|
880
|
+
}, m.prototype.closedSource = function(r) {
|
|
881
881
|
this.accumulate = !1;
|
|
882
882
|
var d = this.streamFiles && !r.file.dir, u = o(r, d, !0, this.currentSourceOffset, this.zipPlatform, this.encodeFileName);
|
|
883
|
-
if (this.dirRecords.push(u.dirRecord), d) this.push({ data: function(
|
|
884
|
-
return g.DATA_DESCRIPTOR +
|
|
883
|
+
if (this.dirRecords.push(u.dirRecord), d) this.push({ data: function(h) {
|
|
884
|
+
return g.DATA_DESCRIPTOR + s(h.crc32, 4) + s(h.compressedSize, 4) + s(h.uncompressedSize, 4);
|
|
885
885
|
}(r), meta: { percent: 100 } });
|
|
886
886
|
else for (this.push({ data: u.fileRecord, meta: { percent: 0 } }); this.contentBuffer.length; ) this.push(this.contentBuffer.shift());
|
|
887
887
|
this.currentFile = null;
|
|
888
|
-
},
|
|
888
|
+
}, m.prototype.flush = function() {
|
|
889
889
|
for (var r = this.bytesWritten, d = 0; d < this.dirRecords.length; d++) this.push({ data: this.dirRecords[d], meta: { percent: 100 } });
|
|
890
|
-
var u = this.bytesWritten - r,
|
|
891
|
-
var
|
|
892
|
-
return g.CENTRAL_DIRECTORY_END + "\0\0\0\0" +
|
|
890
|
+
var u = this.bytesWritten - r, h = function(l, v, A, C, I) {
|
|
891
|
+
var j = n.transformTo("string", I(C));
|
|
892
|
+
return g.CENTRAL_DIRECTORY_END + "\0\0\0\0" + s(l, 2) + s(l, 2) + s(v, 4) + s(A, 4) + s(j.length, 2) + j;
|
|
893
893
|
}(this.dirRecords.length, u, r, this.zipComment, this.encodeFileName);
|
|
894
|
-
this.push({ data:
|
|
895
|
-
},
|
|
894
|
+
this.push({ data: h, meta: { percent: 100 } });
|
|
895
|
+
}, m.prototype.prepareNextSource = function() {
|
|
896
896
|
this.previous = this._sources.shift(), this.openedSource(this.previous.streamInfo), this.isPaused ? this.previous.pause() : this.previous.resume();
|
|
897
|
-
},
|
|
897
|
+
}, m.prototype.registerPrevious = function(r) {
|
|
898
898
|
this._sources.push(r);
|
|
899
899
|
var d = this;
|
|
900
900
|
return r.on("data", function(u) {
|
|
@@ -904,92 +904,92 @@ function Nr() {
|
|
|
904
904
|
}), r.on("error", function(u) {
|
|
905
905
|
d.error(u);
|
|
906
906
|
}), this;
|
|
907
|
-
},
|
|
908
|
-
return !!
|
|
909
|
-
},
|
|
907
|
+
}, m.prototype.resume = function() {
|
|
908
|
+
return !!a.prototype.resume.call(this) && (!this.previous && this._sources.length ? (this.prepareNextSource(), !0) : this.previous || this._sources.length || this.generatedError ? void 0 : (this.end(), !0));
|
|
909
|
+
}, m.prototype.error = function(r) {
|
|
910
910
|
var d = this._sources;
|
|
911
|
-
if (!
|
|
911
|
+
if (!a.prototype.error.call(this, r)) return !1;
|
|
912
912
|
for (var u = 0; u < d.length; u++) try {
|
|
913
913
|
d[u].error(r);
|
|
914
914
|
} catch {
|
|
915
915
|
}
|
|
916
916
|
return !0;
|
|
917
|
-
},
|
|
918
|
-
|
|
917
|
+
}, m.prototype.lock = function() {
|
|
918
|
+
a.prototype.lock.call(this);
|
|
919
919
|
for (var r = this._sources, d = 0; d < r.length; d++) r[d].lock();
|
|
920
|
-
}, w.exports =
|
|
921
|
-
}, { "../crc32": 4, "../signature": 23, "../stream/GenericWorker": 28, "../utf8": 31, "../utils": 32 }], 9: [function(e, w,
|
|
922
|
-
var
|
|
923
|
-
|
|
924
|
-
var
|
|
920
|
+
}, w.exports = m;
|
|
921
|
+
}, { "../crc32": 4, "../signature": 23, "../stream/GenericWorker": 28, "../utf8": 31, "../utils": 32 }], 9: [function(e, w, y) {
|
|
922
|
+
var s = e("../compressions"), o = e("./ZipFileWorker");
|
|
923
|
+
y.generateWorker = function(n, a, c) {
|
|
924
|
+
var f = new o(a.streamFiles, c, a.platform, a.encodeFileName), g = 0;
|
|
925
925
|
try {
|
|
926
|
-
n.forEach(function(
|
|
926
|
+
n.forEach(function(m, r) {
|
|
927
927
|
g++;
|
|
928
928
|
var d = function(v, A) {
|
|
929
|
-
var C = v || A, I =
|
|
929
|
+
var C = v || A, I = s[C];
|
|
930
930
|
if (!I) throw new Error(C + " is not a valid compression method !");
|
|
931
931
|
return I;
|
|
932
|
-
}(r.options.compression,
|
|
933
|
-
r._compressWorker(d, u).withStreamInfo("file", { name:
|
|
934
|
-
}),
|
|
935
|
-
} catch (
|
|
936
|
-
|
|
932
|
+
}(r.options.compression, a.compression), u = r.options.compressionOptions || a.compressionOptions || {}, h = r.dir, l = r.date;
|
|
933
|
+
r._compressWorker(d, u).withStreamInfo("file", { name: m, dir: h, date: l, comment: r.comment || "", unixPermissions: r.unixPermissions, dosPermissions: r.dosPermissions }).pipe(f);
|
|
934
|
+
}), f.entriesCount = g;
|
|
935
|
+
} catch (m) {
|
|
936
|
+
f.error(m);
|
|
937
937
|
}
|
|
938
|
-
return
|
|
938
|
+
return f;
|
|
939
939
|
};
|
|
940
|
-
}, { "../compressions": 3, "./ZipFileWorker": 8 }], 10: [function(e, w,
|
|
941
|
-
function
|
|
942
|
-
if (!(this instanceof
|
|
940
|
+
}, { "../compressions": 3, "./ZipFileWorker": 8 }], 10: [function(e, w, y) {
|
|
941
|
+
function s() {
|
|
942
|
+
if (!(this instanceof s)) return new s();
|
|
943
943
|
if (arguments.length) throw new Error("The constructor with parameters has been removed in JSZip 3.0, please check the upgrade guide.");
|
|
944
944
|
this.files = /* @__PURE__ */ Object.create(null), this.comment = null, this.root = "", this.clone = function() {
|
|
945
|
-
var o = new
|
|
945
|
+
var o = new s();
|
|
946
946
|
for (var n in this) typeof this[n] != "function" && (o[n] = this[n]);
|
|
947
947
|
return o;
|
|
948
948
|
};
|
|
949
949
|
}
|
|
950
|
-
(
|
|
951
|
-
return new
|
|
952
|
-
},
|
|
953
|
-
}, { "./defaults": 5, "./external": 6, "./load": 11, "./object": 15, "./support": 30 }], 11: [function(e, w,
|
|
954
|
-
var
|
|
955
|
-
function g(
|
|
950
|
+
(s.prototype = e("./object")).loadAsync = e("./load"), s.support = e("./support"), s.defaults = e("./defaults"), s.version = "3.10.1", s.loadAsync = function(o, n) {
|
|
951
|
+
return new s().loadAsync(o, n);
|
|
952
|
+
}, s.external = e("./external"), w.exports = s;
|
|
953
|
+
}, { "./defaults": 5, "./external": 6, "./load": 11, "./object": 15, "./support": 30 }], 11: [function(e, w, y) {
|
|
954
|
+
var s = e("./utils"), o = e("./external"), n = e("./utf8"), a = e("./zipEntries"), c = e("./stream/Crc32Probe"), f = e("./nodejsUtils");
|
|
955
|
+
function g(m) {
|
|
956
956
|
return new o.Promise(function(r, d) {
|
|
957
|
-
var u =
|
|
958
|
-
u.on("error", function(
|
|
959
|
-
d(
|
|
957
|
+
var u = m.decompressed.getContentWorker().pipe(new c());
|
|
958
|
+
u.on("error", function(h) {
|
|
959
|
+
d(h);
|
|
960
960
|
}).on("end", function() {
|
|
961
|
-
u.streamInfo.crc32 !==
|
|
961
|
+
u.streamInfo.crc32 !== m.decompressed.crc32 ? d(new Error("Corrupted zip : CRC32 mismatch")) : r();
|
|
962
962
|
}).resume();
|
|
963
963
|
});
|
|
964
964
|
}
|
|
965
|
-
w.exports = function(
|
|
965
|
+
w.exports = function(m, r) {
|
|
966
966
|
var d = this;
|
|
967
|
-
return r =
|
|
968
|
-
var
|
|
969
|
-
return
|
|
967
|
+
return r = s.extend(r || {}, { base64: !1, checkCRC32: !1, optimizedBinaryString: !1, createFolders: !1, decodeFileName: n.utf8decode }), f.isNode && f.isStream(m) ? o.Promise.reject(new Error("JSZip can't accept a stream when loading a zip file.")) : s.prepareContent("the loaded zip file", m, !0, r.optimizedBinaryString, r.base64).then(function(u) {
|
|
968
|
+
var h = new a(r);
|
|
969
|
+
return h.load(u), h;
|
|
970
970
|
}).then(function(u) {
|
|
971
|
-
var
|
|
972
|
-
if (r.checkCRC32) for (var v = 0; v < l.length; v++)
|
|
973
|
-
return o.Promise.all(
|
|
971
|
+
var h = [o.Promise.resolve(u)], l = u.files;
|
|
972
|
+
if (r.checkCRC32) for (var v = 0; v < l.length; v++) h.push(g(l[v]));
|
|
973
|
+
return o.Promise.all(h);
|
|
974
974
|
}).then(function(u) {
|
|
975
|
-
for (var
|
|
976
|
-
var A = l[v], C = A.fileNameStr, I =
|
|
975
|
+
for (var h = u.shift(), l = h.files, v = 0; v < l.length; v++) {
|
|
976
|
+
var A = l[v], C = A.fileNameStr, I = s.resolve(A.fileNameStr);
|
|
977
977
|
d.file(I, A.decompressed, { binary: !0, optimizedBinaryString: !0, date: A.date, dir: A.dir, comment: A.fileCommentStr.length ? A.fileCommentStr : null, unixPermissions: A.unixPermissions, dosPermissions: A.dosPermissions, createFolders: r.createFolders }), A.dir || (d.file(I).unsafeOriginalName = C);
|
|
978
978
|
}
|
|
979
|
-
return
|
|
979
|
+
return h.zipComment.length && (d.comment = h.zipComment), d;
|
|
980
980
|
});
|
|
981
981
|
};
|
|
982
|
-
}, { "./external": 6, "./nodejsUtils": 14, "./stream/Crc32Probe": 25, "./utf8": 31, "./utils": 32, "./zipEntries": 33 }], 12: [function(e, w,
|
|
983
|
-
var
|
|
984
|
-
function n(
|
|
985
|
-
o.call(this, "Nodejs stream input adapter for " +
|
|
982
|
+
}, { "./external": 6, "./nodejsUtils": 14, "./stream/Crc32Probe": 25, "./utf8": 31, "./utils": 32, "./zipEntries": 33 }], 12: [function(e, w, y) {
|
|
983
|
+
var s = e("../utils"), o = e("../stream/GenericWorker");
|
|
984
|
+
function n(a, c) {
|
|
985
|
+
o.call(this, "Nodejs stream input adapter for " + a), this._upstreamEnded = !1, this._bindStream(c);
|
|
986
986
|
}
|
|
987
|
-
|
|
987
|
+
s.inherits(n, o), n.prototype._bindStream = function(a) {
|
|
988
988
|
var c = this;
|
|
989
|
-
(this._stream =
|
|
990
|
-
c.push({ data:
|
|
991
|
-
}).on("error", function(
|
|
992
|
-
c.isPaused ? this.generatedError =
|
|
989
|
+
(this._stream = a).pause(), a.on("data", function(f) {
|
|
990
|
+
c.push({ data: f, meta: { percent: 0 } });
|
|
991
|
+
}).on("error", function(f) {
|
|
992
|
+
c.isPaused ? this.generatedError = f : c.error(f);
|
|
993
993
|
}).on("end", function() {
|
|
994
994
|
c.isPaused ? c._upstreamEnded = !0 : c.end();
|
|
995
995
|
});
|
|
@@ -998,55 +998,55 @@ function Nr() {
|
|
|
998
998
|
}, n.prototype.resume = function() {
|
|
999
999
|
return !!o.prototype.resume.call(this) && (this._upstreamEnded ? this.end() : this._stream.resume(), !0);
|
|
1000
1000
|
}, w.exports = n;
|
|
1001
|
-
}, { "../stream/GenericWorker": 28, "../utils": 32 }], 13: [function(e, w,
|
|
1002
|
-
var
|
|
1003
|
-
function o(n,
|
|
1004
|
-
|
|
1005
|
-
var
|
|
1006
|
-
n.on("data", function(g,
|
|
1007
|
-
|
|
1001
|
+
}, { "../stream/GenericWorker": 28, "../utils": 32 }], 13: [function(e, w, y) {
|
|
1002
|
+
var s = e("readable-stream").Readable;
|
|
1003
|
+
function o(n, a, c) {
|
|
1004
|
+
s.call(this, a), this._helper = n;
|
|
1005
|
+
var f = this;
|
|
1006
|
+
n.on("data", function(g, m) {
|
|
1007
|
+
f.push(g) || f._helper.pause(), c && c(m);
|
|
1008
1008
|
}).on("error", function(g) {
|
|
1009
|
-
|
|
1009
|
+
f.emit("error", g);
|
|
1010
1010
|
}).on("end", function() {
|
|
1011
|
-
|
|
1011
|
+
f.push(null);
|
|
1012
1012
|
});
|
|
1013
1013
|
}
|
|
1014
|
-
e("../utils").inherits(o,
|
|
1014
|
+
e("../utils").inherits(o, s), o.prototype._read = function() {
|
|
1015
1015
|
this._helper.resume();
|
|
1016
1016
|
}, w.exports = o;
|
|
1017
|
-
}, { "../utils": 32, "readable-stream": 16 }], 14: [function(e, w,
|
|
1018
|
-
w.exports = { isNode: typeof Buffer < "u", newBufferFrom: function(
|
|
1019
|
-
if (Buffer.from && Buffer.from !== Uint8Array.from) return Buffer.from(
|
|
1020
|
-
if (typeof
|
|
1021
|
-
return new Buffer(
|
|
1022
|
-
}, allocBuffer: function(
|
|
1023
|
-
if (Buffer.alloc) return Buffer.alloc(
|
|
1024
|
-
var o = new Buffer(
|
|
1017
|
+
}, { "../utils": 32, "readable-stream": 16 }], 14: [function(e, w, y) {
|
|
1018
|
+
w.exports = { isNode: typeof Buffer < "u", newBufferFrom: function(s, o) {
|
|
1019
|
+
if (Buffer.from && Buffer.from !== Uint8Array.from) return Buffer.from(s, o);
|
|
1020
|
+
if (typeof s == "number") throw new Error('The "data" argument must not be a number');
|
|
1021
|
+
return new Buffer(s, o);
|
|
1022
|
+
}, allocBuffer: function(s) {
|
|
1023
|
+
if (Buffer.alloc) return Buffer.alloc(s);
|
|
1024
|
+
var o = new Buffer(s);
|
|
1025
1025
|
return o.fill(0), o;
|
|
1026
|
-
}, isBuffer: function(
|
|
1027
|
-
return Buffer.isBuffer(
|
|
1028
|
-
}, isStream: function(
|
|
1029
|
-
return
|
|
1026
|
+
}, isBuffer: function(s) {
|
|
1027
|
+
return Buffer.isBuffer(s);
|
|
1028
|
+
}, isStream: function(s) {
|
|
1029
|
+
return s && typeof s.on == "function" && typeof s.pause == "function" && typeof s.resume == "function";
|
|
1030
1030
|
} };
|
|
1031
|
-
}, {}], 15: [function(e, w,
|
|
1032
|
-
function
|
|
1033
|
-
var U, x = n.getTypeOf(
|
|
1034
|
-
F.date = F.date || /* @__PURE__ */ new Date(), F.compression !== null && (F.compression = F.compression.toUpperCase()), typeof F.unixPermissions == "string" && (F.unixPermissions = parseInt(F.unixPermissions, 8)), F.unixPermissions && 16384 & F.unixPermissions && (F.dir = !0), F.dosPermissions && 16 & F.dosPermissions && (F.dir = !0), F.dir && (I = l(I)), F.createFolders && (U =
|
|
1031
|
+
}, {}], 15: [function(e, w, y) {
|
|
1032
|
+
function s(I, j, N) {
|
|
1033
|
+
var U, x = n.getTypeOf(j), F = n.extend(N || {}, f);
|
|
1034
|
+
F.date = F.date || /* @__PURE__ */ new Date(), F.compression !== null && (F.compression = F.compression.toUpperCase()), typeof F.unixPermissions == "string" && (F.unixPermissions = parseInt(F.unixPermissions, 8)), F.unixPermissions && 16384 & F.unixPermissions && (F.dir = !0), F.dosPermissions && 16 & F.dosPermissions && (F.dir = !0), F.dir && (I = l(I)), F.createFolders && (U = h(I)) && v.call(this, U, !0);
|
|
1035
1035
|
var q = x === "string" && F.binary === !1 && F.base64 === !1;
|
|
1036
|
-
N && N.binary !== void 0 || (F.binary = !q), (
|
|
1036
|
+
N && N.binary !== void 0 || (F.binary = !q), (j instanceof g && j.uncompressedSize === 0 || F.dir || !j || j.length === 0) && (F.base64 = !1, F.binary = !0, j = "", F.compression = "STORE", x = "string");
|
|
1037
1037
|
var S = null;
|
|
1038
|
-
S =
|
|
1039
|
-
var
|
|
1040
|
-
this.files[I] =
|
|
1038
|
+
S = j instanceof g || j instanceof a ? j : d.isNode && d.isStream(j) ? new u(I, j) : n.prepareContent(I, j, F.binary, F.optimizedBinaryString, F.base64);
|
|
1039
|
+
var P = new m(I, S, F);
|
|
1040
|
+
this.files[I] = P;
|
|
1041
1041
|
}
|
|
1042
|
-
var o = e("./utf8"), n = e("./utils"),
|
|
1042
|
+
var o = e("./utf8"), n = e("./utils"), a = e("./stream/GenericWorker"), c = e("./stream/StreamHelper"), f = e("./defaults"), g = e("./compressedObject"), m = e("./zipObject"), r = e("./generate"), d = e("./nodejsUtils"), u = e("./nodejs/NodejsStreamInputAdapter"), h = function(I) {
|
|
1043
1043
|
I.slice(-1) === "/" && (I = I.substring(0, I.length - 1));
|
|
1044
|
-
var
|
|
1045
|
-
return 0 <
|
|
1044
|
+
var j = I.lastIndexOf("/");
|
|
1045
|
+
return 0 < j ? I.substring(0, j) : "";
|
|
1046
1046
|
}, l = function(I) {
|
|
1047
1047
|
return I.slice(-1) !== "/" && (I += "/"), I;
|
|
1048
|
-
}, v = function(I,
|
|
1049
|
-
return
|
|
1048
|
+
}, v = function(I, j) {
|
|
1049
|
+
return j = j !== void 0 ? j : f.createFolders, I = l(I), this.files[I] || s.call(this, I, null, { dir: !0, createFolders: j }), this.files[I];
|
|
1050
1050
|
};
|
|
1051
1051
|
function A(I) {
|
|
1052
1052
|
return Object.prototype.toString.call(I) === "[object RegExp]";
|
|
@@ -1054,15 +1054,15 @@ function Nr() {
|
|
|
1054
1054
|
var C = { load: function() {
|
|
1055
1055
|
throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.");
|
|
1056
1056
|
}, forEach: function(I) {
|
|
1057
|
-
var
|
|
1058
|
-
for (
|
|
1057
|
+
var j, N, U;
|
|
1058
|
+
for (j in this.files) U = this.files[j], (N = j.slice(this.root.length, j.length)) && j.slice(0, this.root.length) === this.root && I(N, U);
|
|
1059
1059
|
}, filter: function(I) {
|
|
1060
|
-
var
|
|
1060
|
+
var j = [];
|
|
1061
1061
|
return this.forEach(function(N, U) {
|
|
1062
|
-
I(N, U) &&
|
|
1063
|
-
}),
|
|
1064
|
-
}, file: function(I,
|
|
1065
|
-
if (arguments.length !== 1) return I = this.root + I,
|
|
1062
|
+
I(N, U) && j.push(U);
|
|
1063
|
+
}), j;
|
|
1064
|
+
}, file: function(I, j, N) {
|
|
1065
|
+
if (arguments.length !== 1) return I = this.root + I, s.call(this, I, j, N), this;
|
|
1066
1066
|
if (A(I)) {
|
|
1067
1067
|
var U = I;
|
|
1068
1068
|
return this.filter(function(F, q) {
|
|
@@ -1076,12 +1076,12 @@ function Nr() {
|
|
|
1076
1076
|
if (A(I)) return this.filter(function(x, F) {
|
|
1077
1077
|
return F.dir && I.test(x);
|
|
1078
1078
|
});
|
|
1079
|
-
var
|
|
1079
|
+
var j = this.root + I, N = v.call(this, j), U = this.clone();
|
|
1080
1080
|
return U.root = N.name, U;
|
|
1081
1081
|
}, remove: function(I) {
|
|
1082
1082
|
I = this.root + I;
|
|
1083
|
-
var
|
|
1084
|
-
if (
|
|
1083
|
+
var j = this.files[I];
|
|
1084
|
+
if (j || (I.slice(-1) !== "/" && (I += "/"), j = this.files[I]), j && !j.dir) delete this.files[I];
|
|
1085
1085
|
else for (var N = this.filter(function(x, F) {
|
|
1086
1086
|
return F.name.slice(0, I.length) === I;
|
|
1087
1087
|
}), U = 0; U < N.length; U++) delete this.files[N[U].name];
|
|
@@ -1089,45 +1089,45 @@ function Nr() {
|
|
|
1089
1089
|
}, generate: function() {
|
|
1090
1090
|
throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.");
|
|
1091
1091
|
}, generateInternalStream: function(I) {
|
|
1092
|
-
var
|
|
1092
|
+
var j, N = {};
|
|
1093
1093
|
try {
|
|
1094
1094
|
if ((N = n.extend(I || {}, { streamFiles: !1, compression: "STORE", compressionOptions: null, type: "", platform: "DOS", comment: null, mimeType: "application/zip", encodeFileName: o.utf8encode })).type = N.type.toLowerCase(), N.compression = N.compression.toUpperCase(), N.type === "binarystring" && (N.type = "string"), !N.type) throw new Error("No output type specified.");
|
|
1095
1095
|
n.checkSupport(N.type), N.platform !== "darwin" && N.platform !== "freebsd" && N.platform !== "linux" && N.platform !== "sunos" || (N.platform = "UNIX"), N.platform === "win32" && (N.platform = "DOS");
|
|
1096
1096
|
var U = N.comment || this.comment || "";
|
|
1097
|
-
|
|
1097
|
+
j = r.generateWorker(this, N, U);
|
|
1098
1098
|
} catch (x) {
|
|
1099
|
-
(
|
|
1099
|
+
(j = new a("error")).error(x);
|
|
1100
1100
|
}
|
|
1101
|
-
return new c(
|
|
1102
|
-
}, generateAsync: function(I,
|
|
1103
|
-
return this.generateInternalStream(I).accumulate(
|
|
1104
|
-
}, generateNodeStream: function(I,
|
|
1105
|
-
return (I = I || {}).type || (I.type = "nodebuffer"), this.generateInternalStream(I).toNodejsStream(
|
|
1101
|
+
return new c(j, N.type || "string", N.mimeType);
|
|
1102
|
+
}, generateAsync: function(I, j) {
|
|
1103
|
+
return this.generateInternalStream(I).accumulate(j);
|
|
1104
|
+
}, generateNodeStream: function(I, j) {
|
|
1105
|
+
return (I = I || {}).type || (I.type = "nodebuffer"), this.generateInternalStream(I).toNodejsStream(j);
|
|
1106
1106
|
} };
|
|
1107
1107
|
w.exports = C;
|
|
1108
|
-
}, { "./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(e, w,
|
|
1108
|
+
}, { "./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(e, w, y) {
|
|
1109
1109
|
w.exports = e("stream");
|
|
1110
|
-
}, { stream: void 0 }], 17: [function(e, w,
|
|
1111
|
-
var
|
|
1110
|
+
}, { stream: void 0 }], 17: [function(e, w, y) {
|
|
1111
|
+
var s = e("./DataReader");
|
|
1112
1112
|
function o(n) {
|
|
1113
|
-
|
|
1114
|
-
for (var
|
|
1113
|
+
s.call(this, n);
|
|
1114
|
+
for (var a = 0; a < this.data.length; a++) n[a] = 255 & n[a];
|
|
1115
1115
|
}
|
|
1116
|
-
e("../utils").inherits(o,
|
|
1116
|
+
e("../utils").inherits(o, s), o.prototype.byteAt = function(n) {
|
|
1117
1117
|
return this.data[this.zero + n];
|
|
1118
1118
|
}, o.prototype.lastIndexOfSignature = function(n) {
|
|
1119
|
-
for (var
|
|
1119
|
+
for (var a = n.charCodeAt(0), c = n.charCodeAt(1), f = n.charCodeAt(2), g = n.charCodeAt(3), m = this.length - 4; 0 <= m; --m) if (this.data[m] === a && this.data[m + 1] === c && this.data[m + 2] === f && this.data[m + 3] === g) return m - this.zero;
|
|
1120
1120
|
return -1;
|
|
1121
1121
|
}, o.prototype.readAndCheckSignature = function(n) {
|
|
1122
|
-
var
|
|
1123
|
-
return
|
|
1122
|
+
var a = n.charCodeAt(0), c = n.charCodeAt(1), f = n.charCodeAt(2), g = n.charCodeAt(3), m = this.readData(4);
|
|
1123
|
+
return a === m[0] && c === m[1] && f === m[2] && g === m[3];
|
|
1124
1124
|
}, o.prototype.readData = function(n) {
|
|
1125
1125
|
if (this.checkOffset(n), n === 0) return [];
|
|
1126
|
-
var
|
|
1127
|
-
return this.index += n,
|
|
1126
|
+
var a = this.data.slice(this.zero + this.index, this.zero + this.index + n);
|
|
1127
|
+
return this.index += n, a;
|
|
1128
1128
|
}, w.exports = o;
|
|
1129
|
-
}, { "../utils": 32, "./DataReader": 18 }], 18: [function(e, w,
|
|
1130
|
-
var
|
|
1129
|
+
}, { "../utils": 32, "./DataReader": 18 }], 18: [function(e, w, y) {
|
|
1130
|
+
var s = e("../utils");
|
|
1131
1131
|
function o(n) {
|
|
1132
1132
|
this.data = n, this.length = n.length, this.index = 0, this.zero = 0;
|
|
1133
1133
|
}
|
|
@@ -1141,11 +1141,11 @@ function Nr() {
|
|
|
1141
1141
|
this.setIndex(this.index + n);
|
|
1142
1142
|
}, byteAt: function() {
|
|
1143
1143
|
}, readInt: function(n) {
|
|
1144
|
-
var
|
|
1145
|
-
for (this.checkOffset(n),
|
|
1144
|
+
var a, c = 0;
|
|
1145
|
+
for (this.checkOffset(n), a = this.index + n - 1; a >= this.index; a--) c = (c << 8) + this.byteAt(a);
|
|
1146
1146
|
return this.index += n, c;
|
|
1147
1147
|
}, readString: function(n) {
|
|
1148
|
-
return
|
|
1148
|
+
return s.transformTo("string", this.readData(n));
|
|
1149
1149
|
}, readData: function() {
|
|
1150
1150
|
}, lastIndexOfSignature: function() {
|
|
1151
1151
|
}, readAndCheckSignature: function() {
|
|
@@ -1153,22 +1153,22 @@ function Nr() {
|
|
|
1153
1153
|
var n = this.readInt(4);
|
|
1154
1154
|
return new Date(Date.UTC(1980 + (n >> 25 & 127), (n >> 21 & 15) - 1, n >> 16 & 31, n >> 11 & 31, n >> 5 & 63, (31 & n) << 1));
|
|
1155
1155
|
} }, w.exports = o;
|
|
1156
|
-
}, { "../utils": 32 }], 19: [function(e, w,
|
|
1157
|
-
var
|
|
1156
|
+
}, { "../utils": 32 }], 19: [function(e, w, y) {
|
|
1157
|
+
var s = e("./Uint8ArrayReader");
|
|
1158
1158
|
function o(n) {
|
|
1159
|
-
|
|
1159
|
+
s.call(this, n);
|
|
1160
1160
|
}
|
|
1161
|
-
e("../utils").inherits(o,
|
|
1161
|
+
e("../utils").inherits(o, s), o.prototype.readData = function(n) {
|
|
1162
1162
|
this.checkOffset(n);
|
|
1163
|
-
var
|
|
1164
|
-
return this.index += n,
|
|
1163
|
+
var a = this.data.slice(this.zero + this.index, this.zero + this.index + n);
|
|
1164
|
+
return this.index += n, a;
|
|
1165
1165
|
}, w.exports = o;
|
|
1166
|
-
}, { "../utils": 32, "./Uint8ArrayReader": 21 }], 20: [function(e, w,
|
|
1167
|
-
var
|
|
1166
|
+
}, { "../utils": 32, "./Uint8ArrayReader": 21 }], 20: [function(e, w, y) {
|
|
1167
|
+
var s = e("./DataReader");
|
|
1168
1168
|
function o(n) {
|
|
1169
|
-
|
|
1169
|
+
s.call(this, n);
|
|
1170
1170
|
}
|
|
1171
|
-
e("../utils").inherits(o,
|
|
1171
|
+
e("../utils").inherits(o, s), o.prototype.byteAt = function(n) {
|
|
1172
1172
|
return this.data.charCodeAt(this.zero + n);
|
|
1173
1173
|
}, o.prototype.lastIndexOfSignature = function(n) {
|
|
1174
1174
|
return this.data.lastIndexOf(n) - this.zero;
|
|
@@ -1176,94 +1176,94 @@ function Nr() {
|
|
|
1176
1176
|
return n === this.readData(4);
|
|
1177
1177
|
}, o.prototype.readData = function(n) {
|
|
1178
1178
|
this.checkOffset(n);
|
|
1179
|
-
var
|
|
1180
|
-
return this.index += n,
|
|
1179
|
+
var a = this.data.slice(this.zero + this.index, this.zero + this.index + n);
|
|
1180
|
+
return this.index += n, a;
|
|
1181
1181
|
}, w.exports = o;
|
|
1182
|
-
}, { "../utils": 32, "./DataReader": 18 }], 21: [function(e, w,
|
|
1183
|
-
var
|
|
1182
|
+
}, { "../utils": 32, "./DataReader": 18 }], 21: [function(e, w, y) {
|
|
1183
|
+
var s = e("./ArrayReader");
|
|
1184
1184
|
function o(n) {
|
|
1185
|
-
|
|
1185
|
+
s.call(this, n);
|
|
1186
1186
|
}
|
|
1187
|
-
e("../utils").inherits(o,
|
|
1187
|
+
e("../utils").inherits(o, s), o.prototype.readData = function(n) {
|
|
1188
1188
|
if (this.checkOffset(n), n === 0) return new Uint8Array(0);
|
|
1189
|
-
var
|
|
1190
|
-
return this.index += n,
|
|
1189
|
+
var a = this.data.subarray(this.zero + this.index, this.zero + this.index + n);
|
|
1190
|
+
return this.index += n, a;
|
|
1191
1191
|
}, w.exports = o;
|
|
1192
|
-
}, { "../utils": 32, "./ArrayReader": 17 }], 22: [function(e, w,
|
|
1193
|
-
var
|
|
1192
|
+
}, { "../utils": 32, "./ArrayReader": 17 }], 22: [function(e, w, y) {
|
|
1193
|
+
var s = e("../utils"), o = e("../support"), n = e("./ArrayReader"), a = e("./StringReader"), c = e("./NodeBufferReader"), f = e("./Uint8ArrayReader");
|
|
1194
1194
|
w.exports = function(g) {
|
|
1195
|
-
var
|
|
1196
|
-
return
|
|
1195
|
+
var m = s.getTypeOf(g);
|
|
1196
|
+
return s.checkSupport(m), m !== "string" || o.uint8array ? m === "nodebuffer" ? new c(g) : o.uint8array ? new f(s.transformTo("uint8array", g)) : new n(s.transformTo("array", g)) : new a(g);
|
|
1197
1197
|
};
|
|
1198
|
-
}, { "../support": 30, "../utils": 32, "./ArrayReader": 17, "./NodeBufferReader": 19, "./StringReader": 20, "./Uint8ArrayReader": 21 }], 23: [function(e, w,
|
|
1199
|
-
|
|
1200
|
-
}, {}], 24: [function(e, w,
|
|
1201
|
-
var
|
|
1202
|
-
function n(
|
|
1203
|
-
|
|
1204
|
-
}
|
|
1205
|
-
o.inherits(n,
|
|
1206
|
-
this.push({ data: o.transformTo(this.destType,
|
|
1198
|
+
}, { "../support": 30, "../utils": 32, "./ArrayReader": 17, "./NodeBufferReader": 19, "./StringReader": 20, "./Uint8ArrayReader": 21 }], 23: [function(e, w, y) {
|
|
1199
|
+
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";
|
|
1200
|
+
}, {}], 24: [function(e, w, y) {
|
|
1201
|
+
var s = e("./GenericWorker"), o = e("../utils");
|
|
1202
|
+
function n(a) {
|
|
1203
|
+
s.call(this, "ConvertWorker to " + a), this.destType = a;
|
|
1204
|
+
}
|
|
1205
|
+
o.inherits(n, s), n.prototype.processChunk = function(a) {
|
|
1206
|
+
this.push({ data: o.transformTo(this.destType, a.data), meta: a.meta });
|
|
1207
1207
|
}, w.exports = n;
|
|
1208
|
-
}, { "../utils": 32, "./GenericWorker": 28 }], 25: [function(e, w,
|
|
1209
|
-
var
|
|
1208
|
+
}, { "../utils": 32, "./GenericWorker": 28 }], 25: [function(e, w, y) {
|
|
1209
|
+
var s = e("./GenericWorker"), o = e("../crc32");
|
|
1210
1210
|
function n() {
|
|
1211
|
-
|
|
1211
|
+
s.call(this, "Crc32Probe"), this.withStreamInfo("crc32", 0);
|
|
1212
1212
|
}
|
|
1213
|
-
e("../utils").inherits(n,
|
|
1214
|
-
this.streamInfo.crc32 = o(
|
|
1213
|
+
e("../utils").inherits(n, s), n.prototype.processChunk = function(a) {
|
|
1214
|
+
this.streamInfo.crc32 = o(a.data, this.streamInfo.crc32 || 0), this.push(a);
|
|
1215
1215
|
}, w.exports = n;
|
|
1216
|
-
}, { "../crc32": 4, "../utils": 32, "./GenericWorker": 28 }], 26: [function(e, w,
|
|
1217
|
-
var
|
|
1218
|
-
function n(
|
|
1219
|
-
o.call(this, "DataLengthProbe for " +
|
|
1216
|
+
}, { "../crc32": 4, "../utils": 32, "./GenericWorker": 28 }], 26: [function(e, w, y) {
|
|
1217
|
+
var s = e("../utils"), o = e("./GenericWorker");
|
|
1218
|
+
function n(a) {
|
|
1219
|
+
o.call(this, "DataLengthProbe for " + a), this.propName = a, this.withStreamInfo(a, 0);
|
|
1220
1220
|
}
|
|
1221
|
-
|
|
1222
|
-
if (
|
|
1221
|
+
s.inherits(n, o), n.prototype.processChunk = function(a) {
|
|
1222
|
+
if (a) {
|
|
1223
1223
|
var c = this.streamInfo[this.propName] || 0;
|
|
1224
|
-
this.streamInfo[this.propName] = c +
|
|
1224
|
+
this.streamInfo[this.propName] = c + a.data.length;
|
|
1225
1225
|
}
|
|
1226
|
-
o.prototype.processChunk.call(this,
|
|
1226
|
+
o.prototype.processChunk.call(this, a);
|
|
1227
1227
|
}, w.exports = n;
|
|
1228
|
-
}, { "../utils": 32, "./GenericWorker": 28 }], 27: [function(e, w,
|
|
1229
|
-
var
|
|
1230
|
-
function n(
|
|
1228
|
+
}, { "../utils": 32, "./GenericWorker": 28 }], 27: [function(e, w, y) {
|
|
1229
|
+
var s = e("../utils"), o = e("./GenericWorker");
|
|
1230
|
+
function n(a) {
|
|
1231
1231
|
o.call(this, "DataWorker");
|
|
1232
1232
|
var c = this;
|
|
1233
|
-
this.dataIsReady = !1, this.index = 0, this.max = 0, this.data = null, this.type = "", this._tickScheduled = !1,
|
|
1234
|
-
c.dataIsReady = !0, c.data =
|
|
1235
|
-
}, function(
|
|
1236
|
-
c.error(
|
|
1233
|
+
this.dataIsReady = !1, this.index = 0, this.max = 0, this.data = null, this.type = "", this._tickScheduled = !1, a.then(function(f) {
|
|
1234
|
+
c.dataIsReady = !0, c.data = f, c.max = f && f.length || 0, c.type = s.getTypeOf(f), c.isPaused || c._tickAndRepeat();
|
|
1235
|
+
}, function(f) {
|
|
1236
|
+
c.error(f);
|
|
1237
1237
|
});
|
|
1238
1238
|
}
|
|
1239
|
-
|
|
1239
|
+
s.inherits(n, o), n.prototype.cleanUp = function() {
|
|
1240
1240
|
o.prototype.cleanUp.call(this), this.data = null;
|
|
1241
1241
|
}, n.prototype.resume = function() {
|
|
1242
|
-
return !!o.prototype.resume.call(this) && (!this._tickScheduled && this.dataIsReady && (this._tickScheduled = !0,
|
|
1242
|
+
return !!o.prototype.resume.call(this) && (!this._tickScheduled && this.dataIsReady && (this._tickScheduled = !0, s.delay(this._tickAndRepeat, [], this)), !0);
|
|
1243
1243
|
}, n.prototype._tickAndRepeat = function() {
|
|
1244
|
-
this._tickScheduled = !1, this.isPaused || this.isFinished || (this._tick(), this.isFinished || (
|
|
1244
|
+
this._tickScheduled = !1, this.isPaused || this.isFinished || (this._tick(), this.isFinished || (s.delay(this._tickAndRepeat, [], this), this._tickScheduled = !0));
|
|
1245
1245
|
}, n.prototype._tick = function() {
|
|
1246
1246
|
if (this.isPaused || this.isFinished) return !1;
|
|
1247
|
-
var
|
|
1247
|
+
var a = null, c = Math.min(this.max, this.index + 16384);
|
|
1248
1248
|
if (this.index >= this.max) return this.end();
|
|
1249
1249
|
switch (this.type) {
|
|
1250
1250
|
case "string":
|
|
1251
|
-
|
|
1251
|
+
a = this.data.substring(this.index, c);
|
|
1252
1252
|
break;
|
|
1253
1253
|
case "uint8array":
|
|
1254
|
-
|
|
1254
|
+
a = this.data.subarray(this.index, c);
|
|
1255
1255
|
break;
|
|
1256
1256
|
case "array":
|
|
1257
1257
|
case "nodebuffer":
|
|
1258
|
-
|
|
1258
|
+
a = this.data.slice(this.index, c);
|
|
1259
1259
|
}
|
|
1260
|
-
return this.index = c, this.push({ data:
|
|
1260
|
+
return this.index = c, this.push({ data: a, meta: { percent: this.max ? this.index / this.max * 100 : 0 } });
|
|
1261
1261
|
}, w.exports = n;
|
|
1262
|
-
}, { "../utils": 32, "./GenericWorker": 28 }], 28: [function(e, w,
|
|
1263
|
-
function
|
|
1262
|
+
}, { "../utils": 32, "./GenericWorker": 28 }], 28: [function(e, w, y) {
|
|
1263
|
+
function s(o) {
|
|
1264
1264
|
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;
|
|
1265
1265
|
}
|
|
1266
|
-
|
|
1266
|
+
s.prototype = { push: function(o) {
|
|
1267
1267
|
this.emit("data", o);
|
|
1268
1268
|
}, end: function() {
|
|
1269
1269
|
if (this.isFinished) return !1;
|
|
@@ -1281,19 +1281,19 @@ function Nr() {
|
|
|
1281
1281
|
}, cleanUp: function() {
|
|
1282
1282
|
this.streamInfo = this.generatedError = this.extraStreamInfo = null, this._listeners = [];
|
|
1283
1283
|
}, emit: function(o, n) {
|
|
1284
|
-
if (this._listeners[o]) for (var
|
|
1284
|
+
if (this._listeners[o]) for (var a = 0; a < this._listeners[o].length; a++) this._listeners[o][a].call(this, n);
|
|
1285
1285
|
}, pipe: function(o) {
|
|
1286
1286
|
return o.registerPrevious(this);
|
|
1287
1287
|
}, registerPrevious: function(o) {
|
|
1288
1288
|
if (this.isLocked) throw new Error("The stream '" + this + "' has already been used.");
|
|
1289
1289
|
this.streamInfo = o.streamInfo, this.mergeStreamInfo(), this.previous = o;
|
|
1290
1290
|
var n = this;
|
|
1291
|
-
return o.on("data", function(
|
|
1292
|
-
n.processChunk(
|
|
1291
|
+
return o.on("data", function(a) {
|
|
1292
|
+
n.processChunk(a);
|
|
1293
1293
|
}), o.on("end", function() {
|
|
1294
1294
|
n.end();
|
|
1295
|
-
}), o.on("error", function(
|
|
1296
|
-
n.error(
|
|
1295
|
+
}), o.on("error", function(a) {
|
|
1296
|
+
n.error(a);
|
|
1297
1297
|
}), this;
|
|
1298
1298
|
}, pause: function() {
|
|
1299
1299
|
return !this.isPaused && !this.isFinished && (this.isPaused = !0, this.previous && this.previous.pause(), !0);
|
|
@@ -1314,30 +1314,30 @@ function Nr() {
|
|
|
1314
1314
|
}, toString: function() {
|
|
1315
1315
|
var o = "Worker " + this.name;
|
|
1316
1316
|
return this.previous ? this.previous + " -> " + o : o;
|
|
1317
|
-
} }, w.exports =
|
|
1318
|
-
}, {}], 29: [function(e, w,
|
|
1319
|
-
var
|
|
1317
|
+
} }, w.exports = s;
|
|
1318
|
+
}, {}], 29: [function(e, w, y) {
|
|
1319
|
+
var s = e("../utils"), o = e("./ConvertWorker"), n = e("./GenericWorker"), a = e("../base64"), c = e("../support"), f = e("../external"), g = null;
|
|
1320
1320
|
if (c.nodestream) try {
|
|
1321
1321
|
g = e("../nodejs/NodejsStreamOutputAdapter");
|
|
1322
1322
|
} catch {
|
|
1323
1323
|
}
|
|
1324
|
-
function
|
|
1325
|
-
return new
|
|
1324
|
+
function m(d, u) {
|
|
1325
|
+
return new f.Promise(function(h, l) {
|
|
1326
1326
|
var v = [], A = d._internalType, C = d._outputType, I = d._mimeType;
|
|
1327
|
-
d.on("data", function(
|
|
1328
|
-
v.push(
|
|
1329
|
-
}).on("error", function(
|
|
1330
|
-
v = [], l(
|
|
1327
|
+
d.on("data", function(j, N) {
|
|
1328
|
+
v.push(j), u && u(N);
|
|
1329
|
+
}).on("error", function(j) {
|
|
1330
|
+
v = [], l(j);
|
|
1331
1331
|
}).on("end", function() {
|
|
1332
1332
|
try {
|
|
1333
|
-
var
|
|
1333
|
+
var j = function(N, U, x) {
|
|
1334
1334
|
switch (N) {
|
|
1335
1335
|
case "blob":
|
|
1336
|
-
return
|
|
1336
|
+
return s.newBlob(s.transformTo("arraybuffer", U), x);
|
|
1337
1337
|
case "base64":
|
|
1338
|
-
return
|
|
1338
|
+
return a.encode(U);
|
|
1339
1339
|
default:
|
|
1340
|
-
return
|
|
1340
|
+
return s.transformTo(N, U);
|
|
1341
1341
|
}
|
|
1342
1342
|
}(C, function(N, U) {
|
|
1343
1343
|
var x, F = 0, q = null, S = 0;
|
|
@@ -1356,7 +1356,7 @@ function Nr() {
|
|
|
1356
1356
|
throw new Error("concat : unsupported type '" + N + "'");
|
|
1357
1357
|
}
|
|
1358
1358
|
}(A, v), I);
|
|
1359
|
-
|
|
1359
|
+
h(j);
|
|
1360
1360
|
} catch (N) {
|
|
1361
1361
|
l(N);
|
|
1362
1362
|
}
|
|
@@ -1364,7 +1364,7 @@ function Nr() {
|
|
|
1364
1364
|
}).resume();
|
|
1365
1365
|
});
|
|
1366
1366
|
}
|
|
1367
|
-
function r(d, u,
|
|
1367
|
+
function r(d, u, h) {
|
|
1368
1368
|
var l = u;
|
|
1369
1369
|
switch (u) {
|
|
1370
1370
|
case "blob":
|
|
@@ -1375,77 +1375,77 @@ function Nr() {
|
|
|
1375
1375
|
l = "string";
|
|
1376
1376
|
}
|
|
1377
1377
|
try {
|
|
1378
|
-
this._internalType = l, this._outputType = u, this._mimeType =
|
|
1378
|
+
this._internalType = l, this._outputType = u, this._mimeType = h, s.checkSupport(l), this._worker = d.pipe(new o(l)), d.lock();
|
|
1379
1379
|
} catch (v) {
|
|
1380
1380
|
this._worker = new n("error"), this._worker.error(v);
|
|
1381
1381
|
}
|
|
1382
1382
|
}
|
|
1383
1383
|
r.prototype = { accumulate: function(d) {
|
|
1384
|
-
return
|
|
1384
|
+
return m(this, d);
|
|
1385
1385
|
}, on: function(d, u) {
|
|
1386
|
-
var
|
|
1386
|
+
var h = this;
|
|
1387
1387
|
return d === "data" ? this._worker.on(d, function(l) {
|
|
1388
|
-
u.call(
|
|
1388
|
+
u.call(h, l.data, l.meta);
|
|
1389
1389
|
}) : this._worker.on(d, function() {
|
|
1390
|
-
|
|
1390
|
+
s.delay(u, arguments, h);
|
|
1391
1391
|
}), this;
|
|
1392
1392
|
}, resume: function() {
|
|
1393
|
-
return
|
|
1393
|
+
return s.delay(this._worker.resume, [], this._worker), this;
|
|
1394
1394
|
}, pause: function() {
|
|
1395
1395
|
return this._worker.pause(), this;
|
|
1396
1396
|
}, toNodejsStream: function(d) {
|
|
1397
|
-
if (
|
|
1397
|
+
if (s.checkSupport("nodestream"), this._outputType !== "nodebuffer") throw new Error(this._outputType + " is not supported by this method");
|
|
1398
1398
|
return new g(this, { objectMode: this._outputType !== "nodebuffer" }, d);
|
|
1399
1399
|
} }, w.exports = r;
|
|
1400
|
-
}, { "../base64": 1, "../external": 6, "../nodejs/NodejsStreamOutputAdapter": 13, "../support": 30, "../utils": 32, "./ConvertWorker": 24, "./GenericWorker": 28 }], 30: [function(e, w,
|
|
1401
|
-
if (
|
|
1400
|
+
}, { "../base64": 1, "../external": 6, "../nodejs/NodejsStreamOutputAdapter": 13, "../support": 30, "../utils": 32, "./ConvertWorker": 24, "./GenericWorker": 28 }], 30: [function(e, w, y) {
|
|
1401
|
+
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") y.blob = !1;
|
|
1402
1402
|
else {
|
|
1403
|
-
var
|
|
1403
|
+
var s = new ArrayBuffer(0);
|
|
1404
1404
|
try {
|
|
1405
|
-
|
|
1405
|
+
y.blob = new Blob([s], { type: "application/zip" }).size === 0;
|
|
1406
1406
|
} catch {
|
|
1407
1407
|
try {
|
|
1408
1408
|
var o = new (self.BlobBuilder || self.WebKitBlobBuilder || self.MozBlobBuilder || self.MSBlobBuilder)();
|
|
1409
|
-
o.append(
|
|
1409
|
+
o.append(s), y.blob = o.getBlob("application/zip").size === 0;
|
|
1410
1410
|
} catch {
|
|
1411
|
-
|
|
1411
|
+
y.blob = !1;
|
|
1412
1412
|
}
|
|
1413
1413
|
}
|
|
1414
1414
|
}
|
|
1415
1415
|
try {
|
|
1416
|
-
|
|
1416
|
+
y.nodestream = !!e("readable-stream").Readable;
|
|
1417
1417
|
} catch {
|
|
1418
|
-
|
|
1418
|
+
y.nodestream = !1;
|
|
1419
1419
|
}
|
|
1420
|
-
}, { "readable-stream": 16 }], 31: [function(e, w,
|
|
1421
|
-
for (var
|
|
1420
|
+
}, { "readable-stream": 16 }], 31: [function(e, w, y) {
|
|
1421
|
+
for (var s = e("./utils"), o = e("./support"), n = e("./nodejsUtils"), a = e("./stream/GenericWorker"), c = new Array(256), f = 0; f < 256; f++) c[f] = 252 <= f ? 6 : 248 <= f ? 5 : 240 <= f ? 4 : 224 <= f ? 3 : 192 <= f ? 2 : 1;
|
|
1422
1422
|
c[254] = c[254] = 1;
|
|
1423
1423
|
function g() {
|
|
1424
|
-
|
|
1424
|
+
a.call(this, "utf-8 decode"), this.leftOver = null;
|
|
1425
1425
|
}
|
|
1426
|
-
function
|
|
1427
|
-
|
|
1426
|
+
function m() {
|
|
1427
|
+
a.call(this, "utf-8 encode");
|
|
1428
1428
|
}
|
|
1429
|
-
|
|
1429
|
+
y.utf8encode = function(r) {
|
|
1430
1430
|
return o.nodebuffer ? n.newBufferFrom(r, "utf-8") : function(d) {
|
|
1431
|
-
var u,
|
|
1432
|
-
for (v = 0; v < C; v++) (64512 & (
|
|
1433
|
-
for (u = o.uint8array ? new Uint8Array(I) : new Array(I), v = A = 0; A < I; v++) (64512 & (
|
|
1431
|
+
var u, h, l, v, A, C = d.length, I = 0;
|
|
1432
|
+
for (v = 0; v < C; v++) (64512 & (h = d.charCodeAt(v))) == 55296 && v + 1 < C && (64512 & (l = d.charCodeAt(v + 1))) == 56320 && (h = 65536 + (h - 55296 << 10) + (l - 56320), v++), I += h < 128 ? 1 : h < 2048 ? 2 : h < 65536 ? 3 : 4;
|
|
1433
|
+
for (u = o.uint8array ? new Uint8Array(I) : new Array(I), v = A = 0; A < I; v++) (64512 & (h = d.charCodeAt(v))) == 55296 && v + 1 < C && (64512 & (l = d.charCodeAt(v + 1))) == 56320 && (h = 65536 + (h - 55296 << 10) + (l - 56320), v++), h < 128 ? u[A++] = h : (h < 2048 ? u[A++] = 192 | h >>> 6 : (h < 65536 ? u[A++] = 224 | h >>> 12 : (u[A++] = 240 | h >>> 18, u[A++] = 128 | h >>> 12 & 63), u[A++] = 128 | h >>> 6 & 63), u[A++] = 128 | 63 & h);
|
|
1434
1434
|
return u;
|
|
1435
1435
|
}(r);
|
|
1436
|
-
},
|
|
1437
|
-
return o.nodebuffer ?
|
|
1438
|
-
var u,
|
|
1439
|
-
for (u =
|
|
1440
|
-
else if (4 < (v = c[l])) C[
|
|
1436
|
+
}, y.utf8decode = function(r) {
|
|
1437
|
+
return o.nodebuffer ? s.transformTo("nodebuffer", r).toString("utf-8") : function(d) {
|
|
1438
|
+
var u, h, l, v, A = d.length, C = new Array(2 * A);
|
|
1439
|
+
for (u = h = 0; u < A; ) if ((l = d[u++]) < 128) C[h++] = l;
|
|
1440
|
+
else if (4 < (v = c[l])) C[h++] = 65533, u += v - 1;
|
|
1441
1441
|
else {
|
|
1442
1442
|
for (l &= v === 2 ? 31 : v === 3 ? 15 : 7; 1 < v && u < A; ) l = l << 6 | 63 & d[u++], v--;
|
|
1443
|
-
1 < v ? C[
|
|
1443
|
+
1 < v ? C[h++] = 65533 : l < 65536 ? C[h++] = l : (l -= 65536, C[h++] = 55296 | l >> 10 & 1023, C[h++] = 56320 | 1023 & l);
|
|
1444
1444
|
}
|
|
1445
|
-
return C.length !==
|
|
1446
|
-
}(r =
|
|
1447
|
-
},
|
|
1448
|
-
var d =
|
|
1445
|
+
return C.length !== h && (C.subarray ? C = C.subarray(0, h) : C.length = h), s.applyFromCharCode(C);
|
|
1446
|
+
}(r = s.transformTo(o.uint8array ? "uint8array" : "array", r));
|
|
1447
|
+
}, s.inherits(g, a), g.prototype.processChunk = function(r) {
|
|
1448
|
+
var d = s.transformTo(o.uint8array ? "uint8array" : "array", r.data);
|
|
1449
1449
|
if (this.leftOver && this.leftOver.length) {
|
|
1450
1450
|
if (o.uint8array) {
|
|
1451
1451
|
var u = d;
|
|
@@ -1453,194 +1453,194 @@ function Nr() {
|
|
|
1453
1453
|
} else d = this.leftOver.concat(d);
|
|
1454
1454
|
this.leftOver = null;
|
|
1455
1455
|
}
|
|
1456
|
-
var
|
|
1456
|
+
var h = function(v, A) {
|
|
1457
1457
|
var C;
|
|
1458
1458
|
for ((A = A || v.length) > v.length && (A = v.length), C = A - 1; 0 <= C && (192 & v[C]) == 128; ) C--;
|
|
1459
1459
|
return C < 0 || C === 0 ? A : C + c[v[C]] > A ? C : A;
|
|
1460
1460
|
}(d), l = d;
|
|
1461
|
-
|
|
1461
|
+
h !== d.length && (o.uint8array ? (l = d.subarray(0, h), this.leftOver = d.subarray(h, d.length)) : (l = d.slice(0, h), this.leftOver = d.slice(h, d.length))), this.push({ data: y.utf8decode(l), meta: r.meta });
|
|
1462
1462
|
}, g.prototype.flush = function() {
|
|
1463
|
-
this.leftOver && this.leftOver.length && (this.push({ data:
|
|
1464
|
-
},
|
|
1465
|
-
this.push({ data:
|
|
1466
|
-
},
|
|
1467
|
-
}, { "./nodejsUtils": 14, "./stream/GenericWorker": 28, "./support": 30, "./utils": 32 }], 32: [function(e, w,
|
|
1468
|
-
var
|
|
1463
|
+
this.leftOver && this.leftOver.length && (this.push({ data: y.utf8decode(this.leftOver), meta: {} }), this.leftOver = null);
|
|
1464
|
+
}, y.Utf8DecodeWorker = g, s.inherits(m, a), m.prototype.processChunk = function(r) {
|
|
1465
|
+
this.push({ data: y.utf8encode(r.data), meta: r.meta });
|
|
1466
|
+
}, y.Utf8EncodeWorker = m;
|
|
1467
|
+
}, { "./nodejsUtils": 14, "./stream/GenericWorker": 28, "./support": 30, "./utils": 32 }], 32: [function(e, w, y) {
|
|
1468
|
+
var s = e("./support"), o = e("./base64"), n = e("./nodejsUtils"), a = e("./external");
|
|
1469
1469
|
function c(u) {
|
|
1470
1470
|
return u;
|
|
1471
1471
|
}
|
|
1472
|
-
function
|
|
1473
|
-
for (var l = 0; l < u.length; ++l)
|
|
1474
|
-
return
|
|
1472
|
+
function f(u, h) {
|
|
1473
|
+
for (var l = 0; l < u.length; ++l) h[l] = 255 & u.charCodeAt(l);
|
|
1474
|
+
return h;
|
|
1475
1475
|
}
|
|
1476
|
-
e("setimmediate"),
|
|
1477
|
-
|
|
1476
|
+
e("setimmediate"), y.newBlob = function(u, h) {
|
|
1477
|
+
y.checkSupport("blob");
|
|
1478
1478
|
try {
|
|
1479
|
-
return new Blob([u], { type:
|
|
1479
|
+
return new Blob([u], { type: h });
|
|
1480
1480
|
} catch {
|
|
1481
1481
|
try {
|
|
1482
1482
|
var l = new (self.BlobBuilder || self.WebKitBlobBuilder || self.MozBlobBuilder || self.MSBlobBuilder)();
|
|
1483
|
-
return l.append(u), l.getBlob(
|
|
1483
|
+
return l.append(u), l.getBlob(h);
|
|
1484
1484
|
} catch {
|
|
1485
1485
|
throw new Error("Bug : can't construct the Blob.");
|
|
1486
1486
|
}
|
|
1487
1487
|
}
|
|
1488
1488
|
};
|
|
1489
|
-
var g = { stringifyByChunk: function(u,
|
|
1489
|
+
var g = { stringifyByChunk: function(u, h, l) {
|
|
1490
1490
|
var v = [], A = 0, C = u.length;
|
|
1491
1491
|
if (C <= l) return String.fromCharCode.apply(null, u);
|
|
1492
|
-
for (; A < C; )
|
|
1492
|
+
for (; A < C; ) h === "array" || h === "nodebuffer" ? v.push(String.fromCharCode.apply(null, u.slice(A, Math.min(A + l, C)))) : v.push(String.fromCharCode.apply(null, u.subarray(A, Math.min(A + l, C)))), A += l;
|
|
1493
1493
|
return v.join("");
|
|
1494
1494
|
}, stringifyByChar: function(u) {
|
|
1495
|
-
for (var
|
|
1496
|
-
return
|
|
1495
|
+
for (var h = "", l = 0; l < u.length; l++) h += String.fromCharCode(u[l]);
|
|
1496
|
+
return h;
|
|
1497
1497
|
}, applyCanBeUsed: { uint8array: function() {
|
|
1498
1498
|
try {
|
|
1499
|
-
return
|
|
1499
|
+
return s.uint8array && String.fromCharCode.apply(null, new Uint8Array(1)).length === 1;
|
|
1500
1500
|
} catch {
|
|
1501
1501
|
return !1;
|
|
1502
1502
|
}
|
|
1503
1503
|
}(), nodebuffer: function() {
|
|
1504
1504
|
try {
|
|
1505
|
-
return
|
|
1505
|
+
return s.nodebuffer && String.fromCharCode.apply(null, n.allocBuffer(1)).length === 1;
|
|
1506
1506
|
} catch {
|
|
1507
1507
|
return !1;
|
|
1508
1508
|
}
|
|
1509
1509
|
}() } };
|
|
1510
|
-
function
|
|
1511
|
-
var
|
|
1512
|
-
if (l === "uint8array" ? v = g.applyCanBeUsed.uint8array : l === "nodebuffer" && (v = g.applyCanBeUsed.nodebuffer), v) for (; 1 <
|
|
1513
|
-
return g.stringifyByChunk(u, l,
|
|
1510
|
+
function m(u) {
|
|
1511
|
+
var h = 65536, l = y.getTypeOf(u), v = !0;
|
|
1512
|
+
if (l === "uint8array" ? v = g.applyCanBeUsed.uint8array : l === "nodebuffer" && (v = g.applyCanBeUsed.nodebuffer), v) for (; 1 < h; ) try {
|
|
1513
|
+
return g.stringifyByChunk(u, l, h);
|
|
1514
1514
|
} catch {
|
|
1515
|
-
|
|
1515
|
+
h = Math.floor(h / 2);
|
|
1516
1516
|
}
|
|
1517
1517
|
return g.stringifyByChar(u);
|
|
1518
1518
|
}
|
|
1519
|
-
function r(u,
|
|
1520
|
-
for (var l = 0; l < u.length; l++)
|
|
1521
|
-
return
|
|
1519
|
+
function r(u, h) {
|
|
1520
|
+
for (var l = 0; l < u.length; l++) h[l] = u[l];
|
|
1521
|
+
return h;
|
|
1522
1522
|
}
|
|
1523
|
-
|
|
1523
|
+
y.applyFromCharCode = m;
|
|
1524
1524
|
var d = {};
|
|
1525
1525
|
d.string = { string: c, array: function(u) {
|
|
1526
|
-
return
|
|
1526
|
+
return f(u, new Array(u.length));
|
|
1527
1527
|
}, arraybuffer: function(u) {
|
|
1528
1528
|
return d.string.uint8array(u).buffer;
|
|
1529
1529
|
}, uint8array: function(u) {
|
|
1530
|
-
return
|
|
1530
|
+
return f(u, new Uint8Array(u.length));
|
|
1531
1531
|
}, nodebuffer: function(u) {
|
|
1532
|
-
return
|
|
1533
|
-
} }, d.array = { string:
|
|
1532
|
+
return f(u, n.allocBuffer(u.length));
|
|
1533
|
+
} }, d.array = { string: m, array: c, arraybuffer: function(u) {
|
|
1534
1534
|
return new Uint8Array(u).buffer;
|
|
1535
1535
|
}, uint8array: function(u) {
|
|
1536
1536
|
return new Uint8Array(u);
|
|
1537
1537
|
}, nodebuffer: function(u) {
|
|
1538
1538
|
return n.newBufferFrom(u);
|
|
1539
1539
|
} }, d.arraybuffer = { string: function(u) {
|
|
1540
|
-
return
|
|
1540
|
+
return m(new Uint8Array(u));
|
|
1541
1541
|
}, array: function(u) {
|
|
1542
1542
|
return r(new Uint8Array(u), new Array(u.byteLength));
|
|
1543
1543
|
}, arraybuffer: c, uint8array: function(u) {
|
|
1544
1544
|
return new Uint8Array(u);
|
|
1545
1545
|
}, nodebuffer: function(u) {
|
|
1546
1546
|
return n.newBufferFrom(new Uint8Array(u));
|
|
1547
|
-
} }, d.uint8array = { string:
|
|
1547
|
+
} }, d.uint8array = { string: m, array: function(u) {
|
|
1548
1548
|
return r(u, new Array(u.length));
|
|
1549
1549
|
}, arraybuffer: function(u) {
|
|
1550
1550
|
return u.buffer;
|
|
1551
1551
|
}, uint8array: c, nodebuffer: function(u) {
|
|
1552
1552
|
return n.newBufferFrom(u);
|
|
1553
|
-
} }, d.nodebuffer = { string:
|
|
1553
|
+
} }, d.nodebuffer = { string: m, array: function(u) {
|
|
1554
1554
|
return r(u, new Array(u.length));
|
|
1555
1555
|
}, arraybuffer: function(u) {
|
|
1556
1556
|
return d.nodebuffer.uint8array(u).buffer;
|
|
1557
1557
|
}, uint8array: function(u) {
|
|
1558
1558
|
return r(u, new Uint8Array(u.length));
|
|
1559
|
-
}, nodebuffer: c },
|
|
1560
|
-
if (
|
|
1561
|
-
|
|
1562
|
-
var l =
|
|
1563
|
-
return d[l][u](
|
|
1564
|
-
},
|
|
1565
|
-
for (var
|
|
1566
|
-
var A =
|
|
1567
|
-
A === "." || A === "" && v !== 0 && v !==
|
|
1559
|
+
}, nodebuffer: c }, y.transformTo = function(u, h) {
|
|
1560
|
+
if (h = h || "", !u) return h;
|
|
1561
|
+
y.checkSupport(u);
|
|
1562
|
+
var l = y.getTypeOf(h);
|
|
1563
|
+
return d[l][u](h);
|
|
1564
|
+
}, y.resolve = function(u) {
|
|
1565
|
+
for (var h = u.split("/"), l = [], v = 0; v < h.length; v++) {
|
|
1566
|
+
var A = h[v];
|
|
1567
|
+
A === "." || A === "" && v !== 0 && v !== h.length - 1 || (A === ".." ? l.pop() : l.push(A));
|
|
1568
1568
|
}
|
|
1569
1569
|
return l.join("/");
|
|
1570
|
-
},
|
|
1571
|
-
return typeof u == "string" ? "string" : Object.prototype.toString.call(u) === "[object Array]" ? "array" :
|
|
1572
|
-
},
|
|
1573
|
-
if (!
|
|
1574
|
-
},
|
|
1575
|
-
var
|
|
1576
|
-
for (l = 0; l < (u || "").length; l++) v += "\\x" + ((
|
|
1570
|
+
}, y.getTypeOf = function(u) {
|
|
1571
|
+
return typeof u == "string" ? "string" : Object.prototype.toString.call(u) === "[object Array]" ? "array" : s.nodebuffer && n.isBuffer(u) ? "nodebuffer" : s.uint8array && u instanceof Uint8Array ? "uint8array" : s.arraybuffer && u instanceof ArrayBuffer ? "arraybuffer" : void 0;
|
|
1572
|
+
}, y.checkSupport = function(u) {
|
|
1573
|
+
if (!s[u.toLowerCase()]) throw new Error(u + " is not supported by this platform");
|
|
1574
|
+
}, y.MAX_VALUE_16BITS = 65535, y.MAX_VALUE_32BITS = -1, y.pretty = function(u) {
|
|
1575
|
+
var h, l, v = "";
|
|
1576
|
+
for (l = 0; l < (u || "").length; l++) v += "\\x" + ((h = u.charCodeAt(l)) < 16 ? "0" : "") + h.toString(16).toUpperCase();
|
|
1577
1577
|
return v;
|
|
1578
|
-
},
|
|
1578
|
+
}, y.delay = function(u, h, l) {
|
|
1579
1579
|
setImmediate(function() {
|
|
1580
|
-
u.apply(l || null,
|
|
1580
|
+
u.apply(l || null, h || []);
|
|
1581
1581
|
});
|
|
1582
|
-
},
|
|
1582
|
+
}, y.inherits = function(u, h) {
|
|
1583
1583
|
function l() {
|
|
1584
1584
|
}
|
|
1585
|
-
l.prototype =
|
|
1586
|
-
},
|
|
1587
|
-
var u,
|
|
1588
|
-
for (u = 0; u < arguments.length; u++) for (
|
|
1585
|
+
l.prototype = h.prototype, u.prototype = new l();
|
|
1586
|
+
}, y.extend = function() {
|
|
1587
|
+
var u, h, l = {};
|
|
1588
|
+
for (u = 0; u < arguments.length; u++) for (h in arguments[u]) Object.prototype.hasOwnProperty.call(arguments[u], h) && l[h] === void 0 && (l[h] = arguments[u][h]);
|
|
1589
1589
|
return l;
|
|
1590
|
-
},
|
|
1591
|
-
return
|
|
1592
|
-
return
|
|
1590
|
+
}, y.prepareContent = function(u, h, l, v, A) {
|
|
1591
|
+
return a.Promise.resolve(h).then(function(C) {
|
|
1592
|
+
return s.blob && (C instanceof Blob || ["[object File]", "[object Blob]"].indexOf(Object.prototype.toString.call(C)) !== -1) && typeof FileReader < "u" ? new a.Promise(function(I, j) {
|
|
1593
1593
|
var N = new FileReader();
|
|
1594
1594
|
N.onload = function(U) {
|
|
1595
1595
|
I(U.target.result);
|
|
1596
1596
|
}, N.onerror = function(U) {
|
|
1597
|
-
|
|
1597
|
+
j(U.target.error);
|
|
1598
1598
|
}, N.readAsArrayBuffer(C);
|
|
1599
1599
|
}) : C;
|
|
1600
1600
|
}).then(function(C) {
|
|
1601
|
-
var I =
|
|
1602
|
-
return I ? (I === "arraybuffer" ? C =
|
|
1603
|
-
return
|
|
1604
|
-
}(C))), C) :
|
|
1601
|
+
var I = y.getTypeOf(C);
|
|
1602
|
+
return I ? (I === "arraybuffer" ? C = y.transformTo("uint8array", C) : I === "string" && (A ? C = o.decode(C) : l && v !== !0 && (C = function(j) {
|
|
1603
|
+
return f(j, s.uint8array ? new Uint8Array(j.length) : new Array(j.length));
|
|
1604
|
+
}(C))), C) : a.Promise.reject(new Error("Can't read the data of '" + u + "'. Is it in a supported JavaScript type (String, Blob, ArrayBuffer, etc) ?"));
|
|
1605
1605
|
});
|
|
1606
1606
|
};
|
|
1607
|
-
}, { "./base64": 1, "./external": 6, "./nodejsUtils": 14, "./support": 30, setimmediate: 54 }], 33: [function(e, w,
|
|
1608
|
-
var
|
|
1609
|
-
function
|
|
1607
|
+
}, { "./base64": 1, "./external": 6, "./nodejsUtils": 14, "./support": 30, setimmediate: 54 }], 33: [function(e, w, y) {
|
|
1608
|
+
var s = e("./reader/readerFor"), o = e("./utils"), n = e("./signature"), a = e("./zipEntry"), c = e("./support");
|
|
1609
|
+
function f(g) {
|
|
1610
1610
|
this.files = [], this.loadOptions = g;
|
|
1611
1611
|
}
|
|
1612
|
-
|
|
1612
|
+
f.prototype = { checkSignature: function(g) {
|
|
1613
1613
|
if (!this.reader.readAndCheckSignature(g)) {
|
|
1614
1614
|
this.reader.index -= 4;
|
|
1615
|
-
var
|
|
1616
|
-
throw new Error("Corrupted zip or bug: unexpected signature (" + o.pretty(
|
|
1615
|
+
var m = this.reader.readString(4);
|
|
1616
|
+
throw new Error("Corrupted zip or bug: unexpected signature (" + o.pretty(m) + ", expected " + o.pretty(g) + ")");
|
|
1617
1617
|
}
|
|
1618
|
-
}, isSignature: function(g,
|
|
1618
|
+
}, isSignature: function(g, m) {
|
|
1619
1619
|
var r = this.reader.index;
|
|
1620
1620
|
this.reader.setIndex(g);
|
|
1621
|
-
var d = this.reader.readString(4) ===
|
|
1621
|
+
var d = this.reader.readString(4) === m;
|
|
1622
1622
|
return this.reader.setIndex(r), d;
|
|
1623
1623
|
}, readBlockEndOfCentral: function() {
|
|
1624
1624
|
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);
|
|
1625
|
-
var g = this.reader.readData(this.zipCommentLength),
|
|
1625
|
+
var g = this.reader.readData(this.zipCommentLength), m = c.uint8array ? "uint8array" : "array", r = o.transformTo(m, g);
|
|
1626
1626
|
this.zipComment = this.loadOptions.decodeFileName(r);
|
|
1627
1627
|
}, readBlockZip64EndOfCentral: function() {
|
|
1628
1628
|
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 = {};
|
|
1629
|
-
for (var g,
|
|
1629
|
+
for (var g, m, r, d = this.zip64EndOfCentralSize - 44; 0 < d; ) g = this.reader.readInt(2), m = this.reader.readInt(4), r = this.reader.readData(m), this.zip64ExtensibleData[g] = { id: g, length: m, value: r };
|
|
1630
1630
|
}, readBlockZip64EndOfCentralLocator: function() {
|
|
1631
1631
|
if (this.diskWithZip64CentralDirStart = this.reader.readInt(4), this.relativeOffsetEndOfZip64CentralDir = this.reader.readInt(8), this.disksCount = this.reader.readInt(4), 1 < this.disksCount) throw new Error("Multi-volumes zip are not supported");
|
|
1632
1632
|
}, readLocalFiles: function() {
|
|
1633
|
-
var g,
|
|
1634
|
-
for (g = 0; g < this.files.length; g++)
|
|
1633
|
+
var g, m;
|
|
1634
|
+
for (g = 0; g < this.files.length; g++) m = this.files[g], this.reader.setIndex(m.localHeaderOffset), this.checkSignature(n.LOCAL_FILE_HEADER), m.readLocalPart(this.reader), m.handleUTF8(), m.processAttributes();
|
|
1635
1635
|
}, readCentralDir: function() {
|
|
1636
1636
|
var g;
|
|
1637
|
-
for (this.reader.setIndex(this.centralDirOffset); this.reader.readAndCheckSignature(n.CENTRAL_FILE_HEADER); ) (g = new
|
|
1637
|
+
for (this.reader.setIndex(this.centralDirOffset); this.reader.readAndCheckSignature(n.CENTRAL_FILE_HEADER); ) (g = new a({ zip64: this.zip64 }, this.loadOptions)).readCentralPart(this.reader), this.files.push(g);
|
|
1638
1638
|
if (this.centralDirRecords !== this.files.length && this.centralDirRecords !== 0 && this.files.length === 0) throw new Error("Corrupted zip or bug: expected " + this.centralDirRecords + " records in central dir, got " + this.files.length);
|
|
1639
1639
|
}, readEndOfCentral: function() {
|
|
1640
1640
|
var g = this.reader.lastIndexOfSignature(n.CENTRAL_DIRECTORY_END);
|
|
1641
1641
|
if (g < 0) throw this.isSignature(0, n.LOCAL_FILE_HEADER) ? new Error("Corrupted zip: can't find end of central directory") : new Error("Can't find end of central directory : is this a zip file ? If it is, see https://stuk.github.io/jszip/documentation/howto/read_zip.html");
|
|
1642
1642
|
this.reader.setIndex(g);
|
|
1643
|
-
var
|
|
1643
|
+
var m = g;
|
|
1644
1644
|
if (this.checkSignature(n.CENTRAL_DIRECTORY_END), this.readBlockEndOfCentral(), this.diskNumber === o.MAX_VALUE_16BITS || this.diskWithCentralDirStart === o.MAX_VALUE_16BITS || this.centralDirRecordsOnThisDisk === o.MAX_VALUE_16BITS || this.centralDirRecords === o.MAX_VALUE_16BITS || this.centralDirSize === o.MAX_VALUE_32BITS || this.centralDirOffset === o.MAX_VALUE_32BITS) {
|
|
1645
1645
|
if (this.zip64 = !0, (g = this.reader.lastIndexOfSignature(n.ZIP64_CENTRAL_DIRECTORY_LOCATOR)) < 0) throw new Error("Corrupted zip: can't find the ZIP64 end of central directory locator");
|
|
1646
1646
|
if (this.reader.setIndex(g), this.checkSignature(n.ZIP64_CENTRAL_DIRECTORY_LOCATOR), this.readBlockZip64EndOfCentralLocator(), !this.isSignature(this.relativeOffsetEndOfZip64CentralDir, n.ZIP64_CENTRAL_DIRECTORY_END) && (this.relativeOffsetEndOfZip64CentralDir = this.reader.lastIndexOfSignature(n.ZIP64_CENTRAL_DIRECTORY_END), this.relativeOffsetEndOfZip64CentralDir < 0)) throw new Error("Corrupted zip: can't find the ZIP64 end of central directory");
|
|
@@ -1648,28 +1648,28 @@ function Nr() {
|
|
|
1648
1648
|
}
|
|
1649
1649
|
var r = this.centralDirOffset + this.centralDirSize;
|
|
1650
1650
|
this.zip64 && (r += 20, r += 12 + this.zip64EndOfCentralSize);
|
|
1651
|
-
var d =
|
|
1652
|
-
if (0 < d) this.isSignature(
|
|
1651
|
+
var d = m - r;
|
|
1652
|
+
if (0 < d) this.isSignature(m, n.CENTRAL_FILE_HEADER) || (this.reader.zero = d);
|
|
1653
1653
|
else if (d < 0) throw new Error("Corrupted zip: missing " + Math.abs(d) + " bytes.");
|
|
1654
1654
|
}, prepareReader: function(g) {
|
|
1655
|
-
this.reader =
|
|
1655
|
+
this.reader = s(g);
|
|
1656
1656
|
}, load: function(g) {
|
|
1657
1657
|
this.prepareReader(g), this.readEndOfCentral(), this.readCentralDir(), this.readLocalFiles();
|
|
1658
|
-
} }, w.exports =
|
|
1659
|
-
}, { "./reader/readerFor": 22, "./signature": 23, "./support": 30, "./utils": 32, "./zipEntry": 34 }], 34: [function(e, w,
|
|
1660
|
-
var
|
|
1661
|
-
function
|
|
1658
|
+
} }, w.exports = f;
|
|
1659
|
+
}, { "./reader/readerFor": 22, "./signature": 23, "./support": 30, "./utils": 32, "./zipEntry": 34 }], 34: [function(e, w, y) {
|
|
1660
|
+
var s = e("./reader/readerFor"), o = e("./utils"), n = e("./compressedObject"), a = e("./crc32"), c = e("./utf8"), f = e("./compressions"), g = e("./support");
|
|
1661
|
+
function m(r, d) {
|
|
1662
1662
|
this.options = r, this.loadOptions = d;
|
|
1663
1663
|
}
|
|
1664
|
-
|
|
1664
|
+
m.prototype = { isEncrypted: function() {
|
|
1665
1665
|
return (1 & this.bitFlag) == 1;
|
|
1666
1666
|
}, useUTF8: function() {
|
|
1667
1667
|
return (2048 & this.bitFlag) == 2048;
|
|
1668
1668
|
}, readLocalPart: function(r) {
|
|
1669
1669
|
var d, u;
|
|
1670
1670
|
if (r.skip(22), this.fileNameLength = r.readInt(2), u = r.readInt(2), this.fileName = r.readData(this.fileNameLength), r.skip(u), this.compressedSize === -1 || this.uncompressedSize === -1) throw new Error("Bug or corrupted zip : didn't get enough information from the central directory (compressedSize === -1 || uncompressedSize === -1)");
|
|
1671
|
-
if ((d = function(
|
|
1672
|
-
for (var l in
|
|
1671
|
+
if ((d = function(h) {
|
|
1672
|
+
for (var l in f) if (Object.prototype.hasOwnProperty.call(f, l) && f[l].magic === h) return f[l];
|
|
1673
1673
|
return null;
|
|
1674
1674
|
}(this.compressionMethod)) === null) throw new Error("Corrupted zip : compression " + o.pretty(this.compressionMethod) + " unknown (inner file : " + o.transformTo("string", this.fileName) + ")");
|
|
1675
1675
|
this.decompressed = new n(this.compressedSize, this.uncompressedSize, this.crc32, d, r.readData(this.compressedSize));
|
|
@@ -1684,12 +1684,12 @@ function Nr() {
|
|
|
1684
1684
|
this.dir = !!(16 & this.externalFileAttributes), r == 0 && (this.dosPermissions = 63 & this.externalFileAttributes), r == 3 && (this.unixPermissions = this.externalFileAttributes >> 16 & 65535), this.dir || this.fileNameStr.slice(-1) !== "/" || (this.dir = !0);
|
|
1685
1685
|
}, parseZIP64ExtraField: function() {
|
|
1686
1686
|
if (this.extraFields[1]) {
|
|
1687
|
-
var r =
|
|
1687
|
+
var r = s(this.extraFields[1].value);
|
|
1688
1688
|
this.uncompressedSize === o.MAX_VALUE_32BITS && (this.uncompressedSize = r.readInt(8)), this.compressedSize === o.MAX_VALUE_32BITS && (this.compressedSize = r.readInt(8)), this.localHeaderOffset === o.MAX_VALUE_32BITS && (this.localHeaderOffset = r.readInt(8)), this.diskNumberStart === o.MAX_VALUE_32BITS && (this.diskNumberStart = r.readInt(4));
|
|
1689
1689
|
}
|
|
1690
1690
|
}, readExtraFields: function(r) {
|
|
1691
|
-
var d, u,
|
|
1692
|
-
for (this.extraFields || (this.extraFields = {}); r.index + 4 < l; ) d = r.readInt(2), u = r.readInt(2),
|
|
1691
|
+
var d, u, h, l = r.index + this.extraFieldsLength;
|
|
1692
|
+
for (this.extraFields || (this.extraFields = {}); r.index + 4 < l; ) d = r.readInt(2), u = r.readInt(2), h = r.readData(u), this.extraFields[d] = { id: d, length: u, value: h };
|
|
1693
1693
|
r.setIndex(l);
|
|
1694
1694
|
}, handleUTF8: function() {
|
|
1695
1695
|
var r = g.uint8array ? "uint8array" : "array";
|
|
@@ -1701,8 +1701,8 @@ function Nr() {
|
|
|
1701
1701
|
var u = o.transformTo(r, this.fileName);
|
|
1702
1702
|
this.fileNameStr = this.loadOptions.decodeFileName(u);
|
|
1703
1703
|
}
|
|
1704
|
-
var
|
|
1705
|
-
if (
|
|
1704
|
+
var h = this.findExtraFieldUnicodeComment();
|
|
1705
|
+
if (h !== null) this.fileCommentStr = h;
|
|
1706
1706
|
else {
|
|
1707
1707
|
var l = o.transformTo(r, this.fileComment);
|
|
1708
1708
|
this.fileCommentStr = this.loadOptions.decodeFileName(l);
|
|
@@ -1711,78 +1711,78 @@ function Nr() {
|
|
|
1711
1711
|
}, findExtraFieldUnicodePath: function() {
|
|
1712
1712
|
var r = this.extraFields[28789];
|
|
1713
1713
|
if (r) {
|
|
1714
|
-
var d =
|
|
1715
|
-
return d.readInt(1) !== 1 ||
|
|
1714
|
+
var d = s(r.value);
|
|
1715
|
+
return d.readInt(1) !== 1 || a(this.fileName) !== d.readInt(4) ? null : c.utf8decode(d.readData(r.length - 5));
|
|
1716
1716
|
}
|
|
1717
1717
|
return null;
|
|
1718
1718
|
}, findExtraFieldUnicodeComment: function() {
|
|
1719
1719
|
var r = this.extraFields[25461];
|
|
1720
1720
|
if (r) {
|
|
1721
|
-
var d =
|
|
1722
|
-
return d.readInt(1) !== 1 ||
|
|
1721
|
+
var d = s(r.value);
|
|
1722
|
+
return d.readInt(1) !== 1 || a(this.fileComment) !== d.readInt(4) ? null : c.utf8decode(d.readData(r.length - 5));
|
|
1723
1723
|
}
|
|
1724
1724
|
return null;
|
|
1725
|
-
} }, w.exports =
|
|
1726
|
-
}, { "./compressedObject": 2, "./compressions": 3, "./crc32": 4, "./reader/readerFor": 22, "./support": 30, "./utf8": 31, "./utils": 32 }], 35: [function(e, w,
|
|
1727
|
-
function
|
|
1728
|
-
this.name = d, this.dir =
|
|
1729
|
-
}
|
|
1730
|
-
var o = e("./stream/StreamHelper"), n = e("./stream/DataWorker"),
|
|
1731
|
-
|
|
1732
|
-
var u = null,
|
|
1725
|
+
} }, w.exports = m;
|
|
1726
|
+
}, { "./compressedObject": 2, "./compressions": 3, "./crc32": 4, "./reader/readerFor": 22, "./support": 30, "./utf8": 31, "./utils": 32 }], 35: [function(e, w, y) {
|
|
1727
|
+
function s(d, u, h) {
|
|
1728
|
+
this.name = d, this.dir = h.dir, this.date = h.date, this.comment = h.comment, this.unixPermissions = h.unixPermissions, this.dosPermissions = h.dosPermissions, this._data = u, this._dataBinary = h.binary, this.options = { compression: h.compression, compressionOptions: h.compressionOptions };
|
|
1729
|
+
}
|
|
1730
|
+
var o = e("./stream/StreamHelper"), n = e("./stream/DataWorker"), a = e("./utf8"), c = e("./compressedObject"), f = e("./stream/GenericWorker");
|
|
1731
|
+
s.prototype = { internalStream: function(d) {
|
|
1732
|
+
var u = null, h = "string";
|
|
1733
1733
|
try {
|
|
1734
1734
|
if (!d) throw new Error("No output type specified.");
|
|
1735
|
-
var l = (
|
|
1736
|
-
|
|
1735
|
+
var l = (h = d.toLowerCase()) === "string" || h === "text";
|
|
1736
|
+
h !== "binarystring" && h !== "text" || (h = "string"), u = this._decompressWorker();
|
|
1737
1737
|
var v = !this._dataBinary;
|
|
1738
|
-
v && !l && (u = u.pipe(new
|
|
1738
|
+
v && !l && (u = u.pipe(new a.Utf8EncodeWorker())), !v && l && (u = u.pipe(new a.Utf8DecodeWorker()));
|
|
1739
1739
|
} catch (A) {
|
|
1740
|
-
(u = new
|
|
1740
|
+
(u = new f("error")).error(A);
|
|
1741
1741
|
}
|
|
1742
|
-
return new o(u,
|
|
1742
|
+
return new o(u, h, "");
|
|
1743
1743
|
}, async: function(d, u) {
|
|
1744
1744
|
return this.internalStream(d).accumulate(u);
|
|
1745
1745
|
}, nodeStream: function(d, u) {
|
|
1746
1746
|
return this.internalStream(d || "nodebuffer").toNodejsStream(u);
|
|
1747
1747
|
}, _compressWorker: function(d, u) {
|
|
1748
1748
|
if (this._data instanceof c && this._data.compression.magic === d.magic) return this._data.getCompressedWorker();
|
|
1749
|
-
var
|
|
1750
|
-
return this._dataBinary || (
|
|
1749
|
+
var h = this._decompressWorker();
|
|
1750
|
+
return this._dataBinary || (h = h.pipe(new a.Utf8EncodeWorker())), c.createWorkerFrom(h, d, u);
|
|
1751
1751
|
}, _decompressWorker: function() {
|
|
1752
|
-
return this._data instanceof c ? this._data.getContentWorker() : this._data instanceof
|
|
1752
|
+
return this._data instanceof c ? this._data.getContentWorker() : this._data instanceof f ? this._data : new n(this._data);
|
|
1753
1753
|
} };
|
|
1754
|
-
for (var g = ["asText", "asBinary", "asNodeBuffer", "asUint8Array", "asArrayBuffer"],
|
|
1754
|
+
for (var g = ["asText", "asBinary", "asNodeBuffer", "asUint8Array", "asArrayBuffer"], m = function() {
|
|
1755
1755
|
throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.");
|
|
1756
|
-
}, r = 0; r < g.length; r++)
|
|
1757
|
-
w.exports =
|
|
1758
|
-
}, { "./compressedObject": 2, "./stream/DataWorker": 27, "./stream/GenericWorker": 28, "./stream/StreamHelper": 29, "./utf8": 31 }], 36: [function(e, w,
|
|
1759
|
-
(function(
|
|
1760
|
-
var o, n,
|
|
1761
|
-
if (
|
|
1762
|
-
var c = 0,
|
|
1763
|
-
|
|
1756
|
+
}, r = 0; r < g.length; r++) s.prototype[g[r]] = m;
|
|
1757
|
+
w.exports = s;
|
|
1758
|
+
}, { "./compressedObject": 2, "./stream/DataWorker": 27, "./stream/GenericWorker": 28, "./stream/StreamHelper": 29, "./utf8": 31 }], 36: [function(e, w, y) {
|
|
1759
|
+
(function(s) {
|
|
1760
|
+
var o, n, a = s.MutationObserver || s.WebKitMutationObserver;
|
|
1761
|
+
if (a) {
|
|
1762
|
+
var c = 0, f = new a(d), g = s.document.createTextNode("");
|
|
1763
|
+
f.observe(g, { characterData: !0 }), o = function() {
|
|
1764
1764
|
g.data = c = ++c % 2;
|
|
1765
1765
|
};
|
|
1766
|
-
} else if (
|
|
1767
|
-
var u =
|
|
1766
|
+
} else if (s.setImmediate || s.MessageChannel === void 0) o = "document" in s && "onreadystatechange" in s.document.createElement("script") ? function() {
|
|
1767
|
+
var u = s.document.createElement("script");
|
|
1768
1768
|
u.onreadystatechange = function() {
|
|
1769
1769
|
d(), u.onreadystatechange = null, u.parentNode.removeChild(u), u = null;
|
|
1770
|
-
},
|
|
1770
|
+
}, s.document.documentElement.appendChild(u);
|
|
1771
1771
|
} : function() {
|
|
1772
1772
|
setTimeout(d, 0);
|
|
1773
1773
|
};
|
|
1774
1774
|
else {
|
|
1775
|
-
var
|
|
1776
|
-
|
|
1777
|
-
|
|
1775
|
+
var m = new s.MessageChannel();
|
|
1776
|
+
m.port1.onmessage = d, o = function() {
|
|
1777
|
+
m.port2.postMessage(0);
|
|
1778
1778
|
};
|
|
1779
1779
|
}
|
|
1780
1780
|
var r = [];
|
|
1781
1781
|
function d() {
|
|
1782
|
-
var u,
|
|
1782
|
+
var u, h;
|
|
1783
1783
|
n = !0;
|
|
1784
1784
|
for (var l = r.length; l; ) {
|
|
1785
|
-
for (
|
|
1785
|
+
for (h = r, r = [], u = -1; ++u < l; ) h[u]();
|
|
1786
1786
|
l = r.length;
|
|
1787
1787
|
}
|
|
1788
1788
|
n = !1;
|
|
@@ -1791,20 +1791,20 @@ function Nr() {
|
|
|
1791
1791
|
r.push(u) !== 1 || n || o();
|
|
1792
1792
|
};
|
|
1793
1793
|
}).call(this, typeof kt < "u" ? kt : typeof self < "u" ? self : typeof window < "u" ? window : {});
|
|
1794
|
-
}, {}], 37: [function(e, w,
|
|
1795
|
-
var
|
|
1794
|
+
}, {}], 37: [function(e, w, y) {
|
|
1795
|
+
var s = e("immediate");
|
|
1796
1796
|
function o() {
|
|
1797
1797
|
}
|
|
1798
|
-
var n = {},
|
|
1798
|
+
var n = {}, a = ["REJECTED"], c = ["FULFILLED"], f = ["PENDING"];
|
|
1799
1799
|
function g(l) {
|
|
1800
1800
|
if (typeof l != "function") throw new TypeError("resolver must be a function");
|
|
1801
|
-
this.state =
|
|
1801
|
+
this.state = f, this.queue = [], this.outcome = void 0, l !== o && u(this, l);
|
|
1802
1802
|
}
|
|
1803
|
-
function
|
|
1803
|
+
function m(l, v, A) {
|
|
1804
1804
|
this.promise = l, typeof v == "function" && (this.onFulfilled = v, this.callFulfilled = this.otherCallFulfilled), typeof A == "function" && (this.onRejected = A, this.callRejected = this.otherCallRejected);
|
|
1805
1805
|
}
|
|
1806
1806
|
function r(l, v, A) {
|
|
1807
|
-
|
|
1807
|
+
s(function() {
|
|
1808
1808
|
var C;
|
|
1809
1809
|
try {
|
|
1810
1810
|
C = v(A);
|
|
@@ -1828,12 +1828,12 @@ function Nr() {
|
|
|
1828
1828
|
function I(N) {
|
|
1829
1829
|
A || (A = !0, n.resolve(l, N));
|
|
1830
1830
|
}
|
|
1831
|
-
var
|
|
1831
|
+
var j = h(function() {
|
|
1832
1832
|
v(I, C);
|
|
1833
1833
|
});
|
|
1834
|
-
|
|
1834
|
+
j.status === "error" && C(j.value);
|
|
1835
1835
|
}
|
|
1836
|
-
function
|
|
1836
|
+
function h(l, v) {
|
|
1837
1837
|
var A = {};
|
|
1838
1838
|
try {
|
|
1839
1839
|
A.value = l(v), A.status = "success";
|
|
@@ -1857,29 +1857,29 @@ function Nr() {
|
|
|
1857
1857
|
}, g.prototype.catch = function(l) {
|
|
1858
1858
|
return this.then(null, l);
|
|
1859
1859
|
}, g.prototype.then = function(l, v) {
|
|
1860
|
-
if (typeof l != "function" && this.state === c || typeof v != "function" && this.state ===
|
|
1860
|
+
if (typeof l != "function" && this.state === c || typeof v != "function" && this.state === a) return this;
|
|
1861
1861
|
var A = new this.constructor(o);
|
|
1862
|
-
return this.state !==
|
|
1863
|
-
},
|
|
1862
|
+
return this.state !== f ? r(A, this.state === c ? l : v, this.outcome) : this.queue.push(new m(A, l, v)), A;
|
|
1863
|
+
}, m.prototype.callFulfilled = function(l) {
|
|
1864
1864
|
n.resolve(this.promise, l);
|
|
1865
|
-
},
|
|
1865
|
+
}, m.prototype.otherCallFulfilled = function(l) {
|
|
1866
1866
|
r(this.promise, this.onFulfilled, l);
|
|
1867
|
-
},
|
|
1867
|
+
}, m.prototype.callRejected = function(l) {
|
|
1868
1868
|
n.reject(this.promise, l);
|
|
1869
|
-
},
|
|
1869
|
+
}, m.prototype.otherCallRejected = function(l) {
|
|
1870
1870
|
r(this.promise, this.onRejected, l);
|
|
1871
1871
|
}, n.resolve = function(l, v) {
|
|
1872
|
-
var A =
|
|
1872
|
+
var A = h(d, v);
|
|
1873
1873
|
if (A.status === "error") return n.reject(l, A.value);
|
|
1874
1874
|
var C = A.value;
|
|
1875
1875
|
if (C) u(l, C);
|
|
1876
1876
|
else {
|
|
1877
1877
|
l.state = c, l.outcome = v;
|
|
1878
|
-
for (var I = -1,
|
|
1878
|
+
for (var I = -1, j = l.queue.length; ++I < j; ) l.queue[I].callFulfilled(v);
|
|
1879
1879
|
}
|
|
1880
1880
|
return l;
|
|
1881
1881
|
}, n.reject = function(l, v) {
|
|
1882
|
-
l.state =
|
|
1882
|
+
l.state = a, l.outcome = v;
|
|
1883
1883
|
for (var A = -1, C = l.queue.length; ++A < C; ) l.queue[A].callRejected(v);
|
|
1884
1884
|
return l;
|
|
1885
1885
|
}, g.resolve = function(l) {
|
|
@@ -1892,11 +1892,11 @@ function Nr() {
|
|
|
1892
1892
|
if (Object.prototype.toString.call(l) !== "[object Array]") return this.reject(new TypeError("must be an array"));
|
|
1893
1893
|
var A = l.length, C = !1;
|
|
1894
1894
|
if (!A) return this.resolve([]);
|
|
1895
|
-
for (var I = new Array(A),
|
|
1895
|
+
for (var I = new Array(A), j = 0, N = -1, U = new this(o); ++N < A; ) x(l[N], N);
|
|
1896
1896
|
return U;
|
|
1897
1897
|
function x(F, q) {
|
|
1898
1898
|
v.resolve(F).then(function(S) {
|
|
1899
|
-
I[q] = S, ++
|
|
1899
|
+
I[q] = S, ++j !== A || C || (C = !0, n.resolve(U, I));
|
|
1900
1900
|
}, function(S) {
|
|
1901
1901
|
C || (C = !0, n.reject(U, S));
|
|
1902
1902
|
});
|
|
@@ -1906,119 +1906,119 @@ function Nr() {
|
|
|
1906
1906
|
if (Object.prototype.toString.call(l) !== "[object Array]") return this.reject(new TypeError("must be an array"));
|
|
1907
1907
|
var A = l.length, C = !1;
|
|
1908
1908
|
if (!A) return this.resolve([]);
|
|
1909
|
-
for (var I = -1,
|
|
1910
|
-
C || (C = !0, n.resolve(
|
|
1909
|
+
for (var I = -1, j = new this(o); ++I < A; ) N = l[I], v.resolve(N).then(function(U) {
|
|
1910
|
+
C || (C = !0, n.resolve(j, U));
|
|
1911
1911
|
}, function(U) {
|
|
1912
|
-
C || (C = !0, n.reject(
|
|
1912
|
+
C || (C = !0, n.reject(j, U));
|
|
1913
1913
|
});
|
|
1914
1914
|
var N;
|
|
1915
|
-
return
|
|
1915
|
+
return j;
|
|
1916
1916
|
};
|
|
1917
|
-
}, { immediate: 36 }], 38: [function(e, w,
|
|
1918
|
-
var
|
|
1919
|
-
(0, e("./lib/utils/common").assign)(
|
|
1920
|
-
}, { "./lib/deflate": 39, "./lib/inflate": 40, "./lib/utils/common": 41, "./lib/zlib/constants": 44 }], 39: [function(e, w,
|
|
1921
|
-
var
|
|
1917
|
+
}, { immediate: 36 }], 38: [function(e, w, y) {
|
|
1918
|
+
var s = {};
|
|
1919
|
+
(0, e("./lib/utils/common").assign)(s, e("./lib/deflate"), e("./lib/inflate"), e("./lib/zlib/constants")), w.exports = s;
|
|
1920
|
+
}, { "./lib/deflate": 39, "./lib/inflate": 40, "./lib/utils/common": 41, "./lib/zlib/constants": 44 }], 39: [function(e, w, y) {
|
|
1921
|
+
var s = e("./zlib/deflate"), o = e("./utils/common"), n = e("./utils/strings"), a = e("./zlib/messages"), c = e("./zlib/zstream"), f = Object.prototype.toString, g = 0, m = -1, r = 0, d = 8;
|
|
1922
1922
|
function u(l) {
|
|
1923
1923
|
if (!(this instanceof u)) return new u(l);
|
|
1924
|
-
this.options = o.assign({ level:
|
|
1924
|
+
this.options = o.assign({ level: m, method: d, chunkSize: 16384, windowBits: 15, memLevel: 8, strategy: r, to: "" }, l || {});
|
|
1925
1925
|
var v = this.options;
|
|
1926
1926
|
v.raw && 0 < v.windowBits ? v.windowBits = -v.windowBits : v.gzip && 0 < v.windowBits && v.windowBits < 16 && (v.windowBits += 16), this.err = 0, this.msg = "", this.ended = !1, this.chunks = [], this.strm = new c(), this.strm.avail_out = 0;
|
|
1927
|
-
var A =
|
|
1928
|
-
if (A !== g) throw new Error(
|
|
1929
|
-
if (v.header &&
|
|
1927
|
+
var A = s.deflateInit2(this.strm, v.level, v.method, v.windowBits, v.memLevel, v.strategy);
|
|
1928
|
+
if (A !== g) throw new Error(a[A]);
|
|
1929
|
+
if (v.header && s.deflateSetHeader(this.strm, v.header), v.dictionary) {
|
|
1930
1930
|
var C;
|
|
1931
|
-
if (C = typeof v.dictionary == "string" ? n.string2buf(v.dictionary) :
|
|
1931
|
+
if (C = typeof v.dictionary == "string" ? n.string2buf(v.dictionary) : f.call(v.dictionary) === "[object ArrayBuffer]" ? new Uint8Array(v.dictionary) : v.dictionary, (A = s.deflateSetDictionary(this.strm, C)) !== g) throw new Error(a[A]);
|
|
1932
1932
|
this._dict_set = !0;
|
|
1933
1933
|
}
|
|
1934
1934
|
}
|
|
1935
|
-
function
|
|
1935
|
+
function h(l, v) {
|
|
1936
1936
|
var A = new u(v);
|
|
1937
|
-
if (A.push(l, !0), A.err) throw A.msg ||
|
|
1937
|
+
if (A.push(l, !0), A.err) throw A.msg || a[A.err];
|
|
1938
1938
|
return A.result;
|
|
1939
1939
|
}
|
|
1940
1940
|
u.prototype.push = function(l, v) {
|
|
1941
|
-
var A, C, I = this.strm,
|
|
1941
|
+
var A, C, I = this.strm, j = this.options.chunkSize;
|
|
1942
1942
|
if (this.ended) return !1;
|
|
1943
|
-
C = v === ~~v ? v : v === !0 ? 4 : 0, typeof l == "string" ? I.input = n.string2buf(l) :
|
|
1943
|
+
C = v === ~~v ? v : v === !0 ? 4 : 0, typeof l == "string" ? I.input = n.string2buf(l) : f.call(l) === "[object ArrayBuffer]" ? I.input = new Uint8Array(l) : I.input = l, I.next_in = 0, I.avail_in = I.input.length;
|
|
1944
1944
|
do {
|
|
1945
|
-
if (I.avail_out === 0 && (I.output = new o.Buf8(
|
|
1945
|
+
if (I.avail_out === 0 && (I.output = new o.Buf8(j), I.next_out = 0, I.avail_out = j), (A = s.deflate(I, C)) !== 1 && A !== g) return this.onEnd(A), !(this.ended = !0);
|
|
1946
1946
|
I.avail_out !== 0 && (I.avail_in !== 0 || C !== 4 && C !== 2) || (this.options.to === "string" ? this.onData(n.buf2binstring(o.shrinkBuf(I.output, I.next_out))) : this.onData(o.shrinkBuf(I.output, I.next_out)));
|
|
1947
1947
|
} while ((0 < I.avail_in || I.avail_out === 0) && A !== 1);
|
|
1948
|
-
return C === 4 ? (A =
|
|
1948
|
+
return C === 4 ? (A = s.deflateEnd(this.strm), this.onEnd(A), this.ended = !0, A === g) : C !== 2 || (this.onEnd(g), !(I.avail_out = 0));
|
|
1949
1949
|
}, u.prototype.onData = function(l) {
|
|
1950
1950
|
this.chunks.push(l);
|
|
1951
1951
|
}, u.prototype.onEnd = function(l) {
|
|
1952
1952
|
l === g && (this.options.to === "string" ? this.result = this.chunks.join("") : this.result = o.flattenChunks(this.chunks)), this.chunks = [], this.err = l, this.msg = this.strm.msg;
|
|
1953
|
-
},
|
|
1954
|
-
return (v = v || {}).raw = !0,
|
|
1955
|
-
},
|
|
1956
|
-
return (v = v || {}).gzip = !0,
|
|
1953
|
+
}, y.Deflate = u, y.deflate = h, y.deflateRaw = function(l, v) {
|
|
1954
|
+
return (v = v || {}).raw = !0, h(l, v);
|
|
1955
|
+
}, y.gzip = function(l, v) {
|
|
1956
|
+
return (v = v || {}).gzip = !0, h(l, v);
|
|
1957
1957
|
};
|
|
1958
|
-
}, { "./utils/common": 41, "./utils/strings": 42, "./zlib/deflate": 46, "./zlib/messages": 51, "./zlib/zstream": 53 }], 40: [function(e, w,
|
|
1959
|
-
var
|
|
1958
|
+
}, { "./utils/common": 41, "./utils/strings": 42, "./zlib/deflate": 46, "./zlib/messages": 51, "./zlib/zstream": 53 }], 40: [function(e, w, y) {
|
|
1959
|
+
var s = e("./zlib/inflate"), o = e("./utils/common"), n = e("./utils/strings"), a = e("./zlib/constants"), c = e("./zlib/messages"), f = e("./zlib/zstream"), g = e("./zlib/gzheader"), m = Object.prototype.toString;
|
|
1960
1960
|
function r(u) {
|
|
1961
1961
|
if (!(this instanceof r)) return new r(u);
|
|
1962
1962
|
this.options = o.assign({ chunkSize: 16384, windowBits: 0, to: "" }, u || {});
|
|
1963
|
-
var
|
|
1964
|
-
|
|
1965
|
-
var l =
|
|
1966
|
-
if (l !==
|
|
1967
|
-
this.header = new g(),
|
|
1968
|
-
}
|
|
1969
|
-
function d(u,
|
|
1970
|
-
var l = new r(
|
|
1963
|
+
var h = this.options;
|
|
1964
|
+
h.raw && 0 <= h.windowBits && h.windowBits < 16 && (h.windowBits = -h.windowBits, h.windowBits === 0 && (h.windowBits = -15)), !(0 <= h.windowBits && h.windowBits < 16) || u && u.windowBits || (h.windowBits += 32), 15 < h.windowBits && h.windowBits < 48 && (15 & h.windowBits) == 0 && (h.windowBits |= 15), this.err = 0, this.msg = "", this.ended = !1, this.chunks = [], this.strm = new f(), this.strm.avail_out = 0;
|
|
1965
|
+
var l = s.inflateInit2(this.strm, h.windowBits);
|
|
1966
|
+
if (l !== a.Z_OK) throw new Error(c[l]);
|
|
1967
|
+
this.header = new g(), s.inflateGetHeader(this.strm, this.header);
|
|
1968
|
+
}
|
|
1969
|
+
function d(u, h) {
|
|
1970
|
+
var l = new r(h);
|
|
1971
1971
|
if (l.push(u, !0), l.err) throw l.msg || c[l.err];
|
|
1972
1972
|
return l.result;
|
|
1973
1973
|
}
|
|
1974
|
-
r.prototype.push = function(u,
|
|
1975
|
-
var l, v, A, C, I,
|
|
1974
|
+
r.prototype.push = function(u, h) {
|
|
1975
|
+
var l, v, A, C, I, j, N = this.strm, U = this.options.chunkSize, x = this.options.dictionary, F = !1;
|
|
1976
1976
|
if (this.ended) return !1;
|
|
1977
|
-
v =
|
|
1977
|
+
v = h === ~~h ? h : h === !0 ? a.Z_FINISH : a.Z_NO_FLUSH, typeof u == "string" ? N.input = n.binstring2buf(u) : m.call(u) === "[object ArrayBuffer]" ? N.input = new Uint8Array(u) : N.input = u, N.next_in = 0, N.avail_in = N.input.length;
|
|
1978
1978
|
do {
|
|
1979
|
-
if (N.avail_out === 0 && (N.output = new o.Buf8(U), N.next_out = 0, N.avail_out = U), (l =
|
|
1980
|
-
N.next_out && (N.avail_out !== 0 && l !==
|
|
1981
|
-
} while ((0 < N.avail_in || N.avail_out === 0) && l !==
|
|
1982
|
-
return l ===
|
|
1979
|
+
if (N.avail_out === 0 && (N.output = new o.Buf8(U), N.next_out = 0, N.avail_out = U), (l = s.inflate(N, a.Z_NO_FLUSH)) === a.Z_NEED_DICT && x && (j = typeof x == "string" ? n.string2buf(x) : m.call(x) === "[object ArrayBuffer]" ? new Uint8Array(x) : x, l = s.inflateSetDictionary(this.strm, j)), l === a.Z_BUF_ERROR && F === !0 && (l = a.Z_OK, F = !1), l !== a.Z_STREAM_END && l !== a.Z_OK) return this.onEnd(l), !(this.ended = !0);
|
|
1980
|
+
N.next_out && (N.avail_out !== 0 && l !== a.Z_STREAM_END && (N.avail_in !== 0 || v !== a.Z_FINISH && v !== a.Z_SYNC_FLUSH) || (this.options.to === "string" ? (A = n.utf8border(N.output, N.next_out), C = N.next_out - A, I = n.buf2string(N.output, A), N.next_out = C, N.avail_out = U - C, C && o.arraySet(N.output, N.output, A, C, 0), this.onData(I)) : this.onData(o.shrinkBuf(N.output, N.next_out)))), N.avail_in === 0 && N.avail_out === 0 && (F = !0);
|
|
1981
|
+
} while ((0 < N.avail_in || N.avail_out === 0) && l !== a.Z_STREAM_END);
|
|
1982
|
+
return l === a.Z_STREAM_END && (v = a.Z_FINISH), v === a.Z_FINISH ? (l = s.inflateEnd(this.strm), this.onEnd(l), this.ended = !0, l === a.Z_OK) : v !== a.Z_SYNC_FLUSH || (this.onEnd(a.Z_OK), !(N.avail_out = 0));
|
|
1983
1983
|
}, r.prototype.onData = function(u) {
|
|
1984
1984
|
this.chunks.push(u);
|
|
1985
1985
|
}, r.prototype.onEnd = function(u) {
|
|
1986
|
-
u ===
|
|
1987
|
-
},
|
|
1988
|
-
return (
|
|
1989
|
-
},
|
|
1990
|
-
}, { "./utils/common": 41, "./utils/strings": 42, "./zlib/constants": 44, "./zlib/gzheader": 47, "./zlib/inflate": 49, "./zlib/messages": 51, "./zlib/zstream": 53 }], 41: [function(e, w,
|
|
1991
|
-
var
|
|
1992
|
-
|
|
1986
|
+
u === a.Z_OK && (this.options.to === "string" ? this.result = this.chunks.join("") : this.result = o.flattenChunks(this.chunks)), this.chunks = [], this.err = u, this.msg = this.strm.msg;
|
|
1987
|
+
}, y.Inflate = r, y.inflate = d, y.inflateRaw = function(u, h) {
|
|
1988
|
+
return (h = h || {}).raw = !0, d(u, h);
|
|
1989
|
+
}, y.ungzip = d;
|
|
1990
|
+
}, { "./utils/common": 41, "./utils/strings": 42, "./zlib/constants": 44, "./zlib/gzheader": 47, "./zlib/inflate": 49, "./zlib/messages": 51, "./zlib/zstream": 53 }], 41: [function(e, w, y) {
|
|
1991
|
+
var s = typeof Uint8Array < "u" && typeof Uint16Array < "u" && typeof Int32Array < "u";
|
|
1992
|
+
y.assign = function(a) {
|
|
1993
1993
|
for (var c = Array.prototype.slice.call(arguments, 1); c.length; ) {
|
|
1994
|
-
var
|
|
1995
|
-
if (
|
|
1996
|
-
if (typeof
|
|
1997
|
-
for (var g in
|
|
1994
|
+
var f = c.shift();
|
|
1995
|
+
if (f) {
|
|
1996
|
+
if (typeof f != "object") throw new TypeError(f + "must be non-object");
|
|
1997
|
+
for (var g in f) f.hasOwnProperty(g) && (a[g] = f[g]);
|
|
1998
1998
|
}
|
|
1999
1999
|
}
|
|
2000
|
-
return
|
|
2001
|
-
},
|
|
2002
|
-
return
|
|
2000
|
+
return a;
|
|
2001
|
+
}, y.shrinkBuf = function(a, c) {
|
|
2002
|
+
return a.length === c ? a : a.subarray ? a.subarray(0, c) : (a.length = c, a);
|
|
2003
2003
|
};
|
|
2004
|
-
var o = { arraySet: function(
|
|
2005
|
-
if (c.subarray &&
|
|
2006
|
-
else for (var r = 0; r < g; r++)
|
|
2007
|
-
}, flattenChunks: function(
|
|
2008
|
-
var c,
|
|
2009
|
-
for (c = g = 0,
|
|
2010
|
-
for (d = new Uint8Array(g), c =
|
|
2004
|
+
var o = { arraySet: function(a, c, f, g, m) {
|
|
2005
|
+
if (c.subarray && a.subarray) a.set(c.subarray(f, f + g), m);
|
|
2006
|
+
else for (var r = 0; r < g; r++) a[m + r] = c[f + r];
|
|
2007
|
+
}, flattenChunks: function(a) {
|
|
2008
|
+
var c, f, g, m, r, d;
|
|
2009
|
+
for (c = g = 0, f = a.length; c < f; c++) g += a[c].length;
|
|
2010
|
+
for (d = new Uint8Array(g), c = m = 0, f = a.length; c < f; c++) r = a[c], d.set(r, m), m += r.length;
|
|
2011
2011
|
return d;
|
|
2012
|
-
} }, n = { arraySet: function(
|
|
2013
|
-
for (var r = 0; r < g; r++)
|
|
2014
|
-
}, flattenChunks: function(
|
|
2015
|
-
return [].concat.apply([],
|
|
2012
|
+
} }, n = { arraySet: function(a, c, f, g, m) {
|
|
2013
|
+
for (var r = 0; r < g; r++) a[m + r] = c[f + r];
|
|
2014
|
+
}, flattenChunks: function(a) {
|
|
2015
|
+
return [].concat.apply([], a);
|
|
2016
2016
|
} };
|
|
2017
|
-
|
|
2018
|
-
|
|
2019
|
-
},
|
|
2020
|
-
}, {}], 42: [function(e, w,
|
|
2021
|
-
var
|
|
2017
|
+
y.setTyped = function(a) {
|
|
2018
|
+
a ? (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, n));
|
|
2019
|
+
}, y.setTyped(s);
|
|
2020
|
+
}, {}], 42: [function(e, w, y) {
|
|
2021
|
+
var s = e("./common"), o = !0, n = !0;
|
|
2022
2022
|
try {
|
|
2023
2023
|
String.fromCharCode.apply(null, [0]);
|
|
2024
2024
|
} catch {
|
|
@@ -2029,65 +2029,65 @@ function Nr() {
|
|
|
2029
2029
|
} catch {
|
|
2030
2030
|
n = !1;
|
|
2031
2031
|
}
|
|
2032
|
-
for (var
|
|
2033
|
-
function
|
|
2034
|
-
if (
|
|
2035
|
-
for (var r = "", d = 0; d <
|
|
2032
|
+
for (var a = new s.Buf8(256), c = 0; c < 256; c++) a[c] = 252 <= c ? 6 : 248 <= c ? 5 : 240 <= c ? 4 : 224 <= c ? 3 : 192 <= c ? 2 : 1;
|
|
2033
|
+
function f(g, m) {
|
|
2034
|
+
if (m < 65537 && (g.subarray && n || !g.subarray && o)) return String.fromCharCode.apply(null, s.shrinkBuf(g, m));
|
|
2035
|
+
for (var r = "", d = 0; d < m; d++) r += String.fromCharCode(g[d]);
|
|
2036
2036
|
return r;
|
|
2037
2037
|
}
|
|
2038
|
-
|
|
2039
|
-
var
|
|
2038
|
+
a[254] = a[254] = 1, y.string2buf = function(g) {
|
|
2039
|
+
var m, r, d, u, h, l = g.length, v = 0;
|
|
2040
2040
|
for (u = 0; u < l; u++) (64512 & (r = g.charCodeAt(u))) == 55296 && u + 1 < l && (64512 & (d = g.charCodeAt(u + 1))) == 56320 && (r = 65536 + (r - 55296 << 10) + (d - 56320), u++), v += r < 128 ? 1 : r < 2048 ? 2 : r < 65536 ? 3 : 4;
|
|
2041
|
-
for (
|
|
2042
|
-
return
|
|
2043
|
-
},
|
|
2044
|
-
return
|
|
2045
|
-
},
|
|
2046
|
-
for (var
|
|
2047
|
-
return
|
|
2048
|
-
},
|
|
2049
|
-
var r, d, u,
|
|
2041
|
+
for (m = new s.Buf8(v), u = h = 0; h < v; u++) (64512 & (r = g.charCodeAt(u))) == 55296 && u + 1 < l && (64512 & (d = g.charCodeAt(u + 1))) == 56320 && (r = 65536 + (r - 55296 << 10) + (d - 56320), u++), r < 128 ? m[h++] = r : (r < 2048 ? m[h++] = 192 | r >>> 6 : (r < 65536 ? m[h++] = 224 | r >>> 12 : (m[h++] = 240 | r >>> 18, m[h++] = 128 | r >>> 12 & 63), m[h++] = 128 | r >>> 6 & 63), m[h++] = 128 | 63 & r);
|
|
2042
|
+
return m;
|
|
2043
|
+
}, y.buf2binstring = function(g) {
|
|
2044
|
+
return f(g, g.length);
|
|
2045
|
+
}, y.binstring2buf = function(g) {
|
|
2046
|
+
for (var m = new s.Buf8(g.length), r = 0, d = m.length; r < d; r++) m[r] = g.charCodeAt(r);
|
|
2047
|
+
return m;
|
|
2048
|
+
}, y.buf2string = function(g, m) {
|
|
2049
|
+
var r, d, u, h, l = m || g.length, v = new Array(2 * l);
|
|
2050
2050
|
for (r = d = 0; r < l; ) if ((u = g[r++]) < 128) v[d++] = u;
|
|
2051
|
-
else if (4 < (
|
|
2051
|
+
else if (4 < (h = a[u])) v[d++] = 65533, r += h - 1;
|
|
2052
2052
|
else {
|
|
2053
|
-
for (u &=
|
|
2054
|
-
1 <
|
|
2053
|
+
for (u &= h === 2 ? 31 : h === 3 ? 15 : 7; 1 < h && r < l; ) u = u << 6 | 63 & g[r++], h--;
|
|
2054
|
+
1 < h ? v[d++] = 65533 : u < 65536 ? v[d++] = u : (u -= 65536, v[d++] = 55296 | u >> 10 & 1023, v[d++] = 56320 | 1023 & u);
|
|
2055
2055
|
}
|
|
2056
|
-
return
|
|
2057
|
-
},
|
|
2056
|
+
return f(v, d);
|
|
2057
|
+
}, y.utf8border = function(g, m) {
|
|
2058
2058
|
var r;
|
|
2059
|
-
for ((
|
|
2060
|
-
return r < 0 || r === 0 ?
|
|
2059
|
+
for ((m = m || g.length) > g.length && (m = g.length), r = m - 1; 0 <= r && (192 & g[r]) == 128; ) r--;
|
|
2060
|
+
return r < 0 || r === 0 ? m : r + a[g[r]] > m ? r : m;
|
|
2061
2061
|
};
|
|
2062
|
-
}, { "./common": 41 }], 43: [function(e, w,
|
|
2063
|
-
w.exports = function(
|
|
2064
|
-
for (var c = 65535 &
|
|
2065
|
-
for (n -= g = 2e3 < n ? 2e3 : n;
|
|
2066
|
-
c %= 65521,
|
|
2062
|
+
}, { "./common": 41 }], 43: [function(e, w, y) {
|
|
2063
|
+
w.exports = function(s, o, n, a) {
|
|
2064
|
+
for (var c = 65535 & s | 0, f = s >>> 16 & 65535 | 0, g = 0; n !== 0; ) {
|
|
2065
|
+
for (n -= g = 2e3 < n ? 2e3 : n; f = f + (c = c + o[a++] | 0) | 0, --g; ) ;
|
|
2066
|
+
c %= 65521, f %= 65521;
|
|
2067
2067
|
}
|
|
2068
|
-
return c |
|
|
2068
|
+
return c | f << 16 | 0;
|
|
2069
2069
|
};
|
|
2070
|
-
}, {}], 44: [function(e, w,
|
|
2070
|
+
}, {}], 44: [function(e, w, y) {
|
|
2071
2071
|
w.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 };
|
|
2072
|
-
}, {}], 45: [function(e, w,
|
|
2073
|
-
var
|
|
2074
|
-
for (var o, n = [],
|
|
2075
|
-
o =
|
|
2072
|
+
}, {}], 45: [function(e, w, y) {
|
|
2073
|
+
var s = function() {
|
|
2074
|
+
for (var o, n = [], a = 0; a < 256; a++) {
|
|
2075
|
+
o = a;
|
|
2076
2076
|
for (var c = 0; c < 8; c++) o = 1 & o ? 3988292384 ^ o >>> 1 : o >>> 1;
|
|
2077
|
-
n[
|
|
2077
|
+
n[a] = o;
|
|
2078
2078
|
}
|
|
2079
2079
|
return n;
|
|
2080
2080
|
}();
|
|
2081
|
-
w.exports = function(o, n,
|
|
2082
|
-
var
|
|
2081
|
+
w.exports = function(o, n, a, c) {
|
|
2082
|
+
var f = s, g = c + a;
|
|
2083
2083
|
o ^= -1;
|
|
2084
|
-
for (var
|
|
2084
|
+
for (var m = c; m < g; m++) o = o >>> 8 ^ f[255 & (o ^ n[m])];
|
|
2085
2085
|
return -1 ^ o;
|
|
2086
2086
|
};
|
|
2087
|
-
}, {}], 46: [function(e, w,
|
|
2088
|
-
var
|
|
2087
|
+
}, {}], 46: [function(e, w, y) {
|
|
2088
|
+
var s, o = e("../utils/common"), n = e("./trees"), a = e("./adler32"), c = e("./crc32"), f = e("./messages"), g = 0, m = 4, r = 0, d = -2, u = -1, h = 4, l = 2, v = 8, A = 9, C = 286, I = 30, j = 19, N = 2 * C + 1, U = 15, x = 3, F = 258, q = F + x + 1, S = 42, P = 113, i = 1, L = 2, $ = 3, Z = 4;
|
|
2089
2089
|
function it(t, R) {
|
|
2090
|
-
return t.msg =
|
|
2090
|
+
return t.msg = f[R], R;
|
|
2091
2091
|
}
|
|
2092
2092
|
function G(t) {
|
|
2093
2093
|
return (t << 1) - (4 < t ? 9 : 0);
|
|
@@ -2109,24 +2109,24 @@ function Nr() {
|
|
|
2109
2109
|
t.pending_buf[t.pending++] = R >>> 8 & 255, t.pending_buf[t.pending++] = 255 & R;
|
|
2110
2110
|
}
|
|
2111
2111
|
function H(t, R) {
|
|
2112
|
-
var O, k, _ = t.max_chain_length, D = t.strstart, W = t.prev_length, J = t.nice_match,
|
|
2112
|
+
var O, k, _ = t.max_chain_length, D = t.strstart, W = t.prev_length, J = t.nice_match, T = t.strstart > t.w_size - q ? t.strstart - (t.w_size - q) : 0, V = t.window, nt = t.w_mask, Q = t.prev, ot = t.strstart + F, ht = V[D + W - 1], ct = V[D + W];
|
|
2113
2113
|
t.prev_length >= t.good_match && (_ >>= 2), J > t.lookahead && (J = t.lookahead);
|
|
2114
2114
|
do
|
|
2115
|
-
if (V[(O = R) + W] === ct && V[O + W - 1] ===
|
|
2115
|
+
if (V[(O = R) + W] === ct && V[O + W - 1] === ht && V[O] === V[D] && V[++O] === V[D + 1]) {
|
|
2116
2116
|
D += 2, O++;
|
|
2117
2117
|
do
|
|
2118
2118
|
;
|
|
2119
2119
|
while (V[++D] === V[++O] && V[++D] === V[++O] && V[++D] === V[++O] && V[++D] === V[++O] && V[++D] === V[++O] && V[++D] === V[++O] && V[++D] === V[++O] && V[++D] === V[++O] && D < ot);
|
|
2120
2120
|
if (k = F - (ot - D), D = ot - F, W < k) {
|
|
2121
2121
|
if (t.match_start = R, J <= (W = k)) break;
|
|
2122
|
-
|
|
2122
|
+
ht = V[D + W - 1], ct = V[D + W];
|
|
2123
2123
|
}
|
|
2124
2124
|
}
|
|
2125
|
-
while ((R = Q[R & nt]) >
|
|
2125
|
+
while ((R = Q[R & nt]) > T && --_ != 0);
|
|
2126
2126
|
return W <= t.lookahead ? W : t.lookahead;
|
|
2127
2127
|
}
|
|
2128
2128
|
function ut(t) {
|
|
2129
|
-
var R, O, k, _, D, W, J,
|
|
2129
|
+
var R, O, k, _, D, W, J, T, V, nt, Q = t.w_size;
|
|
2130
2130
|
do {
|
|
2131
2131
|
if (_ = t.window_size - t.lookahead - t.strstart, t.strstart >= Q + (Q - q)) {
|
|
2132
2132
|
for (o.arraySet(t.window, t.window, Q, Q, 0), t.match_start -= Q, t.strstart -= Q, t.block_start -= Q, R = O = t.hash_size; k = t.head[--R], t.head[R] = Q <= k ? k - Q : 0, --O; ) ;
|
|
@@ -2134,7 +2134,7 @@ function Nr() {
|
|
|
2134
2134
|
_ += Q;
|
|
2135
2135
|
}
|
|
2136
2136
|
if (t.strm.avail_in === 0) break;
|
|
2137
|
-
if (W = t.strm, J = t.window,
|
|
2137
|
+
if (W = t.strm, J = t.window, T = t.strstart + t.lookahead, V = _, nt = void 0, nt = W.avail_in, V < nt && (nt = V), O = nt === 0 ? 0 : (W.avail_in -= nt, o.arraySet(J, W.input, W.next_in, nt, T), W.state.wrap === 1 ? W.adler = a(W.adler, J, nt, T) : W.state.wrap === 2 && (W.adler = c(W.adler, J, nt, T)), W.next_in += nt, W.total_in += nt, nt), t.lookahead += O, t.lookahead + t.insert >= x) for (D = t.strstart - t.insert, t.ins_h = t.window[D], t.ins_h = (t.ins_h << t.hash_shift ^ t.window[D + 1]) & t.hash_mask; t.insert && (t.ins_h = (t.ins_h << t.hash_shift ^ t.window[D + x - 1]) & t.hash_mask, t.prev[D & t.w_mask] = t.head[t.ins_h], t.head[t.ins_h] = D, D++, t.insert--, !(t.lookahead + t.insert < x)); ) ;
|
|
2138
2138
|
} while (t.lookahead < q && t.strm.avail_in !== 0);
|
|
2139
2139
|
}
|
|
2140
2140
|
function lt(t, R) {
|
|
@@ -2150,7 +2150,7 @@ function Nr() {
|
|
|
2150
2150
|
else k = n._tr_tally(t, 0, t.window[t.strstart]), t.lookahead--, t.strstart++;
|
|
2151
2151
|
if (k && (E(t, !1), t.strm.avail_out === 0)) return i;
|
|
2152
2152
|
}
|
|
2153
|
-
return t.insert = t.strstart < x - 1 ? t.strstart : x - 1, R ===
|
|
2153
|
+
return t.insert = t.strstart < x - 1 ? t.strstart : x - 1, R === m ? (E(t, !0), t.strm.avail_out === 0 ? $ : Z) : t.last_lit && (E(t, !1), t.strm.avail_out === 0) ? i : L;
|
|
2154
2154
|
}
|
|
2155
2155
|
function z(t, R) {
|
|
2156
2156
|
for (var O, k, _; ; ) {
|
|
@@ -2165,33 +2165,33 @@ function Nr() {
|
|
|
2165
2165
|
if ((k = n._tr_tally(t, 0, t.window[t.strstart - 1])) && E(t, !1), t.strstart++, t.lookahead--, t.strm.avail_out === 0) return i;
|
|
2166
2166
|
} else t.match_available = 1, t.strstart++, t.lookahead--;
|
|
2167
2167
|
}
|
|
2168
|
-
return t.match_available && (k = n._tr_tally(t, 0, t.window[t.strstart - 1]), t.match_available = 0), t.insert = t.strstart < x - 1 ? t.strstart : x - 1, R ===
|
|
2168
|
+
return t.match_available && (k = n._tr_tally(t, 0, t.window[t.strstart - 1]), t.match_available = 0), t.insert = t.strstart < x - 1 ? t.strstart : x - 1, R === m ? (E(t, !0), t.strm.avail_out === 0 ? $ : Z) : t.last_lit && (E(t, !1), t.strm.avail_out === 0) ? i : L;
|
|
2169
2169
|
}
|
|
2170
|
-
function
|
|
2170
|
+
function M(t, R, O, k, _) {
|
|
2171
2171
|
this.good_length = t, this.max_lazy = R, this.nice_length = O, this.max_chain = k, this.func = _;
|
|
2172
2172
|
}
|
|
2173
2173
|
function Y() {
|
|
2174
|
-
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 = v, 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 * N), this.dyn_dtree = new o.Buf16(2 * (2 * I + 1)), this.bl_tree = new o.Buf16(2 * (2 *
|
|
2174
|
+
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 = v, 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 * N), this.dyn_dtree = new o.Buf16(2 * (2 * I + 1)), this.bl_tree = new o.Buf16(2 * (2 * j + 1)), st(this.dyn_ltree), st(this.dyn_dtree), st(this.bl_tree), this.l_desc = null, this.d_desc = null, this.bl_desc = null, this.bl_count = new o.Buf16(U + 1), this.heap = new o.Buf16(2 * C + 1), st(this.heap), this.heap_len = 0, this.heap_max = 0, this.depth = new o.Buf16(2 * C + 1), st(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;
|
|
2175
2175
|
}
|
|
2176
2176
|
function K(t) {
|
|
2177
2177
|
var R;
|
|
2178
|
-
return t && t.state ? (t.total_in = t.total_out = 0, t.data_type = l, (R = t.state).pending = 0, R.pending_out = 0, R.wrap < 0 && (R.wrap = -R.wrap), R.status = R.wrap ? S :
|
|
2178
|
+
return t && t.state ? (t.total_in = t.total_out = 0, t.data_type = l, (R = t.state).pending = 0, R.pending_out = 0, R.wrap < 0 && (R.wrap = -R.wrap), R.status = R.wrap ? S : P, t.adler = R.wrap === 2 ? 0 : 1, R.last_flush = g, n._tr_init(R), r) : it(t, d);
|
|
2179
2179
|
}
|
|
2180
2180
|
function X(t) {
|
|
2181
2181
|
var R = K(t);
|
|
2182
2182
|
return R === r && function(O) {
|
|
2183
|
-
O.window_size = 2 * O.w_size, st(O.head), O.max_lazy_match =
|
|
2183
|
+
O.window_size = 2 * O.w_size, st(O.head), O.max_lazy_match = s[O.level].max_lazy, O.good_match = s[O.level].good_length, O.nice_match = s[O.level].nice_length, O.max_chain_length = s[O.level].max_chain, O.strstart = 0, O.block_start = 0, O.lookahead = 0, O.insert = 0, O.match_length = O.prev_length = x - 1, O.match_available = 0, O.ins_h = 0;
|
|
2184
2184
|
}(t.state), R;
|
|
2185
2185
|
}
|
|
2186
2186
|
function at(t, R, O, k, _, D) {
|
|
2187
2187
|
if (!t) return d;
|
|
2188
2188
|
var W = 1;
|
|
2189
|
-
if (R === u && (R = 6), k < 0 ? (W = 0, k = -k) : 15 < k && (W = 2, k -= 16), _ < 1 || A < _ || O !== v || k < 8 || 15 < k || R < 0 || 9 < R || D < 0 ||
|
|
2189
|
+
if (R === u && (R = 6), k < 0 ? (W = 0, k = -k) : 15 < k && (W = 2, k -= 16), _ < 1 || A < _ || O !== v || k < 8 || 15 < k || R < 0 || 9 < R || D < 0 || h < D) return it(t, d);
|
|
2190
2190
|
k === 8 && (k = 9);
|
|
2191
2191
|
var J = new Y();
|
|
2192
2192
|
return (t.state = J).strm = t, J.wrap = W, J.gzhead = null, J.w_bits = k, J.w_size = 1 << J.w_bits, J.w_mask = J.w_size - 1, J.hash_bits = _ + 7, J.hash_size = 1 << J.hash_bits, J.hash_mask = J.hash_size - 1, J.hash_shift = ~~((J.hash_bits + x - 1) / x), J.window = new o.Buf8(2 * J.w_size), J.head = new o.Buf16(J.hash_size), J.prev = new o.Buf16(J.w_size), J.lit_bufsize = 1 << _ + 6, J.pending_buf_size = 4 * J.lit_bufsize, J.pending_buf = new o.Buf8(J.pending_buf_size), J.d_buf = 1 * J.lit_bufsize, J.l_buf = 3 * J.lit_bufsize, J.level = R, J.strategy = D, J.method = O, X(t);
|
|
2193
2193
|
}
|
|
2194
|
-
|
|
2194
|
+
s = [new M(0, 0, 0, 0, function(t, R) {
|
|
2195
2195
|
var O = 65535;
|
|
2196
2196
|
for (O > t.pending_buf_size - 5 && (O = t.pending_buf_size - 5); ; ) {
|
|
2197
2197
|
if (t.lookahead <= 1) {
|
|
@@ -2202,19 +2202,19 @@ function Nr() {
|
|
|
2202
2202
|
var k = t.block_start + O;
|
|
2203
2203
|
if ((t.strstart === 0 || t.strstart >= k) && (t.lookahead = t.strstart - k, t.strstart = k, E(t, !1), t.strm.avail_out === 0) || t.strstart - t.block_start >= t.w_size - q && (E(t, !1), t.strm.avail_out === 0)) return i;
|
|
2204
2204
|
}
|
|
2205
|
-
return t.insert = 0, R ===
|
|
2206
|
-
}), new
|
|
2205
|
+
return t.insert = 0, R === m ? (E(t, !0), t.strm.avail_out === 0 ? $ : Z) : (t.strstart > t.block_start && (E(t, !1), t.strm.avail_out), i);
|
|
2206
|
+
}), new M(4, 4, 8, 4, lt), new M(4, 5, 16, 8, lt), new M(4, 6, 32, 32, lt), new M(4, 4, 16, 16, z), new M(8, 16, 32, 32, z), new M(8, 16, 128, 128, z), new M(8, 32, 128, 256, z), new M(32, 128, 258, 1024, z), new M(32, 258, 258, 4096, z)], y.deflateInit = function(t, R) {
|
|
2207
2207
|
return at(t, R, v, 15, 8, 0);
|
|
2208
|
-
},
|
|
2208
|
+
}, y.deflateInit2 = at, y.deflateReset = X, y.deflateResetKeep = K, y.deflateSetHeader = function(t, R) {
|
|
2209
2209
|
return t && t.state ? t.state.wrap !== 2 ? d : (t.state.gzhead = R, r) : d;
|
|
2210
|
-
},
|
|
2210
|
+
}, y.deflate = function(t, R) {
|
|
2211
2211
|
var O, k, _, D;
|
|
2212
2212
|
if (!t || !t.state || 5 < R || R < 0) return t ? it(t, d) : d;
|
|
2213
|
-
if (k = t.state, !t.output || !t.input && t.avail_in !== 0 || k.status === 666 && R !==
|
|
2214
|
-
if (k.strm = t, O = k.last_flush, k.last_flush = R, k.status === S) if (k.wrap === 2) t.adler = 0, rt(k, 31), rt(k, 139), rt(k, 8), k.gzhead ? (rt(k, (k.gzhead.text ? 1 : 0) + (k.gzhead.hcrc ? 2 : 0) + (k.gzhead.extra ? 4 : 0) + (k.gzhead.name ? 8 : 0) + (k.gzhead.comment ? 16 : 0)), rt(k, 255 & k.gzhead.time), rt(k, k.gzhead.time >> 8 & 255), rt(k, k.gzhead.time >> 16 & 255), rt(k, k.gzhead.time >> 24 & 255), rt(k, k.level === 9 ? 2 : 2 <= k.strategy || k.level < 2 ? 4 : 0), rt(k, 255 & k.gzhead.os), k.gzhead.extra && k.gzhead.extra.length && (rt(k, 255 & k.gzhead.extra.length), rt(k, k.gzhead.extra.length >> 8 & 255)), k.gzhead.hcrc && (t.adler = c(t.adler, k.pending_buf, k.pending, 0)), k.gzindex = 0, k.status = 69) : (rt(k, 0), rt(k, 0), rt(k, 0), rt(k, 0), rt(k, 0), rt(k, k.level === 9 ? 2 : 2 <= k.strategy || k.level < 2 ? 4 : 0), rt(k, 3), k.status =
|
|
2213
|
+
if (k = t.state, !t.output || !t.input && t.avail_in !== 0 || k.status === 666 && R !== m) return it(t, t.avail_out === 0 ? -5 : d);
|
|
2214
|
+
if (k.strm = t, O = k.last_flush, k.last_flush = R, k.status === S) if (k.wrap === 2) t.adler = 0, rt(k, 31), rt(k, 139), rt(k, 8), k.gzhead ? (rt(k, (k.gzhead.text ? 1 : 0) + (k.gzhead.hcrc ? 2 : 0) + (k.gzhead.extra ? 4 : 0) + (k.gzhead.name ? 8 : 0) + (k.gzhead.comment ? 16 : 0)), rt(k, 255 & k.gzhead.time), rt(k, k.gzhead.time >> 8 & 255), rt(k, k.gzhead.time >> 16 & 255), rt(k, k.gzhead.time >> 24 & 255), rt(k, k.level === 9 ? 2 : 2 <= k.strategy || k.level < 2 ? 4 : 0), rt(k, 255 & k.gzhead.os), k.gzhead.extra && k.gzhead.extra.length && (rt(k, 255 & k.gzhead.extra.length), rt(k, k.gzhead.extra.length >> 8 & 255)), k.gzhead.hcrc && (t.adler = c(t.adler, k.pending_buf, k.pending, 0)), k.gzindex = 0, k.status = 69) : (rt(k, 0), rt(k, 0), rt(k, 0), rt(k, 0), rt(k, 0), rt(k, k.level === 9 ? 2 : 2 <= k.strategy || k.level < 2 ? 4 : 0), rt(k, 3), k.status = P);
|
|
2215
2215
|
else {
|
|
2216
2216
|
var W = v + (k.w_bits - 8 << 4) << 8;
|
|
2217
|
-
W |= (2 <= k.strategy || k.level < 2 ? 0 : k.level < 6 ? 1 : k.level === 6 ? 2 : 3) << 6, k.strstart !== 0 && (W |= 32), W += 31 - W % 31, k.status =
|
|
2217
|
+
W |= (2 <= k.strategy || k.level < 2 ? 0 : k.level < 6 ? 1 : k.level === 6 ? 2 : 3) << 6, k.strstart !== 0 && (W |= 32), W += 31 - W % 31, k.status = P, tt(k, W), k.strstart !== 0 && (tt(k, t.adler >>> 16), tt(k, 65535 & t.adler)), t.adler = 1;
|
|
2218
2218
|
}
|
|
2219
2219
|
if (k.status === 69) if (k.gzhead.extra) {
|
|
2220
2220
|
for (_ = k.pending; k.gzindex < (65535 & k.gzhead.extra.length) && (k.pending !== k.pending_buf_size || (k.gzhead.hcrc && k.pending > _ && (t.adler = c(t.adler, k.pending_buf, k.pending - _, _)), B(t), _ = k.pending, k.pending !== k.pending_buf_size)); ) rt(k, 255 & k.gzhead.extra[k.gzindex]), k.gzindex++;
|
|
@@ -2242,65 +2242,65 @@ function Nr() {
|
|
|
2242
2242
|
} while (D !== 0);
|
|
2243
2243
|
k.gzhead.hcrc && k.pending > _ && (t.adler = c(t.adler, k.pending_buf, k.pending - _, _)), D === 0 && (k.status = 103);
|
|
2244
2244
|
} else k.status = 103;
|
|
2245
|
-
if (k.status === 103 && (k.gzhead.hcrc ? (k.pending + 2 > k.pending_buf_size && B(t), k.pending + 2 <= k.pending_buf_size && (rt(k, 255 & t.adler), rt(k, t.adler >> 8 & 255), t.adler = 0, k.status =
|
|
2245
|
+
if (k.status === 103 && (k.gzhead.hcrc ? (k.pending + 2 > k.pending_buf_size && B(t), k.pending + 2 <= k.pending_buf_size && (rt(k, 255 & t.adler), rt(k, t.adler >> 8 & 255), t.adler = 0, k.status = P)) : k.status = P), k.pending !== 0) {
|
|
2246
2246
|
if (B(t), t.avail_out === 0) return k.last_flush = -1, r;
|
|
2247
|
-
} else if (t.avail_in === 0 && G(R) <= G(O) && R !==
|
|
2247
|
+
} else if (t.avail_in === 0 && G(R) <= G(O) && R !== m) return it(t, -5);
|
|
2248
2248
|
if (k.status === 666 && t.avail_in !== 0) return it(t, -5);
|
|
2249
2249
|
if (t.avail_in !== 0 || k.lookahead !== 0 || R !== g && k.status !== 666) {
|
|
2250
|
-
var J = k.strategy === 2 ? function(
|
|
2250
|
+
var J = k.strategy === 2 ? function(T, V) {
|
|
2251
2251
|
for (var nt; ; ) {
|
|
2252
|
-
if (
|
|
2252
|
+
if (T.lookahead === 0 && (ut(T), T.lookahead === 0)) {
|
|
2253
2253
|
if (V === g) return i;
|
|
2254
2254
|
break;
|
|
2255
2255
|
}
|
|
2256
|
-
if (
|
|
2256
|
+
if (T.match_length = 0, nt = n._tr_tally(T, 0, T.window[T.strstart]), T.lookahead--, T.strstart++, nt && (E(T, !1), T.strm.avail_out === 0)) return i;
|
|
2257
2257
|
}
|
|
2258
|
-
return
|
|
2259
|
-
}(k, R) : k.strategy === 3 ? function(
|
|
2260
|
-
for (var nt, Q, ot,
|
|
2261
|
-
if (
|
|
2262
|
-
if (ut(
|
|
2263
|
-
if (
|
|
2258
|
+
return T.insert = 0, V === m ? (E(T, !0), T.strm.avail_out === 0 ? $ : Z) : T.last_lit && (E(T, !1), T.strm.avail_out === 0) ? i : L;
|
|
2259
|
+
}(k, R) : k.strategy === 3 ? function(T, V) {
|
|
2260
|
+
for (var nt, Q, ot, ht, ct = T.window; ; ) {
|
|
2261
|
+
if (T.lookahead <= F) {
|
|
2262
|
+
if (ut(T), T.lookahead <= F && V === g) return i;
|
|
2263
|
+
if (T.lookahead === 0) break;
|
|
2264
2264
|
}
|
|
2265
|
-
if (
|
|
2266
|
-
|
|
2265
|
+
if (T.match_length = 0, T.lookahead >= x && 0 < T.strstart && (Q = ct[ot = T.strstart - 1]) === ct[++ot] && Q === ct[++ot] && Q === ct[++ot]) {
|
|
2266
|
+
ht = T.strstart + F;
|
|
2267
2267
|
do
|
|
2268
2268
|
;
|
|
2269
|
-
while (Q === ct[++ot] && Q === ct[++ot] && Q === ct[++ot] && Q === ct[++ot] && Q === ct[++ot] && Q === ct[++ot] && Q === ct[++ot] && Q === ct[++ot] && ot <
|
|
2270
|
-
|
|
2269
|
+
while (Q === ct[++ot] && Q === ct[++ot] && Q === ct[++ot] && Q === ct[++ot] && Q === ct[++ot] && Q === ct[++ot] && Q === ct[++ot] && Q === ct[++ot] && ot < ht);
|
|
2270
|
+
T.match_length = F - (ht - ot), T.match_length > T.lookahead && (T.match_length = T.lookahead);
|
|
2271
2271
|
}
|
|
2272
|
-
if (
|
|
2272
|
+
if (T.match_length >= x ? (nt = n._tr_tally(T, 1, T.match_length - x), T.lookahead -= T.match_length, T.strstart += T.match_length, T.match_length = 0) : (nt = n._tr_tally(T, 0, T.window[T.strstart]), T.lookahead--, T.strstart++), nt && (E(T, !1), T.strm.avail_out === 0)) return i;
|
|
2273
2273
|
}
|
|
2274
|
-
return
|
|
2275
|
-
}(k, R) :
|
|
2274
|
+
return T.insert = 0, V === m ? (E(T, !0), T.strm.avail_out === 0 ? $ : Z) : T.last_lit && (E(T, !1), T.strm.avail_out === 0) ? i : L;
|
|
2275
|
+
}(k, R) : s[k.level].func(k, R);
|
|
2276
2276
|
if (J !== $ && J !== Z || (k.status = 666), J === i || J === $) return t.avail_out === 0 && (k.last_flush = -1), r;
|
|
2277
2277
|
if (J === L && (R === 1 ? n._tr_align(k) : R !== 5 && (n._tr_stored_block(k, 0, 0, !1), R === 3 && (st(k.head), k.lookahead === 0 && (k.strstart = 0, k.block_start = 0, k.insert = 0))), B(t), t.avail_out === 0)) return k.last_flush = -1, r;
|
|
2278
2278
|
}
|
|
2279
|
-
return R !==
|
|
2280
|
-
},
|
|
2279
|
+
return R !== m ? r : k.wrap <= 0 ? 1 : (k.wrap === 2 ? (rt(k, 255 & t.adler), rt(k, t.adler >> 8 & 255), rt(k, t.adler >> 16 & 255), rt(k, t.adler >> 24 & 255), rt(k, 255 & t.total_in), rt(k, t.total_in >> 8 & 255), rt(k, t.total_in >> 16 & 255), rt(k, t.total_in >> 24 & 255)) : (tt(k, t.adler >>> 16), tt(k, 65535 & t.adler)), B(t), 0 < k.wrap && (k.wrap = -k.wrap), k.pending !== 0 ? r : 1);
|
|
2280
|
+
}, y.deflateEnd = function(t) {
|
|
2281
2281
|
var R;
|
|
2282
|
-
return t && t.state ? (R = t.state.status) !== S && R !== 69 && R !== 73 && R !== 91 && R !== 103 && R !==
|
|
2283
|
-
},
|
|
2284
|
-
var O, k, _, D, W, J,
|
|
2282
|
+
return t && t.state ? (R = t.state.status) !== S && R !== 69 && R !== 73 && R !== 91 && R !== 103 && R !== P && R !== 666 ? it(t, d) : (t.state = null, R === P ? it(t, -3) : r) : d;
|
|
2283
|
+
}, y.deflateSetDictionary = function(t, R) {
|
|
2284
|
+
var O, k, _, D, W, J, T, V, nt = R.length;
|
|
2285
2285
|
if (!t || !t.state || (D = (O = t.state).wrap) === 2 || D === 1 && O.status !== S || O.lookahead) return d;
|
|
2286
|
-
for (D === 1 && (t.adler =
|
|
2286
|
+
for (D === 1 && (t.adler = a(t.adler, R, nt, 0)), O.wrap = 0, nt >= O.w_size && (D === 0 && (st(O.head), O.strstart = 0, O.block_start = 0, O.insert = 0), V = new o.Buf8(O.w_size), o.arraySet(V, R, nt - O.w_size, O.w_size, 0), R = V, nt = O.w_size), W = t.avail_in, J = t.next_in, T = t.input, t.avail_in = nt, t.next_in = 0, t.input = R, ut(O); O.lookahead >= x; ) {
|
|
2287
2287
|
for (k = O.strstart, _ = O.lookahead - (x - 1); O.ins_h = (O.ins_h << O.hash_shift ^ O.window[k + x - 1]) & O.hash_mask, O.prev[k & O.w_mask] = O.head[O.ins_h], O.head[O.ins_h] = k, k++, --_; ) ;
|
|
2288
2288
|
O.strstart = k, O.lookahead = x - 1, ut(O);
|
|
2289
2289
|
}
|
|
2290
|
-
return O.strstart += O.lookahead, O.block_start = O.strstart, O.insert = O.lookahead, O.lookahead = 0, O.match_length = O.prev_length = x - 1, O.match_available = 0, t.next_in = J, t.input =
|
|
2291
|
-
},
|
|
2292
|
-
}, { "../utils/common": 41, "./adler32": 43, "./crc32": 45, "./messages": 51, "./trees": 52 }], 47: [function(e, w,
|
|
2290
|
+
return O.strstart += O.lookahead, O.block_start = O.strstart, O.insert = O.lookahead, O.lookahead = 0, O.match_length = O.prev_length = x - 1, O.match_available = 0, t.next_in = J, t.input = T, t.avail_in = W, O.wrap = D, r;
|
|
2291
|
+
}, y.deflateInfo = "pako deflate (from Nodeca project)";
|
|
2292
|
+
}, { "../utils/common": 41, "./adler32": 43, "./crc32": 45, "./messages": 51, "./trees": 52 }], 47: [function(e, w, y) {
|
|
2293
2293
|
w.exports = function() {
|
|
2294
2294
|
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;
|
|
2295
2295
|
};
|
|
2296
|
-
}, {}], 48: [function(e, w,
|
|
2297
|
-
w.exports = function(
|
|
2298
|
-
var n,
|
|
2299
|
-
n =
|
|
2296
|
+
}, {}], 48: [function(e, w, y) {
|
|
2297
|
+
w.exports = function(s, o) {
|
|
2298
|
+
var n, a, c, f, g, m, r, d, u, h, l, v, A, C, I, j, N, U, x, F, q, S, P, i, L;
|
|
2299
|
+
n = s.state, a = s.next_in, i = s.input, c = a + (s.avail_in - 5), f = s.next_out, L = s.output, g = f - (o - s.avail_out), m = f + (s.avail_out - 257), r = n.dmax, d = n.wsize, u = n.whave, h = n.wnext, l = n.window, v = n.hold, A = n.bits, C = n.lencode, I = n.distcode, j = (1 << n.lenbits) - 1, N = (1 << n.distbits) - 1;
|
|
2300
2300
|
t: do {
|
|
2301
|
-
A < 15 && (v += i[
|
|
2301
|
+
A < 15 && (v += i[a++] << A, A += 8, v += i[a++] << A, A += 8), U = C[v & j];
|
|
2302
2302
|
e: for (; ; ) {
|
|
2303
|
-
if (v >>>= x = U >>> 24, A -= x, (x = U >>> 16 & 255) === 0) L[
|
|
2303
|
+
if (v >>>= x = U >>> 24, A -= x, (x = U >>> 16 & 255) === 0) L[f++] = 65535 & U;
|
|
2304
2304
|
else {
|
|
2305
2305
|
if (!(16 & x)) {
|
|
2306
2306
|
if ((64 & x) == 0) {
|
|
@@ -2311,106 +2311,106 @@ function Nr() {
|
|
|
2311
2311
|
n.mode = 12;
|
|
2312
2312
|
break t;
|
|
2313
2313
|
}
|
|
2314
|
-
|
|
2314
|
+
s.msg = "invalid literal/length code", n.mode = 30;
|
|
2315
2315
|
break t;
|
|
2316
2316
|
}
|
|
2317
|
-
F = 65535 & U, (x &= 15) && (A < x && (v += i[
|
|
2317
|
+
F = 65535 & U, (x &= 15) && (A < x && (v += i[a++] << A, A += 8), F += v & (1 << x) - 1, v >>>= x, A -= x), A < 15 && (v += i[a++] << A, A += 8, v += i[a++] << A, A += 8), U = I[v & N];
|
|
2318
2318
|
r: for (; ; ) {
|
|
2319
2319
|
if (v >>>= x = U >>> 24, A -= x, !(16 & (x = U >>> 16 & 255))) {
|
|
2320
2320
|
if ((64 & x) == 0) {
|
|
2321
2321
|
U = I[(65535 & U) + (v & (1 << x) - 1)];
|
|
2322
2322
|
continue r;
|
|
2323
2323
|
}
|
|
2324
|
-
|
|
2324
|
+
s.msg = "invalid distance code", n.mode = 30;
|
|
2325
2325
|
break t;
|
|
2326
2326
|
}
|
|
2327
|
-
if (q = 65535 & U, A < (x &= 15) && (v += i[
|
|
2328
|
-
|
|
2327
|
+
if (q = 65535 & U, A < (x &= 15) && (v += i[a++] << A, (A += 8) < x && (v += i[a++] << A, A += 8)), r < (q += v & (1 << x) - 1)) {
|
|
2328
|
+
s.msg = "invalid distance too far back", n.mode = 30;
|
|
2329
2329
|
break t;
|
|
2330
2330
|
}
|
|
2331
|
-
if (v >>>= x, A -= x, (x =
|
|
2331
|
+
if (v >>>= x, A -= x, (x = f - g) < q) {
|
|
2332
2332
|
if (u < (x = q - x) && n.sane) {
|
|
2333
|
-
|
|
2333
|
+
s.msg = "invalid distance too far back", n.mode = 30;
|
|
2334
2334
|
break t;
|
|
2335
2335
|
}
|
|
2336
|
-
if (
|
|
2336
|
+
if (P = l, (S = 0) === h) {
|
|
2337
2337
|
if (S += d - x, x < F) {
|
|
2338
|
-
for (F -= x; L[
|
|
2339
|
-
S =
|
|
2338
|
+
for (F -= x; L[f++] = l[S++], --x; ) ;
|
|
2339
|
+
S = f - q, P = L;
|
|
2340
2340
|
}
|
|
2341
|
-
} else if (
|
|
2342
|
-
if (S += d +
|
|
2343
|
-
for (F -= x; L[
|
|
2344
|
-
if (S = 0,
|
|
2345
|
-
for (F -= x =
|
|
2346
|
-
S =
|
|
2341
|
+
} else if (h < x) {
|
|
2342
|
+
if (S += d + h - x, (x -= h) < F) {
|
|
2343
|
+
for (F -= x; L[f++] = l[S++], --x; ) ;
|
|
2344
|
+
if (S = 0, h < F) {
|
|
2345
|
+
for (F -= x = h; L[f++] = l[S++], --x; ) ;
|
|
2346
|
+
S = f - q, P = L;
|
|
2347
2347
|
}
|
|
2348
2348
|
}
|
|
2349
|
-
} else if (S +=
|
|
2350
|
-
for (F -= x; L[
|
|
2351
|
-
S =
|
|
2349
|
+
} else if (S += h - x, x < F) {
|
|
2350
|
+
for (F -= x; L[f++] = l[S++], --x; ) ;
|
|
2351
|
+
S = f - q, P = L;
|
|
2352
2352
|
}
|
|
2353
|
-
for (; 2 < F; ) L[
|
|
2354
|
-
F && (L[
|
|
2353
|
+
for (; 2 < F; ) L[f++] = P[S++], L[f++] = P[S++], L[f++] = P[S++], F -= 3;
|
|
2354
|
+
F && (L[f++] = P[S++], 1 < F && (L[f++] = P[S++]));
|
|
2355
2355
|
} else {
|
|
2356
|
-
for (S =
|
|
2357
|
-
F && (L[
|
|
2356
|
+
for (S = f - q; L[f++] = L[S++], L[f++] = L[S++], L[f++] = L[S++], 2 < (F -= 3); ) ;
|
|
2357
|
+
F && (L[f++] = L[S++], 1 < F && (L[f++] = L[S++]));
|
|
2358
2358
|
}
|
|
2359
2359
|
break;
|
|
2360
2360
|
}
|
|
2361
2361
|
}
|
|
2362
2362
|
break;
|
|
2363
2363
|
}
|
|
2364
|
-
} while (
|
|
2365
|
-
|
|
2364
|
+
} while (a < c && f < m);
|
|
2365
|
+
a -= F = A >> 3, v &= (1 << (A -= F << 3)) - 1, s.next_in = a, s.next_out = f, s.avail_in = a < c ? c - a + 5 : 5 - (a - c), s.avail_out = f < m ? m - f + 257 : 257 - (f - m), n.hold = v, n.bits = A;
|
|
2366
2366
|
};
|
|
2367
|
-
}, {}], 49: [function(e, w,
|
|
2368
|
-
var
|
|
2367
|
+
}, {}], 49: [function(e, w, y) {
|
|
2368
|
+
var s = e("../utils/common"), o = e("./adler32"), n = e("./crc32"), a = e("./inffast"), c = e("./inftrees"), f = 1, g = 2, m = 0, r = -2, d = 1, u = 852, h = 592;
|
|
2369
2369
|
function l(S) {
|
|
2370
2370
|
return (S >>> 24 & 255) + (S >>> 8 & 65280) + ((65280 & S) << 8) + ((255 & S) << 24);
|
|
2371
2371
|
}
|
|
2372
2372
|
function v() {
|
|
2373
|
-
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
|
|
2373
|
+
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 s.Buf16(320), this.work = new s.Buf16(288), this.lendyn = null, this.distdyn = null, this.sane = 0, this.back = 0, this.was = 0;
|
|
2374
2374
|
}
|
|
2375
2375
|
function A(S) {
|
|
2376
|
-
var
|
|
2377
|
-
return S && S.state ? (
|
|
2376
|
+
var P;
|
|
2377
|
+
return S && S.state ? (P = S.state, S.total_in = S.total_out = P.total = 0, S.msg = "", P.wrap && (S.adler = 1 & P.wrap), P.mode = d, P.last = 0, P.havedict = 0, P.dmax = 32768, P.head = null, P.hold = 0, P.bits = 0, P.lencode = P.lendyn = new s.Buf32(u), P.distcode = P.distdyn = new s.Buf32(h), P.sane = 1, P.back = -1, m) : r;
|
|
2378
2378
|
}
|
|
2379
2379
|
function C(S) {
|
|
2380
|
-
var
|
|
2381
|
-
return S && S.state ? ((
|
|
2380
|
+
var P;
|
|
2381
|
+
return S && S.state ? ((P = S.state).wsize = 0, P.whave = 0, P.wnext = 0, A(S)) : r;
|
|
2382
2382
|
}
|
|
2383
|
-
function I(S,
|
|
2383
|
+
function I(S, P) {
|
|
2384
2384
|
var i, L;
|
|
2385
|
-
return S && S.state ? (L = S.state,
|
|
2385
|
+
return S && S.state ? (L = S.state, P < 0 ? (i = 0, P = -P) : (i = 1 + (P >> 4), P < 48 && (P &= 15)), P && (P < 8 || 15 < P) ? r : (L.window !== null && L.wbits !== P && (L.window = null), L.wrap = i, L.wbits = P, C(S))) : r;
|
|
2386
2386
|
}
|
|
2387
|
-
function
|
|
2387
|
+
function j(S, P) {
|
|
2388
2388
|
var i, L;
|
|
2389
|
-
return S ? (L = new v(), (S.state = L).window = null, (i = I(S,
|
|
2389
|
+
return S ? (L = new v(), (S.state = L).window = null, (i = I(S, P)) !== m && (S.state = null), i) : r;
|
|
2390
2390
|
}
|
|
2391
2391
|
var N, U, x = !0;
|
|
2392
2392
|
function F(S) {
|
|
2393
2393
|
if (x) {
|
|
2394
|
-
var
|
|
2395
|
-
for (N = new
|
|
2396
|
-
for (;
|
|
2397
|
-
for (;
|
|
2398
|
-
for (;
|
|
2399
|
-
for (c(
|
|
2394
|
+
var P;
|
|
2395
|
+
for (N = new s.Buf32(512), U = new s.Buf32(32), P = 0; P < 144; ) S.lens[P++] = 8;
|
|
2396
|
+
for (; P < 256; ) S.lens[P++] = 9;
|
|
2397
|
+
for (; P < 280; ) S.lens[P++] = 7;
|
|
2398
|
+
for (; P < 288; ) S.lens[P++] = 8;
|
|
2399
|
+
for (c(f, S.lens, 0, 288, N, 0, S.work, { bits: 9 }), P = 0; P < 32; ) S.lens[P++] = 5;
|
|
2400
2400
|
c(g, S.lens, 0, 32, U, 0, S.work, { bits: 5 }), x = !1;
|
|
2401
2401
|
}
|
|
2402
2402
|
S.lencode = N, S.lenbits = 9, S.distcode = U, S.distbits = 5;
|
|
2403
2403
|
}
|
|
2404
|
-
function q(S,
|
|
2404
|
+
function q(S, P, i, L) {
|
|
2405
2405
|
var $, Z = S.state;
|
|
2406
|
-
return Z.window === null && (Z.wsize = 1 << Z.wbits, Z.wnext = 0, Z.whave = 0, Z.window = new
|
|
2406
|
+
return Z.window === null && (Z.wsize = 1 << Z.wbits, Z.wnext = 0, Z.whave = 0, Z.window = new s.Buf8(Z.wsize)), L >= Z.wsize ? (s.arraySet(Z.window, P, i - Z.wsize, Z.wsize, 0), Z.wnext = 0, Z.whave = Z.wsize) : (L < ($ = Z.wsize - Z.wnext) && ($ = L), s.arraySet(Z.window, P, i - L, $, Z.wnext), (L -= $) ? (s.arraySet(Z.window, P, i - L, L, 0), Z.wnext = L, Z.whave = Z.wsize) : (Z.wnext += $, Z.wnext === Z.wsize && (Z.wnext = 0), Z.whave < Z.wsize && (Z.whave += $))), 0;
|
|
2407
2407
|
}
|
|
2408
|
-
|
|
2409
|
-
return
|
|
2410
|
-
},
|
|
2411
|
-
var i, L, $, Z, it, G, st, B, E, rt, tt, H, ut, lt, z,
|
|
2408
|
+
y.inflateReset = C, y.inflateReset2 = I, y.inflateResetKeep = A, y.inflateInit = function(S) {
|
|
2409
|
+
return j(S, 15);
|
|
2410
|
+
}, y.inflateInit2 = j, y.inflate = function(S, P) {
|
|
2411
|
+
var i, L, $, Z, it, G, st, B, E, rt, tt, H, ut, lt, z, M, Y, K, X, at, t, R, O, k, _ = 0, D = new s.Buf8(4), W = [16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15];
|
|
2412
2412
|
if (!S || !S.state || !S.output || !S.input && S.avail_in !== 0) return r;
|
|
2413
|
-
(i = S.state).mode === 12 && (i.mode = 13), it = S.next_out, $ = S.output, st = S.avail_out, Z = S.next_in, L = S.input, G = S.avail_in, B = i.hold, E = i.bits, rt = G, tt = st, R =
|
|
2413
|
+
(i = S.state).mode === 12 && (i.mode = 13), it = S.next_out, $ = S.output, st = S.avail_out, Z = S.next_in, L = S.input, G = S.avail_in, B = i.hold, E = i.bits, rt = G, tt = st, R = m;
|
|
2414
2414
|
t: for (; ; ) switch (i.mode) {
|
|
2415
2415
|
case d:
|
|
2416
2416
|
if (i.wrap === 0) {
|
|
@@ -2476,7 +2476,7 @@ function Nr() {
|
|
|
2476
2476
|
} else i.head && (i.head.extra = null);
|
|
2477
2477
|
i.mode = 6;
|
|
2478
2478
|
case 6:
|
|
2479
|
-
if (1024 & i.flags && (G < (H = i.length) && (H = G), H && (i.head && (t = i.head.extra_len - i.length, i.head.extra || (i.head.extra = new Array(i.head.extra_len)),
|
|
2479
|
+
if (1024 & i.flags && (G < (H = i.length) && (H = G), H && (i.head && (t = i.head.extra_len - i.length, i.head.extra || (i.head.extra = new Array(i.head.extra_len)), s.arraySet(i.head.extra, L, Z, H, t)), 512 & i.flags && (i.check = n(i.check, L, H, Z)), G -= H, Z += H, i.length -= H), i.length)) break t;
|
|
2480
2480
|
i.length = 0, i.mode = 7;
|
|
2481
2481
|
case 7:
|
|
2482
2482
|
if (2048 & i.flags) {
|
|
@@ -2516,7 +2516,7 @@ function Nr() {
|
|
|
2516
2516
|
if (i.havedict === 0) return S.next_out = it, S.avail_out = st, S.next_in = Z, S.avail_in = G, i.hold = B, i.bits = E, 2;
|
|
2517
2517
|
S.adler = i.check = 1, i.mode = 12;
|
|
2518
2518
|
case 12:
|
|
2519
|
-
if (
|
|
2519
|
+
if (P === 5 || P === 6) break t;
|
|
2520
2520
|
case 13:
|
|
2521
2521
|
if (i.last) {
|
|
2522
2522
|
B >>>= 7 & E, E -= 7 & E, i.mode = 27;
|
|
@@ -2531,7 +2531,7 @@ function Nr() {
|
|
|
2531
2531
|
i.mode = 14;
|
|
2532
2532
|
break;
|
|
2533
2533
|
case 1:
|
|
2534
|
-
if (F(i), i.mode = 20,
|
|
2534
|
+
if (F(i), i.mode = 20, P !== 6) break;
|
|
2535
2535
|
B >>>= 2, E -= 2;
|
|
2536
2536
|
break t;
|
|
2537
2537
|
case 2:
|
|
@@ -2551,13 +2551,13 @@ function Nr() {
|
|
|
2551
2551
|
S.msg = "invalid stored block lengths", i.mode = 30;
|
|
2552
2552
|
break;
|
|
2553
2553
|
}
|
|
2554
|
-
if (i.length = 65535 & B, E = B = 0, i.mode = 15,
|
|
2554
|
+
if (i.length = 65535 & B, E = B = 0, i.mode = 15, P === 6) break t;
|
|
2555
2555
|
case 15:
|
|
2556
2556
|
i.mode = 16;
|
|
2557
2557
|
case 16:
|
|
2558
2558
|
if (H = i.length) {
|
|
2559
2559
|
if (G < H && (H = G), st < H && (H = st), H === 0) break t;
|
|
2560
|
-
|
|
2560
|
+
s.arraySet($, L, Z, H, it), G -= H, Z += H, st -= H, it += H, i.length -= H;
|
|
2561
2561
|
break;
|
|
2562
2562
|
}
|
|
2563
2563
|
i.mode = 12;
|
|
@@ -2588,7 +2588,7 @@ function Nr() {
|
|
|
2588
2588
|
i.have = 0, i.mode = 19;
|
|
2589
2589
|
case 19:
|
|
2590
2590
|
for (; i.have < i.nlen + i.ndist; ) {
|
|
2591
|
-
for (;
|
|
2591
|
+
for (; M = (_ = i.lencode[B & (1 << i.lenbits) - 1]) >>> 16 & 255, Y = 65535 & _, !((z = _ >>> 24) <= E); ) {
|
|
2592
2592
|
if (G === 0) break t;
|
|
2593
2593
|
G--, B += L[Z++] << E, E += 8;
|
|
2594
2594
|
}
|
|
@@ -2629,7 +2629,7 @@ function Nr() {
|
|
|
2629
2629
|
S.msg = "invalid code -- missing end-of-block", i.mode = 30;
|
|
2630
2630
|
break;
|
|
2631
2631
|
}
|
|
2632
|
-
if (i.lenbits = 9, O = { bits: i.lenbits }, R = c(
|
|
2632
|
+
if (i.lenbits = 9, O = { bits: i.lenbits }, R = c(f, i.lens, 0, i.nlen, i.lencode, 0, i.work, O), i.lenbits = O.bits, R) {
|
|
2633
2633
|
S.msg = "invalid literal/lengths set", i.mode = 30;
|
|
2634
2634
|
break;
|
|
2635
2635
|
}
|
|
@@ -2637,38 +2637,38 @@ function Nr() {
|
|
|
2637
2637
|
S.msg = "invalid distances set", i.mode = 30;
|
|
2638
2638
|
break;
|
|
2639
2639
|
}
|
|
2640
|
-
if (i.mode = 20,
|
|
2640
|
+
if (i.mode = 20, P === 6) break t;
|
|
2641
2641
|
case 20:
|
|
2642
2642
|
i.mode = 21;
|
|
2643
2643
|
case 21:
|
|
2644
2644
|
if (6 <= G && 258 <= st) {
|
|
2645
|
-
S.next_out = it, S.avail_out = st, S.next_in = Z, S.avail_in = G, i.hold = B, i.bits = E,
|
|
2645
|
+
S.next_out = it, S.avail_out = st, S.next_in = Z, S.avail_in = G, i.hold = B, i.bits = E, a(S, tt), it = S.next_out, $ = S.output, st = S.avail_out, Z = S.next_in, L = S.input, G = S.avail_in, B = i.hold, E = i.bits, i.mode === 12 && (i.back = -1);
|
|
2646
2646
|
break;
|
|
2647
2647
|
}
|
|
2648
|
-
for (i.back = 0;
|
|
2648
|
+
for (i.back = 0; M = (_ = i.lencode[B & (1 << i.lenbits) - 1]) >>> 16 & 255, Y = 65535 & _, !((z = _ >>> 24) <= E); ) {
|
|
2649
2649
|
if (G === 0) break t;
|
|
2650
2650
|
G--, B += L[Z++] << E, E += 8;
|
|
2651
2651
|
}
|
|
2652
|
-
if (
|
|
2653
|
-
for (K = z, X =
|
|
2652
|
+
if (M && (240 & M) == 0) {
|
|
2653
|
+
for (K = z, X = M, at = Y; M = (_ = i.lencode[at + ((B & (1 << K + X) - 1) >> K)]) >>> 16 & 255, Y = 65535 & _, !(K + (z = _ >>> 24) <= E); ) {
|
|
2654
2654
|
if (G === 0) break t;
|
|
2655
2655
|
G--, B += L[Z++] << E, E += 8;
|
|
2656
2656
|
}
|
|
2657
2657
|
B >>>= K, E -= K, i.back += K;
|
|
2658
2658
|
}
|
|
2659
|
-
if (B >>>= z, E -= z, i.back += z, i.length = Y,
|
|
2659
|
+
if (B >>>= z, E -= z, i.back += z, i.length = Y, M === 0) {
|
|
2660
2660
|
i.mode = 26;
|
|
2661
2661
|
break;
|
|
2662
2662
|
}
|
|
2663
|
-
if (32 &
|
|
2663
|
+
if (32 & M) {
|
|
2664
2664
|
i.back = -1, i.mode = 12;
|
|
2665
2665
|
break;
|
|
2666
2666
|
}
|
|
2667
|
-
if (64 &
|
|
2667
|
+
if (64 & M) {
|
|
2668
2668
|
S.msg = "invalid literal/length code", i.mode = 30;
|
|
2669
2669
|
break;
|
|
2670
2670
|
}
|
|
2671
|
-
i.extra = 15 &
|
|
2671
|
+
i.extra = 15 & M, i.mode = 22;
|
|
2672
2672
|
case 22:
|
|
2673
2673
|
if (i.extra) {
|
|
2674
2674
|
for (k = i.extra; E < k; ) {
|
|
@@ -2679,22 +2679,22 @@ function Nr() {
|
|
|
2679
2679
|
}
|
|
2680
2680
|
i.was = i.length, i.mode = 23;
|
|
2681
2681
|
case 23:
|
|
2682
|
-
for (;
|
|
2682
|
+
for (; M = (_ = i.distcode[B & (1 << i.distbits) - 1]) >>> 16 & 255, Y = 65535 & _, !((z = _ >>> 24) <= E); ) {
|
|
2683
2683
|
if (G === 0) break t;
|
|
2684
2684
|
G--, B += L[Z++] << E, E += 8;
|
|
2685
2685
|
}
|
|
2686
|
-
if ((240 &
|
|
2687
|
-
for (K = z, X =
|
|
2686
|
+
if ((240 & M) == 0) {
|
|
2687
|
+
for (K = z, X = M, at = Y; M = (_ = i.distcode[at + ((B & (1 << K + X) - 1) >> K)]) >>> 16 & 255, Y = 65535 & _, !(K + (z = _ >>> 24) <= E); ) {
|
|
2688
2688
|
if (G === 0) break t;
|
|
2689
2689
|
G--, B += L[Z++] << E, E += 8;
|
|
2690
2690
|
}
|
|
2691
2691
|
B >>>= K, E -= K, i.back += K;
|
|
2692
2692
|
}
|
|
2693
|
-
if (B >>>= z, E -= z, i.back += z, 64 &
|
|
2693
|
+
if (B >>>= z, E -= z, i.back += z, 64 & M) {
|
|
2694
2694
|
S.msg = "invalid distance code", i.mode = 30;
|
|
2695
2695
|
break;
|
|
2696
2696
|
}
|
|
2697
|
-
i.offset = Y, i.extra = 15 &
|
|
2697
|
+
i.offset = Y, i.extra = 15 & M, i.mode = 24;
|
|
2698
2698
|
case 24:
|
|
2699
2699
|
if (i.extra) {
|
|
2700
2700
|
for (k = i.extra; E < k; ) {
|
|
@@ -2762,73 +2762,73 @@ function Nr() {
|
|
|
2762
2762
|
default:
|
|
2763
2763
|
return r;
|
|
2764
2764
|
}
|
|
2765
|
-
return S.next_out = it, S.avail_out = st, S.next_in = Z, S.avail_in = G, i.hold = B, i.bits = E, (i.wsize || tt !== S.avail_out && i.mode < 30 && (i.mode < 27 ||
|
|
2766
|
-
},
|
|
2765
|
+
return S.next_out = it, S.avail_out = st, S.next_in = Z, S.avail_in = G, i.hold = B, i.bits = E, (i.wsize || tt !== S.avail_out && i.mode < 30 && (i.mode < 27 || P !== 4)) && q(S, S.output, S.next_out, tt - S.avail_out) ? (i.mode = 31, -4) : (rt -= S.avail_in, tt -= S.avail_out, S.total_in += rt, S.total_out += tt, i.total += tt, i.wrap && tt && (S.adler = i.check = i.flags ? n(i.check, $, tt, S.next_out - tt) : o(i.check, $, tt, S.next_out - tt)), S.data_type = i.bits + (i.last ? 64 : 0) + (i.mode === 12 ? 128 : 0) + (i.mode === 20 || i.mode === 15 ? 256 : 0), (rt == 0 && tt === 0 || P === 4) && R === m && (R = -5), R);
|
|
2766
|
+
}, y.inflateEnd = function(S) {
|
|
2767
2767
|
if (!S || !S.state) return r;
|
|
2768
|
-
var
|
|
2769
|
-
return
|
|
2770
|
-
},
|
|
2768
|
+
var P = S.state;
|
|
2769
|
+
return P.window && (P.window = null), S.state = null, m;
|
|
2770
|
+
}, y.inflateGetHeader = function(S, P) {
|
|
2771
2771
|
var i;
|
|
2772
|
-
return S && S.state ? (2 & (i = S.state).wrap) == 0 ? r : ((i.head =
|
|
2773
|
-
},
|
|
2774
|
-
var i, L =
|
|
2775
|
-
return S && S.state ? (i = S.state).wrap !== 0 && i.mode !== 11 ? r : i.mode === 11 && o(1,
|
|
2776
|
-
},
|
|
2777
|
-
}, { "../utils/common": 41, "./adler32": 43, "./crc32": 45, "./inffast": 48, "./inftrees": 50 }], 50: [function(e, w,
|
|
2778
|
-
var
|
|
2779
|
-
w.exports = function(
|
|
2780
|
-
var v, A, C, I,
|
|
2772
|
+
return S && S.state ? (2 & (i = S.state).wrap) == 0 ? r : ((i.head = P).done = !1, m) : r;
|
|
2773
|
+
}, y.inflateSetDictionary = function(S, P) {
|
|
2774
|
+
var i, L = P.length;
|
|
2775
|
+
return S && S.state ? (i = S.state).wrap !== 0 && i.mode !== 11 ? r : i.mode === 11 && o(1, P, L, 0) !== i.check ? -3 : q(S, P, L, L) ? (i.mode = 31, -4) : (i.havedict = 1, m) : r;
|
|
2776
|
+
}, y.inflateInfo = "pako inflate (from Nodeca project)";
|
|
2777
|
+
}, { "../utils/common": 41, "./adler32": 43, "./crc32": 45, "./inffast": 48, "./inftrees": 50 }], 50: [function(e, w, y) {
|
|
2778
|
+
var s = e("../utils/common"), o = [3, 4, 5, 6, 7, 8, 9, 10, 11, 13, 15, 17, 19, 23, 27, 31, 35, 43, 51, 59, 67, 83, 99, 115, 131, 163, 195, 227, 258, 0, 0], n = [16, 16, 16, 16, 16, 16, 16, 16, 17, 17, 17, 17, 18, 18, 18, 18, 19, 19, 19, 19, 20, 20, 20, 20, 21, 21, 21, 21, 16, 72, 78], a = [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], c = [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];
|
|
2779
|
+
w.exports = function(f, g, m, r, d, u, h, l) {
|
|
2780
|
+
var v, A, C, I, j, N, U, x, F, q = l.bits, S = 0, P = 0, i = 0, L = 0, $ = 0, Z = 0, it = 0, G = 0, st = 0, B = 0, E = null, rt = 0, tt = new s.Buf16(16), H = new s.Buf16(16), ut = null, lt = 0;
|
|
2781
2781
|
for (S = 0; S <= 15; S++) tt[S] = 0;
|
|
2782
|
-
for (
|
|
2782
|
+
for (P = 0; P < r; P++) tt[g[m + P]]++;
|
|
2783
2783
|
for ($ = q, L = 15; 1 <= L && tt[L] === 0; L--) ;
|
|
2784
2784
|
if (L < $ && ($ = L), L === 0) return d[u++] = 20971520, d[u++] = 20971520, l.bits = 1, 0;
|
|
2785
2785
|
for (i = 1; i < L && tt[i] === 0; i++) ;
|
|
2786
2786
|
for ($ < i && ($ = i), S = G = 1; S <= 15; S++) if (G <<= 1, (G -= tt[S]) < 0) return -1;
|
|
2787
|
-
if (0 < G && (
|
|
2787
|
+
if (0 < G && (f === 0 || L !== 1)) return -1;
|
|
2788
2788
|
for (H[1] = 0, S = 1; S < 15; S++) H[S + 1] = H[S] + tt[S];
|
|
2789
|
-
for (
|
|
2790
|
-
if (N =
|
|
2789
|
+
for (P = 0; P < r; P++) g[m + P] !== 0 && (h[H[g[m + P]]++] = P);
|
|
2790
|
+
if (N = f === 0 ? (E = ut = h, 19) : f === 1 ? (E = o, rt -= 257, ut = n, lt -= 257, 256) : (E = a, ut = c, -1), S = i, j = u, it = P = B = 0, C = -1, I = (st = 1 << (Z = $)) - 1, f === 1 && 852 < st || f === 2 && 592 < st) return 1;
|
|
2791
2791
|
for (; ; ) {
|
|
2792
|
-
for (U = S - it, F =
|
|
2792
|
+
for (U = S - it, F = h[P] < N ? (x = 0, h[P]) : h[P] > N ? (x = ut[lt + h[P]], E[rt + h[P]]) : (x = 96, 0), v = 1 << S - it, i = A = 1 << Z; d[j + (B >> it) + (A -= v)] = U << 24 | x << 16 | F | 0, A !== 0; ) ;
|
|
2793
2793
|
for (v = 1 << S - 1; B & v; ) v >>= 1;
|
|
2794
|
-
if (v !== 0 ? (B &= v - 1, B += v) : B = 0,
|
|
2794
|
+
if (v !== 0 ? (B &= v - 1, B += v) : B = 0, P++, --tt[S] == 0) {
|
|
2795
2795
|
if (S === L) break;
|
|
2796
|
-
S = g[
|
|
2796
|
+
S = g[m + h[P]];
|
|
2797
2797
|
}
|
|
2798
2798
|
if ($ < S && (B & I) !== C) {
|
|
2799
|
-
for (it === 0 && (it = $),
|
|
2800
|
-
if (st += 1 << Z,
|
|
2801
|
-
d[C = B & I] = $ << 24 | Z << 16 |
|
|
2799
|
+
for (it === 0 && (it = $), j += i, G = 1 << (Z = S - it); Z + it < L && !((G -= tt[Z + it]) <= 0); ) Z++, G <<= 1;
|
|
2800
|
+
if (st += 1 << Z, f === 1 && 852 < st || f === 2 && 592 < st) return 1;
|
|
2801
|
+
d[C = B & I] = $ << 24 | Z << 16 | j - u | 0;
|
|
2802
2802
|
}
|
|
2803
2803
|
}
|
|
2804
|
-
return B !== 0 && (d[
|
|
2804
|
+
return B !== 0 && (d[j + B] = S - it << 24 | 64 << 16 | 0), l.bits = $, 0;
|
|
2805
2805
|
};
|
|
2806
|
-
}, { "../utils/common": 41 }], 51: [function(e, w,
|
|
2806
|
+
}, { "../utils/common": 41 }], 51: [function(e, w, y) {
|
|
2807
2807
|
w.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" };
|
|
2808
|
-
}, {}], 52: [function(e, w,
|
|
2809
|
-
var
|
|
2810
|
-
function
|
|
2808
|
+
}, {}], 52: [function(e, w, y) {
|
|
2809
|
+
var s = e("../utils/common"), o = 0, n = 1;
|
|
2810
|
+
function a(_) {
|
|
2811
2811
|
for (var D = _.length; 0 <= --D; ) _[D] = 0;
|
|
2812
2812
|
}
|
|
2813
|
-
var c = 0,
|
|
2814
|
-
|
|
2813
|
+
var c = 0, f = 29, g = 256, m = g + 1 + f, r = 30, d = 19, u = 2 * m + 1, h = 15, l = 16, v = 7, A = 256, C = 16, I = 17, j = 18, N = [0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 0], U = [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], x = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 3, 7], F = [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));
|
|
2814
|
+
a(q);
|
|
2815
2815
|
var S = new Array(2 * r);
|
|
2816
|
-
|
|
2817
|
-
var
|
|
2818
|
-
|
|
2816
|
+
a(S);
|
|
2817
|
+
var P = new Array(512);
|
|
2818
|
+
a(P);
|
|
2819
2819
|
var i = new Array(256);
|
|
2820
|
-
|
|
2821
|
-
var L = new Array(
|
|
2822
|
-
|
|
2820
|
+
a(i);
|
|
2821
|
+
var L = new Array(f);
|
|
2822
|
+
a(L);
|
|
2823
2823
|
var $, Z, it, G = new Array(r);
|
|
2824
|
-
function st(_, D, W, J,
|
|
2825
|
-
this.static_tree = _, this.extra_bits = D, this.extra_base = W, this.elems = J, this.max_length =
|
|
2824
|
+
function st(_, D, W, J, T) {
|
|
2825
|
+
this.static_tree = _, this.extra_bits = D, this.extra_base = W, this.elems = J, this.max_length = T, this.has_stree = _ && _.length;
|
|
2826
2826
|
}
|
|
2827
2827
|
function B(_, D) {
|
|
2828
2828
|
this.dyn_tree = _, this.max_code = 0, this.stat_desc = D;
|
|
2829
2829
|
}
|
|
2830
2830
|
function E(_) {
|
|
2831
|
-
return _ < 256 ?
|
|
2831
|
+
return _ < 256 ? P[_] : P[256 + (_ >>> 7)];
|
|
2832
2832
|
}
|
|
2833
2833
|
function rt(_, D) {
|
|
2834
2834
|
_.pending_buf[_.pending++] = 255 & D, _.pending_buf[_.pending++] = D >>> 8 & 255;
|
|
@@ -2844,93 +2844,93 @@ function Nr() {
|
|
|
2844
2844
|
return W >>> 1;
|
|
2845
2845
|
}
|
|
2846
2846
|
function lt(_, D, W) {
|
|
2847
|
-
var J,
|
|
2848
|
-
for (J = 1; J <=
|
|
2849
|
-
for (
|
|
2850
|
-
var Q = _[2 *
|
|
2851
|
-
Q !== 0 && (_[2 *
|
|
2847
|
+
var J, T, V = new Array(h + 1), nt = 0;
|
|
2848
|
+
for (J = 1; J <= h; J++) V[J] = nt = nt + W[J - 1] << 1;
|
|
2849
|
+
for (T = 0; T <= D; T++) {
|
|
2850
|
+
var Q = _[2 * T + 1];
|
|
2851
|
+
Q !== 0 && (_[2 * T] = ut(V[Q]++, Q));
|
|
2852
2852
|
}
|
|
2853
2853
|
}
|
|
2854
2854
|
function z(_) {
|
|
2855
2855
|
var D;
|
|
2856
|
-
for (D = 0; D <
|
|
2856
|
+
for (D = 0; D < m; D++) _.dyn_ltree[2 * D] = 0;
|
|
2857
2857
|
for (D = 0; D < r; D++) _.dyn_dtree[2 * D] = 0;
|
|
2858
2858
|
for (D = 0; D < d; D++) _.bl_tree[2 * D] = 0;
|
|
2859
2859
|
_.dyn_ltree[2 * A] = 1, _.opt_len = _.static_len = 0, _.last_lit = _.matches = 0;
|
|
2860
2860
|
}
|
|
2861
|
-
function
|
|
2861
|
+
function M(_) {
|
|
2862
2862
|
8 < _.bi_valid ? rt(_, _.bi_buf) : 0 < _.bi_valid && (_.pending_buf[_.pending++] = _.bi_buf), _.bi_buf = 0, _.bi_valid = 0;
|
|
2863
2863
|
}
|
|
2864
2864
|
function Y(_, D, W, J) {
|
|
2865
|
-
var
|
|
2866
|
-
return _[
|
|
2865
|
+
var T = 2 * D, V = 2 * W;
|
|
2866
|
+
return _[T] < _[V] || _[T] === _[V] && J[D] <= J[W];
|
|
2867
2867
|
}
|
|
2868
2868
|
function K(_, D, W) {
|
|
2869
|
-
for (var J = _.heap[W],
|
|
2869
|
+
for (var J = _.heap[W], T = W << 1; T <= _.heap_len && (T < _.heap_len && Y(D, _.heap[T + 1], _.heap[T], _.depth) && T++, !Y(D, J, _.heap[T], _.depth)); ) _.heap[W] = _.heap[T], W = T, T <<= 1;
|
|
2870
2870
|
_.heap[W] = J;
|
|
2871
2871
|
}
|
|
2872
2872
|
function X(_, D, W) {
|
|
2873
|
-
var J,
|
|
2874
|
-
if (_.last_lit !== 0) for (; J = _.pending_buf[_.d_buf + 2 * Q] << 8 | _.pending_buf[_.d_buf + 2 * Q + 1],
|
|
2873
|
+
var J, T, V, nt, Q = 0;
|
|
2874
|
+
if (_.last_lit !== 0) for (; J = _.pending_buf[_.d_buf + 2 * Q] << 8 | _.pending_buf[_.d_buf + 2 * Q + 1], T = _.pending_buf[_.l_buf + Q], Q++, J === 0 ? H(_, T, D) : (H(_, (V = i[T]) + g + 1, D), (nt = N[V]) !== 0 && tt(_, T -= L[V], nt), H(_, V = E(--J), W), (nt = U[V]) !== 0 && tt(_, J -= G[V], nt)), Q < _.last_lit; ) ;
|
|
2875
2875
|
H(_, A, D);
|
|
2876
2876
|
}
|
|
2877
2877
|
function at(_, D) {
|
|
2878
|
-
var W, J,
|
|
2879
|
-
for (_.heap_len = 0, _.heap_max = u, W = 0; W < ot; W++) V[2 * W] !== 0 ? (_.heap[++_.heap_len] =
|
|
2880
|
-
for (; _.heap_len < 2; ) V[2 * (
|
|
2881
|
-
for (D.max_code =
|
|
2882
|
-
for (
|
|
2883
|
-
_.heap[--_.heap_max] = _.heap[1], function(ct,
|
|
2884
|
-
var Ot, bt, Bt,
|
|
2885
|
-
for (
|
|
2886
|
-
for (wt[2 * ct.heap[ct.heap_max] + 1] = 0, Ot = ct.heap_max + 1; Ot < u; Ot++) Rt < (
|
|
2878
|
+
var W, J, T, V = D.dyn_tree, nt = D.stat_desc.static_tree, Q = D.stat_desc.has_stree, ot = D.stat_desc.elems, ht = -1;
|
|
2879
|
+
for (_.heap_len = 0, _.heap_max = u, W = 0; W < ot; W++) V[2 * W] !== 0 ? (_.heap[++_.heap_len] = ht = W, _.depth[W] = 0) : V[2 * W + 1] = 0;
|
|
2880
|
+
for (; _.heap_len < 2; ) V[2 * (T = _.heap[++_.heap_len] = ht < 2 ? ++ht : 0)] = 1, _.depth[T] = 0, _.opt_len--, Q && (_.static_len -= nt[2 * T + 1]);
|
|
2881
|
+
for (D.max_code = ht, W = _.heap_len >> 1; 1 <= W; W--) K(_, V, W);
|
|
2882
|
+
for (T = ot; W = _.heap[1], _.heap[1] = _.heap[_.heap_len--], K(_, V, 1), J = _.heap[1], _.heap[--_.heap_max] = W, _.heap[--_.heap_max] = J, V[2 * T] = V[2 * W] + V[2 * J], _.depth[T] = (_.depth[W] >= _.depth[J] ? _.depth[W] : _.depth[J]) + 1, V[2 * W + 1] = V[2 * J + 1] = T, _.heap[1] = T++, K(_, V, 1), 2 <= _.heap_len; ) ;
|
|
2883
|
+
_.heap[--_.heap_max] = _.heap[1], function(ct, yt) {
|
|
2884
|
+
var Ot, bt, Bt, ft, Ft, Xt, wt = yt.dyn_tree, se = yt.max_code, je = yt.stat_desc.static_tree, Fe = yt.stat_desc.has_stree, Ke = yt.stat_desc.extra_bits, ie = yt.stat_desc.extra_base, Rt = yt.stat_desc.max_length, Kt = 0;
|
|
2885
|
+
for (ft = 0; ft <= h; ft++) ct.bl_count[ft] = 0;
|
|
2886
|
+
for (wt[2 * ct.heap[ct.heap_max] + 1] = 0, Ot = ct.heap_max + 1; Ot < u; Ot++) Rt < (ft = wt[2 * wt[2 * (bt = ct.heap[Ot]) + 1] + 1] + 1) && (ft = Rt, Kt++), wt[2 * bt + 1] = ft, se < bt || (ct.bl_count[ft]++, Ft = 0, ie <= bt && (Ft = Ke[bt - ie]), Xt = wt[2 * bt], ct.opt_len += Xt * (ft + Ft), Fe && (ct.static_len += Xt * (je[2 * bt + 1] + Ft)));
|
|
2887
2887
|
if (Kt !== 0) {
|
|
2888
2888
|
do {
|
|
2889
|
-
for (
|
|
2890
|
-
ct.bl_count[
|
|
2889
|
+
for (ft = Rt - 1; ct.bl_count[ft] === 0; ) ft--;
|
|
2890
|
+
ct.bl_count[ft]--, ct.bl_count[ft + 1] += 2, ct.bl_count[Rt]--, Kt -= 2;
|
|
2891
2891
|
} while (0 < Kt);
|
|
2892
|
-
for (
|
|
2892
|
+
for (ft = Rt; ft !== 0; ft--) for (bt = ct.bl_count[ft]; bt !== 0; ) se < (Bt = ct.heap[--Ot]) || (wt[2 * Bt + 1] !== ft && (ct.opt_len += (ft - wt[2 * Bt + 1]) * wt[2 * Bt], wt[2 * Bt + 1] = ft), bt--);
|
|
2893
2893
|
}
|
|
2894
|
-
}(_, D), lt(V,
|
|
2894
|
+
}(_, D), lt(V, ht, _.bl_count);
|
|
2895
2895
|
}
|
|
2896
2896
|
function t(_, D, W) {
|
|
2897
|
-
var J,
|
|
2898
|
-
for (nt === 0 && (ot = 138,
|
|
2897
|
+
var J, T, V = -1, nt = D[1], Q = 0, ot = 7, ht = 4;
|
|
2898
|
+
for (nt === 0 && (ot = 138, ht = 3), D[2 * (W + 1) + 1] = 65535, J = 0; J <= W; J++) T = nt, nt = D[2 * (J + 1) + 1], ++Q < ot && T === nt || (Q < ht ? _.bl_tree[2 * T] += Q : T !== 0 ? (T !== V && _.bl_tree[2 * T]++, _.bl_tree[2 * C]++) : Q <= 10 ? _.bl_tree[2 * I]++ : _.bl_tree[2 * j]++, V = T, ht = (Q = 0) === nt ? (ot = 138, 3) : T === nt ? (ot = 6, 3) : (ot = 7, 4));
|
|
2899
2899
|
}
|
|
2900
2900
|
function R(_, D, W) {
|
|
2901
|
-
var J,
|
|
2902
|
-
for (nt === 0 && (ot = 138,
|
|
2903
|
-
if (Q <
|
|
2904
|
-
else
|
|
2905
|
-
V =
|
|
2901
|
+
var J, T, V = -1, nt = D[1], Q = 0, ot = 7, ht = 4;
|
|
2902
|
+
for (nt === 0 && (ot = 138, ht = 3), J = 0; J <= W; J++) if (T = nt, nt = D[2 * (J + 1) + 1], !(++Q < ot && T === nt)) {
|
|
2903
|
+
if (Q < ht) for (; H(_, T, _.bl_tree), --Q != 0; ) ;
|
|
2904
|
+
else T !== 0 ? (T !== V && (H(_, T, _.bl_tree), Q--), H(_, C, _.bl_tree), tt(_, Q - 3, 2)) : Q <= 10 ? (H(_, I, _.bl_tree), tt(_, Q - 3, 3)) : (H(_, j, _.bl_tree), tt(_, Q - 11, 7));
|
|
2905
|
+
V = T, ht = (Q = 0) === nt ? (ot = 138, 3) : T === nt ? (ot = 6, 3) : (ot = 7, 4);
|
|
2906
2906
|
}
|
|
2907
2907
|
}
|
|
2908
|
-
|
|
2908
|
+
a(G);
|
|
2909
2909
|
var O = !1;
|
|
2910
2910
|
function k(_, D, W, J) {
|
|
2911
|
-
tt(_, (c << 1) + (J ? 1 : 0), 3), function(
|
|
2912
|
-
|
|
2911
|
+
tt(_, (c << 1) + (J ? 1 : 0), 3), function(T, V, nt, Q) {
|
|
2912
|
+
M(T), rt(T, nt), rt(T, ~nt), s.arraySet(T.pending_buf, T.window, V, nt, T.pending), T.pending += nt;
|
|
2913
2913
|
}(_, D, W);
|
|
2914
2914
|
}
|
|
2915
|
-
|
|
2915
|
+
y._tr_init = function(_) {
|
|
2916
2916
|
O || (function() {
|
|
2917
|
-
var D, W, J,
|
|
2918
|
-
for (
|
|
2919
|
-
for (i[J - 1] =
|
|
2920
|
-
for (V >>= 7;
|
|
2921
|
-
for (W = 0; W <=
|
|
2917
|
+
var D, W, J, T, V, nt = new Array(h + 1);
|
|
2918
|
+
for (T = J = 0; T < f - 1; T++) for (L[T] = J, D = 0; D < 1 << N[T]; D++) i[J++] = T;
|
|
2919
|
+
for (i[J - 1] = T, T = V = 0; T < 16; T++) for (G[T] = V, D = 0; D < 1 << U[T]; D++) P[V++] = T;
|
|
2920
|
+
for (V >>= 7; T < r; T++) for (G[T] = V << 7, D = 0; D < 1 << U[T] - 7; D++) P[256 + V++] = T;
|
|
2921
|
+
for (W = 0; W <= h; W++) nt[W] = 0;
|
|
2922
2922
|
for (D = 0; D <= 143; ) q[2 * D + 1] = 8, D++, nt[8]++;
|
|
2923
2923
|
for (; D <= 255; ) q[2 * D + 1] = 9, D++, nt[9]++;
|
|
2924
2924
|
for (; D <= 279; ) q[2 * D + 1] = 7, D++, nt[7]++;
|
|
2925
2925
|
for (; D <= 287; ) q[2 * D + 1] = 8, D++, nt[8]++;
|
|
2926
|
-
for (lt(q,
|
|
2927
|
-
$ = new st(q, N, g + 1,
|
|
2926
|
+
for (lt(q, m + 1, nt), D = 0; D < r; D++) S[2 * D + 1] = 5, S[2 * D] = ut(D, 5);
|
|
2927
|
+
$ = new st(q, N, g + 1, m, h), Z = new st(S, U, 0, r, h), it = new st(new Array(0), x, 0, d, v);
|
|
2928
2928
|
}(), O = !0), _.l_desc = new B(_.dyn_ltree, $), _.d_desc = new B(_.dyn_dtree, Z), _.bl_desc = new B(_.bl_tree, it), _.bi_buf = 0, _.bi_valid = 0, z(_);
|
|
2929
|
-
},
|
|
2930
|
-
var
|
|
2929
|
+
}, y._tr_stored_block = k, y._tr_flush_block = function(_, D, W, J) {
|
|
2930
|
+
var T, V, nt = 0;
|
|
2931
2931
|
0 < _.level ? (_.strm.data_type === 2 && (_.strm.data_type = function(Q) {
|
|
2932
|
-
var ot,
|
|
2933
|
-
for (ot = 0; ot <= 31; ot++,
|
|
2932
|
+
var ot, ht = 4093624447;
|
|
2933
|
+
for (ot = 0; ot <= 31; ot++, ht >>>= 1) if (1 & ht && Q.dyn_ltree[2 * ot] !== 0) return o;
|
|
2934
2934
|
if (Q.dyn_ltree[18] !== 0 || Q.dyn_ltree[20] !== 0 || Q.dyn_ltree[26] !== 0) return n;
|
|
2935
2935
|
for (ot = 32; ot < g; ot++) if (Q.dyn_ltree[2 * ot] !== 0) return n;
|
|
2936
2936
|
return o;
|
|
@@ -2938,28 +2938,28 @@ function Nr() {
|
|
|
2938
2938
|
var ot;
|
|
2939
2939
|
for (t(Q, Q.dyn_ltree, Q.l_desc.max_code), t(Q, Q.dyn_dtree, Q.d_desc.max_code), at(Q, Q.bl_desc), ot = d - 1; 3 <= ot && Q.bl_tree[2 * F[ot] + 1] === 0; ot--) ;
|
|
2940
2940
|
return Q.opt_len += 3 * (ot + 1) + 5 + 5 + 4, ot;
|
|
2941
|
-
}(_),
|
|
2942
|
-
var
|
|
2943
|
-
for (tt(Q, ot - 257, 5), tt(Q,
|
|
2944
|
-
R(Q, Q.dyn_ltree, ot - 1), R(Q, Q.dyn_dtree,
|
|
2945
|
-
}(_, _.l_desc.max_code + 1, _.d_desc.max_code + 1, nt + 1), X(_, _.dyn_ltree, _.dyn_dtree)), z(_), J &&
|
|
2946
|
-
},
|
|
2941
|
+
}(_), T = _.opt_len + 3 + 7 >>> 3, (V = _.static_len + 3 + 7 >>> 3) <= T && (T = V)) : T = V = W + 5, W + 4 <= T && D !== -1 ? k(_, D, W, J) : _.strategy === 4 || V === T ? (tt(_, 2 + (J ? 1 : 0), 3), X(_, q, S)) : (tt(_, 4 + (J ? 1 : 0), 3), function(Q, ot, ht, ct) {
|
|
2942
|
+
var yt;
|
|
2943
|
+
for (tt(Q, ot - 257, 5), tt(Q, ht - 1, 5), tt(Q, ct - 4, 4), yt = 0; yt < ct; yt++) tt(Q, Q.bl_tree[2 * F[yt] + 1], 3);
|
|
2944
|
+
R(Q, Q.dyn_ltree, ot - 1), R(Q, Q.dyn_dtree, ht - 1);
|
|
2945
|
+
}(_, _.l_desc.max_code + 1, _.d_desc.max_code + 1, nt + 1), X(_, _.dyn_ltree, _.dyn_dtree)), z(_), J && M(_);
|
|
2946
|
+
}, y._tr_tally = function(_, D, W) {
|
|
2947
2947
|
return _.pending_buf[_.d_buf + 2 * _.last_lit] = D >>> 8 & 255, _.pending_buf[_.d_buf + 2 * _.last_lit + 1] = 255 & D, _.pending_buf[_.l_buf + _.last_lit] = 255 & W, _.last_lit++, D === 0 ? _.dyn_ltree[2 * W]++ : (_.matches++, D--, _.dyn_ltree[2 * (i[W] + g + 1)]++, _.dyn_dtree[2 * E(D)]++), _.last_lit === _.lit_bufsize - 1;
|
|
2948
|
-
},
|
|
2948
|
+
}, y._tr_align = function(_) {
|
|
2949
2949
|
tt(_, 2, 3), H(_, A, q), function(D) {
|
|
2950
2950
|
D.bi_valid === 16 ? (rt(D, D.bi_buf), D.bi_buf = 0, D.bi_valid = 0) : 8 <= D.bi_valid && (D.pending_buf[D.pending++] = 255 & D.bi_buf, D.bi_buf >>= 8, D.bi_valid -= 8);
|
|
2951
2951
|
}(_);
|
|
2952
2952
|
};
|
|
2953
|
-
}, { "../utils/common": 41 }], 53: [function(e, w,
|
|
2953
|
+
}, { "../utils/common": 41 }], 53: [function(e, w, y) {
|
|
2954
2954
|
w.exports = function() {
|
|
2955
2955
|
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;
|
|
2956
2956
|
};
|
|
2957
|
-
}, {}], 54: [function(e, w,
|
|
2958
|
-
(function(
|
|
2957
|
+
}, {}], 54: [function(e, w, y) {
|
|
2958
|
+
(function(s) {
|
|
2959
2959
|
(function(o, n) {
|
|
2960
2960
|
if (!o.setImmediate) {
|
|
2961
|
-
var
|
|
2962
|
-
|
|
2961
|
+
var a, c, f, g, m = 1, r = {}, d = !1, u = o.document, h = Object.getPrototypeOf && Object.getPrototypeOf(o);
|
|
2962
|
+
h = h && h.setTimeout ? h : o, a = {}.toString.call(o.process) === "[object process]" ? function(C) {
|
|
2963
2963
|
process.nextTick(function() {
|
|
2964
2964
|
v(C);
|
|
2965
2965
|
});
|
|
@@ -2972,10 +2972,10 @@ function Nr() {
|
|
|
2972
2972
|
}
|
|
2973
2973
|
}() ? (g = "setImmediate$" + Math.random() + "$", o.addEventListener ? o.addEventListener("message", A, !1) : o.attachEvent("onmessage", A), function(C) {
|
|
2974
2974
|
o.postMessage(g + C, "*");
|
|
2975
|
-
}) : o.MessageChannel ? ((
|
|
2975
|
+
}) : o.MessageChannel ? ((f = new MessageChannel()).port1.onmessage = function(C) {
|
|
2976
2976
|
v(C.data);
|
|
2977
2977
|
}, function(C) {
|
|
2978
|
-
|
|
2978
|
+
f.port2.postMessage(C);
|
|
2979
2979
|
}) : u && "onreadystatechange" in u.createElement("script") ? (c = u.documentElement, function(C) {
|
|
2980
2980
|
var I = u.createElement("script");
|
|
2981
2981
|
I.onreadystatechange = function() {
|
|
@@ -2983,12 +2983,12 @@ function Nr() {
|
|
|
2983
2983
|
}, c.appendChild(I);
|
|
2984
2984
|
}) : function(C) {
|
|
2985
2985
|
setTimeout(v, 0, C);
|
|
2986
|
-
},
|
|
2986
|
+
}, h.setImmediate = function(C) {
|
|
2987
2987
|
typeof C != "function" && (C = new Function("" + C));
|
|
2988
|
-
for (var I = new Array(arguments.length - 1),
|
|
2988
|
+
for (var I = new Array(arguments.length - 1), j = 0; j < I.length; j++) I[j] = arguments[j + 1];
|
|
2989
2989
|
var N = { callback: C, args: I };
|
|
2990
|
-
return r[
|
|
2991
|
-
},
|
|
2990
|
+
return r[m] = N, a(m), m++;
|
|
2991
|
+
}, h.clearImmediate = l;
|
|
2992
2992
|
}
|
|
2993
2993
|
function l(C) {
|
|
2994
2994
|
delete r[C];
|
|
@@ -3000,8 +3000,8 @@ function Nr() {
|
|
|
3000
3000
|
if (I) {
|
|
3001
3001
|
d = !0;
|
|
3002
3002
|
try {
|
|
3003
|
-
(function(
|
|
3004
|
-
var N =
|
|
3003
|
+
(function(j) {
|
|
3004
|
+
var N = j.callback, U = j.args;
|
|
3005
3005
|
switch (U.length) {
|
|
3006
3006
|
case 0:
|
|
3007
3007
|
N();
|
|
@@ -3028,7 +3028,7 @@ function Nr() {
|
|
|
3028
3028
|
function A(C) {
|
|
3029
3029
|
C.source === o && typeof C.data == "string" && C.data.indexOf(g) === 0 && v(+C.data.slice(g.length));
|
|
3030
3030
|
}
|
|
3031
|
-
})(typeof self > "u" ?
|
|
3031
|
+
})(typeof self > "u" ? s === void 0 ? this : s : self);
|
|
3032
3032
|
}).call(this, typeof kt < "u" ? kt : typeof self < "u" ? self : typeof window < "u" ? window : {});
|
|
3033
3033
|
}, {}] }, {}, [10])(10);
|
|
3034
3034
|
});
|
|
@@ -3036,79 +3036,79 @@ function Nr() {
|
|
|
3036
3036
|
}
|
|
3037
3037
|
var Ur = Nr();
|
|
3038
3038
|
const Lr = /* @__PURE__ */ gr(Ur);
|
|
3039
|
-
var Gt = { exports: {} },
|
|
3040
|
-
function
|
|
3039
|
+
var Gt = { exports: {} }, Mr = Gt.exports, ve;
|
|
3040
|
+
function jr() {
|
|
3041
3041
|
return ve || (ve = 1, function(p, b) {
|
|
3042
3042
|
(function(e, w) {
|
|
3043
3043
|
w();
|
|
3044
|
-
})(
|
|
3045
|
-
function e(c,
|
|
3046
|
-
return typeof
|
|
3044
|
+
})(Mr, function() {
|
|
3045
|
+
function e(c, f) {
|
|
3046
|
+
return typeof f > "u" ? f = { autoBom: !1 } : typeof f != "object" && (console.warn("Deprecated: Expected third argument to be a object"), f = { autoBom: !f }), f.autoBom && /^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(c.type) ? new Blob(["\uFEFF", c], { type: c.type }) : c;
|
|
3047
3047
|
}
|
|
3048
|
-
function w(c,
|
|
3049
|
-
var
|
|
3050
|
-
|
|
3051
|
-
|
|
3052
|
-
},
|
|
3048
|
+
function w(c, f, g) {
|
|
3049
|
+
var m = new XMLHttpRequest();
|
|
3050
|
+
m.open("GET", c), m.responseType = "blob", m.onload = function() {
|
|
3051
|
+
a(m.response, f, g);
|
|
3052
|
+
}, m.onerror = function() {
|
|
3053
3053
|
console.error("could not download file");
|
|
3054
|
-
},
|
|
3054
|
+
}, m.send();
|
|
3055
3055
|
}
|
|
3056
|
-
function
|
|
3057
|
-
var
|
|
3058
|
-
|
|
3056
|
+
function y(c) {
|
|
3057
|
+
var f = new XMLHttpRequest();
|
|
3058
|
+
f.open("HEAD", c, !1);
|
|
3059
3059
|
try {
|
|
3060
|
-
|
|
3060
|
+
f.send();
|
|
3061
3061
|
} catch {
|
|
3062
3062
|
}
|
|
3063
|
-
return 200 <=
|
|
3063
|
+
return 200 <= f.status && 299 >= f.status;
|
|
3064
3064
|
}
|
|
3065
|
-
function
|
|
3065
|
+
function s(c) {
|
|
3066
3066
|
try {
|
|
3067
3067
|
c.dispatchEvent(new MouseEvent("click"));
|
|
3068
3068
|
} catch {
|
|
3069
|
-
var
|
|
3070
|
-
|
|
3069
|
+
var f = document.createEvent("MouseEvents");
|
|
3070
|
+
f.initMouseEvent("click", !0, !0, window, 0, 0, 0, 80, 20, !1, !1, !1, !1, 0, null), c.dispatchEvent(f);
|
|
3071
3071
|
}
|
|
3072
3072
|
}
|
|
3073
|
-
var o = typeof window == "object" && window.window === window ? window : typeof self == "object" && self.self === self ? self : typeof kt == "object" && kt.global === kt ? kt : void 0, n = o.navigator && /Macintosh/.test(navigator.userAgent) && /AppleWebKit/.test(navigator.userAgent) && !/Safari/.test(navigator.userAgent),
|
|
3074
|
-
} : "download" in HTMLAnchorElement.prototype && !n ? function(c,
|
|
3075
|
-
var
|
|
3076
|
-
|
|
3077
|
-
|
|
3073
|
+
var o = typeof window == "object" && window.window === window ? window : typeof self == "object" && self.self === self ? self : typeof kt == "object" && kt.global === kt ? kt : void 0, n = o.navigator && /Macintosh/.test(navigator.userAgent) && /AppleWebKit/.test(navigator.userAgent) && !/Safari/.test(navigator.userAgent), a = o.saveAs || (typeof window != "object" || window !== o ? function() {
|
|
3074
|
+
} : "download" in HTMLAnchorElement.prototype && !n ? function(c, f, g) {
|
|
3075
|
+
var m = o.URL || o.webkitURL, r = document.createElement("a");
|
|
3076
|
+
f = f || c.name || "download", r.download = f, r.rel = "noopener", typeof c == "string" ? (r.href = c, r.origin === location.origin ? s(r) : y(r.href) ? w(c, f, g) : s(r, r.target = "_blank")) : (r.href = m.createObjectURL(c), setTimeout(function() {
|
|
3077
|
+
m.revokeObjectURL(r.href);
|
|
3078
3078
|
}, 4e4), setTimeout(function() {
|
|
3079
|
-
|
|
3079
|
+
s(r);
|
|
3080
3080
|
}, 0));
|
|
3081
|
-
} : "msSaveOrOpenBlob" in navigator ? function(c,
|
|
3082
|
-
if (
|
|
3083
|
-
else if (
|
|
3081
|
+
} : "msSaveOrOpenBlob" in navigator ? function(c, f, g) {
|
|
3082
|
+
if (f = f || c.name || "download", typeof c != "string") navigator.msSaveOrOpenBlob(e(c, g), f);
|
|
3083
|
+
else if (y(c)) w(c, f, g);
|
|
3084
3084
|
else {
|
|
3085
|
-
var
|
|
3086
|
-
|
|
3087
|
-
|
|
3085
|
+
var m = document.createElement("a");
|
|
3086
|
+
m.href = c, m.target = "_blank", setTimeout(function() {
|
|
3087
|
+
s(m);
|
|
3088
3088
|
});
|
|
3089
3089
|
}
|
|
3090
|
-
} : function(c,
|
|
3091
|
-
if (
|
|
3090
|
+
} : function(c, f, g, m) {
|
|
3091
|
+
if (m = m || open("", "_blank"), m && (m.document.title = m.document.body.innerText = "downloading..."), typeof c == "string") return w(c, f, g);
|
|
3092
3092
|
var r = c.type === "application/octet-stream", d = /constructor/i.test(o.HTMLElement) || o.safari, u = /CriOS\/[\d]+/.test(navigator.userAgent);
|
|
3093
3093
|
if ((u || r && d || n) && typeof FileReader < "u") {
|
|
3094
|
-
var
|
|
3095
|
-
|
|
3096
|
-
var A =
|
|
3097
|
-
A = u ? A : A.replace(/^data:[^;]*;/, "data:attachment/file;"),
|
|
3098
|
-
},
|
|
3094
|
+
var h = new FileReader();
|
|
3095
|
+
h.onloadend = function() {
|
|
3096
|
+
var A = h.result;
|
|
3097
|
+
A = u ? A : A.replace(/^data:[^;]*;/, "data:attachment/file;"), m ? m.location.href = A : location = A, m = null;
|
|
3098
|
+
}, h.readAsDataURL(c);
|
|
3099
3099
|
} else {
|
|
3100
3100
|
var l = o.URL || o.webkitURL, v = l.createObjectURL(c);
|
|
3101
|
-
|
|
3101
|
+
m ? m.location = v : location.href = v, m = null, setTimeout(function() {
|
|
3102
3102
|
l.revokeObjectURL(v);
|
|
3103
3103
|
}, 4e4);
|
|
3104
3104
|
}
|
|
3105
3105
|
});
|
|
3106
|
-
o.saveAs =
|
|
3106
|
+
o.saveAs = a.saveAs = a, p.exports = a;
|
|
3107
3107
|
});
|
|
3108
3108
|
}(Gt)), Gt.exports;
|
|
3109
3109
|
}
|
|
3110
|
-
var Fr =
|
|
3111
|
-
const Kr = De(), { loginUserInfo: be, cryptoInfo: zt } = Dt(Kr), dt = Be(qt), { itemData: Zr, curStructureCompIds: we, isSubmitCurStructure: Wr, isRefreshCurStructure: Hr, freshContent: ke } = Dt(dt), Ue = ae(qt), { activeMenuPath:
|
|
3110
|
+
var Fr = jr();
|
|
3111
|
+
const Kr = De(), { loginUserInfo: be, cryptoInfo: zt } = Dt(Kr), dt = Be(qt), { itemData: Zr, curStructureCompIds: we, isSubmitCurStructure: Wr, isRefreshCurStructure: Hr, freshContent: ke } = Dt(dt), Ue = ae(qt), { activeMenuPath: mt, platform: Se, buttonTriggerType: Gr, cacheStructures: Jr } = Dt(Ue), _t = cr(qt), { selectTitle: At } = Dt(_t), $r = (p, b) => {
|
|
3112
3112
|
const e = new Lr();
|
|
3113
3113
|
p.forEach((w) => {
|
|
3114
3114
|
e.file(w.name, w.content);
|
|
@@ -3120,27 +3120,27 @@ const Kr = De(), { loginUserInfo: be, cryptoInfo: zt } = Dt(Kr), dt = Be(qt), {
|
|
|
3120
3120
|
{ name: Se.value === "browser" ? "insoftest-SSIP.exe" : "insofrobot-TubeBending.exe", content: "欢迎使用" }
|
|
3121
3121
|
], b = Se.value === "browser" ? "insoftest-SSIP" : "insofrobot-TubeBending";
|
|
3122
3122
|
$r(p, b);
|
|
3123
|
-
}, Pn = () => {
|
|
3124
|
-
dt.setIsEdit("edit"), dt.setSubmitCurStructure(yt.value !== "/平台管理/菜单管理");
|
|
3125
3123
|
}, Tn = () => {
|
|
3124
|
+
dt.setIsEdit("edit"), dt.setSubmitCurStructure(mt.value !== "/平台管理/菜单管理");
|
|
3125
|
+
}, Pn = () => {
|
|
3126
3126
|
dt.setIsEdit("view"), dt.setRefreshCurStructure(!0);
|
|
3127
3127
|
}, Nn = async (p) => {
|
|
3128
3128
|
var b;
|
|
3129
3129
|
if ((p == null ? void 0 : p.key) === "main" || At.value.length === 1)
|
|
3130
|
-
pt.value = await
|
|
3130
|
+
pt.value = await Mt(mt.value, sessionStorage.getItem("systemKey")), _t.setSelectIndex(""), _t.setSelectMenu(""), _t.setSelectTitle([]);
|
|
3131
3131
|
else {
|
|
3132
3132
|
const e = [], w = (p == null ? void 0 : p.key) === "" || !(p != null && p.key) ? "" : parseInt(p == null ? void 0 : p.key);
|
|
3133
|
-
pt.value = await
|
|
3134
|
-
let
|
|
3135
|
-
(b = At.value) == null || b.forEach((
|
|
3136
|
-
(
|
|
3133
|
+
pt.value = await Mt(mt.value, sessionStorage.getItem("systemKey"), w);
|
|
3134
|
+
let y = -1;
|
|
3135
|
+
(b = At.value) == null || b.forEach((s, o) => {
|
|
3136
|
+
(s == null ? void 0 : s.key) === (p == null ? void 0 : p.key) && (y = o), (y === -1 || y >= o) && e.push(s);
|
|
3137
3137
|
}), _t.setSelectTitle(e), w !== "" ? _t.setSelectMenu(p == null ? void 0 : p.key) : (_t.setSelectIndex(""), _t.setSelectMenu(""));
|
|
3138
3138
|
}
|
|
3139
3139
|
dt.setItemData(pt.value), dt.setOriginalData(pt.value);
|
|
3140
3140
|
}, ee = async (p, b, e, w = "contentConfig") => {
|
|
3141
|
-
var
|
|
3141
|
+
var y, s, o;
|
|
3142
3142
|
try {
|
|
3143
|
-
let n,
|
|
3143
|
+
let n, a;
|
|
3144
3144
|
b === "create" ? (n = {
|
|
3145
3145
|
key: {
|
|
3146
3146
|
systemKey: sessionStorage.getItem("systemKey"),
|
|
@@ -3153,10 +3153,10 @@ const Kr = De(), { loginUserInfo: be, cryptoInfo: zt } = Dt(Kr), dt = Be(qt), {
|
|
|
3153
3153
|
value: {
|
|
3154
3154
|
pageData: {
|
|
3155
3155
|
...p,
|
|
3156
|
-
compData: (
|
|
3156
|
+
compData: (y = p == null ? void 0 : p.compData) == null ? void 0 : y.filter((f) => (f == null ? void 0 : f.key) !== "tableContents")
|
|
3157
3157
|
}
|
|
3158
3158
|
}
|
|
3159
|
-
},
|
|
3159
|
+
}, a = Ut) : b === "update" ? (n = {
|
|
3160
3160
|
id: p == null ? void 0 : p.id,
|
|
3161
3161
|
key: {
|
|
3162
3162
|
systemKey: sessionStorage.getItem("systemKey"),
|
|
@@ -3169,10 +3169,10 @@ const Kr = De(), { loginUserInfo: be, cryptoInfo: zt } = Dt(Kr), dt = Be(qt), {
|
|
|
3169
3169
|
value: {
|
|
3170
3170
|
pageData: {
|
|
3171
3171
|
...p,
|
|
3172
|
-
compData: (
|
|
3172
|
+
compData: (s = p == null ? void 0 : p.compData) == null ? void 0 : s.filter((f) => (f == null ? void 0 : f.key) !== "tableContents")
|
|
3173
3173
|
}
|
|
3174
3174
|
}
|
|
3175
|
-
},
|
|
3175
|
+
}, a = Lt) : b === "delete" && (n = {
|
|
3176
3176
|
id: p,
|
|
3177
3177
|
key: {
|
|
3178
3178
|
systemKey: sessionStorage.getItem("systemKey"),
|
|
@@ -3182,8 +3182,8 @@ const Kr = De(), { loginUserInfo: be, cryptoInfo: zt } = Dt(Kr), dt = Be(qt), {
|
|
|
3182
3182
|
parentTable: "",
|
|
3183
3183
|
version: 1
|
|
3184
3184
|
}
|
|
3185
|
-
},
|
|
3186
|
-
const c = await
|
|
3185
|
+
}, a = Ie);
|
|
3186
|
+
const c = await a(n);
|
|
3187
3187
|
if (((o = c == null ? void 0 : c.data) == null ? void 0 : o.code) === 200)
|
|
3188
3188
|
return c.data.result;
|
|
3189
3189
|
throw Et.error("保存响应失败"), new Error("保存响应失败");
|
|
@@ -3198,21 +3198,21 @@ const Kr = De(), { loginUserInfo: be, cryptoInfo: zt } = Dt(Kr), dt = Be(qt), {
|
|
|
3198
3198
|
key: Gr.value,
|
|
3199
3199
|
data: b
|
|
3200
3200
|
}), Et.success("已暂存");
|
|
3201
|
-
const e = b == null ? void 0 : b.map((
|
|
3201
|
+
const e = b == null ? void 0 : b.map((f) => f.id), w = e.filter((f) => {
|
|
3202
3202
|
var g;
|
|
3203
|
-
return !((g = we.value) != null && g.includes(
|
|
3204
|
-
}),
|
|
3205
|
-
let
|
|
3206
|
-
|
|
3207
|
-
|
|
3208
|
-
})), o && (o == null ? void 0 : o.length) > 0 && (o == null || o.forEach((
|
|
3209
|
-
|
|
3210
|
-
})), n && (n == null ? void 0 : n.length) > 0 && (n == null || n.forEach((
|
|
3211
|
-
e != null && e.includes(
|
|
3212
|
-
})), Promise.all(
|
|
3203
|
+
return !((g = we.value) != null && g.includes(f));
|
|
3204
|
+
}), y = (c = we.value) == null ? void 0 : c.filter((f) => !e.includes(f)), s = [...w, ...y], o = b == null ? void 0 : b.filter((f) => !f.id), n = b == null ? void 0 : b.filter((f) => f.id);
|
|
3205
|
+
let a = [];
|
|
3206
|
+
s && (s == null ? void 0 : s.length) > 0 && (s == null || s.forEach((f) => {
|
|
3207
|
+
f && a.push(ee(f, "delete", p));
|
|
3208
|
+
})), o && (o == null ? void 0 : o.length) > 0 && (o == null || o.forEach((f) => {
|
|
3209
|
+
f && a.push(ee(f, "create", p));
|
|
3210
|
+
})), n && (n == null ? void 0 : n.length) > 0 && (n == null || n.forEach((f) => {
|
|
3211
|
+
e != null && e.includes(f.id) && (console.log("clickSavePage5", "包含"), f && a.push(ee(f, "update", p)));
|
|
3212
|
+
})), Promise.all(a).then(() => {
|
|
3213
3213
|
Et.success("保存成功"), dt.setRefreshCurStructure(!0);
|
|
3214
|
-
}).catch((
|
|
3215
|
-
Et.success(
|
|
3214
|
+
}).catch((f) => {
|
|
3215
|
+
Et.success(f);
|
|
3216
3216
|
});
|
|
3217
3217
|
};
|
|
3218
3218
|
xt(() => {
|
|
@@ -3227,17 +3227,17 @@ xt(() => {
|
|
|
3227
3227
|
}, (p) => {
|
|
3228
3228
|
p === 0 && $t.value.splice(0);
|
|
3229
3229
|
}, { immediate: !0 });
|
|
3230
|
-
const Ln = (p) => Ar(p), pt = vt([]),
|
|
3231
|
-
var w,
|
|
3230
|
+
const Ln = (p) => Ar(p), pt = vt([]), Mn = async (p, b = "data") => {
|
|
3231
|
+
var w, y, s, o, n, a;
|
|
3232
3232
|
if ((p == null ? void 0 : p.type) === "delete")
|
|
3233
|
-
await
|
|
3233
|
+
await fr((w = p == null ? void 0 : p.singleContent) == null ? void 0 : w.id);
|
|
3234
3234
|
else if ((p == null ? void 0 : p.buttonName) === "新增") {
|
|
3235
3235
|
let c = {};
|
|
3236
|
-
for (let
|
|
3237
|
-
|
|
3236
|
+
for (let f in p == null ? void 0 : p.singleContent)
|
|
3237
|
+
f !== "id" && f !== "index" && (c[f] = p == null ? void 0 : p.singleContent[f]);
|
|
3238
3238
|
await dr(
|
|
3239
3239
|
b,
|
|
3240
|
-
|
|
3240
|
+
mt.value,
|
|
3241
3241
|
p == null ? void 0 : p.index,
|
|
3242
3242
|
sessionStorage.getItem("systemKey"),
|
|
3243
3243
|
Object.values(c),
|
|
@@ -3245,36 +3245,36 @@ const Ln = (p) => Ar(p), pt = vt([]), jn = async (p, b = "data") => {
|
|
|
3245
3245
|
p
|
|
3246
3246
|
);
|
|
3247
3247
|
} else if ((p == null ? void 0 : p.buttonName) === "编辑") {
|
|
3248
|
-
let c = {},
|
|
3248
|
+
let c = {}, f = (y = p == null ? void 0 : p.singleContent) == null ? void 0 : y.id;
|
|
3249
3249
|
for (let g in p == null ? void 0 : p.singleContent)
|
|
3250
3250
|
g !== "id" && g !== "index" && (c[g] = p == null ? void 0 : p.singleContent[g]);
|
|
3251
3251
|
await pr(
|
|
3252
3252
|
b,
|
|
3253
|
-
|
|
3253
|
+
mt.value,
|
|
3254
3254
|
p == null ? void 0 : p.index,
|
|
3255
|
-
|
|
3255
|
+
f,
|
|
3256
3256
|
sessionStorage.getItem("systemKey"),
|
|
3257
3257
|
Object.values(c),
|
|
3258
3258
|
p == null ? void 0 : p.column
|
|
3259
3259
|
);
|
|
3260
3260
|
}
|
|
3261
|
-
let e = (o = (
|
|
3262
|
-
pt.value = await
|
|
3261
|
+
let e = (o = (s = At.value) == null ? void 0 : s[At.value.length - 1]) != null && o.key ? parseInt((a = (n = At.value) == null ? void 0 : n[At.value.length - 1]) == null ? void 0 : a.key) : "";
|
|
3262
|
+
pt.value = await Mt(mt.value, sessionStorage.getItem("systemKey"), e), dt.setItemData(pt.value), dt.setOriginalData(pt.value);
|
|
3263
3263
|
}, Yr = async (p) => {
|
|
3264
|
-
var e, w,
|
|
3264
|
+
var e, w, y, s, o;
|
|
3265
3265
|
const b = await Ct({
|
|
3266
3266
|
id: p
|
|
3267
3267
|
});
|
|
3268
|
-
return (o = (
|
|
3269
|
-
},
|
|
3270
|
-
var w,
|
|
3268
|
+
return (o = (s = (y = (w = (e = b == null ? void 0 : b.data) == null ? void 0 : e.result) == null ? void 0 : w[0]) == null ? void 0 : y.value) == null ? void 0 : s.pageData) == null ? void 0 : o.name;
|
|
3269
|
+
}, jn = async (p) => {
|
|
3270
|
+
var w, y;
|
|
3271
3271
|
const b = await Yr(p == null ? void 0 : p.index);
|
|
3272
|
-
await
|
|
3272
|
+
await hr(p == null ? void 0 : p.index, {
|
|
3273
3273
|
comp: "Form",
|
|
3274
|
-
compData: (w = et(p == null ? void 0 : p.contents)) == null ? void 0 : w.filter((
|
|
3274
|
+
compData: (w = et(p == null ? void 0 : p.contents)) == null ? void 0 : w.filter((s) => s.contents),
|
|
3275
3275
|
name: b
|
|
3276
3276
|
});
|
|
3277
|
-
const e = (
|
|
3277
|
+
const e = (y = et(pt.value)) == null ? void 0 : y.map((s) => ((s == null ? void 0 : s.id) === (p == null ? void 0 : p.index) && (s.compData = p == null ? void 0 : p.contents), s));
|
|
3278
3278
|
dt.setItemData(e), dt.setOriginalData(e);
|
|
3279
3279
|
}, Fn = (p) => {
|
|
3280
3280
|
pt.value = p, dt.setItemData(pt.value), dt.setOriginalData(pt.value);
|
|
@@ -3282,49 +3282,49 @@ const Ln = (p) => Ar(p), pt = vt([]), jn = async (p, b = "data") => {
|
|
|
3282
3282
|
var b, e, w;
|
|
3283
3283
|
return ((e = (b = be.value) == null ? void 0 : b.layer) == null ? void 0 : e.toUpperCase()) === "SUPERADMIN" ? !0 : ((w = be.value) == null ? void 0 : w.account) === (p == null ? void 0 : p.account);
|
|
3284
3284
|
}, xe = async (p, b, e) => {
|
|
3285
|
-
const w = ue("/系统管理/角色管理"),
|
|
3286
|
-
return await Promise.all([w,
|
|
3287
|
-
var c,
|
|
3285
|
+
const w = ue("/系统管理/角色管理"), y = ue("/系统管理/部门管理");
|
|
3286
|
+
return await Promise.all([w, y]).then((o) => {
|
|
3287
|
+
var c, f;
|
|
3288
3288
|
const n = (c = o == null ? void 0 : o[0]) == null ? void 0 : c.map((g) => ({
|
|
3289
3289
|
label: g == null ? void 0 : g.roleName,
|
|
3290
3290
|
value: g == null ? void 0 : g.roleName
|
|
3291
|
-
})),
|
|
3291
|
+
})), a = (f = o == null ? void 0 : o[1]) == null ? void 0 : f.map((g) => ({
|
|
3292
3292
|
label: g == null ? void 0 : g.deptName,
|
|
3293
3293
|
value: g == null ? void 0 : g.deptName
|
|
3294
3294
|
}));
|
|
3295
3295
|
return e ? p == null ? void 0 : p.map((g) => {
|
|
3296
|
-
var
|
|
3296
|
+
var m;
|
|
3297
3297
|
return {
|
|
3298
3298
|
...g,
|
|
3299
|
-
compData: (
|
|
3299
|
+
compData: (m = g == null ? void 0 : g.compData) == null ? void 0 : m.map((r) => {
|
|
3300
3300
|
var d, u;
|
|
3301
3301
|
return (r == null ? void 0 : r.key) === "header" ? {
|
|
3302
3302
|
...r,
|
|
3303
|
-
contents: (d = r == null ? void 0 : r.contents) == null ? void 0 : d.map((
|
|
3304
|
-
...
|
|
3305
|
-
options:
|
|
3306
|
-
} :
|
|
3307
|
-
...
|
|
3303
|
+
contents: (d = r == null ? void 0 : r.contents) == null ? void 0 : d.map((h) => h.prop === "userDept" ? {
|
|
3304
|
+
...h,
|
|
3305
|
+
options: a
|
|
3306
|
+
} : h.prop === "userRoles" ? {
|
|
3307
|
+
...h,
|
|
3308
3308
|
options: n
|
|
3309
|
-
} :
|
|
3309
|
+
} : h)
|
|
3310
3310
|
} : (r == null ? void 0 : r.key) === "tableContents" ? {
|
|
3311
3311
|
...r,
|
|
3312
|
-
contents: (u = r == null ? void 0 : r.contents) == null ? void 0 : u.map((
|
|
3312
|
+
contents: (u = r == null ? void 0 : r.contents) == null ? void 0 : u.map((h) => {
|
|
3313
3313
|
var l;
|
|
3314
3314
|
return {
|
|
3315
|
-
...
|
|
3316
|
-
password: Ae(
|
|
3315
|
+
...h,
|
|
3316
|
+
password: Ae(h) ? le(h == null ? void 0 : h.password, (l = zt == null ? void 0 : zt.value) == null ? void 0 : l.privateKey) : h == null ? void 0 : h.password
|
|
3317
3317
|
};
|
|
3318
3318
|
})
|
|
3319
3319
|
} : r;
|
|
3320
3320
|
})
|
|
3321
3321
|
};
|
|
3322
3322
|
}) : p == null ? void 0 : p.map((g) => {
|
|
3323
|
-
var
|
|
3323
|
+
var m;
|
|
3324
3324
|
return {
|
|
3325
3325
|
...g,
|
|
3326
|
-
compData: (
|
|
3327
|
-
var d, u,
|
|
3326
|
+
compData: (m = g == null ? void 0 : g.compData) == null ? void 0 : m.map((r) => {
|
|
3327
|
+
var d, u, h;
|
|
3328
3328
|
return (r == null ? void 0 : r.key) === "rowButton" || (r == null ? void 0 : r.key) === "extraButton" ? {
|
|
3329
3329
|
...r,
|
|
3330
3330
|
contents: (d = r == null ? void 0 : r.contents) == null ? void 0 : d.filter((l) => b == null ? void 0 : b.includes(l == null ? void 0 : l.label))
|
|
@@ -3332,14 +3332,14 @@ const Ln = (p) => Ar(p), pt = vt([]), jn = async (p, b = "data") => {
|
|
|
3332
3332
|
...r,
|
|
3333
3333
|
contents: (u = r == null ? void 0 : r.contents) == null ? void 0 : u.map((l) => l.prop === "userDept" ? {
|
|
3334
3334
|
...l,
|
|
3335
|
-
options:
|
|
3335
|
+
options: a
|
|
3336
3336
|
} : l.prop === "userRoles" ? {
|
|
3337
3337
|
...l,
|
|
3338
3338
|
options: n
|
|
3339
3339
|
} : l)
|
|
3340
3340
|
} : (r == null ? void 0 : r.key) === "tableContents" ? {
|
|
3341
3341
|
...r,
|
|
3342
|
-
contents: (
|
|
3342
|
+
contents: (h = r == null ? void 0 : r.contents) == null ? void 0 : h.map((l) => {
|
|
3343
3343
|
var v;
|
|
3344
3344
|
return {
|
|
3345
3345
|
...l,
|
|
@@ -3351,42 +3351,37 @@ const Ln = (p) => Ar(p), pt = vt([]), jn = async (p, b = "data") => {
|
|
|
3351
3351
|
};
|
|
3352
3352
|
});
|
|
3353
3353
|
});
|
|
3354
|
-
}, Kn = (p, b, e, w) => {
|
|
3355
|
-
if ((w == null ? void 0 : w.type) === "table") {
|
|
3356
|
-
let m = Object.values(e);
|
|
3357
|
-
m == null || m.find((a) => (a == null ? void 0 : a.includes(".urdf")) || (a == null ? void 0 : a.includes(".mtl")));
|
|
3358
|
-
}
|
|
3359
3354
|
};
|
|
3360
3355
|
xt(
|
|
3361
|
-
() => [
|
|
3356
|
+
() => [mt.value, Hr.value],
|
|
3362
3357
|
async (p) => {
|
|
3363
|
-
var w,
|
|
3358
|
+
var w, y;
|
|
3364
3359
|
const b = p == null ? void 0 : p[0], e = p == null ? void 0 : p[1];
|
|
3365
3360
|
if (b || e) {
|
|
3366
|
-
await Oe(), sessionStorage.setItem("pageKey",
|
|
3367
|
-
const
|
|
3368
|
-
console.log("当前菜单的结构:",
|
|
3361
|
+
await Oe(), sessionStorage.setItem("pageKey", mt.value);
|
|
3362
|
+
const s = await Mt(b, sessionStorage.getItem("systemKey"), "", mt.value);
|
|
3363
|
+
console.log("当前菜单的结构:", s), dt.setExtraContents([]);
|
|
3369
3364
|
const o = sessionStorage.getItem("authority"), n = JSON.parse(o || "");
|
|
3370
3365
|
if (Array.isArray(n)) {
|
|
3371
|
-
const
|
|
3366
|
+
const a = Array.isArray(n) && (n == null ? void 0 : n.filter((f) => f == null ? void 0 : f.includes(b))), c = a == null ? void 0 : a.map((f) => {
|
|
3372
3367
|
var g;
|
|
3373
|
-
return ((g =
|
|
3368
|
+
return ((g = f == null ? void 0 : f.split("/")) == null ? void 0 : g.pop()) || "";
|
|
3374
3369
|
});
|
|
3375
|
-
pt.value = b === "/系统管理/用户管理" ? await xe(
|
|
3370
|
+
pt.value = b === "/系统管理/用户管理" ? await xe(s, c, !1) : s == null ? void 0 : s.map((f) => {
|
|
3376
3371
|
var g;
|
|
3377
3372
|
return {
|
|
3378
|
-
...
|
|
3379
|
-
compData: (g =
|
|
3373
|
+
...f,
|
|
3374
|
+
compData: (g = f == null ? void 0 : f.compData) == null ? void 0 : g.map((m) => {
|
|
3380
3375
|
var r;
|
|
3381
|
-
return (
|
|
3382
|
-
...
|
|
3383
|
-
contents: (r =
|
|
3384
|
-
} :
|
|
3376
|
+
return (m == null ? void 0 : m.key) === "rowButton" || (m == null ? void 0 : m.key) === "extraButton" ? {
|
|
3377
|
+
...m,
|
|
3378
|
+
contents: (r = m == null ? void 0 : m.contents) == null ? void 0 : r.filter((d) => c == null ? void 0 : c.includes(d == null ? void 0 : d.label))
|
|
3379
|
+
} : m;
|
|
3385
3380
|
})
|
|
3386
3381
|
};
|
|
3387
3382
|
});
|
|
3388
|
-
} else typeof n == "string" && (n == null ? void 0 : n.toUpperCase()) === "SUPERADMIN" ? pt.value = b === "/系统管理/用户管理" ? await xe(
|
|
3389
|
-
_t.setSelectTitle([]), _t.setSelectIndex(""), _t.setSelectMenu(""), dt.setItemData(pt.value), dt.setOriginalData(pt.value), dt.setCurStructureCompIds((w = pt.value) == null ? void 0 : w.map((
|
|
3383
|
+
} else typeof n == "string" && (n == null ? void 0 : n.toUpperCase()) === "SUPERADMIN" ? pt.value = b === "/系统管理/用户管理" ? await xe(s, null, !0) : s : pt.value = [];
|
|
3384
|
+
_t.setSelectTitle([]), _t.setSelectIndex(""), _t.setSelectMenu(""), dt.setItemData(pt.value), dt.setOriginalData(pt.value), dt.setCurStructureCompIds((w = pt.value) == null ? void 0 : w.map((a) => a == null ? void 0 : a.id)), dt.setRefreshCurStructure(!1), At.value = (y = mt.value) == null ? void 0 : y.split("/").filter((a) => a !== "").map((a) => ({ value: a.trim() }));
|
|
3390
3385
|
}
|
|
3391
3386
|
},
|
|
3392
3387
|
{
|
|
@@ -3396,51 +3391,51 @@ xt(
|
|
|
3396
3391
|
xt(
|
|
3397
3392
|
() => ke.value,
|
|
3398
3393
|
async () => {
|
|
3399
|
-
ke.value && (pt.value = await
|
|
3394
|
+
ke.value && (pt.value = await Mt(mt.value, sessionStorage.getItem("systemKey"), "", mt.value), dt.setFreshContent(!1));
|
|
3400
3395
|
},
|
|
3401
3396
|
{ deep: !0 }
|
|
3402
3397
|
);
|
|
3403
3398
|
const qr = (p) => {
|
|
3404
|
-
var
|
|
3405
|
-
const b = (
|
|
3406
|
-
var c,
|
|
3407
|
-
let
|
|
3408
|
-
return
|
|
3409
|
-
})) == null ? void 0 :
|
|
3399
|
+
var y, s, o;
|
|
3400
|
+
const b = (y = p.map((n) => {
|
|
3401
|
+
var c, f;
|
|
3402
|
+
let a = (f = (c = n.key.split("(")) == null ? void 0 : c[1]) == null ? void 0 : f.trim();
|
|
3403
|
+
return a == null ? void 0 : a.slice(0, a.length - 1);
|
|
3404
|
+
})) == null ? void 0 : y.filter((n) => n), e = [];
|
|
3410
3405
|
b == null || b.forEach((n) => {
|
|
3411
|
-
var c,
|
|
3412
|
-
const
|
|
3406
|
+
var c, f;
|
|
3407
|
+
const a = [];
|
|
3413
3408
|
if ((c = xr(n)) == null || c.forEach((g) => {
|
|
3414
|
-
var
|
|
3409
|
+
var m, r, d, u, h, l, v, A, C, I, j, N, U, x;
|
|
3415
3410
|
if (g.includes("{") && g.includes("[")) {
|
|
3416
3411
|
let F = et(g).split(":");
|
|
3417
|
-
g = (l = (r = (
|
|
3412
|
+
g = (l = (r = (m = et(F)) == null ? void 0 : m[0]) == null ? void 0 : r.split("{")) == null ? void 0 : l[((h = (u = (d = et(F)) == null ? void 0 : d[0]) == null ? void 0 : u.split("{")) == null ? void 0 : h.length) - 1].replaceAll("'", ""), a.push(g);
|
|
3418
3413
|
let q = (C = (A = (v = F == null ? void 0 : F[(F == null ? void 0 : F.length) - 1]) == null ? void 0 : v.split("}")) == null ? void 0 : A[0]) == null ? void 0 : C.replaceAll("'", '"'), S = [];
|
|
3419
|
-
(
|
|
3420
|
-
S.push(
|
|
3421
|
-
}),
|
|
3414
|
+
(j = (I = q.slice(1, q.length - 1)) == null ? void 0 : I.split(",")) == null || j.forEach((P) => {
|
|
3415
|
+
S.push(P);
|
|
3416
|
+
}), a.push(S);
|
|
3422
3417
|
} else if (g.includes("{")) {
|
|
3423
3418
|
let F = (N = g.split(":")) == null ? void 0 : N[0];
|
|
3424
|
-
g = (x = F == null ? void 0 : F.split("{")) == null ? void 0 : x[((U = F == null ? void 0 : F.split("{")) == null ? void 0 : U.length) - 1].replaceAll("'", ""),
|
|
3419
|
+
g = (x = F == null ? void 0 : F.split("{")) == null ? void 0 : x[((U = F == null ? void 0 : F.split("{")) == null ? void 0 : U.length) - 1].replaceAll("'", ""), a.push(g);
|
|
3425
3420
|
} else
|
|
3426
|
-
|
|
3427
|
-
}), !
|
|
3428
|
-
e.push(
|
|
3421
|
+
a.push(g);
|
|
3422
|
+
}), !a.some((g) => Array.isArray(g)))
|
|
3423
|
+
e.push(a);
|
|
3429
3424
|
else {
|
|
3430
3425
|
let g = [];
|
|
3431
|
-
|
|
3432
|
-
r !==
|
|
3433
|
-
}), (
|
|
3426
|
+
a == null || a.forEach((m, r) => {
|
|
3427
|
+
r !== a.length - 1 && g.push(m);
|
|
3428
|
+
}), (f = a == null ? void 0 : a[(a == null ? void 0 : a.length) - 1]) == null || f.forEach((m) => {
|
|
3434
3429
|
let r = et(g);
|
|
3435
|
-
r.push(
|
|
3430
|
+
r.push(m), e.push(r);
|
|
3436
3431
|
});
|
|
3437
3432
|
}
|
|
3438
3433
|
});
|
|
3439
|
-
const w = (o = (
|
|
3440
|
-
let
|
|
3434
|
+
const w = (o = (s = e.filter((n) => n.length !== 0)) == null ? void 0 : s.filter((n) => n.length !== 0)) == null ? void 0 : o.map((n) => {
|
|
3435
|
+
let a = "";
|
|
3441
3436
|
return n.forEach((c) => {
|
|
3442
|
-
c.includes("{") || (
|
|
3443
|
-
}),
|
|
3437
|
+
c.includes("{") || (a = a === "" ? a + et(c) : a + "/" + et(c));
|
|
3438
|
+
}), a;
|
|
3444
3439
|
});
|
|
3445
3440
|
return Er([...new Set(w)]);
|
|
3446
3441
|
}, Xr = (p) => ({
|
|
@@ -3461,39 +3456,39 @@ const qr = (p) => {
|
|
|
3461
3456
|
name: ""
|
|
3462
3457
|
}), Qr = (p) => {
|
|
3463
3458
|
const b = p == null ? void 0 : p.filter((w) => {
|
|
3464
|
-
var
|
|
3465
|
-
return !((
|
|
3459
|
+
var y;
|
|
3460
|
+
return !((y = w == null ? void 0 : w.key) != null && y.includes("("));
|
|
3466
3461
|
}), e = b == null ? void 0 : b.find((w) => {
|
|
3467
|
-
var
|
|
3468
|
-
return St(w.value.replaceAll("'", '"')) && ((
|
|
3462
|
+
var y;
|
|
3463
|
+
return St(w.value.replaceAll("'", '"')) && ((y = JSON.parse(w.value.replaceAll("'", '"'))) == null ? void 0 : y.every((s) => typeof s == "string"));
|
|
3469
3464
|
});
|
|
3470
3465
|
return Vr(e);
|
|
3471
3466
|
}, tn = (p) => {
|
|
3472
|
-
var
|
|
3467
|
+
var y;
|
|
3473
3468
|
let b = [];
|
|
3474
|
-
const e = p == null ? void 0 : p.filter((
|
|
3469
|
+
const e = p == null ? void 0 : p.filter((s) => {
|
|
3475
3470
|
var o;
|
|
3476
|
-
return !((o =
|
|
3477
|
-
}), w = e == null ? void 0 : e.find((
|
|
3471
|
+
return !((o = s == null ? void 0 : s.key) != null && o.includes("("));
|
|
3472
|
+
}), w = e == null ? void 0 : e.find((s) => {
|
|
3478
3473
|
var o;
|
|
3479
|
-
return St(
|
|
3474
|
+
return St(s.value.replaceAll("'", '"')) && !((o = JSON.parse(s.value.replaceAll("'", '"'))) != null && o.every((n) => typeof n == "string"));
|
|
3480
3475
|
});
|
|
3481
|
-
return (
|
|
3482
|
-
var o, n,
|
|
3483
|
-
((o = Object.keys(
|
|
3476
|
+
return (y = JSON.parse(w.value.replaceAll("'", '"'))) == null || y.forEach((s) => {
|
|
3477
|
+
var o, n, a, c;
|
|
3478
|
+
((o = Object.keys(s)) == null ? void 0 : o[0]) === "类型" ? b.push({
|
|
3484
3479
|
comp: "System",
|
|
3485
3480
|
compData: [
|
|
3486
3481
|
{
|
|
3487
3482
|
key: "type",
|
|
3488
|
-
contents: [(n = Object.values(
|
|
3483
|
+
contents: [(n = Object.values(s)) == null ? void 0 : n[0]]
|
|
3489
3484
|
}
|
|
3490
3485
|
]
|
|
3491
|
-
}) : ((
|
|
3486
|
+
}) : ((a = Object.keys(s)) == null ? void 0 : a[0]) === "名称" && b.push({
|
|
3492
3487
|
comp: "System",
|
|
3493
3488
|
compData: [
|
|
3494
3489
|
{
|
|
3495
3490
|
key: "name",
|
|
3496
|
-
contents: [(c = Object.values(
|
|
3491
|
+
contents: [(c = Object.values(s)) == null ? void 0 : c[0]]
|
|
3497
3492
|
}
|
|
3498
3493
|
]
|
|
3499
3494
|
});
|
|
@@ -3502,9 +3497,9 @@ const qr = (p) => {
|
|
|
3502
3497
|
const b = [];
|
|
3503
3498
|
let e = !1;
|
|
3504
3499
|
return p.forEach((w) => {
|
|
3505
|
-
Array.isArray(w) && (e = !0, w.forEach((
|
|
3506
|
-
const
|
|
3507
|
-
b.push(...Le(
|
|
3500
|
+
Array.isArray(w) && (e = !0, w.forEach((y) => {
|
|
3501
|
+
const s = p.map((o) => o === w ? y : o);
|
|
3502
|
+
b.push(...Le(s));
|
|
3508
3503
|
}));
|
|
3509
3504
|
}), e ? b : [p];
|
|
3510
3505
|
}, en = (p) => {
|
|
@@ -3512,90 +3507,90 @@ const qr = (p) => {
|
|
|
3512
3507
|
if (!p) return;
|
|
3513
3508
|
let b = [];
|
|
3514
3509
|
const e = Cr(p), w = et(e).replaceAll("{", "").replaceAll("}", "").trim();
|
|
3515
|
-
let
|
|
3516
|
-
return w.split(":").forEach((
|
|
3510
|
+
let y = [];
|
|
3511
|
+
return w.split(":").forEach((a) => {
|
|
3517
3512
|
var c;
|
|
3518
|
-
if (
|
|
3519
|
-
const
|
|
3520
|
-
|
|
3513
|
+
if (a.includes("[")) {
|
|
3514
|
+
const f = (c = a.slice(1, a.length - 1)) == null ? void 0 : c.split(",");
|
|
3515
|
+
y.push(f);
|
|
3521
3516
|
} else
|
|
3522
|
-
|
|
3523
|
-
}), (o = Le(
|
|
3524
|
-
b.push(
|
|
3525
|
-
}), (n = b == null ? void 0 : b.filter((
|
|
3517
|
+
y.push(a);
|
|
3518
|
+
}), (o = Le(y)) == null || o.forEach((a) => {
|
|
3519
|
+
b.push(a);
|
|
3520
|
+
}), (n = b == null ? void 0 : b.filter((a) => a.length !== 0)) == null ? void 0 : n.map((a) => {
|
|
3526
3521
|
let c = "";
|
|
3527
|
-
return
|
|
3528
|
-
|
|
3522
|
+
return a.forEach((f) => {
|
|
3523
|
+
f.includes("{") || (c = c === "" ? c + et(f).trim() : c + "/" + et(f).trim());
|
|
3529
3524
|
}), c;
|
|
3530
3525
|
});
|
|
3531
3526
|
}, Ee = (p) => {
|
|
3532
|
-
var n,
|
|
3533
|
-
const b = (n =
|
|
3534
|
-
let w = [],
|
|
3535
|
-
const o = (
|
|
3536
|
-
if (St(o) ? w = JSON.parse(o) : St((r = (
|
|
3537
|
-
b.includes("{") ? St((v = (l = b == null ? void 0 : b.split("{")) == null ? void 0 : l[1]) == null ? void 0 : v.replaceAll("'", '"')) && (
|
|
3527
|
+
var n, a, c, f, g, m, r, d, u, h, l, v, A, C, I, j, N, U, x, F, q, S, P, i;
|
|
3528
|
+
const b = (n = jt(et(p))) == null ? void 0 : n[0], e = "[" + ((a = jt(et(p))) == null ? void 0 : a[2]) + "]";
|
|
3529
|
+
let w = [], y = [], s = "";
|
|
3530
|
+
const o = (f = (c = e == null ? void 0 : e.trim()) == null ? void 0 : c.slice(1, (e == null ? void 0 : e.trim().length) - 1)) == null ? void 0 : f.replaceAll("'", '"');
|
|
3531
|
+
if (St(o) ? w = JSON.parse(o) : St((r = (m = (g = o == null ? void 0 : o.split("}")) == null ? void 0 : g[0]) == null ? void 0 : m.replace(":", "")) == null ? void 0 : r.replaceAll("\\", "\\\\")) && (w = JSON.parse((h = (u = (d = o == null ? void 0 : o.split("}")) == null ? void 0 : d[0]) == null ? void 0 : u.replace(":", "")) == null ? void 0 : h.replaceAll("\\", "\\\\"))), !(b != null && b.includes("(")))
|
|
3532
|
+
b.includes("{") ? St((v = (l = b == null ? void 0 : b.split("{")) == null ? void 0 : l[1]) == null ? void 0 : v.replaceAll("'", '"')) && (y = JSON.parse((C = (A = b == null ? void 0 : b.split("{")) == null ? void 0 : A[1]) == null ? void 0 : C.replaceAll("'", '"'))) : y = JSON.parse(b == null ? void 0 : b.replaceAll("'", '"'));
|
|
3538
3533
|
else {
|
|
3539
3534
|
let L = [];
|
|
3540
|
-
if (((
|
|
3535
|
+
if (((j = (I = b == null ? void 0 : b.slice(1, (b == null ? void 0 : b.length) - 1)) == null ? void 0 : I.split(",")) == null ? void 0 : j.length) > 1)
|
|
3541
3536
|
(U = (N = b == null ? void 0 : b.slice(1, (b == null ? void 0 : b.length) - 1)) == null ? void 0 : N.split(",")) == null || U.forEach(($) => {
|
|
3542
|
-
var Z, it, G, st, B, E, rt, tt, H, ut, lt, z,
|
|
3537
|
+
var Z, it, G, st, B, E, rt, tt, H, ut, lt, z, M, Y, K, X, at, t;
|
|
3543
3538
|
if (!($ != null && $.includes("(")))
|
|
3544
3539
|
L.push($ == null ? void 0 : $.replaceAll("'", ""));
|
|
3545
3540
|
else if ($ != null && $.includes("[")) {
|
|
3546
|
-
let R = (Y = (
|
|
3541
|
+
let R = (Y = (M = (z = (lt = $ == null ? void 0 : $.split("[")) == null ? void 0 : lt[((ut = $ == null ? void 0 : $.split("[")) == null ? void 0 : ut.length) - 1]) == null ? void 0 : z.split("]")) == null ? void 0 : M[0]) == null ? void 0 : Y.replaceAll("'", "");
|
|
3547
3542
|
R = R + "[" + ((t = (at = (X = $ == null ? void 0 : $.split("(")) == null ? void 0 : X[((K = $ == null ? void 0 : $.split("(")) == null ? void 0 : K.length) - 1]) == null ? void 0 : at.split(")")) == null ? void 0 : t[0].replaceAll(":", "/").replaceAll("'", "")) + "]()", L.push(R);
|
|
3548
3543
|
} else {
|
|
3549
3544
|
let R = (B = (st = (G = (it = $ == null ? void 0 : $.split(":")) == null ? void 0 : it[((Z = $ == null ? void 0 : $.split(":")) == null ? void 0 : Z.length) - 1]) == null ? void 0 : G.split(")")) == null ? void 0 : st[0]) == null ? void 0 : B.replaceAll("'", "");
|
|
3550
3545
|
R = R + "[" + ((H = (tt = (rt = $ == null ? void 0 : $.split("(")) == null ? void 0 : rt[((E = $ == null ? void 0 : $.split("(")) == null ? void 0 : E.length) - 1]) == null ? void 0 : tt.split(")")) == null ? void 0 : H[0].replaceAll(":", "/").replaceAll("'", "")) + "]", L.push(R);
|
|
3551
3546
|
}
|
|
3552
|
-
}),
|
|
3547
|
+
}), y = L;
|
|
3553
3548
|
else {
|
|
3554
3549
|
const $ = ((S = (q = (F = (x = b == null ? void 0 : b.slice(1, b == null ? void 0 : b.length)) == null ? void 0 : x.split("(")) == null ? void 0 : F[1]) == null ? void 0 : q.split(")")) == null ? void 0 : S[0]).replaceAll("{", "").replaceAll("}", "").replaceAll(":", "/").replaceAll("'", "");
|
|
3555
|
-
|
|
3550
|
+
s = s + $ + "[" + ((i = (P = b == null ? void 0 : b.slice(1, b == null ? void 0 : b.length)) == null ? void 0 : P.split("[")) == null ? void 0 : i[1]);
|
|
3556
3551
|
}
|
|
3557
3552
|
}
|
|
3558
3553
|
return {
|
|
3559
|
-
tableColumns:
|
|
3554
|
+
tableColumns: y,
|
|
3560
3555
|
tableContents: w != null && w.every((L) => Array.isArray(L)) ? w : [w],
|
|
3561
|
-
tablePath:
|
|
3556
|
+
tablePath: s
|
|
3562
3557
|
};
|
|
3563
3558
|
};
|
|
3564
3559
|
let gt = "$R";
|
|
3565
|
-
const rn = (p) => /^'[^']+':\{.*\}$/.exec(et(p)), nn = (p) => /^'([^']+)':.*$/.exec(et(p)),
|
|
3560
|
+
const rn = (p) => /^'[^']+':\{.*\}$/.exec(et(p)), nn = (p) => /^'([^']+)':.*$/.exec(et(p)), jt = (p) => {
|
|
3566
3561
|
let b = p;
|
|
3567
3562
|
const e = [];
|
|
3568
3563
|
let w = "";
|
|
3569
|
-
for (const
|
|
3570
|
-
|
|
3564
|
+
for (const y of b)
|
|
3565
|
+
y.includes("{") || w.includes("{") || y.includes("[") || w.includes("[") || y.includes("【") || w.includes("【") || y.includes("(") || w.includes("(") || y.includes("(") || w.includes("(") || y.includes("/*") || w.includes("/*") ? (w += y.trim(), et(w).split("{").length - 1 === et(w).split("}").length - 1 && et(w).split("【").length - 1 === et(w).split("】").length - 1 && et(w).split("[").length - 1 === et(w).split("]").length - 1 && et(w).split("(").length - 1 === et(w).split(")").length - 1 && et(w).split("(").length - 1 === et(w).split(")").length - 1 && et(w).split("/*").length - 1 === et(w).split("*/").length - 1 && w[w.length - 1] !== "," && (e.push(w.replace(/\/\*[\s\S]*?\*\//g, "")), w = "")) : e.push(y.trim().replace(/\/\*[\s\S]*?\*\//g, ""));
|
|
3571
3566
|
return e;
|
|
3572
3567
|
}, an = (p) => /^\[.*?\]:\[.*?\]$/.exec(et(p)), sn = (p) => {
|
|
3573
|
-
var b, e, w,
|
|
3568
|
+
var b, e, w, y, s, o, n, a, c, f, g, m, r, d, u, h, l;
|
|
3574
3569
|
if (nn(p)) {
|
|
3575
3570
|
let v = {}, A = (w = (e = (b = p == null ? void 0 : p.replace(":", gt)) == null ? void 0 : b.split(gt)) == null ? void 0 : e[0]) == null ? void 0 : w.replaceAll("'", ""), C = "";
|
|
3576
|
-
return C = C + ((n = (o = (
|
|
3571
|
+
return C = C + ((n = (o = (s = (y = p == null ? void 0 : p.split("{")) == null ? void 0 : y[1]) == null ? void 0 : s.split("}")) == null ? void 0 : o[0]) == null ? void 0 : n.replace(":", "/").replaceAll("'", "")) + "[", C = C + ((f = (c = (a = p == null ? void 0 : p.split("[")) == null ? void 0 : a[1]) == null ? void 0 : c.split("]")) == null ? void 0 : f[0]) + "]", v[A] = C, {
|
|
3577
3572
|
groupName: "",
|
|
3578
3573
|
formContents: [[v]]
|
|
3579
3574
|
};
|
|
3580
3575
|
} else {
|
|
3581
|
-
let v = {}, A = "", C = (r = (
|
|
3582
|
-
(d = C == null ? void 0 : C.split(":")) == null || d.forEach((
|
|
3576
|
+
let v = {}, A = "", C = (r = (m = (g = p == null ? void 0 : p.split("]")) == null ? void 0 : g[0]) == null ? void 0 : m.split("[")) == null ? void 0 : r[1];
|
|
3577
|
+
(d = C == null ? void 0 : C.split(":")) == null || d.forEach((j, N) => {
|
|
3583
3578
|
var U;
|
|
3584
|
-
((U = C == null ? void 0 : C.split(":")) == null ? void 0 : U.length) - 1 === N && (A =
|
|
3579
|
+
((U = C == null ? void 0 : C.split(":")) == null ? void 0 : U.length) - 1 === N && (A = j == null ? void 0 : j.replaceAll("'", ""));
|
|
3585
3580
|
});
|
|
3586
3581
|
let I = "";
|
|
3587
|
-
return I = (l = (
|
|
3582
|
+
return I = (l = (h = (u = p == null ? void 0 : p.split("]")) == null ? void 0 : u[1]) == null ? void 0 : h.replace(":", gt).split(gt)) == null ? void 0 : l[1].replaceAll("'", ""), v[A] = I, {
|
|
3588
3583
|
groupName: "",
|
|
3589
3584
|
formContents: [[v]]
|
|
3590
3585
|
};
|
|
3591
3586
|
}
|
|
3592
|
-
},
|
|
3593
|
-
var w,
|
|
3587
|
+
}, Me = (p) => {
|
|
3588
|
+
var w, y, s, o, n, a, c, f, g, m, r, d, u, h, l, v, A, C, I, j, N, U, x, F, q, S, P, i, L, $, Z, it, G, st;
|
|
3594
3589
|
let b = "";
|
|
3595
3590
|
p = p.replace(/:([^=]*)==/g, ":");
|
|
3596
3591
|
let e = p;
|
|
3597
|
-
if (rn(et(p)) !== null && (b = (
|
|
3598
|
-
if (((
|
|
3592
|
+
if (rn(et(p)) !== null && (b = (y = (w = et(p).replace(":", gt).split(gt)) == null ? void 0 : w[0]) == null ? void 0 : y.replaceAll("'", ""), e = (s = et(p).replace(":", gt).split(gt)) == null ? void 0 : s[1]), an(et(e).slice(1, ((o = et(e)) == null ? void 0 : o.length) - 1)))
|
|
3593
|
+
if (((a = et(e).slice(1, ((n = et(e)) == null ? void 0 : n.length) - 1)) == null ? void 0 : a[1]) !== "[") {
|
|
3599
3594
|
const B = Ee(et(e).slice(1, ((c = et(e)) == null ? void 0 : c.length) - 1));
|
|
3600
3595
|
return {
|
|
3601
3596
|
groupName: b,
|
|
@@ -3604,8 +3599,8 @@ const rn = (p) => /^'[^']+':\{.*\}$/.exec(et(p)), nn = (p) => /^'([^']+)':.*$/.e
|
|
|
3604
3599
|
tableColumnPath: B == null ? void 0 : B.tablePath
|
|
3605
3600
|
};
|
|
3606
3601
|
} else {
|
|
3607
|
-
let B = et(e).slice(1, ((
|
|
3608
|
-
return (
|
|
3602
|
+
let B = et(e).slice(1, ((f = et(e)) == null ? void 0 : f.length) - 1), E = B.indexOf("{"), rt = B.slice(E, (B == null ? void 0 : B.length) - E);
|
|
3603
|
+
return (m = (g = jt(rt)) == null ? void 0 : g.filter((H) => H == null ? void 0 : H.includes("{"))) == null ? void 0 : m.map((H, ut) => {
|
|
3609
3604
|
var z;
|
|
3610
3605
|
let lt = Ee(et(H).slice(1, ((z = et(H)) == null ? void 0 : z.length) - 1));
|
|
3611
3606
|
return {
|
|
@@ -3622,7 +3617,7 @@ const rn = (p) => /^'[^']+':\{.*\}$/.exec(et(p)), nn = (p) => /^'([^']+)':.*$/.e
|
|
|
3622
3617
|
B = JSON.parse((d = e.slice(1, (e == null ? void 0 : e.length) - 1)) == null ? void 0 : d.replaceAll("'", '"'));
|
|
3623
3618
|
else if (e.includes("(")) {
|
|
3624
3619
|
if ((e == null ? void 0 : e[0]) !== "{") {
|
|
3625
|
-
let E = (F = (x = (U = e == null ? void 0 : e.split("]")) == null ? void 0 : U[0]) == null ? void 0 : x.split("[")) == null ? void 0 : F[1], rt = "", H = ((L = (i = (
|
|
3620
|
+
let E = (F = (x = (U = e == null ? void 0 : e.split("]")) == null ? void 0 : U[0]) == null ? void 0 : x.split("[")) == null ? void 0 : F[1], rt = "", H = ((L = (i = (P = (S = (q = e == null ? void 0 : e.split(")")) == null ? void 0 : q[0]) == null ? void 0 : S.split("(")) == null ? void 0 : P[1]) == null ? void 0 : i.replaceAll("[", "")) == null ? void 0 : L.replaceAll("]", "")).replaceAll("'", "").replaceAll(":", "/");
|
|
3626
3621
|
return ($ = H == null ? void 0 : H.split("/")) == null || $.forEach((ut, lt) => {
|
|
3627
3622
|
var z;
|
|
3628
3623
|
lt !== ((z = H == null ? void 0 : H.split("/")) == null ? void 0 : z.length) - 1 && (rt = rt === "" ? rt + ut : rt + "/" + ut);
|
|
@@ -3640,7 +3635,7 @@ const rn = (p) => /^'[^']+':\{.*\}$/.exec(et(p)), nn = (p) => /^'([^']+)':.*$/.e
|
|
|
3640
3635
|
} else if ((e == null ? void 0 : e[0]) === "[" && (e == null ? void 0 : e[1]) === "[") {
|
|
3641
3636
|
e = e.slice(1, (e == null ? void 0 : e.length) - 1);
|
|
3642
3637
|
let E = [];
|
|
3643
|
-
return (st = (G =
|
|
3638
|
+
return (st = (G = jt(e)) == null ? void 0 : G.filter((rt) => rt !== ",")) == null || st.forEach((rt) => {
|
|
3644
3639
|
var tt;
|
|
3645
3640
|
Array.isArray(Yt(rt)) || E.push((tt = Yt(rt)) == null ? void 0 : tt.formContents);
|
|
3646
3641
|
}), {
|
|
@@ -3649,10 +3644,10 @@ const rn = (p) => /^'[^']+':\{.*\}$/.exec(et(p)), nn = (p) => /^'([^']+)':.*$/.e
|
|
|
3649
3644
|
};
|
|
3650
3645
|
}
|
|
3651
3646
|
} else if (e = "[[" + e + "]]", St((u = e.slice(1, (e == null ? void 0 : e.length) - 1)) == null ? void 0 : u.replaceAll("'", '"')))
|
|
3652
|
-
B = JSON.parse((
|
|
3647
|
+
B = JSON.parse((h = e.slice(1, (e == null ? void 0 : e.length) - 1)) == null ? void 0 : h.replaceAll("'", '"'));
|
|
3653
3648
|
else if (e = e.slice(2, e.length - 2), ((A = (v = (l = e == null ? void 0 : e.replace(":", gt)) == null ? void 0 : l.split(gt)) == null ? void 0 : v[1]) == null ? void 0 : A[0]) !== "{") {
|
|
3654
|
-
e = ((I = (C = e == null ? void 0 : e.replace(":", gt)) == null ? void 0 : C.split(gt)) == null ? void 0 : I[0]) + ":{[" + ((N = (
|
|
3655
|
-
const E =
|
|
3649
|
+
e = ((I = (C = e == null ? void 0 : e.replace(":", gt)) == null ? void 0 : C.split(gt)) == null ? void 0 : I[0]) + ":{[" + ((N = (j = e == null ? void 0 : e.replace(":", gt)) == null ? void 0 : j.split(gt)) == null ? void 0 : N[1]) + "]}";
|
|
3650
|
+
const E = Me(e);
|
|
3656
3651
|
return E != null && E.tableColumn ? {
|
|
3657
3652
|
groupName: E == null ? void 0 : E.groupName,
|
|
3658
3653
|
tableColumn: E == null ? void 0 : E.tableColumn,
|
|
@@ -3667,13 +3662,13 @@ const rn = (p) => /^'[^']+':\{.*\}$/.exec(et(p)), nn = (p) => /^'([^']+)':.*$/.e
|
|
|
3667
3662
|
formContents: B
|
|
3668
3663
|
};
|
|
3669
3664
|
}
|
|
3670
|
-
}, Yt = (p) =>
|
|
3665
|
+
}, Yt = (p) => Me(et(p).slice(1, et(p).length - 1)), on = (p) => {
|
|
3671
3666
|
var e;
|
|
3672
3667
|
let b = [];
|
|
3673
3668
|
if (!((p == null ? void 0 : p[0]) === "[" && (p == null ? void 0 : p[1]) === "[")) {
|
|
3674
|
-
let w = (e =
|
|
3675
|
-
w == null || w.forEach((
|
|
3676
|
-
b.push(Yt(
|
|
3669
|
+
let w = (e = jt(p)) == null ? void 0 : e.filter((y) => y !== ",");
|
|
3670
|
+
w == null || w.forEach((y) => {
|
|
3671
|
+
b.push(Yt(y));
|
|
3677
3672
|
});
|
|
3678
3673
|
}
|
|
3679
3674
|
return b;
|
|
@@ -3682,31 +3677,31 @@ vt(0);
|
|
|
3682
3677
|
const ln = (p) => {
|
|
3683
3678
|
const b = [];
|
|
3684
3679
|
let e = [];
|
|
3685
|
-
return p == null || p.forEach((w,
|
|
3686
|
-
var
|
|
3687
|
-
(e == null ? void 0 : e.length) === 0 ? e.push(w) : (e.push(w), ((
|
|
3680
|
+
return p == null || p.forEach((w, y) => {
|
|
3681
|
+
var s;
|
|
3682
|
+
(e == null ? void 0 : e.length) === 0 ? e.push(w) : (e.push(w), ((s = p[y + 1]) == null ? void 0 : s.key) === "groupName" && (b.push(e), e = []));
|
|
3688
3683
|
}), b.push(e), b;
|
|
3689
3684
|
}, re = vt(0), un = (p, b) => {
|
|
3690
|
-
var
|
|
3685
|
+
var y;
|
|
3691
3686
|
let e = [], w = b == null ? void 0 : b.length;
|
|
3692
|
-
return (
|
|
3687
|
+
return (y = et(b)) == null || y.forEach((s, o) => {
|
|
3693
3688
|
let n = [];
|
|
3694
|
-
|
|
3695
|
-
var c,
|
|
3689
|
+
s == null || s.forEach((a) => {
|
|
3690
|
+
var c, f, g, m, r;
|
|
3696
3691
|
if (St(et(p).replaceAll("'", '"')))
|
|
3697
3692
|
(c = JSON.parse(et(p).replaceAll("'", '"'))) == null || c.forEach((d) => {
|
|
3698
3693
|
e.push([{
|
|
3699
|
-
key:
|
|
3700
|
-
value: (
|
|
3694
|
+
key: a == null ? void 0 : a.key,
|
|
3695
|
+
value: (a == null ? void 0 : a.value) + "/" + d
|
|
3701
3696
|
}]);
|
|
3702
3697
|
});
|
|
3703
3698
|
else {
|
|
3704
|
-
n.push(
|
|
3699
|
+
n.push(a);
|
|
3705
3700
|
let d = [];
|
|
3706
|
-
if (((
|
|
3701
|
+
if (((f = et(p)) == null ? void 0 : f[0]) === "[" && ((g = et(p)) == null ? void 0 : g[1]) === "[") {
|
|
3707
3702
|
let u = p.slice(1, (p == null ? void 0 : p.length) - 1);
|
|
3708
|
-
const
|
|
3709
|
-
|
|
3703
|
+
const h = on(u.trim());
|
|
3704
|
+
h == null || h.forEach((l) => {
|
|
3710
3705
|
var v;
|
|
3711
3706
|
l != null && l.tableColumn ? (n.push({
|
|
3712
3707
|
key: "groupName",
|
|
@@ -3744,7 +3739,7 @@ const ln = (p) => {
|
|
|
3744
3739
|
value: d == null ? void 0 : d.tableColumn
|
|
3745
3740
|
}), n.push({
|
|
3746
3741
|
key: "tableContents",
|
|
3747
|
-
value: w !== 1 ? [(
|
|
3742
|
+
value: w !== 1 ? [(m = d == null ? void 0 : d.tableContents) == null ? void 0 : m[o]] : d == null ? void 0 : d.tableContents
|
|
3748
3743
|
})) : (n.push({
|
|
3749
3744
|
key: "groupName",
|
|
3750
3745
|
value: d == null ? void 0 : d.groupName
|
|
@@ -3756,63 +3751,63 @@ const ln = (p) => {
|
|
|
3756
3751
|
}), e.push(n);
|
|
3757
3752
|
}), e;
|
|
3758
3753
|
}, cn = (p) => {
|
|
3759
|
-
var
|
|
3760
|
-
const b = [], e = en((
|
|
3754
|
+
var y, s;
|
|
3755
|
+
const b = [], e = en((y = et(p)) == null ? void 0 : y.key);
|
|
3761
3756
|
return e && (e == null ? void 0 : e.length) > 0 && (e == null || e.forEach((o) => {
|
|
3762
3757
|
b.push([{
|
|
3763
3758
|
key: "contentPath",
|
|
3764
3759
|
value: o
|
|
3765
3760
|
}]);
|
|
3766
|
-
})), un((
|
|
3767
|
-
},
|
|
3761
|
+
})), un((s = et(p)) == null ? void 0 : s.value, b);
|
|
3762
|
+
}, hn = (p) => {
|
|
3768
3763
|
var e;
|
|
3769
3764
|
return (e = et(p)) == null ? void 0 : e.map((w) => {
|
|
3770
3765
|
var o, n;
|
|
3771
|
-
let
|
|
3772
|
-
return (o = ln(w == null ? void 0 : w.filter((
|
|
3773
|
-
var g,
|
|
3766
|
+
let y = [];
|
|
3767
|
+
return (o = ln(w == null ? void 0 : w.filter((a) => (a == null ? void 0 : a.key) !== "contentPath"))) == null || o.forEach((a) => {
|
|
3768
|
+
var g, m, r, d, u, h, l, v, A, C, I, j, N, U;
|
|
3774
3769
|
let c = [];
|
|
3775
|
-
if (
|
|
3770
|
+
if (a.length === 0)
|
|
3776
3771
|
return;
|
|
3777
|
-
let
|
|
3772
|
+
let f = (m = (g = a.find((x) => (x == null ? void 0 : x.key) === "tableColumn")) == null ? void 0 : g.value) == null ? void 0 : m.map((x) => ({
|
|
3778
3773
|
label: x
|
|
3779
3774
|
}));
|
|
3780
|
-
if (Array.isArray(
|
|
3781
|
-
columnPath: (u =
|
|
3782
|
-
}),
|
|
3783
|
-
var F, q, S,
|
|
3775
|
+
if (Array.isArray(f) && ((r = a == null ? void 0 : a.find((x) => (x == null ? void 0 : x.key) === "tablePath")) != null && r.value && ((d = a == null ? void 0 : a.find((x) => (x == null ? void 0 : x.key) === "tablePath")) == null ? void 0 : d.value) !== "" && f.push({
|
|
3776
|
+
columnPath: (u = a == null ? void 0 : a.find((x) => (x == null ? void 0 : x.key) === "tablePath")) == null ? void 0 : u.value
|
|
3777
|
+
}), f = (h = et(f)) == null ? void 0 : h.map((x) => {
|
|
3778
|
+
var F, q, S, P, i, L, $, Z, it;
|
|
3784
3779
|
return x != null && x.label && !((F = x == null ? void 0 : x.label) != null && F.includes("[")) ? x : {
|
|
3785
3780
|
label: (S = (q = et(x == null ? void 0 : x.label)) == null ? void 0 : q.split("[")) == null ? void 0 : S[0],
|
|
3786
|
-
formMenuSelect: (Z = ($ = (L = (i = (
|
|
3781
|
+
formMenuSelect: (Z = ($ = (L = (i = (P = et(x == null ? void 0 : x.label)) == null ? void 0 : P.split("[")) == null ? void 0 : i[1]) == null ? void 0 : L.split("]")) == null ? void 0 : $[0]) == null ? void 0 : Z.split("/"),
|
|
3787
3782
|
columnPath: (x == null ? void 0 : x.columnPath) ?? "",
|
|
3788
3783
|
isRoute: (it = x == null ? void 0 : x.label) == null ? void 0 : it.includes("(")
|
|
3789
3784
|
};
|
|
3790
|
-
}),
|
|
3785
|
+
}), f.length !== 0 && f.push({
|
|
3791
3786
|
label: "操作"
|
|
3792
|
-
})),
|
|
3793
|
-
const x = (l =
|
|
3787
|
+
})), a != null && a.find((x) => (x == null ? void 0 : x.key) === "formContent")) {
|
|
3788
|
+
const x = (l = a.find((q) => (q == null ? void 0 : q.key) === "formContent")) == null ? void 0 : l.value;
|
|
3794
3789
|
let F = [];
|
|
3795
3790
|
Array.isArray(x) && x.forEach((q) => {
|
|
3796
3791
|
let S = 1;
|
|
3797
|
-
Array.isArray(q) && (q != null && q.every((
|
|
3798
|
-
Array.isArray(
|
|
3792
|
+
Array.isArray(q) && (q != null && q.every((P) => !Array.isArray(P))) && (S = q.length), Array.isArray(q) || (q = [q]), q.forEach((P) => {
|
|
3793
|
+
Array.isArray(P) || (P = [P]);
|
|
3799
3794
|
let i = [];
|
|
3800
|
-
|
|
3801
|
-
var $, Z, it, G, st, B, E, rt, tt, H, ut, lt, z,
|
|
3795
|
+
P == null || P.forEach((L) => {
|
|
3796
|
+
var $, Z, it, G, st, B, E, rt, tt, H, ut, lt, z, M, Y, K;
|
|
3802
3797
|
if (re.value++, !((Z = ($ = Object.values(L)) == null ? void 0 : $[0]) != null && Z.includes("/") && ((G = (it = Object.values(L)) == null ? void 0 : it[0]) != null && G.includes("["))))
|
|
3803
3798
|
i.push({
|
|
3804
3799
|
id: re.value,
|
|
3805
3800
|
key: (st = Object.keys(L)) == null ? void 0 : st[0],
|
|
3806
3801
|
value: (B = Object.values(L)) == null ? void 0 : B[0],
|
|
3807
|
-
width: Math.max(S,
|
|
3802
|
+
width: Math.max(S, P.length)
|
|
3808
3803
|
});
|
|
3809
3804
|
else {
|
|
3810
|
-
let X = (H = (tt = (rt = (E = Object.values(L)) == null ? void 0 : E[0]) == null ? void 0 : rt.split("[")) == null ? void 0 : tt[0]) == null ? void 0 : H.split("/"), at = (z = (lt = (ut = Object.values(L)) == null ? void 0 : ut[0]) == null ? void 0 : lt.split("[")) == null ? void 0 : z[1], t = (Y = (
|
|
3805
|
+
let X = (H = (tt = (rt = (E = Object.values(L)) == null ? void 0 : E[0]) == null ? void 0 : rt.split("[")) == null ? void 0 : tt[0]) == null ? void 0 : H.split("/"), at = (z = (lt = (ut = Object.values(L)) == null ? void 0 : ut[0]) == null ? void 0 : lt.split("[")) == null ? void 0 : z[1], t = (Y = (M = at == null ? void 0 : at.slice(0, at.length - 1)) == null ? void 0 : M.split(":")) == null ? void 0 : Y.map((O) => O.replaceAll("'", "")), R = t;
|
|
3811
3806
|
(t == null ? void 0 : t.length) === 1 && R.unshift(""), i.push({
|
|
3812
3807
|
id: re.value,
|
|
3813
3808
|
key: (K = Object.keys(L)) == null ? void 0 : K[0],
|
|
3814
3809
|
value: "",
|
|
3815
|
-
width: Math.max(S,
|
|
3810
|
+
width: Math.max(S, P.length),
|
|
3816
3811
|
type: "Select",
|
|
3817
3812
|
optionUrl: {
|
|
3818
3813
|
type: "Select",
|
|
@@ -3832,89 +3827,88 @@ const ln = (p) => {
|
|
|
3832
3827
|
}), c.push({
|
|
3833
3828
|
key: "formContent",
|
|
3834
3829
|
contents: F
|
|
3835
|
-
}),
|
|
3830
|
+
}), y.push({
|
|
3836
3831
|
comp: "Form",
|
|
3837
3832
|
compData: et(c),
|
|
3838
|
-
name: (A = (v =
|
|
3833
|
+
name: (A = (v = a.find((q) => (q == null ? void 0 : q.key) === "groupName")) == null ? void 0 : v.value) == null ? void 0 : A.replaceAll("'", "")
|
|
3839
3834
|
});
|
|
3840
|
-
} else
|
|
3835
|
+
} else a != null && a.find((x) => (x == null ? void 0 : x.key) === "extraButton") ? y.push({
|
|
3841
3836
|
key: "extraButton",
|
|
3842
3837
|
value: {
|
|
3843
|
-
method: (C =
|
|
3838
|
+
method: (C = a == null ? void 0 : a.find((x) => (x == null ? void 0 : x.key) === "extraButton")) == null ? void 0 : C.value,
|
|
3844
3839
|
value: [],
|
|
3845
|
-
path: (I =
|
|
3840
|
+
path: (I = a == null ? void 0 : a.find((x) => (x == null ? void 0 : x.key) === "extraButton")) == null ? void 0 : I.path
|
|
3846
3841
|
}
|
|
3847
|
-
}) : (
|
|
3842
|
+
}) : (f == null ? void 0 : f.length) !== 0 && (c.push({
|
|
3848
3843
|
key: "header",
|
|
3849
|
-
contents:
|
|
3844
|
+
contents: f
|
|
3850
3845
|
}), c.push({
|
|
3851
3846
|
key: "tableContents",
|
|
3852
|
-
contents: (
|
|
3847
|
+
contents: (j = a.find((x) => (x == null ? void 0 : x.key) === "tableContents")) == null ? void 0 : j.value
|
|
3853
3848
|
}), c.push({
|
|
3854
3849
|
key: "extraButton",
|
|
3855
3850
|
contents: [{ label: "新增" }]
|
|
3856
3851
|
}), c.push({
|
|
3857
3852
|
key: "rowButton",
|
|
3858
3853
|
contents: [{ label: "查看" }, { label: "编辑" }, { label: "删除" }]
|
|
3859
|
-
}),
|
|
3854
|
+
}), y.push({
|
|
3860
3855
|
comp: "Table",
|
|
3861
3856
|
compData: c,
|
|
3862
|
-
name: (U = (N =
|
|
3857
|
+
name: (U = (N = a.find((x) => (x == null ? void 0 : x.key) === "groupName")) == null ? void 0 : N.value) == null ? void 0 : U.replaceAll("'", "")
|
|
3863
3858
|
}));
|
|
3864
3859
|
}), {
|
|
3865
3860
|
comp: "Group",
|
|
3866
3861
|
compData: [{
|
|
3867
3862
|
key: "groupContents",
|
|
3868
|
-
contents:
|
|
3863
|
+
contents: y
|
|
3869
3864
|
}],
|
|
3870
|
-
name: (n = w == null ? void 0 : w.find((
|
|
3865
|
+
name: (n = w == null ? void 0 : w.find((a) => (a == null ? void 0 : a.key) === "contentPath")) == null ? void 0 : n.value
|
|
3871
3866
|
};
|
|
3872
3867
|
});
|
|
3873
|
-
},
|
|
3874
|
-
var n,
|
|
3868
|
+
}, fn = (p) => {
|
|
3869
|
+
var n, a;
|
|
3875
3870
|
let b = [];
|
|
3876
3871
|
const e = Xr(et(p));
|
|
3877
3872
|
b.push(e);
|
|
3878
3873
|
const w = Qr(et(p));
|
|
3879
3874
|
b.push(w);
|
|
3880
|
-
const
|
|
3881
|
-
(n = et(
|
|
3875
|
+
const y = tn(et(p));
|
|
3876
|
+
(n = et(y)) == null || n.forEach((c) => {
|
|
3882
3877
|
b.push(c);
|
|
3883
3878
|
});
|
|
3884
|
-
const
|
|
3885
|
-
var
|
|
3886
|
-
return (
|
|
3879
|
+
const s = (a = et(p)) == null ? void 0 : a.filter((c) => {
|
|
3880
|
+
var f;
|
|
3881
|
+
return (f = c == null ? void 0 : c.key) == null ? void 0 : f.includes("(");
|
|
3887
3882
|
}).map((c) => cn(c)).filter((c) => (c == null ? void 0 : c.length) !== 0);
|
|
3888
3883
|
let o = [];
|
|
3889
|
-
return
|
|
3890
|
-
c == null || c.forEach((
|
|
3884
|
+
return s == null || s.forEach((c) => {
|
|
3885
|
+
c == null || c.forEach((f) => {
|
|
3891
3886
|
o != null && o.find((g) => {
|
|
3892
|
-
var
|
|
3893
|
-
return ((
|
|
3887
|
+
var m, r;
|
|
3888
|
+
return ((m = g == null ? void 0 : g.find((d) => (d == null ? void 0 : d.key) === "contentPath")) == null ? void 0 : m.value) === ((r = f == null ? void 0 : f.find((d) => (d == null ? void 0 : d.key) === "contentPath")) == null ? void 0 : r.value);
|
|
3894
3889
|
}) ? o = o == null ? void 0 : o.map((g) => {
|
|
3895
3890
|
var r, d;
|
|
3896
|
-
return ((r = g == null ? void 0 : g.find((u) => (u == null ? void 0 : u.key) === "contentPath")) == null ? void 0 : r.value) === ((d =
|
|
3897
|
-
}) : o.push(
|
|
3891
|
+
return ((r = g == null ? void 0 : g.find((u) => (u == null ? void 0 : u.key) === "contentPath")) == null ? void 0 : r.value) === ((d = f == null ? void 0 : f.find((u) => (u == null ? void 0 : u.key) === "contentPath")) == null ? void 0 : d.value) && (g = [...g, ...f.filter((u) => (u == null ? void 0 : u.key) !== "contentPath")]), g;
|
|
3892
|
+
}) : o.push(f);
|
|
3898
3893
|
});
|
|
3899
|
-
}), b = [...b, ...
|
|
3900
|
-
},
|
|
3901
|
-
var
|
|
3902
|
-
const b = (
|
|
3903
|
-
return
|
|
3894
|
+
}), b = [...b, ...hn(o)], b;
|
|
3895
|
+
}, Kn = (p) => {
|
|
3896
|
+
var y, s, o;
|
|
3897
|
+
const b = (s = (y = zr(et(p))) == null ? void 0 : y.filter((n) => n !== "")) == null ? void 0 : s.map((n) => n.replaceAll("<", "[").replaceAll(">", "]")), e = (o = b == null ? void 0 : b.filter((n) => !n.includes("/*"))) == null ? void 0 : o.map((n) => Ir(n));
|
|
3898
|
+
return fn(e);
|
|
3904
3899
|
};
|
|
3905
3900
|
export {
|
|
3906
3901
|
Bn as _,
|
|
3907
3902
|
Nn as a,
|
|
3908
3903
|
Rn as b,
|
|
3909
3904
|
Un as c,
|
|
3910
|
-
|
|
3905
|
+
Tn as d,
|
|
3911
3906
|
Fn as e,
|
|
3912
|
-
|
|
3907
|
+
jn as f,
|
|
3913
3908
|
Ln as g,
|
|
3914
|
-
|
|
3909
|
+
Mn as h,
|
|
3915
3910
|
Kn as i,
|
|
3916
|
-
|
|
3917
|
-
|
|
3918
|
-
Tn as o,
|
|
3911
|
+
On as j,
|
|
3912
|
+
Pn as o,
|
|
3919
3913
|
pt as s
|
|
3920
3914
|
};
|