@apform-ui/core 1.10.5 → 1.10.6
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/apform-ui.css +1 -1
- package/dist/apform-ui.js +815 -758
- package/dist/apform-ui.umd.cjs +56 -56
- package/dist/components/Chat/PendingAttachmentChip/PendingAttachmentChip.vue.d.ts +12 -0
- package/dist/components/Chat/PendingAttachmentChip/doc.d.ts +3 -0
- package/dist/components/Chat/PendingAttachmentChip/index.d.ts +1 -0
- package/dist/docs/index.d.ts +1 -0
- package/dist/index.d.ts +1 -0
- package/package.json +1 -1
- package/src/docs/index.ts +3 -0
package/dist/apform-ui.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
var El = Object.defineProperty;
|
|
2
2
|
var Pl = (I, g, C) => g in I ? El(I, g, { enumerable: !0, configurable: !0, writable: !0, value: C }) : I[g] = C;
|
|
3
3
|
var GI = (I, g, C) => Pl(I, typeof g != "symbol" ? g + "" : g, C);
|
|
4
|
-
import { defineComponent as j, openBlock as m, createElementBlock as W, createElementVNode as Y, ref as t, resolveComponent as _, createBlock as
|
|
4
|
+
import { defineComponent as j, openBlock as m, createElementBlock as W, createElementVNode as Y, ref as t, resolveComponent as _, createBlock as T, normalizeStyle as dI, withCtx as O, normalizeClass as u, renderSlot as CI, createVNode as II, createTextVNode as gI, toDisplayString as h, unref as $, createCommentVNode as a, shallowRef as jC, onMounted as tg, watch as NI, onUnmounted as mg, h as kI, nextTick as $I, computed as n, Fragment as Q, renderList as q, Teleport as UZ, TransitionGroup as rl, onErrorCaptured as fl, createSlots as vZ, resolveDynamicComponent as OZ, withKeys as QC, withModifiers as UI, resolveDirective as EZ, withDirectives as Gg, reactive as PZ, useAttrs as ql, vShow as _l, onBeforeUnmount as rZ, normalizeProps as OA, guardReactiveProps as EA, useSlots as IA, vModelText as UC, vModelSelect as $l, inject as Id, toValue as gd } from "vue";
|
|
5
5
|
import { ElButton as Cd, ElImageViewer as Ad, ElMessageBox as Zd, ElMessage as IC } from "element-plus";
|
|
6
6
|
/*! Element Plus Icons Vue v2.3.2 */
|
|
7
7
|
var ld = /* @__PURE__ */ j({
|
|
@@ -79,7 +79,7 @@ const id = /* @__PURE__ */ j({
|
|
|
79
79
|
}
|
|
80
80
|
return (G, b) => {
|
|
81
81
|
const i = _("el-button"), w = _("el-dialog");
|
|
82
|
-
return m(),
|
|
82
|
+
return m(), T(w, {
|
|
83
83
|
"model-value": I.modelValue,
|
|
84
84
|
width: Z.value ? "100vw" : I.width,
|
|
85
85
|
fullscreen: Z.value,
|
|
@@ -94,23 +94,23 @@ const id = /* @__PURE__ */ j({
|
|
|
94
94
|
}, {
|
|
95
95
|
header: O(() => [
|
|
96
96
|
Y("div", {
|
|
97
|
-
class:
|
|
97
|
+
class: u(G.$style.header)
|
|
98
98
|
}, [
|
|
99
99
|
Y("span", {
|
|
100
|
-
class:
|
|
100
|
+
class: u(G.$style.title)
|
|
101
101
|
}, h(I.title), 3),
|
|
102
102
|
Y("div", {
|
|
103
|
-
class:
|
|
103
|
+
class: u(G.$style.headerRight)
|
|
104
104
|
}, [
|
|
105
|
-
I.showFullscreenBtn ? (m(),
|
|
105
|
+
I.showFullscreenBtn ? (m(), T(i, {
|
|
106
106
|
key: 0,
|
|
107
|
-
class:
|
|
107
|
+
class: u(G.$style.headerBtn),
|
|
108
108
|
icon: Z.value ? $(md) : $(cd),
|
|
109
109
|
text: "",
|
|
110
110
|
onClick: A
|
|
111
|
-
}, null, 8, ["class", "icon"])) :
|
|
111
|
+
}, null, 8, ["class", "icon"])) : a("", !0),
|
|
112
112
|
II(i, {
|
|
113
|
-
class:
|
|
113
|
+
class: u(G.$style.headerBtn),
|
|
114
114
|
icon: $(dd),
|
|
115
115
|
text: "",
|
|
116
116
|
onClick: b[0] || (b[0] = (s) => C("update:modelValue", !1))
|
|
@@ -120,7 +120,7 @@ const id = /* @__PURE__ */ j({
|
|
|
120
120
|
]),
|
|
121
121
|
footer: O(() => [
|
|
122
122
|
Y("div", {
|
|
123
|
-
class:
|
|
123
|
+
class: u(G.$style.footer)
|
|
124
124
|
}, [
|
|
125
125
|
CI(G.$slots, "footer", {}, () => [
|
|
126
126
|
II(i, { onClick: l }, {
|
|
@@ -144,7 +144,7 @@ const id = /* @__PURE__ */ j({
|
|
|
144
144
|
]),
|
|
145
145
|
default: O(() => [
|
|
146
146
|
Y("div", {
|
|
147
|
-
class:
|
|
147
|
+
class: u(G.$style.body)
|
|
148
148
|
}, [
|
|
149
149
|
CI(G.$slots, "default")
|
|
150
150
|
], 2)
|
|
@@ -428,10 +428,10 @@ function zd(I, g) {
|
|
|
428
428
|
const l = Z.width, c = Z.height, G = A.width, b = A.height;
|
|
429
429
|
let i, w;
|
|
430
430
|
l === null ? (w = c === null ? "1em" : c === "auto" ? b : c, i = fA(w, G / b)) : (i = l === "auto" ? G : l, w = c === null ? fA(i, b / G) : c === "auto" ? b : c);
|
|
431
|
-
const s = {},
|
|
431
|
+
const s = {}, R = (X, o) => {
|
|
432
432
|
Jd(o) || (s[X] = o.toString());
|
|
433
433
|
};
|
|
434
|
-
|
|
434
|
+
R("width", i), R("height", w);
|
|
435
435
|
const V = [
|
|
436
436
|
A.left,
|
|
437
437
|
A.top,
|
|
@@ -693,8 +693,8 @@ function IG(I, g, C, Z) {
|
|
|
693
693
|
l = l.concat(y);
|
|
694
694
|
} else l = I.resources.slice(d).concat(I.resources.slice(0, d));
|
|
695
695
|
const c = Date.now();
|
|
696
|
-
let G = "pending", b = 0, i, w = null, s = [],
|
|
697
|
-
typeof Z == "function" &&
|
|
696
|
+
let G = "pending", b = 0, i, w = null, s = [], R = [];
|
|
697
|
+
typeof Z == "function" && R.push(Z);
|
|
698
698
|
function V() {
|
|
699
699
|
w && (clearTimeout(w), w = null);
|
|
700
700
|
}
|
|
@@ -704,7 +704,7 @@ function IG(I, g, C, Z) {
|
|
|
704
704
|
}), s = [];
|
|
705
705
|
}
|
|
706
706
|
function o(y, p) {
|
|
707
|
-
p && (
|
|
707
|
+
p && (R = []), typeof y == "function" && R.push(y);
|
|
708
708
|
}
|
|
709
709
|
function S() {
|
|
710
710
|
return {
|
|
@@ -718,7 +718,7 @@ function IG(I, g, C, Z) {
|
|
|
718
718
|
};
|
|
719
719
|
}
|
|
720
720
|
function k() {
|
|
721
|
-
G = "failed",
|
|
721
|
+
G = "failed", R.forEach((y) => {
|
|
722
722
|
y(void 0, i);
|
|
723
723
|
});
|
|
724
724
|
}
|
|
@@ -750,7 +750,7 @@ function IG(I, g, C, Z) {
|
|
|
750
750
|
const z = I.resources.indexOf(y.resource);
|
|
751
751
|
z !== -1 && z !== I.index && (I.index = z);
|
|
752
752
|
}
|
|
753
|
-
G = "completed",
|
|
753
|
+
G = "completed", R.forEach((z) => {
|
|
754
754
|
z(J);
|
|
755
755
|
});
|
|
756
756
|
}
|
|
@@ -1088,7 +1088,7 @@ const dZ = (I, g) => {
|
|
|
1088
1088
|
...d,
|
|
1089
1089
|
...c
|
|
1090
1090
|
}, Object.assign(Z, b), Z.innerHTML = Ld(G.body), kI("svg", Z);
|
|
1091
|
-
const { body: i, width: w, height: s } = I,
|
|
1091
|
+
const { body: i, width: w, height: s } = I, R = A === "mask" || (A === "bg" ? !1 : i.indexOf("currentColor") !== -1), V = iG(i, {
|
|
1092
1092
|
...b,
|
|
1093
1093
|
width: w + "",
|
|
1094
1094
|
height: s + ""
|
|
@@ -1099,7 +1099,7 @@ const dZ = (I, g) => {
|
|
|
1099
1099
|
width: lZ(b.width),
|
|
1100
1100
|
height: lZ(b.height),
|
|
1101
1101
|
...wG,
|
|
1102
|
-
...
|
|
1102
|
+
...R ? PC : dl,
|
|
1103
1103
|
...c
|
|
1104
1104
|
}, kI("span", Z);
|
|
1105
1105
|
};
|
|
@@ -1174,8 +1174,8 @@ const VG = {
|
|
|
1174
1174
|
const V = s(w.body, i.name, i.prefix, i.provider);
|
|
1175
1175
|
typeof V == "string" && (w.body = V);
|
|
1176
1176
|
}
|
|
1177
|
-
const
|
|
1178
|
-
return i.prefix !== "" &&
|
|
1177
|
+
const R = ["iconify"];
|
|
1178
|
+
return i.prefix !== "" && R.push("iconify--" + i.prefix), i.provider !== "" && R.push("iconify--" + i.provider), { data: w, classes: R };
|
|
1179
1179
|
}
|
|
1180
1180
|
function G() {
|
|
1181
1181
|
var i;
|
|
@@ -1811,11 +1811,11 @@ const VG = {
|
|
|
1811
1811
|
"data-analysis": Rb,
|
|
1812
1812
|
reading: Hb,
|
|
1813
1813
|
flag: yb
|
|
1814
|
-
},
|
|
1815
|
-
function
|
|
1814
|
+
}, hV = Object.keys(lA).sort();
|
|
1815
|
+
function aV(I) {
|
|
1816
1816
|
return I in lA;
|
|
1817
1817
|
}
|
|
1818
|
-
const
|
|
1818
|
+
const XI = /* @__PURE__ */ j({
|
|
1819
1819
|
__name: "AppIcon",
|
|
1820
1820
|
props: {
|
|
1821
1821
|
name: {},
|
|
@@ -1823,8 +1823,8 @@ const RI = /* @__PURE__ */ j({
|
|
|
1823
1823
|
color: {}
|
|
1824
1824
|
},
|
|
1825
1825
|
setup(I) {
|
|
1826
|
-
const g = I, C =
|
|
1827
|
-
return (A, d) => C.value ? (m(),
|
|
1826
|
+
const g = I, C = n(() => lA[g.name] ?? null), Z = n(() => typeof g.size == "number" ? `${g.size}px` : g.size ?? "1em");
|
|
1827
|
+
return (A, d) => C.value ? (m(), T($(NG), {
|
|
1828
1828
|
key: 0,
|
|
1829
1829
|
icon: C.value,
|
|
1830
1830
|
width: Z.value,
|
|
@@ -1858,7 +1858,7 @@ const RI = /* @__PURE__ */ j({
|
|
|
1858
1858
|
const G = _("el-pagination");
|
|
1859
1859
|
return C.total > 0 ? (m(), W("div", {
|
|
1860
1860
|
key: 0,
|
|
1861
|
-
class:
|
|
1861
|
+
class: u(l.$style.pagination),
|
|
1862
1862
|
"data-testid": "app-pagination"
|
|
1863
1863
|
}, [
|
|
1864
1864
|
II(G, {
|
|
@@ -1872,14 +1872,14 @@ const RI = /* @__PURE__ */ j({
|
|
|
1872
1872
|
onCurrentChange: A,
|
|
1873
1873
|
onSizeChange: d
|
|
1874
1874
|
}, null, 8, ["current-page", "page-size", "page-sizes", "total", "layout", "size"])
|
|
1875
|
-
], 2)) :
|
|
1875
|
+
], 2)) : a("", !0);
|
|
1876
1876
|
};
|
|
1877
1877
|
}
|
|
1878
1878
|
}), Kb = "_pagination_d8k9z_2", Sb = {
|
|
1879
1879
|
pagination: Kb
|
|
1880
1880
|
}, Db = {
|
|
1881
1881
|
$style: Sb
|
|
1882
|
-
},
|
|
1882
|
+
}, RV = /* @__PURE__ */ U(Mb, [["__cssModules", Db]]), Fb = /* @__PURE__ */ j({
|
|
1883
1883
|
__name: "ConfirmDialog",
|
|
1884
1884
|
props: {
|
|
1885
1885
|
modelValue: { type: Boolean },
|
|
@@ -1897,7 +1897,7 @@ const RI = /* @__PURE__ */ j({
|
|
|
1897
1897
|
function Z() {
|
|
1898
1898
|
C("confirm"), C("update:modelValue", !1);
|
|
1899
1899
|
}
|
|
1900
|
-
return (A, d) => (m(),
|
|
1900
|
+
return (A, d) => (m(), T(gA, {
|
|
1901
1901
|
"model-value": I.modelValue,
|
|
1902
1902
|
title: I.title,
|
|
1903
1903
|
width: I.width,
|
|
@@ -1909,26 +1909,26 @@ const RI = /* @__PURE__ */ j({
|
|
|
1909
1909
|
}, {
|
|
1910
1910
|
default: O(() => [
|
|
1911
1911
|
Y("div", {
|
|
1912
|
-
class:
|
|
1912
|
+
class: u(A.$style.content)
|
|
1913
1913
|
}, [
|
|
1914
|
-
I.type === "warning" ? (m(),
|
|
1914
|
+
I.type === "warning" ? (m(), T(XI, {
|
|
1915
1915
|
key: 0,
|
|
1916
1916
|
name: "warning",
|
|
1917
|
-
class:
|
|
1917
|
+
class: u(A.$style.icon),
|
|
1918
1918
|
style: { color: "var(--el-color-warning)" }
|
|
1919
|
-
}, null, 8, ["class"])) : I.type === "danger" ? (m(),
|
|
1919
|
+
}, null, 8, ["class"])) : I.type === "danger" ? (m(), T(XI, {
|
|
1920
1920
|
key: 1,
|
|
1921
1921
|
name: "circle-close-filled",
|
|
1922
|
-
class:
|
|
1922
|
+
class: u(A.$style.icon),
|
|
1923
1923
|
style: { color: "var(--el-color-danger)" }
|
|
1924
|
-
}, null, 8, ["class"])) : (m(),
|
|
1924
|
+
}, null, 8, ["class"])) : (m(), T(XI, {
|
|
1925
1925
|
key: 2,
|
|
1926
1926
|
name: "info-filled",
|
|
1927
|
-
class:
|
|
1927
|
+
class: u(A.$style.icon),
|
|
1928
1928
|
style: { color: "var(--el-color-primary)" }
|
|
1929
1929
|
}, null, 8, ["class"])),
|
|
1930
1930
|
Y("p", {
|
|
1931
|
-
class:
|
|
1931
|
+
class: u(A.$style.message)
|
|
1932
1932
|
}, h(I.message), 3)
|
|
1933
1933
|
], 2)
|
|
1934
1934
|
]),
|
|
@@ -1941,7 +1941,7 @@ const RI = /* @__PURE__ */ j({
|
|
|
1941
1941
|
message: zb
|
|
1942
1942
|
}, eb = {
|
|
1943
1943
|
$style: kb
|
|
1944
|
-
},
|
|
1944
|
+
}, HV = /* @__PURE__ */ U(Fb, [["__cssModules", eb]]), yV = /* @__PURE__ */ j({
|
|
1945
1945
|
__name: "FormDialog",
|
|
1946
1946
|
props: {
|
|
1947
1947
|
modelValue: { type: Boolean },
|
|
@@ -1973,7 +1973,7 @@ const RI = /* @__PURE__ */ j({
|
|
|
1973
1973
|
c && ((G = A.value) == null || G.clearValidate());
|
|
1974
1974
|
}), (c, G) => {
|
|
1975
1975
|
const b = _("el-form");
|
|
1976
|
-
return m(),
|
|
1976
|
+
return m(), T(gA, {
|
|
1977
1977
|
"model-value": I.modelValue,
|
|
1978
1978
|
title: I.title,
|
|
1979
1979
|
width: I.width,
|
|
@@ -2013,18 +2013,18 @@ const RI = /* @__PURE__ */ j({
|
|
|
2013
2013
|
setup(I, { emit: g }) {
|
|
2014
2014
|
const C = g;
|
|
2015
2015
|
return (Z, A) => (m(), W("div", {
|
|
2016
|
-
class:
|
|
2016
|
+
class: u(Z.$style.tabs)
|
|
2017
2017
|
}, [
|
|
2018
2018
|
(m(!0), W(Q, null, q(I.options, (d) => (m(), W("button", {
|
|
2019
2019
|
key: d.value,
|
|
2020
|
-
class:
|
|
2020
|
+
class: u([Z.$style.tab, { [Z.$style.tabActive]: I.modelValue === d.value }]),
|
|
2021
2021
|
onClick: (l) => C("update:modelValue", d.value)
|
|
2022
2022
|
}, [
|
|
2023
2023
|
gI(h(d.label) + " ", 1),
|
|
2024
2024
|
d.count != null ? (m(), W("span", {
|
|
2025
2025
|
key: 0,
|
|
2026
|
-
class:
|
|
2027
|
-
}, h(d.count), 3)) :
|
|
2026
|
+
class: u(Z.$style.count)
|
|
2027
|
+
}, h(d.count), 3)) : a("", !0)
|
|
2028
2028
|
], 10, Lb))), 128))
|
|
2029
2029
|
], 2));
|
|
2030
2030
|
}
|
|
@@ -2035,7 +2035,7 @@ const RI = /* @__PURE__ */ j({
|
|
|
2035
2035
|
count: Qb
|
|
2036
2036
|
}, vb = {
|
|
2037
2037
|
$style: Ub
|
|
2038
|
-
},
|
|
2038
|
+
}, uV = /* @__PURE__ */ U(tb, [["__cssModules", vb]]), Ob = ["onClick"], Eb = /* @__PURE__ */ j({
|
|
2039
2039
|
__name: "Toast",
|
|
2040
2040
|
setup(I, { expose: g }) {
|
|
2041
2041
|
const C = t([]);
|
|
@@ -2053,19 +2053,19 @@ const RI = /* @__PURE__ */ j({
|
|
|
2053
2053
|
function l(c, G = "info", b) {
|
|
2054
2054
|
A(c, G, b);
|
|
2055
2055
|
}
|
|
2056
|
-
return g({ show: l }), (c, G) => (m(),
|
|
2056
|
+
return g({ show: l }), (c, G) => (m(), T(UZ, { to: "body" }, [
|
|
2057
2057
|
Y("div", {
|
|
2058
|
-
class:
|
|
2058
|
+
class: u(c.$style.container)
|
|
2059
2059
|
}, [
|
|
2060
2060
|
II(rl, { name: "toast" }, {
|
|
2061
2061
|
default: O(() => [
|
|
2062
2062
|
(m(!0), W(Q, null, q(C.value, (b) => (m(), W("div", {
|
|
2063
2063
|
key: b.id,
|
|
2064
|
-
class:
|
|
2064
|
+
class: u([c.$style.item, c.$style[b.type], { [c.$style.removing]: b.removing }]),
|
|
2065
2065
|
onClick: (i) => d(b.id)
|
|
2066
2066
|
}, [
|
|
2067
2067
|
Y("span", {
|
|
2068
|
-
class:
|
|
2068
|
+
class: u(c.$style.icon)
|
|
2069
2069
|
}, [
|
|
2070
2070
|
b.type === "success" ? (m(), W(Q, { key: 0 }, [
|
|
2071
2071
|
gI("✓")
|
|
@@ -2078,7 +2078,7 @@ const RI = /* @__PURE__ */ j({
|
|
|
2078
2078
|
], 64))
|
|
2079
2079
|
], 2),
|
|
2080
2080
|
Y("span", {
|
|
2081
|
-
class:
|
|
2081
|
+
class: u(c.$style.msg)
|
|
2082
2082
|
}, h(b.message), 3)
|
|
2083
2083
|
], 10, Ob))), 128))
|
|
2084
2084
|
]),
|
|
@@ -2099,7 +2099,7 @@ const RI = /* @__PURE__ */ j({
|
|
|
2099
2099
|
msg: Cm
|
|
2100
2100
|
}, Zm = {
|
|
2101
2101
|
$style: Am
|
|
2102
|
-
},
|
|
2102
|
+
}, nV = /* @__PURE__ */ U(Eb, [["__cssModules", Zm]]), lm = /* @__PURE__ */ j({
|
|
2103
2103
|
__name: "EmptyState",
|
|
2104
2104
|
props: {
|
|
2105
2105
|
icon: {},
|
|
@@ -2115,31 +2115,31 @@ const RI = /* @__PURE__ */ j({
|
|
|
2115
2115
|
return (Z, A) => {
|
|
2116
2116
|
const d = _("el-button");
|
|
2117
2117
|
return m(), W("div", {
|
|
2118
|
-
class:
|
|
2118
|
+
class: u([Z.$style.empty, I.compact && Z.$style.compact])
|
|
2119
2119
|
}, [
|
|
2120
2120
|
I.icon ? (m(), W("div", {
|
|
2121
2121
|
key: 0,
|
|
2122
|
-
class:
|
|
2122
|
+
class: u(Z.$style.icon)
|
|
2123
2123
|
}, [
|
|
2124
|
-
II(
|
|
2124
|
+
II(XI, {
|
|
2125
2125
|
name: I.icon,
|
|
2126
2126
|
size: I.iconSize ?? (I.compact ? 48 : 64)
|
|
2127
2127
|
}, null, 8, ["name", "size"])
|
|
2128
|
-
], 2)) :
|
|
2128
|
+
], 2)) : a("", !0),
|
|
2129
2129
|
I.title ? (m(), W("h2", {
|
|
2130
2130
|
key: 1,
|
|
2131
|
-
class:
|
|
2132
|
-
}, h(I.title), 3)) :
|
|
2131
|
+
class: u(Z.$style.title)
|
|
2132
|
+
}, h(I.title), 3)) : a("", !0),
|
|
2133
2133
|
I.description ? (m(), W("p", {
|
|
2134
2134
|
key: 2,
|
|
2135
|
-
class:
|
|
2136
|
-
}, h(I.description), 3)) :
|
|
2135
|
+
class: u(Z.$style.desc)
|
|
2136
|
+
}, h(I.description), 3)) : a("", !0),
|
|
2137
2137
|
Z.$slots.default || I.actionText ? (m(), W("div", {
|
|
2138
2138
|
key: 3,
|
|
2139
|
-
class:
|
|
2139
|
+
class: u(Z.$style.actions)
|
|
2140
2140
|
}, [
|
|
2141
2141
|
CI(Z.$slots, "default", {}, () => [
|
|
2142
|
-
I.actionText ? (m(),
|
|
2142
|
+
I.actionText ? (m(), T(d, {
|
|
2143
2143
|
key: 0,
|
|
2144
2144
|
type: "primary",
|
|
2145
2145
|
onClick: A[0] || (A[0] = (l) => C("action"))
|
|
@@ -2148,9 +2148,9 @@ const RI = /* @__PURE__ */ j({
|
|
|
2148
2148
|
gI(h(I.actionText), 1)
|
|
2149
2149
|
]),
|
|
2150
2150
|
_: 1
|
|
2151
|
-
})) :
|
|
2151
|
+
})) : a("", !0)
|
|
2152
2152
|
])
|
|
2153
|
-
], 2)) :
|
|
2153
|
+
], 2)) : a("", !0)
|
|
2154
2154
|
], 2);
|
|
2155
2155
|
};
|
|
2156
2156
|
}
|
|
@@ -2163,7 +2163,7 @@ const RI = /* @__PURE__ */ j({
|
|
|
2163
2163
|
actions: im
|
|
2164
2164
|
}, Bm = {
|
|
2165
2165
|
$style: Wm
|
|
2166
|
-
}, cg = /* @__PURE__ */ U(lm, [["__cssModules", Bm]]),
|
|
2166
|
+
}, cg = /* @__PURE__ */ U(lm, [["__cssModules", Bm]]), MV = j({
|
|
2167
2167
|
name: "ErrorBoundary",
|
|
2168
2168
|
props: {
|
|
2169
2169
|
/** 自定义上下文信息,用于错误日志 */
|
|
@@ -2198,7 +2198,7 @@ const RI = /* @__PURE__ */ j({
|
|
|
2198
2198
|
return c ? kI("div", { key: d.value, style: { display: "contents" } }, c) : null;
|
|
2199
2199
|
};
|
|
2200
2200
|
}
|
|
2201
|
-
}),
|
|
2201
|
+
}), KV = /* @__PURE__ */ j({
|
|
2202
2202
|
__name: "StatusTag",
|
|
2203
2203
|
props: {
|
|
2204
2204
|
status: {},
|
|
@@ -2226,10 +2226,10 @@ const RI = /* @__PURE__ */ j({
|
|
|
2226
2226
|
failed: { label: "失败", type: "danger", effect: "light" },
|
|
2227
2227
|
cancelled: { label: "已取消", type: "info", effect: "light" },
|
|
2228
2228
|
waiting: { label: "等待中", type: "warning", effect: "light" }
|
|
2229
|
-
}, C = I, Z =
|
|
2229
|
+
}, C = I, Z = n(() => ({ ...g, ...C.statusMap })[C.status] ?? { label: C.status, type: "info", effect: "light" });
|
|
2230
2230
|
return (A, d) => {
|
|
2231
2231
|
const l = _("el-tag");
|
|
2232
|
-
return m(),
|
|
2232
|
+
return m(), T(l, {
|
|
2233
2233
|
type: Z.value.type,
|
|
2234
2234
|
effect: Z.value.effect ?? "light",
|
|
2235
2235
|
round: I.round,
|
|
@@ -2254,52 +2254,52 @@ const RI = /* @__PURE__ */ j({
|
|
|
2254
2254
|
return (g, C) => {
|
|
2255
2255
|
const Z = _("el-skeleton");
|
|
2256
2256
|
return m(), W("div", {
|
|
2257
|
-
class:
|
|
2257
|
+
class: u([g.$style.skeleton, { [g.$style.animated]: I.animated }])
|
|
2258
2258
|
}, [
|
|
2259
2259
|
I.variant === "card" ? (m(!0), W(Q, { key: 0 }, q(I.count, (A) => (m(), W("div", {
|
|
2260
2260
|
key: A,
|
|
2261
|
-
class:
|
|
2261
|
+
class: u(g.$style.card)
|
|
2262
2262
|
}, [
|
|
2263
2263
|
Y("div", {
|
|
2264
|
-
class:
|
|
2264
|
+
class: u(g.$style.cardImage)
|
|
2265
2265
|
}, null, 2),
|
|
2266
2266
|
Y("div", {
|
|
2267
|
-
class:
|
|
2267
|
+
class: u(g.$style.cardBody)
|
|
2268
2268
|
}, [
|
|
2269
2269
|
Y("div", {
|
|
2270
|
-
class:
|
|
2270
|
+
class: u([g.$style.line, g.$style.lineTitle])
|
|
2271
2271
|
}, null, 2),
|
|
2272
2272
|
Y("div", {
|
|
2273
|
-
class:
|
|
2273
|
+
class: u([g.$style.line, g.$style.lineText])
|
|
2274
2274
|
}, null, 2),
|
|
2275
2275
|
Y("div", {
|
|
2276
|
-
class:
|
|
2276
|
+
class: u([g.$style.line, g.$style.lineTextShort])
|
|
2277
2277
|
}, null, 2)
|
|
2278
2278
|
], 2)
|
|
2279
|
-
], 2))), 128)) :
|
|
2279
|
+
], 2))), 128)) : a("", !0),
|
|
2280
2280
|
I.variant === "list" ? (m(!0), W(Q, { key: 1 }, q(I.count, (A) => (m(), W("div", {
|
|
2281
2281
|
key: A,
|
|
2282
|
-
class:
|
|
2282
|
+
class: u(g.$style.listItem)
|
|
2283
2283
|
}, [
|
|
2284
2284
|
Y("div", {
|
|
2285
|
-
class:
|
|
2285
|
+
class: u(g.$style.avatar)
|
|
2286
2286
|
}, null, 2),
|
|
2287
2287
|
Y("div", {
|
|
2288
|
-
class:
|
|
2288
|
+
class: u(g.$style.listContent)
|
|
2289
2289
|
}, [
|
|
2290
2290
|
Y("div", {
|
|
2291
|
-
class:
|
|
2291
|
+
class: u([g.$style.line, g.$style.lineTitle])
|
|
2292
2292
|
}, null, 2),
|
|
2293
2293
|
Y("div", {
|
|
2294
|
-
class:
|
|
2294
|
+
class: u([g.$style.line, g.$style.lineText])
|
|
2295
2295
|
}, null, 2)
|
|
2296
2296
|
], 2)
|
|
2297
|
-
], 2))), 128)) :
|
|
2298
|
-
I.variant === "table" ? (m(),
|
|
2297
|
+
], 2))), 128)) : a("", !0),
|
|
2298
|
+
I.variant === "table" ? (m(), T(Z, {
|
|
2299
2299
|
key: 2,
|
|
2300
2300
|
rows: I.rows,
|
|
2301
2301
|
animated: ""
|
|
2302
|
-
}, null, 8, ["rows"])) :
|
|
2302
|
+
}, null, 8, ["rows"])) : a("", !0)
|
|
2303
2303
|
], 2);
|
|
2304
2304
|
};
|
|
2305
2305
|
}
|
|
@@ -2319,7 +2319,7 @@ const RI = /* @__PURE__ */ j({
|
|
|
2319
2319
|
lineTextShort: um
|
|
2320
2320
|
}, Mm = {
|
|
2321
2321
|
$style: nm
|
|
2322
|
-
},
|
|
2322
|
+
}, SV = /* @__PURE__ */ U(Ym, [["__cssModules", Mm]]), Km = /* @__PURE__ */ j({
|
|
2323
2323
|
__name: "CardGridSkeleton",
|
|
2324
2324
|
props: {
|
|
2325
2325
|
count: { default: 6 },
|
|
@@ -2328,27 +2328,27 @@ const RI = /* @__PURE__ */ j({
|
|
|
2328
2328
|
},
|
|
2329
2329
|
setup(I) {
|
|
2330
2330
|
return (g, C) => (m(), W("div", {
|
|
2331
|
-
class:
|
|
2331
|
+
class: u([g.$style.grid, { [g.$style.animated]: I.animated }])
|
|
2332
2332
|
}, [
|
|
2333
2333
|
(m(!0), W(Q, null, q(I.count, (Z) => (m(), W("div", {
|
|
2334
2334
|
key: Z,
|
|
2335
|
-
class:
|
|
2335
|
+
class: u(g.$style.card)
|
|
2336
2336
|
}, [
|
|
2337
2337
|
I.showThumb ? (m(), W("div", {
|
|
2338
2338
|
key: 0,
|
|
2339
|
-
class:
|
|
2340
|
-
}, null, 2)) :
|
|
2339
|
+
class: u(g.$style.thumb)
|
|
2340
|
+
}, null, 2)) : a("", !0),
|
|
2341
2341
|
Y("div", {
|
|
2342
|
-
class:
|
|
2342
|
+
class: u(g.$style.body)
|
|
2343
2343
|
}, [
|
|
2344
2344
|
Y("div", {
|
|
2345
|
-
class:
|
|
2345
|
+
class: u([g.$style.line, g.$style.title])
|
|
2346
2346
|
}, null, 2),
|
|
2347
2347
|
Y("div", {
|
|
2348
|
-
class:
|
|
2348
|
+
class: u([g.$style.line, g.$style.text])
|
|
2349
2349
|
}, null, 2),
|
|
2350
2350
|
Y("div", {
|
|
2351
|
-
class:
|
|
2351
|
+
class: u([g.$style.line, g.$style.textShort])
|
|
2352
2352
|
}, null, 2)
|
|
2353
2353
|
], 2)
|
|
2354
2354
|
], 2))), 128))
|
|
@@ -2367,7 +2367,7 @@ const RI = /* @__PURE__ */ j({
|
|
|
2367
2367
|
textShort: Lm
|
|
2368
2368
|
}, Tm = {
|
|
2369
2369
|
$style: tm
|
|
2370
|
-
},
|
|
2370
|
+
}, DV = /* @__PURE__ */ U(Km, [["__cssModules", Tm]]), xm = ["src", "alt"], jm = { name: "UserAvatar" }, Qm = /* @__PURE__ */ j({
|
|
2371
2371
|
...jm,
|
|
2372
2372
|
props: {
|
|
2373
2373
|
name: { default: "" },
|
|
@@ -2376,7 +2376,7 @@ const RI = /* @__PURE__ */ j({
|
|
|
2376
2376
|
shape: { default: "circle" }
|
|
2377
2377
|
},
|
|
2378
2378
|
setup(I) {
|
|
2379
|
-
const g = I, C =
|
|
2379
|
+
const g = I, C = n(() => g.name ? g.name.charAt(0).toUpperCase() : "?"), Z = n(() => !!g.src), A = n(() => {
|
|
2380
2380
|
const d = g.size === 24 ? "var(--avatar-size-sm, 24px)" : g.size === 32 ? "var(--avatar-size-md, 32px)" : g.size === 40 ? "var(--avatar-size-lg, 40px)" : g.size === 48 ? "var(--avatar-size-xl, 48px)" : `${g.size}px`;
|
|
2381
2381
|
return {
|
|
2382
2382
|
width: d,
|
|
@@ -2385,18 +2385,18 @@ const RI = /* @__PURE__ */ j({
|
|
|
2385
2385
|
};
|
|
2386
2386
|
});
|
|
2387
2387
|
return (d, l) => (m(), W("div", {
|
|
2388
|
-
class:
|
|
2388
|
+
class: u([d.$style.avatar, I.shape === "square" ? d.$style.square : d.$style.circle]),
|
|
2389
2389
|
style: dI(A.value)
|
|
2390
2390
|
}, [
|
|
2391
2391
|
Z.value ? (m(), W("img", {
|
|
2392
2392
|
key: 0,
|
|
2393
2393
|
src: I.src,
|
|
2394
2394
|
alt: I.name,
|
|
2395
|
-
class:
|
|
2395
|
+
class: u(d.$style.img),
|
|
2396
2396
|
onError: l[0] || (l[0] = (c) => d.$emit("error", c))
|
|
2397
2397
|
}, null, 42, xm)) : (m(), W("span", {
|
|
2398
2398
|
key: 1,
|
|
2399
|
-
class:
|
|
2399
|
+
class: u(d.$style.initial)
|
|
2400
2400
|
}, h(C.value), 3))
|
|
2401
2401
|
], 6));
|
|
2402
2402
|
}
|
|
@@ -2408,7 +2408,7 @@ const RI = /* @__PURE__ */ j({
|
|
|
2408
2408
|
initial: Pm
|
|
2409
2409
|
}, fm = {
|
|
2410
2410
|
$style: rm
|
|
2411
|
-
},
|
|
2411
|
+
}, FV = /* @__PURE__ */ U(Qm, [["__cssModules", fm]]), qm = ["aria-label"], _m = {
|
|
2412
2412
|
class: "apf-user-panel__avatar",
|
|
2413
2413
|
"aria-hidden": "true"
|
|
2414
2414
|
}, $m = { class: "apf-user-panel__name" }, I0 = { class: "apf-user-panel__body" }, g0 = { class: "apf-user-panel__header" }, C0 = {
|
|
@@ -2430,15 +2430,15 @@ const RI = /* @__PURE__ */ j({
|
|
|
2430
2430
|
},
|
|
2431
2431
|
emits: ["logout"],
|
|
2432
2432
|
setup(I, { emit: g }) {
|
|
2433
|
-
const C = I, Z = g, A =
|
|
2433
|
+
const C = I, Z = g, A = n(
|
|
2434
2434
|
() => {
|
|
2435
2435
|
var c, G;
|
|
2436
2436
|
return ((c = C.user) == null ? void 0 : c.displayName) || ((G = C.user) == null ? void 0 : G.username) || "用户";
|
|
2437
2437
|
}
|
|
2438
|
-
), d =
|
|
2438
|
+
), d = n(() => {
|
|
2439
2439
|
const c = A.value.trim();
|
|
2440
2440
|
return c ? c.charAt(0).toUpperCase() : "?";
|
|
2441
|
-
}), l =
|
|
2441
|
+
}), l = n(() => {
|
|
2442
2442
|
const c = C.user;
|
|
2443
2443
|
if (!c) return [];
|
|
2444
2444
|
const G = [
|
|
@@ -2449,7 +2449,7 @@ const RI = /* @__PURE__ */ j({
|
|
|
2449
2449
|
return (c, G) => {
|
|
2450
2450
|
const b = _("el-popover");
|
|
2451
2451
|
return m(), W("div", {
|
|
2452
|
-
class:
|
|
2452
|
+
class: u(["apf-user-panel", { "apf-user-panel--block": I.block }])
|
|
2453
2453
|
}, [
|
|
2454
2454
|
II(b, {
|
|
2455
2455
|
placement: I.placement,
|
|
@@ -2464,7 +2464,7 @@ const RI = /* @__PURE__ */ j({
|
|
|
2464
2464
|
reference: O(() => [
|
|
2465
2465
|
Y("button", {
|
|
2466
2466
|
type: "button",
|
|
2467
|
-
class:
|
|
2467
|
+
class: u(["apf-user-panel__trigger", { "apf-user-panel__trigger--block": I.block }]),
|
|
2468
2468
|
"aria-label": A.value
|
|
2469
2469
|
}, [
|
|
2470
2470
|
Y("span", _m, h(d.value), 1),
|
|
@@ -2479,7 +2479,7 @@ const RI = /* @__PURE__ */ j({
|
|
|
2479
2479
|
Y("span", C0, h(d.value), 1),
|
|
2480
2480
|
Y("div", A0, [
|
|
2481
2481
|
Y("div", Z0, h(A.value), 1),
|
|
2482
|
-
(i = I.user) != null && i.username ? (m(), W("div", l0, "@" + h(I.user.username), 1)) :
|
|
2482
|
+
(i = I.user) != null && i.username ? (m(), W("div", l0, "@" + h(I.user.username), 1)) : a("", !0)
|
|
2483
2483
|
])
|
|
2484
2484
|
]),
|
|
2485
2485
|
l.value.length > 0 ? (m(), W("dl", d0, [
|
|
@@ -2490,14 +2490,14 @@ const RI = /* @__PURE__ */ j({
|
|
|
2490
2490
|
Y("dt", null, h(w.label), 1),
|
|
2491
2491
|
Y("dd", null, h(w.value), 1)
|
|
2492
2492
|
]))), 128))
|
|
2493
|
-
])) :
|
|
2493
|
+
])) : a("", !0),
|
|
2494
2494
|
G[1] || (G[1] = Y("div", { class: "apf-user-panel__divider" }, null, -1)),
|
|
2495
2495
|
Y("button", {
|
|
2496
2496
|
type: "button",
|
|
2497
2497
|
class: "apf-user-panel__logout",
|
|
2498
2498
|
onClick: G[0] || (G[0] = (w) => Z("logout"))
|
|
2499
2499
|
}, [
|
|
2500
|
-
II($(
|
|
2500
|
+
II($(XI), {
|
|
2501
2501
|
name: "switch-button",
|
|
2502
2502
|
size: 14
|
|
2503
2503
|
}),
|
|
@@ -2511,7 +2511,7 @@ const RI = /* @__PURE__ */ j({
|
|
|
2511
2511
|
], 2);
|
|
2512
2512
|
};
|
|
2513
2513
|
}
|
|
2514
|
-
}),
|
|
2514
|
+
}), pV = /* @__PURE__ */ U(G0, [["__scopeId", "data-v-1bb71f74"]]), c0 = { class: "apf-slider-captcha__panel" }, b0 = {
|
|
2515
2515
|
key: 0,
|
|
2516
2516
|
class: "apf-slider-captcha__placeholder"
|
|
2517
2517
|
}, m0 = {
|
|
@@ -2531,7 +2531,7 @@ const RI = /* @__PURE__ */ j({
|
|
|
2531
2531
|
},
|
|
2532
2532
|
emits: ["update:modelValue"],
|
|
2533
2533
|
setup(I, { expose: g, emit: C }) {
|
|
2534
|
-
const Z = I, A = C, d = t(!1), l = t(null), c = t(null), G = t(0), b = t(!1), i = t(!1), w = t(!1), s = t(0),
|
|
2534
|
+
const Z = I, A = C, d = t(!1), l = t(null), c = t(null), G = t(0), b = t(!1), i = t(!1), w = t(!1), s = t(0), R = t(0), V = n(() => bZ - mZ);
|
|
2535
2535
|
function X(y) {
|
|
2536
2536
|
var p;
|
|
2537
2537
|
A("update:modelValue", {
|
|
@@ -2556,10 +2556,10 @@ const RI = /* @__PURE__ */ j({
|
|
|
2556
2556
|
return Math.max(0, Math.min(V.value, y));
|
|
2557
2557
|
}
|
|
2558
2558
|
function k(y) {
|
|
2559
|
-
i.value || !c.value || d.value || (b.value = !0, s.value = y.clientX,
|
|
2559
|
+
i.value || !c.value || d.value || (b.value = !0, s.value = y.clientX, R.value = G.value, y.currentTarget.setPointerCapture(y.pointerId));
|
|
2560
2560
|
}
|
|
2561
2561
|
function L(y) {
|
|
2562
|
-
b.value && (G.value = S(
|
|
2562
|
+
b.value && (G.value = S(R.value + (y.clientX - s.value)));
|
|
2563
2563
|
}
|
|
2564
2564
|
function K() {
|
|
2565
2565
|
var y;
|
|
@@ -2590,7 +2590,7 @@ const RI = /* @__PURE__ */ j({
|
|
|
2590
2590
|
};
|
|
2591
2591
|
}
|
|
2592
2592
|
}), (y, p) => (m(), W("div", {
|
|
2593
|
-
class:
|
|
2593
|
+
class: u(["apf-slider-captcha", { "apf-slider-captcha--shake": w.value }])
|
|
2594
2594
|
}, [
|
|
2595
2595
|
Y("div", c0, [
|
|
2596
2596
|
d.value ? (m(), W("div", b0, "加载验证码…")) : l.value ? (m(), W("div", m0, [
|
|
@@ -2625,15 +2625,15 @@ const RI = /* @__PURE__ */ j({
|
|
|
2625
2625
|
"aria-label": "刷新验证码",
|
|
2626
2626
|
onClick: o
|
|
2627
2627
|
}, [
|
|
2628
|
-
II($(
|
|
2628
|
+
II($(XI), {
|
|
2629
2629
|
name: "refresh-right",
|
|
2630
2630
|
size: 14
|
|
2631
2631
|
})
|
|
2632
2632
|
])
|
|
2633
|
-
], 4)) :
|
|
2633
|
+
], 4)) : a("", !0)
|
|
2634
2634
|
]),
|
|
2635
2635
|
Y("div", {
|
|
2636
|
-
class:
|
|
2636
|
+
class: u(["apf-slider-captcha__track", {
|
|
2637
2637
|
"apf-slider-captcha__track--ok": i.value,
|
|
2638
2638
|
"apf-slider-captcha__track--active": b.value
|
|
2639
2639
|
}])
|
|
@@ -2642,16 +2642,16 @@ const RI = /* @__PURE__ */ j({
|
|
|
2642
2642
|
class: "apf-slider-captcha__fill",
|
|
2643
2643
|
style: dI({ width: `${G.value + mZ / 2}px` })
|
|
2644
2644
|
}, null, 4),
|
|
2645
|
-
!i.value && G.value < 8 ? (m(), W("span", B0, "向右拖动滑块完成验证")) : i.value ? (m(), W("span", Y0, "已完成,提交时校验")) :
|
|
2645
|
+
!i.value && G.value < 8 ? (m(), W("span", B0, "向右拖动滑块完成验证")) : i.value ? (m(), W("span", Y0, "已完成,提交时校验")) : a("", !0),
|
|
2646
2646
|
Y("div", {
|
|
2647
|
-
class:
|
|
2647
|
+
class: u(["apf-slider-captcha__knob", { "apf-slider-captcha__knob--ok": i.value }]),
|
|
2648
2648
|
style: dI({ left: `${G.value}px` }),
|
|
2649
2649
|
onPointerdown: k,
|
|
2650
2650
|
onPointermove: L,
|
|
2651
2651
|
onPointerup: K,
|
|
2652
2652
|
onPointercancel: K
|
|
2653
2653
|
}, [
|
|
2654
|
-
II($(
|
|
2654
|
+
II($(XI), {
|
|
2655
2655
|
name: i.value ? "check" : "arrow-right",
|
|
2656
2656
|
size: 14
|
|
2657
2657
|
}, null, 8, ["name"])
|
|
@@ -2659,7 +2659,7 @@ const RI = /* @__PURE__ */ j({
|
|
|
2659
2659
|
], 2)
|
|
2660
2660
|
], 2));
|
|
2661
2661
|
}
|
|
2662
|
-
}),
|
|
2662
|
+
}), JV = /* @__PURE__ */ U(s0, [["__scopeId", "data-v-c7d9d170"]]), w0 = { class: "apf-time-range-picker__panel" }, V0 = { class: "apf-time-range-picker__actions" }, N0 = /* @__PURE__ */ j({
|
|
2663
2663
|
__name: "TimeRangePicker",
|
|
2664
2664
|
props: {
|
|
2665
2665
|
modelValue: {},
|
|
@@ -2688,28 +2688,28 @@ const RI = /* @__PURE__ */ j({
|
|
|
2688
2688
|
"7d": 10080 * 60 * 1e3,
|
|
2689
2689
|
"30d": 720 * 60 * 60 * 1e3
|
|
2690
2690
|
}, A = I, d = g, l = t(!1), c = t(null);
|
|
2691
|
-
NI(l, (
|
|
2692
|
-
if (!
|
|
2691
|
+
NI(l, (R) => {
|
|
2692
|
+
if (!R) return;
|
|
2693
2693
|
const { preset: V, start: X, end: o } = A.modelValue;
|
|
2694
2694
|
V === "custom" && X && o && (c.value = [new Date(X), new Date(o)]);
|
|
2695
2695
|
});
|
|
2696
|
-
const G =
|
|
2697
|
-
() => A.presets.filter((
|
|
2696
|
+
const G = n(
|
|
2697
|
+
() => A.presets.filter((R) => R !== "custom")
|
|
2698
2698
|
);
|
|
2699
|
-
function b(
|
|
2700
|
-
if (!
|
|
2699
|
+
function b(R) {
|
|
2700
|
+
if (!R.start || !R.end) return "自定义";
|
|
2701
2701
|
const V = (X) => {
|
|
2702
2702
|
const o = new Date(X), S = String(o.getMonth() + 1).padStart(2, "0"), k = String(o.getDate()).padStart(2, "0"), L = String(o.getHours()).padStart(2, "0"), K = String(o.getMinutes()).padStart(2, "0");
|
|
2703
2703
|
return `${S}-${k} ${L}:${K}`;
|
|
2704
2704
|
};
|
|
2705
|
-
return `自定义 ${V(
|
|
2705
|
+
return `自定义 ${V(R.start)} ~ ${V(R.end)}`;
|
|
2706
2706
|
}
|
|
2707
|
-
const i =
|
|
2707
|
+
const i = n(
|
|
2708
2708
|
() => A.modelValue.preset === "custom" ? b(A.modelValue) : "自定义"
|
|
2709
2709
|
);
|
|
2710
|
-
function w(
|
|
2711
|
-
const V = Date.now(), X = V - Z[
|
|
2712
|
-
preset:
|
|
2710
|
+
function w(R) {
|
|
2711
|
+
const V = Date.now(), X = V - Z[R], o = {
|
|
2712
|
+
preset: R,
|
|
2713
2713
|
start: new Date(X).toISOString(),
|
|
2714
2714
|
end: new Date(V).toISOString()
|
|
2715
2715
|
};
|
|
@@ -2717,21 +2717,21 @@ const RI = /* @__PURE__ */ j({
|
|
|
2717
2717
|
}
|
|
2718
2718
|
function s() {
|
|
2719
2719
|
if (!c.value) return;
|
|
2720
|
-
const [
|
|
2720
|
+
const [R, V] = c.value, X = {
|
|
2721
2721
|
preset: "custom",
|
|
2722
|
-
start:
|
|
2722
|
+
start: R.toISOString(),
|
|
2723
2723
|
end: V.toISOString()
|
|
2724
2724
|
};
|
|
2725
2725
|
d("update:modelValue", X), d("change", X), l.value = !1;
|
|
2726
2726
|
}
|
|
2727
|
-
return (
|
|
2727
|
+
return (R, V) => {
|
|
2728
2728
|
const X = _("el-button"), o = _("el-button-group"), S = _("el-date-picker"), k = _("el-popover");
|
|
2729
2729
|
return m(), W("div", {
|
|
2730
|
-
class:
|
|
2730
|
+
class: u(["apf-time-range-picker", [`apf-time-range-picker--${I.size}`]])
|
|
2731
2731
|
}, [
|
|
2732
|
-
I.showPresets ? (m(),
|
|
2732
|
+
I.showPresets ? (m(), T(o, { key: 0 }, {
|
|
2733
2733
|
default: O(() => [
|
|
2734
|
-
(m(!0), W(Q, null, q(G.value, (L) => (m(),
|
|
2734
|
+
(m(!0), W(Q, null, q(G.value, (L) => (m(), T(X, {
|
|
2735
2735
|
key: L,
|
|
2736
2736
|
size: I.size,
|
|
2737
2737
|
disabled: I.disabled,
|
|
@@ -2745,8 +2745,8 @@ const RI = /* @__PURE__ */ j({
|
|
|
2745
2745
|
}, 1032, ["size", "disabled", "type", "onClick"]))), 128))
|
|
2746
2746
|
]),
|
|
2747
2747
|
_: 1
|
|
2748
|
-
})) :
|
|
2749
|
-
I.allowCustom ? (m(),
|
|
2748
|
+
})) : a("", !0),
|
|
2749
|
+
I.allowCustom ? (m(), T(k, {
|
|
2750
2750
|
key: 1,
|
|
2751
2751
|
visible: l.value,
|
|
2752
2752
|
"onUpdate:visible": V[2] || (V[2] = (L) => l.value = L),
|
|
@@ -2805,11 +2805,11 @@ const RI = /* @__PURE__ */ j({
|
|
|
2805
2805
|
])
|
|
2806
2806
|
]),
|
|
2807
2807
|
_: 1
|
|
2808
|
-
}, 8, ["visible", "disabled"])) :
|
|
2808
|
+
}, 8, ["visible", "disabled"])) : a("", !0)
|
|
2809
2809
|
], 2);
|
|
2810
2810
|
};
|
|
2811
2811
|
}
|
|
2812
|
-
}),
|
|
2812
|
+
}), zV = /* @__PURE__ */ U(N0, [["__scopeId", "data-v-cb3adbf3"]]), X0 = {
|
|
2813
2813
|
key: 0,
|
|
2814
2814
|
class: "apf-content-panel__head"
|
|
2815
2815
|
}, o0 = {
|
|
@@ -2827,17 +2827,17 @@ const RI = /* @__PURE__ */ j({
|
|
|
2827
2827
|
},
|
|
2828
2828
|
setup(I) {
|
|
2829
2829
|
return (g, C) => (m(), W("section", {
|
|
2830
|
-
class:
|
|
2830
|
+
class: u(["apf-content-panel", {
|
|
2831
2831
|
"apf-content-panel--flush": I.flush,
|
|
2832
2832
|
"apf-content-panel--fill": I.fill
|
|
2833
2833
|
}])
|
|
2834
2834
|
}, [
|
|
2835
2835
|
I.title || g.$slots.extra ? (m(), W("header", X0, [
|
|
2836
|
-
I.title ? (m(), W("span", o0, h(I.title), 1)) :
|
|
2836
|
+
I.title ? (m(), W("span", o0, h(I.title), 1)) : a("", !0),
|
|
2837
2837
|
g.$slots.extra ? (m(), W("div", h0, [
|
|
2838
2838
|
CI(g.$slots, "extra", {}, void 0, !0)
|
|
2839
|
-
])) :
|
|
2840
|
-
])) :
|
|
2839
|
+
])) : a("", !0)
|
|
2840
|
+
])) : a("", !0),
|
|
2841
2841
|
Y("div", a0, [
|
|
2842
2842
|
CI(g.$slots, "default", {}, void 0, !0)
|
|
2843
2843
|
])
|
|
@@ -2873,7 +2873,7 @@ const RI = /* @__PURE__ */ j({
|
|
|
2873
2873
|
splitLine: "#EBEDF3",
|
|
2874
2874
|
tooltipBg: "#FFFFFF",
|
|
2875
2875
|
tooltipText: "#303133"
|
|
2876
|
-
},
|
|
2876
|
+
}, kV = {
|
|
2877
2877
|
title: "#303133",
|
|
2878
2878
|
primary: "#333333",
|
|
2879
2879
|
regular: "#606266",
|
|
@@ -2882,7 +2882,7 @@ const RI = /* @__PURE__ */ j({
|
|
|
2882
2882
|
placeholder: "#969FA8",
|
|
2883
2883
|
disabled: "#C0C4CC",
|
|
2884
2884
|
inverse: "#FFFFFF"
|
|
2885
|
-
},
|
|
2885
|
+
}, eV = {
|
|
2886
2886
|
10: "10px",
|
|
2887
2887
|
11: "11px",
|
|
2888
2888
|
12: "12px",
|
|
@@ -2895,7 +2895,7 @@ const RI = /* @__PURE__ */ j({
|
|
|
2895
2895
|
22: "22px",
|
|
2896
2896
|
24: "24px",
|
|
2897
2897
|
28: "28px"
|
|
2898
|
-
},
|
|
2898
|
+
}, LV = {
|
|
2899
2899
|
xs: "4px",
|
|
2900
2900
|
sm: "8px",
|
|
2901
2901
|
md: "16px",
|
|
@@ -2906,32 +2906,32 @@ const RI = /* @__PURE__ */ j({
|
|
|
2906
2906
|
10: "10px",
|
|
2907
2907
|
12: "12px",
|
|
2908
2908
|
20: "20px"
|
|
2909
|
-
},
|
|
2909
|
+
}, tV = {
|
|
2910
2910
|
xs: "24px",
|
|
2911
2911
|
sm: "28px",
|
|
2912
2912
|
md: "32px",
|
|
2913
2913
|
lg: "40px",
|
|
2914
2914
|
xl: "44px"
|
|
2915
|
-
},
|
|
2915
|
+
}, TV = {
|
|
2916
2916
|
header: "56px",
|
|
2917
2917
|
conversationHeader: "68px",
|
|
2918
2918
|
dialogFooter: "60px",
|
|
2919
2919
|
toolbar: "48px",
|
|
2920
2920
|
tabs: "40px",
|
|
2921
2921
|
listRow: "48px"
|
|
2922
|
-
},
|
|
2922
|
+
}, xV = {
|
|
2923
2923
|
xs: "12px",
|
|
2924
2924
|
sm: "14px",
|
|
2925
2925
|
md: "16px",
|
|
2926
2926
|
lg: "20px",
|
|
2927
2927
|
xl: "24px"
|
|
2928
|
-
},
|
|
2928
|
+
}, jV = {
|
|
2929
2929
|
paddingX: "24px",
|
|
2930
2930
|
paddingY: "24px",
|
|
2931
2931
|
headerPaddingTop: "28px",
|
|
2932
2932
|
sidebarWidth: "240px",
|
|
2933
2933
|
sidebarWidthCollapsed: "64px"
|
|
2934
|
-
},
|
|
2934
|
+
}, QV = {
|
|
2935
2935
|
sm: "2px",
|
|
2936
2936
|
md: "4px",
|
|
2937
2937
|
6: "6px",
|
|
@@ -2939,11 +2939,11 @@ const RI = /* @__PURE__ */ j({
|
|
|
2939
2939
|
lg: "10px",
|
|
2940
2940
|
xl: "12px",
|
|
2941
2941
|
full: "999px"
|
|
2942
|
-
},
|
|
2942
|
+
}, UV = {
|
|
2943
2943
|
fieldWidth: "220px",
|
|
2944
2944
|
labelWidth: "96px",
|
|
2945
2945
|
fieldGap: "6px"
|
|
2946
|
-
},
|
|
2946
|
+
}, vV = {
|
|
2947
2947
|
sm: "24px",
|
|
2948
2948
|
md: "32px",
|
|
2949
2949
|
lg: "40px",
|
|
@@ -2952,11 +2952,11 @@ const RI = /* @__PURE__ */ j({
|
|
|
2952
2952
|
sm: "0 1px 2px rgba(0, 0, 0, 0.05)",
|
|
2953
2953
|
md: "0 4px 12px rgba(0, 0, 0, 0.08)",
|
|
2954
2954
|
lg: "0 8px 24px rgba(0, 0, 0, 0.12)"
|
|
2955
|
-
},
|
|
2955
|
+
}, OV = {
|
|
2956
2956
|
fast: "0.15s",
|
|
2957
2957
|
normal: "0.25s",
|
|
2958
2958
|
slow: "0.35s"
|
|
2959
|
-
},
|
|
2959
|
+
}, EV = {
|
|
2960
2960
|
dropdown: 1e3,
|
|
2961
2961
|
sticky: 1020,
|
|
2962
2962
|
fixed: 1030,
|
|
@@ -3063,12 +3063,12 @@ const D0 = {
|
|
|
3063
3063
|
setup(I, { emit: g }) {
|
|
3064
3064
|
const C = I, Z = g, A = t(null), d = t(!1);
|
|
3065
3065
|
let l = null, c = null, G = null, b = null;
|
|
3066
|
-
const i =
|
|
3066
|
+
const i = n(
|
|
3067
3067
|
() => C.height ?? (C.variant === "spark" ? 32 : 280)
|
|
3068
|
-
), w =
|
|
3068
|
+
), w = n(() => C.series.some((k) => k.data.length > 0)), s = n(
|
|
3069
3069
|
() => !C.loading && !d.value && w.value
|
|
3070
3070
|
);
|
|
3071
|
-
function
|
|
3071
|
+
function R() {
|
|
3072
3072
|
const k = C.variant === "spark", L = C.type === "area" ? "line" : C.type, K = C.series.flatMap((J) => J.data.map((H) => H[0])), e = K.length ? Math.max(...K) - Math.min(...K) : 0, y = C.series.map((J, H) => {
|
|
3073
3073
|
const z = J.color ?? JI.series[H % JI.series.length], D = C.type === "area" || J.area;
|
|
3074
3074
|
return {
|
|
@@ -3155,10 +3155,10 @@ const D0 = {
|
|
|
3155
3155
|
d.value = !0;
|
|
3156
3156
|
return;
|
|
3157
3157
|
}
|
|
3158
|
-
d.value = !1, await $I(), !(!A.value || !s.value) && (V(), l = c.init(A.value), b = (k) => Z("chart-click", k), l.on("click", b), l.setOption(
|
|
3158
|
+
d.value = !1, await $I(), !(!A.value || !s.value) && (V(), l = c.init(A.value), b = (k) => Z("chart-click", k), l.on("click", b), l.setOption(R(), { notMerge: !0 }), G = new ResizeObserver(() => l == null ? void 0 : l.resize()), G.observe(A.value));
|
|
3159
3159
|
}
|
|
3160
3160
|
function o() {
|
|
3161
|
-
!l || d.value || !s.value || l.setOption(
|
|
3161
|
+
!l || d.value || !s.value || l.setOption(R(), {
|
|
3162
3162
|
notMerge: !1,
|
|
3163
3163
|
replaceMerge: ["series"]
|
|
3164
3164
|
});
|
|
@@ -3194,7 +3194,7 @@ const D0 = {
|
|
|
3194
3194
|
S();
|
|
3195
3195
|
}), mg(() => {
|
|
3196
3196
|
V();
|
|
3197
|
-
}), (k, L) => I.variant === "full" ? (m(),
|
|
3197
|
+
}), (k, L) => I.variant === "full" ? (m(), T($(H0), {
|
|
3198
3198
|
key: 0,
|
|
3199
3199
|
title: I.title,
|
|
3200
3200
|
class: "apf-metric-chart"
|
|
@@ -3204,7 +3204,7 @@ const D0 = {
|
|
|
3204
3204
|
key: 0,
|
|
3205
3205
|
class: "apf-metric-chart__loading",
|
|
3206
3206
|
style: dI({ height: `${i.value}px` })
|
|
3207
|
-
}, " 加载中… ", 4)) : d.value ? (m(),
|
|
3207
|
+
}, " 加载中… ", 4)) : d.value ? (m(), T($(cg), {
|
|
3208
3208
|
key: 1,
|
|
3209
3209
|
title: "需要安装 echarts",
|
|
3210
3210
|
description: "pnpm add echarts"
|
|
@@ -3237,7 +3237,7 @@ const D0 = {
|
|
|
3237
3237
|
key: 0,
|
|
3238
3238
|
class: "apf-metric-chart__loading",
|
|
3239
3239
|
style: dI({ height: `${i.value}px` })
|
|
3240
|
-
}, " … ", 4)) : d.value ? (m(),
|
|
3240
|
+
}, " … ", 4)) : d.value ? (m(), T($(cg), {
|
|
3241
3241
|
key: 1,
|
|
3242
3242
|
title: "需要 echarts",
|
|
3243
3243
|
description: ""
|
|
@@ -3254,7 +3254,7 @@ const D0 = {
|
|
|
3254
3254
|
}, null, 4))
|
|
3255
3255
|
]));
|
|
3256
3256
|
}
|
|
3257
|
-
}),
|
|
3257
|
+
}), PV = /* @__PURE__ */ U(F0, [["__scopeId", "data-v-a72b4e2b"]]), p0 = {
|
|
3258
3258
|
key: 0,
|
|
3259
3259
|
class: "apf-stat-card__bar"
|
|
3260
3260
|
}, J0 = {
|
|
@@ -3286,16 +3286,16 @@ const D0 = {
|
|
|
3286
3286
|
},
|
|
3287
3287
|
emits: ["click"],
|
|
3288
3288
|
setup(I, { emit: g }) {
|
|
3289
|
-
const C = I, Z = g, A =
|
|
3289
|
+
const C = I, Z = g, A = n(() => {
|
|
3290
3290
|
const b = C.trend;
|
|
3291
3291
|
if (!b || b.direction === "flat") return "var(--text-color-muted)";
|
|
3292
3292
|
const i = b.positiveIsGood !== !1;
|
|
3293
3293
|
return (b.direction === "up" ? i : !i) ? "var(--color-success)" : "var(--color-danger)";
|
|
3294
|
-
}), d =
|
|
3294
|
+
}), d = n(() => {
|
|
3295
3295
|
var i;
|
|
3296
3296
|
const b = (i = C.trend) == null ? void 0 : i.direction;
|
|
3297
3297
|
return b === "up" ? "↑" : b === "down" ? "↓" : "→";
|
|
3298
|
-
}), l =
|
|
3298
|
+
}), l = n(() => {
|
|
3299
3299
|
const b = C.sparkline;
|
|
3300
3300
|
if (!(b != null && b.length)) return "";
|
|
3301
3301
|
const i = 80, w = 32, s = Math.min(...b), V = Math.max(...b) - s || 1;
|
|
@@ -3303,12 +3303,12 @@ const D0 = {
|
|
|
3303
3303
|
const S = o / Math.max(b.length - 1, 1) * i, k = w - (X - s) / V * (w - 4) - 2;
|
|
3304
3304
|
return `${o === 0 ? "M" : "L"}${S.toFixed(1)},${k.toFixed(1)}`;
|
|
3305
3305
|
}).join(" ");
|
|
3306
|
-
}), c =
|
|
3306
|
+
}), c = n(() => C.status === "healthy" ? "var(--color-success)" : C.status === "warning" ? "var(--color-warning)" : C.status === "error" ? "var(--color-danger)" : "var(--color-primary)");
|
|
3307
3307
|
function G(b) {
|
|
3308
3308
|
C.to || Z("click", b);
|
|
3309
3309
|
}
|
|
3310
|
-
return (b, i) => (m(),
|
|
3311
|
-
class:
|
|
3310
|
+
return (b, i) => (m(), T(OZ(I.to ? "a" : "div"), {
|
|
3311
|
+
class: u(["apf-stat-card", [
|
|
3312
3312
|
I.status ? `apf-stat-card--${I.status}` : "",
|
|
3313
3313
|
{ "apf-stat-card--clickable": !!I.to }
|
|
3314
3314
|
]]),
|
|
@@ -3321,7 +3321,7 @@ const D0 = {
|
|
|
3321
3321
|
default: O(() => {
|
|
3322
3322
|
var w;
|
|
3323
3323
|
return [
|
|
3324
|
-
I.status ? (m(), W("div", p0)) :
|
|
3324
|
+
I.status ? (m(), W("div", p0)) : a("", !0),
|
|
3325
3325
|
I.loading ? (m(), W("div", J0, [...i[1] || (i[1] = [
|
|
3326
3326
|
Y("div", { class: "apf-stat-card__skel apf-stat-card__skel--label" }, null, -1),
|
|
3327
3327
|
Y("div", { class: "apf-stat-card__skel apf-stat-card__skel--value" }, null, -1),
|
|
@@ -3330,7 +3330,7 @@ const D0 = {
|
|
|
3330
3330
|
Y("div", k0, h(I.label), 1),
|
|
3331
3331
|
Y("div", e0, [
|
|
3332
3332
|
Y("span", L0, h(I.value), 1),
|
|
3333
|
-
I.unit ? (m(), W("span", t0, h(I.unit), 1)) :
|
|
3333
|
+
I.unit ? (m(), W("span", t0, h(I.unit), 1)) : a("", !0),
|
|
3334
3334
|
I.trend ? (m(), W("span", {
|
|
3335
3335
|
key: 1,
|
|
3336
3336
|
class: "apf-stat-card__trend",
|
|
@@ -3339,8 +3339,8 @@ const D0 = {
|
|
|
3339
3339
|
gI(h(d.value) + " ", 1),
|
|
3340
3340
|
I.trend.percent != null ? (m(), W(Q, { key: 0 }, [
|
|
3341
3341
|
gI(h(I.trend.percent) + "%", 1)
|
|
3342
|
-
], 64)) :
|
|
3343
|
-
], 4)) :
|
|
3342
|
+
], 64)) : a("", !0)
|
|
3343
|
+
], 4)) : a("", !0)
|
|
3344
3344
|
]),
|
|
3345
3345
|
(w = I.sparkline) != null && w.length ? (m(), W("svg", T0, [
|
|
3346
3346
|
Y("path", {
|
|
@@ -3351,14 +3351,14 @@ const D0 = {
|
|
|
3351
3351
|
"stroke-linecap": "round",
|
|
3352
3352
|
"stroke-linejoin": "round"
|
|
3353
3353
|
}, null, 8, x0)
|
|
3354
|
-
])) :
|
|
3354
|
+
])) : a("", !0)
|
|
3355
3355
|
]))
|
|
3356
3356
|
];
|
|
3357
3357
|
}),
|
|
3358
3358
|
_: 1
|
|
3359
3359
|
}, 40, ["class", "href", "role", "tabindex"]));
|
|
3360
3360
|
}
|
|
3361
|
-
}),
|
|
3361
|
+
}), rV = /* @__PURE__ */ U(j0, [["__scopeId", "data-v-3e48d232"]]), Q0 = /* @__PURE__ */ j({
|
|
3362
3362
|
__name: "SeverityBadge",
|
|
3363
3363
|
props: {
|
|
3364
3364
|
severity: {},
|
|
@@ -3366,7 +3366,7 @@ const D0 = {
|
|
|
3366
3366
|
size: { default: "default" }
|
|
3367
3367
|
},
|
|
3368
3368
|
setup(I) {
|
|
3369
|
-
const g = I, C =
|
|
3369
|
+
const g = I, C = n(
|
|
3370
3370
|
() => g.pulse ?? g.severity === "critical"
|
|
3371
3371
|
), Z = {
|
|
3372
3372
|
critical: "严重",
|
|
@@ -3374,7 +3374,7 @@ const D0 = {
|
|
|
3374
3374
|
info: "信息"
|
|
3375
3375
|
};
|
|
3376
3376
|
return (A, d) => (m(), W("span", {
|
|
3377
|
-
class:
|
|
3377
|
+
class: u(["apf-severity-badge", [
|
|
3378
3378
|
`apf-severity-badge--${I.severity}`,
|
|
3379
3379
|
`apf-severity-badge--${I.size}`,
|
|
3380
3380
|
{ "apf-severity-badge--pulse": C.value }
|
|
@@ -3387,7 +3387,7 @@ const D0 = {
|
|
|
3387
3387
|
Y("span", null, h(Z[I.severity]), 1)
|
|
3388
3388
|
], 2));
|
|
3389
3389
|
}
|
|
3390
|
-
}),
|
|
3390
|
+
}), fV = /* @__PURE__ */ U(Q0, [["__scopeId", "data-v-e6c92ddb"]]), U0 = ["onClick"], v0 = { class: "apf-service-grid__body" }, O0 = { class: "apf-service-grid__name" }, E0 = {
|
|
3391
3391
|
key: 0,
|
|
3392
3392
|
class: "apf-service-grid__metrics"
|
|
3393
3393
|
}, P0 = { key: 0 }, r0 = { key: 1 }, f0 = { key: 2 }, q0 = /* @__PURE__ */ j({
|
|
@@ -3404,7 +3404,7 @@ const D0 = {
|
|
|
3404
3404
|
warning: "告警",
|
|
3405
3405
|
error: "故障",
|
|
3406
3406
|
unknown: "未知"
|
|
3407
|
-
}, Z = I, A = g, d =
|
|
3407
|
+
}, Z = I, A = g, d = n(() => Z.columns && Z.columns > 0 ? {
|
|
3408
3408
|
gridTemplateColumns: `repeat(${Z.columns}, minmax(0, 1fr))`
|
|
3409
3409
|
} : {
|
|
3410
3410
|
gridTemplateColumns: "repeat(auto-fill, minmax(200px, 1fr))"
|
|
@@ -3431,33 +3431,33 @@ const D0 = {
|
|
|
3431
3431
|
(m(!0), W(Q, null, q(I.services, (b) => (m(), W("button", {
|
|
3432
3432
|
key: b.id,
|
|
3433
3433
|
type: "button",
|
|
3434
|
-
class:
|
|
3434
|
+
class: u(["apf-service-grid__item", `apf-service-grid__item--${b.status}`]),
|
|
3435
3435
|
onClick: (i) => A("service-click", b)
|
|
3436
3436
|
}, [
|
|
3437
3437
|
G[0] || (G[0] = Y("div", { class: "apf-service-grid__bar" }, null, -1)),
|
|
3438
3438
|
Y("div", v0, [
|
|
3439
3439
|
Y("div", O0, h(b.name), 1),
|
|
3440
3440
|
Y("div", {
|
|
3441
|
-
class:
|
|
3441
|
+
class: u(["apf-service-grid__status", `apf-service-grid__status--${b.status}`])
|
|
3442
3442
|
}, h(C[b.status]), 3),
|
|
3443
3443
|
b.metrics ? (m(), W("div", E0, [
|
|
3444
|
-
b.metrics.errorRate != null ? (m(), W("span", P0, " err " + h(b.metrics.errorRate.toFixed(1)) + "% ", 1)) :
|
|
3445
|
-
b.metrics.latencyP95 != null ? (m(), W("span", r0, " p95 " + h(Math.round(b.metrics.latencyP95)) + "ms ", 1)) :
|
|
3446
|
-
b.metrics.eventCount != null ? (m(), W("span", f0, " n " + h(b.metrics.eventCount.toLocaleString()), 1)) :
|
|
3444
|
+
b.metrics.errorRate != null ? (m(), W("span", P0, " err " + h(b.metrics.errorRate.toFixed(1)) + "% ", 1)) : a("", !0),
|
|
3445
|
+
b.metrics.latencyP95 != null ? (m(), W("span", r0, " p95 " + h(Math.round(b.metrics.latencyP95)) + "ms ", 1)) : a("", !0),
|
|
3446
|
+
b.metrics.eventCount != null ? (m(), W("span", f0, " n " + h(b.metrics.eventCount.toLocaleString()), 1)) : a("", !0),
|
|
3447
3447
|
b.metrics.lastSeen ? (m(), W("span", {
|
|
3448
3448
|
key: 3,
|
|
3449
|
-
class:
|
|
3450
|
-
}, h($(u0)(b.metrics.lastSeen)), 3)) :
|
|
3451
|
-
])) :
|
|
3449
|
+
class: u({ "is-stale": l(b.metrics.lastSeen) })
|
|
3450
|
+
}, h($(u0)(b.metrics.lastSeen)), 3)) : a("", !0)
|
|
3451
|
+
])) : a("", !0)
|
|
3452
3452
|
])
|
|
3453
3453
|
], 10, U0))), 128))
|
|
3454
|
-
], 4)) : (m(),
|
|
3454
|
+
], 4)) : (m(), T($(cg), {
|
|
3455
3455
|
key: 1,
|
|
3456
3456
|
title: "暂无服务",
|
|
3457
3457
|
description: "等待上报或检查筛选条件"
|
|
3458
3458
|
}));
|
|
3459
3459
|
}
|
|
3460
|
-
}),
|
|
3460
|
+
}), qV = /* @__PURE__ */ U(q0, [["__scopeId", "data-v-7e1890bc"]]), _0 = { class: "apf-status-timeline" }, $0 = { class: "apf-status-timeline__ticks" }, Ii = /* @__PURE__ */ j({
|
|
3461
3461
|
__name: "StatusTimeline",
|
|
3462
3462
|
props: {
|
|
3463
3463
|
segments: {},
|
|
@@ -3471,7 +3471,7 @@ const D0 = {
|
|
|
3471
3471
|
warning: "告警",
|
|
3472
3472
|
error: "故障",
|
|
3473
3473
|
unknown: "未知"
|
|
3474
|
-
}, C = I, Z =
|
|
3474
|
+
}, C = I, Z = n(() => {
|
|
3475
3475
|
if (C.range) return C.range;
|
|
3476
3476
|
if (!C.segments.length) {
|
|
3477
3477
|
const G = (/* @__PURE__ */ new Date()).toISOString();
|
|
@@ -3481,24 +3481,24 @@ const D0 = {
|
|
|
3481
3481
|
start: C.segments[0].start,
|
|
3482
3482
|
end: C.segments[C.segments.length - 1].end
|
|
3483
3483
|
};
|
|
3484
|
-
}), A =
|
|
3484
|
+
}), A = n(() => {
|
|
3485
3485
|
const G = Date.parse(Z.value.start), b = Date.parse(Z.value.end);
|
|
3486
3486
|
return Math.max(b - G, 1);
|
|
3487
|
-
}), d =
|
|
3487
|
+
}), d = n(() => {
|
|
3488
3488
|
const G = Date.parse(Z.value.start);
|
|
3489
3489
|
return C.segments.map((b) => {
|
|
3490
|
-
const i = Date.parse(b.start), w = Date.parse(b.end), s = (i - G) / A.value * 100,
|
|
3490
|
+
const i = Date.parse(b.start), w = Date.parse(b.end), s = (i - G) / A.value * 100, R = (w - i) / A.value * 100;
|
|
3491
3491
|
return {
|
|
3492
3492
|
...b,
|
|
3493
3493
|
left: Math.max(0, s),
|
|
3494
|
-
width: Math.max(0.2,
|
|
3494
|
+
width: Math.max(0.2, R),
|
|
3495
3495
|
durationMs: Math.max(0, w - i)
|
|
3496
3496
|
};
|
|
3497
3497
|
});
|
|
3498
3498
|
});
|
|
3499
3499
|
function l(G) {
|
|
3500
|
-
const b = new Date(G), i = String(b.getMonth() + 1).padStart(2, "0"), w = String(b.getDate()).padStart(2, "0"), s = String(b.getHours()).padStart(2, "0"),
|
|
3501
|
-
return `${i}-${w} ${s}:${
|
|
3500
|
+
const b = new Date(G), i = String(b.getMonth() + 1).padStart(2, "0"), w = String(b.getDate()).padStart(2, "0"), s = String(b.getHours()).padStart(2, "0"), R = String(b.getMinutes()).padStart(2, "0");
|
|
3501
|
+
return `${i}-${w} ${s}:${R}`;
|
|
3502
3502
|
}
|
|
3503
3503
|
function c(G) {
|
|
3504
3504
|
return `${g[G.status]} · ${l(G.start)} ~ ${l(G.end)} · ${n0(G.durationMs)}`;
|
|
@@ -3510,7 +3510,7 @@ const D0 = {
|
|
|
3510
3510
|
class: "apf-status-timeline__track",
|
|
3511
3511
|
style: dI({ height: `${I.height}px` })
|
|
3512
3512
|
}, [
|
|
3513
|
-
(m(!0), W(Q, null, q(d.value, (w, s) => (m(),
|
|
3513
|
+
(m(!0), W(Q, null, q(d.value, (w, s) => (m(), T(i, {
|
|
3514
3514
|
key: `${w.start}-${s}`,
|
|
3515
3515
|
disabled: !I.showTooltip,
|
|
3516
3516
|
content: c(w),
|
|
@@ -3518,7 +3518,7 @@ const D0 = {
|
|
|
3518
3518
|
}, {
|
|
3519
3519
|
default: O(() => [
|
|
3520
3520
|
Y("div", {
|
|
3521
|
-
class:
|
|
3521
|
+
class: u(["apf-status-timeline__seg", `apf-status-timeline__seg--${w.status}`]),
|
|
3522
3522
|
style: dI({ left: `${w.left}%`, width: `${w.width}%` })
|
|
3523
3523
|
}, null, 6)
|
|
3524
3524
|
]),
|
|
@@ -3532,7 +3532,7 @@ const D0 = {
|
|
|
3532
3532
|
]);
|
|
3533
3533
|
};
|
|
3534
3534
|
}
|
|
3535
|
-
}),
|
|
3535
|
+
}), _V = /* @__PURE__ */ U(Ii, [["__scopeId", "data-v-97b528a0"]]), gi = {
|
|
3536
3536
|
key: 0,
|
|
3537
3537
|
class: "apf-log-stream__loading"
|
|
3538
3538
|
}, Ci = ["onClick"], Ai = { class: "apf-log-stream__ts" }, Zi = { class: "apf-log-stream__service" }, li = ["innerHTML"], di = {
|
|
@@ -3558,17 +3558,17 @@ const D0 = {
|
|
|
3558
3558
|
setup(I, { emit: g }) {
|
|
3559
3559
|
const C = I, Z = g, A = t(null), d = t(0), l = t(null);
|
|
3560
3560
|
let c = !0, G = null;
|
|
3561
|
-
const b =
|
|
3561
|
+
const b = n(
|
|
3562
3562
|
() => Math.ceil(C.height / C.rowHeight) + WZ * 2
|
|
3563
|
-
), i =
|
|
3563
|
+
), i = n(
|
|
3564
3564
|
() => Math.max(0, Math.floor(d.value / C.rowHeight) - WZ)
|
|
3565
|
-
), w =
|
|
3565
|
+
), w = n(
|
|
3566
3566
|
() => Math.min(C.logs.length, i.value + b.value)
|
|
3567
|
-
), s =
|
|
3567
|
+
), s = n(
|
|
3568
3568
|
() => C.logs.slice(i.value, w.value)
|
|
3569
|
-
),
|
|
3569
|
+
), R = n(() => C.logs.length * C.rowHeight), V = n(() => i.value * C.rowHeight), X = n(
|
|
3570
3570
|
() => C.logs.find((H) => H.id === l.value) ?? null
|
|
3571
|
-
), o =
|
|
3571
|
+
), o = n(() => {
|
|
3572
3572
|
var H;
|
|
3573
3573
|
if (!((H = X.value) != null && H.payload)) return "";
|
|
3574
3574
|
try {
|
|
@@ -3646,12 +3646,12 @@ const D0 = {
|
|
|
3646
3646
|
Y("div", {
|
|
3647
3647
|
ref_key: "scrollerRef",
|
|
3648
3648
|
ref: A,
|
|
3649
|
-
class:
|
|
3649
|
+
class: u(["apf-log-stream", { "apf-log-stream--with-panel": !!X.value }])
|
|
3650
3650
|
}, [
|
|
3651
3651
|
I.loading ? (m(), W("div", gi, "加载中…")) : I.logs.length ? (m(), W("div", {
|
|
3652
3652
|
key: 2,
|
|
3653
3653
|
class: "apf-log-stream__phantom",
|
|
3654
|
-
style: dI({ height: `${
|
|
3654
|
+
style: dI({ height: `${R.value}px` })
|
|
3655
3655
|
}, [
|
|
3656
3656
|
Y("div", {
|
|
3657
3657
|
class: "apf-log-stream__window",
|
|
@@ -3659,17 +3659,17 @@ const D0 = {
|
|
|
3659
3659
|
}, [
|
|
3660
3660
|
(m(!0), W(Q, null, q(s.value, (D) => (m(), W("div", {
|
|
3661
3661
|
key: D.id,
|
|
3662
|
-
class:
|
|
3662
|
+
class: u(["apf-log-stream__row", { "is-active": l.value === D.id }]),
|
|
3663
3663
|
style: dI({ height: `${I.rowHeight}px` }),
|
|
3664
3664
|
onClick: (f) => p(D)
|
|
3665
3665
|
}, [
|
|
3666
3666
|
Y("i", {
|
|
3667
|
-
class:
|
|
3667
|
+
class: u(["apf-log-stream__bar", `apf-log-stream__bar--${D.level}`]),
|
|
3668
3668
|
"aria-hidden": "true"
|
|
3669
3669
|
}, null, 2),
|
|
3670
3670
|
Y("span", Ai, h(S(D.timestamp)), 1),
|
|
3671
3671
|
Y("span", {
|
|
3672
|
-
class:
|
|
3672
|
+
class: u(["apf-log-stream__level", `apf-log-stream__level--${D.level}`])
|
|
3673
3673
|
}, h(D.level), 3),
|
|
3674
3674
|
Y("span", Zi, h(D.service), 1),
|
|
3675
3675
|
Y("span", {
|
|
@@ -3678,7 +3678,7 @@ const D0 = {
|
|
|
3678
3678
|
}, null, 8, li)
|
|
3679
3679
|
], 14, Ci))), 128))
|
|
3680
3680
|
], 4)
|
|
3681
|
-
], 4)) : (m(),
|
|
3681
|
+
], 4)) : (m(), T($(cg), {
|
|
3682
3682
|
key: 1,
|
|
3683
3683
|
title: "暂无日志",
|
|
3684
3684
|
description: "等待事件推送或调整筛选"
|
|
@@ -3694,10 +3694,10 @@ const D0 = {
|
|
|
3694
3694
|
}, " 关闭 ")
|
|
3695
3695
|
]),
|
|
3696
3696
|
o.value ? (m(), W("pre", ci, h(o.value), 1)) : (m(), W("div", bi, "无 payload"))
|
|
3697
|
-
])) :
|
|
3697
|
+
])) : a("", !0)
|
|
3698
3698
|
], 4));
|
|
3699
3699
|
}
|
|
3700
|
-
}),
|
|
3700
|
+
}), $V = /* @__PURE__ */ U(mi, [["__scopeId", "data-v-1766eb79"]]), ii = { class: "apf-threshold-slider__meta" }, Wi = { class: "apf-threshold-slider__unit" }, Bi = { class: "apf-threshold-slider__hint" }, Yi = { class: "apf-threshold-slider__row" }, si = /* @__PURE__ */ j({
|
|
3701
3701
|
__name: "ThresholdSlider",
|
|
3702
3702
|
props: {
|
|
3703
3703
|
type: {},
|
|
@@ -3712,7 +3712,7 @@ const D0 = {
|
|
|
3712
3712
|
latency: { unit: "ms", min: 100, max: 3e4, step: 100, suggest: 2e3 },
|
|
3713
3713
|
eventCount: { unit: "次/5分钟", min: 10, max: 1e4, step: 10, suggest: 100 },
|
|
3714
3714
|
timeout: { unit: "分钟", min: 1, max: 60, step: 1, suggest: 3 }
|
|
3715
|
-
}, Z = I, A = g, d =
|
|
3715
|
+
}, Z = I, A = g, d = n(() => C[Z.type]);
|
|
3716
3716
|
function l(G) {
|
|
3717
3717
|
if (G == null || Number.isNaN(G)) return;
|
|
3718
3718
|
const b = Math.min(d.value.max, Math.max(d.value.min, G));
|
|
@@ -3725,7 +3725,7 @@ const D0 = {
|
|
|
3725
3725
|
return (G, b) => {
|
|
3726
3726
|
const i = _("el-slider"), w = _("el-input-number");
|
|
3727
3727
|
return m(), W("div", {
|
|
3728
|
-
class:
|
|
3728
|
+
class: u(["apf-threshold-slider", { "is-disabled": I.disabled }])
|
|
3729
3729
|
}, [
|
|
3730
3730
|
Y("div", ii, [
|
|
3731
3731
|
Y("span", Wi, h(d.value.unit), 1),
|
|
@@ -3742,7 +3742,7 @@ const D0 = {
|
|
|
3742
3742
|
"onUpdate:modelValue": b[0] || (b[0] = (s) => l(s)),
|
|
3743
3743
|
onChange: c
|
|
3744
3744
|
}, null, 8, ["model-value", "min", "max", "step", "disabled"]),
|
|
3745
|
-
I.showInput ? (m(),
|
|
3745
|
+
I.showInput ? (m(), T(w, {
|
|
3746
3746
|
key: 0,
|
|
3747
3747
|
"model-value": I.modelValue,
|
|
3748
3748
|
min: d.value.min,
|
|
@@ -3754,19 +3754,19 @@ const D0 = {
|
|
|
3754
3754
|
class: "apf-threshold-slider__input",
|
|
3755
3755
|
"onUpdate:modelValue": l,
|
|
3756
3756
|
onChange: b[1] || (b[1] = (s) => s != null && A("change", s))
|
|
3757
|
-
}, null, 8, ["model-value", "min", "max", "step", "disabled"])) :
|
|
3757
|
+
}, null, 8, ["model-value", "min", "max", "step", "disabled"])) : a("", !0)
|
|
3758
3758
|
])
|
|
3759
3759
|
], 2);
|
|
3760
3760
|
};
|
|
3761
3761
|
}
|
|
3762
|
-
}),
|
|
3762
|
+
}), IN = /* @__PURE__ */ U(si, [["__scopeId", "data-v-7098971c"]]), wi = /* @__PURE__ */ j({
|
|
3763
3763
|
__name: "PageShell",
|
|
3764
3764
|
props: {
|
|
3765
3765
|
fill: { type: Boolean, default: !1 }
|
|
3766
3766
|
},
|
|
3767
3767
|
setup(I) {
|
|
3768
3768
|
return (g, C) => (m(), W("div", {
|
|
3769
|
-
class:
|
|
3769
|
+
class: u([g.$style.shell, I.fill && g.$style.shellFill])
|
|
3770
3770
|
}, [
|
|
3771
3771
|
CI(g.$slots, "default")
|
|
3772
3772
|
], 2));
|
|
@@ -3776,7 +3776,7 @@ const D0 = {
|
|
|
3776
3776
|
shellFill: Ni
|
|
3777
3777
|
}, oi = {
|
|
3778
3778
|
$style: Xi
|
|
3779
|
-
},
|
|
3779
|
+
}, gN = /* @__PURE__ */ U(wi, [["__cssModules", oi]]), hi = /* @__PURE__ */ j({
|
|
3780
3780
|
__name: "PageHeader",
|
|
3781
3781
|
props: {
|
|
3782
3782
|
title: {},
|
|
@@ -3784,30 +3784,30 @@ const D0 = {
|
|
|
3784
3784
|
},
|
|
3785
3785
|
setup(I) {
|
|
3786
3786
|
return (g, C) => (m(), W("header", {
|
|
3787
|
-
class:
|
|
3787
|
+
class: u(g.$style.header)
|
|
3788
3788
|
}, [
|
|
3789
3789
|
Y("div", {
|
|
3790
|
-
class:
|
|
3790
|
+
class: u(g.$style.titleRow)
|
|
3791
3791
|
}, [
|
|
3792
3792
|
Y("div", {
|
|
3793
|
-
class:
|
|
3793
|
+
class: u(g.$style.titleLeft)
|
|
3794
3794
|
}, [
|
|
3795
3795
|
Y("h1", {
|
|
3796
|
-
class:
|
|
3796
|
+
class: u(g.$style.title)
|
|
3797
3797
|
}, h(I.title), 3),
|
|
3798
3798
|
I.subtitle ? (m(), W("p", {
|
|
3799
3799
|
key: 0,
|
|
3800
|
-
class:
|
|
3801
|
-
}, h(I.subtitle), 3)) :
|
|
3800
|
+
class: u(g.$style.subtitle)
|
|
3801
|
+
}, h(I.subtitle), 3)) : a("", !0),
|
|
3802
3802
|
CI(g.$slots, "default")
|
|
3803
3803
|
], 2),
|
|
3804
3804
|
g.$slots.actions || g.$slots.extra ? (m(), W("div", {
|
|
3805
3805
|
key: 0,
|
|
3806
|
-
class:
|
|
3806
|
+
class: u(g.$style.actions)
|
|
3807
3807
|
}, [
|
|
3808
3808
|
CI(g.$slots, "actions"),
|
|
3809
3809
|
CI(g.$slots, "extra")
|
|
3810
|
-
], 2)) :
|
|
3810
|
+
], 2)) : a("", !0)
|
|
3811
3811
|
], 2)
|
|
3812
3812
|
], 2));
|
|
3813
3813
|
}
|
|
@@ -3820,7 +3820,7 @@ const D0 = {
|
|
|
3820
3820
|
actions: ni
|
|
3821
3821
|
}, Ki = {
|
|
3822
3822
|
$style: Mi
|
|
3823
|
-
},
|
|
3823
|
+
}, CN = /* @__PURE__ */ U(hi, [["__cssModules", Ki]]), Si = ["onClick"], Di = /* @__PURE__ */ j({
|
|
3824
3824
|
__name: "BreadcrumbNav",
|
|
3825
3825
|
props: {
|
|
3826
3826
|
items: {}
|
|
@@ -3830,7 +3830,7 @@ const D0 = {
|
|
|
3830
3830
|
const C = g;
|
|
3831
3831
|
return (Z, A) => I.items.length > 0 ? (m(), W("nav", {
|
|
3832
3832
|
key: 0,
|
|
3833
|
-
class:
|
|
3833
|
+
class: u(Z.$style.breadcrumb),
|
|
3834
3834
|
"aria-label": "面包屑"
|
|
3835
3835
|
}, [
|
|
3836
3836
|
(m(!0), W(Q, null, q(I.items, (d, l) => (m(), W(Q, {
|
|
@@ -3838,20 +3838,20 @@ const D0 = {
|
|
|
3838
3838
|
}, [
|
|
3839
3839
|
l > 0 ? (m(), W("span", {
|
|
3840
3840
|
key: 0,
|
|
3841
|
-
class:
|
|
3841
|
+
class: u(Z.$style.separator),
|
|
3842
3842
|
"aria-hidden": "true"
|
|
3843
|
-
}, "/", 2)) :
|
|
3843
|
+
}, "/", 2)) : a("", !0),
|
|
3844
3844
|
d.to && l < I.items.length - 1 ? (m(), W("button", {
|
|
3845
3845
|
key: 1,
|
|
3846
3846
|
type: "button",
|
|
3847
|
-
class:
|
|
3847
|
+
class: u(Z.$style.link),
|
|
3848
3848
|
onClick: (c) => C("navigate", d.to)
|
|
3849
3849
|
}, h(d.label), 11, Si)) : (m(), W("span", {
|
|
3850
3850
|
key: 2,
|
|
3851
|
-
class:
|
|
3851
|
+
class: u(Z.$style.current)
|
|
3852
3852
|
}, h(d.label), 3))
|
|
3853
3853
|
], 64))), 128))
|
|
3854
|
-
], 2)) :
|
|
3854
|
+
], 2)) : a("", !0);
|
|
3855
3855
|
}
|
|
3856
3856
|
}), Fi = "_breadcrumb_vy5ij_2", pi = "_separator_vy5ij_11", Ji = "_link_vy5ij_16", zi = "_current_vy5ij_30", ki = {
|
|
3857
3857
|
breadcrumb: Fi,
|
|
@@ -3860,7 +3860,7 @@ const D0 = {
|
|
|
3860
3860
|
current: zi
|
|
3861
3861
|
}, ei = {
|
|
3862
3862
|
$style: ki
|
|
3863
|
-
},
|
|
3863
|
+
}, AN = /* @__PURE__ */ U(Di, [["__cssModules", ei]]), Li = { class: "apf-filter-bar" }, ti = {
|
|
3864
3864
|
key: 0,
|
|
3865
3865
|
class: "apf-filter-bar__title"
|
|
3866
3866
|
}, Ti = { class: "apf-filter-bar__fields" }, xi = { class: "apf-filter-bar__actions" }, ji = /* @__PURE__ */ j({
|
|
@@ -3874,7 +3874,7 @@ const D0 = {
|
|
|
3874
3874
|
return (Z, A) => {
|
|
3875
3875
|
const d = _("el-button");
|
|
3876
3876
|
return m(), W("div", Li, [
|
|
3877
|
-
I.title ? (m(), W("div", ti, h(I.title), 1)) :
|
|
3877
|
+
I.title ? (m(), W("div", ti, h(I.title), 1)) : a("", !0),
|
|
3878
3878
|
Y("div", Ti, [
|
|
3879
3879
|
CI(Z.$slots, "default", {}, void 0, !0)
|
|
3880
3880
|
]),
|
|
@@ -3902,7 +3902,7 @@ const D0 = {
|
|
|
3902
3902
|
]);
|
|
3903
3903
|
};
|
|
3904
3904
|
}
|
|
3905
|
-
}),
|
|
3905
|
+
}), ZN = /* @__PURE__ */ U(ji, [["__scopeId", "data-v-86218301"]]), Qi = /* @__PURE__ */ j({
|
|
3906
3906
|
__name: "CardTable",
|
|
3907
3907
|
props: {
|
|
3908
3908
|
loading: { type: Boolean, default: !1 },
|
|
@@ -3913,7 +3913,7 @@ const D0 = {
|
|
|
3913
3913
|
return (g, C) => {
|
|
3914
3914
|
const Z = EZ("loading");
|
|
3915
3915
|
return Gg((m(), W("div", {
|
|
3916
|
-
class:
|
|
3916
|
+
class: u(["apf-card-table", { "apf-card-table--borderless": I.borderless }]),
|
|
3917
3917
|
style: dI({ padding: I.padding })
|
|
3918
3918
|
}, [
|
|
3919
3919
|
CI(g.$slots, "default", {}, void 0, !0)
|
|
@@ -3922,7 +3922,7 @@ const D0 = {
|
|
|
3922
3922
|
]);
|
|
3923
3923
|
};
|
|
3924
3924
|
}
|
|
3925
|
-
}),
|
|
3925
|
+
}), lN = /* @__PURE__ */ U(Qi, [["__scopeId", "data-v-fbd06971"]]), Ui = { class: "apf-table-row-actions" }, vi = /* @__PURE__ */ j({
|
|
3926
3926
|
__name: "TableRowActions",
|
|
3927
3927
|
props: {
|
|
3928
3928
|
actions: {},
|
|
@@ -3930,9 +3930,9 @@ const D0 = {
|
|
|
3930
3930
|
visibleCount: { default: 2 }
|
|
3931
3931
|
},
|
|
3932
3932
|
setup(I) {
|
|
3933
|
-
const g = I, C =
|
|
3933
|
+
const g = I, C = n(() => g.actions.length >= g.collapseAt), Z = n(
|
|
3934
3934
|
() => C.value ? g.actions.slice(0, g.visibleCount) : g.actions
|
|
3935
|
-
), A =
|
|
3935
|
+
), A = n(
|
|
3936
3936
|
() => C.value ? g.actions.slice(g.visibleCount) : []
|
|
3937
3937
|
);
|
|
3938
3938
|
function d(l) {
|
|
@@ -3942,7 +3942,7 @@ const D0 = {
|
|
|
3942
3942
|
return (l, c) => {
|
|
3943
3943
|
const G = _("el-button"), b = _("el-dropdown-item"), i = _("el-dropdown-menu"), w = _("el-dropdown");
|
|
3944
3944
|
return m(), W("div", Ui, [
|
|
3945
|
-
(m(!0), W(Q, null, q(Z.value, (s) => (m(),
|
|
3945
|
+
(m(!0), W(Q, null, q(Z.value, (s) => (m(), T(G, {
|
|
3946
3946
|
key: s.key,
|
|
3947
3947
|
link: "",
|
|
3948
3948
|
type: s.type ?? "primary",
|
|
@@ -3955,7 +3955,7 @@ const D0 = {
|
|
|
3955
3955
|
]),
|
|
3956
3956
|
_: 2
|
|
3957
3957
|
}, 1032, ["type", "loading", "onClick"]))), 128)),
|
|
3958
|
-
A.value.length ? (m(),
|
|
3958
|
+
A.value.length ? (m(), T(w, {
|
|
3959
3959
|
key: 0,
|
|
3960
3960
|
trigger: "click",
|
|
3961
3961
|
onCommand: d
|
|
@@ -3963,18 +3963,18 @@ const D0 = {
|
|
|
3963
3963
|
dropdown: O(() => [
|
|
3964
3964
|
II(i, null, {
|
|
3965
3965
|
default: O(() => [
|
|
3966
|
-
(m(!0), W(Q, null, q(A.value, (s) => (m(),
|
|
3966
|
+
(m(!0), W(Q, null, q(A.value, (s) => (m(), T(b, {
|
|
3967
3967
|
key: s.key,
|
|
3968
3968
|
command: s.key,
|
|
3969
3969
|
style: dI(s.type === "danger" ? { color: "var(--el-color-danger)" } : void 0)
|
|
3970
3970
|
}, {
|
|
3971
3971
|
default: O(() => [
|
|
3972
|
-
s.icon ? (m(),
|
|
3972
|
+
s.icon ? (m(), T($(XI), {
|
|
3973
3973
|
key: 0,
|
|
3974
3974
|
name: s.icon,
|
|
3975
3975
|
size: 14,
|
|
3976
3976
|
style: { "margin-right": "6px" }
|
|
3977
|
-
}, null, 8, ["name"])) :
|
|
3977
|
+
}, null, 8, ["name"])) : a("", !0),
|
|
3978
3978
|
gI(" " + h(s.label), 1)
|
|
3979
3979
|
]),
|
|
3980
3980
|
_: 2
|
|
@@ -3991,7 +3991,7 @@ const D0 = {
|
|
|
3991
3991
|
}, {
|
|
3992
3992
|
default: O(() => [
|
|
3993
3993
|
c[0] || (c[0] = gI(" 更多 ", -1)),
|
|
3994
|
-
II($(
|
|
3994
|
+
II($(XI), {
|
|
3995
3995
|
name: "arrow-down",
|
|
3996
3996
|
size: 12,
|
|
3997
3997
|
style: { "margin-left": "2px" }
|
|
@@ -4001,11 +4001,11 @@ const D0 = {
|
|
|
4001
4001
|
})
|
|
4002
4002
|
]),
|
|
4003
4003
|
_: 1
|
|
4004
|
-
})) :
|
|
4004
|
+
})) : a("", !0)
|
|
4005
4005
|
]);
|
|
4006
4006
|
};
|
|
4007
4007
|
}
|
|
4008
|
-
}),
|
|
4008
|
+
}), dN = /* @__PURE__ */ U(vi, [["__scopeId", "data-v-06e2a9ce"]]), Oi = { class: "apf-search-form" }, Ei = { class: "apf-search-form__row" }, Pi = { class: "apf-search-form__label" }, ri = { class: "apf-search-form__actions" }, fi = /* @__PURE__ */ j({
|
|
4009
4009
|
__name: "SearchForm",
|
|
4010
4010
|
props: {
|
|
4011
4011
|
fields: {},
|
|
@@ -4018,33 +4018,33 @@ const D0 = {
|
|
|
4018
4018
|
setup(I, { expose: g, emit: C }) {
|
|
4019
4019
|
const Z = I, A = C, d = t(Z.defaultCollapsed), l = PZ({});
|
|
4020
4020
|
function c() {
|
|
4021
|
-
var
|
|
4021
|
+
var R;
|
|
4022
4022
|
for (const V of Object.keys(l))
|
|
4023
4023
|
Z.fields.some((X) => X.key === V) || delete l[V];
|
|
4024
4024
|
for (const V of Z.fields)
|
|
4025
|
-
l[V.key] = ((
|
|
4025
|
+
l[V.key] = ((R = Z.modelValue) == null ? void 0 : R[V.key]) ?? (V.type === "daterange" ? [] : "");
|
|
4026
4026
|
}
|
|
4027
4027
|
NI(() => [Z.fields, Z.modelValue], c, { immediate: !0, deep: !0 });
|
|
4028
|
-
const G =
|
|
4028
|
+
const G = n(
|
|
4029
4029
|
() => Z.collapsible && Z.fields.length > Z.defaultVisibleCount
|
|
4030
|
-
), b =
|
|
4030
|
+
), b = n(() => !G.value || !d.value ? Z.fields : Z.fields.slice(0, Z.defaultVisibleCount));
|
|
4031
4031
|
function i() {
|
|
4032
4032
|
return { ...l };
|
|
4033
4033
|
}
|
|
4034
4034
|
function w() {
|
|
4035
|
-
const
|
|
4036
|
-
A("update:modelValue",
|
|
4035
|
+
const R = i();
|
|
4036
|
+
A("update:modelValue", R), A("search", R);
|
|
4037
4037
|
}
|
|
4038
4038
|
function s() {
|
|
4039
4039
|
for (const V of Z.fields)
|
|
4040
4040
|
l[V.key] = V.type === "daterange" ? [] : "";
|
|
4041
|
-
const
|
|
4042
|
-
A("update:modelValue",
|
|
4041
|
+
const R = i();
|
|
4042
|
+
A("update:modelValue", R), A("reset");
|
|
4043
4043
|
}
|
|
4044
4044
|
return g({
|
|
4045
4045
|
getValues: i,
|
|
4046
4046
|
reset: s
|
|
4047
|
-
}), (
|
|
4047
|
+
}), (R, V) => {
|
|
4048
4048
|
const X = _("el-input"), o = _("el-option"), S = _("el-select"), k = _("el-date-picker"), L = _("el-button");
|
|
4049
4049
|
return m(), W("div", Oi, [
|
|
4050
4050
|
Y("div", Ei, [
|
|
@@ -4053,13 +4053,13 @@ const D0 = {
|
|
|
4053
4053
|
class: "apf-search-form__field"
|
|
4054
4054
|
}, [
|
|
4055
4055
|
Y("label", Pi, h(K.label), 1),
|
|
4056
|
-
K.type === "input" ? (m(),
|
|
4056
|
+
K.type === "input" ? (m(), T(X, {
|
|
4057
4057
|
key: 0,
|
|
4058
4058
|
modelValue: l[K.key],
|
|
4059
4059
|
"onUpdate:modelValue": (e) => l[K.key] = e,
|
|
4060
4060
|
clearable: "",
|
|
4061
4061
|
placeholder: K.placeholder || `请输入${K.label}`
|
|
4062
|
-
}, null, 8, ["modelValue", "onUpdate:modelValue", "placeholder"])) : K.type === "select" ? (m(),
|
|
4062
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "placeholder"])) : K.type === "select" ? (m(), T(S, {
|
|
4063
4063
|
key: 1,
|
|
4064
4064
|
modelValue: l[K.key],
|
|
4065
4065
|
"onUpdate:modelValue": (e) => l[K.key] = e,
|
|
@@ -4068,14 +4068,14 @@ const D0 = {
|
|
|
4068
4068
|
style: { width: "100%" }
|
|
4069
4069
|
}, {
|
|
4070
4070
|
default: O(() => [
|
|
4071
|
-
(m(!0), W(Q, null, q(K.options || [], (e) => (m(),
|
|
4071
|
+
(m(!0), W(Q, null, q(K.options || [], (e) => (m(), T(o, {
|
|
4072
4072
|
key: String(e.value),
|
|
4073
4073
|
label: e.label,
|
|
4074
4074
|
value: e.value
|
|
4075
4075
|
}, null, 8, ["label", "value"]))), 128))
|
|
4076
4076
|
]),
|
|
4077
4077
|
_: 2
|
|
4078
|
-
}, 1032, ["modelValue", "onUpdate:modelValue", "placeholder"])) : K.type === "date" ? (m(),
|
|
4078
|
+
}, 1032, ["modelValue", "onUpdate:modelValue", "placeholder"])) : K.type === "date" ? (m(), T(k, {
|
|
4079
4079
|
key: 2,
|
|
4080
4080
|
modelValue: l[K.key],
|
|
4081
4081
|
"onUpdate:modelValue": (e) => l[K.key] = e,
|
|
@@ -4083,7 +4083,7 @@ const D0 = {
|
|
|
4083
4083
|
"value-format": "YYYY-MM-DD",
|
|
4084
4084
|
placeholder: K.placeholder || `请选择${K.label}`,
|
|
4085
4085
|
style: { width: "100%" }
|
|
4086
|
-
}, null, 8, ["modelValue", "onUpdate:modelValue", "placeholder"])) : (m(),
|
|
4086
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "placeholder"])) : (m(), T(k, {
|
|
4087
4087
|
key: 3,
|
|
4088
4088
|
modelValue: l[K.key],
|
|
4089
4089
|
"onUpdate:modelValue": (e) => l[K.key] = e,
|
|
@@ -4100,7 +4100,7 @@ const D0 = {
|
|
|
4100
4100
|
onClick: w
|
|
4101
4101
|
}, {
|
|
4102
4102
|
default: O(() => [
|
|
4103
|
-
II($(
|
|
4103
|
+
II($(XI), {
|
|
4104
4104
|
name: "search",
|
|
4105
4105
|
size: 14,
|
|
4106
4106
|
style: { "margin-right": "var(--spacing-xs, 4px)" }
|
|
@@ -4115,7 +4115,7 @@ const D0 = {
|
|
|
4115
4115
|
])]),
|
|
4116
4116
|
_: 1
|
|
4117
4117
|
}),
|
|
4118
|
-
G.value ? (m(),
|
|
4118
|
+
G.value ? (m(), T(L, {
|
|
4119
4119
|
key: 0,
|
|
4120
4120
|
link: "",
|
|
4121
4121
|
type: "primary",
|
|
@@ -4125,13 +4125,13 @@ const D0 = {
|
|
|
4125
4125
|
gI(h(d.value ? "展开" : "收起"), 1)
|
|
4126
4126
|
]),
|
|
4127
4127
|
_: 1
|
|
4128
|
-
})) :
|
|
4128
|
+
})) : a("", !0)
|
|
4129
4129
|
])
|
|
4130
4130
|
])
|
|
4131
4131
|
]);
|
|
4132
4132
|
};
|
|
4133
4133
|
}
|
|
4134
|
-
}),
|
|
4134
|
+
}), GN = /* @__PURE__ */ U(fi, [["__scopeId", "data-v-8a00c2b6"]]), qi = /* @__PURE__ */ j({
|
|
4135
4135
|
inheritAttrs: !1,
|
|
4136
4136
|
__name: "TruncatedTooltipText",
|
|
4137
4137
|
props: {
|
|
@@ -4143,7 +4143,7 @@ const D0 = {
|
|
|
4143
4143
|
const g = ql();
|
|
4144
4144
|
return (C, Z) => {
|
|
4145
4145
|
const A = _("el-tooltip");
|
|
4146
|
-
return m(),
|
|
4146
|
+
return m(), T(A, {
|
|
4147
4147
|
content: I.content,
|
|
4148
4148
|
placement: I.placement,
|
|
4149
4149
|
"show-after": 200,
|
|
@@ -4151,7 +4151,7 @@ const D0 = {
|
|
|
4151
4151
|
}, {
|
|
4152
4152
|
default: O(() => [
|
|
4153
4153
|
Y("span", {
|
|
4154
|
-
class:
|
|
4154
|
+
class: u(["apf-truncated-text", $(g).class]),
|
|
4155
4155
|
style: dI($(g).style)
|
|
4156
4156
|
}, [
|
|
4157
4157
|
CI(C.$slots, "default", {}, () => [
|
|
@@ -4175,16 +4175,16 @@ const D0 = {
|
|
|
4175
4175
|
required: { type: Boolean }
|
|
4176
4176
|
},
|
|
4177
4177
|
setup(I) {
|
|
4178
|
-
const g = I, C =
|
|
4178
|
+
const g = I, C = n(() => {
|
|
4179
4179
|
var Z;
|
|
4180
4180
|
return (Z = g.hint) != null && Z.trim() ? `${g.label}
|
|
4181
4181
|
${g.hint.trim()}` : g.label;
|
|
4182
4182
|
});
|
|
4183
4183
|
return (Z, A) => (m(), W("div", {
|
|
4184
|
-
class:
|
|
4184
|
+
class: u(["apf-field-row", { "apf-field-row--textarea": I.textarea }])
|
|
4185
4185
|
}, [
|
|
4186
4186
|
Y("div", $i, [
|
|
4187
|
-
I.required ? (m(), W("span", IW, "*")) :
|
|
4187
|
+
I.required ? (m(), W("span", IW, "*")) : a("", !0),
|
|
4188
4188
|
II($(_i), {
|
|
4189
4189
|
content: C.value,
|
|
4190
4190
|
class: "apf-field-row__label-text"
|
|
@@ -4196,13 +4196,13 @@ ${g.hint.trim()}` : g.label;
|
|
|
4196
4196
|
}, 8, ["content"])
|
|
4197
4197
|
]),
|
|
4198
4198
|
Y("div", {
|
|
4199
|
-
class:
|
|
4199
|
+
class: u(["apf-field-row__control", { "apf-field-row__control--textarea": I.textarea }])
|
|
4200
4200
|
}, [
|
|
4201
4201
|
CI(Z.$slots, "default", {}, void 0, !0)
|
|
4202
4202
|
], 2)
|
|
4203
4203
|
], 2));
|
|
4204
4204
|
}
|
|
4205
|
-
}),
|
|
4205
|
+
}), cN = /* @__PURE__ */ U(gW, [["__scopeId", "data-v-84b9f50d"]]), CW = ["aria-label"], AW = {
|
|
4206
4206
|
class: "apf-hint-trigger",
|
|
4207
4207
|
"aria-label": "提示"
|
|
4208
4208
|
}, ZW = { class: "apf-hint-content" }, lW = /* @__PURE__ */ j({
|
|
@@ -4214,7 +4214,7 @@ ${g.hint.trim()}` : g.label;
|
|
|
4214
4214
|
setup(I) {
|
|
4215
4215
|
return (g, C) => {
|
|
4216
4216
|
const Z = _("el-tooltip"), A = _("el-popover");
|
|
4217
|
-
return I.content ? (m(),
|
|
4217
|
+
return I.content ? (m(), T(Z, {
|
|
4218
4218
|
key: 0,
|
|
4219
4219
|
content: I.content,
|
|
4220
4220
|
placement: "top",
|
|
@@ -4226,14 +4226,14 @@ ${g.hint.trim()}` : g.label;
|
|
|
4226
4226
|
tabindex: "0",
|
|
4227
4227
|
"aria-label": I.content
|
|
4228
4228
|
}, [
|
|
4229
|
-
II($(
|
|
4229
|
+
II($(XI), {
|
|
4230
4230
|
name: "question-filled",
|
|
4231
4231
|
size: 14
|
|
4232
4232
|
})
|
|
4233
4233
|
], 8, CW)
|
|
4234
4234
|
]),
|
|
4235
4235
|
_: 1
|
|
4236
|
-
}, 8, ["content"])) : (m(),
|
|
4236
|
+
}, 8, ["content"])) : (m(), T(A, {
|
|
4237
4237
|
key: 1,
|
|
4238
4238
|
placement: "top",
|
|
4239
4239
|
width: I.width,
|
|
@@ -4243,7 +4243,7 @@ ${g.hint.trim()}` : g.label;
|
|
|
4243
4243
|
}, {
|
|
4244
4244
|
reference: O(() => [
|
|
4245
4245
|
Y("span", AW, [
|
|
4246
|
-
II($(
|
|
4246
|
+
II($(XI), {
|
|
4247
4247
|
name: "question-filled",
|
|
4248
4248
|
size: 14
|
|
4249
4249
|
})
|
|
@@ -4258,7 +4258,7 @@ ${g.hint.trim()}` : g.label;
|
|
|
4258
4258
|
}, 8, ["width"]));
|
|
4259
4259
|
};
|
|
4260
4260
|
}
|
|
4261
|
-
}),
|
|
4261
|
+
}), bN = /* @__PURE__ */ U(lW, [["__scopeId", "data-v-38245bc2"]]), dW = { class: "apf-section-toggle" }, GW = { class: "apf-section-toggle__label" }, cW = {
|
|
4262
4262
|
key: 0,
|
|
4263
4263
|
class: "apf-section-toggle__count"
|
|
4264
4264
|
}, bW = { class: "apf-section-toggle__body" }, mW = /* @__PURE__ */ j({
|
|
@@ -4279,13 +4279,13 @@ ${g.hint.trim()}` : g.label;
|
|
|
4279
4279
|
class: "apf-section-toggle__header",
|
|
4280
4280
|
onClick: Z
|
|
4281
4281
|
}, [
|
|
4282
|
-
II($(
|
|
4282
|
+
II($(XI), {
|
|
4283
4283
|
name: C.value ? "arrow-down" : "arrow-right",
|
|
4284
4284
|
size: 11,
|
|
4285
4285
|
class: "apf-section-toggle__arrow"
|
|
4286
4286
|
}, null, 8, ["name"]),
|
|
4287
4287
|
Y("span", GW, h(I.title), 1),
|
|
4288
|
-
I.count !== void 0 ? (m(), W("span", cW, h(I.count), 1)) :
|
|
4288
|
+
I.count !== void 0 ? (m(), W("span", cW, h(I.count), 1)) : a("", !0)
|
|
4289
4289
|
]),
|
|
4290
4290
|
Gg(Y("div", bW, [
|
|
4291
4291
|
CI(A.$slots, "default", {}, void 0, !0)
|
|
@@ -4294,7 +4294,7 @@ ${g.hint.trim()}` : g.label;
|
|
|
4294
4294
|
])
|
|
4295
4295
|
]));
|
|
4296
4296
|
}
|
|
4297
|
-
}),
|
|
4297
|
+
}), mN = /* @__PURE__ */ U(mW, [["__scopeId", "data-v-64b3dfe8"]]), iW = {
|
|
4298
4298
|
class: "apf-loading-dots",
|
|
4299
4299
|
"aria-label": "加载中",
|
|
4300
4300
|
role: "status"
|
|
@@ -4312,7 +4312,7 @@ ${g.hint.trim()}` : g.label;
|
|
|
4312
4312
|
}, null, 4)), 64))
|
|
4313
4313
|
]));
|
|
4314
4314
|
}
|
|
4315
|
-
}),
|
|
4315
|
+
}), iN = /* @__PURE__ */ U(WW, [["__scopeId", "data-v-df891291"]]), BW = { class: "apf-json-card__body" }, YW = { class: "apf-json-card__title" }, sW = { class: "apf-json-card__summary" }, wW = /* @__PURE__ */ j({
|
|
4316
4316
|
__name: "JsonCard",
|
|
4317
4317
|
props: {
|
|
4318
4318
|
title: {},
|
|
@@ -4322,7 +4322,7 @@ ${g.hint.trim()}` : g.label;
|
|
|
4322
4322
|
},
|
|
4323
4323
|
emits: ["click", "openDetail"],
|
|
4324
4324
|
setup(I, { emit: g }) {
|
|
4325
|
-
const C = I, Z = g, A =
|
|
4325
|
+
const C = I, Z = g, A = n(() => {
|
|
4326
4326
|
if (C.data !== void 0) return C.data;
|
|
4327
4327
|
if (!C.content) return null;
|
|
4328
4328
|
try {
|
|
@@ -4330,7 +4330,7 @@ ${g.hint.trim()}` : g.label;
|
|
|
4330
4330
|
} catch {
|
|
4331
4331
|
return null;
|
|
4332
4332
|
}
|
|
4333
|
-
}), d =
|
|
4333
|
+
}), d = n(() => {
|
|
4334
4334
|
const G = A.value;
|
|
4335
4335
|
if (G == null) return "JSON 数据";
|
|
4336
4336
|
if (Array.isArray(G))
|
|
@@ -4345,7 +4345,7 @@ ${g.hint.trim()}` : g.label;
|
|
|
4345
4345
|
return `${i.length} 个字段${i.length ? ` (${i.slice(0, 3).join(", ")}${i.length > 3 ? "..." : ""})` : ""}`;
|
|
4346
4346
|
}
|
|
4347
4347
|
return String(G);
|
|
4348
|
-
}), l =
|
|
4348
|
+
}), l = n(() => C.type === "schema" ? "document" : C.type === "flow" ? "connection" : "files");
|
|
4349
4349
|
function c() {
|
|
4350
4350
|
Z("click"), Z("openDetail");
|
|
4351
4351
|
}
|
|
@@ -4354,7 +4354,7 @@ ${g.hint.trim()}` : g.label;
|
|
|
4354
4354
|
class: "apf-json-card",
|
|
4355
4355
|
onClick: c
|
|
4356
4356
|
}, [
|
|
4357
|
-
II($(
|
|
4357
|
+
II($(XI), {
|
|
4358
4358
|
name: l.value,
|
|
4359
4359
|
size: 20,
|
|
4360
4360
|
class: "apf-json-card__icon"
|
|
@@ -4375,7 +4375,7 @@ ${g.hint.trim()}` : g.label;
|
|
|
4375
4375
|
},
|
|
4376
4376
|
emits: ["update:modelValue"],
|
|
4377
4377
|
setup(I, { emit: g }) {
|
|
4378
|
-
const C = I, Z = g, A =
|
|
4378
|
+
const C = I, Z = g, A = n(() => {
|
|
4379
4379
|
if (C.content)
|
|
4380
4380
|
try {
|
|
4381
4381
|
return JSON.stringify(JSON.parse(C.content), null, 2);
|
|
@@ -4390,7 +4390,7 @@ ${g.hint.trim()}` : g.label;
|
|
|
4390
4390
|
});
|
|
4391
4391
|
return (d, l) => {
|
|
4392
4392
|
const c = _("el-button");
|
|
4393
|
-
return m(),
|
|
4393
|
+
return m(), T($(gA), {
|
|
4394
4394
|
"model-value": I.modelValue,
|
|
4395
4395
|
title: I.title || "JSON 详情",
|
|
4396
4396
|
width: "720px",
|
|
@@ -4439,7 +4439,7 @@ ${g.hint.trim()}` : g.label;
|
|
|
4439
4439
|
Z("update:modelValue", { ...A });
|
|
4440
4440
|
}
|
|
4441
4441
|
return (c, G) => {
|
|
4442
|
-
const b = _("el-input"), i = _("el-input-number"), w = _("el-option"), s = _("el-select"),
|
|
4442
|
+
const b = _("el-input"), i = _("el-input-number"), w = _("el-option"), s = _("el-select"), R = _("el-switch"), V = _("el-date-picker"), X = _("el-form-item"), o = _("el-form");
|
|
4443
4443
|
return m(), W("div", hW, [
|
|
4444
4444
|
II(o, {
|
|
4445
4445
|
model: A,
|
|
@@ -4447,19 +4447,19 @@ ${g.hint.trim()}` : g.label;
|
|
|
4447
4447
|
onChange: l
|
|
4448
4448
|
}, {
|
|
4449
4449
|
default: O(() => [
|
|
4450
|
-
(m(!0), W(Q, null, q(I.fields, (S) => (m(),
|
|
4450
|
+
(m(!0), W(Q, null, q(I.fields, (S) => (m(), T(X, {
|
|
4451
4451
|
key: S.key,
|
|
4452
4452
|
label: S.label
|
|
4453
4453
|
}, {
|
|
4454
4454
|
default: O(() => [
|
|
4455
|
-
S.type === "input" ? (m(),
|
|
4455
|
+
S.type === "input" ? (m(), T(b, {
|
|
4456
4456
|
key: 0,
|
|
4457
4457
|
modelValue: A[S.key],
|
|
4458
4458
|
"onUpdate:modelValue": (k) => A[S.key] = k,
|
|
4459
4459
|
placeholder: S.placeholder,
|
|
4460
4460
|
disabled: S.disabled,
|
|
4461
4461
|
onChange: l
|
|
4462
|
-
}, null, 8, ["modelValue", "onUpdate:modelValue", "placeholder", "disabled"])) : S.type === "textarea" ? (m(),
|
|
4462
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "placeholder", "disabled"])) : S.type === "textarea" ? (m(), T(b, {
|
|
4463
4463
|
key: 1,
|
|
4464
4464
|
modelValue: A[S.key],
|
|
4465
4465
|
"onUpdate:modelValue": (k) => A[S.key] = k,
|
|
@@ -4468,13 +4468,13 @@ ${g.hint.trim()}` : g.label;
|
|
|
4468
4468
|
placeholder: S.placeholder,
|
|
4469
4469
|
disabled: S.disabled,
|
|
4470
4470
|
onChange: l
|
|
4471
|
-
}, null, 8, ["modelValue", "onUpdate:modelValue", "placeholder", "disabled"])) : S.type === "number" ? (m(),
|
|
4471
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "placeholder", "disabled"])) : S.type === "number" ? (m(), T(i, {
|
|
4472
4472
|
key: 2,
|
|
4473
4473
|
modelValue: A[S.key],
|
|
4474
4474
|
"onUpdate:modelValue": (k) => A[S.key] = k,
|
|
4475
4475
|
disabled: S.disabled,
|
|
4476
4476
|
onChange: l
|
|
4477
|
-
}, null, 8, ["modelValue", "onUpdate:modelValue", "disabled"])) : S.type === "select" ? (m(),
|
|
4477
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "disabled"])) : S.type === "select" ? (m(), T(s, {
|
|
4478
4478
|
key: 3,
|
|
4479
4479
|
modelValue: A[S.key],
|
|
4480
4480
|
"onUpdate:modelValue": (k) => A[S.key] = k,
|
|
@@ -4484,20 +4484,20 @@ ${g.hint.trim()}` : g.label;
|
|
|
4484
4484
|
onChange: l
|
|
4485
4485
|
}, {
|
|
4486
4486
|
default: O(() => [
|
|
4487
|
-
(m(!0), W(Q, null, q(S.options || [], (k) => (m(),
|
|
4487
|
+
(m(!0), W(Q, null, q(S.options || [], (k) => (m(), T(w, {
|
|
4488
4488
|
key: String(k.value),
|
|
4489
4489
|
label: k.label,
|
|
4490
4490
|
value: k.value
|
|
4491
4491
|
}, null, 8, ["label", "value"]))), 128))
|
|
4492
4492
|
]),
|
|
4493
4493
|
_: 2
|
|
4494
|
-
}, 1032, ["modelValue", "onUpdate:modelValue", "placeholder", "disabled"])) : S.type === "switch" ? (m(),
|
|
4494
|
+
}, 1032, ["modelValue", "onUpdate:modelValue", "placeholder", "disabled"])) : S.type === "switch" ? (m(), T(R, {
|
|
4495
4495
|
key: 4,
|
|
4496
4496
|
modelValue: A[S.key],
|
|
4497
4497
|
"onUpdate:modelValue": (k) => A[S.key] = k,
|
|
4498
4498
|
disabled: S.disabled,
|
|
4499
4499
|
onChange: l
|
|
4500
|
-
}, null, 8, ["modelValue", "onUpdate:modelValue", "disabled"])) : (m(),
|
|
4500
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "disabled"])) : (m(), T(V, {
|
|
4501
4501
|
key: 5,
|
|
4502
4502
|
modelValue: A[S.key],
|
|
4503
4503
|
"onUpdate:modelValue": (k) => A[S.key] = k,
|
|
@@ -4517,7 +4517,7 @@ ${g.hint.trim()}` : g.label;
|
|
|
4517
4517
|
]);
|
|
4518
4518
|
};
|
|
4519
4519
|
}
|
|
4520
|
-
}),
|
|
4520
|
+
}), WN = /* @__PURE__ */ U(aW, [["__scopeId", "data-v-1d125a82"]]);
|
|
4521
4521
|
function Rg(I) {
|
|
4522
4522
|
const g = (I.mimetype || "").toLowerCase(), C = (I.filename || "").toLowerCase();
|
|
4523
4523
|
return g.startsWith("image/") || /\.(png|jpe?g|gif|webp|bmp)$/.test(C);
|
|
@@ -4530,7 +4530,7 @@ function BZ(I) {
|
|
|
4530
4530
|
const g = (I.mimetype || "").toLowerCase(), C = (I.filename || "").toLowerCase();
|
|
4531
4531
|
return C.endsWith(".docx") || C.endsWith(".doc") || C.endsWith(".xlsx") || C.endsWith(".xls") || g.includes("word") || g.includes("sheet") || g.includes("excel");
|
|
4532
4532
|
}
|
|
4533
|
-
function
|
|
4533
|
+
function BN(I) {
|
|
4534
4534
|
return Rg(I) || Lg(I);
|
|
4535
4535
|
}
|
|
4536
4536
|
function dA(I) {
|
|
@@ -4566,9 +4566,9 @@ const RW = { class: "apf-pdf-preview" }, HW = { class: "apf-pdf-preview__toolbar
|
|
|
4566
4566
|
forceIframe: { type: Boolean, default: !1 }
|
|
4567
4567
|
},
|
|
4568
4568
|
setup(I) {
|
|
4569
|
-
const g = I, C = t(!1), Z = t(!1), A = t(null), d = t(1), l = t(0), c = t(1.2), G = t(null), b = jC(null), i = jC(null), w =
|
|
4569
|
+
const g = I, C = t(!1), Z = t(!1), A = t(null), d = t(1), l = t(0), c = t(1.2), G = t(null), b = jC(null), i = jC(null), w = n(() => C.value && !g.forceIframe), s = n(
|
|
4570
4570
|
() => w.value ? Z.value : g.loading
|
|
4571
|
-
),
|
|
4571
|
+
), R = n(
|
|
4572
4572
|
() => w.value ? A.value : g.error
|
|
4573
4573
|
);
|
|
4574
4574
|
async function V(e) {
|
|
@@ -4667,7 +4667,7 @@ const RW = { class: "apf-pdf-preview" }, HW = { class: "apf-pdf-preview__toolbar
|
|
|
4667
4667
|
}, "+", 8, DW)
|
|
4668
4668
|
])
|
|
4669
4669
|
]),
|
|
4670
|
-
s.value ? (m(), W("div", FW, "加载中...")) :
|
|
4670
|
+
s.value ? (m(), W("div", FW, "加载中...")) : R.value ? (m(), W("div", pW, h(R.value), 1)) : (m(), W("div", {
|
|
4671
4671
|
key: 2,
|
|
4672
4672
|
class: "apf-pdf-preview__canvas-wrap",
|
|
4673
4673
|
style: dI({ minHeight: I.minHeight })
|
|
@@ -4679,7 +4679,7 @@ const RW = { class: "apf-pdf-preview" }, HW = { class: "apf-pdf-preview__toolbar
|
|
|
4679
4679
|
}, null, 8, JW)
|
|
4680
4680
|
], 4))
|
|
4681
4681
|
], 64)) : (m(), W(Q, { key: 1 }, [
|
|
4682
|
-
s.value ? (m(), W("div", zW, "加载中...")) :
|
|
4682
|
+
s.value ? (m(), W("div", zW, "加载中...")) : R.value ? (m(), W("div", kW, h(R.value), 1)) : I.url ? CI(e.$slots, "default", { url: I.url }, () => [
|
|
4683
4683
|
Y("iframe", {
|
|
4684
4684
|
class: "apf-pdf-preview__frame",
|
|
4685
4685
|
src: I.url,
|
|
@@ -4725,12 +4725,12 @@ const RW = { class: "apf-pdf-preview" }, HW = { class: "apf-pdf-preview__toolbar
|
|
|
4725
4725
|
emits: ["update:modelValue"],
|
|
4726
4726
|
setup(I, { emit: g }) {
|
|
4727
4727
|
const C = I, Z = g, A = t(!1), d = t(null), l = t([]), c = t([]), G = t([]), b = t(0), i = t(""), w = t(!1);
|
|
4728
|
-
let s = null,
|
|
4728
|
+
let s = null, R = null;
|
|
4729
4729
|
function V(J) {
|
|
4730
|
-
if (!s || !
|
|
4730
|
+
if (!s || !R) return;
|
|
4731
4731
|
const H = s.Sheets[J];
|
|
4732
4732
|
if (!H) return;
|
|
4733
|
-
const z =
|
|
4733
|
+
const z = R.sheet_to_json(H, {
|
|
4734
4734
|
header: 1,
|
|
4735
4735
|
defval: ""
|
|
4736
4736
|
});
|
|
@@ -4748,7 +4748,7 @@ const RW = { class: "apf-pdf-preview" }, HW = { class: "apf-pdf-preview__toolbar
|
|
|
4748
4748
|
}
|
|
4749
4749
|
A.value = !0, d.value = null;
|
|
4750
4750
|
try {
|
|
4751
|
-
s = H.read(J, { type: "array" }),
|
|
4751
|
+
s = H.read(J, { type: "array" }), R = H.utils, l.value = s.SheetNames, w.value = !0, s.SheetNames.length && (i.value = s.SheetNames[0], Z("update:modelValue", i.value), V(i.value));
|
|
4752
4752
|
} catch (z) {
|
|
4753
4753
|
w.value = !1, d.value = z instanceof Error ? z.message : "Excel 解析失败";
|
|
4754
4754
|
} finally {
|
|
@@ -4780,17 +4780,17 @@ const RW = { class: "apf-pdf-preview" }, HW = { class: "apf-pdf-preview__toolbar
|
|
|
4780
4780
|
function o(J) {
|
|
4781
4781
|
Z("update:modelValue", J), w.value && (i.value = J, V(J));
|
|
4782
4782
|
}
|
|
4783
|
-
const S =
|
|
4783
|
+
const S = n(
|
|
4784
4784
|
() => w.value ? l.value : C.sheetNames
|
|
4785
|
-
), k =
|
|
4785
|
+
), k = n(
|
|
4786
4786
|
() => w.value ? i.value : C.modelValue
|
|
4787
|
-
), L =
|
|
4787
|
+
), L = n(
|
|
4788
4788
|
() => w.value ? c.value : C.headers
|
|
4789
|
-
), K =
|
|
4789
|
+
), K = n(() => w.value ? G.value : C.rows), e = n(
|
|
4790
4790
|
() => w.value ? b.value : C.totalRows
|
|
4791
|
-
), y =
|
|
4791
|
+
), y = n(
|
|
4792
4792
|
() => w.value || C.src || C.arrayBuffer ? A.value : C.loading
|
|
4793
|
-
), p =
|
|
4793
|
+
), p = n(
|
|
4794
4794
|
() => w.value || C.src || C.arrayBuffer ? d.value : C.error
|
|
4795
4795
|
);
|
|
4796
4796
|
return (J, H) => (m(), W("div", TW, [
|
|
@@ -4799,15 +4799,15 @@ const RW = { class: "apf-pdf-preview" }, HW = { class: "apf-pdf-preview__toolbar
|
|
|
4799
4799
|
(m(!0), W(Q, null, q(S.value, (z) => (m(), W("button", {
|
|
4800
4800
|
key: z,
|
|
4801
4801
|
type: "button",
|
|
4802
|
-
class:
|
|
4802
|
+
class: u(["apf-excel-preview__tab", { "apf-excel-preview__tab--active": k.value === z }]),
|
|
4803
4803
|
onClick: (D) => o(z)
|
|
4804
4804
|
}, h(z), 11, QW))), 128))
|
|
4805
4805
|
]),
|
|
4806
4806
|
e.value > 0 ? (m(), W("div", UW, [
|
|
4807
4807
|
gI(h(e.value) + " 行 ", 1),
|
|
4808
|
-
e.value > I.maxPreviewRows ? (m(), W("span", vW, "(显示前 " + h(I.maxPreviewRows) + " 行)", 1)) :
|
|
4809
|
-
])) :
|
|
4810
|
-
])) :
|
|
4808
|
+
e.value > I.maxPreviewRows ? (m(), W("span", vW, "(显示前 " + h(I.maxPreviewRows) + " 行)", 1)) : a("", !0)
|
|
4809
|
+
])) : a("", !0)
|
|
4810
|
+
])) : a("", !0),
|
|
4811
4811
|
y.value ? (m(), W("div", OW, "加载中...")) : p.value ? (m(), W("div", EW, h(p.value), 1)) : L.value.length ? (m(), W("div", PW, [
|
|
4812
4812
|
Y("table", rW, [
|
|
4813
4813
|
Y("thead", null, [
|
|
@@ -4860,30 +4860,30 @@ const RW = { class: "apf-pdf-preview" }, HW = { class: "apf-pdf-preview__toolbar
|
|
|
4860
4860
|
},
|
|
4861
4861
|
emits: ["download", "close"],
|
|
4862
4862
|
setup(I, { emit: g }) {
|
|
4863
|
-
const C = I, Z = g, A =
|
|
4863
|
+
const C = I, Z = g, A = n(() => {
|
|
4864
4864
|
const w = (C.mimetype || "").toLowerCase(), s = C.filename.toLowerCase();
|
|
4865
4865
|
return w.includes("pdf") || s.endsWith(".pdf") || !!C.pdfUrl;
|
|
4866
|
-
}), d =
|
|
4866
|
+
}), d = n(() => {
|
|
4867
4867
|
const w = (C.mimetype || "").toLowerCase(), s = C.filename.toLowerCase();
|
|
4868
4868
|
return !!C.excelUrl || w.includes("sheet") || w.includes("excel") || s.endsWith(".xls") || s.endsWith(".xlsx");
|
|
4869
|
-
}), l =
|
|
4869
|
+
}), l = n(() => {
|
|
4870
4870
|
var s;
|
|
4871
4871
|
const w = [];
|
|
4872
4872
|
return C.mimetype && w.push(C.mimetype), C.size != null && w.push(GA(C.size) || `${C.size} bytes`), (s = C.chunks) != null && s.length && w.push(`${C.chunks.length} 块`), C.extractionMethod && w.push(C.extractionMethod), w.join(" · ");
|
|
4873
|
-
}), c =
|
|
4873
|
+
}), c = n(() => {
|
|
4874
4874
|
var w;
|
|
4875
|
-
return (w = C.chunks) != null && w.length ? C.chunks.map((s,
|
|
4875
|
+
return (w = C.chunks) != null && w.length ? C.chunks.map((s, R) => `${s.index != null ? `[${s.index}]` : `[${R + 1}]`}
|
|
4876
4876
|
${s.text}`).join(`
|
|
4877
4877
|
|
|
4878
4878
|
`) : "";
|
|
4879
|
-
}), G =
|
|
4879
|
+
}), G = n(() => !!C.pdfUrl && A.value), b = n(() => !!C.excelUrl && d.value && !G.value), i = n(() => !G.value && !b.value);
|
|
4880
4880
|
return (w, s) => {
|
|
4881
|
-
const
|
|
4881
|
+
const R = _("el-button"), V = _("el-scrollbar");
|
|
4882
4882
|
return m(), W("div", IB, [
|
|
4883
4883
|
I.loading ? (m(), W("div", gB, "加载中...")) : I.error ? (m(), W("div", CB, h(I.error), 1)) : (m(), W(Q, { key: 2 }, [
|
|
4884
|
-
l.value ? (m(), W("div", AB, h(l.value), 1)) :
|
|
4884
|
+
l.value ? (m(), W("div", AB, h(l.value), 1)) : a("", !0),
|
|
4885
4885
|
I.hasOriginalFile ? (m(), W("div", ZB, [
|
|
4886
|
-
II(
|
|
4886
|
+
II(R, {
|
|
4887
4887
|
size: "small",
|
|
4888
4888
|
type: "primary",
|
|
4889
4889
|
plain: "",
|
|
@@ -4894,7 +4894,7 @@ ${s.text}`).join(`
|
|
|
4894
4894
|
])]),
|
|
4895
4895
|
_: 1
|
|
4896
4896
|
})
|
|
4897
|
-
])) :
|
|
4897
|
+
])) : a("", !0),
|
|
4898
4898
|
G.value ? (m(), W("div", lB, [
|
|
4899
4899
|
CI(w.$slots, "pdf", { url: I.pdfUrl }, () => [
|
|
4900
4900
|
II(cl, {
|
|
@@ -4907,7 +4907,7 @@ ${s.text}`).join(`
|
|
|
4907
4907
|
CI(w.$slots, "excel", { url: I.excelUrl }, () => [
|
|
4908
4908
|
II($W, { src: I.excelUrl }, null, 8, ["src"])
|
|
4909
4909
|
], !0)
|
|
4910
|
-
])) : i.value ? (m(),
|
|
4910
|
+
])) : i.value ? (m(), T(V, {
|
|
4911
4911
|
key: 4,
|
|
4912
4912
|
class: "apf-doc-preview__scroll"
|
|
4913
4913
|
}, {
|
|
@@ -4915,12 +4915,12 @@ ${s.text}`).join(`
|
|
|
4915
4915
|
Y("pre", GB, h(c.value || "暂无预览内容"), 1)
|
|
4916
4916
|
]),
|
|
4917
4917
|
_: 1
|
|
4918
|
-
})) :
|
|
4918
|
+
})) : a("", !0)
|
|
4919
4919
|
], 64))
|
|
4920
4920
|
]);
|
|
4921
4921
|
};
|
|
4922
4922
|
}
|
|
4923
|
-
}), bB = /* @__PURE__ */ U(cB, [["__scopeId", "data-v-83366d94"]]),
|
|
4923
|
+
}), bB = /* @__PURE__ */ U(cB, [["__scopeId", "data-v-83366d94"]]), YN = /* @__PURE__ */ j({
|
|
4924
4924
|
__name: "DocumentPreviewDrawer",
|
|
4925
4925
|
props: {
|
|
4926
4926
|
modelValue: { type: Boolean },
|
|
@@ -4944,7 +4944,7 @@ ${s.text}`).join(`
|
|
|
4944
4944
|
}
|
|
4945
4945
|
return (A, d) => {
|
|
4946
4946
|
const l = _("el-drawer");
|
|
4947
|
-
return m(),
|
|
4947
|
+
return m(), T(l, {
|
|
4948
4948
|
"model-value": I.modelValue,
|
|
4949
4949
|
title: I.filename || "文档预览",
|
|
4950
4950
|
size: I.sizeDrawer,
|
|
@@ -4996,7 +4996,7 @@ ${s.text}`).join(`
|
|
|
4996
4996
|
alt: { default: "预览图" }
|
|
4997
4997
|
},
|
|
4998
4998
|
setup(I) {
|
|
4999
|
-
const g = I, C = t(!1), Z = t(0), A =
|
|
4999
|
+
const g = I, C = t(!1), Z = t(0), A = n(() => {
|
|
5000
5000
|
var l;
|
|
5001
5001
|
return (l = g.urls) != null && l.length ? g.urls.filter(Boolean) : g.url ? [g.url] : [];
|
|
5002
5002
|
});
|
|
@@ -5005,7 +5005,7 @@ ${s.text}`).join(`
|
|
|
5005
5005
|
}
|
|
5006
5006
|
return (l, c) => A.value.length ? (m(), W("div", {
|
|
5007
5007
|
key: 0,
|
|
5008
|
-
class:
|
|
5008
|
+
class: u(["apf-image-preview", `apf-image-preview--${I.size}`])
|
|
5009
5009
|
}, [
|
|
5010
5010
|
(m(!0), W(Q, null, q(A.value, (G, b) => (m(), W("button", {
|
|
5011
5011
|
key: `${G}-${b}`,
|
|
@@ -5019,14 +5019,14 @@ ${s.text}`).join(`
|
|
|
5019
5019
|
loading: "lazy"
|
|
5020
5020
|
}, null, 8, iB)
|
|
5021
5021
|
], 8, mB))), 128)),
|
|
5022
|
-
C.value && A.value.length ? (m(),
|
|
5022
|
+
C.value && A.value.length ? (m(), T($(Ad), {
|
|
5023
5023
|
key: 0,
|
|
5024
5024
|
"url-list": A.value,
|
|
5025
5025
|
"initial-index": Z.value,
|
|
5026
5026
|
teleported: "",
|
|
5027
5027
|
onClose: c[0] || (c[0] = (G) => C.value = !1)
|
|
5028
|
-
}, null, 8, ["url-list", "initial-index"])) :
|
|
5029
|
-
], 2)) :
|
|
5028
|
+
}, null, 8, ["url-list", "initial-index"])) : a("", !0)
|
|
5029
|
+
], 2)) : a("", !0);
|
|
5030
5030
|
}
|
|
5031
5031
|
}), BB = /* @__PURE__ */ U(WB, [["__scopeId", "data-v-40f66176"]]), YB = ["src"], sB = /* @__PURE__ */ j({
|
|
5032
5032
|
__name: "VideoPreviewCard",
|
|
@@ -5036,7 +5036,7 @@ ${s.text}`).join(`
|
|
|
5036
5036
|
},
|
|
5037
5037
|
setup(I) {
|
|
5038
5038
|
return (g, C) => (m(), W("video", {
|
|
5039
|
-
class:
|
|
5039
|
+
class: u(["apf-video-preview", `apf-video-preview--${I.size}`]),
|
|
5040
5040
|
src: I.url,
|
|
5041
5041
|
controls: "",
|
|
5042
5042
|
preload: "metadata",
|
|
@@ -5089,7 +5089,7 @@ const NB = {
|
|
|
5089
5089
|
maxHeight: { default: "240px" }
|
|
5090
5090
|
},
|
|
5091
5091
|
setup(I) {
|
|
5092
|
-
const g = I, { copy: C } = VB(), Z =
|
|
5092
|
+
const g = I, { copy: C } = VB(), Z = n(() => g.text.replace(/\s+/g, " ").trim().slice(0, 64));
|
|
5093
5093
|
async function A() {
|
|
5094
5094
|
await C(g.text);
|
|
5095
5095
|
}
|
|
@@ -5115,17 +5115,17 @@ const NB = {
|
|
|
5115
5115
|
},
|
|
5116
5116
|
emits: ["preview"],
|
|
5117
5117
|
setup(I, { emit: g }) {
|
|
5118
|
-
const C = I, Z = g, A =
|
|
5118
|
+
const C = I, Z = g, A = n(() => C.item.kind === "pdf" ? "PDF" : C.item.kind === "office" ? dA({
|
|
5119
5119
|
id: C.item.id,
|
|
5120
5120
|
filename: C.item.filename || C.item.label || "file",
|
|
5121
5121
|
mimetype: C.item.mimetype || ""
|
|
5122
|
-
}) : "文件"), d =
|
|
5122
|
+
}) : "文件"), d = n(() => C.item.filename || C.item.label || A.value);
|
|
5123
5123
|
return (l, c) => (m(), W("button", {
|
|
5124
5124
|
type: "button",
|
|
5125
5125
|
class: "apf-file-chip",
|
|
5126
5126
|
onClick: c[0] || (c[0] = UI((G) => Z("preview", I.item), ["stop"]))
|
|
5127
5127
|
}, [
|
|
5128
|
-
II($(
|
|
5128
|
+
II($(XI), {
|
|
5129
5129
|
name: "document",
|
|
5130
5130
|
size: 14
|
|
5131
5131
|
}),
|
|
@@ -5154,22 +5154,22 @@ const NB = {
|
|
|
5154
5154
|
},
|
|
5155
5155
|
emits: ["preview"],
|
|
5156
5156
|
setup(I, { emit: g }) {
|
|
5157
|
-
const C = I, Z = g, A = t(!1), d = t(null), l =
|
|
5157
|
+
const C = I, Z = g, A = t(!1), d = t(null), l = n(() => C.items.slice(0, C.max)), c = n(
|
|
5158
5158
|
() => l.value.filter((X) => X.kind === "image" && X.url).map((X) => X.url)
|
|
5159
|
-
), G =
|
|
5159
|
+
), G = n(() => l.value.filter((X) => X.kind === "video" && X.url)), b = n(() => l.value.filter((X) => {
|
|
5160
5160
|
var o;
|
|
5161
5161
|
return X.kind === "json" && ((o = X.text) == null ? void 0 : o.trim());
|
|
5162
|
-
})), i =
|
|
5162
|
+
})), i = n(() => l.value.filter((X) => {
|
|
5163
5163
|
var o;
|
|
5164
5164
|
return X.kind === "text" && ((o = X.text) == null ? void 0 : o.trim());
|
|
5165
|
-
})), w =
|
|
5165
|
+
})), w = n(
|
|
5166
5166
|
() => l.value.filter(
|
|
5167
5167
|
(X) => X.kind === "pdf" || X.kind === "office" || X.kind === "file" || X.kind === "image" && !X.url && X.documentId
|
|
5168
5168
|
)
|
|
5169
|
-
), s =
|
|
5169
|
+
), s = n(
|
|
5170
5170
|
() => c.value.length > 0 || G.value.length > 0 || b.value.length > 0 || i.value.length > 0 || w.value.length > 0
|
|
5171
5171
|
);
|
|
5172
|
-
function
|
|
5172
|
+
function R(X) {
|
|
5173
5173
|
Z("preview", X);
|
|
5174
5174
|
}
|
|
5175
5175
|
function V(X) {
|
|
@@ -5179,50 +5179,50 @@ const NB = {
|
|
|
5179
5179
|
var S, k;
|
|
5180
5180
|
return s.value ? (m(), W("div", {
|
|
5181
5181
|
key: 0,
|
|
5182
|
-
class:
|
|
5182
|
+
class: u(["apf-artifact-gallery", `apf-artifact-gallery--${I.size}`])
|
|
5183
5183
|
}, [
|
|
5184
|
-
c.value.length ? (m(),
|
|
5184
|
+
c.value.length ? (m(), T(BB, {
|
|
5185
5185
|
key: 0,
|
|
5186
5186
|
urls: c.value,
|
|
5187
5187
|
size: I.size
|
|
5188
|
-
}, null, 8, ["urls", "size"])) :
|
|
5188
|
+
}, null, 8, ["urls", "size"])) : a("", !0),
|
|
5189
5189
|
G.value.length ? (m(), W("div", MB, [
|
|
5190
|
-
(m(!0), W(Q, null, q(G.value, (L) => (m(),
|
|
5190
|
+
(m(!0), W(Q, null, q(G.value, (L) => (m(), T(wB, {
|
|
5191
5191
|
key: L.id,
|
|
5192
5192
|
url: L.url,
|
|
5193
5193
|
size: I.size
|
|
5194
5194
|
}, null, 8, ["url", "size"]))), 128))
|
|
5195
|
-
])) :
|
|
5195
|
+
])) : a("", !0),
|
|
5196
5196
|
b.value.length ? (m(), W("div", KB, [
|
|
5197
|
-
(m(!0), W(Q, null, q(b.value, (L) => (m(),
|
|
5197
|
+
(m(!0), W(Q, null, q(b.value, (L) => (m(), T($(VW), {
|
|
5198
5198
|
key: L.id,
|
|
5199
5199
|
title: L.label || "JSON 输出",
|
|
5200
5200
|
content: L.text,
|
|
5201
5201
|
onOpenDetail: (K) => V(L)
|
|
5202
5202
|
}, null, 8, ["title", "content", "onOpenDetail"]))), 128))
|
|
5203
|
-
])) :
|
|
5203
|
+
])) : a("", !0),
|
|
5204
5204
|
w.value.length ? (m(), W("div", SB, [
|
|
5205
|
-
(m(!0), W(Q, null, q(w.value, (L) => (m(),
|
|
5205
|
+
(m(!0), W(Q, null, q(w.value, (L) => (m(), T(nB, {
|
|
5206
5206
|
key: L.id,
|
|
5207
5207
|
item: L,
|
|
5208
|
-
onPreview:
|
|
5208
|
+
onPreview: R
|
|
5209
5209
|
}, null, 8, ["item"]))), 128))
|
|
5210
|
-
])) :
|
|
5210
|
+
])) : a("", !0),
|
|
5211
5211
|
i.value.length ? (m(), W("div", DB, [
|
|
5212
|
-
(m(!0), W(Q, null, q(i.value, (L) => (m(),
|
|
5212
|
+
(m(!0), W(Q, null, q(i.value, (L) => (m(), T(RB, {
|
|
5213
5213
|
key: L.id,
|
|
5214
5214
|
text: L.text,
|
|
5215
5215
|
label: L.label,
|
|
5216
5216
|
size: I.size
|
|
5217
5217
|
}, null, 8, ["text", "label", "size"]))), 128))
|
|
5218
|
-
])) :
|
|
5218
|
+
])) : a("", !0),
|
|
5219
5219
|
II($(oW), {
|
|
5220
5220
|
modelValue: A.value,
|
|
5221
5221
|
"onUpdate:modelValue": o[0] || (o[0] = (L) => A.value = L),
|
|
5222
5222
|
title: ((S = d.value) == null ? void 0 : S.label) || "JSON 详情",
|
|
5223
5223
|
content: (k = d.value) == null ? void 0 : k.text
|
|
5224
5224
|
}, null, 8, ["modelValue", "title", "content"])
|
|
5225
|
-
], 2)) :
|
|
5225
|
+
], 2)) : a("", !0);
|
|
5226
5226
|
};
|
|
5227
5227
|
}
|
|
5228
5228
|
}), cA = /* @__PURE__ */ U(FB, [["__scopeId", "data-v-9949695b"]]), pB = /* @__PURE__ */ j({
|
|
@@ -5234,7 +5234,7 @@ const NB = {
|
|
|
5234
5234
|
emits: ["preview"],
|
|
5235
5235
|
setup(I, { emit: g }) {
|
|
5236
5236
|
const C = g;
|
|
5237
|
-
return (Z, A) => (m(),
|
|
5237
|
+
return (Z, A) => (m(), T(cA, {
|
|
5238
5238
|
class: "apf-node-artifact-strip",
|
|
5239
5239
|
items: I.items,
|
|
5240
5240
|
size: "compact",
|
|
@@ -5242,7 +5242,7 @@ const NB = {
|
|
|
5242
5242
|
onPreview: A[0] || (A[0] = (d) => C("preview", d))
|
|
5243
5243
|
}, null, 8, ["items", "max"]));
|
|
5244
5244
|
}
|
|
5245
|
-
}),
|
|
5245
|
+
}), sN = /* @__PURE__ */ U(pB, [["__scopeId", "data-v-27af4171"]]), JB = {
|
|
5246
5246
|
key: 0,
|
|
5247
5247
|
class: "apf-hitl-artifact-panel"
|
|
5248
5248
|
}, zB = {
|
|
@@ -5259,16 +5259,16 @@ const NB = {
|
|
|
5259
5259
|
setup(I, { emit: g }) {
|
|
5260
5260
|
const C = g;
|
|
5261
5261
|
return (Z, A) => I.items.length ? (m(), W("section", JB, [
|
|
5262
|
-
I.title ? (m(), W("header", zB, h(I.title), 1)) :
|
|
5262
|
+
I.title ? (m(), W("header", zB, h(I.title), 1)) : a("", !0),
|
|
5263
5263
|
II(cA, {
|
|
5264
5264
|
items: I.items,
|
|
5265
5265
|
size: "default",
|
|
5266
5266
|
max: I.max,
|
|
5267
5267
|
onPreview: A[0] || (A[0] = (d) => C("preview", d))
|
|
5268
5268
|
}, null, 8, ["items", "max"])
|
|
5269
|
-
])) :
|
|
5269
|
+
])) : a("", !0);
|
|
5270
5270
|
}
|
|
5271
|
-
}),
|
|
5271
|
+
}), wN = /* @__PURE__ */ U(kB, [["__scopeId", "data-v-8c940624"]]), eB = { class: "apf-execution-artifact-panel" }, LB = { class: "apf-execution-artifact-panel__head" }, tB = { class: "apf-execution-artifact-panel__title-row" }, TB = { class: "apf-execution-artifact-panel__title" }, xB = {
|
|
5272
5272
|
key: 0,
|
|
5273
5273
|
class: "apf-execution-artifact-panel__count"
|
|
5274
5274
|
}, jB = {
|
|
@@ -5303,10 +5303,10 @@ const NB = {
|
|
|
5303
5303
|
(o) => d.includes(o.kind) || o.kind === "image" && !o.url && !!o.documentId
|
|
5304
5304
|
) : X === "image" ? V.filter((o) => o.kind === "image" && !!o.url) : V.filter((o) => l(o.kind, X));
|
|
5305
5305
|
}
|
|
5306
|
-
const G =
|
|
5306
|
+
const G = n(() => {
|
|
5307
5307
|
var V;
|
|
5308
5308
|
return (V = C.groups) != null && V.length ? C.groups.flatMap((X) => X.items) : C.items ?? [];
|
|
5309
|
-
}), b =
|
|
5309
|
+
}), b = n(() => {
|
|
5310
5310
|
const V = G.value;
|
|
5311
5311
|
return {
|
|
5312
5312
|
all: V.length,
|
|
@@ -5324,7 +5324,7 @@ const NB = {
|
|
|
5324
5324
|
(X) => d.includes(X.kind) || X.kind === "image" && !X.url && !!X.documentId
|
|
5325
5325
|
).length
|
|
5326
5326
|
};
|
|
5327
|
-
}), i =
|
|
5327
|
+
}), i = n(() => {
|
|
5328
5328
|
const V = b.value;
|
|
5329
5329
|
return [
|
|
5330
5330
|
{ value: "all", label: "全部", count: V.all },
|
|
@@ -5334,7 +5334,7 @@ const NB = {
|
|
|
5334
5334
|
{ value: "json", label: "JSON", count: V.json },
|
|
5335
5335
|
{ value: "file", label: "文件", count: V.file }
|
|
5336
5336
|
].filter((X) => X.value === "all" || X.count > 0);
|
|
5337
|
-
}), w =
|
|
5337
|
+
}), w = n(() => {
|
|
5338
5338
|
var X;
|
|
5339
5339
|
if ((X = C.groups) != null && X.length)
|
|
5340
5340
|
return C.groups.map((o) => ({
|
|
@@ -5343,28 +5343,28 @@ const NB = {
|
|
|
5343
5343
|
})).filter((o) => o.items.length > 0);
|
|
5344
5344
|
const V = c(C.items ?? []);
|
|
5345
5345
|
return V.length ? [{ key: "_all", label: "", items: V }] : [];
|
|
5346
|
-
}), s =
|
|
5346
|
+
}), s = n(() => G.value.length > 0), R = n(() => w.value.some((V) => V.items.length > 0));
|
|
5347
5347
|
return (V, X) => (m(), W("section", eB, [
|
|
5348
5348
|
Y("header", LB, [
|
|
5349
5349
|
Y("div", tB, [
|
|
5350
5350
|
Y("h3", TB, h(I.title), 1),
|
|
5351
|
-
s.value ? (m(), W("span", xB, h(b.value.all) + " 项 ", 1)) :
|
|
5351
|
+
s.value ? (m(), W("span", xB, h(b.value.all) + " 项 ", 1)) : a("", !0)
|
|
5352
5352
|
]),
|
|
5353
5353
|
I.showFilters && s.value && i.value.length > 1 ? (m(), W("div", jB, [
|
|
5354
5354
|
(m(!0), W(Q, null, q(i.value, (o) => (m(), W("button", {
|
|
5355
5355
|
key: o.value,
|
|
5356
5356
|
type: "button",
|
|
5357
5357
|
role: "tab",
|
|
5358
|
-
class:
|
|
5358
|
+
class: u(["apf-execution-artifact-panel__chip", { "is-active": A.value === o.value }]),
|
|
5359
5359
|
"aria-selected": A.value === o.value,
|
|
5360
5360
|
onClick: (S) => A.value = o.value
|
|
5361
5361
|
}, [
|
|
5362
5362
|
gI(h(o.label) + " ", 1),
|
|
5363
5363
|
Y("em", null, h(o.count), 1)
|
|
5364
5364
|
], 10, QB))), 128))
|
|
5365
|
-
])) :
|
|
5365
|
+
])) : a("", !0)
|
|
5366
5366
|
]),
|
|
5367
|
-
s.value ?
|
|
5367
|
+
s.value ? R.value ? (m(), W("div", UB, [
|
|
5368
5368
|
(m(!0), W(Q, null, q(w.value, (o) => (m(), W("div", {
|
|
5369
5369
|
key: o.key,
|
|
5370
5370
|
class: "apf-execution-artifact-panel__group"
|
|
@@ -5372,7 +5372,7 @@ const NB = {
|
|
|
5372
5372
|
o.label ? (m(), W("div", vB, [
|
|
5373
5373
|
gI(h(o.label) + " ", 1),
|
|
5374
5374
|
Y("em", null, h(o.items.length), 1)
|
|
5375
|
-
])) :
|
|
5375
|
+
])) : a("", !0),
|
|
5376
5376
|
II(cA, {
|
|
5377
5377
|
items: o.items,
|
|
5378
5378
|
size: "default",
|
|
@@ -5380,13 +5380,13 @@ const NB = {
|
|
|
5380
5380
|
onPreview: X[0] || (X[0] = (S) => Z("preview", S))
|
|
5381
5381
|
}, null, 8, ["items", "max"])
|
|
5382
5382
|
]))), 128))
|
|
5383
|
-
])) : (m(),
|
|
5383
|
+
])) : (m(), T(cg, {
|
|
5384
5384
|
key: 1,
|
|
5385
5385
|
compact: "",
|
|
5386
5386
|
icon: "search",
|
|
5387
5387
|
title: "无匹配产物",
|
|
5388
5388
|
description: "换一个类型筛选试试。"
|
|
5389
|
-
})) : (m(),
|
|
5389
|
+
})) : (m(), T(cg, {
|
|
5390
5390
|
key: 0,
|
|
5391
5391
|
compact: "",
|
|
5392
5392
|
icon: "folder",
|
|
@@ -5395,7 +5395,7 @@ const NB = {
|
|
|
5395
5395
|
}))
|
|
5396
5396
|
]));
|
|
5397
5397
|
}
|
|
5398
|
-
}),
|
|
5398
|
+
}), VN = /* @__PURE__ */ U(OB, [["__scopeId", "data-v-704305fc"]]);
|
|
5399
5399
|
function bA() {
|
|
5400
5400
|
return { async: !1, breaks: !1, extensions: null, gfm: !0, hooks: null, pedantic: !1, renderer: null, silent: !1, tokenizer: null, walkTokens: null };
|
|
5401
5401
|
}
|
|
@@ -5414,7 +5414,7 @@ function Ng(I) {
|
|
|
5414
5414
|
function AI(I, g = "") {
|
|
5415
5415
|
let C = typeof I == "string" ? I : I.source, Z = { replace: (A, d) => {
|
|
5416
5416
|
let l = typeof d == "string" ? d : d.source;
|
|
5417
|
-
return l = l.replace(
|
|
5417
|
+
return l = l.replace(RI.caret, "$1"), C = C.replace(A, l), Z;
|
|
5418
5418
|
}, getRegex: () => new RegExp(C, g) };
|
|
5419
5419
|
return Z;
|
|
5420
5420
|
}
|
|
@@ -5424,17 +5424,17 @@ var EB = ((I = "") => {
|
|
|
5424
5424
|
} catch {
|
|
5425
5425
|
return !1;
|
|
5426
5426
|
}
|
|
5427
|
-
})(),
|
|
5427
|
+
})(), RI = { codeRemoveIndent: /^(?: {1,4}| {0,3}\t)/gm, outputLinkReplace: /\\([\[\]])/g, indentCodeCompensation: /^(\s+)(?:```)/, beginningSpace: /^\s+/, endingHash: /#$/, startingSpaceChar: /^ /, endingSpaceChar: / $/, nonSpaceChar: /[^ ]/, newLineCharGlobal: /\n/g, tabCharGlobal: /\t/g, multipleSpaceGlobal: /\s+/g, blankLine: /^[ \t]*$/, doubleBlankLine: /\n[ \t]*\n[ \t]*$/, blockquoteStart: /^ {0,3}>/, blockquoteSetextReplace: /\n {0,3}((?:=+|-+) *)(?=\n|$)/g, blockquoteSetextReplace2: /^ {0,3}>[ \t]?/gm, listReplaceNesting: /^ {1,4}(?=( {4})*[^ ])/g, listIsTask: /^\[[ xX]\] +\S/, listReplaceTask: /^\[[ xX]\] +/, listTaskCheckbox: /\[[ xX]\]/, anyLine: /\n.*\n/, hrefBrackets: /^<(.*)>$/, tableDelimiter: /[:|]/, tableAlignChars: /^\||\| *$/g, tableRowBlankLine: /\n[ \t]*$/, tableAlignRight: /^ *-+: *$/, tableAlignCenter: /^ *:-+: *$/, tableAlignLeft: /^ *:-+ *$/, startATag: /^<a /i, endATag: /^<\/a>/i, startPreScriptTag: /^<(pre|code|kbd|script)(\s|>)/i, endPreScriptTag: /^<\/(pre|code|kbd|script)(\s|>)/i, startAngleBracket: /^</, endAngleBracket: />$/, pedanticHrefTitle: /^([^'"]*[^\s])\s+(['"])(.*)\2/, unicodeAlphaNumeric: /[\p{L}\p{N}]/u, escapeTest: /[&<>"']/, escapeReplace: /[&<>"']/g, escapeTestNoEncode: /[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/, escapeReplaceNoEncode: /[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g, caret: /(^|[^\[])\^/g, percentDecode: /%25/g, findPipe: /\|/g, splitPipe: / \|/, slashPipe: /\\\|/g, carriageReturn: /\r\n|\r/g, spaceLine: /^ +$/gm, notSpaceStart: /^\S*/, endingNewline: /\n$/, listItemRegex: (I) => new RegExp(`^( {0,3}${I})((?:[ ][^\\n]*)?(?:\\n|$))`), nextBulletRegex: Ng((I) => new RegExp(`^ {0,${I}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`)), hrRegex: Ng((I) => new RegExp(`^ {0,${I}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`)), fencesBeginRegex: Ng((I) => new RegExp(`^ {0,${I}}(?:\`\`\`|~~~)`)), headingBeginRegex: Ng((I) => new RegExp(`^ {0,${I}}#`)), htmlBeginRegex: Ng((I) => new RegExp(`^ {0,${I}}<(?:[a-z].*>|!--)`, "i")), blockquoteBeginRegex: Ng((I) => new RegExp(`^ {0,${I}}>`)) }, PB = /^(?:[ \t]*(?:\n|$))+/, rB = /^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/, fB = /^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/, Tg = /^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/, qB = /^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/, mA = / {0,3}(?:[*+-]|\d{1,9}[.)])/, ml = /^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/, il = AI(ml).replace(/bull/g, mA).replace(/blockCode/g, /(?: {4}| {0,3}\t)/).replace(/fences/g, / {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g, / {0,3}>/).replace(/heading/g, / {0,3}#{1,6}(?:\s|$)/).replace(/html/g, / {0,3}<[^\n>]+>\n/).replace(/\|table/g, "").getRegex(), _B = AI(ml).replace(/bull/g, mA).replace(/blockCode/g, /(?: {4}| {0,3}\t)/).replace(/fences/g, / {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g, / {0,3}>/).replace(/heading/g, / {0,3}#{1,6}(?:\s|$)/).replace(/html/g, / {0,3}<[^\n>]+>\n/).replace(/table/g, / {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(), iA = /^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table|[ \t]+\n)[^\n]+)*)/, $B = /^[^\n]+/, WA = /(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/, IY = AI(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label", WA).replace("title", /(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(), gY = AI(/^(bull)([ \t][^\n]*?)?(?:\n|$)/).replace(/bull/g, mA).getRegex(), YC = "address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul", BA = /<!--(?:-?>|[\s\S]*?(?:-->|$))/, CY = AI("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n*|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>[^\\n]*\\n*|$)|<![A-Z][\\s\\S]*?(?:>[^\\n]*\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>[^\\n]*\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))", "i").replace("comment", BA).replace("tag", YC).replace("attribute", / +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(), Wl = (I) => AI(iA).replace("hr", Tg).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("|table", "").replace("blockquote", " {0,3}>").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*(?:\\n|$))|~~~)[^\\n]*(?:\\n|$)").replace("list", I).replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", YC).getRegex(), AY = Wl(/ {0,3}(?:[*+-]|1[.)])[ \t]+[^ \t\n]/), ZY = Wl(/ {0,3}(?:[*+-]|\d{1,9}[.)])(?:[ \t]|\n|$)/), lY = AI(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph", ZY).getRegex(), YA = { blockquote: lY, code: rB, def: IY, fences: fB, heading: qB, hr: Tg, html: CY, lheading: il, list: gY, newline: PB, paragraph: AY, table: dg, text: $B }, VZ = AI("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr", Tg).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("blockquote", " {0,3}>").replace("code", "(?: {4}| {0,3} )[^\\n]").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*(?:\\n|$))|~~~)[^\\n]*(?:\\n|$)").replace("list", " {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", YC).getRegex(), dY = { ...YA, lheading: _B, table: VZ, paragraph: AI(iA).replace("hr", Tg).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("table", VZ).replace("blockquote", " {0,3}>").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*(?:\\n|$))|~~~)[^\\n]*(?:\\n|$)").replace("list", " {0,3}(?:[*+-]|1[.)])[ \\t]+[^ \\t\\n]").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", YC).getRegex() }, GY = { ...YA, html: AI(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment", BA).replace(/tag/g, "(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(), def: /^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/, heading: /^(#{1,6})(.*)(?:\n+|$)/, fences: dg, lheading: /^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/, paragraph: AI(iA).replace("hr", Tg).replace("heading", ` *#{1,6} *[^
|
|
5428
5428
|
]`).replace("lheading", il).replace("|table", "").replace("blockquote", " {0,3}>").replace("|fences", "").replace("|list", "").replace("|html", "").replace("|tag", "").getRegex() }, cY = /^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/, bY = /^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/, Bl = /^( {2,}|\\)\n(?!\s*$)/, mY = /^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/, vI = /[\p{P}\p{S}]/u, Hg = /[\s\p{P}\p{S}]/u, xg = /[^\s\p{P}\p{S}]/u, iY = AI(/^((?![*_])punctSpace)/, "u").replace(/punctSpace/g, Hg).getRegex(), WY = /[\p{Pi}\p{Ps}"']/u, Yl = /(?!~)[\p{P}\p{S}]/u, BY = /(?!~)[\s\p{P}\p{S}]/u, YY = /(?:[^\s\p{P}\p{S}]|~)/u, sY = AI(/link|precode-code|html/, "g").replace("link", /\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-", EB ? "(?<!`)()" : "(^^|[^`])").replace("code", /(?<b>`+)[^`]+\k<b>(?!`)/).replace("html", /<(?! )[^<>]*?>/).getRegex(), sl = /^(?:\*+(?:((?!\*)punct)|([^\s*]))?)|^_+(?:((?!_)punct)|([^\s_]))?/, wY = AI(sl, "u").replace(/punct/g, vI).getRegex(), VY = AI(sl, "u").replace(/punct/g, Yl).getRegex(), NY = /^(?:\*+(?:((?!\*)(?!openQuote)punct)|([^\s*]))?)|^_+(?:((?!_)(?!openQuote)punct)|([^\s_]))?/, XY = AI(NY, "u").replace(/openQuote/g, WY).replace(/punct/g, vI).getRegex(), wl = "^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)", oY = AI(wl, "gu").replace(/notPunctSpace/g, xg).replace(/punctSpace/g, Hg).replace(/punct/g, vI).getRegex(), hY = AI(wl, "gu").replace(/notPunctSpace/g, YY).replace(/punctSpace/g, BY).replace(/punct/g, Yl).getRegex(), aY = "^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)[\\s](\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|(?:(?!\\*)punct|notPunctSpace)(\\*+)(?!\\*)(?=notPunctSpace)", RY = AI(aY, "gu").replace(/notPunctSpace/g, xg).replace(/punctSpace/g, Hg).replace(/punct/g, vI).getRegex(), HY = AI("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)", "gu").replace(/notPunctSpace/g, xg).replace(/punctSpace/g, Hg).replace(/punct/g, vI).getRegex(), yY = "^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)[\\s](_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)|(?:(?!_)punct|notPunctSpace)(_+)(?!_)(?=notPunctSpace)", uY = AI(yY, "gu").replace(/notPunctSpace/g, xg).replace(/punctSpace/g, Hg).replace(/punct/g, vI).getRegex(), nY = AI(/^~~?(?:((?!~)punct)|[^\s~])/, "u").replace(/punct/g, vI).getRegex(), MY = "^[^~]+(?=[^~])|(?!~)punct(~~?)(?=[\\s]|$)|notPunctSpace(~~?)(?!~)(?=punctSpace|$)|(?!~)punctSpace(~~?)(?=notPunctSpace)|[\\s](~~?)(?!~)(?=punct)|(?!~)punct(~~?)(?!~)(?=punct)|notPunctSpace(~~?)(?=notPunctSpace)", KY = AI(MY, "gu").replace(/notPunctSpace/g, xg).replace(/punctSpace/g, Hg).replace(/punct/g, vI).getRegex(), SY = AI(/\\(punct)/, "gu").replace(/punct/g, vI).getRegex(), DY = AI(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme", /[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email", /[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(), FY = AI(BA).replace("(?:-->|$)", "-->").getRegex(), pY = AI("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment", FY).replace("attribute", /\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(), bC = /(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+(?!`)[^`]*?`+(?!`)|``+(?=\])|[^\[\]\\`])*?/, JY = AI(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]+(?:\n[ \t]*)?|\n[ \t]*)(title))?\s*\)/).replace("label", bC).replace("href", /<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]+|(?=\))/).replace("title", /"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(), Vl = AI(/^!?\[(label)\]\[(ref)\]/).replace("label", bC).replace("ref", WA).getRegex(), Nl = AI(/^!?\[(ref)\](?:\[\])?/).replace("ref", WA).getRegex(), zY = AI("reflink|nolink(?!\\()", "g").replace("reflink", Vl).replace("nolink", Nl).getRegex(), NZ = /[hH][tT][tT][pP][sS]?|[fF][tT][pP]/, sA = { _backpedal: dg, anyPunctuation: SY, autolink: DY, blockSkip: sY, br: Bl, code: bY, del: dg, delLDelim: dg, delRDelim: dg, emStrongLDelim: wY, emStrongRDelimAst: oY, emStrongRDelimUnd: HY, escape: cY, link: JY, nolink: Nl, punctuation: iY, reflink: Vl, reflinkSearch: zY, tag: pY, text: mY, url: dg }, kY = { ...sA, emStrongLDelim: XY, emStrongRDelimAst: RY, emStrongRDelimUnd: uY, link: AI(/^!?\[(label)\]\((.*?)\)/).replace("label", bC).getRegex(), reflink: AI(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label", bC).getRegex() }, rC = { ...sA, emStrongRDelimAst: hY, emStrongLDelim: VY, delLDelim: nY, delRDelim: KY, url: AI(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol", NZ).replace("email", /[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(), _backpedal: /(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/, del: /^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/, text: AI(/^(`+|~+|[^`~])(?:(?=[`~])|(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol", NZ).getRegex() }, eY = { ...rC, br: AI(Bl).replace("{2,}", "*").getRegex(), text: AI(rC.text).replace("\\b_", "\\b_| {2,}\\n").replace(/\{2,\}/g, "*").getRegex() }, gC = { normal: YA, gfm: dY, pedantic: GY }, Sg = { normal: sA, gfm: rC, breaks: eY, pedantic: kY }, LY = { "&": "&", "<": "<", ">": ">", '"': """, "'": "'" }, XZ = (I) => LY[I];
|
|
5429
5429
|
function jI(I, g) {
|
|
5430
5430
|
if (g) {
|
|
5431
|
-
if (
|
|
5432
|
-
} else if (
|
|
5431
|
+
if (RI.escapeTest.test(I)) return I.replace(RI.escapeReplace, XZ);
|
|
5432
|
+
} else if (RI.escapeTestNoEncode.test(I)) return I.replace(RI.escapeReplaceNoEncode, XZ);
|
|
5433
5433
|
return I;
|
|
5434
5434
|
}
|
|
5435
5435
|
function oZ(I) {
|
|
5436
5436
|
try {
|
|
5437
|
-
I = encodeURI(I).replace(
|
|
5437
|
+
I = encodeURI(I).replace(RI.percentDecode, "%");
|
|
5438
5438
|
} catch {
|
|
5439
5439
|
return null;
|
|
5440
5440
|
}
|
|
@@ -5442,14 +5442,14 @@ function oZ(I) {
|
|
|
5442
5442
|
}
|
|
5443
5443
|
function hZ(I, g) {
|
|
5444
5444
|
var d;
|
|
5445
|
-
let C = I.replace(
|
|
5445
|
+
let C = I.replace(RI.findPipe, (l, c, G) => {
|
|
5446
5446
|
let b = !1, i = c;
|
|
5447
5447
|
for (; --i >= 0 && G[i] === "\\"; ) b = !b;
|
|
5448
5448
|
return b ? "|" : " |";
|
|
5449
|
-
}), Z = C.split(
|
|
5449
|
+
}), Z = C.split(RI.splitPipe), A = 0;
|
|
5450
5450
|
if (Z[0].trim() || Z.shift(), Z.length > 0 && !((d = Z.at(-1)) != null && d.trim()) && Z.pop(), g) if (Z.length > g) Z.splice(g);
|
|
5451
5451
|
else for (; Z.length < g; ) Z.push("");
|
|
5452
|
-
for (; A < Z.length; A++) Z[A] = Z[A].trim().replace(
|
|
5452
|
+
for (; A < Z.length; A++) Z[A] = Z[A].trim().replace(RI.slashPipe, "|");
|
|
5453
5453
|
return Z;
|
|
5454
5454
|
}
|
|
5455
5455
|
function fI(I, g, C) {
|
|
@@ -5463,7 +5463,7 @@ function fI(I, g, C) {
|
|
|
5463
5463
|
function aZ(I) {
|
|
5464
5464
|
let g = I.split(`
|
|
5465
5465
|
`), C = g.length - 1;
|
|
5466
|
-
for (; C >= 0 &&
|
|
5466
|
+
for (; C >= 0 && RI.blankLine.test(g[C]); ) C--;
|
|
5467
5467
|
return g.length - C <= 2 ? I : g.slice(0, C + 1).join(`
|
|
5468
5468
|
`);
|
|
5469
5469
|
}
|
|
@@ -5576,17 +5576,17 @@ ${i}` : i;
|
|
|
5576
5576
|
let s = d.at(-1);
|
|
5577
5577
|
if ((s == null ? void 0 : s.type) === "code") break;
|
|
5578
5578
|
if ((s == null ? void 0 : s.type) === "blockquote") {
|
|
5579
|
-
let
|
|
5580
|
-
`), X =
|
|
5579
|
+
let R = s, V = C.join(`
|
|
5580
|
+
`), X = R.raw + `
|
|
5581
5581
|
` + V.replace(this.rules.other.blockquoteSetextReplace2, ""), o = this.blockquote(X);
|
|
5582
5582
|
d[d.length - 1] = o, Z = `${Z}
|
|
5583
|
-
${V}`, A = A.substring(0, A.length -
|
|
5583
|
+
${V}`, A = A.substring(0, A.length - R.text.length) + o.text;
|
|
5584
5584
|
break;
|
|
5585
5585
|
} else if ((s == null ? void 0 : s.type) === "list") {
|
|
5586
|
-
let
|
|
5586
|
+
let R = s, V = R.raw + `
|
|
5587
5587
|
` + C.join(`
|
|
5588
5588
|
`), X = this.list(V);
|
|
5589
|
-
d[d.length - 1] = X, Z = Z.substring(0, Z.length - s.raw.length) + X.raw, A = A.substring(0, A.length -
|
|
5589
|
+
d[d.length - 1] = X, Z = Z.substring(0, Z.length - s.raw.length) + X.raw, A = A.substring(0, A.length - R.raw.length) + X.raw, C = V.substring(d.at(-1).raw.length).split(`
|
|
5590
5590
|
`);
|
|
5591
5591
|
continue;
|
|
5592
5592
|
}
|
|
@@ -5606,8 +5606,8 @@ ${V}`, A = A.substring(0, A.length - a.text.length) + o.text;
|
|
|
5606
5606
|
b = g[0], I = I.substring(b.length);
|
|
5607
5607
|
let w = TY(g[2].split(`
|
|
5608
5608
|
`, 1)[0], g[1].length), s = I.split(`
|
|
5609
|
-
`, 1)[0],
|
|
5610
|
-
if (this.options.pedantic ? (V = 2, i = w.trimStart()) :
|
|
5609
|
+
`, 1)[0], R = !w.trim(), V = 0;
|
|
5610
|
+
if (this.options.pedantic ? (V = 2, i = w.trimStart()) : R ? V = g[1].length + 1 : (V = w.search(this.rules.other.nonSpaceChar), V = V > 4 ? 1 : V, i = w.slice(V), V += g[1].length), R && this.rules.other.blankLine.test(s) && (b += s + `
|
|
5611
5611
|
`, I = I.substring(s.length + 1), G = !0), !G) {
|
|
5612
5612
|
let X = this.rules.other.nextBulletRegex(V), o = this.rules.other.hrRegex(V), S = this.rules.other.fencesBeginRegex(V), k = this.rules.other.headingBeginRegex(V), L = this.rules.other.htmlBeginRegex(V), K = this.rules.other.blockquoteBeginRegex(V);
|
|
5613
5613
|
for (; I; ) {
|
|
@@ -5617,11 +5617,11 @@ ${V}`, A = A.substring(0, A.length - a.text.length) + o.text;
|
|
|
5617
5617
|
if (y.search(this.rules.other.nonSpaceChar) >= V || !s.trim()) i += `
|
|
5618
5618
|
` + y.slice(V);
|
|
5619
5619
|
else {
|
|
5620
|
-
if (
|
|
5620
|
+
if (R || w.replace(this.rules.other.tabCharGlobal, " ").search(this.rules.other.nonSpaceChar) >= 4 || S.test(w) || k.test(w) || o.test(w)) break;
|
|
5621
5621
|
i += `
|
|
5622
5622
|
` + s;
|
|
5623
5623
|
}
|
|
5624
|
-
|
|
5624
|
+
R = !s.trim(), b += e + `
|
|
5625
5625
|
`, I = I.substring(e.length + 1), w = y.slice(V);
|
|
5626
5626
|
}
|
|
5627
5627
|
}
|
|
@@ -5767,13 +5767,13 @@ ${V}`, A = A.substring(0, A.length - a.text.length) + o.text;
|
|
|
5767
5767
|
}
|
|
5768
5768
|
if (c -= l, c > 0) continue;
|
|
5769
5769
|
l = Math.min(l, l + c + G);
|
|
5770
|
-
let s = [...Z[0]][0].length,
|
|
5770
|
+
let s = [...Z[0]][0].length, R = I.slice(0, A + Z.index + s + l);
|
|
5771
5771
|
if (Math.min(A, l) % 2) {
|
|
5772
|
-
let X =
|
|
5773
|
-
return { type: "em", raw:
|
|
5772
|
+
let X = R.slice(1, -1);
|
|
5773
|
+
return { type: "em", raw: R, text: X, tokens: this.lexer.inlineTokens(X) };
|
|
5774
5774
|
}
|
|
5775
|
-
let V =
|
|
5776
|
-
return { type: "strong", raw:
|
|
5775
|
+
let V = R.slice(2, -2);
|
|
5776
|
+
return { type: "strong", raw: R, text: V, tokens: this.lexer.inlineTokens(V) };
|
|
5777
5777
|
}
|
|
5778
5778
|
}
|
|
5779
5779
|
}
|
|
@@ -5843,7 +5843,7 @@ ${V}`, A = A.substring(0, A.length - a.text.length) + o.text;
|
|
|
5843
5843
|
GI(this, "inlineQueue");
|
|
5844
5844
|
GI(this, "tokenizer");
|
|
5845
5845
|
this.tokens = [], this.tokens.links = /* @__PURE__ */ Object.create(null), this.options = g || ig, this.options.tokenizer = this.options.tokenizer || new mC(), this.tokenizer = this.options.tokenizer, this.tokenizer.options = this.options, this.tokenizer.lexer = this, this.inlineQueue = [], this.state = { inLink: !1, inRawBlock: !1, linkEmitted: !1, top: !0 };
|
|
5846
|
-
let C = { other:
|
|
5846
|
+
let C = { other: RI, block: gC.normal, inline: Sg.normal };
|
|
5847
5847
|
this.options.pedantic ? (C.block = gC.pedantic, C.inline = Sg.pedantic) : this.options.gfm && (C.block = gC.gfm, this.options.breaks ? C.inline = Sg.breaks : C.inline = Sg.gfm), this.tokenizer.rules = C;
|
|
5848
5848
|
}
|
|
5849
5849
|
static get rules() {
|
|
@@ -5856,7 +5856,7 @@ ${V}`, A = A.substring(0, A.length - a.text.length) + o.text;
|
|
|
5856
5856
|
return new fC(C).inlineTokens(g);
|
|
5857
5857
|
}
|
|
5858
5858
|
lex(g) {
|
|
5859
|
-
g = g.replace(
|
|
5859
|
+
g = g.replace(RI.carriageReturn, `
|
|
5860
5860
|
`), this.blockTokens(g, this.tokens);
|
|
5861
5861
|
for (let C = 0; C < this.inlineQueue.length; C++) {
|
|
5862
5862
|
let Z = this.inlineQueue[C];
|
|
@@ -5866,7 +5866,7 @@ ${V}`, A = A.substring(0, A.length - a.text.length) + o.text;
|
|
|
5866
5866
|
}
|
|
5867
5867
|
blockTokens(g, C = [], Z = !1) {
|
|
5868
5868
|
var d, l, c;
|
|
5869
|
-
this.tokenizer.lexer = this, this.options.pedantic && (g = g.replace(
|
|
5869
|
+
this.tokenizer.lexer = this, this.options.pedantic && (g = g.replace(RI.tabCharGlobal, " ").replace(RI.spaceLine, ""));
|
|
5870
5870
|
let A = 1 / 0;
|
|
5871
5871
|
for (; g; ) {
|
|
5872
5872
|
if (g.length < A) A = g.length;
|
|
@@ -5936,8 +5936,8 @@ ${V}`, A = A.substring(0, A.length - a.text.length) + o.text;
|
|
|
5936
5936
|
let b = g;
|
|
5937
5937
|
if ((c = this.options.extensions) != null && c.startBlock) {
|
|
5938
5938
|
let i = 1 / 0, w = g.slice(1), s;
|
|
5939
|
-
this.options.extensions.startBlock.forEach((
|
|
5940
|
-
s =
|
|
5939
|
+
this.options.extensions.startBlock.forEach((R) => {
|
|
5940
|
+
s = R.call({ lexer: this }, w), typeof s == "number" && s >= 0 && (i = Math.min(i, s));
|
|
5941
5941
|
}), i < 1 / 0 && i >= 0 && (b = g.substring(0, i + 1));
|
|
5942
5942
|
}
|
|
5943
5943
|
if (this.state.top && (G = this.tokenizer.paragraph(b))) {
|
|
@@ -5982,18 +5982,18 @@ ${V}`, A = A.substring(0, A.length - a.text.length) + o.text;
|
|
|
5982
5982
|
this.tokenizer.lexer = this;
|
|
5983
5983
|
let Z = g;
|
|
5984
5984
|
if (this.tokens.links && g.includes("[")) {
|
|
5985
|
-
let s = this.tokenizer.rules.inline.reflinkSearch,
|
|
5985
|
+
let s = this.tokenizer.rules.inline.reflinkSearch, R = (V) => {
|
|
5986
5986
|
let X = V.lastIndexOf("[");
|
|
5987
5987
|
if (!Object.hasOwn(this.tokens.links, V.slice(X + 1, -1))) return V;
|
|
5988
5988
|
if (X > 1 && V.charAt(0) !== "!") {
|
|
5989
5989
|
let o = V.slice(1, X - 1);
|
|
5990
|
-
if (this.linkInText(o)) return "[" + o.replace(s,
|
|
5990
|
+
if (this.linkInText(o)) return "[" + o.replace(s, R) + "][" + "a".repeat(V.length - X - 2) + "]";
|
|
5991
5991
|
}
|
|
5992
5992
|
return "[" + "a".repeat(V.length - 2) + "]";
|
|
5993
5993
|
};
|
|
5994
|
-
Z = Z.replace(s,
|
|
5994
|
+
Z = Z.replace(s, R);
|
|
5995
5995
|
}
|
|
5996
|
-
Z = Z.replace(this.tokenizer.rules.inline.anyPunctuation, (s) => "+".repeat(s.length)), Z = Z.replace(this.tokenizer.rules.inline.blockSkip, (s,
|
|
5996
|
+
Z = Z.replace(this.tokenizer.rules.inline.anyPunctuation, (s) => "+".repeat(s.length)), Z = Z.replace(this.tokenizer.rules.inline.blockSkip, (s, R, V) => {
|
|
5997
5997
|
let X = V ? V.length : 0;
|
|
5998
5998
|
return s.slice(0, X) + "[" + "a".repeat(s.length - X - 2) + "]";
|
|
5999
5999
|
}), Z = ((G = (c = this.options.hooks) == null ? void 0 : c.emStrongMask) == null ? void 0 : G.call({ lexer: this }, Z)) ?? Z;
|
|
@@ -6049,14 +6049,14 @@ ${V}`, A = A.substring(0, A.length - a.text.length) + o.text;
|
|
|
6049
6049
|
g = g.substring(s.raw.length), C.push(s);
|
|
6050
6050
|
continue;
|
|
6051
6051
|
}
|
|
6052
|
-
let
|
|
6052
|
+
let R = g;
|
|
6053
6053
|
if ((w = this.options.extensions) != null && w.startInline) {
|
|
6054
6054
|
let V = 1 / 0, X = g.slice(1), o;
|
|
6055
6055
|
this.options.extensions.startInline.forEach((S) => {
|
|
6056
6056
|
o = S.call({ lexer: this }, X), typeof o == "number" && o >= 0 && (V = Math.min(V, o));
|
|
6057
|
-
}), V < 1 / 0 && V >= 0 && (
|
|
6057
|
+
}), V < 1 / 0 && V >= 0 && (R = g.substring(0, V + 1));
|
|
6058
6058
|
}
|
|
6059
|
-
if (s = this.tokenizer.inlineText(
|
|
6059
|
+
if (s = this.tokenizer.inlineText(R)) {
|
|
6060
6060
|
g = g.substring(s.raw.length), s.raw.slice(-1) !== "_" && (d = s.raw.slice(-1)), A = !0;
|
|
6061
6061
|
let V = C.at(-1);
|
|
6062
6062
|
(V == null ? void 0 : V.type) === "text" ? (V.raw += s.raw, V.text += s.text) : C.push(s);
|
|
@@ -6085,7 +6085,7 @@ ${V}`, A = A.substring(0, A.length - a.text.length) + o.text;
|
|
|
6085
6085
|
}
|
|
6086
6086
|
code({ text: I, lang: g, escaped: C }) {
|
|
6087
6087
|
var d;
|
|
6088
|
-
let Z = (d = (g || "").match(
|
|
6088
|
+
let Z = (d = (g || "").match(RI.notSpaceStart)) == null ? void 0 : d[0], A = I.replace(RI.endingNewline, "") + `
|
|
6089
6089
|
`;
|
|
6090
6090
|
return Z ? '<pre><code class="language-' + jI(Z) + '">' + (C ? A : jI(A, !0)) + `</code></pre>
|
|
6091
6091
|
` : "<pre><code>" + (C ? A : jI(A, !0)) + `</code></pre>
|
|
@@ -6635,11 +6635,11 @@ function PY(I, g) {
|
|
|
6635
6635
|
}
|
|
6636
6636
|
}
|
|
6637
6637
|
const Xl = Object.entries, yZ = Object.setPrototypeOf, rY = Object.isFrozen, fY = Object.getPrototypeOf, qY = Object.getOwnPropertyDescriptor;
|
|
6638
|
-
let VI = Object.freeze,
|
|
6638
|
+
let VI = Object.freeze, oI = Object.seal, Xg = Object.create, ol = typeof Reflect < "u" && Reflect, _C = ol.apply, $C = ol.construct;
|
|
6639
6639
|
VI || (VI = function(g) {
|
|
6640
6640
|
return g;
|
|
6641
6641
|
});
|
|
6642
|
-
|
|
6642
|
+
oI || (oI = function(g) {
|
|
6643
6643
|
return g;
|
|
6644
6644
|
});
|
|
6645
6645
|
_C || (_C = function(g, C) {
|
|
@@ -6652,7 +6652,7 @@ $C || ($C = function(g) {
|
|
|
6652
6652
|
Z[A - 1] = arguments[A];
|
|
6653
6653
|
return new g(...Z);
|
|
6654
6654
|
});
|
|
6655
|
-
const lg = wI(Array.prototype.forEach), _Y = wI(Array.prototype.lastIndexOf), uZ = wI(Array.prototype.pop), Dg = wI(Array.prototype.push), $Y = wI(Array.prototype.splice), hg = Array.isArray, zg = wI(String.prototype.toLowerCase), FC = wI(String.prototype.toString), nZ = wI(String.prototype.match), Fg = wI(String.prototype.replace), MZ = wI(String.prototype.indexOf), Is = wI(String.prototype.trim), gs = wI(Number.prototype.toString), Cs = wI(Boolean.prototype.toString), KZ = typeof BigInt > "u" ? null : wI(BigInt.prototype.toString), SZ = typeof Symbol > "u" ? null : wI(Symbol.prototype.toString), MI = wI(Object.prototype.hasOwnProperty), pg = wI(Object.prototype.toString),
|
|
6655
|
+
const lg = wI(Array.prototype.forEach), _Y = wI(Array.prototype.lastIndexOf), uZ = wI(Array.prototype.pop), Dg = wI(Array.prototype.push), $Y = wI(Array.prototype.splice), hg = Array.isArray, zg = wI(String.prototype.toLowerCase), FC = wI(String.prototype.toString), nZ = wI(String.prototype.match), Fg = wI(String.prototype.replace), MZ = wI(String.prototype.indexOf), Is = wI(String.prototype.trim), gs = wI(Number.prototype.toString), Cs = wI(Boolean.prototype.toString), KZ = typeof BigInt > "u" ? null : wI(BigInt.prototype.toString), SZ = typeof Symbol > "u" ? null : wI(Symbol.prototype.toString), MI = wI(Object.prototype.hasOwnProperty), pg = wI(Object.prototype.toString), aI = wI(RegExp.prototype.test), Zg = As(TypeError);
|
|
6656
6656
|
function wI(I) {
|
|
6657
6657
|
return function(g) {
|
|
6658
6658
|
g instanceof RegExp && (g.lastIndex = 0);
|
|
@@ -6744,18 +6744,18 @@ function zI(I, g) {
|
|
|
6744
6744
|
}
|
|
6745
6745
|
function ds(I) {
|
|
6746
6746
|
try {
|
|
6747
|
-
return
|
|
6747
|
+
return aI(I, ""), !0;
|
|
6748
6748
|
} catch {
|
|
6749
6749
|
return !1;
|
|
6750
6750
|
}
|
|
6751
6751
|
}
|
|
6752
|
-
const DZ = VI(["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", "search", "section", "select", "shadow", "slot", "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"]), pC = VI(["svg", "a", "altglyph", "altglyphdef", "altglyphitem", "animatecolor", "animatemotion", "animatetransform", "circle", "clippath", "defs", "desc", "ellipse", "enterkeyhint", "exportparts", "filter", "font", "g", "glyph", "glyphref", "hkern", "image", "inputmode", "line", "lineargradient", "marker", "mask", "metadata", "mpath", "part", "path", "pattern", "polygon", "polyline", "radialgradient", "rect", "stop", "style", "switch", "symbol", "text", "textpath", "title", "tref", "tspan", "view", "vkern"]), JC = VI(["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"]), Gs = VI(["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"]), zC = VI(["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"]), cs = VI(["maction", "maligngroup", "malignmark", "mlongdiv", "mscarries", "mscarry", "msgroup", "mstack", "msline", "msrow", "semantics", "annotation", "annotation-xml", "mprescripts", "none"]), FZ = VI(["#text"]), pZ = VI(["accept", "action", "align", "alt", "autocapitalize", "autocomplete", "autopictureinpicture", "autoplay", "background", "bgcolor", "border", "capture", "cellpadding", "cellspacing", "checked", "cite", "class", "clear", "color", "cols", "colspan", "command", "commandfor", "controls", "controlslist", "coords", "crossorigin", "datetime", "decoding", "default", "dir", "disabled", "disablepictureinpicture", "disableremoteplayback", "download", "draggable", "enctype", "enterkeyhint", "exportparts", "face", "for", "headers", "height", "hidden", "high", "href", "hreflang", "id", "inert", "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", "part", "pattern", "placeholder", "playsinline", "popover", "popovertarget", "popovertargetaction", "poster", "preload", "pubdate", "radiogroup", "readonly", "rel", "required", "rev", "reversed", "role", "rows", "rowspan", "spellcheck", "scope", "selected", "shape", "size", "sizes", "slot", "span", "srclang", "start", "src", "srcset", "step", "style", "summary", "tabindex", "title", "translate", "type", "usemap", "valign", "value", "width", "wrap", "xmlns"]), kC = VI(["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", "dominant-baseline", "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", "mask-type", "media", "method", "mode", "min", "name", "numoctaves", "offset", "operator", "opacity", "order", "orient", "orientation", "origin", "overflow", "paint-order", "path", "pathlength", "patterncontentunits", "patterntransform", "patternunits", "pointer-events", "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-orientation", "text-rendering", "textlength", "type", "u1", "u2", "unicode", "values", "vector-effect", "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"]), JZ = VI(["accent", "accentunder", "align", "bevelled", "close", "columnalign", "columnlines", "columnspacing", "columnspan", "denomalign", "depth", "dir", "display", "displaystyle", "encoding", "fence", "frame", "height", "href", "id", "largeop", "length", "linethickness", "lquote", "lspace", "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"]), CC = VI(["xlink:href", "xml:id", "xlink:title", "xml:space", "xmlns:xlink"]), bs =
|
|
6752
|
+
const DZ = VI(["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", "search", "section", "select", "shadow", "slot", "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"]), pC = VI(["svg", "a", "altglyph", "altglyphdef", "altglyphitem", "animatecolor", "animatemotion", "animatetransform", "circle", "clippath", "defs", "desc", "ellipse", "enterkeyhint", "exportparts", "filter", "font", "g", "glyph", "glyphref", "hkern", "image", "inputmode", "line", "lineargradient", "marker", "mask", "metadata", "mpath", "part", "path", "pattern", "polygon", "polyline", "radialgradient", "rect", "stop", "style", "switch", "symbol", "text", "textpath", "title", "tref", "tspan", "view", "vkern"]), JC = VI(["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"]), Gs = VI(["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"]), zC = VI(["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"]), cs = VI(["maction", "maligngroup", "malignmark", "mlongdiv", "mscarries", "mscarry", "msgroup", "mstack", "msline", "msrow", "semantics", "annotation", "annotation-xml", "mprescripts", "none"]), FZ = VI(["#text"]), pZ = VI(["accept", "action", "align", "alt", "autocapitalize", "autocomplete", "autopictureinpicture", "autoplay", "background", "bgcolor", "border", "capture", "cellpadding", "cellspacing", "checked", "cite", "class", "clear", "color", "cols", "colspan", "command", "commandfor", "controls", "controlslist", "coords", "crossorigin", "datetime", "decoding", "default", "dir", "disabled", "disablepictureinpicture", "disableremoteplayback", "download", "draggable", "enctype", "enterkeyhint", "exportparts", "face", "for", "headers", "height", "hidden", "high", "href", "hreflang", "id", "inert", "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", "part", "pattern", "placeholder", "playsinline", "popover", "popovertarget", "popovertargetaction", "poster", "preload", "pubdate", "radiogroup", "readonly", "rel", "required", "rev", "reversed", "role", "rows", "rowspan", "spellcheck", "scope", "selected", "shape", "size", "sizes", "slot", "span", "srclang", "start", "src", "srcset", "step", "style", "summary", "tabindex", "title", "translate", "type", "usemap", "valign", "value", "width", "wrap", "xmlns"]), kC = VI(["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", "dominant-baseline", "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", "mask-type", "media", "method", "mode", "min", "name", "numoctaves", "offset", "operator", "opacity", "order", "orient", "orientation", "origin", "overflow", "paint-order", "path", "pathlength", "patterncontentunits", "patterntransform", "patternunits", "pointer-events", "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-orientation", "text-rendering", "textlength", "type", "u1", "u2", "unicode", "values", "vector-effect", "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"]), JZ = VI(["accent", "accentunder", "align", "bevelled", "close", "columnalign", "columnlines", "columnspacing", "columnspan", "denomalign", "depth", "dir", "display", "displaystyle", "encoding", "fence", "frame", "height", "href", "id", "largeop", "length", "linethickness", "lquote", "lspace", "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"]), CC = VI(["xlink:href", "xml:id", "xlink:title", "xml:space", "xmlns:xlink"]), bs = oI(/{{[\w\W]*|^[\w\W]*}}/g), ms = oI(/<%[\w\W]*|^[\w\W]*%>/g), is = oI(/\${[\w\W]*/g), Ws = oI(/^data-[\-\w.\u00B7-\uFFFF]+$/), Bs = oI(/^aria-[\-\w]+$/), zZ = oI(
|
|
6753
6753
|
/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i
|
|
6754
6754
|
// eslint-disable-line no-useless-escape
|
|
6755
|
-
), Ys =
|
|
6755
|
+
), Ys = oI(/^(?:\w+script|data):/i), ss = oI(
|
|
6756
6756
|
/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g
|
|
6757
6757
|
// eslint-disable-line no-control-regex
|
|
6758
|
-
), ws =
|
|
6758
|
+
), ws = oI(/^html$/i), Vs = oI(/^[a-z][.\w]*(-[.\w]+)+$/i), kZ = oI(/<[/\w!]/g), eZ = oI(/<[/\w]/g), Ns = oI(/<\/no(script|embed|frames)/i), Xs = oI(/\/>/i), KI = {
|
|
6759
6759
|
element: 1,
|
|
6760
6760
|
attribute: 2,
|
|
6761
6761
|
text: 3,
|
|
@@ -6774,7 +6774,7 @@ const DZ = VI(["a", "abbr", "acronym", "address", "area", "article", "aside", "a
|
|
|
6774
6774
|
}, hl = ["style", "script", "xmp", "iframe", "noembed", "noframes", "plaintext", "noscript"], os = VI(lI({}, hl)), hs = (function() {
|
|
6775
6775
|
const I = {};
|
|
6776
6776
|
return lg(hl, (g) => {
|
|
6777
|
-
I[g] =
|
|
6777
|
+
I[g] = oI(new RegExp("</" + g + "(?=[\\t\\n\\f\\r />])", "i"));
|
|
6778
6778
|
}), VI(I);
|
|
6779
6779
|
})(), as = function() {
|
|
6780
6780
|
return typeof window > "u" ? null : window;
|
|
@@ -6825,7 +6825,7 @@ function al() {
|
|
|
6825
6825
|
I.DocumentFragment;
|
|
6826
6826
|
const d = I.HTMLTemplateElement, l = I.Node, c = I.Element, G = I.NodeFilter, b = I.NamedNodeMap;
|
|
6827
6827
|
b === void 0 && (I.NamedNodeMap || I.MozNamedAttrMap), I.HTMLFormElement;
|
|
6828
|
-
const i = I.DOMParser, w = I.trustedTypes, s = c.prototype,
|
|
6828
|
+
const i = I.DOMParser, w = I.trustedTypes, s = c.prototype, R = zI(s, "cloneNode"), V = zI(s, "remove"), X = zI(s, "nextSibling"), o = zI(s, "childNodes"), S = zI(s, "parentNode"), k = zI(s, "shadowRoot"), L = zI(s, "attributes"), K = l && l.prototype ? zI(l.prototype, "nodeType") : null, e = l && l.prototype ? zI(l.prototype, "nodeName") : null, y = l && l.prototype ? zI(l.prototype, "ownerDocument") : null, p = function(B) {
|
|
6829
6829
|
return K ? K(B) : B.nodeType;
|
|
6830
6830
|
}, J = function(B) {
|
|
6831
6831
|
return e ? e(B) : B.nodeName;
|
|
@@ -6854,7 +6854,7 @@ function al() {
|
|
|
6854
6854
|
}
|
|
6855
6855
|
}, r = function() {
|
|
6856
6856
|
return f || (D = Rs(w, A), f = !0), D;
|
|
6857
|
-
},
|
|
6857
|
+
}, hI = C, HI = hI.implementation, pI = hI.createNodeIterator, OI = hI.createDocumentFragment, Ig = hI.getElementsByTagName, sI = Z.importNode;
|
|
6858
6858
|
let mI = LZ();
|
|
6859
6859
|
g.isSupported = typeof Xl == "function" && typeof S == "function" && HI && HI.createHTMLDocument !== void 0;
|
|
6860
6860
|
const Hl = bs, yl = ms, ul = is, nl = Ws, Ml = Bs, Kl = Ys, VA = ss, Sl = Vs;
|
|
@@ -6986,7 +6986,7 @@ function al() {
|
|
|
6986
6986
|
// Default built-in map
|
|
6987
6987
|
);
|
|
6988
6988
|
const N = eC(B, "CUSTOM_ELEMENT_HANDLING", () => Xg(null));
|
|
6989
|
-
if (tI = Xg(null), MI(N, "tagNameCheck") && pA(N.tagNameCheck) && (tI.tagNameCheck = N.tagNameCheck), MI(N, "attributeNameCheck") && pA(N.attributeNameCheck) && (tI.attributeNameCheck = N.attributeNameCheck), MI(N, "allowCustomizedBuiltInElements") && typeof N.allowCustomizedBuiltInElements == "boolean" && (tI.allowCustomizedBuiltInElements = N.allowCustomizedBuiltInElements),
|
|
6989
|
+
if (tI = Xg(null), MI(N, "tagNameCheck") && pA(N.tagNameCheck) && (tI.tagNameCheck = N.tagNameCheck), MI(N, "attributeNameCheck") && pA(N.attributeNameCheck) && (tI.attributeNameCheck = N.attributeNameCheck), MI(N, "allowCustomizedBuiltInElements") && typeof N.allowCustomizedBuiltInElements == "boolean" && (tI.allowCustomizedBuiltInElements = N.allowCustomizedBuiltInElements), oI(tI), PI && (VC = !1), Ug && (Wg = !0), Bg && (iI = lI({}, FZ), WI = Xg(null), Bg.html === !0 && (lI(iI, DZ), lI(WI, pZ)), Bg.svg === !0 && (lI(iI, pC), lI(WI, kC), lI(WI, CC)), Bg.svgFilters === !0 && (lI(iI, JC), lI(WI, kC), lI(WI, CC)), Bg.mathMl === !0 && (lI(iI, zC), lI(WI, JZ), lI(WI, CC))), EI.tagCheck = null, EI.attributeCheck = null, MI(B, "ADD_TAGS") && (typeof B.ADD_TAGS == "function" ? EI.tagCheck = B.ADD_TAGS : hg(B.ADD_TAGS) && (iI === sC && (iI = SI(iI)), lI(iI, B.ADD_TAGS, YI))), MI(B, "ADD_ATTR") && (typeof B.ADD_ATTR == "function" ? EI.attributeCheck = B.ADD_ATTR : hg(B.ADD_ATTR) && (WI === wC && (WI = SI(WI)), lI(WI, B.ADD_ATTR, YI))), MI(B, "ADD_FORBID_CONTENTS") && hg(B.ADD_FORBID_CONTENTS) && (Yg === uA && (Yg = SI(Yg)), lI(Yg, B.ADD_FORBID_CONTENTS, YI)), oC && (iI["#text"] = !0), Cg && lI(iI, ["html", "head", "body"]), iI.table && (lI(iI, ["tbody"]), delete yg.tbody), B.TRUSTED_TYPES_POLICY) {
|
|
6990
6990
|
if (typeof B.TRUSTED_TYPES_POLICY.createHTML != "function")
|
|
6991
6991
|
throw Zg('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');
|
|
6992
6992
|
if (typeof B.TRUSTED_TYPES_POLICY.createScriptURL != "function")
|
|
@@ -6995,8 +6995,8 @@ function al() {
|
|
|
6995
6995
|
H = B.TRUSTED_TYPES_POLICY;
|
|
6996
6996
|
try {
|
|
6997
6997
|
z = FI("");
|
|
6998
|
-
} catch (
|
|
6999
|
-
throw H = M,
|
|
6998
|
+
} catch (x) {
|
|
6999
|
+
throw H = M, x;
|
|
7000
7000
|
}
|
|
7001
7001
|
} else B.TRUSTED_TYPES_POLICY === null ? (H = void 0, z = "") : (H === void 0 && (H = r()), H && typeof z == "string" && (z = FI("")));
|
|
7002
7002
|
VI && VI(B), wg = B;
|
|
@@ -7012,8 +7012,8 @@ function al() {
|
|
|
7012
7012
|
namespaceURI: sg,
|
|
7013
7013
|
tagName: "template"
|
|
7014
7014
|
});
|
|
7015
|
-
const M = zg(B.tagName),
|
|
7016
|
-
return RC[B.namespaceURI] ? B.namespaceURI === Eg ? kl(M, N,
|
|
7015
|
+
const M = zg(B.tagName), x = zg(N.tagName);
|
|
7016
|
+
return RC[B.namespaceURI] ? B.namespaceURI === Eg ? kl(M, N, x) : B.namespaceURI === Og ? el(M, N, x) : B.namespaceURI === TI ? Ll(M, N, x) : !!(ug === "application/xhtml+xml" && RC[B.namespaceURI]) : !1;
|
|
7017
7017
|
}, rI = function(B) {
|
|
7018
7018
|
Dg(g.removed, {
|
|
7019
7019
|
element: B
|
|
@@ -7037,10 +7037,10 @@ function al() {
|
|
|
7037
7037
|
rg(B);
|
|
7038
7038
|
const N = o(B);
|
|
7039
7039
|
if (N) {
|
|
7040
|
-
const
|
|
7040
|
+
const x = [];
|
|
7041
7041
|
lg(N, (v) => {
|
|
7042
|
-
Dg(
|
|
7043
|
-
}), lg(
|
|
7042
|
+
Dg(x, v);
|
|
7043
|
+
}), lg(x, (v) => {
|
|
7044
7044
|
try {
|
|
7045
7045
|
V(v);
|
|
7046
7046
|
} catch {
|
|
@@ -7049,8 +7049,8 @@ function al() {
|
|
|
7049
7049
|
}
|
|
7050
7050
|
const M = L(B);
|
|
7051
7051
|
if (M)
|
|
7052
|
-
for (let
|
|
7053
|
-
const v = M[
|
|
7052
|
+
for (let x = M.length - 1; x >= 0; --x) {
|
|
7053
|
+
const v = M[x], P = v && v.name;
|
|
7054
7054
|
typeof P == "string" && kA(B, v, P);
|
|
7055
7055
|
}
|
|
7056
7056
|
}, Ag = function(B, N, M) {
|
|
@@ -7087,8 +7087,8 @@ function al() {
|
|
|
7087
7087
|
const N = L(B);
|
|
7088
7088
|
if (N)
|
|
7089
7089
|
for (let M = N.length - 1; M >= 0; --M) {
|
|
7090
|
-
const
|
|
7091
|
-
typeof v != "string" || WI[YI(v)] || kA(B,
|
|
7090
|
+
const x = N[M], v = x && x.name;
|
|
7091
|
+
typeof v != "string" || WI[YI(v)] || kA(B, x, v);
|
|
7092
7092
|
}
|
|
7093
7093
|
}, rg = function(B) {
|
|
7094
7094
|
const N = [B];
|
|
@@ -7107,15 +7107,15 @@ function al() {
|
|
|
7107
7107
|
return;
|
|
7108
7108
|
const N = [B];
|
|
7109
7109
|
for (; N.length > 0; ) {
|
|
7110
|
-
const M = N.pop(),
|
|
7111
|
-
if (
|
|
7110
|
+
const M = N.pop(), x = p(M);
|
|
7111
|
+
if (x === KI.processingInstruction || x === KI.comment && aI(eZ, M.data)) {
|
|
7112
7112
|
try {
|
|
7113
7113
|
V(M);
|
|
7114
7114
|
} catch {
|
|
7115
7115
|
}
|
|
7116
7116
|
continue;
|
|
7117
7117
|
}
|
|
7118
|
-
if (
|
|
7118
|
+
if (x === KI.element) {
|
|
7119
7119
|
const P = M, bI = YI(J(M));
|
|
7120
7120
|
try {
|
|
7121
7121
|
P.hasAttribute && P.hasAttribute("patchsrc") && P.removeAttribute("patchsrc"), P.hasAttribute && P.hasAttribute("for") && eA("for", bI) && P.removeAttribute("for");
|
|
@@ -7136,16 +7136,16 @@ function al() {
|
|
|
7136
7136
|
M = P && P[0];
|
|
7137
7137
|
}
|
|
7138
7138
|
ug === "application/xhtml+xml" && sg === TI && (B = '<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>' + B + "</body></html>");
|
|
7139
|
-
const
|
|
7139
|
+
const x = H ? FI(B) : B;
|
|
7140
7140
|
if (sg === TI)
|
|
7141
7141
|
try {
|
|
7142
|
-
N = new i().parseFromString(
|
|
7142
|
+
N = new i().parseFromString(x, ug);
|
|
7143
7143
|
} catch {
|
|
7144
7144
|
}
|
|
7145
7145
|
if (!N || !N.documentElement) {
|
|
7146
7146
|
N = HI.createDocument(sg, "template", null);
|
|
7147
7147
|
try {
|
|
7148
|
-
N.documentElement.innerHTML = aC ? z :
|
|
7148
|
+
N.documentElement.innerHTML = aC ? z : x;
|
|
7149
7149
|
} catch {
|
|
7150
7150
|
}
|
|
7151
7151
|
}
|
|
@@ -7165,16 +7165,16 @@ function al() {
|
|
|
7165
7165
|
}, nC = function(B) {
|
|
7166
7166
|
var N;
|
|
7167
7167
|
B.normalize();
|
|
7168
|
-
const M = y ? y(B) : B.ownerDocument,
|
|
7168
|
+
const M = y ? y(B) : B.ownerDocument, x = pI.call(
|
|
7169
7169
|
M || B,
|
|
7170
7170
|
B,
|
|
7171
7171
|
// eslint-disable-next-line no-bitwise
|
|
7172
7172
|
G.SHOW_TEXT | G.SHOW_COMMENT | G.SHOW_CDATA_SECTION | G.SHOW_PROCESSING_INSTRUCTION,
|
|
7173
7173
|
null
|
|
7174
7174
|
);
|
|
7175
|
-
let v =
|
|
7175
|
+
let v = x.nextNode();
|
|
7176
7176
|
for (; v; )
|
|
7177
|
-
v.data = fg(v.data), v =
|
|
7177
|
+
v.data = fg(v.data), v = x.nextNode();
|
|
7178
7178
|
const P = (N = B.querySelectorAll) === null || N === void 0 ? void 0 : N.call(B, "template");
|
|
7179
7179
|
P && lg(P, (bI) => {
|
|
7180
7180
|
Vg(bI.content) && nC(bI.content);
|
|
@@ -7228,32 +7228,32 @@ function al() {
|
|
|
7228
7228
|
});
|
|
7229
7229
|
}
|
|
7230
7230
|
const jl = function(B, N) {
|
|
7231
|
-
return !!(gg && B.hasChildNodes() && !ng(B.firstElementChild) &&
|
|
7231
|
+
return !!(gg && B.hasChildNodes() && !ng(B.firstElementChild) && aI(kZ, B.textContent) && aI(kZ, B.innerHTML) || gg && B.namespaceURI === TI && os[N] && (ng(B.firstElementChild) || typeof B.textContent == "string" && aI(hs[N], B.textContent)) || B.nodeType === KI.processingInstruction || gg && B.nodeType === KI.comment && aI(eZ, B.data));
|
|
7232
7232
|
}, _g = function(B, N) {
|
|
7233
7233
|
if (B instanceof RegExp)
|
|
7234
|
-
return
|
|
7234
|
+
return aI(B, N);
|
|
7235
7235
|
if (B instanceof Function) {
|
|
7236
|
-
for (var M = arguments.length,
|
|
7237
|
-
|
|
7238
|
-
return !!B(N, ...
|
|
7236
|
+
for (var M = arguments.length, x = new Array(M > 2 ? M - 2 : 0), v = 2; v < M; v++)
|
|
7237
|
+
x[v - 2] = arguments[v];
|
|
7238
|
+
return !!B(N, ...x);
|
|
7239
7239
|
}
|
|
7240
7240
|
return !1;
|
|
7241
7241
|
}, Ql = function(B, N, M) {
|
|
7242
7242
|
if (!yg[N] && UA(N) && _g(tI.tagNameCheck, N))
|
|
7243
7243
|
return !1;
|
|
7244
7244
|
if (oC && !Yg[N]) {
|
|
7245
|
-
const
|
|
7246
|
-
if (v &&
|
|
7245
|
+
const x = S(B), v = o(B);
|
|
7246
|
+
if (v && x) {
|
|
7247
7247
|
const P = v.length;
|
|
7248
7248
|
for (let bI = P - 1; bI >= 0; --bI) {
|
|
7249
|
-
const BI = B === M ?
|
|
7250
|
-
|
|
7249
|
+
const BI = B === M ? R(v[bI], !0) : v[bI];
|
|
7250
|
+
x.insertBefore(BI, X(B));
|
|
7251
7251
|
}
|
|
7252
7252
|
}
|
|
7253
7253
|
}
|
|
7254
7254
|
return rI(B), !0;
|
|
7255
|
-
}, TA = function(B, N, M,
|
|
7256
|
-
return B.length === 0 ? N : N === M || N ===
|
|
7255
|
+
}, TA = function(B, N, M, x) {
|
|
7256
|
+
return B.length === 0 ? N : N === M || N === x ? SI(N) : N;
|
|
7257
7257
|
}, xA = function(B, N) {
|
|
7258
7258
|
return B === N || S(B) !== null ? !1 : (hC && rg(B), !0);
|
|
7259
7259
|
}, jA = function(B, N) {
|
|
@@ -7273,7 +7273,7 @@ function al() {
|
|
|
7273
7273
|
const v = Ql(B, M, N);
|
|
7274
7274
|
return v === !1 && xI(mI.afterSanitizeElements, B, null), v;
|
|
7275
7275
|
}
|
|
7276
|
-
if (p(B) === KI.element && !tl(B) || (M === "noscript" || M === "noembed" || M === "noframes") &&
|
|
7276
|
+
if (p(B) === KI.element && !tl(B) || (M === "noscript" || M === "noembed" || M === "noframes") && aI(Ns, B.innerHTML))
|
|
7277
7277
|
return rI(B), !0;
|
|
7278
7278
|
if (PI && B.nodeType === KI.text) {
|
|
7279
7279
|
const v = fg(B.textContent);
|
|
@@ -7285,8 +7285,8 @@ function al() {
|
|
|
7285
7285
|
}, QA = function(B, N, M) {
|
|
7286
7286
|
if (XA[N] || eA(N, B) || RA && (N === "id" || N === "name") && (M in C || M in zl))
|
|
7287
7287
|
return !1;
|
|
7288
|
-
const
|
|
7289
|
-
return VC &&
|
|
7288
|
+
const x = WI[N] || EI.attributeCheck instanceof Function && EI.attributeCheck(N, B);
|
|
7289
|
+
return VC && aI(nl, N) || oA && aI(Ml, N) ? !0 : x ? KA[N] || aI(NA, Fg(M, VA, "")) || (N === "src" || N === "xlink:href" || N === "href") && B !== "script" && MZ(M, "data:") === 0 && nA[B] || hA && !aI(Kl, Fg(M, VA, "")) ? !0 : !M : (
|
|
7290
7290
|
// Condition a) covers a basically valid custom element tag name whose
|
|
7291
7291
|
// tag passes the configured tagNameCheck and whose attribute name
|
|
7292
7292
|
// passes the configured attributeNameCheck ...
|
|
@@ -7296,19 +7296,19 @@ function al() {
|
|
|
7296
7296
|
N === "is" && tI.allowCustomizedBuiltInElements && _g(tI.tagNameCheck, M)
|
|
7297
7297
|
);
|
|
7298
7298
|
}, Ul = lI({}, ["annotation-xml", "color-profile", "font-face", "font-face-format", "font-face-name", "font-face-src", "font-face-uri", "missing-glyph"]), UA = function(B) {
|
|
7299
|
-
return !Ul[zg(B)] &&
|
|
7300
|
-
}, vl = function(B, N, M,
|
|
7299
|
+
return !Ul[zg(B)] && aI(Sl, B);
|
|
7300
|
+
}, vl = function(B, N, M, x) {
|
|
7301
7301
|
if (H && typeof w == "object" && typeof w.getAttributeType == "function" && !M)
|
|
7302
7302
|
switch (w.getAttributeType(B, N)) {
|
|
7303
7303
|
case "TrustedHTML":
|
|
7304
|
-
return FI(
|
|
7304
|
+
return FI(x);
|
|
7305
7305
|
case "TrustedScriptURL":
|
|
7306
|
-
return E(
|
|
7306
|
+
return E(x);
|
|
7307
7307
|
}
|
|
7308
|
-
return
|
|
7309
|
-
}, Ol = function(B, N, M,
|
|
7308
|
+
return x;
|
|
7309
|
+
}, Ol = function(B, N, M, x) {
|
|
7310
7310
|
try {
|
|
7311
|
-
M ? B.setAttributeNS(M, N,
|
|
7311
|
+
M ? B.setAttributeNS(M, N, x) : B.setAttribute(N, x), qg(B) ? rI(B) : uZ(g.removed);
|
|
7312
7312
|
} catch {
|
|
7313
7313
|
Ag(N, B);
|
|
7314
7314
|
}
|
|
@@ -7325,12 +7325,12 @@ function al() {
|
|
|
7325
7325
|
allowedAttributes: WI,
|
|
7326
7326
|
forceKeepAttr: void 0
|
|
7327
7327
|
};
|
|
7328
|
-
let
|
|
7328
|
+
let x = N.length;
|
|
7329
7329
|
const v = YI(B.nodeName);
|
|
7330
|
-
for (;
|
|
7331
|
-
const P = N[
|
|
7330
|
+
for (; x--; ) {
|
|
7331
|
+
const P = N[x], bI = P.name, BI = P.namespaceURI, uI = P.value, nI = YI(bI), KC = uI;
|
|
7332
7332
|
let yI = bI === "value" ? KC : Is(KC);
|
|
7333
|
-
if (M.attrName = nI, M.attrValue = yI, M.keepAttr = !0, M.forceKeepAttr = void 0, xI(mI.uponSanitizeAttribute, B, M), yI = M.attrValue, HA && (nI === "id" || nI === "name") && MZ(yI, yA) !== 0 && (Ag(bI, B, P), yI = yA + yI), gg &&
|
|
7333
|
+
if (M.attrName = nI, M.attrValue = yI, M.keepAttr = !0, M.forceKeepAttr = void 0, xI(mI.uponSanitizeAttribute, B, M), yI = M.attrValue, HA && (nI === "id" || nI === "name") && MZ(yI, yA) !== 0 && (Ag(bI, B, P), yI = yA + yI), gg && aI(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i, yI)) {
|
|
7334
7334
|
Ag(bI, B, P);
|
|
7335
7335
|
continue;
|
|
7336
7336
|
}
|
|
@@ -7343,7 +7343,7 @@ function al() {
|
|
|
7343
7343
|
Ag(bI, B, P);
|
|
7344
7344
|
continue;
|
|
7345
7345
|
}
|
|
7346
|
-
if (!aA &&
|
|
7346
|
+
if (!aA && aI(Xs, yI)) {
|
|
7347
7347
|
Ag(bI, B, P);
|
|
7348
7348
|
continue;
|
|
7349
7349
|
}
|
|
@@ -7360,8 +7360,8 @@ function al() {
|
|
|
7360
7360
|
const M = tA(B);
|
|
7361
7361
|
for (xI(mI.beforeSanitizeShadowDOM, B, null); N = M.nextNode(); )
|
|
7362
7362
|
if (xI(mI.uponSanitizeShadowNode, N, null), jA(N, B), vA(N), Vg(N.content) && $g(N.content), p(N) === KI.element) {
|
|
7363
|
-
const
|
|
7364
|
-
Vg(
|
|
7363
|
+
const x = k(N);
|
|
7364
|
+
Vg(x) && (MC(x), $g(x));
|
|
7365
7365
|
}
|
|
7366
7366
|
xI(mI.afterSanitizeShadowDOM, B, null);
|
|
7367
7367
|
}, MC = function(B) {
|
|
@@ -7375,7 +7375,7 @@ function al() {
|
|
|
7375
7375
|
$g(M.shadow);
|
|
7376
7376
|
continue;
|
|
7377
7377
|
}
|
|
7378
|
-
const
|
|
7378
|
+
const x = M.node, P = p(x) === KI.element, bI = o(x);
|
|
7379
7379
|
if (bI)
|
|
7380
7380
|
for (let BI = bI.length - 1; BI >= 0; --BI)
|
|
7381
7381
|
N.push({
|
|
@@ -7383,9 +7383,9 @@ function al() {
|
|
|
7383
7383
|
shadow: null
|
|
7384
7384
|
});
|
|
7385
7385
|
if (P) {
|
|
7386
|
-
const BI = e ? e(
|
|
7386
|
+
const BI = e ? e(x) : null;
|
|
7387
7387
|
if (typeof BI == "string" && YI(BI) === "template") {
|
|
7388
|
-
const uI =
|
|
7388
|
+
const uI = x.content;
|
|
7389
7389
|
Vg(uI) && N.push({
|
|
7390
7390
|
node: uI,
|
|
7391
7391
|
shadow: null
|
|
@@ -7393,7 +7393,7 @@ function al() {
|
|
|
7393
7393
|
}
|
|
7394
7394
|
}
|
|
7395
7395
|
if (P) {
|
|
7396
|
-
const BI = k(
|
|
7396
|
+
const BI = k(x);
|
|
7397
7397
|
Vg(BI) && N.push({
|
|
7398
7398
|
node: null,
|
|
7399
7399
|
shadow: BI
|
|
@@ -7405,7 +7405,7 @@ function al() {
|
|
|
7405
7405
|
}
|
|
7406
7406
|
};
|
|
7407
7407
|
return g.sanitize = function(F) {
|
|
7408
|
-
let B = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, N = null, M = null,
|
|
7408
|
+
let B = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, N = null, M = null, x = null, v = null;
|
|
7409
7409
|
if (aC = !F, aC && (F = "<!-->"), typeof F != "string" && !ng(F) && (F = ls(F), typeof F != "string"))
|
|
7410
7410
|
throw Zg("dirty is not a string, aborting");
|
|
7411
7411
|
if (!g.isSupported)
|
|
@@ -7440,8 +7440,8 @@ function al() {
|
|
|
7440
7440
|
const bI = P ? F : N;
|
|
7441
7441
|
try {
|
|
7442
7442
|
const uI = tA(bI);
|
|
7443
|
-
for (;
|
|
7444
|
-
jA(
|
|
7443
|
+
for (; x = uI.nextNode(); )
|
|
7444
|
+
jA(x, bI), vA(x), Vg(x.content) && $g(x.content);
|
|
7445
7445
|
} catch (uI) {
|
|
7446
7446
|
throw P && (Pg(F), lg(g.removed, (nI) => {
|
|
7447
7447
|
nI.element && rg(nI.element);
|
|
@@ -7460,7 +7460,7 @@ function al() {
|
|
|
7460
7460
|
return (WI.shadowroot || WI.shadowrootmode) && (v = sI.call(Z, v, !0)), v;
|
|
7461
7461
|
}
|
|
7462
7462
|
let BI = Cg ? N.outerHTML : N.innerHTML;
|
|
7463
|
-
return Cg && iI["!doctype"] && N.ownerDocument && N.ownerDocument.doctype && N.ownerDocument.doctype.name &&
|
|
7463
|
+
return Cg && iI["!doctype"] && N.ownerDocument && N.ownerDocument.doctype && N.ownerDocument.doctype.name && aI(ws, N.ownerDocument.doctype.name) && (BI = "<!DOCTYPE " + N.ownerDocument.doctype.name + `>
|
|
7464
7464
|
` + BI), PI && (BI = fg(BI)), H && vg ? FI(BI) : BI;
|
|
7465
7465
|
}, g.setConfig = function() {
|
|
7466
7466
|
let F = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
@@ -7469,8 +7469,8 @@ function al() {
|
|
|
7469
7469
|
wg = null, NC = !1, jg = null, Qg = null, H = D, z = "";
|
|
7470
7470
|
}, g.isValidAttribute = function(F, B, N) {
|
|
7471
7471
|
wg || uC({});
|
|
7472
|
-
const M = YI(F),
|
|
7473
|
-
return QA(M,
|
|
7472
|
+
const M = YI(F), x = YI(B);
|
|
7473
|
+
return QA(M, x, N);
|
|
7474
7474
|
}, g.addHook = function(F, B) {
|
|
7475
7475
|
typeof B == "function" && MI(mI, F) && Dg(mI[F], B);
|
|
7476
7476
|
}, g.removeHook = function(F, B) {
|
|
@@ -7545,7 +7545,7 @@ const ns = { class: "apf-message-parts" }, Ms = ["innerHTML"], Ks = { class: "ap
|
|
|
7545
7545
|
content: {}
|
|
7546
7546
|
},
|
|
7547
7547
|
setup(I) {
|
|
7548
|
-
const g = I, C =
|
|
7548
|
+
const g = I, C = n(() => ys(g.content || "").map(Z));
|
|
7549
7549
|
function Z(G) {
|
|
7550
7550
|
if (!((G.language || "").toLowerCase() === "json" || G.artifactType === "json" || A(G.content))) return { ...G, display: G.content, isJson: !1 };
|
|
7551
7551
|
try {
|
|
@@ -7578,7 +7578,7 @@ const ns = { class: "apf-message-parts" }, Ms = ["innerHTML"], Ks = { class: "ap
|
|
|
7578
7578
|
innerHTML: $(us)(i.content)
|
|
7579
7579
|
}, null, 8, Ms)) : i.type === "artifact" ? (m(), W("div", {
|
|
7580
7580
|
key: 1,
|
|
7581
|
-
class:
|
|
7581
|
+
class: u(["apf-artifact-card", { "apf-json": i.isJson }])
|
|
7582
7582
|
}, [
|
|
7583
7583
|
Y("div", Ks, [
|
|
7584
7584
|
Y("span", Ss, "工件 · " + h(d(i)), 1),
|
|
@@ -7641,7 +7641,7 @@ const ns = { class: "apf-message-parts" }, Ms = ["innerHTML"], Ks = { class: "ap
|
|
|
7641
7641
|
])
|
|
7642
7642
|
], 2)) : (m(), W("div", {
|
|
7643
7643
|
key: 2,
|
|
7644
|
-
class:
|
|
7644
|
+
class: u(["apf-code-wrap", { "apf-json": i.isJson }])
|
|
7645
7645
|
}, [
|
|
7646
7646
|
Y("div", zs, [
|
|
7647
7647
|
Y("span", ks, h(d(i)), 1),
|
|
@@ -7719,7 +7719,7 @@ const ns = { class: "apf-message-parts" }, Ms = ["innerHTML"], Ks = { class: "ap
|
|
|
7719
7719
|
},
|
|
7720
7720
|
emits: ["preview"],
|
|
7721
7721
|
setup(I, { emit: g }) {
|
|
7722
|
-
const C = I, Z = g, A =
|
|
7722
|
+
const C = I, Z = g, A = n(() => C.attachments.filter(Rg)), d = n(() => C.attachments.filter((c) => !Rg(c)));
|
|
7723
7723
|
function l(c) {
|
|
7724
7724
|
Z("preview", c);
|
|
7725
7725
|
}
|
|
@@ -7728,7 +7728,7 @@ const ns = { class: "apf-message-parts" }, Ms = ["innerHTML"], Ks = { class: "ap
|
|
|
7728
7728
|
return (b = I.attachments) != null && b.length ? (m(), W("div", Qs, [
|
|
7729
7729
|
A.value.length ? (m(), W("div", {
|
|
7730
7730
|
key: 0,
|
|
7731
|
-
class:
|
|
7731
|
+
class: u(["apf-image-grid", { "apf-multi": A.value.length > 1 }])
|
|
7732
7732
|
}, [
|
|
7733
7733
|
(m(!0), W(Q, null, q(A.value, (i) => (m(), W("button", {
|
|
7734
7734
|
key: i.id,
|
|
@@ -7743,7 +7743,7 @@ const ns = { class: "apf-message-parts" }, Ms = ["innerHTML"], Ks = { class: "ap
|
|
|
7743
7743
|
loading: "lazy"
|
|
7744
7744
|
}, null, 8, vs)
|
|
7745
7745
|
], 8, Us))), 128))
|
|
7746
|
-
], 2)) :
|
|
7746
|
+
], 2)) : a("", !0),
|
|
7747
7747
|
(m(!0), W(Q, null, q(d.value, (i) => (m(), W("button", {
|
|
7748
7748
|
key: i.id,
|
|
7749
7749
|
type: "button",
|
|
@@ -7757,7 +7757,7 @@ const ns = { class: "apf-message-parts" }, Ms = ["innerHTML"], Ks = { class: "ap
|
|
|
7757
7757
|
Y("small", null, [
|
|
7758
7758
|
i.size ? (m(), W(Q, { key: 0 }, [
|
|
7759
7759
|
gI(h($(GA)(i.size)), 1)
|
|
7760
|
-
], 64)) :
|
|
7760
|
+
], 64)) : a("", !0),
|
|
7761
7761
|
$(Lg)(i) ? (m(), W(Q, { key: 1 }, [
|
|
7762
7762
|
gI(" · 点击预览")
|
|
7763
7763
|
], 64)) : $(BZ)(i) ? (m(), W(Q, { key: 2 }, [
|
|
@@ -7766,10 +7766,10 @@ const ns = { class: "apf-message-parts" }, Ms = ["innerHTML"], Ks = { class: "ap
|
|
|
7766
7766
|
gI(" · 点击打开")
|
|
7767
7767
|
], 64))
|
|
7768
7768
|
]),
|
|
7769
|
-
i.excerpt ? (m(), W("em", rs, h(i.excerpt), 1)) :
|
|
7769
|
+
i.excerpt ? (m(), W("em", rs, h(i.excerpt), 1)) : a("", !0)
|
|
7770
7770
|
])
|
|
7771
7771
|
], 8, Os))), 128))
|
|
7772
|
-
])) :
|
|
7772
|
+
])) : a("", !0);
|
|
7773
7773
|
};
|
|
7774
7774
|
}
|
|
7775
7775
|
}), qs = /* @__PURE__ */ U(fs, [["__scopeId", "data-v-a604161c"]]), _s = {
|
|
@@ -7812,7 +7812,7 @@ const ns = { class: "apf-message-parts" }, Ms = ["innerHTML"], Ks = { class: "ap
|
|
|
7812
7812
|
return (b = I.summaries) != null && b.length ? (m(), W("div", _s, [
|
|
7813
7813
|
(m(!0), W(Q, null, q(I.summaries, (i) => (m(), W("article", {
|
|
7814
7814
|
key: i.documentId,
|
|
7815
|
-
class:
|
|
7815
|
+
class: u(["apf-doc-card", { "apf-clickable": l(i) }]),
|
|
7816
7816
|
role: l(i) ? "button" : void 0,
|
|
7817
7817
|
tabindex: l(i) ? 0 : void 0,
|
|
7818
7818
|
"aria-label": l(i) ? `预览 ${i.filename}` : void 0,
|
|
@@ -7850,11 +7850,11 @@ const ns = { class: "apf-message-parts" }, Ms = ["innerHTML"], Ks = { class: "ap
|
|
|
7850
7850
|
Y("div", I2, [
|
|
7851
7851
|
Y("strong", g2, h(i.filename), 1),
|
|
7852
7852
|
Y("p", C2, h(i.summary), 1),
|
|
7853
|
-
i.pageCount ? (m(), W("span", A2, h(i.pageCount) + " 页", 1)) :
|
|
7854
|
-
l(i) ?
|
|
7853
|
+
i.pageCount ? (m(), W("span", A2, h(i.pageCount) + " 页", 1)) : a("", !0),
|
|
7854
|
+
l(i) ? a("", !0) : (m(), W("span", Z2, "无对应附件,请从附件列表打开"))
|
|
7855
7855
|
])
|
|
7856
7856
|
], 42, $s))), 128))
|
|
7857
|
-
])) :
|
|
7857
|
+
])) : a("", !0);
|
|
7858
7858
|
};
|
|
7859
7859
|
}
|
|
7860
7860
|
}), d2 = /* @__PURE__ */ U(l2, [["__scopeId", "data-v-a91771a4"]]), G2 = ["aria-label"], c2 = { class: "apf-preview-head" }, b2 = { class: "apf-preview-title" }, m2 = { class: "apf-preview-actions" }, i2 = ["href"], W2 = ["src", "alt"], B2 = {
|
|
@@ -7878,22 +7878,22 @@ const ns = { class: "apf-message-parts" }, Ms = ["innerHTML"], Ks = { class: "ap
|
|
|
7878
7878
|
},
|
|
7879
7879
|
emits: ["update:modelValue", "update:attachment"],
|
|
7880
7880
|
setup(I, { emit: g }) {
|
|
7881
|
-
const C = I, Z = g, A =
|
|
7881
|
+
const C = I, Z = g, A = n({
|
|
7882
7882
|
get: () => C.modelValue,
|
|
7883
7883
|
set: (D) => Z("update:modelValue", D)
|
|
7884
7884
|
});
|
|
7885
7885
|
function d(D) {
|
|
7886
7886
|
return D.url || "";
|
|
7887
7887
|
}
|
|
7888
|
-
const l =
|
|
7888
|
+
const l = n(() => C.attachment ? Rg(C.attachment) : !1), c = n(() => C.attachment ? Lg(C.attachment) : !1), G = n(() => {
|
|
7889
7889
|
var f;
|
|
7890
7890
|
return ((f = C.gallery) != null && f.length ? C.gallery : C.attachment ? [C.attachment] : []).filter(Rg);
|
|
7891
|
-
}), b =
|
|
7891
|
+
}), b = n(() => !G.value.length || !C.attachment ? -1 : G.value.findIndex((D) => {
|
|
7892
7892
|
var f;
|
|
7893
7893
|
return D.id === ((f = C.attachment) == null ? void 0 : f.id);
|
|
7894
|
-
})), i =
|
|
7894
|
+
})), i = n(() => b.value > 0), w = n(
|
|
7895
7895
|
() => b.value >= 0 && b.value < G.value.length - 1
|
|
7896
|
-
), s = t(1),
|
|
7896
|
+
), s = t(1), R = t(null), V = t(null), X = t(null);
|
|
7897
7897
|
function o() {
|
|
7898
7898
|
A.value = !1;
|
|
7899
7899
|
}
|
|
@@ -7953,8 +7953,8 @@ const ns = { class: "apf-message-parts" }, Ms = ["innerHTML"], Ks = { class: "ap
|
|
|
7953
7953
|
D.preventDefault(), e();
|
|
7954
7954
|
return;
|
|
7955
7955
|
}
|
|
7956
|
-
if (D.key === "Tab" &&
|
|
7957
|
-
const f =
|
|
7956
|
+
if (D.key === "Tab" && R.value) {
|
|
7957
|
+
const f = R.value.querySelectorAll(
|
|
7958
7958
|
'button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])'
|
|
7959
7959
|
);
|
|
7960
7960
|
if (f.length === 0) return;
|
|
@@ -7986,7 +7986,7 @@ const ns = { class: "apf-message-parts" }, Ms = ["innerHTML"], Ks = { class: "ap
|
|
|
7986
7986
|
function z(D) {
|
|
7987
7987
|
l.value && (D.preventDefault(), D.deltaY < 0 ? L() : K());
|
|
7988
7988
|
}
|
|
7989
|
-
return (D, f) => (m(),
|
|
7989
|
+
return (D, f) => (m(), T(UZ, { to: "body" }, [
|
|
7990
7990
|
A.value && I.attachment ? (m(), W("div", {
|
|
7991
7991
|
key: 0,
|
|
7992
7992
|
class: "apf-preview-mask",
|
|
@@ -7997,8 +7997,8 @@ const ns = { class: "apf-message-parts" }, Ms = ["innerHTML"], Ks = { class: "ap
|
|
|
7997
7997
|
}, [
|
|
7998
7998
|
Y("div", {
|
|
7999
7999
|
ref_key: "panelRef",
|
|
8000
|
-
ref:
|
|
8001
|
-
class:
|
|
8000
|
+
ref: R,
|
|
8001
|
+
class: u(["apf-preview-panel", {
|
|
8002
8002
|
"apf-preview-image": l.value,
|
|
8003
8003
|
"apf-preview-pdf": c.value,
|
|
8004
8004
|
"apf-preview-degraded": !l.value && !c.value
|
|
@@ -8027,20 +8027,20 @@ const ns = { class: "apf-message-parts" }, Ms = ["innerHTML"], Ks = { class: "ap
|
|
|
8027
8027
|
"aria-label": "放大",
|
|
8028
8028
|
onClick: L
|
|
8029
8029
|
}, "+")
|
|
8030
|
-
], 64)) :
|
|
8030
|
+
], 64)) : a("", !0),
|
|
8031
8031
|
d(I.attachment) ? (m(), W("a", {
|
|
8032
8032
|
key: 1,
|
|
8033
8033
|
href: d(I.attachment),
|
|
8034
8034
|
target: "_blank",
|
|
8035
8035
|
rel: "noopener",
|
|
8036
8036
|
class: "apf-preview-action-btn"
|
|
8037
|
-
}, h(c.value ? "新窗口打开" : l.value ? "打开原图" : "打开原文件"), 9, i2)) :
|
|
8037
|
+
}, h(c.value ? "新窗口打开" : l.value ? "打开原图" : "打开原文件"), 9, i2)) : a("", !0),
|
|
8038
8038
|
d(I.attachment) ? (m(), W("button", {
|
|
8039
8039
|
key: 2,
|
|
8040
8040
|
type: "button",
|
|
8041
8041
|
class: "apf-preview-action-btn",
|
|
8042
8042
|
onClick: f[0] || (f[0] = (ZI) => y(I.attachment))
|
|
8043
|
-
}, " 下载 ")) :
|
|
8043
|
+
}, " 下载 ")) : a("", !0),
|
|
8044
8044
|
Y("button", {
|
|
8045
8045
|
ref_key: "closeBtnRef",
|
|
8046
8046
|
ref: V,
|
|
@@ -8062,34 +8062,34 @@ const ns = { class: "apf-message-parts" }, Ms = ["innerHTML"], Ks = { class: "ap
|
|
|
8062
8062
|
class: "apf-gallery-btn apf-gallery-prev",
|
|
8063
8063
|
"aria-label": "上一张图片",
|
|
8064
8064
|
onClick: S
|
|
8065
|
-
}, " ‹ ")) :
|
|
8065
|
+
}, " ‹ ")) : a("", !0),
|
|
8066
8066
|
d(I.attachment) ? (m(), W("img", {
|
|
8067
8067
|
key: 1,
|
|
8068
8068
|
src: d(I.attachment),
|
|
8069
8069
|
alt: I.attachment.filename,
|
|
8070
8070
|
class: "apf-preview-img",
|
|
8071
8071
|
style: dI({ transform: `scale(${s.value})` })
|
|
8072
|
-
}, null, 12, W2)) :
|
|
8072
|
+
}, null, 12, W2)) : a("", !0),
|
|
8073
8073
|
w.value ? (m(), W("button", {
|
|
8074
8074
|
key: 2,
|
|
8075
8075
|
type: "button",
|
|
8076
8076
|
class: "apf-gallery-btn apf-gallery-next",
|
|
8077
8077
|
"aria-label": "下一张图片",
|
|
8078
8078
|
onClick: k
|
|
8079
|
-
}, " › ")) :
|
|
8080
|
-
G.value.length > 1 ? (m(), W("div", B2, h(b.value + 1) + " / " + h(G.value.length), 1)) :
|
|
8079
|
+
}, " › ")) : a("", !0),
|
|
8080
|
+
G.value.length > 1 ? (m(), W("div", B2, h(b.value + 1) + " / " + h(G.value.length), 1)) : a("", !0)
|
|
8081
8081
|
], 32)) : c.value ? (m(), W("div", Y2, [
|
|
8082
|
-
d(I.attachment) ? (m(),
|
|
8082
|
+
d(I.attachment) ? (m(), T(cl, {
|
|
8083
8083
|
key: 0,
|
|
8084
8084
|
url: d(I.attachment),
|
|
8085
8085
|
title: I.attachment.filename,
|
|
8086
8086
|
"min-height": "70vh"
|
|
8087
|
-
}, null, 8, ["url", "title"])) :
|
|
8087
|
+
}, null, 8, ["url", "title"])) : a("", !0)
|
|
8088
8088
|
])) : (m(), W("div", s2, [
|
|
8089
8089
|
Y("div", w2, [
|
|
8090
8090
|
Y("span", V2, h($(dA)(I.attachment)), 1),
|
|
8091
8091
|
Y("strong", N2, h(I.attachment.filename), 1),
|
|
8092
|
-
I.attachment.size ? (m(), W("p", X2, h($(GA)(I.attachment.size)), 1)) :
|
|
8092
|
+
I.attachment.size ? (m(), W("p", X2, h($(GA)(I.attachment.size)), 1)) : a("", !0),
|
|
8093
8093
|
f[2] || (f[2] = Y("p", { class: "apf-degraded-hint" }, "此格式暂不支持应用内预览", -1)),
|
|
8094
8094
|
Y("div", o2, [
|
|
8095
8095
|
d(I.attachment) ? (m(), W("a", {
|
|
@@ -8098,18 +8098,18 @@ const ns = { class: "apf-message-parts" }, Ms = ["innerHTML"], Ks = { class: "ap
|
|
|
8098
8098
|
target: "_blank",
|
|
8099
8099
|
rel: "noopener",
|
|
8100
8100
|
class: "apf-preview-action-btn apf-preview-action-primary"
|
|
8101
|
-
}, " 打开原文件 ", 8, h2)) :
|
|
8101
|
+
}, " 打开原文件 ", 8, h2)) : a("", !0),
|
|
8102
8102
|
d(I.attachment) ? (m(), W("button", {
|
|
8103
8103
|
key: 1,
|
|
8104
8104
|
type: "button",
|
|
8105
8105
|
class: "apf-preview-action-btn apf-preview-action-primary",
|
|
8106
8106
|
onClick: f[1] || (f[1] = (ZI) => y(I.attachment))
|
|
8107
|
-
}, " 下载 ")) :
|
|
8107
|
+
}, " 下载 ")) : a("", !0)
|
|
8108
8108
|
])
|
|
8109
8109
|
])
|
|
8110
8110
|
]))
|
|
8111
8111
|
], 2)
|
|
8112
|
-
], 8, G2)) :
|
|
8112
|
+
], 8, G2)) : a("", !0)
|
|
8113
8113
|
]));
|
|
8114
8114
|
}
|
|
8115
8115
|
}), y2 = /* @__PURE__ */ U(H2, [["__scopeId", "data-v-13cf1e3e"]]), u2 = { class: "apf-bubble-wrap" }, n2 = {
|
|
@@ -8159,10 +8159,10 @@ const ns = { class: "apf-message-parts" }, Ms = ["innerHTML"], Ks = { class: "ap
|
|
|
8159
8159
|
},
|
|
8160
8160
|
emits: ["resume", "cancel", "retry", "open-process", "preview"],
|
|
8161
8161
|
setup(I, { emit: g }) {
|
|
8162
|
-
const C = I, Z = g, A = IA(), d =
|
|
8163
|
-
var
|
|
8162
|
+
const C = I, Z = g, A = IA(), d = n(() => !!(A.content || A.default)), l = t(!1), c = t(null), G = n(() => {
|
|
8163
|
+
var hI, HI;
|
|
8164
8164
|
const E = [...C.message.attachments || []];
|
|
8165
|
-
if (!((
|
|
8165
|
+
if (!((hI = C.sessionMessages) != null && hI.length)) return E;
|
|
8166
8166
|
const r = C.sessionMessages.findIndex((pI) => pI.id === C.message.id);
|
|
8167
8167
|
if (r <= 0) return E;
|
|
8168
8168
|
for (let pI = r - 1; pI >= 0; pI--) {
|
|
@@ -8174,12 +8174,12 @@ const ns = { class: "apf-message-parts" }, Ms = ["innerHTML"], Ks = { class: "ap
|
|
|
8174
8174
|
}
|
|
8175
8175
|
}
|
|
8176
8176
|
return E;
|
|
8177
|
-
}), b =
|
|
8177
|
+
}), b = n(() => G.value.filter(Rg));
|
|
8178
8178
|
function i(E) {
|
|
8179
8179
|
c.value = E, l.value = !0, Z("preview", E);
|
|
8180
8180
|
}
|
|
8181
|
-
const w =
|
|
8182
|
-
function
|
|
8181
|
+
const w = n(() => C.message.role === "user"), s = n(() => C.message.role === "assistant");
|
|
8182
|
+
function R(E) {
|
|
8183
8183
|
return {
|
|
8184
8184
|
PENDING: "排队中",
|
|
8185
8185
|
RUNNING: "正在处理",
|
|
@@ -8201,26 +8201,26 @@ const ns = { class: "apf-message-parts" }, Ms = ["innerHTML"], Ks = { class: "ap
|
|
|
8201
8201
|
const X = [
|
|
8202
8202
|
{ action: "approve", label: "确认继续", style: "primary" },
|
|
8203
8203
|
{ action: "reject", label: "需要修改", style: "danger" }
|
|
8204
|
-
], o =
|
|
8205
|
-
var r,
|
|
8204
|
+
], o = n(() => {
|
|
8205
|
+
var r, hI;
|
|
8206
8206
|
if (C.message.status !== "WAITING_INPUT") return null;
|
|
8207
8207
|
const E = (r = C.run) == null ? void 0 : r.waiting;
|
|
8208
8208
|
if (E) {
|
|
8209
|
-
const HI = (
|
|
8209
|
+
const HI = (hI = E.actions) != null && hI.length ? E.actions : X;
|
|
8210
8210
|
return { prompt: E.prompt || "请确认后继续。", fields: E.fields || [], actions: HI, dangerous: !!E.dangerous };
|
|
8211
8211
|
}
|
|
8212
8212
|
return { prompt: "请确认后继续。", fields: [], actions: X, dangerous: !1 };
|
|
8213
|
-
}), S =
|
|
8213
|
+
}), S = n(() => C.message.content || ""), k = n(
|
|
8214
8214
|
() => {
|
|
8215
8215
|
var E;
|
|
8216
8216
|
return !d.value && s.value && C.message.status === "RUNNING" && !S.value && !((E = C.message.attachments) != null && E.length);
|
|
8217
8217
|
}
|
|
8218
|
-
), L =
|
|
8218
|
+
), L = n(
|
|
8219
8219
|
() => {
|
|
8220
8220
|
var E, r;
|
|
8221
8221
|
return d.value || !!S.value || !!((E = C.message.documentSummaries) != null && E.length) || !!((r = C.message.attachments) != null && r.length);
|
|
8222
8222
|
}
|
|
8223
|
-
), K =
|
|
8223
|
+
), K = n(() => w.value ? "apf-user" : C.message.status === "WAITING_INPUT" ? "apf-waiting" : C.message.status === "FAILED" ? "apf-failed" : ""), e = t("");
|
|
8224
8224
|
function y(E) {
|
|
8225
8225
|
Z("resume", E, e.value || void 0), e.value = "";
|
|
8226
8226
|
}
|
|
@@ -8232,13 +8232,13 @@ const ns = { class: "apf-message-parts" }, Ms = ["innerHTML"], Ks = { class: "ap
|
|
|
8232
8232
|
function J() {
|
|
8233
8233
|
const E = S.value || C.message.content;
|
|
8234
8234
|
if (!E) return;
|
|
8235
|
-
const r = new Blob([E], { type: "text/markdown;charset=utf-8" }),
|
|
8236
|
-
HI.href =
|
|
8235
|
+
const r = new Blob([E], { type: "text/markdown;charset=utf-8" }), hI = URL.createObjectURL(r), HI = document.createElement("a");
|
|
8236
|
+
HI.href = hI, HI.download = "reply.md", HI.click(), URL.revokeObjectURL(hI);
|
|
8237
8237
|
}
|
|
8238
8238
|
function H(E) {
|
|
8239
8239
|
return E.error ? "失败" : E.result !== void 0 ? "已完成" : "处理中";
|
|
8240
8240
|
}
|
|
8241
|
-
const z = t(!1), D = t(!1), f = t(!1), ZI =
|
|
8241
|
+
const z = t(!1), D = t(!1), f = t(!1), ZI = n(
|
|
8242
8242
|
() => s.value && C.message.status === "RUNNING" && !!C.message.thinking
|
|
8243
8243
|
);
|
|
8244
8244
|
NI(
|
|
@@ -8266,17 +8266,17 @@ const ns = { class: "apf-message-parts" }, Ms = ["innerHTML"], Ks = { class: "ap
|
|
|
8266
8266
|
f.value = !f.value;
|
|
8267
8267
|
}
|
|
8268
8268
|
return (E, r) => {
|
|
8269
|
-
var
|
|
8269
|
+
var hI, HI, pI, OI, Ig;
|
|
8270
8270
|
return m(), W("div", {
|
|
8271
|
-
class:
|
|
8271
|
+
class: u(["apf-message", [I.message.role, I.message.status && s.value ? `apf-st-${I.message.status}` : ""]])
|
|
8272
8272
|
}, [
|
|
8273
|
-
s.value && I.brandMark ? (m(),
|
|
8273
|
+
s.value && I.brandMark ? (m(), T(OZ(I.brandMark), {
|
|
8274
8274
|
key: 0,
|
|
8275
8275
|
variant: "ai",
|
|
8276
8276
|
size: "sm"
|
|
8277
|
-
})) :
|
|
8277
|
+
})) : a("", !0),
|
|
8278
8278
|
Y("div", u2, [
|
|
8279
|
-
!d.value && s.value && I.message.tip ? (m(), W("p", n2, h(I.message.tip), 1)) :
|
|
8279
|
+
!d.value && s.value && I.message.tip ? (m(), W("p", n2, h(I.message.tip), 1)) : a("", !0),
|
|
8280
8280
|
k.value ? (m(), W("div", M2, [...r[4] || (r[4] = [
|
|
8281
8281
|
Y("span", { class: "apf-status-text" }, "正在处理", -1),
|
|
8282
8282
|
Y("span", { class: "apf-dots" }, [
|
|
@@ -8286,28 +8286,28 @@ const ns = { class: "apf-message-parts" }, Ms = ["innerHTML"], Ks = { class: "ap
|
|
|
8286
8286
|
], -1)
|
|
8287
8287
|
])])) : L.value ? (m(), W("div", K2, [
|
|
8288
8288
|
Y("div", {
|
|
8289
|
-
class:
|
|
8289
|
+
class: u(["apf-bubble apf-message-content", K.value])
|
|
8290
8290
|
}, [
|
|
8291
|
-
!d.value && ((
|
|
8291
|
+
!d.value && ((hI = I.message.attachments) != null && hI.length) ? (m(), T(qs, {
|
|
8292
8292
|
key: 0,
|
|
8293
8293
|
attachments: I.message.attachments,
|
|
8294
8294
|
onPreview: i
|
|
8295
|
-
}, null, 8, ["attachments"])) :
|
|
8295
|
+
}, null, 8, ["attachments"])) : a("", !0),
|
|
8296
8296
|
CI(E.$slots, "content", {}, () => [
|
|
8297
8297
|
CI(E.$slots, "default", {}, () => [
|
|
8298
|
-
S.value ? (m(),
|
|
8298
|
+
S.value ? (m(), T(js, {
|
|
8299
8299
|
key: 0,
|
|
8300
8300
|
content: S.value
|
|
8301
|
-
}, null, 8, ["content"])) :
|
|
8301
|
+
}, null, 8, ["content"])) : a("", !0)
|
|
8302
8302
|
], !0)
|
|
8303
8303
|
], !0),
|
|
8304
|
-
!d.value && ((HI = I.message.documentSummaries) != null && HI.length) ? (m(),
|
|
8304
|
+
!d.value && ((HI = I.message.documentSummaries) != null && HI.length) ? (m(), T(d2, {
|
|
8305
8305
|
key: 1,
|
|
8306
8306
|
summaries: I.message.documentSummaries,
|
|
8307
8307
|
attachments: G.value,
|
|
8308
8308
|
onPreview: i
|
|
8309
|
-
}, null, 8, ["summaries", "attachments"])) :
|
|
8310
|
-
!d.value && s.value && I.message.status === "RUNNING" && S.value ? (m(), W("p", S2, "仍在处理…")) :
|
|
8309
|
+
}, null, 8, ["summaries", "attachments"])) : a("", !0),
|
|
8310
|
+
!d.value && s.value && I.message.status === "RUNNING" && S.value ? (m(), W("p", S2, "仍在处理…")) : a("", !0)
|
|
8311
8311
|
], 2),
|
|
8312
8312
|
!d.value && s.value && I.message.status === "COMPLETED" ? (m(), W("div", D2, [
|
|
8313
8313
|
Y("button", {
|
|
@@ -8366,8 +8366,8 @@ const ns = { class: "apf-message-parts" }, Ms = ["innerHTML"], Ks = { class: "ap
|
|
|
8366
8366
|
class: "apf-text-link",
|
|
8367
8367
|
type: "button",
|
|
8368
8368
|
onClick: r[0] || (r[0] = (sI) => Z("open-process"))
|
|
8369
|
-
}, "处理信息")) :
|
|
8370
|
-
])) :
|
|
8369
|
+
}, "处理信息")) : a("", !0)
|
|
8370
|
+
])) : a("", !0),
|
|
8371
8371
|
!d.value && s.value && I.message.status === "FAILED" ? (m(), W("div", F2, [
|
|
8372
8372
|
Y("button", {
|
|
8373
8373
|
class: "apf-icon-btn",
|
|
@@ -8404,9 +8404,9 @@ const ns = { class: "apf-message-parts" }, Ms = ["innerHTML"], Ks = { class: "ap
|
|
|
8404
8404
|
})
|
|
8405
8405
|
], -1)
|
|
8406
8406
|
])])
|
|
8407
|
-
])) :
|
|
8408
|
-
])) : !d.value && s.value && I.message.status === "WAITING_INPUT" && !L.value ? (m(), W("div", p2, "请在下方确认后继续。")) : !d.value && s.value && I.message.status === "FAILED" && !L.value ? (m(), W("div", J2, "处理失败")) : !d.value && s.value && I.message.status === "CANCELLED" && !L.value ? (m(), W("div", z2, "已取消")) :
|
|
8409
|
-
d.value ?
|
|
8407
|
+
])) : a("", !0)
|
|
8408
|
+
])) : !d.value && s.value && I.message.status === "WAITING_INPUT" && !L.value ? (m(), W("div", p2, "请在下方确认后继续。")) : !d.value && s.value && I.message.status === "FAILED" && !L.value ? (m(), W("div", J2, "处理失败")) : !d.value && s.value && I.message.status === "CANCELLED" && !L.value ? (m(), W("div", z2, "已取消")) : a("", !0),
|
|
8409
|
+
d.value ? a("", !0) : (m(), T(y2, {
|
|
8410
8410
|
key: 6,
|
|
8411
8411
|
modelValue: l.value,
|
|
8412
8412
|
"onUpdate:modelValue": r[2] || (r[2] = (sI) => l.value = sI),
|
|
@@ -8416,7 +8416,7 @@ const ns = { class: "apf-message-parts" }, Ms = ["innerHTML"], Ks = { class: "ap
|
|
|
8416
8416
|
}, null, 8, ["modelValue", "attachment", "gallery"])),
|
|
8417
8417
|
!d.value && s.value && ((OI = I.message.thinking) != null && OI.trim()) ? (m(), W("div", {
|
|
8418
8418
|
key: 7,
|
|
8419
|
-
class:
|
|
8419
|
+
class: u(["apf-detail-block", { open: z.value, streaming: ZI.value }])
|
|
8420
8420
|
}, [
|
|
8421
8421
|
Y("button", {
|
|
8422
8422
|
type: "button",
|
|
@@ -8426,19 +8426,19 @@ const ns = { class: "apf-message-parts" }, Ms = ["innerHTML"], Ks = { class: "ap
|
|
|
8426
8426
|
}, [
|
|
8427
8427
|
r[8] || (r[8] = Y("span", { class: "apf-chevron" }, null, -1)),
|
|
8428
8428
|
r[9] || (r[9] = Y("span", null, "思考过程", -1)),
|
|
8429
|
-
ZI.value ? (m(), W("span", e2)) :
|
|
8429
|
+
ZI.value ? (m(), W("span", e2)) : a("", !0)
|
|
8430
8430
|
], 8, k2),
|
|
8431
8431
|
Y("div", L2, [
|
|
8432
8432
|
Y("div", t2, [
|
|
8433
8433
|
Y("div", {
|
|
8434
|
-
class:
|
|
8434
|
+
class: u(["apf-detail-content", { streaming: ZI.value }])
|
|
8435
8435
|
}, h(I.message.thinking), 3)
|
|
8436
8436
|
])
|
|
8437
8437
|
])
|
|
8438
|
-
], 2)) :
|
|
8438
|
+
], 2)) : a("", !0),
|
|
8439
8439
|
!d.value && s.value && ((Ig = I.message.toolCalls) != null && Ig.length) ? (m(), W("div", {
|
|
8440
8440
|
key: 8,
|
|
8441
|
-
class:
|
|
8441
|
+
class: u(["apf-detail-block", { open: f.value }])
|
|
8442
8442
|
}, [
|
|
8443
8443
|
Y("button", {
|
|
8444
8444
|
type: "button",
|
|
@@ -8457,43 +8457,43 @@ const ns = { class: "apf-message-parts" }, Ms = ["innerHTML"], Ks = { class: "ap
|
|
|
8457
8457
|
}, [
|
|
8458
8458
|
Y("strong", null, h(sI.name), 1),
|
|
8459
8459
|
Y("span", {
|
|
8460
|
-
class:
|
|
8460
|
+
class: u({ "apf-err": !!sI.error })
|
|
8461
8461
|
}, h(H(sI)), 3)
|
|
8462
8462
|
]))), 128))
|
|
8463
8463
|
])
|
|
8464
8464
|
])
|
|
8465
|
-
], 2)) :
|
|
8466
|
-
d.value ?
|
|
8465
|
+
], 2)) : a("", !0),
|
|
8466
|
+
d.value ? a("", !0) : (m(), W(Q, { key: 9 }, [
|
|
8467
8467
|
s.value && I.message.status !== "COMPLETED" && I.message.status !== "CANCELLED" ? (m(), W("span", {
|
|
8468
8468
|
key: 0,
|
|
8469
|
-
class:
|
|
8469
|
+
class: u(["apf-chip", V(I.message.status)])
|
|
8470
8470
|
}, [
|
|
8471
8471
|
r[11] || (r[11] = Y("i", null, null, -1)),
|
|
8472
|
-
gI(h(
|
|
8472
|
+
gI(h(R(I.message.status)), 1)
|
|
8473
8473
|
], 2)) : s.value && I.message.status === "COMPLETED" ? (m(), W("span", Q2, [...r[12] || (r[12] = [
|
|
8474
8474
|
Y("i", null, null, -1),
|
|
8475
8475
|
gI("已完成", -1)
|
|
8476
|
-
])])) :
|
|
8476
|
+
])])) : a("", !0)
|
|
8477
8477
|
], 64)),
|
|
8478
8478
|
!d.value && o.value ? (m(), W("div", {
|
|
8479
8479
|
key: 10,
|
|
8480
|
-
class:
|
|
8480
|
+
class: u(["apf-inline-approval", { "apf-dangerous-approval": o.value.dangerous }])
|
|
8481
8481
|
}, [
|
|
8482
8482
|
Y("div", U2, [
|
|
8483
8483
|
r[13] || (r[13] = Y("span", { class: "apf-approval-title" }, "需要你的确认", -1)),
|
|
8484
|
-
o.value.dangerous ? (m(), W("span", v2, "需谨慎")) :
|
|
8484
|
+
o.value.dangerous ? (m(), W("span", v2, "需谨慎")) : a("", !0)
|
|
8485
8485
|
]),
|
|
8486
8486
|
Y("p", O2, h(o.value.prompt), 1),
|
|
8487
8487
|
Y("div", E2, [
|
|
8488
8488
|
(m(!0), W(Q, null, q(o.value.actions, (sI) => (m(), W("button", {
|
|
8489
8489
|
key: sI.action,
|
|
8490
8490
|
type: "button",
|
|
8491
|
-
class:
|
|
8491
|
+
class: u(["apf-approval-btn", sI.style === "danger" ? "apf-approval-btn-danger" : "apf-approval-btn-primary"]),
|
|
8492
8492
|
disabled: I.sending,
|
|
8493
8493
|
onClick: (mI) => y(sI.action)
|
|
8494
8494
|
}, h(sI.label), 11, P2))), 128))
|
|
8495
8495
|
])
|
|
8496
|
-
], 2)) :
|
|
8496
|
+
], 2)) : a("", !0)
|
|
8497
8497
|
])
|
|
8498
8498
|
], 2);
|
|
8499
8499
|
};
|
|
@@ -8539,8 +8539,8 @@ const ns = { class: "apf-message-parts" }, Ms = ["innerHTML"], Ks = { class: "ap
|
|
|
8539
8539
|
class: "apf-skeleton",
|
|
8540
8540
|
style: { height: "var(--icon-size-sm, 14px)", width: "45%", "margin-top": "var(--spacing-sm, 8px)" }
|
|
8541
8541
|
}, null, -1)
|
|
8542
|
-
])])) :
|
|
8543
|
-
(m(!0), W(Q, null, q(I.messages, (G) => (m(),
|
|
8542
|
+
])])) : a("", !0),
|
|
8543
|
+
(m(!0), W(Q, null, q(I.messages, (G) => (m(), T(f2, {
|
|
8544
8544
|
key: G.id,
|
|
8545
8545
|
message: G,
|
|
8546
8546
|
run: d(G),
|
|
@@ -8555,7 +8555,7 @@ const ns = { class: "apf-message-parts" }, Ms = ["innerHTML"], Ks = { class: "ap
|
|
|
8555
8555
|
}, null, 8, ["message", "run", "sending", "brand-mark", "session-messages", "onOpenProcess"]))), 128))
|
|
8556
8556
|
], 512));
|
|
8557
8557
|
}
|
|
8558
|
-
}),
|
|
8558
|
+
}), NN = /* @__PURE__ */ U(_2, [["__scopeId", "data-v-0957f79a"]]), $2 = {
|
|
8559
8559
|
key: 0,
|
|
8560
8560
|
class: "apf-pending-list"
|
|
8561
8561
|
}, Iw = ["src"], gw = { class: "apf-pending-name" }, Cw = {
|
|
@@ -8590,7 +8590,7 @@ const ns = { class: "apf-message-parts" }, Ms = ["innerHTML"], Ks = { class: "ap
|
|
|
8590
8590
|
},
|
|
8591
8591
|
emits: ["send", "upload", "remove-attachment", "ws-click"],
|
|
8592
8592
|
setup(I, { emit: g }) {
|
|
8593
|
-
const C = I, Z = g, A = t(""), d = t(null), l = t(null), c = t([]), G = t(!1), b = IA(), i =
|
|
8593
|
+
const C = I, Z = g, A = t(""), d = t(null), l = t(null), c = t([]), G = t(!1), b = IA(), i = n(() => C.supportedInputs || ["text"]), w = n(() => i.value.some((p) => p === "file" || p === "image" || p === "document")), s = n(() => !!b.input), R = n(() => !C.hideDefaultInput && !s.value), V = n(() => !C.hideSend), X = n(() => w.value && !C.hideFileButton), o = n(() => {
|
|
8594
8594
|
if (C.disabled || G.value) return !1;
|
|
8595
8595
|
const p = !!A.value.trim(), J = c.value.some((z) => z.status === "done"), H = c.value.some((z) => z.status === "uploading");
|
|
8596
8596
|
return (p || J) && !H;
|
|
@@ -8630,36 +8630,36 @@ const ns = { class: "apf-message-parts" }, Ms = ["innerHTML"], Ks = { class: "ap
|
|
|
8630
8630
|
p.previewUrl && URL.revokeObjectURL(p.previewUrl);
|
|
8631
8631
|
});
|
|
8632
8632
|
}), (p, J) => (m(), W("form", {
|
|
8633
|
-
class:
|
|
8633
|
+
class: u(["apf-composer", { "apf-composer-stretch": I.stretch }]),
|
|
8634
8634
|
onSubmit: UI(K, ["prevent"])
|
|
8635
8635
|
}, [
|
|
8636
8636
|
Y("div", {
|
|
8637
|
-
class:
|
|
8637
|
+
class: u(["apf-composer-field", { "apf-disabled": I.disabled }])
|
|
8638
8638
|
}, [
|
|
8639
8639
|
CI(p.$slots, "pending", {}, () => [
|
|
8640
8640
|
c.value.length ? (m(), W("div", $2, [
|
|
8641
8641
|
(m(!0), W(Q, null, q(c.value, (H) => (m(), W("div", {
|
|
8642
8642
|
key: H.id,
|
|
8643
|
-
class:
|
|
8643
|
+
class: u(["apf-pending-chip", H.status])
|
|
8644
8644
|
}, [
|
|
8645
8645
|
H.previewUrl ? (m(), W("img", {
|
|
8646
8646
|
key: 0,
|
|
8647
8647
|
src: H.previewUrl,
|
|
8648
8648
|
alt: "",
|
|
8649
8649
|
class: "apf-pending-thumb"
|
|
8650
|
-
}, null, 8, Iw)) :
|
|
8650
|
+
}, null, 8, Iw)) : a("", !0),
|
|
8651
8651
|
Y("span", gw, h(H.filename), 1),
|
|
8652
|
-
H.status === "uploading" ? (m(), W("span", Cw, "上传中")) : H.status === "error" ? (m(), W("span", Aw, h(H.error || "失败"), 1)) :
|
|
8652
|
+
H.status === "uploading" ? (m(), W("span", Cw, "上传中")) : H.status === "error" ? (m(), W("span", Aw, h(H.error || "失败"), 1)) : a("", !0),
|
|
8653
8653
|
Y("button", {
|
|
8654
8654
|
type: "button",
|
|
8655
8655
|
class: "apf-pending-remove",
|
|
8656
8656
|
onClick: (z) => L(H.id)
|
|
8657
8657
|
}, "×", 8, Zw)
|
|
8658
8658
|
], 2))), 128))
|
|
8659
|
-
])) :
|
|
8659
|
+
])) : a("", !0)
|
|
8660
8660
|
], !0),
|
|
8661
8661
|
CI(p.$slots, "input", {}, () => [
|
|
8662
|
-
|
|
8662
|
+
R.value ? Gg((m(), W("textarea", {
|
|
8663
8663
|
key: 0,
|
|
8664
8664
|
ref_key: "textareaRef",
|
|
8665
8665
|
ref: d,
|
|
@@ -8670,7 +8670,7 @@ const ns = { class: "apf-message-parts" }, Ms = ["innerHTML"], Ks = { class: "ap
|
|
|
8670
8670
|
onKeydown: y
|
|
8671
8671
|
}, null, 40, lw)), [
|
|
8672
8672
|
[UC, A.value]
|
|
8673
|
-
]) :
|
|
8673
|
+
]) : a("", !0)
|
|
8674
8674
|
], !0),
|
|
8675
8675
|
Y("div", dw, [
|
|
8676
8676
|
Y("div", Gw, [
|
|
@@ -8706,7 +8706,7 @@ const ns = { class: "apf-message-parts" }, Ms = ["innerHTML"], Ks = { class: "ap
|
|
|
8706
8706
|
"stroke-linejoin": "round"
|
|
8707
8707
|
})
|
|
8708
8708
|
], -1)
|
|
8709
|
-
])], 8, cw)) :
|
|
8709
|
+
])], 8, cw)) : a("", !0)
|
|
8710
8710
|
]),
|
|
8711
8711
|
CI(p.$slots, "actions", {}, () => [
|
|
8712
8712
|
V.value ? (m(), W("button", {
|
|
@@ -8715,31 +8715,31 @@ const ns = { class: "apf-message-parts" }, Ms = ["innerHTML"], Ks = { class: "ap
|
|
|
8715
8715
|
class: "apf-send-btn",
|
|
8716
8716
|
disabled: !o.value,
|
|
8717
8717
|
title: "发送"
|
|
8718
|
-
}, "↗", 8, bw)) :
|
|
8718
|
+
}, "↗", 8, bw)) : a("", !0)
|
|
8719
8719
|
], !0)
|
|
8720
8720
|
])
|
|
8721
8721
|
], 2),
|
|
8722
|
-
I.hideMeta ?
|
|
8722
|
+
I.hideMeta ? a("", !0) : (m(), W("div", mw, [
|
|
8723
8723
|
Y("div", iw, [
|
|
8724
8724
|
J[3] || (J[3] = Y("span", { class: "apf-cap-chip" }, "文本", -1)),
|
|
8725
|
-
w.value ? (m(), W("span", Ww, "文件")) :
|
|
8726
|
-
I.hitlCapable ? (m(), W("span", Bw, "需要确认")) :
|
|
8725
|
+
w.value ? (m(), W("span", Ww, "文件")) : a("", !0),
|
|
8726
|
+
I.hitlCapable ? (m(), W("span", Bw, "需要确认")) : a("", !0)
|
|
8727
8727
|
]),
|
|
8728
8728
|
Y("div", Yw, [
|
|
8729
8729
|
I.wsStatus ? (m(), W("button", {
|
|
8730
8730
|
key: 0,
|
|
8731
8731
|
type: "button",
|
|
8732
|
-
class:
|
|
8732
|
+
class: u(["apf-ws-status", I.wsStatus]),
|
|
8733
8733
|
onClick: J[1] || (J[1] = (H) => Z("ws-click"))
|
|
8734
8734
|
}, [...J[4] || (J[4] = [
|
|
8735
8735
|
Y("i", { class: "apf-ws-dot" }, null, -1)
|
|
8736
|
-
])], 2)) :
|
|
8736
|
+
])], 2)) : a("", !0),
|
|
8737
8737
|
J[5] || (J[5] = Y("small", { class: "apf-hint" }, "Enter 发送 · Shift+Enter 换行", -1))
|
|
8738
8738
|
])
|
|
8739
8739
|
]))
|
|
8740
8740
|
], 34));
|
|
8741
8741
|
}
|
|
8742
|
-
}),
|
|
8742
|
+
}), XN = /* @__PURE__ */ U(sw, [["__scopeId", "data-v-e996c32a"]]), ww = {
|
|
8743
8743
|
key: 0,
|
|
8744
8744
|
class: "apf-run-bar"
|
|
8745
8745
|
}, Vw = { class: "apf-row" }, Nw = {
|
|
@@ -8756,7 +8756,7 @@ const ns = { class: "apf-message-parts" }, Ms = ["innerHTML"], Ks = { class: "ap
|
|
|
8756
8756
|
},
|
|
8757
8757
|
emits: ["cancel"],
|
|
8758
8758
|
setup(I, { emit: g }) {
|
|
8759
|
-
const C = I, Z = g, A =
|
|
8759
|
+
const C = I, Z = g, A = n(() => {
|
|
8760
8760
|
var G;
|
|
8761
8761
|
return ((G = C.run) == null ? void 0 : G.status) || null;
|
|
8762
8762
|
});
|
|
@@ -8774,20 +8774,20 @@ const ns = { class: "apf-message-parts" }, Ms = ["innerHTML"], Ks = { class: "ap
|
|
|
8774
8774
|
return (G, b) => I.run ? (m(), W("div", ww, [
|
|
8775
8775
|
Y("div", Vw, [
|
|
8776
8776
|
Y("span", {
|
|
8777
|
-
class:
|
|
8777
|
+
class: u(["apf-chip", l(A.value || "")])
|
|
8778
8778
|
}, [
|
|
8779
8779
|
b[1] || (b[1] = Y("i", null, null, -1)),
|
|
8780
8780
|
gI(h(d(A.value || "")), 1)
|
|
8781
8781
|
], 2),
|
|
8782
|
-
A.value === "RUNNING" || A.value === "WAITING_INPUT" ? (m(), W("span", Nw, h(c()), 1)) :
|
|
8782
|
+
A.value === "RUNNING" || A.value === "WAITING_INPUT" ? (m(), W("span", Nw, h(c()), 1)) : a("", !0),
|
|
8783
8783
|
A.value === "RUNNING" ? (m(), W("button", {
|
|
8784
8784
|
key: 1,
|
|
8785
8785
|
class: "apf-btn-cancel",
|
|
8786
8786
|
onClick: b[0] || (b[0] = (i) => Z("cancel"))
|
|
8787
|
-
}, "停止")) :
|
|
8787
|
+
}, "停止")) : a("", !0)
|
|
8788
8788
|
]),
|
|
8789
|
-
I.run.errorMessage ? (m(), W("p", Xw, h(I.run.errorMessage), 1)) :
|
|
8790
|
-
])) :
|
|
8789
|
+
I.run.errorMessage ? (m(), W("p", Xw, h(I.run.errorMessage), 1)) : a("", !0)
|
|
8790
|
+
])) : a("", !0);
|
|
8791
8791
|
}
|
|
8792
8792
|
}), hw = /* @__PURE__ */ U(ow, [["__scopeId", "data-v-33963f1d"]]), aw = { class: "apf-header" }, Rw = {
|
|
8793
8793
|
key: 0,
|
|
@@ -8806,11 +8806,11 @@ const ns = { class: "apf-message-parts" }, Ms = ["innerHTML"], Ks = { class: "ap
|
|
|
8806
8806
|
}
|
|
8807
8807
|
return (d, l) => I.waiting ? (m(), W("div", {
|
|
8808
8808
|
key: 0,
|
|
8809
|
-
class:
|
|
8809
|
+
class: u(["apf-approval-card", { "apf-dangerous": I.waiting.dangerous }])
|
|
8810
8810
|
}, [
|
|
8811
8811
|
Y("div", aw, [
|
|
8812
8812
|
l[3] || (l[3] = Y("span", { class: "apf-title" }, "需要你的操作", -1)),
|
|
8813
|
-
I.waiting.dangerous ? (m(), W("span", Rw, "危险操作")) :
|
|
8813
|
+
I.waiting.dangerous ? (m(), W("span", Rw, "危险操作")) : a("", !0)
|
|
8814
8814
|
]),
|
|
8815
8815
|
Y("p", Hw, h(I.waiting.prompt), 1),
|
|
8816
8816
|
(m(!0), W(Q, null, q(I.waiting.fields, (c) => (m(), W("div", {
|
|
@@ -8846,14 +8846,14 @@ const ns = { class: "apf-message-parts" }, Ms = ["innerHTML"], Ks = { class: "ap
|
|
|
8846
8846
|
Y("div", Mw, [
|
|
8847
8847
|
(m(!0), W(Q, null, q(I.waiting.actions, (c) => (m(), W("button", {
|
|
8848
8848
|
key: c.action,
|
|
8849
|
-
class:
|
|
8849
|
+
class: u(["apf-btn", c.style === "danger" ? "apf-btn-danger" : "apf-btn-primary"]),
|
|
8850
8850
|
disabled: I.disabled,
|
|
8851
8851
|
onClick: (G) => A(c.action)
|
|
8852
8852
|
}, h(c.label), 11, Kw))), 128))
|
|
8853
8853
|
])
|
|
8854
|
-
], 2)) :
|
|
8854
|
+
], 2)) : a("", !0);
|
|
8855
8855
|
}
|
|
8856
|
-
}),
|
|
8856
|
+
}), oN = /* @__PURE__ */ U(Sw, [["__scopeId", "data-v-ca69b479"]]), Dw = {
|
|
8857
8857
|
class: "apf-session-sidebar",
|
|
8858
8858
|
"aria-label": "会话列表"
|
|
8859
8859
|
}, Fw = { class: "apf-session-sidebar__head" }, pw = { class: "apf-session-sidebar__head-actions" }, Jw = {
|
|
@@ -8891,7 +8891,7 @@ const ns = { class: "apf-message-parts" }, Ms = ["innerHTML"], Ks = { class: "ap
|
|
|
8891
8891
|
Y("strong", null, h(I.title || "会话"), 1),
|
|
8892
8892
|
Y("div", pw, [
|
|
8893
8893
|
CI(A.$slots, "toolbar", {}, void 0, !0),
|
|
8894
|
-
I.hideCreate ?
|
|
8894
|
+
I.hideCreate ? a("", !0) : (m(), T(l, {
|
|
8895
8895
|
key: 0,
|
|
8896
8896
|
type: "primary",
|
|
8897
8897
|
size: "small",
|
|
@@ -8906,12 +8906,12 @@ const ns = { class: "apf-message-parts" }, Ms = ["innerHTML"], Ks = { class: "ap
|
|
|
8906
8906
|
]),
|
|
8907
8907
|
A.$slots["below-head"] ? (m(), W("div", Jw, [
|
|
8908
8908
|
CI(A.$slots, "below-head", {}, void 0, !0)
|
|
8909
|
-
])) :
|
|
8909
|
+
])) : a("", !0),
|
|
8910
8910
|
Gg((m(), W("div", zw, [
|
|
8911
8911
|
(m(!0), W(Q, null, q(I.sessions, (G) => (m(), W("button", {
|
|
8912
8912
|
key: G.id,
|
|
8913
8913
|
type: "button",
|
|
8914
|
-
class:
|
|
8914
|
+
class: u(["apf-session-sidebar__item", { "is-active": G.id === I.activeId }]),
|
|
8915
8915
|
onClick: (b) => C("select", G.id)
|
|
8916
8916
|
}, [
|
|
8917
8917
|
Y("span", ew, h(G.title || "未命名会话"), 1),
|
|
@@ -8926,7 +8926,7 @@ const ns = { class: "apf-message-parts" }, Ms = ["innerHTML"], Ks = { class: "ap
|
|
|
8926
8926
|
}, ["stop"]))
|
|
8927
8927
|
}, [
|
|
8928
8928
|
CI(A.$slots, "item-actions", { session: G }, () => [
|
|
8929
|
-
I.hideDelete ?
|
|
8929
|
+
I.hideDelete ? a("", !0) : (m(), T(l, {
|
|
8930
8930
|
key: 0,
|
|
8931
8931
|
class: "apf-session-sidebar__delete",
|
|
8932
8932
|
link: "",
|
|
@@ -8942,14 +8942,14 @@ const ns = { class: "apf-message-parts" }, Ms = ["innerHTML"], Ks = { class: "ap
|
|
|
8942
8942
|
], !0)
|
|
8943
8943
|
])
|
|
8944
8944
|
], 10, kw))), 128)),
|
|
8945
|
-
!I.loading && !I.sessions.length ? (m(), W("div", tw, h(I.emptyText || "暂无会话"), 1)) :
|
|
8945
|
+
!I.loading && !I.sessions.length ? (m(), W("div", tw, h(I.emptyText || "暂无会话"), 1)) : a("", !0)
|
|
8946
8946
|
])), [
|
|
8947
8947
|
[c, I.loading]
|
|
8948
8948
|
])
|
|
8949
8949
|
]);
|
|
8950
8950
|
};
|
|
8951
8951
|
}
|
|
8952
|
-
}),
|
|
8952
|
+
}), hN = /* @__PURE__ */ U(Tw, [["__scopeId", "data-v-b00284f7"]]), xw = {
|
|
8953
8953
|
key: 0,
|
|
8954
8954
|
class: "apf-processing-drawer__subtitle"
|
|
8955
8955
|
}, jw = { class: "apf-processing-drawer__body" }, Qw = /* @__PURE__ */ j({
|
|
@@ -8966,7 +8966,7 @@ const ns = { class: "apf-message-parts" }, Ms = ["innerHTML"], Ks = { class: "ap
|
|
|
8966
8966
|
const C = g;
|
|
8967
8967
|
return (Z, A) => {
|
|
8968
8968
|
const d = _("el-drawer");
|
|
8969
|
-
return m(),
|
|
8969
|
+
return m(), T(d, {
|
|
8970
8970
|
"model-value": I.modelValue,
|
|
8971
8971
|
title: I.title || "处理详情",
|
|
8972
8972
|
size: "380px",
|
|
@@ -8974,13 +8974,13 @@ const ns = { class: "apf-message-parts" }, Ms = ["innerHTML"], Ks = { class: "ap
|
|
|
8974
8974
|
"onUpdate:modelValue": A[1] || (A[1] = (l) => C("update:modelValue", l))
|
|
8975
8975
|
}, {
|
|
8976
8976
|
default: O(() => [
|
|
8977
|
-
I.subtitle ? (m(), W("p", xw, h(I.subtitle), 1)) :
|
|
8978
|
-
I.run ? (m(),
|
|
8977
|
+
I.subtitle ? (m(), W("p", xw, h(I.subtitle), 1)) : a("", !0),
|
|
8978
|
+
I.run ? (m(), T($(hw), {
|
|
8979
8979
|
key: 1,
|
|
8980
8980
|
run: I.run,
|
|
8981
8981
|
sending: I.sending ?? !1,
|
|
8982
8982
|
onCancel: A[0] || (A[0] = (l) => C("cancel"))
|
|
8983
|
-
}, null, 8, ["run", "sending"])) :
|
|
8983
|
+
}, null, 8, ["run", "sending"])) : a("", !0),
|
|
8984
8984
|
Y("div", jw, [
|
|
8985
8985
|
CI(Z.$slots, "default", {}, void 0, !0)
|
|
8986
8986
|
])
|
|
@@ -8989,7 +8989,7 @@ const ns = { class: "apf-message-parts" }, Ms = ["innerHTML"], Ks = { class: "ap
|
|
|
8989
8989
|
}, 8, ["model-value", "title"]);
|
|
8990
8990
|
};
|
|
8991
8991
|
}
|
|
8992
|
-
}),
|
|
8992
|
+
}), aN = /* @__PURE__ */ U(Qw, [["__scopeId", "data-v-6036074a"]]), Uw = { class: "apf-conversation-header" }, vw = { class: "apf-conversation-header__identity" }, Ow = { class: "apf-conversation-header__copy" }, Ew = { class: "apf-conversation-header__meta-row" }, Pw = {
|
|
8993
8993
|
key: 0,
|
|
8994
8994
|
class: "apf-conversation-header__label"
|
|
8995
8995
|
}, rw = { class: "apf-conversation-header__actions" }, fw = {
|
|
@@ -9006,13 +9006,13 @@ const ns = { class: "apf-message-parts" }, Ms = ["innerHTML"], Ks = { class: "ap
|
|
|
9006
9006
|
},
|
|
9007
9007
|
emits: ["changeAssistant", "toggleDetails", "create"],
|
|
9008
9008
|
setup(I, { emit: g }) {
|
|
9009
|
-
const C = I, Z = g, A = IA(), d =
|
|
9009
|
+
const C = I, Z = g, A = IA(), d = n(() => !C.hideDefaultActions && !A.actions);
|
|
9010
9010
|
return (l, c) => (m(), W("header", Uw, [
|
|
9011
9011
|
Y("div", vw, [
|
|
9012
9012
|
CI(l.$slots, "identity", {}, () => [
|
|
9013
9013
|
Y("div", Ow, [
|
|
9014
9014
|
Y("div", Ew, [
|
|
9015
|
-
I.label ? (m(), W("span", Pw, h(I.label), 1)) :
|
|
9015
|
+
I.label ? (m(), W("span", Pw, h(I.label), 1)) : a("", !0),
|
|
9016
9016
|
CI(l.$slots, "meta", {}, void 0, !0)
|
|
9017
9017
|
]),
|
|
9018
9018
|
Y("strong", null, h(I.title || "选择一个智能体开始"), 1)
|
|
@@ -9023,7 +9023,7 @@ const ns = { class: "apf-message-parts" }, Ms = ["innerHTML"], Ks = { class: "ap
|
|
|
9023
9023
|
I.processing ? (m(), W("span", fw, [...c[2] || (c[2] = [
|
|
9024
9024
|
Y("i", null, null, -1),
|
|
9025
9025
|
Y("span", null, "正在处理", -1)
|
|
9026
|
-
])])) :
|
|
9026
|
+
])])) : a("", !0),
|
|
9027
9027
|
CI(l.$slots, "actions", {}, () => [
|
|
9028
9028
|
d.value ? (m(), W(Q, { key: 0 }, [
|
|
9029
9029
|
Y("button", {
|
|
@@ -9036,22 +9036,78 @@ const ns = { class: "apf-message-parts" }, Ms = ["innerHTML"], Ks = { class: "ap
|
|
|
9036
9036
|
type: "button",
|
|
9037
9037
|
class: "apf-conversation-header__btn",
|
|
9038
9038
|
onClick: c[1] || (c[1] = (G) => Z("toggleDetails"))
|
|
9039
|
-
}, " 处理详情 ")) :
|
|
9040
|
-
], 64)) :
|
|
9039
|
+
}, " 处理详情 ")) : a("", !0)
|
|
9040
|
+
], 64)) : a("", !0)
|
|
9041
9041
|
], !0)
|
|
9042
9042
|
])
|
|
9043
9043
|
]));
|
|
9044
9044
|
}
|
|
9045
|
-
}),
|
|
9045
|
+
}), RN = /* @__PURE__ */ U(qw, [["__scopeId", "data-v-127a684e"]]), _w = ["title"], $w = {
|
|
9046
|
+
key: 0,
|
|
9047
|
+
class: "apf-pending-chip__spinner"
|
|
9048
|
+
}, IV = ["disabled"], gV = {
|
|
9049
|
+
key: 2,
|
|
9050
|
+
class: "apf-pending-chip__status"
|
|
9051
|
+
}, CV = {
|
|
9052
|
+
key: 3,
|
|
9053
|
+
class: "apf-pending-chip__status is-error"
|
|
9054
|
+
}, AV = /* @__PURE__ */ j({
|
|
9055
|
+
__name: "PendingAttachmentChip",
|
|
9056
|
+
props: {
|
|
9057
|
+
attachment: {}
|
|
9058
|
+
},
|
|
9059
|
+
emits: ["preview", "remove"],
|
|
9060
|
+
setup(I, { emit: g }) {
|
|
9061
|
+
const C = I, Z = g;
|
|
9062
|
+
function A(l) {
|
|
9063
|
+
return l != null && l.startsWith("image/") ? "picture" : "document";
|
|
9064
|
+
}
|
|
9065
|
+
function d() {
|
|
9066
|
+
C.attachment.status === "done" && Z("preview", C.attachment);
|
|
9067
|
+
}
|
|
9068
|
+
return (l, c) => (m(), W("div", {
|
|
9069
|
+
class: u(["apf-pending-chip", {
|
|
9070
|
+
"is-error": I.attachment.status === "error",
|
|
9071
|
+
"is-clickable": I.attachment.status === "done"
|
|
9072
|
+
}]),
|
|
9073
|
+
title: I.attachment.status === "error" && I.attachment.error || I.attachment.filename
|
|
9074
|
+
}, [
|
|
9075
|
+
I.attachment.status === "uploading" ? (m(), W("span", $w)) : (m(), T($(XI), {
|
|
9076
|
+
key: 1,
|
|
9077
|
+
name: A(I.attachment.mimetype),
|
|
9078
|
+
size: 14,
|
|
9079
|
+
class: "apf-pending-chip__icon"
|
|
9080
|
+
}, null, 8, ["name"])),
|
|
9081
|
+
Y("button", {
|
|
9082
|
+
type: "button",
|
|
9083
|
+
class: "apf-pending-chip__name",
|
|
9084
|
+
disabled: I.attachment.status !== "done",
|
|
9085
|
+
onClick: d
|
|
9086
|
+
}, h(I.attachment.filename), 9, IV),
|
|
9087
|
+
I.attachment.status === "uploading" ? (m(), W("span", gV, "上传中")) : I.attachment.status === "error" ? (m(), W("span", CV, h(I.attachment.error || "失败"), 1)) : a("", !0),
|
|
9088
|
+
Y("button", {
|
|
9089
|
+
type: "button",
|
|
9090
|
+
class: "apf-pending-chip__remove",
|
|
9091
|
+
"aria-label": "移除",
|
|
9092
|
+
onClick: c[0] || (c[0] = (G) => Z("remove", I.attachment.id))
|
|
9093
|
+
}, [
|
|
9094
|
+
II($(XI), {
|
|
9095
|
+
name: "close",
|
|
9096
|
+
size: 12
|
|
9097
|
+
})
|
|
9098
|
+
])
|
|
9099
|
+
], 10, _w));
|
|
9100
|
+
}
|
|
9101
|
+
}), HN = /* @__PURE__ */ U(AV, [["__scopeId", "data-v-d95f9eb6"]]), ZV = { class: "apf-assistant-picker" }, lV = {
|
|
9046
9102
|
key: 0,
|
|
9047
9103
|
class: "apf-assistant-picker__state"
|
|
9048
|
-
},
|
|
9104
|
+
}, dV = {
|
|
9049
9105
|
key: 1,
|
|
9050
9106
|
class: "apf-assistant-picker__state apf-assistant-picker__state--error"
|
|
9051
|
-
},
|
|
9107
|
+
}, GV = {
|
|
9052
9108
|
key: 2,
|
|
9053
9109
|
class: "apf-assistant-picker__state"
|
|
9054
|
-
},
|
|
9110
|
+
}, cV = ["onClick"], bV = { class: "apf-assistant-picker__main" }, mV = { class: "apf-assistant-picker__icon-wrap" }, iV = { class: "apf-assistant-picker__info" }, WV = { class: "apf-assistant-picker__caps" }, BV = /* @__PURE__ */ j({
|
|
9055
9111
|
__name: "AssistantPicker",
|
|
9056
9112
|
props: {
|
|
9057
9113
|
items: {},
|
|
@@ -9073,46 +9129,46 @@ const ns = { class: "apf-message-parts" }, Ms = ["innerHTML"], Ks = { class: "ap
|
|
|
9073
9129
|
function l(G) {
|
|
9074
9130
|
Z("update:modelValue", G.id), Z("select", G);
|
|
9075
9131
|
}
|
|
9076
|
-
const c =
|
|
9077
|
-
return (G, b) => (m(), W("div",
|
|
9078
|
-
I.loading ? (m(), W("div",
|
|
9132
|
+
const c = n(() => !C.loading && !C.error && !C.items.length);
|
|
9133
|
+
return (G, b) => (m(), W("div", ZV, [
|
|
9134
|
+
I.loading ? (m(), W("div", lV, [...b[0] || (b[0] = [
|
|
9079
9135
|
Y("p", null, "正在加载智能体…", -1)
|
|
9080
|
-
])])) : I.error ? (m(), W("div",
|
|
9136
|
+
])])) : I.error ? (m(), W("div", dV, [
|
|
9081
9137
|
Y("p", null, h(I.error), 1)
|
|
9082
|
-
])) : c.value ? (m(), W("div",
|
|
9138
|
+
])) : c.value ? (m(), W("div", GV, [...b[1] || (b[1] = [
|
|
9083
9139
|
Y("p", null, "暂无可用智能体", -1)
|
|
9084
|
-
])])) :
|
|
9140
|
+
])])) : a("", !0),
|
|
9085
9141
|
(m(!0), W(Q, null, q(I.items, (i) => (m(), W("button", {
|
|
9086
9142
|
key: i.id,
|
|
9087
9143
|
type: "button",
|
|
9088
|
-
class:
|
|
9144
|
+
class: u(["apf-assistant-picker__item", { "is-active": I.modelValue === i.id }]),
|
|
9089
9145
|
onClick: (w) => l(i)
|
|
9090
9146
|
}, [
|
|
9091
|
-
Y("div",
|
|
9092
|
-
Y("span",
|
|
9093
|
-
II($(
|
|
9147
|
+
Y("div", bV, [
|
|
9148
|
+
Y("span", mV, [
|
|
9149
|
+
II($(XI), {
|
|
9094
9150
|
name: d(i),
|
|
9095
9151
|
size: 22
|
|
9096
9152
|
}, null, 8, ["name"])
|
|
9097
9153
|
]),
|
|
9098
|
-
Y("span",
|
|
9154
|
+
Y("span", iV, [
|
|
9099
9155
|
Y("b", null, h(i.name), 1),
|
|
9100
9156
|
Y("small", null, h(i.description || "适合处理一类明确任务"), 1),
|
|
9101
|
-
Y("span",
|
|
9157
|
+
Y("span", WV, [
|
|
9102
9158
|
(m(!0), W(Q, null, q(A(i), (w) => (m(), W("span", {
|
|
9103
9159
|
key: w,
|
|
9104
|
-
class:
|
|
9160
|
+
class: u(["apf-assistant-picker__cap", { "is-confirm": w === "需要确认" }])
|
|
9105
9161
|
}, h(w), 3))), 128))
|
|
9106
9162
|
])
|
|
9107
9163
|
])
|
|
9108
9164
|
]),
|
|
9109
9165
|
Y("span", {
|
|
9110
|
-
class:
|
|
9166
|
+
class: u(["apf-assistant-picker__choose", { "is-selected": I.modelValue === i.id }])
|
|
9111
9167
|
}, h(I.modelValue === i.id ? "已选择" : "开始使用"), 3)
|
|
9112
|
-
], 10,
|
|
9168
|
+
], 10, cV))), 128))
|
|
9113
9169
|
]));
|
|
9114
9170
|
}
|
|
9115
|
-
}),
|
|
9171
|
+
}), yN = /* @__PURE__ */ U(BV, [["__scopeId", "data-v-f05e69c0"]]), YV = { class: "apf-model-picker" }, sV = /* @__PURE__ */ j({
|
|
9116
9172
|
__name: "ModelPicker",
|
|
9117
9173
|
props: {
|
|
9118
9174
|
models: {},
|
|
@@ -9124,7 +9180,7 @@ const ns = { class: "apf-message-parts" }, Ms = ["innerHTML"], Ks = { class: "ap
|
|
|
9124
9180
|
const C = g;
|
|
9125
9181
|
return (Z, A) => {
|
|
9126
9182
|
const d = _("el-option"), l = _("el-select");
|
|
9127
|
-
return m(), W("label",
|
|
9183
|
+
return m(), W("label", YV, [
|
|
9128
9184
|
II(l, {
|
|
9129
9185
|
"model-value": I.modelValue || void 0,
|
|
9130
9186
|
disabled: I.loading || !I.models.length,
|
|
@@ -9132,18 +9188,18 @@ const ns = { class: "apf-message-parts" }, Ms = ["innerHTML"], Ks = { class: "ap
|
|
|
9132
9188
|
"onUpdate:modelValue": A[0] || (A[0] = (c) => C("update:modelValue", c))
|
|
9133
9189
|
}, {
|
|
9134
9190
|
default: O(() => [
|
|
9135
|
-
I.loading ? (m(),
|
|
9191
|
+
I.loading ? (m(), T(d, {
|
|
9136
9192
|
key: 0,
|
|
9137
9193
|
label: "正在加载模型…",
|
|
9138
9194
|
value: "",
|
|
9139
9195
|
disabled: ""
|
|
9140
|
-
})) : I.models.length ?
|
|
9196
|
+
})) : I.models.length ? a("", !0) : (m(), T(d, {
|
|
9141
9197
|
key: 1,
|
|
9142
9198
|
label: "暂无可用模型",
|
|
9143
9199
|
value: "",
|
|
9144
9200
|
disabled: ""
|
|
9145
9201
|
})),
|
|
9146
|
-
(m(!0), W(Q, null, q(I.models, (c) => (m(),
|
|
9202
|
+
(m(!0), W(Q, null, q(I.models, (c) => (m(), T(d, {
|
|
9147
9203
|
key: c.id,
|
|
9148
9204
|
label: `${c.name} · ${c.provider}`,
|
|
9149
9205
|
value: c.id
|
|
@@ -9154,11 +9210,11 @@ const ns = { class: "apf-message-parts" }, Ms = ["innerHTML"], Ks = { class: "ap
|
|
|
9154
9210
|
]);
|
|
9155
9211
|
};
|
|
9156
9212
|
}
|
|
9157
|
-
}),
|
|
9158
|
-
function
|
|
9213
|
+
}), uN = /* @__PURE__ */ U(sV, [["__scopeId", "data-v-483ae73d"]]), Rl = Symbol("fg-toast");
|
|
9214
|
+
function nN(I) {
|
|
9159
9215
|
return { [Rl]: I };
|
|
9160
9216
|
}
|
|
9161
|
-
function
|
|
9217
|
+
function MN() {
|
|
9162
9218
|
const I = Id(Rl);
|
|
9163
9219
|
return {
|
|
9164
9220
|
show(g, C = "info", Z) {
|
|
@@ -9183,7 +9239,7 @@ function hN() {
|
|
|
9183
9239
|
}
|
|
9184
9240
|
};
|
|
9185
9241
|
}
|
|
9186
|
-
function
|
|
9242
|
+
function KN() {
|
|
9187
9243
|
async function I(Z, A = {}) {
|
|
9188
9244
|
const {
|
|
9189
9245
|
title: d = "确认操作",
|
|
@@ -9224,7 +9280,7 @@ function aN() {
|
|
|
9224
9280
|
confirmDanger: C
|
|
9225
9281
|
};
|
|
9226
9282
|
}
|
|
9227
|
-
function
|
|
9283
|
+
function SN() {
|
|
9228
9284
|
return {
|
|
9229
9285
|
success(I, g = {}) {
|
|
9230
9286
|
IC({ message: I, type: "success", ...g });
|
|
@@ -9240,7 +9296,7 @@ function RN() {
|
|
|
9240
9296
|
}
|
|
9241
9297
|
};
|
|
9242
9298
|
}
|
|
9243
|
-
function
|
|
9299
|
+
function DN(I, g = 300) {
|
|
9244
9300
|
const C = t(null);
|
|
9245
9301
|
function Z(...A) {
|
|
9246
9302
|
C.value && clearTimeout(C.value), C.value = setTimeout(() => {
|
|
@@ -9251,12 +9307,12 @@ function HN(I, g = 300) {
|
|
|
9251
9307
|
C.value && clearTimeout(C.value);
|
|
9252
9308
|
}), Z;
|
|
9253
9309
|
}
|
|
9254
|
-
function
|
|
9310
|
+
function FN(I, g) {
|
|
9255
9311
|
var c;
|
|
9256
|
-
const C = t(1), Z = t((g == null ? void 0 : g.initialPageSize) ?? Gl), A =
|
|
9312
|
+
const C = t(1), Z = t((g == null ? void 0 : g.initialPageSize) ?? Gl), A = n(() => {
|
|
9257
9313
|
const G = I.value, b = (C.value - 1) * Z.value;
|
|
9258
9314
|
return G.slice(b, b + Z.value);
|
|
9259
|
-
}), d =
|
|
9315
|
+
}), d = n(() => I.value.length);
|
|
9260
9316
|
function l() {
|
|
9261
9317
|
C.value = 1;
|
|
9262
9318
|
}
|
|
@@ -9275,8 +9331,8 @@ function yN(I, g) {
|
|
|
9275
9331
|
resetPage: l
|
|
9276
9332
|
};
|
|
9277
9333
|
}
|
|
9278
|
-
function
|
|
9279
|
-
const { timeout: g = 15e3, silentError: C = !1 } = I, Z = t(!1), A = t(null), d = t(!1), l =
|
|
9334
|
+
function pN(I = {}) {
|
|
9335
|
+
const { timeout: g = 15e3, silentError: C = !1 } = I, Z = t(!1), A = t(null), d = t(!1), l = n(() => A.value !== null);
|
|
9280
9336
|
let c = null, G = 0;
|
|
9281
9337
|
function b() {
|
|
9282
9338
|
G++, G === 1 && (Z.value = !0, A.value = null, d.value = !1, c = setTimeout(() => {
|
|
@@ -9286,10 +9342,10 @@ function uN(I = {}) {
|
|
|
9286
9342
|
function i() {
|
|
9287
9343
|
G = Math.max(0, G - 1), G === 0 && (Z.value = !1, d.value = !1, c && (clearTimeout(c), c = null));
|
|
9288
9344
|
}
|
|
9289
|
-
async function w(
|
|
9345
|
+
async function w(R) {
|
|
9290
9346
|
b();
|
|
9291
9347
|
try {
|
|
9292
|
-
return await
|
|
9348
|
+
return await R();
|
|
9293
9349
|
} catch (V) {
|
|
9294
9350
|
return C || (A.value = V instanceof Error ? V.message : "加载失败"), null;
|
|
9295
9351
|
} finally {
|
|
@@ -9308,7 +9364,7 @@ function uN(I = {}) {
|
|
|
9308
9364
|
reset: s
|
|
9309
9365
|
};
|
|
9310
9366
|
}
|
|
9311
|
-
function
|
|
9367
|
+
function JN(I) {
|
|
9312
9368
|
const {
|
|
9313
9369
|
containerRef: g,
|
|
9314
9370
|
autoScroll: C = !0,
|
|
@@ -9316,13 +9372,13 @@ function nN(I) {
|
|
|
9316
9372
|
offset: A = 50
|
|
9317
9373
|
} = I, d = t(!0), l = t(C);
|
|
9318
9374
|
function c() {
|
|
9319
|
-
const
|
|
9320
|
-
if (!
|
|
9321
|
-
const { scrollTop: V, scrollHeight: X, clientHeight: o } =
|
|
9375
|
+
const R = g.value;
|
|
9376
|
+
if (!R) return !0;
|
|
9377
|
+
const { scrollTop: V, scrollHeight: X, clientHeight: o } = R;
|
|
9322
9378
|
return X - V - o < A;
|
|
9323
9379
|
}
|
|
9324
|
-
async function G(
|
|
9325
|
-
if (!
|
|
9380
|
+
async function G(R = !0) {
|
|
9381
|
+
if (!R && !l.value) return;
|
|
9326
9382
|
await $I();
|
|
9327
9383
|
const V = g.value;
|
|
9328
9384
|
V && V.scrollTo({
|
|
@@ -9330,10 +9386,10 @@ function nN(I) {
|
|
|
9330
9386
|
behavior: Z
|
|
9331
9387
|
});
|
|
9332
9388
|
}
|
|
9333
|
-
function b(
|
|
9389
|
+
function b(R) {
|
|
9334
9390
|
const V = g.value;
|
|
9335
9391
|
V && V.scrollTo({
|
|
9336
|
-
top:
|
|
9392
|
+
top: R,
|
|
9337
9393
|
behavior: Z
|
|
9338
9394
|
});
|
|
9339
9395
|
}
|
|
@@ -9347,11 +9403,11 @@ function nN(I) {
|
|
|
9347
9403
|
d.value = c(), d.value && (l.value = !0);
|
|
9348
9404
|
}
|
|
9349
9405
|
return tg(() => {
|
|
9350
|
-
const
|
|
9351
|
-
|
|
9406
|
+
const R = g.value;
|
|
9407
|
+
R && (R.addEventListener("scroll", s), d.value = c());
|
|
9352
9408
|
}), mg(() => {
|
|
9353
|
-
const
|
|
9354
|
-
|
|
9409
|
+
const R = g.value;
|
|
9410
|
+
R && R.removeEventListener("scroll", s);
|
|
9355
9411
|
}), {
|
|
9356
9412
|
scrollToBottom: G,
|
|
9357
9413
|
scrollTo: b,
|
|
@@ -9363,7 +9419,7 @@ function nN(I) {
|
|
|
9363
9419
|
};
|
|
9364
9420
|
}
|
|
9365
9421
|
const tC = /* @__PURE__ */ new Map();
|
|
9366
|
-
function
|
|
9422
|
+
function zN(I) {
|
|
9367
9423
|
const {
|
|
9368
9424
|
url: g,
|
|
9369
9425
|
token: C,
|
|
@@ -9413,7 +9469,7 @@ function MN(I) {
|
|
|
9413
9469
|
o();
|
|
9414
9470
|
}, K);
|
|
9415
9471
|
}
|
|
9416
|
-
function
|
|
9472
|
+
function R(K) {
|
|
9417
9473
|
if (!(l != null && l.ws) || l.ws.readyState !== WebSocket.OPEN) return;
|
|
9418
9474
|
const e = {
|
|
9419
9475
|
action: "subscribe",
|
|
@@ -9438,8 +9494,8 @@ function MN(I) {
|
|
|
9438
9494
|
H == null ? e = !0 : K.add(H);
|
|
9439
9495
|
}
|
|
9440
9496
|
const y = b();
|
|
9441
|
-
y == null ? e = !0 : K.add(y), e &&
|
|
9442
|
-
for (const p of K)
|
|
9497
|
+
y == null ? e = !0 : K.add(y), e && R(void 0);
|
|
9498
|
+
for (const p of K) R(p);
|
|
9443
9499
|
}
|
|
9444
9500
|
function X(K) {
|
|
9445
9501
|
if (!l) return;
|
|
@@ -9453,7 +9509,7 @@ function MN(I) {
|
|
|
9453
9509
|
function o() {
|
|
9454
9510
|
if (!l) return;
|
|
9455
9511
|
if (l.ws && (l.ws.readyState === WebSocket.OPEN || l.ws.readyState === WebSocket.CONNECTING)) {
|
|
9456
|
-
l.ws.readyState === WebSocket.OPEN &&
|
|
9512
|
+
l.ws.readyState === WebSocket.OPEN && R(b());
|
|
9457
9513
|
return;
|
|
9458
9514
|
}
|
|
9459
9515
|
l.intentionalClose = !1, l.status.value = "connecting";
|
|
@@ -9499,7 +9555,7 @@ function MN(I) {
|
|
|
9499
9555
|
getProjectId: b,
|
|
9500
9556
|
handler: e
|
|
9501
9557
|
};
|
|
9502
|
-
return y.add(p), c.push(p), ((J = l.ws) == null ? void 0 : J.readyState) === WebSocket.OPEN &&
|
|
9558
|
+
return y.add(p), c.push(p), ((J = l.ws) == null ? void 0 : J.readyState) === WebSocket.OPEN && R(b()), () => {
|
|
9503
9559
|
y == null || y.delete(p);
|
|
9504
9560
|
const H = c.indexOf(p);
|
|
9505
9561
|
H >= 0 && c.splice(H, 1);
|
|
@@ -9507,12 +9563,12 @@ function MN(I) {
|
|
|
9507
9563
|
}
|
|
9508
9564
|
return o(), NI(b, (K) => {
|
|
9509
9565
|
var e;
|
|
9510
|
-
((e = l == null ? void 0 : l.ws) == null ? void 0 : e.readyState) === WebSocket.OPEN &&
|
|
9566
|
+
((e = l == null ? void 0 : l.ws) == null ? void 0 : e.readyState) === WebSocket.OPEN && R(K);
|
|
9511
9567
|
}), mg(() => {
|
|
9512
9568
|
k();
|
|
9513
9569
|
}), { status: G, connect: o, disconnect: k, on: L };
|
|
9514
9570
|
}
|
|
9515
|
-
function
|
|
9571
|
+
function kN(I) {
|
|
9516
9572
|
if (!I) return "操作失败";
|
|
9517
9573
|
if (typeof I == "string") return I;
|
|
9518
9574
|
if (I instanceof Error) return I.message || "操作失败";
|
|
@@ -9529,9 +9585,9 @@ function KN(I) {
|
|
|
9529
9585
|
}
|
|
9530
9586
|
return "操作失败";
|
|
9531
9587
|
}
|
|
9532
|
-
const
|
|
9588
|
+
const wV = /\/(?:schema-platform\/)?api\/ai\/documents\/([^/?#]+)\/file/i, xZ = /\.(mp4|webm|mov|m4v)(?:\?|#|$|\s)/i, VV = /\.(png|jpe?g|gif|webp|bmp|svg)(?:\?|#|$|\s)/i, TC = /\.pdf(?:\?|#|$|\s)/i, xC = /\.(docx?|xlsx?|csv|txt|md)(?:\?|#|$|\s)/i, jZ = /(?:https?:\/\/[^\s"'<>\]]+|\/(?:schema-platform\/)?api\/ai\/documents\/[^/\s"'<>\]]+\/file)/gi;
|
|
9533
9589
|
function kg(I) {
|
|
9534
|
-
const g = I.trim().match(
|
|
9590
|
+
const g = I.trim().match(wV);
|
|
9535
9591
|
if (g != null && g[1]) return g[1];
|
|
9536
9592
|
if (/^[0-9a-f]{24}$/i.test(I.trim())) return I.trim();
|
|
9537
9593
|
}
|
|
@@ -9546,7 +9602,7 @@ function og(I) {
|
|
|
9546
9602
|
return TC.test(c) || Z.includes("pdf") ? "pdf" : xC.test(c) || /word|sheet|excel|csv|text/.test(Z) ? "office" : "file";
|
|
9547
9603
|
}
|
|
9548
9604
|
const d = [g, C].filter(Boolean).join(" ").toLowerCase(), l = Z.toLowerCase();
|
|
9549
|
-
return l.startsWith("video/") || xZ.test(d) ? "video" : l.startsWith("image/") ||
|
|
9605
|
+
return l.startsWith("video/") || xZ.test(d) ? "video" : l.startsWith("image/") || VV.test(d) ? "image" : l.includes("pdf") || TC.test(d) ? "pdf" : xC.test(d) || l.includes("word") || l.includes("sheet") || l.includes("excel") || l.includes("csv") || l.startsWith("text/") ? "office" : kg(g) && !TC.test(g) && !xC.test(g) && !xZ.test(g) ? "image" : "file";
|
|
9550
9606
|
}
|
|
9551
9607
|
function _I(I, g, C) {
|
|
9552
9608
|
var A;
|
|
@@ -9568,7 +9624,7 @@ function QZ(I) {
|
|
|
9568
9624
|
}
|
|
9569
9625
|
return null;
|
|
9570
9626
|
}
|
|
9571
|
-
function
|
|
9627
|
+
function eN(I, g = "art") {
|
|
9572
9628
|
if (I == null) return [];
|
|
9573
9629
|
const C = [], Z = /* @__PURE__ */ new Set();
|
|
9574
9630
|
let A = 0;
|
|
@@ -9611,10 +9667,10 @@ function SN(I, g = "art") {
|
|
|
9611
9667
|
for (const w of G) {
|
|
9612
9668
|
let s = "";
|
|
9613
9669
|
if (typeof w == "string" ? s = w : w && typeof w == "object" && "url" in w && (s = String(w.url ?? "")), !s.trim()) continue;
|
|
9614
|
-
const
|
|
9670
|
+
const R = og({ url: s, hint: i });
|
|
9615
9671
|
_I(C, Z, {
|
|
9616
9672
|
id: d(),
|
|
9617
|
-
kind:
|
|
9673
|
+
kind: R,
|
|
9618
9674
|
url: s,
|
|
9619
9675
|
documentId: kg(s),
|
|
9620
9676
|
source: b
|
|
@@ -9663,7 +9719,7 @@ function SN(I, g = "art") {
|
|
|
9663
9719
|
}
|
|
9664
9720
|
return C;
|
|
9665
9721
|
}
|
|
9666
|
-
function
|
|
9722
|
+
function LN(I) {
|
|
9667
9723
|
return I.map((g, C) => {
|
|
9668
9724
|
const Z = og({
|
|
9669
9725
|
url: g.url,
|
|
@@ -9682,96 +9738,97 @@ function DN(I) {
|
|
|
9682
9738
|
};
|
|
9683
9739
|
});
|
|
9684
9740
|
}
|
|
9685
|
-
const
|
|
9741
|
+
const tN = "1.10.1", TN = "2.14.2", xN = "2026-08-27";
|
|
9686
9742
|
export {
|
|
9687
|
-
|
|
9688
|
-
|
|
9743
|
+
hV as APP_ICON_NAMES,
|
|
9744
|
+
vV as AVATAR_SIZE,
|
|
9689
9745
|
gA as AppDialog,
|
|
9690
|
-
|
|
9691
|
-
|
|
9692
|
-
|
|
9693
|
-
|
|
9746
|
+
XI as AppIcon,
|
|
9747
|
+
RV as AppPagination,
|
|
9748
|
+
pV as AppUserPanel,
|
|
9749
|
+
oN as ApprovalCard,
|
|
9694
9750
|
cA as ArtifactGallery,
|
|
9695
|
-
|
|
9751
|
+
yN as AssistantPicker,
|
|
9696
9752
|
y2 as AttachmentPreviewModal,
|
|
9697
|
-
|
|
9698
|
-
|
|
9753
|
+
QV as BORDER_RADIUS,
|
|
9754
|
+
AN as BreadcrumbNav,
|
|
9699
9755
|
JI as CHART_COLORS,
|
|
9700
9756
|
QI as COLORS,
|
|
9701
|
-
|
|
9702
|
-
|
|
9703
|
-
|
|
9704
|
-
|
|
9705
|
-
|
|
9757
|
+
tV as CONTROL_HEIGHT,
|
|
9758
|
+
DV as CardGridSkeleton,
|
|
9759
|
+
lN as CardTable,
|
|
9760
|
+
XN as Composer,
|
|
9761
|
+
HV as ConfirmDialog,
|
|
9706
9762
|
H0 as ContentPanel,
|
|
9707
|
-
|
|
9763
|
+
RN as ConversationHeader,
|
|
9708
9764
|
Gl as DEFAULT_PAGE_SIZE,
|
|
9709
|
-
|
|
9710
|
-
|
|
9765
|
+
OV as DURATION,
|
|
9766
|
+
YN as DocumentPreviewDrawer,
|
|
9711
9767
|
bB as DocumentPreviewPanel,
|
|
9712
9768
|
d2 as DocumentSummaryList,
|
|
9713
|
-
|
|
9714
|
-
|
|
9769
|
+
TN as EP_FORK_BASE,
|
|
9770
|
+
xN as EP_FORK_DATE,
|
|
9715
9771
|
cg as EmptyState,
|
|
9716
|
-
|
|
9772
|
+
MV as ErrorBoundary,
|
|
9717
9773
|
$W as ExcelPreviewCard,
|
|
9718
|
-
|
|
9719
|
-
|
|
9720
|
-
|
|
9721
|
-
|
|
9774
|
+
VN as ExecutionArtifactPanel,
|
|
9775
|
+
eV as FONT_SIZE,
|
|
9776
|
+
UV as FORM,
|
|
9777
|
+
cN as FieldRow,
|
|
9722
9778
|
nB as FileChip,
|
|
9723
|
-
|
|
9724
|
-
|
|
9725
|
-
|
|
9726
|
-
|
|
9727
|
-
|
|
9779
|
+
ZN as FilterBar,
|
|
9780
|
+
uV as FilterTabs,
|
|
9781
|
+
yV as FormDialog,
|
|
9782
|
+
bN as HintText,
|
|
9783
|
+
wN as HitlArtifactPanel,
|
|
9728
9784
|
lA as ICON_MAP,
|
|
9729
|
-
|
|
9785
|
+
xV as ICON_SIZE,
|
|
9730
9786
|
BB as ImagePreviewCard,
|
|
9731
9787
|
VW as JsonCard,
|
|
9732
9788
|
oW as JsonDetailDialog,
|
|
9733
|
-
|
|
9734
|
-
|
|
9735
|
-
|
|
9789
|
+
TV as LAYOUT_HEIGHT,
|
|
9790
|
+
iN as LoadingDots,
|
|
9791
|
+
$V as LogStream,
|
|
9736
9792
|
qs as MessageAttachmentList,
|
|
9737
9793
|
f2 as MessageBubble,
|
|
9738
|
-
|
|
9794
|
+
NN as MessageList,
|
|
9739
9795
|
js as MessageParts,
|
|
9740
|
-
|
|
9741
|
-
|
|
9742
|
-
|
|
9743
|
-
|
|
9796
|
+
PV as MetricChart,
|
|
9797
|
+
uN as ModelPicker,
|
|
9798
|
+
sN as NodeArtifactStrip,
|
|
9799
|
+
jV as PAGE,
|
|
9744
9800
|
ub as PAGE_SIZE_OPTIONS,
|
|
9745
9801
|
nb as PAGINATION_LAYOUT,
|
|
9746
|
-
|
|
9747
|
-
|
|
9802
|
+
CN as PageHeader,
|
|
9803
|
+
gN as PageShell,
|
|
9748
9804
|
cl as PdfPreviewCard,
|
|
9749
|
-
|
|
9805
|
+
HN as PendingAttachmentChip,
|
|
9806
|
+
aN as ProcessingDrawer,
|
|
9750
9807
|
hw as RunStatusBar,
|
|
9751
|
-
|
|
9808
|
+
tN as SCHEMA_UI_VERSION,
|
|
9752
9809
|
y0 as SHADOWS,
|
|
9753
|
-
|
|
9754
|
-
|
|
9755
|
-
|
|
9756
|
-
|
|
9757
|
-
|
|
9758
|
-
|
|
9759
|
-
|
|
9760
|
-
|
|
9761
|
-
|
|
9762
|
-
|
|
9763
|
-
|
|
9764
|
-
|
|
9765
|
-
|
|
9766
|
-
|
|
9810
|
+
LV as SPACING,
|
|
9811
|
+
WN as SchemaLitePreview,
|
|
9812
|
+
GN as SearchForm,
|
|
9813
|
+
mN as SectionToggle,
|
|
9814
|
+
qV as ServiceGrid,
|
|
9815
|
+
hN as SessionSidebar,
|
|
9816
|
+
fV as SeverityBadge,
|
|
9817
|
+
SV as Skeleton,
|
|
9818
|
+
JV as SliderCaptcha,
|
|
9819
|
+
rV as StatCard,
|
|
9820
|
+
KV as StatusTag,
|
|
9821
|
+
_V as StatusTimeline,
|
|
9822
|
+
kV as TEXT_COLORS,
|
|
9823
|
+
dN as TableRowActions,
|
|
9767
9824
|
RB as TextPreviewCard,
|
|
9768
|
-
|
|
9769
|
-
|
|
9770
|
-
|
|
9825
|
+
IN as ThresholdSlider,
|
|
9826
|
+
zV as TimeRangePicker,
|
|
9827
|
+
nV as Toast,
|
|
9771
9828
|
_i as TruncatedTooltipText,
|
|
9772
|
-
|
|
9829
|
+
FV as UserAvatar,
|
|
9773
9830
|
wB as VideoPreviewCard,
|
|
9774
|
-
|
|
9831
|
+
EV as Z_INDEX,
|
|
9775
9832
|
og as detectArtifactKind,
|
|
9776
9833
|
kg as extractDocumentId,
|
|
9777
9834
|
dA as fileKind,
|
|
@@ -9779,22 +9836,22 @@ export {
|
|
|
9779
9836
|
Rg as isImage,
|
|
9780
9837
|
BZ as isOffice,
|
|
9781
9838
|
Lg as isPdf,
|
|
9782
|
-
|
|
9783
|
-
|
|
9784
|
-
|
|
9785
|
-
|
|
9786
|
-
|
|
9839
|
+
BN as isPreviewable,
|
|
9840
|
+
aV as isRegisteredAppIcon,
|
|
9841
|
+
LN as normalizeAttachments,
|
|
9842
|
+
eN as normalizeNodeOutput,
|
|
9843
|
+
nN as provideToast,
|
|
9787
9844
|
us as renderMarkdown,
|
|
9788
|
-
|
|
9845
|
+
kN as resolveApiErrorMessage,
|
|
9789
9846
|
ys as splitTextAndCodeBlocks,
|
|
9790
9847
|
QZ as tryParseJsonText,
|
|
9791
|
-
|
|
9792
|
-
|
|
9848
|
+
JN as useChatScroll,
|
|
9849
|
+
FN as useClientPagination,
|
|
9793
9850
|
VB as useClipboard,
|
|
9794
|
-
|
|
9795
|
-
|
|
9796
|
-
|
|
9797
|
-
|
|
9798
|
-
|
|
9799
|
-
|
|
9851
|
+
KN as useConfirm,
|
|
9852
|
+
pN as useDataLoading,
|
|
9853
|
+
DN as useDebounceFn,
|
|
9854
|
+
SN as useMessage,
|
|
9855
|
+
zN as useRealtime,
|
|
9856
|
+
MN as useToast
|
|
9800
9857
|
};
|