@php-wasm/xdebug-bridge 3.0.8 → 3.0.12
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/cli.cjs +1 -1
- package/cli.js +1 -1
- package/index.cjs +1 -1
- package/index.js +1 -1
- package/lib/start-bridge.d.ts +2 -2
- package/package.json +10 -7
- package/{run-cli-Ca3F82Ga.cjs → run-cli-Vri7kaGq.cjs} +23 -23
- package/{run-cli-Czst-QEr.js → run-cli-mR3u8Vs0.js} +429 -421
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { strictEqual as ms, notStrictEqual as gs } from "assert";
|
|
2
2
|
import Ui, { resolve as le, dirname as qn, normalize as ys, relative as bs, extname as ws, basename as Es } from "path";
|
|
3
3
|
import { statSync as Xi, readdirSync as $i, readFileSync as Xe, writeFile as xs, lstatSync as Os } from "fs";
|
|
4
|
-
import { format as Wi, inspect as
|
|
5
|
-
import { fileURLToPath as
|
|
4
|
+
import { format as Wi, inspect as Is } from "util";
|
|
5
|
+
import { fileURLToPath as Cs } from "url";
|
|
6
6
|
import { WebSocketServer as Ds } from "ws";
|
|
7
7
|
import Ts from "net";
|
|
8
8
|
import { createHash as vs } from "crypto";
|
|
@@ -857,7 +857,7 @@ class no {
|
|
|
857
857
|
"strip-aliased": !1,
|
|
858
858
|
"strip-dashed": !1,
|
|
859
859
|
"unknown-options-as-args": !1
|
|
860
|
-
}, n.configuration), l = Object.assign(/* @__PURE__ */ Object.create(null), n.default), E = n.configObjects || [], m = n.envPrefix, p = o["populate--"], y = p ? "--" : "_", w = /* @__PURE__ */ Object.create(null), D = /* @__PURE__ */ Object.create(null), _ = n.__ || Xt.format,
|
|
860
|
+
}, n.configuration), l = Object.assign(/* @__PURE__ */ Object.create(null), n.default), E = n.configObjects || [], m = n.envPrefix, p = o["populate--"], y = p ? "--" : "_", w = /* @__PURE__ */ Object.create(null), D = /* @__PURE__ */ Object.create(null), _ = n.__ || Xt.format, I = {
|
|
861
861
|
aliases: /* @__PURE__ */ Object.create(null),
|
|
862
862
|
arrays: /* @__PURE__ */ Object.create(null),
|
|
863
863
|
bools: /* @__PURE__ */ Object.create(null),
|
|
@@ -869,7 +869,7 @@ class no {
|
|
|
869
869
|
nargs: /* @__PURE__ */ Object.create(null),
|
|
870
870
|
coercions: /* @__PURE__ */ Object.create(null),
|
|
871
871
|
keys: []
|
|
872
|
-
}, T = /^-([0-9]+(\.[0-9]+)?|\.[0-9]+)$/,
|
|
872
|
+
}, T = /^-([0-9]+(\.[0-9]+)?|\.[0-9]+)$/, C = new RegExp("^--" + o["negation-prefix"] + "(.+)");
|
|
873
873
|
[].concat(n.array || []).filter(Boolean).forEach(function(A) {
|
|
874
874
|
const f = typeof A == "object" ? A.key : A, u = Object.keys(A).map(function(c) {
|
|
875
875
|
return {
|
|
@@ -878,27 +878,27 @@ class no {
|
|
|
878
878
|
number: "numbers"
|
|
879
879
|
}[c];
|
|
880
880
|
}).filter(Boolean).pop();
|
|
881
|
-
u && (
|
|
881
|
+
u && (I[u][f] = !0), I.arrays[f] = !0, I.keys.push(f);
|
|
882
882
|
}), [].concat(n.boolean || []).filter(Boolean).forEach(function(A) {
|
|
883
|
-
|
|
883
|
+
I.bools[A] = !0, I.keys.push(A);
|
|
884
884
|
}), [].concat(n.string || []).filter(Boolean).forEach(function(A) {
|
|
885
|
-
|
|
885
|
+
I.strings[A] = !0, I.keys.push(A);
|
|
886
886
|
}), [].concat(n.number || []).filter(Boolean).forEach(function(A) {
|
|
887
|
-
|
|
887
|
+
I.numbers[A] = !0, I.keys.push(A);
|
|
888
888
|
}), [].concat(n.count || []).filter(Boolean).forEach(function(A) {
|
|
889
|
-
|
|
889
|
+
I.counts[A] = !0, I.keys.push(A);
|
|
890
890
|
}), [].concat(n.normalize || []).filter(Boolean).forEach(function(A) {
|
|
891
|
-
|
|
891
|
+
I.normalize[A] = !0, I.keys.push(A);
|
|
892
892
|
}), typeof n.narg == "object" && Object.entries(n.narg).forEach(([A, f]) => {
|
|
893
|
-
typeof f == "number" && (
|
|
893
|
+
typeof f == "number" && (I.nargs[A] = f, I.keys.push(A));
|
|
894
894
|
}), typeof n.coerce == "object" && Object.entries(n.coerce).forEach(([A, f]) => {
|
|
895
|
-
typeof f == "function" && (
|
|
895
|
+
typeof f == "function" && (I.coercions[A] = f, I.keys.push(A));
|
|
896
896
|
}), typeof n.config < "u" && (Array.isArray(n.config) || typeof n.config == "string" ? [].concat(n.config).filter(Boolean).forEach(function(A) {
|
|
897
|
-
|
|
897
|
+
I.configs[A] = !0;
|
|
898
898
|
}) : typeof n.config == "object" && Object.entries(n.config).forEach(([A, f]) => {
|
|
899
|
-
(typeof f == "boolean" || typeof f == "function") && (
|
|
900
|
-
})), vt(n.key, r, n.default,
|
|
901
|
-
(
|
|
899
|
+
(typeof f == "boolean" || typeof f == "function") && (I.configs[A] = f);
|
|
900
|
+
})), vt(n.key, r, n.default, I.arrays), Object.keys(l).forEach(function(A) {
|
|
901
|
+
(I.aliases[A] || []).forEach(function(f) {
|
|
902
902
|
l[f] = l[A];
|
|
903
903
|
});
|
|
904
904
|
});
|
|
@@ -915,27 +915,27 @@ class no {
|
|
|
915
915
|
W(f);
|
|
916
916
|
continue;
|
|
917
917
|
} else if (f.match(/^--.+=/) || !o["short-option-groups"] && f.match(/^-.+=/))
|
|
918
|
-
L = f.match(/^--?([^=]+)=([\s\S]*)$/), L !== null && Array.isArray(L) && L.length >= 3 && (K(L[1],
|
|
919
|
-
else if (f.match(
|
|
920
|
-
L = f.match(
|
|
918
|
+
L = f.match(/^--?([^=]+)=([\s\S]*)$/), L !== null && Array.isArray(L) && L.length >= 3 && (K(L[1], I.arrays) ? A = d(A, L[1], s, L[2]) : K(L[1], I.nargs) !== !1 ? A = U(A, L[1], s, L[2]) : B(L[1], L[2], !0));
|
|
919
|
+
else if (f.match(C) && o["boolean-negation"])
|
|
920
|
+
L = f.match(C), L !== null && Array.isArray(L) && L.length >= 2 && (h = L[1], B(h, K(h, I.arrays) ? [!1] : !1));
|
|
921
921
|
else if (f.match(/^--.+/) || !o["short-option-groups"] && f.match(/^-[^-]+/))
|
|
922
|
-
L = f.match(/^--?(.+)/), L !== null && Array.isArray(L) && L.length >= 2 && (h = L[1], K(h,
|
|
922
|
+
L = f.match(/^--?(.+)/), L !== null && Array.isArray(L) && L.length >= 2 && (h = L[1], K(h, I.arrays) ? A = d(A, h, s) : K(h, I.nargs) !== !1 ? A = U(A, h, s) : (F = s[A + 1], F !== void 0 && (!F.match(/^-/) || F.match(T)) && !K(h, I.bools) && !K(h, I.counts) || /^(true|false)$/.test(F) ? (B(h, F), A++) : B(h, P(h))));
|
|
923
923
|
else if (f.match(/^-.\..+=/))
|
|
924
924
|
L = f.match(/^-([^=]+)=([\s\S]*)$/), L !== null && Array.isArray(L) && L.length >= 3 && B(L[1], L[2]);
|
|
925
925
|
else if (f.match(/^-.\..+/) && !f.match(T))
|
|
926
|
-
F = s[A + 1], L = f.match(/^-(.\..+)/), L !== null && Array.isArray(L) && L.length >= 2 && (h = L[1], F !== void 0 && !F.match(/^-/) && !K(h,
|
|
926
|
+
F = s[A + 1], L = f.match(/^-(.\..+)/), L !== null && Array.isArray(L) && L.length >= 2 && (h = L[1], F !== void 0 && !F.match(/^-/) && !K(h, I.bools) && !K(h, I.counts) ? (B(h, F), A++) : B(h, P(h)));
|
|
927
927
|
else if (f.match(/^-[^-]+/) && !f.match(T)) {
|
|
928
928
|
N = f.slice(1, -1).split(""), c = !1;
|
|
929
929
|
for (let nt = 0; nt < N.length; nt++) {
|
|
930
930
|
if (F = f.slice(nt + 2), N[nt + 1] && N[nt + 1] === "=") {
|
|
931
|
-
Z = f.slice(nt + 3), h = N[nt], K(h,
|
|
931
|
+
Z = f.slice(nt + 3), h = N[nt], K(h, I.arrays) ? A = d(A, h, s, Z) : K(h, I.nargs) !== !1 ? A = U(A, h, s, Z) : B(h, Z), c = !0;
|
|
932
932
|
break;
|
|
933
933
|
}
|
|
934
934
|
if (F === "-") {
|
|
935
935
|
B(N[nt], F);
|
|
936
936
|
continue;
|
|
937
937
|
}
|
|
938
|
-
if (/[A-Za-z]/.test(N[nt]) && /^-?\d+(\.\d*)?(e-?\d+)?$/.test(F) && K(F,
|
|
938
|
+
if (/[A-Za-z]/.test(N[nt]) && /^-?\d+(\.\d*)?(e-?\d+)?$/.test(F) && K(F, I.bools) === !1) {
|
|
939
939
|
B(N[nt], F), c = !0;
|
|
940
940
|
break;
|
|
941
941
|
}
|
|
@@ -945,8 +945,8 @@ class no {
|
|
|
945
945
|
} else
|
|
946
946
|
B(N[nt], P(N[nt]));
|
|
947
947
|
}
|
|
948
|
-
h = f.slice(-1)[0], !c && h !== "-" && (K(h,
|
|
949
|
-
} else if (f.match(/^-[0-9]$/) && f.match(T) && K(f.slice(1),
|
|
948
|
+
h = f.slice(-1)[0], !c && h !== "-" && (K(h, I.arrays) ? A = d(A, h, s) : K(h, I.nargs) !== !1 ? A = U(A, h, s) : (F = s[A + 1], F !== void 0 && (!/^(-|--)[^-]/.test(F) || F.match(T)) && !K(h, I.bools) && !K(h, I.counts) || /^(true|false)$/.test(F) ? (B(h, F), A++) : B(h, P(h))));
|
|
949
|
+
} else if (f.match(/^-[0-9]$/) && f.match(T) && K(f.slice(1), I.bools))
|
|
950
950
|
h = f.slice(1), B(h, P(h));
|
|
951
951
|
else if (f === "--") {
|
|
952
952
|
v = s.slice(A + 1);
|
|
@@ -957,7 +957,7 @@ class no {
|
|
|
957
957
|
} else
|
|
958
958
|
W(f);
|
|
959
959
|
}
|
|
960
|
-
V(M, !0), V(M, !1), q(M), k(), at(M,
|
|
960
|
+
V(M, !0), V(M, !1), q(M), k(), at(M, I.aliases, l, !0), ft(M), o["set-placeholder-key"] && Ot(M), Object.keys(I.counts).forEach(function(A) {
|
|
961
961
|
st(M, A.split(".")) || B(A, 0);
|
|
962
962
|
}), p && v.length && (M[y] = []), v.forEach(function(A) {
|
|
963
963
|
M[y].push(A);
|
|
@@ -971,7 +971,7 @@ class no {
|
|
|
971
971
|
(typeof f == "string" || typeof f == "number") && M._.push(f);
|
|
972
972
|
}
|
|
973
973
|
function U(A, f, u, c) {
|
|
974
|
-
let h, N = K(f,
|
|
974
|
+
let h, N = K(f, I.nargs);
|
|
975
975
|
if (N = typeof N != "number" || isNaN(N) ? 1 : N, N === 0)
|
|
976
976
|
return rt(c) || (g = Error(_("Argument unexpected for: %s", f))), B(f, P(f)), A;
|
|
977
977
|
let L = rt(c) ? 0 : 1;
|
|
@@ -989,8 +989,8 @@ class no {
|
|
|
989
989
|
}
|
|
990
990
|
function d(A, f, u, c) {
|
|
991
991
|
let h = [], N = c || u[A + 1];
|
|
992
|
-
const L = K(f,
|
|
993
|
-
if (K(f,
|
|
992
|
+
const L = K(f, I.nargs);
|
|
993
|
+
if (K(f, I.bools) && !/^(true|false)$/.test(N))
|
|
994
994
|
h.push(!0);
|
|
995
995
|
else if (rt(N) || rt(c) && /^-/.test(N) && !T.test(N) && !b(N)) {
|
|
996
996
|
if (l[f] !== void 0) {
|
|
@@ -1012,14 +1012,14 @@ class no {
|
|
|
1012
1012
|
S(A, N);
|
|
1013
1013
|
}
|
|
1014
1014
|
const c = R(A, f, u), h = A.split(".");
|
|
1015
|
-
ut(M, h, c),
|
|
1015
|
+
ut(M, h, c), I.aliases[A] && I.aliases[A].forEach(function(N) {
|
|
1016
1016
|
const L = N.split(".");
|
|
1017
1017
|
ut(M, L, c);
|
|
1018
|
-
}), h.length > 1 && o["dot-notation"] && (
|
|
1018
|
+
}), h.length > 1 && o["dot-notation"] && (I.aliases[h[0]] || []).forEach(function(N) {
|
|
1019
1019
|
let L = N.split(".");
|
|
1020
1020
|
const F = [].concat(h);
|
|
1021
|
-
F.shift(), L = L.concat(F), (
|
|
1022
|
-
}), K(A,
|
|
1021
|
+
F.shift(), L = L.concat(F), (I.aliases[A] || []).includes(L.join(".")) || ut(M, L, c);
|
|
1022
|
+
}), K(A, I.normalize) && !K(A, I.arrays) && [A].concat(I.aliases[A] || []).forEach(function(L) {
|
|
1023
1023
|
Object.defineProperty(X, L, {
|
|
1024
1024
|
enumerable: !0,
|
|
1025
1025
|
get() {
|
|
@@ -1032,26 +1032,26 @@ class no {
|
|
|
1032
1032
|
});
|
|
1033
1033
|
}
|
|
1034
1034
|
function S(A, f) {
|
|
1035
|
-
|
|
1035
|
+
I.aliases[A] && I.aliases[A].length || (I.aliases[A] = [f], w[f] = !0), I.aliases[f] && I.aliases[f].length || S(f, A);
|
|
1036
1036
|
}
|
|
1037
1037
|
function R(A, f, u) {
|
|
1038
|
-
u && (f = io(f)), (K(A,
|
|
1038
|
+
u && (f = io(f)), (K(A, I.bools) || K(A, I.counts)) && typeof f == "string" && (f = f === "true");
|
|
1039
1039
|
let c = Array.isArray(f) ? f.map(function(h) {
|
|
1040
1040
|
return $(A, h);
|
|
1041
1041
|
}) : $(A, f);
|
|
1042
|
-
return K(A,
|
|
1042
|
+
return K(A, I.counts) && (rt(c) || typeof c == "boolean") && (c = Ve()), K(A, I.normalize) && K(A, I.arrays) && (Array.isArray(f) ? c = f.map((h) => Xt.normalize(h)) : c = Xt.normalize(f)), c;
|
|
1043
1043
|
}
|
|
1044
1044
|
function $(A, f) {
|
|
1045
|
-
return !o["parse-positional-numbers"] && A === "_" || !K(A,
|
|
1045
|
+
return !o["parse-positional-numbers"] && A === "_" || !K(A, I.strings) && !K(A, I.bools) && !Array.isArray(f) && (ns(f) && o["parse-numbers"] && Number.isSafeInteger(Math.floor(parseFloat(`${f}`))) || !rt(f) && K(A, I.numbers)) && (f = Number(f)), f;
|
|
1046
1046
|
}
|
|
1047
1047
|
function q(A) {
|
|
1048
1048
|
const f = /* @__PURE__ */ Object.create(null);
|
|
1049
|
-
at(f,
|
|
1049
|
+
at(f, I.aliases, l), Object.keys(I.configs).forEach(function(u) {
|
|
1050
1050
|
const c = A[u] || f[u];
|
|
1051
1051
|
if (c)
|
|
1052
1052
|
try {
|
|
1053
1053
|
let h = null;
|
|
1054
|
-
const N = Xt.resolve(Xt.cwd(), c), L =
|
|
1054
|
+
const N = Xt.resolve(Xt.cwd(), c), L = I.configs[u];
|
|
1055
1055
|
if (typeof L == "function") {
|
|
1056
1056
|
try {
|
|
1057
1057
|
h = L(N);
|
|
@@ -1073,7 +1073,7 @@ class no {
|
|
|
1073
1073
|
function z(A, f) {
|
|
1074
1074
|
Object.keys(A).forEach(function(u) {
|
|
1075
1075
|
const c = A[u], h = f ? f + "." + u : u;
|
|
1076
|
-
typeof c == "object" && c !== null && !Array.isArray(c) && o["dot-notation"] ? z(c, h) : (!st(M, h.split(".")) || K(h,
|
|
1076
|
+
typeof c == "object" && c !== null && !Array.isArray(c) && o["dot-notation"] ? z(c, h) : (!st(M, h.split(".")) || K(h, I.arrays) && o["combine-arrays"]) && B(h, c);
|
|
1077
1077
|
});
|
|
1078
1078
|
}
|
|
1079
1079
|
function k() {
|
|
@@ -1090,7 +1090,7 @@ class no {
|
|
|
1090
1090
|
const N = h.split("__").map(function(L, F) {
|
|
1091
1091
|
return F === 0 && (L = L.substring(u.length)), de(L);
|
|
1092
1092
|
});
|
|
1093
|
-
(f &&
|
|
1093
|
+
(f && I.configs[N.join(".")] || !f) && !st(A, N) && B(N.join("."), c[h]);
|
|
1094
1094
|
}
|
|
1095
1095
|
});
|
|
1096
1096
|
}
|
|
@@ -1098,10 +1098,10 @@ class no {
|
|
|
1098
1098
|
let f;
|
|
1099
1099
|
const u = /* @__PURE__ */ new Set();
|
|
1100
1100
|
Object.keys(A).forEach(function(c) {
|
|
1101
|
-
if (!u.has(c) && (f = K(c,
|
|
1101
|
+
if (!u.has(c) && (f = K(c, I.coercions), typeof f == "function"))
|
|
1102
1102
|
try {
|
|
1103
1103
|
const h = $(c, f(A[c]));
|
|
1104
|
-
[].concat(
|
|
1104
|
+
[].concat(I.aliases[c] || [], c).forEach((N) => {
|
|
1105
1105
|
u.add(N), A[N] = h;
|
|
1106
1106
|
});
|
|
1107
1107
|
} catch (h) {
|
|
@@ -1110,7 +1110,7 @@ class no {
|
|
|
1110
1110
|
});
|
|
1111
1111
|
}
|
|
1112
1112
|
function Ot(A) {
|
|
1113
|
-
return
|
|
1113
|
+
return I.keys.forEach((f) => {
|
|
1114
1114
|
~f.indexOf(".") || typeof A[f] > "u" && (A[f] = void 0);
|
|
1115
1115
|
}), A;
|
|
1116
1116
|
}
|
|
@@ -1134,25 +1134,25 @@ class no {
|
|
|
1134
1134
|
o["dot-notation"] || (f = [f.join(".")]), f.slice(0, -1).forEach(function(Z) {
|
|
1135
1135
|
Z = Er(Z), typeof c == "object" && c[Z] === void 0 && (c[Z] = {}), typeof c[Z] != "object" || Array.isArray(c[Z]) ? (Array.isArray(c[Z]) ? c[Z].push({}) : c[Z] = [c[Z], {}], c = c[Z][c[Z].length - 1]) : c = c[Z];
|
|
1136
1136
|
});
|
|
1137
|
-
const h = Er(f[f.length - 1]), N = K(f.join("."),
|
|
1137
|
+
const h = Er(f[f.length - 1]), N = K(f.join("."), I.arrays), L = Array.isArray(u);
|
|
1138
1138
|
let F = o["duplicate-arguments-array"];
|
|
1139
|
-
!F && K(h,
|
|
1139
|
+
!F && K(h, I.nargs) && (F = !0, (!rt(c[h]) && I.nargs[h] === 1 || Array.isArray(c[h]) && c[h].length === I.nargs[h]) && (c[h] = void 0)), u === Ve() ? c[h] = Ve(c[h]) : Array.isArray(c[h]) ? F && N && L ? c[h] = o["flatten-duplicate-arrays"] ? c[h].concat(u) : (Array.isArray(c[h][0]) ? c[h] : [c[h]]).concat([u]) : !F && !!N == !!L ? c[h] = u : c[h] = c[h].concat([u]) : c[h] === void 0 && N ? c[h] = L ? u : [u] : F && !(c[h] === void 0 || K(h, I.counts) || K(h, I.bools)) ? c[h] = [c[h], u] : c[h] = u;
|
|
1140
1140
|
}
|
|
1141
1141
|
function vt(...A) {
|
|
1142
1142
|
A.forEach(function(f) {
|
|
1143
1143
|
Object.keys(f || {}).forEach(function(u) {
|
|
1144
|
-
|
|
1144
|
+
I.aliases[u] || (I.aliases[u] = [].concat(r[u] || []), I.aliases[u].concat(u).forEach(function(c) {
|
|
1145
1145
|
if (/-/.test(c) && o["camel-case-expansion"]) {
|
|
1146
1146
|
const h = de(c);
|
|
1147
|
-
h !== u &&
|
|
1147
|
+
h !== u && I.aliases[u].indexOf(h) === -1 && (I.aliases[u].push(h), w[h] = !0);
|
|
1148
1148
|
}
|
|
1149
|
-
}),
|
|
1149
|
+
}), I.aliases[u].concat(u).forEach(function(c) {
|
|
1150
1150
|
if (c.length > 1 && /[A-Z]/.test(c) && o["camel-case-expansion"]) {
|
|
1151
1151
|
const h = es(c, "-");
|
|
1152
|
-
h !== u &&
|
|
1152
|
+
h !== u && I.aliases[u].indexOf(h) === -1 && (I.aliases[u].push(h), w[h] = !0);
|
|
1153
1153
|
}
|
|
1154
|
-
}),
|
|
1155
|
-
|
|
1154
|
+
}), I.aliases[u].forEach(function(c) {
|
|
1155
|
+
I.aliases[c] = [u].concat(I.aliases[u].filter(function(h) {
|
|
1156
1156
|
return c !== h;
|
|
1157
1157
|
}));
|
|
1158
1158
|
}));
|
|
@@ -1160,12 +1160,12 @@ class no {
|
|
|
1160
1160
|
});
|
|
1161
1161
|
}
|
|
1162
1162
|
function K(A, f) {
|
|
1163
|
-
const u = [].concat(
|
|
1163
|
+
const u = [].concat(I.aliases[A] || [], A), c = Object.keys(f), h = u.find((N) => c.includes(N));
|
|
1164
1164
|
return h ? f[h] : !1;
|
|
1165
1165
|
}
|
|
1166
1166
|
function Ut(A) {
|
|
1167
|
-
const f = Object.keys(
|
|
1168
|
-
return [].concat(f.map((c) =>
|
|
1167
|
+
const f = Object.keys(I);
|
|
1168
|
+
return [].concat(f.map((c) => I[c])).some(function(c) {
|
|
1169
1169
|
return Array.isArray(c) ? c.includes(A) : c[A];
|
|
1170
1170
|
});
|
|
1171
1171
|
}
|
|
@@ -1194,10 +1194,10 @@ class no {
|
|
|
1194
1194
|
return o["unknown-options-as-args"] && j(A);
|
|
1195
1195
|
}
|
|
1196
1196
|
function j(A) {
|
|
1197
|
-
return A = A.replace(/^-{3,}/, "--"), A.match(T) || x(A) ? !1 : !Q(A, /^-+([^=]+?)=[\s\S]*$/,
|
|
1197
|
+
return A = A.replace(/^-{3,}/, "--"), A.match(T) || x(A) ? !1 : !Q(A, /^-+([^=]+?)=[\s\S]*$/, C, /^-+([^=]+?)$/, /^-+([^=]+?)-$/, /^-+([^=]+?\d+)$/, /^-+([^=]+?)\W+.*$/);
|
|
1198
1198
|
}
|
|
1199
1199
|
function P(A) {
|
|
1200
|
-
return !K(A,
|
|
1200
|
+
return !K(A, I.bools) && !K(A, I.counts) && `${A}` in l ? l[A] : J(ot(A));
|
|
1201
1201
|
}
|
|
1202
1202
|
function J(A) {
|
|
1203
1203
|
return {
|
|
@@ -1209,16 +1209,16 @@ class no {
|
|
|
1209
1209
|
}
|
|
1210
1210
|
function ot(A) {
|
|
1211
1211
|
let f = Ft.BOOLEAN;
|
|
1212
|
-
return K(A,
|
|
1212
|
+
return K(A, I.strings) ? f = Ft.STRING : K(A, I.numbers) ? f = Ft.NUMBER : K(A, I.bools) ? f = Ft.BOOLEAN : K(A, I.arrays) && (f = Ft.ARRAY), f;
|
|
1213
1213
|
}
|
|
1214
1214
|
function rt(A) {
|
|
1215
1215
|
return A === void 0;
|
|
1216
1216
|
}
|
|
1217
1217
|
function ht() {
|
|
1218
|
-
Object.keys(
|
|
1218
|
+
Object.keys(I.counts).find((A) => K(A, I.arrays) ? (g = Error(_("Invalid configuration: %s, opts.count excludes opts.array.", A)), !0) : K(A, I.nargs) ? (g = Error(_("Invalid configuration: %s, opts.count excludes opts.narg.", A)), !0) : !1);
|
|
1219
1219
|
}
|
|
1220
1220
|
return {
|
|
1221
|
-
aliases: Object.assign({},
|
|
1221
|
+
aliases: Object.assign({}, I.aliases),
|
|
1222
1222
|
argv: Object.assign(X, M),
|
|
1223
1223
|
configuration: o,
|
|
1224
1224
|
defaulted: Object.assign({}, D),
|
|
@@ -1430,10 +1430,10 @@ function ho(a, t) {
|
|
|
1430
1430
|
locale: e.locale
|
|
1431
1431
|
};
|
|
1432
1432
|
}
|
|
1433
|
-
const po = (a) => ho(a, lo), mo = "require is not supported by ESM",
|
|
1433
|
+
const po = (a) => ho(a, lo), mo = "require is not supported by ESM", Ir = "loading a directory of commands is not supported yet for ESM";
|
|
1434
1434
|
let Ee;
|
|
1435
1435
|
try {
|
|
1436
|
-
Ee =
|
|
1436
|
+
Ee = Cs(import.meta.url);
|
|
1437
1437
|
} catch {
|
|
1438
1438
|
Ee = process.cwd();
|
|
1439
1439
|
}
|
|
@@ -1445,9 +1445,9 @@ const go = Ee.substring(0, Ee.lastIndexOf("node_modules")), yo = {
|
|
|
1445
1445
|
cliui: Zs,
|
|
1446
1446
|
findUp: to,
|
|
1447
1447
|
getEnv: (a) => process.env[a],
|
|
1448
|
-
inspect:
|
|
1448
|
+
inspect: Is,
|
|
1449
1449
|
getCallerFile: () => {
|
|
1450
|
-
throw new gt(
|
|
1450
|
+
throw new gt(Ir);
|
|
1451
1451
|
},
|
|
1452
1452
|
getProcessArgvBin: co,
|
|
1453
1453
|
mainFilename: go || process.cwd(),
|
|
@@ -1473,7 +1473,7 @@ const go = Ee.substring(0, Ee.lastIndexOf("node_modules")), yo = {
|
|
|
1473
1473
|
throw new gt(mo);
|
|
1474
1474
|
},
|
|
1475
1475
|
requireDirectory: () => {
|
|
1476
|
-
throw new gt(
|
|
1476
|
+
throw new gt(Ir);
|
|
1477
1477
|
},
|
|
1478
1478
|
stringWidth: (a) => [...a].length,
|
|
1479
1479
|
y18n: po({
|
|
@@ -1484,7 +1484,7 @@ const go = Ee.substring(0, Ee.lastIndexOf("node_modules")), yo = {
|
|
|
1484
1484
|
function jt(a, t, e, n) {
|
|
1485
1485
|
e.assert.notStrictEqual(a, t, n);
|
|
1486
1486
|
}
|
|
1487
|
-
function
|
|
1487
|
+
function Cr(a, t) {
|
|
1488
1488
|
t.assert.strictEqual(typeof a, "string");
|
|
1489
1489
|
}
|
|
1490
1490
|
function Ue(a) {
|
|
@@ -1634,7 +1634,7 @@ function Oo(a) {
|
|
|
1634
1634
|
return null;
|
|
1635
1635
|
}
|
|
1636
1636
|
const ie = /(^\*)|(^\$0)/;
|
|
1637
|
-
class
|
|
1637
|
+
class Io {
|
|
1638
1638
|
constructor(t, e, n, s) {
|
|
1639
1639
|
this.requireCache = /* @__PURE__ */ new Set(), this.handlers = {}, this.aliasMap = {}, this.frozens = [], this.shim = s, this.usage = t, this.globalMiddleware = n, this.validation = e;
|
|
1640
1640
|
}
|
|
@@ -1881,8 +1881,8 @@ class Co {
|
|
|
1881
1881
|
return this.handlers = {}, this.aliasMap = {}, this.defaultCommand = void 0, this.requireCache = /* @__PURE__ */ new Set(), this;
|
|
1882
1882
|
}
|
|
1883
1883
|
}
|
|
1884
|
-
function
|
|
1885
|
-
return new
|
|
1884
|
+
function Co(a, t, e, n) {
|
|
1885
|
+
return new Io(a, t, e, n);
|
|
1886
1886
|
}
|
|
1887
1887
|
function vr(a) {
|
|
1888
1888
|
return typeof a == "object" && !!a.builder && typeof a.handler == "function";
|
|
@@ -1973,10 +1973,10 @@ function No(a, t) {
|
|
|
1973
1973
|
n.epilog = (S) => {
|
|
1974
1974
|
D.push(S);
|
|
1975
1975
|
};
|
|
1976
|
-
let _ = !1,
|
|
1976
|
+
let _ = !1, I;
|
|
1977
1977
|
n.wrap = (S) => {
|
|
1978
|
-
_ = !0,
|
|
1979
|
-
}, n.getWrap = () => t.getEnv("YARGS_DISABLE_WRAP") ? null : (_ || (
|
|
1978
|
+
_ = !0, I = S;
|
|
1979
|
+
}, n.getWrap = () => t.getEnv("YARGS_DISABLE_WRAP") ? null : (_ || (I = U(), _ = !0), I);
|
|
1980
1980
|
const T = "__yargsString__:";
|
|
1981
1981
|
n.deferY18nLookup = (S) => T + S, n.help = function() {
|
|
1982
1982
|
if (v)
|
|
@@ -2011,7 +2011,7 @@ function No(a, t) {
|
|
|
2011
2011
|
at.span({
|
|
2012
2012
|
text: P,
|
|
2013
2013
|
padding: [0, 2, 0, 2],
|
|
2014
|
-
width:
|
|
2014
|
+
width: C(y, Ot, `${R}${x}`) + 4
|
|
2015
2015
|
}, { text: j[1] });
|
|
2016
2016
|
const J = [];
|
|
2017
2017
|
j[2] && J.push(`[${e("default")}]`), j[3] && j[3].length && J.push(`[${e("aliases:")} ${j[3].join(", ")}]`), j[4] && (typeof j[4] == "string" ? J.push(`[${e("deprecated: %s", j[4])}]`) : J.push(`[${e("deprecated")}]`)), J.length ? at.div({
|
|
@@ -2025,7 +2025,7 @@ function No(a, t) {
|
|
|
2025
2025
|
ft = ft.filter((Q) => !a.parsed.newAliases[Q] && st.every((x) => (V.alias[x] || []).indexOf(Q) === -1));
|
|
2026
2026
|
const ut = e("Options:");
|
|
2027
2027
|
k[ut] || (k[ut] = []), M(ft, V.alias, k, ut);
|
|
2028
|
-
const vt = (Q) => /^--/.test(
|
|
2028
|
+
const vt = (Q) => /^--/.test(Ce(Q)), K = Object.keys(k).filter((Q) => k[Q].length > 0).map((Q) => {
|
|
2029
2029
|
const x = k[Q].filter(X).map((b) => {
|
|
2030
2030
|
if (st.includes(b))
|
|
2031
2031
|
return b;
|
|
@@ -2056,9 +2056,9 @@ function No(a, t) {
|
|
|
2056
2056
|
W(V.default[j], V.defaultDescription[j])
|
|
2057
2057
|
].filter(Boolean).join(" ");
|
|
2058
2058
|
at.span({
|
|
2059
|
-
text:
|
|
2059
|
+
text: Ce(P),
|
|
2060
2060
|
padding: [0, 2, 0, 2 + _r(P)],
|
|
2061
|
-
width:
|
|
2061
|
+
width: C(b, Ot) + 4
|
|
2062
2062
|
}, J);
|
|
2063
2063
|
const A = a.getInternalMethods().getUsageConfiguration()["hide-types"] === !0;
|
|
2064
2064
|
ht && !A ? at.div({ text: ht, padding: [0, 0, 0, 2], align: "right" }) : at.div();
|
|
@@ -2072,7 +2072,7 @@ function No(a, t) {
|
|
|
2072
2072
|
}) : at.div({
|
|
2073
2073
|
text: Q[0],
|
|
2074
2074
|
padding: [0, 2, 0, 2],
|
|
2075
|
-
width:
|
|
2075
|
+
width: C(p, Ot) + 4
|
|
2076
2076
|
}, {
|
|
2077
2077
|
text: Q[1]
|
|
2078
2078
|
});
|
|
@@ -2084,10 +2084,10 @@ function No(a, t) {
|
|
|
2084
2084
|
}
|
|
2085
2085
|
return at.toString().replace(/\s*$/, "");
|
|
2086
2086
|
};
|
|
2087
|
-
function
|
|
2087
|
+
function C(S, R, $) {
|
|
2088
2088
|
let q = 0;
|
|
2089
2089
|
return Array.isArray(S) || (S = Object.values(S).map((z) => [z])), S.forEach((z) => {
|
|
2090
|
-
q = Math.max(t.stringWidth($ ? `${$} ${
|
|
2090
|
+
q = Math.max(t.stringWidth($ ? `${$} ${Ce(z[0])}` : Ce(z[0])) + _r(z[0]), q);
|
|
2091
2091
|
}), R && (q = Math.min(q, parseInt((R * 0.5).toString(), 10))), q;
|
|
2092
2092
|
}
|
|
2093
2093
|
function g() {
|
|
@@ -2193,7 +2193,7 @@ function Ao(a, t) {
|
|
|
2193
2193
|
function _r(a) {
|
|
2194
2194
|
return Qn(a) ? a.indentation : 0;
|
|
2195
2195
|
}
|
|
2196
|
-
function
|
|
2196
|
+
function Ce(a) {
|
|
2197
2197
|
return Qn(a) ? a.text : a;
|
|
2198
2198
|
}
|
|
2199
2199
|
const Mo = `###-begin-{{app_name}}-completions-###
|
|
@@ -2340,10 +2340,10 @@ class Lo {
|
|
|
2340
2340
|
let E = t;
|
|
2341
2341
|
if (this.zshShell) {
|
|
2342
2342
|
const w = this.usage.getDescriptions(), D = (r = (i = this === null || this === void 0 ? void 0 : this.aliases) === null || i === void 0 ? void 0 : i[t]) === null || r === void 0 ? void 0 : r.find((T) => {
|
|
2343
|
-
const
|
|
2344
|
-
return typeof
|
|
2345
|
-
}), _ = D ? w[D] : void 0,
|
|
2346
|
-
E = `${t.replace(/:/g, "\\:")}:${
|
|
2343
|
+
const C = w[T];
|
|
2344
|
+
return typeof C == "string" && C.length > 0;
|
|
2345
|
+
}), _ = D ? w[D] : void 0, I = (l = (o = w[t]) !== null && o !== void 0 ? o : _) !== null && l !== void 0 ? l : "";
|
|
2346
|
+
E = `${t.replace(/:/g, "\\:")}:${I.replace("__yargsString__:", "").replace(/(\r\n|\n|\r)/gm, " ")}`;
|
|
2347
2347
|
}
|
|
2348
2348
|
const m = (w) => /^--/.test(w), p = (w) => /^[^0-9]$/.test(w), y = !m(n) && p(t) ? "-" : "--";
|
|
2349
2349
|
e.push(y + E), s && e.push(y + "no-" + E);
|
|
@@ -2422,8 +2422,8 @@ function Ro(a, t, e) {
|
|
|
2422
2422
|
(!Object.prototype.hasOwnProperty.call(p, D) || typeof p[D] > "u") && (w = w || {}, w[D] = y[D]);
|
|
2423
2423
|
if (w) {
|
|
2424
2424
|
const D = [];
|
|
2425
|
-
for (const
|
|
2426
|
-
const T = w[
|
|
2425
|
+
for (const I of Object.keys(w)) {
|
|
2426
|
+
const T = w[I];
|
|
2427
2427
|
T && D.indexOf(T) < 0 && D.push(T);
|
|
2428
2428
|
}
|
|
2429
2429
|
const _ = D.length ? `
|
|
@@ -2432,19 +2432,19 @@ ${D.join(`
|
|
|
2432
2432
|
t.fail(s("Missing required argument: %s", "Missing required arguments: %s", Object.keys(w).length, Object.keys(w).join(", ") + _));
|
|
2433
2433
|
}
|
|
2434
2434
|
}, i.unknownArguments = function(p, y, w, D, _ = !0) {
|
|
2435
|
-
var
|
|
2436
|
-
const T = a.getInternalMethods().getCommandInstance().getCommands(),
|
|
2435
|
+
var I;
|
|
2436
|
+
const T = a.getInternalMethods().getCommandInstance().getCommands(), C = [], g = a.getInternalMethods().getContext();
|
|
2437
2437
|
if (Object.keys(p).forEach((v) => {
|
|
2438
|
-
!Nr.includes(v) && !Object.prototype.hasOwnProperty.call(w, v) && !Object.prototype.hasOwnProperty.call(a.getInternalMethods().getParseContext(), v) && !i.isValidAndSomeAliasIsNotNew(v, y) &&
|
|
2438
|
+
!Nr.includes(v) && !Object.prototype.hasOwnProperty.call(w, v) && !Object.prototype.hasOwnProperty.call(a.getInternalMethods().getParseContext(), v) && !i.isValidAndSomeAliasIsNotNew(v, y) && C.push(v);
|
|
2439
2439
|
}), _ && (g.commands.length > 0 || T.length > 0 || D) && p._.slice(g.commands.length).forEach((v) => {
|
|
2440
|
-
T.includes("" + v) ||
|
|
2440
|
+
T.includes("" + v) || C.push("" + v);
|
|
2441
2441
|
}), _) {
|
|
2442
|
-
const M = ((
|
|
2442
|
+
const M = ((I = a.getDemandedCommands()._) === null || I === void 0 ? void 0 : I.max) || 0, X = g.commands.length + M;
|
|
2443
2443
|
X < p._.length && p._.slice(X).forEach((W) => {
|
|
2444
|
-
W = String(W), !g.commands.includes(W) && !
|
|
2444
|
+
W = String(W), !g.commands.includes(W) && !C.includes(W) && C.push(W);
|
|
2445
2445
|
});
|
|
2446
2446
|
}
|
|
2447
|
-
|
|
2447
|
+
C.length && t.fail(s("Unknown argument: %s", "Unknown arguments: %s", C.length, C.map((v) => v.trim() ? v : `"${v}"`).join(", ")));
|
|
2448
2448
|
}, i.unknownCommands = function(p) {
|
|
2449
2449
|
const y = a.getInternalMethods().getCommandInstance().getCommands(), w = [], D = a.getInternalMethods().getContext();
|
|
2450
2450
|
return (D.commands.length > 0 || y.length > 0) && p._.slice(D.commands.length).forEach((_) => {
|
|
@@ -2459,18 +2459,18 @@ ${D.join(`
|
|
|
2459
2459
|
const y = a.getOptions(), w = {};
|
|
2460
2460
|
if (!Object.keys(y.choices).length)
|
|
2461
2461
|
return;
|
|
2462
|
-
Object.keys(p).forEach((
|
|
2463
|
-
Nr.indexOf(
|
|
2464
|
-
y.choices[
|
|
2462
|
+
Object.keys(p).forEach((I) => {
|
|
2463
|
+
Nr.indexOf(I) === -1 && Object.prototype.hasOwnProperty.call(y.choices, I) && [].concat(p[I]).forEach((T) => {
|
|
2464
|
+
y.choices[I].indexOf(T) === -1 && T !== void 0 && (w[I] = (w[I] || []).concat(T));
|
|
2465
2465
|
});
|
|
2466
2466
|
});
|
|
2467
2467
|
const D = Object.keys(w);
|
|
2468
2468
|
if (!D.length)
|
|
2469
2469
|
return;
|
|
2470
2470
|
let _ = n("Invalid values:");
|
|
2471
|
-
D.forEach((
|
|
2471
|
+
D.forEach((I) => {
|
|
2472
2472
|
_ += `
|
|
2473
|
-
${n("Argument: %s, Given: %s, Choices: %s",
|
|
2473
|
+
${n("Argument: %s, Given: %s, Choices: %s", I, t.stringifiedValues(w[I]), t.stringifiedValues(y.choices[I]))}`;
|
|
2474
2474
|
}), t.fail(_);
|
|
2475
2475
|
};
|
|
2476
2476
|
let r = {};
|
|
@@ -2490,9 +2490,9 @@ ${D.join(`
|
|
|
2490
2490
|
if (Object.keys(r).forEach((w) => {
|
|
2491
2491
|
const D = w;
|
|
2492
2492
|
(r[w] || []).forEach((_) => {
|
|
2493
|
-
let
|
|
2493
|
+
let I = D;
|
|
2494
2494
|
const T = _;
|
|
2495
|
-
|
|
2495
|
+
I = o(p, I), _ = o(p, _), I && !_ && y.push(` ${D} -> ${T}`);
|
|
2496
2496
|
});
|
|
2497
2497
|
}), y.length) {
|
|
2498
2498
|
let w = `${n("Implications failed:")}
|
|
@@ -2518,11 +2518,11 @@ ${D.join(`
|
|
|
2518
2518
|
});
|
|
2519
2519
|
});
|
|
2520
2520
|
}, i.recommendCommands = function(p, y) {
|
|
2521
|
-
y = y.sort((
|
|
2521
|
+
y = y.sort((I, T) => T.length - I.length);
|
|
2522
2522
|
let D = null, _ = 1 / 0;
|
|
2523
|
-
for (let
|
|
2524
|
-
const
|
|
2525
|
-
|
|
2523
|
+
for (let I = 0, T; (T = y[I]) !== void 0; I++) {
|
|
2524
|
+
const C = Bo(p, T);
|
|
2525
|
+
C <= 3 && C < _ && (_ = C, D = T);
|
|
2526
2526
|
}
|
|
2527
2527
|
D && t.fail(n("Did you mean %s?", D));
|
|
2528
2528
|
}, i.reset = function(p) {
|
|
@@ -2586,7 +2586,7 @@ var H = function(a, t, e, n, s) {
|
|
|
2586
2586
|
if (e === "a" && !n) throw new TypeError("Private accessor was defined without a getter");
|
|
2587
2587
|
if (typeof t == "function" ? a !== t || !n : !t.has(a)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
2588
2588
|
return e === "m" ? n : e === "a" ? n.call(a) : n ? n.value : t.get(a);
|
|
2589
|
-
}, mt, zt, fe, _t,
|
|
2589
|
+
}, mt, zt, fe, _t, It, De, Vt, Yt, Te, Nt, ve, At, Bt, Ct, Mt, _e, se, wt, Y, Ne, Ae, Dt, kt, oe, Kt, Ht, Me, tt, Qt, Jt, Zt, et, Pe, Rt, dt;
|
|
2590
2590
|
function $o(a) {
|
|
2591
2591
|
return (t = [], e = a.process.cwd(), n) => {
|
|
2592
2592
|
const s = new Wo(t, e, n, a);
|
|
@@ -2599,7 +2599,7 @@ function $o(a) {
|
|
|
2599
2599
|
const Ar = Symbol("copyDoubleDash"), Mr = Symbol("copyDoubleDash"), Ye = Symbol("deleteFromParserHintObject"), Pr = Symbol("emitWarning"), Lr = Symbol("freeze"), Sr = Symbol("getDollarZero"), te = Symbol("getParserConfiguration"), Fr = Symbol("getUsageConfiguration"), ke = Symbol("guessLocale"), jr = Symbol("guessVersion"), Br = Symbol("parsePositionalNumbers"), Ke = Symbol("pkgUp"), Gt = Symbol("populateParserHintArray"), ae = Symbol("populateParserHintSingleValueDictionary"), Qe = Symbol("populateParserHintArrayDictionary"), Je = Symbol("populateParserHintDictionary"), Ze = Symbol("sanitizeKey"), tn = Symbol("setKey"), en = Symbol("unfreeze"), Rr = Symbol("validateAsync"), Ur = Symbol("getCommandInstance"), Xr = Symbol("getContext"), $r = Symbol("getHasOutput"), Wr = Symbol("getLoggerInstance"), qr = Symbol("getParseContext"), Vr = Symbol("getUsageInstance"), Hr = Symbol("getValidationInstance"), Le = Symbol("hasParseCallback"), Gr = Symbol("isGlobalContext"), ee = Symbol("postProcess"), zr = Symbol("rebase"), nn = Symbol("reset"), he = Symbol("runYargsParserAndExecuteCommands"), rn = Symbol("runValidation"), Yr = Symbol("setHasOutput"), ne = Symbol("kTrackManuallySetKeys");
|
|
2600
2600
|
class Wo {
|
|
2601
2601
|
constructor(t = [], e, n, s) {
|
|
2602
|
-
this.customScriptName = !1, this.parsed = !1, mt.set(this, void 0), zt.set(this, void 0), fe.set(this, { commands: [], fullCommands: [] }), _t.set(this, null),
|
|
2602
|
+
this.customScriptName = !1, this.parsed = !1, mt.set(this, void 0), zt.set(this, void 0), fe.set(this, { commands: [], fullCommands: [] }), _t.set(this, null), It.set(this, null), De.set(this, "show-hidden"), Vt.set(this, null), Yt.set(this, !0), Te.set(this, {}), Nt.set(this, !0), ve.set(this, []), At.set(this, void 0), Bt.set(this, {}), Ct.set(this, !1), Mt.set(this, null), _e.set(this, !0), se.set(this, void 0), wt.set(this, ""), Y.set(this, void 0), Ne.set(this, void 0), Ae.set(this, {}), Dt.set(this, null), kt.set(this, null), oe.set(this, {}), Kt.set(this, {}), Ht.set(this, void 0), Me.set(this, !1), tt.set(this, void 0), Qt.set(this, !1), Jt.set(this, !1), Zt.set(this, !1), et.set(this, void 0), Pe.set(this, {}), Rt.set(this, null), dt.set(this, void 0), H(this, tt, s, "f"), H(this, Ht, t, "f"), H(this, zt, e, "f"), H(this, Ne, n, "f"), H(this, At, new wo(this), "f"), this.$0 = this[Sr](), this[nn](), H(this, mt, O(this, mt, "f"), "f"), H(this, et, O(this, et, "f"), "f"), H(this, dt, O(this, dt, "f"), "f"), H(this, Y, O(this, Y, "f"), "f"), O(this, Y, "f").showHiddenOpt = O(this, De, "f"), H(this, se, this[Mr](), "f");
|
|
2603
2603
|
}
|
|
2604
2604
|
addHelpOpt(t, e) {
|
|
2605
2605
|
const n = "help";
|
|
@@ -2669,7 +2669,7 @@ class Wo {
|
|
|
2669
2669
|
}), this);
|
|
2670
2670
|
}
|
|
2671
2671
|
completion(t, e, n) {
|
|
2672
|
-
return G("[string] [string|boolean|function] [function]", [t, e, n], arguments.length), typeof e == "function" && (n = e, e = void 0), H(this,
|
|
2672
|
+
return G("[string] [string|boolean|function] [function]", [t, e, n], arguments.length), typeof e == "function" && (n = e, e = void 0), H(this, It, t || O(this, It, "f") || "completion", "f"), !e && e !== !1 && (e = "generate completion script"), this.command(O(this, It, "f"), e), n && O(this, _t, "f").registerFunction(n), this;
|
|
2673
2673
|
}
|
|
2674
2674
|
command(t, e, n, s, i, r) {
|
|
2675
2675
|
return G("<string|array|object> [string|boolean] [function|object] [function] [array] [boolean|string]", [t, e, n, s, i, r], arguments.length), O(this, mt, "f").addHandler(t, e, n, s, i, r), this;
|
|
@@ -2686,7 +2686,7 @@ class Wo {
|
|
|
2686
2686
|
return G("<array|string>", [t], arguments.length), this[Gt]("count", t), this[ne](t), this;
|
|
2687
2687
|
}
|
|
2688
2688
|
default(t, e, n) {
|
|
2689
|
-
return G("<object|string|array> [*] [string]", [t, e, n], arguments.length), n && (
|
|
2689
|
+
return G("<object|string|array> [*] [string]", [t, e, n], arguments.length), n && (Cr(t, O(this, tt, "f")), O(this, Y, "f").defaultDescription[t] = n), typeof e == "function" && (Cr(t, O(this, tt, "f")), O(this, Y, "f").defaultDescription[t] || (O(this, Y, "f").defaultDescription[t] = O(this, et, "f").functionDescription(e)), e = e.call()), this[ae](this.default.bind(this), "default", t, e), this;
|
|
2690
2690
|
}
|
|
2691
2691
|
defaults(t, e, n) {
|
|
2692
2692
|
return this.default(t, e, n);
|
|
@@ -2731,7 +2731,7 @@ class Wo {
|
|
|
2731
2731
|
return G("<string|array> [string]", [t, e], arguments.length), Array.isArray(t) ? t.forEach((n) => this.example(...n)) : O(this, et, "f").example(t, e), this;
|
|
2732
2732
|
}
|
|
2733
2733
|
exit(t, e) {
|
|
2734
|
-
H(this,
|
|
2734
|
+
H(this, Ct, !0, "f"), H(this, Vt, e, "f"), O(this, Nt, "f") && O(this, tt, "f").process.exit(t);
|
|
2735
2735
|
}
|
|
2736
2736
|
exitProcess(t = !0) {
|
|
2737
2737
|
return G("[boolean]", [t], arguments.length), H(this, Nt, t, "f"), this;
|
|
@@ -2770,7 +2770,7 @@ class Wo {
|
|
|
2770
2770
|
return Object.assign({}, O(this, Bt, "f"), O(this, Kt, "f"));
|
|
2771
2771
|
}
|
|
2772
2772
|
getHelp() {
|
|
2773
|
-
if (H(this,
|
|
2773
|
+
if (H(this, Ct, !0, "f"), !O(this, et, "f").hasCachedHelpMessage()) {
|
|
2774
2774
|
if (!this.parsed) {
|
|
2775
2775
|
const e = this[he](O(this, Ht, "f"), void 0, void 0, 0, !0);
|
|
2776
2776
|
if (yt(e))
|
|
@@ -2923,10 +2923,10 @@ class Wo {
|
|
|
2923
2923
|
return G("<array|string|object> [number]", [t], arguments.length), typeof t == "string" && O(this, Y, "f").narg[t] ? this : (this[ae](this.requiresArg.bind(this), "narg", t, NaN), this);
|
|
2924
2924
|
}
|
|
2925
2925
|
showCompletionScript(t, e) {
|
|
2926
|
-
return G("[string] [string]", [t, e], arguments.length), t = t || this.$0, O(this, se, "f").log(O(this, _t, "f").generateCompletionScript(t, e || O(this,
|
|
2926
|
+
return G("[string] [string]", [t, e], arguments.length), t = t || this.$0, O(this, se, "f").log(O(this, _t, "f").generateCompletionScript(t, e || O(this, It, "f") || "completion")), this;
|
|
2927
2927
|
}
|
|
2928
2928
|
showHelp(t) {
|
|
2929
|
-
if (G("[string|function]", [t], arguments.length), H(this,
|
|
2929
|
+
if (G("[string|function]", [t], arguments.length), H(this, Ct, !0, "f"), !O(this, et, "f").hasCachedHelpMessage()) {
|
|
2930
2930
|
if (!this.parsed) {
|
|
2931
2931
|
const n = this[he](O(this, Ht, "f"), void 0, void 0, 0, !0);
|
|
2932
2932
|
if (yt(n))
|
|
@@ -3000,7 +3000,7 @@ class Wo {
|
|
|
3000
3000
|
wrap(t) {
|
|
3001
3001
|
return G("<number|null|undefined>", [t], arguments.length), O(this, et, "f").wrap(t), this;
|
|
3002
3002
|
}
|
|
3003
|
-
[(mt = /* @__PURE__ */ new WeakMap(), zt = /* @__PURE__ */ new WeakMap(), fe = /* @__PURE__ */ new WeakMap(), _t = /* @__PURE__ */ new WeakMap(),
|
|
3003
|
+
[(mt = /* @__PURE__ */ new WeakMap(), zt = /* @__PURE__ */ new WeakMap(), fe = /* @__PURE__ */ new WeakMap(), _t = /* @__PURE__ */ new WeakMap(), It = /* @__PURE__ */ new WeakMap(), De = /* @__PURE__ */ new WeakMap(), Vt = /* @__PURE__ */ new WeakMap(), Yt = /* @__PURE__ */ new WeakMap(), Te = /* @__PURE__ */ new WeakMap(), Nt = /* @__PURE__ */ new WeakMap(), ve = /* @__PURE__ */ new WeakMap(), At = /* @__PURE__ */ new WeakMap(), Bt = /* @__PURE__ */ new WeakMap(), Ct = /* @__PURE__ */ new WeakMap(), Mt = /* @__PURE__ */ new WeakMap(), _e = /* @__PURE__ */ new WeakMap(), se = /* @__PURE__ */ new WeakMap(), wt = /* @__PURE__ */ new WeakMap(), Y = /* @__PURE__ */ new WeakMap(), Ne = /* @__PURE__ */ new WeakMap(), Ae = /* @__PURE__ */ new WeakMap(), Dt = /* @__PURE__ */ new WeakMap(), kt = /* @__PURE__ */ new WeakMap(), oe = /* @__PURE__ */ new WeakMap(), Kt = /* @__PURE__ */ new WeakMap(), Ht = /* @__PURE__ */ new WeakMap(), Me = /* @__PURE__ */ new WeakMap(), tt = /* @__PURE__ */ new WeakMap(), Qt = /* @__PURE__ */ new WeakMap(), Jt = /* @__PURE__ */ new WeakMap(), Zt = /* @__PURE__ */ new WeakMap(), et = /* @__PURE__ */ new WeakMap(), Pe = /* @__PURE__ */ new WeakMap(), Rt = /* @__PURE__ */ new WeakMap(), dt = /* @__PURE__ */ new WeakMap(), Ar)](t) {
|
|
3004
3004
|
if (!t._ || !t["--"])
|
|
3005
3005
|
return t;
|
|
3006
3006
|
t._.push.apply(t._, t["--"]);
|
|
@@ -3013,11 +3013,11 @@ class Wo {
|
|
|
3013
3013
|
[Mr]() {
|
|
3014
3014
|
return {
|
|
3015
3015
|
log: (...t) => {
|
|
3016
|
-
this[Le]() || console.log(...t), H(this,
|
|
3016
|
+
this[Le]() || console.log(...t), H(this, Ct, !0, "f"), O(this, wt, "f").length && H(this, wt, O(this, wt, "f") + `
|
|
3017
3017
|
`, "f"), H(this, wt, O(this, wt, "f") + t.join(" "), "f");
|
|
3018
3018
|
},
|
|
3019
3019
|
error: (...t) => {
|
|
3020
|
-
this[Le]() || console.error(...t), H(this,
|
|
3020
|
+
this[Le]() || console.error(...t), H(this, Ct, !0, "f"), O(this, wt, "f").length && H(this, wt, O(this, wt, "f") + `
|
|
3021
3021
|
`, "f"), H(this, wt, O(this, wt, "f") + t.join(" "), "f");
|
|
3022
3022
|
}
|
|
3023
3023
|
};
|
|
@@ -3042,10 +3042,10 @@ class Wo {
|
|
|
3042
3042
|
strict: O(this, Qt, "f"),
|
|
3043
3043
|
strictCommands: O(this, Jt, "f"),
|
|
3044
3044
|
strictOptions: O(this, Zt, "f"),
|
|
3045
|
-
completionCommand: O(this,
|
|
3045
|
+
completionCommand: O(this, It, "f"),
|
|
3046
3046
|
output: O(this, wt, "f"),
|
|
3047
3047
|
exitError: O(this, Vt, "f"),
|
|
3048
|
-
hasOutput: O(this,
|
|
3048
|
+
hasOutput: O(this, Ct, "f"),
|
|
3049
3049
|
parsed: this.parsed,
|
|
3050
3050
|
parseFn: O(this, Dt, "f"),
|
|
3051
3051
|
parseContext: O(this, kt, "f")
|
|
@@ -3151,7 +3151,7 @@ class Wo {
|
|
|
3151
3151
|
H(i, Vt, _, "f");
|
|
3152
3152
|
} }.value,
|
|
3153
3153
|
hasOutput: { set value(_) {
|
|
3154
|
-
H(r,
|
|
3154
|
+
H(r, Ct, _, "f");
|
|
3155
3155
|
} }.value,
|
|
3156
3156
|
parsed: this.parsed,
|
|
3157
3157
|
strict: { set value(_) {
|
|
@@ -3164,7 +3164,7 @@ class Wo {
|
|
|
3164
3164
|
H(E, Zt, _, "f");
|
|
3165
3165
|
} }.value,
|
|
3166
3166
|
completionCommand: { set value(_) {
|
|
3167
|
-
H(m,
|
|
3167
|
+
H(m, It, _, "f");
|
|
3168
3168
|
} }.value,
|
|
3169
3169
|
parseFn: { set value(_) {
|
|
3170
3170
|
H(p, Dt, _, "f");
|
|
@@ -3204,7 +3204,7 @@ class Wo {
|
|
|
3204
3204
|
return O(this, fe, "f");
|
|
3205
3205
|
}
|
|
3206
3206
|
[$r]() {
|
|
3207
|
-
return O(this,
|
|
3207
|
+
return O(this, Ct, "f");
|
|
3208
3208
|
}
|
|
3209
3209
|
[Wr]() {
|
|
3210
3210
|
return O(this, se, "f");
|
|
@@ -3265,7 +3265,7 @@ class Wo {
|
|
|
3265
3265
|
e[r] = (O(this, Y, "f")[r] || []).filter((o) => !n[o]);
|
|
3266
3266
|
}), i.forEach((r) => {
|
|
3267
3267
|
e[r] = xe(O(this, Y, "f")[r], (o) => !n[o]);
|
|
3268
|
-
}), e.envPrefix = O(this, Y, "f").envPrefix, H(this, Y, e, "f"), H(this, et, O(this, et, "f") ? O(this, et, "f").reset(n) : No(this, O(this, tt, "f")), "f"), H(this, dt, O(this, dt, "f") ? O(this, dt, "f").reset(n) : Ro(this, O(this, et, "f"), O(this, tt, "f")), "f"), H(this, mt, O(this, mt, "f") ? O(this, mt, "f").reset() :
|
|
3268
|
+
}), e.envPrefix = O(this, Y, "f").envPrefix, H(this, Y, e, "f"), H(this, et, O(this, et, "f") ? O(this, et, "f").reset(n) : No(this, O(this, tt, "f")), "f"), H(this, dt, O(this, dt, "f") ? O(this, dt, "f").reset(n) : Ro(this, O(this, et, "f"), O(this, tt, "f")), "f"), H(this, mt, O(this, mt, "f") ? O(this, mt, "f").reset() : Co(O(this, et, "f"), O(this, dt, "f"), O(this, At, "f"), O(this, tt, "f")), "f"), O(this, _t, "f") || H(this, _t, So(this, O(this, et, "f"), O(this, mt, "f"), O(this, tt, "f")), "f"), O(this, At, "f").reset(), H(this, It, null, "f"), H(this, wt, "", "f"), H(this, Vt, null, "f"), H(this, Ct, !1, "f"), this.parsed = !1, this;
|
|
3269
3269
|
}
|
|
3270
3270
|
[zr](t, e) {
|
|
3271
3271
|
return O(this, tt, "f").path.relative(t, e);
|
|
@@ -3288,30 +3288,30 @@ class Wo {
|
|
|
3288
3288
|
if (this[ke](), e)
|
|
3289
3289
|
return this[ee](m, o, !!n, !1);
|
|
3290
3290
|
O(this, Mt, "f") && [O(this, Mt, "f")].concat(y[O(this, Mt, "f")] || []).filter((g) => g.length > 1).includes("" + m._[m._.length - 1]) && (m._.pop(), w = !0), H(this, _e, !1, "f");
|
|
3291
|
-
const _ = O(this, mt, "f").getCommands(),
|
|
3291
|
+
const _ = O(this, mt, "f").getCommands(), I = O(this, _t, "f").completionKey in m, T = w || I || i;
|
|
3292
3292
|
if (m._.length) {
|
|
3293
3293
|
if (_.length) {
|
|
3294
|
-
let
|
|
3294
|
+
let C;
|
|
3295
3295
|
for (let g = s || 0, v; m._[g] !== void 0; g++)
|
|
3296
|
-
if (v = String(m._[g]), _.includes(v) && v !== O(this,
|
|
3296
|
+
if (v = String(m._[g]), _.includes(v) && v !== O(this, It, "f")) {
|
|
3297
3297
|
const M = O(this, mt, "f").runCommand(v, this, E, g + 1, i, w || D || i);
|
|
3298
3298
|
return this[ee](M, o, !!n, !1);
|
|
3299
|
-
} else if (!
|
|
3300
|
-
|
|
3299
|
+
} else if (!C && v !== O(this, It, "f")) {
|
|
3300
|
+
C = v;
|
|
3301
3301
|
break;
|
|
3302
3302
|
}
|
|
3303
|
-
!O(this, mt, "f").hasDefaultCommand() && O(this, Me, "f") &&
|
|
3303
|
+
!O(this, mt, "f").hasDefaultCommand() && O(this, Me, "f") && C && !T && O(this, dt, "f").recommendCommands(C, _);
|
|
3304
3304
|
}
|
|
3305
|
-
O(this,
|
|
3305
|
+
O(this, It, "f") && m._.includes(O(this, It, "f")) && !I && (O(this, Nt, "f") && me(!0), this.showCompletionScript(), this.exit(0));
|
|
3306
3306
|
}
|
|
3307
3307
|
if (O(this, mt, "f").hasDefaultCommand() && !T) {
|
|
3308
|
-
const
|
|
3309
|
-
return this[ee](
|
|
3308
|
+
const C = O(this, mt, "f").runCommand(null, this, E, 0, i, w || D || i);
|
|
3309
|
+
return this[ee](C, o, !!n, !1);
|
|
3310
3310
|
}
|
|
3311
|
-
if (
|
|
3311
|
+
if (I) {
|
|
3312
3312
|
O(this, Nt, "f") && me(!0), t = [].concat(t);
|
|
3313
|
-
const
|
|
3314
|
-
return O(this, _t, "f").getCompletion(
|
|
3313
|
+
const C = t.slice(t.indexOf(`--${O(this, _t, "f").completionKey}`) + 1);
|
|
3314
|
+
return O(this, _t, "f").getCompletion(C, (g, v) => {
|
|
3315
3315
|
if (g)
|
|
3316
3316
|
throw new gt(g.message);
|
|
3317
3317
|
(v || []).forEach((M) => {
|
|
@@ -3319,12 +3319,12 @@ class Wo {
|
|
|
3319
3319
|
}), this.exit(0);
|
|
3320
3320
|
}), this[ee](m, !o, !!n, !1);
|
|
3321
3321
|
}
|
|
3322
|
-
if (O(this,
|
|
3322
|
+
if (O(this, Ct, "f") || (w ? (O(this, Nt, "f") && me(!0), r = !0, this.showHelp("log"), this.exit(0)) : D && (O(this, Nt, "f") && me(!0), r = !0, O(this, et, "f").showVersion("log"), this.exit(0))), !r && O(this, Y, "f").skipValidation.length > 0 && (r = Object.keys(m).some((C) => O(this, Y, "f").skipValidation.indexOf(C) >= 0 && m[C] === !0)), !r) {
|
|
3323
3323
|
if (E.error)
|
|
3324
3324
|
throw new gt(E.error.message);
|
|
3325
|
-
if (!
|
|
3326
|
-
const
|
|
3327
|
-
n || (p = be(m, this, O(this, At, "f").getMiddleware(), !0)), p = this[Rr](
|
|
3325
|
+
if (!I) {
|
|
3326
|
+
const C = this[rn](y, {}, E.error);
|
|
3327
|
+
n || (p = be(m, this, O(this, At, "f").getMiddleware(), !0)), p = this[Rr](C, p ?? m), yt(p) && !n && (p = p.then(() => be(m, this, O(this, At, "f").getMiddleware(), !1)));
|
|
3328
3328
|
}
|
|
3329
3329
|
}
|
|
3330
3330
|
} catch (_) {
|
|
@@ -3346,7 +3346,7 @@ class Wo {
|
|
|
3346
3346
|
};
|
|
3347
3347
|
}
|
|
3348
3348
|
[Yr]() {
|
|
3349
|
-
H(this,
|
|
3349
|
+
H(this, Ct, !0, "f");
|
|
3350
3350
|
}
|
|
3351
3351
|
[ne](t) {
|
|
3352
3352
|
if (typeof t == "string")
|
|
@@ -3686,12 +3686,12 @@ function tr() {
|
|
|
3686
3686
|
o = qt(), r = o.isObject, i = o.isFunction, s = o.getValue, n = Lt(), a = bt(), t = as(), e = Zn(), pn.exports = function(m) {
|
|
3687
3687
|
l(p, m);
|
|
3688
3688
|
function p(y, w, D) {
|
|
3689
|
-
var _,
|
|
3689
|
+
var _, I, T, C;
|
|
3690
3690
|
if (p.__super__.constructor.call(this, y), w == null)
|
|
3691
3691
|
throw new Error("Missing element name. " + this.debugInfo());
|
|
3692
3692
|
if (this.name = this.stringify.name(w), this.type = a.Element, this.attribs = {}, this.schemaTypeInfo = null, D != null && this.attribute(D), y.type === a.Document && (this.isRoot = !0, this.documentObject = y, y.rootObject = this, y.children)) {
|
|
3693
|
-
for (
|
|
3694
|
-
if (_ = I
|
|
3693
|
+
for (C = y.children, I = 0, T = C.length; I < T; I++)
|
|
3694
|
+
if (_ = C[I], _.type === a.DocType) {
|
|
3695
3695
|
_.name = this.name;
|
|
3696
3696
|
break;
|
|
3697
3697
|
}
|
|
@@ -3734,9 +3734,9 @@ function tr() {
|
|
|
3734
3734
|
D = Object.create(this), D.isRoot && (D.documentObject = null), D.attribs = {}, _ = this.attribs;
|
|
3735
3735
|
for (w in _)
|
|
3736
3736
|
E.call(_, w) && (y = _[w], D.attribs[w] = y.clone());
|
|
3737
|
-
return D.children = [], this.children.forEach(function(
|
|
3737
|
+
return D.children = [], this.children.forEach(function(I) {
|
|
3738
3738
|
var T;
|
|
3739
|
-
return T =
|
|
3739
|
+
return T = I.clone(), T.parent = D, D.children.push(T);
|
|
3740
3740
|
}), D;
|
|
3741
3741
|
}, p.prototype.attribute = function(y, w) {
|
|
3742
3742
|
var D, _;
|
|
@@ -3975,7 +3975,7 @@ function ir() {
|
|
|
3975
3975
|
}(t);
|
|
3976
3976
|
}.call(it)), On.exports;
|
|
3977
3977
|
}
|
|
3978
|
-
var
|
|
3978
|
+
var In = { exports: {} }, li;
|
|
3979
3979
|
function sr() {
|
|
3980
3980
|
return li || (li = 1, function() {
|
|
3981
3981
|
var a, t, e, n = function(i, r) {
|
|
@@ -3986,7 +3986,7 @@ function sr() {
|
|
|
3986
3986
|
}
|
|
3987
3987
|
return l.prototype = r.prototype, i.prototype = new l(), i.__super__ = r.prototype, i;
|
|
3988
3988
|
}, s = {}.hasOwnProperty;
|
|
3989
|
-
e = qt().isObject, t = Lt(), a = bt(),
|
|
3989
|
+
e = qt().isObject, t = Lt(), a = bt(), In.exports = function(i) {
|
|
3990
3990
|
n(r, i);
|
|
3991
3991
|
function r(o, l, E, m) {
|
|
3992
3992
|
if (r.__super__.constructor.call(this, o), E == null)
|
|
@@ -4032,9 +4032,9 @@ function sr() {
|
|
|
4032
4032
|
return this.options.writer.dtdEntity(this, this.options.writer.filterOptions(o));
|
|
4033
4033
|
}, r;
|
|
4034
4034
|
}(t);
|
|
4035
|
-
}.call(it)),
|
|
4035
|
+
}.call(it)), In.exports;
|
|
4036
4036
|
}
|
|
4037
|
-
var
|
|
4037
|
+
var Cn = { exports: {} }, fi;
|
|
4038
4038
|
function or() {
|
|
4039
4039
|
return fi || (fi = 1, function() {
|
|
4040
4040
|
var a, t, e = function(s, i) {
|
|
@@ -4045,7 +4045,7 @@ function or() {
|
|
|
4045
4045
|
}
|
|
4046
4046
|
return o.prototype = i.prototype, s.prototype = new o(), s.__super__ = i.prototype, s;
|
|
4047
4047
|
}, n = {}.hasOwnProperty;
|
|
4048
|
-
t = Lt(), a = bt(),
|
|
4048
|
+
t = Lt(), a = bt(), Cn.exports = function(s) {
|
|
4049
4049
|
e(i, s);
|
|
4050
4050
|
function i(r, o, l) {
|
|
4051
4051
|
if (i.__super__.constructor.call(this, r), o == null)
|
|
@@ -4056,7 +4056,7 @@ function or() {
|
|
|
4056
4056
|
return this.options.writer.dtdElement(this, this.options.writer.filterOptions(r));
|
|
4057
4057
|
}, i;
|
|
4058
4058
|
}(t);
|
|
4059
|
-
}.call(it)),
|
|
4059
|
+
}.call(it)), Cn.exports;
|
|
4060
4060
|
}
|
|
4061
4061
|
var Dn = { exports: {} }, hi;
|
|
4062
4062
|
function ar() {
|
|
@@ -4106,10 +4106,10 @@ function ur() {
|
|
|
4106
4106
|
o = qt().isObject, r = Lt(), a = bt(), t = ir(), n = sr(), e = or(), s = ar(), i = Zn(), xn.exports = function(m) {
|
|
4107
4107
|
l(p, m);
|
|
4108
4108
|
function p(y, w, D) {
|
|
4109
|
-
var _,
|
|
4109
|
+
var _, I, T, C, g, v;
|
|
4110
4110
|
if (p.__super__.constructor.call(this, y), this.type = a.DocType, y.children) {
|
|
4111
|
-
for (
|
|
4112
|
-
if (_ = I
|
|
4111
|
+
for (C = y.children, I = 0, T = C.length; I < T; I++)
|
|
4112
|
+
if (_ = C[I], _.type === a.Element) {
|
|
4113
4113
|
this.name = _.name;
|
|
4114
4114
|
break;
|
|
4115
4115
|
}
|
|
@@ -4118,16 +4118,16 @@ function ur() {
|
|
|
4118
4118
|
}
|
|
4119
4119
|
return Object.defineProperty(p.prototype, "entities", {
|
|
4120
4120
|
get: function() {
|
|
4121
|
-
var y, w, D, _,
|
|
4122
|
-
for (_ = {},
|
|
4123
|
-
y =
|
|
4121
|
+
var y, w, D, _, I;
|
|
4122
|
+
for (_ = {}, I = this.children, w = 0, D = I.length; w < D; w++)
|
|
4123
|
+
y = I[w], y.type === a.EntityDeclaration && !y.pe && (_[y.name] = y);
|
|
4124
4124
|
return new i(_);
|
|
4125
4125
|
}
|
|
4126
4126
|
}), Object.defineProperty(p.prototype, "notations", {
|
|
4127
4127
|
get: function() {
|
|
4128
|
-
var y, w, D, _,
|
|
4129
|
-
for (_ = {},
|
|
4130
|
-
y =
|
|
4128
|
+
var y, w, D, _, I;
|
|
4129
|
+
for (_ = {}, I = this.children, w = 0, D = I.length; w < D; w++)
|
|
4130
|
+
y = I[w], y.type === a.NotationDeclaration && (_[y.name] = y);
|
|
4131
4131
|
return new i(_);
|
|
4132
4132
|
}
|
|
4133
4133
|
}), Object.defineProperty(p.prototype, "publicId", {
|
|
@@ -4145,9 +4145,9 @@ function ur() {
|
|
|
4145
4145
|
}), p.prototype.element = function(y, w) {
|
|
4146
4146
|
var D;
|
|
4147
4147
|
return D = new e(this, y, w), this.children.push(D), this;
|
|
4148
|
-
}, p.prototype.attList = function(y, w, D, _,
|
|
4148
|
+
}, p.prototype.attList = function(y, w, D, _, I) {
|
|
4149
4149
|
var T;
|
|
4150
|
-
return T = new t(this, y, w, D, _,
|
|
4150
|
+
return T = new t(this, y, w, D, _, I), this.children.push(T), this;
|
|
4151
4151
|
}, p.prototype.entity = function(y, w) {
|
|
4152
4152
|
var D;
|
|
4153
4153
|
return D = new n(this, !1, y, w), this.children.push(D), this;
|
|
@@ -4161,8 +4161,8 @@ function ur() {
|
|
|
4161
4161
|
return this.options.writer.docType(this, this.options.writer.filterOptions(y));
|
|
4162
4162
|
}, p.prototype.ele = function(y, w) {
|
|
4163
4163
|
return this.element(y, w);
|
|
4164
|
-
}, p.prototype.att = function(y, w, D, _,
|
|
4165
|
-
return this.attList(y, w, D, _,
|
|
4164
|
+
}, p.prototype.att = function(y, w, D, _, I) {
|
|
4165
|
+
return this.attList(y, w, D, _, I);
|
|
4166
4166
|
}, p.prototype.ent = function(y, w) {
|
|
4167
4167
|
return this.entity(y, w);
|
|
4168
4168
|
}, p.prototype.pent = function(y, w) {
|
|
@@ -4333,54 +4333,54 @@ function ko() {
|
|
|
4333
4333
|
var Ei;
|
|
4334
4334
|
function Lt() {
|
|
4335
4335
|
return Ei || (Ei = 1, function() {
|
|
4336
|
-
var a, t, e, n, s, i, r, o, l, E, m, p, y, w, D, _,
|
|
4337
|
-
|
|
4338
|
-
function
|
|
4336
|
+
var a, t, e, n, s, i, r, o, l, E, m, p, y, w, D, _, I, T = {}.hasOwnProperty;
|
|
4337
|
+
I = qt(), _ = I.isObject, D = I.isFunction, w = I.isEmpty, y = I.getValue, o = null, e = null, n = null, s = null, i = null, m = null, p = null, E = null, r = null, t = null, l = null, a = null, hn.exports = function() {
|
|
4338
|
+
function C(g) {
|
|
4339
4339
|
this.parent = g, this.parent && (this.options = this.parent.options, this.stringify = this.parent.stringify), this.value = null, this.children = [], this.baseURI = null, o || (o = tr(), e = er(), n = nr(), s = rr(), i = ur(), m = cr(), p = lr(), E = fr(), r = us(), t = bt(), l = Yo(), Zn(), a = ko());
|
|
4340
4340
|
}
|
|
4341
|
-
return Object.defineProperty(
|
|
4341
|
+
return Object.defineProperty(C.prototype, "nodeName", {
|
|
4342
4342
|
get: function() {
|
|
4343
4343
|
return this.name;
|
|
4344
4344
|
}
|
|
4345
|
-
}), Object.defineProperty(
|
|
4345
|
+
}), Object.defineProperty(C.prototype, "nodeType", {
|
|
4346
4346
|
get: function() {
|
|
4347
4347
|
return this.type;
|
|
4348
4348
|
}
|
|
4349
|
-
}), Object.defineProperty(
|
|
4349
|
+
}), Object.defineProperty(C.prototype, "nodeValue", {
|
|
4350
4350
|
get: function() {
|
|
4351
4351
|
return this.value;
|
|
4352
4352
|
}
|
|
4353
|
-
}), Object.defineProperty(
|
|
4353
|
+
}), Object.defineProperty(C.prototype, "parentNode", {
|
|
4354
4354
|
get: function() {
|
|
4355
4355
|
return this.parent;
|
|
4356
4356
|
}
|
|
4357
|
-
}), Object.defineProperty(
|
|
4357
|
+
}), Object.defineProperty(C.prototype, "childNodes", {
|
|
4358
4358
|
get: function() {
|
|
4359
4359
|
return (!this.childNodeList || !this.childNodeList.nodes) && (this.childNodeList = new l(this.children)), this.childNodeList;
|
|
4360
4360
|
}
|
|
4361
|
-
}), Object.defineProperty(
|
|
4361
|
+
}), Object.defineProperty(C.prototype, "firstChild", {
|
|
4362
4362
|
get: function() {
|
|
4363
4363
|
return this.children[0] || null;
|
|
4364
4364
|
}
|
|
4365
|
-
}), Object.defineProperty(
|
|
4365
|
+
}), Object.defineProperty(C.prototype, "lastChild", {
|
|
4366
4366
|
get: function() {
|
|
4367
4367
|
return this.children[this.children.length - 1] || null;
|
|
4368
4368
|
}
|
|
4369
|
-
}), Object.defineProperty(
|
|
4369
|
+
}), Object.defineProperty(C.prototype, "previousSibling", {
|
|
4370
4370
|
get: function() {
|
|
4371
4371
|
var g;
|
|
4372
4372
|
return g = this.parent.children.indexOf(this), this.parent.children[g - 1] || null;
|
|
4373
4373
|
}
|
|
4374
|
-
}), Object.defineProperty(
|
|
4374
|
+
}), Object.defineProperty(C.prototype, "nextSibling", {
|
|
4375
4375
|
get: function() {
|
|
4376
4376
|
var g;
|
|
4377
4377
|
return g = this.parent.children.indexOf(this), this.parent.children[g + 1] || null;
|
|
4378
4378
|
}
|
|
4379
|
-
}), Object.defineProperty(
|
|
4379
|
+
}), Object.defineProperty(C.prototype, "ownerDocument", {
|
|
4380
4380
|
get: function() {
|
|
4381
4381
|
return this.document() || null;
|
|
4382
4382
|
}
|
|
4383
|
-
}), Object.defineProperty(
|
|
4383
|
+
}), Object.defineProperty(C.prototype, "textContent", {
|
|
4384
4384
|
get: function() {
|
|
4385
4385
|
var g, v, M, X, W;
|
|
4386
4386
|
if (this.nodeType === t.Element || this.nodeType === t.DocumentFragment) {
|
|
@@ -4393,12 +4393,12 @@ function Lt() {
|
|
|
4393
4393
|
set: function(g) {
|
|
4394
4394
|
throw new Error("This DOM method is not implemented." + this.debugInfo());
|
|
4395
4395
|
}
|
|
4396
|
-
}),
|
|
4396
|
+
}), C.prototype.setParent = function(g) {
|
|
4397
4397
|
var v, M, X, W, U;
|
|
4398
4398
|
for (this.parent = g, g && (this.options = g.options, this.stringify = g.stringify), W = this.children, U = [], M = 0, X = W.length; M < X; M++)
|
|
4399
4399
|
v = W[M], U.push(v.setParent(this));
|
|
4400
4400
|
return U;
|
|
4401
|
-
},
|
|
4401
|
+
}, C.prototype.element = function(g, v, M) {
|
|
4402
4402
|
var X, W, U, d, B, S, R, $, q, z, k;
|
|
4403
4403
|
if (S = null, v === null && M == null && (q = [{}, null], v = q[0], M = q[1]), v == null && (v = {}), v = y(v), _(v) || (z = [v, M], M = z[0], v = z[1]), g != null && (g = y(g)), Array.isArray(g))
|
|
4404
4404
|
for (U = 0, R = g.length; U < R; U++)
|
|
@@ -4424,48 +4424,48 @@ function Lt() {
|
|
|
4424
4424
|
if (S == null)
|
|
4425
4425
|
throw new Error("Could not create any elements with: " + g + ". " + this.debugInfo());
|
|
4426
4426
|
return S;
|
|
4427
|
-
},
|
|
4427
|
+
}, C.prototype.insertBefore = function(g, v, M) {
|
|
4428
4428
|
var X, W, U, d, B;
|
|
4429
4429
|
if (g?.type)
|
|
4430
4430
|
return U = g, d = v, U.setParent(this), d ? (W = children.indexOf(d), B = children.splice(W), children.push(U), Array.prototype.push.apply(children, B)) : children.push(U), U;
|
|
4431
4431
|
if (this.isRoot)
|
|
4432
4432
|
throw new Error("Cannot insert elements at root level. " + this.debugInfo(g));
|
|
4433
4433
|
return W = this.parent.children.indexOf(this), B = this.parent.children.splice(W), X = this.parent.element(g, v, M), Array.prototype.push.apply(this.parent.children, B), X;
|
|
4434
|
-
},
|
|
4434
|
+
}, C.prototype.insertAfter = function(g, v, M) {
|
|
4435
4435
|
var X, W, U;
|
|
4436
4436
|
if (this.isRoot)
|
|
4437
4437
|
throw new Error("Cannot insert elements at root level. " + this.debugInfo(g));
|
|
4438
4438
|
return W = this.parent.children.indexOf(this), U = this.parent.children.splice(W + 1), X = this.parent.element(g, v, M), Array.prototype.push.apply(this.parent.children, U), X;
|
|
4439
|
-
},
|
|
4439
|
+
}, C.prototype.remove = function() {
|
|
4440
4440
|
var g;
|
|
4441
4441
|
if (this.isRoot)
|
|
4442
4442
|
throw new Error("Cannot remove the root element. " + this.debugInfo());
|
|
4443
4443
|
return g = this.parent.children.indexOf(this), [].splice.apply(this.parent.children, [g, g - g + 1].concat([])), this.parent;
|
|
4444
|
-
},
|
|
4444
|
+
}, C.prototype.node = function(g, v, M) {
|
|
4445
4445
|
var X, W;
|
|
4446
4446
|
return g != null && (g = y(g)), v || (v = {}), v = y(v), _(v) || (W = [v, M], M = W[0], v = W[1]), X = new o(this, g, v), M != null && X.text(M), this.children.push(X), X;
|
|
4447
|
-
},
|
|
4447
|
+
}, C.prototype.text = function(g) {
|
|
4448
4448
|
var v;
|
|
4449
4449
|
return _(g) && this.element(g), v = new p(this, g), this.children.push(v), this;
|
|
4450
|
-
},
|
|
4450
|
+
}, C.prototype.cdata = function(g) {
|
|
4451
4451
|
var v;
|
|
4452
4452
|
return v = new e(this, g), this.children.push(v), this;
|
|
4453
|
-
},
|
|
4453
|
+
}, C.prototype.comment = function(g) {
|
|
4454
4454
|
var v;
|
|
4455
4455
|
return v = new n(this, g), this.children.push(v), this;
|
|
4456
|
-
},
|
|
4456
|
+
}, C.prototype.commentBefore = function(g) {
|
|
4457
4457
|
var v, M;
|
|
4458
4458
|
return v = this.parent.children.indexOf(this), M = this.parent.children.splice(v), this.parent.comment(g), Array.prototype.push.apply(this.parent.children, M), this;
|
|
4459
|
-
},
|
|
4459
|
+
}, C.prototype.commentAfter = function(g) {
|
|
4460
4460
|
var v, M;
|
|
4461
4461
|
return v = this.parent.children.indexOf(this), M = this.parent.children.splice(v + 1), this.parent.comment(g), Array.prototype.push.apply(this.parent.children, M), this;
|
|
4462
|
-
},
|
|
4462
|
+
}, C.prototype.raw = function(g) {
|
|
4463
4463
|
var v;
|
|
4464
4464
|
return v = new m(this, g), this.children.push(v), this;
|
|
4465
|
-
},
|
|
4465
|
+
}, C.prototype.dummy = function() {
|
|
4466
4466
|
var g;
|
|
4467
4467
|
return g = new r(this), g;
|
|
4468
|
-
},
|
|
4468
|
+
}, C.prototype.instruction = function(g, v) {
|
|
4469
4469
|
var M, X, W, U, d;
|
|
4470
4470
|
if (g != null && (g = y(g)), v != null && (v = y(v)), Array.isArray(g))
|
|
4471
4471
|
for (U = 0, d = g.length; U < d; U++)
|
|
@@ -4476,16 +4476,16 @@ function Lt() {
|
|
|
4476
4476
|
else
|
|
4477
4477
|
D(v) && (v = v.apply()), W = new E(this, g, v), this.children.push(W);
|
|
4478
4478
|
return this;
|
|
4479
|
-
},
|
|
4479
|
+
}, C.prototype.instructionBefore = function(g, v) {
|
|
4480
4480
|
var M, X;
|
|
4481
4481
|
return M = this.parent.children.indexOf(this), X = this.parent.children.splice(M), this.parent.instruction(g, v), Array.prototype.push.apply(this.parent.children, X), this;
|
|
4482
|
-
},
|
|
4482
|
+
}, C.prototype.instructionAfter = function(g, v) {
|
|
4483
4483
|
var M, X;
|
|
4484
4484
|
return M = this.parent.children.indexOf(this), X = this.parent.children.splice(M + 1), this.parent.instruction(g, v), Array.prototype.push.apply(this.parent.children, X), this;
|
|
4485
|
-
},
|
|
4485
|
+
}, C.prototype.declaration = function(g, v, M) {
|
|
4486
4486
|
var X, W;
|
|
4487
4487
|
return X = this.document(), W = new s(X, g, v, M), X.children.length === 0 ? X.children.unshift(W) : X.children[0].type === t.Declaration ? X.children[0] = W : X.children.unshift(W), X.root() || X;
|
|
4488
|
-
},
|
|
4488
|
+
}, C.prototype.dtd = function(g, v) {
|
|
4489
4489
|
var M, X, W, U, d, B, S, R, $, q;
|
|
4490
4490
|
for (X = this.document(), W = new i(X, g, v), $ = X.children, U = d = 0, S = $.length; d < S; U = ++d)
|
|
4491
4491
|
if (M = $[U], M.type === t.DocType)
|
|
@@ -4494,11 +4494,11 @@ function Lt() {
|
|
|
4494
4494
|
if (M = q[U], M.isRoot)
|
|
4495
4495
|
return X.children.splice(U, 0, W), W;
|
|
4496
4496
|
return X.children.push(W), W;
|
|
4497
|
-
},
|
|
4497
|
+
}, C.prototype.up = function() {
|
|
4498
4498
|
if (this.isRoot)
|
|
4499
4499
|
throw new Error("The root node has no parent. Use doc() if you need to get the document object.");
|
|
4500
4500
|
return this.parent;
|
|
4501
|
-
},
|
|
4501
|
+
}, C.prototype.root = function() {
|
|
4502
4502
|
var g;
|
|
4503
4503
|
for (g = this; g; ) {
|
|
4504
4504
|
if (g.type === t.Document)
|
|
@@ -4507,93 +4507,93 @@ function Lt() {
|
|
|
4507
4507
|
return g;
|
|
4508
4508
|
g = g.parent;
|
|
4509
4509
|
}
|
|
4510
|
-
},
|
|
4510
|
+
}, C.prototype.document = function() {
|
|
4511
4511
|
var g;
|
|
4512
4512
|
for (g = this; g; ) {
|
|
4513
4513
|
if (g.type === t.Document)
|
|
4514
4514
|
return g;
|
|
4515
4515
|
g = g.parent;
|
|
4516
4516
|
}
|
|
4517
|
-
},
|
|
4517
|
+
}, C.prototype.end = function(g) {
|
|
4518
4518
|
return this.document().end(g);
|
|
4519
|
-
},
|
|
4519
|
+
}, C.prototype.prev = function() {
|
|
4520
4520
|
var g;
|
|
4521
4521
|
if (g = this.parent.children.indexOf(this), g < 1)
|
|
4522
4522
|
throw new Error("Already at the first node. " + this.debugInfo());
|
|
4523
4523
|
return this.parent.children[g - 1];
|
|
4524
|
-
},
|
|
4524
|
+
}, C.prototype.next = function() {
|
|
4525
4525
|
var g;
|
|
4526
4526
|
if (g = this.parent.children.indexOf(this), g === -1 || g === this.parent.children.length - 1)
|
|
4527
4527
|
throw new Error("Already at the last node. " + this.debugInfo());
|
|
4528
4528
|
return this.parent.children[g + 1];
|
|
4529
|
-
},
|
|
4529
|
+
}, C.prototype.importDocument = function(g) {
|
|
4530
4530
|
var v;
|
|
4531
4531
|
return v = g.root().clone(), v.parent = this, v.isRoot = !1, this.children.push(v), this;
|
|
4532
|
-
},
|
|
4532
|
+
}, C.prototype.debugInfo = function(g) {
|
|
4533
4533
|
var v, M;
|
|
4534
4534
|
return g = g || this.name, g == null && !((v = this.parent) != null && v.name) ? "" : g == null ? "parent: <" + this.parent.name + ">" : (M = this.parent) != null && M.name ? "node: <" + g + ">, parent: <" + this.parent.name + ">" : "node: <" + g + ">";
|
|
4535
|
-
},
|
|
4535
|
+
}, C.prototype.ele = function(g, v, M) {
|
|
4536
4536
|
return this.element(g, v, M);
|
|
4537
|
-
},
|
|
4537
|
+
}, C.prototype.nod = function(g, v, M) {
|
|
4538
4538
|
return this.node(g, v, M);
|
|
4539
|
-
},
|
|
4539
|
+
}, C.prototype.txt = function(g) {
|
|
4540
4540
|
return this.text(g);
|
|
4541
|
-
},
|
|
4541
|
+
}, C.prototype.dat = function(g) {
|
|
4542
4542
|
return this.cdata(g);
|
|
4543
|
-
},
|
|
4543
|
+
}, C.prototype.com = function(g) {
|
|
4544
4544
|
return this.comment(g);
|
|
4545
|
-
},
|
|
4545
|
+
}, C.prototype.ins = function(g, v) {
|
|
4546
4546
|
return this.instruction(g, v);
|
|
4547
|
-
},
|
|
4547
|
+
}, C.prototype.doc = function() {
|
|
4548
4548
|
return this.document();
|
|
4549
|
-
},
|
|
4549
|
+
}, C.prototype.dec = function(g, v, M) {
|
|
4550
4550
|
return this.declaration(g, v, M);
|
|
4551
|
-
},
|
|
4551
|
+
}, C.prototype.e = function(g, v, M) {
|
|
4552
4552
|
return this.element(g, v, M);
|
|
4553
|
-
},
|
|
4553
|
+
}, C.prototype.n = function(g, v, M) {
|
|
4554
4554
|
return this.node(g, v, M);
|
|
4555
|
-
},
|
|
4555
|
+
}, C.prototype.t = function(g) {
|
|
4556
4556
|
return this.text(g);
|
|
4557
|
-
},
|
|
4557
|
+
}, C.prototype.d = function(g) {
|
|
4558
4558
|
return this.cdata(g);
|
|
4559
|
-
},
|
|
4559
|
+
}, C.prototype.c = function(g) {
|
|
4560
4560
|
return this.comment(g);
|
|
4561
|
-
},
|
|
4561
|
+
}, C.prototype.r = function(g) {
|
|
4562
4562
|
return this.raw(g);
|
|
4563
|
-
},
|
|
4563
|
+
}, C.prototype.i = function(g, v) {
|
|
4564
4564
|
return this.instruction(g, v);
|
|
4565
|
-
},
|
|
4565
|
+
}, C.prototype.u = function() {
|
|
4566
4566
|
return this.up();
|
|
4567
|
-
},
|
|
4567
|
+
}, C.prototype.importXMLBuilder = function(g) {
|
|
4568
4568
|
return this.importDocument(g);
|
|
4569
|
-
},
|
|
4569
|
+
}, C.prototype.replaceChild = function(g, v) {
|
|
4570
4570
|
throw new Error("This DOM method is not implemented." + this.debugInfo());
|
|
4571
|
-
},
|
|
4571
|
+
}, C.prototype.removeChild = function(g) {
|
|
4572
4572
|
throw new Error("This DOM method is not implemented." + this.debugInfo());
|
|
4573
|
-
},
|
|
4573
|
+
}, C.prototype.appendChild = function(g) {
|
|
4574
4574
|
throw new Error("This DOM method is not implemented." + this.debugInfo());
|
|
4575
|
-
},
|
|
4575
|
+
}, C.prototype.hasChildNodes = function() {
|
|
4576
4576
|
return this.children.length !== 0;
|
|
4577
|
-
},
|
|
4577
|
+
}, C.prototype.cloneNode = function(g) {
|
|
4578
4578
|
throw new Error("This DOM method is not implemented." + this.debugInfo());
|
|
4579
|
-
},
|
|
4579
|
+
}, C.prototype.normalize = function() {
|
|
4580
4580
|
throw new Error("This DOM method is not implemented." + this.debugInfo());
|
|
4581
|
-
},
|
|
4581
|
+
}, C.prototype.isSupported = function(g, v) {
|
|
4582
4582
|
return !0;
|
|
4583
|
-
},
|
|
4583
|
+
}, C.prototype.hasAttributes = function() {
|
|
4584
4584
|
return this.attribs.length !== 0;
|
|
4585
|
-
},
|
|
4585
|
+
}, C.prototype.compareDocumentPosition = function(g) {
|
|
4586
4586
|
var v, M;
|
|
4587
4587
|
return v = this, v === g ? 0 : this.document() !== g.document() ? (M = a.Disconnected | a.ImplementationSpecific, Math.random() < 0.5 ? M |= a.Preceding : M |= a.Following, M) : v.isAncestor(g) ? a.Contains | a.Preceding : v.isDescendant(g) ? a.Contains | a.Following : v.isPreceding(g) ? a.Preceding : a.Following;
|
|
4588
|
-
},
|
|
4588
|
+
}, C.prototype.isSameNode = function(g) {
|
|
4589
4589
|
throw new Error("This DOM method is not implemented." + this.debugInfo());
|
|
4590
|
-
},
|
|
4590
|
+
}, C.prototype.lookupPrefix = function(g) {
|
|
4591
4591
|
throw new Error("This DOM method is not implemented." + this.debugInfo());
|
|
4592
|
-
},
|
|
4592
|
+
}, C.prototype.isDefaultNamespace = function(g) {
|
|
4593
4593
|
throw new Error("This DOM method is not implemented." + this.debugInfo());
|
|
4594
|
-
},
|
|
4594
|
+
}, C.prototype.lookupNamespaceURI = function(g) {
|
|
4595
4595
|
throw new Error("This DOM method is not implemented." + this.debugInfo());
|
|
4596
|
-
},
|
|
4596
|
+
}, C.prototype.isEqualNode = function(g) {
|
|
4597
4597
|
var v, M, X;
|
|
4598
4598
|
if (g.nodeType !== this.nodeType || g.children.length !== this.children.length)
|
|
4599
4599
|
return !1;
|
|
@@ -4601,35 +4601,35 @@ function Lt() {
|
|
|
4601
4601
|
if (!this.children[v].isEqualNode(g.children[v]))
|
|
4602
4602
|
return !1;
|
|
4603
4603
|
return !0;
|
|
4604
|
-
},
|
|
4604
|
+
}, C.prototype.getFeature = function(g, v) {
|
|
4605
4605
|
throw new Error("This DOM method is not implemented." + this.debugInfo());
|
|
4606
|
-
},
|
|
4606
|
+
}, C.prototype.setUserData = function(g, v, M) {
|
|
4607
4607
|
throw new Error("This DOM method is not implemented." + this.debugInfo());
|
|
4608
|
-
},
|
|
4608
|
+
}, C.prototype.getUserData = function(g) {
|
|
4609
4609
|
throw new Error("This DOM method is not implemented." + this.debugInfo());
|
|
4610
|
-
},
|
|
4610
|
+
}, C.prototype.contains = function(g) {
|
|
4611
4611
|
return g ? g === this || this.isDescendant(g) : !1;
|
|
4612
|
-
},
|
|
4612
|
+
}, C.prototype.isDescendant = function(g) {
|
|
4613
4613
|
var v, M, X, W, U;
|
|
4614
4614
|
for (U = this.children, X = 0, W = U.length; X < W; X++)
|
|
4615
4615
|
if (v = U[X], g === v || (M = v.isDescendant(g), M))
|
|
4616
4616
|
return !0;
|
|
4617
4617
|
return !1;
|
|
4618
|
-
},
|
|
4618
|
+
}, C.prototype.isAncestor = function(g) {
|
|
4619
4619
|
return g.isDescendant(this);
|
|
4620
|
-
},
|
|
4620
|
+
}, C.prototype.isPreceding = function(g) {
|
|
4621
4621
|
var v, M;
|
|
4622
4622
|
return v = this.treePosition(g), M = this.treePosition(this), v === -1 || M === -1 ? !1 : v < M;
|
|
4623
|
-
},
|
|
4623
|
+
}, C.prototype.isFollowing = function(g) {
|
|
4624
4624
|
var v, M;
|
|
4625
4625
|
return v = this.treePosition(g), M = this.treePosition(this), v === -1 || M === -1 ? !1 : v > M;
|
|
4626
|
-
},
|
|
4626
|
+
}, C.prototype.treePosition = function(g) {
|
|
4627
4627
|
var v, M;
|
|
4628
4628
|
return M = 0, v = !1, this.foreachTreeNode(this.document(), function(X) {
|
|
4629
4629
|
if (M++, !v && X === g)
|
|
4630
4630
|
return v = !0;
|
|
4631
4631
|
}), v ? M : -1;
|
|
4632
|
-
},
|
|
4632
|
+
}, C.prototype.foreachTreeNode = function(g, v) {
|
|
4633
4633
|
var M, X, W, U, d;
|
|
4634
4634
|
for (g || (g = this.document()), U = g.children, X = 0, W = U.length; X < W; X++) {
|
|
4635
4635
|
if (M = U[X], d = v(M))
|
|
@@ -4637,7 +4637,7 @@ function Lt() {
|
|
|
4637
4637
|
if (d = this.foreachTreeNode(M, v), d)
|
|
4638
4638
|
return d;
|
|
4639
4639
|
}
|
|
4640
|
-
},
|
|
4640
|
+
}, C;
|
|
4641
4641
|
}();
|
|
4642
4642
|
}.call(it)), hn.exports;
|
|
4643
4643
|
}
|
|
@@ -4747,9 +4747,9 @@ function qe() {
|
|
|
4747
4747
|
};
|
|
4748
4748
|
}.call(it)), Fn.exports;
|
|
4749
4749
|
}
|
|
4750
|
-
var
|
|
4750
|
+
var Ii;
|
|
4751
4751
|
function ls() {
|
|
4752
|
-
return
|
|
4752
|
+
return Ii || (Ii = 1, function() {
|
|
4753
4753
|
var a, t, e, n = {}.hasOwnProperty;
|
|
4754
4754
|
e = qt().assign, a = bt(), rr(), ur(), er(), nr(), tr(), cr(), lr(), fr(), us(), ir(), or(), sr(), ar(), t = qe(), Sn.exports = function() {
|
|
4755
4755
|
function s(i) {
|
|
@@ -4790,16 +4790,16 @@ function ls() {
|
|
|
4790
4790
|
}
|
|
4791
4791
|
return r.state = t.CloseTag, p += r.spaceBeforeSlash + ">", p += this.endline(i, r, o), r.state = t.None, this.closeNode(i, r, o), p;
|
|
4792
4792
|
}, s.prototype.element = function(i, r, o) {
|
|
4793
|
-
var l, E, m, p, y, w, D, _,
|
|
4794
|
-
o || (o = 0), T = !1,
|
|
4795
|
-
for (
|
|
4796
|
-
n.call(g,
|
|
4793
|
+
var l, E, m, p, y, w, D, _, I, T, C, g, v, M;
|
|
4794
|
+
o || (o = 0), T = !1, C = "", this.openNode(i, r, o), r.state = t.OpenTag, C += this.indent(i, r, o) + "<" + i.name, g = i.attribs;
|
|
4795
|
+
for (I in g)
|
|
4796
|
+
n.call(g, I) && (l = g[I], C += this.attribute(l, r, o));
|
|
4797
4797
|
if (m = i.children.length, p = m === 0 ? null : i.children[0], m === 0 || i.children.every(function(X) {
|
|
4798
4798
|
return (X.type === a.Text || X.type === a.Raw) && X.value === "";
|
|
4799
4799
|
}))
|
|
4800
|
-
r.allowEmpty ? (
|
|
4800
|
+
r.allowEmpty ? (C += ">", r.state = t.CloseTag, C += "</" + i.name + ">" + this.endline(i, r, o)) : (r.state = t.CloseTag, C += r.spaceBeforeSlash + "/>" + this.endline(i, r, o));
|
|
4801
4801
|
else if (r.pretty && m === 1 && (p.type === a.Text || p.type === a.Raw) && p.value != null)
|
|
4802
|
-
|
|
4802
|
+
C += ">", r.state = t.InsideTag, r.suppressPrettyCount++, T = !0, C += this.writeChildNode(p, r, o + 1), r.suppressPrettyCount--, T = !1, r.state = t.CloseTag, C += "</" + i.name + ">" + this.endline(i, r, o);
|
|
4803
4803
|
else {
|
|
4804
4804
|
if (r.dontPrettyTextNodes) {
|
|
4805
4805
|
for (v = i.children, y = 0, D = v.length; y < D; y++)
|
|
@@ -4808,11 +4808,11 @@ function ls() {
|
|
|
4808
4808
|
break;
|
|
4809
4809
|
}
|
|
4810
4810
|
}
|
|
4811
|
-
for (
|
|
4812
|
-
E = M[w],
|
|
4813
|
-
r.state = t.CloseTag,
|
|
4811
|
+
for (C += ">" + this.endline(i, r, o), r.state = t.InsideTag, M = i.children, w = 0, _ = M.length; w < _; w++)
|
|
4812
|
+
E = M[w], C += this.writeChildNode(E, r, o + 1);
|
|
4813
|
+
r.state = t.CloseTag, C += this.indent(i, r, o) + "</" + i.name + ">", T && r.suppressPrettyCount--, C += this.endline(i, r, o), r.state = t.None;
|
|
4814
4814
|
}
|
|
4815
|
-
return this.closeNode(i, r, o),
|
|
4815
|
+
return this.closeNode(i, r, o), C;
|
|
4816
4816
|
}, s.prototype.writeChildNode = function(i, r, o) {
|
|
4817
4817
|
switch (i.type) {
|
|
4818
4818
|
case a.CData:
|
|
@@ -4873,9 +4873,9 @@ function ls() {
|
|
|
4873
4873
|
}();
|
|
4874
4874
|
}.call(it)), Sn.exports;
|
|
4875
4875
|
}
|
|
4876
|
-
var
|
|
4876
|
+
var Ci;
|
|
4877
4877
|
function hr() {
|
|
4878
|
-
return
|
|
4878
|
+
return Ci || (Ci = 1, function() {
|
|
4879
4879
|
var a, t = function(n, s) {
|
|
4880
4880
|
for (var i in s)
|
|
4881
4881
|
e.call(s, i) && (n[i] = s[i]);
|
|
@@ -5024,11 +5024,11 @@ function fs() {
|
|
|
5024
5024
|
var jn = { exports: {} }, Ti;
|
|
5025
5025
|
function Ko() {
|
|
5026
5026
|
return Ti || (Ti = 1, function() {
|
|
5027
|
-
var a, t, e, n, s, i, r, o, l, E, m, p, y, w, D, _,
|
|
5028
|
-
X = qt(), v = X.isObject, g = X.isFunction, M = X.isPlainObject,
|
|
5027
|
+
var a, t, e, n, s, i, r, o, l, E, m, p, y, w, D, _, I, T, C, g, v, M, X, W = {}.hasOwnProperty;
|
|
5028
|
+
X = qt(), v = X.isObject, g = X.isFunction, M = X.isPlainObject, C = X.getValue, a = bt(), p = fs(), y = tr(), n = er(), s = nr(), D = cr(), T = lr(), w = fr(), E = rr(), m = ur(), i = ir(), o = sr(), r = or(), l = ar(), e = as(), I = cs(), _ = hr(), t = qe(), jn.exports = function() {
|
|
5029
5029
|
function U(d, B, S) {
|
|
5030
5030
|
var R;
|
|
5031
|
-
this.name = "?xml", this.type = a.Document, d || (d = {}), R = {}, d.writer ? M(d.writer) && (R = d.writer, d.writer = new _()) : d.writer = new _(), this.options = d, this.writer = d.writer, this.writerOptions = this.writer.filterOptions(R), this.stringify = new
|
|
5031
|
+
this.name = "?xml", this.type = a.Document, d || (d = {}), R = {}, d.writer ? M(d.writer) && (R = d.writer, d.writer = new _()) : d.writer = new _(), this.options = d, this.writer = d.writer, this.writerOptions = this.writer.filterOptions(R), this.stringify = new I(d), this.onDataCallback = B || function() {
|
|
5032
5032
|
}, this.onEndCallback = S || function() {
|
|
5033
5033
|
}, this.currentNode = null, this.currentLevel = -1, this.openTags = {}, this.documentStarted = !1, this.documentCompleted = !1, this.root = null;
|
|
5034
5034
|
}
|
|
@@ -5073,7 +5073,7 @@ function Ko() {
|
|
|
5073
5073
|
throw new Error("Missing node name.");
|
|
5074
5074
|
if (this.root && this.currentLevel === -1)
|
|
5075
5075
|
throw new Error("Document can only have one root node. " + this.debugInfo(d));
|
|
5076
|
-
return this.openCurrent(), d =
|
|
5076
|
+
return this.openCurrent(), d = C(d), B == null && (B = {}), B = C(B), v(B) || (R = [B, S], S = R[0], B = R[1]), this.currentNode = new y(this, d, B), this.currentNode.children = !1, this.currentLevel++, this.openTags[this.currentLevel] = this.currentNode, S != null && this.text(S), this;
|
|
5077
5077
|
}, U.prototype.element = function(d, B, S) {
|
|
5078
5078
|
var R, $, q, z, k, V;
|
|
5079
5079
|
if (this.currentNode && this.currentNode.type === a.DocType)
|
|
@@ -5088,7 +5088,7 @@ function Ko() {
|
|
|
5088
5088
|
var S, R;
|
|
5089
5089
|
if (!this.currentNode || this.currentNode.children)
|
|
5090
5090
|
throw new Error("att() can only be used immediately after an ele() call in callback mode. " + this.debugInfo(d));
|
|
5091
|
-
if (d != null && (d =
|
|
5091
|
+
if (d != null && (d = C(d)), v(d))
|
|
5092
5092
|
for (S in d)
|
|
5093
5093
|
W.call(d, S) && (R = d[S], this.attribute(S, R));
|
|
5094
5094
|
else
|
|
@@ -5108,7 +5108,7 @@ function Ko() {
|
|
|
5108
5108
|
return this.openCurrent(), B = new D(this, d), this.onData(this.writer.raw(B, this.writerOptions, this.currentLevel + 1), this.currentLevel + 1), this;
|
|
5109
5109
|
}, U.prototype.instruction = function(d, B) {
|
|
5110
5110
|
var S, R, $, q, z;
|
|
5111
|
-
if (this.openCurrent(), d != null && (d =
|
|
5111
|
+
if (this.openCurrent(), d != null && (d = C(d)), B != null && (B = C(B)), Array.isArray(d))
|
|
5112
5112
|
for (S = 0, q = d.length; S < q; S++)
|
|
5113
5113
|
R = d[S], this.instruction(R);
|
|
5114
5114
|
else if (v(d))
|
|
@@ -5239,11 +5239,11 @@ function Qo() {
|
|
|
5239
5239
|
return r.prototype.endline = function(o, l, E) {
|
|
5240
5240
|
return o.isLastRootNode && l.state === t.CloseTag ? "" : r.__super__.endline.call(this, o, l, E);
|
|
5241
5241
|
}, r.prototype.document = function(o, l) {
|
|
5242
|
-
var E, m, p, y, w, D, _,
|
|
5242
|
+
var E, m, p, y, w, D, _, I, T;
|
|
5243
5243
|
for (_ = o.children, m = p = 0, w = _.length; p < w; m = ++p)
|
|
5244
5244
|
E = _[m], E.isLastRootNode = m === o.children.length - 1;
|
|
5245
|
-
for (l = this.filterOptions(l),
|
|
5246
|
-
E =
|
|
5245
|
+
for (l = this.filterOptions(l), I = o.children, T = [], y = 0, D = I.length; y < D; y++)
|
|
5246
|
+
E = I[y], T.push(this.writeChildNode(E, l, 0));
|
|
5247
5247
|
return T;
|
|
5248
5248
|
}, r.prototype.attribute = function(o, l, E) {
|
|
5249
5249
|
return this.stream.write(r.__super__.attribute.call(this, o, l, E));
|
|
@@ -5262,10 +5262,10 @@ function Qo() {
|
|
|
5262
5262
|
}
|
|
5263
5263
|
return l.state = t.CloseTag, this.stream.write(l.spaceBeforeSlash + ">"), this.stream.write(this.endline(o, l, E)), l.state = t.None, this.closeNode(o, l, E);
|
|
5264
5264
|
}, r.prototype.element = function(o, l, E) {
|
|
5265
|
-
var m, p, y, w, D, _,
|
|
5265
|
+
var m, p, y, w, D, _, I, T, C;
|
|
5266
5266
|
E || (E = 0), this.openNode(o, l, E), l.state = t.OpenTag, this.stream.write(this.indent(o, l, E) + "<" + o.name), T = o.attribs;
|
|
5267
|
-
for (
|
|
5268
|
-
s.call(T,
|
|
5267
|
+
for (I in T)
|
|
5268
|
+
s.call(T, I) && (m = T[I], this.attribute(m, l, E));
|
|
5269
5269
|
if (y = o.children.length, w = y === 0 ? null : o.children[0], y === 0 || o.children.every(function(g) {
|
|
5270
5270
|
return (g.type === a.Text || g.type === a.Raw) && g.value === "";
|
|
5271
5271
|
}))
|
|
@@ -5273,8 +5273,8 @@ function Qo() {
|
|
|
5273
5273
|
else if (l.pretty && y === 1 && (w.type === a.Text || w.type === a.Raw) && w.value != null)
|
|
5274
5274
|
this.stream.write(">"), l.state = t.InsideTag, l.suppressPrettyCount++, this.writeChildNode(w, l, E + 1), l.suppressPrettyCount--, l.state = t.CloseTag, this.stream.write("</" + o.name + ">");
|
|
5275
5275
|
else {
|
|
5276
|
-
for (this.stream.write(">" + this.endline(o, l, E)), l.state = t.InsideTag,
|
|
5277
|
-
p =
|
|
5276
|
+
for (this.stream.write(">" + this.endline(o, l, E)), l.state = t.InsideTag, C = o.children, D = 0, _ = C.length; D < _; D++)
|
|
5277
|
+
p = C[D], this.writeChildNode(p, l, E + 1);
|
|
5278
5278
|
l.state = t.CloseTag, this.stream.write(this.indent(o, l, E) + "</" + o.name + ">");
|
|
5279
5279
|
}
|
|
5280
5280
|
return this.stream.write(this.endline(o, l, E)), l.state = t.None, this.closeNode(o, l, E);
|
|
@@ -5338,7 +5338,7 @@ function Zo() {
|
|
|
5338
5338
|
var l, E, m, p, y;
|
|
5339
5339
|
return l = this.options.attrkey, E = this.options.charkey, Object.keys(o).length === 1 && this.options.rootName === t["0.2"].rootName ? (y = Object.keys(o)[0], o = o[y]) : y = this.options.rootName, m = /* @__PURE__ */ function(w) {
|
|
5340
5340
|
return function(D, _) {
|
|
5341
|
-
var
|
|
5341
|
+
var I, T, C, g, v, M;
|
|
5342
5342
|
if (typeof _ != "object")
|
|
5343
5343
|
w.options.cdata && n(_) ? D.raw(s(_)) : D.txt(_);
|
|
5344
5344
|
else if (Array.isArray(_)) {
|
|
@@ -5346,20 +5346,20 @@ function Zo() {
|
|
|
5346
5346
|
if (i.call(_, g)) {
|
|
5347
5347
|
T = _[g];
|
|
5348
5348
|
for (v in T)
|
|
5349
|
-
|
|
5349
|
+
C = T[v], D = m(D.ele(v), C).up();
|
|
5350
5350
|
}
|
|
5351
5351
|
} else
|
|
5352
5352
|
for (v in _)
|
|
5353
5353
|
if (i.call(_, v))
|
|
5354
5354
|
if (T = _[v], v === l) {
|
|
5355
5355
|
if (typeof T == "object")
|
|
5356
|
-
for (
|
|
5357
|
-
M = T[
|
|
5356
|
+
for (I in T)
|
|
5357
|
+
M = T[I], D = D.att(I, M);
|
|
5358
5358
|
} else if (v === E)
|
|
5359
5359
|
w.options.cdata && n(T) ? D = D.raw(s(T)) : D = D.txt(T);
|
|
5360
5360
|
else if (Array.isArray(T))
|
|
5361
5361
|
for (g in T)
|
|
5362
|
-
i.call(T, g) && (
|
|
5362
|
+
i.call(T, g) && (C = T[g], typeof C == "string" ? w.options.cdata && n(C) ? D = D.ele(v).raw(s(C)).up() : D = D.ele(v, C).up() : D = m(D.ele(v), C).up());
|
|
5363
5363
|
else typeof T == "object" ? D = m(D.ele(v), T).up() : typeof T == "string" && w.options.cdata && n(T) ? D = D.ele(v).raw(s(T)).up() : (T == null && (T = ""), D = D.ele(v, T.toString()).up());
|
|
5364
5364
|
return D;
|
|
5365
5365
|
};
|
|
@@ -5384,36 +5384,36 @@ function ta() {
|
|
|
5384
5384
|
throw new Error("Invalid string. Length must be a multiple of 4");
|
|
5385
5385
|
var _ = w.indexOf("=");
|
|
5386
5386
|
_ === -1 && (_ = D);
|
|
5387
|
-
var
|
|
5388
|
-
return [_,
|
|
5387
|
+
var I = _ === D ? 0 : 4 - _ % 4;
|
|
5388
|
+
return [_, I];
|
|
5389
5389
|
}
|
|
5390
5390
|
function o(w) {
|
|
5391
|
-
var D = r(w), _ = D[0],
|
|
5392
|
-
return (_ +
|
|
5391
|
+
var D = r(w), _ = D[0], I = D[1];
|
|
5392
|
+
return (_ + I) * 3 / 4 - I;
|
|
5393
5393
|
}
|
|
5394
5394
|
function l(w, D, _) {
|
|
5395
5395
|
return (D + _) * 3 / 4 - _;
|
|
5396
5396
|
}
|
|
5397
5397
|
function E(w) {
|
|
5398
|
-
var D, _ = r(w),
|
|
5398
|
+
var D, _ = r(w), I = _[0], T = _[1], C = new e(l(w, I, T)), g = 0, v = T > 0 ? I - 4 : I, M;
|
|
5399
5399
|
for (M = 0; M < v; M += 4)
|
|
5400
|
-
D = t[w.charCodeAt(M)] << 18 | t[w.charCodeAt(M + 1)] << 12 | t[w.charCodeAt(M + 2)] << 6 | t[w.charCodeAt(M + 3)],
|
|
5401
|
-
return T === 2 && (D = t[w.charCodeAt(M)] << 2 | t[w.charCodeAt(M + 1)] >> 4,
|
|
5400
|
+
D = t[w.charCodeAt(M)] << 18 | t[w.charCodeAt(M + 1)] << 12 | t[w.charCodeAt(M + 2)] << 6 | t[w.charCodeAt(M + 3)], C[g++] = D >> 16 & 255, C[g++] = D >> 8 & 255, C[g++] = D & 255;
|
|
5401
|
+
return T === 2 && (D = t[w.charCodeAt(M)] << 2 | t[w.charCodeAt(M + 1)] >> 4, C[g++] = D & 255), T === 1 && (D = t[w.charCodeAt(M)] << 10 | t[w.charCodeAt(M + 1)] << 4 | t[w.charCodeAt(M + 2)] >> 2, C[g++] = D >> 8 & 255, C[g++] = D & 255), C;
|
|
5402
5402
|
}
|
|
5403
5403
|
function m(w) {
|
|
5404
5404
|
return a[w >> 18 & 63] + a[w >> 12 & 63] + a[w >> 6 & 63] + a[w & 63];
|
|
5405
5405
|
}
|
|
5406
5406
|
function p(w, D, _) {
|
|
5407
|
-
for (var
|
|
5408
|
-
|
|
5407
|
+
for (var I, T = [], C = D; C < _; C += 3)
|
|
5408
|
+
I = (w[C] << 16 & 16711680) + (w[C + 1] << 8 & 65280) + (w[C + 2] & 255), T.push(m(I));
|
|
5409
5409
|
return T.join("");
|
|
5410
5410
|
}
|
|
5411
5411
|
function y(w) {
|
|
5412
|
-
for (var D, _ = w.length,
|
|
5413
|
-
T.push(p(w, g, g +
|
|
5414
|
-
return
|
|
5412
|
+
for (var D, _ = w.length, I = _ % 3, T = [], C = 16383, g = 0, v = _ - I; g < v; g += C)
|
|
5413
|
+
T.push(p(w, g, g + C > v ? v : g + C));
|
|
5414
|
+
return I === 1 ? (D = w[_ - 1], T.push(
|
|
5415
5415
|
a[D >> 2] + a[D << 4 & 63] + "=="
|
|
5416
|
-
)) :
|
|
5416
|
+
)) : I === 2 && (D = (w[_ - 2] << 8) + w[_ - 1], T.push(
|
|
5417
5417
|
a[D >> 10] + a[D >> 4 & 63] + a[D << 2 & 63] + "="
|
|
5418
5418
|
)), T.join("");
|
|
5419
5419
|
}
|
|
@@ -5456,7 +5456,7 @@ var Pi;
|
|
|
5456
5456
|
function na() {
|
|
5457
5457
|
return Pi || (Pi = 1, function(a) {
|
|
5458
5458
|
var t = ta(), e = ea(), n = typeof Symbol == "function" && typeof Symbol.for == "function" ? Symbol.for("nodejs.util.inspect.custom") : null;
|
|
5459
|
-
a.Buffer = o, a.SlowBuffer =
|
|
5459
|
+
a.Buffer = o, a.SlowBuffer = C, a.INSPECT_MAX_BYTES = 50;
|
|
5460
5460
|
var s = 2147483647;
|
|
5461
5461
|
a.kMaxLength = s, o.TYPED_ARRAY_SUPPORT = i(), !o.TYPED_ARRAY_SUPPORT && typeof console < "u" && typeof console.error == "function" && console.error(
|
|
5462
5462
|
"This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."
|
|
@@ -5519,7 +5519,7 @@ function na() {
|
|
|
5519
5519
|
var h = f.valueOf && f.valueOf();
|
|
5520
5520
|
if (h != null && h !== f)
|
|
5521
5521
|
return o.from(h, u, c);
|
|
5522
|
-
var N =
|
|
5522
|
+
var N = I(f);
|
|
5523
5523
|
if (N) return N;
|
|
5524
5524
|
if (typeof Symbol < "u" && Symbol.toPrimitive != null && typeof f[Symbol.toPrimitive] == "function")
|
|
5525
5525
|
return o.from(
|
|
@@ -5580,7 +5580,7 @@ function na() {
|
|
|
5580
5580
|
var h;
|
|
5581
5581
|
return u === void 0 && c === void 0 ? h = new Uint8Array(f) : c === void 0 ? h = new Uint8Array(f, u) : h = new Uint8Array(f, u, c), Object.setPrototypeOf(h, o.prototype), h;
|
|
5582
5582
|
}
|
|
5583
|
-
function
|
|
5583
|
+
function I(f) {
|
|
5584
5584
|
if (o.isBuffer(f)) {
|
|
5585
5585
|
var u = T(f.length) | 0, c = r(u);
|
|
5586
5586
|
return c.length === 0 || f.copy(c, 0, 0, u), c;
|
|
@@ -5595,7 +5595,7 @@ function na() {
|
|
|
5595
5595
|
throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x" + s.toString(16) + " bytes");
|
|
5596
5596
|
return f | 0;
|
|
5597
5597
|
}
|
|
5598
|
-
function
|
|
5598
|
+
function C(f) {
|
|
5599
5599
|
return +f != f && (f = 0), o.alloc(+f);
|
|
5600
5600
|
}
|
|
5601
5601
|
o.isBuffer = function(u) {
|
|
@@ -5809,8 +5809,8 @@ function na() {
|
|
|
5809
5809
|
Et !== -1 && (lt -= lt - Et), Et = -1;
|
|
5810
5810
|
} else
|
|
5811
5811
|
for (c + Z > F && (c = F - Z), lt = c; lt >= 0; lt--) {
|
|
5812
|
-
for (var pt = !0,
|
|
5813
|
-
if (nt(f, lt +
|
|
5812
|
+
for (var pt = !0, Ie = 0; Ie < Z; Ie++)
|
|
5813
|
+
if (nt(f, lt + Ie) !== nt(u, Ie)) {
|
|
5814
5814
|
pt = !1;
|
|
5815
5815
|
break;
|
|
5816
5816
|
}
|
|
@@ -6291,7 +6291,7 @@ function ia() {
|
|
|
6291
6291
|
};
|
|
6292
6292
|
function e(T) {
|
|
6293
6293
|
if (!T) return "utf8";
|
|
6294
|
-
for (var
|
|
6294
|
+
for (var C; ; )
|
|
6295
6295
|
switch (T) {
|
|
6296
6296
|
case "utf8":
|
|
6297
6297
|
case "utf-8":
|
|
@@ -6309,44 +6309,44 @@ function ia() {
|
|
|
6309
6309
|
case "hex":
|
|
6310
6310
|
return T;
|
|
6311
6311
|
default:
|
|
6312
|
-
if (
|
|
6313
|
-
T = ("" + T).toLowerCase(),
|
|
6312
|
+
if (C) return;
|
|
6313
|
+
T = ("" + T).toLowerCase(), C = !0;
|
|
6314
6314
|
}
|
|
6315
6315
|
}
|
|
6316
6316
|
function n(T) {
|
|
6317
|
-
var
|
|
6318
|
-
if (typeof
|
|
6319
|
-
return
|
|
6317
|
+
var C = e(T);
|
|
6318
|
+
if (typeof C != "string" && (a.isEncoding === t || !t(T))) throw new Error("Unknown encoding: " + T);
|
|
6319
|
+
return C || T;
|
|
6320
6320
|
}
|
|
6321
6321
|
Xn.StringDecoder = s;
|
|
6322
6322
|
function s(T) {
|
|
6323
6323
|
this.encoding = n(T);
|
|
6324
|
-
var
|
|
6324
|
+
var C;
|
|
6325
6325
|
switch (this.encoding) {
|
|
6326
6326
|
case "utf16le":
|
|
6327
|
-
this.text = p, this.end = y,
|
|
6327
|
+
this.text = p, this.end = y, C = 4;
|
|
6328
6328
|
break;
|
|
6329
6329
|
case "utf8":
|
|
6330
|
-
this.fillLast = l,
|
|
6330
|
+
this.fillLast = l, C = 4;
|
|
6331
6331
|
break;
|
|
6332
6332
|
case "base64":
|
|
6333
|
-
this.text = w, this.end = D,
|
|
6333
|
+
this.text = w, this.end = D, C = 3;
|
|
6334
6334
|
break;
|
|
6335
6335
|
default:
|
|
6336
|
-
this.write = _, this.end =
|
|
6336
|
+
this.write = _, this.end = I;
|
|
6337
6337
|
return;
|
|
6338
6338
|
}
|
|
6339
|
-
this.lastNeed = 0, this.lastTotal = 0, this.lastChar = a.allocUnsafe(
|
|
6339
|
+
this.lastNeed = 0, this.lastTotal = 0, this.lastChar = a.allocUnsafe(C);
|
|
6340
6340
|
}
|
|
6341
6341
|
s.prototype.write = function(T) {
|
|
6342
6342
|
if (T.length === 0) return "";
|
|
6343
|
-
var
|
|
6343
|
+
var C, g;
|
|
6344
6344
|
if (this.lastNeed) {
|
|
6345
|
-
if (
|
|
6345
|
+
if (C = this.fillLast(T), C === void 0) return "";
|
|
6346
6346
|
g = this.lastNeed, this.lastNeed = 0;
|
|
6347
6347
|
} else
|
|
6348
6348
|
g = 0;
|
|
6349
|
-
return g < T.length ?
|
|
6349
|
+
return g < T.length ? C ? C + this.text(T, g) : this.text(T, g) : C || "";
|
|
6350
6350
|
}, s.prototype.end = m, s.prototype.text = E, s.prototype.fillLast = function(T) {
|
|
6351
6351
|
if (this.lastNeed <= T.length)
|
|
6352
6352
|
return T.copy(this.lastChar, this.lastTotal - this.lastNeed, 0, this.lastNeed), this.lastChar.toString(this.encoding, 0, this.lastTotal);
|
|
@@ -6355,43 +6355,43 @@ function ia() {
|
|
|
6355
6355
|
function i(T) {
|
|
6356
6356
|
return T <= 127 ? 0 : T >> 5 === 6 ? 2 : T >> 4 === 14 ? 3 : T >> 3 === 30 ? 4 : T >> 6 === 2 ? -1 : -2;
|
|
6357
6357
|
}
|
|
6358
|
-
function r(T,
|
|
6359
|
-
var v =
|
|
6358
|
+
function r(T, C, g) {
|
|
6359
|
+
var v = C.length - 1;
|
|
6360
6360
|
if (v < g) return 0;
|
|
6361
|
-
var M = i(
|
|
6362
|
-
return M >= 0 ? (M > 0 && (T.lastNeed = M - 1), M) : --v < g || M === -2 ? 0 : (M = i(
|
|
6361
|
+
var M = i(C[v]);
|
|
6362
|
+
return M >= 0 ? (M > 0 && (T.lastNeed = M - 1), M) : --v < g || M === -2 ? 0 : (M = i(C[v]), M >= 0 ? (M > 0 && (T.lastNeed = M - 2), M) : --v < g || M === -2 ? 0 : (M = i(C[v]), M >= 0 ? (M > 0 && (M === 2 ? M = 0 : T.lastNeed = M - 3), M) : 0));
|
|
6363
6363
|
}
|
|
6364
|
-
function o(T,
|
|
6365
|
-
if ((
|
|
6364
|
+
function o(T, C, g) {
|
|
6365
|
+
if ((C[0] & 192) !== 128)
|
|
6366
6366
|
return T.lastNeed = 0, "�";
|
|
6367
|
-
if (T.lastNeed > 1 &&
|
|
6368
|
-
if ((
|
|
6367
|
+
if (T.lastNeed > 1 && C.length > 1) {
|
|
6368
|
+
if ((C[1] & 192) !== 128)
|
|
6369
6369
|
return T.lastNeed = 1, "�";
|
|
6370
|
-
if (T.lastNeed > 2 &&
|
|
6370
|
+
if (T.lastNeed > 2 && C.length > 2 && (C[2] & 192) !== 128)
|
|
6371
6371
|
return T.lastNeed = 2, "�";
|
|
6372
6372
|
}
|
|
6373
6373
|
}
|
|
6374
6374
|
function l(T) {
|
|
6375
|
-
var
|
|
6375
|
+
var C = this.lastTotal - this.lastNeed, g = o(this, T);
|
|
6376
6376
|
if (g !== void 0) return g;
|
|
6377
6377
|
if (this.lastNeed <= T.length)
|
|
6378
|
-
return T.copy(this.lastChar,
|
|
6379
|
-
T.copy(this.lastChar,
|
|
6378
|
+
return T.copy(this.lastChar, C, 0, this.lastNeed), this.lastChar.toString(this.encoding, 0, this.lastTotal);
|
|
6379
|
+
T.copy(this.lastChar, C, 0, T.length), this.lastNeed -= T.length;
|
|
6380
6380
|
}
|
|
6381
|
-
function E(T,
|
|
6382
|
-
var g = r(this, T,
|
|
6383
|
-
if (!this.lastNeed) return T.toString("utf8",
|
|
6381
|
+
function E(T, C) {
|
|
6382
|
+
var g = r(this, T, C);
|
|
6383
|
+
if (!this.lastNeed) return T.toString("utf8", C);
|
|
6384
6384
|
this.lastTotal = g;
|
|
6385
6385
|
var v = T.length - (g - this.lastNeed);
|
|
6386
|
-
return T.copy(this.lastChar, 0, v), T.toString("utf8",
|
|
6386
|
+
return T.copy(this.lastChar, 0, v), T.toString("utf8", C, v);
|
|
6387
6387
|
}
|
|
6388
6388
|
function m(T) {
|
|
6389
|
-
var
|
|
6390
|
-
return this.lastNeed ?
|
|
6389
|
+
var C = T && T.length ? this.write(T) : "";
|
|
6390
|
+
return this.lastNeed ? C + "�" : C;
|
|
6391
6391
|
}
|
|
6392
|
-
function p(T,
|
|
6393
|
-
if ((T.length -
|
|
6394
|
-
var g = T.toString("utf16le",
|
|
6392
|
+
function p(T, C) {
|
|
6393
|
+
if ((T.length - C) % 2 === 0) {
|
|
6394
|
+
var g = T.toString("utf16le", C);
|
|
6395
6395
|
if (g) {
|
|
6396
6396
|
var v = g.charCodeAt(g.length - 1);
|
|
6397
6397
|
if (v >= 55296 && v <= 56319)
|
|
@@ -6399,28 +6399,28 @@ function ia() {
|
|
|
6399
6399
|
}
|
|
6400
6400
|
return g;
|
|
6401
6401
|
}
|
|
6402
|
-
return this.lastNeed = 1, this.lastTotal = 2, this.lastChar[0] = T[T.length - 1], T.toString("utf16le",
|
|
6402
|
+
return this.lastNeed = 1, this.lastTotal = 2, this.lastChar[0] = T[T.length - 1], T.toString("utf16le", C, T.length - 1);
|
|
6403
6403
|
}
|
|
6404
6404
|
function y(T) {
|
|
6405
|
-
var
|
|
6405
|
+
var C = T && T.length ? this.write(T) : "";
|
|
6406
6406
|
if (this.lastNeed) {
|
|
6407
6407
|
var g = this.lastTotal - this.lastNeed;
|
|
6408
|
-
return
|
|
6408
|
+
return C + this.lastChar.toString("utf16le", 0, g);
|
|
6409
6409
|
}
|
|
6410
|
-
return
|
|
6410
|
+
return C;
|
|
6411
6411
|
}
|
|
6412
|
-
function w(T,
|
|
6413
|
-
var g = (T.length -
|
|
6414
|
-
return g === 0 ? T.toString("base64",
|
|
6412
|
+
function w(T, C) {
|
|
6413
|
+
var g = (T.length - C) % 3;
|
|
6414
|
+
return g === 0 ? T.toString("base64", C) : (this.lastNeed = 3 - g, this.lastTotal = 3, g === 1 ? this.lastChar[0] = T[T.length - 1] : (this.lastChar[0] = T[T.length - 2], this.lastChar[1] = T[T.length - 1]), T.toString("base64", C, T.length - g));
|
|
6415
6415
|
}
|
|
6416
6416
|
function D(T) {
|
|
6417
|
-
var
|
|
6418
|
-
return this.lastNeed ?
|
|
6417
|
+
var C = T && T.length ? this.write(T) : "";
|
|
6418
|
+
return this.lastNeed ? C + this.lastChar.toString("base64", 0, 3 - this.lastNeed) : C;
|
|
6419
6419
|
}
|
|
6420
6420
|
function _(T) {
|
|
6421
6421
|
return T.toString(this.encoding);
|
|
6422
6422
|
}
|
|
6423
|
-
function
|
|
6423
|
+
function I(T) {
|
|
6424
6424
|
return T && T.length ? this.write(T) : "";
|
|
6425
6425
|
}
|
|
6426
6426
|
return Xn;
|
|
@@ -6588,7 +6588,7 @@ function sa() {
|
|
|
6588
6588
|
P.splice(0, 0, x), j.emit.apply(j, P);
|
|
6589
6589
|
}), o.prototype.on.call(j, x, b);
|
|
6590
6590
|
};
|
|
6591
|
-
var p = "[CDATA[", y = "DOCTYPE", w = "http://www.w3.org/XML/1998/namespace", D = "http://www.w3.org/2000/xmlns/", _ = { xml: w, xmlns: D },
|
|
6591
|
+
var p = "[CDATA[", y = "DOCTYPE", w = "http://www.w3.org/XML/1998/namespace", D = "http://www.w3.org/2000/xmlns/", _ = { xml: w, xmlns: D }, I = /[:_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]/, 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\u00B7\u0300-\u036F\u203F-\u2040.\d-]/, C = /[#:_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]/, g = /[#:_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\u00B7\u0300-\u036F\u203F-\u2040.\d-]/;
|
|
6592
6592
|
function v(x) {
|
|
6593
6593
|
return x === " " || x === `
|
|
6594
6594
|
` || x === "\r" || x === " ";
|
|
@@ -7130,7 +7130,7 @@ Actual: ` + x.attribValue
|
|
|
7130
7130
|
case d.OPEN_WAKA:
|
|
7131
7131
|
if (P === "!")
|
|
7132
7132
|
b.state = d.SGML_DECL, b.sgmlDecl = "";
|
|
7133
|
-
else if (!v(P)) if (W(
|
|
7133
|
+
else if (!v(P)) if (W(I, P))
|
|
7134
7134
|
b.state = d.OPEN_TAG, b.tagName = P;
|
|
7135
7135
|
else if (P === "/")
|
|
7136
7136
|
b.state = d.CLOSE_TAG, b.tagName = "";
|
|
@@ -7210,7 +7210,7 @@ Actual: ` + x.attribValue
|
|
|
7210
7210
|
case d.ATTRIB:
|
|
7211
7211
|
if (v(P))
|
|
7212
7212
|
continue;
|
|
7213
|
-
P === ">" ? st(b) : P === "/" ? b.state = d.OPEN_TAG_SLASH : W(
|
|
7213
|
+
P === ">" ? st(b) : P === "/" ? b.state = d.OPEN_TAG_SLASH : W(I, P) ? (b.attribName = P, b.attribValue = "", b.state = d.ATTRIB_NAME) : V(b, "Invalid attribute name");
|
|
7214
7214
|
continue;
|
|
7215
7215
|
case d.ATTRIB_NAME:
|
|
7216
7216
|
P === "=" ? b.state = d.ATTRIB_VALUE : P === ">" ? (V(b, "Attribute without value"), b.attribValue = b.attribName, at(b), st(b)) : v(P) ? b.state = d.ATTRIB_NAME_SAW_WHITE : W(T, P) ? b.attribName += P : V(b, "Invalid attribute name");
|
|
@@ -7224,7 +7224,7 @@ Actual: ` + x.attribValue
|
|
|
7224
7224
|
V(b, "Attribute without value"), b.tag.attributes[b.attribName] = "", b.attribValue = "", R(b, "onattribute", {
|
|
7225
7225
|
name: b.attribName,
|
|
7226
7226
|
value: ""
|
|
7227
|
-
}), b.attribName = "", P === ">" ? st(b) : W(
|
|
7227
|
+
}), b.attribName = "", P === ">" ? st(b) : W(I, P) ? (b.attribName = P, b.state = d.ATTRIB_NAME) : (V(b, "Invalid attribute name"), b.state = d.ATTRIB);
|
|
7228
7228
|
}
|
|
7229
7229
|
continue;
|
|
7230
7230
|
case d.ATTRIB_VALUE:
|
|
@@ -7240,7 +7240,7 @@ Actual: ` + x.attribValue
|
|
|
7240
7240
|
at(b), b.q = "", b.state = d.ATTRIB_VALUE_CLOSED;
|
|
7241
7241
|
continue;
|
|
7242
7242
|
case d.ATTRIB_VALUE_CLOSED:
|
|
7243
|
-
v(P) ? b.state = d.ATTRIB : P === ">" ? st(b) : P === "/" ? b.state = d.OPEN_TAG_SLASH : W(
|
|
7243
|
+
v(P) ? b.state = d.ATTRIB : P === ">" ? st(b) : P === "/" ? b.state = d.OPEN_TAG_SLASH : W(I, P) ? (V(b, "No whitespace between attributes"), b.attribName = P, b.attribValue = "", b.state = d.ATTRIB_NAME) : V(b, "Invalid attribute name");
|
|
7244
7244
|
continue;
|
|
7245
7245
|
case d.ATTRIB_VALUE_UNQUOTED:
|
|
7246
7246
|
if (!X(P)) {
|
|
@@ -7255,7 +7255,7 @@ Actual: ` + x.attribValue
|
|
|
7255
7255
|
else {
|
|
7256
7256
|
if (v(P))
|
|
7257
7257
|
continue;
|
|
7258
|
-
U(
|
|
7258
|
+
U(I, P) ? b.script ? (b.script += "</" + P, b.state = d.SCRIPT) : V(b, "Invalid tagname in closing tag.") : b.tagName = P;
|
|
7259
7259
|
}
|
|
7260
7260
|
continue;
|
|
7261
7261
|
case d.CLOSE_TAG_SAW_WHITE:
|
|
@@ -7281,7 +7281,7 @@ Actual: ` + x.attribValue
|
|
|
7281
7281
|
if (P === ";") {
|
|
7282
7282
|
var A = vt(b);
|
|
7283
7283
|
b.opt.unparsedEntities && !Object.values(t.XML_ENTITIES).includes(A) ? (b.entity = "", b.state = rt, b.write(A)) : (b[ht] += A, b.entity = "", b.state = rt);
|
|
7284
|
-
} else W(b.entity.length ? g :
|
|
7284
|
+
} else W(b.entity.length ? g : C, P) ? b.entity += P : (V(b, "Invalid character in entity name"), b[ht] += "&" + b.entity + P, b.entity = "", b.state = rt);
|
|
7285
7285
|
continue;
|
|
7286
7286
|
default:
|
|
7287
7287
|
throw new Error(b, "Unknown state: " + b.state);
|
|
@@ -7350,47 +7350,47 @@ function aa() {
|
|
|
7350
7350
|
}, p = function(w, D) {
|
|
7351
7351
|
for (var _ in D)
|
|
7352
7352
|
y.call(D, _) && (w[_] = D[_]);
|
|
7353
|
-
function
|
|
7353
|
+
function I() {
|
|
7354
7354
|
this.constructor = w;
|
|
7355
7355
|
}
|
|
7356
|
-
return
|
|
7356
|
+
return I.prototype = D.prototype, w.prototype = new I(), w.__super__ = D.prototype, w;
|
|
7357
7357
|
}, y = {}.hasOwnProperty;
|
|
7358
7358
|
l = sa(), s = Kn, t = oa(), o = hs(), E = _s.setImmediate, e = Jn().defaults, i = function(w) {
|
|
7359
7359
|
return typeof w == "object" && w != null && Object.keys(w).length === 0;
|
|
7360
7360
|
}, r = function(w, D, _) {
|
|
7361
|
-
var
|
|
7362
|
-
for (
|
|
7363
|
-
|
|
7361
|
+
var I, T, C;
|
|
7362
|
+
for (I = 0, T = w.length; I < T; I++)
|
|
7363
|
+
C = w[I], D = C(D, _);
|
|
7364
7364
|
return D;
|
|
7365
7365
|
}, n = function(w, D, _) {
|
|
7366
|
-
var
|
|
7367
|
-
return
|
|
7366
|
+
var I;
|
|
7367
|
+
return I = /* @__PURE__ */ Object.create(null), I.value = _, I.writable = !0, I.enumerable = !0, I.configurable = !0, Object.defineProperty(w, D, I);
|
|
7368
7368
|
}, a.Parser = function(w) {
|
|
7369
7369
|
p(D, w);
|
|
7370
7370
|
function D(_) {
|
|
7371
7371
|
this.parseStringPromise = m(this.parseStringPromise, this), this.parseString = m(this.parseString, this), this.reset = m(this.reset, this), this.assignOrPush = m(this.assignOrPush, this), this.processAsync = m(this.processAsync, this);
|
|
7372
|
-
var
|
|
7372
|
+
var I, T, C;
|
|
7373
7373
|
if (!(this instanceof a.Parser))
|
|
7374
7374
|
return new a.Parser(_);
|
|
7375
7375
|
this.options = {}, T = e["0.2"];
|
|
7376
|
-
for (
|
|
7377
|
-
y.call(T,
|
|
7378
|
-
for (
|
|
7379
|
-
y.call(_,
|
|
7376
|
+
for (I in T)
|
|
7377
|
+
y.call(T, I) && (C = T[I], this.options[I] = C);
|
|
7378
|
+
for (I in _)
|
|
7379
|
+
y.call(_, I) && (C = _[I], this.options[I] = C);
|
|
7380
7380
|
this.options.xmlns && (this.options.xmlnskey = this.options.attrkey + "ns"), this.options.normalizeTags && (this.options.tagNameProcessors || (this.options.tagNameProcessors = []), this.options.tagNameProcessors.unshift(o.normalize)), this.reset();
|
|
7381
7381
|
}
|
|
7382
7382
|
return D.prototype.processAsync = function() {
|
|
7383
|
-
var _,
|
|
7383
|
+
var _, I;
|
|
7384
7384
|
try {
|
|
7385
7385
|
return this.remaining.length <= this.options.chunkSize ? (_ = this.remaining, this.remaining = "", this.saxParser = this.saxParser.write(_), this.saxParser.close()) : (_ = this.remaining.substr(0, this.options.chunkSize), this.remaining = this.remaining.substr(this.options.chunkSize, this.remaining.length), this.saxParser = this.saxParser.write(_), E(this.processAsync));
|
|
7386
7386
|
} catch (T) {
|
|
7387
|
-
if (
|
|
7388
|
-
return this.saxParser.errThrown = !0, this.emit(
|
|
7387
|
+
if (I = T, !this.saxParser.errThrown)
|
|
7388
|
+
return this.saxParser.errThrown = !0, this.emit(I);
|
|
7389
7389
|
}
|
|
7390
|
-
}, D.prototype.assignOrPush = function(_,
|
|
7391
|
-
return
|
|
7390
|
+
}, D.prototype.assignOrPush = function(_, I, T) {
|
|
7391
|
+
return I in _ ? (_[I] instanceof Array || n(_, I, [_[I]]), _[I].push(T)) : this.options.explicitArray ? n(_, I, [T]) : n(_, I, T);
|
|
7392
7392
|
}, D.prototype.reset = function() {
|
|
7393
|
-
var _,
|
|
7393
|
+
var _, I, T, C;
|
|
7394
7394
|
return this.removeAllListeners(), this.saxParser = l.parser(this.options.strict, {
|
|
7395
7395
|
trim: !1,
|
|
7396
7396
|
normalize: !1,
|
|
@@ -7405,10 +7405,10 @@ function aa() {
|
|
|
7405
7405
|
if (!g.saxParser.ended)
|
|
7406
7406
|
return g.saxParser.ended = !0, g.emit("end", g.resultObject);
|
|
7407
7407
|
};
|
|
7408
|
-
}(this), this.saxParser.ended = !1, this.EXPLICIT_CHARKEY = this.options.explicitCharkey, this.resultObject = null,
|
|
7408
|
+
}(this), this.saxParser.ended = !1, this.EXPLICIT_CHARKEY = this.options.explicitCharkey, this.resultObject = null, C = [], _ = this.options.attrkey, I = this.options.charkey, this.saxParser.onopentag = /* @__PURE__ */ function(g) {
|
|
7409
7409
|
return function(v) {
|
|
7410
7410
|
var M, X, W, U, d;
|
|
7411
|
-
if (W = {}, W[
|
|
7411
|
+
if (W = {}, W[I] = "", !g.options.ignoreAttrs) {
|
|
7412
7412
|
d = v.attributes;
|
|
7413
7413
|
for (M in d)
|
|
7414
7414
|
y.call(d, M) && (!(_ in W) && !g.options.mergeAttrs && (W[_] = {}), X = g.options.attrValueProcessors ? r(g.options.attrValueProcessors, v.attributes[M], M) : v.attributes[M], U = g.options.attrNameProcessors ? r(g.options.attrNameProcessors, M) : M, g.options.mergeAttrs ? g.assignOrPush(W, U, X) : n(W[_], U, X));
|
|
@@ -7416,15 +7416,15 @@ function aa() {
|
|
|
7416
7416
|
return W["#name"] = g.options.tagNameProcessors ? r(g.options.tagNameProcessors, v.name) : v.name, g.options.xmlns && (W[g.options.xmlnskey] = {
|
|
7417
7417
|
uri: v.uri,
|
|
7418
7418
|
local: v.local
|
|
7419
|
-
}),
|
|
7419
|
+
}), C.push(W);
|
|
7420
7420
|
};
|
|
7421
7421
|
}(this), this.saxParser.onclosetag = /* @__PURE__ */ function(g) {
|
|
7422
7422
|
return function() {
|
|
7423
7423
|
var v, M, X, W, U, d, B, S, R, $;
|
|
7424
|
-
if (d =
|
|
7424
|
+
if (d = C.pop(), U = d["#name"], (!g.options.explicitChildren || !g.options.preserveChildrenOrder) && delete d["#name"], d.cdata === !0 && (v = d.cdata, delete d.cdata), R = C[C.length - 1], d[I].match(/^\s*$/) && !v ? (M = d[I], delete d[I]) : (g.options.trim && (d[I] = d[I].trim()), g.options.normalize && (d[I] = d[I].replace(/\s{2,}/g, " ").trim()), d[I] = g.options.valueProcessors ? r(g.options.valueProcessors, d[I], U) : d[I], Object.keys(d).length === 1 && I in d && !g.EXPLICIT_CHARKEY && (d = d[I])), i(d) && (typeof g.options.emptyTag == "function" ? d = g.options.emptyTag() : d = g.options.emptyTag !== "" ? g.options.emptyTag : M), g.options.validator != null && ($ = "/" + function() {
|
|
7425
7425
|
var q, z, k;
|
|
7426
|
-
for (k = [], q = 0, z =
|
|
7427
|
-
W =
|
|
7426
|
+
for (k = [], q = 0, z = C.length; q < z; q++)
|
|
7427
|
+
W = C[q], k.push(W["#name"]);
|
|
7428
7428
|
return k;
|
|
7429
7429
|
}().concat(U).join("/"), function() {
|
|
7430
7430
|
var q;
|
|
@@ -7440,18 +7440,18 @@ function aa() {
|
|
|
7440
7440
|
R[g.options.childkey] = R[g.options.childkey] || [], B = {};
|
|
7441
7441
|
for (X in d)
|
|
7442
7442
|
y.call(d, X) && n(B, X, d[X]);
|
|
7443
|
-
R[g.options.childkey].push(B), delete d["#name"], Object.keys(d).length === 1 &&
|
|
7443
|
+
R[g.options.childkey].push(B), delete d["#name"], Object.keys(d).length === 1 && I in d && !g.EXPLICIT_CHARKEY && (d = d[I]);
|
|
7444
7444
|
}
|
|
7445
7445
|
}
|
|
7446
|
-
return
|
|
7446
|
+
return C.length > 0 ? g.assignOrPush(R, U, d) : (g.options.explicitRoot && (S = d, d = {}, n(d, U, S)), g.resultObject = d, g.saxParser.ended = !0, g.emit("end", g.resultObject));
|
|
7447
7447
|
};
|
|
7448
7448
|
}(this), T = /* @__PURE__ */ function(g) {
|
|
7449
7449
|
return function(v) {
|
|
7450
7450
|
var M, X;
|
|
7451
|
-
if (X =
|
|
7452
|
-
return X[
|
|
7451
|
+
if (X = C[C.length - 1], X)
|
|
7452
|
+
return X[I] += v, g.options.explicitChildren && g.options.preserveChildrenOrder && g.options.charsAsChildren && (g.options.includeWhiteChars || v.replace(/\\n/g, "").trim() !== "") && (X[g.options.childkey] = X[g.options.childkey] || [], M = {
|
|
7453
7453
|
"#name": "__text__"
|
|
7454
|
-
}, M[
|
|
7454
|
+
}, M[I] = v, g.options.normalize && (M[I] = M[I].replace(/\s{2,}/g, " ").trim()), X[g.options.childkey].push(M)), X;
|
|
7455
7455
|
};
|
|
7456
7456
|
}(this), this.saxParser.ontext = T, this.saxParser.oncdata = /* @__PURE__ */ function(g) {
|
|
7457
7457
|
return function(v) {
|
|
@@ -7460,36 +7460,36 @@ function aa() {
|
|
|
7460
7460
|
return M.cdata = !0;
|
|
7461
7461
|
};
|
|
7462
7462
|
}();
|
|
7463
|
-
}, D.prototype.parseString = function(_,
|
|
7463
|
+
}, D.prototype.parseString = function(_, I) {
|
|
7464
7464
|
var T;
|
|
7465
|
-
|
|
7466
|
-
return this.reset(),
|
|
7467
|
-
}), this.on("error", function(
|
|
7468
|
-
return this.reset(), C
|
|
7465
|
+
I != null && typeof I == "function" && (this.on("end", function(C) {
|
|
7466
|
+
return this.reset(), I(null, C);
|
|
7467
|
+
}), this.on("error", function(C) {
|
|
7468
|
+
return this.reset(), I(C);
|
|
7469
7469
|
}));
|
|
7470
7470
|
try {
|
|
7471
7471
|
return _ = _.toString(), _.trim() === "" ? (this.emit("end", null), !0) : (_ = t.stripBOM(_), this.options.async ? (this.remaining = _, E(this.processAsync), this.saxParser) : this.saxParser.write(_).close());
|
|
7472
|
-
} catch (
|
|
7473
|
-
if (T =
|
|
7472
|
+
} catch (C) {
|
|
7473
|
+
if (T = C, this.saxParser.errThrown || this.saxParser.ended) {
|
|
7474
7474
|
if (this.saxParser.ended)
|
|
7475
7475
|
throw T;
|
|
7476
7476
|
} else return this.emit("error", T), this.saxParser.errThrown = !0;
|
|
7477
7477
|
}
|
|
7478
7478
|
}, D.prototype.parseStringPromise = function(_) {
|
|
7479
|
-
return new Promise(/* @__PURE__ */ function(
|
|
7480
|
-
return function(T,
|
|
7481
|
-
return
|
|
7482
|
-
return g ?
|
|
7479
|
+
return new Promise(/* @__PURE__ */ function(I) {
|
|
7480
|
+
return function(T, C) {
|
|
7481
|
+
return I.parseString(_, function(g, v) {
|
|
7482
|
+
return g ? C(g) : T(v);
|
|
7483
7483
|
});
|
|
7484
7484
|
};
|
|
7485
7485
|
}(this));
|
|
7486
7486
|
}, D;
|
|
7487
7487
|
}(s), a.parseString = function(w, D, _) {
|
|
7488
|
-
var
|
|
7489
|
-
return _ != null ? (typeof _ == "function" && (
|
|
7488
|
+
var I, T, C;
|
|
7489
|
+
return _ != null ? (typeof _ == "function" && (I = _), typeof D == "object" && (T = D)) : (typeof D == "function" && (I = D), T = {}), C = new a.Parser(T), C.parseString(w, I);
|
|
7490
7490
|
}, a.parseStringPromise = function(w, D) {
|
|
7491
|
-
var _,
|
|
7492
|
-
return typeof D == "object" && (_ = D),
|
|
7491
|
+
var _, I;
|
|
7492
|
+
return typeof D == "object" && (_ = D), I = new a.Parser(_), I.parseStringPromise(w);
|
|
7493
7493
|
};
|
|
7494
7494
|
}).call(it);
|
|
7495
7495
|
}(Rn)), Rn;
|
|
@@ -7667,7 +7667,12 @@ class ua {
|
|
|
7667
7667
|
i = {};
|
|
7668
7668
|
break;
|
|
7669
7669
|
case "Debugger.setBreakpointByUrl": {
|
|
7670
|
-
const { url: o, lineNumber: l } = s
|
|
7670
|
+
const { url: o, lineNumber: l } = s;
|
|
7671
|
+
if (!o) {
|
|
7672
|
+
r = !1;
|
|
7673
|
+
break;
|
|
7674
|
+
}
|
|
7675
|
+
const E = this.uriFromCDPToBridge(o), m = this.uriFromBridgeToDBGP(E), p = (typeof l == "number" ? l : 0) + 1, y = String(this.breakpoints.size + 1);
|
|
7671
7676
|
if (this.xdebugConnected) {
|
|
7672
7677
|
const w = `breakpoint_set -t line -f ${this.formatPropertyFullName(
|
|
7673
7678
|
m
|
|
@@ -7999,9 +8004,9 @@ class ua {
|
|
|
7999
8004
|
for (const y of p) {
|
|
8000
8005
|
const w = y.$.name || y.$.fullname || "";
|
|
8001
8006
|
let D = y.$.type || "undefined";
|
|
8002
|
-
const _ = y.$.children === "1",
|
|
8007
|
+
const _ = y.$.children === "1", I = y.$.encoding;
|
|
8003
8008
|
let T = null;
|
|
8004
|
-
if (typeof y._ < "u" && (T = y._),
|
|
8009
|
+
if (typeof y._ < "u" && (T = y._), I === "base64" && T !== null)
|
|
8005
8010
|
try {
|
|
8006
8011
|
T = Buffer.from(
|
|
8007
8012
|
T,
|
|
@@ -8010,7 +8015,7 @@ class ua {
|
|
|
8010
8015
|
} catch {
|
|
8011
8016
|
}
|
|
8012
8017
|
if (_) {
|
|
8013
|
-
const
|
|
8018
|
+
const C = y.$.classname || (D === "array" ? "Array" : "Object"), g = String(
|
|
8014
8019
|
this.nextObjectId++
|
|
8015
8020
|
), v = r.cdpMethod === "Runtime.getProperties" && r.params?.parentObjectId && this.objectHandles.get(
|
|
8016
8021
|
r.params.parentObjectId
|
|
@@ -8026,8 +8031,8 @@ class ua {
|
|
|
8026
8031
|
name: y.$.key || w,
|
|
8027
8032
|
value: {
|
|
8028
8033
|
type: "object",
|
|
8029
|
-
className:
|
|
8030
|
-
description:
|
|
8034
|
+
className: C,
|
|
8035
|
+
description: C,
|
|
8031
8036
|
objectId: g
|
|
8032
8037
|
},
|
|
8033
8038
|
writable: !1,
|
|
@@ -8035,12 +8040,12 @@ class ua {
|
|
|
8035
8040
|
enumerable: !0
|
|
8036
8041
|
});
|
|
8037
8042
|
} else {
|
|
8038
|
-
let
|
|
8039
|
-
D === "string" ?
|
|
8043
|
+
let C, g;
|
|
8044
|
+
D === "string" ? C = T ?? "" : D === "int" || D === "integer" ? C = parseInt(T || "0", 10) : D === "float" || D === "double" ? C = parseFloat(T || "0") : D === "bool" || D === "boolean" ? (C = T === "1" || T === "true", D = "boolean") : D === "null" ? (C = null, g = "null") : C = T;
|
|
8040
8045
|
const v = {
|
|
8041
8046
|
type: D === "integer" ? "number" : D
|
|
8042
8047
|
};
|
|
8043
|
-
g && (v.subtype = g), v.value =
|
|
8048
|
+
g && (v.subtype = g), v.value = C, m.push({
|
|
8044
8049
|
name: y.$.key || w,
|
|
8045
8050
|
value: v,
|
|
8046
8051
|
writable: !1,
|
|
@@ -8062,15 +8067,15 @@ class ua {
|
|
|
8062
8067
|
o,
|
|
8063
8068
|
_
|
|
8064
8069
|
);
|
|
8065
|
-
let
|
|
8070
|
+
let I;
|
|
8066
8071
|
if (s === "context_get") {
|
|
8067
|
-
const
|
|
8068
|
-
|
|
8072
|
+
const C = l.contextId ?? 0;
|
|
8073
|
+
I = `context_get -d ${l.depth} -c ${C} -p ${D} -m ${y}`;
|
|
8069
8074
|
} else {
|
|
8070
|
-
const
|
|
8071
|
-
|
|
8075
|
+
const C = l.depth, g = l.fullname, v = this.formatPropertyFullName(g);
|
|
8076
|
+
I = `property_get -d ${C} -n ${v} -p ${D} -m ${y}`;
|
|
8072
8077
|
}
|
|
8073
|
-
const T = this.sendDbgpCommand(
|
|
8078
|
+
const T = this.sendDbgpCommand(I);
|
|
8074
8079
|
this.pendingCommands.set(T, {
|
|
8075
8080
|
cdpId: r.cdpId,
|
|
8076
8081
|
cdpMethod: r.cdpMethod,
|
|
@@ -8106,12 +8111,12 @@ class ua {
|
|
|
8106
8111
|
m.$.filename
|
|
8107
8112
|
), w = parseInt(m.$.lineno, 10), D = m.$.where && m.$.where !== "{main}" ? m.$.where : "(anonymous)", _ = `frame:${p}`;
|
|
8108
8113
|
this.callFramesMap.set(_, p);
|
|
8109
|
-
const
|
|
8114
|
+
const I = [], T = String(this.nextObjectId++);
|
|
8110
8115
|
this.objectHandles.set(T, {
|
|
8111
8116
|
type: "context",
|
|
8112
8117
|
contextId: 0,
|
|
8113
8118
|
depth: p
|
|
8114
|
-
}),
|
|
8119
|
+
}), I.push({
|
|
8115
8120
|
type: "local",
|
|
8116
8121
|
object: {
|
|
8117
8122
|
objectId: T,
|
|
@@ -8119,15 +8124,15 @@ class ua {
|
|
|
8119
8124
|
description: "Local"
|
|
8120
8125
|
}
|
|
8121
8126
|
});
|
|
8122
|
-
const
|
|
8123
|
-
this.objectHandles.set(
|
|
8127
|
+
const C = String(this.nextObjectId++);
|
|
8128
|
+
this.objectHandles.set(C, {
|
|
8124
8129
|
type: "context",
|
|
8125
8130
|
contextId: 1,
|
|
8126
8131
|
depth: p
|
|
8127
|
-
}),
|
|
8132
|
+
}), I.push({
|
|
8128
8133
|
type: "global",
|
|
8129
8134
|
object: {
|
|
8130
|
-
objectId:
|
|
8135
|
+
objectId: C,
|
|
8131
8136
|
className: "Object",
|
|
8132
8137
|
description: "Global"
|
|
8133
8138
|
}
|
|
@@ -8139,12 +8144,12 @@ class ua {
|
|
|
8139
8144
|
lineNumber: w - 1,
|
|
8140
8145
|
columnNumber: 0
|
|
8141
8146
|
},
|
|
8142
|
-
scopeChain:
|
|
8147
|
+
scopeChain: I,
|
|
8143
8148
|
this: {
|
|
8144
8149
|
type: "object",
|
|
8145
8150
|
className: "Object",
|
|
8146
8151
|
description: "Object",
|
|
8147
|
-
objectId:
|
|
8152
|
+
objectId: C
|
|
8148
8153
|
}
|
|
8149
8154
|
});
|
|
8150
8155
|
}
|
|
@@ -8210,15 +8215,18 @@ async function ca(a) {
|
|
|
8210
8215
|
), await new Promise((p) => r.on("clientConnected", p)), await new Promise((p) => setTimeout(p, 2e3)), Pt.log("Chrome connected! Initializing Xdebug receiver...");
|
|
8211
8216
|
const o = new Ws(e);
|
|
8212
8217
|
Pt.log(`XDebug receiver running on port ${e}`), Pt.log("Running a PHP script with Xdebug enabled...");
|
|
8213
|
-
function l(p) {
|
|
8214
|
-
const y = [], w = $i(p);
|
|
8218
|
+
async function l(p) {
|
|
8219
|
+
const y = [], w = a.phpInstance ? await a.phpInstance.listFiles(p) : $i(p);
|
|
8215
8220
|
for (const D of w) {
|
|
8216
|
-
const _ = Ui.join(p, D)
|
|
8217
|
-
|
|
8221
|
+
const _ = Ui.join(p, D);
|
|
8222
|
+
try {
|
|
8223
|
+
(a.phpInstance ? await a.phpInstance.isDir(_) : Os(_).isDirectory()) ? y.push(...await l(_)) : D.endsWith(".php") && y.push(_);
|
|
8224
|
+
} catch {
|
|
8225
|
+
}
|
|
8218
8226
|
}
|
|
8219
8227
|
return y;
|
|
8220
8228
|
}
|
|
8221
|
-
const E = a.phpInstance ? (p) => a.phpInstance.readFileAsText(p) : a.getPHPFile ? a.getPHPFile : (p) => Xe(p, "utf-8"), m = l(s);
|
|
8229
|
+
const E = a.phpInstance ? (p) => a.phpInstance.readFileAsText(p) : a.getPHPFile ? a.getPHPFile : (p) => Xe(p, "utf-8"), m = await l(s);
|
|
8222
8230
|
return new ua(o, r, {
|
|
8223
8231
|
knownScriptUrls: m,
|
|
8224
8232
|
phpRoot: s,
|