@oiij/naive-ui 0.0.8 → 0.0.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/data-table-plus/DataTablePlus.vue.d.ts +2 -0
- package/dist/components/preset-select/PresetSelect.vue.d.ts +2 -0
- package/dist/components.cjs +1 -1
- package/dist/components.js +272 -256
- package/dist/components.umd.cjs +8 -8
- package/dist/composables/useNaiveForm.d.cts +4 -4
- package/dist/composables/useNaiveTheme.d.cts +2 -2
- package/package.json +4 -4
package/dist/components.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { inject as _r, onBeforeMount as Eo, defineComponent as he, createBlock as
|
|
2
|
-
import { NEl as yr, NAvatar as Oo, NFlex as ku, NSpin as Mo, NConfigProvider as Lo, NLoadingBarProvider as No, NDialogProvider as Io, NModalProvider as zo, NNotificationProvider as
|
|
1
|
+
import { inject as _r, onBeforeMount as Eo, defineComponent as he, createBlock as V, openBlock as B, unref as S, normalizeClass as Ku, withCtx as N, renderSlot as q, createVNode as Y, createCommentVNode as je, mergeProps as pe, resolveDynamicComponent as yu, Transition as Ao, createElementVNode as Fu, normalizeStyle as vr, onMounted as wo, normalizeProps as ge, guardReactiveProps as xe, createElementBlock as He, watch as Me, createTextVNode as it, toDisplayString as at, ref as G, watchEffect as Le, onScopeDispose as Jt, computed as be, onUnmounted as Co, reactive as Eu, isRef as Bt, toRefs as Do, useTemplateRef as ct, Fragment as et, renderList as Ut, toValue as ou, nextTick as Kt, toRaw as qt, toRef as Fo, h as $e, createStaticVNode as So, mergeModels as To, useModel as Po, isReactive as Ro } from "vue";
|
|
2
|
+
import { NEl as yr, NAvatar as Oo, NFlex as ku, NSpin as Mo, NConfigProvider as Lo, NLoadingBarProvider as No, NDialogProvider as Io, NModalProvider as zo, NNotificationProvider as $o, NMessageProvider as Bo, NGlobalStyle as Uo, useDialog as qo, useLoadingBar as jo, useMessage as Ho, useModal as Go, useNotification as Wo, NTooltip as Er, NButton as Su, NGrid as jt, NGi as Ht, NDivider as Vo, NCollapseTransition as Zo, NDataTable as Yo, NPagination as Ar, NDropdown as Xo, NForm as Qo, NTimePicker as Jo, NSwitch as Ko, NSelect as wr, NInput as en, NDatePicker as ei, NFormItem as ui, NInputGroup as ti } from "naive-ui";
|
|
3
3
|
import { useClipboard as ni, createEventHook as Zu, useDebounceFn as Cr, useTimeoutFn as ri } from "@vueuse/core";
|
|
4
4
|
function oi(e) {
|
|
5
5
|
let u = ".", t = "__", n = "--", r;
|
|
@@ -147,7 +147,7 @@ function fi(e) {
|
|
|
147
147
|
const u = document.createElement("style");
|
|
148
148
|
return u.setAttribute("cssr-id", e), u;
|
|
149
149
|
}
|
|
150
|
-
function
|
|
150
|
+
function $u(e) {
|
|
151
151
|
return e ? /^\s*@(s|m)/.test(e) : !1;
|
|
152
152
|
}
|
|
153
153
|
const di = /[A-Z]/g;
|
|
@@ -209,21 +209,21 @@ function Sr(e, u, t, n, r) {
|
|
|
209
209
|
const o = e.$;
|
|
210
210
|
let a = "";
|
|
211
211
|
if (!o || typeof o == "string")
|
|
212
|
-
|
|
212
|
+
$u(o) ? a = o : u.push(o);
|
|
213
213
|
else if (typeof o == "function") {
|
|
214
214
|
const s = o({
|
|
215
215
|
context: n.context,
|
|
216
216
|
props: r
|
|
217
217
|
});
|
|
218
|
-
|
|
218
|
+
$u(s) ? a = s : u.push(s);
|
|
219
219
|
} else if (o.before && o.before(n.context), !o.$ || typeof o.$ == "string")
|
|
220
|
-
|
|
220
|
+
$u(o.$) ? a = o.$ : u.push(o.$);
|
|
221
221
|
else if (o.$) {
|
|
222
222
|
const s = o.$({
|
|
223
223
|
context: n.context,
|
|
224
224
|
props: r
|
|
225
225
|
});
|
|
226
|
-
|
|
226
|
+
$u(s) ? a = s : u.push(s);
|
|
227
227
|
}
|
|
228
228
|
const i = li(u), c = Ln(i, e.props, n, r);
|
|
229
229
|
a ? t.push(`${a} {`) : c.length && t.push(c), e.children && Gt(e.children, {
|
|
@@ -306,7 +306,7 @@ function vi(e = {}) {
|
|
|
306
306
|
const { id: u, parent: t } = e;
|
|
307
307
|
gi(this.instance, this, u, t);
|
|
308
308
|
}
|
|
309
|
-
const
|
|
309
|
+
const Bu = function(e, u, t, n) {
|
|
310
310
|
return {
|
|
311
311
|
instance: e,
|
|
312
312
|
$: u,
|
|
@@ -318,7 +318,7 @@ const $u = function(e, u, t, n) {
|
|
|
318
318
|
unmount: vi
|
|
319
319
|
};
|
|
320
320
|
}, yi = function(e, u, t, n) {
|
|
321
|
-
return Array.isArray(u) ?
|
|
321
|
+
return Array.isArray(u) ? Bu(e, { $: null }, null, u) : Array.isArray(t) ? Bu(e, u, null, t) : Array.isArray(n) ? Bu(e, u, t, n) : Bu(e, u, t, null);
|
|
322
322
|
};
|
|
323
323
|
function Ei(e = {}) {
|
|
324
324
|
const u = {
|
|
@@ -740,9 +740,9 @@ function Pi() {
|
|
|
740
740
|
m.hasOwnProperty(D) && (w[D] = m[D]);
|
|
741
741
|
m.hasOwnProperty(T) || (w[T] = x[T]);
|
|
742
742
|
}
|
|
743
|
-
var
|
|
743
|
+
var I = k[p];
|
|
744
744
|
return k[p] = w, i.languages.DFS(i.languages, function(L, ue) {
|
|
745
|
-
ue ===
|
|
745
|
+
ue === I && L != p && (this[L] = w);
|
|
746
746
|
}), w;
|
|
747
747
|
},
|
|
748
748
|
// Traverse a language definition with Depth First Search
|
|
@@ -752,8 +752,8 @@ function Pi() {
|
|
|
752
752
|
for (var T in b)
|
|
753
753
|
if (b.hasOwnProperty(T)) {
|
|
754
754
|
m.call(b, T, b[T], k || T);
|
|
755
|
-
var D = b[T],
|
|
756
|
-
|
|
755
|
+
var D = b[T], I = i.util.type(D);
|
|
756
|
+
I === "Object" && !x[w(D)] ? (x[w(D)] = !0, p(D, m, null, x)) : I === "Array" && !x[w(D)] && (x[w(D)] = !0, p(D, m, T, x));
|
|
757
757
|
}
|
|
758
758
|
}
|
|
759
759
|
},
|
|
@@ -837,7 +837,7 @@ function Pi() {
|
|
|
837
837
|
grammar: x,
|
|
838
838
|
code: T
|
|
839
839
|
};
|
|
840
|
-
function
|
|
840
|
+
function I(ue) {
|
|
841
841
|
D.highlightedCode = ue, i.hooks.run("before-insert", D), D.element.innerHTML = D.highlightedCode, i.hooks.run("after-highlight", D), i.hooks.run("complete", D), m && m.call(D.element);
|
|
842
842
|
}
|
|
843
843
|
if (i.hooks.run("before-sanity-check", D), w = D.element.parentElement, w && w.nodeName.toLowerCase() === "pre" && !w.hasAttribute("tabindex") && w.setAttribute("tabindex", "0"), !D.code) {
|
|
@@ -845,20 +845,20 @@ function Pi() {
|
|
|
845
845
|
return;
|
|
846
846
|
}
|
|
847
847
|
if (i.hooks.run("before-highlight", D), !D.grammar) {
|
|
848
|
-
|
|
848
|
+
I(i.util.encode(D.code));
|
|
849
849
|
return;
|
|
850
850
|
}
|
|
851
851
|
if (b && n.Worker) {
|
|
852
852
|
var L = new Worker(i.filename);
|
|
853
853
|
L.onmessage = function(ue) {
|
|
854
|
-
|
|
854
|
+
I(ue.data);
|
|
855
855
|
}, L.postMessage(JSON.stringify({
|
|
856
856
|
language: D.language,
|
|
857
857
|
code: D.code,
|
|
858
858
|
immediateClose: !0
|
|
859
859
|
}));
|
|
860
860
|
} else
|
|
861
|
-
|
|
861
|
+
I(i.highlight(D.code, D.grammar, D.language));
|
|
862
862
|
},
|
|
863
863
|
/**
|
|
864
864
|
* Low-level function, only use if you know what you’re doing. It accepts a string of text as input
|
|
@@ -974,8 +974,8 @@ function Pi() {
|
|
|
974
974
|
return b;
|
|
975
975
|
if (Array.isArray(b)) {
|
|
976
976
|
var k = "";
|
|
977
|
-
return b.forEach(function(
|
|
978
|
-
k += p(
|
|
977
|
+
return b.forEach(function(I) {
|
|
978
|
+
k += p(I, m);
|
|
979
979
|
}), k;
|
|
980
980
|
}
|
|
981
981
|
var x = {
|
|
@@ -1006,10 +1006,10 @@ function Pi() {
|
|
|
1006
1006
|
if (!(!m.hasOwnProperty(T) || !m[T])) {
|
|
1007
1007
|
var D = m[T];
|
|
1008
1008
|
D = Array.isArray(D) ? D : [D];
|
|
1009
|
-
for (var
|
|
1010
|
-
if (w && w.cause == T + "," +
|
|
1009
|
+
for (var I = 0; I < D.length; ++I) {
|
|
1010
|
+
if (w && w.cause == T + "," + I)
|
|
1011
1011
|
return;
|
|
1012
|
-
var L = D[
|
|
1012
|
+
var L = D[I], ue = L.inside, ve = !!L.lookbehind, F = !!L.greedy, U = L.alias;
|
|
1013
1013
|
if (F && !L.pattern.global) {
|
|
1014
1014
|
var te = L.pattern.toString().match(/[imsuy]*$/)[0];
|
|
1015
1015
|
L.pattern = RegExp(L.pattern.source, te + "g");
|
|
@@ -1019,28 +1019,28 @@ function Pi() {
|
|
|
1019
1019
|
if (b.length > p.length)
|
|
1020
1020
|
return;
|
|
1021
1021
|
if (!(M instanceof c)) {
|
|
1022
|
-
var
|
|
1022
|
+
var j = 1, z;
|
|
1023
1023
|
if (F) {
|
|
1024
1024
|
if (z = s(de, O, p, ve), !z || z.index >= p.length)
|
|
1025
1025
|
break;
|
|
1026
|
-
var Ae = z.index,
|
|
1026
|
+
var Ae = z.index, W = z.index + z[0].length, oe = O;
|
|
1027
1027
|
for (oe += A.value.length; Ae >= oe; )
|
|
1028
1028
|
A = A.next, oe += A.value.length;
|
|
1029
1029
|
if (oe -= A.value.length, O = oe, A.value instanceof c)
|
|
1030
1030
|
continue;
|
|
1031
|
-
for (var
|
|
1032
|
-
|
|
1033
|
-
|
|
1031
|
+
for (var H = A; H !== b.tail && (oe < W || typeof H.value == "string"); H = H.next)
|
|
1032
|
+
j++, oe += H.value.length;
|
|
1033
|
+
j--, M = p.slice(O, oe), z.index -= O;
|
|
1034
1034
|
} else if (z = s(de, 0, M, ve), !z)
|
|
1035
1035
|
continue;
|
|
1036
1036
|
var Ae = z.index, Ne = z[0], Ye = M.slice(0, Ae), Xe = M.slice(Ae + Ne.length), Qe = O + M.length;
|
|
1037
1037
|
w && Qe > w.reach && (w.reach = Qe);
|
|
1038
1038
|
var We = A.prev;
|
|
1039
|
-
Ye && (We = _(b, We, Ye), O += Ye.length), g(b, We,
|
|
1039
|
+
Ye && (We = _(b, We, Ye), O += Ye.length), g(b, We, j);
|
|
1040
1040
|
var Ie = new c(T, ue ? i.tokenize(Ne, ue) : Ne, U, Ne);
|
|
1041
|
-
if (A = _(b, We, Ie), Xe && _(b, A, Xe),
|
|
1041
|
+
if (A = _(b, We, Ie), Xe && _(b, A, Xe), j > 1) {
|
|
1042
1042
|
var ze = {
|
|
1043
|
-
cause: T + "," +
|
|
1043
|
+
cause: T + "," + I,
|
|
1044
1044
|
reach: Qe
|
|
1045
1045
|
};
|
|
1046
1046
|
l(p, b, m, A.prev, O, ze), w && ze.reach > w.reach && (w.reach = ze.reach);
|
|
@@ -1512,8 +1512,8 @@ function Pi() {
|
|
|
1512
1512
|
E.setAttribute(i, s);
|
|
1513
1513
|
var w = g(E.getAttribute("data-range"));
|
|
1514
1514
|
if (w) {
|
|
1515
|
-
var T = x.split(/\r\n?|\n/g), D = w[0],
|
|
1516
|
-
D < 0 && (D += T.length), D = Math.max(0, Math.min(D - 1, T.length)),
|
|
1515
|
+
var T = x.split(/\r\n?|\n/g), D = w[0], I = w[1] == null ? T.length : w[1];
|
|
1516
|
+
D < 0 && (D += T.length), D = Math.max(0, Math.min(D - 1, T.length)), I < 0 && (I += T.length), I = Math.max(0, Math.min(I, T.length)), x = T.slice(D, I).join(`
|
|
1517
1517
|
`), E.hasAttribute("data-start") || E.setAttribute("data-start", String(D + 1));
|
|
1518
1518
|
}
|
|
1519
1519
|
v.textContent = x, t.highlightElement(v);
|
|
@@ -1582,7 +1582,7 @@ function Mi({
|
|
|
1582
1582
|
];
|
|
1583
1583
|
}
|
|
1584
1584
|
const { c: Li, cB: Ni, cE: Ii, cM: zi } = { ...tn, ...Pr }, Et = `${Rr}-bubble`;
|
|
1585
|
-
function
|
|
1585
|
+
function $i() {
|
|
1586
1586
|
return Li([
|
|
1587
1587
|
Ni("bubble", {
|
|
1588
1588
|
display: "flex",
|
|
@@ -1617,33 +1617,33 @@ const Al = /* @__PURE__ */ he({
|
|
|
1617
1617
|
emits: ["typingComplete"],
|
|
1618
1618
|
setup(e, { emit: u }) {
|
|
1619
1619
|
const t = u;
|
|
1620
|
-
return Tr("n-bubble",
|
|
1620
|
+
return Tr("n-bubble", $i()), (n, r) => (B(), V(S(yr), {
|
|
1621
1621
|
tag: "div",
|
|
1622
1622
|
class: Ku([S(Et), n.placement === "end" ? `${S(Et)}--reverse` : ""])
|
|
1623
1623
|
}, {
|
|
1624
|
-
default:
|
|
1625
|
-
|
|
1626
|
-
n.avatar ? (
|
|
1624
|
+
default: N(() => [
|
|
1625
|
+
q(n.$slots, "avatar", {}, () => [
|
|
1626
|
+
n.avatar ? (B(), V(S(Oo), pe({
|
|
1627
1627
|
key: 0,
|
|
1628
1628
|
round: ""
|
|
1629
1629
|
}, n.avatar.props), {
|
|
1630
|
-
default:
|
|
1631
|
-
(
|
|
1630
|
+
default: N(() => [
|
|
1631
|
+
(B(), V(yu(n.avatar.icon)))
|
|
1632
1632
|
]),
|
|
1633
1633
|
_: 1
|
|
1634
1634
|
}, 16)) : je("", !0)
|
|
1635
1635
|
]),
|
|
1636
1636
|
Y(S(ku), { vertical: "" }, {
|
|
1637
|
-
default:
|
|
1638
|
-
|
|
1637
|
+
default: N(() => [
|
|
1638
|
+
q(n.$slots, "header"),
|
|
1639
1639
|
Y(Ao, {
|
|
1640
1640
|
mode: "out-in",
|
|
1641
1641
|
name: "fade"
|
|
1642
1642
|
}, {
|
|
1643
|
-
default:
|
|
1644
|
-
n.loading ?
|
|
1643
|
+
default: N(() => [
|
|
1644
|
+
n.loading ? q(n.$slots, "loading", { key: 0 }, () => [
|
|
1645
1645
|
Y(S(Mo), { style: { height: "44px" } })
|
|
1646
|
-
]) :
|
|
1646
|
+
]) : q(n.$slots, "default", { key: 1 }, () => [
|
|
1647
1647
|
Fu("div", {
|
|
1648
1648
|
class: Ku([`${S(Et)}__content`, n.contentClass]),
|
|
1649
1649
|
style: vr(n.contentStyle)
|
|
@@ -1659,7 +1659,7 @@ const Al = /* @__PURE__ */ he({
|
|
|
1659
1659
|
]),
|
|
1660
1660
|
_: 3
|
|
1661
1661
|
}),
|
|
1662
|
-
|
|
1662
|
+
q(n.$slots, "footer")
|
|
1663
1663
|
]),
|
|
1664
1664
|
_: 3
|
|
1665
1665
|
})
|
|
@@ -1692,19 +1692,19 @@ const Al = /* @__PURE__ */ he({
|
|
|
1692
1692
|
return null;
|
|
1693
1693
|
}
|
|
1694
1694
|
});
|
|
1695
|
-
return (n, r) => (
|
|
1696
|
-
default:
|
|
1695
|
+
return (n, r) => (B(), V(S(Lo), ge(xe(n.configProviderProps)), {
|
|
1696
|
+
default: N(() => [
|
|
1697
1697
|
Y(S(No), ge(xe(n.loadingBarProps)), {
|
|
1698
|
-
default:
|
|
1698
|
+
default: N(() => [
|
|
1699
1699
|
Y(S(Io), ge(xe(n.dialogProviderProps)), {
|
|
1700
|
-
default:
|
|
1700
|
+
default: N(() => [
|
|
1701
1701
|
Y(S(zo), ge(xe(n.modalProviderProps)), {
|
|
1702
|
-
default:
|
|
1703
|
-
Y(S(
|
|
1704
|
-
default:
|
|
1705
|
-
Y(S(
|
|
1706
|
-
default:
|
|
1707
|
-
|
|
1702
|
+
default: N(() => [
|
|
1703
|
+
Y(S($o), ge(xe(n.notificationProviderProps)), {
|
|
1704
|
+
default: N(() => [
|
|
1705
|
+
Y(S(Bo), ge(xe(n.messageProviderProps)), {
|
|
1706
|
+
default: N(() => [
|
|
1707
|
+
q(n.$slots, "default"),
|
|
1708
1708
|
Y(S(t))
|
|
1709
1709
|
]),
|
|
1710
1710
|
_: 3
|
|
@@ -1721,7 +1721,7 @@ const Al = /* @__PURE__ */ he({
|
|
|
1721
1721
|
]),
|
|
1722
1722
|
_: 3
|
|
1723
1723
|
}, 16),
|
|
1724
|
-
n.globalStyle ? (
|
|
1724
|
+
n.globalStyle ? (B(), V(S(Uo), { key: 0 })) : je("", !0)
|
|
1725
1725
|
]),
|
|
1726
1726
|
_: 3
|
|
1727
1727
|
}, 16));
|
|
@@ -1731,7 +1731,7 @@ const Al = /* @__PURE__ */ he({
|
|
|
1731
1731
|
for (const [n, r] of u)
|
|
1732
1732
|
t[n] = r;
|
|
1733
1733
|
return t;
|
|
1734
|
-
},
|
|
1734
|
+
}, Bi = {
|
|
1735
1735
|
name: "MageCopyFill"
|
|
1736
1736
|
}, Ui = {
|
|
1737
1737
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -1740,14 +1740,14 @@ const Al = /* @__PURE__ */ he({
|
|
|
1740
1740
|
viewBox: "0 0 24 24"
|
|
1741
1741
|
};
|
|
1742
1742
|
function qi(e, u, t, n, r, o) {
|
|
1743
|
-
return
|
|
1743
|
+
return B(), He("svg", Ui, u[0] || (u[0] = [
|
|
1744
1744
|
Fu("path", {
|
|
1745
1745
|
fill: "#757575",
|
|
1746
1746
|
d: "M18.355 6.54h-1.94V4.69a2.69 2.69 0 0 0-1.646-2.484A2.7 2.7 0 0 0 13.745 2h-8.05a2.68 2.68 0 0 0-2.67 2.69v10.09a2.68 2.68 0 0 0 2.67 2.69h1.94v1.85a2.68 2.68 0 0 0 2.67 2.68h8a2.68 2.68 0 0 0 2.67-2.68V9.23a2.69 2.69 0 0 0-2.62-2.69M7.635 9.23v6.74h-1.94a1.18 1.18 0 0 1-1.17-1.19V4.69a1.18 1.18 0 0 1 1.17-1.19h8.05a1.18 1.18 0 0 1 1.17 1.19v1.85h-4.61a2.69 2.69 0 0 0-2.67 2.69"
|
|
1747
1747
|
}, null, -1)
|
|
1748
1748
|
]));
|
|
1749
1749
|
}
|
|
1750
|
-
const ji = /* @__PURE__ */ nn(
|
|
1750
|
+
const ji = /* @__PURE__ */ nn(Bi, [["render", qi]]), Cl = /* @__PURE__ */ he({
|
|
1751
1751
|
__name: "CopyButton",
|
|
1752
1752
|
props: {
|
|
1753
1753
|
value: {},
|
|
@@ -1767,19 +1767,19 @@ const ji = /* @__PURE__ */ nn($i, [["render", qi]]), Cl = /* @__PURE__ */ he({
|
|
|
1767
1767
|
function o(a) {
|
|
1768
1768
|
a.preventDefault(), r();
|
|
1769
1769
|
}
|
|
1770
|
-
return (a, i) => (
|
|
1771
|
-
trigger:
|
|
1770
|
+
return (a, i) => (B(), V(S(Er), ge(xe(a.tooltipProps)), {
|
|
1771
|
+
trigger: N(() => [
|
|
1772
1772
|
Fu("div", {
|
|
1773
1773
|
style: { cursor: "pointer" },
|
|
1774
1774
|
onClick: o
|
|
1775
1775
|
}, [
|
|
1776
|
-
|
|
1776
|
+
q(a.$slots, "default", {}, () => [
|
|
1777
1777
|
Y(S(Su), pe({
|
|
1778
1778
|
quaternary: "",
|
|
1779
1779
|
size: "tiny"
|
|
1780
1780
|
}, a.buttonProps), {
|
|
1781
|
-
icon:
|
|
1782
|
-
|
|
1781
|
+
icon: N(() => [
|
|
1782
|
+
q(a.$slots, "icon", {}, () => [
|
|
1783
1783
|
Y(ji)
|
|
1784
1784
|
])
|
|
1785
1785
|
]),
|
|
@@ -1788,8 +1788,8 @@ const ji = /* @__PURE__ */ nn($i, [["render", qi]]), Cl = /* @__PURE__ */ he({
|
|
|
1788
1788
|
])
|
|
1789
1789
|
])
|
|
1790
1790
|
]),
|
|
1791
|
-
default:
|
|
1792
|
-
|
|
1791
|
+
default: N(() => [
|
|
1792
|
+
q(a.$slots, "tooltip", {}, () => [
|
|
1793
1793
|
it(at(S(n) ? "复制成功" : "复制"), 1)
|
|
1794
1794
|
])
|
|
1795
1795
|
]),
|
|
@@ -1797,7 +1797,7 @@ const ji = /* @__PURE__ */ nn($i, [["render", qi]]), Cl = /* @__PURE__ */ he({
|
|
|
1797
1797
|
}, 16));
|
|
1798
1798
|
}
|
|
1799
1799
|
}), Or = (e, { manual: u, ready: t = !0, refreshDeps: n = [], refreshDepsAction: r }) => {
|
|
1800
|
-
const o =
|
|
1800
|
+
const o = G(!1);
|
|
1801
1801
|
return Le(() => {
|
|
1802
1802
|
!u && e.options.refreshDeps !== !0 && (o.value = S(t));
|
|
1803
1803
|
}), n instanceof Array ? Me(
|
|
@@ -1853,7 +1853,7 @@ const Xu = /* @__PURE__ */ new Map(), Hi = (e, u, t) => {
|
|
|
1853
1853
|
setCache: r,
|
|
1854
1854
|
getCache: o
|
|
1855
1855
|
}) => {
|
|
1856
|
-
const a =
|
|
1856
|
+
const a = G(), i = G(), c = (l, f) => {
|
|
1857
1857
|
r ? r(f) : Hi(l, t, f), Yi(l, f.data);
|
|
1858
1858
|
}, s = (l, f = []) => o ? o(f) : Gi(l);
|
|
1859
1859
|
return Le(() => {
|
|
@@ -1935,9 +1935,9 @@ var i0 = Object.prototype, a0 = i0.toString;
|
|
|
1935
1935
|
function c0(e) {
|
|
1936
1936
|
return a0.call(e);
|
|
1937
1937
|
}
|
|
1938
|
-
var s0 = "[object Null]", l0 = "[object Undefined]",
|
|
1938
|
+
var s0 = "[object Null]", l0 = "[object Undefined]", $n = tt ? tt.toStringTag : void 0;
|
|
1939
1939
|
function f0(e) {
|
|
1940
|
-
return e == null ? e === void 0 ? l0 : s0 :
|
|
1940
|
+
return e == null ? e === void 0 ? l0 : s0 : $n && $n in Object(e) ? o0(e) : c0(e);
|
|
1941
1941
|
}
|
|
1942
1942
|
function d0(e) {
|
|
1943
1943
|
return e != null && typeof e == "object";
|
|
@@ -1946,12 +1946,12 @@ var p0 = "[object Symbol]";
|
|
|
1946
1946
|
function h0(e) {
|
|
1947
1947
|
return typeof e == "symbol" || d0(e) && f0(e) == p0;
|
|
1948
1948
|
}
|
|
1949
|
-
var
|
|
1949
|
+
var Bn = NaN, b0 = /^[-+]0x[0-9a-f]+$/i, m0 = /^0b[01]+$/i, g0 = /^0o[0-7]+$/i, x0 = parseInt;
|
|
1950
1950
|
function Un(e) {
|
|
1951
1951
|
if (typeof e == "number")
|
|
1952
1952
|
return e;
|
|
1953
1953
|
if (h0(e))
|
|
1954
|
-
return
|
|
1954
|
+
return Bn;
|
|
1955
1955
|
if (ut(e)) {
|
|
1956
1956
|
var u = typeof e.valueOf == "function" ? e.valueOf() : e;
|
|
1957
1957
|
e = ut(u) ? u + "" : u;
|
|
@@ -1960,7 +1960,7 @@ function Un(e) {
|
|
|
1960
1960
|
return e === 0 ? e : +e;
|
|
1961
1961
|
e = t0(e);
|
|
1962
1962
|
var t = m0.test(e);
|
|
1963
|
-
return t || g0.test(e) ? x0(e.slice(2), t ? 2 : 8) : b0.test(e) ?
|
|
1963
|
+
return t || g0.test(e) ? x0(e.slice(2), t ? 2 : 8) : b0.test(e) ? Bn : +e;
|
|
1964
1964
|
}
|
|
1965
1965
|
var k0 = "Expected a function", _0 = Math.max, v0 = Math.min;
|
|
1966
1966
|
function Nr(e, u, t) {
|
|
@@ -2011,7 +2011,7 @@ function Nr(e, u, t) {
|
|
|
2011
2011
|
return k.cancel = b, k.flush = m, k;
|
|
2012
2012
|
}
|
|
2013
2013
|
const y0 = (e, { debounceWait: u, debounceLeading: t, debounceTrailing: n, debounceMaxWait: r }) => {
|
|
2014
|
-
const o =
|
|
2014
|
+
const o = G(), a = be(() => {
|
|
2015
2015
|
const i = {}, c = S(t), s = S(n), l = S(r);
|
|
2016
2016
|
return c !== void 0 && (i.leading = c), s !== void 0 && (i.trailing = s), l !== void 0 && (i.maxWait = l), i;
|
|
2017
2017
|
});
|
|
@@ -2176,7 +2176,7 @@ const le = new T0(), P0 = (e, { ready: u = !0, debugKey: t, ...n }) => {
|
|
|
2176
2176
|
}
|
|
2177
2177
|
};
|
|
2178
2178
|
}, R0 = (e, { loadingDelay: u }) => {
|
|
2179
|
-
const t =
|
|
2179
|
+
const t = G(), n = () => {
|
|
2180
2180
|
t.value && (clearTimeout(S(t.value)), t.value = void 0);
|
|
2181
2181
|
};
|
|
2182
2182
|
return {
|
|
@@ -2223,7 +2223,7 @@ if (rn()) {
|
|
|
2223
2223
|
}
|
|
2224
2224
|
const L0 = (e, { pollingInterval: u, pollingWhenHidden: t = !0, pollingErrorRetryCount: n = -1 }) => {
|
|
2225
2225
|
let r;
|
|
2226
|
-
const o =
|
|
2226
|
+
const o = G(), a = G(0), i = () => {
|
|
2227
2227
|
var c;
|
|
2228
2228
|
r && clearTimeout(r), (c = o.value) == null || c.call(o);
|
|
2229
2229
|
};
|
|
@@ -2280,8 +2280,8 @@ if (O0) {
|
|
|
2280
2280
|
};
|
|
2281
2281
|
window.addEventListener("visibilitychange", e, !1), window.addEventListener("focus", e, !1);
|
|
2282
2282
|
}
|
|
2283
|
-
const
|
|
2284
|
-
const n =
|
|
2283
|
+
const $0 = (e, { refreshOnWindowFocus: u, focusTimespan: t = 5e3 }) => {
|
|
2284
|
+
const n = G(), r = () => {
|
|
2285
2285
|
var o;
|
|
2286
2286
|
(o = n.value) == null || o.call(n);
|
|
2287
2287
|
};
|
|
@@ -2303,8 +2303,8 @@ const B0 = (e, { refreshOnWindowFocus: u, focusTimespan: t = 5e3 }) => {
|
|
|
2303
2303
|
}), {
|
|
2304
2304
|
name: "refreshOnWindowFocusPlugin"
|
|
2305
2305
|
};
|
|
2306
|
-
},
|
|
2307
|
-
const n =
|
|
2306
|
+
}, B0 = (e, { retryInterval: u, retryCount: t }) => {
|
|
2307
|
+
const n = G(), r = G(0), o = G(!1);
|
|
2308
2308
|
return t ? {
|
|
2309
2309
|
name: "retryPlugin",
|
|
2310
2310
|
onBefore: () => {
|
|
@@ -2343,7 +2343,7 @@ const j0 = (e, { throttleWait: u, throttleLeading: t, throttleTrailing: n }) =>
|
|
|
2343
2343
|
const o = be(() => {
|
|
2344
2344
|
const s = {};
|
|
2345
2345
|
return S(t) !== void 0 && (s.leading = S(t)), S(n) !== void 0 && (s.trailing = S(n)), s;
|
|
2346
|
-
}), a = e.runAsync.bind(e), i =
|
|
2346
|
+
}), a = e.runAsync.bind(e), i = G(), c = be(() => S(u));
|
|
2347
2347
|
return Me([c, o], (s) => {
|
|
2348
2348
|
r && (r.cancel(), e.runAsync = a);
|
|
2349
2349
|
const [l, f] = s, _ = q0(
|
|
@@ -2442,14 +2442,14 @@ class V0 {
|
|
|
2442
2442
|
if (!this.options.concurrent && g !== this.count)
|
|
2443
2443
|
return new Promise(() => {
|
|
2444
2444
|
});
|
|
2445
|
-
const D = this.options.formatResult ? this.options.formatResult(m) : m,
|
|
2445
|
+
const D = this.options.formatResult ? this.options.formatResult(m) : m, I = {
|
|
2446
2446
|
data: m
|
|
2447
2447
|
};
|
|
2448
2448
|
return this.setState({
|
|
2449
2449
|
data: D,
|
|
2450
2450
|
error: void 0,
|
|
2451
2451
|
loading: !1
|
|
2452
|
-
}), (x = (k = this.options).onSuccess) == null || x.call(k, D, u), this.runPluginHandler("onSuccess", D, u,
|
|
2452
|
+
}), (x = (k = this.options).onSuccess) == null || x.call(k, D, u), this.runPluginHandler("onSuccess", D, u, I), this.previousValidData = D, (T = (w = this.options).onFinally) == null || T.call(w, u, D, void 0), (this.options.concurrent || g === this.count) && this.runPluginHandler("onFinally", u, D, void 0), D;
|
|
2453
2453
|
};
|
|
2454
2454
|
v || (v = this.serviceRef.value(...u));
|
|
2455
2455
|
const b = await v;
|
|
@@ -2507,7 +2507,7 @@ function X0(e, u = {}, t = []) {
|
|
|
2507
2507
|
ready: a,
|
|
2508
2508
|
initialData: r,
|
|
2509
2509
|
...i
|
|
2510
|
-
}, s =
|
|
2510
|
+
}, s = G(e), l = Eu({
|
|
2511
2511
|
data: r,
|
|
2512
2512
|
loading: !1,
|
|
2513
2513
|
params: void 0,
|
|
@@ -2524,7 +2524,7 @@ function X0(e, u = {}, t = []) {
|
|
|
2524
2524
|
Object.assign({}, ..._, l)
|
|
2525
2525
|
);
|
|
2526
2526
|
g.options = c, g.pluginImpls = t.map((y) => y(g, c));
|
|
2527
|
-
const d = be(() =>
|
|
2527
|
+
const d = be(() => Bt(a) ? a.value : a);
|
|
2528
2528
|
if (Le(() => {
|
|
2529
2529
|
if (!o) {
|
|
2530
2530
|
const y = g.state.params || u.defaultParams || [];
|
|
@@ -2560,11 +2560,11 @@ function an(e, u, t) {
|
|
|
2560
2560
|
y0,
|
|
2561
2561
|
R0,
|
|
2562
2562
|
L0,
|
|
2563
|
-
|
|
2563
|
+
$0,
|
|
2564
2564
|
j0,
|
|
2565
2565
|
Or,
|
|
2566
2566
|
Xi,
|
|
2567
|
-
|
|
2567
|
+
B0
|
|
2568
2568
|
]) == null ? void 0 : n.filter(Boolean);
|
|
2569
2569
|
return Q0(X0, u?.use)(
|
|
2570
2570
|
e,
|
|
@@ -2592,13 +2592,13 @@ const Dl = /* @__PURE__ */ he({
|
|
|
2592
2592
|
},
|
|
2593
2593
|
emits: ["before", "success", "error", "finally", "clickRow", "contextMenuRow", "contextMenuSelect", "load", "scroll", "update:checkedRowKeys", "update:expandedRowKeys", "update:filters", "update:sorter", "update:page", "update:pageSize"],
|
|
2594
2594
|
setup(e, { expose: u, emit: t }) {
|
|
2595
|
-
const n = t, r = Eu(e.columns ?? []), o = ct("
|
|
2595
|
+
const n = t, r = Eu(e.columns ?? []), o = ct("data-table-ref"), a = { page: "page", pageSize: "pageSize", filter: "filter", sorter: "sorter", list: "list", count: "count", rowKey: "id", ...e.fields }, i = Eu({
|
|
2596
2596
|
showSizePicker: !0,
|
|
2597
2597
|
pageSizes: [10, 20, 30],
|
|
2598
2598
|
pageSlot: 5,
|
|
2599
2599
|
prefix: (A) => `共${A.itemCount}条数据`,
|
|
2600
2600
|
...e.pagination && typeof e.pagination == "boolean" ? {} : e.pagination
|
|
2601
|
-
}), c =
|
|
2601
|
+
}), c = G({
|
|
2602
2602
|
page: 1,
|
|
2603
2603
|
pageSize: 10,
|
|
2604
2604
|
itemCount: 0
|
|
@@ -2627,17 +2627,17 @@ const Dl = /* @__PURE__ */ he({
|
|
|
2627
2627
|
}, e.requestPlugins), m = be(() => f.value ? Array.isArray(f.value[a.list]) ? f.value[a.list] : (console.warn(`DataTablePlus: data[${a.list}] must be an array`), []) : []), k = be(() => e.columns?.reduce((A, O) => A + Number(O.width ?? 100), 0));
|
|
2628
2628
|
function x(A, O) {
|
|
2629
2629
|
c.value.page = a.page in O[0] ? Number(O[0][a.page]) : 1, c.value.pageSize = a.pageSize in O[0] ? Number(O[0][a.pageSize]) : 10, c.value.itemCount = a.count in A ? Number(A[a.count]) : 0;
|
|
2630
|
-
const M = O[0]?.[a.filter],
|
|
2630
|
+
const M = O[0]?.[a.filter], j = O[0]?.[a.sorter];
|
|
2631
2631
|
if (r) {
|
|
2632
2632
|
for (const z of r)
|
|
2633
2633
|
if ("key" in z) {
|
|
2634
2634
|
if (M && z.key in M) {
|
|
2635
|
-
const
|
|
2636
|
-
"filter" in z && z.filter && (z.filterMultiple ? Array.isArray(
|
|
2635
|
+
const W = M[z.key];
|
|
2636
|
+
"filter" in z && z.filter && (z.filterMultiple ? Array.isArray(W) && (z.filterOptionValues = W) : Array.isArray(W) || (z.filterOptionValue = W));
|
|
2637
2637
|
}
|
|
2638
|
-
if ("sorter" in z && typeof z.sorter == "boolean" && (z.sortOrder = !1),
|
|
2639
|
-
const
|
|
2640
|
-
"sorter" in z && z.sorter && (z.sortOrder =
|
|
2638
|
+
if ("sorter" in z && typeof z.sorter == "boolean" && (z.sortOrder = !1), j && z.key in j) {
|
|
2639
|
+
const W = j[z.key];
|
|
2640
|
+
"sorter" in z && z.sorter && (z.sortOrder = W);
|
|
2641
2641
|
}
|
|
2642
2642
|
}
|
|
2643
2643
|
}
|
|
@@ -2661,6 +2661,7 @@ const Dl = /* @__PURE__ */ he({
|
|
|
2661
2661
|
},
|
|
2662
2662
|
onUpdateFilters: (A, O) => {
|
|
2663
2663
|
n("update:filters", A, O), w({
|
|
2664
|
+
[a.page]: 1,
|
|
2664
2665
|
[a.filter]: A
|
|
2665
2666
|
});
|
|
2666
2667
|
},
|
|
@@ -2672,6 +2673,7 @@ const Dl = /* @__PURE__ */ he({
|
|
|
2672
2673
|
O[M.columnKey] = M.order;
|
|
2673
2674
|
else A && (O[A.columnKey] = A.order);
|
|
2674
2675
|
w({
|
|
2676
|
+
[a.page]: 1,
|
|
2675
2677
|
[a.sorter]: O
|
|
2676
2678
|
});
|
|
2677
2679
|
},
|
|
@@ -2685,7 +2687,7 @@ const Dl = /* @__PURE__ */ he({
|
|
|
2685
2687
|
onUpdateExpandedRowKeys: (...A) => {
|
|
2686
2688
|
n("update:expandedRowKeys", ...A);
|
|
2687
2689
|
}
|
|
2688
|
-
}, D =
|
|
2690
|
+
}, D = G(!1), I = G(), L = G({
|
|
2689
2691
|
x: 0,
|
|
2690
2692
|
y: 0
|
|
2691
2693
|
});
|
|
@@ -2693,7 +2695,7 @@ const Dl = /* @__PURE__ */ he({
|
|
|
2693
2695
|
D.value = !1, n("contextMenuSelect", {
|
|
2694
2696
|
key: A,
|
|
2695
2697
|
option: O,
|
|
2696
|
-
row: ou(
|
|
2698
|
+
row: ou(I)
|
|
2697
2699
|
});
|
|
2698
2700
|
}
|
|
2699
2701
|
function ve(A, O) {
|
|
@@ -2702,7 +2704,7 @@ const Dl = /* @__PURE__ */ he({
|
|
|
2702
2704
|
n("clickRow", { row: A, index: O, event: M });
|
|
2703
2705
|
},
|
|
2704
2706
|
onContextmenu: (M) => {
|
|
2705
|
-
n("contextMenuRow", { row: A, index: O, event: M }), e.contextMenuOptions && (M.preventDefault(), D.value = !1,
|
|
2707
|
+
n("contextMenuRow", { row: A, index: O, event: M }), e.contextMenuOptions && (M.preventDefault(), D.value = !1, I.value = A, Kt(() => {
|
|
2706
2708
|
D.value = !0, L.value = {
|
|
2707
2709
|
x: M.x,
|
|
2708
2710
|
y: M.y
|
|
@@ -2711,7 +2713,7 @@ const Dl = /* @__PURE__ */ he({
|
|
|
2711
2713
|
}
|
|
2712
2714
|
};
|
|
2713
2715
|
}
|
|
2714
|
-
const F =
|
|
2716
|
+
const F = G(!1);
|
|
2715
2717
|
function U(A, O) {
|
|
2716
2718
|
O && w({
|
|
2717
2719
|
[O]: A
|
|
@@ -2741,26 +2743,26 @@ const Dl = /* @__PURE__ */ he({
|
|
|
2741
2743
|
return u({
|
|
2742
2744
|
refs: te,
|
|
2743
2745
|
actions: de
|
|
2744
|
-
}), (A, O) => (
|
|
2745
|
-
default:
|
|
2746
|
-
|
|
2746
|
+
}), (A, O) => (B(), V(S(ku), { vertical: "" }, {
|
|
2747
|
+
default: N(() => [
|
|
2748
|
+
q(A.$slots, "filter", {
|
|
2747
2749
|
refs: te,
|
|
2748
2750
|
actions: de
|
|
2749
2751
|
}, () => [
|
|
2750
2752
|
Y(S(ku), { vertical: "" }, {
|
|
2751
|
-
default:
|
|
2753
|
+
default: N(() => [
|
|
2752
2754
|
Y(S(jt), ge(xe(A.filterGridProps)), {
|
|
2753
|
-
default:
|
|
2754
|
-
(
|
|
2755
|
+
default: N(() => [
|
|
2756
|
+
(B(!0), He(et, null, Ut(A.filterOptions?.filter((M) => !M.collapsed), ({ key: M, gridItemProps: j, render: z, ...W }, oe) => (B(), V(S(Ht), pe({
|
|
2755
2757
|
key: oe,
|
|
2756
2758
|
span: 12
|
|
2757
|
-
}, { ref_for: !0 },
|
|
2758
|
-
default:
|
|
2759
|
-
z ? (
|
|
2759
|
+
}, { ref_for: !0 }, j), {
|
|
2760
|
+
default: N(() => [
|
|
2761
|
+
z ? (B(), V(yu(z(te, de)), { key: 0 })) : (B(), V(S(Wt), {
|
|
2760
2762
|
key: 1,
|
|
2761
|
-
options:
|
|
2763
|
+
options: W,
|
|
2762
2764
|
value: M ? S(g)[0][M] : void 0,
|
|
2763
|
-
"onUpdate:value": (
|
|
2765
|
+
"onUpdate:value": (H) => U(H, M)
|
|
2764
2766
|
}, null, 8, ["options", "value", "onUpdate:value"]))
|
|
2765
2767
|
]),
|
|
2766
2768
|
_: 2
|
|
@@ -2768,13 +2770,13 @@ const Dl = /* @__PURE__ */ he({
|
|
|
2768
2770
|
]),
|
|
2769
2771
|
_: 1
|
|
2770
2772
|
}, 16),
|
|
2771
|
-
A.filterOptions?.filter((M) => M.collapsed) && A.filterOptions?.filter((M) => M.collapsed)?.length > 0 ? (
|
|
2772
|
-
default:
|
|
2773
|
+
A.filterOptions?.filter((M) => M.collapsed) && A.filterOptions?.filter((M) => M.collapsed)?.length > 0 ? (B(), V(S(Vo), { key: 0 }, {
|
|
2774
|
+
default: N(() => [
|
|
2773
2775
|
Y(S(Su), {
|
|
2774
2776
|
size: "tiny",
|
|
2775
2777
|
onClick: O[0] || (O[0] = (M) => F.value = !F.value)
|
|
2776
2778
|
}, {
|
|
2777
|
-
default:
|
|
2779
|
+
default: N(() => [
|
|
2778
2780
|
it(at(F.value ? "折叠" : "展开"), 1)
|
|
2779
2781
|
]),
|
|
2780
2782
|
_: 1
|
|
@@ -2783,19 +2785,19 @@ const Dl = /* @__PURE__ */ he({
|
|
|
2783
2785
|
_: 1
|
|
2784
2786
|
})) : je("", !0),
|
|
2785
2787
|
Y(S(Zo), { show: F.value }, {
|
|
2786
|
-
default:
|
|
2788
|
+
default: N(() => [
|
|
2787
2789
|
Y(S(jt), ge(xe(A.filterGridProps)), {
|
|
2788
|
-
default:
|
|
2789
|
-
(
|
|
2790
|
+
default: N(() => [
|
|
2791
|
+
(B(!0), He(et, null, Ut(A.filterOptions?.filter((M) => M.collapsed), ({ key: M, gridItemProps: j, render: z, ...W }, oe) => (B(), V(S(Ht), pe({
|
|
2790
2792
|
key: oe,
|
|
2791
2793
|
span: 12
|
|
2792
|
-
}, { ref_for: !0 },
|
|
2793
|
-
default:
|
|
2794
|
-
z ? (
|
|
2794
|
+
}, { ref_for: !0 }, j), {
|
|
2795
|
+
default: N(() => [
|
|
2796
|
+
z ? (B(), V(yu(z(te, de)), { key: 0 })) : (B(), V(S(Wt), {
|
|
2795
2797
|
key: 1,
|
|
2796
|
-
options:
|
|
2798
|
+
options: W,
|
|
2797
2799
|
value: M ? S(g)[0][M] : void 0,
|
|
2798
|
-
"onUpdate:value": (
|
|
2800
|
+
"onUpdate:value": (H) => U(H, M)
|
|
2799
2801
|
}, null, 8, ["options", "value", "onUpdate:value"]))
|
|
2800
2802
|
]),
|
|
2801
2803
|
_: 2
|
|
@@ -2811,8 +2813,7 @@ const Dl = /* @__PURE__ */ he({
|
|
|
2811
2813
|
})
|
|
2812
2814
|
]),
|
|
2813
2815
|
Y(S(Yo), pe({
|
|
2814
|
-
|
|
2815
|
-
ref: o,
|
|
2816
|
+
ref: "data-table-ref",
|
|
2816
2817
|
remote: "",
|
|
2817
2818
|
"flex-height": "",
|
|
2818
2819
|
"single-line": !1,
|
|
@@ -2831,13 +2832,21 @@ const Dl = /* @__PURE__ */ he({
|
|
|
2831
2832
|
onScroll: T.onScroll,
|
|
2832
2833
|
"onUpdate:checkedRowKeys": T.onUpdateCheckedRowKeys,
|
|
2833
2834
|
"onUpdate:expandedRowKeys": T.onUpdateExpandedRowKeys
|
|
2834
|
-
}),
|
|
2835
|
-
|
|
2835
|
+
}), {
|
|
2836
|
+
empty: N(() => [
|
|
2837
|
+
q(A.$slots, "empty")
|
|
2838
|
+
]),
|
|
2839
|
+
loading: N(() => [
|
|
2840
|
+
q(A.$slots, "loading")
|
|
2841
|
+
]),
|
|
2842
|
+
_: 3
|
|
2843
|
+
}, 16, ["scroll-x", "style", "class", "row-key", "loading", "columns", "data", "onUpdate:filters", "onUpdate:sorter", "onLoad", "onScroll", "onUpdate:checkedRowKeys", "onUpdate:expandedRowKeys"]),
|
|
2844
|
+
q(A.$slots, "actions", {}, () => [
|
|
2836
2845
|
Y(S(ku), null, {
|
|
2837
|
-
default:
|
|
2838
|
-
|
|
2839
|
-
|
|
2840
|
-
A.pagination ? (
|
|
2846
|
+
default: N(() => [
|
|
2847
|
+
q(A.$slots, "extra"),
|
|
2848
|
+
q(A.$slots, "pagination", {}, () => [
|
|
2849
|
+
A.pagination ? (B(), V(S(Ar), pe({
|
|
2841
2850
|
key: 0,
|
|
2842
2851
|
style: { marginLeft: "auto" },
|
|
2843
2852
|
disabled: S(l)
|
|
@@ -2850,7 +2859,7 @@ const Dl = /* @__PURE__ */ he({
|
|
|
2850
2859
|
_: 3
|
|
2851
2860
|
})
|
|
2852
2861
|
]),
|
|
2853
|
-
A.contextMenuOptions ? (
|
|
2862
|
+
A.contextMenuOptions ? (B(), V(S(Xo), {
|
|
2854
2863
|
key: 0,
|
|
2855
2864
|
placement: "bottom-start",
|
|
2856
2865
|
trigger: "manual",
|
|
@@ -2878,7 +2887,7 @@ function Ir(e, u) {
|
|
|
2878
2887
|
return typeof e == "string" ? t : typeof e == "number" ? n : typeof e == "boolean" ? r : e;
|
|
2879
2888
|
}
|
|
2880
2889
|
function J0(e, u) {
|
|
2881
|
-
const { rules: t, clearRules: n } = u ?? {}, r = Eu(e ? structuredClone(qt(e)) : {}), o = t, a =
|
|
2890
|
+
const { rules: t, clearRules: n } = u ?? {}, r = Eu(e ? structuredClone(qt(e)) : {}), o = t, a = G(), i = {
|
|
2882
2891
|
ref: a,
|
|
2883
2892
|
model: r,
|
|
2884
2893
|
rules: o
|
|
@@ -2951,21 +2960,21 @@ const Fl = /* @__PURE__ */ he({
|
|
|
2951
2960
|
function E(v, p) {
|
|
2952
2961
|
p && y.setValue({ [p]: v });
|
|
2953
2962
|
}
|
|
2954
|
-
return (v, p) => (
|
|
2955
|
-
default:
|
|
2956
|
-
|
|
2957
|
-
|
|
2963
|
+
return (v, p) => (B(), V(S(Qo), ge(xe({ ...S(r), ...e.formProps })), {
|
|
2964
|
+
default: N(() => [
|
|
2965
|
+
q(v.$slots, "header"),
|
|
2966
|
+
q(v.$slots, "default", {
|
|
2958
2967
|
refs: d,
|
|
2959
2968
|
actions: y
|
|
2960
2969
|
}, () => [
|
|
2961
2970
|
Y(S(jt), ge(xe(v.gridProps)), {
|
|
2962
|
-
default:
|
|
2963
|
-
(
|
|
2971
|
+
default: N(() => [
|
|
2972
|
+
(B(!0), He(et, null, Ut(v.options, ({ key: b, gridItemProps: m, render: k, ...x }, w) => (B(), V(S(Ht), pe({
|
|
2964
2973
|
key: w,
|
|
2965
2974
|
span: 12
|
|
2966
2975
|
}, { ref_for: !0 }, m), {
|
|
2967
|
-
default:
|
|
2968
|
-
k ? (
|
|
2976
|
+
default: N(() => [
|
|
2977
|
+
k ? (B(), V(yu(k(d, y)), { key: 0 })) : (B(), V(S(Wt), {
|
|
2969
2978
|
key: 1,
|
|
2970
2979
|
options: x,
|
|
2971
2980
|
path: b,
|
|
@@ -2979,7 +2988,7 @@ const Fl = /* @__PURE__ */ he({
|
|
|
2979
2988
|
_: 1
|
|
2980
2989
|
}, 16)
|
|
2981
2990
|
]),
|
|
2982
|
-
|
|
2991
|
+
q(v.$slots, "footer")
|
|
2983
2992
|
]),
|
|
2984
2993
|
_: 3
|
|
2985
2994
|
}, 16));
|
|
@@ -2999,7 +3008,7 @@ const Fl = /* @__PURE__ */ he({
|
|
|
2999
3008
|
label: r
|
|
3000
3009
|
} : typeof r == "boolean" ? {} : r;
|
|
3001
3010
|
function c(s) {
|
|
3002
|
-
return r ?
|
|
3011
|
+
return r ? $e(ui, {
|
|
3003
3012
|
labelPlacement: "left",
|
|
3004
3013
|
path: e.path,
|
|
3005
3014
|
...i
|
|
@@ -3009,7 +3018,7 @@ const Fl = /* @__PURE__ */ he({
|
|
|
3009
3018
|
}
|
|
3010
3019
|
switch (o) {
|
|
3011
3020
|
case "date-picker":
|
|
3012
|
-
return c(
|
|
3021
|
+
return c($e(ei, {
|
|
3013
3022
|
value: e.value,
|
|
3014
3023
|
"onUpdate:value": (s) => {
|
|
3015
3024
|
t("update:value", s);
|
|
@@ -3017,7 +3026,7 @@ const Fl = /* @__PURE__ */ he({
|
|
|
3017
3026
|
...a
|
|
3018
3027
|
}));
|
|
3019
3028
|
case "input":
|
|
3020
|
-
return c(
|
|
3029
|
+
return c($e(en, {
|
|
3021
3030
|
value: e.value,
|
|
3022
3031
|
"onUpdate:value": (s) => {
|
|
3023
3032
|
t("update:value", s);
|
|
@@ -3025,7 +3034,7 @@ const Fl = /* @__PURE__ */ he({
|
|
|
3025
3034
|
...a
|
|
3026
3035
|
}));
|
|
3027
3036
|
case "search":
|
|
3028
|
-
return c(
|
|
3037
|
+
return c($e(ia, {
|
|
3029
3038
|
value: e.value,
|
|
3030
3039
|
"onUpdate:value": (s) => {
|
|
3031
3040
|
t("update:value", s);
|
|
@@ -3033,7 +3042,7 @@ const Fl = /* @__PURE__ */ he({
|
|
|
3033
3042
|
...a
|
|
3034
3043
|
}));
|
|
3035
3044
|
case "select":
|
|
3036
|
-
return c(
|
|
3045
|
+
return c($e(wr, {
|
|
3037
3046
|
value: e.value,
|
|
3038
3047
|
"onUpdate:value": (s) => {
|
|
3039
3048
|
t("update:value", s);
|
|
@@ -3041,7 +3050,7 @@ const Fl = /* @__PURE__ */ he({
|
|
|
3041
3050
|
...a
|
|
3042
3051
|
}));
|
|
3043
3052
|
case "switch":
|
|
3044
|
-
return c(
|
|
3053
|
+
return c($e(Ko, {
|
|
3045
3054
|
value: e.value,
|
|
3046
3055
|
"onUpdate:value": (s) => {
|
|
3047
3056
|
t("update:value", s);
|
|
@@ -3049,7 +3058,7 @@ const Fl = /* @__PURE__ */ he({
|
|
|
3049
3058
|
...a
|
|
3050
3059
|
}));
|
|
3051
3060
|
case "time-picker":
|
|
3052
|
-
return c(
|
|
3061
|
+
return c($e(Jo, {
|
|
3053
3062
|
value: e.value,
|
|
3054
3063
|
"onUpdate:value": (s) => {
|
|
3055
3064
|
t("update:value", s);
|
|
@@ -3057,12 +3066,12 @@ const Fl = /* @__PURE__ */ he({
|
|
|
3057
3066
|
...a
|
|
3058
3067
|
}));
|
|
3059
3068
|
case "button":
|
|
3060
|
-
return c(
|
|
3069
|
+
return c($e(Su, {
|
|
3061
3070
|
...a
|
|
3062
3071
|
}));
|
|
3063
3072
|
}
|
|
3064
3073
|
}
|
|
3065
|
-
return (r, o) => (
|
|
3074
|
+
return (r, o) => (B(), V(yu(n())));
|
|
3066
3075
|
}
|
|
3067
3076
|
}), Sl = /* @__PURE__ */ he({
|
|
3068
3077
|
__name: "PresetSelect",
|
|
@@ -3084,13 +3093,13 @@ const Fl = /* @__PURE__ */ he({
|
|
|
3084
3093
|
},
|
|
3085
3094
|
emits: ["before", "success", "error", "finally", "blur", "clear", "create", "focus", "scroll", "search", "update:value", "update:page", "update:pageSize"],
|
|
3086
3095
|
setup(e, { expose: u, emit: t }) {
|
|
3087
|
-
const n = t, r = ct("
|
|
3096
|
+
const n = t, r = ct("select-ref"), o = { page: "page", pageSize: "pageSize", search: "search", list: "list", count: "count", rowKey: "id", label: "label", value: "value", children: "children", ...e.fields }, a = Eu({
|
|
3088
3097
|
showSizePicker: !0,
|
|
3089
3098
|
pageSizes: [10, 20, 30],
|
|
3090
3099
|
pageSlot: 5,
|
|
3091
3100
|
prefix: (F) => `共${F.itemCount}条数据`,
|
|
3092
3101
|
...e.pagination && typeof e.pagination == "boolean" ? {} : e.pagination
|
|
3093
|
-
}), i =
|
|
3102
|
+
}), i = G({
|
|
3094
3103
|
page: 1,
|
|
3095
3104
|
pageSize: 10,
|
|
3096
3105
|
itemCount: 0
|
|
@@ -3132,8 +3141,9 @@ const Fl = /* @__PURE__ */ he({
|
|
|
3132
3141
|
...F
|
|
3133
3142
|
});
|
|
3134
3143
|
}
|
|
3135
|
-
const w =
|
|
3144
|
+
const w = G(""), T = Cr(() => {
|
|
3136
3145
|
x({
|
|
3146
|
+
[o.page]: 1,
|
|
3137
3147
|
[o.search]: w.value
|
|
3138
3148
|
});
|
|
3139
3149
|
}, typeof e.debounce == "number" ? e.debounce : 500), D = {
|
|
@@ -3156,13 +3166,14 @@ const Fl = /* @__PURE__ */ he({
|
|
|
3156
3166
|
},
|
|
3157
3167
|
onSearch: (F) => {
|
|
3158
3168
|
w.value = F, !f.value && (e.debounce ? T() : x({
|
|
3169
|
+
[o.page]: 1,
|
|
3159
3170
|
[o.search]: w.value
|
|
3160
3171
|
}));
|
|
3161
3172
|
},
|
|
3162
3173
|
onUpdateShow: (F) => {
|
|
3163
3174
|
F && (s.value || e.manual && g(c));
|
|
3164
3175
|
}
|
|
3165
|
-
},
|
|
3176
|
+
}, I = {
|
|
3166
3177
|
onUpdatePage: (F) => {
|
|
3167
3178
|
n("update:page", F), !f.value && x({
|
|
3168
3179
|
[o.page]: F
|
|
@@ -3203,9 +3214,8 @@ const Fl = /* @__PURE__ */ he({
|
|
|
3203
3214
|
runParam: (F) => g(Object.assign(_.value[0], F)),
|
|
3204
3215
|
runParamAsync: async (F) => d(Object.assign(_.value[0], F))
|
|
3205
3216
|
}
|
|
3206
|
-
}), (F, U) => (
|
|
3207
|
-
|
|
3208
|
-
ref: r,
|
|
3217
|
+
}), (F, U) => (B(), V(S(wr), pe({
|
|
3218
|
+
ref: "select-ref",
|
|
3209
3219
|
remote: "",
|
|
3210
3220
|
filterable: "",
|
|
3211
3221
|
multiple: F.multiple,
|
|
@@ -3227,23 +3237,23 @@ const Fl = /* @__PURE__ */ he({
|
|
|
3227
3237
|
"onUpdate:show": D.onUpdateShow,
|
|
3228
3238
|
"onUpdate:value": D.onUpdateValue
|
|
3229
3239
|
}), {
|
|
3230
|
-
header:
|
|
3231
|
-
|
|
3240
|
+
header: N(() => [
|
|
3241
|
+
q(F.$slots, "header")
|
|
3232
3242
|
]),
|
|
3233
|
-
action:
|
|
3234
|
-
|
|
3243
|
+
action: N(() => [
|
|
3244
|
+
q(F.$slots, "action", {}, () => [
|
|
3235
3245
|
Y(S(ku), null, {
|
|
3236
|
-
default:
|
|
3237
|
-
|
|
3238
|
-
|
|
3239
|
-
F.pagination ? (
|
|
3246
|
+
default: N(() => [
|
|
3247
|
+
q(F.$slots, "extra"),
|
|
3248
|
+
q(F.$slots, "pagination", {}, () => [
|
|
3249
|
+
F.pagination ? (B(), V(S(Ar), pe({
|
|
3240
3250
|
key: 0,
|
|
3241
3251
|
style: { "margin-left": "auto" },
|
|
3242
3252
|
simple: "",
|
|
3243
3253
|
disabled: S(f)
|
|
3244
3254
|
}, { ...a, ...i.value }, {
|
|
3245
|
-
"onUpdate:page":
|
|
3246
|
-
"onUpdate:pageSize":
|
|
3255
|
+
"onUpdate:page": I.onUpdatePage,
|
|
3256
|
+
"onUpdate:pageSize": I.onUpdatePageSize
|
|
3247
3257
|
}), null, 16, ["disabled", "onUpdate:page", "onUpdate:pageSize"])) : je("", !0)
|
|
3248
3258
|
])
|
|
3249
3259
|
]),
|
|
@@ -3251,6 +3261,12 @@ const Fl = /* @__PURE__ */ he({
|
|
|
3251
3261
|
})
|
|
3252
3262
|
])
|
|
3253
3263
|
]),
|
|
3264
|
+
empty: N(() => [
|
|
3265
|
+
q(F.$slots, "empty")
|
|
3266
|
+
]),
|
|
3267
|
+
arrow: N(() => [
|
|
3268
|
+
q(F.$slots, "arrow")
|
|
3269
|
+
]),
|
|
3254
3270
|
_: 3
|
|
3255
3271
|
}, 16, ["multiple", "disabled", "options", "label-field", "value-field", "children-field", "value", "loading", "onBlur", "onClear", "onCreate", "onFocus", "onScroll", "onSearch", "onUpdate:show", "onUpdate:value"]));
|
|
3256
3272
|
}
|
|
@@ -3307,7 +3323,7 @@ const Fl = /* @__PURE__ */ he({
|
|
|
3307
3323
|
runParam: (v) => s(Object.assign(c.value[0], v)),
|
|
3308
3324
|
runParamAsync: async (v) => l(Object.assign(c.value[0], v))
|
|
3309
3325
|
};
|
|
3310
|
-
return u({ refs: y, actions: E }), (v, p) =>
|
|
3326
|
+
return u({ refs: y, actions: E }), (v, p) => q(v.$slots, "default", {
|
|
3311
3327
|
refs: y,
|
|
3312
3328
|
actions: E
|
|
3313
3329
|
});
|
|
@@ -3321,7 +3337,7 @@ const Fl = /* @__PURE__ */ he({
|
|
|
3321
3337
|
viewBox: "0 0 24 24"
|
|
3322
3338
|
};
|
|
3323
3339
|
function ua(e, u, t, n, r, o) {
|
|
3324
|
-
return
|
|
3340
|
+
return B(), He("svg", ea, u[0] || (u[0] = [
|
|
3325
3341
|
So('<circle cx="18" cy="12" r="0" fill="#757575"><animate attributeName="r" begin=".67" calcMode="spline" dur="1.5s" keySplines="0.2 0.2 0.4 0.8;0.2 0.2 0.4 0.8;0.2 0.2 0.4 0.8" repeatCount="indefinite" values="0;2;0;0"></animate></circle><circle cx="12" cy="12" r="0" fill="#757575"><animate attributeName="r" begin=".33" calcMode="spline" dur="1.5s" keySplines="0.2 0.2 0.4 0.8;0.2 0.2 0.4 0.8;0.2 0.2 0.4 0.8" repeatCount="indefinite" values="0;2;0;0"></animate></circle><circle cx="6" cy="12" r="0" fill="#757575"><animate attributeName="r" begin="0" calcMode="spline" dur="1.5s" keySplines="0.2 0.2 0.4 0.8;0.2 0.2 0.4 0.8;0.2 0.2 0.4 0.8" repeatCount="indefinite" values="0;2;0;0"></animate></circle>', 3)
|
|
3326
3342
|
]));
|
|
3327
3343
|
}
|
|
@@ -3334,7 +3350,7 @@ const ta = /* @__PURE__ */ nn(K0, [["render", ua]]), na = {
|
|
|
3334
3350
|
viewBox: "0 0 24 24"
|
|
3335
3351
|
};
|
|
3336
3352
|
function oa(e, u, t, n, r, o) {
|
|
3337
|
-
return
|
|
3353
|
+
return B(), He("svg", ra, u[0] || (u[0] = [
|
|
3338
3354
|
Fu("path", {
|
|
3339
3355
|
fill: "currentColor",
|
|
3340
3356
|
d: "M11 2c4.968 0 9 4.032 9 9s-4.032 9-9 9s-9-4.032-9-9s4.032-9 9-9m0 16c3.867 0 7-3.133 7-7s-3.133-7-7-7s-7 3.133-7 7s3.133 7 7 7m8.485.071l2.829 2.828l-1.415 1.415l-2.828-2.829z"
|
|
@@ -3354,7 +3370,7 @@ const Gn = /* @__PURE__ */ nn(na, [["render", oa]]), ia = /* @__PURE__ */ he({
|
|
|
3354
3370
|
},
|
|
3355
3371
|
emits: ["update:value"],
|
|
3356
3372
|
setup(e, { emit: u }) {
|
|
3357
|
-
const t = u, n = ct("inputRef"), r =
|
|
3373
|
+
const t = u, n = ct("inputRef"), r = G(e.value), { isPending: o, start: a } = ri(() => {
|
|
3358
3374
|
}, typeof e.autoTrigger == "number" ? e.autoTrigger : 500);
|
|
3359
3375
|
Me(() => e.value, (l) => {
|
|
3360
3376
|
r.value = l;
|
|
@@ -3373,8 +3389,8 @@ const Gn = /* @__PURE__ */ nn(na, [["render", oa]]), ia = /* @__PURE__ */ he({
|
|
|
3373
3389
|
}
|
|
3374
3390
|
return Le(() => {
|
|
3375
3391
|
!e.loading && r.value && n.value?.focus();
|
|
3376
|
-
}), (l, f) => (
|
|
3377
|
-
default:
|
|
3392
|
+
}), (l, f) => (B(), V(S(ti), null, {
|
|
3393
|
+
default: N(() => [
|
|
3378
3394
|
Y(S(en), pe({
|
|
3379
3395
|
ref_key: "inputRef",
|
|
3380
3396
|
ref: n,
|
|
@@ -3383,26 +3399,26 @@ const Gn = /* @__PURE__ */ nn(na, [["render", oa]]), ia = /* @__PURE__ */ he({
|
|
|
3383
3399
|
disabled: l.loading,
|
|
3384
3400
|
clearable: ""
|
|
3385
3401
|
}, l.inputProps, { onKeydown: s }), {
|
|
3386
|
-
prefix:
|
|
3387
|
-
|
|
3388
|
-
|
|
3402
|
+
prefix: N(() => [
|
|
3403
|
+
q(l.$slots, "prefix", {}, () => [
|
|
3404
|
+
q(l.$slots, "prefix-icon", {}, () => [
|
|
3389
3405
|
Y(Gn)
|
|
3390
3406
|
])
|
|
3391
3407
|
])
|
|
3392
3408
|
]),
|
|
3393
|
-
suffix:
|
|
3394
|
-
S(o) ? (
|
|
3409
|
+
suffix: N(() => [
|
|
3410
|
+
S(o) ? (B(), V(ta, { key: 0 })) : je("", !0)
|
|
3395
3411
|
]),
|
|
3396
3412
|
_: 3
|
|
3397
3413
|
}, 16, ["value", "disabled"]),
|
|
3398
|
-
|
|
3399
|
-
l.searchButton ? (
|
|
3414
|
+
q(l.$slots, "button", {}, () => [
|
|
3415
|
+
l.searchButton ? (B(), V(S(Su), pe({
|
|
3400
3416
|
key: 0,
|
|
3401
3417
|
type: l.type,
|
|
3402
3418
|
loading: l.loading
|
|
3403
3419
|
}, l.buttonProps, { onClick: c }), {
|
|
3404
|
-
icon:
|
|
3405
|
-
|
|
3420
|
+
icon: N(() => [
|
|
3421
|
+
q(l.$slots, "button-icon", {}, () => [
|
|
3406
3422
|
Y(Gn)
|
|
3407
3423
|
])
|
|
3408
3424
|
]),
|
|
@@ -3423,7 +3439,7 @@ const Gn = /* @__PURE__ */ nn(na, [["render", oa]]), ia = /* @__PURE__ */ he({
|
|
|
3423
3439
|
}),
|
|
3424
3440
|
emits: ["update:value"],
|
|
3425
3441
|
setup(e) {
|
|
3426
|
-
const u = Po(e, "value"), t =
|
|
3442
|
+
const u = Po(e, "value"), t = G(!1), n = ct("inputRef"), r = G(u.value);
|
|
3427
3443
|
function o() {
|
|
3428
3444
|
t.value = !0, Kt(() => {
|
|
3429
3445
|
n.value?.focus();
|
|
@@ -3432,8 +3448,8 @@ const Gn = /* @__PURE__ */ nn(na, [["render", oa]]), ia = /* @__PURE__ */ he({
|
|
|
3432
3448
|
function a() {
|
|
3433
3449
|
t.value = !1, u.value = r.value;
|
|
3434
3450
|
}
|
|
3435
|
-
return (i, c) => (
|
|
3436
|
-
t.value ? (
|
|
3451
|
+
return (i, c) => (B(), He("div", { onClick: o }, [
|
|
3452
|
+
t.value ? (B(), V(S(en), pe({
|
|
3437
3453
|
key: 0,
|
|
3438
3454
|
ref_key: "inputRef",
|
|
3439
3455
|
ref: n,
|
|
@@ -3442,7 +3458,7 @@ const Gn = /* @__PURE__ */ nn(na, [["render", oa]]), ia = /* @__PURE__ */ he({
|
|
|
3442
3458
|
"onUpdate:value": c[0] || (c[0] = (s) => r.value = s),
|
|
3443
3459
|
onChange: a,
|
|
3444
3460
|
onBlur: a
|
|
3445
|
-
}), null, 16, ["value"])) : (
|
|
3461
|
+
}), null, 16, ["value"])) : (B(), He(et, { key: 1 }, [
|
|
3446
3462
|
it(at(r.value), 1)
|
|
3447
3463
|
], 64))
|
|
3448
3464
|
]));
|
|
@@ -3457,22 +3473,22 @@ const Gn = /* @__PURE__ */ nn(na, [["render", oa]]), ia = /* @__PURE__ */ he({
|
|
|
3457
3473
|
emits: ["click"],
|
|
3458
3474
|
setup(e, { emit: u }) {
|
|
3459
3475
|
const t = u;
|
|
3460
|
-
return (n, r) => (
|
|
3461
|
-
trigger:
|
|
3476
|
+
return (n, r) => (B(), V(S(Er), ge(xe(n.tooltipProps)), {
|
|
3477
|
+
trigger: N(() => [
|
|
3462
3478
|
Y(S(Su), pe(n.buttonProps, {
|
|
3463
3479
|
onClick: r[0] || (r[0] = (o) => t("click", o))
|
|
3464
3480
|
}), {
|
|
3465
|
-
icon:
|
|
3466
|
-
|
|
3481
|
+
icon: N(() => [
|
|
3482
|
+
q(n.$slots, "icon")
|
|
3467
3483
|
]),
|
|
3468
|
-
default:
|
|
3469
|
-
|
|
3484
|
+
default: N(() => [
|
|
3485
|
+
q(n.$slots, "default")
|
|
3470
3486
|
]),
|
|
3471
3487
|
_: 3
|
|
3472
3488
|
}, 16)
|
|
3473
3489
|
]),
|
|
3474
|
-
default:
|
|
3475
|
-
|
|
3490
|
+
default: N(() => [
|
|
3491
|
+
q(n.$slots, "tooltip", {}, () => [
|
|
3476
3492
|
it(at(n.value), 1)
|
|
3477
3493
|
])
|
|
3478
3494
|
]),
|
|
@@ -3491,7 +3507,7 @@ const {
|
|
|
3491
3507
|
let {
|
|
3492
3508
|
freeze: ae,
|
|
3493
3509
|
seal: ke,
|
|
3494
|
-
create:
|
|
3510
|
+
create: $r
|
|
3495
3511
|
} = Object, {
|
|
3496
3512
|
apply: Vt,
|
|
3497
3513
|
construct: Zt
|
|
@@ -3524,7 +3540,7 @@ function ha(e) {
|
|
|
3524
3540
|
return Zt(e, t);
|
|
3525
3541
|
};
|
|
3526
3542
|
}
|
|
3527
|
-
function
|
|
3543
|
+
function $(e, u) {
|
|
3528
3544
|
let t = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : Ju;
|
|
3529
3545
|
Wn && Wn(e, null);
|
|
3530
3546
|
let n = u.length;
|
|
@@ -3544,7 +3560,7 @@ function ba(e) {
|
|
|
3544
3560
|
return e;
|
|
3545
3561
|
}
|
|
3546
3562
|
function Oe(e) {
|
|
3547
|
-
const u =
|
|
3563
|
+
const u = $r(null);
|
|
3548
3564
|
for (const [t, n] of zr(e))
|
|
3549
3565
|
ye(e, t) && (Array.isArray(n) ? u[t] = ba(n) : n && typeof n == "object" && n.constructor === Object ? u[t] = Oe(n) : u[t] = n);
|
|
3550
3566
|
return u;
|
|
@@ -3565,7 +3581,7 @@ function gu(e, u) {
|
|
|
3565
3581
|
}
|
|
3566
3582
|
return t;
|
|
3567
3583
|
}
|
|
3568
|
-
const Yn = ae(["a", "abbr", "acronym", "address", "area", "article", "aside", "audio", "b", "bdi", "bdo", "big", "blink", "blockquote", "body", "br", "button", "canvas", "caption", "center", "cite", "code", "col", "colgroup", "content", "data", "datalist", "dd", "decorator", "del", "details", "dfn", "dialog", "dir", "div", "dl", "dt", "element", "em", "fieldset", "figcaption", "figure", "font", "footer", "form", "h1", "h2", "h3", "h4", "h5", "h6", "head", "header", "hgroup", "hr", "html", "i", "img", "input", "ins", "kbd", "label", "legend", "li", "main", "map", "mark", "marquee", "menu", "menuitem", "meter", "nav", "nobr", "ol", "optgroup", "option", "output", "p", "picture", "pre", "progress", "q", "rp", "rt", "ruby", "s", "samp", "section", "select", "shadow", "small", "source", "spacer", "span", "strike", "strong", "style", "sub", "summary", "sup", "table", "tbody", "td", "template", "textarea", "tfoot", "th", "thead", "time", "tr", "track", "tt", "u", "ul", "var", "video", "wbr"]), Dt = ae(["svg", "a", "altglyph", "altglyphdef", "altglyphitem", "animatecolor", "animatemotion", "animatetransform", "circle", "clippath", "defs", "desc", "ellipse", "filter", "font", "g", "glyph", "glyphref", "hkern", "image", "line", "lineargradient", "marker", "mask", "metadata", "mpath", "path", "pattern", "polygon", "polyline", "radialgradient", "rect", "stop", "style", "switch", "symbol", "text", "textpath", "title", "tref", "tspan", "view", "vkern"]), Ft = ae(["feBlend", "feColorMatrix", "feComponentTransfer", "feComposite", "feConvolveMatrix", "feDiffuseLighting", "feDisplacementMap", "feDistantLight", "feDropShadow", "feFlood", "feFuncA", "feFuncB", "feFuncG", "feFuncR", "feGaussianBlur", "feImage", "feMerge", "feMergeNode", "feMorphology", "feOffset", "fePointLight", "feSpecularLighting", "feSpotLight", "feTile", "feTurbulence"]), ma = ae(["animate", "color-profile", "cursor", "discard", "font-face", "font-face-format", "font-face-name", "font-face-src", "font-face-uri", "foreignobject", "hatch", "hatchpath", "mesh", "meshgradient", "meshpatch", "meshrow", "missing-glyph", "script", "set", "solidcolor", "unknown", "use"]), St = ae(["math", "menclose", "merror", "mfenced", "mfrac", "mglyph", "mi", "mlabeledtr", "mmultiscripts", "mn", "mo", "mover", "mpadded", "mphantom", "mroot", "mrow", "ms", "mspace", "msqrt", "mstyle", "msub", "msup", "msubsup", "mtable", "mtd", "mtext", "mtr", "munder", "munderover", "mprescripts"]), ga = ae(["maction", "maligngroup", "malignmark", "mlongdiv", "mscarries", "mscarry", "msgroup", "mstack", "msline", "msrow", "semantics", "annotation", "annotation-xml", "mprescripts", "none"]), Xn = ae(["#text"]), Qn = ae(["accept", "action", "align", "alt", "autocapitalize", "autocomplete", "autopictureinpicture", "autoplay", "background", "bgcolor", "border", "capture", "cellpadding", "cellspacing", "checked", "cite", "class", "clear", "color", "cols", "colspan", "controls", "controlslist", "coords", "crossorigin", "datetime", "decoding", "default", "dir", "disabled", "disablepictureinpicture", "disableremoteplayback", "download", "draggable", "enctype", "enterkeyhint", "face", "for", "headers", "height", "hidden", "high", "href", "hreflang", "id", "inputmode", "integrity", "ismap", "kind", "label", "lang", "list", "loading", "loop", "low", "max", "maxlength", "media", "method", "min", "minlength", "multiple", "muted", "name", "nonce", "noshade", "novalidate", "nowrap", "open", "optimum", "pattern", "placeholder", "playsinline", "popover", "popovertarget", "popovertargetaction", "poster", "preload", "pubdate", "radiogroup", "readonly", "rel", "required", "rev", "reversed", "role", "rows", "rowspan", "spellcheck", "scope", "selected", "shape", "size", "sizes", "span", "srclang", "start", "src", "srcset", "step", "style", "summary", "tabindex", "title", "translate", "type", "usemap", "valign", "value", "width", "wrap", "xmlns", "slot"]), Tt = ae(["accent-height", "accumulate", "additive", "alignment-baseline", "amplitude", "ascent", "attributename", "attributetype", "azimuth", "basefrequency", "baseline-shift", "begin", "bias", "by", "class", "clip", "clippathunits", "clip-path", "clip-rule", "color", "color-interpolation", "color-interpolation-filters", "color-profile", "color-rendering", "cx", "cy", "d", "dx", "dy", "diffuseconstant", "direction", "display", "divisor", "dur", "edgemode", "elevation", "end", "exponent", "fill", "fill-opacity", "fill-rule", "filter", "filterunits", "flood-color", "flood-opacity", "font-family", "font-size", "font-size-adjust", "font-stretch", "font-style", "font-variant", "font-weight", "fx", "fy", "g1", "g2", "glyph-name", "glyphref", "gradientunits", "gradienttransform", "height", "href", "id", "image-rendering", "in", "in2", "intercept", "k", "k1", "k2", "k3", "k4", "kerning", "keypoints", "keysplines", "keytimes", "lang", "lengthadjust", "letter-spacing", "kernelmatrix", "kernelunitlength", "lighting-color", "local", "marker-end", "marker-mid", "marker-start", "markerheight", "markerunits", "markerwidth", "maskcontentunits", "maskunits", "max", "mask", "media", "method", "mode", "min", "name", "numoctaves", "offset", "operator", "opacity", "order", "orient", "orientation", "origin", "overflow", "paint-order", "path", "pathlength", "patterncontentunits", "patterntransform", "patternunits", "points", "preservealpha", "preserveaspectratio", "primitiveunits", "r", "rx", "ry", "radius", "refx", "refy", "repeatcount", "repeatdur", "restart", "result", "rotate", "scale", "seed", "shape-rendering", "slope", "specularconstant", "specularexponent", "spreadmethod", "startoffset", "stddeviation", "stitchtiles", "stop-color", "stop-opacity", "stroke-dasharray", "stroke-dashoffset", "stroke-linecap", "stroke-linejoin", "stroke-miterlimit", "stroke-opacity", "stroke", "stroke-width", "style", "surfacescale", "systemlanguage", "tabindex", "tablevalues", "targetx", "targety", "transform", "transform-origin", "text-anchor", "text-decoration", "text-rendering", "textlength", "type", "u1", "u2", "unicode", "values", "viewbox", "visibility", "version", "vert-adv-y", "vert-origin-x", "vert-origin-y", "width", "word-spacing", "wrap", "writing-mode", "xchannelselector", "ychannelselector", "x", "x1", "x2", "xmlns", "y", "y1", "y2", "z", "zoomandpan"]), Jn = ae(["accent", "accentunder", "align", "bevelled", "close", "columnsalign", "columnlines", "columnspan", "denomalign", "depth", "dir", "display", "displaystyle", "encoding", "fence", "frame", "height", "href", "id", "largeop", "length", "linethickness", "lspace", "lquote", "mathbackground", "mathcolor", "mathsize", "mathvariant", "maxsize", "minsize", "movablelimits", "notation", "numalign", "open", "rowalign", "rowlines", "rowspacing", "rowspan", "rspace", "rquote", "scriptlevel", "scriptminsize", "scriptsizemultiplier", "selection", "separator", "separators", "stretchy", "subscriptshift", "supscriptshift", "symmetric", "voffset", "width", "xmlns"]), Hu = ae(["xlink:href", "xml:id", "xlink:title", "xml:space", "xmlns:xlink"]), xa = ke(/\{\{[\w\W]*|[\w\W]*\}\}/gm), ka = ke(/<%[\w\W]*|[\w\W]*%>/gm), _a = ke(/\$\{[\w\W]*/gm), va = ke(/^data-[\-\w.\u00B7-\uFFFF]+$/), ya = ke(/^aria-[\-\w]+$/),
|
|
3584
|
+
const Yn = ae(["a", "abbr", "acronym", "address", "area", "article", "aside", "audio", "b", "bdi", "bdo", "big", "blink", "blockquote", "body", "br", "button", "canvas", "caption", "center", "cite", "code", "col", "colgroup", "content", "data", "datalist", "dd", "decorator", "del", "details", "dfn", "dialog", "dir", "div", "dl", "dt", "element", "em", "fieldset", "figcaption", "figure", "font", "footer", "form", "h1", "h2", "h3", "h4", "h5", "h6", "head", "header", "hgroup", "hr", "html", "i", "img", "input", "ins", "kbd", "label", "legend", "li", "main", "map", "mark", "marquee", "menu", "menuitem", "meter", "nav", "nobr", "ol", "optgroup", "option", "output", "p", "picture", "pre", "progress", "q", "rp", "rt", "ruby", "s", "samp", "section", "select", "shadow", "small", "source", "spacer", "span", "strike", "strong", "style", "sub", "summary", "sup", "table", "tbody", "td", "template", "textarea", "tfoot", "th", "thead", "time", "tr", "track", "tt", "u", "ul", "var", "video", "wbr"]), Dt = ae(["svg", "a", "altglyph", "altglyphdef", "altglyphitem", "animatecolor", "animatemotion", "animatetransform", "circle", "clippath", "defs", "desc", "ellipse", "filter", "font", "g", "glyph", "glyphref", "hkern", "image", "line", "lineargradient", "marker", "mask", "metadata", "mpath", "path", "pattern", "polygon", "polyline", "radialgradient", "rect", "stop", "style", "switch", "symbol", "text", "textpath", "title", "tref", "tspan", "view", "vkern"]), Ft = ae(["feBlend", "feColorMatrix", "feComponentTransfer", "feComposite", "feConvolveMatrix", "feDiffuseLighting", "feDisplacementMap", "feDistantLight", "feDropShadow", "feFlood", "feFuncA", "feFuncB", "feFuncG", "feFuncR", "feGaussianBlur", "feImage", "feMerge", "feMergeNode", "feMorphology", "feOffset", "fePointLight", "feSpecularLighting", "feSpotLight", "feTile", "feTurbulence"]), ma = ae(["animate", "color-profile", "cursor", "discard", "font-face", "font-face-format", "font-face-name", "font-face-src", "font-face-uri", "foreignobject", "hatch", "hatchpath", "mesh", "meshgradient", "meshpatch", "meshrow", "missing-glyph", "script", "set", "solidcolor", "unknown", "use"]), St = ae(["math", "menclose", "merror", "mfenced", "mfrac", "mglyph", "mi", "mlabeledtr", "mmultiscripts", "mn", "mo", "mover", "mpadded", "mphantom", "mroot", "mrow", "ms", "mspace", "msqrt", "mstyle", "msub", "msup", "msubsup", "mtable", "mtd", "mtext", "mtr", "munder", "munderover", "mprescripts"]), ga = ae(["maction", "maligngroup", "malignmark", "mlongdiv", "mscarries", "mscarry", "msgroup", "mstack", "msline", "msrow", "semantics", "annotation", "annotation-xml", "mprescripts", "none"]), Xn = ae(["#text"]), Qn = ae(["accept", "action", "align", "alt", "autocapitalize", "autocomplete", "autopictureinpicture", "autoplay", "background", "bgcolor", "border", "capture", "cellpadding", "cellspacing", "checked", "cite", "class", "clear", "color", "cols", "colspan", "controls", "controlslist", "coords", "crossorigin", "datetime", "decoding", "default", "dir", "disabled", "disablepictureinpicture", "disableremoteplayback", "download", "draggable", "enctype", "enterkeyhint", "face", "for", "headers", "height", "hidden", "high", "href", "hreflang", "id", "inputmode", "integrity", "ismap", "kind", "label", "lang", "list", "loading", "loop", "low", "max", "maxlength", "media", "method", "min", "minlength", "multiple", "muted", "name", "nonce", "noshade", "novalidate", "nowrap", "open", "optimum", "pattern", "placeholder", "playsinline", "popover", "popovertarget", "popovertargetaction", "poster", "preload", "pubdate", "radiogroup", "readonly", "rel", "required", "rev", "reversed", "role", "rows", "rowspan", "spellcheck", "scope", "selected", "shape", "size", "sizes", "span", "srclang", "start", "src", "srcset", "step", "style", "summary", "tabindex", "title", "translate", "type", "usemap", "valign", "value", "width", "wrap", "xmlns", "slot"]), Tt = ae(["accent-height", "accumulate", "additive", "alignment-baseline", "amplitude", "ascent", "attributename", "attributetype", "azimuth", "basefrequency", "baseline-shift", "begin", "bias", "by", "class", "clip", "clippathunits", "clip-path", "clip-rule", "color", "color-interpolation", "color-interpolation-filters", "color-profile", "color-rendering", "cx", "cy", "d", "dx", "dy", "diffuseconstant", "direction", "display", "divisor", "dur", "edgemode", "elevation", "end", "exponent", "fill", "fill-opacity", "fill-rule", "filter", "filterunits", "flood-color", "flood-opacity", "font-family", "font-size", "font-size-adjust", "font-stretch", "font-style", "font-variant", "font-weight", "fx", "fy", "g1", "g2", "glyph-name", "glyphref", "gradientunits", "gradienttransform", "height", "href", "id", "image-rendering", "in", "in2", "intercept", "k", "k1", "k2", "k3", "k4", "kerning", "keypoints", "keysplines", "keytimes", "lang", "lengthadjust", "letter-spacing", "kernelmatrix", "kernelunitlength", "lighting-color", "local", "marker-end", "marker-mid", "marker-start", "markerheight", "markerunits", "markerwidth", "maskcontentunits", "maskunits", "max", "mask", "media", "method", "mode", "min", "name", "numoctaves", "offset", "operator", "opacity", "order", "orient", "orientation", "origin", "overflow", "paint-order", "path", "pathlength", "patterncontentunits", "patterntransform", "patternunits", "points", "preservealpha", "preserveaspectratio", "primitiveunits", "r", "rx", "ry", "radius", "refx", "refy", "repeatcount", "repeatdur", "restart", "result", "rotate", "scale", "seed", "shape-rendering", "slope", "specularconstant", "specularexponent", "spreadmethod", "startoffset", "stddeviation", "stitchtiles", "stop-color", "stop-opacity", "stroke-dasharray", "stroke-dashoffset", "stroke-linecap", "stroke-linejoin", "stroke-miterlimit", "stroke-opacity", "stroke", "stroke-width", "style", "surfacescale", "systemlanguage", "tabindex", "tablevalues", "targetx", "targety", "transform", "transform-origin", "text-anchor", "text-decoration", "text-rendering", "textlength", "type", "u1", "u2", "unicode", "values", "viewbox", "visibility", "version", "vert-adv-y", "vert-origin-x", "vert-origin-y", "width", "word-spacing", "wrap", "writing-mode", "xchannelselector", "ychannelselector", "x", "x1", "x2", "xmlns", "y", "y1", "y2", "z", "zoomandpan"]), Jn = ae(["accent", "accentunder", "align", "bevelled", "close", "columnsalign", "columnlines", "columnspan", "denomalign", "depth", "dir", "display", "displaystyle", "encoding", "fence", "frame", "height", "href", "id", "largeop", "length", "linethickness", "lspace", "lquote", "mathbackground", "mathcolor", "mathsize", "mathvariant", "maxsize", "minsize", "movablelimits", "notation", "numalign", "open", "rowalign", "rowlines", "rowspacing", "rowspan", "rspace", "rquote", "scriptlevel", "scriptminsize", "scriptsizemultiplier", "selection", "separator", "separators", "stretchy", "subscriptshift", "supscriptshift", "symmetric", "voffset", "width", "xmlns"]), Hu = ae(["xlink:href", "xml:id", "xlink:title", "xml:space", "xmlns:xlink"]), xa = ke(/\{\{[\w\W]*|[\w\W]*\}\}/gm), ka = ke(/<%[\w\W]*|[\w\W]*%>/gm), _a = ke(/\$\{[\w\W]*/gm), va = ke(/^data-[\-\w.\u00B7-\uFFFF]+$/), ya = ke(/^aria-[\-\w]+$/), Br = ke(
|
|
3569
3585
|
/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i
|
|
3570
3586
|
// eslint-disable-line no-useless-escape
|
|
3571
3587
|
), Ea = ke(/^(?:\w+script|data):/i), Aa = ke(
|
|
@@ -3580,7 +3596,7 @@ var Kn = /* @__PURE__ */ Object.freeze({
|
|
|
3580
3596
|
DATA_ATTR: va,
|
|
3581
3597
|
DOCTYPE_NAME: Ur,
|
|
3582
3598
|
ERB_EXPR: ka,
|
|
3583
|
-
IS_ALLOWED_URI:
|
|
3599
|
+
IS_ALLOWED_URI: Br,
|
|
3584
3600
|
IS_SCRIPT_OR_DATA: Ea,
|
|
3585
3601
|
MUSTACHE_EXPR: xa,
|
|
3586
3602
|
TMPLIT_EXPR: _a
|
|
@@ -3656,7 +3672,7 @@ function qr() {
|
|
|
3656
3672
|
createDocumentFragment: T,
|
|
3657
3673
|
getElementsByTagName: D
|
|
3658
3674
|
} = t, {
|
|
3659
|
-
importNode:
|
|
3675
|
+
importNode: I
|
|
3660
3676
|
} = n;
|
|
3661
3677
|
let L = er();
|
|
3662
3678
|
u.isSupported = typeof zr == "function" && typeof b == "function" && x && x.createHTMLDocument !== void 0;
|
|
@@ -3672,11 +3688,11 @@ function qr() {
|
|
|
3672
3688
|
} = Kn;
|
|
3673
3689
|
let {
|
|
3674
3690
|
IS_ALLOWED_URI: M
|
|
3675
|
-
} = Kn,
|
|
3676
|
-
const z =
|
|
3677
|
-
let
|
|
3678
|
-
const oe =
|
|
3679
|
-
let
|
|
3691
|
+
} = Kn, j = null;
|
|
3692
|
+
const z = $({}, [...Yn, ...Dt, ...Ft, ...St, ...Xn]);
|
|
3693
|
+
let W = null;
|
|
3694
|
+
const oe = $({}, [...Qn, ...Tt, ...Jn, ...Hu]);
|
|
3695
|
+
let H = Object.seal($r(null, {
|
|
3680
3696
|
tagNameCheck: {
|
|
3681
3697
|
writable: !0,
|
|
3682
3698
|
configurable: !1,
|
|
@@ -3698,15 +3714,15 @@ function qr() {
|
|
|
3698
3714
|
})), Ae = null, Ne = null, Ye = !0, Xe = !0, Qe = !1, We = !0, Ie = !1, ze = !0, Ve = !1, pt = !1, ht = !1, Je = !1, Ou = !1, Mu = !1, mn = !0, gn = !1;
|
|
3699
3715
|
const bo = "user-content-";
|
|
3700
3716
|
let bt = !0, lu = !1, Ke = {}, eu = null;
|
|
3701
|
-
const xn =
|
|
3717
|
+
const xn = $({}, ["annotation-xml", "audio", "colgroup", "desc", "foreignobject", "head", "iframe", "math", "mi", "mn", "mo", "ms", "mtext", "noembed", "noframes", "noscript", "plaintext", "script", "style", "svg", "template", "thead", "title", "video", "xmp"]);
|
|
3702
3718
|
let kn = null;
|
|
3703
|
-
const _n =
|
|
3719
|
+
const _n = $({}, ["audio", "video", "img", "source", "image", "track"]);
|
|
3704
3720
|
let mt = null;
|
|
3705
|
-
const vn =
|
|
3721
|
+
const vn = $({}, ["alt", "class", "for", "id", "label", "name", "pattern", "placeholder", "role", "summary", "title", "value", "style", "xmlns"]), Lu = "http://www.w3.org/1998/Math/MathML", Nu = "http://www.w3.org/2000/svg", Te = "http://www.w3.org/1999/xhtml";
|
|
3706
3722
|
let uu = Te, gt = !1, xt = null;
|
|
3707
|
-
const mo =
|
|
3708
|
-
let Iu =
|
|
3709
|
-
const go =
|
|
3723
|
+
const mo = $({}, [Lu, Nu, Te], Ct);
|
|
3724
|
+
let Iu = $({}, ["mi", "mo", "mn", "ms", "mtext"]), zu = $({}, ["annotation-xml"]);
|
|
3725
|
+
const go = $({}, ["title", "style", "font", "a", "script"]);
|
|
3710
3726
|
let fu = null;
|
|
3711
3727
|
const xo = ["application/xhtml+xml", "text/html"], ko = "text/html";
|
|
3712
3728
|
let J = null, tu = null;
|
|
@@ -3716,7 +3732,7 @@ function qr() {
|
|
|
3716
3732
|
let h = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
3717
3733
|
if (!(tu && tu === h)) {
|
|
3718
3734
|
if ((!h || typeof h != "object") && (h = {}), h = Oe(h), fu = // eslint-disable-next-line unicorn/prefer-includes
|
|
3719
|
-
xo.indexOf(h.PARSER_MEDIA_TYPE) === -1 ? ko : h.PARSER_MEDIA_TYPE, J = fu === "application/xhtml+xml" ? Ct : Ju,
|
|
3735
|
+
xo.indexOf(h.PARSER_MEDIA_TYPE) === -1 ? ko : h.PARSER_MEDIA_TYPE, J = fu === "application/xhtml+xml" ? Ct : Ju, j = ye(h, "ALLOWED_TAGS") ? $({}, h.ALLOWED_TAGS, J) : z, W = ye(h, "ALLOWED_ATTR") ? $({}, h.ALLOWED_ATTR, J) : oe, xt = ye(h, "ALLOWED_NAMESPACES") ? $({}, h.ALLOWED_NAMESPACES, Ct) : mo, mt = ye(h, "ADD_URI_SAFE_ATTR") ? $(Oe(vn), h.ADD_URI_SAFE_ATTR, J) : vn, kn = ye(h, "ADD_DATA_URI_TAGS") ? $(Oe(_n), h.ADD_DATA_URI_TAGS, J) : _n, eu = ye(h, "FORBID_CONTENTS") ? $({}, h.FORBID_CONTENTS, J) : xn, Ae = ye(h, "FORBID_TAGS") ? $({}, h.FORBID_TAGS, J) : Oe({}), Ne = ye(h, "FORBID_ATTR") ? $({}, h.FORBID_ATTR, J) : Oe({}), Ke = ye(h, "USE_PROFILES") ? h.USE_PROFILES : !1, Ye = h.ALLOW_ARIA_ATTR !== !1, Xe = h.ALLOW_DATA_ATTR !== !1, Qe = h.ALLOW_UNKNOWN_PROTOCOLS || !1, We = h.ALLOW_SELF_CLOSE_IN_ATTR !== !1, Ie = h.SAFE_FOR_TEMPLATES || !1, ze = h.SAFE_FOR_XML !== !1, Ve = h.WHOLE_DOCUMENT || !1, Je = h.RETURN_DOM || !1, Ou = h.RETURN_DOM_FRAGMENT || !1, Mu = h.RETURN_TRUSTED_TYPE || !1, ht = h.FORCE_BODY || !1, mn = h.SANITIZE_DOM !== !1, gn = h.SANITIZE_NAMED_PROPS || !1, bt = h.KEEP_CONTENT !== !1, lu = h.IN_PLACE || !1, M = h.ALLOWED_URI_REGEXP || Br, uu = h.NAMESPACE || Te, Iu = h.MATHML_TEXT_INTEGRATION_POINTS || Iu, zu = h.HTML_INTEGRATION_POINTS || zu, H = h.CUSTOM_ELEMENT_HANDLING || {}, h.CUSTOM_ELEMENT_HANDLING && yn(h.CUSTOM_ELEMENT_HANDLING.tagNameCheck) && (H.tagNameCheck = h.CUSTOM_ELEMENT_HANDLING.tagNameCheck), h.CUSTOM_ELEMENT_HANDLING && yn(h.CUSTOM_ELEMENT_HANDLING.attributeNameCheck) && (H.attributeNameCheck = h.CUSTOM_ELEMENT_HANDLING.attributeNameCheck), h.CUSTOM_ELEMENT_HANDLING && typeof h.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements == "boolean" && (H.allowCustomizedBuiltInElements = h.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements), Ie && (Xe = !1), Ou && (Je = !0), Ke && (j = $({}, Xn), W = [], Ke.html === !0 && ($(j, Yn), $(W, Qn)), Ke.svg === !0 && ($(j, Dt), $(W, Tt), $(W, Hu)), Ke.svgFilters === !0 && ($(j, Ft), $(W, Tt), $(W, Hu)), Ke.mathMl === !0 && ($(j, St), $(W, Jn), $(W, Hu))), h.ADD_TAGS && (j === z && (j = Oe(j)), $(j, h.ADD_TAGS, J)), h.ADD_ATTR && (W === oe && (W = Oe(W)), $(W, h.ADD_ATTR, J)), h.ADD_URI_SAFE_ATTR && $(mt, h.ADD_URI_SAFE_ATTR, J), h.FORBID_CONTENTS && (eu === xn && (eu = Oe(eu)), $(eu, h.FORBID_CONTENTS, J)), bt && (j["#text"] = !0), Ve && $(j, ["html", "head", "body"]), j.table && ($(j, ["tbody"]), delete Ae.tbody), h.TRUSTED_TYPES_POLICY) {
|
|
3720
3736
|
if (typeof h.TRUSTED_TYPES_POLICY.createHTML != "function")
|
|
3721
3737
|
throw mu('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');
|
|
3722
3738
|
if (typeof h.TRUSTED_TYPES_POLICY.createScriptURL != "function")
|
|
@@ -3726,7 +3742,7 @@ function qr() {
|
|
|
3726
3742
|
m === void 0 && (m = Da(g, r)), m !== null && typeof k == "string" && (k = m.createHTML(""));
|
|
3727
3743
|
ae && ae(h), tu = h;
|
|
3728
3744
|
}
|
|
3729
|
-
}, En =
|
|
3745
|
+
}, En = $({}, [...Dt, ...Ft, ...ma]), An = $({}, [...St, ...ga]), vo = function(h) {
|
|
3730
3746
|
let C = b(h);
|
|
3731
3747
|
(!C || !C.tagName) && (C = {
|
|
3732
3748
|
namespaceURI: uu,
|
|
@@ -3815,11 +3831,11 @@ function qr() {
|
|
|
3815
3831
|
const P = J(h.nodeName);
|
|
3816
3832
|
if (Pe(L.uponSanitizeElement, h, {
|
|
3817
3833
|
tagName: P,
|
|
3818
|
-
allowedTags:
|
|
3834
|
+
allowedTags: j
|
|
3819
3835
|
}), ze && h.hasChildNodes() && !Dn(h.firstElementChild) && ie(/<[/\w!]/g, h.innerHTML) && ie(/<[/\w!]/g, h.textContent) || h.nodeType === xu.progressingInstruction || ze && h.nodeType === xu.comment && ie(/<[/\w]/g, h.data))
|
|
3820
3836
|
return we(h), !0;
|
|
3821
|
-
if (!
|
|
3822
|
-
if (!Ae[P] && Tn(P) && (
|
|
3837
|
+
if (!j[P] || Ae[P]) {
|
|
3838
|
+
if (!Ae[P] && Tn(P) && (H.tagNameCheck instanceof RegExp && ie(H.tagNameCheck, P) || H.tagNameCheck instanceof Function && H.tagNameCheck(P)))
|
|
3823
3839
|
return !1;
|
|
3824
3840
|
if (bt && !eu[P]) {
|
|
3825
3841
|
const X = b(h) || h.parentNode, ne = p(h) || h.childNodes;
|
|
@@ -3843,14 +3859,14 @@ function qr() {
|
|
|
3843
3859
|
return !1;
|
|
3844
3860
|
if (!(Xe && !Ne[C] && ie(U, C))) {
|
|
3845
3861
|
if (!(Ye && ie(te, C))) {
|
|
3846
|
-
if (!
|
|
3862
|
+
if (!W[C] || Ne[C]) {
|
|
3847
3863
|
if (
|
|
3848
3864
|
// First condition does a very basic check if a) it's basically a valid custom element tagname AND
|
|
3849
3865
|
// b) if the tagName passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck
|
|
3850
3866
|
// and c) if the attribute name passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.attributeNameCheck
|
|
3851
|
-
!(Tn(h) && (
|
|
3867
|
+
!(Tn(h) && (H.tagNameCheck instanceof RegExp && ie(H.tagNameCheck, h) || H.tagNameCheck instanceof Function && H.tagNameCheck(h)) && (H.attributeNameCheck instanceof RegExp && ie(H.attributeNameCheck, C) || H.attributeNameCheck instanceof Function && H.attributeNameCheck(C)) || // Alternative, second condition checks if it's an `is`-attribute, AND
|
|
3852
3868
|
// the value passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck
|
|
3853
|
-
C === "is" &&
|
|
3869
|
+
C === "is" && H.allowCustomizedBuiltInElements && (H.tagNameCheck instanceof RegExp && ie(H.tagNameCheck, P) || H.tagNameCheck instanceof Function && H.tagNameCheck(P)))
|
|
3854
3870
|
) return !1;
|
|
3855
3871
|
} else if (!mt[C]) {
|
|
3856
3872
|
if (!ie(M, bu(P, A, ""))) {
|
|
@@ -3878,7 +3894,7 @@ function qr() {
|
|
|
3878
3894
|
attrName: "",
|
|
3879
3895
|
attrValue: "",
|
|
3880
3896
|
keepAttr: !0,
|
|
3881
|
-
allowedAttributes:
|
|
3897
|
+
allowedAttributes: W,
|
|
3882
3898
|
forceKeepAttr: void 0
|
|
3883
3899
|
};
|
|
3884
3900
|
let X = C.length;
|
|
@@ -3950,7 +3966,7 @@ function qr() {
|
|
|
3950
3966
|
if (pt || kt(h), u.removed = [], typeof R == "string" && (lu = !1), lu) {
|
|
3951
3967
|
if (R.nodeName) {
|
|
3952
3968
|
const Re = J(R.nodeName);
|
|
3953
|
-
if (!
|
|
3969
|
+
if (!j[Re] || Ae[Re])
|
|
3954
3970
|
throw mu("root node is forbidden and cannot be sanitized in-place");
|
|
3955
3971
|
}
|
|
3956
3972
|
} else if (R instanceof i)
|
|
@@ -3974,10 +3990,10 @@ function qr() {
|
|
|
3974
3990
|
ne.appendChild(C.firstChild);
|
|
3975
3991
|
else
|
|
3976
3992
|
ne = C;
|
|
3977
|
-
return (
|
|
3993
|
+
return (W.shadowroot || W.shadowrootmode) && (ne = I.call(n, ne, !0)), ne;
|
|
3978
3994
|
}
|
|
3979
3995
|
let se = Ve ? C.outerHTML : C.innerHTML;
|
|
3980
|
-
return Ve &&
|
|
3996
|
+
return Ve && j["!doctype"] && C.ownerDocument && C.ownerDocument.doctype && C.ownerDocument.doctype.name && ie(Ur, C.ownerDocument.doctype.name) && (se = "<!DOCTYPE " + C.ownerDocument.doctype.name + `>
|
|
3981
3997
|
` + se), Ie && ju([ue, ve, F], (Re) => {
|
|
3982
3998
|
se = bu(se, Re, " ");
|
|
3983
3999
|
}), m && Mu ? m.createHTML(se) : se;
|
|
@@ -4183,17 +4199,17 @@ nt.prototype.parseHost = function(e) {
|
|
|
4183
4199
|
let u = Ra.exec(e);
|
|
4184
4200
|
u && (u = u[0], u !== ":" && (this.port = u.substr(1)), e = e.substr(0, e.length - u.length)), e && (this.hostname = e);
|
|
4185
4201
|
};
|
|
4186
|
-
const
|
|
4202
|
+
const $a = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
4187
4203
|
__proto__: null,
|
|
4188
4204
|
decode: au,
|
|
4189
4205
|
encode: Tu,
|
|
4190
4206
|
format: cn,
|
|
4191
4207
|
parse: sn
|
|
4192
|
-
}, Symbol.toStringTag, { value: "Module" })), jr = /[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/, Hr = /[\0-\x1F\x7F-\x9F]/,
|
|
4208
|
+
}, Symbol.toStringTag, { value: "Module" })), jr = /[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/, Hr = /[\0-\x1F\x7F-\x9F]/, Ba = /[\xAD\u0600-\u0605\u061C\u06DD\u070F\u0890\u0891\u08E2\u180E\u200B-\u200F\u202A-\u202E\u2060-\u2064\u2066-\u206F\uFEFF\uFFF9-\uFFFB]|\uD804[\uDCBD\uDCCD]|\uD80D[\uDC30-\uDC3F]|\uD82F[\uDCA0-\uDCA3]|\uD834[\uDD73-\uDD7A]|\uDB40[\uDC01\uDC20-\uDC7F]/, ln = /[!-#%-\*,-\/:;\?@\[-\]_\{\}\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061D-\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C77\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1B7D\u1B7E\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4F\u2E52-\u2E5D\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD803[\uDEAD\uDF55-\uDF59\uDF86-\uDF89]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDC4B-\uDC4F\uDC5A\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDEB9\uDF3C-\uDF3E]|\uD806[\uDC3B\uDD44-\uDD46\uDDE2\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2\uDF00-\uDF09]|\uD807[\uDC41-\uDC45\uDC70\uDC71\uDEF7\uDEF8\uDF43-\uDF4F\uDFFF]|\uD809[\uDC70-\uDC74]|\uD80B[\uDFF1\uDFF2]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD81B[\uDE97-\uDE9A\uDFE2]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]|\uD83A[\uDD5E\uDD5F]/, Gr = /[\$\+<->\^`\|~\xA2-\xA6\xA8\xA9\xAC\xAE-\xB1\xB4\xB8\xD7\xF7\u02C2-\u02C5\u02D2-\u02DF\u02E5-\u02EB\u02ED\u02EF-\u02FF\u0375\u0384\u0385\u03F6\u0482\u058D-\u058F\u0606-\u0608\u060B\u060E\u060F\u06DE\u06E9\u06FD\u06FE\u07F6\u07FE\u07FF\u0888\u09F2\u09F3\u09FA\u09FB\u0AF1\u0B70\u0BF3-\u0BFA\u0C7F\u0D4F\u0D79\u0E3F\u0F01-\u0F03\u0F13\u0F15-\u0F17\u0F1A-\u0F1F\u0F34\u0F36\u0F38\u0FBE-\u0FC5\u0FC7-\u0FCC\u0FCE\u0FCF\u0FD5-\u0FD8\u109E\u109F\u1390-\u1399\u166D\u17DB\u1940\u19DE-\u19FF\u1B61-\u1B6A\u1B74-\u1B7C\u1FBD\u1FBF-\u1FC1\u1FCD-\u1FCF\u1FDD-\u1FDF\u1FED-\u1FEF\u1FFD\u1FFE\u2044\u2052\u207A-\u207C\u208A-\u208C\u20A0-\u20C0\u2100\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u214F\u218A\u218B\u2190-\u2307\u230C-\u2328\u232B-\u2426\u2440-\u244A\u249C-\u24E9\u2500-\u2767\u2794-\u27C4\u27C7-\u27E5\u27F0-\u2982\u2999-\u29D7\u29DC-\u29FB\u29FE-\u2B73\u2B76-\u2B95\u2B97-\u2BFF\u2CE5-\u2CEA\u2E50\u2E51\u2E80-\u2E99\u2E9B-\u2EF3\u2F00-\u2FD5\u2FF0-\u2FFF\u3004\u3012\u3013\u3020\u3036\u3037\u303E\u303F\u309B\u309C\u3190\u3191\u3196-\u319F\u31C0-\u31E3\u31EF\u3200-\u321E\u322A-\u3247\u3250\u3260-\u327F\u328A-\u32B0\u32C0-\u33FF\u4DC0-\u4DFF\uA490-\uA4C6\uA700-\uA716\uA720\uA721\uA789\uA78A\uA828-\uA82B\uA836-\uA839\uAA77-\uAA79\uAB5B\uAB6A\uAB6B\uFB29\uFBB2-\uFBC2\uFD40-\uFD4F\uFDCF\uFDFC-\uFDFF\uFE62\uFE64-\uFE66\uFE69\uFF04\uFF0B\uFF1C-\uFF1E\uFF3E\uFF40\uFF5C\uFF5E\uFFE0-\uFFE6\uFFE8-\uFFEE\uFFFC\uFFFD]|\uD800[\uDD37-\uDD3F\uDD79-\uDD89\uDD8C-\uDD8E\uDD90-\uDD9C\uDDA0\uDDD0-\uDDFC]|\uD802[\uDC77\uDC78\uDEC8]|\uD805\uDF3F|\uD807[\uDFD5-\uDFF1]|\uD81A[\uDF3C-\uDF3F\uDF45]|\uD82F\uDC9C|\uD833[\uDF50-\uDFC3]|\uD834[\uDC00-\uDCF5\uDD00-\uDD26\uDD29-\uDD64\uDD6A-\uDD6C\uDD83\uDD84\uDD8C-\uDDA9\uDDAE-\uDDEA\uDE00-\uDE41\uDE45\uDF00-\uDF56]|\uD835[\uDEC1\uDEDB\uDEFB\uDF15\uDF35\uDF4F\uDF6F\uDF89\uDFA9\uDFC3]|\uD836[\uDC00-\uDDFF\uDE37-\uDE3A\uDE6D-\uDE74\uDE76-\uDE83\uDE85\uDE86]|\uD838[\uDD4F\uDEFF]|\uD83B[\uDCAC\uDCB0\uDD2E\uDEF0\uDEF1]|\uD83C[\uDC00-\uDC2B\uDC30-\uDC93\uDCA0-\uDCAE\uDCB1-\uDCBF\uDCC1-\uDCCF\uDCD1-\uDCF5\uDD0D-\uDDAD\uDDE6-\uDE02\uDE10-\uDE3B\uDE40-\uDE48\uDE50\uDE51\uDE60-\uDE65\uDF00-\uDFFF]|\uD83D[\uDC00-\uDED7\uDEDC-\uDEEC\uDEF0-\uDEFC\uDF00-\uDF76\uDF7B-\uDFD9\uDFE0-\uDFEB\uDFF0]|\uD83E[\uDC00-\uDC0B\uDC10-\uDC47\uDC50-\uDC59\uDC60-\uDC87\uDC90-\uDCAD\uDCB0\uDCB1\uDD00-\uDE53\uDE60-\uDE6D\uDE70-\uDE7C\uDE80-\uDE88\uDE90-\uDEBD\uDEBF-\uDEC5\uDECE-\uDEDB\uDEE0-\uDEE8\uDEF0-\uDEF8\uDF00-\uDF92\uDF94-\uDFCA]/, Wr = /[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/, Ua = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
4193
4209
|
__proto__: null,
|
|
4194
4210
|
Any: jr,
|
|
4195
4211
|
Cc: Hr,
|
|
4196
|
-
Cf:
|
|
4212
|
+
Cf: Ba,
|
|
4197
4213
|
P: ln,
|
|
4198
4214
|
S: Gr,
|
|
4199
4215
|
Z: Wr
|
|
@@ -4655,7 +4671,7 @@ function Cu(e) {
|
|
|
4655
4671
|
function lt(e) {
|
|
4656
4672
|
return e = e.trim().replace(/\s+/g, " "), "ẞ".toLowerCase() === "Ṿ" && (e = e.replace(/ẞ/g, "ß")), e.toLowerCase().toUpperCase();
|
|
4657
4673
|
}
|
|
4658
|
-
const hc = { mdurl:
|
|
4674
|
+
const hc = { mdurl: $a, ucmicro: Ua }, bc = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
4659
4675
|
__proto__: null,
|
|
4660
4676
|
arrayReplaceAt: Yr,
|
|
4661
4677
|
assign: st,
|
|
@@ -5305,7 +5321,7 @@ Se.prototype.getLines = function(u, t, n, r) {
|
|
|
5305
5321
|
return o.join("");
|
|
5306
5322
|
};
|
|
5307
5323
|
Se.prototype.Token = Ee;
|
|
5308
|
-
const
|
|
5324
|
+
const $c = 65536;
|
|
5309
5325
|
function Ot(e, u) {
|
|
5310
5326
|
const t = e.bMarks[u] + e.tShift[u], n = e.eMarks[u];
|
|
5311
5327
|
return e.src.slice(t, n);
|
|
@@ -5317,7 +5333,7 @@ function lr(e) {
|
|
|
5317
5333
|
r === 124 && (o ? (i += e.substring(a, n - 1), a = n) : (u.push(i + e.substring(a, n)), i = "", a = n + 1)), o = r === 92, n++, r = e.charCodeAt(n);
|
|
5318
5334
|
return u.push(i + e.substring(a)), u;
|
|
5319
5335
|
}
|
|
5320
|
-
function
|
|
5336
|
+
function Bc(e, u, t, n) {
|
|
5321
5337
|
if (u + 2 > t)
|
|
5322
5338
|
return !1;
|
|
5323
5339
|
let r = u + 1;
|
|
@@ -5382,7 +5398,7 @@ function $c(e, u, t, n) {
|
|
|
5382
5398
|
m = !0;
|
|
5383
5399
|
break;
|
|
5384
5400
|
}
|
|
5385
|
-
if (m || (c = Ot(e, r).trim(), !c) || e.sCount[r] - e.blkIndent >= 4 || (s = lr(c), s.length && s[0] === "" && s.shift(), s.length && s[s.length - 1] === "" && s.pop(), b += f - s.length, b >
|
|
5401
|
+
if (m || (c = Ot(e, r).trim(), !c) || e.sCount[r] - e.blkIndent >= 4 || (s = lr(c), s.length && s[0] === "" && s.shift(), s.length && s[s.length - 1] === "" && s.pop(), b += f - s.length, b > $c))
|
|
5386
5402
|
break;
|
|
5387
5403
|
if (r === u + 2) {
|
|
5388
5404
|
const x = e.push("tbody_open", "tbody", 1);
|
|
@@ -5609,8 +5625,8 @@ function Wc(e, u, t, n) {
|
|
|
5609
5625
|
i = e.push("list_item_open", "li", 1), i.markup = String.fromCharCode(d);
|
|
5610
5626
|
const D = [c, 0];
|
|
5611
5627
|
i.map = D, f && (i.info = e.src.slice(a, g - 1));
|
|
5612
|
-
const
|
|
5613
|
-
if (e.listIndent = e.blkIndent, e.blkIndent = T, e.tight = !0, e.tShift[c] = x - e.bMarks[c], e.sCount[c] = k, x >= r && e.isEmpty(c + 1) ? e.line = Math.min(e.line + 2, t) : e.md.block.tokenize(e, c, t, !0), (!e.tight || v) && (s = !1), v = e.line - c > 1 && e.isEmpty(e.line - 1), e.blkIndent = e.listIndent, e.listIndent = ve, e.tShift[c] = L, e.sCount[c] = ue, e.tight =
|
|
5628
|
+
const I = e.tight, L = e.tShift[c], ue = e.sCount[c], ve = e.listIndent;
|
|
5629
|
+
if (e.listIndent = e.blkIndent, e.blkIndent = T, e.tight = !0, e.tShift[c] = x - e.bMarks[c], e.sCount[c] = k, x >= r && e.isEmpty(c + 1) ? e.line = Math.min(e.line + 2, t) : e.md.block.tokenize(e, c, t, !0), (!e.tight || v) && (s = !1), v = e.line - c > 1 && e.isEmpty(e.line - 1), e.blkIndent = e.listIndent, e.listIndent = ve, e.tShift[c] = L, e.sCount[c] = ue, e.tight = I, i = e.push("list_item_close", "li", -1), i.markup = String.fromCharCode(d), c = e.line, D[1] = c, c >= t || e.sCount[c] < e.blkIndent || e.sCount[c] - e.blkIndent >= 4)
|
|
5614
5630
|
break;
|
|
5615
5631
|
let F = !1;
|
|
5616
5632
|
for (let U = 0, te = p.length; U < te; U++)
|
|
@@ -5644,8 +5660,8 @@ function Vc(e, u, t, n) {
|
|
|
5644
5660
|
const w = e.md.block.ruler.getRules("reference"), T = e.parentType;
|
|
5645
5661
|
e.parentType = "reference";
|
|
5646
5662
|
let D = !1;
|
|
5647
|
-
for (let
|
|
5648
|
-
if (w[
|
|
5663
|
+
for (let I = 0, L = w.length; I < L; I++)
|
|
5664
|
+
if (w[I](e, p, b, !0)) {
|
|
5649
5665
|
D = !0;
|
|
5650
5666
|
break;
|
|
5651
5667
|
}
|
|
@@ -5906,7 +5922,7 @@ function ls(e, u, t) {
|
|
|
5906
5922
|
const Wu = [
|
|
5907
5923
|
// First 2 params - rule name & source. Secondary array - list of rules,
|
|
5908
5924
|
// which can be terminated by this one.
|
|
5909
|
-
["table",
|
|
5925
|
+
["table", Bc, ["paragraph", "reference"]],
|
|
5910
5926
|
["code", Uc],
|
|
5911
5927
|
["fence", qc, ["paragraph", "reference", "blockquote", "list"]],
|
|
5912
5928
|
["blockquote", jc, ["paragraph", "reference", "blockquote", "list"]],
|
|
@@ -6535,13 +6551,13 @@ function Is(e) {
|
|
|
6535
6551
|
function zs(e) {
|
|
6536
6552
|
return dt(e) === "[object Object]";
|
|
6537
6553
|
}
|
|
6538
|
-
function
|
|
6554
|
+
function $s(e) {
|
|
6539
6555
|
return dt(e) === "[object RegExp]";
|
|
6540
6556
|
}
|
|
6541
6557
|
function mr(e) {
|
|
6542
6558
|
return dt(e) === "[object Function]";
|
|
6543
6559
|
}
|
|
6544
|
-
function
|
|
6560
|
+
function Bs(e) {
|
|
6545
6561
|
return e.replace(/[.?*+^$[\]\\(){}|-]/g, "\\$&");
|
|
6546
6562
|
}
|
|
6547
6563
|
const no = {
|
|
@@ -6619,7 +6635,7 @@ function ot(e) {
|
|
|
6619
6635
|
return;
|
|
6620
6636
|
const s = { validate: null, link: null };
|
|
6621
6637
|
if (e.__compiled__[i] = s, zs(c)) {
|
|
6622
|
-
|
|
6638
|
+
$s(c.validate) ? s.validate = Ws(c.validate) : mr(c.validate) ? s.validate = c.validate : o(i, c), mr(c.normalize) ? s.normalize = c.normalize : c.normalize ? o(i, c) : s.normalize = gr();
|
|
6623
6639
|
return;
|
|
6624
6640
|
}
|
|
6625
6641
|
if (Is(c)) {
|
|
@@ -6632,7 +6648,7 @@ function ot(e) {
|
|
|
6632
6648
|
}), e.__compiled__[""] = { validate: null, normalize: gr() };
|
|
6633
6649
|
const a = Object.keys(e.__compiled__).filter(function(i) {
|
|
6634
6650
|
return i.length > 0 && e.__compiled__[i];
|
|
6635
|
-
}).map(
|
|
6651
|
+
}).map(Bs).join("|");
|
|
6636
6652
|
e.re.schema_test = RegExp("(^|(?!_)(?:[><|]|" + u.src_ZPCc + "))(" + a + ")", "i"), e.re.schema_search = RegExp("(^|(?!_)(?:[><|]|" + u.src_ZPCc + "))(" + a + ")", "ig"), e.re.schema_at_start = RegExp("^" + e.re.schema_search.source, "i"), e.re.pretest = RegExp(
|
|
6637
6653
|
"(" + e.re.schema_test.source + ")|(" + e.re.host_fuzzy_test.source + ")|@",
|
|
6638
6654
|
"i"
|
|
@@ -6707,7 +6723,7 @@ const iu = 2147483647, Ce = 36, bn = 1, Du = 26, Zs = 38, Ys = 700, ro = 72, oo
|
|
|
6707
6723
|
"not-basic": "Illegal input >= 0x80 (not a basic code point)",
|
|
6708
6724
|
"invalid-input": "Invalid input"
|
|
6709
6725
|
}, Nt = Ce - bn, De = Math.floor, It = String.fromCharCode;
|
|
6710
|
-
function
|
|
6726
|
+
function Be(e) {
|
|
6711
6727
|
throw new RangeError(Ks[e]);
|
|
6712
6728
|
}
|
|
6713
6729
|
function el(e, u) {
|
|
@@ -6752,21 +6768,21 @@ const ul = (e) => String.fromCodePoint(...e), tl = function(e) {
|
|
|
6752
6768
|
let n = 0, r = oo, o = ro, a = e.lastIndexOf(io);
|
|
6753
6769
|
a < 0 && (a = 0);
|
|
6754
6770
|
for (let i = 0; i < a; ++i)
|
|
6755
|
-
e.charCodeAt(i) >= 128 &&
|
|
6771
|
+
e.charCodeAt(i) >= 128 && Be("not-basic"), u.push(e.charCodeAt(i));
|
|
6756
6772
|
for (let i = a > 0 ? a + 1 : 0; i < t; ) {
|
|
6757
6773
|
const c = n;
|
|
6758
6774
|
for (let l = 1, f = Ce; ; f += Ce) {
|
|
6759
|
-
i >= t &&
|
|
6775
|
+
i >= t && Be("invalid-input");
|
|
6760
6776
|
const _ = tl(e.charCodeAt(i++));
|
|
6761
|
-
_ >= Ce &&
|
|
6777
|
+
_ >= Ce && Be("invalid-input"), _ > De((iu - n) / l) && Be("overflow"), n += _ * l;
|
|
6762
6778
|
const g = f <= o ? bn : f >= o + Du ? Du : f - o;
|
|
6763
6779
|
if (_ < g)
|
|
6764
6780
|
break;
|
|
6765
6781
|
const d = Ce - g;
|
|
6766
|
-
l > De(iu / d) &&
|
|
6782
|
+
l > De(iu / d) && Be("overflow"), l *= d;
|
|
6767
6783
|
}
|
|
6768
6784
|
const s = u.length + 1;
|
|
6769
|
-
o = so(n - c, s, c == 0), De(n / s) > iu - r &&
|
|
6785
|
+
o = so(n - c, s, c == 0), De(n / s) > iu - r && Be("overflow"), r += De(n / s), n %= s, u.splice(n++, 0, r);
|
|
6770
6786
|
}
|
|
6771
6787
|
return String.fromCodePoint(...u);
|
|
6772
6788
|
}, fo = function(e) {
|
|
@@ -6783,9 +6799,9 @@ const ul = (e) => String.fromCodePoint(...e), tl = function(e) {
|
|
|
6783
6799
|
for (const l of e)
|
|
6784
6800
|
l >= n && l < c && (c = l);
|
|
6785
6801
|
const s = i + 1;
|
|
6786
|
-
c - n > De((iu - r) / s) &&
|
|
6802
|
+
c - n > De((iu - r) / s) && Be("overflow"), r += (c - n) * s, n = c;
|
|
6787
6803
|
for (const l of e)
|
|
6788
|
-
if (l < n && ++r > iu &&
|
|
6804
|
+
if (l < n && ++r > iu && Be("overflow"), l === n) {
|
|
6789
6805
|
let f = r;
|
|
6790
6806
|
for (let _ = Ce; ; _ += Ce) {
|
|
6791
6807
|
const g = _ <= o ? bn : _ >= o + Du ? Du : _ - o;
|
|
@@ -7090,11 +7106,11 @@ _e.prototype.renderInline = function(e, u) {
|
|
|
7090
7106
|
return u = u || {}, this.renderer.render(this.parseInline(e, u), this.options, u);
|
|
7091
7107
|
};
|
|
7092
7108
|
function hl(e, u) {
|
|
7093
|
-
const { manual: t = !1, domPurify: n = !0, ...r } = u ?? {}, o =
|
|
7094
|
-
|
|
7109
|
+
const { manual: t = !1, domPurify: n = !0, ...r } = u ?? {}, o = G(Bt(e) ? ou(e.value) : Ro(e) ? ou(e) : e);
|
|
7110
|
+
Bt(e) && Le(() => {
|
|
7095
7111
|
o.value = ou(e.value);
|
|
7096
7112
|
});
|
|
7097
|
-
const a =
|
|
7113
|
+
const a = G(""), i = G(), c = _e({ ...r });
|
|
7098
7114
|
function s(l) {
|
|
7099
7115
|
const f = c.render(l);
|
|
7100
7116
|
if (a.value = n ? Fa.sanitize(f) : f, i.value) i.value.innerHTML = a.value;
|
|
@@ -7116,7 +7132,7 @@ function hl(e, u) {
|
|
|
7116
7132
|
};
|
|
7117
7133
|
}
|
|
7118
7134
|
function bl(e, u) {
|
|
7119
|
-
const { step: t = 1, interval: n = 50, enabled: r = !0 } = u ?? {}, o =
|
|
7135
|
+
const { step: t = 1, interval: n = 50, enabled: r = !0 } = u ?? {}, o = G(0), a = G(!1), i = G(!1), c = G(!1), s = be(() => r ? e.value.slice(0, o.value) : e.value), l = be(() => Number(Math.min(o.value / e.value.length * 100, 100).toFixed(2)));
|
|
7120
7136
|
let f = null;
|
|
7121
7137
|
const _ = Zu(), g = Zu(), d = Zu();
|
|
7122
7138
|
Me(e, (k, x) => {
|
|
@@ -7179,18 +7195,18 @@ function bl(e, u) {
|
|
|
7179
7195
|
onUpdate: d.on
|
|
7180
7196
|
};
|
|
7181
7197
|
}
|
|
7182
|
-
const ml = "code[class*=language-],pre[class*=language-]{background:#282c34;color:#abb2bf;text-shadow:0 1px rgba(0,0,0,.3);font-family:Fira Code,Fira Mono,Menlo,Consolas,DejaVu Sans Mono,monospace;direction:ltr;text-align:left;white-space:pre;word-spacing:normal;word-break:normal;line-height:1.5;-moz-tab-size:2;-o-tab-size:2;tab-size:2;-webkit-hyphens:none;-moz-hyphens:none;-ms-hyphens:none;hyphens:none}code[class*=language-]::-moz-selection,code[class*=language-] *::-moz-selection,pre[class*=language-] *::-moz-selection{background:#3e4451;color:inherit;text-shadow:none}code[class*=language-]::selection,code[class*=language-] *::selection,pre[class*=language-] *::selection{background:#3e4451;color:inherit;text-shadow:none}pre[class*=language-]{padding:1em;margin:.5em 0;overflow:auto;border-radius:.3em}:not(pre)>code[class*=language-]{padding:.2em .3em;border-radius:.3em;white-space:normal}@media print{code[class*=language-],pre[class*=language-]{text-shadow:none}}.token.comment,.token.prolog,.token.cdata{color:#5c6370}.token.doctype,.token.punctuation,.token.entity{color:#abb2bf}.token.attr-name,.token.class-name,.token.boolean,.token.constant,.token.number,.token.atrule{color:#d19a66}.token.keyword{color:#c678dd}.token.property,.token.tag,.token.symbol,.token.deleted,.token.important{color:#e06c75}.token.selector,.token.string,.token.char,.token.builtin,.token.inserted,.token.regex,.token.attr-value,.token.attr-value>.token.punctuation{color:#98c379}.token.variable,.token.operator,.token.function{color:#61afef}.token.url{color:#56b6c2}.token.attr-value>.token.punctuation.attr-equals,.token.special-attr>.token.attr-value>.token.value.css{color:#abb2bf}.language-css .token.selector{color:#e06c75}.language-css .token.property{color:#abb2bf}.language-css .token.function,.language-css .token.url>.token.function{color:#56b6c2}.language-css .token.url>.token.string.url{color:#98c379}.language-css .token.important,.language-css .token.atrule .token.rule,.language-javascript .token.operator{color:#c678dd}.language-javascript .token.template-string>.token.interpolation>.token.interpolation-punctuation.punctuation{color:#be5046}.language-json .token.operator{color:#abb2bf}.language-json .token.null.keyword{color:#d19a66}.language-markdown .token.url,.language-markdown .token.url>.token.operator,.language-markdown .token.url-reference.url>.token.string{color:#abb2bf}.language-markdown .token.url>.token.content{color:#61afef}.language-markdown .token.url>.token.url,.language-markdown .token.url-reference.url{color:#56b6c2}.language-markdown .token.blockquote.punctuation,.language-markdown .token.hr.punctuation{color:#5c6370;font-style:italic}.language-markdown .token.code-snippet{color:#98c379}.language-markdown .token.bold .token.content{color:#d19a66}.language-markdown .token.italic .token.content{color:#c678dd}.language-markdown .token.strike .token.content,.language-markdown .token.strike .token.punctuation,.language-markdown .token.list.punctuation,.language-markdown .token.title.important>.token.punctuation{color:#e06c75}.token.bold{font-weight:700}.token.comment,.token.italic{font-style:italic}.token.entity{cursor:help}.token.namespace{opacity:.8}.token.token.tab:not(:empty):before,.token.token.cr:before,.token.token.lf:before,.token.token.space:before{color:#abb2bf26;text-shadow:none}div.code-toolbar>.toolbar.toolbar>.toolbar-item{margin-right:.4em}div.code-toolbar>.toolbar.toolbar>.toolbar-item>button,div.code-toolbar>.toolbar.toolbar>.toolbar-item>a,div.code-toolbar>.toolbar.toolbar>.toolbar-item>span{background:#3a3f4b;color:#828997;padding:.1em .4em;border-radius:.3em}div.code-toolbar>.toolbar.toolbar>.toolbar-item>button:hover,div.code-toolbar>.toolbar.toolbar>.toolbar-item>button:focus,div.code-toolbar>.toolbar.toolbar>.toolbar-item>a:hover,div.code-toolbar>.toolbar.toolbar>.toolbar-item>a:focus,div.code-toolbar>.toolbar.toolbar>.toolbar-item>span:hover,div.code-toolbar>.toolbar.toolbar>.toolbar-item>span:focus{background:#3e4451;color:#abb2bf}.line-highlight.line-highlight{background:#99bbff0a}.line-highlight.line-highlight:before,.line-highlight.line-highlight[data-end]:after{background:#3a3f4b;color:#abb2bf;padding:.1em .6em;border-radius:.3em;box-shadow:0 2px #0003}pre[id].linkable-line-numbers.linkable-line-numbers span.line-numbers-rows>span:hover:before{background-color:#99bbff0a}.line-numbers.line-numbers .line-numbers-rows,.command-line .command-line-prompt{border-right-color:#abb2bf26}.line-numbers .line-numbers-rows>span:before,.command-line .command-line-prompt>span:before{color:#636d83}.rainbow-braces .token.token.punctuation.brace-level-1,.rainbow-braces .token.token.punctuation.brace-level-5,.rainbow-braces .token.token.punctuation.brace-level-9{color:#e06c75}.rainbow-braces .token.token.punctuation.brace-level-2,.rainbow-braces .token.token.punctuation.brace-level-6,.rainbow-braces .token.token.punctuation.brace-level-10{color:#98c379}.rainbow-braces .token.token.punctuation.brace-level-3,.rainbow-braces .token.token.punctuation.brace-level-7,.rainbow-braces .token.token.punctuation.brace-level-11{color:#61afef}.rainbow-braces .token.token.punctuation.brace-level-4,.rainbow-braces .token.token.punctuation.brace-level-8,.rainbow-braces .token.token.punctuation.brace-level-12{color:#c678dd}pre.diff-highlight>code .token.token.deleted:not(.prefix),pre>code.diff-highlight .token.token.deleted:not(.prefix){background-color:#ff526626}pre.diff-highlight>code .token.token.deleted:not(.prefix)::-moz-selection,pre.diff-highlight>code .token.token.deleted:not(.prefix) *::-moz-selection,pre>code.diff-highlight .token.token.deleted:not(.prefix)::-moz-selection,pre>code.diff-highlight .token.token.deleted:not(.prefix) *::-moz-selection{background-color:#fb566940}pre.diff-highlight>code .token.token.deleted:not(.prefix)::selection,pre.diff-highlight>code .token.token.deleted:not(.prefix) *::selection,pre>code.diff-highlight .token.token.deleted:not(.prefix)::selection,pre>code.diff-highlight .token.token.deleted:not(.prefix) *::selection{background-color:#fb566940}pre.diff-highlight>code .token.token.inserted:not(.prefix),pre>code.diff-highlight .token.token.inserted:not(.prefix){background-color:#1aff5b26}pre.diff-highlight>code .token.token.inserted:not(.prefix)::-moz-selection,pre.diff-highlight>code .token.token.inserted:not(.prefix) *::-moz-selection,pre>code.diff-highlight .token.token.inserted:not(.prefix)::-moz-selection,pre>code.diff-highlight .token.token.inserted:not(.prefix) *::-moz-selection{background-color:#38e06240}pre.diff-highlight>code .token.token.inserted:not(.prefix)::selection,pre.diff-highlight>code .token.token.inserted:not(.prefix) *::selection,pre>code.diff-highlight .token.token.inserted:not(.prefix)::selection,pre>code.diff-highlight .token.token.inserted:not(.prefix) *::selection{background-color:#38e06240}.prism-previewer.prism-previewer:before,.prism-previewer-gradient.prism-previewer-gradient div{border-color:#262931}.prism-previewer-color.prism-previewer-color:before,.prism-previewer-gradient.prism-previewer-gradient div,.prism-previewer-easing.prism-previewer-easing:before{border-radius:.3em}.prism-previewer.prism-previewer:after{border-top-color:#262931}.prism-previewer-flipped.prism-previewer-flipped.after{border-bottom-color:#262931}.prism-previewer-angle.prism-previewer-angle:before,.prism-previewer-time.prism-previewer-time:before,.prism-previewer-easing.prism-previewer-easing{background:#31363f}.prism-previewer-angle.prism-previewer-angle circle,.prism-previewer-time.prism-previewer-time circle{stroke:#abb2bf;stroke-opacity:1}.prism-previewer-easing.prism-previewer-easing circle,.prism-previewer-easing.prism-previewer-easing path,.prism-previewer-easing.prism-previewer-easing line{stroke:#abb2bf}.prism-previewer-easing.prism-previewer-easing circle{fill:transparent}", gl = "code[class*=language-],pre[class*=language-]{background:#fafafa;color:#383a42;font-family:Fira Code,Fira Mono,Menlo,Consolas,DejaVu Sans Mono,monospace;direction:ltr;text-align:left;white-space:pre;word-spacing:normal;word-break:normal;line-height:1.5;-moz-tab-size:2;-o-tab-size:2;tab-size:2;-webkit-hyphens:none;-moz-hyphens:none;-ms-hyphens:none;hyphens:none}code[class*=language-]::-moz-selection,code[class*=language-] *::-moz-selection,pre[class*=language-] *::-moz-selection{background:#e5e5e6;color:inherit}code[class*=language-]::selection,code[class*=language-] *::selection,pre[class*=language-] *::selection{background:#e5e5e6;color:inherit}pre[class*=language-]{padding:1em;margin:.5em 0;overflow:auto;border-radius:.3em}:not(pre)>code[class*=language-]{padding:.2em .3em;border-radius:.3em;white-space:normal}.token.comment,.token.prolog,.token.cdata{color:#a0a1a7}.token.doctype,.token.punctuation,.token.entity{color:#383a42}.token.attr-name,.token.class-name,.token.boolean,.token.constant,.token.number,.token.atrule{color:#b76b01}.token.keyword{color:#a626a4}.token.property,.token.tag,.token.symbol,.token.deleted,.token.important{color:#e45649}.token.selector,.token.string,.token.char,.token.builtin,.token.inserted,.token.regex,.token.attr-value,.token.attr-value>.token.punctuation{color:#50a14f}.token.variable,.token.operator,.token.function{color:#4078f2}.token.url{color:#0184bc}.token.attr-value>.token.punctuation.attr-equals,.token.special-attr>.token.attr-value>.token.value.css{color:#383a42}.language-css .token.selector{color:#e45649}.language-css .token.property{color:#383a42}.language-css .token.function,.language-css .token.url>.token.function{color:#0184bc}.language-css .token.url>.token.string.url{color:#50a14f}.language-css .token.important,.language-css .token.atrule .token.rule,.language-javascript .token.operator{color:#a626a4}.language-javascript .token.template-string>.token.interpolation>.token.interpolation-punctuation.punctuation{color:#ca1243}.language-json .token.operator{color:#383a42}.language-json .token.null.keyword{color:#b76b01}.language-markdown .token.url,.language-markdown .token.url>.token.operator,.language-markdown .token.url-reference.url>.token.string{color:#383a42}.language-markdown .token.url>.token.content{color:#4078f2}.language-markdown .token.url>.token.url,.language-markdown .token.url-reference.url{color:#0184bc}.language-markdown .token.blockquote.punctuation,.language-markdown .token.hr.punctuation{color:#a0a1a7;font-style:italic}.language-markdown .token.code-snippet{color:#50a14f}.language-markdown .token.bold .token.content{color:#b76b01}.language-markdown .token.italic .token.content{color:#a626a4}.language-markdown .token.strike .token.content,.language-markdown .token.strike .token.punctuation,.language-markdown .token.list.punctuation,.language-markdown .token.title.important>.token.punctuation{color:#e45649}.token.bold{font-weight:700}.token.comment,.token.italic{font-style:italic}.token.entity{cursor:help}.token.namespace{opacity:.8}.token.token.tab:not(:empty):before,.token.token.cr:before,.token.token.lf:before,.token.token.space:before{color:#383a4233}div.code-toolbar>.toolbar.toolbar>.toolbar-item{margin-right:.4em}div.code-toolbar>.toolbar.toolbar>.toolbar-item>button,div.code-toolbar>.toolbar.toolbar>.toolbar-item>a,div.code-toolbar>.toolbar.toolbar>.toolbar-item>span{background:#e5e5e6;color:#696c77;padding:.1em .4em;border-radius:.3em}div.code-toolbar>.toolbar.toolbar>.toolbar-item>button:hover,div.code-toolbar>.toolbar.toolbar>.toolbar-item>button:focus,div.code-toolbar>.toolbar.toolbar>.toolbar-item>a:hover,div.code-toolbar>.toolbar.toolbar>.toolbar-item>a:focus,div.code-toolbar>.toolbar.toolbar>.toolbar-item>span:hover,div.code-toolbar>.toolbar.toolbar>.toolbar-item>span:focus{background:#c6c7c7;color:#383a42}.line-highlight.line-highlight{background:#383a420d}.line-highlight.line-highlight:before,.line-highlight.line-highlight[data-end]:after{background:#e5e5e6;color:#383a42;padding:.1em .6em;border-radius:.3em;box-shadow:0 2px #0003}pre[id].linkable-line-numbers.linkable-line-numbers span.line-numbers-rows>span:hover:before{background-color:#383a420d}.line-numbers.line-numbers .line-numbers-rows,.command-line .command-line-prompt{border-right-color:#383a4233}.line-numbers .line-numbers-rows>span:before,.command-line .command-line-prompt>span:before{color:#9d9d9f}.rainbow-braces .token.token.punctuation.brace-level-1,.rainbow-braces .token.token.punctuation.brace-level-5,.rainbow-braces .token.token.punctuation.brace-level-9{color:#e45649}.rainbow-braces .token.token.punctuation.brace-level-2,.rainbow-braces .token.token.punctuation.brace-level-6,.rainbow-braces .token.token.punctuation.brace-level-10{color:#50a14f}.rainbow-braces .token.token.punctuation.brace-level-3,.rainbow-braces .token.token.punctuation.brace-level-7,.rainbow-braces .token.token.punctuation.brace-level-11{color:#4078f2}.rainbow-braces .token.token.punctuation.brace-level-4,.rainbow-braces .token.token.punctuation.brace-level-8,.rainbow-braces .token.token.punctuation.brace-level-12{color:#a626a4}pre.diff-highlight>code .token.token.deleted:not(.prefix),pre>code.diff-highlight .token.token.deleted:not(.prefix){background-color:#ff526626}pre.diff-highlight>code .token.token.deleted:not(.prefix)::-moz-selection,pre.diff-highlight>code .token.token.deleted:not(.prefix) *::-moz-selection,pre>code.diff-highlight .token.token.deleted:not(.prefix)::-moz-selection,pre>code.diff-highlight .token.token.deleted:not(.prefix) *::-moz-selection{background-color:#fb566940}pre.diff-highlight>code .token.token.deleted:not(.prefix)::selection,pre.diff-highlight>code .token.token.deleted:not(.prefix) *::selection,pre>code.diff-highlight .token.token.deleted:not(.prefix)::selection,pre>code.diff-highlight .token.token.deleted:not(.prefix) *::selection{background-color:#fb566940}pre.diff-highlight>code .token.token.inserted:not(.prefix),pre>code.diff-highlight .token.token.inserted:not(.prefix){background-color:#1aff5b26}pre.diff-highlight>code .token.token.inserted:not(.prefix)::-moz-selection,pre.diff-highlight>code .token.token.inserted:not(.prefix) *::-moz-selection,pre>code.diff-highlight .token.token.inserted:not(.prefix)::-moz-selection,pre>code.diff-highlight .token.token.inserted:not(.prefix) *::-moz-selection{background-color:#38e06240}pre.diff-highlight>code .token.token.inserted:not(.prefix)::selection,pre.diff-highlight>code .token.token.inserted:not(.prefix) *::selection,pre>code.diff-highlight .token.token.inserted:not(.prefix)::selection,pre>code.diff-highlight .token.token.inserted:not(.prefix) *::selection{background-color:#38e06240}.prism-previewer.prism-previewer:before,.prism-previewer-gradient.prism-previewer-gradient div{border-color:hsl(0,0,95%)}.prism-previewer-color.prism-previewer-color:before,.prism-previewer-gradient.prism-previewer-gradient div,.prism-previewer-easing.prism-previewer-easing:before{border-radius:.3em}.prism-previewer.prism-previewer:after{border-top-color:hsl(0,0,95%)}.prism-previewer-flipped.prism-previewer-flipped.after{border-bottom-color:hsl(0,0,95%)}.prism-previewer-angle.prism-previewer-angle:before,.prism-previewer-time.prism-previewer-time:before,.prism-previewer-easing.prism-previewer-easing{background:#fff}.prism-previewer-angle.prism-previewer-angle circle,.prism-previewer-time.prism-previewer-time circle{stroke:#383a42;stroke-opacity:1}.prism-previewer-easing.prism-previewer-easing circle,.prism-previewer-easing.prism-previewer-easing path,.prism-previewer-easing.prism-previewer-easing line{stroke:#383a42}.prism-previewer-easing.prism-previewer-easing circle{fill:transparent}", { c: zt, cB: kr, cE: Bt } = { ...tn, ...Pr }, Vu = `${Rr}-type-writer`;
|
|
7198
|
+
const ml = "code[class*=language-],pre[class*=language-]{background:#282c34;color:#abb2bf;text-shadow:0 1px rgba(0,0,0,.3);font-family:Fira Code,Fira Mono,Menlo,Consolas,DejaVu Sans Mono,monospace;direction:ltr;text-align:left;white-space:pre;word-spacing:normal;word-break:normal;line-height:1.5;-moz-tab-size:2;-o-tab-size:2;tab-size:2;-webkit-hyphens:none;-moz-hyphens:none;-ms-hyphens:none;hyphens:none}code[class*=language-]::-moz-selection,code[class*=language-] *::-moz-selection,pre[class*=language-] *::-moz-selection{background:#3e4451;color:inherit;text-shadow:none}code[class*=language-]::selection,code[class*=language-] *::selection,pre[class*=language-] *::selection{background:#3e4451;color:inherit;text-shadow:none}pre[class*=language-]{padding:1em;margin:.5em 0;overflow:auto;border-radius:.3em}:not(pre)>code[class*=language-]{padding:.2em .3em;border-radius:.3em;white-space:normal}@media print{code[class*=language-],pre[class*=language-]{text-shadow:none}}.token.comment,.token.prolog,.token.cdata{color:#5c6370}.token.doctype,.token.punctuation,.token.entity{color:#abb2bf}.token.attr-name,.token.class-name,.token.boolean,.token.constant,.token.number,.token.atrule{color:#d19a66}.token.keyword{color:#c678dd}.token.property,.token.tag,.token.symbol,.token.deleted,.token.important{color:#e06c75}.token.selector,.token.string,.token.char,.token.builtin,.token.inserted,.token.regex,.token.attr-value,.token.attr-value>.token.punctuation{color:#98c379}.token.variable,.token.operator,.token.function{color:#61afef}.token.url{color:#56b6c2}.token.attr-value>.token.punctuation.attr-equals,.token.special-attr>.token.attr-value>.token.value.css{color:#abb2bf}.language-css .token.selector{color:#e06c75}.language-css .token.property{color:#abb2bf}.language-css .token.function,.language-css .token.url>.token.function{color:#56b6c2}.language-css .token.url>.token.string.url{color:#98c379}.language-css .token.important,.language-css .token.atrule .token.rule,.language-javascript .token.operator{color:#c678dd}.language-javascript .token.template-string>.token.interpolation>.token.interpolation-punctuation.punctuation{color:#be5046}.language-json .token.operator{color:#abb2bf}.language-json .token.null.keyword{color:#d19a66}.language-markdown .token.url,.language-markdown .token.url>.token.operator,.language-markdown .token.url-reference.url>.token.string{color:#abb2bf}.language-markdown .token.url>.token.content{color:#61afef}.language-markdown .token.url>.token.url,.language-markdown .token.url-reference.url{color:#56b6c2}.language-markdown .token.blockquote.punctuation,.language-markdown .token.hr.punctuation{color:#5c6370;font-style:italic}.language-markdown .token.code-snippet{color:#98c379}.language-markdown .token.bold .token.content{color:#d19a66}.language-markdown .token.italic .token.content{color:#c678dd}.language-markdown .token.strike .token.content,.language-markdown .token.strike .token.punctuation,.language-markdown .token.list.punctuation,.language-markdown .token.title.important>.token.punctuation{color:#e06c75}.token.bold{font-weight:700}.token.comment,.token.italic{font-style:italic}.token.entity{cursor:help}.token.namespace{opacity:.8}.token.token.tab:not(:empty):before,.token.token.cr:before,.token.token.lf:before,.token.token.space:before{color:#abb2bf26;text-shadow:none}div.code-toolbar>.toolbar.toolbar>.toolbar-item{margin-right:.4em}div.code-toolbar>.toolbar.toolbar>.toolbar-item>button,div.code-toolbar>.toolbar.toolbar>.toolbar-item>a,div.code-toolbar>.toolbar.toolbar>.toolbar-item>span{background:#3a3f4b;color:#828997;padding:.1em .4em;border-radius:.3em}div.code-toolbar>.toolbar.toolbar>.toolbar-item>button:hover,div.code-toolbar>.toolbar.toolbar>.toolbar-item>button:focus,div.code-toolbar>.toolbar.toolbar>.toolbar-item>a:hover,div.code-toolbar>.toolbar.toolbar>.toolbar-item>a:focus,div.code-toolbar>.toolbar.toolbar>.toolbar-item>span:hover,div.code-toolbar>.toolbar.toolbar>.toolbar-item>span:focus{background:#3e4451;color:#abb2bf}.line-highlight.line-highlight{background:#99bbff0a}.line-highlight.line-highlight:before,.line-highlight.line-highlight[data-end]:after{background:#3a3f4b;color:#abb2bf;padding:.1em .6em;border-radius:.3em;box-shadow:0 2px #0003}pre[id].linkable-line-numbers.linkable-line-numbers span.line-numbers-rows>span:hover:before{background-color:#99bbff0a}.line-numbers.line-numbers .line-numbers-rows,.command-line .command-line-prompt{border-right-color:#abb2bf26}.line-numbers .line-numbers-rows>span:before,.command-line .command-line-prompt>span:before{color:#636d83}.rainbow-braces .token.token.punctuation.brace-level-1,.rainbow-braces .token.token.punctuation.brace-level-5,.rainbow-braces .token.token.punctuation.brace-level-9{color:#e06c75}.rainbow-braces .token.token.punctuation.brace-level-2,.rainbow-braces .token.token.punctuation.brace-level-6,.rainbow-braces .token.token.punctuation.brace-level-10{color:#98c379}.rainbow-braces .token.token.punctuation.brace-level-3,.rainbow-braces .token.token.punctuation.brace-level-7,.rainbow-braces .token.token.punctuation.brace-level-11{color:#61afef}.rainbow-braces .token.token.punctuation.brace-level-4,.rainbow-braces .token.token.punctuation.brace-level-8,.rainbow-braces .token.token.punctuation.brace-level-12{color:#c678dd}pre.diff-highlight>code .token.token.deleted:not(.prefix),pre>code.diff-highlight .token.token.deleted:not(.prefix){background-color:#ff526626}pre.diff-highlight>code .token.token.deleted:not(.prefix)::-moz-selection,pre.diff-highlight>code .token.token.deleted:not(.prefix) *::-moz-selection,pre>code.diff-highlight .token.token.deleted:not(.prefix)::-moz-selection,pre>code.diff-highlight .token.token.deleted:not(.prefix) *::-moz-selection{background-color:#fb566940}pre.diff-highlight>code .token.token.deleted:not(.prefix)::selection,pre.diff-highlight>code .token.token.deleted:not(.prefix) *::selection,pre>code.diff-highlight .token.token.deleted:not(.prefix)::selection,pre>code.diff-highlight .token.token.deleted:not(.prefix) *::selection{background-color:#fb566940}pre.diff-highlight>code .token.token.inserted:not(.prefix),pre>code.diff-highlight .token.token.inserted:not(.prefix){background-color:#1aff5b26}pre.diff-highlight>code .token.token.inserted:not(.prefix)::-moz-selection,pre.diff-highlight>code .token.token.inserted:not(.prefix) *::-moz-selection,pre>code.diff-highlight .token.token.inserted:not(.prefix)::-moz-selection,pre>code.diff-highlight .token.token.inserted:not(.prefix) *::-moz-selection{background-color:#38e06240}pre.diff-highlight>code .token.token.inserted:not(.prefix)::selection,pre.diff-highlight>code .token.token.inserted:not(.prefix) *::selection,pre>code.diff-highlight .token.token.inserted:not(.prefix)::selection,pre>code.diff-highlight .token.token.inserted:not(.prefix) *::selection{background-color:#38e06240}.prism-previewer.prism-previewer:before,.prism-previewer-gradient.prism-previewer-gradient div{border-color:#262931}.prism-previewer-color.prism-previewer-color:before,.prism-previewer-gradient.prism-previewer-gradient div,.prism-previewer-easing.prism-previewer-easing:before{border-radius:.3em}.prism-previewer.prism-previewer:after{border-top-color:#262931}.prism-previewer-flipped.prism-previewer-flipped.after{border-bottom-color:#262931}.prism-previewer-angle.prism-previewer-angle:before,.prism-previewer-time.prism-previewer-time:before,.prism-previewer-easing.prism-previewer-easing{background:#31363f}.prism-previewer-angle.prism-previewer-angle circle,.prism-previewer-time.prism-previewer-time circle{stroke:#abb2bf;stroke-opacity:1}.prism-previewer-easing.prism-previewer-easing circle,.prism-previewer-easing.prism-previewer-easing path,.prism-previewer-easing.prism-previewer-easing line{stroke:#abb2bf}.prism-previewer-easing.prism-previewer-easing circle{fill:transparent}", gl = "code[class*=language-],pre[class*=language-]{background:#fafafa;color:#383a42;font-family:Fira Code,Fira Mono,Menlo,Consolas,DejaVu Sans Mono,monospace;direction:ltr;text-align:left;white-space:pre;word-spacing:normal;word-break:normal;line-height:1.5;-moz-tab-size:2;-o-tab-size:2;tab-size:2;-webkit-hyphens:none;-moz-hyphens:none;-ms-hyphens:none;hyphens:none}code[class*=language-]::-moz-selection,code[class*=language-] *::-moz-selection,pre[class*=language-] *::-moz-selection{background:#e5e5e6;color:inherit}code[class*=language-]::selection,code[class*=language-] *::selection,pre[class*=language-] *::selection{background:#e5e5e6;color:inherit}pre[class*=language-]{padding:1em;margin:.5em 0;overflow:auto;border-radius:.3em}:not(pre)>code[class*=language-]{padding:.2em .3em;border-radius:.3em;white-space:normal}.token.comment,.token.prolog,.token.cdata{color:#a0a1a7}.token.doctype,.token.punctuation,.token.entity{color:#383a42}.token.attr-name,.token.class-name,.token.boolean,.token.constant,.token.number,.token.atrule{color:#b76b01}.token.keyword{color:#a626a4}.token.property,.token.tag,.token.symbol,.token.deleted,.token.important{color:#e45649}.token.selector,.token.string,.token.char,.token.builtin,.token.inserted,.token.regex,.token.attr-value,.token.attr-value>.token.punctuation{color:#50a14f}.token.variable,.token.operator,.token.function{color:#4078f2}.token.url{color:#0184bc}.token.attr-value>.token.punctuation.attr-equals,.token.special-attr>.token.attr-value>.token.value.css{color:#383a42}.language-css .token.selector{color:#e45649}.language-css .token.property{color:#383a42}.language-css .token.function,.language-css .token.url>.token.function{color:#0184bc}.language-css .token.url>.token.string.url{color:#50a14f}.language-css .token.important,.language-css .token.atrule .token.rule,.language-javascript .token.operator{color:#a626a4}.language-javascript .token.template-string>.token.interpolation>.token.interpolation-punctuation.punctuation{color:#ca1243}.language-json .token.operator{color:#383a42}.language-json .token.null.keyword{color:#b76b01}.language-markdown .token.url,.language-markdown .token.url>.token.operator,.language-markdown .token.url-reference.url>.token.string{color:#383a42}.language-markdown .token.url>.token.content{color:#4078f2}.language-markdown .token.url>.token.url,.language-markdown .token.url-reference.url{color:#0184bc}.language-markdown .token.blockquote.punctuation,.language-markdown .token.hr.punctuation{color:#a0a1a7;font-style:italic}.language-markdown .token.code-snippet{color:#50a14f}.language-markdown .token.bold .token.content{color:#b76b01}.language-markdown .token.italic .token.content{color:#a626a4}.language-markdown .token.strike .token.content,.language-markdown .token.strike .token.punctuation,.language-markdown .token.list.punctuation,.language-markdown .token.title.important>.token.punctuation{color:#e45649}.token.bold{font-weight:700}.token.comment,.token.italic{font-style:italic}.token.entity{cursor:help}.token.namespace{opacity:.8}.token.token.tab:not(:empty):before,.token.token.cr:before,.token.token.lf:before,.token.token.space:before{color:#383a4233}div.code-toolbar>.toolbar.toolbar>.toolbar-item{margin-right:.4em}div.code-toolbar>.toolbar.toolbar>.toolbar-item>button,div.code-toolbar>.toolbar.toolbar>.toolbar-item>a,div.code-toolbar>.toolbar.toolbar>.toolbar-item>span{background:#e5e5e6;color:#696c77;padding:.1em .4em;border-radius:.3em}div.code-toolbar>.toolbar.toolbar>.toolbar-item>button:hover,div.code-toolbar>.toolbar.toolbar>.toolbar-item>button:focus,div.code-toolbar>.toolbar.toolbar>.toolbar-item>a:hover,div.code-toolbar>.toolbar.toolbar>.toolbar-item>a:focus,div.code-toolbar>.toolbar.toolbar>.toolbar-item>span:hover,div.code-toolbar>.toolbar.toolbar>.toolbar-item>span:focus{background:#c6c7c7;color:#383a42}.line-highlight.line-highlight{background:#383a420d}.line-highlight.line-highlight:before,.line-highlight.line-highlight[data-end]:after{background:#e5e5e6;color:#383a42;padding:.1em .6em;border-radius:.3em;box-shadow:0 2px #0003}pre[id].linkable-line-numbers.linkable-line-numbers span.line-numbers-rows>span:hover:before{background-color:#383a420d}.line-numbers.line-numbers .line-numbers-rows,.command-line .command-line-prompt{border-right-color:#383a4233}.line-numbers .line-numbers-rows>span:before,.command-line .command-line-prompt>span:before{color:#9d9d9f}.rainbow-braces .token.token.punctuation.brace-level-1,.rainbow-braces .token.token.punctuation.brace-level-5,.rainbow-braces .token.token.punctuation.brace-level-9{color:#e45649}.rainbow-braces .token.token.punctuation.brace-level-2,.rainbow-braces .token.token.punctuation.brace-level-6,.rainbow-braces .token.token.punctuation.brace-level-10{color:#50a14f}.rainbow-braces .token.token.punctuation.brace-level-3,.rainbow-braces .token.token.punctuation.brace-level-7,.rainbow-braces .token.token.punctuation.brace-level-11{color:#4078f2}.rainbow-braces .token.token.punctuation.brace-level-4,.rainbow-braces .token.token.punctuation.brace-level-8,.rainbow-braces .token.token.punctuation.brace-level-12{color:#a626a4}pre.diff-highlight>code .token.token.deleted:not(.prefix),pre>code.diff-highlight .token.token.deleted:not(.prefix){background-color:#ff526626}pre.diff-highlight>code .token.token.deleted:not(.prefix)::-moz-selection,pre.diff-highlight>code .token.token.deleted:not(.prefix) *::-moz-selection,pre>code.diff-highlight .token.token.deleted:not(.prefix)::-moz-selection,pre>code.diff-highlight .token.token.deleted:not(.prefix) *::-moz-selection{background-color:#fb566940}pre.diff-highlight>code .token.token.deleted:not(.prefix)::selection,pre.diff-highlight>code .token.token.deleted:not(.prefix) *::selection,pre>code.diff-highlight .token.token.deleted:not(.prefix)::selection,pre>code.diff-highlight .token.token.deleted:not(.prefix) *::selection{background-color:#fb566940}pre.diff-highlight>code .token.token.inserted:not(.prefix),pre>code.diff-highlight .token.token.inserted:not(.prefix){background-color:#1aff5b26}pre.diff-highlight>code .token.token.inserted:not(.prefix)::-moz-selection,pre.diff-highlight>code .token.token.inserted:not(.prefix) *::-moz-selection,pre>code.diff-highlight .token.token.inserted:not(.prefix)::-moz-selection,pre>code.diff-highlight .token.token.inserted:not(.prefix) *::-moz-selection{background-color:#38e06240}pre.diff-highlight>code .token.token.inserted:not(.prefix)::selection,pre.diff-highlight>code .token.token.inserted:not(.prefix) *::selection,pre>code.diff-highlight .token.token.inserted:not(.prefix)::selection,pre>code.diff-highlight .token.token.inserted:not(.prefix) *::selection{background-color:#38e06240}.prism-previewer.prism-previewer:before,.prism-previewer-gradient.prism-previewer-gradient div{border-color:hsl(0,0,95%)}.prism-previewer-color.prism-previewer-color:before,.prism-previewer-gradient.prism-previewer-gradient div,.prism-previewer-easing.prism-previewer-easing:before{border-radius:.3em}.prism-previewer.prism-previewer:after{border-top-color:hsl(0,0,95%)}.prism-previewer-flipped.prism-previewer-flipped.after{border-bottom-color:hsl(0,0,95%)}.prism-previewer-angle.prism-previewer-angle:before,.prism-previewer-time.prism-previewer-time:before,.prism-previewer-easing.prism-previewer-easing{background:#fff}.prism-previewer-angle.prism-previewer-angle circle,.prism-previewer-time.prism-previewer-time circle{stroke:#383a42;stroke-opacity:1}.prism-previewer-easing.prism-previewer-easing circle,.prism-previewer-easing.prism-previewer-easing path,.prism-previewer-easing.prism-previewer-easing line{stroke:#383a42}.prism-previewer-easing.prism-previewer-easing circle{fill:transparent}", { c: zt, cB: kr, cE: $t } = { ...tn, ...Pr }, Vu = `${Rr}-type-writer`;
|
|
7183
7199
|
function xl() {
|
|
7184
7200
|
return zt([
|
|
7185
7201
|
kr("type-writer", {
|
|
7186
7202
|
overflowX: "auto"
|
|
7187
7203
|
}, [
|
|
7188
|
-
|
|
7204
|
+
$t("cursor::after", {
|
|
7189
7205
|
content: "var(--cursor-content)",
|
|
7190
7206
|
marginLeft: "2px",
|
|
7191
7207
|
display: "inline-block"
|
|
7192
7208
|
}),
|
|
7193
|
-
|
|
7209
|
+
$t("markdown", `${gl}`, [
|
|
7194
7210
|
zt("pre", {
|
|
7195
7211
|
backgroundColor: "var(--tag-color)",
|
|
7196
7212
|
borderRadius: "var(--border-radius)"
|
|
@@ -7199,7 +7215,7 @@ function xl() {
|
|
|
7199
7215
|
]),
|
|
7200
7216
|
zt(".dark", [
|
|
7201
7217
|
kr("type-writer", [
|
|
7202
|
-
|
|
7218
|
+
$t("markdown", `${ml}`)
|
|
7203
7219
|
])
|
|
7204
7220
|
])
|
|
7205
7221
|
]);
|
|
@@ -7237,11 +7253,11 @@ const kl = ["innerHTML"], _l = /* @__PURE__ */ he({
|
|
|
7237
7253
|
breaks: !0,
|
|
7238
7254
|
highlight: Oi
|
|
7239
7255
|
}), s = be(() => e.markdown ? c.value : n.value);
|
|
7240
|
-
return (l, f) => (
|
|
7256
|
+
return (l, f) => (B(), V(S(yr), {
|
|
7241
7257
|
tag: "div",
|
|
7242
7258
|
class: Ku([S(Vu)])
|
|
7243
7259
|
}, {
|
|
7244
|
-
default:
|
|
7260
|
+
default: N(() => [
|
|
7245
7261
|
Fu("div", {
|
|
7246
7262
|
class: Ku([S(r) && !l.markdown ? `${S(Vu)}__cursor` : void 0, l.markdown ? `${S(Vu)}__markdown` : void 0]),
|
|
7247
7263
|
style: vr([l.markdown ? void 0 : { "--cursor-content": `'${l.suffix}'` }]),
|