@opencloud-eu/web-client 6.1.0 → 7.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/{axios-Drchb9eh.js → axios-DAxu7d04.js} +359 -316
- package/dist/{dist-tjee3PVd.js → dist-CSYfvE5O.js} +7 -7
- package/dist/{generated-B6vcMOfs.js → generated-DpuGzXYs.js} +1 -1
- package/dist/{graph-DcYhPBws.js → graph-DDFvgcOx.js} +3 -3
- package/dist/{helpers-B0hzJ78Q.js → helpers-BuCcZhiF.js} +313 -313
- package/dist/ocs-BX4C1k3k.js +2916 -0
- package/dist/{toString-tGn_k7yU.js → toString-9BJo4tor.js} +42 -42
- package/dist/web-client/graph/generated.js +1 -1
- package/dist/web-client/graph.js +1 -1
- package/dist/web-client/ocs.js +1 -1
- package/dist/web-client/webdav.js +2 -2
- package/dist/web-client.js +5 -5
- package/dist/{webdav-CcBUJk4K.js → webdav-BS8H6On8.js} +202 -200
- package/package.json +2 -2
- package/dist/ocs-2K0ogAXF.js +0 -1658
|
@@ -0,0 +1,2916 @@
|
|
|
1
|
+
import { t as e } from "./dist-CSYfvE5O.js";
|
|
2
|
+
import { a as t, n, s as r, t as i, u as a } from "./toString-9BJo4tor.js";
|
|
3
|
+
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_isKey.js
|
|
4
|
+
var o = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, s = /^\w*$/;
|
|
5
|
+
function c(e, n) {
|
|
6
|
+
if (t(e)) return !1;
|
|
7
|
+
var i = typeof e;
|
|
8
|
+
return i == "number" || i == "symbol" || i == "boolean" || e == null || r(e) ? !0 : s.test(e) || !o.test(e) || n != null && e in Object(n);
|
|
9
|
+
}
|
|
10
|
+
//#endregion
|
|
11
|
+
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/memoize.js
|
|
12
|
+
var l = "Expected a function";
|
|
13
|
+
function u(e, t) {
|
|
14
|
+
if (typeof e != "function" || t != null && typeof t != "function") throw TypeError(l);
|
|
15
|
+
var r = function() {
|
|
16
|
+
var n = arguments, i = t ? t.apply(this, n) : n[0], a = r.cache;
|
|
17
|
+
if (a.has(i)) return a.get(i);
|
|
18
|
+
var o = e.apply(this, n);
|
|
19
|
+
return r.cache = a.set(i, o) || a, o;
|
|
20
|
+
};
|
|
21
|
+
return r.cache = new (u.Cache || n)(), r;
|
|
22
|
+
}
|
|
23
|
+
u.Cache = n;
|
|
24
|
+
//#endregion
|
|
25
|
+
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_memoizeCapped.js
|
|
26
|
+
var d = 500;
|
|
27
|
+
function f(e) {
|
|
28
|
+
var t = u(e, function(e) {
|
|
29
|
+
return n.size === d && n.clear(), e;
|
|
30
|
+
}), n = t.cache;
|
|
31
|
+
return t;
|
|
32
|
+
}
|
|
33
|
+
//#endregion
|
|
34
|
+
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_stringToPath.js
|
|
35
|
+
var p = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g, m = /\\(\\)?/g, h = f(function(e) {
|
|
36
|
+
var t = [];
|
|
37
|
+
return e.charCodeAt(0) === 46 && t.push(""), e.replace(p, function(e, n, r, i) {
|
|
38
|
+
t.push(r ? i.replace(m, "$1") : n || e);
|
|
39
|
+
}), t;
|
|
40
|
+
});
|
|
41
|
+
//#endregion
|
|
42
|
+
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_castPath.js
|
|
43
|
+
function g(e, n) {
|
|
44
|
+
return t(e) ? e : c(e, n) ? [e] : h(i(e));
|
|
45
|
+
}
|
|
46
|
+
//#endregion
|
|
47
|
+
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_toKey.js
|
|
48
|
+
var _ = Infinity;
|
|
49
|
+
function ee(e) {
|
|
50
|
+
if (typeof e == "string" || r(e)) return e;
|
|
51
|
+
var t = e + "";
|
|
52
|
+
return t == "0" && 1 / e == -_ ? "-0" : t;
|
|
53
|
+
}
|
|
54
|
+
//#endregion
|
|
55
|
+
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseGet.js
|
|
56
|
+
function te(e, t) {
|
|
57
|
+
t = g(t, e);
|
|
58
|
+
for (var n = 0, r = t.length; e != null && n < r;) e = e[ee(t[n++])];
|
|
59
|
+
return n && n == r ? e : void 0;
|
|
60
|
+
}
|
|
61
|
+
//#endregion
|
|
62
|
+
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/get.js
|
|
63
|
+
function ne(e, t, n) {
|
|
64
|
+
var r = e == null ? void 0 : te(e, t);
|
|
65
|
+
return r === void 0 ? n : r;
|
|
66
|
+
}
|
|
67
|
+
//#endregion
|
|
68
|
+
//#region src/ocs/capabilities.ts
|
|
69
|
+
var v = (e, t) => {
|
|
70
|
+
let n = new URL(e);
|
|
71
|
+
n.pathname = [
|
|
72
|
+
...n.pathname.split("/"),
|
|
73
|
+
"cloud",
|
|
74
|
+
"capabilities"
|
|
75
|
+
].filter(Boolean).join("/"), n.searchParams.append("format", "json");
|
|
76
|
+
let r = n.href;
|
|
77
|
+
return { async getCapabilities() {
|
|
78
|
+
return ne(await t.get(r), "data.ocs.data", {
|
|
79
|
+
capabilities: null,
|
|
80
|
+
version: null
|
|
81
|
+
});
|
|
82
|
+
} };
|
|
83
|
+
};
|
|
84
|
+
//#endregion
|
|
85
|
+
//#region ../../node_modules/.pnpm/@noble+hashes@2.2.0/node_modules/@noble/hashes/utils.js
|
|
86
|
+
function y(e) {
|
|
87
|
+
return e instanceof Uint8Array || ArrayBuffer.isView(e) && e.constructor.name === "Uint8Array" && "BYTES_PER_ELEMENT" in e && e.BYTES_PER_ELEMENT === 1;
|
|
88
|
+
}
|
|
89
|
+
function b(e, t = "") {
|
|
90
|
+
if (typeof e != "number") {
|
|
91
|
+
let n = t && `"${t}" `;
|
|
92
|
+
throw TypeError(`${n}expected number, got ${typeof e}`);
|
|
93
|
+
}
|
|
94
|
+
if (!Number.isSafeInteger(e) || e < 0) {
|
|
95
|
+
let n = t && `"${t}" `;
|
|
96
|
+
throw RangeError(`${n}expected integer >= 0, got ${e}`);
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
function x(e, t, n = "") {
|
|
100
|
+
let r = y(e), i = e?.length, a = t !== void 0;
|
|
101
|
+
if (!r || a && i !== t) {
|
|
102
|
+
let o = n && `"${n}" `, s = a ? ` of length ${t}` : "", c = r ? `length=${i}` : `type=${typeof e}`, l = o + "expected Uint8Array" + s + ", got " + c;
|
|
103
|
+
throw r ? RangeError(l) : TypeError(l);
|
|
104
|
+
}
|
|
105
|
+
return e;
|
|
106
|
+
}
|
|
107
|
+
function S(e) {
|
|
108
|
+
if (typeof e != "function" || typeof e.create != "function") throw TypeError("Hash must wrapped by utils.createHasher");
|
|
109
|
+
if (b(e.outputLen), b(e.blockLen), e.outputLen < 1) throw Error("\"outputLen\" must be >= 1");
|
|
110
|
+
if (e.blockLen < 1) throw Error("\"blockLen\" must be >= 1");
|
|
111
|
+
}
|
|
112
|
+
function C(e, t = !0) {
|
|
113
|
+
if (e.destroyed) throw Error("Hash instance has been destroyed");
|
|
114
|
+
if (t && e.finished) throw Error("Hash#digest() has already been called");
|
|
115
|
+
}
|
|
116
|
+
function w(e, t) {
|
|
117
|
+
x(e, void 0, "digestInto() output");
|
|
118
|
+
let n = t.outputLen;
|
|
119
|
+
if (e.length < n) throw RangeError("\"digestInto() output\" expected to be of length >=" + n);
|
|
120
|
+
}
|
|
121
|
+
function T(...e) {
|
|
122
|
+
for (let t = 0; t < e.length; t++) e[t].fill(0);
|
|
123
|
+
}
|
|
124
|
+
function E(e) {
|
|
125
|
+
return new DataView(e.buffer, e.byteOffset, e.byteLength);
|
|
126
|
+
}
|
|
127
|
+
new Uint8Array(new Uint32Array([287454020]).buffer)[0], typeof Uint8Array.from([]).toHex == "function" && Uint8Array.fromHex;
|
|
128
|
+
function re(e) {
|
|
129
|
+
if (typeof e != "string") throw TypeError("string expected");
|
|
130
|
+
return new Uint8Array(new TextEncoder().encode(e));
|
|
131
|
+
}
|
|
132
|
+
function ie(e, t = "") {
|
|
133
|
+
return typeof e == "string" ? re(e) : x(e, void 0, t);
|
|
134
|
+
}
|
|
135
|
+
function ae(e, t) {
|
|
136
|
+
if (t !== void 0 && {}.toString.call(t) !== "[object Object]") throw TypeError("options must be object or undefined");
|
|
137
|
+
return Object.assign(e, t);
|
|
138
|
+
}
|
|
139
|
+
function oe(e, t = {}) {
|
|
140
|
+
let n = (t, n) => e(n).update(t).digest(), r = e(void 0);
|
|
141
|
+
return n.outputLen = r.outputLen, n.blockLen = r.blockLen, n.canXOF = r.canXOF, n.create = (t) => e(t), Object.assign(n, t), Object.freeze(n);
|
|
142
|
+
}
|
|
143
|
+
var se = (e) => ({ oid: Uint8Array.from([
|
|
144
|
+
6,
|
|
145
|
+
9,
|
|
146
|
+
96,
|
|
147
|
+
134,
|
|
148
|
+
72,
|
|
149
|
+
1,
|
|
150
|
+
101,
|
|
151
|
+
3,
|
|
152
|
+
4,
|
|
153
|
+
2,
|
|
154
|
+
e
|
|
155
|
+
]) }), ce = class {
|
|
156
|
+
oHash;
|
|
157
|
+
iHash;
|
|
158
|
+
blockLen;
|
|
159
|
+
outputLen;
|
|
160
|
+
canXOF = !1;
|
|
161
|
+
finished = !1;
|
|
162
|
+
destroyed = !1;
|
|
163
|
+
constructor(e, t) {
|
|
164
|
+
if (S(e), x(t, void 0, "key"), this.iHash = e.create(), typeof this.iHash.update != "function") throw Error("Expected instance of class which extends utils.Hash");
|
|
165
|
+
this.blockLen = this.iHash.blockLen, this.outputLen = this.iHash.outputLen;
|
|
166
|
+
let n = this.blockLen, r = new Uint8Array(n);
|
|
167
|
+
r.set(t.length > n ? e.create().update(t).digest() : t);
|
|
168
|
+
for (let e = 0; e < r.length; e++) r[e] ^= 54;
|
|
169
|
+
this.iHash.update(r), this.oHash = e.create();
|
|
170
|
+
for (let e = 0; e < r.length; e++) r[e] ^= 106;
|
|
171
|
+
this.oHash.update(r), T(r);
|
|
172
|
+
}
|
|
173
|
+
update(e) {
|
|
174
|
+
return C(this), this.iHash.update(e), this;
|
|
175
|
+
}
|
|
176
|
+
digestInto(e) {
|
|
177
|
+
C(this), w(e, this), this.finished = !0;
|
|
178
|
+
let t = e.subarray(0, this.outputLen);
|
|
179
|
+
this.iHash.digestInto(t), this.oHash.update(t), this.oHash.digestInto(t), this.destroy();
|
|
180
|
+
}
|
|
181
|
+
digest() {
|
|
182
|
+
let e = new Uint8Array(this.oHash.outputLen);
|
|
183
|
+
return this.digestInto(e), e;
|
|
184
|
+
}
|
|
185
|
+
_cloneInto(e) {
|
|
186
|
+
e ||= Object.create(Object.getPrototypeOf(this), {});
|
|
187
|
+
let { oHash: t, iHash: n, finished: r, destroyed: i, blockLen: a, outputLen: o } = this;
|
|
188
|
+
return e = e, e.finished = r, e.destroyed = i, e.blockLen = a, e.outputLen = o, e.oHash = t._cloneInto(e.oHash), e.iHash = n._cloneInto(e.iHash), e;
|
|
189
|
+
}
|
|
190
|
+
clone() {
|
|
191
|
+
return this._cloneInto();
|
|
192
|
+
}
|
|
193
|
+
destroy() {
|
|
194
|
+
this.destroyed = !0, this.oHash.destroy(), this.iHash.destroy();
|
|
195
|
+
}
|
|
196
|
+
}, le = /* @__PURE__ */ (() => {
|
|
197
|
+
let e = ((e, t, n) => new ce(e, t).update(n).digest());
|
|
198
|
+
return e.create = (e, t) => new ce(e, t), e;
|
|
199
|
+
})();
|
|
200
|
+
//#endregion
|
|
201
|
+
//#region ../../node_modules/.pnpm/@noble+hashes@2.2.0/node_modules/@noble/hashes/pbkdf2.js
|
|
202
|
+
function ue(e, t, n, r) {
|
|
203
|
+
S(e);
|
|
204
|
+
let { c: i, dkLen: a, asyncTick: o } = ae({
|
|
205
|
+
dkLen: 32,
|
|
206
|
+
asyncTick: 10
|
|
207
|
+
}, r);
|
|
208
|
+
if (b(i, "c"), b(a, "dkLen"), b(o, "asyncTick"), i < 1) throw Error("iterations (c) must be >= 1");
|
|
209
|
+
if (a < 1) throw Error("\"dkLen\" must be >= 1");
|
|
210
|
+
if (a > (2 ** 32 - 1) * e.outputLen) throw Error("derived key too long");
|
|
211
|
+
let s = ie(t, "password"), c = ie(n, "salt"), l = new Uint8Array(a), u = le.create(e, s);
|
|
212
|
+
return {
|
|
213
|
+
c: i,
|
|
214
|
+
dkLen: a,
|
|
215
|
+
asyncTick: o,
|
|
216
|
+
DK: l,
|
|
217
|
+
PRF: u,
|
|
218
|
+
PRFSalt: u._cloneInto().update(c)
|
|
219
|
+
};
|
|
220
|
+
}
|
|
221
|
+
function de(e, t, n, r, i) {
|
|
222
|
+
return e.destroy(), t.destroy(), r && r.destroy(), T(i), n;
|
|
223
|
+
}
|
|
224
|
+
function fe(e, t, n, r) {
|
|
225
|
+
let { c: i, dkLen: a, DK: o, PRF: s, PRFSalt: c } = ue(e, t, n, r), l, u = new Uint8Array(4), d = E(u), f = new Uint8Array(s.outputLen);
|
|
226
|
+
for (let e = 1, t = 0; t < a; e++, t += s.outputLen) {
|
|
227
|
+
let n = o.subarray(t, t + s.outputLen);
|
|
228
|
+
d.setInt32(0, e, !1), (l = c._cloneInto(l)).update(u).digestInto(f), n.set(f.subarray(0, n.length));
|
|
229
|
+
for (let e = 1; e < i; e++) {
|
|
230
|
+
s._cloneInto(l).update(f).digestInto(f);
|
|
231
|
+
for (let e = 0; e < n.length; e++) n[e] ^= f[e];
|
|
232
|
+
}
|
|
233
|
+
}
|
|
234
|
+
return de(s, c, o, l, f);
|
|
235
|
+
}
|
|
236
|
+
//#endregion
|
|
237
|
+
//#region ../../node_modules/.pnpm/@noble+hashes@2.2.0/node_modules/@noble/hashes/_md.js
|
|
238
|
+
var pe = class {
|
|
239
|
+
blockLen;
|
|
240
|
+
outputLen;
|
|
241
|
+
canXOF = !1;
|
|
242
|
+
padOffset;
|
|
243
|
+
isLE;
|
|
244
|
+
buffer;
|
|
245
|
+
view;
|
|
246
|
+
finished = !1;
|
|
247
|
+
length = 0;
|
|
248
|
+
pos = 0;
|
|
249
|
+
destroyed = !1;
|
|
250
|
+
constructor(e, t, n, r) {
|
|
251
|
+
this.blockLen = e, this.outputLen = t, this.padOffset = n, this.isLE = r, this.buffer = new Uint8Array(e), this.view = E(this.buffer);
|
|
252
|
+
}
|
|
253
|
+
update(e) {
|
|
254
|
+
C(this), x(e);
|
|
255
|
+
let { view: t, buffer: n, blockLen: r } = this, i = e.length;
|
|
256
|
+
for (let a = 0; a < i;) {
|
|
257
|
+
let o = Math.min(r - this.pos, i - a);
|
|
258
|
+
if (o === r) {
|
|
259
|
+
let t = E(e);
|
|
260
|
+
for (; r <= i - a; a += r) this.process(t, a);
|
|
261
|
+
continue;
|
|
262
|
+
}
|
|
263
|
+
n.set(e.subarray(a, a + o), this.pos), this.pos += o, a += o, this.pos === r && (this.process(t, 0), this.pos = 0);
|
|
264
|
+
}
|
|
265
|
+
return this.length += e.length, this.roundClean(), this;
|
|
266
|
+
}
|
|
267
|
+
digestInto(e) {
|
|
268
|
+
C(this), w(e, this), this.finished = !0;
|
|
269
|
+
let { buffer: t, view: n, blockLen: r, isLE: i } = this, { pos: a } = this;
|
|
270
|
+
t[a++] = 128, T(this.buffer.subarray(a)), this.padOffset > r - a && (this.process(n, 0), a = 0);
|
|
271
|
+
for (let e = a; e < r; e++) t[e] = 0;
|
|
272
|
+
n.setBigUint64(r - 8, BigInt(this.length * 8), i), this.process(n, 0);
|
|
273
|
+
let o = E(e), s = this.outputLen;
|
|
274
|
+
if (s % 4) throw Error("_sha2: outputLen must be aligned to 32bit");
|
|
275
|
+
let c = s / 4, l = this.get();
|
|
276
|
+
if (c > l.length) throw Error("_sha2: outputLen bigger than state");
|
|
277
|
+
for (let e = 0; e < c; e++) o.setUint32(4 * e, l[e], i);
|
|
278
|
+
}
|
|
279
|
+
digest() {
|
|
280
|
+
let { buffer: e, outputLen: t } = this;
|
|
281
|
+
this.digestInto(e);
|
|
282
|
+
let n = e.slice(0, t);
|
|
283
|
+
return this.destroy(), n;
|
|
284
|
+
}
|
|
285
|
+
_cloneInto(e) {
|
|
286
|
+
e ||= new this.constructor(), e.set(...this.get());
|
|
287
|
+
let { blockLen: t, buffer: n, length: r, finished: i, destroyed: a, pos: o } = this;
|
|
288
|
+
return e.destroyed = a, e.finished = i, e.length = r, e.pos = o, r % t && e.buffer.set(n), e;
|
|
289
|
+
}
|
|
290
|
+
clone() {
|
|
291
|
+
return this._cloneInto();
|
|
292
|
+
}
|
|
293
|
+
}, D = /* @__PURE__ */ Uint32Array.from([
|
|
294
|
+
1779033703,
|
|
295
|
+
4089235720,
|
|
296
|
+
3144134277,
|
|
297
|
+
2227873595,
|
|
298
|
+
1013904242,
|
|
299
|
+
4271175723,
|
|
300
|
+
2773480762,
|
|
301
|
+
1595750129,
|
|
302
|
+
1359893119,
|
|
303
|
+
2917565137,
|
|
304
|
+
2600822924,
|
|
305
|
+
725511199,
|
|
306
|
+
528734635,
|
|
307
|
+
4215389547,
|
|
308
|
+
1541459225,
|
|
309
|
+
327033209
|
|
310
|
+
]), O = /* @__PURE__ */ BigInt(2 ** 32 - 1), me = /* @__PURE__ */ BigInt(32);
|
|
311
|
+
function he(e, t = !1) {
|
|
312
|
+
return t ? {
|
|
313
|
+
h: Number(e & O),
|
|
314
|
+
l: Number(e >> me & O)
|
|
315
|
+
} : {
|
|
316
|
+
h: Number(e >> me & O) | 0,
|
|
317
|
+
l: Number(e & O) | 0
|
|
318
|
+
};
|
|
319
|
+
}
|
|
320
|
+
function ge(e, t = !1) {
|
|
321
|
+
let n = e.length, r = new Uint32Array(n), i = new Uint32Array(n);
|
|
322
|
+
for (let a = 0; a < n; a++) {
|
|
323
|
+
let { h: n, l: o } = he(e[a], t);
|
|
324
|
+
[r[a], i[a]] = [n, o];
|
|
325
|
+
}
|
|
326
|
+
return [r, i];
|
|
327
|
+
}
|
|
328
|
+
var _e = (e, t, n) => e >>> n, ve = (e, t, n) => e << 32 - n | t >>> n, k = (e, t, n) => e >>> n | t << 32 - n, A = (e, t, n) => e << 32 - n | t >>> n, j = (e, t, n) => e << 64 - n | t >>> n - 32, M = (e, t, n) => e >>> n - 32 | t << 64 - n;
|
|
329
|
+
function N(e, t, n, r) {
|
|
330
|
+
let i = (t >>> 0) + (r >>> 0);
|
|
331
|
+
return {
|
|
332
|
+
h: e + n + (i / 2 ** 32 | 0) | 0,
|
|
333
|
+
l: i | 0
|
|
334
|
+
};
|
|
335
|
+
}
|
|
336
|
+
var ye = (e, t, n) => (e >>> 0) + (t >>> 0) + (n >>> 0), be = (e, t, n, r) => t + n + r + (e / 2 ** 32 | 0) | 0, xe = (e, t, n, r) => (e >>> 0) + (t >>> 0) + (n >>> 0) + (r >>> 0), Se = (e, t, n, r, i) => t + n + r + i + (e / 2 ** 32 | 0) | 0, Ce = (e, t, n, r, i) => (e >>> 0) + (t >>> 0) + (n >>> 0) + (r >>> 0) + (i >>> 0), we = (e, t, n, r, i, a) => t + n + r + i + a + (e / 2 ** 32 | 0) | 0, Te = ge((/* @__PURE__ */ "0x428a2f98d728ae22.0x7137449123ef65cd.0xb5c0fbcfec4d3b2f.0xe9b5dba58189dbbc.0x3956c25bf348b538.0x59f111f1b605d019.0x923f82a4af194f9b.0xab1c5ed5da6d8118.0xd807aa98a3030242.0x12835b0145706fbe.0x243185be4ee4b28c.0x550c7dc3d5ffb4e2.0x72be5d74f27b896f.0x80deb1fe3b1696b1.0x9bdc06a725c71235.0xc19bf174cf692694.0xe49b69c19ef14ad2.0xefbe4786384f25e3.0x0fc19dc68b8cd5b5.0x240ca1cc77ac9c65.0x2de92c6f592b0275.0x4a7484aa6ea6e483.0x5cb0a9dcbd41fbd4.0x76f988da831153b5.0x983e5152ee66dfab.0xa831c66d2db43210.0xb00327c898fb213f.0xbf597fc7beef0ee4.0xc6e00bf33da88fc2.0xd5a79147930aa725.0x06ca6351e003826f.0x142929670a0e6e70.0x27b70a8546d22ffc.0x2e1b21385c26c926.0x4d2c6dfc5ac42aed.0x53380d139d95b3df.0x650a73548baf63de.0x766a0abb3c77b2a8.0x81c2c92e47edaee6.0x92722c851482353b.0xa2bfe8a14cf10364.0xa81a664bbc423001.0xc24b8b70d0f89791.0xc76c51a30654be30.0xd192e819d6ef5218.0xd69906245565a910.0xf40e35855771202a.0x106aa07032bbd1b8.0x19a4c116b8d2d0c8.0x1e376c085141ab53.0x2748774cdf8eeb99.0x34b0bcb5e19b48a8.0x391c0cb3c5c95a63.0x4ed8aa4ae3418acb.0x5b9cca4f7763e373.0x682e6ff3d6b2b8a3.0x748f82ee5defb2fc.0x78a5636f43172f60.0x84c87814a1f0ab72.0x8cc702081a6439ec.0x90befffa23631e28.0xa4506cebde82bde9.0xbef9a3f7b2c67915.0xc67178f2e372532b.0xca273eceea26619c.0xd186b8c721c0c207.0xeada7dd6cde0eb1e.0xf57d4f7fee6ed178.0x06f067aa72176fba.0x0a637dc5a2c898a6.0x113f9804bef90dae.0x1b710b35131c471b.0x28db77f523047d84.0x32caab7b40c72493.0x3c9ebe0a15c9bebc.0x431d67c49c100d4c.0x4cc5d4becb3e42b6.0x597f299cfc657e2a.0x5fcb6fab3ad6faec.0x6c44198c4a475817".split(".")).map((e) => BigInt(e))), Ee = Te[0], De = Te[1], P = /* @__PURE__ */ new Uint32Array(80), F = /* @__PURE__ */ new Uint32Array(80), Oe = class extends pe {
|
|
337
|
+
constructor(e) {
|
|
338
|
+
super(128, e, 16, !1);
|
|
339
|
+
}
|
|
340
|
+
get() {
|
|
341
|
+
let { Ah: e, Al: t, Bh: n, Bl: r, Ch: i, Cl: a, Dh: o, Dl: s, Eh: c, El: l, Fh: u, Fl: d, Gh: f, Gl: p, Hh: m, Hl: h } = this;
|
|
342
|
+
return [
|
|
343
|
+
e,
|
|
344
|
+
t,
|
|
345
|
+
n,
|
|
346
|
+
r,
|
|
347
|
+
i,
|
|
348
|
+
a,
|
|
349
|
+
o,
|
|
350
|
+
s,
|
|
351
|
+
c,
|
|
352
|
+
l,
|
|
353
|
+
u,
|
|
354
|
+
d,
|
|
355
|
+
f,
|
|
356
|
+
p,
|
|
357
|
+
m,
|
|
358
|
+
h
|
|
359
|
+
];
|
|
360
|
+
}
|
|
361
|
+
set(e, t, n, r, i, a, o, s, c, l, u, d, f, p, m, h) {
|
|
362
|
+
this.Ah = e | 0, this.Al = t | 0, this.Bh = n | 0, this.Bl = r | 0, this.Ch = i | 0, this.Cl = a | 0, this.Dh = o | 0, this.Dl = s | 0, this.Eh = c | 0, this.El = l | 0, this.Fh = u | 0, this.Fl = d | 0, this.Gh = f | 0, this.Gl = p | 0, this.Hh = m | 0, this.Hl = h | 0;
|
|
363
|
+
}
|
|
364
|
+
process(e, t) {
|
|
365
|
+
for (let n = 0; n < 16; n++, t += 4) P[n] = e.getUint32(t), F[n] = e.getUint32(t += 4);
|
|
366
|
+
for (let e = 16; e < 80; e++) {
|
|
367
|
+
let t = P[e - 15] | 0, n = F[e - 15] | 0, r = k(t, n, 1) ^ k(t, n, 8) ^ _e(t, n, 7), i = A(t, n, 1) ^ A(t, n, 8) ^ ve(t, n, 7), a = P[e - 2] | 0, o = F[e - 2] | 0, s = k(a, o, 19) ^ j(a, o, 61) ^ _e(a, o, 6), c = xe(i, A(a, o, 19) ^ M(a, o, 61) ^ ve(a, o, 6), F[e - 7], F[e - 16]);
|
|
368
|
+
P[e] = Se(c, r, s, P[e - 7], P[e - 16]) | 0, F[e] = c | 0;
|
|
369
|
+
}
|
|
370
|
+
let { Ah: n, Al: r, Bh: i, Bl: a, Ch: o, Cl: s, Dh: c, Dl: l, Eh: u, El: d, Fh: f, Fl: p, Gh: m, Gl: h, Hh: g, Hl: _ } = this;
|
|
371
|
+
for (let e = 0; e < 80; e++) {
|
|
372
|
+
let t = k(u, d, 14) ^ k(u, d, 18) ^ j(u, d, 41), ee = A(u, d, 14) ^ A(u, d, 18) ^ M(u, d, 41), te = u & f ^ ~u & m, ne = d & p ^ ~d & h, v = Ce(_, ee, ne, De[e], F[e]), y = we(v, g, t, te, Ee[e], P[e]), b = v | 0, x = k(n, r, 28) ^ j(n, r, 34) ^ j(n, r, 39), S = A(n, r, 28) ^ M(n, r, 34) ^ M(n, r, 39), C = n & i ^ n & o ^ i & o, w = r & a ^ r & s ^ a & s;
|
|
373
|
+
g = m | 0, _ = h | 0, m = f | 0, h = p | 0, f = u | 0, p = d | 0, {h: u, l: d} = N(c | 0, l | 0, y | 0, b | 0), c = o | 0, l = s | 0, o = i | 0, s = a | 0, i = n | 0, a = r | 0;
|
|
374
|
+
let T = ye(b, S, w);
|
|
375
|
+
n = be(T, y, x, C), r = T | 0;
|
|
376
|
+
}
|
|
377
|
+
({h: n, l: r} = N(this.Ah | 0, this.Al | 0, n | 0, r | 0)), {h: i, l: a} = N(this.Bh | 0, this.Bl | 0, i | 0, a | 0), {h: o, l: s} = N(this.Ch | 0, this.Cl | 0, o | 0, s | 0), {h: c, l: l} = N(this.Dh | 0, this.Dl | 0, c | 0, l | 0), {h: u, l: d} = N(this.Eh | 0, this.El | 0, u | 0, d | 0), {h: f, l: p} = N(this.Fh | 0, this.Fl | 0, f | 0, p | 0), {h: m, l: h} = N(this.Gh | 0, this.Gl | 0, m | 0, h | 0), {h: g, l: _} = N(this.Hh | 0, this.Hl | 0, g | 0, _ | 0), this.set(n, r, i, a, o, s, c, l, u, d, f, p, m, h, g, _);
|
|
378
|
+
}
|
|
379
|
+
roundClean() {
|
|
380
|
+
T(P, F);
|
|
381
|
+
}
|
|
382
|
+
destroy() {
|
|
383
|
+
this.destroyed = !0, T(this.buffer), this.set(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
|
|
384
|
+
}
|
|
385
|
+
}, ke = class extends Oe {
|
|
386
|
+
Ah = D[0] | 0;
|
|
387
|
+
Al = D[1] | 0;
|
|
388
|
+
Bh = D[2] | 0;
|
|
389
|
+
Bl = D[3] | 0;
|
|
390
|
+
Ch = D[4] | 0;
|
|
391
|
+
Cl = D[5] | 0;
|
|
392
|
+
Dh = D[6] | 0;
|
|
393
|
+
Dl = D[7] | 0;
|
|
394
|
+
Eh = D[8] | 0;
|
|
395
|
+
El = D[9] | 0;
|
|
396
|
+
Fh = D[10] | 0;
|
|
397
|
+
Fl = D[11] | 0;
|
|
398
|
+
Gh = D[12] | 0;
|
|
399
|
+
Gl = D[13] | 0;
|
|
400
|
+
Hh = D[14] | 0;
|
|
401
|
+
Hl = D[15] | 0;
|
|
402
|
+
constructor() {
|
|
403
|
+
super(64);
|
|
404
|
+
}
|
|
405
|
+
}, Ae = /* @__PURE__ */ oe(() => new ke(), /* @__PURE__ */ se(3)), je = (t, n, r, i) => e.from(fe(Ae, t, n, {
|
|
406
|
+
c: r,
|
|
407
|
+
dkLen: i
|
|
408
|
+
})), Me = ":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";
|
|
409
|
+
Me + "";
|
|
410
|
+
var Ne = "[" + Me + "][: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\\-.\\d\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*", Pe = RegExp("^" + Ne + "$");
|
|
411
|
+
function Fe(e, t) {
|
|
412
|
+
let n = [], r = t.exec(e);
|
|
413
|
+
for (; r;) {
|
|
414
|
+
let i = [];
|
|
415
|
+
i.startIndex = t.lastIndex - r[0].length;
|
|
416
|
+
let a = r.length;
|
|
417
|
+
for (let e = 0; e < a; e++) i.push(r[e]);
|
|
418
|
+
n.push(i), r = t.exec(e);
|
|
419
|
+
}
|
|
420
|
+
return n;
|
|
421
|
+
}
|
|
422
|
+
var I = function(e) {
|
|
423
|
+
return Pe.exec(e) != null;
|
|
424
|
+
};
|
|
425
|
+
function Ie(e) {
|
|
426
|
+
return e !== void 0;
|
|
427
|
+
}
|
|
428
|
+
var L = [
|
|
429
|
+
"hasOwnProperty",
|
|
430
|
+
"toString",
|
|
431
|
+
"valueOf",
|
|
432
|
+
"__defineGetter__",
|
|
433
|
+
"__defineSetter__",
|
|
434
|
+
"__lookupGetter__",
|
|
435
|
+
"__lookupSetter__"
|
|
436
|
+
], Le = [
|
|
437
|
+
"__proto__",
|
|
438
|
+
"constructor",
|
|
439
|
+
"prototype"
|
|
440
|
+
], Re = {
|
|
441
|
+
allowBooleanAttributes: !1,
|
|
442
|
+
unpairedTags: []
|
|
443
|
+
};
|
|
444
|
+
function ze(e, t) {
|
|
445
|
+
t = Object.assign({}, Re, t);
|
|
446
|
+
let n = [], r = !1, i = !1;
|
|
447
|
+
e[0] === "" && (e = e.substr(1));
|
|
448
|
+
for (let a = 0; a < e.length; a++) if (e[a] === "<" && e[a + 1] === "?") {
|
|
449
|
+
if (a += 2, a = Ve(e, a), a.err) return a;
|
|
450
|
+
} else if (e[a] === "<") {
|
|
451
|
+
let o = a;
|
|
452
|
+
if (a++, e[a] === "!") {
|
|
453
|
+
a = He(e, a);
|
|
454
|
+
continue;
|
|
455
|
+
} else {
|
|
456
|
+
let s = !1;
|
|
457
|
+
e[a] === "/" && (s = !0, a++);
|
|
458
|
+
let c = "";
|
|
459
|
+
for (; a < e.length && e[a] !== ">" && e[a] !== " " && e[a] !== " " && e[a] !== "\n" && e[a] !== "\r"; a++) c += e[a];
|
|
460
|
+
if (c = c.trim(), c[c.length - 1] === "/" && (c = c.substring(0, c.length - 1), a--), !Ze(c)) {
|
|
461
|
+
let t;
|
|
462
|
+
return t = c.trim().length === 0 ? "Invalid space after '<'." : "Tag '" + c + "' is an invalid name.", R("InvalidTag", t, z(e, a));
|
|
463
|
+
}
|
|
464
|
+
let l = Ge(e, a);
|
|
465
|
+
if (l === !1) return R("InvalidAttr", "Attributes for '" + c + "' have open quote.", z(e, a));
|
|
466
|
+
let u = l.value;
|
|
467
|
+
if (a = l.index, u[u.length - 1] === "/") {
|
|
468
|
+
let n = a - u.length;
|
|
469
|
+
u = u.substring(0, u.length - 1);
|
|
470
|
+
let i = qe(u, t);
|
|
471
|
+
if (i === !0) r = !0;
|
|
472
|
+
else return R(i.err.code, i.err.msg, z(e, n + i.err.line));
|
|
473
|
+
} else if (s) {
|
|
474
|
+
if (!l.tagClosed) return R("InvalidTag", "Closing tag '" + c + "' doesn't have proper closing.", z(e, a));
|
|
475
|
+
if (u.trim().length > 0) return R("InvalidTag", "Closing tag '" + c + "' can't have attributes or invalid starting.", z(e, o));
|
|
476
|
+
if (n.length === 0) return R("InvalidTag", "Closing tag '" + c + "' has not been opened.", z(e, o));
|
|
477
|
+
{
|
|
478
|
+
let t = n.pop();
|
|
479
|
+
if (c !== t.tagName) {
|
|
480
|
+
let n = z(e, t.tagStartPos);
|
|
481
|
+
return R("InvalidTag", "Expected closing tag '" + t.tagName + "' (opened in line " + n.line + ", col " + n.col + ") instead of closing tag '" + c + "'.", z(e, o));
|
|
482
|
+
}
|
|
483
|
+
n.length == 0 && (i = !0);
|
|
484
|
+
}
|
|
485
|
+
} else {
|
|
486
|
+
let s = qe(u, t);
|
|
487
|
+
if (s !== !0) return R(s.err.code, s.err.msg, z(e, a - u.length + s.err.line));
|
|
488
|
+
if (i === !0) return R("InvalidXml", "Multiple possible root nodes found.", z(e, a));
|
|
489
|
+
t.unpairedTags.indexOf(c) !== -1 || n.push({
|
|
490
|
+
tagName: c,
|
|
491
|
+
tagStartPos: o
|
|
492
|
+
}), r = !0;
|
|
493
|
+
}
|
|
494
|
+
for (a++; a < e.length; a++) if (e[a] === "<") if (e[a + 1] === "!") {
|
|
495
|
+
a++, a = He(e, a);
|
|
496
|
+
continue;
|
|
497
|
+
} else if (e[a + 1] === "?") {
|
|
498
|
+
if (a = Ve(e, ++a), a.err) return a;
|
|
499
|
+
} else break;
|
|
500
|
+
else if (e[a] === "&") {
|
|
501
|
+
let t = Ye(e, a);
|
|
502
|
+
if (t == -1) return R("InvalidChar", "char '&' is not expected.", z(e, a));
|
|
503
|
+
a = t;
|
|
504
|
+
} else if (i === !0 && !Be(e[a])) return R("InvalidXml", "Extra text at the end", z(e, a));
|
|
505
|
+
e[a] === "<" && a--;
|
|
506
|
+
}
|
|
507
|
+
} else {
|
|
508
|
+
if (Be(e[a])) continue;
|
|
509
|
+
return R("InvalidChar", "char '" + e[a] + "' is not expected.", z(e, a));
|
|
510
|
+
}
|
|
511
|
+
return r ? n.length == 1 ? R("InvalidTag", "Unclosed tag '" + n[0].tagName + "'.", z(e, n[0].tagStartPos)) : n.length > 0 ? R("InvalidXml", "Invalid '" + JSON.stringify(n.map((e) => e.tagName), null, 4).replace(/\r?\n/g, "") + "' found.", {
|
|
512
|
+
line: 1,
|
|
513
|
+
col: 1
|
|
514
|
+
}) : !0 : R("InvalidXml", "Start tag expected.", 1);
|
|
515
|
+
}
|
|
516
|
+
function Be(e) {
|
|
517
|
+
return e === " " || e === " " || e === "\n" || e === "\r";
|
|
518
|
+
}
|
|
519
|
+
function Ve(e, t) {
|
|
520
|
+
let n = t;
|
|
521
|
+
for (; t < e.length; t++) if (e[t] == "?" || e[t] == " ") {
|
|
522
|
+
let r = e.substr(n, t - n);
|
|
523
|
+
if (t > 5 && r === "xml") return R("InvalidXml", "XML declaration allowed only at the start of the document.", z(e, t));
|
|
524
|
+
if (e[t] == "?" && e[t + 1] == ">") {
|
|
525
|
+
t++;
|
|
526
|
+
break;
|
|
527
|
+
} else continue;
|
|
528
|
+
}
|
|
529
|
+
return t;
|
|
530
|
+
}
|
|
531
|
+
function He(e, t) {
|
|
532
|
+
if (e.length > t + 5 && e[t + 1] === "-" && e[t + 2] === "-") {
|
|
533
|
+
for (t += 3; t < e.length; t++) if (e[t] === "-" && e[t + 1] === "-" && e[t + 2] === ">") {
|
|
534
|
+
t += 2;
|
|
535
|
+
break;
|
|
536
|
+
}
|
|
537
|
+
} else if (e.length > t + 8 && e[t + 1] === "D" && e[t + 2] === "O" && e[t + 3] === "C" && e[t + 4] === "T" && e[t + 5] === "Y" && e[t + 6] === "P" && e[t + 7] === "E") {
|
|
538
|
+
let n = 1;
|
|
539
|
+
for (t += 8; t < e.length; t++) if (e[t] === "<") n++;
|
|
540
|
+
else if (e[t] === ">" && (n--, n === 0)) break;
|
|
541
|
+
} else if (e.length > t + 9 && e[t + 1] === "[" && e[t + 2] === "C" && e[t + 3] === "D" && e[t + 4] === "A" && e[t + 5] === "T" && e[t + 6] === "A" && e[t + 7] === "[") {
|
|
542
|
+
for (t += 8; t < e.length; t++) if (e[t] === "]" && e[t + 1] === "]" && e[t + 2] === ">") {
|
|
543
|
+
t += 2;
|
|
544
|
+
break;
|
|
545
|
+
}
|
|
546
|
+
}
|
|
547
|
+
return t;
|
|
548
|
+
}
|
|
549
|
+
var Ue = "\"", We = "'";
|
|
550
|
+
function Ge(e, t) {
|
|
551
|
+
let n = "", r = "", i = !1;
|
|
552
|
+
for (; t < e.length; t++) {
|
|
553
|
+
if (e[t] === Ue || e[t] === We) r === "" ? r = e[t] : r !== e[t] || (r = "");
|
|
554
|
+
else if (e[t] === ">" && r === "") {
|
|
555
|
+
i = !0;
|
|
556
|
+
break;
|
|
557
|
+
}
|
|
558
|
+
n += e[t];
|
|
559
|
+
}
|
|
560
|
+
return r === "" ? {
|
|
561
|
+
value: n,
|
|
562
|
+
index: t,
|
|
563
|
+
tagClosed: i
|
|
564
|
+
} : !1;
|
|
565
|
+
}
|
|
566
|
+
var Ke = /* @__PURE__ */ RegExp("(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['\"])(([\\s\\S])*?)\\5)?", "g");
|
|
567
|
+
function qe(e, t) {
|
|
568
|
+
let n = Fe(e, Ke), r = {};
|
|
569
|
+
for (let e = 0; e < n.length; e++) {
|
|
570
|
+
if (n[e][1].length === 0) return R("InvalidAttr", "Attribute '" + n[e][2] + "' has no space in starting.", B(n[e]));
|
|
571
|
+
if (n[e][3] !== void 0 && n[e][4] === void 0) return R("InvalidAttr", "Attribute '" + n[e][2] + "' is without value.", B(n[e]));
|
|
572
|
+
if (n[e][3] === void 0 && !t.allowBooleanAttributes) return R("InvalidAttr", "boolean attribute '" + n[e][2] + "' is not allowed.", B(n[e]));
|
|
573
|
+
let i = n[e][2];
|
|
574
|
+
if (!Xe(i)) return R("InvalidAttr", "Attribute '" + i + "' is an invalid name.", B(n[e]));
|
|
575
|
+
if (!Object.prototype.hasOwnProperty.call(r, i)) r[i] = 1;
|
|
576
|
+
else return R("InvalidAttr", "Attribute '" + i + "' is repeated.", B(n[e]));
|
|
577
|
+
}
|
|
578
|
+
return !0;
|
|
579
|
+
}
|
|
580
|
+
function Je(e, t) {
|
|
581
|
+
let n = /\d/;
|
|
582
|
+
for (e[t] === "x" && (t++, n = /[\da-fA-F]/); t < e.length; t++) {
|
|
583
|
+
if (e[t] === ";") return t;
|
|
584
|
+
if (!e[t].match(n)) break;
|
|
585
|
+
}
|
|
586
|
+
return -1;
|
|
587
|
+
}
|
|
588
|
+
function Ye(e, t) {
|
|
589
|
+
if (t++, e[t] === ";") return -1;
|
|
590
|
+
if (e[t] === "#") return t++, Je(e, t);
|
|
591
|
+
let n = 0;
|
|
592
|
+
for (; t < e.length; t++, n++) if (!(e[t].match(/\w/) && n < 20)) {
|
|
593
|
+
if (e[t] === ";") break;
|
|
594
|
+
return -1;
|
|
595
|
+
}
|
|
596
|
+
return t;
|
|
597
|
+
}
|
|
598
|
+
function R(e, t, n) {
|
|
599
|
+
return { err: {
|
|
600
|
+
code: e,
|
|
601
|
+
msg: t,
|
|
602
|
+
line: n.line || n,
|
|
603
|
+
col: n.col
|
|
604
|
+
} };
|
|
605
|
+
}
|
|
606
|
+
function Xe(e) {
|
|
607
|
+
return I(e);
|
|
608
|
+
}
|
|
609
|
+
function Ze(e) {
|
|
610
|
+
return I(e);
|
|
611
|
+
}
|
|
612
|
+
function z(e, t) {
|
|
613
|
+
let n = e.substring(0, t).split(/\r?\n/);
|
|
614
|
+
return {
|
|
615
|
+
line: n.length,
|
|
616
|
+
col: n[n.length - 1].length + 1
|
|
617
|
+
};
|
|
618
|
+
}
|
|
619
|
+
function B(e) {
|
|
620
|
+
return e.startIndex + e[1].length;
|
|
621
|
+
}
|
|
622
|
+
//#endregion
|
|
623
|
+
//#region ../../node_modules/.pnpm/@nodable+entities@2.1.0/node_modules/@nodable/entities/src/entities.js
|
|
624
|
+
var Qe = {
|
|
625
|
+
amp: "&",
|
|
626
|
+
AMP: "&",
|
|
627
|
+
lt: "<",
|
|
628
|
+
LT: "<",
|
|
629
|
+
gt: ">",
|
|
630
|
+
GT: ">",
|
|
631
|
+
quot: "\"",
|
|
632
|
+
QUOT: "\"",
|
|
633
|
+
apos: "'",
|
|
634
|
+
lsquo: "‘",
|
|
635
|
+
rsquo: "’",
|
|
636
|
+
ldquo: "“",
|
|
637
|
+
rdquo: "”",
|
|
638
|
+
lsquor: "‚",
|
|
639
|
+
rsquor: "’",
|
|
640
|
+
ldquor: "„",
|
|
641
|
+
bdquo: "„",
|
|
642
|
+
comma: ",",
|
|
643
|
+
period: ".",
|
|
644
|
+
colon: ":",
|
|
645
|
+
semi: ";",
|
|
646
|
+
excl: "!",
|
|
647
|
+
quest: "?",
|
|
648
|
+
num: "#",
|
|
649
|
+
dollar: "$",
|
|
650
|
+
percent: "%",
|
|
651
|
+
amp: "&",
|
|
652
|
+
ast: "*",
|
|
653
|
+
commat: "@",
|
|
654
|
+
lowbar: "_",
|
|
655
|
+
verbar: "|",
|
|
656
|
+
vert: "|",
|
|
657
|
+
sol: "/",
|
|
658
|
+
bsol: "\\",
|
|
659
|
+
lbrace: "{",
|
|
660
|
+
rbrace: "}",
|
|
661
|
+
lbrack: "[",
|
|
662
|
+
rbrack: "]",
|
|
663
|
+
lpar: "(",
|
|
664
|
+
rpar: ")",
|
|
665
|
+
nbsp: "\xA0",
|
|
666
|
+
iexcl: "¡",
|
|
667
|
+
cent: "¢",
|
|
668
|
+
pound: "£",
|
|
669
|
+
curren: "¤",
|
|
670
|
+
yen: "¥",
|
|
671
|
+
brvbar: "¦",
|
|
672
|
+
sect: "§",
|
|
673
|
+
uml: "¨",
|
|
674
|
+
copy: "©",
|
|
675
|
+
COPY: "©",
|
|
676
|
+
ordf: "ª",
|
|
677
|
+
laquo: "«",
|
|
678
|
+
not: "¬",
|
|
679
|
+
shy: "",
|
|
680
|
+
reg: "®",
|
|
681
|
+
REG: "®",
|
|
682
|
+
macr: "¯",
|
|
683
|
+
deg: "°",
|
|
684
|
+
plusmn: "±",
|
|
685
|
+
sup2: "²",
|
|
686
|
+
sup3: "³",
|
|
687
|
+
acute: "´",
|
|
688
|
+
micro: "µ",
|
|
689
|
+
para: "¶",
|
|
690
|
+
middot: "·",
|
|
691
|
+
cedil: "¸",
|
|
692
|
+
sup1: "¹",
|
|
693
|
+
ordm: "º",
|
|
694
|
+
raquo: "»",
|
|
695
|
+
frac14: "¼",
|
|
696
|
+
frac12: "½",
|
|
697
|
+
half: "½",
|
|
698
|
+
frac34: "¾",
|
|
699
|
+
iquest: "¿",
|
|
700
|
+
times: "×",
|
|
701
|
+
div: "÷",
|
|
702
|
+
divide: "÷"
|
|
703
|
+
}, $e = {
|
|
704
|
+
Agrave: "À",
|
|
705
|
+
agrave: "à",
|
|
706
|
+
Aacute: "Á",
|
|
707
|
+
aacute: "á",
|
|
708
|
+
Acirc: "Â",
|
|
709
|
+
acirc: "â",
|
|
710
|
+
Atilde: "Ã",
|
|
711
|
+
atilde: "ã",
|
|
712
|
+
Auml: "Ä",
|
|
713
|
+
auml: "ä",
|
|
714
|
+
Aring: "Å",
|
|
715
|
+
aring: "å",
|
|
716
|
+
AElig: "Æ",
|
|
717
|
+
aelig: "æ",
|
|
718
|
+
Ccedil: "Ç",
|
|
719
|
+
ccedil: "ç",
|
|
720
|
+
Egrave: "È",
|
|
721
|
+
egrave: "è",
|
|
722
|
+
Eacute: "É",
|
|
723
|
+
eacute: "é",
|
|
724
|
+
Ecirc: "Ê",
|
|
725
|
+
ecirc: "ê",
|
|
726
|
+
Euml: "Ë",
|
|
727
|
+
euml: "ë",
|
|
728
|
+
Igrave: "Ì",
|
|
729
|
+
igrave: "ì",
|
|
730
|
+
Iacute: "Í",
|
|
731
|
+
iacute: "í",
|
|
732
|
+
Icirc: "Î",
|
|
733
|
+
icirc: "î",
|
|
734
|
+
Iuml: "Ï",
|
|
735
|
+
iuml: "ï",
|
|
736
|
+
ETH: "Ð",
|
|
737
|
+
eth: "ð",
|
|
738
|
+
Ntilde: "Ñ",
|
|
739
|
+
ntilde: "ñ",
|
|
740
|
+
Ograve: "Ò",
|
|
741
|
+
ograve: "ò",
|
|
742
|
+
Oacute: "Ó",
|
|
743
|
+
oacute: "ó",
|
|
744
|
+
Ocirc: "Ô",
|
|
745
|
+
ocirc: "ô",
|
|
746
|
+
Otilde: "Õ",
|
|
747
|
+
otilde: "õ",
|
|
748
|
+
Ouml: "Ö",
|
|
749
|
+
ouml: "ö",
|
|
750
|
+
Oslash: "Ø",
|
|
751
|
+
oslash: "ø",
|
|
752
|
+
Ugrave: "Ù",
|
|
753
|
+
ugrave: "ù",
|
|
754
|
+
Uacute: "Ú",
|
|
755
|
+
uacute: "ú",
|
|
756
|
+
Ucirc: "Û",
|
|
757
|
+
ucirc: "û",
|
|
758
|
+
Uuml: "Ü",
|
|
759
|
+
uuml: "ü",
|
|
760
|
+
Yacute: "Ý",
|
|
761
|
+
yacute: "ý",
|
|
762
|
+
THORN: "Þ",
|
|
763
|
+
thorn: "þ",
|
|
764
|
+
szlig: "ß",
|
|
765
|
+
yuml: "ÿ",
|
|
766
|
+
Yuml: "Ÿ"
|
|
767
|
+
}, et = {
|
|
768
|
+
Amacr: "Ā",
|
|
769
|
+
amacr: "ā",
|
|
770
|
+
Abreve: "Ă",
|
|
771
|
+
abreve: "ă",
|
|
772
|
+
Aogon: "Ą",
|
|
773
|
+
aogon: "ą",
|
|
774
|
+
Cacute: "Ć",
|
|
775
|
+
cacute: "ć",
|
|
776
|
+
Ccirc: "Ĉ",
|
|
777
|
+
ccirc: "ĉ",
|
|
778
|
+
Cdot: "Ċ",
|
|
779
|
+
cdot: "ċ",
|
|
780
|
+
Ccaron: "Č",
|
|
781
|
+
ccaron: "č",
|
|
782
|
+
Dcaron: "Ď",
|
|
783
|
+
dcaron: "ď",
|
|
784
|
+
Dstrok: "Đ",
|
|
785
|
+
dstrok: "đ",
|
|
786
|
+
Emacr: "Ē",
|
|
787
|
+
emacr: "ē",
|
|
788
|
+
Ecaron: "Ě",
|
|
789
|
+
ecaron: "ě",
|
|
790
|
+
Edot: "Ė",
|
|
791
|
+
edot: "ė",
|
|
792
|
+
Eogon: "Ę",
|
|
793
|
+
eogon: "ę",
|
|
794
|
+
Gcirc: "Ĝ",
|
|
795
|
+
gcirc: "ĝ",
|
|
796
|
+
Gbreve: "Ğ",
|
|
797
|
+
gbreve: "ğ",
|
|
798
|
+
Gdot: "Ġ",
|
|
799
|
+
gdot: "ġ",
|
|
800
|
+
Gcedil: "Ģ",
|
|
801
|
+
Hcirc: "Ĥ",
|
|
802
|
+
hcirc: "ĥ",
|
|
803
|
+
Hstrok: "Ħ",
|
|
804
|
+
hstrok: "ħ",
|
|
805
|
+
Itilde: "Ĩ",
|
|
806
|
+
itilde: "ĩ",
|
|
807
|
+
Imacr: "Ī",
|
|
808
|
+
imacr: "ī",
|
|
809
|
+
Iogon: "Į",
|
|
810
|
+
iogon: "į",
|
|
811
|
+
Idot: "İ",
|
|
812
|
+
IJlig: "IJ",
|
|
813
|
+
ijlig: "ij",
|
|
814
|
+
Jcirc: "Ĵ",
|
|
815
|
+
jcirc: "ĵ",
|
|
816
|
+
Kcedil: "Ķ",
|
|
817
|
+
kcedil: "ķ",
|
|
818
|
+
kgreen: "ĸ",
|
|
819
|
+
Lacute: "Ĺ",
|
|
820
|
+
lacute: "ĺ",
|
|
821
|
+
Lcedil: "Ļ",
|
|
822
|
+
lcedil: "ļ",
|
|
823
|
+
Lcaron: "Ľ",
|
|
824
|
+
lcaron: "ľ",
|
|
825
|
+
Lmidot: "Ŀ",
|
|
826
|
+
lmidot: "ŀ",
|
|
827
|
+
Lstrok: "Ł",
|
|
828
|
+
lstrok: "ł",
|
|
829
|
+
Nacute: "Ń",
|
|
830
|
+
nacute: "ń",
|
|
831
|
+
Ncaron: "Ň",
|
|
832
|
+
ncaron: "ň",
|
|
833
|
+
Ncedil: "Ņ",
|
|
834
|
+
ncedil: "ņ",
|
|
835
|
+
ENG: "Ŋ",
|
|
836
|
+
eng: "ŋ",
|
|
837
|
+
Omacr: "Ō",
|
|
838
|
+
omacr: "ō",
|
|
839
|
+
Odblac: "Ő",
|
|
840
|
+
odblac: "ő",
|
|
841
|
+
OElig: "Œ",
|
|
842
|
+
oelig: "œ",
|
|
843
|
+
Racute: "Ŕ",
|
|
844
|
+
racute: "ŕ",
|
|
845
|
+
Rcaron: "Ř",
|
|
846
|
+
rcaron: "ř",
|
|
847
|
+
Rcedil: "Ŗ",
|
|
848
|
+
rcedil: "ŗ",
|
|
849
|
+
Sacute: "Ś",
|
|
850
|
+
sacute: "ś",
|
|
851
|
+
Scirc: "Ŝ",
|
|
852
|
+
scirc: "ŝ",
|
|
853
|
+
Scedil: "Ş",
|
|
854
|
+
scedil: "ş",
|
|
855
|
+
Scaron: "Š",
|
|
856
|
+
scaron: "š",
|
|
857
|
+
Tcedil: "Ţ",
|
|
858
|
+
tcedil: "ţ",
|
|
859
|
+
Tcaron: "Ť",
|
|
860
|
+
tcaron: "ť",
|
|
861
|
+
Tstrok: "Ŧ",
|
|
862
|
+
tstrok: "ŧ",
|
|
863
|
+
Utilde: "Ũ",
|
|
864
|
+
utilde: "ũ",
|
|
865
|
+
Umacr: "Ū",
|
|
866
|
+
umacr: "ū",
|
|
867
|
+
Ubreve: "Ŭ",
|
|
868
|
+
ubreve: "ŭ",
|
|
869
|
+
Uring: "Ů",
|
|
870
|
+
uring: "ů",
|
|
871
|
+
Udblac: "Ű",
|
|
872
|
+
udblac: "ű",
|
|
873
|
+
Uogon: "Ų",
|
|
874
|
+
uogon: "ų",
|
|
875
|
+
Wcirc: "Ŵ",
|
|
876
|
+
wcirc: "ŵ",
|
|
877
|
+
Ycirc: "Ŷ",
|
|
878
|
+
ycirc: "ŷ",
|
|
879
|
+
Zacute: "Ź",
|
|
880
|
+
zacute: "ź",
|
|
881
|
+
Zdot: "Ż",
|
|
882
|
+
zdot: "ż",
|
|
883
|
+
Zcaron: "Ž",
|
|
884
|
+
zcaron: "ž"
|
|
885
|
+
}, tt = {
|
|
886
|
+
Alpha: "Α",
|
|
887
|
+
alpha: "α",
|
|
888
|
+
Beta: "Β",
|
|
889
|
+
beta: "β",
|
|
890
|
+
Gamma: "Γ",
|
|
891
|
+
gamma: "γ",
|
|
892
|
+
Delta: "Δ",
|
|
893
|
+
delta: "δ",
|
|
894
|
+
Epsilon: "Ε",
|
|
895
|
+
epsilon: "ε",
|
|
896
|
+
epsiv: "ϵ",
|
|
897
|
+
varepsilon: "ϵ",
|
|
898
|
+
Zeta: "Ζ",
|
|
899
|
+
zeta: "ζ",
|
|
900
|
+
Eta: "Η",
|
|
901
|
+
eta: "η",
|
|
902
|
+
Theta: "Θ",
|
|
903
|
+
theta: "θ",
|
|
904
|
+
thetasym: "ϑ",
|
|
905
|
+
vartheta: "ϑ",
|
|
906
|
+
Iota: "Ι",
|
|
907
|
+
iota: "ι",
|
|
908
|
+
Kappa: "Κ",
|
|
909
|
+
kappa: "κ",
|
|
910
|
+
kappav: "ϰ",
|
|
911
|
+
varkappa: "ϰ",
|
|
912
|
+
Lambda: "Λ",
|
|
913
|
+
lambda: "λ",
|
|
914
|
+
Mu: "Μ",
|
|
915
|
+
mu: "μ",
|
|
916
|
+
Nu: "Ν",
|
|
917
|
+
nu: "ν",
|
|
918
|
+
Xi: "Ξ",
|
|
919
|
+
xi: "ξ",
|
|
920
|
+
Omicron: "Ο",
|
|
921
|
+
omicron: "ο",
|
|
922
|
+
Pi: "Π",
|
|
923
|
+
pi: "π",
|
|
924
|
+
piv: "ϖ",
|
|
925
|
+
varpi: "ϖ",
|
|
926
|
+
Rho: "Ρ",
|
|
927
|
+
rho: "ρ",
|
|
928
|
+
rhov: "ϱ",
|
|
929
|
+
varrho: "ϱ",
|
|
930
|
+
Sigma: "Σ",
|
|
931
|
+
sigma: "σ",
|
|
932
|
+
sigmaf: "ς",
|
|
933
|
+
sigmav: "ς",
|
|
934
|
+
varsigma: "ς",
|
|
935
|
+
Tau: "Τ",
|
|
936
|
+
tau: "τ",
|
|
937
|
+
Upsilon: "Υ",
|
|
938
|
+
upsilon: "υ",
|
|
939
|
+
upsi: "υ",
|
|
940
|
+
Upsi: "ϒ",
|
|
941
|
+
upsih: "ϒ",
|
|
942
|
+
Phi: "Φ",
|
|
943
|
+
phi: "φ",
|
|
944
|
+
phiv: "ϕ",
|
|
945
|
+
varphi: "ϕ",
|
|
946
|
+
Chi: "Χ",
|
|
947
|
+
chi: "χ",
|
|
948
|
+
Psi: "Ψ",
|
|
949
|
+
psi: "ψ",
|
|
950
|
+
Omega: "Ω",
|
|
951
|
+
omega: "ω",
|
|
952
|
+
ohm: "Ω",
|
|
953
|
+
Gammad: "Ϝ",
|
|
954
|
+
gammad: "ϝ",
|
|
955
|
+
digamma: "ϝ"
|
|
956
|
+
}, nt = {
|
|
957
|
+
Afr: "𝔄",
|
|
958
|
+
afr: "𝔞",
|
|
959
|
+
Acy: "А",
|
|
960
|
+
acy: "а",
|
|
961
|
+
Bcy: "Б",
|
|
962
|
+
bcy: "б",
|
|
963
|
+
Vcy: "В",
|
|
964
|
+
vcy: "в",
|
|
965
|
+
Gcy: "Г",
|
|
966
|
+
gcy: "г",
|
|
967
|
+
Dcy: "Д",
|
|
968
|
+
dcy: "д",
|
|
969
|
+
IEcy: "Е",
|
|
970
|
+
iecy: "е",
|
|
971
|
+
IOcy: "Ё",
|
|
972
|
+
iocy: "ё",
|
|
973
|
+
ZHcy: "Ж",
|
|
974
|
+
zhcy: "ж",
|
|
975
|
+
Zcy: "З",
|
|
976
|
+
zcy: "з",
|
|
977
|
+
Icy: "И",
|
|
978
|
+
icy: "и",
|
|
979
|
+
Jcy: "Й",
|
|
980
|
+
jcy: "й",
|
|
981
|
+
Kcy: "К",
|
|
982
|
+
kcy: "к",
|
|
983
|
+
Lcy: "Л",
|
|
984
|
+
lcy: "л",
|
|
985
|
+
Mcy: "М",
|
|
986
|
+
mcy: "м",
|
|
987
|
+
Ncy: "Н",
|
|
988
|
+
ncy: "н",
|
|
989
|
+
Ocy: "О",
|
|
990
|
+
ocy: "о",
|
|
991
|
+
Pcy: "П",
|
|
992
|
+
pcy: "п",
|
|
993
|
+
Rcy: "Р",
|
|
994
|
+
rcy: "р",
|
|
995
|
+
Scy: "С",
|
|
996
|
+
scy: "с",
|
|
997
|
+
Tcy: "Т",
|
|
998
|
+
tcy: "т",
|
|
999
|
+
Ucy: "У",
|
|
1000
|
+
ucy: "у",
|
|
1001
|
+
Fcy: "Ф",
|
|
1002
|
+
fcy: "ф",
|
|
1003
|
+
KHcy: "Х",
|
|
1004
|
+
khcy: "х",
|
|
1005
|
+
TScy: "Ц",
|
|
1006
|
+
tscy: "ц",
|
|
1007
|
+
CHcy: "Ч",
|
|
1008
|
+
chcy: "ч",
|
|
1009
|
+
SHcy: "Ш",
|
|
1010
|
+
shcy: "ш",
|
|
1011
|
+
SHCHcy: "Щ",
|
|
1012
|
+
shchcy: "щ",
|
|
1013
|
+
HARDcy: "Ъ",
|
|
1014
|
+
hardcy: "ъ",
|
|
1015
|
+
Ycy: "Ы",
|
|
1016
|
+
ycy: "ы",
|
|
1017
|
+
SOFTcy: "Ь",
|
|
1018
|
+
softcy: "ь",
|
|
1019
|
+
Ecy: "Э",
|
|
1020
|
+
ecy: "э",
|
|
1021
|
+
YUcy: "Ю",
|
|
1022
|
+
yucy: "ю",
|
|
1023
|
+
YAcy: "Я",
|
|
1024
|
+
yacy: "я",
|
|
1025
|
+
DJcy: "Ђ",
|
|
1026
|
+
djcy: "ђ",
|
|
1027
|
+
GJcy: "Ѓ",
|
|
1028
|
+
gjcy: "ѓ",
|
|
1029
|
+
Jukcy: "Є",
|
|
1030
|
+
jukcy: "є",
|
|
1031
|
+
DScy: "Ѕ",
|
|
1032
|
+
dscy: "ѕ",
|
|
1033
|
+
Iukcy: "І",
|
|
1034
|
+
iukcy: "і",
|
|
1035
|
+
YIcy: "Ї",
|
|
1036
|
+
yicy: "ї",
|
|
1037
|
+
Jsercy: "Ј",
|
|
1038
|
+
jsercy: "ј",
|
|
1039
|
+
LJcy: "Љ",
|
|
1040
|
+
ljcy: "љ",
|
|
1041
|
+
NJcy: "Њ",
|
|
1042
|
+
njcy: "њ",
|
|
1043
|
+
TSHcy: "Ћ",
|
|
1044
|
+
tshcy: "ћ",
|
|
1045
|
+
KJcy: "Ќ",
|
|
1046
|
+
kjcy: "ќ",
|
|
1047
|
+
Ubrcy: "Ў",
|
|
1048
|
+
ubrcy: "ў",
|
|
1049
|
+
DZcy: "Џ",
|
|
1050
|
+
dzcy: "џ"
|
|
1051
|
+
}, rt = {
|
|
1052
|
+
plus: "+",
|
|
1053
|
+
minus: "−",
|
|
1054
|
+
mnplus: "∓",
|
|
1055
|
+
mp: "∓",
|
|
1056
|
+
pm: "±",
|
|
1057
|
+
times: "×",
|
|
1058
|
+
div: "÷",
|
|
1059
|
+
divide: "÷",
|
|
1060
|
+
sdot: "⋅",
|
|
1061
|
+
star: "☆",
|
|
1062
|
+
starf: "★",
|
|
1063
|
+
bigstar: "★",
|
|
1064
|
+
lowast: "∗",
|
|
1065
|
+
ast: "*",
|
|
1066
|
+
midast: "*",
|
|
1067
|
+
compfn: "∘",
|
|
1068
|
+
smallcircle: "∘",
|
|
1069
|
+
bullet: "•",
|
|
1070
|
+
bull: "•",
|
|
1071
|
+
nbsp: "\xA0",
|
|
1072
|
+
hellip: "…",
|
|
1073
|
+
mldr: "…",
|
|
1074
|
+
prime: "′",
|
|
1075
|
+
Prime: "″",
|
|
1076
|
+
tprime: "‴",
|
|
1077
|
+
bprime: "‵",
|
|
1078
|
+
backprime: "‵",
|
|
1079
|
+
minus: "−",
|
|
1080
|
+
minusd: "∸",
|
|
1081
|
+
dotminus: "∸",
|
|
1082
|
+
plusdo: "∔",
|
|
1083
|
+
dotplus: "∔",
|
|
1084
|
+
plusmn: "±",
|
|
1085
|
+
minusplus: "∓",
|
|
1086
|
+
mnplus: "∓",
|
|
1087
|
+
mp: "∓",
|
|
1088
|
+
setminus: "∖",
|
|
1089
|
+
smallsetminus: "∖",
|
|
1090
|
+
Backslash: "∖",
|
|
1091
|
+
setmn: "∖",
|
|
1092
|
+
ssetmn: "∖",
|
|
1093
|
+
lowbar: "_",
|
|
1094
|
+
verbar: "|",
|
|
1095
|
+
vert: "|",
|
|
1096
|
+
VerticalLine: "|",
|
|
1097
|
+
colon: ":",
|
|
1098
|
+
Colon: "∷",
|
|
1099
|
+
Proportion: "∷",
|
|
1100
|
+
ratio: "∶",
|
|
1101
|
+
equals: "=",
|
|
1102
|
+
ne: "≠",
|
|
1103
|
+
nequiv: "≢",
|
|
1104
|
+
equiv: "≡",
|
|
1105
|
+
Congruent: "≡",
|
|
1106
|
+
sim: "∼",
|
|
1107
|
+
thicksim: "∼",
|
|
1108
|
+
thksim: "∼",
|
|
1109
|
+
sime: "≃",
|
|
1110
|
+
simeq: "≃",
|
|
1111
|
+
TildeEqual: "≃",
|
|
1112
|
+
asymp: "≈",
|
|
1113
|
+
approx: "≈",
|
|
1114
|
+
thickapprox: "≈",
|
|
1115
|
+
thkap: "≈",
|
|
1116
|
+
TildeTilde: "≈",
|
|
1117
|
+
ncong: "≇",
|
|
1118
|
+
cong: "≅",
|
|
1119
|
+
TildeFullEqual: "≅",
|
|
1120
|
+
asympeq: "≍",
|
|
1121
|
+
CupCap: "≍",
|
|
1122
|
+
bump: "≎",
|
|
1123
|
+
Bumpeq: "≎",
|
|
1124
|
+
HumpDownHump: "≎",
|
|
1125
|
+
bumpe: "≏",
|
|
1126
|
+
bumpeq: "≏",
|
|
1127
|
+
HumpEqual: "≏",
|
|
1128
|
+
dotminus: "∸",
|
|
1129
|
+
minusd: "∸",
|
|
1130
|
+
plusdo: "∔",
|
|
1131
|
+
dotplus: "∔",
|
|
1132
|
+
le: "≤",
|
|
1133
|
+
LessEqual: "≤",
|
|
1134
|
+
ge: "≥",
|
|
1135
|
+
GreaterEqual: "≥",
|
|
1136
|
+
lesseqgtr: "⋚",
|
|
1137
|
+
lesseqqgtr: "⪋",
|
|
1138
|
+
greater: ">",
|
|
1139
|
+
less: "<"
|
|
1140
|
+
}, it = {
|
|
1141
|
+
alefsym: "ℵ",
|
|
1142
|
+
aleph: "ℵ",
|
|
1143
|
+
beth: "ℶ",
|
|
1144
|
+
gimel: "ℷ",
|
|
1145
|
+
daleth: "ℸ",
|
|
1146
|
+
forall: "∀",
|
|
1147
|
+
ForAll: "∀",
|
|
1148
|
+
part: "∂",
|
|
1149
|
+
PartialD: "∂",
|
|
1150
|
+
exist: "∃",
|
|
1151
|
+
Exists: "∃",
|
|
1152
|
+
nexist: "∄",
|
|
1153
|
+
nexists: "∄",
|
|
1154
|
+
empty: "∅",
|
|
1155
|
+
emptyset: "∅",
|
|
1156
|
+
emptyv: "∅",
|
|
1157
|
+
varnothing: "∅",
|
|
1158
|
+
nabla: "∇",
|
|
1159
|
+
Del: "∇",
|
|
1160
|
+
isin: "∈",
|
|
1161
|
+
isinv: "∈",
|
|
1162
|
+
in: "∈",
|
|
1163
|
+
Element: "∈",
|
|
1164
|
+
notin: "∉",
|
|
1165
|
+
notinva: "∉",
|
|
1166
|
+
ni: "∋",
|
|
1167
|
+
niv: "∋",
|
|
1168
|
+
SuchThat: "∋",
|
|
1169
|
+
ReverseElement: "∋",
|
|
1170
|
+
notni: "∌",
|
|
1171
|
+
notniva: "∌",
|
|
1172
|
+
prod: "∏",
|
|
1173
|
+
Product: "∏",
|
|
1174
|
+
coprod: "∐",
|
|
1175
|
+
Coproduct: "∐",
|
|
1176
|
+
sum: "∑",
|
|
1177
|
+
Sum: "∑",
|
|
1178
|
+
minus: "−",
|
|
1179
|
+
mp: "∓",
|
|
1180
|
+
plusdo: "∔",
|
|
1181
|
+
dotplus: "∔",
|
|
1182
|
+
setminus: "∖",
|
|
1183
|
+
lowast: "∗",
|
|
1184
|
+
radic: "√",
|
|
1185
|
+
Sqrt: "√",
|
|
1186
|
+
prop: "∝",
|
|
1187
|
+
propto: "∝",
|
|
1188
|
+
Proportional: "∝",
|
|
1189
|
+
varpropto: "∝",
|
|
1190
|
+
infin: "∞",
|
|
1191
|
+
infintie: "⧝",
|
|
1192
|
+
ang: "∠",
|
|
1193
|
+
angle: "∠",
|
|
1194
|
+
angmsd: "∡",
|
|
1195
|
+
measuredangle: "∡",
|
|
1196
|
+
angsph: "∢",
|
|
1197
|
+
mid: "∣",
|
|
1198
|
+
VerticalBar: "∣",
|
|
1199
|
+
nmid: "∤",
|
|
1200
|
+
nsmid: "∤",
|
|
1201
|
+
npar: "∦",
|
|
1202
|
+
parallel: "∥",
|
|
1203
|
+
spar: "∥",
|
|
1204
|
+
nparallel: "∦",
|
|
1205
|
+
nspar: "∦",
|
|
1206
|
+
and: "∧",
|
|
1207
|
+
wedge: "∧",
|
|
1208
|
+
or: "∨",
|
|
1209
|
+
vee: "∨",
|
|
1210
|
+
cap: "∩",
|
|
1211
|
+
cup: "∪",
|
|
1212
|
+
int: "∫",
|
|
1213
|
+
Integral: "∫",
|
|
1214
|
+
conint: "∮",
|
|
1215
|
+
ContourIntegral: "∮",
|
|
1216
|
+
Conint: "∯",
|
|
1217
|
+
DoubleContourIntegral: "∯",
|
|
1218
|
+
Cconint: "∰",
|
|
1219
|
+
there4: "∴",
|
|
1220
|
+
therefore: "∴",
|
|
1221
|
+
Therefore: "∴",
|
|
1222
|
+
becaus: "∵",
|
|
1223
|
+
because: "∵",
|
|
1224
|
+
Because: "∵",
|
|
1225
|
+
ratio: "∶",
|
|
1226
|
+
Proportion: "∷",
|
|
1227
|
+
minusd: "∸",
|
|
1228
|
+
dotminus: "∸",
|
|
1229
|
+
mDDot: "∺",
|
|
1230
|
+
homtht: "∻",
|
|
1231
|
+
sim: "∼",
|
|
1232
|
+
bsimg: "∽",
|
|
1233
|
+
backsim: "∽",
|
|
1234
|
+
ac: "∾",
|
|
1235
|
+
mstpos: "∾",
|
|
1236
|
+
acd: "∿",
|
|
1237
|
+
VerticalTilde: "≀",
|
|
1238
|
+
wr: "≀",
|
|
1239
|
+
wreath: "≀",
|
|
1240
|
+
nsime: "≄",
|
|
1241
|
+
nsimeq: "≄",
|
|
1242
|
+
nsimeq: "≄",
|
|
1243
|
+
ncong: "≇",
|
|
1244
|
+
simne: "≆",
|
|
1245
|
+
ncongdot: "⩭̸",
|
|
1246
|
+
ngsim: "≵",
|
|
1247
|
+
nsim: "≁",
|
|
1248
|
+
napprox: "≉",
|
|
1249
|
+
nap: "≉",
|
|
1250
|
+
ngeq: "≱",
|
|
1251
|
+
nge: "≱",
|
|
1252
|
+
nleq: "≰",
|
|
1253
|
+
nle: "≰",
|
|
1254
|
+
ngtr: "≯",
|
|
1255
|
+
ngt: "≯",
|
|
1256
|
+
nless: "≮",
|
|
1257
|
+
nlt: "≮",
|
|
1258
|
+
nprec: "⊀",
|
|
1259
|
+
npr: "⊀",
|
|
1260
|
+
nsucc: "⊁",
|
|
1261
|
+
nsc: "⊁"
|
|
1262
|
+
}, at = {
|
|
1263
|
+
larr: "←",
|
|
1264
|
+
leftarrow: "←",
|
|
1265
|
+
LeftArrow: "←",
|
|
1266
|
+
uarr: "↑",
|
|
1267
|
+
uparrow: "↑",
|
|
1268
|
+
UpArrow: "↑",
|
|
1269
|
+
rarr: "→",
|
|
1270
|
+
rightarrow: "→",
|
|
1271
|
+
RightArrow: "→",
|
|
1272
|
+
darr: "↓",
|
|
1273
|
+
downarrow: "↓",
|
|
1274
|
+
DownArrow: "↓",
|
|
1275
|
+
harr: "↔",
|
|
1276
|
+
leftrightarrow: "↔",
|
|
1277
|
+
LeftRightArrow: "↔",
|
|
1278
|
+
varr: "↕",
|
|
1279
|
+
updownarrow: "↕",
|
|
1280
|
+
UpDownArrow: "↕",
|
|
1281
|
+
nwarr: "↖",
|
|
1282
|
+
nwarrow: "↖",
|
|
1283
|
+
UpperLeftArrow: "↖",
|
|
1284
|
+
nearr: "↗",
|
|
1285
|
+
nearrow: "↗",
|
|
1286
|
+
UpperRightArrow: "↗",
|
|
1287
|
+
searr: "↘",
|
|
1288
|
+
searrow: "↘",
|
|
1289
|
+
LowerRightArrow: "↘",
|
|
1290
|
+
swarr: "↙",
|
|
1291
|
+
swarrow: "↙",
|
|
1292
|
+
LowerLeftArrow: "↙",
|
|
1293
|
+
lArr: "⇐",
|
|
1294
|
+
Leftarrow: "⇐",
|
|
1295
|
+
uArr: "⇑",
|
|
1296
|
+
Uparrow: "⇑",
|
|
1297
|
+
rArr: "⇒",
|
|
1298
|
+
Rightarrow: "⇒",
|
|
1299
|
+
dArr: "⇓",
|
|
1300
|
+
Downarrow: "⇓",
|
|
1301
|
+
hArr: "⇔",
|
|
1302
|
+
Leftrightarrow: "⇔",
|
|
1303
|
+
iff: "⇔",
|
|
1304
|
+
vArr: "⇕",
|
|
1305
|
+
Updownarrow: "⇕",
|
|
1306
|
+
lAarr: "⇚",
|
|
1307
|
+
Lleftarrow: "⇚",
|
|
1308
|
+
rAarr: "⇛",
|
|
1309
|
+
Rrightarrow: "⇛",
|
|
1310
|
+
lrarr: "⇆",
|
|
1311
|
+
leftrightarrows: "⇆",
|
|
1312
|
+
rlarr: "⇄",
|
|
1313
|
+
rightleftarrows: "⇄",
|
|
1314
|
+
lrhar: "⇋",
|
|
1315
|
+
leftrightharpoons: "⇋",
|
|
1316
|
+
ReverseEquilibrium: "⇋",
|
|
1317
|
+
rlhar: "⇌",
|
|
1318
|
+
rightleftharpoons: "⇌",
|
|
1319
|
+
Equilibrium: "⇌",
|
|
1320
|
+
udarr: "⇅",
|
|
1321
|
+
UpArrowDownArrow: "⇅",
|
|
1322
|
+
duarr: "⇵",
|
|
1323
|
+
DownArrowUpArrow: "⇵",
|
|
1324
|
+
llarr: "⇇",
|
|
1325
|
+
leftleftarrows: "⇇",
|
|
1326
|
+
rrarr: "⇉",
|
|
1327
|
+
rightrightarrows: "⇉",
|
|
1328
|
+
ddarr: "⇊",
|
|
1329
|
+
downdownarrows: "⇊",
|
|
1330
|
+
har: "↽",
|
|
1331
|
+
lhard: "↽",
|
|
1332
|
+
leftharpoondown: "↽",
|
|
1333
|
+
lharu: "↼",
|
|
1334
|
+
leftharpoonup: "↼",
|
|
1335
|
+
rhard: "⇁",
|
|
1336
|
+
rightharpoondown: "⇁",
|
|
1337
|
+
rharu: "⇀",
|
|
1338
|
+
rightharpoonup: "⇀",
|
|
1339
|
+
lsh: "↰",
|
|
1340
|
+
Lsh: "↰",
|
|
1341
|
+
rsh: "↱",
|
|
1342
|
+
Rsh: "↱",
|
|
1343
|
+
ldsh: "↲",
|
|
1344
|
+
rdsh: "↳",
|
|
1345
|
+
hookleftarrow: "↩",
|
|
1346
|
+
hookrightarrow: "↪",
|
|
1347
|
+
mapstoleft: "↤",
|
|
1348
|
+
mapstoup: "↥",
|
|
1349
|
+
map: "↦",
|
|
1350
|
+
mapsto: "↦",
|
|
1351
|
+
mapstodown: "↧",
|
|
1352
|
+
crarr: "↵",
|
|
1353
|
+
nwarrow: "↖",
|
|
1354
|
+
nearrow: "↗",
|
|
1355
|
+
searrow: "↘",
|
|
1356
|
+
swarrow: "↙",
|
|
1357
|
+
nleftarrow: "↚",
|
|
1358
|
+
nleftrightarrow: "↮",
|
|
1359
|
+
nrightarrow: "↛",
|
|
1360
|
+
nrarr: "↛",
|
|
1361
|
+
larrtl: "↢",
|
|
1362
|
+
rarrtl: "↣",
|
|
1363
|
+
leftarrowtail: "↢",
|
|
1364
|
+
rightarrowtail: "↣",
|
|
1365
|
+
twoheadleftarrow: "↞",
|
|
1366
|
+
twoheadrightarrow: "↠",
|
|
1367
|
+
Larr: "↞",
|
|
1368
|
+
Rarr: "↠",
|
|
1369
|
+
larrhk: "↩",
|
|
1370
|
+
rarrhk: "↪",
|
|
1371
|
+
larrlp: "↫",
|
|
1372
|
+
looparrowleft: "↫",
|
|
1373
|
+
rarrlp: "↬",
|
|
1374
|
+
looparrowright: "↬",
|
|
1375
|
+
harrw: "↭",
|
|
1376
|
+
leftrightsquigarrow: "↭",
|
|
1377
|
+
nrarrw: "↝̸",
|
|
1378
|
+
rarrw: "↝",
|
|
1379
|
+
rightsquigarrow: "↝",
|
|
1380
|
+
larrbfs: "⤟",
|
|
1381
|
+
rarrbfs: "⤠",
|
|
1382
|
+
nvHarr: "⤄",
|
|
1383
|
+
nvlArr: "⤂",
|
|
1384
|
+
nvrArr: "⤃",
|
|
1385
|
+
larrfs: "⤝",
|
|
1386
|
+
rarrfs: "⤞",
|
|
1387
|
+
Map: "⤅",
|
|
1388
|
+
larrsim: "⥳",
|
|
1389
|
+
rarrsim: "⥴",
|
|
1390
|
+
harrcir: "⥈",
|
|
1391
|
+
Uarrocir: "⥉",
|
|
1392
|
+
lurdshar: "⥊",
|
|
1393
|
+
ldrdhar: "⥧",
|
|
1394
|
+
ldrushar: "⥋",
|
|
1395
|
+
rdldhar: "⥩",
|
|
1396
|
+
lrhard: "⥭",
|
|
1397
|
+
rlhar: "⇌",
|
|
1398
|
+
uharr: "↾",
|
|
1399
|
+
uharl: "↿",
|
|
1400
|
+
dharr: "⇂",
|
|
1401
|
+
dharl: "⇃",
|
|
1402
|
+
Uarr: "↟",
|
|
1403
|
+
Darr: "↡",
|
|
1404
|
+
zigrarr: "⇝",
|
|
1405
|
+
nwArr: "⇖",
|
|
1406
|
+
neArr: "⇗",
|
|
1407
|
+
seArr: "⇘",
|
|
1408
|
+
swArr: "⇙",
|
|
1409
|
+
nharr: "↮",
|
|
1410
|
+
nhArr: "⇎",
|
|
1411
|
+
nlarr: "↚",
|
|
1412
|
+
nlArr: "⇍",
|
|
1413
|
+
nrarr: "↛",
|
|
1414
|
+
nrArr: "⇏",
|
|
1415
|
+
larrb: "⇤",
|
|
1416
|
+
LeftArrowBar: "⇤",
|
|
1417
|
+
rarrb: "⇥",
|
|
1418
|
+
RightArrowBar: "⇥"
|
|
1419
|
+
}, ot = {
|
|
1420
|
+
square: "□",
|
|
1421
|
+
Square: "□",
|
|
1422
|
+
squ: "□",
|
|
1423
|
+
squf: "▪",
|
|
1424
|
+
squarf: "▪",
|
|
1425
|
+
blacksquar: "▪",
|
|
1426
|
+
blacksquare: "▪",
|
|
1427
|
+
FilledVerySmallSquare: "▪",
|
|
1428
|
+
blk34: "▓",
|
|
1429
|
+
blk12: "▒",
|
|
1430
|
+
blk14: "░",
|
|
1431
|
+
block: "█",
|
|
1432
|
+
srect: "▭",
|
|
1433
|
+
rect: "▭",
|
|
1434
|
+
sdot: "⋅",
|
|
1435
|
+
sdotb: "⊡",
|
|
1436
|
+
dotsquare: "⊡",
|
|
1437
|
+
triangle: "▵",
|
|
1438
|
+
tri: "▵",
|
|
1439
|
+
trine: "▵",
|
|
1440
|
+
utri: "▵",
|
|
1441
|
+
triangledown: "▿",
|
|
1442
|
+
dtri: "▿",
|
|
1443
|
+
tridown: "▿",
|
|
1444
|
+
triangleleft: "◃",
|
|
1445
|
+
ltri: "◃",
|
|
1446
|
+
triangleright: "▹",
|
|
1447
|
+
rtri: "▹",
|
|
1448
|
+
blacktriangle: "▴",
|
|
1449
|
+
utrif: "▴",
|
|
1450
|
+
blacktriangledown: "▾",
|
|
1451
|
+
dtrif: "▾",
|
|
1452
|
+
blacktriangleleft: "◂",
|
|
1453
|
+
ltrif: "◂",
|
|
1454
|
+
blacktriangleright: "▸",
|
|
1455
|
+
rtrif: "▸",
|
|
1456
|
+
loz: "◊",
|
|
1457
|
+
lozenge: "◊",
|
|
1458
|
+
blacklozenge: "⧫",
|
|
1459
|
+
lozf: "⧫",
|
|
1460
|
+
bigcirc: "◯",
|
|
1461
|
+
xcirc: "◯",
|
|
1462
|
+
circ: "ˆ",
|
|
1463
|
+
Circle: "○",
|
|
1464
|
+
cir: "○",
|
|
1465
|
+
o: "○",
|
|
1466
|
+
bullet: "•",
|
|
1467
|
+
bull: "•",
|
|
1468
|
+
hellip: "…",
|
|
1469
|
+
mldr: "…",
|
|
1470
|
+
nldr: "‥",
|
|
1471
|
+
boxh: "─",
|
|
1472
|
+
HorizontalLine: "─",
|
|
1473
|
+
boxv: "│",
|
|
1474
|
+
boxdr: "┌",
|
|
1475
|
+
boxdl: "┐",
|
|
1476
|
+
boxur: "└",
|
|
1477
|
+
boxul: "┘",
|
|
1478
|
+
boxvr: "├",
|
|
1479
|
+
boxvl: "┤",
|
|
1480
|
+
boxhd: "┬",
|
|
1481
|
+
boxhu: "┴",
|
|
1482
|
+
boxvh: "┼",
|
|
1483
|
+
boxH: "═",
|
|
1484
|
+
boxV: "║",
|
|
1485
|
+
boxdR: "╒",
|
|
1486
|
+
boxDr: "╓",
|
|
1487
|
+
boxDR: "╔",
|
|
1488
|
+
boxDl: "╕",
|
|
1489
|
+
boxdL: "╖",
|
|
1490
|
+
boxDL: "╗",
|
|
1491
|
+
boxuR: "╘",
|
|
1492
|
+
boxUr: "╙",
|
|
1493
|
+
boxUR: "╚",
|
|
1494
|
+
boxUl: "╜",
|
|
1495
|
+
boxuL: "╛",
|
|
1496
|
+
boxUL: "╝",
|
|
1497
|
+
boxvR: "╞",
|
|
1498
|
+
boxVr: "╟",
|
|
1499
|
+
boxVR: "╠",
|
|
1500
|
+
boxVl: "╢",
|
|
1501
|
+
boxvL: "╡",
|
|
1502
|
+
boxVL: "╣",
|
|
1503
|
+
boxHd: "╤",
|
|
1504
|
+
boxhD: "╥",
|
|
1505
|
+
boxHD: "╦",
|
|
1506
|
+
boxHu: "╧",
|
|
1507
|
+
boxhU: "╨",
|
|
1508
|
+
boxHU: "╩",
|
|
1509
|
+
boxvH: "╪",
|
|
1510
|
+
boxVh: "╫",
|
|
1511
|
+
boxVH: "╬"
|
|
1512
|
+
}, st = {
|
|
1513
|
+
excl: "!",
|
|
1514
|
+
iexcl: "¡",
|
|
1515
|
+
brvbar: "¦",
|
|
1516
|
+
sect: "§",
|
|
1517
|
+
uml: "¨",
|
|
1518
|
+
copy: "©",
|
|
1519
|
+
ordf: "ª",
|
|
1520
|
+
laquo: "«",
|
|
1521
|
+
not: "¬",
|
|
1522
|
+
shy: "",
|
|
1523
|
+
reg: "®",
|
|
1524
|
+
macr: "¯",
|
|
1525
|
+
deg: "°",
|
|
1526
|
+
plusmn: "±",
|
|
1527
|
+
sup2: "²",
|
|
1528
|
+
sup3: "³",
|
|
1529
|
+
acute: "´",
|
|
1530
|
+
micro: "µ",
|
|
1531
|
+
para: "¶",
|
|
1532
|
+
middot: "·",
|
|
1533
|
+
cedil: "¸",
|
|
1534
|
+
sup1: "¹",
|
|
1535
|
+
ordm: "º",
|
|
1536
|
+
raquo: "»",
|
|
1537
|
+
frac14: "¼",
|
|
1538
|
+
frac12: "½",
|
|
1539
|
+
frac34: "¾",
|
|
1540
|
+
iquest: "¿",
|
|
1541
|
+
nbsp: "\xA0",
|
|
1542
|
+
comma: ",",
|
|
1543
|
+
period: ".",
|
|
1544
|
+
colon: ":",
|
|
1545
|
+
semi: ";",
|
|
1546
|
+
vert: "|",
|
|
1547
|
+
Verbar: "‖",
|
|
1548
|
+
verbar: "|",
|
|
1549
|
+
dblac: "˝",
|
|
1550
|
+
circ: "ˆ",
|
|
1551
|
+
caron: "ˇ",
|
|
1552
|
+
breve: "˘",
|
|
1553
|
+
dot: "˙",
|
|
1554
|
+
ring: "˚",
|
|
1555
|
+
ogon: "˛",
|
|
1556
|
+
tilde: "˜",
|
|
1557
|
+
DiacriticalGrave: "`",
|
|
1558
|
+
DiacriticalAcute: "´",
|
|
1559
|
+
DiacriticalTilde: "˜",
|
|
1560
|
+
DiacriticalDot: "˙",
|
|
1561
|
+
DiacriticalDoubleAcute: "˝",
|
|
1562
|
+
grave: "`",
|
|
1563
|
+
acute: "´"
|
|
1564
|
+
}, ct = {
|
|
1565
|
+
cent: "¢",
|
|
1566
|
+
pound: "£",
|
|
1567
|
+
curren: "¤",
|
|
1568
|
+
yen: "¥",
|
|
1569
|
+
euro: "€",
|
|
1570
|
+
dollar: "$",
|
|
1571
|
+
euro: "€",
|
|
1572
|
+
fnof: "ƒ",
|
|
1573
|
+
inr: "₹",
|
|
1574
|
+
af: "؋",
|
|
1575
|
+
birr: "ብር",
|
|
1576
|
+
peso: "₱",
|
|
1577
|
+
rub: "₽",
|
|
1578
|
+
won: "₩",
|
|
1579
|
+
yuan: "¥",
|
|
1580
|
+
cedil: "¸"
|
|
1581
|
+
}, lt = {
|
|
1582
|
+
frac12: "½",
|
|
1583
|
+
half: "½",
|
|
1584
|
+
frac13: "⅓",
|
|
1585
|
+
frac14: "¼",
|
|
1586
|
+
frac15: "⅕",
|
|
1587
|
+
frac16: "⅙",
|
|
1588
|
+
frac18: "⅛",
|
|
1589
|
+
frac23: "⅔",
|
|
1590
|
+
frac25: "⅖",
|
|
1591
|
+
frac34: "¾",
|
|
1592
|
+
frac35: "⅗",
|
|
1593
|
+
frac38: "⅜",
|
|
1594
|
+
frac45: "⅘",
|
|
1595
|
+
frac56: "⅚",
|
|
1596
|
+
frac58: "⅝",
|
|
1597
|
+
frac78: "⅞",
|
|
1598
|
+
frasl: "⁄"
|
|
1599
|
+
}, ut = {
|
|
1600
|
+
trade: "™",
|
|
1601
|
+
TRADE: "™",
|
|
1602
|
+
telrec: "⌕",
|
|
1603
|
+
target: "⌖",
|
|
1604
|
+
ulcorn: "⌜",
|
|
1605
|
+
ulcorner: "⌜",
|
|
1606
|
+
urcorn: "⌝",
|
|
1607
|
+
urcorner: "⌝",
|
|
1608
|
+
dlcorn: "⌞",
|
|
1609
|
+
llcorner: "⌞",
|
|
1610
|
+
drcorn: "⌟",
|
|
1611
|
+
lrcorner: "⌟",
|
|
1612
|
+
intercal: "⊺",
|
|
1613
|
+
intcal: "⊺",
|
|
1614
|
+
oplus: "⊕",
|
|
1615
|
+
CirclePlus: "⊕",
|
|
1616
|
+
ominus: "⊖",
|
|
1617
|
+
CircleMinus: "⊖",
|
|
1618
|
+
otimes: "⊗",
|
|
1619
|
+
CircleTimes: "⊗",
|
|
1620
|
+
osol: "⊘",
|
|
1621
|
+
odot: "⊙",
|
|
1622
|
+
CircleDot: "⊙",
|
|
1623
|
+
oast: "⊛",
|
|
1624
|
+
circledast: "⊛",
|
|
1625
|
+
odash: "⊝",
|
|
1626
|
+
circleddash: "⊝",
|
|
1627
|
+
ocirc: "⊚",
|
|
1628
|
+
circledcirc: "⊚",
|
|
1629
|
+
boxplus: "⊞",
|
|
1630
|
+
plusb: "⊞",
|
|
1631
|
+
boxminus: "⊟",
|
|
1632
|
+
minusb: "⊟",
|
|
1633
|
+
boxtimes: "⊠",
|
|
1634
|
+
timesb: "⊠",
|
|
1635
|
+
boxdot: "⊡",
|
|
1636
|
+
sdotb: "⊡",
|
|
1637
|
+
veebar: "⊻",
|
|
1638
|
+
vee: "∨",
|
|
1639
|
+
barvee: "⊽",
|
|
1640
|
+
and: "∧",
|
|
1641
|
+
wedge: "∧",
|
|
1642
|
+
Cap: "⋒",
|
|
1643
|
+
Cup: "⋓",
|
|
1644
|
+
Fork: "⋔",
|
|
1645
|
+
pitchfork: "⋔",
|
|
1646
|
+
epar: "⋕",
|
|
1647
|
+
ltlarr: "⥶",
|
|
1648
|
+
nvap: "≍⃒",
|
|
1649
|
+
nvsim: "∼⃒",
|
|
1650
|
+
nvge: "≥⃒",
|
|
1651
|
+
nvle: "≤⃒",
|
|
1652
|
+
nvlt: "<⃒",
|
|
1653
|
+
nvgt: ">⃒",
|
|
1654
|
+
nvltrie: "⊴⃒",
|
|
1655
|
+
nvrtrie: "⊵⃒",
|
|
1656
|
+
Vdash: "⊩",
|
|
1657
|
+
dashv: "⊣",
|
|
1658
|
+
vDash: "⊨",
|
|
1659
|
+
Vdash: "⊩",
|
|
1660
|
+
Vvdash: "⊪",
|
|
1661
|
+
nvdash: "⊬",
|
|
1662
|
+
nvDash: "⊭",
|
|
1663
|
+
nVdash: "⊮",
|
|
1664
|
+
nVDash: "⊯"
|
|
1665
|
+
};
|
|
1666
|
+
({
|
|
1667
|
+
...Qe,
|
|
1668
|
+
...$e,
|
|
1669
|
+
...et,
|
|
1670
|
+
...tt,
|
|
1671
|
+
...nt,
|
|
1672
|
+
...rt,
|
|
1673
|
+
...it,
|
|
1674
|
+
...at,
|
|
1675
|
+
...ot,
|
|
1676
|
+
...st,
|
|
1677
|
+
...ct,
|
|
1678
|
+
...lt,
|
|
1679
|
+
...ut
|
|
1680
|
+
});
|
|
1681
|
+
var dt = {
|
|
1682
|
+
amp: "&",
|
|
1683
|
+
apos: "'",
|
|
1684
|
+
gt: ">",
|
|
1685
|
+
lt: "<",
|
|
1686
|
+
quot: "\""
|
|
1687
|
+
}, ft = {
|
|
1688
|
+
nbsp: "\xA0",
|
|
1689
|
+
copy: "©",
|
|
1690
|
+
reg: "®",
|
|
1691
|
+
trade: "™",
|
|
1692
|
+
mdash: "—",
|
|
1693
|
+
ndash: "–",
|
|
1694
|
+
hellip: "…",
|
|
1695
|
+
laquo: "«",
|
|
1696
|
+
raquo: "»",
|
|
1697
|
+
lsquo: "‘",
|
|
1698
|
+
rsquo: "’",
|
|
1699
|
+
ldquo: "“",
|
|
1700
|
+
rdquo: "”",
|
|
1701
|
+
bull: "•",
|
|
1702
|
+
para: "¶",
|
|
1703
|
+
sect: "§",
|
|
1704
|
+
deg: "°",
|
|
1705
|
+
frac12: "½",
|
|
1706
|
+
frac14: "¼",
|
|
1707
|
+
frac34: "¾"
|
|
1708
|
+
}, pt = /* @__PURE__ */ new Set("!?\\\\/[]$%{}^&*()<>|+");
|
|
1709
|
+
function mt(e) {
|
|
1710
|
+
if (e[0] === "#") throw Error(`[EntityReplacer] Invalid character '#' in entity name: "${e}"`);
|
|
1711
|
+
for (let t of e) if (pt.has(t)) throw Error(`[EntityReplacer] Invalid character '${t}' in entity name: "${e}"`);
|
|
1712
|
+
return e;
|
|
1713
|
+
}
|
|
1714
|
+
function V(...e) {
|
|
1715
|
+
let t = Object.create(null);
|
|
1716
|
+
for (let n of e) if (n) for (let e of Object.keys(n)) {
|
|
1717
|
+
let r = n[e];
|
|
1718
|
+
if (typeof r == "string") t[e] = r;
|
|
1719
|
+
else if (r && typeof r == "object" && r.val !== void 0) {
|
|
1720
|
+
let n = r.val;
|
|
1721
|
+
typeof n == "string" && (t[e] = n);
|
|
1722
|
+
}
|
|
1723
|
+
}
|
|
1724
|
+
return t;
|
|
1725
|
+
}
|
|
1726
|
+
var H = "external", U = "base", W = "all";
|
|
1727
|
+
function ht(e) {
|
|
1728
|
+
return !e || e === H ? new Set([H]) : e === W ? new Set([W]) : e === U ? new Set([U]) : Array.isArray(e) ? new Set(e) : new Set([H]);
|
|
1729
|
+
}
|
|
1730
|
+
var G = Object.freeze({
|
|
1731
|
+
allow: 0,
|
|
1732
|
+
leave: 1,
|
|
1733
|
+
remove: 2,
|
|
1734
|
+
throw: 3
|
|
1735
|
+
}), gt = new Set([
|
|
1736
|
+
9,
|
|
1737
|
+
10,
|
|
1738
|
+
13
|
|
1739
|
+
]);
|
|
1740
|
+
function _t(e) {
|
|
1741
|
+
if (!e) return {
|
|
1742
|
+
xmlVersion: 1,
|
|
1743
|
+
onLevel: G.allow,
|
|
1744
|
+
nullLevel: G.remove
|
|
1745
|
+
};
|
|
1746
|
+
let t = e.xmlVersion === 1.1 ? 1.1 : 1, n = G[e.onNCR] ?? G.allow, r = G[e.nullNCR] ?? G.remove;
|
|
1747
|
+
return {
|
|
1748
|
+
xmlVersion: t,
|
|
1749
|
+
onLevel: n,
|
|
1750
|
+
nullLevel: Math.max(r, G.remove)
|
|
1751
|
+
};
|
|
1752
|
+
}
|
|
1753
|
+
var vt = class {
|
|
1754
|
+
constructor(e = {}) {
|
|
1755
|
+
this._limit = e.limit || {}, this._maxTotalExpansions = this._limit.maxTotalExpansions || 0, this._maxExpandedLength = this._limit.maxExpandedLength || 0, this._postCheck = typeof e.postCheck == "function" ? e.postCheck : (e) => e, this._limitTiers = ht(this._limit.applyLimitsTo ?? H), this._numericAllowed = e.numericAllowed ?? !0, this._baseMap = V(dt, e.namedEntities || null), this._externalMap = Object.create(null), this._inputMap = Object.create(null), this._totalExpansions = 0, this._expandedLength = 0, this._removeSet = new Set(e.remove && Array.isArray(e.remove) ? e.remove : []), this._leaveSet = new Set(e.leave && Array.isArray(e.leave) ? e.leave : []);
|
|
1756
|
+
let t = _t(e.ncr);
|
|
1757
|
+
this._ncrXmlVersion = t.xmlVersion, this._ncrOnLevel = t.onLevel, this._ncrNullLevel = t.nullLevel;
|
|
1758
|
+
}
|
|
1759
|
+
setExternalEntities(e) {
|
|
1760
|
+
if (e) for (let t of Object.keys(e)) mt(t);
|
|
1761
|
+
this._externalMap = V(e);
|
|
1762
|
+
}
|
|
1763
|
+
addExternalEntity(e, t) {
|
|
1764
|
+
mt(e), typeof t == "string" && t.indexOf("&") === -1 && (this._externalMap[e] = t);
|
|
1765
|
+
}
|
|
1766
|
+
addInputEntities(e) {
|
|
1767
|
+
this._totalExpansions = 0, this._expandedLength = 0, this._inputMap = V(e);
|
|
1768
|
+
}
|
|
1769
|
+
reset() {
|
|
1770
|
+
return this._inputMap = Object.create(null), this._totalExpansions = 0, this._expandedLength = 0, this;
|
|
1771
|
+
}
|
|
1772
|
+
setXmlVersion(e) {
|
|
1773
|
+
this._ncrXmlVersion = e === 1.1 ? 1.1 : 1;
|
|
1774
|
+
}
|
|
1775
|
+
decode(e) {
|
|
1776
|
+
if (typeof e != "string" || e.length === 0) return e;
|
|
1777
|
+
let t = e, n = [], r = e.length, i = 0, a = 0, o = this._maxTotalExpansions > 0, s = this._maxExpandedLength > 0, c = o || s;
|
|
1778
|
+
for (; a < r;) {
|
|
1779
|
+
if (e.charCodeAt(a) !== 38) {
|
|
1780
|
+
a++;
|
|
1781
|
+
continue;
|
|
1782
|
+
}
|
|
1783
|
+
let t = a + 1;
|
|
1784
|
+
for (; t < r && e.charCodeAt(t) !== 59 && t - a <= 32;) t++;
|
|
1785
|
+
if (t >= r || e.charCodeAt(t) !== 59) {
|
|
1786
|
+
a++;
|
|
1787
|
+
continue;
|
|
1788
|
+
}
|
|
1789
|
+
let l = e.slice(a + 1, t);
|
|
1790
|
+
if (l.length === 0) {
|
|
1791
|
+
a++;
|
|
1792
|
+
continue;
|
|
1793
|
+
}
|
|
1794
|
+
let u, d;
|
|
1795
|
+
if (this._removeSet.has(l)) u = "", d === void 0 && (d = H);
|
|
1796
|
+
else if (this._leaveSet.has(l)) {
|
|
1797
|
+
a++;
|
|
1798
|
+
continue;
|
|
1799
|
+
} else if (l.charCodeAt(0) === 35) {
|
|
1800
|
+
let e = this._resolveNCR(l);
|
|
1801
|
+
if (e === void 0) {
|
|
1802
|
+
a++;
|
|
1803
|
+
continue;
|
|
1804
|
+
}
|
|
1805
|
+
u = e, d = U;
|
|
1806
|
+
} else {
|
|
1807
|
+
let e = this._resolveName(l);
|
|
1808
|
+
u = e?.value, d = e?.tier;
|
|
1809
|
+
}
|
|
1810
|
+
if (u === void 0) {
|
|
1811
|
+
a++;
|
|
1812
|
+
continue;
|
|
1813
|
+
}
|
|
1814
|
+
if (a > i && n.push(e.slice(i, a)), n.push(u), i = t + 1, a = i, c && this._tierCounts(d)) {
|
|
1815
|
+
if (o && (this._totalExpansions++, this._totalExpansions > this._maxTotalExpansions)) throw Error(`[EntityReplacer] Entity expansion count limit exceeded: ${this._totalExpansions} > ${this._maxTotalExpansions}`);
|
|
1816
|
+
if (s) {
|
|
1817
|
+
let e = u.length - (l.length + 2);
|
|
1818
|
+
if (e > 0 && (this._expandedLength += e, this._expandedLength > this._maxExpandedLength)) throw Error(`[EntityReplacer] Expanded content length limit exceeded: ${this._expandedLength} > ${this._maxExpandedLength}`);
|
|
1819
|
+
}
|
|
1820
|
+
}
|
|
1821
|
+
}
|
|
1822
|
+
i < r && n.push(e.slice(i));
|
|
1823
|
+
let l = n.length === 0 ? e : n.join("");
|
|
1824
|
+
return this._postCheck(l, t);
|
|
1825
|
+
}
|
|
1826
|
+
_tierCounts(e) {
|
|
1827
|
+
return this._limitTiers.has(W) ? !0 : this._limitTiers.has(e);
|
|
1828
|
+
}
|
|
1829
|
+
_resolveName(e) {
|
|
1830
|
+
if (e in this._inputMap) return {
|
|
1831
|
+
value: this._inputMap[e],
|
|
1832
|
+
tier: H
|
|
1833
|
+
};
|
|
1834
|
+
if (e in this._externalMap) return {
|
|
1835
|
+
value: this._externalMap[e],
|
|
1836
|
+
tier: H
|
|
1837
|
+
};
|
|
1838
|
+
if (e in this._baseMap) return {
|
|
1839
|
+
value: this._baseMap[e],
|
|
1840
|
+
tier: U
|
|
1841
|
+
};
|
|
1842
|
+
}
|
|
1843
|
+
_classifyNCR(e) {
|
|
1844
|
+
return e === 0 ? this._ncrNullLevel : e >= 55296 && e <= 57343 || this._ncrXmlVersion === 1 && e >= 1 && e <= 31 && !gt.has(e) ? G.remove : -1;
|
|
1845
|
+
}
|
|
1846
|
+
_applyNCRAction(e, t, n) {
|
|
1847
|
+
switch (e) {
|
|
1848
|
+
case G.allow: return String.fromCodePoint(n);
|
|
1849
|
+
case G.remove: return "";
|
|
1850
|
+
case G.leave: return;
|
|
1851
|
+
case G.throw: throw Error(`[EntityDecoder] Prohibited numeric character reference &${t}; (U+${n.toString(16).toUpperCase().padStart(4, "0")})`);
|
|
1852
|
+
default: return String.fromCodePoint(n);
|
|
1853
|
+
}
|
|
1854
|
+
}
|
|
1855
|
+
_resolveNCR(e) {
|
|
1856
|
+
let t = e.charCodeAt(1), n;
|
|
1857
|
+
if (n = t === 120 || t === 88 ? parseInt(e.slice(2), 16) : parseInt(e.slice(1), 10), Number.isNaN(n) || n < 0 || n > 1114111) return;
|
|
1858
|
+
let r = this._classifyNCR(n);
|
|
1859
|
+
if (!this._numericAllowed && r < G.remove) return;
|
|
1860
|
+
let i = r === -1 ? this._ncrOnLevel : Math.max(this._ncrOnLevel, r);
|
|
1861
|
+
return this._applyNCRAction(i, e, n);
|
|
1862
|
+
}
|
|
1863
|
+
}, yt = (e) => L.includes(e) ? "__" + e : e, bt = {
|
|
1864
|
+
preserveOrder: !1,
|
|
1865
|
+
attributeNamePrefix: "@_",
|
|
1866
|
+
attributesGroupName: !1,
|
|
1867
|
+
textNodeName: "#text",
|
|
1868
|
+
ignoreAttributes: !0,
|
|
1869
|
+
removeNSPrefix: !1,
|
|
1870
|
+
allowBooleanAttributes: !1,
|
|
1871
|
+
parseTagValue: !0,
|
|
1872
|
+
parseAttributeValue: !1,
|
|
1873
|
+
trimValues: !0,
|
|
1874
|
+
cdataPropName: !1,
|
|
1875
|
+
numberParseOptions: {
|
|
1876
|
+
hex: !0,
|
|
1877
|
+
leadingZeros: !0,
|
|
1878
|
+
eNotation: !0
|
|
1879
|
+
},
|
|
1880
|
+
tagValueProcessor: function(e, t) {
|
|
1881
|
+
return t;
|
|
1882
|
+
},
|
|
1883
|
+
attributeValueProcessor: function(e, t) {
|
|
1884
|
+
return t;
|
|
1885
|
+
},
|
|
1886
|
+
stopNodes: [],
|
|
1887
|
+
alwaysCreateTextNode: !1,
|
|
1888
|
+
isArray: () => !1,
|
|
1889
|
+
commentPropName: !1,
|
|
1890
|
+
unpairedTags: [],
|
|
1891
|
+
processEntities: !0,
|
|
1892
|
+
htmlEntities: !1,
|
|
1893
|
+
entityDecoder: null,
|
|
1894
|
+
ignoreDeclaration: !1,
|
|
1895
|
+
ignorePiTags: !1,
|
|
1896
|
+
transformTagName: !1,
|
|
1897
|
+
transformAttributeName: !1,
|
|
1898
|
+
updateTag: function(e, t, n) {
|
|
1899
|
+
return e;
|
|
1900
|
+
},
|
|
1901
|
+
captureMetaData: !1,
|
|
1902
|
+
maxNestedTags: 100,
|
|
1903
|
+
strictReservedNames: !0,
|
|
1904
|
+
jPath: !0,
|
|
1905
|
+
onDangerousProperty: yt
|
|
1906
|
+
};
|
|
1907
|
+
function xt(e, t) {
|
|
1908
|
+
if (typeof e != "string") return;
|
|
1909
|
+
let n = e.toLowerCase();
|
|
1910
|
+
if (L.some((e) => n === e.toLowerCase()) || Le.some((e) => n === e.toLowerCase())) throw Error(`[SECURITY] Invalid ${t}: "${e}" is a reserved JavaScript keyword that could cause prototype pollution`);
|
|
1911
|
+
}
|
|
1912
|
+
function St(e, t) {
|
|
1913
|
+
return typeof e == "boolean" ? {
|
|
1914
|
+
enabled: e,
|
|
1915
|
+
maxEntitySize: 1e4,
|
|
1916
|
+
maxExpansionDepth: 1e4,
|
|
1917
|
+
maxTotalExpansions: Infinity,
|
|
1918
|
+
maxExpandedLength: 1e5,
|
|
1919
|
+
maxEntityCount: 1e3,
|
|
1920
|
+
allowedTags: null,
|
|
1921
|
+
tagFilter: null,
|
|
1922
|
+
appliesTo: "all"
|
|
1923
|
+
} : typeof e == "object" && e ? {
|
|
1924
|
+
enabled: e.enabled !== !1,
|
|
1925
|
+
maxEntitySize: Math.max(1, e.maxEntitySize ?? 1e4),
|
|
1926
|
+
maxExpansionDepth: Math.max(1, e.maxExpansionDepth ?? 1e4),
|
|
1927
|
+
maxTotalExpansions: Math.max(1, e.maxTotalExpansions ?? Infinity),
|
|
1928
|
+
maxExpandedLength: Math.max(1, e.maxExpandedLength ?? 1e5),
|
|
1929
|
+
maxEntityCount: Math.max(1, e.maxEntityCount ?? 1e3),
|
|
1930
|
+
allowedTags: e.allowedTags ?? null,
|
|
1931
|
+
tagFilter: e.tagFilter ?? null,
|
|
1932
|
+
appliesTo: e.appliesTo ?? "all"
|
|
1933
|
+
} : St(!0);
|
|
1934
|
+
}
|
|
1935
|
+
var Ct = function(e) {
|
|
1936
|
+
let t = Object.assign({}, bt, e), n = [
|
|
1937
|
+
{
|
|
1938
|
+
value: t.attributeNamePrefix,
|
|
1939
|
+
name: "attributeNamePrefix"
|
|
1940
|
+
},
|
|
1941
|
+
{
|
|
1942
|
+
value: t.attributesGroupName,
|
|
1943
|
+
name: "attributesGroupName"
|
|
1944
|
+
},
|
|
1945
|
+
{
|
|
1946
|
+
value: t.textNodeName,
|
|
1947
|
+
name: "textNodeName"
|
|
1948
|
+
},
|
|
1949
|
+
{
|
|
1950
|
+
value: t.cdataPropName,
|
|
1951
|
+
name: "cdataPropName"
|
|
1952
|
+
},
|
|
1953
|
+
{
|
|
1954
|
+
value: t.commentPropName,
|
|
1955
|
+
name: "commentPropName"
|
|
1956
|
+
}
|
|
1957
|
+
];
|
|
1958
|
+
for (let { value: e, name: t } of n) e && xt(e, t);
|
|
1959
|
+
return t.onDangerousProperty === null && (t.onDangerousProperty = yt), t.processEntities = St(t.processEntities, t.htmlEntities), t.unpairedTagsSet = new Set(t.unpairedTags), t.stopNodes && Array.isArray(t.stopNodes) && (t.stopNodes = t.stopNodes.map((e) => typeof e == "string" && e.startsWith("*.") ? ".." + e.substring(2) : e)), t;
|
|
1960
|
+
}, wt = typeof Symbol == "function" ? Symbol("XML Node Metadata") : "@@xmlMetadata", K = class {
|
|
1961
|
+
constructor(e) {
|
|
1962
|
+
this.tagname = e, this.child = [], this[":@"] = Object.create(null);
|
|
1963
|
+
}
|
|
1964
|
+
add(e, t) {
|
|
1965
|
+
e === "__proto__" && (e = "#__proto__"), this.child.push({ [e]: t });
|
|
1966
|
+
}
|
|
1967
|
+
addChild(e, t) {
|
|
1968
|
+
e.tagname === "__proto__" && (e.tagname = "#__proto__"), e[":@"] && Object.keys(e[":@"]).length > 0 ? this.child.push({
|
|
1969
|
+
[e.tagname]: e.child,
|
|
1970
|
+
":@": e[":@"]
|
|
1971
|
+
}) : this.child.push({ [e.tagname]: e.child }), t !== void 0 && (this.child[this.child.length - 1][wt] = { startIndex: t });
|
|
1972
|
+
}
|
|
1973
|
+
static getMetaDataSymbol() {
|
|
1974
|
+
return wt;
|
|
1975
|
+
}
|
|
1976
|
+
}, Tt = class {
|
|
1977
|
+
constructor(e) {
|
|
1978
|
+
this.suppressValidationErr = !e, this.options = e;
|
|
1979
|
+
}
|
|
1980
|
+
readDocType(e, t) {
|
|
1981
|
+
let n = Object.create(null), r = 0;
|
|
1982
|
+
if (e[t + 3] === "O" && e[t + 4] === "C" && e[t + 5] === "T" && e[t + 6] === "Y" && e[t + 7] === "P" && e[t + 8] === "E") {
|
|
1983
|
+
t += 9;
|
|
1984
|
+
let i = 1, a = !1, o = !1, s = "";
|
|
1985
|
+
for (; t < e.length; t++) if (e[t] === "<" && !o) {
|
|
1986
|
+
if (a && J(e, "!ENTITY", t)) {
|
|
1987
|
+
t += 7;
|
|
1988
|
+
let i, a;
|
|
1989
|
+
if ([i, a, t] = this.readEntityExp(e, t + 1, this.suppressValidationErr), a.indexOf("&") === -1) {
|
|
1990
|
+
if (this.options.enabled !== !1 && this.options.maxEntityCount != null && r >= this.options.maxEntityCount) throw Error(`Entity count (${r + 1}) exceeds maximum allowed (${this.options.maxEntityCount})`);
|
|
1991
|
+
n[i] = a, r++;
|
|
1992
|
+
}
|
|
1993
|
+
} else if (a && J(e, "!ELEMENT", t)) {
|
|
1994
|
+
t += 8;
|
|
1995
|
+
let { index: n } = this.readElementExp(e, t + 1);
|
|
1996
|
+
t = n;
|
|
1997
|
+
} else if (a && J(e, "!ATTLIST", t)) t += 8;
|
|
1998
|
+
else if (a && J(e, "!NOTATION", t)) {
|
|
1999
|
+
t += 9;
|
|
2000
|
+
let { index: n } = this.readNotationExp(e, t + 1, this.suppressValidationErr);
|
|
2001
|
+
t = n;
|
|
2002
|
+
} else if (J(e, "!--", t)) o = !0;
|
|
2003
|
+
else throw Error("Invalid DOCTYPE");
|
|
2004
|
+
i++, s = "";
|
|
2005
|
+
} else if (e[t] === ">") {
|
|
2006
|
+
if (o ? e[t - 1] === "-" && e[t - 2] === "-" && (o = !1, i--) : i--, i === 0) break;
|
|
2007
|
+
} else e[t] === "[" ? a = !0 : s += e[t];
|
|
2008
|
+
if (i !== 0) throw Error("Unclosed DOCTYPE");
|
|
2009
|
+
} else throw Error("Invalid Tag instead of DOCTYPE");
|
|
2010
|
+
return {
|
|
2011
|
+
entities: n,
|
|
2012
|
+
i: t
|
|
2013
|
+
};
|
|
2014
|
+
}
|
|
2015
|
+
readEntityExp(e, t) {
|
|
2016
|
+
t = q(e, t);
|
|
2017
|
+
let n = t;
|
|
2018
|
+
for (; t < e.length && !/\s/.test(e[t]) && e[t] !== "\"" && e[t] !== "'";) t++;
|
|
2019
|
+
let r = e.substring(n, t);
|
|
2020
|
+
if (Y(r), t = q(e, t), !this.suppressValidationErr) {
|
|
2021
|
+
if (e.substring(t, t + 6).toUpperCase() === "SYSTEM") throw Error("External entities are not supported");
|
|
2022
|
+
if (e[t] === "%") throw Error("Parameter entities are not supported");
|
|
2023
|
+
}
|
|
2024
|
+
let i = "";
|
|
2025
|
+
if ([t, i] = this.readIdentifierVal(e, t, "entity"), this.options.enabled !== !1 && this.options.maxEntitySize != null && i.length > this.options.maxEntitySize) throw Error(`Entity "${r}" size (${i.length}) exceeds maximum allowed size (${this.options.maxEntitySize})`);
|
|
2026
|
+
return t--, [
|
|
2027
|
+
r,
|
|
2028
|
+
i,
|
|
2029
|
+
t
|
|
2030
|
+
];
|
|
2031
|
+
}
|
|
2032
|
+
readNotationExp(e, t) {
|
|
2033
|
+
t = q(e, t);
|
|
2034
|
+
let n = t;
|
|
2035
|
+
for (; t < e.length && !/\s/.test(e[t]);) t++;
|
|
2036
|
+
let r = e.substring(n, t);
|
|
2037
|
+
!this.suppressValidationErr && Y(r), t = q(e, t);
|
|
2038
|
+
let i = e.substring(t, t + 6).toUpperCase();
|
|
2039
|
+
if (!this.suppressValidationErr && i !== "SYSTEM" && i !== "PUBLIC") throw Error(`Expected SYSTEM or PUBLIC, found "${i}"`);
|
|
2040
|
+
t += i.length, t = q(e, t);
|
|
2041
|
+
let a = null, o = null;
|
|
2042
|
+
if (i === "PUBLIC") [t, a] = this.readIdentifierVal(e, t, "publicIdentifier"), t = q(e, t), (e[t] === "\"" || e[t] === "'") && ([t, o] = this.readIdentifierVal(e, t, "systemIdentifier"));
|
|
2043
|
+
else if (i === "SYSTEM" && ([t, o] = this.readIdentifierVal(e, t, "systemIdentifier"), !this.suppressValidationErr && !o)) throw Error("Missing mandatory system identifier for SYSTEM notation");
|
|
2044
|
+
return {
|
|
2045
|
+
notationName: r,
|
|
2046
|
+
publicIdentifier: a,
|
|
2047
|
+
systemIdentifier: o,
|
|
2048
|
+
index: --t
|
|
2049
|
+
};
|
|
2050
|
+
}
|
|
2051
|
+
readIdentifierVal(e, t, n) {
|
|
2052
|
+
let r = "", i = e[t];
|
|
2053
|
+
if (i !== "\"" && i !== "'") throw Error(`Expected quoted string, found "${i}"`);
|
|
2054
|
+
t++;
|
|
2055
|
+
let a = t;
|
|
2056
|
+
for (; t < e.length && e[t] !== i;) t++;
|
|
2057
|
+
if (r = e.substring(a, t), e[t] !== i) throw Error(`Unterminated ${n} value`);
|
|
2058
|
+
return t++, [t, r];
|
|
2059
|
+
}
|
|
2060
|
+
readElementExp(e, t) {
|
|
2061
|
+
t = q(e, t);
|
|
2062
|
+
let n = t;
|
|
2063
|
+
for (; t < e.length && !/\s/.test(e[t]);) t++;
|
|
2064
|
+
let r = e.substring(n, t);
|
|
2065
|
+
if (!this.suppressValidationErr && !I(r)) throw Error(`Invalid element name: "${r}"`);
|
|
2066
|
+
t = q(e, t);
|
|
2067
|
+
let i = "";
|
|
2068
|
+
if (e[t] === "E" && J(e, "MPTY", t)) t += 4;
|
|
2069
|
+
else if (e[t] === "A" && J(e, "NY", t)) t += 2;
|
|
2070
|
+
else if (e[t] === "(") {
|
|
2071
|
+
t++;
|
|
2072
|
+
let n = t;
|
|
2073
|
+
for (; t < e.length && e[t] !== ")";) t++;
|
|
2074
|
+
if (i = e.substring(n, t), e[t] !== ")") throw Error("Unterminated content model");
|
|
2075
|
+
} else if (!this.suppressValidationErr) throw Error(`Invalid Element Expression, found "${e[t]}"`);
|
|
2076
|
+
return {
|
|
2077
|
+
elementName: r,
|
|
2078
|
+
contentModel: i.trim(),
|
|
2079
|
+
index: t
|
|
2080
|
+
};
|
|
2081
|
+
}
|
|
2082
|
+
readAttlistExp(e, t) {
|
|
2083
|
+
t = q(e, t);
|
|
2084
|
+
let n = t;
|
|
2085
|
+
for (; t < e.length && !/\s/.test(e[t]);) t++;
|
|
2086
|
+
let r = e.substring(n, t);
|
|
2087
|
+
for (Y(r), t = q(e, t), n = t; t < e.length && !/\s/.test(e[t]);) t++;
|
|
2088
|
+
let i = e.substring(n, t);
|
|
2089
|
+
if (!Y(i)) throw Error(`Invalid attribute name: "${i}"`);
|
|
2090
|
+
t = q(e, t);
|
|
2091
|
+
let a = "";
|
|
2092
|
+
if (e.substring(t, t + 8).toUpperCase() === "NOTATION") {
|
|
2093
|
+
if (a = "NOTATION", t += 8, t = q(e, t), e[t] !== "(") throw Error(`Expected '(', found "${e[t]}"`);
|
|
2094
|
+
t++;
|
|
2095
|
+
let n = [];
|
|
2096
|
+
for (; t < e.length && e[t] !== ")";) {
|
|
2097
|
+
let r = t;
|
|
2098
|
+
for (; t < e.length && e[t] !== "|" && e[t] !== ")";) t++;
|
|
2099
|
+
let i = e.substring(r, t);
|
|
2100
|
+
if (i = i.trim(), !Y(i)) throw Error(`Invalid notation name: "${i}"`);
|
|
2101
|
+
n.push(i), e[t] === "|" && (t++, t = q(e, t));
|
|
2102
|
+
}
|
|
2103
|
+
if (e[t] !== ")") throw Error("Unterminated list of notations");
|
|
2104
|
+
t++, a += " (" + n.join("|") + ")";
|
|
2105
|
+
} else {
|
|
2106
|
+
let n = t;
|
|
2107
|
+
for (; t < e.length && !/\s/.test(e[t]);) t++;
|
|
2108
|
+
if (a += e.substring(n, t), !this.suppressValidationErr && ![
|
|
2109
|
+
"CDATA",
|
|
2110
|
+
"ID",
|
|
2111
|
+
"IDREF",
|
|
2112
|
+
"IDREFS",
|
|
2113
|
+
"ENTITY",
|
|
2114
|
+
"ENTITIES",
|
|
2115
|
+
"NMTOKEN",
|
|
2116
|
+
"NMTOKENS"
|
|
2117
|
+
].includes(a.toUpperCase())) throw Error(`Invalid attribute type: "${a}"`);
|
|
2118
|
+
}
|
|
2119
|
+
t = q(e, t);
|
|
2120
|
+
let o = "";
|
|
2121
|
+
return e.substring(t, t + 8).toUpperCase() === "#REQUIRED" ? (o = "#REQUIRED", t += 8) : e.substring(t, t + 7).toUpperCase() === "#IMPLIED" ? (o = "#IMPLIED", t += 7) : [t, o] = this.readIdentifierVal(e, t, "ATTLIST"), {
|
|
2122
|
+
elementName: r,
|
|
2123
|
+
attributeName: i,
|
|
2124
|
+
attributeType: a,
|
|
2125
|
+
defaultValue: o,
|
|
2126
|
+
index: t
|
|
2127
|
+
};
|
|
2128
|
+
}
|
|
2129
|
+
}, q = (e, t) => {
|
|
2130
|
+
for (; t < e.length && /\s/.test(e[t]);) t++;
|
|
2131
|
+
return t;
|
|
2132
|
+
};
|
|
2133
|
+
function J(e, t, n) {
|
|
2134
|
+
for (let r = 0; r < t.length; r++) if (t[r] !== e[n + r + 1]) return !1;
|
|
2135
|
+
return !0;
|
|
2136
|
+
}
|
|
2137
|
+
function Y(e) {
|
|
2138
|
+
if (I(e)) return e;
|
|
2139
|
+
throw Error(`Invalid entity name ${e}`);
|
|
2140
|
+
}
|
|
2141
|
+
//#endregion
|
|
2142
|
+
//#region ../../node_modules/.pnpm/strnum@2.2.3/node_modules/strnum/strnum.js
|
|
2143
|
+
var Et = /^[-+]?0x[a-fA-F0-9]+$/, Dt = /^([\-\+])?(0*)([0-9]*(\.[0-9]*)?)$/, Ot = {
|
|
2144
|
+
hex: !0,
|
|
2145
|
+
leadingZeros: !0,
|
|
2146
|
+
decimalPoint: ".",
|
|
2147
|
+
eNotation: !0,
|
|
2148
|
+
infinity: "original"
|
|
2149
|
+
};
|
|
2150
|
+
function kt(e, t = {}) {
|
|
2151
|
+
if (t = Object.assign({}, Ot, t), !e || typeof e != "string") return e;
|
|
2152
|
+
let n = e.trim();
|
|
2153
|
+
if (n.length === 0 || t.skipLike !== void 0 && t.skipLike.test(n)) return e;
|
|
2154
|
+
if (n === "0") return 0;
|
|
2155
|
+
if (t.hex && Et.test(n)) return Nt(n, 16);
|
|
2156
|
+
if (!isFinite(n)) return Pt(e, Number(n), t);
|
|
2157
|
+
if (n.includes("e") || n.includes("E")) return jt(e, n, t);
|
|
2158
|
+
{
|
|
2159
|
+
let r = Dt.exec(n);
|
|
2160
|
+
if (r) {
|
|
2161
|
+
let i = r[1] || "", a = r[2], o = Mt(r[3]), s = i ? e[a.length + 1] === "." : e[a.length] === ".";
|
|
2162
|
+
if (!t.leadingZeros && (a.length > 1 || a.length === 1 && !s)) return e;
|
|
2163
|
+
{
|
|
2164
|
+
let r = Number(n), s = String(r);
|
|
2165
|
+
if (r === 0) return r;
|
|
2166
|
+
if (s.search(/[eE]/) !== -1) return t.eNotation ? r : e;
|
|
2167
|
+
if (n.indexOf(".") !== -1) return s === "0" || s === o || s === `${i}${o}` ? r : e;
|
|
2168
|
+
let c = a ? o : n;
|
|
2169
|
+
return a ? c === s || i + c === s ? r : e : c === s || c === i + s ? r : e;
|
|
2170
|
+
}
|
|
2171
|
+
} else return e;
|
|
2172
|
+
}
|
|
2173
|
+
}
|
|
2174
|
+
var At = /^([-+])?(0*)(\d*(\.\d*)?[eE][-\+]?\d+)$/;
|
|
2175
|
+
function jt(e, t, n) {
|
|
2176
|
+
if (!n.eNotation) return e;
|
|
2177
|
+
let r = t.match(At);
|
|
2178
|
+
if (r) {
|
|
2179
|
+
let i = r[1] || "", a = r[3].indexOf("e") === -1 ? "E" : "e", o = r[2], s = i ? e[o.length + 1] === a : e[o.length] === a;
|
|
2180
|
+
return o.length > 1 && s ? e : o.length === 1 && (r[3].startsWith(`.${a}`) || r[3][0] === a) ? Number(t) : o.length > 0 ? n.leadingZeros && !s ? (t = (r[1] || "") + r[3], Number(t)) : e : Number(t);
|
|
2181
|
+
} else return e;
|
|
2182
|
+
}
|
|
2183
|
+
function Mt(e) {
|
|
2184
|
+
return e && e.indexOf(".") !== -1 ? (e = e.replace(/0+$/, ""), e === "." ? e = "0" : e[0] === "." ? e = "0" + e : e[e.length - 1] === "." && (e = e.substring(0, e.length - 1)), e) : e;
|
|
2185
|
+
}
|
|
2186
|
+
function Nt(e, t) {
|
|
2187
|
+
if (parseInt) return parseInt(e, t);
|
|
2188
|
+
if (Number.parseInt) return Number.parseInt(e, t);
|
|
2189
|
+
if (window && window.parseInt) return window.parseInt(e, t);
|
|
2190
|
+
throw Error("parseInt, Number.parseInt, window.parseInt are not supported");
|
|
2191
|
+
}
|
|
2192
|
+
function Pt(e, t, n) {
|
|
2193
|
+
let r = t === Infinity;
|
|
2194
|
+
switch (n.infinity.toLowerCase()) {
|
|
2195
|
+
case "null": return null;
|
|
2196
|
+
case "infinity": return t;
|
|
2197
|
+
case "string": return r ? "Infinity" : "-Infinity";
|
|
2198
|
+
default: return e;
|
|
2199
|
+
}
|
|
2200
|
+
}
|
|
2201
|
+
//#endregion
|
|
2202
|
+
//#region ../../node_modules/.pnpm/fast-xml-parser@5.7.2/node_modules/fast-xml-parser/src/ignoreAttributes.js
|
|
2203
|
+
function Ft(e) {
|
|
2204
|
+
return typeof e == "function" ? e : Array.isArray(e) ? (t) => {
|
|
2205
|
+
for (let n of e) if (typeof n == "string" && t === n || n instanceof RegExp && n.test(t)) return !0;
|
|
2206
|
+
} : () => !1;
|
|
2207
|
+
}
|
|
2208
|
+
//#endregion
|
|
2209
|
+
//#region ../../node_modules/.pnpm/path-expression-matcher@1.5.0/node_modules/path-expression-matcher/src/Expression.js
|
|
2210
|
+
var X = class {
|
|
2211
|
+
constructor(e, t = {}, n) {
|
|
2212
|
+
this.pattern = e, this.separator = t.separator || ".", this.segments = this._parse(e), this.data = n, this._hasDeepWildcard = this.segments.some((e) => e.type === "deep-wildcard"), this._hasAttributeCondition = this.segments.some((e) => e.attrName !== void 0), this._hasPositionSelector = this.segments.some((e) => e.position !== void 0);
|
|
2213
|
+
}
|
|
2214
|
+
_parse(e) {
|
|
2215
|
+
let t = [], n = 0, r = "";
|
|
2216
|
+
for (; n < e.length;) e[n] === this.separator ? n + 1 < e.length && e[n + 1] === this.separator ? (r.trim() && (t.push(this._parseSegment(r.trim())), r = ""), t.push({ type: "deep-wildcard" }), n += 2) : (r.trim() && t.push(this._parseSegment(r.trim())), r = "", n++) : (r += e[n], n++);
|
|
2217
|
+
return r.trim() && t.push(this._parseSegment(r.trim())), t;
|
|
2218
|
+
}
|
|
2219
|
+
_parseSegment(e) {
|
|
2220
|
+
let t = { type: "tag" }, n = null, r = e, i = e.match(/^([^\[]+)(\[[^\]]*\])(.*)$/);
|
|
2221
|
+
if (i && (r = i[1] + i[3], i[2])) {
|
|
2222
|
+
let e = i[2].slice(1, -1);
|
|
2223
|
+
e && (n = e);
|
|
2224
|
+
}
|
|
2225
|
+
let a, o = r;
|
|
2226
|
+
if (r.includes("::")) {
|
|
2227
|
+
let t = r.indexOf("::");
|
|
2228
|
+
if (a = r.substring(0, t).trim(), o = r.substring(t + 2).trim(), !a) throw Error(`Invalid namespace in pattern: ${e}`);
|
|
2229
|
+
}
|
|
2230
|
+
let s, c = null;
|
|
2231
|
+
if (o.includes(":")) {
|
|
2232
|
+
let e = o.lastIndexOf(":"), t = o.substring(0, e).trim(), n = o.substring(e + 1).trim();
|
|
2233
|
+
[
|
|
2234
|
+
"first",
|
|
2235
|
+
"last",
|
|
2236
|
+
"odd",
|
|
2237
|
+
"even"
|
|
2238
|
+
].includes(n) || /^nth\(\d+\)$/.test(n) ? (s = t, c = n) : s = o;
|
|
2239
|
+
} else s = o;
|
|
2240
|
+
if (!s) throw Error(`Invalid segment pattern: ${e}`);
|
|
2241
|
+
if (t.tag = s, a && (t.namespace = a), n) if (n.includes("=")) {
|
|
2242
|
+
let e = n.indexOf("=");
|
|
2243
|
+
t.attrName = n.substring(0, e).trim(), t.attrValue = n.substring(e + 1).trim();
|
|
2244
|
+
} else t.attrName = n.trim();
|
|
2245
|
+
if (c) {
|
|
2246
|
+
let e = c.match(/^nth\((\d+)\)$/);
|
|
2247
|
+
e ? (t.position = "nth", t.positionValue = parseInt(e[1], 10)) : t.position = c;
|
|
2248
|
+
}
|
|
2249
|
+
return t;
|
|
2250
|
+
}
|
|
2251
|
+
get length() {
|
|
2252
|
+
return this.segments.length;
|
|
2253
|
+
}
|
|
2254
|
+
hasDeepWildcard() {
|
|
2255
|
+
return this._hasDeepWildcard;
|
|
2256
|
+
}
|
|
2257
|
+
hasAttributeCondition() {
|
|
2258
|
+
return this._hasAttributeCondition;
|
|
2259
|
+
}
|
|
2260
|
+
hasPositionSelector() {
|
|
2261
|
+
return this._hasPositionSelector;
|
|
2262
|
+
}
|
|
2263
|
+
toString() {
|
|
2264
|
+
return this.pattern;
|
|
2265
|
+
}
|
|
2266
|
+
}, It = class {
|
|
2267
|
+
constructor() {
|
|
2268
|
+
this._byDepthAndTag = /* @__PURE__ */ new Map(), this._wildcardByDepth = /* @__PURE__ */ new Map(), this._deepWildcards = [], this._patterns = /* @__PURE__ */ new Set(), this._sealed = !1;
|
|
2269
|
+
}
|
|
2270
|
+
add(e) {
|
|
2271
|
+
if (this._sealed) throw TypeError("ExpressionSet is sealed. Create a new ExpressionSet to add more expressions.");
|
|
2272
|
+
if (this._patterns.has(e.pattern)) return this;
|
|
2273
|
+
if (this._patterns.add(e.pattern), e.hasDeepWildcard()) return this._deepWildcards.push(e), this;
|
|
2274
|
+
let t = e.length, n = e.segments[e.segments.length - 1]?.tag;
|
|
2275
|
+
if (!n || n === "*") this._wildcardByDepth.has(t) || this._wildcardByDepth.set(t, []), this._wildcardByDepth.get(t).push(e);
|
|
2276
|
+
else {
|
|
2277
|
+
let r = `${t}:${n}`;
|
|
2278
|
+
this._byDepthAndTag.has(r) || this._byDepthAndTag.set(r, []), this._byDepthAndTag.get(r).push(e);
|
|
2279
|
+
}
|
|
2280
|
+
return this;
|
|
2281
|
+
}
|
|
2282
|
+
addAll(e) {
|
|
2283
|
+
for (let t of e) this.add(t);
|
|
2284
|
+
return this;
|
|
2285
|
+
}
|
|
2286
|
+
has(e) {
|
|
2287
|
+
return this._patterns.has(e.pattern);
|
|
2288
|
+
}
|
|
2289
|
+
get size() {
|
|
2290
|
+
return this._patterns.size;
|
|
2291
|
+
}
|
|
2292
|
+
seal() {
|
|
2293
|
+
return this._sealed = !0, this;
|
|
2294
|
+
}
|
|
2295
|
+
get isSealed() {
|
|
2296
|
+
return this._sealed;
|
|
2297
|
+
}
|
|
2298
|
+
matchesAny(e) {
|
|
2299
|
+
return this.findMatch(e) !== null;
|
|
2300
|
+
}
|
|
2301
|
+
findMatch(e) {
|
|
2302
|
+
let t = e.getDepth(), n = `${t}:${e.getCurrentTag()}`, r = this._byDepthAndTag.get(n);
|
|
2303
|
+
if (r) {
|
|
2304
|
+
for (let t = 0; t < r.length; t++) if (e.matches(r[t])) return r[t];
|
|
2305
|
+
}
|
|
2306
|
+
let i = this._wildcardByDepth.get(t);
|
|
2307
|
+
if (i) {
|
|
2308
|
+
for (let t = 0; t < i.length; t++) if (e.matches(i[t])) return i[t];
|
|
2309
|
+
}
|
|
2310
|
+
for (let t = 0; t < this._deepWildcards.length; t++) if (e.matches(this._deepWildcards[t])) return this._deepWildcards[t];
|
|
2311
|
+
return null;
|
|
2312
|
+
}
|
|
2313
|
+
}, Lt = class {
|
|
2314
|
+
constructor(e) {
|
|
2315
|
+
this._matcher = e;
|
|
2316
|
+
}
|
|
2317
|
+
get separator() {
|
|
2318
|
+
return this._matcher.separator;
|
|
2319
|
+
}
|
|
2320
|
+
getCurrentTag() {
|
|
2321
|
+
let e = this._matcher.path;
|
|
2322
|
+
return e.length > 0 ? e[e.length - 1].tag : void 0;
|
|
2323
|
+
}
|
|
2324
|
+
getCurrentNamespace() {
|
|
2325
|
+
let e = this._matcher.path;
|
|
2326
|
+
return e.length > 0 ? e[e.length - 1].namespace : void 0;
|
|
2327
|
+
}
|
|
2328
|
+
getAttrValue(e) {
|
|
2329
|
+
let t = this._matcher.path;
|
|
2330
|
+
if (t.length !== 0) return t[t.length - 1].values?.[e];
|
|
2331
|
+
}
|
|
2332
|
+
hasAttr(e) {
|
|
2333
|
+
let t = this._matcher.path;
|
|
2334
|
+
if (t.length === 0) return !1;
|
|
2335
|
+
let n = t[t.length - 1];
|
|
2336
|
+
return n.values !== void 0 && e in n.values;
|
|
2337
|
+
}
|
|
2338
|
+
getPosition() {
|
|
2339
|
+
let e = this._matcher.path;
|
|
2340
|
+
return e.length === 0 ? -1 : e[e.length - 1].position ?? 0;
|
|
2341
|
+
}
|
|
2342
|
+
getCounter() {
|
|
2343
|
+
let e = this._matcher.path;
|
|
2344
|
+
return e.length === 0 ? -1 : e[e.length - 1].counter ?? 0;
|
|
2345
|
+
}
|
|
2346
|
+
getIndex() {
|
|
2347
|
+
return this.getPosition();
|
|
2348
|
+
}
|
|
2349
|
+
getDepth() {
|
|
2350
|
+
return this._matcher.path.length;
|
|
2351
|
+
}
|
|
2352
|
+
toString(e, t = !0) {
|
|
2353
|
+
return this._matcher.toString(e, t);
|
|
2354
|
+
}
|
|
2355
|
+
toArray() {
|
|
2356
|
+
return this._matcher.path.map((e) => e.tag);
|
|
2357
|
+
}
|
|
2358
|
+
matches(e) {
|
|
2359
|
+
return this._matcher.matches(e);
|
|
2360
|
+
}
|
|
2361
|
+
matchesAny(e) {
|
|
2362
|
+
return e.matchesAny(this._matcher);
|
|
2363
|
+
}
|
|
2364
|
+
}, Rt = class {
|
|
2365
|
+
constructor(e = {}) {
|
|
2366
|
+
this.separator = e.separator || ".", this.path = [], this.siblingStacks = [], this._pathStringCache = null, this._view = new Lt(this);
|
|
2367
|
+
}
|
|
2368
|
+
push(e, t = null, n = null) {
|
|
2369
|
+
this._pathStringCache = null, this.path.length > 0 && (this.path[this.path.length - 1].values = void 0);
|
|
2370
|
+
let r = this.path.length;
|
|
2371
|
+
this.siblingStacks[r] || (this.siblingStacks[r] = /* @__PURE__ */ new Map());
|
|
2372
|
+
let i = this.siblingStacks[r], a = n ? `${n}:${e}` : e, o = i.get(a) || 0, s = 0;
|
|
2373
|
+
for (let e of i.values()) s += e;
|
|
2374
|
+
i.set(a, o + 1);
|
|
2375
|
+
let c = {
|
|
2376
|
+
tag: e,
|
|
2377
|
+
position: s,
|
|
2378
|
+
counter: o
|
|
2379
|
+
};
|
|
2380
|
+
n != null && (c.namespace = n), t != null && (c.values = t), this.path.push(c);
|
|
2381
|
+
}
|
|
2382
|
+
pop() {
|
|
2383
|
+
if (this.path.length === 0) return;
|
|
2384
|
+
this._pathStringCache = null;
|
|
2385
|
+
let e = this.path.pop();
|
|
2386
|
+
return this.siblingStacks.length > this.path.length + 1 && (this.siblingStacks.length = this.path.length + 1), e;
|
|
2387
|
+
}
|
|
2388
|
+
updateCurrent(e) {
|
|
2389
|
+
if (this.path.length > 0) {
|
|
2390
|
+
let t = this.path[this.path.length - 1];
|
|
2391
|
+
e != null && (t.values = e);
|
|
2392
|
+
}
|
|
2393
|
+
}
|
|
2394
|
+
getCurrentTag() {
|
|
2395
|
+
return this.path.length > 0 ? this.path[this.path.length - 1].tag : void 0;
|
|
2396
|
+
}
|
|
2397
|
+
getCurrentNamespace() {
|
|
2398
|
+
return this.path.length > 0 ? this.path[this.path.length - 1].namespace : void 0;
|
|
2399
|
+
}
|
|
2400
|
+
getAttrValue(e) {
|
|
2401
|
+
if (this.path.length !== 0) return this.path[this.path.length - 1].values?.[e];
|
|
2402
|
+
}
|
|
2403
|
+
hasAttr(e) {
|
|
2404
|
+
if (this.path.length === 0) return !1;
|
|
2405
|
+
let t = this.path[this.path.length - 1];
|
|
2406
|
+
return t.values !== void 0 && e in t.values;
|
|
2407
|
+
}
|
|
2408
|
+
getPosition() {
|
|
2409
|
+
return this.path.length === 0 ? -1 : this.path[this.path.length - 1].position ?? 0;
|
|
2410
|
+
}
|
|
2411
|
+
getCounter() {
|
|
2412
|
+
return this.path.length === 0 ? -1 : this.path[this.path.length - 1].counter ?? 0;
|
|
2413
|
+
}
|
|
2414
|
+
getIndex() {
|
|
2415
|
+
return this.getPosition();
|
|
2416
|
+
}
|
|
2417
|
+
getDepth() {
|
|
2418
|
+
return this.path.length;
|
|
2419
|
+
}
|
|
2420
|
+
toString(e, t = !0) {
|
|
2421
|
+
let n = e || this.separator;
|
|
2422
|
+
if (n === this.separator && t === !0) {
|
|
2423
|
+
if (this._pathStringCache !== null) return this._pathStringCache;
|
|
2424
|
+
let e = this.path.map((e) => e.namespace ? `${e.namespace}:${e.tag}` : e.tag).join(n);
|
|
2425
|
+
return this._pathStringCache = e, e;
|
|
2426
|
+
}
|
|
2427
|
+
return this.path.map((e) => t && e.namespace ? `${e.namespace}:${e.tag}` : e.tag).join(n);
|
|
2428
|
+
}
|
|
2429
|
+
toArray() {
|
|
2430
|
+
return this.path.map((e) => e.tag);
|
|
2431
|
+
}
|
|
2432
|
+
reset() {
|
|
2433
|
+
this._pathStringCache = null, this.path = [], this.siblingStacks = [];
|
|
2434
|
+
}
|
|
2435
|
+
matches(e) {
|
|
2436
|
+
let t = e.segments;
|
|
2437
|
+
return t.length === 0 ? !1 : e.hasDeepWildcard() ? this._matchWithDeepWildcard(t) : this._matchSimple(t);
|
|
2438
|
+
}
|
|
2439
|
+
_matchSimple(e) {
|
|
2440
|
+
if (this.path.length !== e.length) return !1;
|
|
2441
|
+
for (let t = 0; t < e.length; t++) if (!this._matchSegment(e[t], this.path[t], t === this.path.length - 1)) return !1;
|
|
2442
|
+
return !0;
|
|
2443
|
+
}
|
|
2444
|
+
_matchWithDeepWildcard(e) {
|
|
2445
|
+
let t = this.path.length - 1, n = e.length - 1;
|
|
2446
|
+
for (; n >= 0 && t >= 0;) {
|
|
2447
|
+
let r = e[n];
|
|
2448
|
+
if (r.type === "deep-wildcard") {
|
|
2449
|
+
if (n--, n < 0) return !0;
|
|
2450
|
+
let r = e[n], i = !1;
|
|
2451
|
+
for (let e = t; e >= 0; e--) if (this._matchSegment(r, this.path[e], e === this.path.length - 1)) {
|
|
2452
|
+
t = e - 1, n--, i = !0;
|
|
2453
|
+
break;
|
|
2454
|
+
}
|
|
2455
|
+
if (!i) return !1;
|
|
2456
|
+
} else {
|
|
2457
|
+
if (!this._matchSegment(r, this.path[t], t === this.path.length - 1)) return !1;
|
|
2458
|
+
t--, n--;
|
|
2459
|
+
}
|
|
2460
|
+
}
|
|
2461
|
+
return n < 0;
|
|
2462
|
+
}
|
|
2463
|
+
_matchSegment(e, t, n) {
|
|
2464
|
+
if (e.tag !== "*" && e.tag !== t.tag || e.namespace !== void 0 && e.namespace !== "*" && e.namespace !== t.namespace || e.attrName !== void 0 && (!n || !t.values || !(e.attrName in t.values) || e.attrValue !== void 0 && String(t.values[e.attrName]) !== String(e.attrValue))) return !1;
|
|
2465
|
+
if (e.position !== void 0) {
|
|
2466
|
+
if (!n) return !1;
|
|
2467
|
+
let r = t.counter ?? 0;
|
|
2468
|
+
if (e.position === "first" && r !== 0 || e.position === "odd" && r % 2 != 1 || e.position === "even" && r % 2 != 0 || e.position === "nth" && r !== e.positionValue) return !1;
|
|
2469
|
+
}
|
|
2470
|
+
return !0;
|
|
2471
|
+
}
|
|
2472
|
+
matchesAny(e) {
|
|
2473
|
+
return e.matchesAny(this);
|
|
2474
|
+
}
|
|
2475
|
+
snapshot() {
|
|
2476
|
+
return {
|
|
2477
|
+
path: this.path.map((e) => ({ ...e })),
|
|
2478
|
+
siblingStacks: this.siblingStacks.map((e) => new Map(e))
|
|
2479
|
+
};
|
|
2480
|
+
}
|
|
2481
|
+
restore(e) {
|
|
2482
|
+
this._pathStringCache = null, this.path = e.path.map((e) => ({ ...e })), this.siblingStacks = e.siblingStacks.map((e) => new Map(e));
|
|
2483
|
+
}
|
|
2484
|
+
readOnly() {
|
|
2485
|
+
return this._view;
|
|
2486
|
+
}
|
|
2487
|
+
};
|
|
2488
|
+
//#endregion
|
|
2489
|
+
//#region ../../node_modules/.pnpm/fast-xml-parser@5.7.2/node_modules/fast-xml-parser/src/xmlparser/OrderedObjParser.js
|
|
2490
|
+
function zt(e, t) {
|
|
2491
|
+
if (!e) return {};
|
|
2492
|
+
let n = t.attributesGroupName ? e[t.attributesGroupName] : e;
|
|
2493
|
+
if (!n) return {};
|
|
2494
|
+
let r = {};
|
|
2495
|
+
for (let e in n) if (e.startsWith(t.attributeNamePrefix)) {
|
|
2496
|
+
let i = e.substring(t.attributeNamePrefix.length);
|
|
2497
|
+
r[i] = n[e];
|
|
2498
|
+
} else r[e] = n[e];
|
|
2499
|
+
return r;
|
|
2500
|
+
}
|
|
2501
|
+
function Bt(e) {
|
|
2502
|
+
if (!e || typeof e != "string") return;
|
|
2503
|
+
let t = e.indexOf(":");
|
|
2504
|
+
if (t !== -1 && t > 0) {
|
|
2505
|
+
let n = e.substring(0, t);
|
|
2506
|
+
if (n !== "xmlns") return n;
|
|
2507
|
+
}
|
|
2508
|
+
}
|
|
2509
|
+
var Vt = class {
|
|
2510
|
+
constructor(e, t) {
|
|
2511
|
+
this.options = e, this.currentNode = null, this.tagsNodeStack = [], this.parseXml = Kt, this.parseTextData = Ht, this.resolveNameSpace = Ut, this.buildAttributesMap = Gt, this.isItStopNode = Xt, this.replaceEntitiesValue = Jt, this.readStopNodeData = $t, this.saveTextToParentTag = Yt, this.addChild = qt, this.ignoreAttributesFn = Ft(this.options.ignoreAttributes), this.entityExpansionCount = 0, this.currentExpandedLength = 0;
|
|
2512
|
+
let n = { ...dt };
|
|
2513
|
+
this.options.entityDecoder ? this.entityDecoder = this.options.entityDecoder : (typeof this.options.htmlEntities == "object" ? n = this.options.htmlEntities : this.options.htmlEntities === !0 && (n = {
|
|
2514
|
+
...ft,
|
|
2515
|
+
...ct
|
|
2516
|
+
}), this.entityDecoder = new vt({
|
|
2517
|
+
namedEntities: {
|
|
2518
|
+
...n,
|
|
2519
|
+
...t
|
|
2520
|
+
},
|
|
2521
|
+
numericAllowed: this.options.htmlEntities,
|
|
2522
|
+
limit: {
|
|
2523
|
+
maxTotalExpansions: this.options.processEntities.maxTotalExpansions,
|
|
2524
|
+
maxExpandedLength: this.options.processEntities.maxExpandedLength,
|
|
2525
|
+
applyLimitsTo: this.options.processEntities.appliesTo
|
|
2526
|
+
}
|
|
2527
|
+
})), this.matcher = new Rt(), this.readonlyMatcher = this.matcher.readOnly(), this.isCurrentNodeStopNode = !1, this.stopNodeExpressionsSet = new It();
|
|
2528
|
+
let r = this.options.stopNodes;
|
|
2529
|
+
if (r && r.length > 0) {
|
|
2530
|
+
for (let e = 0; e < r.length; e++) {
|
|
2531
|
+
let t = r[e];
|
|
2532
|
+
typeof t == "string" ? this.stopNodeExpressionsSet.add(new X(t)) : t instanceof X && this.stopNodeExpressionsSet.add(t);
|
|
2533
|
+
}
|
|
2534
|
+
this.stopNodeExpressionsSet.seal();
|
|
2535
|
+
}
|
|
2536
|
+
}
|
|
2537
|
+
};
|
|
2538
|
+
function Ht(e, t, n, r, i, a, o) {
|
|
2539
|
+
let s = this.options;
|
|
2540
|
+
if (e !== void 0 && (s.trimValues && !r && (e = e.trim()), e.length > 0)) {
|
|
2541
|
+
o || (e = this.replaceEntitiesValue(e, t, n));
|
|
2542
|
+
let r = s.jPath ? n.toString() : n, c = s.tagValueProcessor(t, e, r, i, a);
|
|
2543
|
+
return c == null ? e : typeof c != typeof e || c !== e ? c : s.trimValues || e.trim() === e ? en(e, s.parseTagValue, s.numberParseOptions) : e;
|
|
2544
|
+
}
|
|
2545
|
+
}
|
|
2546
|
+
function Ut(e) {
|
|
2547
|
+
if (this.options.removeNSPrefix) {
|
|
2548
|
+
let t = e.split(":"), n = e.charAt(0) === "/" ? "/" : "";
|
|
2549
|
+
if (t[0] === "xmlns") return "";
|
|
2550
|
+
t.length === 2 && (e = n + t[1]);
|
|
2551
|
+
}
|
|
2552
|
+
return e;
|
|
2553
|
+
}
|
|
2554
|
+
var Wt = /* @__PURE__ */ RegExp("([^\\s=]+)\\s*(=\\s*(['\"])([\\s\\S]*?)\\3)?", "gm");
|
|
2555
|
+
function Gt(e, t, n, r = !1) {
|
|
2556
|
+
let i = this.options;
|
|
2557
|
+
if (r === !0 || i.ignoreAttributes !== !0 && typeof e == "string") {
|
|
2558
|
+
let r = Fe(e, Wt), a = r.length, o = {}, s = Array(a), c = !1, l = {};
|
|
2559
|
+
for (let e = 0; e < a; e++) {
|
|
2560
|
+
let t = this.resolveNameSpace(r[e][1]), a = r[e][4];
|
|
2561
|
+
if (t.length && a !== void 0) {
|
|
2562
|
+
let r = a;
|
|
2563
|
+
i.trimValues && (r = r.trim()), r = this.replaceEntitiesValue(r, n, this.readonlyMatcher), s[e] = r, l[t] = r, c = !0;
|
|
2564
|
+
}
|
|
2565
|
+
}
|
|
2566
|
+
c && typeof t == "object" && t.updateCurrent && t.updateCurrent(l);
|
|
2567
|
+
let u = i.jPath ? t.toString() : this.readonlyMatcher, d = !1;
|
|
2568
|
+
for (let e = 0; e < a; e++) {
|
|
2569
|
+
let t = this.resolveNameSpace(r[e][1]);
|
|
2570
|
+
if (this.ignoreAttributesFn(t, u)) continue;
|
|
2571
|
+
let n = i.attributeNamePrefix + t;
|
|
2572
|
+
if (t.length) if (i.transformAttributeName && (n = i.transformAttributeName(n)), n = tn(n, i), r[e][4] !== void 0) {
|
|
2573
|
+
let r = s[e], a = i.attributeValueProcessor(t, r, u);
|
|
2574
|
+
a == null ? o[n] = r : typeof a != typeof r || a !== r ? o[n] = a : o[n] = en(r, i.parseAttributeValue, i.numberParseOptions), d = !0;
|
|
2575
|
+
} else i.allowBooleanAttributes && (o[n] = !0, d = !0);
|
|
2576
|
+
}
|
|
2577
|
+
if (!d) return;
|
|
2578
|
+
if (i.attributesGroupName && !i.preserveOrder) {
|
|
2579
|
+
let e = {};
|
|
2580
|
+
return e[i.attributesGroupName] = o, e;
|
|
2581
|
+
}
|
|
2582
|
+
return o;
|
|
2583
|
+
}
|
|
2584
|
+
}
|
|
2585
|
+
var Kt = function(e) {
|
|
2586
|
+
e = e.replace(/\r\n?/g, "\n");
|
|
2587
|
+
let t = new K("!xml"), n = t, r = "";
|
|
2588
|
+
this.matcher.reset(), this.entityDecoder.reset(), this.entityExpansionCount = 0, this.currentExpandedLength = 0;
|
|
2589
|
+
let i = this.options, a = new Tt(i.processEntities), o = e.length;
|
|
2590
|
+
for (let s = 0; s < o; s++) if (e[s] === "<") {
|
|
2591
|
+
let c = e.charCodeAt(s + 1);
|
|
2592
|
+
if (c === 47) {
|
|
2593
|
+
let t = Z(e, ">", s, "Closing Tag is not closed."), a = e.substring(s + 2, t).trim();
|
|
2594
|
+
if (i.removeNSPrefix) {
|
|
2595
|
+
let e = a.indexOf(":");
|
|
2596
|
+
e !== -1 && (a = a.substr(e + 1));
|
|
2597
|
+
}
|
|
2598
|
+
a = $(i.transformTagName, a, "", i).tagName, n && (r = this.saveTextToParentTag(r, n, this.readonlyMatcher));
|
|
2599
|
+
let o = this.matcher.getCurrentTag();
|
|
2600
|
+
if (a && i.unpairedTagsSet.has(a)) throw Error(`Unpaired tag can not be used as closing tag: </${a}>`);
|
|
2601
|
+
o && i.unpairedTagsSet.has(o) && (this.matcher.pop(), this.tagsNodeStack.pop()), this.matcher.pop(), this.isCurrentNodeStopNode = !1, n = this.tagsNodeStack.pop(), r = "", s = t;
|
|
2602
|
+
} else if (c === 63) {
|
|
2603
|
+
let t = Q(e, s, !1, "?>");
|
|
2604
|
+
if (!t) throw Error("Pi Tag is not closed.");
|
|
2605
|
+
r = this.saveTextToParentTag(r, n, this.readonlyMatcher);
|
|
2606
|
+
let a = this.buildAttributesMap(t.tagExp, this.matcher, t.tagName, !0);
|
|
2607
|
+
if (a) {
|
|
2608
|
+
let e = a[this.options.attributeNamePrefix + "version"];
|
|
2609
|
+
this.entityDecoder.setXmlVersion(Number(e) || 1);
|
|
2610
|
+
}
|
|
2611
|
+
if (!(i.ignoreDeclaration && t.tagName === "?xml" || i.ignorePiTags)) {
|
|
2612
|
+
let e = new K(t.tagName);
|
|
2613
|
+
e.add(i.textNodeName, ""), t.tagName !== t.tagExp && t.attrExpPresent && i.ignoreAttributes !== !0 && (e[":@"] = a), this.addChild(n, e, this.readonlyMatcher, s);
|
|
2614
|
+
}
|
|
2615
|
+
s = t.closeIndex + 1;
|
|
2616
|
+
} else if (c === 33 && e.charCodeAt(s + 2) === 45 && e.charCodeAt(s + 3) === 45) {
|
|
2617
|
+
let t = Z(e, "-->", s + 4, "Comment is not closed.");
|
|
2618
|
+
if (i.commentPropName) {
|
|
2619
|
+
let a = e.substring(s + 4, t - 2);
|
|
2620
|
+
r = this.saveTextToParentTag(r, n, this.readonlyMatcher), n.add(i.commentPropName, [{ [i.textNodeName]: a }]);
|
|
2621
|
+
}
|
|
2622
|
+
s = t;
|
|
2623
|
+
} else if (c === 33 && e.charCodeAt(s + 2) === 68) {
|
|
2624
|
+
let t = a.readDocType(e, s);
|
|
2625
|
+
this.entityDecoder.addInputEntities(t.entities), s = t.i;
|
|
2626
|
+
} else if (c === 33 && e.charCodeAt(s + 2) === 91) {
|
|
2627
|
+
let t = Z(e, "]]>", s, "CDATA is not closed.") - 2, a = e.substring(s + 9, t);
|
|
2628
|
+
r = this.saveTextToParentTag(r, n, this.readonlyMatcher);
|
|
2629
|
+
let o = this.parseTextData(a, n.tagname, this.readonlyMatcher, !0, !1, !0, !0);
|
|
2630
|
+
o ??= "", i.cdataPropName ? n.add(i.cdataPropName, [{ [i.textNodeName]: a }]) : n.add(i.textNodeName, o), s = t + 2;
|
|
2631
|
+
} else {
|
|
2632
|
+
let a = Q(e, s, i.removeNSPrefix);
|
|
2633
|
+
if (!a) {
|
|
2634
|
+
let t = e.substring(Math.max(0, s - 50), Math.min(o, s + 50));
|
|
2635
|
+
throw Error(`readTagExp returned undefined at position ${s}. Context: "${t}"`);
|
|
2636
|
+
}
|
|
2637
|
+
let c = a.tagName, l = a.rawTagName, u = a.tagExp, d = a.attrExpPresent, f = a.closeIndex;
|
|
2638
|
+
if ({tagName: c, tagExp: u} = $(i.transformTagName, c, u, i), i.strictReservedNames && (c === i.commentPropName || c === i.cdataPropName || c === i.textNodeName || c === i.attributesGroupName)) throw Error(`Invalid tag name: ${c}`);
|
|
2639
|
+
n && r && n.tagname !== "!xml" && (r = this.saveTextToParentTag(r, n, this.readonlyMatcher, !1));
|
|
2640
|
+
let p = n;
|
|
2641
|
+
p && i.unpairedTagsSet.has(p.tagname) && (n = this.tagsNodeStack.pop(), this.matcher.pop());
|
|
2642
|
+
let m = !1;
|
|
2643
|
+
u.length > 0 && u.lastIndexOf("/") === u.length - 1 && (m = !0, c[c.length - 1] === "/" ? (c = c.substr(0, c.length - 1), u = c) : u = u.substr(0, u.length - 1), d = c !== u);
|
|
2644
|
+
let h = null, g;
|
|
2645
|
+
g = Bt(l), c !== t.tagname && this.matcher.push(c, {}, g), c !== u && d && (h = this.buildAttributesMap(u, this.matcher, c), h && zt(h, i)), c !== t.tagname && (this.isCurrentNodeStopNode = this.isItStopNode());
|
|
2646
|
+
let _ = s;
|
|
2647
|
+
if (this.isCurrentNodeStopNode) {
|
|
2648
|
+
let t = "";
|
|
2649
|
+
if (m) s = a.closeIndex;
|
|
2650
|
+
else if (i.unpairedTagsSet.has(c)) s = a.closeIndex;
|
|
2651
|
+
else {
|
|
2652
|
+
let n = this.readStopNodeData(e, l, f + 1);
|
|
2653
|
+
if (!n) throw Error(`Unexpected end of ${l}`);
|
|
2654
|
+
s = n.i, t = n.tagContent;
|
|
2655
|
+
}
|
|
2656
|
+
let r = new K(c);
|
|
2657
|
+
h && (r[":@"] = h), r.add(i.textNodeName, t), this.matcher.pop(), this.isCurrentNodeStopNode = !1, this.addChild(n, r, this.readonlyMatcher, _);
|
|
2658
|
+
} else {
|
|
2659
|
+
if (m) {
|
|
2660
|
+
({tagName: c, tagExp: u} = $(i.transformTagName, c, u, i));
|
|
2661
|
+
let e = new K(c);
|
|
2662
|
+
h && (e[":@"] = h), this.addChild(n, e, this.readonlyMatcher, _), this.matcher.pop(), this.isCurrentNodeStopNode = !1;
|
|
2663
|
+
} else if (i.unpairedTagsSet.has(c)) {
|
|
2664
|
+
let e = new K(c);
|
|
2665
|
+
h && (e[":@"] = h), this.addChild(n, e, this.readonlyMatcher, _), this.matcher.pop(), this.isCurrentNodeStopNode = !1, s = a.closeIndex;
|
|
2666
|
+
continue;
|
|
2667
|
+
} else {
|
|
2668
|
+
let e = new K(c);
|
|
2669
|
+
if (this.tagsNodeStack.length > i.maxNestedTags) throw Error("Maximum nested tags exceeded");
|
|
2670
|
+
this.tagsNodeStack.push(n), h && (e[":@"] = h), this.addChild(n, e, this.readonlyMatcher, _), n = e;
|
|
2671
|
+
}
|
|
2672
|
+
r = "", s = f;
|
|
2673
|
+
}
|
|
2674
|
+
}
|
|
2675
|
+
} else r += e[s];
|
|
2676
|
+
return t.child;
|
|
2677
|
+
};
|
|
2678
|
+
function qt(e, t, n, r) {
|
|
2679
|
+
this.options.captureMetaData || (r = void 0);
|
|
2680
|
+
let i = this.options.jPath ? n.toString() : n, a = this.options.updateTag(t.tagname, i, t[":@"]);
|
|
2681
|
+
a === !1 || (typeof a == "string" && (t.tagname = a), e.addChild(t, r));
|
|
2682
|
+
}
|
|
2683
|
+
function Jt(e, t, n) {
|
|
2684
|
+
let r = this.options.processEntities;
|
|
2685
|
+
if (!r || !r.enabled) return e;
|
|
2686
|
+
if (r.allowedTags) {
|
|
2687
|
+
let i = this.options.jPath ? n.toString() : n;
|
|
2688
|
+
if (!(Array.isArray(r.allowedTags) ? r.allowedTags.includes(t) : r.allowedTags(t, i))) return e;
|
|
2689
|
+
}
|
|
2690
|
+
if (r.tagFilter) {
|
|
2691
|
+
let i = this.options.jPath ? n.toString() : n;
|
|
2692
|
+
if (!r.tagFilter(t, i)) return e;
|
|
2693
|
+
}
|
|
2694
|
+
return this.entityDecoder.decode(e);
|
|
2695
|
+
}
|
|
2696
|
+
function Yt(e, t, n, r) {
|
|
2697
|
+
return e &&= (r === void 0 && (r = t.child.length === 0), e = this.parseTextData(e, t.tagname, n, !1, t[":@"] ? Object.keys(t[":@"]).length !== 0 : !1, r), e !== void 0 && e !== "" && t.add(this.options.textNodeName, e), ""), e;
|
|
2698
|
+
}
|
|
2699
|
+
function Xt() {
|
|
2700
|
+
return this.stopNodeExpressionsSet.size === 0 ? !1 : this.matcher.matchesAny(this.stopNodeExpressionsSet);
|
|
2701
|
+
}
|
|
2702
|
+
function Zt(e, t, n = ">") {
|
|
2703
|
+
let r = 0, i = e.length, a = n.charCodeAt(0), o = n.length > 1 ? n.charCodeAt(1) : -1, s = "", c = t;
|
|
2704
|
+
for (let n = t; n < i; n++) {
|
|
2705
|
+
let t = e.charCodeAt(n);
|
|
2706
|
+
if (r) t === r && (r = 0);
|
|
2707
|
+
else if (t === 34 || t === 39) r = t;
|
|
2708
|
+
else if (t === a) if (o !== -1) {
|
|
2709
|
+
if (e.charCodeAt(n + 1) === o) return s += e.substring(c, n), {
|
|
2710
|
+
data: s,
|
|
2711
|
+
index: n
|
|
2712
|
+
};
|
|
2713
|
+
} else return s += e.substring(c, n), {
|
|
2714
|
+
data: s,
|
|
2715
|
+
index: n
|
|
2716
|
+
};
|
|
2717
|
+
else t === 9 && !r && (s += e.substring(c, n) + " ", c = n + 1);
|
|
2718
|
+
}
|
|
2719
|
+
}
|
|
2720
|
+
function Z(e, t, n, r) {
|
|
2721
|
+
let i = e.indexOf(t, n);
|
|
2722
|
+
if (i === -1) throw Error(r);
|
|
2723
|
+
return i + t.length - 1;
|
|
2724
|
+
}
|
|
2725
|
+
function Qt(e, t, n, r) {
|
|
2726
|
+
let i = e.indexOf(t, n);
|
|
2727
|
+
if (i === -1) throw Error(r);
|
|
2728
|
+
return i;
|
|
2729
|
+
}
|
|
2730
|
+
function Q(e, t, n, r = ">") {
|
|
2731
|
+
let i = Zt(e, t + 1, r);
|
|
2732
|
+
if (!i) return;
|
|
2733
|
+
let a = i.data, o = i.index, s = a.search(/\s/), c = a, l = !0;
|
|
2734
|
+
s !== -1 && (c = a.substring(0, s), a = a.substring(s + 1).trimStart());
|
|
2735
|
+
let u = c;
|
|
2736
|
+
if (n) {
|
|
2737
|
+
let e = c.indexOf(":");
|
|
2738
|
+
e !== -1 && (c = c.substr(e + 1), l = c !== i.data.substr(e + 1));
|
|
2739
|
+
}
|
|
2740
|
+
return {
|
|
2741
|
+
tagName: c,
|
|
2742
|
+
tagExp: a,
|
|
2743
|
+
closeIndex: o,
|
|
2744
|
+
attrExpPresent: l,
|
|
2745
|
+
rawTagName: u
|
|
2746
|
+
};
|
|
2747
|
+
}
|
|
2748
|
+
function $t(e, t, n) {
|
|
2749
|
+
let r = n, i = 1, a = e.length;
|
|
2750
|
+
for (; n < a; n++) if (e[n] === "<") {
|
|
2751
|
+
let a = e.charCodeAt(n + 1);
|
|
2752
|
+
if (a === 47) {
|
|
2753
|
+
let a = Qt(e, ">", n, `${t} is not closed`);
|
|
2754
|
+
if (e.substring(n + 2, a).trim() === t && (i--, i === 0)) return {
|
|
2755
|
+
tagContent: e.substring(r, n),
|
|
2756
|
+
i: a
|
|
2757
|
+
};
|
|
2758
|
+
n = a;
|
|
2759
|
+
} else if (a === 63) n = Z(e, "?>", n + 1, "StopNode is not closed.");
|
|
2760
|
+
else if (a === 33 && e.charCodeAt(n + 2) === 45 && e.charCodeAt(n + 3) === 45) n = Z(e, "-->", n + 3, "StopNode is not closed.");
|
|
2761
|
+
else if (a === 33 && e.charCodeAt(n + 2) === 91) n = Z(e, "]]>", n, "StopNode is not closed.") - 2;
|
|
2762
|
+
else {
|
|
2763
|
+
let r = Q(e, n, ">");
|
|
2764
|
+
r && ((r && r.tagName) === t && r.tagExp[r.tagExp.length - 1] !== "/" && i++, n = r.closeIndex);
|
|
2765
|
+
}
|
|
2766
|
+
}
|
|
2767
|
+
}
|
|
2768
|
+
function en(e, t, n) {
|
|
2769
|
+
if (t && typeof e == "string") {
|
|
2770
|
+
let t = e.trim();
|
|
2771
|
+
return t === "true" ? !0 : t === "false" ? !1 : kt(e, n);
|
|
2772
|
+
} else if (Ie(e)) return e;
|
|
2773
|
+
else return "";
|
|
2774
|
+
}
|
|
2775
|
+
function $(e, t, n, r) {
|
|
2776
|
+
if (e) {
|
|
2777
|
+
let r = e(t);
|
|
2778
|
+
n === t && (n = r), t = r;
|
|
2779
|
+
}
|
|
2780
|
+
return t = tn(t, r), {
|
|
2781
|
+
tagName: t,
|
|
2782
|
+
tagExp: n
|
|
2783
|
+
};
|
|
2784
|
+
}
|
|
2785
|
+
function tn(e, t) {
|
|
2786
|
+
if (Le.includes(e)) throw Error(`[SECURITY] Invalid name: "${e}" is a reserved JavaScript keyword that could cause prototype pollution`);
|
|
2787
|
+
return L.includes(e) ? t.onDangerousProperty(e) : e;
|
|
2788
|
+
}
|
|
2789
|
+
//#endregion
|
|
2790
|
+
//#region ../../node_modules/.pnpm/fast-xml-parser@5.7.2/node_modules/fast-xml-parser/src/xmlparser/node2json.js
|
|
2791
|
+
var nn = K.getMetaDataSymbol();
|
|
2792
|
+
function rn(e, t) {
|
|
2793
|
+
if (!e || typeof e != "object") return {};
|
|
2794
|
+
if (!t) return e;
|
|
2795
|
+
let n = {};
|
|
2796
|
+
for (let r in e) if (r.startsWith(t)) {
|
|
2797
|
+
let i = r.substring(t.length);
|
|
2798
|
+
n[i] = e[r];
|
|
2799
|
+
} else n[r] = e[r];
|
|
2800
|
+
return n;
|
|
2801
|
+
}
|
|
2802
|
+
function an(e, t, n, r) {
|
|
2803
|
+
return on(e, t, n, r);
|
|
2804
|
+
}
|
|
2805
|
+
function on(e, t, n, r) {
|
|
2806
|
+
let i, a = {};
|
|
2807
|
+
for (let o = 0; o < e.length; o++) {
|
|
2808
|
+
let s = e[o], c = sn(s);
|
|
2809
|
+
if (c !== void 0 && c !== t.textNodeName) {
|
|
2810
|
+
let e = rn(s[":@"] || {}, t.attributeNamePrefix);
|
|
2811
|
+
n.push(c, e);
|
|
2812
|
+
}
|
|
2813
|
+
if (c === t.textNodeName) i === void 0 ? i = s[c] : i += "" + s[c];
|
|
2814
|
+
else if (c === void 0) continue;
|
|
2815
|
+
else if (s[c]) {
|
|
2816
|
+
let e = on(s[c], t, n, r), i = ln(e, t);
|
|
2817
|
+
if (s[":@"] ? cn(e, s[":@"], r, t) : Object.keys(e).length === 1 && e[t.textNodeName] !== void 0 && !t.alwaysCreateTextNode ? e = e[t.textNodeName] : Object.keys(e).length === 0 && (t.alwaysCreateTextNode ? e[t.textNodeName] = "" : e = ""), s[nn] !== void 0 && typeof e == "object" && e && (e[nn] = s[nn]), a[c] !== void 0 && Object.prototype.hasOwnProperty.call(a, c)) Array.isArray(a[c]) || (a[c] = [a[c]]), a[c].push(e);
|
|
2818
|
+
else {
|
|
2819
|
+
let n = t.jPath ? r.toString() : r;
|
|
2820
|
+
t.isArray(c, n, i) ? a[c] = [e] : a[c] = e;
|
|
2821
|
+
}
|
|
2822
|
+
c !== void 0 && c !== t.textNodeName && n.pop();
|
|
2823
|
+
}
|
|
2824
|
+
}
|
|
2825
|
+
return typeof i == "string" ? i.length > 0 && (a[t.textNodeName] = i) : i !== void 0 && (a[t.textNodeName] = i), a;
|
|
2826
|
+
}
|
|
2827
|
+
function sn(e) {
|
|
2828
|
+
let t = Object.keys(e);
|
|
2829
|
+
for (let e = 0; e < t.length; e++) {
|
|
2830
|
+
let n = t[e];
|
|
2831
|
+
if (n !== ":@") return n;
|
|
2832
|
+
}
|
|
2833
|
+
}
|
|
2834
|
+
function cn(e, t, n, r) {
|
|
2835
|
+
if (t) {
|
|
2836
|
+
let i = Object.keys(t), a = i.length;
|
|
2837
|
+
for (let o = 0; o < a; o++) {
|
|
2838
|
+
let a = i[o], s = a.startsWith(r.attributeNamePrefix) ? a.substring(r.attributeNamePrefix.length) : a, c = r.jPath ? n.toString() + "." + s : n;
|
|
2839
|
+
r.isArray(a, c, !0, !0) ? e[a] = [t[a]] : e[a] = t[a];
|
|
2840
|
+
}
|
|
2841
|
+
}
|
|
2842
|
+
}
|
|
2843
|
+
function ln(e, t) {
|
|
2844
|
+
let { textNodeName: n } = t, r = Object.keys(e).length;
|
|
2845
|
+
return !!(r === 0 || r === 1 && (e[n] || typeof e[n] == "boolean" || e[n] === 0));
|
|
2846
|
+
}
|
|
2847
|
+
//#endregion
|
|
2848
|
+
//#region ../../node_modules/.pnpm/fast-xml-parser@5.7.2/node_modules/fast-xml-parser/src/xmlparser/XMLParser.js
|
|
2849
|
+
var un = class {
|
|
2850
|
+
constructor(e) {
|
|
2851
|
+
this.externalEntities = {}, this.options = Ct(e);
|
|
2852
|
+
}
|
|
2853
|
+
parse(e, t) {
|
|
2854
|
+
if (typeof e != "string" && e.toString) e = e.toString();
|
|
2855
|
+
else if (typeof e != "string") throw Error("XML data is accepted in String or Bytes[] form.");
|
|
2856
|
+
if (t) {
|
|
2857
|
+
t === !0 && (t = {});
|
|
2858
|
+
let n = ze(e, t);
|
|
2859
|
+
if (n !== !0) throw Error(`${n.err.msg}:${n.err.line}:${n.err.col}`);
|
|
2860
|
+
}
|
|
2861
|
+
let n = new Vt(this.options, this.externalEntities), r = n.parseXml(e);
|
|
2862
|
+
return this.options.preserveOrder || r === void 0 ? r : an(r, this.options, n.matcher, n.readonlyMatcher);
|
|
2863
|
+
}
|
|
2864
|
+
addEntity(e, t) {
|
|
2865
|
+
if (t.indexOf("&") !== -1) throw Error("Entity value can't have '&'");
|
|
2866
|
+
if (e.indexOf("&") !== -1 || e.indexOf(";") !== -1) throw Error("An entity must be set without '&' and ';'. Eg. use '#xD' for '
'");
|
|
2867
|
+
if (t === "&") throw Error("An entity with value '&' is not permitted");
|
|
2868
|
+
this.externalEntities[e] = t;
|
|
2869
|
+
}
|
|
2870
|
+
static getMetaDataSymbol() {
|
|
2871
|
+
return K.getMetaDataSymbol();
|
|
2872
|
+
}
|
|
2873
|
+
}, dn = class {
|
|
2874
|
+
axiosClient;
|
|
2875
|
+
baseURI;
|
|
2876
|
+
xmlParser;
|
|
2877
|
+
signingKey;
|
|
2878
|
+
ALGORITHM = "sha512";
|
|
2879
|
+
TTL = 1200;
|
|
2880
|
+
HASH_LENGTH = 32;
|
|
2881
|
+
ITERATION_COUNT = 1e4;
|
|
2882
|
+
constructor({ axiosClient: e, baseURI: t }) {
|
|
2883
|
+
this.axiosClient = e, this.baseURI = t, this.xmlParser = new un();
|
|
2884
|
+
}
|
|
2885
|
+
async signUrl(e, t) {
|
|
2886
|
+
let n = new URL(e);
|
|
2887
|
+
n.searchParams.set("OC-Credential", t), n.searchParams.set("OC-Date", (/* @__PURE__ */ new Date()).toISOString()), n.searchParams.set("OC-Expires", this.TTL.toString()), n.searchParams.set("OC-Verb", "GET");
|
|
2888
|
+
let r = await this.createHashedKey(n.toString());
|
|
2889
|
+
return n.searchParams.set("OC-Algo", `PBKDF2/${this.ITERATION_COUNT}-SHA512`), n.searchParams.set("OC-Signature", r), n.toString();
|
|
2890
|
+
}
|
|
2891
|
+
async getSignKey() {
|
|
2892
|
+
if (this.signingKey) return this.signingKey;
|
|
2893
|
+
let e = await this.axiosClient.get(a(this.baseURI, "ocs/v1.php/cloud/user/signing-key"), { headers: { "Content-Type": "application/x-www-form-urlencoded" } }), t = this.xmlParser.parse(e.data);
|
|
2894
|
+
return this.signingKey = t.ocs.data["signing-key"], this.signingKey;
|
|
2895
|
+
}
|
|
2896
|
+
async createHashedKey(e) {
|
|
2897
|
+
return je(e, await this.getSignKey(), this.ITERATION_COUNT, this.HASH_LENGTH, this.ALGORITHM).toString("hex");
|
|
2898
|
+
}
|
|
2899
|
+
}, fn = (e, t) => {
|
|
2900
|
+
let n = new URL(e);
|
|
2901
|
+
n.pathname = [
|
|
2902
|
+
...n.pathname.split("/"),
|
|
2903
|
+
"ocs",
|
|
2904
|
+
"v1.php"
|
|
2905
|
+
].filter(Boolean).join("/");
|
|
2906
|
+
let r = n.href, i = v(r, t), a = new dn({
|
|
2907
|
+
baseURI: e,
|
|
2908
|
+
axiosClient: t
|
|
2909
|
+
});
|
|
2910
|
+
return {
|
|
2911
|
+
getCapabilities: () => i.getCapabilities(),
|
|
2912
|
+
signUrl: (e, t) => a.signUrl(e, t)
|
|
2913
|
+
};
|
|
2914
|
+
};
|
|
2915
|
+
//#endregion
|
|
2916
|
+
export { v as a, X as i, un as n, Rt as r, fn as t };
|