bi-components-library 1.2.18 → 1.2.19

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 z, jsxs as pe, Fragment as Za } from "react/jsx-runtime";
2
- import Se, { useState as ae, useRef as Z, useMemo as Nt, useCallback as le, useEffect as ie, useLayoutEffect as Xe, forwardRef as Co, createContext as Ao } from "react";
2
+ import ve, { useState as ae, useRef as Z, useMemo as Nt, useCallback as le, useEffect as ie, useLayoutEffect as Xe, forwardRef as Co, createContext as Ao } from "react";
3
3
  import { Button as Ft, Card as ei, Modal as Wl, Table as ti, Flex as ji, Spin as jl, Empty as Xl, Select as Un, Form as rr, Input as ni, Space as Kl, Cascader as Ql, Tooltip as Jl, Image as Er, DatePicker as Zl, message as ec, Dropdown as tc, Progress as nc, Pagination as rc, theme as ac } from "antd";
4
4
  import { createFromIconfontCN as ic, LeftOutlined as sc, SearchOutlined as oc, ReloadOutlined as uc, InfoCircleOutlined as lc, SendOutlined as cc, PauseCircleOutlined as dc, PlayCircleOutlined as fc } from "@ant-design/icons";
5
5
  import { createPortal as tn } from "react-dom";
@@ -732,7 +732,7 @@ Ac.__docgenInfo = {
732
732
  }
733
733
  };
734
734
  const Sc = ({ host: e, onChange: t }) => {
735
- const n = e.dataset.key, r = e.dataset.placeholder, a = e.dataset.options ? decodeURIComponent(e.dataset.options) : "[]", i = e.dataset.required === "true", s = e.dataset.value || "", o = Se.useMemo(() => {
735
+ const n = e.dataset.key, r = e.dataset.placeholder, a = e.dataset.options ? decodeURIComponent(e.dataset.options) : "[]", i = e.dataset.required === "true", s = e.dataset.value || "", o = ve.useMemo(() => {
736
736
  try {
737
737
  return JSON.parse(a);
738
738
  } catch {
@@ -744,13 +744,13 @@ const Sc = ({ host: e, onChange: t }) => {
744
744
  ie(() => {
745
745
  l(s || void 0);
746
746
  }, [s]);
747
- const T = Se.useCallback(() => {
747
+ const T = ve.useCallback(() => {
748
748
  if (u != null && u !== "") {
749
749
  const m = o.find((b) => String(b.value) === String(u));
750
750
  return m ? typeof m.label == "string" ? m.label : String(m.label ?? u) : String(u);
751
751
  }
752
752
  return r || "请选择";
753
- }, [u, o, r]), h = Se.useCallback(() => {
753
+ }, [u, o, r]), h = ve.useCallback(() => {
754
754
  const m = g.current;
755
755
  if (!m) return;
756
756
  const b = m.querySelector(".ant-select-selection-item"), E = m.querySelector(".ant-select-selection-placeholder"), y = b || E, _ = (y?.textContent || "").trim() || T(), w = m.querySelector(".ant-select-selector"), A = y || w || m, P = window.getComputedStyle(A), S = y ? P.fontSize : "16px", x = P.fontFamily || "sans-serif", v = P.fontWeight || "400", O = `${P.fontStyle || "normal"} ${v} ${S} ${x}`, k = document.createElement("canvas").getContext("2d"), C = k ? Math.ceil((k.font = O, k.measureText(_).width || 0)) : 0;
@@ -904,13 +904,13 @@ const Sc = ({ host: e, onChange: t }) => {
904
904
  ie(() => {
905
905
  l(s || void 0);
906
906
  }, [s]);
907
- const P = Se.useCallback(() => {
907
+ const P = ve.useCallback(() => {
908
908
  if (u != null && u !== "") {
909
909
  const x = b.find((v) => String(v.value) === String(u));
910
910
  return x ? typeof x.label == "string" ? x.label : String(x.label ?? u) : String(u);
911
911
  }
912
912
  return r || "请选择";
913
- }, [u, b, r]), S = Se.useCallback(() => {
913
+ }, [u, b, r]), S = ve.useCallback(() => {
914
914
  const x = m.current;
915
915
  if (!x) return;
916
916
  const v = x.querySelector(".ant-select-selection-item"), N = x.querySelector(".ant-select-selection-placeholder"), O = v || N, D = (O?.textContent || "").trim() || P(), k = x.querySelector(".ant-select-selector"), C = O || k || x, B = window.getComputedStyle(C), $ = O ? B.fontSize : "16px", H = B.fontFamily || "sans-serif", V = B.fontWeight || "400", Y = `${B.fontStyle || "normal"} ${V} ${$} ${H}`, R = document.createElement("canvas").getContext("2d"), X = R ? Math.ceil((R.font = Y, R.measureText(D).width || 0)) : 0;
@@ -1035,13 +1035,13 @@ const Sc = ({ host: e, onChange: t }) => {
1035
1035
  return i.observe(r, { childList: !0, subtree: !0 }), () => i.disconnect();
1036
1036
  }, [e]), t;
1037
1037
  }, Nc = ({ host: e, onChange: t }) => {
1038
- const n = e.dataset.key, r = e.dataset.placeholder, a = e.dataset.options ? decodeURIComponent(e.dataset.options) : "[]", i = e.dataset.value || "", s = Se.useMemo(() => {
1038
+ const n = e.dataset.key, r = e.dataset.placeholder, a = e.dataset.options ? decodeURIComponent(e.dataset.options) : "[]", i = e.dataset.value || "", s = ve.useMemo(() => {
1039
1039
  try {
1040
1040
  return JSON.parse(a);
1041
1041
  } catch {
1042
1042
  return [];
1043
1043
  }
1044
- }, [a]), o = Se.useCallback((A) => A ? A.split("-") : [], []), [u, l] = ae(() => o(i)), [c, f] = ae(100), [g, p] = ae(0), T = Z(o(i)), h = Z(null), m = u.length >= 2, b = (A) => {
1044
+ }, [a]), o = ve.useCallback((A) => A ? A.split("-") : [], []), [u, l] = ae(() => o(i)), [c, f] = ae(100), [g, p] = ae(0), T = Z(o(i)), h = Z(null), m = u.length >= 2, b = (A) => {
1045
1045
  l(A), T.current = A;
1046
1046
  const P = A.join("-");
1047
1047
  e.setAttribute("data-value", P), t(n, P);
@@ -1057,7 +1057,7 @@ const Sc = ({ host: e, onChange: t }) => {
1057
1057
  ie(() => {
1058
1058
  l(o(i));
1059
1059
  }, [i, o]);
1060
- const _ = Se.useCallback(() => u.length >= 2 ? u.join("-") : r || "请选择省市区", [u, r]), w = Se.useCallback(() => {
1060
+ const _ = ve.useCallback(() => u.length >= 2 ? u.join("-") : r || "请选择省市区", [u, r]), w = ve.useCallback(() => {
1061
1061
  const A = h.current;
1062
1062
  if (!A) return;
1063
1063
  const P = _(), S = A.querySelector(".ant-select-selector"), x = A.querySelector(".ant-select-selection-item") || A.querySelector(".ant-select-selection-placeholder"), v = x || S || A, N = window.getComputedStyle(v), O = x ? N.fontSize : "16px", D = N.fontFamily || "sans-serif", k = N.fontWeight || "400", B = `${N.fontStyle || "normal"} ${k} ${O} ${D}`, H = document.createElement("canvas").getContext("2d"), V = H ? Math.ceil((H.font = B, H.measureText(P).width || 0)) : 0;
@@ -1220,7 +1220,7 @@ const Dc = ({ host: e, onChange: t }) => {
1220
1220
  }, [o]), ie(() => {
1221
1221
  e.classList.toggle("rte-variable-multiline", m);
1222
1222
  }, [e, m]);
1223
- const b = Se.useCallback(() => {
1223
+ const b = ve.useCallback(() => {
1224
1224
  const _ = p.current;
1225
1225
  if (!_) return;
1226
1226
  const w = _.querySelector("textarea");
@@ -4848,7 +4848,7 @@ function Pa(e, t, n) {
4848
4848
  const r = Ve();
4849
4849
  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"));
4850
4850
  }
4851
- function Be(e) {
4851
+ function He(e) {
4852
4852
  return (Array.isArray(e) ? e : [e]).filter((t) => !!t);
4853
4853
  }
4854
4854
  function Dn(e, t = "") {
@@ -7124,7 +7124,7 @@ function $o(e) {
7124
7124
  }
7125
7125
  function Uo(e) {
7126
7126
  const t = [];
7127
- return Se.Children.toArray(e).forEach((n) => {
7127
+ return ve.Children.toArray(e).forEach((n) => {
7128
7128
  $o(n) ? t.push(n) : n.props && n.props.children && Uo(n.props.children).forEach((r) => t.push(r));
7129
7129
  }), t;
7130
7130
  }
@@ -7135,7 +7135,7 @@ function Mf(e) {
7135
7135
  "wrapper-start": [],
7136
7136
  "wrapper-end": []
7137
7137
  };
7138
- return Se.Children.toArray(e).forEach((r) => {
7138
+ return ve.Children.toArray(e).forEach((r) => {
7139
7139
  if ($o(r))
7140
7140
  t.push(r);
7141
7141
  else if (r.props && r.props.slot && n[r.props.slot])
@@ -7165,7 +7165,7 @@ function Rf(e, t, n) {
7165
7165
  } = n, o = e.params.loop ? -t.length : 0, u = e.params.loop ? t.length * 2 : t.length, l = [];
7166
7166
  for (let c = o; c < u; c += 1)
7167
7167
  c >= i && c <= s && l.push(t[r(c)]);
7168
- return l.map((c, f) => /* @__PURE__ */ Se.cloneElement(c, {
7168
+ return l.map((c, f) => /* @__PURE__ */ ve.cloneElement(c, {
7169
7169
  swiper: e,
7170
7170
  style: a,
7171
7171
  key: c.props.virtualIndex || c.key || `slide-${f}`
@@ -7260,28 +7260,28 @@ const ts = /* @__PURE__ */ Ao(null), Bf = /* @__PURE__ */ Ao(null), qo = /* @__P
7260
7260
  Pf(m.current);
7261
7261
  }, [c]);
7262
7262
  function $() {
7263
- return P.virtual ? Rf(m.current, N, c) : N.map((H, V) => /* @__PURE__ */ Se.cloneElement(H, {
7263
+ return P.virtual ? Rf(m.current, N, c) : N.map((H, V) => /* @__PURE__ */ ve.cloneElement(H, {
7264
7264
  swiper: m.current,
7265
7265
  swiperSlideIndex: V
7266
7266
  }));
7267
7267
  }
7268
- return /* @__PURE__ */ Se.createElement(t, Sr({
7268
+ return /* @__PURE__ */ ve.createElement(t, Sr({
7269
7269
  ref: h,
7270
7270
  className: Ho(`${u}${e ? ` ${e}` : ""}`)
7271
- }, x), /* @__PURE__ */ Se.createElement(Bf.Provider, {
7271
+ }, x), /* @__PURE__ */ ve.createElement(Bf.Provider, {
7272
7272
  value: m.current
7273
- }, O["container-start"], /* @__PURE__ */ Se.createElement(n, {
7273
+ }, O["container-start"], /* @__PURE__ */ ve.createElement(n, {
7274
7274
  className: kf(P.wrapperClass)
7275
- }, O["wrapper-start"], $(), O["wrapper-end"]), Ro(P) && /* @__PURE__ */ Se.createElement(Se.Fragment, null, /* @__PURE__ */ Se.createElement("div", {
7275
+ }, O["wrapper-start"], $(), O["wrapper-end"]), Ro(P) && /* @__PURE__ */ ve.createElement(ve.Fragment, null, /* @__PURE__ */ ve.createElement("div", {
7276
7276
  ref: _,
7277
7277
  className: "swiper-button-prev"
7278
- }), /* @__PURE__ */ Se.createElement("div", {
7278
+ }), /* @__PURE__ */ ve.createElement("div", {
7279
7279
  ref: y,
7280
7280
  className: "swiper-button-next"
7281
- })), Fo(P) && /* @__PURE__ */ Se.createElement("div", {
7281
+ })), Fo(P) && /* @__PURE__ */ ve.createElement("div", {
7282
7282
  ref: A,
7283
7283
  className: "swiper-scrollbar"
7284
- }), Bo(P) && /* @__PURE__ */ Se.createElement("div", {
7284
+ }), Bo(P) && /* @__PURE__ */ ve.createElement("div", {
7285
7285
  ref: w,
7286
7286
  className: "swiper-pagination"
7287
7287
  }), O["container-end"]));
@@ -7323,24 +7323,24 @@ const zo = /* @__PURE__ */ Co(({
7323
7323
  }, b = () => typeof t == "function" ? t(m) : t, E = () => {
7324
7324
  T(!0);
7325
7325
  };
7326
- return /* @__PURE__ */ Se.createElement(e, Sr({
7326
+ return /* @__PURE__ */ ve.createElement(e, Sr({
7327
7327
  ref: c,
7328
7328
  className: Ho(`${f}${n ? ` ${n}` : ""}`),
7329
7329
  "data-swiper-slide-index": s,
7330
7330
  onLoad: E
7331
- }, u), a && /* @__PURE__ */ Se.createElement(ts.Provider, {
7331
+ }, u), a && /* @__PURE__ */ ve.createElement(ts.Provider, {
7332
7332
  value: m
7333
- }, /* @__PURE__ */ Se.createElement("div", {
7333
+ }, /* @__PURE__ */ ve.createElement("div", {
7334
7334
  className: "swiper-zoom-container",
7335
7335
  "data-swiper-zoom": typeof a == "number" ? a : void 0
7336
- }, b(), i && !p && /* @__PURE__ */ Se.createElement("div", {
7336
+ }, b(), i && !p && /* @__PURE__ */ ve.createElement("div", {
7337
7337
  className: "swiper-lazy-preloader",
7338
7338
  ref: (y) => {
7339
7339
  y && (y.lazyPreloaderManaged = !0);
7340
7340
  }
7341
- }))), !a && /* @__PURE__ */ Se.createElement(ts.Provider, {
7341
+ }))), !a && /* @__PURE__ */ ve.createElement(ts.Provider, {
7342
7342
  value: m
7343
- }, b(), i && !p && /* @__PURE__ */ Se.createElement("div", {
7343
+ }, b(), i && !p && /* @__PURE__ */ ve.createElement("div", {
7344
7344
  className: "swiper-lazy-preloader",
7345
7345
  ref: (y) => {
7346
7346
  y && (y.lazyPreloaderManaged = !0);
@@ -7385,7 +7385,7 @@ function Ff({
7385
7385
  }
7386
7386
  function i(p, T) {
7387
7387
  const h = e.params.navigation;
7388
- p = Be(p), p.forEach((m) => {
7388
+ p = He(p), p.forEach((m) => {
7389
7389
  m && (m.classList[T ? "add" : "remove"](...h.disabledClass.split(" ")), m.tagName === "BUTTON" && (m.disabled = T), e.params.watchOverflow && e.enabled && m.classList[e.isLocked ? "add" : "remove"](h.lockClass));
7390
7390
  });
7391
7391
  }
@@ -7416,7 +7416,7 @@ function Ff({
7416
7416
  Object.assign(e.navigation, {
7417
7417
  nextEl: T,
7418
7418
  prevEl: h
7419
- }), T = Be(T), h = Be(h);
7419
+ }), T = He(T), h = He(h);
7420
7420
  const m = (b, E) => {
7421
7421
  if (b) {
7422
7422
  if (p.addIcons && b.matches(".swiper-button-next,.swiper-button-prev") && !b.querySelector("svg")) {
@@ -7434,7 +7434,7 @@ function Ff({
7434
7434
  nextEl: p,
7435
7435
  prevEl: T
7436
7436
  } = e.navigation;
7437
- p = Be(p), T = Be(T);
7437
+ p = He(p), T = He(T);
7438
7438
  const h = (m, b) => {
7439
7439
  m.removeEventListener("click", b === "next" ? u : o), m.classList.remove(...e.params.navigation.disabledClass.split(" "));
7440
7440
  };
@@ -7451,7 +7451,7 @@ function Ff({
7451
7451
  nextEl: p,
7452
7452
  prevEl: T
7453
7453
  } = e.navigation;
7454
- if (p = Be(p), T = Be(T), e.enabled) {
7454
+ if (p = He(p), T = He(T), e.enabled) {
7455
7455
  s();
7456
7456
  return;
7457
7457
  }
@@ -7461,7 +7461,7 @@ function Ff({
7461
7461
  nextEl: h,
7462
7462
  prevEl: m
7463
7463
  } = e.navigation;
7464
- h = Be(h), m = Be(m);
7464
+ h = He(h), m = He(m);
7465
7465
  const b = T.target;
7466
7466
  let E = m.includes(b) || h.includes(b);
7467
7467
  if (e.isElement && !E) {
@@ -7565,7 +7565,7 @@ function Hf({
7565
7565
  const b = e.rtl, E = e.params.pagination;
7566
7566
  if (o()) return;
7567
7567
  let y = e.pagination.el;
7568
- y = Be(y);
7568
+ y = He(y);
7569
7569
  let _, w;
7570
7570
  const A = e.virtual && e.params.virtual.enabled ? e.virtual.slides.length : e.slides.length, P = e.params.loop ? Math.ceil(A / e.params.slidesPerGroup) : e.snapGrid.length;
7571
7571
  if (e.params.loop ? (w = e.previousRealIndex || 0, _ = e.params.slidesPerGroup > 1 ? Math.floor(e.realIndex / e.params.slidesPerGroup) : e.realIndex) : typeof e.snapIndex < "u" ? (_ = e.snapIndex, w = e.previousSnapIndex) : (w = e.previousIndex || 0, _ = e.activeIndex || 0), E.type === "bullets" && e.pagination.bullets && e.pagination.bullets.length > 0) {
@@ -7621,7 +7621,7 @@ function Hf({
7621
7621
  if (o()) return;
7622
7622
  const E = e.virtual && e.params.virtual.enabled ? e.virtual.slides.length : e.grid && e.params.grid.rows > 1 ? e.slides.length / Math.ceil(e.params.grid.rows) : e.slides.length;
7623
7623
  let y = e.pagination.el;
7624
- y = Be(y);
7624
+ y = He(y);
7625
7625
  let _ = "";
7626
7626
  if (b.type === "bullets") {
7627
7627
  let w = e.params.loop ? Math.ceil(E / e.params.slidesPerGroup) : e.snapGrid.length;
@@ -7642,7 +7642,7 @@ function Hf({
7642
7642
  let E;
7643
7643
  typeof b.el == "string" && e.isElement && (E = e.el.querySelector(b.el)), !E && typeof b.el == "string" && (E = [...document.querySelectorAll(b.el)]), E || (E = b.el), !(!E || E.length === 0) && (e.params.uniqueNavElements && typeof b.el == "string" && Array.isArray(E) && E.length > 1 && (E = [...e.el.querySelectorAll(b.el)], E.length > 1 && (E = E.find((y) => ko(y, ".swiper")[0] === e.el))), Array.isArray(E) && E.length === 1 && (E = E[0]), Object.assign(e.pagination, {
7644
7644
  el: E
7645
- }), E = Be(E), E.forEach((y) => {
7645
+ }), E = He(E), E.forEach((y) => {
7646
7646
  b.type === "bullets" && b.clickable && y.classList.add(...(b.clickableClass || "").split(" ")), y.classList.add(b.modifierClass + b.type), y.classList.add(e.isHorizontal() ? b.horizontalClass : b.verticalClass), b.type === "bullets" && b.dynamicBullets && (y.classList.add(`${b.modifierClass}${b.type}-dynamic`), s = 0, b.dynamicMainBullets < 1 && (b.dynamicMainBullets = 1)), b.type === "progressbar" && b.progressbarOpposite && y.classList.add(b.progressbarOppositeClass), b.clickable && y.addEventListener("click", c), e.enabled || y.classList.add(b.lockClass);
7647
7647
  }));
7648
7648
  }
@@ -7650,7 +7650,7 @@ function Hf({
7650
7650
  const b = e.params.pagination;
7651
7651
  if (o()) return;
7652
7652
  let E = e.pagination.el;
7653
- E && (E = Be(E), E.forEach((y) => {
7653
+ E && (E = He(E), E.forEach((y) => {
7654
7654
  y.classList.remove(b.hiddenClass), y.classList.remove(b.modifierClass + b.type), y.classList.remove(e.isHorizontal() ? b.horizontalClass : b.verticalClass), b.clickable && (y.classList.remove(...(b.clickableClass || "").split(" ")), y.removeEventListener("click", c));
7655
7655
  })), e.pagination.bullets && e.pagination.bullets.forEach((y) => y.classList.remove(...b.bulletActiveClass.split(" ")));
7656
7656
  }
@@ -7660,7 +7660,7 @@ function Hf({
7660
7660
  let {
7661
7661
  el: E
7662
7662
  } = e.pagination;
7663
- E = Be(E), E.forEach((y) => {
7663
+ E = He(E), E.forEach((y) => {
7664
7664
  y.classList.remove(b.horizontalClass, b.verticalClass), y.classList.add(e.isHorizontal() ? b.horizontalClass : b.verticalClass);
7665
7665
  });
7666
7666
  }), n("init", () => {
@@ -7677,11 +7677,11 @@ function Hf({
7677
7677
  let {
7678
7678
  el: b
7679
7679
  } = e.pagination;
7680
- b && (b = Be(b), b.forEach((E) => E.classList[e.enabled ? "remove" : "add"](e.params.pagination.lockClass)));
7680
+ b && (b = He(b), b.forEach((E) => E.classList[e.enabled ? "remove" : "add"](e.params.pagination.lockClass)));
7681
7681
  }), n("lock unlock", () => {
7682
7682
  f();
7683
7683
  }), n("click", (b, E) => {
7684
- const y = E.target, _ = Be(e.pagination.el);
7684
+ const y = E.target, _ = He(e.pagination.el);
7685
7685
  if (e.params.pagination.el && e.params.pagination.hideOnClick && _ && _.length > 0 && !y.classList.contains(e.params.pagination.bulletClass)) {
7686
7686
  if (e.navigation && (e.navigation.nextEl && y === e.navigation.nextEl || e.navigation.prevEl && y === e.navigation.prevEl)) return;
7687
7687
  const w = _[0].classList.contains(e.params.pagination.hiddenClass);
@@ -7693,13 +7693,13 @@ function Hf({
7693
7693
  let {
7694
7694
  el: b
7695
7695
  } = e.pagination;
7696
- b && (b = Be(b), b.forEach((E) => E.classList.remove(e.params.pagination.paginationDisabledClass))), p(), g(), f();
7696
+ b && (b = He(b), b.forEach((E) => E.classList.remove(e.params.pagination.paginationDisabledClass))), p(), g(), f();
7697
7697
  }, m = () => {
7698
7698
  e.el.classList.add(e.params.pagination.paginationDisabledClass);
7699
7699
  let {
7700
7700
  el: b
7701
7701
  } = e.pagination;
7702
- b && (b = Be(b), b.forEach((E) => E.classList.add(e.params.pagination.paginationDisabledClass))), T();
7702
+ b && (b = He(b), b.forEach((E) => E.classList.add(e.params.pagination.paginationDisabledClass))), T();
7703
7703
  };
7704
7704
  Object.assign(e.pagination, {
7705
7705
  enable: h,
@@ -7790,19 +7790,19 @@ Ke.prototype.property = "";
7790
7790
  Ke.prototype.spaceSeparated = !1;
7791
7791
  Ke.prototype.space = void 0;
7792
7792
  let Gf = 0;
7793
- const he = zt(), Me = zt(), Ba = zt(), J = zt(), _e = zt(), Jt = zt(), Ze = zt();
7793
+ const he = zt(), Re = zt(), Ba = zt(), J = zt(), we = zt(), Jt = zt(), Ze = zt();
7794
7794
  function zt() {
7795
7795
  return 2 ** ++Gf;
7796
7796
  }
7797
7797
  const Fa = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
7798
7798
  __proto__: null,
7799
7799
  boolean: he,
7800
- booleanish: Me,
7800
+ booleanish: Re,
7801
7801
  commaOrSpaceSeparated: Ze,
7802
7802
  commaSeparated: Jt,
7803
7803
  number: J,
7804
7804
  overloadedBoolean: Ba,
7805
- spaceSeparated: _e
7805
+ spaceSeparated: we
7806
7806
  }, Symbol.toStringTag, { value: "Module" })), ia = (
7807
7807
  /** @type {ReadonlyArray<keyof typeof types>} */
7808
7808
  Object.keys(Fa)
@@ -7850,47 +7850,47 @@ function nn(e) {
7850
7850
  const Wo = nn({
7851
7851
  properties: {
7852
7852
  ariaActiveDescendant: null,
7853
- ariaAtomic: Me,
7853
+ ariaAtomic: Re,
7854
7854
  ariaAutoComplete: null,
7855
- ariaBusy: Me,
7856
- ariaChecked: Me,
7855
+ ariaBusy: Re,
7856
+ ariaChecked: Re,
7857
7857
  ariaColCount: J,
7858
7858
  ariaColIndex: J,
7859
7859
  ariaColSpan: J,
7860
- ariaControls: _e,
7860
+ ariaControls: we,
7861
7861
  ariaCurrent: null,
7862
- ariaDescribedBy: _e,
7862
+ ariaDescribedBy: we,
7863
7863
  ariaDetails: null,
7864
- ariaDisabled: Me,
7865
- ariaDropEffect: _e,
7864
+ ariaDisabled: Re,
7865
+ ariaDropEffect: we,
7866
7866
  ariaErrorMessage: null,
7867
- ariaExpanded: Me,
7868
- ariaFlowTo: _e,
7869
- ariaGrabbed: Me,
7867
+ ariaExpanded: Re,
7868
+ ariaFlowTo: we,
7869
+ ariaGrabbed: Re,
7870
7870
  ariaHasPopup: null,
7871
- ariaHidden: Me,
7871
+ ariaHidden: Re,
7872
7872
  ariaInvalid: null,
7873
7873
  ariaKeyShortcuts: null,
7874
7874
  ariaLabel: null,
7875
- ariaLabelledBy: _e,
7875
+ ariaLabelledBy: we,
7876
7876
  ariaLevel: J,
7877
7877
  ariaLive: null,
7878
- ariaModal: Me,
7879
- ariaMultiLine: Me,
7880
- ariaMultiSelectable: Me,
7878
+ ariaModal: Re,
7879
+ ariaMultiLine: Re,
7880
+ ariaMultiSelectable: Re,
7881
7881
  ariaOrientation: null,
7882
- ariaOwns: _e,
7882
+ ariaOwns: we,
7883
7883
  ariaPlaceholder: null,
7884
7884
  ariaPosInSet: J,
7885
- ariaPressed: Me,
7886
- ariaReadOnly: Me,
7885
+ ariaPressed: Re,
7886
+ ariaReadOnly: Re,
7887
7887
  ariaRelevant: null,
7888
- ariaRequired: Me,
7889
- ariaRoleDescription: _e,
7888
+ ariaRequired: Re,
7889
+ ariaRoleDescription: we,
7890
7890
  ariaRowCount: J,
7891
7891
  ariaRowIndex: J,
7892
7892
  ariaRowSpan: J,
7893
- ariaSelected: Me,
7893
+ ariaSelected: Re,
7894
7894
  ariaSetSize: J,
7895
7895
  ariaSort: null,
7896
7896
  ariaValueMax: J,
@@ -7921,8 +7921,8 @@ const Yf = nn({
7921
7921
  // Standard Properties.
7922
7922
  abbr: null,
7923
7923
  accept: Jt,
7924
- acceptCharset: _e,
7925
- accessKey: _e,
7924
+ acceptCharset: we,
7925
+ accessKey: we,
7926
7926
  action: null,
7927
7927
  allow: null,
7928
7928
  allowFullScreen: he,
@@ -7932,21 +7932,21 @@ const Yf = nn({
7932
7932
  as: null,
7933
7933
  async: he,
7934
7934
  autoCapitalize: null,
7935
- autoComplete: _e,
7935
+ autoComplete: we,
7936
7936
  autoFocus: he,
7937
7937
  autoPlay: he,
7938
- blocking: _e,
7938
+ blocking: we,
7939
7939
  capture: null,
7940
7940
  charSet: null,
7941
7941
  checked: he,
7942
7942
  cite: null,
7943
- className: _e,
7943
+ className: we,
7944
7944
  cols: J,
7945
7945
  colSpan: null,
7946
7946
  content: null,
7947
- contentEditable: Me,
7947
+ contentEditable: Re,
7948
7948
  controls: he,
7949
- controlsList: _e,
7949
+ controlsList: we,
7950
7950
  coords: J | Jt,
7951
7951
  crossOrigin: null,
7952
7952
  data: null,
@@ -7958,7 +7958,7 @@ const Yf = nn({
7958
7958
  dirName: null,
7959
7959
  disabled: he,
7960
7960
  download: Ba,
7961
- draggable: Me,
7961
+ draggable: Re,
7962
7962
  encType: null,
7963
7963
  enterKeyHint: null,
7964
7964
  fetchPriority: null,
@@ -7968,14 +7968,14 @@ const Yf = nn({
7968
7968
  formMethod: null,
7969
7969
  formNoValidate: he,
7970
7970
  formTarget: null,
7971
- headers: _e,
7971
+ headers: we,
7972
7972
  height: J,
7973
7973
  hidden: Ba,
7974
7974
  high: J,
7975
7975
  href: null,
7976
7976
  hrefLang: null,
7977
- htmlFor: _e,
7978
- httpEquiv: _e,
7977
+ htmlFor: we,
7978
+ httpEquiv: we,
7979
7979
  id: null,
7980
7980
  imageSizes: null,
7981
7981
  imageSrcSet: null,
@@ -7985,10 +7985,10 @@ const Yf = nn({
7985
7985
  is: null,
7986
7986
  isMap: he,
7987
7987
  itemId: null,
7988
- itemProp: _e,
7989
- itemRef: _e,
7988
+ itemProp: we,
7989
+ itemRef: we,
7990
7990
  itemScope: he,
7991
- itemType: _e,
7991
+ itemType: we,
7992
7992
  kind: null,
7993
7993
  label: null,
7994
7994
  lang: null,
@@ -8101,7 +8101,7 @@ const Yf = nn({
8101
8101
  open: he,
8102
8102
  optimum: J,
8103
8103
  pattern: null,
8104
- ping: _e,
8104
+ ping: we,
8105
8105
  placeholder: null,
8106
8106
  playsInline: he,
8107
8107
  popover: null,
@@ -8111,12 +8111,12 @@ const Yf = nn({
8111
8111
  preload: null,
8112
8112
  readOnly: he,
8113
8113
  referrerPolicy: null,
8114
- rel: _e,
8114
+ rel: we,
8115
8115
  required: he,
8116
8116
  reversed: he,
8117
8117
  rows: J,
8118
8118
  rowSpan: J,
8119
- sandbox: _e,
8119
+ sandbox: we,
8120
8120
  scope: null,
8121
8121
  scoped: he,
8122
8122
  seamless: he,
@@ -8129,7 +8129,7 @@ const Yf = nn({
8129
8129
  sizes: null,
8130
8130
  slot: null,
8131
8131
  span: J,
8132
- spellCheck: Me,
8132
+ spellCheck: Re,
8133
8133
  src: null,
8134
8134
  srcDoc: null,
8135
8135
  srcLang: null,
@@ -8144,7 +8144,7 @@ const Yf = nn({
8144
8144
  type: null,
8145
8145
  typeMustMatch: he,
8146
8146
  useMap: null,
8147
- value: Me,
8147
+ value: Re,
8148
8148
  width: J,
8149
8149
  wrap: null,
8150
8150
  writingSuggestions: null,
@@ -8154,7 +8154,7 @@ const Yf = nn({
8154
8154
  // Several. Use CSS `text-align` instead,
8155
8155
  aLink: null,
8156
8156
  // `<body>`. Use CSS `a:active {color}` instead
8157
- archive: _e,
8157
+ archive: we,
8158
8158
  // `<object>`. List of URIs to archives
8159
8159
  axis: null,
8160
8160
  // `<td>` and `<th>`. Use `scope` on `<th>`
@@ -8236,7 +8236,7 @@ const Yf = nn({
8236
8236
  // `<table>`
8237
8237
  scheme: null,
8238
8238
  // `<meta>`
8239
- scrolling: Me,
8239
+ scrolling: Re,
8240
8240
  // `<frame>`. Use overflow in the child context
8241
8241
  standby: null,
8242
8242
  // `<object>`
@@ -8469,7 +8469,7 @@ const Yf = nn({
8469
8469
  by: null,
8470
8470
  calcMode: null,
8471
8471
  capHeight: J,
8472
- className: _e,
8472
+ className: we,
8473
8473
  clip: null,
8474
8474
  clipPath: null,
8475
8475
  clipPathUnits: null,
@@ -8704,7 +8704,7 @@ const Yf = nn({
8704
8704
  patternTransform: null,
8705
8705
  patternUnits: null,
8706
8706
  phase: null,
8707
- ping: _e,
8707
+ ping: we,
8708
8708
  pitch: null,
8709
8709
  playbackOrder: null,
8710
8710
  pointerEvents: null,
@@ -9084,7 +9084,7 @@ function ps(e) {
9084
9084
  function hs(e) {
9085
9085
  return e && typeof e == "number" ? e : 1;
9086
9086
  }
9087
- class $e extends Error {
9087
+ class Ue extends Error {
9088
9088
  /**
9089
9089
  * Create a message for `reason`.
9090
9090
  *
@@ -9158,19 +9158,19 @@ class $e extends Error {
9158
9158
  this.ancestors = i.ancestors || void 0, this.cause = i.cause || void 0, this.column = o ? o.column : void 0, this.fatal = void 0, this.file = "", this.message = a, this.line = o ? o.line : void 0, this.name = vn(i.place) || "1:1", this.place = i.place || void 0, this.reason = this.message, this.ruleId = i.ruleId || void 0, this.source = i.source || void 0, this.stack = s && i.cause && typeof i.cause.stack == "string" ? i.cause.stack : "", this.actual = void 0, this.expected = void 0, this.note = void 0, this.url = void 0;
9159
9159
  }
9160
9160
  }
9161
- $e.prototype.file = "";
9162
- $e.prototype.name = "";
9163
- $e.prototype.reason = "";
9164
- $e.prototype.message = "";
9165
- $e.prototype.stack = "";
9166
- $e.prototype.column = void 0;
9167
- $e.prototype.line = void 0;
9168
- $e.prototype.ancestors = void 0;
9169
- $e.prototype.cause = void 0;
9170
- $e.prototype.fatal = void 0;
9171
- $e.prototype.place = void 0;
9172
- $e.prototype.ruleId = void 0;
9173
- $e.prototype.source = void 0;
9161
+ Ue.prototype.file = "";
9162
+ Ue.prototype.name = "";
9163
+ Ue.prototype.reason = "";
9164
+ Ue.prototype.message = "";
9165
+ Ue.prototype.stack = "";
9166
+ Ue.prototype.column = void 0;
9167
+ Ue.prototype.line = void 0;
9168
+ Ue.prototype.ancestors = void 0;
9169
+ Ue.prototype.cause = void 0;
9170
+ Ue.prototype.fatal = void 0;
9171
+ Ue.prototype.place = void 0;
9172
+ Ue.prototype.ruleId = void 0;
9173
+ Ue.prototype.source = void 0;
9174
9174
  const li = {}.hasOwnProperty, ip = /* @__PURE__ */ new Map(), sp = /[A-Z]/g, op = /* @__PURE__ */ new Set(["table", "tbody", "thead", "tfoot", "tr"]), up = /* @__PURE__ */ new Set(["td", "th"]), nu = "https://github.com/syntax-tree/hast-util-to-jsx-runtime";
9175
9175
  function lp(e, t) {
9176
9176
  if (!t || t.Fragment === void 0)
@@ -9393,7 +9393,7 @@ function xp(e, t) {
9393
9393
  const r = (
9394
9394
  /** @type {Error} */
9395
9395
  n
9396
- ), a = new $e("Cannot parse `style` attribute", {
9396
+ ), a = new Ue("Cannot parse `style` attribute", {
9397
9397
  ancestors: e.ancestors,
9398
9398
  cause: r,
9399
9399
  ruleId: "style",
@@ -9434,7 +9434,7 @@ function iu(e, t, n) {
9434
9434
  Mn(e);
9435
9435
  }
9436
9436
  function Mn(e, t) {
9437
- const n = new $e(
9437
+ const n = new Ue(
9438
9438
  "Cannot handle MDX estrees without `createEvaluater`",
9439
9439
  {
9440
9440
  ancestors: e.ancestors,
@@ -9586,7 +9586,7 @@ const Ua = It(/\d/), Op = It(/[\dA-Fa-f]/), Dp = It(/[!-/:-@[-`{-~]/);
9586
9586
  function oe(e) {
9587
9587
  return e !== null && e < -2;
9588
9588
  }
9589
- function Oe(e) {
9589
+ function De(e) {
9590
9590
  return e !== null && (e < 0 || e === 32);
9591
9591
  }
9592
9592
  function ye(e) {
@@ -9782,7 +9782,7 @@ function Fp(e, t, n) {
9782
9782
  return Te(e, e.attempt(this.parser.constructs.document, t, n), "linePrefix", this.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4);
9783
9783
  }
9784
9784
  function ys(e) {
9785
- if (e === null || Oe(e) || Fn(e))
9785
+ if (e === null || De(e) || Fn(e))
9786
9786
  return 1;
9787
9787
  if (Bn(e))
9788
9788
  return 2;
@@ -10454,7 +10454,7 @@ function fu(e, t, n, r, a, i, s, o, u) {
10454
10454
  return b === 60 || b === 62 || b === 92 ? (e.consume(b), p) : p(b);
10455
10455
  }
10456
10456
  function h(b) {
10457
- return !c && (b === null || b === 41 || Oe(b)) ? (e.exit("chunkString"), e.exit(o), e.exit(s), e.exit(r), t(b)) : c < l && b === 40 ? (e.consume(b), c++, h) : b === 41 ? (e.consume(b), c--, h) : b === null || b === 32 || b === 40 || $a(b) ? n(b) : (e.consume(b), b === 92 ? m : h);
10457
+ return !c && (b === null || b === 41 || De(b)) ? (e.exit("chunkString"), e.exit(o), e.exit(s), e.exit(r), t(b)) : c < l && b === 40 ? (e.consume(b), c++, h) : b === 41 ? (e.consume(b), c--, h) : b === null || b === 32 || b === 40 || $a(b) ? n(b) : (e.consume(b), b === 92 ? m : h);
10458
10458
  }
10459
10459
  function m(b) {
10460
10460
  return b === 40 || b === 41 || b === 92 ? (e.consume(b), h) : h(b);
@@ -10542,7 +10542,7 @@ function ph(e, t, n) {
10542
10542
  return a = Zt(r.sliceSerialize(r.events[r.events.length - 1][1]).slice(1, -1)), p === 58 ? (e.enter("definitionMarker"), e.consume(p), e.exit("definitionMarker"), u) : n(p);
10543
10543
  }
10544
10544
  function u(p) {
10545
- return Oe(p) ? yt(e, l)(p) : l(p);
10545
+ return De(p) ? yt(e, l)(p) : l(p);
10546
10546
  }
10547
10547
  function l(p) {
10548
10548
  return fu(
@@ -10570,7 +10570,7 @@ function ph(e, t, n) {
10570
10570
  function hh(e, t, n) {
10571
10571
  return r;
10572
10572
  function r(o) {
10573
- return Oe(o) ? yt(e, a)(o) : n(o);
10573
+ return De(o) ? yt(e, a)(o) : n(o);
10574
10574
  }
10575
10575
  function a(o) {
10576
10576
  return hu(e, i, n, "definitionTitle", "definitionTitleMarker", "definitionTitleString")(o);
@@ -10623,7 +10623,7 @@ function yh(e, t, n) {
10623
10623
  return e.enter("atxHeadingSequence"), s(c);
10624
10624
  }
10625
10625
  function s(c) {
10626
- return c === 35 && r++ < 6 ? (e.consume(c), s) : c === null || Oe(c) ? (e.exit("atxHeadingSequence"), o(c)) : n(c);
10626
+ return c === 35 && r++ < 6 ? (e.consume(c), s) : c === null || De(c) ? (e.exit("atxHeadingSequence"), o(c)) : n(c);
10627
10627
  }
10628
10628
  function o(c) {
10629
10629
  return c === 35 ? (e.enter("atxHeadingSequence"), u(c)) : c === null || oe(c) ? (e.exit("atxHeading"), t(c)) : ye(c) ? Te(e, o, "whitespace")(c) : (e.enter("atxHeadingText"), l(c));
@@ -10632,7 +10632,7 @@ function yh(e, t, n) {
10632
10632
  return c === 35 ? (e.consume(c), u) : (e.exit("atxHeadingSequence"), o(c));
10633
10633
  }
10634
10634
  function l(c) {
10635
- return c === null || c === 35 || Oe(c) ? (e.exit("atxHeadingText"), o(c)) : (e.consume(c), l);
10635
+ return c === null || c === 35 || De(c) ? (e.exit("atxHeadingText"), o(c)) : (e.consume(c), l);
10636
10636
  }
10637
10637
  }
10638
10638
  const Th = [
@@ -10743,7 +10743,7 @@ function vh(e, t, n) {
10743
10743
  return pt(R) ? (e.consume(R), s = String.fromCharCode(R), m) : n(R);
10744
10744
  }
10745
10745
  function m(R) {
10746
- if (R === null || R === 47 || R === 62 || Oe(R)) {
10746
+ if (R === null || R === 47 || R === 62 || De(R)) {
10747
10747
  const X = R === 47, se = s.toLowerCase();
10748
10748
  return !X && !i && As.includes(se) ? (a = 1, r.interrupt ? t(R) : O(R)) : Th.includes(s.toLowerCase()) ? (a = 6, X ? (e.consume(R), b) : r.interrupt ? t(R) : O(R)) : (a = 7, r.interrupt && !r.parser.lazy[r.now().line] ? n(R) : i ? E(R) : y(R));
10749
10749
  }
@@ -10771,7 +10771,7 @@ function vh(e, t, n) {
10771
10771
  return R === u ? (e.consume(R), u = null, x) : R === null || oe(R) ? n(R) : (e.consume(R), P);
10772
10772
  }
10773
10773
  function S(R) {
10774
- return R === null || R === 34 || R === 39 || R === 47 || R === 60 || R === 61 || R === 62 || R === 96 || Oe(R) ? w(R) : (e.consume(R), S);
10774
+ return R === null || R === 34 || R === 39 || R === 47 || R === 60 || R === 61 || R === 62 || R === 96 || De(R) ? w(R) : (e.consume(R), S);
10775
10775
  }
10776
10776
  function x(R) {
10777
10777
  return R === 47 || R === 62 || ye(R) ? y(R) : n(R);
@@ -10897,7 +10897,7 @@ function kh(e, t, n) {
10897
10897
  return oe(I) ? (s = P, $(I)) : ye(I) ? (e.consume(I), P) : B(I);
10898
10898
  }
10899
10899
  function S(I) {
10900
- return I === 45 || tt(I) ? (e.consume(I), S) : I === 47 || I === 62 || Oe(I) ? x(I) : n(I);
10900
+ return I === 45 || tt(I) ? (e.consume(I), S) : I === 47 || I === 62 || De(I) ? x(I) : n(I);
10901
10901
  }
10902
10902
  function x(I) {
10903
10903
  return I === 47 ? (e.consume(I), B) : I === 58 || I === 95 || pt(I) ? (e.consume(I), v) : oe(I) ? (s = x, $(I)) : ye(I) ? (e.consume(I), x) : B(I);
@@ -10915,10 +10915,10 @@ function kh(e, t, n) {
10915
10915
  return I === a ? (e.consume(I), a = void 0, C) : I === null ? n(I) : oe(I) ? (s = D, $(I)) : (e.consume(I), D);
10916
10916
  }
10917
10917
  function k(I) {
10918
- return I === null || I === 34 || I === 39 || I === 60 || I === 61 || I === 96 ? n(I) : I === 47 || I === 62 || Oe(I) ? x(I) : (e.consume(I), k);
10918
+ return I === null || I === 34 || I === 39 || I === 60 || I === 61 || I === 96 ? n(I) : I === 47 || I === 62 || De(I) ? x(I) : (e.consume(I), k);
10919
10919
  }
10920
10920
  function C(I) {
10921
- return I === 47 || I === 62 || Oe(I) ? x(I) : n(I);
10921
+ return I === 47 || I === 62 || De(I) ? x(I) : n(I);
10922
10922
  }
10923
10923
  function B(I) {
10924
10924
  return I === 62 ? (e.consume(I), e.exit("htmlTextData"), e.exit("htmlText"), t) : n(I);
@@ -11031,13 +11031,13 @@ function Rh(e, t, n) {
11031
11031
  return e.enter("resource"), e.enter("resourceMarker"), e.consume(f), e.exit("resourceMarker"), a;
11032
11032
  }
11033
11033
  function a(f) {
11034
- return Oe(f) ? yt(e, i)(f) : i(f);
11034
+ return De(f) ? yt(e, i)(f) : i(f);
11035
11035
  }
11036
11036
  function i(f) {
11037
11037
  return f === 41 ? c(f) : fu(e, s, o, "resourceDestination", "resourceDestinationLiteral", "resourceDestinationLiteralMarker", "resourceDestinationRaw", "resourceDestinationString", 32)(f);
11038
11038
  }
11039
11039
  function s(f) {
11040
- return Oe(f) ? yt(e, u)(f) : c(f);
11040
+ return De(f) ? yt(e, u)(f) : c(f);
11041
11041
  }
11042
11042
  function o(f) {
11043
11043
  return n(f);
@@ -11046,7 +11046,7 @@ function Rh(e, t, n) {
11046
11046
  return f === 34 || f === 39 || f === 40 ? hu(e, l, n, "resourceTitle", "resourceTitleMarker", "resourceTitleString")(f) : c(f);
11047
11047
  }
11048
11048
  function l(f) {
11049
- return Oe(f) ? yt(e, c)(f) : c(f);
11049
+ return De(f) ? yt(e, c)(f) : c(f);
11050
11050
  }
11051
11051
  function c(f) {
11052
11052
  return f === 41 ? (e.enter("resourceMarker"), e.consume(f), e.exit("resourceMarker"), e.exit("resource"), t) : n(f);
@@ -11904,16 +11904,16 @@ function _m(e) {
11904
11904
  function a(W, te, fe) {
11905
11905
  let me = te - 1, xe = -1, Qe = !1, Je, st, Lt, Ot;
11906
11906
  for (; ++me <= fe; ) {
11907
- const qe = W[me];
11908
- switch (qe[1].type) {
11907
+ const ze = W[me];
11908
+ switch (ze[1].type) {
11909
11909
  case "listUnordered":
11910
11910
  case "listOrdered":
11911
11911
  case "blockQuote": {
11912
- qe[0] === "enter" ? xe++ : xe--, Ot = void 0;
11912
+ ze[0] === "enter" ? xe++ : xe--, Ot = void 0;
11913
11913
  break;
11914
11914
  }
11915
11915
  case "lineEndingBlank": {
11916
- qe[0] === "enter" && (Je && !Ot && !xe && !Lt && (Lt = me), Ot = void 0);
11916
+ ze[0] === "enter" && (Je && !Ot && !xe && !Lt && (Lt = me), Ot = void 0);
11917
11917
  break;
11918
11918
  }
11919
11919
  case "linePrefix":
@@ -11925,7 +11925,7 @@ function _m(e) {
11925
11925
  default:
11926
11926
  Ot = void 0;
11927
11927
  }
11928
- if (!xe && qe[0] === "enter" && qe[1].type === "listItemPrefix" || xe === -1 && qe[0] === "exit" && (qe[1].type === "listUnordered" || qe[1].type === "listOrdered")) {
11928
+ if (!xe && ze[0] === "enter" && ze[1].type === "listItemPrefix" || xe === -1 && ze[0] === "exit" && (ze[1].type === "listUnordered" || ze[1].type === "listOrdered")) {
11929
11929
  if (Je) {
11930
11930
  let lt = me;
11931
11931
  for (st = void 0; lt--; ) {
@@ -11935,17 +11935,17 @@ function _m(e) {
11935
11935
  st && (W[st][1].type = "lineEndingBlank", Qe = !0), ot[1].type = "lineEnding", st = lt;
11936
11936
  } else if (!(ot[1].type === "linePrefix" || ot[1].type === "blockQuotePrefix" || ot[1].type === "blockQuotePrefixWhitespace" || ot[1].type === "blockQuoteMarker" || ot[1].type === "listItemIndent")) break;
11937
11937
  }
11938
- Lt && (!st || Lt < st) && (Je._spread = !0), Je.end = Object.assign({}, st ? W[st][1].start : qe[1].end), W.splice(st || me, 0, ["exit", Je, qe[2]]), me++, fe++;
11938
+ Lt && (!st || Lt < st) && (Je._spread = !0), Je.end = Object.assign({}, st ? W[st][1].start : ze[1].end), W.splice(st || me, 0, ["exit", Je, ze[2]]), me++, fe++;
11939
11939
  }
11940
- if (qe[1].type === "listItemPrefix") {
11940
+ if (ze[1].type === "listItemPrefix") {
11941
11941
  const lt = {
11942
11942
  type: "listItem",
11943
11943
  _spread: !1,
11944
- start: Object.assign({}, qe[1].start),
11944
+ start: Object.assign({}, ze[1].start),
11945
11945
  // @ts-expect-error: we’ll add `end` in a second.
11946
11946
  end: void 0
11947
11947
  };
11948
- Je = lt, W.splice(me, 0, ["enter", lt, qe[2]]), me++, fe++, Lt = void 0, Ot = !0;
11948
+ Je = lt, W.splice(me, 0, ["enter", lt, ze[2]]), me++, fe++, Lt = void 0, Ot = !0;
11949
11949
  }
11950
11950
  }
11951
11951
  }
@@ -13801,7 +13801,7 @@ class wu {
13801
13801
  * Message.
13802
13802
  */
13803
13803
  message(t, n, r) {
13804
- const a = new $e(
13804
+ const a = new Ue(
13805
13805
  // @ts-expect-error: the overloads are fine.
13806
13806
  t,
13807
13807
  n,
@@ -15155,42 +15155,42 @@ function Ng(e) {
15155
15155
  var t;
15156
15156
  return e >= 55296 && e <= 57343 || e > 1114111 ? 65533 : (t = wg.get(e)) !== null && t !== void 0 ? t : e;
15157
15157
  }
15158
- var Fe;
15158
+ var $e;
15159
15159
  (function(e) {
15160
15160
  e[e.NUM = 35] = "NUM", e[e.SEMI = 59] = "SEMI", e[e.EQUALS = 61] = "EQUALS", e[e.ZERO = 48] = "ZERO", e[e.NINE = 57] = "NINE", e[e.LOWER_A = 97] = "LOWER_A", e[e.LOWER_F = 102] = "LOWER_F", e[e.LOWER_X = 120] = "LOWER_X", e[e.LOWER_Z = 122] = "LOWER_Z", e[e.UPPER_A = 65] = "UPPER_A", e[e.UPPER_F = 70] = "UPPER_F", e[e.UPPER_Z = 90] = "UPPER_Z";
15161
- })(Fe || (Fe = {}));
15161
+ })($e || ($e = {}));
15162
15162
  const kg = 32;
15163
15163
  var wt;
15164
15164
  (function(e) {
15165
15165
  e[e.VALUE_LENGTH = 49152] = "VALUE_LENGTH", e[e.BRANCH_LENGTH = 16256] = "BRANCH_LENGTH", e[e.JUMP_TABLE = 127] = "JUMP_TABLE";
15166
15166
  })(wt || (wt = {}));
15167
15167
  function Wa(e) {
15168
- return e >= Fe.ZERO && e <= Fe.NINE;
15168
+ return e >= $e.ZERO && e <= $e.NINE;
15169
15169
  }
15170
15170
  function Ig(e) {
15171
- return e >= Fe.UPPER_A && e <= Fe.UPPER_F || e >= Fe.LOWER_A && e <= Fe.LOWER_F;
15171
+ return e >= $e.UPPER_A && e <= $e.UPPER_F || e >= $e.LOWER_A && e <= $e.LOWER_F;
15172
15172
  }
15173
15173
  function Lg(e) {
15174
- return e >= Fe.UPPER_A && e <= Fe.UPPER_Z || e >= Fe.LOWER_A && e <= Fe.LOWER_Z || Wa(e);
15174
+ return e >= $e.UPPER_A && e <= $e.UPPER_Z || e >= $e.LOWER_A && e <= $e.LOWER_Z || Wa(e);
15175
15175
  }
15176
15176
  function Og(e) {
15177
- return e === Fe.EQUALS || Lg(e);
15177
+ return e === $e.EQUALS || Lg(e);
15178
15178
  }
15179
- var Re;
15179
+ var Fe;
15180
15180
  (function(e) {
15181
15181
  e[e.EntityStart = 0] = "EntityStart", e[e.NumericStart = 1] = "NumericStart", e[e.NumericDecimal = 2] = "NumericDecimal", e[e.NumericHex = 3] = "NumericHex", e[e.NamedEntity = 4] = "NamedEntity";
15182
- })(Re || (Re = {}));
15182
+ })(Fe || (Fe = {}));
15183
15183
  var Et;
15184
15184
  (function(e) {
15185
15185
  e[e.Legacy = 0] = "Legacy", e[e.Strict = 1] = "Strict", e[e.Attribute = 2] = "Attribute";
15186
15186
  })(Et || (Et = {}));
15187
15187
  class Dg {
15188
15188
  constructor(t, n, r) {
15189
- this.decodeTree = t, this.emitCodePoint = n, this.errors = r, this.state = Re.EntityStart, this.consumed = 1, this.result = 0, this.treeIndex = 0, this.excess = 1, this.decodeMode = Et.Strict;
15189
+ this.decodeTree = t, this.emitCodePoint = n, this.errors = r, this.state = Fe.EntityStart, this.consumed = 1, this.result = 0, this.treeIndex = 0, this.excess = 1, this.decodeMode = Et.Strict;
15190
15190
  }
15191
15191
  /** Resets the instance to make it reusable. */
15192
15192
  startEntity(t) {
15193
- this.decodeMode = t, this.state = Re.EntityStart, this.result = 0, this.treeIndex = 0, this.excess = 1, this.consumed = 1;
15193
+ this.decodeMode = t, this.state = Fe.EntityStart, this.result = 0, this.treeIndex = 0, this.excess = 1, this.consumed = 1;
15194
15194
  }
15195
15195
  /**
15196
15196
  * Write an entity to the decoder. This can be called multiple times with partial entities.
@@ -15205,15 +15205,15 @@ class Dg {
15205
15205
  */
15206
15206
  write(t, n) {
15207
15207
  switch (this.state) {
15208
- case Re.EntityStart:
15209
- return t.charCodeAt(n) === Fe.NUM ? (this.state = Re.NumericStart, this.consumed += 1, this.stateNumericStart(t, n + 1)) : (this.state = Re.NamedEntity, this.stateNamedEntity(t, n));
15210
- case Re.NumericStart:
15208
+ case Fe.EntityStart:
15209
+ return t.charCodeAt(n) === $e.NUM ? (this.state = Fe.NumericStart, this.consumed += 1, this.stateNumericStart(t, n + 1)) : (this.state = Fe.NamedEntity, this.stateNamedEntity(t, n));
15210
+ case Fe.NumericStart:
15211
15211
  return this.stateNumericStart(t, n);
15212
- case Re.NumericDecimal:
15212
+ case Fe.NumericDecimal:
15213
15213
  return this.stateNumericDecimal(t, n);
15214
- case Re.NumericHex:
15214
+ case Fe.NumericHex:
15215
15215
  return this.stateNumericHex(t, n);
15216
- case Re.NamedEntity:
15216
+ case Fe.NamedEntity:
15217
15217
  return this.stateNamedEntity(t, n);
15218
15218
  }
15219
15219
  }
@@ -15227,7 +15227,7 @@ class Dg {
15227
15227
  * @returns The number of characters that were consumed, or -1 if the entity is incomplete.
15228
15228
  */
15229
15229
  stateNumericStart(t, n) {
15230
- return n >= t.length ? -1 : (t.charCodeAt(n) | kg) === Fe.LOWER_X ? (this.state = Re.NumericHex, this.consumed += 1, this.stateNumericHex(t, n + 1)) : (this.state = Re.NumericDecimal, this.stateNumericDecimal(t, n));
15230
+ return n >= t.length ? -1 : (t.charCodeAt(n) | kg) === $e.LOWER_X ? (this.state = Fe.NumericHex, this.consumed += 1, this.stateNumericHex(t, n + 1)) : (this.state = Fe.NumericDecimal, this.stateNumericDecimal(t, n));
15231
15231
  }
15232
15232
  addToNumericResult(t, n, r, a) {
15233
15233
  if (n !== r) {
@@ -15292,11 +15292,11 @@ class Dg {
15292
15292
  var r;
15293
15293
  if (this.consumed <= n)
15294
15294
  return (r = this.errors) === null || r === void 0 || r.absenceOfDigitsInNumericCharacterReference(this.consumed), 0;
15295
- if (t === Fe.SEMI)
15295
+ if (t === $e.SEMI)
15296
15296
  this.consumed += 1;
15297
15297
  else if (this.decodeMode === Et.Strict)
15298
15298
  return 0;
15299
- return this.emitCodePoint(Ng(this.result), this.consumed), this.errors && (t !== Fe.SEMI && this.errors.missingSemicolonAfterCharacterReference(), this.errors.validateNumericCharacterReference(this.result)), this.consumed;
15299
+ return this.emitCodePoint(Ng(this.result), this.consumed), this.errors && (t !== $e.SEMI && this.errors.missingSemicolonAfterCharacterReference(), this.errors.validateNumericCharacterReference(this.result)), this.consumed;
15300
15300
  }
15301
15301
  /**
15302
15302
  * Parses a named entity.
@@ -15318,7 +15318,7 @@ class Dg {
15318
15318
  (i === 0 || // And there should be no invalid characters.
15319
15319
  Og(s)) ? 0 : this.emitNotTerminatedNamedEntity();
15320
15320
  if (a = r[this.treeIndex], i = (a & wt.VALUE_LENGTH) >> 14, i !== 0) {
15321
- if (s === Fe.SEMI)
15321
+ if (s === $e.SEMI)
15322
15322
  return this.emitNamedEntityData(this.treeIndex, i, this.consumed + this.excess);
15323
15323
  this.decodeMode !== Et.Strict && (this.result = this.treeIndex, this.consumed += this.excess, this.excess = 0);
15324
15324
  }
@@ -15358,16 +15358,16 @@ class Dg {
15358
15358
  end() {
15359
15359
  var t;
15360
15360
  switch (this.state) {
15361
- case Re.NamedEntity:
15361
+ case Fe.NamedEntity:
15362
15362
  return this.result !== 0 && (this.decodeMode !== Et.Attribute || this.result === this.treeIndex) ? this.emitNotTerminatedNamedEntity() : 0;
15363
15363
  // Otherwise, emit a numeric entity if we have one.
15364
- case Re.NumericDecimal:
15364
+ case Fe.NumericDecimal:
15365
15365
  return this.emitNumericEntity(0, 2);
15366
- case Re.NumericHex:
15366
+ case Fe.NumericHex:
15367
15367
  return this.emitNumericEntity(0, 3);
15368
- case Re.NumericStart:
15368
+ case Fe.NumericStart:
15369
15369
  return (t = this.errors) === null || t === void 0 || t.absenceOfDigitsInNumericCharacterReference(this.consumed), 0;
15370
- case Re.EntityStart:
15370
+ case Fe.EntityStart:
15371
15371
  return 0;
15372
15372
  }
15373
15373
  }
@@ -15636,7 +15636,7 @@ var M;
15636
15636
  (function(e) {
15637
15637
  e[e.DATA = 0] = "DATA", e[e.RCDATA = 1] = "RCDATA", e[e.RAWTEXT = 2] = "RAWTEXT", e[e.SCRIPT_DATA = 3] = "SCRIPT_DATA", e[e.PLAINTEXT = 4] = "PLAINTEXT", e[e.TAG_OPEN = 5] = "TAG_OPEN", e[e.END_TAG_OPEN = 6] = "END_TAG_OPEN", e[e.TAG_NAME = 7] = "TAG_NAME", e[e.RCDATA_LESS_THAN_SIGN = 8] = "RCDATA_LESS_THAN_SIGN", e[e.RCDATA_END_TAG_OPEN = 9] = "RCDATA_END_TAG_OPEN", e[e.RCDATA_END_TAG_NAME = 10] = "RCDATA_END_TAG_NAME", e[e.RAWTEXT_LESS_THAN_SIGN = 11] = "RAWTEXT_LESS_THAN_SIGN", e[e.RAWTEXT_END_TAG_OPEN = 12] = "RAWTEXT_END_TAG_OPEN", e[e.RAWTEXT_END_TAG_NAME = 13] = "RAWTEXT_END_TAG_NAME", e[e.SCRIPT_DATA_LESS_THAN_SIGN = 14] = "SCRIPT_DATA_LESS_THAN_SIGN", e[e.SCRIPT_DATA_END_TAG_OPEN = 15] = "SCRIPT_DATA_END_TAG_OPEN", e[e.SCRIPT_DATA_END_TAG_NAME = 16] = "SCRIPT_DATA_END_TAG_NAME", e[e.SCRIPT_DATA_ESCAPE_START = 17] = "SCRIPT_DATA_ESCAPE_START", e[e.SCRIPT_DATA_ESCAPE_START_DASH = 18] = "SCRIPT_DATA_ESCAPE_START_DASH", e[e.SCRIPT_DATA_ESCAPED = 19] = "SCRIPT_DATA_ESCAPED", e[e.SCRIPT_DATA_ESCAPED_DASH = 20] = "SCRIPT_DATA_ESCAPED_DASH", e[e.SCRIPT_DATA_ESCAPED_DASH_DASH = 21] = "SCRIPT_DATA_ESCAPED_DASH_DASH", e[e.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN = 22] = "SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN", e[e.SCRIPT_DATA_ESCAPED_END_TAG_OPEN = 23] = "SCRIPT_DATA_ESCAPED_END_TAG_OPEN", e[e.SCRIPT_DATA_ESCAPED_END_TAG_NAME = 24] = "SCRIPT_DATA_ESCAPED_END_TAG_NAME", e[e.SCRIPT_DATA_DOUBLE_ESCAPE_START = 25] = "SCRIPT_DATA_DOUBLE_ESCAPE_START", e[e.SCRIPT_DATA_DOUBLE_ESCAPED = 26] = "SCRIPT_DATA_DOUBLE_ESCAPED", e[e.SCRIPT_DATA_DOUBLE_ESCAPED_DASH = 27] = "SCRIPT_DATA_DOUBLE_ESCAPED_DASH", e[e.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH = 28] = "SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH", e[e.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN = 29] = "SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN", e[e.SCRIPT_DATA_DOUBLE_ESCAPE_END = 30] = "SCRIPT_DATA_DOUBLE_ESCAPE_END", e[e.BEFORE_ATTRIBUTE_NAME = 31] = "BEFORE_ATTRIBUTE_NAME", e[e.ATTRIBUTE_NAME = 32] = "ATTRIBUTE_NAME", e[e.AFTER_ATTRIBUTE_NAME = 33] = "AFTER_ATTRIBUTE_NAME", e[e.BEFORE_ATTRIBUTE_VALUE = 34] = "BEFORE_ATTRIBUTE_VALUE", e[e.ATTRIBUTE_VALUE_DOUBLE_QUOTED = 35] = "ATTRIBUTE_VALUE_DOUBLE_QUOTED", e[e.ATTRIBUTE_VALUE_SINGLE_QUOTED = 36] = "ATTRIBUTE_VALUE_SINGLE_QUOTED", e[e.ATTRIBUTE_VALUE_UNQUOTED = 37] = "ATTRIBUTE_VALUE_UNQUOTED", e[e.AFTER_ATTRIBUTE_VALUE_QUOTED = 38] = "AFTER_ATTRIBUTE_VALUE_QUOTED", e[e.SELF_CLOSING_START_TAG = 39] = "SELF_CLOSING_START_TAG", e[e.BOGUS_COMMENT = 40] = "BOGUS_COMMENT", e[e.MARKUP_DECLARATION_OPEN = 41] = "MARKUP_DECLARATION_OPEN", e[e.COMMENT_START = 42] = "COMMENT_START", e[e.COMMENT_START_DASH = 43] = "COMMENT_START_DASH", e[e.COMMENT = 44] = "COMMENT", e[e.COMMENT_LESS_THAN_SIGN = 45] = "COMMENT_LESS_THAN_SIGN", e[e.COMMENT_LESS_THAN_SIGN_BANG = 46] = "COMMENT_LESS_THAN_SIGN_BANG", e[e.COMMENT_LESS_THAN_SIGN_BANG_DASH = 47] = "COMMENT_LESS_THAN_SIGN_BANG_DASH", e[e.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH = 48] = "COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH", e[e.COMMENT_END_DASH = 49] = "COMMENT_END_DASH", e[e.COMMENT_END = 50] = "COMMENT_END", e[e.COMMENT_END_BANG = 51] = "COMMENT_END_BANG", e[e.DOCTYPE = 52] = "DOCTYPE", e[e.BEFORE_DOCTYPE_NAME = 53] = "BEFORE_DOCTYPE_NAME", e[e.DOCTYPE_NAME = 54] = "DOCTYPE_NAME", e[e.AFTER_DOCTYPE_NAME = 55] = "AFTER_DOCTYPE_NAME", e[e.AFTER_DOCTYPE_PUBLIC_KEYWORD = 56] = "AFTER_DOCTYPE_PUBLIC_KEYWORD", e[e.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER = 57] = "BEFORE_DOCTYPE_PUBLIC_IDENTIFIER", e[e.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED = 58] = "DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED", e[e.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED = 59] = "DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED", e[e.AFTER_DOCTYPE_PUBLIC_IDENTIFIER = 60] = "AFTER_DOCTYPE_PUBLIC_IDENTIFIER", e[e.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS = 61] = "BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS", e[e.AFTER_DOCTYPE_SYSTEM_KEYWORD = 62] = "AFTER_DOCTYPE_SYSTEM_KEYWORD", e[e.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER = 63] = "BEFORE_DOCTYPE_SYSTEM_IDENTIFIER", e[e.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED = 64] = "DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED", e[e.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED = 65] = "DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED", e[e.AFTER_DOCTYPE_SYSTEM_IDENTIFIER = 66] = "AFTER_DOCTYPE_SYSTEM_IDENTIFIER", e[e.BOGUS_DOCTYPE = 67] = "BOGUS_DOCTYPE", e[e.CDATA_SECTION = 68] = "CDATA_SECTION", e[e.CDATA_SECTION_BRACKET = 69] = "CDATA_SECTION_BRACKET", e[e.CDATA_SECTION_END = 70] = "CDATA_SECTION_END", e[e.CHARACTER_REFERENCE = 71] = "CHARACTER_REFERENCE", e[e.AMBIGUOUS_AMPERSAND = 72] = "AMBIGUOUS_AMPERSAND";
15638
15638
  })(M || (M = {}));
15639
- const De = {
15639
+ const Pe = {
15640
15640
  DATA: M.DATA,
15641
15641
  RCDATA: M.RCDATA,
15642
15642
  RAWTEXT: M.RAWTEXT,
@@ -18411,7 +18411,7 @@ class ro {
18411
18411
  this._insertElement(t, K.HTML), this.tokenizer.state = n, this.originalInsertionMode = this.insertionMode, this.insertionMode = F.TEXT;
18412
18412
  }
18413
18413
  switchToPlaintextParsing() {
18414
- this.insertionMode = F.TEXT, this.originalInsertionMode = F.IN_BODY, this.tokenizer.state = De.PLAINTEXT;
18414
+ this.insertionMode = F.TEXT, this.originalInsertionMode = F.IN_BODY, this.tokenizer.state = Pe.PLAINTEXT;
18415
18415
  }
18416
18416
  //Fragment parsing
18417
18417
  /** @protected */
@@ -18434,7 +18434,7 @@ class ro {
18434
18434
  switch (this.fragmentContextID) {
18435
18435
  case d.TITLE:
18436
18436
  case d.TEXTAREA: {
18437
- this.tokenizer.state = De.RCDATA;
18437
+ this.tokenizer.state = Pe.RCDATA;
18438
18438
  break;
18439
18439
  }
18440
18440
  case d.STYLE:
@@ -18443,15 +18443,15 @@ class ro {
18443
18443
  case d.NOEMBED:
18444
18444
  case d.NOFRAMES:
18445
18445
  case d.NOSCRIPT: {
18446
- this.tokenizer.state = De.RAWTEXT;
18446
+ this.tokenizer.state = Pe.RAWTEXT;
18447
18447
  break;
18448
18448
  }
18449
18449
  case d.SCRIPT: {
18450
- this.tokenizer.state = De.SCRIPT_DATA;
18450
+ this.tokenizer.state = Pe.SCRIPT_DATA;
18451
18451
  break;
18452
18452
  }
18453
18453
  case d.PLAINTEXT: {
18454
- this.tokenizer.state = De.PLAINTEXT;
18454
+ this.tokenizer.state = Pe.PLAINTEXT;
18455
18455
  break;
18456
18456
  }
18457
18457
  }
@@ -18976,7 +18976,7 @@ class ro {
18976
18976
  break;
18977
18977
  }
18978
18978
  case F.IN_BODY: {
18979
- Ue(this, t);
18979
+ qe(this, t);
18980
18980
  break;
18981
18981
  }
18982
18982
  case F.IN_TABLE: {
@@ -19343,7 +19343,7 @@ function wn(e, t) {
19343
19343
  function Nb(e, t) {
19344
19344
  switch (t.tagID) {
19345
19345
  case d.HTML: {
19346
- Ue(e, t);
19346
+ qe(e, t);
19347
19347
  break;
19348
19348
  }
19349
19349
  case d.HEAD: {
@@ -19364,7 +19364,7 @@ function Nn(e, t) {
19364
19364
  function ut(e, t) {
19365
19365
  switch (t.tagID) {
19366
19366
  case d.HTML: {
19367
- Ue(e, t);
19367
+ qe(e, t);
19368
19368
  break;
19369
19369
  }
19370
19370
  case d.BASE:
@@ -19376,20 +19376,20 @@ function ut(e, t) {
19376
19376
  break;
19377
19377
  }
19378
19378
  case d.TITLE: {
19379
- e._switchToTextParsing(t, De.RCDATA);
19379
+ e._switchToTextParsing(t, Pe.RCDATA);
19380
19380
  break;
19381
19381
  }
19382
19382
  case d.NOSCRIPT: {
19383
- e.options.scriptingEnabled ? e._switchToTextParsing(t, De.RAWTEXT) : (e._insertElement(t, K.HTML), e.insertionMode = F.IN_HEAD_NO_SCRIPT);
19383
+ e.options.scriptingEnabled ? e._switchToTextParsing(t, Pe.RAWTEXT) : (e._insertElement(t, K.HTML), e.insertionMode = F.IN_HEAD_NO_SCRIPT);
19384
19384
  break;
19385
19385
  }
19386
19386
  case d.NOFRAMES:
19387
19387
  case d.STYLE: {
19388
- e._switchToTextParsing(t, De.RAWTEXT);
19388
+ e._switchToTextParsing(t, Pe.RAWTEXT);
19389
19389
  break;
19390
19390
  }
19391
19391
  case d.SCRIPT: {
19392
- e._switchToTextParsing(t, De.SCRIPT_DATA);
19392
+ e._switchToTextParsing(t, Pe.SCRIPT_DATA);
19393
19393
  break;
19394
19394
  }
19395
19395
  case d.TEMPLATE: {
@@ -19433,7 +19433,7 @@ function kn(e, t) {
19433
19433
  function Lb(e, t) {
19434
19434
  switch (t.tagID) {
19435
19435
  case d.HTML: {
19436
- Ue(e, t);
19436
+ qe(e, t);
19437
19437
  break;
19438
19438
  }
19439
19439
  case d.BASEFONT:
@@ -19475,7 +19475,7 @@ function In(e, t) {
19475
19475
  function Db(e, t) {
19476
19476
  switch (t.tagID) {
19477
19477
  case d.HTML: {
19478
- Ue(e, t);
19478
+ qe(e, t);
19479
19479
  break;
19480
19480
  }
19481
19481
  case d.BODY: {
@@ -19541,7 +19541,7 @@ function Rr(e, t) {
19541
19541
  break;
19542
19542
  }
19543
19543
  case ge.START_TAG: {
19544
- Ue(e, t);
19544
+ qe(e, t);
19545
19545
  break;
19546
19546
  }
19547
19547
  case ge.END_TAG: {
@@ -19599,7 +19599,7 @@ function qb(e, t) {
19599
19599
  e.openElements.hasInButtonScope(d.P) && e._closePElement(), e._insertElement(t, K.HTML);
19600
19600
  }
19601
19601
  function zb(e, t) {
19602
- e.openElements.hasInButtonScope(d.P) && e._closePElement(), e._insertElement(t, K.HTML), e.tokenizer.state = De.PLAINTEXT;
19602
+ e.openElements.hasInButtonScope(d.P) && e._closePElement(), e._insertElement(t, K.HTML), e.tokenizer.state = Pe.PLAINTEXT;
19603
19603
  }
19604
19604
  function Vb(e, t) {
19605
19605
  e.openElements.hasInScope(d.BUTTON) && (e.openElements.generateImpliedEndTags(), e.openElements.popUntilTagNamePopped(d.BUTTON)), e._reconstructActiveFormattingElements(), e._insertElement(t, K.HTML), e.framesetOk = !1;
@@ -19640,16 +19640,16 @@ function Zb(e, t) {
19640
19640
  t.tagName = U.IMG, t.tagID = d.IMG, Wu(e, t);
19641
19641
  }
19642
19642
  function e1(e, t) {
19643
- e._insertElement(t, K.HTML), e.skipNextNewLine = !0, e.tokenizer.state = De.RCDATA, e.originalInsertionMode = e.insertionMode, e.framesetOk = !1, e.insertionMode = F.TEXT;
19643
+ e._insertElement(t, K.HTML), e.skipNextNewLine = !0, e.tokenizer.state = Pe.RCDATA, e.originalInsertionMode = e.insertionMode, e.framesetOk = !1, e.insertionMode = F.TEXT;
19644
19644
  }
19645
19645
  function t1(e, t) {
19646
- e.openElements.hasInButtonScope(d.P) && e._closePElement(), e._reconstructActiveFormattingElements(), e.framesetOk = !1, e._switchToTextParsing(t, De.RAWTEXT);
19646
+ e.openElements.hasInButtonScope(d.P) && e._closePElement(), e._reconstructActiveFormattingElements(), e.framesetOk = !1, e._switchToTextParsing(t, Pe.RAWTEXT);
19647
19647
  }
19648
19648
  function n1(e, t) {
19649
- e.framesetOk = !1, e._switchToTextParsing(t, De.RAWTEXT);
19649
+ e.framesetOk = !1, e._switchToTextParsing(t, Pe.RAWTEXT);
19650
19650
  }
19651
19651
  function ao(e, t) {
19652
- e._switchToTextParsing(t, De.RAWTEXT);
19652
+ e._switchToTextParsing(t, Pe.RAWTEXT);
19653
19653
  }
19654
19654
  function r1(e, t) {
19655
19655
  e._reconstructActiveFormattingElements(), e._insertElement(t, K.HTML), e.framesetOk = !1, e.insertionMode = e.insertionMode === F.IN_TABLE || e.insertionMode === F.IN_CAPTION || e.insertionMode === F.IN_TABLE_BODY || e.insertionMode === F.IN_ROW || e.insertionMode === F.IN_CELL ? F.IN_SELECT_IN_TABLE : F.IN_SELECT;
@@ -19672,7 +19672,7 @@ function u1(e, t) {
19672
19672
  function io(e, t) {
19673
19673
  e._reconstructActiveFormattingElements(), e._insertElement(t, K.HTML);
19674
19674
  }
19675
- function Ue(e, t) {
19675
+ function qe(e, t) {
19676
19676
  switch (t.tagID) {
19677
19677
  case d.I:
19678
19678
  case d.S:
@@ -20178,7 +20178,7 @@ function xn(e, t) {
20178
20178
  const Zu = /* @__PURE__ */ new Set([d.CAPTION, d.COL, d.COLGROUP, d.TBODY, d.TD, d.TFOOT, d.TH, d.THEAD, d.TR]);
20179
20179
  function k1(e, t) {
20180
20180
  const n = t.tagID;
20181
- Zu.has(n) ? e.openElements.hasInTableScope(d.CAPTION) && (e.openElements.generateImpliedEndTags(), e.openElements.popUntilTagNamePopped(d.CAPTION), e.activeFormattingElements.clearToLastMarker(), e.insertionMode = F.IN_TABLE, en(e, t)) : Ue(e, t);
20181
+ Zu.has(n) ? e.openElements.hasInTableScope(d.CAPTION) && (e.openElements.generateImpliedEndTags(), e.openElements.popUntilTagNamePopped(d.CAPTION), e.activeFormattingElements.clearToLastMarker(), e.insertionMode = F.IN_TABLE, en(e, t)) : qe(e, t);
20182
20182
  }
20183
20183
  function I1(e, t) {
20184
20184
  const n = t.tagID;
@@ -20206,7 +20206,7 @@ function I1(e, t) {
20206
20206
  function Si(e, t) {
20207
20207
  switch (t.tagID) {
20208
20208
  case d.HTML: {
20209
- Ue(e, t);
20209
+ qe(e, t);
20210
20210
  break;
20211
20211
  }
20212
20212
  case d.COL: {
@@ -20341,7 +20341,7 @@ function el(e, t) {
20341
20341
  }
20342
20342
  function O1(e, t) {
20343
20343
  const n = t.tagID;
20344
- Zu.has(n) ? (e.openElements.hasInTableScope(d.TD) || e.openElements.hasInTableScope(d.TH)) && (e._closeTableCell(), Hr(e, t)) : Ue(e, t);
20344
+ Zu.has(n) ? (e.openElements.hasInTableScope(d.TD) || e.openElements.hasInTableScope(d.TH)) && (e._closeTableCell(), Hr(e, t)) : qe(e, t);
20345
20345
  }
20346
20346
  function D1(e, t) {
20347
20347
  const n = t.tagID;
@@ -20372,7 +20372,7 @@ function D1(e, t) {
20372
20372
  function tl(e, t) {
20373
20373
  switch (t.tagID) {
20374
20374
  case d.HTML: {
20375
- Ue(e, t);
20375
+ qe(e, t);
20376
20376
  break;
20377
20377
  }
20378
20378
  case d.OPTION: {
@@ -20468,7 +20468,7 @@ function R1(e, t) {
20468
20468
  break;
20469
20469
  }
20470
20470
  default:
20471
- e.tmplInsertionModeStack[0] = F.IN_BODY, e.insertionMode = F.IN_BODY, Ue(e, t);
20471
+ e.tmplInsertionModeStack[0] = F.IN_BODY, e.insertionMode = F.IN_BODY, qe(e, t);
20472
20472
  }
20473
20473
  }
20474
20474
  function B1(e, t) {
@@ -20478,7 +20478,7 @@ function rl(e, t) {
20478
20478
  e.openElements.tmplCount > 0 ? (e.openElements.popUntilTagNamePopped(d.TEMPLATE), e.activeFormattingElements.clearToLastMarker(), e.tmplInsertionModeStack.shift(), e._resetInsertionMode(), e.onEof(t)) : Ai(e, t);
20479
20479
  }
20480
20480
  function F1(e, t) {
20481
- t.tagID === d.HTML ? Ue(e, t) : Nr(e, t);
20481
+ t.tagID === d.HTML ? qe(e, t) : Nr(e, t);
20482
20482
  }
20483
20483
  function al(e, t) {
20484
20484
  var n;
@@ -20497,7 +20497,7 @@ function Nr(e, t) {
20497
20497
  function H1(e, t) {
20498
20498
  switch (t.tagID) {
20499
20499
  case d.HTML: {
20500
- Ue(e, t);
20500
+ qe(e, t);
20501
20501
  break;
20502
20502
  }
20503
20503
  case d.FRAMESET: {
@@ -20520,7 +20520,7 @@ function $1(e, t) {
20520
20520
  function U1(e, t) {
20521
20521
  switch (t.tagID) {
20522
20522
  case d.HTML: {
20523
- Ue(e, t);
20523
+ qe(e, t);
20524
20524
  break;
20525
20525
  }
20526
20526
  case d.NOFRAMES: {
@@ -20533,7 +20533,7 @@ function q1(e, t) {
20533
20533
  t.tagID === d.HTML && (e.insertionMode = F.AFTER_AFTER_FRAMESET);
20534
20534
  }
20535
20535
  function z1(e, t) {
20536
- t.tagID === d.HTML ? Ue(e, t) : hr(e, t);
20536
+ t.tagID === d.HTML ? qe(e, t) : hr(e, t);
20537
20537
  }
20538
20538
  function hr(e, t) {
20539
20539
  e.insertionMode = F.IN_BODY, Rr(e, t);
@@ -20541,7 +20541,7 @@ function hr(e, t) {
20541
20541
  function V1(e, t) {
20542
20542
  switch (t.tagID) {
20543
20543
  case d.HTML: {
20544
- Ue(e, t);
20544
+ qe(e, t);
20545
20545
  break;
20546
20546
  }
20547
20547
  case d.NOFRAMES: {
@@ -20701,7 +20701,7 @@ function rE(e, t) {
20701
20701
  function on(e, t) {
20702
20702
  ll(e, t);
20703
20703
  const n = e.parser.tokenizer.currentCharacterToken;
20704
- n && n.location && (n.location.endLine = e.parser.tokenizer.preprocessor.line, n.location.endCol = e.parser.tokenizer.preprocessor.col + 1, n.location.endOffset = e.parser.tokenizer.preprocessor.offset + 1, e.parser.currentToken = n, e.parser._processToken(e.parser.currentToken)), e.parser.tokenizer.paused = !1, e.parser.tokenizer.inLoop = !1, e.parser.tokenizer.active = !1, e.parser.tokenizer.returnState = De.DATA, e.parser.tokenizer.charRefCode = -1, e.parser.tokenizer.consumedAfterSnapshot = -1, e.parser.tokenizer.currentLocation = null, e.parser.tokenizer.currentCharacterToken = null, e.parser.tokenizer.currentToken = null, e.parser.tokenizer.currentAttr = { name: "", value: "" };
20704
+ n && n.location && (n.location.endLine = e.parser.tokenizer.preprocessor.line, n.location.endCol = e.parser.tokenizer.preprocessor.col + 1, n.location.endOffset = e.parser.tokenizer.preprocessor.offset + 1, e.parser.currentToken = n, e.parser._processToken(e.parser.currentToken)), e.parser.tokenizer.paused = !1, e.parser.tokenizer.inLoop = !1, e.parser.tokenizer.active = !1, e.parser.tokenizer.returnState = Pe.DATA, e.parser.tokenizer.charRefCode = -1, e.parser.tokenizer.consumedAfterSnapshot = -1, e.parser.tokenizer.currentLocation = null, e.parser.tokenizer.currentCharacterToken = null, e.parser.tokenizer.currentToken = null, e.parser.tokenizer.currentAttr = { name: "", value: "" };
20705
20705
  }
20706
20706
  function ll(e, t) {
20707
20707
  if (t && t.offset !== void 0) {
@@ -20718,7 +20718,7 @@ function ll(e, t) {
20718
20718
  }
20719
20719
  function aE(e, t) {
20720
20720
  const n = e.tagName.toLowerCase();
20721
- if (t.parser.tokenizer.state === De.PLAINTEXT) return;
20721
+ if (t.parser.tokenizer.state === Pe.PLAINTEXT) return;
20722
20722
  on(t, gt(e));
20723
20723
  const r = t.parser.openElements.current;
20724
20724
  let a = "namespaceURI" in r ? r.namespaceURI : Bt.html;
@@ -20743,7 +20743,7 @@ function aE(e, t) {
20743
20743
  }
20744
20744
  function iE(e, t) {
20745
20745
  const n = e.tagName.toLowerCase();
20746
- if (!t.parser.tokenizer.inForeignNode && Tg.includes(n) || t.parser.tokenizer.state === De.PLAINTEXT) return;
20746
+ if (!t.parser.tokenizer.inForeignNode && Tg.includes(n) || t.parser.tokenizer.state === Pe.PLAINTEXT) return;
20747
20747
  on(t, Lr(e));
20748
20748
  const r = {
20749
20749
  type: ge.END_TAG,
@@ -20756,9 +20756,9 @@ function iE(e, t) {
20756
20756
  };
20757
20757
  t.parser.currentToken = r, t.parser._processToken(t.parser.currentToken), // Current element is closed.
20758
20758
  n === t.parser.tokenizer.lastStartTagName && // `<textarea>` and `<title>`
20759
- (t.parser.tokenizer.state === De.RCDATA || // `<iframe>`, `<noembed>`, `<noframes>`, `<style>`, `<xmp>`
20760
- t.parser.tokenizer.state === De.RAWTEXT || // `<script>`
20761
- t.parser.tokenizer.state === De.SCRIPT_DATA) && (t.parser.tokenizer.state = De.DATA);
20759
+ (t.parser.tokenizer.state === Pe.RCDATA || // `<iframe>`, `<noembed>`, `<noframes>`, `<style>`, `<xmp>`
20760
+ t.parser.tokenizer.state === Pe.RAWTEXT || // `<script>`
20761
+ t.parser.tokenizer.state === Pe.SCRIPT_DATA) && (t.parser.tokenizer.state = Pe.DATA);
20762
20762
  }
20763
20763
  function sE(e) {
20764
20764
  const t = e.type === "root" ? e.children[0] : e;
@@ -21722,7 +21722,7 @@ function wi(e, t, n, r, a, i, s, o, u, l, c, f, g, p, T) {
21722
21722
  return e.enter(r), e.enter(a), e.consume(C), e.exit(a), E;
21723
21723
  }
21724
21724
  function E(C) {
21725
- return C === 35 ? (h = s, y(C)) : C === 46 ? (h = o, y(C)) : T && ye(C) ? Te(e, E, "whitespace")(C) : !T && Oe(C) ? yt(e, E)(C) : C === null || oe(C) || Fn(C) || Bn(C) && C !== 45 && C !== 95 ? k(C) : (e.enter(i), e.enter(u), e.consume(C), A);
21725
+ return C === 35 ? (h = s, y(C)) : C === 46 ? (h = o, y(C)) : T && ye(C) ? Te(e, E, "whitespace")(C) : !T && De(C) ? yt(e, E)(C) : C === null || oe(C) || Fn(C) || Bn(C) && C !== 45 && C !== 95 ? k(C) : (e.enter(i), e.enter(u), e.consume(C), A);
21726
21726
  }
21727
21727
  function y(C) {
21728
21728
  const B = (
@@ -21732,7 +21732,7 @@ function wi(e, t, n, r, a, i, s, o, u, l, c, f, g, p, T) {
21732
21732
  return e.enter(i), e.enter(h), e.enter(B), e.consume(C), e.exit(B), _;
21733
21733
  }
21734
21734
  function _(C) {
21735
- if (C === null || C === 34 || C === 35 || C === 39 || C === 46 || C === 60 || C === 61 || C === 62 || C === 96 || C === 125 || Oe(C))
21735
+ if (C === null || C === 34 || C === 35 || C === 39 || C === 46 || C === 60 || C === 61 || C === 62 || C === 96 || C === 125 || De(C))
21736
21736
  return n(C);
21737
21737
  const B = (
21738
21738
  /** @type {TokenType} */
@@ -21743,7 +21743,7 @@ function wi(e, t, n, r, a, i, s, o, u, l, c, f, g, p, T) {
21743
21743
  function w(C) {
21744
21744
  if (C === null || C === 34 || C === 39 || C === 60 || C === 61 || C === 62 || C === 96)
21745
21745
  return n(C);
21746
- if (C === 35 || C === 46 || C === 125 || Oe(C)) {
21746
+ if (C === 35 || C === 46 || C === 125 || De(C)) {
21747
21747
  const B = (
21748
21748
  /** @type {TokenType} */
21749
21749
  h + "Value"
@@ -21753,16 +21753,16 @@ function wi(e, t, n, r, a, i, s, o, u, l, c, f, g, p, T) {
21753
21753
  return e.consume(C), w;
21754
21754
  }
21755
21755
  function A(C) {
21756
- return C === null || oe(C) || Fn(C) || Bn(C) && C !== 45 && C !== 46 && C !== 58 && C !== 95 ? (e.exit(u), T && ye(C) ? Te(e, P, "whitespace")(C) : !T && Oe(C) ? yt(e, P)(C) : P(C)) : (e.consume(C), A);
21756
+ return C === null || oe(C) || Fn(C) || Bn(C) && C !== 45 && C !== 46 && C !== 58 && C !== 95 ? (e.exit(u), T && ye(C) ? Te(e, P, "whitespace")(C) : !T && De(C) ? yt(e, P)(C) : P(C)) : (e.consume(C), A);
21757
21757
  }
21758
21758
  function P(C) {
21759
21759
  return C === 61 ? (e.enter(l), e.consume(C), e.exit(l), S) : (e.exit(i), E(C));
21760
21760
  }
21761
21761
  function S(C) {
21762
- return C === null || C === 60 || C === 61 || C === 62 || C === 96 || C === 125 || T && oe(C) ? n(C) : C === 34 || C === 39 ? (e.enter(c), e.enter(g), e.consume(C), e.exit(g), m = C, v) : T && ye(C) ? Te(e, S, "whitespace")(C) : !T && Oe(C) ? yt(e, S)(C) : (e.enter(f), e.enter(p), e.consume(C), m = void 0, x);
21762
+ return C === null || C === 60 || C === 61 || C === 62 || C === 96 || C === 125 || T && oe(C) ? n(C) : C === 34 || C === 39 ? (e.enter(c), e.enter(g), e.consume(C), e.exit(g), m = C, v) : T && ye(C) ? Te(e, S, "whitespace")(C) : !T && De(C) ? yt(e, S)(C) : (e.enter(f), e.enter(p), e.consume(C), m = void 0, x);
21763
21763
  }
21764
21764
  function x(C) {
21765
- return C === null || C === 34 || C === 39 || C === 60 || C === 61 || C === 62 || C === 96 ? n(C) : C === 125 || Oe(C) ? (e.exit(p), e.exit(f), e.exit(i), E(C)) : (e.consume(C), x);
21765
+ return C === null || C === 34 || C === 39 || C === 60 || C === 61 || C === 62 || C === 96 ? n(C) : C === 125 || De(C) ? (e.exit(p), e.exit(f), e.exit(i), E(C)) : (e.consume(C), x);
21766
21766
  }
21767
21767
  function v(C) {
21768
21768
  return C === m ? (e.enter(g), e.consume(C), e.exit(g), e.exit(c), e.exit(i), D) : (e.enter(f), N(C));
@@ -21774,7 +21774,7 @@ function wi(e, t, n, r, a, i, s, o, u, l, c, f, g, p, T) {
21774
21774
  return C === m || C === null || oe(C) ? (e.exit(p), N(C)) : (e.consume(C), O);
21775
21775
  }
21776
21776
  function D(C) {
21777
- return C === 125 || Oe(C) ? E(C) : k(C);
21777
+ return C === 125 || De(C) ? E(C) : k(C);
21778
21778
  }
21779
21779
  function k(C) {
21780
21780
  return C === 125 ? (e.enter(a), e.consume(C), e.exit(a), e.exit(r), t) : n(C);
@@ -23875,10 +23875,20 @@ const { RangePicker: cT } = Zl, dT = ({ host: e, onChange: t }) => {
23875
23875
  const [re, ue] = ae([]), be = Z(!1);
23876
23876
  ie(() => {
23877
23877
  if (!k) return;
23878
- k.length === re.length && k.every((de, Ee) => {
23879
- const we = re[Ee];
23880
- return we && de.name === we.name && de.size === we.size && de.lastModified === we.lastModified;
23881
- }) || (be.current = !0, ue(k));
23878
+ if (!(k.length === re.length && k.every((de, Ee) => {
23879
+ const Ce = re[Ee];
23880
+ return Ce && de.name === Ce.name && de.size === Ce.size && de.lastModified === Ce.lastModified;
23881
+ })))
23882
+ if (k.reduce((Ce, Oe) => Ce + Oe.size, 0) > 52428800) {
23883
+ const Ce = [];
23884
+ let Oe = 0;
23885
+ for (const Be of k) {
23886
+ if (Oe + Be.size > 52428800) break;
23887
+ Ce.push(Be), Oe += Be.size;
23888
+ }
23889
+ $.error("文件总大小不能超过 50MB"), ue(Ce);
23890
+ } else
23891
+ be.current = !0, ue(k);
23882
23892
  }, [k]), ie(() => {
23883
23893
  if (be.current) {
23884
23894
  be.current = !1;
@@ -23909,25 +23919,25 @@ const { RangePicker: cT } = Zl, dT = ({ host: e, onChange: t }) => {
23909
23919
  });
23910
23920
  }, []), st = le((ee) => {
23911
23921
  if (!ee.target.files || ee.target.files.length === 0) return;
23912
- const de = 10 * 1024 * 1024, Ee = 50 * 1024 * 1024, we = (ze) => ze.type?.startsWith("image/") || /\.(png|jpe?g|gif|webp|bmp|svg)$/i.test(ze.name || ""), He = Array.from(ee.target.files).filter((ze) => we(ze) && ze.size > de ? ($.error("图片大小不能超过 10MB"), !1) : !0);
23913
- ue((ze) => {
23914
- const Ce = ze.reduce((Le, Pe) => Le + Pe.size, 0), Ae = [];
23915
- let ve = Ce;
23916
- for (const Le of He) {
23917
- if (ve + Le.size > Ee) {
23922
+ const de = 10 * 1024 * 1024, Ee = 50 * 1024 * 1024, Ce = (Be) => Be.type?.startsWith("image/") || /\.(png|jpe?g|gif|webp|bmp|svg)$/i.test(Be.name || ""), Oe = Array.from(ee.target.files).filter((Be) => Ce(Be) && Be.size > de ? ($.error("图片大小不能超过 10MB"), !1) : !0);
23923
+ ue((Be) => {
23924
+ const Ae = Be.reduce((Le, Me) => Le + Me.size, 0), Se = [];
23925
+ let _e = Ae;
23926
+ for (const Le of Oe) {
23927
+ if (_e + Le.size > Ee) {
23918
23928
  $.error("文件总大小不能超过 50MB");
23919
23929
  break;
23920
23930
  }
23921
- Ae.push(Le), ve += Le.size;
23931
+ Se.push(Le), _e += Le.size;
23922
23932
  }
23923
- return Ae.length > 0 ? [...ze, ...Ae] : ze;
23933
+ return Se.length > 0 ? [...Be, ...Se] : Be;
23924
23934
  }), ee.target.value = "", setTimeout(Je, 0);
23925
23935
  }, [$, Je]), Lt = le((ee) => {
23926
- ue((de) => de.filter((Ee, we) => we !== ee)), setTimeout(Je, 0);
23936
+ ue((de) => de.filter((Ee, Ce) => Ce !== ee)), setTimeout(Je, 0);
23927
23937
  }, [Je]), Ot = le(() => {
23928
23938
  const ee = me.current;
23929
23939
  ee && ee.scrollBy({ left: 200, behavior: "smooth" });
23930
- }, []), qe = le(() => {
23940
+ }, []), ze = le(() => {
23931
23941
  const ee = me.current;
23932
23942
  ee && ee.scrollBy({ left: -200, behavior: "smooth" });
23933
23943
  }, []), lt = Z(!1), ot = Z(null), {
@@ -23980,10 +23990,10 @@ const { RangePicker: cT } = Zl, dT = ({ host: e, onChange: t }) => {
23980
23990
  let de = !1;
23981
23991
  e.forEach((Ee) => {
23982
23992
  if (Ee.type === "multi-variable" && Ee.key) {
23983
- const we = v[Ee.key];
23984
- if (Array.isArray(we) && we.length > 0) {
23985
- const He = Ee.maxCount ?? 9, ze = Math.min(we.length + 1, He);
23986
- Mt[Ee.key] !== ze && (ee[Ee.key] = ze, de = !0);
23993
+ const Ce = v[Ee.key];
23994
+ if (Array.isArray(Ce) && Ce.length > 0) {
23995
+ const Oe = Ee.maxCount ?? 9, Be = Math.min(Ce.length + 1, Oe);
23996
+ Mt[Ee.key] !== Be && (ee[Ee.key] = Be, de = !0);
23987
23997
  }
23988
23998
  }
23989
23999
  }), de && pn((Ee) => ({ ...Ee, ...ee }));
@@ -24014,85 +24024,85 @@ const { RangePicker: cT } = Zl, dT = ({ host: e, onChange: t }) => {
24014
24024
  const Wr = Z(/* @__PURE__ */ new Set()), Hi = Z(Ie), $i = Z(v);
24015
24025
  (Hi.current !== Ie || $i.current !== v) && (Hi.current = Ie, $i.current = v, Wr.current = /* @__PURE__ */ new Set()), ie(() => {
24016
24026
  if (!v || !Ie || Ie.length === 0) return;
24017
- const ee = Ie.filter((Ce) => Ce.type === "upload" && Ce.key);
24027
+ const ee = Ie.filter((Ae) => Ae.type === "upload" && Ae.key);
24018
24028
  if (ee.length === 0) return;
24019
- const de = {}, Ee = (Ce, Ae) => {
24020
- Ae && (Ae instanceof File ? de[Ce] = Ae : typeof Ae == "string" && Ae.trim() && (de[Ce] = Ae.trim()));
24029
+ const de = {}, Ee = (Ae, Se) => {
24030
+ Se && (Se instanceof File ? de[Ae] = Se : typeof Se == "string" && Se.trim() && (de[Ae] = Se.trim()));
24021
24031
  };
24022
- for (const Ce of ee) {
24023
- const Ae = Ce.key;
24024
- if (Wr.current.has(Ae)) continue;
24025
- const ve = v[Ae], Le = typeof Ce.maxCount == "number" && Ce.maxCount > 1;
24026
- if (Array.isArray(ve) && ve.length > 0) {
24027
- Le ? ve.forEach((Pe, Ye) => Ee(`${Ae}-${Ye}`, Pe)) : Ee(Ae, ve[0]);
24032
+ for (const Ae of ee) {
24033
+ const Se = Ae.key;
24034
+ if (Wr.current.has(Se)) continue;
24035
+ const _e = v[Se], Le = typeof Ae.maxCount == "number" && Ae.maxCount > 1;
24036
+ if (Array.isArray(_e) && _e.length > 0) {
24037
+ Le ? _e.forEach((Me, Ye) => Ee(`${Se}-${Ye}`, Me)) : Ee(Se, _e[0]);
24028
24038
  continue;
24029
24039
  }
24030
- if (ve && !Array.isArray(ve)) {
24031
- Ee(Ae, ve);
24040
+ if (_e && !Array.isArray(_e)) {
24041
+ Ee(Se, _e);
24032
24042
  continue;
24033
24043
  }
24034
24044
  if (Le)
24035
- for (let Pe = 0; Pe < Ce.maxCount; Pe++) {
24036
- const Ye = `${Ae}-${Pe}`, xt = v[Ye];
24045
+ for (let Me = 0; Me < Ae.maxCount; Me++) {
24046
+ const Ye = `${Se}-${Me}`, xt = v[Ye];
24037
24047
  if (!xt) break;
24038
24048
  Ee(Ye, xt);
24039
24049
  }
24040
24050
  }
24041
24051
  if (Object.keys(de).length === 0) return;
24042
- for (const Ce of ee)
24043
- v[Ce.key] !== void 0 && Wr.current.add(Ce.key);
24044
- j((Ce) => {
24045
- const Ae = { ...Ce };
24046
- let ve = !1;
24052
+ for (const Ae of ee)
24053
+ v[Ae.key] !== void 0 && Wr.current.add(Ae.key);
24054
+ j((Ae) => {
24055
+ const Se = { ...Ae };
24056
+ let _e = !1;
24047
24057
  for (const Le of ee) {
24048
- const Pe = Le.key;
24049
- if (v[Pe] === void 0) continue;
24058
+ const Me = Le.key;
24059
+ if (v[Me] === void 0) continue;
24050
24060
  if (typeof Le.maxCount == "number" && Le.maxCount > 1)
24051
24061
  for (let xt = 0; xt < Le.maxCount; xt++) {
24052
- const Kr = `${Pe}-${xt}`;
24053
- !de[Kr] && Ce[Kr] && (Ae[Kr] = null, ve = !0);
24062
+ const Kr = `${Me}-${xt}`;
24063
+ !de[Kr] && Ae[Kr] && (Se[Kr] = null, _e = !0);
24054
24064
  }
24055
24065
  }
24056
- for (const [Le, Pe] of Object.entries(de))
24057
- Ce[Le] !== Pe && (Ae[Le] = Pe, ve = !0);
24058
- return ve ? Ae : Ce;
24066
+ for (const [Le, Me] of Object.entries(de))
24067
+ Ae[Le] !== Me && (Se[Le] = Me, _e = !0);
24068
+ return _e ? Se : Ae;
24059
24069
  });
24060
- const we = Object.entries(de).filter(
24061
- ([, Ce]) => typeof Ce == "string"
24070
+ const Ce = Object.entries(de).filter(
24071
+ ([, Ae]) => typeof Ae == "string"
24062
24072
  );
24063
- if (we.length === 0) return;
24064
- const He = async (Ce) => {
24065
- const Ae = Ce.split("/").pop()?.split("?")[0] || "file", ve = decodeURIComponent(Ae), Le = async (Pe) => {
24066
- const Ye = await Pe.blob();
24067
- return new File([Ye], ve, { type: Ye.type || "application/octet-stream" });
24073
+ if (Ce.length === 0) return;
24074
+ const Oe = async (Ae) => {
24075
+ const Se = Ae.split("/").pop()?.split("?")[0] || "file", _e = decodeURIComponent(Se), Le = async (Me) => {
24076
+ const Ye = await Me.blob();
24077
+ return new File([Ye], _e, { type: Ye.type || "application/octet-stream" });
24068
24078
  };
24069
24079
  try {
24070
- const Pe = `/api/image-proxy?url=${encodeURIComponent(Ce)}`, Ye = await fetch(Pe);
24080
+ const Me = `/api/image-proxy?url=${encodeURIComponent(Ae)}`, Ye = await fetch(Me);
24071
24081
  if (Ye.ok) return Le(Ye);
24072
24082
  } catch {
24073
24083
  }
24074
24084
  return null;
24075
24085
  };
24076
- let ze = !1;
24086
+ let Be = !1;
24077
24087
  return Promise.all(
24078
- we.map(async ([Ce, Ae]) => {
24079
- const ve = await He(Ae);
24080
- return ve ? { key: Ce, file: ve } : null;
24088
+ Ce.map(async ([Ae, Se]) => {
24089
+ const _e = await Oe(Se);
24090
+ return _e ? { key: Ae, file: _e } : null;
24081
24091
  })
24082
- ).then((Ce) => {
24083
- if (ze) return;
24084
- const Ae = {};
24085
- for (const ve of Ce)
24086
- ve && (Ae[ve.key] = ve.file);
24087
- Object.keys(Ae).length > 0 && j((ve) => {
24088
- const Le = { ...ve };
24089
- let Pe = !1;
24090
- for (const [Ye, xt] of Object.entries(Ae))
24091
- typeof Le[Ye] == "string" && (Le[Ye] = xt, Pe = !0);
24092
- return Pe ? Le : ve;
24092
+ ).then((Ae) => {
24093
+ if (Be) return;
24094
+ const Se = {};
24095
+ for (const _e of Ae)
24096
+ _e && (Se[_e.key] = _e.file);
24097
+ Object.keys(Se).length > 0 && j((_e) => {
24098
+ const Le = { ..._e };
24099
+ let Me = !1;
24100
+ for (const [Ye, xt] of Object.entries(Se))
24101
+ typeof Le[Ye] == "string" && (Le[Ye] = xt, Me = !0);
24102
+ return Me ? Le : _e;
24093
24103
  });
24094
24104
  }), () => {
24095
- ze = !0;
24105
+ Be = !0;
24096
24106
  };
24097
24107
  }, [v, Ie]);
24098
24108
  const jr = Z(/* @__PURE__ */ new Set()), Ui = Z(""), qi = (e || []).filter((ee) => ee.key && ee.type !== "report-module" && ee.type !== "markdown-module").map((ee) => `${ee.type}:${ee.key}`).join("|");
@@ -24103,11 +24113,11 @@ const { RangePicker: cT } = Zl, dT = ({ host: e, onChange: t }) => {
24103
24113
  for (const de of ee) {
24104
24114
  const Ee = de.key;
24105
24115
  if (jr.current.has(Ee)) continue;
24106
- const we = v[Ee] ?? v[`${Ee}__url`];
24107
- if (!we || typeof we == "string" && !we.trim()) continue;
24108
- const He = Array.isArray(we) ? we[0] : String(we);
24109
- He && (jr.current.add(Ee), setTimeout(() => {
24110
- tr.current(Ee, He);
24116
+ const Ce = v[Ee] ?? v[`${Ee}__url`];
24117
+ if (!Ce || typeof Ce == "string" && !Ce.trim()) continue;
24118
+ const Oe = Array.isArray(Ce) ? Ce[0] : String(Ce);
24119
+ Oe && (jr.current.add(Ee), setTimeout(() => {
24120
+ tr.current(Ee, Oe);
24111
24121
  }, 100));
24112
24122
  }
24113
24123
  }, [v, e, tr]), jy(q, Ie, ne, W, x), Xy(q, Ie, W, p, x), Qy(q, Ie, ne, W, x), Ky(q, Ie, W, x), Jy(q, Ie, ne, Zn, nt, v), Vc(q, C, nt, ln, [Ie]);
@@ -24297,7 +24307,7 @@ const { RangePicker: cT } = Zl, dT = ({ host: e, onChange: t }) => {
24297
24307
  style: ql,
24298
24308
  children: [
24299
24309
  re.length > 0 && /* @__PURE__ */ pe("div", { className: "rte-footer-files-wrapper", children: [
24300
- xe.showLeft && /* @__PURE__ */ z("div", { className: "rte-footer-files-mask rte-footer-files-mask-left", onClick: qe, children: /* @__PURE__ */ z("span", { className: "rte-footer-files-arrow rte-footer-files-arrow-left", children: /* @__PURE__ */ z("svg", { style: { width: "16px", height: "16px", transform: "rotate(180deg)" }, "aria-hidden": "true", children: /* @__PURE__ */ z("use", { xlinkHref: "#icon-fanhuijiantou" }) }) }) }),
24310
+ xe.showLeft && /* @__PURE__ */ z("div", { className: "rte-footer-files-mask rte-footer-files-mask-left", onClick: ze, children: /* @__PURE__ */ z("span", { className: "rte-footer-files-arrow rte-footer-files-arrow-left", children: /* @__PURE__ */ z("svg", { style: { width: "16px", height: "16px", transform: "rotate(180deg)" }, "aria-hidden": "true", children: /* @__PURE__ */ z("use", { xlinkHref: "#icon-fanhuijiantou" }) }) }) }),
24301
24311
  /* @__PURE__ */ z(
24302
24312
  "div",
24303
24313
  {
@@ -24305,7 +24315,7 @@ const { RangePicker: cT } = Zl, dT = ({ host: e, onChange: t }) => {
24305
24315
  ref: me,
24306
24316
  onScroll: Je,
24307
24317
  children: re.map((ee, de) => {
24308
- const Ee = ee.type?.startsWith("image/") || /\.(png|jpe?g|gif|webp|bmp|svg)$/i.test(ee.name || ""), we = ee.size < 1024 ? `${ee.size}B` : ee.size < 1024 * 1024 ? `${Math.round(ee.size / 1024)}KB` : `${(ee.size / (1024 * 1024)).toFixed(1)}MB`;
24318
+ const Ee = ee.type?.startsWith("image/") || /\.(png|jpe?g|gif|webp|bmp|svg)$/i.test(ee.name || ""), Ce = ee.size < 1024 ? `${ee.size}B` : ee.size < 1024 * 1024 ? `${Math.round(ee.size / 1024)}KB` : `${(ee.size / (1024 * 1024)).toFixed(1)}MB`;
24309
24319
  return /* @__PURE__ */ pe("div", { className: "rte-footer-file-chip", children: [
24310
24320
  Ee ? /* @__PURE__ */ z(
24311
24321
  Er,
@@ -24324,12 +24334,12 @@ const { RangePicker: cT } = Zl, dT = ({ host: e, onChange: t }) => {
24324
24334
  alt: ee.name
24325
24335
  }
24326
24336
  ) : /* @__PURE__ */ z("div", { className: "rte-footer-file-icon", children: /* @__PURE__ */ z("svg", { style: { width: "18px", height: "18px" }, "aria-hidden": "true", children: /* @__PURE__ */ z("use", { xlinkHref: `#${(() => {
24327
- const He = (ee.name || "").split(".").pop()?.toLowerCase() || "";
24328
- return ["xls", "xla", "xlb", "xlc", "xlm", "xlsx", "xlt", "xlw", "csv", "tsv", "iif"].includes(He) ? "icon-a-xlsxcsv" : ["doc", "docx", "dot", "odt", "rtf", "wiz"].includes(He) ? "icon-docx" : ["ppt", "pptx", "pot", "ppa", "pps", "pwz"].includes(He) ? "icon-ppt" : ["txt", "asm", "bat", "c", "cc", "conf", "cpp", "css", "cxx", "def", "dic", "eml", "h", "hh", "in", "js", "ksh", "php", "pkl", "rb", "tar", "tex", "ts", "xml"].includes(He) ? "icon-txt" : He === "pdf" ? "icon-pdf" : ["html", "htm", "json", "ics", "ifb"].includes(He) ? "icon-a-htmljson" : He === "md" ? "icon-md" : "icon-lianjie";
24337
+ const Oe = (ee.name || "").split(".").pop()?.toLowerCase() || "";
24338
+ return ["xls", "xla", "xlb", "xlc", "xlm", "xlsx", "xlt", "xlw", "csv", "tsv", "iif"].includes(Oe) ? "icon-a-xlsxcsv" : ["doc", "docx", "dot", "odt", "rtf", "wiz"].includes(Oe) ? "icon-docx" : ["ppt", "pptx", "pot", "ppa", "pps", "pwz"].includes(Oe) ? "icon-ppt" : ["txt", "asm", "bat", "c", "cc", "conf", "cpp", "css", "cxx", "def", "dic", "eml", "h", "hh", "in", "js", "ksh", "php", "pkl", "rb", "tar", "tex", "ts", "xml"].includes(Oe) ? "icon-txt" : Oe === "pdf" ? "icon-pdf" : ["html", "htm", "json", "ics", "ifb"].includes(Oe) ? "icon-a-htmljson" : Oe === "md" ? "icon-md" : "icon-lianjie";
24329
24339
  })()}` }) }) }),
24330
24340
  /* @__PURE__ */ pe("div", { className: "rte-footer-file-info", children: [
24331
24341
  /* @__PURE__ */ z("span", { className: "rte-footer-file-name", title: ee.name, children: ee.name }),
24332
- /* @__PURE__ */ z("span", { className: "rte-footer-file-size", children: we })
24342
+ /* @__PURE__ */ z("span", { className: "rte-footer-file-size", children: Ce })
24333
24343
  ] }),
24334
24344
  /* @__PURE__ */ z(
24335
24345
  "span",