bi-components-library 1.2.85 → 1.2.86
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/bi-components-library.css +1 -1
- package/dist/index.es.js +628 -600
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +21 -21
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -567,7 +567,7 @@ const { Option: nd } = al, rd = ({
|
|
|
567
567
|
return {
|
|
568
568
|
...H,
|
|
569
569
|
sorter: x ? !0 : void 0,
|
|
570
|
-
render: I || ((
|
|
570
|
+
render: I || ((R) => R)
|
|
571
571
|
};
|
|
572
572
|
}), [e]), A = ue(async (L = {}) => {
|
|
573
573
|
if (t) {
|
|
@@ -603,11 +603,11 @@ const { Option: nd } = al, rd = ({
|
|
|
603
603
|
current: L.current || 1,
|
|
604
604
|
pageSize: L.pageSize || r,
|
|
605
605
|
total: L.total || 0
|
|
606
|
-
},
|
|
606
|
+
}, R = {
|
|
607
607
|
field: I?.field,
|
|
608
608
|
order: I?.order
|
|
609
609
|
};
|
|
610
|
-
v(H), m(
|
|
610
|
+
v(H), m(R);
|
|
611
611
|
}, [r]);
|
|
612
612
|
return ne(() => {
|
|
613
613
|
const L = Object.keys(s).length > 0;
|
|
@@ -759,13 +759,13 @@ const je = (e) => e === "multi-variable" || e === "multi-variable-select", id =
|
|
|
759
759
|
const z = window.getComputedStyle(T);
|
|
760
760
|
I = (Number.parseFloat(z.paddingLeft) || 0) + (Number.parseFloat(z.paddingRight) || 0);
|
|
761
761
|
}
|
|
762
|
-
const H = b.querySelector(".ant-select-arrow"),
|
|
762
|
+
const H = b.querySelector(".ant-select-arrow"), R = H ? Math.ceil(H.getBoundingClientRect().width) : 12, $ = b.querySelector(".ant-select-clear");
|
|
763
763
|
let _ = 0;
|
|
764
764
|
if ($) {
|
|
765
765
|
const z = window.getComputedStyle($);
|
|
766
766
|
z.display !== "none" && z.visibility !== "hidden" && (_ = Math.ceil($.getBoundingClientRect().width));
|
|
767
767
|
}
|
|
768
|
-
const Y = Math.max(36, x + I +
|
|
768
|
+
const Y = Math.max(36, x + I + R + _ + 6);
|
|
769
769
|
d((z) => z === Y ? z : Y);
|
|
770
770
|
}, [E]);
|
|
771
771
|
return Ge(() => {
|
|
@@ -913,7 +913,7 @@ const je = (e) => e === "multi-variable" || e === "multi-variable-select", id =
|
|
|
913
913
|
}, [s, y, l]), k = Le.useCallback(() => {
|
|
914
914
|
const A = b.current;
|
|
915
915
|
if (!A) return;
|
|
916
|
-
const O = A.querySelector(".ant-select-selection-item"), D = A.querySelector(".ant-select-selection-placeholder"), F = O || D, M = (F?.textContent || "").trim() || N(), L = A.querySelector(".ant-select-selector"), x = F || L || A, I = window.getComputedStyle(x), H = F ? I.fontSize : "16px",
|
|
916
|
+
const O = A.querySelector(".ant-select-selection-item"), D = A.querySelector(".ant-select-selection-placeholder"), F = O || D, M = (F?.textContent || "").trim() || N(), L = A.querySelector(".ant-select-selector"), x = F || L || A, I = window.getComputedStyle(x), H = F ? I.fontSize : "16px", R = I.fontFamily || "sans-serif", $ = I.fontWeight || "400", Y = `${I.fontStyle || "normal"} ${$} ${H} ${R}`, S = document.createElement("canvas").getContext("2d"), q = S ? Math.ceil((S.font = Y, S.measureText(M).width || 0)) : 0;
|
|
917
917
|
let V = 0;
|
|
918
918
|
if (L) {
|
|
919
919
|
const Te = window.getComputedStyle(L);
|
|
@@ -925,8 +925,8 @@ const je = (e) => e === "multi-variable" || e === "multi-variable-select", id =
|
|
|
925
925
|
const Te = window.getComputedStyle(te);
|
|
926
926
|
Te.display !== "none" && Te.visibility !== "hidden" && (de = Math.ceil(te.getBoundingClientRect().width));
|
|
927
927
|
}
|
|
928
|
-
const
|
|
929
|
-
v((Te) => Te ===
|
|
928
|
+
const be = Math.min(240, Math.max(80, q + V + j + de + 4));
|
|
929
|
+
v((Te) => Te === be ? Te : be);
|
|
930
930
|
}, [N]);
|
|
931
931
|
return Ge(() => {
|
|
932
932
|
const A = window.requestAnimationFrame(() => {
|
|
@@ -1059,7 +1059,7 @@ const je = (e) => e === "multi-variable" || e === "multi-variable-select", id =
|
|
|
1059
1059
|
const w = Le.useCallback(() => s.length >= 2 ? s.join("-") : l || "请选择省市区", [s, l]), T = Le.useCallback(() => {
|
|
1060
1060
|
const C = v.current;
|
|
1061
1061
|
if (!C) return;
|
|
1062
|
-
const N = w(), k = C.querySelector(".ant-select-selector"), A = C.querySelector(".ant-select-selection-item") || C.querySelector(".ant-select-selection-placeholder"), O = A || k || C, D = window.getComputedStyle(O), F = A ? D.fontSize : "16px", M = D.fontFamily || "sans-serif", L = D.fontWeight || "400", I = `${D.fontStyle || "normal"} ${L} ${F} ${M}`,
|
|
1062
|
+
const N = w(), k = C.querySelector(".ant-select-selector"), A = C.querySelector(".ant-select-selection-item") || C.querySelector(".ant-select-selection-placeholder"), O = A || k || C, D = window.getComputedStyle(O), F = A ? D.fontSize : "16px", M = D.fontFamily || "sans-serif", L = D.fontWeight || "400", I = `${D.fontStyle || "normal"} ${L} ${F} ${M}`, R = document.createElement("canvas").getContext("2d"), $ = R ? Math.ceil((R.font = I, R.measureText(N).width || 0)) : 0;
|
|
1063
1063
|
let _ = 0;
|
|
1064
1064
|
if (k) {
|
|
1065
1065
|
const S = window.getComputedStyle(k);
|
|
@@ -1223,10 +1223,10 @@ const bd = ({ host: e, onChange: t }) => {
|
|
|
1223
1223
|
if (!T) return;
|
|
1224
1224
|
const C = T.querySelector("textarea");
|
|
1225
1225
|
if (!C) return;
|
|
1226
|
-
const N = window.getComputedStyle(C), k = N.fontStyle || "normal", A = N.fontWeight || "400", O = N.fontSize || "16px", D = N.fontFamily || "sans-serif", F = `${k} ${A} ${O} ${D}`, M = Number.parseFloat(N.paddingLeft) || 0, L = Number.parseFloat(N.paddingRight) || 0, x = (u && u.length > 0 ? u : l) || " ", I = hd(x, F, N.letterSpacing || "0", M, L),
|
|
1227
|
-
`) ||
|
|
1226
|
+
const N = window.getComputedStyle(C), k = N.fontStyle || "normal", A = N.fontWeight || "400", O = N.fontSize || "16px", D = N.fontFamily || "sans-serif", F = `${k} ${A} ${O} ${D}`, M = Number.parseFloat(N.paddingLeft) || 0, L = Number.parseFloat(N.paddingRight) || 0, x = (u && u.length > 0 ? u : l) || " ", I = hd(x, F, N.letterSpacing || "0", M, L), R = Math.max(24, Math.min(600, I + 2)), $ = e.closest(".rte-editor"), _ = $ ? window.getComputedStyle($) : null, Y = _ && Number.parseFloat(_.paddingLeft) || 0, z = _ && Number.parseFloat(_.paddingRight) || 0, S = $ ? Math.max(0, $.clientWidth - Y - z) : 1 / 0, V = (u || "").includes(`
|
|
1227
|
+
`) || R > S;
|
|
1228
1228
|
y((j) => j === V ? j : V);
|
|
1229
|
-
const K = V && Number.isFinite(S) ? Math.max(24, S) :
|
|
1229
|
+
const K = V && Number.isFinite(S) ? Math.max(24, S) : R;
|
|
1230
1230
|
h((j) => j === K ? j : K);
|
|
1231
1231
|
}, [e, l, u]);
|
|
1232
1232
|
ne(() => {
|
|
@@ -1359,7 +1359,7 @@ const bd = ({ host: e, onChange: t }) => {
|
|
|
1359
1359
|
});
|
|
1360
1360
|
return r.observe(l, { childList: !0, subtree: !0 }), () => r.disconnect();
|
|
1361
1361
|
}, [e]), t;
|
|
1362
|
-
},
|
|
1362
|
+
}, he = (e) => e.replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">").replace(/"/g, """).replace(/'/g, "'"), st = (e) => e ? typeof e == "string" ? e : JSON.stringify(e) : "", vd = (e) => {
|
|
1363
1363
|
const t = (e?.name || "").toLowerCase(), a = /\.(png|jpe?g|gif|webp|bmp|svg)$/.test(t), l = (e?.type || "").toLowerCase();
|
|
1364
1364
|
return a || (l === "image/png" || l === "image/jpeg" || l === "image/gif" || l === "image/webp" || l === "image/bmp" || l === "image/svg+xml");
|
|
1365
1365
|
}, Ll = (e) => {
|
|
@@ -1396,8 +1396,11 @@ function da(e, t) {
|
|
|
1396
1396
|
e.current.querySelectorAll('[data-type="variable"]').forEach((l) => {
|
|
1397
1397
|
if (l.dataset.variableRender === "antd-textarea")
|
|
1398
1398
|
return;
|
|
1399
|
-
|
|
1400
|
-
|
|
1399
|
+
let n = "";
|
|
1400
|
+
if (l.childNodes.forEach((f) => {
|
|
1401
|
+
f.nodeType === Node.TEXT_NODE && (n += f.textContent || "");
|
|
1402
|
+
}), n.replace(/\u200B/g, "").trim().length === 0) {
|
|
1403
|
+
const f = l.querySelector(".variable-info-icon, .rte-tutorial-btn"), E = typeof window < "u" ? window.getSelection() : null;
|
|
1401
1404
|
if (!!(E && (E.anchorNode && l.contains(E.anchorNode) || E.focusNode && l.contains(E.focusNode))) && !0)
|
|
1402
1405
|
Array.from(l.childNodes).forEach((g) => {
|
|
1403
1406
|
g.nodeType === Node.ELEMENT_NODE && g.tagName === "BR" && l.removeChild(g);
|
|
@@ -1430,15 +1433,23 @@ function da(e, t) {
|
|
|
1430
1433
|
}
|
|
1431
1434
|
})(), T = (() => {
|
|
1432
1435
|
if (!!!l.querySelector(
|
|
1433
|
-
".variable-info-icon, .rte-report-dropdown-host"
|
|
1436
|
+
".variable-info-icon, .rte-report-dropdown-host, .rte-tutorial-btn"
|
|
1434
1437
|
)) return 0;
|
|
1435
|
-
const M = l.querySelector(".
|
|
1436
|
-
|
|
1437
|
-
|
|
1438
|
-
|
|
1438
|
+
const M = l.querySelector(".rte-tutorial-btn:not(.hidden)");
|
|
1439
|
+
if (M)
|
|
1440
|
+
try {
|
|
1441
|
+
const I = window.getComputedStyle(M), H = Math.ceil(M.getBoundingClientRect().width || 0) || 60, R = Math.ceil(Number.parseFloat(I.right || "0")) || 4;
|
|
1442
|
+
return Math.max(16, Math.min(160, H + R + 4));
|
|
1443
|
+
} catch {
|
|
1444
|
+
return 80;
|
|
1445
|
+
}
|
|
1446
|
+
const L = l.querySelector(".variable-info-icon.hidden");
|
|
1447
|
+
L && L.classList.remove("hidden");
|
|
1448
|
+
const x = l.querySelector(".variable-info-icon:not(.hidden)");
|
|
1449
|
+
if (!x) return 24;
|
|
1439
1450
|
try {
|
|
1440
|
-
const
|
|
1441
|
-
return Math.max(16, Math.min(120,
|
|
1451
|
+
const I = window.getComputedStyle(x), H = Math.ceil(x.getBoundingClientRect().width || 0) || 16, R = Math.ceil(Number.parseFloat(I.right || "0")) || 4;
|
|
1452
|
+
return Math.max(16, Math.min(120, H + R + 2));
|
|
1442
1453
|
} catch {
|
|
1443
1454
|
return 24;
|
|
1444
1455
|
}
|
|
@@ -1456,7 +1467,11 @@ function da(e, t) {
|
|
|
1456
1467
|
l.style.minWidth = "";
|
|
1457
1468
|
} else
|
|
1458
1469
|
l.classList.remove("show-placeholder"), l.style.minWidth = "", l.style.removeProperty("--rte-icon-pad-right");
|
|
1459
|
-
|
|
1470
|
+
let i = "";
|
|
1471
|
+
l.childNodes.forEach((f) => {
|
|
1472
|
+
f.nodeType === Node.TEXT_NODE && (i += f.textContent || "");
|
|
1473
|
+
});
|
|
1474
|
+
const u = !!l.querySelector("br") || i.includes(`
|
|
1460
1475
|
`), s = l.offsetHeight > 32, o = u || s;
|
|
1461
1476
|
l.classList.toggle("rte-variable-multiline", o), l.classList.toggle("rte-variable-force-block", o);
|
|
1462
1477
|
const c = l.closest(".rte-inline-group");
|
|
@@ -1599,7 +1614,7 @@ ${(e || "").replace(/\r\n/g, `
|
|
|
1599
1614
|
\`\`\``, qu = (e) => {
|
|
1600
1615
|
const t = (e || "").replace(/\r\n/g, `
|
|
1601
1616
|
`).trim(), a = t.match(/^```[a-zA-Z0-9_-]*\n([\s\S]*?)\n```$/);
|
|
1602
|
-
return a ? `<pre><code>${
|
|
1617
|
+
return a ? `<pre><code>${he(a[1] || "")}</code></pre>` : `<div style="white-space:pre-wrap;">${he(t)}</div>`;
|
|
1603
1618
|
}, zu = (e) => {
|
|
1604
1619
|
const t = e.trim();
|
|
1605
1620
|
if (!t) return { url: "" };
|
|
@@ -1814,7 +1829,7 @@ ${(e || "").replace(/\r\n/g, `
|
|
|
1814
1829
|
ne(() => {
|
|
1815
1830
|
!s || !H || v((q) => q === H ? q : H);
|
|
1816
1831
|
}, [s, H, N.signature]);
|
|
1817
|
-
const
|
|
1832
|
+
const R = h?.tabs.find((q) => q.key === E), $ = R ? F(R.items) : [], _ = Z(null), Y = ue((q) => {
|
|
1818
1833
|
const V = q.currentTarget;
|
|
1819
1834
|
V.classList.add("is-scrolling"), _.current && window.clearTimeout(_.current), _.current = window.setTimeout(() => {
|
|
1820
1835
|
V.classList.remove("is-scrolling"), _.current = null;
|
|
@@ -1835,16 +1850,16 @@ ${(e || "").replace(/\r\n/g, `
|
|
|
1835
1850
|
},
|
|
1836
1851
|
q.key
|
|
1837
1852
|
)) }) }),
|
|
1838
|
-
/* @__PURE__ */ G("div", { className: "rte-report-dropdown-list", onScroll: Y, children: !
|
|
1853
|
+
/* @__PURE__ */ G("div", { className: "rte-report-dropdown-list", onScroll: Y, children: !R || $.length === 0 ? /* @__PURE__ */ pe("div", { className: "rte-report-dropdown-empty", children: [
|
|
1839
1854
|
/* @__PURE__ */ G("img", { className: "rte-report-dropdown-empty-img", src: wd, alt: "" }),
|
|
1840
1855
|
/* @__PURE__ */ pe("div", { className: "rte-report-dropdown-empty-text", children: [
|
|
1841
1856
|
/* @__PURE__ */ G("span", { className: "rte-report-dropdown-empty-label", children: D ? "未找到匹配的报告" : "暂无生成的报告" }),
|
|
1842
|
-
|
|
1857
|
+
R?.agentType != null && l && /* @__PURE__ */ G(
|
|
1843
1858
|
"span",
|
|
1844
1859
|
{
|
|
1845
1860
|
className: "rte-report-dropdown-empty-link",
|
|
1846
1861
|
onMouseDown: () => {
|
|
1847
|
-
l(
|
|
1862
|
+
l(R.agentType), o(!1);
|
|
1848
1863
|
},
|
|
1849
1864
|
children: "去生成"
|
|
1850
1865
|
}
|
|
@@ -2469,13 +2484,13 @@ const Fd = ({
|
|
|
2469
2484
|
if (!x) return;
|
|
2470
2485
|
const I = L.getAttribute("data-node-type") || "";
|
|
2471
2486
|
if (I === "report-url") {
|
|
2472
|
-
const
|
|
2473
|
-
|
|
2487
|
+
const R = L.getAttribute("data-report-url");
|
|
2488
|
+
R && (A[`${x}__url`] = R);
|
|
2474
2489
|
return;
|
|
2475
2490
|
}
|
|
2476
2491
|
if (I === "markdown-name") {
|
|
2477
|
-
const
|
|
2478
|
-
|
|
2492
|
+
const R = L.innerText.replace(/[\n]/g, "").trim();
|
|
2493
|
+
R && (A[`${x}__name`] = R);
|
|
2479
2494
|
return;
|
|
2480
2495
|
}
|
|
2481
2496
|
const H = L.innerText.replace(/[\n]/g, "").trim();
|
|
@@ -2741,10 +2756,10 @@ const Fd = ({
|
|
|
2741
2756
|
...Y,
|
|
2742
2757
|
[M]: { ...Y[M], status: "loading", error: void 0, lastParsedText: x }
|
|
2743
2758
|
}));
|
|
2744
|
-
const
|
|
2759
|
+
const R = 500, $ = Date.now();
|
|
2745
2760
|
setTimeout(() => {
|
|
2746
2761
|
t({ text: x }).then((z) => {
|
|
2747
|
-
const S = cn(z), q = Date.now() - $, V = Math.max(0,
|
|
2762
|
+
const S = cn(z), q = Date.now() - $, V = Math.max(0, R - q);
|
|
2748
2763
|
setTimeout(() => {
|
|
2749
2764
|
if (o.current) {
|
|
2750
2765
|
const K = y();
|
|
@@ -2797,10 +2812,10 @@ const Fd = ({
|
|
|
2797
2812
|
...Y,
|
|
2798
2813
|
[M]: { ...Y[M], status: "loading", error: void 0, lastParsedText: x }
|
|
2799
2814
|
}));
|
|
2800
|
-
const
|
|
2815
|
+
const R = 500, $ = Date.now();
|
|
2801
2816
|
setTimeout(() => {
|
|
2802
2817
|
a({ text: x }).then((z) => {
|
|
2803
|
-
const S = cn(z), q = Date.now() - $, V = Math.max(0,
|
|
2818
|
+
const S = cn(z), q = Date.now() - $, V = Math.max(0, R - q);
|
|
2804
2819
|
setTimeout(() => {
|
|
2805
2820
|
if (o.current) {
|
|
2806
2821
|
const K = y();
|
|
@@ -2853,10 +2868,10 @@ const Fd = ({
|
|
|
2853
2868
|
const I = (L || "").trim();
|
|
2854
2869
|
if (!I || !v || !b || !/^https?:\/\//i.test(I)) return;
|
|
2855
2870
|
const H = w(M);
|
|
2856
|
-
v({ url: I, nodeKey: M, nodeType: x }).then(({ name:
|
|
2871
|
+
v({ url: I, nodeKey: M, nodeType: x }).then(({ name: R, url: $ }) => {
|
|
2857
2872
|
if (!T(M, H)) return;
|
|
2858
2873
|
const _ = $ || I;
|
|
2859
|
-
b.current(M,
|
|
2874
|
+
b.current(M, R, _), x === "multi-variable-select" && c.current(M, _);
|
|
2860
2875
|
}).catch(() => {
|
|
2861
2876
|
});
|
|
2862
2877
|
},
|
|
@@ -3036,7 +3051,7 @@ const Fd = ({
|
|
|
3036
3051
|
}), s === "error" && u?.error && n.push({
|
|
3037
3052
|
type: "text",
|
|
3038
3053
|
className: "rte-report-error",
|
|
3039
|
-
text: `解析失败:${
|
|
3054
|
+
text: `解析失败:${he(u.error)}
|
|
3040
3055
|
`
|
|
3041
3056
|
}), o.length > 0 && (o.forEach((c, d) => {
|
|
3042
3057
|
n.push({
|
|
@@ -3084,7 +3099,7 @@ const Fd = ({
|
|
|
3084
3099
|
n.push(i), s === "error" && u?.error && n.push({
|
|
3085
3100
|
type: "text",
|
|
3086
3101
|
className: "rte-markdown-error",
|
|
3087
|
-
text: `解析失败:${
|
|
3102
|
+
text: `解析失败:${he(u.error)}
|
|
3088
3103
|
`
|
|
3089
3104
|
});
|
|
3090
3105
|
else
|
|
@@ -3096,7 +3111,7 @@ const Fd = ({
|
|
|
3096
3111
|
}) : s === "error" && u?.error && n.push({
|
|
3097
3112
|
type: "text",
|
|
3098
3113
|
className: "rte-markdown-error",
|
|
3099
|
-
text: `解析失败:${
|
|
3114
|
+
text: `解析失败:${he(u.error)}
|
|
3100
3115
|
`
|
|
3101
3116
|
}), o.length > 0 && s !== "loading" && o.forEach((d, h) => {
|
|
3102
3117
|
n.push({
|
|
@@ -3122,7 +3137,7 @@ const Fd = ({
|
|
|
3122
3137
|
}), s === "error" && u?.error && n.push({
|
|
3123
3138
|
type: "text",
|
|
3124
3139
|
className: "rte-markdown-error",
|
|
3125
|
-
text: `解析失败:${
|
|
3140
|
+
text: `解析失败:${he(u.error)}
|
|
3126
3141
|
`
|
|
3127
3142
|
}), o.length > 0 && s !== "loading" && (o.forEach((c, d) => {
|
|
3128
3143
|
n.push({
|
|
@@ -3905,7 +3920,7 @@ const Vd = ({
|
|
|
3905
3920
|
if (L.length > 1) {
|
|
3906
3921
|
const x = e.find((I) => je(I.type) && I.key === T);
|
|
3907
3922
|
if (x) {
|
|
3908
|
-
const I = r[T] || 1, H = parseInt(N, 10),
|
|
3923
|
+
const I = r[T] || 1, H = parseInt(N, 10), R = x.maxCount || 9, $ = [];
|
|
3909
3924
|
for (let q = 0; q < I; q++) {
|
|
3910
3925
|
const V = `${T}_${q}`, K = l.current.querySelector(
|
|
3911
3926
|
`[data-type="variable"][data-key="${V}"][data-multi-key="${T}"]`
|
|
@@ -3916,8 +3931,8 @@ const Vd = ({
|
|
|
3916
3931
|
}
|
|
3917
3932
|
}
|
|
3918
3933
|
$.splice(H, 1, ...L);
|
|
3919
|
-
const _ = $.slice(0,
|
|
3920
|
-
_.length > 0 && _[_.length - 1] !== "" && _.length <
|
|
3934
|
+
const _ = $.slice(0, R);
|
|
3935
|
+
_.length > 0 && _[_.length - 1] !== "" && _.length < R && _.push("");
|
|
3921
3936
|
const Y = Math.max(_.length, 1), z = {};
|
|
3922
3937
|
_.forEach((q, V) => {
|
|
3923
3938
|
q && (z[`${T}_${V}`] = q);
|
|
@@ -4057,8 +4072,8 @@ const Vd = ({
|
|
|
4057
4072
|
if (L) {
|
|
4058
4073
|
k.preventDefault(), k.stopPropagation();
|
|
4059
4074
|
const z = L.closest(".rte-richtext-wrapper"), S = z?.querySelector('[data-type="richtext"]'), V = !(L.getAttribute("data-expanded") === "true");
|
|
4060
|
-
((de,
|
|
4061
|
-
de.setAttribute("data-expanded", String(
|
|
4075
|
+
((de, be) => {
|
|
4076
|
+
de.setAttribute("data-expanded", String(be)), de.innerHTML = be ? '<i class="iconfont icon-shouqi1"></i><span class="rte-richtext-toggle-label">收起</span>' : '<i class="iconfont icon-zhankai2"></i><span class="rte-richtext-toggle-label">展开</span>';
|
|
4062
4077
|
})(L, V);
|
|
4063
4078
|
const j = z?.closest(".rte-richtext-required");
|
|
4064
4079
|
j ? j.classList.toggle("rte-richtext-expanded", V) : z && z.classList.toggle("rte-richtext-expanded", V);
|
|
@@ -4143,10 +4158,10 @@ const Vd = ({
|
|
|
4143
4158
|
});
|
|
4144
4159
|
return;
|
|
4145
4160
|
}
|
|
4146
|
-
const
|
|
4147
|
-
if (
|
|
4161
|
+
const R = A.closest('[data-type="video-upload"]');
|
|
4162
|
+
if (R) {
|
|
4148
4163
|
k.preventDefault(), k.stopPropagation();
|
|
4149
|
-
const z =
|
|
4164
|
+
const z = R.dataset.key;
|
|
4150
4165
|
z && m?.current && w && (w.current = z, m.current.value = "", m.current.click());
|
|
4151
4166
|
return;
|
|
4152
4167
|
}
|
|
@@ -4163,14 +4178,14 @@ const Vd = ({
|
|
|
4163
4178
|
const K = V.maxCount;
|
|
4164
4179
|
c((j) => {
|
|
4165
4180
|
const te = { ...j }, de = [];
|
|
4166
|
-
for (let
|
|
4167
|
-
const Te = `${q}-${
|
|
4181
|
+
for (let be = 0; be < K; be++) {
|
|
4182
|
+
const Te = `${q}-${be}`, Be = te[Te];
|
|
4168
4183
|
Be != null && Te !== S && de.push(Be);
|
|
4169
4184
|
}
|
|
4170
|
-
for (let
|
|
4171
|
-
delete te[`${q}-${
|
|
4172
|
-
return de.forEach((
|
|
4173
|
-
te[`${q}-${Te}`] =
|
|
4185
|
+
for (let be = 0; be < K; be++)
|
|
4186
|
+
delete te[`${q}-${be}`];
|
|
4187
|
+
return de.forEach((be, Te) => {
|
|
4188
|
+
te[`${q}-${Te}`] = be;
|
|
4174
4189
|
}), te;
|
|
4175
4190
|
});
|
|
4176
4191
|
} else
|
|
@@ -4198,8 +4213,8 @@ const Vd = ({
|
|
|
4198
4213
|
if (u.current && (j?.accept ? u.current.accept = j.accept : j?.acceptType === "image" ? u.current.accept = "image/*" : j?.acceptType === "file" ? u.current.accept = ".csv,.xlsx,.xls,.txt,.pdf,.doc,.docx,.json" : u.current.accept = ""), S) {
|
|
4199
4214
|
const te = l.find((de) => de.type === "upload" && de.key === S);
|
|
4200
4215
|
if (te && typeof te.maxCount == "number" && typeof te.minCount == "number") {
|
|
4201
|
-
const de = te.maxCount,
|
|
4202
|
-
if (
|
|
4216
|
+
const de = te.maxCount, be = o[z] != null, Te = q != null ? Number.parseInt(q, 10) : NaN;
|
|
4217
|
+
if (be) {
|
|
4203
4218
|
u.current && (u.current.multiple = !1), h(null), f(null), E(z), s?.(), u.current?.click();
|
|
4204
4219
|
return;
|
|
4205
4220
|
}
|
|
@@ -4435,10 +4450,10 @@ const Vd = ({
|
|
|
4435
4450
|
z && (x[_] = z);
|
|
4436
4451
|
}
|
|
4437
4452
|
}), t.current.__tempVariableValues = x;
|
|
4438
|
-
const
|
|
4453
|
+
const R = [];
|
|
4439
4454
|
for (let $ = O; $ < T; $++)
|
|
4440
|
-
|
|
4441
|
-
Ba({ keys:
|
|
4455
|
+
R.push(`${m.key}_${$}`);
|
|
4456
|
+
Ba({ keys: R }), document.dispatchEvent(new CustomEvent("rte-report-dropdown-force-close")), h(($) => ({
|
|
4442
4457
|
...$,
|
|
4443
4458
|
[m.key]: I
|
|
4444
4459
|
}));
|
|
@@ -4452,7 +4467,7 @@ const Vd = ({
|
|
|
4452
4467
|
`).trim().length > 0 && T < w) {
|
|
4453
4468
|
const x = window.getSelection();
|
|
4454
4469
|
if (x && x.rangeCount > 0) {
|
|
4455
|
-
const H = x.getRangeAt(0),
|
|
4470
|
+
const H = x.getRangeAt(0), R = H.startContainer, $ = R.nodeType === Node.ELEMENT_NODE ? R.closest('[data-type="variable"][data-multi-key]') : R.parentElement?.closest('[data-type="variable"][data-multi-key]');
|
|
4456
4471
|
if ($) {
|
|
4457
4472
|
const _ = $.dataset.key;
|
|
4458
4473
|
if (_) {
|
|
@@ -4934,13 +4949,13 @@ const Vd = ({
|
|
|
4934
4949
|
}
|
|
4935
4950
|
if (L && v?.(), M.length > 0) {
|
|
4936
4951
|
const I = f.reduce(($, _) => $ + _.size, 0), H = [];
|
|
4937
|
-
let
|
|
4952
|
+
let R = I;
|
|
4938
4953
|
for (const $ of M) {
|
|
4939
|
-
if (
|
|
4954
|
+
if (R + $.size > 52428800) {
|
|
4940
4955
|
E.error("文件总大小不能超过 50MB");
|
|
4941
4956
|
break;
|
|
4942
4957
|
}
|
|
4943
|
-
H.push($),
|
|
4958
|
+
H.push($), R += $.size;
|
|
4944
4959
|
}
|
|
4945
4960
|
H.length > 0 && h(($) => [...H, ...$]);
|
|
4946
4961
|
}
|
|
@@ -4962,29 +4977,29 @@ const Vd = ({
|
|
|
4962
4977
|
if (F.nodeType === Node.ELEMENT_NODE ? M = F.closest('[data-type="variable"]') : F.nodeType === Node.TEXT_NODE && F.parentElement && (M = F.parentElement.closest('[data-type="variable"]')), M) {
|
|
4963
4978
|
const L = M.dataset.multiKey;
|
|
4964
4979
|
if (L) {
|
|
4965
|
-
const H = /[、,,\s\n\r\t]+/,
|
|
4966
|
-
if (
|
|
4980
|
+
const H = /[、,,\s\n\r\t]+/, R = N.split(H).map(($) => $.trim()).filter(($) => $.length > 0);
|
|
4981
|
+
if (R.length > 1) {
|
|
4967
4982
|
const $ = parseInt(M.dataset.index || "0", 10), _ = t.find(
|
|
4968
4983
|
(de) => je(de.type) && de.key === L
|
|
4969
|
-
)?.maxCount || 9, Y = a[L] || 1, z = Math.min($ +
|
|
4984
|
+
)?.maxCount || 9, Y = a[L] || 1, z = Math.min($ + R.length, _);
|
|
4970
4985
|
z > Y && l((te) => ({
|
|
4971
4986
|
...te,
|
|
4972
4987
|
[L]: z
|
|
4973
4988
|
}));
|
|
4974
4989
|
const S = [];
|
|
4975
4990
|
for (let te = 0; te < Y; te++) {
|
|
4976
|
-
const de = `${L}_${te}`,
|
|
4991
|
+
const de = `${L}_${te}`, be = n.current.querySelector(
|
|
4977
4992
|
`[data-type="variable"][data-key="${de}"][data-multi-key="${L}"]`
|
|
4978
4993
|
);
|
|
4979
|
-
if (
|
|
4980
|
-
const Te =
|
|
4994
|
+
if (be) {
|
|
4995
|
+
const Te = be.innerText.replace(/[\u200B\n]/g, "").trim();
|
|
4981
4996
|
S.push(Te);
|
|
4982
4997
|
}
|
|
4983
4998
|
}
|
|
4984
4999
|
S.splice(
|
|
4985
5000
|
$,
|
|
4986
5001
|
1,
|
|
4987
|
-
...
|
|
5002
|
+
...R.slice(0, _ - $)
|
|
4988
5003
|
);
|
|
4989
5004
|
const q = S.slice(0, _);
|
|
4990
5005
|
q.length > 0 && q[q.length - 1] !== "" && q.length < _ && q.push("");
|
|
@@ -4994,8 +5009,8 @@ const Vd = ({
|
|
|
4994
5009
|
}), n.current.querySelectorAll(
|
|
4995
5010
|
'[data-type="variable"]'
|
|
4996
5011
|
).forEach((te) => {
|
|
4997
|
-
const de = te.dataset.key,
|
|
4998
|
-
if (de &&
|
|
5012
|
+
const de = te.dataset.key, be = te.dataset.multiKey;
|
|
5013
|
+
if (de && be !== L) {
|
|
4999
5014
|
const Te = te.innerText.replace(/[\u200B\n]/g, "").trim();
|
|
5000
5015
|
Te && (K[de] = Te);
|
|
5001
5016
|
}
|
|
@@ -5018,17 +5033,17 @@ const Vd = ({
|
|
|
5018
5033
|
)?.allowNewline !== !1;
|
|
5019
5034
|
const Y = M.dataset.key;
|
|
5020
5035
|
return t.find((S) => S.type === "variable" && S.key === Y)?.allowNewline !== !1;
|
|
5021
|
-
})(),
|
|
5022
|
-
if (
|
|
5023
|
-
const $ =
|
|
5036
|
+
})(), R = window.getSelection();
|
|
5037
|
+
if (R && R.rangeCount > 0) {
|
|
5038
|
+
const $ = R.getRangeAt(0);
|
|
5024
5039
|
$.deleteContents();
|
|
5025
5040
|
const _ = document.createDocumentFragment(), z = (H ? N : N.replace(/\n+/g, " ")).split(`
|
|
5026
5041
|
`);
|
|
5027
5042
|
for (let q = 0; q < z.length; q++)
|
|
5028
5043
|
_.appendChild(document.createTextNode(z[q])), H && q < z.length - 1 && _.appendChild(document.createElement("br"));
|
|
5029
|
-
$.insertNode(_),
|
|
5044
|
+
$.insertNode(_), R.removeAllRanges();
|
|
5030
5045
|
const S = document.createRange();
|
|
5031
|
-
S.selectNodeContents(M), S.collapse(!1),
|
|
5046
|
+
S.selectNodeContents(M), S.collapse(!1), R.addRange(S);
|
|
5032
5047
|
}
|
|
5033
5048
|
r();
|
|
5034
5049
|
return;
|
|
@@ -5862,15 +5877,15 @@ function mf() {
|
|
|
5862
5877
|
if (M && (D.style.transform = "none"), L && (D.style.webkitTransform = "none"), a.roundLengths)
|
|
5863
5878
|
k = e.isHorizontal() ? pi(D, "width") : pi(D, "height");
|
|
5864
5879
|
else {
|
|
5865
|
-
const x = t(F, "width"), I = t(F, "padding-left"), H = t(F, "padding-right"),
|
|
5880
|
+
const x = t(F, "width"), I = t(F, "padding-left"), H = t(F, "padding-right"), R = t(F, "margin-left"), $ = t(F, "margin-right"), _ = F.getPropertyValue("box-sizing");
|
|
5866
5881
|
if (_ && _ === "border-box")
|
|
5867
|
-
k = x +
|
|
5882
|
+
k = x + R + $;
|
|
5868
5883
|
else {
|
|
5869
5884
|
const {
|
|
5870
5885
|
clientWidth: Y,
|
|
5871
5886
|
offsetWidth: z
|
|
5872
5887
|
} = D;
|
|
5873
|
-
k = x + I + H +
|
|
5888
|
+
k = x + I + H + R + $ + (z - Y);
|
|
5874
5889
|
}
|
|
5875
5890
|
}
|
|
5876
5891
|
M && (D.style.transform = M), L && (D.style.webkitTransform = L), a.roundLengths && (k = Math.floor(k));
|
|
@@ -6607,14 +6622,14 @@ function Gf({
|
|
|
6607
6622
|
o.length < m + T || s.params.effect === "cards" && o.length < m + T * 2 ? Dl("Swiper Loop Warning: The number of slides is not enough for loop mode, it will be disabled or not function properly. You need to add more slides (or make duplicates) or lower the values of slidesPerView and slidesPerGroup parameters") : C && f.grid.fill === "row" && Dl("Swiper Loop Warning: Loop mode is not compatible with grid.fill = `row`");
|
|
6608
6623
|
const N = [], k = [], A = C ? Math.ceil(o.length / f.grid.rows) : o.length, O = r && A - y < m && !g;
|
|
6609
6624
|
let D = O ? y : s.activeIndex;
|
|
6610
|
-
typeof n > "u" ? n = s.getSlideIndex(o.find((
|
|
6625
|
+
typeof n > "u" ? n = s.getSlideIndex(o.find((R) => R.classList.contains(f.slideActiveClass))) : D = n;
|
|
6611
6626
|
const F = a === "next" || !a, M = a === "prev" || !a;
|
|
6612
6627
|
let L = 0, x = 0;
|
|
6613
6628
|
const H = (C ? o[n].column : n) + (g && typeof l > "u" ? -m / 2 + 0.5 : 0);
|
|
6614
6629
|
if (H < T) {
|
|
6615
6630
|
L = Math.max(T - H, w);
|
|
6616
|
-
for (let
|
|
6617
|
-
const $ =
|
|
6631
|
+
for (let R = 0; R < T - H; R += 1) {
|
|
6632
|
+
const $ = R - Math.floor(R / A) * A;
|
|
6618
6633
|
if (C) {
|
|
6619
6634
|
const _ = A - $ - 1;
|
|
6620
6635
|
for (let Y = o.length - 1; Y >= 0; Y -= 1)
|
|
@@ -6624,8 +6639,8 @@ function Gf({
|
|
|
6624
6639
|
}
|
|
6625
6640
|
} else if (H + m > A - T) {
|
|
6626
6641
|
x = Math.max(H - (A - T * 2), w), O && (x = Math.max(x, m - A + y + 1));
|
|
6627
|
-
for (let
|
|
6628
|
-
const $ =
|
|
6642
|
+
for (let R = 0; R < x; R += 1) {
|
|
6643
|
+
const $ = R - Math.floor(R / A) * A;
|
|
6629
6644
|
C ? o.forEach((_, Y) => {
|
|
6630
6645
|
_.column === $ && k.push(Y);
|
|
6631
6646
|
}) : k.push($);
|
|
@@ -6633,32 +6648,32 @@ function Gf({
|
|
|
6633
6648
|
}
|
|
6634
6649
|
if (s.__preventObserver__ = !0, requestAnimationFrame(() => {
|
|
6635
6650
|
s.__preventObserver__ = !1;
|
|
6636
|
-
}), s.params.effect === "cards" && o.length < m + T * 2 && (k.includes(n) && k.splice(k.indexOf(n), 1), N.includes(n) && N.splice(N.indexOf(n), 1)), M && N.forEach((
|
|
6637
|
-
o[
|
|
6638
|
-
}), F && k.forEach((
|
|
6639
|
-
o[
|
|
6640
|
-
}), s.recalcSlides(), f.slidesPerView === "auto" ? s.updateSlides() : C && (N.length > 0 && M || k.length > 0 && F) && s.slides.forEach((
|
|
6641
|
-
s.grid.updateSlide($,
|
|
6651
|
+
}), s.params.effect === "cards" && o.length < m + T * 2 && (k.includes(n) && k.splice(k.indexOf(n), 1), N.includes(n) && N.splice(N.indexOf(n), 1)), M && N.forEach((R) => {
|
|
6652
|
+
o[R].swiperLoopMoveDOM = !0, h.prepend(o[R]), o[R].swiperLoopMoveDOM = !1;
|
|
6653
|
+
}), F && k.forEach((R) => {
|
|
6654
|
+
o[R].swiperLoopMoveDOM = !0, h.append(o[R]), o[R].swiperLoopMoveDOM = !1;
|
|
6655
|
+
}), s.recalcSlides(), f.slidesPerView === "auto" ? s.updateSlides() : C && (N.length > 0 && M || k.length > 0 && F) && s.slides.forEach((R, $) => {
|
|
6656
|
+
s.grid.updateSlide($, R, s.slides);
|
|
6642
6657
|
}), f.watchSlidesProgress && s.updateSlidesOffset(), t) {
|
|
6643
6658
|
if (N.length > 0 && M) {
|
|
6644
6659
|
if (typeof e > "u") {
|
|
6645
|
-
const
|
|
6660
|
+
const R = s.slidesGrid[D], _ = s.slidesGrid[D + L] - R;
|
|
6646
6661
|
u ? s.setTranslate(s.translate - _) : (s.slideTo(D + Math.ceil(L), 0, !1, !0), l && (s.touchEventsData.startTranslate = s.touchEventsData.startTranslate - _, s.touchEventsData.currentTranslate = s.touchEventsData.currentTranslate - _));
|
|
6647
6662
|
} else if (l) {
|
|
6648
|
-
const
|
|
6649
|
-
s.slideTo(s.activeIndex +
|
|
6663
|
+
const R = C ? N.length / f.grid.rows : N.length;
|
|
6664
|
+
s.slideTo(s.activeIndex + R, 0, !1, !0), s.touchEventsData.currentTranslate = s.translate;
|
|
6650
6665
|
}
|
|
6651
6666
|
} else if (k.length > 0 && F)
|
|
6652
6667
|
if (typeof e > "u") {
|
|
6653
|
-
const
|
|
6668
|
+
const R = s.slidesGrid[D], _ = s.slidesGrid[D - x] - R;
|
|
6654
6669
|
u ? s.setTranslate(s.translate - _) : (s.slideTo(D - x, 0, !1, !0), l && (s.touchEventsData.startTranslate = s.touchEventsData.startTranslate - _, s.touchEventsData.currentTranslate = s.touchEventsData.currentTranslate - _));
|
|
6655
6670
|
} else {
|
|
6656
|
-
const
|
|
6657
|
-
s.slideTo(s.activeIndex -
|
|
6671
|
+
const R = C ? k.length / f.grid.rows : k.length;
|
|
6672
|
+
s.slideTo(s.activeIndex - R, 0, !1, !0);
|
|
6658
6673
|
}
|
|
6659
6674
|
}
|
|
6660
6675
|
if (s.allowSlidePrev = c, s.allowSlideNext = d, s.controller && s.controller.control && !i) {
|
|
6661
|
-
const
|
|
6676
|
+
const R = {
|
|
6662
6677
|
slideRealIndex: e,
|
|
6663
6678
|
direction: a,
|
|
6664
6679
|
setTranslate: l,
|
|
@@ -6667,11 +6682,11 @@ function Gf({
|
|
|
6667
6682
|
};
|
|
6668
6683
|
Array.isArray(s.controller.control) ? s.controller.control.forEach(($) => {
|
|
6669
6684
|
!$.destroyed && $.params.loop && $.loopFix({
|
|
6670
|
-
...
|
|
6685
|
+
...R,
|
|
6671
6686
|
slideTo: $.params.slidesPerView === f.slidesPerView ? t : !1
|
|
6672
6687
|
});
|
|
6673
6688
|
}) : s.controller.control instanceof s.constructor && s.controller.control.params.loop && s.controller.control.loopFix({
|
|
6674
|
-
...
|
|
6689
|
+
...R,
|
|
6675
6690
|
slideTo: s.controller.control.params.slidesPerView === f.slidesPerView ? t : !1
|
|
6676
6691
|
});
|
|
6677
6692
|
}
|
|
@@ -7959,16 +7974,16 @@ const gi = /* @__PURE__ */ Hu(null), Sp = /* @__PURE__ */ Hu(null), rs = /* @__P
|
|
|
7959
7974
|
f(!h);
|
|
7960
7975
|
};
|
|
7961
7976
|
Object.assign(N.on, {
|
|
7962
|
-
_containerClasses(
|
|
7977
|
+
_containerClasses(R, $) {
|
|
7963
7978
|
o($);
|
|
7964
7979
|
}
|
|
7965
7980
|
});
|
|
7966
7981
|
const L = () => {
|
|
7967
7982
|
Object.assign(N.on, O), u = !0;
|
|
7968
|
-
const
|
|
7983
|
+
const R = {
|
|
7969
7984
|
...N
|
|
7970
7985
|
};
|
|
7971
|
-
if (delete
|
|
7986
|
+
if (delete R.wrapperClass, b.current = new vr(R), b.current.virtual && b.current.params.virtual.enabled) {
|
|
7972
7987
|
b.current.virtual.slides = D;
|
|
7973
7988
|
const $ = {
|
|
7974
7989
|
cache: !1,
|
|
@@ -7981,12 +7996,12 @@ const gi = /* @__PURE__ */ Hu(null), Sp = /* @__PURE__ */ Hu(null), rs = /* @__P
|
|
|
7981
7996
|
};
|
|
7982
7997
|
v.current || L(), b.current && b.current.on("_beforeBreakpoint", M);
|
|
7983
7998
|
const x = () => {
|
|
7984
|
-
u || !O || !b.current || Object.keys(O).forEach((
|
|
7985
|
-
b.current.on(
|
|
7999
|
+
u || !O || !b.current || Object.keys(O).forEach((R) => {
|
|
8000
|
+
b.current.on(R, O[R]);
|
|
7986
8001
|
});
|
|
7987
8002
|
}, I = () => {
|
|
7988
|
-
!O || !b.current || Object.keys(O).forEach((
|
|
7989
|
-
b.current.off(
|
|
8003
|
+
!O || !b.current || Object.keys(O).forEach((R) => {
|
|
8004
|
+
b.current.off(R, O[R]);
|
|
7990
8005
|
});
|
|
7991
8006
|
};
|
|
7992
8007
|
ne(() => () => {
|
|
@@ -8007,12 +8022,12 @@ const gi = /* @__PURE__ */ Hu(null), Sp = /* @__PURE__ */ Hu(null), rs = /* @__P
|
|
|
8007
8022
|
};
|
|
8008
8023
|
}, []), Fa(() => {
|
|
8009
8024
|
x();
|
|
8010
|
-
const
|
|
8011
|
-
return y.current = k, g.current = D,
|
|
8025
|
+
const R = xp(k, y.current, D, g.current, ($) => $.key);
|
|
8026
|
+
return y.current = k, g.current = D, R.length && b.current && !b.current.destroyed && Ep({
|
|
8012
8027
|
swiper: b.current,
|
|
8013
8028
|
slides: D,
|
|
8014
8029
|
passedParams: k,
|
|
8015
|
-
changedParams:
|
|
8030
|
+
changedParams: R,
|
|
8016
8031
|
nextEl: m.current,
|
|
8017
8032
|
prevEl: w.current,
|
|
8018
8033
|
scrollbarEl: C.current,
|
|
@@ -8024,7 +8039,7 @@ const gi = /* @__PURE__ */ Hu(null), Sp = /* @__PURE__ */ Hu(null), rs = /* @__P
|
|
|
8024
8039
|
wp(b.current);
|
|
8025
8040
|
}, [c]);
|
|
8026
8041
|
function H() {
|
|
8027
|
-
return N.virtual ? Cp(b.current, D, c) : D.map((
|
|
8042
|
+
return N.virtual ? Cp(b.current, D, c) : D.map((R, $) => /* @__PURE__ */ Le.cloneElement(R, {
|
|
8028
8043
|
swiper: b.current,
|
|
8029
8044
|
swiperSlideIndex: $
|
|
8030
8045
|
}));
|
|
@@ -11339,14 +11354,14 @@ function hb(e, t, a) {
|
|
|
11339
11354
|
return S === 45 ? (e.consume(S), _) : F(S);
|
|
11340
11355
|
}
|
|
11341
11356
|
function H(S) {
|
|
11342
|
-
return S === 47 ? (e.consume(S), i = "",
|
|
11357
|
+
return S === 47 ? (e.consume(S), i = "", R) : F(S);
|
|
11343
11358
|
}
|
|
11344
|
-
function
|
|
11359
|
+
function R(S) {
|
|
11345
11360
|
if (S === 62) {
|
|
11346
11361
|
const q = i.toLowerCase();
|
|
11347
11362
|
return $i.includes(q) ? (e.consume(S), Y) : F(S);
|
|
11348
11363
|
}
|
|
11349
|
-
return gt(S) && i.length < 8 ? (e.consume(S), i += String.fromCharCode(S),
|
|
11364
|
+
return gt(S) && i.length < 8 ? (e.consume(S), i += String.fromCharCode(S), R) : F(S);
|
|
11350
11365
|
}
|
|
11351
11366
|
function $(S) {
|
|
11352
11367
|
return S === 93 ? (e.consume(S), _) : F(S);
|
|
@@ -11465,9 +11480,9 @@ function gb(e, t, a) {
|
|
|
11465
11480
|
return _ === 62 ? (e.consume(_), e.exit("htmlTextData"), e.exit("htmlText"), t) : a(_);
|
|
11466
11481
|
}
|
|
11467
11482
|
function H(_) {
|
|
11468
|
-
return e.exit("htmlTextData"), e.enter("lineEnding"), e.consume(_), e.exit("lineEnding"),
|
|
11483
|
+
return e.exit("htmlTextData"), e.enter("lineEnding"), e.consume(_), e.exit("lineEnding"), R;
|
|
11469
11484
|
}
|
|
11470
|
-
function
|
|
11485
|
+
function R(_) {
|
|
11471
11486
|
return Se(_) ? _e(e, $, "linePrefix", l.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4)(_) : $(_);
|
|
11472
11487
|
}
|
|
11473
11488
|
function $(_) {
|
|
@@ -12092,7 +12107,7 @@ function rm(e, t, a) {
|
|
|
12092
12107
|
function N(D, F) {
|
|
12093
12108
|
return M;
|
|
12094
12109
|
function M(L, x, I) {
|
|
12095
|
-
let H,
|
|
12110
|
+
let H, R, $, _;
|
|
12096
12111
|
return Array.isArray(L) ? (
|
|
12097
12112
|
/* c8 ignore next 1 */
|
|
12098
12113
|
z(L)
|
|
@@ -12106,17 +12121,17 @@ function rm(e, t, a) {
|
|
|
12106
12121
|
function Y(K) {
|
|
12107
12122
|
return j;
|
|
12108
12123
|
function j(te) {
|
|
12109
|
-
const de = te !== null && K[te],
|
|
12124
|
+
const de = te !== null && K[te], be = te !== null && K.null, Te = [
|
|
12110
12125
|
// To do: add more extension tests.
|
|
12111
12126
|
/* c8 ignore next 2 */
|
|
12112
12127
|
...Array.isArray(de) ? de : de ? [de] : [],
|
|
12113
|
-
...Array.isArray(
|
|
12128
|
+
...Array.isArray(be) ? be : be ? [be] : []
|
|
12114
12129
|
];
|
|
12115
12130
|
return z(Te)(te);
|
|
12116
12131
|
}
|
|
12117
12132
|
}
|
|
12118
12133
|
function z(K) {
|
|
12119
|
-
return H = K,
|
|
12134
|
+
return H = K, R = 0, K.length === 0 ? I : S(K[R]);
|
|
12120
12135
|
}
|
|
12121
12136
|
function S(K) {
|
|
12122
12137
|
return j;
|
|
@@ -12136,7 +12151,7 @@ function rm(e, t, a) {
|
|
|
12136
12151
|
return D($, _), x;
|
|
12137
12152
|
}
|
|
12138
12153
|
function V(K) {
|
|
12139
|
-
return _.restore(), ++
|
|
12154
|
+
return _.restore(), ++R < H.length ? S(H[R]) : I;
|
|
12140
12155
|
}
|
|
12141
12156
|
}
|
|
12142
12157
|
}
|
|
@@ -12300,7 +12315,7 @@ function bm(e) {
|
|
|
12300
12315
|
autolinkProtocol: A,
|
|
12301
12316
|
autolinkEmail: A,
|
|
12302
12317
|
atxHeading: r(Ye),
|
|
12303
|
-
blockQuote: r(
|
|
12318
|
+
blockQuote: r(be),
|
|
12304
12319
|
characterEscape: A,
|
|
12305
12320
|
characterReference: A,
|
|
12306
12321
|
codeFenced: r(Te),
|
|
@@ -12372,7 +12387,7 @@ function bm(e) {
|
|
|
12372
12387
|
htmlTextData: O,
|
|
12373
12388
|
image: s(H),
|
|
12374
12389
|
label: $,
|
|
12375
|
-
labelText:
|
|
12390
|
+
labelText: R,
|
|
12376
12391
|
lineEnding: D,
|
|
12377
12392
|
link: s(I),
|
|
12378
12393
|
listItem: s(),
|
|
@@ -12642,7 +12657,7 @@ function bm(e) {
|
|
|
12642
12657
|
delete J.identifier, delete J.label;
|
|
12643
12658
|
this.data.referenceType = void 0;
|
|
12644
12659
|
}
|
|
12645
|
-
function
|
|
12660
|
+
function R(J) {
|
|
12646
12661
|
const ie = this.sliceSerialize(J), ge = this.stack[this.stack.length - 2];
|
|
12647
12662
|
ge.label = fm(ie), ge.identifier = ca(ie).toLowerCase();
|
|
12648
12663
|
}
|
|
@@ -12696,7 +12711,7 @@ function bm(e) {
|
|
|
12696
12711
|
const ie = this.stack[this.stack.length - 1];
|
|
12697
12712
|
ie.url = "mailto:" + this.sliceSerialize(J);
|
|
12698
12713
|
}
|
|
12699
|
-
function
|
|
12714
|
+
function be() {
|
|
12700
12715
|
return {
|
|
12701
12716
|
type: "blockquote",
|
|
12702
12717
|
children: []
|
|
@@ -16173,17 +16188,17 @@ const ae = p, Sv = {
|
|
|
16173
16188
|
[ee.XMLNS]: /* @__PURE__ */ new Set()
|
|
16174
16189
|
}, rr = /* @__PURE__ */ new Set([ae.H1, ae.H2, ae.H3, ae.H4, ae.H5, ae.H6]);
|
|
16175
16190
|
W.STYLE, W.SCRIPT, W.XMP, W.IFRAME, W.NOEMBED, W.NOFRAMES, W.PLAINTEXT;
|
|
16176
|
-
var
|
|
16191
|
+
var B;
|
|
16177
16192
|
(function(e) {
|
|
16178
16193
|
e[e.DATA = 0] = "DATA", e[e.RCDATA = 1] = "RCDATA", e[e.RAWTEXT = 2] = "RAWTEXT", e[e.SCRIPT_DATA = 3] = "SCRIPT_DATA", e[e.PLAINTEXT = 4] = "PLAINTEXT", e[e.TAG_OPEN = 5] = "TAG_OPEN", e[e.END_TAG_OPEN = 6] = "END_TAG_OPEN", e[e.TAG_NAME = 7] = "TAG_NAME", e[e.RCDATA_LESS_THAN_SIGN = 8] = "RCDATA_LESS_THAN_SIGN", e[e.RCDATA_END_TAG_OPEN = 9] = "RCDATA_END_TAG_OPEN", e[e.RCDATA_END_TAG_NAME = 10] = "RCDATA_END_TAG_NAME", e[e.RAWTEXT_LESS_THAN_SIGN = 11] = "RAWTEXT_LESS_THAN_SIGN", e[e.RAWTEXT_END_TAG_OPEN = 12] = "RAWTEXT_END_TAG_OPEN", e[e.RAWTEXT_END_TAG_NAME = 13] = "RAWTEXT_END_TAG_NAME", e[e.SCRIPT_DATA_LESS_THAN_SIGN = 14] = "SCRIPT_DATA_LESS_THAN_SIGN", e[e.SCRIPT_DATA_END_TAG_OPEN = 15] = "SCRIPT_DATA_END_TAG_OPEN", e[e.SCRIPT_DATA_END_TAG_NAME = 16] = "SCRIPT_DATA_END_TAG_NAME", e[e.SCRIPT_DATA_ESCAPE_START = 17] = "SCRIPT_DATA_ESCAPE_START", e[e.SCRIPT_DATA_ESCAPE_START_DASH = 18] = "SCRIPT_DATA_ESCAPE_START_DASH", e[e.SCRIPT_DATA_ESCAPED = 19] = "SCRIPT_DATA_ESCAPED", e[e.SCRIPT_DATA_ESCAPED_DASH = 20] = "SCRIPT_DATA_ESCAPED_DASH", e[e.SCRIPT_DATA_ESCAPED_DASH_DASH = 21] = "SCRIPT_DATA_ESCAPED_DASH_DASH", e[e.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN = 22] = "SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN", e[e.SCRIPT_DATA_ESCAPED_END_TAG_OPEN = 23] = "SCRIPT_DATA_ESCAPED_END_TAG_OPEN", e[e.SCRIPT_DATA_ESCAPED_END_TAG_NAME = 24] = "SCRIPT_DATA_ESCAPED_END_TAG_NAME", e[e.SCRIPT_DATA_DOUBLE_ESCAPE_START = 25] = "SCRIPT_DATA_DOUBLE_ESCAPE_START", e[e.SCRIPT_DATA_DOUBLE_ESCAPED = 26] = "SCRIPT_DATA_DOUBLE_ESCAPED", e[e.SCRIPT_DATA_DOUBLE_ESCAPED_DASH = 27] = "SCRIPT_DATA_DOUBLE_ESCAPED_DASH", e[e.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH = 28] = "SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH", e[e.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN = 29] = "SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN", e[e.SCRIPT_DATA_DOUBLE_ESCAPE_END = 30] = "SCRIPT_DATA_DOUBLE_ESCAPE_END", e[e.BEFORE_ATTRIBUTE_NAME = 31] = "BEFORE_ATTRIBUTE_NAME", e[e.ATTRIBUTE_NAME = 32] = "ATTRIBUTE_NAME", e[e.AFTER_ATTRIBUTE_NAME = 33] = "AFTER_ATTRIBUTE_NAME", e[e.BEFORE_ATTRIBUTE_VALUE = 34] = "BEFORE_ATTRIBUTE_VALUE", e[e.ATTRIBUTE_VALUE_DOUBLE_QUOTED = 35] = "ATTRIBUTE_VALUE_DOUBLE_QUOTED", e[e.ATTRIBUTE_VALUE_SINGLE_QUOTED = 36] = "ATTRIBUTE_VALUE_SINGLE_QUOTED", e[e.ATTRIBUTE_VALUE_UNQUOTED = 37] = "ATTRIBUTE_VALUE_UNQUOTED", e[e.AFTER_ATTRIBUTE_VALUE_QUOTED = 38] = "AFTER_ATTRIBUTE_VALUE_QUOTED", e[e.SELF_CLOSING_START_TAG = 39] = "SELF_CLOSING_START_TAG", e[e.BOGUS_COMMENT = 40] = "BOGUS_COMMENT", e[e.MARKUP_DECLARATION_OPEN = 41] = "MARKUP_DECLARATION_OPEN", e[e.COMMENT_START = 42] = "COMMENT_START", e[e.COMMENT_START_DASH = 43] = "COMMENT_START_DASH", e[e.COMMENT = 44] = "COMMENT", e[e.COMMENT_LESS_THAN_SIGN = 45] = "COMMENT_LESS_THAN_SIGN", e[e.COMMENT_LESS_THAN_SIGN_BANG = 46] = "COMMENT_LESS_THAN_SIGN_BANG", e[e.COMMENT_LESS_THAN_SIGN_BANG_DASH = 47] = "COMMENT_LESS_THAN_SIGN_BANG_DASH", e[e.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH = 48] = "COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH", e[e.COMMENT_END_DASH = 49] = "COMMENT_END_DASH", e[e.COMMENT_END = 50] = "COMMENT_END", e[e.COMMENT_END_BANG = 51] = "COMMENT_END_BANG", e[e.DOCTYPE = 52] = "DOCTYPE", e[e.BEFORE_DOCTYPE_NAME = 53] = "BEFORE_DOCTYPE_NAME", e[e.DOCTYPE_NAME = 54] = "DOCTYPE_NAME", e[e.AFTER_DOCTYPE_NAME = 55] = "AFTER_DOCTYPE_NAME", e[e.AFTER_DOCTYPE_PUBLIC_KEYWORD = 56] = "AFTER_DOCTYPE_PUBLIC_KEYWORD", e[e.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER = 57] = "BEFORE_DOCTYPE_PUBLIC_IDENTIFIER", e[e.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED = 58] = "DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED", e[e.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED = 59] = "DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED", e[e.AFTER_DOCTYPE_PUBLIC_IDENTIFIER = 60] = "AFTER_DOCTYPE_PUBLIC_IDENTIFIER", e[e.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS = 61] = "BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS", e[e.AFTER_DOCTYPE_SYSTEM_KEYWORD = 62] = "AFTER_DOCTYPE_SYSTEM_KEYWORD", e[e.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER = 63] = "BEFORE_DOCTYPE_SYSTEM_IDENTIFIER", e[e.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED = 64] = "DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED", e[e.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED = 65] = "DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED", e[e.AFTER_DOCTYPE_SYSTEM_IDENTIFIER = 66] = "AFTER_DOCTYPE_SYSTEM_IDENTIFIER", e[e.BOGUS_DOCTYPE = 67] = "BOGUS_DOCTYPE", e[e.CDATA_SECTION = 68] = "CDATA_SECTION", e[e.CDATA_SECTION_BRACKET = 69] = "CDATA_SECTION_BRACKET", e[e.CDATA_SECTION_END = 70] = "CDATA_SECTION_END", e[e.CHARACTER_REFERENCE = 71] = "CHARACTER_REFERENCE", e[e.AMBIGUOUS_AMPERSAND = 72] = "AMBIGUOUS_AMPERSAND";
|
|
16179
|
-
})(
|
|
16194
|
+
})(B || (B = {}));
|
|
16180
16195
|
const He = {
|
|
16181
|
-
DATA:
|
|
16182
|
-
RCDATA:
|
|
16183
|
-
RAWTEXT:
|
|
16184
|
-
SCRIPT_DATA:
|
|
16185
|
-
PLAINTEXT:
|
|
16186
|
-
CDATA_SECTION:
|
|
16196
|
+
DATA: B.DATA,
|
|
16197
|
+
RCDATA: B.RCDATA,
|
|
16198
|
+
RAWTEXT: B.RAWTEXT,
|
|
16199
|
+
SCRIPT_DATA: B.SCRIPT_DATA,
|
|
16200
|
+
PLAINTEXT: B.PLAINTEXT,
|
|
16201
|
+
CDATA_SECTION: B.CDATA_SECTION
|
|
16187
16202
|
};
|
|
16188
16203
|
function _v(e) {
|
|
16189
16204
|
return e >= P.DIGIT_0 && e <= P.DIGIT_9;
|
|
@@ -16214,7 +16229,7 @@ function Nv(e) {
|
|
|
16214
16229
|
}
|
|
16215
16230
|
class Iv {
|
|
16216
16231
|
constructor(t, a) {
|
|
16217
|
-
this.options = t, this.handler = a, this.paused = !1, this.inLoop = !1, this.inForeignNode = !1, this.lastStartTagName = "", this.active = !1, this.state =
|
|
16232
|
+
this.options = t, this.handler = a, this.paused = !1, this.inLoop = !1, this.inForeignNode = !1, this.lastStartTagName = "", this.active = !1, this.state = B.DATA, this.returnState = B.DATA, this.entityStartPos = 0, this.consumedAfterSnapshot = -1, this.currentCharacterToken = null, this.currentToken = null, this.currentAttr = { name: "", value: "" }, this.preprocessor = new bv(a), this.currentLocation = this.getCurrentLocation(-1), this.entityDecoder = new wv(mv, (l, n) => {
|
|
16218
16233
|
this.preprocessor.pos = this.entityStartPos + n - 1, this._flushCodePointConsumedAsCharacterReference(l);
|
|
16219
16234
|
}, a.onParseError ? {
|
|
16220
16235
|
missingSemicolonAfterCharacterReference: () => {
|
|
@@ -16420,10 +16435,10 @@ class Iv {
|
|
|
16420
16435
|
}
|
|
16421
16436
|
// Character reference helpers
|
|
16422
16437
|
_startCharacterReference() {
|
|
16423
|
-
this.returnState = this.state, this.state =
|
|
16438
|
+
this.returnState = this.state, this.state = B.CHARACTER_REFERENCE, this.entityStartPos = this.preprocessor.pos, this.entityDecoder.startEntity(this._isCharacterReferenceInAttribute() ? _t.Attribute : _t.Legacy);
|
|
16424
16439
|
}
|
|
16425
16440
|
_isCharacterReferenceInAttribute() {
|
|
16426
|
-
return this.returnState ===
|
|
16441
|
+
return this.returnState === B.ATTRIBUTE_VALUE_DOUBLE_QUOTED || this.returnState === B.ATTRIBUTE_VALUE_SINGLE_QUOTED || this.returnState === B.ATTRIBUTE_VALUE_UNQUOTED;
|
|
16427
16442
|
}
|
|
16428
16443
|
_flushCodePointConsumedAsCharacterReference(t) {
|
|
16429
16444
|
this._isCharacterReferenceInAttribute() ? this.currentAttr.value += String.fromCodePoint(t) : this._emitCodePoint(t);
|
|
@@ -16431,295 +16446,295 @@ class Iv {
|
|
|
16431
16446
|
// Calling states this way turns out to be much faster than any other approach.
|
|
16432
16447
|
_callState(t) {
|
|
16433
16448
|
switch (this.state) {
|
|
16434
|
-
case
|
|
16449
|
+
case B.DATA: {
|
|
16435
16450
|
this._stateData(t);
|
|
16436
16451
|
break;
|
|
16437
16452
|
}
|
|
16438
|
-
case
|
|
16453
|
+
case B.RCDATA: {
|
|
16439
16454
|
this._stateRcdata(t);
|
|
16440
16455
|
break;
|
|
16441
16456
|
}
|
|
16442
|
-
case
|
|
16457
|
+
case B.RAWTEXT: {
|
|
16443
16458
|
this._stateRawtext(t);
|
|
16444
16459
|
break;
|
|
16445
16460
|
}
|
|
16446
|
-
case
|
|
16461
|
+
case B.SCRIPT_DATA: {
|
|
16447
16462
|
this._stateScriptData(t);
|
|
16448
16463
|
break;
|
|
16449
16464
|
}
|
|
16450
|
-
case
|
|
16465
|
+
case B.PLAINTEXT: {
|
|
16451
16466
|
this._statePlaintext(t);
|
|
16452
16467
|
break;
|
|
16453
16468
|
}
|
|
16454
|
-
case
|
|
16469
|
+
case B.TAG_OPEN: {
|
|
16455
16470
|
this._stateTagOpen(t);
|
|
16456
16471
|
break;
|
|
16457
16472
|
}
|
|
16458
|
-
case
|
|
16473
|
+
case B.END_TAG_OPEN: {
|
|
16459
16474
|
this._stateEndTagOpen(t);
|
|
16460
16475
|
break;
|
|
16461
16476
|
}
|
|
16462
|
-
case
|
|
16477
|
+
case B.TAG_NAME: {
|
|
16463
16478
|
this._stateTagName(t);
|
|
16464
16479
|
break;
|
|
16465
16480
|
}
|
|
16466
|
-
case
|
|
16481
|
+
case B.RCDATA_LESS_THAN_SIGN: {
|
|
16467
16482
|
this._stateRcdataLessThanSign(t);
|
|
16468
16483
|
break;
|
|
16469
16484
|
}
|
|
16470
|
-
case
|
|
16485
|
+
case B.RCDATA_END_TAG_OPEN: {
|
|
16471
16486
|
this._stateRcdataEndTagOpen(t);
|
|
16472
16487
|
break;
|
|
16473
16488
|
}
|
|
16474
|
-
case
|
|
16489
|
+
case B.RCDATA_END_TAG_NAME: {
|
|
16475
16490
|
this._stateRcdataEndTagName(t);
|
|
16476
16491
|
break;
|
|
16477
16492
|
}
|
|
16478
|
-
case
|
|
16493
|
+
case B.RAWTEXT_LESS_THAN_SIGN: {
|
|
16479
16494
|
this._stateRawtextLessThanSign(t);
|
|
16480
16495
|
break;
|
|
16481
16496
|
}
|
|
16482
|
-
case
|
|
16497
|
+
case B.RAWTEXT_END_TAG_OPEN: {
|
|
16483
16498
|
this._stateRawtextEndTagOpen(t);
|
|
16484
16499
|
break;
|
|
16485
16500
|
}
|
|
16486
|
-
case
|
|
16501
|
+
case B.RAWTEXT_END_TAG_NAME: {
|
|
16487
16502
|
this._stateRawtextEndTagName(t);
|
|
16488
16503
|
break;
|
|
16489
16504
|
}
|
|
16490
|
-
case
|
|
16505
|
+
case B.SCRIPT_DATA_LESS_THAN_SIGN: {
|
|
16491
16506
|
this._stateScriptDataLessThanSign(t);
|
|
16492
16507
|
break;
|
|
16493
16508
|
}
|
|
16494
|
-
case
|
|
16509
|
+
case B.SCRIPT_DATA_END_TAG_OPEN: {
|
|
16495
16510
|
this._stateScriptDataEndTagOpen(t);
|
|
16496
16511
|
break;
|
|
16497
16512
|
}
|
|
16498
|
-
case
|
|
16513
|
+
case B.SCRIPT_DATA_END_TAG_NAME: {
|
|
16499
16514
|
this._stateScriptDataEndTagName(t);
|
|
16500
16515
|
break;
|
|
16501
16516
|
}
|
|
16502
|
-
case
|
|
16517
|
+
case B.SCRIPT_DATA_ESCAPE_START: {
|
|
16503
16518
|
this._stateScriptDataEscapeStart(t);
|
|
16504
16519
|
break;
|
|
16505
16520
|
}
|
|
16506
|
-
case
|
|
16521
|
+
case B.SCRIPT_DATA_ESCAPE_START_DASH: {
|
|
16507
16522
|
this._stateScriptDataEscapeStartDash(t);
|
|
16508
16523
|
break;
|
|
16509
16524
|
}
|
|
16510
|
-
case
|
|
16525
|
+
case B.SCRIPT_DATA_ESCAPED: {
|
|
16511
16526
|
this._stateScriptDataEscaped(t);
|
|
16512
16527
|
break;
|
|
16513
16528
|
}
|
|
16514
|
-
case
|
|
16529
|
+
case B.SCRIPT_DATA_ESCAPED_DASH: {
|
|
16515
16530
|
this._stateScriptDataEscapedDash(t);
|
|
16516
16531
|
break;
|
|
16517
16532
|
}
|
|
16518
|
-
case
|
|
16533
|
+
case B.SCRIPT_DATA_ESCAPED_DASH_DASH: {
|
|
16519
16534
|
this._stateScriptDataEscapedDashDash(t);
|
|
16520
16535
|
break;
|
|
16521
16536
|
}
|
|
16522
|
-
case
|
|
16537
|
+
case B.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN: {
|
|
16523
16538
|
this._stateScriptDataEscapedLessThanSign(t);
|
|
16524
16539
|
break;
|
|
16525
16540
|
}
|
|
16526
|
-
case
|
|
16541
|
+
case B.SCRIPT_DATA_ESCAPED_END_TAG_OPEN: {
|
|
16527
16542
|
this._stateScriptDataEscapedEndTagOpen(t);
|
|
16528
16543
|
break;
|
|
16529
16544
|
}
|
|
16530
|
-
case
|
|
16545
|
+
case B.SCRIPT_DATA_ESCAPED_END_TAG_NAME: {
|
|
16531
16546
|
this._stateScriptDataEscapedEndTagName(t);
|
|
16532
16547
|
break;
|
|
16533
16548
|
}
|
|
16534
|
-
case
|
|
16549
|
+
case B.SCRIPT_DATA_DOUBLE_ESCAPE_START: {
|
|
16535
16550
|
this._stateScriptDataDoubleEscapeStart(t);
|
|
16536
16551
|
break;
|
|
16537
16552
|
}
|
|
16538
|
-
case
|
|
16553
|
+
case B.SCRIPT_DATA_DOUBLE_ESCAPED: {
|
|
16539
16554
|
this._stateScriptDataDoubleEscaped(t);
|
|
16540
16555
|
break;
|
|
16541
16556
|
}
|
|
16542
|
-
case
|
|
16557
|
+
case B.SCRIPT_DATA_DOUBLE_ESCAPED_DASH: {
|
|
16543
16558
|
this._stateScriptDataDoubleEscapedDash(t);
|
|
16544
16559
|
break;
|
|
16545
16560
|
}
|
|
16546
|
-
case
|
|
16561
|
+
case B.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH: {
|
|
16547
16562
|
this._stateScriptDataDoubleEscapedDashDash(t);
|
|
16548
16563
|
break;
|
|
16549
16564
|
}
|
|
16550
|
-
case
|
|
16565
|
+
case B.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN: {
|
|
16551
16566
|
this._stateScriptDataDoubleEscapedLessThanSign(t);
|
|
16552
16567
|
break;
|
|
16553
16568
|
}
|
|
16554
|
-
case
|
|
16569
|
+
case B.SCRIPT_DATA_DOUBLE_ESCAPE_END: {
|
|
16555
16570
|
this._stateScriptDataDoubleEscapeEnd(t);
|
|
16556
16571
|
break;
|
|
16557
16572
|
}
|
|
16558
|
-
case
|
|
16573
|
+
case B.BEFORE_ATTRIBUTE_NAME: {
|
|
16559
16574
|
this._stateBeforeAttributeName(t);
|
|
16560
16575
|
break;
|
|
16561
16576
|
}
|
|
16562
|
-
case
|
|
16577
|
+
case B.ATTRIBUTE_NAME: {
|
|
16563
16578
|
this._stateAttributeName(t);
|
|
16564
16579
|
break;
|
|
16565
16580
|
}
|
|
16566
|
-
case
|
|
16581
|
+
case B.AFTER_ATTRIBUTE_NAME: {
|
|
16567
16582
|
this._stateAfterAttributeName(t);
|
|
16568
16583
|
break;
|
|
16569
16584
|
}
|
|
16570
|
-
case
|
|
16585
|
+
case B.BEFORE_ATTRIBUTE_VALUE: {
|
|
16571
16586
|
this._stateBeforeAttributeValue(t);
|
|
16572
16587
|
break;
|
|
16573
16588
|
}
|
|
16574
|
-
case
|
|
16589
|
+
case B.ATTRIBUTE_VALUE_DOUBLE_QUOTED: {
|
|
16575
16590
|
this._stateAttributeValueDoubleQuoted(t);
|
|
16576
16591
|
break;
|
|
16577
16592
|
}
|
|
16578
|
-
case
|
|
16593
|
+
case B.ATTRIBUTE_VALUE_SINGLE_QUOTED: {
|
|
16579
16594
|
this._stateAttributeValueSingleQuoted(t);
|
|
16580
16595
|
break;
|
|
16581
16596
|
}
|
|
16582
|
-
case
|
|
16597
|
+
case B.ATTRIBUTE_VALUE_UNQUOTED: {
|
|
16583
16598
|
this._stateAttributeValueUnquoted(t);
|
|
16584
16599
|
break;
|
|
16585
16600
|
}
|
|
16586
|
-
case
|
|
16601
|
+
case B.AFTER_ATTRIBUTE_VALUE_QUOTED: {
|
|
16587
16602
|
this._stateAfterAttributeValueQuoted(t);
|
|
16588
16603
|
break;
|
|
16589
16604
|
}
|
|
16590
|
-
case
|
|
16605
|
+
case B.SELF_CLOSING_START_TAG: {
|
|
16591
16606
|
this._stateSelfClosingStartTag(t);
|
|
16592
16607
|
break;
|
|
16593
16608
|
}
|
|
16594
|
-
case
|
|
16609
|
+
case B.BOGUS_COMMENT: {
|
|
16595
16610
|
this._stateBogusComment(t);
|
|
16596
16611
|
break;
|
|
16597
16612
|
}
|
|
16598
|
-
case
|
|
16613
|
+
case B.MARKUP_DECLARATION_OPEN: {
|
|
16599
16614
|
this._stateMarkupDeclarationOpen(t);
|
|
16600
16615
|
break;
|
|
16601
16616
|
}
|
|
16602
|
-
case
|
|
16617
|
+
case B.COMMENT_START: {
|
|
16603
16618
|
this._stateCommentStart(t);
|
|
16604
16619
|
break;
|
|
16605
16620
|
}
|
|
16606
|
-
case
|
|
16621
|
+
case B.COMMENT_START_DASH: {
|
|
16607
16622
|
this._stateCommentStartDash(t);
|
|
16608
16623
|
break;
|
|
16609
16624
|
}
|
|
16610
|
-
case
|
|
16625
|
+
case B.COMMENT: {
|
|
16611
16626
|
this._stateComment(t);
|
|
16612
16627
|
break;
|
|
16613
16628
|
}
|
|
16614
|
-
case
|
|
16629
|
+
case B.COMMENT_LESS_THAN_SIGN: {
|
|
16615
16630
|
this._stateCommentLessThanSign(t);
|
|
16616
16631
|
break;
|
|
16617
16632
|
}
|
|
16618
|
-
case
|
|
16633
|
+
case B.COMMENT_LESS_THAN_SIGN_BANG: {
|
|
16619
16634
|
this._stateCommentLessThanSignBang(t);
|
|
16620
16635
|
break;
|
|
16621
16636
|
}
|
|
16622
|
-
case
|
|
16637
|
+
case B.COMMENT_LESS_THAN_SIGN_BANG_DASH: {
|
|
16623
16638
|
this._stateCommentLessThanSignBangDash(t);
|
|
16624
16639
|
break;
|
|
16625
16640
|
}
|
|
16626
|
-
case
|
|
16641
|
+
case B.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH: {
|
|
16627
16642
|
this._stateCommentLessThanSignBangDashDash(t);
|
|
16628
16643
|
break;
|
|
16629
16644
|
}
|
|
16630
|
-
case
|
|
16645
|
+
case B.COMMENT_END_DASH: {
|
|
16631
16646
|
this._stateCommentEndDash(t);
|
|
16632
16647
|
break;
|
|
16633
16648
|
}
|
|
16634
|
-
case
|
|
16649
|
+
case B.COMMENT_END: {
|
|
16635
16650
|
this._stateCommentEnd(t);
|
|
16636
16651
|
break;
|
|
16637
16652
|
}
|
|
16638
|
-
case
|
|
16653
|
+
case B.COMMENT_END_BANG: {
|
|
16639
16654
|
this._stateCommentEndBang(t);
|
|
16640
16655
|
break;
|
|
16641
16656
|
}
|
|
16642
|
-
case
|
|
16657
|
+
case B.DOCTYPE: {
|
|
16643
16658
|
this._stateDoctype(t);
|
|
16644
16659
|
break;
|
|
16645
16660
|
}
|
|
16646
|
-
case
|
|
16661
|
+
case B.BEFORE_DOCTYPE_NAME: {
|
|
16647
16662
|
this._stateBeforeDoctypeName(t);
|
|
16648
16663
|
break;
|
|
16649
16664
|
}
|
|
16650
|
-
case
|
|
16665
|
+
case B.DOCTYPE_NAME: {
|
|
16651
16666
|
this._stateDoctypeName(t);
|
|
16652
16667
|
break;
|
|
16653
16668
|
}
|
|
16654
|
-
case
|
|
16669
|
+
case B.AFTER_DOCTYPE_NAME: {
|
|
16655
16670
|
this._stateAfterDoctypeName(t);
|
|
16656
16671
|
break;
|
|
16657
16672
|
}
|
|
16658
|
-
case
|
|
16673
|
+
case B.AFTER_DOCTYPE_PUBLIC_KEYWORD: {
|
|
16659
16674
|
this._stateAfterDoctypePublicKeyword(t);
|
|
16660
16675
|
break;
|
|
16661
16676
|
}
|
|
16662
|
-
case
|
|
16677
|
+
case B.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER: {
|
|
16663
16678
|
this._stateBeforeDoctypePublicIdentifier(t);
|
|
16664
16679
|
break;
|
|
16665
16680
|
}
|
|
16666
|
-
case
|
|
16681
|
+
case B.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED: {
|
|
16667
16682
|
this._stateDoctypePublicIdentifierDoubleQuoted(t);
|
|
16668
16683
|
break;
|
|
16669
16684
|
}
|
|
16670
|
-
case
|
|
16685
|
+
case B.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED: {
|
|
16671
16686
|
this._stateDoctypePublicIdentifierSingleQuoted(t);
|
|
16672
16687
|
break;
|
|
16673
16688
|
}
|
|
16674
|
-
case
|
|
16689
|
+
case B.AFTER_DOCTYPE_PUBLIC_IDENTIFIER: {
|
|
16675
16690
|
this._stateAfterDoctypePublicIdentifier(t);
|
|
16676
16691
|
break;
|
|
16677
16692
|
}
|
|
16678
|
-
case
|
|
16693
|
+
case B.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS: {
|
|
16679
16694
|
this._stateBetweenDoctypePublicAndSystemIdentifiers(t);
|
|
16680
16695
|
break;
|
|
16681
16696
|
}
|
|
16682
|
-
case
|
|
16697
|
+
case B.AFTER_DOCTYPE_SYSTEM_KEYWORD: {
|
|
16683
16698
|
this._stateAfterDoctypeSystemKeyword(t);
|
|
16684
16699
|
break;
|
|
16685
16700
|
}
|
|
16686
|
-
case
|
|
16701
|
+
case B.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER: {
|
|
16687
16702
|
this._stateBeforeDoctypeSystemIdentifier(t);
|
|
16688
16703
|
break;
|
|
16689
16704
|
}
|
|
16690
|
-
case
|
|
16705
|
+
case B.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED: {
|
|
16691
16706
|
this._stateDoctypeSystemIdentifierDoubleQuoted(t);
|
|
16692
16707
|
break;
|
|
16693
16708
|
}
|
|
16694
|
-
case
|
|
16709
|
+
case B.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED: {
|
|
16695
16710
|
this._stateDoctypeSystemIdentifierSingleQuoted(t);
|
|
16696
16711
|
break;
|
|
16697
16712
|
}
|
|
16698
|
-
case
|
|
16713
|
+
case B.AFTER_DOCTYPE_SYSTEM_IDENTIFIER: {
|
|
16699
16714
|
this._stateAfterDoctypeSystemIdentifier(t);
|
|
16700
16715
|
break;
|
|
16701
16716
|
}
|
|
16702
|
-
case
|
|
16717
|
+
case B.BOGUS_DOCTYPE: {
|
|
16703
16718
|
this._stateBogusDoctype(t);
|
|
16704
16719
|
break;
|
|
16705
16720
|
}
|
|
16706
|
-
case
|
|
16721
|
+
case B.CDATA_SECTION: {
|
|
16707
16722
|
this._stateCdataSection(t);
|
|
16708
16723
|
break;
|
|
16709
16724
|
}
|
|
16710
|
-
case
|
|
16725
|
+
case B.CDATA_SECTION_BRACKET: {
|
|
16711
16726
|
this._stateCdataSectionBracket(t);
|
|
16712
16727
|
break;
|
|
16713
16728
|
}
|
|
16714
|
-
case
|
|
16729
|
+
case B.CDATA_SECTION_END: {
|
|
16715
16730
|
this._stateCdataSectionEnd(t);
|
|
16716
16731
|
break;
|
|
16717
16732
|
}
|
|
16718
|
-
case
|
|
16733
|
+
case B.CHARACTER_REFERENCE: {
|
|
16719
16734
|
this._stateCharacterReference();
|
|
16720
16735
|
break;
|
|
16721
16736
|
}
|
|
16722
|
-
case
|
|
16737
|
+
case B.AMBIGUOUS_AMPERSAND: {
|
|
16723
16738
|
this._stateAmbiguousAmpersand(t);
|
|
16724
16739
|
break;
|
|
16725
16740
|
}
|
|
@@ -16733,7 +16748,7 @@ class Iv {
|
|
|
16733
16748
|
_stateData(t) {
|
|
16734
16749
|
switch (t) {
|
|
16735
16750
|
case P.LESS_THAN_SIGN: {
|
|
16736
|
-
this.state =
|
|
16751
|
+
this.state = B.TAG_OPEN;
|
|
16737
16752
|
break;
|
|
16738
16753
|
}
|
|
16739
16754
|
case P.AMPERSAND: {
|
|
@@ -16761,7 +16776,7 @@ class Iv {
|
|
|
16761
16776
|
break;
|
|
16762
16777
|
}
|
|
16763
16778
|
case P.LESS_THAN_SIGN: {
|
|
16764
|
-
this.state =
|
|
16779
|
+
this.state = B.RCDATA_LESS_THAN_SIGN;
|
|
16765
16780
|
break;
|
|
16766
16781
|
}
|
|
16767
16782
|
case P.NULL: {
|
|
@@ -16781,7 +16796,7 @@ class Iv {
|
|
|
16781
16796
|
_stateRawtext(t) {
|
|
16782
16797
|
switch (t) {
|
|
16783
16798
|
case P.LESS_THAN_SIGN: {
|
|
16784
|
-
this.state =
|
|
16799
|
+
this.state = B.RAWTEXT_LESS_THAN_SIGN;
|
|
16785
16800
|
break;
|
|
16786
16801
|
}
|
|
16787
16802
|
case P.NULL: {
|
|
@@ -16801,7 +16816,7 @@ class Iv {
|
|
|
16801
16816
|
_stateScriptData(t) {
|
|
16802
16817
|
switch (t) {
|
|
16803
16818
|
case P.LESS_THAN_SIGN: {
|
|
16804
|
-
this.state =
|
|
16819
|
+
this.state = B.SCRIPT_DATA_LESS_THAN_SIGN;
|
|
16805
16820
|
break;
|
|
16806
16821
|
}
|
|
16807
16822
|
case P.NULL: {
|
|
@@ -16836,19 +16851,19 @@ class Iv {
|
|
|
16836
16851
|
//------------------------------------------------------------------
|
|
16837
16852
|
_stateTagOpen(t) {
|
|
16838
16853
|
if (Pt(t))
|
|
16839
|
-
this._createStartTagToken(), this.state =
|
|
16854
|
+
this._createStartTagToken(), this.state = B.TAG_NAME, this._stateTagName(t);
|
|
16840
16855
|
else
|
|
16841
16856
|
switch (t) {
|
|
16842
16857
|
case P.EXCLAMATION_MARK: {
|
|
16843
|
-
this.state =
|
|
16858
|
+
this.state = B.MARKUP_DECLARATION_OPEN;
|
|
16844
16859
|
break;
|
|
16845
16860
|
}
|
|
16846
16861
|
case P.SOLIDUS: {
|
|
16847
|
-
this.state =
|
|
16862
|
+
this.state = B.END_TAG_OPEN;
|
|
16848
16863
|
break;
|
|
16849
16864
|
}
|
|
16850
16865
|
case P.QUESTION_MARK: {
|
|
16851
|
-
this._err(X.unexpectedQuestionMarkInsteadOfTagName), this._createCommentToken(1), this.state =
|
|
16866
|
+
this._err(X.unexpectedQuestionMarkInsteadOfTagName), this._createCommentToken(1), this.state = B.BOGUS_COMMENT, this._stateBogusComment(t);
|
|
16852
16867
|
break;
|
|
16853
16868
|
}
|
|
16854
16869
|
case P.EOF: {
|
|
@@ -16856,18 +16871,18 @@ class Iv {
|
|
|
16856
16871
|
break;
|
|
16857
16872
|
}
|
|
16858
16873
|
default:
|
|
16859
|
-
this._err(X.invalidFirstCharacterOfTagName), this._emitChars("<"), this.state =
|
|
16874
|
+
this._err(X.invalidFirstCharacterOfTagName), this._emitChars("<"), this.state = B.DATA, this._stateData(t);
|
|
16860
16875
|
}
|
|
16861
16876
|
}
|
|
16862
16877
|
// End tag open state
|
|
16863
16878
|
//------------------------------------------------------------------
|
|
16864
16879
|
_stateEndTagOpen(t) {
|
|
16865
16880
|
if (Pt(t))
|
|
16866
|
-
this._createEndTagToken(), this.state =
|
|
16881
|
+
this._createEndTagToken(), this.state = B.TAG_NAME, this._stateTagName(t);
|
|
16867
16882
|
else
|
|
16868
16883
|
switch (t) {
|
|
16869
16884
|
case P.GREATER_THAN_SIGN: {
|
|
16870
|
-
this._err(X.missingEndTagName), this.state =
|
|
16885
|
+
this._err(X.missingEndTagName), this.state = B.DATA;
|
|
16871
16886
|
break;
|
|
16872
16887
|
}
|
|
16873
16888
|
case P.EOF: {
|
|
@@ -16875,7 +16890,7 @@ class Iv {
|
|
|
16875
16890
|
break;
|
|
16876
16891
|
}
|
|
16877
16892
|
default:
|
|
16878
|
-
this._err(X.invalidFirstCharacterOfTagName), this._createCommentToken(2), this.state =
|
|
16893
|
+
this._err(X.invalidFirstCharacterOfTagName), this._createCommentToken(2), this.state = B.BOGUS_COMMENT, this._stateBogusComment(t);
|
|
16879
16894
|
}
|
|
16880
16895
|
}
|
|
16881
16896
|
// Tag name state
|
|
@@ -16887,15 +16902,15 @@ class Iv {
|
|
|
16887
16902
|
case P.LINE_FEED:
|
|
16888
16903
|
case P.TABULATION:
|
|
16889
16904
|
case P.FORM_FEED: {
|
|
16890
|
-
this.state =
|
|
16905
|
+
this.state = B.BEFORE_ATTRIBUTE_NAME;
|
|
16891
16906
|
break;
|
|
16892
16907
|
}
|
|
16893
16908
|
case P.SOLIDUS: {
|
|
16894
|
-
this.state =
|
|
16909
|
+
this.state = B.SELF_CLOSING_START_TAG;
|
|
16895
16910
|
break;
|
|
16896
16911
|
}
|
|
16897
16912
|
case P.GREATER_THAN_SIGN: {
|
|
16898
|
-
this.state =
|
|
16913
|
+
this.state = B.DATA, this.emitCurrentTagToken();
|
|
16899
16914
|
break;
|
|
16900
16915
|
}
|
|
16901
16916
|
case P.NULL: {
|
|
@@ -16913,12 +16928,12 @@ class Iv {
|
|
|
16913
16928
|
// RCDATA less-than sign state
|
|
16914
16929
|
//------------------------------------------------------------------
|
|
16915
16930
|
_stateRcdataLessThanSign(t) {
|
|
16916
|
-
t === P.SOLIDUS ? this.state =
|
|
16931
|
+
t === P.SOLIDUS ? this.state = B.RCDATA_END_TAG_OPEN : (this._emitChars("<"), this.state = B.RCDATA, this._stateRcdata(t));
|
|
16917
16932
|
}
|
|
16918
16933
|
// RCDATA end tag open state
|
|
16919
16934
|
//------------------------------------------------------------------
|
|
16920
16935
|
_stateRcdataEndTagOpen(t) {
|
|
16921
|
-
Pt(t) ? (this.state =
|
|
16936
|
+
Pt(t) ? (this.state = B.RCDATA_END_TAG_NAME, this._stateRcdataEndTagName(t)) : (this._emitChars("</"), this.state = B.RCDATA, this._stateRcdata(t));
|
|
16922
16937
|
}
|
|
16923
16938
|
handleSpecialEndTag(t) {
|
|
16924
16939
|
if (!this.preprocessor.startsWith(this.lastStartTagName, !1))
|
|
@@ -16930,11 +16945,11 @@ class Iv {
|
|
|
16930
16945
|
case P.LINE_FEED:
|
|
16931
16946
|
case P.TABULATION:
|
|
16932
16947
|
case P.FORM_FEED:
|
|
16933
|
-
return this._advanceBy(this.lastStartTagName.length), this.state =
|
|
16948
|
+
return this._advanceBy(this.lastStartTagName.length), this.state = B.BEFORE_ATTRIBUTE_NAME, !1;
|
|
16934
16949
|
case P.SOLIDUS:
|
|
16935
|
-
return this._advanceBy(this.lastStartTagName.length), this.state =
|
|
16950
|
+
return this._advanceBy(this.lastStartTagName.length), this.state = B.SELF_CLOSING_START_TAG, !1;
|
|
16936
16951
|
case P.GREATER_THAN_SIGN:
|
|
16937
|
-
return this._advanceBy(this.lastStartTagName.length), this.emitCurrentTagToken(), this.state =
|
|
16952
|
+
return this._advanceBy(this.lastStartTagName.length), this.emitCurrentTagToken(), this.state = B.DATA, !1;
|
|
16938
16953
|
default:
|
|
16939
16954
|
return !this._ensureHibernation();
|
|
16940
16955
|
}
|
|
@@ -16942,69 +16957,69 @@ class Iv {
|
|
|
16942
16957
|
// RCDATA end tag name state
|
|
16943
16958
|
//------------------------------------------------------------------
|
|
16944
16959
|
_stateRcdataEndTagName(t) {
|
|
16945
|
-
this.handleSpecialEndTag(t) && (this._emitChars("</"), this.state =
|
|
16960
|
+
this.handleSpecialEndTag(t) && (this._emitChars("</"), this.state = B.RCDATA, this._stateRcdata(t));
|
|
16946
16961
|
}
|
|
16947
16962
|
// RAWTEXT less-than sign state
|
|
16948
16963
|
//------------------------------------------------------------------
|
|
16949
16964
|
_stateRawtextLessThanSign(t) {
|
|
16950
|
-
t === P.SOLIDUS ? this.state =
|
|
16965
|
+
t === P.SOLIDUS ? this.state = B.RAWTEXT_END_TAG_OPEN : (this._emitChars("<"), this.state = B.RAWTEXT, this._stateRawtext(t));
|
|
16951
16966
|
}
|
|
16952
16967
|
// RAWTEXT end tag open state
|
|
16953
16968
|
//------------------------------------------------------------------
|
|
16954
16969
|
_stateRawtextEndTagOpen(t) {
|
|
16955
|
-
Pt(t) ? (this.state =
|
|
16970
|
+
Pt(t) ? (this.state = B.RAWTEXT_END_TAG_NAME, this._stateRawtextEndTagName(t)) : (this._emitChars("</"), this.state = B.RAWTEXT, this._stateRawtext(t));
|
|
16956
16971
|
}
|
|
16957
16972
|
// RAWTEXT end tag name state
|
|
16958
16973
|
//------------------------------------------------------------------
|
|
16959
16974
|
_stateRawtextEndTagName(t) {
|
|
16960
|
-
this.handleSpecialEndTag(t) && (this._emitChars("</"), this.state =
|
|
16975
|
+
this.handleSpecialEndTag(t) && (this._emitChars("</"), this.state = B.RAWTEXT, this._stateRawtext(t));
|
|
16961
16976
|
}
|
|
16962
16977
|
// Script data less-than sign state
|
|
16963
16978
|
//------------------------------------------------------------------
|
|
16964
16979
|
_stateScriptDataLessThanSign(t) {
|
|
16965
16980
|
switch (t) {
|
|
16966
16981
|
case P.SOLIDUS: {
|
|
16967
|
-
this.state =
|
|
16982
|
+
this.state = B.SCRIPT_DATA_END_TAG_OPEN;
|
|
16968
16983
|
break;
|
|
16969
16984
|
}
|
|
16970
16985
|
case P.EXCLAMATION_MARK: {
|
|
16971
|
-
this.state =
|
|
16986
|
+
this.state = B.SCRIPT_DATA_ESCAPE_START, this._emitChars("<!");
|
|
16972
16987
|
break;
|
|
16973
16988
|
}
|
|
16974
16989
|
default:
|
|
16975
|
-
this._emitChars("<"), this.state =
|
|
16990
|
+
this._emitChars("<"), this.state = B.SCRIPT_DATA, this._stateScriptData(t);
|
|
16976
16991
|
}
|
|
16977
16992
|
}
|
|
16978
16993
|
// Script data end tag open state
|
|
16979
16994
|
//------------------------------------------------------------------
|
|
16980
16995
|
_stateScriptDataEndTagOpen(t) {
|
|
16981
|
-
Pt(t) ? (this.state =
|
|
16996
|
+
Pt(t) ? (this.state = B.SCRIPT_DATA_END_TAG_NAME, this._stateScriptDataEndTagName(t)) : (this._emitChars("</"), this.state = B.SCRIPT_DATA, this._stateScriptData(t));
|
|
16982
16997
|
}
|
|
16983
16998
|
// Script data end tag name state
|
|
16984
16999
|
//------------------------------------------------------------------
|
|
16985
17000
|
_stateScriptDataEndTagName(t) {
|
|
16986
|
-
this.handleSpecialEndTag(t) && (this._emitChars("</"), this.state =
|
|
17001
|
+
this.handleSpecialEndTag(t) && (this._emitChars("</"), this.state = B.SCRIPT_DATA, this._stateScriptData(t));
|
|
16987
17002
|
}
|
|
16988
17003
|
// Script data escape start state
|
|
16989
17004
|
//------------------------------------------------------------------
|
|
16990
17005
|
_stateScriptDataEscapeStart(t) {
|
|
16991
|
-
t === P.HYPHEN_MINUS ? (this.state =
|
|
17006
|
+
t === P.HYPHEN_MINUS ? (this.state = B.SCRIPT_DATA_ESCAPE_START_DASH, this._emitChars("-")) : (this.state = B.SCRIPT_DATA, this._stateScriptData(t));
|
|
16992
17007
|
}
|
|
16993
17008
|
// Script data escape start dash state
|
|
16994
17009
|
//------------------------------------------------------------------
|
|
16995
17010
|
_stateScriptDataEscapeStartDash(t) {
|
|
16996
|
-
t === P.HYPHEN_MINUS ? (this.state =
|
|
17011
|
+
t === P.HYPHEN_MINUS ? (this.state = B.SCRIPT_DATA_ESCAPED_DASH_DASH, this._emitChars("-")) : (this.state = B.SCRIPT_DATA, this._stateScriptData(t));
|
|
16997
17012
|
}
|
|
16998
17013
|
// Script data escaped state
|
|
16999
17014
|
//------------------------------------------------------------------
|
|
17000
17015
|
_stateScriptDataEscaped(t) {
|
|
17001
17016
|
switch (t) {
|
|
17002
17017
|
case P.HYPHEN_MINUS: {
|
|
17003
|
-
this.state =
|
|
17018
|
+
this.state = B.SCRIPT_DATA_ESCAPED_DASH, this._emitChars("-");
|
|
17004
17019
|
break;
|
|
17005
17020
|
}
|
|
17006
17021
|
case P.LESS_THAN_SIGN: {
|
|
17007
|
-
this.state =
|
|
17022
|
+
this.state = B.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;
|
|
17008
17023
|
break;
|
|
17009
17024
|
}
|
|
17010
17025
|
case P.NULL: {
|
|
@@ -17024,15 +17039,15 @@ class Iv {
|
|
|
17024
17039
|
_stateScriptDataEscapedDash(t) {
|
|
17025
17040
|
switch (t) {
|
|
17026
17041
|
case P.HYPHEN_MINUS: {
|
|
17027
|
-
this.state =
|
|
17042
|
+
this.state = B.SCRIPT_DATA_ESCAPED_DASH_DASH, this._emitChars("-");
|
|
17028
17043
|
break;
|
|
17029
17044
|
}
|
|
17030
17045
|
case P.LESS_THAN_SIGN: {
|
|
17031
|
-
this.state =
|
|
17046
|
+
this.state = B.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;
|
|
17032
17047
|
break;
|
|
17033
17048
|
}
|
|
17034
17049
|
case P.NULL: {
|
|
17035
|
-
this._err(X.unexpectedNullCharacter), this.state =
|
|
17050
|
+
this._err(X.unexpectedNullCharacter), this.state = B.SCRIPT_DATA_ESCAPED, this._emitChars(Re);
|
|
17036
17051
|
break;
|
|
17037
17052
|
}
|
|
17038
17053
|
case P.EOF: {
|
|
@@ -17040,7 +17055,7 @@ class Iv {
|
|
|
17040
17055
|
break;
|
|
17041
17056
|
}
|
|
17042
17057
|
default:
|
|
17043
|
-
this.state =
|
|
17058
|
+
this.state = B.SCRIPT_DATA_ESCAPED, this._emitCodePoint(t);
|
|
17044
17059
|
}
|
|
17045
17060
|
}
|
|
17046
17061
|
// Script data escaped dash dash state
|
|
@@ -17052,15 +17067,15 @@ class Iv {
|
|
|
17052
17067
|
break;
|
|
17053
17068
|
}
|
|
17054
17069
|
case P.LESS_THAN_SIGN: {
|
|
17055
|
-
this.state =
|
|
17070
|
+
this.state = B.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;
|
|
17056
17071
|
break;
|
|
17057
17072
|
}
|
|
17058
17073
|
case P.GREATER_THAN_SIGN: {
|
|
17059
|
-
this.state =
|
|
17074
|
+
this.state = B.SCRIPT_DATA, this._emitChars(">");
|
|
17060
17075
|
break;
|
|
17061
17076
|
}
|
|
17062
17077
|
case P.NULL: {
|
|
17063
|
-
this._err(X.unexpectedNullCharacter), this.state =
|
|
17078
|
+
this._err(X.unexpectedNullCharacter), this.state = B.SCRIPT_DATA_ESCAPED, this._emitChars(Re);
|
|
17064
17079
|
break;
|
|
17065
17080
|
}
|
|
17066
17081
|
case P.EOF: {
|
|
@@ -17068,23 +17083,23 @@ class Iv {
|
|
|
17068
17083
|
break;
|
|
17069
17084
|
}
|
|
17070
17085
|
default:
|
|
17071
|
-
this.state =
|
|
17086
|
+
this.state = B.SCRIPT_DATA_ESCAPED, this._emitCodePoint(t);
|
|
17072
17087
|
}
|
|
17073
17088
|
}
|
|
17074
17089
|
// Script data escaped less-than sign state
|
|
17075
17090
|
//------------------------------------------------------------------
|
|
17076
17091
|
_stateScriptDataEscapedLessThanSign(t) {
|
|
17077
|
-
t === P.SOLIDUS ? this.state =
|
|
17092
|
+
t === P.SOLIDUS ? this.state = B.SCRIPT_DATA_ESCAPED_END_TAG_OPEN : Pt(t) ? (this._emitChars("<"), this.state = B.SCRIPT_DATA_DOUBLE_ESCAPE_START, this._stateScriptDataDoubleEscapeStart(t)) : (this._emitChars("<"), this.state = B.SCRIPT_DATA_ESCAPED, this._stateScriptDataEscaped(t));
|
|
17078
17093
|
}
|
|
17079
17094
|
// Script data escaped end tag open state
|
|
17080
17095
|
//------------------------------------------------------------------
|
|
17081
17096
|
_stateScriptDataEscapedEndTagOpen(t) {
|
|
17082
|
-
Pt(t) ? (this.state =
|
|
17097
|
+
Pt(t) ? (this.state = B.SCRIPT_DATA_ESCAPED_END_TAG_NAME, this._stateScriptDataEscapedEndTagName(t)) : (this._emitChars("</"), this.state = B.SCRIPT_DATA_ESCAPED, this._stateScriptDataEscaped(t));
|
|
17083
17098
|
}
|
|
17084
17099
|
// Script data escaped end tag name state
|
|
17085
17100
|
//------------------------------------------------------------------
|
|
17086
17101
|
_stateScriptDataEscapedEndTagName(t) {
|
|
17087
|
-
this.handleSpecialEndTag(t) && (this._emitChars("</"), this.state =
|
|
17102
|
+
this.handleSpecialEndTag(t) && (this._emitChars("</"), this.state = B.SCRIPT_DATA_ESCAPED, this._stateScriptDataEscaped(t));
|
|
17088
17103
|
}
|
|
17089
17104
|
// Script data double escape start state
|
|
17090
17105
|
//------------------------------------------------------------------
|
|
@@ -17093,19 +17108,19 @@ class Iv {
|
|
|
17093
17108
|
this._emitCodePoint(t);
|
|
17094
17109
|
for (let a = 0; a < et.SCRIPT.length; a++)
|
|
17095
17110
|
this._emitCodePoint(this._consume());
|
|
17096
|
-
this.state =
|
|
17097
|
-
} else this._ensureHibernation() || (this.state =
|
|
17111
|
+
this.state = B.SCRIPT_DATA_DOUBLE_ESCAPED;
|
|
17112
|
+
} else this._ensureHibernation() || (this.state = B.SCRIPT_DATA_ESCAPED, this._stateScriptDataEscaped(t));
|
|
17098
17113
|
}
|
|
17099
17114
|
// Script data double escaped state
|
|
17100
17115
|
//------------------------------------------------------------------
|
|
17101
17116
|
_stateScriptDataDoubleEscaped(t) {
|
|
17102
17117
|
switch (t) {
|
|
17103
17118
|
case P.HYPHEN_MINUS: {
|
|
17104
|
-
this.state =
|
|
17119
|
+
this.state = B.SCRIPT_DATA_DOUBLE_ESCAPED_DASH, this._emitChars("-");
|
|
17105
17120
|
break;
|
|
17106
17121
|
}
|
|
17107
17122
|
case P.LESS_THAN_SIGN: {
|
|
17108
|
-
this.state =
|
|
17123
|
+
this.state = B.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN, this._emitChars("<");
|
|
17109
17124
|
break;
|
|
17110
17125
|
}
|
|
17111
17126
|
case P.NULL: {
|
|
@@ -17125,15 +17140,15 @@ class Iv {
|
|
|
17125
17140
|
_stateScriptDataDoubleEscapedDash(t) {
|
|
17126
17141
|
switch (t) {
|
|
17127
17142
|
case P.HYPHEN_MINUS: {
|
|
17128
|
-
this.state =
|
|
17143
|
+
this.state = B.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH, this._emitChars("-");
|
|
17129
17144
|
break;
|
|
17130
17145
|
}
|
|
17131
17146
|
case P.LESS_THAN_SIGN: {
|
|
17132
|
-
this.state =
|
|
17147
|
+
this.state = B.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN, this._emitChars("<");
|
|
17133
17148
|
break;
|
|
17134
17149
|
}
|
|
17135
17150
|
case P.NULL: {
|
|
17136
|
-
this._err(X.unexpectedNullCharacter), this.state =
|
|
17151
|
+
this._err(X.unexpectedNullCharacter), this.state = B.SCRIPT_DATA_DOUBLE_ESCAPED, this._emitChars(Re);
|
|
17137
17152
|
break;
|
|
17138
17153
|
}
|
|
17139
17154
|
case P.EOF: {
|
|
@@ -17141,7 +17156,7 @@ class Iv {
|
|
|
17141
17156
|
break;
|
|
17142
17157
|
}
|
|
17143
17158
|
default:
|
|
17144
|
-
this.state =
|
|
17159
|
+
this.state = B.SCRIPT_DATA_DOUBLE_ESCAPED, this._emitCodePoint(t);
|
|
17145
17160
|
}
|
|
17146
17161
|
}
|
|
17147
17162
|
// Script data double escaped dash dash state
|
|
@@ -17153,15 +17168,15 @@ class Iv {
|
|
|
17153
17168
|
break;
|
|
17154
17169
|
}
|
|
17155
17170
|
case P.LESS_THAN_SIGN: {
|
|
17156
|
-
this.state =
|
|
17171
|
+
this.state = B.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN, this._emitChars("<");
|
|
17157
17172
|
break;
|
|
17158
17173
|
}
|
|
17159
17174
|
case P.GREATER_THAN_SIGN: {
|
|
17160
|
-
this.state =
|
|
17175
|
+
this.state = B.SCRIPT_DATA, this._emitChars(">");
|
|
17161
17176
|
break;
|
|
17162
17177
|
}
|
|
17163
17178
|
case P.NULL: {
|
|
17164
|
-
this._err(X.unexpectedNullCharacter), this.state =
|
|
17179
|
+
this._err(X.unexpectedNullCharacter), this.state = B.SCRIPT_DATA_DOUBLE_ESCAPED, this._emitChars(Re);
|
|
17165
17180
|
break;
|
|
17166
17181
|
}
|
|
17167
17182
|
case P.EOF: {
|
|
@@ -17169,13 +17184,13 @@ class Iv {
|
|
|
17169
17184
|
break;
|
|
17170
17185
|
}
|
|
17171
17186
|
default:
|
|
17172
|
-
this.state =
|
|
17187
|
+
this.state = B.SCRIPT_DATA_DOUBLE_ESCAPED, this._emitCodePoint(t);
|
|
17173
17188
|
}
|
|
17174
17189
|
}
|
|
17175
17190
|
// Script data double escaped less-than sign state
|
|
17176
17191
|
//------------------------------------------------------------------
|
|
17177
17192
|
_stateScriptDataDoubleEscapedLessThanSign(t) {
|
|
17178
|
-
t === P.SOLIDUS ? (this.state =
|
|
17193
|
+
t === P.SOLIDUS ? (this.state = B.SCRIPT_DATA_DOUBLE_ESCAPE_END, this._emitChars("/")) : (this.state = B.SCRIPT_DATA_DOUBLE_ESCAPED, this._stateScriptDataDoubleEscaped(t));
|
|
17179
17194
|
}
|
|
17180
17195
|
// Script data double escape end state
|
|
17181
17196
|
//------------------------------------------------------------------
|
|
@@ -17184,8 +17199,8 @@ class Iv {
|
|
|
17184
17199
|
this._emitCodePoint(t);
|
|
17185
17200
|
for (let a = 0; a < et.SCRIPT.length; a++)
|
|
17186
17201
|
this._emitCodePoint(this._consume());
|
|
17187
|
-
this.state =
|
|
17188
|
-
} else this._ensureHibernation() || (this.state =
|
|
17202
|
+
this.state = B.SCRIPT_DATA_ESCAPED;
|
|
17203
|
+
} else this._ensureHibernation() || (this.state = B.SCRIPT_DATA_DOUBLE_ESCAPED, this._stateScriptDataDoubleEscaped(t));
|
|
17189
17204
|
}
|
|
17190
17205
|
// Before attribute name state
|
|
17191
17206
|
//------------------------------------------------------------------
|
|
@@ -17199,15 +17214,15 @@ class Iv {
|
|
|
17199
17214
|
case P.SOLIDUS:
|
|
17200
17215
|
case P.GREATER_THAN_SIGN:
|
|
17201
17216
|
case P.EOF: {
|
|
17202
|
-
this.state =
|
|
17217
|
+
this.state = B.AFTER_ATTRIBUTE_NAME, this._stateAfterAttributeName(t);
|
|
17203
17218
|
break;
|
|
17204
17219
|
}
|
|
17205
17220
|
case P.EQUALS_SIGN: {
|
|
17206
|
-
this._err(X.unexpectedEqualsSignBeforeAttributeName), this._createAttr("="), this.state =
|
|
17221
|
+
this._err(X.unexpectedEqualsSignBeforeAttributeName), this._createAttr("="), this.state = B.ATTRIBUTE_NAME;
|
|
17207
17222
|
break;
|
|
17208
17223
|
}
|
|
17209
17224
|
default:
|
|
17210
|
-
this._createAttr(""), this.state =
|
|
17225
|
+
this._createAttr(""), this.state = B.ATTRIBUTE_NAME, this._stateAttributeName(t);
|
|
17211
17226
|
}
|
|
17212
17227
|
}
|
|
17213
17228
|
// Attribute name state
|
|
@@ -17221,11 +17236,11 @@ class Iv {
|
|
|
17221
17236
|
case P.SOLIDUS:
|
|
17222
17237
|
case P.GREATER_THAN_SIGN:
|
|
17223
17238
|
case P.EOF: {
|
|
17224
|
-
this._leaveAttrName(), this.state =
|
|
17239
|
+
this._leaveAttrName(), this.state = B.AFTER_ATTRIBUTE_NAME, this._stateAfterAttributeName(t);
|
|
17225
17240
|
break;
|
|
17226
17241
|
}
|
|
17227
17242
|
case P.EQUALS_SIGN: {
|
|
17228
|
-
this._leaveAttrName(), this.state =
|
|
17243
|
+
this._leaveAttrName(), this.state = B.BEFORE_ATTRIBUTE_VALUE;
|
|
17229
17244
|
break;
|
|
17230
17245
|
}
|
|
17231
17246
|
case P.QUOTATION_MARK:
|
|
@@ -17252,15 +17267,15 @@ class Iv {
|
|
|
17252
17267
|
case P.FORM_FEED:
|
|
17253
17268
|
break;
|
|
17254
17269
|
case P.SOLIDUS: {
|
|
17255
|
-
this.state =
|
|
17270
|
+
this.state = B.SELF_CLOSING_START_TAG;
|
|
17256
17271
|
break;
|
|
17257
17272
|
}
|
|
17258
17273
|
case P.EQUALS_SIGN: {
|
|
17259
|
-
this.state =
|
|
17274
|
+
this.state = B.BEFORE_ATTRIBUTE_VALUE;
|
|
17260
17275
|
break;
|
|
17261
17276
|
}
|
|
17262
17277
|
case P.GREATER_THAN_SIGN: {
|
|
17263
|
-
this.state =
|
|
17278
|
+
this.state = B.DATA, this.emitCurrentTagToken();
|
|
17264
17279
|
break;
|
|
17265
17280
|
}
|
|
17266
17281
|
case P.EOF: {
|
|
@@ -17268,7 +17283,7 @@ class Iv {
|
|
|
17268
17283
|
break;
|
|
17269
17284
|
}
|
|
17270
17285
|
default:
|
|
17271
|
-
this._createAttr(""), this.state =
|
|
17286
|
+
this._createAttr(""), this.state = B.ATTRIBUTE_NAME, this._stateAttributeName(t);
|
|
17272
17287
|
}
|
|
17273
17288
|
}
|
|
17274
17289
|
// Before attribute value state
|
|
@@ -17281,19 +17296,19 @@ class Iv {
|
|
|
17281
17296
|
case P.FORM_FEED:
|
|
17282
17297
|
break;
|
|
17283
17298
|
case P.QUOTATION_MARK: {
|
|
17284
|
-
this.state =
|
|
17299
|
+
this.state = B.ATTRIBUTE_VALUE_DOUBLE_QUOTED;
|
|
17285
17300
|
break;
|
|
17286
17301
|
}
|
|
17287
17302
|
case P.APOSTROPHE: {
|
|
17288
|
-
this.state =
|
|
17303
|
+
this.state = B.ATTRIBUTE_VALUE_SINGLE_QUOTED;
|
|
17289
17304
|
break;
|
|
17290
17305
|
}
|
|
17291
17306
|
case P.GREATER_THAN_SIGN: {
|
|
17292
|
-
this._err(X.missingAttributeValue), this.state =
|
|
17307
|
+
this._err(X.missingAttributeValue), this.state = B.DATA, this.emitCurrentTagToken();
|
|
17293
17308
|
break;
|
|
17294
17309
|
}
|
|
17295
17310
|
default:
|
|
17296
|
-
this.state =
|
|
17311
|
+
this.state = B.ATTRIBUTE_VALUE_UNQUOTED, this._stateAttributeValueUnquoted(t);
|
|
17297
17312
|
}
|
|
17298
17313
|
}
|
|
17299
17314
|
// Attribute value (double-quoted) state
|
|
@@ -17301,7 +17316,7 @@ class Iv {
|
|
|
17301
17316
|
_stateAttributeValueDoubleQuoted(t) {
|
|
17302
17317
|
switch (t) {
|
|
17303
17318
|
case P.QUOTATION_MARK: {
|
|
17304
|
-
this.state =
|
|
17319
|
+
this.state = B.AFTER_ATTRIBUTE_VALUE_QUOTED;
|
|
17305
17320
|
break;
|
|
17306
17321
|
}
|
|
17307
17322
|
case P.AMPERSAND: {
|
|
@@ -17325,7 +17340,7 @@ class Iv {
|
|
|
17325
17340
|
_stateAttributeValueSingleQuoted(t) {
|
|
17326
17341
|
switch (t) {
|
|
17327
17342
|
case P.APOSTROPHE: {
|
|
17328
|
-
this.state =
|
|
17343
|
+
this.state = B.AFTER_ATTRIBUTE_VALUE_QUOTED;
|
|
17329
17344
|
break;
|
|
17330
17345
|
}
|
|
17331
17346
|
case P.AMPERSAND: {
|
|
@@ -17352,7 +17367,7 @@ class Iv {
|
|
|
17352
17367
|
case P.LINE_FEED:
|
|
17353
17368
|
case P.TABULATION:
|
|
17354
17369
|
case P.FORM_FEED: {
|
|
17355
|
-
this._leaveAttrValue(), this.state =
|
|
17370
|
+
this._leaveAttrValue(), this.state = B.BEFORE_ATTRIBUTE_NAME;
|
|
17356
17371
|
break;
|
|
17357
17372
|
}
|
|
17358
17373
|
case P.AMPERSAND: {
|
|
@@ -17360,7 +17375,7 @@ class Iv {
|
|
|
17360
17375
|
break;
|
|
17361
17376
|
}
|
|
17362
17377
|
case P.GREATER_THAN_SIGN: {
|
|
17363
|
-
this._leaveAttrValue(), this.state =
|
|
17378
|
+
this._leaveAttrValue(), this.state = B.DATA, this.emitCurrentTagToken();
|
|
17364
17379
|
break;
|
|
17365
17380
|
}
|
|
17366
17381
|
case P.NULL: {
|
|
@@ -17391,15 +17406,15 @@ class Iv {
|
|
|
17391
17406
|
case P.LINE_FEED:
|
|
17392
17407
|
case P.TABULATION:
|
|
17393
17408
|
case P.FORM_FEED: {
|
|
17394
|
-
this._leaveAttrValue(), this.state =
|
|
17409
|
+
this._leaveAttrValue(), this.state = B.BEFORE_ATTRIBUTE_NAME;
|
|
17395
17410
|
break;
|
|
17396
17411
|
}
|
|
17397
17412
|
case P.SOLIDUS: {
|
|
17398
|
-
this._leaveAttrValue(), this.state =
|
|
17413
|
+
this._leaveAttrValue(), this.state = B.SELF_CLOSING_START_TAG;
|
|
17399
17414
|
break;
|
|
17400
17415
|
}
|
|
17401
17416
|
case P.GREATER_THAN_SIGN: {
|
|
17402
|
-
this._leaveAttrValue(), this.state =
|
|
17417
|
+
this._leaveAttrValue(), this.state = B.DATA, this.emitCurrentTagToken();
|
|
17403
17418
|
break;
|
|
17404
17419
|
}
|
|
17405
17420
|
case P.EOF: {
|
|
@@ -17407,7 +17422,7 @@ class Iv {
|
|
|
17407
17422
|
break;
|
|
17408
17423
|
}
|
|
17409
17424
|
default:
|
|
17410
|
-
this._err(X.missingWhitespaceBetweenAttributes), this.state =
|
|
17425
|
+
this._err(X.missingWhitespaceBetweenAttributes), this.state = B.BEFORE_ATTRIBUTE_NAME, this._stateBeforeAttributeName(t);
|
|
17411
17426
|
}
|
|
17412
17427
|
}
|
|
17413
17428
|
// Self-closing start tag state
|
|
@@ -17416,7 +17431,7 @@ class Iv {
|
|
|
17416
17431
|
switch (t) {
|
|
17417
17432
|
case P.GREATER_THAN_SIGN: {
|
|
17418
17433
|
const a = this.currentToken;
|
|
17419
|
-
a.selfClosing = !0, this.state =
|
|
17434
|
+
a.selfClosing = !0, this.state = B.DATA, this.emitCurrentTagToken();
|
|
17420
17435
|
break;
|
|
17421
17436
|
}
|
|
17422
17437
|
case P.EOF: {
|
|
@@ -17424,7 +17439,7 @@ class Iv {
|
|
|
17424
17439
|
break;
|
|
17425
17440
|
}
|
|
17426
17441
|
default:
|
|
17427
|
-
this._err(X.unexpectedSolidusInTag), this.state =
|
|
17442
|
+
this._err(X.unexpectedSolidusInTag), this.state = B.BEFORE_ATTRIBUTE_NAME, this._stateBeforeAttributeName(t);
|
|
17428
17443
|
}
|
|
17429
17444
|
}
|
|
17430
17445
|
// Bogus comment state
|
|
@@ -17433,7 +17448,7 @@ class Iv {
|
|
|
17433
17448
|
const a = this.currentToken;
|
|
17434
17449
|
switch (t) {
|
|
17435
17450
|
case P.GREATER_THAN_SIGN: {
|
|
17436
|
-
this.state =
|
|
17451
|
+
this.state = B.DATA, this.emitCurrentComment(a);
|
|
17437
17452
|
break;
|
|
17438
17453
|
}
|
|
17439
17454
|
case P.EOF: {
|
|
@@ -17451,24 +17466,24 @@ class Iv {
|
|
|
17451
17466
|
// Markup declaration open state
|
|
17452
17467
|
//------------------------------------------------------------------
|
|
17453
17468
|
_stateMarkupDeclarationOpen(t) {
|
|
17454
|
-
this._consumeSequenceIfMatch(et.DASH_DASH, !0) ? (this._createCommentToken(et.DASH_DASH.length + 1), this.state =
|
|
17469
|
+
this._consumeSequenceIfMatch(et.DASH_DASH, !0) ? (this._createCommentToken(et.DASH_DASH.length + 1), this.state = B.COMMENT_START) : this._consumeSequenceIfMatch(et.DOCTYPE, !1) ? (this.currentLocation = this.getCurrentLocation(et.DOCTYPE.length + 1), this.state = B.DOCTYPE) : this._consumeSequenceIfMatch(et.CDATA_START, !0) ? this.inForeignNode ? this.state = B.CDATA_SECTION : (this._err(X.cdataInHtmlContent), this._createCommentToken(et.CDATA_START.length + 1), this.currentToken.data = "[CDATA[", this.state = B.BOGUS_COMMENT) : this._ensureHibernation() || (this._err(X.incorrectlyOpenedComment), this._createCommentToken(2), this.state = B.BOGUS_COMMENT, this._stateBogusComment(t));
|
|
17455
17470
|
}
|
|
17456
17471
|
// Comment start state
|
|
17457
17472
|
//------------------------------------------------------------------
|
|
17458
17473
|
_stateCommentStart(t) {
|
|
17459
17474
|
switch (t) {
|
|
17460
17475
|
case P.HYPHEN_MINUS: {
|
|
17461
|
-
this.state =
|
|
17476
|
+
this.state = B.COMMENT_START_DASH;
|
|
17462
17477
|
break;
|
|
17463
17478
|
}
|
|
17464
17479
|
case P.GREATER_THAN_SIGN: {
|
|
17465
|
-
this._err(X.abruptClosingOfEmptyComment), this.state =
|
|
17480
|
+
this._err(X.abruptClosingOfEmptyComment), this.state = B.DATA;
|
|
17466
17481
|
const a = this.currentToken;
|
|
17467
17482
|
this.emitCurrentComment(a);
|
|
17468
17483
|
break;
|
|
17469
17484
|
}
|
|
17470
17485
|
default:
|
|
17471
|
-
this.state =
|
|
17486
|
+
this.state = B.COMMENT, this._stateComment(t);
|
|
17472
17487
|
}
|
|
17473
17488
|
}
|
|
17474
17489
|
// Comment start dash state
|
|
@@ -17477,11 +17492,11 @@ class Iv {
|
|
|
17477
17492
|
const a = this.currentToken;
|
|
17478
17493
|
switch (t) {
|
|
17479
17494
|
case P.HYPHEN_MINUS: {
|
|
17480
|
-
this.state =
|
|
17495
|
+
this.state = B.COMMENT_END;
|
|
17481
17496
|
break;
|
|
17482
17497
|
}
|
|
17483
17498
|
case P.GREATER_THAN_SIGN: {
|
|
17484
|
-
this._err(X.abruptClosingOfEmptyComment), this.state =
|
|
17499
|
+
this._err(X.abruptClosingOfEmptyComment), this.state = B.DATA, this.emitCurrentComment(a);
|
|
17485
17500
|
break;
|
|
17486
17501
|
}
|
|
17487
17502
|
case P.EOF: {
|
|
@@ -17489,7 +17504,7 @@ class Iv {
|
|
|
17489
17504
|
break;
|
|
17490
17505
|
}
|
|
17491
17506
|
default:
|
|
17492
|
-
a.data += "-", this.state =
|
|
17507
|
+
a.data += "-", this.state = B.COMMENT, this._stateComment(t);
|
|
17493
17508
|
}
|
|
17494
17509
|
}
|
|
17495
17510
|
// Comment state
|
|
@@ -17498,11 +17513,11 @@ class Iv {
|
|
|
17498
17513
|
const a = this.currentToken;
|
|
17499
17514
|
switch (t) {
|
|
17500
17515
|
case P.HYPHEN_MINUS: {
|
|
17501
|
-
this.state =
|
|
17516
|
+
this.state = B.COMMENT_END_DASH;
|
|
17502
17517
|
break;
|
|
17503
17518
|
}
|
|
17504
17519
|
case P.LESS_THAN_SIGN: {
|
|
17505
|
-
a.data += "<", this.state =
|
|
17520
|
+
a.data += "<", this.state = B.COMMENT_LESS_THAN_SIGN;
|
|
17506
17521
|
break;
|
|
17507
17522
|
}
|
|
17508
17523
|
case P.NULL: {
|
|
@@ -17523,7 +17538,7 @@ class Iv {
|
|
|
17523
17538
|
const a = this.currentToken;
|
|
17524
17539
|
switch (t) {
|
|
17525
17540
|
case P.EXCLAMATION_MARK: {
|
|
17526
|
-
a.data += "!", this.state =
|
|
17541
|
+
a.data += "!", this.state = B.COMMENT_LESS_THAN_SIGN_BANG;
|
|
17527
17542
|
break;
|
|
17528
17543
|
}
|
|
17529
17544
|
case P.LESS_THAN_SIGN: {
|
|
@@ -17531,23 +17546,23 @@ class Iv {
|
|
|
17531
17546
|
break;
|
|
17532
17547
|
}
|
|
17533
17548
|
default:
|
|
17534
|
-
this.state =
|
|
17549
|
+
this.state = B.COMMENT, this._stateComment(t);
|
|
17535
17550
|
}
|
|
17536
17551
|
}
|
|
17537
17552
|
// Comment less-than sign bang state
|
|
17538
17553
|
//------------------------------------------------------------------
|
|
17539
17554
|
_stateCommentLessThanSignBang(t) {
|
|
17540
|
-
t === P.HYPHEN_MINUS ? this.state =
|
|
17555
|
+
t === P.HYPHEN_MINUS ? this.state = B.COMMENT_LESS_THAN_SIGN_BANG_DASH : (this.state = B.COMMENT, this._stateComment(t));
|
|
17541
17556
|
}
|
|
17542
17557
|
// Comment less-than sign bang dash state
|
|
17543
17558
|
//------------------------------------------------------------------
|
|
17544
17559
|
_stateCommentLessThanSignBangDash(t) {
|
|
17545
|
-
t === P.HYPHEN_MINUS ? this.state =
|
|
17560
|
+
t === P.HYPHEN_MINUS ? this.state = B.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH : (this.state = B.COMMENT_END_DASH, this._stateCommentEndDash(t));
|
|
17546
17561
|
}
|
|
17547
17562
|
// Comment less-than sign bang dash dash state
|
|
17548
17563
|
//------------------------------------------------------------------
|
|
17549
17564
|
_stateCommentLessThanSignBangDashDash(t) {
|
|
17550
|
-
t !== P.GREATER_THAN_SIGN && t !== P.EOF && this._err(X.nestedComment), this.state =
|
|
17565
|
+
t !== P.GREATER_THAN_SIGN && t !== P.EOF && this._err(X.nestedComment), this.state = B.COMMENT_END, this._stateCommentEnd(t);
|
|
17551
17566
|
}
|
|
17552
17567
|
// Comment end dash state
|
|
17553
17568
|
//------------------------------------------------------------------
|
|
@@ -17555,7 +17570,7 @@ class Iv {
|
|
|
17555
17570
|
const a = this.currentToken;
|
|
17556
17571
|
switch (t) {
|
|
17557
17572
|
case P.HYPHEN_MINUS: {
|
|
17558
|
-
this.state =
|
|
17573
|
+
this.state = B.COMMENT_END;
|
|
17559
17574
|
break;
|
|
17560
17575
|
}
|
|
17561
17576
|
case P.EOF: {
|
|
@@ -17563,7 +17578,7 @@ class Iv {
|
|
|
17563
17578
|
break;
|
|
17564
17579
|
}
|
|
17565
17580
|
default:
|
|
17566
|
-
a.data += "-", this.state =
|
|
17581
|
+
a.data += "-", this.state = B.COMMENT, this._stateComment(t);
|
|
17567
17582
|
}
|
|
17568
17583
|
}
|
|
17569
17584
|
// Comment end state
|
|
@@ -17572,11 +17587,11 @@ class Iv {
|
|
|
17572
17587
|
const a = this.currentToken;
|
|
17573
17588
|
switch (t) {
|
|
17574
17589
|
case P.GREATER_THAN_SIGN: {
|
|
17575
|
-
this.state =
|
|
17590
|
+
this.state = B.DATA, this.emitCurrentComment(a);
|
|
17576
17591
|
break;
|
|
17577
17592
|
}
|
|
17578
17593
|
case P.EXCLAMATION_MARK: {
|
|
17579
|
-
this.state =
|
|
17594
|
+
this.state = B.COMMENT_END_BANG;
|
|
17580
17595
|
break;
|
|
17581
17596
|
}
|
|
17582
17597
|
case P.HYPHEN_MINUS: {
|
|
@@ -17588,7 +17603,7 @@ class Iv {
|
|
|
17588
17603
|
break;
|
|
17589
17604
|
}
|
|
17590
17605
|
default:
|
|
17591
|
-
a.data += "--", this.state =
|
|
17606
|
+
a.data += "--", this.state = B.COMMENT, this._stateComment(t);
|
|
17592
17607
|
}
|
|
17593
17608
|
}
|
|
17594
17609
|
// Comment end bang state
|
|
@@ -17597,11 +17612,11 @@ class Iv {
|
|
|
17597
17612
|
const a = this.currentToken;
|
|
17598
17613
|
switch (t) {
|
|
17599
17614
|
case P.HYPHEN_MINUS: {
|
|
17600
|
-
a.data += "--!", this.state =
|
|
17615
|
+
a.data += "--!", this.state = B.COMMENT_END_DASH;
|
|
17601
17616
|
break;
|
|
17602
17617
|
}
|
|
17603
17618
|
case P.GREATER_THAN_SIGN: {
|
|
17604
|
-
this._err(X.incorrectlyClosedComment), this.state =
|
|
17619
|
+
this._err(X.incorrectlyClosedComment), this.state = B.DATA, this.emitCurrentComment(a);
|
|
17605
17620
|
break;
|
|
17606
17621
|
}
|
|
17607
17622
|
case P.EOF: {
|
|
@@ -17609,7 +17624,7 @@ class Iv {
|
|
|
17609
17624
|
break;
|
|
17610
17625
|
}
|
|
17611
17626
|
default:
|
|
17612
|
-
a.data += "--!", this.state =
|
|
17627
|
+
a.data += "--!", this.state = B.COMMENT, this._stateComment(t);
|
|
17613
17628
|
}
|
|
17614
17629
|
}
|
|
17615
17630
|
// DOCTYPE state
|
|
@@ -17620,11 +17635,11 @@ class Iv {
|
|
|
17620
17635
|
case P.LINE_FEED:
|
|
17621
17636
|
case P.TABULATION:
|
|
17622
17637
|
case P.FORM_FEED: {
|
|
17623
|
-
this.state =
|
|
17638
|
+
this.state = B.BEFORE_DOCTYPE_NAME;
|
|
17624
17639
|
break;
|
|
17625
17640
|
}
|
|
17626
17641
|
case P.GREATER_THAN_SIGN: {
|
|
17627
|
-
this.state =
|
|
17642
|
+
this.state = B.BEFORE_DOCTYPE_NAME, this._stateBeforeDoctypeName(t);
|
|
17628
17643
|
break;
|
|
17629
17644
|
}
|
|
17630
17645
|
case P.EOF: {
|
|
@@ -17634,14 +17649,14 @@ class Iv {
|
|
|
17634
17649
|
break;
|
|
17635
17650
|
}
|
|
17636
17651
|
default:
|
|
17637
|
-
this._err(X.missingWhitespaceBeforeDoctypeName), this.state =
|
|
17652
|
+
this._err(X.missingWhitespaceBeforeDoctypeName), this.state = B.BEFORE_DOCTYPE_NAME, this._stateBeforeDoctypeName(t);
|
|
17638
17653
|
}
|
|
17639
17654
|
}
|
|
17640
17655
|
// Before DOCTYPE name state
|
|
17641
17656
|
//------------------------------------------------------------------
|
|
17642
17657
|
_stateBeforeDoctypeName(t) {
|
|
17643
17658
|
if (Ma(t))
|
|
17644
|
-
this._createDoctypeToken(String.fromCharCode(Tl(t))), this.state =
|
|
17659
|
+
this._createDoctypeToken(String.fromCharCode(Tl(t))), this.state = B.DOCTYPE_NAME;
|
|
17645
17660
|
else
|
|
17646
17661
|
switch (t) {
|
|
17647
17662
|
case P.SPACE:
|
|
@@ -17650,13 +17665,13 @@ class Iv {
|
|
|
17650
17665
|
case P.FORM_FEED:
|
|
17651
17666
|
break;
|
|
17652
17667
|
case P.NULL: {
|
|
17653
|
-
this._err(X.unexpectedNullCharacter), this._createDoctypeToken(Re), this.state =
|
|
17668
|
+
this._err(X.unexpectedNullCharacter), this._createDoctypeToken(Re), this.state = B.DOCTYPE_NAME;
|
|
17654
17669
|
break;
|
|
17655
17670
|
}
|
|
17656
17671
|
case P.GREATER_THAN_SIGN: {
|
|
17657
17672
|
this._err(X.missingDoctypeName), this._createDoctypeToken(null);
|
|
17658
17673
|
const a = this.currentToken;
|
|
17659
|
-
a.forceQuirks = !0, this.emitCurrentDoctype(a), this.state =
|
|
17674
|
+
a.forceQuirks = !0, this.emitCurrentDoctype(a), this.state = B.DATA;
|
|
17660
17675
|
break;
|
|
17661
17676
|
}
|
|
17662
17677
|
case P.EOF: {
|
|
@@ -17666,7 +17681,7 @@ class Iv {
|
|
|
17666
17681
|
break;
|
|
17667
17682
|
}
|
|
17668
17683
|
default:
|
|
17669
|
-
this._createDoctypeToken(String.fromCodePoint(t)), this.state =
|
|
17684
|
+
this._createDoctypeToken(String.fromCodePoint(t)), this.state = B.DOCTYPE_NAME;
|
|
17670
17685
|
}
|
|
17671
17686
|
}
|
|
17672
17687
|
// DOCTYPE name state
|
|
@@ -17678,11 +17693,11 @@ class Iv {
|
|
|
17678
17693
|
case P.LINE_FEED:
|
|
17679
17694
|
case P.TABULATION:
|
|
17680
17695
|
case P.FORM_FEED: {
|
|
17681
|
-
this.state =
|
|
17696
|
+
this.state = B.AFTER_DOCTYPE_NAME;
|
|
17682
17697
|
break;
|
|
17683
17698
|
}
|
|
17684
17699
|
case P.GREATER_THAN_SIGN: {
|
|
17685
|
-
this.state =
|
|
17700
|
+
this.state = B.DATA, this.emitCurrentDoctype(a);
|
|
17686
17701
|
break;
|
|
17687
17702
|
}
|
|
17688
17703
|
case P.NULL: {
|
|
@@ -17708,7 +17723,7 @@ class Iv {
|
|
|
17708
17723
|
case P.FORM_FEED:
|
|
17709
17724
|
break;
|
|
17710
17725
|
case P.GREATER_THAN_SIGN: {
|
|
17711
|
-
this.state =
|
|
17726
|
+
this.state = B.DATA, this.emitCurrentDoctype(a);
|
|
17712
17727
|
break;
|
|
17713
17728
|
}
|
|
17714
17729
|
case P.EOF: {
|
|
@@ -17716,7 +17731,7 @@ class Iv {
|
|
|
17716
17731
|
break;
|
|
17717
17732
|
}
|
|
17718
17733
|
default:
|
|
17719
|
-
this._consumeSequenceIfMatch(et.PUBLIC, !1) ? this.state =
|
|
17734
|
+
this._consumeSequenceIfMatch(et.PUBLIC, !1) ? this.state = B.AFTER_DOCTYPE_PUBLIC_KEYWORD : this._consumeSequenceIfMatch(et.SYSTEM, !1) ? this.state = B.AFTER_DOCTYPE_SYSTEM_KEYWORD : this._ensureHibernation() || (this._err(X.invalidCharacterSequenceAfterDoctypeName), a.forceQuirks = !0, this.state = B.BOGUS_DOCTYPE, this._stateBogusDoctype(t));
|
|
17720
17735
|
}
|
|
17721
17736
|
}
|
|
17722
17737
|
// After DOCTYPE public keyword state
|
|
@@ -17728,19 +17743,19 @@ class Iv {
|
|
|
17728
17743
|
case P.LINE_FEED:
|
|
17729
17744
|
case P.TABULATION:
|
|
17730
17745
|
case P.FORM_FEED: {
|
|
17731
|
-
this.state =
|
|
17746
|
+
this.state = B.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER;
|
|
17732
17747
|
break;
|
|
17733
17748
|
}
|
|
17734
17749
|
case P.QUOTATION_MARK: {
|
|
17735
|
-
this._err(X.missingWhitespaceAfterDoctypePublicKeyword), a.publicId = "", this.state =
|
|
17750
|
+
this._err(X.missingWhitespaceAfterDoctypePublicKeyword), a.publicId = "", this.state = B.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;
|
|
17736
17751
|
break;
|
|
17737
17752
|
}
|
|
17738
17753
|
case P.APOSTROPHE: {
|
|
17739
|
-
this._err(X.missingWhitespaceAfterDoctypePublicKeyword), a.publicId = "", this.state =
|
|
17754
|
+
this._err(X.missingWhitespaceAfterDoctypePublicKeyword), a.publicId = "", this.state = B.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;
|
|
17740
17755
|
break;
|
|
17741
17756
|
}
|
|
17742
17757
|
case P.GREATER_THAN_SIGN: {
|
|
17743
|
-
this._err(X.missingDoctypePublicIdentifier), a.forceQuirks = !0, this.state =
|
|
17758
|
+
this._err(X.missingDoctypePublicIdentifier), a.forceQuirks = !0, this.state = B.DATA, this.emitCurrentDoctype(a);
|
|
17744
17759
|
break;
|
|
17745
17760
|
}
|
|
17746
17761
|
case P.EOF: {
|
|
@@ -17748,7 +17763,7 @@ class Iv {
|
|
|
17748
17763
|
break;
|
|
17749
17764
|
}
|
|
17750
17765
|
default:
|
|
17751
|
-
this._err(X.missingQuoteBeforeDoctypePublicIdentifier), a.forceQuirks = !0, this.state =
|
|
17766
|
+
this._err(X.missingQuoteBeforeDoctypePublicIdentifier), a.forceQuirks = !0, this.state = B.BOGUS_DOCTYPE, this._stateBogusDoctype(t);
|
|
17752
17767
|
}
|
|
17753
17768
|
}
|
|
17754
17769
|
// Before DOCTYPE public identifier state
|
|
@@ -17762,15 +17777,15 @@ class Iv {
|
|
|
17762
17777
|
case P.FORM_FEED:
|
|
17763
17778
|
break;
|
|
17764
17779
|
case P.QUOTATION_MARK: {
|
|
17765
|
-
a.publicId = "", this.state =
|
|
17780
|
+
a.publicId = "", this.state = B.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;
|
|
17766
17781
|
break;
|
|
17767
17782
|
}
|
|
17768
17783
|
case P.APOSTROPHE: {
|
|
17769
|
-
a.publicId = "", this.state =
|
|
17784
|
+
a.publicId = "", this.state = B.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;
|
|
17770
17785
|
break;
|
|
17771
17786
|
}
|
|
17772
17787
|
case P.GREATER_THAN_SIGN: {
|
|
17773
|
-
this._err(X.missingDoctypePublicIdentifier), a.forceQuirks = !0, this.state =
|
|
17788
|
+
this._err(X.missingDoctypePublicIdentifier), a.forceQuirks = !0, this.state = B.DATA, this.emitCurrentDoctype(a);
|
|
17774
17789
|
break;
|
|
17775
17790
|
}
|
|
17776
17791
|
case P.EOF: {
|
|
@@ -17778,7 +17793,7 @@ class Iv {
|
|
|
17778
17793
|
break;
|
|
17779
17794
|
}
|
|
17780
17795
|
default:
|
|
17781
|
-
this._err(X.missingQuoteBeforeDoctypePublicIdentifier), a.forceQuirks = !0, this.state =
|
|
17796
|
+
this._err(X.missingQuoteBeforeDoctypePublicIdentifier), a.forceQuirks = !0, this.state = B.BOGUS_DOCTYPE, this._stateBogusDoctype(t);
|
|
17782
17797
|
}
|
|
17783
17798
|
}
|
|
17784
17799
|
// DOCTYPE public identifier (double-quoted) state
|
|
@@ -17787,7 +17802,7 @@ class Iv {
|
|
|
17787
17802
|
const a = this.currentToken;
|
|
17788
17803
|
switch (t) {
|
|
17789
17804
|
case P.QUOTATION_MARK: {
|
|
17790
|
-
this.state =
|
|
17805
|
+
this.state = B.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;
|
|
17791
17806
|
break;
|
|
17792
17807
|
}
|
|
17793
17808
|
case P.NULL: {
|
|
@@ -17795,7 +17810,7 @@ class Iv {
|
|
|
17795
17810
|
break;
|
|
17796
17811
|
}
|
|
17797
17812
|
case P.GREATER_THAN_SIGN: {
|
|
17798
|
-
this._err(X.abruptDoctypePublicIdentifier), a.forceQuirks = !0, this.emitCurrentDoctype(a), this.state =
|
|
17813
|
+
this._err(X.abruptDoctypePublicIdentifier), a.forceQuirks = !0, this.emitCurrentDoctype(a), this.state = B.DATA;
|
|
17799
17814
|
break;
|
|
17800
17815
|
}
|
|
17801
17816
|
case P.EOF: {
|
|
@@ -17812,7 +17827,7 @@ class Iv {
|
|
|
17812
17827
|
const a = this.currentToken;
|
|
17813
17828
|
switch (t) {
|
|
17814
17829
|
case P.APOSTROPHE: {
|
|
17815
|
-
this.state =
|
|
17830
|
+
this.state = B.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;
|
|
17816
17831
|
break;
|
|
17817
17832
|
}
|
|
17818
17833
|
case P.NULL: {
|
|
@@ -17820,7 +17835,7 @@ class Iv {
|
|
|
17820
17835
|
break;
|
|
17821
17836
|
}
|
|
17822
17837
|
case P.GREATER_THAN_SIGN: {
|
|
17823
|
-
this._err(X.abruptDoctypePublicIdentifier), a.forceQuirks = !0, this.emitCurrentDoctype(a), this.state =
|
|
17838
|
+
this._err(X.abruptDoctypePublicIdentifier), a.forceQuirks = !0, this.emitCurrentDoctype(a), this.state = B.DATA;
|
|
17824
17839
|
break;
|
|
17825
17840
|
}
|
|
17826
17841
|
case P.EOF: {
|
|
@@ -17840,19 +17855,19 @@ class Iv {
|
|
|
17840
17855
|
case P.LINE_FEED:
|
|
17841
17856
|
case P.TABULATION:
|
|
17842
17857
|
case P.FORM_FEED: {
|
|
17843
|
-
this.state =
|
|
17858
|
+
this.state = B.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS;
|
|
17844
17859
|
break;
|
|
17845
17860
|
}
|
|
17846
17861
|
case P.GREATER_THAN_SIGN: {
|
|
17847
|
-
this.state =
|
|
17862
|
+
this.state = B.DATA, this.emitCurrentDoctype(a);
|
|
17848
17863
|
break;
|
|
17849
17864
|
}
|
|
17850
17865
|
case P.QUOTATION_MARK: {
|
|
17851
|
-
this._err(X.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers), a.systemId = "", this.state =
|
|
17866
|
+
this._err(X.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers), a.systemId = "", this.state = B.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;
|
|
17852
17867
|
break;
|
|
17853
17868
|
}
|
|
17854
17869
|
case P.APOSTROPHE: {
|
|
17855
|
-
this._err(X.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers), a.systemId = "", this.state =
|
|
17870
|
+
this._err(X.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers), a.systemId = "", this.state = B.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;
|
|
17856
17871
|
break;
|
|
17857
17872
|
}
|
|
17858
17873
|
case P.EOF: {
|
|
@@ -17860,7 +17875,7 @@ class Iv {
|
|
|
17860
17875
|
break;
|
|
17861
17876
|
}
|
|
17862
17877
|
default:
|
|
17863
|
-
this._err(X.missingQuoteBeforeDoctypeSystemIdentifier), a.forceQuirks = !0, this.state =
|
|
17878
|
+
this._err(X.missingQuoteBeforeDoctypeSystemIdentifier), a.forceQuirks = !0, this.state = B.BOGUS_DOCTYPE, this._stateBogusDoctype(t);
|
|
17864
17879
|
}
|
|
17865
17880
|
}
|
|
17866
17881
|
// Between DOCTYPE public and system identifiers state
|
|
@@ -17874,15 +17889,15 @@ class Iv {
|
|
|
17874
17889
|
case P.FORM_FEED:
|
|
17875
17890
|
break;
|
|
17876
17891
|
case P.GREATER_THAN_SIGN: {
|
|
17877
|
-
this.emitCurrentDoctype(a), this.state =
|
|
17892
|
+
this.emitCurrentDoctype(a), this.state = B.DATA;
|
|
17878
17893
|
break;
|
|
17879
17894
|
}
|
|
17880
17895
|
case P.QUOTATION_MARK: {
|
|
17881
|
-
a.systemId = "", this.state =
|
|
17896
|
+
a.systemId = "", this.state = B.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;
|
|
17882
17897
|
break;
|
|
17883
17898
|
}
|
|
17884
17899
|
case P.APOSTROPHE: {
|
|
17885
|
-
a.systemId = "", this.state =
|
|
17900
|
+
a.systemId = "", this.state = B.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;
|
|
17886
17901
|
break;
|
|
17887
17902
|
}
|
|
17888
17903
|
case P.EOF: {
|
|
@@ -17890,7 +17905,7 @@ class Iv {
|
|
|
17890
17905
|
break;
|
|
17891
17906
|
}
|
|
17892
17907
|
default:
|
|
17893
|
-
this._err(X.missingQuoteBeforeDoctypeSystemIdentifier), a.forceQuirks = !0, this.state =
|
|
17908
|
+
this._err(X.missingQuoteBeforeDoctypeSystemIdentifier), a.forceQuirks = !0, this.state = B.BOGUS_DOCTYPE, this._stateBogusDoctype(t);
|
|
17894
17909
|
}
|
|
17895
17910
|
}
|
|
17896
17911
|
// After DOCTYPE system keyword state
|
|
@@ -17902,19 +17917,19 @@ class Iv {
|
|
|
17902
17917
|
case P.LINE_FEED:
|
|
17903
17918
|
case P.TABULATION:
|
|
17904
17919
|
case P.FORM_FEED: {
|
|
17905
|
-
this.state =
|
|
17920
|
+
this.state = B.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER;
|
|
17906
17921
|
break;
|
|
17907
17922
|
}
|
|
17908
17923
|
case P.QUOTATION_MARK: {
|
|
17909
|
-
this._err(X.missingWhitespaceAfterDoctypeSystemKeyword), a.systemId = "", this.state =
|
|
17924
|
+
this._err(X.missingWhitespaceAfterDoctypeSystemKeyword), a.systemId = "", this.state = B.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;
|
|
17910
17925
|
break;
|
|
17911
17926
|
}
|
|
17912
17927
|
case P.APOSTROPHE: {
|
|
17913
|
-
this._err(X.missingWhitespaceAfterDoctypeSystemKeyword), a.systemId = "", this.state =
|
|
17928
|
+
this._err(X.missingWhitespaceAfterDoctypeSystemKeyword), a.systemId = "", this.state = B.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;
|
|
17914
17929
|
break;
|
|
17915
17930
|
}
|
|
17916
17931
|
case P.GREATER_THAN_SIGN: {
|
|
17917
|
-
this._err(X.missingDoctypeSystemIdentifier), a.forceQuirks = !0, this.state =
|
|
17932
|
+
this._err(X.missingDoctypeSystemIdentifier), a.forceQuirks = !0, this.state = B.DATA, this.emitCurrentDoctype(a);
|
|
17918
17933
|
break;
|
|
17919
17934
|
}
|
|
17920
17935
|
case P.EOF: {
|
|
@@ -17922,7 +17937,7 @@ class Iv {
|
|
|
17922
17937
|
break;
|
|
17923
17938
|
}
|
|
17924
17939
|
default:
|
|
17925
|
-
this._err(X.missingQuoteBeforeDoctypeSystemIdentifier), a.forceQuirks = !0, this.state =
|
|
17940
|
+
this._err(X.missingQuoteBeforeDoctypeSystemIdentifier), a.forceQuirks = !0, this.state = B.BOGUS_DOCTYPE, this._stateBogusDoctype(t);
|
|
17926
17941
|
}
|
|
17927
17942
|
}
|
|
17928
17943
|
// Before DOCTYPE system identifier state
|
|
@@ -17936,15 +17951,15 @@ class Iv {
|
|
|
17936
17951
|
case P.FORM_FEED:
|
|
17937
17952
|
break;
|
|
17938
17953
|
case P.QUOTATION_MARK: {
|
|
17939
|
-
a.systemId = "", this.state =
|
|
17954
|
+
a.systemId = "", this.state = B.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;
|
|
17940
17955
|
break;
|
|
17941
17956
|
}
|
|
17942
17957
|
case P.APOSTROPHE: {
|
|
17943
|
-
a.systemId = "", this.state =
|
|
17958
|
+
a.systemId = "", this.state = B.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;
|
|
17944
17959
|
break;
|
|
17945
17960
|
}
|
|
17946
17961
|
case P.GREATER_THAN_SIGN: {
|
|
17947
|
-
this._err(X.missingDoctypeSystemIdentifier), a.forceQuirks = !0, this.state =
|
|
17962
|
+
this._err(X.missingDoctypeSystemIdentifier), a.forceQuirks = !0, this.state = B.DATA, this.emitCurrentDoctype(a);
|
|
17948
17963
|
break;
|
|
17949
17964
|
}
|
|
17950
17965
|
case P.EOF: {
|
|
@@ -17952,7 +17967,7 @@ class Iv {
|
|
|
17952
17967
|
break;
|
|
17953
17968
|
}
|
|
17954
17969
|
default:
|
|
17955
|
-
this._err(X.missingQuoteBeforeDoctypeSystemIdentifier), a.forceQuirks = !0, this.state =
|
|
17970
|
+
this._err(X.missingQuoteBeforeDoctypeSystemIdentifier), a.forceQuirks = !0, this.state = B.BOGUS_DOCTYPE, this._stateBogusDoctype(t);
|
|
17956
17971
|
}
|
|
17957
17972
|
}
|
|
17958
17973
|
// DOCTYPE system identifier (double-quoted) state
|
|
@@ -17961,7 +17976,7 @@ class Iv {
|
|
|
17961
17976
|
const a = this.currentToken;
|
|
17962
17977
|
switch (t) {
|
|
17963
17978
|
case P.QUOTATION_MARK: {
|
|
17964
|
-
this.state =
|
|
17979
|
+
this.state = B.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;
|
|
17965
17980
|
break;
|
|
17966
17981
|
}
|
|
17967
17982
|
case P.NULL: {
|
|
@@ -17969,7 +17984,7 @@ class Iv {
|
|
|
17969
17984
|
break;
|
|
17970
17985
|
}
|
|
17971
17986
|
case P.GREATER_THAN_SIGN: {
|
|
17972
|
-
this._err(X.abruptDoctypeSystemIdentifier), a.forceQuirks = !0, this.emitCurrentDoctype(a), this.state =
|
|
17987
|
+
this._err(X.abruptDoctypeSystemIdentifier), a.forceQuirks = !0, this.emitCurrentDoctype(a), this.state = B.DATA;
|
|
17973
17988
|
break;
|
|
17974
17989
|
}
|
|
17975
17990
|
case P.EOF: {
|
|
@@ -17986,7 +18001,7 @@ class Iv {
|
|
|
17986
18001
|
const a = this.currentToken;
|
|
17987
18002
|
switch (t) {
|
|
17988
18003
|
case P.APOSTROPHE: {
|
|
17989
|
-
this.state =
|
|
18004
|
+
this.state = B.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;
|
|
17990
18005
|
break;
|
|
17991
18006
|
}
|
|
17992
18007
|
case P.NULL: {
|
|
@@ -17994,7 +18009,7 @@ class Iv {
|
|
|
17994
18009
|
break;
|
|
17995
18010
|
}
|
|
17996
18011
|
case P.GREATER_THAN_SIGN: {
|
|
17997
|
-
this._err(X.abruptDoctypeSystemIdentifier), a.forceQuirks = !0, this.emitCurrentDoctype(a), this.state =
|
|
18012
|
+
this._err(X.abruptDoctypeSystemIdentifier), a.forceQuirks = !0, this.emitCurrentDoctype(a), this.state = B.DATA;
|
|
17998
18013
|
break;
|
|
17999
18014
|
}
|
|
18000
18015
|
case P.EOF: {
|
|
@@ -18016,7 +18031,7 @@ class Iv {
|
|
|
18016
18031
|
case P.FORM_FEED:
|
|
18017
18032
|
break;
|
|
18018
18033
|
case P.GREATER_THAN_SIGN: {
|
|
18019
|
-
this.emitCurrentDoctype(a), this.state =
|
|
18034
|
+
this.emitCurrentDoctype(a), this.state = B.DATA;
|
|
18020
18035
|
break;
|
|
18021
18036
|
}
|
|
18022
18037
|
case P.EOF: {
|
|
@@ -18024,7 +18039,7 @@ class Iv {
|
|
|
18024
18039
|
break;
|
|
18025
18040
|
}
|
|
18026
18041
|
default:
|
|
18027
|
-
this._err(X.unexpectedCharacterAfterDoctypeSystemIdentifier), this.state =
|
|
18042
|
+
this._err(X.unexpectedCharacterAfterDoctypeSystemIdentifier), this.state = B.BOGUS_DOCTYPE, this._stateBogusDoctype(t);
|
|
18028
18043
|
}
|
|
18029
18044
|
}
|
|
18030
18045
|
// Bogus DOCTYPE state
|
|
@@ -18033,7 +18048,7 @@ class Iv {
|
|
|
18033
18048
|
const a = this.currentToken;
|
|
18034
18049
|
switch (t) {
|
|
18035
18050
|
case P.GREATER_THAN_SIGN: {
|
|
18036
|
-
this.emitCurrentDoctype(a), this.state =
|
|
18051
|
+
this.emitCurrentDoctype(a), this.state = B.DATA;
|
|
18037
18052
|
break;
|
|
18038
18053
|
}
|
|
18039
18054
|
case P.NULL: {
|
|
@@ -18051,7 +18066,7 @@ class Iv {
|
|
|
18051
18066
|
_stateCdataSection(t) {
|
|
18052
18067
|
switch (t) {
|
|
18053
18068
|
case P.RIGHT_SQUARE_BRACKET: {
|
|
18054
|
-
this.state =
|
|
18069
|
+
this.state = B.CDATA_SECTION_BRACKET;
|
|
18055
18070
|
break;
|
|
18056
18071
|
}
|
|
18057
18072
|
case P.EOF: {
|
|
@@ -18065,14 +18080,14 @@ class Iv {
|
|
|
18065
18080
|
// CDATA section bracket state
|
|
18066
18081
|
//------------------------------------------------------------------
|
|
18067
18082
|
_stateCdataSectionBracket(t) {
|
|
18068
|
-
t === P.RIGHT_SQUARE_BRACKET ? this.state =
|
|
18083
|
+
t === P.RIGHT_SQUARE_BRACKET ? this.state = B.CDATA_SECTION_END : (this._emitChars("]"), this.state = B.CDATA_SECTION, this._stateCdataSection(t));
|
|
18069
18084
|
}
|
|
18070
18085
|
// CDATA section end state
|
|
18071
18086
|
//------------------------------------------------------------------
|
|
18072
18087
|
_stateCdataSectionEnd(t) {
|
|
18073
18088
|
switch (t) {
|
|
18074
18089
|
case P.GREATER_THAN_SIGN: {
|
|
18075
|
-
this.state =
|
|
18090
|
+
this.state = B.DATA;
|
|
18076
18091
|
break;
|
|
18077
18092
|
}
|
|
18078
18093
|
case P.RIGHT_SQUARE_BRACKET: {
|
|
@@ -18080,7 +18095,7 @@ class Iv {
|
|
|
18080
18095
|
break;
|
|
18081
18096
|
}
|
|
18082
18097
|
default:
|
|
18083
|
-
this._emitChars("]]"), this.state =
|
|
18098
|
+
this._emitChars("]]"), this.state = B.CDATA_SECTION, this._stateCdataSection(t);
|
|
18084
18099
|
}
|
|
18085
18100
|
}
|
|
18086
18101
|
// Character reference state
|
|
@@ -18094,7 +18109,7 @@ class Iv {
|
|
|
18094
18109
|
this.active = !1, this.preprocessor.pos = this.preprocessor.html.length - 1, this.consumedAfterSnapshot = 0, this.preprocessor.endOfChunkHit = !0;
|
|
18095
18110
|
return;
|
|
18096
18111
|
}
|
|
18097
|
-
t === 0 ? (this.preprocessor.pos = this.entityStartPos, this._flushCodePointConsumedAsCharacterReference(P.AMPERSAND), this.state = !this._isCharacterReferenceInAttribute() && du(this.preprocessor.peek(1)) ?
|
|
18112
|
+
t === 0 ? (this.preprocessor.pos = this.entityStartPos, this._flushCodePointConsumedAsCharacterReference(P.AMPERSAND), this.state = !this._isCharacterReferenceInAttribute() && du(this.preprocessor.peek(1)) ? B.AMBIGUOUS_AMPERSAND : this.returnState) : this.state = this.returnState;
|
|
18098
18113
|
}
|
|
18099
18114
|
// Ambiguos ampersand state
|
|
18100
18115
|
//------------------------------------------------------------------
|
|
@@ -22775,7 +22790,7 @@ const ny = {
|
|
|
22775
22790
|
b();
|
|
22776
22791
|
}, [b]), ne(() => {
|
|
22777
22792
|
if (!n?.anchorEl || !i) return;
|
|
22778
|
-
const I = n.anchorEl,
|
|
22793
|
+
const I = n.anchorEl, R = (() => {
|
|
22779
22794
|
let Y = I.parentElement;
|
|
22780
22795
|
for (; Y && Y !== document.body; ) {
|
|
22781
22796
|
const S = getComputedStyle(Y).overflowY;
|
|
@@ -22785,7 +22800,7 @@ const ny = {
|
|
|
22785
22800
|
}
|
|
22786
22801
|
return document.scrollingElement || document.documentElement;
|
|
22787
22802
|
})(), $ = (Y) => {
|
|
22788
|
-
Y.target?.closest?.(".rte-tooltip-overlay") &&
|
|
22803
|
+
Y.target?.closest?.(".rte-tooltip-overlay") && R && (Y.preventDefault(), R.scrollTop += Y.deltaY, Y.deltaX && (R.scrollLeft += Y.deltaX));
|
|
22789
22804
|
};
|
|
22790
22805
|
window.addEventListener("wheel", $, { passive: !1, capture: !0 });
|
|
22791
22806
|
const _ = () => {
|
|
@@ -22806,7 +22821,7 @@ const ny = {
|
|
|
22806
22821
|
return ne(() => {
|
|
22807
22822
|
w(0), N(!1), L("bottom"), A(0);
|
|
22808
22823
|
}, [n?.key, n?.type]), ne(() => {
|
|
22809
|
-
const I = O.current, H = /* @__PURE__ */ new Set(),
|
|
22824
|
+
const I = O.current, H = /* @__PURE__ */ new Set(), R = ($) => {
|
|
22810
22825
|
if (!$ || H.has($) || I.has($)) return;
|
|
22811
22826
|
H.add($);
|
|
22812
22827
|
const _ = new window.Image();
|
|
@@ -22830,7 +22845,7 @@ const ny = {
|
|
|
22830
22845
|
Array.isArray(S) && S.forEach((q) => {
|
|
22831
22846
|
const V = q?.images;
|
|
22832
22847
|
Array.isArray(V) && V.forEach((K) => {
|
|
22833
|
-
typeof K == "string" &&
|
|
22848
|
+
typeof K == "string" && R(K);
|
|
22834
22849
|
});
|
|
22835
22850
|
});
|
|
22836
22851
|
});
|
|
@@ -22843,7 +22858,7 @@ const ny = {
|
|
|
22843
22858
|
const I = requestAnimationFrame(() => {
|
|
22844
22859
|
const H = document.querySelector(".rte-steps-tooltip");
|
|
22845
22860
|
if (!H) return;
|
|
22846
|
-
const
|
|
22861
|
+
const R = 632, $ = Math.max(240, Math.floor(window.innerWidth - 32)), _ = Math.min(R, $);
|
|
22847
22862
|
F(_);
|
|
22848
22863
|
const Y = n?.anchorEl;
|
|
22849
22864
|
if (Y) {
|
|
@@ -22877,7 +22892,7 @@ const ny = {
|
|
|
22877
22892
|
borderRadius: 8,
|
|
22878
22893
|
border: "0.5px solid #E5E5E5",
|
|
22879
22894
|
boxShadow: "0 4px 20px 0 rgba(129, 124, 143, 0.2)"
|
|
22880
|
-
},
|
|
22895
|
+
}, R = !1;
|
|
22881
22896
|
const $ = fy, _ = (S) => {
|
|
22882
22897
|
const q = py(S);
|
|
22883
22898
|
if (!q) return null;
|
|
@@ -22886,7 +22901,7 @@ const ny = {
|
|
|
22886
22901
|
const V = q.data, K = Array.isArray(V.platforms) ? V.platforms : [], j = K.length;
|
|
22887
22902
|
if (j === 0)
|
|
22888
22903
|
return { node: V.title, steps: !1 };
|
|
22889
|
-
const te = Math.min(Math.max(k, 0), j - 1), de = K[te],
|
|
22904
|
+
const te = Math.min(Math.max(k, 0), j - 1), de = K[te], be = Array.isArray(de?.images) ? de.images : [], Te = Array.isArray(de?.stepDescriptions) ? de.stepDescriptions : [], Be = Math.min(be.length, Te.length);
|
|
22890
22905
|
if (Be <= 0)
|
|
22891
22906
|
return { node: V.title, steps: !1 };
|
|
22892
22907
|
const Ie = Math.min(Math.max(m, 0), Be - 1), xt = Te[Ie] || "", Ye = (V.disclaimer || "").trim(), ot = j > 1, Lt = (Oe) => {
|
|
@@ -22938,7 +22953,7 @@ const ny = {
|
|
|
22938
22953
|
T.current = Oe;
|
|
22939
22954
|
},
|
|
22940
22955
|
onSlideChange: (Oe) => w(Oe.activeIndex),
|
|
22941
|
-
children:
|
|
22956
|
+
children: be.map((Oe, Ze) => /* @__PURE__ */ G(is, { children: /* @__PURE__ */ G(
|
|
22942
22957
|
"img",
|
|
22943
22958
|
{
|
|
22944
22959
|
className: "rte-steps-tooltip-img",
|
|
@@ -23036,25 +23051,25 @@ const ny = {
|
|
|
23036
23051
|
if (n.type === "upload") {
|
|
23037
23052
|
const S = n.anchorEl.dataset.tooltip, q = _(S);
|
|
23038
23053
|
if (q)
|
|
23039
|
-
I = q.node,
|
|
23054
|
+
I = q.node, R = q.steps;
|
|
23040
23055
|
else {
|
|
23041
23056
|
const V = e.find(
|
|
23042
23057
|
(j) => j.type === "upload" && j.key === n.key
|
|
23043
23058
|
), K = _(
|
|
23044
23059
|
typeof V?.tooltip == "string" ? V?.tooltip : V?.tooltip ? JSON.stringify(V.tooltip) : ""
|
|
23045
23060
|
);
|
|
23046
|
-
I = K?.node || "",
|
|
23061
|
+
I = K?.node || "", R = K?.steps || !1;
|
|
23047
23062
|
}
|
|
23048
23063
|
} else if (n.type === "tag") {
|
|
23049
23064
|
const S = n.anchorEl.dataset.tooltip, q = _(S);
|
|
23050
|
-
I = q?.node || "",
|
|
23065
|
+
I = q?.node || "", R = q?.steps || !1;
|
|
23051
23066
|
} else if (n.type === "upload-label")
|
|
23052
23067
|
I = n.anchorEl.querySelector(
|
|
23053
23068
|
".upload-label[data-file-name], .video-label[data-file-name]"
|
|
23054
23069
|
)?.dataset.fileName || n.anchorEl.dataset.fileName || "";
|
|
23055
23070
|
else if (n.type === "variable") {
|
|
23056
23071
|
const S = n.anchorEl.dataset.tooltip, q = _(S);
|
|
23057
|
-
I = q?.node || "",
|
|
23072
|
+
I = q?.node || "", R = q?.steps || !1;
|
|
23058
23073
|
} else if (n.type === "upload-preview") {
|
|
23059
23074
|
const S = t[n.key];
|
|
23060
23075
|
let q = null, V = !1;
|
|
@@ -23084,7 +23099,7 @@ const ny = {
|
|
|
23084
23099
|
}) : I = "";
|
|
23085
23100
|
}
|
|
23086
23101
|
if (!I) return null;
|
|
23087
|
-
|
|
23102
|
+
R && (H = {
|
|
23088
23103
|
background: "#fff",
|
|
23089
23104
|
padding: 0,
|
|
23090
23105
|
borderRadius: 12,
|
|
@@ -23100,11 +23115,13 @@ const ny = {
|
|
|
23100
23115
|
arrow: !1,
|
|
23101
23116
|
zIndex: 999,
|
|
23102
23117
|
destroyTooltipOnHide: !1,
|
|
23103
|
-
autoAdjustOverflow: !
|
|
23104
|
-
align:
|
|
23118
|
+
autoAdjustOverflow: !R,
|
|
23119
|
+
align: R ? {
|
|
23105
23120
|
// 自适应:下方空间不足时翻到上方
|
|
23106
23121
|
points: z === "top" ? ["bc", "tc"] : ["tc", "bc"],
|
|
23107
|
-
offset: z === "top" ? [0, -4] : [0, 4]
|
|
23122
|
+
offset: z === "top" ? [0, -4] : [0, 4],
|
|
23123
|
+
// 水平方向自动平移避开视口边界(垂直由上方 stepsPlacement 手动控制)
|
|
23124
|
+
overflow: { adjustX: 1, adjustY: 0 }
|
|
23108
23125
|
} : void 0,
|
|
23109
23126
|
title: n.type === "upload-preview" ? /* @__PURE__ */ G(
|
|
23110
23127
|
"div",
|
|
@@ -23118,7 +23135,7 @@ const ny = {
|
|
|
23118
23135
|
},
|
|
23119
23136
|
children: I
|
|
23120
23137
|
}
|
|
23121
|
-
) :
|
|
23138
|
+
) : R ? I : /* @__PURE__ */ G(
|
|
23122
23139
|
"div",
|
|
23123
23140
|
{
|
|
23124
23141
|
style: { maxWidth: "200px", fontSize: "12px", color: Y },
|
|
@@ -23133,7 +23150,7 @@ const ny = {
|
|
|
23133
23150
|
}
|
|
23134
23151
|
),
|
|
23135
23152
|
open: i,
|
|
23136
|
-
placement:
|
|
23153
|
+
placement: R ? z === "top" ? "top" : "bottom" : n.type === "upload-preview" ? "topLeft" : "top",
|
|
23137
23154
|
getPopupContainer: () => document.body,
|
|
23138
23155
|
overlayInnerStyle: H,
|
|
23139
23156
|
overlayClassName: "rte-tooltip-overlay",
|
|
@@ -23151,28 +23168,28 @@ const ny = {
|
|
|
23151
23168
|
}
|
|
23152
23169
|
)
|
|
23153
23170
|
},
|
|
23154
|
-
`${n.key}-${n.type}-${
|
|
23171
|
+
`${n.key}-${n.type}-${R ? z : "plain"}`
|
|
23155
23172
|
),
|
|
23156
23173
|
document.body
|
|
23157
23174
|
);
|
|
23158
23175
|
})() : null, setPopoverVisible: g };
|
|
23159
23176
|
}, my = (e, t) => {
|
|
23160
|
-
const a = t.hideButtons === "hideTagClose", l = t.lockStructure || a ? "" : '<span class="tag-close-btn" title="Clear (ESC)"><svg width="10" height="10" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="4" stroke-linecap="round" stroke-linejoin="round"><path d="M18 6L6 18M6 6l12 12"/></svg></span>', n = t.lockStructure ? ' data-locked="true"' : "", r = st(e.tooltip), i = r ? ` data-tooltip="${
|
|
23177
|
+
const a = t.hideButtons === "hideTagClose", l = t.lockStructure || a ? "" : '<span class="tag-close-btn" title="Clear (ESC)"><svg width="10" height="10" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="4" stroke-linecap="round" stroke-linejoin="round"><path d="M18 6L6 18M6 6l12 12"/></svg></span>', n = t.lockStructure ? ' data-locked="true"' : "", r = st(e.tooltip), i = r ? ` data-tooltip="${he(r)}" data-tag-key="${e.key || ""}"` : "";
|
|
23161
23178
|
return `<span contenteditable="false" class="tag-node group"${n}${i}><span class="tag-label">${e.text}</span>${l}</span>`;
|
|
23162
23179
|
}, vy = (e, t) => {
|
|
23163
23180
|
const a = t ? ' data-locked="true" contenteditable="false"' : ' contenteditable="false"', n = (e.text ?? "").replace(/\n/g, "<br/>");
|
|
23164
23181
|
return e.className ? `<span data-type="text" class="${e.className}"${a}>${n}</span>` : t ? `<span data-type="text"${a}>${n}</span>` : `<span data-type="text" contenteditable="false">${n}</span>`;
|
|
23165
23182
|
}, gy = `<span class="rte-text-required"><i class='iconfont icon-bitian' style='font-size: 10px;'></i></span>`, Lo = (e, t) => {
|
|
23166
|
-
const l = (e.key ? t[e.key] : void 0) || e.text || "", n = e.exclusionGroup ? ` data-group="${e.exclusionGroup}"` : "", r = st(e.tooltip), i = r ? ` data-tooltip="${
|
|
23183
|
+
const l = (e.key ? t[e.key] : void 0) || e.text || "", n = e.exclusionGroup ? ` data-group="${e.exclusionGroup}"` : "", r = st(e.tooltip), i = r ? ` data-tooltip="${he(r)}" data-variable-key="${e.key || ""}"` : "";
|
|
23167
23184
|
if (e.useAntd === !0) {
|
|
23168
|
-
const h = l ? encodeURIComponent(l) : "", f =
|
|
23185
|
+
const h = l ? encodeURIComponent(l) : "", f = he(e.placeholder || ""), E = e.allowNewline === !1 ? ' data-allow-newline="0"' : ' data-allow-newline="1"', v = Ll(l || e.placeholder || ""), b = r && !l ? 18 : 0;
|
|
23169
23186
|
return `<span contenteditable="false" data-type="variable" data-variable-render="antd-textarea" data-key="${e.key}" data-value="${h}" data-placeholder="${f}" data-estimated-width="${Math.min(
|
|
23170
23187
|
600,
|
|
23171
23188
|
v + b
|
|
23172
23189
|
)}"${E}${n}${i} class="rte-variable-host-v2"></span>`;
|
|
23173
23190
|
}
|
|
23174
|
-
const u = !l, s = u ? "" :
|
|
23175
|
-
return `<span contenteditable="true" data-type="variable" data-key="${e.key}" data-placeholder="${e.placeholder || ""}"${n}${i} class="variable-chip ${o}${c ? ` ${c}` : ""}">${s}${r ? `<i contenteditable="false" style="font-weight: 100;" class="iconfont icon-tishi variable-info-icon ${d}" data-variable-key="${e.key}" data-tooltip="${
|
|
23191
|
+
const u = !l, s = u ? "" : he(l).replace(/\n/g, "<br/>"), o = u ? "show-placeholder" : "", c = r && u ? "rte-variable-with-icon" : "", d = r && u ? "" : "hidden";
|
|
23192
|
+
return `<span contenteditable="true" data-type="variable" data-key="${e.key}" data-placeholder="${e.placeholder || ""}"${n}${i} class="variable-chip ${o}${c ? ` ${c}` : ""}">${s}${r ? `<i contenteditable="false" style="font-weight: 100;" class="iconfont icon-tishi variable-info-icon ${d}" data-variable-key="${e.key}" data-tooltip="${he(r)}" ></i>` : ""}</span>`;
|
|
23176
23193
|
}, Ey = (e, t) => {
|
|
23177
23194
|
const a = Lo(e, t);
|
|
23178
23195
|
return e.required ? `<span ${e.exclusionGroup ? `data-group="${e.exclusionGroup}"` : ""} class="exclusion-wrapper required-upload-group">${gy}${a}</span>` : a;
|
|
@@ -23187,7 +23204,7 @@ const ny = {
|
|
|
23187
23204
|
} catch {
|
|
23188
23205
|
return !1;
|
|
23189
23206
|
}
|
|
23190
|
-
}, or = (e, t, a) => `<span contenteditable="false" class="rte-tutorial-btn${a ? " hidden" : ""}" data-upload-key="${e}" data-tooltip="${
|
|
23207
|
+
}, or = (e, t, a) => `<span contenteditable="false" class="rte-tutorial-btn${a ? " hidden" : ""}" data-upload-key="${e}" data-tooltip="${he(t)}"><i class="iconfont icon-tishi rte-tutorial-btn-icon"></i><span class="rte-tutorial-btn-text">查看教程</span></span>`, yy = (e) => /\.(png|jpe?g|gif|webp|bmp|svg)(\?.*)?$/i.test(e);
|
|
23191
23208
|
function cr(e, t) {
|
|
23192
23209
|
if (e == null)
|
|
23193
23210
|
return { hasFile: !1, fileName: t, uploadIcon: "<i class='iconfont icon-shangchuan1'></i>" };
|
|
@@ -23199,12 +23216,12 @@ function cr(e, t) {
|
|
|
23199
23216
|
return { hasFile: !0, fileName: e.name, uploadIcon: a };
|
|
23200
23217
|
}
|
|
23201
23218
|
const Oo = (e, t) => {
|
|
23202
|
-
const a = e.exclusionGroup ? ` data-group="${e.exclusionGroup}"` : "", l = st(e.tooltip), n = l ? ` data-tooltip="${
|
|
23219
|
+
const a = e.exclusionGroup ? ` data-group="${e.exclusionGroup}"` : "", l = st(e.tooltip), n = l ? ` data-tooltip="${he(l)}"` : "", { hasFile: r, fileName: i, uploadIcon: u } = cr(t[e.key], e.text), s = r ? "" : "hidden", o = l && !r ? "" : "hidden", c = r ? "has-file" : "", d = (r ? i : e.text || e.placeholder) || "", h = d ? ` data-file-name="${d.replace(/"/g, """)}"` : "", f = (e.text || "").trim(), v = r && f.length >= 12 ? `<span ${a} contenteditable="false" class="exclusion-wrapper upload-hint">${f}</span>` : "", b = sr(l), y = b ? or(e.key, l, r) : "", g = l && !b ? `<i contenteditable="false" style="font-weight: 100;" class="iconfont icon-tishi upload-info-icon ${o}" data-upload-key="${e.key}" data-tooltip="${he(l)}" ></i>` : "";
|
|
23203
23220
|
return { uploadHtml: `<span contenteditable="false" data-type="upload" data-key="${e.key}"${n} class="upload-chip"><span class="upload-inner-wrapper ${c}"><span class="upload-icon">${u}</span><span class="upload-label"${h}>${i || e.text}</span>${y}${g}<span class="file-remove-btn ${s}" title="移除文件">×</span></span></span>`, hintHtml: v };
|
|
23204
23221
|
}, Do = (e, t, a) => {
|
|
23205
23222
|
const l = e.exclusionGroup ? ` data-group="${e.exclusionGroup}"` : "";
|
|
23206
23223
|
if (typeof e.maxCount == "number" && typeof e.minCount == "number" && e.maxCount > 1) {
|
|
23207
|
-
const C = st(e.tooltip), N = C ? ` data-tooltip="${
|
|
23224
|
+
const C = st(e.tooltip), N = C ? ` data-tooltip="${he(C)}"` : "", k = e.minCount || 1, A = e.maxCount || 3;
|
|
23208
23225
|
let O = 0;
|
|
23209
23226
|
for (let x = 0; x < A; x++) {
|
|
23210
23227
|
const I = `${e.key}-${x}`;
|
|
@@ -23213,12 +23230,12 @@ const Oo = (e, t) => {
|
|
|
23213
23230
|
const D = Math.min(A, Math.max(k, O + (O < A ? 1 : 0))), F = sr(C);
|
|
23214
23231
|
let M = "";
|
|
23215
23232
|
for (let x = 0; x < D; x++) {
|
|
23216
|
-
const I = `${e.key}-${x}`, { hasFile: H, fileName:
|
|
23233
|
+
const I = `${e.key}-${x}`, { hasFile: H, fileName: R, uploadIcon: $ } = cr(t[I], e.text), _ = H ? "" : "hidden", Y = C && !H ? "" : "hidden", z = H ? "has-file" : "", S = (H ? R : e.text || e.placeholder) || "", q = S ? ` data-file-name="${S.replace(/"/g, """)}"` : "", V = ` data-batch-key="${e.key}"`, K = ` data-batch-index="${x}"`, j = F ? or(I, C, H) : "", te = C && !F ? `<i contenteditable="false" style="font-weight: 100;" class="iconfont icon-tishi upload-info-icon ${Y}" data-upload-key="${I}" data-tooltip="${he(C)}" ></i>` : "", de = `<span contenteditable="false" data-type="upload" data-key="${I}"${V}${K}${N} class="upload-chip upload-chip-batch"><span class="upload-inner-wrapper ${z}"><span class="upload-icon">${$}</span><span class="upload-label"${q}>${R || e.text}</span>${j}${te}<span class="file-remove-btn ${_}" title="移除文件">×</span></span></span>`;
|
|
23217
23234
|
M += de;
|
|
23218
23235
|
}
|
|
23219
23236
|
return e.required ? `<span ${e.exclusionGroup ? `data-group="${e.exclusionGroup}"` : ""} class="exclusion-wrapper required-upload-group rte-required-upload-batch">${Ou}<span class="rte-upload-batch-chips">${M}${a}</span></span>` : `<span ${e.exclusionGroup ? `data-group="${e.exclusionGroup}"` : ""} class="exclusion-wrapper rte-upload-batch-chips">${M}${a}</span>`;
|
|
23220
23237
|
}
|
|
23221
|
-
const r = st(e.tooltip), i = r ? ` data-tooltip="${
|
|
23238
|
+
const r = st(e.tooltip), i = r ? ` data-tooltip="${he(r)}"` : "", { hasFile: u, fileName: s, uploadIcon: o } = cr(t[e.key], e.text), c = u ? "" : "hidden", d = r && !u ? "" : "hidden", h = u ? "has-file" : "", f = (u ? s : e.text || e.placeholder) || "", E = f ? ` data-file-name="${f.replace(/"/g, """)}"` : "", v = (e.text || "").trim(), y = u && e.showHint === !0 && v.length >= 12 ? `<span ${l} contenteditable="false" class="exclusion-wrapper upload-hint">${v}</span>` : "", g = sr(r), m = g ? or(e.key, r, u) : "", w = r && !g ? `<i contenteditable="false" style="font-weight: 100;" class="iconfont icon-tishi upload-info-icon ${d}" data-upload-key="${e.key}" data-tooltip="${he(r)}" ></i>` : "", T = `<span contenteditable="false" data-type="upload" data-key="${e.key}"${i} class="upload-chip"><span class="upload-inner-wrapper ${h}"><span class="upload-icon">${o}</span><span class="upload-label"${E}>${s || e.text}</span>${m}${w}<span class="file-remove-btn ${c}" title="移除文件">×</span></span></span>`;
|
|
23222
23239
|
return e.required ? `<span ${e.exclusionGroup ? `data-group="${e.exclusionGroup}"` : ""} class="exclusion-wrapper required-upload-group">${Ou}${T}${a}</span>${y}` : T + a + y;
|
|
23223
23240
|
}, Ty = `<span class="rte-text-required"><i class='iconfont icon-bitian' style='font-size: 10px;'></i></span>`, xy = (e, t) => {
|
|
23224
23241
|
const a = t[e.key] || e.defaultValue || "", l = encodeURIComponent(JSON.stringify(e.options || [])), n = e.placeholder ? ` data-placeholder="${e.placeholder}"` : "", r = e.exclusionGroup ? ` data-group="${e.exclusionGroup}"` : "", i = e.required ? ' data-required="true"' : "", u = `<span data-type="select" data-key="${e.key}" data-value="${a}" data-options="${l}"${n}${r}${i} class="rte-select-host"></span>`;
|
|
@@ -23230,34 +23247,34 @@ const Oo = (e, t) => {
|
|
|
23230
23247
|
const l = t[e.key] || e.text || "", n = typeof e.minHeight == "number" ? e.minHeight : 40, r = typeof e.maxHeight == "number" ? e.maxHeight : 160, i = Math.max(r, n), u = e.placeholder ? ` data-placeholder="${e.placeholder}"` : "", s = e.expandable !== !1, o = l, c = `<div contenteditable="true" data-type="richtext" data-key="${e.key}" class="rte-richtext"${u} style="min-height:${n}px;max-height:${i}px;overflow:auto;">${o}</div>`, d = s ? `<button type="button" class="rte-richtext-toggle" data-key="${e.key}" data-expanded="false"><i class="iconfont icon-zhankai2"></i><span class="rte-richtext-toggle-label">展开</span></button>` : "", h = `<div class="rte-richtext-wrapper${s ? " rte-richtext-toggleable" : ""}" data-key="${e.key}">${c}${d}</div>`, f = `<div class="rte-richtext-container" data-key="${e.key}">${h}</div>`;
|
|
23231
23248
|
return e.required ? `<div ${e.exclusionGroup ? `data-group="${e.exclusionGroup}"` : ""} class="exclusion-wrapper rte-richtext-required">${f}</div>` : f;
|
|
23232
23249
|
}, Sy = `<span class="rte-text-required"><i class='iconfont icon-bitian' style='font-size: 10px;'></i></span>`, _y = (e, t, a) => {
|
|
23233
|
-
const l = `${e.key}__url`, r = Object.prototype.hasOwnProperty.call(t, l) ? t[l] : void 0, i = e.key ? t[e.key] : void 0, u = r ?? i ?? e.text ?? "", s = !u, o = s ? "" : u, c = s ? "show-placeholder" : "", d = e.exclusionGroup ? ` data-group="${e.exclusionGroup}"` : "", h = st(e.tooltip), f = h ? ` data-tooltip="${
|
|
23250
|
+
const l = `${e.key}__url`, r = Object.prototype.hasOwnProperty.call(t, l) ? t[l] : void 0, i = e.key ? t[e.key] : void 0, u = r ?? i ?? e.text ?? "", s = !u, o = s ? "" : u, c = s ? "show-placeholder" : "", d = e.exclusionGroup ? ` data-group="${e.exclusionGroup}"` : "", h = st(e.tooltip), f = h ? ` data-tooltip="${he(h)}" data-variable-key="${e.key || ""}"` : "", E = s ? "" : "hidden", v = !!a, b = (v || h) && s ? "rte-variable-with-icon" : "";
|
|
23234
23251
|
let y = "";
|
|
23235
|
-
v ? y = `<span contenteditable="false" class="rte-report-dropdown-host ${E}" data-key="${e.key}" data-node-type="report-url"></span>` : h && (y = `<i contenteditable="false" style="font-weight: 100;" class="iconfont icon-tishi variable-info-icon ${E}" data-variable-key="${e.key}" data-tooltip="${
|
|
23236
|
-
const g = `<span contenteditable="true" data-type="variable" data-key="${e.key}" data-node-type="report-url" data-placeholder="${
|
|
23252
|
+
v ? y = `<span contenteditable="false" class="rte-report-dropdown-host ${E}" data-key="${e.key}" data-node-type="report-url"></span>` : h && (y = `<i contenteditable="false" style="font-weight: 100;" class="iconfont icon-tishi variable-info-icon ${E}" data-variable-key="${e.key}" data-tooltip="${he(h)}" ></i>`);
|
|
23253
|
+
const g = `<span contenteditable="true" data-type="variable" data-key="${e.key}" data-node-type="report-url" data-placeholder="${he(
|
|
23237
23254
|
e.placeholder || ""
|
|
23238
23255
|
)}"${d}${f} class="variable-chip rte-report-url ${c}${b ? ` ${b}` : ""}">${o}${y}</span>`;
|
|
23239
23256
|
return e.required ? `<span ${e.exclusionGroup ? `data-group="${e.exclusionGroup}"` : ""} class="exclusion-wrapper required-upload-group">${Sy}${g}</span>` : g;
|
|
23240
23257
|
}, ky = `<span class="rte-text-required"><i class='iconfont icon-bitian' style='font-size: 10px;'></i></span>`, Ny = (e, t) => {
|
|
23241
|
-
const a = `${e.key}__name`, n = Object.prototype.hasOwnProperty.call(t, a) ? t[a] : void 0, r = e.key ? t[e.key] : void 0, i = n ?? r ?? e.text ?? "", u = !i, s = u ? "" : i, o = u ? "show-placeholder" : "", c = e.exclusionGroup ? ` data-group="${e.exclusionGroup}"` : "", d = st(e.tooltip), h = d ? ` data-tooltip="${
|
|
23258
|
+
const a = `${e.key}__name`, n = Object.prototype.hasOwnProperty.call(t, a) ? t[a] : void 0, r = e.key ? t[e.key] : void 0, i = n ?? r ?? e.text ?? "", u = !i, s = u ? "" : i, o = u ? "show-placeholder" : "", c = e.exclusionGroup ? ` data-group="${e.exclusionGroup}"` : "", d = st(e.tooltip), h = d ? ` data-tooltip="${he(d)}" data-variable-key="${e.key || ""}"` : "", f = d && u ? "rte-variable-with-icon" : "", E = d && u ? "" : "hidden", v = `<span contenteditable="true" data-type="variable" data-key="${e.key}" data-node-type="markdown-name" data-placeholder="${he(
|
|
23242
23259
|
e.placeholder || ""
|
|
23243
|
-
)}"${c}${h} class="variable-chip rte-markdown-name ${o}${f ? ` ${f}` : ""}">${s}${d ? `<i contenteditable="false" style="font-weight: 100;" class="iconfont icon-tishi variable-info-icon ${E}" data-variable-key="${e.key}" data-tooltip="${
|
|
23260
|
+
)}"${c}${h} class="variable-chip rte-markdown-name ${o}${f ? ` ${f}` : ""}">${s}${d ? `<i contenteditable="false" style="font-weight: 100;" class="iconfont icon-tishi variable-info-icon ${E}" data-variable-key="${e.key}" data-tooltip="${he(d)}" ></i>` : ""}</span>`;
|
|
23244
23261
|
return e.required ? `<span ${e.exclusionGroup ? `data-group="${e.exclusionGroup}"` : ""} class="exclusion-wrapper required-upload-group">${ky}${v}</span>` : v;
|
|
23245
23262
|
}, Iy = `<span class="rte-text-required"><i class='iconfont icon-bitian' style='font-size: 10px;'></i></span>`, Ly = (e, t) => {
|
|
23246
|
-
const a = e.sourceTextKey || `${e.key}__sourceText`, n = Object.prototype.hasOwnProperty.call(t, a) ? t[a] : void 0, r = e.key ? t[e.key] : void 0, i = n ?? r ?? e.text ?? "", u = !i, s = u ? "" : i, o = u ? "show-placeholder" : "", c = e.exclusionGroup ? ` data-group="${e.exclusionGroup}"` : "", d = e.sourceTextKey ? ` data-source-text-key="${
|
|
23263
|
+
const a = e.sourceTextKey || `${e.key}__sourceText`, n = Object.prototype.hasOwnProperty.call(t, a) ? t[a] : void 0, r = e.key ? t[e.key] : void 0, i = n ?? r ?? e.text ?? "", u = !i, s = u ? "" : i, o = u ? "show-placeholder" : "", c = e.exclusionGroup ? ` data-group="${e.exclusionGroup}"` : "", d = e.sourceTextKey ? ` data-source-text-key="${he(e.sourceTextKey)}"` : "", h = st(e.tooltip), f = h ? ` data-tooltip="${he(h)}" data-variable-key="${e.key || ""}"` : "", E = h && u ? "rte-variable-with-icon" : "", v = h && u ? "" : "hidden", b = `<span contenteditable="true" data-type="variable" data-key="${e.key}" data-node-type="markdown" data-placeholder="${he(
|
|
23247
23264
|
e.placeholder || ""
|
|
23248
|
-
)}"${c}${d}${f} class="variable-chip rte-markdown-input ${o}${E ? ` ${E}` : ""}">${s}${h ? `<i contenteditable="false" style="font-weight: 100;" class="iconfont icon-tishi variable-info-icon ${v}" data-variable-key="${e.key}" data-tooltip="${
|
|
23265
|
+
)}"${c}${d}${f} class="variable-chip rte-markdown-input ${o}${E ? ` ${E}` : ""}">${s}${h ? `<i contenteditable="false" style="font-weight: 100;" class="iconfont icon-tishi variable-info-icon ${v}" data-variable-key="${e.key}" data-tooltip="${he(h)}" ></i>` : ""}</span>`;
|
|
23249
23266
|
return e.required ? `<span ${e.exclusionGroup ? `data-group="${e.exclusionGroup}"` : ""} class="exclusion-wrapper required-upload-group">${Iy}${b}</span>` : b;
|
|
23250
23267
|
}, Oy = (e, t) => {
|
|
23251
|
-
const a = typeof e.moduleIndex == "number" ? e.moduleIndex : 0, l = `${e.key}__module_${a}`, r = Object.prototype.hasOwnProperty.call(t, l) ? t[l] : e.text || "", i = typeof e.minHeight == "number" ? e.minHeight : 80, u = typeof e.maxHeight == "number" ? e.maxHeight : 240, s = Math.max(u, i), o = e.placeholder ? ` data-placeholder="${
|
|
23268
|
+
const a = typeof e.moduleIndex == "number" ? e.moduleIndex : 0, l = `${e.key}__module_${a}`, r = Object.prototype.hasOwnProperty.call(t, l) ? t[l] : e.text || "", i = typeof e.minHeight == "number" ? e.minHeight : 80, u = typeof e.maxHeight == "number" ? e.maxHeight : 240, s = Math.max(u, i), o = e.placeholder ? ` data-placeholder="${he(e.placeholder)}"` : "", c = r, d = `<div contenteditable="true" data-type="richtext" data-key="${e.key}" data-node-type="report-module" data-module-index="${a}" class="rte-richtext rte-report-module"${o} style="min-height:${i}px;max-height:${s}px;overflow:auto;">${c}</div>`, h = `<div class="rte-richtext-wrapper rte-report-module-wrapper" data-key="${e.key}">${d}</div>`, f = `<div class="rte-richtext-container rte-report-module-container" data-key="${e.key}">${h}</div>`;
|
|
23252
23269
|
return e.required ? `<div ${e.exclusionGroup ? `data-group="${e.exclusionGroup}"` : ""} class="exclusion-wrapper rte-richtext-required">${f}</div>` : f;
|
|
23253
23270
|
}, Dy = (e, t) => {
|
|
23254
|
-
const a = typeof e.moduleIndex == "number" ? e.moduleIndex : 0, l = `${e.key}__module_${a}`, r = Object.prototype.hasOwnProperty.call(t, l) ? t[l] : e.text || "", i = typeof e.minHeight == "number" ? e.minHeight : 80, u = typeof e.maxHeight == "number" ? e.maxHeight : 240, s = Math.max(u, i), o = e.placeholder ? ` data-placeholder="${
|
|
23271
|
+
const a = typeof e.moduleIndex == "number" ? e.moduleIndex : 0, l = `${e.key}__module_${a}`, r = Object.prototype.hasOwnProperty.call(t, l) ? t[l] : e.text || "", i = typeof e.minHeight == "number" ? e.minHeight : 80, u = typeof e.maxHeight == "number" ? e.maxHeight : 240, s = Math.max(u, i), o = e.placeholder ? ` data-placeholder="${he(e.placeholder)}"` : "", c = r, h = typeof c == "string" && c.startsWith("请补充:") ? ' data-is-placeholder="true"' : "", f = `<div contenteditable="true" data-type="richtext" data-key="${e.key}" data-node-type="markdown-module" data-module-index="${a}" class="rte-richtext rte-markdown-module"${o}${h} style="min-height:${i}px;max-height:${s}px;overflow:auto;">${c}</div>`, E = `<div class="rte-richtext-wrapper rte-markdown-module-wrapper" data-key="${e.key}">${f}</div>`, v = `<div class="rte-richtext-container rte-markdown-module-container" data-key="${e.key}">${E}</div>`;
|
|
23255
23272
|
return e.required ? `<div ${e.exclusionGroup ? `data-group="${e.exclusionGroup}"` : ""} class="exclusion-wrapper rte-richtext-required">${v}</div>` : v;
|
|
23256
23273
|
}, Py = `<span class="rte-text-required"><i class='iconfont icon-bitian' style='font-size: 10px;'></i></span>`, My = (e, t) => {
|
|
23257
23274
|
const a = t[e.key] || "", l = e.placeholder ? ` data-placeholder="${e.placeholder}"` : "", n = e.limitRange ? ` data-limit-range="${e.limitRange}"` : "", r = e.disableFuture ? ' data-disable-future="true"' : "", i = `<div data-type="datepicker" data-key="${e.key}" data-value="${a}" class="rte-datepicker-host"${l}${n}${r}></div>`;
|
|
23258
23275
|
return e.required ? `<span ${e.exclusionGroup ? `data-group="${e.exclusionGroup}"` : ""} class="exclusion-wrapper required-upload-group">${Py}${i}</span>` : i;
|
|
23259
23276
|
}, Ry = `<span class="rte-text-required"><i class='iconfont icon-bitian' style='font-size: 10px;'></i></span>`, By = (e, t) => {
|
|
23260
|
-
const a = t[e.key] || (typeof e.defaultNumber == "number" ? String(e.defaultNumber) : ""), l = typeof e.min == "number" ? ` min="${e.min}"` : "", n = typeof e.max == "number" ? ` max="${e.max}"` : "", r = e.placeholder ?
|
|
23277
|
+
const a = t[e.key] || (typeof e.defaultNumber == "number" ? String(e.defaultNumber) : ""), l = typeof e.min == "number" ? ` min="${e.min}"` : "", n = typeof e.max == "number" ? ` max="${e.max}"` : "", r = e.placeholder ? he(e.placeholder) : "", i = r ? ` placeholder="${r}"` : "", u = e.exclusionGroup ? ` data-group="${e.exclusionGroup}"` : "", s = a || e.placeholder || "", o = Ll(s), c = `<input type="text" inputmode="numeric" data-type="number-input" data-key="${e.key}" class="rte-number-input" value="${he(a)}" style="width: ${o}px;"${l}${n}${i}${u} />`, h = `<span class="rte-number-input-wrap" data-placeholder="${r}" data-has-value="${a ? "1" : "0"}">${c}</span>`;
|
|
23261
23278
|
return e.required ? `<span ${e.exclusionGroup ? `data-group="${e.exclusionGroup}"` : ""} class="exclusion-wrapper required-upload-group">${Ry}${h}</span>` : h;
|
|
23262
23279
|
}, Fy = `<span class="rte-text-required"><i class='iconfont icon-bitian' style='font-size: 10px;'></i></span>`, Po = (e, t, a, l) => {
|
|
23263
23280
|
const n = e.maxCount || 9, r = a[e.key] || 1, i = Math.min(r, n);
|
|
@@ -23265,9 +23282,9 @@ const Oo = (e, t) => {
|
|
|
23265
23282
|
const o = e.exclusionGroup ? `data-group="${e.exclusionGroup}"` : "", c = st(e.tooltip);
|
|
23266
23283
|
let d = "";
|
|
23267
23284
|
for (let h = 0; h < i; h++) {
|
|
23268
|
-
const f = `${e.key}_${h}`, E = t[f] || "", v = !E, b = v ? "" :
|
|
23285
|
+
const f = `${e.key}_${h}`, E = t[f] || "", v = !E, b = v ? "" : he(E).replace(/\n/g, "<br/>"), y = v ? "show-placeholder" : "", g = c && v ? "rte-variable-with-icon" : "", m = c ? ` data-tooltip="${he(c)}" data-variable-key="${e.key || ""}"` : "", w = c && v ? "" : "hidden", T = e.exclusionGroup ? ` data-group="${e.exclusionGroup}"` : "", C = l && c;
|
|
23269
23286
|
let N = "";
|
|
23270
|
-
C ? N = `<span contenteditable="false" class="rte-report-dropdown-host ${w}" data-key="${f}" data-multi-key="${e.key}" data-node-type="multi-variable"></span>` : c && (N = `<i contenteditable="false" style="font-weight: 100;" class="iconfont icon-tishi variable-info-icon ${w}" data-variable-key="${e.key}" data-tooltip="${
|
|
23287
|
+
C ? N = `<span contenteditable="false" class="rte-report-dropdown-host ${w}" data-key="${f}" data-multi-key="${e.key}" data-node-type="multi-variable"></span>` : c && (N = `<i contenteditable="false" style="font-weight: 100;" class="iconfont icon-tishi variable-info-icon ${w}" data-variable-key="${e.key}" data-tooltip="${he(c)}" ></i>`);
|
|
23271
23288
|
const k = `<span contenteditable="true" data-type="variable" data-key="${f}" data-multi-key="${e.key}" data-index="${h}" data-placeholder="${e.placeholder || ""}"${T}${m} class="variable-chip ${y}${g ? ` ${g}` : ""}">${b}${N}</span>`;
|
|
23272
23289
|
h === 0 ? d += `<span ${o} class="exclusion-wrapper required-upload-group required-multi-first">${Fy}${k}</span>` : d += k;
|
|
23273
23290
|
}
|
|
@@ -23276,9 +23293,9 @@ const Oo = (e, t) => {
|
|
|
23276
23293
|
const u = st(e.tooltip);
|
|
23277
23294
|
let s = "";
|
|
23278
23295
|
for (let o = 0; o < i; o++) {
|
|
23279
|
-
const c = `${e.key}_${o}`, d = t[c] || "", h = !d, f = h ? "" :
|
|
23296
|
+
const c = `${e.key}_${o}`, d = t[c] || "", h = !d, f = h ? "" : he(d).replace(/\n/g, "<br/>"), E = h ? "show-placeholder" : "", v = u && h ? "rte-variable-with-icon" : "", b = u ? ` data-tooltip="${he(u)}" data-variable-key="${e.key || ""}"` : "", y = u && h ? "" : "hidden", g = e.exclusionGroup ? ` data-group="${e.exclusionGroup}"` : "", m = l && u;
|
|
23280
23297
|
let w = "";
|
|
23281
|
-
m ? w = `<span contenteditable="false" class="rte-report-dropdown-host ${y}" data-key="${c}" data-multi-key="${e.key}" data-node-type="multi-variable"></span>` : u && (w = `<i contenteditable="false" style="font-weight: 100;" class="iconfont icon-tishi variable-info-icon ${y}" data-variable-key="${e.key}" data-tooltip="${
|
|
23298
|
+
m ? w = `<span contenteditable="false" class="rte-report-dropdown-host ${y}" data-key="${c}" data-multi-key="${e.key}" data-node-type="multi-variable"></span>` : u && (w = `<i contenteditable="false" style="font-weight: 100;" class="iconfont icon-tishi variable-info-icon ${y}" data-variable-key="${e.key}" data-tooltip="${he(u)}" ></i>`);
|
|
23282
23299
|
const T = `<span contenteditable="true" data-type="variable" data-key="${c}" data-multi-key="${e.key}" data-index="${o}" data-placeholder="${e.placeholder || ""}"${g}${b} class="variable-chip ${E}${v ? ` ${v}` : ""}">${f}${w}</span>`;
|
|
23283
23300
|
s += T;
|
|
23284
23301
|
}
|
|
@@ -23286,40 +23303,51 @@ const Oo = (e, t) => {
|
|
|
23286
23303
|
}, Hy = (e, t, a) => Po(e, t, a, !0).replace(
|
|
23287
23304
|
/data-node-type="multi-variable"/g,
|
|
23288
23305
|
'data-node-type="multi-variable-select"'
|
|
23289
|
-
), dr = `<span class="rte-text-required"><i class='iconfont icon-bitian' style='font-size: 10px;'></i></span>`,
|
|
23290
|
-
const
|
|
23306
|
+
), dr = `<span class="rte-text-required"><i class='iconfont icon-bitian' style='font-size: 10px;'></i></span>`, $y = (e) => {
|
|
23307
|
+
const t = (e ?? "").trim();
|
|
23308
|
+
if (!t || !(t.startsWith("{") && t.endsWith("}"))) return !1;
|
|
23309
|
+
try {
|
|
23310
|
+
const a = JSON.parse(t);
|
|
23311
|
+
if (!a || typeof a != "object") return !1;
|
|
23312
|
+
const l = a;
|
|
23313
|
+
return l.type === "steps" && Array.isArray(l.platforms) && l.platforms.length > 0;
|
|
23314
|
+
} catch {
|
|
23315
|
+
return !1;
|
|
23316
|
+
}
|
|
23317
|
+
}, Uy = (e, t, a) => `<span contenteditable="false" class="rte-tutorial-btn" data-upload-key="${e}" data-tooltip="${he(t)}"><i class="iconfont icon-tishi rte-tutorial-btn-icon"></i><span class="rte-tutorial-btn-text">查看教程</span></span>`, Mo = (e, t) => {
|
|
23318
|
+
const a = e.key, l = t[a], n = e.exclusionGroup ? ` data-group="${e.exclusionGroup}"` : "", r = st(e.tooltip), i = r ? ` data-tooltip="${he(r)}"` : "";
|
|
23291
23319
|
let u;
|
|
23292
23320
|
if (l?.status === "loading") {
|
|
23293
23321
|
const o = typeof l.progress == "number" ? Math.min(Math.max(l.progress, 0), 100) : 0, c = "data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1' height='1'%3E%3Crect fill='%23999' width='1' height='1'/%3E%3C/svg%3E", d = 2 * Math.PI * 6.5, h = d * (1 - o / 100), f = `<svg class="video-upload-progress-ring" viewBox="0 0 16 16" width="16" height="16"><circle cx="8" cy="8" r="6.5" fill="none" stroke="rgba(255,255,255,0.5)" stroke-width="1.5"/><circle cx="8" cy="8" r="6.5" fill="none" stroke="#fff" stroke-width="1.5" stroke-linecap="round" stroke-dasharray="${d}" stroke-dashoffset="${h}" transform="rotate(-90 8 8)"/></svg>`;
|
|
23294
23322
|
u = `<span class="video-inner-wrapper video-upload-inner video-uploading"><span class="video-thumbnail-wrapper"><img class="video-thumbnail" src="${c}" alt="thumbnail" /><span class="video-thumbnail-overlay"></span>${f}</span><span class="video-label">解析中...</span></span>`;
|
|
23295
23323
|
} else if (l?.status === "success" && l.videoUrl) {
|
|
23296
23324
|
const o = l.fileName || "视频", c = '<svg class="video-play-icon" viewBox="0 0 16 16" width="16" height="16"><circle cx="8" cy="8" r="8" fill="rgba(0,0,0,0.5)"/><polygon points="6.5,4.5 6.5,11.5 12,8" fill="#fff"/></svg>';
|
|
23297
|
-
u = `<span class="video-inner-wrapper video-url-inner has-video">${l.thumbnail ? `<span class="video-thumbnail-wrapper"><img class="video-thumbnail" src="${
|
|
23325
|
+
u = `<span class="video-inner-wrapper video-url-inner has-video">${l.thumbnail ? `<span class="video-thumbnail-wrapper"><img class="video-thumbnail" src="${he(l.thumbnail)}" alt="thumbnail" />${c}</span>` : `<span class="video-thumbnail-wrapper"><span class="video-thumbnail video-thumbnail-placeholder"><i class="iconfont icon-shipin" style="font-size:20px;color:#8c8c8c;"></i></span>${c}</span>`}<span class="video-label" data-file-name="${he(o)}">${he(o)}</span><span class="video-remove-btn" title="移除视频">×</span></span>`;
|
|
23298
23326
|
} else {
|
|
23299
|
-
const o = e.placeholder || "请粘贴想要分析的抖音视频链接", c = r ? "rte-variable-with-icon" : "",
|
|
23300
|
-
return e.required ? `<span ${e.exclusionGroup ? `data-group="${e.exclusionGroup}"` : ""} class="exclusion-wrapper required-upload-group">${dr}${
|
|
23327
|
+
const o = e.placeholder || "请粘贴想要分析的抖音视频链接", c = $y(r), d = r ? "rte-variable-with-icon" : "", h = r ? c ? Uy(a, r) : `<i contenteditable="false" style="font-weight: 100;" class="iconfont icon-tishi variable-info-icon" data-variable-key="${a}" data-tooltip="${he(r)}" ></i>` : "", f = `<span contenteditable="true" data-type="variable" data-key="${a}" data-node-type="video-url" data-placeholder="${he(o)}"${n}${i} class="variable-chip rte-video-url show-placeholder${d ? ` ${d}` : ""}">${h}</span>`;
|
|
23328
|
+
return e.required ? `<span ${e.exclusionGroup ? `data-group="${e.exclusionGroup}"` : ""} class="exclusion-wrapper required-upload-group">${dr}${f}</span>` : f;
|
|
23301
23329
|
}
|
|
23302
23330
|
const s = `<span contenteditable="false" data-type="video-url" data-key="${a}"${i}${n} class="video-chip">${u}</span>`;
|
|
23303
23331
|
return e.required ? `<span ${e.exclusionGroup ? `data-group="${e.exclusionGroup}"` : ""} class="exclusion-wrapper required-upload-group">${dr}${s}</span>` : s;
|
|
23304
23332
|
}, Ro = (e, t) => {
|
|
23305
|
-
const a = e.key, l = t[a], n = e.exclusionGroup ? ` data-group="${e.exclusionGroup}"` : "", r = st(e.tooltip), i = r ? ` data-tooltip="${
|
|
23333
|
+
const a = e.key, l = t[a], n = e.exclusionGroup ? ` data-group="${e.exclusionGroup}"` : "", r = st(e.tooltip), i = r ? ` data-tooltip="${he(r)}"` : "";
|
|
23306
23334
|
let u;
|
|
23307
23335
|
if (l?.status === "loading") {
|
|
23308
23336
|
const o = typeof l.progress == "number" ? Math.min(Math.max(l.progress, 0), 100) : 0, c = l.fileName || "上传中...", d = l.thumbnail || "", h = 2 * Math.PI * 6.5, f = h * (1 - o / 100), E = `<svg class="video-upload-progress-ring" viewBox="0 0 16 16" width="16" height="16"><circle cx="8" cy="8" r="6.5" fill="none" stroke="rgba(255,255,255,0.5)" stroke-width="1.5"/><circle cx="8" cy="8" r="6.5" fill="none" stroke="#fff" stroke-width="1.5" stroke-linecap="round" stroke-dasharray="${h}" stroke-dashoffset="${f}" transform="rotate(-90 8 8)"/></svg>`;
|
|
23309
|
-
u = `<span class="video-inner-wrapper video-upload-inner video-uploading"><span class="video-thumbnail-wrapper"><img class="video-thumbnail" src="${
|
|
23337
|
+
u = `<span class="video-inner-wrapper video-upload-inner video-uploading"><span class="video-thumbnail-wrapper"><img class="video-thumbnail" src="${he(d)}" alt="thumbnail" /><span class="video-thumbnail-overlay"></span>${E}</span><span class="video-label">${he(c)}</span></span>`;
|
|
23310
23338
|
} else if (l?.status === "success" && l.thumbnail && l.videoUrl) {
|
|
23311
23339
|
const o = l.fileName || "视频文件";
|
|
23312
|
-
u = `<span class="video-inner-wrapper video-upload-inner has-video"><span class="video-thumbnail-wrapper"><img class="video-thumbnail" src="${
|
|
23340
|
+
u = `<span class="video-inner-wrapper video-upload-inner has-video"><span class="video-thumbnail-wrapper"><img class="video-thumbnail" src="${he(l.thumbnail)}" alt="thumbnail" /><svg class="video-play-icon" viewBox="0 0 16 16" width="16" height="16"><circle cx="8" cy="8" r="8" fill="rgba(0,0,0,0.5)"/><polygon points="6.5,4.5 6.5,11.5 12,8" fill="#fff"/></svg></span><span class="video-label" data-file-name="${he(o)}">${he(o)}</span><span class="video-remove-btn" title="移除视频">×</span></span>`;
|
|
23313
23341
|
} else {
|
|
23314
23342
|
const o = e.text || "请上传想要分析的视频文件", c = r ? "" : "hidden";
|
|
23315
|
-
u = `<span class="video-inner-wrapper video-upload-inner"><i class="iconfont icon-shangchuan1" style="font-size:16px;"></i><span class="video-label"${` data-file-name="${
|
|
23343
|
+
u = `<span class="video-inner-wrapper video-upload-inner"><i class="iconfont icon-shangchuan1" style="font-size:16px;"></i><span class="video-label"${` data-file-name="${he(o).replace(/"/g, """)}"`}>${he(o)}</span>${r ? `<i contenteditable="false" style="font-weight: 100;" class="iconfont icon-tishi upload-info-icon ${c}" data-upload-key="${a}" data-tooltip="${he(r)}" ></i>` : ""}</span>`;
|
|
23316
23344
|
}
|
|
23317
23345
|
const s = `<span contenteditable="false" data-type="video-upload" data-key="${a}"${i}${n} class="video-chip">${u}</span>`;
|
|
23318
23346
|
return e.required ? `<span ${e.exclusionGroup ? `data-group="${e.exclusionGroup}"` : ""} class="exclusion-wrapper required-upload-group">${dr}${s}</span>` : s;
|
|
23319
|
-
},
|
|
23347
|
+
}, qy = `<span class="rte-text-required"><i class='iconfont icon-bitian' style='font-size: 10px;'></i></span>`, zy = (e, t) => {
|
|
23320
23348
|
const a = t[e.key] || e.defaultValue || "", l = encodeURIComponent(JSON.stringify(e.options || [])), n = e.placeholder ? ` data-placeholder="${e.placeholder}"` : "", r = e.exclusionGroup ? ` data-group="${e.exclusionGroup}"` : "", i = e.required ? ' data-required="true"' : "", u = `<span data-type="searchable-select" data-key="${e.key}" data-value="${a}" data-options="${l}"${n}${r}${i} class="rte-searchable-select-host"></span>`;
|
|
23321
|
-
return e.required ? `<span ${e.exclusionGroup ? `data-group="${e.exclusionGroup}"` : ""} class="exclusion-wrapper required-upload-group">${
|
|
23322
|
-
},
|
|
23349
|
+
return e.required ? `<span ${e.exclusionGroup ? `data-group="${e.exclusionGroup}"` : ""} class="exclusion-wrapper required-upload-group">${qy}${u}</span>` : u;
|
|
23350
|
+
}, Vy = [
|
|
23323
23351
|
{
|
|
23324
23352
|
label: "北京市",
|
|
23325
23353
|
value: "北京市",
|
|
@@ -29175,11 +29203,11 @@ const Oo = (e, t) => {
|
|
|
29175
29203
|
}
|
|
29176
29204
|
]
|
|
29177
29205
|
}
|
|
29178
|
-
],
|
|
29179
|
-
const a = t[e.key] || e.defaultValue || "", l = e.cascaderOptions && e.cascaderOptions.length > 0 ? e.cascaderOptions :
|
|
29180
|
-
return e.required ? `<span ${e.exclusionGroup ? `data-group="${e.exclusionGroup}"` : ""} class="exclusion-wrapper required-upload-group">${
|
|
29206
|
+
], Gy = `<span class="rte-text-required"><i class='iconfont icon-bitian' style='font-size: 10px;'></i></span>`, Yy = (e, t) => {
|
|
29207
|
+
const a = t[e.key] || e.defaultValue || "", l = e.cascaderOptions && e.cascaderOptions.length > 0 ? e.cascaderOptions : Vy, n = encodeURIComponent(JSON.stringify(l)), r = e.placeholder ? ` data-placeholder="${e.placeholder}"` : "", i = e.exclusionGroup ? ` data-group="${e.exclusionGroup}"` : "", u = e.required ? ' data-required="true"' : "", s = `<span data-type="cascader" data-key="${e.key}" data-value="${a}" data-options="${n}"${r}${i}${u} class="rte-cascader-host"></span>`;
|
|
29208
|
+
return e.required ? `<span ${e.exclusionGroup ? `data-group="${e.exclusionGroup}"` : ""} class="exclusion-wrapper required-upload-group">${Gy}${s}</span>` : s;
|
|
29181
29209
|
};
|
|
29182
|
-
function
|
|
29210
|
+
function Wy(e, t, a, l, n, r = {}, i, u, s, o) {
|
|
29183
29211
|
if (!e.current) return;
|
|
29184
29212
|
const c = /[;;,,。.!!??::、]/, d = (b) => {
|
|
29185
29213
|
const y = (b ?? "").trim();
|
|
@@ -29230,7 +29258,7 @@ function Gy(e, t, a, l, n, r = {}, i, u, s, o) {
|
|
|
29230
29258
|
else if (b.type === "upload" && b.key) {
|
|
29231
29259
|
const A = !!y && y.type === "text" && !y.className && !y.exclusionGroup && d(y.text), O = A ? (y.text ?? "").trim() : "", D = O ? f(O) : "";
|
|
29232
29260
|
A && (g = !0), N = Do(b, a, D);
|
|
29233
|
-
} else b.type === "select" && b.key ? N = xy(b, n) : b.type === "textarea" && b.key ? N = Ay(b, n) : b.type === "richtext" && b.key ? N = Cy(b, n) : b.type === "report-module" && b.key ? N = Oy(b, n) : b.type === "markdown-module" && b.key ? N = Dy(b, n) : b.type === "datepicker" && b.key ? N = My(b, n) : b.type === "number-input" && b.key ? N = By(b, n) : b.type === "multi-variable" && b.key ? N = Po(b, n, r, !1) : b.type === "multi-variable-select" && b.key ? N = Hy(b, n, r) : b.type === "video-url" && b.key ? N = Mo(b, s || {}) : b.type === "video-upload" && b.key ? N = Ro(b, s || {}) : b.type === "searchable-select" && b.key ? N =
|
|
29261
|
+
} else b.type === "select" && b.key ? N = xy(b, n) : b.type === "textarea" && b.key ? N = Ay(b, n) : b.type === "richtext" && b.key ? N = Cy(b, n) : b.type === "report-module" && b.key ? N = Oy(b, n) : b.type === "markdown-module" && b.key ? N = Dy(b, n) : b.type === "datepicker" && b.key ? N = My(b, n) : b.type === "number-input" && b.key ? N = By(b, n) : b.type === "multi-variable" && b.key ? N = Po(b, n, r, !1) : b.type === "multi-variable-select" && b.key ? N = Hy(b, n, r) : b.type === "video-url" && b.key ? N = Mo(b, s || {}) : b.type === "video-upload" && b.key ? N = Ro(b, s || {}) : b.type === "searchable-select" && b.key ? N = zy(b, n) : b.type === "cascader" && b.key && (N = Yy(b, n));
|
|
29234
29262
|
const k = T + N + C;
|
|
29235
29263
|
if (b.type === "text" && !b.className && !b.exclusionGroup) {
|
|
29236
29264
|
if (d(b.text) && E.length > 0) {
|
|
@@ -29277,11 +29305,11 @@ function Gy(e, t, a, l, n, r = {}, i, u, s, o) {
|
|
|
29277
29305
|
const Bo = (e) => {
|
|
29278
29306
|
const t = document.createElement("template");
|
|
29279
29307
|
return t.innerHTML = e.trim(), Array.from(t.content.childNodes);
|
|
29280
|
-
},
|
|
29308
|
+
}, jy = (e) => Bo(e).filter((t) => t.nodeType === Node.ELEMENT_NODE), Un = (e, t) => {
|
|
29281
29309
|
if (!e) return;
|
|
29282
29310
|
const a = Bo(t);
|
|
29283
29311
|
a.length > 0 && e.replaceWith(...a);
|
|
29284
|
-
}, qn = (e) => e?.closest(".required-upload-group") || null,
|
|
29312
|
+
}, qn = (e) => e?.closest(".required-upload-group") || null, Ky = (e, t) => {
|
|
29285
29313
|
if (!t) return "";
|
|
29286
29314
|
const a = new Set(
|
|
29287
29315
|
e.filter((n) => (n.type === "upload" || n.type === "video-upload" || n.type === "video-url") && n.key).map((n) => n.key)
|
|
@@ -29289,7 +29317,7 @@ const Bo = (e) => {
|
|
|
29289
29317
|
return Object.entries(t).forEach(([n, r]) => {
|
|
29290
29318
|
a.has(n) || (l[n] = r);
|
|
29291
29319
|
}), JSON.stringify(l);
|
|
29292
|
-
},
|
|
29320
|
+
}, Xy = (e, t, a, l) => {
|
|
29293
29321
|
t.forEach((n) => {
|
|
29294
29322
|
if (n.key) {
|
|
29295
29323
|
if (n.type === "upload") {
|
|
@@ -29302,7 +29330,7 @@ const Bo = (e) => {
|
|
|
29302
29330
|
const u = e.querySelector(`[data-type="upload"][data-key="${n.key}"]`), s = qn(u), c = s && !n.required ? (() => {
|
|
29303
29331
|
const { uploadHtml: b, hintHtml: y } = Oo(n, a);
|
|
29304
29332
|
return b + y;
|
|
29305
|
-
})() : i, d =
|
|
29333
|
+
})() : i, d = jy(c), h = d.find((b) => b.matches('[data-type="upload"]')) || d.find((b) => b.querySelector('[data-type="upload"]'))?.querySelector(
|
|
29306
29334
|
'[data-type="upload"]'
|
|
29307
29335
|
) || null, f = d.find((b) => b.matches(".upload-hint")) || d.find((b) => b.querySelector(".upload-hint"))?.querySelector(".upload-hint") || null, E = s || u, v = E?.nextElementSibling?.classList.contains("upload-hint") ? E.nextElementSibling : null;
|
|
29308
29336
|
u && h && u.replaceWith(h), v && f ? v.replaceWith(f) : v ? v.remove() : f && (s || h || u)?.insertAdjacentElement("afterend", f);
|
|
@@ -29320,7 +29348,7 @@ const Bo = (e) => {
|
|
|
29320
29348
|
}
|
|
29321
29349
|
});
|
|
29322
29350
|
};
|
|
29323
|
-
function
|
|
29351
|
+
function Qy(e, t, a, l, n = {}, r, i, u, s, o, c, d, h) {
|
|
29324
29352
|
const f = Z(/* @__PURE__ */ new Set()), E = Z(""), v = Z(!1), b = Z(""), y = Z({}), g = ue(() => {
|
|
29325
29353
|
if (!e.current) return;
|
|
29326
29354
|
if (t.length === 0) {
|
|
@@ -29333,11 +29361,11 @@ function Ky(e, t, a, l, n = {}, r, i, u, s, o, c, d, h) {
|
|
|
29333
29361
|
multiVariableCounts: n,
|
|
29334
29362
|
hideButtons: u,
|
|
29335
29363
|
nodeDefaults: s,
|
|
29336
|
-
nodeValues:
|
|
29364
|
+
nodeValues: Ky(t, o),
|
|
29337
29365
|
hasReportDropdown: d
|
|
29338
29366
|
});
|
|
29339
29367
|
if (!!!e.current.__tempVariableValues && b.current === m && e.current.childNodes.length > 0) {
|
|
29340
|
-
|
|
29368
|
+
Xy(e.current, t, a, c), setTimeout(() => {
|
|
29341
29369
|
da(e), Wa(e, t, a, c);
|
|
29342
29370
|
}, 0);
|
|
29343
29371
|
return;
|
|
@@ -29362,24 +29390,24 @@ function Ky(e, t, a, l, n = {}, r, i, u, s, o, c, d, h) {
|
|
|
29362
29390
|
!D && !x.getAttribute("data-report-url") && h?.current && delete h.current[I];
|
|
29363
29391
|
let H = "";
|
|
29364
29392
|
if (x.dataset.variableRender === "antd-textarea") {
|
|
29365
|
-
const
|
|
29393
|
+
const R = (x.getAttribute("data-value") || "").trim();
|
|
29366
29394
|
try {
|
|
29367
|
-
H =
|
|
29395
|
+
H = R ? decodeURIComponent(R).replace(/\r\n/g, `
|
|
29368
29396
|
`).trim() : "";
|
|
29369
29397
|
} catch {
|
|
29370
|
-
H =
|
|
29398
|
+
H = R.trim();
|
|
29371
29399
|
}
|
|
29372
29400
|
} else {
|
|
29373
|
-
const
|
|
29401
|
+
const R = (x.innerText || "").replace(/\u200B/g, "").replace(/\r\n/g, `
|
|
29374
29402
|
`);
|
|
29375
|
-
H =
|
|
29403
|
+
H = R.replace(/\n/g, "").trim().length > 0 ? R : "";
|
|
29376
29404
|
}
|
|
29377
29405
|
if (H)
|
|
29378
29406
|
f.current.add(I);
|
|
29379
29407
|
else if (f.current.has(I)) {
|
|
29380
29408
|
O.add(I);
|
|
29381
|
-
const
|
|
29382
|
-
|
|
29409
|
+
const R = x.getAttribute("data-node-type");
|
|
29410
|
+
R === "report-url" ? O.add(`${I}__url`) : R === "markdown-name" && O.add(`${I}__name`);
|
|
29383
29411
|
}
|
|
29384
29412
|
});
|
|
29385
29413
|
}
|
|
@@ -29473,28 +29501,28 @@ function Ky(e, t, a, l, n = {}, r, i, u, s, o, c, d, h) {
|
|
|
29473
29501
|
), x = {};
|
|
29474
29502
|
N || Object.entries(o).forEach(([I, H]) => {
|
|
29475
29503
|
if (!Array.isArray(H)) return;
|
|
29476
|
-
let
|
|
29504
|
+
let R = 0;
|
|
29477
29505
|
for (let _ = 0; _ < H.length; _++)
|
|
29478
|
-
`${I}_${_}` in k &&
|
|
29506
|
+
`${I}_${_}` in k && R++;
|
|
29479
29507
|
let $ = -1;
|
|
29480
29508
|
for (let _ = 0; _ < H.length; _++)
|
|
29481
29509
|
f.current.has(`${I}_${_}`) && ($ = _);
|
|
29482
|
-
if ($ >=
|
|
29483
|
-
for (let _ =
|
|
29510
|
+
if ($ >= R && R < H.length)
|
|
29511
|
+
for (let _ = R; _ < H.length; _++)
|
|
29484
29512
|
O.add(`${I}_${_}`);
|
|
29485
29513
|
}), Object.entries(o).forEach(([I, H]) => {
|
|
29486
|
-
L.has(I) || (Array.isArray(H) ? H.forEach((
|
|
29487
|
-
|
|
29514
|
+
L.has(I) || (Array.isArray(H) ? H.forEach((R, $) => {
|
|
29515
|
+
R != null && String(R).trim() !== "" && (x[`${I}_${$}`] = String(R));
|
|
29488
29516
|
}) : H != null && String(H).trim() !== "" && (t.find(($) => $.key === I && $.type === "report-url") ? x[`${I}__url`] = String(H) : x[I] = String(H)));
|
|
29489
29517
|
}), Object.entries(x).forEach(([I, H]) => {
|
|
29490
|
-
const
|
|
29491
|
-
!$ && (!
|
|
29518
|
+
const R = I in k, $ = O.has(I), _ = y.current[I] !== H;
|
|
29519
|
+
!$ && (!R || _) && (k[I] = H);
|
|
29492
29520
|
});
|
|
29493
29521
|
for (const I of Object.keys(y.current))
|
|
29494
29522
|
!(I in x) && I in k && delete k[I];
|
|
29495
29523
|
y.current = x;
|
|
29496
29524
|
}
|
|
29497
|
-
if (
|
|
29525
|
+
if (Wy(
|
|
29498
29526
|
e,
|
|
29499
29527
|
t,
|
|
29500
29528
|
a,
|
|
@@ -29511,10 +29539,10 @@ function Ky(e, t, a, l, n = {}, r, i, u, s, o, c, d, h) {
|
|
|
29511
29539
|
`[data-type="variable"][data-key="${L}"]`
|
|
29512
29540
|
);
|
|
29513
29541
|
if (!H) continue;
|
|
29514
|
-
const
|
|
29515
|
-
|
|
29542
|
+
const R = H.querySelector(".rte-report-dropdown-host");
|
|
29543
|
+
R && (R.style.display = "", R.style.visibility = "", R.classList.remove("hidden"), R.classList.add("rte-report-dropdown-host-quiet"));
|
|
29516
29544
|
const $ = [document.createTextNode(x)];
|
|
29517
|
-
|
|
29545
|
+
R && $.push(R), H.setAttribute("data-report-url", I), H.setAttribute("data-report-name", x), H.removeAttribute("data-tooltip"), H.contentEditable = "false", H.classList.add("rte-report-name-chip"), H.classList.remove("show-placeholder", "rte-variable-with-icon"), H.replaceChildren(...$), zn(H);
|
|
29518
29546
|
}
|
|
29519
29547
|
if (N && (v.current = !1), setTimeout(() => {
|
|
29520
29548
|
if (da(e), h?.current)
|
|
@@ -29535,8 +29563,8 @@ function Ky(e, t, a, l, n = {}, r, i, u, s, o, c, d, h) {
|
|
|
29535
29563
|
if (!I) continue;
|
|
29536
29564
|
const H = I.querySelector(".rte-report-dropdown-host");
|
|
29537
29565
|
H && (H.style.display = "", H.style.visibility = "", H.classList.remove("hidden"), H.classList.add("rte-report-dropdown-host-quiet"));
|
|
29538
|
-
const
|
|
29539
|
-
H &&
|
|
29566
|
+
const R = [document.createTextNode(x.name)];
|
|
29567
|
+
H && R.push(H), I.classList.remove("show-placeholder", "rte-variable-with-icon"), I.classList.add("rte-report-name-chip"), I.setAttribute("data-report-url", x.url), I.setAttribute("data-report-name", x.name), I.contentEditable = "false", I.replaceChildren(...R), zn(I);
|
|
29540
29568
|
}
|
|
29541
29569
|
Wa(e, t, a, c);
|
|
29542
29570
|
}, 0), r?.current) {
|
|
@@ -29552,8 +29580,8 @@ function Ky(e, t, a, l, n = {}, r, i, u, s, o, c, d, h) {
|
|
|
29552
29580
|
if (H) {
|
|
29553
29581
|
H.focus();
|
|
29554
29582
|
try {
|
|
29555
|
-
const
|
|
29556
|
-
H.setSelectionRange(Math.min(x,
|
|
29583
|
+
const R = H.value?.length ?? 0;
|
|
29584
|
+
H.setSelectionRange(Math.min(x, R), Math.min(x, R));
|
|
29557
29585
|
} catch {
|
|
29558
29586
|
}
|
|
29559
29587
|
r.current = null;
|
|
@@ -29561,14 +29589,14 @@ function Ky(e, t, a, l, n = {}, r, i, u, s, o, c, d, h) {
|
|
|
29561
29589
|
}
|
|
29562
29590
|
}
|
|
29563
29591
|
try {
|
|
29564
|
-
const H = document.createRange(),
|
|
29592
|
+
const H = document.createRange(), R = document.createTreeWalker(
|
|
29565
29593
|
I,
|
|
29566
29594
|
NodeFilter.SHOW_TEXT,
|
|
29567
29595
|
null
|
|
29568
29596
|
);
|
|
29569
29597
|
let $ = 0, _ = null, Y = 0;
|
|
29570
|
-
for (;
|
|
29571
|
-
const z =
|
|
29598
|
+
for (; R.nextNode(); ) {
|
|
29599
|
+
const z = R.currentNode, S = z.textContent?.length || 0;
|
|
29572
29600
|
if ($ + S >= x) {
|
|
29573
29601
|
_ = z, Y = x - $;
|
|
29574
29602
|
break;
|
|
@@ -29587,8 +29615,8 @@ function Ky(e, t, a, l, n = {}, r, i, u, s, o, c, d, h) {
|
|
|
29587
29615
|
} catch {
|
|
29588
29616
|
const H = document.createRange();
|
|
29589
29617
|
H.selectNodeContents(I), H.collapse(!1);
|
|
29590
|
-
const
|
|
29591
|
-
|
|
29618
|
+
const R = window.getSelection();
|
|
29619
|
+
R && (R.removeAllRanges(), R.addRange(H), I.focus());
|
|
29592
29620
|
}
|
|
29593
29621
|
r.current = null;
|
|
29594
29622
|
}
|
|
@@ -29599,7 +29627,7 @@ function Ky(e, t, a, l, n = {}, r, i, u, s, o, c, d, h) {
|
|
|
29599
29627
|
g();
|
|
29600
29628
|
}, [g]);
|
|
29601
29629
|
}
|
|
29602
|
-
function
|
|
29630
|
+
function Jy(e, t, a, l, n) {
|
|
29603
29631
|
ne(() => {
|
|
29604
29632
|
const r = e.current;
|
|
29605
29633
|
if (!r) return;
|
|
@@ -29651,14 +29679,14 @@ function Xy(e, t, a, l, n) {
|
|
|
29651
29679
|
const o = (y) => {
|
|
29652
29680
|
const g = y.currentTarget, m = g.dataset.uploadKey;
|
|
29653
29681
|
if (m) {
|
|
29654
|
-
const w = g.closest('[data-type="upload"]');
|
|
29682
|
+
const w = g.closest('[data-type="upload"], [data-node-type="video-url"]');
|
|
29655
29683
|
l({ key: m, anchorEl: w || g, type: "upload" });
|
|
29656
29684
|
}
|
|
29657
29685
|
}, c = (y) => {
|
|
29658
29686
|
if (n) return;
|
|
29659
29687
|
const g = y.relatedTarget;
|
|
29660
29688
|
if (g?.closest?.(".rte-tooltip-overlay")) return;
|
|
29661
|
-
const w = y.currentTarget.closest('[data-type="upload"]');
|
|
29689
|
+
const w = y.currentTarget.closest('[data-type="upload"], [data-node-type="video-url"]');
|
|
29662
29690
|
g && w?.contains(g) || l(null);
|
|
29663
29691
|
}, d = /* @__PURE__ */ new WeakSet(), h = () => {
|
|
29664
29692
|
r.querySelectorAll(".rte-tutorial-btn").forEach((y) => {
|
|
@@ -29691,7 +29719,7 @@ function Xy(e, t, a, l, n) {
|
|
|
29691
29719
|
};
|
|
29692
29720
|
}, [t, a, e, l, n]);
|
|
29693
29721
|
}
|
|
29694
|
-
function
|
|
29722
|
+
function Zy(e, t, a, l, n) {
|
|
29695
29723
|
ne(() => {
|
|
29696
29724
|
const r = e.current;
|
|
29697
29725
|
if (!r) return;
|
|
@@ -29720,7 +29748,7 @@ function Qy(e, t, a, l, n) {
|
|
|
29720
29748
|
};
|
|
29721
29749
|
}, [t, e, a, l, n]);
|
|
29722
29750
|
}
|
|
29723
|
-
function
|
|
29751
|
+
function eT(e, t, a, l) {
|
|
29724
29752
|
ne(() => {
|
|
29725
29753
|
const n = e.current;
|
|
29726
29754
|
if (!n) return;
|
|
@@ -29750,7 +29778,7 @@ function Jy(e, t, a, l) {
|
|
|
29750
29778
|
};
|
|
29751
29779
|
}, [t, e, a, l]);
|
|
29752
29780
|
}
|
|
29753
|
-
function
|
|
29781
|
+
function tT(e, t, a, l, n) {
|
|
29754
29782
|
ne(() => {
|
|
29755
29783
|
const r = e.current;
|
|
29756
29784
|
if (!r) return;
|
|
@@ -29781,7 +29809,7 @@ function Zy(e, t, a, l, n) {
|
|
|
29781
29809
|
};
|
|
29782
29810
|
}, [t, a, e, l, n]);
|
|
29783
29811
|
}
|
|
29784
|
-
function
|
|
29812
|
+
function aT(e, t, a, l, n, r, i, u) {
|
|
29785
29813
|
ne(() => {
|
|
29786
29814
|
const s = setTimeout(() => {
|
|
29787
29815
|
Wa(e, t, a, n), br(e, t, a, l, n, {
|
|
@@ -29792,7 +29820,7 @@ function eT(e, t, a, l, n, r, i, u) {
|
|
|
29792
29820
|
return () => clearTimeout(s);
|
|
29793
29821
|
}, [a, t, e, l, n, r, i, u]);
|
|
29794
29822
|
}
|
|
29795
|
-
function
|
|
29823
|
+
function lT(e, t) {
|
|
29796
29824
|
const a = Z(0), l = Z(0);
|
|
29797
29825
|
ne(() => {
|
|
29798
29826
|
if (!e.current) return;
|
|
@@ -29862,12 +29890,12 @@ function tT(e, t) {
|
|
|
29862
29890
|
};
|
|
29863
29891
|
}, [e, t]);
|
|
29864
29892
|
}
|
|
29865
|
-
var kl = { exports: {} },
|
|
29893
|
+
var kl = { exports: {} }, nT = kl.exports, Du;
|
|
29866
29894
|
function Fo() {
|
|
29867
29895
|
return Du || (Du = 1, function(e, t) {
|
|
29868
29896
|
(function(a, l) {
|
|
29869
29897
|
e.exports = l();
|
|
29870
|
-
})(
|
|
29898
|
+
})(nT, function() {
|
|
29871
29899
|
var a = 1e3, l = 6e4, n = 36e5, r = "millisecond", i = "second", u = "minute", s = "hour", o = "day", c = "week", d = "month", h = "quarter", f = "year", E = "date", v = "Invalid Date", b = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, y = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, g = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(L) {
|
|
29872
29900
|
var x = ["th", "st", "nd", "rd"], I = L % 100;
|
|
29873
29901
|
return "[" + L + (x[(I - 20) % 10] || x[I] || x[0]) + "]";
|
|
@@ -29875,12 +29903,12 @@ function Fo() {
|
|
|
29875
29903
|
var H = String(L);
|
|
29876
29904
|
return !H || H.length >= x ? L : "" + Array(x + 1 - H.length).join(I) + L;
|
|
29877
29905
|
}, w = { s: m, z: function(L) {
|
|
29878
|
-
var x = -L.utcOffset(), I = Math.abs(x), H = Math.floor(I / 60),
|
|
29879
|
-
return (x <= 0 ? "+" : "-") + m(H, 2, "0") + ":" + m(
|
|
29906
|
+
var x = -L.utcOffset(), I = Math.abs(x), H = Math.floor(I / 60), R = I % 60;
|
|
29907
|
+
return (x <= 0 ? "+" : "-") + m(H, 2, "0") + ":" + m(R, 2, "0");
|
|
29880
29908
|
}, m: function L(x, I) {
|
|
29881
29909
|
if (x.date() < I.date()) return -L(I, x);
|
|
29882
|
-
var H = 12 * (I.year() - x.year()) + (I.month() - x.month()),
|
|
29883
|
-
return +(-(H + (I -
|
|
29910
|
+
var H = 12 * (I.year() - x.year()) + (I.month() - x.month()), R = x.clone().add(H, d), $ = I - R < 0, _ = x.clone().add(H + ($ ? -1 : 1), d);
|
|
29911
|
+
return +(-(H + (I - R) / ($ ? R - _ : _ - R)) || 0);
|
|
29884
29912
|
}, a: function(L) {
|
|
29885
29913
|
return L < 0 ? Math.ceil(L) || 0 : Math.floor(L);
|
|
29886
29914
|
}, p: function(L) {
|
|
@@ -29892,18 +29920,18 @@ function Fo() {
|
|
|
29892
29920
|
var N = "$isDayjsObject", k = function(L) {
|
|
29893
29921
|
return L instanceof F || !(!L || !L[N]);
|
|
29894
29922
|
}, A = function L(x, I, H) {
|
|
29895
|
-
var
|
|
29923
|
+
var R;
|
|
29896
29924
|
if (!x) return T;
|
|
29897
29925
|
if (typeof x == "string") {
|
|
29898
29926
|
var $ = x.toLowerCase();
|
|
29899
|
-
C[$] && (
|
|
29927
|
+
C[$] && (R = $), I && (C[$] = I, R = $);
|
|
29900
29928
|
var _ = x.split("-");
|
|
29901
|
-
if (!
|
|
29929
|
+
if (!R && _.length > 1) return L(_[0]);
|
|
29902
29930
|
} else {
|
|
29903
29931
|
var Y = x.name;
|
|
29904
|
-
C[Y] = x,
|
|
29932
|
+
C[Y] = x, R = Y;
|
|
29905
29933
|
}
|
|
29906
|
-
return !H &&
|
|
29934
|
+
return !H && R && (T = R), R || !H && T;
|
|
29907
29935
|
}, O = function(L, x) {
|
|
29908
29936
|
if (k(L)) return L.clone();
|
|
29909
29937
|
var I = typeof x == "object" ? x : {};
|
|
@@ -29919,18 +29947,18 @@ function Fo() {
|
|
|
29919
29947
|
var x = L.prototype;
|
|
29920
29948
|
return x.parse = function(I) {
|
|
29921
29949
|
this.$d = function(H) {
|
|
29922
|
-
var
|
|
29923
|
-
if (
|
|
29924
|
-
if (D.u(
|
|
29925
|
-
if (
|
|
29926
|
-
if (typeof
|
|
29927
|
-
var _ =
|
|
29950
|
+
var R = H.date, $ = H.utc;
|
|
29951
|
+
if (R === null) return /* @__PURE__ */ new Date(NaN);
|
|
29952
|
+
if (D.u(R)) return /* @__PURE__ */ new Date();
|
|
29953
|
+
if (R instanceof Date) return new Date(R);
|
|
29954
|
+
if (typeof R == "string" && !/Z$/i.test(R)) {
|
|
29955
|
+
var _ = R.match(b);
|
|
29928
29956
|
if (_) {
|
|
29929
29957
|
var Y = _[2] - 1 || 0, z = (_[7] || "0").substring(0, 3);
|
|
29930
29958
|
return $ ? new Date(Date.UTC(_[1], Y, _[3] || 1, _[4] || 0, _[5] || 0, _[6] || 0, z)) : new Date(_[1], Y, _[3] || 1, _[4] || 0, _[5] || 0, _[6] || 0, z);
|
|
29931
29959
|
}
|
|
29932
29960
|
}
|
|
29933
|
-
return new Date(
|
|
29961
|
+
return new Date(R);
|
|
29934
29962
|
}(I), this.init();
|
|
29935
29963
|
}, x.init = function() {
|
|
29936
29964
|
var I = this.$d;
|
|
@@ -29940,24 +29968,24 @@ function Fo() {
|
|
|
29940
29968
|
}, x.isValid = function() {
|
|
29941
29969
|
return this.$d.toString() !== v;
|
|
29942
29970
|
}, x.isSame = function(I, H) {
|
|
29943
|
-
var
|
|
29944
|
-
return this.startOf(H) <=
|
|
29971
|
+
var R = O(I);
|
|
29972
|
+
return this.startOf(H) <= R && R <= this.endOf(H);
|
|
29945
29973
|
}, x.isAfter = function(I, H) {
|
|
29946
29974
|
return O(I) < this.startOf(H);
|
|
29947
29975
|
}, x.isBefore = function(I, H) {
|
|
29948
29976
|
return this.endOf(H) < O(I);
|
|
29949
|
-
}, x.$g = function(I, H,
|
|
29950
|
-
return D.u(I) ? this[H] : this.set(
|
|
29977
|
+
}, x.$g = function(I, H, R) {
|
|
29978
|
+
return D.u(I) ? this[H] : this.set(R, I);
|
|
29951
29979
|
}, x.unix = function() {
|
|
29952
29980
|
return Math.floor(this.valueOf() / 1e3);
|
|
29953
29981
|
}, x.valueOf = function() {
|
|
29954
29982
|
return this.$d.getTime();
|
|
29955
29983
|
}, x.startOf = function(I, H) {
|
|
29956
|
-
var
|
|
29957
|
-
var Te = D.w(
|
|
29984
|
+
var R = this, $ = !!D.u(H) || H, _ = D.p(I), Y = function(de, be) {
|
|
29985
|
+
var Te = D.w(R.$u ? Date.UTC(R.$y, be, de) : new Date(R.$y, be, de), R);
|
|
29958
29986
|
return $ ? Te : Te.endOf(o);
|
|
29959
|
-
}, z = function(de,
|
|
29960
|
-
return D.w(
|
|
29987
|
+
}, z = function(de, be) {
|
|
29988
|
+
return D.w(R.toDate()[de].apply(R.toDate("s"), ($ ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(be)), R);
|
|
29961
29989
|
}, S = this.$W, q = this.$M, V = this.$D, K = "set" + (this.$u ? "UTC" : "");
|
|
29962
29990
|
switch (_) {
|
|
29963
29991
|
case f:
|
|
@@ -29982,7 +30010,7 @@ function Fo() {
|
|
|
29982
30010
|
}, x.endOf = function(I) {
|
|
29983
30011
|
return this.startOf(I, !1);
|
|
29984
30012
|
}, x.$set = function(I, H) {
|
|
29985
|
-
var
|
|
30013
|
+
var R, $ = D.p(I), _ = "set" + (this.$u ? "UTC" : ""), Y = (R = {}, R[o] = _ + "Date", R[E] = _ + "Date", R[d] = _ + "Month", R[f] = _ + "FullYear", R[s] = _ + "Hours", R[u] = _ + "Minutes", R[i] = _ + "Seconds", R[r] = _ + "Milliseconds", R)[$], z = $ === o ? this.$D + (H - this.$W) : H;
|
|
29986
30014
|
if ($ === d || $ === f) {
|
|
29987
30015
|
var S = this.clone().set(E, 1);
|
|
29988
30016
|
S.$d[Y](z), S.init(), this.$d = S.set(E, Math.min(this.$D, S.daysInMonth())).$d;
|
|
@@ -29993,7 +30021,7 @@ function Fo() {
|
|
|
29993
30021
|
}, x.get = function(I) {
|
|
29994
30022
|
return this[D.p(I)]();
|
|
29995
30023
|
}, x.add = function(I, H) {
|
|
29996
|
-
var
|
|
30024
|
+
var R, $ = this;
|
|
29997
30025
|
I = Number(I);
|
|
29998
30026
|
var _ = D.p(H), Y = function(q) {
|
|
29999
30027
|
var V = O($);
|
|
@@ -30003,22 +30031,22 @@ function Fo() {
|
|
|
30003
30031
|
if (_ === f) return this.set(f, this.$y + I);
|
|
30004
30032
|
if (_ === o) return Y(1);
|
|
30005
30033
|
if (_ === c) return Y(7);
|
|
30006
|
-
var z = (
|
|
30034
|
+
var z = (R = {}, R[u] = l, R[s] = n, R[i] = a, R)[_] || 1, S = this.$d.getTime() + I * z;
|
|
30007
30035
|
return D.w(S, this);
|
|
30008
30036
|
}, x.subtract = function(I, H) {
|
|
30009
30037
|
return this.add(-1 * I, H);
|
|
30010
30038
|
}, x.format = function(I) {
|
|
30011
|
-
var H = this,
|
|
30012
|
-
if (!this.isValid()) return
|
|
30013
|
-
var $ = I || "YYYY-MM-DDTHH:mm:ssZ", _ = D.z(this), Y = this.$H, z = this.$m, S = this.$M, q =
|
|
30014
|
-
return
|
|
30015
|
-
}, te = function(
|
|
30016
|
-
return D.s(Y % 12 || 12,
|
|
30017
|
-
}, de = K || function(
|
|
30018
|
-
var Ie =
|
|
30039
|
+
var H = this, R = this.$locale();
|
|
30040
|
+
if (!this.isValid()) return R.invalidDate || v;
|
|
30041
|
+
var $ = I || "YYYY-MM-DDTHH:mm:ssZ", _ = D.z(this), Y = this.$H, z = this.$m, S = this.$M, q = R.weekdays, V = R.months, K = R.meridiem, j = function(be, Te, Be, Ie) {
|
|
30042
|
+
return be && (be[Te] || be(H, $)) || Be[Te].slice(0, Ie);
|
|
30043
|
+
}, te = function(be) {
|
|
30044
|
+
return D.s(Y % 12 || 12, be, "0");
|
|
30045
|
+
}, de = K || function(be, Te, Be) {
|
|
30046
|
+
var Ie = be < 12 ? "AM" : "PM";
|
|
30019
30047
|
return Be ? Ie.toLowerCase() : Ie;
|
|
30020
30048
|
};
|
|
30021
|
-
return $.replace(y, function(
|
|
30049
|
+
return $.replace(y, function(be, Te) {
|
|
30022
30050
|
return Te || function(Be) {
|
|
30023
30051
|
switch (Be) {
|
|
30024
30052
|
case "YY":
|
|
@@ -30030,7 +30058,7 @@ function Fo() {
|
|
|
30030
30058
|
case "MM":
|
|
30031
30059
|
return D.s(S + 1, 2, "0");
|
|
30032
30060
|
case "MMM":
|
|
30033
|
-
return j(
|
|
30061
|
+
return j(R.monthsShort, S, V, 3);
|
|
30034
30062
|
case "MMMM":
|
|
30035
30063
|
return j(V, S);
|
|
30036
30064
|
case "D":
|
|
@@ -30040,9 +30068,9 @@ function Fo() {
|
|
|
30040
30068
|
case "d":
|
|
30041
30069
|
return String(H.$W);
|
|
30042
30070
|
case "dd":
|
|
30043
|
-
return j(
|
|
30071
|
+
return j(R.weekdaysMin, H.$W, q, 2);
|
|
30044
30072
|
case "ddd":
|
|
30045
|
-
return j(
|
|
30073
|
+
return j(R.weekdaysShort, H.$W, q, 3);
|
|
30046
30074
|
case "dddd":
|
|
30047
30075
|
return q[H.$W];
|
|
30048
30076
|
case "H":
|
|
@@ -30071,11 +30099,11 @@ function Fo() {
|
|
|
30071
30099
|
return _;
|
|
30072
30100
|
}
|
|
30073
30101
|
return null;
|
|
30074
|
-
}(
|
|
30102
|
+
}(be) || _.replace(":", "");
|
|
30075
30103
|
});
|
|
30076
30104
|
}, x.utcOffset = function() {
|
|
30077
30105
|
return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
|
|
30078
|
-
}, x.diff = function(I, H,
|
|
30106
|
+
}, x.diff = function(I, H, R) {
|
|
30079
30107
|
var $, _ = this, Y = D.p(H), z = O(I), S = (z.utcOffset() - this.utcOffset()) * l, q = this - z, V = function() {
|
|
30080
30108
|
return D.m(_, z);
|
|
30081
30109
|
};
|
|
@@ -30107,15 +30135,15 @@ function Fo() {
|
|
|
30107
30135
|
default:
|
|
30108
30136
|
$ = q;
|
|
30109
30137
|
}
|
|
30110
|
-
return
|
|
30138
|
+
return R ? $ : D.a($);
|
|
30111
30139
|
}, x.daysInMonth = function() {
|
|
30112
30140
|
return this.endOf(d).$D;
|
|
30113
30141
|
}, x.$locale = function() {
|
|
30114
30142
|
return C[this.$L];
|
|
30115
30143
|
}, x.locale = function(I, H) {
|
|
30116
30144
|
if (!I) return this.$L;
|
|
30117
|
-
var
|
|
30118
|
-
return $ && (
|
|
30145
|
+
var R = this.clone(), $ = A(I, H, !0);
|
|
30146
|
+
return $ && (R.$L = $), R;
|
|
30119
30147
|
}, x.clone = function() {
|
|
30120
30148
|
return D.w(this.$d, this);
|
|
30121
30149
|
}, x.toDate = function() {
|
|
@@ -30140,14 +30168,14 @@ function Fo() {
|
|
|
30140
30168
|
});
|
|
30141
30169
|
}(kl)), kl.exports;
|
|
30142
30170
|
}
|
|
30143
|
-
var
|
|
30144
|
-
const Nl = /* @__PURE__ */ Er(
|
|
30145
|
-
var Il = { exports: {} },
|
|
30146
|
-
function
|
|
30171
|
+
var rT = Fo();
|
|
30172
|
+
const Nl = /* @__PURE__ */ Er(rT);
|
|
30173
|
+
var Il = { exports: {} }, iT = Il.exports, Pu;
|
|
30174
|
+
function uT() {
|
|
30147
30175
|
return Pu || (Pu = 1, function(e, t) {
|
|
30148
30176
|
(function(a, l) {
|
|
30149
30177
|
e.exports = l(Fo());
|
|
30150
|
-
})(
|
|
30178
|
+
})(iT, function(a) {
|
|
30151
30179
|
function l(i) {
|
|
30152
30180
|
return i && typeof i == "object" && "default" in i ? i : { default: i };
|
|
30153
30181
|
}
|
|
@@ -30161,7 +30189,7 @@ function rT() {
|
|
|
30161
30189
|
});
|
|
30162
30190
|
}(Il)), Il.exports;
|
|
30163
30191
|
}
|
|
30164
|
-
|
|
30192
|
+
uT();
|
|
30165
30193
|
function el(e) {
|
|
30166
30194
|
"@babel/helpers - typeof";
|
|
30167
30195
|
return el = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) {
|
|
@@ -30170,7 +30198,7 @@ function el(e) {
|
|
|
30170
30198
|
return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
|
|
30171
30199
|
}, el(e);
|
|
30172
30200
|
}
|
|
30173
|
-
function
|
|
30201
|
+
function sT(e, t) {
|
|
30174
30202
|
if (el(e) != "object" || !e) return e;
|
|
30175
30203
|
var a = e[Symbol.toPrimitive];
|
|
30176
30204
|
if (a !== void 0) {
|
|
@@ -30180,12 +30208,12 @@ function iT(e, t) {
|
|
|
30180
30208
|
}
|
|
30181
30209
|
return (t === "string" ? String : Number)(e);
|
|
30182
30210
|
}
|
|
30183
|
-
function
|
|
30184
|
-
var t =
|
|
30211
|
+
function oT(e) {
|
|
30212
|
+
var t = sT(e, "string");
|
|
30185
30213
|
return el(t) == "symbol" ? t : t + "";
|
|
30186
30214
|
}
|
|
30187
|
-
function
|
|
30188
|
-
return (t =
|
|
30215
|
+
function cT(e, t, a) {
|
|
30216
|
+
return (t = oT(t)) in e ? Object.defineProperty(e, t, {
|
|
30189
30217
|
value: a,
|
|
30190
30218
|
enumerable: !0,
|
|
30191
30219
|
configurable: !0,
|
|
@@ -30206,19 +30234,19 @@ function Ru(e) {
|
|
|
30206
30234
|
for (var t = 1; t < arguments.length; t++) {
|
|
30207
30235
|
var a = arguments[t] != null ? arguments[t] : {};
|
|
30208
30236
|
t % 2 ? Mu(Object(a), !0).forEach(function(l) {
|
|
30209
|
-
|
|
30237
|
+
cT(e, l, a[l]);
|
|
30210
30238
|
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(a)) : Mu(Object(a)).forEach(function(l) {
|
|
30211
30239
|
Object.defineProperty(e, l, Object.getOwnPropertyDescriptor(a, l));
|
|
30212
30240
|
});
|
|
30213
30241
|
}
|
|
30214
30242
|
return e;
|
|
30215
30243
|
}
|
|
30216
|
-
var
|
|
30244
|
+
var dT = {
|
|
30217
30245
|
yearFormat: "YYYY",
|
|
30218
30246
|
dayFormat: "D",
|
|
30219
30247
|
cellMeridiemFormat: "A",
|
|
30220
30248
|
monthBeforeYear: !0
|
|
30221
|
-
},
|
|
30249
|
+
}, fT = Ru(Ru({}, dT), {}, {
|
|
30222
30250
|
locale: "zh_CN",
|
|
30223
30251
|
today: "今天",
|
|
30224
30252
|
now: "此刻",
|
|
@@ -30246,7 +30274,7 @@ var oT = {
|
|
|
30246
30274
|
cellDateFormat: "D",
|
|
30247
30275
|
monthBeforeYear: !1
|
|
30248
30276
|
});
|
|
30249
|
-
const
|
|
30277
|
+
const pT = {
|
|
30250
30278
|
placeholder: "请选择时间",
|
|
30251
30279
|
rangePlaceholder: ["开始时间", "结束时间"]
|
|
30252
30280
|
}, Ho = {
|
|
@@ -30261,12 +30289,12 @@ const dT = {
|
|
|
30261
30289
|
rangeMonthPlaceholder: ["开始月份", "结束月份"],
|
|
30262
30290
|
rangeQuarterPlaceholder: ["开始季度", "结束季度"],
|
|
30263
30291
|
rangeWeekPlaceholder: ["开始周", "结束周"]
|
|
30264
|
-
},
|
|
30265
|
-
timePickerLocale: Object.assign({},
|
|
30292
|
+
}, fT),
|
|
30293
|
+
timePickerLocale: Object.assign({}, pT)
|
|
30266
30294
|
};
|
|
30267
30295
|
Ho.lang.ok = "确定";
|
|
30268
30296
|
Nl.locale("zh-cn");
|
|
30269
|
-
const { RangePicker:
|
|
30297
|
+
const { RangePicker: hT } = Oc, bT = ({ host: e, onChange: t }) => {
|
|
30270
30298
|
const a = e.dataset.key, l = e.dataset.value, n = e.dataset.placeholder, r = e.dataset.limitRange ? parseInt(e.dataset.limitRange, 10) : void 0, i = e.dataset.disableFuture === "true", [u, s] = re(() => {
|
|
30271
30299
|
if (!l) return null;
|
|
30272
30300
|
const v = l.split(",");
|
|
@@ -30289,7 +30317,7 @@ const { RangePicker: fT } = Oc, pT = ({ host: e, onChange: t }) => {
|
|
|
30289
30317
|
lineHeight: "30px"
|
|
30290
30318
|
},
|
|
30291
30319
|
children: /* @__PURE__ */ G(
|
|
30292
|
-
|
|
30320
|
+
hT,
|
|
30293
30321
|
{
|
|
30294
30322
|
value: u,
|
|
30295
30323
|
disabledDate: (v) => v ? i && v.isAfter(Nl(), "day") ? !0 : !r || !o || !o[0] ? !1 : Math.abs(v.diff(o[0], "days")) > r : !1,
|
|
@@ -30319,7 +30347,7 @@ const { RangePicker: fT } = Oc, pT = ({ host: e, onChange: t }) => {
|
|
|
30319
30347
|
),
|
|
30320
30348
|
e
|
|
30321
30349
|
);
|
|
30322
|
-
},
|
|
30350
|
+
}, mT = (e) => {
|
|
30323
30351
|
const [t, a] = re([]);
|
|
30324
30352
|
return ne(() => {
|
|
30325
30353
|
const l = e.current;
|
|
@@ -30330,7 +30358,7 @@ const { RangePicker: fT } = Oc, pT = ({ host: e, onChange: t }) => {
|
|
|
30330
30358
|
const o = s.getAttribute("data-key");
|
|
30331
30359
|
o && u.push(
|
|
30332
30360
|
/* @__PURE__ */ G(
|
|
30333
|
-
|
|
30361
|
+
bT,
|
|
30334
30362
|
{
|
|
30335
30363
|
host: s,
|
|
30336
30364
|
onChange: () => {
|
|
@@ -30370,7 +30398,7 @@ const { RangePicker: fT } = Oc, pT = ({ host: e, onChange: t }) => {
|
|
|
30370
30398
|
});
|
|
30371
30399
|
return r.observe(l, { childList: !0, subtree: !0 }), () => r.disconnect();
|
|
30372
30400
|
}, [e]), t;
|
|
30373
|
-
},
|
|
30401
|
+
}, vT = ({
|
|
30374
30402
|
config: e,
|
|
30375
30403
|
onSend: t,
|
|
30376
30404
|
isProcessing: a = !1,
|
|
@@ -30405,12 +30433,12 @@ const { RangePicker: fT } = Oc, pT = ({ host: e, onChange: t }) => {
|
|
|
30405
30433
|
videoUrlParse: x,
|
|
30406
30434
|
videoUpload: I,
|
|
30407
30435
|
reportListFetch: H,
|
|
30408
|
-
onReportGoGenerate:
|
|
30436
|
+
onReportGoGenerate: R,
|
|
30409
30437
|
onViewReport: $,
|
|
30410
30438
|
hideCurrentSessionReport: _,
|
|
30411
30439
|
reportNameResolve: Y
|
|
30412
30440
|
}) => {
|
|
30413
|
-
const [z, S] = Dc.useMessage(), q = Z(null), V = Z(null), K = Z(null), j = Z(null), te = Z(null), de = Z(null), [
|
|
30441
|
+
const [z, S] = Dc.useMessage(), q = Z(null), V = Z(null), K = Z(null), j = Z(null), te = Z(null), de = Z(null), [be, Te] = re(!1), Be = Z("");
|
|
30414
30442
|
if (!Be.current) {
|
|
30415
30443
|
const Q = Math.random().toString(36).slice(2, 8);
|
|
30416
30444
|
Be.current = `rte_${Q}`;
|
|
@@ -30680,12 +30708,12 @@ const { RangePicker: fT } = Oc, pT = ({ host: e, onChange: t }) => {
|
|
|
30680
30708
|
j,
|
|
30681
30709
|
H,
|
|
30682
30710
|
uc,
|
|
30683
|
-
|
|
30711
|
+
R,
|
|
30684
30712
|
$,
|
|
30685
30713
|
`${sc}::${JSON.stringify(bt)}`,
|
|
30686
30714
|
_
|
|
30687
30715
|
);
|
|
30688
|
-
|
|
30716
|
+
Qy(j, De, Ie, r, bt, Jl, void 0, f, void 0, O, ct, !!H, zt);
|
|
30689
30717
|
const nn = Z(/* @__PURE__ */ new Set()), Qr = Z(De), Jr = Z(O);
|
|
30690
30718
|
(Qr.current !== De || Jr.current !== O) && (Qr.current = De, Jr.current = O, nn.current = /* @__PURE__ */ new Set()), ne(() => {
|
|
30691
30719
|
if (!O || !De || De.length === 0) return;
|
|
@@ -30795,9 +30823,9 @@ const { RangePicker: fT } = Oc, pT = ({ host: e, onChange: t }) => {
|
|
|
30795
30823
|
});
|
|
30796
30824
|
}
|
|
30797
30825
|
}
|
|
30798
|
-
}, [O, e, Ot]), Ed(j),
|
|
30826
|
+
}, [O, e, Ot]), Ed(j), Jy(j, De, Ie, We, A), Zy(j, De, We, f, A), tT(j, De, Ie, We, A), eT(j, De, We, A);
|
|
30799
30827
|
const rn = !!w;
|
|
30800
|
-
|
|
30828
|
+
aT(
|
|
30801
30829
|
j,
|
|
30802
30830
|
De,
|
|
30803
30831
|
Ie,
|
|
@@ -30808,7 +30836,7 @@ const { RangePicker: fT } = Oc, pT = ({ host: e, onChange: t }) => {
|
|
|
30808
30836
|
rn
|
|
30809
30837
|
), Md(j, x, ct, ga, [De]);
|
|
30810
30838
|
const cc = Rd(I, ga, j);
|
|
30811
|
-
Bd(j, ct, We, A),
|
|
30839
|
+
Bd(j, ct, We, A), lT(j, Ql);
|
|
30812
30840
|
const ti = ud(j), dc = od(j), fc = dd(j), ai = md(j);
|
|
30813
30841
|
ne(() => {
|
|
30814
30842
|
if (!j.current) return;
|
|
@@ -30817,7 +30845,7 @@ const { RangePicker: fT } = Oc, pT = ({ host: e, onChange: t }) => {
|
|
|
30817
30845
|
ce.innerHTML = se ? '<i class="iconfont icon-shouqi1"></i><span class="rte-richtext-toggle-label">收起</span>' : '<i class="iconfont icon-zhankai2"></i><span class="rte-richtext-toggle-label">展开</span>';
|
|
30818
30846
|
});
|
|
30819
30847
|
}, [De, j]);
|
|
30820
|
-
const li =
|
|
30848
|
+
const li = mT(j), { measureExpandedContentHeight: _a } = Ud({
|
|
30821
30849
|
collapsed: m,
|
|
30822
30850
|
collapseTransitionMs: k,
|
|
30823
30851
|
contentRef: V,
|
|
@@ -31013,14 +31041,14 @@ const { RangePicker: fT } = Oc, pT = ({ host: e, onChange: t }) => {
|
|
|
31013
31041
|
// 折叠时覆盖 CSS 的 min-height:58px,否则 min-height > max-height 时 min-height 优先,导致露出第二行
|
|
31014
31042
|
minHeight: m ? 0 : void 0,
|
|
31015
31043
|
overflow: wc,
|
|
31016
|
-
overscrollBehavior:
|
|
31044
|
+
overscrollBehavior: be ? "contain" : "auto",
|
|
31017
31045
|
transition: Ac,
|
|
31018
31046
|
willChange: "max-height"
|
|
31019
31047
|
}, si = e.find((Q) => Q.type === "tag"), Yt = si?.text ? i.find((Q) => Q.label === si.text) : void 0;
|
|
31020
31048
|
return /* @__PURE__ */ pe(
|
|
31021
31049
|
"div",
|
|
31022
31050
|
{
|
|
31023
|
-
className: `rich-text-editor ${
|
|
31051
|
+
className: `rich-text-editor ${be ? "rte-editor-selected" : ""}`,
|
|
31024
31052
|
style: Ec,
|
|
31025
31053
|
"data-disabled": l,
|
|
31026
31054
|
ref: q,
|
|
@@ -31286,7 +31314,7 @@ const { RangePicker: fT } = Oc, pT = ({ host: e, onChange: t }) => {
|
|
|
31286
31314
|
}
|
|
31287
31315
|
);
|
|
31288
31316
|
};
|
|
31289
|
-
|
|
31317
|
+
vT.__docgenInfo = {
|
|
31290
31318
|
displayName: "RichTextEditor",
|
|
31291
31319
|
description: "结构化富文本输入组件,支持标签、变量输入块、文件上传以及互斥显示逻辑。",
|
|
31292
31320
|
props: {
|
|
@@ -31314,12 +31342,12 @@ bT.__docgenInfo = {
|
|
|
31314
31342
|
}
|
|
31315
31343
|
}
|
|
31316
31344
|
};
|
|
31317
|
-
const Bu = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAcCAYAAAByDd+UAAAACXBIWXMAABYlAAAWJQFJUiTwAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAFSSURBVHgB3ZTtccIwDIaVXv83I2SDZgSP0BHMBG0naEZhA2boBGQDswHdQJUOGRxjO0Z8HPDe6eJzJD2W4gjgEYSIn2xwK6EIFHqBGysJpMP3ZB0oRbEtmal1NtIxl4OWWsoxEsvqofJ0rgTNASOYq+7SXKDsuYvAcgkq/PWwBLQWqIfdjeRStaBUc4qzgLi9/BzJNmS/sh6bpvmrTfSFacU3scWy1mQryWdSnXiFE8QVUJINLTuyhWzzz/1OZmTN9hEckqtfUOwIGlGCpVRjE+94JFqpMtTeVzO8/UmPxpZU8Qa7aln8Tb9pfwla4WHWrjPvvbbnTBsX7PmLs83EDAH0BxSw1G31+/1FoDg/vPcXR+wocQS1apj4+P92FfhOoLyuBfYlmPgYnGoCjWADzAkzUyJ430awLmphPaxWQVU22BuuApPkHaanjcXSN3t6/QNjTMSJWDcs1QAAAABJRU5ErkJggg==",
|
|
31345
|
+
const Bu = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAcCAYAAAByDd+UAAAACXBIWXMAABYlAAAWJQFJUiTwAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAFSSURBVHgB3ZTtccIwDIaVXv83I2SDZgSP0BHMBG0naEZhA2boBGQDswHdQJUOGRxjO0Z8HPDe6eJzJD2W4gjgEYSIn2xwK6EIFHqBGysJpMP3ZB0oRbEtmal1NtIxl4OWWsoxEsvqofJ0rgTNASOYq+7SXKDsuYvAcgkq/PWwBLQWqIfdjeRStaBUc4qzgLi9/BzJNmS/sh6bpvmrTfSFacU3scWy1mQryWdSnXiFE8QVUJINLTuyhWzzz/1OZmTN9hEckqtfUOwIGlGCpVRjE+94JFqpMtTeVzO8/UmPxpZU8Qa7aln8Tb9pfwla4WHWrjPvvbbnTBsX7PmLs83EDAH0BxSw1G31+/1FoDg/vPcXR+wocQS1apj4+P92FfhOoLyuBfYlmPgYnGoCjWADzAkzUyJ430awLmphPaxWQVU22BuuApPkHaanjcXSN3t6/QNjTMSJWDcs1QAAAABJRU5ErkJggg==", gT = [
|
|
31318
31346
|
{ label: "5页", value: 5 },
|
|
31319
31347
|
{ label: "10页", value: 10 },
|
|
31320
31348
|
{ label: "15页", value: 15 },
|
|
31321
31349
|
{ label: "30页", value: 30 }
|
|
31322
|
-
],
|
|
31350
|
+
], ET = ({
|
|
31323
31351
|
autoLoading: e,
|
|
31324
31352
|
batchSize: t,
|
|
31325
31353
|
loadingProgress: a,
|
|
@@ -31382,7 +31410,7 @@ const Bu = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAcCAYAAAByDd+UAA
|
|
|
31382
31410
|
{
|
|
31383
31411
|
value: t,
|
|
31384
31412
|
onChange: n,
|
|
31385
|
-
options:
|
|
31413
|
+
options: gT,
|
|
31386
31414
|
disabled: e,
|
|
31387
31415
|
size: "small",
|
|
31388
31416
|
className: "auto_load_select",
|
|
@@ -31392,7 +31420,7 @@ const Bu = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAcCAYAAAByDd+UAA
|
|
|
31392
31420
|
]
|
|
31393
31421
|
}
|
|
31394
31422
|
)
|
|
31395
|
-
] }),
|
|
31423
|
+
] }), yT = ({
|
|
31396
31424
|
current: e,
|
|
31397
31425
|
loadIcon: t,
|
|
31398
31426
|
pageSize: a,
|
|
@@ -31426,7 +31454,7 @@ const Bu = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAcCAYAAAByDd+UAA
|
|
|
31426
31454
|
"条数据"
|
|
31427
31455
|
] }),
|
|
31428
31456
|
!v && /* @__PURE__ */ G(
|
|
31429
|
-
|
|
31457
|
+
ET,
|
|
31430
31458
|
{
|
|
31431
31459
|
loadIcon: t || void 0,
|
|
31432
31460
|
autoLoading: i,
|
|
@@ -31473,7 +31501,7 @@ const Bu = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAcCAYAAAByDd+UAA
|
|
|
31473
31501
|
}
|
|
31474
31502
|
)
|
|
31475
31503
|
] });
|
|
31476
|
-
},
|
|
31504
|
+
}, TT = (e) => {
|
|
31477
31505
|
const {
|
|
31478
31506
|
loading: t,
|
|
31479
31507
|
autoLoading: a,
|
|
@@ -31510,7 +31538,7 @@ const Bu = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAcCAYAAAByDd+UAA
|
|
|
31510
31538
|
}
|
|
31511
31539
|
),
|
|
31512
31540
|
/* @__PURE__ */ G(
|
|
31513
|
-
|
|
31541
|
+
yT,
|
|
31514
31542
|
{
|
|
31515
31543
|
loading: t,
|
|
31516
31544
|
autoLoading: a,
|
|
@@ -31528,7 +31556,7 @@ const Bu = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAcCAYAAAByDd+UAA
|
|
|
31528
31556
|
)
|
|
31529
31557
|
] });
|
|
31530
31558
|
};
|
|
31531
|
-
|
|
31559
|
+
TT.__docgenInfo = {
|
|
31532
31560
|
displayName: "VirtualTable",
|
|
31533
31561
|
description: "虚拟滚动表格组件,支持分页、数据缓存和自动加载功能。",
|
|
31534
31562
|
props: {
|
|
@@ -31635,7 +31663,7 @@ ET.__docgenInfo = {
|
|
|
31635
31663
|
}
|
|
31636
31664
|
}
|
|
31637
31665
|
};
|
|
31638
|
-
const
|
|
31666
|
+
const xT = ({
|
|
31639
31667
|
texts: e = [],
|
|
31640
31668
|
placeholder: t = "请输入内容",
|
|
31641
31669
|
animationSpeed: a = 100,
|
|
@@ -31750,7 +31778,7 @@ const yT = ({
|
|
|
31750
31778
|
` })
|
|
31751
31779
|
] });
|
|
31752
31780
|
};
|
|
31753
|
-
|
|
31781
|
+
xT.__docgenInfo = {
|
|
31754
31782
|
displayName: "DynamicInput",
|
|
31755
31783
|
description: "动态文案输入框组件,支持流式文字动画效果",
|
|
31756
31784
|
props: {
|
|
@@ -31795,7 +31823,7 @@ yT.__docgenInfo = {
|
|
|
31795
31823
|
}
|
|
31796
31824
|
}
|
|
31797
31825
|
};
|
|
31798
|
-
const
|
|
31826
|
+
const wT = ({
|
|
31799
31827
|
texts: e = [],
|
|
31800
31828
|
// 动态文案数组,默认为空数组
|
|
31801
31829
|
placeholder: t = "请输入内容",
|
|
@@ -31832,11 +31860,11 @@ const TT = ({
|
|
|
31832
31860
|
const H = ue((j, te) => {
|
|
31833
31861
|
let de = 0;
|
|
31834
31862
|
N(!0);
|
|
31835
|
-
const
|
|
31836
|
-
de < j.length ? (v(j.slice(0, de + 1)), de++, D.current = window.setTimeout(
|
|
31863
|
+
const be = () => {
|
|
31864
|
+
de < j.length ? (v(j.slice(0, de + 1)), de++, D.current = window.setTimeout(be, a)) : (N(!1), te?.());
|
|
31837
31865
|
};
|
|
31838
|
-
|
|
31839
|
-
}, [a]),
|
|
31866
|
+
be();
|
|
31867
|
+
}, [a]), R = ue((j) => {
|
|
31840
31868
|
let te = x.current.length;
|
|
31841
31869
|
const de = () => {
|
|
31842
31870
|
te > 0 ? (v(x.current.slice(0, te - 1)), te--, D.current = window.setTimeout(de, a / 2)) : j?.();
|
|
@@ -31846,7 +31874,7 @@ const TT = ({
|
|
|
31846
31874
|
if (F.current.length === 0 || L.current) return;
|
|
31847
31875
|
m(!0);
|
|
31848
31876
|
const j = F.current[M.current];
|
|
31849
|
-
x.current ?
|
|
31877
|
+
x.current ? R(() => {
|
|
31850
31878
|
H(j, () => {
|
|
31851
31879
|
O.current = window.setTimeout(() => {
|
|
31852
31880
|
y((te) => (te + 1) % F.current.length), m(!1);
|
|
@@ -31857,7 +31885,7 @@ const TT = ({
|
|
|
31857
31885
|
y((te) => (te + 1) % F.current.length), m(!1);
|
|
31858
31886
|
}, 2e3);
|
|
31859
31887
|
});
|
|
31860
|
-
}, [
|
|
31888
|
+
}, [R, H]);
|
|
31861
31889
|
ne(() => (l && e.length > 0 && !w && $(), () => {
|
|
31862
31890
|
O.current && window.clearTimeout(O.current), D.current && window.clearTimeout(D.current);
|
|
31863
31891
|
}), [b, w, l, e.length, $]), ne(() => {
|
|
@@ -32009,7 +32037,7 @@ const TT = ({
|
|
|
32009
32037
|
` })
|
|
32010
32038
|
] });
|
|
32011
32039
|
};
|
|
32012
|
-
|
|
32040
|
+
wT.__docgenInfo = {
|
|
32013
32041
|
displayName: "DynamicTextArea",
|
|
32014
32042
|
description: "动态文案文本域组件,支持流式文字动画效果",
|
|
32015
32043
|
props: {
|
|
@@ -32285,7 +32313,7 @@ $o.__docgenInfo = {
|
|
|
32285
32313
|
}
|
|
32286
32314
|
}
|
|
32287
32315
|
};
|
|
32288
|
-
const
|
|
32316
|
+
const AT = (e) => [".mp4", ".webm", ".ogg", ".mov", ".avi", ".wmv", ".flv", ".mkv"].some((a) => e.toLowerCase().includes(a)), CT = (e) => e.type ? e.type : AT(e.url) ? "video" : "image", ST = ({
|
|
32289
32317
|
items: e,
|
|
32290
32318
|
columns: t,
|
|
32291
32319
|
gap: a = 0,
|
|
@@ -32348,7 +32376,7 @@ const xT = (e) => [".mp4", ".webm", ".ogg", ".mov", ".avi", ".wmv", ".flv", ".mk
|
|
|
32348
32376
|
...i
|
|
32349
32377
|
},
|
|
32350
32378
|
children: e.map((b, y) => {
|
|
32351
|
-
const g = b.id || y, m =
|
|
32379
|
+
const g = b.id || y, m = CT(b);
|
|
32352
32380
|
return /* @__PURE__ */ G(
|
|
32353
32381
|
"div",
|
|
32354
32382
|
{
|
|
@@ -32399,7 +32427,7 @@ const xT = (e) => [".mp4", ".webm", ".ogg", ".mov", ".avi", ".wmv", ".flv", ".mk
|
|
|
32399
32427
|
}
|
|
32400
32428
|
);
|
|
32401
32429
|
};
|
|
32402
|
-
|
|
32430
|
+
ST.__docgenInfo = {
|
|
32403
32431
|
displayName: "Waterfall",
|
|
32404
32432
|
description: "瀑布流布局组件,支持图片和视频混合展示",
|
|
32405
32433
|
props: {
|
|
@@ -32516,7 +32544,7 @@ const wl = (e) => e.replace(/&/g, "&").replace(/</g, "<").replace(/>/g, "
|
|
|
32516
32544
|
旺旺咨询量: "wangwangConsultationCount",
|
|
32517
32545
|
自然流量转化金额: "organicTrafficAmount",
|
|
32518
32546
|
自然流量曝光量: "organicTrafficImpressions"
|
|
32519
|
-
},
|
|
32547
|
+
}, _T = [
|
|
32520
32548
|
"日期",
|
|
32521
32549
|
"展现量",
|
|
32522
32550
|
"点击量",
|
|
@@ -32577,7 +32605,7 @@ const wl = (e) => e.replace(/&/g, "&").replace(/</g, "<").replace(/>/g, "
|
|
|
32577
32605
|
"成交新客占比",
|
|
32578
32606
|
"自然流量转化金额",
|
|
32579
32607
|
"自然流量曝光量"
|
|
32580
|
-
], Ra = (e) => Ya[e] ?? e,
|
|
32608
|
+
], Ra = (e) => Ya[e] ?? e, kT = (e) => e ? !!(Ya[e] !== void 0 || e.length <= 20 && /[\u4e00-\u9fff]/.test(e)) : !1, NT = (e) => {
|
|
32581
32609
|
const t = e.trim();
|
|
32582
32610
|
if (!t) return [];
|
|
32583
32611
|
const a = t.split(/[\r\n]+/).map((i) => i.trim()).filter(Boolean);
|
|
@@ -32594,28 +32622,28 @@ const wl = (e) => e.replace(/&/g, "&").replace(/</g, "<").replace(/>/g, "
|
|
|
32594
32622
|
const u = i.some((s) => Ya[s] !== void 0);
|
|
32595
32623
|
return i.length >= 2 && u ? i : [];
|
|
32596
32624
|
}
|
|
32597
|
-
const n = a.filter(
|
|
32625
|
+
const n = a.filter(kT);
|
|
32598
32626
|
return n.some((i) => Ya[i] !== void 0) && n.length >= 2 && n.length / a.length >= 0.5 ? n : [];
|
|
32599
|
-
},
|
|
32627
|
+
}, IT = (e) => {
|
|
32600
32628
|
if (!e || e.trim() === "") return "";
|
|
32601
32629
|
const t = e.trim();
|
|
32602
32630
|
if (t.toLowerCase() === "nan") return "NaN";
|
|
32603
32631
|
const a = t.match(/^(.+?)([+-]\d)/);
|
|
32604
32632
|
return a ? a[1].trim() : t;
|
|
32605
|
-
},
|
|
32633
|
+
}, LT = (e) => e.replace(/[\u00a0\u3000]/g, " ").replace(/[–—]/g, "-").replace(/%(\d)/g, "% $1").replace(/NaN(\d)/gi, "NaN $1").replace(/(\.\d+)(\d,\d{3})/g, "$1 $2").replace(/(\.\d+)(\d+\.)/g, "$1 $2").replace(/(\.\d{2})(\d+[+-]\d+\.?\d*%)/g, "$1 $2").replace(/(,\d{3})(\d+[+-]\d+\.?\d*%)/g, "$1 $2").split(/\s+/).map((a) => a.trim()).filter((a) => a !== ""), OT = (e) => {
|
|
32606
32634
|
const t = (e || "").replace(/[\u00a0\u3000]/g, " "), a = /20\d{2}-\d{2}-\d{2}/g, l = t.match(a) || [];
|
|
32607
32635
|
if (l.length === 0)
|
|
32608
32636
|
return { markdown: "", jsonData: [] };
|
|
32609
|
-
const n = t.split(a).filter((y) => y.trim() !== ""), r = n.length > 0 ?
|
|
32637
|
+
const n = t.split(a).filter((y) => y.trim() !== ""), r = n.length > 0 ? NT(n[0]) : [], i = r.length >= 2, u = i ? r : _T, s = i || n.length > 0 && n[0].includes("展现量") ? 1 : 0, o = u.filter((y) => y !== "日期"), c = o.length, d = [];
|
|
32610
32638
|
l.forEach((y, g) => {
|
|
32611
32639
|
const m = g + s;
|
|
32612
32640
|
if (m >= n.length) return;
|
|
32613
32641
|
const w = n[m];
|
|
32614
32642
|
let T = w.split(/[\r\n]+/).map((k) => k.trim()).filter((k) => k !== "");
|
|
32615
|
-
T.length < c && (T =
|
|
32643
|
+
T.length < c && (T = LT(w));
|
|
32616
32644
|
const C = (k) => T.length === c * 2 ? T[k * 2] ?? "" : T[k] ?? "", N = {};
|
|
32617
32645
|
N[Ra("日期")] = y, o.forEach((k, A) => {
|
|
32618
|
-
const O = C(A), D =
|
|
32646
|
+
const O = C(A), D = IT(O), F = Ra(k);
|
|
32619
32647
|
N[F] = D;
|
|
32620
32648
|
}), d.push(N);
|
|
32621
32649
|
});
|
|
@@ -32634,7 +32662,7 @@ const wl = (e) => e.replace(/&/g, "&").replace(/</g, "<").replace(/>/g, "
|
|
|
32634
32662
|
`),
|
|
32635
32663
|
jsonData: d
|
|
32636
32664
|
};
|
|
32637
|
-
},
|
|
32665
|
+
}, DT = (e) => {
|
|
32638
32666
|
if (!e)
|
|
32639
32667
|
return "";
|
|
32640
32668
|
const t = e.trim().split(`
|
|
@@ -32654,7 +32682,7 @@ const wl = (e) => e.replace(/&/g, "&").replace(/</g, "<").replace(/>/g, "
|
|
|
32654
32682
|
c += `<td style="${o}">${wl(E)}</td>`;
|
|
32655
32683
|
}), c += "</tr>";
|
|
32656
32684
|
}), c += "</tbody></table></div>", c;
|
|
32657
|
-
},
|
|
32685
|
+
}, PT = (e) => {
|
|
32658
32686
|
const t = [], a = e.querySelector("thead tr");
|
|
32659
32687
|
if (!a) return t;
|
|
32660
32688
|
const l = [];
|
|
@@ -32669,22 +32697,22 @@ const wl = (e) => e.replace(/&/g, "&").replace(/</g, "<").replace(/>/g, "
|
|
|
32669
32697
|
i[d] = h === "-" ? "" : h;
|
|
32670
32698
|
}), Object.keys(i).length > 0 && t.push(i);
|
|
32671
32699
|
}), t;
|
|
32672
|
-
},
|
|
32673
|
-
const a =
|
|
32700
|
+
}, UT = (e) => async (t) => {
|
|
32701
|
+
const a = OT(t.text);
|
|
32674
32702
|
return e && e(a.jsonData), {
|
|
32675
32703
|
modules: [
|
|
32676
32704
|
{
|
|
32677
32705
|
title: "推广分析表格",
|
|
32678
|
-
content:
|
|
32706
|
+
content: DT(a.markdown),
|
|
32679
32707
|
markdown: a.markdown
|
|
32680
32708
|
}
|
|
32681
32709
|
]
|
|
32682
32710
|
};
|
|
32683
|
-
},
|
|
32711
|
+
}, qT = (e, t, a) => {
|
|
32684
32712
|
const l = parseFloat(String(e.get("grossProfitMargin") || "0")) || 0, n = parseFloat(String(e.get("refundRate") || "0")) || 0;
|
|
32685
32713
|
let r = [];
|
|
32686
32714
|
if (t) {
|
|
32687
|
-
const i =
|
|
32715
|
+
const i = PT(t);
|
|
32688
32716
|
i.length > 0 && (r = i);
|
|
32689
32717
|
}
|
|
32690
32718
|
return r.length === 0 && a && a.length > 0 && (r = a), {
|
|
@@ -32692,7 +32720,7 @@ const wl = (e) => e.replace(/&/g, "&").replace(/</g, "<").replace(/>/g, "
|
|
|
32692
32720
|
refundRate: n,
|
|
32693
32721
|
tableData: r
|
|
32694
32722
|
};
|
|
32695
|
-
},
|
|
32723
|
+
}, zT = {
|
|
32696
32724
|
algorithm: Fc.defaultAlgorithm,
|
|
32697
32725
|
token: {
|
|
32698
32726
|
// 主色
|
|
@@ -32764,23 +32792,23 @@ export {
|
|
|
32764
32792
|
ad as BackButton,
|
|
32765
32793
|
Kc as Button,
|
|
32766
32794
|
Xc as Card,
|
|
32767
|
-
|
|
32768
|
-
|
|
32795
|
+
xT as DynamicInput,
|
|
32796
|
+
wT as DynamicTextArea,
|
|
32769
32797
|
td as EmptyAndSpin,
|
|
32770
32798
|
Ya as HEADER_TO_FIELD,
|
|
32771
32799
|
ld as LinkButton,
|
|
32772
32800
|
Jc as PageTable,
|
|
32773
|
-
|
|
32801
|
+
vT as RichTextEditor,
|
|
32774
32802
|
$o as VideoCard,
|
|
32775
|
-
|
|
32776
|
-
|
|
32803
|
+
TT as VirtualTable,
|
|
32804
|
+
ST as Waterfall,
|
|
32777
32805
|
ed as XcIcon,
|
|
32778
|
-
|
|
32779
|
-
|
|
32806
|
+
qT as buildPromotionSendPayload,
|
|
32807
|
+
UT as createMarkdownAnalyze,
|
|
32780
32808
|
wl as escapeHtml,
|
|
32781
|
-
|
|
32782
|
-
|
|
32783
|
-
|
|
32784
|
-
|
|
32809
|
+
PT as extractTableDataFromHtml,
|
|
32810
|
+
zT as lightTheme,
|
|
32811
|
+
OT as parsePromotionTableMarkdown,
|
|
32812
|
+
DT as renderMarkdownToHtml
|
|
32785
32813
|
};
|
|
32786
32814
|
//# sourceMappingURL=index.es.js.map
|