@opencloud-eu/web-client 1.0.0 → 2.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{functions-ikwhAVhP.cjs → functions-CLNcqXgl.cjs} +1 -1
- package/dist/{functions-CsnDdpYv.js → functions-Dm62BUjy.js} +82 -81
- package/dist/{index-eFi29SPG.cjs → index-BhfViwrl.cjs} +13 -13
- package/dist/{index-VvbQMSOr.js → index-DTUwIUm-.js} +315 -312
- package/dist/{index-DqVarwg_.js → index-DaH-cMzr.js} +406 -417
- package/dist/{index-oQ7995oB.js → index-DkgTVi3s.js} +1 -1
- package/dist/index-DkrrhS4K.cjs +6 -0
- package/dist/{index-DbVGtwLH.cjs → index-Do5mZY6J.cjs} +1 -1
- package/dist/src/graph/generated/common.d.ts +1 -1
- package/dist/src/helpers/space/types.d.ts +2 -0
- package/dist/web-client/graph/generated.cjs +1 -1
- package/dist/web-client/graph/generated.js +1 -1
- package/dist/web-client/graph.cjs +1 -1
- package/dist/web-client/graph.js +1 -1
- package/dist/web-client/ocs.cjs +1 -1
- package/dist/web-client/ocs.js +1 -0
- package/dist/web-client/webdav.cjs +1 -1
- package/dist/web-client/webdav.js +3 -3
- package/dist/web-client.cjs +1 -1
- package/dist/web-client.js +5 -5
- package/package.json +1 -1
- package/dist/index-C1H-OgNf.cjs +0 -6
|
@@ -5,8 +5,8 @@ var _t = (r) => {
|
|
|
5
5
|
var Hr = (r, e, t) => e in r ? zr(r, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : r[e] = t;
|
|
6
6
|
var k = (r, e, t) => Hr(r, typeof e != "symbol" ? e + "" : e, t), Ke = (r, e, t) => e.has(r) || _t("Cannot " + t);
|
|
7
7
|
var S = (r, e, t) => (Ke(r, e, "read from private field"), t ? t.call(r) : e.get(r)), ie = (r, e, t) => e.has(r) ? _t("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(r) : e.set(r, t), W = (r, e, t, n) => (Ke(r, e, "write to private field"), n ? n.call(r, t) : e.set(r, t), t), ge = (r, e, t) => (Ke(r, e, "access private method"), t);
|
|
8
|
-
import { a as Zr } from "./index-
|
|
9
|
-
import { D as Tt, I as je, J as $e, s as Jr, l as Ae, p as wr, m as Yr, K as de } from "./functions-
|
|
8
|
+
import { a as Zr } from "./index-DaH-cMzr.js";
|
|
9
|
+
import { D as Tt, I as je, J as $e, s as Jr, l as Ae, p as wr, m as Yr, K as de } from "./functions-Dm62BUjy.js";
|
|
10
10
|
import { u as q } from "./toString-Cn0xCZ28.js";
|
|
11
11
|
import { ocs as Kr } from "./web-client/ocs.js";
|
|
12
12
|
import { p as we, g as Ue } from "./index-Pl8khka8.js";
|
|
@@ -107,9 +107,9 @@ const fe = (r, { fileId: e, path: t, name: n }) => {
|
|
|
107
107
|
username: f = "",
|
|
108
108
|
...c
|
|
109
109
|
}) {
|
|
110
|
-
const
|
|
111
|
-
let { downloadURL: m } = u,
|
|
112
|
-
if (!m && !
|
|
110
|
+
const d = l === "inline";
|
|
111
|
+
let { downloadURL: m } = u, g = !0;
|
|
112
|
+
if (!m && !d && (m = a ? r.getFileUrl(q("meta", u.fileId, "v", a)) : r.getFileUrl(u.webDavPath), f && s && await t.head(m), i && f ? m = await Kr(n, t).signUrl(m, f) : g = !1), !g || d) {
|
|
113
113
|
const w = await e.getFileContents(o, u, {
|
|
114
114
|
responseType: "blob",
|
|
115
115
|
...c
|
|
@@ -129,17 +129,19 @@ const fe = (r, { fileId: e, path: t, name: n }) => {
|
|
|
129
129
|
async listFiles(n, { path: o, fileId: u } = {}, { depth: l = 1, davProperties: i, isTrash: h = !1, ...a } = {}) {
|
|
130
130
|
let s;
|
|
131
131
|
if (Tt(n)) {
|
|
132
|
-
|
|
132
|
+
s = await r.propfind(q(n.webDavPath, o), {
|
|
133
133
|
depth: l,
|
|
134
134
|
properties: i || je.PublicLink,
|
|
135
135
|
...a
|
|
136
|
-
}), s.forEach((
|
|
137
|
-
|
|
136
|
+
}), s.forEach((m) => {
|
|
137
|
+
m.filename = m.filename.split("/").slice(1).join("/");
|
|
138
138
|
}), s.length === 1 && (s[0].filename = q(n.id, o, {
|
|
139
139
|
leadingSlash: !0
|
|
140
|
-
})), s.forEach((
|
|
141
|
-
|
|
142
|
-
})
|
|
140
|
+
})), s.forEach((m) => {
|
|
141
|
+
m.filename = m.filename.split("/").slice(2).join("/");
|
|
142
|
+
});
|
|
143
|
+
const c = n.driveAlias.startsWith("ocm/") ? "ocm" : "public-link";
|
|
144
|
+
if ((!o || o === "/") && l > 0 && c === "ocm" && s[0].props[$e.PublicLinkItemType] === "file" && (s = [
|
|
143
145
|
{
|
|
144
146
|
basename: n.fileId,
|
|
145
147
|
type: "directory",
|
|
@@ -148,19 +150,20 @@ const fe = (r, { fileId: e, path: t, name: n }) => {
|
|
|
148
150
|
},
|
|
149
151
|
...s
|
|
150
152
|
]), !o) {
|
|
151
|
-
const [
|
|
153
|
+
const [m, ...g] = s;
|
|
152
154
|
return {
|
|
153
155
|
resource: Jr({
|
|
154
|
-
...
|
|
156
|
+
...m,
|
|
155
157
|
id: n.id,
|
|
156
158
|
driveAlias: n.driveAlias,
|
|
157
|
-
webDavPath: n.webDavPath
|
|
159
|
+
webDavPath: n.webDavPath,
|
|
160
|
+
publicLinkType: c
|
|
158
161
|
}),
|
|
159
|
-
children:
|
|
162
|
+
children: g.map((w) => Ae(w, r.extraProps))
|
|
160
163
|
};
|
|
161
164
|
}
|
|
162
|
-
const
|
|
163
|
-
return { resource:
|
|
165
|
+
const d = s.map((m) => Ae(m, r.extraProps));
|
|
166
|
+
return { resource: d[0], children: d.slice(1) };
|
|
164
167
|
}
|
|
165
168
|
const f = async () => {
|
|
166
169
|
const c = await e.getPathForFileId(u);
|
|
@@ -177,8 +180,8 @@ const fe = (r, { fileId: e, path: t, name: n }) => {
|
|
|
177
180
|
resource: Ae(s[0], r.extraProps),
|
|
178
181
|
children: s.slice(1).map(Yr)
|
|
179
182
|
};
|
|
180
|
-
const
|
|
181
|
-
return u && !m && u !==
|
|
183
|
+
const d = s.map((g) => Ae(g, r.extraProps)), m = u === n.id;
|
|
184
|
+
return u && !m && u !== d[0].fileId ? f() : { resource: d[0], children: d.slice(1) };
|
|
182
185
|
} catch (c) {
|
|
183
186
|
if (c.statusCode === 404 && u)
|
|
184
187
|
return f();
|
|
@@ -215,14 +218,14 @@ const fe = (r, { fileId: e, path: t, name: n }) => {
|
|
|
215
218
|
onUploadProgress: s = null,
|
|
216
219
|
...f
|
|
217
220
|
}) {
|
|
218
|
-
const c = fe(n, { fileId: l, name: o, path: u }), { result:
|
|
221
|
+
const c = fe(n, { fileId: l, name: o, path: u }), { result: d } = await r.put(c, i, {
|
|
219
222
|
previousEntityTag: h,
|
|
220
223
|
overwrite: a,
|
|
221
224
|
onUploadProgress: s,
|
|
222
225
|
...f
|
|
223
226
|
});
|
|
224
227
|
return e.getFileInfo(n, {
|
|
225
|
-
fileId:
|
|
228
|
+
fileId: d.headers.get("Oc-Fileid"),
|
|
226
229
|
path: u
|
|
227
230
|
});
|
|
228
231
|
}
|
|
@@ -286,9 +289,9 @@ var dn = { 2: (r) => {
|
|
|
286
289
|
return l ? l[0] : null;
|
|
287
290
|
}
|
|
288
291
|
function n(o, u, l) {
|
|
289
|
-
var i, h, a, s, f, c = l.indexOf(o),
|
|
290
|
-
if (c >= 0 &&
|
|
291
|
-
for (i = [], a = l.length; m >= 0 && !f; ) m == c ? (i.push(m), c = l.indexOf(o, m + 1)) : i.length == 1 ? f = [i.pop(),
|
|
292
|
+
var i, h, a, s, f, c = l.indexOf(o), d = l.indexOf(u, c + 1), m = c;
|
|
293
|
+
if (c >= 0 && d > 0) {
|
|
294
|
+
for (i = [], a = l.length; m >= 0 && !f; ) m == c ? (i.push(m), c = l.indexOf(o, m + 1)) : i.length == 1 ? f = [i.pop(), d] : ((h = i.pop()) < a && (a = h, s = d), d = l.indexOf(u, m + 1)), m = c < d && c >= 0 ? c : d;
|
|
292
295
|
i.length && (f = [a, s]);
|
|
293
296
|
}
|
|
294
297
|
return f;
|
|
@@ -307,12 +310,12 @@ var dn = { 2: (r) => {
|
|
|
307
310
|
throw new l(f);
|
|
308
311
|
}, h = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", a = /[\t\n\f\r ]/g, s = { encode: function(f) {
|
|
309
312
|
f = String(f), /[^\0-\xFF]/.test(f) && i("The string to be encoded contains characters outside of the Latin1 range.");
|
|
310
|
-
for (var c,
|
|
311
|
-
return w == 2 ? (c = f.charCodeAt(p) << 8,
|
|
313
|
+
for (var c, d, m, g, w = f.length % 3, y = "", p = -1, v = f.length - w; ++p < v; ) c = f.charCodeAt(p) << 16, d = f.charCodeAt(++p) << 8, m = f.charCodeAt(++p), y += h.charAt((g = c + d + m) >> 18 & 63) + h.charAt(g >> 12 & 63) + h.charAt(g >> 6 & 63) + h.charAt(63 & g);
|
|
314
|
+
return w == 2 ? (c = f.charCodeAt(p) << 8, d = f.charCodeAt(++p), y += h.charAt((g = c + d) >> 10) + h.charAt(g >> 4 & 63) + h.charAt(g << 2 & 63) + "=") : w == 1 && (g = f.charCodeAt(p), y += h.charAt(g >> 2) + h.charAt(g << 4 & 63) + "=="), y;
|
|
312
315
|
}, decode: function(f) {
|
|
313
316
|
var c = (f = String(f).replace(a, "")).length;
|
|
314
317
|
c % 4 == 0 && (c = (f = f.replace(/==?$/, "")).length), (c % 4 == 1 || /[^+a-zA-Z0-9/]/.test(f)) && i("Invalid character: the string to be decoded is not correctly encoded.");
|
|
315
|
-
for (var
|
|
318
|
+
for (var d, m, g = 0, w = "", y = -1; ++y < c; ) m = h.indexOf(f.charAt(y)), d = g % 4 ? 64 * d + m : m, g++ % 4 && (w += String.fromCharCode(255 & d >> (-2 * g & 6)));
|
|
316
319
|
return w;
|
|
317
320
|
}, version: "1.0.0" };
|
|
318
321
|
(n = (function() {
|
|
@@ -510,7 +513,7 @@ var dn = { 2: (r) => {
|
|
|
510
513
|
if (p[x + 1] !== "?") break;
|
|
511
514
|
if (x = l(p, ++x), x.err) return x;
|
|
512
515
|
} else if (p[x] === "&") {
|
|
513
|
-
const j =
|
|
516
|
+
const j = d(p, x);
|
|
514
517
|
if (j == -1) return m("InvalidChar", "char '&' is not expected.", w(p, x));
|
|
515
518
|
x = j;
|
|
516
519
|
} else if (b === !0 && !u(p[x])) return m("InvalidXml", "Extra text at the end", w(p, x));
|
|
@@ -542,13 +545,13 @@ var dn = { 2: (r) => {
|
|
|
542
545
|
if (A[b][3] !== void 0 && A[b][4] === void 0) return m("InvalidAttr", "Attribute '" + A[b][2] + "' is without value.", y(A[b]));
|
|
543
546
|
if (A[b][3] === void 0 && !v.allowBooleanAttributes) return m("InvalidAttr", "boolean attribute '" + A[b][2] + "' is not allowed.", y(A[b]));
|
|
544
547
|
const E = A[b][2];
|
|
545
|
-
if (!
|
|
548
|
+
if (!g(E)) return m("InvalidAttr", "Attribute '" + E + "' is an invalid name.", y(A[b]));
|
|
546
549
|
if (N.hasOwnProperty(E)) return m("InvalidAttr", "Attribute '" + E + "' is repeated.", y(A[b]));
|
|
547
550
|
N[E] = 1;
|
|
548
551
|
}
|
|
549
552
|
return !0;
|
|
550
553
|
}
|
|
551
|
-
function
|
|
554
|
+
function d(p, v) {
|
|
552
555
|
if (p[++v] === ";") return -1;
|
|
553
556
|
if (p[v] === "#") return function(N, b) {
|
|
554
557
|
let E = /\d/;
|
|
@@ -568,7 +571,7 @@ var dn = { 2: (r) => {
|
|
|
568
571
|
function m(p, v, A) {
|
|
569
572
|
return { err: { code: p, msg: v, line: A.line || A, col: A.col } };
|
|
570
573
|
}
|
|
571
|
-
function
|
|
574
|
+
function g(p) {
|
|
572
575
|
return n.isName(p);
|
|
573
576
|
}
|
|
574
577
|
function w(p, v) {
|
|
@@ -593,8 +596,8 @@ var dn = { 2: (r) => {
|
|
|
593
596
|
return "";
|
|
594
597
|
}, this.tagEndChar = ">", this.newLine = "");
|
|
595
598
|
}
|
|
596
|
-
function i(s, f, c,
|
|
597
|
-
const m = this.j2x(s, c + 1,
|
|
599
|
+
function i(s, f, c, d) {
|
|
600
|
+
const m = this.j2x(s, c + 1, d.concat(f));
|
|
598
601
|
return s[this.options.textNodeName] !== void 0 && Object.keys(s).length === 1 ? this.buildTextValNode(s[this.options.textNodeName], f, m.attrStr, c) : this.buildObjectNode(m.val, f, m.attrStr, c);
|
|
599
602
|
}
|
|
600
603
|
function h(s) {
|
|
@@ -606,14 +609,14 @@ var dn = { 2: (r) => {
|
|
|
606
609
|
l.prototype.build = function(s) {
|
|
607
610
|
return this.options.preserveOrder ? n(s, this.options) : (Array.isArray(s) && this.options.arrayNodeName && this.options.arrayNodeName.length > 1 && (s = { [this.options.arrayNodeName]: s }), this.j2x(s, 0, []).val);
|
|
608
611
|
}, l.prototype.j2x = function(s, f, c) {
|
|
609
|
-
let
|
|
610
|
-
const
|
|
612
|
+
let d = "", m = "";
|
|
613
|
+
const g = c.join(".");
|
|
611
614
|
for (let w in s) if (Object.prototype.hasOwnProperty.call(s, w)) if (s[w] === void 0) this.isAttribute(w) && (m += "");
|
|
612
615
|
else if (s[w] === null) this.isAttribute(w) ? m += "" : w[0] === "?" ? m += this.indentate(f) + "<" + w + "?" + this.tagEndChar : m += this.indentate(f) + "<" + w + "/" + this.tagEndChar;
|
|
613
616
|
else if (s[w] instanceof Date) m += this.buildTextValNode(s[w], w, "", f);
|
|
614
617
|
else if (typeof s[w] != "object") {
|
|
615
618
|
const y = this.isAttribute(w);
|
|
616
|
-
if (y && !this.ignoreAttributesFn(y,
|
|
619
|
+
if (y && !this.ignoreAttributesFn(y, g)) d += this.buildAttrPairStr(y, "" + s[w]);
|
|
617
620
|
else if (!y) if (w === this.options.textNodeName) {
|
|
618
621
|
let p = this.options.tagValueProcessor(w, "" + s[w]);
|
|
619
622
|
m += this.replaceEntitiesValue(p);
|
|
@@ -636,27 +639,27 @@ var dn = { 2: (r) => {
|
|
|
636
639
|
this.options.oneListGroup && (p = this.buildObjectNode(p, w, v, f)), m += p;
|
|
637
640
|
} else if (this.options.attributesGroupName && w === this.options.attributesGroupName) {
|
|
638
641
|
const y = Object.keys(s[w]), p = y.length;
|
|
639
|
-
for (let v = 0; v < p; v++)
|
|
642
|
+
for (let v = 0; v < p; v++) d += this.buildAttrPairStr(y[v], "" + s[w][y[v]]);
|
|
640
643
|
} else m += this.processTextOrObjNode(s[w], w, f, c);
|
|
641
|
-
return { attrStr:
|
|
644
|
+
return { attrStr: d, val: m };
|
|
642
645
|
}, l.prototype.buildAttrPairStr = function(s, f) {
|
|
643
646
|
return f = this.options.attributeValueProcessor(s, "" + f), f = this.replaceEntitiesValue(f), this.options.suppressBooleanAttributes && f === "true" ? " " + s : " " + s + '="' + f + '"';
|
|
644
|
-
}, l.prototype.buildObjectNode = function(s, f, c,
|
|
645
|
-
if (s === "") return f[0] === "?" ? this.indentate(
|
|
647
|
+
}, l.prototype.buildObjectNode = function(s, f, c, d) {
|
|
648
|
+
if (s === "") return f[0] === "?" ? this.indentate(d) + "<" + f + c + "?" + this.tagEndChar : this.indentate(d) + "<" + f + c + this.closeTag(f) + this.tagEndChar;
|
|
646
649
|
{
|
|
647
|
-
let m = "</" + f + this.tagEndChar,
|
|
648
|
-
return f[0] === "?" && (
|
|
650
|
+
let m = "</" + f + this.tagEndChar, g = "";
|
|
651
|
+
return f[0] === "?" && (g = "?", m = ""), !c && c !== "" || s.indexOf("<") !== -1 ? this.options.commentPropName !== !1 && f === this.options.commentPropName && g.length === 0 ? this.indentate(d) + `<!--${s}-->` + this.newLine : this.indentate(d) + "<" + f + c + g + this.tagEndChar + s + this.indentate(d) + m : this.indentate(d) + "<" + f + c + g + ">" + s + m;
|
|
649
652
|
}
|
|
650
653
|
}, l.prototype.closeTag = function(s) {
|
|
651
654
|
let f = "";
|
|
652
655
|
return this.options.unpairedTags.indexOf(s) !== -1 ? this.options.suppressUnpairedNode || (f = "/") : f = this.options.suppressEmptyNode ? "/" : `></${s}`, f;
|
|
653
|
-
}, l.prototype.buildTextValNode = function(s, f, c,
|
|
654
|
-
if (this.options.cdataPropName !== !1 && f === this.options.cdataPropName) return this.indentate(
|
|
655
|
-
if (this.options.commentPropName !== !1 && f === this.options.commentPropName) return this.indentate(
|
|
656
|
-
if (f[0] === "?") return this.indentate(
|
|
656
|
+
}, l.prototype.buildTextValNode = function(s, f, c, d) {
|
|
657
|
+
if (this.options.cdataPropName !== !1 && f === this.options.cdataPropName) return this.indentate(d) + `<![CDATA[${s}]]>` + this.newLine;
|
|
658
|
+
if (this.options.commentPropName !== !1 && f === this.options.commentPropName) return this.indentate(d) + `<!--${s}-->` + this.newLine;
|
|
659
|
+
if (f[0] === "?") return this.indentate(d) + "<" + f + c + "?" + this.tagEndChar;
|
|
657
660
|
{
|
|
658
661
|
let m = this.options.tagValueProcessor(f, s);
|
|
659
|
-
return m = this.replaceEntitiesValue(m), m === "" ? this.indentate(
|
|
662
|
+
return m = this.replaceEntitiesValue(m), m === "" ? this.indentate(d) + "<" + f + c + this.closeTag(f) + this.tagEndChar : this.indentate(d) + "<" + f + c + ">" + m + "</" + f + this.tagEndChar;
|
|
660
663
|
}
|
|
661
664
|
}, l.prototype.replaceEntitiesValue = function(s) {
|
|
662
665
|
if (s && s.length > 0 && this.options.processEntities) for (let f = 0; f < this.options.entities.length; f++) {
|
|
@@ -669,31 +672,31 @@ var dn = { 2: (r) => {
|
|
|
669
672
|
function e(l, i, h, a) {
|
|
670
673
|
let s = "", f = !1;
|
|
671
674
|
for (let c = 0; c < l.length; c++) {
|
|
672
|
-
const
|
|
675
|
+
const d = l[c], m = t(d);
|
|
673
676
|
if (m === void 0) continue;
|
|
674
|
-
let
|
|
675
|
-
if (
|
|
676
|
-
let v =
|
|
677
|
-
o(
|
|
677
|
+
let g = "";
|
|
678
|
+
if (g = h.length === 0 ? m : `${h}.${m}`, m === i.textNodeName) {
|
|
679
|
+
let v = d[m];
|
|
680
|
+
o(g, i) || (v = i.tagValueProcessor(m, v), v = u(v, i)), f && (s += a), s += v, f = !1;
|
|
678
681
|
continue;
|
|
679
682
|
}
|
|
680
683
|
if (m === i.cdataPropName) {
|
|
681
|
-
f && (s += a), s += `<![CDATA[${
|
|
684
|
+
f && (s += a), s += `<![CDATA[${d[m][0][i.textNodeName]}]]>`, f = !1;
|
|
682
685
|
continue;
|
|
683
686
|
}
|
|
684
687
|
if (m === i.commentPropName) {
|
|
685
|
-
s += a + `<!--${
|
|
688
|
+
s += a + `<!--${d[m][0][i.textNodeName]}-->`, f = !0;
|
|
686
689
|
continue;
|
|
687
690
|
}
|
|
688
691
|
if (m[0] === "?") {
|
|
689
|
-
const v = n(
|
|
690
|
-
let N =
|
|
692
|
+
const v = n(d[":@"], i), A = m === "?xml" ? "" : a;
|
|
693
|
+
let N = d[m][0][i.textNodeName];
|
|
691
694
|
N = N.length !== 0 ? " " + N : "", s += A + `<${m}${N}${v}?>`, f = !0;
|
|
692
695
|
continue;
|
|
693
696
|
}
|
|
694
697
|
let w = a;
|
|
695
698
|
w !== "" && (w += i.indentBy);
|
|
696
|
-
const y = a + `<${m}${n(
|
|
699
|
+
const y = a + `<${m}${n(d[":@"], i)}`, p = e(d[m], i, g, w);
|
|
697
700
|
i.unpairedTags.indexOf(m) !== -1 ? i.suppressUnpairedNode ? s += y + ">" : s += y + "/>" : p && p.length !== 0 || !i.suppressEmptyNode ? p && p.endsWith(">") ? s += y + `>${p}${a}</${m}>` : (s += y + ">", p && a !== "" && (p.includes("/>") || p.includes("</")) ? s += a + i.indentBy + p + a : s += p, s += `</${m}>`) : s += y + "/>", f = !0;
|
|
698
701
|
}
|
|
699
702
|
return s;
|
|
@@ -734,13 +737,13 @@ var dn = { 2: (r) => {
|
|
|
734
737
|
}, 193: (r, e, t) => {
|
|
735
738
|
const n = t(705);
|
|
736
739
|
function o(f, c) {
|
|
737
|
-
let g = "";
|
|
738
|
-
for (; c < f.length && f[c] !== "'" && f[c] !== '"'; c++) g += f[c];
|
|
739
|
-
if (g = g.trim(), g.indexOf(" ") !== -1) throw new Error("External entites are not supported");
|
|
740
|
-
const m = f[c++];
|
|
741
740
|
let d = "";
|
|
742
|
-
for (; c < f.length && f[c] !==
|
|
743
|
-
|
|
741
|
+
for (; c < f.length && f[c] !== "'" && f[c] !== '"'; c++) d += f[c];
|
|
742
|
+
if (d = d.trim(), d.indexOf(" ") !== -1) throw new Error("External entites are not supported");
|
|
743
|
+
const m = f[c++];
|
|
744
|
+
let g = "";
|
|
745
|
+
for (; c < f.length && f[c] !== m; c++) g += f[c];
|
|
746
|
+
return [d, g, c];
|
|
744
747
|
}
|
|
745
748
|
function u(f, c) {
|
|
746
749
|
return f[c + 1] === "!" && f[c + 2] === "-" && f[c + 3] === "-";
|
|
@@ -762,21 +765,21 @@ var dn = { 2: (r) => {
|
|
|
762
765
|
throw new Error(`Invalid entity name ${f}`);
|
|
763
766
|
}
|
|
764
767
|
r.exports = function(f, c) {
|
|
765
|
-
const
|
|
768
|
+
const d = {};
|
|
766
769
|
if (f[c + 3] !== "O" || f[c + 4] !== "C" || f[c + 5] !== "T" || f[c + 6] !== "Y" || f[c + 7] !== "P" || f[c + 8] !== "E") throw new Error("Invalid Tag instead of DOCTYPE");
|
|
767
770
|
{
|
|
768
771
|
c += 9;
|
|
769
|
-
let m = 1,
|
|
772
|
+
let m = 1, g = !1, w = !1, y = "";
|
|
770
773
|
for (; c < f.length; c++) if (f[c] !== "<" || w) if (f[c] === ">") {
|
|
771
774
|
if (w ? f[c - 1] === "-" && f[c - 2] === "-" && (w = !1, m--) : m--, m === 0) break;
|
|
772
|
-
} else f[c] === "[" ?
|
|
775
|
+
} else f[c] === "[" ? g = !0 : y += f[c];
|
|
773
776
|
else {
|
|
774
|
-
if (
|
|
777
|
+
if (g && l(f, c)) {
|
|
775
778
|
let p, v;
|
|
776
|
-
c += 7, [p, v, c] = o(f, c + 1), v.indexOf("&") === -1 && (
|
|
777
|
-
} else if (
|
|
778
|
-
else if (
|
|
779
|
-
else if (
|
|
779
|
+
c += 7, [p, v, c] = o(f, c + 1), v.indexOf("&") === -1 && (d[s(p)] = { regx: RegExp(`&${p};`, "g"), val: v });
|
|
780
|
+
} else if (g && i(f, c)) c += 8;
|
|
781
|
+
else if (g && h(f, c)) c += 8;
|
|
782
|
+
else if (g && a(f, c)) c += 9;
|
|
780
783
|
else {
|
|
781
784
|
if (!u) throw new Error("Invalid DOCTYPE");
|
|
782
785
|
w = !0;
|
|
@@ -785,7 +788,7 @@ var dn = { 2: (r) => {
|
|
|
785
788
|
}
|
|
786
789
|
if (m !== 0) throw new Error("Unclosed DOCTYPE");
|
|
787
790
|
}
|
|
788
|
-
return { entities:
|
|
791
|
+
return { entities: d, i: c };
|
|
789
792
|
};
|
|
790
793
|
}, 63: (r, e) => {
|
|
791
794
|
const t = { preserveOrder: !1, attributeNamePrefix: "@_", attributesGroupName: !1, textNodeName: "#text", ignoreAttributes: !0, removeNSPrefix: !1, allowBooleanAttributes: !1, parseTagValue: !0, parseAttributeValue: !1, trimValues: !0, cdataPropName: !1, numberParseOptions: { hex: !0, leadingZeros: !0, eNotation: !0 }, tagValueProcessor: function(n, o) {
|
|
@@ -844,7 +847,7 @@ var dn = { 2: (r) => {
|
|
|
844
847
|
return I;
|
|
845
848
|
}
|
|
846
849
|
}
|
|
847
|
-
const
|
|
850
|
+
const d = function(b) {
|
|
848
851
|
b = b.replace(/\r\n?/g, `
|
|
849
852
|
`);
|
|
850
853
|
const E = new o("!xml");
|
|
@@ -920,7 +923,7 @@ var dn = { 2: (r) => {
|
|
|
920
923
|
const T = this.options.updateTag(E.tagname, x, E[":@"]);
|
|
921
924
|
T === !1 || (typeof T == "string" && (E.tagname = T), b.addChild(E));
|
|
922
925
|
}
|
|
923
|
-
const
|
|
926
|
+
const g = function(b) {
|
|
924
927
|
if (this.options.processEntities) {
|
|
925
928
|
for (let E in this.docTypeEntities) {
|
|
926
929
|
const x = this.docTypeEntities[E];
|
|
@@ -1004,7 +1007,7 @@ var dn = { 2: (r) => {
|
|
|
1004
1007
|
}
|
|
1005
1008
|
r.exports = class {
|
|
1006
1009
|
constructor(b) {
|
|
1007
|
-
this.options = b, this.currentNode = null, this.tagsNodeStack = [], this.docTypeEntities = {}, this.lastEntities = { apos: { regex: /&(apos|#39|#x27);/g, val: "'" }, gt: { regex: /&(gt|#62|#x3E);/g, val: ">" }, lt: { regex: /&(lt|#60|#x3C);/g, val: "<" }, quot: { regex: /&(quot|#34|#x22);/g, val: '"' } }, this.ampEntity = { regex: /&(amp|#38|#x26);/g, val: "&" }, this.htmlEntities = { space: { regex: /&(nbsp|#160);/g, val: " " }, cent: { regex: /&(cent|#162);/g, val: "¢" }, pound: { regex: /&(pound|#163);/g, val: "£" }, yen: { regex: /&(yen|#165);/g, val: "¥" }, euro: { regex: /&(euro|#8364);/g, val: "€" }, copyright: { regex: /&(copy|#169);/g, val: "©" }, reg: { regex: /&(reg|#174);/g, val: "®" }, inr: { regex: /&(inr|#8377);/g, val: "₹" }, num_dec: { regex: /&#([0-9]{1,7});/g, val: (E, x) => String.fromCharCode(Number.parseInt(x, 10)) }, num_hex: { regex: /&#x([0-9a-fA-F]{1,6});/g, val: (E, x) => String.fromCharCode(Number.parseInt(x, 16)) } }, this.addExternalEntities = h, this.parseXml =
|
|
1010
|
+
this.options = b, this.currentNode = null, this.tagsNodeStack = [], this.docTypeEntities = {}, this.lastEntities = { apos: { regex: /&(apos|#39|#x27);/g, val: "'" }, gt: { regex: /&(gt|#62|#x3E);/g, val: ">" }, lt: { regex: /&(lt|#60|#x3C);/g, val: "<" }, quot: { regex: /&(quot|#34|#x22);/g, val: '"' } }, this.ampEntity = { regex: /&(amp|#38|#x26);/g, val: "&" }, this.htmlEntities = { space: { regex: /&(nbsp|#160);/g, val: " " }, cent: { regex: /&(cent|#162);/g, val: "¢" }, pound: { regex: /&(pound|#163);/g, val: "£" }, yen: { regex: /&(yen|#165);/g, val: "¥" }, euro: { regex: /&(euro|#8364);/g, val: "€" }, copyright: { regex: /&(copy|#169);/g, val: "©" }, reg: { regex: /&(reg|#174);/g, val: "®" }, inr: { regex: /&(inr|#8377);/g, val: "₹" }, num_dec: { regex: /&#([0-9]{1,7});/g, val: (E, x) => String.fromCharCode(Number.parseInt(x, 10)) }, num_hex: { regex: /&#x([0-9a-fA-F]{1,6});/g, val: (E, x) => String.fromCharCode(Number.parseInt(x, 16)) } }, this.addExternalEntities = h, this.parseXml = d, this.parseTextData = a, this.resolveNameSpace = s, this.buildAttributesMap = c, this.isItStopNode = y, this.replaceEntitiesValue = g, this.readStopNodeData = A, this.saveTextToParentTag = w, this.addChild = m, this.ignoreAttributesFn = i(this.options.ignoreAttributes);
|
|
1008
1011
|
}
|
|
1009
1012
|
};
|
|
1010
1013
|
}, 338: (r, e, t) => {
|
|
@@ -1040,15 +1043,15 @@ var dn = { 2: (r) => {
|
|
|
1040
1043
|
let a;
|
|
1041
1044
|
const s = {};
|
|
1042
1045
|
for (let f = 0; f < l.length; f++) {
|
|
1043
|
-
const c = l[f],
|
|
1046
|
+
const c = l[f], d = n(c);
|
|
1044
1047
|
let m = "";
|
|
1045
|
-
if (m = h === void 0 ?
|
|
1048
|
+
if (m = h === void 0 ? d : h + "." + d, d === i.textNodeName) a === void 0 ? a = c[d] : a += "" + c[d];
|
|
1046
1049
|
else {
|
|
1047
|
-
if (
|
|
1048
|
-
if (c[
|
|
1049
|
-
let
|
|
1050
|
-
const w = u(
|
|
1051
|
-
c[":@"] ? o(
|
|
1050
|
+
if (d === void 0) continue;
|
|
1051
|
+
if (c[d]) {
|
|
1052
|
+
let g = t(c[d], i, m);
|
|
1053
|
+
const w = u(g, i);
|
|
1054
|
+
c[":@"] ? o(g, c[":@"], m, i) : Object.keys(g).length !== 1 || g[i.textNodeName] === void 0 || i.alwaysCreateTextNode ? Object.keys(g).length === 0 && (i.alwaysCreateTextNode ? g[i.textNodeName] = "" : g = "") : g = g[i.textNodeName], s[d] !== void 0 && s.hasOwnProperty(d) ? (Array.isArray(s[d]) || (s[d] = [s[d]]), s[d].push(g)) : i.isArray(d, m, w) ? s[d] = [g] : s[d] = g;
|
|
1052
1055
|
}
|
|
1053
1056
|
}
|
|
1054
1057
|
}
|
|
@@ -1065,8 +1068,8 @@ var dn = { 2: (r) => {
|
|
|
1065
1068
|
if (i) {
|
|
1066
1069
|
const s = Object.keys(i), f = s.length;
|
|
1067
1070
|
for (let c = 0; c < f; c++) {
|
|
1068
|
-
const
|
|
1069
|
-
a.isArray(
|
|
1071
|
+
const d = s[c];
|
|
1072
|
+
a.isArray(d, h + "." + d, !0, !0) ? l[d] = [i[d]] : l[d] = i[d];
|
|
1070
1073
|
}
|
|
1071
1074
|
}
|
|
1072
1075
|
}
|
|
@@ -1102,27 +1105,27 @@ var dn = { 2: (r) => {
|
|
|
1102
1105
|
(function() {
|
|
1103
1106
|
var n = t(298), o = t(526).utf8, u = t(135), l = t(526).bin, i = function(h, a) {
|
|
1104
1107
|
h.constructor == String ? h = a && a.encoding === "binary" ? l.stringToBytes(h) : o.stringToBytes(h) : u(h) ? h = Array.prototype.slice.call(h, 0) : Array.isArray(h) || h.constructor === Uint8Array || (h = h.toString());
|
|
1105
|
-
for (var s = n.bytesToWords(h), f = 8 * h.length, c = 1732584193,
|
|
1108
|
+
for (var s = n.bytesToWords(h), f = 8 * h.length, c = 1732584193, d = -271733879, m = -1732584194, g = 271733878, w = 0; w < s.length; w++) s[w] = 16711935 & (s[w] << 8 | s[w] >>> 24) | 4278255360 & (s[w] << 24 | s[w] >>> 8);
|
|
1106
1109
|
s[f >>> 5] |= 128 << f % 32, s[14 + (f + 64 >>> 9 << 4)] = f;
|
|
1107
1110
|
var y = i._ff, p = i._gg, v = i._hh, A = i._ii;
|
|
1108
1111
|
for (w = 0; w < s.length; w += 16) {
|
|
1109
|
-
var N = c, b =
|
|
1110
|
-
c = y(c,
|
|
1112
|
+
var N = c, b = d, E = m, x = g;
|
|
1113
|
+
c = y(c, d, m, g, s[w + 0], 7, -680876936), g = y(g, c, d, m, s[w + 1], 12, -389564586), m = y(m, g, c, d, s[w + 2], 17, 606105819), d = y(d, m, g, c, s[w + 3], 22, -1044525330), c = y(c, d, m, g, s[w + 4], 7, -176418897), g = y(g, c, d, m, s[w + 5], 12, 1200080426), m = y(m, g, c, d, s[w + 6], 17, -1473231341), d = y(d, m, g, c, s[w + 7], 22, -45705983), c = y(c, d, m, g, s[w + 8], 7, 1770035416), g = y(g, c, d, m, s[w + 9], 12, -1958414417), m = y(m, g, c, d, s[w + 10], 17, -42063), d = y(d, m, g, c, s[w + 11], 22, -1990404162), c = y(c, d, m, g, s[w + 12], 7, 1804603682), g = y(g, c, d, m, s[w + 13], 12, -40341101), m = y(m, g, c, d, s[w + 14], 17, -1502002290), c = p(c, d = y(d, m, g, c, s[w + 15], 22, 1236535329), m, g, s[w + 1], 5, -165796510), g = p(g, c, d, m, s[w + 6], 9, -1069501632), m = p(m, g, c, d, s[w + 11], 14, 643717713), d = p(d, m, g, c, s[w + 0], 20, -373897302), c = p(c, d, m, g, s[w + 5], 5, -701558691), g = p(g, c, d, m, s[w + 10], 9, 38016083), m = p(m, g, c, d, s[w + 15], 14, -660478335), d = p(d, m, g, c, s[w + 4], 20, -405537848), c = p(c, d, m, g, s[w + 9], 5, 568446438), g = p(g, c, d, m, s[w + 14], 9, -1019803690), m = p(m, g, c, d, s[w + 3], 14, -187363961), d = p(d, m, g, c, s[w + 8], 20, 1163531501), c = p(c, d, m, g, s[w + 13], 5, -1444681467), g = p(g, c, d, m, s[w + 2], 9, -51403784), m = p(m, g, c, d, s[w + 7], 14, 1735328473), c = v(c, d = p(d, m, g, c, s[w + 12], 20, -1926607734), m, g, s[w + 5], 4, -378558), g = v(g, c, d, m, s[w + 8], 11, -2022574463), m = v(m, g, c, d, s[w + 11], 16, 1839030562), d = v(d, m, g, c, s[w + 14], 23, -35309556), c = v(c, d, m, g, s[w + 1], 4, -1530992060), g = v(g, c, d, m, s[w + 4], 11, 1272893353), m = v(m, g, c, d, s[w + 7], 16, -155497632), d = v(d, m, g, c, s[w + 10], 23, -1094730640), c = v(c, d, m, g, s[w + 13], 4, 681279174), g = v(g, c, d, m, s[w + 0], 11, -358537222), m = v(m, g, c, d, s[w + 3], 16, -722521979), d = v(d, m, g, c, s[w + 6], 23, 76029189), c = v(c, d, m, g, s[w + 9], 4, -640364487), g = v(g, c, d, m, s[w + 12], 11, -421815835), m = v(m, g, c, d, s[w + 15], 16, 530742520), c = A(c, d = v(d, m, g, c, s[w + 2], 23, -995338651), m, g, s[w + 0], 6, -198630844), g = A(g, c, d, m, s[w + 7], 10, 1126891415), m = A(m, g, c, d, s[w + 14], 15, -1416354905), d = A(d, m, g, c, s[w + 5], 21, -57434055), c = A(c, d, m, g, s[w + 12], 6, 1700485571), g = A(g, c, d, m, s[w + 3], 10, -1894986606), m = A(m, g, c, d, s[w + 10], 15, -1051523), d = A(d, m, g, c, s[w + 1], 21, -2054922799), c = A(c, d, m, g, s[w + 8], 6, 1873313359), g = A(g, c, d, m, s[w + 15], 10, -30611744), m = A(m, g, c, d, s[w + 6], 15, -1560198380), d = A(d, m, g, c, s[w + 13], 21, 1309151649), c = A(c, d, m, g, s[w + 4], 6, -145523070), g = A(g, c, d, m, s[w + 11], 10, -1120210379), m = A(m, g, c, d, s[w + 2], 15, 718787259), d = A(d, m, g, c, s[w + 9], 21, -343485551), c = c + N >>> 0, d = d + b >>> 0, m = m + E >>> 0, g = g + x >>> 0;
|
|
1111
1114
|
}
|
|
1112
|
-
return n.endian([c,
|
|
1115
|
+
return n.endian([c, d, m, g]);
|
|
1113
1116
|
};
|
|
1114
|
-
i._ff = function(h, a, s, f, c,
|
|
1115
|
-
var
|
|
1116
|
-
return (
|
|
1117
|
-
}, i._gg = function(h, a, s, f, c,
|
|
1118
|
-
var
|
|
1119
|
-
return (
|
|
1120
|
-
}, i._hh = function(h, a, s, f, c,
|
|
1121
|
-
var
|
|
1122
|
-
return (
|
|
1123
|
-
}, i._ii = function(h, a, s, f, c,
|
|
1124
|
-
var
|
|
1125
|
-
return (
|
|
1117
|
+
i._ff = function(h, a, s, f, c, d, m) {
|
|
1118
|
+
var g = h + (a & s | ~a & f) + (c >>> 0) + m;
|
|
1119
|
+
return (g << d | g >>> 32 - d) + a;
|
|
1120
|
+
}, i._gg = function(h, a, s, f, c, d, m) {
|
|
1121
|
+
var g = h + (a & f | s & ~f) + (c >>> 0) + m;
|
|
1122
|
+
return (g << d | g >>> 32 - d) + a;
|
|
1123
|
+
}, i._hh = function(h, a, s, f, c, d, m) {
|
|
1124
|
+
var g = h + (a ^ s ^ f) + (c >>> 0) + m;
|
|
1125
|
+
return (g << d | g >>> 32 - d) + a;
|
|
1126
|
+
}, i._ii = function(h, a, s, f, c, d, m) {
|
|
1127
|
+
var g = h + (s ^ (a | ~f)) + (c >>> 0) + m;
|
|
1128
|
+
return (g << d | g >>> 32 - d) + a;
|
|
1126
1129
|
}, i._blocksize = 16, i._digestsize = 16, r.exports = function(h, a) {
|
|
1127
1130
|
if (h == null) throw new Error("Illegal argument " + h);
|
|
1128
1131
|
var s = n.wordsToBytes(i(h, a));
|
|
@@ -1155,13 +1158,13 @@ var dn = { 2: (r) => {
|
|
|
1155
1158
|
function c(y) {
|
|
1156
1159
|
return "{" + y + "}";
|
|
1157
1160
|
}
|
|
1158
|
-
function
|
|
1161
|
+
function d(y) {
|
|
1159
1162
|
return /^-?0\d/.test(y);
|
|
1160
1163
|
}
|
|
1161
1164
|
function m(y, p) {
|
|
1162
1165
|
return y <= p;
|
|
1163
1166
|
}
|
|
1164
|
-
function
|
|
1167
|
+
function g(y, p) {
|
|
1165
1168
|
return y >= p;
|
|
1166
1169
|
}
|
|
1167
1170
|
function w(y, p) {
|
|
@@ -1181,8 +1184,8 @@ var dn = { 2: (r) => {
|
|
|
1181
1184
|
});
|
|
1182
1185
|
if (P) {
|
|
1183
1186
|
var F = a(T[0]), $ = a(T[1]), X = Math.max(T[0].length, T[1].length), B = T.length == 3 ? Math.abs(a(T[2])) : 1, R = m;
|
|
1184
|
-
$ < F && (B *= -1, R =
|
|
1185
|
-
var D = T.some(
|
|
1187
|
+
$ < F && (B *= -1, R = g);
|
|
1188
|
+
var D = T.some(d);
|
|
1186
1189
|
O = [];
|
|
1187
1190
|
for (var U = F; R(U, $); U += B) {
|
|
1188
1191
|
var K;
|
|
@@ -1220,12 +1223,12 @@ var dn = { 2: (r) => {
|
|
|
1220
1223
|
if (typeof f != "function") throw new TypeError("Super expression must either be null or a function");
|
|
1221
1224
|
if (s !== void 0) {
|
|
1222
1225
|
if (s.has(f)) return s.get(f);
|
|
1223
|
-
s.set(f,
|
|
1226
|
+
s.set(f, d);
|
|
1224
1227
|
}
|
|
1225
|
-
function
|
|
1228
|
+
function d() {
|
|
1226
1229
|
return n(f, arguments, u(this).constructor);
|
|
1227
1230
|
}
|
|
1228
|
-
return
|
|
1231
|
+
return d.prototype = Object.create(f.prototype, { constructor: { value: d, enumerable: !1, writable: !0, configurable: !0 } }), o(d, f);
|
|
1229
1232
|
}, t(a);
|
|
1230
1233
|
}
|
|
1231
1234
|
function n(a, s, f) {
|
|
@@ -1238,10 +1241,10 @@ var dn = { 2: (r) => {
|
|
|
1238
1241
|
} catch {
|
|
1239
1242
|
return !1;
|
|
1240
1243
|
}
|
|
1241
|
-
}() ? Reflect.construct : function(c,
|
|
1242
|
-
var
|
|
1243
|
-
|
|
1244
|
-
var w = new (Function.bind.apply(c,
|
|
1244
|
+
}() ? Reflect.construct : function(c, d, m) {
|
|
1245
|
+
var g = [null];
|
|
1246
|
+
g.push.apply(g, d);
|
|
1247
|
+
var w = new (Function.bind.apply(c, g))();
|
|
1245
1248
|
return m && o(w, m.prototype), w;
|
|
1246
1249
|
}, n.apply(null, arguments);
|
|
1247
1250
|
}
|
|
@@ -1258,13 +1261,13 @@ var dn = { 2: (r) => {
|
|
|
1258
1261
|
var l = function(a) {
|
|
1259
1262
|
function s(f) {
|
|
1260
1263
|
var c;
|
|
1261
|
-
return function(
|
|
1262
|
-
if (!(
|
|
1263
|
-
}(this, s), (c = function(
|
|
1264
|
-
return !m || e(m) !== "object" && typeof m != "function" ? function(
|
|
1265
|
-
if (
|
|
1266
|
-
return
|
|
1267
|
-
}(
|
|
1264
|
+
return function(d, m) {
|
|
1265
|
+
if (!(d instanceof m)) throw new TypeError("Cannot call a class as a function");
|
|
1266
|
+
}(this, s), (c = function(d, m) {
|
|
1267
|
+
return !m || e(m) !== "object" && typeof m != "function" ? function(g) {
|
|
1268
|
+
if (g === void 0) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
1269
|
+
return g;
|
|
1270
|
+
}(d) : m;
|
|
1268
1271
|
}(this, u(s).call(this, f))).name = "ObjectPrototypeMutationError", c;
|
|
1269
1272
|
}
|
|
1270
1273
|
return function(f, c) {
|
|
@@ -1274,7 +1277,7 @@ var dn = { 2: (r) => {
|
|
|
1274
1277
|
}(t(Error));
|
|
1275
1278
|
function i(a, s) {
|
|
1276
1279
|
for (var f = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : function() {
|
|
1277
|
-
}, c = s.split("."),
|
|
1280
|
+
}, c = s.split("."), d = c.length, m = function(y) {
|
|
1278
1281
|
var p = c[y];
|
|
1279
1282
|
if (!a) return { v: void 0 };
|
|
1280
1283
|
if (p === "+") {
|
|
@@ -1286,8 +1289,8 @@ var dn = { 2: (r) => {
|
|
|
1286
1289
|
throw new Error("Object at wildcard (".concat(v, ") is not an array"));
|
|
1287
1290
|
}
|
|
1288
1291
|
a = f(a, p, c, y);
|
|
1289
|
-
},
|
|
1290
|
-
var w = m(
|
|
1292
|
+
}, g = 0; g < d; g++) {
|
|
1293
|
+
var w = m(g);
|
|
1291
1294
|
if (e(w) === "object") return w.v;
|
|
1292
1295
|
}
|
|
1293
1296
|
return a;
|
|
@@ -1299,13 +1302,13 @@ var dn = { 2: (r) => {
|
|
|
1299
1302
|
if (e(a) != "object" || a === null || s === void 0) return a;
|
|
1300
1303
|
if (typeof s == "number") return a[s] = f, a[s];
|
|
1301
1304
|
try {
|
|
1302
|
-
return i(a, s, function(c,
|
|
1305
|
+
return i(a, s, function(c, d, m, g) {
|
|
1303
1306
|
if (c === Reflect.getPrototypeOf({})) throw new l("Attempting to mutate Object.prototype");
|
|
1304
|
-
if (!c[
|
|
1305
|
-
var w = Number.isInteger(Number(m[
|
|
1306
|
-
c[
|
|
1307
|
+
if (!c[d]) {
|
|
1308
|
+
var w = Number.isInteger(Number(m[g + 1])), y = m[g + 1] === "+";
|
|
1309
|
+
c[d] = w || y ? [] : {};
|
|
1307
1310
|
}
|
|
1308
|
-
return h(m,
|
|
1311
|
+
return h(m, g) && (c[d] = f), c[d];
|
|
1309
1312
|
});
|
|
1310
1313
|
} catch (c) {
|
|
1311
1314
|
if (c instanceof l) throw c;
|
|
@@ -1327,9 +1330,9 @@ var dn = { 2: (r) => {
|
|
|
1327
1330
|
if (typeof s == "number") return s in a;
|
|
1328
1331
|
try {
|
|
1329
1332
|
var c = !1;
|
|
1330
|
-
return i(a, s, function(
|
|
1331
|
-
if (!h(
|
|
1332
|
-
c = f.own ?
|
|
1333
|
+
return i(a, s, function(d, m, g, w) {
|
|
1334
|
+
if (!h(g, w)) return d && d[m];
|
|
1335
|
+
c = f.own ? d.hasOwnProperty(m) : m in d;
|
|
1333
1336
|
}), c;
|
|
1334
1337
|
} catch {
|
|
1335
1338
|
return !1;
|
|
@@ -1340,10 +1343,10 @@ var dn = { 2: (r) => {
|
|
|
1340
1343
|
var c = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : {};
|
|
1341
1344
|
if (e(a) != "object" || a === null || s === void 0) return !1;
|
|
1342
1345
|
try {
|
|
1343
|
-
var
|
|
1344
|
-
return i(a, s, function(
|
|
1345
|
-
return
|
|
1346
|
-
}), c.validPath ?
|
|
1346
|
+
var d = !1, m = !1;
|
|
1347
|
+
return i(a, s, function(g, w, y, p) {
|
|
1348
|
+
return d = d || g === f || !!g && g[w] === f, m = h(y, p) && e(g) === "object" && w in g, g && g[w];
|
|
1349
|
+
}), c.validPath ? d && m : d;
|
|
1347
1350
|
} catch {
|
|
1348
1351
|
return !1;
|
|
1349
1352
|
}
|
|
@@ -1354,8 +1357,8 @@ var dn = { 2: (r) => {
|
|
|
1354
1357
|
};
|
|
1355
1358
|
function u(a, s) {
|
|
1356
1359
|
for (var f = [], c = 0; c < a.length; c++) {
|
|
1357
|
-
var
|
|
1358
|
-
|
|
1360
|
+
var d = a[c];
|
|
1361
|
+
d && d !== "." && (d === ".." ? f.length && f[f.length - 1] !== ".." ? f.pop() : s && f.push("..") : f.push(d));
|
|
1359
1362
|
}
|
|
1360
1363
|
return f;
|
|
1361
1364
|
}
|
|
@@ -1389,13 +1392,13 @@ var dn = { 2: (r) => {
|
|
|
1389
1392
|
return v > A ? [] : p.slice(v, A + 1);
|
|
1390
1393
|
}
|
|
1391
1394
|
a = i.resolve(a).substr(1), s = i.resolve(s).substr(1);
|
|
1392
|
-
for (var c = f(a.split("/")),
|
|
1393
|
-
|
|
1395
|
+
for (var c = f(a.split("/")), d = f(s.split("/")), m = Math.min(c.length, d.length), g = m, w = 0; w < m; w++) if (c[w] !== d[w]) {
|
|
1396
|
+
g = w;
|
|
1394
1397
|
break;
|
|
1395
1398
|
}
|
|
1396
1399
|
var y = [];
|
|
1397
|
-
for (w =
|
|
1398
|
-
return (y = y.concat(
|
|
1400
|
+
for (w = g; w < c.length; w++) y.push("..");
|
|
1401
|
+
return (y = y.concat(d.slice(g))).join("/");
|
|
1399
1402
|
}, i._makeLong = function(a) {
|
|
1400
1403
|
return a;
|
|
1401
1404
|
}, i.dirname = function(a) {
|
|
@@ -1485,8 +1488,8 @@ var dn = { 2: (r) => {
|
|
|
1485
1488
|
const c = h[4] || h[6];
|
|
1486
1489
|
if (!u.leadingZeros && s.length > 0 && a && l[2] !== "." || !u.leadingZeros && s.length > 0 && !a && l[1] !== ".") return o;
|
|
1487
1490
|
{
|
|
1488
|
-
const
|
|
1489
|
-
return m.search(/[eE]/) !== -1 || c ? u.eNotation ?
|
|
1491
|
+
const d = Number(l), m = "" + d;
|
|
1492
|
+
return m.search(/[eE]/) !== -1 || c ? u.eNotation ? d : o : l.indexOf(".") !== -1 ? m === "0" && f === "" || m === f || a && m === "-" + f ? d : o : s ? f === m || a + f === m ? d : o : l === m || l === a + m ? d : o;
|
|
1490
1493
|
}
|
|
1491
1494
|
}
|
|
1492
1495
|
return o;
|
|
@@ -1499,35 +1502,35 @@ var dn = { 2: (r) => {
|
|
|
1499
1502
|
return (p || "").toString().replace(u, "");
|
|
1500
1503
|
}
|
|
1501
1504
|
var c = [["#", "hash"], ["?", "query"], function(p, v) {
|
|
1502
|
-
return
|
|
1503
|
-
}, ["/", "pathname"], ["@", "auth", 1], [NaN, "host", void 0, 1, 1], [/:(\d*)$/, "port", void 0, 1], [NaN, "hostname", void 0, 1, 1]],
|
|
1505
|
+
return g(v.protocol) ? p.replace(/\\/g, "/") : p;
|
|
1506
|
+
}, ["/", "pathname"], ["@", "auth", 1], [NaN, "host", void 0, 1, 1], [/:(\d*)$/, "port", void 0, 1], [NaN, "hostname", void 0, 1, 1]], d = { hash: 1, query: 1 };
|
|
1504
1507
|
function m(p) {
|
|
1505
1508
|
var v, A = (typeof window < "u" ? window : typeof Ue < "u" ? Ue : typeof self < "u" ? self : {}).location || {}, N = {}, b = typeof (p = p || A);
|
|
1506
1509
|
if (p.protocol === "blob:") N = new y(unescape(p.pathname), {});
|
|
1507
|
-
else if (b === "string") for (v in N = new y(p, {}),
|
|
1510
|
+
else if (b === "string") for (v in N = new y(p, {}), d) delete N[v];
|
|
1508
1511
|
else if (b === "object") {
|
|
1509
|
-
for (v in p) v in
|
|
1512
|
+
for (v in p) v in d || (N[v] = p[v]);
|
|
1510
1513
|
N.slashes === void 0 && (N.slashes = i.test(p.href));
|
|
1511
1514
|
}
|
|
1512
1515
|
return N;
|
|
1513
1516
|
}
|
|
1514
|
-
function
|
|
1517
|
+
function g(p) {
|
|
1515
1518
|
return p === "file:" || p === "ftp:" || p === "http:" || p === "https:" || p === "ws:" || p === "wss:";
|
|
1516
1519
|
}
|
|
1517
1520
|
function w(p, v) {
|
|
1518
1521
|
p = (p = f(p)).replace(l, ""), v = v || {};
|
|
1519
1522
|
var A, N = a.exec(p), b = N[1] ? N[1].toLowerCase() : "", E = !!N[2], x = !!N[3], T = 0;
|
|
1520
|
-
return E ? x ? (A = N[2] + N[3] + N[4], T = N[2].length + N[3].length) : (A = N[2] + N[4], T = N[2].length) : x ? (A = N[3] + N[4], T = N[3].length) : A = N[4], b === "file:" ? T >= 2 && (A = A.slice(2)) :
|
|
1523
|
+
return E ? x ? (A = N[2] + N[3] + N[4], T = N[2].length + N[3].length) : (A = N[2] + N[4], T = N[2].length) : x ? (A = N[3] + N[4], T = N[3].length) : A = N[4], b === "file:" ? T >= 2 && (A = A.slice(2)) : g(b) ? A = N[4] : b ? E && (A = A.slice(2)) : T >= 2 && g(v.protocol) && (A = N[4]), { protocol: b, slashes: E || g(b), slashesCount: T, rest: A };
|
|
1521
1524
|
}
|
|
1522
1525
|
function y(p, v, A) {
|
|
1523
1526
|
if (p = (p = f(p)).replace(l, ""), !(this instanceof y)) return new y(p, v, A);
|
|
1524
1527
|
var N, b, E, x, T, O, I = c.slice(), C = typeof v, P = this, j = 0;
|
|
1525
|
-
for (C !== "object" && C !== "string" && (A = v, v = null), A && typeof A != "function" && (A = o.parse), N = !(b = w(p || "", v = m(v))).protocol && !b.slashes, P.slashes = b.slashes || N && v.slashes, P.protocol = b.protocol || v.protocol || "", p = b.rest, (b.protocol === "file:" && (b.slashesCount !== 2 || s.test(p)) || !b.slashes && (b.protocol || b.slashesCount < 2 || !
|
|
1528
|
+
for (C !== "object" && C !== "string" && (A = v, v = null), A && typeof A != "function" && (A = o.parse), N = !(b = w(p || "", v = m(v))).protocol && !b.slashes, P.slashes = b.slashes || N && v.slashes, P.protocol = b.protocol || v.protocol || "", p = b.rest, (b.protocol === "file:" && (b.slashesCount !== 2 || s.test(p)) || !b.slashes && (b.protocol || b.slashesCount < 2 || !g(P.protocol))) && (I[3] = [/(.*)/, "pathname"]); j < I.length; j++) typeof (x = I[j]) != "function" ? (E = x[0], O = x[1], E != E ? P[O] = p : typeof E == "string" ? ~(T = E === "@" ? p.lastIndexOf(E) : p.indexOf(E)) && (typeof x[2] == "number" ? (P[O] = p.slice(0, T), p = p.slice(T + x[2])) : (P[O] = p.slice(T), p = p.slice(0, T))) : (T = E.exec(p)) && (P[O] = T[1], p = p.slice(0, T.index)), P[O] = P[O] || N && x[3] && v[O] || "", x[4] && (P[O] = P[O].toLowerCase())) : p = x(p, P);
|
|
1526
1529
|
A && (P.query = A(P.query)), N && v.slashes && P.pathname.charAt(0) !== "/" && (P.pathname !== "" || v.pathname !== "") && (P.pathname = function(F, $) {
|
|
1527
1530
|
if (F === "") return $;
|
|
1528
1531
|
for (var X = ($ || "/").split("/").slice(0, -1).concat(F.split("/")), B = X.length, R = X[B - 1], D = !1, U = 0; B--; ) X[B] === "." ? X.splice(B, 1) : X[B] === ".." ? (X.splice(B, 1), U++) : U && (B === 0 && (D = !0), X.splice(B, 1), U--);
|
|
1529
1532
|
return D && X.unshift(""), R !== "." && R !== ".." || X.push(""), X.join("/");
|
|
1530
|
-
}(P.pathname, v.pathname)), P.pathname.charAt(0) !== "/" &&
|
|
1533
|
+
}(P.pathname, v.pathname)), P.pathname.charAt(0) !== "/" && g(P.protocol) && (P.pathname = "/" + P.pathname), n(P.port, P.protocol) || (P.host = P.hostname, P.port = ""), P.username = P.password = "", P.auth && (~(T = P.auth.indexOf(":")) ? (P.username = P.auth.slice(0, T), P.username = encodeURIComponent(decodeURIComponent(P.username)), P.password = P.auth.slice(T + 1), P.password = encodeURIComponent(decodeURIComponent(P.password))) : P.username = encodeURIComponent(decodeURIComponent(P.auth)), P.auth = P.password ? P.username + ":" + P.password : P.username), P.origin = P.protocol !== "file:" && g(P.protocol) && P.host ? P.protocol + "//" + P.host : "null", P.href = P.toString();
|
|
1531
1534
|
}
|
|
1532
1535
|
y.prototype = { set: function(p, v, A) {
|
|
1533
1536
|
var N = this;
|
|
@@ -1566,13 +1569,13 @@ var dn = { 2: (r) => {
|
|
|
1566
1569
|
var T = c[x];
|
|
1567
1570
|
T[4] && (N[T[1]] = N[T[1]].toLowerCase());
|
|
1568
1571
|
}
|
|
1569
|
-
return N.auth = N.password ? N.username + ":" + N.password : N.username, N.origin = N.protocol !== "file:" &&
|
|
1572
|
+
return N.auth = N.password ? N.username + ":" + N.password : N.username, N.origin = N.protocol !== "file:" && g(N.protocol) && N.host ? N.protocol + "//" + N.host : "null", N.href = N.toString(), N;
|
|
1570
1573
|
}, toString: function(p) {
|
|
1571
1574
|
p && typeof p == "function" || (p = o.stringify);
|
|
1572
1575
|
var v, A = this, N = A.host, b = A.protocol;
|
|
1573
1576
|
b && b.charAt(b.length - 1) !== ":" && (b += ":");
|
|
1574
|
-
var E = b + (A.protocol && A.slashes ||
|
|
1575
|
-
return A.username ? (E += A.username, A.password && (E += ":" + A.password), E += "@") : A.password ? (E += ":" + A.password, E += "@") : A.protocol !== "file:" &&
|
|
1577
|
+
var E = b + (A.protocol && A.slashes || g(A.protocol) ? "//" : "");
|
|
1578
|
+
return A.username ? (E += A.username, A.password && (E += ":" + A.password), E += "@") : A.password ? (E += ":" + A.password, E += "@") : A.protocol !== "file:" && g(A.protocol) && !N && A.pathname !== "/" && (E += "@"), (N[N.length - 1] === ":" || h.test(A.hostname) && !A.port) && (N += ":"), E += N + A.pathname, (v = typeof A.query == "object" ? p(A.query) : A.query) && (E += v.charAt(0) !== "?" ? "?" + v : v), A.hash && (E += A.hash), E;
|
|
1576
1579
|
} }, y.extractProtocol = w, y.location = m, y.trimLeft = f, y.qs = o, r.exports = y;
|
|
1577
1580
|
}, 410: () => {
|
|
1578
1581
|
}, 388: () => {
|
|
@@ -1686,8 +1689,8 @@ function V() {
|
|
|
1686
1689
|
var wn = L(542), Ce = L.n(wn);
|
|
1687
1690
|
const Nn = "abcdef0123456789";
|
|
1688
1691
|
function Wt(r, e) {
|
|
1689
|
-
const t = r.url.replace("//", ""), n = t.indexOf("/") == -1 ? "/" : t.slice(t.indexOf("/")), o = r.method ? r.method.toUpperCase() : "GET", u = !!/(^|,)\s*auth\s*($|,)/.test(e.qop) && "auth", l = `00000000${e.nc}`.slice(-8), i = function(c,
|
|
1690
|
-
const v = p || Ce()(`${
|
|
1692
|
+
const t = r.url.replace("//", ""), n = t.indexOf("/") == -1 ? "/" : t.slice(t.indexOf("/")), o = r.method ? r.method.toUpperCase() : "GET", u = !!/(^|,)\s*auth\s*($|,)/.test(e.qop) && "auth", l = `00000000${e.nc}`.slice(-8), i = function(c, d, m, g, w, y, p) {
|
|
1693
|
+
const v = p || Ce()(`${d}:${m}:${g}`);
|
|
1691
1694
|
return c && c.toLowerCase() === "md5-sess" ? Ce()(`${v}:${w}:${y}`) : v;
|
|
1692
1695
|
}(e.algorithm, e.username, e.realm, e.password, e.nonce, e.cnonce, e.ha1), h = Ce()(`${o}:${n}`), a = u ? Ce()(`${i}:${e.nonce}:${l}:${e.cnonce}:${u}:${h}`) : Ce()(`${i}:${e.nonce}:${h}`), s = { username: e.username, realm: e.realm, nonce: e.nonce, uri: n, qop: u, response: a, nc: l, cnonce: e.cnonce, algorithm: e.algorithm, opaque: e.opaque }, f = [];
|
|
1693
1696
|
for (const c in s) s[c] && (c === "qop" || c === "nc" || c === "algorithm" ? f.push(`${c}=${s[c]}`) : f.push(`${c}="${s[c]}"`));
|
|
@@ -1953,21 +1956,21 @@ const ze = (r) => {
|
|
|
1953
1956
|
const n = [], o = [];
|
|
1954
1957
|
let u = t + 1, l = !1, i = !1, h = !1, a = !1, s = t, f = "";
|
|
1955
1958
|
e: for (; u < r.length; ) {
|
|
1956
|
-
const
|
|
1957
|
-
if (
|
|
1958
|
-
if (
|
|
1959
|
+
const g = r.charAt(u);
|
|
1960
|
+
if (g !== "!" && g !== "^" || u !== t + 1) {
|
|
1961
|
+
if (g === "]" && l && !h) {
|
|
1959
1962
|
s = u + 1;
|
|
1960
1963
|
break;
|
|
1961
1964
|
}
|
|
1962
|
-
if (l = !0,
|
|
1963
|
-
if (
|
|
1965
|
+
if (l = !0, g !== "\\" || h) {
|
|
1966
|
+
if (g === "[" && !h) {
|
|
1964
1967
|
for (const [w, [y, p, v]] of Object.entries($n)) if (r.startsWith(w, u)) {
|
|
1965
1968
|
if (f) return ["$.", !1, r.length - t, !0];
|
|
1966
1969
|
u += w.length, v ? o.push(y) : n.push(y), i = i || p;
|
|
1967
1970
|
continue e;
|
|
1968
1971
|
}
|
|
1969
1972
|
}
|
|
1970
|
-
h = !1, f ? (
|
|
1973
|
+
h = !1, f ? (g > f ? n.push(Ie(f) + "-" + Ie(g)) : g === f && n.push(Ie(g)), f = "", u++) : r.startsWith("-]", u + 1) ? (n.push(Ie(g + "-")), u += 2) : r.startsWith("-", u + 1) ? (f = g, u += 2) : (n.push(Ie(g)), u++);
|
|
1971
1974
|
} else h = !0, u++;
|
|
1972
1975
|
} else a = !0, u++;
|
|
1973
1976
|
}
|
|
@@ -1976,8 +1979,8 @@ const ze = (r) => {
|
|
|
1976
1979
|
if (o.length === 0 && n.length === 1 && /^\\?.$/.test(n[0]) && !a)
|
|
1977
1980
|
return [(c = n[0].length === 2 ? n[0].slice(-1) : n[0], c.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, "\\$&")), !1, s - t, !1];
|
|
1978
1981
|
var c;
|
|
1979
|
-
const
|
|
1980
|
-
return [n.length && o.length ? "(" +
|
|
1982
|
+
const d = "[" + (a ? "^" : "") + Zt(n) + "]", m = "[" + (a ? "" : "^") + Zt(o) + "]";
|
|
1983
|
+
return [n.length && o.length ? "(" + d + "|" + m + ")" : n.length ? d : m, i, s - t, !0];
|
|
1981
1984
|
}, Se = function(r) {
|
|
1982
1985
|
let { windowsPathsNoEscape: e = !1 } = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
1983
1986
|
return e ? r.replace(/\[([^\/\\])\]/g, "$1") : r.replace(/((?!\\).|^)\[([^\/\\])\]/g, "$1$2").replace(/\\([^\/])/g, "$1");
|
|
@@ -2069,15 +2072,15 @@ const te = class te {
|
|
|
2069
2072
|
var h;
|
|
2070
2073
|
const t = e ?? !!S(this, le).dot;
|
|
2071
2074
|
if (S(this, z) === this && ge(this, Pe, Sr).call(this), !this.type) {
|
|
2072
|
-
const a = this.isStart() && this.isEnd(), s = S(this, _).map((
|
|
2075
|
+
const a = this.isStart() && this.isEnd(), s = S(this, _).map((d) => {
|
|
2073
2076
|
var p;
|
|
2074
|
-
const [m,
|
|
2077
|
+
const [m, g, w, y] = typeof d == "string" ? ge(p = te, ye, Fr).call(p, d, S(this, Y), a) : d.toRegExpSource(e);
|
|
2075
2078
|
return W(this, Y, S(this, Y) || w), W(this, he, S(this, he) || y), m;
|
|
2076
2079
|
}).join("");
|
|
2077
2080
|
let f = "";
|
|
2078
2081
|
if (this.isStart() && typeof S(this, _)[0] == "string" && (S(this, _).length !== 1 || !Un.has(S(this, _)[0]))) {
|
|
2079
|
-
const
|
|
2080
|
-
f = m ? "(?!(?:^|/)\\.\\.?(?:$|/))" :
|
|
2082
|
+
const d = kn, m = t && d.has(s.charAt(0)) || s.startsWith("\\.") && d.has(s.charAt(2)) || s.startsWith("\\.\\.") && d.has(s.charAt(4)), g = !t && !e && d.has(s.charAt(0));
|
|
2083
|
+
f = m ? "(?!(?:^|/)\\.\\.?(?:$|/))" : g ? tt : "";
|
|
2081
2084
|
}
|
|
2082
2085
|
let c = "";
|
|
2083
2086
|
return this.isEnd() && S(S(this, z), be) && ((h = S(this, G)) == null ? void 0 : h.type) === "!" && (c = "(?:$|\\/)"), [f + s + c, Se(s), W(this, Y, !!S(this, Y)), S(this, he)];
|
|
@@ -2111,40 +2114,40 @@ z = new WeakMap(), Y = new WeakMap(), he = new WeakMap(), _ = new WeakMap(), G =
|
|
|
2111
2114
|
}
|
|
2112
2115
|
return this;
|
|
2113
2116
|
}, ye = new WeakSet(), Be = function(e, t, n, o) {
|
|
2114
|
-
var
|
|
2117
|
+
var d, m;
|
|
2115
2118
|
let u = !1, l = !1, i = -1, h = !1;
|
|
2116
2119
|
if (t.type === null) {
|
|
2117
|
-
let
|
|
2118
|
-
for (;
|
|
2119
|
-
const y = e.charAt(
|
|
2120
|
+
let g = n, w = "";
|
|
2121
|
+
for (; g < e.length; ) {
|
|
2122
|
+
const y = e.charAt(g++);
|
|
2120
2123
|
if (u || y === "\\") u = !u, w += y;
|
|
2121
|
-
else if (l)
|
|
2122
|
-
else if (y !== "[") if (o.noext || !Jt(y) || e.charAt(
|
|
2124
|
+
else if (l) g === i + 1 ? y !== "^" && y !== "!" || (h = !0) : y !== "]" || g === i + 2 && h || (l = !1), w += y;
|
|
2125
|
+
else if (y !== "[") if (o.noext || !Jt(y) || e.charAt(g) !== "(") w += y;
|
|
2123
2126
|
else {
|
|
2124
2127
|
t.push(w), w = "";
|
|
2125
2128
|
const p = new te(y, t);
|
|
2126
|
-
|
|
2129
|
+
g = ge(d = te, ye, Be).call(d, e, p, g, o), t.push(p);
|
|
2127
2130
|
}
|
|
2128
|
-
else l = !0, i =
|
|
2131
|
+
else l = !0, i = g, h = !1, w += y;
|
|
2129
2132
|
}
|
|
2130
|
-
return t.push(w),
|
|
2133
|
+
return t.push(w), g;
|
|
2131
2134
|
}
|
|
2132
2135
|
let a = n + 1, s = new te(null, t);
|
|
2133
2136
|
const f = [];
|
|
2134
2137
|
let c = "";
|
|
2135
2138
|
for (; a < e.length; ) {
|
|
2136
|
-
const
|
|
2137
|
-
if (u ||
|
|
2138
|
-
else if (l) a === i + 1 ?
|
|
2139
|
-
else if (
|
|
2139
|
+
const g = e.charAt(a++);
|
|
2140
|
+
if (u || g === "\\") u = !u, c += g;
|
|
2141
|
+
else if (l) a === i + 1 ? g !== "^" && g !== "!" || (h = !0) : g !== "]" || a === i + 2 && h || (l = !1), c += g;
|
|
2142
|
+
else if (g !== "[") if (Jt(g) && e.charAt(a) === "(") {
|
|
2140
2143
|
s.push(c), c = "";
|
|
2141
|
-
const w = new te(
|
|
2144
|
+
const w = new te(g, s);
|
|
2142
2145
|
s.push(w), a = ge(m = te, ye, Be).call(m, e, w, a, o);
|
|
2143
|
-
} else if (
|
|
2144
|
-
if (
|
|
2145
|
-
c +=
|
|
2146
|
+
} else if (g !== "|") {
|
|
2147
|
+
if (g === ")") return c === "" && S(t, _).length === 0 && W(t, Le, !0), s.push(c), c = "", t.push(...f, s), a;
|
|
2148
|
+
c += g;
|
|
2146
2149
|
} else s.push(c), c = "", f.push(s), s = new te(null, t);
|
|
2147
|
-
else l = !0, i = a, h = !1, c +=
|
|
2150
|
+
else l = !0, i = a, h = !1, c += g;
|
|
2148
2151
|
}
|
|
2149
2152
|
return t.type = null, W(t, Y, void 0), W(t, _, [e.substring(n - 1)]), a;
|
|
2150
2153
|
}, xt = function(e) {
|
|
@@ -2426,7 +2429,7 @@ class Ze {
|
|
|
2426
2429
|
let n = arguments.length > 2 && arguments[2] !== void 0 && arguments[2];
|
|
2427
2430
|
const o = this.options;
|
|
2428
2431
|
if (this.isWindows) {
|
|
2429
|
-
const
|
|
2432
|
+
const g = typeof e[0] == "string" && /^[a-z]:$/i.test(e[0]), w = !g && e[0] === "" && e[1] === "" && e[2] === "?" && /^[a-z]:$/i.test(e[3]), y = typeof t[0] == "string" && /^[a-z]:$/i.test(t[0]), p = w ? 3 : g ? 0 : void 0, v = !y && t[0] === "" && t[1] === "" && t[2] === "?" && typeof t[3] == "string" && /^[a-z]:$/i.test(t[3]) ? 3 : y ? 0 : void 0;
|
|
2430
2433
|
if (typeof p == "number" && typeof v == "number") {
|
|
2431
2434
|
const [A, N] = [e[p], t[v]];
|
|
2432
2435
|
A.toLowerCase() === N.toLowerCase() && (t[v] = A, v > p ? t = t.slice(v) : p > v && (e = e.slice(p)));
|
|
@@ -2440,26 +2443,26 @@ class Ze {
|
|
|
2440
2443
|
if (this.debug(t, s, f), s === !1) return !1;
|
|
2441
2444
|
if (s === ae) {
|
|
2442
2445
|
this.debug("GLOBSTAR", [t, s, f]);
|
|
2443
|
-
var c = l,
|
|
2444
|
-
if (
|
|
2446
|
+
var c = l, d = i + 1;
|
|
2447
|
+
if (d === a) {
|
|
2445
2448
|
for (this.debug("** at the end"); l < h; l++) if (e[l] === "." || e[l] === ".." || !o.dot && e[l].charAt(0) === ".") return !1;
|
|
2446
2449
|
return !0;
|
|
2447
2450
|
}
|
|
2448
2451
|
for (; c < h; ) {
|
|
2449
2452
|
var m = e[c];
|
|
2450
2453
|
if (this.debug(`
|
|
2451
|
-
globstar while`, e, c, t,
|
|
2454
|
+
globstar while`, e, c, t, d, m), this.matchOne(e.slice(c), t.slice(d), n)) return this.debug("globstar found match!", c, h, m), !0;
|
|
2452
2455
|
if (m === "." || m === ".." || !o.dot && m.charAt(0) === ".") {
|
|
2453
|
-
this.debug("dot detected!", e, c, t,
|
|
2456
|
+
this.debug("dot detected!", e, c, t, d);
|
|
2454
2457
|
break;
|
|
2455
2458
|
}
|
|
2456
2459
|
this.debug("globstar swallow a segment, and continue"), c++;
|
|
2457
2460
|
}
|
|
2458
2461
|
return !(!n || (this.debug(`
|
|
2459
|
-
>>> no match, partial?`, e, c, t,
|
|
2462
|
+
>>> no match, partial?`, e, c, t, d), c !== h));
|
|
2460
2463
|
}
|
|
2461
|
-
let
|
|
2462
|
-
if (typeof s == "string" ? (
|
|
2464
|
+
let g;
|
|
2465
|
+
if (typeof s == "string" ? (g = f === s, this.debug("string match", s, f, g)) : (g = s.test(f), this.debug("pattern match", s, f, g)), !g) return !1;
|
|
2463
2466
|
}
|
|
2464
2467
|
if (l === h && i === a) return !0;
|
|
2465
2468
|
if (l === h) return n;
|
|
@@ -2490,8 +2493,8 @@ globstar while`, e, c, t, g, m), this.matchOne(e.slice(c), t.slice(g), n)) retur
|
|
|
2490
2493
|
return typeof s == "string" ? s.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, "\\$&") : s === ae ? ae : s._src;
|
|
2491
2494
|
});
|
|
2492
2495
|
return a.forEach((s, f) => {
|
|
2493
|
-
const c = a[f + 1],
|
|
2494
|
-
s === ae &&
|
|
2496
|
+
const c = a[f + 1], d = a[f - 1];
|
|
2497
|
+
s === ae && d !== ae && (d === void 0 ? c !== void 0 && c !== ae ? a[f + 1] = "(?:\\/|" + n + "\\/)?" + c : a[f] = n : c === void 0 ? a[f - 1] = d + "(?:\\/|" + n + ")?" : c !== ae && (a[f - 1] = d + "(?:\\/|\\/" + n + "\\/)" + c, a[f + 1] = ae));
|
|
2495
2498
|
}), a.filter((s) => s !== ae).join("/");
|
|
2496
2499
|
}).join("|");
|
|
2497
2500
|
const [l, i] = e.length > 1 ? ["(?:", ")"] : ["", ""];
|
|
@@ -2658,10 +2661,10 @@ const is = Mr(function(r, e) {
|
|
|
2658
2661
|
let o = !1;
|
|
2659
2662
|
return function(u, l, i) {
|
|
2660
2663
|
if (typeof u[tr] == "function") {
|
|
2661
|
-
let
|
|
2664
|
+
let g = function(w) {
|
|
2662
2665
|
try {
|
|
2663
2666
|
for (; !(h = f.next()).done; ) if ((w = l(h.value)) && w.then) {
|
|
2664
|
-
if (!rr(w)) return void w.then(
|
|
2667
|
+
if (!rr(w)) return void w.then(g, s || (s = ne.bind(null, a = new Oe(), 2)));
|
|
2665
2668
|
w = w.v;
|
|
2666
2669
|
}
|
|
2667
2670
|
a ? ne(a, 1, w) : a = w;
|
|
@@ -2670,7 +2673,7 @@ const is = Mr(function(r, e) {
|
|
|
2670
2673
|
}
|
|
2671
2674
|
};
|
|
2672
2675
|
var h, a, s, f = u[tr]();
|
|
2673
|
-
if (
|
|
2676
|
+
if (g(), f.return) {
|
|
2674
2677
|
var c = function(w) {
|
|
2675
2678
|
try {
|
|
2676
2679
|
h.done || f.return();
|
|
@@ -2686,12 +2689,12 @@ const is = Mr(function(r, e) {
|
|
|
2686
2689
|
return a;
|
|
2687
2690
|
}
|
|
2688
2691
|
if (!("length" in u)) throw new TypeError("Object is not iterable");
|
|
2689
|
-
for (var
|
|
2690
|
-
return function(
|
|
2692
|
+
for (var d = [], m = 0; m < u.length; m++) d.push(u[m]);
|
|
2693
|
+
return function(g, w, y) {
|
|
2691
2694
|
var p, v, A = -1;
|
|
2692
2695
|
return function N(b) {
|
|
2693
2696
|
try {
|
|
2694
|
-
for (; ++A <
|
|
2697
|
+
for (; ++A < g.length && (!y || !y()); ) if ((b = w(A)) && b.then) {
|
|
2695
2698
|
if (!rr(b)) return void b.then(N, v || (v = ne.bind(null, p = new Oe(), 2)));
|
|
2696
2699
|
b = b.v;
|
|
2697
2700
|
}
|
|
@@ -2700,8 +2703,8 @@ const is = Mr(function(r, e) {
|
|
|
2700
2703
|
ne(p || (p = new Oe()), 2, E);
|
|
2701
2704
|
}
|
|
2702
2705
|
}(), p;
|
|
2703
|
-
}(
|
|
2704
|
-
return l(g
|
|
2706
|
+
}(d, function(g) {
|
|
2707
|
+
return l(d[g]);
|
|
2705
2708
|
}, i);
|
|
2706
2709
|
}(n, function(u) {
|
|
2707
2710
|
return l = function() {
|
|
@@ -2904,8 +2907,8 @@ const ps = /* @__PURE__ */ function(r) {
|
|
|
2904
2907
|
return nt(ke(u), function(l) {
|
|
2905
2908
|
const i = qt(e);
|
|
2906
2909
|
let h = function(a, s, f) {
|
|
2907
|
-
let c = arguments.length > 3 && arguments[3] !== void 0 && arguments[3],
|
|
2908
|
-
const m = qe().join(s, "/"), { multistatus: { response:
|
|
2910
|
+
let c = arguments.length > 3 && arguments[3] !== void 0 && arguments[3], d = arguments.length > 4 && arguments[4] !== void 0 && arguments[4];
|
|
2911
|
+
const m = qe().join(s, "/"), { multistatus: { response: g } } = a, w = g.map((y) => {
|
|
2909
2912
|
const p = function(A) {
|
|
2910
2913
|
try {
|
|
2911
2914
|
return A.replace(/^https?:\/\/[^\/]+/, "");
|
|
@@ -2915,7 +2918,7 @@ const ps = /* @__PURE__ */ function(r) {
|
|
|
2915
2918
|
}(y.href), { propstat: { prop: v } } = y;
|
|
2916
2919
|
return Ye(v, m === "/" ? decodeURIComponent(Re(p)) : Re(qe().relative(decodeURIComponent(m), decodeURIComponent(p))), c);
|
|
2917
2920
|
});
|
|
2918
|
-
return
|
|
2921
|
+
return d ? w : w.filter((y) => y.basename && (y.type === "file" || y.filename !== f.replace(/\/$/, "")));
|
|
2919
2922
|
}(l, qt(r.remoteBasePath || r.remotePath), i, t.details, t.includeSelf);
|
|
2920
2923
|
return t.glob && (h = function(a, s) {
|
|
2921
2924
|
return a.filter((f) => ee(f.filename, s, { matchBase: !0 }));
|
|
@@ -3060,13 +3063,13 @@ const Ps = /* @__PURE__ */ function(r) {
|
|
|
3060
3063
|
return it(ke(l), function(i) {
|
|
3061
3064
|
const h = function(a, s, f) {
|
|
3062
3065
|
const c = { truncated: !1, results: [] };
|
|
3063
|
-
return c.truncated = a.multistatus.response.some((
|
|
3064
|
-
var m,
|
|
3065
|
-
return ((
|
|
3066
|
-
}), a.multistatus.response.forEach((
|
|
3067
|
-
if (
|
|
3068
|
-
const m =
|
|
3069
|
-
c.results.push(Ye(
|
|
3066
|
+
return c.truncated = a.multistatus.response.some((d) => {
|
|
3067
|
+
var m, g;
|
|
3068
|
+
return ((g = (d.status || ((m = d.propstat) == null ? void 0 : m.status)).split(" ", 3)) == null ? void 0 : g[1]) === "507" && d.href.replace(/\/$/, "").endsWith(M(s).replace(/\/$/, ""));
|
|
3069
|
+
}), a.multistatus.response.forEach((d) => {
|
|
3070
|
+
if (d.propstat === void 0) return;
|
|
3071
|
+
const m = d.href.split("/").map(decodeURIComponent).join("/");
|
|
3072
|
+
c.results.push(Ye(d.propstat.prop, m, f));
|
|
3070
3073
|
}), c;
|
|
3071
3074
|
}(i, e, n);
|
|
3072
3075
|
return Ee(u, h, n);
|
|
@@ -3200,10 +3203,10 @@ const Is = $t(function(r, e, t, n, o) {
|
|
|
3200
3203
|
function Fs(r) {
|
|
3201
3204
|
let e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
3202
3205
|
const { authType: t = null, remoteBasePath: n, contactHref: o = Ss, ha1: u, headers: l = {}, httpAgent: i, httpsAgent: h, password: a, token: s, username: f, withCredentials: c } = e;
|
|
3203
|
-
let
|
|
3204
|
-
|
|
3205
|
-
const m = { authType:
|
|
3206
|
-
return Er(m, f, a, s, u), { copyFile: (
|
|
3206
|
+
let d = t;
|
|
3207
|
+
d || (d = f || a ? re.Password : re.None);
|
|
3208
|
+
const m = { authType: d, remoteBasePath: n, contactHref: o, ha1: u, headers: Object.assign({}, l), httpAgent: i, httpsAgent: h, password: a, remotePath: vn(r), remoteURL: r, token: s, username: f, withCredentials: c };
|
|
3209
|
+
return Er(m, f, a, s, u), { copyFile: (g, w, y) => ns(m, g, w, y), createDirectory: (g, w) => Pt(m, g, w), createReadStream: (g, w) => function(y, p) {
|
|
3207
3210
|
let v = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
|
|
3208
3211
|
const A = new (nr()).PassThrough();
|
|
3209
3212
|
return us(y, p, v).then((N) => {
|
|
@@ -3211,7 +3214,7 @@ function Fs(r) {
|
|
|
3211
3214
|
}).catch((N) => {
|
|
3212
3215
|
A.emit("error", N);
|
|
3213
3216
|
}), A;
|
|
3214
|
-
}(m,
|
|
3217
|
+
}(m, g, w), createWriteStream: (g, w, y) => function(p, v) {
|
|
3215
3218
|
let A = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, N = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : ls;
|
|
3216
3219
|
const b = new (nr()).PassThrough(), E = {};
|
|
3217
3220
|
A.overwrite === !1 && (E["If-None-Match"] = "*");
|
|
@@ -3223,7 +3226,7 @@ function Fs(r) {
|
|
|
3223
3226
|
}).catch((T) => {
|
|
3224
3227
|
b.emit("error", T);
|
|
3225
3228
|
}), b;
|
|
3226
|
-
}(m,
|
|
3229
|
+
}(m, g, w, y), customRequest: (g, w) => cs(m, g, w), deleteFile: (g, w) => hs(m, g, w), exists: (g, w) => fs(m, g, w), getDirectoryContents: (g, w) => ps(m, g, w), getFileContents: (g, w) => ms(m, g, w), getFileDownloadLink: (g) => function(w, y) {
|
|
3227
3230
|
let p = V(w.remoteURL, M(y));
|
|
3228
3231
|
const v = /^https:/i.test(p) ? "https" : "http";
|
|
3229
3232
|
switch (w.authType) {
|
|
@@ -3238,7 +3241,7 @@ function Fs(r) {
|
|
|
3238
3241
|
throw new se({ info: { code: pe.LinkUnsupportedAuthType } }, `Unsupported auth type for file link: ${w.authType}`);
|
|
3239
3242
|
}
|
|
3240
3243
|
return p;
|
|
3241
|
-
}(m,
|
|
3244
|
+
}(m, g), getFileUploadLink: (g) => function(w, y) {
|
|
3242
3245
|
let p = `${V(w.remoteURL, M(y))}?Content-Type=application/octet-stream`;
|
|
3243
3246
|
const v = /^https:/i.test(p) ? "https" : "http";
|
|
3244
3247
|
switch (w.authType) {
|
|
@@ -3253,9 +3256,9 @@ function Fs(r) {
|
|
|
3253
3256
|
throw new se({ info: { code: pe.LinkUnsupportedAuthType } }, `Unsupported auth type for file link: ${w.authType}`);
|
|
3254
3257
|
}
|
|
3255
3258
|
return p;
|
|
3256
|
-
}(m,
|
|
3257
|
-
m.headers = Object.assign({},
|
|
3258
|
-
}, stat: (
|
|
3259
|
+
}(m, g), getHeaders: () => Object.assign({}, m.headers), getQuota: (g) => xs(m, g), lock: (g, w) => ws(m, g, w), moveFile: (g, w, y) => Es(m, g, w, y), putFileContents: (g, w, y) => Ts(m, g, w, y), partialUpdateFileContents: (g, w, y, p, v) => Is(m, g, w, y, p, v), getDAVCompliance: (g) => qr(m, g), search: (g, w) => Ps(m, g, w), setHeaders: (g) => {
|
|
3260
|
+
m.headers = Object.assign({}, g);
|
|
3261
|
+
}, stat: (g, w) => Ft(m, g, w), unlock: (g, w, y) => vs(m, g, w, y) };
|
|
3259
3262
|
}
|
|
3260
3263
|
ue.hT;
|
|
3261
3264
|
ue.O4;
|
|
@@ -3304,8 +3307,8 @@ function Rt() {
|
|
|
3304
3307
|
const f = [];
|
|
3305
3308
|
f.startIndex = h.lastIndex - s[0].length;
|
|
3306
3309
|
const c = s.length;
|
|
3307
|
-
for (let
|
|
3308
|
-
f.push(s[
|
|
3310
|
+
for (let d = 0; d < c; d++)
|
|
3311
|
+
f.push(s[d]);
|
|
3309
3312
|
a.push(f), s = h.exec(i);
|
|
3310
3313
|
}
|
|
3311
3314
|
return a;
|
|
@@ -3359,11 +3362,11 @@ function Wr() {
|
|
|
3359
3362
|
T += y[b];
|
|
3360
3363
|
if (T = T.trim(), T[T.length - 1] === "/" && (T = T.substring(0, T.length - 1), b--), !m(T)) {
|
|
3361
3364
|
let C;
|
|
3362
|
-
return T.trim().length === 0 ? C = "Invalid space after '<'." : C = "Tag '" + T + "' is an invalid name.", c("InvalidTag", C,
|
|
3365
|
+
return T.trim().length === 0 ? C = "Invalid space after '<'." : C = "Tag '" + T + "' is an invalid name.", c("InvalidTag", C, g(y, b));
|
|
3363
3366
|
}
|
|
3364
3367
|
const O = i(y, b);
|
|
3365
3368
|
if (O === !1)
|
|
3366
|
-
return c("InvalidAttr", "Attributes for '" + T + "' have open quote.",
|
|
3369
|
+
return c("InvalidAttr", "Attributes for '" + T + "' have open quote.", g(y, b));
|
|
3367
3370
|
let I = O.value;
|
|
3368
3371
|
if (b = O.index, I[I.length - 1] === "/") {
|
|
3369
3372
|
const C = b - I.length;
|
|
@@ -3372,32 +3375,32 @@ function Wr() {
|
|
|
3372
3375
|
if (P === !0)
|
|
3373
3376
|
A = !0;
|
|
3374
3377
|
else
|
|
3375
|
-
return c(P.err.code, P.err.msg,
|
|
3378
|
+
return c(P.err.code, P.err.msg, g(y, C + P.err.line));
|
|
3376
3379
|
} else if (x)
|
|
3377
3380
|
if (O.tagClosed) {
|
|
3378
3381
|
if (I.trim().length > 0)
|
|
3379
|
-
return c("InvalidTag", "Closing tag '" + T + "' can't have attributes or invalid starting.",
|
|
3382
|
+
return c("InvalidTag", "Closing tag '" + T + "' can't have attributes or invalid starting.", g(y, E));
|
|
3380
3383
|
if (v.length === 0)
|
|
3381
|
-
return c("InvalidTag", "Closing tag '" + T + "' has not been opened.",
|
|
3384
|
+
return c("InvalidTag", "Closing tag '" + T + "' has not been opened.", g(y, E));
|
|
3382
3385
|
{
|
|
3383
3386
|
const C = v.pop();
|
|
3384
3387
|
if (T !== C.tagName) {
|
|
3385
|
-
let P =
|
|
3388
|
+
let P = g(y, C.tagStartPos);
|
|
3386
3389
|
return c(
|
|
3387
3390
|
"InvalidTag",
|
|
3388
3391
|
"Expected closing tag '" + C.tagName + "' (opened in line " + P.line + ", col " + P.col + ") instead of closing tag '" + T + "'.",
|
|
3389
|
-
|
|
3392
|
+
g(y, E)
|
|
3390
3393
|
);
|
|
3391
3394
|
}
|
|
3392
3395
|
v.length == 0 && (N = !0);
|
|
3393
3396
|
}
|
|
3394
|
-
} else return c("InvalidTag", "Closing tag '" + T + "' doesn't have proper closing.",
|
|
3397
|
+
} else return c("InvalidTag", "Closing tag '" + T + "' doesn't have proper closing.", g(y, b));
|
|
3395
3398
|
else {
|
|
3396
3399
|
const C = a(I, p);
|
|
3397
3400
|
if (C !== !0)
|
|
3398
|
-
return c(C.err.code, C.err.msg,
|
|
3401
|
+
return c(C.err.code, C.err.msg, g(y, b - I.length + C.err.line));
|
|
3399
3402
|
if (N === !0)
|
|
3400
|
-
return c("InvalidXml", "Multiple possible root nodes found.",
|
|
3403
|
+
return c("InvalidXml", "Multiple possible root nodes found.", g(y, b));
|
|
3401
3404
|
p.unpairedTags.indexOf(T) !== -1 || v.push({ tagName: T, tagStartPos: E }), A = !0;
|
|
3402
3405
|
}
|
|
3403
3406
|
for (b++; b < y.length; b++)
|
|
@@ -3412,20 +3415,20 @@ function Wr() {
|
|
|
3412
3415
|
else if (y[b] === "&") {
|
|
3413
3416
|
const C = f(y, b);
|
|
3414
3417
|
if (C == -1)
|
|
3415
|
-
return c("InvalidChar", "char '&' is not expected.",
|
|
3418
|
+
return c("InvalidChar", "char '&' is not expected.", g(y, b));
|
|
3416
3419
|
b = C;
|
|
3417
3420
|
} else if (N === !0 && !t(y[b]))
|
|
3418
|
-
return c("InvalidXml", "Extra text at the end",
|
|
3421
|
+
return c("InvalidXml", "Extra text at the end", g(y, b));
|
|
3419
3422
|
y[b] === "<" && b--;
|
|
3420
3423
|
}
|
|
3421
3424
|
} else {
|
|
3422
3425
|
if (t(y[b]))
|
|
3423
3426
|
continue;
|
|
3424
|
-
return c("InvalidChar", "char '" + y[b] + "' is not expected.",
|
|
3427
|
+
return c("InvalidChar", "char '" + y[b] + "' is not expected.", g(y, b));
|
|
3425
3428
|
}
|
|
3426
3429
|
if (A) {
|
|
3427
3430
|
if (v.length == 1)
|
|
3428
|
-
return c("InvalidTag", "Unclosed tag '" + v[0].tagName + "'.",
|
|
3431
|
+
return c("InvalidTag", "Unclosed tag '" + v[0].tagName + "'.", g(y, v[0].tagStartPos));
|
|
3429
3432
|
if (v.length > 0)
|
|
3430
3433
|
return c("InvalidXml", "Invalid '" + JSON.stringify(v.map((b) => b.tagName), null, 4).replace(/\r?\n/g, "") + "' found.", { line: 1, col: 1 });
|
|
3431
3434
|
} else return c("InvalidXml", "Start tag expected.", 1);
|
|
@@ -3441,7 +3444,7 @@ function Wr() {
|
|
|
3441
3444
|
if (y[p] == "?" || y[p] == " ") {
|
|
3442
3445
|
const A = y.substr(v, p - v);
|
|
3443
3446
|
if (p > 5 && A === "xml")
|
|
3444
|
-
return c("InvalidXml", "XML declaration allowed only at the start of the document.",
|
|
3447
|
+
return c("InvalidXml", "XML declaration allowed only at the start of the document.", g(y, p));
|
|
3445
3448
|
if (y[p] == "?" && y[p + 1] == ">") {
|
|
3446
3449
|
p++;
|
|
3447
3450
|
break;
|
|
@@ -3502,7 +3505,7 @@ function Wr() {
|
|
|
3502
3505
|
if (v[N][3] === void 0 && !p.allowBooleanAttributes)
|
|
3503
3506
|
return c("InvalidAttr", "boolean attribute '" + v[N][2] + "' is not allowed.", w(v[N]));
|
|
3504
3507
|
const b = v[N][2];
|
|
3505
|
-
if (!
|
|
3508
|
+
if (!d(b))
|
|
3506
3509
|
return c("InvalidAttr", "Attribute '" + b + "' is an invalid name.", w(v[N]));
|
|
3507
3510
|
if (!A.hasOwnProperty(b))
|
|
3508
3511
|
A[b] = 1;
|
|
@@ -3545,13 +3548,13 @@ function Wr() {
|
|
|
3545
3548
|
}
|
|
3546
3549
|
};
|
|
3547
3550
|
}
|
|
3548
|
-
function
|
|
3551
|
+
function d(y) {
|
|
3549
3552
|
return r.isName(y);
|
|
3550
3553
|
}
|
|
3551
3554
|
function m(y) {
|
|
3552
3555
|
return r.isName(y);
|
|
3553
3556
|
}
|
|
3554
|
-
function
|
|
3557
|
+
function g(y, p) {
|
|
3555
3558
|
const v = y.substring(0, p).split(/\r?\n/);
|
|
3556
3559
|
return {
|
|
3557
3560
|
line: v.length,
|
|
@@ -3642,26 +3645,26 @@ function qs() {
|
|
|
3642
3645
|
const f = {};
|
|
3643
3646
|
if (a[s + 3] === "O" && a[s + 4] === "C" && a[s + 5] === "T" && a[s + 6] === "Y" && a[s + 7] === "P" && a[s + 8] === "E") {
|
|
3644
3647
|
s = s + 9;
|
|
3645
|
-
let c = 1,
|
|
3648
|
+
let c = 1, d = !1, m = !1, g = "";
|
|
3646
3649
|
for (; s < a.length; s++)
|
|
3647
3650
|
if (a[s] === "<" && !m) {
|
|
3648
|
-
if (
|
|
3651
|
+
if (d && o(a, s)) {
|
|
3649
3652
|
s += 7;
|
|
3650
3653
|
let w, y;
|
|
3651
3654
|
[w, y, s] = t(a, s + 1), y.indexOf("&") === -1 && (f[h(w)] = {
|
|
3652
3655
|
regx: RegExp(`&${w};`, "g"),
|
|
3653
3656
|
val: y
|
|
3654
3657
|
});
|
|
3655
|
-
} else if (
|
|
3656
|
-
else if (
|
|
3657
|
-
else if (
|
|
3658
|
+
} else if (d && u(a, s)) s += 8;
|
|
3659
|
+
else if (d && l(a, s)) s += 8;
|
|
3660
|
+
else if (d && i(a, s)) s += 9;
|
|
3658
3661
|
else if (n) m = !0;
|
|
3659
3662
|
else throw new Error("Invalid DOCTYPE");
|
|
3660
|
-
c++,
|
|
3663
|
+
c++, g = "";
|
|
3661
3664
|
} else if (a[s] === ">") {
|
|
3662
3665
|
if (m ? a[s - 1] === "-" && a[s - 2] === "-" && (m = !1, c--) : c--, c === 0)
|
|
3663
3666
|
break;
|
|
3664
|
-
} else a[s] === "[" ?
|
|
3667
|
+
} else a[s] === "[" ? d = !0 : g += a[s];
|
|
3665
3668
|
if (c !== 0)
|
|
3666
3669
|
throw new Error("Unclosed DOCTYPE");
|
|
3667
3670
|
} else
|
|
@@ -3674,10 +3677,10 @@ function qs() {
|
|
|
3674
3677
|
f += a[s];
|
|
3675
3678
|
if (f = f.trim(), f.indexOf(" ") !== -1) throw new Error("External entites are not supported");
|
|
3676
3679
|
const c = a[s++];
|
|
3677
|
-
let
|
|
3680
|
+
let d = "";
|
|
3678
3681
|
for (; s < a.length && a[s] !== c; s++)
|
|
3679
|
-
|
|
3680
|
-
return [f,
|
|
3682
|
+
d += a[s];
|
|
3683
|
+
return [f, d, s];
|
|
3681
3684
|
}
|
|
3682
3685
|
function n(a, s) {
|
|
3683
3686
|
return a[s + 1] === "!" && a[s + 2] === "-" && a[s + 3] === "-";
|
|
@@ -3738,8 +3741,8 @@ function Ws() {
|
|
|
3738
3741
|
if (!i.leadingZeros && f.length > 0 && !s && h[1] !== ".") return l;
|
|
3739
3742
|
if (i.leadingZeros && f === l) return 0;
|
|
3740
3743
|
{
|
|
3741
|
-
const
|
|
3742
|
-
return m.search(/[eE]/) !== -1 ? i.eNotation ?
|
|
3744
|
+
const d = Number(h), m = "" + d;
|
|
3745
|
+
return m.search(/[eE]/) !== -1 ? i.eNotation ? d : l : h.indexOf(".") !== -1 ? m === "0" && c === "" || m === c || s && m === "-" + c ? d : l : f ? c === m || s + c === m ? d : l : h === m || h === s + m ? d : l;
|
|
3743
3746
|
}
|
|
3744
3747
|
} else
|
|
3745
3748
|
return l;
|
|
@@ -3797,7 +3800,7 @@ function Xs() {
|
|
|
3797
3800
|
inr: { regex: /&(inr|#8377);/g, val: "₹" },
|
|
3798
3801
|
num_dec: { regex: /&#([0-9]{1,7});/g, val: (E, x) => String.fromCharCode(Number.parseInt(x, 10)) },
|
|
3799
3802
|
num_hex: { regex: /&#x([0-9a-fA-F]{1,6});/g, val: (E, x) => String.fromCharCode(Number.parseInt(x, 16)) }
|
|
3800
|
-
}, this.addExternalEntities = l, this.parseXml = f, this.parseTextData = i, this.resolveNameSpace = h, this.buildAttributesMap = s, this.isItStopNode =
|
|
3803
|
+
}, this.addExternalEntities = l, this.parseXml = f, this.parseTextData = i, this.resolveNameSpace = h, this.buildAttributesMap = s, this.isItStopNode = g, this.replaceEntitiesValue = d, this.readStopNodeData = v, this.saveTextToParentTag = m, this.addChild = c, this.ignoreAttributesFn = o(this.options.ignoreAttributes);
|
|
3801
3804
|
}
|
|
3802
3805
|
}
|
|
3803
3806
|
function l(N) {
|
|
@@ -3937,7 +3940,7 @@ function Xs() {
|
|
|
3937
3940
|
const x = this.options.updateTag(b.tagname, E, b[":@"]);
|
|
3938
3941
|
x === !1 || (typeof x == "string" && (b.tagname = x), N.addChild(b));
|
|
3939
3942
|
}
|
|
3940
|
-
const
|
|
3943
|
+
const d = function(N) {
|
|
3941
3944
|
if (this.options.processEntities) {
|
|
3942
3945
|
for (let b in this.docTypeEntities) {
|
|
3943
3946
|
const E = this.docTypeEntities[b];
|
|
@@ -3966,7 +3969,7 @@ function Xs() {
|
|
|
3966
3969
|
x
|
|
3967
3970
|
), N !== void 0 && N !== "" && b.add(this.options.textNodeName, N), N = ""), N;
|
|
3968
3971
|
}
|
|
3969
|
-
function
|
|
3972
|
+
function g(N, b, E) {
|
|
3970
3973
|
const x = "*." + E;
|
|
3971
3974
|
for (const T in N) {
|
|
3972
3975
|
const O = N[T];
|
|
@@ -4069,16 +4072,16 @@ function Gs() {
|
|
|
4069
4072
|
const a = {};
|
|
4070
4073
|
for (let s = 0; s < u.length; s++) {
|
|
4071
4074
|
const f = u[s], c = t(f);
|
|
4072
|
-
let
|
|
4073
|
-
if (i === void 0 ?
|
|
4075
|
+
let d = "";
|
|
4076
|
+
if (i === void 0 ? d = c : d = i + "." + c, c === l.textNodeName)
|
|
4074
4077
|
h === void 0 ? h = f[c] : h += "" + f[c];
|
|
4075
4078
|
else {
|
|
4076
4079
|
if (c === void 0)
|
|
4077
4080
|
continue;
|
|
4078
4081
|
if (f[c]) {
|
|
4079
|
-
let m = e(f[c], l,
|
|
4080
|
-
const
|
|
4081
|
-
f[":@"] ? n(m, f[":@"],
|
|
4082
|
+
let m = e(f[c], l, d);
|
|
4083
|
+
const g = o(m, l);
|
|
4084
|
+
f[":@"] ? n(m, f[":@"], d, l) : Object.keys(m).length === 1 && m[l.textNodeName] !== void 0 && !l.alwaysCreateTextNode ? m = m[l.textNodeName] : Object.keys(m).length === 0 && (l.alwaysCreateTextNode ? m[l.textNodeName] = "" : m = ""), a[c] !== void 0 && a.hasOwnProperty(c) ? (Array.isArray(a[c]) || (a[c] = [a[c]]), a[c].push(m)) : l.isArray(c, d, g) ? a[c] = [m] : a[c] = m;
|
|
4082
4085
|
}
|
|
4083
4086
|
}
|
|
4084
4087
|
}
|
|
@@ -4165,30 +4168,30 @@ function Hs() {
|
|
|
4165
4168
|
}
|
|
4166
4169
|
function t(i, h, a, s) {
|
|
4167
4170
|
let f = "", c = !1;
|
|
4168
|
-
for (let
|
|
4169
|
-
const m = i[
|
|
4170
|
-
if (
|
|
4171
|
+
for (let d = 0; d < i.length; d++) {
|
|
4172
|
+
const m = i[d], g = n(m);
|
|
4173
|
+
if (g === void 0) continue;
|
|
4171
4174
|
let w = "";
|
|
4172
|
-
if (a.length === 0 ? w =
|
|
4173
|
-
let N = m[
|
|
4174
|
-
u(w, h) || (N = h.tagValueProcessor(
|
|
4175
|
+
if (a.length === 0 ? w = g : w = `${a}.${g}`, g === h.textNodeName) {
|
|
4176
|
+
let N = m[g];
|
|
4177
|
+
u(w, h) || (N = h.tagValueProcessor(g, N), N = l(N, h)), c && (f += s), f += N, c = !1;
|
|
4175
4178
|
continue;
|
|
4176
|
-
} else if (
|
|
4177
|
-
c && (f += s), f += `<![CDATA[${m[
|
|
4179
|
+
} else if (g === h.cdataPropName) {
|
|
4180
|
+
c && (f += s), f += `<![CDATA[${m[g][0][h.textNodeName]}]]>`, c = !1;
|
|
4178
4181
|
continue;
|
|
4179
|
-
} else if (
|
|
4180
|
-
f += s + `<!--${m[
|
|
4182
|
+
} else if (g === h.commentPropName) {
|
|
4183
|
+
f += s + `<!--${m[g][0][h.textNodeName]}-->`, c = !0;
|
|
4181
4184
|
continue;
|
|
4182
|
-
} else if (
|
|
4183
|
-
const N = o(m[":@"], h), b =
|
|
4184
|
-
let E = m[
|
|
4185
|
-
E = E.length !== 0 ? " " + E : "", f += b + `<${
|
|
4185
|
+
} else if (g[0] === "?") {
|
|
4186
|
+
const N = o(m[":@"], h), b = g === "?xml" ? "" : s;
|
|
4187
|
+
let E = m[g][0][h.textNodeName];
|
|
4188
|
+
E = E.length !== 0 ? " " + E : "", f += b + `<${g}${E}${N}?>`, c = !0;
|
|
4186
4189
|
continue;
|
|
4187
4190
|
}
|
|
4188
4191
|
let y = s;
|
|
4189
4192
|
y !== "" && (y += h.indentBy);
|
|
4190
|
-
const p = o(m[":@"], h), v = s + `<${
|
|
4191
|
-
h.unpairedTags.indexOf(
|
|
4193
|
+
const p = o(m[":@"], h), v = s + `<${g}${p}`, A = t(m[g], h, w, y);
|
|
4194
|
+
h.unpairedTags.indexOf(g) !== -1 ? h.suppressUnpairedNode ? f += v + ">" : f += v + "/>" : (!A || A.length === 0) && h.suppressEmptyNode ? f += v + "/>" : A && A.endsWith(">") ? f += v + `>${A}${s}</${g}>` : (f += v + ">", A && s !== "" && (A.includes("/>") || A.includes("</")) ? f += s + h.indentBy + A + s : f += A, f += `</${g}>`), c = !0;
|
|
4192
4195
|
}
|
|
4193
4196
|
return f;
|
|
4194
4197
|
}
|
|
@@ -4281,50 +4284,50 @@ function Zs() {
|
|
|
4281
4284
|
}, n.prototype.j2x = function(i, h, a) {
|
|
4282
4285
|
let s = "", f = "";
|
|
4283
4286
|
const c = a.join(".");
|
|
4284
|
-
for (let
|
|
4285
|
-
if (Object.prototype.hasOwnProperty.call(i,
|
|
4286
|
-
if (typeof i[
|
|
4287
|
-
this.isAttribute(
|
|
4288
|
-
else if (i[
|
|
4289
|
-
this.isAttribute(
|
|
4290
|
-
else if (i[
|
|
4291
|
-
f += this.buildTextValNode(i[
|
|
4292
|
-
else if (typeof i[
|
|
4293
|
-
const m = this.isAttribute(
|
|
4287
|
+
for (let d in i)
|
|
4288
|
+
if (Object.prototype.hasOwnProperty.call(i, d))
|
|
4289
|
+
if (typeof i[d] > "u")
|
|
4290
|
+
this.isAttribute(d) && (f += "");
|
|
4291
|
+
else if (i[d] === null)
|
|
4292
|
+
this.isAttribute(d) || d === this.options.cdataPropName ? f += "" : d[0] === "?" ? f += this.indentate(h) + "<" + d + "?" + this.tagEndChar : f += this.indentate(h) + "<" + d + "/" + this.tagEndChar;
|
|
4293
|
+
else if (i[d] instanceof Date)
|
|
4294
|
+
f += this.buildTextValNode(i[d], d, "", h);
|
|
4295
|
+
else if (typeof i[d] != "object") {
|
|
4296
|
+
const m = this.isAttribute(d);
|
|
4294
4297
|
if (m && !this.ignoreAttributesFn(m, c))
|
|
4295
|
-
s += this.buildAttrPairStr(m, "" + i[
|
|
4298
|
+
s += this.buildAttrPairStr(m, "" + i[d]);
|
|
4296
4299
|
else if (!m)
|
|
4297
|
-
if (
|
|
4298
|
-
let
|
|
4299
|
-
f += this.replaceEntitiesValue(
|
|
4300
|
+
if (d === this.options.textNodeName) {
|
|
4301
|
+
let g = this.options.tagValueProcessor(d, "" + i[d]);
|
|
4302
|
+
f += this.replaceEntitiesValue(g);
|
|
4300
4303
|
} else
|
|
4301
|
-
f += this.buildTextValNode(i[
|
|
4302
|
-
} else if (Array.isArray(i[
|
|
4303
|
-
const m = i[
|
|
4304
|
-
let
|
|
4304
|
+
f += this.buildTextValNode(i[d], d, "", h);
|
|
4305
|
+
} else if (Array.isArray(i[d])) {
|
|
4306
|
+
const m = i[d].length;
|
|
4307
|
+
let g = "", w = "";
|
|
4305
4308
|
for (let y = 0; y < m; y++) {
|
|
4306
|
-
const p = i[
|
|
4309
|
+
const p = i[d][y];
|
|
4307
4310
|
if (!(typeof p > "u")) if (p === null)
|
|
4308
|
-
|
|
4311
|
+
d[0] === "?" ? f += this.indentate(h) + "<" + d + "?" + this.tagEndChar : f += this.indentate(h) + "<" + d + "/" + this.tagEndChar;
|
|
4309
4312
|
else if (typeof p == "object")
|
|
4310
4313
|
if (this.options.oneListGroup) {
|
|
4311
|
-
const v = this.j2x(p, h + 1, a.concat(
|
|
4312
|
-
|
|
4314
|
+
const v = this.j2x(p, h + 1, a.concat(d));
|
|
4315
|
+
g += v.val, this.options.attributesGroupName && p.hasOwnProperty(this.options.attributesGroupName) && (w += v.attrStr);
|
|
4313
4316
|
} else
|
|
4314
|
-
|
|
4317
|
+
g += this.processTextOrObjNode(p, d, h, a);
|
|
4315
4318
|
else if (this.options.oneListGroup) {
|
|
4316
|
-
let v = this.options.tagValueProcessor(
|
|
4317
|
-
v = this.replaceEntitiesValue(v),
|
|
4319
|
+
let v = this.options.tagValueProcessor(d, p);
|
|
4320
|
+
v = this.replaceEntitiesValue(v), g += v;
|
|
4318
4321
|
} else
|
|
4319
|
-
|
|
4322
|
+
g += this.buildTextValNode(p, d, "", h);
|
|
4320
4323
|
}
|
|
4321
|
-
this.options.oneListGroup && (
|
|
4322
|
-
} else if (this.options.attributesGroupName &&
|
|
4323
|
-
const m = Object.keys(i[
|
|
4324
|
-
for (let w = 0; w <
|
|
4325
|
-
s += this.buildAttrPairStr(m[w], "" + i[
|
|
4324
|
+
this.options.oneListGroup && (g = this.buildObjectNode(g, d, w, h)), f += g;
|
|
4325
|
+
} else if (this.options.attributesGroupName && d === this.options.attributesGroupName) {
|
|
4326
|
+
const m = Object.keys(i[d]), g = m.length;
|
|
4327
|
+
for (let w = 0; w < g; w++)
|
|
4328
|
+
s += this.buildAttrPairStr(m[w], "" + i[d][m[w]]);
|
|
4326
4329
|
} else
|
|
4327
|
-
f += this.processTextOrObjNode(i[
|
|
4330
|
+
f += this.processTextOrObjNode(i[d], d, h, a);
|
|
4328
4331
|
return { attrStr: s, val: f };
|
|
4329
4332
|
}, n.prototype.buildAttrPairStr = function(i, h) {
|
|
4330
4333
|
return h = this.options.attributeValueProcessor(i, "" + h), h = this.replaceEntitiesValue(h), this.options.suppressBooleanAttributes && h === "true" ? " " + i : " " + i + '="' + h + '"';
|
|
@@ -4619,7 +4622,7 @@ const ti = (r, e) => ({
|
|
|
4619
4622
|
e && t.interceptors.request.use((P) => (Object.assign(P.headers, e()), P));
|
|
4620
4623
|
const n = { axiosClient: t, baseUrl: r }, o = new ei({ baseUrl: r, headers: e }), u = (P) => {
|
|
4621
4624
|
o.extraProps.push(P);
|
|
4622
|
-
}, l = gn(o), { getPathForFileId: i } = l, h = on(o, l), { listFiles: a } = h, s = rn(h), { getFileInfo: f } = s, { createFolder: c } = en(o, s),
|
|
4625
|
+
}, l = gn(o), { getPathForFileId: i } = l, h = on(o, l), { listFiles: a } = h, s = rn(h), { getFileInfo: f } = s, { createFolder: c } = en(o, s), d = tn(o, n), { getFileContents: m } = d, { putFileContents: g } = un(o, s), { getFileUrl: w, revokeUrl: y } = nn(o, d, n), { getPublicFileUrl: p } = sn(o), { copyFiles: v } = Dr(o), { moveFiles: A } = an(o), { deleteFile: N } = ln(o), { restoreFile: b } = cn(o), { listFileVersions: E } = ti(o), { restoreFileVersion: x } = hn(o), { clearTrashBin: T } = fn(o), { search: O } = pn(o), { listFavoriteFiles: I } = ni(o), { setFavorite: C } = ri(o);
|
|
4623
4626
|
return {
|
|
4624
4627
|
copyFiles: v,
|
|
4625
4628
|
createFolder: c,
|
|
@@ -4634,7 +4637,7 @@ const ti = (r, e) => ({
|
|
|
4634
4637
|
listFiles: a,
|
|
4635
4638
|
listFileVersions: E,
|
|
4636
4639
|
moveFiles: A,
|
|
4637
|
-
putFileContents:
|
|
4640
|
+
putFileContents: g,
|
|
4638
4641
|
revokeUrl: y,
|
|
4639
4642
|
clearTrashBin: T,
|
|
4640
4643
|
search: O,
|