bi-components-library 1.2.83 → 1.2.84

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/index.es.js CHANGED
@@ -558,47 +558,47 @@ const { Option: ad } = tl, ld = ({
558
558
  current: 1,
559
559
  pageSize: r,
560
560
  total: 0
561
- }), [b, y] = re({}), [g, m] = re({}), [w] = ml.useForm(), x = Z(E);
562
- x.current = E;
561
+ }), [b, y] = re({}), [g, m] = re({}), [w] = ml.useForm(), T = Z(E);
562
+ T.current = E;
563
563
  const C = Z(s);
564
564
  C.current = s;
565
565
  const N = Z(!1), k = Nt(() => e.map((L) => {
566
- const { sortable: T, render: I, ...H } = L;
566
+ const { sortable: x, render: I, ...H } = L;
567
567
  return {
568
568
  ...H,
569
- sorter: T ? !0 : void 0,
569
+ sorter: x ? !0 : void 0,
570
570
  render: I || ((B) => B)
571
571
  };
572
572
  }), [e]), A = ue(async (L = {}) => {
573
573
  if (t) {
574
574
  f(!0);
575
575
  try {
576
- const T = {
577
- page: x.current.current,
578
- pageSize: x.current.pageSize,
576
+ const x = {
577
+ page: T.current.current,
578
+ pageSize: T.current.pageSize,
579
579
  sortField: g.field,
580
580
  sortOrder: g.order,
581
581
  searchParams: { ...b, ...C.current },
582
582
  ...L
583
- }, I = await t(T);
583
+ }, I = await t(x);
584
584
  I.success && (d(I.data), v((H) => ({
585
585
  ...H,
586
586
  total: I.total,
587
- current: T.page || H.current
587
+ current: x.page || H.current
588
588
  })));
589
- } catch (T) {
590
- console.error("加载数据失败:", T);
589
+ } catch (x) {
590
+ console.error("加载数据失败:", x);
591
591
  } finally {
592
592
  f(!1);
593
593
  }
594
594
  }
595
595
  }, [t, g, b]), O = ue((L) => {
596
- y(L), v((T) => ({ ...T, current: 1 }));
596
+ y(L), v((x) => ({ ...x, current: 1 }));
597
597
  }, []), D = ue(() => {
598
598
  w.resetFields(), y({}), v((L) => ({ ...L, current: 1 }));
599
599
  }, [w]), F = ue(() => {
600
600
  A();
601
- }, [A]), M = ue((L, T, I) => {
601
+ }, [A]), M = ue((L, x, I) => {
602
602
  const H = {
603
603
  current: L.current || 1,
604
604
  pageSize: L.pageSize || r,
@@ -619,7 +619,7 @@ const { Option: ad } = tl, ld = ({
619
619
  form: w,
620
620
  layout: "inline",
621
621
  onFinish: O,
622
- initialValues: a.reduce((L, T) => (T.defaultValue !== void 0 && (L[T.key] = T.defaultValue), L), {}),
622
+ initialValues: a.reduce((L, x) => (x.defaultValue !== void 0 && (L[x.key] = x.defaultValue), L), {}),
623
623
  children: [
624
624
  a.map((L) => /* @__PURE__ */ G(ml.Item, { name: L.key, label: L.label, children: L.type === "input" ? /* @__PURE__ */ G(
625
625
  pr,
@@ -633,7 +633,7 @@ const { Option: ad } = tl, ld = ({
633
633
  placeholder: L.placeholder || `请选择${L.label}`,
634
634
  style: { width: 200 },
635
635
  allowClear: !0,
636
- children: L.options?.map((T) => /* @__PURE__ */ G(ad, { value: T.value, children: T.label }, T.value))
636
+ children: L.options?.map((x) => /* @__PURE__ */ G(ad, { value: x.value, children: x.label }, x.value))
637
637
  }
638
638
  ) }, L.key)),
639
639
  /* @__PURE__ */ G(ml.Item, { children: /* @__PURE__ */ pe(Sc, { children: [
@@ -655,7 +655,7 @@ const { Option: ad } = tl, ld = ({
655
655
  ...E,
656
656
  showSizeChanger: !0,
657
657
  showQuickJumper: !0,
658
- showTotal: (L, T) => `第 ${T[0]}-${T[1]} 条/共 ${L} 条`,
658
+ showTotal: (L, x) => `第 ${x[0]}-${x[1]} 条/共 ${L} 条`,
659
659
  pageSizeOptions: i
660
660
  },
661
661
  onChange: M,
@@ -753,10 +753,10 @@ const Ye = (e) => e === "multi-variable" || e === "multi-variable-select", nd =
753
753
  }, [s, u, l]), v = Le.useCallback(() => {
754
754
  const b = h.current;
755
755
  if (!b) return;
756
- const y = b.querySelector(".ant-select-selection-item"), g = b.querySelector(".ant-select-selection-placeholder"), m = y || g, w = (m?.textContent || "").trim() || E(), x = b.querySelector(".ant-select-selector"), C = m || x || b, N = window.getComputedStyle(C), k = m ? N.fontSize : "16px", A = N.fontFamily || "sans-serif", O = N.fontWeight || "400", F = `${N.fontStyle || "normal"} ${O} ${k} ${A}`, L = document.createElement("canvas").getContext("2d"), T = L ? Math.ceil((L.font = F, L.measureText(w).width || 0)) : 0;
756
+ const y = b.querySelector(".ant-select-selection-item"), g = b.querySelector(".ant-select-selection-placeholder"), m = y || g, w = (m?.textContent || "").trim() || E(), T = b.querySelector(".ant-select-selector"), C = m || T || b, N = window.getComputedStyle(C), k = m ? N.fontSize : "16px", A = N.fontFamily || "sans-serif", O = N.fontWeight || "400", F = `${N.fontStyle || "normal"} ${O} ${k} ${A}`, L = document.createElement("canvas").getContext("2d"), x = L ? Math.ceil((L.font = F, L.measureText(w).width || 0)) : 0;
757
757
  let I = 0;
758
- if (x) {
759
- const z = window.getComputedStyle(x);
758
+ if (T) {
759
+ const z = window.getComputedStyle(T);
760
760
  I = (Number.parseFloat(z.paddingLeft) || 0) + (Number.parseFloat(z.paddingRight) || 0);
761
761
  }
762
762
  const H = b.querySelector(".ant-select-arrow"), B = H ? Math.ceil(H.getBoundingClientRect().width) : 12, $ = b.querySelector(".ant-select-clear");
@@ -765,7 +765,7 @@ const Ye = (e) => e === "multi-variable" || e === "multi-variable-select", nd =
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, T + I + B + _ + 6);
768
+ const Y = Math.max(36, x + I + B + _ + 6);
769
769
  d((z) => z === Y ? z : Y);
770
770
  }, [E]);
771
771
  return We(() => {
@@ -890,7 +890,7 @@ const Ye = (e) => e === "multi-variable" || e === "multi-variable-select", nd =
890
890
  u.some((D) => D.value === A) ? h && f(null) : f(A), o(A), d(""), e.setAttribute("data-value", A), t(a, A);
891
891
  }, w = (A) => {
892
892
  d(A);
893
- }, x = (A) => {
893
+ }, T = (A) => {
894
894
  if (A.key === "Enter" && c.trim()) {
895
895
  A.preventDefault(), A.stopPropagation();
896
896
  const O = c.trim(), D = u.find(
@@ -913,7 +913,7 @@ const Ye = (e) => e === "multi-variable" || e === "multi-variable-select", nd =
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"), T = F || L || A, I = window.getComputedStyle(T), H = F ? I.fontSize : "16px", B = I.fontFamily || "sans-serif", $ = I.fontWeight || "400", Y = `${I.fontStyle || "normal"} ${$} ${H} ${B}`, S = document.createElement("canvas").getContext("2d"), q = S ? Math.ceil((S.font = Y, S.measureText(M).width || 0)) : 0;
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", B = I.fontFamily || "sans-serif", $ = I.fontWeight || "400", Y = `${I.fontStyle || "normal"} ${$} ${H} ${B}`, 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);
@@ -964,7 +964,7 @@ const Ye = (e) => e === "multi-variable" || e === "multi-variable-select", nd =
964
964
  onChange: m,
965
965
  onSearch: w,
966
966
  onClear: C,
967
- onInputKeyDown: x,
967
+ onInputKeyDown: T,
968
968
  filterOption: !1,
969
969
  placeholder: l || "搜索或输入",
970
970
  style: { width: "100%" },
@@ -1056,7 +1056,7 @@ const Ye = (e) => e === "multi-variable" || e === "multi-variable-select", nd =
1056
1056
  ne(() => {
1057
1057
  o(u(r));
1058
1058
  }, [r, u]);
1059
- const w = Le.useCallback(() => s.length >= 2 ? s.join("-") : l || "请选择省市区", [s, l]), x = Le.useCallback(() => {
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
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}`, B = document.createElement("canvas").getContext("2d"), $ = B ? Math.ceil((B.font = I, B.measureText(N).width || 0)) : 0;
@@ -1070,24 +1070,24 @@ const Ye = (e) => e === "multi-variable" || e === "multi-variable-select", nd =
1070
1070
  }, [w]);
1071
1071
  return We(() => {
1072
1072
  const C = window.requestAnimationFrame(() => {
1073
- x();
1073
+ T();
1074
1074
  }), N = window.setTimeout(() => {
1075
- x();
1075
+ T();
1076
1076
  }, 60);
1077
1077
  return () => {
1078
1078
  window.cancelAnimationFrame(C), window.clearTimeout(N);
1079
1079
  };
1080
- }, [x]), ne(() => {
1080
+ }, [T]), ne(() => {
1081
1081
  if (!("fonts" in document)) return;
1082
1082
  let C = !1;
1083
1083
  const N = document.fonts;
1084
1084
  if (N?.ready)
1085
1085
  return N.ready.then(() => {
1086
- C || x();
1086
+ C || T();
1087
1087
  }), () => {
1088
1088
  C = !0;
1089
1089
  };
1090
- }, [x]), It(
1090
+ }, [T]), It(
1091
1091
  /* @__PURE__ */ G(
1092
1092
  "div",
1093
1093
  {
@@ -1208,8 +1208,8 @@ function fd(e, t, a, l, n) {
1208
1208
  }
1209
1209
  const pd = ({ host: e, onChange: t }) => {
1210
1210
  const a = e.dataset.key || "", l = e.dataset.placeholder || "", n = e.dataset.tooltip || "", r = e.dataset.allowNewline !== "0", i = Nt(() => cd(e.dataset.value || ""), [e]), [u, s] = re(i), o = Z(i), c = Nt(() => {
1211
- const x = Number.parseFloat(e.dataset.estimatedWidth || "");
1212
- return Number.isFinite(x) && x > 0 ? x : 64;
1211
+ const T = Number.parseFloat(e.dataset.estimatedWidth || "");
1212
+ return Number.isFinite(T) && T > 0 ? T : 64;
1213
1213
  }, [e]), [d, h] = re(c), f = Z(null), E = (u || "").trim().length > 0, v = !!n && !E, [b, y] = re(!1);
1214
1214
  ne(() => {
1215
1215
  s(i), o.current = i;
@@ -1219,62 +1219,62 @@ const pd = ({ host: e, onChange: t }) => {
1219
1219
  e.classList.toggle("rte-variable-multiline", b);
1220
1220
  }, [e, b]);
1221
1221
  const g = Le.useCallback(() => {
1222
- const x = f.current;
1223
- if (!x) return;
1224
- const C = x.querySelector("textarea");
1222
+ const T = f.current;
1223
+ if (!T) return;
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, T = (u && u.length > 0 ? u : l) || " ", I = fd(T, F, N.letterSpacing || "0", M, L), B = 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(`
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 = fd(x, F, N.letterSpacing || "0", M, L), B = 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
1227
  `) || B > S;
1228
1228
  y((j) => j === V ? j : V);
1229
1229
  const K = V && Number.isFinite(S) ? Math.max(24, S) : B;
1230
1230
  h((j) => j === K ? j : K);
1231
1231
  }, [e, l, u]);
1232
1232
  ne(() => {
1233
- const x = f.current;
1234
- if (!x || typeof ResizeObserver > "u") return;
1233
+ const T = f.current;
1234
+ if (!T || typeof ResizeObserver > "u") return;
1235
1235
  let C = 0;
1236
1236
  const N = new ResizeObserver(() => {
1237
1237
  C && window.cancelAnimationFrame(C), C = window.requestAnimationFrame(() => {
1238
1238
  t(a, o.current);
1239
1239
  });
1240
1240
  });
1241
- return N.observe(x), () => {
1241
+ return N.observe(T), () => {
1242
1242
  C && window.cancelAnimationFrame(C), N.disconnect();
1243
1243
  };
1244
1244
  }, [a, t]), We(() => {
1245
- const x = window.requestAnimationFrame(() => {
1245
+ const T = window.requestAnimationFrame(() => {
1246
1246
  g();
1247
1247
  });
1248
1248
  return () => {
1249
- window.cancelAnimationFrame(x);
1249
+ window.cancelAnimationFrame(T);
1250
1250
  };
1251
1251
  }, [g]), ne(() => {
1252
1252
  if (typeof ResizeObserver > "u") return;
1253
- const x = e.closest(".rte-editor");
1254
- if (!x) return;
1253
+ const T = e.closest(".rte-editor");
1254
+ if (!T) return;
1255
1255
  let C = 0;
1256
1256
  const N = new ResizeObserver(() => {
1257
1257
  C && window.cancelAnimationFrame(C), C = window.requestAnimationFrame(() => g());
1258
1258
  });
1259
- return N.observe(x), () => {
1259
+ return N.observe(T), () => {
1260
1260
  C && window.cancelAnimationFrame(C), N.disconnect();
1261
1261
  };
1262
1262
  }, [e, g]), ne(() => {
1263
1263
  if (!("fonts" in document)) return;
1264
- let x = !1;
1264
+ let T = !1;
1265
1265
  const C = document.fonts;
1266
1266
  if (C?.ready)
1267
1267
  return C.ready.then(() => {
1268
- x || g();
1268
+ T || g();
1269
1269
  }), () => {
1270
- x = !0;
1270
+ T = !0;
1271
1271
  };
1272
1272
  }, [g]);
1273
- const m = (x) => {
1274
- const C = x.target.value ?? "";
1273
+ const m = (T) => {
1274
+ const C = T.target.value ?? "";
1275
1275
  s(C), e.setAttribute("data-value", dd(C)), t(a, C);
1276
- }, w = (x) => {
1277
- x.key === "Enter" && !r && x.preventDefault();
1276
+ }, w = (T) => {
1277
+ T.key === "Enter" && !r && T.preventDefault();
1278
1278
  };
1279
1279
  return It(
1280
1280
  /* @__PURE__ */ pe(
@@ -1428,7 +1428,7 @@ function da(e, t) {
1428
1428
  const F = Ll(y);
1429
1429
  return Math.max(0, F - 22);
1430
1430
  }
1431
- })(), x = (() => {
1431
+ })(), T = (() => {
1432
1432
  if (!!!l.querySelector(
1433
1433
  ".variable-info-icon, .rte-report-dropdown-host"
1434
1434
  )) return 0;
@@ -1437,18 +1437,18 @@ function da(e, t) {
1437
1437
  const L = l.querySelector(".variable-info-icon:not(.hidden)");
1438
1438
  if (!L) return 24;
1439
1439
  try {
1440
- const T = window.getComputedStyle(L), I = Math.ceil(L.getBoundingClientRect().width || 0) || 16, H = Math.ceil(Number.parseFloat(T.right || "0")) || 4;
1440
+ const x = window.getComputedStyle(L), I = Math.ceil(L.getBoundingClientRect().width || 0) || 16, H = Math.ceil(Number.parseFloat(x.right || "0")) || 4;
1441
1441
  return Math.max(16, Math.min(120, I + H + 2));
1442
1442
  } catch {
1443
1443
  return 24;
1444
1444
  }
1445
1445
  })();
1446
- x > 0 ? (l.classList.add("rte-variable-with-icon"), l.style.setProperty("--rte-icon-pad-right", `${x}px`)) : l.style.removeProperty("--rte-icon-pad-right");
1447
- const C = 2, N = x > 0 ? x : 8, k = Math.ceil(w + 8 + N + C), A = l.closest(".rte-editor");
1446
+ T > 0 ? (l.classList.add("rte-variable-with-icon"), l.style.setProperty("--rte-icon-pad-right", `${T}px`)) : l.style.removeProperty("--rte-icon-pad-right");
1447
+ const C = 2, N = T > 0 ? T : 8, k = Math.ceil(w + 8 + N + C), A = l.closest(".rte-editor");
1448
1448
  let O = 600;
1449
1449
  if (A) {
1450
- const F = window.getComputedStyle(A), M = Number.parseFloat(F.paddingLeft) || 0, L = Number.parseFloat(F.paddingRight) || 0, T = A.clientWidth - M - L;
1451
- T > 0 && (O = T);
1450
+ const F = window.getComputedStyle(A), M = Number.parseFloat(F.paddingLeft) || 0, L = Number.parseFloat(F.paddingRight) || 0, x = A.clientWidth - M - L;
1451
+ x > 0 && (O = x);
1452
1452
  }
1453
1453
  const D = Math.max(24, Math.min(600, O, k));
1454
1454
  l.style.minWidth = `${D}px`;
@@ -1512,11 +1512,11 @@ function gd(e, t = []) {
1512
1512
  if (Number.isNaN(y))
1513
1513
  h.value = "";
1514
1514
  else {
1515
- const g = h.getAttribute("min"), m = h.getAttribute("max"), w = g !== null ? parseFloat(g) : 0, x = m !== null ? parseFloat(m) : 1 / 0;
1515
+ const g = h.getAttribute("min"), m = h.getAttribute("max"), w = g !== null ? parseFloat(g) : 0, T = m !== null ? parseFloat(m) : 1 / 0;
1516
1516
  if (y === 0 && 0 < w)
1517
1517
  h.value = "";
1518
1518
  else {
1519
- const C = Math.min(Math.max(y, w), x);
1519
+ const C = Math.min(Math.max(y, w), T);
1520
1520
  h.value = E !== -1 ? C.toFixed(f.length - E - 1) : String(C);
1521
1521
  }
1522
1522
  }
@@ -1636,11 +1636,11 @@ ${(e || "").replace(/\r\n/g, `
1636
1636
  onViewReport: n,
1637
1637
  hideCurrentSessionReport: r
1638
1638
  }) => {
1639
- const i = e.dataset.key || "", u = e.dataset.nodeType || "report-url", [s, o] = re(!1), [c, d] = re(!1), [h, f] = re(null), [E, v] = re(""), [b, y] = re("bottomLeft"), [g, m] = re(0), w = Z(0), x = ue(
1639
+ const i = e.dataset.key || "", u = e.dataset.nodeType || "report-url", [s, o] = re(!1), [c, d] = re(!1), [h, f] = re(null), [E, v] = re(""), [b, y] = re("bottomLeft"), [g, m] = re(0), w = Z(0), T = ue(
1640
1640
  () => e.closest('[data-type="variable"]'),
1641
1641
  [e]
1642
1642
  ), C = ue(() => {
1643
- const q = x();
1643
+ const q = T();
1644
1644
  if (!q)
1645
1645
  return { mode: "all", rawValue: "", signature: "all:" };
1646
1646
  const V = q.getAttribute("data-report-url")?.trim();
@@ -1660,7 +1660,7 @@ ${(e || "").replace(/\r\n/g, `
1660
1660
  rawValue: K,
1661
1661
  signature: `all:${K}`
1662
1662
  };
1663
- }, [x]), [N, k] = re(
1663
+ }, [T]), [N, k] = re(
1664
1664
  () => C()
1665
1665
  ), A = ue(() => {
1666
1666
  const q = C();
@@ -1676,7 +1676,7 @@ ${(e || "").replace(/\r\n/g, `
1676
1676
  ), M = ue(() => {
1677
1677
  if (!document.body.contains(e))
1678
1678
  return console.log("[RTE-REPORT][anchor] skip: host detached"), !1;
1679
- const q = x();
1679
+ const q = T();
1680
1680
  if (!q || !document.body.contains(q))
1681
1681
  return console.log("[RTE-REPORT][anchor] skip: chip missing"), !1;
1682
1682
  const V = q.getBoundingClientRect();
@@ -1695,7 +1695,7 @@ ${(e || "").replace(/\r\n/g, `
1695
1695
  }), m(j);
1696
1696
  const te = 240, ce = window.innerHeight - V.bottom;
1697
1697
  return y(ce < te ? "topLeft" : "bottomLeft"), !0;
1698
- }, [x, e, s]), L = ue(async () => {
1698
+ }, [T, e, s]), L = ue(async () => {
1699
1699
  if (Date.now() - w.current > 200) {
1700
1700
  console.log("[RTE-REPORT] openDropdown skip: not user-initiated");
1701
1701
  return;
@@ -1716,7 +1716,7 @@ ${(e || "").replace(/\r\n/g, `
1716
1716
  }
1717
1717
  }, [r, i, u, t, M]);
1718
1718
  ne(() => {
1719
- const q = x();
1719
+ const q = T();
1720
1720
  if (!q) return;
1721
1721
  if (q.getAttribute("data-report-url")) {
1722
1722
  e.classList.remove("hidden");
@@ -1724,9 +1724,9 @@ ${(e || "").replace(/\r\n/g, `
1724
1724
  }
1725
1725
  const V = (q.innerText || "").replace(/[\u200B\n]/g, "").trim().length > 0;
1726
1726
  e.classList.toggle("hidden", V);
1727
- }, [x, e, s, N.signature]), ne(() => {
1727
+ }, [T, e, s, N.signature]), ne(() => {
1728
1728
  A();
1729
- const q = x();
1729
+ const q = T();
1730
1730
  if (!q) return;
1731
1731
  const V = new MutationObserver(() => {
1732
1732
  A();
@@ -1740,8 +1740,8 @@ ${(e || "").replace(/\r\n/g, `
1740
1740
  }), q.addEventListener("input", A), () => {
1741
1741
  V.disconnect(), q.removeEventListener("input", A);
1742
1742
  };
1743
- }, [x, e, A]), ne(() => {
1744
- const q = x();
1743
+ }, [T, e, A]), ne(() => {
1744
+ const q = T();
1745
1745
  if (!q) return;
1746
1746
  const V = (K) => {
1747
1747
  K.target.closest(".rte-report-chip-clear-host") || (q.getAttribute("data-report-url") && (K.preventDefault(), K.stopPropagation(), window.getSelection()?.removeAllRanges()), !s && (w.current = Date.now(), L()));
@@ -1749,7 +1749,7 @@ ${(e || "").replace(/\r\n/g, `
1749
1749
  return q.addEventListener("mousedown", V, !0), () => {
1750
1750
  q.removeEventListener("mousedown", V, !0);
1751
1751
  };
1752
- }, [x, e, s, L, i]), ne(() => {
1752
+ }, [T, e, s, L, i]), ne(() => {
1753
1753
  const q = (V) => {
1754
1754
  V.detail !== e && o(!1);
1755
1755
  };
@@ -1775,7 +1775,7 @@ ${(e || "").replace(/\r\n/g, `
1775
1775
  }), M());
1776
1776
  }, [s, e, N.signature, M]), ne(() => {
1777
1777
  if (!s) return;
1778
- const q = x();
1778
+ const q = T();
1779
1779
  if (!q) return;
1780
1780
  console.log("[RTE-REPORT][ro] attach observer to chip", {
1781
1781
  chipWidth: q.getBoundingClientRect().width
@@ -1792,7 +1792,7 @@ ${(e || "").replace(/\r\n/g, `
1792
1792
  return V.observe(q), () => {
1793
1793
  console.log("[RTE-REPORT][ro] detach observer"), V.disconnect();
1794
1794
  };
1795
- }, [s, x, M]), ne(() => {
1795
+ }, [s, T, M]), ne(() => {
1796
1796
  if (!s) return;
1797
1797
  const q = (V) => {
1798
1798
  const K = V.target;
@@ -1800,7 +1800,7 @@ ${(e || "").replace(/\r\n/g, `
1800
1800
  };
1801
1801
  return document.addEventListener("mousedown", q), () => document.removeEventListener("mousedown", q);
1802
1802
  }, [s, e]);
1803
- const T = ue(
1803
+ const x = ue(
1804
1804
  (q) => {
1805
1805
  a(i, u, q), o(!1);
1806
1806
  },
@@ -1854,7 +1854,7 @@ ${(e || "").replace(/\r\n/g, `
1854
1854
  "div",
1855
1855
  {
1856
1856
  className: "rte-report-dropdown-item",
1857
- onMouseDown: () => T(q),
1857
+ onMouseDown: () => x(q),
1858
1858
  children: [
1859
1859
  /* @__PURE__ */ G(
1860
1860
  "span",
@@ -1926,8 +1926,8 @@ ${(e || "").replace(/\r\n/g, `
1926
1926
  }
1927
1927
  const y = b.querySelectorAll(".rte-report-dropdown-host"), g = [];
1928
1928
  y.forEach((m) => {
1929
- const w = m, x = w.getAttribute("data-key");
1930
- if (x) {
1929
+ const w = m, T = w.getAttribute("data-key");
1930
+ if (T) {
1931
1931
  if (!E.current.has(w)) {
1932
1932
  for (; w.firstChild; ) w.removeChild(w.firstChild);
1933
1933
  E.current.add(w);
@@ -1943,7 +1943,7 @@ ${(e || "").replace(/\r\n/g, `
1943
1943
  onViewReport: h.current,
1944
1944
  hideCurrentSessionReport: f.current
1945
1945
  },
1946
- `report-dropdown-${x}-${w.getAttribute("data-node-type")}`
1946
+ `report-dropdown-${T}-${w.getAttribute("data-node-type")}`
1947
1947
  )
1948
1948
  );
1949
1949
  }
@@ -1957,18 +1957,18 @@ ${(e || "").replace(/\r\n/g, `
1957
1957
  let m = !1;
1958
1958
  for (const w of g)
1959
1959
  if (w.type === "childList") {
1960
- let x = !1;
1960
+ let T = !1;
1961
1961
  if (w.addedNodes.forEach((C) => {
1962
1962
  if (C.nodeType === Node.ELEMENT_NODE) {
1963
1963
  const N = C;
1964
- (N.classList?.contains("rte-report-dropdown-host") || N.querySelector?.(".rte-report-dropdown-host")) && (x = !0);
1964
+ (N.classList?.contains("rte-report-dropdown-host") || N.querySelector?.(".rte-report-dropdown-host")) && (T = !0);
1965
1965
  }
1966
1966
  }), w.removedNodes.forEach((C) => {
1967
1967
  if (C.nodeType === Node.ELEMENT_NODE) {
1968
1968
  const N = C;
1969
- (N.classList?.contains("rte-report-dropdown-host") || N.querySelector?.(".rte-report-dropdown-host")) && (x = !0);
1969
+ (N.classList?.contains("rte-report-dropdown-host") || N.querySelector?.(".rte-report-dropdown-host")) && (T = !0);
1970
1970
  }
1971
- }), x) {
1971
+ }), T) {
1972
1972
  m = !0;
1973
1973
  break;
1974
1974
  }
@@ -2167,10 +2167,10 @@ const Nd = ({
2167
2167
  if (m > 0 && t.error(
2168
2168
  `已自动过滤 ${m} 张超过 10MB 的图片,仅允许上传 10MB 以内图片`
2169
2169
  ), b && typeof b.maxCount == "number" && typeof b.minCount == "number") {
2170
- const w = b.maxCount, x = typeof n == "number" ? n : 0;
2170
+ const w = b.maxCount, T = typeof n == "number" ? n : 0;
2171
2171
  s((C) => {
2172
2172
  const N = { ...C };
2173
- let k = Math.min(Math.max(x, 0), w - 1);
2173
+ let k = Math.min(Math.max(T, 0), w - 1);
2174
2174
  for (const A of g) {
2175
2175
  for (; k < w && N[`${v}-${k}`] != null; )
2176
2176
  k += 1;
@@ -2445,7 +2445,7 @@ const Rd = ({
2445
2445
  nodeValues: h,
2446
2446
  resolvedReportNamesRef: f
2447
2447
  }) => {
2448
- const E = Z({}), v = Z({}), b = Z({}), y = Z(i), g = Z(s), m = Z(c), w = ue((N) => N.find((A) => A.type === "tag")?.text || null, []), x = Z(e), C = Z(null);
2448
+ const E = Z({}), v = Z({}), b = Z({}), y = Z(i), g = Z(s), m = Z(c), w = ue((N) => N.find((A) => A.type === "tag")?.text || null, []), T = Z(e), C = Z(null);
2449
2449
  ne(() => {
2450
2450
  v.current = a;
2451
2451
  }, [a]), ne(() => {
@@ -2457,7 +2457,7 @@ const Rd = ({
2457
2457
  }, [s]), ne(() => {
2458
2458
  m.current = c;
2459
2459
  }, [c]), ne(() => {
2460
- const N = w(x.current), k = w(e);
2460
+ const N = w(T.current), k = w(e);
2461
2461
  if (N && N !== k && t.current) {
2462
2462
  const A = t.current;
2463
2463
  A.__tempVariableValues && delete A.__tempVariableValues;
@@ -2465,38 +2465,38 @@ const Rd = ({
2465
2465
  if (N && N !== k && t.current) {
2466
2466
  const A = {};
2467
2467
  t.current.querySelectorAll('[data-type="variable"]').forEach((L) => {
2468
- const T = L.dataset.key;
2469
- if (!T) return;
2468
+ const x = L.dataset.key;
2469
+ if (!x) return;
2470
2470
  const I = L.getAttribute("data-node-type") || "";
2471
2471
  if (I === "report-url") {
2472
2472
  const B = L.getAttribute("data-report-url");
2473
- B && (A[`${T}__url`] = B);
2473
+ B && (A[`${x}__url`] = B);
2474
2474
  return;
2475
2475
  }
2476
2476
  if (I === "markdown-name") {
2477
2477
  const B = L.innerText.replace(/[​\n]/g, "").trim();
2478
- B && (A[`${T}__name`] = B);
2478
+ B && (A[`${x}__name`] = B);
2479
2479
  return;
2480
2480
  }
2481
2481
  const H = L.innerText.replace(/[​\n]/g, "").trim();
2482
- H && (A[T] = H);
2482
+ H && (A[x] = H);
2483
2483
  }), t.current.querySelectorAll('[data-type="select"]').forEach((L) => {
2484
- const T = L.dataset.key;
2485
- if (T) {
2484
+ const x = L.dataset.key;
2485
+ if (x) {
2486
2486
  const I = (L.getAttribute("data-value") || "").trim();
2487
- I && (A[T] = I);
2487
+ I && (A[x] = I);
2488
2488
  }
2489
2489
  }), t.current.querySelectorAll('[data-type="searchable-select"]').forEach((L) => {
2490
- const T = L.dataset.key;
2491
- if (T) {
2490
+ const x = L.dataset.key;
2491
+ if (x) {
2492
2492
  const I = (L.getAttribute("data-value") || "").trim();
2493
- I && (A[T] = I);
2493
+ I && (A[x] = I);
2494
2494
  }
2495
2495
  }), t.current.querySelectorAll('[data-type="textarea"]').forEach((L) => {
2496
- const T = L.dataset.key;
2497
- if (T) {
2496
+ const x = L.dataset.key;
2497
+ if (x) {
2498
2498
  const I = L.value.replace(/[​]/g, "").trim();
2499
- I && (A[T] = I);
2499
+ I && (A[x] = I);
2500
2500
  }
2501
2501
  }), E.current[N] = {
2502
2502
  variableValues: A,
@@ -2522,7 +2522,7 @@ const Rd = ({
2522
2522
  }), r(A), l({}), u({}), o({}), d({}), f && (f.current = {}), Ra({ clearAll: !0 });
2523
2523
  } else
2524
2524
  C.current = null, r({}), l({}), u({}), o({}), d({}), f && (f.current = {}), Ra({ clearAll: !0 });
2525
- x.current = e;
2525
+ T.current = e;
2526
2526
  }, [e, t, w, l, r, u, o, d, f]), We(() => {
2527
2527
  C.current && t.current && (t.current.__tempVariableValues = C.current.variableValues, setTimeout(() => {
2528
2528
  C.current && (C.current = null);
@@ -2624,26 +2624,26 @@ const Rd = ({
2624
2624
  m.current += 1;
2625
2625
  const L = m.current;
2626
2626
  return g.current.set(M, L), L;
2627
- }, []), x = ue((M, L) => g.current.get(M) === L, []);
2627
+ }, []), T = ue((M, L) => g.current.get(M) === L, []);
2628
2628
  ne(() => {
2629
2629
  const M = (L) => {
2630
- const T = L.detail;
2631
- if (T) {
2632
- if ("clearAll" in T && T.clearAll) {
2630
+ const x = L.detail;
2631
+ if (x) {
2632
+ if ("clearAll" in x && x.clearAll) {
2633
2633
  g.current.clear();
2634
2634
  return;
2635
2635
  }
2636
- if ("keys" in T)
2637
- for (const I of T.keys) g.current.delete(I);
2636
+ if ("keys" in x)
2637
+ for (const I of x.keys) g.current.delete(I);
2638
2638
  }
2639
2639
  };
2640
2640
  return document.addEventListener(zn, M), () => document.removeEventListener(zn, M);
2641
2641
  }, []);
2642
2642
  const C = ue(
2643
2643
  (M, L) => {
2644
- const T = (L || "").trim();
2644
+ const x = (L || "").trim();
2645
2645
  if (!M) return;
2646
- if (!T) {
2646
+ if (!x) {
2647
2647
  n(($) => ({
2648
2648
  ...$,
2649
2649
  [M]: { status: "idle", modules: [], lastParsedUrl: void 0, error: void 0 }
@@ -2652,21 +2652,21 @@ const Rd = ({
2652
2652
  }
2653
2653
  if (v && b && !(o.current?.querySelector(
2654
2654
  `[data-type="variable"][data-key="${M}"]`
2655
- )?.getAttribute("data-report-url") === T)) {
2655
+ )?.getAttribute("data-report-url") === x)) {
2656
2656
  const Y = w(M);
2657
- v({ url: T, nodeKey: M, nodeType: "report-url" }).then(({ name: z, url: S }) => {
2658
- x(M, Y) && b.current(M, z, S || T);
2657
+ v({ url: x, nodeKey: M, nodeType: "report-url" }).then(({ name: z, url: S }) => {
2658
+ T(M, Y) && b.current(M, z, S || x);
2659
2659
  }).catch(() => {
2660
2660
  });
2661
2661
  }
2662
2662
  const I = l[M];
2663
- if (I?.lastParsedUrl && I.lastParsedUrl === T && (I.status === "loading" || I.status === "success"))
2663
+ if (I?.lastParsedUrl && I.lastParsedUrl === x && (I.status === "loading" || I.status === "success"))
2664
2664
  return;
2665
2665
  n(($) => ({
2666
2666
  ...$,
2667
- [M]: { ...$[M], status: "loading", error: void 0, lastParsedUrl: T }
2667
+ [M]: { ...$[M], status: "loading", error: void 0, lastParsedUrl: x }
2668
2668
  }));
2669
- const H = qu(T);
2669
+ const H = qu(x);
2670
2670
  (e || (async ($) => ({
2671
2671
  modules: [
2672
2672
  {
@@ -2689,7 +2689,7 @@ const Rd = ({
2689
2689
  }
2690
2690
  n((Y) => ({
2691
2691
  ...Y,
2692
- [M]: { status: "success", error: void 0, lastParsedUrl: T, modules: _ }
2692
+ [M]: { status: "success", error: void 0, lastParsedUrl: x, modules: _ }
2693
2693
  }));
2694
2694
  }).catch(($) => {
2695
2695
  const _ = $ instanceof Error ? $.message : String($);
@@ -2699,18 +2699,18 @@ const Rd = ({
2699
2699
  ...Y[M] || { modules: [] },
2700
2700
  status: "error",
2701
2701
  error: _ || "解析失败",
2702
- lastParsedUrl: T,
2702
+ lastParsedUrl: x,
2703
2703
  modules: []
2704
2704
  }
2705
2705
  }));
2706
2706
  });
2707
2707
  },
2708
- [y, o, e, l, n, v, b, w, x]
2708
+ [y, o, e, l, n, v, b, w, T]
2709
2709
  ), N = ue(
2710
2710
  (M, L) => {
2711
- const T = (L || "").trim();
2711
+ const x = (L || "").trim();
2712
2712
  if (!M) return;
2713
- if (!T) {
2713
+ if (!x) {
2714
2714
  i((Y) => ({
2715
2715
  ...Y,
2716
2716
  [M]: { status: "idle", modules: [], lastParsedText: void 0, error: void 0 }
@@ -2718,10 +2718,10 @@ const Rd = ({
2718
2718
  return;
2719
2719
  }
2720
2720
  const I = r[M];
2721
- if (I?.lastParsedText && I.lastParsedText === T && I.status === "success")
2721
+ if (I?.lastParsedText && I.lastParsedText === x && I.status === "success")
2722
2722
  return;
2723
2723
  if (!t) {
2724
- const Y = $u(T), z = on({
2724
+ const Y = $u(x), z = on({
2725
2725
  modules: [{ title: "内容", content: Uu(Y), markdown: Y }]
2726
2726
  });
2727
2727
  if (o.current) {
@@ -2732,18 +2732,18 @@ const Rd = ({
2732
2732
  }
2733
2733
  i((S) => ({
2734
2734
  ...S,
2735
- [M]: { status: "success", error: void 0, lastParsedText: T, modules: z }
2735
+ [M]: { status: "success", error: void 0, lastParsedText: x, modules: z }
2736
2736
  }));
2737
2737
  return;
2738
2738
  }
2739
2739
  const H = f.current[M]?.status === "loading";
2740
2740
  H || i((Y) => ({
2741
2741
  ...Y,
2742
- [M]: { ...Y[M], status: "loading", error: void 0, lastParsedText: T }
2742
+ [M]: { ...Y[M], status: "loading", error: void 0, lastParsedText: x }
2743
2743
  }));
2744
2744
  const B = 500, $ = Date.now();
2745
2745
  setTimeout(() => {
2746
- t({ text: T }).then((z) => {
2746
+ t({ text: x }).then((z) => {
2747
2747
  const S = on(z), q = Date.now() - $, V = Math.max(0, B - q);
2748
2748
  setTimeout(() => {
2749
2749
  if (o.current) {
@@ -2754,7 +2754,7 @@ const Rd = ({
2754
2754
  }
2755
2755
  i((K) => ({
2756
2756
  ...K,
2757
- [M]: { status: "success", error: void 0, lastParsedText: T, modules: S }
2757
+ [M]: { status: "success", error: void 0, lastParsedText: x, modules: S }
2758
2758
  }));
2759
2759
  }, V);
2760
2760
  }).catch((z) => {
@@ -2765,7 +2765,7 @@ const Rd = ({
2765
2765
  ...q[M] || { modules: [] },
2766
2766
  status: "error",
2767
2767
  error: S,
2768
- lastParsedText: T
2768
+ lastParsedText: x
2769
2769
  }
2770
2770
  }));
2771
2771
  });
@@ -2781,9 +2781,9 @@ const Rd = ({
2781
2781
  ]
2782
2782
  ), k = ue(
2783
2783
  (M, L) => {
2784
- const T = (L || "").trim();
2784
+ const x = (L || "").trim();
2785
2785
  if (!M) return;
2786
- if (!T) {
2786
+ if (!x) {
2787
2787
  s((Y) => ({
2788
2788
  ...Y,
2789
2789
  [M]: { status: "idle", modules: [], lastParsedText: void 0, error: void 0 }
@@ -2791,15 +2791,15 @@ const Rd = ({
2791
2791
  return;
2792
2792
  }
2793
2793
  const I = E.current[M];
2794
- if (I?.lastParsedText && I.lastParsedText === T && I.status === "success" || !a) return;
2794
+ if (I?.lastParsedText && I.lastParsedText === x && I.status === "success" || !a) return;
2795
2795
  const H = E.current[M]?.status === "loading";
2796
2796
  H || s((Y) => ({
2797
2797
  ...Y,
2798
- [M]: { ...Y[M], status: "loading", error: void 0, lastParsedText: T }
2798
+ [M]: { ...Y[M], status: "loading", error: void 0, lastParsedText: x }
2799
2799
  }));
2800
2800
  const B = 500, $ = Date.now();
2801
2801
  setTimeout(() => {
2802
- a({ text: T }).then((z) => {
2802
+ a({ text: x }).then((z) => {
2803
2803
  const S = on(z), q = Date.now() - $, V = Math.max(0, B - q);
2804
2804
  setTimeout(() => {
2805
2805
  if (o.current) {
@@ -2810,7 +2810,7 @@ const Rd = ({
2810
2810
  }
2811
2811
  s((K) => ({
2812
2812
  ...K,
2813
- [M]: { status: "success", error: void 0, lastParsedText: T, modules: S }
2813
+ [M]: { status: "success", error: void 0, lastParsedText: x, modules: S }
2814
2814
  }));
2815
2815
  }, V);
2816
2816
  }).catch((z) => {
@@ -2821,7 +2821,7 @@ const Rd = ({
2821
2821
  ...q[M] || { modules: [] },
2822
2822
  status: "error",
2823
2823
  error: S,
2824
- lastParsedText: T
2824
+ lastParsedText: x
2825
2825
  }
2826
2826
  }));
2827
2827
  });
@@ -2849,18 +2849,18 @@ const Rd = ({
2849
2849
  }, [d]), D = ue((M, L) => {
2850
2850
  h.current(M, L);
2851
2851
  }, [h]), F = ue(
2852
- (M, L, T = "multi-variable") => {
2852
+ (M, L, x = "multi-variable") => {
2853
2853
  const I = (L || "").trim();
2854
2854
  if (!I || !v || !b || !/^https?:\/\//i.test(I)) return;
2855
2855
  const H = w(M);
2856
- v({ url: I, nodeKey: M, nodeType: T }).then(({ name: B, url: $ }) => {
2857
- if (!x(M, H)) return;
2856
+ v({ url: I, nodeKey: M, nodeType: x }).then(({ name: B, url: $ }) => {
2857
+ if (!T(M, H)) return;
2858
2858
  const _ = $ || I;
2859
- b.current(M, B, _), T === "multi-variable-select" && c.current(M, _);
2859
+ b.current(M, B, _), x === "multi-variable-select" && c.current(M, _);
2860
2860
  }).catch(() => {
2861
2861
  });
2862
2862
  },
2863
- [v, b, c, w, x]
2863
+ [v, b, c, w, T]
2864
2864
  );
2865
2865
  return { handleReportUrlBlur: A, handleMarkdownBlur: O, handleMarkdownNameBlur: D, handleMultiVariableNameResolve: F };
2866
2866
  }, Hd = ({
@@ -2891,9 +2891,9 @@ const Rd = ({
2891
2891
  const g = a.current, m = n.current;
2892
2892
  if (!(!g || !m))
2893
2893
  try {
2894
- const w = m.getBoundingClientRect(), x = document.createRange();
2895
- x.selectNodeContents(m);
2896
- const C = Array.from(x.getClientRects());
2894
+ const w = m.getBoundingClientRect(), T = document.createRange();
2895
+ T.selectNodeContents(m);
2896
+ const C = Array.from(T.getClientRects());
2897
2897
  let N;
2898
2898
  if (C.length > 0) {
2899
2899
  const k = Math.min(...C.map((D) => D.top)), A = 2;
@@ -2924,22 +2924,22 @@ const Rd = ({
2924
2924
  if (!e) return;
2925
2925
  const g = a.current, m = l.current, w = n.current;
2926
2926
  if (!g) return;
2927
- const x = () => {
2927
+ const T = () => {
2928
2928
  g.scrollTop = 0, g.scrollLeft = 0, m && (m.scrollTop = 0, m.scrollLeft = 0), w && (w.scrollTop = 0, w.scrollLeft = 0);
2929
2929
  }, N = (typeof t == "number" && Number.isFinite(t) && t >= 0 ? t : 260) + 220;
2930
- x();
2930
+ T();
2931
2931
  const k = (M) => {
2932
- M.preventDefault(), M.stopPropagation(), x();
2932
+ M.preventDefault(), M.stopPropagation(), T();
2933
2933
  };
2934
2934
  g.addEventListener("wheel", k, { passive: !1 }), g.addEventListener("touchmove", k, { passive: !1 }), m && (m.addEventListener("wheel", k, { passive: !1 }), m.addEventListener("touchmove", k, { passive: !1 }));
2935
2935
  const A = performance.now();
2936
2936
  let O = 0;
2937
2937
  const D = (M) => {
2938
- x(), M - A < N && (O = window.requestAnimationFrame(D));
2938
+ T(), M - A < N && (O = window.requestAnimationFrame(D));
2939
2939
  };
2940
2940
  O = window.requestAnimationFrame(D);
2941
2941
  const F = window.setTimeout(() => {
2942
- x();
2942
+ T();
2943
2943
  }, N);
2944
2944
  return () => {
2945
2945
  g.removeEventListener("wheel", k), g.removeEventListener("touchmove", k), m && (m.removeEventListener("wheel", k), m.removeEventListener("touchmove", k)), window.cancelAnimationFrame(O), window.clearTimeout(F);
@@ -3245,13 +3245,13 @@ function Ya(e, t, a, l) {
3245
3245
  }
3246
3246
  }
3247
3247
  return !1;
3248
- }), m = g.some(Boolean), w = m ? g.findIndex(Boolean) : -1, x = (A) => e.current.querySelector(
3248
+ }), m = g.some(Boolean), w = m ? g.findIndex(Boolean) : -1, T = (A) => e.current.querySelector(
3249
3249
  `[data-type="video-url"][data-key="${A}"], [data-type="video-upload"][data-key="${A}"], [data-type="variable"][data-node-type="video-url"][data-key="${A}"]`
3250
3250
  ), C = (A) => {
3251
3251
  for (const O of v[A] || [])
3252
3252
  if (O.type !== "other") {
3253
3253
  if (O.type === "video-url" || O.type === "video-upload") {
3254
- const D = x(O.key);
3254
+ const D = T(O.key);
3255
3255
  D && r(D.closest(".exclusion-wrapper") || D);
3256
3256
  continue;
3257
3257
  }
@@ -3284,7 +3284,7 @@ function Ya(e, t, a, l) {
3284
3284
  for (const O of v[A] || [])
3285
3285
  if (O.type !== "other") {
3286
3286
  if (O.type === "video-url" || O.type === "video-upload") {
3287
- const D = x(O.key);
3287
+ const D = T(O.key);
3288
3288
  D && i(D.closest(".exclusion-wrapper") || D);
3289
3289
  continue;
3290
3290
  }
@@ -3379,13 +3379,13 @@ function Ya(e, t, a, l) {
3379
3379
  }
3380
3380
  if (m.dataset.variableRender === "antd-textarea") {
3381
3381
  const w = m.dataset.value || "";
3382
- let x = w;
3382
+ let T = w;
3383
3383
  try {
3384
- x = decodeURIComponent(w);
3384
+ T = decodeURIComponent(w);
3385
3385
  } catch {
3386
- x = w;
3386
+ T = w;
3387
3387
  }
3388
- if (x.trim().length > 0) {
3388
+ if (T.trim().length > 0) {
3389
3389
  c[v] = !0;
3390
3390
  break;
3391
3391
  }
@@ -3426,16 +3426,16 @@ function hr(e, t, a, l, n, r) {
3426
3426
  const m = g.getAttribute("data-node-type") || "";
3427
3427
  if (m !== "report-module" && m !== "markdown-module")
3428
3428
  return (g.textContent || "").replace(/[\u200B]/g, "").trim();
3429
- const w = (g.textContent || "").replace(/[\u200B]/g, "").trim(), x = Array.from(g.querySelectorAll(":scope > div"));
3430
- if (x.length === 0)
3429
+ const w = (g.textContent || "").replace(/[\u200B]/g, "").trim(), T = Array.from(g.querySelectorAll(":scope > div"));
3430
+ if (T.length === 0)
3431
3431
  return w;
3432
3432
  let C = -1;
3433
- for (let A = 0; A < x.length; A++)
3434
- if ((x[A].textContent || "").replace(/[\u200B]/g, "").trim().length > 0) {
3433
+ for (let A = 0; A < T.length; A++)
3434
+ if ((T[A].textContent || "").replace(/[\u200B]/g, "").trim().length > 0) {
3435
3435
  C = A;
3436
3436
  break;
3437
3437
  }
3438
- return x.filter((A, O) => O !== C).map((A) => (A.textContent || "").replace(/[\u200B]/g, "").trim()).join(`
3438
+ return T.filter((A, O) => O !== C).map((A) => (A.textContent || "").replace(/[\u200B]/g, "").trim()).join(`
3439
3439
  `).trim() || w;
3440
3440
  }, u = (g) => g ? !!g.closest('[data-rte-force-hidden="1"]') : !1, s = (g) => {
3441
3441
  const m = (g.innerText || "").replace(/[\u200B\n]/g, "").trim();
@@ -3444,8 +3444,8 @@ function hr(e, t, a, l, n, r) {
3444
3444
  if (!r?.requireReportUrlAnalyze) return !0;
3445
3445
  const w = r.reportAnalyzeState?.[g];
3446
3446
  if (w?.status !== "success" || !w.modules || w.modules.length === 0) return !1;
3447
- const x = (w.lastParsedUrl || "").trim();
3448
- return !x || x === m;
3447
+ const T = (w.lastParsedUrl || "").trim();
3448
+ return !T || T === m;
3449
3449
  }, c = [];
3450
3450
  for (let g = 0; g < t.length; g++) {
3451
3451
  const m = t[g];
@@ -3464,12 +3464,12 @@ function hr(e, t, a, l, n, r) {
3464
3464
  if (m.type === "text" && m.className?.includes("rte-text-required"))
3465
3465
  if (m.exclusionGroup)
3466
3466
  for (let w = g + 1; w < t.length; w++) {
3467
- const x = t[w];
3468
- if (x.exclusionGroup === m.exclusionGroup && (x.type === "variable" || x.type === "markdown" || x.type === "upload" || x.type === "select" || x.type === "textarea" || x.type === "richtext" || x.type === "datepicker" || x.type === "number-input") && x.key) {
3467
+ const T = t[w];
3468
+ if (T.exclusionGroup === m.exclusionGroup && (T.type === "variable" || T.type === "markdown" || T.type === "upload" || T.type === "select" || T.type === "textarea" || T.type === "richtext" || T.type === "datepicker" || T.type === "number-input") && T.key) {
3469
3469
  c.push({
3470
3470
  exclusionGroup: m.exclusionGroup,
3471
- key: x.key,
3472
- type: x.type === "markdown" ? "variable" : x.type,
3471
+ key: T.key,
3472
+ type: T.type === "markdown" ? "variable" : T.type,
3473
3473
  __index: w
3474
3474
  });
3475
3475
  break;
@@ -3477,12 +3477,12 @@ function hr(e, t, a, l, n, r) {
3477
3477
  }
3478
3478
  else
3479
3479
  for (let w = g + 1; w < t.length; w++) {
3480
- const x = t[w];
3481
- if ((x.type === "variable" || x.type === "markdown" || x.type === "upload" || x.type === "select" || x.type === "textarea" || x.type === "richtext" || x.type === "datepicker" || x.type === "number-input") && x.key) {
3480
+ const T = t[w];
3481
+ if ((T.type === "variable" || T.type === "markdown" || T.type === "upload" || T.type === "select" || T.type === "textarea" || T.type === "richtext" || T.type === "datepicker" || T.type === "number-input") && T.key) {
3482
3482
  c.push({
3483
- exclusionGroup: x.exclusionGroup || "",
3484
- key: x.key,
3485
- type: x.type === "markdown" ? "variable" : x.type,
3483
+ exclusionGroup: T.exclusionGroup || "",
3484
+ key: T.key,
3485
+ type: T.type === "markdown" ? "variable" : T.type,
3486
3486
  __index: w
3487
3487
  });
3488
3488
  break;
@@ -3496,8 +3496,8 @@ function hr(e, t, a, l, n, r) {
3496
3496
  m.exclusionGroup === "separator" && g.push(w);
3497
3497
  });
3498
3498
  for (const m of g) {
3499
- const x = c.filter((k) => typeof k.__index == "number" && k.__index < m).sort((k, A) => (A.__index ?? 0) - (k.__index ?? 0))[0], N = c.filter((k) => typeof k.__index == "number" && k.__index > m).sort((k, A) => (k.__index ?? 0) - (A.__index ?? 0))[0];
3500
- x && N && h.push([x, N]);
3499
+ const T = c.filter((k) => typeof k.__index == "number" && k.__index < m).sort((k, A) => (A.__index ?? 0) - (k.__index ?? 0))[0], N = c.filter((k) => typeof k.__index == "number" && k.__index > m).sort((k, A) => (k.__index ?? 0) - (A.__index ?? 0))[0];
3500
+ T && N && h.push([T, N]);
3501
3501
  }
3502
3502
  }
3503
3503
  if (c.length === 0) {
@@ -3536,8 +3536,8 @@ function hr(e, t, a, l, n, r) {
3536
3536
  `[data-type="variable"][data-multi-key="${g.key}"]`
3537
3537
  );
3538
3538
  if (m.length > 0) {
3539
- const w = m[0], x = w.closest("[data-group]") || w.parentElement;
3540
- return u(x) ? !0 : x ? x.style.display !== "none" : !0;
3539
+ const w = m[0], T = w.closest("[data-group]") || w.parentElement;
3540
+ return u(T) ? !0 : T ? T.style.display !== "none" : !0;
3541
3541
  }
3542
3542
  } else {
3543
3543
  const m = e.current.querySelector(
@@ -3565,8 +3565,8 @@ function hr(e, t, a, l, n, r) {
3565
3565
  } else if (g.type === "richtext" && g.key) {
3566
3566
  const m = typeof g.moduleIndex == "number" ? `[data-type="richtext"][data-node-type="report-module"][data-key="${g.key}"][data-module-index="${g.moduleIndex}"], [data-type="richtext"][data-node-type="markdown-module"][data-key="${g.key}"][data-module-index="${g.moduleIndex}"]` : `[data-type="richtext"][data-key="${g.key}"]`, w = e.current.querySelector(m);
3567
3567
  if (w) {
3568
- const x = w.closest("[data-group]") || w.parentElement;
3569
- return u(x) ? !0 : x ? x.style.display !== "none" : !0;
3568
+ const T = w.closest("[data-group]") || w.parentElement;
3569
+ return u(T) ? !0 : T ? T.style.display !== "none" : !0;
3570
3570
  }
3571
3571
  } else if (g.type === "datepicker" && g.key) {
3572
3572
  const m = e.current.querySelector(
@@ -3610,11 +3610,11 @@ function hr(e, t, a, l, n, r) {
3610
3610
  );
3611
3611
  let b = (h.length === 0, !0);
3612
3612
  for (const g of h) {
3613
- const m = g.filter((x) => {
3613
+ const m = g.filter((T) => {
3614
3614
  if (!e.current) return !1;
3615
- if (x.exclusionGroup) {
3615
+ if (T.exclusionGroup) {
3616
3616
  const C = e.current.querySelectorAll(
3617
- `[data-group="${x.exclusionGroup}"]`
3617
+ `[data-group="${T.exclusionGroup}"]`
3618
3618
  );
3619
3619
  if (C.length > 0) {
3620
3620
  const N = C[0];
@@ -3626,12 +3626,12 @@ function hr(e, t, a, l, n, r) {
3626
3626
  if (m.length === 0)
3627
3627
  continue;
3628
3628
  let w = !1;
3629
- for (const x of m)
3630
- if (x.type === "upload" && x.key) {
3631
- if (x.minCount && x.minCount > 0) {
3629
+ for (const T of m)
3630
+ if (T.type === "upload" && T.key) {
3631
+ if (T.minCount && T.minCount > 0) {
3632
3632
  let C = 0;
3633
3633
  const N = e.current.querySelectorAll(
3634
- `[data-type="upload"][data-batch-key="${x.key}"]`
3634
+ `[data-type="upload"][data-batch-key="${T.key}"]`
3635
3635
  );
3636
3636
  if (N.length === 0)
3637
3637
  continue;
@@ -3639,18 +3639,18 @@ function hr(e, t, a, l, n, r) {
3639
3639
  const O = N[k].dataset.key;
3640
3640
  O && a[O] != null && (C += 1);
3641
3641
  }
3642
- if (C >= x.minCount) {
3642
+ if (C >= T.minCount) {
3643
3643
  w = !0;
3644
3644
  break;
3645
3645
  }
3646
- } else if (a[x.key] !== null && a[x.key] !== void 0) {
3646
+ } else if (a[T.key] !== null && a[T.key] !== void 0) {
3647
3647
  w = !0;
3648
3648
  break;
3649
3649
  }
3650
- } else if (x.type === "variable" && x.key)
3651
- if (x.isMultiVariable) {
3650
+ } else if (T.type === "variable" && T.key)
3651
+ if (T.isMultiVariable) {
3652
3652
  const C = e.current.querySelectorAll(
3653
- `[data-type="variable"][data-multi-key="${x.key}"]`
3653
+ `[data-type="variable"][data-multi-key="${T.key}"]`
3654
3654
  );
3655
3655
  let N = 0;
3656
3656
  for (const A of Array.from(C)) {
@@ -3658,14 +3658,14 @@ function hr(e, t, a, l, n, r) {
3658
3658
  continue;
3659
3659
  A.innerText.replace(/[\u200B\n]/g, "").trim().length > 0 && (N += 1);
3660
3660
  }
3661
- const k = x.minCount && x.minCount > 0 ? x.minCount : 1;
3661
+ const k = T.minCount && T.minCount > 0 ? T.minCount : 1;
3662
3662
  if (N >= k) {
3663
3663
  w = !0;
3664
3664
  break;
3665
3665
  }
3666
3666
  } else {
3667
3667
  const C = e.current.querySelector(
3668
- `[data-type="variable"][data-key="${x.key}"]`
3668
+ `[data-type="variable"][data-key="${T.key}"]`
3669
3669
  );
3670
3670
  if (C) {
3671
3671
  if (C.classList.contains("show-placeholder"))
@@ -3673,8 +3673,8 @@ function hr(e, t, a, l, n, r) {
3673
3673
  const N = s(C);
3674
3674
  if (N.length > 0) {
3675
3675
  const k = C.dataset.nodeType;
3676
- if (k === "report-url" && !o(x.key, N) || (k === "markdown" || k === "markdown-name") && !!!e.current.querySelector(
3677
- `[data-node-type="markdown-module"][data-key="${x.key}"]`
3676
+ if (k === "report-url" && !o(T.key, N) || (k === "markdown" || k === "markdown-name") && !!!e.current.querySelector(
3677
+ `[data-node-type="markdown-module"][data-key="${T.key}"]`
3678
3678
  ))
3679
3679
  continue;
3680
3680
  w = !0;
@@ -3682,22 +3682,22 @@ function hr(e, t, a, l, n, r) {
3682
3682
  }
3683
3683
  }
3684
3684
  }
3685
- else if (x.type === "select" && x.key) {
3686
- const C = e.current.querySelector(`[data-type="select"][data-key="${x.key}"]`);
3685
+ else if (T.type === "select" && T.key) {
3686
+ const C = e.current.querySelector(`[data-type="select"][data-key="${T.key}"]`);
3687
3687
  if (C && (C.getAttribute("data-value") || "").trim().length > 0) {
3688
3688
  w = !0;
3689
3689
  break;
3690
3690
  }
3691
- } else if (x.type === "textarea" && x.key) {
3691
+ } else if (T.type === "textarea" && T.key) {
3692
3692
  const C = e.current.querySelector(
3693
- `[data-type="textarea"][data-key="${x.key}"]`
3693
+ `[data-type="textarea"][data-key="${T.key}"]`
3694
3694
  );
3695
3695
  if (C && (C.value || "").trim().length > 0) {
3696
3696
  w = !0;
3697
3697
  break;
3698
3698
  }
3699
- } else if (x.type === "richtext" && x.key) {
3700
- const C = typeof x.moduleIndex == "number" ? `[data-type="richtext"][data-node-type="report-module"][data-key="${x.key}"][data-module-index="${x.moduleIndex}"], [data-type="richtext"][data-node-type="markdown-module"][data-key="${x.key}"][data-module-index="${x.moduleIndex}"]` : `[data-type="richtext"][data-key="${x.key}"]`, N = e.current.querySelector(C);
3699
+ } else if (T.type === "richtext" && T.key) {
3700
+ const C = typeof T.moduleIndex == "number" ? `[data-type="richtext"][data-node-type="report-module"][data-key="${T.key}"][data-module-index="${T.moduleIndex}"], [data-type="richtext"][data-node-type="markdown-module"][data-key="${T.key}"][data-module-index="${T.moduleIndex}"]` : `[data-type="richtext"][data-key="${T.key}"]`, N = e.current.querySelector(C);
3701
3701
  if (N) {
3702
3702
  if (N.getAttribute("data-is-placeholder") === "true")
3703
3703
  continue;
@@ -3706,21 +3706,21 @@ function hr(e, t, a, l, n, r) {
3706
3706
  break;
3707
3707
  }
3708
3708
  }
3709
- } else if (x.type === "datepicker" && x.key) {
3710
- const C = e.current.querySelector(`[data-type="datepicker"][data-key="${x.key}"]`);
3709
+ } else if (T.type === "datepicker" && T.key) {
3710
+ const C = e.current.querySelector(`[data-type="datepicker"][data-key="${T.key}"]`);
3711
3711
  if (C && (C.getAttribute("data-value") || "").trim().length > 0) {
3712
3712
  w = !0;
3713
3713
  break;
3714
3714
  }
3715
- } else if (x.type === "number-input" && x.key) {
3715
+ } else if (T.type === "number-input" && T.key) {
3716
3716
  const C = e.current.querySelector(
3717
- `[data-type="number-input"][data-key="${x.key}"]`
3717
+ `[data-type="number-input"][data-key="${T.key}"]`
3718
3718
  );
3719
3719
  if (C && (C.value || "").trim().length > 0) {
3720
3720
  w = !0;
3721
3721
  break;
3722
3722
  }
3723
- } else if ((x.type === "video-url" || x.type === "video-upload") && x.key && n?.[x.key]?.status === "success") {
3723
+ } else if ((T.type === "video-url" || T.type === "video-upload") && T.key && n?.[T.key]?.status === "success") {
3724
3724
  w = !0;
3725
3725
  break;
3726
3726
  }
@@ -3741,8 +3741,8 @@ function hr(e, t, a, l, n, r) {
3741
3741
  y = !1;
3742
3742
  break;
3743
3743
  }
3744
- for (let x = 0; x < w.length; x++) {
3745
- const N = w[x].dataset.key;
3744
+ for (let T = 0; T < w.length; T++) {
3745
+ const N = w[T].dataset.key;
3746
3746
  N && a[N] != null && (m += 1);
3747
3747
  }
3748
3748
  if (m < g.minCount) {
@@ -3764,8 +3764,8 @@ function hr(e, t, a, l, n, r) {
3764
3764
  continue;
3765
3765
  C.innerText.replace(/[\u200B\n]/g, "").trim().length > 0 && (w += 1);
3766
3766
  }
3767
- const x = g.minCount && g.minCount > 0 ? g.minCount : 1;
3768
- if (w < x) {
3767
+ const T = g.minCount && g.minCount > 0 ? g.minCount : 1;
3768
+ if (w < T) {
3769
3769
  y = !1;
3770
3770
  break;
3771
3771
  }
@@ -3784,12 +3784,12 @@ function hr(e, t, a, l, n, r) {
3784
3784
  y = !1;
3785
3785
  break;
3786
3786
  }
3787
- const x = m.dataset.nodeType;
3788
- if (x === "report-url" && !o(g.key, w)) {
3787
+ const T = m.dataset.nodeType;
3788
+ if (T === "report-url" && !o(g.key, w)) {
3789
3789
  y = !1;
3790
3790
  break;
3791
3791
  }
3792
- if ((x === "markdown" || x === "markdown-name") && !!!e.current.querySelector(
3792
+ if ((T === "markdown" || T === "markdown-name") && !!!e.current.querySelector(
3793
3793
  `[data-node-type="markdown-module"][data-key="${g.key}"]`
3794
3794
  )) {
3795
3795
  y = !1;
@@ -3894,21 +3894,21 @@ const qd = ({
3894
3894
  (M === m || M.contains(g)) && (w = !0);
3895
3895
  }), !w)
3896
3896
  return;
3897
- const x = m.dataset.multiKey, C = m.dataset.key, N = m.dataset.index;
3898
- if (!x || !C || N === void 0) return;
3897
+ const T = m.dataset.multiKey, C = m.dataset.key, N = m.dataset.index;
3898
+ if (!T || !C || N === void 0) return;
3899
3899
  const k = y.relatedTarget;
3900
3900
  if (!(!k || !l.current.contains(k)))
3901
3901
  return;
3902
3902
  const O = m.innerText.replace(/[\u200B\n]/g, "").trim(), D = /[、,,\s]+/;
3903
3903
  if (D.test(O)) {
3904
- const L = O.split(D).map((T) => T.trim()).filter((T) => T.length > 0).slice(0, 9);
3904
+ const L = O.split(D).map((x) => x.trim()).filter((x) => x.length > 0).slice(0, 9);
3905
3905
  if (L.length > 1) {
3906
- const T = e.find((I) => Ye(I.type) && I.key === x);
3907
- if (T) {
3908
- const I = r[x] || 1, H = parseInt(N, 10), B = T.maxCount || 9, $ = [];
3906
+ const x = e.find((I) => Ye(I.type) && I.key === T);
3907
+ if (x) {
3908
+ const I = r[T] || 1, H = parseInt(N, 10), B = x.maxCount || 9, $ = [];
3909
3909
  for (let q = 0; q < I; q++) {
3910
- const V = `${x}_${q}`, K = l.current.querySelector(
3911
- `[data-type="variable"][data-key="${V}"][data-multi-key="${x}"]`
3910
+ const V = `${T}_${q}`, K = l.current.querySelector(
3911
+ `[data-type="variable"][data-key="${V}"][data-multi-key="${T}"]`
3912
3912
  );
3913
3913
  if (K) {
3914
3914
  const j = K.innerText.replace(/[\u200B\n]/g, "").trim();
@@ -3920,18 +3920,18 @@ const qd = ({
3920
3920
  _.length > 0 && _[_.length - 1] !== "" && _.length < B && _.push("");
3921
3921
  const Y = Math.max(_.length, 1), z = {};
3922
3922
  _.forEach((q, V) => {
3923
- q && (z[`${x}_${V}`] = q);
3923
+ q && (z[`${T}_${V}`] = q);
3924
3924
  }), l.current.querySelectorAll(
3925
3925
  '[data-type="variable"]'
3926
3926
  ).forEach((q) => {
3927
3927
  const V = q.dataset.key, K = q.dataset.multiKey;
3928
- if (V && K !== x) {
3928
+ if (V && K !== T) {
3929
3929
  const j = q.innerText.replace(/[\u200B\n]/g, "").trim();
3930
3930
  j && (z[V] = j);
3931
3931
  }
3932
3932
  }), l.current.__tempVariableValues = z, i((q) => ({
3933
3933
  ...q,
3934
- [x]: Y
3934
+ [T]: Y
3935
3935
  }));
3936
3936
  }
3937
3937
  }
@@ -3982,7 +3982,7 @@ const qd = ({
3982
3982
  setVideoState: g,
3983
3983
  videoFileInputRef: m,
3984
3984
  activeVideoKeyRef: w,
3985
- onImagePreview: x
3985
+ onImagePreview: T
3986
3986
  }) => {
3987
3987
  const C = (...k) => {
3988
3988
  }, N = (k) => {
@@ -4188,10 +4188,10 @@ const qd = ({
4188
4188
  const z = Y.dataset.key, S = Y.dataset.batchKey, q = Y.dataset.batchIndex;
4189
4189
  if (z) {
4190
4190
  const V = o[z];
4191
- if (V && x && (typeof V == "string" ? /\.(png|jpe?g|gif|webp|bmp|svg)(\?.*)?$/i.test(V) : V.type?.startsWith("image/") || /\.(png|jpe?g|gif|webp|bmp|svg)$/i.test(V.name || ""))) {
4191
+ if (V && T && (typeof V == "string" ? /\.(png|jpe?g|gif|webp|bmp|svg)(\?.*)?$/i.test(V) : V.type?.startsWith("image/") || /\.(png|jpe?g|gif|webp|bmp|svg)$/i.test(V.name || ""))) {
4192
4192
  k.preventDefault(), k.stopPropagation();
4193
4193
  const ce = typeof V == "string" ? V : URL.createObjectURL(V);
4194
- x(ce);
4194
+ T(ce);
4195
4195
  return;
4196
4196
  }
4197
4197
  const K = S || z, j = l.find((te) => te.type === "upload" && te.key === K);
@@ -4236,7 +4236,7 @@ const qd = ({
4236
4236
  g,
4237
4237
  m,
4238
4238
  w,
4239
- x
4239
+ T
4240
4240
  ]
4241
4241
  );
4242
4242
  }, Vd = ({
@@ -4272,62 +4272,62 @@ const qd = ({
4272
4272
  if (da(t), t.current && t.current.querySelectorAll(
4273
4273
  '[data-type="variable"][data-node-type="report-url"]'
4274
4274
  ).forEach((w) => {
4275
- const x = w.dataset.key;
4276
- if (!x || w.getAttribute("data-report-url")) return;
4275
+ const T = w.dataset.key;
4276
+ if (!T || w.getAttribute("data-report-url")) return;
4277
4277
  w.innerText.replace(/[\u200B\n]/g, "").trim() || n((N) => {
4278
- const k = N[x];
4278
+ const k = N[T];
4279
4279
  return !k || k.status === "idle" && (!k.modules || k.modules.length === 0) ? N : {
4280
4280
  ...N,
4281
- [x]: { status: "idle", modules: [], lastParsedUrl: void 0, error: void 0 }
4281
+ [T]: { status: "idle", modules: [], lastParsedUrl: void 0, error: void 0 }
4282
4282
  };
4283
4283
  });
4284
4284
  }), t.current && t.current.querySelectorAll(
4285
4285
  '[data-type="variable"][data-node-type="markdown"]'
4286
4286
  ).forEach((w) => {
4287
- const x = w.dataset.key;
4288
- if (!x) return;
4287
+ const T = w.dataset.key;
4288
+ if (!T) return;
4289
4289
  w.innerText.replace(/[\u200B\n]/g, "").trim() || r((N) => {
4290
- const k = N[x];
4290
+ const k = N[T];
4291
4291
  return !k || k.status === "idle" && (!k.modules || k.modules.length === 0) ? N : {
4292
4292
  ...N,
4293
- [x]: { status: "idle", modules: [], lastParsedText: void 0, error: void 0 }
4293
+ [T]: { status: "idle", modules: [], lastParsedText: void 0, error: void 0 }
4294
4294
  };
4295
4295
  });
4296
4296
  }), t.current && t.current.querySelectorAll(
4297
4297
  '[data-type="variable"][data-node-type="markdown-name"]'
4298
4298
  ).forEach((w) => {
4299
- const x = w.dataset.key;
4300
- if (!x) return;
4299
+ const T = w.dataset.key;
4300
+ if (!T) return;
4301
4301
  w.innerText.replace(/[\u200B\n]/g, "").trim() || i((N) => {
4302
- const k = N[x];
4302
+ const k = N[T];
4303
4303
  return !k || k.status === "idle" && (!k.modules || k.modules.length === 0) ? N : {
4304
4304
  ...N,
4305
- [x]: { status: "idle", modules: [], lastParsedText: void 0, error: void 0 }
4305
+ [T]: { status: "idle", modules: [], lastParsedText: void 0, error: void 0 }
4306
4306
  };
4307
4307
  });
4308
4308
  }), t.current && t.current.querySelectorAll(
4309
4309
  '[data-type="richtext"][data-node-type="markdown-module"]'
4310
4310
  ).forEach((w) => {
4311
- const x = w.dataset.key;
4312
- if (!x) return;
4311
+ const T = w.dataset.key;
4312
+ if (!T) return;
4313
4313
  const C = w.innerText.replace(/[\u200B\n]/g, "").trim();
4314
4314
  w.getAttribute("data-is-placeholder") === "true" && C && !C.startsWith("请补充:") && w.removeAttribute("data-is-placeholder"), C || (r((N) => {
4315
- const k = N[x];
4315
+ const k = N[T];
4316
4316
  return !k || k.status === "idle" ? N : {
4317
4317
  ...N,
4318
- [x]: { status: "idle", modules: [], lastParsedText: void 0, error: void 0 }
4318
+ [T]: { status: "idle", modules: [], lastParsedText: void 0, error: void 0 }
4319
4319
  };
4320
4320
  }), i((N) => {
4321
- const k = N[x];
4321
+ const k = N[T];
4322
4322
  return !k || k.status === "idle" ? N : {
4323
4323
  ...N,
4324
- [x]: { status: "idle", modules: [], lastParsedText: void 0, error: void 0 }
4324
+ [T]: { status: "idle", modules: [], lastParsedText: void 0, error: void 0 }
4325
4325
  };
4326
4326
  }));
4327
4327
  }), t.current && t.current.querySelectorAll('[data-type="variable"]').forEach((w) => {
4328
4328
  if (w.dataset.variableRender === "antd-textarea")
4329
4329
  return;
4330
- const x = w.innerText || "", C = !!w.querySelector("br") || x.includes(`
4330
+ const T = w.innerText || "", C = !!w.querySelector("br") || T.includes(`
4331
4331
  `), N = w.offsetHeight > 32, k = C || N;
4332
4332
  w.classList.toggle("rte-variable-multiline", k), w.classList.toggle("rte-variable-force-block", k);
4333
4333
  const A = w.closest(".rte-inline-group");
@@ -4337,25 +4337,25 @@ const qd = ({
4337
4337
  const D = w.querySelector(".variable-info-icon");
4338
4338
  let F = w.querySelector(".rte-report-dropdown-host");
4339
4339
  if (!F && w.dataset.multiKey && w.dataset.key) {
4340
- const L = w.dataset.multiKey, T = o.find(
4340
+ const L = w.dataset.multiKey, x = o.find(
4341
4341
  (I) => Ye(I.type) && I.key === L
4342
4342
  );
4343
- if (T) {
4343
+ if (x) {
4344
4344
  const I = document.createElement("span");
4345
4345
  I.setAttribute("contenteditable", "false"), I.className = "rte-report-dropdown-host", I.dataset.key = w.dataset.key, I.dataset.multiKey = L, I.setAttribute(
4346
4346
  "data-node-type",
4347
- T.type === "multi-variable-select" ? "multi-variable-select" : "multi-variable"
4347
+ x.type === "multi-variable-select" ? "multi-variable-select" : "multi-variable"
4348
4348
  ), w.appendChild(I), F = I;
4349
4349
  }
4350
4350
  }
4351
4351
  const M = D || F;
4352
4352
  if (M) {
4353
4353
  let L = !1;
4354
- const T = document.createTreeWalker(w, NodeFilter.SHOW_TEXT, {
4354
+ const x = document.createTreeWalker(w, NodeFilter.SHOW_TEXT, {
4355
4355
  acceptNode: (H) => M.contains(H) ? NodeFilter.FILTER_REJECT : NodeFilter.FILTER_ACCEPT
4356
4356
  });
4357
- for (; T.nextNode(); )
4358
- if (T.currentNode.textContent?.replace(/[\u200B\n]/g, "").trim()) {
4357
+ for (; x.nextNode(); )
4358
+ if (x.currentNode.textContent?.replace(/[\u200B\n]/g, "").trim()) {
4359
4359
  L = !0;
4360
4360
  break;
4361
4361
  }
@@ -4369,8 +4369,8 @@ const qd = ({
4369
4369
  }), !t.current) return;
4370
4370
  e.filter((m) => Ye(m.type) && m.key).forEach((m) => {
4371
4371
  if (!m.key) return;
4372
- const w = m.maxCount || 9, x = d[m.key] || 1, C = [];
4373
- for (let D = 0; D < x; D++) {
4372
+ const w = m.maxCount || 9, T = d[m.key] || 1, C = [];
4373
+ for (let D = 0; D < T; D++) {
4374
4374
  const F = `${m.key}_${D}`, M = t.current.querySelector(
4375
4375
  `[data-type="variable"][data-key="${F}"][data-multi-key="${m.key}"]`
4376
4376
  );
@@ -4402,7 +4402,7 @@ const qd = ({
4402
4402
  }
4403
4403
  }
4404
4404
  const F = [];
4405
- for (let $ = 0; $ < x; $++) {
4405
+ for (let $ = 0; $ < T; $++) {
4406
4406
  const _ = `${m.key}_${$}`, Y = t.current.querySelector(
4407
4407
  `[data-type="variable"][data-key="${_}"][data-multi-key="${m.key}"]`
4408
4408
  ), z = Y?.getAttribute("data-report-url"), S = Y?.getAttribute("data-report-name");
@@ -4416,15 +4416,15 @@ const qd = ({
4416
4416
  for (let $ = O; $ < L.length - 1; $++)
4417
4417
  L[$] = L[$ + 1];
4418
4418
  if (L.pop(), v?.current) {
4419
- for (let $ = 0; $ < x; $++)
4419
+ for (let $ = 0; $ < T; $++)
4420
4420
  delete v.current[`${m.key}_${$}`];
4421
4421
  L.forEach(($, _) => {
4422
4422
  $ && (v.current[`${m.key}_${_}`] = $);
4423
4423
  });
4424
4424
  }
4425
- const T = {};
4425
+ const x = {};
4426
4426
  M.forEach(($, _) => {
4427
- $ && (T[`${m.key}_${_}`] = $);
4427
+ $ && (x[`${m.key}_${_}`] = $);
4428
4428
  });
4429
4429
  const I = Math.max(k ? M.length : M.length + 1, 1);
4430
4430
  t.current.querySelectorAll('[data-type="variable"]').forEach(($) => {
@@ -4432,11 +4432,11 @@ const qd = ({
4432
4432
  if (_ && Y !== m.key) {
4433
4433
  const z = ($.innerText || "").replace(/\u200B/g, "").replace(/\r\n/g, `
4434
4434
  `).trim();
4435
- z && (T[_] = z);
4435
+ z && (x[_] = z);
4436
4436
  }
4437
- }), t.current.__tempVariableValues = T;
4437
+ }), t.current.__tempVariableValues = x;
4438
4438
  const B = [];
4439
- for (let $ = O; $ < x; $++)
4439
+ for (let $ = O; $ < T; $++)
4440
4440
  B.push(`${m.key}_${$}`);
4441
4441
  Ra({ keys: B }), document.dispatchEvent(new CustomEvent("rte-report-dropdown-force-close")), h(($) => ({
4442
4442
  ...$,
@@ -4445,14 +4445,14 @@ const qd = ({
4445
4445
  return;
4446
4446
  }
4447
4447
  if (!k) {
4448
- const D = x - 1, F = `${m.key}_${D}`, M = t.current.querySelector(
4448
+ const D = T - 1, F = `${m.key}_${D}`, M = t.current.querySelector(
4449
4449
  `[data-type="variable"][data-key="${F}"][data-multi-key="${m.key}"]`
4450
4450
  );
4451
4451
  if (M && (M.innerText || "").replace(/\u200B/g, "").replace(/\r\n/g, `
4452
- `).trim().length > 0 && x < w) {
4453
- const T = window.getSelection();
4454
- if (T && T.rangeCount > 0) {
4455
- const H = T.getRangeAt(0), B = H.startContainer, $ = B.nodeType === Node.ELEMENT_NODE ? B.closest('[data-type="variable"][data-multi-key]') : B.parentElement?.closest('[data-type="variable"][data-multi-key]');
4452
+ `).trim().length > 0 && T < w) {
4453
+ const x = window.getSelection();
4454
+ if (x && x.rangeCount > 0) {
4455
+ const H = x.getRangeAt(0), B = H.startContainer, $ = B.nodeType === Node.ELEMENT_NODE ? B.closest('[data-type="variable"][data-multi-key]') : B.parentElement?.closest('[data-type="variable"][data-multi-key]');
4456
4456
  if ($) {
4457
4457
  const _ = $.dataset.key;
4458
4458
  if (_) {
@@ -4470,7 +4470,7 @@ const qd = ({
4470
4470
  })
4471
4471
  ), h((H) => ({
4472
4472
  ...H,
4473
- [m.key]: x + 1
4473
+ [m.key]: T + 1
4474
4474
  }));
4475
4475
  }
4476
4476
  }
@@ -4575,7 +4575,7 @@ const qd = ({
4575
4575
  if (!(() => {
4576
4576
  const y = d.dataset.multiKey;
4577
4577
  if (y)
4578
- return a.find((x) => Ye(x.type) && x.key === y)?.allowNewline !== !1;
4578
+ return a.find((T) => Ye(T.type) && T.key === y)?.allowNewline !== !1;
4579
4579
  const g = d.dataset.key;
4580
4580
  return a.find((w) => w.type === "variable" && w.key === g)?.allowNewline !== !1;
4581
4581
  })()) {
@@ -4653,8 +4653,8 @@ const qd = ({
4653
4653
  f.removeAttribute("data-report-url"), f.removeAttribute("data-report-name"), f.classList.remove("rte-report-name-chip"), f.contentEditable = "true";
4654
4654
  const w = f.querySelector(".rte-report-dropdown-host");
4655
4655
  w?.parentNode && w.parentNode.removeChild(w);
4656
- const x = f.querySelector(".rte-report-chip-clear-host");
4657
- if (x?.parentNode && x.parentNode.removeChild(x), f.textContent = "​", f.classList.add("show-placeholder"), w)
4656
+ const T = f.querySelector(".rte-report-chip-clear-host");
4657
+ if (T?.parentNode && T.parentNode.removeChild(T), f.textContent = "​", f.classList.add("show-placeholder"), w)
4658
4658
  w.classList.remove("hidden"), w.style.display = "", f.appendChild(w);
4659
4659
  else {
4660
4660
  const C = document.createElement("span");
@@ -4773,8 +4773,8 @@ const qd = ({
4773
4773
  if (!g) return;
4774
4774
  const m = v;
4775
4775
  m.focus();
4776
- const w = document.createTreeWalker(m, NodeFilter.SHOW_TEXT), x = w.nextNode() ? w.currentNode : null, C = document.createRange();
4777
- x ? (C.setStart(x, 0), C.collapse(!0)) : (C.selectNodeContents(m), C.collapse(!0)), g.removeAllRanges(), g.addRange(C), u("raf after setRange (mousedown)");
4776
+ const w = document.createTreeWalker(m, NodeFilter.SHOW_TEXT), T = w.nextNode() ? w.currentNode : null, C = document.createRange();
4777
+ T ? (C.setStart(T, 0), C.collapse(!0)) : (C.selectNodeContents(m), C.collapse(!0)), g.removeAllRanges(), g.addRange(C), u("raf after setRange (mousedown)");
4778
4778
  });
4779
4779
  return;
4780
4780
  }
@@ -4808,8 +4808,8 @@ const qd = ({
4808
4808
  if (!y) return;
4809
4809
  const g = E;
4810
4810
  g.focus();
4811
- const m = document.createTreeWalker(g, NodeFilter.SHOW_TEXT), w = m.nextNode() ? m.currentNode : null, x = document.createRange();
4812
- w ? (x.setStart(w, 0), x.collapse(!0)) : (x.selectNodeContents(g), x.collapse(!0)), y.removeAllRanges(), y.addRange(x), u("raf after setRange (mouseup)");
4811
+ const m = document.createTreeWalker(g, NodeFilter.SHOW_TEXT), w = m.nextNode() ? m.currentNode : null, T = document.createRange();
4812
+ w ? (T.setStart(w, 0), T.collapse(!0)) : (T.selectNodeContents(g), T.collapse(!0)), y.removeAllRanges(), y.addRange(T), u("raf after setRange (mouseup)");
4813
4813
  }));
4814
4814
  }
4815
4815
  r.current = null, n.current = !1;
@@ -4825,8 +4825,8 @@ const qd = ({
4825
4825
  if (y.replace(/\u200B/g, "")) {
4826
4826
  let m = 0, w = y.length;
4827
4827
  y.startsWith("​") && (m = 1), y.endsWith("​") && y.length > 1 && (w = y.length - 1);
4828
- const x = E.firstChild;
4829
- x && x.nodeType === Node.TEXT_NODE ? (b.setStart(x, m), b.setEnd(x, w)) : b.selectNodeContents(E);
4828
+ const T = E.firstChild;
4829
+ T && T.nodeType === Node.TEXT_NODE ? (b.setStart(T, m), b.setEnd(T, w)) : b.selectNodeContents(E);
4830
4830
  } else
4831
4831
  b.selectNodeContents(E), b.collapse(!0);
4832
4832
  v.removeAllRanges(), v.addRange(b);
@@ -4859,12 +4859,12 @@ const qd = ({
4859
4859
  detail: m ? { exceptKey: m } : void 0
4860
4860
  })
4861
4861
  );
4862
- const w = t.some((F) => F.type === "tag"), x = Array.from(b.clipboardData.files);
4863
- if (x.length > 0 && w) {
4862
+ const w = t.some((F) => F.type === "tag"), T = Array.from(b.clipboardData.files);
4863
+ if (T.length > 0 && w) {
4864
4864
  b.preventDefault();
4865
4865
  return;
4866
4866
  }
4867
- if (x.length > 0) {
4867
+ if (T.length > 0) {
4868
4868
  b.preventDefault();
4869
4869
  const F = [
4870
4870
  "pdf",
@@ -4928,9 +4928,9 @@ const qd = ({
4928
4928
  "xml"
4929
4929
  ], M = [];
4930
4930
  let L = !1;
4931
- for (const T of x) {
4932
- const I = (T.name || "").split(".").pop()?.toLowerCase() || "";
4933
- F.includes(I) ? M.push(T) : L = !0;
4931
+ for (const x of T) {
4932
+ const I = (x.name || "").split(".").pop()?.toLowerCase() || "";
4933
+ F.includes(I) ? M.push(x) : L = !0;
4934
4934
  }
4935
4935
  if (L && v?.(), M.length > 0) {
4936
4936
  const I = f.reduce(($, _) => $ + _.size, 0), H = [];
@@ -5006,8 +5006,8 @@ const qd = ({
5006
5006
  return;
5007
5007
  }
5008
5008
  }
5009
- const T = M.getAttribute("data-node-type") || "";
5010
- if (!(T === "markdown" || T === "report-url" || T === "markdown-name")) {
5009
+ const x = M.getAttribute("data-node-type") || "";
5010
+ if (!(x === "markdown" || x === "report-url" || x === "markdown-name")) {
5011
5011
  const H = (() => {
5012
5012
  const $ = M.getAttribute("data-node-type") || "";
5013
5013
  if ($ === "report-url" || $ === "markdown" || $ === "markdown-name") return !1;
@@ -5043,19 +5043,19 @@ const qd = ({
5043
5043
  if (F) {
5044
5044
  let M = null;
5045
5045
  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) {
5046
- const L = M.getAttribute("data-node-type") || "", T = M.dataset.key;
5047
- if (L === "markdown" && T && /20\d{2}-\d{2}-\d{2}/.test(N))
5048
- A = !0, O = T, c.current[T] = N, d((I) => ({
5046
+ const L = M.getAttribute("data-node-type") || "", x = M.dataset.key;
5047
+ if (L === "markdown" && x && /20\d{2}-\d{2}-\d{2}/.test(N))
5048
+ A = !0, O = x, c.current[x] = N, d((I) => ({
5049
5049
  ...I,
5050
- [T]: { ...I[T], status: "loading", error: void 0 }
5050
+ [x]: { ...I[x], status: "loading", error: void 0 }
5051
5051
  }));
5052
- else if (L === "report-url" && T) {
5052
+ else if (L === "report-url" && x) {
5053
5053
  document.execCommand("insertText", !1, N), r();
5054
5054
  return;
5055
- } else if (L === "markdown-name" && T) {
5055
+ } else if (L === "markdown-name" && x) {
5056
5056
  document.execCommand("insertText", !1, N), r(), setTimeout(() => {
5057
5057
  const I = M.innerText.replace(/[\u200B\n]/g, "").trim();
5058
- s.current(T, I);
5058
+ s.current(x, I);
5059
5059
  }, 0);
5060
5060
  return;
5061
5061
  }
@@ -5081,8 +5081,8 @@ const qd = ({
5081
5081
  H.collapse(!1), H.insertNode(I), L = I.getBoundingClientRect(), I.remove();
5082
5082
  }
5083
5083
  if (!L) return;
5084
- const T = M.getBoundingClientRect();
5085
- L.bottom > T.bottom ? M.scrollTop += L.bottom - T.bottom + 8 : L.top < T.top && (M.scrollTop -= T.top - L.top + 8);
5084
+ const x = M.getBoundingClientRect();
5085
+ L.bottom > x.bottom ? M.scrollTop += L.bottom - x.bottom + 8 : L.top < x.top && (M.scrollTop -= x.top - L.top + 8);
5086
5086
  }, 0), setTimeout(() => {
5087
5087
  /20\d{2}-\d{2}-\d{2}/.test(N) && o.current.tableData?.status === "success" && (d((M) => ({
5088
5088
  ...M,
@@ -5162,8 +5162,8 @@ const jd = ({
5162
5162
  if (g.nodeType === Node.TEXT_NODE)
5163
5163
  E += (g.textContent || "").replace(/\u200B/g, "");
5164
5164
  else if (g.nodeType === Node.ELEMENT_NODE) {
5165
- const m = g, w = m.dataset.type, x = m.dataset.key;
5166
- if (w === "variable" && x) {
5165
+ const m = g, w = m.dataset.type, T = m.dataset.key;
5166
+ if (w === "variable" && T) {
5167
5167
  let C = "";
5168
5168
  const N = document.createTreeWalker(
5169
5169
  m,
@@ -5185,7 +5185,7 @@ const jd = ({
5185
5185
  const D = v[O];
5186
5186
  D.push(A), D.length > 1 && (E += " "), E += A;
5187
5187
  } else
5188
- v[x] = A, E += A;
5188
+ v[T] = A, E += A;
5189
5189
  if (m.dataset.nodeType === "report-url")
5190
5190
  if (v.url === void 0)
5191
5191
  v.url = A;
@@ -5194,48 +5194,48 @@ const jd = ({
5194
5194
  Array.isArray(D) ? D.push(A) : v.url = [String(D), A];
5195
5195
  }
5196
5196
  if (m.dataset.nodeType === "markdown-name") {
5197
- const D = `${x}__sourceText`;
5197
+ const D = `${T}__sourceText`;
5198
5198
  v[D] === void 0 && (v[D] = A);
5199
5199
  }
5200
5200
  if (m.dataset.nodeType === "markdown") {
5201
- const D = m.dataset.sourceTextKey || `${x}__sourceText`;
5201
+ const D = m.dataset.sourceTextKey || `${T}__sourceText`;
5202
5202
  if (v[D] === void 0)
5203
5203
  v[D] = A;
5204
5204
  else {
5205
5205
  const M = v[D];
5206
5206
  Array.isArray(M) ? M.push(A) : v[D] = [String(M), A];
5207
5207
  }
5208
- const F = `${x}__markdown`;
5208
+ const F = `${T}__markdown`;
5209
5209
  v[F] === void 0 && (v[F] = [$u(A)]);
5210
5210
  }
5211
5211
  }
5212
- } else if ((w === "select" || w === "searchable-select" || w === "cascader") && x) {
5212
+ } else if ((w === "select" || w === "searchable-select" || w === "cascader") && T) {
5213
5213
  const C = (m.getAttribute("data-value") || "").trim();
5214
- C && (v[x] = C, E += C);
5215
- } else if (w === "textarea" && x) {
5214
+ C && (v[T] = C, E += C);
5215
+ } else if (w === "textarea" && T) {
5216
5216
  const N = (m.value || "").replace(/\u200B/g, "").trim();
5217
- N && (v[x] = N, E += N);
5218
- } else if (w === "richtext" && x) {
5217
+ N && (v[T] = N, E += N);
5218
+ } else if (w === "richtext" && T) {
5219
5219
  const C = m, N = C.dataset.nodeType, k = (C.textContent || "").replace(/\u200B/g, "").trim();
5220
5220
  if (k)
5221
5221
  if (N === "report-module" || N === "markdown-module") {
5222
- (!v[x] || !Array.isArray(v[x])) && (v[x] = []);
5223
- const A = v[x];
5222
+ (!v[T] || !Array.isArray(v[T])) && (v[T] = []);
5223
+ const A = v[T];
5224
5224
  A.push(k), A.length > 1 && (E += " "), E += k;
5225
5225
  } else
5226
- v[x] = k, E += k;
5227
- } else if (w === "datepicker" && x) {
5226
+ v[T] = k, E += k;
5227
+ } else if (w === "datepicker" && T) {
5228
5228
  const N = (m.getAttribute("data-value") || "").trim();
5229
5229
  if (N)
5230
5230
  if (N.includes(",")) {
5231
5231
  const k = N.split(",");
5232
- k.length === 2 ? (v[x] = k, E += `[${k[0]}, ${k[1]}]`) : (v[x] = N, E += N);
5232
+ k.length === 2 ? (v[T] = k, E += `[${k[0]}, ${k[1]}]`) : (v[T] = N, E += N);
5233
5233
  } else
5234
- v[x] = N, E += N;
5235
- } else if (w === "number-input" && x) {
5234
+ v[T] = N, E += N;
5235
+ } else if (w === "number-input" && T) {
5236
5236
  const N = (m.value || "").trim();
5237
- N && (v[x] = N, E += N);
5238
- } else if (w === "upload" && x) {
5237
+ N && (v[T] = N, E += N);
5238
+ } else if (w === "upload" && T) {
5239
5239
  const C = m.dataset.batchKey;
5240
5240
  if (C) {
5241
5241
  const N = e.find((k) => k.type === "upload" && k.key === C);
@@ -5246,18 +5246,18 @@ const jd = ({
5246
5246
  D && k.push(D);
5247
5247
  }
5248
5248
  v[C] || (v[C] = k.length > 0 ? k : null, k.length > 0 && (E += ` [附带${k.length}个文件: ${k.map((A) => typeof A == "string" ? A.split("/").pop() || "file" : A.name).join(", ")}] `));
5249
- } else if (v[x] = t[x] ?? null, t[x]) {
5250
- const k = t[x];
5249
+ } else if (v[T] = t[T] ?? null, t[T]) {
5250
+ const k = t[T];
5251
5251
  E += ` [附带文件: ${typeof k == "string" ? k.split("/").pop() || "file" : k.name}] `;
5252
5252
  }
5253
- } else if (v[x] = t[x] ?? null, t[x]) {
5254
- const N = t[x];
5253
+ } else if (v[T] = t[T] ?? null, t[T]) {
5254
+ const N = t[T];
5255
5255
  E += ` [附带文件: ${typeof N == "string" ? N.split("/").pop() || "file" : N.name}] `;
5256
5256
  }
5257
- } else if ((w === "video-url" || w === "video-upload") && x) {
5258
- const C = h?.[x];
5257
+ } else if ((w === "video-url" || w === "video-upload") && T) {
5258
+ const C = h?.[T];
5259
5259
  if (C?.status === "success" && C.videoUrl) {
5260
- v[x] = C.videoUrl, C.file && (v[`${x}__file`] = C.file);
5260
+ v[T] = C.videoUrl, C.file && (v[`${T}__file`] = C.file);
5261
5261
  const N = C.fileName || "视频";
5262
5262
  E += ` [附带视频: ${N}] `;
5263
5263
  }
@@ -5272,12 +5272,12 @@ const jd = ({
5272
5272
  Object.keys(c).forEach((g) => {
5273
5273
  const m = c[g];
5274
5274
  if (!m || !m.modules || m.modules.length === 0) return;
5275
- const w = m.modules.map((x) => (x?.markdown || "").trim()).filter((x) => x.length > 0);
5275
+ const w = m.modules.map((T) => (T?.markdown || "").trim()).filter((T) => T.length > 0);
5276
5276
  w.length !== 0 && (v[`${g}__markdown`] = w);
5277
5277
  }), Object.keys(d).forEach((g) => {
5278
5278
  const m = d[g];
5279
5279
  if (!m || !m.modules || m.modules.length === 0) return;
5280
- const w = m.modules.map((x) => (x?.markdown || "").trim()).filter((x) => x.length > 0);
5280
+ const w = m.modules.map((T) => (T?.markdown || "").trim()).filter((T) => T.length > 0);
5281
5281
  w.length !== 0 && (v[`${g}__markdown`] = w);
5282
5282
  }), (async () => {
5283
5283
  for (const m of Object.keys(v)) {
@@ -5302,12 +5302,12 @@ const jd = ({
5302
5302
  if (w instanceof File)
5303
5303
  g.append(m, w);
5304
5304
  else if (Array.isArray(w)) {
5305
- const x = e.some(
5305
+ const T = e.some(
5306
5306
  (A) => Ye(A.type) && A.key === m
5307
5307
  ), C = e.some(
5308
5308
  (A) => A.type === "report-url" && A.key === m
5309
5309
  ), N = m.endsWith("__markdown");
5310
- x || C || N || m === "url" ? w.forEach((A) => {
5310
+ T || C || N || m === "url" ? w.forEach((A) => {
5311
5311
  A != null && A !== "" && g.append(m, String(A));
5312
5312
  }) : w.forEach((A, O) => {
5313
5313
  A != null && (A instanceof File ? g.append(`${m}[${O}]`, A) : typeof A == "string" ? g.append(`${m}[${O}]`, A) : g.append(`${m}[${O}]`, String(A)));
@@ -5840,7 +5840,7 @@ function hf() {
5840
5840
  let v = a.slidesOffsetAfter;
5841
5841
  typeof v == "function" && (v = a.slidesOffsetAfter.call(e));
5842
5842
  const b = e.snapGrid.length, y = e.slidesGrid.length, g = e.size - E - v;
5843
- let m = a.spaceBetween, w = -E, x = 0, C = 0;
5843
+ let m = a.spaceBetween, w = -E, T = 0, C = 0;
5844
5844
  if (typeof g > "u")
5845
5845
  return;
5846
5846
  typeof m == "string" && m.indexOf("%") >= 0 ? m = parseFloat(m.replace("%", "")) / 100 * g : typeof m == "string" && (m = parseFloat(m)), e.virtualSize = -m - E - v, o.forEach((O) => {
@@ -5862,21 +5862,21 @@ function hf() {
5862
5862
  if (M && (D.style.transform = "none"), L && (D.style.webkitTransform = "none"), a.roundLengths)
5863
5863
  k = e.isHorizontal() ? fi(D, "width") : fi(D, "height");
5864
5864
  else {
5865
- const T = t(F, "width"), I = t(F, "padding-left"), H = t(F, "padding-right"), B = t(F, "margin-left"), $ = t(F, "margin-right"), _ = F.getPropertyValue("box-sizing");
5865
+ const x = t(F, "width"), I = t(F, "padding-left"), H = t(F, "padding-right"), B = t(F, "margin-left"), $ = t(F, "margin-right"), _ = F.getPropertyValue("box-sizing");
5866
5866
  if (_ && _ === "border-box")
5867
- k = T + B + $;
5867
+ k = x + B + $;
5868
5868
  else {
5869
5869
  const {
5870
5870
  clientWidth: Y,
5871
5871
  offsetWidth: z
5872
5872
  } = D;
5873
- k = T + I + H + B + $ + (z - Y);
5873
+ k = x + I + H + B + $ + (z - Y);
5874
5874
  }
5875
5875
  }
5876
5876
  M && (D.style.transform = M), L && (D.style.webkitTransform = L), a.roundLengths && (k = Math.floor(k));
5877
5877
  } else
5878
5878
  k = (g - (a.slidesPerView - 1) * m) / a.slidesPerView, a.roundLengths && (k = Math.floor(k)), D && (D.style[e.getDirectionLabel("width")] = `${k}px`);
5879
- D && (D.swiperSlideSize = k), f.push(k), a.centeredSlides ? (w = w + k / 2 + x / 2 + m, x === 0 && O !== 0 && (w = w - g / 2 - m), O === 0 && (w = w - g / 2 - m), Math.abs(w) < 1 / 1e3 && (w = 0), a.roundLengths && (w = Math.floor(w)), C % a.slidesPerGroup === 0 && d.push(w), h.push(w)) : (a.roundLengths && (w = Math.floor(w)), (C - Math.min(e.params.slidesPerGroupSkip, C)) % e.params.slidesPerGroup === 0 && d.push(w), h.push(w), w = w + k + m), e.virtualSize += k + m, x = k, C += 1;
5879
+ D && (D.swiperSlideSize = k), f.push(k), a.centeredSlides ? (w = w + k / 2 + T / 2 + m, T === 0 && O !== 0 && (w = w - g / 2 - m), O === 0 && (w = w - g / 2 - m), Math.abs(w) < 1 / 1e3 && (w = 0), a.roundLengths && (w = Math.floor(w)), C % a.slidesPerGroup === 0 && d.push(w), h.push(w)) : (a.roundLengths && (w = Math.floor(w)), (C - Math.min(e.params.slidesPerGroupSkip, C)) % e.params.slidesPerGroup === 0 && d.push(w), h.push(w), w = w + k + m), e.virtualSize += k + m, T = k, C += 1;
5880
5880
  }
5881
5881
  }
5882
5882
  if (e.virtualSize = Math.max(e.virtualSize, g) + v, r && i && (a.effect === "slide" || a.effect === "coverflow") && (l.style.width = `${e.virtualSize + m}px`), a.setWrapperSize && (l.style[e.getDirectionLabel("width")] = `${e.virtualSize + m}px`), N && e.grid.updateWrapperSize(k, d), !a.centeredSlides) {
@@ -5886,8 +5886,8 @@ function hf() {
5886
5886
  let L;
5887
5887
  if (a.slidesPerView === "auto") {
5888
5888
  L = 1;
5889
- let T = 0;
5890
- for (let I = f.length - 1; I >= 0 && (T += f[I] + (I < f.length - 1 ? m : 0), T <= g); I -= 1)
5889
+ let x = 0;
5890
+ for (let I = f.length - 1; I >= 0 && (x += f[I] + (I < f.length - 1 ? m : 0), x <= g); I -= 1)
5891
5891
  L = f.length - I;
5892
5892
  } else
5893
5893
  L = Math.floor(a.slidesPerView);
@@ -5895,8 +5895,8 @@ function hf() {
5895
5895
  }
5896
5896
  const M = [];
5897
5897
  for (let L = 0; L < d.length; L += 1) {
5898
- let T = d[L];
5899
- a.roundLengths && (T = Math.floor(T)), D ? L <= F && M.push(T) : d[L] <= e.virtualSize - g && M.push(T);
5898
+ let x = d[L];
5899
+ a.roundLengths && (x = Math.floor(x)), D ? L <= F && M.push(x) : d[L] <= e.virtualSize - g && M.push(x);
5900
5900
  }
5901
5901
  d = M, Math.floor(e.virtualSize - g) - Math.floor(d[d.length - 1]) > 1 && (D || d.push(e.virtualSize - g));
5902
5902
  }
@@ -6601,19 +6601,19 @@ function zf({
6601
6601
  let m = f.slidesPerView;
6602
6602
  m === "auto" ? m = s.slidesPerViewDynamic() : (m = Math.ceil(parseFloat(f.slidesPerView, 10)), g && m % 2 === 0 && (m = m + 1));
6603
6603
  const w = f.slidesPerGroupAuto ? m : f.slidesPerGroup;
6604
- let x = g ? Math.max(w, Math.ceil(m / 2)) : w;
6605
- x % w !== 0 && (x += w - x % w), x += f.loopAdditionalSlides, s.loopedSlides = x;
6604
+ let T = g ? Math.max(w, Math.ceil(m / 2)) : w;
6605
+ T % w !== 0 && (T += w - T % w), T += f.loopAdditionalSlides, s.loopedSlides = T;
6606
6606
  const C = s.grid && f.grid && f.grid.rows > 1;
6607
- o.length < m + x || s.params.effect === "cards" && o.length < m + x * 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`");
6607
+ 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
6608
  const N = [], k = [], A = C ? Math.ceil(o.length / f.grid.rows) : o.length, O = r && A - y < m && !g;
6609
6609
  let D = O ? y : s.activeIndex;
6610
6610
  typeof n > "u" ? n = s.getSlideIndex(o.find((B) => B.classList.contains(f.slideActiveClass))) : D = n;
6611
6611
  const F = a === "next" || !a, M = a === "prev" || !a;
6612
- let L = 0, T = 0;
6612
+ let L = 0, x = 0;
6613
6613
  const H = (C ? o[n].column : n) + (g && typeof l > "u" ? -m / 2 + 0.5 : 0);
6614
- if (H < x) {
6615
- L = Math.max(x - H, w);
6616
- for (let B = 0; B < x - H; B += 1) {
6614
+ if (H < T) {
6615
+ L = Math.max(T - H, w);
6616
+ for (let B = 0; B < T - H; B += 1) {
6617
6617
  const $ = B - Math.floor(B / A) * A;
6618
6618
  if (C) {
6619
6619
  const _ = A - $ - 1;
@@ -6622,9 +6622,9 @@ function zf({
6622
6622
  } else
6623
6623
  N.push(A - $ - 1);
6624
6624
  }
6625
- } else if (H + m > A - x) {
6626
- T = Math.max(H - (A - x * 2), w), O && (T = Math.max(T, m - A + y + 1));
6627
- for (let B = 0; B < T; B += 1) {
6625
+ } else if (H + m > A - T) {
6626
+ x = Math.max(H - (A - T * 2), w), O && (x = Math.max(x, m - A + y + 1));
6627
+ for (let B = 0; B < x; B += 1) {
6628
6628
  const $ = B - Math.floor(B / A) * A;
6629
6629
  C ? o.forEach((_, Y) => {
6630
6630
  _.column === $ && k.push(Y);
@@ -6633,7 +6633,7 @@ function zf({
6633
6633
  }
6634
6634
  if (s.__preventObserver__ = !0, requestAnimationFrame(() => {
6635
6635
  s.__preventObserver__ = !1;
6636
- }), s.params.effect === "cards" && o.length < m + x * 2 && (k.includes(n) && k.splice(k.indexOf(n), 1), N.includes(n) && N.splice(N.indexOf(n), 1)), M && N.forEach((B) => {
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((B) => {
6637
6637
  o[B].swiperLoopMoveDOM = !0, h.prepend(o[B]), o[B].swiperLoopMoveDOM = !1;
6638
6638
  }), F && k.forEach((B) => {
6639
6639
  o[B].swiperLoopMoveDOM = !0, h.append(o[B]), o[B].swiperLoopMoveDOM = !1;
@@ -6650,8 +6650,8 @@ function zf({
6650
6650
  }
6651
6651
  } else if (k.length > 0 && F)
6652
6652
  if (typeof e > "u") {
6653
- const B = s.slidesGrid[D], _ = s.slidesGrid[D - T] - B;
6654
- u ? s.setTranslate(s.translate - _) : (s.slideTo(D - T, 0, !1, !0), l && (s.touchEventsData.startTranslate = s.touchEventsData.startTranslate - _, s.touchEventsData.currentTranslate = s.touchEventsData.currentTranslate - _));
6653
+ const B = s.slidesGrid[D], _ = s.slidesGrid[D - x] - B;
6654
+ 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
6655
  } else {
6656
6656
  const B = C ? k.length / f.grid.rows : k.length;
6657
6657
  s.slideTo(s.activeIndex - B, 0, !1, !0);
@@ -6794,7 +6794,7 @@ function Qf(e) {
6794
6794
  return;
6795
6795
  let o;
6796
6796
  if (s.type === "touchmove") {
6797
- if (o = [...s.changedTouches].find((x) => x.identifier === l.touchId), !o || o.identifier !== l.touchId) return;
6797
+ if (o = [...s.changedTouches].find((T) => T.identifier === l.touchId), !o || o.identifier !== l.touchId) return;
6798
6798
  } else
6799
6799
  o = s;
6800
6800
  if (!l.isTouched) {
@@ -6835,8 +6835,8 @@ function Qf(e) {
6835
6835
  const h = r.currentX - r.startX, f = r.currentY - r.startY;
6836
6836
  if (a.params.threshold && Math.sqrt(h ** 2 + f ** 2) < a.params.threshold) return;
6837
6837
  if (typeof l.isScrolling > "u") {
6838
- let x;
6839
- a.isHorizontal() && r.currentY === r.startY || a.isVertical() && r.currentX === r.startX ? l.isScrolling = !1 : h * h + f * f >= 25 && (x = Math.atan2(Math.abs(f), Math.abs(h)) * 180 / Math.PI, l.isScrolling = a.isHorizontal() ? x > n.touchAngle : 90 - x > n.touchAngle);
6838
+ let T;
6839
+ a.isHorizontal() && r.currentY === r.startY || a.isVertical() && r.currentX === r.startX ? l.isScrolling = !1 : h * h + f * f >= 25 && (T = Math.atan2(Math.abs(f), Math.abs(h)) * 180 / Math.PI, l.isScrolling = a.isHorizontal() ? T > n.touchAngle : 90 - T > n.touchAngle);
6840
6840
  }
6841
6841
  if (l.isScrolling && a.emit("touchMoveOpposite", s), typeof l.startMoving > "u" && (r.currentX !== r.startX || r.currentY !== r.startY) && (l.startMoving = !0), l.isScrolling || s.type === "touchmove" && l.preventTouchMoveFromPointerMove) {
6842
6842
  l.isTouched = !1;
@@ -6854,14 +6854,14 @@ function Qf(e) {
6854
6854
  if (y && g && a.loopFix({
6855
6855
  direction: a.swipeDirection
6856
6856
  }), l.startTranslate = a.getTranslate(), a.setTransition(0), a.animating) {
6857
- const x = new window.CustomEvent("transitionend", {
6857
+ const T = new window.CustomEvent("transitionend", {
6858
6858
  bubbles: !0,
6859
6859
  cancelable: !0,
6860
6860
  detail: {
6861
6861
  bySwiperTouchMove: !0
6862
6862
  }
6863
6863
  });
6864
- a.wrapperEl.dispatchEvent(x);
6864
+ a.wrapperEl.dispatchEvent(T);
6865
6865
  }
6866
6866
  l.allowMomentumBounce = !1, n.grabCursor && (a.allowSlideNext === !0 || a.allowSlidePrev === !0) && a.setGrabCursor(!0), a.emit("sliderFirstMove", s);
6867
6867
  }
@@ -6903,7 +6903,7 @@ function Jf(e) {
6903
6903
  l.originalEvent && (l = l.originalEvent);
6904
6904
  let n;
6905
6905
  if (l.type === "touchend" || l.type === "touchcancel") {
6906
- if (n = [...l.changedTouches].find((x) => x.identifier === a.touchId), !n || n.identifier !== a.touchId) return;
6906
+ if (n = [...l.changedTouches].find((T) => T.identifier === a.touchId), !n || n.identifier !== a.touchId) return;
6907
6907
  } else {
6908
6908
  if (a.touchId !== null || l.pointerId !== a.pointerId) return;
6909
6909
  n = l;
@@ -6926,8 +6926,8 @@ function Jf(e) {
6926
6926
  i.grabCursor && a.isMoved && a.isTouched && (t.allowSlideNext === !0 || t.allowSlidePrev === !0) && t.setGrabCursor(!1);
6927
6927
  const d = Ol(), h = d - a.touchStartTime;
6928
6928
  if (t.allowClick) {
6929
- const x = l.path || l.composedPath && l.composedPath();
6930
- t.updateClickedSlide(x && x[0] || l.target, x), t.emit("tap click", l), h < 300 && d - a.lastClickTime < 300 && t.emit("doubleTap doubleClick", l);
6929
+ const T = l.path || l.composedPath && l.composedPath();
6930
+ t.updateClickedSlide(T && T[0] || l.target, T), t.emit("tap click", l), h < 300 && d - a.lastClickTime < 300 && t.emit("doubleTap doubleClick", l);
6931
6931
  }
6932
6932
  if (a.lastClickTime = Ol(), Vu(() => {
6933
6933
  t.destroyed || (t.allowClick = !0);
@@ -6947,9 +6947,9 @@ function Jf(e) {
6947
6947
  }
6948
6948
  const E = f >= -t.maxTranslate() && !t.params.loop;
6949
6949
  let v = 0, b = t.slidesSizesGrid[0];
6950
- for (let x = 0; x < o.length; x += x < i.slidesPerGroupSkip ? 1 : i.slidesPerGroup) {
6951
- const C = x < i.slidesPerGroupSkip - 1 ? 1 : i.slidesPerGroup;
6952
- typeof o[x + C] < "u" ? (E || f >= o[x] && f < o[x + C]) && (v = x, b = o[x + C] - o[x]) : (E || f >= o[x]) && (v = x, b = o[o.length - 1] - o[o.length - 2]);
6950
+ for (let T = 0; T < o.length; T += T < i.slidesPerGroupSkip ? 1 : i.slidesPerGroup) {
6951
+ const C = T < i.slidesPerGroupSkip - 1 ? 1 : i.slidesPerGroup;
6952
+ typeof o[T + C] < "u" ? (E || f >= o[T] && f < o[T + C]) && (v = T, b = o[T + C] - o[T]) : (E || f >= o[T]) && (v = T, b = o[o.length - 1] - o[o.length - 2]);
6953
6953
  }
6954
6954
  let y = null, g = null;
6955
6955
  i.rewind && (t.isBeginning ? g = i.virtual && i.virtual.enabled && t.virtual ? t.virtual.slides.length - 1 : t.slides.length - 1 : t.isEnd && (y = 0));
@@ -7080,12 +7080,12 @@ function ip() {
7080
7080
  });
7081
7081
  const y = d.direction && d.direction !== l.direction, g = l.loop && (d.slidesPerView !== l.slidesPerView || y), m = l.loop;
7082
7082
  y && a && e.changeDirection(), nt(e.params, d);
7083
- const w = e.params.enabled, x = e.params.loop;
7083
+ const w = e.params.enabled, T = e.params.loop;
7084
7084
  Object.assign(e, {
7085
7085
  allowTouchMove: e.params.allowTouchMove,
7086
7086
  allowSlideNext: e.params.allowSlideNext,
7087
7087
  allowSlidePrev: e.params.allowSlidePrev
7088
- }), b && !w ? e.disable() : !b && w && e.enable(), e.currentBreakpoint = o, e.emit("_beforeBreakpoint", d), a && (g ? (e.loopDestroy(), e.loopCreate(t), e.updateSlides()) : !m && x ? (e.loopCreate(t), e.updateSlides()) : m && !x && e.loopDestroy()), e.emit("breakpoint", d);
7088
+ }), b && !w ? e.disable() : !b && w && e.enable(), e.currentBreakpoint = o, e.emit("_beforeBreakpoint", d), a && (g ? (e.loopDestroy(), e.loopCreate(t), e.updateSlides()) : !m && T ? (e.loopCreate(t), e.updateSlides()) : m && !T && e.loopDestroy()), e.emit("breakpoint", d);
7089
7089
  }
7090
7090
  function up(e, t = "window", a) {
7091
7091
  if (!e || t === "container" && !a) return;
@@ -7807,19 +7807,19 @@ function vp({
7807
7807
  virtual: f,
7808
7808
  thumbs: E
7809
7809
  } = e;
7810
- let v, b, y, g, m, w, x, C;
7810
+ let v, b, y, g, m, w, T, C;
7811
7811
  l.includes("thumbs") && a.thumbs && a.thumbs.swiper && !a.thumbs.swiper.destroyed && o.thumbs && (!o.thumbs.swiper || o.thumbs.swiper.destroyed) && (v = !0), l.includes("controller") && a.controller && a.controller.control && o.controller && !o.controller.control && (b = !0), l.includes("pagination") && a.pagination && (a.pagination.el || u) && (o.pagination || o.pagination === !1) && c && !c.el && (y = !0), l.includes("scrollbar") && a.scrollbar && (a.scrollbar.el || i) && (o.scrollbar || o.scrollbar === !1) && h && !h.el && (g = !0), l.includes("navigation") && a.navigation && (a.navigation.prevEl || r) && (a.navigation.nextEl || n) && (o.navigation || o.navigation === !1) && d && !d.prevEl && !d.nextEl && (m = !0);
7812
7812
  const N = (k) => {
7813
7813
  e[k] && (e[k].destroy(), k === "navigation" ? (e.isElement && (e[k].prevEl.remove(), e[k].nextEl.remove()), o[k].prevEl = void 0, o[k].nextEl = void 0, e[k].prevEl = void 0, e[k].nextEl = void 0) : (e.isElement && e[k].el.remove(), o[k].el = void 0, e[k].el = void 0));
7814
7814
  };
7815
- l.includes("loop") && e.isElement && (o.loop && !a.loop ? w = !0 : !o.loop && a.loop ? x = !0 : C = !0), s.forEach((k) => {
7815
+ l.includes("loop") && e.isElement && (o.loop && !a.loop ? w = !0 : !o.loop && a.loop ? T = !0 : C = !0), s.forEach((k) => {
7816
7816
  if (Qt(o[k]) && Qt(a[k]))
7817
7817
  Object.assign(o[k], a[k]), (k === "navigation" || k === "pagination" || k === "scrollbar") && "enabled" in a[k] && !a[k].enabled && N(k);
7818
7818
  else {
7819
7819
  const A = a[k];
7820
7820
  (A === !0 || A === !1) && (k === "navigation" || k === "pagination" || k === "scrollbar") ? A === !1 && N(k) : o[k] = a[k];
7821
7821
  }
7822
- }), s.includes("controller") && !b && e.controller && e.controller.control && o.controller && o.controller.control && (e.controller.control = o.controller.control), l.includes("children") && t && f && o.virtual.enabled ? (f.slides = t, f.update(!0)) : l.includes("virtual") && f && o.virtual.enabled && (t && (f.slides = t), f.update(!0)), l.includes("children") && t && o.loop && (C = !0), v && E.init() && E.update(!0), b && (e.controller.control = o.controller.control), y && (e.isElement && (!u || typeof u == "string") && (u = document.createElement("div"), u.classList.add("swiper-pagination"), u.part.add("pagination"), e.el.appendChild(u)), u && (o.pagination.el = u), c.init(), c.render(), c.update()), g && (e.isElement && (!i || typeof i == "string") && (i = document.createElement("div"), i.classList.add("swiper-scrollbar"), i.part.add("scrollbar"), e.el.appendChild(i)), i && (o.scrollbar.el = i), h.init(), h.updateSize(), h.setTranslate()), m && (e.isElement && ((!n || typeof n == "string") && (n = document.createElement("div"), n.classList.add("swiper-button-next"), Vn(n, e.navigation.arrowSvg), n.part.add("button-next"), e.el.appendChild(n)), (!r || typeof r == "string") && (r = document.createElement("div"), r.classList.add("swiper-button-prev"), Vn(r, e.navigation.arrowSvg), r.part.add("button-prev"), e.el.appendChild(r))), n && (o.navigation.nextEl = n), r && (o.navigation.prevEl = r), d.init(), d.update()), l.includes("allowSlideNext") && (e.allowSlideNext = a.allowSlideNext), l.includes("allowSlidePrev") && (e.allowSlidePrev = a.allowSlidePrev), l.includes("direction") && e.changeDirection(a.direction, !1), (w || C) && e.loopDestroy(), (x || C) && e.loopCreate(), e.update();
7822
+ }), s.includes("controller") && !b && e.controller && e.controller.control && o.controller && o.controller.control && (e.controller.control = o.controller.control), l.includes("children") && t && f && o.virtual.enabled ? (f.slides = t, f.update(!0)) : l.includes("virtual") && f && o.virtual.enabled && (t && (f.slides = t), f.update(!0)), l.includes("children") && t && o.loop && (C = !0), v && E.init() && E.update(!0), b && (e.controller.control = o.controller.control), y && (e.isElement && (!u || typeof u == "string") && (u = document.createElement("div"), u.classList.add("swiper-pagination"), u.part.add("pagination"), e.el.appendChild(u)), u && (o.pagination.el = u), c.init(), c.render(), c.update()), g && (e.isElement && (!i || typeof i == "string") && (i = document.createElement("div"), i.classList.add("swiper-scrollbar"), i.part.add("scrollbar"), e.el.appendChild(i)), i && (o.scrollbar.el = i), h.init(), h.updateSize(), h.setTranslate()), m && (e.isElement && ((!n || typeof n == "string") && (n = document.createElement("div"), n.classList.add("swiper-button-next"), Vn(n, e.navigation.arrowSvg), n.part.add("button-next"), e.el.appendChild(n)), (!r || typeof r == "string") && (r = document.createElement("div"), r.classList.add("swiper-button-prev"), Vn(r, e.navigation.arrowSvg), r.part.add("button-prev"), e.el.appendChild(r))), n && (o.navigation.nextEl = n), r && (o.navigation.prevEl = r), d.init(), d.update()), l.includes("allowSlideNext") && (e.allowSlideNext = a.allowSlideNext), l.includes("allowSlidePrev") && (e.allowSlidePrev = a.allowSlidePrev), l.includes("direction") && e.changeDirection(a.direction, !1), (w || C) && e.loopDestroy(), (T || C) && e.loopCreate(), e.update();
7823
7823
  }
7824
7824
  function gp(e = {}, t = !0) {
7825
7825
  const a = {
@@ -7947,7 +7947,7 @@ const vi = /* @__PURE__ */ Fu(null), Ap = /* @__PURE__ */ Fu(null), ns = /* @__P
7947
7947
  ...r
7948
7948
  } = {}, i) => {
7949
7949
  let u = !1;
7950
- const [s, o] = re("swiper"), [c, d] = re(null), [h, f] = re(!1), E = Z(!1), v = Z(null), b = Z(null), y = Z(null), g = Z(null), m = Z(null), w = Z(null), x = Z(null), C = Z(null), {
7950
+ const [s, o] = re("swiper"), [c, d] = re(null), [h, f] = re(!1), E = Z(!1), v = Z(null), b = Z(null), y = Z(null), g = Z(null), m = Z(null), w = Z(null), T = Z(null), C = Z(null), {
7951
7951
  params: N,
7952
7952
  passedParams: k,
7953
7953
  rest: A,
@@ -7980,7 +7980,7 @@ const vi = /* @__PURE__ */ Fu(null), Ap = /* @__PURE__ */ Fu(null), ns = /* @__P
7980
7980
  }
7981
7981
  };
7982
7982
  v.current || L(), b.current && b.current.on("_beforeBreakpoint", M);
7983
- const T = () => {
7983
+ const x = () => {
7984
7984
  u || !O || !b.current || Object.keys(O).forEach((B) => {
7985
7985
  b.current.on(B, O[B]);
7986
7986
  });
@@ -7999,14 +7999,14 @@ const vi = /* @__PURE__ */ Fu(null), Ap = /* @__PURE__ */ Fu(null), ns = /* @__P
7999
7999
  el: v.current,
8000
8000
  nextEl: m.current,
8001
8001
  prevEl: w.current,
8002
- paginationEl: x.current,
8002
+ paginationEl: T.current,
8003
8003
  scrollbarEl: C.current,
8004
8004
  swiper: b.current
8005
8005
  }, N), n && !b.current.destroyed && n(b.current), () => {
8006
8006
  b.current && !b.current.destroyed && b.current.destroy(!0, !1);
8007
8007
  };
8008
8008
  }, []), Ba(() => {
8009
- T();
8009
+ x();
8010
8010
  const B = yp(k, y.current, D, g.current, ($) => $.key);
8011
8011
  return y.current = k, g.current = D, B.length && b.current && !b.current.destroyed && vp({
8012
8012
  swiper: b.current,
@@ -8016,7 +8016,7 @@ const vi = /* @__PURE__ */ Fu(null), Ap = /* @__PURE__ */ Fu(null), ns = /* @__P
8016
8016
  nextEl: m.current,
8017
8017
  prevEl: w.current,
8018
8018
  scrollbarEl: C.current,
8019
- paginationEl: x.current
8019
+ paginationEl: T.current
8020
8020
  }), () => {
8021
8021
  I();
8022
8022
  };
@@ -8046,7 +8046,7 @@ const vi = /* @__PURE__ */ Fu(null), Ap = /* @__PURE__ */ Fu(null), ns = /* @__P
8046
8046
  ref: C,
8047
8047
  className: "swiper-scrollbar"
8048
8048
  }), Zu(N) && /* @__PURE__ */ Le.createElement("div", {
8049
- ref: x,
8049
+ ref: T,
8050
8050
  className: "swiper-pagination"
8051
8051
  }), F["container-end"]));
8052
8052
  });
@@ -8063,8 +8063,8 @@ const rs = /* @__PURE__ */ Bu(({
8063
8063
  ...s
8064
8064
  } = {}, o) => {
8065
8065
  const c = Z(null), [d, h] = re("swiper-slide"), [f, E] = re(!1);
8066
- function v(m, w, x) {
8067
- w === c.current && h(x);
8066
+ function v(m, w, T) {
8067
+ w === c.current && h(T);
8068
8068
  }
8069
8069
  Ba(() => {
8070
8070
  if (typeof u < "u" && (c.current.swiperSlideIndex = u), o && (o.current = c.current), !(!c.current || !l)) {
@@ -9464,15 +9464,15 @@ function $p() {
9464
9464
  y = y || {};
9465
9465
  var g = 1, m = 1;
9466
9466
  function w(L) {
9467
- var T = L.match(t);
9468
- T && (g += T.length);
9467
+ var x = L.match(t);
9468
+ x && (g += x.length);
9469
9469
  var I = L.lastIndexOf(s);
9470
9470
  m = ~I ? L.length - I : m + L.length;
9471
9471
  }
9472
- function x() {
9472
+ function T() {
9473
9473
  var L = { line: g, column: m };
9474
- return function(T) {
9475
- return T.position = new C(L), A(), T;
9474
+ return function(x) {
9475
+ return x.position = new C(L), A(), x;
9476
9476
  };
9477
9477
  }
9478
9478
  function C(L) {
@@ -9480,48 +9480,48 @@ function $p() {
9480
9480
  }
9481
9481
  C.prototype.content = b;
9482
9482
  function N(L) {
9483
- var T = new Error(
9483
+ var x = new Error(
9484
9484
  y.source + ":" + g + ":" + m + ": " + L
9485
9485
  );
9486
- if (T.reason = L, T.filename = y.source, T.line = g, T.column = m, T.source = b, !y.silent) throw T;
9486
+ if (x.reason = L, x.filename = y.source, x.line = g, x.column = m, x.source = b, !y.silent) throw x;
9487
9487
  }
9488
9488
  function k(L) {
9489
- var T = L.exec(b);
9490
- if (T) {
9491
- var I = T[0];
9492
- return w(I), b = b.slice(I.length), T;
9489
+ var x = L.exec(b);
9490
+ if (x) {
9491
+ var I = x[0];
9492
+ return w(I), b = b.slice(I.length), x;
9493
9493
  }
9494
9494
  }
9495
9495
  function A() {
9496
9496
  k(a);
9497
9497
  }
9498
9498
  function O(L) {
9499
- var T;
9500
- for (L = L || []; T = D(); )
9501
- T !== !1 && L.push(T);
9499
+ var x;
9500
+ for (L = L || []; x = D(); )
9501
+ x !== !1 && L.push(x);
9502
9502
  return L;
9503
9503
  }
9504
9504
  function D() {
9505
- var L = x();
9505
+ var L = T();
9506
9506
  if (!(o != b.charAt(0) || c != b.charAt(1))) {
9507
- for (var T = 2; d != b.charAt(T) && (c != b.charAt(T) || o != b.charAt(T + 1)); )
9508
- ++T;
9509
- if (T += 2, d === b.charAt(T - 1))
9507
+ for (var x = 2; d != b.charAt(x) && (c != b.charAt(x) || o != b.charAt(x + 1)); )
9508
+ ++x;
9509
+ if (x += 2, d === b.charAt(x - 1))
9510
9510
  return N("End of comment missing");
9511
- var I = b.slice(2, T - 2);
9512
- return m += 2, w(I), b = b.slice(T), m += 2, L({
9511
+ var I = b.slice(2, x - 2);
9512
+ return m += 2, w(I), b = b.slice(x), m += 2, L({
9513
9513
  type: h,
9514
9514
  comment: I
9515
9515
  });
9516
9516
  }
9517
9517
  }
9518
9518
  function F() {
9519
- var L = x(), T = k(l);
9520
- if (T) {
9519
+ var L = T(), x = k(l);
9520
+ if (x) {
9521
9521
  if (D(), !k(n)) return N("property missing ':'");
9522
9522
  var I = k(r), H = L({
9523
9523
  type: f,
9524
- property: v(T[0].replace(e, d)),
9524
+ property: v(x[0].replace(e, d)),
9525
9525
  value: I ? v(I[0].replace(e, d)) : d
9526
9526
  });
9527
9527
  return k(i), H;
@@ -9530,8 +9530,8 @@ function $p() {
9530
9530
  function M() {
9531
9531
  var L = [];
9532
9532
  O(L);
9533
- for (var T; T = F(); )
9534
- T !== !1 && (L.push(T), O(L));
9533
+ for (var x; x = F(); )
9534
+ x !== !1 && (L.push(x), O(L));
9535
9535
  return L;
9536
9536
  }
9537
9537
  return A(), M();
@@ -10222,10 +10222,10 @@ function Ah(e) {
10222
10222
  if (l++, t.containerState._closeFlow) {
10223
10223
  t.containerState._closeFlow = void 0, n && g();
10224
10224
  const w = t.events.length;
10225
- let x = w, C;
10226
- for (; x--; )
10227
- if (t.events[x][0] === "exit" && t.events[x][1].type === "chunkFlow") {
10228
- C = t.events[x][1].end;
10225
+ let T = w, C;
10226
+ for (; T--; )
10227
+ if (t.events[T][0] === "exit" && t.events[T][1].type === "chunkFlow") {
10228
+ C = t.events[T][1].end;
10229
10229
  break;
10230
10230
  }
10231
10231
  y(l);
@@ -10234,7 +10234,7 @@ function Ah(e) {
10234
10234
  t.events[N][1].end = {
10235
10235
  ...C
10236
10236
  }, N++;
10237
- return Et(t.events, x + 1, 0, t.events.slice(w)), t.events.length = N, o(m);
10237
+ return Et(t.events, T + 1, 0, t.events.slice(w)), t.events.length = N, o(m);
10238
10238
  }
10239
10239
  return u(m);
10240
10240
  }
@@ -10279,8 +10279,8 @@ function Ah(e) {
10279
10279
  return fe(m) ? (e.consume(m), b(e.exit("chunkFlow")), l = 0, t.interrupt = void 0, u) : (e.consume(m), v);
10280
10280
  }
10281
10281
  function b(m, w) {
10282
- const x = t.sliceStream(m);
10283
- if (w && x.push(null), m.previous = r, r && (r.next = m), r = m, n.defineSkip(m.start), n.write(x), t.parser.lazy[m.start.line]) {
10282
+ const T = t.sliceStream(m);
10283
+ if (w && T.push(null), m.previous = r, r && (r.next = m), r = m, n.defineSkip(m.start), n.write(T), t.parser.lazy[m.start.line]) {
10284
10284
  let C = n.events.length;
10285
10285
  for (; C--; )
10286
10286
  if (
@@ -10310,8 +10310,8 @@ function Ah(e) {
10310
10310
  function y(m) {
10311
10311
  let w = a.length;
10312
10312
  for (; w-- > m; ) {
10313
- const x = a[w];
10314
- t.containerState = x[1], x[0].exit.call(t, e);
10313
+ const T = a[w];
10314
+ t.containerState = T[1], T[0].exit.call(t, e);
10315
10315
  }
10316
10316
  a.length = m;
10317
10317
  }
@@ -10552,7 +10552,7 @@ const Bi = {
10552
10552
  function Rh(e, t, a) {
10553
10553
  const l = this, n = {
10554
10554
  partial: !0,
10555
- tokenize: x
10555
+ tokenize: T
10556
10556
  };
10557
10557
  let r = 0, i = 0, u;
10558
10558
  return s;
@@ -10600,23 +10600,23 @@ function Rh(e, t, a) {
10600
10600
  function w(C) {
10601
10601
  return e.exit("codeFenced"), t(C);
10602
10602
  }
10603
- function x(C, N, k) {
10603
+ function T(C, N, k) {
10604
10604
  let A = 0;
10605
10605
  return O;
10606
- function O(T) {
10607
- return C.enter("lineEnding"), C.consume(T), C.exit("lineEnding"), D;
10606
+ function O(x) {
10607
+ return C.enter("lineEnding"), C.consume(x), C.exit("lineEnding"), D;
10608
10608
  }
10609
- function D(T) {
10610
- return C.enter("codeFencedFence"), Se(T) ? _e(C, F, "linePrefix", l.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4)(T) : F(T);
10609
+ function D(x) {
10610
+ return C.enter("codeFencedFence"), Se(x) ? _e(C, F, "linePrefix", l.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4)(x) : F(x);
10611
10611
  }
10612
- function F(T) {
10613
- return T === u ? (C.enter("codeFencedFenceSequence"), M(T)) : k(T);
10612
+ function F(x) {
10613
+ return x === u ? (C.enter("codeFencedFenceSequence"), M(x)) : k(x);
10614
10614
  }
10615
- function M(T) {
10616
- return T === u ? (A++, C.consume(T), M) : A >= i ? (C.exit("codeFencedFenceSequence"), Se(T) ? _e(C, L, "whitespace")(T) : L(T)) : k(T);
10615
+ function M(x) {
10616
+ return x === u ? (A++, C.consume(x), M) : A >= i ? (C.exit("codeFencedFenceSequence"), Se(x) ? _e(C, L, "whitespace")(x) : L(x)) : k(x);
10617
10617
  }
10618
- function L(T) {
10619
- return T === null || fe(T) ? (C.exit("codeFencedFence"), N(T)) : k(T);
10618
+ function L(x) {
10619
+ return x === null || fe(x) ? (C.exit("codeFencedFence"), N(x)) : k(x);
10620
10620
  }
10621
10621
  }
10622
10622
  }
@@ -11300,10 +11300,10 @@ function fb(e, t, a) {
11300
11300
  return S === 47 ? (e.consume(S), O) : S === 58 || S === 95 || vt(S) ? (e.consume(S), w) : Se(S) ? (e.consume(S), m) : O(S);
11301
11301
  }
11302
11302
  function w(S) {
11303
- return S === 45 || S === 46 || S === 58 || S === 95 || rt(S) ? (e.consume(S), w) : x(S);
11303
+ return S === 45 || S === 46 || S === 58 || S === 95 || rt(S) ? (e.consume(S), w) : T(S);
11304
11304
  }
11305
- function x(S) {
11306
- return S === 61 ? (e.consume(S), C) : Se(S) ? (e.consume(S), x) : m(S);
11305
+ function T(S) {
11306
+ return S === 61 ? (e.consume(S), C) : Se(S) ? (e.consume(S), T) : m(S);
11307
11307
  }
11308
11308
  function C(S) {
11309
11309
  return S === null || S === 60 || S === 61 || S === 62 || S === 96 ? a(S) : S === 34 || S === 39 ? (e.consume(S), s = S, N) : Se(S) ? (e.consume(S), C) : k(S);
@@ -11312,7 +11312,7 @@ function fb(e, t, a) {
11312
11312
  return S === s ? (e.consume(S), s = null, A) : S === null || fe(S) ? a(S) : (e.consume(S), N);
11313
11313
  }
11314
11314
  function k(S) {
11315
- return S === null || S === 34 || S === 39 || S === 47 || S === 60 || S === 61 || S === 62 || S === 96 || Fe(S) ? x(S) : (e.consume(S), k);
11315
+ return S === null || S === 34 || S === 39 || S === 47 || S === 60 || S === 61 || S === 62 || S === 96 || Fe(S) ? T(S) : (e.consume(S), k);
11316
11316
  }
11317
11317
  function A(S) {
11318
11318
  return S === 47 || S === 62 || Se(S) ? m(S) : a(S);
@@ -11330,9 +11330,9 @@ function fb(e, t, a) {
11330
11330
  return e.check(cb, L, z)(S);
11331
11331
  }
11332
11332
  function L(S) {
11333
- return e.enter("lineEnding"), e.consume(S), e.exit("lineEnding"), T;
11333
+ return e.enter("lineEnding"), e.consume(S), e.exit("lineEnding"), x;
11334
11334
  }
11335
- function T(S) {
11335
+ function x(S) {
11336
11336
  return S === null || fe(S) ? M(S) : (e.enter("htmlFlowData"), F(S));
11337
11337
  }
11338
11338
  function I(S) {
@@ -11389,7 +11389,7 @@ function mb(e, t, a) {
11389
11389
  return e.enter("htmlText"), e.enter("htmlTextData"), e.consume(_), s;
11390
11390
  }
11391
11391
  function s(_) {
11392
- return _ === 33 ? (e.consume(_), o) : _ === 47 ? (e.consume(_), x) : _ === 63 ? (e.consume(_), m) : vt(_) ? (e.consume(_), k) : a(_);
11392
+ return _ === 33 ? (e.consume(_), o) : _ === 47 ? (e.consume(_), T) : _ === 63 ? (e.consume(_), m) : vt(_) ? (e.consume(_), k) : a(_);
11393
11393
  }
11394
11394
  function o(_) {
11395
11395
  return _ === 45 ? (e.consume(_), c) : _ === 91 ? (e.consume(_), r = 0, E) : vt(_) ? (e.consume(_), g) : a(_);
@@ -11428,7 +11428,7 @@ function mb(e, t, a) {
11428
11428
  function w(_) {
11429
11429
  return _ === 62 ? I(_) : m(_);
11430
11430
  }
11431
- function x(_) {
11431
+ function T(_) {
11432
11432
  return vt(_) ? (e.consume(_), C) : a(_);
11433
11433
  }
11434
11434
  function C(_) {
@@ -11453,12 +11453,12 @@ function mb(e, t, a) {
11453
11453
  return _ === null || _ === 60 || _ === 61 || _ === 62 || _ === 96 ? a(_) : _ === 34 || _ === 39 ? (e.consume(_), n = _, M) : fe(_) ? (i = F, H(_)) : Se(_) ? (e.consume(_), F) : (e.consume(_), L);
11454
11454
  }
11455
11455
  function M(_) {
11456
- return _ === n ? (e.consume(_), n = void 0, T) : _ === null ? a(_) : fe(_) ? (i = M, H(_)) : (e.consume(_), M);
11456
+ return _ === n ? (e.consume(_), n = void 0, x) : _ === null ? a(_) : fe(_) ? (i = M, H(_)) : (e.consume(_), M);
11457
11457
  }
11458
11458
  function L(_) {
11459
11459
  return _ === null || _ === 34 || _ === 39 || _ === 60 || _ === 61 || _ === 96 ? a(_) : _ === 47 || _ === 62 || Fe(_) ? A(_) : (e.consume(_), L);
11460
11460
  }
11461
- function T(_) {
11461
+ function x(_) {
11462
11462
  return _ === 47 || _ === 62 || Fe(_) ? A(_) : a(_);
11463
11463
  }
11464
11464
  function I(_) {
@@ -12005,7 +12005,7 @@ function lm(e, t, a) {
12005
12005
  const n = {}, r = [];
12006
12006
  let i = [], u = [];
12007
12007
  const s = {
12008
- attempt: N(x),
12008
+ attempt: N(T),
12009
12009
  check: N(C),
12010
12010
  consume: g,
12011
12011
  enter: m,
@@ -12042,14 +12042,14 @@ function lm(e, t, a) {
12042
12042
  _index: F,
12043
12043
  line: M,
12044
12044
  column: L,
12045
- offset: T
12045
+ offset: x
12046
12046
  } = l;
12047
12047
  return {
12048
12048
  _bufferIndex: D,
12049
12049
  _index: F,
12050
12050
  line: M,
12051
12051
  column: L,
12052
- offset: T
12052
+ offset: x
12053
12053
  };
12054
12054
  }
12055
12055
  function v(D) {
@@ -12083,7 +12083,7 @@ function lm(e, t, a) {
12083
12083
  const F = u.pop();
12084
12084
  return F.end = E(), o.events.push(["exit", F, o]), F;
12085
12085
  }
12086
- function x(D, F) {
12086
+ function T(D, F) {
12087
12087
  k(D, F.from);
12088
12088
  }
12089
12089
  function C(D, F) {
@@ -12091,7 +12091,7 @@ function lm(e, t, a) {
12091
12091
  }
12092
12092
  function N(D, F) {
12093
12093
  return M;
12094
- function M(L, T, I) {
12094
+ function M(L, x, I) {
12095
12095
  let H, B, $, _;
12096
12096
  return Array.isArray(L) ? (
12097
12097
  /* c8 ignore next 1 */
@@ -12133,7 +12133,7 @@ function lm(e, t, a) {
12133
12133
  }
12134
12134
  }
12135
12135
  function q(K) {
12136
- return D($, _), T;
12136
+ return D($, _), x;
12137
12137
  }
12138
12138
  function V(K) {
12139
12139
  return _.restore(), ++B < H.length ? S(H[B]) : I;
@@ -12144,13 +12144,13 @@ function lm(e, t, a) {
12144
12144
  D.resolveAll && !r.includes(D) && r.push(D), D.resolve && Et(o.events, F, o.events.length - F, D.resolve(o.events.slice(F), o)), D.resolveTo && (o.events = D.resolveTo(o.events, o));
12145
12145
  }
12146
12146
  function A() {
12147
- const D = E(), F = o.previous, M = o.currentConstruct, L = o.events.length, T = Array.from(u);
12147
+ const D = E(), F = o.previous, M = o.currentConstruct, L = o.events.length, x = Array.from(u);
12148
12148
  return {
12149
12149
  from: L,
12150
12150
  restore: I
12151
12151
  };
12152
12152
  function I() {
12153
- l = D, o.previous = F, o.currentConstruct = M, o.events.length = L, u = T, O();
12153
+ l = D, o.previous = F, o.currentConstruct = M, o.events.length = L, u = x, O();
12154
12154
  }
12155
12155
  }
12156
12156
  function O() {
@@ -12340,7 +12340,7 @@ function pm(e) {
12340
12340
  },
12341
12341
  exit: {
12342
12342
  atxHeading: s(),
12343
- atxHeadingSequence: x,
12343
+ atxHeadingSequence: T,
12344
12344
  autolink: s(),
12345
12345
  autolinkEmail: ce,
12346
12346
  autolinkProtocol: te,
@@ -12356,7 +12356,7 @@ function pm(e) {
12356
12356
  codeFencedFenceMeta: E,
12357
12357
  codeFlowValue: O,
12358
12358
  codeIndented: s(y),
12359
- codeText: s(T),
12359
+ codeText: s(x),
12360
12360
  codeTextData: O,
12361
12361
  data: O,
12362
12362
  definition: s(),
@@ -12570,7 +12570,7 @@ function pm(e) {
12570
12570
  const J = this.resume(), ie = this.stack[this.stack.length - 1];
12571
12571
  ie.url = J;
12572
12572
  }
12573
- function x(J) {
12573
+ function T(J) {
12574
12574
  const ie = this.stack[this.stack.length - 1];
12575
12575
  if (!ie.depth) {
12576
12576
  const ge = this.sliceSerialize(J).length;
@@ -12620,7 +12620,7 @@ function pm(e) {
12620
12620
  const J = this.resume(), ie = this.stack[this.stack.length - 1];
12621
12621
  ie.value = J;
12622
12622
  }
12623
- function T() {
12623
+ function x() {
12624
12624
  const J = this.resume(), ie = this.stack[this.stack.length - 1];
12625
12625
  ie.value = J;
12626
12626
  }
@@ -21912,31 +21912,31 @@ function Mr(e, t) {
21912
21912
  continue;
21913
21913
  }
21914
21914
  const g = r + 1;
21915
- let m = g, w = g, x;
21915
+ let m = g, w = g, T;
21916
21916
  if (y === 35) {
21917
21917
  w = ++m;
21918
21918
  const M = e.charCodeAt(w);
21919
- M === 88 || M === 120 ? (x = "hexadecimal", w = ++m) : x = "decimal";
21919
+ M === 88 || M === 120 ? (T = "hexadecimal", w = ++m) : T = "decimal";
21920
21920
  } else
21921
- x = "named";
21921
+ T = "named";
21922
21922
  let C = "", N = "", k = "";
21923
- const A = x === "named" ? _u : x === "decimal" ? No : s1;
21923
+ const A = T === "named" ? _u : T === "decimal" ? No : s1;
21924
21924
  for (w--; ++w <= e.length; ) {
21925
21925
  const M = e.charCodeAt(w);
21926
21926
  if (!A(M))
21927
21927
  break;
21928
- k += String.fromCharCode(M), x === "named" && u1.includes(k) && (C = k, N = Ka(k));
21928
+ k += String.fromCharCode(M), T === "named" && u1.includes(k) && (C = k, N = Ka(k));
21929
21929
  }
21930
21930
  let O = e.charCodeAt(w) === 59;
21931
21931
  if (O) {
21932
21932
  w++;
21933
- const M = x === "named" ? Ka(k) : !1;
21933
+ const M = T === "named" ? Ka(k) : !1;
21934
21934
  M && (C = k, N = M);
21935
21935
  }
21936
21936
  let D = 1 + w - g, F = "";
21937
21937
  if (!(!O && a.nonTerminated === !1)) if (!k)
21938
- x !== "named" && v(4, D);
21939
- else if (x === "named") {
21938
+ T !== "named" && v(4, D);
21939
+ else if (T === "named") {
21940
21940
  if (O && !N)
21941
21941
  v(5, 1);
21942
21942
  else if (C !== k && (w = m + C.length, D = 1 + w - m, O = !1), !O) {
@@ -21952,7 +21952,7 @@ function Mr(e, t) {
21952
21952
  O || v(2, D);
21953
21953
  let M = Number.parseInt(
21954
21954
  k,
21955
- x === "hexadecimal" ? 16 : 10
21955
+ T === "hexadecimal" ? 16 : 10
21956
21956
  );
21957
21957
  if (d1(M))
21958
21958
  v(7, D), F = "�";
@@ -22259,66 +22259,66 @@ function D1(e) {
22259
22259
  function Br(e, t, a, l, n, r, i, u, s, o, c, d, h, f, E) {
22260
22260
  let v, b;
22261
22261
  return y;
22262
- function y(T) {
22263
- return e.enter(l), e.enter(n), e.consume(T), e.exit(n), g;
22262
+ function y(x) {
22263
+ return e.enter(l), e.enter(n), e.consume(x), e.exit(n), g;
22264
22264
  }
22265
- function g(T) {
22266
- return T === 35 ? (v = i, m(T)) : T === 46 ? (v = u, m(T)) : E && Se(T) ? _e(e, g, "whitespace")(T) : !E && Fe(T) ? kt(e, g)(T) : T === null || fe(T) || Qa(T) || Xa(T) && T !== 45 && T !== 95 ? L(T) : (e.enter(r), e.enter(s), e.consume(T), C);
22265
+ function g(x) {
22266
+ return x === 35 ? (v = i, m(x)) : x === 46 ? (v = u, m(x)) : E && Se(x) ? _e(e, g, "whitespace")(x) : !E && Fe(x) ? kt(e, g)(x) : x === null || fe(x) || Qa(x) || Xa(x) && x !== 45 && x !== 95 ? L(x) : (e.enter(r), e.enter(s), e.consume(x), C);
22267
22267
  }
22268
- function m(T) {
22268
+ function m(x) {
22269
22269
  const I = (
22270
22270
  /** @type {TokenType} */
22271
22271
  v + "Marker"
22272
22272
  );
22273
- return e.enter(r), e.enter(v), e.enter(I), e.consume(T), e.exit(I), w;
22273
+ return e.enter(r), e.enter(v), e.enter(I), e.consume(x), e.exit(I), w;
22274
22274
  }
22275
- function w(T) {
22276
- if (T === null || T === 34 || T === 35 || T === 39 || T === 46 || T === 60 || T === 61 || T === 62 || T === 96 || T === 125 || Fe(T))
22277
- return a(T);
22275
+ function w(x) {
22276
+ if (x === null || x === 34 || x === 35 || x === 39 || x === 46 || x === 60 || x === 61 || x === 62 || x === 96 || x === 125 || Fe(x))
22277
+ return a(x);
22278
22278
  const I = (
22279
22279
  /** @type {TokenType} */
22280
22280
  v + "Value"
22281
22281
  );
22282
- return e.enter(I), e.consume(T), x;
22282
+ return e.enter(I), e.consume(x), T;
22283
22283
  }
22284
- function x(T) {
22285
- if (T === null || T === 34 || T === 39 || T === 60 || T === 61 || T === 62 || T === 96)
22286
- return a(T);
22287
- if (T === 35 || T === 46 || T === 125 || Fe(T)) {
22284
+ function T(x) {
22285
+ if (x === null || x === 34 || x === 39 || x === 60 || x === 61 || x === 62 || x === 96)
22286
+ return a(x);
22287
+ if (x === 35 || x === 46 || x === 125 || Fe(x)) {
22288
22288
  const I = (
22289
22289
  /** @type {TokenType} */
22290
22290
  v + "Value"
22291
22291
  );
22292
- return e.exit(I), e.exit(v), e.exit(r), g(T);
22292
+ return e.exit(I), e.exit(v), e.exit(r), g(x);
22293
22293
  }
22294
- return e.consume(T), x;
22294
+ return e.consume(x), T;
22295
22295
  }
22296
- function C(T) {
22297
- return T === null || fe(T) || Qa(T) || Xa(T) && T !== 45 && T !== 46 && T !== 58 && T !== 95 ? (e.exit(s), E && Se(T) ? _e(e, N, "whitespace")(T) : !E && Fe(T) ? kt(e, N)(T) : N(T)) : (e.consume(T), C);
22296
+ function C(x) {
22297
+ return x === null || fe(x) || Qa(x) || Xa(x) && x !== 45 && x !== 46 && x !== 58 && x !== 95 ? (e.exit(s), E && Se(x) ? _e(e, N, "whitespace")(x) : !E && Fe(x) ? kt(e, N)(x) : N(x)) : (e.consume(x), C);
22298
22298
  }
22299
- function N(T) {
22300
- return T === 61 ? (e.enter(o), e.consume(T), e.exit(o), k) : (e.exit(r), g(T));
22299
+ function N(x) {
22300
+ return x === 61 ? (e.enter(o), e.consume(x), e.exit(o), k) : (e.exit(r), g(x));
22301
22301
  }
22302
- function k(T) {
22303
- return T === null || T === 60 || T === 61 || T === 62 || T === 96 || T === 125 || E && fe(T) ? a(T) : T === 34 || T === 39 ? (e.enter(c), e.enter(h), e.consume(T), e.exit(h), b = T, O) : E && Se(T) ? _e(e, k, "whitespace")(T) : !E && Fe(T) ? kt(e, k)(T) : (e.enter(d), e.enter(f), e.consume(T), b = void 0, A);
22302
+ function k(x) {
22303
+ return x === null || x === 60 || x === 61 || x === 62 || x === 96 || x === 125 || E && fe(x) ? a(x) : x === 34 || x === 39 ? (e.enter(c), e.enter(h), e.consume(x), e.exit(h), b = x, O) : E && Se(x) ? _e(e, k, "whitespace")(x) : !E && Fe(x) ? kt(e, k)(x) : (e.enter(d), e.enter(f), e.consume(x), b = void 0, A);
22304
22304
  }
22305
- function A(T) {
22306
- return T === null || T === 34 || T === 39 || T === 60 || T === 61 || T === 62 || T === 96 ? a(T) : T === 125 || Fe(T) ? (e.exit(f), e.exit(d), e.exit(r), g(T)) : (e.consume(T), A);
22305
+ function A(x) {
22306
+ return x === null || x === 34 || x === 39 || x === 60 || x === 61 || x === 62 || x === 96 ? a(x) : x === 125 || Fe(x) ? (e.exit(f), e.exit(d), e.exit(r), g(x)) : (e.consume(x), A);
22307
22307
  }
22308
- function O(T) {
22309
- return T === b ? (e.enter(h), e.consume(T), e.exit(h), e.exit(c), e.exit(r), M) : (e.enter(d), D(T));
22308
+ function O(x) {
22309
+ return x === b ? (e.enter(h), e.consume(x), e.exit(h), e.exit(c), e.exit(r), M) : (e.enter(d), D(x));
22310
22310
  }
22311
- function D(T) {
22312
- return T === b ? (e.exit(d), O(T)) : T === null ? a(T) : fe(T) ? E ? a(T) : kt(e, D)(T) : (e.enter(f), e.consume(T), F);
22311
+ function D(x) {
22312
+ return x === b ? (e.exit(d), O(x)) : x === null ? a(x) : fe(x) ? E ? a(x) : kt(e, D)(x) : (e.enter(f), e.consume(x), F);
22313
22313
  }
22314
- function F(T) {
22315
- return T === b || T === null || fe(T) ? (e.exit(f), D(T)) : (e.consume(T), F);
22314
+ function F(x) {
22315
+ return x === b || x === null || fe(x) ? (e.exit(f), D(x)) : (e.consume(x), F);
22316
22316
  }
22317
- function M(T) {
22318
- return T === 125 || Fe(T) ? g(T) : L(T);
22317
+ function M(x) {
22318
+ return x === 125 || Fe(x) ? g(x) : L(x);
22319
22319
  }
22320
- function L(T) {
22321
- return T === 125 ? (e.enter(n), e.consume(T), e.exit(n), e.exit(l), t) : a(T);
22320
+ function L(x) {
22321
+ return x === 125 ? (e.enter(n), e.consume(x), e.exit(n), e.exit(l), t) : a(x);
22322
22322
  }
22323
22323
  }
22324
22324
  function Fr(e, t, a, l, n, r, i) {
@@ -22412,7 +22412,7 @@ function B1(e, t, a) {
22412
22412
  const O = e.exit("chunkDocument");
22413
22413
  return l.parser.lazy[O.start.line] = !1, C(A);
22414
22414
  }
22415
- return fe(A) ? e.check(xl, w, x)(A) : (e.consume(A), y);
22415
+ return fe(A) ? e.check(xl, w, T)(A) : (e.consume(A), y);
22416
22416
  }
22417
22417
  function g(A) {
22418
22418
  const O = e.enter("chunkDocument", {
@@ -22429,7 +22429,7 @@ function B1(e, t, a) {
22429
22429
  const O = e.exit("chunkDocument");
22430
22430
  return l.parser.lazy[O.start.line] = !1, v;
22431
22431
  }
22432
- function x(A) {
22432
+ function T(A) {
22433
22433
  const O = e.exit("chunkDocument");
22434
22434
  return l.parser.lazy[O.start.line] = !1, C(A);
22435
22435
  }
@@ -22446,9 +22446,9 @@ function B1(e, t, a) {
22446
22446
  return A.enter("directiveContainerFence"), A.enter("directiveContainerSequence"), L(I);
22447
22447
  }
22448
22448
  function L(I) {
22449
- return I === 58 ? (A.consume(I), F++, L) : F < i ? D(I) : (A.exit("directiveContainerSequence"), _e(A, T, "whitespace")(I));
22449
+ return I === 58 ? (A.consume(I), F++, L) : F < i ? D(I) : (A.exit("directiveContainerSequence"), _e(A, x, "whitespace")(I));
22450
22450
  }
22451
- function T(I) {
22451
+ function x(I) {
22452
22452
  return I === null || fe(I) ? (A.exit("directiveContainerFence"), O(I)) : D(I);
22453
22453
  }
22454
22454
  }
@@ -22639,8 +22639,8 @@ const ay = {
22639
22639
  }) => {
22640
22640
  const u = e[t], s = u?.images || [], o = u?.stepDescriptions || [], c = Math.min(s.length, o.length), d = Math.min(Math.max(a, 0), Math.max(0, c - 1)), h = s[d], f = o[d] || "", E = e.length > 1, [v, b] = re(void 0), y = Z(null), g = ue((m) => {
22641
22641
  if (y.current && (y.current.disconnect(), y.current = null), !m) return;
22642
- const w = new ResizeObserver((x) => {
22643
- for (const C of x) {
22642
+ const w = new ResizeObserver((T) => {
22643
+ for (const C of T) {
22644
22644
  const N = C.contentRect.width;
22645
22645
  N > 0 && b(N);
22646
22646
  }
@@ -22802,7 +22802,7 @@ const ay = {
22802
22802
  }, [n?.anchorEl, i]), We(() => {
22803
22803
  i && c.current?.forceAlign?.();
22804
22804
  }, [s, i]);
22805
- const [m, w] = re(0), x = Z(null), [C, N] = re(!1), [k, A] = re(0), O = Z(/* @__PURE__ */ new Map()), [D, F] = re(632), [M, L] = re("bottom");
22805
+ const [m, w] = re(0), T = Z(null), [C, N] = re(!1), [k, A] = re(0), O = Z(/* @__PURE__ */ new Map()), [D, F] = re(632), [M, L] = re("bottom");
22806
22806
  return ne(() => {
22807
22807
  w(0), N(!1), L("bottom"), A(0);
22808
22808
  }, [n?.key, n?.type]), ne(() => {
@@ -22890,7 +22890,7 @@ const ay = {
22890
22890
  if (Be <= 0)
22891
22891
  return { node: V.title, steps: !1 };
22892
22892
  const Ie = Math.min(Math.max(m, 0), Be - 1), Tt = Te[Ie] || "", Xe = (V.disclaimer || "").trim(), ot = j > 1, Lt = (Oe) => {
22893
- Oe !== te && (A(Oe), w(0), x.current?.slideTo(0));
22893
+ Oe !== te && (A(Oe), w(0), T.current?.slideTo(0));
22894
22894
  };
22895
22895
  return { node: /* @__PURE__ */ pe(
22896
22896
  "div",
@@ -22935,7 +22935,7 @@ const ay = {
22935
22935
  allowTouchMove: !1,
22936
22936
  initialSlide: Ie,
22937
22937
  onSwiper: (Oe) => {
22938
- x.current = Oe;
22938
+ T.current = Oe;
22939
22939
  },
22940
22940
  onSlideChange: (Oe) => w(Oe.activeIndex),
22941
22941
  children: he.map((Oe, Ze) => /* @__PURE__ */ G(rs, { children: /* @__PURE__ */ G(
@@ -22945,7 +22945,7 @@ const ay = {
22945
22945
  src: Oe,
22946
22946
  alt: `step-${Ze + 1}`,
22947
22947
  onClick: () => {
22948
- w(Ze), x.current?.slideTo(Ze), N(!0);
22948
+ w(Ze), T.current?.slideTo(Ze), N(!0);
22949
22949
  }
22950
22950
  }
22951
22951
  ) }, `${Oe}-${Ze}`))
@@ -23019,10 +23019,10 @@ const ay = {
23019
23019
  N(!1), a || g(null);
23020
23020
  },
23021
23021
  onSwitchPlatform: (Oe) => {
23022
- Oe !== te && (A(Oe), w(0), x.current?.slideTo(0));
23022
+ Oe !== te && (A(Oe), w(0), T.current?.slideTo(0));
23023
23023
  },
23024
23024
  onStepChange: (Oe) => {
23025
- w(Oe), x.current?.slideTo(Oe);
23025
+ w(Oe), T.current?.slideTo(Oe);
23026
23026
  },
23027
23027
  renderRichText: $
23028
23028
  }
@@ -23206,20 +23206,20 @@ const Lo = (e, t) => {
23206
23206
  if (typeof e.maxCount == "number" && typeof e.minCount == "number" && e.maxCount > 1) {
23207
23207
  const C = st(e.tooltip), N = C ? ` data-tooltip="${be(C)}"` : "", k = e.minCount || 1, A = e.maxCount || 3;
23208
23208
  let O = 0;
23209
- for (let T = 0; T < A; T++) {
23210
- const I = `${e.key}-${T}`;
23209
+ for (let x = 0; x < A; x++) {
23210
+ const I = `${e.key}-${x}`;
23211
23211
  t[I] != null && (O += 1);
23212
23212
  }
23213
23213
  const D = Math.min(A, Math.max(k, O + (O < A ? 1 : 0))), F = ur(C);
23214
23214
  let M = "";
23215
- for (let T = 0; T < D; T++) {
23216
- const I = `${e.key}-${T}`, { hasFile: H, fileName: B, uploadIcon: $ } = or(t[I], e.text), _ = H ? "" : "hidden", Y = C && !H ? "" : "hidden", z = H ? "has-file" : "", S = (H ? B : e.text || e.placeholder) || "", q = S ? ` data-file-name="${S.replace(/"/g, "&quot;")}"` : "", V = ` data-batch-key="${e.key}"`, K = ` data-batch-index="${T}"`, j = F ? sr(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="${be(C)}" ></i>` : "", ce = `<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}>${B || e.text}</span>${j}${te}<span class="file-remove-btn ${_}" title="移除文件">×</span></span></span>`;
23215
+ for (let x = 0; x < D; x++) {
23216
+ const I = `${e.key}-${x}`, { hasFile: H, fileName: B, uploadIcon: $ } = or(t[I], e.text), _ = H ? "" : "hidden", Y = C && !H ? "" : "hidden", z = H ? "has-file" : "", S = (H ? B : e.text || e.placeholder) || "", q = S ? ` data-file-name="${S.replace(/"/g, "&quot;")}"` : "", V = ` data-batch-key="${e.key}"`, K = ` data-batch-index="${x}"`, j = F ? sr(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="${be(C)}" ></i>` : "", ce = `<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}>${B || e.text}</span>${j}${te}<span class="file-remove-btn ${_}" title="移除文件">×</span></span></span>`;
23217
23217
  M += ce;
23218
23218
  }
23219
23219
  return e.required ? `<span ${e.exclusionGroup ? `data-group="${e.exclusionGroup}"` : ""} class="exclusion-wrapper required-upload-group rte-required-upload-batch">${Lu}<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
23220
  }
23221
- const r = st(e.tooltip), i = r ? ` data-tooltip="${be(r)}"` : "", { hasFile: u, fileName: s, uploadIcon: o } = or(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, "&quot;")}"` : "", v = (e.text || "").trim(), y = u && e.showHint === !0 && v.length >= 12 ? `<span ${l} contenteditable="false" class="exclusion-wrapper upload-hint">${v}</span>` : "", g = ur(r), m = g ? sr(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="${be(r)}" ></i>` : "", x = `<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
- return e.required ? `<span ${e.exclusionGroup ? `data-group="${e.exclusionGroup}"` : ""} class="exclusion-wrapper required-upload-group">${Lu}${x}${a}</span>${y}` : x + a + y;
23221
+ const r = st(e.tooltip), i = r ? ` data-tooltip="${be(r)}"` : "", { hasFile: u, fileName: s, uploadIcon: o } = or(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, "&quot;")}"` : "", v = (e.text || "").trim(), y = u && e.showHint === !0 && v.length >= 12 ? `<span ${l} contenteditable="false" class="exclusion-wrapper upload-hint">${v}</span>` : "", g = ur(r), m = g ? sr(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="${be(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
+ return e.required ? `<span ${e.exclusionGroup ? `data-group="${e.exclusionGroup}"` : ""} class="exclusion-wrapper required-upload-group">${Lu}${T}${a}</span>${y}` : T + a + y;
23223
23223
  }, Ey = `<span class="rte-text-required"><i class='iconfont icon-bitian' style='font-size: 10px;'></i></span>`, yy = (e, t) => {
23224
23224
  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>`;
23225
23225
  return e.required ? `<span ${e.exclusionGroup ? `data-group="${e.exclusionGroup}"` : ""} class="exclusion-wrapper required-upload-group">${Ey}${u}</span>` : u;
@@ -23265,10 +23265,10 @@ const Lo = (e, t) => {
23265
23265
  const o = e.exclusionGroup ? `data-group="${e.exclusionGroup}"` : "", c = st(e.tooltip);
23266
23266
  let d = "";
23267
23267
  for (let h = 0; h < i; h++) {
23268
- const f = `${e.key}_${h}`, E = t[f] || "", v = !E, b = v ? "​" : be(E).replace(/\n/g, "<br/>"), y = v ? "show-placeholder" : "", g = c && v ? "rte-variable-with-icon" : "", m = c ? ` data-tooltip="${be(c)}" data-variable-key="${e.key || ""}"` : "", w = c && v ? "" : "hidden", x = e.exclusionGroup ? ` data-group="${e.exclusionGroup}"` : "", C = l && c;
23268
+ const f = `${e.key}_${h}`, E = t[f] || "", v = !E, b = v ? "​" : be(E).replace(/\n/g, "<br/>"), y = v ? "show-placeholder" : "", g = c && v ? "rte-variable-with-icon" : "", m = c ? ` data-tooltip="${be(c)}" data-variable-key="${e.key || ""}"` : "", w = c && v ? "" : "hidden", T = e.exclusionGroup ? ` data-group="${e.exclusionGroup}"` : "", C = l && c;
23269
23269
  let N = "";
23270
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="${be(c)}" ></i>`);
23271
- const k = `<span contenteditable="true" data-type="variable" data-key="${f}" data-multi-key="${e.key}" data-index="${h}" data-placeholder="${e.placeholder || ""}"${x}${m} class="variable-chip ${y}${g ? ` ${g}` : ""}">${b}${N}</span>`;
23271
+ 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
23272
  h === 0 ? d += `<span ${o} class="exclusion-wrapper required-upload-group required-multi-first">${Ry}${k}</span>` : d += k;
23273
23273
  }
23274
23274
  return d;
@@ -23279,8 +23279,8 @@ const Lo = (e, t) => {
23279
23279
  const c = `${e.key}_${o}`, d = t[c] || "", h = !d, f = h ? "​" : be(d).replace(/\n/g, "<br/>"), E = h ? "show-placeholder" : "", v = u && h ? "rte-variable-with-icon" : "", b = u ? ` data-tooltip="${be(u)}" data-variable-key="${e.key || ""}"` : "", y = u && h ? "" : "hidden", g = e.exclusionGroup ? ` data-group="${e.exclusionGroup}"` : "", m = l && u;
23280
23280
  let w = "";
23281
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="${be(u)}" ></i>`);
23282
- const x = `<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
- s += x;
23282
+ 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
+ s += T;
23284
23284
  }
23285
23285
  return s;
23286
23286
  }, By = (e, t, a) => Do(e, t, a, !0).replace(
@@ -29200,7 +29200,7 @@ function zy(e, t, a, l, n, r = {}, i, u, s, o) {
29200
29200
  const F = `<span ${b.exclusionGroup ? `data-group="${b.exclusionGroup}"` : ""} class="exclusion-wrapper required-upload-group">`, M = "</span>";
29201
29201
  let L = "";
29202
29202
  b.className ? L = `<span class="${b.className}">${b.text ?? ""}</span>` : L = b.text ?? "";
29203
- const T = y, { uploadHtml: I, hintHtml: H } = Lo(T, a);
29203
+ const x = y, { uploadHtml: I, hintHtml: H } = Lo(x, a);
29204
29204
  E.push(F + L + I + M + H), v += 2;
29205
29205
  continue;
29206
29206
  }
@@ -29213,7 +29213,7 @@ function zy(e, t, a, l, n, r = {}, i, u, s, o) {
29213
29213
  continue;
29214
29214
  }
29215
29215
  }
29216
- const w = b.exclusionGroup ? `data-group="${b.exclusionGroup}"` : "", x = b.exclusionGroup ? `<span ${w} class="exclusion-wrapper">` : "", C = b.exclusionGroup ? "</span>" : "";
29216
+ const w = b.exclusionGroup ? `data-group="${b.exclusionGroup}"` : "", T = b.exclusionGroup ? `<span ${w} class="exclusion-wrapper">` : "", C = b.exclusionGroup ? "</span>" : "";
29217
29217
  let N = "";
29218
29218
  if (b.type === "tag")
29219
29219
  N = hy(b, { lockStructure: l, hideButtons: i });
@@ -29231,7 +29231,7 @@ function zy(e, t, a, l, n, r = {}, i, u, s, o) {
29231
29231
  const A = !!y && y.type === "text" && !y.className && !y.exclusionGroup && d(y.text), O = A ? (y.text ?? "").trim() : "", D = O ? f(O) : "";
29232
29232
  A && (g = !0), N = Oo(b, a, D);
29233
29233
  } else b.type === "select" && b.key ? N = yy(b, n) : b.type === "textarea" && b.key ? N = xy(b, n) : b.type === "richtext" && b.key ? N = wy(b, n) : b.type === "report-module" && b.key ? N = Iy(b, n) : b.type === "markdown-module" && b.key ? N = Ly(b, n) : b.type === "datepicker" && b.key ? N = Dy(b, n) : b.type === "number-input" && b.key ? N = My(b, n) : b.type === "multi-variable" && b.key ? N = Do(b, n, r, !1) : b.type === "multi-variable-select" && b.key ? N = By(b, n, r) : b.type === "video-url" && b.key ? N = Po(b, s || {}) : b.type === "video-upload" && b.key ? N = Mo(b, s || {}) : b.type === "searchable-select" && b.key ? N = Hy(b, n) : b.type === "cascader" && b.key && (N = qy(b, n));
29234
- const k = x + N + C;
29234
+ const k = T + N + C;
29235
29235
  if (b.type === "text" && !b.className && !b.exclusionGroup) {
29236
29236
  if (d(b.text) && E.length > 0) {
29237
29237
  const O = E[E.length - 1], D = (b.text ?? "").trim();
@@ -29260,7 +29260,7 @@ function zy(e, t, a, l, n, r = {}, i, u, s, o) {
29260
29260
  if (y.innerText.replace(/\n/g, "").replace(/\u200B/g, ""))
29261
29261
  y.classList.remove("show-placeholder");
29262
29262
  else {
29263
- const w = Array.from(y.childNodes), x = y.querySelector(".variable-info-icon");
29263
+ const w = Array.from(y.childNodes), T = y.querySelector(".variable-info-icon");
29264
29264
  w.forEach((N) => {
29265
29265
  if (N.nodeType === Node.TEXT_NODE) {
29266
29266
  y.removeChild(N);
@@ -29269,7 +29269,7 @@ function zy(e, t, a, l, n, r = {}, i, u, s, o) {
29269
29269
  N.nodeType === Node.ELEMENT_NODE && N.tagName === "BR" && y.removeChild(N);
29270
29270
  });
29271
29271
  const C = document.createTextNode("​");
29272
- x && x.parentNode === y ? y.insertBefore(C, x) : y.firstChild ? y.insertBefore(C, y.firstChild) : y.appendChild(C), y.classList.add("show-placeholder");
29272
+ T && T.parentNode === y ? y.insertBefore(C, T) : y.firstChild ? y.insertBefore(C, y.firstChild) : y.appendChild(C), y.classList.add("show-placeholder");
29273
29273
  }
29274
29274
  });
29275
29275
  }, 0));
@@ -29349,20 +29349,20 @@ function Wy(e, t, a, l, n = {}, r, i, u, s, o, c, d, h) {
29349
29349
  const A = {}, O = /* @__PURE__ */ new Set(), D = !!e.current?.__tempVariableValues;
29350
29350
  if (e.current && !N) {
29351
29351
  if (h && !D) {
29352
- const T = /* @__PURE__ */ new Set();
29352
+ const x = /* @__PURE__ */ new Set();
29353
29353
  e.current.querySelectorAll('[data-type="variable"]').forEach((I) => {
29354
- I.dataset.key && T.add(I.dataset.key);
29354
+ I.dataset.key && x.add(I.dataset.key);
29355
29355
  });
29356
29356
  for (const I of Object.keys(h.current))
29357
- T.has(I) || delete h.current[I];
29357
+ x.has(I) || delete h.current[I];
29358
29358
  }
29359
- e.current.querySelectorAll('[data-type="variable"]').forEach((T) => {
29360
- const I = T.dataset.key;
29359
+ e.current.querySelectorAll('[data-type="variable"]').forEach((x) => {
29360
+ const I = x.dataset.key;
29361
29361
  if (!I) return;
29362
- !D && !T.getAttribute("data-report-url") && h?.current && delete h.current[I];
29362
+ !D && !x.getAttribute("data-report-url") && h?.current && delete h.current[I];
29363
29363
  let H = "";
29364
- if (T.dataset.variableRender === "antd-textarea") {
29365
- const B = (T.getAttribute("data-value") || "").trim();
29364
+ if (x.dataset.variableRender === "antd-textarea") {
29365
+ const B = (x.getAttribute("data-value") || "").trim();
29366
29366
  try {
29367
29367
  H = B ? decodeURIComponent(B).replace(/\r\n/g, `
29368
29368
  `).trim() : "";
@@ -29370,7 +29370,7 @@ function Wy(e, t, a, l, n = {}, r, i, u, s, o, c, d, h) {
29370
29370
  H = B.trim();
29371
29371
  }
29372
29372
  } else {
29373
- const B = (T.innerText || "").replace(/\u200B/g, "").replace(/\r\n/g, `
29373
+ const B = (x.innerText || "").replace(/\u200B/g, "").replace(/\r\n/g, `
29374
29374
  `);
29375
29375
  H = B.replace(/\n/g, "").trim().length > 0 ? B : "";
29376
29376
  }
@@ -29378,7 +29378,7 @@ function Wy(e, t, a, l, n = {}, r, i, u, s, o, c, d, h) {
29378
29378
  f.current.add(I);
29379
29379
  else if (f.current.has(I)) {
29380
29380
  O.add(I);
29381
- const B = T.getAttribute("data-node-type");
29381
+ const B = x.getAttribute("data-node-type");
29382
29382
  B === "report-url" ? O.add(`${I}__url`) : B === "markdown-name" && O.add(`${I}__name`);
29383
29383
  }
29384
29384
  });
@@ -29470,7 +29470,7 @@ function Wy(e, t, a, l, n = {}, r, i, u, s, o, c, d, h) {
29470
29470
  })), o && Object.keys(o).length > 0) {
29471
29471
  const L = new Set(
29472
29472
  t.filter((I) => I.type === "upload" && I.key).map((I) => I.key)
29473
- ), T = {};
29473
+ ), x = {};
29474
29474
  N || Object.entries(o).forEach(([I, H]) => {
29475
29475
  if (!Array.isArray(H)) return;
29476
29476
  let B = 0;
@@ -29484,15 +29484,15 @@ function Wy(e, t, a, l, n = {}, r, i, u, s, o, c, d, h) {
29484
29484
  O.add(`${I}_${_}`);
29485
29485
  }), Object.entries(o).forEach(([I, H]) => {
29486
29486
  L.has(I) || (Array.isArray(H) ? H.forEach((B, $) => {
29487
- B != null && String(B).trim() !== "" && (T[`${I}_${$}`] = String(B));
29488
- }) : H != null && String(H).trim() !== "" && (t.find(($) => $.key === I && $.type === "report-url") ? T[`${I}__url`] = String(H) : T[I] = String(H)));
29489
- }), Object.entries(T).forEach(([I, H]) => {
29487
+ B != null && String(B).trim() !== "" && (x[`${I}_${$}`] = String(B));
29488
+ }) : H != null && String(H).trim() !== "" && (t.find(($) => $.key === I && $.type === "report-url") ? x[`${I}__url`] = String(H) : x[I] = String(H)));
29489
+ }), Object.entries(x).forEach(([I, H]) => {
29490
29490
  const B = I in k, $ = O.has(I), _ = y.current[I] !== H;
29491
29491
  !$ && (!B || _) && (k[I] = H);
29492
29492
  });
29493
29493
  for (const I of Object.keys(y.current))
29494
- !(I in T) && I in k && delete k[I];
29495
- y.current = T;
29494
+ !(I in x) && I in k && delete k[I];
29495
+ y.current = x;
29496
29496
  }
29497
29497
  if (zy(
29498
29498
  e,
@@ -29506,27 +29506,27 @@ function Wy(e, t, a, l, n = {}, r, i, u, s, o, c, d, h) {
29506
29506
  c,
29507
29507
  d
29508
29508
  ), b.current = m, h && e.current)
29509
- for (const [L, { name: T, url: I }] of Object.entries(h.current)) {
29509
+ for (const [L, { name: x, url: I }] of Object.entries(h.current)) {
29510
29510
  const H = e.current.querySelector(
29511
29511
  `[data-type="variable"][data-key="${L}"]`
29512
29512
  );
29513
29513
  if (!H) continue;
29514
29514
  const B = H.querySelector(".rte-report-dropdown-host");
29515
29515
  B && (B.style.display = "", B.style.visibility = "", B.classList.remove("hidden"), B.classList.add("rte-report-dropdown-host-quiet"));
29516
- const $ = [document.createTextNode(T)];
29517
- B && $.push(B), H.setAttribute("data-report-url", I), H.setAttribute("data-report-name", T), 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(...$), qn(H);
29516
+ const $ = [document.createTextNode(x)];
29517
+ B && $.push(B), 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(...$), qn(H);
29518
29518
  }
29519
29519
  if (N && (v.current = !1), setTimeout(() => {
29520
29520
  if (da(e), h?.current)
29521
- for (const [L, T] of Object.entries(h.current))
29522
- A[L] || (A[L] = T);
29521
+ for (const [L, x] of Object.entries(h.current))
29522
+ A[L] || (A[L] = x);
29523
29523
  if (Object.keys(A).length > 0 && e.current)
29524
- for (const [L, T] of Object.entries(A)) {
29524
+ for (const [L, x] of Object.entries(A)) {
29525
29525
  let I = null;
29526
- if (T.multiKey) {
29526
+ if (x.multiKey) {
29527
29527
  const $ = L.split("::")[1];
29528
29528
  I = e.current.querySelector(
29529
- `[data-type="variable"][data-multi-key="${T.multiKey}"][data-key="${$}"]`
29529
+ `[data-type="variable"][data-multi-key="${x.multiKey}"][data-key="${$}"]`
29530
29530
  );
29531
29531
  } else
29532
29532
  I = e.current.querySelector(
@@ -29535,12 +29535,12 @@ function Wy(e, t, a, l, n = {}, r, i, u, s, o, c, d, h) {
29535
29535
  if (!I) continue;
29536
29536
  const H = I.querySelector(".rte-report-dropdown-host");
29537
29537
  H && (H.style.display = "", H.style.visibility = "", H.classList.remove("hidden"), H.classList.add("rte-report-dropdown-host-quiet"));
29538
- const B = [document.createTextNode(T.name)];
29539
- H && B.push(H), I.classList.remove("show-placeholder", "rte-variable-with-icon"), I.classList.add("rte-report-name-chip"), I.setAttribute("data-report-url", T.url), I.setAttribute("data-report-name", T.name), I.contentEditable = "false", I.replaceChildren(...B), qn(I);
29538
+ const B = [document.createTextNode(x.name)];
29539
+ H && B.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(...B), qn(I);
29540
29540
  }
29541
29541
  Ya(e, t, a, c);
29542
29542
  }, 0), r?.current) {
29543
- const { key: L, offset: T } = r.current;
29543
+ const { key: L, offset: x } = r.current;
29544
29544
  setTimeout(() => {
29545
29545
  if (!e.current) return;
29546
29546
  const I = e.current.querySelector(
@@ -29553,7 +29553,7 @@ function Wy(e, t, a, l, n = {}, r, i, u, s, o, c, d, h) {
29553
29553
  H.focus();
29554
29554
  try {
29555
29555
  const B = H.value?.length ?? 0;
29556
- H.setSelectionRange(Math.min(T, B), Math.min(T, B));
29556
+ H.setSelectionRange(Math.min(x, B), Math.min(x, B));
29557
29557
  } catch {
29558
29558
  }
29559
29559
  r.current = null;
@@ -29569,8 +29569,8 @@ function Wy(e, t, a, l, n = {}, r, i, u, s, o, c, d, h) {
29569
29569
  let $ = 0, _ = null, Y = 0;
29570
29570
  for (; B.nextNode(); ) {
29571
29571
  const z = B.currentNode, S = z.textContent?.length || 0;
29572
- if ($ + S >= T) {
29573
- _ = z, Y = T - $;
29572
+ if ($ + S >= x) {
29573
+ _ = z, Y = x - $;
29574
29574
  break;
29575
29575
  }
29576
29576
  $ += S;
@@ -29603,75 +29603,90 @@ function jy(e, t, a, l, n) {
29603
29603
  ne(() => {
29604
29604
  const r = e.current;
29605
29605
  if (!r) return;
29606
- const i = (f) => typeof f == "string" ? /\.(png|jpe?g|gif|webp|bmp|svg)(\?.*)?$/i.test(f) : f.type?.startsWith("image/") ? !0 : /\.(png|jpe?g|gif|webp|bmp|svg)$/i.test(f.name || ""), u = (f) => {
29607
- if (f.target?.closest(".rte-tutorial-btn")) return;
29608
- const v = f.target?.closest(".upload-info-icon");
29609
- if (v && v.classList.contains("upload-info-icon")) {
29610
- const y = v.dataset.uploadKey;
29611
- if (y) {
29612
- const g = v.closest('[data-type="upload"], [data-type="video-upload"]');
29613
- l({ key: y, anchorEl: g || v, type: "upload" });
29606
+ const i = (y) => typeof y == "string" ? /\.(png|jpe?g|gif|webp|bmp|svg)(\?.*)?$/i.test(y) : y.type?.startsWith("image/") ? !0 : /\.(png|jpe?g|gif|webp|bmp|svg)$/i.test(y.name || ""), u = (y) => {
29607
+ if (y.target?.closest(".rte-tutorial-btn")) return;
29608
+ const m = y.target?.closest(".upload-info-icon");
29609
+ if (m && m.classList.contains("upload-info-icon")) {
29610
+ const T = m.dataset.uploadKey;
29611
+ if (T) {
29612
+ const C = m.closest('[data-type="upload"], [data-type="video-upload"]');
29613
+ l({ key: T, anchorEl: C || m, type: "upload" });
29614
29614
  }
29615
29615
  return;
29616
29616
  }
29617
- const b = f.target?.closest('[data-type="upload"]');
29618
- if (b) {
29619
- const y = b.dataset.key;
29620
- if (y) {
29621
- const g = a[y];
29622
- g && i(g) && l({ key: y, anchorEl: b, type: "upload-preview" });
29617
+ const w = y.target?.closest('[data-type="upload"]');
29618
+ if (w) {
29619
+ const T = w.dataset.key;
29620
+ if (T) {
29621
+ const C = a[T];
29622
+ C && i(C) && l({ key: T, anchorEl: w, type: "upload-preview" });
29623
29623
  }
29624
29624
  }
29625
- }, s = (f) => {
29625
+ }, s = (y) => {
29626
29626
  if (n) return;
29627
- const E = f.relatedTarget;
29628
- if (E?.closest?.(".rte-tooltip-overlay") || f.target?.closest(".rte-tutorial-btn")) return;
29629
- const b = f.target?.closest(".upload-info-icon");
29630
- if (b && b.classList.contains("upload-info-icon")) {
29631
- const g = b.closest('[data-type="upload"], [data-type="video-upload"]');
29632
- if (E && g && g.contains(E))
29627
+ const g = y.relatedTarget;
29628
+ if (g?.closest?.(".rte-tooltip-overlay") || y.target?.closest(".rte-tutorial-btn")) return;
29629
+ const w = y.target?.closest(".upload-info-icon");
29630
+ if (w && w.classList.contains("upload-info-icon")) {
29631
+ const C = w.closest('[data-type="upload"], [data-type="video-upload"]');
29632
+ if (g && C && C.contains(g))
29633
29633
  return;
29634
- if (!E || !r.contains(E))
29634
+ if (!g || !r.contains(g))
29635
29635
  l(null);
29636
29636
  else {
29637
- const m = E.closest('[data-type="upload"], [data-type="video-upload"]');
29638
- (!m || m !== g) && l(null);
29637
+ const N = g.closest('[data-type="upload"], [data-type="video-upload"]');
29638
+ (!N || N !== C) && l(null);
29639
29639
  }
29640
29640
  return;
29641
29641
  }
29642
- const y = f.target?.closest('[data-type="upload"], [data-type="video-upload"]');
29643
- if (y) {
29644
- const g = E;
29645
- if (g?.closest?.(".rte-tooltip-overlay") || g && y.contains(g))
29642
+ const T = y.target?.closest('[data-type="upload"], [data-type="video-upload"]');
29643
+ if (T) {
29644
+ const C = g;
29645
+ if (C?.closest?.(".rte-tooltip-overlay") || C && T.contains(C))
29646
29646
  return;
29647
29647
  l(null);
29648
29648
  }
29649
29649
  };
29650
29650
  r.addEventListener("mouseover", u, !0), r.addEventListener("mouseout", s, !0);
29651
- const o = (f) => {
29652
- const E = f.currentTarget, v = E.dataset.uploadKey;
29653
- if (v) {
29654
- const b = E.closest('[data-type="upload"]');
29655
- l({ key: v, anchorEl: b || E, type: "upload" });
29651
+ const o = (y) => {
29652
+ const g = y.currentTarget, m = g.dataset.uploadKey;
29653
+ if (m) {
29654
+ const w = g.closest('[data-type="upload"]');
29655
+ l({ key: m, anchorEl: w || g, type: "upload" });
29656
29656
  }
29657
- }, c = (f) => {
29657
+ }, c = (y) => {
29658
29658
  if (n) return;
29659
- const E = f.relatedTarget;
29660
- if (E?.closest?.(".rte-tooltip-overlay")) return;
29661
- const b = f.currentTarget.closest('[data-type="upload"]');
29662
- E && b?.contains(E) || l(null);
29663
- };
29664
- let d;
29665
- const h = () => {
29666
- r.querySelectorAll(".rte-tutorial-btn").forEach((f) => {
29667
- f.addEventListener("mouseenter", o), f.addEventListener("mouseleave", c);
29659
+ const g = y.relatedTarget;
29660
+ if (g?.closest?.(".rte-tooltip-overlay")) return;
29661
+ const w = y.currentTarget.closest('[data-type="upload"]');
29662
+ g && w?.contains(g) || l(null);
29663
+ }, d = /* @__PURE__ */ new WeakSet(), h = () => {
29664
+ r.querySelectorAll(".rte-tutorial-btn").forEach((y) => {
29665
+ d.has(y) || (d.add(y), y.addEventListener("mouseenter", o), y.addEventListener("mouseleave", c));
29668
29666
  });
29669
29667
  };
29670
- return d = requestAnimationFrame(() => {
29671
- d = requestAnimationFrame(h);
29672
- }), () => {
29673
- r.removeEventListener("mouseover", u, !0), r.removeEventListener("mouseout", s, !0), cancelAnimationFrame(d), r.querySelectorAll(".rte-tutorial-btn").forEach((f) => {
29674
- f.removeEventListener("mouseenter", o), f.removeEventListener("mouseleave", c);
29668
+ let f = requestAnimationFrame(() => {
29669
+ f = requestAnimationFrame(h);
29670
+ }), E = !1;
29671
+ const v = () => {
29672
+ E || (E = !0, queueMicrotask(() => {
29673
+ E = !1, h();
29674
+ }));
29675
+ }, b = new MutationObserver((y) => {
29676
+ for (const g of y)
29677
+ if (!(g.type !== "childList" || g.addedNodes.length === 0))
29678
+ for (const m of g.addedNodes) {
29679
+ if (m.nodeType !== Node.ELEMENT_NODE) continue;
29680
+ const w = m;
29681
+ if (w.matches?.(".rte-tutorial-btn") || w.querySelector?.(".rte-tutorial-btn")) {
29682
+ v();
29683
+ return;
29684
+ }
29685
+ }
29686
+ });
29687
+ return b.observe(r, { childList: !0, subtree: !0 }), () => {
29688
+ r.removeEventListener("mouseover", u, !0), r.removeEventListener("mouseout", s, !0), cancelAnimationFrame(f), b.disconnect(), r.querySelectorAll(".rte-tutorial-btn").forEach((y) => {
29689
+ y.removeEventListener("mouseenter", o), y.removeEventListener("mouseleave", c);
29675
29690
  });
29676
29691
  };
29677
29692
  }, [t, a, e, l, n]);
@@ -29808,21 +29823,21 @@ function Zy(e, t) {
29808
29823
  const w = m.getRangeAt(0);
29809
29824
  if (!w.collapsed)
29810
29825
  return e.current.contains(w.commonAncestorContainer), void 0;
29811
- const x = m.anchorNode;
29812
- if (!x || !e.current.contains(x))
29826
+ const T = m.anchorNode;
29827
+ if (!T || !e.current.contains(T))
29813
29828
  return;
29814
29829
  let C = !1, N = !1;
29815
- if (x.nodeType === Node.ELEMENT_NODE) {
29816
- const A = x;
29830
+ if (T.nodeType === Node.ELEMENT_NODE) {
29831
+ const A = T;
29817
29832
  (A.closest('[data-type="datepicker"]') || A.closest(".rte-datepicker-wrapper") || A.closest(".rte-datepicker-host")) && (C = !0), (A.closest('[data-type="select"]') || A.closest(".rte-select-wrapper") || A.closest(".rte-select-host")) && (N = !0);
29818
- } else if (x.parentElement) {
29819
- const A = x.parentElement;
29833
+ } else if (T.parentElement) {
29834
+ const A = T.parentElement;
29820
29835
  (A.closest('[data-type="datepicker"]') || A.closest(".rte-datepicker-wrapper") || A.closest(".rte-datepicker-host")) && (C = !0), (A.closest('[data-type="select"]') || A.closest(".rte-select-wrapper") || A.closest(".rte-select-host")) && (N = !0);
29821
29836
  }
29822
29837
  if (C || N)
29823
29838
  return;
29824
29839
  let k = null;
29825
- if (x.nodeType === Node.ELEMENT_NODE ? k = x.closest('[data-type="variable"]') : x.nodeType === Node.TEXT_NODE && x.parentElement && (k = x.parentElement.closest('[data-type="variable"]')), !k) {
29840
+ if (T.nodeType === Node.ELEMENT_NODE ? k = T.closest('[data-type="variable"]') : T.nodeType === Node.TEXT_NODE && T.parentElement && (k = T.parentElement.closest('[data-type="variable"]')), !k) {
29826
29841
  if (Date.now() - r > 500)
29827
29842
  return;
29828
29843
  const A = e.current.querySelectorAll('[data-type="variable"]');
@@ -29854,17 +29869,17 @@ function Bo() {
29854
29869
  e.exports = l();
29855
29870
  })(eT, function() {
29856
29871
  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) {
29857
- var T = ["th", "st", "nd", "rd"], I = L % 100;
29858
- return "[" + L + (T[(I - 20) % 10] || T[I] || T[0]) + "]";
29859
- } }, m = function(L, T, I) {
29872
+ var x = ["th", "st", "nd", "rd"], I = L % 100;
29873
+ return "[" + L + (x[(I - 20) % 10] || x[I] || x[0]) + "]";
29874
+ } }, m = function(L, x, I) {
29860
29875
  var H = String(L);
29861
- return !H || H.length >= T ? L : "" + Array(T + 1 - H.length).join(I) + L;
29876
+ return !H || H.length >= x ? L : "" + Array(x + 1 - H.length).join(I) + L;
29862
29877
  }, w = { s: m, z: function(L) {
29863
- var T = -L.utcOffset(), I = Math.abs(T), H = Math.floor(I / 60), B = I % 60;
29864
- return (T <= 0 ? "+" : "-") + m(H, 2, "0") + ":" + m(B, 2, "0");
29865
- }, m: function L(T, I) {
29866
- if (T.date() < I.date()) return -L(I, T);
29867
- var H = 12 * (I.year() - T.year()) + (I.month() - T.month()), B = T.clone().add(H, d), $ = I - B < 0, _ = T.clone().add(H + ($ ? -1 : 1), d);
29878
+ var x = -L.utcOffset(), I = Math.abs(x), H = Math.floor(I / 60), B = I % 60;
29879
+ return (x <= 0 ? "+" : "-") + m(H, 2, "0") + ":" + m(B, 2, "0");
29880
+ }, m: function L(x, I) {
29881
+ if (x.date() < I.date()) return -L(I, x);
29882
+ var H = 12 * (I.year() - x.year()) + (I.month() - x.month()), B = x.clone().add(H, d), $ = I - B < 0, _ = x.clone().add(H + ($ ? -1 : 1), d);
29868
29883
  return +(-(H + (I - B) / ($ ? B - _ : _ - B)) || 0);
29869
29884
  }, a: function(L) {
29870
29885
  return L < 0 ? Math.ceil(L) || 0 : Math.floor(L);
@@ -29872,37 +29887,37 @@ function Bo() {
29872
29887
  return { M: d, y: f, w: c, d: o, D: E, h: s, m: u, s: i, ms: r, Q: h }[L] || String(L || "").toLowerCase().replace(/s$/, "");
29873
29888
  }, u: function(L) {
29874
29889
  return L === void 0;
29875
- } }, x = "en", C = {};
29876
- C[x] = g;
29890
+ } }, T = "en", C = {};
29891
+ C[T] = g;
29877
29892
  var N = "$isDayjsObject", k = function(L) {
29878
29893
  return L instanceof F || !(!L || !L[N]);
29879
- }, A = function L(T, I, H) {
29894
+ }, A = function L(x, I, H) {
29880
29895
  var B;
29881
- if (!T) return x;
29882
- if (typeof T == "string") {
29883
- var $ = T.toLowerCase();
29896
+ if (!x) return T;
29897
+ if (typeof x == "string") {
29898
+ var $ = x.toLowerCase();
29884
29899
  C[$] && (B = $), I && (C[$] = I, B = $);
29885
- var _ = T.split("-");
29900
+ var _ = x.split("-");
29886
29901
  if (!B && _.length > 1) return L(_[0]);
29887
29902
  } else {
29888
- var Y = T.name;
29889
- C[Y] = T, B = Y;
29903
+ var Y = x.name;
29904
+ C[Y] = x, B = Y;
29890
29905
  }
29891
- return !H && B && (x = B), B || !H && x;
29892
- }, O = function(L, T) {
29906
+ return !H && B && (T = B), B || !H && T;
29907
+ }, O = function(L, x) {
29893
29908
  if (k(L)) return L.clone();
29894
- var I = typeof T == "object" ? T : {};
29909
+ var I = typeof x == "object" ? x : {};
29895
29910
  return I.date = L, I.args = arguments, new F(I);
29896
29911
  }, D = w;
29897
- D.l = A, D.i = k, D.w = function(L, T) {
29898
- return O(L, { locale: T.$L, utc: T.$u, x: T.$x, $offset: T.$offset });
29912
+ D.l = A, D.i = k, D.w = function(L, x) {
29913
+ return O(L, { locale: x.$L, utc: x.$u, x: x.$x, $offset: x.$offset });
29899
29914
  };
29900
29915
  var F = function() {
29901
29916
  function L(I) {
29902
29917
  this.$L = A(I.locale, null, !0), this.parse(I), this.$x = this.$x || I.x || {}, this[N] = !0;
29903
29918
  }
29904
- var T = L.prototype;
29905
- return T.parse = function(I) {
29919
+ var x = L.prototype;
29920
+ return x.parse = function(I) {
29906
29921
  this.$d = function(H) {
29907
29922
  var B = H.date, $ = H.utc;
29908
29923
  if (B === null) return /* @__PURE__ */ new Date(NaN);
@@ -29917,27 +29932,27 @@ function Bo() {
29917
29932
  }
29918
29933
  return new Date(B);
29919
29934
  }(I), this.init();
29920
- }, T.init = function() {
29935
+ }, x.init = function() {
29921
29936
  var I = this.$d;
29922
29937
  this.$y = I.getFullYear(), this.$M = I.getMonth(), this.$D = I.getDate(), this.$W = I.getDay(), this.$H = I.getHours(), this.$m = I.getMinutes(), this.$s = I.getSeconds(), this.$ms = I.getMilliseconds();
29923
- }, T.$utils = function() {
29938
+ }, x.$utils = function() {
29924
29939
  return D;
29925
- }, T.isValid = function() {
29940
+ }, x.isValid = function() {
29926
29941
  return this.$d.toString() !== v;
29927
- }, T.isSame = function(I, H) {
29942
+ }, x.isSame = function(I, H) {
29928
29943
  var B = O(I);
29929
29944
  return this.startOf(H) <= B && B <= this.endOf(H);
29930
- }, T.isAfter = function(I, H) {
29945
+ }, x.isAfter = function(I, H) {
29931
29946
  return O(I) < this.startOf(H);
29932
- }, T.isBefore = function(I, H) {
29947
+ }, x.isBefore = function(I, H) {
29933
29948
  return this.endOf(H) < O(I);
29934
- }, T.$g = function(I, H, B) {
29949
+ }, x.$g = function(I, H, B) {
29935
29950
  return D.u(I) ? this[H] : this.set(B, I);
29936
- }, T.unix = function() {
29951
+ }, x.unix = function() {
29937
29952
  return Math.floor(this.valueOf() / 1e3);
29938
- }, T.valueOf = function() {
29953
+ }, x.valueOf = function() {
29939
29954
  return this.$d.getTime();
29940
- }, T.startOf = function(I, H) {
29955
+ }, x.startOf = function(I, H) {
29941
29956
  var B = this, $ = !!D.u(H) || H, _ = D.p(I), Y = function(ce, he) {
29942
29957
  var Te = D.w(B.$u ? Date.UTC(B.$y, he, ce) : new Date(B.$y, he, ce), B);
29943
29958
  return $ ? Te : Te.endOf(o);
@@ -29964,20 +29979,20 @@ function Bo() {
29964
29979
  default:
29965
29980
  return this.clone();
29966
29981
  }
29967
- }, T.endOf = function(I) {
29982
+ }, x.endOf = function(I) {
29968
29983
  return this.startOf(I, !1);
29969
- }, T.$set = function(I, H) {
29984
+ }, x.$set = function(I, H) {
29970
29985
  var B, $ = D.p(I), _ = "set" + (this.$u ? "UTC" : ""), Y = (B = {}, B[o] = _ + "Date", B[E] = _ + "Date", B[d] = _ + "Month", B[f] = _ + "FullYear", B[s] = _ + "Hours", B[u] = _ + "Minutes", B[i] = _ + "Seconds", B[r] = _ + "Milliseconds", B)[$], z = $ === o ? this.$D + (H - this.$W) : H;
29971
29986
  if ($ === d || $ === f) {
29972
29987
  var S = this.clone().set(E, 1);
29973
29988
  S.$d[Y](z), S.init(), this.$d = S.set(E, Math.min(this.$D, S.daysInMonth())).$d;
29974
29989
  } else Y && this.$d[Y](z);
29975
29990
  return this.init(), this;
29976
- }, T.set = function(I, H) {
29991
+ }, x.set = function(I, H) {
29977
29992
  return this.clone().$set(I, H);
29978
- }, T.get = function(I) {
29993
+ }, x.get = function(I) {
29979
29994
  return this[D.p(I)]();
29980
- }, T.add = function(I, H) {
29995
+ }, x.add = function(I, H) {
29981
29996
  var B, $ = this;
29982
29997
  I = Number(I);
29983
29998
  var _ = D.p(H), Y = function(q) {
@@ -29990,9 +30005,9 @@ function Bo() {
29990
30005
  if (_ === c) return Y(7);
29991
30006
  var z = (B = {}, B[u] = l, B[s] = n, B[i] = a, B)[_] || 1, S = this.$d.getTime() + I * z;
29992
30007
  return D.w(S, this);
29993
- }, T.subtract = function(I, H) {
30008
+ }, x.subtract = function(I, H) {
29994
30009
  return this.add(-1 * I, H);
29995
- }, T.format = function(I) {
30010
+ }, x.format = function(I) {
29996
30011
  var H = this, B = this.$locale();
29997
30012
  if (!this.isValid()) return B.invalidDate || v;
29998
30013
  var $ = I || "YYYY-MM-DDTHH:mm:ssZ", _ = D.z(this), Y = this.$H, z = this.$m, S = this.$M, q = B.weekdays, V = B.months, K = B.meridiem, j = function(he, Te, Be, Ie) {
@@ -30058,9 +30073,9 @@ function Bo() {
30058
30073
  return null;
30059
30074
  }(he) || _.replace(":", "");
30060
30075
  });
30061
- }, T.utcOffset = function() {
30076
+ }, x.utcOffset = function() {
30062
30077
  return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
30063
- }, T.diff = function(I, H, B) {
30078
+ }, x.diff = function(I, H, B) {
30064
30079
  var $, _ = this, Y = D.p(H), z = O(I), S = (z.utcOffset() - this.utcOffset()) * l, q = this - z, V = function() {
30065
30080
  return D.m(_, z);
30066
30081
  };
@@ -30093,35 +30108,35 @@ function Bo() {
30093
30108
  $ = q;
30094
30109
  }
30095
30110
  return B ? $ : D.a($);
30096
- }, T.daysInMonth = function() {
30111
+ }, x.daysInMonth = function() {
30097
30112
  return this.endOf(d).$D;
30098
- }, T.$locale = function() {
30113
+ }, x.$locale = function() {
30099
30114
  return C[this.$L];
30100
- }, T.locale = function(I, H) {
30115
+ }, x.locale = function(I, H) {
30101
30116
  if (!I) return this.$L;
30102
30117
  var B = this.clone(), $ = A(I, H, !0);
30103
30118
  return $ && (B.$L = $), B;
30104
- }, T.clone = function() {
30119
+ }, x.clone = function() {
30105
30120
  return D.w(this.$d, this);
30106
- }, T.toDate = function() {
30121
+ }, x.toDate = function() {
30107
30122
  return new Date(this.valueOf());
30108
- }, T.toJSON = function() {
30123
+ }, x.toJSON = function() {
30109
30124
  return this.isValid() ? this.toISOString() : null;
30110
- }, T.toISOString = function() {
30125
+ }, x.toISOString = function() {
30111
30126
  return this.$d.toISOString();
30112
- }, T.toString = function() {
30127
+ }, x.toString = function() {
30113
30128
  return this.$d.toUTCString();
30114
30129
  }, L;
30115
30130
  }(), M = F.prototype;
30116
30131
  return O.prototype = M, [["$ms", r], ["$s", i], ["$m", u], ["$H", s], ["$W", o], ["$M", d], ["$y", f], ["$D", E]].forEach(function(L) {
30117
- M[L[1]] = function(T) {
30118
- return this.$g(T, L[0], L[1]);
30132
+ M[L[1]] = function(x) {
30133
+ return this.$g(x, L[0], L[1]);
30119
30134
  };
30120
- }), O.extend = function(L, T) {
30121
- return L.$i || (L(T, F, O), L.$i = !0), O;
30135
+ }), O.extend = function(L, x) {
30136
+ return L.$i || (L(x, F, O), L.$i = !0), O;
30122
30137
  }, O.locale = A, O.isDayjs = k, O.unix = function(L) {
30123
30138
  return O(1e3 * L);
30124
- }, O.en = C[x], O.Ls = C, O.p = {}, O;
30139
+ }, O.en = C[T], O.Ls = C, O.p = {}, O;
30125
30140
  });
30126
30141
  }(kl)), kl.exports;
30127
30142
  }
@@ -30377,7 +30392,7 @@ const { RangePicker: cT } = Ic, dT = ({ host: e, onChange: t }) => {
30377
30392
  footerPadding: g,
30378
30393
  collapsed: m = !1,
30379
30394
  reportAnalyze: w,
30380
- markdownAnalyze: x,
30395
+ markdownAnalyze: T,
30381
30396
  markdownNameAnalyze: C,
30382
30397
  onCollapsedChange: N,
30383
30398
  collapseTransitionMs: k = 260,
@@ -30387,7 +30402,7 @@ const { RangePicker: cT } = Ic, dT = ({ host: e, onChange: t }) => {
30387
30402
  onFooterFilesChange: F,
30388
30403
  showFooterUpload: M = !0,
30389
30404
  footerFiles: L,
30390
- videoUrlParse: T,
30405
+ videoUrlParse: x,
30391
30406
  videoUpload: I,
30392
30407
  reportListFetch: H,
30393
30408
  onReportGoGenerate: B,
@@ -30575,7 +30590,7 @@ const { RangePicker: cT } = Ic, dT = ({ host: e, onChange: t }) => {
30575
30590
  }), bl = Z(() => {
30576
30591
  }), { handleReportUrlBlur: tc, handleMarkdownBlur: ac, handleMarkdownNameBlur: lc, handleMultiVariableNameResolve: Xr } = Fd({
30577
30592
  reportAnalyze: w,
30578
- markdownAnalyze: x,
30593
+ markdownAnalyze: T,
30579
30594
  markdownNameAnalyze: C,
30580
30595
  reportAnalyzeState: aa,
30581
30596
  setReportAnalyzeState: xa,
@@ -30791,7 +30806,7 @@ const { RangePicker: cT } = Ic, dT = ({ host: e, onChange: t }) => {
30791
30806
  O,
30792
30807
  aa,
30793
30808
  nn
30794
- ), Dd(j, T, ct, ga, [Pe]);
30809
+ ), Dd(j, x, ct, ga, [Pe]);
30795
30810
  const uc = Pd(I, ga, j);
30796
30811
  Md(j, ct, Ge, A), Zy(j, Ql);
30797
30812
  const ti = rd(j), sc = ud(j), oc = od(j), ai = hd(j);
@@ -31423,18 +31438,18 @@ const Ru = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAcCAYAAAByDd+UAA
31423
31438
  showQuickJumper: !1,
31424
31439
  showTotal: () => "",
31425
31440
  itemRender: (g, m, w) => {
31426
- const x = n.includes(g);
31441
+ const T = n.includes(g);
31427
31442
  return m === "prev" || m === "next" || m === "jump-prev" || m === "jump-next" ? /* @__PURE__ */ G("div", { className: "pageBox", children: w }) : /* @__PURE__ */ pe(
31428
31443
  "div",
31429
31444
  {
31430
31445
  className: "pageBox",
31431
31446
  style: {
31432
31447
  backgroundColor: e === g ? "#2563EB" : "#f5f5f5",
31433
- color: e === g ? "#fff" : x ? "#171717" : "#a3a3a3"
31448
+ color: e === g ? "#fff" : T ? "#171717" : "#a3a3a3"
31434
31449
  },
31435
31450
  children: [
31436
31451
  g,
31437
- !x && /* @__PURE__ */ G("span", { className: "unload_spot" })
31452
+ !T && /* @__PURE__ */ G("span", { className: "unload_spot" })
31438
31453
  ]
31439
31454
  }
31440
31455
  );
@@ -31613,36 +31628,36 @@ const gT = ({
31613
31628
  onChange: r,
31614
31629
  ...i
31615
31630
  }) => {
31616
- const [u, s] = re(""), [o, c] = re(0), [d, h] = re(!1), [f, E] = re(!1), [v, b] = re(!1), y = Z(void 0), g = Z(void 0), m = Z(e), w = Z(o), x = Z(f), C = Z(u);
31631
+ const [u, s] = re(""), [o, c] = re(0), [d, h] = re(!1), [f, E] = re(!1), [v, b] = re(!1), y = Z(void 0), g = Z(void 0), m = Z(e), w = Z(o), T = Z(f), C = Z(u);
31617
31632
  ne(() => {
31618
- m.current = e, w.current = o, x.current = f, C.current = u;
31633
+ m.current = e, w.current = o, T.current = f, C.current = u;
31619
31634
  });
31620
- const N = ue((L, T) => {
31635
+ const N = ue((L, x) => {
31621
31636
  let I = 0;
31622
31637
  b(!0);
31623
31638
  const H = () => {
31624
- I < L.length ? (s(L.slice(0, I + 1)), I++, g.current = window.setTimeout(H, a)) : (b(!1), T?.());
31639
+ I < L.length ? (s(L.slice(0, I + 1)), I++, g.current = window.setTimeout(H, a)) : (b(!1), x?.());
31625
31640
  };
31626
31641
  H();
31627
31642
  }, [a]), k = ue((L) => {
31628
- let T = C.current.length;
31643
+ let x = C.current.length;
31629
31644
  const I = () => {
31630
- T > 0 ? (s(C.current.slice(0, T - 1)), T--, g.current = window.setTimeout(I, a / 2)) : L?.();
31645
+ x > 0 ? (s(C.current.slice(0, x - 1)), x--, g.current = window.setTimeout(I, a / 2)) : L?.();
31631
31646
  };
31632
31647
  I();
31633
31648
  }, [a]), A = ue(() => {
31634
- if (m.current.length === 0 || x.current) return;
31649
+ if (m.current.length === 0 || T.current) return;
31635
31650
  h(!0);
31636
31651
  const L = m.current[w.current];
31637
31652
  C.current ? k(() => {
31638
31653
  N(L, () => {
31639
31654
  y.current = window.setTimeout(() => {
31640
- c((T) => (T + 1) % m.current.length), h(!1);
31655
+ c((x) => (x + 1) % m.current.length), h(!1);
31641
31656
  }, 2e3);
31642
31657
  });
31643
31658
  }) : N(L, () => {
31644
31659
  y.current = window.setTimeout(() => {
31645
- c((T) => (T + 1) % m.current.length), h(!1);
31660
+ c((x) => (x + 1) % m.current.length), h(!1);
31646
31661
  }, 2e3);
31647
31662
  });
31648
31663
  }, [k, N]);
@@ -31794,9 +31809,9 @@ const ET = ({
31794
31809
  ...f
31795
31810
  // 其他原生属性
31796
31811
  }) => {
31797
- const [E, v] = re(""), [b, y] = re(0), [g, m] = re(!1), [w, x] = re(!1), [C, N] = re(!1), [k, A] = re(n || ""), O = Z(void 0), D = Z(void 0), F = Z(e), M = Z(b), L = Z(w), T = Z(E), I = Z(null);
31812
+ const [E, v] = re(""), [b, y] = re(0), [g, m] = re(!1), [w, T] = re(!1), [C, N] = re(!1), [k, A] = re(n || ""), O = Z(void 0), D = Z(void 0), F = Z(e), M = Z(b), L = Z(w), x = Z(E), I = Z(null);
31798
31813
  ne(() => {
31799
- F.current = e, M.current = b, L.current = w, T.current = E;
31814
+ F.current = e, M.current = b, L.current = w, x.current = E;
31800
31815
  });
31801
31816
  const H = ue((j, te) => {
31802
31817
  let ce = 0;
@@ -31806,16 +31821,16 @@ const ET = ({
31806
31821
  };
31807
31822
  he();
31808
31823
  }, [a]), B = ue((j) => {
31809
- let te = T.current.length;
31824
+ let te = x.current.length;
31810
31825
  const ce = () => {
31811
- te > 0 ? (v(T.current.slice(0, te - 1)), te--, D.current = window.setTimeout(ce, a / 2)) : j?.();
31826
+ te > 0 ? (v(x.current.slice(0, te - 1)), te--, D.current = window.setTimeout(ce, a / 2)) : j?.();
31812
31827
  };
31813
31828
  ce();
31814
31829
  }, [a]), $ = ue(() => {
31815
31830
  if (F.current.length === 0 || L.current) return;
31816
31831
  m(!0);
31817
31832
  const j = F.current[M.current];
31818
- T.current ? B(() => {
31833
+ x.current ? B(() => {
31819
31834
  H(j, () => {
31820
31835
  O.current = window.setTimeout(() => {
31821
31836
  y((te) => (te + 1) % F.current.length), m(!1);
@@ -31833,9 +31848,9 @@ const ET = ({
31833
31848
  !g && l && e.length > 0 && !w && $();
31834
31849
  }, [b, g, l, e.length, w, $]);
31835
31850
  const _ = (j) => {
31836
- x(!0), O.current && window.clearTimeout(O.current), D.current && window.clearTimeout(D.current), m(!1), N(!1), f.onFocus?.(j);
31851
+ T(!0), O.current && window.clearTimeout(O.current), D.current && window.clearTimeout(D.current), m(!1), N(!1), f.onFocus?.(j);
31837
31852
  }, Y = (j) => {
31838
- x(!1), !n && e.length > 0 && (v(""), y(0)), f.onBlur?.(j);
31853
+ T(!1), !n && e.length > 0 && (v(""), y(0)), f.onBlur?.(j);
31839
31854
  }, z = (j) => {
31840
31855
  const te = j.target.value;
31841
31856
  u && te.length > u || (r ? r(te) : A(te), f.onChange?.(j));
@@ -32084,7 +32099,7 @@ const Ho = ({
32084
32099
  style: E,
32085
32100
  ...v
32086
32101
  }) => {
32087
- const b = Z(null), [y, g] = re(!1), [m, w] = re(!1), [x, C] = re(!1), N = ue(() => {
32102
+ const b = Z(null), [y, g] = re(!1), [m, w] = re(!1), [T, C] = re(!1), N = ue(() => {
32088
32103
  b.current && (b.current.play(), g(!0), c?.());
32089
32104
  }, [c]), k = ue(() => {
32090
32105
  b.current && (b.current.pause(), g(!1), d?.());
@@ -32100,7 +32115,7 @@ const Ho = ({
32100
32115
  g(!0), c?.();
32101
32116
  }, [c]), L = ue(() => {
32102
32117
  g(!1), d?.();
32103
- }, [d]), T = ue(() => {
32118
+ }, [d]), x = ue(() => {
32104
32119
  g(!1), h?.();
32105
32120
  }, [h]), I = ue((H) => {
32106
32121
  s?.(H);
@@ -32135,7 +32150,7 @@ const Ho = ({
32135
32150
  onLoadedData: F,
32136
32151
  onPlay: M,
32137
32152
  onPause: L,
32138
- onEnded: T,
32153
+ onEnded: x,
32139
32154
  muted: !0,
32140
32155
  loop: !0
32141
32156
  }
@@ -32148,7 +32163,7 @@ const Ho = ({
32148
32163
  children: y ? /* @__PURE__ */ G(Vc, { className: "play-icon" }) : /* @__PURE__ */ G(Gc, { className: "play-icon" })
32149
32164
  }
32150
32165
  ),
32151
- !x && /* @__PURE__ */ G("div", { className: "video-loading-mask", children: /* @__PURE__ */ G("div", { className: "loading-spinner" }) })
32166
+ !T && /* @__PURE__ */ G("div", { className: "video-loading-mask", children: /* @__PURE__ */ G("div", { className: "loading-spinner" }) })
32152
32167
  ] })
32153
32168
  }
32154
32169
  );
@@ -32285,8 +32300,8 @@ const yT = (e) => [".mp4", ".webm", ".ogg", ".mov", ".avi", ".wmv", ".flv", ".mk
32285
32300
  const O = Math.min(...w), D = w.indexOf(O), F = D * (m + a), M = w[D];
32286
32301
  A.style.position = "absolute", A.style.left = `${F}px`, A.style.top = `${M}px`, A.style.width = `${m}px`, w[D] += A.offsetHeight + a;
32287
32302
  });
32288
- const x = Math.max(...w);
32289
- y.style.height = `${x}px`;
32303
+ const T = Math.max(...w);
32304
+ y.style.height = `${T}px`;
32290
32305
  }, [e, o, a]);
32291
32306
  ne(() => {
32292
32307
  const b = () => {
@@ -32580,9 +32595,9 @@ const wl = (e) => e.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "
32580
32595
  const m = g + s;
32581
32596
  if (m >= n.length) return;
32582
32597
  const w = n[m];
32583
- let x = w.split(/[\r\n]+/).map((k) => k.trim()).filter((k) => k !== "");
32584
- x.length < c && (x = _T(w));
32585
- const C = (k) => x.length === c * 2 ? x[k * 2] ?? "" : x[k] ?? "", N = {};
32598
+ let T = w.split(/[\r\n]+/).map((k) => k.trim()).filter((k) => k !== "");
32599
+ T.length < c && (T = _T(w));
32600
+ const C = (k) => T.length === c * 2 ? T[k * 2] ?? "" : T[k] ?? "", N = {};
32586
32601
  N[Ma("日期")] = y, o.forEach((k, A) => {
32587
32602
  const O = C(A), D = ST(O), F = Ma(k);
32588
32603
  N[F] = D;