bi-components-library 1.1.52 → 1.1.53

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
@@ -1,5 +1,5 @@
1
1
  import { jsx as G, jsxs as de, Fragment as Vs } from "react/jsx-runtime";
2
- import _e, { useState as te, useRef as J, useMemo as xn, useCallback as ie, useEffect as ne, useLayoutEffect as tt, forwardRef as Gs, createContext as Ys } from "react";
2
+ import _e, { useState as te, useRef as J, useMemo as xn, useCallback as ie, useEffect as ne, useLayoutEffect as et, forwardRef as Gs, createContext as Ys } from "react";
3
3
  import { Button as wt, Card as Pa, Modal as nl, Table as Ma, Flex as Ei, Spin as rl, Empty as al, Select as pr, Form as qn, Input as Ra, Space as il, Tooltip as sl, Image as bi, DatePicker as ol, message as ul, Dropdown as ll, Progress as cl, Pagination as dl, theme as fl } from "antd";
4
4
  import { createFromIconfontCN as pl, LeftOutlined as hl, SearchOutlined as ml, ReloadOutlined as gl, InfoCircleOutlined as El, SendOutlined as bl, PauseCircleOutlined as yl, PlayCircleOutlined as Tl } from "@ant-design/icons";
5
5
  import { createPortal as hr } from "react-dom";
@@ -768,7 +768,7 @@ const Ol = ({ host: e, onChange: t }) => {
768
768
  const W = Math.max(36, C + P + $ + k + 6);
769
769
  f((Q) => Q === W ? Q : W);
770
770
  }, [c]);
771
- return tt(() => {
771
+ return et(() => {
772
772
  const b = window.requestAnimationFrame(() => {
773
773
  p();
774
774
  }), g = window.setTimeout(() => {
@@ -930,7 +930,7 @@ const Bl = ({ host: e, onChange: t }) => {
930
930
  return _.observe(x), () => {
931
931
  A && window.cancelAnimationFrame(A), _.disconnect();
932
932
  };
933
- }, [n, t]), tt(() => {
933
+ }, [n, t]), et(() => {
934
934
  const x = window.requestAnimationFrame(() => {
935
935
  g();
936
936
  });
@@ -1039,7 +1039,7 @@ const Bl = ({ host: e, onChange: t }) => {
1039
1039
  }, [e]), t;
1040
1040
  };
1041
1041
  function Hl(e, t = []) {
1042
- tt(() => {
1042
+ et(() => {
1043
1043
  if (!e.current) return;
1044
1044
  const n = /* @__PURE__ */ new Map(), r = /* @__PURE__ */ new Map(), a = (f) => {
1045
1045
  const E = f.value || f.placeholder || "", h = window.getComputedStyle(f), c = Number.parseFloat(h.paddingLeft) || 0, p = Number.parseFloat(h.paddingRight) || 0, b = document.createElement("span");
@@ -1117,7 +1117,7 @@ function Hl(e, t = []) {
1117
1117
  }, [e, ...t]);
1118
1118
  }
1119
1119
  function $l(e, t, n = []) {
1120
- tt(() => {
1120
+ et(() => {
1121
1121
  if (!e.current) return;
1122
1122
  const r = /* @__PURE__ */ new Map(), a = window.setTimeout(() => {
1123
1123
  if (!e.current) return;
@@ -1169,7 +1169,7 @@ function Ul(e, t, n = []) {
1169
1169
  }, [e]);
1170
1170
  }
1171
1171
  function ql(e, t, n = []) {
1172
- tt(() => {
1172
+ et(() => {
1173
1173
  if (!e.current) return;
1174
1174
  const r = /* @__PURE__ */ new Map(), a = window.setTimeout(() => {
1175
1175
  if (!e.current) return;
@@ -1355,7 +1355,7 @@ ${(e || "").replace(/\r\n/g, `
1355
1355
  } else
1356
1356
  f.current = null, i({}), r({});
1357
1357
  m.current = e;
1358
- }, [e, t, l, r, i]), tt(() => {
1358
+ }, [e, t, l, r, i]), et(() => {
1359
1359
  f.current && t.current && (t.current.__tempVariableValues = f.current.variableValues, setTimeout(() => {
1360
1360
  f.current && (f.current = null);
1361
1361
  }, 0));
@@ -1625,7 +1625,7 @@ ${(e || "").replace(/\r\n/g, `
1625
1625
  m.current = b;
1626
1626
  }, [m, b]), ne(() => {
1627
1627
  f.current = g;
1628
- }, [f, g]), tt(() => {
1628
+ }, [f, g]), et(() => {
1629
1629
  E.current = y;
1630
1630
  }, [E, y]);
1631
1631
  const T = ie((_, v) => {
@@ -1659,7 +1659,7 @@ ${(e || "").replace(/\r\n/g, `
1659
1659
  const y = Math.max(0, Math.ceil(g.scrollHeight || 0));
1660
1660
  !Number.isFinite(y) || y <= 0 || u((T) => T === y ? T : y);
1661
1661
  }, [r, u]);
1662
- tt(() => {
1662
+ et(() => {
1663
1663
  if (!e) return;
1664
1664
  const g = n.current, y = a.current;
1665
1665
  if (!(!g || !y))
@@ -1733,7 +1733,7 @@ ${(e || "").replace(/\r\n/g, `
1733
1733
  }, () => {
1734
1734
  y.__rteDebug && y.__rteDebug[g] && delete y.__rteDebug[g];
1735
1735
  };
1736
- }, [r, n, i, a]), tt(() => {
1736
+ }, [r, n, i, a]), et(() => {
1737
1737
  if (!e) return;
1738
1738
  const g = n.current, y = r.current, T = a.current;
1739
1739
  if (!g) return;
@@ -2703,7 +2703,7 @@ const ec = ({
2703
2703
  multiVariableCounts: i,
2704
2704
  setMultiVariableCounts: s
2705
2705
  }) => {
2706
- tt(() => {
2706
+ et(() => {
2707
2707
  const u = r.current;
2708
2708
  if (!u) return;
2709
2709
  const o = /* @__PURE__ */ new Map(), l = (E) => {
@@ -3969,7 +3969,7 @@ const oc = {
3969
3969
  typeof setTimeout > "u" || clearTimeout(e);
3970
3970
  }
3971
3971
  };
3972
- function He() {
3972
+ function $e() {
3973
3973
  const e = typeof window < "u" ? window : {};
3974
3974
  return Fa(e, oc), e;
3975
3975
  }
@@ -3996,12 +3996,12 @@ function ar() {
3996
3996
  return Date.now();
3997
3997
  }
3998
3998
  function cc(e) {
3999
- const t = He();
3999
+ const t = $e();
4000
4000
  let n;
4001
4001
  return t.getComputedStyle && (n = t.getComputedStyle(e, null)), !n && e.currentStyle && (n = e.currentStyle), n || (n = e.style), n;
4002
4002
  }
4003
4003
  function dc(e, t = "x") {
4004
- const n = He();
4004
+ const n = $e();
4005
4005
  let r, a, i;
4006
4006
  const s = cc(e);
4007
4007
  return n.WebKitCSSMatrix ? (a = s.transform || s.webkitTransform, a.split(",").length > 6 && (a = a.split(", ").map((u) => u.replace(",", ".")).join(", ")), i = new n.WebKitCSSMatrix(a === "none" ? "" : a)) : (i = s.MozTransform || s.OTransform || s.MsTransform || s.msTransform || s.transform || s.getPropertyValue("transform").replace("translate(", "matrix(1, 0, 0, 1,"), r = i.toString().split(",")), t === "x" && (n.WebKitCSSMatrix ? a = i.m41 : r.length === 16 ? a = parseFloat(r[12]) : a = parseFloat(r[4])), t === "y" && (n.WebKitCSSMatrix ? a = i.m42 : r.length === 16 ? a = parseFloat(r[13]) : a = parseFloat(r[5])), a || 0;
@@ -4034,7 +4034,7 @@ function Js({
4034
4034
  targetPosition: t,
4035
4035
  side: n
4036
4036
  }) {
4037
- const r = He(), a = -e.translate;
4037
+ const r = $e(), a = -e.translate;
4038
4038
  let i = null, s;
4039
4039
  const u = e.params.speed;
4040
4040
  e.wrapperEl.style.scrollSnapType = "none", r.cancelAnimationFrame(e.cssModeFrameID);
@@ -4057,7 +4057,7 @@ function Js({
4057
4057
  m();
4058
4058
  }
4059
4059
  function ot(e, t = "") {
4060
- const n = He(), r = [...e.children];
4060
+ const n = $e(), r = [...e.children];
4061
4061
  return n.HTMLSlotElement && e instanceof HTMLSlotElement && r.push(...e.assignedElements()), t ? r.filter((a) => a.matches(t)) : r;
4062
4062
  }
4063
4063
  function pc(e, t) {
@@ -4070,7 +4070,7 @@ function pc(e, t) {
4070
4070
  }
4071
4071
  }
4072
4072
  function hc(e, t) {
4073
- const n = He();
4073
+ const n = $e();
4074
4074
  let r = t.contains(e);
4075
4075
  return !r && n.HTMLSlotElement && t instanceof HTMLSlotElement && (r = [...t.assignedElements()].includes(e), r || (r = pc(e, t))), r;
4076
4076
  }
@@ -4102,7 +4102,7 @@ function gc(e, t) {
4102
4102
  return n;
4103
4103
  }
4104
4104
  function Ct(e, t) {
4105
- return He().getComputedStyle(e, null).getPropertyValue(t);
4105
+ return $e().getComputedStyle(e, null).getPropertyValue(t);
4106
4106
  }
4107
4107
  function or(e) {
4108
4108
  let t = e, n;
@@ -4120,7 +4120,7 @@ function Zs(e, t) {
4120
4120
  return n;
4121
4121
  }
4122
4122
  function ga(e, t, n) {
4123
- const r = He();
4123
+ const r = $e();
4124
4124
  return e[t === "width" ? "offsetWidth" : "offsetHeight"] + parseFloat(r.getComputedStyle(e, null).getPropertyValue(t === "width" ? "margin-right" : "margin-top")) + parseFloat(r.getComputedStyle(e, null).getPropertyValue(t === "width" ? "margin-left" : "margin-bottom"));
4125
4125
  }
4126
4126
  function Oe(e) {
@@ -4133,7 +4133,7 @@ function Cn(e, t = "") {
4133
4133
  }
4134
4134
  let Pr;
4135
4135
  function Ec() {
4136
- const e = He(), t = Dt();
4136
+ const e = $e(), t = Dt();
4137
4137
  return {
4138
4138
  smoothScroll: t.documentElement && t.documentElement.style && "scrollBehavior" in t.documentElement.style,
4139
4139
  touch: !!("ontouchstart" in e || e.DocumentTouch && t instanceof e.DocumentTouch)
@@ -4146,7 +4146,7 @@ let Mr;
4146
4146
  function bc({
4147
4147
  userAgent: e
4148
4148
  } = {}) {
4149
- const t = eo(), n = He(), r = n.navigator.platform, a = e || n.navigator.userAgent, i = {
4149
+ const t = eo(), n = $e(), r = n.navigator.platform, a = e || n.navigator.userAgent, i = {
4150
4150
  ios: !1,
4151
4151
  android: !1
4152
4152
  }, s = n.screen.width, u = n.screen.height, o = a.match(/(Android);?[\s\/]+([\d.]+)?/);
@@ -4161,7 +4161,7 @@ function to(e = {}) {
4161
4161
  }
4162
4162
  let Rr;
4163
4163
  function yc() {
4164
- const e = He(), t = to();
4164
+ const e = $e(), t = to();
4165
4165
  let n = !1;
4166
4166
  function r() {
4167
4167
  const u = e.navigator.userAgent.toLowerCase();
@@ -4190,7 +4190,7 @@ function Tc({
4190
4190
  on: t,
4191
4191
  emit: n
4192
4192
  }) {
4193
- const r = He();
4193
+ const r = $e();
4194
4194
  let a = null, i = null;
4195
4195
  const s = () => {
4196
4196
  !e || e.destroyed || !e.initialized || (n("beforeResize"), n("resize"));
@@ -4232,7 +4232,7 @@ function xc({
4232
4232
  on: n,
4233
4233
  emit: r
4234
4234
  }) {
4235
- const a = [], i = He(), s = (l, m = {}) => {
4235
+ const a = [], i = $e(), s = (l, m = {}) => {
4236
4236
  const f = i.MutationObserver || i.WebkitMutationObserver, E = new f((h) => {
4237
4237
  if (e.__preventObserver__) return;
4238
4238
  if (h.length === 1) {
@@ -5230,7 +5230,7 @@ var ad = {
5230
5230
  };
5231
5231
  function id(e, t = this) {
5232
5232
  function n(r) {
5233
- if (!r || r === Dt() || r === He()) return null;
5233
+ if (!r || r === Dt() || r === $e()) return null;
5234
5234
  r.assignedSlot && (r = r.assignedSlot);
5235
5235
  const a = r.closest(e);
5236
5236
  return !a && !r.getRootNode ? null : a || n(r.getRootNode().host);
@@ -5238,7 +5238,7 @@ function id(e, t = this) {
5238
5238
  return n(t);
5239
5239
  }
5240
5240
  function xi(e, t, n) {
5241
- const r = He(), {
5241
+ const r = $e(), {
5242
5242
  params: a
5243
5243
  } = e, i = a.edgeSwipeDetection, s = a.edgeSwipeThreshold;
5244
5244
  return i && (n <= s || n >= r.innerWidth - s) ? i === "prevent" ? (t.preventDefault(), !0) : !1 : !0;
@@ -5601,7 +5601,7 @@ function gd() {
5601
5601
  function Ed(e, t = "window", n) {
5602
5602
  if (!e || t === "container" && !n) return;
5603
5603
  let r = !1;
5604
- const a = He(), i = t === "window" ? a.innerHeight : n.clientHeight, s = Object.keys(e).map((u) => {
5604
+ const a = $e(), i = t === "window" ? a.innerHeight : n.clientHeight, s = Object.keys(e).map((u) => {
5605
5605
  if (typeof u == "string" && u.indexOf("@") === 0) {
5606
5606
  const o = parseFloat(u.substr(1));
5607
5607
  return {
@@ -6447,7 +6447,7 @@ function Dd(e, t, n) {
6447
6447
  }));
6448
6448
  }
6449
6449
  function fn(e, t) {
6450
- return typeof window > "u" ? ne(e, t) : tt(e, t);
6450
+ return typeof window > "u" ? ne(e, t) : et(e, t);
6451
6451
  }
6452
6452
  const Si = /* @__PURE__ */ Ys(null), Pd = /* @__PURE__ */ Ys(null), po = /* @__PURE__ */ Gs(({
6453
6453
  className: e,
@@ -7039,7 +7039,7 @@ function Eo(e, t) {
7039
7039
  function An(e) {
7040
7040
  return e.toLowerCase();
7041
7041
  }
7042
- class Ve {
7042
+ class Ge {
7043
7043
  /**
7044
7044
  * @param {string} property
7045
7045
  * Property.
@@ -7052,18 +7052,18 @@ class Ve {
7052
7052
  this.attribute = n, this.property = t;
7053
7053
  }
7054
7054
  }
7055
- Ve.prototype.attribute = "";
7056
- Ve.prototype.booleanish = !1;
7057
- Ve.prototype.boolean = !1;
7058
- Ve.prototype.commaOrSpaceSeparated = !1;
7059
- Ve.prototype.commaSeparated = !1;
7060
- Ve.prototype.defined = !1;
7061
- Ve.prototype.mustUseProperty = !1;
7062
- Ve.prototype.number = !1;
7063
- Ve.prototype.overloadedBoolean = !1;
7064
- Ve.prototype.property = "";
7065
- Ve.prototype.spaceSeparated = !1;
7066
- Ve.prototype.space = void 0;
7055
+ Ge.prototype.attribute = "";
7056
+ Ge.prototype.booleanish = !1;
7057
+ Ge.prototype.boolean = !1;
7058
+ Ge.prototype.commaOrSpaceSeparated = !1;
7059
+ Ge.prototype.commaSeparated = !1;
7060
+ Ge.prototype.defined = !1;
7061
+ Ge.prototype.mustUseProperty = !1;
7062
+ Ge.prototype.number = !1;
7063
+ Ge.prototype.overloadedBoolean = !1;
7064
+ Ge.prototype.property = "";
7065
+ Ge.prototype.spaceSeparated = !1;
7066
+ Ge.prototype.space = void 0;
7067
7067
  let qd = 0;
7068
7068
  const ue = Pt(), Ie = Pt(), ya = Pt(), X = Pt(), xe = Pt(), Vt = Pt(), We = Pt();
7069
7069
  function Pt() {
@@ -7082,7 +7082,7 @@ const Ta = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
7082
7082
  /** @type {ReadonlyArray<keyof typeof types>} */
7083
7083
  Object.keys(Ta)
7084
7084
  );
7085
- class $a extends Ve {
7085
+ class $a extends Ge {
7086
7086
  /**
7087
7087
  * @constructor
7088
7088
  * @param {string} property
@@ -8150,7 +8150,7 @@ const zd = Wt({
8150
8150
  }, Yd = /[A-Z]/g, Ii = /-[a-z]/g, Wd = /^data[-\w.:]+$/i;
8151
8151
  function gr(e, t) {
8152
8152
  const n = An(t);
8153
- let r = t, a = Ve;
8153
+ let r = t, a = Ge;
8154
8154
  if (n in e.normal)
8155
8155
  return e.property[e.normal[n]];
8156
8156
  if (n.length > 4 && n.slice(0, 4) === "data" && Wd.test(t)) {
@@ -8798,7 +8798,7 @@ function lt(e, t, n, r) {
8798
8798
  for (n && e.splice(t, n); i < r.length; )
8799
8799
  s = r.slice(i, i + 1e4), s.unshift(t, 0), e.splice(...s), i += 1e4, t += 1e4;
8800
8800
  }
8801
- function Ze(e, t) {
8801
+ function Je(e, t) {
8802
8802
  return e.length > 0 ? (lt(e, e.length, 0, t), e) : t;
8803
8803
  }
8804
8804
  const $i = {}.hasOwnProperty;
@@ -9123,7 +9123,7 @@ function Bf(e, t) {
9123
9123
  ...s.start
9124
9124
  }, e[n][1].start = {
9125
9125
  ...u.end
9126
- }, l = [], e[r][1].end.offset - e[r][1].start.offset && (l = Ze(l, [["enter", e[r][1], t], ["exit", e[r][1], t]])), l = Ze(l, [["enter", a, t], ["enter", s, t], ["exit", s, t], ["enter", i, t]]), l = Ze(l, Ga(t.parser.constructs.insideSpan.null, e.slice(r + 1, n), t)), l = Ze(l, [["exit", i, t], ["enter", u, t], ["exit", u, t], ["exit", a, t]]), e[n][1].end.offset - e[n][1].start.offset ? (m = 2, l = Ze(l, [["enter", e[n][1], t], ["exit", e[n][1], t]])) : m = 0, lt(e, r - 1, n - r + 3, l), n = r + l.length - m - 2;
9126
+ }, l = [], e[r][1].end.offset - e[r][1].start.offset && (l = Je(l, [["enter", e[r][1], t], ["exit", e[r][1], t]])), l = Je(l, [["enter", a, t], ["enter", s, t], ["exit", s, t], ["enter", i, t]]), l = Je(l, Ga(t.parser.constructs.insideSpan.null, e.slice(r + 1, n), t)), l = Je(l, [["exit", i, t], ["enter", u, t], ["exit", u, t], ["exit", a, t]]), e[n][1].end.offset - e[n][1].start.offset ? (m = 2, l = Je(l, [["enter", e[n][1], t], ["exit", e[n][1], t]])) : m = 0, lt(e, r - 1, n - r + 3, l), n = r + l.length - m - 2;
9127
9127
  break;
9128
9128
  }
9129
9129
  }
@@ -10270,7 +10270,7 @@ function Op(e, t) {
10270
10270
  ...e[s - 2][1].start
10271
10271
  }
10272
10272
  };
10273
- return u = [["enter", o, t], ["enter", l, t]], u = Ze(u, e.slice(i + 1, i + r + 3)), u = Ze(u, [["enter", m, t]]), u = Ze(u, Ga(t.parser.constructs.insideSpan.null, e.slice(i + r + 4, s - 3), t)), u = Ze(u, [["exit", m, t], e[s - 2], e[s - 1], ["exit", l, t]]), u = Ze(u, e.slice(s + 1)), u = Ze(u, [["exit", o, t]]), lt(e, i, e.length, u), e;
10273
+ return u = [["enter", o, t], ["enter", l, t]], u = Je(u, e.slice(i + 1, i + r + 3)), u = Je(u, [["enter", m, t]]), u = Je(u, Ga(t.parser.constructs.insideSpan.null, e.slice(i + r + 4, s - 3), t)), u = Je(u, [["exit", m, t], e[s - 2], e[s - 1], ["exit", l, t]]), u = Je(u, e.slice(s + 1)), u = Je(u, [["exit", o, t]]), lt(e, i, e.length, u), e;
10274
10274
  }
10275
10275
  function Dp(e, t, n) {
10276
10276
  const r = this;
@@ -10412,7 +10412,7 @@ function qp(e, t, n) {
10412
10412
  return l === a ? (e.consume(l), r++, o) : (e.exit("thematicBreakSequence"), me(l) ? ge(e, u, "whitespace")(l) : u(l));
10413
10413
  }
10414
10414
  }
10415
- const ze = {
10415
+ const Ve = {
10416
10416
  continuation: {
10417
10417
  tokenize: Yp
10418
10418
  },
@@ -10473,7 +10473,7 @@ function Yp(e, t, n) {
10473
10473
  return r.containerState.furtherBlankLines || !me(u) ? (r.containerState.furtherBlankLines = void 0, r.containerState.initialBlankLine = void 0, s(u)) : (r.containerState.furtherBlankLines = void 0, r.containerState.initialBlankLine = void 0, e.attempt(Vp, t, s)(u));
10474
10474
  }
10475
10475
  function s(u) {
10476
- return r.containerState._closeFlow = !0, r.interrupt = void 0, ge(e, e.attempt(ze, t, n), "linePrefix", r.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4)(u);
10476
+ return r.containerState._closeFlow = !0, r.interrupt = void 0, ge(e, e.attempt(Ve, t, n), "linePrefix", r.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4)(u);
10477
10477
  }
10478
10478
  }
10479
10479
  function Wp(e, t, n) {
@@ -10665,19 +10665,19 @@ function rh(e, t) {
10665
10665
  return e;
10666
10666
  }
10667
10667
  const ah = {
10668
- 42: ze,
10669
- 43: ze,
10670
- 45: ze,
10671
- 48: ze,
10672
- 49: ze,
10673
- 50: ze,
10674
- 51: ze,
10675
- 52: ze,
10676
- 53: ze,
10677
- 54: ze,
10678
- 55: ze,
10679
- 56: ze,
10680
- 57: ze,
10668
+ 42: Ve,
10669
+ 43: Ve,
10670
+ 45: Ve,
10671
+ 48: Ve,
10672
+ 49: Ve,
10673
+ 50: Ve,
10674
+ 51: Ve,
10675
+ 52: Ve,
10676
+ 53: Ve,
10677
+ 54: Ve,
10678
+ 55: Ve,
10679
+ 56: Ve,
10680
+ 57: Ve,
10681
10681
  62: Do
10682
10682
  }, ih = {
10683
10683
  91: lp
@@ -10762,7 +10762,7 @@ function hh(e, t, n) {
10762
10762
  let m = t.tokenize.call(l, o);
10763
10763
  return t.resolveAll && i.push(t), l;
10764
10764
  function f(w) {
10765
- return s = Ze(s, w), b(), s[s.length - 1] !== null ? [] : (S(t, 0), l.events = Ga(i, l.events, l), l.events);
10765
+ return s = Je(s, w), b(), s[s.length - 1] !== null ? [] : (S(t, 0), l.events = Ga(i, l.events, l), l.events);
10766
10766
  }
10767
10767
  function E(w, D) {
10768
10768
  return gh(h(w), D);
@@ -11148,18 +11148,18 @@ function Sh(e) {
11148
11148
  if (V[le][0] === "enter")
11149
11149
  oe.push(le);
11150
11150
  else {
11151
- const $e = oe.pop();
11152
- le = a(V, $e, le);
11151
+ const Ue = oe.pop();
11152
+ le = a(V, Ue, le);
11153
11153
  }
11154
11154
  for (le = -1; ++le < V.length; ) {
11155
- const $e = t[V[le][0]];
11156
- qo.call($e, V[le][1].type) && $e[V[le][1].type].call(Object.assign({
11155
+ const Ue = t[V[le][0]];
11156
+ qo.call(Ue, V[le][1].type) && Ue[V[le][1].type].call(Object.assign({
11157
11157
  sliceSerialize: V[le][2].sliceSerialize
11158
11158
  }, se), V[le][1]);
11159
11159
  }
11160
11160
  if (se.tokenStack.length > 0) {
11161
- const $e = se.tokenStack[se.tokenStack.length - 1];
11162
- ($e[1] || Xi).call(se, void 0, $e[0]);
11161
+ const Ue = se.tokenStack[se.tokenStack.length - 1];
11162
+ (Ue[1] || Xi).call(se, void 0, Ue[0]);
11163
11163
  }
11164
11164
  for (K.position = {
11165
11165
  start: bt(V.length > 0 ? V[0][1].start : {
@@ -11177,7 +11177,7 @@ function Sh(e) {
11177
11177
  return K;
11178
11178
  }
11179
11179
  function a(V, K, se) {
11180
- let oe = K - 1, le = -1, $e = !1, rt, Ke, Qe, ft;
11180
+ let oe = K - 1, le = -1, Ue = !1, rt, Ke, Qe, ft;
11181
11181
  for (; ++oe <= se; ) {
11182
11182
  const Me = V[oe];
11183
11183
  switch (Me[1].type) {
@@ -11204,11 +11204,11 @@ function Sh(e) {
11204
11204
  if (rt) {
11205
11205
  let Et = oe;
11206
11206
  for (Ke = void 0; Et--; ) {
11207
- const Ge = V[Et];
11208
- if (Ge[1].type === "lineEnding" || Ge[1].type === "lineEndingBlank") {
11209
- if (Ge[0] === "exit") continue;
11210
- Ke && (V[Ke][1].type = "lineEndingBlank", $e = !0), Ge[1].type = "lineEnding", Ke = Et;
11211
- } else if (!(Ge[1].type === "linePrefix" || Ge[1].type === "blockQuotePrefix" || Ge[1].type === "blockQuotePrefixWhitespace" || Ge[1].type === "blockQuoteMarker" || Ge[1].type === "listItemIndent")) break;
11207
+ const Ye = V[Et];
11208
+ if (Ye[1].type === "lineEnding" || Ye[1].type === "lineEndingBlank") {
11209
+ if (Ye[0] === "exit") continue;
11210
+ Ke && (V[Ke][1].type = "lineEndingBlank", Ue = !0), Ye[1].type = "lineEnding", Ke = Et;
11211
+ } else if (!(Ye[1].type === "linePrefix" || Ye[1].type === "blockQuotePrefix" || Ye[1].type === "blockQuotePrefixWhitespace" || Ye[1].type === "blockQuoteMarker" || Ye[1].type === "listItemIndent")) break;
11212
11212
  }
11213
11213
  Qe && (!Ke || Qe < Ke) && (rt._spread = !0), rt.end = Object.assign({}, Ke ? V[Ke][1].start : Me[1].end), V.splice(Ke || oe, 0, ["exit", rt, Me[2]]), oe++, se++;
11214
11214
  }
@@ -11224,7 +11224,7 @@ function Sh(e) {
11224
11224
  }
11225
11225
  }
11226
11226
  }
11227
- return V[K][1]._spread = $e, se;
11227
+ return V[K][1]._spread = Ue, se;
11228
11228
  }
11229
11229
  function i(V, K) {
11230
11230
  return se;
@@ -14272,7 +14272,7 @@ var L;
14272
14272
  (function(e) {
14273
14273
  e[e.EOF = -1] = "EOF", e[e.NULL = 0] = "NULL", e[e.TABULATION = 9] = "TABULATION", e[e.CARRIAGE_RETURN = 13] = "CARRIAGE_RETURN", e[e.LINE_FEED = 10] = "LINE_FEED", e[e.FORM_FEED = 12] = "FORM_FEED", e[e.SPACE = 32] = "SPACE", e[e.EXCLAMATION_MARK = 33] = "EXCLAMATION_MARK", e[e.QUOTATION_MARK = 34] = "QUOTATION_MARK", e[e.AMPERSAND = 38] = "AMPERSAND", e[e.APOSTROPHE = 39] = "APOSTROPHE", e[e.HYPHEN_MINUS = 45] = "HYPHEN_MINUS", e[e.SOLIDUS = 47] = "SOLIDUS", e[e.DIGIT_0 = 48] = "DIGIT_0", e[e.DIGIT_9 = 57] = "DIGIT_9", e[e.SEMICOLON = 59] = "SEMICOLON", e[e.LESS_THAN_SIGN = 60] = "LESS_THAN_SIGN", e[e.EQUALS_SIGN = 61] = "EQUALS_SIGN", e[e.GREATER_THAN_SIGN = 62] = "GREATER_THAN_SIGN", e[e.QUESTION_MARK = 63] = "QUESTION_MARK", e[e.LATIN_CAPITAL_A = 65] = "LATIN_CAPITAL_A", e[e.LATIN_CAPITAL_Z = 90] = "LATIN_CAPITAL_Z", e[e.RIGHT_SQUARE_BRACKET = 93] = "RIGHT_SQUARE_BRACKET", e[e.GRAVE_ACCENT = 96] = "GRAVE_ACCENT", e[e.LATIN_SMALL_A = 97] = "LATIN_SMALL_A", e[e.LATIN_SMALL_Z = 122] = "LATIN_SMALL_Z";
14274
14274
  })(L || (L = {}));
14275
- const qe = {
14275
+ const ze = {
14276
14276
  DASH_DASH: "--",
14277
14277
  CDATA_START: "[CDATA[",
14278
14278
  DOCTYPE: "doctype",
@@ -14675,10 +14675,10 @@ var It;
14675
14675
  (function(e) {
14676
14676
  e.TYPE = "type", e.ACTION = "action", e.ENCODING = "encoding", e.PROMPT = "prompt", e.NAME = "name", e.COLOR = "color", e.FACE = "face", e.SIZE = "size";
14677
14677
  })(It || (It = {}));
14678
- var et;
14678
+ var Ze;
14679
14679
  (function(e) {
14680
14680
  e.NO_QUIRKS = "no-quirks", e.QUIRKS = "quirks", e.LIMITED_QUIRKS = "limited-quirks";
14681
- })(et || (et = {}));
14681
+ })(Ze || (Ze = {}));
14682
14682
  var U;
14683
14683
  (function(e) {
14684
14684
  e.A = "a", e.ADDRESS = "address", e.ANNOTATION_XML = "annotation-xml", e.APPLET = "applet", e.AREA = "area", e.ARTICLE = "article", e.ASIDE = "aside", e.B = "b", e.BASE = "base", e.BASEFONT = "basefont", e.BGSOUND = "bgsound", e.BIG = "big", e.BLOCKQUOTE = "blockquote", e.BODY = "body", e.BR = "br", e.BUTTON = "button", e.CAPTION = "caption", e.CENTER = "center", e.CODE = "code", e.COL = "col", e.COLGROUP = "colgroup", e.DD = "dd", e.DESC = "desc", e.DETAILS = "details", e.DIALOG = "dialog", e.DIR = "dir", e.DIV = "div", e.DL = "dl", e.DT = "dt", e.EM = "em", e.EMBED = "embed", e.FIELDSET = "fieldset", e.FIGCAPTION = "figcaption", e.FIGURE = "figure", e.FONT = "font", e.FOOTER = "footer", e.FOREIGN_OBJECT = "foreignObject", e.FORM = "form", e.FRAME = "frame", e.FRAMESET = "frameset", e.H1 = "h1", e.H2 = "h2", e.H3 = "h3", e.H4 = "h4", e.H5 = "h5", e.H6 = "h6", e.HEAD = "head", e.HEADER = "header", e.HGROUP = "hgroup", e.HR = "hr", e.HTML = "html", e.I = "i", e.IMG = "img", e.IMAGE = "image", e.INPUT = "input", e.IFRAME = "iframe", e.KEYGEN = "keygen", e.LABEL = "label", e.LI = "li", e.LINK = "link", e.LISTING = "listing", e.MAIN = "main", e.MALIGNMARK = "malignmark", e.MARQUEE = "marquee", e.MATH = "math", e.MENU = "menu", e.META = "meta", e.MGLYPH = "mglyph", e.MI = "mi", e.MO = "mo", e.MN = "mn", e.MS = "ms", e.MTEXT = "mtext", e.NAV = "nav", e.NOBR = "nobr", e.NOFRAMES = "noframes", e.NOEMBED = "noembed", e.NOSCRIPT = "noscript", e.OBJECT = "object", e.OL = "ol", e.OPTGROUP = "optgroup", e.OPTION = "option", e.P = "p", e.PARAM = "param", e.PLAINTEXT = "plaintext", e.PRE = "pre", e.RB = "rb", e.RP = "rp", e.RT = "rt", e.RTC = "rtc", e.RUBY = "ruby", e.S = "s", e.SCRIPT = "script", e.SEARCH = "search", e.SECTION = "section", e.SELECT = "select", e.SOURCE = "source", e.SMALL = "small", e.SPAN = "span", e.STRIKE = "strike", e.STRONG = "strong", e.STYLE = "style", e.SUB = "sub", e.SUMMARY = "summary", e.SUP = "sup", e.TABLE = "table", e.TBODY = "tbody", e.TEMPLATE = "template", e.TEXTAREA = "textarea", e.TFOOT = "tfoot", e.TD = "td", e.TH = "th", e.THEAD = "thead", e.TITLE = "title", e.TR = "tr", e.TRACK = "track", e.TT = "tt", e.U = "u", e.UL = "ul", e.SVG = "svg", e.VAR = "var", e.WBR = "wbr", e.XMP = "xmp";
@@ -15823,9 +15823,9 @@ class Fm {
15823
15823
  // Script data double escape start state
15824
15824
  //------------------------------------------------------------------
15825
15825
  _stateScriptDataDoubleEscapeStart(t) {
15826
- if (this.preprocessor.startsWith(qe.SCRIPT, !1) && bs(this.preprocessor.peek(qe.SCRIPT.length))) {
15826
+ if (this.preprocessor.startsWith(ze.SCRIPT, !1) && bs(this.preprocessor.peek(ze.SCRIPT.length))) {
15827
15827
  this._emitCodePoint(t);
15828
- for (let n = 0; n < qe.SCRIPT.length; n++)
15828
+ for (let n = 0; n < ze.SCRIPT.length; n++)
15829
15829
  this._emitCodePoint(this._consume());
15830
15830
  this.state = M.SCRIPT_DATA_DOUBLE_ESCAPED;
15831
15831
  } else this._ensureHibernation() || (this.state = M.SCRIPT_DATA_ESCAPED, this._stateScriptDataEscaped(t));
@@ -15914,9 +15914,9 @@ class Fm {
15914
15914
  // Script data double escape end state
15915
15915
  //------------------------------------------------------------------
15916
15916
  _stateScriptDataDoubleEscapeEnd(t) {
15917
- if (this.preprocessor.startsWith(qe.SCRIPT, !1) && bs(this.preprocessor.peek(qe.SCRIPT.length))) {
15917
+ if (this.preprocessor.startsWith(ze.SCRIPT, !1) && bs(this.preprocessor.peek(ze.SCRIPT.length))) {
15918
15918
  this._emitCodePoint(t);
15919
- for (let n = 0; n < qe.SCRIPT.length; n++)
15919
+ for (let n = 0; n < ze.SCRIPT.length; n++)
15920
15920
  this._emitCodePoint(this._consume());
15921
15921
  this.state = M.SCRIPT_DATA_ESCAPED;
15922
15922
  } else this._ensureHibernation() || (this.state = M.SCRIPT_DATA_DOUBLE_ESCAPED, this._stateScriptDataDoubleEscaped(t));
@@ -16185,7 +16185,7 @@ class Fm {
16185
16185
  // Markup declaration open state
16186
16186
  //------------------------------------------------------------------
16187
16187
  _stateMarkupDeclarationOpen(t) {
16188
- this._consumeSequenceIfMatch(qe.DASH_DASH, !0) ? (this._createCommentToken(qe.DASH_DASH.length + 1), this.state = M.COMMENT_START) : this._consumeSequenceIfMatch(qe.DOCTYPE, !1) ? (this.currentLocation = this.getCurrentLocation(qe.DOCTYPE.length + 1), this.state = M.DOCTYPE) : this._consumeSequenceIfMatch(qe.CDATA_START, !0) ? this.inForeignNode ? this.state = M.CDATA_SECTION : (this._err(z.cdataInHtmlContent), this._createCommentToken(qe.CDATA_START.length + 1), this.currentToken.data = "[CDATA[", this.state = M.BOGUS_COMMENT) : this._ensureHibernation() || (this._err(z.incorrectlyOpenedComment), this._createCommentToken(2), this.state = M.BOGUS_COMMENT, this._stateBogusComment(t));
16188
+ this._consumeSequenceIfMatch(ze.DASH_DASH, !0) ? (this._createCommentToken(ze.DASH_DASH.length + 1), this.state = M.COMMENT_START) : this._consumeSequenceIfMatch(ze.DOCTYPE, !1) ? (this.currentLocation = this.getCurrentLocation(ze.DOCTYPE.length + 1), this.state = M.DOCTYPE) : this._consumeSequenceIfMatch(ze.CDATA_START, !0) ? this.inForeignNode ? this.state = M.CDATA_SECTION : (this._err(z.cdataInHtmlContent), this._createCommentToken(ze.CDATA_START.length + 1), this.currentToken.data = "[CDATA[", this.state = M.BOGUS_COMMENT) : this._ensureHibernation() || (this._err(z.incorrectlyOpenedComment), this._createCommentToken(2), this.state = M.BOGUS_COMMENT, this._stateBogusComment(t));
16189
16189
  }
16190
16190
  // Comment start state
16191
16191
  //------------------------------------------------------------------
@@ -16450,7 +16450,7 @@ class Fm {
16450
16450
  break;
16451
16451
  }
16452
16452
  default:
16453
- this._consumeSequenceIfMatch(qe.PUBLIC, !1) ? this.state = M.AFTER_DOCTYPE_PUBLIC_KEYWORD : this._consumeSequenceIfMatch(qe.SYSTEM, !1) ? this.state = M.AFTER_DOCTYPE_SYSTEM_KEYWORD : this._ensureHibernation() || (this._err(z.invalidCharacterSequenceAfterDoctypeName), n.forceQuirks = !0, this.state = M.BOGUS_DOCTYPE, this._stateBogusDoctype(t));
16453
+ this._consumeSequenceIfMatch(ze.PUBLIC, !1) ? this.state = M.AFTER_DOCTYPE_PUBLIC_KEYWORD : this._consumeSequenceIfMatch(ze.SYSTEM, !1) ? this.state = M.AFTER_DOCTYPE_SYSTEM_KEYWORD : this._ensureHibernation() || (this._err(z.invalidCharacterSequenceAfterDoctypeName), n.forceQuirks = !0, this.state = M.BOGUS_DOCTYPE, this._stateBogusDoctype(t));
16454
16454
  }
16455
16455
  }
16456
16456
  // After DOCTYPE public keyword state
@@ -17158,7 +17158,7 @@ const Tt = {
17158
17158
  createDocument() {
17159
17159
  return {
17160
17160
  nodeName: "#document",
17161
- mode: et.NO_QUIRKS,
17161
+ mode: Ze.NO_QUIRKS,
17162
17162
  childNodes: []
17163
17163
  };
17164
17164
  },
@@ -17387,21 +17387,21 @@ function Jm(e) {
17387
17387
  }
17388
17388
  function Zm(e) {
17389
17389
  if (e.name !== cu)
17390
- return et.QUIRKS;
17390
+ return Ze.QUIRKS;
17391
17391
  const { systemId: t } = e;
17392
17392
  if (t && t.toLowerCase() === jm)
17393
- return et.QUIRKS;
17393
+ return Ze.QUIRKS;
17394
17394
  let { publicId: n } = e;
17395
17395
  if (n !== null) {
17396
17396
  if (n = n.toLowerCase(), Km.has(n))
17397
- return et.QUIRKS;
17397
+ return Ze.QUIRKS;
17398
17398
  let r = t === null ? Xm : du;
17399
17399
  if (As(n, r))
17400
- return et.QUIRKS;
17400
+ return Ze.QUIRKS;
17401
17401
  if (r = t === null ? fu : Qm, As(n, r))
17402
- return et.LIMITED_QUIRKS;
17402
+ return Ze.LIMITED_QUIRKS;
17403
17403
  }
17404
- return et.NO_QUIRKS;
17404
+ return Ze.NO_QUIRKS;
17405
17405
  }
17406
17406
  const Ss = {
17407
17407
  TEXT_HTML: "text/html",
@@ -18599,11 +18599,11 @@ function ni(e, t) {
18599
18599
  }
18600
18600
  function Ag(e, t) {
18601
18601
  e._setDocumentType(t);
18602
- const n = t.forceQuirks ? et.QUIRKS : Zm(t);
18602
+ const n = t.forceQuirks ? Ze.QUIRKS : Zm(t);
18603
18603
  Jm(t) || e._err(t, z.nonConformingDoctype), e.treeAdapter.setDocumentMode(e.document, n), e.insertionMode = B.BEFORE_HTML;
18604
18604
  }
18605
18605
  function un(e, t) {
18606
- e._err(t, z.missingDoctype, !0), e.treeAdapter.setDocumentMode(e.document, et.QUIRKS), e.insertionMode = B.BEFORE_HTML, e._processToken(t);
18606
+ e._err(t, z.missingDoctype, !0), e.treeAdapter.setDocumentMode(e.document, Ze.QUIRKS), e.insertionMode = B.BEFORE_HTML, e._processToken(t);
18607
18607
  }
18608
18608
  function Sg(e, t) {
18609
18609
  t.tagID === d.HTML ? (e._insertElement(t, Y.HTML), e.insertionMode = B.BEFORE_HEAD) : mn(e, t);
@@ -18893,7 +18893,7 @@ function Yg(e, t) {
18893
18893
  e._reconstructActiveFormattingElements(), e._insertElement(t, Y.HTML), e.activeFormattingElements.insertMarker(), e.framesetOk = !1;
18894
18894
  }
18895
18895
  function Wg(e, t) {
18896
- e.treeAdapter.getDocumentMode(e.document) !== et.QUIRKS && e.openElements.hasInButtonScope(d.P) && e._closePElement(), e._insertElement(t, Y.HTML), e.framesetOk = !1, e.insertionMode = B.IN_TABLE;
18896
+ e.treeAdapter.getDocumentMode(e.document) !== Ze.QUIRKS && e.openElements.hasInButtonScope(d.P) && e._closePElement(), e._insertElement(t, Y.HTML), e.framesetOk = !1, e.insertionMode = B.IN_TABLE;
18897
18897
  }
18898
18898
  function bu(e, t) {
18899
18899
  e._reconstructActiveFormattingElements(), e._appendElement(t, Y.HTML), e.framesetOk = !1, t.ackSelfClosing = !0;
@@ -21382,7 +21382,7 @@ const ha = {
21382
21382
  typeof $ == "string" && D($);
21383
21383
  });
21384
21384
  });
21385
- }, [e]), tt(() => {
21385
+ }, [e]), et(() => {
21386
21386
  if (!i) return;
21387
21387
  if (r?.type !== "upload" && r?.type !== "tag" && r?.type !== "variable") {
21388
21388
  _(null);
@@ -23240,11 +23240,11 @@ const { RangePicker: ny } = ol, ry = ({ host: e, onChange: t }) => {
23240
23240
  setPopoverVisible: pe,
23241
23241
  isDraggingRef: he,
23242
23242
  mouseDownPosRef: Ce
23243
- }), [Rn, kt] = te(!1), Jt = J(null), [Bn, Fn] = te(!0), Hn = J(0), [Zt, kr] = te(58), [Nr, vr] = te(58), [wr, Ir] = te(!1), [V, K] = te(null), se = J(!1), oe = J(!1), le = J(null), [$e, rt] = te({}), Ke = J(() => {
23243
+ }), [Rn, kt] = te(!1), Jt = J(null), [Bn, Fn] = te(!0), Hn = J(0), [Zt, kr] = te(58), [Nr, vr] = te(58), [wr, Ir] = te(!1), [V, K] = te(null), se = J(!1), oe = J(!1), le = J(null), [Ue, rt] = te({}), Ke = J(() => {
23244
23244
  }), [Qe, ft] = te({}), Me = J(() => {
23245
- }), Et = J({}), Ge = J(Qe);
23245
+ }), Et = J({}), Ye = J(Qe);
23246
23246
  ne(() => {
23247
- Ge.current = Qe;
23247
+ Ye.current = Qe;
23248
23248
  }, [Qe]);
23249
23249
  const [Rt, li] = te({}), ci = J(() => {
23250
23250
  }), di = J(Rt);
@@ -23269,24 +23269,24 @@ const { RangePicker: ny } = ol, ry = ({ host: e, onChange: t }) => {
23269
23269
  const Ee = {};
23270
23270
  e.forEach((be) => {
23271
23271
  if (be.type === "multi-variable" && be.key) {
23272
- const Ue = v[be.key];
23273
- if (Array.isArray(Ue) && Ue.length > 0) {
23272
+ const qe = v[be.key];
23273
+ if (Array.isArray(qe) && qe.length > 0) {
23274
23274
  const $n = be.maxCount ?? 9;
23275
- Ee[be.key] = Math.min(Ue.length, $n);
23275
+ Ee[be.key] = Math.min(qe.length, $n);
23276
23276
  }
23277
23277
  }
23278
23278
  }), Object.keys(Ee).length > 0 && en((be) => ({ ...be, ...Ee }));
23279
23279
  }, [v, e]);
23280
23280
  const Ne = Jl({
23281
23281
  config: e,
23282
- reportAnalyzeState: $e,
23282
+ reportAnalyzeState: Ue,
23283
23283
  markdownAnalyzeState: Qe,
23284
23284
  markdownNameAnalyzeState: Rt
23285
23285
  }), { handleReportUrlBlur: zu, handleMarkdownBlur: Vu, handleMarkdownNameBlur: Gu } = Xl({
23286
23286
  reportAnalyze: g,
23287
23287
  markdownAnalyze: y,
23288
23288
  markdownNameAnalyze: T,
23289
- reportAnalyzeState: $e,
23289
+ reportAnalyzeState: Ue,
23290
23290
  setReportAnalyzeState: rt,
23291
23291
  markdownAnalyzeState: Qe,
23292
23292
  setMarkdownAnalyzeState: ft,
@@ -23296,7 +23296,7 @@ const { RangePicker: ny } = ol, ry = ({ host: e, onChange: t }) => {
23296
23296
  reportAnalyzeRef: Ke,
23297
23297
  markdownAnalyzeRef: Me,
23298
23298
  markdownNameAnalyzeRef: ci,
23299
- markdownAnalyzeStateRef: Ge,
23299
+ markdownAnalyzeStateRef: Ye,
23300
23300
  markdownNameAnalyzeStateRef: di
23301
23301
  });
23302
23302
  $l(F, zu, [Ne]), Ul(F, Gu, [Ne]), ql(F, Vu, [Ne]), Hl(F, [Ne]), Hb(F, Ne, P, i, Bt, Jt, void 0, h, void 0, v);
@@ -23305,26 +23305,26 @@ const { RangePicker: ny } = ol, ry = ({ host: e, onChange: t }) => {
23305
23305
  if (!v || !Ne || Ne.length === 0) return;
23306
23306
  const Ee = Ne.filter((Te) => Te.type === "upload" && Te.key);
23307
23307
  if (Ee.length === 0) return;
23308
- const be = {}, Ue = (Te, Ae) => {
23308
+ const be = {}, qe = (Te, Ae) => {
23309
23309
  Ae && (Ae instanceof File ? be[Te] = Ae : typeof Ae == "string" && Ae.trim() && (be[Te] = Ae.trim()));
23310
23310
  };
23311
23311
  for (const Te of Ee) {
23312
23312
  const Ae = Te.key;
23313
23313
  if (Lr.current.has(Ae)) continue;
23314
- const ke = v[Ae], Je = typeof Te.maxCount == "number" && Te.maxCount > 1;
23314
+ const ke = v[Ae], tt = typeof Te.maxCount == "number" && Te.maxCount > 1;
23315
23315
  if (Array.isArray(ke) && ke.length > 0) {
23316
- Je ? ke.forEach((Pe, Ye) => Ue(`${Ae}-${Ye}`, Pe)) : Ue(Ae, ke[0]);
23316
+ tt ? ke.forEach((Pe, He) => qe(`${Ae}-${He}`, Pe)) : qe(Ae, ke[0]);
23317
23317
  continue;
23318
23318
  }
23319
23319
  if (ke && !Array.isArray(ke)) {
23320
- Ue(Ae, ke);
23320
+ qe(Ae, ke);
23321
23321
  continue;
23322
23322
  }
23323
- if (Je)
23323
+ if (tt)
23324
23324
  for (let Pe = 0; Pe < Te.maxCount; Pe++) {
23325
- const Ye = `${Ae}-${Pe}`, Un = v[Ye];
23325
+ const He = `${Ae}-${Pe}`, Un = v[He];
23326
23326
  if (!Un) break;
23327
- Ue(Ye, Un);
23327
+ qe(He, Un);
23328
23328
  }
23329
23329
  }
23330
23330
  if (Object.keys(be).length === 0) return;
@@ -23333,8 +23333,8 @@ const { RangePicker: ny } = ol, ry = ({ host: e, onChange: t }) => {
23333
23333
  H((Te) => {
23334
23334
  const Ae = { ...Te };
23335
23335
  let ke = !1;
23336
- for (const [Je, Pe] of Object.entries(be))
23337
- Te[Je] || (Ae[Je] = Pe, ke = !0);
23336
+ for (const [tt, Pe] of Object.entries(be))
23337
+ Te[tt] || (Ae[tt] = Pe, ke = !0);
23338
23338
  return ke ? Ae : Te;
23339
23339
  });
23340
23340
  const $n = Object.entries(be).filter(
@@ -23342,19 +23342,17 @@ const { RangePicker: ny } = ol, ry = ({ host: e, onChange: t }) => {
23342
23342
  );
23343
23343
  if ($n.length === 0) return;
23344
23344
  const tl = async (Te) => {
23345
- const Ae = Te.split("/").pop()?.split("?")[0] || "file", ke = decodeURIComponent(Ae), Je = async (Pe) => {
23346
- const Ye = await Pe.blob();
23347
- return new File([Ye], ke, { type: Ye.type || "application/octet-stream" });
23345
+ const Ae = Te.split("/").pop()?.split("?")[0] || "file", ke = decodeURIComponent(Ae), tt = async (Pe) => {
23346
+ const He = await Pe.blob();
23347
+ return new File([He], ke, { type: He.type || "application/octet-stream" });
23348
23348
  };
23349
23349
  try {
23350
- const Pe = `/api/image-proxy?url=${encodeURIComponent(Te)}`, Ye = await fetch(Pe);
23351
- if (Ye.ok) return Je(Ye);
23352
- } catch {
23353
- }
23354
- try {
23355
- const Pe = await fetch(Te);
23356
- if (Pe.ok) return Je(Pe);
23357
- } catch {
23350
+ const Pe = `/api/image-proxy?url=${encodeURIComponent(Te)}`;
23351
+ console.log("[upload-backfill] 尝试代理 fetch:", Pe);
23352
+ const He = await fetch(Pe);
23353
+ if (console.log("[upload-backfill] 代理响应:", He.status, He.statusText), He.ok) return tt(He);
23354
+ } catch (Pe) {
23355
+ console.warn("[upload-backfill] 代理 fetch 失败:", Pe);
23358
23356
  }
23359
23357
  return null;
23360
23358
  };
@@ -23370,11 +23368,11 @@ const { RangePicker: ny } = ol, ry = ({ host: e, onChange: t }) => {
23370
23368
  for (const ke of Te)
23371
23369
  ke && (Ae[ke.key] = ke.file);
23372
23370
  Object.keys(Ae).length > 0 && H((ke) => {
23373
- const Je = { ...ke };
23371
+ const tt = { ...ke };
23374
23372
  let Pe = !1;
23375
- for (const [Ye, Un] of Object.entries(Ae))
23376
- typeof Je[Ye] == "string" && (Je[Ye] = Un, Pe = !0);
23377
- return Pe ? Je : ke;
23373
+ for (const [He, Un] of Object.entries(Ae))
23374
+ typeof tt[He] == "string" && (tt[He] = Un, Pe = !0);
23375
+ return Pe ? tt : ke;
23378
23376
  });
23379
23377
  }), () => {
23380
23378
  gi = !0;
@@ -23384,8 +23382,8 @@ const { RangePicker: ny } = ol, ry = ({ host: e, onChange: t }) => {
23384
23382
  ne(() => {
23385
23383
  if (!F.current) return;
23386
23384
  F.current.querySelectorAll(".rte-richtext-toggle").forEach((be) => {
23387
- const Ue = be.getAttribute("data-expanded") === "true";
23388
- be.innerHTML = Ue ? '<i class="iconfont icon-shouqi1"></i><span class="rte-richtext-toggle-label">收起</span>' : '<i class="iconfont icon-zhankai2"></i><span class="rte-richtext-toggle-label">展开</span>';
23385
+ const qe = be.getAttribute("data-expanded") === "true";
23386
+ be.innerHTML = qe ? '<i class="iconfont icon-shouqi1"></i><span class="rte-richtext-toggle-label">收起</span>' : '<i class="iconfont icon-zhankai2"></i><span class="rte-richtext-toggle-label">展开</span>';
23389
23387
  });
23390
23388
  }, [Ne, F]);
23391
23389
  const mi = ay(F), { measureExpandedContentHeight: tn } = Kl({
@@ -23473,7 +23471,7 @@ const { RangePicker: ny } = ol, ry = ({ host: e, onChange: t }) => {
23473
23471
  markdownAnalyzeRef: Me,
23474
23472
  reportAnalyzeRef: Ke,
23475
23473
  markdownNameAnalyzeRef: ci,
23476
- markdownAnalyzeStateRef: Ge,
23474
+ markdownAnalyzeStateRef: Ye,
23477
23475
  markdownRawTextRef: Et,
23478
23476
  setMarkdownAnalyzeState: ft
23479
23477
  });
@@ -23610,9 +23608,9 @@ const { RangePicker: ny } = ol, ry = ({ host: e, onChange: t }) => {
23610
23608
  ] }) }),
23611
23609
  /* @__PURE__ */ de("div", { style: { display: "flex", alignItems: "center", gap: "8px" }, children: [
23612
23610
  (() => {
23613
- const Ee = e.find((Ue) => Ue.type === "tag");
23611
+ const Ee = e.find((qe) => qe.type === "tag");
23614
23612
  if (!Ee || !Ee.text) return null;
23615
- const be = s.find((Ue) => Ue.label === Ee.text);
23613
+ const be = s.find((qe) => qe.label === Ee.text);
23616
23614
  return !be || be.points === void 0 || be.points === null ? null : /* @__PURE__ */ de("div", { className: "rte-points-badge", style: { position: "relative" }, children: [
23617
23615
  /* @__PURE__ */ G("i", { className: "iconfont icon-jifen", style: { marginRight: "4px", fontSize: "16px" } }),
23618
23616
  /* @__PURE__ */ de("span", { style: { fontSize: "16px", lineHeight: "22px" }, children: [