@gnai/message-content-renderer 0.1.9 → 0.1.11
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.
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import { defineComponent as
|
|
3
|
-
const
|
|
1
|
+
import * as hu from "vue";
|
|
2
|
+
import { defineComponent as _u, ref as vu, shallowRef as _0, onMounted as k0, watch as Nt, onUnmounted as y0, h as $e, nextTick as C0, createBlock as Q, openBlock as L, Teleport as v0, createVNode as au, Transition as D0, withCtx as E0, createElementBlock as $, createCommentVNode as iu, createElementVNode as tu, withModifiers as Ve, unref as eu, computed as J, normalizeClass as Nu, withDirectives as F0, vShow as A0, toDisplayString as w0, Fragment as He, renderList as Ue } from "vue";
|
|
3
|
+
const Bt = /^[a-z0-9]+(-[a-z0-9]+)*$/, Xu = (u, e, t, n = "") => {
|
|
4
4
|
const r = u.split(":");
|
|
5
5
|
if (u.slice(0, 1) === "@") {
|
|
6
6
|
if (r.length < 2 || r.length > 3)
|
|
@@ -38,7 +38,7 @@ const Nt = /^[a-z0-9]+(-[a-z0-9]+)*$/, Xu = (u, e, t, n = "") => {
|
|
|
38
38
|
return null;
|
|
39
39
|
}, Uu = (u, e) => u ? !!// Check prefix: cannot be empty, unless allowSimpleName is enabled
|
|
40
40
|
// Check name: cannot be empty
|
|
41
|
-
((e && u.prefix === "" || u.prefix) && u.name) : !1,
|
|
41
|
+
((e && u.prefix === "" || u.prefix) && u.name) : !1, Lt = Object.freeze(
|
|
42
42
|
{
|
|
43
43
|
left: 0,
|
|
44
44
|
top: 0,
|
|
@@ -50,26 +50,26 @@ const Nt = /^[a-z0-9]+(-[a-z0-9]+)*$/, Xu = (u, e, t, n = "") => {
|
|
|
50
50
|
vFlip: !1,
|
|
51
51
|
hFlip: !1
|
|
52
52
|
}), ue = Object.freeze({
|
|
53
|
-
...
|
|
53
|
+
...Lt,
|
|
54
54
|
...Wu
|
|
55
55
|
}), _e = Object.freeze({
|
|
56
56
|
...ue,
|
|
57
57
|
body: "",
|
|
58
58
|
hidden: !1
|
|
59
59
|
});
|
|
60
|
-
function
|
|
60
|
+
function S0(u, e) {
|
|
61
61
|
const t = {};
|
|
62
62
|
!u.hFlip != !e.hFlip && (t.hFlip = !0), !u.vFlip != !e.vFlip && (t.vFlip = !0);
|
|
63
63
|
const n = ((u.rotate || 0) + (e.rotate || 0)) % 4;
|
|
64
64
|
return n && (t.rotate = n), t;
|
|
65
65
|
}
|
|
66
66
|
function Ze(u, e) {
|
|
67
|
-
const t =
|
|
67
|
+
const t = S0(u, e);
|
|
68
68
|
for (const n in _e)
|
|
69
69
|
n in Wu ? n in u && !(n in t) && (t[n] = Wu[n]) : n in e ? t[n] = e[n] : n in u && (t[n] = u[n]);
|
|
70
70
|
return t;
|
|
71
71
|
}
|
|
72
|
-
function
|
|
72
|
+
function T0(u, e) {
|
|
73
73
|
const t = u.icons, n = u.aliases || /* @__PURE__ */ Object.create(null), r = /* @__PURE__ */ Object.create(null);
|
|
74
74
|
function o(c) {
|
|
75
75
|
if (t[c])
|
|
@@ -83,7 +83,7 @@ function w0(u, e) {
|
|
|
83
83
|
}
|
|
84
84
|
return Object.keys(t).concat(Object.keys(n)).forEach(o), r;
|
|
85
85
|
}
|
|
86
|
-
function
|
|
86
|
+
function I0(u, e, t) {
|
|
87
87
|
const n = u.icons, r = u.aliases || /* @__PURE__ */ Object.create(null);
|
|
88
88
|
let o = {};
|
|
89
89
|
function c(i) {
|
|
@@ -94,25 +94,25 @@ function S0(u, e, t) {
|
|
|
94
94
|
}
|
|
95
95
|
return c(e), t.forEach(c), Ze(u, o);
|
|
96
96
|
}
|
|
97
|
-
function
|
|
97
|
+
function Ot(u, e) {
|
|
98
98
|
const t = [];
|
|
99
99
|
if (typeof u != "object" || typeof u.icons != "object")
|
|
100
100
|
return t;
|
|
101
101
|
u.not_found instanceof Array && u.not_found.forEach((r) => {
|
|
102
102
|
e(r, null), t.push(r);
|
|
103
103
|
});
|
|
104
|
-
const n =
|
|
104
|
+
const n = T0(u);
|
|
105
105
|
for (const r in n) {
|
|
106
106
|
const o = n[r];
|
|
107
|
-
o && (e(r,
|
|
107
|
+
o && (e(r, I0(u, r, o)), t.push(r));
|
|
108
108
|
}
|
|
109
109
|
return t;
|
|
110
110
|
}
|
|
111
|
-
const
|
|
111
|
+
const N0 = {
|
|
112
112
|
provider: "",
|
|
113
113
|
aliases: {},
|
|
114
114
|
not_found: {},
|
|
115
|
-
...
|
|
115
|
+
...Lt
|
|
116
116
|
};
|
|
117
117
|
function ce(u, e) {
|
|
118
118
|
for (const t in e)
|
|
@@ -120,11 +120,11 @@ function ce(u, e) {
|
|
|
120
120
|
return !1;
|
|
121
121
|
return !0;
|
|
122
122
|
}
|
|
123
|
-
function
|
|
123
|
+
function Mt(u) {
|
|
124
124
|
if (typeof u != "object" || u === null)
|
|
125
125
|
return null;
|
|
126
126
|
const e = u;
|
|
127
|
-
if (typeof e.prefix != "string" || !u.icons || typeof u.icons != "object" || !ce(u,
|
|
127
|
+
if (typeof e.prefix != "string" || !u.icons || typeof u.icons != "object" || !ce(u, N0))
|
|
128
128
|
return null;
|
|
129
129
|
const t = e.icons;
|
|
130
130
|
for (const r in t) {
|
|
@@ -157,7 +157,7 @@ function Ot(u) {
|
|
|
157
157
|
return e;
|
|
158
158
|
}
|
|
159
159
|
const Ge = /* @__PURE__ */ Object.create(null);
|
|
160
|
-
function
|
|
160
|
+
function B0(u, e) {
|
|
161
161
|
return {
|
|
162
162
|
provider: u,
|
|
163
163
|
prefix: e,
|
|
@@ -165,16 +165,16 @@ function I0(u, e) {
|
|
|
165
165
|
missing: /* @__PURE__ */ new Set()
|
|
166
166
|
};
|
|
167
167
|
}
|
|
168
|
-
function
|
|
168
|
+
function Eu(u, e) {
|
|
169
169
|
const t = Ge[u] || (Ge[u] = /* @__PURE__ */ Object.create(null));
|
|
170
|
-
return t[e] || (t[e] =
|
|
170
|
+
return t[e] || (t[e] = B0(u, e));
|
|
171
171
|
}
|
|
172
172
|
function Pt(u, e) {
|
|
173
|
-
return
|
|
173
|
+
return Mt(e) ? Ot(e, (t, n) => {
|
|
174
174
|
n ? u.icons[t] = n : u.missing.add(t);
|
|
175
175
|
}) : [];
|
|
176
176
|
}
|
|
177
|
-
function
|
|
177
|
+
function L0(u, e, t) {
|
|
178
178
|
try {
|
|
179
179
|
if (typeof t.body == "string")
|
|
180
180
|
return u.icons[e] = { ...t }, !0;
|
|
@@ -183,30 +183,30 @@ function N0(u, e, t) {
|
|
|
183
183
|
return !1;
|
|
184
184
|
}
|
|
185
185
|
let Bu = !1;
|
|
186
|
-
function
|
|
186
|
+
function jt(u) {
|
|
187
187
|
return typeof u == "boolean" && (Bu = u), Bu;
|
|
188
188
|
}
|
|
189
|
-
function
|
|
189
|
+
function O0(u) {
|
|
190
190
|
const e = typeof u == "string" ? Xu(u, !0, Bu) : u;
|
|
191
191
|
if (e) {
|
|
192
|
-
const t =
|
|
192
|
+
const t = Eu(e.provider, e.prefix), n = e.name;
|
|
193
193
|
return t.icons[n] || (t.missing.has(n) ? null : void 0);
|
|
194
194
|
}
|
|
195
195
|
}
|
|
196
|
-
function
|
|
196
|
+
function M0(u, e) {
|
|
197
197
|
const t = Xu(u, !0, Bu);
|
|
198
198
|
if (!t)
|
|
199
199
|
return !1;
|
|
200
|
-
const n =
|
|
201
|
-
return e ?
|
|
200
|
+
const n = Eu(t.provider, t.prefix);
|
|
201
|
+
return e ? L0(n, t.name, e) : (n.missing.add(t.name), !0);
|
|
202
202
|
}
|
|
203
|
-
function
|
|
203
|
+
function P0(u, e) {
|
|
204
204
|
if (typeof u != "object")
|
|
205
205
|
return !1;
|
|
206
206
|
if (typeof e != "string" && (e = u.provider || ""), Bu && !e && !u.prefix) {
|
|
207
207
|
let r = !1;
|
|
208
|
-
return
|
|
209
|
-
|
|
208
|
+
return Mt(u) && (u.prefix = "", Ot(u, (o, c) => {
|
|
209
|
+
M0(o, c) && (r = !0);
|
|
210
210
|
})), r;
|
|
211
211
|
}
|
|
212
212
|
const t = u.prefix;
|
|
@@ -215,18 +215,18 @@ function O0(u, e) {
|
|
|
215
215
|
name: "a"
|
|
216
216
|
}))
|
|
217
217
|
return !1;
|
|
218
|
-
const n =
|
|
218
|
+
const n = Eu(e, t);
|
|
219
219
|
return !!Pt(n, u);
|
|
220
220
|
}
|
|
221
|
-
const
|
|
221
|
+
const zt = Object.freeze({
|
|
222
222
|
width: null,
|
|
223
223
|
height: null
|
|
224
|
-
}),
|
|
224
|
+
}), Rt = Object.freeze({
|
|
225
225
|
// Dimensions
|
|
226
|
-
...
|
|
226
|
+
...zt,
|
|
227
227
|
// Transformations
|
|
228
228
|
...Wu
|
|
229
|
-
}),
|
|
229
|
+
}), j0 = /(-?[0-9.]*[0-9]+[0-9.]*)/g, z0 = /^-?[0-9.]*[0-9]+[0-9.]*$/g;
|
|
230
230
|
function We(u, e, t) {
|
|
231
231
|
if (e === 1)
|
|
232
232
|
return u;
|
|
@@ -234,11 +234,11 @@ function We(u, e, t) {
|
|
|
234
234
|
return Math.ceil(u * e * t) / t;
|
|
235
235
|
if (typeof u != "string")
|
|
236
236
|
return u;
|
|
237
|
-
const n = u.split(
|
|
237
|
+
const n = u.split(j0);
|
|
238
238
|
if (n === null || !n.length)
|
|
239
239
|
return u;
|
|
240
240
|
const r = [];
|
|
241
|
-
let o = n.shift(), c =
|
|
241
|
+
let o = n.shift(), c = z0.test(o);
|
|
242
242
|
for (; ; ) {
|
|
243
243
|
if (c) {
|
|
244
244
|
const i = parseFloat(o);
|
|
@@ -250,7 +250,7 @@ function We(u, e, t) {
|
|
|
250
250
|
c = !c;
|
|
251
251
|
}
|
|
252
252
|
}
|
|
253
|
-
function
|
|
253
|
+
function R0(u, e = "defs") {
|
|
254
254
|
let t = "";
|
|
255
255
|
const n = u.indexOf("<" + e);
|
|
256
256
|
for (; n >= 0; ) {
|
|
@@ -267,20 +267,20 @@ function j0(u, e = "defs") {
|
|
|
267
267
|
content: u
|
|
268
268
|
};
|
|
269
269
|
}
|
|
270
|
-
function
|
|
270
|
+
function q0(u, e) {
|
|
271
271
|
return u ? "<defs>" + u + "</defs>" + e : e;
|
|
272
272
|
}
|
|
273
|
-
function
|
|
274
|
-
const n =
|
|
275
|
-
return
|
|
273
|
+
function $0(u, e, t) {
|
|
274
|
+
const n = R0(u);
|
|
275
|
+
return q0(n.defs, e + n.content + t);
|
|
276
276
|
}
|
|
277
|
-
const
|
|
278
|
-
function
|
|
277
|
+
const V0 = (u) => u === "unset" || u === "undefined" || u === "none";
|
|
278
|
+
function H0(u, e) {
|
|
279
279
|
const t = {
|
|
280
280
|
...ue,
|
|
281
281
|
...u
|
|
282
282
|
}, n = {
|
|
283
|
-
...
|
|
283
|
+
...Rt,
|
|
284
284
|
...e
|
|
285
285
|
}, r = {
|
|
286
286
|
left: t.left,
|
|
@@ -315,7 +315,7 @@ function $0(u, e) {
|
|
|
315
315
|
);
|
|
316
316
|
break;
|
|
317
317
|
}
|
|
318
|
-
E % 2 === 1 && (r.left !== r.top && (h = r.left, r.left = r.top, r.top = h), r.width !== r.height && (h = r.width, r.width = r.height, r.height = h)), k.length && (o =
|
|
318
|
+
E % 2 === 1 && (r.left !== r.top && (h = r.left, r.left = r.top, r.top = h), r.width !== r.height && (h = r.width, r.width = r.height, r.height = h)), k.length && (o = $0(
|
|
319
319
|
o,
|
|
320
320
|
'<g transform="' + k.join(" ") + '">',
|
|
321
321
|
"</g>"
|
|
@@ -325,7 +325,7 @@ function $0(u, e) {
|
|
|
325
325
|
let l, f;
|
|
326
326
|
c === null ? (f = i === null ? "1em" : i === "auto" ? s : i, l = We(f, a / s)) : (l = c === "auto" ? a : c, f = i === null ? We(l, s / a) : i === "auto" ? s : i);
|
|
327
327
|
const g = {}, p = (C, k) => {
|
|
328
|
-
|
|
328
|
+
V0(k) || (g[C] = k.toString());
|
|
329
329
|
};
|
|
330
330
|
p("width", l), p("height", f);
|
|
331
331
|
const d = [r.left, r.top, a, s];
|
|
@@ -335,18 +335,18 @@ function $0(u, e) {
|
|
|
335
335
|
body: o
|
|
336
336
|
};
|
|
337
337
|
}
|
|
338
|
-
const
|
|
339
|
-
let
|
|
340
|
-
function
|
|
338
|
+
const U0 = /\sid="(\S+)"/g, Z0 = "IconifyId" + Date.now().toString(16) + (Math.random() * 16777216 | 0).toString(16);
|
|
339
|
+
let G0 = 0;
|
|
340
|
+
function W0(u, e = Z0) {
|
|
341
341
|
const t = [];
|
|
342
342
|
let n;
|
|
343
|
-
for (; n =
|
|
343
|
+
for (; n = U0.exec(u); )
|
|
344
344
|
t.push(n[1]);
|
|
345
345
|
if (!t.length)
|
|
346
346
|
return u;
|
|
347
347
|
const r = "suffix" + (Math.random() * 16777216 | Date.now()).toString(16);
|
|
348
348
|
return t.forEach((o) => {
|
|
349
|
-
const c = typeof e == "function" ? e(o) : e + (
|
|
349
|
+
const c = typeof e == "function" ? e(o) : e + (G0++).toString(), i = o.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
350
350
|
u = u.replace(
|
|
351
351
|
// Allowed characters before id: [#;"]
|
|
352
352
|
// Allowed characters after id: [)"], .[a-z]
|
|
@@ -356,7 +356,7 @@ function Z0(u, e = H0) {
|
|
|
356
356
|
}), u = u.replace(new RegExp(r, "g"), ""), u;
|
|
357
357
|
}
|
|
358
358
|
const ke = /* @__PURE__ */ Object.create(null);
|
|
359
|
-
function
|
|
359
|
+
function Q0(u, e) {
|
|
360
360
|
ke[u] = e;
|
|
361
361
|
}
|
|
362
362
|
function ye(u) {
|
|
@@ -387,23 +387,23 @@ function Se(u) {
|
|
|
387
387
|
dataAfterTimeout: u.dataAfterTimeout !== !1
|
|
388
388
|
};
|
|
389
389
|
}
|
|
390
|
-
const Te = /* @__PURE__ */ Object.create(null),
|
|
390
|
+
const Te = /* @__PURE__ */ Object.create(null), Tu = [
|
|
391
391
|
"https://api.simplesvg.com",
|
|
392
392
|
"https://api.unisvg.com"
|
|
393
393
|
], Zu = [];
|
|
394
|
-
for (;
|
|
395
|
-
|
|
394
|
+
for (; Tu.length > 0; )
|
|
395
|
+
Tu.length === 1 || Math.random() > 0.5 ? Zu.push(Tu.shift()) : Zu.push(Tu.pop());
|
|
396
396
|
Te[""] = Se({
|
|
397
397
|
resources: ["https://api.iconify.design"].concat(Zu)
|
|
398
398
|
});
|
|
399
|
-
function
|
|
399
|
+
function J0(u, e) {
|
|
400
400
|
const t = Se(e);
|
|
401
401
|
return t === null ? !1 : (Te[u] = t, !0);
|
|
402
402
|
}
|
|
403
403
|
function Ie(u) {
|
|
404
404
|
return Te[u];
|
|
405
405
|
}
|
|
406
|
-
const
|
|
406
|
+
const K0 = () => {
|
|
407
407
|
let u;
|
|
408
408
|
try {
|
|
409
409
|
if (u = fetch, typeof u == "function")
|
|
@@ -411,8 +411,8 @@ const Q0 = () => {
|
|
|
411
411
|
} catch {
|
|
412
412
|
}
|
|
413
413
|
};
|
|
414
|
-
let Qe =
|
|
415
|
-
function
|
|
414
|
+
let Qe = K0();
|
|
415
|
+
function Y0(u, e) {
|
|
416
416
|
const t = Ie(u);
|
|
417
417
|
if (!t)
|
|
418
418
|
return 0;
|
|
@@ -429,11 +429,11 @@ function J0(u, e) {
|
|
|
429
429
|
}
|
|
430
430
|
return n;
|
|
431
431
|
}
|
|
432
|
-
function
|
|
432
|
+
function X0(u) {
|
|
433
433
|
return u === 404;
|
|
434
434
|
}
|
|
435
|
-
const
|
|
436
|
-
const n = [], r =
|
|
435
|
+
const un = (u, e, t) => {
|
|
436
|
+
const n = [], r = Y0(u, e), o = "icons";
|
|
437
437
|
let c = {
|
|
438
438
|
type: o,
|
|
439
439
|
provider: u,
|
|
@@ -449,7 +449,7 @@ const Y0 = (u, e, t) => {
|
|
|
449
449
|
}, i = a.length), c.icons.push(a);
|
|
450
450
|
}), n.push(c), n;
|
|
451
451
|
};
|
|
452
|
-
function
|
|
452
|
+
function en(u) {
|
|
453
453
|
if (typeof u == "string") {
|
|
454
454
|
const e = Ie(u);
|
|
455
455
|
if (e)
|
|
@@ -457,12 +457,12 @@ function X0(u) {
|
|
|
457
457
|
}
|
|
458
458
|
return "/";
|
|
459
459
|
}
|
|
460
|
-
const
|
|
460
|
+
const tn = (u, e, t) => {
|
|
461
461
|
if (!Qe) {
|
|
462
462
|
t("abort", 424);
|
|
463
463
|
return;
|
|
464
464
|
}
|
|
465
|
-
let n =
|
|
465
|
+
let n = en(e.provider);
|
|
466
466
|
switch (e.type) {
|
|
467
467
|
case "icons": {
|
|
468
468
|
const o = e.prefix, i = e.icons.join(","), a = new URLSearchParams({
|
|
@@ -485,7 +485,7 @@ const un = (u, e, t) => {
|
|
|
485
485
|
const c = o.status;
|
|
486
486
|
if (c !== 200) {
|
|
487
487
|
setTimeout(() => {
|
|
488
|
-
t(
|
|
488
|
+
t(X0(c) ? "abort" : "next", c);
|
|
489
489
|
});
|
|
490
490
|
return;
|
|
491
491
|
}
|
|
@@ -503,11 +503,11 @@ const un = (u, e, t) => {
|
|
|
503
503
|
}).catch(() => {
|
|
504
504
|
t("next", r);
|
|
505
505
|
});
|
|
506
|
-
},
|
|
507
|
-
prepare:
|
|
508
|
-
send:
|
|
506
|
+
}, nn = {
|
|
507
|
+
prepare: un,
|
|
508
|
+
send: tn
|
|
509
509
|
};
|
|
510
|
-
function
|
|
510
|
+
function rn(u) {
|
|
511
511
|
const e = {
|
|
512
512
|
loaded: [],
|
|
513
513
|
missing: [],
|
|
@@ -523,7 +523,7 @@ function tn(u) {
|
|
|
523
523
|
if (n.name === r.name && n.prefix === r.prefix && n.provider === r.provider)
|
|
524
524
|
return;
|
|
525
525
|
n = r;
|
|
526
|
-
const o = r.provider, c = r.prefix, i = r.name, a = t[o] || (t[o] = /* @__PURE__ */ Object.create(null)), s = a[c] || (a[c] =
|
|
526
|
+
const o = r.provider, c = r.prefix, i = r.name, a = t[o] || (t[o] = /* @__PURE__ */ Object.create(null)), s = a[c] || (a[c] = Eu(o, c));
|
|
527
527
|
let l;
|
|
528
528
|
i in s.icons ? l = e.loaded : c === "" || s.missing.has(i) ? l = e.missing : l = e.pending;
|
|
529
529
|
const f = {
|
|
@@ -534,13 +534,13 @@ function tn(u) {
|
|
|
534
534
|
l.push(f);
|
|
535
535
|
}), e;
|
|
536
536
|
}
|
|
537
|
-
function
|
|
537
|
+
function qt(u, e) {
|
|
538
538
|
u.forEach((t) => {
|
|
539
539
|
const n = t.loaderCallbacks;
|
|
540
540
|
n && (t.loaderCallbacks = n.filter((r) => r.id !== e));
|
|
541
541
|
});
|
|
542
542
|
}
|
|
543
|
-
function
|
|
543
|
+
function on(u) {
|
|
544
544
|
u.pendingCallbacksFlag || (u.pendingCallbacksFlag = !0, setTimeout(() => {
|
|
545
545
|
u.pendingCallbacksFlag = !1;
|
|
546
546
|
const e = u.loaderCallbacks ? u.loaderCallbacks.slice(0) : [];
|
|
@@ -569,7 +569,7 @@ function nn(u) {
|
|
|
569
569
|
else
|
|
570
570
|
return t = !0, !0;
|
|
571
571
|
return !1;
|
|
572
|
-
}), c.pending.length !== i && (t ||
|
|
572
|
+
}), c.pending.length !== i && (t || qt([u], o.id), o.callback(
|
|
573
573
|
c.loaded.slice(0),
|
|
574
574
|
c.missing.slice(0),
|
|
575
575
|
c.pending.slice(0),
|
|
@@ -578,9 +578,9 @@ function nn(u) {
|
|
|
578
578
|
});
|
|
579
579
|
}));
|
|
580
580
|
}
|
|
581
|
-
let
|
|
582
|
-
function
|
|
583
|
-
const n =
|
|
581
|
+
let cn = 0;
|
|
582
|
+
function an(u, e, t) {
|
|
583
|
+
const n = cn++, r = qt.bind(null, t, n);
|
|
584
584
|
if (!e.pending.length)
|
|
585
585
|
return r;
|
|
586
586
|
const o = {
|
|
@@ -593,14 +593,14 @@ function on(u, e, t) {
|
|
|
593
593
|
(c.loaderCallbacks || (c.loaderCallbacks = [])).push(o);
|
|
594
594
|
}), r;
|
|
595
595
|
}
|
|
596
|
-
function
|
|
596
|
+
function sn(u, e = !0, t = !1) {
|
|
597
597
|
const n = [];
|
|
598
598
|
return u.forEach((r) => {
|
|
599
599
|
const o = typeof r == "string" ? Xu(r, e, t) : r;
|
|
600
600
|
o && n.push(o);
|
|
601
601
|
}), n;
|
|
602
602
|
}
|
|
603
|
-
var
|
|
603
|
+
var ln = {
|
|
604
604
|
resources: [],
|
|
605
605
|
index: 0,
|
|
606
606
|
timeout: 2e3,
|
|
@@ -608,7 +608,7 @@ var an = {
|
|
|
608
608
|
random: !1,
|
|
609
609
|
dataAfterTimeout: !1
|
|
610
610
|
};
|
|
611
|
-
function
|
|
611
|
+
function fn(u, e, t, n) {
|
|
612
612
|
const r = u.resources.length, o = u.random ? Math.floor(Math.random() * r) : u.index;
|
|
613
613
|
let c;
|
|
614
614
|
if (u.random) {
|
|
@@ -709,9 +709,9 @@ function sn(u, e, t, n) {
|
|
|
709
709
|
}
|
|
710
710
|
return setTimeout(y), w;
|
|
711
711
|
}
|
|
712
|
-
function
|
|
712
|
+
function $t(u) {
|
|
713
713
|
const e = {
|
|
714
|
-
...
|
|
714
|
+
...ln,
|
|
715
715
|
...u
|
|
716
716
|
};
|
|
717
717
|
let t = [];
|
|
@@ -719,7 +719,7 @@ function qt(u) {
|
|
|
719
719
|
t = t.filter((i) => i().status === "pending");
|
|
720
720
|
}
|
|
721
721
|
function r(i, a, s) {
|
|
722
|
-
const l =
|
|
722
|
+
const l = fn(
|
|
723
723
|
e,
|
|
724
724
|
i,
|
|
725
725
|
a,
|
|
@@ -745,12 +745,12 @@ function qt(u) {
|
|
|
745
745
|
function Je() {
|
|
746
746
|
}
|
|
747
747
|
const ie = /* @__PURE__ */ Object.create(null);
|
|
748
|
-
function
|
|
748
|
+
function dn(u) {
|
|
749
749
|
if (!ie[u]) {
|
|
750
750
|
const e = Ie(u);
|
|
751
751
|
if (!e)
|
|
752
752
|
return;
|
|
753
|
-
const t =
|
|
753
|
+
const t = $t(e), n = {
|
|
754
754
|
config: e,
|
|
755
755
|
redundancy: t
|
|
756
756
|
};
|
|
@@ -758,19 +758,19 @@ function ln(u) {
|
|
|
758
758
|
}
|
|
759
759
|
return ie[u];
|
|
760
760
|
}
|
|
761
|
-
function
|
|
761
|
+
function hn(u, e, t) {
|
|
762
762
|
let n, r;
|
|
763
763
|
if (typeof u == "string") {
|
|
764
764
|
const o = ye(u);
|
|
765
765
|
if (!o)
|
|
766
766
|
return t(void 0, 424), Je;
|
|
767
767
|
r = o.send;
|
|
768
|
-
const c =
|
|
768
|
+
const c = dn(u);
|
|
769
769
|
c && (n = c.redundancy);
|
|
770
770
|
} else {
|
|
771
771
|
const o = Se(u);
|
|
772
772
|
if (o) {
|
|
773
|
-
n =
|
|
773
|
+
n = $t(o);
|
|
774
774
|
const c = u.resources ? u.resources[0] : "", i = ye(c);
|
|
775
775
|
i && (r = i.send);
|
|
776
776
|
}
|
|
@@ -779,21 +779,21 @@ function fn(u, e, t) {
|
|
|
779
779
|
}
|
|
780
780
|
function Ke() {
|
|
781
781
|
}
|
|
782
|
-
function
|
|
782
|
+
function pn(u) {
|
|
783
783
|
u.iconsLoaderFlag || (u.iconsLoaderFlag = !0, setTimeout(() => {
|
|
784
|
-
u.iconsLoaderFlag = !1,
|
|
784
|
+
u.iconsLoaderFlag = !1, on(u);
|
|
785
785
|
}));
|
|
786
786
|
}
|
|
787
|
-
function
|
|
787
|
+
function bn(u) {
|
|
788
788
|
const e = [], t = [];
|
|
789
789
|
return u.forEach((n) => {
|
|
790
|
-
(n.match(
|
|
790
|
+
(n.match(Bt) ? e : t).push(n);
|
|
791
791
|
}), {
|
|
792
792
|
valid: e,
|
|
793
793
|
invalid: t
|
|
794
794
|
};
|
|
795
795
|
}
|
|
796
|
-
function
|
|
796
|
+
function Iu(u, e, t) {
|
|
797
797
|
function n() {
|
|
798
798
|
const r = u.pendingIcons;
|
|
799
799
|
e.forEach((o) => {
|
|
@@ -809,7 +809,7 @@ function Tu(u, e, t) {
|
|
|
809
809
|
} catch (r) {
|
|
810
810
|
console.error(r);
|
|
811
811
|
}
|
|
812
|
-
n(),
|
|
812
|
+
n(), pn(u);
|
|
813
813
|
}
|
|
814
814
|
function Ye(u, e) {
|
|
815
815
|
u instanceof Promise ? u.then((t) => {
|
|
@@ -818,7 +818,7 @@ function Ye(u, e) {
|
|
|
818
818
|
e(null);
|
|
819
819
|
}) : e(u);
|
|
820
820
|
}
|
|
821
|
-
function
|
|
821
|
+
function mn(u, e) {
|
|
822
822
|
u.iconsToLoad ? u.iconsToLoad = u.iconsToLoad.concat(e).sort() : u.iconsToLoad = e, u.iconsQueueFlag || (u.iconsQueueFlag = !0, setTimeout(() => {
|
|
823
823
|
u.iconsQueueFlag = !1;
|
|
824
824
|
const { provider: t, prefix: n } = u, r = u.iconsToLoad;
|
|
@@ -829,7 +829,7 @@ function pn(u, e) {
|
|
|
829
829
|
Ye(
|
|
830
830
|
u.loadIcons(r, n, t),
|
|
831
831
|
(l) => {
|
|
832
|
-
|
|
832
|
+
Iu(u, r, l);
|
|
833
833
|
}
|
|
834
834
|
);
|
|
835
835
|
return;
|
|
@@ -844,28 +844,28 @@ function pn(u, e) {
|
|
|
844
844
|
[l]: g
|
|
845
845
|
}
|
|
846
846
|
} : null;
|
|
847
|
-
|
|
847
|
+
Iu(u, [l], p);
|
|
848
848
|
});
|
|
849
849
|
});
|
|
850
850
|
return;
|
|
851
851
|
}
|
|
852
|
-
const { valid: c, invalid: i } =
|
|
853
|
-
if (i.length &&
|
|
852
|
+
const { valid: c, invalid: i } = bn(r);
|
|
853
|
+
if (i.length && Iu(u, i, null), !c.length)
|
|
854
854
|
return;
|
|
855
|
-
const a = n.match(
|
|
855
|
+
const a = n.match(Bt) ? ye(t) : null;
|
|
856
856
|
if (!a) {
|
|
857
|
-
|
|
857
|
+
Iu(u, c, null);
|
|
858
858
|
return;
|
|
859
859
|
}
|
|
860
860
|
a.prepare(t, n, c).forEach((l) => {
|
|
861
|
-
|
|
862
|
-
|
|
861
|
+
hn(t, l, (f) => {
|
|
862
|
+
Iu(u, l.icons, f);
|
|
863
863
|
});
|
|
864
864
|
});
|
|
865
865
|
}));
|
|
866
866
|
}
|
|
867
|
-
const
|
|
868
|
-
const t =
|
|
867
|
+
const xn = (u, e) => {
|
|
868
|
+
const t = sn(u, !0, jt()), n = rn(t);
|
|
869
869
|
if (!n.pending.length) {
|
|
870
870
|
let a = !0;
|
|
871
871
|
return e && setTimeout(() => {
|
|
@@ -885,30 +885,30 @@ const bn = (u, e) => {
|
|
|
885
885
|
const { provider: s, prefix: l } = a;
|
|
886
886
|
if (l === i && s === c)
|
|
887
887
|
return;
|
|
888
|
-
c = s, i = l, o.push(
|
|
888
|
+
c = s, i = l, o.push(Eu(s, l));
|
|
889
889
|
const f = r[s] || (r[s] = /* @__PURE__ */ Object.create(null));
|
|
890
890
|
f[l] || (f[l] = []);
|
|
891
891
|
}), n.pending.forEach((a) => {
|
|
892
|
-
const { provider: s, prefix: l, name: f } = a, g =
|
|
892
|
+
const { provider: s, prefix: l, name: f } = a, g = Eu(s, l), p = g.pendingIcons || (g.pendingIcons = /* @__PURE__ */ new Set());
|
|
893
893
|
p.has(f) || (p.add(f), r[s][l].push(f));
|
|
894
894
|
}), o.forEach((a) => {
|
|
895
895
|
const s = r[a.provider][a.prefix];
|
|
896
|
-
s.length &&
|
|
897
|
-
}), e ?
|
|
896
|
+
s.length && mn(a, s);
|
|
897
|
+
}), e ? an(e, n, o) : Ke;
|
|
898
898
|
};
|
|
899
|
-
function
|
|
899
|
+
function gn(u, e) {
|
|
900
900
|
const t = {
|
|
901
901
|
...u
|
|
902
902
|
};
|
|
903
903
|
for (const n in e) {
|
|
904
904
|
const r = e[n], o = typeof r;
|
|
905
|
-
n in
|
|
905
|
+
n in zt ? (r === null || r && (o === "string" || o === "number")) && (t[n] = r) : o === typeof t[n] && (t[n] = n === "rotate" ? r % 4 : r);
|
|
906
906
|
}
|
|
907
907
|
return t;
|
|
908
908
|
}
|
|
909
|
-
const
|
|
910
|
-
function
|
|
911
|
-
e.split(
|
|
909
|
+
const _n = /[\s,]+/;
|
|
910
|
+
function kn(u, e) {
|
|
911
|
+
e.split(_n).forEach((t) => {
|
|
912
912
|
switch (t.trim()) {
|
|
913
913
|
case "horizontal":
|
|
914
914
|
u.hFlip = !0;
|
|
@@ -919,7 +919,7 @@ function gn(u, e) {
|
|
|
919
919
|
}
|
|
920
920
|
});
|
|
921
921
|
}
|
|
922
|
-
function
|
|
922
|
+
function yn(u, e = 0) {
|
|
923
923
|
const t = u.replace(/^-?[0-9.]*/, "");
|
|
924
924
|
function n(r) {
|
|
925
925
|
for (; r < 0; )
|
|
@@ -945,34 +945,34 @@ function _n(u, e = 0) {
|
|
|
945
945
|
}
|
|
946
946
|
return e;
|
|
947
947
|
}
|
|
948
|
-
function
|
|
948
|
+
function Cn(u, e) {
|
|
949
949
|
let t = u.indexOf("xlink:") === -1 ? "" : ' xmlns:xlink="http://www.w3.org/1999/xlink"';
|
|
950
950
|
for (const n in e)
|
|
951
951
|
t += " " + n + '="' + e[n] + '"';
|
|
952
952
|
return '<svg xmlns="http://www.w3.org/2000/svg"' + t + ">" + u + "</svg>";
|
|
953
953
|
}
|
|
954
|
-
function
|
|
954
|
+
function vn(u) {
|
|
955
955
|
return u.replace(/"/g, "'").replace(/%/g, "%25").replace(/#/g, "%23").replace(/</g, "%3C").replace(/>/g, "%3E").replace(/\s+/g, " ");
|
|
956
956
|
}
|
|
957
|
-
function
|
|
958
|
-
return "data:image/svg+xml," +
|
|
957
|
+
function Dn(u) {
|
|
958
|
+
return "data:image/svg+xml," + vn(u);
|
|
959
959
|
}
|
|
960
|
-
function
|
|
961
|
-
return 'url("' +
|
|
960
|
+
function En(u) {
|
|
961
|
+
return 'url("' + Dn(u) + '")';
|
|
962
962
|
}
|
|
963
963
|
const Xe = {
|
|
964
|
-
...
|
|
964
|
+
...Rt,
|
|
965
965
|
inline: !1
|
|
966
|
-
},
|
|
966
|
+
}, Fn = {
|
|
967
967
|
xmlns: "http://www.w3.org/2000/svg",
|
|
968
968
|
"xmlns:xlink": "http://www.w3.org/1999/xlink",
|
|
969
969
|
"aria-hidden": !0,
|
|
970
970
|
role: "img"
|
|
971
|
-
},
|
|
971
|
+
}, An = {
|
|
972
972
|
display: "inline-block"
|
|
973
973
|
}, Ce = {
|
|
974
974
|
backgroundColor: "currentColor"
|
|
975
|
-
},
|
|
975
|
+
}, Vt = {
|
|
976
976
|
backgroundColor: "transparent"
|
|
977
977
|
}, ut = {
|
|
978
978
|
Image: "var(--svg)",
|
|
@@ -981,7 +981,7 @@ const Xe = {
|
|
|
981
981
|
}, et = {
|
|
982
982
|
webkitMask: Ce,
|
|
983
983
|
mask: Ce,
|
|
984
|
-
background:
|
|
984
|
+
background: Vt
|
|
985
985
|
};
|
|
986
986
|
for (const u in et) {
|
|
987
987
|
const e = et[u];
|
|
@@ -997,7 +997,7 @@ function tt(u) {
|
|
|
997
997
|
return u + (u.match(/^[-0-9.]+$/) ? "px" : "");
|
|
998
998
|
}
|
|
999
999
|
const nt = (u, e) => {
|
|
1000
|
-
const t =
|
|
1000
|
+
const t = gn(Xe, e), n = { ...Fn }, r = e.mode || "svg", o = {}, c = e.style, i = typeof c == "object" && !(c instanceof Array) ? c : {};
|
|
1001
1001
|
for (let C in e) {
|
|
1002
1002
|
const k = e[C];
|
|
1003
1003
|
if (k !== void 0)
|
|
@@ -1017,7 +1017,7 @@ const nt = (u, e) => {
|
|
|
1017
1017
|
break;
|
|
1018
1018
|
// Flip as string: 'horizontal,vertical'
|
|
1019
1019
|
case "flip":
|
|
1020
|
-
typeof k == "string" &&
|
|
1020
|
+
typeof k == "string" && kn(t, k);
|
|
1021
1021
|
break;
|
|
1022
1022
|
// Color: override style
|
|
1023
1023
|
case "color":
|
|
@@ -1025,7 +1025,7 @@ const nt = (u, e) => {
|
|
|
1025
1025
|
break;
|
|
1026
1026
|
// Rotation as string
|
|
1027
1027
|
case "rotate":
|
|
1028
|
-
typeof k == "string" ? t[C] =
|
|
1028
|
+
typeof k == "string" ? t[C] = yn(k) : typeof k == "number" && (t[C] = k);
|
|
1029
1029
|
break;
|
|
1030
1030
|
// Remove aria-hidden
|
|
1031
1031
|
case "ariaHidden":
|
|
@@ -1038,32 +1038,32 @@ const nt = (u, e) => {
|
|
|
1038
1038
|
}
|
|
1039
1039
|
}
|
|
1040
1040
|
}
|
|
1041
|
-
const a =
|
|
1041
|
+
const a = H0(u, t), s = a.attributes;
|
|
1042
1042
|
if (t.inline && (o.verticalAlign = "-0.125em"), r === "svg") {
|
|
1043
1043
|
n.style = {
|
|
1044
1044
|
...o,
|
|
1045
1045
|
...i
|
|
1046
1046
|
}, Object.assign(n, s);
|
|
1047
1047
|
let C = 0, k = e.id;
|
|
1048
|
-
return typeof k == "string" && (k = k.replace(/-/g, "_")), n.innerHTML =
|
|
1048
|
+
return typeof k == "string" && (k = k.replace(/-/g, "_")), n.innerHTML = W0(a.body, k ? () => k + "ID" + C++ : "iconifyVue"), $e("svg", n);
|
|
1049
1049
|
}
|
|
1050
|
-
const { body: l, width: f, height: g } = u, p = r === "mask" || (r === "bg" ? !1 : l.indexOf("currentColor") !== -1), d =
|
|
1050
|
+
const { body: l, width: f, height: g } = u, p = r === "mask" || (r === "bg" ? !1 : l.indexOf("currentColor") !== -1), d = Cn(l, {
|
|
1051
1051
|
...s,
|
|
1052
1052
|
width: f + "",
|
|
1053
1053
|
height: g + ""
|
|
1054
1054
|
});
|
|
1055
1055
|
return n.style = {
|
|
1056
1056
|
...o,
|
|
1057
|
-
"--svg":
|
|
1057
|
+
"--svg": En(d),
|
|
1058
1058
|
width: tt(s.width),
|
|
1059
1059
|
height: tt(s.height),
|
|
1060
|
-
...
|
|
1061
|
-
...p ? Ce :
|
|
1060
|
+
...An,
|
|
1061
|
+
...p ? Ce : Vt,
|
|
1062
1062
|
...i
|
|
1063
1063
|
}, $e("span", n);
|
|
1064
1064
|
};
|
|
1065
|
-
|
|
1066
|
-
|
|
1065
|
+
jt(!0);
|
|
1066
|
+
Q0("", nn);
|
|
1067
1067
|
if (typeof document < "u" && typeof window < "u") {
|
|
1068
1068
|
const u = window;
|
|
1069
1069
|
if (u.IconifyPreload !== void 0) {
|
|
@@ -1073,7 +1073,7 @@ if (typeof document < "u" && typeof window < "u") {
|
|
|
1073
1073
|
// Check if item is an object and not null/array
|
|
1074
1074
|
(typeof n != "object" || n === null || n instanceof Array || // Check for 'icons' and 'prefix'
|
|
1075
1075
|
typeof n.icons != "object" || typeof n.prefix != "string" || // Add icon set
|
|
1076
|
-
!
|
|
1076
|
+
!P0(n)) && console.error(t);
|
|
1077
1077
|
} catch {
|
|
1078
1078
|
console.error(t);
|
|
1079
1079
|
}
|
|
@@ -1088,22 +1088,22 @@ if (typeof document < "u" && typeof window < "u") {
|
|
|
1088
1088
|
const r = e[t];
|
|
1089
1089
|
if (typeof r != "object" || !r || r.resources === void 0)
|
|
1090
1090
|
continue;
|
|
1091
|
-
|
|
1091
|
+
J0(t, r) || console.error(n);
|
|
1092
1092
|
} catch {
|
|
1093
1093
|
console.error(n);
|
|
1094
1094
|
}
|
|
1095
1095
|
}
|
|
1096
1096
|
}
|
|
1097
1097
|
}
|
|
1098
|
-
const
|
|
1098
|
+
const wn = {
|
|
1099
1099
|
...ue,
|
|
1100
1100
|
body: ""
|
|
1101
|
-
},
|
|
1102
|
-
const t =
|
|
1101
|
+
}, mu = _u((u, { emit: e }) => {
|
|
1102
|
+
const t = vu(null);
|
|
1103
1103
|
function n() {
|
|
1104
1104
|
t.value && (t.value.abort?.(), t.value = null);
|
|
1105
1105
|
}
|
|
1106
|
-
const r =
|
|
1106
|
+
const r = vu(!!u.ssr), o = vu(""), c = _0(null);
|
|
1107
1107
|
function i() {
|
|
1108
1108
|
const s = u.icon;
|
|
1109
1109
|
if (typeof s == "object" && s !== null && typeof s.body == "string")
|
|
@@ -1113,14 +1113,14 @@ const Fn = {
|
|
|
1113
1113
|
let l;
|
|
1114
1114
|
if (typeof s != "string" || (l = Xu(s, !1, !0)) === null)
|
|
1115
1115
|
return null;
|
|
1116
|
-
let f =
|
|
1116
|
+
let f = O0(l);
|
|
1117
1117
|
if (!f) {
|
|
1118
1118
|
const d = t.value;
|
|
1119
1119
|
return (!d || d.name !== s) && (f === null ? t.value = {
|
|
1120
1120
|
name: s
|
|
1121
1121
|
} : t.value = {
|
|
1122
1122
|
name: s,
|
|
1123
|
-
abort:
|
|
1123
|
+
abort: xn([l], a)
|
|
1124
1124
|
}), null;
|
|
1125
1125
|
}
|
|
1126
1126
|
n(), o.value !== s && (o.value = s, C0(() => {
|
|
@@ -1139,12 +1139,12 @@ const Fn = {
|
|
|
1139
1139
|
const s = i();
|
|
1140
1140
|
s ? s.data !== c.value?.data && (c.value = s) : c.value = null;
|
|
1141
1141
|
}
|
|
1142
|
-
return r.value ? a() :
|
|
1142
|
+
return r.value ? a() : k0(() => {
|
|
1143
1143
|
r.value = !0, a();
|
|
1144
|
-
}),
|
|
1144
|
+
}), Nt(() => u.icon, a), y0(n), () => {
|
|
1145
1145
|
const s = c.value;
|
|
1146
1146
|
if (!s)
|
|
1147
|
-
return nt(
|
|
1147
|
+
return nt(wn, u);
|
|
1148
1148
|
let l = u;
|
|
1149
1149
|
return s.classes && (l = {
|
|
1150
1150
|
...u,
|
|
@@ -1181,7 +1181,7 @@ const Fn = {
|
|
|
1181
1181
|
],
|
|
1182
1182
|
emits: ["load"]
|
|
1183
1183
|
}), rt = {};
|
|
1184
|
-
function
|
|
1184
|
+
function Sn(u) {
|
|
1185
1185
|
let e = rt[u];
|
|
1186
1186
|
if (e)
|
|
1187
1187
|
return e;
|
|
@@ -1196,9 +1196,9 @@ function An(u) {
|
|
|
1196
1196
|
}
|
|
1197
1197
|
return e;
|
|
1198
1198
|
}
|
|
1199
|
-
function
|
|
1200
|
-
typeof e != "string" && (e =
|
|
1201
|
-
const t =
|
|
1199
|
+
function Fu(u, e) {
|
|
1200
|
+
typeof e != "string" && (e = Fu.defaultChars);
|
|
1201
|
+
const t = Sn(e);
|
|
1202
1202
|
return u.replace(/(%[a-f0-9]{2})+/gi, function(n) {
|
|
1203
1203
|
let r = "";
|
|
1204
1204
|
for (let o = 0, c = n.length; o < c; o += 3) {
|
|
@@ -1236,10 +1236,10 @@ function Eu(u, e) {
|
|
|
1236
1236
|
return r;
|
|
1237
1237
|
});
|
|
1238
1238
|
}
|
|
1239
|
-
|
|
1240
|
-
|
|
1239
|
+
Fu.defaultChars = ";/?:@&=+$,#";
|
|
1240
|
+
Fu.componentChars = "";
|
|
1241
1241
|
const ot = {};
|
|
1242
|
-
function
|
|
1242
|
+
function Tn(u) {
|
|
1243
1243
|
let e = ot[u];
|
|
1244
1244
|
if (e)
|
|
1245
1245
|
return e;
|
|
@@ -1254,7 +1254,7 @@ function wn(u) {
|
|
|
1254
1254
|
}
|
|
1255
1255
|
function zu(u, e, t) {
|
|
1256
1256
|
typeof e != "string" && (t = e, e = zu.defaultChars), typeof t > "u" && (t = !0);
|
|
1257
|
-
const n =
|
|
1257
|
+
const n = Tn(e);
|
|
1258
1258
|
let r = "";
|
|
1259
1259
|
for (let o = 0, c = u.length; o < c; o++) {
|
|
1260
1260
|
const i = u.charCodeAt(o);
|
|
@@ -1290,8 +1290,8 @@ function Ne(u) {
|
|
|
1290
1290
|
function Qu() {
|
|
1291
1291
|
this.protocol = null, this.slashes = null, this.auth = null, this.port = null, this.hostname = null, this.hash = null, this.search = null, this.pathname = null;
|
|
1292
1292
|
}
|
|
1293
|
-
const
|
|
1294
|
-
`, " "],
|
|
1293
|
+
const In = /^([a-z0-9.+-]+:)/i, Nn = /:[0-9]*$/, Bn = /^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/, Ln = ["<", ">", '"', "`", " ", "\r", `
|
|
1294
|
+
`, " "], On = ["{", "}", "|", "\\", "^", "`"].concat(Ln), Mn = ["'"].concat(On), ct = ["%", "/", "?", ";", "#"].concat(Mn), it = ["/", "?", "#"], Pn = 255, at = /^[+a-z0-9A-Z_-]{0,63}$/, jn = /^([+a-z0-9A-Z_-]{0,63})(.*)$/, st = {
|
|
1295
1295
|
javascript: !0,
|
|
1296
1296
|
"javascript:": !0
|
|
1297
1297
|
}, lt = {
|
|
@@ -1314,11 +1314,11 @@ function Be(u, e) {
|
|
|
1314
1314
|
Qu.prototype.parse = function(u, e) {
|
|
1315
1315
|
let t, n, r, o = u;
|
|
1316
1316
|
if (o = o.trim(), !e && u.split("#").length === 1) {
|
|
1317
|
-
const s =
|
|
1317
|
+
const s = Bn.exec(o);
|
|
1318
1318
|
if (s)
|
|
1319
1319
|
return this.pathname = s[1], s[2] && (this.search = s[2]), this;
|
|
1320
1320
|
}
|
|
1321
|
-
let c =
|
|
1321
|
+
let c = In.exec(o);
|
|
1322
1322
|
if (c && (c = c[0], t = c.toLowerCase(), this.protocol = c, o = o.substr(c.length)), (e || c || o.match(/^\/\/[^@\/]+@[^@\/]+/)) && (r = o.substr(0, 2) === "//", r && !(c && st[c]) && (o = o.substr(2), this.slashes = !0)), !st[c] && (r || c && !lt[c])) {
|
|
1323
1323
|
let s = -1;
|
|
1324
1324
|
for (let d = 0; d < it.length; d++)
|
|
@@ -1340,14 +1340,14 @@ Qu.prototype.parse = function(u, e) {
|
|
|
1340
1340
|
for (let E = 0, h = w.length; E < h; E++)
|
|
1341
1341
|
w.charCodeAt(E) > 127 ? v += "x" : v += w[E];
|
|
1342
1342
|
if (!v.match(at)) {
|
|
1343
|
-
const E = d.slice(0, C), h = d.slice(C + 1), y = w.match(
|
|
1343
|
+
const E = d.slice(0, C), h = d.slice(C + 1), y = w.match(jn);
|
|
1344
1344
|
y && (E.push(y[1]), h.unshift(y[2])), h.length && (o = h.join(".") + o), this.hostname = E.join(".");
|
|
1345
1345
|
break;
|
|
1346
1346
|
}
|
|
1347
1347
|
}
|
|
1348
1348
|
}
|
|
1349
1349
|
}
|
|
1350
|
-
this.hostname.length >
|
|
1350
|
+
this.hostname.length > Pn && (this.hostname = ""), p && (this.hostname = this.hostname.substr(1, this.hostname.length - 2));
|
|
1351
1351
|
}
|
|
1352
1352
|
const i = o.indexOf("#");
|
|
1353
1353
|
i !== -1 && (this.hash = o.substr(i), o = o.slice(0, i));
|
|
@@ -1355,32 +1355,32 @@ Qu.prototype.parse = function(u, e) {
|
|
|
1355
1355
|
return a !== -1 && (this.search = o.substr(a), o = o.slice(0, a)), o && (this.pathname = o), lt[t] && this.hostname && !this.pathname && (this.pathname = ""), this;
|
|
1356
1356
|
};
|
|
1357
1357
|
Qu.prototype.parseHost = function(u) {
|
|
1358
|
-
let e =
|
|
1358
|
+
let e = Nn.exec(u);
|
|
1359
1359
|
e && (e = e[0], e !== ":" && (this.port = e.substr(1)), u = u.substr(0, u.length - e.length)), u && (this.hostname = u);
|
|
1360
1360
|
};
|
|
1361
|
-
const
|
|
1361
|
+
const zn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1362
1362
|
__proto__: null,
|
|
1363
|
-
decode:
|
|
1363
|
+
decode: Fu,
|
|
1364
1364
|
encode: zu,
|
|
1365
1365
|
format: Ne,
|
|
1366
1366
|
parse: Be
|
|
1367
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
1367
|
+
}, Symbol.toStringTag, { value: "Module" })), Ht = /[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/, Ut = /[\0-\x1F\x7F-\x9F]/, Rn = /[\xAD\u0600-\u0605\u061C\u06DD\u070F\u0890\u0891\u08E2\u180E\u200B-\u200F\u202A-\u202E\u2060-\u2064\u2066-\u206F\uFEFF\uFFF9-\uFFFB]|\uD804[\uDCBD\uDCCD]|\uD80D[\uDC30-\uDC3F]|\uD82F[\uDCA0-\uDCA3]|\uD834[\uDD73-\uDD7A]|\uDB40[\uDC01\uDC20-\uDC7F]/, Le = /[!-#%-\*,-\/:;\?@\[-\]_\{\}\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061D-\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C77\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1B7D\u1B7E\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4F\u2E52-\u2E5D\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD803[\uDEAD\uDF55-\uDF59\uDF86-\uDF89]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDC4B-\uDC4F\uDC5A\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDEB9\uDF3C-\uDF3E]|\uD806[\uDC3B\uDD44-\uDD46\uDDE2\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2\uDF00-\uDF09]|\uD807[\uDC41-\uDC45\uDC70\uDC71\uDEF7\uDEF8\uDF43-\uDF4F\uDFFF]|\uD809[\uDC70-\uDC74]|\uD80B[\uDFF1\uDFF2]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD81B[\uDE97-\uDE9A\uDFE2]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]|\uD83A[\uDD5E\uDD5F]/, Zt = /[\$\+<->\^`\|~\xA2-\xA6\xA8\xA9\xAC\xAE-\xB1\xB4\xB8\xD7\xF7\u02C2-\u02C5\u02D2-\u02DF\u02E5-\u02EB\u02ED\u02EF-\u02FF\u0375\u0384\u0385\u03F6\u0482\u058D-\u058F\u0606-\u0608\u060B\u060E\u060F\u06DE\u06E9\u06FD\u06FE\u07F6\u07FE\u07FF\u0888\u09F2\u09F3\u09FA\u09FB\u0AF1\u0B70\u0BF3-\u0BFA\u0C7F\u0D4F\u0D79\u0E3F\u0F01-\u0F03\u0F13\u0F15-\u0F17\u0F1A-\u0F1F\u0F34\u0F36\u0F38\u0FBE-\u0FC5\u0FC7-\u0FCC\u0FCE\u0FCF\u0FD5-\u0FD8\u109E\u109F\u1390-\u1399\u166D\u17DB\u1940\u19DE-\u19FF\u1B61-\u1B6A\u1B74-\u1B7C\u1FBD\u1FBF-\u1FC1\u1FCD-\u1FCF\u1FDD-\u1FDF\u1FED-\u1FEF\u1FFD\u1FFE\u2044\u2052\u207A-\u207C\u208A-\u208C\u20A0-\u20C0\u2100\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u214F\u218A\u218B\u2190-\u2307\u230C-\u2328\u232B-\u2426\u2440-\u244A\u249C-\u24E9\u2500-\u2767\u2794-\u27C4\u27C7-\u27E5\u27F0-\u2982\u2999-\u29D7\u29DC-\u29FB\u29FE-\u2B73\u2B76-\u2B95\u2B97-\u2BFF\u2CE5-\u2CEA\u2E50\u2E51\u2E80-\u2E99\u2E9B-\u2EF3\u2F00-\u2FD5\u2FF0-\u2FFF\u3004\u3012\u3013\u3020\u3036\u3037\u303E\u303F\u309B\u309C\u3190\u3191\u3196-\u319F\u31C0-\u31E3\u31EF\u3200-\u321E\u322A-\u3247\u3250\u3260-\u327F\u328A-\u32B0\u32C0-\u33FF\u4DC0-\u4DFF\uA490-\uA4C6\uA700-\uA716\uA720\uA721\uA789\uA78A\uA828-\uA82B\uA836-\uA839\uAA77-\uAA79\uAB5B\uAB6A\uAB6B\uFB29\uFBB2-\uFBC2\uFD40-\uFD4F\uFDCF\uFDFC-\uFDFF\uFE62\uFE64-\uFE66\uFE69\uFF04\uFF0B\uFF1C-\uFF1E\uFF3E\uFF40\uFF5C\uFF5E\uFFE0-\uFFE6\uFFE8-\uFFEE\uFFFC\uFFFD]|\uD800[\uDD37-\uDD3F\uDD79-\uDD89\uDD8C-\uDD8E\uDD90-\uDD9C\uDDA0\uDDD0-\uDDFC]|\uD802[\uDC77\uDC78\uDEC8]|\uD805\uDF3F|\uD807[\uDFD5-\uDFF1]|\uD81A[\uDF3C-\uDF3F\uDF45]|\uD82F\uDC9C|\uD833[\uDF50-\uDFC3]|\uD834[\uDC00-\uDCF5\uDD00-\uDD26\uDD29-\uDD64\uDD6A-\uDD6C\uDD83\uDD84\uDD8C-\uDDA9\uDDAE-\uDDEA\uDE00-\uDE41\uDE45\uDF00-\uDF56]|\uD835[\uDEC1\uDEDB\uDEFB\uDF15\uDF35\uDF4F\uDF6F\uDF89\uDFA9\uDFC3]|\uD836[\uDC00-\uDDFF\uDE37-\uDE3A\uDE6D-\uDE74\uDE76-\uDE83\uDE85\uDE86]|\uD838[\uDD4F\uDEFF]|\uD83B[\uDCAC\uDCB0\uDD2E\uDEF0\uDEF1]|\uD83C[\uDC00-\uDC2B\uDC30-\uDC93\uDCA0-\uDCAE\uDCB1-\uDCBF\uDCC1-\uDCCF\uDCD1-\uDCF5\uDD0D-\uDDAD\uDDE6-\uDE02\uDE10-\uDE3B\uDE40-\uDE48\uDE50\uDE51\uDE60-\uDE65\uDF00-\uDFFF]|\uD83D[\uDC00-\uDED7\uDEDC-\uDEEC\uDEF0-\uDEFC\uDF00-\uDF76\uDF7B-\uDFD9\uDFE0-\uDFEB\uDFF0]|\uD83E[\uDC00-\uDC0B\uDC10-\uDC47\uDC50-\uDC59\uDC60-\uDC87\uDC90-\uDCAD\uDCB0\uDCB1\uDD00-\uDE53\uDE60-\uDE6D\uDE70-\uDE7C\uDE80-\uDE88\uDE90-\uDEBD\uDEBF-\uDEC5\uDECE-\uDEDB\uDEE0-\uDEE8\uDEF0-\uDEF8\uDF00-\uDF92\uDF94-\uDFCA]/, Gt = /[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/, qn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1368
1368
|
__proto__: null,
|
|
1369
|
-
Any:
|
|
1370
|
-
Cc:
|
|
1371
|
-
Cf:
|
|
1369
|
+
Any: Ht,
|
|
1370
|
+
Cc: Ut,
|
|
1371
|
+
Cf: Rn,
|
|
1372
1372
|
P: Le,
|
|
1373
|
-
S:
|
|
1374
|
-
Z:
|
|
1375
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
1373
|
+
S: Zt,
|
|
1374
|
+
Z: Gt
|
|
1375
|
+
}, Symbol.toStringTag, { value: "Module" })), $n = new Uint16Array(
|
|
1376
1376
|
// prettier-ignore
|
|
1377
1377
|
'ᵁ<Õıʊҝջאٵ۞ޢߖࠏઑඡ༉༦ረዡᐕᒝᓃᓟᔥ\0\0\0\0\0\0ᕫᛍᦍᰒᷝ↰⊍⏀⏻⑂⠤⤒ⴈ⹈⿎〖㊺㘹㞬㣾㨨㩱㫠㬮ࠀEMabcfglmnoprstu\\bfms¦³¹ÈÏlig耻Æ䃆P耻&䀦cute耻Á䃁reve;䄂Āiyx}rc耻Â䃂;䐐r;쀀𝔄rave耻À䃀pha;䎑acr;䄀d;橓Āgp¡on;䄄f;쀀𝔸plyFunction;恡ing耻Å䃅Ācs¾Ãr;쀀𝒜ign;扔ilde耻Ã䃃ml耻Ä䃄ЀaceforsuåûþėĜĢħĪĀcrêòkslash;或Ŷöø;櫧ed;挆y;䐑ƀcrtąċĔause;戵noullis;愬a;䎒r;쀀𝔅pf;쀀𝔹eve;䋘còēmpeq;扎܀HOacdefhilorsuōőŖƀƞƢƵƷƺǜȕɳɸɾcy;䐧PY耻©䂩ƀcpyŝŢźute;䄆Ā;iŧŨ拒talDifferentialD;慅leys;愭ȀaeioƉƎƔƘron;䄌dil耻Ç䃇rc;䄈nint;戰ot;䄊ĀdnƧƭilla;䂸terDot;䂷òſi;䎧rcleȀDMPTLJNjǑǖot;抙inus;抖lus;投imes;抗oĀcsǢǸkwiseContourIntegral;戲eCurlyĀDQȃȏoubleQuote;思uote;怙ȀlnpuȞȨɇɕonĀ;eȥȦ户;橴ƀgitȯȶȺruent;扡nt;戯ourIntegral;戮ĀfrɌɎ;愂oduct;成nterClockwiseContourIntegral;戳oss;樯cr;쀀𝒞pĀ;Cʄʅ拓ap;才րDJSZacefiosʠʬʰʴʸˋ˗ˡ˦̳ҍĀ;oŹʥtrahd;椑cy;䐂cy;䐅cy;䐏ƀgrsʿ˄ˇger;怡r;憡hv;櫤Āayː˕ron;䄎;䐔lĀ;t˝˞戇a;䎔r;쀀𝔇Āaf˫̧Ācm˰̢riticalȀADGT̖̜̀̆cute;䂴oŴ̋̍;䋙bleAcute;䋝rave;䁠ilde;䋜ond;拄ferentialD;慆Ѱ̽\0\0\0͔͂\0Ѕf;쀀𝔻ƀ;DE͈͉͍䂨ot;惜qual;扐blèCDLRUVͣͲϏϢϸontourIntegraìȹoɴ\0\0ͻ»͉nArrow;懓Āeo·ΤftƀARTΐΖΡrrow;懐ightArrow;懔eåˊngĀLRΫτeftĀARγιrrow;柸ightArrow;柺ightArrow;柹ightĀATϘϞrrow;懒ee;抨pɁϩ\0\0ϯrrow;懑ownArrow;懕erticalBar;戥ǹABLRTaВЪаўѿͼrrowƀ;BUНОТ憓ar;椓pArrow;懵reve;䌑eft˒к\0ц\0ѐightVector;楐eeVector;楞ectorĀ;Bљњ憽ar;楖ightǔѧ\0ѱeeVector;楟ectorĀ;BѺѻ懁ar;楗eeĀ;A҆҇护rrow;憧ĀctҒҗr;쀀𝒟rok;䄐ࠀNTacdfglmopqstuxҽӀӄӋӞӢӧӮӵԡԯԶՒ՝ՠեG;䅊H耻Ð䃐cute耻É䃉ƀaiyӒӗӜron;䄚rc耻Ê䃊;䐭ot;䄖r;쀀𝔈rave耻È䃈ement;戈ĀapӺӾcr;䄒tyɓԆ\0\0ԒmallSquare;旻erySmallSquare;斫ĀgpԦԪon;䄘f;쀀𝔼silon;䎕uĀaiԼՉlĀ;TՂՃ橵ilde;扂librium;懌Āci՚r;愰m;橳a;䎗ml耻Ë䃋Āipժկsts;戃onentialE;慇ʀcfiosօֈ֍ֲy;䐤r;쀀𝔉lledɓ֗\0\0֣mallSquare;旼erySmallSquare;斪Ͱֺ\0ֿ\0\0ׄf;쀀𝔽All;戀riertrf;愱còJTabcdfgorstרׯؒؖ؛؝أ٬ٲcy;䐃耻>䀾mmaĀ;d䎓;䏜reve;䄞ƀeiy؇،ؐdil;䄢rc;䄜;䐓ot;䄠r;쀀𝔊;拙pf;쀀𝔾eater̀EFGLSTصلَٖٛ٦qualĀ;Lؾؿ扥ess;招ullEqual;执reater;檢ess;扷lantEqual;橾ilde;扳cr;쀀𝒢;扫ЀAacfiosuڅڋږڛڞڪھۊRDcy;䐪Āctڐڔek;䋇;䁞irc;䄤r;愌lbertSpace;愋ǰگ\0ڲf;愍izontalLine;攀Āctۃۅòکrok;䄦mpńېۘownHumðįqual;扏܀EJOacdfgmnostuۺ۾܃܇ܚܞܡܨ݄ݸދޏޕcy;䐕lig;䄲cy;䐁cute耻Í䃍Āiyܓܘrc耻Î䃎;䐘ot;䄰r;愑rave耻Ì䃌ƀ;apܠܯܿĀcgܴܷr;䄪inaryI;慈lieóϝǴ݉\0ݢĀ;eݍݎ戬Āgrݓݘral;戫section;拂isibleĀCTݬݲomma;恣imes;恢ƀgptݿރވon;䄮f;쀀𝕀a;䎙cr;愐ilde;䄨ǫޚ\0ޞcy;䐆l耻Ï䃏ʀcfosuެ߂ߐĀiyޱrc;䄴;䐙r;쀀𝔍pf;쀀𝕁ǣ߇\0ߌr;쀀𝒥rcy;䐈kcy;䐄HJacfosߤߨ߽߬߱ࠂࠈcy;䐥cy;䐌ppa;䎚Āey߶dil;䄶;䐚r;쀀𝔎pf;쀀𝕂cr;쀀𝒦րJTaceflmostࠥࠩࠬࡐࡣসে্ੇcy;䐉耻<䀼ʀcmnpr࠷࠼ࡁࡄࡍute;䄹bda;䎛g;柪lacetrf;愒r;憞ƀaeyࡗࡡron;䄽dil;䄻;䐛Āfsࡨ॰tԀACDFRTUVarࡾࢩࢱࣦ࣠ࣼयज़ΐ४ĀnrࢃgleBracket;柨rowƀ;BR࢙࢚࢞憐ar;懤ightArrow;懆eiling;挈oǵࢷ\0ࣃbleBracket;柦nǔࣈ\0࣒eeVector;楡ectorĀ;Bࣛࣜ懃ar;楙loor;挊ightĀAV࣯ࣵrrow;憔ector;楎Āerँगeƀ;AVउऊऐ抣rrow;憤ector;楚iangleƀ;BEतथऩ抲ar;槏qual;抴pƀDTVषूौownVector;楑eeVector;楠ectorĀ;Bॖॗ憿ar;楘ectorĀ;B॥०憼ar;楒ightáΜs̀EFGLSTॾঋকঝঢভqualGreater;拚ullEqual;扦reater;扶ess;檡lantEqual;橽ilde;扲r;쀀𝔏Ā;eঽা拘ftarrow;懚idot;䄿ƀnpwਖਛgȀLRlr৷ਂਐeftĀAR০৬rrow;柵ightArrow;柷ightArrow;柶eftĀarγਊightáοightáϊf;쀀𝕃erĀLRਢਬeftArrow;憙ightArrow;憘ƀchtਾੀੂòࡌ;憰rok;䅁;扪Ѐacefiosuਗ਼અઋp;椅y;䐜Ādl੯iumSpace;恟lintrf;愳r;쀀𝔐nusPlus;戓pf;쀀𝕄cò੶;䎜ҀJacefostuણધભીଔଙඑඞcy;䐊cute;䅃ƀaeyહાron;䅇dil;䅅;䐝ƀgswે૰ativeƀMTV૨ediumSpace;怋hiĀcn૦ëeryThiîtedĀGLଆreaterGreateòٳessLesóੈLine;䀊r;쀀𝔑ȀBnptଢନଷreak;恠BreakingSpace;䂠f;愕ڀ;CDEGHLNPRSTV୕ୖ୪௫ఄ಄ದൡඅ櫬Āoungruent;扢pCap;扭oubleVerticalBar;戦ƀlqxஃஊement;戉ualĀ;Tஒஓ扠ilde;쀀≂̸ists;戄reater;EFGLSTஶஷ扯qual;扱ullEqual;쀀≧̸reater;쀀≫̸ess;批lantEqual;쀀⩾̸ilde;扵umpń௲ownHump;쀀≎̸qual;쀀≏̸eĀfsఊధtTriangleƀ;BEచఛడ拪ar;쀀⧏̸qual;括s̀;EGLSTవశ఼ౄోౘ扮qual;扰reater;扸ess;쀀≪̸lantEqual;쀀⩽̸ilde;扴estedĀGL౨౹reaterGreater;쀀⪢̸essLess;쀀⪡̸recedesƀ;ESಒಓಛ技qual;쀀⪯̸lantEqual;拠ĀeiಫಹverseElement;戌ghtTriangleƀ;BEೋೌ拫ar;쀀⧐̸qual;拭ĀquೝഌuareSuĀbp೨setĀ;Eೳ쀀⊏̸qual;拢ersetĀ;Eഃആ쀀⊐̸qual;拣ƀbcpഓതൎsetĀ;Eഛഞ쀀⊂⃒qual;抈ceedsȀ;ESTലള഻െ抁qual;쀀⪰̸lantEqual;拡ilde;쀀≿̸ersetĀ;E൘൛쀀⊃⃒qual;抉ildeȀ;EFT൮൯൵ൿ扁qual;扄ullEqual;扇ilde;扉erticalBar;戤cr;쀀𝒩ilde耻Ñ䃑;䎝܀Eacdfgmoprstuvලෂෛ෧ขภยา฿ไlig;䅒cute耻Ó䃓Āiyීrc耻Ô䃔;䐞blac;䅐r;쀀𝔒rave耻Ò䃒ƀaei෮ෲcr;䅌ga;䎩cron;䎟pf;쀀𝕆enCurlyĀDQฎบoubleQuote;怜uote;怘;橔Āclวฬr;쀀𝒪ash耻Ø䃘iŬืde耻Õ䃕es;樷ml耻Ö䃖erĀBP๋Āar๐๓r;怾acĀek๚;揞et;掴arenthesis;揜ҀacfhilorsງຊຏຒດຝະrtialD;戂y;䐟r;쀀𝔓i;䎦;䎠usMinus;䂱Āipຢອncareplanåڝf;愙Ȁ;eio຺ູ檻cedesȀ;EST່້扺qual;檯lantEqual;扼ilde;找me;怳Ādpuct;戏ortionĀ;aȥl;戝Āci༁༆r;쀀𝒫;䎨ȀUfos༑༖༛༟OT耻"䀢r;쀀𝔔pf;愚cr;쀀𝒬BEacefhiorsu༾གྷཇའཱིྦྷྪྭ႖ႩႴႾarr;椐G耻®䂮ƀcnrཎནབute;䅔g;柫rĀ;tཛྷཝ憠l;椖ƀaeyཧཬཱron;䅘dil;䅖;䐠Ā;vླྀཹ愜erseĀEUྂྙĀlq྇ྎement;戋uilibrium;懋pEquilibrium;楯r»ཹo;䎡ghtЀACDFTUVa࿁ဢဨၛႇϘĀnr࿆࿒gleBracket;柩rowƀ;BL憒ar;懥eftArrow;懄eiling;按oǵ\0စbleBracket;柧nǔည\0နeeVector;楝ectorĀ;Bဝသ懂ar;楕loor;挋Āerိ၃eƀ;AVဵံြ抢rrow;憦ector;楛iangleƀ;BEၐၑၕ抳ar;槐qual;抵pƀDTVၣၮၸownVector;楏eeVector;楜ectorĀ;Bႂႃ憾ar;楔ectorĀ;B႑႒懀ar;楓Āpuႛ႞f;愝ndImplies;楰ightarrow;懛ĀchႹႼr;愛;憱leDelayed;槴ڀHOacfhimoqstuფჱჷჽᄙᄞᅑᅖᅡᅧᆵᆻᆿĀCcჩხHcy;䐩y;䐨FTcy;䐬cute;䅚ʀ;aeiyᄈᄉᄎᄓᄗ檼ron;䅠dil;䅞rc;䅜;䐡r;쀀𝔖ortȀDLRUᄪᄴᄾᅉownArrow»ОeftArrow»࢚ightArrow»pArrow;憑gma;䎣allCircle;战pf;쀀𝕊ɲᅭ\0\0ᅰt;戚areȀ;ISUᅻᅼᆉᆯ斡ntersection;抓uĀbpᆏᆞsetĀ;Eᆗᆘ抏qual;抑ersetĀ;Eᆨᆩ抐qual;抒nion;抔cr;쀀𝒮ar;拆ȀbcmpᇈᇛሉላĀ;sᇍᇎ拐etĀ;Eᇍᇕqual;抆ĀchᇠህeedsȀ;ESTᇭᇮᇴᇿ扻qual;檰lantEqual;扽ilde;承Tháྌ;我ƀ;esሒሓሣ拑rsetĀ;Eሜም抃qual;抇et»ሓրHRSacfhiorsሾቄቕቱቶኟዂወዑORN耻Þ䃞ADE;愢ĀHcቒcy;䐋y;䐦Ābuቚቜ;䀉;䎤ƀaeyብቪቯron;䅤dil;䅢;䐢r;쀀𝔗ĀeiቻDzኀ\0ኇefore;戴a;䎘ĀcnኘkSpace;쀀 Space;怉ldeȀ;EFTካኬኲኼ戼qual;扃ullEqual;扅ilde;扈pf;쀀𝕋ipleDot;惛Āctዖዛr;쀀𝒯rok;䅦ૡዷጎጚጦ\0ጬጱ\0\0\0\0\0ጸጽ፷ᎅ\0ᐄᐊᐐĀcrዻጁute耻Ú䃚rĀ;oጇገ憟cir;楉rǣጓ\0y;䐎ve;䅬Āiyጞጣrc耻Û䃛;䐣blac;䅰r;쀀𝔘rave耻Ù䃙acr;䅪Ādiፁ፩erĀBPፈ፝Āarፍፐr;䁟acĀekፗፙ;揟et;掵arenthesis;揝onĀ;P፰፱拃lus;抎Āgp፻on;䅲f;쀀𝕌ЀADETadps᎕ᎮᎸᏄϨᏒᏗᏳrrowƀ;BDᅐᎠᎤar;椒ownArrow;懅ownArrow;憕quilibrium;楮eeĀ;AᏋᏌ报rrow;憥ownáϳerĀLRᏞᏨeftArrow;憖ightArrow;憗iĀ;lᏹᏺ䏒on;䎥ing;䅮cr;쀀𝒰ilde;䅨ml耻Ü䃜ҀDbcdefosvᐧᐬᐰᐳᐾᒅᒊᒐᒖash;披ar;櫫y;䐒ashĀ;lᐻᐼ抩;櫦Āerᑃᑅ;拁ƀbtyᑌᑐᑺar;怖Ā;iᑏᑕcalȀBLSTᑡᑥᑪᑴar;戣ine;䁼eparator;杘ilde;所ThinSpace;怊r;쀀𝔙pf;쀀𝕍cr;쀀𝒱dash;抪ʀcefosᒧᒬᒱᒶᒼirc;䅴dge;拀r;쀀𝔚pf;쀀𝕎cr;쀀𝒲Ȁfiosᓋᓐᓒᓘr;쀀𝔛;䎞pf;쀀𝕏cr;쀀𝒳ҀAIUacfosuᓱᓵᓹᓽᔄᔏᔔᔚᔠcy;䐯cy;䐇cy;䐮cute耻Ý䃝Āiyᔉᔍrc;䅶;䐫r;쀀𝔜pf;쀀𝕐cr;쀀𝒴ml;䅸ЀHacdefosᔵᔹᔿᕋᕏᕝᕠᕤcy;䐖cute;䅹Āayᕄᕉron;䅽;䐗ot;䅻Dzᕔ\0ᕛoWidtèa;䎖r;愨pf;愤cr;쀀𝒵ᖃᖊᖐ\0ᖰᖶᖿ\0\0\0\0ᗆᗛᗫᙟ᙭\0ᚕ᚛ᚲᚹ\0ᚾcute耻á䃡reve;䄃̀;Ediuyᖜᖝᖡᖣᖨᖭ戾;쀀∾̳;房rc耻â䃢te肻´̆;䐰lig耻æ䃦Ā;r²ᖺ;쀀𝔞rave耻à䃠ĀepᗊᗖĀfpᗏᗔsym;愵èᗓha;䎱ĀapᗟcĀclᗤᗧr;䄁g;樿ɤᗰ\0\0ᘊʀ;adsvᗺᗻᗿᘁᘇ戧nd;橕;橜lope;橘;橚;elmrszᘘᘙᘛᘞᘿᙏᙙ戠;榤e»ᘙsdĀ;aᘥᘦ戡ѡᘰᘲᘴᘶᘸᘺᘼᘾ;榨;榩;榪;榫;榬;榭;榮;榯tĀ;vᙅᙆ戟bĀ;dᙌᙍ抾;榝Āptᙔᙗh;戢»¹arr;捼Āgpᙣᙧon;䄅f;쀀𝕒;Eaeiopᙻᙽᚂᚄᚇᚊ;橰cir;橯;扊d;手s;䀧roxĀ;eᚒñᚃing耻å䃥ƀctyᚡᚦᚨr;쀀𝒶;䀪mpĀ;eᚯñʈilde耻ã䃣ml耻ä䃤Āciᛂᛈoninôɲnt;樑ࠀNabcdefiklnoprsu᛭ᛱᜰᝃᝈ០៦ᠹᡐᜍ᥈ᥰot;櫭ĀcrᛶkȀcepsᜀᜅᜍᜓong;扌psilon;䏶rime;怵imĀ;e戽q;拍Ŷᜢᜦee;抽edĀ;gᜬᜭ挅e»ᜭrkĀ;tbrk;掶Āoyᜁᝁ;䐱quo;怞ʀcmprtᝓᝡᝤᝨausĀ;eĊĉptyv;榰séᜌnoõēƀahwᝯᝳ;䎲;愶een;扬r;쀀𝔟gcostuvwឍឝឳេ៕៛ƀaiuបពរðݠrc;旯p»፱ƀdptឤឨឭot;樀lus;樁imes;樂ɱឹ\0\0ើcup;樆ar;昅riangleĀdu៍្own;施p;斳plus;樄eåᑄåᒭarow;植ƀakoᠦᠵĀcn៲ᠣkƀlst֫᠂ozenge;槫riangleȀ;dlr᠒᠓᠘斴own;斾eft;旂ight;斸k;搣Ʊᠫ\0ᠳƲᠯ\0ᠱ;斒;斑4;斓ck;斈ĀeoᠾᡍĀ;qᡃᡆ쀀=⃥uiv;쀀≡⃥t;挐Ȁptwxᡙᡞᡧᡬf;쀀𝕓Ā;tᏋᡣom»Ꮜtie;拈DHUVbdhmptuvᢅᢖᢪᢻᣗᣛᣬᤅᤊᤐᤡȀLRlrᢎᢐᢒᢔ;敗;敔;敖;敓ʀ;DUduᢡᢢᢤᢦᢨ敐;敦;敩;敤;敧ȀLRlrᢳᢵᢷᢹ;敝;敚;敜;教;HLRhlrᣊᣋᣍᣏᣑᣓᣕ救;敬;散;敠;敫;敢;敟ox;槉ȀLRlrᣤᣦᣨᣪ;敕;敒;攐;攌ʀ;DUduڽ;敥;敨;攬;攴inus;抟lus;択imes;抠ȀLRlrᤙᤛᤝ;敛;敘;攘;攔;HLRhlrᤰᤱᤳᤵᤷ᤻᤹攂;敪;敡;敞;攼;攤;攜Āevģbar耻¦䂦Ȁceioᥑᥖᥚᥠr;쀀𝒷mi;恏mĀ;elƀ;bhᥨᥩᥫ䁜;槅sub;柈ŬᥴlĀ;e怢t»pƀ;Eeįᦅᦇ;檮Ā;qۜۛೡᦧ\0᧨ᨑᨕᨲ\0ᨷᩐ\0\0᪴\0\0᫁\0\0ᬡᬮ᭒\0᯽\0ᰌƀcprᦲute;䄇̀;abcdsᦿᧀᧄ᧕᧙戩nd;橄rcup;橉Āau᧒p;橋p;橇ot;橀;쀀∩︀Āeo᧢᧥t;恁îړȀaeiu᧰᧻ᨁᨅǰ᧵\0᧸s;橍on;䄍dil耻ç䃧rc;䄉psĀ;sᨌᨍ橌m;橐ot;䄋ƀdmnᨛᨠᨦil肻¸ƭptyv;榲t脀¢;eᨭᨮ䂢räƲr;쀀𝔠ƀceiᨽᩀᩍy;䑇ckĀ;mᩇᩈ朓ark»ᩈ;䏇r;Ecefms᩠ᩢᩫ᪤᪪旋;槃ƀ;elᩩᩪᩭ䋆q;扗eɡᩴ\0\0᪈rrowĀlr᩼᪁eft;憺ight;憻ʀRSacd᪒᪔᪖»ཇ;擈st;抛irc;抚ash;抝nint;樐id;櫯cir;槂ubsĀ;u᪻᪼晣it»᪼ˬ᫇\0ᬊonĀ;eᫍᫎ䀺Ā;qÇÆɭ\0\0aĀ;t䀬;䁀ƀ;fl戁îᅠeĀmxent»eóɍǧ\0ᬇĀ;dኻᬂot;橭nôɆƀfryᬐᬔᬗ;쀀𝕔oäɔ脀©;sŕᬝr;愗Āaoᬥᬩrr;憵ss;朗Ācuᬲᬷr;쀀𝒸Ābpᬼ᭄Ā;eᭁᭂ櫏;櫑Ā;eᭉᭊ櫐;櫒dot;拯delprvw᭠᭬᭷ᮂᮬᯔarrĀlr᭨᭪;椸;椵ɰ᭲\0\0᭵r;拞c;拟arrĀ;pᮀ憶;椽̀;bcdosᮏᮐᮖᮡᮥᮨ截rcap;橈Āauᮛᮞp;橆p;橊ot;抍r;橅;쀀∪︀Ȁalrv᮵ᮿᯞᯣrrĀ;mᮼᮽ憷;椼yƀevwᯇᯔᯘqɰᯎ\0\0ᯒreã᭳uã᭵ee;拎edge;拏en耻¤䂤earrowĀlrᯮ᯳eft»ᮀight»ᮽeäᯝĀciᰁᰇoninôǷnt;戱lcty;挭ঀAHabcdefhijlorstuwz᰻᰿ᱝᱩᱵᲞᲬᲷᴍᵻᶑᶫᶻ᷆᷍ròar;楥Ȁglrs᱈ᱍ᱒᱔ger;怠eth;愸òᄳhĀ;vᱚᱛ怐»ऊūᱡᱧarow;椏aã̕Āayᱮᱳron;䄏;䐴ƀ;ao̲ᱼᲄĀgrʿᲁr;懊tseq;橷ƀglmᲑᲔᲘ耻°䂰ta;䎴ptyv;榱ĀirᲣᲨsht;楿;쀀𝔡arĀlrᲳᲵ»ࣜ»သʀaegsv᳂᳖᳜᳠mƀ;oș᳔ndĀ;ș᳑uit;晦amma;䏝in;拲ƀ;io᳧᳨᳸䃷de脀÷;o᳧ᳰntimes;拇nø᳷cy;䑒cɯᴆ\0\0ᴊrn;挞op;挍ʀlptuwᴘᴝᴢᵉᵕlar;䀤f;쀀𝕕ʀ;emps̋ᴭᴷᴽᵂqĀ;d͒ᴳot;扑inus;戸lus;戔quare;抡blebarwedgåúnƀadhᄮᵝᵧownarrowóᲃarpoonĀlrᵲᵶefôᲴighôᲶŢᵿᶅkaro÷གɯᶊ\0\0ᶎrn;挟op;挌ƀcotᶘᶣᶦĀryᶝᶡ;쀀𝒹;䑕l;槶rok;䄑Ādrᶰᶴot;拱iĀ;fᶺ᠖斿Āah᷀᷃ròЩaòྦangle;榦Āci᷒ᷕy;䑟grarr;柿ऀDacdefglmnopqrstuxḁḉḙḸոḼṉṡṾấắẽỡἪἷὄĀDoḆᴴoôĀcsḎḔute耻é䃩ter;橮ȀaioyḢḧḱḶron;䄛rĀ;cḭḮ扖耻ê䃪lon;払;䑍ot;䄗ĀDrṁṅot;扒;쀀𝔢ƀ;rsṐṑṗ檚ave耻è䃨Ā;dṜṝ檖ot;檘Ȁ;ilsṪṫṲṴ檙nters;揧;愓Ā;dṹṺ檕ot;檗ƀapsẅẉẗcr;䄓tyƀ;svẒẓẕ戅et»ẓpĀ1;ẝẤijạả;怄;怅怃ĀgsẪẬ;䅋p;怂ĀgpẴẸon;䄙f;쀀𝕖ƀalsỄỎỒrĀ;sỊị拕l;槣us;橱iƀ;lvỚớở䎵on»ớ;䏵ȀcsuvỪỳἋἣĀioữḱrc»Ḯɩỹ\0\0ỻíՈantĀglἂἆtr»ṝess»ṺƀaeiἒἚls;䀽st;扟vĀ;DȵἠD;橸parsl;槥ĀDaἯἳot;打rr;楱ƀcdiἾὁỸr;愯oô͒ĀahὉὋ;䎷耻ð䃰Āmrὓὗl耻ë䃫o;悬ƀcipὡὤὧl;䀡sôծĀeoὬὴctatioîՙnentialåչৡᾒ\0ᾞ\0ᾡᾧ\0\0ῆῌ\0ΐ\0ῦῪ \0 ⁚llingdotseñṄy;䑄male;晀ƀilrᾭᾳ῁lig;耀ffiɩᾹ\0\0᾽g;耀ffig;耀ffl;쀀𝔣lig;耀filig;쀀fjƀaltῙῡt;晭ig;耀flns;斱of;䆒ǰ΅\0ῳf;쀀𝕗ĀakֿῷĀ;vῼ´拔;櫙artint;樍Āao⁕Ācs‑⁒ႉ‸⁅⁈\0⁐β•‥‧\0耻½䂽;慓耻¼䂼;慕;慙;慛Ƴ‴\0‶;慔;慖ʴ‾⁁\0\0⁃耻¾䂾;慗;慜5;慘ƶ⁌\0⁎;慚;慝8;慞l;恄wn;挢cr;쀀𝒻ࢀEabcdefgijlnorstv₂₉₥₰₴⃰℃ℒℸ̗ℾ⅒↞Ā;lٍ₇;檌ƀcmpₐₕute;䇵maĀ;dₜ᳚䎳;檆reve;䄟Āiy₪₮rc;䄝;䐳ot;䄡Ȁ;lqsؾق₽ƀ;qsؾٌlanô٥Ȁ;cdl٥⃒⃥⃕c;檩otĀ;o⃜⃝檀Ā;l⃢⃣檂;檄Ā;e⃪⃭쀀⋛︀s;檔r;쀀𝔤Ā;gٳ؛mel;愷cy;䑓Ȁ;Eajٚℌℎℐ;檒;檥;檤ȀEaesℛℝ℩ℴ;扩pĀ;p℣ℤ檊rox»ℤĀ;q℮ℯ檈Ā;q℮ℛim;拧pf;쀀𝕘Āci⅃ⅆr;愊mƀ;el٫ⅎ⅐;檎;檐茀>;cdlqrⅠⅪⅮⅳⅹĀciⅥⅧ;檧r;橺ot;拗Par;榕uest;橼ʀadelsↄⅪ←ٖ↛ǰ↉\0proør;楸qĀlqؿ↖lesó₈ií٫Āen↣↭rtneqq;쀀≩︀Å↪ԀAabcefkosy⇄⇇⇱⇵⇺∘∝∯≨≽ròΠȀilmr⇐⇔⇗⇛rsðᒄf»․ilôکĀdr⇠⇤cy;䑊ƀ;cwࣴ⇫⇯ir;楈;憭ar;意irc;䄥ƀalr∁∎∓rtsĀ;u∉∊晥it»∊lip;怦con;抹r;쀀𝔥sĀew∣∩arow;椥arow;椦ʀamopr∺∾≃≞≣rr;懿tht;戻kĀlr≉≓eftarrow;憩ightarrow;憪f;쀀𝕙bar;怕ƀclt≯≴≸r;쀀𝒽asè⇴rok;䄧Ābp⊂⊇ull;恃hen»ᱛૡ⊣\0⊪\0⊸⋅⋎\0⋕⋳\0\0⋸⌢⍧⍢⍿\0⎆⎪⎴cute耻í䃭ƀ;iyݱ⊰⊵rc耻î䃮;䐸Ācx⊼⊿y;䐵cl耻¡䂡ĀfrΟ⋉;쀀𝔦rave耻ì䃬Ȁ;inoܾ⋝⋩⋮Āin⋢⋦nt;樌t;戭fin;槜ta;愩lig;䄳ƀaop⋾⌚⌝ƀcgt⌅⌈⌗r;䄫ƀelpܟ⌏⌓inåގarôܠh;䄱f;抷ed;䆵ʀ;cfotӴ⌬⌱⌽⍁are;愅inĀ;t⌸⌹戞ie;槝doô⌙ʀ;celpݗ⍌⍐⍛⍡al;抺Āgr⍕⍙eróᕣã⍍arhk;樗rod;樼Ȁcgpt⍯⍲⍶⍻y;䑑on;䄯f;쀀𝕚a;䎹uest耻¿䂿Āci⎊⎏r;쀀𝒾nʀ;EdsvӴ⎛⎝⎡ӳ;拹ot;拵Ā;v⎦⎧拴;拳Ā;iݷ⎮lde;䄩ǫ⎸\0⎼cy;䑖l耻ï䃯̀cfmosu⏌⏗⏜⏡⏧⏵Āiy⏑⏕rc;䄵;䐹r;쀀𝔧ath;䈷pf;쀀𝕛ǣ⏬\0⏱r;쀀𝒿rcy;䑘kcy;䑔Ѐacfghjos␋␖␢ppaĀ;v␓␔䎺;䏰Āey␛␠dil;䄷;䐺r;쀀𝔨reen;䄸cy;䑅cy;䑜pf;쀀𝕜cr;쀀𝓀ABEHabcdefghjlmnoprstuv⑰⒁⒆⒍⒑┎┽╚▀♎♞♥♹♽⚚⚲⛘❝❨➋⟀⠁⠒ƀart⑷⑺⑼ròòΕail;椛arr;椎Ā;gঔ⒋;檋ar;楢ॣ⒥\0⒪\0⒱\0\0\0\0\0⒵Ⓔ\0ⓆⓈⓍ\0⓹ute;䄺mptyv;榴raîࡌbda;䎻gƀ;dlࢎⓁⓃ;榑åࢎ;檅uo耻«䂫rЀ;bfhlpst࢙ⓞⓦⓩ⓫⓮⓱⓵Ā;f࢝ⓣs;椟s;椝ë≒p;憫l;椹im;楳l;憢ƀ;ae⓿─┄檫il;椙Ā;s┉┊檭;쀀⪭︀ƀabr┕┙┝rr;椌rk;杲Āak┢┬cĀek┨┪;䁻;䁛Āes┱┳;榋lĀdu┹┻;榏;榍Ȁaeuy╆╋╖╘ron;䄾Ādi═╔il;䄼ìࢰâ┩;䐻Ȁcqrs╣╦╭╽a;椶uoĀ;rนᝆĀdu╲╷har;楧shar;楋h;憲ʀ;fgqs▋▌উ◳◿扤tʀahlrt▘▤▷◂◨rrowĀ;t࢙□aé⓶arpoonĀdu▯▴own»њp»०eftarrows;懇ightƀahs◍◖◞rrowĀ;sࣴࢧarpoonóquigarro÷⇰hreetimes;拋ƀ;qs▋ও◺lanôবʀ;cdgsব☊☍☝☨c;檨otĀ;o☔☕橿Ā;r☚☛檁;檃Ā;e☢☥쀀⋚︀s;檓ʀadegs☳☹☽♉♋pproøⓆot;拖qĀgq♃♅ôউgtò⒌ôছiíলƀilr♕࣡♚sht;楼;쀀𝔩Ā;Eজ♣;檑š♩♶rĀdu▲♮Ā;l॥♳;楪lk;斄cy;䑙ʀ;achtੈ⚈⚋⚑⚖rò◁orneòᴈard;楫ri;旺Āio⚟⚤dot;䅀ustĀ;a⚬⚭掰che»⚭ȀEaes⚻⚽⛉⛔;扨pĀ;p⛃⛄檉rox»⛄Ā;q⛎⛏檇Ā;q⛎⚻im;拦Ѐabnoptwz⛩⛴⛷✚✯❁❇❐Ānr⛮⛱g;柬r;懽rëࣁgƀlmr⛿✍✔eftĀar০✇ightá৲apsto;柼ightá৽parrowĀlr✥✩efô⓭ight;憬ƀafl✶✹✽r;榅;쀀𝕝us;樭imes;樴š❋❏st;戗áፎƀ;ef❗❘᠀旊nge»❘arĀ;l❤❥䀨t;榓ʀachmt❳❶❼➅➇ròࢨorneòᶌarĀ;d➃;業;怎ri;抿̀achiqt➘➝ੀ➢➮➻quo;怹r;쀀𝓁mƀ;egল➪➬;檍;檏Ābu┪➳oĀ;rฟ➹;怚rok;䅂萀<;cdhilqrࠫ⟒☹⟜⟠⟥⟪⟰Āci⟗⟙;檦r;橹reå◲mes;拉arr;楶uest;橻ĀPi⟵⟹ar;榖ƀ;ef⠀भ旃rĀdu⠇⠍shar;楊har;楦Āen⠗⠡rtneqq;쀀≨︀Å⠞܀Dacdefhilnopsu⡀⡅⢂⢎⢓⢠⢥⢨⣚⣢⣤ઃ⣳⤂Dot;戺Ȁclpr⡎⡒⡣⡽r耻¯䂯Āet⡗⡙;時Ā;e⡞⡟朠se»⡟Ā;sျ⡨toȀ;dluျ⡳⡷⡻owîҌefôएðᏑker;斮Āoy⢇⢌mma;権;䐼ash;怔asuredangle»ᘦr;쀀𝔪o;愧ƀcdn⢯⢴⣉ro耻µ䂵Ȁ;acdᑤ⢽⣀⣄sôᚧir;櫰ot肻·Ƶusƀ;bd⣒ᤃ⣓戒Ā;uᴼ⣘;横ţ⣞⣡p;櫛ò−ðઁĀdp⣩⣮els;抧f;쀀𝕞Āct⣸⣽r;쀀𝓂pos»ᖝƀ;lm⤉⤊⤍䎼timap;抸ఀGLRVabcdefghijlmoprstuvw⥂⥓⥾⦉⦘⧚⧩⨕⨚⩘⩝⪃⪕⪤⪨⬄⬇⭄⭿⮮ⰴⱧⱼ⳩Āgt⥇⥋;쀀⋙̸Ā;v⥐쀀≫⃒ƀelt⥚⥲⥶ftĀar⥡⥧rrow;懍ightarrow;懎;쀀⋘̸Ā;v⥻ే쀀≪⃒ightarrow;懏ĀDd⦎⦓ash;抯ash;抮ʀbcnpt⦣⦧⦬⦱⧌la»˞ute;䅄g;쀀∠⃒ʀ;Eiop⦼⧀⧅⧈;쀀⩰̸d;쀀≋̸s;䅉roøurĀ;a⧓⧔普lĀ;s⧓ସdz⧟\0⧣p肻 ଷmpĀ;e௹ఀʀaeouy⧴⧾⨃⨐⨓ǰ⧹\0⧻;橃on;䅈dil;䅆ngĀ;dൾ⨊ot;쀀⩭̸p;橂;䐽ash;怓;Aadqsxஒ⨩⨭⨻⩁⩅⩐rr;懗rĀhr⨳⨶k;椤Ā;oᏲᏰot;쀀≐̸uiöୣĀei⩊⩎ar;椨íistĀ;sடr;쀀𝔫ȀEest⩦⩹⩼ƀ;qs⩭ƀ;qs⩴lanôií௪Ā;rஶ⪁»ஷƀAap⪊⪍⪑rò⥱rr;憮ar;櫲ƀ;svྍ⪜ྌĀ;d⪡⪢拼;拺cy;䑚AEadest⪷⪺⪾⫂⫅⫶⫹rò⥦;쀀≦̸rr;憚r;急Ȁ;fqs⫎⫣⫯tĀar⫔⫙rro÷⫁ightarro÷⪐ƀ;qs⪺⫪lanôౕĀ;sౕ⫴»శiíౝĀ;rవ⫾iĀ;eచథiäඐĀpt⬌⬑f;쀀𝕟膀¬;in⬙⬚⬶䂬nȀ;Edvஉ⬤⬨⬮;쀀⋹̸ot;쀀⋵̸ǡஉ⬳⬵;拷;拶iĀ;vಸ⬼ǡಸ⭁⭃;拾;拽ƀaor⭋⭣⭩rȀ;ast⭕⭚⭟lleìl;쀀⫽⃥;쀀∂̸lint;樔ƀ;ceಒ⭰⭳uåಥĀ;cಘ⭸Ā;eಒ⭽ñಘȀAait⮈⮋⮝⮧rò⦈rrƀ;cw⮔⮕⮙憛;쀀⤳̸;쀀↝̸ghtarrow»⮕riĀ;eೋೖchimpqu⮽⯍⯙⬄⯤⯯Ȁ;cerല⯆ഷ⯉uå;쀀𝓃ortɭ⬅\0\0⯖ará⭖mĀ;e൮⯟Ā;q൴൳suĀbp⯫⯭ååഋƀbcp⯶ⰑⰙȀ;Ees⯿ⰀഢⰄ抄;쀀⫅̸etĀ;eഛⰋqĀ;qണⰀcĀ;eലⰗñസȀ;EesⰢⰣൟⰧ抅;쀀⫆̸etĀ;e൘ⰮqĀ;qൠⰣȀgilrⰽⰿⱅⱇìௗlde耻ñ䃱çృiangleĀlrⱒⱜeftĀ;eచⱚñదightĀ;eೋⱥñĀ;mⱬⱭ䎽ƀ;esⱴⱵⱹ䀣ro;愖p;怇ҀDHadgilrsⲏⲔⲙⲞⲣⲰⲶⳓⳣash;抭arr;椄p;쀀≍⃒ash;抬ĀetⲨⲬ;쀀≥⃒;쀀>⃒nfin;槞ƀAetⲽⳁⳅrr;椂;쀀≤⃒Ā;rⳊⳍ쀀<⃒ie;쀀⊴⃒ĀAtⳘⳜrr;椃rie;쀀⊵⃒im;쀀∼⃒ƀAan⳰ⴂrr;懖rĀhr⳺⳽k;椣Ā;oᏧᏥear;椧ቓ᪕\0\0\0\0\0\0\0\0\0\0\0\0\0ⴭ\0ⴸⵈⵠⵥⶄᬇ\0\0ⶍⶫ\0ⷈⷎ\0ⷜ⸙⸫⸾⹃Ācsⴱ᪗ute耻ó䃳ĀiyⴼⵅrĀ;cⵂ耻ô䃴;䐾ʀabios᪠ⵒⵗLjⵚlac;䅑v;樸old;榼lig;䅓Ācrir;榿;쀀𝔬ͯ\0\0\0ⶂn;䋛ave耻ò䃲;槁Ābmⶈ෴ar;榵Ȁacitⶕⶥⶨrò᪀Āirⶠr;榾oss;榻nå๒;槀ƀaeiⶱⶵⶹcr;䅍ga;䏉ƀcdnⷀⷅǍron;䎿;榶pf;쀀𝕠ƀaelⷔǒr;榷rp;榹;adiosvⷪⷫⷮ⸈⸍⸐⸖戨rò᪆Ȁ;efmⷷⷸ⸂⸅橝rĀ;oⷾⷿ愴f»ⷿ耻ª䂪耻º䂺gof;抶r;橖lope;橗;橛ƀclo⸟⸡⸧ò⸁ash耻ø䃸l;折iŬⸯ⸴de耻õ䃵esĀ;aǛ⸺s;樶ml耻ö䃶bar;挽ૡ\0\0⺀⺝\0⺢⺹\0\0⻋ຜ\0⼓\0\0⼫⾼\0⿈rȀ;astЃ脀¶;l䂶leìЃɩ\0\0m;櫳;櫽y;䐿rʀcimpt⺋⺏⺓ᡥ⺗nt;䀥od;䀮il;怰enk;怱r;쀀𝔭ƀimo⺨⺰⺴Ā;v⺭⺮䏆;䏕maô੶ne;明ƀ;tv⺿⻀⻈䏀chfork»´;䏖Āau⻏⻟nĀck⻕⻝kĀ;h⇴⻛;愎ö⇴sҀ;abcdemst⻳ᤈ⼄⼆⼊⼎䀫cir;樣ir;樢Āouᵀ⼂;樥;橲n肻±ຝim;樦wo;樧ƀipu⼙⼠⼥ntint;樕f;쀀𝕡nd耻£䂣Ԁ;Eaceinosu່⼿⽁⽄⽇⾁⾉⾒⽾⾶;檳p;檷uå໙Ā;c໎⽌̀;acens່⽙⽟⽦⽨⽾pproø⽃urlyeñ໙ñ໎ƀaes⽯⽶⽺pprox;檹qq;檵im;拨iíໟmeĀ;s⾈ຮ怲ƀEas⽸⾐⽺ð⽵ƀdfp⾙⾯ƀals⾠⾥⾪lar;挮ine;挒urf;挓Ā;t⾴ïrel;抰Āci⿀⿅r;쀀𝓅;䏈ncsp;怈̀fiopsu⋢⿱r;쀀𝔮pf;쀀𝕢rime;恗cr;쀀𝓆ƀaeo⿸〉〓tĀei々rnionóڰnt;樖stĀ;e【】䀿ñἙô༔ABHabcdefhilmnoprstuxけさすムㄎㄫㅇㅢㅲㆎ㈆㈕㈤㈩㉘㉮㉲㊐㊰㊷ƀartぇおがròႳòϝail;検aròᱥar;楤cdenqrtとふへみわゔヌĀeuねぱ;쀀∽̱te;䅕iãᅮmptyv;榳gȀ;del࿑らるろ;榒;榥å࿑uo耻»䂻rր;abcfhlpstwガクシスゼゾダッデナp;極Ā;fゴs;椠;椳s;椞ë≝ð✮l;楅im;楴l;憣;憝Āaiパフil;椚oĀ;nホボ戶aló༞ƀabrョリヮrò៥rk;杳ĀakンヽcĀekヹ・;䁽;䁝Āes;榌lĀduㄊㄌ;榎;榐Ȁaeuyㄗㄜㄧㄩron;䅙Ādiㄡㄥil;䅗ìâヺ;䑀Ȁclqsㄴㄷㄽㅄa;椷dhar;楩uoĀ;rȎȍh;憳ƀacgㅎㅟངlȀ;ipsླྀㅘㅛႜnåႻarôྩt;断ƀilrㅩဣㅮsht;楽;쀀𝔯ĀaoㅷㆆrĀduㅽㅿ»ѻĀ;l႑ㆄ;楬Ā;vㆋㆌ䏁;䏱ƀgns㆕ㇹㇼht̀ahlrstㆤㆰ㇂㇘rrowĀ;tㆭaéトarpoonĀduㆻㆿowîㅾp»႒eftĀah㇊㇐rrowóarpoonóՑightarrows;應quigarro÷ニhreetimes;拌g;䋚ingdotseñἲƀahm㈍㈐㈓ròaòՑ;怏oustĀ;a㈞掱che»mid;櫮Ȁabpt㈲㈽㉀㉒Ānr㈷㈺g;柭r;懾rëဃƀafl㉇㉊㉎r;榆;쀀𝕣us;樮imes;樵Āap㉝㉧rĀ;g㉣㉤䀩t;榔olint;樒arò㇣Ȁachq㉻㊀Ⴜ㊅quo;怺r;쀀𝓇Ābu・㊊oĀ;rȔȓƀhir㊗㊛㊠reåㇸmes;拊iȀ;efl㊪ၙᠡ㊫方tri;槎luhar;楨;愞ൡ㋕㋛㋟㌬㌸㍱\0㍺㎤\0\0㏬㏰\0㐨㑈㑚㒭㒱㓊㓱\0㘖\0\0㘳cute;䅛quï➺Ԁ;Eaceinpsyᇭ㋳㋵㋿㌂㌋㌏㌟㌦㌩;檴ǰ㋺\0㋼;檸on;䅡uåᇾĀ;dᇳ㌇il;䅟rc;䅝ƀEas㌖㌘㌛;檶p;檺im;择olint;樓iíሄ;䑁otƀ;be㌴ᵇ㌵担;橦Aacmstx㍆㍊㍗㍛㍞㍣㍭rr;懘rĀhr㍐㍒ë∨Ā;oਸ਼t耻§䂧i;䀻war;椩mĀin㍩ðnuóñt;朶rĀ;o㍶⁕쀀𝔰Ȁacoy㎂㎆㎑㎠rp;景Āhy㎋㎏cy;䑉;䑈rtɭ㎙\0\0㎜iäᑤaraì耻䂭Āgm㎨㎴maƀ;fv㎱㎲㎲䏃;䏂Ѐ;deglnprካ㏅㏉㏎㏖㏞㏡㏦ot;橪Ā;qኰĀ;E㏓㏔檞;檠Ā;E㏛㏜檝;檟e;扆lus;樤arr;楲aròᄽȀaeit㏸㐈㐏㐗Āls㏽㐄lsetmé㍪hp;樳parsl;槤Ādlᑣ㐔e;挣Ā;e㐜㐝檪Ā;s㐢㐣檬;쀀⪬︀ƀflp㐮㐳㑂tcy;䑌Ā;b㐸㐹䀯Ā;a㐾㐿槄r;挿f;쀀𝕤aĀdr㑍ЂesĀ;u㑔㑕晠it»㑕ƀcsu㑠㑹㒟Āau㑥㑯pĀ;sᆈ㑫;쀀⊓︀pĀ;sᆴ㑵;쀀⊔︀uĀbp㑿㒏ƀ;esᆗᆜ㒆etĀ;eᆗ㒍ñᆝƀ;esᆨᆭ㒖etĀ;eᆨ㒝ñᆮƀ;afᅻ㒦ְrť㒫ֱ»ᅼaròᅈȀcemt㒹㒾㓂㓅r;쀀𝓈tmîñiì㐕aræᆾĀar㓎㓕rĀ;f㓔ឿ昆Āan㓚㓭ightĀep㓣㓪psiloîỠhé⺯s»⡒ʀbcmnp㓻㕞ሉ㖋㖎Ҁ;Edemnprs㔎㔏㔑㔕㔞㔣㔬㔱㔶抂;櫅ot;檽Ā;dᇚ㔚ot;櫃ult;櫁ĀEe㔨㔪;櫋;把lus;檿arr;楹ƀeiu㔽㕒㕕tƀ;en㔎㕅㕋qĀ;qᇚ㔏eqĀ;q㔫㔨m;櫇Ābp㕚㕜;櫕;櫓c̀;acensᇭ㕬㕲㕹㕻㌦pproø㋺urlyeñᇾñᇳƀaes㖂㖈㌛pproø㌚qñ㌗g;晪ڀ123;Edehlmnps㖩㖬㖯ሜ㖲㖴㗀㗉㗕㗚㗟㗨㗭耻¹䂹耻²䂲耻³䂳;櫆Āos㖹㖼t;檾ub;櫘Ā;dሢ㗅ot;櫄sĀou㗏㗒l;柉b;櫗arr;楻ult;櫂ĀEe㗤㗦;櫌;抋lus;櫀ƀeiu㗴㘉㘌tƀ;enሜ㗼㘂qĀ;qሢ㖲eqĀ;q㗧㗤m;櫈Ābp㘑㘓;櫔;櫖ƀAan㘜㘠㘭rr;懙rĀhr㘦㘨ë∮Ā;oਫwar;椪lig耻ß䃟㙑㙝㙠ዎ㙳㙹\0㙾㛂\0\0\0\0\0㛛㜃\0㜉㝬\0\0\0㞇ɲ㙖\0\0㙛get;挖;䏄rëƀaey㙦㙫㙰ron;䅥dil;䅣;䑂lrec;挕r;쀀𝔱Ȁeiko㚆㚝㚵㚼Dz㚋\0㚑eĀ4fኄኁaƀ;sv㚘㚙㚛䎸ym;䏑Ācn㚢㚲kĀas㚨㚮pproøim»ኬsðኞĀas㚺㚮ðrn耻þ䃾Ǭ̟㛆⋧es膀×;bd㛏㛐㛘䃗Ā;aᤏ㛕r;樱;樰ƀeps㛡㛣㜀á⩍Ȁ;bcf҆㛬㛰㛴ot;挶ir;櫱Ā;o㛹㛼쀀𝕥rk;櫚á㍢rime;怴ƀaip㜏㜒㝤dåቈadempst㜡㝍㝀㝑㝗㝜㝟ngleʀ;dlqr㜰㜱㜶㝀㝂斵own»ᶻeftĀ;e⠀㜾ñम;扜ightĀ;e㊪㝋ñၚot;旬inus;樺lus;樹b;槍ime;樻ezium;揢ƀcht㝲㝽㞁Āry㝷㝻;쀀𝓉;䑆cy;䑛rok;䅧Āio㞋㞎xôheadĀlr㞗㞠eftarro÷ࡏightarrow»ཝऀAHabcdfghlmoprstuw㟐㟓㟗㟤㟰㟼㠎㠜㠣㠴㡑㡝㡫㢩㣌㣒㣪㣶ròϭar;楣Ācr㟜㟢ute耻ú䃺òᅐrǣ㟪\0㟭y;䑞ve;䅭Āiy㟵㟺rc耻û䃻;䑃ƀabh㠃㠆㠋ròᎭlac;䅱aòᏃĀir㠓㠘sht;楾;쀀𝔲rave耻ù䃹š㠧㠱rĀlr㠬㠮»ॗ»ႃlk;斀Āct㠹㡍ɯ㠿\0\0㡊rnĀ;e㡅㡆挜r»㡆op;挏ri;旸Āal㡖㡚cr;䅫肻¨͉Āgp㡢㡦on;䅳f;쀀𝕦̀adhlsuᅋ㡸㡽፲㢑㢠ownáᎳarpoonĀlr㢈㢌efô㠭ighô㠯iƀ;hl㢙㢚㢜䏅»ᏺon»㢚parrows;懈ƀcit㢰㣄㣈ɯ㢶\0\0㣁rnĀ;e㢼㢽挝r»㢽op;挎ng;䅯ri;旹cr;쀀𝓊ƀdir㣙㣝㣢ot;拰lde;䅩iĀ;f㜰㣨»᠓Āam㣯㣲rò㢨l耻ü䃼angle;榧ހABDacdeflnoprsz㤜㤟㤩㤭㦵㦸㦽㧟㧤㧨㧳㧹㧽㨁㨠ròϷarĀ;v㤦㤧櫨;櫩asèϡĀnr㤲㤷grt;榜eknprst㓣㥆㥋㥒㥝㥤㦖appá␕othinçẖƀhir㓫⻈㥙opô⾵Ā;hᎷ㥢ïㆍĀiu㥩㥭gmá㎳Ābp㥲㦄setneqĀ;q㥽㦀쀀⊊︀;쀀⫋︀setneqĀ;q㦏㦒쀀⊋︀;쀀⫌︀Āhr㦛㦟etá㚜iangleĀlr㦪㦯eft»थight»ၑy;䐲ash»ံƀelr㧄㧒㧗ƀ;beⷪ㧋㧏ar;抻q;扚lip;拮Ābt㧜ᑨaòᑩr;쀀𝔳tré㦮suĀbp㧯㧱»ജ»൙pf;쀀𝕧roðtré㦴Ācu㨆㨋r;쀀𝓋Ābp㨐㨘nĀEe㦀㨖»㥾nĀEe㦒㨞»㦐igzag;榚cefoprs㨶㨻㩖㩛㩔㩡㩪irc;䅵Ādi㩀㩑Ābg㩅㩉ar;機eĀ;qᗺ㩏;扙erp;愘r;쀀𝔴pf;쀀𝕨Ā;eᑹ㩦atèᑹcr;쀀𝓌ૣណ㪇\0㪋\0㪐㪛\0\0㪝㪨㪫㪯\0\0㫃㫎\0㫘ៜtré៑r;쀀𝔵ĀAa㪔㪗ròσrò৶;䎾ĀAa㪡㪤ròθrò৫að✓is;拻ƀdptឤ㪵㪾Āfl㪺ឩ;쀀𝕩imåឲĀAa㫇㫊ròώròਁĀcq㫒ីr;쀀𝓍Āpt៖㫜ré។Ѐacefiosu㫰㫽㬈㬌㬑㬕㬛㬡cĀuy㫶㫻te耻ý䃽;䑏Āiy㬂㬆rc;䅷;䑋n耻¥䂥r;쀀𝔶cy;䑗pf;쀀𝕪cr;쀀𝓎Ācm㬦㬩y;䑎l耻ÿ䃿Ԁacdefhiosw㭂㭈㭔㭘㭤㭩㭭㭴㭺㮀cute;䅺Āay㭍㭒ron;䅾;䐷ot;䅼Āet㭝㭡træᕟa;䎶r;쀀𝔷cy;䐶grarr;懝pf;쀀𝕫cr;쀀𝓏Ājn㮅㮇;怍j;怌'.split("").map((u) => u.charCodeAt(0))
|
|
1378
|
-
),
|
|
1378
|
+
), Vn = new Uint16Array(
|
|
1379
1379
|
// prettier-ignore
|
|
1380
1380
|
"Ȁaglq \x1Bɭ\0\0p;䀦os;䀧t;䀾t;䀼uot;䀢".split("").map((u) => u.charCodeAt(0))
|
|
1381
1381
|
);
|
|
1382
1382
|
var ae;
|
|
1383
|
-
const
|
|
1383
|
+
const Hn = /* @__PURE__ */ new Map([
|
|
1384
1384
|
[0, 65533],
|
|
1385
1385
|
// C1 Unicode control character reference replacements
|
|
1386
1386
|
[128, 8364],
|
|
@@ -1410,53 +1410,53 @@ const $n = /* @__PURE__ */ new Map([
|
|
|
1410
1410
|
[156, 339],
|
|
1411
1411
|
[158, 382],
|
|
1412
1412
|
[159, 376]
|
|
1413
|
-
]),
|
|
1413
|
+
]), Un = (
|
|
1414
1414
|
// eslint-disable-next-line @typescript-eslint/no-unnecessary-condition, node/no-unsupported-features/es-builtins
|
|
1415
1415
|
(ae = String.fromCodePoint) !== null && ae !== void 0 ? ae : function(u) {
|
|
1416
1416
|
let e = "";
|
|
1417
1417
|
return u > 65535 && (u -= 65536, e += String.fromCharCode(u >>> 10 & 1023 | 55296), u = 56320 | u & 1023), e += String.fromCharCode(u), e;
|
|
1418
1418
|
}
|
|
1419
1419
|
);
|
|
1420
|
-
function
|
|
1420
|
+
function Zn(u) {
|
|
1421
1421
|
var e;
|
|
1422
|
-
return u >= 55296 && u <= 57343 || u > 1114111 ? 65533 : (e =
|
|
1422
|
+
return u >= 55296 && u <= 57343 || u > 1114111 ? 65533 : (e = Hn.get(u)) !== null && e !== void 0 ? e : u;
|
|
1423
1423
|
}
|
|
1424
1424
|
var Z;
|
|
1425
1425
|
(function(u) {
|
|
1426
1426
|
u[u.NUM = 35] = "NUM", u[u.SEMI = 59] = "SEMI", u[u.EQUALS = 61] = "EQUALS", u[u.ZERO = 48] = "ZERO", u[u.NINE = 57] = "NINE", u[u.LOWER_A = 97] = "LOWER_A", u[u.LOWER_F = 102] = "LOWER_F", u[u.LOWER_X = 120] = "LOWER_X", u[u.LOWER_Z = 122] = "LOWER_Z", u[u.UPPER_A = 65] = "UPPER_A", u[u.UPPER_F = 70] = "UPPER_F", u[u.UPPER_Z = 90] = "UPPER_Z";
|
|
1427
1427
|
})(Z || (Z = {}));
|
|
1428
|
-
const
|
|
1429
|
-
var
|
|
1428
|
+
const Gn = 32;
|
|
1429
|
+
var xu;
|
|
1430
1430
|
(function(u) {
|
|
1431
1431
|
u[u.VALUE_LENGTH = 49152] = "VALUE_LENGTH", u[u.BRANCH_LENGTH = 16256] = "BRANCH_LENGTH", u[u.JUMP_TABLE = 127] = "JUMP_TABLE";
|
|
1432
|
-
})(
|
|
1432
|
+
})(xu || (xu = {}));
|
|
1433
1433
|
function ve(u) {
|
|
1434
1434
|
return u >= Z.ZERO && u <= Z.NINE;
|
|
1435
1435
|
}
|
|
1436
|
-
function
|
|
1436
|
+
function Wn(u) {
|
|
1437
1437
|
return u >= Z.UPPER_A && u <= Z.UPPER_F || u >= Z.LOWER_A && u <= Z.LOWER_F;
|
|
1438
1438
|
}
|
|
1439
|
-
function
|
|
1439
|
+
function Qn(u) {
|
|
1440
1440
|
return u >= Z.UPPER_A && u <= Z.UPPER_Z || u >= Z.LOWER_A && u <= Z.LOWER_Z || ve(u);
|
|
1441
1441
|
}
|
|
1442
|
-
function
|
|
1443
|
-
return u === Z.EQUALS ||
|
|
1442
|
+
function Jn(u) {
|
|
1443
|
+
return u === Z.EQUALS || Qn(u);
|
|
1444
1444
|
}
|
|
1445
|
-
var
|
|
1445
|
+
var U;
|
|
1446
1446
|
(function(u) {
|
|
1447
1447
|
u[u.EntityStart = 0] = "EntityStart", u[u.NumericStart = 1] = "NumericStart", u[u.NumericDecimal = 2] = "NumericDecimal", u[u.NumericHex = 3] = "NumericHex", u[u.NamedEntity = 4] = "NamedEntity";
|
|
1448
|
-
})(
|
|
1448
|
+
})(U || (U = {}));
|
|
1449
1449
|
var bu;
|
|
1450
1450
|
(function(u) {
|
|
1451
1451
|
u[u.Legacy = 0] = "Legacy", u[u.Strict = 1] = "Strict", u[u.Attribute = 2] = "Attribute";
|
|
1452
1452
|
})(bu || (bu = {}));
|
|
1453
|
-
class
|
|
1453
|
+
class Kn {
|
|
1454
1454
|
constructor(e, t, n) {
|
|
1455
|
-
this.decodeTree = e, this.emitCodePoint = t, this.errors = n, this.state =
|
|
1455
|
+
this.decodeTree = e, this.emitCodePoint = t, this.errors = n, this.state = U.EntityStart, this.consumed = 1, this.result = 0, this.treeIndex = 0, this.excess = 1, this.decodeMode = bu.Strict;
|
|
1456
1456
|
}
|
|
1457
1457
|
/** Resets the instance to make it reusable. */
|
|
1458
1458
|
startEntity(e) {
|
|
1459
|
-
this.decodeMode = e, this.state =
|
|
1459
|
+
this.decodeMode = e, this.state = U.EntityStart, this.result = 0, this.treeIndex = 0, this.excess = 1, this.consumed = 1;
|
|
1460
1460
|
}
|
|
1461
1461
|
/**
|
|
1462
1462
|
* Write an entity to the decoder. This can be called multiple times with partial entities.
|
|
@@ -1471,15 +1471,15 @@ class Qn {
|
|
|
1471
1471
|
*/
|
|
1472
1472
|
write(e, t) {
|
|
1473
1473
|
switch (this.state) {
|
|
1474
|
-
case
|
|
1475
|
-
return e.charCodeAt(t) === Z.NUM ? (this.state =
|
|
1476
|
-
case
|
|
1474
|
+
case U.EntityStart:
|
|
1475
|
+
return e.charCodeAt(t) === Z.NUM ? (this.state = U.NumericStart, this.consumed += 1, this.stateNumericStart(e, t + 1)) : (this.state = U.NamedEntity, this.stateNamedEntity(e, t));
|
|
1476
|
+
case U.NumericStart:
|
|
1477
1477
|
return this.stateNumericStart(e, t);
|
|
1478
|
-
case
|
|
1478
|
+
case U.NumericDecimal:
|
|
1479
1479
|
return this.stateNumericDecimal(e, t);
|
|
1480
|
-
case
|
|
1480
|
+
case U.NumericHex:
|
|
1481
1481
|
return this.stateNumericHex(e, t);
|
|
1482
|
-
case
|
|
1482
|
+
case U.NamedEntity:
|
|
1483
1483
|
return this.stateNamedEntity(e, t);
|
|
1484
1484
|
}
|
|
1485
1485
|
}
|
|
@@ -1493,7 +1493,7 @@ class Qn {
|
|
|
1493
1493
|
* @returns The number of characters that were consumed, or -1 if the entity is incomplete.
|
|
1494
1494
|
*/
|
|
1495
1495
|
stateNumericStart(e, t) {
|
|
1496
|
-
return t >= e.length ? -1 : (e.charCodeAt(t) |
|
|
1496
|
+
return t >= e.length ? -1 : (e.charCodeAt(t) | Gn) === Z.LOWER_X ? (this.state = U.NumericHex, this.consumed += 1, this.stateNumericHex(e, t + 1)) : (this.state = U.NumericDecimal, this.stateNumericDecimal(e, t));
|
|
1497
1497
|
}
|
|
1498
1498
|
addToNumericResult(e, t, n, r) {
|
|
1499
1499
|
if (t !== n) {
|
|
@@ -1514,7 +1514,7 @@ class Qn {
|
|
|
1514
1514
|
const n = t;
|
|
1515
1515
|
for (; t < e.length; ) {
|
|
1516
1516
|
const r = e.charCodeAt(t);
|
|
1517
|
-
if (ve(r) ||
|
|
1517
|
+
if (ve(r) || Wn(r))
|
|
1518
1518
|
t += 1;
|
|
1519
1519
|
else
|
|
1520
1520
|
return this.addToNumericResult(e, n, t, 16), this.emitNumericEntity(r, 3);
|
|
@@ -1562,7 +1562,7 @@ class Qn {
|
|
|
1562
1562
|
this.consumed += 1;
|
|
1563
1563
|
else if (this.decodeMode === bu.Strict)
|
|
1564
1564
|
return 0;
|
|
1565
|
-
return this.emitCodePoint(
|
|
1565
|
+
return this.emitCodePoint(Zn(this.result), this.consumed), this.errors && (e !== Z.SEMI && this.errors.missingSemicolonAfterCharacterReference(), this.errors.validateNumericCharacterReference(this.result)), this.consumed;
|
|
1566
1566
|
}
|
|
1567
1567
|
/**
|
|
1568
1568
|
* Parses a named entity.
|
|
@@ -1575,15 +1575,15 @@ class Qn {
|
|
|
1575
1575
|
*/
|
|
1576
1576
|
stateNamedEntity(e, t) {
|
|
1577
1577
|
const { decodeTree: n } = this;
|
|
1578
|
-
let r = n[this.treeIndex], o = (r &
|
|
1578
|
+
let r = n[this.treeIndex], o = (r & xu.VALUE_LENGTH) >> 14;
|
|
1579
1579
|
for (; t < e.length; t++, this.excess++) {
|
|
1580
1580
|
const c = e.charCodeAt(t);
|
|
1581
|
-
if (this.treeIndex =
|
|
1581
|
+
if (this.treeIndex = Yn(n, r, this.treeIndex + Math.max(1, o), c), this.treeIndex < 0)
|
|
1582
1582
|
return this.result === 0 || // If we are parsing an attribute
|
|
1583
1583
|
this.decodeMode === bu.Attribute && // We shouldn't have consumed any characters after the entity,
|
|
1584
1584
|
(o === 0 || // And there should be no invalid characters.
|
|
1585
|
-
|
|
1586
|
-
if (r = n[this.treeIndex], o = (r &
|
|
1585
|
+
Jn(c)) ? 0 : this.emitNotTerminatedNamedEntity();
|
|
1586
|
+
if (r = n[this.treeIndex], o = (r & xu.VALUE_LENGTH) >> 14, o !== 0) {
|
|
1587
1587
|
if (c === Z.SEMI)
|
|
1588
1588
|
return this.emitNamedEntityData(this.treeIndex, o, this.consumed + this.excess);
|
|
1589
1589
|
this.decodeMode !== bu.Strict && (this.result = this.treeIndex, this.consumed += this.excess, this.excess = 0);
|
|
@@ -1598,7 +1598,7 @@ class Qn {
|
|
|
1598
1598
|
*/
|
|
1599
1599
|
emitNotTerminatedNamedEntity() {
|
|
1600
1600
|
var e;
|
|
1601
|
-
const { result: t, decodeTree: n } = this, r = (n[t] &
|
|
1601
|
+
const { result: t, decodeTree: n } = this, r = (n[t] & xu.VALUE_LENGTH) >> 14;
|
|
1602
1602
|
return this.emitNamedEntityData(t, r, this.consumed), (e = this.errors) === null || e === void 0 || e.missingSemicolonAfterCharacterReference(), this.consumed;
|
|
1603
1603
|
}
|
|
1604
1604
|
/**
|
|
@@ -1612,7 +1612,7 @@ class Qn {
|
|
|
1612
1612
|
*/
|
|
1613
1613
|
emitNamedEntityData(e, t, n) {
|
|
1614
1614
|
const { decodeTree: r } = this;
|
|
1615
|
-
return this.emitCodePoint(t === 1 ? r[e] & ~
|
|
1615
|
+
return this.emitCodePoint(t === 1 ? r[e] & ~xu.VALUE_LENGTH : r[e + 1], n), t === 3 && this.emitCodePoint(r[e + 2], n), n;
|
|
1616
1616
|
}
|
|
1617
1617
|
/**
|
|
1618
1618
|
* Signal to the parser that the end of the input was reached.
|
|
@@ -1624,23 +1624,23 @@ class Qn {
|
|
|
1624
1624
|
end() {
|
|
1625
1625
|
var e;
|
|
1626
1626
|
switch (this.state) {
|
|
1627
|
-
case
|
|
1627
|
+
case U.NamedEntity:
|
|
1628
1628
|
return this.result !== 0 && (this.decodeMode !== bu.Attribute || this.result === this.treeIndex) ? this.emitNotTerminatedNamedEntity() : 0;
|
|
1629
1629
|
// Otherwise, emit a numeric entity if we have one.
|
|
1630
|
-
case
|
|
1630
|
+
case U.NumericDecimal:
|
|
1631
1631
|
return this.emitNumericEntity(0, 2);
|
|
1632
|
-
case
|
|
1632
|
+
case U.NumericHex:
|
|
1633
1633
|
return this.emitNumericEntity(0, 3);
|
|
1634
|
-
case
|
|
1634
|
+
case U.NumericStart:
|
|
1635
1635
|
return (e = this.errors) === null || e === void 0 || e.absenceOfDigitsInNumericCharacterReference(this.consumed), 0;
|
|
1636
|
-
case
|
|
1636
|
+
case U.EntityStart:
|
|
1637
1637
|
return 0;
|
|
1638
1638
|
}
|
|
1639
1639
|
}
|
|
1640
1640
|
}
|
|
1641
|
-
function
|
|
1641
|
+
function Wt(u) {
|
|
1642
1642
|
let e = "";
|
|
1643
|
-
const t = new
|
|
1643
|
+
const t = new Kn(u, (n) => e += Un(n));
|
|
1644
1644
|
return function(r, o) {
|
|
1645
1645
|
let c = 0, i = 0;
|
|
1646
1646
|
for (; (i = r.indexOf("&", i)) >= 0; ) {
|
|
@@ -1660,8 +1660,8 @@ function Gt(u) {
|
|
|
1660
1660
|
return e = "", a;
|
|
1661
1661
|
};
|
|
1662
1662
|
}
|
|
1663
|
-
function
|
|
1664
|
-
const r = (e &
|
|
1663
|
+
function Yn(u, e, t, n) {
|
|
1664
|
+
const r = (e & xu.BRANCH_LENGTH) >> 7, o = e & xu.JUMP_TABLE;
|
|
1665
1665
|
if (r === 0)
|
|
1666
1666
|
return o !== 0 && n === o ? t : -1;
|
|
1667
1667
|
if (o) {
|
|
@@ -1680,20 +1680,20 @@ function Jn(u, e, t, n) {
|
|
|
1680
1680
|
}
|
|
1681
1681
|
return -1;
|
|
1682
1682
|
}
|
|
1683
|
-
const
|
|
1684
|
-
|
|
1685
|
-
function
|
|
1686
|
-
return
|
|
1683
|
+
const Xn = Wt($n);
|
|
1684
|
+
Wt(Vn);
|
|
1685
|
+
function Qt(u, e = bu.Legacy) {
|
|
1686
|
+
return Xn(u, e);
|
|
1687
1687
|
}
|
|
1688
|
-
function
|
|
1688
|
+
function ur(u) {
|
|
1689
1689
|
return Object.prototype.toString.call(u);
|
|
1690
1690
|
}
|
|
1691
1691
|
function Oe(u) {
|
|
1692
|
-
return
|
|
1692
|
+
return ur(u) === "[object String]";
|
|
1693
1693
|
}
|
|
1694
|
-
const
|
|
1695
|
-
function
|
|
1696
|
-
return
|
|
1694
|
+
const er = Object.prototype.hasOwnProperty;
|
|
1695
|
+
function tr(u, e) {
|
|
1696
|
+
return er.call(u, e);
|
|
1697
1697
|
}
|
|
1698
1698
|
function ee(u) {
|
|
1699
1699
|
return Array.prototype.slice.call(arguments, 1).forEach(function(t) {
|
|
@@ -1706,10 +1706,10 @@ function ee(u) {
|
|
|
1706
1706
|
}
|
|
1707
1707
|
}), u;
|
|
1708
1708
|
}
|
|
1709
|
-
function
|
|
1709
|
+
function Jt(u, e, t) {
|
|
1710
1710
|
return [].concat(u.slice(0, e), t, u.slice(e + 1));
|
|
1711
1711
|
}
|
|
1712
|
-
function
|
|
1712
|
+
function Me(u) {
|
|
1713
1713
|
return !(u >= 55296 && u <= 57343 || u >= 64976 && u <= 65007 || (u & 65535) === 65535 || (u & 65535) === 65534 || u >= 0 && u <= 8 || u === 11 || u >= 14 && u <= 31 || u >= 127 && u <= 159 || u > 1114111);
|
|
1714
1714
|
}
|
|
1715
1715
|
function Ju(u) {
|
|
@@ -1720,38 +1720,38 @@ function Ju(u) {
|
|
|
1720
1720
|
}
|
|
1721
1721
|
return String.fromCharCode(u);
|
|
1722
1722
|
}
|
|
1723
|
-
const
|
|
1724
|
-
function
|
|
1725
|
-
if (e.charCodeAt(0) === 35 &&
|
|
1723
|
+
const Kt = /\\([!"#$%&'()*+,\-./:;<=>?@[\\\]^_`{|}~])/g, nr = /&([a-z#][a-z0-9]{1,31});/gi, rr = new RegExp(Kt.source + "|" + nr.source, "gi"), or = /^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))$/i;
|
|
1724
|
+
function cr(u, e) {
|
|
1725
|
+
if (e.charCodeAt(0) === 35 && or.test(e)) {
|
|
1726
1726
|
const n = e[1].toLowerCase() === "x" ? parseInt(e.slice(2), 16) : parseInt(e.slice(1), 10);
|
|
1727
|
-
return
|
|
1727
|
+
return Me(n) ? Ju(n) : u;
|
|
1728
1728
|
}
|
|
1729
|
-
const t =
|
|
1729
|
+
const t = Qt(u);
|
|
1730
1730
|
return t !== u ? t : u;
|
|
1731
1731
|
}
|
|
1732
|
-
function
|
|
1733
|
-
return u.indexOf("\\") < 0 ? u : u.replace(
|
|
1732
|
+
function ir(u) {
|
|
1733
|
+
return u.indexOf("\\") < 0 ? u : u.replace(Kt, "$1");
|
|
1734
1734
|
}
|
|
1735
|
-
function
|
|
1736
|
-
return u.indexOf("\\") < 0 && u.indexOf("&") < 0 ? u : u.replace(
|
|
1737
|
-
return t ||
|
|
1735
|
+
function Au(u) {
|
|
1736
|
+
return u.indexOf("\\") < 0 && u.indexOf("&") < 0 ? u : u.replace(rr, function(e, t, n) {
|
|
1737
|
+
return t || cr(e, n);
|
|
1738
1738
|
});
|
|
1739
1739
|
}
|
|
1740
|
-
const
|
|
1740
|
+
const ar = /[&<>"]/, sr = /[&<>"]/g, lr = {
|
|
1741
1741
|
"&": "&",
|
|
1742
1742
|
"<": "<",
|
|
1743
1743
|
">": ">",
|
|
1744
1744
|
'"': """
|
|
1745
1745
|
};
|
|
1746
|
-
function
|
|
1747
|
-
return
|
|
1746
|
+
function fr(u) {
|
|
1747
|
+
return lr[u];
|
|
1748
1748
|
}
|
|
1749
|
-
function
|
|
1750
|
-
return
|
|
1749
|
+
function gu(u) {
|
|
1750
|
+
return ar.test(u) ? u.replace(sr, fr) : u;
|
|
1751
1751
|
}
|
|
1752
|
-
const
|
|
1753
|
-
function
|
|
1754
|
-
return u.replace(
|
|
1752
|
+
const dr = /[.?*+^$[\]\\(){}|-]/g;
|
|
1753
|
+
function hr(u) {
|
|
1754
|
+
return u.replace(dr, "\\$&");
|
|
1755
1755
|
}
|
|
1756
1756
|
function j(u) {
|
|
1757
1757
|
switch (u) {
|
|
@@ -1786,9 +1786,9 @@ function Lu(u) {
|
|
|
1786
1786
|
return !1;
|
|
1787
1787
|
}
|
|
1788
1788
|
function Ou(u) {
|
|
1789
|
-
return Le.test(u) ||
|
|
1789
|
+
return Le.test(u) || Zt.test(u);
|
|
1790
1790
|
}
|
|
1791
|
-
function
|
|
1791
|
+
function Mu(u) {
|
|
1792
1792
|
switch (u) {
|
|
1793
1793
|
case 33:
|
|
1794
1794
|
case 34:
|
|
@@ -1830,26 +1830,26 @@ function Pu(u) {
|
|
|
1830
1830
|
function te(u) {
|
|
1831
1831
|
return u = u.trim().replace(/\s+/g, " "), "ẞ".toLowerCase() === "Ṿ" && (u = u.replace(/ẞ/g, "ß")), u.toLowerCase().toUpperCase();
|
|
1832
1832
|
}
|
|
1833
|
-
const
|
|
1833
|
+
const pr = { mdurl: zn, ucmicro: qn }, br = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1834
1834
|
__proto__: null,
|
|
1835
|
-
arrayReplaceAt:
|
|
1835
|
+
arrayReplaceAt: Jt,
|
|
1836
1836
|
assign: ee,
|
|
1837
|
-
escapeHtml:
|
|
1838
|
-
escapeRE:
|
|
1837
|
+
escapeHtml: gu,
|
|
1838
|
+
escapeRE: hr,
|
|
1839
1839
|
fromCodePoint: Ju,
|
|
1840
|
-
has:
|
|
1841
|
-
isMdAsciiPunct:
|
|
1840
|
+
has: tr,
|
|
1841
|
+
isMdAsciiPunct: Mu,
|
|
1842
1842
|
isPunctChar: Ou,
|
|
1843
1843
|
isSpace: j,
|
|
1844
1844
|
isString: Oe,
|
|
1845
|
-
isValidEntityCode:
|
|
1845
|
+
isValidEntityCode: Me,
|
|
1846
1846
|
isWhiteSpace: Lu,
|
|
1847
|
-
lib:
|
|
1847
|
+
lib: pr,
|
|
1848
1848
|
normalizeReference: te,
|
|
1849
|
-
unescapeAll:
|
|
1850
|
-
unescapeMd:
|
|
1849
|
+
unescapeAll: Au,
|
|
1850
|
+
unescapeMd: ir
|
|
1851
1851
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
1852
|
-
function
|
|
1852
|
+
function mr(u, e, t) {
|
|
1853
1853
|
let n, r, o, c;
|
|
1854
1854
|
const i = u.posMax, a = u.pos;
|
|
1855
1855
|
for (u.pos = e + 1, n = 1; u.pos < i; ) {
|
|
@@ -1867,7 +1867,7 @@ function pr(u, e, t) {
|
|
|
1867
1867
|
let s = -1;
|
|
1868
1868
|
return r && (s = u.pos), u.pos = a, s;
|
|
1869
1869
|
}
|
|
1870
|
-
function
|
|
1870
|
+
function xr(u, e, t) {
|
|
1871
1871
|
let n, r = e;
|
|
1872
1872
|
const o = {
|
|
1873
1873
|
ok: !1,
|
|
@@ -1879,7 +1879,7 @@ function br(u, e, t) {
|
|
|
1879
1879
|
if (n = u.charCodeAt(r), n === 10 || n === 60)
|
|
1880
1880
|
return o;
|
|
1881
1881
|
if (n === 62)
|
|
1882
|
-
return o.pos = r + 1, o.str =
|
|
1882
|
+
return o.pos = r + 1, o.str = Au(u.slice(e + 1, r)), o.ok = !0, o;
|
|
1883
1883
|
if (n === 92 && r + 1 < t) {
|
|
1884
1884
|
r += 2;
|
|
1885
1885
|
continue;
|
|
@@ -1905,9 +1905,9 @@ function br(u, e, t) {
|
|
|
1905
1905
|
}
|
|
1906
1906
|
r++;
|
|
1907
1907
|
}
|
|
1908
|
-
return e === r || c !== 0 || (o.str =
|
|
1908
|
+
return e === r || c !== 0 || (o.str = Au(u.slice(e, r)), o.pos = r, o.ok = !0), o;
|
|
1909
1909
|
}
|
|
1910
|
-
function
|
|
1910
|
+
function gr(u, e, t, n) {
|
|
1911
1911
|
let r, o = e;
|
|
1912
1912
|
const c = {
|
|
1913
1913
|
// if `true`, this is a valid link title
|
|
@@ -1933,37 +1933,37 @@ function mr(u, e, t, n) {
|
|
|
1933
1933
|
}
|
|
1934
1934
|
for (; o < t; ) {
|
|
1935
1935
|
if (r = u.charCodeAt(o), r === c.marker)
|
|
1936
|
-
return c.pos = o + 1, c.str +=
|
|
1936
|
+
return c.pos = o + 1, c.str += Au(u.slice(e, o)), c.ok = !0, c;
|
|
1937
1937
|
if (r === 40 && c.marker === 41)
|
|
1938
1938
|
return c;
|
|
1939
1939
|
r === 92 && o + 1 < t && o++, o++;
|
|
1940
1940
|
}
|
|
1941
|
-
return c.can_continue = !0, c.str +=
|
|
1941
|
+
return c.can_continue = !0, c.str += Au(u.slice(e, o)), c;
|
|
1942
1942
|
}
|
|
1943
|
-
const
|
|
1943
|
+
const _r = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1944
1944
|
__proto__: null,
|
|
1945
|
-
parseLinkDestination:
|
|
1946
|
-
parseLinkLabel:
|
|
1947
|
-
parseLinkTitle:
|
|
1948
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
1949
|
-
|
|
1945
|
+
parseLinkDestination: xr,
|
|
1946
|
+
parseLinkLabel: mr,
|
|
1947
|
+
parseLinkTitle: gr
|
|
1948
|
+
}, Symbol.toStringTag, { value: "Module" })), fu = {};
|
|
1949
|
+
fu.code_inline = function(u, e, t, n, r) {
|
|
1950
1950
|
const o = u[e];
|
|
1951
|
-
return "<code" + r.renderAttrs(o) + ">" +
|
|
1951
|
+
return "<code" + r.renderAttrs(o) + ">" + gu(o.content) + "</code>";
|
|
1952
1952
|
};
|
|
1953
|
-
|
|
1953
|
+
fu.code_block = function(u, e, t, n, r) {
|
|
1954
1954
|
const o = u[e];
|
|
1955
|
-
return "<pre" + r.renderAttrs(o) + "><code>" +
|
|
1955
|
+
return "<pre" + r.renderAttrs(o) + "><code>" + gu(u[e].content) + `</code></pre>
|
|
1956
1956
|
`;
|
|
1957
1957
|
};
|
|
1958
|
-
|
|
1959
|
-
const o = u[e], c = o.info ?
|
|
1958
|
+
fu.fence = function(u, e, t, n, r) {
|
|
1959
|
+
const o = u[e], c = o.info ? Au(o.info).trim() : "";
|
|
1960
1960
|
let i = "", a = "";
|
|
1961
1961
|
if (c) {
|
|
1962
1962
|
const l = c.split(/(\s+)/g);
|
|
1963
1963
|
i = l[0], a = l.slice(2).join("");
|
|
1964
1964
|
}
|
|
1965
1965
|
let s;
|
|
1966
|
-
if (t.highlight ? s = t.highlight(o.content, i, a) ||
|
|
1966
|
+
if (t.highlight ? s = t.highlight(o.content, i, a) || gu(o.content) : s = gu(o.content), s.indexOf("<pre") === 0)
|
|
1967
1967
|
return s + `
|
|
1968
1968
|
`;
|
|
1969
1969
|
if (c) {
|
|
@@ -1978,42 +1978,42 @@ su.fence = function(u, e, t, n, r) {
|
|
|
1978
1978
|
return `<pre><code${r.renderAttrs(o)}>${s}</code></pre>
|
|
1979
1979
|
`;
|
|
1980
1980
|
};
|
|
1981
|
-
|
|
1981
|
+
fu.image = function(u, e, t, n, r) {
|
|
1982
1982
|
const o = u[e];
|
|
1983
1983
|
return o.attrs[o.attrIndex("alt")][1] = r.renderInlineAsText(o.children, t, n), r.renderToken(u, e, t);
|
|
1984
1984
|
};
|
|
1985
|
-
|
|
1985
|
+
fu.hardbreak = function(u, e, t) {
|
|
1986
1986
|
return t.xhtmlOut ? `<br />
|
|
1987
1987
|
` : `<br>
|
|
1988
1988
|
`;
|
|
1989
1989
|
};
|
|
1990
|
-
|
|
1990
|
+
fu.softbreak = function(u, e, t) {
|
|
1991
1991
|
return t.breaks ? t.xhtmlOut ? `<br />
|
|
1992
1992
|
` : `<br>
|
|
1993
1993
|
` : `
|
|
1994
1994
|
`;
|
|
1995
1995
|
};
|
|
1996
|
-
|
|
1997
|
-
return
|
|
1996
|
+
fu.text = function(u, e) {
|
|
1997
|
+
return gu(u[e].content);
|
|
1998
1998
|
};
|
|
1999
|
-
|
|
1999
|
+
fu.html_block = function(u, e) {
|
|
2000
2000
|
return u[e].content;
|
|
2001
2001
|
};
|
|
2002
|
-
|
|
2002
|
+
fu.html_inline = function(u, e) {
|
|
2003
2003
|
return u[e].content;
|
|
2004
2004
|
};
|
|
2005
|
-
function
|
|
2006
|
-
this.rules = ee({},
|
|
2005
|
+
function wu() {
|
|
2006
|
+
this.rules = ee({}, fu);
|
|
2007
2007
|
}
|
|
2008
|
-
|
|
2008
|
+
wu.prototype.renderAttrs = function(e) {
|
|
2009
2009
|
let t, n, r;
|
|
2010
2010
|
if (!e.attrs)
|
|
2011
2011
|
return "";
|
|
2012
2012
|
for (r = "", t = 0, n = e.attrs.length; t < n; t++)
|
|
2013
|
-
r += " " +
|
|
2013
|
+
r += " " + gu(e.attrs[t][0]) + '="' + gu(e.attrs[t][1]) + '"';
|
|
2014
2014
|
return r;
|
|
2015
2015
|
};
|
|
2016
|
-
|
|
2016
|
+
wu.prototype.renderToken = function(e, t, n) {
|
|
2017
2017
|
const r = e[t];
|
|
2018
2018
|
let o = "";
|
|
2019
2019
|
if (r.hidden)
|
|
@@ -2028,7 +2028,7 @@ Au.prototype.renderToken = function(e, t, n) {
|
|
|
2028
2028
|
return o += c ? `>
|
|
2029
2029
|
` : ">", o;
|
|
2030
2030
|
};
|
|
2031
|
-
|
|
2031
|
+
wu.prototype.renderInline = function(u, e, t) {
|
|
2032
2032
|
let n = "";
|
|
2033
2033
|
const r = this.rules;
|
|
2034
2034
|
for (let o = 0, c = u.length; o < c; o++) {
|
|
@@ -2037,7 +2037,7 @@ Au.prototype.renderInline = function(u, e, t) {
|
|
|
2037
2037
|
}
|
|
2038
2038
|
return n;
|
|
2039
2039
|
};
|
|
2040
|
-
|
|
2040
|
+
wu.prototype.renderInlineAsText = function(u, e, t) {
|
|
2041
2041
|
let n = "";
|
|
2042
2042
|
for (let r = 0, o = u.length; r < o; r++)
|
|
2043
2043
|
switch (u[r].type) {
|
|
@@ -2059,7 +2059,7 @@ Au.prototype.renderInlineAsText = function(u, e, t) {
|
|
|
2059
2059
|
}
|
|
2060
2060
|
return n;
|
|
2061
2061
|
};
|
|
2062
|
-
|
|
2062
|
+
wu.prototype.render = function(u, e, t) {
|
|
2063
2063
|
let n = "";
|
|
2064
2064
|
const r = this.rules;
|
|
2065
2065
|
for (let o = 0, c = u.length; o < c; o++) {
|
|
@@ -2160,10 +2160,10 @@ Y.prototype.disable = function(u, e) {
|
|
|
2160
2160
|
Y.prototype.getRules = function(u) {
|
|
2161
2161
|
return this.__cache__ === null && this.__compile__(), this.__cache__[u] || [];
|
|
2162
2162
|
};
|
|
2163
|
-
function
|
|
2163
|
+
function ou(u, e, t) {
|
|
2164
2164
|
this.type = u, this.tag = e, this.attrs = null, this.map = null, this.nesting = t, this.level = 0, this.children = null, this.content = "", this.markup = "", this.info = "", this.meta = null, this.block = !1, this.hidden = !1;
|
|
2165
2165
|
}
|
|
2166
|
-
|
|
2166
|
+
ou.prototype.attrIndex = function(e) {
|
|
2167
2167
|
if (!this.attrs)
|
|
2168
2168
|
return -1;
|
|
2169
2169
|
const t = this.attrs;
|
|
@@ -2172,50 +2172,50 @@ ru.prototype.attrIndex = function(e) {
|
|
|
2172
2172
|
return n;
|
|
2173
2173
|
return -1;
|
|
2174
2174
|
};
|
|
2175
|
-
|
|
2175
|
+
ou.prototype.attrPush = function(e) {
|
|
2176
2176
|
this.attrs ? this.attrs.push(e) : this.attrs = [e];
|
|
2177
2177
|
};
|
|
2178
|
-
|
|
2178
|
+
ou.prototype.attrSet = function(e, t) {
|
|
2179
2179
|
const n = this.attrIndex(e), r = [e, t];
|
|
2180
2180
|
n < 0 ? this.attrPush(r) : this.attrs[n] = r;
|
|
2181
2181
|
};
|
|
2182
|
-
|
|
2182
|
+
ou.prototype.attrGet = function(e) {
|
|
2183
2183
|
const t = this.attrIndex(e);
|
|
2184
2184
|
let n = null;
|
|
2185
2185
|
return t >= 0 && (n = this.attrs[t][1]), n;
|
|
2186
2186
|
};
|
|
2187
|
-
|
|
2187
|
+
ou.prototype.attrJoin = function(e, t) {
|
|
2188
2188
|
const n = this.attrIndex(e);
|
|
2189
2189
|
n < 0 ? this.attrPush([e, t]) : this.attrs[n][1] = this.attrs[n][1] + " " + t;
|
|
2190
2190
|
};
|
|
2191
|
-
function
|
|
2191
|
+
function Yt(u, e, t) {
|
|
2192
2192
|
this.src = u, this.env = t, this.tokens = [], this.inlineMode = !1, this.md = e;
|
|
2193
2193
|
}
|
|
2194
|
-
|
|
2195
|
-
const
|
|
2196
|
-
function
|
|
2194
|
+
Yt.prototype.Token = ou;
|
|
2195
|
+
const kr = /\r\n?|\n/g, yr = /\0/g;
|
|
2196
|
+
function Cr(u) {
|
|
2197
2197
|
let e;
|
|
2198
|
-
e = u.src.replace(
|
|
2199
|
-
`), e = e.replace(
|
|
2198
|
+
e = u.src.replace(kr, `
|
|
2199
|
+
`), e = e.replace(yr, "�"), u.src = e;
|
|
2200
2200
|
}
|
|
2201
|
-
function
|
|
2201
|
+
function vr(u) {
|
|
2202
2202
|
let e;
|
|
2203
2203
|
u.inlineMode ? (e = new u.Token("inline", "", 0), e.content = u.src, e.map = [0, 1], e.children = [], u.tokens.push(e)) : u.md.block.parse(u.src, u.md, u.env, u.tokens);
|
|
2204
2204
|
}
|
|
2205
|
-
function
|
|
2205
|
+
function Dr(u) {
|
|
2206
2206
|
const e = u.tokens;
|
|
2207
2207
|
for (let t = 0, n = e.length; t < n; t++) {
|
|
2208
2208
|
const r = e[t];
|
|
2209
2209
|
r.type === "inline" && u.md.inline.parse(r.content, u.md, u.env, r.children);
|
|
2210
2210
|
}
|
|
2211
2211
|
}
|
|
2212
|
-
function
|
|
2212
|
+
function Er(u) {
|
|
2213
2213
|
return /^<a[>\s]/i.test(u);
|
|
2214
2214
|
}
|
|
2215
|
-
function
|
|
2215
|
+
function Fr(u) {
|
|
2216
2216
|
return /^<\/a\s*>/i.test(u);
|
|
2217
2217
|
}
|
|
2218
|
-
function
|
|
2218
|
+
function Ar(u) {
|
|
2219
2219
|
const e = u.tokens;
|
|
2220
2220
|
if (u.md.options.linkify)
|
|
2221
2221
|
for (let t = 0, n = e.length; t < n; t++) {
|
|
@@ -2229,7 +2229,7 @@ function Er(u) {
|
|
|
2229
2229
|
c--;
|
|
2230
2230
|
continue;
|
|
2231
2231
|
}
|
|
2232
|
-
if (i.type === "html_inline" && (
|
|
2232
|
+
if (i.type === "html_inline" && (Er(i.content) && o > 0 && o--, Fr(i.content) && o++), !(o > 0) && i.type === "text" && u.md.linkify.test(i.content)) {
|
|
2233
2233
|
const a = i.content;
|
|
2234
2234
|
let s = u.md.linkify.match(a);
|
|
2235
2235
|
const l = [];
|
|
@@ -2257,44 +2257,44 @@ function Er(u) {
|
|
|
2257
2257
|
const p = new u.Token("text", "", 0);
|
|
2258
2258
|
p.content = a.slice(g), p.level = f, l.push(p);
|
|
2259
2259
|
}
|
|
2260
|
-
e[t].children = r =
|
|
2260
|
+
e[t].children = r = Jt(r, c, l);
|
|
2261
2261
|
}
|
|
2262
2262
|
}
|
|
2263
2263
|
}
|
|
2264
2264
|
}
|
|
2265
|
-
const
|
|
2265
|
+
const Xt = /\+-|\.\.|\?\?\?\?|!!!!|,,|--/, wr = /\((c|tm|r)\)/i, Sr = /\((c|tm|r)\)/ig, Tr = {
|
|
2266
2266
|
c: "©",
|
|
2267
2267
|
r: "®",
|
|
2268
2268
|
tm: "™"
|
|
2269
2269
|
};
|
|
2270
|
-
function
|
|
2271
|
-
return
|
|
2270
|
+
function Ir(u, e) {
|
|
2271
|
+
return Tr[e.toLowerCase()];
|
|
2272
2272
|
}
|
|
2273
|
-
function
|
|
2273
|
+
function Nr(u) {
|
|
2274
2274
|
let e = 0;
|
|
2275
2275
|
for (let t = u.length - 1; t >= 0; t--) {
|
|
2276
2276
|
const n = u[t];
|
|
2277
|
-
n.type === "text" && !e && (n.content = n.content.replace(
|
|
2277
|
+
n.type === "text" && !e && (n.content = n.content.replace(Sr, Ir)), n.type === "link_open" && n.info === "auto" && e--, n.type === "link_close" && n.info === "auto" && e++;
|
|
2278
2278
|
}
|
|
2279
2279
|
}
|
|
2280
|
-
function
|
|
2280
|
+
function Br(u) {
|
|
2281
2281
|
let e = 0;
|
|
2282
2282
|
for (let t = u.length - 1; t >= 0; t--) {
|
|
2283
2283
|
const n = u[t];
|
|
2284
|
-
n.type === "text" && !e &&
|
|
2284
|
+
n.type === "text" && !e && Xt.test(n.content) && (n.content = n.content.replace(/\+-/g, "±").replace(/\.{2,}/g, "…").replace(/([?!])…/g, "$1..").replace(/([?!]){4,}/g, "$1$1$1").replace(/,{2,}/g, ",").replace(/(^|[^-])---(?=[^-]|$)/mg, "$1—").replace(/(^|\s)--(?=\s|$)/mg, "$1–").replace(/(^|[^-\s])--(?=[^-\s]|$)/mg, "$1–")), n.type === "link_open" && n.info === "auto" && e--, n.type === "link_close" && n.info === "auto" && e++;
|
|
2285
2285
|
}
|
|
2286
2286
|
}
|
|
2287
|
-
function
|
|
2287
|
+
function Lr(u) {
|
|
2288
2288
|
let e;
|
|
2289
2289
|
if (u.md.options.typographer)
|
|
2290
2290
|
for (e = u.tokens.length - 1; e >= 0; e--)
|
|
2291
|
-
u.tokens[e].type === "inline" && (
|
|
2291
|
+
u.tokens[e].type === "inline" && (wr.test(u.tokens[e].content) && Nr(u.tokens[e].children), Xt.test(u.tokens[e].content) && Br(u.tokens[e].children));
|
|
2292
2292
|
}
|
|
2293
|
-
const
|
|
2293
|
+
const Or = /['"]/, ft = /['"]/g, dt = "’";
|
|
2294
2294
|
function $u(u, e, t) {
|
|
2295
2295
|
return u.slice(0, e) + t + u.slice(e + 1);
|
|
2296
2296
|
}
|
|
2297
|
-
function
|
|
2297
|
+
function Mr(u, e) {
|
|
2298
2298
|
let t;
|
|
2299
2299
|
const n = [];
|
|
2300
2300
|
for (let r = 0; r < u.length; r++) {
|
|
@@ -2331,7 +2331,7 @@ function Lr(u, e) {
|
|
|
2331
2331
|
C = u[t].content.charCodeAt(0);
|
|
2332
2332
|
break;
|
|
2333
2333
|
}
|
|
2334
|
-
const k =
|
|
2334
|
+
const k = Mu(d) || Ou(String.fromCharCode(d)), w = Mu(C) || Ou(String.fromCharCode(C)), v = Lu(d), E = Lu(C);
|
|
2335
2335
|
if (E ? f = !1 : w && (v || k || (f = !1)), v ? g = !1 : k && (E || w || (g = !1)), C === 34 && l[0] === '"' && d >= 48 && d <= 57 && (g = f = !1), f && g && (f = k, g = w), !f && !g) {
|
|
2336
2336
|
p && (o.content = $u(o.content, l.index, dt));
|
|
2337
2337
|
continue;
|
|
@@ -2361,12 +2361,12 @@ function Lr(u, e) {
|
|
|
2361
2361
|
}
|
|
2362
2362
|
}
|
|
2363
2363
|
}
|
|
2364
|
-
function
|
|
2364
|
+
function Pr(u) {
|
|
2365
2365
|
if (u.md.options.typographer)
|
|
2366
2366
|
for (let e = u.tokens.length - 1; e >= 0; e--)
|
|
2367
|
-
u.tokens[e].type !== "inline" || !
|
|
2367
|
+
u.tokens[e].type !== "inline" || !Or.test(u.tokens[e].content) || Mr(u.tokens[e].children, u);
|
|
2368
2368
|
}
|
|
2369
|
-
function
|
|
2369
|
+
function jr(u) {
|
|
2370
2370
|
let e, t;
|
|
2371
2371
|
const n = u.tokens, r = n.length;
|
|
2372
2372
|
for (let o = 0; o < r; o++) {
|
|
@@ -2380,28 +2380,28 @@ function Pr(u) {
|
|
|
2380
2380
|
}
|
|
2381
2381
|
}
|
|
2382
2382
|
const se = [
|
|
2383
|
-
["normalize",
|
|
2384
|
-
["block",
|
|
2385
|
-
["inline",
|
|
2386
|
-
["linkify",
|
|
2387
|
-
["replacements",
|
|
2388
|
-
["smartquotes",
|
|
2383
|
+
["normalize", Cr],
|
|
2384
|
+
["block", vr],
|
|
2385
|
+
["inline", Dr],
|
|
2386
|
+
["linkify", Ar],
|
|
2387
|
+
["replacements", Lr],
|
|
2388
|
+
["smartquotes", Pr],
|
|
2389
2389
|
// `text_join` finds `text_special` tokens (for escape sequences)
|
|
2390
2390
|
// and joins them with the rest of the text
|
|
2391
|
-
["text_join",
|
|
2391
|
+
["text_join", jr]
|
|
2392
2392
|
];
|
|
2393
|
-
function
|
|
2393
|
+
function Pe() {
|
|
2394
2394
|
this.ruler = new Y();
|
|
2395
2395
|
for (let u = 0; u < se.length; u++)
|
|
2396
2396
|
this.ruler.push(se[u][0], se[u][1]);
|
|
2397
2397
|
}
|
|
2398
|
-
|
|
2398
|
+
Pe.prototype.process = function(u) {
|
|
2399
2399
|
const e = this.ruler.getRules("");
|
|
2400
2400
|
for (let t = 0, n = e.length; t < n; t++)
|
|
2401
2401
|
e[t](u);
|
|
2402
2402
|
};
|
|
2403
|
-
|
|
2404
|
-
function
|
|
2403
|
+
Pe.prototype.State = Yt;
|
|
2404
|
+
function du(u, e, t, n) {
|
|
2405
2405
|
this.src = u, this.md = e, this.env = t, this.tokens = n, this.bMarks = [], this.eMarks = [], this.tShift = [], this.sCount = [], this.bsCount = [], this.blkIndent = 0, this.line = 0, this.lineMax = 0, this.tight = !1, this.ddIndent = -1, this.listIndent = -1, this.parentType = "root", this.level = 0;
|
|
2406
2406
|
const r = this.src;
|
|
2407
2407
|
for (let o = 0, c = 0, i = 0, a = 0, s = r.length, l = !1; c < s; c++) {
|
|
@@ -2416,19 +2416,19 @@ function lu(u, e, t, n) {
|
|
|
2416
2416
|
}
|
|
2417
2417
|
this.bMarks.push(r.length), this.eMarks.push(r.length), this.tShift.push(0), this.sCount.push(0), this.bsCount.push(0), this.lineMax = this.bMarks.length - 1;
|
|
2418
2418
|
}
|
|
2419
|
-
|
|
2420
|
-
const n = new
|
|
2419
|
+
du.prototype.push = function(u, e, t) {
|
|
2420
|
+
const n = new ou(u, e, t);
|
|
2421
2421
|
return n.block = !0, t < 0 && this.level--, n.level = this.level, t > 0 && this.level++, this.tokens.push(n), n;
|
|
2422
2422
|
};
|
|
2423
|
-
|
|
2423
|
+
du.prototype.isEmpty = function(e) {
|
|
2424
2424
|
return this.bMarks[e] + this.tShift[e] >= this.eMarks[e];
|
|
2425
2425
|
};
|
|
2426
|
-
|
|
2426
|
+
du.prototype.skipEmptyLines = function(e) {
|
|
2427
2427
|
for (let t = this.lineMax; e < t && !(this.bMarks[e] + this.tShift[e] < this.eMarks[e]); e++)
|
|
2428
2428
|
;
|
|
2429
2429
|
return e;
|
|
2430
2430
|
};
|
|
2431
|
-
|
|
2431
|
+
du.prototype.skipSpaces = function(e) {
|
|
2432
2432
|
for (let t = this.src.length; e < t; e++) {
|
|
2433
2433
|
const n = this.src.charCodeAt(e);
|
|
2434
2434
|
if (!j(n))
|
|
@@ -2436,7 +2436,7 @@ lu.prototype.skipSpaces = function(e) {
|
|
|
2436
2436
|
}
|
|
2437
2437
|
return e;
|
|
2438
2438
|
};
|
|
2439
|
-
|
|
2439
|
+
du.prototype.skipSpacesBack = function(e, t) {
|
|
2440
2440
|
if (e <= t)
|
|
2441
2441
|
return e;
|
|
2442
2442
|
for (; e > t; )
|
|
@@ -2444,12 +2444,12 @@ lu.prototype.skipSpacesBack = function(e, t) {
|
|
|
2444
2444
|
return e + 1;
|
|
2445
2445
|
return e;
|
|
2446
2446
|
};
|
|
2447
|
-
|
|
2447
|
+
du.prototype.skipChars = function(e, t) {
|
|
2448
2448
|
for (let n = this.src.length; e < n && this.src.charCodeAt(e) === t; e++)
|
|
2449
2449
|
;
|
|
2450
2450
|
return e;
|
|
2451
2451
|
};
|
|
2452
|
-
|
|
2452
|
+
du.prototype.skipCharsBack = function(e, t, n) {
|
|
2453
2453
|
if (e <= n)
|
|
2454
2454
|
return e;
|
|
2455
2455
|
for (; e > n; )
|
|
@@ -2457,7 +2457,7 @@ lu.prototype.skipCharsBack = function(e, t, n) {
|
|
|
2457
2457
|
return e + 1;
|
|
2458
2458
|
return e;
|
|
2459
2459
|
};
|
|
2460
|
-
|
|
2460
|
+
du.prototype.getLines = function(e, t, n, r) {
|
|
2461
2461
|
if (e >= t)
|
|
2462
2462
|
return "";
|
|
2463
2463
|
const o = new Array(t - e);
|
|
@@ -2479,8 +2479,8 @@ lu.prototype.getLines = function(e, t, n, r) {
|
|
|
2479
2479
|
}
|
|
2480
2480
|
return o.join("");
|
|
2481
2481
|
};
|
|
2482
|
-
|
|
2483
|
-
const
|
|
2482
|
+
du.prototype.Token = ou;
|
|
2483
|
+
const zr = 65536;
|
|
2484
2484
|
function le(u, e) {
|
|
2485
2485
|
const t = u.bMarks[e] + u.tShift[e], n = u.eMarks[e];
|
|
2486
2486
|
return u.src.slice(t, n);
|
|
@@ -2492,7 +2492,7 @@ function ht(u) {
|
|
|
2492
2492
|
r === 124 && (o ? (i += u.substring(c, n - 1), c = n) : (e.push(i + u.substring(c, n)), i = "", c = n + 1)), o = r === 92, n++, r = u.charCodeAt(n);
|
|
2493
2493
|
return e.push(i + u.substring(c)), e;
|
|
2494
2494
|
}
|
|
2495
|
-
function
|
|
2495
|
+
function Rr(u, e, t, n) {
|
|
2496
2496
|
if (e + 2 > t)
|
|
2497
2497
|
return !1;
|
|
2498
2498
|
let r = e + 1;
|
|
@@ -2557,7 +2557,7 @@ function jr(u, e, t, n) {
|
|
|
2557
2557
|
h = !0;
|
|
2558
2558
|
break;
|
|
2559
2559
|
}
|
|
2560
|
-
if (h || (a = le(u, r).trim(), !a) || u.sCount[r] - u.blkIndent >= 4 || (s = ht(a), s.length && s[0] === "" && s.shift(), s.length && s[s.length - 1] === "" && s.pop(), E += f - s.length, E >
|
|
2560
|
+
if (h || (a = le(u, r).trim(), !a) || u.sCount[r] - u.blkIndent >= 4 || (s = ht(a), s.length && s[0] === "" && s.shift(), s.length && s[s.length - 1] === "" && s.pop(), E += f - s.length, E > zr))
|
|
2561
2561
|
break;
|
|
2562
2562
|
if (r === e + 2) {
|
|
2563
2563
|
const m = u.push("tbody_open", "tbody", 1);
|
|
@@ -2575,7 +2575,7 @@ function jr(u, e, t, n) {
|
|
|
2575
2575
|
}
|
|
2576
2576
|
return v && (u.push("tbody_close", "tbody", -1), v[1] = r), u.push("table_close", "table", -1), C[1] = r, u.parentType = g, u.line = r, !0;
|
|
2577
2577
|
}
|
|
2578
|
-
function
|
|
2578
|
+
function qr(u, e, t) {
|
|
2579
2579
|
if (u.sCount[e] - u.blkIndent < 4)
|
|
2580
2580
|
return !1;
|
|
2581
2581
|
let n = e + 1, r = n;
|
|
@@ -2595,7 +2595,7 @@ function zr(u, e, t) {
|
|
|
2595
2595
|
return o.content = u.getLines(e, r, 4 + u.blkIndent, !1) + `
|
|
2596
2596
|
`, o.map = [e, u.line], !0;
|
|
2597
2597
|
}
|
|
2598
|
-
function
|
|
2598
|
+
function $r(u, e, t, n) {
|
|
2599
2599
|
let r = u.bMarks[e] + u.tShift[e], o = u.eMarks[e];
|
|
2600
2600
|
if (u.sCount[e] - u.blkIndent >= 4 || r + 3 > o)
|
|
2601
2601
|
return !1;
|
|
@@ -2622,7 +2622,7 @@ function Rr(u, e, t, n) {
|
|
|
2622
2622
|
const p = u.push("fence", "code", 0);
|
|
2623
2623
|
return p.info = l, p.content = u.getLines(e + 1, f, a, !0), p.markup = s, p.map = [e, u.line], !0;
|
|
2624
2624
|
}
|
|
2625
|
-
function
|
|
2625
|
+
function Vr(u, e, t, n) {
|
|
2626
2626
|
let r = u.bMarks[e] + u.tShift[e], o = u.eMarks[e];
|
|
2627
2627
|
const c = u.lineMax;
|
|
2628
2628
|
if (u.sCount[e] - u.blkIndent >= 4 || u.src.charCodeAt(r) !== 62)
|
|
@@ -2677,7 +2677,7 @@ function qr(u, e, t, n) {
|
|
|
2677
2677
|
u.bMarks[E + e] = i[E], u.tShift[E + e] = l[E], u.sCount[E + e] = s[E], u.bsCount[E + e] = a[E];
|
|
2678
2678
|
return u.blkIndent = C, !0;
|
|
2679
2679
|
}
|
|
2680
|
-
function
|
|
2680
|
+
function Hr(u, e, t, n) {
|
|
2681
2681
|
const r = u.eMarks[e];
|
|
2682
2682
|
if (u.sCount[e] - u.blkIndent >= 4)
|
|
2683
2683
|
return !1;
|
|
@@ -2735,12 +2735,12 @@ function bt(u, e) {
|
|
|
2735
2735
|
}
|
|
2736
2736
|
return r < n && (o = u.src.charCodeAt(r), !j(o)) ? -1 : r;
|
|
2737
2737
|
}
|
|
2738
|
-
function
|
|
2738
|
+
function Ur(u, e) {
|
|
2739
2739
|
const t = u.level + 2;
|
|
2740
2740
|
for (let n = e + 2, r = u.tokens.length - 2; n < r; n++)
|
|
2741
2741
|
u.tokens[n].level === t && u.tokens[n].type === "paragraph_open" && (u.tokens[n + 2].hidden = !0, u.tokens[n].hidden = !0, n += 2);
|
|
2742
2742
|
}
|
|
2743
|
-
function
|
|
2743
|
+
function Zr(u, e, t, n) {
|
|
2744
2744
|
let r, o, c, i, a = e, s = !0;
|
|
2745
2745
|
if (u.sCount[a] - u.blkIndent >= 4 || u.listIndent >= 0 && u.sCount[a] - u.listIndent >= 4 && u.sCount[a] < u.blkIndent)
|
|
2746
2746
|
return !1;
|
|
@@ -2784,16 +2784,16 @@ function Hr(u, e, t, n) {
|
|
|
2784
2784
|
i = u.push("list_item_open", "li", 1), i.markup = String.fromCharCode(d);
|
|
2785
2785
|
const N = [a, 0];
|
|
2786
2786
|
i.map = N, f && (i.info = u.src.slice(c, p - 1));
|
|
2787
|
-
const T = u.tight, O = u.tShift[a],
|
|
2788
|
-
if (u.listIndent = u.blkIndent, u.blkIndent = D, u.tight = !0, u.tShift[a] = m - u.bMarks[a], u.sCount[a] = y, m >= r && u.isEmpty(a + 1) ? u.line = Math.min(u.line + 2, t) : u.md.block.tokenize(u, a, t, !0), (!u.tight || w) && (s = !1), w = u.line - a > 1 && u.isEmpty(u.line - 1), u.blkIndent = u.listIndent, u.listIndent = q, u.tShift[a] = O, u.sCount[a] =
|
|
2787
|
+
const T = u.tight, O = u.tShift[a], M = u.sCount[a], q = u.listIndent;
|
|
2788
|
+
if (u.listIndent = u.blkIndent, u.blkIndent = D, u.tight = !0, u.tShift[a] = m - u.bMarks[a], u.sCount[a] = y, m >= r && u.isEmpty(a + 1) ? u.line = Math.min(u.line + 2, t) : u.md.block.tokenize(u, a, t, !0), (!u.tight || w) && (s = !1), w = u.line - a > 1 && u.isEmpty(u.line - 1), u.blkIndent = u.listIndent, u.listIndent = q, u.tShift[a] = O, u.sCount[a] = M, u.tight = T, i = u.push("list_item_close", "li", -1), i.markup = String.fromCharCode(d), a = u.line, N[1] = a, a >= t || u.sCount[a] < u.blkIndent || u.sCount[a] - u.blkIndent >= 4)
|
|
2789
2789
|
break;
|
|
2790
|
-
let
|
|
2790
|
+
let H = !1;
|
|
2791
2791
|
for (let z = 0, B = v.length; z < B; z++)
|
|
2792
2792
|
if (v[z](u, a, t, !0)) {
|
|
2793
|
-
|
|
2793
|
+
H = !0;
|
|
2794
2794
|
break;
|
|
2795
2795
|
}
|
|
2796
|
-
if (
|
|
2796
|
+
if (H)
|
|
2797
2797
|
break;
|
|
2798
2798
|
if (f) {
|
|
2799
2799
|
if (p = bt(u, a), p < 0)
|
|
@@ -2804,9 +2804,9 @@ function Hr(u, e, t, n) {
|
|
|
2804
2804
|
if (d !== u.src.charCodeAt(p - 1))
|
|
2805
2805
|
break;
|
|
2806
2806
|
}
|
|
2807
|
-
return f ? i = u.push("ordered_list_close", "ol", -1) : i = u.push("bullet_list_close", "ul", -1), i.markup = String.fromCharCode(d), k[1] = a, u.line = a, u.parentType = E, s &&
|
|
2807
|
+
return f ? i = u.push("ordered_list_close", "ol", -1) : i = u.push("bullet_list_close", "ul", -1), i.markup = String.fromCharCode(d), k[1] = a, u.line = a, u.parentType = E, s && Ur(u, C), !0;
|
|
2808
2808
|
}
|
|
2809
|
-
function
|
|
2809
|
+
function Gr(u, e, t, n) {
|
|
2810
2810
|
let r = u.bMarks[e] + u.tShift[e], o = u.eMarks[e], c = e + 1;
|
|
2811
2811
|
if (u.sCount[e] - u.blkIndent >= 4 || u.src.charCodeAt(r) !== 91)
|
|
2812
2812
|
return !1;
|
|
@@ -2897,7 +2897,7 @@ function Ur(u, e, t, n) {
|
|
|
2897
2897
|
const w = te(a.slice(1, s));
|
|
2898
2898
|
return w ? (n || (typeof u.env.references > "u" && (u.env.references = {}), typeof u.env.references[w] > "u" && (u.env.references[w] = { title: k, href: f }), u.line = c), !0) : !1;
|
|
2899
2899
|
}
|
|
2900
|
-
const
|
|
2900
|
+
const Wr = [
|
|
2901
2901
|
"address",
|
|
2902
2902
|
"article",
|
|
2903
2903
|
"aside",
|
|
@@ -2960,16 +2960,16 @@ const Zr = [
|
|
|
2960
2960
|
"tr",
|
|
2961
2961
|
"track",
|
|
2962
2962
|
"ul"
|
|
2963
|
-
],
|
|
2963
|
+
], Qr = "[a-zA-Z_:][a-zA-Z0-9:._-]*", Jr = "[^\"'=<>`\\x00-\\x20]+", Kr = "'[^']*'", Yr = '"[^"]*"', Xr = "(?:" + Jr + "|" + Kr + "|" + Yr + ")", uo = "(?:\\s+" + Qr + "(?:\\s*=\\s*" + Xr + ")?)", u0 = "<[A-Za-z][A-Za-z0-9\\-]*" + uo + "*\\s*\\/?>", e0 = "<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>", eo = "<!---?>|<!--(?:[^-]|-[^-]|--[^>])*-->", to = "<[?][\\s\\S]*?[?]>", no = "<![A-Za-z][^>]*>", ro = "<!\\[CDATA\\[[\\s\\S]*?\\]\\]>", oo = new RegExp("^(?:" + u0 + "|" + e0 + "|" + eo + "|" + to + "|" + no + "|" + ro + ")"), co = new RegExp("^(?:" + u0 + "|" + e0 + ")"), Cu = [
|
|
2964
2964
|
[/^<(script|pre|style|textarea)(?=(\s|>|$))/i, /<\/(script|pre|style|textarea)>/i, !0],
|
|
2965
2965
|
[/^<!--/, /-->/, !0],
|
|
2966
2966
|
[/^<\?/, /\?>/, !0],
|
|
2967
2967
|
[/^<![A-Z]/, />/, !0],
|
|
2968
2968
|
[/^<!\[CDATA\[/, /\]\]>/, !0],
|
|
2969
|
-
[new RegExp("^</?(" +
|
|
2970
|
-
[new RegExp(
|
|
2969
|
+
[new RegExp("^</?(" + Wr.join("|") + ")(?=(\\s|/?>|$))", "i"), /^$/, !0],
|
|
2970
|
+
[new RegExp(co.source + "\\s*$"), /^$/, !1]
|
|
2971
2971
|
];
|
|
2972
|
-
function
|
|
2972
|
+
function io(u, e, t, n) {
|
|
2973
2973
|
let r = u.bMarks[e] + u.tShift[e], o = u.eMarks[e];
|
|
2974
2974
|
if (u.sCount[e] - u.blkIndent >= 4 || !u.md.options.html || u.src.charCodeAt(r) !== 60)
|
|
2975
2975
|
return !1;
|
|
@@ -2992,7 +2992,7 @@ function oo(u, e, t, n) {
|
|
|
2992
2992
|
const s = u.push("html_block", "", 0);
|
|
2993
2993
|
return s.map = [e, a], s.content = u.getLines(e, a, u.blkIndent, !0), !0;
|
|
2994
2994
|
}
|
|
2995
|
-
function
|
|
2995
|
+
function ao(u, e, t, n) {
|
|
2996
2996
|
let r = u.bMarks[e] + u.tShift[e], o = u.eMarks[e];
|
|
2997
2997
|
if (u.sCount[e] - u.blkIndent >= 4)
|
|
2998
2998
|
return !1;
|
|
@@ -3016,7 +3016,7 @@ function co(u, e, t, n) {
|
|
|
3016
3016
|
const f = u.push("heading_close", "h" + String(i), -1);
|
|
3017
3017
|
return f.markup = "########".slice(0, i), !0;
|
|
3018
3018
|
}
|
|
3019
|
-
function
|
|
3019
|
+
function so(u, e, t) {
|
|
3020
3020
|
const n = u.md.block.ruler.getRules("paragraph");
|
|
3021
3021
|
if (u.sCount[e] - u.blkIndent >= 4)
|
|
3022
3022
|
return !1;
|
|
@@ -3056,7 +3056,7 @@ function io(u, e, t) {
|
|
|
3056
3056
|
const f = u.push("heading_close", "h" + String(o), -1);
|
|
3057
3057
|
return f.markup = String.fromCharCode(c), u.parentType = r, !0;
|
|
3058
3058
|
}
|
|
3059
|
-
function
|
|
3059
|
+
function lo(u, e, t) {
|
|
3060
3060
|
const n = u.md.block.ruler.getRules("paragraph"), r = u.parentType;
|
|
3061
3061
|
let o = e + 1;
|
|
3062
3062
|
for (u.parentType = "paragraph"; o < t && !u.isEmpty(o); o++) {
|
|
@@ -3081,17 +3081,17 @@ function ao(u, e, t) {
|
|
|
3081
3081
|
const Vu = [
|
|
3082
3082
|
// First 2 params - rule name & source. Secondary array - list of rules,
|
|
3083
3083
|
// which can be terminated by this one.
|
|
3084
|
-
["table",
|
|
3085
|
-
["code",
|
|
3086
|
-
["fence",
|
|
3087
|
-
["blockquote",
|
|
3088
|
-
["hr",
|
|
3089
|
-
["list",
|
|
3090
|
-
["reference",
|
|
3091
|
-
["html_block",
|
|
3092
|
-
["heading",
|
|
3093
|
-
["lheading",
|
|
3094
|
-
["paragraph",
|
|
3084
|
+
["table", Rr, ["paragraph", "reference"]],
|
|
3085
|
+
["code", qr],
|
|
3086
|
+
["fence", $r, ["paragraph", "reference", "blockquote", "list"]],
|
|
3087
|
+
["blockquote", Vr, ["paragraph", "reference", "blockquote", "list"]],
|
|
3088
|
+
["hr", Hr, ["paragraph", "reference", "blockquote", "list"]],
|
|
3089
|
+
["list", Zr, ["paragraph", "reference", "blockquote"]],
|
|
3090
|
+
["reference", Gr],
|
|
3091
|
+
["html_block", io, ["paragraph", "reference", "blockquote"]],
|
|
3092
|
+
["heading", ao, ["paragraph", "reference", "blockquote"]],
|
|
3093
|
+
["lheading", so],
|
|
3094
|
+
["paragraph", lo]
|
|
3095
3095
|
];
|
|
3096
3096
|
function ne() {
|
|
3097
3097
|
this.ruler = new Y();
|
|
@@ -3124,17 +3124,17 @@ ne.prototype.parse = function(u, e, t, n) {
|
|
|
3124
3124
|
const r = new this.State(u, e, t, n);
|
|
3125
3125
|
this.tokenize(r, r.line, r.lineMax);
|
|
3126
3126
|
};
|
|
3127
|
-
ne.prototype.State =
|
|
3127
|
+
ne.prototype.State = du;
|
|
3128
3128
|
function Ru(u, e, t, n) {
|
|
3129
3129
|
this.src = u, this.env = t, this.md = e, this.tokens = n, this.tokens_meta = Array(n.length), this.pos = 0, this.posMax = this.src.length, this.level = 0, this.pending = "", this.pendingLevel = 0, this.cache = {}, this.delimiters = [], this._prev_delimiters = [], this.backticks = {}, this.backticksScanned = !1, this.linkLevel = 0;
|
|
3130
3130
|
}
|
|
3131
3131
|
Ru.prototype.pushPending = function() {
|
|
3132
|
-
const u = new
|
|
3132
|
+
const u = new ou("text", "", 0);
|
|
3133
3133
|
return u.content = this.pending, u.level = this.pendingLevel, this.tokens.push(u), this.pending = "", u;
|
|
3134
3134
|
};
|
|
3135
3135
|
Ru.prototype.push = function(u, e, t) {
|
|
3136
3136
|
this.pending && this.pushPending();
|
|
3137
|
-
const n = new
|
|
3137
|
+
const n = new ou(u, e, t);
|
|
3138
3138
|
let r = null;
|
|
3139
3139
|
return t < 0 && (this.level--, this.delimiters = this._prev_delimiters.pop()), n.level = this.level, t > 0 && (this.level++, this._prev_delimiters.push(this.delimiters), this.delimiters = [], r = { delimiters: this.delimiters }), this.pendingLevel = this.level, this.tokens.push(n), this.tokens_meta.push(r), n;
|
|
3140
3140
|
};
|
|
@@ -3143,11 +3143,11 @@ Ru.prototype.scanDelims = function(u, e) {
|
|
|
3143
3143
|
let o = u;
|
|
3144
3144
|
for (; o < t && this.src.charCodeAt(o) === n; )
|
|
3145
3145
|
o++;
|
|
3146
|
-
const c = o - u, i = o < t ? this.src.charCodeAt(o) : 32, a =
|
|
3146
|
+
const c = o - u, i = o < t ? this.src.charCodeAt(o) : 32, a = Mu(r) || Ou(String.fromCharCode(r)), s = Mu(i) || Ou(String.fromCharCode(i)), l = Lu(r), f = Lu(i), g = !f && (!s || l || a), p = !l && (!a || f || s);
|
|
3147
3147
|
return { can_open: g && (e || !p || a), can_close: p && (e || !g || s), length: c };
|
|
3148
3148
|
};
|
|
3149
|
-
Ru.prototype.Token =
|
|
3150
|
-
function
|
|
3149
|
+
Ru.prototype.Token = ou;
|
|
3150
|
+
function fo(u) {
|
|
3151
3151
|
switch (u) {
|
|
3152
3152
|
case 10:
|
|
3153
3153
|
case 33:
|
|
@@ -3177,18 +3177,18 @@ function so(u) {
|
|
|
3177
3177
|
return !1;
|
|
3178
3178
|
}
|
|
3179
3179
|
}
|
|
3180
|
-
function
|
|
3180
|
+
function ho(u, e) {
|
|
3181
3181
|
let t = u.pos;
|
|
3182
|
-
for (; t < u.posMax && !
|
|
3182
|
+
for (; t < u.posMax && !fo(u.src.charCodeAt(t)); )
|
|
3183
3183
|
t++;
|
|
3184
3184
|
return t === u.pos ? !1 : (e || (u.pending += u.src.slice(u.pos, t)), u.pos = t, !0);
|
|
3185
3185
|
}
|
|
3186
|
-
const
|
|
3187
|
-
function
|
|
3186
|
+
const po = /(?:^|[^a-z0-9.+-])([a-z][a-z0-9.+-]*)$/i;
|
|
3187
|
+
function bo(u, e) {
|
|
3188
3188
|
if (!u.md.options.linkify || u.linkLevel > 0) return !1;
|
|
3189
3189
|
const t = u.pos, n = u.posMax;
|
|
3190
3190
|
if (t + 3 > n || u.src.charCodeAt(t) !== 58 || u.src.charCodeAt(t + 1) !== 47 || u.src.charCodeAt(t + 2) !== 47) return !1;
|
|
3191
|
-
const r = u.pending.match(
|
|
3191
|
+
const r = u.pending.match(po);
|
|
3192
3192
|
if (!r) return !1;
|
|
3193
3193
|
const o = r[1], c = u.md.linkify.matchAtStart(u.src.slice(t - o.length));
|
|
3194
3194
|
if (!c) return !1;
|
|
@@ -3208,7 +3208,7 @@ function ho(u, e) {
|
|
|
3208
3208
|
}
|
|
3209
3209
|
return u.pos += i.length - o.length, !0;
|
|
3210
3210
|
}
|
|
3211
|
-
function
|
|
3211
|
+
function mo(u, e) {
|
|
3212
3212
|
let t = u.pos;
|
|
3213
3213
|
if (u.src.charCodeAt(t) !== 10)
|
|
3214
3214
|
return !1;
|
|
@@ -3233,7 +3233,7 @@ for (let u = 0; u < 256; u++)
|
|
|
3233
3233
|
"\\!\"#$%&'()*+,./:;<=>?@[]^_`{|}~-".split("").forEach(function(u) {
|
|
3234
3234
|
je[u.charCodeAt(0)] = 1;
|
|
3235
3235
|
});
|
|
3236
|
-
function
|
|
3236
|
+
function xo(u, e) {
|
|
3237
3237
|
let t = u.pos;
|
|
3238
3238
|
const n = u.posMax;
|
|
3239
3239
|
if (u.src.charCodeAt(t) !== 92 || (t++, t >= n)) return !1;
|
|
@@ -3255,7 +3255,7 @@ function bo(u, e) {
|
|
|
3255
3255
|
}
|
|
3256
3256
|
return u.pos = t + 1, !0;
|
|
3257
3257
|
}
|
|
3258
|
-
function
|
|
3258
|
+
function go(u, e) {
|
|
3259
3259
|
let t = u.pos;
|
|
3260
3260
|
if (u.src.charCodeAt(t) !== 96)
|
|
3261
3261
|
return !1;
|
|
@@ -3283,7 +3283,7 @@ function mo(u, e) {
|
|
|
3283
3283
|
}
|
|
3284
3284
|
return u.backticksScanned = !0, e || (u.pending += c), u.pos += i, !0;
|
|
3285
3285
|
}
|
|
3286
|
-
function
|
|
3286
|
+
function _o(u, e) {
|
|
3287
3287
|
const t = u.pos, n = u.src.charCodeAt(t);
|
|
3288
3288
|
if (e || n !== 126)
|
|
3289
3289
|
return !1;
|
|
@@ -3324,17 +3324,17 @@ function mt(u, e) {
|
|
|
3324
3324
|
c--, o !== c && (t = u.tokens[c], u.tokens[c] = u.tokens[o], u.tokens[o] = t);
|
|
3325
3325
|
}
|
|
3326
3326
|
}
|
|
3327
|
-
function
|
|
3327
|
+
function ko(u) {
|
|
3328
3328
|
const e = u.tokens_meta, t = u.tokens_meta.length;
|
|
3329
3329
|
mt(u, u.delimiters);
|
|
3330
3330
|
for (let n = 0; n < t; n++)
|
|
3331
3331
|
e[n] && e[n].delimiters && mt(u, e[n].delimiters);
|
|
3332
3332
|
}
|
|
3333
|
-
const
|
|
3334
|
-
tokenize:
|
|
3335
|
-
postProcess:
|
|
3333
|
+
const t0 = {
|
|
3334
|
+
tokenize: _o,
|
|
3335
|
+
postProcess: ko
|
|
3336
3336
|
};
|
|
3337
|
-
function
|
|
3337
|
+
function yo(u, e) {
|
|
3338
3338
|
const t = u.pos, n = u.src.charCodeAt(t);
|
|
3339
3339
|
if (e || n !== 95 && n !== 42)
|
|
3340
3340
|
return !1;
|
|
@@ -3378,17 +3378,17 @@ function xt(u, e) {
|
|
|
3378
3378
|
s.type = c ? "strong_close" : "em_close", s.tag = c ? "strong" : "em", s.nesting = -1, s.markup = c ? i + i : i, s.content = "", c && (u.tokens[e[n - 1].token].content = "", u.tokens[e[r.end + 1].token].content = "", n--);
|
|
3379
3379
|
}
|
|
3380
3380
|
}
|
|
3381
|
-
function
|
|
3381
|
+
function Co(u) {
|
|
3382
3382
|
const e = u.tokens_meta, t = u.tokens_meta.length;
|
|
3383
3383
|
xt(u, u.delimiters);
|
|
3384
3384
|
for (let n = 0; n < t; n++)
|
|
3385
3385
|
e[n] && e[n].delimiters && xt(u, e[n].delimiters);
|
|
3386
3386
|
}
|
|
3387
|
-
const
|
|
3388
|
-
tokenize:
|
|
3389
|
-
postProcess:
|
|
3387
|
+
const n0 = {
|
|
3388
|
+
tokenize: yo,
|
|
3389
|
+
postProcess: Co
|
|
3390
3390
|
};
|
|
3391
|
-
function
|
|
3391
|
+
function vo(u, e) {
|
|
3392
3392
|
let t, n, r, o, c = "", i = "", a = u.pos, s = !0;
|
|
3393
3393
|
if (u.src.charCodeAt(u.pos) !== 91)
|
|
3394
3394
|
return !1;
|
|
@@ -3424,7 +3424,7 @@ function yo(u, e) {
|
|
|
3424
3424
|
}
|
|
3425
3425
|
return u.pos = d, u.posMax = f, !0;
|
|
3426
3426
|
}
|
|
3427
|
-
function
|
|
3427
|
+
function Do(u, e) {
|
|
3428
3428
|
let t, n, r, o, c, i, a, s, l = "";
|
|
3429
3429
|
const f = u.pos, g = u.posMax;
|
|
3430
3430
|
if (u.src.charCodeAt(u.pos) !== 33 || u.src.charCodeAt(u.pos + 1) !== 91)
|
|
@@ -3468,8 +3468,8 @@ function Co(u, e) {
|
|
|
3468
3468
|
}
|
|
3469
3469
|
return u.pos = o, u.posMax = g, !0;
|
|
3470
3470
|
}
|
|
3471
|
-
const
|
|
3472
|
-
function
|
|
3471
|
+
const Eo = /^([a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*)$/, Fo = /^([a-zA-Z][a-zA-Z0-9+.-]{1,31}):([^<>\x00-\x20]*)$/;
|
|
3472
|
+
function Ao(u, e) {
|
|
3473
3473
|
let t = u.pos;
|
|
3474
3474
|
if (u.src.charCodeAt(t) !== 60)
|
|
3475
3475
|
return !1;
|
|
@@ -3481,7 +3481,7 @@ function Eo(u, e) {
|
|
|
3481
3481
|
if (c === 62) break;
|
|
3482
3482
|
}
|
|
3483
3483
|
const o = u.src.slice(n + 1, t);
|
|
3484
|
-
if (
|
|
3484
|
+
if (Fo.test(o)) {
|
|
3485
3485
|
const c = u.md.normalizeLink(o);
|
|
3486
3486
|
if (!u.md.validateLink(c))
|
|
3487
3487
|
return !1;
|
|
@@ -3495,7 +3495,7 @@ function Eo(u, e) {
|
|
|
3495
3495
|
}
|
|
3496
3496
|
return u.pos += o.length + 2, !0;
|
|
3497
3497
|
}
|
|
3498
|
-
if (
|
|
3498
|
+
if (Eo.test(o)) {
|
|
3499
3499
|
const c = u.md.normalizeLink("mailto:" + o);
|
|
3500
3500
|
if (!u.md.validateLink(c))
|
|
3501
3501
|
return !1;
|
|
@@ -3511,51 +3511,51 @@ function Eo(u, e) {
|
|
|
3511
3511
|
}
|
|
3512
3512
|
return !1;
|
|
3513
3513
|
}
|
|
3514
|
-
function
|
|
3514
|
+
function wo(u) {
|
|
3515
3515
|
return /^<a[>\s]/i.test(u);
|
|
3516
3516
|
}
|
|
3517
|
-
function
|
|
3517
|
+
function So(u) {
|
|
3518
3518
|
return /^<\/a\s*>/i.test(u);
|
|
3519
3519
|
}
|
|
3520
|
-
function
|
|
3520
|
+
function To(u) {
|
|
3521
3521
|
const e = u | 32;
|
|
3522
3522
|
return e >= 97 && e <= 122;
|
|
3523
3523
|
}
|
|
3524
|
-
function
|
|
3524
|
+
function Io(u, e) {
|
|
3525
3525
|
if (!u.md.options.html)
|
|
3526
3526
|
return !1;
|
|
3527
3527
|
const t = u.posMax, n = u.pos;
|
|
3528
3528
|
if (u.src.charCodeAt(n) !== 60 || n + 2 >= t)
|
|
3529
3529
|
return !1;
|
|
3530
3530
|
const r = u.src.charCodeAt(n + 1);
|
|
3531
|
-
if (r !== 33 && r !== 63 && r !== 47 && !
|
|
3531
|
+
if (r !== 33 && r !== 63 && r !== 47 && !To(r))
|
|
3532
3532
|
return !1;
|
|
3533
|
-
const o = u.src.slice(n).match(
|
|
3533
|
+
const o = u.src.slice(n).match(oo);
|
|
3534
3534
|
if (!o)
|
|
3535
3535
|
return !1;
|
|
3536
3536
|
if (!e) {
|
|
3537
3537
|
const c = u.push("html_inline", "", 0);
|
|
3538
|
-
c.content = o[0],
|
|
3538
|
+
c.content = o[0], wo(c.content) && u.linkLevel++, So(c.content) && u.linkLevel--;
|
|
3539
3539
|
}
|
|
3540
3540
|
return u.pos += o[0].length, !0;
|
|
3541
3541
|
}
|
|
3542
|
-
const
|
|
3543
|
-
function
|
|
3542
|
+
const No = /^&#((?:x[a-f0-9]{1,6}|[0-9]{1,7}));/i, Bo = /^&([a-z][a-z0-9]{1,31});/i;
|
|
3543
|
+
function Lo(u, e) {
|
|
3544
3544
|
const t = u.pos, n = u.posMax;
|
|
3545
3545
|
if (u.src.charCodeAt(t) !== 38 || t + 1 >= n) return !1;
|
|
3546
3546
|
if (u.src.charCodeAt(t + 1) === 35) {
|
|
3547
|
-
const o = u.src.slice(t).match(
|
|
3547
|
+
const o = u.src.slice(t).match(No);
|
|
3548
3548
|
if (o) {
|
|
3549
3549
|
if (!e) {
|
|
3550
3550
|
const c = o[1][0].toLowerCase() === "x" ? parseInt(o[1].slice(1), 16) : parseInt(o[1], 10), i = u.push("text_special", "", 0);
|
|
3551
|
-
i.content =
|
|
3551
|
+
i.content = Me(c) ? Ju(c) : Ju(65533), i.markup = o[0], i.info = "entity";
|
|
3552
3552
|
}
|
|
3553
3553
|
return u.pos += o[0].length, !0;
|
|
3554
3554
|
}
|
|
3555
3555
|
} else {
|
|
3556
|
-
const o = u.src.slice(t).match(
|
|
3556
|
+
const o = u.src.slice(t).match(Bo);
|
|
3557
3557
|
if (o) {
|
|
3558
|
-
const c =
|
|
3558
|
+
const c = Qt(o[0]);
|
|
3559
3559
|
if (c !== o[0]) {
|
|
3560
3560
|
if (!e) {
|
|
3561
3561
|
const i = u.push("text_special", "", 0);
|
|
@@ -3592,13 +3592,13 @@ function gt(u) {
|
|
|
3592
3592
|
l !== -1 && (e[i.marker][(i.open ? 3 : 0) + (i.length || 0) % 3] = l);
|
|
3593
3593
|
}
|
|
3594
3594
|
}
|
|
3595
|
-
function
|
|
3595
|
+
function Oo(u) {
|
|
3596
3596
|
const e = u.tokens_meta, t = u.tokens_meta.length;
|
|
3597
3597
|
gt(u.delimiters);
|
|
3598
3598
|
for (let n = 0; n < t; n++)
|
|
3599
3599
|
e[n] && e[n].delimiters && gt(e[n].delimiters);
|
|
3600
3600
|
}
|
|
3601
|
-
function
|
|
3601
|
+
function Mo(u) {
|
|
3602
3602
|
let e, t, n = 0;
|
|
3603
3603
|
const r = u.tokens, o = u.tokens.length;
|
|
3604
3604
|
for (e = t = 0; e < o; e++)
|
|
@@ -3606,25 +3606,25 @@ function Lo(u) {
|
|
|
3606
3606
|
e !== t && (r.length = t);
|
|
3607
3607
|
}
|
|
3608
3608
|
const fe = [
|
|
3609
|
-
["text",
|
|
3610
|
-
["linkify",
|
|
3611
|
-
["newline",
|
|
3612
|
-
["escape",
|
|
3613
|
-
["backticks",
|
|
3614
|
-
["strikethrough",
|
|
3615
|
-
["emphasis",
|
|
3616
|
-
["link",
|
|
3617
|
-
["image",
|
|
3618
|
-
["autolink",
|
|
3619
|
-
["html_inline",
|
|
3620
|
-
["entity",
|
|
3609
|
+
["text", ho],
|
|
3610
|
+
["linkify", bo],
|
|
3611
|
+
["newline", mo],
|
|
3612
|
+
["escape", xo],
|
|
3613
|
+
["backticks", go],
|
|
3614
|
+
["strikethrough", t0.tokenize],
|
|
3615
|
+
["emphasis", n0.tokenize],
|
|
3616
|
+
["link", vo],
|
|
3617
|
+
["image", Do],
|
|
3618
|
+
["autolink", Ao],
|
|
3619
|
+
["html_inline", Io],
|
|
3620
|
+
["entity", Lo]
|
|
3621
3621
|
], de = [
|
|
3622
|
-
["balance_pairs",
|
|
3623
|
-
["strikethrough",
|
|
3624
|
-
["emphasis",
|
|
3622
|
+
["balance_pairs", Oo],
|
|
3623
|
+
["strikethrough", t0.postProcess],
|
|
3624
|
+
["emphasis", n0.postProcess],
|
|
3625
3625
|
// rules for pairs separate '**' into its own text tokens, which may be left unused,
|
|
3626
3626
|
// rule below merges unused segments back with the rest of the text
|
|
3627
|
-
["fragments_join",
|
|
3627
|
+
["fragments_join", Mo]
|
|
3628
3628
|
];
|
|
3629
3629
|
function qu() {
|
|
3630
3630
|
this.ruler = new Y();
|
|
@@ -3682,9 +3682,9 @@ qu.prototype.parse = function(u, e, t, n) {
|
|
|
3682
3682
|
o[i](r);
|
|
3683
3683
|
};
|
|
3684
3684
|
qu.prototype.State = Ru;
|
|
3685
|
-
function
|
|
3685
|
+
function Po(u) {
|
|
3686
3686
|
const e = {};
|
|
3687
|
-
u = u || {}, e.src_Any =
|
|
3687
|
+
u = u || {}, e.src_Any = Ht.source, e.src_Cc = Ut.source, e.src_Z = Gt.source, e.src_P = Le.source, e.src_ZPCc = [e.src_Z, e.src_P, e.src_Cc].join("|"), e.src_ZCc = [e.src_Z, e.src_Cc].join("|");
|
|
3688
3688
|
const t = "[><|]";
|
|
3689
3689
|
return e.src_pseudo_letter = "(?:(?!" + t + "|" + e.src_ZPCc + ")" + e.src_Any + ")", e.src_ip4 = "(?:(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)", e.src_auth = "(?:(?:(?!" + e.src_ZCc + "|[@/\\[\\]()]).)+@)?", e.src_port = "(?::(?:6(?:[0-4]\\d{3}|5(?:[0-4]\\d{2}|5(?:[0-2]\\d|3[0-5])))|[1-5]?\\d{1,4}))?", e.src_host_terminator = "(?=$|" + t + "|" + e.src_ZPCc + ")(?!" + (u["---"] ? "-(?!--)|" : "-|") + "_|:\\d|\\.-|\\.(?!$|" + e.src_ZPCc + "))", e.src_path = "(?:[/?#](?:(?!" + e.src_ZCc + "|" + t + `|[()[\\]{}.,"'?!\\-;]).|\\[(?:(?!` + e.src_ZCc + "|\\]).)*\\]|\\((?:(?!" + e.src_ZCc + "|[)]).)*\\)|\\{(?:(?!" + e.src_ZCc + '|[}]).)*\\}|\\"(?:(?!' + e.src_ZCc + `|["]).)+\\"|\\'(?:(?!` + e.src_ZCc + "|[']).)+\\'|\\'(?=" + e.src_pseudo_letter + "|[-])|\\.{2,}[a-zA-Z0-9%/&]|\\.(?!" + e.src_ZCc + "|[.]|$)|" + (u["---"] ? "\\-(?!--(?:[^-]|$))(?:-*)|" : "\\-+|") + // allow `,,,` in paths
|
|
3690
3690
|
",(?!" + e.src_ZCc + "|$)|;(?!" + e.src_ZCc + "|$)|\\!+(?!" + e.src_ZCc + "|[!]|$)|\\?(?!" + e.src_ZCc + "|[?]|$))+|\\/)?", e.src_email_name = '[\\-;:&=\\+\\$,\\.a-zA-Z0-9_][\\-;:&=\\+\\$,\\"\\.a-zA-Z0-9_]*', e.src_xn = "xn--[a-z0-9\\-]{1,59}", e.src_domain_root = // Allow letters & digits (http://test1)
|
|
@@ -3704,32 +3704,32 @@ function De(u) {
|
|
|
3704
3704
|
function re(u) {
|
|
3705
3705
|
return Object.prototype.toString.call(u);
|
|
3706
3706
|
}
|
|
3707
|
-
function
|
|
3707
|
+
function jo(u) {
|
|
3708
3708
|
return re(u) === "[object String]";
|
|
3709
3709
|
}
|
|
3710
|
-
function
|
|
3710
|
+
function zo(u) {
|
|
3711
3711
|
return re(u) === "[object Object]";
|
|
3712
3712
|
}
|
|
3713
|
-
function
|
|
3713
|
+
function Ro(u) {
|
|
3714
3714
|
return re(u) === "[object RegExp]";
|
|
3715
3715
|
}
|
|
3716
3716
|
function _t(u) {
|
|
3717
3717
|
return re(u) === "[object Function]";
|
|
3718
3718
|
}
|
|
3719
|
-
function
|
|
3719
|
+
function qo(u) {
|
|
3720
3720
|
return u.replace(/[.?*+^$[\]\\(){}|-]/g, "\\$&");
|
|
3721
3721
|
}
|
|
3722
|
-
const
|
|
3722
|
+
const r0 = {
|
|
3723
3723
|
fuzzyLink: !0,
|
|
3724
3724
|
fuzzyEmail: !0,
|
|
3725
3725
|
fuzzyIP: !1
|
|
3726
3726
|
};
|
|
3727
|
-
function
|
|
3727
|
+
function $o(u) {
|
|
3728
3728
|
return Object.keys(u || {}).reduce(function(e, t) {
|
|
3729
|
-
return e ||
|
|
3729
|
+
return e || r0.hasOwnProperty(t);
|
|
3730
3730
|
}, !1);
|
|
3731
3731
|
}
|
|
3732
|
-
const
|
|
3732
|
+
const Vo = {
|
|
3733
3733
|
"http:": {
|
|
3734
3734
|
validate: function(u, e, t) {
|
|
3735
3735
|
const n = u.slice(e);
|
|
@@ -3761,11 +3761,11 @@ const qo = {
|
|
|
3761
3761
|
)), t.re.mailto.test(n) ? n.match(t.re.mailto)[0].length : 0;
|
|
3762
3762
|
}
|
|
3763
3763
|
}
|
|
3764
|
-
},
|
|
3765
|
-
function
|
|
3764
|
+
}, Ho = "a[cdefgilmnoqrstuwxz]|b[abdefghijmnorstvwyz]|c[acdfghiklmnoruvwxyz]|d[ejkmoz]|e[cegrstu]|f[ijkmor]|g[abdefghilmnpqrstuwy]|h[kmnrtu]|i[delmnoqrst]|j[emop]|k[eghimnprwyz]|l[abcikrstuvy]|m[acdeghklmnopqrstuvwxyz]|n[acefgilopruz]|om|p[aefghklmnrstwy]|qa|r[eosuw]|s[abcdeghijklmnortuvxyz]|t[cdfghjklmnortvwz]|u[agksyz]|v[aceginu]|w[fs]|y[et]|z[amw]", Uo = "biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф".split("|");
|
|
3765
|
+
function Zo(u) {
|
|
3766
3766
|
u.__index__ = -1, u.__text_cache__ = "";
|
|
3767
3767
|
}
|
|
3768
|
-
function
|
|
3768
|
+
function Go(u) {
|
|
3769
3769
|
return function(e, t) {
|
|
3770
3770
|
const n = e.slice(t);
|
|
3771
3771
|
return u.test(n) ? n.match(u)[0].length : 0;
|
|
@@ -3777,8 +3777,8 @@ function kt() {
|
|
|
3777
3777
|
};
|
|
3778
3778
|
}
|
|
3779
3779
|
function Ku(u) {
|
|
3780
|
-
const e = u.re =
|
|
3781
|
-
u.onCompile(), u.__tlds_replaced__ || t.push(
|
|
3780
|
+
const e = u.re = Po(u.__opts__), t = u.__tlds__.slice();
|
|
3781
|
+
u.onCompile(), u.__tlds_replaced__ || t.push(Ho), t.push(e.src_xn), e.src_tlds = t.join("|");
|
|
3782
3782
|
function n(i) {
|
|
3783
3783
|
return i.replace("%TLDS%", e.src_tlds);
|
|
3784
3784
|
}
|
|
@@ -3793,11 +3793,11 @@ function Ku(u) {
|
|
|
3793
3793
|
if (a === null)
|
|
3794
3794
|
return;
|
|
3795
3795
|
const s = { validate: null, link: null };
|
|
3796
|
-
if (u.__compiled__[i] = s,
|
|
3797
|
-
|
|
3796
|
+
if (u.__compiled__[i] = s, zo(a)) {
|
|
3797
|
+
Ro(a.validate) ? s.validate = Go(a.validate) : _t(a.validate) ? s.validate = a.validate : o(i, a), _t(a.normalize) ? s.normalize = a.normalize : a.normalize ? o(i, a) : s.normalize = kt();
|
|
3798
3798
|
return;
|
|
3799
3799
|
}
|
|
3800
|
-
if (
|
|
3800
|
+
if (jo(a)) {
|
|
3801
3801
|
r.push(i);
|
|
3802
3802
|
return;
|
|
3803
3803
|
}
|
|
@@ -3807,24 +3807,24 @@ function Ku(u) {
|
|
|
3807
3807
|
}), u.__compiled__[""] = { validate: null, normalize: kt() };
|
|
3808
3808
|
const c = Object.keys(u.__compiled__).filter(function(i) {
|
|
3809
3809
|
return i.length > 0 && u.__compiled__[i];
|
|
3810
|
-
}).map(
|
|
3810
|
+
}).map(qo).join("|");
|
|
3811
3811
|
u.re.schema_test = RegExp("(^|(?!_)(?:[><|]|" + e.src_ZPCc + "))(" + c + ")", "i"), u.re.schema_search = RegExp("(^|(?!_)(?:[><|]|" + e.src_ZPCc + "))(" + c + ")", "ig"), u.re.schema_at_start = RegExp("^" + u.re.schema_search.source, "i"), u.re.pretest = RegExp(
|
|
3812
3812
|
"(" + u.re.schema_test.source + ")|(" + u.re.host_fuzzy_test.source + ")|@",
|
|
3813
3813
|
"i"
|
|
3814
|
-
),
|
|
3814
|
+
), Zo(u);
|
|
3815
3815
|
}
|
|
3816
|
-
function
|
|
3816
|
+
function Wo(u, e) {
|
|
3817
3817
|
const t = u.__index__, n = u.__last_index__, r = u.__text_cache__.slice(t, n);
|
|
3818
3818
|
this.schema = u.__schema__.toLowerCase(), this.index = t + e, this.lastIndex = n + e, this.raw = r, this.text = r, this.url = r;
|
|
3819
3819
|
}
|
|
3820
3820
|
function Ee(u, e) {
|
|
3821
|
-
const t = new
|
|
3821
|
+
const t = new Wo(u, e);
|
|
3822
3822
|
return u.__compiled__[t.schema].normalize(t, u), t;
|
|
3823
3823
|
}
|
|
3824
3824
|
function uu(u, e) {
|
|
3825
3825
|
if (!(this instanceof uu))
|
|
3826
3826
|
return new uu(u, e);
|
|
3827
|
-
e ||
|
|
3827
|
+
e || $o(u) && (e = u, u = {}), this.__opts__ = De({}, r0, e), this.__index__ = -1, this.__last_index__ = -1, this.__schema__ = "", this.__text_cache__ = "", this.__schemas__ = De({}, Vo, u), this.__compiled__ = {}, this.__tlds__ = Uo, this.__tlds_replaced__ = !1, this.re = {}, Ku(this);
|
|
3828
3828
|
}
|
|
3829
3829
|
uu.prototype.add = function(e, t) {
|
|
3830
3830
|
return this.__schemas__[e] = t, Ku(this), this;
|
|
@@ -3877,29 +3877,29 @@ uu.prototype.normalize = function(e) {
|
|
|
3877
3877
|
};
|
|
3878
3878
|
uu.prototype.onCompile = function() {
|
|
3879
3879
|
};
|
|
3880
|
-
const
|
|
3880
|
+
const Du = 2147483647, su = 36, ze = 1, Pu = 26, Qo = 38, Jo = 700, o0 = 72, c0 = 128, i0 = "-", Ko = /^xn--/, Yo = /[^\0-\x7F]/, Xo = /[\x2E\u3002\uFF0E\uFF61]/g, uc = {
|
|
3881
3881
|
overflow: "Overflow: input needs wider integers to process",
|
|
3882
3882
|
"not-basic": "Illegal input >= 0x80 (not a basic code point)",
|
|
3883
3883
|
"invalid-input": "Invalid input"
|
|
3884
|
-
}, he =
|
|
3884
|
+
}, he = su - ze, lu = Math.floor, pe = String.fromCharCode;
|
|
3885
3885
|
function pu(u) {
|
|
3886
|
-
throw new RangeError(
|
|
3886
|
+
throw new RangeError(uc[u]);
|
|
3887
3887
|
}
|
|
3888
|
-
function
|
|
3888
|
+
function ec(u, e) {
|
|
3889
3889
|
const t = [];
|
|
3890
3890
|
let n = u.length;
|
|
3891
3891
|
for (; n--; )
|
|
3892
3892
|
t[n] = e(u[n]);
|
|
3893
3893
|
return t;
|
|
3894
3894
|
}
|
|
3895
|
-
function
|
|
3895
|
+
function a0(u, e) {
|
|
3896
3896
|
const t = u.split("@");
|
|
3897
3897
|
let n = "";
|
|
3898
|
-
t.length > 1 && (n = t[0] + "@", u = t[1]), u = u.replace(
|
|
3899
|
-
const r = u.split("."), o =
|
|
3898
|
+
t.length > 1 && (n = t[0] + "@", u = t[1]), u = u.replace(Xo, ".");
|
|
3899
|
+
const r = u.split("."), o = ec(r, e).join(".");
|
|
3900
3900
|
return n + o;
|
|
3901
3901
|
}
|
|
3902
|
-
function
|
|
3902
|
+
function s0(u) {
|
|
3903
3903
|
const e = [];
|
|
3904
3904
|
let t = 0;
|
|
3905
3905
|
const n = u.length;
|
|
@@ -3913,78 +3913,78 @@ function a0(u) {
|
|
|
3913
3913
|
}
|
|
3914
3914
|
return e;
|
|
3915
3915
|
}
|
|
3916
|
-
const
|
|
3917
|
-
return u >= 48 && u < 58 ? 26 + (u - 48) : u >= 65 && u < 91 ? u - 65 : u >= 97 && u < 123 ? u - 97 :
|
|
3916
|
+
const tc = (u) => String.fromCodePoint(...u), nc = function(u) {
|
|
3917
|
+
return u >= 48 && u < 58 ? 26 + (u - 48) : u >= 65 && u < 91 ? u - 65 : u >= 97 && u < 123 ? u - 97 : su;
|
|
3918
3918
|
}, yt = function(u, e) {
|
|
3919
3919
|
return u + 22 + 75 * (u < 26) - ((e != 0) << 5);
|
|
3920
|
-
},
|
|
3920
|
+
}, l0 = function(u, e, t) {
|
|
3921
3921
|
let n = 0;
|
|
3922
|
-
for (u = t ?
|
|
3923
|
-
u =
|
|
3924
|
-
return
|
|
3925
|
-
},
|
|
3922
|
+
for (u = t ? lu(u / Jo) : u >> 1, u += lu(u / e); u > he * Pu >> 1; n += su)
|
|
3923
|
+
u = lu(u / he);
|
|
3924
|
+
return lu(n + (he + 1) * u / (u + Qo));
|
|
3925
|
+
}, f0 = function(u) {
|
|
3926
3926
|
const e = [], t = u.length;
|
|
3927
|
-
let n = 0, r =
|
|
3927
|
+
let n = 0, r = c0, o = o0, c = u.lastIndexOf(i0);
|
|
3928
3928
|
c < 0 && (c = 0);
|
|
3929
3929
|
for (let i = 0; i < c; ++i)
|
|
3930
3930
|
u.charCodeAt(i) >= 128 && pu("not-basic"), e.push(u.charCodeAt(i));
|
|
3931
3931
|
for (let i = c > 0 ? c + 1 : 0; i < t; ) {
|
|
3932
3932
|
const a = n;
|
|
3933
|
-
for (let l = 1, f =
|
|
3933
|
+
for (let l = 1, f = su; ; f += su) {
|
|
3934
3934
|
i >= t && pu("invalid-input");
|
|
3935
|
-
const g =
|
|
3936
|
-
g >=
|
|
3937
|
-
const p = f <= o ? ze : f >= o +
|
|
3935
|
+
const g = nc(u.charCodeAt(i++));
|
|
3936
|
+
g >= su && pu("invalid-input"), g > lu((Du - n) / l) && pu("overflow"), n += g * l;
|
|
3937
|
+
const p = f <= o ? ze : f >= o + Pu ? Pu : f - o;
|
|
3938
3938
|
if (g < p)
|
|
3939
3939
|
break;
|
|
3940
|
-
const d =
|
|
3941
|
-
l >
|
|
3940
|
+
const d = su - p;
|
|
3941
|
+
l > lu(Du / d) && pu("overflow"), l *= d;
|
|
3942
3942
|
}
|
|
3943
3943
|
const s = e.length + 1;
|
|
3944
|
-
o =
|
|
3944
|
+
o = l0(n - a, s, a == 0), lu(n / s) > Du - r && pu("overflow"), r += lu(n / s), n %= s, e.splice(n++, 0, r);
|
|
3945
3945
|
}
|
|
3946
3946
|
return String.fromCodePoint(...e);
|
|
3947
|
-
},
|
|
3947
|
+
}, d0 = function(u) {
|
|
3948
3948
|
const e = [];
|
|
3949
|
-
u =
|
|
3949
|
+
u = s0(u);
|
|
3950
3950
|
const t = u.length;
|
|
3951
|
-
let n =
|
|
3951
|
+
let n = c0, r = 0, o = o0;
|
|
3952
3952
|
for (const a of u)
|
|
3953
3953
|
a < 128 && e.push(pe(a));
|
|
3954
3954
|
const c = e.length;
|
|
3955
3955
|
let i = c;
|
|
3956
|
-
for (c && e.push(
|
|
3957
|
-
let a =
|
|
3956
|
+
for (c && e.push(i0); i < t; ) {
|
|
3957
|
+
let a = Du;
|
|
3958
3958
|
for (const l of u)
|
|
3959
3959
|
l >= n && l < a && (a = l);
|
|
3960
3960
|
const s = i + 1;
|
|
3961
|
-
a - n >
|
|
3961
|
+
a - n > lu((Du - r) / s) && pu("overflow"), r += (a - n) * s, n = a;
|
|
3962
3962
|
for (const l of u)
|
|
3963
|
-
if (l < n && ++r >
|
|
3963
|
+
if (l < n && ++r > Du && pu("overflow"), l === n) {
|
|
3964
3964
|
let f = r;
|
|
3965
|
-
for (let g =
|
|
3966
|
-
const p = g <= o ? ze : g >= o +
|
|
3965
|
+
for (let g = su; ; g += su) {
|
|
3966
|
+
const p = g <= o ? ze : g >= o + Pu ? Pu : g - o;
|
|
3967
3967
|
if (f < p)
|
|
3968
3968
|
break;
|
|
3969
|
-
const d = f - p, C =
|
|
3969
|
+
const d = f - p, C = su - p;
|
|
3970
3970
|
e.push(
|
|
3971
3971
|
pe(yt(p + d % C, 0))
|
|
3972
|
-
), f =
|
|
3972
|
+
), f = lu(d / C);
|
|
3973
3973
|
}
|
|
3974
|
-
e.push(pe(yt(f, 0))), o =
|
|
3974
|
+
e.push(pe(yt(f, 0))), o = l0(r, s, i === c), r = 0, ++i;
|
|
3975
3975
|
}
|
|
3976
3976
|
++r, ++n;
|
|
3977
3977
|
}
|
|
3978
3978
|
return e.join("");
|
|
3979
|
-
},
|
|
3980
|
-
return
|
|
3981
|
-
return
|
|
3979
|
+
}, rc = function(u) {
|
|
3980
|
+
return a0(u, function(e) {
|
|
3981
|
+
return Ko.test(e) ? f0(e.slice(4).toLowerCase()) : e;
|
|
3982
3982
|
});
|
|
3983
|
-
},
|
|
3984
|
-
return
|
|
3985
|
-
return
|
|
3983
|
+
}, oc = function(u) {
|
|
3984
|
+
return a0(u, function(e) {
|
|
3985
|
+
return Yo.test(e) ? "xn--" + d0(e) : e;
|
|
3986
3986
|
});
|
|
3987
|
-
},
|
|
3987
|
+
}, h0 = {
|
|
3988
3988
|
/**
|
|
3989
3989
|
* A string representing the current Punycode.js version number.
|
|
3990
3990
|
* @memberOf punycode
|
|
@@ -3999,14 +3999,14 @@ const uc = (u) => String.fromCodePoint(...u), ec = function(u) {
|
|
|
3999
3999
|
* @type Object
|
|
4000
4000
|
*/
|
|
4001
4001
|
ucs2: {
|
|
4002
|
-
decode:
|
|
4003
|
-
encode:
|
|
4002
|
+
decode: s0,
|
|
4003
|
+
encode: tc
|
|
4004
4004
|
},
|
|
4005
|
-
decode:
|
|
4006
|
-
encode:
|
|
4007
|
-
toASCII:
|
|
4008
|
-
toUnicode:
|
|
4009
|
-
},
|
|
4005
|
+
decode: f0,
|
|
4006
|
+
encode: d0,
|
|
4007
|
+
toASCII: oc,
|
|
4008
|
+
toUnicode: rc
|
|
4009
|
+
}, cc = {
|
|
4010
4010
|
options: {
|
|
4011
4011
|
// Enable HTML tags in source
|
|
4012
4012
|
html: !1,
|
|
@@ -4042,7 +4042,7 @@ const uc = (u) => String.fromCodePoint(...u), ec = function(u) {
|
|
|
4042
4042
|
block: {},
|
|
4043
4043
|
inline: {}
|
|
4044
4044
|
}
|
|
4045
|
-
},
|
|
4045
|
+
}, ic = {
|
|
4046
4046
|
options: {
|
|
4047
4047
|
// Enable HTML tags in source
|
|
4048
4048
|
html: !1,
|
|
@@ -4097,7 +4097,7 @@ const uc = (u) => String.fromCodePoint(...u), ec = function(u) {
|
|
|
4097
4097
|
]
|
|
4098
4098
|
}
|
|
4099
4099
|
}
|
|
4100
|
-
},
|
|
4100
|
+
}, ac = {
|
|
4101
4101
|
options: {
|
|
4102
4102
|
// Enable HTML tags in source
|
|
4103
4103
|
html: !0,
|
|
@@ -4171,47 +4171,47 @@ const uc = (u) => String.fromCodePoint(...u), ec = function(u) {
|
|
|
4171
4171
|
]
|
|
4172
4172
|
}
|
|
4173
4173
|
}
|
|
4174
|
-
},
|
|
4175
|
-
default:
|
|
4176
|
-
zero:
|
|
4177
|
-
commonmark:
|
|
4178
|
-
},
|
|
4179
|
-
function
|
|
4174
|
+
}, sc = {
|
|
4175
|
+
default: cc,
|
|
4176
|
+
zero: ic,
|
|
4177
|
+
commonmark: ac
|
|
4178
|
+
}, lc = /^(vbscript|javascript|file|data):/, fc = /^data:image\/(gif|png|jpeg|webp);/;
|
|
4179
|
+
function dc(u) {
|
|
4180
4180
|
const e = u.trim().toLowerCase();
|
|
4181
|
-
return
|
|
4181
|
+
return lc.test(e) ? fc.test(e) : !0;
|
|
4182
4182
|
}
|
|
4183
|
-
const
|
|
4184
|
-
function
|
|
4183
|
+
const p0 = ["http:", "https:", "mailto:"];
|
|
4184
|
+
function hc(u) {
|
|
4185
4185
|
const e = Be(u, !0);
|
|
4186
|
-
if (e.hostname && (!e.protocol ||
|
|
4186
|
+
if (e.hostname && (!e.protocol || p0.indexOf(e.protocol) >= 0))
|
|
4187
4187
|
try {
|
|
4188
|
-
e.hostname =
|
|
4188
|
+
e.hostname = h0.toASCII(e.hostname);
|
|
4189
4189
|
} catch {
|
|
4190
4190
|
}
|
|
4191
4191
|
return zu(Ne(e));
|
|
4192
4192
|
}
|
|
4193
|
-
function
|
|
4193
|
+
function pc(u) {
|
|
4194
4194
|
const e = Be(u, !0);
|
|
4195
|
-
if (e.hostname && (!e.protocol ||
|
|
4195
|
+
if (e.hostname && (!e.protocol || p0.indexOf(e.protocol) >= 0))
|
|
4196
4196
|
try {
|
|
4197
|
-
e.hostname =
|
|
4197
|
+
e.hostname = h0.toUnicode(e.hostname);
|
|
4198
4198
|
} catch {
|
|
4199
4199
|
}
|
|
4200
|
-
return
|
|
4200
|
+
return Fu(Ne(e), Fu.defaultChars + "%");
|
|
4201
4201
|
}
|
|
4202
|
-
function
|
|
4203
|
-
if (!(this instanceof
|
|
4204
|
-
return new
|
|
4205
|
-
e || Oe(u) || (e = u || {}, u = "default"), this.inline = new qu(), this.block = new ne(), this.core = new
|
|
4202
|
+
function nu(u, e) {
|
|
4203
|
+
if (!(this instanceof nu))
|
|
4204
|
+
return new nu(u, e);
|
|
4205
|
+
e || Oe(u) || (e = u || {}, u = "default"), this.inline = new qu(), this.block = new ne(), this.core = new Pe(), this.renderer = new wu(), this.linkify = new uu(), this.validateLink = dc, this.normalizeLink = hc, this.normalizeLinkText = pc, this.utils = br, this.helpers = ee({}, _r), this.options = {}, this.configure(u), e && this.set(e);
|
|
4206
4206
|
}
|
|
4207
|
-
|
|
4207
|
+
nu.prototype.set = function(u) {
|
|
4208
4208
|
return ee(this.options, u), this;
|
|
4209
4209
|
};
|
|
4210
|
-
|
|
4210
|
+
nu.prototype.configure = function(u) {
|
|
4211
4211
|
const e = this;
|
|
4212
4212
|
if (Oe(u)) {
|
|
4213
4213
|
const t = u;
|
|
4214
|
-
if (u =
|
|
4214
|
+
if (u = sc[t], !u)
|
|
4215
4215
|
throw new Error('Wrong `markdown-it` preset "' + t + '", check name');
|
|
4216
4216
|
}
|
|
4217
4217
|
if (!u)
|
|
@@ -4220,7 +4220,7 @@ eu.prototype.configure = function(u) {
|
|
|
4220
4220
|
u.components[t].rules && e[t].ruler.enableOnly(u.components[t].rules), u.components[t].rules2 && e[t].ruler2.enableOnly(u.components[t].rules2);
|
|
4221
4221
|
}), this;
|
|
4222
4222
|
};
|
|
4223
|
-
|
|
4223
|
+
nu.prototype.enable = function(u, e) {
|
|
4224
4224
|
let t = [];
|
|
4225
4225
|
Array.isArray(u) || (u = [u]), ["core", "block", "inline"].forEach(function(r) {
|
|
4226
4226
|
t = t.concat(this[r].ruler.enable(u, !0));
|
|
@@ -4232,7 +4232,7 @@ eu.prototype.enable = function(u, e) {
|
|
|
4232
4232
|
throw new Error("MarkdownIt. Failed to enable unknown rule(s): " + n);
|
|
4233
4233
|
return this;
|
|
4234
4234
|
};
|
|
4235
|
-
|
|
4235
|
+
nu.prototype.disable = function(u, e) {
|
|
4236
4236
|
let t = [];
|
|
4237
4237
|
Array.isArray(u) || (u = [u]), ["core", "block", "inline"].forEach(function(r) {
|
|
4238
4238
|
t = t.concat(this[r].ruler.disable(u, !0));
|
|
@@ -4244,27 +4244,27 @@ eu.prototype.disable = function(u, e) {
|
|
|
4244
4244
|
throw new Error("MarkdownIt. Failed to disable unknown rule(s): " + n);
|
|
4245
4245
|
return this;
|
|
4246
4246
|
};
|
|
4247
|
-
|
|
4247
|
+
nu.prototype.use = function(u) {
|
|
4248
4248
|
const e = [this].concat(Array.prototype.slice.call(arguments, 1));
|
|
4249
4249
|
return u.apply(u, e), this;
|
|
4250
4250
|
};
|
|
4251
|
-
|
|
4251
|
+
nu.prototype.parse = function(u, e) {
|
|
4252
4252
|
if (typeof u != "string")
|
|
4253
4253
|
throw new Error("Input data should be a String");
|
|
4254
4254
|
const t = new this.core.State(u, this, e);
|
|
4255
4255
|
return this.core.process(t), t.tokens;
|
|
4256
4256
|
};
|
|
4257
|
-
|
|
4257
|
+
nu.prototype.render = function(u, e) {
|
|
4258
4258
|
return e = e || {}, this.renderer.render(this.parse(u, e), this.options, e);
|
|
4259
4259
|
};
|
|
4260
|
-
|
|
4260
|
+
nu.prototype.parseInline = function(u, e) {
|
|
4261
4261
|
const t = new this.core.State(u, this, e);
|
|
4262
4262
|
return t.inlineMode = !0, this.core.process(t), t.tokens;
|
|
4263
4263
|
};
|
|
4264
|
-
|
|
4264
|
+
nu.prototype.renderInline = function(u, e) {
|
|
4265
4265
|
return e = e || {}, this.renderer.render(this.parseInline(u, e), this.options, e);
|
|
4266
4266
|
};
|
|
4267
|
-
var
|
|
4267
|
+
var bc = { 207: (u, e, t) => {
|
|
4268
4268
|
u.exports = t(452);
|
|
4269
4269
|
}, 452: (u) => {
|
|
4270
4270
|
var e = (function(t) {
|
|
@@ -4280,39 +4280,39 @@ var hc = { 207: (u, e, t) => {
|
|
|
4280
4280
|
};
|
|
4281
4281
|
}
|
|
4282
4282
|
function f(x, b, F, I) {
|
|
4283
|
-
var S = b && b.prototype instanceof v ? b : v, R = Object.create(S.prototype),
|
|
4284
|
-
return R._invoke = /* @__PURE__ */ (function(K, W,
|
|
4283
|
+
var S = b && b.prototype instanceof v ? b : v, R = Object.create(S.prototype), V = new H(I || []);
|
|
4284
|
+
return R._invoke = /* @__PURE__ */ (function(K, W, P) {
|
|
4285
4285
|
var G = p;
|
|
4286
|
-
return function(
|
|
4286
|
+
return function(cu, Re) {
|
|
4287
4287
|
if (G === C) throw new Error("Generator is already running");
|
|
4288
4288
|
if (G === k) {
|
|
4289
|
-
if (
|
|
4289
|
+
if (cu === "throw") throw Re;
|
|
4290
4290
|
return B();
|
|
4291
4291
|
}
|
|
4292
|
-
for (
|
|
4293
|
-
var qe =
|
|
4292
|
+
for (P.method = cu, P.arg = Re; ; ) {
|
|
4293
|
+
var qe = P.delegate;
|
|
4294
4294
|
if (qe) {
|
|
4295
|
-
var oe = O(qe,
|
|
4295
|
+
var oe = O(qe, P);
|
|
4296
4296
|
if (oe) {
|
|
4297
4297
|
if (oe === w) continue;
|
|
4298
4298
|
return oe;
|
|
4299
4299
|
}
|
|
4300
4300
|
}
|
|
4301
|
-
if (
|
|
4302
|
-
else if (
|
|
4303
|
-
if (G === p) throw G = k,
|
|
4304
|
-
|
|
4305
|
-
} else
|
|
4301
|
+
if (P.method === "next") P.sent = P._sent = P.arg;
|
|
4302
|
+
else if (P.method === "throw") {
|
|
4303
|
+
if (G === p) throw G = k, P.arg;
|
|
4304
|
+
P.dispatchException(P.arg);
|
|
4305
|
+
} else P.method === "return" && P.abrupt("return", P.arg);
|
|
4306
4306
|
G = C;
|
|
4307
|
-
var
|
|
4308
|
-
if (
|
|
4309
|
-
if (G =
|
|
4310
|
-
return { value:
|
|
4307
|
+
var Su = g(K, W, P);
|
|
4308
|
+
if (Su.type === "normal") {
|
|
4309
|
+
if (G = P.done ? k : d, Su.arg === w) continue;
|
|
4310
|
+
return { value: Su.arg, done: P.done };
|
|
4311
4311
|
}
|
|
4312
|
-
|
|
4312
|
+
Su.type === "throw" && (G = k, P.method = "throw", P.arg = Su.arg);
|
|
4313
4313
|
}
|
|
4314
4314
|
};
|
|
4315
|
-
})(x, F,
|
|
4315
|
+
})(x, F, V), R;
|
|
4316
4316
|
}
|
|
4317
4317
|
function g(x, b, F) {
|
|
4318
4318
|
try {
|
|
@@ -4344,30 +4344,30 @@ var hc = { 207: (u, e, t) => {
|
|
|
4344
4344
|
}));
|
|
4345
4345
|
}
|
|
4346
4346
|
function T(x, b) {
|
|
4347
|
-
function F(S, R,
|
|
4347
|
+
function F(S, R, V, K) {
|
|
4348
4348
|
var W = g(x[S], x, R);
|
|
4349
4349
|
if (W.type !== "throw") {
|
|
4350
|
-
var
|
|
4351
|
-
return G && typeof G == "object" && o.call(G, "__await") ? b.resolve(G.__await).then((function(
|
|
4352
|
-
F("next",
|
|
4353
|
-
}), (function(
|
|
4354
|
-
F("throw",
|
|
4355
|
-
})) : b.resolve(G).then((function(
|
|
4356
|
-
|
|
4357
|
-
}), (function(
|
|
4358
|
-
return F("throw",
|
|
4350
|
+
var P = W.arg, G = P.value;
|
|
4351
|
+
return G && typeof G == "object" && o.call(G, "__await") ? b.resolve(G.__await).then((function(cu) {
|
|
4352
|
+
F("next", cu, V, K);
|
|
4353
|
+
}), (function(cu) {
|
|
4354
|
+
F("throw", cu, V, K);
|
|
4355
|
+
})) : b.resolve(G).then((function(cu) {
|
|
4356
|
+
P.value = cu, V(P);
|
|
4357
|
+
}), (function(cu) {
|
|
4358
|
+
return F("throw", cu, V, K);
|
|
4359
4359
|
}));
|
|
4360
4360
|
}
|
|
4361
4361
|
K(W.arg);
|
|
4362
4362
|
}
|
|
4363
4363
|
var I;
|
|
4364
4364
|
this._invoke = function(S, R) {
|
|
4365
|
-
function
|
|
4365
|
+
function V() {
|
|
4366
4366
|
return new b((function(K, W) {
|
|
4367
4367
|
F(S, R, K, W);
|
|
4368
4368
|
}));
|
|
4369
4369
|
}
|
|
4370
|
-
return I = I ? I.then(
|
|
4370
|
+
return I = I ? I.then(V, V) : V();
|
|
4371
4371
|
};
|
|
4372
4372
|
}
|
|
4373
4373
|
function O(x, b) {
|
|
@@ -4384,7 +4384,7 @@ var hc = { 207: (u, e, t) => {
|
|
|
4384
4384
|
var S = I.arg;
|
|
4385
4385
|
return S ? S.done ? (b[x.resultName] = S.value, b.next = x.nextLoc, b.method !== "return" && (b.method = "next", b.arg = n), b.delegate = null, w) : S : (b.method = "throw", b.arg = new TypeError("iterator result is not an object"), b.delegate = null, w);
|
|
4386
4386
|
}
|
|
4387
|
-
function
|
|
4387
|
+
function M(x) {
|
|
4388
4388
|
var b = { tryLoc: x[0] };
|
|
4389
4389
|
1 in x && (b.catchLoc = x[1]), 2 in x && (b.finallyLoc = x[2], b.afterLoc = x[3]), this.tryEntries.push(b);
|
|
4390
4390
|
}
|
|
@@ -4392,8 +4392,8 @@ var hc = { 207: (u, e, t) => {
|
|
|
4392
4392
|
var b = x.completion || {};
|
|
4393
4393
|
b.type = "normal", delete b.arg, x.completion = b;
|
|
4394
4394
|
}
|
|
4395
|
-
function
|
|
4396
|
-
this.tryEntries = [{ tryLoc: "root" }], x.forEach(
|
|
4395
|
+
function H(x) {
|
|
4396
|
+
this.tryEntries = [{ tryLoc: "root" }], x.forEach(M, this), this.reset(!0);
|
|
4397
4397
|
}
|
|
4398
4398
|
function z(x) {
|
|
4399
4399
|
if (x) {
|
|
@@ -4425,8 +4425,8 @@ var hc = { 207: (u, e, t) => {
|
|
|
4425
4425
|
})), t.AsyncIterator = T, t.async = function(x, b, F, I, S) {
|
|
4426
4426
|
S === void 0 && (S = Promise);
|
|
4427
4427
|
var R = new T(f(x, b, F, I), S);
|
|
4428
|
-
return t.isGeneratorFunction(b) ? R : R.next().then((function(
|
|
4429
|
-
return
|
|
4428
|
+
return t.isGeneratorFunction(b) ? R : R.next().then((function(V) {
|
|
4429
|
+
return V.done ? V.value : R.next();
|
|
4430
4430
|
}));
|
|
4431
4431
|
}, N(D), l(D, s, "Generator"), l(D, i, (function() {
|
|
4432
4432
|
return this;
|
|
@@ -4442,7 +4442,7 @@ var hc = { 207: (u, e, t) => {
|
|
|
4442
4442
|
}
|
|
4443
4443
|
return I.done = !0, I;
|
|
4444
4444
|
};
|
|
4445
|
-
}, t.values = z,
|
|
4445
|
+
}, t.values = z, H.prototype = { constructor: H, reset: function(x) {
|
|
4446
4446
|
if (this.prev = 0, this.next = 0, this.sent = this._sent = n, this.done = !1, this.delegate = null, this.method = "next", this.arg = n, this.tryEntries.forEach(q), !x) for (var b in this) b.charAt(0) === "t" && o.call(this, b) && !isNaN(+b.slice(1)) && (this[b] = n);
|
|
4447
4447
|
}, stop: function() {
|
|
4448
4448
|
this.done = !0;
|
|
@@ -4452,18 +4452,18 @@ var hc = { 207: (u, e, t) => {
|
|
|
4452
4452
|
}, dispatchException: function(x) {
|
|
4453
4453
|
if (this.done) throw x;
|
|
4454
4454
|
var b = this;
|
|
4455
|
-
function F(W,
|
|
4456
|
-
return R.type = "throw", R.arg = x, b.next = W,
|
|
4455
|
+
function F(W, P) {
|
|
4456
|
+
return R.type = "throw", R.arg = x, b.next = W, P && (b.method = "next", b.arg = n), !!P;
|
|
4457
4457
|
}
|
|
4458
4458
|
for (var I = this.tryEntries.length - 1; I >= 0; --I) {
|
|
4459
4459
|
var S = this.tryEntries[I], R = S.completion;
|
|
4460
4460
|
if (S.tryLoc === "root") return F("end");
|
|
4461
4461
|
if (S.tryLoc <= this.prev) {
|
|
4462
|
-
var
|
|
4463
|
-
if (
|
|
4462
|
+
var V = o.call(S, "catchLoc"), K = o.call(S, "finallyLoc");
|
|
4463
|
+
if (V && K) {
|
|
4464
4464
|
if (this.prev < S.catchLoc) return F(S.catchLoc, !0);
|
|
4465
4465
|
if (this.prev < S.finallyLoc) return F(S.finallyLoc);
|
|
4466
|
-
} else if (
|
|
4466
|
+
} else if (V) {
|
|
4467
4467
|
if (this.prev < S.catchLoc) return F(S.catchLoc, !0);
|
|
4468
4468
|
} else {
|
|
4469
4469
|
if (!K) throw new Error("try statement without catch or finally");
|
|
@@ -4513,25 +4513,25 @@ var hc = { 207: (u, e, t) => {
|
|
|
4513
4513
|
typeof globalThis == "object" ? globalThis.regeneratorRuntime = e : Function("r", "regeneratorRuntime = r")(e);
|
|
4514
4514
|
}
|
|
4515
4515
|
} }, Ct = {};
|
|
4516
|
-
function
|
|
4516
|
+
function ru(u) {
|
|
4517
4517
|
var e = Ct[u];
|
|
4518
4518
|
if (e !== void 0) return e.exports;
|
|
4519
4519
|
var t = Ct[u] = { exports: {} };
|
|
4520
|
-
return
|
|
4520
|
+
return bc[u](t, t.exports, ru), t.exports;
|
|
4521
4521
|
}
|
|
4522
|
-
|
|
4522
|
+
ru.n = (u) => {
|
|
4523
4523
|
var e = u && u.__esModule ? () => u.default : () => u;
|
|
4524
|
-
return
|
|
4525
|
-
},
|
|
4526
|
-
for (var t in e)
|
|
4527
|
-
},
|
|
4528
|
-
var
|
|
4524
|
+
return ru.d(e, { a: e }), e;
|
|
4525
|
+
}, ru.d = (u, e) => {
|
|
4526
|
+
for (var t in e) ru.o(e, t) && !ru.o(u, t) && Object.defineProperty(u, t, { enumerable: !0, get: e[t] });
|
|
4527
|
+
}, ru.o = (u, e) => Object.prototype.hasOwnProperty.call(u, e);
|
|
4528
|
+
var b0 = {};
|
|
4529
4529
|
function Fe(u, e) {
|
|
4530
4530
|
(e == null || e > u.length) && (e = u.length);
|
|
4531
4531
|
for (var t = 0, n = new Array(e); t < e; t++) n[t] = u[t];
|
|
4532
4532
|
return n;
|
|
4533
4533
|
}
|
|
4534
|
-
function
|
|
4534
|
+
function m0(u, e) {
|
|
4535
4535
|
if (u) {
|
|
4536
4536
|
if (typeof u == "string") return Fe(u, e);
|
|
4537
4537
|
var t = Object.prototype.toString.call(u).slice(8, -1);
|
|
@@ -4543,7 +4543,7 @@ function Yu(u) {
|
|
|
4543
4543
|
if (Array.isArray(e)) return Fe(e);
|
|
4544
4544
|
})(u) || (function(e) {
|
|
4545
4545
|
if (typeof Symbol < "u" && e[Symbol.iterator] != null || e["@@iterator"] != null) return Array.from(e);
|
|
4546
|
-
})(u) ||
|
|
4546
|
+
})(u) || m0(u) || (function() {
|
|
4547
4547
|
throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
4548
4548
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
4549
4549
|
})();
|
|
@@ -4551,11 +4551,11 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
4551
4551
|
function ju(u, e, t) {
|
|
4552
4552
|
return e in u ? Object.defineProperty(u, e, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : u[e] = t, u;
|
|
4553
4553
|
}
|
|
4554
|
-
|
|
4555
|
-
const A = (vt = { Fragment: () =>
|
|
4554
|
+
ru.d(b0, { A: () => yc });
|
|
4555
|
+
const A = (vt = { Fragment: () => hu.Fragment, computed: () => hu.computed, createTextVNode: () => hu.createTextVNode, createVNode: () => hu.createVNode, defineComponent: () => hu.defineComponent, reactive: () => hu.reactive, ref: () => hu.ref, watch: () => hu.watch, watchEffect: () => hu.watchEffect }, be = {}, ru.d(be, vt), be), mc = (0, A.defineComponent)({ props: { data: { required: !0, type: String }, onClick: Function }, render: function() {
|
|
4556
4556
|
var u = this.data, e = this.onClick;
|
|
4557
4557
|
return (0, A.createVNode)("span", { class: "vjs-tree-brackets", onClick: e }, [u]);
|
|
4558
|
-
} }),
|
|
4558
|
+
} }), xc = (0, A.defineComponent)({ emits: ["change", "update:modelValue"], props: { checked: { type: Boolean, default: !1 }, isMultiple: Boolean, onChange: Function }, setup: function(u, e) {
|
|
4559
4559
|
var t = e.emit;
|
|
4560
4560
|
return { uiType: (0, A.computed)((function() {
|
|
4561
4561
|
return u.isMultiple ? "checkbox" : "radio";
|
|
@@ -4571,7 +4571,7 @@ const A = (vt = { Fragment: () => fu.Fragment, computed: () => fu.computed, crea
|
|
|
4571
4571
|
} }, [(0, A.createVNode)("span", { class: "vjs-check-controller-inner is-".concat(u) }, null), (0, A.createVNode)("input", { checked: e, class: "vjs-check-controller-original is-".concat(u), type: u, onChange: function() {
|
|
4572
4572
|
return t("change", e);
|
|
4573
4573
|
} }, null)]);
|
|
4574
|
-
} }),
|
|
4574
|
+
} }), gc = (0, A.defineComponent)({ props: { nodeType: { required: !0, type: String }, onClick: Function }, render: function() {
|
|
4575
4575
|
var u = this.nodeType, e = this.onClick, t = u === "objectStart" || u === "arrayStart";
|
|
4576
4576
|
return t || u === "objectCollapsed" || u === "arrayCollapsed" ? (0, A.createVNode)("span", { class: "vjs-carets vjs-carets-".concat(t ? "open" : "close"), onClick: e }, [(0, A.createVNode)("svg", { viewBox: "0 0 1024 1024", focusable: "false", "data-icon": "caret-down", width: "1em", height: "1em", fill: "currentColor", "aria-hidden": "true" }, [(0, A.createVNode)("path", { d: "M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z" }, null)])]) : null;
|
|
4577
4577
|
} });
|
|
@@ -4583,22 +4583,22 @@ function Ae(u) {
|
|
|
4583
4583
|
return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
|
|
4584
4584
|
}, Ae(u);
|
|
4585
4585
|
}
|
|
4586
|
-
function
|
|
4586
|
+
function x0(u) {
|
|
4587
4587
|
return Object.prototype.toString.call(u).slice(8, -1).toLowerCase();
|
|
4588
4588
|
}
|
|
4589
|
-
function
|
|
4590
|
-
var e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "root", t = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : 0, n = (arguments.length > 3 ? arguments[3] : void 0) || {}, r = n.key, o = n.index, c = n.type, i = c === void 0 ? "content" : c, a = n.showComma, s = a !== void 0 && a, l = n.length, f = l === void 0 ? 1 : l, g =
|
|
4589
|
+
function ku(u) {
|
|
4590
|
+
var e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "root", t = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : 0, n = (arguments.length > 3 ? arguments[3] : void 0) || {}, r = n.key, o = n.index, c = n.type, i = c === void 0 ? "content" : c, a = n.showComma, s = a !== void 0 && a, l = n.length, f = l === void 0 ? 1 : l, g = x0(u);
|
|
4591
4591
|
if (g === "array") {
|
|
4592
4592
|
var p = Dt(u.map((function(k, w, v) {
|
|
4593
|
-
return
|
|
4593
|
+
return ku(k, "".concat(e, "[").concat(w, "]"), t + 1, { index: w, showComma: w !== v.length - 1, length: f, type: i });
|
|
4594
4594
|
})));
|
|
4595
|
-
return [
|
|
4595
|
+
return [ku("[", e, t, { showComma: !1, key: r, length: u.length, type: "arrayStart" })[0]].concat(p, ku("]", e, t, { showComma: s, length: u.length, type: "arrayEnd" })[0]);
|
|
4596
4596
|
}
|
|
4597
4597
|
if (g === "object") {
|
|
4598
4598
|
var d = Object.keys(u), C = Dt(d.map((function(k, w, v) {
|
|
4599
|
-
return
|
|
4599
|
+
return ku(u[k], /^[a-zA-Z_]\w*$/.test(k) ? "".concat(e, ".").concat(k) : "".concat(e, '["').concat(k, '"]'), t + 1, { key: k, showComma: w !== v.length - 1, length: f, type: i });
|
|
4600
4600
|
})));
|
|
4601
|
-
return [
|
|
4601
|
+
return [ku("{", e, t, { showComma: !1, key: r, index: o, length: d.length, type: "objectStart" })[0]].concat(C, ku("}", e, t, { showComma: s, length: d.length, type: "objectEnd" })[0]);
|
|
4602
4602
|
}
|
|
4603
4603
|
return [{ content: u, level: t, key: r, index: o, path: e, showComma: s, length: f, type: i }];
|
|
4604
4604
|
}
|
|
@@ -4635,7 +4635,7 @@ function Et(u, e, t, n, r, o, c) {
|
|
|
4635
4635
|
}
|
|
4636
4636
|
i.done ? e(a) : Promise.resolve(a).then(n, r);
|
|
4637
4637
|
}
|
|
4638
|
-
var
|
|
4638
|
+
var _c = ru(207), Ft = ru.n(_c);
|
|
4639
4639
|
function At(u, e) {
|
|
4640
4640
|
var t = Object.keys(u);
|
|
4641
4641
|
if (Object.getOwnPropertySymbols) {
|
|
@@ -4657,12 +4657,12 @@ function wt(u) {
|
|
|
4657
4657
|
}
|
|
4658
4658
|
return u;
|
|
4659
4659
|
}
|
|
4660
|
-
var
|
|
4660
|
+
var g0 = { data: { type: [String, Number, Boolean, Array, Object], default: null }, rootPath: { type: String, default: "root" }, indent: { type: Number, default: 2 }, showLength: { type: Boolean, default: !1 }, showDoubleQuotes: { type: Boolean, default: !0 }, renderNodeKey: Function, renderNodeValue: Function, renderNodeActions: { type: [Boolean, Function], default: void 0 }, selectableType: String, showSelectController: { type: Boolean, default: !1 }, showLine: { type: Boolean, default: !0 }, showLineNumber: { type: Boolean, default: !1 }, selectOnClickNode: { type: Boolean, default: !0 }, nodeSelectable: { type: Function, default: function() {
|
|
4661
4661
|
return !0;
|
|
4662
4662
|
} }, highlightSelectedNode: { type: Boolean, default: !0 }, showIcon: { type: Boolean, default: !1 }, theme: { type: String, default: "light" }, showKeyValueSpace: { type: Boolean, default: !0 }, editable: { type: Boolean, default: !1 }, editableTrigger: { type: String, default: "click" }, onNodeClick: { type: Function }, onNodeMouseover: { type: Function }, onBracketsClick: { type: Function }, onIconClick: { type: Function }, onValueChange: { type: Function } };
|
|
4663
|
-
const
|
|
4663
|
+
const kc = (0, A.defineComponent)({ name: "TreeNode", props: wt(wt({}, g0), {}, { node: { type: Object, required: !0 }, collapsed: Boolean, checked: Boolean, style: Object, onSelectedChange: { type: Function } }), emits: ["nodeClick", "nodeMouseover", "bracketsClick", "iconClick", "selectedChange", "valueChange"], setup: function(u, e) {
|
|
4664
4664
|
var t = e.emit, n = (0, A.computed)((function() {
|
|
4665
|
-
return
|
|
4665
|
+
return x0(u.node.content);
|
|
4666
4666
|
})), r = (0, A.computed)((function() {
|
|
4667
4667
|
return "vjs-value vjs-value-".concat(n.value);
|
|
4668
4668
|
})), o = (0, A.computed)((function() {
|
|
@@ -4704,31 +4704,31 @@ const gc = (0, A.defineComponent)({ name: "TreeNode", props: wt(wt({}, x0), {},
|
|
|
4704
4704
|
}, E = (function() {
|
|
4705
4705
|
var m = (0, A.ref)(!1), _ = (function() {
|
|
4706
4706
|
var D, N = (D = Ft().mark((function T(O) {
|
|
4707
|
-
return Ft().wrap((function(
|
|
4708
|
-
for (; ; ) switch (
|
|
4707
|
+
return Ft().wrap((function(M) {
|
|
4708
|
+
for (; ; ) switch (M.prev = M.next) {
|
|
4709
4709
|
case 0:
|
|
4710
|
-
return
|
|
4710
|
+
return M.prev = 0, M.next = 3, navigator.clipboard.writeText(O);
|
|
4711
4711
|
case 3:
|
|
4712
4712
|
m.value = !0, setTimeout((function() {
|
|
4713
4713
|
m.value = !1;
|
|
4714
|
-
}), 300),
|
|
4714
|
+
}), 300), M.next = 10;
|
|
4715
4715
|
break;
|
|
4716
4716
|
case 7:
|
|
4717
|
-
|
|
4717
|
+
M.prev = 7, M.t0 = M.catch(0), console.error("[vue-json-pretty] Copy failed: ", M.t0);
|
|
4718
4718
|
case 10:
|
|
4719
4719
|
case "end":
|
|
4720
|
-
return
|
|
4720
|
+
return M.stop();
|
|
4721
4721
|
}
|
|
4722
4722
|
}), T, null, [[0, 7]]);
|
|
4723
4723
|
})), function() {
|
|
4724
4724
|
var T = this, O = arguments;
|
|
4725
|
-
return new Promise((function(
|
|
4726
|
-
var
|
|
4725
|
+
return new Promise((function(M, q) {
|
|
4726
|
+
var H = D.apply(T, O);
|
|
4727
4727
|
function z(x) {
|
|
4728
|
-
Et(
|
|
4728
|
+
Et(H, M, q, z, B, "next", x);
|
|
4729
4729
|
}
|
|
4730
4730
|
function B(x) {
|
|
4731
|
-
Et(
|
|
4731
|
+
Et(H, M, q, z, B, "throw", x);
|
|
4732
4732
|
}
|
|
4733
4733
|
z(void 0);
|
|
4734
4734
|
}));
|
|
@@ -4749,11 +4749,11 @@ const gc = (0, A.defineComponent)({ name: "TreeNode", props: wt(wt({}, x0), {},
|
|
|
4749
4749
|
};
|
|
4750
4750
|
return function() {
|
|
4751
4751
|
var m, _ = u.node;
|
|
4752
|
-
return (0, A.createVNode)("div", { class: { "vjs-tree-node": !0, "has-selector": u.showSelectController, "has-carets": u.showIcon, "is-highlight": u.highlightSelectedNode && u.checked, dark: u.theme === "dark" }, onClick: k, onMouseover: w, style: u.style }, [u.showLineNumber && (0, A.createVNode)("span", { class: "vjs-node-index" }, [_.id + 1]), u.showSelectController && a.value && _.type !== "objectEnd" && _.type !== "arrayEnd" && (0, A.createVNode)(
|
|
4752
|
+
return (0, A.createVNode)("div", { class: { "vjs-tree-node": !0, "has-selector": u.showSelectController, "has-carets": u.showIcon, "is-highlight": u.highlightSelectedNode && u.checked, dark: u.theme === "dark" }, onClick: k, onMouseover: w, style: u.style }, [u.showLineNumber && (0, A.createVNode)("span", { class: "vjs-node-index" }, [_.id + 1]), u.showSelectController && a.value && _.type !== "objectEnd" && _.type !== "arrayEnd" && (0, A.createVNode)(xc, { isMultiple: c.value, checked: u.checked, onChange: C }, null), (0, A.createVNode)("div", { class: "vjs-indent" }, [Array.from(Array(_.level)).map((function(D, N) {
|
|
4753
4753
|
return (0, A.createVNode)("div", { key: N, class: { "vjs-indent-unit": !0, "has-line": u.showLine } }, [Array.from(Array(u.indent)).map((function() {
|
|
4754
4754
|
return (0, A.createVNode)(A.Fragment, null, [(0, A.createTextVNode)(" ")]);
|
|
4755
4755
|
}))]);
|
|
4756
|
-
})), u.showIcon && (0, A.createVNode)(
|
|
4756
|
+
})), u.showIcon && (0, A.createVNode)(gc, { nodeType: _.type, onClick: d }, null)]), _.key && (0, A.createVNode)("span", { class: "vjs-key" }, [(m = u.renderNodeKey, m ? m({ node: u.node, defaultKey: o.value || "" }) : o.value), (0, A.createVNode)("span", { class: "vjs-colon" }, [":".concat(u.showKeyValueSpace ? " " : "")])]), (0, A.createVNode)("span", null, [_.type !== "content" && _.content ? (0, A.createVNode)(mc, { data: _.content.toString(), onClick: p }, null) : (0, A.createVNode)("span", { class: r.value, onClick: !u.editable || u.editableTrigger && u.editableTrigger !== "click" ? void 0 : v, onDblclick: u.editable && u.editableTrigger === "dblclick" ? v : void 0 }, [u.editable && s.editing ? (0, A.createVNode)("input", { value: f.value, onChange: l, style: { padding: "3px 8px", border: "1px solid #eee", boxShadow: "none", boxSizing: "border-box", borderRadius: 5, fontFamily: "inherit" } }, null) : g()]), _.showComma && (0, A.createVNode)("span", null, [","]), u.showLength && u.collapsed && (0, A.createVNode)("span", { class: "vjs-comment" }, [(0, A.createTextVNode)(" // "), _.length, (0, A.createTextVNode)(" items ")])]), u.renderNodeActions && (0, A.createVNode)("span", { class: "vjs-tree-node-actions" }, [y()])]);
|
|
4757
4757
|
};
|
|
4758
4758
|
} });
|
|
4759
4759
|
function St(u, e) {
|
|
@@ -4777,13 +4777,13 @@ function X(u) {
|
|
|
4777
4777
|
}
|
|
4778
4778
|
return u;
|
|
4779
4779
|
}
|
|
4780
|
-
const
|
|
4780
|
+
const yc = (0, A.defineComponent)({ name: "Tree", props: X(X({}, g0), {}, { collapsedNodeLength: { type: Number, default: 1 / 0 }, deep: { type: Number, default: 1 / 0 }, pathCollapsible: { type: Function, default: function() {
|
|
4781
4781
|
return !1;
|
|
4782
4782
|
} }, virtual: { type: Boolean, default: !1 }, height: { type: Number, default: 400 }, itemHeight: { type: Number, default: 20 }, selectedValue: { type: [String, Array], default: function() {
|
|
4783
4783
|
return "";
|
|
4784
4784
|
} }, collapsedOnClickBrackets: { type: Boolean, default: !0 }, style: Object, onSelectedChange: { type: Function }, theme: { type: String, default: "light" } }), slots: ["renderNodeKey", "renderNodeValue", "renderNodeActions"], emits: ["nodeClick", "nodeMouseover", "bracketsClick", "iconClick", "selectedChange", "update:selectedValue", "update:data"], setup: function(u, e) {
|
|
4785
4785
|
var t = e.emit, n = e.slots, r = (0, A.ref)(), o = (0, A.computed)((function() {
|
|
4786
|
-
return
|
|
4786
|
+
return ku(u.data, u.rootPath);
|
|
4787
4787
|
})), c = function(h, y) {
|
|
4788
4788
|
return o.value.reduce((function(m, _) {
|
|
4789
4789
|
var D, N = _.level >= h || _.length >= y, T = (D = u.pathCollapsible) === null || D === void 0 ? void 0 : D.call(u, _);
|
|
@@ -4816,8 +4816,8 @@ const _c = (0, A.defineComponent)({ name: "Tree", props: X(X({}, x0), {}, { coll
|
|
|
4816
4816
|
var y, m = u.height / u.itemHeight, _ = ((y = r.value) === null || y === void 0 ? void 0 : y.scrollTop) || 0, D = Math.floor(_ / u.itemHeight), N = D < 0 ? 0 : D + m > h.length ? h.length - m : D;
|
|
4817
4817
|
N < 0 && (N = 0);
|
|
4818
4818
|
var T = N + m;
|
|
4819
|
-
i.translateY = N * u.itemHeight, i.visibleData = h.filter((function(O,
|
|
4820
|
-
return
|
|
4819
|
+
i.translateY = N * u.itemHeight, i.visibleData = h.filter((function(O, M) {
|
|
4820
|
+
return M >= N && M < T;
|
|
4821
4821
|
}));
|
|
4822
4822
|
} else i.visibleData = h;
|
|
4823
4823
|
}, g = function() {
|
|
@@ -4832,12 +4832,12 @@ const _c = (0, A.defineComponent)({ name: "Tree", props: X(X({}, x0), {}, { coll
|
|
|
4832
4832
|
} else if (D === "single" && s.value[0] !== _) {
|
|
4833
4833
|
var O = (y = s.value, m = 1, (function(q) {
|
|
4834
4834
|
if (Array.isArray(q)) return q;
|
|
4835
|
-
})(y) || (function(q,
|
|
4835
|
+
})(y) || (function(q, H) {
|
|
4836
4836
|
var z = q == null ? null : typeof Symbol < "u" && q[Symbol.iterator] || q["@@iterator"];
|
|
4837
4837
|
if (z != null) {
|
|
4838
4838
|
var B, x, b = [], F = !0, I = !1;
|
|
4839
4839
|
try {
|
|
4840
|
-
for (z = z.call(q); !(F = (B = z.next()).done) && (b.push(B.value), !
|
|
4840
|
+
for (z = z.call(q); !(F = (B = z.next()).done) && (b.push(B.value), !H || b.length !== H); F = !0) ;
|
|
4841
4841
|
} catch (S) {
|
|
4842
4842
|
I = !0, x = S;
|
|
4843
4843
|
} finally {
|
|
@@ -4849,11 +4849,11 @@ const _c = (0, A.defineComponent)({ name: "Tree", props: X(X({}, x0), {}, { coll
|
|
|
4849
4849
|
}
|
|
4850
4850
|
return b;
|
|
4851
4851
|
}
|
|
4852
|
-
})(y, m) ||
|
|
4852
|
+
})(y, m) || m0(y, m) || (function() {
|
|
4853
4853
|
throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
4854
4854
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
4855
|
-
})())[0],
|
|
4856
|
-
t("update:selectedValue",
|
|
4855
|
+
})())[0], M = _;
|
|
4856
|
+
t("update:selectedValue", M), t("selectedChange", M, O);
|
|
4857
4857
|
}
|
|
4858
4858
|
}, d = function(h) {
|
|
4859
4859
|
t("nodeClick", h);
|
|
@@ -4888,14 +4888,14 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
4888
4888
|
}), (function(h) {
|
|
4889
4889
|
h && (i.hiddenPaths = c(u.deep, h));
|
|
4890
4890
|
})), function() {
|
|
4891
|
-
var h, y, m, _, D = (h = u.renderNodeKey) !== null && h !== void 0 ? h : n.renderNodeKey, N = (y = u.renderNodeValue) !== null && y !== void 0 ? y : n.renderNodeValue, T = (m = (_ = u.renderNodeActions) !== null && _ !== void 0 ? _ : n.renderNodeActions) !== null && m !== void 0 && m, O = i.visibleData && i.visibleData.map((function(
|
|
4892
|
-
return (0, A.createVNode)(
|
|
4891
|
+
var h, y, m, _, D = (h = u.renderNodeKey) !== null && h !== void 0 ? h : n.renderNodeKey, N = (y = u.renderNodeValue) !== null && y !== void 0 ? y : n.renderNodeValue, T = (m = (_ = u.renderNodeActions) !== null && _ !== void 0 ? _ : n.renderNodeActions) !== null && m !== void 0 && m, O = i.visibleData && i.visibleData.map((function(M) {
|
|
4892
|
+
return (0, A.createVNode)(kc, { key: M.id, data: u.data, rootPath: u.rootPath, indent: u.indent, node: M, collapsed: !!i.hiddenPaths[M.path], theme: u.theme, showDoubleQuotes: u.showDoubleQuotes, showLength: u.showLength, checked: s.value.includes(M.path), selectableType: u.selectableType, showLine: u.showLine, showLineNumber: u.showLineNumber, showSelectController: u.showSelectController, selectOnClickNode: u.selectOnClickNode, nodeSelectable: u.nodeSelectable, highlightSelectedNode: u.highlightSelectedNode, editable: u.editable, editableTrigger: u.editableTrigger, showIcon: u.showIcon, showKeyValueSpace: u.showKeyValueSpace, renderNodeKey: D, renderNodeValue: N, renderNodeActions: T, onNodeClick: d, onNodeMouseover: C, onBracketsClick: w, onIconClick: v, onSelectedChange: p, onValueChange: E, style: u.itemHeight && u.itemHeight !== 20 ? { lineHeight: "".concat(u.itemHeight, "px") } : {} }, null);
|
|
4893
4893
|
}));
|
|
4894
4894
|
return (0, A.createVNode)("div", { ref: r, class: { "vjs-tree": !0, "is-virtual": u.virtual, dark: u.theme === "dark" }, onScroll: u.virtual ? g : void 0, style: u.showLineNumber ? X({ paddingLeft: "".concat(12 * Number(o.value.length.toString().length), "px") }, u.style) : u.style }, [u.virtual ? (0, A.createVNode)("div", { class: "vjs-tree-list", style: { height: "".concat(u.height, "px") } }, [(0, A.createVNode)("div", { class: "vjs-tree-list-holder", style: { height: "".concat(a.value.length * u.itemHeight, "px") } }, [(0, A.createVNode)("div", { class: "vjs-tree-list-holder-inner", style: { transform: "translateY(".concat(i.translateY, "px)") } }, [O])])]) : O]);
|
|
4895
4895
|
};
|
|
4896
4896
|
} });
|
|
4897
|
-
var
|
|
4898
|
-
const
|
|
4897
|
+
var Cc = b0.A;
|
|
4898
|
+
const vc = ["src", "alt"], Dc = /* @__PURE__ */ _u({
|
|
4899
4899
|
__name: "ImageViewer",
|
|
4900
4900
|
props: {
|
|
4901
4901
|
show: { type: Boolean },
|
|
@@ -4905,30 +4905,30 @@ const yc = ["src", "alt"], Cc = /* @__PURE__ */ gu({
|
|
|
4905
4905
|
emits: ["close"],
|
|
4906
4906
|
setup(u) {
|
|
4907
4907
|
return (e, t) => (L(), Q(v0, { to: "body" }, [
|
|
4908
|
-
|
|
4908
|
+
au(D0, { name: "viewer" }, {
|
|
4909
4909
|
default: E0(() => [
|
|
4910
|
-
u.show ? (L(),
|
|
4910
|
+
u.show ? (L(), $("div", {
|
|
4911
4911
|
key: 0,
|
|
4912
4912
|
class: "image-viewer",
|
|
4913
4913
|
onClick: t[2] || (t[2] = (n) => e.$emit("close"))
|
|
4914
4914
|
}, [
|
|
4915
|
-
|
|
4915
|
+
tu("div", {
|
|
4916
4916
|
class: "close-button",
|
|
4917
4917
|
onClick: t[0] || (t[0] = Ve((n) => e.$emit("close"), ["stop"]))
|
|
4918
4918
|
}, [
|
|
4919
|
-
|
|
4919
|
+
au(eu(mu), { icon: "mdi:close" })
|
|
4920
4920
|
]),
|
|
4921
|
-
|
|
4921
|
+
tu("div", {
|
|
4922
4922
|
class: "viewer-content",
|
|
4923
4923
|
onClick: t[1] || (t[1] = Ve(() => {
|
|
4924
4924
|
}, ["stop"]))
|
|
4925
4925
|
}, [
|
|
4926
|
-
|
|
4926
|
+
tu("img", {
|
|
4927
4927
|
src: u.imageUrl,
|
|
4928
4928
|
alt: u.alt
|
|
4929
|
-
}, null, 8,
|
|
4929
|
+
}, null, 8, vc)
|
|
4930
4930
|
])
|
|
4931
|
-
])) :
|
|
4931
|
+
])) : iu("", !0)
|
|
4932
4932
|
]),
|
|
4933
4933
|
_: 1
|
|
4934
4934
|
})
|
|
@@ -4939,7 +4939,7 @@ const yc = ["src", "alt"], Cc = /* @__PURE__ */ gu({
|
|
|
4939
4939
|
for (const [n, r] of e)
|
|
4940
4940
|
t[n] = r;
|
|
4941
4941
|
return t;
|
|
4942
|
-
},
|
|
4942
|
+
}, Ec = /* @__PURE__ */ yu(Dc, [["__scopeId", "data-v-92c159ee"]]), Fc = ["innerHTML"], Ac = /* @__PURE__ */ _u({
|
|
4943
4943
|
__name: "MessageTextContent",
|
|
4944
4944
|
props: {
|
|
4945
4945
|
html: {},
|
|
@@ -4948,46 +4948,73 @@ const yc = ["src", "alt"], Cc = /* @__PURE__ */ gu({
|
|
|
4948
4948
|
},
|
|
4949
4949
|
setup(u) {
|
|
4950
4950
|
const e = u, t = J(() => e.role ? `role-${e.role}` : ""), n = J(() => e.plain);
|
|
4951
|
-
return (r, o) => (L(),
|
|
4951
|
+
return (r, o) => (L(), $("div", {
|
|
4952
4952
|
class: Nu(["content-text", [t.value, { "is-plain": n.value }]]),
|
|
4953
4953
|
innerHTML: u.html
|
|
4954
|
-
}, null, 10,
|
|
4954
|
+
}, null, 10, Fc));
|
|
4955
4955
|
}
|
|
4956
|
-
}), Tt = /* @__PURE__ */ yu(
|
|
4956
|
+
}), Tt = /* @__PURE__ */ yu(Ac, [["__scopeId", "data-v-d4935523"]]), wc = {
|
|
4957
4957
|
key: 0,
|
|
4958
4958
|
class: "html-preview-wrapper"
|
|
4959
|
-
},
|
|
4959
|
+
}, Sc = {
|
|
4960
|
+
key: 0,
|
|
4961
|
+
class: "html-loading"
|
|
4962
|
+
}, Tc = ["src"], Ic = { class: "file-name" }, Nc = /* @__PURE__ */ _u({
|
|
4960
4963
|
__name: "MessageFileContent",
|
|
4961
4964
|
props: {
|
|
4962
4965
|
name: {},
|
|
4963
|
-
url: {}
|
|
4966
|
+
url: {},
|
|
4967
|
+
allowShareMedialibHtml: { type: Boolean }
|
|
4964
4968
|
},
|
|
4965
4969
|
emits: ["click"],
|
|
4966
4970
|
setup(u) {
|
|
4967
|
-
const e = u, t = J(() => e.url.toLowerCase().endsWith(".html") ?? !1);
|
|
4968
|
-
|
|
4969
|
-
|
|
4971
|
+
const e = u, t = J(() => e.url.toLowerCase().endsWith(".html") ?? !1), n = vu(!0);
|
|
4972
|
+
function r() {
|
|
4973
|
+
n.value = !1;
|
|
4974
|
+
}
|
|
4975
|
+
return Nt(
|
|
4976
|
+
() => e.url,
|
|
4977
|
+
() => {
|
|
4978
|
+
n.value = !0;
|
|
4979
|
+
}
|
|
4980
|
+
), (o, c) => t.value ? (L(), $("div", wc, [
|
|
4981
|
+
n.value ? (L(), $("div", Sc, [...c[2] || (c[2] = [
|
|
4982
|
+
tu("div", { class: "loading-spinner" }, null, -1),
|
|
4983
|
+
tu("span", { class: "loading-text" }, "加载中...", -1)
|
|
4984
|
+
])])) : iu("", !0),
|
|
4985
|
+
u.allowShareMedialibHtml ? (L(), $("button", {
|
|
4986
|
+
key: 1,
|
|
4987
|
+
type: "button",
|
|
4988
|
+
class: "share-icon",
|
|
4989
|
+
onClick: c[0] || (c[0] = (i) => o.$emit("click"))
|
|
4990
|
+
}, [
|
|
4991
|
+
au(eu(mu), { icon: "mdi:open-in-new" })
|
|
4992
|
+
])) : iu("", !0),
|
|
4993
|
+
F0(tu("iframe", {
|
|
4970
4994
|
src: u.url,
|
|
4971
4995
|
class: "html-iframe",
|
|
4972
|
-
frameborder: "0"
|
|
4973
|
-
|
|
4974
|
-
|
|
4996
|
+
frameborder: "0",
|
|
4997
|
+
onLoad: r
|
|
4998
|
+
}, null, 40, Tc), [
|
|
4999
|
+
[A0, !n.value]
|
|
5000
|
+
])
|
|
5001
|
+
])) : (L(), $("div", {
|
|
4975
5002
|
key: 1,
|
|
4976
5003
|
class: "content-file",
|
|
4977
|
-
onClick:
|
|
5004
|
+
onClick: c[1] || (c[1] = (i) => o.$emit("click"))
|
|
4978
5005
|
}, [
|
|
4979
|
-
|
|
5006
|
+
au(eu(mu), {
|
|
4980
5007
|
icon: "mdi:file-document-outline",
|
|
4981
5008
|
class: "file-icon"
|
|
4982
5009
|
}),
|
|
4983
|
-
|
|
4984
|
-
|
|
5010
|
+
tu("span", Ic, w0(u.name), 1),
|
|
5011
|
+
au(eu(mu), {
|
|
4985
5012
|
icon: "mdi:download",
|
|
4986
5013
|
class: "download-icon"
|
|
4987
5014
|
})
|
|
4988
5015
|
]));
|
|
4989
5016
|
}
|
|
4990
|
-
}), me = /* @__PURE__ */ yu(
|
|
5017
|
+
}), me = /* @__PURE__ */ yu(Nc, [["__scopeId", "data-v-2ab752a0"]]), Bc = ["src"], Lc = /* @__PURE__ */ _u({
|
|
4991
5018
|
__name: "MessageImageContent",
|
|
4992
5019
|
props: {
|
|
4993
5020
|
src: {},
|
|
@@ -4995,54 +5022,55 @@ const yc = ["src", "alt"], Cc = /* @__PURE__ */ gu({
|
|
|
4995
5022
|
},
|
|
4996
5023
|
emits: ["click"],
|
|
4997
5024
|
setup(u) {
|
|
4998
|
-
return (e, t) => (L(),
|
|
5025
|
+
return (e, t) => (L(), $("img", {
|
|
4999
5026
|
src: u.src,
|
|
5000
5027
|
alt: "图片",
|
|
5001
5028
|
class: Nu(["message-image", { "is-full-width": u.fullWidth }]),
|
|
5002
5029
|
onClick: t[0] || (t[0] = (n) => e.$emit("click"))
|
|
5003
|
-
}, null, 10,
|
|
5030
|
+
}, null, 10, Bc));
|
|
5004
5031
|
}
|
|
5005
|
-
}), xe = /* @__PURE__ */ yu(
|
|
5032
|
+
}), xe = /* @__PURE__ */ yu(Lc, [["__scopeId", "data-v-24952cda"]]), Oc = ["src"], Mc = /* @__PURE__ */ _u({
|
|
5006
5033
|
__name: "MessageVideoContent",
|
|
5007
5034
|
props: {
|
|
5008
5035
|
src: {},
|
|
5009
5036
|
fullWidth: { type: Boolean }
|
|
5010
5037
|
},
|
|
5011
5038
|
setup(u) {
|
|
5012
|
-
return (e, t) => (L(),
|
|
5039
|
+
return (e, t) => (L(), $("video", {
|
|
5013
5040
|
controls: "",
|
|
5014
5041
|
src: u.src,
|
|
5015
5042
|
class: Nu(["message-video", { "is-full-width": u.fullWidth }])
|
|
5016
|
-
}, " 您的浏览器不支持视频播放 ", 10,
|
|
5043
|
+
}, " 您的浏览器不支持视频播放 ", 10, Oc));
|
|
5017
5044
|
}
|
|
5018
|
-
}), It = /* @__PURE__ */ yu(
|
|
5045
|
+
}), It = /* @__PURE__ */ yu(Mc, [["__scopeId", "data-v-be6bb72d"]]), Pc = ["src"], jc = /* @__PURE__ */ _u({
|
|
5019
5046
|
__name: "MessageAudioContent",
|
|
5020
5047
|
props: {
|
|
5021
5048
|
src: {}
|
|
5022
5049
|
},
|
|
5023
5050
|
setup(u) {
|
|
5024
|
-
return (e, t) => (L(),
|
|
5051
|
+
return (e, t) => (L(), $("audio", {
|
|
5025
5052
|
controls: "",
|
|
5026
5053
|
src: u.src,
|
|
5027
5054
|
class: "message-audio"
|
|
5028
|
-
}, " 您的浏览器不支持音频播放 ", 8,
|
|
5055
|
+
}, " 您的浏览器不支持音频播放 ", 8, Pc));
|
|
5029
5056
|
}
|
|
5030
|
-
}), ge = /* @__PURE__ */ yu(
|
|
5057
|
+
}), ge = /* @__PURE__ */ yu(jc, [["__scopeId", "data-v-c0d42074"]]), zc = {
|
|
5031
5058
|
key: 2,
|
|
5032
5059
|
class: "content-user-message"
|
|
5033
|
-
},
|
|
5060
|
+
}, Rc = {
|
|
5034
5061
|
key: 1,
|
|
5035
5062
|
class: "files-grid"
|
|
5036
|
-
},
|
|
5063
|
+
}, qc = {
|
|
5037
5064
|
key: 6,
|
|
5038
5065
|
class: "content-medialib"
|
|
5039
|
-
},
|
|
5066
|
+
}, $c = /* @__PURE__ */ _u({
|
|
5040
5067
|
__name: "MessageContentRenderer",
|
|
5041
5068
|
props: {
|
|
5042
5069
|
content: {},
|
|
5043
5070
|
role: {},
|
|
5044
5071
|
showActions: { type: Boolean },
|
|
5045
|
-
allowRegenerate: { type: Boolean }
|
|
5072
|
+
allowRegenerate: { type: Boolean },
|
|
5073
|
+
allowShareMedialibHtml: { type: Boolean }
|
|
5046
5074
|
},
|
|
5047
5075
|
emits: ["copy", "regenerate", "delete"],
|
|
5048
5076
|
setup(u, { emit: e }) {
|
|
@@ -5055,7 +5083,7 @@ const yc = ["src", "alt"], Cc = /* @__PURE__ */ gu({
|
|
|
5055
5083
|
function s(B) {
|
|
5056
5084
|
return !("type" in B);
|
|
5057
5085
|
}
|
|
5058
|
-
const l = new
|
|
5086
|
+
const l = new nu({
|
|
5059
5087
|
html: !0,
|
|
5060
5088
|
linkify: !0,
|
|
5061
5089
|
typographer: !0,
|
|
@@ -5065,11 +5093,11 @@ const yc = ["src", "alt"], Cc = /* @__PURE__ */ gu({
|
|
|
5065
5093
|
const S = B[x];
|
|
5066
5094
|
if (!S)
|
|
5067
5095
|
return f(B, x, b, F, I);
|
|
5068
|
-
const R = S.attrs ?? (S.attrs = []),
|
|
5069
|
-
if (
|
|
5096
|
+
const R = S.attrs ?? (S.attrs = []), V = S.attrIndex("target");
|
|
5097
|
+
if (V < 0)
|
|
5070
5098
|
R.push(["target", "_blank"]);
|
|
5071
5099
|
else {
|
|
5072
|
-
const W = R[
|
|
5100
|
+
const W = R[V];
|
|
5073
5101
|
W && (W[1] = "_blank");
|
|
5074
5102
|
}
|
|
5075
5103
|
const K = S.attrIndex("rel");
|
|
@@ -5078,7 +5106,7 @@ const yc = ["src", "alt"], Cc = /* @__PURE__ */ gu({
|
|
|
5078
5106
|
else {
|
|
5079
5107
|
const W = R[K];
|
|
5080
5108
|
if (W) {
|
|
5081
|
-
const
|
|
5109
|
+
const P = W[1] || "", G = new Set(P.split(/\s+/).filter(Boolean));
|
|
5082
5110
|
G.add("noopener"), G.add("noreferrer"), W[1] = Array.from(G).join(" ");
|
|
5083
5111
|
}
|
|
5084
5112
|
}
|
|
@@ -5088,7 +5116,7 @@ const yc = ["src", "alt"], Cc = /* @__PURE__ */ gu({
|
|
|
5088
5116
|
function p(B) {
|
|
5089
5117
|
return B ? l.renderInline(B) : "";
|
|
5090
5118
|
}
|
|
5091
|
-
const d =
|
|
5119
|
+
const d = vu(!1), C = vu("");
|
|
5092
5120
|
function k() {
|
|
5093
5121
|
const B = a.value;
|
|
5094
5122
|
if (s(B)) {
|
|
@@ -5117,7 +5145,7 @@ const yc = ["src", "alt"], Cc = /* @__PURE__ */ gu({
|
|
|
5117
5145
|
n("delete");
|
|
5118
5146
|
}
|
|
5119
5147
|
function y() {
|
|
5120
|
-
s(a.value) || (a.value.type === "image" ? (C.value = a.value.content, d.value = !0) : a.value.type === "medialib" &&
|
|
5148
|
+
s(a.value) || (a.value.type === "image" ? (C.value = a.value.content, d.value = !0) : a.value.type === "medialib" && H.value === "image" && (C.value = O.value, d.value = !0));
|
|
5121
5149
|
}
|
|
5122
5150
|
function m(B) {
|
|
5123
5151
|
C.value = B, d.value = !0;
|
|
@@ -5144,7 +5172,7 @@ const yc = ["src", "alt"], Cc = /* @__PURE__ */ gu({
|
|
|
5144
5172
|
return null;
|
|
5145
5173
|
}
|
|
5146
5174
|
return null;
|
|
5147
|
-
}), O = J(() => T.value?.file_url || ""),
|
|
5175
|
+
}), O = J(() => T.value?.file_url || ""), M = J(() => T.value?.file_url?.toLowerCase().endsWith(".html") ?? !1), q = J(() => T.value?.file_name || _(O.value)), H = J(() => {
|
|
5148
5176
|
if (!O.value)
|
|
5149
5177
|
return "json";
|
|
5150
5178
|
const B = O.value.toLowerCase();
|
|
@@ -5153,74 +5181,74 @@ const yc = ["src", "alt"], Cc = /* @__PURE__ */ gu({
|
|
|
5153
5181
|
function z() {
|
|
5154
5182
|
O.value && window.open(O.value, "_blank");
|
|
5155
5183
|
}
|
|
5156
|
-
return (B, x) => (L(),
|
|
5184
|
+
return (B, x) => (L(), $("div", {
|
|
5157
5185
|
class: Nu(["message-content-renderer", r.value])
|
|
5158
5186
|
}, [
|
|
5159
|
-
c.value ? (L(),
|
|
5187
|
+
c.value ? (L(), $("div", {
|
|
5160
5188
|
key: 0,
|
|
5161
5189
|
class: Nu(["renderer-actions", o.value])
|
|
5162
5190
|
}, [
|
|
5163
|
-
w.value ? (L(),
|
|
5191
|
+
w.value ? (L(), $("button", {
|
|
5164
5192
|
key: 0,
|
|
5165
5193
|
type: "button",
|
|
5166
5194
|
class: "renderer-action-btn",
|
|
5167
5195
|
onClick: v
|
|
5168
5196
|
}, [
|
|
5169
|
-
|
|
5170
|
-
x[1] || (x[1] =
|
|
5171
|
-
])) :
|
|
5172
|
-
|
|
5197
|
+
au(eu(mu), { icon: "mdi:content-copy" }),
|
|
5198
|
+
x[1] || (x[1] = tu("span", null, "复制", -1))
|
|
5199
|
+
])) : iu("", !0),
|
|
5200
|
+
M.value ? (L(), $("button", {
|
|
5173
5201
|
key: 1,
|
|
5174
5202
|
type: "button",
|
|
5175
5203
|
class: "renderer-action-btn",
|
|
5176
5204
|
onClick: z
|
|
5177
5205
|
}, [
|
|
5178
|
-
|
|
5179
|
-
x[2] || (x[2] =
|
|
5180
|
-
])) :
|
|
5181
|
-
i.value ? (L(),
|
|
5206
|
+
au(eu(mu), { icon: "mdi:share-outline" }),
|
|
5207
|
+
x[2] || (x[2] = tu("span", null, "打开网页", -1))
|
|
5208
|
+
])) : iu("", !0),
|
|
5209
|
+
i.value ? (L(), $("button", {
|
|
5182
5210
|
key: 2,
|
|
5183
5211
|
type: "button",
|
|
5184
5212
|
class: "renderer-action-btn",
|
|
5185
5213
|
onClick: E
|
|
5186
5214
|
}, [
|
|
5187
|
-
|
|
5188
|
-
x[3] || (x[3] =
|
|
5189
|
-
])) :
|
|
5190
|
-
|
|
5215
|
+
au(eu(mu), { icon: "mdi:refresh" }),
|
|
5216
|
+
x[3] || (x[3] = tu("span", null, "重新生成", -1))
|
|
5217
|
+
])) : iu("", !0),
|
|
5218
|
+
tu("button", {
|
|
5191
5219
|
type: "button",
|
|
5192
5220
|
class: "renderer-action-btn danger",
|
|
5193
5221
|
onClick: h
|
|
5194
5222
|
}, [
|
|
5195
|
-
|
|
5196
|
-
x[4] || (x[4] =
|
|
5223
|
+
au(eu(mu), { icon: "mdi:delete-outline" }),
|
|
5224
|
+
x[4] || (x[4] = tu("span", null, "删除", -1))
|
|
5197
5225
|
])
|
|
5198
|
-
], 2)) :
|
|
5226
|
+
], 2)) : iu("", !0),
|
|
5199
5227
|
!s(a.value) && a.value.type === "text" ? (L(), Q(Tt, {
|
|
5200
5228
|
key: 1,
|
|
5201
5229
|
html: g.value,
|
|
5202
5230
|
role: u.role
|
|
5203
|
-
}, null, 8, ["html", "role"])) : s(a.value) ? (L(),
|
|
5204
|
-
a.value.texts && a.value.texts.length > 0 ? (L(!0),
|
|
5231
|
+
}, null, 8, ["html", "role"])) : s(a.value) ? (L(), $("div", zc, [
|
|
5232
|
+
a.value.texts && a.value.texts.length > 0 ? (L(!0), $(He, { key: 0 }, Ue(a.value.texts, (b, F) => (L(), Q(Tt, {
|
|
5205
5233
|
key: `text-${F}`,
|
|
5206
5234
|
html: p(String(b ?? "")),
|
|
5207
5235
|
role: u.role,
|
|
5208
5236
|
plain: ""
|
|
5209
|
-
}, null, 8, ["html", "role"]))), 128)) :
|
|
5210
|
-
a.value.files && a.value.files.length > 0 ? (L(),
|
|
5211
|
-
(L(!0),
|
|
5237
|
+
}, null, 8, ["html", "role"]))), 128)) : iu("", !0),
|
|
5238
|
+
a.value.files && a.value.files.length > 0 ? (L(), $("div", Rc, [
|
|
5239
|
+
(L(!0), $(He, null, Ue(a.value.files, (b, F) => (L(), $("div", {
|
|
5212
5240
|
key: `file-${F}`
|
|
5213
5241
|
}, [
|
|
5214
|
-
|
|
5242
|
+
eu(Hu)(b) === "image" ? (L(), Q(xe, {
|
|
5215
5243
|
key: 0,
|
|
5216
5244
|
src: b,
|
|
5217
5245
|
"full-width": !0,
|
|
5218
5246
|
onClick: (I) => m(b)
|
|
5219
|
-
}, null, 8, ["src", "onClick"])) :
|
|
5247
|
+
}, null, 8, ["src", "onClick"])) : eu(Hu)(b) === "video" ? (L(), Q(It, {
|
|
5220
5248
|
key: 1,
|
|
5221
5249
|
src: b,
|
|
5222
5250
|
"full-width": !0
|
|
5223
|
-
}, null, 8, ["src"])) :
|
|
5251
|
+
}, null, 8, ["src"])) : eu(Hu)(b) === "audio" ? (L(), Q(ge, {
|
|
5224
5252
|
key: 2,
|
|
5225
5253
|
src: b
|
|
5226
5254
|
}, null, 8, ["src"])) : (L(), Q(me, {
|
|
@@ -5230,7 +5258,7 @@ const yc = ["src", "alt"], Cc = /* @__PURE__ */ gu({
|
|
|
5230
5258
|
onClick: (I) => N(b)
|
|
5231
5259
|
}, null, 8, ["name", "url", "onClick"]))
|
|
5232
5260
|
]))), 128))
|
|
5233
|
-
])) :
|
|
5261
|
+
])) : iu("", !0)
|
|
5234
5262
|
])) : !s(a.value) && a.value.type === "file" ? (L(), Q(me, {
|
|
5235
5263
|
key: 3,
|
|
5236
5264
|
name: _(a.value.content),
|
|
@@ -5243,45 +5271,46 @@ const yc = ["src", "alt"], Cc = /* @__PURE__ */ gu({
|
|
|
5243
5271
|
}, null, 8, ["src"])) : !s(a.value) && a.value.type === "voice" ? (L(), Q(ge, {
|
|
5244
5272
|
key: 5,
|
|
5245
5273
|
src: a.value.content
|
|
5246
|
-
}, null, 8, ["src"])) : !s(a.value) && a.value.type === "medialib" ? (L(),
|
|
5247
|
-
|
|
5274
|
+
}, null, 8, ["src"])) : !s(a.value) && a.value.type === "medialib" ? (L(), $("div", qc, [
|
|
5275
|
+
H.value === "video" ? (L(), Q(It, {
|
|
5248
5276
|
key: 0,
|
|
5249
5277
|
src: O.value,
|
|
5250
5278
|
"full-width": !0
|
|
5251
|
-
}, null, 8, ["src"])) :
|
|
5279
|
+
}, null, 8, ["src"])) : H.value === "image" ? (L(), Q(xe, {
|
|
5252
5280
|
key: 1,
|
|
5253
5281
|
src: O.value,
|
|
5254
5282
|
onClick: y
|
|
5255
|
-
}, null, 8, ["src"])) :
|
|
5283
|
+
}, null, 8, ["src"])) : H.value === "audio" ? (L(), Q(ge, {
|
|
5256
5284
|
key: 2,
|
|
5257
5285
|
src: O.value
|
|
5258
|
-
}, null, 8, ["src"])) :
|
|
5286
|
+
}, null, 8, ["src"])) : H.value === "file" ? (L(), Q(me, {
|
|
5259
5287
|
key: 3,
|
|
5260
5288
|
name: q.value,
|
|
5261
5289
|
url: O.value,
|
|
5290
|
+
"allow-share-medialib-html": u.allowShareMedialibHtml,
|
|
5262
5291
|
onClick: z
|
|
5263
|
-
}, null, 8, ["name", "url"])) : (L(), Q(
|
|
5292
|
+
}, null, 8, ["name", "url", "allow-share-medialib-html"])) : (L(), Q(eu(Cc), {
|
|
5264
5293
|
key: 4,
|
|
5265
5294
|
data: T.value,
|
|
5266
5295
|
deep: 3,
|
|
5267
5296
|
class: "json-viewer"
|
|
5268
5297
|
}, null, 8, ["data"]))
|
|
5269
|
-
])) :
|
|
5270
|
-
|
|
5298
|
+
])) : iu("", !0),
|
|
5299
|
+
au(Ec, {
|
|
5271
5300
|
show: d.value,
|
|
5272
5301
|
"image-url": C.value,
|
|
5273
5302
|
onClose: x[0] || (x[0] = (b) => d.value = !1)
|
|
5274
5303
|
}, null, 8, ["show", "image-url"])
|
|
5275
5304
|
], 2));
|
|
5276
5305
|
}
|
|
5277
|
-
}),
|
|
5306
|
+
}), Hc = /* @__PURE__ */ yu($c, [["__scopeId", "data-v-32577d70"]]);
|
|
5278
5307
|
function Hu(u) {
|
|
5279
5308
|
if (!u) return "file";
|
|
5280
5309
|
const e = u.toLowerCase();
|
|
5281
5310
|
return e.match(/\.(mp4|webm|ogg|mov|avi|wmv|flv|mkv)$/) ? "video" : e.match(/\.(jpg|jpeg|png|gif|bmp|webp|svg)$/) ? "image" : e.match(/\.(mp3|wav|ogg|aac|flac|m4a)$/) ? "audio" : "file";
|
|
5282
5311
|
}
|
|
5283
5312
|
export {
|
|
5284
|
-
|
|
5285
|
-
|
|
5313
|
+
Ec as ImageViewer,
|
|
5314
|
+
Hc as MessageContentRenderer,
|
|
5286
5315
|
Hu as getFileTypeFromUrl
|
|
5287
5316
|
};
|