@gnai/message-content-renderer 0.0.2 → 0.0.3
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,5 +1,5 @@
|
|
|
1
1
|
import * as iu from "vue";
|
|
2
|
-
import { defineComponent as ye, ref as Au, shallowRef as d0, onMounted as h0, watch as p0, onUnmounted as b0, h as Be, nextTick as m0, createBlock as vt, openBlock as P, Teleport as x0, createVNode as su, Transition as g0, withCtx as _0, createElementBlock as z, createCommentVNode as Dt, createElementVNode as lu, withModifiers as Pe, unref as au, computed as
|
|
2
|
+
import { defineComponent as ye, ref as Au, shallowRef as d0, onMounted as h0, watch as p0, onUnmounted as b0, h as Be, nextTick as m0, createBlock as vt, openBlock as P, Teleport as x0, createVNode as su, Transition as g0, withCtx as _0, createElementBlock as z, createCommentVNode as Dt, createElementVNode as lu, withModifiers as Pe, unref as au, computed as xu, Fragment as Me, renderList as je, toDisplayString as ue } from "vue";
|
|
3
3
|
const Et = /^[a-z0-9]+(-[a-z0-9]+)*$/, Gu = (u, e, t, n = "") => {
|
|
4
4
|
const r = u.split(":");
|
|
5
5
|
if (u.slice(0, 1) === "@") {
|
|
@@ -165,7 +165,7 @@ function D0(u, e) {
|
|
|
165
165
|
missing: /* @__PURE__ */ new Set()
|
|
166
166
|
};
|
|
167
167
|
}
|
|
168
|
-
function
|
|
168
|
+
function ku(u, e) {
|
|
169
169
|
const t = Re[u] || (Re[u] = /* @__PURE__ */ Object.create(null));
|
|
170
170
|
return t[e] || (t[e] = D0(u, e));
|
|
171
171
|
}
|
|
@@ -189,7 +189,7 @@ function Tt(u) {
|
|
|
189
189
|
function F0(u) {
|
|
190
190
|
const e = typeof u == "string" ? Gu(u, !0, wu) : u;
|
|
191
191
|
if (e) {
|
|
192
|
-
const t =
|
|
192
|
+
const t = ku(e.provider, e.prefix), n = e.name;
|
|
193
193
|
return t.icons[n] || (t.missing.has(n) ? null : void 0);
|
|
194
194
|
}
|
|
195
195
|
}
|
|
@@ -197,7 +197,7 @@ function A0(u, e) {
|
|
|
197
197
|
const t = Gu(u, !0, wu);
|
|
198
198
|
if (!t)
|
|
199
199
|
return !1;
|
|
200
|
-
const n =
|
|
200
|
+
const n = ku(t.provider, t.prefix);
|
|
201
201
|
return e ? E0(n, t.name, e) : (n.missing.add(t.name), !0);
|
|
202
202
|
}
|
|
203
203
|
function w0(u, e) {
|
|
@@ -215,7 +215,7 @@ function w0(u, e) {
|
|
|
215
215
|
name: "a"
|
|
216
216
|
}))
|
|
217
217
|
return !1;
|
|
218
|
-
const n =
|
|
218
|
+
const n = ku(e, t);
|
|
219
219
|
return !!St(n, u);
|
|
220
220
|
}
|
|
221
221
|
const It = Object.freeze({
|
|
@@ -289,45 +289,45 @@ function B0(u, e) {
|
|
|
289
289
|
height: t.height
|
|
290
290
|
};
|
|
291
291
|
let o = t.body;
|
|
292
|
-
[t, n].forEach((
|
|
293
|
-
const
|
|
294
|
-
let
|
|
295
|
-
|
|
292
|
+
[t, n].forEach((v) => {
|
|
293
|
+
const k = [], F = v.hFlip, D = v.vFlip;
|
|
294
|
+
let C = v.rotate;
|
|
295
|
+
F ? D ? C += 2 : (k.push(
|
|
296
296
|
"translate(" + (r.width + r.left).toString() + " " + (0 - r.top).toString() + ")"
|
|
297
|
-
),
|
|
297
|
+
), k.push("scale(-1 1)"), r.top = r.left = 0) : D && (k.push(
|
|
298
298
|
"translate(" + (0 - r.left).toString() + " " + (r.height + r.top).toString() + ")"
|
|
299
|
-
),
|
|
300
|
-
let
|
|
301
|
-
switch (
|
|
299
|
+
), k.push("scale(1 -1)"), r.top = r.left = 0);
|
|
300
|
+
let p;
|
|
301
|
+
switch (C < 0 && (C -= Math.floor(C / 4) * 4), C = C % 4, C) {
|
|
302
302
|
case 1:
|
|
303
|
-
|
|
304
|
-
"rotate(90 " +
|
|
303
|
+
p = r.height / 2 + r.top, k.unshift(
|
|
304
|
+
"rotate(90 " + p.toString() + " " + p.toString() + ")"
|
|
305
305
|
);
|
|
306
306
|
break;
|
|
307
307
|
case 2:
|
|
308
|
-
|
|
308
|
+
k.unshift(
|
|
309
309
|
"rotate(180 " + (r.width / 2 + r.left).toString() + " " + (r.height / 2 + r.top).toString() + ")"
|
|
310
310
|
);
|
|
311
311
|
break;
|
|
312
312
|
case 3:
|
|
313
|
-
|
|
314
|
-
"rotate(-90 " +
|
|
313
|
+
p = r.width / 2 + r.left, k.unshift(
|
|
314
|
+
"rotate(-90 " + p.toString() + " " + p.toString() + ")"
|
|
315
315
|
);
|
|
316
316
|
break;
|
|
317
317
|
}
|
|
318
|
-
|
|
318
|
+
C % 2 === 1 && (r.left !== r.top && (p = r.left, r.left = r.top, r.top = p), r.width !== r.height && (p = r.width, r.width = r.height, r.height = p)), k.length && (o = L0(
|
|
319
319
|
o,
|
|
320
|
-
'<g transform="' +
|
|
320
|
+
'<g transform="' + k.join(" ") + '">',
|
|
321
321
|
"</g>"
|
|
322
322
|
));
|
|
323
323
|
});
|
|
324
324
|
const c = n.width, i = n.height, a = r.width, s = r.height;
|
|
325
325
|
let l, f;
|
|
326
326
|
c === null ? (f = i === null ? "1em" : i === "auto" ? s : i, l = qe(f, a / s)) : (l = c === "auto" ? a : c, f = i === null ? qe(l, s / a) : i === "auto" ? s : i);
|
|
327
|
-
const m = {},
|
|
328
|
-
O0(
|
|
327
|
+
const m = {}, b = (v, k) => {
|
|
328
|
+
O0(k) || (m[v] = k.toString());
|
|
329
329
|
};
|
|
330
|
-
|
|
330
|
+
b("width", l), b("height", f);
|
|
331
331
|
const d = [r.left, r.top, a, s];
|
|
332
332
|
return m.viewBox = d.join(" "), {
|
|
333
333
|
attributes: m,
|
|
@@ -523,7 +523,7 @@ function Q0(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] = ku(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 = {
|
|
@@ -612,52 +612,52 @@ function en(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) {
|
|
615
|
-
let
|
|
616
|
-
for (c = [];
|
|
617
|
-
const
|
|
618
|
-
c.push(
|
|
615
|
+
let h = u.resources.slice(0);
|
|
616
|
+
for (c = []; h.length > 1; ) {
|
|
617
|
+
const g = Math.floor(Math.random() * h.length);
|
|
618
|
+
c.push(h[g]), h = h.slice(0, g).concat(h.slice(g + 1));
|
|
619
619
|
}
|
|
620
|
-
c = c.concat(
|
|
620
|
+
c = c.concat(h);
|
|
621
621
|
} else
|
|
622
622
|
c = u.resources.slice(o).concat(u.resources.slice(0, o));
|
|
623
623
|
const i = Date.now();
|
|
624
|
-
let a = "pending", s = 0, l, f = null, m = [],
|
|
625
|
-
typeof n == "function" &&
|
|
624
|
+
let a = "pending", s = 0, l, f = null, m = [], b = [];
|
|
625
|
+
typeof n == "function" && b.push(n);
|
|
626
626
|
function d() {
|
|
627
627
|
f && (clearTimeout(f), f = null);
|
|
628
628
|
}
|
|
629
|
-
function
|
|
630
|
-
a === "pending" && (a = "aborted"), d(), m.forEach((
|
|
631
|
-
|
|
629
|
+
function v() {
|
|
630
|
+
a === "pending" && (a = "aborted"), d(), m.forEach((h) => {
|
|
631
|
+
h.status === "pending" && (h.status = "aborted");
|
|
632
632
|
}), m = [];
|
|
633
633
|
}
|
|
634
|
-
function
|
|
635
|
-
|
|
634
|
+
function k(h, g) {
|
|
635
|
+
g && (b = []), typeof h == "function" && b.push(h);
|
|
636
636
|
}
|
|
637
|
-
function
|
|
637
|
+
function F() {
|
|
638
638
|
return {
|
|
639
639
|
startTime: i,
|
|
640
640
|
payload: e,
|
|
641
641
|
status: a,
|
|
642
642
|
queriesSent: s,
|
|
643
643
|
queriesPending: m.length,
|
|
644
|
-
subscribe:
|
|
645
|
-
abort:
|
|
644
|
+
subscribe: k,
|
|
645
|
+
abort: v
|
|
646
646
|
};
|
|
647
647
|
}
|
|
648
|
-
function
|
|
649
|
-
a = "failed",
|
|
650
|
-
|
|
648
|
+
function D() {
|
|
649
|
+
a = "failed", b.forEach((h) => {
|
|
650
|
+
h(void 0, l);
|
|
651
651
|
});
|
|
652
652
|
}
|
|
653
|
-
function
|
|
654
|
-
m.forEach((
|
|
655
|
-
|
|
653
|
+
function C() {
|
|
654
|
+
m.forEach((h) => {
|
|
655
|
+
h.status === "pending" && (h.status = "aborted");
|
|
656
656
|
}), m = [];
|
|
657
657
|
}
|
|
658
|
-
function h
|
|
659
|
-
const I =
|
|
660
|
-
switch (m = m.filter((T) => T !==
|
|
658
|
+
function p(h, g, E) {
|
|
659
|
+
const I = g !== "success";
|
|
660
|
+
switch (m = m.filter((T) => T !== h), a) {
|
|
661
661
|
case "pending":
|
|
662
662
|
break;
|
|
663
663
|
case "failed":
|
|
@@ -667,47 +667,47 @@ function en(u, e, t, n) {
|
|
|
667
667
|
default:
|
|
668
668
|
return;
|
|
669
669
|
}
|
|
670
|
-
if (
|
|
671
|
-
l =
|
|
670
|
+
if (g === "abort") {
|
|
671
|
+
l = E, D();
|
|
672
672
|
return;
|
|
673
673
|
}
|
|
674
674
|
if (I) {
|
|
675
|
-
l =
|
|
675
|
+
l = E, m.length || (c.length ? x() : D());
|
|
676
676
|
return;
|
|
677
677
|
}
|
|
678
|
-
if (d(),
|
|
679
|
-
const T = u.resources.indexOf(
|
|
678
|
+
if (d(), C(), !u.random) {
|
|
679
|
+
const T = u.resources.indexOf(h.resource);
|
|
680
680
|
T !== -1 && T !== u.index && (u.index = T);
|
|
681
681
|
}
|
|
682
|
-
a = "completed",
|
|
683
|
-
T(
|
|
682
|
+
a = "completed", b.forEach((T) => {
|
|
683
|
+
T(E);
|
|
684
684
|
});
|
|
685
685
|
}
|
|
686
|
-
function
|
|
686
|
+
function x() {
|
|
687
687
|
if (a !== "pending")
|
|
688
688
|
return;
|
|
689
689
|
d();
|
|
690
|
-
const
|
|
691
|
-
if (
|
|
690
|
+
const h = c.shift();
|
|
691
|
+
if (h === void 0) {
|
|
692
692
|
if (m.length) {
|
|
693
693
|
f = setTimeout(() => {
|
|
694
|
-
d(), a === "pending" && (
|
|
694
|
+
d(), a === "pending" && (C(), D());
|
|
695
695
|
}, u.timeout);
|
|
696
696
|
return;
|
|
697
697
|
}
|
|
698
|
-
|
|
698
|
+
D();
|
|
699
699
|
return;
|
|
700
700
|
}
|
|
701
|
-
const
|
|
701
|
+
const g = {
|
|
702
702
|
status: "pending",
|
|
703
|
-
resource:
|
|
704
|
-
callback: (
|
|
705
|
-
|
|
703
|
+
resource: h,
|
|
704
|
+
callback: (E, I) => {
|
|
705
|
+
p(g, E, I);
|
|
706
706
|
}
|
|
707
707
|
};
|
|
708
|
-
m.push(
|
|
708
|
+
m.push(g), s++, f = setTimeout(x, u.rotate), t(h, e, g.callback);
|
|
709
709
|
}
|
|
710
|
-
return setTimeout(
|
|
710
|
+
return setTimeout(x), F;
|
|
711
711
|
}
|
|
712
712
|
function Ot(u) {
|
|
713
713
|
const e = {
|
|
@@ -838,13 +838,13 @@ function cn(u, e) {
|
|
|
838
838
|
r.forEach((l) => {
|
|
839
839
|
const f = o(l, n, t);
|
|
840
840
|
Ue(f, (m) => {
|
|
841
|
-
const
|
|
841
|
+
const b = m ? {
|
|
842
842
|
prefix: n,
|
|
843
843
|
icons: {
|
|
844
844
|
[l]: m
|
|
845
845
|
}
|
|
846
846
|
} : null;
|
|
847
|
-
Fu(u, [l],
|
|
847
|
+
Fu(u, [l], b);
|
|
848
848
|
});
|
|
849
849
|
});
|
|
850
850
|
return;
|
|
@@ -885,12 +885,12 @@ const an = (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(ku(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, m =
|
|
893
|
-
|
|
892
|
+
const { provider: s, prefix: l, name: f } = a, m = ku(s, l), b = m.pendingIcons || (m.pendingIcons = /* @__PURE__ */ new Set());
|
|
893
|
+
b.has(f) || (b.add(f), r[s][l].push(f));
|
|
894
894
|
}), o.forEach((a) => {
|
|
895
895
|
const s = r[a.provider][a.prefix];
|
|
896
896
|
s.length && cn(a, s);
|
|
@@ -998,10 +998,10 @@ function Qe(u) {
|
|
|
998
998
|
}
|
|
999
999
|
const Je = (u, e) => {
|
|
1000
1000
|
const t = sn(Ze, e), n = { ...xn }, r = e.mode || "svg", o = {}, c = e.style, i = typeof c == "object" && !(c instanceof Array) ? c : {};
|
|
1001
|
-
for (let
|
|
1002
|
-
const
|
|
1003
|
-
if (
|
|
1004
|
-
switch (
|
|
1001
|
+
for (let v in e) {
|
|
1002
|
+
const k = e[v];
|
|
1003
|
+
if (k !== void 0)
|
|
1004
|
+
switch (v) {
|
|
1005
1005
|
// Properties to ignore
|
|
1006
1006
|
case "icon":
|
|
1007
1007
|
case "style":
|
|
@@ -1013,28 +1013,28 @@ const Je = (u, e) => {
|
|
|
1013
1013
|
case "inline":
|
|
1014
1014
|
case "hFlip":
|
|
1015
1015
|
case "vFlip":
|
|
1016
|
-
t[
|
|
1016
|
+
t[v] = k === !0 || k === "true" || k === 1;
|
|
1017
1017
|
break;
|
|
1018
1018
|
// Flip as string: 'horizontal,vertical'
|
|
1019
1019
|
case "flip":
|
|
1020
|
-
typeof
|
|
1020
|
+
typeof k == "string" && fn(t, k);
|
|
1021
1021
|
break;
|
|
1022
1022
|
// Color: override style
|
|
1023
1023
|
case "color":
|
|
1024
|
-
o.color =
|
|
1024
|
+
o.color = k;
|
|
1025
1025
|
break;
|
|
1026
1026
|
// Rotation as string
|
|
1027
1027
|
case "rotate":
|
|
1028
|
-
typeof
|
|
1028
|
+
typeof k == "string" ? t[v] = dn(k) : typeof k == "number" && (t[v] = k);
|
|
1029
1029
|
break;
|
|
1030
1030
|
// Remove aria-hidden
|
|
1031
1031
|
case "ariaHidden":
|
|
1032
1032
|
case "aria-hidden":
|
|
1033
|
-
|
|
1033
|
+
k !== !0 && k !== "true" && delete n["aria-hidden"];
|
|
1034
1034
|
break;
|
|
1035
1035
|
default: {
|
|
1036
|
-
const
|
|
1037
|
-
|
|
1036
|
+
const F = qu[v];
|
|
1037
|
+
F ? (k === !0 || k === "true" || k === 1) && (t[F] = !0) : Ze[v] === void 0 && (n[v] = k);
|
|
1038
1038
|
}
|
|
1039
1039
|
}
|
|
1040
1040
|
}
|
|
@@ -1044,10 +1044,10 @@ const Je = (u, e) => {
|
|
|
1044
1044
|
...o,
|
|
1045
1045
|
...i
|
|
1046
1046
|
}, Object.assign(n, s);
|
|
1047
|
-
let
|
|
1048
|
-
return typeof
|
|
1047
|
+
let v = 0, k = e.id;
|
|
1048
|
+
return typeof k == "string" && (k = k.replace(/-/g, "_")), n.innerHTML = z0(a.body, k ? () => k + "ID" + v++ : "iconifyVue"), Be("svg", n);
|
|
1049
1049
|
}
|
|
1050
|
-
const { body: l, width: f, height: m } = u,
|
|
1050
|
+
const { body: l, width: f, height: m } = u, b = r === "mask" || (r === "bg" ? !1 : l.indexOf("currentColor") !== -1), d = hn(l, {
|
|
1051
1051
|
...s,
|
|
1052
1052
|
width: f + "",
|
|
1053
1053
|
height: m + ""
|
|
@@ -1058,7 +1058,7 @@ const Je = (u, e) => {
|
|
|
1058
1058
|
width: Qe(s.width),
|
|
1059
1059
|
height: Qe(s.height),
|
|
1060
1060
|
...gn,
|
|
1061
|
-
...
|
|
1061
|
+
...b ? pe : Bt,
|
|
1062
1062
|
...i
|
|
1063
1063
|
}, Be("span", n);
|
|
1064
1064
|
};
|
|
@@ -1132,8 +1132,8 @@ const _n = {
|
|
|
1132
1132
|
const d = m(f.body, l.name, l.prefix, l.provider);
|
|
1133
1133
|
typeof d == "string" && (f.body = d);
|
|
1134
1134
|
}
|
|
1135
|
-
const
|
|
1136
|
-
return l.prefix !== "" &&
|
|
1135
|
+
const b = ["iconify"];
|
|
1136
|
+
return l.prefix !== "" && b.push("iconify--" + l.prefix), l.provider !== "" && b.push("iconify--" + l.provider), { data: f, classes: b };
|
|
1137
1137
|
}
|
|
1138
1138
|
function a() {
|
|
1139
1139
|
const s = i();
|
|
@@ -1196,8 +1196,8 @@ function kn(u) {
|
|
|
1196
1196
|
}
|
|
1197
1197
|
return e;
|
|
1198
1198
|
}
|
|
1199
|
-
function
|
|
1200
|
-
typeof e != "string" && (e =
|
|
1199
|
+
function yu(u, e) {
|
|
1200
|
+
typeof e != "string" && (e = yu.defaultChars);
|
|
1201
1201
|
const t = kn(e);
|
|
1202
1202
|
return u.replace(/(%[a-f0-9]{2})+/gi, function(n) {
|
|
1203
1203
|
let r = "";
|
|
@@ -1236,8 +1236,8 @@ function ku(u, e) {
|
|
|
1236
1236
|
return r;
|
|
1237
1237
|
});
|
|
1238
1238
|
}
|
|
1239
|
-
|
|
1240
|
-
|
|
1239
|
+
yu.defaultChars = ";/?:@&=+$,#";
|
|
1240
|
+
yu.componentChars = "";
|
|
1241
1241
|
const Ye = {};
|
|
1242
1242
|
function yn(u) {
|
|
1243
1243
|
let e = Ye[u];
|
|
@@ -1330,24 +1330,24 @@ $u.prototype.parse = function(u, e) {
|
|
|
1330
1330
|
s === -1 && (s = o.length), o[s - 1] === ":" && s--;
|
|
1331
1331
|
const m = o.slice(0, s);
|
|
1332
1332
|
o = o.slice(s), this.parseHost(m), this.hostname = this.hostname || "";
|
|
1333
|
-
const
|
|
1334
|
-
if (!
|
|
1333
|
+
const b = this.hostname[0] === "[" && this.hostname[this.hostname.length - 1] === "]";
|
|
1334
|
+
if (!b) {
|
|
1335
1335
|
const d = this.hostname.split(/\./);
|
|
1336
|
-
for (let
|
|
1337
|
-
const
|
|
1338
|
-
if (
|
|
1339
|
-
let
|
|
1340
|
-
for (let
|
|
1341
|
-
|
|
1342
|
-
if (!
|
|
1343
|
-
const
|
|
1344
|
-
|
|
1336
|
+
for (let v = 0, k = d.length; v < k; v++) {
|
|
1337
|
+
const F = d[v];
|
|
1338
|
+
if (F && !F.match(et)) {
|
|
1339
|
+
let D = "";
|
|
1340
|
+
for (let C = 0, p = F.length; C < p; C++)
|
|
1341
|
+
F.charCodeAt(C) > 127 ? D += "x" : D += F[C];
|
|
1342
|
+
if (!D.match(et)) {
|
|
1343
|
+
const C = d.slice(0, v), p = d.slice(v + 1), x = F.match(Sn);
|
|
1344
|
+
x && (C.push(x[1]), p.unshift(x[2])), p.length && (o = p.join(".") + o), this.hostname = C.join(".");
|
|
1345
1345
|
break;
|
|
1346
1346
|
}
|
|
1347
1347
|
}
|
|
1348
1348
|
}
|
|
1349
1349
|
}
|
|
1350
|
-
this.hostname.length > wn && (this.hostname = ""),
|
|
1350
|
+
this.hostname.length > wn && (this.hostname = ""), b && (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));
|
|
@@ -1360,7 +1360,7 @@ $u.prototype.parseHost = function(u) {
|
|
|
1360
1360
|
};
|
|
1361
1361
|
const Tn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1362
1362
|
__proto__: null,
|
|
1363
|
-
decode:
|
|
1363
|
+
decode: yu,
|
|
1364
1364
|
encode: Ou,
|
|
1365
1365
|
format: Ee,
|
|
1366
1366
|
parse: Fe
|
|
@@ -1732,7 +1732,7 @@ function Kn(u, e) {
|
|
|
1732
1732
|
function Yn(u) {
|
|
1733
1733
|
return u.indexOf("\\") < 0 ? u : u.replace($t, "$1");
|
|
1734
1734
|
}
|
|
1735
|
-
function
|
|
1735
|
+
function Cu(u) {
|
|
1736
1736
|
return u.indexOf("\\") < 0 && u.indexOf("&") < 0 ? u : u.replace(Qn, function(e, t, n) {
|
|
1737
1737
|
return t || Kn(e, n);
|
|
1738
1738
|
});
|
|
@@ -1846,7 +1846,7 @@ const or = { mdurl: Tn, ucmicro: Nn }, cr = /* @__PURE__ */ Object.freeze(/* @__
|
|
|
1846
1846
|
isWhiteSpace: Su,
|
|
1847
1847
|
lib: or,
|
|
1848
1848
|
normalizeReference: Ju,
|
|
1849
|
-
unescapeAll:
|
|
1849
|
+
unescapeAll: Cu,
|
|
1850
1850
|
unescapeMd: Yn
|
|
1851
1851
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
1852
1852
|
function ir(u, e, t) {
|
|
@@ -1879,7 +1879,7 @@ function ar(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 = Cu(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,7 +1905,7 @@ function ar(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 = Cu(u.slice(e, r)), o.pos = r, o.ok = !0), o;
|
|
1909
1909
|
}
|
|
1910
1910
|
function sr(u, e, t, n) {
|
|
1911
1911
|
let r, o = e;
|
|
@@ -1933,12 +1933,12 @@ function sr(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 += Cu(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 += Cu(u.slice(e, o)), c;
|
|
1942
1942
|
}
|
|
1943
1943
|
const lr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1944
1944
|
__proto__: null,
|
|
@@ -1956,7 +1956,7 @@ ru.code_block = function(u, e, t, n, r) {
|
|
|
1956
1956
|
`;
|
|
1957
1957
|
};
|
|
1958
1958
|
ru.fence = function(u, e, t, n, r) {
|
|
1959
|
-
const o = u[e], c = o.info ?
|
|
1959
|
+
const o = u[e], c = o.info ? Cu(o.info).trim() : "";
|
|
1960
1960
|
let i = "", a = "";
|
|
1961
1961
|
if (c) {
|
|
1962
1962
|
const l = c.split(/(\s+)/g);
|
|
@@ -2002,10 +2002,10 @@ ru.html_block = function(u, e) {
|
|
|
2002
2002
|
ru.html_inline = function(u, e) {
|
|
2003
2003
|
return u[e].content;
|
|
2004
2004
|
};
|
|
2005
|
-
function
|
|
2005
|
+
function vu() {
|
|
2006
2006
|
this.rules = Qu({}, ru);
|
|
2007
2007
|
}
|
|
2008
|
-
|
|
2008
|
+
vu.prototype.renderAttrs = function(e) {
|
|
2009
2009
|
let t, n, r;
|
|
2010
2010
|
if (!e.attrs)
|
|
2011
2011
|
return "";
|
|
@@ -2013,7 +2013,7 @@ Cu.prototype.renderAttrs = function(e) {
|
|
|
2013
2013
|
r += " " + pu(e.attrs[t][0]) + '="' + pu(e.attrs[t][1]) + '"';
|
|
2014
2014
|
return r;
|
|
2015
2015
|
};
|
|
2016
|
-
|
|
2016
|
+
vu.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 @@ Cu.prototype.renderToken = function(e, t, n) {
|
|
|
2028
2028
|
return o += c ? `>
|
|
2029
2029
|
` : ">", o;
|
|
2030
2030
|
};
|
|
2031
|
-
|
|
2031
|
+
vu.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 @@ Cu.prototype.renderInline = function(u, e, t) {
|
|
|
2037
2037
|
}
|
|
2038
2038
|
return n;
|
|
2039
2039
|
};
|
|
2040
|
-
|
|
2040
|
+
vu.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 @@ Cu.prototype.renderInlineAsText = function(u, e, t) {
|
|
|
2059
2059
|
}
|
|
2060
2060
|
return n;
|
|
2061
2061
|
};
|
|
2062
|
-
|
|
2062
|
+
vu.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++) {
|
|
@@ -2235,27 +2235,27 @@ function gr(u) {
|
|
|
2235
2235
|
const l = [];
|
|
2236
2236
|
let f = i.level, m = 0;
|
|
2237
2237
|
s.length > 0 && s[0].index === 0 && c > 0 && r[c - 1].type === "text_special" && (s = s.slice(1));
|
|
2238
|
-
for (let
|
|
2239
|
-
const d = s[
|
|
2240
|
-
if (!u.md.validateLink(
|
|
2238
|
+
for (let b = 0; b < s.length; b++) {
|
|
2239
|
+
const d = s[b].url, v = u.md.normalizeLink(d);
|
|
2240
|
+
if (!u.md.validateLink(v))
|
|
2241
2241
|
continue;
|
|
2242
|
-
let
|
|
2243
|
-
s[
|
|
2244
|
-
const
|
|
2245
|
-
if (
|
|
2246
|
-
const
|
|
2247
|
-
|
|
2242
|
+
let k = s[b].text;
|
|
2243
|
+
s[b].schema ? s[b].schema === "mailto:" && !/^mailto:/i.test(k) ? k = u.md.normalizeLinkText("mailto:" + k).replace(/^mailto:/, "") : k = u.md.normalizeLinkText(k) : k = u.md.normalizeLinkText("http://" + k).replace(/^http:\/\//, "");
|
|
2244
|
+
const F = s[b].index;
|
|
2245
|
+
if (F > m) {
|
|
2246
|
+
const x = new u.Token("text", "", 0);
|
|
2247
|
+
x.content = a.slice(m, F), x.level = f, l.push(x);
|
|
2248
2248
|
}
|
|
2249
|
-
const
|
|
2250
|
-
|
|
2251
|
-
const
|
|
2252
|
-
|
|
2253
|
-
const
|
|
2254
|
-
|
|
2249
|
+
const D = new u.Token("link_open", "a", 1);
|
|
2250
|
+
D.attrs = [["href", v]], D.level = f++, D.markup = "linkify", D.info = "auto", l.push(D);
|
|
2251
|
+
const C = new u.Token("text", "", 0);
|
|
2252
|
+
C.content = k, C.level = f, l.push(C);
|
|
2253
|
+
const p = new u.Token("link_close", "a", -1);
|
|
2254
|
+
p.level = --f, p.markup = "linkify", p.info = "auto", l.push(p), m = s[b].lastIndex;
|
|
2255
2255
|
}
|
|
2256
2256
|
if (m < a.length) {
|
|
2257
|
-
const
|
|
2258
|
-
|
|
2257
|
+
const b = new u.Token("text", "", 0);
|
|
2258
|
+
b.content = a.slice(m), b.level = f, l.push(b);
|
|
2259
2259
|
}
|
|
2260
2260
|
e[t].children = r = Vt(r, c, l);
|
|
2261
2261
|
}
|
|
@@ -2312,7 +2312,7 @@ function Ar(u, e) {
|
|
|
2312
2312
|
break;
|
|
2313
2313
|
let f = !0, m = !0;
|
|
2314
2314
|
a = l.index + 1;
|
|
2315
|
-
const
|
|
2315
|
+
const b = l[0] === "'";
|
|
2316
2316
|
let d = 32;
|
|
2317
2317
|
if (l.index - 1 >= 0)
|
|
2318
2318
|
d = i.charCodeAt(l.index - 1);
|
|
@@ -2322,42 +2322,42 @@ function Ar(u, e) {
|
|
|
2322
2322
|
d = u[t].content.charCodeAt(u[t].content.length - 1);
|
|
2323
2323
|
break;
|
|
2324
2324
|
}
|
|
2325
|
-
let
|
|
2325
|
+
let v = 32;
|
|
2326
2326
|
if (a < s)
|
|
2327
|
-
|
|
2327
|
+
v = i.charCodeAt(a);
|
|
2328
2328
|
else
|
|
2329
2329
|
for (t = r + 1; t < u.length && !(u[t].type === "softbreak" || u[t].type === "hardbreak"); t++)
|
|
2330
2330
|
if (u[t].content) {
|
|
2331
|
-
|
|
2331
|
+
v = u[t].content.charCodeAt(0);
|
|
2332
2332
|
break;
|
|
2333
2333
|
}
|
|
2334
|
-
const
|
|
2335
|
-
if (
|
|
2336
|
-
|
|
2334
|
+
const k = Iu(d) || Tu(String.fromCharCode(d)), F = Iu(v) || Tu(String.fromCharCode(v)), D = Su(d), C = Su(v);
|
|
2335
|
+
if (C ? f = !1 : F && (D || k || (f = !1)), D ? m = !1 : k && (C || F || (m = !1)), v === 34 && l[0] === '"' && d >= 48 && d <= 57 && (m = f = !1), f && m && (f = k, m = F), !f && !m) {
|
|
2336
|
+
b && (o.content = Mu(o.content, l.index, ot));
|
|
2337
2337
|
continue;
|
|
2338
2338
|
}
|
|
2339
2339
|
if (m)
|
|
2340
2340
|
for (t = n.length - 1; t >= 0; t--) {
|
|
2341
|
-
let
|
|
2341
|
+
let p = n[t];
|
|
2342
2342
|
if (n[t].level < c)
|
|
2343
2343
|
break;
|
|
2344
|
-
if (
|
|
2345
|
-
|
|
2346
|
-
let
|
|
2347
|
-
|
|
2348
|
-
u[
|
|
2349
|
-
|
|
2350
|
-
|
|
2351
|
-
), a +=
|
|
2344
|
+
if (p.single === b && n[t].level === c) {
|
|
2345
|
+
p = n[t];
|
|
2346
|
+
let x, h;
|
|
2347
|
+
b ? (x = e.md.options.quotes[2], h = e.md.options.quotes[3]) : (x = e.md.options.quotes[0], h = e.md.options.quotes[1]), o.content = Mu(o.content, l.index, h), u[p.token].content = Mu(
|
|
2348
|
+
u[p.token].content,
|
|
2349
|
+
p.pos,
|
|
2350
|
+
x
|
|
2351
|
+
), a += h.length - 1, p.token === r && (a += x.length - 1), i = o.content, s = i.length, n.length = t;
|
|
2352
2352
|
continue u;
|
|
2353
2353
|
}
|
|
2354
2354
|
}
|
|
2355
2355
|
f ? n.push({
|
|
2356
2356
|
token: r,
|
|
2357
2357
|
pos: l.index,
|
|
2358
|
-
single:
|
|
2358
|
+
single: b,
|
|
2359
2359
|
level: c
|
|
2360
|
-
}) : m &&
|
|
2360
|
+
}) : m && b && (o.content = Mu(o.content, l.index, ot));
|
|
2361
2361
|
}
|
|
2362
2362
|
}
|
|
2363
2363
|
}
|
|
@@ -2508,23 +2508,23 @@ function Ir(u, e, t, n) {
|
|
|
2508
2508
|
if (i !== 124 && i !== 45 && i !== 58 && !B(i) || c === 45 && B(i))
|
|
2509
2509
|
return !1;
|
|
2510
2510
|
for (; o < u.eMarks[r]; ) {
|
|
2511
|
-
const
|
|
2512
|
-
if (
|
|
2511
|
+
const p = u.src.charCodeAt(o);
|
|
2512
|
+
if (p !== 124 && p !== 45 && p !== 58 && !B(p))
|
|
2513
2513
|
return !1;
|
|
2514
2514
|
o++;
|
|
2515
2515
|
}
|
|
2516
2516
|
let a = oe(u, e + 1), s = a.split("|");
|
|
2517
2517
|
const l = [];
|
|
2518
|
-
for (let
|
|
2519
|
-
const
|
|
2520
|
-
if (!
|
|
2521
|
-
if (
|
|
2518
|
+
for (let p = 0; p < s.length; p++) {
|
|
2519
|
+
const x = s[p].trim();
|
|
2520
|
+
if (!x) {
|
|
2521
|
+
if (p === 0 || p === s.length - 1)
|
|
2522
2522
|
continue;
|
|
2523
2523
|
return !1;
|
|
2524
2524
|
}
|
|
2525
|
-
if (!/^:?-+:?$/.test(
|
|
2525
|
+
if (!/^:?-+:?$/.test(x))
|
|
2526
2526
|
return !1;
|
|
2527
|
-
|
|
2527
|
+
x.charCodeAt(x.length - 1) === 58 ? l.push(x.charCodeAt(0) === 58 ? "center" : "right") : x.charCodeAt(0) === 58 ? l.push("left") : l.push("");
|
|
2528
2528
|
}
|
|
2529
2529
|
if (a = oe(u, e).trim(), a.indexOf("|") === -1 || u.sCount[e] - u.blkIndent >= 4)
|
|
2530
2530
|
return !1;
|
|
@@ -2536,44 +2536,44 @@ function Ir(u, e, t, n) {
|
|
|
2536
2536
|
return !0;
|
|
2537
2537
|
const m = u.parentType;
|
|
2538
2538
|
u.parentType = "table";
|
|
2539
|
-
const
|
|
2540
|
-
d.map =
|
|
2541
|
-
const
|
|
2542
|
-
|
|
2543
|
-
const
|
|
2544
|
-
|
|
2545
|
-
for (let
|
|
2546
|
-
const
|
|
2547
|
-
l[
|
|
2548
|
-
const
|
|
2549
|
-
|
|
2539
|
+
const b = u.md.block.ruler.getRules("blockquote"), d = u.push("table_open", "table", 1), v = [e, 0];
|
|
2540
|
+
d.map = v;
|
|
2541
|
+
const k = u.push("thead_open", "thead", 1);
|
|
2542
|
+
k.map = [e, e + 1];
|
|
2543
|
+
const F = u.push("tr_open", "tr", 1);
|
|
2544
|
+
F.map = [e, e + 1];
|
|
2545
|
+
for (let p = 0; p < s.length; p++) {
|
|
2546
|
+
const x = u.push("th_open", "th", 1);
|
|
2547
|
+
l[p] && (x.attrs = [["style", "text-align:" + l[p]]]);
|
|
2548
|
+
const h = u.push("inline", "", 0);
|
|
2549
|
+
h.content = s[p].trim(), h.children = [], u.push("th_close", "th", -1);
|
|
2550
2550
|
}
|
|
2551
2551
|
u.push("tr_close", "tr", -1), u.push("thead_close", "thead", -1);
|
|
2552
|
-
let
|
|
2552
|
+
let D, C = 0;
|
|
2553
2553
|
for (r = e + 2; r < t && !(u.sCount[r] < u.blkIndent); r++) {
|
|
2554
|
-
let
|
|
2555
|
-
for (let
|
|
2556
|
-
if (
|
|
2557
|
-
|
|
2554
|
+
let p = !1;
|
|
2555
|
+
for (let h = 0, g = b.length; h < g; h++)
|
|
2556
|
+
if (b[h](u, r, t, !0)) {
|
|
2557
|
+
p = !0;
|
|
2558
2558
|
break;
|
|
2559
2559
|
}
|
|
2560
|
-
if (
|
|
2560
|
+
if (p || (a = oe(u, r).trim(), !a) || u.sCount[r] - u.blkIndent >= 4 || (s = ct(a), s.length && s[0] === "" && s.shift(), s.length && s[s.length - 1] === "" && s.pop(), C += f - s.length, C > Tr))
|
|
2561
2561
|
break;
|
|
2562
2562
|
if (r === e + 2) {
|
|
2563
|
-
const
|
|
2564
|
-
|
|
2563
|
+
const h = u.push("tbody_open", "tbody", 1);
|
|
2564
|
+
h.map = D = [e + 2, 0];
|
|
2565
2565
|
}
|
|
2566
|
-
const
|
|
2567
|
-
|
|
2568
|
-
for (let
|
|
2569
|
-
const
|
|
2570
|
-
l[
|
|
2571
|
-
const
|
|
2572
|
-
|
|
2566
|
+
const x = u.push("tr_open", "tr", 1);
|
|
2567
|
+
x.map = [r, r + 1];
|
|
2568
|
+
for (let h = 0; h < f; h++) {
|
|
2569
|
+
const g = u.push("td_open", "td", 1);
|
|
2570
|
+
l[h] && (g.attrs = [["style", "text-align:" + l[h]]]);
|
|
2571
|
+
const E = u.push("inline", "", 0);
|
|
2572
|
+
E.content = s[h] ? s[h].trim() : "", E.children = [], u.push("td_close", "td", -1);
|
|
2573
2573
|
}
|
|
2574
2574
|
u.push("tr_close", "tr", -1);
|
|
2575
2575
|
}
|
|
2576
|
-
return
|
|
2576
|
+
return D && (u.push("tbody_close", "tbody", -1), D[1] = r), u.push("table_close", "table", -1), v[1] = r, u.parentType = m, u.line = r, !0;
|
|
2577
2577
|
}
|
|
2578
2578
|
function Nr(u, e, t) {
|
|
2579
2579
|
if (u.sCount[e] - u.blkIndent < 4)
|
|
@@ -2619,8 +2619,8 @@ function Lr(u, e, t, n) {
|
|
|
2619
2619
|
break;
|
|
2620
2620
|
}
|
|
2621
2621
|
a = u.sCount[e], u.line = f + (m ? 1 : 0);
|
|
2622
|
-
const
|
|
2623
|
-
return
|
|
2622
|
+
const b = u.push("fence", "code", 0);
|
|
2623
|
+
return b.info = l, b.content = u.getLines(e + 1, f, a, !0), b.markup = s, b.map = [e, u.line], !0;
|
|
2624
2624
|
}
|
|
2625
2625
|
function Or(u, e, t, n) {
|
|
2626
2626
|
let r = u.bMarks[e] + u.tShift[e], o = u.eMarks[e];
|
|
@@ -2631,51 +2631,51 @@ function Or(u, e, t, n) {
|
|
|
2631
2631
|
return !0;
|
|
2632
2632
|
const i = [], a = [], s = [], l = [], f = u.md.block.ruler.getRules("blockquote"), m = u.parentType;
|
|
2633
2633
|
u.parentType = "blockquote";
|
|
2634
|
-
let
|
|
2634
|
+
let b = !1, d;
|
|
2635
2635
|
for (d = e; d < t; d++) {
|
|
2636
|
-
const
|
|
2636
|
+
const C = u.sCount[d] < u.blkIndent;
|
|
2637
2637
|
if (r = u.bMarks[d] + u.tShift[d], o = u.eMarks[d], r >= o)
|
|
2638
2638
|
break;
|
|
2639
|
-
if (u.src.charCodeAt(r++) === 62 && !
|
|
2640
|
-
let
|
|
2641
|
-
u.src.charCodeAt(r) === 32 ? (r++,
|
|
2642
|
-
let
|
|
2639
|
+
if (u.src.charCodeAt(r++) === 62 && !C) {
|
|
2640
|
+
let x = u.sCount[d] + 1, h, g;
|
|
2641
|
+
u.src.charCodeAt(r) === 32 ? (r++, x++, g = !1, h = !0) : u.src.charCodeAt(r) === 9 ? (h = !0, (u.bsCount[d] + x) % 4 === 3 ? (r++, x++, g = !1) : g = !0) : h = !1;
|
|
2642
|
+
let E = x;
|
|
2643
2643
|
for (i.push(u.bMarks[d]), u.bMarks[d] = r; r < o; ) {
|
|
2644
2644
|
const I = u.src.charCodeAt(r);
|
|
2645
2645
|
if (B(I))
|
|
2646
|
-
I === 9 ?
|
|
2646
|
+
I === 9 ? E += 4 - (E + u.bsCount[d] + (g ? 1 : 0)) % 4 : E++;
|
|
2647
2647
|
else
|
|
2648
2648
|
break;
|
|
2649
2649
|
r++;
|
|
2650
2650
|
}
|
|
2651
|
-
|
|
2651
|
+
b = r >= o, a.push(u.bsCount[d]), u.bsCount[d] = u.sCount[d] + 1 + (h ? 1 : 0), s.push(u.sCount[d]), u.sCount[d] = E - x, l.push(u.tShift[d]), u.tShift[d] = r - u.bMarks[d];
|
|
2652
2652
|
continue;
|
|
2653
2653
|
}
|
|
2654
|
-
if (
|
|
2654
|
+
if (b)
|
|
2655
2655
|
break;
|
|
2656
|
-
let
|
|
2657
|
-
for (let
|
|
2658
|
-
if (f[
|
|
2659
|
-
|
|
2656
|
+
let p = !1;
|
|
2657
|
+
for (let x = 0, h = f.length; x < h; x++)
|
|
2658
|
+
if (f[x](u, d, t, !0)) {
|
|
2659
|
+
p = !0;
|
|
2660
2660
|
break;
|
|
2661
2661
|
}
|
|
2662
|
-
if (
|
|
2662
|
+
if (p) {
|
|
2663
2663
|
u.lineMax = d, u.blkIndent !== 0 && (i.push(u.bMarks[d]), a.push(u.bsCount[d]), l.push(u.tShift[d]), s.push(u.sCount[d]), u.sCount[d] -= u.blkIndent);
|
|
2664
2664
|
break;
|
|
2665
2665
|
}
|
|
2666
2666
|
i.push(u.bMarks[d]), a.push(u.bsCount[d]), l.push(u.tShift[d]), s.push(u.sCount[d]), u.sCount[d] = -1;
|
|
2667
2667
|
}
|
|
2668
|
-
const
|
|
2668
|
+
const v = u.blkIndent;
|
|
2669
2669
|
u.blkIndent = 0;
|
|
2670
|
-
const
|
|
2671
|
-
|
|
2672
|
-
const
|
|
2673
|
-
|
|
2674
|
-
const
|
|
2675
|
-
|
|
2676
|
-
for (let
|
|
2677
|
-
u.bMarks[
|
|
2678
|
-
return u.blkIndent =
|
|
2670
|
+
const k = u.push("blockquote_open", "blockquote", 1);
|
|
2671
|
+
k.markup = ">";
|
|
2672
|
+
const F = [e, 0];
|
|
2673
|
+
k.map = F, u.md.block.tokenize(u, e, d);
|
|
2674
|
+
const D = u.push("blockquote_close", "blockquote", -1);
|
|
2675
|
+
D.markup = ">", u.lineMax = c, u.parentType = m, F[1] = u.line;
|
|
2676
|
+
for (let C = 0; C < l.length; C++)
|
|
2677
|
+
u.bMarks[C + e] = i[C], u.tShift[C + e] = l[C], u.sCount[C + e] = s[C], u.bsCount[C + e] = a[C];
|
|
2678
|
+
return u.blkIndent = v, !0;
|
|
2679
2679
|
}
|
|
2680
2680
|
function Br(u, e, t, n) {
|
|
2681
2681
|
const r = u.eMarks[e];
|
|
@@ -2746,116 +2746,116 @@ function Mr(u, e, t, n) {
|
|
|
2746
2746
|
return !1;
|
|
2747
2747
|
let l = !1;
|
|
2748
2748
|
n && u.parentType === "paragraph" && u.sCount[a] >= u.blkIndent && (l = !0);
|
|
2749
|
-
let f, m,
|
|
2750
|
-
if ((
|
|
2751
|
-
if (f = !0, c = u.bMarks[a] + u.tShift[a], m = Number(u.src.slice(c,
|
|
2752
|
-
} else if ((
|
|
2749
|
+
let f, m, b;
|
|
2750
|
+
if ((b = at(u, a)) >= 0) {
|
|
2751
|
+
if (f = !0, c = u.bMarks[a] + u.tShift[a], m = Number(u.src.slice(c, b - 1)), l && m !== 1) return !1;
|
|
2752
|
+
} else if ((b = it(u, a)) >= 0)
|
|
2753
2753
|
f = !1;
|
|
2754
2754
|
else
|
|
2755
2755
|
return !1;
|
|
2756
|
-
if (l && u.skipSpaces(
|
|
2756
|
+
if (l && u.skipSpaces(b) >= u.eMarks[a])
|
|
2757
2757
|
return !1;
|
|
2758
2758
|
if (n)
|
|
2759
2759
|
return !0;
|
|
2760
|
-
const d = u.src.charCodeAt(
|
|
2760
|
+
const d = u.src.charCodeAt(b - 1), v = u.tokens.length;
|
|
2761
2761
|
f ? (i = u.push("ordered_list_open", "ol", 1), m !== 1 && (i.attrs = [["start", m]])) : i = u.push("bullet_list_open", "ul", 1);
|
|
2762
|
-
const
|
|
2763
|
-
i.map =
|
|
2764
|
-
let
|
|
2765
|
-
const
|
|
2762
|
+
const k = [a, 0];
|
|
2763
|
+
i.map = k, i.markup = String.fromCharCode(d);
|
|
2764
|
+
let F = !1;
|
|
2765
|
+
const D = u.md.block.ruler.getRules("list"), C = u.parentType;
|
|
2766
2766
|
for (u.parentType = "list"; a < t; ) {
|
|
2767
|
-
o =
|
|
2768
|
-
const
|
|
2769
|
-
let
|
|
2767
|
+
o = b, r = u.eMarks[a];
|
|
2768
|
+
const p = u.sCount[a] + b - (u.bMarks[a] + u.tShift[a]);
|
|
2769
|
+
let x = p;
|
|
2770
2770
|
for (; o < r; ) {
|
|
2771
2771
|
const M = u.src.charCodeAt(o);
|
|
2772
2772
|
if (M === 9)
|
|
2773
|
-
|
|
2773
|
+
x += 4 - (x + u.bsCount[a]) % 4;
|
|
2774
2774
|
else if (M === 32)
|
|
2775
|
-
|
|
2775
|
+
x++;
|
|
2776
2776
|
else
|
|
2777
2777
|
break;
|
|
2778
2778
|
o++;
|
|
2779
2779
|
}
|
|
2780
|
-
const
|
|
2781
|
-
let
|
|
2782
|
-
|
|
2783
|
-
const
|
|
2780
|
+
const h = o;
|
|
2781
|
+
let g;
|
|
2782
|
+
h >= r ? g = 1 : g = x - p, g > 4 && (g = 1);
|
|
2783
|
+
const E = p + g;
|
|
2784
2784
|
i = u.push("list_item_open", "li", 1), i.markup = String.fromCharCode(d);
|
|
2785
2785
|
const I = [a, 0];
|
|
2786
|
-
i.map = I, f && (i.info = u.src.slice(c,
|
|
2786
|
+
i.map = I, f && (i.info = u.src.slice(c, b - 1));
|
|
2787
2787
|
const T = u.tight, j = u.tShift[a], L = u.sCount[a], R = u.listIndent;
|
|
2788
|
-
if (u.listIndent = u.blkIndent, u.blkIndent =
|
|
2788
|
+
if (u.listIndent = u.blkIndent, u.blkIndent = E, u.tight = !0, u.tShift[a] = h - u.bMarks[a], u.sCount[a] = x, h >= r && u.isEmpty(a + 1) ? u.line = Math.min(u.line + 2, t) : u.md.block.tokenize(u, a, t, !0), (!u.tight || F) && (s = !1), F = u.line - a > 1 && u.isEmpty(u.line - 1), u.blkIndent = u.listIndent, u.listIndent = R, u.tShift[a] = j, u.sCount[a] = L, u.tight = T, i = u.push("list_item_close", "li", -1), i.markup = String.fromCharCode(d), a = u.line, I[1] = a, a >= t || u.sCount[a] < u.blkIndent || u.sCount[a] - u.blkIndent >= 4)
|
|
2789
2789
|
break;
|
|
2790
2790
|
let Q = !1;
|
|
2791
|
-
for (let M = 0, uu =
|
|
2792
|
-
if (
|
|
2791
|
+
for (let M = 0, uu = D.length; M < uu; M++)
|
|
2792
|
+
if (D[M](u, a, t, !0)) {
|
|
2793
2793
|
Q = !0;
|
|
2794
2794
|
break;
|
|
2795
2795
|
}
|
|
2796
2796
|
if (Q)
|
|
2797
2797
|
break;
|
|
2798
2798
|
if (f) {
|
|
2799
|
-
if (
|
|
2799
|
+
if (b = at(u, a), b < 0)
|
|
2800
2800
|
break;
|
|
2801
2801
|
c = u.bMarks[a] + u.tShift[a];
|
|
2802
|
-
} else if (
|
|
2802
|
+
} else if (b = it(u, a), b < 0)
|
|
2803
2803
|
break;
|
|
2804
|
-
if (d !== u.src.charCodeAt(
|
|
2804
|
+
if (d !== u.src.charCodeAt(b - 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),
|
|
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 = C, s && Pr(u, v), !0;
|
|
2808
2808
|
}
|
|
2809
2809
|
function jr(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;
|
|
2813
|
-
function i(
|
|
2814
|
-
const
|
|
2815
|
-
if (
|
|
2813
|
+
function i(D) {
|
|
2814
|
+
const C = u.lineMax;
|
|
2815
|
+
if (D >= C || u.isEmpty(D))
|
|
2816
2816
|
return null;
|
|
2817
|
-
let
|
|
2818
|
-
if (u.sCount[
|
|
2819
|
-
const
|
|
2817
|
+
let p = !1;
|
|
2818
|
+
if (u.sCount[D] - u.blkIndent > 3 && (p = !0), u.sCount[D] < 0 && (p = !0), !p) {
|
|
2819
|
+
const g = u.md.block.ruler.getRules("reference"), E = u.parentType;
|
|
2820
2820
|
u.parentType = "reference";
|
|
2821
2821
|
let I = !1;
|
|
2822
|
-
for (let T = 0, j =
|
|
2823
|
-
if (
|
|
2822
|
+
for (let T = 0, j = g.length; T < j; T++)
|
|
2823
|
+
if (g[T](u, D, C, !0)) {
|
|
2824
2824
|
I = !0;
|
|
2825
2825
|
break;
|
|
2826
2826
|
}
|
|
2827
|
-
if (u.parentType =
|
|
2827
|
+
if (u.parentType = E, I)
|
|
2828
2828
|
return null;
|
|
2829
2829
|
}
|
|
2830
|
-
const
|
|
2831
|
-
return u.src.slice(
|
|
2830
|
+
const x = u.bMarks[D] + u.tShift[D], h = u.eMarks[D];
|
|
2831
|
+
return u.src.slice(x, h + 1);
|
|
2832
2832
|
}
|
|
2833
2833
|
let a = u.src.slice(r, o + 1);
|
|
2834
2834
|
o = a.length;
|
|
2835
2835
|
let s = -1;
|
|
2836
2836
|
for (r = 1; r < o; r++) {
|
|
2837
|
-
const
|
|
2838
|
-
if (
|
|
2837
|
+
const D = a.charCodeAt(r);
|
|
2838
|
+
if (D === 91)
|
|
2839
2839
|
return !1;
|
|
2840
|
-
if (
|
|
2840
|
+
if (D === 93) {
|
|
2841
2841
|
s = r;
|
|
2842
2842
|
break;
|
|
2843
|
-
} else if (
|
|
2844
|
-
const
|
|
2845
|
-
|
|
2846
|
-
} else if (
|
|
2847
|
-
const
|
|
2848
|
-
|
|
2843
|
+
} else if (D === 10) {
|
|
2844
|
+
const C = i(c);
|
|
2845
|
+
C !== null && (a += C, o = a.length, c++);
|
|
2846
|
+
} else if (D === 92 && (r++, r < o && a.charCodeAt(r) === 10)) {
|
|
2847
|
+
const C = i(c);
|
|
2848
|
+
C !== null && (a += C, o = a.length, c++);
|
|
2849
2849
|
}
|
|
2850
2850
|
}
|
|
2851
2851
|
if (s < 0 || a.charCodeAt(s + 1) !== 58)
|
|
2852
2852
|
return !1;
|
|
2853
2853
|
for (r = s + 2; r < o; r++) {
|
|
2854
|
-
const
|
|
2855
|
-
if (
|
|
2856
|
-
const
|
|
2857
|
-
|
|
2858
|
-
} else if (!B(
|
|
2854
|
+
const D = a.charCodeAt(r);
|
|
2855
|
+
if (D === 10) {
|
|
2856
|
+
const C = i(c);
|
|
2857
|
+
C !== null && (a += C, o = a.length, c++);
|
|
2858
|
+
} else if (!B(D)) break;
|
|
2859
2859
|
}
|
|
2860
2860
|
const l = u.md.helpers.parseLinkDestination(a, r, o);
|
|
2861
2861
|
if (!l.ok)
|
|
@@ -2864,38 +2864,38 @@ function jr(u, e, t, n) {
|
|
|
2864
2864
|
if (!u.md.validateLink(f))
|
|
2865
2865
|
return !1;
|
|
2866
2866
|
r = l.pos;
|
|
2867
|
-
const m = r,
|
|
2867
|
+
const m = r, b = c, d = r;
|
|
2868
2868
|
for (; r < o; r++) {
|
|
2869
|
-
const
|
|
2870
|
-
if (
|
|
2871
|
-
const
|
|
2872
|
-
|
|
2873
|
-
} else if (!B(
|
|
2874
|
-
}
|
|
2875
|
-
let
|
|
2876
|
-
for (;
|
|
2877
|
-
const
|
|
2878
|
-
if (
|
|
2879
|
-
a +=
|
|
2880
|
-
}
|
|
2881
|
-
let
|
|
2882
|
-
for (r < o && d !== r &&
|
|
2883
|
-
const
|
|
2884
|
-
if (!B(
|
|
2869
|
+
const D = a.charCodeAt(r);
|
|
2870
|
+
if (D === 10) {
|
|
2871
|
+
const C = i(c);
|
|
2872
|
+
C !== null && (a += C, o = a.length, c++);
|
|
2873
|
+
} else if (!B(D)) break;
|
|
2874
|
+
}
|
|
2875
|
+
let v = u.md.helpers.parseLinkTitle(a, r, o);
|
|
2876
|
+
for (; v.can_continue; ) {
|
|
2877
|
+
const D = i(c);
|
|
2878
|
+
if (D === null) break;
|
|
2879
|
+
a += D, r = o, o = a.length, c++, v = u.md.helpers.parseLinkTitle(a, r, o, v);
|
|
2880
|
+
}
|
|
2881
|
+
let k;
|
|
2882
|
+
for (r < o && d !== r && v.ok ? (k = v.str, r = v.pos) : (k = "", r = m, c = b); r < o; ) {
|
|
2883
|
+
const D = a.charCodeAt(r);
|
|
2884
|
+
if (!B(D))
|
|
2885
2885
|
break;
|
|
2886
2886
|
r++;
|
|
2887
2887
|
}
|
|
2888
|
-
if (r < o && a.charCodeAt(r) !== 10 &&
|
|
2889
|
-
for (
|
|
2890
|
-
const
|
|
2891
|
-
if (!B(
|
|
2888
|
+
if (r < o && a.charCodeAt(r) !== 10 && k)
|
|
2889
|
+
for (k = "", r = m, c = b; r < o; ) {
|
|
2890
|
+
const D = a.charCodeAt(r);
|
|
2891
|
+
if (!B(D))
|
|
2892
2892
|
break;
|
|
2893
2893
|
r++;
|
|
2894
2894
|
}
|
|
2895
2895
|
if (r < o && a.charCodeAt(r) !== 10)
|
|
2896
2896
|
return !1;
|
|
2897
|
-
const
|
|
2898
|
-
return
|
|
2897
|
+
const F = Ju(a.slice(1, s));
|
|
2898
|
+
return F ? (n || (typeof u.env.references > "u" && (u.env.references = {}), typeof u.env.references[F] > "u" && (u.env.references[F] = { title: k, href: f }), u.line = c), !0) : !1;
|
|
2899
2899
|
}
|
|
2900
2900
|
const zr = [
|
|
2901
2901
|
"address",
|
|
@@ -2960,7 +2960,7 @@ const zr = [
|
|
|
2960
2960
|
"tr",
|
|
2961
2961
|
"track",
|
|
2962
2962
|
"ul"
|
|
2963
|
-
], Rr = "[a-zA-Z_:][a-zA-Z0-9:._-]*", qr = "[^\"'=<>`\\x00-\\x20]+", Vr = "'[^']*'", $r = '"[^"]*"', Hr = "(?:" + qr + "|" + Vr + "|" + $r + ")", Ur = "(?:\\s+" + Rr + "(?:\\s*=\\s*" + Hr + ")?)", Zt = "<[A-Za-z][A-Za-z0-9\\-]*" + Ur + "*\\s*\\/?>", Gt = "<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>", Zr = "<!---?>|<!--(?:[^-]|-[^-]|--[^>])*-->", Gr = "<[?][\\s\\S]*?[?]>", Wr = "<![A-Za-z][^>]*>", Qr = "<!\\[CDATA\\[[\\s\\S]*?\\]\\]>", Jr = new RegExp("^(?:" + Zt + "|" + Gt + "|" + Zr + "|" + Gr + "|" + Wr + "|" + Qr + ")"), Kr = new RegExp("^(?:" + Zt + "|" + Gt + ")"),
|
|
2963
|
+
], Rr = "[a-zA-Z_:][a-zA-Z0-9:._-]*", qr = "[^\"'=<>`\\x00-\\x20]+", Vr = "'[^']*'", $r = '"[^"]*"', Hr = "(?:" + qr + "|" + Vr + "|" + $r + ")", Ur = "(?:\\s+" + Rr + "(?:\\s*=\\s*" + Hr + ")?)", Zt = "<[A-Za-z][A-Za-z0-9\\-]*" + Ur + "*\\s*\\/?>", Gt = "<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>", Zr = "<!---?>|<!--(?:[^-]|-[^-]|--[^>])*-->", Gr = "<[?][\\s\\S]*?[?]>", Wr = "<![A-Za-z][^>]*>", Qr = "<!\\[CDATA\\[[\\s\\S]*?\\]\\]>", Jr = new RegExp("^(?:" + Zt + "|" + Gt + "|" + Zr + "|" + Gr + "|" + Wr + "|" + Qr + ")"), Kr = new RegExp("^(?:" + Zt + "|" + Gt + ")"), gu = [
|
|
2964
2964
|
[/^<(script|pre|style|textarea)(?=(\s|>|$))/i, /<\/(script|pre|style|textarea)>/i, !0],
|
|
2965
2965
|
[/^<!--/, /-->/, !0],
|
|
2966
2966
|
[/^<\?/, /\?>/, !0],
|
|
@@ -2974,16 +2974,16 @@ function Yr(u, e, t, n) {
|
|
|
2974
2974
|
if (u.sCount[e] - u.blkIndent >= 4 || !u.md.options.html || u.src.charCodeAt(r) !== 60)
|
|
2975
2975
|
return !1;
|
|
2976
2976
|
let c = u.src.slice(r, o), i = 0;
|
|
2977
|
-
for (; i <
|
|
2977
|
+
for (; i < gu.length && !gu[i][0].test(c); i++)
|
|
2978
2978
|
;
|
|
2979
|
-
if (i ===
|
|
2979
|
+
if (i === gu.length)
|
|
2980
2980
|
return !1;
|
|
2981
2981
|
if (n)
|
|
2982
|
-
return
|
|
2982
|
+
return gu[i][2];
|
|
2983
2983
|
let a = e + 1;
|
|
2984
|
-
if (!
|
|
2984
|
+
if (!gu[i][1].test(c)) {
|
|
2985
2985
|
for (; a < t && !(u.sCount[a] < u.blkIndent); a++)
|
|
2986
|
-
if (r = u.bMarks[a] + u.tShift[a], o = u.eMarks[a], c = u.src.slice(r, o),
|
|
2986
|
+
if (r = u.bMarks[a] + u.tShift[a], o = u.eMarks[a], c = u.src.slice(r, o), gu[i][1].test(c)) {
|
|
2987
2987
|
c.length !== 0 && a++;
|
|
2988
2988
|
break;
|
|
2989
2989
|
}
|
|
@@ -3027,9 +3027,9 @@ function uo(u, e, t) {
|
|
|
3027
3027
|
if (u.sCount[i] - u.blkIndent > 3)
|
|
3028
3028
|
continue;
|
|
3029
3029
|
if (u.sCount[i] >= u.blkIndent) {
|
|
3030
|
-
let
|
|
3030
|
+
let b = u.bMarks[i] + u.tShift[i];
|
|
3031
3031
|
const d = u.eMarks[i];
|
|
3032
|
-
if (
|
|
3032
|
+
if (b < d && (c = u.src.charCodeAt(b), (c === 45 || c === 61) && (b = u.skipChars(b, c), b = u.skipSpaces(b), b >= d))) {
|
|
3033
3033
|
o = c === 61 ? 1 : 2;
|
|
3034
3034
|
break;
|
|
3035
3035
|
}
|
|
@@ -3037,8 +3037,8 @@ function uo(u, e, t) {
|
|
|
3037
3037
|
if (u.sCount[i] < 0)
|
|
3038
3038
|
continue;
|
|
3039
3039
|
let m = !1;
|
|
3040
|
-
for (let
|
|
3041
|
-
if (n[
|
|
3040
|
+
for (let b = 0, d = n.length; b < d; b++)
|
|
3041
|
+
if (n[b](u, i, t, !0)) {
|
|
3042
3042
|
m = !0;
|
|
3043
3043
|
break;
|
|
3044
3044
|
}
|
|
@@ -3143,8 +3143,8 @@ Bu.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 = Iu(r) || Tu(String.fromCharCode(r)), s = Iu(i) || Tu(String.fromCharCode(i)), l = Su(r), f = Su(i), m = !f && (!s || l || a),
|
|
3147
|
-
return { can_open: m && (e || !
|
|
3146
|
+
const c = o - u, i = o < t ? this.src.charCodeAt(o) : 32, a = Iu(r) || Tu(String.fromCharCode(r)), s = Iu(i) || Tu(String.fromCharCode(i)), l = Su(r), f = Su(i), m = !f && (!s || l || a), b = !l && (!a || f || s);
|
|
3147
|
+
return { can_open: m && (e || !b || a), can_close: b && (e || !m || s), length: c };
|
|
3148
3148
|
};
|
|
3149
3149
|
Bu.prototype.Token = X;
|
|
3150
3150
|
function to(u) {
|
|
@@ -3392,10 +3392,10 @@ function po(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;
|
|
3395
|
-
const l = u.pos, f = u.posMax, m = u.pos + 1,
|
|
3396
|
-
if (
|
|
3395
|
+
const l = u.pos, f = u.posMax, m = u.pos + 1, b = u.md.helpers.parseLinkLabel(u, u.pos, !0);
|
|
3396
|
+
if (b < 0)
|
|
3397
3397
|
return !1;
|
|
3398
|
-
let d =
|
|
3398
|
+
let d = b + 1;
|
|
3399
3399
|
if (d < f && u.src.charCodeAt(d) === 40) {
|
|
3400
3400
|
for (s = !1, d++; d < f && (t = u.src.charCodeAt(d), !(!B(t) && t !== 10)); d++)
|
|
3401
3401
|
;
|
|
@@ -3413,14 +3413,14 @@ function po(u, e) {
|
|
|
3413
3413
|
if (s) {
|
|
3414
3414
|
if (typeof u.env.references > "u")
|
|
3415
3415
|
return !1;
|
|
3416
|
-
if (d < f && u.src.charCodeAt(d) === 91 ? (a = d + 1, d = u.md.helpers.parseLinkLabel(u, d), d >= 0 ? n = u.src.slice(a, d++) : d =
|
|
3416
|
+
if (d < f && u.src.charCodeAt(d) === 91 ? (a = d + 1, d = u.md.helpers.parseLinkLabel(u, d), d >= 0 ? n = u.src.slice(a, d++) : d = b + 1) : d = b + 1, n || (n = u.src.slice(m, b)), o = u.env.references[Ju(n)], !o)
|
|
3417
3417
|
return u.pos = l, !1;
|
|
3418
3418
|
c = o.href, i = o.title;
|
|
3419
3419
|
}
|
|
3420
3420
|
if (!e) {
|
|
3421
|
-
u.pos = m, u.posMax =
|
|
3422
|
-
const
|
|
3423
|
-
|
|
3421
|
+
u.pos = m, u.posMax = b;
|
|
3422
|
+
const v = u.push("link_open", "a", 1), k = [["href", c]];
|
|
3423
|
+
v.attrs = k, i && k.push(["title", i]), u.linkLevel++, u.md.inline.tokenize(u), u.linkLevel--, u.push("link_close", "a", -1);
|
|
3424
3424
|
}
|
|
3425
3425
|
return u.pos = d, u.posMax = f, !0;
|
|
3426
3426
|
}
|
|
@@ -3429,7 +3429,7 @@ function bo(u, e) {
|
|
|
3429
3429
|
const f = u.pos, m = u.posMax;
|
|
3430
3430
|
if (u.src.charCodeAt(u.pos) !== 33 || u.src.charCodeAt(u.pos + 1) !== 91)
|
|
3431
3431
|
return !1;
|
|
3432
|
-
const
|
|
3432
|
+
const b = u.pos + 2, d = u.md.helpers.parseLinkLabel(u, u.pos + 1, !1);
|
|
3433
3433
|
if (d < 0)
|
|
3434
3434
|
return !1;
|
|
3435
3435
|
if (o = d + 1, o < m && u.src.charCodeAt(o) === 40) {
|
|
@@ -3450,21 +3450,21 @@ function bo(u, e) {
|
|
|
3450
3450
|
} else {
|
|
3451
3451
|
if (typeof u.env.references > "u")
|
|
3452
3452
|
return !1;
|
|
3453
|
-
if (o < m && u.src.charCodeAt(o) === 91 ? (s = o + 1, o = u.md.helpers.parseLinkLabel(u, o), o >= 0 ? r = u.src.slice(s, o++) : o = d + 1) : o = d + 1, r || (r = u.src.slice(
|
|
3453
|
+
if (o < m && u.src.charCodeAt(o) === 91 ? (s = o + 1, o = u.md.helpers.parseLinkLabel(u, o), o >= 0 ? r = u.src.slice(s, o++) : o = d + 1) : o = d + 1, r || (r = u.src.slice(b, d)), c = u.env.references[Ju(r)], !c)
|
|
3454
3454
|
return u.pos = f, !1;
|
|
3455
3455
|
l = c.href, a = c.title;
|
|
3456
3456
|
}
|
|
3457
3457
|
if (!e) {
|
|
3458
|
-
n = u.src.slice(
|
|
3459
|
-
const
|
|
3458
|
+
n = u.src.slice(b, d);
|
|
3459
|
+
const v = [];
|
|
3460
3460
|
u.md.inline.parse(
|
|
3461
3461
|
n,
|
|
3462
3462
|
u.md,
|
|
3463
3463
|
u.env,
|
|
3464
|
-
|
|
3464
|
+
v
|
|
3465
3465
|
);
|
|
3466
|
-
const
|
|
3467
|
-
|
|
3466
|
+
const k = u.push("image", "img", 0), F = [["src", l], ["alt", ""]];
|
|
3467
|
+
k.attrs = F, k.children = v, k.content = n, a && F.push(["title", a]);
|
|
3468
3468
|
}
|
|
3469
3469
|
return u.pos = o, u.posMax = m, !0;
|
|
3470
3470
|
}
|
|
@@ -3583,8 +3583,8 @@ function ft(u) {
|
|
|
3583
3583
|
if (f.marker === i.marker && f.open && f.end < 0) {
|
|
3584
3584
|
let m = !1;
|
|
3585
3585
|
if ((f.close || i.open) && (f.length + i.length) % 3 === 0 && (f.length % 3 !== 0 || i.length % 3 !== 0) && (m = !0), !m) {
|
|
3586
|
-
const
|
|
3587
|
-
o[c] = c - s +
|
|
3586
|
+
const b = s > 0 && !u[s - 1].open ? o[s - 1] + 1 : 0;
|
|
3587
|
+
o[c] = c - s + b, o[s] = b, i.open = !1, f.end = c, f.close = !1, l = -1, r = -2;
|
|
3588
3588
|
break;
|
|
3589
3589
|
}
|
|
3590
3590
|
}
|
|
@@ -3877,7 +3877,7 @@ W.prototype.normalize = function(e) {
|
|
|
3877
3877
|
};
|
|
3878
3878
|
W.prototype.onCompile = function() {
|
|
3879
3879
|
};
|
|
3880
|
-
const
|
|
3880
|
+
const _u = 2147483647, tu = 36, Ne = 1, Nu = 26, Ro = 38, qo = 700, Kt = 72, Yt = 128, Xt = "-", Vo = /^xn--/, $o = /[^\0-\x7F]/, Ho = /[\x2E\u3002\uFF0E\uFF61]/g, Uo = {
|
|
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"
|
|
@@ -3933,15 +3933,15 @@ const Go = (u) => String.fromCodePoint(...u), Wo = function(u) {
|
|
|
3933
3933
|
for (let l = 1, f = tu; ; f += tu) {
|
|
3934
3934
|
i >= t && fu("invalid-input");
|
|
3935
3935
|
const m = Wo(u.charCodeAt(i++));
|
|
3936
|
-
m >= tu && fu("invalid-input"), m > nu((
|
|
3937
|
-
const
|
|
3938
|
-
if (m <
|
|
3936
|
+
m >= tu && fu("invalid-input"), m > nu((_u - n) / l) && fu("overflow"), n += m * l;
|
|
3937
|
+
const b = f <= o ? Ne : f >= o + Nu ? Nu : f - o;
|
|
3938
|
+
if (m < b)
|
|
3939
3939
|
break;
|
|
3940
|
-
const d = tu -
|
|
3941
|
-
l > nu(
|
|
3940
|
+
const d = tu - b;
|
|
3941
|
+
l > nu(_u / d) && fu("overflow"), l *= d;
|
|
3942
3942
|
}
|
|
3943
3943
|
const s = e.length + 1;
|
|
3944
|
-
o = t0(n - a, s, a == 0), nu(n / s) >
|
|
3944
|
+
o = t0(n - a, s, a == 0), nu(n / s) > _u - r && fu("overflow"), r += nu(n / s), n %= s, e.splice(n++, 0, r);
|
|
3945
3945
|
}
|
|
3946
3946
|
return String.fromCodePoint(...e);
|
|
3947
3947
|
}, r0 = function(u) {
|
|
@@ -3954,22 +3954,22 @@ const Go = (u) => String.fromCodePoint(...u), Wo = function(u) {
|
|
|
3954
3954
|
const c = e.length;
|
|
3955
3955
|
let i = c;
|
|
3956
3956
|
for (c && e.push(Xt); i < t; ) {
|
|
3957
|
-
let a =
|
|
3957
|
+
let a = _u;
|
|
3958
3958
|
for (const l of u)
|
|
3959
3959
|
l >= n && l < a && (a = l);
|
|
3960
3960
|
const s = i + 1;
|
|
3961
|
-
a - n > nu((
|
|
3961
|
+
a - n > nu((_u - r) / s) && fu("overflow"), r += (a - n) * s, n = a;
|
|
3962
3962
|
for (const l of u)
|
|
3963
|
-
if (l < n && ++r >
|
|
3963
|
+
if (l < n && ++r > _u && fu("overflow"), l === n) {
|
|
3964
3964
|
let f = r;
|
|
3965
3965
|
for (let m = tu; ; m += tu) {
|
|
3966
|
-
const
|
|
3967
|
-
if (f <
|
|
3966
|
+
const b = m <= o ? Ne : m >= o + Nu ? Nu : m - o;
|
|
3967
|
+
if (f < b)
|
|
3968
3968
|
break;
|
|
3969
|
-
const d = f -
|
|
3969
|
+
const d = f - b, v = tu - b;
|
|
3970
3970
|
e.push(
|
|
3971
|
-
se(pt(
|
|
3972
|
-
), f = nu(d /
|
|
3971
|
+
se(pt(b + d % v, 0))
|
|
3972
|
+
), f = nu(d / v);
|
|
3973
3973
|
}
|
|
3974
3974
|
e.push(se(pt(f, 0))), o = t0(r, s, i === c), r = 0, ++i;
|
|
3975
3975
|
}
|
|
@@ -4197,12 +4197,12 @@ function oc(u) {
|
|
|
4197
4197
|
e.hostname = o0.toUnicode(e.hostname);
|
|
4198
4198
|
} catch {
|
|
4199
4199
|
}
|
|
4200
|
-
return
|
|
4200
|
+
return yu(Ee(e), yu.defaultChars + "%");
|
|
4201
4201
|
}
|
|
4202
4202
|
function J(u, e) {
|
|
4203
4203
|
if (!(this instanceof J))
|
|
4204
4204
|
return new J(u, e);
|
|
4205
|
-
e || we(u) || (e = u || {}, u = "default"), this.inline = new Pu(), this.block = new Ku(), this.core = new Te(), this.renderer = new
|
|
4205
|
+
e || we(u) || (e = u || {}, u = "default"), this.inline = new Pu(), this.block = new Ku(), this.core = new Te(), this.renderer = new vu(), this.linkify = new W(), this.validateLink = nc, this.normalizeLink = rc, this.normalizeLinkText = oc, this.utils = cr, this.helpers = Qu({}, lr), this.options = {}, this.configure(u), e && this.set(e);
|
|
4206
4206
|
}
|
|
4207
4207
|
J.prototype.set = function(u) {
|
|
4208
4208
|
return Qu(this.options, u), this;
|
|
@@ -4269,23 +4269,23 @@ var cc = { 207: (u, e, t) => {
|
|
|
4269
4269
|
}, 452: (u) => {
|
|
4270
4270
|
var e = (function(t) {
|
|
4271
4271
|
var n, r = Object.prototype, o = r.hasOwnProperty, c = typeof Symbol == "function" ? Symbol : {}, i = c.iterator || "@@iterator", a = c.asyncIterator || "@@asyncIterator", s = c.toStringTag || "@@toStringTag";
|
|
4272
|
-
function l(
|
|
4273
|
-
return Object.defineProperty(
|
|
4272
|
+
function l(y, _, S) {
|
|
4273
|
+
return Object.defineProperty(y, _, { value: S, enumerable: !0, configurable: !0, writable: !0 }), y[_];
|
|
4274
4274
|
}
|
|
4275
4275
|
try {
|
|
4276
4276
|
l({}, "");
|
|
4277
4277
|
} catch {
|
|
4278
|
-
l = function(
|
|
4279
|
-
return
|
|
4278
|
+
l = function(_, S, N) {
|
|
4279
|
+
return _[S] = N;
|
|
4280
4280
|
};
|
|
4281
4281
|
}
|
|
4282
|
-
function f(
|
|
4283
|
-
var w =
|
|
4282
|
+
function f(y, _, S, N) {
|
|
4283
|
+
var w = _ && _.prototype instanceof D ? _ : D, $ = Object.create(w.prototype), H = new Q(N || []);
|
|
4284
4284
|
return $._invoke = /* @__PURE__ */ (function(K, cu, O) {
|
|
4285
|
-
var Z =
|
|
4285
|
+
var Z = b;
|
|
4286
4286
|
return function(eu, Le) {
|
|
4287
|
-
if (Z ===
|
|
4288
|
-
if (Z ===
|
|
4287
|
+
if (Z === v) throw new Error("Generator is already running");
|
|
4288
|
+
if (Z === k) {
|
|
4289
4289
|
if (eu === "throw") throw Le;
|
|
4290
4290
|
return uu();
|
|
4291
4291
|
}
|
|
@@ -4294,65 +4294,65 @@ var cc = { 207: (u, e, t) => {
|
|
|
4294
4294
|
if (Oe) {
|
|
4295
4295
|
var Xu = j(Oe, O);
|
|
4296
4296
|
if (Xu) {
|
|
4297
|
-
if (Xu ===
|
|
4297
|
+
if (Xu === F) continue;
|
|
4298
4298
|
return Xu;
|
|
4299
4299
|
}
|
|
4300
4300
|
}
|
|
4301
4301
|
if (O.method === "next") O.sent = O._sent = O.arg;
|
|
4302
4302
|
else if (O.method === "throw") {
|
|
4303
|
-
if (Z ===
|
|
4303
|
+
if (Z === b) throw Z = k, O.arg;
|
|
4304
4304
|
O.dispatchException(O.arg);
|
|
4305
4305
|
} else O.method === "return" && O.abrupt("return", O.arg);
|
|
4306
|
-
Z =
|
|
4307
|
-
var
|
|
4308
|
-
if (
|
|
4309
|
-
if (Z = O.done ?
|
|
4310
|
-
return { value:
|
|
4306
|
+
Z = v;
|
|
4307
|
+
var Du = m(K, cu, O);
|
|
4308
|
+
if (Du.type === "normal") {
|
|
4309
|
+
if (Z = O.done ? k : d, Du.arg === F) continue;
|
|
4310
|
+
return { value: Du.arg, done: O.done };
|
|
4311
4311
|
}
|
|
4312
|
-
|
|
4312
|
+
Du.type === "throw" && (Z = k, O.method = "throw", O.arg = Du.arg);
|
|
4313
4313
|
}
|
|
4314
4314
|
};
|
|
4315
|
-
})(
|
|
4315
|
+
})(y, S, H), $;
|
|
4316
4316
|
}
|
|
4317
|
-
function m(
|
|
4317
|
+
function m(y, _, S) {
|
|
4318
4318
|
try {
|
|
4319
|
-
return { type: "normal", arg:
|
|
4319
|
+
return { type: "normal", arg: y.call(_, S) };
|
|
4320
4320
|
} catch (N) {
|
|
4321
4321
|
return { type: "throw", arg: N };
|
|
4322
4322
|
}
|
|
4323
4323
|
}
|
|
4324
4324
|
t.wrap = f;
|
|
4325
|
-
var
|
|
4326
|
-
function
|
|
4325
|
+
var b = "suspendedStart", d = "suspendedYield", v = "executing", k = "completed", F = {};
|
|
4326
|
+
function D() {
|
|
4327
4327
|
}
|
|
4328
|
-
function
|
|
4328
|
+
function C() {
|
|
4329
4329
|
}
|
|
4330
|
-
function
|
|
4330
|
+
function p() {
|
|
4331
4331
|
}
|
|
4332
|
-
var
|
|
4333
|
-
l(
|
|
4332
|
+
var x = {};
|
|
4333
|
+
l(x, i, (function() {
|
|
4334
4334
|
return this;
|
|
4335
4335
|
}));
|
|
4336
|
-
var
|
|
4337
|
-
|
|
4338
|
-
var
|
|
4339
|
-
function I(
|
|
4340
|
-
["next", "throw", "return"].forEach((function(
|
|
4341
|
-
l(
|
|
4342
|
-
return this._invoke(
|
|
4336
|
+
var h = Object.getPrototypeOf, g = h && h(h(M([])));
|
|
4337
|
+
g && g !== r && o.call(g, i) && (x = g);
|
|
4338
|
+
var E = p.prototype = D.prototype = Object.create(x);
|
|
4339
|
+
function I(y) {
|
|
4340
|
+
["next", "throw", "return"].forEach((function(_) {
|
|
4341
|
+
l(y, _, (function(S) {
|
|
4342
|
+
return this._invoke(_, S);
|
|
4343
4343
|
}));
|
|
4344
4344
|
}));
|
|
4345
4345
|
}
|
|
4346
|
-
function T(
|
|
4346
|
+
function T(y, _) {
|
|
4347
4347
|
function S(w, $, H, K) {
|
|
4348
|
-
var cu = m(
|
|
4348
|
+
var cu = m(y[w], y, $);
|
|
4349
4349
|
if (cu.type !== "throw") {
|
|
4350
4350
|
var O = cu.arg, Z = O.value;
|
|
4351
|
-
return Z && typeof Z == "object" && o.call(Z, "__await") ?
|
|
4351
|
+
return Z && typeof Z == "object" && o.call(Z, "__await") ? _.resolve(Z.__await).then((function(eu) {
|
|
4352
4352
|
S("next", eu, H, K);
|
|
4353
4353
|
}), (function(eu) {
|
|
4354
4354
|
S("throw", eu, H, K);
|
|
4355
|
-
})) :
|
|
4355
|
+
})) : _.resolve(Z).then((function(eu) {
|
|
4356
4356
|
O.value = eu, H(O);
|
|
4357
4357
|
}), (function(eu) {
|
|
4358
4358
|
return S("throw", eu, H, K);
|
|
@@ -4363,46 +4363,46 @@ var cc = { 207: (u, e, t) => {
|
|
|
4363
4363
|
var N;
|
|
4364
4364
|
this._invoke = function(w, $) {
|
|
4365
4365
|
function H() {
|
|
4366
|
-
return new
|
|
4366
|
+
return new _((function(K, cu) {
|
|
4367
4367
|
S(w, $, K, cu);
|
|
4368
4368
|
}));
|
|
4369
4369
|
}
|
|
4370
4370
|
return N = N ? N.then(H, H) : H();
|
|
4371
4371
|
};
|
|
4372
4372
|
}
|
|
4373
|
-
function j(
|
|
4374
|
-
var S =
|
|
4373
|
+
function j(y, _) {
|
|
4374
|
+
var S = y.iterator[_.method];
|
|
4375
4375
|
if (S === n) {
|
|
4376
|
-
if (
|
|
4377
|
-
if (
|
|
4378
|
-
|
|
4376
|
+
if (_.delegate = null, _.method === "throw") {
|
|
4377
|
+
if (y.iterator.return && (_.method = "return", _.arg = n, j(y, _), _.method === "throw")) return F;
|
|
4378
|
+
_.method = "throw", _.arg = new TypeError("The iterator does not provide a 'throw' method");
|
|
4379
4379
|
}
|
|
4380
|
-
return
|
|
4380
|
+
return F;
|
|
4381
4381
|
}
|
|
4382
|
-
var N = m(S,
|
|
4383
|
-
if (N.type === "throw") return
|
|
4382
|
+
var N = m(S, y.iterator, _.arg);
|
|
4383
|
+
if (N.type === "throw") return _.method = "throw", _.arg = N.arg, _.delegate = null, F;
|
|
4384
4384
|
var w = N.arg;
|
|
4385
|
-
return w ? w.done ? (
|
|
4385
|
+
return w ? w.done ? (_[y.resultName] = w.value, _.next = y.nextLoc, _.method !== "return" && (_.method = "next", _.arg = n), _.delegate = null, F) : w : (_.method = "throw", _.arg = new TypeError("iterator result is not an object"), _.delegate = null, F);
|
|
4386
4386
|
}
|
|
4387
|
-
function L(
|
|
4388
|
-
var
|
|
4389
|
-
1 in
|
|
4387
|
+
function L(y) {
|
|
4388
|
+
var _ = { tryLoc: y[0] };
|
|
4389
|
+
1 in y && (_.catchLoc = y[1]), 2 in y && (_.finallyLoc = y[2], _.afterLoc = y[3]), this.tryEntries.push(_);
|
|
4390
4390
|
}
|
|
4391
|
-
function R(
|
|
4392
|
-
var
|
|
4393
|
-
|
|
4391
|
+
function R(y) {
|
|
4392
|
+
var _ = y.completion || {};
|
|
4393
|
+
_.type = "normal", delete _.arg, y.completion = _;
|
|
4394
4394
|
}
|
|
4395
|
-
function Q(
|
|
4396
|
-
this.tryEntries = [{ tryLoc: "root" }],
|
|
4395
|
+
function Q(y) {
|
|
4396
|
+
this.tryEntries = [{ tryLoc: "root" }], y.forEach(L, this), this.reset(!0);
|
|
4397
4397
|
}
|
|
4398
|
-
function M(
|
|
4399
|
-
if (
|
|
4400
|
-
var
|
|
4401
|
-
if (
|
|
4402
|
-
if (typeof
|
|
4403
|
-
if (!isNaN(
|
|
4398
|
+
function M(y) {
|
|
4399
|
+
if (y) {
|
|
4400
|
+
var _ = y[i];
|
|
4401
|
+
if (_) return _.call(y);
|
|
4402
|
+
if (typeof y.next == "function") return y;
|
|
4403
|
+
if (!isNaN(y.length)) {
|
|
4404
4404
|
var S = -1, N = function w() {
|
|
4405
|
-
for (; ++S <
|
|
4405
|
+
for (; ++S < y.length; ) if (o.call(y, S)) return w.value = y[S], w.done = !1, w;
|
|
4406
4406
|
return w.value = n, w.done = !0, w;
|
|
4407
4407
|
};
|
|
4408
4408
|
return N.next = N;
|
|
@@ -4413,47 +4413,47 @@ var cc = { 207: (u, e, t) => {
|
|
|
4413
4413
|
function uu() {
|
|
4414
4414
|
return { value: n, done: !0 };
|
|
4415
4415
|
}
|
|
4416
|
-
return
|
|
4417
|
-
var
|
|
4418
|
-
return !!
|
|
4419
|
-
}, t.mark = function(
|
|
4420
|
-
return Object.setPrototypeOf ? Object.setPrototypeOf(
|
|
4421
|
-
}, t.awrap = function(
|
|
4422
|
-
return { __await:
|
|
4416
|
+
return C.prototype = p, l(E, "constructor", p), l(p, "constructor", C), C.displayName = l(p, s, "GeneratorFunction"), t.isGeneratorFunction = function(y) {
|
|
4417
|
+
var _ = typeof y == "function" && y.constructor;
|
|
4418
|
+
return !!_ && (_ === C || (_.displayName || _.name) === "GeneratorFunction");
|
|
4419
|
+
}, t.mark = function(y) {
|
|
4420
|
+
return Object.setPrototypeOf ? Object.setPrototypeOf(y, p) : (y.__proto__ = p, l(y, s, "GeneratorFunction")), y.prototype = Object.create(E), y;
|
|
4421
|
+
}, t.awrap = function(y) {
|
|
4422
|
+
return { __await: y };
|
|
4423
4423
|
}, I(T.prototype), l(T.prototype, a, (function() {
|
|
4424
4424
|
return this;
|
|
4425
|
-
})), t.AsyncIterator = T, t.async = function(
|
|
4425
|
+
})), t.AsyncIterator = T, t.async = function(y, _, S, N, w) {
|
|
4426
4426
|
w === void 0 && (w = Promise);
|
|
4427
|
-
var $ = new T(f(
|
|
4428
|
-
return t.isGeneratorFunction(
|
|
4427
|
+
var $ = new T(f(y, _, S, N), w);
|
|
4428
|
+
return t.isGeneratorFunction(_) ? $ : $.next().then((function(H) {
|
|
4429
4429
|
return H.done ? H.value : $.next();
|
|
4430
4430
|
}));
|
|
4431
|
-
}, I(
|
|
4431
|
+
}, I(E), l(E, s, "Generator"), l(E, i, (function() {
|
|
4432
4432
|
return this;
|
|
4433
|
-
})), l(
|
|
4433
|
+
})), l(E, "toString", (function() {
|
|
4434
4434
|
return "[object Generator]";
|
|
4435
|
-
})), t.keys = function(
|
|
4436
|
-
var
|
|
4437
|
-
for (var S in
|
|
4438
|
-
return
|
|
4439
|
-
for (;
|
|
4440
|
-
var w =
|
|
4441
|
-
if (w in
|
|
4435
|
+
})), t.keys = function(y) {
|
|
4436
|
+
var _ = [];
|
|
4437
|
+
for (var S in y) _.push(S);
|
|
4438
|
+
return _.reverse(), function N() {
|
|
4439
|
+
for (; _.length; ) {
|
|
4440
|
+
var w = _.pop();
|
|
4441
|
+
if (w in y) return N.value = w, N.done = !1, N;
|
|
4442
4442
|
}
|
|
4443
4443
|
return N.done = !0, N;
|
|
4444
4444
|
};
|
|
4445
|
-
}, t.values = M, Q.prototype = { constructor: Q, reset: function(
|
|
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(R), !
|
|
4445
|
+
}, t.values = M, Q.prototype = { constructor: Q, reset: function(y) {
|
|
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(R), !y) for (var _ in this) _.charAt(0) === "t" && o.call(this, _) && !isNaN(+_.slice(1)) && (this[_] = n);
|
|
4447
4447
|
}, stop: function() {
|
|
4448
4448
|
this.done = !0;
|
|
4449
|
-
var
|
|
4450
|
-
if (
|
|
4449
|
+
var y = this.tryEntries[0].completion;
|
|
4450
|
+
if (y.type === "throw") throw y.arg;
|
|
4451
4451
|
return this.rval;
|
|
4452
|
-
}, dispatchException: function(
|
|
4453
|
-
if (this.done) throw
|
|
4454
|
-
var
|
|
4452
|
+
}, dispatchException: function(y) {
|
|
4453
|
+
if (this.done) throw y;
|
|
4454
|
+
var _ = this;
|
|
4455
4455
|
function S(cu, O) {
|
|
4456
|
-
return $.type = "throw", $.arg =
|
|
4456
|
+
return $.type = "throw", $.arg = y, _.next = cu, O && (_.method = "next", _.arg = n), !!O;
|
|
4457
4457
|
}
|
|
4458
4458
|
for (var N = this.tryEntries.length - 1; N >= 0; --N) {
|
|
4459
4459
|
var w = this.tryEntries[N], $ = w.completion;
|
|
@@ -4471,7 +4471,7 @@ var cc = { 207: (u, e, t) => {
|
|
|
4471
4471
|
}
|
|
4472
4472
|
}
|
|
4473
4473
|
}
|
|
4474
|
-
}, abrupt: function(
|
|
4474
|
+
}, abrupt: function(y, _) {
|
|
4475
4475
|
for (var S = this.tryEntries.length - 1; S >= 0; --S) {
|
|
4476
4476
|
var N = this.tryEntries[S];
|
|
4477
4477
|
if (N.tryLoc <= this.prev && o.call(N, "finallyLoc") && this.prev < N.finallyLoc) {
|
|
@@ -4479,21 +4479,21 @@ var cc = { 207: (u, e, t) => {
|
|
|
4479
4479
|
break;
|
|
4480
4480
|
}
|
|
4481
4481
|
}
|
|
4482
|
-
w && (
|
|
4482
|
+
w && (y === "break" || y === "continue") && w.tryLoc <= _ && _ <= w.finallyLoc && (w = null);
|
|
4483
4483
|
var $ = w ? w.completion : {};
|
|
4484
|
-
return $.type =
|
|
4485
|
-
}, complete: function(
|
|
4486
|
-
if (
|
|
4487
|
-
return
|
|
4488
|
-
}, finish: function(
|
|
4489
|
-
for (var
|
|
4490
|
-
var S = this.tryEntries[
|
|
4491
|
-
if (S.finallyLoc ===
|
|
4484
|
+
return $.type = y, $.arg = _, w ? (this.method = "next", this.next = w.finallyLoc, F) : this.complete($);
|
|
4485
|
+
}, complete: function(y, _) {
|
|
4486
|
+
if (y.type === "throw") throw y.arg;
|
|
4487
|
+
return y.type === "break" || y.type === "continue" ? this.next = y.arg : y.type === "return" ? (this.rval = this.arg = y.arg, this.method = "return", this.next = "end") : y.type === "normal" && _ && (this.next = _), F;
|
|
4488
|
+
}, finish: function(y) {
|
|
4489
|
+
for (var _ = this.tryEntries.length - 1; _ >= 0; --_) {
|
|
4490
|
+
var S = this.tryEntries[_];
|
|
4491
|
+
if (S.finallyLoc === y) return this.complete(S.completion, S.afterLoc), R(S), F;
|
|
4492
4492
|
}
|
|
4493
|
-
}, catch: function(
|
|
4494
|
-
for (var
|
|
4495
|
-
var S = this.tryEntries[
|
|
4496
|
-
if (S.tryLoc ===
|
|
4493
|
+
}, catch: function(y) {
|
|
4494
|
+
for (var _ = this.tryEntries.length - 1; _ >= 0; --_) {
|
|
4495
|
+
var S = this.tryEntries[_];
|
|
4496
|
+
if (S.tryLoc === y) {
|
|
4497
4497
|
var N = S.completion;
|
|
4498
4498
|
if (N.type === "throw") {
|
|
4499
4499
|
var w = N.arg;
|
|
@@ -4503,8 +4503,8 @@ var cc = { 207: (u, e, t) => {
|
|
|
4503
4503
|
}
|
|
4504
4504
|
}
|
|
4505
4505
|
throw new Error("illegal catch attempt");
|
|
4506
|
-
}, delegateYield: function(
|
|
4507
|
-
return this.delegate = { iterator: M(
|
|
4506
|
+
}, delegateYield: function(y, _, S) {
|
|
4507
|
+
return this.delegate = { iterator: M(y), resultName: _, nextLoc: S }, this.method === "next" && (this.arg = n), F;
|
|
4508
4508
|
} }, t;
|
|
4509
4509
|
})(u.exports);
|
|
4510
4510
|
try {
|
|
@@ -4552,28 +4552,28 @@ function Lu(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
4554
|
Y.d(i0, { A: () => dc });
|
|
4555
|
-
const
|
|
4555
|
+
const A = (mt = { Fragment: () => iu.Fragment, computed: () => iu.computed, createTextVNode: () => iu.createTextVNode, createVNode: () => iu.createVNode, defineComponent: () => iu.defineComponent, reactive: () => iu.reactive, ref: () => iu.ref, watch: () => iu.watch, watchEffect: () => iu.watchEffect }, le = {}, Y.d(le, mt), le), ic = (0, A.defineComponent)({ props: { data: { required: !0, type: String }, onClick: Function }, render: function() {
|
|
4556
4556
|
var u = this.data, e = this.onClick;
|
|
4557
|
-
return (0,
|
|
4558
|
-
} }), ac = (0,
|
|
4557
|
+
return (0, A.createVNode)("span", { class: "vjs-tree-brackets", onClick: e }, [u]);
|
|
4558
|
+
} }), ac = (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
|
-
return { uiType: (0,
|
|
4560
|
+
return { uiType: (0, A.computed)((function() {
|
|
4561
4561
|
return u.isMultiple ? "checkbox" : "radio";
|
|
4562
|
-
})), model: (0,
|
|
4562
|
+
})), model: (0, A.computed)({ get: function() {
|
|
4563
4563
|
return u.checked;
|
|
4564
4564
|
}, set: function(n) {
|
|
4565
4565
|
return t("update:modelValue", n);
|
|
4566
4566
|
} }) };
|
|
4567
4567
|
}, render: function() {
|
|
4568
4568
|
var u = this.uiType, e = this.model, t = this.$emit;
|
|
4569
|
-
return (0,
|
|
4569
|
+
return (0, A.createVNode)("label", { class: ["vjs-check-controller", e ? "is-checked" : ""], onClick: function(n) {
|
|
4570
4570
|
return n.stopPropagation();
|
|
4571
|
-
} }, [(0,
|
|
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
|
-
} }), sc = (0,
|
|
4574
|
+
} }), sc = (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
|
-
return t || u === "objectCollapsed" || u === "arrayCollapsed" ? (0,
|
|
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
|
} });
|
|
4578
4578
|
var mt, le;
|
|
4579
4579
|
function _e(u) {
|
|
@@ -4589,16 +4589,16 @@ function s0(u) {
|
|
|
4589
4589
|
function mu(u) {
|
|
4590
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, m = s0(u);
|
|
4591
4591
|
if (m === "array") {
|
|
4592
|
-
var
|
|
4593
|
-
return mu(
|
|
4592
|
+
var b = xt(u.map((function(k, F, D) {
|
|
4593
|
+
return mu(k, "".concat(e, "[").concat(F, "]"), t + 1, { index: F, showComma: F !== D.length - 1, length: f, type: i });
|
|
4594
4594
|
})));
|
|
4595
|
-
return [mu("[", e, t, { showComma: !1, key: r, length: u.length, type: "arrayStart" })[0]].concat(
|
|
4595
|
+
return [mu("[", e, t, { showComma: !1, key: r, length: u.length, type: "arrayStart" })[0]].concat(b, mu("]", e, t, { showComma: s, length: u.length, type: "arrayEnd" })[0]);
|
|
4596
4596
|
}
|
|
4597
4597
|
if (m === "object") {
|
|
4598
|
-
var d = Object.keys(u),
|
|
4599
|
-
return mu(u[
|
|
4598
|
+
var d = Object.keys(u), v = xt(d.map((function(k, F, D) {
|
|
4599
|
+
return mu(u[k], /^[a-zA-Z_]\w*$/.test(k) ? "".concat(e, ".").concat(k) : "".concat(e, '["').concat(k, '"]'), t + 1, { key: k, showComma: F !== D.length - 1, length: f, type: i });
|
|
4600
4600
|
})));
|
|
4601
|
-
return [mu("{", e, t, { showComma: !1, key: r, index: o, length: d.length, type: "objectStart" })[0]].concat(
|
|
4601
|
+
return [mu("{", e, t, { showComma: !1, key: r, index: o, length: d.length, type: "objectStart" })[0]].concat(v, mu("}", 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
|
}
|
|
@@ -4660,57 +4660,57 @@ function yt(u) {
|
|
|
4660
4660
|
var l0 = { 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 fc = (0,
|
|
4664
|
-
var t = e.emit, n = (0,
|
|
4663
|
+
const fc = (0, A.defineComponent)({ name: "TreeNode", props: yt(yt({}, l0), {}, { 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
|
+
var t = e.emit, n = (0, A.computed)((function() {
|
|
4665
4665
|
return s0(u.node.content);
|
|
4666
|
-
})), r = (0,
|
|
4666
|
+
})), r = (0, A.computed)((function() {
|
|
4667
4667
|
return "vjs-value vjs-value-".concat(n.value);
|
|
4668
|
-
})), o = (0,
|
|
4668
|
+
})), o = (0, A.computed)((function() {
|
|
4669
4669
|
return u.showDoubleQuotes ? '"'.concat(u.node.key, '"') : u.node.key;
|
|
4670
|
-
})), c = (0,
|
|
4670
|
+
})), c = (0, A.computed)((function() {
|
|
4671
4671
|
return u.selectableType === "multiple";
|
|
4672
|
-
})), i = (0,
|
|
4672
|
+
})), i = (0, A.computed)((function() {
|
|
4673
4673
|
return u.selectableType === "single";
|
|
4674
|
-
})), a = (0,
|
|
4674
|
+
})), a = (0, A.computed)((function() {
|
|
4675
4675
|
return u.nodeSelectable(u.node) && (c.value || i.value);
|
|
4676
|
-
})), s = (0,
|
|
4677
|
-
var
|
|
4676
|
+
})), s = (0, A.reactive)({ editing: !1 }), l = function(h) {
|
|
4677
|
+
var g, E, I = (E = (g = h.target) === null || g === void 0 ? void 0 : g.value) === "null" ? null : E === "undefined" ? void 0 : E === "true" || E !== "false" && (E[0] + E[E.length - 1] === '""' || E[0] + E[E.length - 1] === "''" ? E.slice(1, -1) : typeof Number(E) == "number" && !isNaN(Number(E)) || E === "NaN" ? Number(E) : E);
|
|
4678
4678
|
t("valueChange", I, u.node.path);
|
|
4679
|
-
}, f = (0,
|
|
4680
|
-
var
|
|
4681
|
-
return
|
|
4679
|
+
}, f = (0, A.computed)((function() {
|
|
4680
|
+
var h, g = (h = u.node) === null || h === void 0 ? void 0 : h.content;
|
|
4681
|
+
return g === null ? g = "null" : g === void 0 && (g = "undefined"), n.value === "string" ? '"'.concat(g, '"') : g + "";
|
|
4682
4682
|
})), m = function() {
|
|
4683
|
-
var
|
|
4684
|
-
return
|
|
4685
|
-
},
|
|
4683
|
+
var h = u.renderNodeValue;
|
|
4684
|
+
return h ? h({ node: u.node, defaultValue: f.value }) : f.value;
|
|
4685
|
+
}, b = function() {
|
|
4686
4686
|
t("bracketsClick", !u.collapsed, u.node);
|
|
4687
4687
|
}, d = function() {
|
|
4688
4688
|
t("iconClick", !u.collapsed, u.node);
|
|
4689
|
-
},
|
|
4689
|
+
}, v = function() {
|
|
4690
4690
|
t("selectedChange", u.node);
|
|
4691
|
-
},
|
|
4691
|
+
}, k = function() {
|
|
4692
4692
|
t("nodeClick", u.node), a.value && u.selectOnClickNode && t("selectedChange", u.node);
|
|
4693
|
-
},
|
|
4693
|
+
}, F = function() {
|
|
4694
4694
|
t("nodeMouseover", u.node);
|
|
4695
|
-
},
|
|
4695
|
+
}, D = function(h) {
|
|
4696
4696
|
if (u.editable && !s.editing) {
|
|
4697
4697
|
s.editing = !0;
|
|
4698
|
-
var
|
|
4698
|
+
var g = function E(I) {
|
|
4699
4699
|
var T;
|
|
4700
|
-
I.target !==
|
|
4700
|
+
I.target !== h.target && ((T = I.target) === null || T === void 0 ? void 0 : T.parentElement) !== h.target && (s.editing = !1, document.removeEventListener("click", E));
|
|
4701
4701
|
};
|
|
4702
|
-
document.removeEventListener("click",
|
|
4702
|
+
document.removeEventListener("click", g), document.addEventListener("click", g);
|
|
4703
4703
|
}
|
|
4704
|
-
},
|
|
4705
|
-
var
|
|
4706
|
-
var
|
|
4704
|
+
}, C = (function() {
|
|
4705
|
+
var h = (0, A.ref)(!1), g = (function() {
|
|
4706
|
+
var E, I = (E = _t().mark((function T(j) {
|
|
4707
4707
|
return _t().wrap((function(L) {
|
|
4708
4708
|
for (; ; ) switch (L.prev = L.next) {
|
|
4709
4709
|
case 0:
|
|
4710
4710
|
return L.prev = 0, L.next = 3, navigator.clipboard.writeText(j);
|
|
4711
4711
|
case 3:
|
|
4712
|
-
|
|
4713
|
-
|
|
4712
|
+
h.value = !0, setTimeout((function() {
|
|
4713
|
+
h.value = !1;
|
|
4714
4714
|
}), 300), L.next = 10;
|
|
4715
4715
|
break;
|
|
4716
4716
|
case 7:
|
|
@@ -4723,12 +4723,12 @@ const fc = (0, F.defineComponent)({ name: "TreeNode", props: yt(yt({}, l0), {},
|
|
|
4723
4723
|
})), function() {
|
|
4724
4724
|
var T = this, j = arguments;
|
|
4725
4725
|
return new Promise((function(L, R) {
|
|
4726
|
-
var Q =
|
|
4727
|
-
function M(
|
|
4728
|
-
gt(Q, L, R, M, uu, "next",
|
|
4726
|
+
var Q = E.apply(T, j);
|
|
4727
|
+
function M(y) {
|
|
4728
|
+
gt(Q, L, R, M, uu, "next", y);
|
|
4729
4729
|
}
|
|
4730
|
-
function uu(
|
|
4731
|
-
gt(Q, L, R, M, uu, "throw",
|
|
4730
|
+
function uu(y) {
|
|
4731
|
+
gt(Q, L, R, M, uu, "throw", y);
|
|
4732
4732
|
}
|
|
4733
4733
|
M(void 0);
|
|
4734
4734
|
}));
|
|
@@ -4737,23 +4737,23 @@ const fc = (0, F.defineComponent)({ name: "TreeNode", props: yt(yt({}, l0), {},
|
|
|
4737
4737
|
return I.apply(this, arguments);
|
|
4738
4738
|
};
|
|
4739
4739
|
})();
|
|
4740
|
-
return { copy:
|
|
4741
|
-
})().copy,
|
|
4742
|
-
var
|
|
4743
|
-
|
|
4744
|
-
},
|
|
4745
|
-
var
|
|
4746
|
-
if (!
|
|
4747
|
-
var
|
|
4748
|
-
return typeof
|
|
4740
|
+
return { copy: g };
|
|
4741
|
+
})().copy, p = function() {
|
|
4742
|
+
var h = u.node, g = h.key, E = h.path, I = u.rootPath, T = new Function("data", "return data".concat(E.slice(I.length)))(u.data), j = JSON.stringify(g ? Lu({}, g, T) : T, null, 2);
|
|
4743
|
+
C(j);
|
|
4744
|
+
}, x = function() {
|
|
4745
|
+
var h = u.renderNodeActions;
|
|
4746
|
+
if (!h) return null;
|
|
4747
|
+
var g = { copy: p };
|
|
4748
|
+
return typeof h == "function" ? h({ node: u.node, defaultActions: g }) : (0, A.createVNode)("span", { onClick: p, class: "vjs-tree-node-actions-item" }, [(0, A.createTextVNode)("copy")]);
|
|
4749
4749
|
};
|
|
4750
4750
|
return function() {
|
|
4751
|
-
var
|
|
4752
|
-
return (0,
|
|
4753
|
-
return (0,
|
|
4754
|
-
return (0,
|
|
4751
|
+
var h, g = 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: F, style: u.style }, [u.showLineNumber && (0, A.createVNode)("span", { class: "vjs-node-index" }, [g.id + 1]), u.showSelectController && a.value && g.type !== "objectEnd" && g.type !== "arrayEnd" && (0, A.createVNode)(ac, { isMultiple: c.value, checked: u.checked, onChange: v }, null), (0, A.createVNode)("div", { class: "vjs-indent" }, [Array.from(Array(g.level)).map((function(E, I) {
|
|
4753
|
+
return (0, A.createVNode)("div", { key: I, class: { "vjs-indent-unit": !0, "has-line": u.showLine } }, [Array.from(Array(u.indent)).map((function() {
|
|
4754
|
+
return (0, A.createVNode)(A.Fragment, null, [(0, A.createTextVNode)(" ")]);
|
|
4755
4755
|
}))]);
|
|
4756
|
-
})), u.showIcon && (0,
|
|
4756
|
+
})), u.showIcon && (0, A.createVNode)(sc, { nodeType: g.type, onClick: d }, null)]), g.key && (0, A.createVNode)("span", { class: "vjs-key" }, [(h = u.renderNodeKey, h ? h({ node: u.node, defaultKey: o.value || "" }) : o.value), (0, A.createVNode)("span", { class: "vjs-colon" }, [":".concat(u.showKeyValueSpace ? " " : "")])]), (0, A.createVNode)("span", null, [g.type !== "content" && g.content ? (0, A.createVNode)(ic, { data: g.content.toString(), onClick: b }, null) : (0, A.createVNode)("span", { class: r.value, onClick: !u.editable || u.editableTrigger && u.editableTrigger !== "click" ? void 0 : D, onDblclick: u.editable && u.editableTrigger === "dblclick" ? D : 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) : m()]), g.showComma && (0, A.createVNode)("span", null, [","]), u.showLength && u.collapsed && (0, A.createVNode)("span", { class: "vjs-comment" }, [(0, A.createTextVNode)(" // "), g.length, (0, A.createTextVNode)(" items ")])]), u.renderNodeActions && (0, A.createVNode)("span", { class: "vjs-tree-node-actions" }, [x()])]);
|
|
4757
4757
|
};
|
|
4758
4758
|
} });
|
|
4759
4759
|
function Ct(u, e) {
|
|
@@ -4777,121 +4777,121 @@ function G(u) {
|
|
|
4777
4777
|
}
|
|
4778
4778
|
return u;
|
|
4779
4779
|
}
|
|
4780
|
-
const dc = (0,
|
|
4780
|
+
const dc = (0, A.defineComponent)({ name: "Tree", props: G(G({}, l0), {}, { 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
|
-
var t = e.emit, n = e.slots, r = (0,
|
|
4785
|
+
var t = e.emit, n = e.slots, r = (0, A.ref)(), o = (0, A.computed)((function() {
|
|
4786
4786
|
return mu(u.data, u.rootPath);
|
|
4787
|
-
})), c = function(
|
|
4788
|
-
return o.value.reduce((function(
|
|
4789
|
-
var
|
|
4790
|
-
return
|
|
4787
|
+
})), c = function(p, x) {
|
|
4788
|
+
return o.value.reduce((function(h, g) {
|
|
4789
|
+
var E, I = g.level >= p || g.length >= x, T = (E = u.pathCollapsible) === null || E === void 0 ? void 0 : E.call(u, g);
|
|
4790
|
+
return g.type !== "objectStart" && g.type !== "arrayStart" || !I && !T ? h : G(G({}, h), {}, Lu({}, g.path, 1));
|
|
4791
4791
|
}), {});
|
|
4792
|
-
}, i = (0,
|
|
4793
|
-
for (var
|
|
4794
|
-
var
|
|
4795
|
-
if (
|
|
4796
|
-
var T =
|
|
4797
|
-
|
|
4792
|
+
}, i = (0, A.reactive)({ translateY: 0, visibleData: null, hiddenPaths: c(u.deep, u.collapsedNodeLength) }), a = (0, A.computed)((function() {
|
|
4793
|
+
for (var p = null, x = [], h = o.value.length, g = 0; g < h; g++) {
|
|
4794
|
+
var E = G(G({}, o.value[g]), {}, { id: g }), I = i.hiddenPaths[E.path];
|
|
4795
|
+
if (p && p.path === E.path) {
|
|
4796
|
+
var T = p.type === "objectStart", j = G(G(G({}, E), p), {}, { showComma: E.showComma, content: T ? "{...}" : "[...]", type: T ? "objectCollapsed" : "arrayCollapsed" });
|
|
4797
|
+
p = null, x.push(j);
|
|
4798
4798
|
} else {
|
|
4799
|
-
if (I && !
|
|
4800
|
-
|
|
4799
|
+
if (I && !p) {
|
|
4800
|
+
p = E;
|
|
4801
4801
|
continue;
|
|
4802
4802
|
}
|
|
4803
|
-
if (
|
|
4804
|
-
|
|
4803
|
+
if (p) continue;
|
|
4804
|
+
x.push(E);
|
|
4805
4805
|
}
|
|
4806
4806
|
}
|
|
4807
|
-
return
|
|
4808
|
-
})), s = (0,
|
|
4809
|
-
var
|
|
4810
|
-
return
|
|
4811
|
-
})), l = (0,
|
|
4807
|
+
return x;
|
|
4808
|
+
})), s = (0, A.computed)((function() {
|
|
4809
|
+
var p = u.selectedValue;
|
|
4810
|
+
return p && u.selectableType === "multiple" && Array.isArray(p) ? p : [p];
|
|
4811
|
+
})), l = (0, A.computed)((function() {
|
|
4812
4812
|
return !u.selectableType || u.selectOnClickNode || u.showSelectController ? "" : "When selectableType is not null, selectOnClickNode and showSelectController cannot be false at the same time, because this will cause the selection to fail.";
|
|
4813
4813
|
})), f = function() {
|
|
4814
|
-
var
|
|
4814
|
+
var p = a.value;
|
|
4815
4815
|
if (u.virtual) {
|
|
4816
|
-
var
|
|
4816
|
+
var x, h = u.height / u.itemHeight, g = ((x = r.value) === null || x === void 0 ? void 0 : x.scrollTop) || 0, E = Math.floor(g / u.itemHeight), I = E < 0 ? 0 : E + h > p.length ? p.length - h : E;
|
|
4817
4817
|
I < 0 && (I = 0);
|
|
4818
|
-
var T = I +
|
|
4819
|
-
i.translateY = I * u.itemHeight, i.visibleData =
|
|
4818
|
+
var T = I + h;
|
|
4819
|
+
i.translateY = I * u.itemHeight, i.visibleData = p.filter((function(j, L) {
|
|
4820
4820
|
return L >= I && L < T;
|
|
4821
4821
|
}));
|
|
4822
|
-
} else i.visibleData =
|
|
4822
|
+
} else i.visibleData = p;
|
|
4823
4823
|
}, m = function() {
|
|
4824
4824
|
f();
|
|
4825
|
-
},
|
|
4826
|
-
var
|
|
4827
|
-
if (
|
|
4825
|
+
}, b = function(p) {
|
|
4826
|
+
var x, h, g = p.path, E = u.selectableType;
|
|
4827
|
+
if (E === "multiple") {
|
|
4828
4828
|
var I = s.value.findIndex((function(R) {
|
|
4829
|
-
return R ===
|
|
4829
|
+
return R === g;
|
|
4830
4830
|
})), T = Zu(s.value);
|
|
4831
|
-
I !== -1 ? T.splice(I, 1) : T.push(
|
|
4832
|
-
} else if (
|
|
4833
|
-
var j = (
|
|
4831
|
+
I !== -1 ? T.splice(I, 1) : T.push(g), t("update:selectedValue", T), t("selectedChange", T, Zu(s.value));
|
|
4832
|
+
} else if (E === "single" && s.value[0] !== g) {
|
|
4833
|
+
var j = (x = s.value, h = 1, (function(R) {
|
|
4834
4834
|
if (Array.isArray(R)) return R;
|
|
4835
|
-
})(
|
|
4835
|
+
})(x) || (function(R, Q) {
|
|
4836
4836
|
var M = R == null ? null : typeof Symbol < "u" && R[Symbol.iterator] || R["@@iterator"];
|
|
4837
4837
|
if (M != null) {
|
|
4838
|
-
var uu,
|
|
4838
|
+
var uu, y, _ = [], S = !0, N = !1;
|
|
4839
4839
|
try {
|
|
4840
|
-
for (M = M.call(R); !(S = (uu = M.next()).done) && (
|
|
4840
|
+
for (M = M.call(R); !(S = (uu = M.next()).done) && (_.push(uu.value), !Q || _.length !== Q); S = !0) ;
|
|
4841
4841
|
} catch (w) {
|
|
4842
|
-
N = !0,
|
|
4842
|
+
N = !0, y = w;
|
|
4843
4843
|
} finally {
|
|
4844
4844
|
try {
|
|
4845
4845
|
S || M.return == null || M.return();
|
|
4846
4846
|
} finally {
|
|
4847
|
-
if (N) throw
|
|
4847
|
+
if (N) throw y;
|
|
4848
4848
|
}
|
|
4849
4849
|
}
|
|
4850
|
-
return
|
|
4850
|
+
return _;
|
|
4851
4851
|
}
|
|
4852
|
-
})(
|
|
4852
|
+
})(x, h) || a0(x, h) || (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], L =
|
|
4855
|
+
})())[0], L = g;
|
|
4856
4856
|
t("update:selectedValue", L), t("selectedChange", L, j);
|
|
4857
4857
|
}
|
|
4858
|
-
}, d = function(
|
|
4859
|
-
t("nodeClick",
|
|
4860
|
-
},
|
|
4861
|
-
t("nodeMouseover",
|
|
4862
|
-
},
|
|
4863
|
-
if (
|
|
4858
|
+
}, d = function(p) {
|
|
4859
|
+
t("nodeClick", p);
|
|
4860
|
+
}, v = function(p) {
|
|
4861
|
+
t("nodeMouseover", p);
|
|
4862
|
+
}, k = function(p, x) {
|
|
4863
|
+
if (p) i.hiddenPaths = G(G({}, i.hiddenPaths), {}, Lu({}, x, 1));
|
|
4864
4864
|
else {
|
|
4865
|
-
var
|
|
4866
|
-
delete
|
|
4865
|
+
var h = G({}, i.hiddenPaths);
|
|
4866
|
+
delete h[x], i.hiddenPaths = h;
|
|
4867
4867
|
}
|
|
4868
|
-
},
|
|
4869
|
-
u.collapsedOnClickBrackets &&
|
|
4870
|
-
},
|
|
4871
|
-
|
|
4872
|
-
},
|
|
4873
|
-
var
|
|
4874
|
-
new Function("data", "val", "data".concat(
|
|
4868
|
+
}, F = function(p, x) {
|
|
4869
|
+
u.collapsedOnClickBrackets && k(p, x.path), t("bracketsClick", p, x);
|
|
4870
|
+
}, D = function(p, x) {
|
|
4871
|
+
k(p, x.path), t("iconClick", p, x);
|
|
4872
|
+
}, C = function(p, x) {
|
|
4873
|
+
var h = ke(u.data), g = u.rootPath;
|
|
4874
|
+
new Function("data", "val", "data".concat(x.slice(g.length), "=val"))(h, p), t("update:data", h);
|
|
4875
4875
|
};
|
|
4876
|
-
return (0,
|
|
4877
|
-
l.value && (function(
|
|
4878
|
-
throw new Error("[VueJSONPretty] ".concat(
|
|
4876
|
+
return (0, A.watchEffect)((function() {
|
|
4877
|
+
l.value && (function(p) {
|
|
4878
|
+
throw new Error("[VueJSONPretty] ".concat(p));
|
|
4879
4879
|
})(l.value);
|
|
4880
|
-
})), (0,
|
|
4880
|
+
})), (0, A.watchEffect)((function() {
|
|
4881
4881
|
a.value && f();
|
|
4882
|
-
})), (0,
|
|
4882
|
+
})), (0, A.watch)((function() {
|
|
4883
4883
|
return u.deep;
|
|
4884
|
-
}), (function(
|
|
4885
|
-
|
|
4886
|
-
})), (0,
|
|
4884
|
+
}), (function(p) {
|
|
4885
|
+
p && (i.hiddenPaths = c(p, u.collapsedNodeLength));
|
|
4886
|
+
})), (0, A.watch)((function() {
|
|
4887
4887
|
return u.collapsedNodeLength;
|
|
4888
|
-
}), (function(
|
|
4889
|
-
|
|
4888
|
+
}), (function(p) {
|
|
4889
|
+
p && (i.hiddenPaths = c(u.deep, p));
|
|
4890
4890
|
})), function() {
|
|
4891
|
-
var
|
|
4892
|
-
return (0,
|
|
4891
|
+
var p, x, h, g, E = (p = u.renderNodeKey) !== null && p !== void 0 ? p : n.renderNodeKey, I = (x = u.renderNodeValue) !== null && x !== void 0 ? x : n.renderNodeValue, T = (h = (g = u.renderNodeActions) !== null && g !== void 0 ? g : n.renderNodeActions) !== null && h !== void 0 && h, j = i.visibleData && i.visibleData.map((function(L) {
|
|
4892
|
+
return (0, A.createVNode)(fc, { key: L.id, data: u.data, rootPath: u.rootPath, indent: u.indent, node: L, collapsed: !!i.hiddenPaths[L.path], theme: u.theme, showDoubleQuotes: u.showDoubleQuotes, showLength: u.showLength, checked: s.value.includes(L.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: E, renderNodeValue: I, renderNodeActions: T, onNodeClick: d, onNodeMouseover: v, onBracketsClick: F, onIconClick: D, onSelectedChange: b, onValueChange: C, style: u.itemHeight && u.itemHeight !== 20 ? { lineHeight: "".concat(u.itemHeight, "px") } : {} }, null);
|
|
4893
4893
|
}));
|
|
4894
|
-
return (0,
|
|
4894
|
+
return (0, A.createVNode)("div", { ref: r, class: { "vjs-tree": !0, "is-virtual": u.virtual, dark: u.theme === "dark" }, onScroll: u.virtual ? m : void 0, style: u.showLineNumber ? G({ 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)") } }, [j])])]) : j]);
|
|
4895
4895
|
};
|
|
4896
4896
|
} });
|
|
4897
4897
|
var hc = i0.A;
|
|
@@ -4957,99 +4957,113 @@ const pc = ["src", "alt"], bc = /* @__PURE__ */ ye({
|
|
|
4957
4957
|
content: {}
|
|
4958
4958
|
},
|
|
4959
4959
|
setup(u) {
|
|
4960
|
-
const e = u
|
|
4961
|
-
|
|
4960
|
+
const e = u, t = xu(() => {
|
|
4961
|
+
if (typeof e.content == "string") {
|
|
4962
|
+
try {
|
|
4963
|
+
const C = JSON.parse(e.content), p = (h) => h && typeof h == "object" && !Array.isArray(h) && ("texts" in h || "files" in h) && !("type" in h), x = (h) => {
|
|
4964
|
+
const g = ["text", "file", "image", "voice", "medialib"];
|
|
4965
|
+
return h && typeof h == "object" && !Array.isArray(h) && typeof h.type == "string" && g.includes(h.type) && "content" in h;
|
|
4966
|
+
};
|
|
4967
|
+
if (p(C) || x(C))
|
|
4968
|
+
return C;
|
|
4969
|
+
} catch {
|
|
4970
|
+
}
|
|
4971
|
+
return { type: "text", content: e.content };
|
|
4972
|
+
}
|
|
4973
|
+
return e.content;
|
|
4974
|
+
});
|
|
4975
|
+
function n(C) {
|
|
4962
4976
|
return !("type" in C);
|
|
4963
4977
|
}
|
|
4964
|
-
const
|
|
4978
|
+
const r = new J({
|
|
4965
4979
|
html: !0,
|
|
4966
4980
|
linkify: !0,
|
|
4967
4981
|
typographer: !0
|
|
4968
|
-
}),
|
|
4969
|
-
function
|
|
4970
|
-
t
|
|
4971
|
-
}
|
|
4972
|
-
function a(C) {
|
|
4973
|
-
c.value = C, o.value = !0;
|
|
4982
|
+
}), o = xu(() => !n(t.value) && t.value.type === "text" ? r.render(t.value.content) : ""), c = Au(!1), i = Au("");
|
|
4983
|
+
function a() {
|
|
4984
|
+
n(t.value) || (t.value.type === "image" ? (i.value = t.value.content, c.value = !0) : t.value.type === "medialib" && F.value === "image" && (i.value = v.value, c.value = !0));
|
|
4974
4985
|
}
|
|
4975
4986
|
function s(C) {
|
|
4987
|
+
i.value = C, c.value = !0;
|
|
4988
|
+
}
|
|
4989
|
+
function l(C) {
|
|
4976
4990
|
try {
|
|
4977
|
-
const
|
|
4978
|
-
return
|
|
4991
|
+
const h = new URL(C).pathname.split("/");
|
|
4992
|
+
return h[h.length - 1] || "未知文件";
|
|
4979
4993
|
} catch {
|
|
4980
4994
|
return "未知文件";
|
|
4981
4995
|
}
|
|
4982
4996
|
}
|
|
4983
|
-
function
|
|
4984
|
-
t
|
|
4997
|
+
function f() {
|
|
4998
|
+
n(t.value) || window.open(t.value.content, "_blank");
|
|
4985
4999
|
}
|
|
4986
|
-
function
|
|
5000
|
+
function m(C) {
|
|
4987
5001
|
window.open(C, "_blank");
|
|
4988
5002
|
}
|
|
4989
|
-
function
|
|
5003
|
+
function b(C) {
|
|
4990
5004
|
if (!C) return "file";
|
|
4991
|
-
const
|
|
4992
|
-
return
|
|
5005
|
+
const p = C.toLowerCase();
|
|
5006
|
+
return p.match(/\.(mp4|webm|ogg|mov|avi|wmv|flv|mkv)$/) ? "video" : p.match(/\.(jpg|jpeg|png|gif|bmp|webp|svg)$/) ? "image" : p.match(/\.(mp3|wav|ogg|aac|flac|m4a)$/) ? "audio" : "file";
|
|
4993
5007
|
}
|
|
4994
|
-
const
|
|
4995
|
-
if (!t
|
|
5008
|
+
const d = xu(() => {
|
|
5009
|
+
if (!n(t.value) && t.value.type === "medialib")
|
|
4996
5010
|
try {
|
|
4997
|
-
return JSON.parse(
|
|
5011
|
+
return JSON.parse(t.value.content);
|
|
4998
5012
|
} catch {
|
|
4999
5013
|
return null;
|
|
5000
5014
|
}
|
|
5001
5015
|
return null;
|
|
5002
|
-
}),
|
|
5003
|
-
if (!
|
|
5016
|
+
}), v = xu(() => d.value?.file_url || ""), k = xu(() => d.value?.file_name || l(v.value)), F = xu(() => {
|
|
5017
|
+
if (!v.value)
|
|
5004
5018
|
return "json";
|
|
5005
|
-
const C =
|
|
5019
|
+
const C = v.value.toLowerCase();
|
|
5006
5020
|
return C.match(/\.(mp4|webm|ogg|mov|avi|wmv|flv|mkv)$/) ? "video" : C.match(/\.(jpg|jpeg|png|gif|bmp|webp|svg)$/) ? "image" : C.match(/\.(mp3|wav|ogg|aac|flac|m4a)$/) ? "audio" : "file";
|
|
5007
5021
|
});
|
|
5008
|
-
function
|
|
5009
|
-
|
|
5022
|
+
function D() {
|
|
5023
|
+
v.value && window.open(v.value, "_blank");
|
|
5010
5024
|
}
|
|
5011
|
-
return (C,
|
|
5012
|
-
!t
|
|
5025
|
+
return (C, p) => (P(), z("div", xc, [
|
|
5026
|
+
!n(t.value) && t.value.type === "text" ? (P(), z("div", {
|
|
5013
5027
|
key: 0,
|
|
5014
5028
|
class: "content-text",
|
|
5015
|
-
innerHTML:
|
|
5016
|
-
}, null, 8, gc)) : t
|
|
5017
|
-
(P(!0), z(Me, null, je(
|
|
5018
|
-
key: `text-${
|
|
5029
|
+
innerHTML: o.value
|
|
5030
|
+
}, null, 8, gc)) : n(t.value) ? (P(), z("div", _c, [
|
|
5031
|
+
(P(!0), z(Me, null, je(t.value.texts, (x, h) => (P(), z("div", {
|
|
5032
|
+
key: `text-${h}`,
|
|
5019
5033
|
class: "content-text",
|
|
5020
|
-
innerHTML: au(
|
|
5034
|
+
innerHTML: au(r).render(x)
|
|
5021
5035
|
}, null, 8, kc))), 128)),
|
|
5022
5036
|
lu("div", yc, [
|
|
5023
|
-
(P(!0), z(Me, null, je(
|
|
5024
|
-
key: `file-${
|
|
5037
|
+
(P(!0), z(Me, null, je(t.value.files, (x, h) => (P(), z("div", {
|
|
5038
|
+
key: `file-${h}`,
|
|
5025
5039
|
class: "file-item"
|
|
5026
5040
|
}, [
|
|
5027
|
-
|
|
5041
|
+
b(x) === "image" ? (P(), z("img", {
|
|
5028
5042
|
key: 0,
|
|
5029
|
-
src:
|
|
5043
|
+
src: x,
|
|
5030
5044
|
alt: "图片",
|
|
5031
5045
|
class: "file-image",
|
|
5032
|
-
onClick: (
|
|
5033
|
-
}, null, 8, Cc)) :
|
|
5046
|
+
onClick: (g) => s(x)
|
|
5047
|
+
}, null, 8, Cc)) : b(x) === "video" ? (P(), z("video", {
|
|
5034
5048
|
key: 1,
|
|
5035
5049
|
controls: "",
|
|
5036
|
-
src:
|
|
5050
|
+
src: x,
|
|
5037
5051
|
class: "file-video"
|
|
5038
|
-
}, "您的浏览器不支持视频播放", 8, vc)) :
|
|
5052
|
+
}, "您的浏览器不支持视频播放", 8, vc)) : b(x) === "audio" ? (P(), z("audio", {
|
|
5039
5053
|
key: 2,
|
|
5040
5054
|
controls: "",
|
|
5041
|
-
src:
|
|
5055
|
+
src: x,
|
|
5042
5056
|
class: "file-audio"
|
|
5043
5057
|
}, "您的浏览器不支持音频播放", 8, Dc)) : (P(), z("div", {
|
|
5044
5058
|
key: 3,
|
|
5045
5059
|
class: "content-file",
|
|
5046
|
-
onClick: (
|
|
5060
|
+
onClick: (g) => m(x)
|
|
5047
5061
|
}, [
|
|
5048
5062
|
su(au(bu), {
|
|
5049
5063
|
icon: "mdi:file-document-outline",
|
|
5050
5064
|
class: "file-icon"
|
|
5051
5065
|
}),
|
|
5052
|
-
lu("span", Fc, ue(
|
|
5066
|
+
lu("span", Fc, ue(l(x)), 1),
|
|
5053
5067
|
su(au(bu), {
|
|
5054
5068
|
icon: "mdi:download",
|
|
5055
5069
|
class: "download-icon"
|
|
@@ -5057,77 +5071,77 @@ const pc = ["src", "alt"], bc = /* @__PURE__ */ ye({
|
|
|
5057
5071
|
], 8, Ec))
|
|
5058
5072
|
]))), 128))
|
|
5059
5073
|
])
|
|
5060
|
-
])) : !t
|
|
5074
|
+
])) : !n(t.value) && t.value.type === "file" ? (P(), z("div", {
|
|
5061
5075
|
key: 2,
|
|
5062
5076
|
class: "content-file",
|
|
5063
|
-
onClick:
|
|
5077
|
+
onClick: f
|
|
5064
5078
|
}, [
|
|
5065
5079
|
su(au(bu), {
|
|
5066
5080
|
icon: "mdi:file-document-outline",
|
|
5067
5081
|
class: "file-icon"
|
|
5068
5082
|
}),
|
|
5069
|
-
lu("span", Ac, ue(
|
|
5083
|
+
lu("span", Ac, ue(l(t.value.content)), 1),
|
|
5070
5084
|
su(au(bu), {
|
|
5071
5085
|
icon: "mdi:download",
|
|
5072
5086
|
class: "download-icon"
|
|
5073
5087
|
})
|
|
5074
|
-
])) : !t
|
|
5088
|
+
])) : !n(t.value) && t.value.type === "image" ? (P(), z("div", wc, [
|
|
5075
5089
|
lu("img", {
|
|
5076
|
-
src:
|
|
5090
|
+
src: t.value.content,
|
|
5077
5091
|
alt: "图片",
|
|
5078
|
-
onClick:
|
|
5092
|
+
onClick: a
|
|
5079
5093
|
}, null, 8, Sc)
|
|
5080
|
-
])) : !t
|
|
5094
|
+
])) : !n(t.value) && t.value.type === "voice" ? (P(), z("div", Tc, [
|
|
5081
5095
|
lu("audio", {
|
|
5082
5096
|
controls: "",
|
|
5083
|
-
src:
|
|
5097
|
+
src: t.value.content
|
|
5084
5098
|
}, "您的浏览器不支持音频播放", 8, Ic)
|
|
5085
|
-
])) : !t
|
|
5086
|
-
|
|
5099
|
+
])) : !n(t.value) && t.value.type === "medialib" ? (P(), z("div", Nc, [
|
|
5100
|
+
F.value === "video" ? (P(), z("video", {
|
|
5087
5101
|
key: 0,
|
|
5088
5102
|
controls: "",
|
|
5089
|
-
src:
|
|
5103
|
+
src: v.value,
|
|
5090
5104
|
class: "medialib-video"
|
|
5091
|
-
}, " 您的浏览器不支持视频播放 ", 8, Lc)) :
|
|
5105
|
+
}, " 您的浏览器不支持视频播放 ", 8, Lc)) : F.value === "image" ? (P(), z("img", {
|
|
5092
5106
|
key: 1,
|
|
5093
|
-
src:
|
|
5107
|
+
src: v.value,
|
|
5094
5108
|
alt: "图片",
|
|
5095
5109
|
class: "medialib-image",
|
|
5096
|
-
onClick:
|
|
5097
|
-
}, null, 8, Oc)) :
|
|
5110
|
+
onClick: a
|
|
5111
|
+
}, null, 8, Oc)) : F.value === "audio" ? (P(), z("audio", {
|
|
5098
5112
|
key: 2,
|
|
5099
5113
|
controls: "",
|
|
5100
|
-
src:
|
|
5114
|
+
src: v.value,
|
|
5101
5115
|
class: "medialib-audio"
|
|
5102
|
-
}, " 您的浏览器不支持音频播放 ", 8, Bc)) :
|
|
5116
|
+
}, " 您的浏览器不支持音频播放 ", 8, Bc)) : F.value === "file" ? (P(), z("div", {
|
|
5103
5117
|
key: 3,
|
|
5104
5118
|
class: "content-file",
|
|
5105
|
-
onClick:
|
|
5119
|
+
onClick: D
|
|
5106
5120
|
}, [
|
|
5107
5121
|
su(au(bu), {
|
|
5108
5122
|
icon: "mdi:file-document-outline",
|
|
5109
5123
|
class: "file-icon"
|
|
5110
5124
|
}),
|
|
5111
|
-
lu("span", Pc, ue(
|
|
5125
|
+
lu("span", Pc, ue(k.value), 1),
|
|
5112
5126
|
su(au(bu), {
|
|
5113
5127
|
icon: "mdi:download",
|
|
5114
5128
|
class: "download-icon"
|
|
5115
5129
|
})
|
|
5116
5130
|
])) : (P(), vt(au(hc), {
|
|
5117
5131
|
key: 4,
|
|
5118
|
-
data:
|
|
5132
|
+
data: d.value,
|
|
5119
5133
|
deep: 3,
|
|
5120
5134
|
class: "json-viewer"
|
|
5121
5135
|
}, null, 8, ["data"]))
|
|
5122
5136
|
])) : Dt("", !0),
|
|
5123
5137
|
su(mc, {
|
|
5124
|
-
show:
|
|
5125
|
-
"image-url":
|
|
5126
|
-
onClose:
|
|
5138
|
+
show: c.value,
|
|
5139
|
+
"image-url": i.value,
|
|
5140
|
+
onClose: p[0] || (p[0] = (x) => c.value = !1)
|
|
5127
5141
|
}, null, 8, ["show", "image-url"])
|
|
5128
5142
|
]));
|
|
5129
5143
|
}
|
|
5130
|
-
}), zc = /* @__PURE__ */ f0(Mc, [["__scopeId", "data-v-
|
|
5144
|
+
}), zc = /* @__PURE__ */ f0(Mc, [["__scopeId", "data-v-6a458d8e"]]);
|
|
5131
5145
|
export {
|
|
5132
5146
|
mc as ImageViewer,
|
|
5133
5147
|
zc as MessageContentRenderer
|