@uva-glass/component-library 3.50.5 → 3.50.7

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.
Files changed (61) hide show
  1. package/dist/{Lexical.prod-DBU6xTBY.js → Lexical.prod-BAE-wnll.js} +873 -863
  2. package/dist/Lexical.prod-BAE-wnll.js.map +1 -0
  3. package/dist/LexicalClipboard.prod-BS4qAkmJ.js +263 -0
  4. package/dist/LexicalClipboard.prod-BS4qAkmJ.js.map +1 -0
  5. package/dist/{LexicalLink.prod-DV9kT537.js → LexicalLink.prod-C6Or2Yo6.js} +97 -97
  6. package/dist/{LexicalLink.prod-DV9kT537.js.map → LexicalLink.prod-C6Or2Yo6.js.map} +1 -1
  7. package/dist/{LexicalList.prod-2UfLUgO1.js → LexicalList.prod-rTq41CO0.js} +24 -24
  8. package/dist/{LexicalList.prod-2UfLUgO1.js.map → LexicalList.prod-rTq41CO0.js.map} +1 -1
  9. package/dist/LexicalSelection.prod-fLzEGOT_.js +116 -0
  10. package/dist/LexicalSelection.prod-fLzEGOT_.js.map +1 -0
  11. package/dist/{LexicalTable.prod-CZ1mYUR-.js → LexicalTable.prod-BBI7yaOy.js} +118 -118
  12. package/dist/LexicalTable.prod-BBI7yaOy.js.map +1 -0
  13. package/dist/{LexicalUtils.prod-C3vvQk50.js → LexicalUtils.prod-D8DAKg7O.js} +36 -36
  14. package/dist/{LexicalUtils.prod-C3vvQk50.js.map → LexicalUtils.prod-D8DAKg7O.js.map} +1 -1
  15. package/dist/{TableCellResizerPlugin-CxFy7dbe.js → TableCellResizerPlugin-HPo4ZkHo.js} +39 -39
  16. package/dist/{TableCellResizerPlugin-CxFy7dbe.js.map → TableCellResizerPlugin-HPo4ZkHo.js.map} +1 -1
  17. package/dist/{TablePlugin-8TKXJMYE.js → TablePlugin-CeZO4BR1.js} +70 -70
  18. package/dist/{TablePlugin-8TKXJMYE.js.map → TablePlugin-CeZO4BR1.js.map} +1 -1
  19. package/dist/assets/StatusPill.css +1 -1
  20. package/dist/components/CheckboxTree/CheckboxTree.js +1 -1
  21. package/dist/components/FormInput/FormInput.js +1 -1
  22. package/dist/components/InputField/InputField.stories.js +1 -1
  23. package/dist/components/MultiSelect/MultiSelect.js +1 -1
  24. package/dist/components/MultiSelect/MultiSelect.stories.js +1 -1
  25. package/dist/components/MultiSelect/components/MultiSelectHeader.js +1 -1
  26. package/dist/components/MultiSelect/index.js +1 -1
  27. package/dist/components/PeriodSelector/PeriodSelector.js +1 -1
  28. package/dist/components/ProgrammeCard/ProgrammeCard.stories.js +1 -1
  29. package/dist/components/RadioTabSelector/RadioTabSelector.js +1 -1
  30. package/dist/components/RteEditor/EditorHeader/EditorHeader.js +1 -1
  31. package/dist/components/RteEditor/Plugins/BlockFormatPlugin/BlockFormatPlugin.js +7 -7
  32. package/dist/components/RteEditor/Plugins/HistoryPlugin/HistoryPlugin.js +2 -2
  33. package/dist/components/RteEditor/Plugins/LinkPlugin/AddLinkForm/AddLinkFrom.js +1 -1
  34. package/dist/components/RteEditor/Plugins/LinkPlugin/LinkPlugin.js +41 -41
  35. package/dist/components/RteEditor/Plugins/LinkPlugin/helpers.js +1 -1
  36. package/dist/components/RteEditor/Plugins/ListPlugin/ListPlugin.js +14 -14
  37. package/dist/components/RteEditor/Plugins/PasteHandlerPlugin/PasteHandlerPlugin.js +5 -5
  38. package/dist/components/RteEditor/Plugins/TableCellResizerPlugin/TableCellResizerPlugin.js +4 -4
  39. package/dist/components/RteEditor/Plugins/TableCellResizerPlugin/index.js +1 -1
  40. package/dist/components/RteEditor/Plugins/TablePlugin/AddTableFrom.js +1 -1
  41. package/dist/components/RteEditor/Plugins/TablePlugin/TablePlugin.js +4 -4
  42. package/dist/components/RteEditor/Plugins/TablePlugin/helpers.js +12 -12
  43. package/dist/components/RteEditor/Plugins/TablePlugin/index.js +1 -1
  44. package/dist/components/RteEditor/Plugins/ToolbarPlugin/ToolbarPlugin.js +16 -16
  45. package/dist/components/RteEditor/Plugins/index.js +2 -2
  46. package/dist/components/RteEditor/RteEditor.js +219 -219
  47. package/dist/components/RteEditor/RteEditor.js.map +1 -1
  48. package/dist/components/RteEditor/helpers.js +4 -4
  49. package/dist/components/RteEditor/nodes/TableWrapperNode/TableWrapperNode.js +15 -15
  50. package/dist/components/StatusPill/StatusPill.d.ts +2 -2
  51. package/dist/components/StatusPill/StatusPill.js +11 -9
  52. package/dist/components/StatusPill/StatusPill.js.map +1 -1
  53. package/dist/components/index.js +1 -1
  54. package/dist/index.js +1 -1
  55. package/package.json +6 -6
  56. package/dist/Lexical.prod-DBU6xTBY.js.map +0 -1
  57. package/dist/LexicalClipboard.prod-CzGBnMdD.js +0 -272
  58. package/dist/LexicalClipboard.prod-CzGBnMdD.js.map +0 -1
  59. package/dist/LexicalSelection.prod-C1JYA_go.js +0 -114
  60. package/dist/LexicalSelection.prod-C1JYA_go.js.map +0 -1
  61. package/dist/LexicalTable.prod-CZ1mYUR-.js.map +0 -1
@@ -1,6 +1,6 @@
1
- import { l as Q, u as me, k as Tt, U as jt, N as Vt, B as Ft, A as Zt, L as Qt } from "./LexicalUtils.prod-C3vvQk50.js";
2
- import { b as R, g as tt, d as ve, a as L, f as $, r as nt, j as Gt, e as Ce, K as dt, M as U, t as ot, T as en, m as Kt, l as re, u as ie, n as ke, O as rt, _ as D, y as tn, q as nn, L as on, p as rn, A as De, s as At, Z as ln, v as Ne, w as Ue, C as sn, z as an, B as cn, D as un, F as Ie, E as hn, G as dn, I as Ot, J as fn, N as V, Q as gn, R as mn, S as pn, V as _n, W as Cn, X as Sn, Y as wn, $ as yn, a0 as ge, a1 as ne, a2 as $e, a3 as bn, o as kt, a4 as Nn, a5 as vn, c as xn, a6 as Rn, a7 as Tn, a8 as ft, a9 as Fn, aa as gt, H as Kn, ab as mt, x as pt, h as Fe, ac as An } from "./Lexical.prod-DBU6xTBY.js";
3
- import { F as On, J as kn } from "./LexicalClipboard.prod-CzGBnMdD.js";
1
+ import { l as Z, u as me, k as Tt, U as jt, N as Vt, B as Ft, A as Qt, L as Zt } from "./LexicalUtils.prod-D8DAKg7O.js";
2
+ import { d as R, p as tt, g as ve, a as L, h as $, o as nt, i as Gt, r as Ce, B as dt, A as U, n as ot, w as en, C as At, j as re, c as ie, l as ke, P as rt, y as D, m as tn, G as nn, L as on, q as rn, D as De, t as Kt, Z as ln, _ as Ne, u as Ue, x as sn, z as an, E as cn, H as un, I as Ie, T as hn, J as dn, K as Ot, M as fn, N as V, O as gn, R as mn, S as pn, U as _n, V as Cn, W as Sn, X as wn, $ as yn, a0 as ge, a1 as ne, a2 as $e, a3 as bn, b as kt, a4 as Nn, a5 as vn, e as xn, a6 as Rn, a7 as Tn, a8 as ft, a9 as Fn, aa as gt, Q as An, ab as mt, v as pt, f as Fe, ac as Kn } from "./Lexical.prod-BAE-wnll.js";
3
+ import { F as On, _ as kn } from "./LexicalClipboard.prod-BS4qAkmJ.js";
4
4
  const lt = /^(\d+(?:\.\d+)?)px$/, W = { BOTH: 3, COLUMN: 2, NO_STATUS: 0, ROW: 1 };
5
5
  class ue extends tt {
6
6
  __colSpan;
@@ -32,7 +32,7 @@ class ue extends tt {
32
32
  }
33
33
  createDOM(e) {
34
34
  const t = document.createElement(this.getTag());
35
- return this.__width && (t.style.width = `${this.__width}px`), this.__colSpan > 1 && (t.colSpan = this.__colSpan), this.__rowSpan > 1 && (t.rowSpan = this.__rowSpan), this.__backgroundColor !== null && (t.style.backgroundColor = this.__backgroundColor), Xe(this.__verticalAlign) && (t.style.verticalAlign = this.__verticalAlign), Q(t, e.theme.tableCell, this.hasHeader() && e.theme.tableCellHeader), t;
35
+ return this.__width && (t.style.width = `${this.__width}px`), this.__colSpan > 1 && (t.colSpan = this.__colSpan), this.__rowSpan > 1 && (t.rowSpan = this.__rowSpan), this.__backgroundColor !== null && (t.style.backgroundColor = this.__backgroundColor), Xe(this.__verticalAlign) && (t.style.verticalAlign = this.__verticalAlign), Z(t, e.theme.tableCell, this.hasHeader() && e.theme.tableCellHeader), t;
36
36
  }
37
37
  exportDOM(e) {
38
38
  const t = super.exportDOM(e);
@@ -182,7 +182,7 @@ class Te extends tt {
182
182
  }
183
183
  createDOM(e) {
184
184
  const t = document.createElement("tr");
185
- return this.__height && (t.style.height = `${this.__height}px`), Q(t, e.theme.tableRow), t;
185
+ return this.__height && (t.style.height = `${this.__height}px`), Z(t, e.theme.tableRow), t;
186
186
  }
187
187
  extractWithChild(e, t, o) {
188
188
  return o === "html";
@@ -258,7 +258,7 @@ st && "InputEvent" in window && !$n && new window.InputEvent("input");
258
258
  const Ye = (n, e) => n === W.BOTH || n === e ? e : W.NO_STATUS;
259
259
  function co(n = !0) {
260
260
  const e = L();
261
- $(e) || K(e) || w(188);
261
+ $(e) || A(e) || w(188);
262
262
  const t = e.anchor.getNode(), o = e.focus.getNode(), [r] = I(t), [s, , l] = I(o), [, i, u] = J(l, s, r), { startRow: f } = u, { startRow: h } = i;
263
263
  return n ? qe(f + r.__rowSpan > h + s.__rowSpan ? r : s, !0) : qe(h < f ? s : r, !1);
264
264
  }
@@ -292,7 +292,7 @@ function qe(n, e = !0) {
292
292
  }
293
293
  function uo(n = !0) {
294
294
  const e = L();
295
- $(e) || K(e) || w(188);
295
+ $(e) || A(e) || w(188);
296
296
  const t = e.anchor.getNode(), o = e.focus.getNode(), [r] = I(t), [s, , l] = I(o), [, i, u] = J(l, s, r), { startColumn: f } = u, { startColumn: h } = i;
297
297
  return n ? je(f + r.__colSpan > h + s.__colSpan ? r : s, !0) : je(h < f ? s : r, !1);
298
298
  }
@@ -341,7 +341,7 @@ function je(n, e = !0, t = !0) {
341
341
  }
342
342
  function ho() {
343
343
  const n = L();
344
- $(n) || K(n) || w(188);
344
+ $(n) || A(n) || w(188);
345
345
  const e = n.anchor.getNode(), t = n.focus.getNode(), [o, , r] = I(e), [s] = I(t), [l, i, u] = J(r, o, s), { startColumn: f } = i, { startRow: h, startColumn: p } = u, _ = Math.min(f, p), a = Math.max(f + o.__colSpan - 1, p + s.__colSpan - 1), c = a - _ + 1;
346
346
  if (l[0].length === a - _ + 1) return r.selectPrevious(), void r.remove();
347
347
  const g = l.length;
@@ -414,7 +414,7 @@ function Wn(n) {
414
414
  const e = n.getFirstChildOrThrow();
415
415
  return !(!rt(e) || !e.isEmpty());
416
416
  }
417
- function Hn(n) {
417
+ function Pn(n) {
418
418
  const [e, t, o] = I(n), r = e.__colSpan, s = e.__rowSpan;
419
419
  if (r === 1 && s === 1) return;
420
420
  const [l, i] = J(o, e, e), { startColumn: u, startRow: f } = i, h = e.__headerState & W.COLUMN, p = Array.from({ length: r }, (c, g) => {
@@ -559,7 +559,7 @@ class ze {
559
559
  this._cachedNodes = e;
560
560
  }
561
561
  is(e) {
562
- return K(e) && this.tableKey === e.tableKey && this.anchor.is(e.anchor) && this.focus.is(e.focus);
562
+ return A(e) && this.tableKey === e.tableKey && this.anchor.is(e.anchor) && this.focus.is(e.focus);
563
563
  }
564
564
  set(e, t, o) {
565
565
  this.dirty = this.dirty || e !== this.tableKey || t !== this.anchor.key || o !== this.focus.key, this.tableKey = e, this.anchor.key = t, this.focus.key = o, this._cachedNodes = null;
@@ -635,16 +635,16 @@ class ze {
635
635
  return t;
636
636
  }
637
637
  }
638
- function K(n) {
638
+ function A(n) {
639
639
  return n instanceof ze;
640
640
  }
641
641
  function zt() {
642
642
  const n = ke("root", 0, "element"), e = ke("root", 0, "element");
643
643
  return new ze("root", n, e);
644
644
  }
645
- function Pn(n, e, t) {
645
+ function Hn(n, e, t) {
646
646
  n.getKey(), e.getKey(), t.getKey();
647
- const o = L(), r = K(o) ? o.clone() : zt();
647
+ const o = L(), r = A(o) ? o.clone() : zt();
648
648
  return r.set(n.getKey(), e.getKey(), t.getKey()), r;
649
649
  }
650
650
  function Bn(n, e) {
@@ -654,7 +654,7 @@ function Bn(n, e) {
654
654
  r === void 0 ? t.pop() : e(r) !== !1 && D(r) && t.push(r.getChildren());
655
655
  }
656
656
  }
657
- function Lt(n, e = Kt()) {
657
+ function Lt(n, e = At()) {
658
658
  const t = ie(n);
659
659
  M(t) || w(231, n);
660
660
  const o = ae(t, e.getElementByKey(n));
@@ -719,7 +719,7 @@ class Dn {
719
719
  const e = this.editor;
720
720
  this.isHighlightingCells = !1, this.anchorX = -1, this.anchorY = -1, this.focusX = -1, this.focusY = -1, this.tableSelection = null, this.anchorCellNodeKey = null, this.focusCellNodeKey = null, this.anchorCell = null, this.focusCell = null, this.hasHijackedSelectionStyles = !1, this.$enableHighlightStyle();
721
721
  const { tableNode: t, tableElement: o } = this.$lookup();
722
- Ke(e, pe(t, o), null), L() !== null && (ne(null), e.dispatchCommand(ge, void 0));
722
+ Ae(e, pe(t, o), null), L() !== null && (ne(null), e.dispatchCommand(ge, void 0));
723
723
  }
724
724
  $enableHighlightStyle() {
725
725
  const e = this.editor, { tableElement: t } = this.$lookup();
@@ -727,13 +727,13 @@ class Dn {
727
727
  }
728
728
  $disableHighlightStyle() {
729
729
  const { tableElement: e } = this.$lookup();
730
- Q(e, this.editor._config.theme.tableSelection), this.hasHijackedSelectionStyles = !0;
730
+ Z(e, this.editor._config.theme.tableSelection), this.hasHijackedSelectionStyles = !0;
731
731
  }
732
732
  $updateTableTableSelection(e) {
733
733
  if (e !== null) {
734
734
  e.tableKey !== this.tableNodeKey && w(233, e.tableKey, this.tableNodeKey);
735
735
  const t = this.editor;
736
- this.tableSelection = e, this.isHighlightingCells = !0, this.$disableHighlightStyle(), this.updateDOMSelection(), Ke(t, this.table, this.tableSelection);
736
+ this.tableSelection = e, this.isHighlightingCells = !0, this.$disableHighlightStyle(), this.updateDOMSelection(), Ae(t, this.table, this.tableSelection);
737
737
  } else this.$clearHighlight();
738
738
  }
739
739
  setShouldCheckSelection() {
@@ -761,8 +761,8 @@ class Dn {
761
761
  if (s === this.focusX && l === this.focusY) return !1;
762
762
  } else this.isHighlightingCells = !0, this.$disableHighlightStyle();
763
763
  if (this.focusX = s, this.focusY = l, this.isHighlightingCells) {
764
- const i = Qe(r, e.elem);
765
- if (this.tableSelection != null && this.anchorCellNodeKey != null && i !== null) return this.focusCellNodeKey = i.getKey(), this.tableSelection = Pn(r, this.$getAnchorTableCellOrThrow(), i), ne(this.tableSelection), o.dispatchCommand(ge, void 0), Ke(o, this.table, this.tableSelection), !0;
764
+ const i = Ze(r, e.elem);
765
+ if (this.tableSelection != null && this.anchorCellNodeKey != null && i !== null) return this.focusCellNodeKey = i.getKey(), this.tableSelection = Hn(r, this.$getAnchorTableCellOrThrow(), i), ne(this.tableSelection), o.dispatchCommand(ge, void 0), Ae(o, this.table, this.tableSelection), !0;
766
766
  }
767
767
  return !1;
768
768
  }
@@ -782,7 +782,7 @@ class Dn {
782
782
  }
783
783
  $setAnchorCellForSelection(e) {
784
784
  this.isHighlightingCells = !1, this.anchorCell = e, this.anchorX = e.x, this.anchorY = e.y;
785
- const { tableNode: t } = this.$lookup(), o = Qe(t, e.elem);
785
+ const { tableNode: t } = this.$lookup(), o = Ze(t, e.elem);
786
786
  if (o !== null) {
787
787
  const r = o.getKey();
788
788
  this.tableSelection = this.tableSelection != null ? this.tableSelection.clone() : zt(), this.anchorCellNodeKey = r;
@@ -790,7 +790,7 @@ class Dn {
790
790
  }
791
791
  $formatCells(e) {
792
792
  const t = L();
793
- K(t) || w(236);
793
+ A(t) || w(236);
794
794
  const o = Nn(), r = o.anchor, s = o.focus, l = t.getNodes().filter(y);
795
795
  l.length > 0 || w(237);
796
796
  const i = l[0].getFirstChild(), u = rt(i) ? i.getFormatFlags(e, null) : null;
@@ -802,7 +802,7 @@ class Dn {
802
802
  const { editor: e } = this, t = ie(this.tableNodeKey);
803
803
  if (!M(t)) throw new Error("Expected TableNode.");
804
804
  const o = L();
805
- K(o) || w(253);
805
+ A(o) || w(253);
806
806
  const r = o.getNodes().filter(y), s = t.getFirstChild(), l = t.getLastChild();
807
807
  if (r.length > 0 && s !== null && l !== null && E(s) && E(l) && r[0] === s.getFirstChild() && r[r.length - 1] === l.getLastChild()) {
808
808
  t.selectPrevious();
@@ -816,10 +816,10 @@ class Dn {
816
816
  h !== u && h.remove();
817
817
  });
818
818
  }
819
- }), Ke(e, this.table, null), ne(null), e.dispatchCommand(ge, void 0);
819
+ }), Ae(e, this.table, null), ne(null), e.dispatchCommand(ge, void 0);
820
820
  }
821
821
  }
822
- const Ze = "__lexicalTableSelection";
822
+ const Qe = "__lexicalTableSelection";
823
823
  function fe(n) {
824
824
  return ve(n) && n.nodeName === "TABLE";
825
825
  }
@@ -844,16 +844,16 @@ function Xn(n, e, t, o) {
844
844
  r !== null && s !== null || w(246);
845
845
  const l = new Dn(t, n.getKey()), i = ae(n, e);
846
846
  (function(a, c) {
847
- yt(a) !== null && w(205), a[Ze] = c;
847
+ yt(a) !== null && w(205), a[Qe] = c;
848
848
  })(i, l), l.listenersToRemove.add(() => (function(a, c) {
849
- yt(a) === c && delete a[Ze];
849
+ yt(a) === c && delete a[Qe];
850
850
  })(i, l));
851
851
  const u = (a) => {
852
852
  if (l.pointerType = a.pointerType, a.button !== 0 || !Ne(a.target) || !s) return;
853
853
  const c = Me(a.target);
854
854
  c !== null && t.update(() => {
855
855
  const g = Ue();
856
- if (Ct && a.shiftKey && Z(g, n) && ($(g) || K(g))) {
856
+ if (Ct && a.shiftKey && Q(g, n) && ($(g) || A(g))) {
857
857
  const d = g.anchor.getNode(), m = xe(n, g.anchor.getNode());
858
858
  m ? (l.$setAnchorCellForSelection(se(l, m)), l.$setFocusCellForSelection(c), ee(a)) : (n.isBefore(d) ? n.selectStart() : n.selectEnd()).anchor.set(g.anchor.key, g.anchor.offset, g.anchor.type);
859
859
  } else a.pointerType !== "touch" && l.$setAnchorCellForSelection(c);
@@ -886,16 +886,16 @@ function Xn(n, e, t, o) {
886
886
  const c = a.target;
887
887
  a.button === 0 && Ne(c) && t.update(() => {
888
888
  const g = L();
889
- K(g) && g.tableKey === l.tableNodeKey && r.contains(c) && l.$clearHighlight();
889
+ A(g) && g.tableKey === l.tableNodeKey && r.contains(c) && l.$clearHighlight();
890
890
  });
891
891
  };
892
892
  s.addEventListener("pointerdown", h, l.listenerOptions), l.listenersToRemove.add(() => {
893
893
  s.removeEventListener("pointerdown", h);
894
894
  });
895
- for (const [a, c] of In) l.listenersToRemove.add(t.registerCommand(a, (g) => Pt(t, g, c, n, l), Ie));
895
+ for (const [a, c] of In) l.listenersToRemove.add(t.registerCommand(a, (g) => Ht(t, g, c, n, l), Ie));
896
896
  l.listenersToRemove.add(t.registerCommand(hn, (a) => {
897
897
  const c = L();
898
- if (K(c)) {
898
+ if (A(c)) {
899
899
  const g = xe(n, c.focus.getNode());
900
900
  if (g !== null) return ee(a), g.selectEnd(), !0;
901
901
  }
@@ -903,8 +903,8 @@ function Xn(n, e, t, o) {
903
903
  }, Ie));
904
904
  const p = (a) => () => {
905
905
  const c = L();
906
- if (!Z(c, n)) return !1;
907
- if (K(c)) return l.$clearText(), !0;
906
+ if (!Q(c, n)) return !1;
907
+ if (A(c)) return l.$clearText(), !0;
908
908
  if ($(c)) {
909
909
  if (!y(xe(n, c.anchor.getNode()))) return !1;
910
910
  const g = c.anchor.getNode(), d = c.focus.getNode(), m = n.isParentOf(g), C = n.isParentOf(d);
@@ -918,28 +918,28 @@ function Xn(n, e, t, o) {
918
918
  for (const a of Jn) l.listenersToRemove.add(t.registerCommand(a, p(a), V));
919
919
  const _ = (a) => {
920
920
  const c = L();
921
- if (!K(c) && !$(c)) return !1;
921
+ if (!A(c) && !$(c)) return !1;
922
922
  const g = n.isParentOf(c.anchor.getNode());
923
923
  if (g !== n.isParentOf(c.focus.getNode())) {
924
924
  const d = g ? "anchor" : "focus", m = g ? "focus" : "anchor", { key: C, offset: S, type: N } = c[m];
925
925
  return n[c[d].isBefore(c[m]) ? "selectPrevious" : "selectNext"]()[m].set(C, S, N), !1;
926
926
  }
927
- return !!Z(c, n) && !!K(c) && (a && (a.preventDefault(), a.stopPropagation()), l.$clearText(), !0);
927
+ return !!Q(c, n) && !!A(c) && (a && (a.preventDefault(), a.stopPropagation()), l.$clearText(), !0);
928
928
  };
929
929
  for (const a of Un) l.listenersToRemove.add(t.registerCommand(a, _, V));
930
930
  return l.listenersToRemove.add(t.registerCommand(pn, (a) => {
931
931
  const c = L();
932
932
  if (c) {
933
- if (!K(c) && !$(c)) return !1;
934
- On(t, Qt(a, ClipboardEvent) ? a : null, kn(c));
933
+ if (!A(c) && !$(c)) return !1;
934
+ On(t, Zt(a, ClipboardEvent) ? a : null, kn(c));
935
935
  const g = _(a);
936
936
  return $(c) ? (c.removeText(), !0) : g;
937
937
  }
938
938
  return !1;
939
939
  }, V)), l.listenersToRemove.add(t.registerCommand(_n, (a) => {
940
940
  const c = L();
941
- if (!Z(c, n)) return !1;
942
- if (K(c)) return l.$formatCells(a), !0;
941
+ if (!Q(c, n)) return !1;
942
+ if (A(c)) return l.$formatCells(a), !0;
943
943
  if ($(c)) {
944
944
  const g = R(c.anchor.getNode(), (d) => y(d));
945
945
  if (!y(g)) return !1;
@@ -947,15 +947,15 @@ function Xn(n, e, t, o) {
947
947
  return !1;
948
948
  }, V)), l.listenersToRemove.add(t.registerCommand(Cn, (a) => {
949
949
  const c = L();
950
- if (!K(c) || !Z(c, n)) return !1;
950
+ if (!A(c) || !Q(c, n)) return !1;
951
951
  const g = c.anchor.getNode(), d = c.focus.getNode();
952
952
  if (!y(g) || !y(d)) return !1;
953
953
  if ((function(O, z) {
954
- if (K(O)) {
955
- const F = O.anchor.getNode(), A = O.focus.getNode();
956
- if (z && F && A) {
957
- const [H] = J(z, F, A);
958
- return F.getKey() === H[0][0].cell.getKey() && A.getKey() === H[H.length - 1].at(-1).cell.getKey();
954
+ if (A(O)) {
955
+ const F = O.anchor.getNode(), K = O.focus.getNode();
956
+ if (z && F && K) {
957
+ const [P] = J(z, F, K);
958
+ return F.getKey() === P[0][0].cell.getKey() && K.getKey() === P[P.length - 1].at(-1).cell.getKey();
959
959
  }
960
960
  }
961
961
  return !1;
@@ -965,17 +965,17 @@ function Xn(n, e, t, o) {
965
965
  const F = m[O][z].cell;
966
966
  if (k.has(F)) continue;
967
967
  k.add(F), F.setFormat(a);
968
- const A = F.getChildren();
969
- for (let H = 0; H < A.length; H++) {
970
- const B = A[H];
968
+ const K = F.getChildren();
969
+ for (let P = 0; P < K.length; P++) {
970
+ const B = K[P];
971
971
  D(B) && !B.isInline() && B.setFormat(a);
972
972
  }
973
973
  }
974
974
  return !0;
975
975
  }, V)), l.listenersToRemove.add(t.registerCommand(Sn, (a) => {
976
976
  const c = L();
977
- if (!Z(c, n)) return !1;
978
- if (K(c)) return l.$clearHighlight(), !1;
977
+ if (!Q(c, n)) return !1;
978
+ if (A(c)) return l.$clearHighlight(), !1;
979
979
  if ($(c)) {
980
980
  const g = R(c.anchor.getNode(), (d) => y(d));
981
981
  if (!y(g)) return !1;
@@ -987,7 +987,7 @@ function Xn(n, e, t, o) {
987
987
  return !1;
988
988
  }, V)), o && l.listenersToRemove.add(t.registerCommand(wn, (a) => {
989
989
  const c = L();
990
- if (!$(c) || !c.isCollapsed() || !Z(c, n)) return !1;
990
+ if (!$(c) || !c.isCollapsed() || !Q(c, n)) return !1;
991
991
  const g = be(c.anchor.getNode());
992
992
  return !(g === null || !n.is(_e(g))) && (ee(a), (function(d, m) {
993
993
  const C = m === "next" ? "getNextSibling" : "getPreviousSibling", S = m === "next" ? "getFirstChild" : "getLastChild", N = d[C]();
@@ -1001,60 +1001,60 @@ function Xn(n, e, t, o) {
1001
1001
  const v = R(b, M);
1002
1002
  v === null && w(248), m === "next" ? v.selectNext() : v.selectPrevious();
1003
1003
  })(g, a.shiftKey ? "previous" : "next"), !0);
1004
- }, V)), l.listenersToRemove.add(t.registerCommand(yn, (a) => n.isSelected(), Ie)), l.listenersToRemove.add(t.registerCommand(At, (a, c) => {
1004
+ }, V)), l.listenersToRemove.add(t.registerCommand(yn, (a) => n.isSelected(), Ie)), l.listenersToRemove.add(t.registerCommand(Kt, (a, c) => {
1005
1005
  if (t !== c) return !1;
1006
- const { nodes: g, selection: d } = a, m = d.getStartEndPoints(), C = K(d), S = $(d) && R(d.anchor.getNode(), (x) => y(x)) !== null && R(d.focus.getNode(), (x) => y(x)) !== null || C;
1006
+ const { nodes: g, selection: d } = a, m = d.getStartEndPoints(), C = A(d), S = $(d) && R(d.anchor.getNode(), (x) => y(x)) !== null && R(d.focus.getNode(), (x) => y(x)) !== null || C;
1007
1007
  if (g.length !== 1 || !M(g[0]) || !S || m === null) return !1;
1008
1008
  const [N, b] = m, [v, T, k] = I(N), O = R(b.getNode(), (x) => y(x));
1009
1009
  if (!(y(v) && y(O) && E(T) && M(k))) return !1;
1010
- const z = g[0], [F, A, H] = J(k, v, O), [B] = oe(z, null, null), te = F.length, Se = te > 0 ? F[0].length : 0;
1011
- let q = A.startRow, P = A.startColumn, le = B.length, he = le > 0 ? B[0].length : 0;
1010
+ const z = g[0], [F, K, P] = J(k, v, O), [B] = oe(z, null, null), te = F.length, Se = te > 0 ? F[0].length : 0;
1011
+ let q = K.startRow, H = K.startColumn, le = B.length, he = le > 0 ? B[0].length : 0;
1012
1012
  if (C) {
1013
- const x = Ee(F, A, H), X = x.maxRow - x.minRow + 1, j = x.maxColumn - x.minColumn + 1;
1014
- q = x.minRow, P = x.minColumn, le = Math.min(le, X), he = Math.min(he, j);
1013
+ const x = Ee(F, K, P), X = x.maxRow - x.minRow + 1, j = x.maxColumn - x.minColumn + 1;
1014
+ q = x.minRow, H = x.minColumn, le = Math.min(le, X), he = Math.min(he, j);
1015
1015
  }
1016
1016
  let Le = !1;
1017
- const Bt = Math.min(te, q + le) - 1, Dt = Math.min(Se, P + he) - 1, ut = /* @__PURE__ */ new Set();
1018
- for (let x = q; x <= Bt; x++) for (let X = P; X <= Dt; X++) {
1017
+ const Bt = Math.min(te, q + le) - 1, Dt = Math.min(Se, H + he) - 1, ut = /* @__PURE__ */ new Set();
1018
+ for (let x = q; x <= Bt; x++) for (let X = H; X <= Dt; X++) {
1019
1019
  const j = F[x][X];
1020
- ut.has(j.cell.getKey()) || j.cell.__rowSpan === 1 && j.cell.__colSpan === 1 || (Hn(j.cell), ut.add(j.cell.getKey()), Le = !0);
1020
+ ut.has(j.cell.getKey()) || j.cell.__rowSpan === 1 && j.cell.__colSpan === 1 || (Pn(j.cell), ut.add(j.cell.getKey()), Le = !0);
1021
1021
  }
1022
1022
  let [we] = oe(k.getWritable(), null, null);
1023
1023
  const It = le - te + q;
1024
1024
  for (let x = 0; x < It; x++)
1025
1025
  qe(we[te - 1][0].cell);
1026
- const Jt = he - Se + P;
1026
+ const Jt = he - Se + H;
1027
1027
  for (let x = 0; x < Jt; x++)
1028
1028
  je(we[0][Se - 1].cell, !0, !1);
1029
1029
  [we] = oe(k.getWritable(), null, null);
1030
- for (let x = q; x < q + le; x++) for (let X = P; X < P + he; X++) {
1031
- const j = x - q, ht = X - P, We = B[j][ht];
1030
+ for (let x = q; x < q + le; x++) for (let X = H; X < H + he; X++) {
1031
+ const j = x - q, ht = X - H, We = B[j][ht];
1032
1032
  if (We.startRow !== j || We.startColumn !== ht) continue;
1033
1033
  const ye = We.cell;
1034
1034
  if (ye.__rowSpan !== 1 || ye.__colSpan !== 1) {
1035
- const G = [], Xt = Math.min(x + ye.__rowSpan, q + le) - 1, Yt = Math.min(X + ye.__colSpan, P + he) - 1;
1036
- for (let Pe = x; Pe <= Xt; Pe++) for (let Be = X; Be <= Yt; Be++) {
1037
- const qt = we[Pe][Be];
1035
+ const G = [], Xt = Math.min(x + ye.__rowSpan, q + le) - 1, Yt = Math.min(X + ye.__colSpan, H + he) - 1;
1036
+ for (let He = x; He <= Xt; He++) for (let Be = X; Be <= Yt; Be++) {
1037
+ const qt = we[He][Be];
1038
1038
  G.push(qt.cell);
1039
1039
  }
1040
1040
  Ln(G), Le = !0;
1041
1041
  }
1042
- const { cell: He } = we[x][X], Ut = He.getChildren();
1042
+ const { cell: Pe } = we[x][X], Ut = Pe.getChildren();
1043
1043
  ye.getChildren().forEach((G) => {
1044
- Ce(G) && U().append(G), He.append(G);
1044
+ Ce(G) && U().append(G), Pe.append(G);
1045
1045
  }), Ut.forEach((G) => G.remove());
1046
1046
  }
1047
1047
  if (C && Le) {
1048
1048
  const [x] = oe(k.getWritable(), null, null);
1049
- x[A.startRow][A.startColumn].cell.selectEnd();
1049
+ x[K.startRow][K.startColumn].cell.selectEnd();
1050
1050
  }
1051
1051
  return !0;
1052
1052
  }, V)), l.listenersToRemove.add(t.registerCommand(ge, () => {
1053
1053
  const a = L(), c = Ue(), g = l.getAndClearNextFocus();
1054
1054
  if (g !== null) {
1055
1055
  const { focusCell: d } = g;
1056
- if (K(a) && a.tableKey === l.tableNodeKey) return (d.x !== l.focusX || d.y !== l.focusY) && (l.$setFocusCellForSelection(d), !0);
1057
- if (d !== l.anchorCell && Z(a, n)) return l.$setFocusCellForSelection(d), !0;
1056
+ if (A(a) && a.tableKey === l.tableNodeKey) return (d.x !== l.focusX || d.y !== l.focusY) && (l.$setFocusCellForSelection(d), !0);
1057
+ if (d !== l.anchorCell && Q(a, n)) return l.$setFocusCellForSelection(d), !0;
1058
1058
  }
1059
1059
  if (l.getAndClearShouldCheckSelection() && $(c) && $(a) && a.isCollapsed()) {
1060
1060
  const d = a.anchor.getNode(), m = n.getFirstChild(), C = be(d);
@@ -1068,18 +1068,18 @@ function Xn(n, e, t, o) {
1068
1068
  if (k) {
1069
1069
  const F = a.clone();
1070
1070
  if (T) {
1071
- const [A] = J(n, b, b), H = A[0][0].cell, B = A[A.length - 1].at(-1).cell;
1072
- F.focus.set(z ? H.getKey() : B.getKey(), z ? H.getChildrenSize() : B.getChildrenSize(), "element");
1071
+ const [K] = J(n, b, b), P = K[0][0].cell, B = K[K.length - 1].at(-1).cell;
1072
+ F.focus.set(z ? P.getKey() : B.getKey(), z ? P.getChildrenSize() : B.getChildrenSize(), "element");
1073
1073
  } else if (v) {
1074
- const [A] = J(n, N, N), H = A[0][0].cell, B = A[A.length - 1].at(-1).cell;
1075
- F.anchor.set(z ? B.getKey() : H.getKey(), z ? B.getChildrenSize() : 0, "element");
1074
+ const [K] = J(n, N, N), P = K[0][0].cell, B = K[K.length - 1].at(-1).cell;
1075
+ F.anchor.set(z ? B.getKey() : P.getKey(), z ? B.getChildrenSize() : 0, "element");
1076
1076
  }
1077
1077
  ne(F), Nt(t, l);
1078
1078
  } else if (O && (N.is(b) || (l.$setAnchorCellForSelection(se(l, N)), l.$setFocusCellForSelection(se(l, b), !0)), l.pointerType === "touch" && l.isSelecting && a.isCollapsed() && $(c) && c.isCollapsed())) {
1079
1079
  const F = be(c.anchor.getNode());
1080
1080
  F && !F.is(b) && (l.$setAnchorCellForSelection(se(l, F)), l.$setFocusCellForSelection(se(l, b), !0), l.pointerType = null);
1081
1081
  }
1082
- } else if (a && K(a) && a.is(c) && a.tableKey === n.getKey()) {
1082
+ } else if (a && A(a) && a.is(c) && a.tableKey === n.getKey()) {
1083
1083
  const d = $e(s);
1084
1084
  if (d && d.anchorNode && d.focusNode) {
1085
1085
  const m = re(d.focusNode), C = m && !n.isParentOf(m), S = re(d.anchorNode), N = S && n.isParentOf(S);
@@ -1089,21 +1089,21 @@ function Xn(n, e, t, o) {
1089
1089
  }
1090
1090
  }
1091
1091
  }
1092
- return a && !a.is(c) && (K(a) || K(c)) && l.tableSelection && !l.tableSelection.is(c) ? (K(a) && a.tableKey === l.tableNodeKey ? l.$updateTableTableSelection(a) : !K(a) && K(c) && c.tableKey === l.tableNodeKey && l.$updateTableTableSelection(null), !1) : (l.hasHijackedSelectionStyles && !n.isSelected() ? (function(d, m) {
1092
+ return a && !a.is(c) && (A(a) || A(c)) && l.tableSelection && !l.tableSelection.is(c) ? (A(a) && a.tableKey === l.tableNodeKey ? l.$updateTableTableSelection(a) : !A(a) && A(c) && c.tableKey === l.tableNodeKey && l.$updateTableTableSelection(null), !1) : (l.hasHijackedSelectionStyles && !n.isSelected() ? (function(d, m) {
1093
1093
  m.$enableHighlightStyle(), at(m.table, (C) => {
1094
1094
  const S = C.elem;
1095
- C.highlighted = !1, Ht(d, C), S.getAttribute("style") || S.removeAttribute("style");
1095
+ C.highlighted = !1, Pt(d, C), S.getAttribute("style") || S.removeAttribute("style");
1096
1096
  });
1097
1097
  })(t, l) : !l.hasHijackedSelectionStyles && n.isSelected() && Nt(t, l), !1);
1098
1098
  }, V)), l.listenersToRemove.add(t.registerCommand(kt, () => {
1099
1099
  const a = L();
1100
- if (!$(a) || !a.isCollapsed() || !Z(a, n)) return !1;
1100
+ if (!$(a) || !a.isCollapsed() || !Q(a, n)) return !1;
1101
1101
  const c = xt(t, a, n);
1102
1102
  return !!c && (vt(c, n), !0);
1103
1103
  }, V)), l;
1104
1104
  }
1105
1105
  function yt(n) {
1106
- return n[Ze] || null;
1106
+ return n[Qe] || null;
1107
1107
  }
1108
1108
  function Me(n) {
1109
1109
  let e = n;
@@ -1158,11 +1158,11 @@ function pe(n, e) {
1158
1158
  }
1159
1159
  return o.columns = s + 1, o.rows = l + 1, o;
1160
1160
  }
1161
- function Ke(n, e, t) {
1161
+ function Ae(n, e, t) {
1162
1162
  const o = new Set(t ? t.getNodes() : []);
1163
1163
  at(e, (r, s) => {
1164
1164
  const l = r.elem;
1165
- o.has(s) ? (r.highlighted = !0, Wt(n, r)) : (r.highlighted = !1, Ht(n, r), l.getAttribute("style") || l.removeAttribute("style"));
1165
+ o.has(s) ? (r.highlighted = !0, Wt(n, r)) : (r.highlighted = !1, Pt(n, r), l.getAttribute("style") || l.removeAttribute("style"));
1166
1166
  });
1167
1167
  }
1168
1168
  function at(n, e) {
@@ -1210,7 +1210,7 @@ function Je(n, e) {
1210
1210
  }
1211
1211
  return [t, o];
1212
1212
  }
1213
- function Ae([n, e]) {
1213
+ function Ke([n, e]) {
1214
1214
  return [n === "minColumn" ? "maxColumn" : "minColumn", e === "minRow" ? "maxRow" : "minRow"];
1215
1215
  }
1216
1216
  function de(n, e, [t, o]) {
@@ -1222,15 +1222,15 @@ function de(n, e, [t, o]) {
1222
1222
  function qn(n, e, t, o, r) {
1223
1223
  const s = Ee(e, t, o), l = (function(v, T) {
1224
1224
  const { minColumn: k, maxColumn: O, minRow: z, maxRow: F } = T;
1225
- let A = 1, H = 1, B = 1, te = 1;
1225
+ let K = 1, P = 1, B = 1, te = 1;
1226
1226
  const Se = v[z], q = v[F];
1227
- for (let P = k; P <= O; P++) A = Math.max(A, Se[P].cell.__rowSpan), te = Math.max(te, q[P].cell.__rowSpan);
1228
- for (let P = z; P <= F; P++) H = Math.max(H, v[P][k].cell.__colSpan), B = Math.max(B, v[P][O].cell.__colSpan);
1229
- return { bottomSpan: te, leftSpan: H, rightSpan: B, topSpan: A };
1227
+ for (let H = k; H <= O; H++) K = Math.max(K, Se[H].cell.__rowSpan), te = Math.max(te, q[H].cell.__rowSpan);
1228
+ for (let H = z; H <= F; H++) P = Math.max(P, v[H][k].cell.__colSpan), B = Math.max(B, v[H][O].cell.__colSpan);
1229
+ return { bottomSpan: te, leftSpan: P, rightSpan: B, topSpan: K };
1230
1230
  })(e, s), { topSpan: i, leftSpan: u, bottomSpan: f, rightSpan: h } = l, p = (function(v, T) {
1231
1231
  const k = Je(v, T);
1232
1232
  return k === null && w(249, T.cell.getKey()), k;
1233
- })(s, t), [_, a] = Ae(p);
1233
+ })(s, t), [_, a] = Ke(p);
1234
1234
  let c = s[_], g = s[a];
1235
1235
  r === "forward" ? c += _ === "maxColumn" ? 1 : u : r === "backward" ? c -= _ === "minColumn" ? 1 : h : r === "down" ? g += a === "maxRow" ? 1 : i : r === "up" && (g -= a === "minRow" ? 1 : f);
1236
1236
  const d = e[g];
@@ -1239,16 +1239,16 @@ function qn(n, e, t, o, r) {
1239
1239
  if (m === void 0) return !1;
1240
1240
  const [C, S] = (function(v, T, k) {
1241
1241
  const O = Ee(v, T, k), z = Je(O, T);
1242
- if (z) return [de(v, O, z), de(v, O, Ae(z))];
1242
+ if (z) return [de(v, O, z), de(v, O, Ke(z))];
1243
1243
  const F = Je(O, k);
1244
- if (F) return [de(v, O, Ae(F)), de(v, O, F)];
1245
- const A = ["minColumn", "minRow"];
1246
- return [de(v, O, A), de(v, O, Ae(A))];
1244
+ if (F) return [de(v, O, Ke(F)), de(v, O, F)];
1245
+ const K = ["minColumn", "minRow"];
1246
+ return [de(v, O, K), de(v, O, Ke(K))];
1247
1247
  })(e, t, m), N = se(n, C.cell), b = se(n, S.cell);
1248
1248
  return n.$setAnchorCellForSelection(N), n.$setFocusCellForSelection(b, !0), !0;
1249
1249
  }
1250
- function Z(n, e) {
1251
- if ($(n) || K(n)) {
1250
+ function Q(n, e) {
1251
+ if ($(n) || A(n)) {
1252
1252
  const t = e.isParentOf(n.anchor.getNode()), o = e.isParentOf(n.focus.getNode());
1253
1253
  return t && o;
1254
1254
  }
@@ -1259,9 +1259,9 @@ function Oe(n, e) {
1259
1259
  }
1260
1260
  function Wt(n, e) {
1261
1261
  const t = e.elem, o = n._config.theme;
1262
- y(re(t)) || w(131), Q(t, o.tableCellSelected);
1262
+ y(re(t)) || w(131), Z(t, o.tableCellSelected);
1263
1263
  }
1264
- function Ht(n, e) {
1264
+ function Pt(n, e) {
1265
1265
  const t = e.elem;
1266
1266
  y(re(t)) || w(131);
1267
1267
  const o = n._config.theme;
@@ -1289,7 +1289,7 @@ function jn(n, e, t, o, r, s, l) {
1289
1289
  for (const m of ft(d).iterNodeCarets("root")) {
1290
1290
  const { origin: C } = m;
1291
1291
  if (y(C)) {
1292
- if (gt(m)) return Kn(C, d.direction);
1292
+ if (gt(m)) return An(C, d.direction);
1293
1293
  } else if (!E(C)) break;
1294
1294
  }
1295
1295
  return null;
@@ -1309,20 +1309,20 @@ function jn(n, e, t, o, r, s, l) {
1309
1309
  else if (o === "extend") l.$setAnchorCellForSelection(c), l.$setFocusCellForSelection(c, !0);
1310
1310
  else {
1311
1311
  const d = (function(m) {
1312
- const C = An(m);
1312
+ const C = Kn(m);
1313
1313
  return gt(C) ? pt(C) : m;
1314
1314
  })(mt(_, i.direction));
1315
1315
  Fe(t.anchor, d), Fe(t.focus, d);
1316
1316
  }
1317
1317
  return ee(e), !0;
1318
1318
  }
1319
- function Pt(n, e, t, o, r) {
1319
+ function Ht(n, e, t, o, r) {
1320
1320
  if ((t === "up" || t === "down") && (function(l) {
1321
1321
  const i = l.getRootElement();
1322
1322
  return i ? i.hasAttribute("aria-controls") && i.getAttribute("aria-controls") === "typeahead-menu" : !1;
1323
1323
  })(n)) return !1;
1324
1324
  const s = L();
1325
- if (!Z(s, o)) {
1325
+ if (!Q(s, o)) {
1326
1326
  if ($(s)) {
1327
1327
  if (t === "backward") {
1328
1328
  if (s.focus.offset > 0) return !1;
@@ -1385,7 +1385,7 @@ function Pt(n, e, t, o, r) {
1385
1385
  const h = _e(u);
1386
1386
  if (h !== o && h != null) {
1387
1387
  const m = ae(h, n.getElementByKey(h.getKey()));
1388
- if (m != null) return r.table = pe(h, m), Pt(n, e, t, h, r);
1388
+ if (m != null) return r.table = pe(h, m), Ht(n, e, t, h, r);
1389
1389
  }
1390
1390
  const p = n.getElementByKey(u.__key), _ = n.getElementByKey(l.key);
1391
1391
  if (_ == null || p == null) return !1;
@@ -1412,7 +1412,7 @@ function Pt(n, e, t, o, r) {
1412
1412
  return !0;
1413
1413
  }
1414
1414
  }
1415
- } else if (K(s)) {
1415
+ } else if (A(s)) {
1416
1416
  const { anchor: l, focus: i } = s, u = R(l.getNode(), y), f = R(i.getNode(), y), [h] = s.getNodes();
1417
1417
  M(h) || w(251);
1418
1418
  const p = ae(h, n.getElementByKey(h.getKey()));
@@ -1452,7 +1452,7 @@ function se(n, e) {
1452
1452
  const { tableNode: t } = n.$lookup(), o = t.getCordsFromCellNode(e, n.table);
1453
1453
  return t.getDOMCellFromCordsOrThrow(o.x, o.y, n.table);
1454
1454
  }
1455
- function Qe(n, e, t) {
1455
+ function Ze(n, e, t) {
1456
1456
  return xe(n, re(e, t));
1457
1457
  }
1458
1458
  function Rt(n, e, t) {
@@ -1462,10 +1462,10 @@ function Rt(n, e, t) {
1462
1462
  const l = e.theme.tableAlignment[s];
1463
1463
  l && (s === t ? r : o).push(l);
1464
1464
  }
1465
- me(n, ...o), Q(n, ...r);
1465
+ me(n, ...o), Z(n, ...r);
1466
1466
  }
1467
1467
  const Ge = /* @__PURE__ */ new WeakSet();
1468
- function et(n = Kt()) {
1468
+ function et(n = At()) {
1469
1469
  return Ge.has(n);
1470
1470
  }
1471
1471
  function fo(n, e) {
@@ -1493,7 +1493,7 @@ class ce extends tt {
1493
1493
  super.afterCloneFrom(e), this.__colWidths = e.__colWidths, this.__rowStriping = e.__rowStriping, this.__frozenColumnCount = e.__frozenColumnCount, this.__frozenRowCount = e.__frozenRowCount;
1494
1494
  }
1495
1495
  static importDOM() {
1496
- return { table: (e) => ({ conversion: Zn, priority: 1 }) };
1496
+ return { table: (e) => ({ conversion: Qn, priority: 1 }) };
1497
1497
  }
1498
1498
  static importJSON(e) {
1499
1499
  return ct().updateFromJSON(e);
@@ -1502,7 +1502,7 @@ class ce extends tt {
1502
1502
  return super.updateFromJSON(e).setRowStriping(e.rowStriping || !1).setFrozenColumns(e.frozenColumnCount || 0).setFrozenRows(e.frozenRowCount || 0).setColWidths(e.colWidths);
1503
1503
  }
1504
1504
  constructor(e) {
1505
- super(e), this.__rowStriping = !1, this.__frozenColumnCount = 0, this.__frozenRowCount = 0;
1505
+ super(e), this.__rowStriping = !1, this.__frozenColumnCount = 0, this.__frozenRowCount = 0, this.__colWidths = void 0;
1506
1506
  }
1507
1507
  exportJSON() {
1508
1508
  return { ...super.exportJSON(), colWidths: this.getColWidths(), frozenColumnCount: this.__frozenColumnCount ? this.__frozenColumnCount : void 0, frozenRowCount: this.__frozenRowCount ? this.__frozenRowCount : void 0, rowStriping: this.__rowStriping ? this.__rowStriping : void 0 };
@@ -1518,22 +1518,22 @@ class ce extends tt {
1518
1518
  const o = document.createElement("table");
1519
1519
  this.__style && (o.style.cssText = this.__style);
1520
1520
  const r = document.createElement("colgroup");
1521
- if (o.appendChild(r), en(r), Q(o, e.theme.table), this.updateTableElement(null, o, e), et(t)) {
1521
+ if (o.appendChild(r), en(r), Z(o, e.theme.table), this.updateTableElement(null, o, e), et(t)) {
1522
1522
  const s = document.createElement("div"), l = e.theme.tableScrollableWrapper;
1523
- return l ? Q(s, l) : s.style.cssText = "overflow-x: auto;", s.appendChild(o), this.updateTableWrapper(null, s, o, e), s;
1523
+ return l ? Z(s, l) : s.style.cssText = "overflow-x: auto;", s.appendChild(o), this.updateTableWrapper(null, s, o, e), s;
1524
1524
  }
1525
1525
  return o;
1526
1526
  }
1527
1527
  updateTableWrapper(e, t, o, r) {
1528
1528
  this.__frozenColumnCount !== (e ? e.__frozenColumnCount : 0) && (function(s, l, i, u) {
1529
- u > 0 ? (Q(s, i.theme.tableFrozenColumn), l.setAttribute("data-lexical-frozen-column", "true")) : (me(s, i.theme.tableFrozenColumn), l.removeAttribute("data-lexical-frozen-column"));
1529
+ u > 0 ? (Z(s, i.theme.tableFrozenColumn), l.setAttribute("data-lexical-frozen-column", "true")) : (me(s, i.theme.tableFrozenColumn), l.removeAttribute("data-lexical-frozen-column"));
1530
1530
  })(t, o, r, this.__frozenColumnCount), this.__frozenRowCount !== (e ? e.__frozenRowCount : 0) && (function(s, l, i, u) {
1531
- u > 0 ? (Q(s, i.theme.tableFrozenRow), l.setAttribute("data-lexical-frozen-row", "true")) : (me(s, i.theme.tableFrozenRow), l.removeAttribute("data-lexical-frozen-row"));
1531
+ u > 0 ? (Z(s, i.theme.tableFrozenRow), l.setAttribute("data-lexical-frozen-row", "true")) : (me(s, i.theme.tableFrozenRow), l.removeAttribute("data-lexical-frozen-row"));
1532
1532
  })(t, o, r, this.__frozenRowCount);
1533
1533
  }
1534
1534
  updateTableElement(e, t, o) {
1535
1535
  this.__style !== (e ? e.__style : "") && (t.style.cssText = this.__style), this.__rowStriping !== (!!e && e.__rowStriping) && (function(r, s, l) {
1536
- l ? (Q(r, s.theme.tableRowStriping), r.setAttribute("data-lexical-row-striping", "true")) : (me(r, s.theme.tableRowStriping), r.removeAttribute("data-lexical-row-striping"));
1536
+ l ? (Z(r, s.theme.tableRowStriping), r.setAttribute("data-lexical-row-striping", "true")) : (me(r, s.theme.tableRowStriping), r.removeAttribute("data-lexical-row-striping"));
1537
1537
  })(t, o, this.__rowStriping), (function(r, s, l, i) {
1538
1538
  const u = r.querySelector("colgroup");
1539
1539
  if (!u) return;
@@ -1598,7 +1598,7 @@ class ce extends tt {
1598
1598
  if (l != null) for (let i = 0; i < l.length; i++) {
1599
1599
  const u = l[i];
1600
1600
  if (u == null) continue;
1601
- const { elem: f } = u, h = Qe(this, f);
1601
+ const { elem: f } = u, h = Ze(this, f);
1602
1602
  if (h !== null && e.is(h)) return { x: i, y: s };
1603
1603
  }
1604
1604
  }
@@ -1666,7 +1666,7 @@ function Vn(n, e) {
1666
1666
  const t = n.getElementByKey(e.getKey());
1667
1667
  return t === null && w(230), pe(e, t);
1668
1668
  }
1669
- function Zn(n) {
1669
+ function Qn(n) {
1670
1670
  const e = ct();
1671
1671
  n.hasAttribute("data-lexical-row-striping") && e.setRowStriping(!0), n.hasAttribute("data-lexical-frozen-column") && e.setFrozenColumns(1), n.hasAttribute("data-lexical-frozen-row") && e.setFrozenRows(1);
1672
1672
  const t = n.querySelector(":scope > colgroup");
@@ -1690,11 +1690,11 @@ function ct() {
1690
1690
  function M(n) {
1691
1691
  return n instanceof ce;
1692
1692
  }
1693
- function Qn({ rows: n, columns: e, includeHeaders: t }) {
1693
+ function Zn({ rows: n, columns: e, includeHeaders: t }) {
1694
1694
  const o = L() || Ue();
1695
1695
  if (!o || !$(o) || _e(o.anchor.getNode())) return !1;
1696
1696
  const r = zn(Number(n), Number(e), t);
1697
- Zt(r);
1697
+ Qt(r);
1698
1698
  const s = r.getFirstDescendant();
1699
1699
  return Ce(s) && s.select(), !0;
1700
1700
  }
@@ -1770,14 +1770,13 @@ function mo(n, e = !0) {
1770
1770
  };
1771
1771
  }
1772
1772
  function po(n) {
1773
- return n.hasNodes([ce]) || w(255), jt(n.registerCommand(En, Qn, De), n.registerCommand(At, ({ nodes: e, selection: t }, o) => n !== o || !$(t) ? !1 : _e(t.anchor.getNode()) !== null && e.some(M), De), n.registerCommand(rn, no, De), n.registerNodeTransform(ce, to), n.registerNodeTransform(Te, eo), n.registerNodeTransform(ue, Gn));
1773
+ return n.hasNodes([ce]) || w(255), jt(n.registerCommand(En, Zn, De), n.registerCommand(Kt, ({ nodes: e, selection: t }, o) => n !== o || !$(t) ? !1 : _e(t.anchor.getNode()) !== null && e.some(M), De), n.registerCommand(rn, no, De), n.registerNodeTransform(ce, to), n.registerNodeTransform(Te, eo), n.registerNodeTransform(ue, Gn));
1774
1774
  }
1775
1775
  export {
1776
1776
  Re as $,
1777
1777
  y as A,
1778
1778
  zn as B,
1779
1779
  Et as D,
1780
- Me as H,
1781
1780
  Mt as I,
1782
1781
  ao as J,
1783
1782
  mo as N,
@@ -1786,6 +1785,7 @@ export {
1786
1785
  ue as T,
1787
1786
  io as U,
1788
1787
  co as V,
1788
+ Me as W,
1789
1789
  _e as Z,
1790
1790
  ae as a,
1791
1791
  ce as d,
@@ -1799,4 +1799,4 @@ export {
1799
1799
  go as y,
1800
1800
  E as z
1801
1801
  };
1802
- //# sourceMappingURL=LexicalTable.prod-CZ1mYUR-.js.map
1802
+ //# sourceMappingURL=LexicalTable.prod-BBI7yaOy.js.map