otomate 0.0.7 → 0.0.8
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/otomate.js +1024 -1023
- package/dist/otomate.js.map +1 -1
- package/dist/otomate.umd.cjs +24 -24
- package/dist/otomate.umd.cjs.map +1 -1
- package/package.json +1 -1
package/dist/otomate.js
CHANGED
|
@@ -273,15 +273,15 @@ function Md(e, t, n, r, i = 0.5) {
|
|
|
273
273
|
if (!c || c.length === 0)
|
|
274
274
|
continue;
|
|
275
275
|
let d = null, h = -1;
|
|
276
|
-
for (const
|
|
277
|
-
if (r.has(
|
|
276
|
+
for (const b of c) {
|
|
277
|
+
if (r.has(b) || !Ie(b))
|
|
278
278
|
continue;
|
|
279
|
-
const f = Ld(u,
|
|
280
|
-
let
|
|
279
|
+
const f = Ld(u, b, n);
|
|
280
|
+
let m = 0;
|
|
281
281
|
const g = Bd(u, e, n);
|
|
282
|
-
g && s.get(
|
|
283
|
-
const _ = f +
|
|
284
|
-
_ > h && (h = _, d =
|
|
282
|
+
g && s.get(b) === g && (m = 0.3);
|
|
283
|
+
const _ = f + m;
|
|
284
|
+
_ > h && (h = _, d = b);
|
|
285
285
|
}
|
|
286
286
|
d && h >= i && (n.set(u, d), r.set(d, u), Du(o, u.type, d));
|
|
287
287
|
}
|
|
@@ -316,19 +316,19 @@ function Fd(e, t, n, r) {
|
|
|
316
316
|
n.has(a.children[h]) || c.push({ node: a.children[h], index: h });
|
|
317
317
|
const d = /* @__PURE__ */ new Set();
|
|
318
318
|
for (const h of u) {
|
|
319
|
-
const
|
|
320
|
-
if (
|
|
321
|
-
us(h.node,
|
|
319
|
+
const b = c.find((g) => g.index === h.index && g.node.type === h.node.type && !d.has(g.index));
|
|
320
|
+
if (b) {
|
|
321
|
+
us(h.node, b.node, t, n, r), d.add(b.index);
|
|
322
322
|
continue;
|
|
323
323
|
}
|
|
324
|
-
let f = 1 / 0,
|
|
324
|
+
let f = 1 / 0, m = null;
|
|
325
325
|
for (const g of c) {
|
|
326
326
|
if (d.has(g.index) || g.node.type !== h.node.type)
|
|
327
327
|
continue;
|
|
328
328
|
const _ = Math.abs(g.index - h.index);
|
|
329
|
-
_ < f && (f = _,
|
|
329
|
+
_ < f && (f = _, m = g);
|
|
330
330
|
}
|
|
331
|
-
|
|
331
|
+
m && (us(h.node, m.node, t, n, r), d.add(m.index));
|
|
332
332
|
}
|
|
333
333
|
}
|
|
334
334
|
}
|
|
@@ -366,22 +366,22 @@ function zd(e, t) {
|
|
|
366
366
|
if (n === 0 && r === 0)
|
|
367
367
|
return [];
|
|
368
368
|
if (n === 0)
|
|
369
|
-
return t.map((
|
|
369
|
+
return t.map((b) => ({ type: "insert", value: b }));
|
|
370
370
|
if (r === 0)
|
|
371
|
-
return e.map((
|
|
371
|
+
return e.map((b) => ({ type: "delete", value: b }));
|
|
372
372
|
const i = n + r, s = 2 * i + 1, o = [], a = new Array(s).fill(0);
|
|
373
373
|
let u = -1;
|
|
374
|
-
for (let
|
|
374
|
+
for (let b = 0; b <= i; b++) {
|
|
375
375
|
o.push([...a]);
|
|
376
|
-
for (let f = -
|
|
377
|
-
const
|
|
376
|
+
for (let f = -b; f <= b; f += 2) {
|
|
377
|
+
const m = f + i;
|
|
378
378
|
let g;
|
|
379
|
-
f === -
|
|
379
|
+
f === -b || f !== b && a[m - 1] < a[m + 1] ? g = a[m + 1] : g = a[m - 1] + 1;
|
|
380
380
|
let _ = g - f;
|
|
381
381
|
for (; g < n && _ < r && e[g] === t[_]; )
|
|
382
382
|
g++, _++;
|
|
383
|
-
if (a[
|
|
384
|
-
u =
|
|
383
|
+
if (a[m] = g, g >= n && _ >= r) {
|
|
384
|
+
u = b;
|
|
385
385
|
break;
|
|
386
386
|
}
|
|
387
387
|
}
|
|
@@ -390,14 +390,14 @@ function zd(e, t) {
|
|
|
390
390
|
}
|
|
391
391
|
const c = [];
|
|
392
392
|
let d = n, h = r;
|
|
393
|
-
for (let
|
|
394
|
-
const f = o[
|
|
393
|
+
for (let b = u; b > 0; b--) {
|
|
394
|
+
const f = o[b], m = d - h, g = m + i;
|
|
395
395
|
let _;
|
|
396
|
-
|
|
397
|
-
const p = _ + i, y = f[p],
|
|
398
|
-
for (; d > y && h >
|
|
396
|
+
m === -b || m !== b && f[g - 1] < f[g + 1] ? _ = m + 1 : _ = m - 1;
|
|
397
|
+
const p = _ + i, y = f[p], S = y - _;
|
|
398
|
+
for (; d > y && h > S; )
|
|
399
399
|
d--, h--, c.push({ type: "equal", value: e[d] });
|
|
400
|
-
|
|
400
|
+
m > _ ? (d--, c.push({ type: "delete", value: e[d] })) : (h--, c.push({ type: "insert", value: t[h] }));
|
|
401
401
|
}
|
|
402
402
|
for (; d > 0 && h > 0; )
|
|
403
403
|
d--, h--, c.push({ type: "equal", value: e[d] });
|
|
@@ -410,18 +410,18 @@ function _a(e, t, n = "word") {
|
|
|
410
410
|
let u = 0, c = 0, d = 0;
|
|
411
411
|
for (; d < o.length; ) {
|
|
412
412
|
const h = o[d].type;
|
|
413
|
-
let
|
|
413
|
+
let b = "";
|
|
414
414
|
for (; d < o.length && o[d].type === h; )
|
|
415
|
-
|
|
415
|
+
b += o[d].value, d++;
|
|
416
416
|
switch (h) {
|
|
417
417
|
case "equal":
|
|
418
|
-
a.push({ type: "equal", value:
|
|
418
|
+
a.push({ type: "equal", value: b, offset: u }), u += b.length, c += b.length;
|
|
419
419
|
break;
|
|
420
420
|
case "delete":
|
|
421
|
-
a.push({ type: "delete", value:
|
|
421
|
+
a.push({ type: "delete", value: b, offset: u }), u += b.length;
|
|
422
422
|
break;
|
|
423
423
|
case "insert":
|
|
424
|
-
a.push({ type: "insert", value:
|
|
424
|
+
a.push({ type: "insert", value: b, offset: c }), c += b.length;
|
|
425
425
|
break;
|
|
426
426
|
}
|
|
427
427
|
}
|
|
@@ -460,15 +460,15 @@ function qd(e, t, n, r, i = {}) {
|
|
|
460
460
|
const d = Pn(e, u), h = Pn(t, c);
|
|
461
461
|
if (!d || !h)
|
|
462
462
|
continue;
|
|
463
|
-
const
|
|
464
|
-
if (jd(
|
|
463
|
+
const b = ka(u), f = ka(c);
|
|
464
|
+
if (jd(b, f) || s.push({
|
|
465
465
|
type: "update",
|
|
466
466
|
path: h,
|
|
467
|
-
properties: { old:
|
|
467
|
+
properties: { old: b, new: f }
|
|
468
468
|
}), mn(u) && mn(c)) {
|
|
469
|
-
const
|
|
470
|
-
if (!$d(
|
|
471
|
-
const _ =
|
|
469
|
+
const m = u, g = c;
|
|
470
|
+
if (!$d(m.marks, g.marks)) {
|
|
471
|
+
const _ = m.marks ?? [], p = g.marks ?? [];
|
|
472
472
|
s.push({
|
|
473
473
|
type: "update",
|
|
474
474
|
path: h,
|
|
@@ -480,29 +480,29 @@ function qd(e, t, n, r, i = {}) {
|
|
|
480
480
|
}
|
|
481
481
|
}
|
|
482
482
|
if (mn(u) && mn(c)) {
|
|
483
|
-
const
|
|
484
|
-
|
|
483
|
+
const m = u, g = c;
|
|
484
|
+
m.value !== g.value && s.push({
|
|
485
485
|
type: "updateText",
|
|
486
486
|
path: h,
|
|
487
|
-
changes: _a(
|
|
487
|
+
changes: _a(m.value, g.value, o)
|
|
488
488
|
});
|
|
489
489
|
} else if (Dr(u) && Dr(c)) {
|
|
490
|
-
const
|
|
491
|
-
|
|
490
|
+
const m = u.value, g = c.value;
|
|
491
|
+
m !== g && s.push({
|
|
492
492
|
type: "updateText",
|
|
493
493
|
path: h,
|
|
494
|
-
changes: _a(
|
|
494
|
+
changes: _a(m, g, o)
|
|
495
495
|
});
|
|
496
496
|
}
|
|
497
497
|
if (d.length > 0 && h.length > 0) {
|
|
498
|
-
const
|
|
498
|
+
const m = d.slice(0, -1), g = h.slice(0, -1), _ = Aa(e, m), p = Aa(t, g);
|
|
499
499
|
if (_ && p) {
|
|
500
500
|
const y = n.get(_);
|
|
501
501
|
if (y && y !== p)
|
|
502
502
|
s.push({ type: "move", from: d, to: h });
|
|
503
503
|
else if (y === p) {
|
|
504
|
-
const
|
|
505
|
-
|
|
504
|
+
const S = d[d.length - 1], O = h[h.length - 1];
|
|
505
|
+
S !== O && s.push({ type: "move", from: d, to: h });
|
|
506
506
|
}
|
|
507
507
|
}
|
|
508
508
|
}
|
|
@@ -1761,8 +1761,8 @@ function ju(e, t, n) {
|
|
|
1761
1761
|
if (u.tagName = d || c, th(o))
|
|
1762
1762
|
a.unshift(o);
|
|
1763
1763
|
else
|
|
1764
|
-
for (const [h,
|
|
1765
|
-
nh(e, u.properties, h,
|
|
1764
|
+
for (const [h, b] of Object.entries(o))
|
|
1765
|
+
nh(e, u.properties, h, b);
|
|
1766
1766
|
}
|
|
1767
1767
|
for (const c of a)
|
|
1768
1768
|
hs(u.children, c);
|
|
@@ -8683,8 +8683,8 @@ function c0(e, t) {
|
|
|
8683
8683
|
})
|
|
8684
8684
|
);
|
|
8685
8685
|
function u(c) {
|
|
8686
|
-
const d = c.code, h = d0(d),
|
|
8687
|
-
if (
|
|
8686
|
+
const d = c.code, h = d0(d), b = n[h], f = b ?? !0, m = typeof f == "number" ? f : f ? 1 : 0;
|
|
8687
|
+
if (m) {
|
|
8688
8688
|
const _ = r0[h], p = new Qe(g(_.reason), {
|
|
8689
8689
|
place: {
|
|
8690
8690
|
start: {
|
|
@@ -8701,13 +8701,13 @@ function c0(e, t) {
|
|
|
8701
8701
|
ruleId: d,
|
|
8702
8702
|
source: "hast-util-from-html"
|
|
8703
8703
|
});
|
|
8704
|
-
i.path && (p.file = i.path, p.name = i.path + ":" + p.name), p.fatal = u0[
|
|
8704
|
+
i.path && (p.file = i.path, p.name = i.path + ":" + p.name), p.fatal = u0[m], p.note = g(_.description), p.url = _.url === !1 ? void 0 : i0 + d, r(p);
|
|
8705
8705
|
}
|
|
8706
8706
|
function g(_) {
|
|
8707
8707
|
return _.replace(a0, p).replace(o0, y);
|
|
8708
|
-
function p(
|
|
8709
|
-
const B = (D ? Number.parseInt(D, 10) : 0) * (O === "-" ? -1 : 1),
|
|
8710
|
-
return f0(
|
|
8708
|
+
function p(S, O, D) {
|
|
8709
|
+
const B = (D ? Number.parseInt(D, 10) : 0) * (O === "-" ? -1 : 1), A = o.charAt(c.startOffset + B);
|
|
8710
|
+
return f0(A);
|
|
8711
8711
|
}
|
|
8712
8712
|
function y() {
|
|
8713
8713
|
return p0(o.charCodeAt(c.startOffset));
|
|
@@ -8974,18 +8974,18 @@ class S0 {
|
|
|
8974
8974
|
t = String(t || "");
|
|
8975
8975
|
const r = t.length, i = zr(this.offsetAndType, t.length + 1), s = zr(this.balance, t.length + 1);
|
|
8976
8976
|
let o = 0, a = -1, u = 0, c = t.length;
|
|
8977
|
-
this.offsetAndType = null, this.balance = null, s.fill(0), n(t, (d, h,
|
|
8977
|
+
this.offsetAndType = null, this.balance = null, s.fill(0), n(t, (d, h, b) => {
|
|
8978
8978
|
const f = o++;
|
|
8979
|
-
if (i[f] = d << mt |
|
|
8980
|
-
const
|
|
8981
|
-
s[c] = f, c =
|
|
8979
|
+
if (i[f] = d << mt | b, a === -1 && (a = h), s[f] = c, d === u) {
|
|
8980
|
+
const m = s[c];
|
|
8981
|
+
s[c] = f, c = m, u = Gt[i[m] >> mt];
|
|
8982
8982
|
} else this.isBlockOpenerTokenType(d) && (c = f, u = Gt[d]);
|
|
8983
8983
|
}), i[o] = qt << mt | r, s[o] = o;
|
|
8984
8984
|
for (let d = 0; d < o; d++) {
|
|
8985
8985
|
const h = s[d];
|
|
8986
8986
|
if (h <= d) {
|
|
8987
|
-
const
|
|
8988
|
-
|
|
8987
|
+
const b = s[h];
|
|
8988
|
+
b !== d && (s[d] = b);
|
|
8989
8989
|
} else h > o && (s[d] = o);
|
|
8990
8990
|
}
|
|
8991
8991
|
this.source = t, this.firstCharOffset = a === -1 ? 0 : a, this.tokenCount = o, this.offsetAndType = i, this.balance = s, this.reset(), this.next();
|
|
@@ -9136,8 +9136,8 @@ function si(e, t) {
|
|
|
9136
9136
|
}
|
|
9137
9137
|
function s(h) {
|
|
9138
9138
|
for (h || (h = n(c++)), d = _t; c < e.length; c++) {
|
|
9139
|
-
const
|
|
9140
|
-
switch (Ei(
|
|
9139
|
+
const b = e.charCodeAt(c);
|
|
9140
|
+
switch (Ei(b)) {
|
|
9141
9141
|
// ending code point
|
|
9142
9142
|
case h:
|
|
9143
9143
|
c++;
|
|
@@ -9148,8 +9148,8 @@ function si(e, t) {
|
|
|
9148
9148
|
// return;
|
|
9149
9149
|
// newline
|
|
9150
9150
|
case Or:
|
|
9151
|
-
if (Hr(
|
|
9152
|
-
c += Ts(e, c,
|
|
9151
|
+
if (Hr(b)) {
|
|
9152
|
+
c += Ts(e, c, b), d = ni;
|
|
9153
9153
|
return;
|
|
9154
9154
|
}
|
|
9155
9155
|
break;
|
|
@@ -9158,7 +9158,7 @@ function si(e, t) {
|
|
|
9158
9158
|
if (c === e.length - 1)
|
|
9159
9159
|
break;
|
|
9160
9160
|
const f = n(c + 1);
|
|
9161
|
-
Hr(f) ? c += Ts(e, c + 1, f) : Nt(
|
|
9161
|
+
Hr(f) ? c += Ts(e, c + 1, f) : Nt(b, f) && (c = Sn(e, c) - 1);
|
|
9162
9162
|
break;
|
|
9163
9163
|
}
|
|
9164
9164
|
}
|
|
@@ -9539,21 +9539,21 @@ function ai(e, t) {
|
|
|
9539
9539
|
}
|
|
9540
9540
|
const _i = 100, Za = 60, Ja = " ";
|
|
9541
9541
|
function eo({ source: e, line: t, column: n, baseLine: r, baseColumn: i }, s) {
|
|
9542
|
-
function o(
|
|
9543
|
-
return c.slice(
|
|
9544
|
-
(_, p) => String(
|
|
9542
|
+
function o(m, g) {
|
|
9543
|
+
return c.slice(m, g).map(
|
|
9544
|
+
(_, p) => String(m + p + 1).padStart(b) + " |" + _
|
|
9545
9545
|
).join(`
|
|
9546
9546
|
`);
|
|
9547
9547
|
}
|
|
9548
9548
|
const a = `
|
|
9549
|
-
`.repeat(Math.max(r - 1, 0)), u = " ".repeat(Math.max(i - 1, 0)), c = (a + u + e).split(/\r\n?|\n|\f/), d = Math.max(1, t - s) - 1, h = Math.min(t + s, c.length + 1),
|
|
9549
|
+
`.repeat(Math.max(r - 1, 0)), u = " ".repeat(Math.max(i - 1, 0)), c = (a + u + e).split(/\r\n?|\n|\f/), d = Math.max(1, t - s) - 1, h = Math.min(t + s, c.length + 1), b = Math.max(4, String(h).length) + 1;
|
|
9550
9550
|
let f = 0;
|
|
9551
9551
|
n += (Ja.length - 1) * (c[t - 1].substr(0, n - 1).match(/\t/g) || []).length, n > _i && (f = n - Za + 3, n = Za - 2);
|
|
9552
|
-
for (let
|
|
9553
|
-
|
|
9552
|
+
for (let m = d; m <= h; m++)
|
|
9553
|
+
m >= 0 && m < c.length && (c[m] = c[m].replace(/\t/g, Ja), c[m] = (f > 0 && c[m].length > f ? "…" : "") + c[m].substr(f, _i - 2) + (c[m].length > f + _i - 1 ? "…" : ""));
|
|
9554
9554
|
return [
|
|
9555
9555
|
o(d, t),
|
|
9556
|
-
new Array(n +
|
|
9556
|
+
new Array(n + b + 2).join("-") + "^",
|
|
9557
9557
|
o(t, h)
|
|
9558
9558
|
].filter(Boolean).join(`
|
|
9559
9559
|
`).replace(/^(\s+\d+\s+\|\n)+/, "").replace(/\n(\s+\d+\s+\|)+$/, "");
|
|
@@ -9686,15 +9686,15 @@ function R0(e) {
|
|
|
9686
9686
|
getFirstListNode: ln,
|
|
9687
9687
|
getLastListNode: ln,
|
|
9688
9688
|
parseWithFallback(d, h) {
|
|
9689
|
-
const
|
|
9689
|
+
const b = this.tokenIndex;
|
|
9690
9690
|
try {
|
|
9691
9691
|
return d.call(this);
|
|
9692
9692
|
} catch (f) {
|
|
9693
9693
|
if (s)
|
|
9694
9694
|
throw f;
|
|
9695
|
-
this.skip(
|
|
9696
|
-
const
|
|
9697
|
-
return s = !0, i(f,
|
|
9695
|
+
this.skip(b - this.tokenIndex);
|
|
9696
|
+
const m = h.call(this);
|
|
9697
|
+
return s = !0, i(f, m), s = !1, m;
|
|
9698
9698
|
}
|
|
9699
9699
|
},
|
|
9700
9700
|
lookupNonWSType(d) {
|
|
@@ -9717,8 +9717,8 @@ function R0(e) {
|
|
|
9717
9717
|
cmpChar(d, h) {
|
|
9718
9718
|
return kn(t, d, h);
|
|
9719
9719
|
},
|
|
9720
|
-
cmpStr(d, h,
|
|
9721
|
-
return Qn(t, d, h,
|
|
9720
|
+
cmpStr(d, h, b) {
|
|
9721
|
+
return Qn(t, d, h, b);
|
|
9722
9722
|
},
|
|
9723
9723
|
consume(d) {
|
|
9724
9724
|
const h = this.tokenStart;
|
|
@@ -9734,20 +9734,20 @@ function R0(e) {
|
|
|
9734
9734
|
},
|
|
9735
9735
|
eat(d) {
|
|
9736
9736
|
if (this.tokenType !== d) {
|
|
9737
|
-
const h = _s[d].slice(0, -6).replace(/-/g, " ").replace(/^./, (
|
|
9738
|
-
let
|
|
9737
|
+
const h = _s[d].slice(0, -6).replace(/-/g, " ").replace(/^./, (m) => m.toUpperCase());
|
|
9738
|
+
let b = `${/[[\](){}]/.test(h) ? `"${h}"` : h} is expected`, f = this.tokenStart;
|
|
9739
9739
|
switch (d) {
|
|
9740
9740
|
case ne:
|
|
9741
|
-
this.tokenType === fe || this.tokenType === Ge ? (f = this.tokenEnd - 1,
|
|
9741
|
+
this.tokenType === fe || this.tokenType === Ge ? (f = this.tokenEnd - 1, b = "Identifier is expected but function found") : b = "Identifier is expected";
|
|
9742
9742
|
break;
|
|
9743
9743
|
case Ce:
|
|
9744
|
-
this.isDelim(N0) && (this.next(), f++,
|
|
9744
|
+
this.isDelim(N0) && (this.next(), f++, b = "Name is expected");
|
|
9745
9745
|
break;
|
|
9746
9746
|
case ve:
|
|
9747
|
-
this.tokenType === he && (f = this.tokenEnd,
|
|
9747
|
+
this.tokenType === he && (f = this.tokenEnd, b = "Percent sign is expected");
|
|
9748
9748
|
break;
|
|
9749
9749
|
}
|
|
9750
|
-
this.error(
|
|
9750
|
+
this.error(b, f);
|
|
9751
9751
|
}
|
|
9752
9752
|
this.next();
|
|
9753
9753
|
},
|
|
@@ -9766,23 +9766,23 @@ function R0(e) {
|
|
|
9766
9766
|
},
|
|
9767
9767
|
getLocationFromList(d) {
|
|
9768
9768
|
if (r) {
|
|
9769
|
-
const h = this.getFirstListNode(d),
|
|
9769
|
+
const h = this.getFirstListNode(d), b = this.getLastListNode(d);
|
|
9770
9770
|
return o.getLocationRange(
|
|
9771
9771
|
h !== null ? h.loc.start.offset - o.startOffset : this.tokenStart,
|
|
9772
|
-
|
|
9772
|
+
b !== null ? b.loc.end.offset - o.startOffset : this.tokenStart,
|
|
9773
9773
|
n
|
|
9774
9774
|
);
|
|
9775
9775
|
}
|
|
9776
9776
|
return null;
|
|
9777
9777
|
},
|
|
9778
9778
|
error(d, h) {
|
|
9779
|
-
const
|
|
9779
|
+
const b = typeof h < "u" && h < t.length ? o.getLocation(h) : this.eof ? o.getLocation(_0(t, t.length - 1)) : o.getLocation(this.tokenStart);
|
|
9780
9780
|
throw new to(
|
|
9781
9781
|
d || "Unexpected input",
|
|
9782
9782
|
t,
|
|
9783
|
-
|
|
9784
|
-
|
|
9785
|
-
|
|
9783
|
+
b.offset,
|
|
9784
|
+
b.line,
|
|
9785
|
+
b.column,
|
|
9786
9786
|
o.startLine,
|
|
9787
9787
|
o.startColumn
|
|
9788
9788
|
);
|
|
@@ -9811,18 +9811,18 @@ function R0(e) {
|
|
|
9811
9811
|
h.line,
|
|
9812
9812
|
h.column
|
|
9813
9813
|
), n = h.filename || "<unknown>", r = !!h.positions, i = typeof h.onParseError == "function" ? h.onParseError : ln, s = !1, a.parseAtrulePrelude = "parseAtrulePrelude" in h ? !!h.parseAtrulePrelude : !0, a.parseRulePrelude = "parseRulePrelude" in h ? !!h.parseRulePrelude : !0, a.parseValue = "parseValue" in h ? !!h.parseValue : !0, a.parseCustomProperty = "parseCustomProperty" in h ? !!h.parseCustomProperty : !1;
|
|
9814
|
-
const { context:
|
|
9815
|
-
if (!(
|
|
9816
|
-
throw new Error("Unknown context `" +
|
|
9817
|
-
Object.assign(a, f ? v0 : I0), Array.isArray(g) ? a.forEachToken((p, y,
|
|
9818
|
-
g.push({ type: p, start: y, end:
|
|
9819
|
-
}) : typeof g == "function" && a.forEachToken(g.bind(u())), typeof
|
|
9814
|
+
const { context: b = "default", list: f = !0, onComment: m, onToken: g } = h;
|
|
9815
|
+
if (!(b in a.context))
|
|
9816
|
+
throw new Error("Unknown context `" + b + "`");
|
|
9817
|
+
Object.assign(a, f ? v0 : I0), Array.isArray(g) ? a.forEachToken((p, y, S) => {
|
|
9818
|
+
g.push({ type: p, start: y, end: S });
|
|
9819
|
+
}) : typeof g == "function" && a.forEachToken(g.bind(u())), typeof m == "function" && a.forEachToken((p, y, S) => {
|
|
9820
9820
|
if (p === qe) {
|
|
9821
|
-
const O = a.getLocation(y,
|
|
9822
|
-
|
|
9821
|
+
const O = a.getLocation(y, S), D = Qn(t, S - 2, S, "*/") ? t.slice(y + 2, S - 2) : t.slice(y + 2, S);
|
|
9822
|
+
m(D, O);
|
|
9823
9823
|
}
|
|
9824
9824
|
});
|
|
9825
|
-
const _ = a.context[
|
|
9825
|
+
const _ = a.context[b].call(a, h);
|
|
9826
9826
|
return a.eof || a.error(), _;
|
|
9827
9827
|
}, {
|
|
9828
9828
|
SyntaxError: to,
|
|
@@ -9866,15 +9866,15 @@ function M0() {
|
|
|
9866
9866
|
while (h > 0);
|
|
9867
9867
|
return c;
|
|
9868
9868
|
}, pr.decode = function(u, c, d) {
|
|
9869
|
-
var h = u.length,
|
|
9869
|
+
var h = u.length, b = 0, f = 0, m, g;
|
|
9870
9870
|
do {
|
|
9871
9871
|
if (c >= h)
|
|
9872
9872
|
throw new Error("Expected more digits in base 64 VLQ value.");
|
|
9873
9873
|
if (g = e.decode(u.charCodeAt(c++)), g === -1)
|
|
9874
9874
|
throw new Error("Invalid base64 digit: " + u.charAt(c - 1));
|
|
9875
|
-
|
|
9876
|
-
} while (
|
|
9877
|
-
d.value = o(
|
|
9875
|
+
m = !!(g & i), g &= r, b = b + (g << f), f += t;
|
|
9876
|
+
} while (m);
|
|
9877
|
+
d.value = o(b), d.rest = c;
|
|
9878
9878
|
}, pr;
|
|
9879
9879
|
}
|
|
9880
9880
|
var Si = {}, ao;
|
|
@@ -9911,8 +9911,8 @@ function Vs() {
|
|
|
9911
9911
|
return function(P) {
|
|
9912
9912
|
for (var R = 0; R < k.length; R++)
|
|
9913
9913
|
if (k[R].input === P) {
|
|
9914
|
-
var
|
|
9915
|
-
return k[0] = k[R], k[R] =
|
|
9914
|
+
var x = k[0];
|
|
9915
|
+
return k[0] = k[R], k[R] = x, k[0].result;
|
|
9916
9916
|
}
|
|
9917
9917
|
var M = C(P);
|
|
9918
9918
|
return k.unshift({
|
|
@@ -9928,7 +9928,7 @@ function Vs() {
|
|
|
9928
9928
|
return k;
|
|
9929
9929
|
P = R.path;
|
|
9930
9930
|
}
|
|
9931
|
-
for (var
|
|
9931
|
+
for (var x = e.isAbsolute(P), M = [], T = 0, U = 0; ; )
|
|
9932
9932
|
if (T = U, U = P.indexOf("/", T), U === -1) {
|
|
9933
9933
|
M.push(P.slice(T));
|
|
9934
9934
|
break;
|
|
@@ -9937,7 +9937,7 @@ function Vs() {
|
|
|
9937
9937
|
U++;
|
|
9938
9938
|
for (var W, G = 0, U = M.length - 1; U >= 0; U--)
|
|
9939
9939
|
W = M[U], W === "." ? M.splice(U, 1) : W === ".." ? G++ : G > 0 && (W === "" ? (M.splice(U + 1, G), G = 0) : (M.splice(U, 2), G--));
|
|
9940
|
-
return P = M.join("/"), P === "" && (P =
|
|
9940
|
+
return P = M.join("/"), P === "" && (P = x ? "/" : "."), R ? (R.path = P, s(R)) : P;
|
|
9941
9941
|
});
|
|
9942
9942
|
e.normalize = u;
|
|
9943
9943
|
function c(C, k) {
|
|
@@ -9949,8 +9949,8 @@ function Vs() {
|
|
|
9949
9949
|
return k;
|
|
9950
9950
|
if (R && !R.host && !R.path)
|
|
9951
9951
|
return R.host = k, s(R);
|
|
9952
|
-
var
|
|
9953
|
-
return R ? (R.path =
|
|
9952
|
+
var x = k.charAt(0) === "/" ? k : u(C.replace(/\/+$/, "") + "/" + k);
|
|
9953
|
+
return R ? (R.path = x, s(R)) : x;
|
|
9954
9954
|
}
|
|
9955
9955
|
e.join = c, e.isAbsolute = function(C) {
|
|
9956
9956
|
return C.charAt(0) === "/" || n.test(C);
|
|
@@ -9970,17 +9970,17 @@ function Vs() {
|
|
|
9970
9970
|
var C = /* @__PURE__ */ Object.create(null);
|
|
9971
9971
|
return !("__proto__" in C);
|
|
9972
9972
|
})();
|
|
9973
|
-
function
|
|
9973
|
+
function b(C) {
|
|
9974
9974
|
return C;
|
|
9975
9975
|
}
|
|
9976
9976
|
function f(C) {
|
|
9977
9977
|
return g(C) ? "$" + C : C;
|
|
9978
9978
|
}
|
|
9979
|
-
e.toSetString = h ?
|
|
9980
|
-
function
|
|
9979
|
+
e.toSetString = h ? b : f;
|
|
9980
|
+
function m(C) {
|
|
9981
9981
|
return g(C) ? C.slice(1) : C;
|
|
9982
9982
|
}
|
|
9983
|
-
e.fromSetString = h ?
|
|
9983
|
+
e.fromSetString = h ? b : m;
|
|
9984
9984
|
function g(C) {
|
|
9985
9985
|
if (!C)
|
|
9986
9986
|
return !1;
|
|
@@ -10007,11 +10007,11 @@ function Vs() {
|
|
|
10007
10007
|
return R !== 0 || (R = C.generatedColumn - k.generatedColumn, R !== 0 || P) || (R = O(C.source, k.source), R !== 0) || (R = C.originalLine - k.originalLine, R !== 0) || (R = C.originalColumn - k.originalColumn, R !== 0) ? R : O(C.name, k.name);
|
|
10008
10008
|
}
|
|
10009
10009
|
e.compareByGeneratedPositionsDeflated = y;
|
|
10010
|
-
function
|
|
10010
|
+
function S(C, k, P) {
|
|
10011
10011
|
var R = C.generatedColumn - k.generatedColumn;
|
|
10012
10012
|
return R !== 0 || P || (R = O(C.source, k.source), R !== 0) || (R = C.originalLine - k.originalLine, R !== 0) || (R = C.originalColumn - k.originalColumn, R !== 0) ? R : O(C.name, k.name);
|
|
10013
10013
|
}
|
|
10014
|
-
e.compareByGeneratedPositionsDeflatedNoLine =
|
|
10014
|
+
e.compareByGeneratedPositionsDeflatedNoLine = S;
|
|
10015
10015
|
function O(C, k) {
|
|
10016
10016
|
return C === k ? 0 : C === null ? 1 : k === null ? -1 : C > k ? 1 : -1;
|
|
10017
10017
|
}
|
|
@@ -10024,20 +10024,20 @@ function Vs() {
|
|
|
10024
10024
|
return JSON.parse(C.replace(/^\)]}'[^\n]*\n/, ""));
|
|
10025
10025
|
}
|
|
10026
10026
|
e.parseSourceMapInput = B;
|
|
10027
|
-
function
|
|
10027
|
+
function A(C, k, P) {
|
|
10028
10028
|
if (k = k || "", C && (C[C.length - 1] !== "/" && k[0] !== "/" && (C += "/"), k = C + k), P) {
|
|
10029
10029
|
var R = i(P);
|
|
10030
10030
|
if (!R)
|
|
10031
10031
|
throw new Error("sourceMapURL could not be parsed");
|
|
10032
10032
|
if (R.path) {
|
|
10033
|
-
var
|
|
10034
|
-
|
|
10033
|
+
var x = R.path.lastIndexOf("/");
|
|
10034
|
+
x >= 0 && (R.path = R.path.substring(0, x + 1));
|
|
10035
10035
|
}
|
|
10036
10036
|
k = c(s(R), k);
|
|
10037
10037
|
}
|
|
10038
10038
|
return u(k);
|
|
10039
10039
|
}
|
|
10040
|
-
e.computeSourceURL =
|
|
10040
|
+
e.computeSourceURL = A;
|
|
10041
10041
|
})(Si)), Si;
|
|
10042
10042
|
}
|
|
10043
10043
|
var xi = {}, oo;
|
|
@@ -10128,8 +10128,8 @@ function U0() {
|
|
|
10128
10128
|
}), o.sources.forEach(function(d) {
|
|
10129
10129
|
var h = d;
|
|
10130
10130
|
u !== null && (h = t.relative(u, d)), c._sources.has(h) || c._sources.add(h);
|
|
10131
|
-
var
|
|
10132
|
-
|
|
10131
|
+
var b = o.sourceContentFor(d);
|
|
10132
|
+
b != null && c.setSourceContent(d, b);
|
|
10133
10133
|
}), c;
|
|
10134
10134
|
}, i.prototype.addMapping = function(o) {
|
|
10135
10135
|
var a = t.getArg(o, "generated"), u = t.getArg(o, "original", null), c = t.getArg(o, "source", null), d = t.getArg(o, "name", null);
|
|
@@ -10155,22 +10155,22 @@ function U0() {
|
|
|
10155
10155
|
}
|
|
10156
10156
|
var d = this._sourceRoot;
|
|
10157
10157
|
d != null && (c = t.relative(d, c));
|
|
10158
|
-
var h = new n(),
|
|
10158
|
+
var h = new n(), b = new n();
|
|
10159
10159
|
this._mappings.unsortedForEach(function(f) {
|
|
10160
10160
|
if (f.source === c && f.originalLine != null) {
|
|
10161
|
-
var
|
|
10161
|
+
var m = o.originalPositionFor({
|
|
10162
10162
|
line: f.originalLine,
|
|
10163
10163
|
column: f.originalColumn
|
|
10164
10164
|
});
|
|
10165
|
-
|
|
10165
|
+
m.source != null && (f.source = m.source, u != null && (f.source = t.join(u, f.source)), d != null && (f.source = t.relative(d, f.source)), f.originalLine = m.line, f.originalColumn = m.column, m.name != null && (f.name = m.name));
|
|
10166
10166
|
}
|
|
10167
10167
|
var g = f.source;
|
|
10168
10168
|
g != null && !h.has(g) && h.add(g);
|
|
10169
10169
|
var _ = f.name;
|
|
10170
|
-
_ != null && !
|
|
10171
|
-
}, this), this._sources = h, this._names =
|
|
10172
|
-
var
|
|
10173
|
-
|
|
10170
|
+
_ != null && !b.has(_) && b.add(_);
|
|
10171
|
+
}, this), this._sources = h, this._names = b, o.sources.forEach(function(f) {
|
|
10172
|
+
var m = o.sourceContentFor(f);
|
|
10173
|
+
m != null && (u != null && (f = t.join(u, f)), d != null && (f = t.relative(d, f)), this.setSourceContent(f, m));
|
|
10174
10174
|
}, this);
|
|
10175
10175
|
}, i.prototype._validateMapping = function(o, a, u, c) {
|
|
10176
10176
|
if (a && typeof a.line != "number" && typeof a.column != "number") {
|
|
@@ -10193,18 +10193,18 @@ function U0() {
|
|
|
10193
10193
|
throw new Error(d);
|
|
10194
10194
|
}
|
|
10195
10195
|
}, i.prototype._serializeMappings = function() {
|
|
10196
|
-
for (var o = 0, a = 1, u = 0, c = 0, d = 0, h = 0,
|
|
10197
|
-
if (
|
|
10198
|
-
for (o = 0;
|
|
10196
|
+
for (var o = 0, a = 1, u = 0, c = 0, d = 0, h = 0, b = "", f, m, g, _, p = this._mappings.toArray(), y = 0, S = p.length; y < S; y++) {
|
|
10197
|
+
if (m = p[y], f = "", m.generatedLine !== a)
|
|
10198
|
+
for (o = 0; m.generatedLine !== a; )
|
|
10199
10199
|
f += ";", a++;
|
|
10200
10200
|
else if (y > 0) {
|
|
10201
|
-
if (!t.compareByGeneratedPositionsInflated(
|
|
10201
|
+
if (!t.compareByGeneratedPositionsInflated(m, p[y - 1]))
|
|
10202
10202
|
continue;
|
|
10203
10203
|
f += ",";
|
|
10204
10204
|
}
|
|
10205
|
-
f += e.encode(
|
|
10205
|
+
f += e.encode(m.generatedColumn - o), o = m.generatedColumn, m.source != null && (_ = this._sources.indexOf(m.source), f += e.encode(_ - h), h = _, f += e.encode(m.originalLine - 1 - c), c = m.originalLine - 1, f += e.encode(m.originalColumn - u), u = m.originalColumn, m.name != null && (g = this._names.indexOf(m.name), f += e.encode(g - d), d = g)), b += f;
|
|
10206
10206
|
}
|
|
10207
|
-
return
|
|
10207
|
+
return b;
|
|
10208
10208
|
}, i.prototype._generateSourcesContent = function(o, a) {
|
|
10209
10209
|
return o.map(function(u) {
|
|
10210
10210
|
if (!this._sourcesContents)
|
|
@@ -10243,22 +10243,22 @@ function z0(e) {
|
|
|
10243
10243
|
};
|
|
10244
10244
|
let o = 1, a = 0, u = !1;
|
|
10245
10245
|
const c = e.node;
|
|
10246
|
-
e.node = function(
|
|
10247
|
-
if (
|
|
10248
|
-
const f =
|
|
10249
|
-
(r.line !== f || r.column !==
|
|
10250
|
-
source:
|
|
10246
|
+
e.node = function(b) {
|
|
10247
|
+
if (b.loc && b.loc.start && co.has(b.type)) {
|
|
10248
|
+
const f = b.loc.start.line, m = b.loc.start.column - 1;
|
|
10249
|
+
(r.line !== f || r.column !== m) && (r.line = f, r.column = m, n.line = o, n.column = a, u && (u = !1, (n.line !== i.line || n.column !== i.column) && t.addMapping(s)), u = !0, t.addMapping({
|
|
10250
|
+
source: b.loc.source,
|
|
10251
10251
|
original: r,
|
|
10252
10252
|
generated: n
|
|
10253
10253
|
}));
|
|
10254
10254
|
}
|
|
10255
|
-
c.call(this,
|
|
10255
|
+
c.call(this, b), u && co.has(b.type) && (i.line = o, i.column = a);
|
|
10256
10256
|
};
|
|
10257
10257
|
const d = e.emit;
|
|
10258
|
-
e.emit = function(
|
|
10259
|
-
for (let g = 0; g <
|
|
10260
|
-
|
|
10261
|
-
d(
|
|
10258
|
+
e.emit = function(b, f, m) {
|
|
10259
|
+
for (let g = 0; g < b.length; g++)
|
|
10260
|
+
b.charCodeAt(g) === 10 ? (o++, a = 0) : a++;
|
|
10261
|
+
d(b, f, m);
|
|
10262
10262
|
};
|
|
10263
10263
|
const h = e.result;
|
|
10264
10264
|
return e.result = function() {
|
|
@@ -10545,11 +10545,11 @@ function Z0(e) {
|
|
|
10545
10545
|
for (const c in t)
|
|
10546
10546
|
Ks.call(t, c) && t[c] !== null && (n[c] = mo(t[c], !1), r[c] = mo(t[c], !0));
|
|
10547
10547
|
const o = go(n), a = go(r), u = function(c, d) {
|
|
10548
|
-
function h(p, y,
|
|
10549
|
-
const O =
|
|
10550
|
-
return O === i ? !0 : O === s ? !1 : !!(
|
|
10548
|
+
function h(p, y, S) {
|
|
10549
|
+
const O = b.call(_, p, y, S);
|
|
10550
|
+
return O === i ? !0 : O === s ? !1 : !!(m.hasOwnProperty(p.type) && m[p.type](p, _, h, g) || f.call(_, p, y, S) === i);
|
|
10551
10551
|
}
|
|
10552
|
-
let
|
|
10552
|
+
let b = Mn, f = Mn, m = n, g = (p, y, S, O) => p || h(y, S, O);
|
|
10553
10553
|
const _ = {
|
|
10554
10554
|
break: i,
|
|
10555
10555
|
skip: s,
|
|
@@ -10564,37 +10564,37 @@ function Z0(e) {
|
|
|
10564
10564
|
function: null
|
|
10565
10565
|
};
|
|
10566
10566
|
if (typeof d == "function")
|
|
10567
|
-
|
|
10568
|
-
else if (d && (
|
|
10567
|
+
b = d;
|
|
10568
|
+
else if (d && (b = fo(d.enter), f = fo(d.leave), d.reverse && (m = r), d.visit)) {
|
|
10569
10569
|
if (o.hasOwnProperty(d.visit))
|
|
10570
|
-
|
|
10570
|
+
m = d.reverse ? a[d.visit] : o[d.visit];
|
|
10571
10571
|
else if (!t.hasOwnProperty(d.visit))
|
|
10572
10572
|
throw new Error("Bad value `" + d.visit + "` for `visit` option (should be: " + Object.keys(t).sort().join(", ") + ")");
|
|
10573
|
-
|
|
10573
|
+
b = po(b, d.visit), f = po(f, d.visit);
|
|
10574
10574
|
}
|
|
10575
|
-
if (
|
|
10575
|
+
if (b === Mn && f === Mn)
|
|
10576
10576
|
throw new Error("Neither `enter` nor `leave` walker handler is set or both aren't a function");
|
|
10577
10577
|
h(c);
|
|
10578
10578
|
};
|
|
10579
10579
|
return u.break = i, u.skip = s, u.find = function(c, d) {
|
|
10580
10580
|
let h = null;
|
|
10581
|
-
return u(c, function(
|
|
10582
|
-
if (d.call(this,
|
|
10583
|
-
return h =
|
|
10581
|
+
return u(c, function(b, f, m) {
|
|
10582
|
+
if (d.call(this, b, f, m))
|
|
10583
|
+
return h = b, i;
|
|
10584
10584
|
}), h;
|
|
10585
10585
|
}, u.findLast = function(c, d) {
|
|
10586
10586
|
let h = null;
|
|
10587
10587
|
return u(c, {
|
|
10588
10588
|
reverse: !0,
|
|
10589
|
-
enter(
|
|
10590
|
-
if (d.call(this,
|
|
10591
|
-
return h =
|
|
10589
|
+
enter(b, f, m) {
|
|
10590
|
+
if (d.call(this, b, f, m))
|
|
10591
|
+
return h = b, i;
|
|
10592
10592
|
}
|
|
10593
10593
|
}), h;
|
|
10594
10594
|
}, u.findAll = function(c, d) {
|
|
10595
10595
|
const h = [];
|
|
10596
|
-
return u(c, function(
|
|
10597
|
-
d.call(this,
|
|
10596
|
+
return u(c, function(b, f, m) {
|
|
10597
|
+
d.call(this, b, f, m) && h.push(b);
|
|
10598
10598
|
}), h;
|
|
10599
10599
|
}, u;
|
|
10600
10600
|
}
|
|
@@ -10663,9 +10663,9 @@ const bo = { offset: 0, line: 1, column: 1 };
|
|
|
10663
10663
|
function rm(e, t) {
|
|
10664
10664
|
const n = e.tokens, r = e.longestMatch, i = r < n.length && n[r].node || null, s = i !== t ? i : null;
|
|
10665
10665
|
let o = 0, a = 0, u = 0, c = "", d, h;
|
|
10666
|
-
for (let
|
|
10667
|
-
const f = n[
|
|
10668
|
-
|
|
10666
|
+
for (let b = 0; b < n.length; b++) {
|
|
10667
|
+
const f = n[b].value;
|
|
10668
|
+
b === r && (a = f.length, o = c.length), s !== null && n[b].node === s && (b <= r ? u++ : u = 0), c += f;
|
|
10669
10669
|
}
|
|
10670
10670
|
return r === n.length || u > 1 ? (d = gr(s || t, "end") || Bn(bo, c), h = Bn(d)) : (d = gr(s, "start") || Bn(gr(t, "start") || bo, c.slice(0, o)), h = gr(s, "end") || Bn(d, c.substr(o, a))), {
|
|
10671
10671
|
css: c,
|
|
@@ -12041,17 +12041,17 @@ function _g(e, t, n) {
|
|
|
12041
12041
|
nextState: D,
|
|
12042
12042
|
matchStack: O,
|
|
12043
12043
|
syntaxStack: h,
|
|
12044
|
-
thenStack:
|
|
12044
|
+
thenStack: b,
|
|
12045
12045
|
tokenIndex: y,
|
|
12046
12046
|
prev: B
|
|
12047
12047
|
};
|
|
12048
12048
|
}
|
|
12049
12049
|
function o(D) {
|
|
12050
|
-
|
|
12050
|
+
b = {
|
|
12051
12051
|
nextState: D,
|
|
12052
12052
|
matchStack: O,
|
|
12053
12053
|
syntaxStack: h,
|
|
12054
|
-
prev:
|
|
12054
|
+
prev: b
|
|
12055
12055
|
};
|
|
12056
12056
|
}
|
|
12057
12057
|
function a(D) {
|
|
@@ -12063,7 +12063,7 @@ function _g(e, t, n) {
|
|
|
12063
12063
|
syntax: t.syntax,
|
|
12064
12064
|
token: p,
|
|
12065
12065
|
prev: O
|
|
12066
|
-
}, r(),
|
|
12066
|
+
}, r(), m = null, y > S && (S = y);
|
|
12067
12067
|
}
|
|
12068
12068
|
function c() {
|
|
12069
12069
|
h = {
|
|
@@ -12085,7 +12085,7 @@ function _g(e, t, n) {
|
|
|
12085
12085
|
prev: O
|
|
12086
12086
|
}, h = h.prev;
|
|
12087
12087
|
}
|
|
12088
|
-
let h = null,
|
|
12088
|
+
let h = null, b = null, f = null, m = null, g = 0, _ = null, p = null, y = -1, S = 0, O = {
|
|
12089
12089
|
type: mg,
|
|
12090
12090
|
syntax: null,
|
|
12091
12091
|
token: null,
|
|
@@ -12094,7 +12094,7 @@ function _g(e, t, n) {
|
|
|
12094
12094
|
for (r(); _ === null && ++g < Lo; )
|
|
12095
12095
|
switch (t.type) {
|
|
12096
12096
|
case "Match":
|
|
12097
|
-
if (
|
|
12097
|
+
if (b === null) {
|
|
12098
12098
|
if (p !== null && (y !== e.length - 1 || p.value !== "\\0" && p.value !== "\\9")) {
|
|
12099
12099
|
t = we;
|
|
12100
12100
|
break;
|
|
@@ -12102,24 +12102,24 @@ function _g(e, t, n) {
|
|
|
12102
12102
|
_ = Oo;
|
|
12103
12103
|
break;
|
|
12104
12104
|
}
|
|
12105
|
-
if (t =
|
|
12106
|
-
if (
|
|
12105
|
+
if (t = b.nextState, t === la)
|
|
12106
|
+
if (b.matchStack === O) {
|
|
12107
12107
|
t = we;
|
|
12108
12108
|
break;
|
|
12109
12109
|
} else
|
|
12110
12110
|
t = _e;
|
|
12111
|
-
for (;
|
|
12111
|
+
for (; b.syntaxStack !== h; )
|
|
12112
12112
|
d();
|
|
12113
|
-
|
|
12113
|
+
b = b.prev;
|
|
12114
12114
|
break;
|
|
12115
12115
|
case "Mismatch":
|
|
12116
|
-
if (
|
|
12117
|
-
(f === null || y > f.tokenIndex) && (f =
|
|
12116
|
+
if (m !== null && m !== !1)
|
|
12117
|
+
(f === null || y > f.tokenIndex) && (f = m, m = !1);
|
|
12118
12118
|
else if (f === null) {
|
|
12119
12119
|
_ = bg;
|
|
12120
12120
|
break;
|
|
12121
12121
|
}
|
|
12122
|
-
t = f.nextState,
|
|
12122
|
+
t = f.nextState, b = f.thenStack, h = f.syntaxStack, O = f.matchStack, y = f.tokenIndex, p = y < e.length ? e[y] : null, f = f.prev;
|
|
12123
12123
|
break;
|
|
12124
12124
|
case "MatchGraph":
|
|
12125
12125
|
t = t.match;
|
|
@@ -12136,8 +12136,8 @@ function _g(e, t, n) {
|
|
|
12136
12136
|
};
|
|
12137
12137
|
break;
|
|
12138
12138
|
case "MatchOnceBuffer": {
|
|
12139
|
-
const
|
|
12140
|
-
if (t.index ===
|
|
12139
|
+
const A = t.syntax.terms;
|
|
12140
|
+
if (t.index === A.length) {
|
|
12141
12141
|
if (t.mask === 0 || t.syntax.all) {
|
|
12142
12142
|
t = we;
|
|
12143
12143
|
break;
|
|
@@ -12145,18 +12145,18 @@ function _g(e, t, n) {
|
|
|
12145
12145
|
t = _e;
|
|
12146
12146
|
break;
|
|
12147
12147
|
}
|
|
12148
|
-
if (t.mask === (1 <<
|
|
12148
|
+
if (t.mask === (1 << A.length) - 1) {
|
|
12149
12149
|
t = _e;
|
|
12150
12150
|
break;
|
|
12151
12151
|
}
|
|
12152
|
-
for (; t.index <
|
|
12152
|
+
for (; t.index < A.length; t.index++) {
|
|
12153
12153
|
const C = 1 << t.index;
|
|
12154
12154
|
if ((t.mask & C) === 0) {
|
|
12155
12155
|
a(t), o({
|
|
12156
12156
|
type: "AddMatchOnce",
|
|
12157
12157
|
syntax: t.syntax,
|
|
12158
12158
|
mask: t.mask | C
|
|
12159
|
-
}), t =
|
|
12159
|
+
}), t = A[t.index++];
|
|
12160
12160
|
break;
|
|
12161
12161
|
}
|
|
12162
12162
|
}
|
|
@@ -12172,16 +12172,16 @@ function _g(e, t, n) {
|
|
|
12172
12172
|
break;
|
|
12173
12173
|
case "Enum":
|
|
12174
12174
|
if (p !== null) {
|
|
12175
|
-
let
|
|
12176
|
-
if (
|
|
12177
|
-
t = t.map[
|
|
12175
|
+
let A = p.value.toLowerCase();
|
|
12176
|
+
if (A.indexOf("\\") !== -1 && (A = A.replace(/\\[09].*$/, "")), vo.call(t.map, A)) {
|
|
12177
|
+
t = t.map[A];
|
|
12178
12178
|
break;
|
|
12179
12179
|
}
|
|
12180
12180
|
}
|
|
12181
12181
|
t = we;
|
|
12182
12182
|
break;
|
|
12183
12183
|
case "Generic": {
|
|
12184
|
-
const
|
|
12184
|
+
const A = h !== null ? h.opts : null, C = y + Math.floor(t.fn(p, i, A));
|
|
12185
12185
|
if (!isNaN(C) && C > y) {
|
|
12186
12186
|
for (; y < C; )
|
|
12187
12187
|
u();
|
|
@@ -12192,29 +12192,29 @@ function _g(e, t, n) {
|
|
|
12192
12192
|
}
|
|
12193
12193
|
case "Type":
|
|
12194
12194
|
case "Property": {
|
|
12195
|
-
const
|
|
12195
|
+
const A = t.type === "Type" ? "types" : "properties", C = vo.call(n, A) ? n[A][t.name] : null;
|
|
12196
12196
|
if (!C || !C.match)
|
|
12197
12197
|
throw new Error(
|
|
12198
12198
|
"Bad syntax reference: " + (t.type === "Type" ? "<" + t.name + ">" : "<'" + t.name + "'>")
|
|
12199
12199
|
);
|
|
12200
|
-
if (
|
|
12200
|
+
if (m !== !1 && p !== null && t.type === "Type" && // https://drafts.csswg.org/css-values-4/#custom-idents
|
|
12201
12201
|
// When parsing positionally-ambiguous keywords in a property value, a <custom-ident> production
|
|
12202
12202
|
// can only claim the keyword if no other unfulfilled production can claim it.
|
|
12203
12203
|
(t.name === "custom-ident" && p.type === ne || // https://drafts.csswg.org/css-values-4/#lengths
|
|
12204
12204
|
// ... if a `0` could be parsed as either a <number> or a <length> in a property (such as line-height),
|
|
12205
12205
|
// it must parse as a <number>
|
|
12206
12206
|
t.name === "length" && p.value === "0")) {
|
|
12207
|
-
|
|
12207
|
+
m === null && (m = s(t, f)), t = we;
|
|
12208
12208
|
break;
|
|
12209
12209
|
}
|
|
12210
12210
|
c(), t = C.matchRef || C.match;
|
|
12211
12211
|
break;
|
|
12212
12212
|
}
|
|
12213
12213
|
case "Keyword": {
|
|
12214
|
-
const
|
|
12214
|
+
const A = t.name;
|
|
12215
12215
|
if (p !== null) {
|
|
12216
12216
|
let C = p.value;
|
|
12217
|
-
if (C.indexOf("\\") !== -1 && (C = C.replace(/\\[09].*$/, "")), Ri(C,
|
|
12217
|
+
if (C.indexOf("\\") !== -1 && (C = C.replace(/\\[09].*$/, "")), Ri(C, A)) {
|
|
12218
12218
|
u(), t = _e;
|
|
12219
12219
|
break;
|
|
12220
12220
|
}
|
|
@@ -12270,7 +12270,7 @@ function _g(e, t, n) {
|
|
|
12270
12270
|
reason: _,
|
|
12271
12271
|
iterations: g,
|
|
12272
12272
|
match: O,
|
|
12273
|
-
longestMatch:
|
|
12273
|
+
longestMatch: S
|
|
12274
12274
|
};
|
|
12275
12275
|
}
|
|
12276
12276
|
function Do(e, t, n) {
|
|
@@ -12350,7 +12350,7 @@ function Mo(e, t, n, r, i) {
|
|
|
12350
12350
|
function s(a) {
|
|
12351
12351
|
if (a.syntax !== null && a.syntax.type === r && a.syntax.name === i) {
|
|
12352
12352
|
const u = ql(a), c = Yl(a);
|
|
12353
|
-
e.syntax.walk(t, function(d, h,
|
|
12353
|
+
e.syntax.walk(t, function(d, h, b) {
|
|
12354
12354
|
if (d === u) {
|
|
12355
12355
|
const f = new He();
|
|
12356
12356
|
do {
|
|
@@ -12359,7 +12359,7 @@ function Mo(e, t, n, r, i) {
|
|
|
12359
12359
|
h = h.next;
|
|
12360
12360
|
} while (h !== null);
|
|
12361
12361
|
o.push({
|
|
12362
|
-
parent:
|
|
12362
|
+
parent: b,
|
|
12363
12363
|
nodes: f
|
|
12364
12364
|
});
|
|
12365
12365
|
}
|
|
@@ -12702,11 +12702,11 @@ class Fo {
|
|
|
12702
12702
|
function n(u, c, d, h) {
|
|
12703
12703
|
if (d.has(c))
|
|
12704
12704
|
return d.get(c);
|
|
12705
|
-
d.set(c, !1), h.syntax !== null && ug(h.syntax, function(
|
|
12706
|
-
if (
|
|
12705
|
+
d.set(c, !1), h.syntax !== null && ug(h.syntax, function(b) {
|
|
12706
|
+
if (b.type !== "Type" && b.type !== "Property")
|
|
12707
12707
|
return;
|
|
12708
|
-
const f =
|
|
12709
|
-
hasOwnProperty.call(f,
|
|
12708
|
+
const f = b.type === "Type" ? u.types : u.properties, m = b.type === "Type" ? i : s;
|
|
12709
|
+
hasOwnProperty.call(f, b.name) ? n(u, b.name, m, f[b.name]) && (r.push(`${t(c, d === i)} used broken syntax definition ${t(b.name, b.type === "Type")}`), d.set(c, !0)) : (r.push(`${t(c, d === i)} used missed syntax definition ${t(b.name, b.type === "Type")}`), d.set(c, !0));
|
|
12710
12710
|
}, this);
|
|
12711
12711
|
}
|
|
12712
12712
|
const r = [];
|
|
@@ -16749,28 +16749,28 @@ function wr(e) {
|
|
|
16749
16749
|
const t = e.tagName.toLowerCase();
|
|
16750
16750
|
let n;
|
|
16751
16751
|
if (t === "a") {
|
|
16752
|
-
const
|
|
16753
|
-
if ((s = e.properties) != null && s.title && (
|
|
16752
|
+
const b = { url: String(((i = e.properties) == null ? void 0 : i.href) ?? "") };
|
|
16753
|
+
if ((s = e.properties) != null && s.title && (b.title = String(e.properties.title)), (o = e.properties) != null && o.id && (b.id = String(e.properties.id)), (a = e.properties) != null && a.name && (b.name = String(e.properties.name)), (u = e.properties) != null && u.className) {
|
|
16754
16754
|
const f = Array.isArray(e.properties.className) ? e.properties.className.map(String) : [String(e.properties.className)];
|
|
16755
|
-
f.length > 0 && (
|
|
16755
|
+
f.length > 0 && (b.className = f);
|
|
16756
16756
|
}
|
|
16757
|
-
for (const [f,
|
|
16758
|
-
f.startsWith("data") && f !== "data" && !(f in
|
|
16759
|
-
n = { type: "link", attrs:
|
|
16757
|
+
for (const [f, m] of Object.entries(e.properties ?? {}))
|
|
16758
|
+
f.startsWith("data") && f !== "data" && !(f in b) && (b[f] = m);
|
|
16759
|
+
n = { type: "link", attrs: b };
|
|
16760
16760
|
} else if (Ps[t])
|
|
16761
16761
|
n = Ps[t]();
|
|
16762
16762
|
else if (t === "span") {
|
|
16763
|
-
const
|
|
16764
|
-
if (
|
|
16763
|
+
const b = (c = e.properties) != null && c.className ? Array.isArray(e.properties.className) ? e.properties.className.map(String) : [String(e.properties.className)] : [], f = (d = e.properties) != null && d.style ? String(e.properties.style) : void 0, m = (h = e.properties) != null && h.id ? String(e.properties.id) : void 0;
|
|
16764
|
+
if (b.length > 0 || f || m) {
|
|
16765
16765
|
const g = {};
|
|
16766
|
-
|
|
16766
|
+
b.length > 0 && (g.className = b), f && (g.style = f), m && (g.id = m);
|
|
16767
16767
|
for (const [_, p] of Object.entries(e.properties ?? {}))
|
|
16768
16768
|
_.startsWith("data") && _ !== "data" && (g[_] = p);
|
|
16769
16769
|
n = { type: "custom", attrs: g };
|
|
16770
16770
|
}
|
|
16771
16771
|
}
|
|
16772
16772
|
const r = Mt(e.children, "inline");
|
|
16773
|
-
return n ? r.map((
|
|
16773
|
+
return n ? r.map((b) => E2(b, n)) : r;
|
|
16774
16774
|
}
|
|
16775
16775
|
function E2(e, t) {
|
|
16776
16776
|
if (e.type === "text") {
|
|
@@ -17666,11 +17666,11 @@ function A_(e) {
|
|
|
17666
17666
|
s += e.slice(o);
|
|
17667
17667
|
break;
|
|
17668
17668
|
}
|
|
17669
|
-
const u = e.slice(o, a + 1), c = u[1] === "/", d = u[a - o - 1] === "/", h = u.match(/^<\/?([a-zA-Z][a-zA-Z0-9]*)/),
|
|
17670
|
-
t.has(
|
|
17669
|
+
const u = e.slice(o, a + 1), c = u[1] === "/", d = u[a - o - 1] === "/", h = u.match(/^<\/?([a-zA-Z][a-zA-Z0-9]*)/), b = h ? h[1].toLowerCase() : "";
|
|
17670
|
+
t.has(b) ? c ? (i = Math.max(0, i - 1), s += `
|
|
17671
17671
|
` + " ".repeat(i) + u) : (s += `
|
|
17672
|
-
` + " ".repeat(i) + u, d || i++) : n.has(
|
|
17673
|
-
` + " ".repeat(i) + u : r.has(
|
|
17672
|
+
` + " ".repeat(i) + u, d || i++) : n.has(b) ? c ? s += u : s += `
|
|
17673
|
+
` + " ".repeat(i) + u : r.has(b) ? s += `
|
|
17674
17674
|
` + " ".repeat(i) + u : s += u, o = a + 1;
|
|
17675
17675
|
} else {
|
|
17676
17676
|
const a = e.indexOf("<", o), u = a === -1 ? e.slice(o) : e.slice(o, a);
|
|
@@ -17816,28 +17816,28 @@ const R_ = {
|
|
|
17816
17816
|
code: "code"
|
|
17817
17817
|
};
|
|
17818
17818
|
function P_(e, t) {
|
|
17819
|
-
var s, o, a, u, c, d, h,
|
|
17819
|
+
var s, o, a, u, c, d, h, b;
|
|
17820
17820
|
const n = { type: "text", value: e.value };
|
|
17821
17821
|
if (!e.marks || e.marks.length === 0)
|
|
17822
17822
|
return n;
|
|
17823
17823
|
let r = n;
|
|
17824
|
-
const i = [...e.marks].sort((f,
|
|
17824
|
+
const i = [...e.marks].sort((f, m) => f.type === "link" ? 1 : m.type === "link" ? -1 : 0);
|
|
17825
17825
|
for (const f of i)
|
|
17826
17826
|
if (f.type === "link") {
|
|
17827
|
-
const
|
|
17828
|
-
(s = f.attrs) != null && s.url && (
|
|
17827
|
+
const m = {};
|
|
17828
|
+
(s = f.attrs) != null && s.url && (m.href = String(f.attrs.url)), (o = f.attrs) != null && o.title && (m.title = String(f.attrs.title)), (a = f.attrs) != null && a.id && (m.id = String(f.attrs.id)), (u = f.attrs) != null && u.name && (m.name = String(f.attrs.name)), (c = f.attrs) != null && c.className && (m.className = f.attrs.className);
|
|
17829
17829
|
for (const [g, _] of Object.entries(f.attrs ?? {}))
|
|
17830
|
-
g.startsWith("data") && g !== "data" && (
|
|
17831
|
-
r = { type: "element", tagName: "a", properties:
|
|
17830
|
+
g.startsWith("data") && g !== "data" && (m[g] = _);
|
|
17831
|
+
r = { type: "element", tagName: "a", properties: m, children: [r] };
|
|
17832
17832
|
} else if (f.type === "custom") {
|
|
17833
|
-
const
|
|
17834
|
-
(d = f.attrs) != null && d.className && (
|
|
17833
|
+
const m = {};
|
|
17834
|
+
(d = f.attrs) != null && d.className && (m.className = f.attrs.className), (h = f.attrs) != null && h.style && (m.style = String(f.attrs.style)), (b = f.attrs) != null && b.id && (m.id = String(f.attrs.id));
|
|
17835
17835
|
for (const [g, _] of Object.entries(f.attrs ?? {}))
|
|
17836
|
-
g.startsWith("data") && g !== "data" && (
|
|
17837
|
-
r = { type: "element", tagName: "span", properties:
|
|
17836
|
+
g.startsWith("data") && g !== "data" && (m[g] = _);
|
|
17837
|
+
r = { type: "element", tagName: "span", properties: m, children: [r] };
|
|
17838
17838
|
} else {
|
|
17839
|
-
const
|
|
17840
|
-
|
|
17839
|
+
const m = R_[f.type];
|
|
17840
|
+
m && (r = { type: "element", tagName: m, properties: {}, children: [r] });
|
|
17841
17841
|
}
|
|
17842
17842
|
return r;
|
|
17843
17843
|
}
|
|
@@ -17857,28 +17857,28 @@ const Vt = {
|
|
|
17857
17857
|
};
|
|
17858
17858
|
function mw(e, t, n, r) {
|
|
17859
17859
|
const i = (r == null ? void 0 : r.side) ?? "merged", s = (r == null ? void 0 : r.inlineStyles) !== !1, o = (r == null ? void 0 : r.insClass) ?? "diff-ins", a = (r == null ? void 0 : r.delClass) ?? "diff-del", u = (r == null ? void 0 : r.modClass) ?? "diff-mod", c = (r == null ? void 0 : r.moveClass) ?? "diff-move", d = /* @__PURE__ */ new Map();
|
|
17860
|
-
for (const
|
|
17861
|
-
const g = "path" in
|
|
17860
|
+
for (const m of n.operations) {
|
|
17861
|
+
const g = "path" in m ? st(m.path) : "to" in m ? st(m.to) : null;
|
|
17862
17862
|
if (g) {
|
|
17863
17863
|
const _ = d.get(g) ?? [];
|
|
17864
|
-
_.push(
|
|
17864
|
+
_.push(m), d.set(g, _);
|
|
17865
17865
|
}
|
|
17866
|
-
if (
|
|
17867
|
-
const _ = st(
|
|
17868
|
-
p.push(
|
|
17866
|
+
if (m.type === "delete") {
|
|
17867
|
+
const _ = st(m.path), p = d.get(_) ?? [];
|
|
17868
|
+
p.push(m), d.set(_, p);
|
|
17869
17869
|
}
|
|
17870
|
-
if (
|
|
17871
|
-
const _ = st(
|
|
17872
|
-
p.push(
|
|
17870
|
+
if (m.type === "move") {
|
|
17871
|
+
const _ = st(m.from), p = d.get(_) ?? [];
|
|
17872
|
+
p.push(m), d.set(_, p);
|
|
17873
17873
|
}
|
|
17874
17874
|
}
|
|
17875
|
-
const h = [],
|
|
17875
|
+
const h = [], b = n.operations.filter((m) => m.type === "delete"), f = n.operations.filter((m) => m.type === "insert");
|
|
17876
17876
|
return (i === "old" || i === "merged") && h.push(cu(e, [], d, {
|
|
17877
17877
|
role: "old",
|
|
17878
17878
|
inlineStyles: s,
|
|
17879
17879
|
insClass: o,
|
|
17880
17880
|
delClass: a
|
|
17881
|
-
})), i === "merged" && (
|
|
17881
|
+
})), i === "merged" && (b.length > 0 || f.length > 0 || n.operations.some((m) => m.type === "updateText")) && (h.length = 0, h.push(D_(e, t, n, {
|
|
17882
17882
|
inlineStyles: s,
|
|
17883
17883
|
insClass: o,
|
|
17884
17884
|
delClass: a,
|
|
@@ -17893,64 +17893,65 @@ function mw(e, t, n, r) {
|
|
|
17893
17893
|
}
|
|
17894
17894
|
function D_(e, t, n, r) {
|
|
17895
17895
|
const i = /* @__PURE__ */ new Map(), s = /* @__PURE__ */ new Set(), o = /* @__PURE__ */ new Set(), a = /* @__PURE__ */ new Set(), u = /* @__PURE__ */ new Set(), c = /* @__PURE__ */ new Map();
|
|
17896
|
-
for (const
|
|
17897
|
-
switch (
|
|
17896
|
+
for (const m of n.operations)
|
|
17897
|
+
switch (m.type) {
|
|
17898
17898
|
case "updateText":
|
|
17899
|
-
i.set(st(
|
|
17899
|
+
i.set(st(m.path), m.changes);
|
|
17900
17900
|
break;
|
|
17901
17901
|
case "insert":
|
|
17902
|
-
s.add(st(
|
|
17902
|
+
s.add(st(m.path));
|
|
17903
17903
|
break;
|
|
17904
17904
|
case "delete":
|
|
17905
|
-
o.add(st(
|
|
17905
|
+
o.add(st(m.path));
|
|
17906
17906
|
break;
|
|
17907
17907
|
case "move":
|
|
17908
|
-
a.add(st(
|
|
17908
|
+
a.add(st(m.to)), u.add(st(m.from));
|
|
17909
17909
|
break;
|
|
17910
17910
|
case "update":
|
|
17911
|
-
c.set(st(
|
|
17911
|
+
c.set(st(m.path), m.properties.new);
|
|
17912
17912
|
break;
|
|
17913
17913
|
}
|
|
17914
|
-
function d(
|
|
17914
|
+
function d(m, g) {
|
|
17915
17915
|
const _ = st(g);
|
|
17916
17916
|
if (s.has(_)) {
|
|
17917
|
-
const p = Yt({ children: [
|
|
17917
|
+
const p = Yt({ children: [m] });
|
|
17918
17918
|
return yn("ins", p, r.insClass, r.inlineStyles ? Vt.ins : void 0, { "data-diff": "insert", "data-path": _ });
|
|
17919
17919
|
}
|
|
17920
17920
|
if (a.has(_)) {
|
|
17921
|
-
const p = Yt({ children: [
|
|
17921
|
+
const p = Yt({ children: [m] });
|
|
17922
17922
|
return yn("span", p, r.moveClass, r.inlineStyles ? Vt.move : void 0, { "data-diff": "move", "data-path": _, title: "Moved" });
|
|
17923
17923
|
}
|
|
17924
17924
|
if (c.has(_)) {
|
|
17925
|
-
const p = Yt({ children: [
|
|
17925
|
+
const p = Yt({ children: [m] });
|
|
17926
17926
|
return yn("span", p, r.modClass, r.inlineStyles ? Vt.mod : void 0, { "data-diff": "update", "data-path": _ });
|
|
17927
17927
|
}
|
|
17928
|
-
if (mn(
|
|
17928
|
+
if (mn(m) && i.has(_)) {
|
|
17929
17929
|
const p = i.get(_);
|
|
17930
17930
|
return ld(p, r);
|
|
17931
17931
|
}
|
|
17932
|
-
if (Ie(
|
|
17933
|
-
const p = cd(
|
|
17934
|
-
|
|
17935
|
-
|
|
17936
|
-
|
|
17932
|
+
if (Ie(m)) {
|
|
17933
|
+
const p = cd(m), y = dd(m), S = (m.type === "listItem" || m.type === "tableCell") && m.children.length === 1 && m.children[0].type === "paragraph";
|
|
17934
|
+
let O;
|
|
17935
|
+
if (S ? O = m.children[0].children.map((B, A) => d(B, [...g, 0, A])).join("") : O = m.children.map((D, B) => d(D, [...g, B])).join(""), p) {
|
|
17936
|
+
const D = Object.entries(y).map(([B, A]) => ` ${B}="${pa(String(A))}"`).join("");
|
|
17937
|
+
return M_(p) ? `<${p}${D}>` : `<${p}${D}>${O}</${p}>`;
|
|
17937
17938
|
}
|
|
17938
|
-
return
|
|
17939
|
+
return O;
|
|
17939
17940
|
}
|
|
17940
|
-
return Yt({ children: [
|
|
17941
|
+
return Yt({ children: [m] });
|
|
17941
17942
|
}
|
|
17942
17943
|
function h() {
|
|
17943
|
-
const
|
|
17944
|
+
const m = [];
|
|
17944
17945
|
for (const g of n.operations)
|
|
17945
17946
|
if (g.type === "delete") {
|
|
17946
17947
|
const _ = Yt({ children: [g.node] });
|
|
17947
|
-
|
|
17948
|
+
m.push(yn("del", _, r.delClass, r.inlineStyles ? Vt.del : void 0, { "data-diff": "delete", "data-path": st(g.path) }));
|
|
17948
17949
|
}
|
|
17949
|
-
return
|
|
17950
|
+
return m.join("");
|
|
17950
17951
|
}
|
|
17951
|
-
let
|
|
17952
|
+
let b = t.children.map((m, g) => d(m, [g])).join("");
|
|
17952
17953
|
const f = h();
|
|
17953
|
-
return f && (
|
|
17954
|
+
return f && (b += f), b;
|
|
17954
17955
|
}
|
|
17955
17956
|
function cu(e, t, n, r) {
|
|
17956
17957
|
function i(s, o) {
|
|
@@ -17968,10 +17969,10 @@ function cu(e, t, n, r) {
|
|
|
17968
17969
|
return ld(c.changes, r);
|
|
17969
17970
|
}
|
|
17970
17971
|
if (Ie(s)) {
|
|
17971
|
-
const c = s.children.map((h,
|
|
17972
|
+
const c = s.children.map((h, b) => i(h, [...o, b])).join(""), d = cd(s);
|
|
17972
17973
|
if (d) {
|
|
17973
|
-
const h = dd(s),
|
|
17974
|
-
return `<${d}${
|
|
17974
|
+
const h = dd(s), b = Object.entries(h).map(([f, m]) => ` ${f}="${pa(String(m))}"`).join("");
|
|
17975
|
+
return `<${d}${b}>${c}</${d}>`;
|
|
17975
17976
|
}
|
|
17976
17977
|
return c;
|
|
17977
17978
|
}
|
|
@@ -18085,13 +18086,13 @@ function B_() {
|
|
|
18085
18086
|
var h = typeof xr == "function" && xr;
|
|
18086
18087
|
if (!d && h) return h(c, !0);
|
|
18087
18088
|
if (a) return a(c, !0);
|
|
18088
|
-
var
|
|
18089
|
-
throw
|
|
18089
|
+
var b = new Error("Cannot find module '" + c + "'");
|
|
18090
|
+
throw b.code = "MODULE_NOT_FOUND", b;
|
|
18090
18091
|
}
|
|
18091
18092
|
var f = i[c] = { exports: {} };
|
|
18092
|
-
r[c][0].call(f.exports, function(
|
|
18093
|
-
var g = r[c][1][
|
|
18094
|
-
return o(g ||
|
|
18093
|
+
r[c][0].call(f.exports, function(m) {
|
|
18094
|
+
var g = r[c][1][m];
|
|
18095
|
+
return o(g || m);
|
|
18095
18096
|
}, f, f.exports, n, r, i, s);
|
|
18096
18097
|
}
|
|
18097
18098
|
return i[c].exports;
|
|
@@ -18101,20 +18102,20 @@ function B_() {
|
|
|
18101
18102
|
})({ 1: [function(n, r, i) {
|
|
18102
18103
|
var s = n("./utils"), o = n("./support"), a = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";
|
|
18103
18104
|
i.encode = function(u) {
|
|
18104
|
-
for (var c, d, h,
|
|
18105
|
+
for (var c, d, h, b, f, m, g, _ = [], p = 0, y = u.length, S = y, O = s.getTypeOf(u) !== "string"; p < u.length; ) S = y - p, h = O ? (c = u[p++], d = p < y ? u[p++] : 0, p < y ? u[p++] : 0) : (c = u.charCodeAt(p++), d = p < y ? u.charCodeAt(p++) : 0, p < y ? u.charCodeAt(p++) : 0), b = c >> 2, f = (3 & c) << 4 | d >> 4, m = 1 < S ? (15 & d) << 2 | h >> 6 : 64, g = 2 < S ? 63 & h : 64, _.push(a.charAt(b) + a.charAt(f) + a.charAt(m) + a.charAt(g));
|
|
18105
18106
|
return _.join("");
|
|
18106
18107
|
}, i.decode = function(u) {
|
|
18107
|
-
var c, d, h,
|
|
18108
|
+
var c, d, h, b, f, m, g = 0, _ = 0, p = "data:";
|
|
18108
18109
|
if (u.substr(0, p.length) === p) throw new Error("Invalid base64 input, it looks like a data url.");
|
|
18109
|
-
var y,
|
|
18110
|
-
if (u.charAt(u.length - 1) === a.charAt(64) &&
|
|
18111
|
-
for (y = o.uint8array ? new Uint8Array(0 |
|
|
18110
|
+
var y, S = 3 * (u = u.replace(/[^A-Za-z0-9+/=]/g, "")).length / 4;
|
|
18111
|
+
if (u.charAt(u.length - 1) === a.charAt(64) && S--, u.charAt(u.length - 2) === a.charAt(64) && S--, S % 1 != 0) throw new Error("Invalid base64 input, bad content length.");
|
|
18112
|
+
for (y = o.uint8array ? new Uint8Array(0 | S) : new Array(0 | S); g < u.length; ) c = a.indexOf(u.charAt(g++)) << 2 | (b = a.indexOf(u.charAt(g++))) >> 4, d = (15 & b) << 4 | (f = a.indexOf(u.charAt(g++))) >> 2, h = (3 & f) << 6 | (m = a.indexOf(u.charAt(g++))), y[_++] = c, f !== 64 && (y[_++] = d), m !== 64 && (y[_++] = h);
|
|
18112
18113
|
return y;
|
|
18113
18114
|
};
|
|
18114
18115
|
}, { "./support": 30, "./utils": 32 }], 2: [function(n, r, i) {
|
|
18115
18116
|
var s = n("./external"), o = n("./stream/DataWorker"), a = n("./stream/Crc32Probe"), u = n("./stream/DataLengthProbe");
|
|
18116
|
-
function c(d, h,
|
|
18117
|
-
this.compressedSize = d, this.uncompressedSize = h, this.crc32 =
|
|
18117
|
+
function c(d, h, b, f, m) {
|
|
18118
|
+
this.compressedSize = d, this.uncompressedSize = h, this.crc32 = b, this.compression = f, this.compressedContent = m;
|
|
18118
18119
|
}
|
|
18119
18120
|
c.prototype = { getContentWorker: function() {
|
|
18120
18121
|
var d = new o(s.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new u("data_length")), h = this;
|
|
@@ -18123,8 +18124,8 @@ function B_() {
|
|
|
18123
18124
|
}), d;
|
|
18124
18125
|
}, getCompressedWorker: function() {
|
|
18125
18126
|
return new o(s.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize", this.compressedSize).withStreamInfo("uncompressedSize", this.uncompressedSize).withStreamInfo("crc32", this.crc32).withStreamInfo("compression", this.compression);
|
|
18126
|
-
} }, c.createWorkerFrom = function(d, h,
|
|
18127
|
-
return d.pipe(new a()).pipe(new u("uncompressedSize")).pipe(h.compressWorker(
|
|
18127
|
+
} }, c.createWorkerFrom = function(d, h, b) {
|
|
18128
|
+
return d.pipe(new a()).pipe(new u("uncompressedSize")).pipe(h.compressWorker(b)).pipe(new u("compressedSize")).withStreamInfo("compression", h);
|
|
18128
18129
|
}, r.exports = c;
|
|
18129
18130
|
}, { "./external": 6, "./stream/Crc32Probe": 25, "./stream/DataLengthProbe": 26, "./stream/DataWorker": 27 }], 3: [function(n, r, i) {
|
|
18130
18131
|
var s = n("./stream/GenericWorker");
|
|
@@ -18143,15 +18144,15 @@ function B_() {
|
|
|
18143
18144
|
return u;
|
|
18144
18145
|
})();
|
|
18145
18146
|
r.exports = function(a, u) {
|
|
18146
|
-
return a !== void 0 && a.length ? s.getTypeOf(a) !== "string" ? (function(c, d, h,
|
|
18147
|
-
var f = o,
|
|
18147
|
+
return a !== void 0 && a.length ? s.getTypeOf(a) !== "string" ? (function(c, d, h, b) {
|
|
18148
|
+
var f = o, m = b + h;
|
|
18148
18149
|
c ^= -1;
|
|
18149
|
-
for (var g =
|
|
18150
|
+
for (var g = b; g < m; g++) c = c >>> 8 ^ f[255 & (c ^ d[g])];
|
|
18150
18151
|
return -1 ^ c;
|
|
18151
|
-
})(0 | u, a, a.length, 0) : (function(c, d, h,
|
|
18152
|
-
var f = o,
|
|
18152
|
+
})(0 | u, a, a.length, 0) : (function(c, d, h, b) {
|
|
18153
|
+
var f = o, m = b + h;
|
|
18153
18154
|
c ^= -1;
|
|
18154
|
-
for (var g =
|
|
18155
|
+
for (var g = b; g < m; g++) c = c >>> 8 ^ f[255 & (c ^ d.charCodeAt(g))];
|
|
18155
18156
|
return -1 ^ c;
|
|
18156
18157
|
})(0 | u, a, a.length, 0) : 0;
|
|
18157
18158
|
};
|
|
@@ -18162,8 +18163,8 @@ function B_() {
|
|
|
18162
18163
|
s = typeof Promise < "u" ? Promise : n("lie"), r.exports = { Promise: s };
|
|
18163
18164
|
}, { lie: 37 }], 7: [function(n, r, i) {
|
|
18164
18165
|
var s = typeof Uint8Array < "u" && typeof Uint16Array < "u" && typeof Uint32Array < "u", o = n("pako"), a = n("./utils"), u = n("./stream/GenericWorker"), c = s ? "uint8array" : "array";
|
|
18165
|
-
function d(h,
|
|
18166
|
-
u.call(this, "FlateWorker/" + h), this._pako = null, this._pakoAction = h, this._pakoOptions =
|
|
18166
|
+
function d(h, b) {
|
|
18167
|
+
u.call(this, "FlateWorker/" + h), this._pako = null, this._pakoAction = h, this._pakoOptions = b, this.meta = {};
|
|
18167
18168
|
}
|
|
18168
18169
|
i.magic = "\b\0", a.inherits(d, u), d.prototype.processChunk = function(h) {
|
|
18169
18170
|
this.meta = h.meta, this._pako === null && this._createPako(), this._pako.push(a.transformTo(c, h.data), !1);
|
|
@@ -18174,8 +18175,8 @@ function B_() {
|
|
|
18174
18175
|
}, d.prototype._createPako = function() {
|
|
18175
18176
|
this._pako = new o[this._pakoAction]({ raw: !0, level: this._pakoOptions.level || -1 });
|
|
18176
18177
|
var h = this;
|
|
18177
|
-
this._pako.onData = function(
|
|
18178
|
-
h.push({ data:
|
|
18178
|
+
this._pako.onData = function(b) {
|
|
18179
|
+
h.push({ data: b, meta: h.meta });
|
|
18179
18180
|
};
|
|
18180
18181
|
}, i.compressWorker = function(h) {
|
|
18181
18182
|
return new d("Deflate", h);
|
|
@@ -18183,98 +18184,98 @@ function B_() {
|
|
|
18183
18184
|
return new d("Inflate", {});
|
|
18184
18185
|
};
|
|
18185
18186
|
}, { "./stream/GenericWorker": 28, "./utils": 32, pako: 38 }], 8: [function(n, r, i) {
|
|
18186
|
-
function s(f,
|
|
18187
|
+
function s(f, m) {
|
|
18187
18188
|
var g, _ = "";
|
|
18188
|
-
for (g = 0; g <
|
|
18189
|
+
for (g = 0; g < m; g++) _ += String.fromCharCode(255 & f), f >>>= 8;
|
|
18189
18190
|
return _;
|
|
18190
18191
|
}
|
|
18191
|
-
function o(f,
|
|
18192
|
-
var
|
|
18193
|
-
|
|
18192
|
+
function o(f, m, g, _, p, y) {
|
|
18193
|
+
var S, O, D = f.file, B = f.compression, A = y !== c.utf8encode, C = a.transformTo("string", y(D.name)), k = a.transformTo("string", c.utf8encode(D.name)), P = D.comment, R = a.transformTo("string", y(P)), x = a.transformTo("string", c.utf8encode(P)), M = k.length !== D.name.length, T = x.length !== P.length, U = "", W = "", G = "", se = D.dir, Z = D.date, ce = { crc32: 0, compressedSize: 0, uncompressedSize: 0 };
|
|
18194
|
+
m && !g || (ce.crc32 = f.crc32, ce.compressedSize = f.compressedSize, ce.uncompressedSize = f.uncompressedSize);
|
|
18194
18195
|
var j = 0;
|
|
18195
|
-
|
|
18196
|
+
m && (j |= 8), A || !M && !T || (j |= 2048);
|
|
18196
18197
|
var $ = 0, oe = 0;
|
|
18197
18198
|
se && ($ |= 16), p === "UNIX" ? (oe = 798, $ |= (function(ie, Le) {
|
|
18198
18199
|
var Ye = ie;
|
|
18199
18200
|
return ie || (Ye = Le ? 16893 : 33204), (65535 & Ye) << 16;
|
|
18200
18201
|
})(D.unixPermissions, se)) : (oe = 20, $ |= (function(ie) {
|
|
18201
18202
|
return 63 & (ie || 0);
|
|
18202
|
-
})(D.dosPermissions)),
|
|
18203
|
+
})(D.dosPermissions)), S = Z.getUTCHours(), S <<= 6, S |= Z.getUTCMinutes(), S <<= 5, S |= Z.getUTCSeconds() / 2, O = Z.getUTCFullYear() - 1980, O <<= 4, O |= Z.getUTCMonth() + 1, O <<= 5, O |= Z.getUTCDate(), M && (W = s(1, 1) + s(d(C), 4) + k, U += "up" + s(W.length, 2) + W), T && (G = s(1, 1) + s(d(R), 4) + x, U += "uc" + s(G.length, 2) + G);
|
|
18203
18204
|
var ae = "";
|
|
18204
18205
|
return ae += `
|
|
18205
|
-
\0`, ae += s(j, 2), ae += B.magic, ae += s(
|
|
18206
|
+
\0`, ae += s(j, 2), ae += B.magic, ae += s(S, 2), ae += s(O, 2), ae += s(ce.crc32, 4), ae += s(ce.compressedSize, 4), ae += s(ce.uncompressedSize, 4), ae += s(C.length, 2), ae += s(U.length, 2), { fileRecord: h.LOCAL_FILE_HEADER + ae + C + U, dirRecord: h.CENTRAL_FILE_HEADER + s(oe, 2) + ae + s(R.length, 2) + "\0\0\0\0" + s($, 4) + s(_, 4) + C + U + R };
|
|
18206
18207
|
}
|
|
18207
18208
|
var a = n("../utils"), u = n("../stream/GenericWorker"), c = n("../utf8"), d = n("../crc32"), h = n("../signature");
|
|
18208
|
-
function
|
|
18209
|
-
u.call(this, "ZipFileWorker"), this.bytesWritten = 0, this.zipComment =
|
|
18209
|
+
function b(f, m, g, _) {
|
|
18210
|
+
u.call(this, "ZipFileWorker"), this.bytesWritten = 0, this.zipComment = m, this.zipPlatform = g, this.encodeFileName = _, this.streamFiles = f, this.accumulate = !1, this.contentBuffer = [], this.dirRecords = [], this.currentSourceOffset = 0, this.entriesCount = 0, this.currentFile = null, this._sources = [];
|
|
18210
18211
|
}
|
|
18211
|
-
a.inherits(
|
|
18212
|
-
var
|
|
18213
|
-
this.accumulate ? this.contentBuffer.push(f) : (this.bytesWritten += f.data.length, u.prototype.push.call(this, { data: f.data, meta: { currentFile: this.currentFile, percent: g ? (
|
|
18214
|
-
},
|
|
18212
|
+
a.inherits(b, u), b.prototype.push = function(f) {
|
|
18213
|
+
var m = f.meta.percent || 0, g = this.entriesCount, _ = this._sources.length;
|
|
18214
|
+
this.accumulate ? this.contentBuffer.push(f) : (this.bytesWritten += f.data.length, u.prototype.push.call(this, { data: f.data, meta: { currentFile: this.currentFile, percent: g ? (m + 100 * (g - _ - 1)) / g : 100 } }));
|
|
18215
|
+
}, b.prototype.openedSource = function(f) {
|
|
18215
18216
|
this.currentSourceOffset = this.bytesWritten, this.currentFile = f.file.name;
|
|
18216
|
-
var
|
|
18217
|
-
if (
|
|
18218
|
-
var g = o(f,
|
|
18217
|
+
var m = this.streamFiles && !f.file.dir;
|
|
18218
|
+
if (m) {
|
|
18219
|
+
var g = o(f, m, !1, this.currentSourceOffset, this.zipPlatform, this.encodeFileName);
|
|
18219
18220
|
this.push({ data: g.fileRecord, meta: { percent: 0 } });
|
|
18220
18221
|
} else this.accumulate = !0;
|
|
18221
|
-
},
|
|
18222
|
+
}, b.prototype.closedSource = function(f) {
|
|
18222
18223
|
this.accumulate = !1;
|
|
18223
|
-
var
|
|
18224
|
-
if (this.dirRecords.push(g.dirRecord),
|
|
18224
|
+
var m = this.streamFiles && !f.file.dir, g = o(f, m, !0, this.currentSourceOffset, this.zipPlatform, this.encodeFileName);
|
|
18225
|
+
if (this.dirRecords.push(g.dirRecord), m) this.push({ data: (function(_) {
|
|
18225
18226
|
return h.DATA_DESCRIPTOR + s(_.crc32, 4) + s(_.compressedSize, 4) + s(_.uncompressedSize, 4);
|
|
18226
18227
|
})(f), meta: { percent: 100 } });
|
|
18227
18228
|
else for (this.push({ data: g.fileRecord, meta: { percent: 0 } }); this.contentBuffer.length; ) this.push(this.contentBuffer.shift());
|
|
18228
18229
|
this.currentFile = null;
|
|
18229
|
-
},
|
|
18230
|
-
for (var f = this.bytesWritten,
|
|
18231
|
-
var g = this.bytesWritten - f, _ = (function(p, y,
|
|
18230
|
+
}, b.prototype.flush = function() {
|
|
18231
|
+
for (var f = this.bytesWritten, m = 0; m < this.dirRecords.length; m++) this.push({ data: this.dirRecords[m], meta: { percent: 100 } });
|
|
18232
|
+
var g = this.bytesWritten - f, _ = (function(p, y, S, O, D) {
|
|
18232
18233
|
var B = a.transformTo("string", D(O));
|
|
18233
|
-
return h.CENTRAL_DIRECTORY_END + "\0\0\0\0" + s(p, 2) + s(p, 2) + s(y, 4) + s(
|
|
18234
|
+
return h.CENTRAL_DIRECTORY_END + "\0\0\0\0" + s(p, 2) + s(p, 2) + s(y, 4) + s(S, 4) + s(B.length, 2) + B;
|
|
18234
18235
|
})(this.dirRecords.length, g, f, this.zipComment, this.encodeFileName);
|
|
18235
18236
|
this.push({ data: _, meta: { percent: 100 } });
|
|
18236
|
-
},
|
|
18237
|
+
}, b.prototype.prepareNextSource = function() {
|
|
18237
18238
|
this.previous = this._sources.shift(), this.openedSource(this.previous.streamInfo), this.isPaused ? this.previous.pause() : this.previous.resume();
|
|
18238
|
-
},
|
|
18239
|
+
}, b.prototype.registerPrevious = function(f) {
|
|
18239
18240
|
this._sources.push(f);
|
|
18240
|
-
var
|
|
18241
|
+
var m = this;
|
|
18241
18242
|
return f.on("data", function(g) {
|
|
18242
|
-
|
|
18243
|
+
m.processChunk(g);
|
|
18243
18244
|
}), f.on("end", function() {
|
|
18244
|
-
|
|
18245
|
+
m.closedSource(m.previous.streamInfo), m._sources.length ? m.prepareNextSource() : m.end();
|
|
18245
18246
|
}), f.on("error", function(g) {
|
|
18246
|
-
|
|
18247
|
+
m.error(g);
|
|
18247
18248
|
}), this;
|
|
18248
|
-
},
|
|
18249
|
+
}, b.prototype.resume = function() {
|
|
18249
18250
|
return !!u.prototype.resume.call(this) && (!this.previous && this._sources.length ? (this.prepareNextSource(), !0) : this.previous || this._sources.length || this.generatedError ? void 0 : (this.end(), !0));
|
|
18250
|
-
},
|
|
18251
|
-
var
|
|
18251
|
+
}, b.prototype.error = function(f) {
|
|
18252
|
+
var m = this._sources;
|
|
18252
18253
|
if (!u.prototype.error.call(this, f)) return !1;
|
|
18253
|
-
for (var g = 0; g <
|
|
18254
|
-
|
|
18254
|
+
for (var g = 0; g < m.length; g++) try {
|
|
18255
|
+
m[g].error(f);
|
|
18255
18256
|
} catch {
|
|
18256
18257
|
}
|
|
18257
18258
|
return !0;
|
|
18258
|
-
},
|
|
18259
|
+
}, b.prototype.lock = function() {
|
|
18259
18260
|
u.prototype.lock.call(this);
|
|
18260
|
-
for (var f = this._sources,
|
|
18261
|
-
}, r.exports =
|
|
18261
|
+
for (var f = this._sources, m = 0; m < f.length; m++) f[m].lock();
|
|
18262
|
+
}, r.exports = b;
|
|
18262
18263
|
}, { "../crc32": 4, "../signature": 23, "../stream/GenericWorker": 28, "../utf8": 31, "../utils": 32 }], 9: [function(n, r, i) {
|
|
18263
18264
|
var s = n("../compressions"), o = n("./ZipFileWorker");
|
|
18264
18265
|
i.generateWorker = function(a, u, c) {
|
|
18265
18266
|
var d = new o(u.streamFiles, c, u.platform, u.encodeFileName), h = 0;
|
|
18266
18267
|
try {
|
|
18267
|
-
a.forEach(function(
|
|
18268
|
+
a.forEach(function(b, f) {
|
|
18268
18269
|
h++;
|
|
18269
|
-
var
|
|
18270
|
-
var O = y ||
|
|
18270
|
+
var m = (function(y, S) {
|
|
18271
|
+
var O = y || S, D = s[O];
|
|
18271
18272
|
if (!D) throw new Error(O + " is not a valid compression method !");
|
|
18272
18273
|
return D;
|
|
18273
18274
|
})(f.options.compression, u.compression), g = f.options.compressionOptions || u.compressionOptions || {}, _ = f.dir, p = f.date;
|
|
18274
|
-
f._compressWorker(
|
|
18275
|
+
f._compressWorker(m, g).withStreamInfo("file", { name: b, dir: _, date: p, comment: f.comment || "", unixPermissions: f.unixPermissions, dosPermissions: f.dosPermissions }).pipe(d);
|
|
18275
18276
|
}), d.entriesCount = h;
|
|
18276
|
-
} catch (
|
|
18277
|
-
d.error(
|
|
18277
|
+
} catch (b) {
|
|
18278
|
+
d.error(b);
|
|
18278
18279
|
}
|
|
18279
18280
|
return d;
|
|
18280
18281
|
};
|
|
@@ -18293,19 +18294,19 @@ function B_() {
|
|
|
18293
18294
|
}, s.external = n("./external"), r.exports = s;
|
|
18294
18295
|
}, { "./defaults": 5, "./external": 6, "./load": 11, "./object": 15, "./support": 30 }], 11: [function(n, r, i) {
|
|
18295
18296
|
var s = n("./utils"), o = n("./external"), a = n("./utf8"), u = n("./zipEntries"), c = n("./stream/Crc32Probe"), d = n("./nodejsUtils");
|
|
18296
|
-
function h(
|
|
18297
|
-
return new o.Promise(function(f,
|
|
18298
|
-
var g =
|
|
18297
|
+
function h(b) {
|
|
18298
|
+
return new o.Promise(function(f, m) {
|
|
18299
|
+
var g = b.decompressed.getContentWorker().pipe(new c());
|
|
18299
18300
|
g.on("error", function(_) {
|
|
18300
|
-
|
|
18301
|
+
m(_);
|
|
18301
18302
|
}).on("end", function() {
|
|
18302
|
-
g.streamInfo.crc32 !==
|
|
18303
|
+
g.streamInfo.crc32 !== b.decompressed.crc32 ? m(new Error("Corrupted zip : CRC32 mismatch")) : f();
|
|
18303
18304
|
}).resume();
|
|
18304
18305
|
});
|
|
18305
18306
|
}
|
|
18306
|
-
r.exports = function(
|
|
18307
|
-
var
|
|
18308
|
-
return f = s.extend(f || {}, { base64: !1, checkCRC32: !1, optimizedBinaryString: !1, createFolders: !1, decodeFileName: a.utf8decode }), d.isNode && d.isStream(
|
|
18307
|
+
r.exports = function(b, f) {
|
|
18308
|
+
var m = this;
|
|
18309
|
+
return f = s.extend(f || {}, { base64: !1, checkCRC32: !1, optimizedBinaryString: !1, createFolders: !1, decodeFileName: a.utf8decode }), d.isNode && d.isStream(b) ? o.Promise.reject(new Error("JSZip can't accept a stream when loading a zip file.")) : s.prepareContent("the loaded zip file", b, !0, f.optimizedBinaryString, f.base64).then(function(g) {
|
|
18309
18310
|
var _ = new u(f);
|
|
18310
18311
|
return _.load(g), _;
|
|
18311
18312
|
}).then(function(g) {
|
|
@@ -18314,10 +18315,10 @@ function B_() {
|
|
|
18314
18315
|
return o.Promise.all(_);
|
|
18315
18316
|
}).then(function(g) {
|
|
18316
18317
|
for (var _ = g.shift(), p = _.files, y = 0; y < p.length; y++) {
|
|
18317
|
-
var
|
|
18318
|
-
|
|
18318
|
+
var S = p[y], O = S.fileNameStr, D = s.resolve(S.fileNameStr);
|
|
18319
|
+
m.file(D, S.decompressed, { binary: !0, optimizedBinaryString: !0, date: S.date, dir: S.dir, comment: S.fileCommentStr.length ? S.fileCommentStr : null, unixPermissions: S.unixPermissions, dosPermissions: S.dosPermissions, createFolders: f.createFolders }), S.dir || (m.file(D).unsafeOriginalName = O);
|
|
18319
18320
|
}
|
|
18320
|
-
return _.zipComment.length && (
|
|
18321
|
+
return _.zipComment.length && (m.comment = _.zipComment), m;
|
|
18321
18322
|
});
|
|
18322
18323
|
};
|
|
18323
18324
|
}, { "./external": 6, "./nodejsUtils": 14, "./stream/Crc32Probe": 25, "./utf8": 31, "./utils": 32, "./zipEntries": 33 }], 12: [function(n, r, i) {
|
|
@@ -18344,8 +18345,8 @@ function B_() {
|
|
|
18344
18345
|
function o(a, u, c) {
|
|
18345
18346
|
s.call(this, u), this._helper = a;
|
|
18346
18347
|
var d = this;
|
|
18347
|
-
a.on("data", function(h,
|
|
18348
|
-
d.push(h) || d._helper.pause(), c && c(
|
|
18348
|
+
a.on("data", function(h, b) {
|
|
18349
|
+
d.push(h) || d._helper.pause(), c && c(b);
|
|
18349
18350
|
}).on("error", function(h) {
|
|
18350
18351
|
d.emit("error", h);
|
|
18351
18352
|
}).on("end", function() {
|
|
@@ -18370,17 +18371,17 @@ function B_() {
|
|
|
18370
18371
|
return s && typeof s.on == "function" && typeof s.pause == "function" && typeof s.resume == "function";
|
|
18371
18372
|
} };
|
|
18372
18373
|
}, {}], 15: [function(n, r, i) {
|
|
18373
|
-
function s(D, B,
|
|
18374
|
-
var C, k = a.getTypeOf(B), P = a.extend(
|
|
18374
|
+
function s(D, B, A) {
|
|
18375
|
+
var C, k = a.getTypeOf(B), P = a.extend(A || {}, d);
|
|
18375
18376
|
P.date = P.date || /* @__PURE__ */ new Date(), P.compression !== null && (P.compression = P.compression.toUpperCase()), typeof P.unixPermissions == "string" && (P.unixPermissions = parseInt(P.unixPermissions, 8)), P.unixPermissions && 16384 & P.unixPermissions && (P.dir = !0), P.dosPermissions && 16 & P.dosPermissions && (P.dir = !0), P.dir && (D = p(D)), P.createFolders && (C = _(D)) && y.call(this, C, !0);
|
|
18376
18377
|
var R = k === "string" && P.binary === !1 && P.base64 === !1;
|
|
18377
|
-
|
|
18378
|
-
var
|
|
18379
|
-
|
|
18380
|
-
var M = new
|
|
18378
|
+
A && A.binary !== void 0 || (P.binary = !R), (B instanceof h && B.uncompressedSize === 0 || P.dir || !B || B.length === 0) && (P.base64 = !1, P.binary = !0, B = "", P.compression = "STORE", k = "string");
|
|
18379
|
+
var x = null;
|
|
18380
|
+
x = B instanceof h || B instanceof u ? B : m.isNode && m.isStream(B) ? new g(D, B) : a.prepareContent(D, B, P.binary, P.optimizedBinaryString, P.base64);
|
|
18381
|
+
var M = new b(D, x, P);
|
|
18381
18382
|
this.files[D] = M;
|
|
18382
18383
|
}
|
|
18383
|
-
var o = n("./utf8"), a = n("./utils"), u = n("./stream/GenericWorker"), c = n("./stream/StreamHelper"), d = n("./defaults"), h = n("./compressedObject"),
|
|
18384
|
+
var o = n("./utf8"), a = n("./utils"), u = n("./stream/GenericWorker"), c = n("./stream/StreamHelper"), d = n("./defaults"), h = n("./compressedObject"), b = n("./zipObject"), f = n("./generate"), m = n("./nodejsUtils"), g = n("./nodejs/NodejsStreamInputAdapter"), _ = function(D) {
|
|
18384
18385
|
D.slice(-1) === "/" && (D = D.substring(0, D.length - 1));
|
|
18385
18386
|
var B = D.lastIndexOf("/");
|
|
18386
18387
|
return 0 < B ? D.substring(0, B) : "";
|
|
@@ -18389,22 +18390,22 @@ function B_() {
|
|
|
18389
18390
|
}, y = function(D, B) {
|
|
18390
18391
|
return B = B !== void 0 ? B : d.createFolders, D = p(D), this.files[D] || s.call(this, D, null, { dir: !0, createFolders: B }), this.files[D];
|
|
18391
18392
|
};
|
|
18392
|
-
function
|
|
18393
|
+
function S(D) {
|
|
18393
18394
|
return Object.prototype.toString.call(D) === "[object RegExp]";
|
|
18394
18395
|
}
|
|
18395
18396
|
var O = { load: function() {
|
|
18396
18397
|
throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.");
|
|
18397
18398
|
}, forEach: function(D) {
|
|
18398
|
-
var B,
|
|
18399
|
-
for (B in this.files) C = this.files[B], (
|
|
18399
|
+
var B, A, C;
|
|
18400
|
+
for (B in this.files) C = this.files[B], (A = B.slice(this.root.length, B.length)) && B.slice(0, this.root.length) === this.root && D(A, C);
|
|
18400
18401
|
}, filter: function(D) {
|
|
18401
18402
|
var B = [];
|
|
18402
|
-
return this.forEach(function(
|
|
18403
|
-
D(
|
|
18403
|
+
return this.forEach(function(A, C) {
|
|
18404
|
+
D(A, C) && B.push(C);
|
|
18404
18405
|
}), B;
|
|
18405
|
-
}, file: function(D, B,
|
|
18406
|
-
if (arguments.length !== 1) return D = this.root + D, s.call(this, D, B,
|
|
18407
|
-
if (
|
|
18406
|
+
}, file: function(D, B, A) {
|
|
18407
|
+
if (arguments.length !== 1) return D = this.root + D, s.call(this, D, B, A), this;
|
|
18408
|
+
if (S(D)) {
|
|
18408
18409
|
var C = D;
|
|
18409
18410
|
return this.filter(function(P, R) {
|
|
18410
18411
|
return !R.dir && C.test(P);
|
|
@@ -18414,32 +18415,32 @@ function B_() {
|
|
|
18414
18415
|
return k && !k.dir ? k : null;
|
|
18415
18416
|
}, folder: function(D) {
|
|
18416
18417
|
if (!D) return this;
|
|
18417
|
-
if (
|
|
18418
|
+
if (S(D)) return this.filter(function(k, P) {
|
|
18418
18419
|
return P.dir && D.test(k);
|
|
18419
18420
|
});
|
|
18420
|
-
var B = this.root + D,
|
|
18421
|
-
return C.root =
|
|
18421
|
+
var B = this.root + D, A = y.call(this, B), C = this.clone();
|
|
18422
|
+
return C.root = A.name, C;
|
|
18422
18423
|
}, remove: function(D) {
|
|
18423
18424
|
D = this.root + D;
|
|
18424
18425
|
var B = this.files[D];
|
|
18425
18426
|
if (B || (D.slice(-1) !== "/" && (D += "/"), B = this.files[D]), B && !B.dir) delete this.files[D];
|
|
18426
|
-
else for (var
|
|
18427
|
+
else for (var A = this.filter(function(k, P) {
|
|
18427
18428
|
return P.name.slice(0, D.length) === D;
|
|
18428
|
-
}), C = 0; C <
|
|
18429
|
+
}), C = 0; C < A.length; C++) delete this.files[A[C].name];
|
|
18429
18430
|
return this;
|
|
18430
18431
|
}, generate: function() {
|
|
18431
18432
|
throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.");
|
|
18432
18433
|
}, generateInternalStream: function(D) {
|
|
18433
|
-
var B,
|
|
18434
|
+
var B, A = {};
|
|
18434
18435
|
try {
|
|
18435
|
-
if ((
|
|
18436
|
-
a.checkSupport(
|
|
18437
|
-
var C =
|
|
18438
|
-
B = f.generateWorker(this,
|
|
18436
|
+
if ((A = a.extend(D || {}, { streamFiles: !1, compression: "STORE", compressionOptions: null, type: "", platform: "DOS", comment: null, mimeType: "application/zip", encodeFileName: o.utf8encode })).type = A.type.toLowerCase(), A.compression = A.compression.toUpperCase(), A.type === "binarystring" && (A.type = "string"), !A.type) throw new Error("No output type specified.");
|
|
18437
|
+
a.checkSupport(A.type), A.platform !== "darwin" && A.platform !== "freebsd" && A.platform !== "linux" && A.platform !== "sunos" || (A.platform = "UNIX"), A.platform === "win32" && (A.platform = "DOS");
|
|
18438
|
+
var C = A.comment || this.comment || "";
|
|
18439
|
+
B = f.generateWorker(this, A, C);
|
|
18439
18440
|
} catch (k) {
|
|
18440
18441
|
(B = new u("error")).error(k);
|
|
18441
18442
|
}
|
|
18442
|
-
return new c(B,
|
|
18443
|
+
return new c(B, A.type || "string", A.mimeType);
|
|
18443
18444
|
}, generateAsync: function(D, B) {
|
|
18444
18445
|
return this.generateInternalStream(D).accumulate(B);
|
|
18445
18446
|
}, generateNodeStream: function(D, B) {
|
|
@@ -18457,11 +18458,11 @@ function B_() {
|
|
|
18457
18458
|
n("../utils").inherits(o, s), o.prototype.byteAt = function(a) {
|
|
18458
18459
|
return this.data[this.zero + a];
|
|
18459
18460
|
}, o.prototype.lastIndexOfSignature = function(a) {
|
|
18460
|
-
for (var u = a.charCodeAt(0), c = a.charCodeAt(1), d = a.charCodeAt(2), h = a.charCodeAt(3),
|
|
18461
|
+
for (var u = a.charCodeAt(0), c = a.charCodeAt(1), d = a.charCodeAt(2), h = a.charCodeAt(3), b = this.length - 4; 0 <= b; --b) if (this.data[b] === u && this.data[b + 1] === c && this.data[b + 2] === d && this.data[b + 3] === h) return b - this.zero;
|
|
18461
18462
|
return -1;
|
|
18462
18463
|
}, o.prototype.readAndCheckSignature = function(a) {
|
|
18463
|
-
var u = a.charCodeAt(0), c = a.charCodeAt(1), d = a.charCodeAt(2), h = a.charCodeAt(3),
|
|
18464
|
-
return u ===
|
|
18464
|
+
var u = a.charCodeAt(0), c = a.charCodeAt(1), d = a.charCodeAt(2), h = a.charCodeAt(3), b = this.readData(4);
|
|
18465
|
+
return u === b[0] && c === b[1] && d === b[2] && h === b[3];
|
|
18465
18466
|
}, o.prototype.readData = function(a) {
|
|
18466
18467
|
if (this.checkOffset(a), a === 0) return [];
|
|
18467
18468
|
var u = this.data.slice(this.zero + this.index, this.zero + this.index + a);
|
|
@@ -18533,8 +18534,8 @@ function B_() {
|
|
|
18533
18534
|
}, { "../utils": 32, "./ArrayReader": 17 }], 22: [function(n, r, i) {
|
|
18534
18535
|
var s = n("../utils"), o = n("../support"), a = n("./ArrayReader"), u = n("./StringReader"), c = n("./NodeBufferReader"), d = n("./Uint8ArrayReader");
|
|
18535
18536
|
r.exports = function(h) {
|
|
18536
|
-
var
|
|
18537
|
-
return s.checkSupport(
|
|
18537
|
+
var b = s.getTypeOf(h);
|
|
18538
|
+
return s.checkSupport(b), b !== "string" || o.uint8array ? b === "nodebuffer" ? new c(h) : o.uint8array ? new d(s.transformTo("uint8array", h)) : new a(s.transformTo("array", h)) : new u(h);
|
|
18538
18539
|
};
|
|
18539
18540
|
}, { "../support": 30, "../utils": 32, "./ArrayReader": 17, "./NodeBufferReader": 19, "./StringReader": 20, "./Uint8ArrayReader": 21 }], 23: [function(n, r, i) {
|
|
18540
18541
|
i.LOCAL_FILE_HEADER = "PK", i.CENTRAL_FILE_HEADER = "PK", i.CENTRAL_DIRECTORY_END = "PK", i.ZIP64_CENTRAL_DIRECTORY_LOCATOR = "PK\x07", i.ZIP64_CENTRAL_DIRECTORY_END = "PK", i.DATA_DESCRIPTOR = "PK\x07\b";
|
|
@@ -18662,50 +18663,50 @@ function B_() {
|
|
|
18662
18663
|
h = n("../nodejs/NodejsStreamOutputAdapter");
|
|
18663
18664
|
} catch {
|
|
18664
18665
|
}
|
|
18665
|
-
function m
|
|
18666
|
+
function b(m, g) {
|
|
18666
18667
|
return new d.Promise(function(_, p) {
|
|
18667
|
-
var y = [],
|
|
18668
|
-
|
|
18669
|
-
y.push(B), g && g(
|
|
18668
|
+
var y = [], S = m._internalType, O = m._outputType, D = m._mimeType;
|
|
18669
|
+
m.on("data", function(B, A) {
|
|
18670
|
+
y.push(B), g && g(A);
|
|
18670
18671
|
}).on("error", function(B) {
|
|
18671
18672
|
y = [], p(B);
|
|
18672
18673
|
}).on("end", function() {
|
|
18673
18674
|
try {
|
|
18674
|
-
var B = (function(
|
|
18675
|
-
switch (
|
|
18675
|
+
var B = (function(A, C, k) {
|
|
18676
|
+
switch (A) {
|
|
18676
18677
|
case "blob":
|
|
18677
18678
|
return s.newBlob(s.transformTo("arraybuffer", C), k);
|
|
18678
18679
|
case "base64":
|
|
18679
18680
|
return u.encode(C);
|
|
18680
18681
|
default:
|
|
18681
|
-
return s.transformTo(
|
|
18682
|
+
return s.transformTo(A, C);
|
|
18682
18683
|
}
|
|
18683
|
-
})(O, (function(
|
|
18684
|
-
var k, P = 0, R = null,
|
|
18685
|
-
for (k = 0; k < C.length; k++)
|
|
18686
|
-
switch (
|
|
18684
|
+
})(O, (function(A, C) {
|
|
18685
|
+
var k, P = 0, R = null, x = 0;
|
|
18686
|
+
for (k = 0; k < C.length; k++) x += C[k].length;
|
|
18687
|
+
switch (A) {
|
|
18687
18688
|
case "string":
|
|
18688
18689
|
return C.join("");
|
|
18689
18690
|
case "array":
|
|
18690
18691
|
return Array.prototype.concat.apply([], C);
|
|
18691
18692
|
case "uint8array":
|
|
18692
|
-
for (R = new Uint8Array(
|
|
18693
|
+
for (R = new Uint8Array(x), k = 0; k < C.length; k++) R.set(C[k], P), P += C[k].length;
|
|
18693
18694
|
return R;
|
|
18694
18695
|
case "nodebuffer":
|
|
18695
18696
|
return Buffer.concat(C);
|
|
18696
18697
|
default:
|
|
18697
|
-
throw new Error("concat : unsupported type '" +
|
|
18698
|
+
throw new Error("concat : unsupported type '" + A + "'");
|
|
18698
18699
|
}
|
|
18699
|
-
})(
|
|
18700
|
+
})(S, y), D);
|
|
18700
18701
|
_(B);
|
|
18701
|
-
} catch (
|
|
18702
|
-
p(
|
|
18702
|
+
} catch (A) {
|
|
18703
|
+
p(A);
|
|
18703
18704
|
}
|
|
18704
18705
|
y = [];
|
|
18705
18706
|
}).resume();
|
|
18706
18707
|
});
|
|
18707
18708
|
}
|
|
18708
|
-
function f(
|
|
18709
|
+
function f(m, g, _) {
|
|
18709
18710
|
var p = g;
|
|
18710
18711
|
switch (g) {
|
|
18711
18712
|
case "blob":
|
|
@@ -18716,27 +18717,27 @@ function B_() {
|
|
|
18716
18717
|
p = "string";
|
|
18717
18718
|
}
|
|
18718
18719
|
try {
|
|
18719
|
-
this._internalType = p, this._outputType = g, this._mimeType = _, s.checkSupport(p), this._worker =
|
|
18720
|
+
this._internalType = p, this._outputType = g, this._mimeType = _, s.checkSupport(p), this._worker = m.pipe(new o(p)), m.lock();
|
|
18720
18721
|
} catch (y) {
|
|
18721
18722
|
this._worker = new a("error"), this._worker.error(y);
|
|
18722
18723
|
}
|
|
18723
18724
|
}
|
|
18724
|
-
f.prototype = { accumulate: function(
|
|
18725
|
-
return
|
|
18726
|
-
}, on: function(
|
|
18725
|
+
f.prototype = { accumulate: function(m) {
|
|
18726
|
+
return b(this, m);
|
|
18727
|
+
}, on: function(m, g) {
|
|
18727
18728
|
var _ = this;
|
|
18728
|
-
return
|
|
18729
|
+
return m === "data" ? this._worker.on(m, function(p) {
|
|
18729
18730
|
g.call(_, p.data, p.meta);
|
|
18730
|
-
}) : this._worker.on(
|
|
18731
|
+
}) : this._worker.on(m, function() {
|
|
18731
18732
|
s.delay(g, arguments, _);
|
|
18732
18733
|
}), this;
|
|
18733
18734
|
}, resume: function() {
|
|
18734
18735
|
return s.delay(this._worker.resume, [], this._worker), this;
|
|
18735
18736
|
}, pause: function() {
|
|
18736
18737
|
return this._worker.pause(), this;
|
|
18737
|
-
}, toNodejsStream: function(
|
|
18738
|
+
}, toNodejsStream: function(m) {
|
|
18738
18739
|
if (s.checkSupport("nodestream"), this._outputType !== "nodebuffer") throw new Error(this._outputType + " is not supported by this method");
|
|
18739
|
-
return new h(this, { objectMode: this._outputType !== "nodebuffer" },
|
|
18740
|
+
return new h(this, { objectMode: this._outputType !== "nodebuffer" }, m);
|
|
18740
18741
|
} }, r.exports = f;
|
|
18741
18742
|
}, { "../base64": 1, "../external": 6, "../nodejs/NodejsStreamOutputAdapter": 13, "../support": 30, "../utils": 32, "./ConvertWorker": 24, "./GenericWorker": 28 }], 30: [function(n, r, i) {
|
|
18742
18743
|
if (i.base64 = !0, i.array = !0, i.string = !0, i.arraybuffer = typeof ArrayBuffer < "u" && typeof Uint8Array < "u", i.nodebuffer = typeof Buffer < "u", i.uint8array = typeof Uint8Array < "u", typeof ArrayBuffer > "u") i.blob = !1;
|
|
@@ -18764,47 +18765,47 @@ function B_() {
|
|
|
18764
18765
|
function h() {
|
|
18765
18766
|
u.call(this, "utf-8 decode"), this.leftOver = null;
|
|
18766
18767
|
}
|
|
18767
|
-
function
|
|
18768
|
+
function b() {
|
|
18768
18769
|
u.call(this, "utf-8 encode");
|
|
18769
18770
|
}
|
|
18770
18771
|
i.utf8encode = function(f) {
|
|
18771
|
-
return o.nodebuffer ? a.newBufferFrom(f, "utf-8") : (function(
|
|
18772
|
-
var g, _, p, y,
|
|
18773
|
-
for (y = 0; y < O; y++) (64512 & (_ =
|
|
18774
|
-
for (g = o.uint8array ? new Uint8Array(D) : new Array(D), y =
|
|
18772
|
+
return o.nodebuffer ? a.newBufferFrom(f, "utf-8") : (function(m) {
|
|
18773
|
+
var g, _, p, y, S, O = m.length, D = 0;
|
|
18774
|
+
for (y = 0; y < O; y++) (64512 & (_ = m.charCodeAt(y))) == 55296 && y + 1 < O && (64512 & (p = m.charCodeAt(y + 1))) == 56320 && (_ = 65536 + (_ - 55296 << 10) + (p - 56320), y++), D += _ < 128 ? 1 : _ < 2048 ? 2 : _ < 65536 ? 3 : 4;
|
|
18775
|
+
for (g = o.uint8array ? new Uint8Array(D) : new Array(D), y = S = 0; S < D; y++) (64512 & (_ = m.charCodeAt(y))) == 55296 && y + 1 < O && (64512 & (p = m.charCodeAt(y + 1))) == 56320 && (_ = 65536 + (_ - 55296 << 10) + (p - 56320), y++), _ < 128 ? g[S++] = _ : (_ < 2048 ? g[S++] = 192 | _ >>> 6 : (_ < 65536 ? g[S++] = 224 | _ >>> 12 : (g[S++] = 240 | _ >>> 18, g[S++] = 128 | _ >>> 12 & 63), g[S++] = 128 | _ >>> 6 & 63), g[S++] = 128 | 63 & _);
|
|
18775
18776
|
return g;
|
|
18776
18777
|
})(f);
|
|
18777
18778
|
}, i.utf8decode = function(f) {
|
|
18778
|
-
return o.nodebuffer ? s.transformTo("nodebuffer", f).toString("utf-8") : (function(
|
|
18779
|
-
var g, _, p, y,
|
|
18780
|
-
for (g = _ = 0; g <
|
|
18779
|
+
return o.nodebuffer ? s.transformTo("nodebuffer", f).toString("utf-8") : (function(m) {
|
|
18780
|
+
var g, _, p, y, S = m.length, O = new Array(2 * S);
|
|
18781
|
+
for (g = _ = 0; g < S; ) if ((p = m[g++]) < 128) O[_++] = p;
|
|
18781
18782
|
else if (4 < (y = c[p])) O[_++] = 65533, g += y - 1;
|
|
18782
18783
|
else {
|
|
18783
|
-
for (p &= y === 2 ? 31 : y === 3 ? 15 : 7; 1 < y && g <
|
|
18784
|
+
for (p &= y === 2 ? 31 : y === 3 ? 15 : 7; 1 < y && g < S; ) p = p << 6 | 63 & m[g++], y--;
|
|
18784
18785
|
1 < y ? O[_++] = 65533 : p < 65536 ? O[_++] = p : (p -= 65536, O[_++] = 55296 | p >> 10 & 1023, O[_++] = 56320 | 1023 & p);
|
|
18785
18786
|
}
|
|
18786
18787
|
return O.length !== _ && (O.subarray ? O = O.subarray(0, _) : O.length = _), s.applyFromCharCode(O);
|
|
18787
18788
|
})(f = s.transformTo(o.uint8array ? "uint8array" : "array", f));
|
|
18788
18789
|
}, s.inherits(h, u), h.prototype.processChunk = function(f) {
|
|
18789
|
-
var
|
|
18790
|
+
var m = s.transformTo(o.uint8array ? "uint8array" : "array", f.data);
|
|
18790
18791
|
if (this.leftOver && this.leftOver.length) {
|
|
18791
18792
|
if (o.uint8array) {
|
|
18792
|
-
var g =
|
|
18793
|
-
(
|
|
18794
|
-
} else
|
|
18793
|
+
var g = m;
|
|
18794
|
+
(m = new Uint8Array(g.length + this.leftOver.length)).set(this.leftOver, 0), m.set(g, this.leftOver.length);
|
|
18795
|
+
} else m = this.leftOver.concat(m);
|
|
18795
18796
|
this.leftOver = null;
|
|
18796
18797
|
}
|
|
18797
|
-
var _ = (function(y,
|
|
18798
|
+
var _ = (function(y, S) {
|
|
18798
18799
|
var O;
|
|
18799
|
-
for ((
|
|
18800
|
-
return O < 0 || O === 0 ?
|
|
18801
|
-
})(
|
|
18802
|
-
_ !==
|
|
18800
|
+
for ((S = S || y.length) > y.length && (S = y.length), O = S - 1; 0 <= O && (192 & y[O]) == 128; ) O--;
|
|
18801
|
+
return O < 0 || O === 0 ? S : O + c[y[O]] > S ? O : S;
|
|
18802
|
+
})(m), p = m;
|
|
18803
|
+
_ !== m.length && (o.uint8array ? (p = m.subarray(0, _), this.leftOver = m.subarray(_, m.length)) : (p = m.slice(0, _), this.leftOver = m.slice(_, m.length))), this.push({ data: i.utf8decode(p), meta: f.meta });
|
|
18803
18804
|
}, h.prototype.flush = function() {
|
|
18804
18805
|
this.leftOver && this.leftOver.length && (this.push({ data: i.utf8decode(this.leftOver), meta: {} }), this.leftOver = null);
|
|
18805
|
-
}, i.Utf8DecodeWorker = h, s.inherits(
|
|
18806
|
+
}, i.Utf8DecodeWorker = h, s.inherits(b, u), b.prototype.processChunk = function(f) {
|
|
18806
18807
|
this.push({ data: i.utf8encode(f.data), meta: f.meta });
|
|
18807
|
-
}, i.Utf8EncodeWorker =
|
|
18808
|
+
}, i.Utf8EncodeWorker = b;
|
|
18808
18809
|
}, { "./nodejsUtils": 14, "./stream/GenericWorker": 28, "./support": 30, "./utils": 32 }], 32: [function(n, r, i) {
|
|
18809
18810
|
var s = n("./support"), o = n("./base64"), a = n("./nodejsUtils"), u = n("./external");
|
|
18810
18811
|
function c(g) {
|
|
@@ -18828,9 +18829,9 @@ function B_() {
|
|
|
18828
18829
|
}
|
|
18829
18830
|
};
|
|
18830
18831
|
var h = { stringifyByChunk: function(g, _, p) {
|
|
18831
|
-
var y = [],
|
|
18832
|
+
var y = [], S = 0, O = g.length;
|
|
18832
18833
|
if (O <= p) return String.fromCharCode.apply(null, g);
|
|
18833
|
-
for (;
|
|
18834
|
+
for (; S < O; ) _ === "array" || _ === "nodebuffer" ? y.push(String.fromCharCode.apply(null, g.slice(S, Math.min(S + p, O)))) : y.push(String.fromCharCode.apply(null, g.subarray(S, Math.min(S + p, O)))), S += p;
|
|
18834
18835
|
return y.join("");
|
|
18835
18836
|
}, stringifyByChar: function(g) {
|
|
18836
18837
|
for (var _ = "", p = 0; p < g.length; p++) _ += String.fromCharCode(g[p]);
|
|
@@ -18848,7 +18849,7 @@ function B_() {
|
|
|
18848
18849
|
return !1;
|
|
18849
18850
|
}
|
|
18850
18851
|
})() } };
|
|
18851
|
-
function
|
|
18852
|
+
function b(g) {
|
|
18852
18853
|
var _ = 65536, p = i.getTypeOf(g), y = !0;
|
|
18853
18854
|
if (p === "uint8array" ? y = h.applyCanBeUsed.uint8array : p === "nodebuffer" && (y = h.applyCanBeUsed.nodebuffer), y) for (; 1 < _; ) try {
|
|
18854
18855
|
return h.stringifyByChunk(g, p, _);
|
|
@@ -18861,51 +18862,51 @@ function B_() {
|
|
|
18861
18862
|
for (var p = 0; p < g.length; p++) _[p] = g[p];
|
|
18862
18863
|
return _;
|
|
18863
18864
|
}
|
|
18864
|
-
i.applyFromCharCode =
|
|
18865
|
-
var
|
|
18866
|
-
|
|
18865
|
+
i.applyFromCharCode = b;
|
|
18866
|
+
var m = {};
|
|
18867
|
+
m.string = { string: c, array: function(g) {
|
|
18867
18868
|
return d(g, new Array(g.length));
|
|
18868
18869
|
}, arraybuffer: function(g) {
|
|
18869
|
-
return
|
|
18870
|
+
return m.string.uint8array(g).buffer;
|
|
18870
18871
|
}, uint8array: function(g) {
|
|
18871
18872
|
return d(g, new Uint8Array(g.length));
|
|
18872
18873
|
}, nodebuffer: function(g) {
|
|
18873
18874
|
return d(g, a.allocBuffer(g.length));
|
|
18874
|
-
} },
|
|
18875
|
+
} }, m.array = { string: b, array: c, arraybuffer: function(g) {
|
|
18875
18876
|
return new Uint8Array(g).buffer;
|
|
18876
18877
|
}, uint8array: function(g) {
|
|
18877
18878
|
return new Uint8Array(g);
|
|
18878
18879
|
}, nodebuffer: function(g) {
|
|
18879
18880
|
return a.newBufferFrom(g);
|
|
18880
|
-
} },
|
|
18881
|
-
return
|
|
18881
|
+
} }, m.arraybuffer = { string: function(g) {
|
|
18882
|
+
return b(new Uint8Array(g));
|
|
18882
18883
|
}, array: function(g) {
|
|
18883
18884
|
return f(new Uint8Array(g), new Array(g.byteLength));
|
|
18884
18885
|
}, arraybuffer: c, uint8array: function(g) {
|
|
18885
18886
|
return new Uint8Array(g);
|
|
18886
18887
|
}, nodebuffer: function(g) {
|
|
18887
18888
|
return a.newBufferFrom(new Uint8Array(g));
|
|
18888
|
-
} },
|
|
18889
|
+
} }, m.uint8array = { string: b, array: function(g) {
|
|
18889
18890
|
return f(g, new Array(g.length));
|
|
18890
18891
|
}, arraybuffer: function(g) {
|
|
18891
18892
|
return g.buffer;
|
|
18892
18893
|
}, uint8array: c, nodebuffer: function(g) {
|
|
18893
18894
|
return a.newBufferFrom(g);
|
|
18894
|
-
} },
|
|
18895
|
+
} }, m.nodebuffer = { string: b, array: function(g) {
|
|
18895
18896
|
return f(g, new Array(g.length));
|
|
18896
18897
|
}, arraybuffer: function(g) {
|
|
18897
|
-
return
|
|
18898
|
+
return m.nodebuffer.uint8array(g).buffer;
|
|
18898
18899
|
}, uint8array: function(g) {
|
|
18899
18900
|
return f(g, new Uint8Array(g.length));
|
|
18900
18901
|
}, nodebuffer: c }, i.transformTo = function(g, _) {
|
|
18901
18902
|
if (_ = _ || "", !g) return _;
|
|
18902
18903
|
i.checkSupport(g);
|
|
18903
18904
|
var p = i.getTypeOf(_);
|
|
18904
|
-
return
|
|
18905
|
+
return m[p][g](_);
|
|
18905
18906
|
}, i.resolve = function(g) {
|
|
18906
18907
|
for (var _ = g.split("/"), p = [], y = 0; y < _.length; y++) {
|
|
18907
|
-
var
|
|
18908
|
-
|
|
18908
|
+
var S = _[y];
|
|
18909
|
+
S === "." || S === "" && y !== 0 && y !== _.length - 1 || (S === ".." ? p.pop() : p.push(S));
|
|
18909
18910
|
}
|
|
18910
18911
|
return p.join("/");
|
|
18911
18912
|
}, i.getTypeOf = function(g) {
|
|
@@ -18928,19 +18929,19 @@ function B_() {
|
|
|
18928
18929
|
var g, _, p = {};
|
|
18929
18930
|
for (g = 0; g < arguments.length; g++) for (_ in arguments[g]) Object.prototype.hasOwnProperty.call(arguments[g], _) && p[_] === void 0 && (p[_] = arguments[g][_]);
|
|
18930
18931
|
return p;
|
|
18931
|
-
}, i.prepareContent = function(g, _, p, y,
|
|
18932
|
+
}, i.prepareContent = function(g, _, p, y, S) {
|
|
18932
18933
|
return u.Promise.resolve(_).then(function(O) {
|
|
18933
18934
|
return s.blob && (O instanceof Blob || ["[object File]", "[object Blob]"].indexOf(Object.prototype.toString.call(O)) !== -1) && typeof FileReader < "u" ? new u.Promise(function(D, B) {
|
|
18934
|
-
var
|
|
18935
|
-
|
|
18935
|
+
var A = new FileReader();
|
|
18936
|
+
A.onload = function(C) {
|
|
18936
18937
|
D(C.target.result);
|
|
18937
|
-
},
|
|
18938
|
+
}, A.onerror = function(C) {
|
|
18938
18939
|
B(C.target.error);
|
|
18939
|
-
},
|
|
18940
|
+
}, A.readAsArrayBuffer(O);
|
|
18940
18941
|
}) : O;
|
|
18941
18942
|
}).then(function(O) {
|
|
18942
18943
|
var D = i.getTypeOf(O);
|
|
18943
|
-
return D ? (D === "arraybuffer" ? O = i.transformTo("uint8array", O) : D === "string" && (
|
|
18944
|
+
return D ? (D === "arraybuffer" ? O = i.transformTo("uint8array", O) : D === "string" && (S ? O = o.decode(O) : p && y !== !0 && (O = (function(B) {
|
|
18944
18945
|
return d(B, s.uint8array ? new Uint8Array(B.length) : new Array(B.length));
|
|
18945
18946
|
})(O))), O) : u.Promise.reject(new Error("Can't read the data of '" + g + "'. Is it in a supported JavaScript type (String, Blob, ArrayBuffer, etc) ?"));
|
|
18946
18947
|
});
|
|
@@ -18953,26 +18954,26 @@ function B_() {
|
|
|
18953
18954
|
d.prototype = { checkSignature: function(h) {
|
|
18954
18955
|
if (!this.reader.readAndCheckSignature(h)) {
|
|
18955
18956
|
this.reader.index -= 4;
|
|
18956
|
-
var
|
|
18957
|
-
throw new Error("Corrupted zip or bug: unexpected signature (" + o.pretty(
|
|
18957
|
+
var b = this.reader.readString(4);
|
|
18958
|
+
throw new Error("Corrupted zip or bug: unexpected signature (" + o.pretty(b) + ", expected " + o.pretty(h) + ")");
|
|
18958
18959
|
}
|
|
18959
|
-
}, isSignature: function(h,
|
|
18960
|
+
}, isSignature: function(h, b) {
|
|
18960
18961
|
var f = this.reader.index;
|
|
18961
18962
|
this.reader.setIndex(h);
|
|
18962
|
-
var
|
|
18963
|
-
return this.reader.setIndex(f),
|
|
18963
|
+
var m = this.reader.readString(4) === b;
|
|
18964
|
+
return this.reader.setIndex(f), m;
|
|
18964
18965
|
}, readBlockEndOfCentral: function() {
|
|
18965
18966
|
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);
|
|
18966
|
-
var h = this.reader.readData(this.zipCommentLength),
|
|
18967
|
+
var h = this.reader.readData(this.zipCommentLength), b = c.uint8array ? "uint8array" : "array", f = o.transformTo(b, h);
|
|
18967
18968
|
this.zipComment = this.loadOptions.decodeFileName(f);
|
|
18968
18969
|
}, readBlockZip64EndOfCentral: function() {
|
|
18969
18970
|
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 = {};
|
|
18970
|
-
for (var h,
|
|
18971
|
+
for (var h, b, f, m = this.zip64EndOfCentralSize - 44; 0 < m; ) h = this.reader.readInt(2), b = this.reader.readInt(4), f = this.reader.readData(b), this.zip64ExtensibleData[h] = { id: h, length: b, value: f };
|
|
18971
18972
|
}, readBlockZip64EndOfCentralLocator: function() {
|
|
18972
18973
|
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");
|
|
18973
18974
|
}, readLocalFiles: function() {
|
|
18974
|
-
var h,
|
|
18975
|
-
for (h = 0; h < this.files.length; h++)
|
|
18975
|
+
var h, b;
|
|
18976
|
+
for (h = 0; h < this.files.length; h++) b = this.files[h], this.reader.setIndex(b.localHeaderOffset), this.checkSignature(a.LOCAL_FILE_HEADER), b.readLocalPart(this.reader), b.handleUTF8(), b.processAttributes();
|
|
18976
18977
|
}, readCentralDir: function() {
|
|
18977
18978
|
var h;
|
|
18978
18979
|
for (this.reader.setIndex(this.centralDirOffset); this.reader.readAndCheckSignature(a.CENTRAL_FILE_HEADER); ) (h = new u({ zip64: this.zip64 }, this.loadOptions)).readCentralPart(this.reader), this.files.push(h);
|
|
@@ -18981,7 +18982,7 @@ function B_() {
|
|
|
18981
18982
|
var h = this.reader.lastIndexOfSignature(a.CENTRAL_DIRECTORY_END);
|
|
18982
18983
|
if (h < 0) throw this.isSignature(0, a.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");
|
|
18983
18984
|
this.reader.setIndex(h);
|
|
18984
|
-
var
|
|
18985
|
+
var b = h;
|
|
18985
18986
|
if (this.checkSignature(a.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) {
|
|
18986
18987
|
if (this.zip64 = !0, (h = this.reader.lastIndexOfSignature(a.ZIP64_CENTRAL_DIRECTORY_LOCATOR)) < 0) throw new Error("Corrupted zip: can't find the ZIP64 end of central directory locator");
|
|
18987
18988
|
if (this.reader.setIndex(h), this.checkSignature(a.ZIP64_CENTRAL_DIRECTORY_LOCATOR), this.readBlockZip64EndOfCentralLocator(), !this.isSignature(this.relativeOffsetEndOfZip64CentralDir, a.ZIP64_CENTRAL_DIRECTORY_END) && (this.relativeOffsetEndOfZip64CentralDir = this.reader.lastIndexOfSignature(a.ZIP64_CENTRAL_DIRECTORY_END), this.relativeOffsetEndOfZip64CentralDir < 0)) throw new Error("Corrupted zip: can't find the ZIP64 end of central directory");
|
|
@@ -18989,9 +18990,9 @@ function B_() {
|
|
|
18989
18990
|
}
|
|
18990
18991
|
var f = this.centralDirOffset + this.centralDirSize;
|
|
18991
18992
|
this.zip64 && (f += 20, f += 12 + this.zip64EndOfCentralSize);
|
|
18992
|
-
var
|
|
18993
|
-
if (0 <
|
|
18994
|
-
else if (
|
|
18993
|
+
var m = b - f;
|
|
18994
|
+
if (0 < m) this.isSignature(b, a.CENTRAL_FILE_HEADER) || (this.reader.zero = m);
|
|
18995
|
+
else if (m < 0) throw new Error("Corrupted zip: missing " + Math.abs(m) + " bytes.");
|
|
18995
18996
|
}, prepareReader: function(h) {
|
|
18996
18997
|
this.reader = s(h);
|
|
18997
18998
|
}, load: function(h) {
|
|
@@ -18999,26 +19000,26 @@ function B_() {
|
|
|
18999
19000
|
} }, r.exports = d;
|
|
19000
19001
|
}, { "./reader/readerFor": 22, "./signature": 23, "./support": 30, "./utils": 32, "./zipEntry": 34 }], 34: [function(n, r, i) {
|
|
19001
19002
|
var s = n("./reader/readerFor"), o = n("./utils"), a = n("./compressedObject"), u = n("./crc32"), c = n("./utf8"), d = n("./compressions"), h = n("./support");
|
|
19002
|
-
function
|
|
19003
|
-
this.options = f, this.loadOptions =
|
|
19003
|
+
function b(f, m) {
|
|
19004
|
+
this.options = f, this.loadOptions = m;
|
|
19004
19005
|
}
|
|
19005
|
-
|
|
19006
|
+
b.prototype = { isEncrypted: function() {
|
|
19006
19007
|
return (1 & this.bitFlag) == 1;
|
|
19007
19008
|
}, useUTF8: function() {
|
|
19008
19009
|
return (2048 & this.bitFlag) == 2048;
|
|
19009
19010
|
}, readLocalPart: function(f) {
|
|
19010
|
-
var
|
|
19011
|
+
var m, g;
|
|
19011
19012
|
if (f.skip(22), this.fileNameLength = f.readInt(2), g = f.readInt(2), this.fileName = f.readData(this.fileNameLength), f.skip(g), 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)");
|
|
19012
|
-
if ((
|
|
19013
|
+
if ((m = (function(_) {
|
|
19013
19014
|
for (var p in d) if (Object.prototype.hasOwnProperty.call(d, p) && d[p].magic === _) return d[p];
|
|
19014
19015
|
return null;
|
|
19015
19016
|
})(this.compressionMethod)) === null) throw new Error("Corrupted zip : compression " + o.pretty(this.compressionMethod) + " unknown (inner file : " + o.transformTo("string", this.fileName) + ")");
|
|
19016
|
-
this.decompressed = new a(this.compressedSize, this.uncompressedSize, this.crc32,
|
|
19017
|
+
this.decompressed = new a(this.compressedSize, this.uncompressedSize, this.crc32, m, f.readData(this.compressedSize));
|
|
19017
19018
|
}, readCentralPart: function(f) {
|
|
19018
19019
|
this.versionMadeBy = f.readInt(2), f.skip(2), this.bitFlag = f.readInt(2), this.compressionMethod = f.readString(2), this.date = f.readDate(), this.crc32 = f.readInt(4), this.compressedSize = f.readInt(4), this.uncompressedSize = f.readInt(4);
|
|
19019
|
-
var
|
|
19020
|
+
var m = f.readInt(2);
|
|
19020
19021
|
if (this.extraFieldsLength = f.readInt(2), this.fileCommentLength = f.readInt(2), this.diskNumberStart = f.readInt(2), this.internalFileAttributes = f.readInt(2), this.externalFileAttributes = f.readInt(4), this.localHeaderOffset = f.readInt(4), this.isEncrypted()) throw new Error("Encrypted zip are not supported");
|
|
19021
|
-
f.skip(
|
|
19022
|
+
f.skip(m), this.readExtraFields(f), this.parseZIP64ExtraField(f), this.fileComment = f.readData(this.fileCommentLength);
|
|
19022
19023
|
}, processAttributes: function() {
|
|
19023
19024
|
this.unixPermissions = null, this.dosPermissions = null;
|
|
19024
19025
|
var f = this.versionMadeBy >> 8;
|
|
@@ -19029,15 +19030,15 @@ function B_() {
|
|
|
19029
19030
|
this.uncompressedSize === o.MAX_VALUE_32BITS && (this.uncompressedSize = f.readInt(8)), this.compressedSize === o.MAX_VALUE_32BITS && (this.compressedSize = f.readInt(8)), this.localHeaderOffset === o.MAX_VALUE_32BITS && (this.localHeaderOffset = f.readInt(8)), this.diskNumberStart === o.MAX_VALUE_32BITS && (this.diskNumberStart = f.readInt(4));
|
|
19030
19031
|
}
|
|
19031
19032
|
}, readExtraFields: function(f) {
|
|
19032
|
-
var
|
|
19033
|
-
for (this.extraFields || (this.extraFields = {}); f.index + 4 < p; )
|
|
19033
|
+
var m, g, _, p = f.index + this.extraFieldsLength;
|
|
19034
|
+
for (this.extraFields || (this.extraFields = {}); f.index + 4 < p; ) m = f.readInt(2), g = f.readInt(2), _ = f.readData(g), this.extraFields[m] = { id: m, length: g, value: _ };
|
|
19034
19035
|
f.setIndex(p);
|
|
19035
19036
|
}, handleUTF8: function() {
|
|
19036
19037
|
var f = h.uint8array ? "uint8array" : "array";
|
|
19037
19038
|
if (this.useUTF8()) this.fileNameStr = c.utf8decode(this.fileName), this.fileCommentStr = c.utf8decode(this.fileComment);
|
|
19038
19039
|
else {
|
|
19039
|
-
var
|
|
19040
|
-
if (
|
|
19040
|
+
var m = this.findExtraFieldUnicodePath();
|
|
19041
|
+
if (m !== null) this.fileNameStr = m;
|
|
19041
19042
|
else {
|
|
19042
19043
|
var g = o.transformTo(f, this.fileName);
|
|
19043
19044
|
this.fileNameStr = this.loadOptions.decodeFileName(g);
|
|
@@ -19052,74 +19053,74 @@ function B_() {
|
|
|
19052
19053
|
}, findExtraFieldUnicodePath: function() {
|
|
19053
19054
|
var f = this.extraFields[28789];
|
|
19054
19055
|
if (f) {
|
|
19055
|
-
var
|
|
19056
|
-
return
|
|
19056
|
+
var m = s(f.value);
|
|
19057
|
+
return m.readInt(1) !== 1 || u(this.fileName) !== m.readInt(4) ? null : c.utf8decode(m.readData(f.length - 5));
|
|
19057
19058
|
}
|
|
19058
19059
|
return null;
|
|
19059
19060
|
}, findExtraFieldUnicodeComment: function() {
|
|
19060
19061
|
var f = this.extraFields[25461];
|
|
19061
19062
|
if (f) {
|
|
19062
|
-
var
|
|
19063
|
-
return
|
|
19063
|
+
var m = s(f.value);
|
|
19064
|
+
return m.readInt(1) !== 1 || u(this.fileComment) !== m.readInt(4) ? null : c.utf8decode(m.readData(f.length - 5));
|
|
19064
19065
|
}
|
|
19065
19066
|
return null;
|
|
19066
|
-
} }, r.exports =
|
|
19067
|
+
} }, r.exports = b;
|
|
19067
19068
|
}, { "./compressedObject": 2, "./compressions": 3, "./crc32": 4, "./reader/readerFor": 22, "./support": 30, "./utf8": 31, "./utils": 32 }], 35: [function(n, r, i) {
|
|
19068
|
-
function s(
|
|
19069
|
-
this.name =
|
|
19069
|
+
function s(m, g, _) {
|
|
19070
|
+
this.name = m, this.dir = _.dir, this.date = _.date, this.comment = _.comment, this.unixPermissions = _.unixPermissions, this.dosPermissions = _.dosPermissions, this._data = g, this._dataBinary = _.binary, this.options = { compression: _.compression, compressionOptions: _.compressionOptions };
|
|
19070
19071
|
}
|
|
19071
19072
|
var o = n("./stream/StreamHelper"), a = n("./stream/DataWorker"), u = n("./utf8"), c = n("./compressedObject"), d = n("./stream/GenericWorker");
|
|
19072
|
-
s.prototype = { internalStream: function(
|
|
19073
|
+
s.prototype = { internalStream: function(m) {
|
|
19073
19074
|
var g = null, _ = "string";
|
|
19074
19075
|
try {
|
|
19075
|
-
if (!
|
|
19076
|
-
var p = (_ =
|
|
19076
|
+
if (!m) throw new Error("No output type specified.");
|
|
19077
|
+
var p = (_ = m.toLowerCase()) === "string" || _ === "text";
|
|
19077
19078
|
_ !== "binarystring" && _ !== "text" || (_ = "string"), g = this._decompressWorker();
|
|
19078
19079
|
var y = !this._dataBinary;
|
|
19079
19080
|
y && !p && (g = g.pipe(new u.Utf8EncodeWorker())), !y && p && (g = g.pipe(new u.Utf8DecodeWorker()));
|
|
19080
|
-
} catch (
|
|
19081
|
-
(g = new d("error")).error(
|
|
19081
|
+
} catch (S) {
|
|
19082
|
+
(g = new d("error")).error(S);
|
|
19082
19083
|
}
|
|
19083
19084
|
return new o(g, _, "");
|
|
19084
|
-
}, async: function(
|
|
19085
|
-
return this.internalStream(
|
|
19086
|
-
}, nodeStream: function(
|
|
19087
|
-
return this.internalStream(
|
|
19088
|
-
}, _compressWorker: function(
|
|
19089
|
-
if (this._data instanceof c && this._data.compression.magic ===
|
|
19085
|
+
}, async: function(m, g) {
|
|
19086
|
+
return this.internalStream(m).accumulate(g);
|
|
19087
|
+
}, nodeStream: function(m, g) {
|
|
19088
|
+
return this.internalStream(m || "nodebuffer").toNodejsStream(g);
|
|
19089
|
+
}, _compressWorker: function(m, g) {
|
|
19090
|
+
if (this._data instanceof c && this._data.compression.magic === m.magic) return this._data.getCompressedWorker();
|
|
19090
19091
|
var _ = this._decompressWorker();
|
|
19091
|
-
return this._dataBinary || (_ = _.pipe(new u.Utf8EncodeWorker())), c.createWorkerFrom(_,
|
|
19092
|
+
return this._dataBinary || (_ = _.pipe(new u.Utf8EncodeWorker())), c.createWorkerFrom(_, m, g);
|
|
19092
19093
|
}, _decompressWorker: function() {
|
|
19093
19094
|
return this._data instanceof c ? this._data.getContentWorker() : this._data instanceof d ? this._data : new a(this._data);
|
|
19094
19095
|
} };
|
|
19095
|
-
for (var h = ["asText", "asBinary", "asNodeBuffer", "asUint8Array", "asArrayBuffer"],
|
|
19096
|
+
for (var h = ["asText", "asBinary", "asNodeBuffer", "asUint8Array", "asArrayBuffer"], b = function() {
|
|
19096
19097
|
throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.");
|
|
19097
|
-
}, f = 0; f < h.length; f++) s.prototype[h[f]] =
|
|
19098
|
+
}, f = 0; f < h.length; f++) s.prototype[h[f]] = b;
|
|
19098
19099
|
r.exports = s;
|
|
19099
19100
|
}, { "./compressedObject": 2, "./stream/DataWorker": 27, "./stream/GenericWorker": 28, "./stream/StreamHelper": 29, "./utf8": 31 }], 36: [function(n, r, i) {
|
|
19100
19101
|
(function(s) {
|
|
19101
19102
|
var o, a, u = s.MutationObserver || s.WebKitMutationObserver;
|
|
19102
19103
|
if (u) {
|
|
19103
|
-
var c = 0, d = new u(
|
|
19104
|
+
var c = 0, d = new u(m), h = s.document.createTextNode("");
|
|
19104
19105
|
d.observe(h, { characterData: !0 }), o = function() {
|
|
19105
19106
|
h.data = c = ++c % 2;
|
|
19106
19107
|
};
|
|
19107
19108
|
} else if (s.setImmediate || s.MessageChannel === void 0) o = "document" in s && "onreadystatechange" in s.document.createElement("script") ? function() {
|
|
19108
19109
|
var g = s.document.createElement("script");
|
|
19109
19110
|
g.onreadystatechange = function() {
|
|
19110
|
-
|
|
19111
|
+
m(), g.onreadystatechange = null, g.parentNode.removeChild(g), g = null;
|
|
19111
19112
|
}, s.document.documentElement.appendChild(g);
|
|
19112
19113
|
} : function() {
|
|
19113
|
-
setTimeout(
|
|
19114
|
+
setTimeout(m, 0);
|
|
19114
19115
|
};
|
|
19115
19116
|
else {
|
|
19116
|
-
var
|
|
19117
|
-
|
|
19118
|
-
|
|
19117
|
+
var b = new s.MessageChannel();
|
|
19118
|
+
b.port1.onmessage = m, o = function() {
|
|
19119
|
+
b.port2.postMessage(0);
|
|
19119
19120
|
};
|
|
19120
19121
|
}
|
|
19121
19122
|
var f = [];
|
|
19122
|
-
function
|
|
19123
|
+
function m() {
|
|
19123
19124
|
var g, _;
|
|
19124
19125
|
a = !0;
|
|
19125
19126
|
for (var p = f.length; p; ) {
|
|
@@ -19141,33 +19142,33 @@ function B_() {
|
|
|
19141
19142
|
if (typeof p != "function") throw new TypeError("resolver must be a function");
|
|
19142
19143
|
this.state = d, this.queue = [], this.outcome = void 0, p !== o && g(this, p);
|
|
19143
19144
|
}
|
|
19144
|
-
function
|
|
19145
|
-
this.promise = p, typeof y == "function" && (this.onFulfilled = y, this.callFulfilled = this.otherCallFulfilled), typeof
|
|
19145
|
+
function b(p, y, S) {
|
|
19146
|
+
this.promise = p, typeof y == "function" && (this.onFulfilled = y, this.callFulfilled = this.otherCallFulfilled), typeof S == "function" && (this.onRejected = S, this.callRejected = this.otherCallRejected);
|
|
19146
19147
|
}
|
|
19147
|
-
function f(p, y,
|
|
19148
|
+
function f(p, y, S) {
|
|
19148
19149
|
s(function() {
|
|
19149
19150
|
var O;
|
|
19150
19151
|
try {
|
|
19151
|
-
O = y(
|
|
19152
|
+
O = y(S);
|
|
19152
19153
|
} catch (D) {
|
|
19153
19154
|
return a.reject(p, D);
|
|
19154
19155
|
}
|
|
19155
19156
|
O === p ? a.reject(p, new TypeError("Cannot resolve promise with itself")) : a.resolve(p, O);
|
|
19156
19157
|
});
|
|
19157
19158
|
}
|
|
19158
|
-
function
|
|
19159
|
+
function m(p) {
|
|
19159
19160
|
var y = p && p.then;
|
|
19160
19161
|
if (p && (typeof p == "object" || typeof p == "function") && typeof y == "function") return function() {
|
|
19161
19162
|
y.apply(p, arguments);
|
|
19162
19163
|
};
|
|
19163
19164
|
}
|
|
19164
19165
|
function g(p, y) {
|
|
19165
|
-
var
|
|
19166
|
-
function O(
|
|
19167
|
-
|
|
19166
|
+
var S = !1;
|
|
19167
|
+
function O(A) {
|
|
19168
|
+
S || (S = !0, a.reject(p, A));
|
|
19168
19169
|
}
|
|
19169
|
-
function D(
|
|
19170
|
-
|
|
19170
|
+
function D(A) {
|
|
19171
|
+
S || (S = !0, a.resolve(p, A));
|
|
19171
19172
|
}
|
|
19172
19173
|
var B = _(function() {
|
|
19173
19174
|
y(D, O);
|
|
@@ -19175,44 +19176,44 @@ function B_() {
|
|
|
19175
19176
|
B.status === "error" && O(B.value);
|
|
19176
19177
|
}
|
|
19177
19178
|
function _(p, y) {
|
|
19178
|
-
var
|
|
19179
|
+
var S = {};
|
|
19179
19180
|
try {
|
|
19180
|
-
|
|
19181
|
+
S.value = p(y), S.status = "success";
|
|
19181
19182
|
} catch (O) {
|
|
19182
|
-
|
|
19183
|
+
S.status = "error", S.value = O;
|
|
19183
19184
|
}
|
|
19184
|
-
return
|
|
19185
|
+
return S;
|
|
19185
19186
|
}
|
|
19186
19187
|
(r.exports = h).prototype.finally = function(p) {
|
|
19187
19188
|
if (typeof p != "function") return this;
|
|
19188
19189
|
var y = this.constructor;
|
|
19189
|
-
return this.then(function(
|
|
19190
|
+
return this.then(function(S) {
|
|
19190
19191
|
return y.resolve(p()).then(function() {
|
|
19191
|
-
return
|
|
19192
|
+
return S;
|
|
19192
19193
|
});
|
|
19193
|
-
}, function(
|
|
19194
|
+
}, function(S) {
|
|
19194
19195
|
return y.resolve(p()).then(function() {
|
|
19195
|
-
throw
|
|
19196
|
+
throw S;
|
|
19196
19197
|
});
|
|
19197
19198
|
});
|
|
19198
19199
|
}, h.prototype.catch = function(p) {
|
|
19199
19200
|
return this.then(null, p);
|
|
19200
19201
|
}, h.prototype.then = function(p, y) {
|
|
19201
19202
|
if (typeof p != "function" && this.state === c || typeof y != "function" && this.state === u) return this;
|
|
19202
|
-
var
|
|
19203
|
-
return this.state !== d ? f(
|
|
19204
|
-
},
|
|
19203
|
+
var S = new this.constructor(o);
|
|
19204
|
+
return this.state !== d ? f(S, this.state === c ? p : y, this.outcome) : this.queue.push(new b(S, p, y)), S;
|
|
19205
|
+
}, b.prototype.callFulfilled = function(p) {
|
|
19205
19206
|
a.resolve(this.promise, p);
|
|
19206
|
-
},
|
|
19207
|
+
}, b.prototype.otherCallFulfilled = function(p) {
|
|
19207
19208
|
f(this.promise, this.onFulfilled, p);
|
|
19208
|
-
},
|
|
19209
|
+
}, b.prototype.callRejected = function(p) {
|
|
19209
19210
|
a.reject(this.promise, p);
|
|
19210
|
-
},
|
|
19211
|
+
}, b.prototype.otherCallRejected = function(p) {
|
|
19211
19212
|
f(this.promise, this.onRejected, p);
|
|
19212
19213
|
}, a.resolve = function(p, y) {
|
|
19213
|
-
var
|
|
19214
|
-
if (
|
|
19215
|
-
var O =
|
|
19214
|
+
var S = _(m, y);
|
|
19215
|
+
if (S.status === "error") return a.reject(p, S.value);
|
|
19216
|
+
var O = S.value;
|
|
19216
19217
|
if (O) g(p, O);
|
|
19217
19218
|
else {
|
|
19218
19219
|
p.state = c, p.outcome = y;
|
|
@@ -19221,7 +19222,7 @@ function B_() {
|
|
|
19221
19222
|
return p;
|
|
19222
19223
|
}, a.reject = function(p, y) {
|
|
19223
19224
|
p.state = u, p.outcome = y;
|
|
19224
|
-
for (var
|
|
19225
|
+
for (var S = -1, O = p.queue.length; ++S < O; ) p.queue[S].callRejected(y);
|
|
19225
19226
|
return p;
|
|
19226
19227
|
}, h.resolve = function(p) {
|
|
19227
19228
|
return p instanceof this ? p : a.resolve(new this(o), p);
|
|
@@ -19231,62 +19232,62 @@ function B_() {
|
|
|
19231
19232
|
}, h.all = function(p) {
|
|
19232
19233
|
var y = this;
|
|
19233
19234
|
if (Object.prototype.toString.call(p) !== "[object Array]") return this.reject(new TypeError("must be an array"));
|
|
19234
|
-
var
|
|
19235
|
-
if (!
|
|
19236
|
-
for (var D = new Array(
|
|
19235
|
+
var S = p.length, O = !1;
|
|
19236
|
+
if (!S) return this.resolve([]);
|
|
19237
|
+
for (var D = new Array(S), B = 0, A = -1, C = new this(o); ++A < S; ) k(p[A], A);
|
|
19237
19238
|
return C;
|
|
19238
19239
|
function k(P, R) {
|
|
19239
|
-
y.resolve(P).then(function(
|
|
19240
|
-
D[R] =
|
|
19241
|
-
}, function(
|
|
19242
|
-
O || (O = !0, a.reject(C,
|
|
19240
|
+
y.resolve(P).then(function(x) {
|
|
19241
|
+
D[R] = x, ++B !== S || O || (O = !0, a.resolve(C, D));
|
|
19242
|
+
}, function(x) {
|
|
19243
|
+
O || (O = !0, a.reject(C, x));
|
|
19243
19244
|
});
|
|
19244
19245
|
}
|
|
19245
19246
|
}, h.race = function(p) {
|
|
19246
19247
|
var y = this;
|
|
19247
19248
|
if (Object.prototype.toString.call(p) !== "[object Array]") return this.reject(new TypeError("must be an array"));
|
|
19248
|
-
var
|
|
19249
|
-
if (!
|
|
19250
|
-
for (var D = -1, B = new this(o); ++D <
|
|
19249
|
+
var S = p.length, O = !1;
|
|
19250
|
+
if (!S) return this.resolve([]);
|
|
19251
|
+
for (var D = -1, B = new this(o); ++D < S; ) A = p[D], y.resolve(A).then(function(C) {
|
|
19251
19252
|
O || (O = !0, a.resolve(B, C));
|
|
19252
19253
|
}, function(C) {
|
|
19253
19254
|
O || (O = !0, a.reject(B, C));
|
|
19254
19255
|
});
|
|
19255
|
-
var
|
|
19256
|
+
var A;
|
|
19256
19257
|
return B;
|
|
19257
19258
|
};
|
|
19258
19259
|
}, { immediate: 36 }], 38: [function(n, r, i) {
|
|
19259
19260
|
var s = {};
|
|
19260
19261
|
(0, n("./lib/utils/common").assign)(s, n("./lib/deflate"), n("./lib/inflate"), n("./lib/zlib/constants")), r.exports = s;
|
|
19261
19262
|
}, { "./lib/deflate": 39, "./lib/inflate": 40, "./lib/utils/common": 41, "./lib/zlib/constants": 44 }], 39: [function(n, r, i) {
|
|
19262
|
-
var s = n("./zlib/deflate"), o = n("./utils/common"), a = n("./utils/strings"), u = n("./zlib/messages"), c = n("./zlib/zstream"), d = Object.prototype.toString, h = 0,
|
|
19263
|
+
var s = n("./zlib/deflate"), o = n("./utils/common"), a = n("./utils/strings"), u = n("./zlib/messages"), c = n("./zlib/zstream"), d = Object.prototype.toString, h = 0, b = -1, f = 0, m = 8;
|
|
19263
19264
|
function g(p) {
|
|
19264
19265
|
if (!(this instanceof g)) return new g(p);
|
|
19265
|
-
this.options = o.assign({ level:
|
|
19266
|
+
this.options = o.assign({ level: b, method: m, chunkSize: 16384, windowBits: 15, memLevel: 8, strategy: f, to: "" }, p || {});
|
|
19266
19267
|
var y = this.options;
|
|
19267
19268
|
y.raw && 0 < y.windowBits ? y.windowBits = -y.windowBits : y.gzip && 0 < y.windowBits && y.windowBits < 16 && (y.windowBits += 16), this.err = 0, this.msg = "", this.ended = !1, this.chunks = [], this.strm = new c(), this.strm.avail_out = 0;
|
|
19268
|
-
var
|
|
19269
|
-
if (
|
|
19269
|
+
var S = s.deflateInit2(this.strm, y.level, y.method, y.windowBits, y.memLevel, y.strategy);
|
|
19270
|
+
if (S !== h) throw new Error(u[S]);
|
|
19270
19271
|
if (y.header && s.deflateSetHeader(this.strm, y.header), y.dictionary) {
|
|
19271
19272
|
var O;
|
|
19272
|
-
if (O = typeof y.dictionary == "string" ? a.string2buf(y.dictionary) : d.call(y.dictionary) === "[object ArrayBuffer]" ? new Uint8Array(y.dictionary) : y.dictionary, (
|
|
19273
|
+
if (O = typeof y.dictionary == "string" ? a.string2buf(y.dictionary) : d.call(y.dictionary) === "[object ArrayBuffer]" ? new Uint8Array(y.dictionary) : y.dictionary, (S = s.deflateSetDictionary(this.strm, O)) !== h) throw new Error(u[S]);
|
|
19273
19274
|
this._dict_set = !0;
|
|
19274
19275
|
}
|
|
19275
19276
|
}
|
|
19276
19277
|
function _(p, y) {
|
|
19277
|
-
var
|
|
19278
|
-
if (
|
|
19279
|
-
return
|
|
19278
|
+
var S = new g(y);
|
|
19279
|
+
if (S.push(p, !0), S.err) throw S.msg || u[S.err];
|
|
19280
|
+
return S.result;
|
|
19280
19281
|
}
|
|
19281
19282
|
g.prototype.push = function(p, y) {
|
|
19282
|
-
var
|
|
19283
|
+
var S, O, D = this.strm, B = this.options.chunkSize;
|
|
19283
19284
|
if (this.ended) return !1;
|
|
19284
19285
|
O = y === ~~y ? y : y === !0 ? 4 : 0, typeof p == "string" ? D.input = a.string2buf(p) : d.call(p) === "[object ArrayBuffer]" ? D.input = new Uint8Array(p) : D.input = p, D.next_in = 0, D.avail_in = D.input.length;
|
|
19285
19286
|
do {
|
|
19286
|
-
if (D.avail_out === 0 && (D.output = new o.Buf8(B), D.next_out = 0, D.avail_out = B), (
|
|
19287
|
+
if (D.avail_out === 0 && (D.output = new o.Buf8(B), D.next_out = 0, D.avail_out = B), (S = s.deflate(D, O)) !== 1 && S !== h) return this.onEnd(S), !(this.ended = !0);
|
|
19287
19288
|
D.avail_out !== 0 && (D.avail_in !== 0 || O !== 4 && O !== 2) || (this.options.to === "string" ? this.onData(a.buf2binstring(o.shrinkBuf(D.output, D.next_out))) : this.onData(o.shrinkBuf(D.output, D.next_out)));
|
|
19288
|
-
} while ((0 < D.avail_in || D.avail_out === 0) &&
|
|
19289
|
-
return O === 4 ? (
|
|
19289
|
+
} while ((0 < D.avail_in || D.avail_out === 0) && S !== 1);
|
|
19290
|
+
return O === 4 ? (S = s.deflateEnd(this.strm), this.onEnd(S), this.ended = !0, S === h) : O !== 2 || (this.onEnd(h), !(D.avail_out = 0));
|
|
19290
19291
|
}, g.prototype.onData = function(p) {
|
|
19291
19292
|
this.chunks.push(p);
|
|
19292
19293
|
}, g.prototype.onEnd = function(p) {
|
|
@@ -19297,7 +19298,7 @@ function B_() {
|
|
|
19297
19298
|
return (y = y || {}).gzip = !0, _(p, y);
|
|
19298
19299
|
};
|
|
19299
19300
|
}, { "./utils/common": 41, "./utils/strings": 42, "./zlib/deflate": 46, "./zlib/messages": 51, "./zlib/zstream": 53 }], 40: [function(n, r, i) {
|
|
19300
|
-
var s = n("./zlib/inflate"), o = n("./utils/common"), a = n("./utils/strings"), u = n("./zlib/constants"), c = n("./zlib/messages"), d = n("./zlib/zstream"), h = n("./zlib/gzheader"),
|
|
19301
|
+
var s = n("./zlib/inflate"), o = n("./utils/common"), a = n("./utils/strings"), u = n("./zlib/constants"), c = n("./zlib/messages"), d = n("./zlib/zstream"), h = n("./zlib/gzheader"), b = Object.prototype.toString;
|
|
19301
19302
|
function f(g) {
|
|
19302
19303
|
if (!(this instanceof f)) return new f(g);
|
|
19303
19304
|
this.options = o.assign({ chunkSize: 16384, windowBits: 0, to: "" }, g || {});
|
|
@@ -19307,27 +19308,27 @@ function B_() {
|
|
|
19307
19308
|
if (p !== u.Z_OK) throw new Error(c[p]);
|
|
19308
19309
|
this.header = new h(), s.inflateGetHeader(this.strm, this.header);
|
|
19309
19310
|
}
|
|
19310
|
-
function
|
|
19311
|
+
function m(g, _) {
|
|
19311
19312
|
var p = new f(_);
|
|
19312
19313
|
if (p.push(g, !0), p.err) throw p.msg || c[p.err];
|
|
19313
19314
|
return p.result;
|
|
19314
19315
|
}
|
|
19315
19316
|
f.prototype.push = function(g, _) {
|
|
19316
|
-
var p, y,
|
|
19317
|
+
var p, y, S, O, D, B, A = this.strm, C = this.options.chunkSize, k = this.options.dictionary, P = !1;
|
|
19317
19318
|
if (this.ended) return !1;
|
|
19318
|
-
y = _ === ~~_ ? _ : _ === !0 ? u.Z_FINISH : u.Z_NO_FLUSH, typeof g == "string" ?
|
|
19319
|
+
y = _ === ~~_ ? _ : _ === !0 ? u.Z_FINISH : u.Z_NO_FLUSH, typeof g == "string" ? A.input = a.binstring2buf(g) : b.call(g) === "[object ArrayBuffer]" ? A.input = new Uint8Array(g) : A.input = g, A.next_in = 0, A.avail_in = A.input.length;
|
|
19319
19320
|
do {
|
|
19320
|
-
if (
|
|
19321
|
-
|
|
19322
|
-
} while ((0 <
|
|
19323
|
-
return p === u.Z_STREAM_END && (y = u.Z_FINISH), y === u.Z_FINISH ? (p = s.inflateEnd(this.strm), this.onEnd(p), this.ended = !0, p === u.Z_OK) : y !== u.Z_SYNC_FLUSH || (this.onEnd(u.Z_OK), !(
|
|
19321
|
+
if (A.avail_out === 0 && (A.output = new o.Buf8(C), A.next_out = 0, A.avail_out = C), (p = s.inflate(A, u.Z_NO_FLUSH)) === u.Z_NEED_DICT && k && (B = typeof k == "string" ? a.string2buf(k) : b.call(k) === "[object ArrayBuffer]" ? new Uint8Array(k) : k, p = s.inflateSetDictionary(this.strm, B)), p === u.Z_BUF_ERROR && P === !0 && (p = u.Z_OK, P = !1), p !== u.Z_STREAM_END && p !== u.Z_OK) return this.onEnd(p), !(this.ended = !0);
|
|
19322
|
+
A.next_out && (A.avail_out !== 0 && p !== u.Z_STREAM_END && (A.avail_in !== 0 || y !== u.Z_FINISH && y !== u.Z_SYNC_FLUSH) || (this.options.to === "string" ? (S = a.utf8border(A.output, A.next_out), O = A.next_out - S, D = a.buf2string(A.output, S), A.next_out = O, A.avail_out = C - O, O && o.arraySet(A.output, A.output, S, O, 0), this.onData(D)) : this.onData(o.shrinkBuf(A.output, A.next_out)))), A.avail_in === 0 && A.avail_out === 0 && (P = !0);
|
|
19323
|
+
} while ((0 < A.avail_in || A.avail_out === 0) && p !== u.Z_STREAM_END);
|
|
19324
|
+
return p === u.Z_STREAM_END && (y = u.Z_FINISH), y === u.Z_FINISH ? (p = s.inflateEnd(this.strm), this.onEnd(p), this.ended = !0, p === u.Z_OK) : y !== u.Z_SYNC_FLUSH || (this.onEnd(u.Z_OK), !(A.avail_out = 0));
|
|
19324
19325
|
}, f.prototype.onData = function(g) {
|
|
19325
19326
|
this.chunks.push(g);
|
|
19326
19327
|
}, f.prototype.onEnd = function(g) {
|
|
19327
19328
|
g === u.Z_OK && (this.options.to === "string" ? this.result = this.chunks.join("") : this.result = o.flattenChunks(this.chunks)), this.chunks = [], this.err = g, this.msg = this.strm.msg;
|
|
19328
|
-
}, i.Inflate = f, i.inflate =
|
|
19329
|
-
return (_ = _ || {}).raw = !0,
|
|
19330
|
-
}, i.ungzip =
|
|
19329
|
+
}, i.Inflate = f, i.inflate = m, i.inflateRaw = function(g, _) {
|
|
19330
|
+
return (_ = _ || {}).raw = !0, m(g, _);
|
|
19331
|
+
}, i.ungzip = m;
|
|
19331
19332
|
}, { "./utils/common": 41, "./utils/strings": 42, "./zlib/constants": 44, "./zlib/gzheader": 47, "./zlib/inflate": 49, "./zlib/messages": 51, "./zlib/zstream": 53 }], 41: [function(n, r, i) {
|
|
19332
19333
|
var s = typeof Uint8Array < "u" && typeof Uint16Array < "u" && typeof Int32Array < "u";
|
|
19333
19334
|
i.assign = function(u) {
|
|
@@ -19342,16 +19343,16 @@ function B_() {
|
|
|
19342
19343
|
}, i.shrinkBuf = function(u, c) {
|
|
19343
19344
|
return u.length === c ? u : u.subarray ? u.subarray(0, c) : (u.length = c, u);
|
|
19344
19345
|
};
|
|
19345
|
-
var o = { arraySet: function(u, c, d, h,
|
|
19346
|
-
if (c.subarray && u.subarray) u.set(c.subarray(d, d + h),
|
|
19347
|
-
else for (var f = 0; f < h; f++) u[
|
|
19346
|
+
var o = { arraySet: function(u, c, d, h, b) {
|
|
19347
|
+
if (c.subarray && u.subarray) u.set(c.subarray(d, d + h), b);
|
|
19348
|
+
else for (var f = 0; f < h; f++) u[b + f] = c[d + f];
|
|
19348
19349
|
}, flattenChunks: function(u) {
|
|
19349
|
-
var c, d, h,
|
|
19350
|
+
var c, d, h, b, f, m;
|
|
19350
19351
|
for (c = h = 0, d = u.length; c < d; c++) h += u[c].length;
|
|
19351
|
-
for (
|
|
19352
|
-
return
|
|
19353
|
-
} }, a = { arraySet: function(u, c, d, h,
|
|
19354
|
-
for (var f = 0; f < h; f++) u[
|
|
19352
|
+
for (m = new Uint8Array(h), c = b = 0, d = u.length; c < d; c++) f = u[c], m.set(f, b), b += f.length;
|
|
19353
|
+
return m;
|
|
19354
|
+
} }, a = { arraySet: function(u, c, d, h, b) {
|
|
19355
|
+
for (var f = 0; f < h; f++) u[b + f] = c[d + f];
|
|
19355
19356
|
}, flattenChunks: function(u) {
|
|
19356
19357
|
return [].concat.apply([], u);
|
|
19357
19358
|
} };
|
|
@@ -19371,34 +19372,34 @@ function B_() {
|
|
|
19371
19372
|
a = !1;
|
|
19372
19373
|
}
|
|
19373
19374
|
for (var u = new s.Buf8(256), c = 0; c < 256; c++) u[c] = 252 <= c ? 6 : 248 <= c ? 5 : 240 <= c ? 4 : 224 <= c ? 3 : 192 <= c ? 2 : 1;
|
|
19374
|
-
function d(h,
|
|
19375
|
-
if (
|
|
19376
|
-
for (var f = "",
|
|
19375
|
+
function d(h, b) {
|
|
19376
|
+
if (b < 65537 && (h.subarray && a || !h.subarray && o)) return String.fromCharCode.apply(null, s.shrinkBuf(h, b));
|
|
19377
|
+
for (var f = "", m = 0; m < b; m++) f += String.fromCharCode(h[m]);
|
|
19377
19378
|
return f;
|
|
19378
19379
|
}
|
|
19379
19380
|
u[254] = u[254] = 1, i.string2buf = function(h) {
|
|
19380
|
-
var
|
|
19381
|
-
for (g = 0; g < p; g++) (64512 & (f = h.charCodeAt(g))) == 55296 && g + 1 < p && (64512 & (
|
|
19382
|
-
for (
|
|
19383
|
-
return
|
|
19381
|
+
var b, f, m, g, _, p = h.length, y = 0;
|
|
19382
|
+
for (g = 0; g < p; g++) (64512 & (f = h.charCodeAt(g))) == 55296 && g + 1 < p && (64512 & (m = h.charCodeAt(g + 1))) == 56320 && (f = 65536 + (f - 55296 << 10) + (m - 56320), g++), y += f < 128 ? 1 : f < 2048 ? 2 : f < 65536 ? 3 : 4;
|
|
19383
|
+
for (b = new s.Buf8(y), g = _ = 0; _ < y; g++) (64512 & (f = h.charCodeAt(g))) == 55296 && g + 1 < p && (64512 & (m = h.charCodeAt(g + 1))) == 56320 && (f = 65536 + (f - 55296 << 10) + (m - 56320), g++), f < 128 ? b[_++] = f : (f < 2048 ? b[_++] = 192 | f >>> 6 : (f < 65536 ? b[_++] = 224 | f >>> 12 : (b[_++] = 240 | f >>> 18, b[_++] = 128 | f >>> 12 & 63), b[_++] = 128 | f >>> 6 & 63), b[_++] = 128 | 63 & f);
|
|
19384
|
+
return b;
|
|
19384
19385
|
}, i.buf2binstring = function(h) {
|
|
19385
19386
|
return d(h, h.length);
|
|
19386
19387
|
}, i.binstring2buf = function(h) {
|
|
19387
|
-
for (var
|
|
19388
|
-
return
|
|
19389
|
-
}, i.buf2string = function(h,
|
|
19390
|
-
var f,
|
|
19391
|
-
for (f =
|
|
19392
|
-
else if (4 < (_ = u[g])) y[
|
|
19388
|
+
for (var b = new s.Buf8(h.length), f = 0, m = b.length; f < m; f++) b[f] = h.charCodeAt(f);
|
|
19389
|
+
return b;
|
|
19390
|
+
}, i.buf2string = function(h, b) {
|
|
19391
|
+
var f, m, g, _, p = b || h.length, y = new Array(2 * p);
|
|
19392
|
+
for (f = m = 0; f < p; ) if ((g = h[f++]) < 128) y[m++] = g;
|
|
19393
|
+
else if (4 < (_ = u[g])) y[m++] = 65533, f += _ - 1;
|
|
19393
19394
|
else {
|
|
19394
19395
|
for (g &= _ === 2 ? 31 : _ === 3 ? 15 : 7; 1 < _ && f < p; ) g = g << 6 | 63 & h[f++], _--;
|
|
19395
|
-
1 < _ ? y[
|
|
19396
|
+
1 < _ ? y[m++] = 65533 : g < 65536 ? y[m++] = g : (g -= 65536, y[m++] = 55296 | g >> 10 & 1023, y[m++] = 56320 | 1023 & g);
|
|
19396
19397
|
}
|
|
19397
|
-
return d(y,
|
|
19398
|
-
}, i.utf8border = function(h,
|
|
19398
|
+
return d(y, m);
|
|
19399
|
+
}, i.utf8border = function(h, b) {
|
|
19399
19400
|
var f;
|
|
19400
|
-
for ((
|
|
19401
|
-
return f < 0 || f === 0 ?
|
|
19401
|
+
for ((b = b || h.length) > h.length && (b = h.length), f = b - 1; 0 <= f && (192 & h[f]) == 128; ) f--;
|
|
19402
|
+
return f < 0 || f === 0 ? b : f + u[h[f]] > b ? f : b;
|
|
19402
19403
|
};
|
|
19403
19404
|
}, { "./common": 41 }], 43: [function(n, r, i) {
|
|
19404
19405
|
r.exports = function(s, o, a, u) {
|
|
@@ -19422,11 +19423,11 @@ function B_() {
|
|
|
19422
19423
|
r.exports = function(o, a, u, c) {
|
|
19423
19424
|
var d = s, h = c + u;
|
|
19424
19425
|
o ^= -1;
|
|
19425
|
-
for (var
|
|
19426
|
+
for (var b = c; b < h; b++) o = o >>> 8 ^ d[255 & (o ^ a[b])];
|
|
19426
19427
|
return -1 ^ o;
|
|
19427
19428
|
};
|
|
19428
19429
|
}, {}], 46: [function(n, r, i) {
|
|
19429
|
-
var s, o = n("../utils/common"), a = n("./trees"), u = n("./adler32"), c = n("./crc32"), d = n("./messages"), h = 0,
|
|
19430
|
+
var s, o = n("../utils/common"), a = n("./trees"), u = n("./adler32"), c = n("./crc32"), d = n("./messages"), h = 0, b = 4, f = 0, m = -2, g = -1, _ = 4, p = 2, y = 8, S = 9, O = 286, D = 30, B = 19, A = 2 * O + 1, C = 15, k = 3, P = 258, R = P + k + 1, x = 42, M = 113, T = 1, U = 2, W = 3, G = 4;
|
|
19430
19431
|
function se(E, V) {
|
|
19431
19432
|
return E.msg = d[V], V;
|
|
19432
19433
|
}
|
|
@@ -19491,7 +19492,7 @@ function B_() {
|
|
|
19491
19492
|
else v = a._tr_tally(E, 0, E.window[E.strstart]), E.lookahead--, E.strstart++;
|
|
19492
19493
|
if (v && ($(E, !1), E.strm.avail_out === 0)) return T;
|
|
19493
19494
|
}
|
|
19494
|
-
return E.insert = E.strstart < k - 1 ? E.strstart : k - 1, V ===
|
|
19495
|
+
return E.insert = E.strstart < k - 1 ? E.strstart : k - 1, V === b ? ($(E, !0), E.strm.avail_out === 0 ? W : G) : E.last_lit && ($(E, !1), E.strm.avail_out === 0) ? T : U;
|
|
19495
19496
|
}
|
|
19496
19497
|
function be(E, V) {
|
|
19497
19498
|
for (var Y, v, I; ; ) {
|
|
@@ -19506,17 +19507,17 @@ function B_() {
|
|
|
19506
19507
|
if ((v = a._tr_tally(E, 0, E.window[E.strstart - 1])) && $(E, !1), E.strstart++, E.lookahead--, E.strm.avail_out === 0) return T;
|
|
19507
19508
|
} else E.match_available = 1, E.strstart++, E.lookahead--;
|
|
19508
19509
|
}
|
|
19509
|
-
return E.match_available && (v = a._tr_tally(E, 0, E.window[E.strstart - 1]), E.match_available = 0), E.insert = E.strstart < k - 1 ? E.strstart : k - 1, V ===
|
|
19510
|
+
return E.match_available && (v = a._tr_tally(E, 0, E.window[E.strstart - 1]), E.match_available = 0), E.insert = E.strstart < k - 1 ? E.strstart : k - 1, V === b ? ($(E, !0), E.strm.avail_out === 0 ? W : G) : E.last_lit && ($(E, !1), E.strm.avail_out === 0) ? T : U;
|
|
19510
19511
|
}
|
|
19511
19512
|
function ke(E, V, Y, v, I) {
|
|
19512
19513
|
this.good_length = E, this.max_lazy = V, this.nice_length = Y, this.max_chain = v, this.func = I;
|
|
19513
19514
|
}
|
|
19514
19515
|
function Fe() {
|
|
19515
|
-
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 = y, 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 *
|
|
19516
|
+
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 = y, 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 * A), this.dyn_dtree = new o.Buf16(2 * (2 * D + 1)), this.bl_tree = new o.Buf16(2 * (2 * B + 1)), ce(this.dyn_ltree), ce(this.dyn_dtree), ce(this.bl_tree), this.l_desc = null, this.d_desc = null, this.bl_desc = null, this.bl_count = new o.Buf16(C + 1), this.heap = new o.Buf16(2 * O + 1), ce(this.heap), this.heap_len = 0, this.heap_max = 0, this.depth = new o.Buf16(2 * O + 1), ce(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;
|
|
19516
19517
|
}
|
|
19517
19518
|
function Re(E) {
|
|
19518
19519
|
var V;
|
|
19519
|
-
return E && E.state ? (E.total_in = E.total_out = 0, E.data_type = p, (V = E.state).pending = 0, V.pending_out = 0, V.wrap < 0 && (V.wrap = -V.wrap), V.status = V.wrap ?
|
|
19520
|
+
return E && E.state ? (E.total_in = E.total_out = 0, E.data_type = p, (V = E.state).pending = 0, V.pending_out = 0, V.wrap < 0 && (V.wrap = -V.wrap), V.status = V.wrap ? x : M, E.adler = V.wrap === 2 ? 0 : 1, V.last_flush = h, a._tr_init(V), f) : se(E, m);
|
|
19520
19521
|
}
|
|
19521
19522
|
function kt(E) {
|
|
19522
19523
|
var V = Re(E);
|
|
@@ -19525,9 +19526,9 @@ function B_() {
|
|
|
19525
19526
|
})(E.state), V;
|
|
19526
19527
|
}
|
|
19527
19528
|
function ft(E, V, Y, v, I, F) {
|
|
19528
|
-
if (!E) return
|
|
19529
|
+
if (!E) return m;
|
|
19529
19530
|
var K = 1;
|
|
19530
|
-
if (V === g && (V = 6), v < 0 ? (K = 0, v = -v) : 15 < v && (K = 2, v -= 16), I < 1 ||
|
|
19531
|
+
if (V === g && (V = 6), v < 0 ? (K = 0, v = -v) : 15 < v && (K = 2, v -= 16), I < 1 || S < I || Y !== y || v < 8 || 15 < v || V < 0 || 9 < V || F < 0 || _ < F) return se(E, m);
|
|
19531
19532
|
v === 8 && (v = 9);
|
|
19532
19533
|
var Q = new Fe();
|
|
19533
19534
|
return (E.state = Q).strm = E, Q.wrap = K, Q.gzhead = null, Q.w_bits = v, Q.w_size = 1 << Q.w_bits, Q.w_mask = Q.w_size - 1, Q.hash_bits = I + 7, Q.hash_size = 1 << Q.hash_bits, Q.hash_mask = Q.hash_size - 1, Q.hash_shift = ~~((Q.hash_bits + k - 1) / k), Q.window = new o.Buf8(2 * Q.w_size), Q.head = new o.Buf16(Q.hash_size), Q.prev = new o.Buf16(Q.w_size), Q.lit_bufsize = 1 << I + 6, Q.pending_buf_size = 4 * Q.lit_bufsize, Q.pending_buf = new o.Buf8(Q.pending_buf_size), Q.d_buf = 1 * Q.lit_bufsize, Q.l_buf = 3 * Q.lit_bufsize, Q.level = V, Q.strategy = F, Q.method = Y, kt(E);
|
|
@@ -19543,16 +19544,16 @@ function B_() {
|
|
|
19543
19544
|
var v = E.block_start + Y;
|
|
19544
19545
|
if ((E.strstart === 0 || E.strstart >= v) && (E.lookahead = E.strstart - v, E.strstart = v, $(E, !1), E.strm.avail_out === 0) || E.strstart - E.block_start >= E.w_size - R && ($(E, !1), E.strm.avail_out === 0)) return T;
|
|
19545
19546
|
}
|
|
19546
|
-
return E.insert = 0, V ===
|
|
19547
|
+
return E.insert = 0, V === b ? ($(E, !0), E.strm.avail_out === 0 ? W : G) : (E.strstart > E.block_start && ($(E, !1), E.strm.avail_out), T);
|
|
19547
19548
|
}), new ke(4, 4, 8, 4, Ye), new ke(4, 5, 16, 8, Ye), new ke(4, 6, 32, 32, Ye), new ke(4, 4, 16, 16, be), new ke(8, 16, 32, 32, be), new ke(8, 16, 128, 128, be), new ke(8, 32, 128, 256, be), new ke(32, 128, 258, 1024, be), new ke(32, 258, 258, 4096, be)], i.deflateInit = function(E, V) {
|
|
19548
19549
|
return ft(E, V, y, 15, 8, 0);
|
|
19549
19550
|
}, i.deflateInit2 = ft, i.deflateReset = kt, i.deflateResetKeep = Re, i.deflateSetHeader = function(E, V) {
|
|
19550
|
-
return E && E.state ? E.state.wrap !== 2 ?
|
|
19551
|
+
return E && E.state ? E.state.wrap !== 2 ? m : (E.state.gzhead = V, f) : m;
|
|
19551
19552
|
}, i.deflate = function(E, V) {
|
|
19552
19553
|
var Y, v, I, F;
|
|
19553
|
-
if (!E || !E.state || 5 < V || V < 0) return E ? se(E,
|
|
19554
|
-
if (v = E.state, !E.output || !E.input && E.avail_in !== 0 || v.status === 666 && V !==
|
|
19555
|
-
if (v.strm = E, Y = v.last_flush, v.last_flush = V, v.status ===
|
|
19554
|
+
if (!E || !E.state || 5 < V || V < 0) return E ? se(E, m) : m;
|
|
19555
|
+
if (v = E.state, !E.output || !E.input && E.avail_in !== 0 || v.status === 666 && V !== b) return se(E, E.avail_out === 0 ? -5 : m);
|
|
19556
|
+
if (v.strm = E, Y = v.last_flush, v.last_flush = V, v.status === x) if (v.wrap === 2) E.adler = 0, oe(v, 31), oe(v, 139), oe(v, 8), v.gzhead ? (oe(v, (v.gzhead.text ? 1 : 0) + (v.gzhead.hcrc ? 2 : 0) + (v.gzhead.extra ? 4 : 0) + (v.gzhead.name ? 8 : 0) + (v.gzhead.comment ? 16 : 0)), oe(v, 255 & v.gzhead.time), oe(v, v.gzhead.time >> 8 & 255), oe(v, v.gzhead.time >> 16 & 255), oe(v, v.gzhead.time >> 24 & 255), oe(v, v.level === 9 ? 2 : 2 <= v.strategy || v.level < 2 ? 4 : 0), oe(v, 255 & v.gzhead.os), v.gzhead.extra && v.gzhead.extra.length && (oe(v, 255 & v.gzhead.extra.length), oe(v, v.gzhead.extra.length >> 8 & 255)), v.gzhead.hcrc && (E.adler = c(E.adler, v.pending_buf, v.pending, 0)), v.gzindex = 0, v.status = 69) : (oe(v, 0), oe(v, 0), oe(v, 0), oe(v, 0), oe(v, 0), oe(v, v.level === 9 ? 2 : 2 <= v.strategy || v.level < 2 ? 4 : 0), oe(v, 3), v.status = M);
|
|
19556
19557
|
else {
|
|
19557
19558
|
var K = y + (v.w_bits - 8 << 4) << 8;
|
|
19558
19559
|
K |= (2 <= v.strategy || v.level < 2 ? 0 : v.level < 6 ? 1 : v.level === 6 ? 2 : 3) << 6, v.strstart !== 0 && (K |= 32), K += 31 - K % 31, v.status = M, ae(v, K), v.strstart !== 0 && (ae(v, E.adler >>> 16), ae(v, 65535 & E.adler)), E.adler = 1;
|
|
@@ -19585,7 +19586,7 @@ function B_() {
|
|
|
19585
19586
|
} else v.status = 103;
|
|
19586
19587
|
if (v.status === 103 && (v.gzhead.hcrc ? (v.pending + 2 > v.pending_buf_size && j(E), v.pending + 2 <= v.pending_buf_size && (oe(v, 255 & E.adler), oe(v, E.adler >> 8 & 255), E.adler = 0, v.status = M)) : v.status = M), v.pending !== 0) {
|
|
19587
19588
|
if (j(E), E.avail_out === 0) return v.last_flush = -1, f;
|
|
19588
|
-
} else if (E.avail_in === 0 && Z(V) <= Z(Y) && V !==
|
|
19589
|
+
} else if (E.avail_in === 0 && Z(V) <= Z(Y) && V !== b) return se(E, -5);
|
|
19589
19590
|
if (v.status === 666 && E.avail_in !== 0) return se(E, -5);
|
|
19590
19591
|
if (E.avail_in !== 0 || v.lookahead !== 0 || V !== h && v.status !== 666) {
|
|
19591
19592
|
var Q = v.strategy === 2 ? (function(z, te) {
|
|
@@ -19596,7 +19597,7 @@ function B_() {
|
|
|
19596
19597
|
}
|
|
19597
19598
|
if (z.match_length = 0, ue = a._tr_tally(z, 0, z.window[z.strstart]), z.lookahead--, z.strstart++, ue && ($(z, !1), z.strm.avail_out === 0)) return T;
|
|
19598
19599
|
}
|
|
19599
|
-
return z.insert = 0, te ===
|
|
19600
|
+
return z.insert = 0, te === b ? ($(z, !0), z.strm.avail_out === 0 ? W : G) : z.last_lit && ($(z, !1), z.strm.avail_out === 0) ? T : U;
|
|
19600
19601
|
})(v, V) : v.strategy === 3 ? (function(z, te) {
|
|
19601
19602
|
for (var ue, re, le, Ae, Ee = z.window; ; ) {
|
|
19602
19603
|
if (z.lookahead <= P) {
|
|
@@ -19612,18 +19613,18 @@ function B_() {
|
|
|
19612
19613
|
}
|
|
19613
19614
|
if (z.match_length >= k ? (ue = a._tr_tally(z, 1, z.match_length - k), z.lookahead -= z.match_length, z.strstart += z.match_length, z.match_length = 0) : (ue = a._tr_tally(z, 0, z.window[z.strstart]), z.lookahead--, z.strstart++), ue && ($(z, !1), z.strm.avail_out === 0)) return T;
|
|
19614
19615
|
}
|
|
19615
|
-
return z.insert = 0, te ===
|
|
19616
|
+
return z.insert = 0, te === b ? ($(z, !0), z.strm.avail_out === 0 ? W : G) : z.last_lit && ($(z, !1), z.strm.avail_out === 0) ? T : U;
|
|
19616
19617
|
})(v, V) : s[v.level].func(v, V);
|
|
19617
19618
|
if (Q !== W && Q !== G || (v.status = 666), Q === T || Q === W) return E.avail_out === 0 && (v.last_flush = -1), f;
|
|
19618
19619
|
if (Q === U && (V === 1 ? a._tr_align(v) : V !== 5 && (a._tr_stored_block(v, 0, 0, !1), V === 3 && (ce(v.head), v.lookahead === 0 && (v.strstart = 0, v.block_start = 0, v.insert = 0))), j(E), E.avail_out === 0)) return v.last_flush = -1, f;
|
|
19619
19620
|
}
|
|
19620
|
-
return V !==
|
|
19621
|
+
return V !== b ? f : v.wrap <= 0 ? 1 : (v.wrap === 2 ? (oe(v, 255 & E.adler), oe(v, E.adler >> 8 & 255), oe(v, E.adler >> 16 & 255), oe(v, E.adler >> 24 & 255), oe(v, 255 & E.total_in), oe(v, E.total_in >> 8 & 255), oe(v, E.total_in >> 16 & 255), oe(v, E.total_in >> 24 & 255)) : (ae(v, E.adler >>> 16), ae(v, 65535 & E.adler)), j(E), 0 < v.wrap && (v.wrap = -v.wrap), v.pending !== 0 ? f : 1);
|
|
19621
19622
|
}, i.deflateEnd = function(E) {
|
|
19622
19623
|
var V;
|
|
19623
|
-
return E && E.state ? (V = E.state.status) !==
|
|
19624
|
+
return E && E.state ? (V = E.state.status) !== x && V !== 69 && V !== 73 && V !== 91 && V !== 103 && V !== M && V !== 666 ? se(E, m) : (E.state = null, V === M ? se(E, -3) : f) : m;
|
|
19624
19625
|
}, i.deflateSetDictionary = function(E, V) {
|
|
19625
19626
|
var Y, v, I, F, K, Q, z, te, ue = V.length;
|
|
19626
|
-
if (!E || !E.state || (F = (Y = E.state).wrap) === 2 || F === 1 && Y.status !==
|
|
19627
|
+
if (!E || !E.state || (F = (Y = E.state).wrap) === 2 || F === 1 && Y.status !== x || Y.lookahead) return m;
|
|
19627
19628
|
for (F === 1 && (E.adler = u(E.adler, V, ue, 0)), Y.wrap = 0, ue >= Y.w_size && (F === 0 && (ce(Y.head), Y.strstart = 0, Y.block_start = 0, Y.insert = 0), te = new o.Buf8(Y.w_size), o.arraySet(te, V, ue - Y.w_size, Y.w_size, 0), V = te, ue = Y.w_size), K = E.avail_in, Q = E.next_in, z = E.input, E.avail_in = ue, E.next_in = 0, E.input = V, Le(Y); Y.lookahead >= k; ) {
|
|
19628
19629
|
for (v = Y.strstart, I = Y.lookahead - (k - 1); Y.ins_h = (Y.ins_h << Y.hash_shift ^ Y.window[v + k - 1]) & Y.hash_mask, Y.prev[v & Y.w_mask] = Y.head[Y.ins_h], Y.head[Y.ins_h] = v, v++, --I; ) ;
|
|
19629
19630
|
Y.strstart = v, Y.lookahead = k - 1, Le(Y);
|
|
@@ -19636,12 +19637,12 @@ function B_() {
|
|
|
19636
19637
|
};
|
|
19637
19638
|
}, {}], 48: [function(n, r, i) {
|
|
19638
19639
|
r.exports = function(s, o) {
|
|
19639
|
-
var a, u, c, d, h,
|
|
19640
|
-
a = s.state, u = s.next_in, T = s.input, c = u + (s.avail_in - 5), d = s.next_out, U = s.output, h = d - (o - s.avail_out),
|
|
19640
|
+
var a, u, c, d, h, b, f, m, g, _, p, y, S, O, D, B, A, C, k, P, R, x, M, T, U;
|
|
19641
|
+
a = s.state, u = s.next_in, T = s.input, c = u + (s.avail_in - 5), d = s.next_out, U = s.output, h = d - (o - s.avail_out), b = d + (s.avail_out - 257), f = a.dmax, m = a.wsize, g = a.whave, _ = a.wnext, p = a.window, y = a.hold, S = a.bits, O = a.lencode, D = a.distcode, B = (1 << a.lenbits) - 1, A = (1 << a.distbits) - 1;
|
|
19641
19642
|
e: do {
|
|
19642
|
-
|
|
19643
|
+
S < 15 && (y += T[u++] << S, S += 8, y += T[u++] << S, S += 8), C = O[y & B];
|
|
19643
19644
|
t: for (; ; ) {
|
|
19644
|
-
if (y >>>= k = C >>> 24,
|
|
19645
|
+
if (y >>>= k = C >>> 24, S -= k, (k = C >>> 16 & 255) === 0) U[d++] = 65535 & C;
|
|
19645
19646
|
else {
|
|
19646
19647
|
if (!(16 & k)) {
|
|
19647
19648
|
if ((64 & k) == 0) {
|
|
@@ -19655,9 +19656,9 @@ function B_() {
|
|
|
19655
19656
|
s.msg = "invalid literal/length code", a.mode = 30;
|
|
19656
19657
|
break e;
|
|
19657
19658
|
}
|
|
19658
|
-
P = 65535 & C, (k &= 15) && (
|
|
19659
|
+
P = 65535 & C, (k &= 15) && (S < k && (y += T[u++] << S, S += 8), P += y & (1 << k) - 1, y >>>= k, S -= k), S < 15 && (y += T[u++] << S, S += 8, y += T[u++] << S, S += 8), C = D[y & A];
|
|
19659
19660
|
n: for (; ; ) {
|
|
19660
|
-
if (y >>>= k = C >>> 24,
|
|
19661
|
+
if (y >>>= k = C >>> 24, S -= k, !(16 & (k = C >>> 16 & 255))) {
|
|
19661
19662
|
if ((64 & k) == 0) {
|
|
19662
19663
|
C = D[(65535 & C) + (y & (1 << k) - 1)];
|
|
19663
19664
|
continue n;
|
|
@@ -19665,95 +19666,95 @@ function B_() {
|
|
|
19665
19666
|
s.msg = "invalid distance code", a.mode = 30;
|
|
19666
19667
|
break e;
|
|
19667
19668
|
}
|
|
19668
|
-
if (R = 65535 & C,
|
|
19669
|
+
if (R = 65535 & C, S < (k &= 15) && (y += T[u++] << S, (S += 8) < k && (y += T[u++] << S, S += 8)), f < (R += y & (1 << k) - 1)) {
|
|
19669
19670
|
s.msg = "invalid distance too far back", a.mode = 30;
|
|
19670
19671
|
break e;
|
|
19671
19672
|
}
|
|
19672
|
-
if (y >>>= k,
|
|
19673
|
+
if (y >>>= k, S -= k, (k = d - h) < R) {
|
|
19673
19674
|
if (g < (k = R - k) && a.sane) {
|
|
19674
19675
|
s.msg = "invalid distance too far back", a.mode = 30;
|
|
19675
19676
|
break e;
|
|
19676
19677
|
}
|
|
19677
|
-
if (M = p, (
|
|
19678
|
-
if (
|
|
19679
|
-
for (P -= k; U[d++] = p[
|
|
19680
|
-
|
|
19678
|
+
if (M = p, (x = 0) === _) {
|
|
19679
|
+
if (x += m - k, k < P) {
|
|
19680
|
+
for (P -= k; U[d++] = p[x++], --k; ) ;
|
|
19681
|
+
x = d - R, M = U;
|
|
19681
19682
|
}
|
|
19682
19683
|
} else if (_ < k) {
|
|
19683
|
-
if (
|
|
19684
|
-
for (P -= k; U[d++] = p[
|
|
19685
|
-
if (
|
|
19686
|
-
for (P -= k = _; U[d++] = p[
|
|
19687
|
-
|
|
19684
|
+
if (x += m + _ - k, (k -= _) < P) {
|
|
19685
|
+
for (P -= k; U[d++] = p[x++], --k; ) ;
|
|
19686
|
+
if (x = 0, _ < P) {
|
|
19687
|
+
for (P -= k = _; U[d++] = p[x++], --k; ) ;
|
|
19688
|
+
x = d - R, M = U;
|
|
19688
19689
|
}
|
|
19689
19690
|
}
|
|
19690
|
-
} else if (
|
|
19691
|
-
for (P -= k; U[d++] = p[
|
|
19692
|
-
|
|
19691
|
+
} else if (x += _ - k, k < P) {
|
|
19692
|
+
for (P -= k; U[d++] = p[x++], --k; ) ;
|
|
19693
|
+
x = d - R, M = U;
|
|
19693
19694
|
}
|
|
19694
|
-
for (; 2 < P; ) U[d++] = M[
|
|
19695
|
-
P && (U[d++] = M[
|
|
19695
|
+
for (; 2 < P; ) U[d++] = M[x++], U[d++] = M[x++], U[d++] = M[x++], P -= 3;
|
|
19696
|
+
P && (U[d++] = M[x++], 1 < P && (U[d++] = M[x++]));
|
|
19696
19697
|
} else {
|
|
19697
|
-
for (
|
|
19698
|
-
P && (U[d++] = U[
|
|
19698
|
+
for (x = d - R; U[d++] = U[x++], U[d++] = U[x++], U[d++] = U[x++], 2 < (P -= 3); ) ;
|
|
19699
|
+
P && (U[d++] = U[x++], 1 < P && (U[d++] = U[x++]));
|
|
19699
19700
|
}
|
|
19700
19701
|
break;
|
|
19701
19702
|
}
|
|
19702
19703
|
}
|
|
19703
19704
|
break;
|
|
19704
19705
|
}
|
|
19705
|
-
} while (u < c && d <
|
|
19706
|
-
u -= P =
|
|
19706
|
+
} while (u < c && d < b);
|
|
19707
|
+
u -= P = S >> 3, y &= (1 << (S -= P << 3)) - 1, s.next_in = u, s.next_out = d, s.avail_in = u < c ? c - u + 5 : 5 - (u - c), s.avail_out = d < b ? b - d + 257 : 257 - (d - b), a.hold = y, a.bits = S;
|
|
19707
19708
|
};
|
|
19708
19709
|
}, {}], 49: [function(n, r, i) {
|
|
19709
|
-
var s = n("../utils/common"), o = n("./adler32"), a = n("./crc32"), u = n("./inffast"), c = n("./inftrees"), d = 1, h = 2,
|
|
19710
|
-
function p(
|
|
19711
|
-
return (
|
|
19710
|
+
var s = n("../utils/common"), o = n("./adler32"), a = n("./crc32"), u = n("./inffast"), c = n("./inftrees"), d = 1, h = 2, b = 0, f = -2, m = 1, g = 852, _ = 592;
|
|
19711
|
+
function p(x) {
|
|
19712
|
+
return (x >>> 24 & 255) + (x >>> 8 & 65280) + ((65280 & x) << 8) + ((255 & x) << 24);
|
|
19712
19713
|
}
|
|
19713
19714
|
function y() {
|
|
19714
19715
|
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;
|
|
19715
19716
|
}
|
|
19716
|
-
function
|
|
19717
|
+
function S(x) {
|
|
19717
19718
|
var M;
|
|
19718
|
-
return
|
|
19719
|
+
return x && x.state ? (M = x.state, x.total_in = x.total_out = M.total = 0, x.msg = "", M.wrap && (x.adler = 1 & M.wrap), M.mode = m, M.last = 0, M.havedict = 0, M.dmax = 32768, M.head = null, M.hold = 0, M.bits = 0, M.lencode = M.lendyn = new s.Buf32(g), M.distcode = M.distdyn = new s.Buf32(_), M.sane = 1, M.back = -1, b) : f;
|
|
19719
19720
|
}
|
|
19720
|
-
function O(
|
|
19721
|
+
function O(x) {
|
|
19721
19722
|
var M;
|
|
19722
|
-
return
|
|
19723
|
+
return x && x.state ? ((M = x.state).wsize = 0, M.whave = 0, M.wnext = 0, S(x)) : f;
|
|
19723
19724
|
}
|
|
19724
|
-
function D(
|
|
19725
|
+
function D(x, M) {
|
|
19725
19726
|
var T, U;
|
|
19726
|
-
return
|
|
19727
|
+
return x && x.state ? (U = x.state, M < 0 ? (T = 0, M = -M) : (T = 1 + (M >> 4), M < 48 && (M &= 15)), M && (M < 8 || 15 < M) ? f : (U.window !== null && U.wbits !== M && (U.window = null), U.wrap = T, U.wbits = M, O(x))) : f;
|
|
19727
19728
|
}
|
|
19728
|
-
function B(
|
|
19729
|
+
function B(x, M) {
|
|
19729
19730
|
var T, U;
|
|
19730
|
-
return
|
|
19731
|
+
return x ? (U = new y(), (x.state = U).window = null, (T = D(x, M)) !== b && (x.state = null), T) : f;
|
|
19731
19732
|
}
|
|
19732
|
-
var
|
|
19733
|
-
function P(
|
|
19733
|
+
var A, C, k = !0;
|
|
19734
|
+
function P(x) {
|
|
19734
19735
|
if (k) {
|
|
19735
19736
|
var M;
|
|
19736
|
-
for (
|
|
19737
|
-
for (; M < 256; )
|
|
19738
|
-
for (; M < 280; )
|
|
19739
|
-
for (; M < 288; )
|
|
19740
|
-
for (c(d,
|
|
19741
|
-
c(h,
|
|
19737
|
+
for (A = new s.Buf32(512), C = new s.Buf32(32), M = 0; M < 144; ) x.lens[M++] = 8;
|
|
19738
|
+
for (; M < 256; ) x.lens[M++] = 9;
|
|
19739
|
+
for (; M < 280; ) x.lens[M++] = 7;
|
|
19740
|
+
for (; M < 288; ) x.lens[M++] = 8;
|
|
19741
|
+
for (c(d, x.lens, 0, 288, A, 0, x.work, { bits: 9 }), M = 0; M < 32; ) x.lens[M++] = 5;
|
|
19742
|
+
c(h, x.lens, 0, 32, C, 0, x.work, { bits: 5 }), k = !1;
|
|
19742
19743
|
}
|
|
19743
|
-
|
|
19744
|
+
x.lencode = A, x.lenbits = 9, x.distcode = C, x.distbits = 5;
|
|
19744
19745
|
}
|
|
19745
|
-
function R(
|
|
19746
|
-
var W, G =
|
|
19746
|
+
function R(x, M, T, U) {
|
|
19747
|
+
var W, G = x.state;
|
|
19747
19748
|
return G.window === null && (G.wsize = 1 << G.wbits, G.wnext = 0, G.whave = 0, G.window = new s.Buf8(G.wsize)), U >= G.wsize ? (s.arraySet(G.window, M, T - G.wsize, G.wsize, 0), G.wnext = 0, G.whave = G.wsize) : (U < (W = G.wsize - G.wnext) && (W = U), s.arraySet(G.window, M, T - U, W, G.wnext), (U -= W) ? (s.arraySet(G.window, M, T - U, U, 0), G.wnext = U, G.whave = G.wsize) : (G.wnext += W, G.wnext === G.wsize && (G.wnext = 0), G.whave < G.wsize && (G.whave += W))), 0;
|
|
19748
19749
|
}
|
|
19749
|
-
i.inflateReset = O, i.inflateReset2 = D, i.inflateResetKeep =
|
|
19750
|
-
return B(
|
|
19751
|
-
}, i.inflateInit2 = B, i.inflate = function(
|
|
19750
|
+
i.inflateReset = O, i.inflateReset2 = D, i.inflateResetKeep = S, i.inflateInit = function(x) {
|
|
19751
|
+
return B(x, 15);
|
|
19752
|
+
}, i.inflateInit2 = B, i.inflate = function(x, M) {
|
|
19752
19753
|
var T, U, W, G, se, Z, ce, j, $, oe, ae, ie, Le, Ye, be, ke, Fe, Re, kt, ft, E, V, Y, v, I = 0, F = new s.Buf8(4), K = [16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15];
|
|
19753
|
-
if (!
|
|
19754
|
-
(T =
|
|
19754
|
+
if (!x || !x.state || !x.output || !x.input && x.avail_in !== 0) return f;
|
|
19755
|
+
(T = x.state).mode === 12 && (T.mode = 13), se = x.next_out, W = x.output, ce = x.avail_out, G = x.next_in, U = x.input, Z = x.avail_in, j = T.hold, $ = T.bits, oe = Z, ae = ce, V = b;
|
|
19755
19756
|
e: for (; ; ) switch (T.mode) {
|
|
19756
|
-
case
|
|
19757
|
+
case m:
|
|
19757
19758
|
if (T.wrap === 0) {
|
|
19758
19759
|
T.mode = 13;
|
|
19759
19760
|
break;
|
|
@@ -19767,19 +19768,19 @@ function B_() {
|
|
|
19767
19768
|
break;
|
|
19768
19769
|
}
|
|
19769
19770
|
if (T.flags = 0, T.head && (T.head.done = !1), !(1 & T.wrap) || (((255 & j) << 8) + (j >> 8)) % 31) {
|
|
19770
|
-
|
|
19771
|
+
x.msg = "incorrect header check", T.mode = 30;
|
|
19771
19772
|
break;
|
|
19772
19773
|
}
|
|
19773
19774
|
if ((15 & j) != 8) {
|
|
19774
|
-
|
|
19775
|
+
x.msg = "unknown compression method", T.mode = 30;
|
|
19775
19776
|
break;
|
|
19776
19777
|
}
|
|
19777
19778
|
if ($ -= 4, E = 8 + (15 & (j >>>= 4)), T.wbits === 0) T.wbits = E;
|
|
19778
19779
|
else if (E > T.wbits) {
|
|
19779
|
-
|
|
19780
|
+
x.msg = "invalid window size", T.mode = 30;
|
|
19780
19781
|
break;
|
|
19781
19782
|
}
|
|
19782
|
-
T.dmax = 1 << E,
|
|
19783
|
+
T.dmax = 1 << E, x.adler = T.check = 1, T.mode = 512 & j ? 10 : 12, $ = j = 0;
|
|
19783
19784
|
break;
|
|
19784
19785
|
case 2:
|
|
19785
19786
|
for (; $ < 16; ) {
|
|
@@ -19787,11 +19788,11 @@ function B_() {
|
|
|
19787
19788
|
Z--, j += U[G++] << $, $ += 8;
|
|
19788
19789
|
}
|
|
19789
19790
|
if (T.flags = j, (255 & T.flags) != 8) {
|
|
19790
|
-
|
|
19791
|
+
x.msg = "unknown compression method", T.mode = 30;
|
|
19791
19792
|
break;
|
|
19792
19793
|
}
|
|
19793
19794
|
if (57344 & T.flags) {
|
|
19794
|
-
|
|
19795
|
+
x.msg = "unknown header flags set", T.mode = 30;
|
|
19795
19796
|
break;
|
|
19796
19797
|
}
|
|
19797
19798
|
T.head && (T.head.text = j >> 8 & 1), 512 & T.flags && (F[0] = 255 & j, F[1] = j >>> 8 & 255, T.check = a(T.check, F, 2, 0)), $ = j = 0, T.mode = 3;
|
|
@@ -19840,22 +19841,22 @@ function B_() {
|
|
|
19840
19841
|
Z--, j += U[G++] << $, $ += 8;
|
|
19841
19842
|
}
|
|
19842
19843
|
if (j !== (65535 & T.check)) {
|
|
19843
|
-
|
|
19844
|
+
x.msg = "header crc mismatch", T.mode = 30;
|
|
19844
19845
|
break;
|
|
19845
19846
|
}
|
|
19846
19847
|
$ = j = 0;
|
|
19847
19848
|
}
|
|
19848
|
-
T.head && (T.head.hcrc = T.flags >> 9 & 1, T.head.done = !0),
|
|
19849
|
+
T.head && (T.head.hcrc = T.flags >> 9 & 1, T.head.done = !0), x.adler = T.check = 0, T.mode = 12;
|
|
19849
19850
|
break;
|
|
19850
19851
|
case 10:
|
|
19851
19852
|
for (; $ < 32; ) {
|
|
19852
19853
|
if (Z === 0) break e;
|
|
19853
19854
|
Z--, j += U[G++] << $, $ += 8;
|
|
19854
19855
|
}
|
|
19855
|
-
|
|
19856
|
+
x.adler = T.check = p(j), $ = j = 0, T.mode = 11;
|
|
19856
19857
|
case 11:
|
|
19857
|
-
if (T.havedict === 0) return
|
|
19858
|
-
|
|
19858
|
+
if (T.havedict === 0) return x.next_out = se, x.avail_out = ce, x.next_in = G, x.avail_in = Z, T.hold = j, T.bits = $, 2;
|
|
19859
|
+
x.adler = T.check = 1, T.mode = 12;
|
|
19859
19860
|
case 12:
|
|
19860
19861
|
if (M === 5 || M === 6) break e;
|
|
19861
19862
|
case 13:
|
|
@@ -19879,7 +19880,7 @@ function B_() {
|
|
|
19879
19880
|
T.mode = 17;
|
|
19880
19881
|
break;
|
|
19881
19882
|
case 3:
|
|
19882
|
-
|
|
19883
|
+
x.msg = "invalid block type", T.mode = 30;
|
|
19883
19884
|
}
|
|
19884
19885
|
j >>>= 2, $ -= 2;
|
|
19885
19886
|
break;
|
|
@@ -19889,7 +19890,7 @@ function B_() {
|
|
|
19889
19890
|
Z--, j += U[G++] << $, $ += 8;
|
|
19890
19891
|
}
|
|
19891
19892
|
if ((65535 & j) != (j >>> 16 ^ 65535)) {
|
|
19892
|
-
|
|
19893
|
+
x.msg = "invalid stored block lengths", T.mode = 30;
|
|
19893
19894
|
break;
|
|
19894
19895
|
}
|
|
19895
19896
|
if (T.length = 65535 & j, $ = j = 0, T.mode = 15, M === 6) break e;
|
|
@@ -19909,7 +19910,7 @@ function B_() {
|
|
|
19909
19910
|
Z--, j += U[G++] << $, $ += 8;
|
|
19910
19911
|
}
|
|
19911
19912
|
if (T.nlen = 257 + (31 & j), j >>>= 5, $ -= 5, T.ndist = 1 + (31 & j), j >>>= 5, $ -= 5, T.ncode = 4 + (15 & j), j >>>= 4, $ -= 4, 286 < T.nlen || 30 < T.ndist) {
|
|
19912
|
-
|
|
19913
|
+
x.msg = "too many length or distance symbols", T.mode = 30;
|
|
19913
19914
|
break;
|
|
19914
19915
|
}
|
|
19915
19916
|
T.have = 0, T.mode = 18;
|
|
@@ -19923,7 +19924,7 @@ function B_() {
|
|
|
19923
19924
|
}
|
|
19924
19925
|
for (; T.have < 19; ) T.lens[K[T.have++]] = 0;
|
|
19925
19926
|
if (T.lencode = T.lendyn, T.lenbits = 7, Y = { bits: T.lenbits }, V = c(0, T.lens, 0, 19, T.lencode, 0, T.work, Y), T.lenbits = Y.bits, V) {
|
|
19926
|
-
|
|
19927
|
+
x.msg = "invalid code lengths set", T.mode = 30;
|
|
19927
19928
|
break;
|
|
19928
19929
|
}
|
|
19929
19930
|
T.have = 0, T.mode = 19;
|
|
@@ -19941,7 +19942,7 @@ function B_() {
|
|
|
19941
19942
|
Z--, j += U[G++] << $, $ += 8;
|
|
19942
19943
|
}
|
|
19943
19944
|
if (j >>>= be, $ -= be, T.have === 0) {
|
|
19944
|
-
|
|
19945
|
+
x.msg = "invalid bit length repeat", T.mode = 30;
|
|
19945
19946
|
break;
|
|
19946
19947
|
}
|
|
19947
19948
|
E = T.lens[T.have - 1], ie = 3 + (3 & j), j >>>= 2, $ -= 2;
|
|
@@ -19959,7 +19960,7 @@ function B_() {
|
|
|
19959
19960
|
$ -= be, E = 0, ie = 11 + (127 & (j >>>= be)), j >>>= 7, $ -= 7;
|
|
19960
19961
|
}
|
|
19961
19962
|
if (T.have + ie > T.nlen + T.ndist) {
|
|
19962
|
-
|
|
19963
|
+
x.msg = "invalid bit length repeat", T.mode = 30;
|
|
19963
19964
|
break;
|
|
19964
19965
|
}
|
|
19965
19966
|
for (; ie--; ) T.lens[T.have++] = E;
|
|
@@ -19967,15 +19968,15 @@ function B_() {
|
|
|
19967
19968
|
}
|
|
19968
19969
|
if (T.mode === 30) break;
|
|
19969
19970
|
if (T.lens[256] === 0) {
|
|
19970
|
-
|
|
19971
|
+
x.msg = "invalid code -- missing end-of-block", T.mode = 30;
|
|
19971
19972
|
break;
|
|
19972
19973
|
}
|
|
19973
19974
|
if (T.lenbits = 9, Y = { bits: T.lenbits }, V = c(d, T.lens, 0, T.nlen, T.lencode, 0, T.work, Y), T.lenbits = Y.bits, V) {
|
|
19974
|
-
|
|
19975
|
+
x.msg = "invalid literal/lengths set", T.mode = 30;
|
|
19975
19976
|
break;
|
|
19976
19977
|
}
|
|
19977
19978
|
if (T.distbits = 6, T.distcode = T.distdyn, Y = { bits: T.distbits }, V = c(h, T.lens, T.nlen, T.ndist, T.distcode, 0, T.work, Y), T.distbits = Y.bits, V) {
|
|
19978
|
-
|
|
19979
|
+
x.msg = "invalid distances set", T.mode = 30;
|
|
19979
19980
|
break;
|
|
19980
19981
|
}
|
|
19981
19982
|
if (T.mode = 20, M === 6) break e;
|
|
@@ -19983,7 +19984,7 @@ function B_() {
|
|
|
19983
19984
|
T.mode = 21;
|
|
19984
19985
|
case 21:
|
|
19985
19986
|
if (6 <= Z && 258 <= ce) {
|
|
19986
|
-
|
|
19987
|
+
x.next_out = se, x.avail_out = ce, x.next_in = G, x.avail_in = Z, T.hold = j, T.bits = $, u(x, ae), se = x.next_out, W = x.output, ce = x.avail_out, G = x.next_in, U = x.input, Z = x.avail_in, j = T.hold, $ = T.bits, T.mode === 12 && (T.back = -1);
|
|
19987
19988
|
break;
|
|
19988
19989
|
}
|
|
19989
19990
|
for (T.back = 0; ke = (I = T.lencode[j & (1 << T.lenbits) - 1]) >>> 16 & 255, Fe = 65535 & I, !((be = I >>> 24) <= $); ) {
|
|
@@ -20006,7 +20007,7 @@ function B_() {
|
|
|
20006
20007
|
break;
|
|
20007
20008
|
}
|
|
20008
20009
|
if (64 & ke) {
|
|
20009
|
-
|
|
20010
|
+
x.msg = "invalid literal/length code", T.mode = 30;
|
|
20010
20011
|
break;
|
|
20011
20012
|
}
|
|
20012
20013
|
T.extra = 15 & ke, T.mode = 22;
|
|
@@ -20032,7 +20033,7 @@ function B_() {
|
|
|
20032
20033
|
j >>>= Re, $ -= Re, T.back += Re;
|
|
20033
20034
|
}
|
|
20034
20035
|
if (j >>>= be, $ -= be, T.back += be, 64 & ke) {
|
|
20035
|
-
|
|
20036
|
+
x.msg = "invalid distance code", T.mode = 30;
|
|
20036
20037
|
break;
|
|
20037
20038
|
}
|
|
20038
20039
|
T.offset = Fe, T.extra = 15 & ke, T.mode = 24;
|
|
@@ -20045,7 +20046,7 @@ function B_() {
|
|
|
20045
20046
|
T.offset += j & (1 << T.extra) - 1, j >>>= T.extra, $ -= T.extra, T.back += T.extra;
|
|
20046
20047
|
}
|
|
20047
20048
|
if (T.offset > T.dmax) {
|
|
20048
|
-
|
|
20049
|
+
x.msg = "invalid distance too far back", T.mode = 30;
|
|
20049
20050
|
break;
|
|
20050
20051
|
}
|
|
20051
20052
|
T.mode = 25;
|
|
@@ -20053,7 +20054,7 @@ function B_() {
|
|
|
20053
20054
|
if (ce === 0) break e;
|
|
20054
20055
|
if (ie = ae - ce, T.offset > ie) {
|
|
20055
20056
|
if ((ie = T.offset - ie) > T.whave && T.sane) {
|
|
20056
|
-
|
|
20057
|
+
x.msg = "invalid distance too far back", T.mode = 30;
|
|
20057
20058
|
break;
|
|
20058
20059
|
}
|
|
20059
20060
|
Le = ie > T.wnext ? (ie -= T.wnext, T.wsize - ie) : T.wnext - ie, ie > T.length && (ie = T.length), Ye = T.window;
|
|
@@ -20071,8 +20072,8 @@ function B_() {
|
|
|
20071
20072
|
if (Z === 0) break e;
|
|
20072
20073
|
Z--, j |= U[G++] << $, $ += 8;
|
|
20073
20074
|
}
|
|
20074
|
-
if (ae -= ce,
|
|
20075
|
-
|
|
20075
|
+
if (ae -= ce, x.total_out += ae, T.total += ae, ae && (x.adler = T.check = T.flags ? a(T.check, W, ae, se - ae) : o(T.check, W, ae, se - ae)), ae = ce, (T.flags ? j : p(j)) !== T.check) {
|
|
20076
|
+
x.msg = "incorrect data check", T.mode = 30;
|
|
20076
20077
|
break;
|
|
20077
20078
|
}
|
|
20078
20079
|
$ = j = 0;
|
|
@@ -20085,7 +20086,7 @@ function B_() {
|
|
|
20085
20086
|
Z--, j += U[G++] << $, $ += 8;
|
|
20086
20087
|
}
|
|
20087
20088
|
if (j !== (4294967295 & T.total)) {
|
|
20088
|
-
|
|
20089
|
+
x.msg = "incorrect length check", T.mode = 30;
|
|
20089
20090
|
break;
|
|
20090
20091
|
}
|
|
20091
20092
|
$ = j = 0;
|
|
@@ -20103,46 +20104,46 @@ function B_() {
|
|
|
20103
20104
|
default:
|
|
20104
20105
|
return f;
|
|
20105
20106
|
}
|
|
20106
|
-
return
|
|
20107
|
-
}, i.inflateEnd = function(
|
|
20108
|
-
if (!
|
|
20109
|
-
var M =
|
|
20110
|
-
return M.window && (M.window = null),
|
|
20111
|
-
}, i.inflateGetHeader = function(
|
|
20107
|
+
return x.next_out = se, x.avail_out = ce, x.next_in = G, x.avail_in = Z, T.hold = j, T.bits = $, (T.wsize || ae !== x.avail_out && T.mode < 30 && (T.mode < 27 || M !== 4)) && R(x, x.output, x.next_out, ae - x.avail_out) ? (T.mode = 31, -4) : (oe -= x.avail_in, ae -= x.avail_out, x.total_in += oe, x.total_out += ae, T.total += ae, T.wrap && ae && (x.adler = T.check = T.flags ? a(T.check, W, ae, x.next_out - ae) : o(T.check, W, ae, x.next_out - ae)), x.data_type = T.bits + (T.last ? 64 : 0) + (T.mode === 12 ? 128 : 0) + (T.mode === 20 || T.mode === 15 ? 256 : 0), (oe == 0 && ae === 0 || M === 4) && V === b && (V = -5), V);
|
|
20108
|
+
}, i.inflateEnd = function(x) {
|
|
20109
|
+
if (!x || !x.state) return f;
|
|
20110
|
+
var M = x.state;
|
|
20111
|
+
return M.window && (M.window = null), x.state = null, b;
|
|
20112
|
+
}, i.inflateGetHeader = function(x, M) {
|
|
20112
20113
|
var T;
|
|
20113
|
-
return
|
|
20114
|
-
}, i.inflateSetDictionary = function(
|
|
20114
|
+
return x && x.state ? (2 & (T = x.state).wrap) == 0 ? f : ((T.head = M).done = !1, b) : f;
|
|
20115
|
+
}, i.inflateSetDictionary = function(x, M) {
|
|
20115
20116
|
var T, U = M.length;
|
|
20116
|
-
return
|
|
20117
|
+
return x && x.state ? (T = x.state).wrap !== 0 && T.mode !== 11 ? f : T.mode === 11 && o(1, M, U, 0) !== T.check ? -3 : R(x, M, U, U) ? (T.mode = 31, -4) : (T.havedict = 1, b) : f;
|
|
20117
20118
|
}, i.inflateInfo = "pako inflate (from Nodeca project)";
|
|
20118
20119
|
}, { "../utils/common": 41, "./adler32": 43, "./crc32": 45, "./inffast": 48, "./inftrees": 50 }], 50: [function(n, r, i) {
|
|
20119
20120
|
var s = n("../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], a = [16, 16, 16, 16, 16, 16, 16, 16, 17, 17, 17, 17, 18, 18, 18, 18, 19, 19, 19, 19, 20, 20, 20, 20, 21, 21, 21, 21, 16, 72, 78], u = [1, 2, 3, 4, 5, 7, 9, 13, 17, 25, 33, 49, 65, 97, 129, 193, 257, 385, 513, 769, 1025, 1537, 2049, 3073, 4097, 6145, 8193, 12289, 16385, 24577, 0, 0], 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];
|
|
20120
|
-
r.exports = function(d, h,
|
|
20121
|
-
var y,
|
|
20122
|
-
for (
|
|
20123
|
-
for (M = 0; M < f; M++) ae[h[
|
|
20121
|
+
r.exports = function(d, h, b, f, m, g, _, p) {
|
|
20122
|
+
var y, S, O, D, B, A, C, k, P, R = p.bits, x = 0, M = 0, T = 0, U = 0, W = 0, G = 0, se = 0, Z = 0, ce = 0, j = 0, $ = null, oe = 0, ae = new s.Buf16(16), ie = new s.Buf16(16), Le = null, Ye = 0;
|
|
20123
|
+
for (x = 0; x <= 15; x++) ae[x] = 0;
|
|
20124
|
+
for (M = 0; M < f; M++) ae[h[b + M]]++;
|
|
20124
20125
|
for (W = R, U = 15; 1 <= U && ae[U] === 0; U--) ;
|
|
20125
|
-
if (U < W && (W = U), U === 0) return
|
|
20126
|
+
if (U < W && (W = U), U === 0) return m[g++] = 20971520, m[g++] = 20971520, p.bits = 1, 0;
|
|
20126
20127
|
for (T = 1; T < U && ae[T] === 0; T++) ;
|
|
20127
|
-
for (W < T && (W = T),
|
|
20128
|
+
for (W < T && (W = T), x = Z = 1; x <= 15; x++) if (Z <<= 1, (Z -= ae[x]) < 0) return -1;
|
|
20128
20129
|
if (0 < Z && (d === 0 || U !== 1)) return -1;
|
|
20129
|
-
for (ie[1] = 0,
|
|
20130
|
-
for (M = 0; M < f; M++) h[
|
|
20131
|
-
if (
|
|
20130
|
+
for (ie[1] = 0, x = 1; x < 15; x++) ie[x + 1] = ie[x] + ae[x];
|
|
20131
|
+
for (M = 0; M < f; M++) h[b + M] !== 0 && (_[ie[h[b + M]]++] = M);
|
|
20132
|
+
if (A = d === 0 ? ($ = Le = _, 19) : d === 1 ? ($ = o, oe -= 257, Le = a, Ye -= 257, 256) : ($ = u, Le = c, -1), x = T, B = g, se = M = j = 0, O = -1, D = (ce = 1 << (G = W)) - 1, d === 1 && 852 < ce || d === 2 && 592 < ce) return 1;
|
|
20132
20133
|
for (; ; ) {
|
|
20133
|
-
for (C =
|
|
20134
|
-
for (y = 1 <<
|
|
20135
|
-
if (y !== 0 ? (j &= y - 1, j += y) : j = 0, M++, --ae[
|
|
20136
|
-
if (
|
|
20137
|
-
|
|
20134
|
+
for (C = x - se, P = _[M] < A ? (k = 0, _[M]) : _[M] > A ? (k = Le[Ye + _[M]], $[oe + _[M]]) : (k = 96, 0), y = 1 << x - se, T = S = 1 << G; m[B + (j >> se) + (S -= y)] = C << 24 | k << 16 | P | 0, S !== 0; ) ;
|
|
20135
|
+
for (y = 1 << x - 1; j & y; ) y >>= 1;
|
|
20136
|
+
if (y !== 0 ? (j &= y - 1, j += y) : j = 0, M++, --ae[x] == 0) {
|
|
20137
|
+
if (x === U) break;
|
|
20138
|
+
x = h[b + _[M]];
|
|
20138
20139
|
}
|
|
20139
|
-
if (W <
|
|
20140
|
-
for (se === 0 && (se = W), B += T, Z = 1 << (G =
|
|
20140
|
+
if (W < x && (j & D) !== O) {
|
|
20141
|
+
for (se === 0 && (se = W), B += T, Z = 1 << (G = x - se); G + se < U && !((Z -= ae[G + se]) <= 0); ) G++, Z <<= 1;
|
|
20141
20142
|
if (ce += 1 << G, d === 1 && 852 < ce || d === 2 && 592 < ce) return 1;
|
|
20142
|
-
|
|
20143
|
+
m[O = j & D] = W << 24 | G << 16 | B - g | 0;
|
|
20143
20144
|
}
|
|
20144
20145
|
}
|
|
20145
|
-
return j !== 0 && (
|
|
20146
|
+
return j !== 0 && (m[B + j] = x - se << 24 | 64 << 16 | 0), p.bits = W, 0;
|
|
20146
20147
|
};
|
|
20147
20148
|
}, { "../utils/common": 41 }], 51: [function(n, r, i) {
|
|
20148
20149
|
r.exports = { 2: "need dictionary", 1: "stream end", 0: "", "-1": "file error", "-2": "stream error", "-3": "data error", "-4": "insufficient memory", "-5": "buffer error", "-6": "incompatible version" };
|
|
@@ -20151,10 +20152,10 @@ function B_() {
|
|
|
20151
20152
|
function u(I) {
|
|
20152
20153
|
for (var F = I.length; 0 <= --F; ) I[F] = 0;
|
|
20153
20154
|
}
|
|
20154
|
-
var c = 0, d = 29, h = 256,
|
|
20155
|
+
var c = 0, d = 29, h = 256, b = h + 1 + d, f = 30, m = 19, g = 2 * b + 1, _ = 15, p = 16, y = 7, S = 256, O = 16, D = 17, B = 18, A = [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], C = [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], k = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 3, 7], P = [16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15], R = new Array(2 * (b + 2));
|
|
20155
20156
|
u(R);
|
|
20156
|
-
var
|
|
20157
|
-
u(
|
|
20157
|
+
var x = new Array(2 * f);
|
|
20158
|
+
u(x);
|
|
20158
20159
|
var M = new Array(512);
|
|
20159
20160
|
u(M);
|
|
20160
20161
|
var T = new Array(256);
|
|
@@ -20194,10 +20195,10 @@ function B_() {
|
|
|
20194
20195
|
}
|
|
20195
20196
|
function be(I) {
|
|
20196
20197
|
var F;
|
|
20197
|
-
for (F = 0; F <
|
|
20198
|
+
for (F = 0; F < b; F++) I.dyn_ltree[2 * F] = 0;
|
|
20198
20199
|
for (F = 0; F < f; F++) I.dyn_dtree[2 * F] = 0;
|
|
20199
|
-
for (F = 0; F <
|
|
20200
|
-
I.dyn_ltree[2 *
|
|
20200
|
+
for (F = 0; F < m; F++) I.bl_tree[2 * F] = 0;
|
|
20201
|
+
I.dyn_ltree[2 * S] = 1, I.opt_len = I.static_len = 0, I.last_lit = I.matches = 0;
|
|
20201
20202
|
}
|
|
20202
20203
|
function ke(I) {
|
|
20203
20204
|
8 < I.bi_valid ? oe(I, I.bi_buf) : 0 < I.bi_valid && (I.pending_buf[I.pending++] = I.bi_buf), I.bi_buf = 0, I.bi_valid = 0;
|
|
@@ -20212,8 +20213,8 @@ function B_() {
|
|
|
20212
20213
|
}
|
|
20213
20214
|
function kt(I, F, K) {
|
|
20214
20215
|
var Q, z, te, ue, re = 0;
|
|
20215
|
-
if (I.last_lit !== 0) for (; Q = I.pending_buf[I.d_buf + 2 * re] << 8 | I.pending_buf[I.d_buf + 2 * re + 1], z = I.pending_buf[I.l_buf + re], re++, Q === 0 ? ie(I, z, F) : (ie(I, (te = T[z]) + h + 1, F), (ue =
|
|
20216
|
-
ie(I,
|
|
20216
|
+
if (I.last_lit !== 0) for (; Q = I.pending_buf[I.d_buf + 2 * re] << 8 | I.pending_buf[I.d_buf + 2 * re + 1], z = I.pending_buf[I.l_buf + re], re++, Q === 0 ? ie(I, z, F) : (ie(I, (te = T[z]) + h + 1, F), (ue = A[te]) !== 0 && ae(I, z -= U[te], ue), ie(I, te = $(--Q), K), (ue = C[te]) !== 0 && ae(I, Q -= Z[te], ue)), re < I.last_lit; ) ;
|
|
20217
|
+
ie(I, S, F);
|
|
20217
20218
|
}
|
|
20218
20219
|
function ft(I, F) {
|
|
20219
20220
|
var K, Q, z, te = F.dyn_tree, ue = F.stat_desc.static_tree, re = F.stat_desc.has_stree, le = F.stat_desc.elems, Ae = -1;
|
|
@@ -20256,7 +20257,7 @@ function B_() {
|
|
|
20256
20257
|
i._tr_init = function(I) {
|
|
20257
20258
|
Y || ((function() {
|
|
20258
20259
|
var F, K, Q, z, te, ue = new Array(_ + 1);
|
|
20259
|
-
for (z = Q = 0; z < d - 1; z++) for (U[z] = Q, F = 0; F < 1 <<
|
|
20260
|
+
for (z = Q = 0; z < d - 1; z++) for (U[z] = Q, F = 0; F < 1 << A[z]; F++) T[Q++] = z;
|
|
20260
20261
|
for (T[Q - 1] = z, z = te = 0; z < 16; z++) for (Z[z] = te, F = 0; F < 1 << C[z]; F++) M[te++] = z;
|
|
20261
20262
|
for (te >>= 7; z < f; z++) for (Z[z] = te << 7, F = 0; F < 1 << C[z] - 7; F++) M[256 + te++] = z;
|
|
20262
20263
|
for (K = 0; K <= _; K++) ue[K] = 0;
|
|
@@ -20264,8 +20265,8 @@ function B_() {
|
|
|
20264
20265
|
for (; F <= 255; ) R[2 * F + 1] = 9, F++, ue[9]++;
|
|
20265
20266
|
for (; F <= 279; ) R[2 * F + 1] = 7, F++, ue[7]++;
|
|
20266
20267
|
for (; F <= 287; ) R[2 * F + 1] = 8, F++, ue[8]++;
|
|
20267
|
-
for (Ye(R,
|
|
20268
|
-
W = new ce(R,
|
|
20268
|
+
for (Ye(R, b + 1, ue), F = 0; F < f; F++) x[2 * F + 1] = 5, x[2 * F] = Le(F, 5);
|
|
20269
|
+
W = new ce(R, A, h + 1, b, _), G = new ce(x, C, 0, f, _), se = new ce(new Array(0), k, 0, m, y);
|
|
20269
20270
|
})(), Y = !0), I.l_desc = new j(I.dyn_ltree, W), I.d_desc = new j(I.dyn_dtree, G), I.bl_desc = new j(I.bl_tree, se), I.bi_buf = 0, I.bi_valid = 0, be(I);
|
|
20270
20271
|
}, i._tr_stored_block = v, i._tr_flush_block = function(I, F, K, Q) {
|
|
20271
20272
|
var z, te, ue = 0;
|
|
@@ -20277,9 +20278,9 @@ function B_() {
|
|
|
20277
20278
|
return o;
|
|
20278
20279
|
})(I)), ft(I, I.l_desc), ft(I, I.d_desc), ue = (function(re) {
|
|
20279
20280
|
var le;
|
|
20280
|
-
for (E(re, re.dyn_ltree, re.l_desc.max_code), E(re, re.dyn_dtree, re.d_desc.max_code), ft(re, re.bl_desc), le =
|
|
20281
|
+
for (E(re, re.dyn_ltree, re.l_desc.max_code), E(re, re.dyn_dtree, re.d_desc.max_code), ft(re, re.bl_desc), le = m - 1; 3 <= le && re.bl_tree[2 * P[le] + 1] === 0; le--) ;
|
|
20281
20282
|
return re.opt_len += 3 * (le + 1) + 5 + 5 + 4, le;
|
|
20282
|
-
})(I), z = I.opt_len + 3 + 7 >>> 3, (te = I.static_len + 3 + 7 >>> 3) <= z && (z = te)) : z = te = K + 5, K + 4 <= z && F !== -1 ? v(I, F, K, Q) : I.strategy === 4 || te === z ? (ae(I, 2 + (Q ? 1 : 0), 3), kt(I, R,
|
|
20283
|
+
})(I), z = I.opt_len + 3 + 7 >>> 3, (te = I.static_len + 3 + 7 >>> 3) <= z && (z = te)) : z = te = K + 5, K + 4 <= z && F !== -1 ? v(I, F, K, Q) : I.strategy === 4 || te === z ? (ae(I, 2 + (Q ? 1 : 0), 3), kt(I, R, x)) : (ae(I, 4 + (Q ? 1 : 0), 3), (function(re, le, Ae, Ee) {
|
|
20283
20284
|
var lt;
|
|
20284
20285
|
for (ae(re, le - 257, 5), ae(re, Ae - 1, 5), ae(re, Ee - 4, 4), lt = 0; lt < Ee; lt++) ae(re, re.bl_tree[2 * P[lt] + 1], 3);
|
|
20285
20286
|
V(re, re.dyn_ltree, le - 1), V(re, re.dyn_dtree, Ae - 1);
|
|
@@ -20287,7 +20288,7 @@ function B_() {
|
|
|
20287
20288
|
}, i._tr_tally = function(I, F, K) {
|
|
20288
20289
|
return I.pending_buf[I.d_buf + 2 * I.last_lit] = F >>> 8 & 255, I.pending_buf[I.d_buf + 2 * I.last_lit + 1] = 255 & F, I.pending_buf[I.l_buf + I.last_lit] = 255 & K, I.last_lit++, F === 0 ? I.dyn_ltree[2 * K]++ : (I.matches++, F--, I.dyn_ltree[2 * (T[K] + h + 1)]++, I.dyn_dtree[2 * $(F)]++), I.last_lit === I.lit_bufsize - 1;
|
|
20289
20290
|
}, i._tr_align = function(I) {
|
|
20290
|
-
ae(I, 2, 3), ie(I,
|
|
20291
|
+
ae(I, 2, 3), ie(I, S, R), (function(F) {
|
|
20291
20292
|
F.bi_valid === 16 ? (oe(F, F.bi_buf), F.bi_buf = 0, F.bi_valid = 0) : 8 <= F.bi_valid && (F.pending_buf[F.pending++] = 255 & F.bi_buf, F.bi_buf >>= 8, F.bi_valid -= 8);
|
|
20292
20293
|
})(I);
|
|
20293
20294
|
};
|
|
@@ -20299,7 +20300,7 @@ function B_() {
|
|
|
20299
20300
|
(function(s) {
|
|
20300
20301
|
(function(o, a) {
|
|
20301
20302
|
if (!o.setImmediate) {
|
|
20302
|
-
var u, c, d, h,
|
|
20303
|
+
var u, c, d, h, b = 1, f = {}, m = !1, g = o.document, _ = Object.getPrototypeOf && Object.getPrototypeOf(o);
|
|
20303
20304
|
_ = _ && _.setTimeout ? _ : o, u = {}.toString.call(o.process) === "[object process]" ? function(O) {
|
|
20304
20305
|
process.nextTick(function() {
|
|
20305
20306
|
y(O);
|
|
@@ -20311,7 +20312,7 @@ function B_() {
|
|
|
20311
20312
|
O = !1;
|
|
20312
20313
|
}, o.postMessage("", "*"), o.onmessage = D, O;
|
|
20313
20314
|
}
|
|
20314
|
-
})() ? (h = "setImmediate$" + Math.random() + "$", o.addEventListener ? o.addEventListener("message",
|
|
20315
|
+
})() ? (h = "setImmediate$" + Math.random() + "$", o.addEventListener ? o.addEventListener("message", S, !1) : o.attachEvent("onmessage", S), function(O) {
|
|
20315
20316
|
o.postMessage(h + O, "*");
|
|
20316
20317
|
}) : o.MessageChannel ? ((d = new MessageChannel()).port1.onmessage = function(O) {
|
|
20317
20318
|
y(O.data);
|
|
@@ -20327,46 +20328,46 @@ function B_() {
|
|
|
20327
20328
|
}, _.setImmediate = function(O) {
|
|
20328
20329
|
typeof O != "function" && (O = new Function("" + O));
|
|
20329
20330
|
for (var D = new Array(arguments.length - 1), B = 0; B < D.length; B++) D[B] = arguments[B + 1];
|
|
20330
|
-
var
|
|
20331
|
-
return f[
|
|
20331
|
+
var A = { callback: O, args: D };
|
|
20332
|
+
return f[b] = A, u(b), b++;
|
|
20332
20333
|
}, _.clearImmediate = p;
|
|
20333
20334
|
}
|
|
20334
20335
|
function p(O) {
|
|
20335
20336
|
delete f[O];
|
|
20336
20337
|
}
|
|
20337
20338
|
function y(O) {
|
|
20338
|
-
if (
|
|
20339
|
+
if (m) setTimeout(y, 0, O);
|
|
20339
20340
|
else {
|
|
20340
20341
|
var D = f[O];
|
|
20341
20342
|
if (D) {
|
|
20342
|
-
|
|
20343
|
+
m = !0;
|
|
20343
20344
|
try {
|
|
20344
20345
|
(function(B) {
|
|
20345
|
-
var
|
|
20346
|
+
var A = B.callback, C = B.args;
|
|
20346
20347
|
switch (C.length) {
|
|
20347
20348
|
case 0:
|
|
20348
|
-
|
|
20349
|
+
A();
|
|
20349
20350
|
break;
|
|
20350
20351
|
case 1:
|
|
20351
|
-
|
|
20352
|
+
A(C[0]);
|
|
20352
20353
|
break;
|
|
20353
20354
|
case 2:
|
|
20354
|
-
|
|
20355
|
+
A(C[0], C[1]);
|
|
20355
20356
|
break;
|
|
20356
20357
|
case 3:
|
|
20357
|
-
|
|
20358
|
+
A(C[0], C[1], C[2]);
|
|
20358
20359
|
break;
|
|
20359
20360
|
default:
|
|
20360
|
-
|
|
20361
|
+
A.apply(a, C);
|
|
20361
20362
|
}
|
|
20362
20363
|
})(D);
|
|
20363
20364
|
} finally {
|
|
20364
|
-
p(O),
|
|
20365
|
+
p(O), m = !1;
|
|
20365
20366
|
}
|
|
20366
20367
|
}
|
|
20367
20368
|
}
|
|
20368
20369
|
}
|
|
20369
|
-
function
|
|
20370
|
+
function S(O) {
|
|
20370
20371
|
O.source === o && typeof O.data == "string" && O.data.indexOf(h) === 0 && y(+O.data.slice(h.length));
|
|
20371
20372
|
}
|
|
20372
20373
|
})(typeof self > "u" ? s === void 0 ? this : s : self);
|
|
@@ -20426,14 +20427,14 @@ function li() {
|
|
|
20426
20427
|
return hu || (hu = 1, (function(e) {
|
|
20427
20428
|
const t = ":A-Za-z_\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD", n = t + "\\-.\\d\\u00B7\\u0300-\\u036F\\u203F-\\u2040", r = "[" + t + "][" + n + "]*", i = new RegExp("^" + r + "$"), s = function(c, d) {
|
|
20428
20429
|
const h = [];
|
|
20429
|
-
let
|
|
20430
|
-
for (;
|
|
20430
|
+
let b = d.exec(c);
|
|
20431
|
+
for (; b; ) {
|
|
20431
20432
|
const f = [];
|
|
20432
|
-
f.startIndex = d.lastIndex -
|
|
20433
|
-
const
|
|
20434
|
-
for (let g = 0; g <
|
|
20435
|
-
f.push(
|
|
20436
|
-
h.push(f),
|
|
20433
|
+
f.startIndex = d.lastIndex - b[0].length;
|
|
20434
|
+
const m = b.length;
|
|
20435
|
+
for (let g = 0; g < m; g++)
|
|
20436
|
+
f.push(b[g]);
|
|
20437
|
+
h.push(f), b = d.exec(c);
|
|
20437
20438
|
}
|
|
20438
20439
|
return h;
|
|
20439
20440
|
}, o = function(c) {
|
|
@@ -20446,9 +20447,9 @@ function li() {
|
|
|
20446
20447
|
return Object.keys(c).length === 0;
|
|
20447
20448
|
}, e.merge = function(c, d, h) {
|
|
20448
20449
|
if (d) {
|
|
20449
|
-
const
|
|
20450
|
-
for (let
|
|
20451
|
-
h === "strict" ? c[m
|
|
20450
|
+
const b = Object.keys(d), f = b.length;
|
|
20451
|
+
for (let m = 0; m < f; m++)
|
|
20452
|
+
h === "strict" ? c[b[m]] = [d[b[m]]] : c[b[m]] = d[b[m]];
|
|
20452
20453
|
}
|
|
20453
20454
|
}, e.getValue = function(c) {
|
|
20454
20455
|
return e.isExist(c) ? c : "";
|
|
@@ -20479,14 +20480,14 @@ function fd() {
|
|
|
20479
20480
|
};
|
|
20480
20481
|
Gi.validate = function(p, y) {
|
|
20481
20482
|
y = Object.assign({}, t, y);
|
|
20482
|
-
const
|
|
20483
|
+
const S = [];
|
|
20483
20484
|
let O = !1, D = !1;
|
|
20484
20485
|
p[0] === "\uFEFF" && (p = p.substr(1));
|
|
20485
20486
|
for (let B = 0; B < p.length; B++)
|
|
20486
20487
|
if (p[B] === "<" && p[B + 1] === "?") {
|
|
20487
20488
|
if (B += 2, B = r(p, B), B.err) return B;
|
|
20488
20489
|
} else if (p[B] === "<") {
|
|
20489
|
-
let
|
|
20490
|
+
let A = B;
|
|
20490
20491
|
if (B++, p[B] === "!") {
|
|
20491
20492
|
B = i(p, B);
|
|
20492
20493
|
continue;
|
|
@@ -20497,48 +20498,48 @@ function fd() {
|
|
|
20497
20498
|
for (; B < p.length && p[B] !== ">" && p[B] !== " " && p[B] !== " " && p[B] !== `
|
|
20498
20499
|
` && p[B] !== "\r"; B++)
|
|
20499
20500
|
k += p[B];
|
|
20500
|
-
if (k = k.trim(), k[k.length - 1] === "/" && (k = k.substring(0, k.length - 1), B--), !
|
|
20501
|
-
let
|
|
20502
|
-
return k.trim().length === 0 ?
|
|
20501
|
+
if (k = k.trim(), k[k.length - 1] === "/" && (k = k.substring(0, k.length - 1), B--), !m(k)) {
|
|
20502
|
+
let x;
|
|
20503
|
+
return k.trim().length === 0 ? x = "Invalid space after '<'." : x = "Tag '" + k + "' is an invalid name.", b("InvalidTag", x, g(p, B));
|
|
20503
20504
|
}
|
|
20504
20505
|
const P = a(p, B);
|
|
20505
20506
|
if (P === !1)
|
|
20506
|
-
return
|
|
20507
|
+
return b("InvalidAttr", "Attributes for '" + k + "' have open quote.", g(p, B));
|
|
20507
20508
|
let R = P.value;
|
|
20508
20509
|
if (B = P.index, R[R.length - 1] === "/") {
|
|
20509
|
-
const
|
|
20510
|
+
const x = B - R.length;
|
|
20510
20511
|
R = R.substring(0, R.length - 1);
|
|
20511
20512
|
const M = c(R, y);
|
|
20512
20513
|
if (M === !0)
|
|
20513
20514
|
O = !0;
|
|
20514
20515
|
else
|
|
20515
|
-
return
|
|
20516
|
+
return b(M.err.code, M.err.msg, g(p, x + M.err.line));
|
|
20516
20517
|
} else if (C)
|
|
20517
20518
|
if (P.tagClosed) {
|
|
20518
20519
|
if (R.trim().length > 0)
|
|
20519
|
-
return
|
|
20520
|
-
if (
|
|
20521
|
-
return
|
|
20520
|
+
return b("InvalidTag", "Closing tag '" + k + "' can't have attributes or invalid starting.", g(p, A));
|
|
20521
|
+
if (S.length === 0)
|
|
20522
|
+
return b("InvalidTag", "Closing tag '" + k + "' has not been opened.", g(p, A));
|
|
20522
20523
|
{
|
|
20523
|
-
const
|
|
20524
|
-
if (k !==
|
|
20525
|
-
let M = g(p,
|
|
20526
|
-
return
|
|
20524
|
+
const x = S.pop();
|
|
20525
|
+
if (k !== x.tagName) {
|
|
20526
|
+
let M = g(p, x.tagStartPos);
|
|
20527
|
+
return b(
|
|
20527
20528
|
"InvalidTag",
|
|
20528
|
-
"Expected closing tag '" +
|
|
20529
|
-
g(p,
|
|
20529
|
+
"Expected closing tag '" + x.tagName + "' (opened in line " + M.line + ", col " + M.col + ") instead of closing tag '" + k + "'.",
|
|
20530
|
+
g(p, A)
|
|
20530
20531
|
);
|
|
20531
20532
|
}
|
|
20532
|
-
|
|
20533
|
+
S.length == 0 && (D = !0);
|
|
20533
20534
|
}
|
|
20534
|
-
} else return
|
|
20535
|
+
} else return b("InvalidTag", "Closing tag '" + k + "' doesn't have proper closing.", g(p, B));
|
|
20535
20536
|
else {
|
|
20536
|
-
const
|
|
20537
|
-
if (
|
|
20538
|
-
return
|
|
20537
|
+
const x = c(R, y);
|
|
20538
|
+
if (x !== !0)
|
|
20539
|
+
return b(x.err.code, x.err.msg, g(p, B - R.length + x.err.line));
|
|
20539
20540
|
if (D === !0)
|
|
20540
|
-
return
|
|
20541
|
-
y.unpairedTags.indexOf(k) !== -1 ||
|
|
20541
|
+
return b("InvalidXml", "Multiple possible root nodes found.", g(p, B));
|
|
20542
|
+
y.unpairedTags.indexOf(k) !== -1 || S.push({ tagName: k, tagStartPos: A }), O = !0;
|
|
20542
20543
|
}
|
|
20543
20544
|
for (B++; B < p.length; B++)
|
|
20544
20545
|
if (p[B] === "<")
|
|
@@ -20550,25 +20551,25 @@ function fd() {
|
|
|
20550
20551
|
} else
|
|
20551
20552
|
break;
|
|
20552
20553
|
else if (p[B] === "&") {
|
|
20553
|
-
const
|
|
20554
|
-
if (
|
|
20555
|
-
return
|
|
20556
|
-
B =
|
|
20554
|
+
const x = h(p, B);
|
|
20555
|
+
if (x == -1)
|
|
20556
|
+
return b("InvalidChar", "char '&' is not expected.", g(p, B));
|
|
20557
|
+
B = x;
|
|
20557
20558
|
} else if (D === !0 && !n(p[B]))
|
|
20558
|
-
return
|
|
20559
|
+
return b("InvalidXml", "Extra text at the end", g(p, B));
|
|
20559
20560
|
p[B] === "<" && B--;
|
|
20560
20561
|
}
|
|
20561
20562
|
} else {
|
|
20562
20563
|
if (n(p[B]))
|
|
20563
20564
|
continue;
|
|
20564
|
-
return
|
|
20565
|
+
return b("InvalidChar", "char '" + p[B] + "' is not expected.", g(p, B));
|
|
20565
20566
|
}
|
|
20566
20567
|
if (O) {
|
|
20567
|
-
if (
|
|
20568
|
-
return
|
|
20569
|
-
if (
|
|
20570
|
-
return
|
|
20571
|
-
} else return
|
|
20568
|
+
if (S.length == 1)
|
|
20569
|
+
return b("InvalidTag", "Unclosed tag '" + S[0].tagName + "'.", g(p, S[0].tagStartPos));
|
|
20570
|
+
if (S.length > 0)
|
|
20571
|
+
return b("InvalidXml", "Invalid '" + JSON.stringify(S.map((B) => B.tagName), null, 4).replace(/\r?\n/g, "") + "' found.", { line: 1, col: 1 });
|
|
20572
|
+
} else return b("InvalidXml", "Start tag expected.", 1);
|
|
20572
20573
|
return !0;
|
|
20573
20574
|
};
|
|
20574
20575
|
function n(p) {
|
|
@@ -20576,12 +20577,12 @@ function fd() {
|
|
|
20576
20577
|
` || p === "\r";
|
|
20577
20578
|
}
|
|
20578
20579
|
function r(p, y) {
|
|
20579
|
-
const
|
|
20580
|
+
const S = y;
|
|
20580
20581
|
for (; y < p.length; y++)
|
|
20581
20582
|
if (p[y] == "?" || p[y] == " ") {
|
|
20582
|
-
const O = p.substr(
|
|
20583
|
+
const O = p.substr(S, y - S);
|
|
20583
20584
|
if (y > 5 && O === "xml")
|
|
20584
|
-
return
|
|
20585
|
+
return b("InvalidXml", "XML declaration allowed only at the start of the document.", g(p, y));
|
|
20585
20586
|
if (p[y] == "?" && p[y + 1] == ">") {
|
|
20586
20587
|
y++;
|
|
20587
20588
|
break;
|
|
@@ -20598,11 +20599,11 @@ function fd() {
|
|
|
20598
20599
|
break;
|
|
20599
20600
|
}
|
|
20600
20601
|
} else if (p.length > y + 8 && p[y + 1] === "D" && p[y + 2] === "O" && p[y + 3] === "C" && p[y + 4] === "T" && p[y + 5] === "Y" && p[y + 6] === "P" && p[y + 7] === "E") {
|
|
20601
|
-
let
|
|
20602
|
+
let S = 1;
|
|
20602
20603
|
for (y += 8; y < p.length; y++)
|
|
20603
20604
|
if (p[y] === "<")
|
|
20604
|
-
|
|
20605
|
-
else if (p[y] === ">" && (
|
|
20605
|
+
S++;
|
|
20606
|
+
else if (p[y] === ">" && (S--, S === 0))
|
|
20606
20607
|
break;
|
|
20607
20608
|
} else if (p.length > y + 9 && p[y + 1] === "[" && p[y + 2] === "C" && p[y + 3] === "D" && p[y + 4] === "A" && p[y + 5] === "T" && p[y + 6] === "A" && p[y + 7] === "[") {
|
|
20608
20609
|
for (y += 8; y < p.length; y++)
|
|
@@ -20615,7 +20616,7 @@ function fd() {
|
|
|
20615
20616
|
}
|
|
20616
20617
|
const s = '"', o = "'";
|
|
20617
20618
|
function a(p, y) {
|
|
20618
|
-
let
|
|
20619
|
+
let S = "", O = "", D = !1;
|
|
20619
20620
|
for (; y < p.length; y++) {
|
|
20620
20621
|
if (p[y] === s || p[y] === o)
|
|
20621
20622
|
O === "" ? O = p[y] : O !== p[y] || (O = "");
|
|
@@ -20623,40 +20624,40 @@ function fd() {
|
|
|
20623
20624
|
D = !0;
|
|
20624
20625
|
break;
|
|
20625
20626
|
}
|
|
20626
|
-
|
|
20627
|
+
S += p[y];
|
|
20627
20628
|
}
|
|
20628
20629
|
return O !== "" ? !1 : {
|
|
20629
|
-
value:
|
|
20630
|
+
value: S,
|
|
20630
20631
|
index: y,
|
|
20631
20632
|
tagClosed: D
|
|
20632
20633
|
};
|
|
20633
20634
|
}
|
|
20634
20635
|
const u = new RegExp(`(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['"])(([\\s\\S])*?)\\5)?`, "g");
|
|
20635
20636
|
function c(p, y) {
|
|
20636
|
-
const
|
|
20637
|
-
for (let D = 0; D <
|
|
20638
|
-
if (
|
|
20639
|
-
return
|
|
20640
|
-
if (
|
|
20641
|
-
return
|
|
20642
|
-
if (
|
|
20643
|
-
return
|
|
20644
|
-
const B =
|
|
20637
|
+
const S = e.getAllMatches(p, u), O = {};
|
|
20638
|
+
for (let D = 0; D < S.length; D++) {
|
|
20639
|
+
if (S[D][1].length === 0)
|
|
20640
|
+
return b("InvalidAttr", "Attribute '" + S[D][2] + "' has no space in starting.", _(S[D]));
|
|
20641
|
+
if (S[D][3] !== void 0 && S[D][4] === void 0)
|
|
20642
|
+
return b("InvalidAttr", "Attribute '" + S[D][2] + "' is without value.", _(S[D]));
|
|
20643
|
+
if (S[D][3] === void 0 && !y.allowBooleanAttributes)
|
|
20644
|
+
return b("InvalidAttr", "boolean attribute '" + S[D][2] + "' is not allowed.", _(S[D]));
|
|
20645
|
+
const B = S[D][2];
|
|
20645
20646
|
if (!f(B))
|
|
20646
|
-
return
|
|
20647
|
+
return b("InvalidAttr", "Attribute '" + B + "' is an invalid name.", _(S[D]));
|
|
20647
20648
|
if (!O.hasOwnProperty(B))
|
|
20648
20649
|
O[B] = 1;
|
|
20649
20650
|
else
|
|
20650
|
-
return
|
|
20651
|
+
return b("InvalidAttr", "Attribute '" + B + "' is repeated.", _(S[D]));
|
|
20651
20652
|
}
|
|
20652
20653
|
return !0;
|
|
20653
20654
|
}
|
|
20654
20655
|
function d(p, y) {
|
|
20655
|
-
let
|
|
20656
|
-
for (p[y] === "x" && (y++,
|
|
20656
|
+
let S = /\d/;
|
|
20657
|
+
for (p[y] === "x" && (y++, S = /[\da-fA-F]/); y < p.length; y++) {
|
|
20657
20658
|
if (p[y] === ";")
|
|
20658
20659
|
return y;
|
|
20659
|
-
if (!p[y].match(
|
|
20660
|
+
if (!p[y].match(S))
|
|
20660
20661
|
break;
|
|
20661
20662
|
}
|
|
20662
20663
|
return -1;
|
|
@@ -20666,37 +20667,37 @@ function fd() {
|
|
|
20666
20667
|
return -1;
|
|
20667
20668
|
if (p[y] === "#")
|
|
20668
20669
|
return y++, d(p, y);
|
|
20669
|
-
let
|
|
20670
|
-
for (; y < p.length; y++,
|
|
20671
|
-
if (!(p[y].match(/\w/) &&
|
|
20670
|
+
let S = 0;
|
|
20671
|
+
for (; y < p.length; y++, S++)
|
|
20672
|
+
if (!(p[y].match(/\w/) && S < 20)) {
|
|
20672
20673
|
if (p[y] === ";")
|
|
20673
20674
|
break;
|
|
20674
20675
|
return -1;
|
|
20675
20676
|
}
|
|
20676
20677
|
return y;
|
|
20677
20678
|
}
|
|
20678
|
-
function
|
|
20679
|
+
function b(p, y, S) {
|
|
20679
20680
|
return {
|
|
20680
20681
|
err: {
|
|
20681
20682
|
code: p,
|
|
20682
20683
|
msg: y,
|
|
20683
|
-
line:
|
|
20684
|
-
col:
|
|
20684
|
+
line: S.line || S,
|
|
20685
|
+
col: S.col
|
|
20685
20686
|
}
|
|
20686
20687
|
};
|
|
20687
20688
|
}
|
|
20688
20689
|
function f(p) {
|
|
20689
20690
|
return e.isName(p);
|
|
20690
20691
|
}
|
|
20691
|
-
function
|
|
20692
|
+
function m(p) {
|
|
20692
20693
|
return e.isName(p);
|
|
20693
20694
|
}
|
|
20694
20695
|
function g(p, y) {
|
|
20695
|
-
const
|
|
20696
|
+
const S = p.substring(0, y).split(/\r?\n/);
|
|
20696
20697
|
return {
|
|
20697
|
-
line:
|
|
20698
|
+
line: S.length,
|
|
20698
20699
|
// column number is last line's length + 1, because column numbering starts at 1:
|
|
20699
|
-
col:
|
|
20700
|
+
col: S[S.length - 1].length + 1
|
|
20700
20701
|
};
|
|
20701
20702
|
}
|
|
20702
20703
|
function _(p) {
|
|
@@ -20835,40 +20836,40 @@ function q_() {
|
|
|
20835
20836
|
let c = 0;
|
|
20836
20837
|
if (o[a + 3] === "O" && o[a + 4] === "C" && o[a + 5] === "T" && o[a + 6] === "Y" && o[a + 7] === "P" && o[a + 8] === "E") {
|
|
20837
20838
|
a = a + 9;
|
|
20838
|
-
let d = 1, h = !1,
|
|
20839
|
+
let d = 1, h = !1, b = !1, f = "";
|
|
20839
20840
|
for (; a < o.length; a++)
|
|
20840
|
-
if (o[a] === "<" && !
|
|
20841
|
+
if (o[a] === "<" && !b) {
|
|
20841
20842
|
if (h && r(o, "!ENTITY", a)) {
|
|
20842
20843
|
a += 7;
|
|
20843
|
-
let
|
|
20844
|
-
if ([
|
|
20844
|
+
let m, g;
|
|
20845
|
+
if ([m, g, a] = this.readEntityExp(o, a + 1, this.suppressValidationErr), g.indexOf("&") === -1) {
|
|
20845
20846
|
if (this.options.enabled !== !1 && this.options.maxEntityCount != null && c >= this.options.maxEntityCount)
|
|
20846
20847
|
throw new Error(
|
|
20847
20848
|
`Entity count (${c + 1}) exceeds maximum allowed (${this.options.maxEntityCount})`
|
|
20848
20849
|
);
|
|
20849
|
-
const _ =
|
|
20850
|
-
u[
|
|
20850
|
+
const _ = m.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
20851
|
+
u[m] = {
|
|
20851
20852
|
regx: RegExp(`&${_};`, "g"),
|
|
20852
20853
|
val: g
|
|
20853
20854
|
}, c++;
|
|
20854
20855
|
}
|
|
20855
20856
|
} else if (h && r(o, "!ELEMENT", a)) {
|
|
20856
20857
|
a += 8;
|
|
20857
|
-
const { index:
|
|
20858
|
-
a =
|
|
20858
|
+
const { index: m } = this.readElementExp(o, a + 1);
|
|
20859
|
+
a = m;
|
|
20859
20860
|
} else if (h && r(o, "!ATTLIST", a))
|
|
20860
20861
|
a += 8;
|
|
20861
20862
|
else if (h && r(o, "!NOTATION", a)) {
|
|
20862
20863
|
a += 9;
|
|
20863
|
-
const { index:
|
|
20864
|
-
a =
|
|
20864
|
+
const { index: m } = this.readNotationExp(o, a + 1, this.suppressValidationErr);
|
|
20865
|
+
a = m;
|
|
20865
20866
|
} else if (r(o, "!--", a))
|
|
20866
|
-
|
|
20867
|
+
b = !0;
|
|
20867
20868
|
else
|
|
20868
20869
|
throw new Error("Invalid DOCTYPE");
|
|
20869
20870
|
d++, f = "";
|
|
20870
20871
|
} else if (o[a] === ">") {
|
|
20871
|
-
if (
|
|
20872
|
+
if (b ? o[a - 1] === "-" && o[a - 2] === "-" && (b = !1, d--) : d--, d === 0)
|
|
20872
20873
|
break;
|
|
20873
20874
|
} else o[a] === "[" ? h = !0 : f += o[a];
|
|
20874
20875
|
if (d !== 0)
|
|
@@ -20966,23 +20967,23 @@ function q_() {
|
|
|
20966
20967
|
if (d = "NOTATION", a += 8, a = n(o, a), o[a] !== "(")
|
|
20967
20968
|
throw new Error(`Expected '(', found "${o[a]}"`);
|
|
20968
20969
|
a++;
|
|
20969
|
-
let
|
|
20970
|
+
let b = [];
|
|
20970
20971
|
for (; a < o.length && o[a] !== ")"; ) {
|
|
20971
20972
|
let f = "";
|
|
20972
20973
|
for (; a < o.length && o[a] !== "|" && o[a] !== ")"; )
|
|
20973
20974
|
f += o[a], a++;
|
|
20974
20975
|
if (f = f.trim(), !i(f))
|
|
20975
20976
|
throw new Error(`Invalid notation name: "${f}"`);
|
|
20976
|
-
|
|
20977
|
+
b.push(f), o[a] === "|" && (a++, a = n(o, a));
|
|
20977
20978
|
}
|
|
20978
20979
|
if (o[a] !== ")")
|
|
20979
20980
|
throw new Error("Unterminated list of notations");
|
|
20980
|
-
a++, d += " (" +
|
|
20981
|
+
a++, d += " (" + b.join("|") + ")";
|
|
20981
20982
|
} else {
|
|
20982
20983
|
for (; a < o.length && !/\s/.test(o[a]); )
|
|
20983
20984
|
d += o[a], a++;
|
|
20984
|
-
const
|
|
20985
|
-
if (!this.suppressValidationErr && !
|
|
20985
|
+
const b = ["CDATA", "ID", "IDREF", "IDREFS", "ENTITY", "ENTITIES", "NMTOKEN", "NMTOKENS"];
|
|
20986
|
+
if (!this.suppressValidationErr && !b.includes(d.toUpperCase()))
|
|
20986
20987
|
throw new Error(`Invalid attribute type: "${d}"`);
|
|
20987
20988
|
}
|
|
20988
20989
|
a = n(o, a);
|
|
@@ -21045,13 +21046,13 @@ function Y_() {
|
|
|
21045
21046
|
const c = t.exec(u);
|
|
21046
21047
|
if (c) {
|
|
21047
21048
|
const d = c[1], h = c[2];
|
|
21048
|
-
let
|
|
21049
|
+
let b = i(c[3]);
|
|
21049
21050
|
if (!a.leadingZeros && h.length > 0 && d && u[2] !== ".") return o;
|
|
21050
21051
|
if (!a.leadingZeros && h.length > 0 && !d && u[1] !== ".") return o;
|
|
21051
21052
|
if (a.leadingZeros && h === o) return 0;
|
|
21052
21053
|
{
|
|
21053
|
-
const f = Number(u),
|
|
21054
|
-
return
|
|
21054
|
+
const f = Number(u), m = "" + f;
|
|
21055
|
+
return m.search(/[eE]/) !== -1 ? a.eNotation ? f : o : u.indexOf(".") !== -1 ? m === "0" && b === "" || m === b || d && m === "-" + b ? f : o : h ? b === m || d + b === m ? f : o : u === m || u === d + m ? f : o;
|
|
21055
21056
|
}
|
|
21056
21057
|
} else
|
|
21057
21058
|
return o;
|
|
@@ -21109,7 +21110,7 @@ function W_() {
|
|
|
21109
21110
|
inr: { regex: /&(inr|#8377);/g, val: "₹" },
|
|
21110
21111
|
num_dec: { regex: /&#([0-9]{1,7});/g, val: (k, P) => D(P, 10, "&#") },
|
|
21111
21112
|
num_hex: { regex: /&#x([0-9a-fA-F]{1,6});/g, val: (k, P) => D(P, 16, "&#x") }
|
|
21112
|
-
}, this.addExternalEntities = o, this.parseXml = h, this.parseTextData = a, this.resolveNameSpace = u, this.buildAttributesMap = d, this.isItStopNode = g, this.replaceEntitiesValue = f, this.readStopNodeData =
|
|
21113
|
+
}, this.addExternalEntities = o, this.parseXml = h, this.parseTextData = a, this.resolveNameSpace = u, this.buildAttributesMap = d, this.isItStopNode = g, this.replaceEntitiesValue = f, this.readStopNodeData = S, this.saveTextToParentTag = m, this.addChild = b, this.ignoreAttributesFn = i(this.options.ignoreAttributes), this.entityExpansionCount = 0, this.currentExpandedLength = 0, this.options.stopNodes && this.options.stopNodes.length > 0) {
|
|
21113
21114
|
this.stopNodesExact = /* @__PURE__ */ new Set(), this.stopNodesWildcard = /* @__PURE__ */ new Set();
|
|
21114
21115
|
for (let k = 0; k < this.options.stopNodes.length; k++) {
|
|
21115
21116
|
const P = this.options.stopNodes[k];
|
|
@@ -21118,36 +21119,36 @@ function W_() {
|
|
|
21118
21119
|
}
|
|
21119
21120
|
}
|
|
21120
21121
|
}
|
|
21121
|
-
function o(
|
|
21122
|
-
const C = Object.keys(
|
|
21122
|
+
function o(A) {
|
|
21123
|
+
const C = Object.keys(A);
|
|
21123
21124
|
for (let k = 0; k < C.length; k++) {
|
|
21124
21125
|
const P = C[k], R = P.replace(/[.\-+*:]/g, "\\.");
|
|
21125
21126
|
this.lastEntities[P] = {
|
|
21126
21127
|
regex: new RegExp("&" + R + ";", "g"),
|
|
21127
|
-
val:
|
|
21128
|
+
val: A[P]
|
|
21128
21129
|
};
|
|
21129
21130
|
}
|
|
21130
21131
|
}
|
|
21131
|
-
function a(
|
|
21132
|
-
if (
|
|
21133
|
-
M || (
|
|
21134
|
-
const T = this.options.tagValueProcessor(C,
|
|
21135
|
-
return T == null ?
|
|
21132
|
+
function a(A, C, k, P, R, x, M) {
|
|
21133
|
+
if (A !== void 0 && (this.options.trimValues && !P && (A = A.trim()), A.length > 0)) {
|
|
21134
|
+
M || (A = this.replaceEntitiesValue(A, C, k));
|
|
21135
|
+
const T = this.options.tagValueProcessor(C, A, k, R, x);
|
|
21136
|
+
return T == null ? A : typeof T != typeof A || T !== A ? T : this.options.trimValues ? O(A, this.options.parseTagValue, this.options.numberParseOptions) : A.trim() === A ? O(A, this.options.parseTagValue, this.options.numberParseOptions) : A;
|
|
21136
21137
|
}
|
|
21137
21138
|
}
|
|
21138
|
-
function u(
|
|
21139
|
+
function u(A) {
|
|
21139
21140
|
if (this.options.removeNSPrefix) {
|
|
21140
|
-
const C =
|
|
21141
|
+
const C = A.split(":"), k = A.charAt(0) === "/" ? "/" : "";
|
|
21141
21142
|
if (C[0] === "xmlns")
|
|
21142
21143
|
return "";
|
|
21143
|
-
C.length === 2 && (
|
|
21144
|
+
C.length === 2 && (A = k + C[1]);
|
|
21144
21145
|
}
|
|
21145
|
-
return
|
|
21146
|
+
return A;
|
|
21146
21147
|
}
|
|
21147
21148
|
const c = new RegExp(`([^\\s=]+)\\s*(=\\s*(['"])([\\s\\S]*?)\\3)?`, "gm");
|
|
21148
|
-
function d(
|
|
21149
|
-
if (this.options.ignoreAttributes !== !0 && typeof
|
|
21150
|
-
const P = e.getAllMatches(
|
|
21149
|
+
function d(A, C, k) {
|
|
21150
|
+
if (this.options.ignoreAttributes !== !0 && typeof A == "string") {
|
|
21151
|
+
const P = e.getAllMatches(A, c), R = P.length, x = {};
|
|
21151
21152
|
for (let M = 0; M < R; M++) {
|
|
21152
21153
|
const T = this.resolveNameSpace(P[M][1]);
|
|
21153
21154
|
if (this.ignoreAttributesFn(T, C))
|
|
@@ -21157,34 +21158,34 @@ function W_() {
|
|
|
21157
21158
|
if (this.options.transformAttributeName && (W = this.options.transformAttributeName(W)), W = B(W, this.options), U !== void 0) {
|
|
21158
21159
|
this.options.trimValues && (U = U.trim()), U = this.replaceEntitiesValue(U, k, C);
|
|
21159
21160
|
const G = this.options.attributeValueProcessor(T, U, C);
|
|
21160
|
-
G == null ?
|
|
21161
|
+
G == null ? x[W] = U : typeof G != typeof U || G !== U ? x[W] = G : x[W] = O(
|
|
21161
21162
|
U,
|
|
21162
21163
|
this.options.parseAttributeValue,
|
|
21163
21164
|
this.options.numberParseOptions
|
|
21164
21165
|
);
|
|
21165
|
-
} else this.options.allowBooleanAttributes && (
|
|
21166
|
+
} else this.options.allowBooleanAttributes && (x[W] = !0);
|
|
21166
21167
|
}
|
|
21167
|
-
if (!Object.keys(
|
|
21168
|
+
if (!Object.keys(x).length)
|
|
21168
21169
|
return;
|
|
21169
21170
|
if (this.options.attributesGroupName) {
|
|
21170
21171
|
const M = {};
|
|
21171
|
-
return M[this.options.attributesGroupName] =
|
|
21172
|
+
return M[this.options.attributesGroupName] = x, M;
|
|
21172
21173
|
}
|
|
21173
|
-
return
|
|
21174
|
+
return x;
|
|
21174
21175
|
}
|
|
21175
21176
|
}
|
|
21176
|
-
const h = function(
|
|
21177
|
-
|
|
21177
|
+
const h = function(A) {
|
|
21178
|
+
A = A.replace(/\r\n?/g, `
|
|
21178
21179
|
`);
|
|
21179
21180
|
const C = new t("!xml");
|
|
21180
21181
|
let k = C, P = "", R = "";
|
|
21181
21182
|
this.entityExpansionCount = 0, this.currentExpandedLength = 0;
|
|
21182
|
-
const
|
|
21183
|
-
for (let M = 0; M <
|
|
21184
|
-
if (
|
|
21185
|
-
if (
|
|
21186
|
-
const U = p(
|
|
21187
|
-
let W =
|
|
21183
|
+
const x = new n(this.options.processEntities);
|
|
21184
|
+
for (let M = 0; M < A.length; M++)
|
|
21185
|
+
if (A[M] === "<")
|
|
21186
|
+
if (A[M + 1] === "/") {
|
|
21187
|
+
const U = p(A, ">", M, "Closing Tag is not closed.");
|
|
21188
|
+
let W = A.substring(M + 2, U).trim();
|
|
21188
21189
|
if (this.options.removeNSPrefix) {
|
|
21189
21190
|
const Z = W.indexOf(":");
|
|
21190
21191
|
Z !== -1 && (W = W.substr(Z + 1));
|
|
@@ -21195,31 +21196,31 @@ function W_() {
|
|
|
21195
21196
|
throw new Error(`Unpaired tag can not be used as closing tag: </${W}>`);
|
|
21196
21197
|
let se = 0;
|
|
21197
21198
|
G && this.options.unpairedTags.indexOf(G) !== -1 ? (se = R.lastIndexOf(".", R.lastIndexOf(".") - 1), this.tagsNodeStack.pop()) : se = R.lastIndexOf("."), R = R.substring(0, se), k = this.tagsNodeStack.pop(), P = "", M = U;
|
|
21198
|
-
} else if (
|
|
21199
|
-
let U = y(
|
|
21199
|
+
} else if (A[M + 1] === "?") {
|
|
21200
|
+
let U = y(A, M, !1, "?>");
|
|
21200
21201
|
if (!U) throw new Error("Pi Tag is not closed.");
|
|
21201
21202
|
if (P = this.saveTextToParentTag(P, k, R), !(this.options.ignoreDeclaration && U.tagName === "?xml" || this.options.ignorePiTags)) {
|
|
21202
21203
|
const W = new t(U.tagName);
|
|
21203
21204
|
W.add(this.options.textNodeName, ""), U.tagName !== U.tagExp && U.attrExpPresent && (W[":@"] = this.buildAttributesMap(U.tagExp, R, U.tagName)), this.addChild(k, W, R, M);
|
|
21204
21205
|
}
|
|
21205
21206
|
M = U.closeIndex + 1;
|
|
21206
|
-
} else if (
|
|
21207
|
-
const U = p(
|
|
21207
|
+
} else if (A.substr(M + 1, 3) === "!--") {
|
|
21208
|
+
const U = p(A, "-->", M + 4, "Comment is not closed.");
|
|
21208
21209
|
if (this.options.commentPropName) {
|
|
21209
|
-
const W =
|
|
21210
|
+
const W = A.substring(M + 4, U - 2);
|
|
21210
21211
|
P = this.saveTextToParentTag(P, k, R), k.add(this.options.commentPropName, [{ [this.options.textNodeName]: W }]);
|
|
21211
21212
|
}
|
|
21212
21213
|
M = U;
|
|
21213
|
-
} else if (
|
|
21214
|
-
const U =
|
|
21214
|
+
} else if (A.substr(M + 1, 2) === "!D") {
|
|
21215
|
+
const U = x.readDocType(A, M);
|
|
21215
21216
|
this.docTypeEntities = U.entities, M = U.i;
|
|
21216
|
-
} else if (
|
|
21217
|
-
const U = p(
|
|
21217
|
+
} else if (A.substr(M + 1, 2) === "![") {
|
|
21218
|
+
const U = p(A, "]]>", M, "CDATA is not closed.") - 2, W = A.substring(M + 9, U);
|
|
21218
21219
|
P = this.saveTextToParentTag(P, k, R);
|
|
21219
21220
|
let G = this.parseTextData(W, k.tagname, R, !0, !1, !0, !0);
|
|
21220
21221
|
G == null && (G = ""), this.options.cdataPropName ? k.add(this.options.cdataPropName, [{ [this.options.textNodeName]: W }]) : k.add(this.options.textNodeName, G), M = U + 2;
|
|
21221
21222
|
} else {
|
|
21222
|
-
let U = y(
|
|
21223
|
+
let U = y(A, M, this.options.removeNSPrefix), W = U.tagName;
|
|
21223
21224
|
const G = U.rawTagName;
|
|
21224
21225
|
let se = U.tagExp, Z = U.attrExpPresent, ce = U.closeIndex;
|
|
21225
21226
|
if (this.options.transformTagName) {
|
|
@@ -21239,7 +21240,7 @@ function W_() {
|
|
|
21239
21240
|
else if (this.options.unpairedTags.indexOf(W) !== -1)
|
|
21240
21241
|
M = U.closeIndex;
|
|
21241
21242
|
else {
|
|
21242
|
-
const ie = this.readStopNodeData(
|
|
21243
|
+
const ie = this.readStopNodeData(A, G, ce + 1);
|
|
21243
21244
|
if (!ie) throw new Error(`Unexpected end of ${G}`);
|
|
21244
21245
|
M = ie.i, oe = ie.tagContent;
|
|
21245
21246
|
}
|
|
@@ -21267,105 +21268,105 @@ function W_() {
|
|
|
21267
21268
|
}
|
|
21268
21269
|
}
|
|
21269
21270
|
else
|
|
21270
|
-
P +=
|
|
21271
|
+
P += A[M];
|
|
21271
21272
|
return C.child;
|
|
21272
21273
|
};
|
|
21273
|
-
function
|
|
21274
|
+
function b(A, C, k, P) {
|
|
21274
21275
|
this.options.captureMetaData || (P = void 0);
|
|
21275
21276
|
const R = this.options.updateTag(C.tagname, k, C[":@"]);
|
|
21276
|
-
R === !1 || (typeof R == "string" && (C.tagname = R),
|
|
21277
|
+
R === !1 || (typeof R == "string" && (C.tagname = R), A.addChild(C, P));
|
|
21277
21278
|
}
|
|
21278
|
-
const f = function(
|
|
21279
|
-
if (
|
|
21280
|
-
return
|
|
21279
|
+
const f = function(A, C, k) {
|
|
21280
|
+
if (A.indexOf("&") === -1)
|
|
21281
|
+
return A;
|
|
21281
21282
|
const P = this.options.processEntities;
|
|
21282
21283
|
if (!P.enabled || P.allowedTags && !P.allowedTags.includes(C) || P.tagFilter && !P.tagFilter(C, k))
|
|
21283
|
-
return
|
|
21284
|
+
return A;
|
|
21284
21285
|
for (let R in this.docTypeEntities) {
|
|
21285
|
-
const
|
|
21286
|
+
const x = this.docTypeEntities[R], M = A.match(x.regx);
|
|
21286
21287
|
if (M) {
|
|
21287
21288
|
if (this.entityExpansionCount += M.length, P.maxTotalExpansions && this.entityExpansionCount > P.maxTotalExpansions)
|
|
21288
21289
|
throw new Error(
|
|
21289
21290
|
`Entity expansion limit exceeded: ${this.entityExpansionCount} > ${P.maxTotalExpansions}`
|
|
21290
21291
|
);
|
|
21291
|
-
const T =
|
|
21292
|
-
if (
|
|
21292
|
+
const T = A.length;
|
|
21293
|
+
if (A = A.replace(x.regx, x.val), P.maxExpandedLength && (this.currentExpandedLength += A.length - T, this.currentExpandedLength > P.maxExpandedLength))
|
|
21293
21294
|
throw new Error(
|
|
21294
21295
|
`Total expanded content size exceeded: ${this.currentExpandedLength} > ${P.maxExpandedLength}`
|
|
21295
21296
|
);
|
|
21296
21297
|
}
|
|
21297
21298
|
}
|
|
21298
|
-
if (
|
|
21299
|
+
if (A.indexOf("&") === -1) return A;
|
|
21299
21300
|
for (const R of Object.keys(this.lastEntities)) {
|
|
21300
|
-
const
|
|
21301
|
+
const x = this.lastEntities[R], M = A.match(x.regex);
|
|
21301
21302
|
if (M && (this.entityExpansionCount += M.length, P.maxTotalExpansions && this.entityExpansionCount > P.maxTotalExpansions))
|
|
21302
21303
|
throw new Error(
|
|
21303
21304
|
`Entity expansion limit exceeded: ${this.entityExpansionCount} > ${P.maxTotalExpansions}`
|
|
21304
21305
|
);
|
|
21305
|
-
|
|
21306
|
+
A = A.replace(x.regex, x.val);
|
|
21306
21307
|
}
|
|
21307
|
-
if (
|
|
21308
|
+
if (A.indexOf("&") === -1) return A;
|
|
21308
21309
|
if (this.options.htmlEntities)
|
|
21309
21310
|
for (const R of Object.keys(this.htmlEntities)) {
|
|
21310
|
-
const
|
|
21311
|
+
const x = this.htmlEntities[R], M = A.match(x.regex);
|
|
21311
21312
|
if (M && (this.entityExpansionCount += M.length, P.maxTotalExpansions && this.entityExpansionCount > P.maxTotalExpansions))
|
|
21312
21313
|
throw new Error(
|
|
21313
21314
|
`Entity expansion limit exceeded: ${this.entityExpansionCount} > ${P.maxTotalExpansions}`
|
|
21314
21315
|
);
|
|
21315
|
-
|
|
21316
|
+
A = A.replace(x.regex, x.val);
|
|
21316
21317
|
}
|
|
21317
|
-
return
|
|
21318
|
+
return A = A.replace(this.ampEntity.regex, this.ampEntity.val), A;
|
|
21318
21319
|
};
|
|
21319
|
-
function
|
|
21320
|
-
return
|
|
21321
|
-
|
|
21320
|
+
function m(A, C, k, P) {
|
|
21321
|
+
return A && (P === void 0 && (P = C.child.length === 0), A = this.parseTextData(
|
|
21322
|
+
A,
|
|
21322
21323
|
C.tagname,
|
|
21323
21324
|
k,
|
|
21324
21325
|
!1,
|
|
21325
21326
|
C[":@"] ? Object.keys(C[":@"]).length !== 0 : !1,
|
|
21326
21327
|
P
|
|
21327
|
-
),
|
|
21328
|
+
), A !== void 0 && A !== "" && C.add(this.options.textNodeName, A), A = ""), A;
|
|
21328
21329
|
}
|
|
21329
|
-
function g(
|
|
21330
|
-
return !!(C && C.has(P) ||
|
|
21330
|
+
function g(A, C, k, P) {
|
|
21331
|
+
return !!(C && C.has(P) || A && A.has(k));
|
|
21331
21332
|
}
|
|
21332
|
-
function _(
|
|
21333
|
+
function _(A, C, k = ">") {
|
|
21333
21334
|
let P, R = "";
|
|
21334
|
-
for (let
|
|
21335
|
-
let M = x
|
|
21335
|
+
for (let x = C; x < A.length; x++) {
|
|
21336
|
+
let M = A[x];
|
|
21336
21337
|
if (P)
|
|
21337
21338
|
M === P && (P = "");
|
|
21338
21339
|
else if (M === '"' || M === "'")
|
|
21339
21340
|
P = M;
|
|
21340
21341
|
else if (M === k[0])
|
|
21341
21342
|
if (k[1]) {
|
|
21342
|
-
if (x
|
|
21343
|
+
if (A[x + 1] === k[1])
|
|
21343
21344
|
return {
|
|
21344
21345
|
data: R,
|
|
21345
|
-
index:
|
|
21346
|
+
index: x
|
|
21346
21347
|
};
|
|
21347
21348
|
} else
|
|
21348
21349
|
return {
|
|
21349
21350
|
data: R,
|
|
21350
|
-
index:
|
|
21351
|
+
index: x
|
|
21351
21352
|
};
|
|
21352
21353
|
else M === " " && (M = " ");
|
|
21353
21354
|
R += M;
|
|
21354
21355
|
}
|
|
21355
21356
|
}
|
|
21356
|
-
function p(
|
|
21357
|
-
const R =
|
|
21357
|
+
function p(A, C, k, P) {
|
|
21358
|
+
const R = A.indexOf(C, k);
|
|
21358
21359
|
if (R === -1)
|
|
21359
21360
|
throw new Error(P);
|
|
21360
21361
|
return R + C.length - 1;
|
|
21361
21362
|
}
|
|
21362
|
-
function y(
|
|
21363
|
-
const R = _(
|
|
21363
|
+
function y(A, C, k, P = ">") {
|
|
21364
|
+
const R = _(A, C + 1, P);
|
|
21364
21365
|
if (!R) return;
|
|
21365
|
-
let
|
|
21366
|
-
const M = R.index, T =
|
|
21367
|
-
let U =
|
|
21368
|
-
T !== -1 && (U =
|
|
21366
|
+
let x = R.data;
|
|
21367
|
+
const M = R.index, T = x.search(/\s/);
|
|
21368
|
+
let U = x, W = !0;
|
|
21369
|
+
T !== -1 && (U = x.substring(0, T), x = x.substring(T + 1).trimStart());
|
|
21369
21370
|
const G = U;
|
|
21370
21371
|
if (k) {
|
|
21371
21372
|
const se = U.indexOf(":");
|
|
@@ -21373,51 +21374,51 @@ function W_() {
|
|
|
21373
21374
|
}
|
|
21374
21375
|
return {
|
|
21375
21376
|
tagName: U,
|
|
21376
|
-
tagExp:
|
|
21377
|
+
tagExp: x,
|
|
21377
21378
|
closeIndex: M,
|
|
21378
21379
|
attrExpPresent: W,
|
|
21379
21380
|
rawTagName: G
|
|
21380
21381
|
};
|
|
21381
21382
|
}
|
|
21382
|
-
function A
|
|
21383
|
+
function S(A, C, k) {
|
|
21383
21384
|
const P = k;
|
|
21384
21385
|
let R = 1;
|
|
21385
|
-
for (; k <
|
|
21386
|
-
if (
|
|
21387
|
-
if (
|
|
21388
|
-
const
|
|
21389
|
-
if (
|
|
21386
|
+
for (; k < A.length; k++)
|
|
21387
|
+
if (A[k] === "<")
|
|
21388
|
+
if (A[k + 1] === "/") {
|
|
21389
|
+
const x = p(A, ">", k, `${C} is not closed`);
|
|
21390
|
+
if (A.substring(k + 2, x).trim() === C && (R--, R === 0))
|
|
21390
21391
|
return {
|
|
21391
|
-
tagContent:
|
|
21392
|
-
i:
|
|
21392
|
+
tagContent: A.substring(P, k),
|
|
21393
|
+
i: x
|
|
21393
21394
|
};
|
|
21394
|
-
k =
|
|
21395
|
-
} else if (
|
|
21396
|
-
k = p(
|
|
21397
|
-
else if (
|
|
21398
|
-
k = p(
|
|
21399
|
-
else if (
|
|
21400
|
-
k = p(
|
|
21395
|
+
k = x;
|
|
21396
|
+
} else if (A[k + 1] === "?")
|
|
21397
|
+
k = p(A, "?>", k + 1, "StopNode is not closed.");
|
|
21398
|
+
else if (A.substr(k + 1, 3) === "!--")
|
|
21399
|
+
k = p(A, "-->", k + 3, "StopNode is not closed.");
|
|
21400
|
+
else if (A.substr(k + 1, 2) === "![")
|
|
21401
|
+
k = p(A, "]]>", k, "StopNode is not closed.") - 2;
|
|
21401
21402
|
else {
|
|
21402
|
-
const
|
|
21403
|
-
|
|
21403
|
+
const x = y(A, k, ">");
|
|
21404
|
+
x && ((x && x.tagName) === C && x.tagExp[x.tagExp.length - 1] !== "/" && R++, k = x.closeIndex);
|
|
21404
21405
|
}
|
|
21405
21406
|
}
|
|
21406
|
-
function O(
|
|
21407
|
-
if (C && typeof
|
|
21408
|
-
const P =
|
|
21409
|
-
return P === "true" ? !0 : P === "false" ? !1 : r(
|
|
21407
|
+
function O(A, C, k) {
|
|
21408
|
+
if (C && typeof A == "string") {
|
|
21409
|
+
const P = A.trim();
|
|
21410
|
+
return P === "true" ? !0 : P === "false" ? !1 : r(A, k);
|
|
21410
21411
|
} else
|
|
21411
|
-
return e.isExist(
|
|
21412
|
+
return e.isExist(A) ? A : "";
|
|
21412
21413
|
}
|
|
21413
|
-
function D(
|
|
21414
|
-
const P = Number.parseInt(
|
|
21415
|
-
return P >= 0 && P <= 1114111 ? String.fromCodePoint(P) : k +
|
|
21414
|
+
function D(A, C, k) {
|
|
21415
|
+
const P = Number.parseInt(A, C);
|
|
21416
|
+
return P >= 0 && P <= 1114111 ? String.fromCodePoint(P) : k + A + ";";
|
|
21416
21417
|
}
|
|
21417
|
-
function B(
|
|
21418
|
-
if (e.criticalProperties.includes(
|
|
21419
|
-
throw new Error(`[SECURITY] Invalid name: "${
|
|
21420
|
-
return e.DANGEROUS_PROPERTY_NAMES.includes(
|
|
21418
|
+
function B(A, C) {
|
|
21419
|
+
if (e.criticalProperties.includes(A))
|
|
21420
|
+
throw new Error(`[SECURITY] Invalid name: "${A}" is a reserved JavaScript keyword that could cause prototype pollution`);
|
|
21421
|
+
return e.DANGEROUS_PROPERTY_NAMES.includes(A) ? C.onDangerousProperty(A) : A;
|
|
21421
21422
|
}
|
|
21422
21423
|
return Ji = s, Ji;
|
|
21423
21424
|
}
|
|
@@ -21432,17 +21433,17 @@ function G_() {
|
|
|
21432
21433
|
let u;
|
|
21433
21434
|
const c = {};
|
|
21434
21435
|
for (let d = 0; d < s.length; d++) {
|
|
21435
|
-
const h = s[d],
|
|
21436
|
+
const h = s[d], b = n(h);
|
|
21436
21437
|
let f = "";
|
|
21437
|
-
if (a === void 0 ? f =
|
|
21438
|
-
u === void 0 ? u = h[
|
|
21438
|
+
if (a === void 0 ? f = b : f = a + "." + b, b === o.textNodeName)
|
|
21439
|
+
u === void 0 ? u = h[b] : u += "" + h[b];
|
|
21439
21440
|
else {
|
|
21440
|
-
if (
|
|
21441
|
+
if (b === void 0)
|
|
21441
21442
|
continue;
|
|
21442
|
-
if (h[
|
|
21443
|
-
let
|
|
21444
|
-
const g = i(
|
|
21445
|
-
h[":@"] ? r(
|
|
21443
|
+
if (h[b]) {
|
|
21444
|
+
let m = t(h[b], o, f);
|
|
21445
|
+
const g = i(m, o);
|
|
21446
|
+
h[":@"] ? r(m, h[":@"], f, o) : Object.keys(m).length === 1 && m[o.textNodeName] !== void 0 && !o.alwaysCreateTextNode ? m = m[o.textNodeName] : Object.keys(m).length === 0 && (o.alwaysCreateTextNode ? m[o.textNodeName] = "" : m = ""), c[b] !== void 0 && c.hasOwnProperty(b) ? (Array.isArray(c[b]) || (c[b] = [c[b]]), c[b].push(m)) : o.isArray(b, f, g) ? c[b] = [m] : c[b] = m;
|
|
21446
21447
|
}
|
|
21447
21448
|
}
|
|
21448
21449
|
}
|
|
@@ -21459,8 +21460,8 @@ function G_() {
|
|
|
21459
21460
|
if (o) {
|
|
21460
21461
|
const c = Object.keys(o), d = c.length;
|
|
21461
21462
|
for (let h = 0; h < d; h++) {
|
|
21462
|
-
const
|
|
21463
|
-
u.isArray(
|
|
21463
|
+
const b = c[h];
|
|
21464
|
+
u.isArray(b, a + "." + b, !0, !0) ? s[b] = [o[b]] : s[b] = o[b];
|
|
21464
21465
|
}
|
|
21465
21466
|
}
|
|
21466
21467
|
}
|
|
@@ -21528,7 +21529,7 @@ function K_() {
|
|
|
21528
21529
|
return u.format && u.indentBy.length > 0 && (c = e), n(a, u, "", c);
|
|
21529
21530
|
}
|
|
21530
21531
|
function n(a, u, c, d) {
|
|
21531
|
-
let h = "",
|
|
21532
|
+
let h = "", b = !1;
|
|
21532
21533
|
if (!Array.isArray(a)) {
|
|
21533
21534
|
if (a != null) {
|
|
21534
21535
|
let f = a.toString();
|
|
@@ -21537,29 +21538,29 @@ function K_() {
|
|
|
21537
21538
|
return "";
|
|
21538
21539
|
}
|
|
21539
21540
|
for (let f = 0; f < a.length; f++) {
|
|
21540
|
-
const
|
|
21541
|
+
const m = a[f], g = r(m);
|
|
21541
21542
|
if (g === void 0) continue;
|
|
21542
21543
|
let _ = "";
|
|
21543
21544
|
if (c.length === 0 ? _ = g : _ = `${c}.${g}`, g === u.textNodeName) {
|
|
21544
|
-
let D =
|
|
21545
|
-
s(_, u) || (D = u.tagValueProcessor(g, D), D = o(D, u)),
|
|
21545
|
+
let D = m[g];
|
|
21546
|
+
s(_, u) || (D = u.tagValueProcessor(g, D), D = o(D, u)), b && (h += d), h += D, b = !1;
|
|
21546
21547
|
continue;
|
|
21547
21548
|
} else if (g === u.cdataPropName) {
|
|
21548
|
-
|
|
21549
|
+
b && (h += d), h += `<![CDATA[${m[g][0][u.textNodeName]}]]>`, b = !1;
|
|
21549
21550
|
continue;
|
|
21550
21551
|
} else if (g === u.commentPropName) {
|
|
21551
|
-
h += d + `<!--${
|
|
21552
|
+
h += d + `<!--${m[g][0][u.textNodeName]}-->`, b = !0;
|
|
21552
21553
|
continue;
|
|
21553
21554
|
} else if (g[0] === "?") {
|
|
21554
|
-
const D = i(
|
|
21555
|
-
let
|
|
21556
|
-
|
|
21555
|
+
const D = i(m[":@"], u), B = g === "?xml" ? "" : d;
|
|
21556
|
+
let A = m[g][0][u.textNodeName];
|
|
21557
|
+
A = A.length !== 0 ? " " + A : "", h += B + `<${g}${A}${D}?>`, b = !0;
|
|
21557
21558
|
continue;
|
|
21558
21559
|
}
|
|
21559
21560
|
let p = d;
|
|
21560
21561
|
p !== "" && (p += u.indentBy);
|
|
21561
|
-
const y = i(
|
|
21562
|
-
u.unpairedTags.indexOf(g) !== -1 ? u.suppressUnpairedNode ? h +=
|
|
21562
|
+
const y = i(m[":@"], u), S = d + `<${g}${y}`, O = n(m[g], u, _, p);
|
|
21563
|
+
u.unpairedTags.indexOf(g) !== -1 ? u.suppressUnpairedNode ? h += S + ">" : h += S + "/>" : (!O || O.length === 0) && u.suppressEmptyNode ? h += S + "/>" : O && O.endsWith(">") ? h += S + `>${O}${d}</${g}>` : (h += S + ">", O && d !== "" && (O.includes("/>") || O.includes("</")) ? h += d + u.indentBy + O + d : h += O, h += `</${g}>`), b = !0;
|
|
21563
21564
|
}
|
|
21564
21565
|
return h;
|
|
21565
21566
|
}
|
|
@@ -21651,7 +21652,7 @@ function X_() {
|
|
|
21651
21652
|
}), this.j2x(a, 0, []).val);
|
|
21652
21653
|
}, r.prototype.j2x = function(a, u, c) {
|
|
21653
21654
|
let d = "", h = "";
|
|
21654
|
-
const
|
|
21655
|
+
const b = c.join(".");
|
|
21655
21656
|
for (let f in a)
|
|
21656
21657
|
if (Object.prototype.hasOwnProperty.call(a, f))
|
|
21657
21658
|
if (typeof a[f] > "u")
|
|
@@ -21661,39 +21662,39 @@ function X_() {
|
|
|
21661
21662
|
else if (a[f] instanceof Date)
|
|
21662
21663
|
h += this.buildTextValNode(a[f], f, "", u);
|
|
21663
21664
|
else if (typeof a[f] != "object") {
|
|
21664
|
-
const
|
|
21665
|
-
if (
|
|
21666
|
-
d += this.buildAttrPairStr(
|
|
21667
|
-
else if (!
|
|
21665
|
+
const m = this.isAttribute(f);
|
|
21666
|
+
if (m && !this.ignoreAttributesFn(m, b))
|
|
21667
|
+
d += this.buildAttrPairStr(m, "" + a[f]);
|
|
21668
|
+
else if (!m)
|
|
21668
21669
|
if (f === this.options.textNodeName) {
|
|
21669
21670
|
let g = this.options.tagValueProcessor(f, "" + a[f]);
|
|
21670
21671
|
h += this.replaceEntitiesValue(g);
|
|
21671
21672
|
} else
|
|
21672
21673
|
h += this.buildTextValNode(a[f], f, "", u);
|
|
21673
21674
|
} else if (Array.isArray(a[f])) {
|
|
21674
|
-
const
|
|
21675
|
+
const m = a[f].length;
|
|
21675
21676
|
let g = "", _ = "";
|
|
21676
|
-
for (let p = 0; p <
|
|
21677
|
+
for (let p = 0; p < m; p++) {
|
|
21677
21678
|
const y = a[f][p];
|
|
21678
21679
|
if (!(typeof y > "u")) if (y === null)
|
|
21679
21680
|
f[0] === "?" ? h += this.indentate(u) + "<" + f + "?" + this.tagEndChar : h += this.indentate(u) + "<" + f + "/" + this.tagEndChar;
|
|
21680
21681
|
else if (typeof y == "object")
|
|
21681
21682
|
if (this.options.oneListGroup) {
|
|
21682
|
-
const
|
|
21683
|
-
g +=
|
|
21683
|
+
const S = this.j2x(y, u + 1, c.concat(f));
|
|
21684
|
+
g += S.val, this.options.attributesGroupName && y.hasOwnProperty(this.options.attributesGroupName) && (_ += S.attrStr);
|
|
21684
21685
|
} else
|
|
21685
21686
|
g += this.processTextOrObjNode(y, f, u, c);
|
|
21686
21687
|
else if (this.options.oneListGroup) {
|
|
21687
|
-
let
|
|
21688
|
-
|
|
21688
|
+
let S = this.options.tagValueProcessor(f, y);
|
|
21689
|
+
S = this.replaceEntitiesValue(S), g += S;
|
|
21689
21690
|
} else
|
|
21690
21691
|
g += this.buildTextValNode(y, f, "", u);
|
|
21691
21692
|
}
|
|
21692
21693
|
this.options.oneListGroup && (g = this.buildObjectNode(g, f, _, u)), h += g;
|
|
21693
21694
|
} else if (this.options.attributesGroupName && f === this.options.attributesGroupName) {
|
|
21694
|
-
const
|
|
21695
|
+
const m = Object.keys(a[f]), g = m.length;
|
|
21695
21696
|
for (let _ = 0; _ < g; _++)
|
|
21696
|
-
d += this.buildAttrPairStr(
|
|
21697
|
+
d += this.buildAttrPairStr(m[_], "" + a[f][m[_]]);
|
|
21697
21698
|
} else
|
|
21698
21699
|
h += this.processTextOrObjNode(a[f], f, u, c);
|
|
21699
21700
|
return { attrStr: d, val: h };
|
|
@@ -21708,8 +21709,8 @@ function X_() {
|
|
|
21708
21709
|
if (a === "")
|
|
21709
21710
|
return u[0] === "?" ? this.indentate(d) + "<" + u + c + "?" + this.tagEndChar : this.indentate(d) + "<" + u + c + this.closeTag(u) + this.tagEndChar;
|
|
21710
21711
|
{
|
|
21711
|
-
let h = "</" + u + this.tagEndChar,
|
|
21712
|
-
return u[0] === "?" && (
|
|
21712
|
+
let h = "</" + u + this.tagEndChar, b = "";
|
|
21713
|
+
return u[0] === "?" && (b = "?", h = ""), (c || c === "") && a.indexOf("<") === -1 ? this.indentate(d) + "<" + u + c + b + ">" + a + h : this.options.commentPropName !== !1 && u === this.options.commentPropName && b.length === 0 ? this.indentate(d) + `<!--${a}-->` + this.newLine : this.indentate(d) + "<" + u + c + b + this.tagEndChar + a + this.indentate(d) + h;
|
|
21713
21714
|
}
|
|
21714
21715
|
}, r.prototype.closeTag = function(a) {
|
|
21715
21716
|
let u = "";
|
|
@@ -21882,22 +21883,22 @@ function ak(e, t, n, r, i) {
|
|
|
21882
21883
|
var _, p;
|
|
21883
21884
|
const s = e.find((y) => y["w:pPr"] !== void 0), o = (s == null ? void 0 : s["w:pPr"]) ?? [], a = o.find((y) => y["w:numPr"] !== void 0);
|
|
21884
21885
|
if (a) {
|
|
21885
|
-
const y = a["w:numPr"] ?? [],
|
|
21886
|
-
if (n.length === 0 || n[0].numId !==
|
|
21886
|
+
const y = a["w:numPr"] ?? [], S = ss(y, "w:numId", "w:val") ?? "0", O = Number(ss(y, "w:ilvl", "w:val") ?? 0), A = { type: "listItem", children: [{ type: "paragraph", children: fn(e) }] };
|
|
21887
|
+
if (n.length === 0 || n[0].numId !== S) {
|
|
21887
21888
|
r();
|
|
21888
|
-
const C = { type: "list", ordered: !1, children: [
|
|
21889
|
-
n.push({ numId:
|
|
21889
|
+
const C = { type: "list", ordered: !1, children: [A] };
|
|
21890
|
+
n.push({ numId: S, ilvl: O, list: C, item: A });
|
|
21890
21891
|
} else {
|
|
21891
21892
|
const C = n[n.length - 1];
|
|
21892
21893
|
if (O > C.ilvl) {
|
|
21893
|
-
const k = { type: "list", ordered: !1, children: [
|
|
21894
|
-
C.item.children.push(k), n.push({ numId:
|
|
21894
|
+
const k = { type: "list", ordered: !1, children: [A] };
|
|
21895
|
+
C.item.children.push(k), n.push({ numId: S, ilvl: O, list: k, item: A });
|
|
21895
21896
|
} else if (O < C.ilvl) {
|
|
21896
21897
|
for (; n.length > 1 && n[n.length - 1].ilvl > O; )
|
|
21897
21898
|
n.pop();
|
|
21898
|
-
n[n.length - 1].list.children.push(
|
|
21899
|
+
n[n.length - 1].list.children.push(A), n[n.length - 1].item = A;
|
|
21899
21900
|
} else
|
|
21900
|
-
C.list.children.push(
|
|
21901
|
+
C.list.children.push(A), C.item = A;
|
|
21901
21902
|
}
|
|
21902
21903
|
return null;
|
|
21903
21904
|
}
|
|
@@ -21924,13 +21925,13 @@ function ak(e, t, n, r, i) {
|
|
|
21924
21925
|
const y = fn(e);
|
|
21925
21926
|
return { type: "heading", depth: h, children: y };
|
|
21926
21927
|
}
|
|
21927
|
-
const
|
|
21928
|
-
if (
|
|
21928
|
+
const b = fn(e);
|
|
21929
|
+
if (b.length === 0)
|
|
21929
21930
|
return null;
|
|
21930
|
-
const f = { type: "paragraph", children:
|
|
21931
|
+
const f = { type: "paragraph", children: b };
|
|
21931
21932
|
u && !Su[u] && !xu.has(u) && !Cu.has(u) && (f.classes = [u]);
|
|
21932
|
-
const
|
|
21933
|
-
return g && (
|
|
21933
|
+
const m = {}, g = o.find((y) => y["w:jc"] !== void 0);
|
|
21934
|
+
return g && (m.align = (p = g[":@"]) == null ? void 0 : p["@_w:val"]), Object.keys(m).length > 0 && (f.data = { docx: m }), f;
|
|
21934
21935
|
}
|
|
21935
21936
|
function fn(e) {
|
|
21936
21937
|
const t = [];
|
|
@@ -22021,17 +22022,17 @@ function lk(e) {
|
|
|
22021
22022
|
if (a["w:trPr"] !== void 0 && (a["w:trPr"] ?? []).some((c) => c["w:tblHeader"] !== void 0) && (o = !0), a["w:tc"] !== void 0) {
|
|
22022
22023
|
const u = a["w:tc"] ?? [], c = [];
|
|
22023
22024
|
let d;
|
|
22024
|
-
for (const
|
|
22025
|
-
if (
|
|
22026
|
-
const f =
|
|
22027
|
-
for (const
|
|
22028
|
-
if (
|
|
22029
|
-
const g = Number((n =
|
|
22025
|
+
for (const b of u) {
|
|
22026
|
+
if (b["w:tcPr"] !== void 0) {
|
|
22027
|
+
const f = b["w:tcPr"] ?? [];
|
|
22028
|
+
for (const m of f)
|
|
22029
|
+
if (m["w:gridSpan"] !== void 0) {
|
|
22030
|
+
const g = Number((n = m[":@"]) == null ? void 0 : n["@_w:val"]);
|
|
22030
22031
|
g > 1 && (d = g);
|
|
22031
22032
|
}
|
|
22032
22033
|
}
|
|
22033
|
-
if (
|
|
22034
|
-
const f = fn(
|
|
22034
|
+
if (b["w:p"] !== void 0) {
|
|
22035
|
+
const f = fn(b["w:p"] ?? []);
|
|
22035
22036
|
f.length > 0 && c.push({ type: "paragraph", children: f });
|
|
22036
22037
|
}
|
|
22037
22038
|
}
|
|
@@ -22280,7 +22281,7 @@ const fk = `<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
|
|
22280
22281
|
<w:num w:numId="2"><w:abstractNumId w:val="1"/></w:num>
|
|
22281
22282
|
</w:numbering>`, bk = 'xmlns:w="http://schemas.openxmlformats.org/wordprocessingml/2006/main"', Ek = 'xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships"', yk = 'xmlns:wp="http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing"';
|
|
22282
22283
|
async function bw(e, t) {
|
|
22283
|
-
var f,
|
|
22284
|
+
var f, m;
|
|
22284
22285
|
const n = (f = e.data) == null ? void 0 : f.css, r = { ...n == null ? void 0 : n.classRules, ...t == null ? void 0 : t.cssClasses }, i = (n == null ? void 0 : n.elementRules) ?? {}, s = {
|
|
22285
22286
|
cssClasses: r,
|
|
22286
22287
|
cssElements: i,
|
|
@@ -22290,7 +22291,7 @@ async function bw(e, t) {
|
|
|
22290
22291
|
hyperlinks: /* @__PURE__ */ new Map(),
|
|
22291
22292
|
nextRId: 100
|
|
22292
22293
|
}, o = e.children.map((g) => rn(g, s, 0)).join(`
|
|
22293
|
-
`), a = (
|
|
22294
|
+
`), a = (m = e.data) == null ? void 0 : m.docx;
|
|
22294
22295
|
let u = (a == null ? void 0 : a.styles) ?? mk;
|
|
22295
22296
|
if (s.customStyles.length > 0) {
|
|
22296
22297
|
const g = s.customStyles.join(`
|
|
@@ -22320,8 +22321,8 @@ ${o}
|
|
|
22320
22321
|
contentTypes: (a == null ? void 0 : a.contentTypes) ?? void 0,
|
|
22321
22322
|
media: /* @__PURE__ */ new Map(),
|
|
22322
22323
|
rawParts: /* @__PURE__ */ new Map()
|
|
22323
|
-
},
|
|
22324
|
-
if (h.rawParts.set("word/occam-udm.json", JSON.stringify(
|
|
22324
|
+
}, b = Td(e);
|
|
22325
|
+
if (h.rawParts.set("word/occam-udm.json", JSON.stringify(b)), n && (Object.keys(n.classRules ?? {}).length > 0 || Object.keys(n.elementRules ?? {}).length > 0) && h.rawParts.set("word/occam-css.json", JSON.stringify(n)), a != null && a.rawParts) {
|
|
22325
22326
|
const g = a.rawParts;
|
|
22326
22327
|
for (const [_, p] of Object.entries(g))
|
|
22327
22328
|
h.rawParts.has(_) || h.rawParts.set(_, p);
|
|
@@ -22394,43 +22395,43 @@ function Fs(e, t, n) {
|
|
|
22394
22395
|
return s ? d ? d.replace("</w:pPr>", `${s}</w:pPr>`) : `<w:pPr>${s}</w:pPr>` : d;
|
|
22395
22396
|
}
|
|
22396
22397
|
if (e.type === "paragraph") {
|
|
22397
|
-
const d = e, h = u(Ed(d, t)),
|
|
22398
|
-
return `<w:p>${h}${
|
|
22398
|
+
const d = e, h = u(Ed(d, t)), b = d.children.map((f) => tn(f, t, a)).join("");
|
|
22399
|
+
return `<w:p>${h}${b}</w:p>`;
|
|
22399
22400
|
}
|
|
22400
22401
|
if (e.type === "heading") {
|
|
22401
|
-
const d = e, h = `h${d.depth}`,
|
|
22402
|
-
let
|
|
22403
|
-
t.cssElements[h] ? (ba(h, t),
|
|
22402
|
+
const d = e, h = `h${d.depth}`, b = a, f = d.children.map((p) => tn(p, t, b)).join("");
|
|
22403
|
+
let m = "";
|
|
22404
|
+
t.cssElements[h] ? (ba(h, t), m = `<w:pStyle w:val="_el_${h}"/>`) : m = `<w:pStyle w:val="Heading${d.depth}"/>`;
|
|
22404
22405
|
const g = d.classes;
|
|
22405
22406
|
if (g != null && g.length) {
|
|
22406
22407
|
for (const p of g)
|
|
22407
22408
|
if (t.cssClasses[p] && !t.generatedStyleIds.has(p)) {
|
|
22408
22409
|
t.generatedStyleIds.add(p);
|
|
22409
|
-
const y = yt(t.cssClasses[p]),
|
|
22410
|
-
t.customStyles.push(ga(p, p, "paragraph", y,
|
|
22410
|
+
const y = yt(t.cssClasses[p]), S = ar(t.cssClasses[p]);
|
|
22411
|
+
t.customStyles.push(ga(p, p, "paragraph", y, S));
|
|
22411
22412
|
}
|
|
22412
22413
|
}
|
|
22413
|
-
return `<w:p>${u(`<w:pPr>${
|
|
22414
|
+
return `<w:p>${u(`<w:pPr>${m}</w:pPr>`)}${f}</w:p>`;
|
|
22414
22415
|
}
|
|
22415
22416
|
if (e.type === "list") {
|
|
22416
|
-
const d = e, h = d.ordered ? "2" : "1",
|
|
22417
|
+
const d = e, h = d.ordered ? "2" : "1", b = [];
|
|
22417
22418
|
for (const f of d.children) {
|
|
22418
22419
|
if (f.type !== "listItem")
|
|
22419
22420
|
continue;
|
|
22420
|
-
const
|
|
22421
|
+
const m = f, g = m.classes;
|
|
22421
22422
|
let _ = a;
|
|
22422
22423
|
if (g)
|
|
22423
22424
|
for (const p of g)
|
|
22424
22425
|
t.cssClasses[p] && (_ += Xt(yt(t.cssClasses[p])));
|
|
22425
22426
|
t.cssElements.li && (_ += Xt(yt(t.cssElements.li)));
|
|
22426
|
-
for (const p of
|
|
22427
|
+
for (const p of m.children)
|
|
22427
22428
|
if (p.type === "paragraph") {
|
|
22428
22429
|
const y = p.children.map((O) => tn(O, t, _)).join("");
|
|
22429
|
-
let
|
|
22430
|
-
|
|
22431
|
-
} else p.type === "list" ?
|
|
22430
|
+
let S = `<w:pPr><w:numPr><w:ilvl w:val="${n}"/><w:numId w:val="${h}"/></w:numPr></w:pPr>`;
|
|
22431
|
+
S = u(S), b.push(`<w:p>${S}${y}</w:p>`);
|
|
22432
|
+
} else p.type === "list" ? b.push(Fs(p, t, n + 1)) : b.push(Fs(p, t, n));
|
|
22432
22433
|
}
|
|
22433
|
-
return
|
|
22434
|
+
return b.join(`
|
|
22434
22435
|
`);
|
|
22435
22436
|
}
|
|
22436
22437
|
const c = { ...t };
|
|
@@ -22539,7 +22540,7 @@ function tn(e, t, n = "") {
|
|
|
22539
22540
|
return "";
|
|
22540
22541
|
}
|
|
22541
22542
|
function Nk(e, t, n = "") {
|
|
22542
|
-
var c, d, h,
|
|
22543
|
+
var c, d, h, b, f, m;
|
|
22543
22544
|
const r = (c = e.marks) == null ? void 0 : c.find((g) => g.type === "link"), i = ((d = e.marks) == null ? void 0 : d.filter((g) => g.type !== "link")) ?? [], s = [];
|
|
22544
22545
|
if (n) {
|
|
22545
22546
|
const g = n.match(/<w:[^/]*\/>/g) ?? [];
|
|
@@ -22557,7 +22558,7 @@ function Nk(e, t, n = "") {
|
|
|
22557
22558
|
s.push(`<w:u w:val="${((h = g.attrs) == null ? void 0 : h.style) ?? "single"}"/>`);
|
|
22558
22559
|
break;
|
|
22559
22560
|
case "strikethrough":
|
|
22560
|
-
s.push((
|
|
22561
|
+
s.push((b = g.attrs) != null && b.double ? "<w:dstrike/>" : "<w:strike/>");
|
|
22561
22562
|
break;
|
|
22562
22563
|
case "superscript":
|
|
22563
22564
|
s.push('<w:vertAlign w:val="superscript"/>');
|
|
@@ -22574,7 +22575,7 @@ function Nk(e, t, n = "") {
|
|
|
22574
22575
|
o.has(g) || (o.add(g), a.push(g));
|
|
22575
22576
|
const u = a.length > 0 ? `<w:rPr>${a.join("")}</w:rPr>` : "";
|
|
22576
22577
|
if (r) {
|
|
22577
|
-
const g = String(((
|
|
22578
|
+
const g = String(((m = r.attrs) == null ? void 0 : m.url) ?? "");
|
|
22578
22579
|
return `<w:hyperlink r:id="${Tk(t, g)}"><w:r>${u}<w:t xml:space="preserve">${Bt(e.value)}</w:t></w:r></w:hyperlink>`;
|
|
22579
22580
|
}
|
|
22580
22581
|
return `<w:r>${u}<w:t xml:space="preserve">${Bt(e.value)}</w:t></w:r>`;
|